general-library-union 2.9.93 → 2.9.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,7 @@ import * as i6 from 'primeng/confirmdialog';
101
101
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
102
102
  import * as i9$1 from 'primeng/progressbar';
103
103
  import { ProgressBarModule } from 'primeng/progressbar';
104
- import * as i19 from 'primeng/editor';
104
+ import * as i20$1 from 'primeng/editor';
105
105
  import { EditorModule } from 'primeng/editor';
106
106
 
107
107
  class UnionModel {
@@ -1831,6 +1831,9 @@ class UtilsService {
1831
1831
  const pletras = /^[a-zA-Z][0-9a-zA-Z]*$/;
1832
1832
  return pletras.test(texto);
1833
1833
  }
1834
+ isNumeric(value) {
1835
+ return !isNaN(Number(value));
1836
+ }
1834
1837
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UtilsService, deps: [{ token: i3.CookieService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1835
1838
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UtilsService, providedIn: 'root' });
1836
1839
  }
@@ -15581,6 +15584,10 @@ class CarguePlantillaGeneralComponent {
15581
15584
  rutaPrincipal;
15582
15585
  filteredFiles = [];
15583
15586
  filterValue = '';
15587
+ filtroConvertir;
15588
+ html;
15589
+ mostrarEditor;
15590
+ modificarHTML;
15584
15591
  FORMATS_VALIDOS = new Set([
15585
15592
  '.doc',
15586
15593
  '.html',
@@ -15597,10 +15604,7 @@ class CarguePlantillaGeneralComponent {
15597
15604
  '.docx',
15598
15605
  '.properties'
15599
15606
  ]);
15600
- filtroConvertir;
15601
- html;
15602
- mostrarEditor;
15603
- modificarHTML;
15607
+ FORMATOS = 'doc;html;jasper;xls;jrxml;odt;xlsm;xlsx;pgp;asc;cer;p12;docx;properties';
15604
15608
  constructor(plantillasService, authService, translateService, controlFuncionService, confirmationService, toastService, cargarArchivoServices, encriptadoBasico, generalPipe, utilsService) {
15605
15609
  this.plantillasService = plantillasService;
15606
15610
  this.authService = authService;
@@ -15614,6 +15618,7 @@ class CarguePlantillaGeneralComponent {
15614
15618
  this.utilsService = utilsService;
15615
15619
  }
15616
15620
  async ngOnInit() {
15621
+ this.loading = true;
15617
15622
  this.mostrarEditor = false;
15618
15623
  let consultarRutaPrincipal = await firstValueFrom(this.cargarArchivoServices.getPropiedad({ propiedad: "ruta_plantillas", aplicacion: 1 }));
15619
15624
  let convertir = await firstValueFrom(this.cargarArchivoServices.getPropiedad({ propiedad: "servidor_openOffice", aplicacion: 0 }));
@@ -15633,10 +15638,11 @@ class CarguePlantillaGeneralComponent {
15633
15638
  if (!this.propiedad) {
15634
15639
  this.propiedad = 'ruta_plantillas';
15635
15640
  }
15636
- this.plantillasService.obtenerArchivos(this.propiedad, this.propiedadDeSistema ? '0' : this.authService.getTokenKey('aplicacion'), 'doc;html;jasper;xls;jrxml;odt;xlsm;xlsx;pgp;asc;cer;p12;docx;properties', this.anexoPropiedad, true).subscribe(rta => {
15641
+ this.plantillasService.obtenerArchivos(this.propiedad, this.propiedadDeSistema ? '0' : this.authService.getTokenKey('aplicacion'), this.FORMATOS, this.anexoPropiedad, true).subscribe(rta => {
15637
15642
  this.files = rta;
15638
15643
  this.filteredFiles = rta;
15639
15644
  this.loading = false;
15645
+ //this.isCargarInicio = false;
15640
15646
  if (!this.archivoSeleccionado) {
15641
15647
  this.archivoSeleccionado = this.files[0];
15642
15648
  }
@@ -15696,7 +15702,6 @@ class CarguePlantillaGeneralComponent {
15696
15702
  if (!this.isFormatoValido(this.archivoSeleccionadoAnexo.name)) {
15697
15703
  this.toastService.showWarning("Se debe agregar un archivo " + Array.from(this.FORMATS_VALIDOS).join(', '));
15698
15704
  fubauto.clear();
15699
- //this.toastService.showWarning("Se debe agregar un archivo .doc, .docx, .xls, .xlsx , .xlsm, .jrxml, .odt, .jasper, .pgp, .asc, .cer, .properties o .html");
15700
15705
  return;
15701
15706
  }
15702
15707
  //Cargar Archivo Temporal
@@ -15721,6 +15726,7 @@ class CarguePlantillaGeneralComponent {
15721
15726
  }
15722
15727
  //Guarda el documento
15723
15728
  await firstValueFrom(this.plantillasService.cargarDocumento(this.rutaPrincipal, rutaComplemento, informacionArchivo));
15729
+ this.toastService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
15724
15730
  this.ngOnInit();
15725
15731
  }
15726
15732
  async descargarAnexo() {
@@ -15752,6 +15758,7 @@ class CarguePlantillaGeneralComponent {
15752
15758
  });
15753
15759
  }
15754
15760
  async setEliminarArchivo() {
15761
+ this.loading = true;
15755
15762
  //Ruta archivo
15756
15763
  let rutaComplemento = this.archivoSeleccionado.data;
15757
15764
  if (!this.archivoSeleccionado?.parent) {
@@ -15806,6 +15813,7 @@ class CarguePlantillaGeneralComponent {
15806
15813
  });
15807
15814
  }
15808
15815
  async setEliminarCarpeta() {
15816
+ this.loading = true;
15809
15817
  let rutaComplemento = this.archivoSeleccionado.data;
15810
15818
  if (!this.archivoSeleccionado?.parent) {
15811
15819
  rutaComplemento = '';
@@ -15855,7 +15863,7 @@ class CarguePlantillaGeneralComponent {
15855
15863
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: CarguePlantillaGeneralComponent, deps: [{ token: PlantillasService }, { token: AuthService }, { token: i7$1.TranslateService }, { token: CargarControlFuncionalidadService }, { token: i7.ConfirmationService }, { token: ToastService }, { token: CargarArchivosService }, { token: EncriptadoBasicoService }, { token: GeneralPipe }, { token: UtilsService }], target: i0.ɵɵFactoryTarget.Component });
15856
15864
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.4", type: CarguePlantillaGeneralComponent, isStandalone: true, selector: "app-cargue-plantilla-general", providers: [
15857
15865
  ConfirmationService
15858
- ], viewQueries: [{ propertyName: "popupConvertirPlantillasComponent", first: true, predicate: PopupConvertirPlantillasComponent, descendants: true }, { propertyName: "miFormulario", first: true, predicate: ["miFormulario"], descendants: true }, { propertyName: "treeComponent", first: true, predicate: ["tree"], descendants: true }], ngImport: i0, template: "<p-confirmPopup key=\"eliminarCarpeta\"></p-confirmPopup>\n<p-confirmPopup key=\"eliminarArchivo\"></p-confirmPopup>\n\n<h1 class=\"mb-4\">{{'cargue' | translate}} {{'plantillas' | translate}}</h1>\n\n<div class=\"p-fluid p-formgrid grid\">\n\n <div class=\"field col-12 md:col-6 lg:col-5 card p-5\">\n <div class=\"flex justify-content-between align-items-center justify-content-center relative\">\n <input type=\"text\" pInputText [(ngModel)]=\"filterValue\" placeholder=\"{{'filtro' | translate}}\"\n (keydown)=\"filtrarEnter($event)\" />\n <button type=\"button\" pButton pRipple icon=\"pi pi-search text-xl\" (click)=\"aplicarFiltro()\"\n class=\"p-element p-ripple p-button-rounded p-button-secondary p-button p-component p-button-icon-only absolute right-0 border-none bg-white-alpha-10\"\n tooltipPosition=\"bottom\" pTooltip=\"Editar HTML\"></button>\n </div>\n\n <p-tree #tree scrollHeight=\"670px\" [value]=\"filteredFiles\" selectionMode=\"single\" [(selection)]=\"dataSelected\"\n [filter]=\"false\" [filterPlaceholder]=\"'filtro' | translate\" filterMode=\"strict\"\n (onNodeSelect)=\"seleccionarArchivo($event)\" [loading]=\"loading\"\n (onNodeUnselect)=\"deseleccionarArchivo($event)\"></p-tree>\n </div>\n\n <!-- OPCINES DIRECTORIOS - ARCHIVOS -->\n <div class=\"field col-12 md:col-6 lg:col-7 p-0 pl-3\">\n\n @if(!this.loading){\n <div class=\"card p-3\">\n\n <!-- CARPETA -->\n @if(archivoSeleccionado.expanded){\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Carpeta: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-between\">\n\n <!-- Convertir -->\n <button type=\"button\" pButton pRipple (click)=\"convertirArchivos()\"\n *ngIf=\"verConvertir && controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n tooltipPosition=\"bottom\" label=\"{{'convertir' | translate}}\"\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n pTooltip=\"Convertir archivo\" tooltipPosition=\"bottom\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-arrow-right-arrow-left color-500\"></i>\n </div>\n </button>\n\n <!--Nueva Carpeta-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_nuevo' | translate}}\" (click)=\"crearCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-floppy-save color-500\"></i>\n </div>\n </button>\n\n <!--Eliminar-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n\n <!-- Cargar Archivo -->\n <div [ngClass]=\"{ 'min-width-100': !verConvertir, 'min-width-20': verConvertir }\">\n <p-fileUpload #fubauto mode=\"basic\" [auto]=\"true\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n chooseLabel=\"{{'link_subirarchivos' | translate}}\" (onSelect)=\"cargarNuevo($event, fubauto)\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-trash\"></i>\n </div>\n </p-fileUpload>\n </div>\n </div>\n }\n\n <!-- ARCHIVO-->\n @if(!archivoSeleccionado.expanded){\n\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Archivo: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-end\">\n @if(archivoSeleccionado.label.includes('.html')){\n\n <!--EDITAR HTML-->\n <button type=\"button\" pButton pRipple icon=\"pi pi-code text-xl color-500\" (click)=\"editarAction()\"\n class=\"p-button-outlined boton-accion-principal text-gray-600\" label=\"Editar HTML\">\n </button>\n }\n\n <!-- DESCARGAR-->\n <button pButton pRipple class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_descargar' | translate}}\" (click)=\"descargarAnexo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:descargar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-download color-500\"></i>\n </div>\n </button>\n\n <!--ELIMINAR-->\n <button pButton pRipple class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarArchivo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n </div>\n }\n </div>\n }\n\n @if(archivoSeleccionado.expanded && isVisualizarCrearCaperta){\n <div class=\"card\">\n\n <h5 class=\"mt-2\"><i class=\"glyphicons glyphicons-note\"></i> Nueva carpeta</h5>\n\n <form #miFormulario=\"ngForm\">\n <!-- campos -->\n <div class=\"flex mb-3\">\n <!-- Nombre -->\n <div class=\"w-full p-0 mb-0\">\n <span class=\"p-float-label mr-2\">\n <input pInputText id=\"id_numero_de_evento\" [(ngModel)]=\"nomNuevaCarpeta\" required\n name=\"nombreCarpeta\">\n <label for=\"id_numero_de_evento\">{{'nombre' | translate}} *</label>\n </span>\n </div>\n\n <div class=\"flex justify-content-end\">\n <!--Guardar Carpeta-->\n <button pButton pRipple class=\"mr-2 p-button background-100 color-500\"\n icon=\"glyphicons glyphicons-floppy-save\" [label]=\"('link_guardar' | translate)\"\n (click)=\"guardarCarpeta()\">\n </button>\n </div>\n </div>\n </form>\n\n </div>\n }\n <!-- EDITOR DE HTML -->\n <div *ngIf=\"isHtml() && mostrarEditor\">\n\n <div class=\"flex justify-content-end align-items-center mb-3\">\n <!-- Bot\u00F3n guardar HTML -->\n <button pButton pRipple label=\"{{'link_guardar' | translate }}\" (click)=\"guardarHtml()\"\n icon=\"glyphicons glyphicons-floppy-save\" class=\"p-button-secondary\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"></button>\n </div>\n\n <p-editor id=\"editor\" [style]=\"{ height: '500px' }\" required [(ngModel)]=\"modificarHTML\"\n name=\"htmlPublicacion\"></p-editor>\n\n </div>\n </div>\n</div>\n\n@if(isMostrarPopupConvertir){\n<app-popup-convertir-plantillas (regresar)=\"regresarPopupConvertir($event)\"></app-popup-convertir-plantillas>\n}", styles: [":host ::ng-deep .p-fluid .p-fileupload .p-button{width:100%}:host ::ng-deep .min-width-20{min-width:20%}:host ::ng-deep .min-width-100{min-width:30%}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i7$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i14.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeModule }, { kind: "component", type: i7$2.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i14$1.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i10$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "ngmodule", type: SplitButtonModule }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i12$2.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FieldsetModule }, { kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i20.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "component", type: PopupConvertirPlantillasComponent, selector: "app-popup-convertir-plantillas", inputs: ["showDialog"], outputs: ["onSelected", "regresar"] }, { kind: "ngmodule", type: EditorModule }, { kind: "component", type: i19.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange"] }] });
15866
+ ], viewQueries: [{ propertyName: "popupConvertirPlantillasComponent", first: true, predicate: PopupConvertirPlantillasComponent, descendants: true }, { propertyName: "miFormulario", first: true, predicate: ["miFormulario"], descendants: true }, { propertyName: "treeComponent", first: true, predicate: ["tree"], descendants: true }], ngImport: i0, template: "<div id=\"cargue-plantillas\">\n<p-confirmPopup key=\"eliminarCarpeta\"></p-confirmPopup>\n<p-confirmPopup key=\"eliminarArchivo\"></p-confirmPopup>\n\n<h1 class=\"mb-4\">{{'cargue' | translate}} {{'plantillas' | translate}}</h1>\n\n<div class=\"p-fluid p-formgrid grid\">\n\n <div class=\"field col-12 md:col-6 lg:col-5 card p-5\">\n <div class=\"flex justify-content-between align-items-center justify-content-center relative\">\n <input type=\"text\" pInputText [(ngModel)]=\"filterValue\" placeholder=\"{{'filtro' | translate}}\"\n (keydown)=\"filtrarEnter($event)\" />\n <button type=\"button\" pButton pRipple icon=\"pi pi-search text-xl\" (click)=\"aplicarFiltro()\"\n class=\"p-element p-ripple p-button-rounded p-button-secondary p-button p-component p-button-icon-only absolute right-0 border-none bg-white-alpha-10\"\n tooltipPosition=\"bottom\" pTooltip=\"Editar HTML\"></button>\n </div>\n\n <p-tree #tree scrollHeight=\"670px\" [value]=\"filteredFiles\" selectionMode=\"single\" [(selection)]=\"dataSelected\"\n [filter]=\"false\" [filterPlaceholder]=\"'filtro' | translate\" filterMode=\"strict\"\n (onNodeSelect)=\"seleccionarArchivo($event)\" [loading]=\"loading\"\n (onNodeUnselect)=\"deseleccionarArchivo($event)\"></p-tree>\n </div>\n\n <!-- OPCINES DIRECTORIOS - ARCHIVOS -->\n <div class=\"field col-12 md:col-6 lg:col-7 p-0 pl-3\">\n\n @if(this.loading){\n <p-progressBar mode=\"indeterminate\" [style]=\"{ height: '6px' }\"></p-progressBar>\n }\n\n @if(!this.loading){\n <div class=\"card p-3\">\n\n <!-- CARPETA -->\n @if(archivoSeleccionado.expanded){\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Carpeta: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-between\">\n\n <!-- Convertir -->\n <button type=\"button\" pButton pRipple (click)=\"convertirArchivos()\"\n *ngIf=\"verConvertir && controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n tooltipPosition=\"bottom\" label=\"{{'convertir' | translate}}\"\n class=\"w-full mr-3 p-button-secondary boton-accion-principal color-500\"\n pTooltip=\"Convertir archivo\" tooltipPosition=\"bottom\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-arrow-right-arrow-left color-500\"></i>\n </div>\n </button>\n\n <!--Nueva Carpeta-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"w-full mr-3 p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_nuevo' | translate}}\" (click)=\"crearCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-plus color-500\"></i>\n </div>\n </button>\n\n <!--Eliminar-->\n <div class=\"btn-fileupload-claro\">\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button p-button-secondary font-semibold flex-shrink-0 boton-accion-principal mr-3\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i style=\"color: var(--color-500)\" class=\"glyphicons glyphicons-bin\"></i>\n </div>\n </button>\n </div>\n\n <!-- Cargar Archivo -->\n <div class=\"btn-fileupload-claro\" [ngClass]=\"{ 'min-width-100': !verConvertir, 'min-width-20': verConvertir }\">\n <p-fileUpload #fubauto mode=\"basic\" [auto]=\"true\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n chooseLabel=\"{{'link_subirarchivos' | translate}}\" (onSelect)=\"cargarNuevo($event, fubauto)\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-trash\"></i>\n </div>\n </p-fileUpload>\n </div>\n </div>\n }\n\n <!-- ARCHIVO-->\n @if(!archivoSeleccionado.expanded){\n\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Archivo: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-end\">\n @if(archivoSeleccionado.label.includes('.html')){\n\n <!--EDITAR HTML-->\n <button type=\"button\" pButton pRipple icon=\"pi pi-code text-xl color-500\" (click)=\"editarAction()\"\n class=\"mr-3 w-full p-button-secondary boton-accion-principal \" label=\"Editar HTML\">\n </button>\n }\n\n <!-- DESCARGAR-->\n <button pButton pRipple class=\"mr-3 w-full p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_descargar' | translate}}\" (click)=\"descargarAnexo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:descargar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-download color-500\"></i>\n </div>\n </button>\n\n <!--ELIMINAR-->\n <button pButton pRipple class=\"w-full p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarArchivo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n </div>\n }\n </div>\n }\n\n @if(archivoSeleccionado.expanded && isVisualizarCrearCaperta){\n <div class=\"card\">\n\n <h5 class=\"mt-2\"><i class=\"glyphicons glyphicons-note\"></i> Nueva carpeta</h5>\n\n <form #miFormulario=\"ngForm\">\n <!-- campos -->\n <div class=\"flex mb-3\">\n <!-- Nombre -->\n <div class=\"w-full p-0 mb-0\">\n <span class=\"p-float-label mr-2\">\n <input pInputText id=\"id_numero_de_evento\" [(ngModel)]=\"nomNuevaCarpeta\" required\n name=\"nombreCarpeta\">\n <label for=\"id_numero_de_evento\">{{'nombre' | translate}} *</label>\n </span>\n </div>\n\n <div class=\"flex justify-content-end\">\n <!--Guardar Carpeta-->\n <button pButton pRipple class=\"mr-2 p-button-raised\" icon=\"glyphicons glyphicons-floppy-save\"\n [label]=\"('link_guardar' | translate)\" (click)=\"guardarCarpeta()\">\n </button>\n </div>\n </div>\n </form>\n\n </div>\n }\n <!-- EDITOR DE HTML -->\n <div *ngIf=\"isHtml() && mostrarEditor\">\n\n <div class=\"flex justify-content-end align-items-center mb-3\">\n <!-- Bot\u00F3n guardar HTML -->\n <button pButton pRipple label=\"{{'link_guardar' | translate }}\" (click)=\"guardarHtml()\"\n icon=\"glyphicons glyphicons-floppy-save\" class=\"p-button-raised\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"></button>\n </div>\n\n <p-editor id=\"editor\" [style]=\"{ height: '500px' }\" required [(ngModel)]=\"modificarHTML\"\n name=\"htmlPublicacion\"></p-editor>\n\n </div>\n </div>\n</div>\n\n@if(isMostrarPopupConvertir){\n<app-popup-convertir-plantillas (regresar)=\"regresarPopupConvertir($event)\"></app-popup-convertir-plantillas>\n}\n\n</div>", styles: [":host ::ng-deep .p-fluid .p-fileupload .p-button{width:100%;background:var(--color-85);border:none;box-shadow:none;color:var(--color-500);border-radius:10px}:host ::ng-deep .p-fluid .p-fileupload .p-button:hover{background:var(--color-100)!important}:host ::ng-deep .min-width-20{min-width:20%}:host ::ng-deep .min-width-100{min-width:30%}#cargue-plantillas .btn-fileupload-claro .p-button{background:var(--color-85)!important;color:var(--color-500)!important;border-radius:10px}#cargue-plantillas .btn-fileupload-claro .p-button:hover{background:var(--color-100)!important}#cargue-plantillas .btn-fileupload-claro .contenedor-icono-acciones-principal{background:#fff;margin-right:8px;padding:12px}#cargue-plantillas .btn-fileupload-claro .boton-accion-principal i{margin:0!important}#cargue-plantillas .contenedor-icono-acciones-principal{display:inline-block;background-color:#fff;border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center}#cargue-plantillas .boton-accion-principal i{margin-right:0!important}:host ::ng-deep span.p-button-icon.p-button-icon-left.pi.pi-paperclip{padding:6px;background:#fff;border:none;border-radius:50%;color:var(--color-400)}:host ::ng-deep span.p-button-icon.p-button-icon-left.pi.pi-code{background:#fff;padding:5px;border-radius:50%}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i7$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i14.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeModule }, { kind: "component", type: i7$2.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i14$1.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i10$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "ngmodule", type: SplitButtonModule }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i12$2.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FieldsetModule }, { kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i20.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "component", type: i9$1.ProgressBar, selector: "p-progressBar", inputs: ["value", "showValue", "styleClass", "style", "unit", "mode", "color"] }, { kind: "component", type: PopupConvertirPlantillasComponent, selector: "app-popup-convertir-plantillas", inputs: ["showDialog"], outputs: ["onSelected", "regresar"] }, { kind: "ngmodule", type: EditorModule }, { kind: "component", type: i20$1.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange"] }, { kind: "ngmodule", type: ProgressBarModule }] });
15859
15867
  }
15860
15868
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: CarguePlantillaGeneralComponent, decorators: [{
15861
15869
  type: Component,
@@ -15870,10 +15878,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImpor
15870
15878
  FieldsetModule,
15871
15879
  FileUploadModule,
15872
15880
  PopupConvertirPlantillasComponent,
15873
- EditorModule
15881
+ EditorModule,
15882
+ ProgressBarModule
15874
15883
  ], providers: [
15875
15884
  ConfirmationService
15876
- ], template: "<p-confirmPopup key=\"eliminarCarpeta\"></p-confirmPopup>\n<p-confirmPopup key=\"eliminarArchivo\"></p-confirmPopup>\n\n<h1 class=\"mb-4\">{{'cargue' | translate}} {{'plantillas' | translate}}</h1>\n\n<div class=\"p-fluid p-formgrid grid\">\n\n <div class=\"field col-12 md:col-6 lg:col-5 card p-5\">\n <div class=\"flex justify-content-between align-items-center justify-content-center relative\">\n <input type=\"text\" pInputText [(ngModel)]=\"filterValue\" placeholder=\"{{'filtro' | translate}}\"\n (keydown)=\"filtrarEnter($event)\" />\n <button type=\"button\" pButton pRipple icon=\"pi pi-search text-xl\" (click)=\"aplicarFiltro()\"\n class=\"p-element p-ripple p-button-rounded p-button-secondary p-button p-component p-button-icon-only absolute right-0 border-none bg-white-alpha-10\"\n tooltipPosition=\"bottom\" pTooltip=\"Editar HTML\"></button>\n </div>\n\n <p-tree #tree scrollHeight=\"670px\" [value]=\"filteredFiles\" selectionMode=\"single\" [(selection)]=\"dataSelected\"\n [filter]=\"false\" [filterPlaceholder]=\"'filtro' | translate\" filterMode=\"strict\"\n (onNodeSelect)=\"seleccionarArchivo($event)\" [loading]=\"loading\"\n (onNodeUnselect)=\"deseleccionarArchivo($event)\"></p-tree>\n </div>\n\n <!-- OPCINES DIRECTORIOS - ARCHIVOS -->\n <div class=\"field col-12 md:col-6 lg:col-7 p-0 pl-3\">\n\n @if(!this.loading){\n <div class=\"card p-3\">\n\n <!-- CARPETA -->\n @if(archivoSeleccionado.expanded){\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Carpeta: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-between\">\n\n <!-- Convertir -->\n <button type=\"button\" pButton pRipple (click)=\"convertirArchivos()\"\n *ngIf=\"verConvertir && controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n tooltipPosition=\"bottom\" label=\"{{'convertir' | translate}}\"\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n pTooltip=\"Convertir archivo\" tooltipPosition=\"bottom\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-arrow-right-arrow-left color-500\"></i>\n </div>\n </button>\n\n <!--Nueva Carpeta-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_nuevo' | translate}}\" (click)=\"crearCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-floppy-save color-500\"></i>\n </div>\n </button>\n\n <!--Eliminar-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n\n <!-- Cargar Archivo -->\n <div [ngClass]=\"{ 'min-width-100': !verConvertir, 'min-width-20': verConvertir }\">\n <p-fileUpload #fubauto mode=\"basic\" [auto]=\"true\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n chooseLabel=\"{{'link_subirarchivos' | translate}}\" (onSelect)=\"cargarNuevo($event, fubauto)\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-trash\"></i>\n </div>\n </p-fileUpload>\n </div>\n </div>\n }\n\n <!-- ARCHIVO-->\n @if(!archivoSeleccionado.expanded){\n\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Archivo: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-end\">\n @if(archivoSeleccionado.label.includes('.html')){\n\n <!--EDITAR HTML-->\n <button type=\"button\" pButton pRipple icon=\"pi pi-code text-xl color-500\" (click)=\"editarAction()\"\n class=\"p-button-outlined boton-accion-principal text-gray-600\" label=\"Editar HTML\">\n </button>\n }\n\n <!-- DESCARGAR-->\n <button pButton pRipple class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_descargar' | translate}}\" (click)=\"descargarAnexo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:descargar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-download color-500\"></i>\n </div>\n </button>\n\n <!--ELIMINAR-->\n <button pButton pRipple class=\"p-button-outlined boton-accion-principal text-gray-600 color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarArchivo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n </div>\n }\n </div>\n }\n\n @if(archivoSeleccionado.expanded && isVisualizarCrearCaperta){\n <div class=\"card\">\n\n <h5 class=\"mt-2\"><i class=\"glyphicons glyphicons-note\"></i> Nueva carpeta</h5>\n\n <form #miFormulario=\"ngForm\">\n <!-- campos -->\n <div class=\"flex mb-3\">\n <!-- Nombre -->\n <div class=\"w-full p-0 mb-0\">\n <span class=\"p-float-label mr-2\">\n <input pInputText id=\"id_numero_de_evento\" [(ngModel)]=\"nomNuevaCarpeta\" required\n name=\"nombreCarpeta\">\n <label for=\"id_numero_de_evento\">{{'nombre' | translate}} *</label>\n </span>\n </div>\n\n <div class=\"flex justify-content-end\">\n <!--Guardar Carpeta-->\n <button pButton pRipple class=\"mr-2 p-button background-100 color-500\"\n icon=\"glyphicons glyphicons-floppy-save\" [label]=\"('link_guardar' | translate)\"\n (click)=\"guardarCarpeta()\">\n </button>\n </div>\n </div>\n </form>\n\n </div>\n }\n <!-- EDITOR DE HTML -->\n <div *ngIf=\"isHtml() && mostrarEditor\">\n\n <div class=\"flex justify-content-end align-items-center mb-3\">\n <!-- Bot\u00F3n guardar HTML -->\n <button pButton pRipple label=\"{{'link_guardar' | translate }}\" (click)=\"guardarHtml()\"\n icon=\"glyphicons glyphicons-floppy-save\" class=\"p-button-secondary\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"></button>\n </div>\n\n <p-editor id=\"editor\" [style]=\"{ height: '500px' }\" required [(ngModel)]=\"modificarHTML\"\n name=\"htmlPublicacion\"></p-editor>\n\n </div>\n </div>\n</div>\n\n@if(isMostrarPopupConvertir){\n<app-popup-convertir-plantillas (regresar)=\"regresarPopupConvertir($event)\"></app-popup-convertir-plantillas>\n}", styles: [":host ::ng-deep .p-fluid .p-fileupload .p-button{width:100%}:host ::ng-deep .min-width-20{min-width:20%}:host ::ng-deep .min-width-100{min-width:30%}\n"] }]
15885
+ ], template: "<div id=\"cargue-plantillas\">\n<p-confirmPopup key=\"eliminarCarpeta\"></p-confirmPopup>\n<p-confirmPopup key=\"eliminarArchivo\"></p-confirmPopup>\n\n<h1 class=\"mb-4\">{{'cargue' | translate}} {{'plantillas' | translate}}</h1>\n\n<div class=\"p-fluid p-formgrid grid\">\n\n <div class=\"field col-12 md:col-6 lg:col-5 card p-5\">\n <div class=\"flex justify-content-between align-items-center justify-content-center relative\">\n <input type=\"text\" pInputText [(ngModel)]=\"filterValue\" placeholder=\"{{'filtro' | translate}}\"\n (keydown)=\"filtrarEnter($event)\" />\n <button type=\"button\" pButton pRipple icon=\"pi pi-search text-xl\" (click)=\"aplicarFiltro()\"\n class=\"p-element p-ripple p-button-rounded p-button-secondary p-button p-component p-button-icon-only absolute right-0 border-none bg-white-alpha-10\"\n tooltipPosition=\"bottom\" pTooltip=\"Editar HTML\"></button>\n </div>\n\n <p-tree #tree scrollHeight=\"670px\" [value]=\"filteredFiles\" selectionMode=\"single\" [(selection)]=\"dataSelected\"\n [filter]=\"false\" [filterPlaceholder]=\"'filtro' | translate\" filterMode=\"strict\"\n (onNodeSelect)=\"seleccionarArchivo($event)\" [loading]=\"loading\"\n (onNodeUnselect)=\"deseleccionarArchivo($event)\"></p-tree>\n </div>\n\n <!-- OPCINES DIRECTORIOS - ARCHIVOS -->\n <div class=\"field col-12 md:col-6 lg:col-7 p-0 pl-3\">\n\n @if(this.loading){\n <p-progressBar mode=\"indeterminate\" [style]=\"{ height: '6px' }\"></p-progressBar>\n }\n\n @if(!this.loading){\n <div class=\"card p-3\">\n\n <!-- CARPETA -->\n @if(archivoSeleccionado.expanded){\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Carpeta: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-between\">\n\n <!-- Convertir -->\n <button type=\"button\" pButton pRipple (click)=\"convertirArchivos()\"\n *ngIf=\"verConvertir && controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n tooltipPosition=\"bottom\" label=\"{{'convertir' | translate}}\"\n class=\"w-full mr-3 p-button-secondary boton-accion-principal color-500\"\n pTooltip=\"Convertir archivo\" tooltipPosition=\"bottom\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-arrow-right-arrow-left color-500\"></i>\n </div>\n </button>\n\n <!--Nueva Carpeta-->\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"w-full mr-3 p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_nuevo' | translate}}\" (click)=\"crearCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-plus color-500\"></i>\n </div>\n </button>\n\n <!--Eliminar-->\n <div class=\"btn-fileupload-claro\">\n <button *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\" pButton pRipple\n class=\"p-button p-button-secondary font-semibold flex-shrink-0 boton-accion-principal mr-3\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarCarpeta()\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i style=\"color: var(--color-500)\" class=\"glyphicons glyphicons-bin\"></i>\n </div>\n </button>\n </div>\n\n <!-- Cargar Archivo -->\n <div class=\"btn-fileupload-claro\" [ngClass]=\"{ 'min-width-100': !verConvertir, 'min-width-20': verConvertir }\">\n <p-fileUpload #fubauto mode=\"basic\" [auto]=\"true\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"\n chooseLabel=\"{{'link_subirarchivos' | translate}}\" (onSelect)=\"cargarNuevo($event, fubauto)\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"pi pi-trash\"></i>\n </div>\n </p-fileUpload>\n </div>\n </div>\n }\n\n <!-- ARCHIVO-->\n @if(!archivoSeleccionado.expanded){\n\n <div class=\"flex align-items-center\">\n <h1 class=\"text-xl mt-2 mb-4 mr-3\">Archivo: </h1>\n <h5 class=\"text-sm mt-2 mb-4\"> {{archivoSeleccionado.label}} </h5>\n </div>\n\n <div class=\"flex justify-content-end\">\n @if(archivoSeleccionado.label.includes('.html')){\n\n <!--EDITAR HTML-->\n <button type=\"button\" pButton pRipple icon=\"pi pi-code text-xl color-500\" (click)=\"editarAction()\"\n class=\"mr-3 w-full p-button-secondary boton-accion-principal \" label=\"Editar HTML\">\n </button>\n }\n\n <!-- DESCARGAR-->\n <button pButton pRipple class=\"mr-3 w-full p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_descargar' | translate}}\" (click)=\"descargarAnexo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:descargar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-download color-500\"></i>\n </div>\n </button>\n\n <!--ELIMINAR-->\n <button pButton pRipple class=\"w-full p-button-secondary boton-accion-principal color-500\"\n label=\"{{'link_eliminar' | translate}}\" (click)=\"eliminarArchivo()\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\">\n <div class=\"contenedor-icono-acciones-principal\">\n <i class=\"glyphicons glyphicons-bin color-500\"></i>\n </div>\n </button>\n </div>\n }\n </div>\n }\n\n @if(archivoSeleccionado.expanded && isVisualizarCrearCaperta){\n <div class=\"card\">\n\n <h5 class=\"mt-2\"><i class=\"glyphicons glyphicons-note\"></i> Nueva carpeta</h5>\n\n <form #miFormulario=\"ngForm\">\n <!-- campos -->\n <div class=\"flex mb-3\">\n <!-- Nombre -->\n <div class=\"w-full p-0 mb-0\">\n <span class=\"p-float-label mr-2\">\n <input pInputText id=\"id_numero_de_evento\" [(ngModel)]=\"nomNuevaCarpeta\" required\n name=\"nombreCarpeta\">\n <label for=\"id_numero_de_evento\">{{'nombre' | translate}} *</label>\n </span>\n </div>\n\n <div class=\"flex justify-content-end\">\n <!--Guardar Carpeta-->\n <button pButton pRipple class=\"mr-2 p-button-raised\" icon=\"glyphicons glyphicons-floppy-save\"\n [label]=\"('link_guardar' | translate)\" (click)=\"guardarCarpeta()\">\n </button>\n </div>\n </div>\n </form>\n\n </div>\n }\n <!-- EDITOR DE HTML -->\n <div *ngIf=\"isHtml() && mostrarEditor\">\n\n <div class=\"flex justify-content-end align-items-center mb-3\">\n <!-- Bot\u00F3n guardar HTML -->\n <button pButton pRipple label=\"{{'link_guardar' | translate }}\" (click)=\"guardarHtml()\"\n icon=\"glyphicons glyphicons-floppy-save\" class=\"p-button-raised\"\n *ngIf=\"controlFuncionService.getControlFuncionalidad('seguplacor:guardar')\"></button>\n </div>\n\n <p-editor id=\"editor\" [style]=\"{ height: '500px' }\" required [(ngModel)]=\"modificarHTML\"\n name=\"htmlPublicacion\"></p-editor>\n\n </div>\n </div>\n</div>\n\n@if(isMostrarPopupConvertir){\n<app-popup-convertir-plantillas (regresar)=\"regresarPopupConvertir($event)\"></app-popup-convertir-plantillas>\n}\n\n</div>", styles: [":host ::ng-deep .p-fluid .p-fileupload .p-button{width:100%;background:var(--color-85);border:none;box-shadow:none;color:var(--color-500);border-radius:10px}:host ::ng-deep .p-fluid .p-fileupload .p-button:hover{background:var(--color-100)!important}:host ::ng-deep .min-width-20{min-width:20%}:host ::ng-deep .min-width-100{min-width:30%}#cargue-plantillas .btn-fileupload-claro .p-button{background:var(--color-85)!important;color:var(--color-500)!important;border-radius:10px}#cargue-plantillas .btn-fileupload-claro .p-button:hover{background:var(--color-100)!important}#cargue-plantillas .btn-fileupload-claro .contenedor-icono-acciones-principal{background:#fff;margin-right:8px;padding:12px}#cargue-plantillas .btn-fileupload-claro .boton-accion-principal i{margin:0!important}#cargue-plantillas .contenedor-icono-acciones-principal{display:inline-block;background-color:#fff;border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center}#cargue-plantillas .boton-accion-principal i{margin-right:0!important}:host ::ng-deep span.p-button-icon.p-button-icon-left.pi.pi-paperclip{padding:6px;background:#fff;border:none;border-radius:50%;color:var(--color-400)}:host ::ng-deep span.p-button-icon.p-button-icon-left.pi.pi-code{background:#fff;padding:5px;border-radius:50%}\n"] }]
15877
15886
  }], ctorParameters: () => [{ type: PlantillasService }, { type: AuthService }, { type: i7$1.TranslateService }, { type: CargarControlFuncionalidadService }, { type: i7.ConfirmationService }, { type: ToastService }, { type: CargarArchivosService }, { type: EncriptadoBasicoService }, { type: GeneralPipe }, { type: UtilsService }], propDecorators: { popupConvertirPlantillasComponent: [{
15878
15887
  type: ViewChild,
15879
15888
  args: [PopupConvertirPlantillasComponent]