ngx-smz-ui 3.5.5 → 3.5.6
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 +42 -23
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-forms/form-builder.js +13 -5
- package/esm2015/lib/modules/smz-faqs/components/faqs-content/faqs-content.component.js +1 -1
- package/esm2015/lib/modules/smz-forms/components/input-list/input-list-dialog-crud.component.js +1 -1
- package/esm2015/lib/modules/smz-forms/components/input-list/input-list-inline-crud.component.js +1 -1
- package/esm2015/lib/modules/smz-forms/features/form-group/form-group.component.js +27 -16
- package/esm2015/lib/modules/smz-forms/models/smz-forms.js +1 -1
- package/esm2015/lib/modules/smz-layouts/pages/login/login.component.js +1 -1
- package/fesm2015/ngx-smz-ui.js +42 -23
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-forms/form-builder.d.ts +2 -1
- package/lib/modules/smz-forms/features/form-group/form-group.component.d.ts +2 -1
- package/lib/modules/smz-forms/models/smz-forms.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3593,6 +3593,7 @@
|
|
|
3593
3593
|
/** hasChanges ocorre quando os valores do formulário são diferentes do último state salvo. */
|
|
3594
3594
|
this.hasChanges = false;
|
|
3595
3595
|
this.statusChanges = new i0.EventEmitter();
|
|
3596
|
+
this.changed = new i0.EventEmitter();
|
|
3596
3597
|
this.submit = new i0.EventEmitter();
|
|
3597
3598
|
this.isFirstUpdate = true;
|
|
3598
3599
|
this.emitChanges = true;
|
|
@@ -3739,6 +3740,7 @@
|
|
|
3739
3740
|
_this.checkCustomFunctions();
|
|
3740
3741
|
});
|
|
3741
3742
|
_this.fixRadioBug();
|
|
3743
|
+
_this.resetState();
|
|
3742
3744
|
}, 0);
|
|
3743
3745
|
}, 0);
|
|
3744
3746
|
}, 0);
|
|
@@ -3771,7 +3773,7 @@
|
|
|
3771
3773
|
}
|
|
3772
3774
|
setTimeout(function () {
|
|
3773
3775
|
_this.init();
|
|
3774
|
-
setTimeout(
|
|
3776
|
+
// setTimeout(() => { this.resetState(); }, 0);
|
|
3775
3777
|
}, 0);
|
|
3776
3778
|
}
|
|
3777
3779
|
else if (changes.config != null && changes.config.currentValue == null && changes.config.previousValue != null) {
|
|
@@ -3915,15 +3917,18 @@
|
|
|
3915
3917
|
};
|
|
3916
3918
|
/** Atualiza o state do formulário com seus valores atuais */
|
|
3917
3919
|
FormGroupComponent.prototype.resetState = function () {
|
|
3918
|
-
var data = this.
|
|
3920
|
+
var data = this.getData().data;
|
|
3919
3921
|
this.originalState = JSON.stringify(data).replace(/['"]+/g, '');
|
|
3920
3922
|
this.updateHasChanges();
|
|
3921
3923
|
};
|
|
3922
3924
|
/** Atualiza o hasChanges */
|
|
3923
3925
|
FormGroupComponent.prototype.updateHasChanges = function () {
|
|
3924
|
-
var
|
|
3926
|
+
var response = this.getData();
|
|
3925
3927
|
var original = this.originalState;
|
|
3926
|
-
var current = JSON.stringify(data).replace(/['"]+/g, '');
|
|
3928
|
+
var current = JSON.stringify(response.data).replace(/['"]+/g, '');
|
|
3929
|
+
if (this.hasChanges === false && original !== current) {
|
|
3930
|
+
this.changed.emit(response);
|
|
3931
|
+
}
|
|
3927
3932
|
this.hasChanges = original !== current;
|
|
3928
3933
|
this.cdf.markForCheck();
|
|
3929
3934
|
};
|
|
@@ -3987,16 +3992,19 @@
|
|
|
3987
3992
|
if (((_d = this.config.functions) === null || _d === void 0 ? void 0 : _d.customBehavior) != null) {
|
|
3988
3993
|
(_e = this.config.functions) === null || _e === void 0 ? void 0 : _e.customBehavior(data, this.config, this.form, {});
|
|
3989
3994
|
}
|
|
3990
|
-
if (this.emitChanges) {
|
|
3991
|
-
this.statusChanges.emit(data);
|
|
3992
|
-
}
|
|
3993
|
-
else {
|
|
3994
|
-
this.emitChanges = true;
|
|
3995
|
-
}
|
|
3996
3995
|
}
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
3996
|
+
if (this.emitChanges) {
|
|
3997
|
+
setTimeout(function () {
|
|
3998
|
+
_this.updateHasChanges();
|
|
3999
|
+
_this.statusChanges.emit(_this.getData());
|
|
4000
|
+
}, 0);
|
|
4001
|
+
}
|
|
4002
|
+
else {
|
|
4003
|
+
setTimeout(function () {
|
|
4004
|
+
_this.updateHasChanges();
|
|
4005
|
+
}, 0);
|
|
4006
|
+
this.emitChanges = true;
|
|
4007
|
+
}
|
|
4000
4008
|
};
|
|
4001
4009
|
FormGroupComponent.prototype.fixRadioBug = function () {
|
|
4002
4010
|
var e_11, _j, e_12, _k;
|
|
@@ -4049,7 +4057,7 @@
|
|
|
4049
4057
|
// console.log('--------------------------');
|
|
4050
4058
|
// console.log('--------------------------');
|
|
4051
4059
|
var data = {};
|
|
4052
|
-
var response = { data: data, isValid: true };
|
|
4060
|
+
var response = { data: data, isValid: true, hasUnsavedChanges: false };
|
|
4053
4061
|
var formFlattenResponse = (_b = (_a = this.config.behaviors) === null || _a === void 0 ? void 0 : _a.flattenResponse) !== null && _b !== void 0 ? _b : false;
|
|
4054
4062
|
try {
|
|
4055
4063
|
for (var _l = __values(this.config.groups), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
@@ -4093,6 +4101,7 @@
|
|
|
4093
4101
|
}
|
|
4094
4102
|
;
|
|
4095
4103
|
this.isValid = response.isValid;
|
|
4104
|
+
response.hasUnsavedChanges = this.hasChanges;
|
|
4096
4105
|
// console.log('isValid', this.isValid);
|
|
4097
4106
|
return response;
|
|
4098
4107
|
};
|
|
@@ -4107,7 +4116,7 @@
|
|
|
4107
4116
|
return FormGroupComponent;
|
|
4108
4117
|
}());
|
|
4109
4118
|
FormGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, deps: [{ token: i1__namespace$2.FormBuilder }, { token: i0__namespace.ChangeDetectorRef }, { token: SmzFormsManagerService }, { token: SmzDialogsConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
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 });
|
|
4119
|
+
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
4120
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FormGroupComponent, decorators: [{
|
|
4112
4121
|
type: i0.Component,
|
|
4113
4122
|
args: [{
|
|
@@ -4119,6 +4128,8 @@
|
|
|
4119
4128
|
type: i0.Input
|
|
4120
4129
|
}], statusChanges: [{
|
|
4121
4130
|
type: i0.Output
|
|
4131
|
+
}], changed: [{
|
|
4132
|
+
type: i0.Output
|
|
4122
4133
|
}], submit: [{
|
|
4123
4134
|
type: i0.Output
|
|
4124
4135
|
}] } });
|
|
@@ -4800,7 +4811,7 @@
|
|
|
4800
4811
|
return InputListDialogCrudComponent;
|
|
4801
4812
|
}());
|
|
4802
4813
|
InputListDialogCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2__namespace$2.DynamicDialogConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
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\" furyClickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
4814
|
+
InputListDialogCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListDialogCrudComponent, selector: "smz-input-list-dialog-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <div class=\"p-grid p-nogutter p-align-start p-justify-start\">\n <smz-form-group class=\"p-col\" #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <div class=\"w-full p-grid p-nogutter p-align-start p-justify-end\">\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </div>\n </div>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
4804
4815
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListDialogCrudComponent, decorators: [{
|
|
4805
4816
|
type: i0.Component,
|
|
4806
4817
|
args: [{
|
|
@@ -4859,7 +4870,7 @@
|
|
|
4859
4870
|
return InputListInlineCrudComponent;
|
|
4860
4871
|
}());
|
|
4861
4872
|
InputListInlineCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2__namespace$2.DynamicDialogConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
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\" furyClickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
4873
|
+
InputListInlineCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputListInlineCrudComponent, selector: "smz-input-list-inline-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"form != null\">\n <smz-form-group #formComponent [config]=\"form\" furyClickStopPropagation></smz-form-group>\n <button pButton (click)=\"confirm()\" type=\"button\" [disabled]=\"!formComponent.isValid\" icon=\"pi pi-check\" label=\"Confirmar\" styleClass=\"p-mr-2\"></button>\n </ng-container>\n ", isInline: true, components: [{ type: FormGroupComponent, selector: "smz-form-group", inputs: ["config"], outputs: ["statusChanges", "changed", "submit"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ClickStopPropagationDirective, selector: "[furyClickStopPropagation]" }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
4863
4874
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputListInlineCrudComponent, decorators: [{
|
|
4864
4875
|
type: i0.Component,
|
|
4865
4876
|
args: [{
|
|
@@ -12192,10 +12203,18 @@
|
|
|
12192
12203
|
this._state.behaviors.debounceTime = debouceTime;
|
|
12193
12204
|
return this;
|
|
12194
12205
|
};
|
|
12195
|
-
SmzFormBuilder.prototype.
|
|
12196
|
-
this._state.behaviors.updateOn =
|
|
12197
|
-
|
|
12198
|
-
|
|
12206
|
+
SmzFormBuilder.prototype.emitChangesOnFocusExit = function () {
|
|
12207
|
+
this._state.behaviors.updateOn = 'blur';
|
|
12208
|
+
this._state.behaviors.skipEmitChangesOnLoad = true;
|
|
12209
|
+
return this;
|
|
12210
|
+
};
|
|
12211
|
+
// public EmitChangesOnSubmit(): SmzFormBuilder<TResponse> {
|
|
12212
|
+
// this._state.behaviors.updateOn = 'submit';
|
|
12213
|
+
// this._state.behaviors.skipEmitChangesOnLoad = true;
|
|
12214
|
+
// return this;
|
|
12215
|
+
// }
|
|
12216
|
+
SmzFormBuilder.prototype.emitChangesOnAllChanges = function () {
|
|
12217
|
+
this._state.behaviors.updateOn = 'change';
|
|
12199
12218
|
return this;
|
|
12200
12219
|
};
|
|
12201
12220
|
SmzFormBuilder.prototype.avoidEmitChangesOnLoad = function () {
|
|
@@ -13527,7 +13546,7 @@
|
|
|
13527
13546
|
return FaqsContentComponent;
|
|
13528
13547
|
}());
|
|
13529
13548
|
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 } });
|
|
13549
|
+
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
13550
|
__decorate([
|
|
13532
13551
|
Confirmable('Confirma a criação desta pergunta/resposta ?', 'Aviso')
|
|
13533
13552
|
], FaqsContentComponent.prototype, "create", null);
|
|
@@ -14581,7 +14600,7 @@
|
|
|
14581
14600
|
return LoginComponent;
|
|
14582
14601
|
}());
|
|
14583
14602
|
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 } });
|
|
14603
|
+
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
14604
|
__decorate([
|
|
14586
14605
|
i1$4.Select(LayoutUiSelectors.appContentLogo)
|
|
14587
14606
|
], LoginComponent.prototype, "appLogo$", void 0);
|