ngx-smz-ui 4.3.1 → 4.3.2
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/esm2020/lib/builders/smz-forms/form-builder.mjs +1 -6
- package/esm2020/lib/builders/smz-forms/form-group-builder.mjs +2 -1
- package/esm2020/lib/modules/smz-forms/components/file-upload/file-upload.component.mjs +19 -13
- package/esm2020/lib/modules/smz-forms/components/input-switch/input-switch.component.mjs +3 -3
- package/esm2020/lib/modules/smz-forms/components/input-text-button/input-text-button.component.mjs +22 -6
- package/esm2020/lib/modules/smz-forms/features/form-group/form-group.component.mjs +2 -24
- package/esm2020/lib/modules/smz-forms/models/behaviors.mjs +1 -1
- package/esm2020/lib/modules/smz-forms/models/control-types.mjs +1 -1
- package/esm2020/lib/modules/smz-forms/models/form-viewdata.mjs +17 -8
- package/esm2020/lib/modules/smz-forms/services/smz-forms-manager.service.mjs +31 -1
- package/fesm2015/ngx-smz-ui.mjs +189 -160
- package/fesm2015/ngx-smz-ui.mjs.map +1 -1
- package/fesm2020/ngx-smz-ui.mjs +188 -160
- package/fesm2020/ngx-smz-ui.mjs.map +1 -1
- package/lib/builders/smz-forms/form-builder.d.ts +0 -1
- package/lib/builders/smz-forms/form-group-builder.d.ts +2 -1
- package/lib/modules/smz-forms/components/file-upload/file-upload.component.d.ts +4 -1
- package/lib/modules/smz-forms/components/input-text-button/input-text-button.component.d.ts +1 -0
- package/lib/modules/smz-forms/models/behaviors.d.ts +0 -1
- package/lib/modules/smz-forms/models/control-types.d.ts +3 -1
- package/lib/modules/smz-forms/models/form-viewdata.d.ts +3 -1
- package/package.json +1 -1
- package/resources/assets/scss/dialogs/smz-general-styles.scss +1 -1
package/fesm2015/ngx-smz-ui.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
8
8
|
import { DialogModule } from 'primeng/dialog';
|
|
9
9
|
import * as i8$1 from 'primeng/toast';
|
|
10
10
|
import { ToastModule } from 'primeng/toast';
|
|
11
|
-
import * as i5 from 'primeng/table';
|
|
11
|
+
import * as i5$1 from 'primeng/table';
|
|
12
12
|
import { ColumnFilter, Table, TableModule } from 'primeng/table';
|
|
13
13
|
import * as i6 from 'primeng/button';
|
|
14
14
|
import { ButtonModule } from 'primeng/button';
|
|
@@ -20,7 +20,7 @@ import * as i3$1 from 'primeng/listbox';
|
|
|
20
20
|
import { ListboxModule } from 'primeng/listbox';
|
|
21
21
|
import { take, takeWhile as takeWhile$1, debounceTime, catchError, map, tap, filter, mergeMap, takeUntil as takeUntil$1, share, switchMap, finalize } from 'rxjs/operators';
|
|
22
22
|
import { cloneDeep, uniqBy, flatten as flatten$1, isEqual, sortBy } from 'lodash-es';
|
|
23
|
-
import { BehaviorSubject, firstValueFrom, Subject, Observable, of, throwError } from 'rxjs';
|
|
23
|
+
import { BehaviorSubject, firstValueFrom, take as take$1, Subject, Observable, of, throwError } from 'rxjs';
|
|
24
24
|
import * as i1$2 from 'primeng/password';
|
|
25
25
|
import { PasswordModule } from 'primeng/password';
|
|
26
26
|
import * as i1$1 from 'primeng/tooltip';
|
|
@@ -39,10 +39,10 @@ import * as i2 from 'primeng/inputnumber';
|
|
|
39
39
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
40
40
|
import * as i3$2 from 'primeng/inputtextarea';
|
|
41
41
|
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
42
|
-
import * as
|
|
42
|
+
import * as i5 from '@angular/flex-layout/extended';
|
|
43
43
|
import * as i2$1 from 'primeng/overlaypanel';
|
|
44
44
|
import { OverlayPanel, OverlayPanelModule } from 'primeng/overlaypanel';
|
|
45
|
-
import * as i4$
|
|
45
|
+
import * as i4$1 from 'primeng/dropdown';
|
|
46
46
|
import { DropdownModule } from 'primeng/dropdown';
|
|
47
47
|
import * as i1$7 from 'primeng/radiobutton';
|
|
48
48
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
@@ -52,31 +52,31 @@ import * as i3$3 from 'primeng/checkbox';
|
|
|
52
52
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
53
53
|
import * as i1$9 from 'primeng/calendar';
|
|
54
54
|
import { CalendarModule } from 'primeng/calendar';
|
|
55
|
-
import * as
|
|
55
|
+
import * as i2$2 from 'primeng/messages';
|
|
56
56
|
import { MessagesModule } from 'primeng/messages';
|
|
57
57
|
import * as i1$a from '@angular/platform-browser';
|
|
58
|
-
import * as i1$
|
|
58
|
+
import * as i1$b from 'primeng/multiselect';
|
|
59
59
|
import { MultiSelectModule } from 'primeng/multiselect';
|
|
60
|
-
import * as i1$
|
|
60
|
+
import * as i1$c from 'primeng/colorpicker';
|
|
61
61
|
import { ColorPickerModule } from 'primeng/colorpicker';
|
|
62
|
+
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
62
63
|
import { FileUploadModule } from 'primeng/fileupload';
|
|
63
|
-
import * as i1$
|
|
64
|
+
import * as i1$d from '@angular/common/http';
|
|
64
65
|
import { HttpClientModule, HttpHeaders, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
65
66
|
import moment from 'moment';
|
|
66
67
|
import { ObjectUtils, ZIndexUtils } from 'primeng/utils';
|
|
67
|
-
import * as i2$
|
|
68
|
+
import * as i2$3 from 'primeng/dynamicdialog';
|
|
68
69
|
import { DialogService as DialogService$1 } from 'primeng/dynamicdialog';
|
|
69
70
|
import { animation, style, animate, trigger, transition, useAnimation } from '@angular/animations';
|
|
70
71
|
import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
|
|
71
72
|
import { UUID } from 'angular2-uuid';
|
|
72
|
-
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
73
73
|
import { ProgressBarModule } from 'primeng/progressbar';
|
|
74
74
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
75
75
|
import * as i9 from 'primeng/togglebutton';
|
|
76
76
|
import { ToggleButtonModule } from 'primeng/togglebutton';
|
|
77
77
|
import * as i10 from 'primeng/skeleton';
|
|
78
78
|
import { SkeletonModule } from 'primeng/skeleton';
|
|
79
|
-
import * as i1$
|
|
79
|
+
import * as i1$e from '@angular/router';
|
|
80
80
|
import { RouterModule, NavigationEnd, RouteConfigLoadStart, RouteConfigLoadEnd, RouteReuseStrategy } from '@angular/router';
|
|
81
81
|
import * as i3$4 from 'primeng/ripple';
|
|
82
82
|
import { RippleModule } from 'primeng/ripple';
|
|
@@ -85,7 +85,7 @@ import Chart from 'chart.js/auto';
|
|
|
85
85
|
import { getRelativePosition } from 'chart.js/helpers';
|
|
86
86
|
import * as i6$1 from 'primeng/badge';
|
|
87
87
|
import { BadgeModule } from 'primeng/badge';
|
|
88
|
-
import * as i4$
|
|
88
|
+
import * as i4$2 from 'primeng/selectbutton';
|
|
89
89
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
90
90
|
import * as i3$7 from 'ngx-pipes';
|
|
91
91
|
import { NgPipesModule } from 'ngx-pipes';
|
|
@@ -98,13 +98,13 @@ import startsWith from 'lodash-es/startsWith';
|
|
|
98
98
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
99
99
|
import localePt from '@angular/common/locales/pt';
|
|
100
100
|
import { MenubarModule } from 'primeng/menubar';
|
|
101
|
-
import * as i2$
|
|
101
|
+
import * as i2$4 from 'primeng/dock';
|
|
102
102
|
import { DockModule } from 'primeng/dock';
|
|
103
103
|
import * as i3$6 from 'primeng/sidebar';
|
|
104
104
|
import { SidebarModule } from 'primeng/sidebar';
|
|
105
|
-
import * as i1$
|
|
105
|
+
import * as i1$f from 'primeng/contextmenu';
|
|
106
106
|
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
107
|
-
import * as i2$
|
|
107
|
+
import * as i2$5 from 'primeng/tree';
|
|
108
108
|
import { TreeModule } from 'primeng/tree';
|
|
109
109
|
import { cloneDeep as cloneDeep$2 } from 'lodash';
|
|
110
110
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
@@ -939,9 +939,10 @@ function clone(target) {
|
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
class SmzFormViewdata {
|
|
942
|
-
constructor(config, form, cdf) {
|
|
942
|
+
constructor(config, form, manager, cdf) {
|
|
943
943
|
this.config = config;
|
|
944
944
|
this.form = form;
|
|
945
|
+
this.manager = manager;
|
|
945
946
|
this.cdf = cdf;
|
|
946
947
|
this.isValid = false;
|
|
947
948
|
this.hasChanges = false;
|
|
@@ -957,15 +958,19 @@ class SmzFormViewdata {
|
|
|
957
958
|
const formFlattenResponse = (_b = (_a = this.config.behaviors) === null || _a === void 0 ? void 0 : _a.flattenResponse) !== null && _b !== void 0 ? _b : false;
|
|
958
959
|
for (const group of this.config.groups) {
|
|
959
960
|
for (const input of group.children) {
|
|
961
|
+
// console.log(`> ${input.propertyName}`, input);
|
|
960
962
|
if (input.advancedSettings == null || !input.advancedSettings.excludeFromResponse) {
|
|
963
|
+
// console.log(1);
|
|
961
964
|
const value = CONTROL_FUNCTIONS[input.type].getValue(this.form, input, formFlattenResponse);
|
|
962
965
|
if (input.visibilityDependsOn == null || input.isVisible) {
|
|
963
|
-
|
|
964
|
-
if (input.isDisabled && !this.config.behaviors.includeDisabledInValidation) {
|
|
966
|
+
if (input.isDisabled) {
|
|
965
967
|
// Forçando a validação para true porque o campo esta desabilitado
|
|
966
|
-
response.isValid = response.isValid && true;
|
|
968
|
+
response.isValid = response.isValid && true; // this.manager.manuallyValidate(input, value);
|
|
967
969
|
}
|
|
968
|
-
else {
|
|
970
|
+
else if (input.type === SmzControlType.TEXT_BUTTON) {
|
|
971
|
+
response.isValid = response.isValid && input._inputFormControl.valid && input.isButtonValid;
|
|
972
|
+
}
|
|
973
|
+
else if (!input.isDisabled) {
|
|
969
974
|
// Refletindo a validação do angular na resposta
|
|
970
975
|
response.isValid = response.isValid && input._inputFormControl.valid;
|
|
971
976
|
}
|
|
@@ -978,7 +983,7 @@ class SmzFormViewdata {
|
|
|
978
983
|
;
|
|
979
984
|
this.isValid = response.isValid;
|
|
980
985
|
response.hasUnsavedChanges = this.hasChanges;
|
|
981
|
-
// console.log('isValid', this.isValid);
|
|
986
|
+
// console.log('Final isValid', this.isValid);
|
|
982
987
|
return response;
|
|
983
988
|
}
|
|
984
989
|
/** Atualiza os valores dos inputs com seus dados default */
|
|
@@ -1016,6 +1021,7 @@ class SmzFormViewdata {
|
|
|
1016
1021
|
if (modified) {
|
|
1017
1022
|
this.form.markAsPristine();
|
|
1018
1023
|
this.cdf.markForCheck();
|
|
1024
|
+
this.getData();
|
|
1019
1025
|
}
|
|
1020
1026
|
}
|
|
1021
1027
|
updateInputConfig(property, overrides) {
|
|
@@ -1028,8 +1034,10 @@ class SmzFormViewdata {
|
|
|
1028
1034
|
}
|
|
1029
1035
|
});
|
|
1030
1036
|
});
|
|
1031
|
-
if (modified)
|
|
1037
|
+
if (modified) {
|
|
1032
1038
|
this.updateFormValues(false);
|
|
1039
|
+
this.getData();
|
|
1040
|
+
}
|
|
1033
1041
|
}
|
|
1034
1042
|
}
|
|
1035
1043
|
|
|
@@ -1215,6 +1223,36 @@ class SmzFormsManagerService {
|
|
|
1215
1223
|
this.dropDownService = dropDownService;
|
|
1216
1224
|
this.service = service;
|
|
1217
1225
|
}
|
|
1226
|
+
// public manuallyValidate(input: SmzControlTypes, data: { [key: string]: any }): boolean {
|
|
1227
|
+
// console.log(' ...manuallyValidate()');
|
|
1228
|
+
// const config = input.validatorsPreset;
|
|
1229
|
+
// // Se não houver validatores, returnar válido
|
|
1230
|
+
// if (config === null) return true;
|
|
1231
|
+
// // Inicializar como válido
|
|
1232
|
+
// var isValid = true;
|
|
1233
|
+
// const value = Object.keys(data).map((key) => data[key]).reduce((value, initialValue) => initialValue);
|
|
1234
|
+
// console.log(' ... value?', value);
|
|
1235
|
+
// if (config.isRequired) {
|
|
1236
|
+
// const isRequiredPass = !isEmpty(value);
|
|
1237
|
+
// isValid = isValid && isRequiredPass;
|
|
1238
|
+
// }
|
|
1239
|
+
// console.log('input._inputFormControl', input._inputFormControl);
|
|
1240
|
+
// const validators = (input._inputFormControl as any)._composedValidatorFn;
|
|
1241
|
+
// console.log('validators', validators);
|
|
1242
|
+
// if (isArray(validators)) {
|
|
1243
|
+
// validators.forEach((validator, index) => {
|
|
1244
|
+
// console.log('validator', validator);
|
|
1245
|
+
// const isValidatorValid = validator(input._inputFormControl);
|
|
1246
|
+
// console.log(`isValidatorValid ${index}`, isValidatorValid);
|
|
1247
|
+
// });
|
|
1248
|
+
// }
|
|
1249
|
+
// else if (validators != null) {
|
|
1250
|
+
// const isValidatorValid = validators(input._inputFormControl);
|
|
1251
|
+
// console.log('isValidatorValid', isValidatorValid);
|
|
1252
|
+
// }
|
|
1253
|
+
// console.log(' isValid ?', isValid);
|
|
1254
|
+
// return isValid;
|
|
1255
|
+
// }
|
|
1218
1256
|
getValidators(control) {
|
|
1219
1257
|
var _a, _b, _c;
|
|
1220
1258
|
const validators = [];
|
|
@@ -2035,7 +2073,7 @@ class InputContentMaskComponent {
|
|
|
2035
2073
|
constructor() { }
|
|
2036
2074
|
}
|
|
2037
2075
|
InputContentMaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputContentMaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2038
|
-
InputContentMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputContentMaskComponent, selector: "smz-input-content-mask", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, 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 <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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
2076
|
+
InputContentMaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputContentMaskComponent, selector: "smz-input-content-mask", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, 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 <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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.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$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2039
2077
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputContentMaskComponent, decorators: [{
|
|
2040
2078
|
type: Component,
|
|
2041
2079
|
args: [{ selector: 'smz-input-content-mask', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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 <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>" }]
|
|
@@ -2424,10 +2462,10 @@ class InputSwitchComponent {
|
|
|
2424
2462
|
constructor() { }
|
|
2425
2463
|
}
|
|
2426
2464
|
InputSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2427
|
-
InputSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputSwitchComponent, selector: "smz-input-switch", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper\">\n <div class=\"col-12\" style=\"display: flex;\" fxLayoutGap=\"10px\">\n <label class=\"smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\n <p-inputSwitch\n class=\"smz__input_value\"\n [name]=\"input.propertyName\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n binary=\"true\">\n </p-inputSwitch>\n </div>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: i1$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2465
|
+
InputSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputSwitchComponent, selector: "smz-input-switch", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper\">\n <div class=\"col-12\" style=\"display: flex;\" fxLayoutGap=\"10px\">\n <label class=\"smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\n <p-inputSwitch\n class=\"smz__input_value\"\n [name]=\"input.propertyName\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n [attr.disabled]=\"input.isDisabled\"\n binary=\"true\">\n </p-inputSwitch>\n </div>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: i1$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2428
2466
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputSwitchComponent, decorators: [{
|
|
2429
2467
|
type: Component,
|
|
2430
|
-
args: [{ selector: 'smz-input-switch', template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper\">\n <div class=\"col-12\" style=\"display: flex;\" fxLayoutGap=\"10px\">\n <label class=\"smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\n <p-inputSwitch\n class=\"smz__input_value\"\n [name]=\"input.propertyName\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n binary=\"true\">\n </p-inputSwitch>\n </div>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>" }]
|
|
2468
|
+
args: [{ selector: 'smz-input-switch', template: "<div class=\"grid col-12 grid-nogutter input_inner__wrapper\">\n <div class=\"col-12\" style=\"display: flex;\" fxLayoutGap=\"10px\">\n <label class=\"smz__input_name\" [for]=\"input.propertyName\" [innerHTML]=\"input.name\"></label>\n <p-inputSwitch\n class=\"smz__input_value\"\n [name]=\"input.propertyName\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n [attr.disabled]=\"input.isDisabled\"\n binary=\"true\">\n </p-inputSwitch>\n </div>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>" }]
|
|
2431
2469
|
}], ctorParameters: function () { return []; }, propDecorators: { input: [{
|
|
2432
2470
|
type: Input
|
|
2433
2471
|
}], control: [{
|
|
@@ -2576,7 +2614,7 @@ class CalendarComponent {
|
|
|
2576
2614
|
}
|
|
2577
2615
|
}
|
|
2578
2616
|
CalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2579
|
-
CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CalendarComponent, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-calendar\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [monthNavigator]=\"true\"\n [yearNavigator]=\"true\"\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\n\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\n [timeOnly]=\"input.timeOnly\"\n [showTime]=\"input.showTime\"\n\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n appendTo=\"body\">\n </p-calendar>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$9.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", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type:
|
|
2617
|
+
CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: CalendarComponent, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-calendar\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [monthNavigator]=\"true\"\n [yearNavigator]=\"true\"\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\n\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\n [timeOnly]=\"input.timeOnly\"\n [showTime]=\"input.showTime\"\n\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n appendTo=\"body\">\n </p-calendar>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$9.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", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2580
2618
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
2581
2619
|
type: Component,
|
|
2582
2620
|
args: [{ selector: 'smz-calendar', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-calendar\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [monthNavigator]=\"true\"\n [yearNavigator]=\"true\"\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\n\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\n [timeOnly]=\"input.timeOnly\"\n [showTime]=\"input.showTime\"\n\n [id]=\"input.propertyName\"\n [formControl]=\"control\"\n appendTo=\"body\">\n </p-calendar>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>" }]
|
|
@@ -2605,7 +2643,7 @@ class DropdownComponent {
|
|
|
2605
2643
|
}
|
|
2606
2644
|
}
|
|
2607
2645
|
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DropdownComponent, deps: [{ token: SmzFormsDropdownService }, { token: SmzFormsVisibilityService }, { token: SmzDialogsVisibilityService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2608
|
-
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DropdownComponent, selector: "smz-dropdown", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n (onChange)=\"emitChange(input, formId, $event)\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>", components: [{ type: i4$
|
|
2646
|
+
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DropdownComponent, selector: "smz-dropdown", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n (onChange)=\"emitChange(input, formId, $event)\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>", components: [{ type: i4$1.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: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2609
2647
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2610
2648
|
type: Component,
|
|
2611
2649
|
args: [{ selector: 'smz-dropdown', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n (onChange)=\"emitChange(input, formId, $event)\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>" }]
|
|
@@ -2629,7 +2667,7 @@ class LinkedDropdownComponent {
|
|
|
2629
2667
|
}
|
|
2630
2668
|
}
|
|
2631
2669
|
LinkedDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LinkedDropdownComponent, deps: [{ token: SmzFormsDropdownService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2632
|
-
LinkedDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: LinkedDropdownComponent, selector: "smz-linked-dropdown", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n (onChange)=\"service.setValue(input, formId, $event)\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i4$
|
|
2670
|
+
LinkedDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: LinkedDropdownComponent, selector: "smz-linked-dropdown", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n (onChange)=\"service.setValue(input, formId, $event)\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i4$1.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: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i1.AsyncPipe } });
|
|
2633
2671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LinkedDropdownComponent, decorators: [{
|
|
2634
2672
|
type: Component,
|
|
2635
2673
|
args: [{ selector: 'smz-linked-dropdown', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-dropdown\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [autoDisplayFirst]=\"false\"\n dataKey=\"id\"\n appendTo=\"body\"\n (onChange)=\"service.setValue(input, formId, $event)\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-dropdown>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>" }]
|
|
@@ -2643,6 +2681,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2643
2681
|
type: Input
|
|
2644
2682
|
}] } });
|
|
2645
2683
|
|
|
2684
|
+
var ToastActions;
|
|
2685
|
+
(function (ToastActions) {
|
|
2686
|
+
class Custom {
|
|
2687
|
+
constructor(message) {
|
|
2688
|
+
this.message = message;
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
Custom.type = '[Application] Show General Toast Message';
|
|
2692
|
+
ToastActions.Custom = Custom;
|
|
2693
|
+
class Success {
|
|
2694
|
+
constructor(message, title) {
|
|
2695
|
+
this.message = message;
|
|
2696
|
+
this.title = title;
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
Success.type = '[Application] Show Success Toast Message';
|
|
2700
|
+
ToastActions.Success = Success;
|
|
2701
|
+
class Info {
|
|
2702
|
+
constructor(message, title) {
|
|
2703
|
+
this.message = message;
|
|
2704
|
+
this.title = title;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
Info.type = '[Application] Show Info Toast Message';
|
|
2708
|
+
ToastActions.Info = Info;
|
|
2709
|
+
class Warning {
|
|
2710
|
+
constructor(message, title) {
|
|
2711
|
+
this.message = message;
|
|
2712
|
+
this.title = title;
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
Warning.type = '[Application] Show Warning Toast Message';
|
|
2716
|
+
ToastActions.Warning = Warning;
|
|
2717
|
+
class Error {
|
|
2718
|
+
constructor(message, title) {
|
|
2719
|
+
this.message = message;
|
|
2720
|
+
this.title = title;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
Error.type = '[Application] Show Error Toast Message';
|
|
2724
|
+
ToastActions.Error = Error;
|
|
2725
|
+
})(ToastActions || (ToastActions = {}));
|
|
2726
|
+
|
|
2646
2727
|
class FileDragDropDirective {
|
|
2647
2728
|
constructor() {
|
|
2648
2729
|
this.fileDropped = new EventEmitter();
|
|
@@ -2729,8 +2810,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2729
2810
|
}] });
|
|
2730
2811
|
|
|
2731
2812
|
class FileUploadComponent {
|
|
2732
|
-
constructor(cdf) {
|
|
2813
|
+
constructor(cdf, store) {
|
|
2733
2814
|
this.cdf = cdf;
|
|
2815
|
+
this.store = store;
|
|
2734
2816
|
this.selectChange = new EventEmitter();
|
|
2735
2817
|
this.errors = [];
|
|
2736
2818
|
this.files = [];
|
|
@@ -2749,6 +2831,9 @@ class FileUploadComponent {
|
|
|
2749
2831
|
restoreZoom() {
|
|
2750
2832
|
this.isZoomActive = false;
|
|
2751
2833
|
}
|
|
2834
|
+
notAllowed() {
|
|
2835
|
+
this.store.dispatch(new ToastActions.Warning('Upload desabilitado'));
|
|
2836
|
+
}
|
|
2752
2837
|
onInputFiles(event) {
|
|
2753
2838
|
const files = event.srcElement.files;
|
|
2754
2839
|
this.onFilesDropped(files);
|
|
@@ -2863,12 +2948,12 @@ class FileUploadComponent {
|
|
|
2863
2948
|
return '.' + file.name.split('.').pop();
|
|
2864
2949
|
}
|
|
2865
2950
|
}
|
|
2866
|
-
FileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2867
|
-
FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: FileUploadComponent, selector: "smz-file-upload", inputs: { input: "input", form: "form", control: "control", behaviors: "behaviors" }, outputs: { selectChange: "selectChange" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter relative\" [ngStyle]=\"{ padding: 0 }\">\n\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n\n <!-- ZONA DE DROPPING -->\n <div *ngIf=\"input._file == null\" SmzDragDrop (fileDropped)=\"onFilesDropped($event)\" class=\"file_upload__drag-container grid grid-nogutter items-center justify-center mt-1 mb-1\">\n <div class=\"grid grid-nogutter flex-col items-center justify-center pt-3 pb-3\">\n <!-- ICONE DE UPLOAD -->\n <i [ngClass]=\"input.dragIconClass\" class=\"text-4xl mb-2\"></i>\n <span>\n <!-- INPUT DE UPLOAD MANUAL -->\n <input #uploadControl type=\"file\" name=\"uploadControl\" class=\"upload_manual_control\" [accept]=\"input.fileAccept\" id=\"uploadControl\" (change)=\"onInputFiles($event)\" />\n <!-- BOT\u00C3O PARA SELECIONAR ARQUIVO -->\n <label for=\"uploadControl\" class=\"clickable upload_manual_label hvr hvr-grow\">{{ input.inputMessage }}</label>\n <!-- MENSAGEM PARA ARRASTAR -->\n <span class=\"upload_field-drag-message ml-1\">ou {{ input.dragMessage }}</span>\n </span>\n\n <!-- MENSAGEM DE ERRO PARA SELE\u00C7\u00C3O DE ARQUIVO -->\n <p-messages [(value)]=\"errors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n </div>\n </div>\n\n <!-- CONTE\u00DADO COM ARQUIVO CARREGADO -->\n <div *ngIf=\"input._file != null\" class=\"grid grid-nogutter items-center justify-start flex-nowrap mt-1 mb-1\">\n\n <div class=\"upload_field\" [style.height]=\"input.thumbnailSize\" [style.width]=\"input.thumbnailSize\">\n <ng-container [ngSwitch]=\"input._fileType\">\n\n <!-- IMAGENS -->\n <ng-container *ngSwitchCase=\"'image'\">\n\n <!-- THUMBNAIL DE IMAGENS -->\n <img *ngIf=\"input._base64\" class=\"upload_field-img mr-3\" [src]=\"input._base64 | safeUrl\"/>\n\n <!-- ZOOM PARA IMAGENS -->\n <div class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- APLICA\u00C7\u00D5ES -->\n <ng-container *ngSwitchCase=\"'application'\">\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n\n <!-- THUMBNAIL DE APLICA\u00C7\u00D5ES -->\n <ng-container [ngSwitch]=\"input._fileExtension\">\n <i *ngSwitchCase=\"'.pdf'\" class=\"far fa-file-pdf\"></i>\n <i *ngSwitchCase=\"'.doc'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.docx'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.ppt'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.pptx'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.xls'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.xlsx'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.7zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.rar'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.txt'\" class=\"far fa-file-alt\"></i>\n <i *ngSwitchDefault class=\"far fa-file\"></i>\n </ng-container>\n </div>\n\n <!-- ZOOM PARA PDF -->\n <div *ngIf=\"input._fileExtension === '.pdf'\" class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- V\u00CDDEOS -->\n <ng-container *ngSwitchCase=\"'video'\">\n\n <!-- THUMBNAIL DE V\u00CDDEOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-video\"></i>\n </div>\n\n </ng-container>\n\n <!-- AUDIOS -->\n <ng-container *ngSwitchCase=\"'audio'\">\n\n <!-- THUMBNAIL DE AUDIOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-audio\"></i>\n </div>\n\n </ng-container>\n\n <!-- OUTROS -->\n <ng-container *ngSwitchDefault>\n\n <!-- THUMBNAIL GENERICOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file\"></i>\n </div>\n\n </ng-container>\n\n </ng-container>\n\n </div>\n\n <!-- NOME E TAMANHO DO ARQUIVO -->\n <div class=\"grid grid-nogutter flex-col items-start justify-end ml-3\">\n <span>{{ input._file.name | fileNameShorten : input.shortenLength : input.shortenSeparator }} <i class=\"far fa-trash-alt hvr hvr-grow text-red-500 clickable ml-2 mb-1\" (click)=\"clear()\"></i></span>\n <span *ngIf=\"input.showFileSize\"><small>{{ formatBytes(input._file.size) }}</small></span>\n </div>\n\n </div>\n\n <!-- MENSAGEM DE ERRO DE VALIDA\u00C7\u00C3O DO FORM -->\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>\n\n<div *ngIf=\"isZoomActive\" class=\"upload_field__fullscreen-image\">\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE PDF -->\n <ng-container *ngIf=\"input._fileExtension === '.pdf'; else imageTemplate\">\n <iframe *ngIf=\"input._base64\" [src]=\"input._base64 | safeUrl\" class=\"animate__animated animate__zoomIn animate__faster\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>\n </ng-container>\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE IMAGENS -->\n <ng-template #imageTemplate>\n <img *ngIf=\"input._base64\" class=\"animate__animated animate__zoomIn animate__faster\" [src]=\"input._base64 | safeUrl\" height=\"100%\" width=\"100%\"/>\n </ng-template>\n\n <!-- ICONE DE SAIR DO FULLSCREEN -->\n <i class=\"far fa-times-circle clickable m-4 hvr hvr-grow text-4xl text-white\" (click)=\"restoreZoom()\"></i>\n</div>", components: [{ type: i1$b.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4$1.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FileDragDropDirective, selector: "[SmzDragDrop]", outputs: ["fileDropped"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4$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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "safeUrl": SafeUrlPipe$1, "fileNameShorten": FileNameShortenPipe } });
|
|
2951
|
+
FileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$5.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
2952
|
+
FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: FileUploadComponent, selector: "smz-file-upload", inputs: { input: "input", form: "form", control: "control", behaviors: "behaviors" }, outputs: { selectChange: "selectChange" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter relative\" [ngStyle]=\"{ padding: 0 }\">\n\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n\n <!-- ZONA DE DROPPING -->\n <div *ngIf=\"input._file == null\" SmzDragDrop (fileDropped)=\"input.isDisabled ? notAllowed() : onFilesDropped($event)\" class=\"file_upload__drag-container grid grid-nogutter items-center justify-center mt-1 mb-1\">\n <div class=\"grid grid-nogutter flex-col items-center justify-center pt-3 pb-3\">\n <!-- ICONE DE UPLOAD -->\n <i [ngClass]=\"input.dragIconClass\" class=\"text-4xl mb-2\"></i>\n <span class=\"grid grid-nogutter gap-2\">\n <!-- INPUT DE UPLOAD MANUAL -->\n <input #uploadControl type=\"file\" name=\"uploadControl\" class=\"upload_manual_control\" [attr.disabled]=\"input.isDisabled\" [accept]=\"input.fileAccept\" id=\"uploadControl\" (change)=\"onInputFiles($event)\" />\n <!-- BOT\u00C3O PARA SELECIONAR ARQUIVO -->\n <label for=\"uploadControl\" [ngClass]=\"{ 'text-gray-500' : input.isDisabled,'clickable upload_manual_label hvr hvr-grow': !input.isDisabled }\">{{ input.inputMessage }}</label>\n <!-- MENSAGEM PARA ARRASTAR -->\n <span class=\"upload_field-drag-message\">ou {{ input.dragMessage }}</span>\n </span>\n\n <!-- MENSAGEM DE ERRO PARA SELE\u00C7\u00C3O DE ARQUIVO -->\n <p-messages [(value)]=\"errors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n </div>\n </div>\n\n <!-- CONTE\u00DADO COM ARQUIVO CARREGADO -->\n <div *ngIf=\"input._file != null\" class=\"grid grid-nogutter items-center justify-start flex-nowrap mt-1 mb-1\">\n\n <div class=\"upload_field\" [style.height]=\"input.thumbnailSize\" [style.width]=\"input.thumbnailSize\">\n <ng-container [ngSwitch]=\"input._fileType\">\n\n <!-- IMAGENS -->\n <ng-container *ngSwitchCase=\"'image'\">\n\n <!-- THUMBNAIL DE IMAGENS -->\n <img *ngIf=\"input._base64\" class=\"upload_field-img mr-3\" [src]=\"input._base64 | safeUrl\"/>\n\n <!-- ZOOM PARA IMAGENS -->\n <div class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- APLICA\u00C7\u00D5ES -->\n <ng-container *ngSwitchCase=\"'application'\">\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n\n <!-- THUMBNAIL DE APLICA\u00C7\u00D5ES -->\n <ng-container [ngSwitch]=\"input._fileExtension\">\n <i *ngSwitchCase=\"'.pdf'\" class=\"far fa-file-pdf\"></i>\n <i *ngSwitchCase=\"'.doc'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.docx'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.ppt'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.pptx'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.xls'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.xlsx'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.7zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.rar'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.txt'\" class=\"far fa-file-alt\"></i>\n <i *ngSwitchDefault class=\"far fa-file\"></i>\n </ng-container>\n </div>\n\n <!-- ZOOM PARA PDF -->\n <div *ngIf=\"input._fileExtension === '.pdf'\" class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- V\u00CDDEOS -->\n <ng-container *ngSwitchCase=\"'video'\">\n\n <!-- THUMBNAIL DE V\u00CDDEOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-video\"></i>\n </div>\n\n </ng-container>\n\n <!-- AUDIOS -->\n <ng-container *ngSwitchCase=\"'audio'\">\n\n <!-- THUMBNAIL DE AUDIOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-audio\"></i>\n </div>\n\n </ng-container>\n\n <!-- OUTROS -->\n <ng-container *ngSwitchDefault>\n\n <!-- THUMBNAIL GENERICOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file\"></i>\n </div>\n\n </ng-container>\n\n </ng-container>\n\n </div>\n\n <!-- NOME E TAMANHO DO ARQUIVO -->\n <div class=\"grid grid-nogutter flex-col items-start justify-end ml-3\">\n <span>{{ input._file.name | fileNameShorten : input.shortenLength : input.shortenSeparator }} <i class=\"far fa-trash-alt hvr hvr-grow text-red-500 clickable ml-2 mb-1\" (click)=\"clear()\"></i></span>\n <span *ngIf=\"input.showFileSize\"><small>{{ formatBytes(input._file.size) }}</small></span>\n </div>\n\n </div>\n\n <!-- MENSAGEM DE ERRO DE VALIDA\u00C7\u00C3O DO FORM -->\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>\n\n<div *ngIf=\"isZoomActive\" class=\"upload_field__fullscreen-image\">\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE PDF -->\n <ng-container *ngIf=\"input._fileExtension === '.pdf'; else imageTemplate\">\n <iframe *ngIf=\"input._base64\" [src]=\"input._base64 | safeUrl\" class=\"animate__animated animate__zoomIn animate__faster\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>\n </ng-container>\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE IMAGENS -->\n <ng-template #imageTemplate>\n <img *ngIf=\"input._base64\" class=\"animate__animated animate__zoomIn animate__faster\" [src]=\"input._base64 | safeUrl\" height=\"100%\" width=\"100%\"/>\n </ng-template>\n\n <!-- ICONE DE SAIR DO FULLSCREEN -->\n <i class=\"far fa-times-circle clickable m-4 hvr hvr-grow text-4xl text-white\" (click)=\"restoreZoom()\"></i>\n</div>", components: [{ type: i2$2.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FileDragDropDirective, selector: "[SmzDragDrop]", outputs: ["fileDropped"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "safeUrl": SafeUrlPipe$1, "fileNameShorten": FileNameShortenPipe } });
|
|
2868
2953
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
2869
2954
|
type: Component,
|
|
2870
|
-
args: [{ selector: 'smz-file-upload', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter relative\" [ngStyle]=\"{ padding: 0 }\">\n\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n\n <!-- ZONA DE DROPPING -->\n <div *ngIf=\"input._file == null\" SmzDragDrop (fileDropped)=\"onFilesDropped($event)\" class=\"file_upload__drag-container grid grid-nogutter items-center justify-center mt-1 mb-1\">\n <div class=\"grid grid-nogutter flex-col items-center justify-center pt-3 pb-3\">\n <!-- ICONE DE UPLOAD -->\n <i [ngClass]=\"input.dragIconClass\" class=\"text-4xl mb-2\"></i>\n <span>\n <!-- INPUT DE UPLOAD MANUAL -->\n <input #uploadControl type=\"file\" name=\"uploadControl\" class=\"upload_manual_control\" [accept]=\"input.fileAccept\" id=\"uploadControl\" (change)=\"onInputFiles($event)\" />\n <!-- BOT\u00C3O PARA SELECIONAR ARQUIVO -->\n <label for=\"uploadControl\"
|
|
2871
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { input: [{
|
|
2955
|
+
args: [{ selector: 'smz-file-upload', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter relative\" [ngStyle]=\"{ padding: 0 }\">\n\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n\n <!-- ZONA DE DROPPING -->\n <div *ngIf=\"input._file == null\" SmzDragDrop (fileDropped)=\"input.isDisabled ? notAllowed() : onFilesDropped($event)\" class=\"file_upload__drag-container grid grid-nogutter items-center justify-center mt-1 mb-1\">\n <div class=\"grid grid-nogutter flex-col items-center justify-center pt-3 pb-3\">\n <!-- ICONE DE UPLOAD -->\n <i [ngClass]=\"input.dragIconClass\" class=\"text-4xl mb-2\"></i>\n <span class=\"grid grid-nogutter gap-2\">\n <!-- INPUT DE UPLOAD MANUAL -->\n <input #uploadControl type=\"file\" name=\"uploadControl\" class=\"upload_manual_control\" [attr.disabled]=\"input.isDisabled\" [accept]=\"input.fileAccept\" id=\"uploadControl\" (change)=\"onInputFiles($event)\" />\n <!-- BOT\u00C3O PARA SELECIONAR ARQUIVO -->\n <label for=\"uploadControl\" [ngClass]=\"{ 'text-gray-500' : input.isDisabled,'clickable upload_manual_label hvr hvr-grow': !input.isDisabled }\">{{ input.inputMessage }}</label>\n <!-- MENSAGEM PARA ARRASTAR -->\n <span class=\"upload_field-drag-message\">ou {{ input.dragMessage }}</span>\n </span>\n\n <!-- MENSAGEM DE ERRO PARA SELE\u00C7\u00C3O DE ARQUIVO -->\n <p-messages [(value)]=\"errors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n </div>\n </div>\n\n <!-- CONTE\u00DADO COM ARQUIVO CARREGADO -->\n <div *ngIf=\"input._file != null\" class=\"grid grid-nogutter items-center justify-start flex-nowrap mt-1 mb-1\">\n\n <div class=\"upload_field\" [style.height]=\"input.thumbnailSize\" [style.width]=\"input.thumbnailSize\">\n <ng-container [ngSwitch]=\"input._fileType\">\n\n <!-- IMAGENS -->\n <ng-container *ngSwitchCase=\"'image'\">\n\n <!-- THUMBNAIL DE IMAGENS -->\n <img *ngIf=\"input._base64\" class=\"upload_field-img mr-3\" [src]=\"input._base64 | safeUrl\"/>\n\n <!-- ZOOM PARA IMAGENS -->\n <div class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- APLICA\u00C7\u00D5ES -->\n <ng-container *ngSwitchCase=\"'application'\">\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n\n <!-- THUMBNAIL DE APLICA\u00C7\u00D5ES -->\n <ng-container [ngSwitch]=\"input._fileExtension\">\n <i *ngSwitchCase=\"'.pdf'\" class=\"far fa-file-pdf\"></i>\n <i *ngSwitchCase=\"'.doc'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.docx'\" class=\"far fa-file-word\"></i>\n <i *ngSwitchCase=\"'.ppt'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.pptx'\" class=\"far fa-file-powerpoint\"></i>\n <i *ngSwitchCase=\"'.xls'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.xlsx'\" class=\"far fa-file-excel\"></i>\n <i *ngSwitchCase=\"'.zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.7zip'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.rar'\" class=\"far fa-file-archive\"></i>\n <i *ngSwitchCase=\"'.txt'\" class=\"far fa-file-alt\"></i>\n <i *ngSwitchDefault class=\"far fa-file\"></i>\n </ng-container>\n </div>\n\n <!-- ZOOM PARA PDF -->\n <div *ngIf=\"input._fileExtension === '.pdf'\" class=\"upload_field__actions\">\n <div class=\"grid grid-nogutter items-center justify-end mr-2 mt-2\">\n <i *ngIf=\"input.allowZoom\" class=\"fas fa-search-plus upload_field__actions_icon hvr hvr-grow text-white clickable\" (click)=\"applyZoom()\"></i>\n </div>\n </div>\n\n </ng-container>\n\n <!-- V\u00CDDEOS -->\n <ng-container *ngSwitchCase=\"'video'\">\n\n <!-- THUMBNAIL DE V\u00CDDEOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-video\"></i>\n </div>\n\n </ng-container>\n\n <!-- AUDIOS -->\n <ng-container *ngSwitchCase=\"'audio'\">\n\n <!-- THUMBNAIL DE AUDIOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file-audio\"></i>\n </div>\n\n </ng-container>\n\n <!-- OUTROS -->\n <ng-container *ngSwitchDefault>\n\n <!-- THUMBNAIL GENERICOS -->\n <div class=\"upload_field-generic h-full w-full grid grid-nogutter items-center text-5xl justify-center mr-3\">\n <i class=\"far fa-file\"></i>\n </div>\n\n </ng-container>\n\n </ng-container>\n\n </div>\n\n <!-- NOME E TAMANHO DO ARQUIVO -->\n <div class=\"grid grid-nogutter flex-col items-start justify-end ml-3\">\n <span>{{ input._file.name | fileNameShorten : input.shortenLength : input.shortenSeparator }} <i class=\"far fa-trash-alt hvr hvr-grow text-red-500 clickable ml-2 mb-1\" (click)=\"clear()\"></i></span>\n <span *ngIf=\"input.showFileSize\"><small>{{ formatBytes(input._file.size) }}</small></span>\n </div>\n\n </div>\n\n <!-- MENSAGEM DE ERRO DE VALIDA\u00C7\u00C3O DO FORM -->\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n</div>\n\n<div *ngIf=\"isZoomActive\" class=\"upload_field__fullscreen-image\">\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE PDF -->\n <ng-container *ngIf=\"input._fileExtension === '.pdf'; else imageTemplate\">\n <iframe *ngIf=\"input._base64\" [src]=\"input._base64 | safeUrl\" class=\"animate__animated animate__zoomIn animate__faster\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>\n </ng-container>\n\n <!-- VISUALIZA\u00C7\u00C3O FULLSCREEN DE IMAGENS -->\n <ng-template #imageTemplate>\n <img *ngIf=\"input._base64\" class=\"animate__animated animate__zoomIn animate__faster\" [src]=\"input._base64 | safeUrl\" height=\"100%\" width=\"100%\"/>\n </ng-template>\n\n <!-- ICONE DE SAIR DO FULLSCREEN -->\n <i class=\"far fa-times-circle clickable m-4 hvr hvr-grow text-4xl text-white\" (click)=\"restoreZoom()\"></i>\n</div>" }]
|
|
2956
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$5.Store }]; }, propDecorators: { input: [{
|
|
2872
2957
|
type: Input
|
|
2873
2958
|
}], form: [{
|
|
2874
2959
|
type: Input
|
|
@@ -2884,7 +2969,7 @@ class InputCurrencyComponent {
|
|
|
2884
2969
|
constructor() { }
|
|
2885
2970
|
}
|
|
2886
2971
|
InputCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2887
|
-
InputCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputCurrencyComponent, selector: "smz-input-currency", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"p-inputgroup input_inner__wrapper\">\n <span class=\"p-inputgroup-addon\">R$</span>\n <input pInputText fxFlex=\"grow\" class=\"col-12 smz__input_value\" [id]=\"input.propertyName\" type=\"number\"\n [formControl]=\"control\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type:
|
|
2972
|
+
InputCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputCurrencyComponent, selector: "smz-input-currency", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"p-inputgroup input_inner__wrapper\">\n <span class=\"p-inputgroup-addon\">R$</span>\n <input pInputText fxFlex=\"grow\" class=\"col-12 smz__input_value\" [id]=\"input.propertyName\" type=\"number\"\n [formControl]=\"control\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i1$3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2888
2973
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
2889
2974
|
type: Component,
|
|
2890
2975
|
args: [{ selector: 'smz-input-currency', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"p-inputgroup input_inner__wrapper\">\n <span class=\"p-inputgroup-addon\">R$</span>\n <input pInputText fxFlex=\"grow\" class=\"col-12 smz__input_value\" [id]=\"input.propertyName\" type=\"number\"\n [formControl]=\"control\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>" }]
|
|
@@ -2900,7 +2985,7 @@ class MultiSelectComponent {
|
|
|
2900
2985
|
constructor() { }
|
|
2901
2986
|
}
|
|
2902
2987
|
MultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2903
|
-
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MultiSelectComponent, selector: "smz-multi-select", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$
|
|
2988
|
+
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MultiSelectComponent, selector: "smz-multi-select", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$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: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2904
2989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
2905
2990
|
type: Component,
|
|
2906
2991
|
args: [{ selector: 'smz-multi-select', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"input.options\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>" }]
|
|
@@ -2922,7 +3007,7 @@ class LinkedMultiSelectComponent {
|
|
|
2922
3007
|
}
|
|
2923
3008
|
}
|
|
2924
3009
|
LinkedMultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LinkedMultiSelectComponent, deps: [{ token: SmzFormsDropdownService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2925
|
-
LinkedMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: LinkedMultiSelectComponent, selector: "smz-linked-multi-select", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$
|
|
3010
|
+
LinkedMultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: LinkedMultiSelectComponent, selector: "smz-linked-multi-select", inputs: { input: "input", formId: "formId", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>", components: [{ type: i1$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: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i1.AsyncPipe } });
|
|
2926
3011
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LinkedMultiSelectComponent, decorators: [{
|
|
2927
3012
|
type: Component,
|
|
2928
3013
|
args: [{ selector: 'smz-linked-multi-select', template: "<div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-12 grid-nogutter no-padding\">\n <label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n <div class=\"input_inner__wrapper grid grid-nogutter\">\n <p-multiSelect\n fxFlex=\"grow\"\n class=\"col-12 grid-nogutter smz__input_value\"\n [id]=\"input.propertyName\"\n [options]=\"service.observers[formId + input.propertyName]?.options | async\"\n [formControl]=\"control\"\n optionLabel=\"name\"\n [defaultLabel]=\"input.defaultLabel\"\n [panelStyle]=\"{ minWidth: '20em' }\"\n appendTo=\"body\"\n [filter]=\"input.showFilter ? true : false\"\n [filterMatchMode]=\"input.filterMatchMode != null ? input.filterMatchMode : 'contains'\"\n [emptyMessage]=\"input.emptyMessage\"\n [emptyFilterMessage]=\"input.emptyFilterMessage\">\n </p-multiSelect>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n </div>\n </div>\n</div>" }]
|
|
@@ -2954,7 +3039,7 @@ class ColorPickerComponent {
|
|
|
2954
3039
|
}
|
|
2955
3040
|
}
|
|
2956
3041
|
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2957
|
-
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ColorPickerComponent, selector: "smz-color-picker", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper grid grid-nogutter items-center justify-start flex-nowrap mt-1\">\n <p-colorPicker\n [id]=\"input.propertyName\"\n class=\"smz__input_value\"\n appendTo=\"body\"\n [formControl]=\"control\"\n (onChange)=\"onPickerChange($event)\">\n </p-colorPicker>\n <input\n class=\"smz__input_value colorpicker-hexa-input ml-2\"\n pInputText\n [disabled]=\"input.isDisabled\"\n [(ngModel)]=\"color\"\n (ngModelChange)=\"onInputChange($event)\"\n (blur)=\"markAsTouched()\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: i1$
|
|
3042
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ColorPickerComponent, selector: "smz-color-picker", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper grid grid-nogutter items-center justify-start flex-nowrap mt-1\">\n <p-colorPicker\n [id]=\"input.propertyName\"\n class=\"smz__input_value\"\n appendTo=\"body\"\n [formControl]=\"control\"\n (onChange)=\"onPickerChange($event)\">\n </p-colorPicker>\n <input\n class=\"smz__input_value colorpicker-hexa-input ml-2\"\n pInputText\n [disabled]=\"input.isDisabled\"\n [(ngModel)]=\"color\"\n (ngModelChange)=\"onInputChange($event)\"\n (blur)=\"markAsTouched()\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: i1$c.ColorPicker, selector: "p-colorPicker", inputs: ["style", "styleClass", "inline", "format", "appendTo", "disabled", "tabindex", "inputId", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onChange", "onShow", "onHide"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
2958
3043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
2959
3044
|
type: Component,
|
|
2960
3045
|
args: [{ selector: 'smz-color-picker', template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper grid grid-nogutter items-center justify-start flex-nowrap mt-1\">\n <p-colorPicker\n [id]=\"input.propertyName\"\n class=\"smz__input_value\"\n appendTo=\"body\"\n [formControl]=\"control\"\n (onChange)=\"onPickerChange($event)\">\n </p-colorPicker>\n <input\n class=\"smz__input_value colorpicker-hexa-input ml-2\"\n pInputText\n [disabled]=\"input.isDisabled\"\n [(ngModel)]=\"color\"\n (ngModelChange)=\"onInputChange($event)\"\n (blur)=\"markAsTouched()\">\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>" }]
|
|
@@ -2966,19 +3051,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2966
3051
|
type: Input
|
|
2967
3052
|
}] } });
|
|
2968
3053
|
|
|
2969
|
-
class InputTextButtonComponent {
|
|
3054
|
+
let InputTextButtonComponent = class InputTextButtonComponent {
|
|
2970
3055
|
constructor() {
|
|
3056
|
+
this.blocked = false;
|
|
2971
3057
|
}
|
|
2972
3058
|
emit() {
|
|
2973
3059
|
const data = this.viewdata.getData();
|
|
2974
|
-
this.input.
|
|
3060
|
+
this.input.isButtonValid = false;
|
|
3061
|
+
this.blocked = true;
|
|
3062
|
+
this.input
|
|
3063
|
+
.callback(data, this.viewdata)
|
|
3064
|
+
.pipe(take$1(1), untilDestroyed(this))
|
|
3065
|
+
.subscribe(isValid => {
|
|
3066
|
+
this.input.isButtonValid = isValid;
|
|
3067
|
+
this.blocked = false;
|
|
3068
|
+
});
|
|
2975
3069
|
}
|
|
2976
|
-
}
|
|
3070
|
+
};
|
|
2977
3071
|
InputTextButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputTextButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2978
|
-
InputTextButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputTextButtonComponent, selector: "smz-input-text-button", inputs: { input: "input", control: "control", viewdata: "viewdata", behaviors: "behaviors" }, ngImport: i0, template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n\n <div class=\"p-inputgroup\">\n <input\n pInputText\n fxFlex=\"grow\"\n class=\"col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n type=\"text\"\n [placeholder]=\"input.placeholder\"\n [formControl]=\"control\">\n <button type=\"button\" [disabled]=\"!control.valid\" pButton pRipple class=\"min-w-fit\" [label]=\"input.label\" [icon]=\"input.icon\" styleClass=\"p-button-warn\" (click)=\"emit()\"></button>\n </div>\n\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
3072
|
+
InputTextButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputTextButtonComponent, selector: "smz-input-text-button", inputs: { input: "input", control: "control", viewdata: "viewdata", behaviors: "behaviors" }, ngImport: i0, template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n\n <div class=\"p-inputgroup\">\n <input\n pInputText\n fxFlex=\"grow\"\n class=\"col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n type=\"text\"\n [placeholder]=\"input.placeholder\"\n [formControl]=\"control\">\n <button type=\"button\" [disabled]=\"!control.valid || blocked\" pButton pRipple class=\"min-w-fit\" [label]=\"input.label\" [icon]=\"input.icon\" styleClass=\"p-button-warn\" (click)=\"emit()\"></button>\n </div>\n\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n\n</div>", components: [{ type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
3073
|
+
InputTextButtonComponent = __decorate([
|
|
3074
|
+
UntilDestroy()
|
|
3075
|
+
], InputTextButtonComponent);
|
|
2979
3076
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputTextButtonComponent, decorators: [{
|
|
2980
3077
|
type: Component,
|
|
2981
|
-
args: [{ selector: 'smz-input-text-button', template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n\n <div class=\"p-inputgroup\">\n <input\n pInputText\n fxFlex=\"grow\"\n class=\"col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n type=\"text\"\n [placeholder]=\"input.placeholder\"\n [formControl]=\"control\">\n <button type=\"button\" [disabled]=\"!control.valid\" pButton pRipple class=\"min-w-fit\" [label]=\"input.label\" [icon]=\"input.icon\" styleClass=\"p-button-warn\" (click)=\"emit()\"></button>\n </div>\n\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n\n</div>" }]
|
|
3078
|
+
args: [{ selector: 'smz-input-text-button', template: "<label *ngIf=\"!input.hideName\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n\n <div class=\"p-inputgroup\">\n <input\n pInputText\n fxFlex=\"grow\"\n class=\"col-12 smz__input_value\"\n [id]=\"input.propertyName\"\n type=\"text\"\n [placeholder]=\"input.placeholder\"\n [formControl]=\"control\">\n <button type=\"button\" [disabled]=\"!control.valid || blocked\" pButton pRipple class=\"min-w-fit\" [label]=\"input.label\" [icon]=\"input.icon\" styleClass=\"p-button-warn\" (click)=\"emit()\"></button>\n </div>\n\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n\n</div>" }]
|
|
2982
3079
|
}], ctorParameters: function () { return []; }, propDecorators: { input: [{
|
|
2983
3080
|
type: Input
|
|
2984
3081
|
}], control: [{
|
|
@@ -3229,7 +3326,7 @@ class FormGroupComponent {
|
|
|
3229
3326
|
}
|
|
3230
3327
|
;
|
|
3231
3328
|
const options = { updateOn: (_h = (_g = (_f = this.config) === null || _f === void 0 ? void 0 : _f.behaviors) === null || _g === void 0 ? void 0 : _g.updateOn) !== null && _h !== void 0 ? _h : 'change' };
|
|
3232
|
-
this.viewdata = new SmzFormViewdata(this.config, this.fb.group(controlsConfig, options), this.cdf);
|
|
3329
|
+
this.viewdata = new SmzFormViewdata(this.config, this.fb.group(controlsConfig, options), this.manager, this.cdf);
|
|
3233
3330
|
if (this.config._context == null) {
|
|
3234
3331
|
this.config._context = {
|
|
3235
3332
|
applyGlobalStyles: null,
|
|
@@ -3403,28 +3500,6 @@ class FormGroupComponent {
|
|
|
3403
3500
|
this.viewdata.hasChanges = original !== current;
|
|
3404
3501
|
this.cdf.markForCheck();
|
|
3405
3502
|
}
|
|
3406
|
-
// /** Atualiza os valores dos inputs com seus dados default */
|
|
3407
|
-
// public updateFormValues(): void
|
|
3408
|
-
// {
|
|
3409
|
-
// for (const group of this.config.groups)
|
|
3410
|
-
// {
|
|
3411
|
-
// for (const input of group.children)
|
|
3412
|
-
// {
|
|
3413
|
-
// const control = this.viewdata.form.controls[input.propertyName];
|
|
3414
|
-
// if (input.isDisabled)
|
|
3415
|
-
// {
|
|
3416
|
-
// control.disable();
|
|
3417
|
-
// }
|
|
3418
|
-
// else
|
|
3419
|
-
// {
|
|
3420
|
-
// control.enable();
|
|
3421
|
-
// }
|
|
3422
|
-
// CONTROL_FUNCTIONS[input.type].updateValue(control, input);
|
|
3423
|
-
// };
|
|
3424
|
-
// };
|
|
3425
|
-
// this.viewdata.form.markAsPristine();
|
|
3426
|
-
// this.cdf.markForCheck();
|
|
3427
|
-
// }
|
|
3428
3503
|
ngAfterViewInit() {
|
|
3429
3504
|
}
|
|
3430
3505
|
checkCustomFunctions() {
|
|
@@ -3485,7 +3560,7 @@ class FormGroupComponent {
|
|
|
3485
3560
|
}
|
|
3486
3561
|
}
|
|
3487
3562
|
FormGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormGroupComponent, deps: [{ token: i1$3.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: SmzFormsManagerService }, { token: SmzDialogsConfig }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
3488
|
-
FormGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: FormGroupComponent, selector: "smz-form-group", inputs: { config: "config" }, outputs: { statusChanges: "statusChanges", changed: "changed", submit: "submit" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"config != null\">\n\n<div class=\"smz_form_grid_container\">\n\n <ng-container *ngIf=\"viewdata?.form != null && !configHasErrors\">\n <form focusFirstInput [focus]=\"!config.behaviors.avoidFocusOnLoad\" [formGroup]=\"viewdata.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 px-0 mx-auto\">\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\" [ngClass]=\"config.template | setTemplateClasses : ['horizontalAlignment', 'verticalAlignment']\">\n <ng-container *ngFor=\"let group of config.groups\">\n <div class=\"col\" [ngClass]=\"group.template | setTemplateClasses : ['row']\">\n <div class=\"smz__group_name\" *ngIf=\"group.showName\">{{ group.name }}</div>\n\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\">\n <ng-container *ngFor=\"let input of group.children\">\n <div *ngIf=\"input.isVisible\" class=\"input__control__wrapper 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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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\" [form]=\"viewdata.form\" [control]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [form]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-color-picker>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT_BUTTON\">\n <smz-input-text-button [input]=\"input\" [control]=\"viewdata.form.controls[input.propertyName]\" [viewdata]=\"viewdata\" [behaviors]=\"config.behaviors\"></smz-input-text-button>\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", "form"] }, { 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"] }, { type: InputTextButtonComponent, selector: "smz-input-text-button", inputs: ["input", "control", "viewdata", "behaviors"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: FormFocusFirstInputDirective, selector: "[focusFirstInput]", inputs: ["focus"] }, { type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4$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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "setTemplateClasses": SetTemplateClassesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3563
|
+
FormGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: FormGroupComponent, selector: "smz-form-group", inputs: { config: "config" }, outputs: { statusChanges: "statusChanges", changed: "changed", submit: "submit" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"config != null\">\n\n<div class=\"smz_form_grid_container\">\n\n <ng-container *ngIf=\"viewdata?.form != null && !configHasErrors\">\n <form focusFirstInput [focus]=\"!config.behaviors.avoidFocusOnLoad\" [formGroup]=\"viewdata.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 px-0 mx-auto\">\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\" [ngClass]=\"config.template | setTemplateClasses : ['horizontalAlignment', 'verticalAlignment']\">\n <ng-container *ngFor=\"let group of config.groups\">\n <div class=\"col\" [ngClass]=\"group.template | setTemplateClasses : ['row']\">\n <div class=\"smz__group_name\" *ngIf=\"group.showName\">{{ group.name }}</div>\n\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\">\n <ng-container *ngFor=\"let input of group.children\">\n <div *ngIf=\"input.isVisible\" class=\"input__control__wrapper 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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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\" [form]=\"viewdata.form\" [control]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [form]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-color-picker>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT_BUTTON\">\n <smz-input-text-button [input]=\"input\" [control]=\"viewdata.form.controls[input.propertyName]\" [viewdata]=\"viewdata\" [behaviors]=\"config.behaviors\"></smz-input-text-button>\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", "form"] }, { 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"] }, { type: InputTextButtonComponent, selector: "smz-input-text-button", inputs: ["input", "control", "viewdata", "behaviors"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: FormFocusFirstInputDirective, selector: "[focusFirstInput]", inputs: ["focus"] }, { type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "setTemplateClasses": SetTemplateClassesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3489
3564
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormGroupComponent, decorators: [{
|
|
3490
3565
|
type: Component,
|
|
3491
3566
|
args: [{ selector: 'smz-form-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"config != null\">\n\n<div class=\"smz_form_grid_container\">\n\n <ng-container *ngIf=\"viewdata?.form != null && !configHasErrors\">\n <form focusFirstInput [focus]=\"!config.behaviors.avoidFocusOnLoad\" [formGroup]=\"viewdata.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 px-0 mx-auto\">\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\" [ngClass]=\"config.template | setTemplateClasses : ['horizontalAlignment', 'verticalAlignment']\">\n <ng-container *ngFor=\"let group of config.groups\">\n <div class=\"col\" [ngClass]=\"group.template | setTemplateClasses : ['row']\">\n <div class=\"smz__group_name\" *ngIf=\"group.showName\">{{ group.name }}</div>\n\n <div class=\"grid grid-nogutter flex-wrap items-start justify-start flex-gap-2\">\n <ng-container *ngFor=\"let input of group.children\">\n <div *ngIf=\"input.isVisible\" class=\"input__control__wrapper 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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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\" [form]=\"viewdata.form\" [control]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [form]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.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]=\"viewdata.form.controls[input.propertyName]\" [behaviors]=\"config.behaviors\"></smz-color-picker>\n </ng-container>\n\n <ng-container *ngIf=\"input.type == controlTypes.TEXT_BUTTON\">\n <smz-input-text-button [input]=\"input\" [control]=\"viewdata.form.controls[input.propertyName]\" [viewdata]=\"viewdata\" [behaviors]=\"config.behaviors\"></smz-input-text-button>\n </ng-container>\n\n</ng-template>\n" }]
|
|
@@ -4112,7 +4187,7 @@ class InputListDialogCrudComponent {
|
|
|
4112
4187
|
this.dialogCrudService.ref.close(this.formComponent.getData());
|
|
4113
4188
|
}
|
|
4114
4189
|
}
|
|
4115
|
-
InputListDialogCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListDialogCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$
|
|
4190
|
+
InputListDialogCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListDialogCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$3.DynamicDialogConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
4116
4191
|
InputListDialogCrudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputListDialogCrudComponent, selector: "smz-input-list-dialog-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0, template: `
|
|
4117
4192
|
<ng-container *ngIf="form != null">
|
|
4118
4193
|
<div class="grid grid-nogutter items-start justify-start">
|
|
@@ -4138,7 +4213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4138
4213
|
</ng-container>
|
|
4139
4214
|
`,
|
|
4140
4215
|
}]
|
|
4141
|
-
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$
|
|
4216
|
+
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$3.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
|
|
4142
4217
|
type: ViewChild,
|
|
4143
4218
|
args: ['formComponent']
|
|
4144
4219
|
}] } });
|
|
@@ -4188,7 +4263,7 @@ class InputListInlineCrudComponent {
|
|
|
4188
4263
|
this.dialogCrudService.ref.close(this.formComponent.getData());
|
|
4189
4264
|
}
|
|
4190
4265
|
}
|
|
4191
|
-
InputListInlineCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListInlineCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$
|
|
4266
|
+
InputListInlineCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListInlineCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$3.DynamicDialogConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
4192
4267
|
InputListInlineCrudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputListInlineCrudComponent, selector: "smz-input-list-inline-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0, template: `
|
|
4193
4268
|
<ng-container *ngIf="form != null">
|
|
4194
4269
|
<smz-form-group #formComponent [config]="form" clickStopPropagation></smz-form-group>
|
|
@@ -4206,7 +4281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4206
4281
|
</ng-container>
|
|
4207
4282
|
`,
|
|
4208
4283
|
}]
|
|
4209
|
-
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$
|
|
4284
|
+
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$3.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
|
|
4210
4285
|
type: ViewChild,
|
|
4211
4286
|
args: ['formComponent']
|
|
4212
4287
|
}] } });
|
|
@@ -4257,7 +4332,7 @@ class InputListBatchCrudComponent {
|
|
|
4257
4332
|
this.dialogCrudService.ref.close({ names: event.data.names.split('\n') });
|
|
4258
4333
|
}
|
|
4259
4334
|
}
|
|
4260
|
-
InputListBatchCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListBatchCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$
|
|
4335
|
+
InputListBatchCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: InputListBatchCrudComponent, deps: [{ token: DialogCrudStateService }, { token: i2$3.DynamicDialogConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
4261
4336
|
InputListBatchCrudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: InputListBatchCrudComponent, selector: "smz-input-list-dialog-crud", viewQueries: [{ propertyName: "formComponent", first: true, predicate: ["formComponent"], descendants: true }], ngImport: i0, template: `
|
|
4262
4337
|
<ng-container *ngIf="form != null">
|
|
4263
4338
|
<div class="grid grid-nogutter items-start justify-start">
|
|
@@ -4283,7 +4358,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4283
4358
|
</ng-container>
|
|
4284
4359
|
`,
|
|
4285
4360
|
}]
|
|
4286
|
-
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$
|
|
4361
|
+
}], ctorParameters: function () { return [{ type: DialogCrudStateService }, { type: i2$3.DynamicDialogConfig }]; }, propDecorators: { formComponent: [{
|
|
4287
4362
|
type: ViewChild,
|
|
4288
4363
|
args: ['formComponent']
|
|
4289
4364
|
}] } });
|
|
@@ -4623,7 +4698,7 @@ class DialogContentManagerComponent {
|
|
|
4623
4698
|
}
|
|
4624
4699
|
}
|
|
4625
4700
|
DialogContentManagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogContentManagerComponent, deps: [{ token: DynamicDialogRef }, { token: SmzDynamicDialogConfig }, { token: SmzDialogsVisibilityService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4626
|
-
DialogContentManagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DialogContentManagerComponent, selector: "smz-dialog-content-manager", ngImport: i0, template: "<div class=\"smz-dialog-content smz_form_grid_container\">\n\n <div class=\"container\">\n <div class=\"row grid-nogutter\">\n\n <!-- <p-progressBar *ngIf=\"config.data._context.isLoading\" mode=\"indeterminate\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-loading\"></p-progressBar> -->\n <p-messages [(value)]=\"config.data._context.apiErrors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n\n <ng-container *ngFor=\"let feature of config.data._context.injectables\">\n <div class=\"col\" [ngClass]=\"(feature.template != null ? feature.template : config.data._context.featureTemplate) | setTemplateClasses : ['row']\">\n <ng-container *ngIf=\"feature.visibilityDependsOn != null\">\n <ng-container *ngIf=\"(visibility.observers[feature.componentId + feature.component.name].visibility$ | async) as visibilityState\">\n <ng-container *ngIf=\"!feature.visibilityDependsOn.reversed === visibilityState.state || feature.visibilityDependsOn.reversed === !visibilityState.state\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"feature.visibilityDependsOn == null\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </div>\n\n </ng-container>\n\n </div>\n </div>\n\n</div>", styles: [":root{--smz-dialog-padding: 1em}smz-general-dialog p-toolbar .ui-toolbar{background-color:unset;border:unset;padding:var(--smz-dialog-padding)}smz-general-dialog .smz-dialog-container{position:absolute;top:var(--smz-dialog-padding);left:var(--smz-dialog-padding);right:var(--smz-dialog-padding);bottom:calc(var(--smz-dialog-padding) * 4);overflow:scroll}smz-general-dialog .smz-dialog-footer{position:absolute;bottom:0px;left:0px;right:0px;z-index:auto}smz-general-dialog .smz_dialog_disabled{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important;filter:brightness(70%)!important}smz-general-dialog .smz-group-right{float:right}\n"], components: [{ type:
|
|
4701
|
+
DialogContentManagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DialogContentManagerComponent, selector: "smz-dialog-content-manager", ngImport: i0, template: "<div class=\"smz-dialog-content smz_form_grid_container\">\n\n <div class=\"container\">\n <div class=\"row grid-nogutter\">\n\n <!-- <p-progressBar *ngIf=\"config.data._context.isLoading\" mode=\"indeterminate\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-loading\"></p-progressBar> -->\n <p-messages [(value)]=\"config.data._context.apiErrors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n\n <ng-container *ngFor=\"let feature of config.data._context.injectables\">\n <div class=\"col\" [ngClass]=\"(feature.template != null ? feature.template : config.data._context.featureTemplate) | setTemplateClasses : ['row']\">\n <ng-container *ngIf=\"feature.visibilityDependsOn != null\">\n <ng-container *ngIf=\"(visibility.observers[feature.componentId + feature.component.name].visibility$ | async) as visibilityState\">\n <ng-container *ngIf=\"!feature.visibilityDependsOn.reversed === visibilityState.state || feature.visibilityDependsOn.reversed === !visibilityState.state\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"feature.visibilityDependsOn == null\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </div>\n\n </ng-container>\n\n </div>\n </div>\n\n</div>", styles: [":root{--smz-dialog-padding: 1em}smz-general-dialog p-toolbar .ui-toolbar{background-color:unset;border:unset;padding:var(--smz-dialog-padding)}smz-general-dialog .smz-dialog-container{position:absolute;top:var(--smz-dialog-padding);left:var(--smz-dialog-padding);right:var(--smz-dialog-padding);bottom:calc(var(--smz-dialog-padding) * 4);overflow:scroll}smz-general-dialog .smz-dialog-footer{position:absolute;bottom:0px;left:0px;right:0px;z-index:auto}smz-general-dialog .smz_dialog_disabled{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important;filter:brightness(70%)!important}smz-general-dialog .smz-group-right{float:right}\n"], components: [{ type: i2$2.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: InjectComponentDirective, selector: "[appInjectComponent]", inputs: ["appInjectComponent", "context"] }], pipes: { "setTemplateClasses": SetTemplateClassesPipe, "async": i1.AsyncPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
4627
4702
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogContentManagerComponent, decorators: [{
|
|
4628
4703
|
type: Component,
|
|
4629
4704
|
args: [{ selector: 'smz-dialog-content-manager', encapsulation: ViewEncapsulation.None, template: "<div class=\"smz-dialog-content smz_form_grid_container\">\n\n <div class=\"container\">\n <div class=\"row grid-nogutter\">\n\n <!-- <p-progressBar *ngIf=\"config.data._context.isLoading\" mode=\"indeterminate\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-loading\"></p-progressBar> -->\n <p-messages [(value)]=\"config.data._context.apiErrors\" [enableService]=\"false\" [ngStyle]=\"{ 'width': '100%;' }\" styleClass=\"dialog-messages\"></p-messages>\n\n <ng-container *ngFor=\"let feature of config.data._context.injectables\">\n <div class=\"col\" [ngClass]=\"(feature.template != null ? feature.template : config.data._context.featureTemplate) | setTemplateClasses : ['row']\">\n <ng-container *ngIf=\"feature.visibilityDependsOn != null\">\n <ng-container *ngIf=\"(visibility.observers[feature.componentId + feature.component.name].visibility$ | async) as visibilityState\">\n <ng-container *ngIf=\"!feature.visibilityDependsOn.reversed === visibilityState.state || feature.visibilityDependsOn.reversed === !visibilityState.state\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"feature.visibilityDependsOn == null\">\n <ng-template [appInjectComponent]=\"feature\" [context]=\"config.data._context\"></ng-template>\n </ng-container>\n </div>\n\n </ng-container>\n\n </div>\n </div>\n\n</div>", styles: [":root{--smz-dialog-padding: 1em}smz-general-dialog p-toolbar .ui-toolbar{background-color:unset;border:unset;padding:var(--smz-dialog-padding)}smz-general-dialog .smz-dialog-container{position:absolute;top:var(--smz-dialog-padding);left:var(--smz-dialog-padding);right:var(--smz-dialog-padding);bottom:calc(var(--smz-dialog-padding) * 4);overflow:scroll}smz-general-dialog .smz-dialog-footer{position:absolute;bottom:0px;left:0px;right:0px;z-index:auto}smz-general-dialog .smz_dialog_disabled{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important;filter:brightness(70%)!important}smz-general-dialog .smz-group-right{float:right}\n"] }]
|
|
@@ -5359,7 +5434,7 @@ let DialogFooterComponent = class DialogFooterComponent {
|
|
|
5359
5434
|
}
|
|
5360
5435
|
};
|
|
5361
5436
|
DialogFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogFooterComponent, deps: [{ token: DynamicDialogRef }, { token: SmzDynamicDialogConfig }, { token: SmzDialogsConfig }, { token: SmzDialogsVisibilityService }, { token: InjectComponentService }, { token: i0.ChangeDetectorRef }, { token: i1$5.Actions }, { token: NgxRbkUtilsConfig }, { token: i1$5.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
5362
|
-
DialogFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DialogFooterComponent, selector: "smz-dialog-footer", ngImport: i0, template: "<ng-container *ngIf=\"dialogConfig.data._context as context\">\n\n <p-toolbar class=\"smz-dialog-footer\">\n <div class=\"grid grid-nogutter items-center justify-end gap-2\">\n\n <ng-container *ngIf=\"context.customButtonsOrder == null || context.customButtonsOrder === 'first'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n <p-button\n *ngIf=\"context.behaviors.showCancelButton\"\n [label]=\"context.builtInButtons.cancelName\"\n [ngClass]=\"context.builtInButtons.cancelClass\"\n [styleClass]=\"context.builtInButtons.cancelClass\"\n (onClick)=\"close()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showConfirmButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.confirmName\"\n [ngClass]=\"context.builtInButtons.confirmClass\"\n [styleClass]=\"context.builtInButtons.confirmClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"confirm()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showOkButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.okName\"\n [ngClass]=\"context.builtInButtons.okClass\"\n [styleClass]=\"context.builtInButtons.okClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"ok()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showSaveButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.saveName\"\n [ngClass]=\"context.builtInButtons.saveClass\"\n [styleClass]=\"context.builtInButtons.saveClass\"\n [icon]=\"context.isLoading ? 'fas fa-spinner fa-spin' : ''\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"save()\">\n </p-button>\n\n <ng-container *ngIf=\"context.customButtonsOrder === 'last'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n </div>\n </p-toolbar>\n\n</ng-container>", styles: [""], components: [{ type: i0.forwardRef(function () { return i8.Toolbar; }), selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i0.forwardRef(function () { return i6.Button; }), selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i0.forwardRef(function () { return i1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i1.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i1.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return
|
|
5437
|
+
DialogFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: DialogFooterComponent, selector: "smz-dialog-footer", ngImport: i0, template: "<ng-container *ngIf=\"dialogConfig.data._context as context\">\n\n <p-toolbar class=\"smz-dialog-footer\">\n <div class=\"grid grid-nogutter items-center justify-end gap-2\">\n\n <ng-container *ngIf=\"context.customButtonsOrder == null || context.customButtonsOrder === 'first'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n <p-button\n *ngIf=\"context.behaviors.showCancelButton\"\n [label]=\"context.builtInButtons.cancelName\"\n [ngClass]=\"context.builtInButtons.cancelClass\"\n [styleClass]=\"context.builtInButtons.cancelClass\"\n (onClick)=\"close()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showConfirmButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.confirmName\"\n [ngClass]=\"context.builtInButtons.confirmClass\"\n [styleClass]=\"context.builtInButtons.confirmClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"confirm()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showOkButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.okName\"\n [ngClass]=\"context.builtInButtons.okClass\"\n [styleClass]=\"context.builtInButtons.okClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"ok()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showSaveButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.saveName\"\n [ngClass]=\"context.builtInButtons.saveClass\"\n [styleClass]=\"context.builtInButtons.saveClass\"\n [icon]=\"context.isLoading ? 'fas fa-spinner fa-spin' : ''\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"save()\">\n </p-button>\n\n <ng-container *ngIf=\"context.customButtonsOrder === 'last'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n </div>\n </p-toolbar>\n\n</ng-container>", styles: [""], components: [{ type: i0.forwardRef(function () { return i8.Toolbar; }), selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i0.forwardRef(function () { return i6.Button; }), selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i0.forwardRef(function () { return i1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i1.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i1.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return i5.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: i0.forwardRef(function () { return i1$1.Tooltip; }), selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i0.forwardRef(function () { return ConfirmOnEnterDirective; }), selector: "[confirmOnEnter]", inputs: ["confirmOnEnter", "clickEvent", "delayConfirmation", "disabled", "dialogId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5363
5438
|
DialogFooterComponent = __decorate([
|
|
5364
5439
|
UntilDestroy()
|
|
5365
5440
|
], DialogFooterComponent);
|
|
@@ -5797,12 +5872,12 @@ class AuthService extends BaseApiService {
|
|
|
5797
5872
|
})).pipe(map(x => (Object.assign(Object.assign({}, x), { accessToken: x[this.rbkConfig.authentication.login.responsePropertyName], refreshToken: x[this.rbkConfig.authentication.refreshToken.responsePropertyName] }))));
|
|
5798
5873
|
}
|
|
5799
5874
|
}
|
|
5800
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuthService, deps: [{ token: i1$
|
|
5875
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuthService, deps: [{ token: i1$d.HttpClient }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5801
5876
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
5802
5877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuthService, decorators: [{
|
|
5803
5878
|
type: Injectable,
|
|
5804
5879
|
args: [{ providedIn: 'root' }]
|
|
5805
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5880
|
+
}], ctorParameters: function () { return [{ type: i1$d.HttpClient }, { type: NgxRbkUtilsConfig }]; } });
|
|
5806
5881
|
|
|
5807
5882
|
const getAuthenticationInitialState = () => ({
|
|
5808
5883
|
userdata: null,
|
|
@@ -6574,7 +6649,7 @@ SmzColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
6574
6649
|
</ng-container>
|
|
6575
6650
|
|
|
6576
6651
|
</p-columnFilter>
|
|
6577
|
-
<div>`, isInline: true, components: [{ type: i5.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"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
6652
|
+
<div>`, isInline: true, components: [{ type: i5$1.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
6578
6653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzColumnFilterComponent, decorators: [{
|
|
6579
6654
|
type: Component,
|
|
6580
6655
|
args: [{
|
|
@@ -6791,7 +6866,7 @@ class MenuItemContent {
|
|
|
6791
6866
|
}
|
|
6792
6867
|
}
|
|
6793
6868
|
MenuItemContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MenuItemContent, deps: [{ token: forwardRef(() => Menu) }], target: i0.ɵɵFactoryTarget.Component });
|
|
6794
|
-
MenuItemContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MenuItemContent, selector: "[smzMenuItemContent]", inputs: { item: ["smzMenuItemContent", "item"] }, host: { classAttribute: "p-element" }, ngImport: i0, template: "<a\n *ngIf=\"!item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [attr.href]=\"item.url || null\"\n class=\"p-menuitem-link\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.target]=\"item.target\"\n [attr.title]=\"item.title\"\n [attr.id]=\"item.id\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n<a\n *ngIf=\"item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.data-automationid]=\"item.automationId\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n class=\"p-menuitem-link\"\n [attr.target]=\"item.target\"\n [attr.id]=\"item.id\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n pRipple\n [fragment]=\"item.fragment\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [state]=\"item.state\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span\n class=\"p-menuitem-text\"\n *ngIf=\"item.escape !== false; else htmlRouteLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlRouteLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$
|
|
6869
|
+
MenuItemContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MenuItemContent, selector: "[smzMenuItemContent]", inputs: { item: ["smzMenuItemContent", "item"] }, host: { classAttribute: "p-element" }, ngImport: i0, template: "<a\n *ngIf=\"!item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [attr.href]=\"item.url || null\"\n class=\"p-menuitem-link\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.target]=\"item.target\"\n [attr.title]=\"item.title\"\n [attr.id]=\"item.id\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n<a\n *ngIf=\"item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.data-automationid]=\"item.automationId\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n class=\"p-menuitem-link\"\n [attr.target]=\"item.target\"\n [attr.id]=\"item.id\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n pRipple\n [fragment]=\"item.fragment\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [state]=\"item.state\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span\n class=\"p-menuitem-text\"\n *ngIf=\"item.escape !== false; else htmlRouteLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlRouteLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$e.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i3$4.Ripple, selector: "[pRipple]" }, { type: i1$e.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
6795
6870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MenuItemContent, decorators: [{
|
|
6796
6871
|
type: Component,
|
|
6797
6872
|
args: [{ selector: "[smzMenuItemContent]", encapsulation: ViewEncapsulation.None, host: {
|
|
@@ -7705,7 +7780,7 @@ class SmzTableComponent {
|
|
|
7705
7780
|
}
|
|
7706
7781
|
}
|
|
7707
7782
|
SmzTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TableEditableService }, { token: TableFormsService }, { token: SmzDialogsConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
7708
|
-
SmzTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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: PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: Table, descendants: true }, { propertyName: "columnMultiselect", first: true, predicate: ["columnMultiselect"], descendants: true }], usesOnChanges: true, ngImport: i0, 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=\"grid grid-nogutter justify-start items-center gap-2\">\n <span class=\"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=\"ml-2 col-12 md:col-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 col-12\" [ngClass]=\"{ 'md:col-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=\"grid grid-nogutter items-center mt-2\" [ngClass]=\"'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 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 <th *ngIf=\"context.state.rowExpansion.isEnabled\" [ngStyle]=\"{ width: context.state.rowExpansion.columnWidth }\">\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=\"flex justify-start items-center\">\n <span class=\"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=\"px-3 pt-3 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=\"px-3 pt-3 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=\"px-3 pt-3 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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <div class=\"grid grid-nogutter items-center 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 <td *ngIf=\"context.state.rowExpansion.isEnabled\" clickStopPropagation [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <p-toggleButton [(ngModel)]=\"item._isExpanded\" [onIcon]=\"'fas fa-chevron-down'\" [offIcon]=\"'fas fa-chevron-right'\"></p-toggleButton>\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]=\"{ '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 <div [innerHtml]=\"$any(col.content.data).callback(contentData.result, item)\"></div>\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=\"grid grid-nogutter items-center 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 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 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 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 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 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 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 [callback]=\"context.state.actions.menu.callback\" [items]=\"context.state.actions.menu.items\" [data]=\"item\" [ngClass]=\"{ '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\n <tr *ngIf=\"item._isExpanded\">\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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <ng-container *ngTemplateOutlet=\"rowContentTemplate; context: { $implicit: item }\"></ng-container>\n </td>\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) + (context.state.rowExpansion.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.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", "selectionPageOnly", "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", "selectAll"], outputs: ["selectAllChange", "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$c.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }, { type: i5.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5.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$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.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: i9.ToggleButton, selector: "p-toggleButton", inputs: ["onLabel", "offLabel", "onIcon", "offIcon", "ariaLabelledBy", "disabled", "style", "styleClass", "inputId", "tabindex", "iconPos"], outputs: ["onChange"] }, { type: i10.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { type: i5.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i2.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$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1$9.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", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: i2$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", "callback", "data"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.InputText, selector: "[pInputText]" }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TableItemActionsDirective, selector: "[tableItemAction]", inputs: ["isClickable", "item", "callback"] }, { type: i5.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3$2.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7783
|
+
SmzTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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: PrimeTemplate }], viewQueries: [{ propertyName: "table", first: true, predicate: Table, descendants: true }, { propertyName: "columnMultiselect", first: true, predicate: ["columnMultiselect"], descendants: true }], usesOnChanges: true, ngImport: i0, 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=\"grid grid-nogutter justify-start items-center gap-2\">\n <span class=\"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=\"ml-2 col-12 md:col-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 col-12\" [ngClass]=\"{ 'md:col-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=\"grid grid-nogutter items-center mt-2\" [ngClass]=\"'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 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 <th *ngIf=\"context.state.rowExpansion.isEnabled\" [ngStyle]=\"{ width: context.state.rowExpansion.columnWidth }\">\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=\"flex justify-start items-center\">\n <span class=\"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=\"px-3 pt-3 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=\"px-3 pt-3 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=\"px-3 pt-3 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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <div class=\"grid grid-nogutter items-center 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 <td *ngIf=\"context.state.rowExpansion.isEnabled\" clickStopPropagation [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <p-toggleButton [(ngModel)]=\"item._isExpanded\" [onIcon]=\"'fas fa-chevron-down'\" [offIcon]=\"'fas fa-chevron-right'\"></p-toggleButton>\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]=\"{ '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 <div [innerHtml]=\"$any(col.content.data).callback(contentData.result, item)\"></div>\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=\"grid grid-nogutter items-center 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 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 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 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 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 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 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 [callback]=\"context.state.actions.menu.callback\" [items]=\"context.state.actions.menu.items\" [data]=\"item\" [ngClass]=\"{ '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\n <tr *ngIf=\"item._isExpanded\">\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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <ng-container *ngTemplateOutlet=\"rowContentTemplate; context: { $implicit: item }\"></ng-container>\n </td>\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) + (context.state.rowExpansion.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$1.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", "selectionPageOnly", "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", "selectAll"], outputs: ["selectAllChange", "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$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$1.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i5$1.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: i5$1.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: SmzColumnFilterComponent, selector: "smz-column-filter", inputs: ["currency", "display", "field", "matchMode", "showAddButton", "showMatchModes", "showOperator", "type"] }, { type: i4$1.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$1.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: i9.ToggleButton, selector: "p-toggleButton", inputs: ["onLabel", "offLabel", "onIcon", "offIcon", "ariaLabelledBy", "disabled", "style", "styleClass", "inputId", "tabindex", "iconPos"], outputs: ["onChange"] }, { type: i10.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { type: i5$1.CellEditor, selector: "p-cellEditor" }, { type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["errors", "messages", "isFormInvalid", "isFormDirty"] }, { type: i2.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$8.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i1$9.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", "touchUI", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: i2$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", "callback", "data"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.InputText, selector: "[pInputText]" }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.ResizableColumn, selector: "[pResizableColumn]", inputs: ["pResizableColumnDisabled"] }, { type: i5$1.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: TableItemActionsDirective, selector: "[tableItemAction]", inputs: ["isClickable", "item", "callback"] }, { type: i5$1.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { type: ClickStopPropagationDirective, selector: "[clickStopPropagation]" }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3$2.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5$1.InitEditableRow, selector: "[pInitEditableRow]" }], pipes: { "tableContext": SmzTableContextPipe, "cloneTableItems": SmzCloneTableItemsPipe, "filterObject": SmzFilterObjectPipe, "uniqueFilter": UniqueFilterPipe, "editableSource": SmzEditableSourcePipe, "tableContent": SmzTableContentPipe, "date": i1.DatePipe, "contentIconMatches": SmzContentIconMatchesPipe, "contentErrors": SmzContentErrorsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7709
7784
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzTableComponent, decorators: [{
|
|
7710
7785
|
type: Component,
|
|
7711
7786
|
args: [{ selector: 'smz-ui-table', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TableEditableService, TableFormsService], 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=\"grid grid-nogutter justify-start items-center gap-2\">\n <span class=\"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=\"ml-2 col-12 md:col-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 col-12\" [ngClass]=\"{ 'md:col-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=\"grid grid-nogutter items-center mt-2\" [ngClass]=\"'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 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 <th *ngIf=\"context.state.rowExpansion.isEnabled\" [ngStyle]=\"{ width: context.state.rowExpansion.columnWidth }\">\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=\"flex justify-start items-center\">\n <span class=\"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=\"px-3 pt-3 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=\"px-3 pt-3 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=\"px-3 pt-3 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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <div class=\"grid grid-nogutter items-center 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 <td *ngIf=\"context.state.rowExpansion.isEnabled\" clickStopPropagation [ngClass]=\"{ 'opacity-50 pointer-events-none': editableService.context[item.id]?.hasErrors || editableService.context[item.id]?.isLoading }\">\n <p-toggleButton [(ngModel)]=\"item._isExpanded\" [onIcon]=\"'fas fa-chevron-down'\" [offIcon]=\"'fas fa-chevron-right'\"></p-toggleButton>\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]=\"{ '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 <div [innerHtml]=\"$any(col.content.data).callback(contentData.result, item)\"></div>\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=\"grid grid-nogutter items-center 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 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 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 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 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 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 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 [callback]=\"context.state.actions.menu.callback\" [items]=\"context.state.actions.menu.items\" [data]=\"item\" [ngClass]=\"{ '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\n <tr *ngIf=\"item._isExpanded\">\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) + (context.state.rowExpansion.isEnabled ? 1 : 0)\">\n <ng-container *ngTemplateOutlet=\"rowContentTemplate; context: { $implicit: item }\"></ng-container>\n </td>\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) + (context.state.rowExpansion.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>" }]
|
|
@@ -7847,7 +7922,7 @@ SmzColumnFilter2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
7847
7922
|
</ng-container>
|
|
7848
7923
|
|
|
7849
7924
|
</p-columnFilter>
|
|
7850
|
-
`, isInline: true, components: [{ type: i5.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"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
7925
|
+
`, isInline: true, components: [{ type: i5$1.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
7851
7926
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzColumnFilter2Component, decorators: [{
|
|
7852
7927
|
type: Component,
|
|
7853
7928
|
args: [{
|
|
@@ -9578,7 +9653,7 @@ let DialogsState = class DialogsState {
|
|
|
9578
9653
|
});
|
|
9579
9654
|
}
|
|
9580
9655
|
};
|
|
9581
|
-
DialogsState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogsState, deps: [{ token: SmzDialogsService }, { token: i2$
|
|
9656
|
+
DialogsState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogsState, deps: [{ token: SmzDialogsService }, { token: i2$3.DialogService }, { token: DialogCrudStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9582
9657
|
DialogsState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogsState });
|
|
9583
9658
|
__decorate([
|
|
9584
9659
|
Action(DialogsActions.Message)
|
|
@@ -9603,7 +9678,7 @@ DialogsState = __decorate([
|
|
|
9603
9678
|
], DialogsState);
|
|
9604
9679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DialogsState, decorators: [{
|
|
9605
9680
|
type: Injectable
|
|
9606
|
-
}], ctorParameters: function () { return [{ type: SmzDialogsService }, { type: i2$
|
|
9681
|
+
}], ctorParameters: function () { return [{ type: SmzDialogsService }, { type: i2$3.DialogService }, { type: DialogCrudStateService }]; }, propDecorators: { onMessage: [], onConfirmation: [], onConfirmOnEnter: [], onShowInputListCreationCrudDialog: [], onShowInputListBatchCreationCrudDialog: [] } });
|
|
9607
9682
|
|
|
9608
9683
|
class NgVarDirective {
|
|
9609
9684
|
constructor(templateRef, vcRef) {
|
|
@@ -10206,6 +10281,7 @@ class SmzFormGroupBuilder {
|
|
|
10206
10281
|
propertyName: property, type: SmzControlType.TEXT_BUTTON, name: label,
|
|
10207
10282
|
defaultValue,
|
|
10208
10283
|
callback,
|
|
10284
|
+
isButtonValid: false,
|
|
10209
10285
|
hideName: false,
|
|
10210
10286
|
icon: 'fas fa-redo',
|
|
10211
10287
|
placeholder: '',
|
|
@@ -11366,7 +11442,7 @@ class SmzFormBuilder {
|
|
|
11366
11442
|
formId: UUID.UUID(),
|
|
11367
11443
|
groups: [],
|
|
11368
11444
|
template: Object.assign({ extraSmall: { horizontalAlignment: 'justify-between', verticalAlignment: 'items-start' }, small: { horizontalAlignment: 'justify-between', verticalAlignment: 'items-start' } }, (_b = (_a = this.defaultConfig) === null || _a === void 0 ? void 0 : _a.forms) === null || _b === void 0 ? void 0 : _b.formTemplates),
|
|
11369
|
-
behaviors: Object.assign({ avoidFocusOnLoad: false, debounceTime: 400, flattenResponse: true, runCustomFunctionsOnLoad: false, skipFunctionAfterNextEmit: false, skipEmitChangesOnLoad: false, showErrorsMethod: 'touched'
|
|
11445
|
+
behaviors: Object.assign({ avoidFocusOnLoad: false, debounceTime: 400, flattenResponse: true, runCustomFunctionsOnLoad: false, skipFunctionAfterNextEmit: false, skipEmitChangesOnLoad: false, showErrorsMethod: 'touched' }, (_d = (_c = this.defaultConfig) === null || _c === void 0 ? void 0 : _c.forms) === null || _d === void 0 ? void 0 : _d.behaviors),
|
|
11370
11446
|
};
|
|
11371
11447
|
this.createdByUiDefinitions = false;
|
|
11372
11448
|
if (state != null) {
|
|
@@ -11410,10 +11486,6 @@ class SmzFormBuilder {
|
|
|
11410
11486
|
this._state.behaviors.skipEmitChangesOnLoad = true;
|
|
11411
11487
|
return this;
|
|
11412
11488
|
}
|
|
11413
|
-
includeDisabledInValidation() {
|
|
11414
|
-
this._state.behaviors.includeDisabledInValidation = true;
|
|
11415
|
-
return this;
|
|
11416
|
-
}
|
|
11417
11489
|
get dialog() {
|
|
11418
11490
|
return this._dialogBuilder;
|
|
11419
11491
|
}
|
|
@@ -12246,14 +12318,14 @@ class FaqsApiService extends BaseApiService {
|
|
|
12246
12318
|
return this.http.delete(`${this.config.endpoint}/${id}`, this.generateDefaultHeaders({ compression: false, authentication: true }));
|
|
12247
12319
|
}
|
|
12248
12320
|
}
|
|
12249
|
-
FaqsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FaqsApiService, deps: [{ token: i1$
|
|
12321
|
+
FaqsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FaqsApiService, deps: [{ token: i1$d.HttpClient }, { token: SmzFaqsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12250
12322
|
FaqsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FaqsApiService, providedIn: 'root' });
|
|
12251
12323
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FaqsApiService, decorators: [{
|
|
12252
12324
|
type: Injectable,
|
|
12253
12325
|
args: [{
|
|
12254
12326
|
providedIn: 'root'
|
|
12255
12327
|
}]
|
|
12256
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12328
|
+
}], ctorParameters: function () { return [{ type: i1$d.HttpClient }, { type: SmzFaqsConfig }]; } });
|
|
12257
12329
|
|
|
12258
12330
|
const getInitialState$6 = () => ({
|
|
12259
12331
|
data: {}
|
|
@@ -12674,12 +12746,12 @@ class SmzFaqsComponent {
|
|
|
12674
12746
|
this.manager.loadTag();
|
|
12675
12747
|
}
|
|
12676
12748
|
}
|
|
12677
|
-
SmzFaqsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzFaqsComponent, deps: [{ token: i1$
|
|
12749
|
+
SmzFaqsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzFaqsComponent, deps: [{ token: i1$e.Router }, { token: FaqsManagerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12678
12750
|
SmzFaqsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzFaqsComponent, selector: "smz-faqs", inputs: { expanded: "expanded", verticalPosition: "verticalPosition" }, ngImport: i0, template: "<ng-container *ngIf=\"activated\">\n <div *ngIf=\"expanded\" class=\"layout-dimmer\" (click)=\"expanded = false\"></div>\n\n <div class=\"layout-config\" [ngClass]=\"{ 'layout-config-active': expanded }\">\n <div class=\"layout-config-content-wrapper\">\n <a class=\"layout-config-button\" tabindex=\"0\" [ngStyle]=\"{ top: manager.config.layouts.positions[verticalPosition] }\" (click)=\"toggle()\">\n <i class=\"far fa-question-circle\"></i>\n </a>\n <a class=\"layout-config-close hvr-grow\" tabindex=\"0\" (click)=\"expanded = false\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"layout-config-content\">\n <ng-container *ngIf=\"expanded\">\n <ng-container *ngIf=\"manager.dbData$ | async as dbData\">\n <smz-faqs-content [items]=\"dbData.items\"></smz-faqs-content>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>", styles: ["smz-faqs{font-size:14px}smz-faqs .layout-dimmer{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#00000059;-webkit-user-select:none;user-select:none;z-index:101}smz-faqs .layout-config{position:fixed;padding:0;top:0;right:0;display:block;width:550px;z-index:998;height:100%;transition:transform .4s cubic-bezier(.05,.74,.2,.99);transform:translate(100%);-webkit-backface-visibility:hidden;backface-visibility:hidden}smz-faqs .layout-config .layout-config-content-wrapper{position:relative;height:100%;box-shadow:0 2px 10px #0000003d;color:var(--text-color);background-color:var(--surface-f)}smz-faqs .layout-config .layout-config-content-wrapper .layout-config-button{display:block;position:absolute;width:52px;height:52px;line-height:52px;background-color:var(--primary-color);text-align:center;color:var(--primary-color-text);left:-51px;z-index:-1;overflow:hidden;cursor:pointer;outline:0 none;border-radius:3px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}smz-faqs .layout-config .layout-config-content-wrapper .layout-config-button i{font-size:26px;line-height:inherit;cursor:pointer;transform:rotate(1turn);transition:transform 1s}smz-faqs .layout-config.layout-config-active{transform:translate(0)}smz-faqs .layout-config .layout-config-close{position:absolute;width:25px;height:25px;line-height:26px;text-align:center;right:20px;top:20px;z-index:999;background-color:var(--primary-color);border-radius:50%;cursor:pointer;transition:background-color .2s,box-shadow .2s,transform .2s}smz-faqs .layout-config .layout-config-content{overflow:auto;height:100%;padding:4rem 2rem 2rem}smz-faqs .layout-config .layout-config-close i{color:var(--primary-color-text);line-height:inherit;font-size:14px}\n"], components: [{ type: FaqsContentComponent, selector: "smz-faqs-content", inputs: ["items"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i1.AsyncPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
12679
12751
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzFaqsComponent, decorators: [{
|
|
12680
12752
|
type: Component,
|
|
12681
12753
|
args: [{ selector: 'smz-faqs', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"activated\">\n <div *ngIf=\"expanded\" class=\"layout-dimmer\" (click)=\"expanded = false\"></div>\n\n <div class=\"layout-config\" [ngClass]=\"{ 'layout-config-active': expanded }\">\n <div class=\"layout-config-content-wrapper\">\n <a class=\"layout-config-button\" tabindex=\"0\" [ngStyle]=\"{ top: manager.config.layouts.positions[verticalPosition] }\" (click)=\"toggle()\">\n <i class=\"far fa-question-circle\"></i>\n </a>\n <a class=\"layout-config-close hvr-grow\" tabindex=\"0\" (click)=\"expanded = false\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"layout-config-content\">\n <ng-container *ngIf=\"expanded\">\n <ng-container *ngIf=\"manager.dbData$ | async as dbData\">\n <smz-faqs-content [items]=\"dbData.items\"></smz-faqs-content>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>", styles: ["smz-faqs{font-size:14px}smz-faqs .layout-dimmer{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#00000059;-webkit-user-select:none;user-select:none;z-index:101}smz-faqs .layout-config{position:fixed;padding:0;top:0;right:0;display:block;width:550px;z-index:998;height:100%;transition:transform .4s cubic-bezier(.05,.74,.2,.99);transform:translate(100%);-webkit-backface-visibility:hidden;backface-visibility:hidden}smz-faqs .layout-config .layout-config-content-wrapper{position:relative;height:100%;box-shadow:0 2px 10px #0000003d;color:var(--text-color);background-color:var(--surface-f)}smz-faqs .layout-config .layout-config-content-wrapper .layout-config-button{display:block;position:absolute;width:52px;height:52px;line-height:52px;background-color:var(--primary-color);text-align:center;color:var(--primary-color-text);left:-51px;z-index:-1;overflow:hidden;cursor:pointer;outline:0 none;border-radius:3px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}smz-faqs .layout-config .layout-config-content-wrapper .layout-config-button i{font-size:26px;line-height:inherit;cursor:pointer;transform:rotate(1turn);transition:transform 1s}smz-faqs .layout-config.layout-config-active{transform:translate(0)}smz-faqs .layout-config .layout-config-close{position:absolute;width:25px;height:25px;line-height:26px;text-align:center;right:20px;top:20px;z-index:999;background-color:var(--primary-color);border-radius:50%;cursor:pointer;transition:background-color .2s,box-shadow .2s,transform .2s}smz-faqs .layout-config .layout-config-content{overflow:auto;height:100%;padding:4rem 2rem 2rem}smz-faqs .layout-config .layout-config-close i{color:var(--primary-color-text);line-height:inherit;font-size:14px}\n"] }]
|
|
12682
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
12754
|
+
}], ctorParameters: function () { return [{ type: i1$e.Router }, { type: FaqsManagerService }]; }, propDecorators: { expanded: [{
|
|
12683
12755
|
type: Input
|
|
12684
12756
|
}], verticalPosition: [{
|
|
12685
12757
|
type: Input
|
|
@@ -13252,14 +13324,14 @@ class RouterDataListenerService {
|
|
|
13252
13324
|
return mergeClone(before, current);
|
|
13253
13325
|
}
|
|
13254
13326
|
}
|
|
13255
|
-
RouterDataListenerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RouterDataListenerService, deps: [{ token: i1$
|
|
13327
|
+
RouterDataListenerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RouterDataListenerService, deps: [{ token: i1$e.Router }, { token: i1$e.ActivatedRoute }, { token: SmzLayoutsConfig }, { token: SmzDialogsService }, { token: i1$5.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13256
13328
|
RouterDataListenerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RouterDataListenerService, providedIn: 'root' });
|
|
13257
13329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RouterDataListenerService, decorators: [{
|
|
13258
13330
|
type: Injectable,
|
|
13259
13331
|
args: [{
|
|
13260
13332
|
providedIn: 'root'
|
|
13261
13333
|
}]
|
|
13262
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
13334
|
+
}], ctorParameters: function () { return [{ type: i1$e.Router }, { type: i1$e.ActivatedRoute }, { type: SmzLayoutsConfig }, { type: SmzDialogsService }, { type: i1$5.Store }]; } });
|
|
13263
13335
|
|
|
13264
13336
|
class ErrorComponent {
|
|
13265
13337
|
constructor(rbkConfig, routerListener, store) {
|
|
@@ -13332,7 +13404,7 @@ const routerModuleForChildErrorModule = RouterModule.forChild(routes$3);
|
|
|
13332
13404
|
class ErrorModule {
|
|
13333
13405
|
}
|
|
13334
13406
|
ErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13335
|
-
ErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorModule, declarations: [ErrorComponent], imports: [CommonModule, i1$
|
|
13407
|
+
ErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorModule, declarations: [ErrorComponent], imports: [CommonModule, i1$e.RouterModule, ButtonModule,
|
|
13336
13408
|
NgxSmzFormsModule] });
|
|
13337
13409
|
ErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorModule, imports: [[
|
|
13338
13410
|
CommonModule,
|
|
@@ -13700,7 +13772,7 @@ const routerModuleForChildLoginModule = RouterModule.forChild(routes$2);
|
|
|
13700
13772
|
class LoginModule {
|
|
13701
13773
|
}
|
|
13702
13774
|
LoginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LoginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13703
|
-
LoginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LoginModule, declarations: [LoginComponent], imports: [CommonModule, i1$
|
|
13775
|
+
LoginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LoginModule, declarations: [LoginComponent], imports: [CommonModule, i1$e.RouterModule, ButtonModule,
|
|
13704
13776
|
NgxSmzFormsModule] });
|
|
13705
13777
|
LoginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LoginModule, imports: [[
|
|
13706
13778
|
CommonModule,
|
|
@@ -13733,7 +13805,7 @@ class NotFoundComponent {
|
|
|
13733
13805
|
}
|
|
13734
13806
|
}
|
|
13735
13807
|
NotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundComponent, deps: [{ token: NgxRbkUtilsConfig }, { token: SmzLayoutsConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
13736
|
-
NotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: NotFoundComponent, selector: "smz-ui-not-found", ngImport: i0, template: "\n<!-- VERSAO MOBILE -->\n<div class=\"lg:hidden grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"exception-full-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error exception-light\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator exception-light\"></div>\n <div class=\"col-12 exception-label-message exception-light\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n</div>\n\n<!-- VERS\u00C3O DESKTOP -->\n<div class=\"grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator\"></div>\n <div class=\"col-12 exception-label-message\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n <div class=\"col-12 lg:col-6 exception-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n</div>", styles: [""], directives: [{ type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1$
|
|
13808
|
+
NotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: NotFoundComponent, selector: "smz-ui-not-found", ngImport: i0, template: "\n<!-- VERSAO MOBILE -->\n<div class=\"lg:hidden grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"exception-full-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error exception-light\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator exception-light\"></div>\n <div class=\"col-12 exception-label-message exception-light\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n</div>\n\n<!-- VERS\u00C3O DESKTOP -->\n<div class=\"grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator\"></div>\n <div class=\"col-12 exception-label-message\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n <div class=\"col-12 lg:col-6 exception-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n</div>", styles: [""], directives: [{ type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1$e.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
|
|
13737
13809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundComponent, decorators: [{
|
|
13738
13810
|
type: Component,
|
|
13739
13811
|
args: [{ selector: 'smz-ui-not-found', template: "\n<!-- VERSAO MOBILE -->\n<div class=\"lg:hidden grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"exception-full-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error exception-light\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator exception-light\"></div>\n <div class=\"col-12 exception-label-message exception-light\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n</div>\n\n<!-- VERS\u00C3O DESKTOP -->\n<div class=\"grid justify-center items-center vertical-container exception-page\">\n\n <div class=\"grid justify-center items-center col-12 lg:col-6 grid-nogutter\">\n <div class=\"grid col-8 items-center\">\n <div class=\"col-12 exception-label-error\">{{ config.pages.notFoundTitle }}</div>\n <div class=\"col-4 exception-separator\"></div>\n <div class=\"col-12 exception-label-message\">{{ config.pages.notFoundMessage }}</div>\n <button class=\"col-4 p-button-lg p-button-ghost\" pButton type=\"button\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" label=\"Ir para Home\"></button>\n </div>\n </div>\n\n <div class=\"col-12 lg:col-6 exception-image-container\">\n <img [src]=\"config.pages.notFoundImagePath\"/>\n </div>\n</div>", styles: [""] }]
|
|
@@ -13760,7 +13832,7 @@ const routerModuleForChildNotFoundModule = RouterModule.forChild(routes$1);
|
|
|
13760
13832
|
class NotFoundModule {
|
|
13761
13833
|
}
|
|
13762
13834
|
NotFoundModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13763
|
-
NotFoundModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundModule, declarations: [NotFoundComponent], imports: [CommonModule, i1$
|
|
13835
|
+
NotFoundModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundModule, declarations: [NotFoundComponent], imports: [CommonModule, i1$e.RouterModule, ButtonModule,
|
|
13764
13836
|
NgxSmzFormsModule] });
|
|
13765
13837
|
NotFoundModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotFoundModule, imports: [[
|
|
13766
13838
|
CommonModule,
|
|
@@ -13795,7 +13867,7 @@ const routerModuleForRootNgxSmzLayoutsModule = RouterModule.forRoot(routes);
|
|
|
13795
13867
|
class NgxSmzLayoutsRoutingModule {
|
|
13796
13868
|
}
|
|
13797
13869
|
NgxSmzLayoutsRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NgxSmzLayoutsRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13798
|
-
NgxSmzLayoutsRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NgxSmzLayoutsRoutingModule, imports: [i1$
|
|
13870
|
+
NgxSmzLayoutsRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NgxSmzLayoutsRoutingModule, imports: [i1$e.RouterModule], exports: [RouterModule] });
|
|
13799
13871
|
NgxSmzLayoutsRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NgxSmzLayoutsRoutingModule, imports: [[routerModuleForRootNgxSmzLayoutsModule], RouterModule] });
|
|
13800
13872
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NgxSmzLayoutsRoutingModule, decorators: [{
|
|
13801
13873
|
type: NgModule,
|
|
@@ -14342,49 +14414,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
14342
14414
|
}]
|
|
14343
14415
|
}], ctorParameters: function () { return [{ type: i1$5.Store }, { type: ThemeManagerService }]; } });
|
|
14344
14416
|
|
|
14345
|
-
var ToastActions;
|
|
14346
|
-
(function (ToastActions) {
|
|
14347
|
-
class Custom {
|
|
14348
|
-
constructor(message) {
|
|
14349
|
-
this.message = message;
|
|
14350
|
-
}
|
|
14351
|
-
}
|
|
14352
|
-
Custom.type = '[Application] Show General Toast Message';
|
|
14353
|
-
ToastActions.Custom = Custom;
|
|
14354
|
-
class Success {
|
|
14355
|
-
constructor(message, title) {
|
|
14356
|
-
this.message = message;
|
|
14357
|
-
this.title = title;
|
|
14358
|
-
}
|
|
14359
|
-
}
|
|
14360
|
-
Success.type = '[Application] Show Success Toast Message';
|
|
14361
|
-
ToastActions.Success = Success;
|
|
14362
|
-
class Info {
|
|
14363
|
-
constructor(message, title) {
|
|
14364
|
-
this.message = message;
|
|
14365
|
-
this.title = title;
|
|
14366
|
-
}
|
|
14367
|
-
}
|
|
14368
|
-
Info.type = '[Application] Show Info Toast Message';
|
|
14369
|
-
ToastActions.Info = Info;
|
|
14370
|
-
class Warning {
|
|
14371
|
-
constructor(message, title) {
|
|
14372
|
-
this.message = message;
|
|
14373
|
-
this.title = title;
|
|
14374
|
-
}
|
|
14375
|
-
}
|
|
14376
|
-
Warning.type = '[Application] Show Warning Toast Message';
|
|
14377
|
-
ToastActions.Warning = Warning;
|
|
14378
|
-
class Error {
|
|
14379
|
-
constructor(message, title) {
|
|
14380
|
-
this.message = message;
|
|
14381
|
-
this.title = title;
|
|
14382
|
-
}
|
|
14383
|
-
}
|
|
14384
|
-
Error.type = '[Application] Show Error Toast Message';
|
|
14385
|
-
ToastActions.Error = Error;
|
|
14386
|
-
})(ToastActions || (ToastActions = {}));
|
|
14387
|
-
|
|
14388
14417
|
class CustomError {
|
|
14389
14418
|
static fromApiResponse(state) {
|
|
14390
14419
|
const error = { messages: state.error, redirectTo: null };
|
|
@@ -14857,7 +14886,7 @@ let GlobalLoaderComponent = class GlobalLoaderComponent {
|
|
|
14857
14886
|
});
|
|
14858
14887
|
}
|
|
14859
14888
|
};
|
|
14860
|
-
GlobalLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GlobalLoaderComponent, deps: [{ token: i1$
|
|
14889
|
+
GlobalLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GlobalLoaderComponent, deps: [{ token: i1$e.Router }, { token: i1$5.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
14861
14890
|
GlobalLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: GlobalLoaderComponent, selector: "smz-ui-global-loader", inputs: { template: "template" }, ngImport: i0, template: "<ng-container *ngIf=\"loader$ | async as loader\">\n\n <div class=\"layout-page-container\" [class.blur-page]='isLoading' [class.hide-bg]='!isLoading'></div>\n\n <ng-container *ngIf=\"isLoading\">\n <ng-container [ngSwitch]=\"loader.type\">\n\n <!-- LOADER CUBE -->\n <ng-container *ngSwitchCase=\"loaders.CUBE\">\n <smz-ui-loader-cube [title]=\"loader.title\" [message]=\"loader.message\"></smz-ui-loader-cube>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n</ng-container>", styles: [".blur-page{animation-duration:.3s;animation-fill-mode:forwards;animation-name:page_blur}.blur-page:after{position:absolute;content:\"\";display:block;top:0;left:0;height:100%;width:100%;background:radial-gradient(ellipse at center,rgba(0,0,0,.26) 0%,rgba(0,0,0,.42) 100%);mix-blend-mode:multiply}.layout-container{height:100%}.layout-page-container{position:fixed;top:0;left:0;width:100vw;height:100vh;-webkit-user-select:none;user-select:none;display:block;z-index:10000}.hide-bg{display:none}app-featured-loading{z-index:10001}\n"], components: [{ type: LoaderCubeComponent, selector: "smz-ui-loader-cube", inputs: ["title", "message", "width"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i1.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
14862
14891
|
__decorate([
|
|
14863
14892
|
Select(LayoutUiSelectors.loader)
|
|
@@ -14868,7 +14897,7 @@ GlobalLoaderComponent = __decorate([
|
|
|
14868
14897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GlobalLoaderComponent, decorators: [{
|
|
14869
14898
|
type: Component,
|
|
14870
14899
|
args: [{ selector: 'smz-ui-global-loader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"loader$ | async as loader\">\n\n <div class=\"layout-page-container\" [class.blur-page]='isLoading' [class.hide-bg]='!isLoading'></div>\n\n <ng-container *ngIf=\"isLoading\">\n <ng-container [ngSwitch]=\"loader.type\">\n\n <!-- LOADER CUBE -->\n <ng-container *ngSwitchCase=\"loaders.CUBE\">\n <smz-ui-loader-cube [title]=\"loader.title\" [message]=\"loader.message\"></smz-ui-loader-cube>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n</ng-container>", styles: [".blur-page{animation-duration:.3s;animation-fill-mode:forwards;animation-name:page_blur}.blur-page:after{position:absolute;content:\"\";display:block;top:0;left:0;height:100%;width:100%;background:radial-gradient(ellipse at center,rgba(0,0,0,.26) 0%,rgba(0,0,0,.42) 100%);mix-blend-mode:multiply}.layout-container{height:100%}.layout-page-container{position:fixed;top:0;left:0;width:100vw;height:100vh;-webkit-user-select:none;user-select:none;display:block;z-index:10000}.hide-bg{display:none}app-featured-loading{z-index:10001}\n"] }]
|
|
14871
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
14900
|
+
}], ctorParameters: function () { return [{ type: i1$e.Router }, { type: i1$5.Store }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { loader$: [], template: [{
|
|
14872
14901
|
type: Input
|
|
14873
14902
|
}] } });
|
|
14874
14903
|
|
|
@@ -14889,7 +14918,7 @@ class SmzDockComponent {
|
|
|
14889
14918
|
}
|
|
14890
14919
|
}
|
|
14891
14920
|
SmzDockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDockComponent, deps: [{ token: SmzDockService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14892
|
-
SmzDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDockComponent, selector: "smz-ui-dock", ngImport: i0, template: "<ng-container *ngIf=\"dockService.dockItems != null\">\n <p-dock [model]=\"dockService.dockItems\" position=\"bottom\" [ngClass]=\"{ 'hidden': dockService.dockItems.length === 0}\">\n <ng-template pTemplate=\"item\" let-item>\n <div class=\"w-full relative cursor-pointer\" (click)=\"execute(item)\">\n <img [src]=\"item.icon\" width=\"100%\">\n <div *ngIf=\"item.label != null\" class=\"absolute inset-0 grid grid-nogutter items-center justify-center flex-col\">\n <div class=\"text-center font-medium my-auto pt-2 select-none text-black text-xs\">{{ item.label }}</div>\n </div>\n </div>\n </ng-template>\n </p-dock>\n</ng-container>", components: [{ type: i2$
|
|
14921
|
+
SmzDockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDockComponent, selector: "smz-ui-dock", ngImport: i0, template: "<ng-container *ngIf=\"dockService.dockItems != null\">\n <p-dock [model]=\"dockService.dockItems\" position=\"bottom\" [ngClass]=\"{ 'hidden': dockService.dockItems.length === 0}\">\n <ng-template pTemplate=\"item\" let-item>\n <div class=\"w-full relative cursor-pointer\" (click)=\"execute(item)\">\n <img [src]=\"item.icon\" width=\"100%\">\n <div *ngIf=\"item.label != null\" class=\"absolute inset-0 grid grid-nogutter items-center justify-center flex-col\">\n <div class=\"text-center font-medium my-auto pt-2 select-none text-black text-xs\">{{ item.label }}</div>\n </div>\n </div>\n </ng-template>\n </p-dock>\n</ng-container>", components: [{ type: i2$4.Dock, selector: "p-dock", inputs: ["id", "style", "styleClass", "model", "position"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] });
|
|
14893
14922
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDockComponent, decorators: [{
|
|
14894
14923
|
type: Component,
|
|
14895
14924
|
args: [{ selector: 'smz-ui-dock', template: "<ng-container *ngIf=\"dockService.dockItems != null\">\n <p-dock [model]=\"dockService.dockItems\" position=\"bottom\" [ngClass]=\"{ 'hidden': dockService.dockItems.length === 0}\">\n <ng-template pTemplate=\"item\" let-item>\n <div class=\"w-full relative cursor-pointer\" (click)=\"execute(item)\">\n <img [src]=\"item.icon\" width=\"100%\">\n <div *ngIf=\"item.label != null\" class=\"absolute inset-0 grid grid-nogutter items-center justify-center flex-col\">\n <div class=\"text-center font-medium my-auto pt-2 select-none text-black text-xs\">{{ item.label }}</div>\n </div>\n </div>\n </ng-template>\n </p-dock>\n</ng-container>" }]
|
|
@@ -15689,7 +15718,7 @@ let HephaestusSidebarComponent = class HephaestusSidebarComponent {
|
|
|
15689
15718
|
}
|
|
15690
15719
|
};
|
|
15691
15720
|
HephaestusSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HephaestusSidebarComponent, deps: [{ token: NgxRbkUtilsConfig }, { token: SmzLayoutsConfig }, { token: i1$5.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
15692
|
-
HephaestusSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: HephaestusSidebarComponent, selector: "smz-ui-hephaestus-sidebar", inputs: { menu: "menu" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\n<ng-container *ngIf=\"appName$ | async as appName\">\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\n\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\n\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\n\n <!-- LOGO EM FORMATO DE ICONE -->\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\n <a class=\"logo\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\">\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\n <span class=\"app-name\">{{ appName }}</span>\n </a>\n </ng-container>\n\n <!-- LOGO COMPLETA -->\n <ng-template #elseHeaderTemplate>\n <a class=\"logo\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\">\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\n </a>\n </ng-template>\n\n </ng-container>\n\n <!-- INICIO DO MENU -->\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n\n <!-- N\u00CDVEL 1 -->\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\n\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\n <div class=\"layout-menuitem-root-text\">{{ item.label }}</div>\n\n <!-- ITENS PARA O MENU COLAPSADO -->\n <a *ngIf=\"item.command == null && item.routerLink == null\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\n <i class=\"layout-menuitem-icon pi\" [ngClass]=\"item.icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\n <span class=\"p-ink\"></span>\n </a>\n\n <a *ngIf=\"item.command != null || item.routerLink != null\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\n <i class=\"layout-menuitem-icon pi\" [ngClass]=\"item.icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\n <span class=\"p-ink\"></span>\n </a>\n\n <ng-container *ngIf=\"item.expanded\">\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\n </ng-container>\n\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\n\n </li>\n\n <li *ngIf=\"!last\" class=\"menu-separator\"></li>\n </ng-container>\n\n </ul>\n </div>\n </div>\n\n</ng-container>\n</ng-container>\n</ng-container>\n\n<!-- <ng-container *ngTemplateOutlet=\"headerExtrasTemplate\"></ng-container> -->", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"], components: [{ type: HephaestusMenuSlimNodeComponent, selector: "[smz-ui-hephaestus-menu-slim-node]", inputs: ["item", "parent", "index", "currentUrl"] }, { type: HephaestusMenuNodeComponent, selector: "smz-ui-hephaestus-menu-node", inputs: ["item", "index", "currentUrl"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$
|
|
15721
|
+
HephaestusSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: HephaestusSidebarComponent, selector: "smz-ui-hephaestus-sidebar", inputs: { menu: "menu" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\n<ng-container *ngIf=\"appName$ | async as appName\">\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\n\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\n\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\n\n <!-- LOGO EM FORMATO DE ICONE -->\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\n <a class=\"logo\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\">\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\n <span class=\"app-name\">{{ appName }}</span>\n </a>\n </ng-container>\n\n <!-- LOGO COMPLETA -->\n <ng-template #elseHeaderTemplate>\n <a class=\"logo\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\">\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\n </a>\n </ng-template>\n\n </ng-container>\n\n <!-- INICIO DO MENU -->\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n\n <!-- N\u00CDVEL 1 -->\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\n\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\n <div class=\"layout-menuitem-root-text\">{{ item.label }}</div>\n\n <!-- ITENS PARA O MENU COLAPSADO -->\n <a *ngIf=\"item.command == null && item.routerLink == null\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\n <i class=\"layout-menuitem-icon pi\" [ngClass]=\"item.icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\n <span class=\"p-ink\"></span>\n </a>\n\n <a *ngIf=\"item.command != null || item.routerLink != null\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\n <i class=\"layout-menuitem-icon pi\" [ngClass]=\"item.icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\n <span class=\"p-ink\"></span>\n </a>\n\n <ng-container *ngIf=\"item.expanded\">\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\n </ng-container>\n\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\n\n </li>\n\n <li *ngIf=\"!last\" class=\"menu-separator\"></li>\n </ng-container>\n\n </ul>\n </div>\n </div>\n\n</ng-container>\n</ng-container>\n</ng-container>\n\n<!-- <ng-container *ngTemplateOutlet=\"headerExtrasTemplate\"></ng-container> -->", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"], components: [{ type: HephaestusMenuSlimNodeComponent, selector: "[smz-ui-hephaestus-menu-slim-node]", inputs: ["item", "parent", "index", "currentUrl"] }, { type: HephaestusMenuNodeComponent, selector: "smz-ui-hephaestus-menu-node", inputs: ["item", "index", "currentUrl"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$e.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: MenuItemActionsDirective, selector: "[menuItemAction]", inputs: ["item", "parent", "breadcrumbs"], outputs: ["collapse"] }], pipes: { "async": i1.AsyncPipe, "isVisible": IsVisiblePipe, "urlChecker": UrlCheckerPipe } });
|
|
15693
15722
|
__decorate([
|
|
15694
15723
|
Select(UiHephaestusSelectors.layout)
|
|
15695
15724
|
], HephaestusSidebarComponent.prototype, "layout$", void 0);
|
|
@@ -15940,7 +15969,7 @@ let HephaestusAssistanceComponent = class HephaestusAssistanceComponent {
|
|
|
15940
15969
|
}
|
|
15941
15970
|
};
|
|
15942
15971
|
HephaestusAssistanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HephaestusAssistanceComponent, deps: [{ token: SmzLayoutsConfig }, { token: i1$5.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15943
|
-
HephaestusAssistanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: HephaestusAssistanceComponent, selector: "smz-ui-hephaestus-assistance", ngImport: i0, template: "<ng-container *ngIf=\"assistance$ | async as assistance\">\n\n<a *ngIf=\"assistance.isEnabled\" id=\"layout-config-button\" class=\"layout-config-button\" [ngClass]=\"assistance.buttonPosition\" style=\"cursor: pointer;\" (click)=\"showAssistance()\"><i class=\"pi pi-cog\"></i></a>\n\n <p-sidebar [(visible)]=\"isVisible\" [position]=\"assistance.sidebarData.position\" styleClass=\"assistence_sidebar\" (onHide)=\"onHide()\" (onShow)=\"onShow()\">\n\n <div class=\"grid flex-col items-start justify-start p-2 grid-nogutter\">\n <h5>Menu</h5>\n <div class=\"grid grid-nogutter\">\n <p-selectButton [options]=\"menuTypes\" [(ngModel)]=\"menuType\" (onChange)=\"onMenuTypeChange()\" optionLabel=\"label\" optionValue=\"value\"></p-selectButton>\n\n <div class=\"col-5 mt-2 mr-2\">\n <label for=\"sidebar-width\">Sidebar Width</label>\n <input id=\"sidebar-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarWidth\" appInputChangeDetection (valueChanged)=\"setSidebarWidth($event)\"/>\n </div>\n\n <div class=\"col mt-2\">\n <label for=\"sidebar-slim-width\">Slim Width</label>\n <input id=\"sidebar-slim-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarSlimWidth\" appInputChangeDetection (valueChanged)=\"setSidebarSlimWidth($event)\"/>\n </div>\n </div>\n\n <smz-ui-global-assistance></smz-ui-global-assistance>\n </div>\n\n </p-sidebar>\n</ng-container>", styles: ["smz-ui-hephaestus-assistance .p-sidebar-content{overflow-y:auto;height:100%}smz-ui-hephaestus-assistance .assistence_sidebar{width:35em}\n"], components: [{ type: i3$6.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { type: i4$
|
|
15972
|
+
HephaestusAssistanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: HephaestusAssistanceComponent, selector: "smz-ui-hephaestus-assistance", ngImport: i0, template: "<ng-container *ngIf=\"assistance$ | async as assistance\">\n\n<a *ngIf=\"assistance.isEnabled\" id=\"layout-config-button\" class=\"layout-config-button\" [ngClass]=\"assistance.buttonPosition\" style=\"cursor: pointer;\" (click)=\"showAssistance()\"><i class=\"pi pi-cog\"></i></a>\n\n <p-sidebar [(visible)]=\"isVisible\" [position]=\"assistance.sidebarData.position\" styleClass=\"assistence_sidebar\" (onHide)=\"onHide()\" (onShow)=\"onShow()\">\n\n <div class=\"grid flex-col items-start justify-start p-2 grid-nogutter\">\n <h5>Menu</h5>\n <div class=\"grid grid-nogutter\">\n <p-selectButton [options]=\"menuTypes\" [(ngModel)]=\"menuType\" (onChange)=\"onMenuTypeChange()\" optionLabel=\"label\" optionValue=\"value\"></p-selectButton>\n\n <div class=\"col-5 mt-2 mr-2\">\n <label for=\"sidebar-width\">Sidebar Width</label>\n <input id=\"sidebar-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarWidth\" appInputChangeDetection (valueChanged)=\"setSidebarWidth($event)\"/>\n </div>\n\n <div class=\"col mt-2\">\n <label for=\"sidebar-slim-width\">Slim Width</label>\n <input id=\"sidebar-slim-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarSlimWidth\" appInputChangeDetection (valueChanged)=\"setSidebarSlimWidth($event)\"/>\n </div>\n </div>\n\n <smz-ui-global-assistance></smz-ui-global-assistance>\n </div>\n\n </p-sidebar>\n</ng-container>", styles: ["smz-ui-hephaestus-assistance .p-sidebar-content{overflow-y:auto;height:100%}smz-ui-hephaestus-assistance .assistence_sidebar{width:35em}\n"], components: [{ type: i3$6.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { type: i4$2.SelectButton, selector: "p-selectButton", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "tabindex", "multiple", "style", "styleClass", "ariaLabelledBy", "disabled", "dataKey"], outputs: ["onOptionClick", "onChange"] }, { type: GlobalAssistanceComponent, selector: "smz-ui-global-assistance" }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: InputChangeDetectionDirective, selector: "[appInputChangeDetection]", outputs: ["valueChanged"] }], pipes: { "async": i1.AsyncPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
15944
15973
|
__decorate([
|
|
15945
15974
|
Select(LayoutUiSelectors.assistance)
|
|
15946
15975
|
], HephaestusAssistanceComponent.prototype, "assistance$", void 0);
|
|
@@ -16726,12 +16755,12 @@ class UiNotificationsService extends BaseApiService {
|
|
|
16726
16755
|
return this.http.post(`${this.rbkConfig.notifications.url}/delete`, data, this.generateDefaultHeaders(this.rbkConfig.notifications.httpBehavior));
|
|
16727
16756
|
}
|
|
16728
16757
|
}
|
|
16729
|
-
UiNotificationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiNotificationsService, deps: [{ token: i1$
|
|
16758
|
+
UiNotificationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiNotificationsService, deps: [{ token: i1$d.HttpClient }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16730
16759
|
UiNotificationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiNotificationsService, providedIn: 'root' });
|
|
16731
16760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiNotificationsService, decorators: [{
|
|
16732
16761
|
type: Injectable,
|
|
16733
16762
|
args: [{ providedIn: 'root' }]
|
|
16734
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
16763
|
+
}], ctorParameters: function () { return [{ type: i1$d.HttpClient }, { type: NgxRbkUtilsConfig }]; } });
|
|
16735
16764
|
|
|
16736
16765
|
const NOTIFICATIONS_STATE_NAME = 'notifications';
|
|
16737
16766
|
const getInitialState$2 = () => ({
|
|
@@ -17417,12 +17446,12 @@ class UiDefinitionsService extends BaseApiService {
|
|
|
17417
17446
|
return this.http.get(this.rbkConfig.uiDefinitions.url, this.generateDefaultHeaders(this.rbkConfig.uiDefinitions.httpBehavior));
|
|
17418
17447
|
}
|
|
17419
17448
|
}
|
|
17420
|
-
UiDefinitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiDefinitionsService, deps: [{ token: i1$
|
|
17449
|
+
UiDefinitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiDefinitionsService, deps: [{ token: i1$d.HttpClient }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17421
17450
|
UiDefinitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiDefinitionsService, providedIn: 'root' });
|
|
17422
17451
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UiDefinitionsService, decorators: [{
|
|
17423
17452
|
type: Injectable,
|
|
17424
17453
|
args: [{ providedIn: 'root' }]
|
|
17425
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
17454
|
+
}], ctorParameters: function () { return [{ type: i1$d.HttpClient }, { type: NgxRbkUtilsConfig }]; } });
|
|
17426
17455
|
|
|
17427
17456
|
const UI_DEFINITIONS_STATE_NAME = 'uiDefinitions';
|
|
17428
17457
|
const getInitialState$1 = () => ({
|
|
@@ -18169,7 +18198,7 @@ class NotificationsListComponent {
|
|
|
18169
18198
|
}
|
|
18170
18199
|
}
|
|
18171
18200
|
NotificationsListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotificationsListComponent, deps: [{ token: NgxRbkUtilsConfig }, { token: i1$5.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
18172
|
-
NotificationsListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: NotificationsListComponent, selector: "smz-notifications-list", inputs: { notifications: "notifications" }, ngImport: i0, template: "<ng-container *ngVar=\"hasRuningRequest$ | async as hasRuningRequest\">\n\n<smz-ui-table #smzTable [items]=\"notifications | filterBy : ['status'] : currentFolder.status\" [state]=\"tableState\" [loading]=\"hasRuningRequest\" (selectionChange)=\"onSelect($event)\">\n\n <ng-template pTemplate=\"caption\" let-primeTable>\n <button *ngIf=\"rbkConfig.notifications.showRefreshButton\" pButton pRipple type=\"button\" icon=\"fas fa-sync\" pTooltip=\"Atualizar\" class=\"p-button-rounded p-button-text p-button-plain mr-3\" (click)=\"refresh()\"></button>\n <p-selectButton [options]=\"folders\" [(ngModel)]=\"currentFolder\" optionLabel=\"icon\" (onChange)=\"currentFolder.rebuild()\">\n <ng-template let-item>\n <i [ngClass]=\"item.icon\" [pTooltip]=\"item.tooltip\"></i>\n <span class=\"ml-1 text-sm\">({{ item.count$ | async }})</span>\n </ng-template>\n </p-selectButton>\n </ng-template>\n\n <!-- CONTE\u00DADOS COM OVERRIDE -->\n <ng-template pTemplate=\"content\" let-item let-col=\"col\">\n\n <ng-container [ngSwitch]=\"col.field\">\n <ng-container *ngSwitchCase=\"'searchData'\">\n\n <div class=\"grid grid-nogutter items-center justify-between\" (mouseenter)=\"item._showActions = true\" (mouseleave)=\"item._showActions = false\">\n\n <div class=\"col\">\n <smz-notification-item [item]=\"item\" [showDate]=\"!item._showActions\"></smz-notification-item>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-start gap-4 px-4 animate__animated animate__fadeIn relative\" *ngIf=\"item._showActions\">\n <i #archiveButton *ngIf=\"item.status !== status.ARCHIVED\" pTooltip=\"Arquivar\" [appendTo]=\"archiveButton\" tooltipPosition=\"bottom\" class=\"fas fa-archive p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"archive([item])\"></i>\n <i #inboxButton *ngIf=\"item.status === status.ARCHIVED\" pTooltip=\"Desarquivar\" [appendTo]=\"inboxButton\" tooltipPosition=\"bottom\" class=\"fas fa-inbox p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"moveToInbox([item])\"></i>\n\n <i #routeButton *ngIf=\"item.route != ''\" pTooltip=\"Navegar\" [appendTo]=\"routeButton\" tooltipPosition=\"bottom\" class=\"fas fa-share p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"navigate(item)\"></i>\n <i #linkButton *ngIf=\"item.link != ''\" pTooltip=\"Abrir Link\" [appendTo]=\"linkButton\" tooltipPosition=\"bottom\" class=\"fas fa-external-link-alt p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"openLink(item)\"></i>\n\n <i #trashButton pTooltip=\"Excluir\" [appendTo]=\"trashButton\" tooltipPosition=\"bottom\" class=\"fas fa-trash p-button-rounded p-button-text p-button-plain relative text-gray-500\" styleClass=\"relative\" (click)=\"remove(item)\"></i>\n </div>\n\n </div>\n\n </ng-container>\n </ng-container>\n\n </ng-template>\n\n</smz-ui-table>\n\n</ng-container>", styles: ["smz-notifications-list .database-title{font-size:1.2rem}\n"], components: [{ type: SmzTableComponent, selector: "smz-ui-table", inputs: ["state", "items", "loading"], outputs: ["selectionChange", "filterChange", "create", "update", "delete"] }, { type: i4$
|
|
18201
|
+
NotificationsListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: NotificationsListComponent, selector: "smz-notifications-list", inputs: { notifications: "notifications" }, ngImport: i0, template: "<ng-container *ngVar=\"hasRuningRequest$ | async as hasRuningRequest\">\n\n<smz-ui-table #smzTable [items]=\"notifications | filterBy : ['status'] : currentFolder.status\" [state]=\"tableState\" [loading]=\"hasRuningRequest\" (selectionChange)=\"onSelect($event)\">\n\n <ng-template pTemplate=\"caption\" let-primeTable>\n <button *ngIf=\"rbkConfig.notifications.showRefreshButton\" pButton pRipple type=\"button\" icon=\"fas fa-sync\" pTooltip=\"Atualizar\" class=\"p-button-rounded p-button-text p-button-plain mr-3\" (click)=\"refresh()\"></button>\n <p-selectButton [options]=\"folders\" [(ngModel)]=\"currentFolder\" optionLabel=\"icon\" (onChange)=\"currentFolder.rebuild()\">\n <ng-template let-item>\n <i [ngClass]=\"item.icon\" [pTooltip]=\"item.tooltip\"></i>\n <span class=\"ml-1 text-sm\">({{ item.count$ | async }})</span>\n </ng-template>\n </p-selectButton>\n </ng-template>\n\n <!-- CONTE\u00DADOS COM OVERRIDE -->\n <ng-template pTemplate=\"content\" let-item let-col=\"col\">\n\n <ng-container [ngSwitch]=\"col.field\">\n <ng-container *ngSwitchCase=\"'searchData'\">\n\n <div class=\"grid grid-nogutter items-center justify-between\" (mouseenter)=\"item._showActions = true\" (mouseleave)=\"item._showActions = false\">\n\n <div class=\"col\">\n <smz-notification-item [item]=\"item\" [showDate]=\"!item._showActions\"></smz-notification-item>\n </div>\n\n <div class=\"grid grid-nogutter items-center justify-start gap-4 px-4 animate__animated animate__fadeIn relative\" *ngIf=\"item._showActions\">\n <i #archiveButton *ngIf=\"item.status !== status.ARCHIVED\" pTooltip=\"Arquivar\" [appendTo]=\"archiveButton\" tooltipPosition=\"bottom\" class=\"fas fa-archive p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"archive([item])\"></i>\n <i #inboxButton *ngIf=\"item.status === status.ARCHIVED\" pTooltip=\"Desarquivar\" [appendTo]=\"inboxButton\" tooltipPosition=\"bottom\" class=\"fas fa-inbox p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"moveToInbox([item])\"></i>\n\n <i #routeButton *ngIf=\"item.route != ''\" pTooltip=\"Navegar\" [appendTo]=\"routeButton\" tooltipPosition=\"bottom\" class=\"fas fa-share p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"navigate(item)\"></i>\n <i #linkButton *ngIf=\"item.link != ''\" pTooltip=\"Abrir Link\" [appendTo]=\"linkButton\" tooltipPosition=\"bottom\" class=\"fas fa-external-link-alt p-button-rounded p-button-text p-button-plain relative text-gray-500\" (click)=\"openLink(item)\"></i>\n\n <i #trashButton pTooltip=\"Excluir\" [appendTo]=\"trashButton\" tooltipPosition=\"bottom\" class=\"fas fa-trash p-button-rounded p-button-text p-button-plain relative text-gray-500\" styleClass=\"relative\" (click)=\"remove(item)\"></i>\n </div>\n\n </div>\n\n </ng-container>\n </ng-container>\n\n </ng-template>\n\n</smz-ui-table>\n\n</ng-container>", styles: ["smz-notifications-list .database-title{font-size:1.2rem}\n"], components: [{ type: SmzTableComponent, selector: "smz-ui-table", inputs: ["state", "items", "loading"], outputs: ["selectionChange", "filterChange", "create", "update", "delete"] }, { type: i4$2.SelectButton, selector: "p-selectButton", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "tabindex", "multiple", "style", "styleClass", "ariaLabelledBy", "disabled", "dataKey"], outputs: ["onOptionClick", "onChange"] }, { type: NotificationItemComponent, selector: "smz-notification-item", inputs: ["item", "charactersLimit", "showDate"] }], directives: [{ type: NgVarDirective, selector: "[ngVar]", inputs: ["ngVar"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i1.AsyncPipe, "filterBy": i3$7.FilterByPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
18173
18202
|
__decorate([
|
|
18174
18203
|
Select(NotificationsUiSelectors.hasRuningRequest)
|
|
18175
18204
|
], NotificationsListComponent.prototype, "hasRuningRequest$", void 0);
|
|
@@ -18586,7 +18615,7 @@ let AthenaTopbarComponent = class AthenaTopbarComponent {
|
|
|
18586
18615
|
}
|
|
18587
18616
|
};
|
|
18588
18617
|
AthenaTopbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AthenaTopbarComponent, deps: [{ token: NgxRbkUtilsConfig }, { token: SmzLayoutsConfig }, { token: i1$5.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
18589
|
-
AthenaTopbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AthenaTopbarComponent, selector: "smz-ui-athena-topbar", inputs: { notifications: "notifications", profile: "profile" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\n\n <div class=\"topbar clearfix\">\n\n <div class=\"w-full h-full grid grid-nogutter items-center justify-start flex-nowrap\" smz-ui-athena-topbar-actions [headerExtrasTemplate]=\"headerExtrasTemplate\" [profile]=\"profile\" [notifications]=\"notifications\">\n\n <a class=\"topbar-logo col\">\n <ng-container *ngIf=\"(appLogo$ | async) as appLogo\">\n <img routerlink=\"/\" [src]=\"appLogo.horizontal\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" class=\"logo\"\n style=\"outline: none; cursor: pointer;\" tabindex=\"0\">\n </ng-container>\n </a>\n\n <a id=\"menu-button\" class=\"clickable\" (click)=\"toggle()\">\n <i class=\"pi pi-align-left\"></i>\n </a>\n\n <!-- <a *ngIf=\"layout.menu === horizontalMenuType\" class=\"clickable\" (click)=\"toggle()\">\n <i class=\"pi pi-align-left text-red\"></i>\n </a> -->\n </div>\n\n </div>\n\n</ng-container>", styles: [""], components: [{ type: AthenaTopbarActionsComponent, selector: "[smz-ui-athena-topbar-actions]", inputs: ["profile", "notifications", "headerExtrasTemplate"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$
|
|
18618
|
+
AthenaTopbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AthenaTopbarComponent, selector: "smz-ui-athena-topbar", inputs: { notifications: "notifications", profile: "profile" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\n\n <div class=\"topbar clearfix\">\n\n <div class=\"w-full h-full grid grid-nogutter items-center justify-start flex-nowrap\" smz-ui-athena-topbar-actions [headerExtrasTemplate]=\"headerExtrasTemplate\" [profile]=\"profile\" [notifications]=\"notifications\">\n\n <a class=\"topbar-logo col\">\n <ng-container *ngIf=\"(appLogo$ | async) as appLogo\">\n <img routerlink=\"/\" [src]=\"appLogo.horizontal\" [routerLink]=\"rbkConfig.authentication.authenticatedRoot\" class=\"logo\"\n style=\"outline: none; cursor: pointer;\" tabindex=\"0\">\n </ng-container>\n </a>\n\n <a id=\"menu-button\" class=\"clickable\" (click)=\"toggle()\">\n <i class=\"pi pi-align-left\"></i>\n </a>\n\n <!-- <a *ngIf=\"layout.menu === horizontalMenuType\" class=\"clickable\" (click)=\"toggle()\">\n <i class=\"pi pi-align-left text-red\"></i>\n </a> -->\n </div>\n\n </div>\n\n</ng-container>", styles: [""], components: [{ type: AthenaTopbarActionsComponent, selector: "[smz-ui-athena-topbar-actions]", inputs: ["profile", "notifications", "headerExtrasTemplate"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$e.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "async": i1.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18590
18619
|
__decorate([
|
|
18591
18620
|
Select(LayoutUiSelectors.topbarTitle)
|
|
18592
18621
|
], AthenaTopbarComponent.prototype, "topbarTitle$", void 0);
|
|
@@ -18930,7 +18959,7 @@ let AthenaAssistanceComponent = class AthenaAssistanceComponent {
|
|
|
18930
18959
|
}
|
|
18931
18960
|
};
|
|
18932
18961
|
AthenaAssistanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AthenaAssistanceComponent, deps: [{ token: SmzLayoutsConfig }, { token: i1$5.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
18933
|
-
AthenaAssistanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AthenaAssistanceComponent, selector: "smz-ui-athena-assistance", ngImport: i0, template: "<ng-container *ngIf=\"assistance$ | async as assistance\">\n\n<div class=\"layout-config\">\n <a *ngIf=\"assistance.isEnabled\" id=\"layout-config-button\" class=\"layout-config-button\" [ngClass]=\"assistance.buttonPosition\" style=\"cursor: pointer;\" (click)=\"showAssistance()\"><i class=\"pi pi-cog\"></i></a>\n</div>\n\n <p-sidebar [(visible)]=\"isVisible\" [position]=\"assistance.sidebarData.position\" styleClass=\"assistence_sidebar\" (onHide)=\"onHide()\" (onShow)=\"onShow()\">\n\n <div class=\"grid flex-col items-start justify-start p-2 grid-nogutter\">\n <h5>Menu</h5>\n <div class=\"grid grid-nogutter gap-2\">\n <p-selectButton [options]=\"menuTypes\" [(ngModel)]=\"menuType\" (onChange)=\"onMenuTypeChange()\" optionLabel=\"label\" optionValue=\"value\"></p-selectButton>\n\n <div class=\"col-5 mt-2 mr-2\">\n <label for=\"sidebar-width\">Sidebar Width</label>\n <input id=\"sidebar-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarWidth\" appInputChangeDetection (valueChanged)=\"setSidebarWidth($event)\"/>\n </div>\n\n <div class=\"col mt-2\">\n <label for=\"sidebar-slim-width\">Slim Width</label>\n <input id=\"sidebar-slim-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarSlimWidth\" appInputChangeDetection (valueChanged)=\"setSidebarSlimWidth($event)\"/>\n </div>\n </div>\n\n <smz-ui-global-assistance></smz-ui-global-assistance>\n </div>\n\n </p-sidebar>\n</ng-container>", styles: ["smz-ui-athena-assistance .p-sidebar-content{overflow-y:auto;height:100%}smz-ui-athena-assistance .assistence_sidebar{width:35em}\n"], components: [{ type: i3$6.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { type: i4$
|
|
18962
|
+
AthenaAssistanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AthenaAssistanceComponent, selector: "smz-ui-athena-assistance", ngImport: i0, template: "<ng-container *ngIf=\"assistance$ | async as assistance\">\n\n<div class=\"layout-config\">\n <a *ngIf=\"assistance.isEnabled\" id=\"layout-config-button\" class=\"layout-config-button\" [ngClass]=\"assistance.buttonPosition\" style=\"cursor: pointer;\" (click)=\"showAssistance()\"><i class=\"pi pi-cog\"></i></a>\n</div>\n\n <p-sidebar [(visible)]=\"isVisible\" [position]=\"assistance.sidebarData.position\" styleClass=\"assistence_sidebar\" (onHide)=\"onHide()\" (onShow)=\"onShow()\">\n\n <div class=\"grid flex-col items-start justify-start p-2 grid-nogutter\">\n <h5>Menu</h5>\n <div class=\"grid grid-nogutter gap-2\">\n <p-selectButton [options]=\"menuTypes\" [(ngModel)]=\"menuType\" (onChange)=\"onMenuTypeChange()\" optionLabel=\"label\" optionValue=\"value\"></p-selectButton>\n\n <div class=\"col-5 mt-2 mr-2\">\n <label for=\"sidebar-width\">Sidebar Width</label>\n <input id=\"sidebar-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarWidth\" appInputChangeDetection (valueChanged)=\"setSidebarWidth($event)\"/>\n </div>\n\n <div class=\"col mt-2\">\n <label for=\"sidebar-slim-width\">Slim Width</label>\n <input id=\"sidebar-slim-width\" type=\"text\" pInputText [(ngModel)]=\"layout.sidebarSlimWidth\" appInputChangeDetection (valueChanged)=\"setSidebarSlimWidth($event)\"/>\n </div>\n </div>\n\n <smz-ui-global-assistance></smz-ui-global-assistance>\n </div>\n\n </p-sidebar>\n</ng-container>", styles: ["smz-ui-athena-assistance .p-sidebar-content{overflow-y:auto;height:100%}smz-ui-athena-assistance .assistence_sidebar{width:35em}\n"], components: [{ type: i3$6.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { type: i4$2.SelectButton, selector: "p-selectButton", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "tabindex", "multiple", "style", "styleClass", "ariaLabelledBy", "disabled", "dataKey"], outputs: ["onOptionClick", "onChange"] }, { type: GlobalAssistanceComponent, selector: "smz-ui-global-assistance" }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.InputText, selector: "[pInputText]" }, { type: InputChangeDetectionDirective, selector: "[appInputChangeDetection]", outputs: ["valueChanged"] }], pipes: { "async": i1.AsyncPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
18934
18963
|
__decorate([
|
|
18935
18964
|
Select(LayoutUiSelectors.assistance)
|
|
18936
18965
|
], AthenaAssistanceComponent.prototype, "assistance$", void 0);
|
|
@@ -19720,7 +19749,7 @@ class SmzTreeComponent {
|
|
|
19720
19749
|
}
|
|
19721
19750
|
}
|
|
19722
19751
|
SmzTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzTreeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
19723
|
-
SmzTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzTreeComponent, selector: "smz-ui-tree", inputs: { state: "state", items: "items", loading: "loading", styleClass: "styleClass", inlineStyle: "inlineStyle", appendTo: "appendTo" }, outputs: { selectionChange: "selectionChange", parentChange: "parentChange", reorder: "reorder", blockedDrop: "blockedDrop", nodeExpanded: "nodeExpanded", nodeCollapsed: "nodeCollapsed", treeExpanded: "treeExpanded", nodeDropped: "nodeDropped" }, providers: [TreeDragDropService], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"state; else noStateTemplate\">\n\n <!-- <ng-container\n *ngIf=\"(state.emptyFeedback != null && (state.emptyFeedback.extraInfo || state.emptyFeedback.image || state.emptyFeedback.actionButton)) && (items != null && items.length === 0); else treeTemplate\">\n <smz-data-info\n [image]=\"context.state.emptyFeedback.image\"\n [message]=\"context.state.emptyFeedback.message\"\n [callbackInfo]=\"context.state.emptyFeedback.extraInfo\"\n [callbackLabel]=\"context.state.emptyFeedback.actionButton?.label\"\n (clicked)=\"context.state.emptyFeedback.actionButton?.callback()\">\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 #treeTemplate> -->\n\n <ng-container *ngIf=\"items != null\">\n <p-contextMenu #cm [model]=\"menuItems\" [appendTo]=\"appendTo\" [styleClass]=\"menuItems == null || menuItems?.length === 0 ? 'invisible-important' : ''\"></p-contextMenu>\n <p-tree #dt [value]=\"items\"\n scrollHeight=\"flex\"\n [contextMenu]=\"cm\"\n [selectionMode]=\"state.selection.mode\"\n [(selection)]=\"selection\"\n layout=\"vertical\"\n [style]=\"inlineStyle\"\n [styleClass]=\"styleClass\"\n [propagateSelectionUp]=\"state.selection.propagateUp\"\n [propagateSelectionDown]=\"state.selection.propagateDown\"\n [loading]=\"state.loading.isLoading\"\n [loadingIcon]=\"state.loading.icon\"\n [filter]=\"false\"\n [filterMode]=\"state.filter.mode\"\n [filterPlaceholder]=\"state.filter.textPlaceholder\"\n [draggableNodes]=\"state.dragAndDrop.draggable\"\n [droppableNodes]=\"state.dragAndDrop.droppable\"\n [validateDrop]=\"state.dragAndDrop.validateDrop\"\n (onNodeContextMenuSelect)=\"onContextMenuOpen($event)\"\n (onNodeSelect)=\"onSelected($event)\"\n (onNodeUnselect)=\"onUnselected($event)\"\n (onNodeExpand)=\"onExpanded($event)\"\n (onNodeCollapse)=\"onCollapsed($event)\"\n (onNodeDrop)=\"onDropped($event)\"\n (onFilter)=\"onFiltered($event)\">\n\n <ng-template pTemplate=\"header\" *ngIf=\"state.header.isVisible\">\n\n <ng-container *ngIf=\"state.header.toolbar as toolbar\">\n <div class=\"grid grid-nogutter justify-start items-center mb-2 gap-2\">\n <h3 *ngIf=\"state.header.title != null\" class=\"m-2 col\">{{state.header.title}}</h3>\n <div class=\"grid grid-nogutter justify-start items-center gap-2\">\n <ng-container *ngFor=\"let button of state.header.toolbar.items; let i=index\">\n <button\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': button.color === 'secondary', 'p-button-success': button.color === 'success', 'p-button-info': button.color === 'info', 'p-button-warning': button.color === 'warning', 'p-button-help': button.color === 'help', 'p-button-danger': button.color === 'danger' }\"\n [label]=\"button.label\"\n [icon]=\"button.icon\"\n (click)=\"onToolbarButtonClick($event, button)\"\n [pTooltip]=\"button.tooltip\"></button>\n </ng-container>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-down\"\n (click)=\"expandNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.expandTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-up\"\n (click)=\"collapseNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.collapseTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-double-down\"\n (click)=\"expandAll()\"\n [pTooltip]=\"\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-double-up\"\n (click)=\"collapseAll()\"\n [pTooltip]=\"\">\n </button>\n\n </div>\n <span *ngIf=\"state.filter.show\" class=\"p-input-icon-left col col-12 md:col-4\">\n <i class=\"pi pi-search\"></i>\n <input #inputGlobal pInputText type=\"text\" (input)=\"dt._filter(inputGlobal.value)\" [placeholder]=\"state.filter.textPlaceholder\" />\n </span>\n </div>\n\n <div *ngIf=\"toolbarTemplate != null\" class=\"grid grid-nogutter items-center mt-2\"\n [ngClass]=\"'justify-' + state.header.toolbar.alignment\">\n <ng-container *ngTemplateOutlet=\"toolbarTemplate; context: { $implicit: dt }\"></ng-container>\n </div>\n </ng-container>\n\n </ng-template>\n\n <ng-template pTemplate=\"footer\" *ngIf=\"state.footer.isVisible\">\n <div class=\"grid grid-nogutter justify-start items-center\">\n <span class=\"col mr-2\">FOOTER</span>\n </div>\n </ng-template>\n\n <ng-container *ngFor=\"let content of contentTemplates\">\n <ng-template let-node [pTemplate]=\"content.type\">\n <ng-container *ngTemplateOutlet=\"content.template; context: { $implicit: node }\"></ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template pTemplate=\"empty\">\n <tr>\n <!-- <td [attr.colspan]=\"context.columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\"\n [ngStyle]=\"{ 'text-align': 'center' }\">{{ context.state.emptyFeedback.message }}</td> -->\n </tr>\n </ng-template>\n </p-tree>\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: i1$g.ContextMenu, selector: "p-contextMenu", inputs: ["model", "global", "target", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "triggerEvent"], outputs: ["onShow", "onHide"] }, { type: i2$4.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "scrollHeight", "virtualScroll", "virtualNodeHeight", "minBufferPx", "maxBufferPx", "indentation", "trackBy"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onFilter"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i4.InputText, selector: "[pInputText]" }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19752
|
+
SmzTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzTreeComponent, selector: "smz-ui-tree", inputs: { state: "state", items: "items", loading: "loading", styleClass: "styleClass", inlineStyle: "inlineStyle", appendTo: "appendTo" }, outputs: { selectionChange: "selectionChange", parentChange: "parentChange", reorder: "reorder", blockedDrop: "blockedDrop", nodeExpanded: "nodeExpanded", nodeCollapsed: "nodeCollapsed", treeExpanded: "treeExpanded", nodeDropped: "nodeDropped" }, providers: [TreeDragDropService], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"state; else noStateTemplate\">\n\n <!-- <ng-container\n *ngIf=\"(state.emptyFeedback != null && (state.emptyFeedback.extraInfo || state.emptyFeedback.image || state.emptyFeedback.actionButton)) && (items != null && items.length === 0); else treeTemplate\">\n <smz-data-info\n [image]=\"context.state.emptyFeedback.image\"\n [message]=\"context.state.emptyFeedback.message\"\n [callbackInfo]=\"context.state.emptyFeedback.extraInfo\"\n [callbackLabel]=\"context.state.emptyFeedback.actionButton?.label\"\n (clicked)=\"context.state.emptyFeedback.actionButton?.callback()\">\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 #treeTemplate> -->\n\n <ng-container *ngIf=\"items != null\">\n <p-contextMenu #cm [model]=\"menuItems\" [appendTo]=\"appendTo\" [styleClass]=\"menuItems == null || menuItems?.length === 0 ? 'invisible-important' : ''\"></p-contextMenu>\n <p-tree #dt [value]=\"items\"\n scrollHeight=\"flex\"\n [contextMenu]=\"cm\"\n [selectionMode]=\"state.selection.mode\"\n [(selection)]=\"selection\"\n layout=\"vertical\"\n [style]=\"inlineStyle\"\n [styleClass]=\"styleClass\"\n [propagateSelectionUp]=\"state.selection.propagateUp\"\n [propagateSelectionDown]=\"state.selection.propagateDown\"\n [loading]=\"state.loading.isLoading\"\n [loadingIcon]=\"state.loading.icon\"\n [filter]=\"false\"\n [filterMode]=\"state.filter.mode\"\n [filterPlaceholder]=\"state.filter.textPlaceholder\"\n [draggableNodes]=\"state.dragAndDrop.draggable\"\n [droppableNodes]=\"state.dragAndDrop.droppable\"\n [validateDrop]=\"state.dragAndDrop.validateDrop\"\n (onNodeContextMenuSelect)=\"onContextMenuOpen($event)\"\n (onNodeSelect)=\"onSelected($event)\"\n (onNodeUnselect)=\"onUnselected($event)\"\n (onNodeExpand)=\"onExpanded($event)\"\n (onNodeCollapse)=\"onCollapsed($event)\"\n (onNodeDrop)=\"onDropped($event)\"\n (onFilter)=\"onFiltered($event)\">\n\n <ng-template pTemplate=\"header\" *ngIf=\"state.header.isVisible\">\n\n <ng-container *ngIf=\"state.header.toolbar as toolbar\">\n <div class=\"grid grid-nogutter justify-start items-center mb-2 gap-2\">\n <h3 *ngIf=\"state.header.title != null\" class=\"m-2 col\">{{state.header.title}}</h3>\n <div class=\"grid grid-nogutter justify-start items-center gap-2\">\n <ng-container *ngFor=\"let button of state.header.toolbar.items; let i=index\">\n <button\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': button.color === 'secondary', 'p-button-success': button.color === 'success', 'p-button-info': button.color === 'info', 'p-button-warning': button.color === 'warning', 'p-button-help': button.color === 'help', 'p-button-danger': button.color === 'danger' }\"\n [label]=\"button.label\"\n [icon]=\"button.icon\"\n (click)=\"onToolbarButtonClick($event, button)\"\n [pTooltip]=\"button.tooltip\"></button>\n </ng-container>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-down\"\n (click)=\"expandNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.expandTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-up\"\n (click)=\"collapseNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.collapseTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-double-down\"\n (click)=\"expandAll()\"\n [pTooltip]=\"\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-double-up\"\n (click)=\"collapseAll()\"\n [pTooltip]=\"\">\n </button>\n\n </div>\n <span *ngIf=\"state.filter.show\" class=\"p-input-icon-left col col-12 md:col-4\">\n <i class=\"pi pi-search\"></i>\n <input #inputGlobal pInputText type=\"text\" (input)=\"dt._filter(inputGlobal.value)\" [placeholder]=\"state.filter.textPlaceholder\" />\n </span>\n </div>\n\n <div *ngIf=\"toolbarTemplate != null\" class=\"grid grid-nogutter items-center mt-2\"\n [ngClass]=\"'justify-' + state.header.toolbar.alignment\">\n <ng-container *ngTemplateOutlet=\"toolbarTemplate; context: { $implicit: dt }\"></ng-container>\n </div>\n </ng-container>\n\n </ng-template>\n\n <ng-template pTemplate=\"footer\" *ngIf=\"state.footer.isVisible\">\n <div class=\"grid grid-nogutter justify-start items-center\">\n <span class=\"col mr-2\">FOOTER</span>\n </div>\n </ng-template>\n\n <ng-container *ngFor=\"let content of contentTemplates\">\n <ng-template let-node [pTemplate]=\"content.type\">\n <ng-container *ngTemplateOutlet=\"content.template; context: { $implicit: node }\"></ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template pTemplate=\"empty\">\n <tr>\n <!-- <td [attr.colspan]=\"context.columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\"\n [ngStyle]=\"{ 'text-align': 'center' }\">{{ context.state.emptyFeedback.message }}</td> -->\n </tr>\n </ng-template>\n </p-tree>\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: i1$f.ContextMenu, selector: "p-contextMenu", inputs: ["model", "global", "target", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "triggerEvent"], outputs: ["onShow", "onHide"] }, { type: i2$5.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "scrollHeight", "virtualScroll", "virtualNodeHeight", "minBufferPx", "maxBufferPx", "indentation", "trackBy"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onFilter"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i4.InputText, selector: "[pInputText]" }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19724
19753
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzTreeComponent, decorators: [{
|
|
19725
19754
|
type: Component,
|
|
19726
19755
|
args: [{ selector: 'smz-ui-tree', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TreeDragDropService], template: "<ng-container *ngIf=\"state; else noStateTemplate\">\n\n <!-- <ng-container\n *ngIf=\"(state.emptyFeedback != null && (state.emptyFeedback.extraInfo || state.emptyFeedback.image || state.emptyFeedback.actionButton)) && (items != null && items.length === 0); else treeTemplate\">\n <smz-data-info\n [image]=\"context.state.emptyFeedback.image\"\n [message]=\"context.state.emptyFeedback.message\"\n [callbackInfo]=\"context.state.emptyFeedback.extraInfo\"\n [callbackLabel]=\"context.state.emptyFeedback.actionButton?.label\"\n (clicked)=\"context.state.emptyFeedback.actionButton?.callback()\">\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 #treeTemplate> -->\n\n <ng-container *ngIf=\"items != null\">\n <p-contextMenu #cm [model]=\"menuItems\" [appendTo]=\"appendTo\" [styleClass]=\"menuItems == null || menuItems?.length === 0 ? 'invisible-important' : ''\"></p-contextMenu>\n <p-tree #dt [value]=\"items\"\n scrollHeight=\"flex\"\n [contextMenu]=\"cm\"\n [selectionMode]=\"state.selection.mode\"\n [(selection)]=\"selection\"\n layout=\"vertical\"\n [style]=\"inlineStyle\"\n [styleClass]=\"styleClass\"\n [propagateSelectionUp]=\"state.selection.propagateUp\"\n [propagateSelectionDown]=\"state.selection.propagateDown\"\n [loading]=\"state.loading.isLoading\"\n [loadingIcon]=\"state.loading.icon\"\n [filter]=\"false\"\n [filterMode]=\"state.filter.mode\"\n [filterPlaceholder]=\"state.filter.textPlaceholder\"\n [draggableNodes]=\"state.dragAndDrop.draggable\"\n [droppableNodes]=\"state.dragAndDrop.droppable\"\n [validateDrop]=\"state.dragAndDrop.validateDrop\"\n (onNodeContextMenuSelect)=\"onContextMenuOpen($event)\"\n (onNodeSelect)=\"onSelected($event)\"\n (onNodeUnselect)=\"onUnselected($event)\"\n (onNodeExpand)=\"onExpanded($event)\"\n (onNodeCollapse)=\"onCollapsed($event)\"\n (onNodeDrop)=\"onDropped($event)\"\n (onFilter)=\"onFiltered($event)\">\n\n <ng-template pTemplate=\"header\" *ngIf=\"state.header.isVisible\">\n\n <ng-container *ngIf=\"state.header.toolbar as toolbar\">\n <div class=\"grid grid-nogutter justify-start items-center mb-2 gap-2\">\n <h3 *ngIf=\"state.header.title != null\" class=\"m-2 col\">{{state.header.title}}</h3>\n <div class=\"grid grid-nogutter justify-start items-center gap-2\">\n <ng-container *ngFor=\"let button of state.header.toolbar.items; let i=index\">\n <button\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': button.color === 'secondary', 'p-button-success': button.color === 'success', 'p-button-info': button.color === 'info', 'p-button-warning': button.color === 'warning', 'p-button-help': button.color === 'help', 'p-button-danger': button.color === 'danger' }\"\n [label]=\"button.label\"\n [icon]=\"button.icon\"\n (click)=\"onToolbarButtonClick($event, button)\"\n [pTooltip]=\"button.tooltip\"></button>\n </ng-container>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-down\"\n (click)=\"expandNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.expandTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.nodeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.nodeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-up\"\n (click)=\"collapseNode()\"\n [pTooltip]=\"selection != null ? toolbar.nodeExpandButtons.collapseTooltip : toolbar.nodeExpandButtons.disabledTooltip\"\n [disabled]=\"selection == null\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.expandLabel\"\n icon=\"fas fa-angle-double-down\"\n (click)=\"expandAll()\"\n [pTooltip]=\"\">\n </button>\n\n <button\n *ngIf=\"toolbar.treeExpandButtons.isVisible === true\"\n pButton\n pRipple\n type=\"button\"\n [ngClass]=\"{ 'p-button-text': toolbar.buttonType.endsWith('borderless'), 'p-button-outlined': toolbar.buttonType.endsWith('outlined'), 'p-button-rounded': toolbar.buttonType.startsWith('rounded'), 'p-button-secondary': true }\"\n [label]=\"toolbar.treeExpandButtons.collapseLabel\"\n icon=\"fas fa-angle-double-up\"\n (click)=\"collapseAll()\"\n [pTooltip]=\"\">\n </button>\n\n </div>\n <span *ngIf=\"state.filter.show\" class=\"p-input-icon-left col col-12 md:col-4\">\n <i class=\"pi pi-search\"></i>\n <input #inputGlobal pInputText type=\"text\" (input)=\"dt._filter(inputGlobal.value)\" [placeholder]=\"state.filter.textPlaceholder\" />\n </span>\n </div>\n\n <div *ngIf=\"toolbarTemplate != null\" class=\"grid grid-nogutter items-center mt-2\"\n [ngClass]=\"'justify-' + state.header.toolbar.alignment\">\n <ng-container *ngTemplateOutlet=\"toolbarTemplate; context: { $implicit: dt }\"></ng-container>\n </div>\n </ng-container>\n\n </ng-template>\n\n <ng-template pTemplate=\"footer\" *ngIf=\"state.footer.isVisible\">\n <div class=\"grid grid-nogutter justify-start items-center\">\n <span class=\"col mr-2\">FOOTER</span>\n </div>\n </ng-template>\n\n <ng-container *ngFor=\"let content of contentTemplates\">\n <ng-template let-node [pTemplate]=\"content.type\">\n <ng-container *ngTemplateOutlet=\"content.template; context: { $implicit: node }\"></ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template pTemplate=\"empty\">\n <tr>\n <!-- <td [attr.colspan]=\"context.columns.length + ((context.state.actions.menu.isVisible || context.state.actions.customActions.isVisible) ? 1 : 0) + (context.state.caption.rowSelection.isEnabled ? 1 : 0)\"\n [ngStyle]=\"{ 'text-align': 'center' }\">{{ context.state.emptyFeedback.message }}</td> -->\n </tr>\n </ng-template>\n </p-tree>\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>" }]
|
|
@@ -20967,11 +20996,11 @@ class TitleService {
|
|
|
20967
20996
|
});
|
|
20968
20997
|
}
|
|
20969
20998
|
}
|
|
20970
|
-
TitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService, deps: [{ token: i1$
|
|
20999
|
+
TitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService, deps: [{ token: i1$e.Router }, { token: i1$e.ActivatedRoute }, { token: i1$a.Title }, { token: BreadcrumbService }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20971
21000
|
TitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService });
|
|
20972
21001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService, decorators: [{
|
|
20973
21002
|
type: Injectable
|
|
20974
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
21003
|
+
}], ctorParameters: function () { return [{ type: i1$e.Router }, { type: i1$e.ActivatedRoute }, { type: i1$a.Title }, { type: BreadcrumbService }, { type: NgxRbkUtilsConfig }]; } });
|
|
20975
21004
|
|
|
20976
21005
|
const DATABASE_STATES = [];
|
|
20977
21006
|
const DATABASE_REQUIRED_ACTIONS = [];
|
|
@@ -21237,11 +21266,11 @@ class HttpErrorInterceptor {
|
|
|
21237
21266
|
}
|
|
21238
21267
|
}
|
|
21239
21268
|
}
|
|
21240
|
-
HttpErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HttpErrorInterceptor, deps: [{ token: i1$5.Store }, { token: i1$
|
|
21269
|
+
HttpErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HttpErrorInterceptor, deps: [{ token: i1$5.Store }, { token: i1$e.ActivatedRoute }, { token: i1$e.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21241
21270
|
HttpErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HttpErrorInterceptor });
|
|
21242
21271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HttpErrorInterceptor, decorators: [{
|
|
21243
21272
|
type: Injectable
|
|
21244
|
-
}], ctorParameters: function () { return [{ type: i1$5.Store }, { type: i1$
|
|
21273
|
+
}], ctorParameters: function () { return [{ type: i1$5.Store }, { type: i1$e.ActivatedRoute }, { type: i1$e.Router }]; } });
|
|
21245
21274
|
|
|
21246
21275
|
class GlobalPendingInterceptorService {
|
|
21247
21276
|
constructor(store, rbkConfig) {
|
|
@@ -21443,12 +21472,12 @@ class DiagnosticsService extends BaseApiService {
|
|
|
21443
21472
|
}));
|
|
21444
21473
|
}
|
|
21445
21474
|
}
|
|
21446
|
-
DiagnosticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DiagnosticsService, deps: [{ token: i1$
|
|
21475
|
+
DiagnosticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DiagnosticsService, deps: [{ token: i1$d.HttpClient }, { token: NgxRbkUtilsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21447
21476
|
DiagnosticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DiagnosticsService, providedIn: 'root' });
|
|
21448
21477
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DiagnosticsService, decorators: [{
|
|
21449
21478
|
type: Injectable,
|
|
21450
21479
|
args: [{ providedIn: 'root' }]
|
|
21451
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
21480
|
+
}], ctorParameters: function () { return [{ type: i1$d.HttpClient }, { type: NgxRbkUtilsConfig }]; } });
|
|
21452
21481
|
|
|
21453
21482
|
class GlobalErrorHandler {
|
|
21454
21483
|
constructor(injector) {
|