ngx-smz-ui 3.5.7 → 3.6.1

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.
@@ -1630,6 +1630,12 @@
1630
1630
  }]
1631
1631
  }], ctorParameters: function () { return [{ type: SmzDialogsConfig }, { type: SmzFormsDropdownService }, { type: SmzFormsVisibilityService }]; } });
1632
1632
 
1633
+ var NgxRbkUtilsConfig = /** @class */ (function () {
1634
+ function NgxRbkUtilsConfig() {
1635
+ }
1636
+ return NgxRbkUtilsConfig;
1637
+ }());
1638
+
1633
1639
  var ValidationMessagesPipe$1 = /** @class */ (function () {
1634
1640
  function ValidationMessagesPipe() {
1635
1641
  }
@@ -1941,11 +1947,11 @@
1941
1947
  return ClickStopPropagationDirective;
1942
1948
  }());
1943
1949
  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 });
1950
+ 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
1951
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: ClickStopPropagationDirective, decorators: [{
1946
1952
  type: i0.Directive,
1947
1953
  args: [{
1948
- selector: '[furyClickStopPropagation]'
1954
+ selector: '[clickStopPropagation]'
1949
1955
  }]
1950
1956
  }], propDecorators: { onClick: [{
1951
1957
  type: i0.HostListener,
@@ -2079,7 +2085,7 @@
2079
2085
  return InputListComponent;
2080
2086
  }());
2081
2087
  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 });
2088
+ 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
2089
  __decorate([
2084
2090
  Confirmable('Deseja realmente excluir esse item ?', 'Exclusão')
2085
2091
  ], InputListComponent.prototype, "askBeforeRemove", null);
@@ -3582,11 +3588,12 @@
3582
3588
  }
3583
3589
 
3584
3590
  var FormGroupComponent = /** @class */ (function () {
3585
- function FormGroupComponent(fb, cdf, manager, configService) {
3591
+ function FormGroupComponent(fb, cdf, manager, configService, rbkConfig) {
3586
3592
  this.fb = fb;
3587
3593
  this.cdf = cdf;
3588
3594
  this.manager = manager;
3589
3595
  this.configService = configService;
3596
+ this.rbkConfig = rbkConfig;
3590
3597
  this.isComponentActive = true;
3591
3598
  //** isValid corresponde ao valid do formulário ou customValidator caso aja; Atualizada em toda mudança de status do formulário */
3592
3599
  this.isValid = false;
@@ -3929,6 +3936,13 @@
3929
3936
  if (this.hasChanges === false && original !== current) {
3930
3937
  this.changed.emit(response);
3931
3938
  }
3939
+ if (this.rbkConfig.debugMode) {
3940
+ console.group('UpdateHasChanges');
3941
+ console.log('original', original);
3942
+ console.log('current', current);
3943
+ console.log('hasChanges', original !== current);
3944
+ console.groupEnd();
3945
+ }
3932
3946
  this.hasChanges = original !== current;
3933
3947
  this.cdf.markForCheck();
3934
3948
  };
@@ -4115,7 +4129,7 @@
4115
4129
  };
4116
4130
  return FormGroupComponent;
4117
4131
  }());
4118
- FormGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, deps: [{ token: i1__namespace$2.FormBuilder }, { token: i0__namespace.ChangeDetectorRef }, { token: SmzFormsManagerService }, { token: SmzDialogsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
4132
+ FormGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, deps: [{ token: i1__namespace$2.FormBuilder }, { token: i0__namespace.ChangeDetectorRef }, { token: SmzFormsManagerService }, { token: SmzDialogsConfig }, { token: NgxRbkUtilsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
4119
4133
  FormGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FormGroupComponent, selector: "smz-form-group", inputs: { config: "config" }, outputs: { statusChanges: "statusChanges", changed: "changed", submit: "submit" }, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"config != null\">\n\n<div class=\"smz_form_grid_container\">\n\n <ng-container *ngIf=\"form != null && !configHasErrors\">\n <form focusFirstInput [focus]=\"!config.behaviors.avoidFocusOnLoad\" [formGroup]=\"form\" class=\"smz_form__wrapper\" (keyup.enter)=\"onEnter()\">\n <ng-container *ngTemplateOutlet=\"groupTemplate\"></ng-container>\n </form>\n </ng-container>\n\n <ng-container *ngIf=\"configHasErrors\">\n <div>Error</div>\n </ng-container>\n\n</div>\n\n</ng-container>\n\n<ng-template #groupTemplate>\n\n <div class=\"w-full p-px-0 p-mx-auto\">\n <div class=\"p-grid p-nogutter p-flex-wrap p-align-start p-justify-start flex-gap-2\" [ngClass]=\"config.template | setTemplateClasses : ['horizontalAlignment', 'verticalAlignment']\">\n <ng-container *ngFor=\"let group of config.groups\">\n <div class=\"p-col\" [ngClass]=\"group.template | setTemplateClasses : ['row']\">\n <div class=\"smz__group_name\" *ngIf=\"group.showName\">{{ group.name }}</div>\n\n <div class=\"p-grid p-nogutter p-flex-wrap p-align-start p-justify-start flex-gap-2\">\n <ng-container *ngFor=\"let input of group.children\">\n <div *ngIf=\"input.isVisible\" class=\"input__control__wrapper p-col\" [ngClass]=\"input.template | setTemplateClasses : ['row']\">\n <ng-container *ngTemplateOutlet=\"inputTemplate; context: { $implicit: input }\"></ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n\n</ng-template>\n\n<ng-template #inputTemplate let-input>\n\n <ng-container *ngIf=\"input.type == controlTypes.PASSWORD\">\n <smz-input-password [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-password>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT_MASK\">\n <smz-input-mask [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-mask>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT\">\n <smz-input-text [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-text>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.LIST\">\n <smz-input-list [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-list>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.NUMBER\">\n <smz-input-number [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-number>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT_AREA\">\n <smz-input-text-area [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-text-area>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.CONTENT_MASK\">\n <smz-input-content-mask [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-content-mask>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TAG_AREA\">\n <input-tag-area [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></input-tag-area>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.RADIO\">\n <smz-radio-button [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-radio-button>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.SWITCH\">\n <smz-input-switch [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-switch>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.CHECKBOX\">\n <smz-checkbox [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [formId]=\"config.formId\" [behaviors]=\"config.behaviors\"></smz-checkbox>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.CHECKBOX_GROUP\">\n <smz-checkbox-group [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-checkbox-group>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.CALENDAR\">\n <smz-calendar [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-calendar>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.DROPDOWN\">\n <smz-dropdown [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [formId]=\"config.formId\" [behaviors]=\"config.behaviors\"></smz-dropdown>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.LINKED_DROPDOWN\">\n <smz-linked-dropdown [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [formId]=\"config.formId\" [behaviors]=\"config.behaviors\"></smz-linked-dropdown>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.FILE\">\n <smz-file-upload [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [form]=\"form\" [behaviors]=\"config.behaviors\"></smz-file-upload>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.CURRENCY\">\n <smz-input-currency [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-input-currency>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.MULTI_SELECT\">\n <smz-multi-select [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-multi-select>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.LINKED_MULTISELECT\">\n <smz-linked-multi-select [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [formId]=\"config.formId\" [behaviors]=\"config.behaviors\"></smz-linked-multi-select>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.COLOR_PICKER\">\n <smz-color-picker [input]=\"input\" [control]=\"form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-color-picker>\n </ng-container>\n\n</ng-template>\n", components: [{ type: InputPasswordComponent, selector: "smz-input-password", inputs: ["input", "control", "behaviors"] }, { type: InputMaskComponent, selector: "smz-input-mask", inputs: ["input", "control", "behaviors"] }, { type: InputTextComponent, selector: "smz-input-text", inputs: ["input", "control", "behaviors"] }, { type: InputListComponent, selector: "smz-input-list", inputs: ["input", "control", "behaviors"] }, { type: InputNumberComponent, selector: "smz-input-number", inputs: ["input", "control", "behaviors"] }, { type: InputTextAreaComponent, selector: "smz-input-text-area", inputs: ["input", "control", "behaviors"] }, { type: InputContentMaskComponent, selector: "smz-input-content-mask", inputs: ["input", "control", "behaviors"] }, { type: InputTagAreaComponent, selector: "input-tag-area", inputs: ["input", "control", "behaviors"] }, { type: RadioButtonComponent, selector: "smz-radio-button", inputs: ["input", "control", "behaviors"] }, { type: InputSwitchComponent, selector: "smz-input-switch", inputs: ["input", "control", "behaviors"] }, { type: CheckBoxComponent, selector: "smz-checkbox", inputs: ["input", "formId", "control", "behaviors"] }, { type: CheckBoxGroupComponent, selector: "smz-checkbox-group", inputs: ["input", "control", "behaviors"] }, { type: CalendarComponent, selector: "smz-calendar", inputs: ["input", "control", "behaviors"] }, { type: DropdownComponent, selector: "smz-dropdown", inputs: ["input", "formId", "control", "behaviors"] }, { type: LinkedDropdownComponent, selector: "smz-linked-dropdown", inputs: ["input", "formId", "control", "behaviors"] }, { type: FileUploadComponent, selector: "smz-file-upload", inputs: ["input", "form", "control", "behaviors"], outputs: ["selectChange"] }, { type: InputCurrencyComponent, selector: "smz-input-currency", inputs: ["input", "control", "behaviors"] }, { type: MultiSelectComponent, selector: "smz-multi-select", inputs: ["input", "control", "behaviors"] }, { type: LinkedMultiSelectComponent, selector: "smz-linked-multi-select", inputs: ["input", "formId", "control", "behaviors"] }, { type: ColorPickerComponent, selector: "smz-color-picker", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: FormFocusFirstInputDirective, selector: "[focusFirstInput]", inputs: ["focus"] }, { type: i1__namespace$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "setTemplateClasses": SetTemplateClassesPipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
4120
4134
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, decorators: [{
4121
4135
  type: i0.Component,
@@ -4124,7 +4138,7 @@
4124
4138
  templateUrl: './form-group.component.html',
4125
4139
  encapsulation: i0.ViewEncapsulation.None,
4126
4140
  }]
4127
- }], ctorParameters: function () { return [{ type: i1__namespace$2.FormBuilder }, { type: i0__namespace.ChangeDetectorRef }, { type: SmzFormsManagerService }, { type: SmzDialogsConfig }]; }, propDecorators: { config: [{
4141
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.FormBuilder }, { type: i0__namespace.ChangeDetectorRef }, { type: SmzFormsManagerService }, { type: SmzDialogsConfig }, { type: NgxRbkUtilsConfig }]; }, propDecorators: { config: [{
4128
4142
  type: i0.Input
4129
4143
  }], statusChanges: [{
4130
4144
  type: i0.Output
@@ -4811,12 +4825,12 @@
4811
4825
  return InputListDialogCrudComponent;
4812
4826
  }());
4813
4827
  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"] }] });
4828
+ 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
4829
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, decorators: [{
4816
4830
  type: i0.Component,
4817
4831
  args: [{
4818
4832
  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 ",
4833
+ 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
4834
  }]
4821
4835
  }], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
4822
4836
  type: i0.ViewChild,
@@ -4870,12 +4884,12 @@
4870
4884
  return InputListInlineCrudComponent;
4871
4885
  }());
4872
4886
  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"] }] });
4887
+ 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
4888
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, decorators: [{
4875
4889
  type: i0.Component,
4876
4890
  args: [{
4877
4891
  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 ",
4892
+ 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
4893
  }]
4880
4894
  }], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
4881
4895
  type: i0.ViewChild,
@@ -5578,12 +5592,6 @@
5578
5592
  }]
5579
5593
  }] });
5580
5594
 
5581
- var NgxRbkUtilsConfig = /** @class */ (function () {
5582
- function NgxRbkUtilsConfig() {
5583
- }
5584
- return NgxRbkUtilsConfig;
5585
- }());
5586
-
5587
5595
  var DialogFooterComponent = /** @class */ (function () {
5588
5596
  function DialogFooterComponent(refService, dialogConfig, presets, visibilityService, injectComponent, cdf, actions$, rbkConfig, store) {
5589
5597
  this.refService = refService;
@@ -8393,7 +8401,7 @@
8393
8401
  return SmzTableComponent;
8394
8402
  }());
8395
8403
  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 });
8404
+ 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
8405
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzTableComponent, decorators: [{
8398
8406
  type: i0.Component,
8399
8407
  args: [{
@@ -12692,6 +12700,13 @@
12692
12700
  enumerable: false,
12693
12701
  configurable: true
12694
12702
  });
12703
+ SmzBuilderUtilities.prototype.for = function (items, callback) {
12704
+ var result = this.that;
12705
+ items.forEach(function (item) {
12706
+ result = callback(result, item);
12707
+ });
12708
+ return result;
12709
+ };
12695
12710
  return SmzBuilderUtilities;
12696
12711
  }());
12697
12712
  function conclude(methodName, cache, that) {
@@ -24225,7 +24240,7 @@
24225
24240
  this._data.header.isVisible = true;
24226
24241
  return new SmzCellTableColumnBuilder(this, property, label, this._documentBuilder);
24227
24242
  };
24228
- SmzCellTableBuilder.prototype.applyItems = function (selector, items$, items) {
24243
+ SmzCellTableBuilder.prototype.setSource = function (selector, items$, items) {
24229
24244
  if (selector != null) {
24230
24245
  var store = GlobalInjector$2.instance.get(i1$4.Store);
24231
24246
  this._data.content.items$ = store.select(selector);
@@ -24237,7 +24252,7 @@
24237
24252
  this._data.content.items$ = rxjs.of(items);
24238
24253
  }
24239
24254
  else {
24240
- throw new Error("You need to provide at least one type of items to the table (applyItems())");
24255
+ throw new Error("You need to provide at least one type of items to the table (setSource())");
24241
24256
  }
24242
24257
  return this.that;
24243
24258
  };
@@ -24804,6 +24819,8 @@
24804
24819
  exports.CanAccess = CanAccess;
24805
24820
  exports.CheckBoxComponent = CheckBoxComponent;
24806
24821
  exports.CheckBoxGroupComponent = CheckBoxGroupComponent;
24822
+ exports.ClickStopPropagationDirective = ClickStopPropagationDirective;
24823
+ exports.ClickStopPropagationModule = ClickStopPropagationModule;
24807
24824
  exports.ClonePipe = ClonePipe;
24808
24825
  exports.ColorPickerComponent = ColorPickerComponent;
24809
24826
  exports.Confirmable = Confirmable;