keevo-components 1.8.351 → 1.8.353

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.
@@ -122,6 +122,8 @@ import { OrganizationChartModule } from 'primeng/organizationchart';
122
122
  import { AutoCompleteModule } from 'primeng/autocomplete';
123
123
  import * as vkbeautify from 'vkbeautify';
124
124
  import * as i1$7 from '@angular/platform-browser';
125
+ import * as i3$4 from 'ng2-pdf-viewer';
126
+ import { PdfViewerModule } from 'ng2-pdf-viewer';
125
127
 
126
128
  class BaseComponentButton {
127
129
  constructor() {
@@ -1472,7 +1474,8 @@ class KvTableComponent {
1472
1474
  this.definirColunasConfiguraveis(config);
1473
1475
  });
1474
1476
  this.columnsFilter = computed(() => {
1475
- return this.tableConfig()?.columns.filter((col) => !col.fixedColumn);
1477
+ const dynamicColumns = (this.tableConfig()?.columns ?? []).filter(col => !col.fixedColumn);
1478
+ return [...dynamicColumns, ...this.deletedColuns];
1476
1479
  });
1477
1480
  this.isRowSelectable = this.isRowSelectable.bind(this);
1478
1481
  }
@@ -8489,6 +8492,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
8489
8492
  }]
8490
8493
  }] });
8491
8494
 
8495
+ class KvFileViewerNovoComponent {
8496
+ constructor(sanitizer) {
8497
+ this.sanitizer = sanitizer;
8498
+ this.width = '100%';
8499
+ this.height = '500px';
8500
+ this.sanitizedPdfSrc = '';
8501
+ }
8502
+ ngOnInit() {
8503
+ if (this.type == 'text/xml' || this.type == 'application/xml')
8504
+ this.visualizarXml();
8505
+ }
8506
+ ngOnChanges(changes) {
8507
+ if (changes['arquivo'] && this.arquivo) {
8508
+ if (this.type == 'application/pdf')
8509
+ this.visualizarPDF();
8510
+ else
8511
+ this.visualizarIframe();
8512
+ }
8513
+ }
8514
+ visualizarIframe() {
8515
+ this.sanitizedPdfSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.arquivo);
8516
+ }
8517
+ getSanitizer(url) {
8518
+ return this.sanitizer.bypassSecurityTrustResourceUrl(url);
8519
+ }
8520
+ visualizarPDF() {
8521
+ let reader = new FileReader();
8522
+ reader.onload = (e) => {
8523
+ this.pdffile = e.target.result;
8524
+ };
8525
+ reader.readAsArrayBuffer(this.blob);
8526
+ }
8527
+ async visualizarXml() {
8528
+ const text = await new Response(this.blob).text();
8529
+ this.xmlFormat = vkbeautify.xml(text);
8530
+ }
8531
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoComponent, deps: [{ token: i1$7.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
8532
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: KvFileViewerNovoComponent, selector: "kv-file-viewer-novo", inputs: { arquivo: "arquivo", type: "type", blob: "blob", width: "width", height: "height" }, usesOnChanges: true, ngImport: i0, template: "<img class=\"img\" *ngIf=\"type.match('image')\" [src]=\"sanitizedPdfSrc\" />\r\n\r\n<iframe\r\n class=\"txt-pdf\"\r\n *ngIf=\"type == 'text/plain'\"\r\n [src]=\"sanitizedPdfSrc\"\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n>\r\n</iframe>\r\n\r\n<div *ngIf=\"xmlFormat\" class=\"txt-pdf xml-viewer\">\r\n <pre lang=\"xml\">\r\n {{ xmlFormat }}\r\n </pre>\r\n</div>\r\n\r\n<pdf-viewer\r\n class=\"txt-pdf-viewer\"\r\n [src]=\"pdffile\"\r\n *ngIf=\"type == 'application/pdf'\"\r\n [rotation]=\"0\"\r\n [original-size]=\"true\"\r\n [show-all]=\"true\"\r\n [fit-to-page]=\"true\"\r\n [zoom]=\"1\" \r\n [stick-to-page]=\"false\"\r\n [render-text]=\"true\"\r\n [external-link-target]=\"'blank'\"\r\n [autoresize]=\"true\"\r\n [show-borders]=\"false\"\r\n [ngStyle]=\"{ width: width, height: height }\"\r\n></pdf-viewer>\r\n\r\n", styles: [".img{width:100%;height:100%;overflow:auto}.txt-pdf-viewer{overflow:auto}.xml-viewer{overflow:auto;font-size:13px}.xml-viewer .tag{color:#6f517e}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$4.PdfViewerComponent, selector: "pdf-viewer", inputs: ["src", "c-maps-url", "page", "render-text", "render-text-mode", "original-size", "show-all", "stick-to-page", "zoom", "zoom-scale", "rotation", "external-link-target", "autoresize", "fit-to-page", "show-borders"], outputs: ["after-load-complete", "page-rendered", "pages-initialized", "text-layer-rendered", "error", "on-progress", "pageChange"] }] }); }
8533
+ }
8534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoComponent, decorators: [{
8535
+ type: Component,
8536
+ args: [{ selector: 'kv-file-viewer-novo', template: "<img class=\"img\" *ngIf=\"type.match('image')\" [src]=\"sanitizedPdfSrc\" />\r\n\r\n<iframe\r\n class=\"txt-pdf\"\r\n *ngIf=\"type == 'text/plain'\"\r\n [src]=\"sanitizedPdfSrc\"\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n>\r\n</iframe>\r\n\r\n<div *ngIf=\"xmlFormat\" class=\"txt-pdf xml-viewer\">\r\n <pre lang=\"xml\">\r\n {{ xmlFormat }}\r\n </pre>\r\n</div>\r\n\r\n<pdf-viewer\r\n class=\"txt-pdf-viewer\"\r\n [src]=\"pdffile\"\r\n *ngIf=\"type == 'application/pdf'\"\r\n [rotation]=\"0\"\r\n [original-size]=\"true\"\r\n [show-all]=\"true\"\r\n [fit-to-page]=\"true\"\r\n [zoom]=\"1\" \r\n [stick-to-page]=\"false\"\r\n [render-text]=\"true\"\r\n [external-link-target]=\"'blank'\"\r\n [autoresize]=\"true\"\r\n [show-borders]=\"false\"\r\n [ngStyle]=\"{ width: width, height: height }\"\r\n></pdf-viewer>\r\n\r\n", styles: [".img{width:100%;height:100%;overflow:auto}.txt-pdf-viewer{overflow:auto}.xml-viewer{overflow:auto;font-size:13px}.xml-viewer .tag{color:#6f517e}\n"] }]
8537
+ }], ctorParameters: () => [{ type: i1$7.DomSanitizer }], propDecorators: { arquivo: [{
8538
+ type: Input
8539
+ }], type: [{
8540
+ type: Input
8541
+ }], blob: [{
8542
+ type: Input
8543
+ }], width: [{
8544
+ type: Input
8545
+ }], height: [{
8546
+ type: Input
8547
+ }] } });
8548
+
8549
+ class KvFileViewerNovoModule {
8550
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
8551
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoModule, declarations: [KvFileViewerNovoComponent], imports: [CommonModule,
8552
+ PdfViewerModule], exports: [KvFileViewerNovoComponent] }); }
8553
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoModule, imports: [CommonModule,
8554
+ PdfViewerModule] }); }
8555
+ }
8556
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvFileViewerNovoModule, decorators: [{
8557
+ type: NgModule,
8558
+ args: [{
8559
+ declarations: [KvFileViewerNovoComponent],
8560
+ imports: [
8561
+ CommonModule,
8562
+ PdfViewerModule
8563
+ ],
8564
+ exports: [KvFileViewerNovoComponent]
8565
+ }]
8566
+ }] });
8567
+
8492
8568
  class KeevoComponentsModule {
8493
8569
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeevoComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
8494
8570
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: KeevoComponentsModule, imports: [KvAvatarModule,
@@ -8515,6 +8591,7 @@ class KeevoComponentsModule {
8515
8591
  KvGIconModule,
8516
8592
  KvFilterCardModule,
8517
8593
  KvFileViewerModule,
8594
+ KvFileViewerNovoModule,
8518
8595
  KvFilterFieldsetModule], exports: [KvAvatarModule,
8519
8596
  KvButtonsModule,
8520
8597
  KvButtonModule,
@@ -8540,7 +8617,8 @@ class KeevoComponentsModule {
8540
8617
  KvGIconModule,
8541
8618
  KvFilterCardModule,
8542
8619
  KvFileViewerModule,
8543
- KvFilterFieldsetModule] }); }
8620
+ KvFilterFieldsetModule,
8621
+ KvFileViewerNovoModule] }); }
8544
8622
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeevoComponentsModule, imports: [KvAvatarModule,
8545
8623
  KvButtonsModule,
8546
8624
  KvButtonModule,
@@ -8565,6 +8643,7 @@ class KeevoComponentsModule {
8565
8643
  KvGIconModule,
8566
8644
  KvFilterCardModule,
8567
8645
  KvFileViewerModule,
8646
+ KvFileViewerNovoModule,
8568
8647
  KvFilterFieldsetModule, KvAvatarModule,
8569
8648
  KvButtonsModule,
8570
8649
  KvButtonModule,
@@ -8590,7 +8669,8 @@ class KeevoComponentsModule {
8590
8669
  KvGIconModule,
8591
8670
  KvFilterCardModule,
8592
8671
  KvFileViewerModule,
8593
- KvFilterFieldsetModule] }); }
8672
+ KvFilterFieldsetModule,
8673
+ KvFileViewerNovoModule] }); }
8594
8674
  }
8595
8675
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeevoComponentsModule, decorators: [{
8596
8676
  type: NgModule,
@@ -8621,6 +8701,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
8621
8701
  KvGIconModule,
8622
8702
  KvFilterCardModule,
8623
8703
  KvFileViewerModule,
8704
+ KvFileViewerNovoModule,
8624
8705
  KvFilterFieldsetModule,
8625
8706
  ],
8626
8707
  exports: [
@@ -8650,6 +8731,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
8650
8731
  KvFilterCardModule,
8651
8732
  KvFileViewerModule,
8652
8733
  KvFilterFieldsetModule,
8734
+ KvFileViewerNovoModule
8653
8735
  ],
8654
8736
  }]
8655
8737
  }] });
@@ -9143,5 +9225,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImpor
9143
9225
  * Generated bundle index. Do not edit.
9144
9226
  */
9145
9227
 
9146
- export { BaseApiService, BaseChartComponent, BaseComponent, BaseComponentButton, BaseComponentCrud, BaseComponentCrudForm, BaseComponentCrudList, BaseComponentDropDown, BaseComponentDropDownExternal, BaseComponentInput, BaseComponentMultiSelect, BasecomponentTable, BreadcrumbsService, CapitalizePipe, ChatService, ComponentProviders, ComponentService, CpfCnpjPipe, DocsService, DragDirective, DynamicInputDirective, FormService, ImageCutterService, ImagensService, KeevoComponentsModule, KeevoValidators, KvAvatarComponent, KvAvatarModule, KvButtonComponent, KvButtonModule, KvButtonPersonalizeComponent, KvButtonPopupComponent, KvButtonSecondaryComponent, KvButtonSuccessComponent, KvButtonsModule, KvCarouselComponent, KvCarouselModule, KvChartComponent, KvChartModule, KvCheckComponent, KvDropdownComponent, KvEditorComponent, KvErrorComponent, KvFileUploadComponent, KvFileUploadModule, KvFileViewerComponent, KvFileViewerModule, KvFilterCardComponent, KvFilterCardModule, KvFilterFieldsetComponent, KvFilterFieldsetModule, KvGIconComponent, KvGIconModule, KvHomeCardComponent, KvHomeCardModule, KvImageUploadComponent, KvImageUploadModule, KvInputCalendarComponent, KvInputMaskComponent, KvInputNumberComponent, KvInputPasswordComponent, KvInputTextCheckboxComponent, KvInputTextComponent, KvInputTextareaComponent, KvInputTimeComponent, KvInputsModule, KvLayoutComponent, KvLayoutModule, KvLoaderComponent, KvLoaderModule, KvLoaderService, KvLoginComponent, KvLoginModule, KvModalComponent, KvModalModule, KvMultiSelectComponent, KvOrgchartComponent, KvOrgchartModule, KvPageFormComponent, KvPageFormModule, KvPageStepperComponent, KvPageStepperodule, KvPickListComponent, KvPickListModule, KvProgressBarModule, KvRadioGroupComponent, KvReportComponent, KvReportModule, KvSelectButtonComponent, KvSelectButtonsComponent, KvStepperComponent, KvStepperModule, KvSwitchComponent, KvTableComponent, KvTableEditComponent, KvTableEditModule, KvTableExpandableComponent, KvTableExpandableModule, KvTableModule, KvTreeViewComponent, KvTreetableComponent, KvTreetableModule, KvWorkspaceModule, KvtreeViewModule, MaskPipe, NotificationService, ObjectService, OrgChartService, PeriodosChart, PipesModule, PrimeNgModule, ProgressBarComponent, TablePaginate, TelefonePipe, TemplateDirective, TranslatePrimeng, WorkspaceComponent, getOrExecute, kvErrorModule, loading, mapToMenuItem };
9228
+ export { BaseApiService, BaseChartComponent, BaseComponent, BaseComponentButton, BaseComponentCrud, BaseComponentCrudForm, BaseComponentCrudList, BaseComponentDropDown, BaseComponentDropDownExternal, BaseComponentInput, BaseComponentMultiSelect, BasecomponentTable, BreadcrumbsService, CapitalizePipe, ChatService, ComponentProviders, ComponentService, CpfCnpjPipe, DocsService, DragDirective, DynamicInputDirective, FormService, ImageCutterService, ImagensService, KeevoComponentsModule, KeevoValidators, KvAvatarComponent, KvAvatarModule, KvButtonComponent, KvButtonModule, KvButtonPersonalizeComponent, KvButtonPopupComponent, KvButtonSecondaryComponent, KvButtonSuccessComponent, KvButtonsModule, KvCarouselComponent, KvCarouselModule, KvChartComponent, KvChartModule, KvCheckComponent, KvDropdownComponent, KvEditorComponent, KvErrorComponent, KvFileUploadComponent, KvFileUploadModule, KvFileViewerComponent, KvFileViewerModule, KvFileViewerNovoComponent, KvFileViewerNovoModule, KvFilterCardComponent, KvFilterCardModule, KvFilterFieldsetComponent, KvFilterFieldsetModule, KvGIconComponent, KvGIconModule, KvHomeCardComponent, KvHomeCardModule, KvImageUploadComponent, KvImageUploadModule, KvInputCalendarComponent, KvInputMaskComponent, KvInputNumberComponent, KvInputPasswordComponent, KvInputTextCheckboxComponent, KvInputTextComponent, KvInputTextareaComponent, KvInputTimeComponent, KvInputsModule, KvLayoutComponent, KvLayoutModule, KvLoaderComponent, KvLoaderModule, KvLoaderService, KvLoginComponent, KvLoginModule, KvModalComponent, KvModalModule, KvMultiSelectComponent, KvOrgchartComponent, KvOrgchartModule, KvPageFormComponent, KvPageFormModule, KvPageStepperComponent, KvPageStepperodule, KvPickListComponent, KvPickListModule, KvProgressBarModule, KvRadioGroupComponent, KvReportComponent, KvReportModule, KvSelectButtonComponent, KvSelectButtonsComponent, KvStepperComponent, KvStepperModule, KvSwitchComponent, KvTableComponent, KvTableEditComponent, KvTableEditModule, KvTableExpandableComponent, KvTableExpandableModule, KvTableModule, KvTreeViewComponent, KvTreetableComponent, KvTreetableModule, KvWorkspaceModule, KvtreeViewModule, MaskPipe, NotificationService, ObjectService, OrgChartService, PeriodosChart, PipesModule, PrimeNgModule, ProgressBarComponent, TablePaginate, TelefonePipe, TemplateDirective, TranslatePrimeng, WorkspaceComponent, getOrExecute, kvErrorModule, loading, mapToMenuItem };
9147
9229
  //# sourceMappingURL=keevo-components.mjs.map