ngx-smz-ui 3.1.11 → 3.1.15

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputtextarea'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('@angular/flex-layout/extended'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('primeng/inputnumber'), require('@angular/common/http'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('primeng/utils'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('primeng/accordion'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('@ngxs/router-plugin'), require('primeng/sidebar'), require('primeng/selectbutton'), require('ngx-pipes'), require('primeng/badge'), require('primeng/contextmenu'), require('primeng/tree'), require('chart.js/auto'), require('chart.js/helpers'), require('moment'), require('ngx-device-detector')) :
3
- typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputtextarea', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', '@angular/flex-layout/extended', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', 'primeng/inputnumber', '@angular/common/http', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'primeng/utils', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'primeng/accordion', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', '@ngxs/router-plugin', 'primeng/sidebar', 'primeng/selectbutton', 'ngx-pipes', 'primeng/badge', 'primeng/contextmenu', 'primeng/tree', 'chart.js/auto', 'chart.js/helpers', 'moment', 'ngx-device-detector'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-smz-ui'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global['lodash-es'], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputtextarea, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.ng.flexLayout.extended, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.inputnumber, global.ng.common.http, global.ng.animations, global.dom, global['until-destroy'], global.progressbar, global.utils, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.accordion, global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global['router-plugin'], global.sidebar, global.selectbutton, global.ngxpipes, global.badge, global.contextmenu, global.tree, global.chartjaauto, global.chartjshelpers, global.moment, global.ngxDeviceDetector));
5
- }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7$1, i5$1, i5, message, progressspinner, i7, i1$6, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$7, i3$1, i2, i4$1, i1$8, i1$9, i3$2, i1$a, i4$2, i1$c, i1$b, i1$d, i1$e, fileupload, i11, i1$f, animations, dom, untilDestroy, progressbar, utils, angular2Uuid, angularJwt, i9, i1$g, i3$3, i3$4, animations$1, localePt, menubar, routerPlugin, i3$5, i4$3, i3$6, i5$2, i1$h, i2$1, Chart, helpers, moment_, ngxDeviceDetector) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputtextarea'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('@angular/flex-layout/extended'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('primeng/inputnumber'), require('@angular/common/http'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('primeng/utils'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('primeng/accordion'), require('@ngxs/router-plugin'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('primeng/sidebar'), require('primeng/selectbutton'), require('ngx-pipes'), require('primeng/badge'), require('primeng/contextmenu'), require('primeng/tree'), require('chart.js/auto'), require('chart.js/helpers'), require('moment'), require('ngx-device-detector')) :
3
+ typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputtextarea', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', '@angular/flex-layout/extended', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', 'primeng/inputnumber', '@angular/common/http', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'primeng/utils', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'primeng/accordion', '@ngxs/router-plugin', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', 'primeng/sidebar', 'primeng/selectbutton', 'ngx-pipes', 'primeng/badge', 'primeng/contextmenu', 'primeng/tree', 'chart.js/auto', 'chart.js/helpers', 'moment', 'ngx-device-detector'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-smz-ui'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global['lodash-es'], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputtextarea, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.ng.flexLayout.extended, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.inputnumber, global.ng.common.http, global.ng.animations, global.dom, global['until-destroy'], global.progressbar, global.utils, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.accordion, global['router-plugin'], global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global.sidebar, global.selectbutton, global.ngxpipes, global.badge, global.contextmenu, global.tree, global.chartjaauto, global.chartjshelpers, global.moment, global.ngxDeviceDetector));
5
+ }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7$1, i5$1, i5, message, progressspinner, i7, i1$6, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$7, i3$1, i2, i4$1, i1$8, i1$9, i3$2, i1$a, i4$2, i1$c, i1$b, i1$d, i1$e, fileupload, i11, i1$f, animations, dom, untilDestroy, progressbar, utils, angular2Uuid, angularJwt, i9, i1$g, i3$3, i3$4, routerPlugin, animations$1, localePt, menubar, i3$5, i4$3, i3$6, i5$2, i1$h, i2$1, Chart, helpers, moment_, ngxDeviceDetector) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -7708,7 +7708,7 @@
7708
7708
  return SmzTableComponent;
7709
7709
  }());
7710
7710
  SmzTableComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzTableComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: TableEditableService }, { token: TableFormsService }, { token: SmzDialogsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
7711
- SmzTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzTableComponent, selector: "smz-ui-table", inputs: { state: "state", items: "items", loading: "loading" }, outputs: { selectionChange: "selectionChange", create: "create", update: "update", delete: "delete" }, providers: [TableEditableService, TableFormsService], queries: [{ propertyName: "templates", predicate: i1$7.PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: i5$1.Table, descendants: true }, { propertyName: "columnMultiselect", first: true, predicate: ["columnMultiselect"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"state | tableContext as context; else noStateTemplate\">\n\n <ng-container *ngIf=\"(context.state.emptyFeedback != null && (context.state.emptyFeedback.extraInfo || context.state.emptyFeedback.image || context.state.emptyFeedback.actionButtons)) && (items != null && items.length === 0) && context.state.emptyFeedback.isFeatured; else tableTemplate\">\n <smz-data-info\n [image]=\"context.state.emptyFeedback.image\"\n [message]=\"context.state.emptyFeedback.message\"\n [callbackInfo]=\"context.state.emptyFeedback.extraInfo\"\n [actions]=\"context.state.emptyFeedback.actionButtons\">\n\n <ng-template pTemplate=\"actions\">\n <ng-container *ngTemplateOutlet=\"emptyActionsTemplate; context: { $implicit: {} }\"></ng-container>\n </ng-template>\n\n </smz-data-info>\n </ng-container>\n\n <ng-template #tableTemplate>\n\n <ng-container *ngIf=\"(items | cloneTableItems : context) as clonedData\">\n\n <p-table #dt\n dataKey=\"id\"\n editMode=\"row\"\n [value]=\"clonedData.items\"\n [(selection)]=\"selectedItems\"\n\n [styleClass]=\"'p-datatable-smz-ui-table' + (context.state.styles.striped ? ' p-datatable-striped' : '') + (context.state.styles.showGrid ? ' p-datatable-show-grid' : '') + (context.state.styles.size === 'small' ? ' p-datatable-sm' : '') + (context.state.styles.size === 'large' ? ' p-datatable-lg' : '')\"\n [rowHover]=\"context.state.actions.rowBehavior.hoverable\"\n [rows]=\"context.state.pagination.rows\"\n [showCurrentPageReport]=\"context.state.pagination.pageReport.isVisible\"\n [rowsPerPageOptions]=\"context.state.pagination.rowsPerPageOptions\"\n [loading]=\"loading\"\n [paginator]=\"context.state.pagination.isVisible\"\n [currentPageReportTemplate]=\"context.state.pagination.pageReport.template\"\n [sortField]=\"context.state.sort.field\"\n [sortMode]=\"context.state.sort.mode\"\n [sortOrder]=\"context.state.sort.order\"\n [multiSortMeta]=\"context.state.sort.multiSortMeta\"\n [scrollable]=\"context.state.viewport.scrollable\"\n [scrollHeight]=\"context.state.viewport.scrollHeight\"\n [filterDelay]=\"0\"\n [globalFilterFields]=\"context.globalFilter\"\n\n [columns]=\"context.visibleColumns\"\n [frozenColumns]=\"context.frozenColumns\"\n [frozenWidth]=\"context.state.frozen.isEnabled ? context.state.frozen.width : null\"\n [resizableColumns]=\"context.state.viewport.resizableColumns\"\n [columnResizeMode]=\"context.state.viewport.columnResizeMode\"\n\n (onPage)=\"onPage($event)\"\n (selectionChange)=\"emitSelection($event)\"\n >\n\n <ng-template pTemplate=\"caption\" *ngIf=\"context.state.caption.isVisible\">\n\n <div class=\"p-grid p-nogutter p-justify-start p-align-center gap-2\">\n <span class=\"p-col database-title\">{{ state.caption.title }}</span>\n <ng-container *ngTemplateOutlet=\"captionTemplate; context: { $implicit: dt }\"></ng-container>\n <p-multiSelect\n #columnMultiselect\n *ngIf=\"context.state.caption.columnVisibility.showDropdownSelector\"\n class=\"p-ml-2 p-col-12 p-md-2\"\n styleClass=\"w-full\"\n [options]=\"context.hideableColumns\"\n [(ngModel)]=\"selectedColumns\"\n placeholder=\"Colunas\"\n [selectedItemsLabel]=\"'{0} colunas vis\u00EDveis'\"\n optionLabel=\"name\"\n dataKey=\"field\"\n optionLabel=\"header\"\n [filter]=\"false\"\n (onChange)=\"updateColumnsVisibility(context)\"\n pTooltip=\"Escolha as colunas que deseja visualizar na tabela.\">\n </p-multiSelect>\n <button *ngIf=\"context.state.caption.rowSelection.isButtonVisible\" pButton [label]=\"context.state.caption.rowSelection.label\" class=\"p-button-outlined\" icon=\"fas fa-check-double\" (click)=\"onRowSelection(context)\" [disabled]=\"clonedData.showSkeleton\"></button>\n <button *ngIf=\"context.state.caption.clearFilters.isButtonVisible\" pButton [label]=\"context.state.caption.clearFilters.label\" class=\"p-button-outlined\" icon=\"pi pi-filter-slash\" (click)=\"clear(dt, context)\" [disabled]=\"clonedData.showSkeleton\"></button>\n <button *ngIf=\"context.state.editable.creation.isButtonVisible\" pButton [label]=\"context.state.editable.creation.buttonLabel\" class=\"p-button-outlined\" icon=\"fas fa-plus\" (click)=\"editableService.onRowCreateInit(dt, context)\" [disabled]=\"clonedData.showSkeleton || editableService.isEditing || editableService.isCreating || context.state.editable.creation.isButtonDisabled\"></button>\n <span *ngIf=\"context.state.caption.globalFilter.isVisible\" class=\"p-input-icon-left p-col-12\" [ngClass]=\"{ 'p-md-2': !context.state.caption.globalFilter.expanded }\">\n <i class=\"pi pi-search\"></i>\n <input #inputGlobal pInputText type=\"text\" styleClass=\"database-global-search\" (input)=\"dt.filterGlobal(inputGlobal.value, 'contains')\" [disabled]=\"clonedData.showSkeleton\" [placeholder]=\"context.state.caption.globalFilter.placeholder\" />\n </span>\n </div>\n\n <div *ngIf=\"toolbarTemplate != null\" class=\"p-grid p-nogutter p-align-center p-mt-2\" [ngClass]=\"'p-justify-' + context.state.caption.toolbarAlignment\">\n <ng-container *ngTemplateOutlet=\"toolbarTemplate; context: { $implicit: dt }\"></ng-container>\n </div>\n\n <!-- <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\" label=\"Exportar\"\n (click)=\"tableExporter.exportPdf(dt, context, dt.filteredValue != null ? dt.filteredValue : clonedData.items, context.state.title != null ? context.state.title : 'Exporta\u00E7\u00E3o')\"\n class=\"p-button-warning p-mr-2\" pTooltip=\"Exportar para PDF\" tooltipPosition=\"bottom\">\n </button> -->\n\n </ng-template>\n\n <!-- <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"context.state.caption.rowSelection.isEnabled\" [ngStyle]=\"{ width: context.state.caption.rowSelection.columnWidth }\">\n <ng-container *ngFor=\"let col of columns\">\n <col *ngIf=\"col.isVisible\" [ngStyle]=\"{ width: col.width }\">\n </ng-container>\n <col *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible|| context.state.editable.isEditable\" [ngStyle]=\"{ width: context.state.actions.customActions.columnWidth + 'px'}\">\n </colgroup>\n </ng-template> -->\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr [ngClass]=\"{ 'invisible-header': !context.state.header.isVisible }\">\n\n <th *ngIf=\"context.state.caption.rowSelection.isEnabled\" [ngStyle]=\"{ width: context.state.caption.rowSelection.columnWidth }\">\n <ng-container *ngIf=\"!context.state.actions.batchActions.isVisible\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </ng-container>\n </th>\n\n <ng-container *ngFor=\"let col of columns\">\n\n <ng-container *ngIf=\"context.state.viewport.resizableColumns; else nonResizable\">\n <ng-container *ngIf=\"col.isOrderable\">\n <th [pSortableColumn]=\"col.field\" pResizableColumn [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n\n <ng-container *ngIf=\"!col.isOrderable\">\n <th pResizableColumn [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n </ng-container>\n\n <ng-template #nonResizable>\n <ng-container *ngIf=\"col.isOrderable\">\n <th [pSortableColumn]=\"col.field\" [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n\n <ng-container *ngIf=\"!col.isOrderable\">\n <th [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n </ng-template>\n\n <ng-template #headerContent>\n <div class=\"p-d-flex p-jc-start p-ai-center\">\n <span class=\"p-mr-1\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\" *ngIf=\"!clonedData.showSkeleton && col.isOrderable\"></p-sortIcon>\n\n <ng-container *ngIf=\"!clonedData.showSkeleton\">\n <ng-container [ngSwitch]=\"col.filter.type\">\n\n <ng-container *ngSwitchCase=\"filterTypes.currency\">\n <p-columnFilter type=\"numeric\" currency=\"BRL\" [field]=\"col.field\" display=\"menu\"></p-columnFilter>\n <smz-column-filter type=\"numeric\" currency=\"BRL\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.numeric\">\n <smz-column-filter type=\"numeric\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.date\">\n <smz-column-filter type=\"date\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.text\">\n <smz-column-filter type=\"text\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.boolean\">\n <smz-column-filter type=\"boolean\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.dropdown\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField + '.id'\" matchMode=\"dropdown\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template pTemplate=\"header\">\n <div class=\"p-px-3 p-pt-3 p-pb-0\">\n <span class=\"p-text-bold\">{{ col.header }}</span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"filter\" let-value let-filter=\"filter\">\n <p-dropdown [ngModel]=\"value\" [options]=\"(clonedData.items != null ? clonedData.items : []) | uniqueFilter : filterField + '.id' : filterField\" placeholder=\"Todos\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" dataKey=\"id\"></p-dropdown>\n </ng-template>\n </smz-column-filter>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.multiselect\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField\" matchMode=\"in\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template pTemplate=\"header\">\n <div class=\"p-px-3 p-pt-3 p-pb-0\">\n <span class=\"p-text-bold\">{{ col.header }}</span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"filter\" let-value let-filter=\"filter\">\n <p-multiSelect [ngModel]=\"value\" [options]=\"(clonedData.items != null ? clonedData.items : []) | uniqueFilter : filterField + '.id' : filterField\" placeholder=\"Todos\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" dataKey=\"id\"></p-multiSelect>\n </ng-template>\n </smz-column-filter>\n </ng-container>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n <button *ngIf=\"context.state.caption.columnVisibility.showColumnHideButton\" pButton pRipple type=\"button\" icon=\"far fa-eye-slash\" class=\"p-button-rounded p-button-text p-button-plain\" (click)=\"hideColumn(col, context)\"></button>\n\n </div>\n </ng-template>\n\n </ng-container>\n\n <th *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible|| context.state.editable.isEditable\" [ngStyle]=\"{ width: context.state.actions.customActions.columnWidth + 'px'}\"></th>\n </tr>\n\n <tr *ngIf=\"context.state.actions.batchActions.isVisible\">\n <th [attr.colspan]=\"columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-start\">\n <p-tableHeaderCheckbox class=\"mr-4\"></p-tableHeaderCheckbox>\n <ng-container *ngIf=\"selectedItems?.length > 0\">\n <ng-container *ngFor=\"let batchItem of context.state.actions.batchActions.items\">\n <button *ngIf=\"batchItem.visible\" pButton [label]=\"batchItem.label\" class=\"p-button-rounded p-button-text p-button-plain animate__animated animate__fadeIn\" [ngClass]=\"batchItem.styleClass\" [icon]=\"batchItem.icon\" (click)=\"batchItem.command(selectedItems); selectedItems = [];\" [disabled]=\"batchItem.disabled\" [pTooltip]=\"batchItem.tooltip\"></button>\n </ng-container>\n </ng-container>\n\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-item let-editing=\"editing\" let-rowIndex=\"rowIndex\" let-columns=\"columns\">\n <tr #editableRowElement\n [pEditableRow]=\"item\"\n tableItemAction\n [isClickable]=\"context.state.actions.rowBehavior.isClickable\"\n [callback]=\"context.state.actions.rowBehavior.clickCallback\"\n [item]=\"item\"\n class=\"p-selectable-row\"\n [ngClass]=\"{ 'highlight-row': item?.id === state.actions.rowBehavior.highlights }\"\n >\n\n <td *ngIf=\"context.state.caption.rowSelection.isEnabled\" furyClickStopPropagation [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n </td>\n\n <ng-container *ngFor=\"let col of columns\">\n\n <ng-container *ngIf=\"clonedData.showSkeleton; else dataTemplate\">\n <td><p-skeleton width=\"100%\" height=\"1rem\"></p-skeleton></td>\n </ng-container>\n\n <ng-template #dataTemplate>\n\n <td [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <span class=\"p-column-title\">{{ col.header }}</span>\n\n <p-cellEditor>\n\n <!-- CELULAR COM EDITOR -->\n <ng-template pTemplate=\"input\">\n <ng-container [ngSwitch]=\"col.editable.type\">\n <ng-container *ngSwitchCase=\"editableTypes.none\">\n </ng-container>\n\n <ng-container *ngSwitchCase=\"editableTypes.custom\">\n <ng-container *ngTemplateOutlet=\"editableTemplate; context: { $implicit: item, col: col }\"></ng-container>\n </ng-container>\n\n <!-- INPUT TEXT -->\n <ng-container *ngSwitchCase=\"editableTypes.text\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <input pInputText type=\"text\" [formControl]=\"$any(control)\" style=\"width: 100%;\">\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT NUMBER -->\n <ng-container *ngSwitchCase=\"editableTypes.number\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-inputNumber [formControl]=\"$any(control)\" [mode]=\"$any(col.editable.data).mode\" [minFractionDigits]=\"$any(col.editable.data).minFractionDigits\" [maxFractionDigits]=\"$any(col.editable.data).maxFractionDigits\"></p-inputNumber>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT SWITCH -->\n <ng-container *ngSwitchCase=\"editableTypes.switch\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-inputSwitch [formControl]=\"$any(control)\"></p-inputSwitch>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT TEXT AREA -->\n <ng-container *ngSwitchCase=\"editableTypes.area\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <textarea pInputTextarea type=\"text\" [formControl]=\"$any(control)\" [rows]=\"$any(col.editable.data).rows\" required style=\"width: 100%;\"></textarea>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT DROPDOWN -->\n <ng-container *ngSwitchCase=\"editableTypes.dropdown\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-dropdown [formControl]=\"$any(control)\" styleClass=\"w-full\" [options]=\"col.editable.data | editableSource\" optionLabel=\"name\" dataKey=\"id\" [placeholder]=\"$any(col.editable.data).placeholder\" [showClear]=\"!col.editable.validatorsPreset?.isRequired\"></p-dropdown>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT CALENDAR -->\n <ng-container *ngSwitchCase=\"editableTypes.calendar\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-calendar [formControl]=\"$any(control)\" styleClass=\"w-full\" [ngClass]=\"{ 'p-pl-5': !control.valid }\"></p-calendar>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <!-- CELULAR COM CONTE\u00DADO -->\n <ng-template pTemplate=\"output\">\n <ng-container [ngSwitch]=\"col.content.type\">\n <ng-container *ngSwitchCase=\"contentTypes.custom\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: item, col: col }\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.currency\">\n R$ {{ (item | tableContent : col.field).result }}\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.calendar\">\n {{ (item | tableContent : col.field).result | date: col.content.data['format'] }}\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.text\">\n <div [innerHtml]=\"(item | tableContent : col.field).result\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.dataTransform\">\n <ng-container *ngIf=\"(item | tableContent : col.field) as contentData\">\n {{ $any(col.content.data).callback(contentData.result, item) }}\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.icon\">\n <ng-container *ngIf=\"(col.content.data['matches'] | contentIconMatches : (item | tableContent : col.field).result) as match\">\n <i *ngIf=\"match != null\" [ngClass]=\"match.icon + ' ' + match.class\" [pTooltip]=\"match.tooltip\"></i>\n </ng-container>\n </ng-container>\n </ng-container>\n\n </ng-template>\n </p-cellEditor>\n\n </td>\n\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable\">\n\n <td [ngStyle]=\"{ 'text-align': 'left' }\">\n\n <div class=\"p-grid p-nogutter p-align-center p-justify-start\">\n <ng-container *ngIf=\"clonedData.showSkeleton; else menuTemplate\">\n <div class=\"w-full\">\n <p-skeleton width=\"100%\" height=\"1rem\"></p-skeleton>\n </div>\n </ng-container>\n\n <ng-template #menuTemplate>\n\n <!-- SEM EDITAR -->\n <ng-container *ngIf=\"!editing\">\n <button *ngIf=\"context.state.editable.update.isButtonVisible\" pButton pRipple type=\"button\" icon=\"pi pi-pencil\" (click)=\"editableService.onRowEditInit(item)\" class=\"p-button-rounded p-button-text p-mx-1\" [disabled]=\"editableService.isEditing || editableService.isCreating || context.state.editable.update.isButtonDisabled\" pInitEditableRow></button>\n <button *ngIf=\"context.state.editable.remove.isButtonVisible\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" (click)=\"editableService.onRowRemove($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-secondary p-mx-1\" [disabled]=\"editableService.isEditing || editableService.isCreating || context.state.editable.remove.isButtonDisabled\"></button>\n </ng-container>\n\n <!-- EDITANDO -->\n <ng-container *ngIf=\"editing\">\n\n <ng-container *ngIf=\"editableService.context[item.id] as editableContext\">\n <!-- COM LOADING -->\n <ng-container *ngIf=\"editableContext.isLoading\">\n <button pButton pRipple type=\"button\" icon=\"fas fa-sync fa-spin\" [disabled]=\"true\" class=\"p-button-rounded p-button-text p-button-info p-mr-2\"></button>\n </ng-container>\n\n <!-- SEM LOADING -->\n <ng-container *ngIf=\"!editableContext.isLoading\">\n\n <!-- EDITANDO -->\n <ng-container *ngIf=\"!editableContext.hasErrors\">\n\n <!-- CRIANDO -->\n <ng-container *ngIf=\"item._context?.isCreating\">\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" (click)=\"editableService.onRowCreateSave($event, dt, editableRowElement, item)\" [disabled]=\"!editableContext.hasChanged || !editableService.context[item.id]?.form.valid\" class=\"p-button-rounded p-button-text p-button-success p-mr-2\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowCreateCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n </ng-container>\n\n <!-- ATUALIZANDO -->\n <ng-container *ngIf=\"item._context?.isUpdating\">\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" (click)=\"editableService.onRowEditSave($event, dt, editableRowElement, item)\" [disabled]=\"!editableContext.hasChanged || !editableService.context[item.id]?.form.valid\" class=\"p-button-rounded p-button-text p-button-success p-mr-2\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowEditCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n </ng-container>\n\n </ng-container>\n\n <!-- COM ERRORS -->\n <ng-container *ngIf=\"editableContext.hasErrors\">\n <p-overlayPanel #errorsOverlay appendTo=\"body\" [style]=\"{ width: '450px' }\">\n <ng-template pTemplate>\n <div [innerHtml]=\"editableContext.errors | contentErrors\"></div>\n </ng-template>\n </p-overlayPanel>\n <button pButton pRipple type=\"button\" icon=\"fas fa-exclamation-triangle\" [disabled]=\"false\" class=\"p-button-rounded p-button-text p-button-danger p-mr-2\" (click)=\"errorsOverlay.toggle($event)\"></button>\n\n <!-- CRIANDO -->\n <button *ngIf=\"item._context?.isCreating\" pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowCreateCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n\n <!-- ATUALIZANDO -->\n <button *ngIf=\"item._context?.isUpdating\" pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowEditCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n\n </ng-container>\n </ng-container>\n </ng-container>\n\n </ng-container>\n\n\n <!-- CUSTOM MENU -->\n <ng-container *ngIf=\"context.state.actions.customActions.isVisible && !editing\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n\n <!-- MENU -->\n <ng-container *ngIf=\"context.state.actions.menu.isVisible && !editing\">\n <ng-container *ngIf=\"(context.state.actions.menu.items | tableMenu : item) as itemMenu\">\n <p-menu #actionMenu [popup]=\"true\" [model]=\"itemMenu\" appendTo=\"body\" [ngClass]=\"{ 'p-ml-2': context.state.actions.customActions.isVisible }\"></p-menu>\n <button id=\"action-button\" type=\"button\" pButton icon=\"pi pi-bars\" (click)=\"actionMenu.toggle($event, item)\"></button>\n </ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\" [ngStyle]=\"{ 'text-align': 'center' }\">{{ context.state.emptyFeedback.message }}</td>\n </tr>\n </ng-template>\n </p-table>\n\n </ng-container>\n </ng-template>\n\n</ng-container>\n\n<ng-template #noStateTemplate>\n <ng-container *ngIf=\"emptyStateTemplate != null\">\n <ng-container *ngTemplateOutlet=\"emptyStateTemplate; context: { $implicit: {} }\"></ng-container>\n </ng-container>\n</ng-template>", components: [{ type: SmzDataInfoComponent, selector: "smz-data-info", inputs: ["image", "message", "actions", "callbackInfo", "callbackLabel"], outputs: ["clicked"] }, { type: i5__namespace$1.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollDelay", "virtualRowHeight", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "stateKey", "stateStorage", "editMode", "groupRowsBy", "minBufferPx", "maxBufferPx", "responsiveLayout", "breakpoint", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection"], outputs: ["selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { type: i1__namespace$c.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }, { type: i5__namespace$1.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5__namespace$1.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5__namespace$1.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: SmzColumnFilterComponent, selector: "smz-column-filter", inputs: ["currency", "display", "field", "matchMode", "showAddButton", "showMatchModes", "showOperator", "type"] }, { type: i4__namespace$2.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide"] }, { type: i5__namespace$1.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: i9__namespace.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { type: i5__namespace$1.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i11__namespace.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }, { type: i1__namespace$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1__namespace$9.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "numberOfMonths", "view", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: i2__namespace.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.InputText, selector: "[pInputText]" }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$1.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5__namespace$1.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TableItemActionsDirective, selector: "[tableItemAction]", inputs: ["isClickable", "item", "callback"] }, { type: i5__namespace$1.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i1__namespace$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$3.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace$1.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1__namespace$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5__namespace$1.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1__namespace.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe, "tableMenu": SmzTableMenuPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
7711
+ SmzTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzTableComponent, selector: "smz-ui-table", inputs: { state: "state", items: "items", loading: "loading" }, outputs: { selectionChange: "selectionChange", create: "create", update: "update", delete: "delete" }, providers: [TableEditableService, TableFormsService], queries: [{ propertyName: "templates", predicate: i1$7.PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: i5$1.Table, descendants: true }, { propertyName: "columnMultiselect", first: true, predicate: ["columnMultiselect"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"state | tableContext as context; else noStateTemplate\">\n\n <ng-container *ngIf=\"(context.state.emptyFeedback != null && (context.state.emptyFeedback.extraInfo || context.state.emptyFeedback.image || context.state.emptyFeedback.actionButtons)) && (items != null && items.length === 0) && context.state.emptyFeedback.isFeatured; else tableTemplate\">\n <smz-data-info\n [image]=\"context.state.emptyFeedback.image\"\n [message]=\"context.state.emptyFeedback.message\"\n [callbackInfo]=\"context.state.emptyFeedback.extraInfo\"\n [actions]=\"context.state.emptyFeedback.actionButtons\">\n\n <ng-template pTemplate=\"actions\">\n <ng-container *ngTemplateOutlet=\"emptyActionsTemplate; context: { $implicit: {} }\"></ng-container>\n </ng-template>\n\n </smz-data-info>\n </ng-container>\n\n <ng-template #tableTemplate>\n\n <ng-container *ngIf=\"(items | cloneTableItems : context) as clonedData\">\n\n <p-table #dt\n dataKey=\"id\"\n editMode=\"row\"\n [value]=\"clonedData.items\"\n [(selection)]=\"selectedItems\"\n\n [styleClass]=\"'p-datatable-smz-ui-table' + (context.state.styles.striped ? ' p-datatable-striped' : '') + (context.state.styles.showGrid ? ' p-datatable-show-grid' : '') + (context.state.styles.size === 'small' ? ' p-datatable-sm' : '') + (context.state.styles.size === 'large' ? ' p-datatable-lg' : '')\"\n [rowHover]=\"context.state.actions.rowBehavior.hoverable\"\n [rows]=\"context.state.pagination.rows\"\n [showCurrentPageReport]=\"context.state.pagination.pageReport.isVisible\"\n [rowsPerPageOptions]=\"context.state.pagination.rowsPerPageOptions\"\n [loading]=\"loading\"\n [paginator]=\"context.state.pagination.isVisible\"\n [currentPageReportTemplate]=\"context.state.pagination.pageReport.template\"\n [sortField]=\"context.state.sort.field\"\n [sortMode]=\"context.state.sort.mode\"\n [sortOrder]=\"context.state.sort.order\"\n [multiSortMeta]=\"context.state.sort.multiSortMeta\"\n [scrollable]=\"context.state.viewport.scrollable\"\n [scrollHeight]=\"context.state.viewport.scrollHeight\"\n [filterDelay]=\"0\"\n [globalFilterFields]=\"context.globalFilter\"\n\n [columns]=\"context.visibleColumns\"\n [frozenColumns]=\"context.frozenColumns\"\n [frozenWidth]=\"context.state.frozen.isEnabled ? context.state.frozen.width : null\"\n [resizableColumns]=\"context.state.viewport.resizableColumns\"\n [columnResizeMode]=\"context.state.viewport.columnResizeMode\"\n\n (onPage)=\"onPage($event)\"\n (selectionChange)=\"emitSelection($event)\"\n >\n\n <ng-template pTemplate=\"caption\" *ngIf=\"context.state.caption.isVisible\">\n\n <div class=\"p-grid p-nogutter p-justify-start p-align-center gap-2\">\n <span class=\"p-col database-title\">{{ state.caption.title }}</span>\n <ng-container *ngTemplateOutlet=\"captionTemplate; context: { $implicit: dt }\"></ng-container>\n <p-multiSelect\n #columnMultiselect\n *ngIf=\"context.state.caption.columnVisibility.showDropdownSelector\"\n class=\"p-ml-2 p-col-12 p-md-2\"\n styleClass=\"w-full\"\n [options]=\"context.hideableColumns\"\n [(ngModel)]=\"selectedColumns\"\n placeholder=\"Colunas\"\n [selectedItemsLabel]=\"'{0} colunas vis\u00EDveis'\"\n optionLabel=\"name\"\n dataKey=\"field\"\n optionLabel=\"header\"\n [filter]=\"false\"\n (onChange)=\"updateColumnsVisibility(context)\"\n pTooltip=\"Escolha as colunas que deseja visualizar na tabela.\">\n </p-multiSelect>\n <button *ngIf=\"context.state.caption.rowSelection.isButtonVisible\" pButton [label]=\"context.state.caption.rowSelection.label\" class=\"p-button-outlined\" icon=\"fas fa-check-double\" (click)=\"onRowSelection(context)\" [disabled]=\"clonedData.showSkeleton\"></button>\n <button *ngIf=\"context.state.caption.clearFilters.isButtonVisible\" pButton [label]=\"context.state.caption.clearFilters.label\" class=\"p-button-outlined\" icon=\"pi pi-filter-slash\" (click)=\"clear(dt, context)\" [disabled]=\"clonedData.showSkeleton\"></button>\n <button *ngIf=\"context.state.editable.creation.isButtonVisible\" pButton [label]=\"context.state.editable.creation.buttonLabel\" class=\"p-button-outlined\" icon=\"fas fa-plus\" (click)=\"editableService.onRowCreateInit(dt, context)\" [disabled]=\"clonedData.showSkeleton || editableService.isEditing || editableService.isCreating || context.state.editable.creation.isButtonDisabled\"></button>\n <span *ngIf=\"context.state.caption.globalFilter.isVisible\" class=\"p-input-icon-left p-col-12\" [ngClass]=\"{ 'p-md-2': !context.state.caption.globalFilter.expanded }\">\n <i class=\"pi pi-search\"></i>\n <input #inputGlobal pInputText type=\"text\" styleClass=\"database-global-search\" (input)=\"dt.filterGlobal(inputGlobal.value, 'contains')\" [disabled]=\"clonedData.showSkeleton\" [placeholder]=\"context.state.caption.globalFilter.placeholder\" />\n </span>\n </div>\n\n <div *ngIf=\"toolbarTemplate != null\" class=\"p-grid p-nogutter p-align-center p-mt-2\" [ngClass]=\"'p-justify-' + context.state.caption.toolbarAlignment\">\n <ng-container *ngTemplateOutlet=\"toolbarTemplate; context: { $implicit: dt }\"></ng-container>\n </div>\n\n <!-- <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\" label=\"Exportar\"\n (click)=\"tableExporter.exportPdf(dt, context, dt.filteredValue != null ? dt.filteredValue : clonedData.items, context.state.title != null ? context.state.title : 'Exporta\u00E7\u00E3o')\"\n class=\"p-button-warning p-mr-2\" pTooltip=\"Exportar para PDF\" tooltipPosition=\"bottom\">\n </button> -->\n\n </ng-template>\n\n <!-- <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"context.state.caption.rowSelection.isEnabled\" [ngStyle]=\"{ width: context.state.caption.rowSelection.columnWidth }\">\n <ng-container *ngFor=\"let col of columns\">\n <col *ngIf=\"col.isVisible\" [ngStyle]=\"{ width: col.width }\">\n </ng-container>\n <col *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible|| context.state.editable.isEditable\" [ngStyle]=\"{ width: context.state.actions.customActions.columnWidth + 'px'}\">\n </colgroup>\n </ng-template> -->\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr [ngClass]=\"{ 'invisible-header': !context.state.header.isVisible }\">\n\n <th *ngIf=\"context.state.caption.rowSelection.isEnabled\" [ngStyle]=\"{ width: context.state.caption.rowSelection.columnWidth }\">\n <ng-container *ngIf=\"!context.state.actions.batchActions.isVisible\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </ng-container>\n </th>\n\n <ng-container *ngFor=\"let col of columns\">\n\n <ng-container *ngIf=\"context.state.viewport.resizableColumns; else nonResizable\">\n <ng-container *ngIf=\"col.isOrderable\">\n <th [pSortableColumn]=\"col.field\" pResizableColumn [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n\n <ng-container *ngIf=\"!col.isOrderable\">\n <th pResizableColumn [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n </ng-container>\n\n <ng-template #nonResizable>\n <ng-container *ngIf=\"col.isOrderable\">\n <th [pSortableColumn]=\"col.field\" [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n\n <ng-container *ngIf=\"!col.isOrderable\">\n <th [ngStyle]=\"{ width: col.width }\">\n <ng-container *ngTemplateOutlet=\"headerContent\"></ng-container>\n </th>\n </ng-container>\n </ng-template>\n\n <ng-template #headerContent>\n <div class=\"p-d-flex p-jc-start p-ai-center\">\n <span class=\"p-mr-1\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\" *ngIf=\"!clonedData.showSkeleton && col.isOrderable\"></p-sortIcon>\n\n <ng-container *ngIf=\"!clonedData.showSkeleton\">\n <ng-container [ngSwitch]=\"col.filter.type\">\n\n <ng-container *ngSwitchCase=\"filterTypes.currency\">\n <p-columnFilter type=\"numeric\" currency=\"BRL\" [field]=\"col.field\" display=\"menu\"></p-columnFilter>\n <smz-column-filter type=\"numeric\" currency=\"BRL\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.numeric\">\n <smz-column-filter type=\"numeric\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.date\">\n <smz-column-filter type=\"date\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.text\">\n <smz-column-filter type=\"text\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.boolean\">\n <smz-column-filter type=\"boolean\" [field]=\"col.field\"></smz-column-filter>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.dropdown\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField + '.id'\" matchMode=\"dropdown\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template pTemplate=\"header\">\n <div class=\"p-px-3 p-pt-3 p-pb-0\">\n <span class=\"p-text-bold\">{{ col.header }}</span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"filter\" let-value let-filter=\"filter\">\n <p-dropdown [ngModel]=\"value\" [options]=\"(clonedData.items != null ? clonedData.items : []) | uniqueFilter : filterField + '.id' : filterField\" placeholder=\"Todos\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" dataKey=\"id\"></p-dropdown>\n </ng-template>\n </smz-column-filter>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"filterTypes.multiselect\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField\" matchMode=\"in\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template pTemplate=\"header\">\n <div class=\"p-px-3 p-pt-3 p-pb-0\">\n <span class=\"p-text-bold\">{{ col.header }}</span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"filter\" let-value let-filter=\"filter\">\n <p-multiSelect [ngModel]=\"value\" [options]=\"(clonedData.items != null ? clonedData.items : []) | uniqueFilter : filterField + '.id' : filterField\" placeholder=\"Todos\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" dataKey=\"id\"></p-multiSelect>\n </ng-template>\n </smz-column-filter>\n </ng-container>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n <button *ngIf=\"context.state.caption.columnVisibility.showColumnHideButton\" pButton pRipple type=\"button\" icon=\"far fa-eye-slash\" class=\"p-button-rounded p-button-text p-button-plain\" (click)=\"hideColumn(col, context)\"></button>\n\n </div>\n </ng-template>\n\n </ng-container>\n\n <th *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible|| context.state.editable.isEditable\" [ngStyle]=\"{ width: context.state.actions.customActions.columnWidth + 'px'}\"></th>\n </tr>\n\n <tr *ngIf=\"context.state.actions.batchActions.isVisible\">\n <th [attr.colspan]=\"columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-start\">\n <p-tableHeaderCheckbox class=\"mr-4\"></p-tableHeaderCheckbox>\n <ng-container *ngIf=\"selectedItems?.length > 0\">\n <ng-container *ngFor=\"let batchItem of context.state.actions.batchActions.items\">\n <button *ngIf=\"batchItem.visible\" pButton [label]=\"batchItem.label\" class=\"p-button-rounded p-button-text p-button-plain animate__animated animate__fadeIn\" [ngClass]=\"batchItem.styleClass\" [icon]=\"batchItem.icon\" (click)=\"batchItem.command(selectedItems); selectedItems = [];\" [disabled]=\"batchItem.disabled\" [pTooltip]=\"batchItem.tooltip\"></button>\n </ng-container>\n </ng-container>\n\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-item let-editing=\"editing\" let-rowIndex=\"rowIndex\" let-columns=\"columns\">\n <tr #editableRowElement\n [pEditableRow]=\"item\"\n tableItemAction\n [isClickable]=\"context.state.actions.rowBehavior.isClickable\"\n [callback]=\"context.state.actions.rowBehavior.clickCallback\"\n [item]=\"item\"\n class=\"p-selectable-row\"\n [ngClass]=\"{ 'highlight-row': item?.id === state.actions.rowBehavior.highlights }\"\n >\n\n <td *ngIf=\"context.state.caption.rowSelection.isEnabled\" furyClickStopPropagation [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n </td>\n\n <ng-container *ngFor=\"let col of columns\">\n\n <ng-container *ngIf=\"clonedData.showSkeleton; else dataTemplate\">\n <td><p-skeleton width=\"100%\" height=\"1rem\"></p-skeleton></td>\n </ng-container>\n\n <ng-template #dataTemplate>\n\n <td [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <span class=\"p-column-title\">{{ col.header }}</span>\n\n <p-cellEditor>\n\n <!-- CELULAR COM EDITOR -->\n <ng-template pTemplate=\"input\">\n <ng-container [ngSwitch]=\"col.editable.type\">\n <ng-container *ngSwitchCase=\"editableTypes.none\">\n </ng-container>\n\n <ng-container *ngSwitchCase=\"editableTypes.custom\">\n <ng-container *ngTemplateOutlet=\"editableTemplate; context: { $implicit: item, col: col }\"></ng-container>\n </ng-container>\n\n <!-- INPUT TEXT -->\n <ng-container *ngSwitchCase=\"editableTypes.text\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <input pInputText type=\"text\" [formControl]=\"$any(control)\" style=\"width: 100%;\">\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT NUMBER -->\n <ng-container *ngSwitchCase=\"editableTypes.number\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-inputNumber [formControl]=\"$any(control)\" [mode]=\"$any(col.editable.data).mode\" [minFractionDigits]=\"$any(col.editable.data).minFractionDigits\" [maxFractionDigits]=\"$any(col.editable.data).maxFractionDigits\"></p-inputNumber>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT SWITCH -->\n <ng-container *ngSwitchCase=\"editableTypes.switch\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-inputSwitch [formControl]=\"$any(control)\"></p-inputSwitch>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT TEXT AREA -->\n <ng-container *ngSwitchCase=\"editableTypes.area\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <textarea pInputTextarea type=\"text\" [formControl]=\"$any(control)\" [rows]=\"$any(col.editable.data).rows\" required style=\"width: 100%;\"></textarea>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT DROPDOWN -->\n <ng-container *ngSwitchCase=\"editableTypes.dropdown\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-dropdown [formControl]=\"$any(control)\" styleClass=\"w-full\" [options]=\"col.editable.data | editableSource\" optionLabel=\"name\" dataKey=\"id\" [placeholder]=\"$any(col.editable.data).placeholder\" [showClear]=\"!col.editable.validatorsPreset?.isRequired\"></p-dropdown>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- INPUT CALENDAR -->\n <ng-container *ngSwitchCase=\"editableTypes.calendar\">\n <ng-container *ngIf=\"editableService.context[item.id]?.form as form\">\n <ng-container *ngIf=\"form.controls[col.editable.property] as control\">\n <div class=\"relative w-full\">\n <p-calendar [formControl]=\"$any(control)\" styleClass=\"w-full\" [ngClass]=\"{ 'p-pl-5': !control.valid }\"></p-calendar>\n <smz-validation-messages [errors]=\"control.errors\" [messages]=\"dialogConfig.forms.validationMessages\" [isFormInvalid]=\"form.invalid\" [isFormDirty]=\"form.dirty\"></smz-validation-messages>\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <!-- CELULAR COM CONTE\u00DADO -->\n <ng-template pTemplate=\"output\">\n <ng-container [ngSwitch]=\"col.content.type\">\n <ng-container *ngSwitchCase=\"contentTypes.custom\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: item, col: col }\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.currency\">\n R$ {{ (item | tableContent : col.field).result }}\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.calendar\">\n {{ (item | tableContent : col.field).result | date: col.content.data['format'] }}\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.text\">\n <div [innerHtml]=\"(item | tableContent : col.field).result\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.dataTransform\">\n <ng-container *ngIf=\"(item | tableContent : col.field) as contentData\">\n {{ $any(col.content.data).callback(contentData.result, item) }}\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"contentTypes.icon\">\n <ng-container *ngIf=\"(col.content.data['matches'] | contentIconMatches : (item | tableContent : col.field).result) as match\">\n <i *ngIf=\"match != null\" [ngClass]=\"match.icon + ' ' + match.class\" [pTooltip]=\"match.tooltip\"></i>\n </ng-container>\n </ng-container>\n </ng-container>\n\n </ng-template>\n </p-cellEditor>\n\n </td>\n\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable\">\n\n <td>\n\n <div class=\"p-grid p-nogutter p-align-center p-justify-end\">\n <ng-container *ngIf=\"clonedData.showSkeleton; else menuTemplate\">\n <div class=\"w-full\">\n <p-skeleton width=\"100%\" height=\"1rem\"></p-skeleton>\n </div>\n </ng-container>\n\n <ng-template #menuTemplate>\n\n <!-- SEM EDITAR -->\n <ng-container *ngIf=\"!editing\">\n <button *ngIf=\"context.state.editable.update.isButtonVisible\" pButton pRipple type=\"button\" icon=\"pi pi-pencil\" (click)=\"editableService.onRowEditInit(item)\" class=\"p-button-rounded p-button-text p-mx-1\" [disabled]=\"editableService.isEditing || editableService.isCreating || context.state.editable.update.isButtonDisabled\" pInitEditableRow></button>\n <button *ngIf=\"context.state.editable.remove.isButtonVisible\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" (click)=\"editableService.onRowRemove($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-secondary p-mx-1\" [disabled]=\"editableService.isEditing || editableService.isCreating || context.state.editable.remove.isButtonDisabled\"></button>\n </ng-container>\n\n <!-- EDITANDO -->\n <ng-container *ngIf=\"editing\">\n\n <ng-container *ngIf=\"editableService.context[item.id] as editableContext\">\n <!-- COM LOADING -->\n <ng-container *ngIf=\"editableContext.isLoading\">\n <button pButton pRipple type=\"button\" icon=\"fas fa-sync fa-spin\" [disabled]=\"true\" class=\"p-button-rounded p-button-text p-button-info p-mr-2\"></button>\n </ng-container>\n\n <!-- SEM LOADING -->\n <ng-container *ngIf=\"!editableContext.isLoading\">\n\n <!-- EDITANDO -->\n <ng-container *ngIf=\"!editableContext.hasErrors\">\n\n <!-- CRIANDO -->\n <ng-container *ngIf=\"item._context?.isCreating\">\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" (click)=\"editableService.onRowCreateSave($event, dt, editableRowElement, item)\" [disabled]=\"!editableContext.hasChanged || !editableService.context[item.id]?.form.valid\" class=\"p-button-rounded p-button-text p-button-success p-mr-2\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowCreateCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n </ng-container>\n\n <!-- ATUALIZANDO -->\n <ng-container *ngIf=\"item._context?.isUpdating\">\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" (click)=\"editableService.onRowEditSave($event, dt, editableRowElement, item)\" [disabled]=\"!editableContext.hasChanged || !editableService.context[item.id]?.form.valid\" class=\"p-button-rounded p-button-text p-button-success p-mr-2\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowEditCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n </ng-container>\n\n </ng-container>\n\n <!-- COM ERRORS -->\n <ng-container *ngIf=\"editableContext.hasErrors\">\n <p-overlayPanel #errorsOverlay appendTo=\"body\" [style]=\"{ width: '450px' }\">\n <ng-template pTemplate>\n <div [innerHtml]=\"editableContext.errors | contentErrors\"></div>\n </ng-template>\n </p-overlayPanel>\n <button pButton pRipple type=\"button\" icon=\"fas fa-exclamation-triangle\" [disabled]=\"false\" class=\"p-button-rounded p-button-text p-button-danger p-mr-2\" (click)=\"errorsOverlay.toggle($event)\"></button>\n\n <!-- CRIANDO -->\n <button *ngIf=\"item._context?.isCreating\" pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowCreateCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n\n <!-- ATUALIZANDO -->\n <button *ngIf=\"item._context?.isUpdating\" pButton pRipple type=\"button\" icon=\"pi pi-times\" (click)=\"editableService.onRowEditCancel($event, dt, item)\" class=\"p-button-rounded p-button-text p-button-danger\"></button>\n\n </ng-container>\n </ng-container>\n </ng-container>\n\n </ng-container>\n\n\n <!-- CUSTOM MENU -->\n <ng-container *ngIf=\"context.state.actions.customActions.isVisible && !editing\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n\n <!-- MENU -->\n <ng-container *ngIf=\"context.state.actions.menu.isVisible && !editing\">\n <ng-container *ngIf=\"(context.state.actions.menu.items | tableMenu : item) as itemMenu\">\n <p-menu #actionMenu [popup]=\"true\" [model]=\"itemMenu\" appendTo=\"body\" [ngClass]=\"{ 'p-ml-2': context.state.actions.customActions.isVisible }\"></p-menu>\n <button id=\"action-button\" type=\"button\" pButton icon=\"pi pi-bars\" (click)=\"actionMenu.toggle($event, item)\"></button>\n </ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\" let-columns>\n <tr>\n <td [attr.colspan]=\"columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible || context.state.editable.isEditable) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\" [ngStyle]=\"{ 'text-align': 'center' }\">{{ context.state.emptyFeedback.message }}</td>\n </tr>\n </ng-template>\n </p-table>\n\n </ng-container>\n </ng-template>\n\n</ng-container>\n\n<ng-template #noStateTemplate>\n <ng-container *ngIf=\"emptyStateTemplate != null\">\n <ng-container *ngTemplateOutlet=\"emptyStateTemplate; context: { $implicit: {} }\"></ng-container>\n </ng-container>\n</ng-template>", components: [{ type: SmzDataInfoComponent, selector: "smz-data-info", inputs: ["image", "message", "actions", "callbackInfo", "callbackLabel"], outputs: ["clicked"] }, { type: i5__namespace$1.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollDelay", "virtualRowHeight", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "stateKey", "stateStorage", "editMode", "groupRowsBy", "minBufferPx", "maxBufferPx", "responsiveLayout", "breakpoint", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection"], outputs: ["selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { type: i1__namespace$c.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }, { type: i5__namespace$1.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5__namespace$1.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5__namespace$1.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: SmzColumnFilterComponent, selector: "smz-column-filter", inputs: ["currency", "display", "field", "matchMode", "showAddButton", "showMatchModes", "showOperator", "type"] }, { type: i4__namespace$2.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide"] }, { type: i5__namespace$1.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: i9__namespace.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { type: i5__namespace$1.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i11__namespace.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }, { type: i1__namespace$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1__namespace$9.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "numberOfMonths", "view", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: i2__namespace.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.InputText, selector: "[pInputText]" }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$1.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5__namespace$1.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TableItemActionsDirective, selector: "[tableItemAction]", inputs: ["isClickable", "item", "callback"] }, { type: i5__namespace$1.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i1__namespace$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$3.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace$1.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1__namespace$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5__namespace$1.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1__namespace.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe, "tableMenu": SmzTableMenuPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
7712
7712
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzTableComponent, decorators: [{
7713
7713
  type: i0.Component,
7714
7714
  args: [{
@@ -10251,14 +10251,19 @@
10251
10251
  }
10252
10252
 
10253
10253
  function convertFormFeature(entityName, store, entity, options) {
10254
- var e_1, _d, e_2, _e, e_3, _f, e_4, _g;
10255
10254
  if (entity === void 0) { entity = null; }
10256
10255
  if (options === void 0) { options = null; }
10257
- var _a, _b, _c;
10258
10256
  var state = store.selectSnapshot(function (x) { return x.database['uiDefinitions']; });
10259
10257
  var groups = entity != null ? lodashEs.cloneDeep(state.data[entityName].update) : lodashEs.cloneDeep(state.data[entityName].create);
10260
10258
  if (groups == null)
10261
10259
  throw new Error('UI definitions are empty. Were they manually loaded or set as required state?');
10260
+ return convertFormFeatureFromInputData(groups, entity, options, store);
10261
+ }
10262
+ function convertFormFeatureFromInputData(groups, entity, options, store) {
10263
+ var e_1, _d, e_2, _e, e_3, _f, e_4, _g;
10264
+ if (entity === void 0) { entity = null; }
10265
+ if (options === void 0) { options = null; }
10266
+ var _a, _b, _c;
10262
10267
  var form = {
10263
10268
  groups: [],
10264
10269
  behaviors: {}
@@ -12667,20 +12672,25 @@
12667
12672
  this.config = config;
12668
12673
  this.routerListener = routerListener;
12669
12674
  this.store = store;
12670
- this.clear();
12671
12675
  }
12672
12676
  ErrorComponent.prototype.ngOnInit = function () {
12677
+ this.clear();
12673
12678
  };
12674
12679
  ErrorComponent.prototype.clear = function () {
12675
12680
  this.store.dispatch(new exports.GlobalActions.Clear());
12676
12681
  this.store.dispatch(new exports.DatabaseActions.Clear());
12677
12682
  this.store.dispatch(new exports.FeaturesActions.Clear());
12678
12683
  localStorage.clear();
12684
+ window.history.pushState('', '', '');
12685
+ };
12686
+ ErrorComponent.prototype.goToLogin = function () {
12687
+ this.store.dispatch(new routerPlugin.Navigate([this.rbkConfig.routes.login]));
12688
+ this.clear();
12679
12689
  };
12680
12690
  return ErrorComponent;
12681
12691
  }());
12682
12692
  ErrorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ErrorComponent, deps: [{ token: NgxRbkUtilsConfig }, { token: SmzLayoutsConfig }, { token: RouterDataListenerService }, { token: i1__namespace$e.Store }], target: i0__namespace.ɵɵFactoryTarget.Component });
12683
- ErrorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ErrorComponent, selector: "smz-ui-error", ngImport: i0__namespace, template: "\n<!-- VERSAO MOBILE -->\n<div class=\"p-d-flex p-d-lg-none p-grid p-jc-center p-ai-center vertical-container exception-page\">\n\n <div class=\"exception-full-image-container\">\n <img [src]=\"config.pages.errorImagePath\" alt=\"mirage-layout\" />\n </div>\n\n <div class=\"p-grid p-jc-center p-ai-center p-col-12 p-lg-6 p-nogutter\">\n <div class=\"p-grid p-col-8 p-ai-center\">\n <div class=\"p-col-12 exception-label-error exception-light\">{{ config.pages.errorTitle }}</div>\n <div class=\"p-col-4 exception-separator exception-light\"></div>\n <div class=\"p-col-12 exception-label-message exception-light\">{{ config.pages.errorMessage }}</div>\n <button class=\"p-col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.routes.login\" label=\"Ir para Login\"></button>\n </div>\n </div>\n\n</div>\n\n<!-- VERS\u00C3O DESKTOP -->\n<div class=\"p-d-none p-d-lg-flex p-grid p-jc-center p-ai-center vertical-container exception-page\">\n\n <div class=\"p-grid p-jc-center p-ai-center p-col-12 p-lg-6 p-nogutter\">\n <div class=\"p-grid p-col-8 p-ai-center\">\n <div class=\"p-col-12 exception-label-error\">{{ config.pages.errorTitle }}</div>\n <div class=\"p-col-4 exception-separator\"></div>\n <div class=\"p-col-12 exception-label-message\">{{ config.pages.errorMessage }}</div>\n <button class=\"p-col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.routes.login\" label=\"Ir para Login\"></button>\n </div>\n </div>\n\n <div class=\"p-col-12 p-lg-6 exception-image-container\">\n <img [src]=\"config.pages.errorImagePath\" alt=\"mirage-layout\" />\n </div>\n</div>", styles: [".exception-page{overflow:hidden;height:100vh;width:100vw;position:relative}.exception-image-container,.exception-page{margin:0;padding:0}.exception-image-container img{height:100vh;width:100%;-o-object-fit:cover;object-fit:cover}.exception-full-image-container{position:absolute;top:0;left:0;bottom:0;right:0;margin:0;padding:0;z-index:-1}.exception-full-image-container img{height:100vh;width:100vw;-o-object-fit:cover;object-fit:cover}.exception-label-error{font-size:5em;color:#212121;padding:0}.exception-separator{border-bottom:4px solid #f44336;width:30%;border-radius:4px;margin-bottom:2em;padding:0}.exception-separator.exception-light{border-bottom:4px solid #fff}.exception-label-message{font-size:1.4em;color:#616161;margin-bottom:2em;padding:0}.exception-light{color:#fff}"], directives: [{ type: i5__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1__namespace$g.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }] });
12693
+ ErrorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: ErrorComponent, selector: "smz-ui-error", ngImport: i0__namespace, template: "\n<!-- VERSAO MOBILE -->\n<div class=\"p-d-flex p-d-lg-none p-grid p-jc-center p-ai-center vertical-container exception-page\">\n\n <div class=\"exception-full-image-container\">\n <img [src]=\"config.pages.errorImagePath\" alt=\"mirage-layout\" />\n </div>\n\n <div class=\"p-grid p-jc-center p-ai-center p-col-12 p-lg-6 p-nogutter\">\n <div class=\"p-grid p-col-8 p-ai-center\">\n <div class=\"p-col-12 exception-label-error exception-light\">{{ config.pages.errorTitle }}</div>\n <div class=\"p-col-4 exception-separator exception-light\"></div>\n <div class=\"p-col-12 exception-label-message exception-light\">{{ config.pages.errorMessage }}</div>\n <button class=\"p-col-4 p-button-lg p-button-ghost\" pButton type=\"button\" label=\"Ir para Login\" (click)=\"goToLogin()\"></button>\n </div>\n </div>\n\n</div>\n\n<!-- VERS\u00C3O DESKTOP -->\n<div class=\"p-d-none p-d-lg-flex p-grid p-jc-center p-ai-center vertical-container exception-page\">\n\n <div class=\"p-grid p-jc-center p-ai-center p-col-12 p-lg-6 p-nogutter\">\n <div class=\"p-grid p-col-8 p-ai-center\">\n <div class=\"p-col-12 exception-label-error\">{{ config.pages.errorTitle }}</div>\n <div class=\"p-col-4 exception-separator\"></div>\n <div class=\"p-col-12 exception-label-message\">{{ config.pages.errorMessage }}</div>\n <button class=\"p-col-4 p-button-lg p-button-ghost\" pButton type=\"button\" label=\"Ir para Login\" (click)=\"goToLogin()\"></button>\n </div>\n </div>\n\n <div class=\"p-col-12 p-lg-6 exception-image-container\">\n <img [src]=\"config.pages.errorImagePath\" alt=\"mirage-layout\" />\n </div>\n</div>", styles: [".exception-page{overflow:hidden;height:100vh;width:100vw;position:relative}.exception-image-container,.exception-page{margin:0;padding:0}.exception-image-container img{height:100vh;width:100%;-o-object-fit:cover;object-fit:cover}.exception-full-image-container{position:absolute;top:0;left:0;bottom:0;right:0;margin:0;padding:0;z-index:-1}.exception-full-image-container img{height:100vh;width:100vw;-o-object-fit:cover;object-fit:cover}.exception-label-error{font-size:5em;color:#212121;padding:0}.exception-separator{border-bottom:4px solid #f44336;width:30%;border-radius:4px;margin-bottom:2em;padding:0}.exception-separator.exception-light{border-bottom:4px solid #fff}.exception-label-message{font-size:1.4em;color:#616161;margin-bottom:2em;padding:0}.exception-light{color:#fff}"], directives: [{ type: i5__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
12684
12694
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ErrorComponent, decorators: [{
12685
12695
  type: i0.Component,
12686
12696
  args: [{
@@ -22388,6 +22398,7 @@
22388
22398
  exports.capitalizeFirstLetter = capitalizeFirstLetter;
22389
22399
  exports.clearArray = clearArray;
22390
22400
  exports.convertFormFeature = convertFormFeature;
22401
+ exports.convertFormFeatureFromInputData = convertFormFeatureFromInputData;
22391
22402
  exports.count = count;
22392
22403
  exports.createRound = createRound;
22393
22404
  exports.deepClone = deepClone;