ngx-smz-ui 3.5.5 → 3.5.9
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.
- package/bundles/ngx-smz-ui.umd.js +80 -50
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-forms/form-builder.js +13 -5
- package/esm2015/lib/builders/smz-forms/form-group-builder.js +6 -12
- package/esm2015/lib/common/stop-click-propagation/click-stop-propagation.directive.js +3 -3
- package/esm2015/lib/modules/smz-faqs/components/faqs-content/faqs-content.component.js +1 -1
- package/esm2015/lib/modules/smz-forms/components/input-content-mask/input-content-mask.component.js +2 -2
- package/esm2015/lib/modules/smz-forms/components/input-list/input-list-dialog-crud.component.js +4 -4
- package/esm2015/lib/modules/smz-forms/components/input-list/input-list-inline-crud.component.js +4 -4
- package/esm2015/lib/modules/smz-forms/components/input-list/input-list.component.js +2 -2
- package/esm2015/lib/modules/smz-forms/features/form-group/form-group.component.js +63 -43
- package/esm2015/lib/modules/smz-forms/models/control-types.js +1 -1
- package/esm2015/lib/modules/smz-forms/models/smz-forms.js +1 -1
- package/esm2015/lib/modules/smz-forms/smz-forms.module.js +10 -1
- package/esm2015/lib/modules/smz-layouts/pages/login/login.component.js +1 -1
- package/esm2015/lib/modules/smz-tables/features/table/table.component.js +2 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/ngx-smz-ui.js +78 -50
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-forms/form-builder.d.ts +2 -1
- package/lib/builders/smz-forms/form-group-builder.d.ts +1 -0
- package/lib/common/stop-click-propagation/click-stop-propagation.directive.d.ts +1 -1
- package/lib/modules/smz-forms/features/form-group/form-group.component.d.ts +5 -2
- package/lib/modules/smz-forms/models/control-types.d.ts +7 -7
- package/lib/modules/smz-forms/models/smz-forms.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/resources/assets/scss/forms/forms.scss +0 -2
|
@@ -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: "[
|
|
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: '[
|
|
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\"
|
|
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);
|
|
@@ -2366,7 +2372,7 @@
|
|
|
2366
2372
|
return InputContentMaskComponent;
|
|
2367
2373
|
}());
|
|
2368
2374
|
InputContentMaskComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputContentMaskComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2369
|
-
InputContentMaskComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputContentMaskComponent, selector: "smz-input-content-mask", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <div\n [ngClass]=\"input.inputClass\"\n [formControl]=\"control\"\n [variableId]=\"input.variableId\"\n [isDisabled]=\"input.isDisabled\"\n [quickActions]=\"input.quickActions\"\n transfervalue\n ></div>\n <!-- <textarea\n pInputTextarea\n [rows]=\"input.textAreaRows != null ? input.textAreaRows : 5\"\n fxFlex=\"grow\"\n class=\"p-col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\">\n </textarea> -->\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: TransferValueAccessor, selector: "[transfervalue][formControlName], [transfervalue][formControl], [transfervalue][ngModel]", inputs: ["ngModel", "variableId", "isDisabled", "quickActions"], outputs: ["ngModelChange"] }, { 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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2375
|
+
InputContentMaskComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputContentMaskComponent, selector: "smz-input-content-mask", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <div\n [ngClass]=\"'smz-input-content-mask ' + input.inputClass\"\n [formControl]=\"control\"\n [variableId]=\"input.variableId\"\n [isDisabled]=\"input.isDisabled\"\n [quickActions]=\"input.quickActions\"\n transfervalue\n ></div>\n <!-- <textarea\n pInputTextarea\n [rows]=\"input.textAreaRows != null ? input.textAreaRows : 5\"\n fxFlex=\"grow\"\n class=\"p-col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\">\n </textarea> -->\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: TransferValueAccessor, selector: "[transfervalue][formControlName], [transfervalue][formControl], [transfervalue][ngModel]", inputs: ["ngModel", "variableId", "isDisabled", "quickActions"], outputs: ["ngModelChange"] }, { 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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2370
2376
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputContentMaskComponent, decorators: [{
|
|
2371
2377
|
type: i0.Component,
|
|
2372
2378
|
args: [{
|
|
@@ -3582,17 +3588,19 @@
|
|
|
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;
|
|
3593
3600
|
/** hasChanges ocorre quando os valores do formulário são diferentes do último state salvo. */
|
|
3594
3601
|
this.hasChanges = false;
|
|
3595
3602
|
this.statusChanges = new i0.EventEmitter();
|
|
3603
|
+
this.changed = new i0.EventEmitter();
|
|
3596
3604
|
this.submit = new i0.EventEmitter();
|
|
3597
3605
|
this.isFirstUpdate = true;
|
|
3598
3606
|
this.emitChanges = true;
|
|
@@ -3739,6 +3747,7 @@
|
|
|
3739
3747
|
_this.checkCustomFunctions();
|
|
3740
3748
|
});
|
|
3741
3749
|
_this.fixRadioBug();
|
|
3750
|
+
_this.resetState();
|
|
3742
3751
|
}, 0);
|
|
3743
3752
|
}, 0);
|
|
3744
3753
|
}, 0);
|
|
@@ -3771,7 +3780,7 @@
|
|
|
3771
3780
|
}
|
|
3772
3781
|
setTimeout(function () {
|
|
3773
3782
|
_this.init();
|
|
3774
|
-
setTimeout(
|
|
3783
|
+
// setTimeout(() => { this.resetState(); }, 0);
|
|
3775
3784
|
}, 0);
|
|
3776
3785
|
}
|
|
3777
3786
|
else if (changes.config != null && changes.config.currentValue == null && changes.config.previousValue != null) {
|
|
@@ -3915,15 +3924,25 @@
|
|
|
3915
3924
|
};
|
|
3916
3925
|
/** Atualiza o state do formulário com seus valores atuais */
|
|
3917
3926
|
FormGroupComponent.prototype.resetState = function () {
|
|
3918
|
-
var data = this.
|
|
3927
|
+
var data = this.getData().data;
|
|
3919
3928
|
this.originalState = JSON.stringify(data).replace(/['"]+/g, '');
|
|
3920
3929
|
this.updateHasChanges();
|
|
3921
3930
|
};
|
|
3922
3931
|
/** Atualiza o hasChanges */
|
|
3923
3932
|
FormGroupComponent.prototype.updateHasChanges = function () {
|
|
3924
|
-
var
|
|
3933
|
+
var response = this.getData();
|
|
3925
3934
|
var original = this.originalState;
|
|
3926
|
-
var current = JSON.stringify(data).replace(/['"]+/g, '');
|
|
3935
|
+
var current = JSON.stringify(response.data).replace(/['"]+/g, '');
|
|
3936
|
+
if (this.hasChanges === false && original !== current) {
|
|
3937
|
+
this.changed.emit(response);
|
|
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
|
+
}
|
|
3927
3946
|
this.hasChanges = original !== current;
|
|
3928
3947
|
this.cdf.markForCheck();
|
|
3929
3948
|
};
|
|
@@ -3987,16 +4006,19 @@
|
|
|
3987
4006
|
if (((_d = this.config.functions) === null || _d === void 0 ? void 0 : _d.customBehavior) != null) {
|
|
3988
4007
|
(_e = this.config.functions) === null || _e === void 0 ? void 0 : _e.customBehavior(data, this.config, this.form, {});
|
|
3989
4008
|
}
|
|
3990
|
-
if (this.emitChanges) {
|
|
3991
|
-
this.statusChanges.emit(data);
|
|
3992
|
-
}
|
|
3993
|
-
else {
|
|
3994
|
-
this.emitChanges = true;
|
|
3995
|
-
}
|
|
3996
4009
|
}
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4010
|
+
if (this.emitChanges) {
|
|
4011
|
+
setTimeout(function () {
|
|
4012
|
+
_this.updateHasChanges();
|
|
4013
|
+
_this.statusChanges.emit(_this.getData());
|
|
4014
|
+
}, 0);
|
|
4015
|
+
}
|
|
4016
|
+
else {
|
|
4017
|
+
setTimeout(function () {
|
|
4018
|
+
_this.updateHasChanges();
|
|
4019
|
+
}, 0);
|
|
4020
|
+
this.emitChanges = true;
|
|
4021
|
+
}
|
|
4000
4022
|
};
|
|
4001
4023
|
FormGroupComponent.prototype.fixRadioBug = function () {
|
|
4002
4024
|
var e_11, _j, e_12, _k;
|
|
@@ -4049,7 +4071,7 @@
|
|
|
4049
4071
|
// console.log('--------------------------');
|
|
4050
4072
|
// console.log('--------------------------');
|
|
4051
4073
|
var data = {};
|
|
4052
|
-
var response = { data: data, isValid: true };
|
|
4074
|
+
var response = { data: data, isValid: true, hasUnsavedChanges: false };
|
|
4053
4075
|
var formFlattenResponse = (_b = (_a = this.config.behaviors) === null || _a === void 0 ? void 0 : _a.flattenResponse) !== null && _b !== void 0 ? _b : false;
|
|
4054
4076
|
try {
|
|
4055
4077
|
for (var _l = __values(this.config.groups), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
@@ -4093,6 +4115,7 @@
|
|
|
4093
4115
|
}
|
|
4094
4116
|
;
|
|
4095
4117
|
this.isValid = response.isValid;
|
|
4118
|
+
response.hasUnsavedChanges = this.hasChanges;
|
|
4096
4119
|
// console.log('isValid', this.isValid);
|
|
4097
4120
|
return response;
|
|
4098
4121
|
};
|
|
@@ -4106,8 +4129,8 @@
|
|
|
4106
4129
|
};
|
|
4107
4130
|
return FormGroupComponent;
|
|
4108
4131
|
}());
|
|
4109
|
-
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 });
|
|
4110
|
-
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", 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 });
|
|
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 });
|
|
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 });
|
|
4111
4134
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, decorators: [{
|
|
4112
4135
|
type: i0.Component,
|
|
4113
4136
|
args: [{
|
|
@@ -4115,10 +4138,12 @@
|
|
|
4115
4138
|
templateUrl: './form-group.component.html',
|
|
4116
4139
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4117
4140
|
}]
|
|
4118
|
-
}], 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: [{
|
|
4119
4142
|
type: i0.Input
|
|
4120
4143
|
}], statusChanges: [{
|
|
4121
4144
|
type: i0.Output
|
|
4145
|
+
}], changed: [{
|
|
4146
|
+
type: i0.Output
|
|
4122
4147
|
}], submit: [{
|
|
4123
4148
|
type: i0.Output
|
|
4124
4149
|
}] } });
|
|
@@ -4800,12 +4825,12 @@
|
|
|
4800
4825
|
return InputListDialogCrudComponent;
|
|
4801
4826
|
}());
|
|
4802
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 });
|
|
4803
|
-
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\"
|
|
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"] }] });
|
|
4804
4829
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, decorators: [{
|
|
4805
4830
|
type: i0.Component,
|
|
4806
4831
|
args: [{
|
|
4807
4832
|
selector: 'smz-input-list-dialog-crud',
|
|
4808
|
-
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\"
|
|
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 ",
|
|
4809
4834
|
}]
|
|
4810
4835
|
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
|
|
4811
4836
|
type: i0.ViewChild,
|
|
@@ -4859,12 +4884,12 @@
|
|
|
4859
4884
|
return InputListInlineCrudComponent;
|
|
4860
4885
|
}());
|
|
4861
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 });
|
|
4862
|
-
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\"
|
|
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"] }] });
|
|
4863
4888
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, decorators: [{
|
|
4864
4889
|
type: i0.Component,
|
|
4865
4890
|
args: [{
|
|
4866
4891
|
selector: 'smz-input-list-inline-crud',
|
|
4867
|
-
template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\"
|
|
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 ",
|
|
4868
4893
|
}]
|
|
4869
4894
|
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2__namespace$2.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
|
|
4870
4895
|
type: i0.ViewChild,
|
|
@@ -4953,6 +4978,15 @@
|
|
|
4953
4978
|
mediumRegex: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})',
|
|
4954
4979
|
strongRegex: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,}).'
|
|
4955
4980
|
},
|
|
4981
|
+
_a$1[exports.SmzControlType.CONTENT_MASK] = {
|
|
4982
|
+
tagClass: 'text-green-500 font-bold',
|
|
4983
|
+
variableBegin: '{{',
|
|
4984
|
+
variableEnd: '}}',
|
|
4985
|
+
exportHtmlNewLine: false,
|
|
4986
|
+
quickActions: [],
|
|
4987
|
+
variableId: 'input__variable',
|
|
4988
|
+
inputClass: '',
|
|
4989
|
+
},
|
|
4956
4990
|
_a$1)
|
|
4957
4991
|
};
|
|
4958
4992
|
var NgxSmzFormsModule = /** @class */ (function () {
|
|
@@ -5558,12 +5592,6 @@
|
|
|
5558
5592
|
}]
|
|
5559
5593
|
}] });
|
|
5560
5594
|
|
|
5561
|
-
var NgxRbkUtilsConfig = /** @class */ (function () {
|
|
5562
|
-
function NgxRbkUtilsConfig() {
|
|
5563
|
-
}
|
|
5564
|
-
return NgxRbkUtilsConfig;
|
|
5565
|
-
}());
|
|
5566
|
-
|
|
5567
5595
|
var DialogFooterComponent = /** @class */ (function () {
|
|
5568
5596
|
function DialogFooterComponent(refService, dialogConfig, presets, visibilityService, injectComponent, cdf, actions$, rbkConfig, store) {
|
|
5569
5597
|
this.refService = refService;
|
|
@@ -8373,7 +8401,7 @@
|
|
|
8373
8401
|
return SmzTableComponent;
|
|
8374
8402
|
}());
|
|
8375
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 });
|
|
8376
|
-
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 });
|
|
8377
8405
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzTableComponent, decorators: [{
|
|
8378
8406
|
type: i0.Component,
|
|
8379
8407
|
args: [{
|
|
@@ -10578,6 +10606,7 @@
|
|
|
10578
10606
|
function SmzFormGroupBuilder(_formBuilder, group) {
|
|
10579
10607
|
this._formBuilder = _formBuilder;
|
|
10580
10608
|
this.group = group;
|
|
10609
|
+
this.defaultConfig = GlobalInjector.instance.get(SmzDialogsConfig);
|
|
10581
10610
|
}
|
|
10582
10611
|
SmzFormGroupBuilder.prototype.setLayout = function (breakpoint, colType) {
|
|
10583
10612
|
var template = getSmzTemplate(breakpoint, colType);
|
|
@@ -10808,17 +10837,8 @@
|
|
|
10808
10837
|
if (label == null) {
|
|
10809
10838
|
throw Error('Label is required for contentMask');
|
|
10810
10839
|
}
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
defaultValue: defaultValue,
|
|
10814
|
-
quickActions: [],
|
|
10815
|
-
variableId: 'input__variable',
|
|
10816
|
-
inputClass: 'smz-input-content-mask',
|
|
10817
|
-
tagClass: '',
|
|
10818
|
-
variableBegin: '{{',
|
|
10819
|
-
variableEnd: '}}',
|
|
10820
|
-
exportHtmlNewLine: false
|
|
10821
|
-
};
|
|
10840
|
+
var defaults = this.defaultConfig.forms.controlTypes[exports.SmzControlType.CONTENT_MASK];
|
|
10841
|
+
input = Object.assign(Object.assign({}, defaults), { propertyName: property, type: exports.SmzControlType.CONTENT_MASK, name: label, defaultValue: defaultValue });
|
|
10822
10842
|
this.group.children.push(input);
|
|
10823
10843
|
}
|
|
10824
10844
|
else {
|
|
@@ -12192,10 +12212,18 @@
|
|
|
12192
12212
|
this._state.behaviors.debounceTime = debouceTime;
|
|
12193
12213
|
return this;
|
|
12194
12214
|
};
|
|
12195
|
-
SmzFormBuilder.prototype.
|
|
12196
|
-
this._state.behaviors.updateOn =
|
|
12197
|
-
|
|
12198
|
-
|
|
12215
|
+
SmzFormBuilder.prototype.emitChangesOnFocusExit = function () {
|
|
12216
|
+
this._state.behaviors.updateOn = 'blur';
|
|
12217
|
+
this._state.behaviors.skipEmitChangesOnLoad = true;
|
|
12218
|
+
return this;
|
|
12219
|
+
};
|
|
12220
|
+
// public EmitChangesOnSubmit(): SmzFormBuilder<TResponse> {
|
|
12221
|
+
// this._state.behaviors.updateOn = 'submit';
|
|
12222
|
+
// this._state.behaviors.skipEmitChangesOnLoad = true;
|
|
12223
|
+
// return this;
|
|
12224
|
+
// }
|
|
12225
|
+
SmzFormBuilder.prototype.emitChangesOnAllChanges = function () {
|
|
12226
|
+
this._state.behaviors.updateOn = 'change';
|
|
12199
12227
|
return this;
|
|
12200
12228
|
};
|
|
12201
12229
|
SmzFormBuilder.prototype.avoidEmitChangesOnLoad = function () {
|
|
@@ -13527,7 +13555,7 @@
|
|
|
13527
13555
|
return FaqsContentComponent;
|
|
13528
13556
|
}());
|
|
13529
13557
|
FaqsContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FaqsContentComponent, deps: [{ token: FaqsManagerService }, { token: i0__namespace.ChangeDetectorRef }, { token: SmzDialogsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13530
|
-
FaqsContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FaqsContentComponent, selector: "smz-faqs-content", inputs: { items: "items" }, ngImport: i0__namespace, template: "<div class=\"p-grid\">\n\n <div class=\"p-col-12\">\n <h3>{{ manager.config.placeholders.searchTitle }}</h3>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\"><i class=\"fas fa-search\"></i></span>\n <input type=\"text\" [(ngModel)]=\"keywords\" pInputText [placeholder]=\"manager.config.placeholders.searchPlaceholder\">\n <button pButton [disabled]=\"keywords === ''\" (click)=\"keywords = ''\" type=\"button\" icon=\"fas fa-times\" class=\"p-button-warn\"></button>\n </div>\n </div>\n\n <div class=\"p-col-12\">\n <ng-container *ngIf=\"(items | searchFaqs : keywords) as filtered\">\n <ng-container *ngIf=\"filtered.length > 0; else emptyTemplate\">\n <h3>{{ manager.config.placeholders.contentTitle }}</h3>\n <p-accordion>\n <ng-container *ngFor=\"let item of filtered\">\n <p-accordionTab [header]=\"item.question\" [selected]=\"item.metadata?.selected\">\n <div *ngIf=\"manager.config.creationClaim | rbkCanAccess\" class=\"faqs__actions\">\n <a class=\"clickable hvr-icon-push mr-2\" (click)=\"update(item)\"><i class=\"far fa-edit hvr-icon\"></i></a>\n <a class=\"clickable hvr-icon-push\" (click)=\"delete(item)\"><i class=\"far fa-trash-alt hvr-icon\"></i></a>\n </div>\n <div class=\"faqs__answer\" [innerHTML]=\"(item.answer | highlight : keywords) | safeHtml\"></div>\n </p-accordionTab>\n </ng-container>\n </p-accordion>\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"p-col-12\">\n <ng-container *ngIf=\"(manager.config.creationClaim | rbkCanAccess) && formConfig != null\">\n <h3>{{ manager.config.placeholders.creationTitle }}</h3>\n <smz-form-group #creationComponent [config]=\"formConfig\"></smz-form-group>\n <button pButton type=\"button\" class=\"p-button p-button-ghost\" label=\"ENVIAR\" [disabled]=\"!creationComponent.isValid\" (click)=\"create(creationComponent)\"></button>\n </ng-container>\n </div>\n</div>\n\n\n<ng-template #emptyTemplate>\n <smz-icon-message\n [message]=\"manager.config.placeholders.emptyMessage\"\n [comment]=\"(manager.config.creationClaim | rbkCanAccess) ?\n manager.config.placeholders.creationMessage :\n (keywords === '') ?\n manager.config.placeholders.supportMessage :\n manager.config.placeholders.noSearchResultsMessage\"\n >\n </smz-icon-message>\n</ng-template>\n\n", styles: [".faqs__answer{white-space:pre-wrap}.faqs__actions{width:100%;text-align:right;padding:0 0 10px}.p-input-icon-left,.p-input-icon-right{position:relative}.ui-float-icon{position:absolute;top:50%;margin-top:-.5rem;left:.5rem;color:#6c757d}.p-input-icon-left>.ui-inputtext{padding-left:2rem;border-left-width:1px}\n"], components: [{ type: i3__namespace$5.Accordion, selector: "p-accordion", inputs: ["multiple", "style", "styleClass", "expandIcon", "collapseIcon", "activeIndex"], outputs: ["onClose", "onOpen", "activeIndexChange"] }, { type: i3__namespace$5.AccordionTab, selector: "p-accordionTab", inputs: ["header", "disabled", "cache", "transitionOptions", "selected"], outputs: ["selectedChange"] }, { type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "submit"] }, { type: SmzIconMessageComponent, selector: "smz-icon-message", inputs: ["icon", "message", "comment"] }], directives: [{ 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.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "searchFaqs": SearchFaqsPipe, "rbkCanAccess": RbkCanAccessPipe, "safeHtml": SafeHtmlPipe, "highlight": HighlightSearch } });
|
|
13558
|
+
FaqsContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FaqsContentComponent, selector: "smz-faqs-content", inputs: { items: "items" }, ngImport: i0__namespace, template: "<div class=\"p-grid\">\n\n <div class=\"p-col-12\">\n <h3>{{ manager.config.placeholders.searchTitle }}</h3>\n <div class=\"p-inputgroup\">\n <span class=\"p-inputgroup-addon\"><i class=\"fas fa-search\"></i></span>\n <input type=\"text\" [(ngModel)]=\"keywords\" pInputText [placeholder]=\"manager.config.placeholders.searchPlaceholder\">\n <button pButton [disabled]=\"keywords === ''\" (click)=\"keywords = ''\" type=\"button\" icon=\"fas fa-times\" class=\"p-button-warn\"></button>\n </div>\n </div>\n\n <div class=\"p-col-12\">\n <ng-container *ngIf=\"(items | searchFaqs : keywords) as filtered\">\n <ng-container *ngIf=\"filtered.length > 0; else emptyTemplate\">\n <h3>{{ manager.config.placeholders.contentTitle }}</h3>\n <p-accordion>\n <ng-container *ngFor=\"let item of filtered\">\n <p-accordionTab [header]=\"item.question\" [selected]=\"item.metadata?.selected\">\n <div *ngIf=\"manager.config.creationClaim | rbkCanAccess\" class=\"faqs__actions\">\n <a class=\"clickable hvr-icon-push mr-2\" (click)=\"update(item)\"><i class=\"far fa-edit hvr-icon\"></i></a>\n <a class=\"clickable hvr-icon-push\" (click)=\"delete(item)\"><i class=\"far fa-trash-alt hvr-icon\"></i></a>\n </div>\n <div class=\"faqs__answer\" [innerHTML]=\"(item.answer | highlight : keywords) | safeHtml\"></div>\n </p-accordionTab>\n </ng-container>\n </p-accordion>\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"p-col-12\">\n <ng-container *ngIf=\"(manager.config.creationClaim | rbkCanAccess) && formConfig != null\">\n <h3>{{ manager.config.placeholders.creationTitle }}</h3>\n <smz-form-group #creationComponent [config]=\"formConfig\"></smz-form-group>\n <button pButton type=\"button\" class=\"p-button p-button-ghost\" label=\"ENVIAR\" [disabled]=\"!creationComponent.isValid\" (click)=\"create(creationComponent)\"></button>\n </ng-container>\n </div>\n</div>\n\n\n<ng-template #emptyTemplate>\n <smz-icon-message\n [message]=\"manager.config.placeholders.emptyMessage\"\n [comment]=\"(manager.config.creationClaim | rbkCanAccess) ?\n manager.config.placeholders.creationMessage :\n (keywords === '') ?\n manager.config.placeholders.supportMessage :\n manager.config.placeholders.noSearchResultsMessage\"\n >\n </smz-icon-message>\n</ng-template>\n\n", styles: [".faqs__answer{white-space:pre-wrap}.faqs__actions{width:100%;text-align:right;padding:0 0 10px}.p-input-icon-left,.p-input-icon-right{position:relative}.ui-float-icon{position:absolute;top:50%;margin-top:-.5rem;left:.5rem;color:#6c757d}.p-input-icon-left>.ui-inputtext{padding-left:2rem;border-left-width:1px}\n"], components: [{ type: i3__namespace$5.Accordion, selector: "p-accordion", inputs: ["multiple", "style", "styleClass", "expandIcon", "collapseIcon", "activeIndex"], outputs: ["onClose", "onOpen", "activeIndexChange"] }, { type: i3__namespace$5.AccordionTab, selector: "p-accordionTab", inputs: ["header", "disabled", "cache", "transitionOptions", "selected"], outputs: ["selectedChange"] }, { type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }, { type: SmzIconMessageComponent, selector: "smz-icon-message", inputs: ["icon", "message", "comment"] }], directives: [{ 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.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "searchFaqs": SearchFaqsPipe, "rbkCanAccess": RbkCanAccessPipe, "safeHtml": SafeHtmlPipe, "highlight": HighlightSearch } });
|
|
13531
13559
|
__decorate([
|
|
13532
13560
|
Confirmable('Confirma a criação desta pergunta/resposta ?', 'Aviso')
|
|
13533
13561
|
], FaqsContentComponent.prototype, "create", null);
|
|
@@ -14581,7 +14609,7 @@
|
|
|
14581
14609
|
return LoginComponent;
|
|
14582
14610
|
}());
|
|
14583
14611
|
LoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: LoginComponent, deps: [{ token: SmzLayoutsConfig }, { token: i1__namespace$4.Store }, { token: NgxRbkUtilsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
14584
|
-
LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: LoginComponent, selector: "smz-ui-login", ngImport: i0__namespace, template: "<div class=\"login-page p-d-flex p-ai-center p-jc-center\">\n <div>\n <div class=\"p-d-flex p-flex-column\">\n <div class=\"login-card-container p-p-5\">\n <div class=\"p-d-flex p-flex-column login-container p-align-center\">\n <img class=\"login-logo\" alt=\"\" [src]=\"(appLogo$ | async).vertical\" />\n <p class=\"g-mb-2\">Entre com as suas credenciais:</p>\n <smz-form-group #formComponent (submit)=\"login($event)\" [config]=\"form\"></smz-form-group>\n <!-- <a class=\"link g-mb-2 g-mt-1\">Esqueceu a senha?</a> -->\n <button pButton class=\"p-col-12\" [disabled]=\"!formComponent.isValid\" type=\"button\" label=\"ENTRAR\" (click)=\"login(formComponent.getData())\"></button>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".login-page{background:var(--primary-color);overflow-y:auto;position:fixed;top:0;bottom:0;left:0;right:0}.login-card-container{background:var(--surface-b);color:var(--text-color);border-radius:6px;box-shadow:0 2.8px 2.2px #00000005,0 6.7px 5.3px #00000007,0 12.5px 10px #00000009,0 22.3px 17.9px #0000000b,0 41.8px 33.4px #0000000d,0 100px 80px #00000012}.login-logo{width:50%}\n"], components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "submit"] }], directives: [{ type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], pipes: { "async": i1__namespace.AsyncPipe } });
|
|
14612
|
+
LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: LoginComponent, selector: "smz-ui-login", ngImport: i0__namespace, template: "<div class=\"login-page p-d-flex p-ai-center p-jc-center\">\n <div>\n <div class=\"p-d-flex p-flex-column\">\n <div class=\"login-card-container p-p-5\">\n <div class=\"p-d-flex p-flex-column login-container p-align-center\">\n <img class=\"login-logo\" alt=\"\" [src]=\"(appLogo$ | async).vertical\" />\n <p class=\"g-mb-2\">Entre com as suas credenciais:</p>\n <smz-form-group #formComponent (submit)=\"login($event)\" [config]=\"form\"></smz-form-group>\n <!-- <a class=\"link g-mb-2 g-mt-1\">Esqueceu a senha?</a> -->\n <button pButton class=\"p-col-12\" [disabled]=\"!formComponent.isValid\" type=\"button\" label=\"ENTRAR\" (click)=\"login(formComponent.getData())\"></button>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: [".login-page{background:var(--primary-color);overflow-y:auto;position:fixed;top:0;bottom:0;left:0;right:0}.login-card-container{background:var(--surface-b);color:var(--text-color);border-radius:6px;box-shadow:0 2.8px 2.2px #00000005,0 6.7px 5.3px #00000007,0 12.5px 10px #00000009,0 22.3px 17.9px #0000000b,0 41.8px 33.4px #0000000d,0 100px 80px #00000012}.login-logo{width:50%}\n"], components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], pipes: { "async": i1__namespace.AsyncPipe } });
|
|
14585
14613
|
__decorate([
|
|
14586
14614
|
i1$4.Select(LayoutUiSelectors.appContentLogo)
|
|
14587
14615
|
], LoginComponent.prototype, "appLogo$", void 0);
|
|
@@ -24784,6 +24812,8 @@
|
|
|
24784
24812
|
exports.CanAccess = CanAccess;
|
|
24785
24813
|
exports.CheckBoxComponent = CheckBoxComponent;
|
|
24786
24814
|
exports.CheckBoxGroupComponent = CheckBoxGroupComponent;
|
|
24815
|
+
exports.ClickStopPropagationDirective = ClickStopPropagationDirective;
|
|
24816
|
+
exports.ClickStopPropagationModule = ClickStopPropagationModule;
|
|
24787
24817
|
exports.ClonePipe = ClonePipe;
|
|
24788
24818
|
exports.ColorPickerComponent = ColorPickerComponent;
|
|
24789
24819
|
exports.Confirmable = Confirmable;
|