ngx-smz-ui 3.5.7 → 3.5.8

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.
@@ -1941,11 +1941,11 @@
1941
1941
  return ClickStopPropagationDirective;
1942
1942
  }());
1943
1943
  ClickStopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ClickStopPropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
1944
- ClickStopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
1944
+ ClickStopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.5", type: ClickStopPropagationDirective, selector: "[clickStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
1945
1945
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ClickStopPropagationDirective, decorators: [{
1946
1946
  type: i0.Directive,
1947
1947
  args: [{
1948
- selector: '[furyClickStopPropagation]'
1948
+ selector: '[clickStopPropagation]'
1949
1949
  }]
1950
1950
  }], propDecorators: { onClick: [{
1951
1951
  type: i0.HostListener,
@@ -2079,7 +2079,7 @@
2079
2079
  return InputListComponent;
2080
2080
  }());
2081
2081
  InputListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.Store }, { token: i1__namespace$4.Actions }, { token: i1__namespace$2.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
2082
- InputListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListComponent, selector: "smz-input-list", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <p-listbox\n [options]=\"input.options\"\n [metaKeySelection]=\"false\"\n [checkbox]=\"false\"\n [filter]=\"input.showFilter\"\n optionLabel=\"null\"\n [listStyle]=\"{'height': input.height ? input.height : '200px'}\"\n [style]=\"{'width':'100%'}\"\n [styleClass]=\"!input.showAddButton && !input.showSortButton && !input.showClearButton ? 'smz__input_list smz__input_list-hide-header' + (input.options.length === 0 && input.validatorsPreset?.isRequired ? '' : ' smz__input_list-hide-footer') : 'smz__input_list' + (input.options.length === 0 && input.validatorsPreset?.isRequired ? '' : ' smz__input_list-hide-footer')\"\n [disabled]=\"input.isDisabled\"\n (onClick)=\"onClick($event)\"\n [readonly]=\"isInlineEditingEnabled\"\n [emptyMessage]=\"input.emptyMessage\"\n [(ngModel)]=\"current\">\n\n <ng-template pTemplate=\"header\">\n <div class=\"smz__list-header\">\n <button *ngIf=\"input.showAddButton\" pButton pRipple type=\"button\" icon=\"pi pi-plus\" furyClickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onAdd()\" pTooltip=\"Adicionar novo item\"></button>\n <button *ngIf=\"input.showSortButton\" pButton pRipple type=\"button\" icon=\"pi pi-sort-alpha-down\" furyClickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onSort()\" pTooltip=\"Reordenar\"></button>\n <button *ngIf=\"input.showClearButton\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" furyClickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onClear()\" pTooltip=\"Limpar a lista\"></button>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"item\">\n <div class=\"smz__list-item\">\n <ng-container *ngIf=\"!isInlineEditingEnabled || (isInlineEditingEnabled && current !== item)\">\n <div class=\"smz__list_item-title\">{{item}}</div>\n </ng-container>\n\n <ng-container *ngIf=\"isInlineEditingEnabled && current === item\">\n <div *ngIf=\"editForm != null\" class=\"p-col p-grid p-nogutter p-align-center p-justify-center flex-gap-2 p-py-3 p-px-0\" furyClickStopPropagation>\n <form #form [formGroup]=\"editForm\" class=\"p-col relative\">\n <input type=\"text\" furyClickStopPropagation pInputText formControlName=\"value\"/>\n <ng-container *ngIf=\"editForm.get('value') as valueInput\">\n <div *ngIf=\"valueInput.touched && valueInput.hasError('required')\" class=\"text-xs text-red-500 absolute right-3 p-my-1\">Campo Obrigat\u00F3rio.</div>\n <div *ngIf=\"valueInput.touched && valueInput.hasError('unique')\" class=\"text-xs text-red-500 absolute right-3 p-my-1\">J\u00E1 existe um item com esse nome.</div>\n </ng-container>\n\n </form>\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" furyClickStopPropagation [disabled]=\"!editForm.valid\" class=\"p-nocustom inline_action_button p-button-rounded p-button-success p-button-text\" (click)=\"onConfirmInlineEditing(item)\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" furyClickStopPropagation class=\"p-nocustom inline_action_button p-button-rounded p-button-danger p-button-text\" (click)=\"cancelEdit()\"></button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"current === item && !isInlineEditingEnabled\">\n <div class=\"smz__list_item-actions\" furyClickStopPropagation>\n <button *ngIf=\"input.showEditButton\" furyClickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-pencil\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"onEdit(item)\"></button>\n <button *ngIf=\"input.showRemoveButton\" furyClickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-trash\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"input.askBeforeRemoveItem ? askBeforeRemove(item) : remove(item)\"></button>\n <button *ngIf=\"input.showMoveButton\" furyClickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-arrow-up\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"moveUp(item)\"></button>\n <button *ngIf=\"input.showMoveButton\" furyClickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-arrow-down\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"moveDown(item)\"></button>\n </div>\n </ng-container>\n\n </div>\n </ng-template>\n\n <ng-template pTemplate=\"footer\">\n <ng-container *ngIf=\"input.options.length === 0 && input.validatorsPreset?.isRequired\">\n <span class=\"p-col-12 smz__footer-message\">*Campo obrigat\u00F3rio</span>\n </ng-container>\n </ng-template>\n </p-listbox>\n</div>", components: [{ type: i3__namespace$1.Listbox, selector: "p-listbox", inputs: ["multiple", "style", "styleClass", "listStyle", "listStyleClass", "readonly", "disabled", "checkbox", "filter", "filterMatchMode", "filterLocale", "metaKeySelection", "dataKey", "showToggleAll", "optionLabel", "optionValue", "optionGroupChildren", "optionGroupLabel", "optionDisabled", "ariaFilterLabel", "filterPlaceHolder", "emptyFilterMessage", "emptyMessage", "group", "options", "filterValue"], outputs: ["onChange", "onClick", "onDblClick"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$5.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i10__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$2.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: i4__namespace.InputText, selector: "[pInputText]" }, { type: i1__namespace$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2082
+ InputListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListComponent, selector: "smz-input-list", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <p-listbox\n [options]=\"input.options\"\n [metaKeySelection]=\"false\"\n [checkbox]=\"false\"\n [filter]=\"input.showFilter\"\n optionLabel=\"null\"\n [listStyle]=\"{'height': input.height ? input.height : '200px'}\"\n [style]=\"{'width':'100%'}\"\n [styleClass]=\"!input.showAddButton && !input.showSortButton && !input.showClearButton ? 'smz__input_list smz__input_list-hide-header' + (input.options.length === 0 && input.validatorsPreset?.isRequired ? '' : ' smz__input_list-hide-footer') : 'smz__input_list' + (input.options.length === 0 && input.validatorsPreset?.isRequired ? '' : ' smz__input_list-hide-footer')\"\n [disabled]=\"input.isDisabled\"\n (onClick)=\"onClick($event)\"\n [readonly]=\"isInlineEditingEnabled\"\n [emptyMessage]=\"input.emptyMessage\"\n [(ngModel)]=\"current\">\n\n <ng-template pTemplate=\"header\">\n <div class=\"smz__list-header\">\n <button *ngIf=\"input.showAddButton\" pButton pRipple type=\"button\" icon=\"pi pi-plus\" clickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onAdd()\" pTooltip=\"Adicionar novo item\"></button>\n <button *ngIf=\"input.showSortButton\" pButton pRipple type=\"button\" icon=\"pi pi-sort-alpha-down\" clickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onSort()\" pTooltip=\"Reordenar\"></button>\n <button *ngIf=\"input.showClearButton\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" clickStopPropagation class=\"p-nocustom p-button-rounded p-button p-button-text\" (click)=\"onClear()\" pTooltip=\"Limpar a lista\"></button>\n </div>\n </ng-template>\n\n <ng-template let-item pTemplate=\"item\">\n <div class=\"smz__list-item\">\n <ng-container *ngIf=\"!isInlineEditingEnabled || (isInlineEditingEnabled && current !== item)\">\n <div class=\"smz__list_item-title\">{{item}}</div>\n </ng-container>\n\n <ng-container *ngIf=\"isInlineEditingEnabled && current === item\">\n <div *ngIf=\"editForm != null\" class=\"p-col p-grid p-nogutter p-align-center p-justify-center flex-gap-2 p-py-3 p-px-0\" clickStopPropagation>\n <form #form [formGroup]=\"editForm\" class=\"p-col relative\">\n <input type=\"text\" clickStopPropagation pInputText formControlName=\"value\"/>\n <ng-container *ngIf=\"editForm.get('value') as valueInput\">\n <div *ngIf=\"valueInput.touched && valueInput.hasError('required')\" class=\"text-xs text-red-500 absolute right-3 p-my-1\">Campo Obrigat\u00F3rio.</div>\n <div *ngIf=\"valueInput.touched && valueInput.hasError('unique')\" class=\"text-xs text-red-500 absolute right-3 p-my-1\">J\u00E1 existe um item com esse nome.</div>\n </ng-container>\n\n </form>\n <button pButton pRipple type=\"button\" icon=\"pi pi-check\" clickStopPropagation [disabled]=\"!editForm.valid\" class=\"p-nocustom inline_action_button p-button-rounded p-button-success p-button-text\" (click)=\"onConfirmInlineEditing(item)\"></button>\n <button pButton pRipple type=\"button\" icon=\"pi pi-times\" clickStopPropagation class=\"p-nocustom inline_action_button p-button-rounded p-button-danger p-button-text\" (click)=\"cancelEdit()\"></button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"current === item && !isInlineEditingEnabled\">\n <div class=\"smz__list_item-actions\" clickStopPropagation>\n <button *ngIf=\"input.showEditButton\" clickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-pencil\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"onEdit(item)\"></button>\n <button *ngIf=\"input.showRemoveButton\" clickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-trash\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"input.askBeforeRemoveItem ? askBeforeRemove(item) : remove(item)\"></button>\n <button *ngIf=\"input.showMoveButton\" clickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-arrow-up\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"moveUp(item)\"></button>\n <button *ngIf=\"input.showMoveButton\" clickStopPropagation pButton pRipple type=\"button\" icon=\"pi pi-arrow-down\" class=\"p-nocustom p-button-rounded p-button-text\" (click)=\"moveDown(item)\"></button>\n </div>\n </ng-container>\n\n </div>\n </ng-template>\n\n <ng-template pTemplate=\"footer\">\n <ng-container *ngIf=\"input.options.length === 0 && input.validatorsPreset?.isRequired\">\n <span class=\"p-col-12 smz__footer-message\">*Campo obrigat\u00F3rio</span>\n </ng-container>\n </ng-template>\n </p-listbox>\n</div>", components: [{ type: i3__namespace$1.Listbox, selector: "p-listbox", inputs: ["multiple", "style", "styleClass", "listStyle", "listStyleClass", "readonly", "disabled", "checkbox", "filter", "filterMatchMode", "filterLocale", "metaKeySelection", "dataKey", "showToggleAll", "optionLabel", "optionValue", "optionGroupChildren", "optionGroupLabel", "optionDisabled", "ariaFilterLabel", "filterPlaceHolder", "emptyFilterMessage", "emptyMessage", "group", "options", "filterValue"], outputs: ["onChange", "onClick", "onDblClick"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$5.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i10__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$2.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: i4__namespace.InputText, selector: "[pInputText]" }, { type: i1__namespace$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
2083
2083
  __decorate([
2084
2084
  Confirmable('Deseja realmente excluir esse item ?', 'Exclusão')
2085
2085
  ], InputListComponent.prototype, "askBeforeRemove", null);
@@ -4811,12 +4811,12 @@
4811
4811
  return InputListDialogCrudComponent;
4812
4812
  }());
4813
4813
  InputListDialogCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2__namespace$2.DynamicDialogConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
4814
- InputListDialogCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListDialogCrudComponent, selector: "smz-input-list-dialog-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <div class=\"p-grid p-nogutter p-align-start p-justify-start\">\n <smz-form-group class=\"p-col\" #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
4814
+ InputListDialogCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListDialogCrudComponent, selector: "smz-input-list-dialog-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <div class=\"p-grid p-nogutter p-align-start p-justify-start\">\n <smz-form-group class=\"p-col\" #formComponent [config]=\"form\" clickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
4815
4815
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, decorators: [{
4816
4816
  type: i0.Component,
4817
4817
  args: [{
4818
4818
  selector: 'smz-input-list-dialog-crud',
4819
- template: "\n <ng-container *ngIf=\"form != null\">\n <div class=\"p-grid p-nogutter p-align-start p-justify-start\">\n <smz-form-group class=\"p-col\" #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ",
4819
+ template: "\n <ng-container *ngIf=\"form != null\">\n <div class=\"p-grid p-nogutter p-align-start p-justify-start\">\n <smz-form-group class=\"p-col\" #formComponent [config]=\"form\" clickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ",
4820
4820
  }]
4821
4821
  }], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
4822
4822
  type: i0.ViewChild,
@@ -4870,12 +4870,12 @@
4870
4870
  return InputListInlineCrudComponent;
4871
4871
  }());
4872
4872
  InputListInlineCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2__namespace$2.DynamicDialogConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
4873
- InputListInlineCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListInlineCrudComponent, selector: "smz-input-list-inline-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
4873
+ InputListInlineCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListInlineCrudComponent, selector: "smz-input-list-inline-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\" clickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
4874
4874
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, decorators: [{
4875
4875
  type: i0.Component,
4876
4876
  args: [{
4877
4877
  selector: 'smz-input-list-inline-crud',
4878
- template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ",
4878
+ template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\" clickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ",
4879
4879
  }]
4880
4880
  }], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
4881
4881
  type: i0.ViewChild,
@@ -8393,7 +8393,7 @@
8393
8393
  return SmzTableComponent;
8394
8394
  }());
8395
8395
  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 });
8396
- 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", filterChange: "filterChange", create: "create", update: "update", delete: "delete" }, providers: [TableEditableService, TableFormsService], queries: [{ propertyName: "templates", predicate: i1$5.PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: i5.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 (onFilter)=\"onFilter($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 : null : null : false\" 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 : null : null : false\" 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 *ngSwitchCase=\"filterTypes.multiselect_array\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField\" matchMode=\"array-some\" [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 : null : null : true\" 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 <smz-menu [items]=\"context.state.actions.menu.items\" [data]=\"item\" [ngClass]=\"{ 'p-ml-2': context.state.actions.customActions.isVisible }\"></smz-menu>\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.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "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", "groupRowsByOrder", "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$b.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.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5__namespace.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5__namespace.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", "onClear"] }, { type: i5__namespace.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.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i2__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$7.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1__namespace$8.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "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$1.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: SmzMenuComponent, selector: "smz-menu", inputs: ["items", "data"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$5.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__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.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5__namespace.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.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i1__namespace$2.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$2.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace$2.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1__namespace$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5__namespace.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1__namespace.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
8396
+ 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", filterChange: "filterChange", create: "create", update: "update", delete: "delete" }, providers: [TableEditableService, TableFormsService], queries: [{ propertyName: "templates", predicate: i1$5.PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: i5.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 (onFilter)=\"onFilter($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 : null : null : false\" 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 : null : null : false\" 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 *ngSwitchCase=\"filterTypes.multiselect_array\">\n <ng-container *ngIf=\"col.field | filterObject as filterField\">\n <smz-column-filter [field]=\"filterField\" matchMode=\"array-some\" [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 : null : null : true\" 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\" clickStopPropagation [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 <smz-menu [items]=\"context.state.actions.menu.items\" [data]=\"item\" [ngClass]=\"{ 'p-ml-2': context.state.actions.customActions.isVisible }\"></smz-menu>\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.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "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", "groupRowsByOrder", "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$b.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.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5__namespace.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5__namespace.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", "onClear"] }, { type: i5__namespace.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.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i2__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$7.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1__namespace$8.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "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$1.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { type: SmzMenuComponent, selector: "smz-menu", inputs: ["items", "data"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$5.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i10__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__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.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5__namespace.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.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i1__namespace$2.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$2.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace$2.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1__namespace$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5__namespace.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1__namespace.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
8397
8397
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzTableComponent, decorators: [{
8398
8398
  type: i0.Component,
8399
8399
  args: [{
@@ -24804,6 +24804,8 @@
24804
24804
  exports.CanAccess = CanAccess;
24805
24805
  exports.CheckBoxComponent = CheckBoxComponent;
24806
24806
  exports.CheckBoxGroupComponent = CheckBoxGroupComponent;
24807
+ exports.ClickStopPropagationDirective = ClickStopPropagationDirective;
24808
+ exports.ClickStopPropagationModule = ClickStopPropagationModule;
24807
24809
  exports.ClonePipe = ClonePipe;
24808
24810
  exports.ColorPickerComponent = ColorPickerComponent;
24809
24811
  exports.Confirmable = Confirmable;