@seniorsistemas/angular-components 17.13.1 → 17.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-angular-components.umd.js +998 -779
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/checkbox/checkbox.component.d.ts +16 -0
- package/components/checkbox/checkbox.module.d.ts +2 -0
- package/components/checkbox/index.d.ts +3 -0
- package/components/checkbox/models/checkbox-data.d.ts +4 -0
- package/components/checkbox/models/checkbox-state.d.ts +6 -0
- package/components/checkbox/models/index.d.ts +2 -0
- package/components/code-editor/{presentation/code-editor-component.d.ts → code-editor.component.d.ts} +11 -6
- package/components/code-editor/index.d.ts +1 -1
- package/components/dynamic-form/components/fields/base-field-component.d.ts +6 -5
- package/components/dynamic-form/components/fields/checkbox/checkbox-field.component.d.ts +7 -0
- package/components/dynamic-form/components/fields/checkbox/checkbox-field.module.d.ts +2 -0
- package/components/dynamic-form/components/fields/code-editor/code-editor-field.component.d.ts +6 -0
- package/components/dynamic-form/components/fields/code-editor/code-editor-field.module.d.ts +2 -0
- package/components/dynamic-form/components/fields/index.d.ts +1 -0
- package/components/dynamic-form/configurations/field-type.d.ts +2 -0
- package/components/dynamic-form/configurations/fields/checkbox-field.d.ts +9 -0
- package/components/dynamic-form/configurations/fields/code-editor-field.d.ts +17 -0
- package/components/dynamic-form/configurations/fields/index.d.ts +1 -0
- package/components/dynamic-form/configurations/form-field.d.ts +2 -2
- package/components/dynamic-form/index.d.ts +5 -4
- package/components/index.d.ts +1 -0
- package/esm2015/components/checkbox/checkbox.component.js +104 -0
- package/esm2015/components/checkbox/checkbox.module.js +16 -0
- package/esm2015/components/checkbox/index.js +3 -0
- package/esm2015/components/checkbox/models/checkbox-data.js +1 -0
- package/esm2015/components/checkbox/models/checkbox-state.js +1 -0
- package/esm2015/components/checkbox/models/index.js +1 -0
- package/esm2015/components/code-editor/code-editor.component.js +110 -0
- package/esm2015/components/code-editor/code-editor.module.js +24 -0
- package/esm2015/components/code-editor/index.js +2 -2
- package/esm2015/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm2015/components/dynamic-form/components/fields/checkbox/checkbox-field.component.js +17 -0
- package/esm2015/components/dynamic-form/components/fields/checkbox/checkbox-field.module.js +17 -0
- package/esm2015/components/dynamic-form/components/fields/code-editor/code-editor-field.component.js +17 -0
- package/esm2015/components/dynamic-form/components/fields/code-editor/code-editor-field.module.js +18 -0
- package/esm2015/components/dynamic-form/components/fields/index.js +2 -1
- package/esm2015/components/dynamic-form/configurations/field-type.js +3 -1
- package/esm2015/components/dynamic-form/configurations/fields/checkbox-field.js +8 -0
- package/esm2015/components/dynamic-form/configurations/fields/code-editor-field.js +12 -0
- package/esm2015/components/dynamic-form/configurations/fields/index.js +2 -1
- package/esm2015/components/dynamic-form/configurations/form-field.js +11 -6
- package/esm2015/components/dynamic-form/dynamic-form.js +8 -2
- package/esm2015/components/dynamic-form/dynamic-form.module.js +19 -33
- package/esm2015/components/dynamic-form/index.js +5 -4
- package/esm2015/components/index.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +82 -78
- package/esm5/components/checkbox/checkbox.component.js +109 -0
- package/esm5/components/checkbox/checkbox.module.js +19 -0
- package/esm5/components/checkbox/index.js +3 -0
- package/esm5/components/checkbox/models/checkbox-data.js +1 -0
- package/esm5/components/checkbox/models/checkbox-state.js +1 -0
- package/esm5/components/checkbox/models/index.js +1 -0
- package/esm5/components/code-editor/code-editor.component.js +121 -0
- package/esm5/components/code-editor/code-editor.module.js +27 -0
- package/esm5/components/code-editor/index.js +2 -2
- package/esm5/components/dynamic-form/components/fields/base-field-component.js +1 -1
- package/esm5/components/dynamic-form/components/fields/checkbox/checkbox-field.component.js +20 -0
- package/esm5/components/dynamic-form/components/fields/checkbox/checkbox-field.module.js +20 -0
- package/esm5/components/dynamic-form/components/fields/code-editor/code-editor-field.component.js +20 -0
- package/esm5/components/dynamic-form/components/fields/code-editor/code-editor-field.module.js +21 -0
- package/esm5/components/dynamic-form/components/fields/index.js +2 -1
- package/esm5/components/dynamic-form/configurations/field-type.js +3 -1
- package/esm5/components/dynamic-form/configurations/fields/checkbox-field.js +13 -0
- package/esm5/components/dynamic-form/configurations/fields/code-editor-field.js +17 -0
- package/esm5/components/dynamic-form/configurations/fields/index.js +2 -1
- package/esm5/components/dynamic-form/configurations/form-field.js +11 -6
- package/esm5/components/dynamic-form/dynamic-form.js +8 -2
- package/esm5/components/dynamic-form/dynamic-form.module.js +19 -33
- package/esm5/components/dynamic-form/index.js +5 -4
- package/esm5/components/index.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +82 -78
- package/fesm2015/seniorsistemas-angular-components.js +751 -566
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +914 -702
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +81 -77
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/esm2015/components/code-editor/presentation/code-editor-component.js +0 -91
- package/esm2015/components/code-editor/presentation/code-editor-module.js +0 -27
- package/esm5/components/code-editor/presentation/code-editor-component.js +0 -101
- package/esm5/components/code-editor/presentation/code-editor-module.js +0 -30
- /package/components/code-editor/{presentation/code-editor-module.d.ts → code-editor.module.d.ts} +0 -0
|
@@ -31,10 +31,10 @@ import { Hotkey, HotkeysService, HotkeyModule } from 'angular2-hotkeys';
|
|
|
31
31
|
import BigNumber, { BigNumber as BigNumber$1 } from 'bignumber.js';
|
|
32
32
|
import { AutoComplete, AutoCompleteModule } from 'primeng/autocomplete';
|
|
33
33
|
import { Dialog, DialogModule } from 'primeng/dialog';
|
|
34
|
-
import { Table,
|
|
34
|
+
import { Table, TableService, RowToggler, TableModule as TableModule$1 } from 'primeng/table';
|
|
35
35
|
import { CurrencyMaskDirective as CurrencyMaskDirective$1 } from 'ng2-currency-mask';
|
|
36
36
|
import { ButtonModule as ButtonModule$1 } from 'primeng/button';
|
|
37
|
-
import { CheckboxModule } from 'primeng/checkbox';
|
|
37
|
+
import { CheckboxModule as CheckboxModule$1 } from 'primeng/checkbox';
|
|
38
38
|
import { ChipsModule } from 'primeng/chips';
|
|
39
39
|
import { DropdownModule } from 'primeng/dropdown';
|
|
40
40
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
@@ -50,9 +50,9 @@ import { MessageService, ConfirmationService } from 'primeng/api';
|
|
|
50
50
|
import { ProgressBarModule as ProgressBarModule$1 } from 'primeng/progressbar';
|
|
51
51
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
52
52
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
53
|
+
import { EditorModule } from 'primeng/editor';
|
|
53
54
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
54
55
|
import Cropper from 'cropperjs';
|
|
55
|
-
import { EditorModule } from 'primeng/editor';
|
|
56
56
|
import marked from 'marked';
|
|
57
57
|
import { moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
|
|
58
58
|
import * as elementResizeDetectorMaker_ from 'element-resize-detector';
|
|
@@ -2918,6 +2918,116 @@ CardModule = __decorate([
|
|
|
2918
2918
|
})
|
|
2919
2919
|
], CardModule);
|
|
2920
2920
|
|
|
2921
|
+
var CheckboxComponent_1;
|
|
2922
|
+
let CheckboxComponent = CheckboxComponent_1 = class CheckboxComponent {
|
|
2923
|
+
constructor() {
|
|
2924
|
+
this.state = {
|
|
2925
|
+
checked: false,
|
|
2926
|
+
indeterminate: false,
|
|
2927
|
+
children: {},
|
|
2928
|
+
};
|
|
2929
|
+
this._onChange = () => { };
|
|
2930
|
+
this._onTouched = () => { };
|
|
2931
|
+
}
|
|
2932
|
+
writeValue(value) {
|
|
2933
|
+
if (value) {
|
|
2934
|
+
this.state = value;
|
|
2935
|
+
}
|
|
2936
|
+
else {
|
|
2937
|
+
this.state = {
|
|
2938
|
+
checked: false,
|
|
2939
|
+
indeterminate: false,
|
|
2940
|
+
disabled: false,
|
|
2941
|
+
children: this._initializeChildren(this.data),
|
|
2942
|
+
};
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
registerOnChange(onChange) {
|
|
2946
|
+
this._onChange = onChange;
|
|
2947
|
+
}
|
|
2948
|
+
registerOnTouched(onTouched) {
|
|
2949
|
+
this._onTouched = onTouched;
|
|
2950
|
+
}
|
|
2951
|
+
_initializeChildren(item) {
|
|
2952
|
+
const childrenState = {};
|
|
2953
|
+
if (item.children) {
|
|
2954
|
+
item.children.forEach((child) => {
|
|
2955
|
+
childrenState[child.label] = {
|
|
2956
|
+
checked: false,
|
|
2957
|
+
indeterminate: false,
|
|
2958
|
+
children: this._initializeChildren(child),
|
|
2959
|
+
};
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
return childrenState;
|
|
2963
|
+
}
|
|
2964
|
+
updateParent() {
|
|
2965
|
+
if (this.data.children && this.data.children.length > 0) {
|
|
2966
|
+
const allChecked = this.data.children.every((child) => { var _a; return (_a = this.state.children[child.label]) === null || _a === void 0 ? void 0 : _a.checked; });
|
|
2967
|
+
const someChecked = this.data.children.some((child) => { var _a, _b; return ((_a = this.state.children[child.label]) === null || _a === void 0 ? void 0 : _a.checked) || ((_b = this.state.children[child.label]) === null || _b === void 0 ? void 0 : _b.indeterminate); });
|
|
2968
|
+
this.state.checked = allChecked;
|
|
2969
|
+
this.state.indeterminate = !allChecked && someChecked;
|
|
2970
|
+
}
|
|
2971
|
+
this._onChange(this.state);
|
|
2972
|
+
this._onTouched();
|
|
2973
|
+
}
|
|
2974
|
+
onCheckboxChange() {
|
|
2975
|
+
if (this.state.disabled)
|
|
2976
|
+
return;
|
|
2977
|
+
this.state.checked = !this.state.checked;
|
|
2978
|
+
this.state.indeterminate = false;
|
|
2979
|
+
this._toggleChildrenCheck(this.data, this.state, this.state.checked);
|
|
2980
|
+
this._onChange(this.state);
|
|
2981
|
+
this._onTouched();
|
|
2982
|
+
}
|
|
2983
|
+
_toggleChildrenCheck(item, state, checked) {
|
|
2984
|
+
var _a;
|
|
2985
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2986
|
+
item.children.forEach((child) => {
|
|
2987
|
+
if (!state.children[child.label]) {
|
|
2988
|
+
state.children[child.label] = {
|
|
2989
|
+
checked: false,
|
|
2990
|
+
indeterminate: false,
|
|
2991
|
+
children: this._initializeChildren(child),
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
state.children[child.label].checked = checked;
|
|
2995
|
+
state.children[child.label].indeterminate = false;
|
|
2996
|
+
if (child.children) {
|
|
2997
|
+
this._toggleChildrenCheck(child, state.children[child.label], checked);
|
|
2998
|
+
}
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
__decorate([
|
|
3004
|
+
Input()
|
|
3005
|
+
], CheckboxComponent.prototype, "data", void 0);
|
|
3006
|
+
CheckboxComponent = CheckboxComponent_1 = __decorate([
|
|
3007
|
+
Component({
|
|
3008
|
+
selector: "s-checkbox",
|
|
3009
|
+
template: "<div class=\"checkbox\">\n <label>\n <div\n class=\"checkbox-wrapper\"\n [ngClass]=\"{ 'checkbox-wrapper--disabled': state.disabled }\">\n <input\n type=\"checkbox\"\n class=\"checkbox-input\"\n [disabled]=\"state.disabled\"\n [ngClass]=\"{\n 'checkbox-input--checked': state.checked,\n 'checkbox-input--indeterminate': state.indeterminate\n }\"\n (change)=\"onCheckboxChange()\"\n [attr.aria-checked]=\"state.indeterminate ? 'mixed' : state.checked\"\n [attr.aria-disabled]=\"state.disabled\"\n role=\"checkbox\" />\n {{ data.label }}\n </div>\n </label>\n <div *ngIf=\"data.children && data.children.length\" class=\"checkbox-children\">\n <s-checkbox\n *ngFor=\"let child of data.children\"\n [data]=\"child\"\n [ngModel]=\"state.children[child.label]\"\n (ngModelChange)=\"updateParent()\">\n </s-checkbox>\n </div>\n</div>\n",
|
|
3010
|
+
providers: [
|
|
3011
|
+
{
|
|
3012
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3013
|
+
useExisting: forwardRef(() => CheckboxComponent_1),
|
|
3014
|
+
multi: true,
|
|
3015
|
+
},
|
|
3016
|
+
],
|
|
3017
|
+
styles: [".checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:10px;margin-bottom:10px}.checkbox .checkbox-wrapper{-ms-flex-align:center;align-items:center;color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:14px;gap:12px}.checkbox .checkbox-wrapper .checkbox-input{-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #c1c1cc;border-radius:4px;cursor:pointer;-ms-flex-negative:0;flex-shrink:0;height:20px;width:20px;position:relative}.checkbox .checkbox-wrapper .checkbox-input--checked{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--checked::after{border:solid #fff;border-width:0 2px 2px 0;content:\"\";height:12px;left:6px;position:absolute;top:2px;transform:rotate(45deg);width:6px}.checkbox .checkbox-wrapper .checkbox-input--indeterminate{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--indeterminate::after{background-color:#fff;content:\"\";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.checkbox .checkbox-wrapper:not(.checkbox-wrapper--disabled) .checkbox-input:not(.checkbox-input--checked):hover{background-color:#e5eaea;border-color:#ccc}.checkbox .checkbox-wrapper--disabled{opacity:.5;cursor:auto}.checkbox .checkbox-children{margin-left:20px}"]
|
|
3018
|
+
})
|
|
3019
|
+
], CheckboxComponent);
|
|
3020
|
+
|
|
3021
|
+
let CheckboxModule = class CheckboxModule {
|
|
3022
|
+
};
|
|
3023
|
+
CheckboxModule = __decorate([
|
|
3024
|
+
NgModule({
|
|
3025
|
+
imports: [CommonModule, FormsModule],
|
|
3026
|
+
declarations: [CheckboxComponent],
|
|
3027
|
+
exports: [CheckboxComponent],
|
|
3028
|
+
})
|
|
3029
|
+
], CheckboxModule);
|
|
3030
|
+
|
|
2921
3031
|
var Languages;
|
|
2922
3032
|
(function (Languages) {
|
|
2923
3033
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -3020,14 +3130,17 @@ class CoreFacade {
|
|
|
3020
3130
|
}
|
|
3021
3131
|
}
|
|
3022
3132
|
|
|
3023
|
-
|
|
3133
|
+
var CodeEditorComponent_1;
|
|
3134
|
+
let CodeEditorComponent = CodeEditorComponent_1 = class CodeEditorComponent {
|
|
3024
3135
|
constructor(coreFacade) {
|
|
3025
3136
|
this.coreFacade = coreFacade;
|
|
3026
|
-
this._ngUnsubscribe = new Subject();
|
|
3027
3137
|
this.codeChange = new EventEmitter();
|
|
3028
3138
|
this.isCodeValidChange = new EventEmitter();
|
|
3029
3139
|
this.onCodeChange = new EventEmitter();
|
|
3030
3140
|
this.onComponentFinishLoad = new EventEmitter();
|
|
3141
|
+
this._ngUnsubscribe = new Subject();
|
|
3142
|
+
this._onChange = () => { };
|
|
3143
|
+
this._onTouched = () => { };
|
|
3031
3144
|
}
|
|
3032
3145
|
set editorOptions(options) {
|
|
3033
3146
|
this.coreFacade.changeEditorOptions(options);
|
|
@@ -3035,6 +3148,15 @@ let CodeEditorComponent = class CodeEditorComponent {
|
|
|
3035
3148
|
set code(code) {
|
|
3036
3149
|
this.coreFacade.changeCode(code);
|
|
3037
3150
|
}
|
|
3151
|
+
writeValue(value) {
|
|
3152
|
+
this.code = value;
|
|
3153
|
+
}
|
|
3154
|
+
registerOnChange(onChange) {
|
|
3155
|
+
this._onChange = onChange;
|
|
3156
|
+
}
|
|
3157
|
+
registerOnTouched(onTouched) {
|
|
3158
|
+
this._onTouched = onTouched;
|
|
3159
|
+
}
|
|
3038
3160
|
ngOnInit() {
|
|
3039
3161
|
this.coreFacade.initCore();
|
|
3040
3162
|
this.setupCoreListeners();
|
|
@@ -3058,14 +3180,16 @@ let CodeEditorComponent = class CodeEditorComponent {
|
|
|
3058
3180
|
this.coreFacade
|
|
3059
3181
|
.getOnCodeChangeObservable()
|
|
3060
3182
|
.pipe(takeUntil(this._ngUnsubscribe))
|
|
3061
|
-
.subscribe(code => {
|
|
3183
|
+
.subscribe((code) => {
|
|
3062
3184
|
this.codeChange.emit(code);
|
|
3063
3185
|
this.onCodeChange.emit(code);
|
|
3186
|
+
this._onTouched();
|
|
3187
|
+
this._onChange(code);
|
|
3064
3188
|
});
|
|
3065
3189
|
this.coreFacade
|
|
3066
3190
|
.getOnCodeValidityChangeObservable()
|
|
3067
3191
|
.pipe(takeUntil(this._ngUnsubscribe))
|
|
3068
|
-
.subscribe(validity => {
|
|
3192
|
+
.subscribe((validity) => {
|
|
3069
3193
|
this.isCodeValidChange.emit(validity);
|
|
3070
3194
|
});
|
|
3071
3195
|
}
|
|
@@ -3073,9 +3197,6 @@ let CodeEditorComponent = class CodeEditorComponent {
|
|
|
3073
3197
|
CodeEditorComponent.ctorParameters = () => [
|
|
3074
3198
|
{ type: CoreFacade }
|
|
3075
3199
|
];
|
|
3076
|
-
__decorate([
|
|
3077
|
-
ViewChild("coreWrapper")
|
|
3078
|
-
], CodeEditorComponent.prototype, "coreWrapperElement", void 0);
|
|
3079
3200
|
__decorate([
|
|
3080
3201
|
Input()
|
|
3081
3202
|
], CodeEditorComponent.prototype, "editorOptions", null);
|
|
@@ -3085,9 +3206,6 @@ __decorate([
|
|
|
3085
3206
|
__decorate([
|
|
3086
3207
|
Output()
|
|
3087
3208
|
], CodeEditorComponent.prototype, "codeChange", void 0);
|
|
3088
|
-
__decorate([
|
|
3089
|
-
Input()
|
|
3090
|
-
], CodeEditorComponent.prototype, "isCodeValid", void 0);
|
|
3091
3209
|
__decorate([
|
|
3092
3210
|
Output()
|
|
3093
3211
|
], CodeEditorComponent.prototype, "isCodeValidChange", void 0);
|
|
@@ -3097,10 +3215,20 @@ __decorate([
|
|
|
3097
3215
|
__decorate([
|
|
3098
3216
|
Output()
|
|
3099
3217
|
], CodeEditorComponent.prototype, "onComponentFinishLoad", void 0);
|
|
3100
|
-
|
|
3218
|
+
__decorate([
|
|
3219
|
+
ViewChild("coreWrapper")
|
|
3220
|
+
], CodeEditorComponent.prototype, "coreWrapperElement", void 0);
|
|
3221
|
+
CodeEditorComponent = CodeEditorComponent_1 = __decorate([
|
|
3101
3222
|
Component({
|
|
3102
3223
|
selector: "s-code-editor",
|
|
3103
|
-
template:
|
|
3224
|
+
template: "<div #coreWrapper class=\"core-wrapper\"></div>",
|
|
3225
|
+
providers: [
|
|
3226
|
+
{
|
|
3227
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3228
|
+
useExisting: forwardRef(() => CodeEditorComponent_1),
|
|
3229
|
+
multi: true,
|
|
3230
|
+
},
|
|
3231
|
+
],
|
|
3104
3232
|
styles: [".core-wrapper{height:100%}"]
|
|
3105
3233
|
})
|
|
3106
3234
|
], CodeEditorComponent);
|
|
@@ -4311,18 +4439,15 @@ let CodeEditorModule = class CodeEditorModule {
|
|
|
4311
4439
|
};
|
|
4312
4440
|
CodeEditorModule = __decorate([
|
|
4313
4441
|
NgModule({
|
|
4314
|
-
imports: [
|
|
4315
|
-
CommonModule,
|
|
4316
|
-
CustomTranslationsModule,
|
|
4317
|
-
],
|
|
4442
|
+
imports: [CommonModule, CustomTranslationsModule],
|
|
4318
4443
|
declarations: [CodeEditorComponent],
|
|
4319
4444
|
exports: [CodeEditorComponent],
|
|
4320
4445
|
providers: [
|
|
4321
4446
|
{
|
|
4322
4447
|
provide: CoreFacade,
|
|
4323
|
-
useClass: CodeMirror6Core
|
|
4324
|
-
}
|
|
4325
|
-
]
|
|
4448
|
+
useClass: CodeMirror6Core,
|
|
4449
|
+
},
|
|
4450
|
+
],
|
|
4326
4451
|
})
|
|
4327
4452
|
], CodeEditorModule);
|
|
4328
4453
|
|
|
@@ -4993,13 +5118,24 @@ CountryPhonePickerModule = __decorate([
|
|
|
4993
5118
|
})
|
|
4994
5119
|
], CountryPhonePickerModule);
|
|
4995
5120
|
|
|
5121
|
+
class BaseFieldComponent {
|
|
5122
|
+
isFunction(value) {
|
|
5123
|
+
return value instanceof Function;
|
|
5124
|
+
}
|
|
5125
|
+
trigger(callback) {
|
|
5126
|
+
return callback();
|
|
5127
|
+
}
|
|
5128
|
+
}
|
|
5129
|
+
|
|
4996
5130
|
var FieldType;
|
|
4997
5131
|
(function (FieldType) {
|
|
4998
5132
|
FieldType["Autocomplete"] = "Autocomplete";
|
|
4999
5133
|
FieldType["Binary"] = "Binary";
|
|
5000
5134
|
FieldType["Blob"] = "Blob";
|
|
5001
5135
|
FieldType["Boolean"] = "Boolean";
|
|
5136
|
+
FieldType["Checkbox"] = "Checkbox";
|
|
5002
5137
|
FieldType["Chips"] = "Chips";
|
|
5138
|
+
FieldType["CodeEditor"] = "CodeEditor";
|
|
5003
5139
|
FieldType["CountryPhonePicker"] = "CountryPhonePicker";
|
|
5004
5140
|
FieldType["Custom"] = "Custom";
|
|
5005
5141
|
FieldType["Date"] = "Date";
|
|
@@ -5177,6 +5313,13 @@ class CalendarField extends Field {
|
|
|
5177
5313
|
}
|
|
5178
5314
|
}
|
|
5179
5315
|
|
|
5316
|
+
class CheckboxField extends Field {
|
|
5317
|
+
constructor(config) {
|
|
5318
|
+
super(config);
|
|
5319
|
+
this.data = config.data;
|
|
5320
|
+
}
|
|
5321
|
+
}
|
|
5322
|
+
|
|
5180
5323
|
class ChipsField extends Field {
|
|
5181
5324
|
constructor(config) {
|
|
5182
5325
|
super(config);
|
|
@@ -5193,6 +5336,16 @@ class ChipsField extends Field {
|
|
|
5193
5336
|
}
|
|
5194
5337
|
}
|
|
5195
5338
|
|
|
5339
|
+
class CountryPhonePickerField extends Field {
|
|
5340
|
+
constructor(config) {
|
|
5341
|
+
super(config);
|
|
5342
|
+
this.countries = config.countries;
|
|
5343
|
+
this.ordination = config.ordination;
|
|
5344
|
+
this.onSelected = config.onSelected;
|
|
5345
|
+
this.onFocusLost = config.onFocusLost;
|
|
5346
|
+
}
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5196
5349
|
var NumberInputDirective_1;
|
|
5197
5350
|
/**
|
|
5198
5351
|
* @deprecated Should use 'AlignmentOptions' from @seniorsistemas/ng2-currency-mask instead
|
|
@@ -5415,6 +5568,25 @@ class LookupField extends Field {
|
|
|
5415
5568
|
}
|
|
5416
5569
|
}
|
|
5417
5570
|
|
|
5571
|
+
class PasswordField extends Field {
|
|
5572
|
+
constructor(config) {
|
|
5573
|
+
super(config);
|
|
5574
|
+
this.inputType = config.inputType;
|
|
5575
|
+
this.keyFilter = config.keyFilter;
|
|
5576
|
+
this.leftAddon = config.leftAddon;
|
|
5577
|
+
this.rightAddon = config.rightAddon;
|
|
5578
|
+
this.maxLength = config.maxLength || 9999999;
|
|
5579
|
+
this.passwordStrength = config.passwordStrength;
|
|
5580
|
+
this.passwordStrengthOptions = config.passwordStrengthOptions;
|
|
5581
|
+
this.showToggle = config.showToggle;
|
|
5582
|
+
this.style = config.style;
|
|
5583
|
+
this.onBlur = config.onBlur;
|
|
5584
|
+
this.onFocus = config.onFocus;
|
|
5585
|
+
this.onComplete = config.onComplete;
|
|
5586
|
+
this.onInput = config.onInput;
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5418
5590
|
class RationButtonOption {
|
|
5419
5591
|
constructor(config) {
|
|
5420
5592
|
this.label = config.label;
|
|
@@ -5456,6 +5628,26 @@ class SelectOption {
|
|
|
5456
5628
|
}
|
|
5457
5629
|
}
|
|
5458
5630
|
|
|
5631
|
+
class SliderField extends Field {
|
|
5632
|
+
constructor(config) {
|
|
5633
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5634
|
+
super(config);
|
|
5635
|
+
this.maxDefault = 100;
|
|
5636
|
+
this.onChange = config.onChange;
|
|
5637
|
+
this.onSlideEnd = config.onSlideEnd;
|
|
5638
|
+
this.range = (_a = config.range) !== null && _a !== void 0 ? _a : false;
|
|
5639
|
+
this.min = (_b = config.min) !== null && _b !== void 0 ? _b : 0;
|
|
5640
|
+
this.max = (_c = config.max) !== null && _c !== void 0 ? _c : this.maxDefault;
|
|
5641
|
+
this.orientation = (_d = config.orientation) !== null && _d !== void 0 ? _d : "horizontal";
|
|
5642
|
+
this.step = (_e = config.step) !== null && _e !== void 0 ? _e : 1;
|
|
5643
|
+
this.animate = (_f = config.animate) !== null && _f !== void 0 ? _f : false;
|
|
5644
|
+
this.disabled = (_g = config.disabled) !== null && _g !== void 0 ? _g : false;
|
|
5645
|
+
this.prefix = config.prefix;
|
|
5646
|
+
this.suffix = config.suffix;
|
|
5647
|
+
this.rangeSeparator = (_h = config.rangeSeparator) !== null && _h !== void 0 ? _h : ' - ';
|
|
5648
|
+
}
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5459
5651
|
class TextAreaField extends Field {
|
|
5460
5652
|
constructor(config) {
|
|
5461
5653
|
super(config);
|
|
@@ -5498,52 +5690,24 @@ class TextField extends Field {
|
|
|
5498
5690
|
}
|
|
5499
5691
|
}
|
|
5500
5692
|
|
|
5501
|
-
class
|
|
5502
|
-
constructor(config) {
|
|
5503
|
-
super(config);
|
|
5504
|
-
this.inputType = config.inputType;
|
|
5505
|
-
this.keyFilter = config.keyFilter;
|
|
5506
|
-
this.leftAddon = config.leftAddon;
|
|
5507
|
-
this.rightAddon = config.rightAddon;
|
|
5508
|
-
this.maxLength = config.maxLength || 9999999;
|
|
5509
|
-
this.passwordStrength = config.passwordStrength;
|
|
5510
|
-
this.passwordStrengthOptions = config.passwordStrengthOptions;
|
|
5511
|
-
this.showToggle = config.showToggle;
|
|
5512
|
-
this.style = config.style;
|
|
5513
|
-
this.onBlur = config.onBlur;
|
|
5514
|
-
this.onFocus = config.onFocus;
|
|
5515
|
-
this.onComplete = config.onComplete;
|
|
5516
|
-
this.onInput = config.onInput;
|
|
5517
|
-
}
|
|
5518
|
-
}
|
|
5519
|
-
|
|
5520
|
-
class SliderField extends Field {
|
|
5693
|
+
class CodeEditorField extends Field {
|
|
5521
5694
|
constructor(config) {
|
|
5522
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5523
5695
|
super(config);
|
|
5524
|
-
this.
|
|
5525
|
-
this.
|
|
5526
|
-
this.
|
|
5527
|
-
this.
|
|
5528
|
-
this.
|
|
5529
|
-
this.max = (_c = config.max) !== null && _c !== void 0 ? _c : this.maxDefault;
|
|
5530
|
-
this.orientation = (_d = config.orientation) !== null && _d !== void 0 ? _d : "horizontal";
|
|
5531
|
-
this.step = (_e = config.step) !== null && _e !== void 0 ? _e : 1;
|
|
5532
|
-
this.animate = (_f = config.animate) !== null && _f !== void 0 ? _f : false;
|
|
5533
|
-
this.disabled = (_g = config.disabled) !== null && _g !== void 0 ? _g : false;
|
|
5534
|
-
this.prefix = config.prefix;
|
|
5535
|
-
this.suffix = config.suffix;
|
|
5536
|
-
this.rangeSeparator = (_h = config.rangeSeparator) !== null && _h !== void 0 ? _h : ' - ';
|
|
5696
|
+
this.editorOptions = config.editorOptions;
|
|
5697
|
+
this.code = config.code;
|
|
5698
|
+
this.isCodeValid = config.isCodeValid;
|
|
5699
|
+
this.onComponentFinishLoad = config.onComponentFinishLoad;
|
|
5700
|
+
this.onCodeChange = config.onCodeChange;
|
|
5537
5701
|
}
|
|
5538
5702
|
}
|
|
5539
5703
|
|
|
5540
|
-
class
|
|
5704
|
+
class EditorField extends Field {
|
|
5541
5705
|
constructor(config) {
|
|
5542
5706
|
super(config);
|
|
5543
|
-
this.
|
|
5544
|
-
this.
|
|
5545
|
-
this.
|
|
5546
|
-
this.
|
|
5707
|
+
this.formats = config.formats;
|
|
5708
|
+
this.readonly = config.readonly;
|
|
5709
|
+
this.modules = config.modules;
|
|
5710
|
+
this.style = config.style;
|
|
5547
5711
|
}
|
|
5548
5712
|
}
|
|
5549
5713
|
|
|
@@ -5567,16 +5731,6 @@ class ProfilePictureField extends Field {
|
|
|
5567
5731
|
}
|
|
5568
5732
|
}
|
|
5569
5733
|
|
|
5570
|
-
class EditorField extends Field {
|
|
5571
|
-
constructor(config) {
|
|
5572
|
-
super(config);
|
|
5573
|
-
this.formats = config.formats;
|
|
5574
|
-
this.readonly = config.readonly;
|
|
5575
|
-
this.modules = config.modules;
|
|
5576
|
-
this.style = config.style;
|
|
5577
|
-
}
|
|
5578
|
-
}
|
|
5579
|
-
|
|
5580
5734
|
class FormField {
|
|
5581
5735
|
constructor(config) {
|
|
5582
5736
|
switch (config.type) {
|
|
@@ -5612,8 +5766,12 @@ class FormField {
|
|
|
5612
5766
|
return new LookupField(config);
|
|
5613
5767
|
case FieldType.Radio:
|
|
5614
5768
|
return new RadioButtonField(config);
|
|
5769
|
+
case FieldType.Checkbox:
|
|
5770
|
+
return new CheckboxField(config);
|
|
5615
5771
|
case FieldType.Chips:
|
|
5616
5772
|
return new ChipsField(config);
|
|
5773
|
+
case FieldType.CodeEditor:
|
|
5774
|
+
return new CodeEditorField(config);
|
|
5617
5775
|
case FieldType.CountryPhonePicker:
|
|
5618
5776
|
return new CountryPhonePickerField(config);
|
|
5619
5777
|
case FieldType.Blob:
|
|
@@ -6197,15 +6355,6 @@ LookupComponent = LookupComponent_1 = __decorate([
|
|
|
6197
6355
|
})
|
|
6198
6356
|
], LookupComponent);
|
|
6199
6357
|
|
|
6200
|
-
class BaseFieldComponent {
|
|
6201
|
-
isFunction(value) {
|
|
6202
|
-
return value instanceof Function;
|
|
6203
|
-
}
|
|
6204
|
-
trigger(callback) {
|
|
6205
|
-
return callback();
|
|
6206
|
-
}
|
|
6207
|
-
}
|
|
6208
|
-
|
|
6209
6358
|
var DynamicType;
|
|
6210
6359
|
(function (DynamicType) {
|
|
6211
6360
|
DynamicType["Autocomplete"] = "Autocomplete";
|
|
@@ -6343,87 +6492,19 @@ DynamicFormComponent = __decorate([
|
|
|
6343
6492
|
})
|
|
6344
6493
|
], DynamicFormComponent);
|
|
6345
6494
|
|
|
6346
|
-
let
|
|
6347
|
-
constructor(
|
|
6348
|
-
this.
|
|
6349
|
-
this.
|
|
6495
|
+
let LongPressDirective = class LongPressDirective {
|
|
6496
|
+
constructor() {
|
|
6497
|
+
this.sLongPressDelay = 500;
|
|
6498
|
+
this.sLongPress = new EventEmitter();
|
|
6499
|
+
this.mouseUp = new Subject();
|
|
6500
|
+
this.mouseDown = new Subject();
|
|
6501
|
+
this.ngUnsubscribe = new Subject();
|
|
6350
6502
|
}
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
return this.http
|
|
6354
|
-
.post("platform/iassist/api/latest/completions", {
|
|
6355
|
-
prompt,
|
|
6356
|
-
provider: "OPEN_AI",
|
|
6357
|
-
parameters: {
|
|
6358
|
-
model: "gpt-3.5-turbo",
|
|
6359
|
-
max_tokens: 700,
|
|
6360
|
-
temperature: 1,
|
|
6361
|
-
},
|
|
6362
|
-
})
|
|
6363
|
-
.pipe(catchError((err) => {
|
|
6364
|
-
this._messageService.add({
|
|
6365
|
-
severity: "error",
|
|
6366
|
-
summary: err.status ? String(err.status) : "Error",
|
|
6367
|
-
detail: (err.error && err.error.message) || err.statusText || err.message || "Error",
|
|
6368
|
-
});
|
|
6369
|
-
return throwError(err);
|
|
6370
|
-
}));
|
|
6503
|
+
onMouseUp(event) {
|
|
6504
|
+
this.mouseUp.next(event);
|
|
6371
6505
|
}
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
delete values.prompt;
|
|
6375
|
-
let result = data.prompt;
|
|
6376
|
-
for (const key in Object.assign(Object.assign({}, values), { context: context })) {
|
|
6377
|
-
const placeholder = new RegExp(`{{\\s*${key}\\s*}}`, "g");
|
|
6378
|
-
result = result.replace(placeholder, values[key]);
|
|
6379
|
-
}
|
|
6380
|
-
console.log("prompt", result);
|
|
6381
|
-
return result;
|
|
6382
|
-
}
|
|
6383
|
-
_createPrompt(context, data) {
|
|
6384
|
-
return `Crie um texto genérico para preencher o campo de textarea.
|
|
6385
|
-
${data.label ? `O campo tem o label ${data.label}.` : ""}
|
|
6386
|
-
${data.id ? `O campo tem o id ${data.id}.` : ""}
|
|
6387
|
-
${data.placeholder ? `Considere as instruções/sugestões do placeholder: ${data.placeholder}.` : ""}
|
|
6388
|
-
Baseie-se no contexto informado pelo usuário: '${context}'.
|
|
6389
|
-
O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias.
|
|
6390
|
-
O texto deve ser neutro com relação a generos, raças, religiões, etc.
|
|
6391
|
-
O texto deve ser impessoal e não deve conter informações pessoais do usuário.
|
|
6392
|
-
Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.
|
|
6393
|
-
|
|
6394
|
-
Exemplos de texto:
|
|
6395
|
-
Um campo de descrição de usuário: "Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes."
|
|
6396
|
-
Outro exemplo de descrição de usuário: "Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos."
|
|
6397
|
-
Um campo de descrição de um produto: "O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh."
|
|
6398
|
-
Outro exemplo de descrição de produto: "O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes."
|
|
6399
|
-
Outro exemplo de descrição de produto: "O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato."
|
|
6400
|
-
|
|
6401
|
-
Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.
|
|
6402
|
-
O texto é para um campo de textarea, então escreva um texto sucinto.
|
|
6403
|
-
Exiba apenas o texto do output`;
|
|
6404
|
-
}
|
|
6405
|
-
};
|
|
6406
|
-
IAssistService.ctorParameters = () => [
|
|
6407
|
-
{ type: HttpClient },
|
|
6408
|
-
{ type: MessageService }
|
|
6409
|
-
];
|
|
6410
|
-
IAssistService = __decorate([
|
|
6411
|
-
Injectable()
|
|
6412
|
-
], IAssistService);
|
|
6413
|
-
|
|
6414
|
-
let LongPressDirective = class LongPressDirective {
|
|
6415
|
-
constructor() {
|
|
6416
|
-
this.sLongPressDelay = 500;
|
|
6417
|
-
this.sLongPress = new EventEmitter();
|
|
6418
|
-
this.mouseUp = new Subject();
|
|
6419
|
-
this.mouseDown = new Subject();
|
|
6420
|
-
this.ngUnsubscribe = new Subject();
|
|
6421
|
-
}
|
|
6422
|
-
onMouseUp(event) {
|
|
6423
|
-
this.mouseUp.next(event);
|
|
6424
|
-
}
|
|
6425
|
-
onMouseDown(event) {
|
|
6426
|
-
this.mouseDown.next(event);
|
|
6506
|
+
onMouseDown(event) {
|
|
6507
|
+
this.mouseDown.next(event);
|
|
6427
6508
|
}
|
|
6428
6509
|
ngOnInit() {
|
|
6429
6510
|
this.mouseDown
|
|
@@ -6506,6 +6587,74 @@ MouseEventsModule = __decorate([
|
|
|
6506
6587
|
})
|
|
6507
6588
|
], MouseEventsModule);
|
|
6508
6589
|
|
|
6590
|
+
let IAssistService = class IAssistService {
|
|
6591
|
+
constructor(http, _messageService) {
|
|
6592
|
+
this.http = http;
|
|
6593
|
+
this._messageService = _messageService;
|
|
6594
|
+
}
|
|
6595
|
+
askIA(context, data) {
|
|
6596
|
+
const prompt = data.prompt ? this._replacePlaceholder(context, data) : this._createPrompt(context, data);
|
|
6597
|
+
return this.http
|
|
6598
|
+
.post("platform/iassist/api/latest/completions", {
|
|
6599
|
+
prompt,
|
|
6600
|
+
provider: "OPEN_AI",
|
|
6601
|
+
parameters: {
|
|
6602
|
+
model: "gpt-3.5-turbo",
|
|
6603
|
+
max_tokens: 700,
|
|
6604
|
+
temperature: 1,
|
|
6605
|
+
},
|
|
6606
|
+
})
|
|
6607
|
+
.pipe(catchError((err) => {
|
|
6608
|
+
this._messageService.add({
|
|
6609
|
+
severity: "error",
|
|
6610
|
+
summary: err.status ? String(err.status) : "Error",
|
|
6611
|
+
detail: (err.error && err.error.message) || err.statusText || err.message || "Error",
|
|
6612
|
+
});
|
|
6613
|
+
return throwError(err);
|
|
6614
|
+
}));
|
|
6615
|
+
}
|
|
6616
|
+
_replacePlaceholder(context, data) {
|
|
6617
|
+
const values = Object.assign(Object.assign({}, data), { context });
|
|
6618
|
+
delete values.prompt;
|
|
6619
|
+
let result = data.prompt;
|
|
6620
|
+
for (const key in Object.assign(Object.assign({}, values), { context: context })) {
|
|
6621
|
+
const placeholder = new RegExp(`{{\\s*${key}\\s*}}`, "g");
|
|
6622
|
+
result = result.replace(placeholder, values[key]);
|
|
6623
|
+
}
|
|
6624
|
+
console.log("prompt", result);
|
|
6625
|
+
return result;
|
|
6626
|
+
}
|
|
6627
|
+
_createPrompt(context, data) {
|
|
6628
|
+
return `Crie um texto genérico para preencher o campo de textarea.
|
|
6629
|
+
${data.label ? `O campo tem o label ${data.label}.` : ""}
|
|
6630
|
+
${data.id ? `O campo tem o id ${data.id}.` : ""}
|
|
6631
|
+
${data.placeholder ? `Considere as instruções/sugestões do placeholder: ${data.placeholder}.` : ""}
|
|
6632
|
+
Baseie-se no contexto informado pelo usuário: '${context}'.
|
|
6633
|
+
O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias.
|
|
6634
|
+
O texto deve ser neutro com relação a generos, raças, religiões, etc.
|
|
6635
|
+
O texto deve ser impessoal e não deve conter informações pessoais do usuário.
|
|
6636
|
+
Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.
|
|
6637
|
+
|
|
6638
|
+
Exemplos de texto:
|
|
6639
|
+
Um campo de descrição de usuário: "Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes."
|
|
6640
|
+
Outro exemplo de descrição de usuário: "Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos."
|
|
6641
|
+
Um campo de descrição de um produto: "O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh."
|
|
6642
|
+
Outro exemplo de descrição de produto: "O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes."
|
|
6643
|
+
Outro exemplo de descrição de produto: "O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato."
|
|
6644
|
+
|
|
6645
|
+
Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.
|
|
6646
|
+
O texto é para um campo de textarea, então escreva um texto sucinto.
|
|
6647
|
+
Exiba apenas o texto do output`;
|
|
6648
|
+
}
|
|
6649
|
+
};
|
|
6650
|
+
IAssistService.ctorParameters = () => [
|
|
6651
|
+
{ type: HttpClient },
|
|
6652
|
+
{ type: MessageService }
|
|
6653
|
+
];
|
|
6654
|
+
IAssistService = __decorate([
|
|
6655
|
+
Injectable()
|
|
6656
|
+
], IAssistService);
|
|
6657
|
+
|
|
6509
6658
|
var EmptyStateComponent_1;
|
|
6510
6659
|
let EmptyStateComponent = EmptyStateComponent_1 = class EmptyStateComponent {
|
|
6511
6660
|
constructor() {
|
|
@@ -8346,6 +8495,151 @@ PasswordStrengthModule = __decorate([
|
|
|
8346
8495
|
})
|
|
8347
8496
|
], PasswordStrengthModule);
|
|
8348
8497
|
|
|
8498
|
+
var TableHeaderCheckboxComponent_1;
|
|
8499
|
+
let TableHeaderCheckboxComponent = TableHeaderCheckboxComponent_1 = class TableHeaderCheckboxComponent {
|
|
8500
|
+
constructor(table, tableService) {
|
|
8501
|
+
this.table = table;
|
|
8502
|
+
this.tableService = tableService;
|
|
8503
|
+
this.id = `s-table-header-checkbox-${TableHeaderCheckboxComponent_1.nextId++}`;
|
|
8504
|
+
this.ngUnsubscribe = new Subject();
|
|
8505
|
+
this.table.tableService.valueSource$.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
8506
|
+
this.checked = this.updateCheckedState();
|
|
8507
|
+
});
|
|
8508
|
+
this.table.tableService.selectionSource$.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
8509
|
+
this.checked = this.updateCheckedState();
|
|
8510
|
+
});
|
|
8511
|
+
}
|
|
8512
|
+
ngOnInit() {
|
|
8513
|
+
this.checked = this.updateCheckedState();
|
|
8514
|
+
}
|
|
8515
|
+
ngOnDestroy() {
|
|
8516
|
+
this.ngUnsubscribe.next();
|
|
8517
|
+
}
|
|
8518
|
+
onFocus() {
|
|
8519
|
+
this.hasFocus = true;
|
|
8520
|
+
}
|
|
8521
|
+
onBlur() {
|
|
8522
|
+
this.hasFocus = false;
|
|
8523
|
+
}
|
|
8524
|
+
isDisabled() {
|
|
8525
|
+
return this.disabled || !this.table.value || !this.table.value.length;
|
|
8526
|
+
}
|
|
8527
|
+
onClick() {
|
|
8528
|
+
if (!this.disabled) {
|
|
8529
|
+
if (this.table.value && this.table.value.length > 0)
|
|
8530
|
+
this.onToggleCheckbox(!this.checked);
|
|
8531
|
+
}
|
|
8532
|
+
}
|
|
8533
|
+
updateCheckedState() {
|
|
8534
|
+
if (this.table.filteredValue) {
|
|
8535
|
+
const val = this.table.filteredValue;
|
|
8536
|
+
return val && val.length > 0 && this.table.selection && this.table.selection.length > 0 && this.isAllFilteredValuesChecked();
|
|
8537
|
+
}
|
|
8538
|
+
else {
|
|
8539
|
+
const val = this.table.value;
|
|
8540
|
+
return val && val.length > 0 && this.table.selection && this.table.selection.length > 0 && this.isAllValuesChecked();
|
|
8541
|
+
}
|
|
8542
|
+
}
|
|
8543
|
+
onToggleCheckbox(checked) {
|
|
8544
|
+
const { filteredValue, value, dataKey } = this.table;
|
|
8545
|
+
const gridData = checked ? (filteredValue ? filteredValue.slice() : value.slice()) : [];
|
|
8546
|
+
if (checked) {
|
|
8547
|
+
const unselecteds = gridData
|
|
8548
|
+
.filter(record => !this.table._selection.find((selected) => record[dataKey] === selected[dataKey]))
|
|
8549
|
+
.map((record) => {
|
|
8550
|
+
if (this.useAllObject)
|
|
8551
|
+
return record;
|
|
8552
|
+
const newRecord = {};
|
|
8553
|
+
if (this.rowProps)
|
|
8554
|
+
this.rowProps.forEach((prop) => (newRecord[prop] = record[prop]));
|
|
8555
|
+
else
|
|
8556
|
+
newRecord[dataKey] = record[dataKey];
|
|
8557
|
+
return newRecord;
|
|
8558
|
+
});
|
|
8559
|
+
this.table._selection = [...this.table._selection, ...unselecteds];
|
|
8560
|
+
}
|
|
8561
|
+
else {
|
|
8562
|
+
value.forEach((data) => {
|
|
8563
|
+
this.table._selection = this.table._selection.filter((record) => record[dataKey] !== data[dataKey]);
|
|
8564
|
+
});
|
|
8565
|
+
}
|
|
8566
|
+
this.table.updateSelectionKeys();
|
|
8567
|
+
this.table.selectionChange.emit(this.table._selection);
|
|
8568
|
+
this.tableService.onSelectionChange();
|
|
8569
|
+
if (this.table.isStateful())
|
|
8570
|
+
this.table.saveState();
|
|
8571
|
+
}
|
|
8572
|
+
isAllFilteredValuesChecked() {
|
|
8573
|
+
if (!this.table.filteredValue) {
|
|
8574
|
+
return false;
|
|
8575
|
+
}
|
|
8576
|
+
else {
|
|
8577
|
+
for (const rowData of this.table.filteredValue) {
|
|
8578
|
+
if (!this.table.isSelected(rowData)) {
|
|
8579
|
+
return false;
|
|
8580
|
+
}
|
|
8581
|
+
}
|
|
8582
|
+
return true;
|
|
8583
|
+
}
|
|
8584
|
+
}
|
|
8585
|
+
isAllValuesChecked() {
|
|
8586
|
+
if (!this.table.value) {
|
|
8587
|
+
return false;
|
|
8588
|
+
}
|
|
8589
|
+
else {
|
|
8590
|
+
for (const rowData of this.table.value) {
|
|
8591
|
+
if (!this.table.isSelected(rowData)) {
|
|
8592
|
+
return false;
|
|
8593
|
+
}
|
|
8594
|
+
}
|
|
8595
|
+
return true;
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
};
|
|
8599
|
+
TableHeaderCheckboxComponent.nextId = 0;
|
|
8600
|
+
TableHeaderCheckboxComponent.ctorParameters = () => [
|
|
8601
|
+
{ type: Table },
|
|
8602
|
+
{ type: TableService }
|
|
8603
|
+
];
|
|
8604
|
+
__decorate([
|
|
8605
|
+
Input()
|
|
8606
|
+
], TableHeaderCheckboxComponent.prototype, "id", void 0);
|
|
8607
|
+
__decorate([
|
|
8608
|
+
Input()
|
|
8609
|
+
], TableHeaderCheckboxComponent.prototype, "disabled", void 0);
|
|
8610
|
+
__decorate([
|
|
8611
|
+
Input()
|
|
8612
|
+
], TableHeaderCheckboxComponent.prototype, "rowProps", void 0);
|
|
8613
|
+
__decorate([
|
|
8614
|
+
Input()
|
|
8615
|
+
], TableHeaderCheckboxComponent.prototype, "useAllObject", void 0);
|
|
8616
|
+
TableHeaderCheckboxComponent = TableHeaderCheckboxComponent_1 = __decorate([
|
|
8617
|
+
Component({
|
|
8618
|
+
selector: "s-table-header-checkbox",
|
|
8619
|
+
template: `
|
|
8620
|
+
<div class="ui-chkbox ui-widget" (click)="onClick()">
|
|
8621
|
+
<div class="ui-helper-hidden-accessible">
|
|
8622
|
+
<input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()">
|
|
8623
|
+
</div>
|
|
8624
|
+
<div [ngClass]="{'ui-chkbox-box ui-widget ui-state-default':true,
|
|
8625
|
+
'ui-state-active':checked, 'ui-state-disabled': isDisabled(), 'ui-state-focus': hasFocus}">
|
|
8626
|
+
<span [id]="id" class="ui-chkbox-icon ui-clickable" [ngClass]="{'pi pi-check':checked}"></span>
|
|
8627
|
+
</div>
|
|
8628
|
+
</div>
|
|
8629
|
+
`
|
|
8630
|
+
})
|
|
8631
|
+
], TableHeaderCheckboxComponent);
|
|
8632
|
+
|
|
8633
|
+
let TableHeaderCheckboxModule = class TableHeaderCheckboxModule {
|
|
8634
|
+
};
|
|
8635
|
+
TableHeaderCheckboxModule = __decorate([
|
|
8636
|
+
NgModule({
|
|
8637
|
+
imports: [CommonModule],
|
|
8638
|
+
exports: [TableHeaderCheckboxComponent],
|
|
8639
|
+
declarations: [TableHeaderCheckboxComponent],
|
|
8640
|
+
})
|
|
8641
|
+
], TableHeaderCheckboxModule);
|
|
8642
|
+
|
|
8349
8643
|
let NavigationDirective = class NavigationDirective {
|
|
8350
8644
|
onKeyDown(event) {
|
|
8351
8645
|
switch (event.key) {
|
|
@@ -9311,151 +9605,6 @@ TableModule = __decorate([
|
|
|
9311
9605
|
})
|
|
9312
9606
|
], TableModule);
|
|
9313
9607
|
|
|
9314
|
-
var TableHeaderCheckboxComponent_1;
|
|
9315
|
-
let TableHeaderCheckboxComponent = TableHeaderCheckboxComponent_1 = class TableHeaderCheckboxComponent {
|
|
9316
|
-
constructor(table, tableService) {
|
|
9317
|
-
this.table = table;
|
|
9318
|
-
this.tableService = tableService;
|
|
9319
|
-
this.id = `s-table-header-checkbox-${TableHeaderCheckboxComponent_1.nextId++}`;
|
|
9320
|
-
this.ngUnsubscribe = new Subject();
|
|
9321
|
-
this.table.tableService.valueSource$.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
9322
|
-
this.checked = this.updateCheckedState();
|
|
9323
|
-
});
|
|
9324
|
-
this.table.tableService.selectionSource$.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
9325
|
-
this.checked = this.updateCheckedState();
|
|
9326
|
-
});
|
|
9327
|
-
}
|
|
9328
|
-
ngOnInit() {
|
|
9329
|
-
this.checked = this.updateCheckedState();
|
|
9330
|
-
}
|
|
9331
|
-
ngOnDestroy() {
|
|
9332
|
-
this.ngUnsubscribe.next();
|
|
9333
|
-
}
|
|
9334
|
-
onFocus() {
|
|
9335
|
-
this.hasFocus = true;
|
|
9336
|
-
}
|
|
9337
|
-
onBlur() {
|
|
9338
|
-
this.hasFocus = false;
|
|
9339
|
-
}
|
|
9340
|
-
isDisabled() {
|
|
9341
|
-
return this.disabled || !this.table.value || !this.table.value.length;
|
|
9342
|
-
}
|
|
9343
|
-
onClick() {
|
|
9344
|
-
if (!this.disabled) {
|
|
9345
|
-
if (this.table.value && this.table.value.length > 0)
|
|
9346
|
-
this.onToggleCheckbox(!this.checked);
|
|
9347
|
-
}
|
|
9348
|
-
}
|
|
9349
|
-
updateCheckedState() {
|
|
9350
|
-
if (this.table.filteredValue) {
|
|
9351
|
-
const val = this.table.filteredValue;
|
|
9352
|
-
return val && val.length > 0 && this.table.selection && this.table.selection.length > 0 && this.isAllFilteredValuesChecked();
|
|
9353
|
-
}
|
|
9354
|
-
else {
|
|
9355
|
-
const val = this.table.value;
|
|
9356
|
-
return val && val.length > 0 && this.table.selection && this.table.selection.length > 0 && this.isAllValuesChecked();
|
|
9357
|
-
}
|
|
9358
|
-
}
|
|
9359
|
-
onToggleCheckbox(checked) {
|
|
9360
|
-
const { filteredValue, value, dataKey } = this.table;
|
|
9361
|
-
const gridData = checked ? (filteredValue ? filteredValue.slice() : value.slice()) : [];
|
|
9362
|
-
if (checked) {
|
|
9363
|
-
const unselecteds = gridData
|
|
9364
|
-
.filter(record => !this.table._selection.find((selected) => record[dataKey] === selected[dataKey]))
|
|
9365
|
-
.map((record) => {
|
|
9366
|
-
if (this.useAllObject)
|
|
9367
|
-
return record;
|
|
9368
|
-
const newRecord = {};
|
|
9369
|
-
if (this.rowProps)
|
|
9370
|
-
this.rowProps.forEach((prop) => (newRecord[prop] = record[prop]));
|
|
9371
|
-
else
|
|
9372
|
-
newRecord[dataKey] = record[dataKey];
|
|
9373
|
-
return newRecord;
|
|
9374
|
-
});
|
|
9375
|
-
this.table._selection = [...this.table._selection, ...unselecteds];
|
|
9376
|
-
}
|
|
9377
|
-
else {
|
|
9378
|
-
value.forEach((data) => {
|
|
9379
|
-
this.table._selection = this.table._selection.filter((record) => record[dataKey] !== data[dataKey]);
|
|
9380
|
-
});
|
|
9381
|
-
}
|
|
9382
|
-
this.table.updateSelectionKeys();
|
|
9383
|
-
this.table.selectionChange.emit(this.table._selection);
|
|
9384
|
-
this.tableService.onSelectionChange();
|
|
9385
|
-
if (this.table.isStateful())
|
|
9386
|
-
this.table.saveState();
|
|
9387
|
-
}
|
|
9388
|
-
isAllFilteredValuesChecked() {
|
|
9389
|
-
if (!this.table.filteredValue) {
|
|
9390
|
-
return false;
|
|
9391
|
-
}
|
|
9392
|
-
else {
|
|
9393
|
-
for (const rowData of this.table.filteredValue) {
|
|
9394
|
-
if (!this.table.isSelected(rowData)) {
|
|
9395
|
-
return false;
|
|
9396
|
-
}
|
|
9397
|
-
}
|
|
9398
|
-
return true;
|
|
9399
|
-
}
|
|
9400
|
-
}
|
|
9401
|
-
isAllValuesChecked() {
|
|
9402
|
-
if (!this.table.value) {
|
|
9403
|
-
return false;
|
|
9404
|
-
}
|
|
9405
|
-
else {
|
|
9406
|
-
for (const rowData of this.table.value) {
|
|
9407
|
-
if (!this.table.isSelected(rowData)) {
|
|
9408
|
-
return false;
|
|
9409
|
-
}
|
|
9410
|
-
}
|
|
9411
|
-
return true;
|
|
9412
|
-
}
|
|
9413
|
-
}
|
|
9414
|
-
};
|
|
9415
|
-
TableHeaderCheckboxComponent.nextId = 0;
|
|
9416
|
-
TableHeaderCheckboxComponent.ctorParameters = () => [
|
|
9417
|
-
{ type: Table },
|
|
9418
|
-
{ type: TableService }
|
|
9419
|
-
];
|
|
9420
|
-
__decorate([
|
|
9421
|
-
Input()
|
|
9422
|
-
], TableHeaderCheckboxComponent.prototype, "id", void 0);
|
|
9423
|
-
__decorate([
|
|
9424
|
-
Input()
|
|
9425
|
-
], TableHeaderCheckboxComponent.prototype, "disabled", void 0);
|
|
9426
|
-
__decorate([
|
|
9427
|
-
Input()
|
|
9428
|
-
], TableHeaderCheckboxComponent.prototype, "rowProps", void 0);
|
|
9429
|
-
__decorate([
|
|
9430
|
-
Input()
|
|
9431
|
-
], TableHeaderCheckboxComponent.prototype, "useAllObject", void 0);
|
|
9432
|
-
TableHeaderCheckboxComponent = TableHeaderCheckboxComponent_1 = __decorate([
|
|
9433
|
-
Component({
|
|
9434
|
-
selector: "s-table-header-checkbox",
|
|
9435
|
-
template: `
|
|
9436
|
-
<div class="ui-chkbox ui-widget" (click)="onClick()">
|
|
9437
|
-
<div class="ui-helper-hidden-accessible">
|
|
9438
|
-
<input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()">
|
|
9439
|
-
</div>
|
|
9440
|
-
<div [ngClass]="{'ui-chkbox-box ui-widget ui-state-default':true,
|
|
9441
|
-
'ui-state-active':checked, 'ui-state-disabled': isDisabled(), 'ui-state-focus': hasFocus}">
|
|
9442
|
-
<span [id]="id" class="ui-chkbox-icon ui-clickable" [ngClass]="{'pi pi-check':checked}"></span>
|
|
9443
|
-
</div>
|
|
9444
|
-
</div>
|
|
9445
|
-
`
|
|
9446
|
-
})
|
|
9447
|
-
], TableHeaderCheckboxComponent);
|
|
9448
|
-
|
|
9449
|
-
let TableHeaderCheckboxModule = class TableHeaderCheckboxModule {
|
|
9450
|
-
};
|
|
9451
|
-
TableHeaderCheckboxModule = __decorate([
|
|
9452
|
-
NgModule({
|
|
9453
|
-
imports: [CommonModule],
|
|
9454
|
-
exports: [TableHeaderCheckboxComponent],
|
|
9455
|
-
declarations: [TableHeaderCheckboxComponent],
|
|
9456
|
-
})
|
|
9457
|
-
], TableHeaderCheckboxModule);
|
|
9458
|
-
|
|
9459
9608
|
let AutocompleteFieldComponent = class AutocompleteFieldComponent {
|
|
9460
9609
|
constructor(changeDetectorRef, elementRef) {
|
|
9461
9610
|
this.changeDetectorRef = changeDetectorRef;
|
|
@@ -9696,35 +9845,6 @@ CountryPhonePickerFieldComponent = __decorate([
|
|
|
9696
9845
|
})
|
|
9697
9846
|
], CountryPhonePickerFieldComponent);
|
|
9698
9847
|
|
|
9699
|
-
let FieldsetComponent = class FieldsetComponent {
|
|
9700
|
-
};
|
|
9701
|
-
__decorate([
|
|
9702
|
-
Input()
|
|
9703
|
-
], FieldsetComponent.prototype, "id", void 0);
|
|
9704
|
-
__decorate([
|
|
9705
|
-
Input()
|
|
9706
|
-
], FieldsetComponent.prototype, "config", void 0);
|
|
9707
|
-
__decorate([
|
|
9708
|
-
Input()
|
|
9709
|
-
], FieldsetComponent.prototype, "group", void 0);
|
|
9710
|
-
__decorate([
|
|
9711
|
-
Input()
|
|
9712
|
-
], FieldsetComponent.prototype, "errorMessages", void 0);
|
|
9713
|
-
FieldsetComponent = __decorate([
|
|
9714
|
-
Component({
|
|
9715
|
-
selector: "s-fieldset",
|
|
9716
|
-
template: `
|
|
9717
|
-
<p-fieldset [toggleable]="true" (onBeforeToggle)="config.beforeToggle ? config.beforeToggle($event) : 'null'"
|
|
9718
|
-
(onAfterToggle)="config.afterToggle ? config.afterToggle($event) : 'null'">
|
|
9719
|
-
<p-header>{{config.header}}</p-header>
|
|
9720
|
-
<ng-container *ngFor="let conf of config.configs">
|
|
9721
|
-
<ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>
|
|
9722
|
-
</ng-container>
|
|
9723
|
-
</p-fieldset>
|
|
9724
|
-
`
|
|
9725
|
-
})
|
|
9726
|
-
], FieldsetComponent);
|
|
9727
|
-
|
|
9728
9848
|
let FileUploadComponent$1 = class FileUploadComponent extends BaseFieldComponent {
|
|
9729
9849
|
constructor(changeDetectorRef, elementRef) {
|
|
9730
9850
|
super();
|
|
@@ -9832,31 +9952,6 @@ RadioButtonComponent = __decorate([
|
|
|
9832
9952
|
})
|
|
9833
9953
|
], RadioButtonComponent);
|
|
9834
9954
|
|
|
9835
|
-
let SectionComponent = class SectionComponent {
|
|
9836
|
-
};
|
|
9837
|
-
__decorate([
|
|
9838
|
-
Input()
|
|
9839
|
-
], SectionComponent.prototype, "id", void 0);
|
|
9840
|
-
__decorate([
|
|
9841
|
-
Input()
|
|
9842
|
-
], SectionComponent.prototype, "config", void 0);
|
|
9843
|
-
__decorate([
|
|
9844
|
-
Input()
|
|
9845
|
-
], SectionComponent.prototype, "group", void 0);
|
|
9846
|
-
__decorate([
|
|
9847
|
-
Input()
|
|
9848
|
-
], SectionComponent.prototype, "errorMessages", void 0);
|
|
9849
|
-
SectionComponent = __decorate([
|
|
9850
|
-
Component({
|
|
9851
|
-
template: `
|
|
9852
|
-
<h3 *ngIf="config?.header" class="sds-section-title">{{config.header}}</h3>
|
|
9853
|
-
<ng-container *ngFor="let conf of config.configs">
|
|
9854
|
-
<ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>
|
|
9855
|
-
</ng-container>
|
|
9856
|
-
`
|
|
9857
|
-
})
|
|
9858
|
-
], SectionComponent);
|
|
9859
|
-
|
|
9860
9955
|
let SelectFieldComponent = class SelectFieldComponent extends BaseFieldComponent {
|
|
9861
9956
|
};
|
|
9862
9957
|
__decorate([
|
|
@@ -9975,32 +10070,6 @@ SliderFieldComponent = __decorate([
|
|
|
9975
10070
|
})
|
|
9976
10071
|
], SliderFieldComponent);
|
|
9977
10072
|
|
|
9978
|
-
let TextAreaFieldComponent = class TextAreaFieldComponent {
|
|
9979
|
-
constructor(changeDetectorRef) {
|
|
9980
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
9981
|
-
}
|
|
9982
|
-
ngAfterViewInit() {
|
|
9983
|
-
this.changeDetectorRef.detectChanges();
|
|
9984
|
-
}
|
|
9985
|
-
};
|
|
9986
|
-
TextAreaFieldComponent.ctorParameters = () => [
|
|
9987
|
-
{ type: ChangeDetectorRef }
|
|
9988
|
-
];
|
|
9989
|
-
__decorate([
|
|
9990
|
-
Input()
|
|
9991
|
-
], TextAreaFieldComponent.prototype, "field", void 0);
|
|
9992
|
-
__decorate([
|
|
9993
|
-
Input()
|
|
9994
|
-
], TextAreaFieldComponent.prototype, "formControl", void 0);
|
|
9995
|
-
__decorate([
|
|
9996
|
-
ViewChild('inputRef')
|
|
9997
|
-
], TextAreaFieldComponent.prototype, "inputRef", void 0);
|
|
9998
|
-
TextAreaFieldComponent = __decorate([
|
|
9999
|
-
Component({
|
|
10000
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n\n<textarea #inputRef\n [id]=\"(field.id || field.name)\"\n *ngIf=\"!field.keyFilter\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n></textarea>\n<textarea #inputRef\n [id]=\"(field.id || field.name)\"\n *ngIf=\"field.keyFilter\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [pKeyFilter]=\"field.keyFilter\"\n [ngStyle]=\"field.style\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n></textarea>\n"
|
|
10001
|
-
})
|
|
10002
|
-
], TextAreaFieldComponent);
|
|
10003
|
-
|
|
10004
10073
|
let TextAreaIAFieldComponent = class TextAreaIAFieldComponent {
|
|
10005
10074
|
constructor(_iassistService, _formBuilder, _translateService) {
|
|
10006
10075
|
this._iassistService = _iassistService;
|
|
@@ -10079,6 +10148,86 @@ TextAreaIAFieldComponent = __decorate([
|
|
|
10079
10148
|
})
|
|
10080
10149
|
], TextAreaIAFieldComponent);
|
|
10081
10150
|
|
|
10151
|
+
let TextAreaFieldComponent = class TextAreaFieldComponent {
|
|
10152
|
+
constructor(changeDetectorRef) {
|
|
10153
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
10154
|
+
}
|
|
10155
|
+
ngAfterViewInit() {
|
|
10156
|
+
this.changeDetectorRef.detectChanges();
|
|
10157
|
+
}
|
|
10158
|
+
};
|
|
10159
|
+
TextAreaFieldComponent.ctorParameters = () => [
|
|
10160
|
+
{ type: ChangeDetectorRef }
|
|
10161
|
+
];
|
|
10162
|
+
__decorate([
|
|
10163
|
+
Input()
|
|
10164
|
+
], TextAreaFieldComponent.prototype, "field", void 0);
|
|
10165
|
+
__decorate([
|
|
10166
|
+
Input()
|
|
10167
|
+
], TextAreaFieldComponent.prototype, "formControl", void 0);
|
|
10168
|
+
__decorate([
|
|
10169
|
+
ViewChild('inputRef')
|
|
10170
|
+
], TextAreaFieldComponent.prototype, "inputRef", void 0);
|
|
10171
|
+
TextAreaFieldComponent = __decorate([
|
|
10172
|
+
Component({
|
|
10173
|
+
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n\n<textarea #inputRef\n [id]=\"(field.id || field.name)\"\n *ngIf=\"!field.keyFilter\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n></textarea>\n<textarea #inputRef\n [id]=\"(field.id || field.name)\"\n *ngIf=\"field.keyFilter\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [pKeyFilter]=\"field.keyFilter\"\n [ngStyle]=\"field.style\"\n [readonly]=\"field.readonly ? field.readonly() : false\"\n></textarea>\n"
|
|
10174
|
+
})
|
|
10175
|
+
], TextAreaFieldComponent);
|
|
10176
|
+
|
|
10177
|
+
let FieldsetComponent = class FieldsetComponent {
|
|
10178
|
+
};
|
|
10179
|
+
__decorate([
|
|
10180
|
+
Input()
|
|
10181
|
+
], FieldsetComponent.prototype, "id", void 0);
|
|
10182
|
+
__decorate([
|
|
10183
|
+
Input()
|
|
10184
|
+
], FieldsetComponent.prototype, "config", void 0);
|
|
10185
|
+
__decorate([
|
|
10186
|
+
Input()
|
|
10187
|
+
], FieldsetComponent.prototype, "group", void 0);
|
|
10188
|
+
__decorate([
|
|
10189
|
+
Input()
|
|
10190
|
+
], FieldsetComponent.prototype, "errorMessages", void 0);
|
|
10191
|
+
FieldsetComponent = __decorate([
|
|
10192
|
+
Component({
|
|
10193
|
+
selector: "s-fieldset",
|
|
10194
|
+
template: `
|
|
10195
|
+
<p-fieldset [toggleable]="true" (onBeforeToggle)="config.beforeToggle ? config.beforeToggle($event) : 'null'"
|
|
10196
|
+
(onAfterToggle)="config.afterToggle ? config.afterToggle($event) : 'null'">
|
|
10197
|
+
<p-header>{{config.header}}</p-header>
|
|
10198
|
+
<ng-container *ngFor="let conf of config.configs">
|
|
10199
|
+
<ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>
|
|
10200
|
+
</ng-container>
|
|
10201
|
+
</p-fieldset>
|
|
10202
|
+
`
|
|
10203
|
+
})
|
|
10204
|
+
], FieldsetComponent);
|
|
10205
|
+
|
|
10206
|
+
let SectionComponent = class SectionComponent {
|
|
10207
|
+
};
|
|
10208
|
+
__decorate([
|
|
10209
|
+
Input()
|
|
10210
|
+
], SectionComponent.prototype, "id", void 0);
|
|
10211
|
+
__decorate([
|
|
10212
|
+
Input()
|
|
10213
|
+
], SectionComponent.prototype, "config", void 0);
|
|
10214
|
+
__decorate([
|
|
10215
|
+
Input()
|
|
10216
|
+
], SectionComponent.prototype, "group", void 0);
|
|
10217
|
+
__decorate([
|
|
10218
|
+
Input()
|
|
10219
|
+
], SectionComponent.prototype, "errorMessages", void 0);
|
|
10220
|
+
SectionComponent = __decorate([
|
|
10221
|
+
Component({
|
|
10222
|
+
template: `
|
|
10223
|
+
<h3 *ngIf="config?.header" class="sds-section-title">{{config.header}}</h3>
|
|
10224
|
+
<ng-container *ngFor="let conf of config.configs">
|
|
10225
|
+
<ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>
|
|
10226
|
+
</ng-container>
|
|
10227
|
+
`
|
|
10228
|
+
})
|
|
10229
|
+
], SectionComponent);
|
|
10230
|
+
|
|
10082
10231
|
let RowComponent = class RowComponent {
|
|
10083
10232
|
constructor() { }
|
|
10084
10233
|
ngOnInit() { }
|
|
@@ -10440,42 +10589,170 @@ let TextFieldComponent = class TextFieldComponent extends BaseFieldComponent {
|
|
|
10440
10589
|
this.field.onComplete(event);
|
|
10441
10590
|
});
|
|
10442
10591
|
}
|
|
10443
|
-
ngAfterViewInit() {
|
|
10444
|
-
this.changeDetectorRef.detectChanges();
|
|
10445
|
-
}
|
|
10446
|
-
ngOnDestroy() {
|
|
10447
|
-
this.ngUnsubscribe.next();
|
|
10448
|
-
this.ngUnsubscribe.complete();
|
|
10592
|
+
ngAfterViewInit() {
|
|
10593
|
+
this.changeDetectorRef.detectChanges();
|
|
10594
|
+
}
|
|
10595
|
+
ngOnDestroy() {
|
|
10596
|
+
this.ngUnsubscribe.next();
|
|
10597
|
+
this.ngUnsubscribe.complete();
|
|
10598
|
+
}
|
|
10599
|
+
};
|
|
10600
|
+
TextFieldComponent.ctorParameters = () => [
|
|
10601
|
+
{ type: ChangeDetectorRef }
|
|
10602
|
+
];
|
|
10603
|
+
__decorate([
|
|
10604
|
+
Input()
|
|
10605
|
+
], TextFieldComponent.prototype, "field", void 0);
|
|
10606
|
+
__decorate([
|
|
10607
|
+
Input()
|
|
10608
|
+
], TextFieldComponent.prototype, "formControl", void 0);
|
|
10609
|
+
__decorate([
|
|
10610
|
+
Output()
|
|
10611
|
+
], TextFieldComponent.prototype, "onInput", void 0);
|
|
10612
|
+
__decorate([
|
|
10613
|
+
Output()
|
|
10614
|
+
], TextFieldComponent.prototype, "onFocus", void 0);
|
|
10615
|
+
__decorate([
|
|
10616
|
+
Output()
|
|
10617
|
+
], TextFieldComponent.prototype, "onComplete", void 0);
|
|
10618
|
+
__decorate([
|
|
10619
|
+
ViewChild('inputRef')
|
|
10620
|
+
], TextFieldComponent.prototype, "inputRef", void 0);
|
|
10621
|
+
TextFieldComponent = __decorate([
|
|
10622
|
+
Component({
|
|
10623
|
+
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n\n<p-inputMask #inputRef\n *ngIf=\"field.mask; else noMask\"\n [type]=\"field.inputType || 'text'\"\n [inputId]=\"field.id || field.name\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.mask() : field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [readonly]=\"field.readonly ? field.readonly() : false\">\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled(): field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{ field.leftAddon.label }}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container> \n\n <ng-container *ngTemplateOutlet=\"field.keyFilter ? inputKeyFilter : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{ field.rightAddon.label }}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container> \n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input #inputRef\n [type]=\"field.inputType || 'text'\"\n [id]=\"field.id || field.name\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\"\n [readOnly]=\"field.readonly ? field.readonly() : false\" />\n</ng-template>\n<ng-template #inputKeyFilter>\n <input #inputText\n [type]=\"field.inputType || 'text'\"\n [id]=\"field.id || field.name\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [pKeyFilter]=\"field.keyFilter\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\"\n [readOnly]=\"field.readonly ? field.readonly() : false\" />\n</ng-template>\n",
|
|
10624
|
+
encapsulation: ViewEncapsulation.None,
|
|
10625
|
+
styles: ["s-text-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-text-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
|
|
10626
|
+
})
|
|
10627
|
+
], TextFieldComponent);
|
|
10628
|
+
|
|
10629
|
+
let CodeEditorFieldComponent = class CodeEditorFieldComponent {
|
|
10630
|
+
};
|
|
10631
|
+
__decorate([
|
|
10632
|
+
Input()
|
|
10633
|
+
], CodeEditorFieldComponent.prototype, "field", void 0);
|
|
10634
|
+
__decorate([
|
|
10635
|
+
Input()
|
|
10636
|
+
], CodeEditorFieldComponent.prototype, "formControl", void 0);
|
|
10637
|
+
CodeEditorFieldComponent = __decorate([
|
|
10638
|
+
Component({
|
|
10639
|
+
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<s-code-editor\n [editorOptions]=\"field.editorOptions\"\n [(code)]=\"field.code\"\n [formControl]=\"formControl\"\n (onComponentFinishLoad)=\"field.onComponentFinishLoad ? field.onComponentFinishLoad($event) : null\"\n (onCodeChange)=\"field.onCodeChange ? field.onCodeChange($event) : null\">\n</s-code-editor>"
|
|
10640
|
+
})
|
|
10641
|
+
], CodeEditorFieldComponent);
|
|
10642
|
+
|
|
10643
|
+
let CheckboxFieldComponent = class CheckboxFieldComponent {
|
|
10644
|
+
};
|
|
10645
|
+
__decorate([
|
|
10646
|
+
Input()
|
|
10647
|
+
], CheckboxFieldComponent.prototype, "field", void 0);
|
|
10648
|
+
__decorate([
|
|
10649
|
+
Input()
|
|
10650
|
+
], CheckboxFieldComponent.prototype, "formControl", void 0);
|
|
10651
|
+
CheckboxFieldComponent = __decorate([
|
|
10652
|
+
Component({
|
|
10653
|
+
template: "<s-checkbox\n [data]=\"field.data\"\n [formControl]=\"formControl\">\n</s-checkbox>"
|
|
10654
|
+
})
|
|
10655
|
+
], CheckboxFieldComponent);
|
|
10656
|
+
|
|
10657
|
+
let NumberFieldComponent = class NumberFieldComponent extends BaseFieldComponent {
|
|
10658
|
+
constructor(localeService, elementRef, changeDetectorRef) {
|
|
10659
|
+
super();
|
|
10660
|
+
this.localeService = localeService;
|
|
10661
|
+
this.elementRef = elementRef;
|
|
10662
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
10663
|
+
this.onInput = new EventEmitter();
|
|
10664
|
+
this.onFocus = new EventEmitter();
|
|
10665
|
+
this.onComplete = new EventEmitter();
|
|
10666
|
+
this.ngUnsubscribe = new Subject();
|
|
10667
|
+
}
|
|
10668
|
+
ngOnInit() {
|
|
10669
|
+
this.onLocaleService();
|
|
10670
|
+
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10671
|
+
if (this.field.onFocus)
|
|
10672
|
+
this.field.onFocus(event);
|
|
10673
|
+
});
|
|
10674
|
+
this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10675
|
+
if (this.field.onInput)
|
|
10676
|
+
this.field.onInput(event);
|
|
10677
|
+
});
|
|
10678
|
+
this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10679
|
+
if (this.field.onComplete)
|
|
10680
|
+
this.field.onComplete(event);
|
|
10681
|
+
});
|
|
10682
|
+
}
|
|
10683
|
+
ngAfterViewInit() {
|
|
10684
|
+
this.setInputRef();
|
|
10685
|
+
this.changeDetectorRef.detectChanges();
|
|
10686
|
+
}
|
|
10687
|
+
ngOnDestroy() {
|
|
10688
|
+
this.ngUnsubscribe.next();
|
|
10689
|
+
this.ngUnsubscribe.complete();
|
|
10690
|
+
}
|
|
10691
|
+
get numberAlignmentOption() {
|
|
10692
|
+
return NumberAlignmentOption;
|
|
10693
|
+
}
|
|
10694
|
+
get fieldType() {
|
|
10695
|
+
return FieldType;
|
|
10696
|
+
}
|
|
10697
|
+
onLocaleService() {
|
|
10698
|
+
this.localeService
|
|
10699
|
+
.getLocale()
|
|
10700
|
+
.pipe(first())
|
|
10701
|
+
.subscribe({
|
|
10702
|
+
next: () => {
|
|
10703
|
+
var _a, _b, _c;
|
|
10704
|
+
if (!((_a = this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
|
|
10705
|
+
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { decimalSeparator: this.localeService.getDecimalSeparator() });
|
|
10706
|
+
}
|
|
10707
|
+
if (!((_b = this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
|
|
10708
|
+
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { thousandsSeparator: this.localeService.getGroupingSeparator() });
|
|
10709
|
+
}
|
|
10710
|
+
if (!((_c = this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
|
|
10711
|
+
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { currencySymbol: "R$" });
|
|
10712
|
+
}
|
|
10713
|
+
},
|
|
10714
|
+
error: () => {
|
|
10715
|
+
var _a;
|
|
10716
|
+
return (this.field.numberLocaleOptions = (_a = this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
|
|
10717
|
+
thousandsSeparator: ".",
|
|
10718
|
+
decimalSeparator: ",",
|
|
10719
|
+
currencySymbol: "R$",
|
|
10720
|
+
});
|
|
10721
|
+
},
|
|
10722
|
+
});
|
|
10723
|
+
}
|
|
10724
|
+
setInputRef() {
|
|
10725
|
+
const input = this.elementRef.nativeElement.querySelector("input");
|
|
10726
|
+
this.inputRef = input;
|
|
10449
10727
|
}
|
|
10450
10728
|
};
|
|
10451
|
-
|
|
10729
|
+
NumberFieldComponent.ctorParameters = () => [
|
|
10730
|
+
{ type: LocaleService },
|
|
10731
|
+
{ type: ElementRef },
|
|
10452
10732
|
{ type: ChangeDetectorRef }
|
|
10453
10733
|
];
|
|
10454
10734
|
__decorate([
|
|
10455
10735
|
Input()
|
|
10456
|
-
],
|
|
10736
|
+
], NumberFieldComponent.prototype, "field", void 0);
|
|
10457
10737
|
__decorate([
|
|
10458
10738
|
Input()
|
|
10459
|
-
],
|
|
10739
|
+
], NumberFieldComponent.prototype, "formControl", void 0);
|
|
10460
10740
|
__decorate([
|
|
10461
10741
|
Output()
|
|
10462
|
-
],
|
|
10742
|
+
], NumberFieldComponent.prototype, "onInput", void 0);
|
|
10463
10743
|
__decorate([
|
|
10464
10744
|
Output()
|
|
10465
|
-
],
|
|
10745
|
+
], NumberFieldComponent.prototype, "onFocus", void 0);
|
|
10466
10746
|
__decorate([
|
|
10467
10747
|
Output()
|
|
10468
|
-
],
|
|
10469
|
-
__decorate([
|
|
10470
|
-
ViewChild('inputRef')
|
|
10471
|
-
], TextFieldComponent.prototype, "inputRef", void 0);
|
|
10472
|
-
TextFieldComponent = __decorate([
|
|
10748
|
+
], NumberFieldComponent.prototype, "onComplete", void 0);
|
|
10749
|
+
NumberFieldComponent = __decorate([
|
|
10473
10750
|
Component({
|
|
10474
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef
|
|
10751
|
+
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef\"></s-field-label>\n\n<p-inputMask #inputRef\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.mask() : field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
|
|
10475
10752
|
encapsulation: ViewEncapsulation.None,
|
|
10476
|
-
styles: ["s-
|
|
10753
|
+
styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
|
|
10477
10754
|
})
|
|
10478
|
-
],
|
|
10755
|
+
], NumberFieldComponent);
|
|
10479
10756
|
|
|
10480
10757
|
let ProfilePictureFieldComponent = class ProfilePictureFieldComponent {
|
|
10481
10758
|
};
|
|
@@ -10570,8 +10847,12 @@ class DynamicField extends DynamicForm {
|
|
|
10570
10847
|
return TextFieldComponent;
|
|
10571
10848
|
case FieldType.Boolean:
|
|
10572
10849
|
return this.field.representedBy === "switch" ? BooleanSwitchFieldComponent : BooleanFieldComponent;
|
|
10850
|
+
case FieldType.Checkbox:
|
|
10851
|
+
return CheckboxFieldComponent;
|
|
10573
10852
|
case FieldType.Chips:
|
|
10574
10853
|
return ChipsFieldComponent;
|
|
10854
|
+
case FieldType.CodeEditor:
|
|
10855
|
+
return CodeEditorFieldComponent;
|
|
10575
10856
|
case FieldType.CountryPhonePicker:
|
|
10576
10857
|
return CountryPhonePickerFieldComponent;
|
|
10577
10858
|
case FieldType.Date:
|
|
@@ -10776,144 +11057,64 @@ FieldLabelModule = __decorate([
|
|
|
10776
11057
|
})
|
|
10777
11058
|
], FieldLabelModule);
|
|
10778
11059
|
|
|
10779
|
-
let
|
|
11060
|
+
let BignumberFieldModule = class BignumberFieldModule {
|
|
10780
11061
|
};
|
|
10781
|
-
|
|
11062
|
+
BignumberFieldModule = __decorate([
|
|
10782
11063
|
NgModule({
|
|
10783
11064
|
imports: [
|
|
10784
11065
|
CommonModule,
|
|
10785
11066
|
FormsModule,
|
|
10786
11067
|
ReactiveFormsModule,
|
|
10787
11068
|
ButtonModule,
|
|
11069
|
+
BignumberInputModule,
|
|
10788
11070
|
TooltipModule,
|
|
10789
|
-
|
|
11071
|
+
InputMaskModule,
|
|
10790
11072
|
InputTextModule,
|
|
10791
11073
|
FieldLabelModule
|
|
10792
11074
|
],
|
|
10793
|
-
declarations: [
|
|
10794
|
-
exports: [
|
|
11075
|
+
declarations: [BignumberFieldComponent],
|
|
11076
|
+
exports: [BignumberFieldComponent],
|
|
10795
11077
|
})
|
|
10796
|
-
],
|
|
11078
|
+
], BignumberFieldModule);
|
|
10797
11079
|
|
|
10798
|
-
let
|
|
11080
|
+
let CheckboxFieldModule = class CheckboxFieldModule {
|
|
10799
11081
|
};
|
|
10800
|
-
|
|
11082
|
+
CheckboxFieldModule = __decorate([
|
|
11083
|
+
NgModule({
|
|
11084
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, CheckboxModule],
|
|
11085
|
+
declarations: [CheckboxFieldComponent],
|
|
11086
|
+
exports: [CheckboxFieldComponent],
|
|
11087
|
+
})
|
|
11088
|
+
], CheckboxFieldModule);
|
|
11089
|
+
|
|
11090
|
+
let CurrencyFieldModule = class CurrencyFieldModule {
|
|
11091
|
+
};
|
|
11092
|
+
CurrencyFieldModule = __decorate([
|
|
10801
11093
|
NgModule({
|
|
10802
11094
|
imports: [
|
|
10803
11095
|
CommonModule,
|
|
10804
11096
|
FormsModule,
|
|
10805
11097
|
ReactiveFormsModule,
|
|
10806
|
-
|
|
11098
|
+
NumberInputModule,
|
|
10807
11099
|
TooltipModule,
|
|
10808
11100
|
InputMaskModule,
|
|
10809
11101
|
InputTextModule,
|
|
10810
|
-
KeyFilterModule,
|
|
10811
11102
|
FieldLabelModule
|
|
10812
11103
|
],
|
|
10813
|
-
declarations: [
|
|
10814
|
-
exports: [
|
|
11104
|
+
declarations: [CurrencyFieldComponent],
|
|
11105
|
+
exports: [CurrencyFieldComponent],
|
|
10815
11106
|
})
|
|
10816
|
-
],
|
|
11107
|
+
], CurrencyFieldModule);
|
|
10817
11108
|
|
|
10818
|
-
let
|
|
10819
|
-
constructor(localeService, elementRef, changeDetectorRef) {
|
|
10820
|
-
super();
|
|
10821
|
-
this.localeService = localeService;
|
|
10822
|
-
this.elementRef = elementRef;
|
|
10823
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
10824
|
-
this.onInput = new EventEmitter();
|
|
10825
|
-
this.onFocus = new EventEmitter();
|
|
10826
|
-
this.onComplete = new EventEmitter();
|
|
10827
|
-
this.ngUnsubscribe = new Subject();
|
|
10828
|
-
}
|
|
10829
|
-
ngOnInit() {
|
|
10830
|
-
this.onLocaleService();
|
|
10831
|
-
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10832
|
-
if (this.field.onFocus)
|
|
10833
|
-
this.field.onFocus(event);
|
|
10834
|
-
});
|
|
10835
|
-
this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10836
|
-
if (this.field.onInput)
|
|
10837
|
-
this.field.onInput(event);
|
|
10838
|
-
});
|
|
10839
|
-
this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
10840
|
-
if (this.field.onComplete)
|
|
10841
|
-
this.field.onComplete(event);
|
|
10842
|
-
});
|
|
10843
|
-
}
|
|
10844
|
-
ngAfterViewInit() {
|
|
10845
|
-
this.setInputRef();
|
|
10846
|
-
this.changeDetectorRef.detectChanges();
|
|
10847
|
-
}
|
|
10848
|
-
ngOnDestroy() {
|
|
10849
|
-
this.ngUnsubscribe.next();
|
|
10850
|
-
this.ngUnsubscribe.complete();
|
|
10851
|
-
}
|
|
10852
|
-
get numberAlignmentOption() {
|
|
10853
|
-
return NumberAlignmentOption;
|
|
10854
|
-
}
|
|
10855
|
-
get fieldType() {
|
|
10856
|
-
return FieldType;
|
|
10857
|
-
}
|
|
10858
|
-
onLocaleService() {
|
|
10859
|
-
this.localeService
|
|
10860
|
-
.getLocale()
|
|
10861
|
-
.pipe(first())
|
|
10862
|
-
.subscribe({
|
|
10863
|
-
next: () => {
|
|
10864
|
-
var _a, _b, _c;
|
|
10865
|
-
if (!((_a = this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
|
|
10866
|
-
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { decimalSeparator: this.localeService.getDecimalSeparator() });
|
|
10867
|
-
}
|
|
10868
|
-
if (!((_b = this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
|
|
10869
|
-
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { thousandsSeparator: this.localeService.getGroupingSeparator() });
|
|
10870
|
-
}
|
|
10871
|
-
if (!((_c = this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
|
|
10872
|
-
this.field.numberLocaleOptions = Object.assign(Object.assign({}, this.field.numberLocaleOptions), { currencySymbol: "R$" });
|
|
10873
|
-
}
|
|
10874
|
-
},
|
|
10875
|
-
error: () => {
|
|
10876
|
-
var _a;
|
|
10877
|
-
return (this.field.numberLocaleOptions = (_a = this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
|
|
10878
|
-
thousandsSeparator: ".",
|
|
10879
|
-
decimalSeparator: ",",
|
|
10880
|
-
currencySymbol: "R$",
|
|
10881
|
-
});
|
|
10882
|
-
},
|
|
10883
|
-
});
|
|
10884
|
-
}
|
|
10885
|
-
setInputRef() {
|
|
10886
|
-
const input = this.elementRef.nativeElement.querySelector("input");
|
|
10887
|
-
this.inputRef = input;
|
|
10888
|
-
}
|
|
11109
|
+
let EditorFieldModule = class EditorFieldModule {
|
|
10889
11110
|
};
|
|
10890
|
-
|
|
10891
|
-
{
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
]
|
|
10895
|
-
__decorate([
|
|
10896
|
-
Input()
|
|
10897
|
-
], NumberFieldComponent.prototype, "field", void 0);
|
|
10898
|
-
__decorate([
|
|
10899
|
-
Input()
|
|
10900
|
-
], NumberFieldComponent.prototype, "formControl", void 0);
|
|
10901
|
-
__decorate([
|
|
10902
|
-
Output()
|
|
10903
|
-
], NumberFieldComponent.prototype, "onInput", void 0);
|
|
10904
|
-
__decorate([
|
|
10905
|
-
Output()
|
|
10906
|
-
], NumberFieldComponent.prototype, "onFocus", void 0);
|
|
10907
|
-
__decorate([
|
|
10908
|
-
Output()
|
|
10909
|
-
], NumberFieldComponent.prototype, "onComplete", void 0);
|
|
10910
|
-
NumberFieldComponent = __decorate([
|
|
10911
|
-
Component({
|
|
10912
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef\"></s-field-label>\n\n<p-inputMask #inputRef\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.mask() : field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
|
|
10913
|
-
encapsulation: ViewEncapsulation.None,
|
|
10914
|
-
styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
|
|
11111
|
+
EditorFieldModule = __decorate([
|
|
11112
|
+
NgModule({
|
|
11113
|
+
imports: [CommonModule, FormsModule, ReactiveFormsModule, EditorModule, FieldLabelModule],
|
|
11114
|
+
declarations: [EditorFieldComponent],
|
|
11115
|
+
exports: [EditorFieldComponent],
|
|
10915
11116
|
})
|
|
10916
|
-
],
|
|
11117
|
+
], EditorFieldModule);
|
|
10917
11118
|
|
|
10918
11119
|
let NumberFieldModule = class NumberFieldModule {
|
|
10919
11120
|
};
|
|
@@ -10936,44 +11137,24 @@ NumberFieldModule = __decorate([
|
|
|
10936
11137
|
})
|
|
10937
11138
|
], NumberFieldModule);
|
|
10938
11139
|
|
|
10939
|
-
let
|
|
10940
|
-
};
|
|
10941
|
-
CurrencyFieldModule = __decorate([
|
|
10942
|
-
NgModule({
|
|
10943
|
-
imports: [
|
|
10944
|
-
CommonModule,
|
|
10945
|
-
FormsModule,
|
|
10946
|
-
ReactiveFormsModule,
|
|
10947
|
-
NumberInputModule,
|
|
10948
|
-
TooltipModule,
|
|
10949
|
-
InputMaskModule,
|
|
10950
|
-
InputTextModule,
|
|
10951
|
-
FieldLabelModule
|
|
10952
|
-
],
|
|
10953
|
-
declarations: [CurrencyFieldComponent],
|
|
10954
|
-
exports: [CurrencyFieldComponent],
|
|
10955
|
-
})
|
|
10956
|
-
], CurrencyFieldModule);
|
|
10957
|
-
|
|
10958
|
-
let BignumberFieldModule = class BignumberFieldModule {
|
|
11140
|
+
let PasswordFieldModule = class PasswordFieldModule {
|
|
10959
11141
|
};
|
|
10960
|
-
|
|
11142
|
+
PasswordFieldModule = __decorate([
|
|
10961
11143
|
NgModule({
|
|
10962
11144
|
imports: [
|
|
10963
11145
|
CommonModule,
|
|
10964
11146
|
FormsModule,
|
|
10965
11147
|
ReactiveFormsModule,
|
|
10966
11148
|
ButtonModule,
|
|
10967
|
-
BignumberInputModule,
|
|
10968
11149
|
TooltipModule,
|
|
10969
|
-
|
|
11150
|
+
PasswordStrengthModule,
|
|
10970
11151
|
InputTextModule,
|
|
10971
11152
|
FieldLabelModule
|
|
10972
11153
|
],
|
|
10973
|
-
declarations: [
|
|
10974
|
-
exports: [
|
|
11154
|
+
declarations: [PasswordFieldComponent],
|
|
11155
|
+
exports: [PasswordFieldComponent],
|
|
10975
11156
|
})
|
|
10976
|
-
],
|
|
11157
|
+
], PasswordFieldModule);
|
|
10977
11158
|
|
|
10978
11159
|
let HeaderComponent = class HeaderComponent {
|
|
10979
11160
|
};
|
|
@@ -11695,15 +11876,35 @@ ProfilePictureModule = __decorate([
|
|
|
11695
11876
|
})
|
|
11696
11877
|
], ProfilePictureModule);
|
|
11697
11878
|
|
|
11698
|
-
let
|
|
11879
|
+
let TextFieldModule = class TextFieldModule {
|
|
11699
11880
|
};
|
|
11700
|
-
|
|
11881
|
+
TextFieldModule = __decorate([
|
|
11701
11882
|
NgModule({
|
|
11702
|
-
imports: [
|
|
11703
|
-
|
|
11704
|
-
|
|
11883
|
+
imports: [
|
|
11884
|
+
CommonModule,
|
|
11885
|
+
FormsModule,
|
|
11886
|
+
ReactiveFormsModule,
|
|
11887
|
+
ButtonModule,
|
|
11888
|
+
TooltipModule,
|
|
11889
|
+
InputMaskModule,
|
|
11890
|
+
InputTextModule,
|
|
11891
|
+
KeyFilterModule,
|
|
11892
|
+
FieldLabelModule
|
|
11893
|
+
],
|
|
11894
|
+
declarations: [TextFieldComponent],
|
|
11895
|
+
exports: [TextFieldComponent],
|
|
11705
11896
|
})
|
|
11706
|
-
],
|
|
11897
|
+
], TextFieldModule);
|
|
11898
|
+
|
|
11899
|
+
let CodeEditorFieldModule = class CodeEditorFieldModule {
|
|
11900
|
+
};
|
|
11901
|
+
CodeEditorFieldModule = __decorate([
|
|
11902
|
+
NgModule({
|
|
11903
|
+
imports: [CommonModule, FieldLabelModule, CodeEditorModule, FormsModule, ReactiveFormsModule],
|
|
11904
|
+
declarations: [CodeEditorFieldComponent],
|
|
11905
|
+
exports: [CodeEditorFieldComponent],
|
|
11906
|
+
})
|
|
11907
|
+
], CodeEditorFieldModule);
|
|
11707
11908
|
|
|
11708
11909
|
let DynamicFormModule = class DynamicFormModule {
|
|
11709
11910
|
};
|
|
@@ -11716,7 +11917,7 @@ DynamicFormModule = __decorate([
|
|
|
11716
11917
|
ButtonModule,
|
|
11717
11918
|
CalendarMaskModule,
|
|
11718
11919
|
CalendarModule,
|
|
11719
|
-
CheckboxModule,
|
|
11920
|
+
CheckboxModule$1,
|
|
11720
11921
|
ChipsModule,
|
|
11721
11922
|
CommonModule,
|
|
11722
11923
|
ControlErrorsModule,
|
|
@@ -11753,14 +11954,16 @@ DynamicFormModule = __decorate([
|
|
|
11753
11954
|
PasswordStrengthModule,
|
|
11754
11955
|
SliderModule,
|
|
11755
11956
|
TranslateModule.forChild(),
|
|
11957
|
+
CodeEditorFieldModule,
|
|
11756
11958
|
PasswordFieldModule,
|
|
11757
11959
|
TextFieldModule,
|
|
11758
11960
|
NumberFieldModule,
|
|
11759
11961
|
CurrencyFieldModule,
|
|
11760
11962
|
BignumberFieldModule,
|
|
11963
|
+
CheckboxFieldModule,
|
|
11761
11964
|
ProfilePictureModule,
|
|
11762
11965
|
EditorFieldModule,
|
|
11763
|
-
FieldLabelModule
|
|
11966
|
+
FieldLabelModule,
|
|
11764
11967
|
],
|
|
11765
11968
|
declarations: [
|
|
11766
11969
|
AutocompleteFieldComponent,
|
|
@@ -11785,24 +11988,6 @@ DynamicFormModule = __decorate([
|
|
|
11785
11988
|
TextAreaIAFieldComponent,
|
|
11786
11989
|
],
|
|
11787
11990
|
exports: [DynamicFormComponent, LookupComponent],
|
|
11788
|
-
entryComponents: [
|
|
11789
|
-
AutocompleteFieldComponent,
|
|
11790
|
-
BooleanFieldComponent,
|
|
11791
|
-
BooleanSwitchFieldComponent,
|
|
11792
|
-
CalendarFieldComponent,
|
|
11793
|
-
ChipsFieldComponent,
|
|
11794
|
-
CountryPhonePickerFieldComponent,
|
|
11795
|
-
FieldsetComponent,
|
|
11796
|
-
FileUploadComponent$1,
|
|
11797
|
-
LookupFieldComponent,
|
|
11798
|
-
RadioButtonComponent,
|
|
11799
|
-
RowComponent,
|
|
11800
|
-
SectionComponent,
|
|
11801
|
-
SelectFieldComponent,
|
|
11802
|
-
SliderFieldComponent,
|
|
11803
|
-
TextAreaFieldComponent,
|
|
11804
|
-
TextAreaIAFieldComponent,
|
|
11805
|
-
],
|
|
11806
11991
|
providers: [
|
|
11807
11992
|
HotkeysService,
|
|
11808
11993
|
IAssistService,
|
|
@@ -18320,5 +18505,5 @@ const fallback = {
|
|
|
18320
18505
|
* Generated bundle index. Do not edit.
|
|
18321
18506
|
*/
|
|
18322
18507
|
|
|
18323
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba,
|
|
18508
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, CheckboxComponent, CheckboxModule, ChipsField, CodeEditorField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, InlineEditCalendarField, InlineEditComponent, InlineEditField, InlineEditLookupField, InlineEditModule, InlineEditNumberField, InlineEditTextAreaField, InlineEditTextAreaIAField, InlineEditTextField, KanbanComponent, KanbanModule, KanbanTemplateTypes, LabelValueComponent, LabelValueModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, NumericService, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TemplateDirective, TemplateModule, TextAreaField, TextAreaIAComponent, TextAreaIAModule, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TablePagingComponent as ɵba, CodeEditorFieldModule as ɵbb, FieldLabelModule as ɵbc, InfoSignModule as ɵbd, FieldLabelComponent as ɵbe, CodeEditorFieldComponent as ɵbf, PasswordFieldModule as ɵbg, PasswordFieldComponent as ɵbh, TextFieldModule as ɵbi, TextFieldComponent as ɵbj, NumberFieldModule as ɵbk, LocalizedNumberInputModule as ɵbl, NumberInputModule as ɵbm, NumberFieldComponent as ɵbn, CurrencyFieldModule as ɵbo, CurrencyFieldComponent as ɵbp, BignumberFieldModule as ɵbq, BignumberInputModule as ɵbr, BignumberFieldComponent as ɵbs, CheckboxFieldModule as ɵbt, CheckboxFieldComponent as ɵbu, ProfilePictureModule as ɵbv, ThumbnailService as ɵbw, StructureModule as ɵbx, HeaderComponent as ɵby, FooterComponent as ɵbz, TieredMenuEventService as ɵc, ProfilePictureFieldComponent as ɵca, EditorFieldModule as ɵcb, EditorFieldComponent as ɵcc, AutocompleteFieldComponent as ɵcd, BooleanFieldComponent as ɵce, BooleanSwitchFieldComponent as ɵcf, CalendarFieldComponent as ɵcg, ChipsFieldComponent as ɵch, CountryPhonePickerFieldComponent as ɵci, DynamicFieldComponent as ɵcj, DynamicFormDirective as ɵck, FieldsetComponent as ɵcl, FileUploadComponent$1 as ɵcm, LookupFieldComponent as ɵcn, RadioButtonComponent as ɵco, RowComponent as ɵcp, SectionComponent as ɵcq, SelectFieldComponent as ɵcr, SliderFieldComponent as ɵcs, TextAreaFieldComponent as ɵct, TextAreaIAFieldComponent as ɵcu, IAssistService as ɵcv, DecimalField as ɵcx, SideTableComponent as ɵcy, InfiniteScrollModule as ɵcz, TieredMenuService as ɵd, InfiniteScrollDirective as ɵda, IAInsightSidebarComponent as ɵdb, IAInsightCardComponent as ɵdc, IAInsightCardLoaderComponent as ɵdd, InlineEditItemComponent as ɵde, LocaleService as ɵdf, InlineEditCalendarComponent as ɵdg, InlineEditLookupComponent as ɵdh, InlineEditNumberComponent as ɵdi, InlineEditTextComponent as ɵdj, InlineEditTextAreaComponent as ɵdk, InlineEditTextAreaIAComponent as ɵdl, KanbanEventService as ɵdm, KanbanItemComponent as ɵdn, KanbanColumnComponent as ɵdo, KanbanItemDraggingComponent as ɵdp, NumberLocaleOptions as ɵdq, BorderButtonModule as ɵdr, BorderButtonComponent as ɵds, ProgressBarDeterminateComponent as ɵdt, ProgressBarIndeterminateComponent as ɵdu, SelectButtonItemComponent as ɵdv, SlidePanelService as ɵdw, TimelineItemModule as ɵdx, TimelineIconItemComponent as ɵdy, HorizontalTimelineModule as ɵdz, TieredMenuGlobalService as ɵe, HorizontalTimelineComponent as ɵea, VerticalTimelineModule as ɵeb, VerticalTimelineComponent as ɵec, RangeLineComponent as ɵed, CollapseOptionComponent as ɵee, CollapsedItemsComponent as ɵef, VerticalItemsComponent as ɵeg, TieredMenuComponent as ɵf, TieredMenuNestedComponent as ɵg, TieredMenuItemComponent as ɵh, TieredMenuDividerComponent as ɵi, CustomTranslationsModule as ɵj, CodeEditorComponent as ɵk, CoreFacade as ɵl, CodeMirror6Core as ɵm, CountryPhonePickerService as ɵn, LocalizedCurrencyImpurePipe as ɵo, LocalizedBignumberPipe as ɵp, LocalizedBignumberImpurePipe as ɵq, NumericPipe as ɵr, EmptyStateGoBackComponent as ɵs, IAssistIconComponent as ɵt, SeniorIconComponent as ɵu, DotsIndicatorComponent as ɵv, LoadingIndicatorComponent as ɵw, FileUploadService as ɵx, InfoSignComponent as ɵy, TableColumnsComponent as ɵz };
|
|
18324
18509
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|