2021-03-15 12:06:06 +01:00
|
|
|
<ion-header class="ion-no-border background-white px-20 pt-25">
|
2021-03-17 09:01:24 +01:00
|
|
|
<div class="title-content d-flex">
|
2023-11-29 12:17:52 +01:00
|
|
|
<!-- <div class="back-icon">
|
2023-07-07 12:03:03 +01:00
|
|
|
<ion-icon class="font-35-rem" (click)="goBack()" slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
2021-03-17 10:03:39 +01:00
|
|
|
</div> -->
|
2024-02-28 09:04:11 +01:00
|
|
|
<div class="div-title" >
|
2023-02-09 11:25:57 +01:00
|
|
|
<ion-label class="title">{{ publicationTitle }}</ion-label> <br>
|
2023-11-29 12:17:52 +01:00
|
|
|
<i style="margin-top: -3px; font-size: 15px;"> Campos marcados com * são obrigatórios</i>
|
2021-03-15 12:06:06 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-header>
|
|
|
|
|
|
|
|
|
|
<ion-content>
|
2023-11-29 12:17:52 +01:00
|
|
|
<div class="content-container">
|
|
|
|
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
2021-03-15 12:06:06 +01:00
|
|
|
|
2023-11-29 12:17:52 +01:00
|
|
|
<div *ngIf="publicationType!='1'" class="ion-item-container"
|
|
|
|
|
[class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
2024-03-26 12:03:30 +01:00
|
|
|
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="PublicationFromMvService.form.Title" name="title"
|
2023-11-29 12:17:52 +01:00
|
|
|
placeholder="Título*"></ion-input>
|
|
|
|
|
</div>
|
2021-03-15 12:06:06 +01:00
|
|
|
|
2023-11-29 12:17:52 +01:00
|
|
|
<div *ngIf="publicationType!='1' " class="container-div pb-20">
|
|
|
|
|
<div class="ion-item-class-2 d-flex">
|
|
|
|
|
<div class="ion-icon-class">
|
|
|
|
|
<ion-icon slot="start" src="assets/images/icons-description.svg"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ion-textarea-class flex-grow-1"
|
|
|
|
|
[class.input-error]="Form?.get('Message')?.invalid && validateFrom ">
|
2024-03-26 12:03:30 +01:00
|
|
|
<ion-textarea autocomplete="on" autocorrect="on" spellcheck="true" [(ngModel)]="PublicationFromMvService.form.Message"
|
2023-11-29 12:17:52 +01:00
|
|
|
name="description" ngDefaultControl rows="12" cols="20" placeholder="Corpo de texto*"></ion-textarea>
|
|
|
|
|
</div>
|
2021-03-15 12:06:06 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-08-24 14:37:09 +01:00
|
|
|
|
2023-08-11 16:38:23 +01:00
|
|
|
|
2023-11-29 12:17:52 +01:00
|
|
|
<!-- <div *ngIf="publication">
|
2023-08-28 17:06:16 +01:00
|
|
|
OriginalFileName: {{ publication.OriginalFileName }}
|
|
|
|
|
</div> -->
|
2023-08-14 14:11:15 +01:00
|
|
|
|
|
|
|
|
|
2023-11-29 12:17:52 +01:00
|
|
|
<!-- Captured -->
|
2024-03-26 12:03:30 +01:00
|
|
|
<div *ngIf="PublicationFromMvService.form.Files.length > 0">
|
2024-01-17 10:25:16 +01:00
|
|
|
<ion-label class="attached-title pb-10">Anexos</ion-label>
|
|
|
|
|
<div>
|
2024-01-18 17:17:03 +01:00
|
|
|
<div class="d-flex" >
|
2023-11-29 12:17:52 +01:00
|
|
|
|
2024-03-26 12:03:30 +01:00
|
|
|
<div *ngFor="let seleted of PublicationFromMvService.form.Files.slice(0, displayLimit), let i = index" lot="start" class="mr-10">
|
2023-11-29 12:17:52 +01:00
|
|
|
|
2024-01-17 10:25:16 +01:00
|
|
|
<div>
|
2024-01-18 17:17:03 +01:00
|
|
|
|
2024-03-26 14:32:26 +01:00
|
|
|
<div class="text-center cursor-pointer" (click)="deleteFromSeletedContent(i)" style="font-weight: 700;color: #c63527; text-align-last: right;">
|
2024-01-18 17:17:03 +01:00
|
|
|
X
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-02-09 10:33:53 +01:00
|
|
|
<div *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video' && seleted.chucksManager">
|
|
|
|
|
|
|
|
|
|
<mat-progress-bar
|
|
|
|
|
|
|
|
|
|
mode="determinate"
|
|
|
|
|
[style.width]="seleted.chucksManager.uploadPercentage"
|
|
|
|
|
></mat-progress-bar>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-01-17 10:25:16 +01:00
|
|
|
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'"
|
2024-03-27 10:26:23 +01:00
|
|
|
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.Base64" style="height: 69px; width: 69px;"></ion-img>
|
2024-01-18 17:17:03 +01:00
|
|
|
|
2024-04-03 15:28:58 +01:00
|
|
|
<video class="sdf" *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'video' " width="70" height="70"
|
2024-01-17 10:25:16 +01:00
|
|
|
preload="metadata" webkit-playsinline="webkit-playsinline">
|
2024-02-08 16:40:12 +01:00
|
|
|
<source type="video/mp4" [src]="seleted.url">
|
2024-01-17 10:25:16 +01:00
|
|
|
</video>
|
2024-01-06 20:37:49 +01:00
|
|
|
|
2024-02-07 16:45:53 +01:00
|
|
|
</div>
|
|
|
|
|
|
2024-01-17 10:25:16 +01:00
|
|
|
</div>
|
2023-11-29 12:17:52 +01:00
|
|
|
|
2023-11-10 15:37:12 +01:00
|
|
|
</div>
|
2024-01-17 10:25:16 +01:00
|
|
|
<!-- <button class="btn-no-color" (click)="clear()">
|
2023-11-10 15:37:12 +01:00
|
|
|
<ion-icon name="close"></ion-icon>
|
2024-01-17 10:25:16 +01:00
|
|
|
</button> -->
|
2023-08-15 10:15:08 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-11-29 12:17:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-26 05:59:14 +01:00
|
|
|
|
2024-01-29 08:25:27 +01:00
|
|
|
<div *ngIf="checkTableDivice()" style="display: flex;">
|
2024-01-26 05:59:14 +01:00
|
|
|
<div (click)="chossePhotoOrVideo()">
|
2023-11-29 12:17:52 +01:00
|
|
|
<div class="attach-icon">
|
2024-01-26 05:59:14 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "
|
|
|
|
|
src="assets/images/icons-add-photo.svg"></ion-icon>
|
2023-11-29 12:17:52 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' "
|
|
|
|
|
src="assets/images/theme/gov/icons-add-photo.svg"></ion-icon>
|
2024-01-26 05:59:14 +01:00
|
|
|
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
2024-01-26 05:59:14 +01:00
|
|
|
<div class="attach-document">
|
|
|
|
|
<ion-label>Câmera</ion-label>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
2021-03-15 12:06:06 +01:00
|
|
|
</div>
|
2024-01-26 05:59:14 +01:00
|
|
|
</div>
|
2024-01-30 11:35:45 +01:00
|
|
|
|
2024-01-26 05:59:14 +01:00
|
|
|
<div *ngIf="photoOrVideo" class="container-multiselect pt-10" style="width: 200px;">
|
|
|
|
|
<button id="container-multiselect" class="multiselect-button" (click)="takePicture()">Fotografia</button>
|
|
|
|
|
<button id="container-multiselect" class="multiselect-button" (click)="startVideoRecording()">Video</button>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
|
|
|
|
|
2024-01-29 08:25:27 +01:00
|
|
|
|
|
|
|
|
<div *ngIf="checkTableDivice()" >
|
|
|
|
|
<ion-label (click)="loadVideoTablet()" class="cursor-pointer">
|
2023-11-29 12:17:52 +01:00
|
|
|
<div class="attach-icon">
|
2024-01-29 08:25:27 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-add-photos.svg"></ion-icon>
|
2023-11-29 12:17:52 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' "
|
2024-01-29 08:25:27 +01:00
|
|
|
src="assets/images/theme/gov/icons-add-photos.svg"></ion-icon>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="attach-document cursor-pointer">
|
2024-01-29 08:25:27 +01:00
|
|
|
<ion-label>Galeria</ion-label>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
2021-03-15 12:06:06 +01:00
|
|
|
</ion-label>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
2021-03-15 12:06:06 +01:00
|
|
|
|
2024-01-29 08:25:27 +01:00
|
|
|
<div *ngIf="checkDesktop()" >
|
2023-11-29 12:17:52 +01:00
|
|
|
<ion-label (click)="loadVideo()" class="cursor-pointer">
|
|
|
|
|
<div class="attach-icon">
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-add-photos.svg"></ion-icon>
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' "
|
|
|
|
|
src="assets/images/theme/gov/icons-add-photos.svg"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="attach-document cursor-pointer">
|
2024-01-26 05:59:14 +01:00
|
|
|
<ion-label>Galeria</ion-label>
|
2023-11-29 12:17:52 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-label>
|
|
|
|
|
</div>
|
2024-02-07 16:45:53 +01:00
|
|
|
|
|
|
|
|
|
2021-03-15 12:06:06 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</ion-content>
|
|
|
|
|
|
|
|
|
|
<ion-footer class="ion-no-border">
|
2021-03-16 14:43:54 +01:00
|
|
|
<ion-toolbar class="footer-toolbar width-100 px-20">
|
2021-03-15 12:06:06 +01:00
|
|
|
<ion-buttons slot="start">
|
2023-10-19 16:51:12 +01:00
|
|
|
<button class="btn-ok" fill="clear" color="#fff" (click)="save()">
|
|
|
|
|
<ion-label>Gravar</ion-label>
|
2021-08-24 14:37:09 +01:00
|
|
|
</button>
|
2021-03-15 12:06:06 +01:00
|
|
|
</ion-buttons>
|
|
|
|
|
<ion-buttons slot="end">
|
2023-10-19 16:51:12 +01:00
|
|
|
<button class="btn-cancel" fill="clear" color="#061b52" (click)="close()">
|
|
|
|
|
<ion-label>Cancelar</ion-label>
|
2021-08-24 14:37:09 +01:00
|
|
|
</button>
|
2021-03-15 12:06:06 +01:00
|
|
|
</ion-buttons>
|
2023-11-29 12:17:52 +01:00
|
|
|
|
2021-03-15 12:06:06 +01:00
|
|
|
</ion-toolbar>
|
2023-12-07 15:59:42 +01:00
|
|
|
</ion-footer>
|