@apipass/schemas 0.2.5-alpha.9 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/apipass-schemas.umd.js +192 -407
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +2 -2
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +41 -56
- package/esm2015/schema-fields.service.js +10 -18
- package/esm2015/schema-form/schema-array/array-session/array-session.js +37 -39
- package/esm2015/schema-form/schema-array/schema-array.js +31 -70
- package/esm2015/schema-form/schema-form.js +9 -51
- package/esm2015/schema-form/schema-input/field-render/field-render.js +19 -21
- package/esm2015/schema-form/schema-input/input-render/input-render.js +11 -18
- package/esm2015/schema-form/schema-input/schema-input.js +14 -27
- package/esm2015/schema-form/schema-object/schema-object.js +14 -54
- package/esm2015/schema-form-render.js +14 -54
- package/esm2015/schema-form-render.module.js +9 -4
- package/esm2015/schema-validation-field.js +1 -1
- package/fesm2015/apipass-schemas.js +187 -401
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema-custom-attributes/schema-custom-attributes.d.ts +1 -7
- package/schema-fields.service.d.ts +4 -7
- package/schema-form/schema-array/array-session/array-session.d.ts +2 -4
- package/schema-form/schema-array/schema-array.d.ts +1 -15
- package/schema-form/schema-form.d.ts +1 -15
- package/schema-form/schema-input/field-render/field-render.d.ts +1 -2
- package/schema-form/schema-input/input-render/input-render.d.ts +1 -5
- package/schema-form/schema-input/schema-input.d.ts +1 -6
- package/schema-form/schema-object/schema-object.d.ts +1 -15
- package/schema-form-render.d.ts +1 -15
- package/schema-form-render.module.d.ts +3 -2
- package/schema-validation-field.d.ts +1 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, ɵɵdefineComponent, ɵsetClassMetadata, Component, Input, Output, ɵɵgetCurrentView, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵadvance, ɵɵproperty, ɵɵpureFunction0, ɵɵelementContainer, ɵɵtemplate, ɵɵtextInterpolate2, ɵɵpureFunction1, ɵɵpureFunction3, ɵɵtextInterpolate, ɵɵcontentQuery, TemplateRef, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵInheritDefinitionFeature, ɵɵgetInheritedFactory, ContentChild, ɵɵelement, ɵɵtextInterpolate1, ɵɵtemplateRefExtractor, ɵɵreference, ɵɵpropertyInterpolate, ɵɵprojectionDef, ɵɵprojection, ɵɵdefineInjectable, Injectable, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule, ɵɵsetComponentScope } from '@angular/core';
|
|
1
|
+
import { EventEmitter, ɵɵdefineComponent, ɵsetClassMetadata, Component, Input, Output, ɵɵgetCurrentView, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵadvance, ɵɵproperty, ɵɵpureFunction0, ɵɵelementContainer, ɵɵpipe, ɵɵtemplate, ɵɵtextInterpolate2, ɵɵpipeBind1, ɵɵpureFunction1, ɵɵpureFunction3, ɵɵtextInterpolate, ɵɵcontentQuery, TemplateRef, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵInheritDefinitionFeature, ɵɵgetInheritedFactory, ContentChild, ɵɵelement, ɵɵtextInterpolate1, ɵɵtemplateRefExtractor, ɵɵreference, ɵɵpropertyInterpolate, ɵɵprojectionDef, ɵɵprojection, ɵɵinject, ɵɵdefineInjectable, Injectable, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule, ɵɵsetComponentScope } from '@angular/core';
|
|
2
2
|
import { NgForOf, NgIf, NgTemplateOutlet, NgClass, CommonModule, NgComponentOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe } from '@angular/common';
|
|
3
3
|
import { DefaultValueAccessor, NgControlStatus, NgModel, MaxLengthValidator, FormsModule, ɵangular_packages_forms_forms_y, NgSelectOption, ɵangular_packages_forms_forms_x, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatusGroup, RequiredValidator, MinLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, NgModelGroup, NgForm, FormControl, Validators } from '@angular/forms';
|
|
4
|
+
import { TranslatePipe, TranslateService, TranslateModule, TranslateDirective } from '@ngx-translate/core';
|
|
4
5
|
import { DndDropzoneDirective, DndModule, DndDraggableDirective, DndHandleDirective, DndPlaceholderRefDirective, DndDragImageRefDirective } from 'ngx-drag-drop';
|
|
5
6
|
import { MatTooltip, MatTooltipModule, TooltipComponent } from '@angular/material/tooltip';
|
|
6
7
|
import { SelectBoxComponent, InputsModule, SelectEnumComponent, InputTextComponent, InputPasswordComponent, InputAvatarComponent, InputFileComponent, CustomSelectComponent, FieldComponent } from '@apipass/inputs';
|
|
@@ -54,7 +55,7 @@ function onDropStruct(event, attr) {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
const _c0 = function () { return { standalone: true }; };
|
|
57
|
-
function
|
|
58
|
+
function ArraySessionComponent_div_5_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
58
59
|
const _r8 = ɵɵgetCurrentView();
|
|
59
60
|
ɵɵelementStart(0, "div", 0);
|
|
60
61
|
ɵɵelementStart(1, "div", 12);
|
|
@@ -62,7 +63,7 @@ function ArraySessionComponent_div_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
62
63
|
ɵɵtext(3, "Loop");
|
|
63
64
|
ɵɵelementEnd();
|
|
64
65
|
ɵɵelementStart(4, "input", 14);
|
|
65
|
-
ɵɵlistener("ngModelChange", function
|
|
66
|
+
ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_4_listener($event) { ɵɵrestoreView(_r8); const item_r2 = ɵɵnextContext().$implicit; return item_r2.loop = $event; })("dndDrop", function ArraySessionComponent_div_5_div_5_Template_input_dndDrop_4_listener($event) { ɵɵrestoreView(_r8); const item_r2 = ɵɵnextContext().$implicit; const ctx_r9 = ɵɵnextContext(); return item_r2.loop = ctx_r9.onDrop($event, item_r2.loop); });
|
|
66
67
|
ɵɵelementEnd();
|
|
67
68
|
ɵɵelementEnd();
|
|
68
69
|
ɵɵelementStart(5, "div", 15);
|
|
@@ -70,7 +71,7 @@ function ArraySessionComponent_div_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
70
71
|
ɵɵtext(7, "Alias");
|
|
71
72
|
ɵɵelementEnd();
|
|
72
73
|
ɵɵelementStart(8, "input", 14);
|
|
73
|
-
ɵɵlistener("ngModelChange", function
|
|
74
|
+
ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_8_listener($event) { ɵɵrestoreView(_r8); const item_r2 = ɵɵnextContext().$implicit; return item_r2.alias = $event; })("dndDrop", function ArraySessionComponent_div_5_div_5_Template_input_dndDrop_8_listener($event) { ɵɵrestoreView(_r8); const item_r2 = ɵɵnextContext().$implicit; const ctx_r13 = ɵɵnextContext(); return item_r2.alias = ctx_r13.onDrop($event, item_r2.alias); });
|
|
74
75
|
ɵɵelementEnd();
|
|
75
76
|
ɵɵelementEnd();
|
|
76
77
|
ɵɵelementEnd();
|
|
@@ -81,53 +82,52 @@ function ArraySessionComponent_div_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
81
82
|
ɵɵadvance(4);
|
|
82
83
|
ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", ɵɵpureFunction0(5, _c0));
|
|
83
84
|
} }
|
|
84
|
-
function
|
|
85
|
+
function ArraySessionComponent_div_5_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
85
86
|
ɵɵelementContainer(0);
|
|
86
87
|
} }
|
|
87
88
|
const _c1 = function (a0, a1, a2) { return { items: a0, index: a1, mappingAttributes: a2 }; };
|
|
88
89
|
const _c2 = function (a0) { return { $implicit: a0 }; };
|
|
89
|
-
function
|
|
90
|
+
function ArraySessionComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
90
91
|
const _r17 = ɵɵgetCurrentView();
|
|
91
92
|
ɵɵelementStart(0, "div", 7);
|
|
92
93
|
ɵɵelementStart(1, "div", 8);
|
|
93
94
|
ɵɵtext(2);
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
ɵɵpipe(3, "translate");
|
|
96
|
+
ɵɵelementStart(4, "i", 9);
|
|
97
|
+
ɵɵlistener("click", function ArraySessionComponent_div_5_Template_i_click_4_listener() { ɵɵrestoreView(_r17); const item_r2 = ctx.$implicit; const ctx_r16 = ɵɵnextContext(); return ctx_r16.remove(item_r2); });
|
|
96
98
|
ɵɵelementEnd();
|
|
97
99
|
ɵɵelementEnd();
|
|
98
|
-
ɵɵtemplate(
|
|
99
|
-
ɵɵtemplate(
|
|
100
|
+
ɵɵtemplate(5, ArraySessionComponent_div_5_div_5_Template, 9, 6, "div", 10);
|
|
101
|
+
ɵɵtemplate(6, ArraySessionComponent_div_5_ng_container_6_Template, 1, 0, "ng-container", 11);
|
|
100
102
|
ɵɵelementEnd();
|
|
101
103
|
} if (rf & 2) {
|
|
102
104
|
const item_r2 = ctx.$implicit;
|
|
103
105
|
const index_r3 = ctx.index;
|
|
104
106
|
const ctx_r0 = ɵɵnextContext();
|
|
105
107
|
ɵɵadvance(2);
|
|
106
|
-
ɵɵtextInterpolate2("", ctx_r0.removeLabel, " ", index_r3 + 1, " ");
|
|
107
|
-
ɵɵadvance(
|
|
108
|
+
ɵɵtextInterpolate2("", ɵɵpipeBind1(3, 5, ctx_r0.removeLabel), " ", index_r3 + 1, " ");
|
|
109
|
+
ɵɵadvance(3);
|
|
108
110
|
ɵɵproperty("ngIf", item_r2.mappingAttributes || item_r2.mappingAttributes === "");
|
|
109
111
|
ɵɵadvance(1);
|
|
110
|
-
ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", ɵɵpureFunction1(
|
|
112
|
+
ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", ɵɵpureFunction1(11, _c2, ɵɵpureFunction3(7, _c1, ctx_r0.model, index_r3, item_r2.mappingAttributes || item_r2.mappingAttributes === "" ? item_r2.mappingAttributes : item_r2)));
|
|
111
113
|
} }
|
|
112
|
-
function
|
|
114
|
+
function ArraySessionComponent_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
113
115
|
const _r19 = ɵɵgetCurrentView();
|
|
114
116
|
ɵɵelementStart(0, "button", 16);
|
|
115
|
-
ɵɵlistener("click", function
|
|
117
|
+
ɵɵlistener("click", function ArraySessionComponent_button_11_Template_button_click_0_listener() { ɵɵrestoreView(_r19); const ctx_r18 = ɵɵnextContext(); return ctx_r18.addLoop(); });
|
|
116
118
|
ɵɵtext(1);
|
|
119
|
+
ɵɵpipe(2, "translate");
|
|
117
120
|
ɵɵelementEnd();
|
|
118
121
|
} if (rf & 2) {
|
|
119
|
-
const ctx_r1 = ɵɵnextContext();
|
|
120
122
|
ɵɵadvance(1);
|
|
121
|
-
ɵɵtextInterpolate(
|
|
123
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "ADD_LOOP"));
|
|
122
124
|
} }
|
|
123
125
|
class ArraySessionComponent extends BaseSchemaComponent {
|
|
124
126
|
constructor() {
|
|
125
127
|
super(...arguments);
|
|
126
128
|
this.label = '';
|
|
127
|
-
this.removeLabel = 'Remove';
|
|
128
|
-
this.addItemLabel = 'Add Item';
|
|
129
|
-
this.addLoopLabel = 'Add Loop';
|
|
130
129
|
this.showAddLoop = true;
|
|
130
|
+
this.removeLabel = '';
|
|
131
131
|
this.onAdd = new EventEmitter();
|
|
132
132
|
this.onAddLoop = new EventEmitter();
|
|
133
133
|
}
|
|
@@ -153,34 +153,36 @@ ArraySessionComponent.ɵcmp = ɵɵdefineComponent({ type: ArraySessionComponent,
|
|
|
153
153
|
} if (rf & 2) {
|
|
154
154
|
var _t;
|
|
155
155
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.subsectionItem = _t.first);
|
|
156
|
-
} }, inputs: { label: "label",
|
|
156
|
+
} }, inputs: { label: "label", showAddLoop: "showAddLoop", removeLabel: "removeLabel" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [ɵɵInheritDefinitionFeature], decls: 12, vars: 9, consts: [[1, "row"], [1, "col-md-12"], [1, "info-label", "bold"], ["class", "subsection-element", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "row", "add-buttons"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", 3, "click"], ["class", "btn btn-outline-primary float-left btn-personal-edit ml-2", 3, "click", 4, "ngIf"], [1, "subsection-element"], [1, "subsection-item-title"], [1, "far", "fa-trash-alt", 3, "click"], ["class", "row", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "col-md-8"], [1, "info-label"], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "col-md-4"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", "ml-2", 3, "click"]], template: function ArraySessionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
157
157
|
ɵɵelementStart(0, "div", 0);
|
|
158
158
|
ɵɵelementStart(1, "div", 1);
|
|
159
159
|
ɵɵelementStart(2, "label", 2);
|
|
160
160
|
ɵɵtext(3);
|
|
161
|
+
ɵɵpipe(4, "translate");
|
|
161
162
|
ɵɵelementEnd();
|
|
162
|
-
ɵɵtemplate(
|
|
163
|
+
ɵɵtemplate(5, ArraySessionComponent_div_5_Template, 7, 13, "div", 3);
|
|
163
164
|
ɵɵelementEnd();
|
|
164
165
|
ɵɵelementEnd();
|
|
165
|
-
ɵɵelementStart(
|
|
166
|
-
ɵɵelementStart(
|
|
167
|
-
ɵɵelementStart(
|
|
168
|
-
ɵɵlistener("click", function
|
|
169
|
-
ɵɵtext(
|
|
166
|
+
ɵɵelementStart(6, "div", 4);
|
|
167
|
+
ɵɵelementStart(7, "div", 1);
|
|
168
|
+
ɵɵelementStart(8, "button", 5);
|
|
169
|
+
ɵɵlistener("click", function ArraySessionComponent_Template_button_click_8_listener() { return ctx.add(); });
|
|
170
|
+
ɵɵtext(9);
|
|
171
|
+
ɵɵpipe(10, "translate");
|
|
170
172
|
ɵɵelementEnd();
|
|
171
|
-
ɵɵtemplate(
|
|
173
|
+
ɵɵtemplate(11, ArraySessionComponent_button_11_Template, 3, 3, "button", 6);
|
|
172
174
|
ɵɵelementEnd();
|
|
173
175
|
ɵɵelementEnd();
|
|
174
176
|
} if (rf & 2) {
|
|
175
177
|
ɵɵadvance(3);
|
|
176
|
-
ɵɵtextInterpolate(ctx.label);
|
|
177
|
-
ɵɵadvance(
|
|
178
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(4, 5, ctx.label));
|
|
179
|
+
ɵɵadvance(2);
|
|
178
180
|
ɵɵproperty("ngForOf", ctx.model)("ngForTrackBy", ctx.trackByIndex);
|
|
179
181
|
ɵɵadvance(4);
|
|
180
|
-
ɵɵtextInterpolate(
|
|
181
|
-
ɵɵadvance(
|
|
182
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(10, 7, "ADD_ITEM"));
|
|
183
|
+
ɵɵadvance(2);
|
|
182
184
|
ɵɵproperty("ngIf", ctx.showAddLoop);
|
|
183
|
-
} }, directives: [NgForOf, NgIf, NgTemplateOutlet, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
|
|
185
|
+
} }, directives: [NgForOf, NgIf, NgTemplateOutlet, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], pipes: [TranslatePipe], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
|
|
184
186
|
const ɵArraySessionComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(ArraySessionComponent);
|
|
185
187
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ArraySessionComponent, [{
|
|
186
188
|
type: Component,
|
|
@@ -191,14 +193,10 @@ const ɵArraySessionComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactor
|
|
|
191
193
|
}]
|
|
192
194
|
}], null, { label: [{
|
|
193
195
|
type: Input
|
|
194
|
-
}], removeLabel: [{
|
|
195
|
-
type: Input
|
|
196
|
-
}], addItemLabel: [{
|
|
197
|
-
type: Input
|
|
198
|
-
}], addLoopLabel: [{
|
|
199
|
-
type: Input
|
|
200
196
|
}], showAddLoop: [{
|
|
201
197
|
type: Input
|
|
198
|
+
}], removeLabel: [{
|
|
199
|
+
type: Input
|
|
202
200
|
}], onAdd: [{
|
|
203
201
|
type: Output
|
|
204
202
|
}], onAddLoop: [{
|
|
@@ -214,10 +212,10 @@ function SchemaFormComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
214
212
|
ɵɵelementStart(1, "schema-input", 2);
|
|
215
213
|
ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_input_modelChange_1_listener($event) { ɵɵrestoreView(_r4); const ctx_r3 = ɵɵnextContext(); return ctx_r3.model = $event; });
|
|
216
214
|
ɵɵelementEnd();
|
|
217
|
-
ɵɵelementStart(2, "schema-object",
|
|
215
|
+
ɵɵelementStart(2, "schema-object", 2);
|
|
218
216
|
ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_object_modelChange_2_listener($event) { ɵɵrestoreView(_r4); const ctx_r5 = ɵɵnextContext(); return ctx_r5.model = $event; });
|
|
219
217
|
ɵɵelementEnd();
|
|
220
|
-
ɵɵelementStart(3, "schema-array",
|
|
218
|
+
ɵɵelementStart(3, "schema-array", 2);
|
|
221
219
|
ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_array_modelChange_3_listener($event) { ɵɵrestoreView(_r4); const ctx_r6 = ɵɵnextContext(); return ctx_r6.model = $event; });
|
|
222
220
|
ɵɵelementEnd();
|
|
223
221
|
ɵɵelementEnd();
|
|
@@ -226,29 +224,15 @@ function SchemaFormComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
226
224
|
const i_r2 = ctx.index;
|
|
227
225
|
const ctx_r0 = ɵɵnextContext();
|
|
228
226
|
ɵɵadvance(1);
|
|
229
|
-
ɵɵproperty("
|
|
227
|
+
ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
230
228
|
ɵɵadvance(1);
|
|
231
|
-
ɵɵproperty("
|
|
229
|
+
ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
232
230
|
ɵɵadvance(1);
|
|
233
|
-
ɵɵproperty("
|
|
231
|
+
ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
|
|
234
232
|
} }
|
|
235
233
|
class SchemaFormComponent extends BaseSchemaComponent {
|
|
236
234
|
constructor() {
|
|
237
235
|
super(...arguments);
|
|
238
|
-
this.requiredLabel = '(required)';
|
|
239
|
-
this.addItemLabel = 'Add Item';
|
|
240
|
-
this.addLoopLabel = 'Add Loop';
|
|
241
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
242
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
243
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
244
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
245
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
246
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
247
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
248
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
249
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
250
|
-
this.selectClearLabel = 'Clear';
|
|
251
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
252
236
|
this.schemas = [];
|
|
253
237
|
this.customProperties = false;
|
|
254
238
|
this.editing = false;
|
|
@@ -265,8 +249,8 @@ class SchemaFormComponent extends BaseSchemaComponent {
|
|
|
265
249
|
}
|
|
266
250
|
}
|
|
267
251
|
SchemaFormComponent.ɵfac = function SchemaFormComponent_Factory(t) { return ɵSchemaFormComponent_BaseFactory(t || SchemaFormComponent); };
|
|
268
|
-
SchemaFormComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaFormComponent, selectors: [["schema-form"]], inputs: {
|
|
269
|
-
ɵɵtemplate(0, SchemaFormComponent_div_0_Template, 4,
|
|
252
|
+
SchemaFormComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaFormComponent, selectors: [["schema-form"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], [3, "idPrefix", "model", "schema", "editing", "index", "modelChange"]], template: function SchemaFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
253
|
+
ɵɵtemplate(0, SchemaFormComponent_div_0_Template, 4, 15, "div", 0);
|
|
270
254
|
} if (rf & 2) {
|
|
271
255
|
ɵɵproperty("ngForOf", ctx.schemas);
|
|
272
256
|
} }, styles: [""] });
|
|
@@ -278,35 +262,7 @@ const ɵSchemaFormComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(
|
|
|
278
262
|
templateUrl: 'schema-form.html',
|
|
279
263
|
styleUrls: ['./schema-form.scss']
|
|
280
264
|
}]
|
|
281
|
-
}], null, {
|
|
282
|
-
type: Input
|
|
283
|
-
}], addItemLabel: [{
|
|
284
|
-
type: Input
|
|
285
|
-
}], addLoopLabel: [{
|
|
286
|
-
type: Input
|
|
287
|
-
}], additionalAttributesLabel: [{
|
|
288
|
-
type: Input
|
|
289
|
-
}], customAttributeRemoveLabel: [{
|
|
290
|
-
type: Input
|
|
291
|
-
}], newCustomFieldNameLabel: [{
|
|
292
|
-
type: Input
|
|
293
|
-
}], newCustomFieldValueLabel: [{
|
|
294
|
-
type: Input
|
|
295
|
-
}], newCustomFieldAddLabel: [{
|
|
296
|
-
type: Input
|
|
297
|
-
}], newCustomFieldSaveLabel: [{
|
|
298
|
-
type: Input
|
|
299
|
-
}], newCustomFieldCancelLabel: [{
|
|
300
|
-
type: Input
|
|
301
|
-
}], selectPlaceHolderLabel: [{
|
|
302
|
-
type: Input
|
|
303
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
304
|
-
type: Input
|
|
305
|
-
}], selectClearLabel: [{
|
|
306
|
-
type: Input
|
|
307
|
-
}], selectNotFoundLabel: [{
|
|
308
|
-
type: Input
|
|
309
|
-
}], idPrefix: [{
|
|
265
|
+
}], null, { idPrefix: [{
|
|
310
266
|
type: Input
|
|
311
267
|
}], schemas: [{
|
|
312
268
|
type: Input
|
|
@@ -329,21 +285,21 @@ function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
329
285
|
ɵɵelementStart(4, "span", 9);
|
|
330
286
|
ɵɵlistener("click", function SchemaCustomAttributesComponent_div_0_Template_span_click_4_listener() { ɵɵrestoreView(_r8); const i_r6 = ctx.index; const ctx_r7 = ɵɵnextContext(); return ctx_r7.removeCustomAttribute(i_r6); });
|
|
331
287
|
ɵɵelement(5, "i", 10);
|
|
288
|
+
ɵɵpipe(6, "translate");
|
|
332
289
|
ɵɵelementEnd();
|
|
333
|
-
ɵɵelementStart(
|
|
334
|
-
ɵɵlistener("ngModelChange", function
|
|
290
|
+
ɵɵelementStart(7, "input", 11);
|
|
291
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_7_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_7_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; const ctx_r10 = ɵɵnextContext(); return ctx_r10.onDropAttr($event, attribute_r5); });
|
|
335
292
|
ɵɵelementEnd();
|
|
336
293
|
ɵɵelementEnd();
|
|
337
294
|
ɵɵelementEnd();
|
|
338
295
|
} if (rf & 2) {
|
|
339
296
|
const attribute_r5 = ctx.$implicit;
|
|
340
|
-
const ctx_r0 = ɵɵnextContext();
|
|
341
297
|
ɵɵadvance(3);
|
|
342
298
|
ɵɵtextInterpolate(attribute_r5.label);
|
|
343
299
|
ɵɵadvance(2);
|
|
344
|
-
ɵɵproperty("matTooltip",
|
|
345
|
-
ɵɵadvance(
|
|
346
|
-
ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", ɵɵpureFunction0(
|
|
300
|
+
ɵɵproperty("matTooltip", ɵɵpipeBind1(6, 4, "REMOVE"));
|
|
301
|
+
ɵɵadvance(2);
|
|
302
|
+
ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", ɵɵpureFunction0(6, _c0$1));
|
|
347
303
|
} }
|
|
348
304
|
function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
349
305
|
const _r12 = ɵɵgetCurrentView();
|
|
@@ -352,25 +308,27 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
352
308
|
ɵɵelementStart(2, "div", 7);
|
|
353
309
|
ɵɵelementStart(3, "label", 8);
|
|
354
310
|
ɵɵtext(4);
|
|
355
|
-
|
|
356
|
-
|
|
311
|
+
ɵɵpipe(5, "translate");
|
|
312
|
+
ɵɵelementStart(6, "strong");
|
|
313
|
+
ɵɵtext(7, "*");
|
|
357
314
|
ɵɵelementEnd();
|
|
358
315
|
ɵɵelementEnd();
|
|
359
|
-
ɵɵelementStart(
|
|
360
|
-
ɵɵlistener("ngModelChange", function
|
|
316
|
+
ɵɵelementStart(8, "input", 14);
|
|
317
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_8_listener($event) { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
361
318
|
ɵɵelementEnd();
|
|
362
319
|
ɵɵelementEnd();
|
|
363
320
|
ɵɵelementEnd();
|
|
364
|
-
ɵɵelementStart(
|
|
365
|
-
ɵɵelementStart(
|
|
366
|
-
ɵɵelementStart(
|
|
367
|
-
ɵɵtext(
|
|
368
|
-
|
|
369
|
-
|
|
321
|
+
ɵɵelementStart(9, "div", 13);
|
|
322
|
+
ɵɵelementStart(10, "div", 7);
|
|
323
|
+
ɵɵelementStart(11, "label", 8);
|
|
324
|
+
ɵɵtext(12);
|
|
325
|
+
ɵɵpipe(13, "translate");
|
|
326
|
+
ɵɵelementStart(14, "strong");
|
|
327
|
+
ɵɵtext(15, "*");
|
|
370
328
|
ɵɵelementEnd();
|
|
371
329
|
ɵɵelementEnd();
|
|
372
|
-
ɵɵelementStart(
|
|
373
|
-
ɵɵlistener("ngModelChange", function
|
|
330
|
+
ɵɵelementStart(16, "input", 11);
|
|
331
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_16_listener($event) { ɵɵrestoreView(_r12); const ctx_r13 = ɵɵnextContext(); return ctx_r13.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_16_listener($event) { ɵɵrestoreView(_r12); const ctx_r14 = ɵɵnextContext(); return ctx_r14.onDropAttr($event, ctx_r14.newCustomField); });
|
|
374
332
|
ɵɵelementEnd();
|
|
375
333
|
ɵɵelementEnd();
|
|
376
334
|
ɵɵelementEnd();
|
|
@@ -378,56 +336,50 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
378
336
|
} if (rf & 2) {
|
|
379
337
|
const ctx_r1 = ɵɵnextContext();
|
|
380
338
|
ɵɵadvance(4);
|
|
381
|
-
ɵɵtextInterpolate(
|
|
382
|
-
ɵɵadvance(3);
|
|
383
|
-
ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", ɵɵpureFunction0(6, _c0$1));
|
|
339
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(5, 6, "STEP.NAME"));
|
|
384
340
|
ɵɵadvance(4);
|
|
385
|
-
|
|
386
|
-
ɵɵadvance(
|
|
387
|
-
|
|
341
|
+
ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", ɵɵpureFunction0(10, _c0$1));
|
|
342
|
+
ɵɵadvance(4);
|
|
343
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(13, 8, "STEP.VALUE"));
|
|
344
|
+
ɵɵadvance(4);
|
|
345
|
+
ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", ɵɵpureFunction0(11, _c0$1));
|
|
388
346
|
} }
|
|
389
347
|
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
390
348
|
const _r16 = ɵɵgetCurrentView();
|
|
391
349
|
ɵɵelementStart(0, "button", 15);
|
|
392
350
|
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { ɵɵrestoreView(_r16); const ctx_r15 = ɵɵnextContext(); return ctx_r15.newCustomField = {}; });
|
|
393
351
|
ɵɵtext(1);
|
|
352
|
+
ɵɵpipe(2, "translate");
|
|
394
353
|
ɵɵelementEnd();
|
|
395
354
|
} if (rf & 2) {
|
|
396
|
-
const ctx_r2 = ɵɵnextContext();
|
|
397
355
|
ɵɵadvance(1);
|
|
398
|
-
ɵɵtextInterpolate1(" ",
|
|
356
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(2, 1, "ADD"), " ");
|
|
399
357
|
} }
|
|
400
358
|
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
401
359
|
const _r18 = ɵɵgetCurrentView();
|
|
402
360
|
ɵɵelementStart(0, "button", 16);
|
|
403
361
|
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { ɵɵrestoreView(_r18); const ctx_r17 = ɵɵnextContext(); return ctx_r17.newCustomField = null; });
|
|
404
362
|
ɵɵtext(1);
|
|
363
|
+
ɵɵpipe(2, "translate");
|
|
405
364
|
ɵɵelementEnd();
|
|
406
365
|
} if (rf & 2) {
|
|
407
|
-
const ctx_r3 = ɵɵnextContext();
|
|
408
366
|
ɵɵadvance(1);
|
|
409
|
-
ɵɵtextInterpolate1(" ",
|
|
367
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(2, 1, "CANCEL"), " ");
|
|
410
368
|
} }
|
|
411
369
|
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
412
370
|
const _r20 = ɵɵgetCurrentView();
|
|
413
371
|
ɵɵelementStart(0, "button", 15);
|
|
414
372
|
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { ɵɵrestoreView(_r20); const ctx_r19 = ɵɵnextContext(); return ctx_r19.saveNewAttribute(ctx_r19.newCustomField); });
|
|
415
373
|
ɵɵtext(1);
|
|
374
|
+
ɵɵpipe(2, "translate");
|
|
416
375
|
ɵɵelementEnd();
|
|
417
376
|
} if (rf & 2) {
|
|
418
|
-
const ctx_r4 = ɵɵnextContext();
|
|
419
377
|
ɵɵadvance(1);
|
|
420
|
-
ɵɵtextInterpolate1(" ",
|
|
378
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(2, 1, "SAVE"), " ");
|
|
421
379
|
} }
|
|
422
380
|
class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
423
381
|
constructor() {
|
|
424
382
|
super(...arguments);
|
|
425
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
426
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
427
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
428
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
429
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
430
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
431
383
|
this.onSaveAttribute = new EventEmitter();
|
|
432
384
|
this.onDropOnAttribute = new EventEmitter();
|
|
433
385
|
}
|
|
@@ -454,14 +406,14 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
454
406
|
}
|
|
455
407
|
}
|
|
456
408
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
457
|
-
SchemaCustomAttributesComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction"
|
|
458
|
-
ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template,
|
|
459
|
-
ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template,
|
|
409
|
+
SchemaCustomAttributesComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
410
|
+
ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 8, 7, "div", 0);
|
|
411
|
+
ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 17, 12, "div", 1);
|
|
460
412
|
ɵɵelementStart(2, "div", 2);
|
|
461
413
|
ɵɵelementStart(3, "div", 3);
|
|
462
|
-
ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template,
|
|
463
|
-
ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template,
|
|
464
|
-
ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template,
|
|
414
|
+
ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 3, 3, "button", 4);
|
|
415
|
+
ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 3, 3, "button", 5);
|
|
416
|
+
ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template, 3, 3, "button", 4);
|
|
465
417
|
ɵɵelementEnd();
|
|
466
418
|
ɵɵelementEnd();
|
|
467
419
|
} if (rf & 2) {
|
|
@@ -474,7 +426,7 @@ SchemaCustomAttributesComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaCustom
|
|
|
474
426
|
ɵɵproperty("ngIf", ctx.newCustomField);
|
|
475
427
|
ɵɵadvance(1);
|
|
476
428
|
ɵɵproperty("ngIf", ctx.newCustomField && ctx.newCustomField.label && ctx.newCustomField.value);
|
|
477
|
-
} }, directives: [NgForOf, NgIf, MatTooltip, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
|
|
429
|
+
} }, directives: [NgForOf, NgIf, MatTooltip, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], pipes: [TranslatePipe], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
|
|
478
430
|
const ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaCustomAttributesComponent);
|
|
479
431
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
|
|
480
432
|
type: Component,
|
|
@@ -485,18 +437,6 @@ const ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInher
|
|
|
485
437
|
}]
|
|
486
438
|
}], null, { onDropFunction: [{
|
|
487
439
|
type: Input
|
|
488
|
-
}], customAttributeRemoveLabel: [{
|
|
489
|
-
type: Input
|
|
490
|
-
}], newCustomFieldNameLabel: [{
|
|
491
|
-
type: Input
|
|
492
|
-
}], newCustomFieldValueLabel: [{
|
|
493
|
-
type: Input
|
|
494
|
-
}], newCustomFieldAddLabel: [{
|
|
495
|
-
type: Input
|
|
496
|
-
}], newCustomFieldSaveLabel: [{
|
|
497
|
-
type: Input
|
|
498
|
-
}], newCustomFieldCancelLabel: [{
|
|
499
|
-
type: Input
|
|
500
440
|
}], onSaveAttribute: [{
|
|
501
441
|
type: Output
|
|
502
442
|
}], onDropOnAttribute: [{
|
|
@@ -511,7 +451,7 @@ function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template(rf, ctx
|
|
|
511
451
|
} if (rf & 2) {
|
|
512
452
|
const item_r3 = ɵɵnextContext().$implicit;
|
|
513
453
|
const ctx_r4 = ɵɵnextContext(2);
|
|
514
|
-
ɵɵproperty("
|
|
454
|
+
ɵɵproperty("idPrefix", ctx_r4.idPrefix)("model", ctx_r4.model[ctx_r4.schema.id][item_r3.index].mappingAttributes)("schemas", ctx_r4.getSchemaProperties())("editing", ctx_r4.editing);
|
|
515
455
|
} }
|
|
516
456
|
function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
517
457
|
const _r12 = ɵɵgetCurrentView();
|
|
@@ -521,7 +461,7 @@ function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(rf, ctx
|
|
|
521
461
|
} if (rf & 2) {
|
|
522
462
|
const item_r3 = ɵɵnextContext().$implicit;
|
|
523
463
|
const ctx_r5 = ɵɵnextContext(2);
|
|
524
|
-
ɵɵproperty("
|
|
464
|
+
ɵɵproperty("idPrefix", ctx_r5.idPrefix)("model", ctx_r5.model[ctx_r5.schema.id][item_r3.index])("schemas", ctx_r5.getSchemaProperties())("editing", ctx_r5.editing);
|
|
525
465
|
} }
|
|
526
466
|
function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
527
467
|
const _r16 = ɵɵgetCurrentView();
|
|
@@ -529,9 +469,10 @@ function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) { if (
|
|
|
529
469
|
ɵɵelementStart(1, "div", 6);
|
|
530
470
|
ɵɵelementStart(2, "label", 7);
|
|
531
471
|
ɵɵtext(3);
|
|
472
|
+
ɵɵpipe(4, "translate");
|
|
532
473
|
ɵɵelementEnd();
|
|
533
|
-
ɵɵelementStart(
|
|
534
|
-
ɵɵlistener("modelChange", function
|
|
474
|
+
ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
475
|
+
ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_div_2_Template_schema_custom_attributes_modelChange_5_listener($event) { ɵɵrestoreView(_r16); const item_r3 = ɵɵnextContext().$implicit; const ctx_r15 = ɵɵnextContext(2); return ctx_r15.model[ctx_r15.schema.id][item_r3.index].customAttributes = $event; });
|
|
535
476
|
ɵɵelementEnd();
|
|
536
477
|
ɵɵelementEnd();
|
|
537
478
|
ɵɵelementEnd();
|
|
@@ -539,14 +480,14 @@ function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) { if (
|
|
|
539
480
|
const item_r3 = ɵɵnextContext().$implicit;
|
|
540
481
|
const ctx_r6 = ɵɵnextContext(2);
|
|
541
482
|
ɵɵadvance(3);
|
|
542
|
-
ɵɵtextInterpolate(
|
|
543
|
-
ɵɵadvance(
|
|
544
|
-
ɵɵproperty("
|
|
483
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
484
|
+
ɵɵadvance(2);
|
|
485
|
+
ɵɵproperty("model", ctx_r6.model[ctx_r6.schema.id][item_r3.index].customAttributes)("onDropFunction", ctx_r6.onDrop);
|
|
545
486
|
} }
|
|
546
487
|
function SchemaArrayComponent_div_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
547
|
-
ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1,
|
|
548
|
-
ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1,
|
|
549
|
-
ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template,
|
|
488
|
+
ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1, 4, "schema-form", 2);
|
|
489
|
+
ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1, 4, "schema-form", 2);
|
|
490
|
+
ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template, 6, 5, "div", 3);
|
|
550
491
|
} if (rf & 2) {
|
|
551
492
|
const item_r3 = ctx.$implicit;
|
|
552
493
|
const ctx_r2 = ɵɵnextContext(2);
|
|
@@ -567,23 +508,23 @@ function SchemaArrayComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
567
508
|
} if (rf & 2) {
|
|
568
509
|
const ctx_r0 = ɵɵnextContext();
|
|
569
510
|
ɵɵadvance(1);
|
|
570
|
-
ɵɵproperty("
|
|
511
|
+
ɵɵproperty("label", ctx_r0.schema.title)("removeLabel", ctx_r0.schema.title)("model", ctx_r0.model[ctx_r0.schema.id])("showAddLoop", ctx_r0.schema.withoutLoop !== true);
|
|
571
512
|
} }
|
|
572
513
|
const _c0$2 = function () { return { standalone: true }; };
|
|
573
|
-
function
|
|
514
|
+
function SchemaArrayComponent_div_1_ng_template_2_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
574
515
|
const _r30 = ɵɵgetCurrentView();
|
|
575
516
|
ɵɵelementStart(0, "input", 12);
|
|
576
|
-
ɵɵlistener("ngModelChange", function
|
|
517
|
+
ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_ngModelChange_0_listener($event) { ɵɵrestoreView(_r30); const item_r24 = ɵɵnextContext().$implicit; return item_r24.items[item_r24.index].mappingAttributes = $event; })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_dndDrop_0_listener($event) { ɵɵrestoreView(_r30); const item_r24 = ɵɵnextContext().$implicit; const ctx_r31 = ɵɵnextContext(2); return item_r24.items[item_r24.index].mappingAttributes = ctx_r31.onDrop($event, item_r24.items[item_r24.index].mappingAttributes); });
|
|
577
518
|
ɵɵelementEnd();
|
|
578
519
|
} if (rf & 2) {
|
|
579
520
|
const item_r24 = ɵɵnextContext().$implicit;
|
|
580
521
|
const ctx_r25 = ɵɵnextContext(2);
|
|
581
522
|
ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", ɵɵpureFunction0(3, _c0$2))("id", ctx_r25.getId(ctx_r25.index) + "-" + item_r24.index);
|
|
582
523
|
} }
|
|
583
|
-
function
|
|
524
|
+
function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
584
525
|
const _r36 = ɵɵgetCurrentView();
|
|
585
526
|
ɵɵelementStart(0, "input", 12);
|
|
586
|
-
ɵɵlistener("ngModelChange", function
|
|
527
|
+
ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_ngModelChange_0_listener($event) { ɵɵrestoreView(_r36); const item_r24 = ɵɵnextContext().$implicit; return (item_r24.items[item_r24.index] = $event); })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_dndDrop_0_listener($event) { ɵɵrestoreView(_r36); const item_r24 = ɵɵnextContext().$implicit; const ctx_r37 = ɵɵnextContext(2); return (item_r24.items[item_r24.index] = ctx_r37.onDrop($event, item_r24.items[item_r24.index])); });
|
|
587
528
|
ɵɵelementEnd();
|
|
588
529
|
} if (rf & 2) {
|
|
589
530
|
const item_r24 = ɵɵnextContext().$implicit;
|
|
@@ -593,17 +534,18 @@ function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template(rf, ctx
|
|
|
593
534
|
function SchemaArrayComponent_div_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
594
535
|
ɵɵelementStart(0, "label", 9);
|
|
595
536
|
ɵɵtext(1);
|
|
537
|
+
ɵɵpipe(2, "translate");
|
|
596
538
|
ɵɵelementEnd();
|
|
597
|
-
ɵɵtemplate(
|
|
598
|
-
ɵɵtemplate(
|
|
539
|
+
ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_input_3_Template, 1, 4, "input", 10);
|
|
540
|
+
ɵɵtemplate(4, SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template, 1, 4, "ng-template", null, 11, ɵɵtemplateRefExtractor);
|
|
599
541
|
} if (rf & 2) {
|
|
600
542
|
const item_r24 = ctx.$implicit;
|
|
601
|
-
const _r26 = ɵɵreference(
|
|
543
|
+
const _r26 = ɵɵreference(5);
|
|
602
544
|
const ctx_r23 = ɵɵnextContext(2);
|
|
603
545
|
ɵɵproperty("htmlFor", ctx_r23.getId(ctx_r23.index) + "-" + item_r24.index);
|
|
604
546
|
ɵɵadvance(1);
|
|
605
|
-
ɵɵtextInterpolate(ctx_r23.schema.title);
|
|
606
|
-
ɵɵadvance(
|
|
547
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(2, 4, ctx_r23.schema.title));
|
|
548
|
+
ɵɵadvance(2);
|
|
607
549
|
ɵɵproperty("ngIf", item_r24.items[item_r24.index].mappingAttributes || item_r24.items[item_r24.index].mappingAttributes === "")("ngIfElse", _r26);
|
|
608
550
|
} }
|
|
609
551
|
function SchemaArrayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -611,31 +553,17 @@ function SchemaArrayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
611
553
|
ɵɵelementStart(0, "div");
|
|
612
554
|
ɵɵelementStart(1, "array-session", 1);
|
|
613
555
|
ɵɵlistener("modelChange", function SchemaArrayComponent_div_1_Template_array_session_modelChange_1_listener($event) { ɵɵrestoreView(_r41); const ctx_r40 = ɵɵnextContext(); return (ctx_r40.model[ctx_r40.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_1_Template_array_session_onAdd_1_listener() { ɵɵrestoreView(_r41); const ctx_r42 = ɵɵnextContext(); return ctx_r42.addArrayItem(ctx_r42.schema.id, ""); })("onAddLoop", function SchemaArrayComponent_div_1_Template_array_session_onAddLoop_1_listener() { ɵɵrestoreView(_r41); const ctx_r43 = ɵɵnextContext(); return ctx_r43.addArrayLoop(ctx_r43.schema.id, ""); });
|
|
614
|
-
ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template,
|
|
556
|
+
ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template, 6, 6, "ng-template");
|
|
615
557
|
ɵɵelementEnd();
|
|
616
558
|
ɵɵelementEnd();
|
|
617
559
|
} if (rf & 2) {
|
|
618
560
|
const ctx_r1 = ɵɵnextContext();
|
|
619
561
|
ɵɵadvance(1);
|
|
620
|
-
ɵɵproperty("
|
|
562
|
+
ɵɵproperty("label", ctx_r1.schema.title)("removeLabel", ctx_r1.schema.title)("model", ctx_r1.model[ctx_r1.schema.id])("showAddLoop", ctx_r1.schema.withoutLoop !== true);
|
|
621
563
|
} }
|
|
622
564
|
class SchemaArrayComponent extends BaseSchemaComponent {
|
|
623
565
|
constructor() {
|
|
624
566
|
super(...arguments);
|
|
625
|
-
this.requiredLabel = '(required)';
|
|
626
|
-
this.addItemLabel = 'Add Item';
|
|
627
|
-
this.addLoopLabel = 'Add Loop';
|
|
628
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
629
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
630
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
631
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
632
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
633
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
634
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
635
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
636
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
637
|
-
this.selectClearLabel = 'Clear';
|
|
638
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
639
567
|
this.editing = false;
|
|
640
568
|
}
|
|
641
569
|
ngAfterContentInit() {
|
|
@@ -673,14 +601,14 @@ class SchemaArrayComponent extends BaseSchemaComponent {
|
|
|
673
601
|
}
|
|
674
602
|
}
|
|
675
603
|
SchemaArrayComponent.ɵfac = function SchemaArrayComponent_Factory(t) { return ɵSchemaArrayComponent_BaseFactory(t || SchemaArrayComponent); };
|
|
676
|
-
SchemaArrayComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: {
|
|
677
|
-
ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3,
|
|
678
|
-
ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3,
|
|
604
|
+
SchemaArrayComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"], [1, "info-label", 3, "htmlFor"], ["class", "form-control", "type", "text", "dndDropzone", "", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop"]], template: function SchemaArrayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
605
|
+
ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3, 4, "div", 0);
|
|
606
|
+
ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3, 4, "div", 0);
|
|
679
607
|
} if (rf & 2) {
|
|
680
608
|
ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && ctx.schema.properties);
|
|
681
609
|
ɵɵadvance(1);
|
|
682
610
|
ɵɵproperty("ngIf", ctx.schema && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && !ctx.schema.properties);
|
|
683
|
-
} }, directives: [NgIf, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], styles: [""] });
|
|
611
|
+
} }, directives: [NgIf, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel], pipes: [TranslatePipe], styles: [""] });
|
|
684
612
|
const ɵSchemaArrayComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaArrayComponent);
|
|
685
613
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaArrayComponent, [{
|
|
686
614
|
type: Component,
|
|
@@ -689,35 +617,7 @@ const ɵSchemaArrayComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory
|
|
|
689
617
|
templateUrl: 'schema-array.html',
|
|
690
618
|
styleUrls: ['./schema-array.scss']
|
|
691
619
|
}]
|
|
692
|
-
}], null, {
|
|
693
|
-
type: Input
|
|
694
|
-
}], addItemLabel: [{
|
|
695
|
-
type: Input
|
|
696
|
-
}], addLoopLabel: [{
|
|
697
|
-
type: Input
|
|
698
|
-
}], additionalAttributesLabel: [{
|
|
699
|
-
type: Input
|
|
700
|
-
}], customAttributeRemoveLabel: [{
|
|
701
|
-
type: Input
|
|
702
|
-
}], newCustomFieldNameLabel: [{
|
|
703
|
-
type: Input
|
|
704
|
-
}], newCustomFieldValueLabel: [{
|
|
705
|
-
type: Input
|
|
706
|
-
}], newCustomFieldAddLabel: [{
|
|
707
|
-
type: Input
|
|
708
|
-
}], newCustomFieldSaveLabel: [{
|
|
709
|
-
type: Input
|
|
710
|
-
}], newCustomFieldCancelLabel: [{
|
|
711
|
-
type: Input
|
|
712
|
-
}], selectPlaceHolderLabel: [{
|
|
713
|
-
type: Input
|
|
714
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
715
|
-
type: Input
|
|
716
|
-
}], selectClearLabel: [{
|
|
717
|
-
type: Input
|
|
718
|
-
}], selectNotFoundLabel: [{
|
|
719
|
-
type: Input
|
|
720
|
-
}], idPrefix: [{
|
|
620
|
+
}], null, { idPrefix: [{
|
|
721
621
|
type: Input
|
|
722
622
|
}], schema: [{
|
|
723
623
|
type: Input
|
|
@@ -728,54 +628,53 @@ const ɵSchemaArrayComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory
|
|
|
728
628
|
}] }); })();
|
|
729
629
|
|
|
730
630
|
const _c0$3 = function (a0) { return { "has-error": a0 }; };
|
|
731
|
-
function
|
|
631
|
+
function FieldRenderComponent_small_4_Template(rf, ctx) { if (rf & 1) {
|
|
732
632
|
ɵɵelementStart(0, "small", 0);
|
|
733
|
-
ɵɵtext(1);
|
|
633
|
+
ɵɵtext(1, "(obrigat\u00F3rio)");
|
|
734
634
|
ɵɵelementEnd();
|
|
735
635
|
} if (rf & 2) {
|
|
736
636
|
const ctx_r0 = ɵɵnextContext();
|
|
737
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(
|
|
738
|
-
ɵɵadvance(1);
|
|
739
|
-
ɵɵtextInterpolate(ctx_r0.requiredLabel);
|
|
637
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(1, _c0$3, ctx_r0.state && !ctx_r0.state.valid && ctx_r0.state.errors));
|
|
740
638
|
} }
|
|
741
|
-
function
|
|
639
|
+
function FieldRenderComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
742
640
|
ɵɵelementStart(0, "span", 4);
|
|
743
|
-
|
|
641
|
+
ɵɵpipe(1, "translate");
|
|
642
|
+
ɵɵelement(2, "i", 5);
|
|
744
643
|
ɵɵelementEnd();
|
|
745
644
|
} if (rf & 2) {
|
|
746
645
|
const ctx_r1 = ɵɵnextContext();
|
|
747
|
-
ɵɵpropertyInterpolate("matTooltip", ctx_r1.tooltip);
|
|
646
|
+
ɵɵpropertyInterpolate("matTooltip", ɵɵpipeBind1(1, 1, ctx_r1.tooltip));
|
|
748
647
|
} }
|
|
749
648
|
const _c1$1 = ["*"];
|
|
750
649
|
class FieldRenderComponent {
|
|
751
650
|
constructor() {
|
|
752
|
-
this.requiredLabel = '(required)';
|
|
753
651
|
this.label = '';
|
|
754
652
|
this.required = true;
|
|
755
653
|
}
|
|
756
654
|
}
|
|
757
655
|
FieldRenderComponent.ɵfac = function FieldRenderComponent_Factory(t) { return new (t || FieldRenderComponent)(); };
|
|
758
|
-
FieldRenderComponent.ɵcmp = ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: {
|
|
656
|
+
FieldRenderComponent.ɵcmp = ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: { label: "label", inputId: "inputId", tooltip: "tooltip", required: "required", state: "state" }, ngContentSelectors: _c1$1, decls: 7, vars: 9, consts: [[3, "ngClass"], [1, "info-label", "bold", 3, "htmlFor"], [3, "ngClass", 4, "ngIf"], ["class", "info-icon", 3, "matTooltip", 4, "ngIf"], [1, "info-icon", 3, "matTooltip"], [1, "far", "fa-question-circle"]], template: function FieldRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
759
657
|
ɵɵprojectionDef();
|
|
760
658
|
ɵɵelementStart(0, "div", 0);
|
|
761
659
|
ɵɵelementStart(1, "label", 1);
|
|
762
660
|
ɵɵtext(2);
|
|
763
|
-
|
|
764
|
-
ɵɵtemplate(4,
|
|
661
|
+
ɵɵpipe(3, "translate");
|
|
662
|
+
ɵɵtemplate(4, FieldRenderComponent_small_4_Template, 2, 3, "small", 2);
|
|
663
|
+
ɵɵtemplate(5, FieldRenderComponent_span_5_Template, 3, 3, "span", 3);
|
|
765
664
|
ɵɵelementEnd();
|
|
766
|
-
ɵɵprojection(
|
|
665
|
+
ɵɵprojection(6);
|
|
767
666
|
ɵɵelementEnd();
|
|
768
667
|
} if (rf & 2) {
|
|
769
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(
|
|
668
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(7, _c0$3, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
|
|
770
669
|
ɵɵadvance(1);
|
|
771
670
|
ɵɵproperty("htmlFor", ctx.inputId);
|
|
772
671
|
ɵɵadvance(1);
|
|
773
|
-
ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
774
|
-
ɵɵadvance(
|
|
672
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(3, 5, ctx.label), " ");
|
|
673
|
+
ɵɵadvance(2);
|
|
775
674
|
ɵɵproperty("ngIf", ctx.required);
|
|
776
675
|
ɵɵadvance(1);
|
|
777
676
|
ɵɵproperty("ngIf", ctx.tooltip);
|
|
778
|
-
} }, directives: [NgClass, NgIf, MatTooltip], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
|
|
677
|
+
} }, directives: [NgClass, NgIf, MatTooltip], pipes: [TranslatePipe], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
|
|
779
678
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(FieldRenderComponent, [{
|
|
780
679
|
type: Component,
|
|
781
680
|
args: [{
|
|
@@ -783,9 +682,7 @@ FieldRenderComponent.ɵcmp = ɵɵdefineComponent({ type: FieldRenderComponent, s
|
|
|
783
682
|
templateUrl: 'field-render.html',
|
|
784
683
|
styleUrls: ['field-render.scss']
|
|
785
684
|
}]
|
|
786
|
-
}], null, {
|
|
787
|
-
type: Input
|
|
788
|
-
}], label: [{
|
|
685
|
+
}], null, { label: [{
|
|
789
686
|
type: Input
|
|
790
687
|
}], inputId: [{
|
|
791
688
|
type: Input
|
|
@@ -900,10 +797,14 @@ function InputRenderComponent_select_box_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
900
797
|
const _r9 = ɵɵgetCurrentView();
|
|
901
798
|
ɵɵelementStart(0, "select-box", 5);
|
|
902
799
|
ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { ɵɵrestoreView(_r9); const ctx_r8 = ɵɵnextContext(); return ctx_r8.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { ɵɵrestoreView(_r9); const ctx_r10 = ɵɵnextContext(); return ctx_r10.onChange($event.key); });
|
|
800
|
+
ɵɵpipe(1, "translate");
|
|
801
|
+
ɵɵpipe(2, "translate");
|
|
802
|
+
ɵɵpipe(3, "translate");
|
|
803
|
+
ɵɵpipe(4, "translate");
|
|
903
804
|
ɵɵelementEnd();
|
|
904
805
|
} if (rf & 2) {
|
|
905
806
|
const ctx_r1 = ɵɵnextContext();
|
|
906
|
-
ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", ɵɵpureFunction0(
|
|
807
|
+
ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", ɵɵpureFunction0(20, _c0$6))("placeholder", ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
|
|
907
808
|
} }
|
|
908
809
|
function InputRenderComponent_number_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
909
810
|
const _r12 = ɵɵgetCurrentView();
|
|
@@ -926,10 +827,6 @@ function InputRenderComponent_boolean_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
926
827
|
class InputRenderComponent extends BaseSchemaComponent {
|
|
927
828
|
constructor() {
|
|
928
829
|
super(...arguments);
|
|
929
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
930
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
931
|
-
this.selectClearLabel = 'Clear';
|
|
932
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
933
830
|
this.schema = {};
|
|
934
831
|
this.editing = false;
|
|
935
832
|
this.onDropEvent = new EventEmitter();
|
|
@@ -966,10 +863,10 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
966
863
|
}
|
|
967
864
|
}
|
|
968
865
|
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
969
|
-
InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: {
|
|
866
|
+
InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
970
867
|
ɵɵelementStart(0, "div", 0);
|
|
971
868
|
ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
972
|
-
ɵɵtemplate(2, InputRenderComponent_select_box_2_Template,
|
|
869
|
+
ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
973
870
|
ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
974
871
|
ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
975
872
|
ɵɵelementEnd();
|
|
@@ -982,7 +879,7 @@ InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, s
|
|
|
982
879
|
ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
983
880
|
ɵɵadvance(1);
|
|
984
881
|
ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
985
|
-
} }, directives: [NgIf, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, MaxLengthValidator, SelectBoxComponent, NumberInputComponent, BooleanInputComponent], styles: [""] });
|
|
882
|
+
} }, directives: [NgIf, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, MaxLengthValidator, SelectBoxComponent, NumberInputComponent, BooleanInputComponent], pipes: [TranslatePipe], styles: [""] });
|
|
986
883
|
const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(InputRenderComponent);
|
|
987
884
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputRenderComponent, [{
|
|
988
885
|
type: Component,
|
|
@@ -991,15 +888,7 @@ const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory
|
|
|
991
888
|
templateUrl: 'input-render.html',
|
|
992
889
|
styleUrls: ['./input-render.scss']
|
|
993
890
|
}]
|
|
994
|
-
}], null, {
|
|
995
|
-
type: Input
|
|
996
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
997
|
-
type: Input
|
|
998
|
-
}], selectClearLabel: [{
|
|
999
|
-
type: Input
|
|
1000
|
-
}], selectNotFoundLabel: [{
|
|
1001
|
-
type: Input
|
|
1002
|
-
}], schema: [{
|
|
891
|
+
}], null, { schema: [{
|
|
1003
892
|
type: Input
|
|
1004
893
|
}], modelPropertiesPath: [{
|
|
1005
894
|
type: Input
|
|
@@ -1025,17 +914,18 @@ function SchemaInputComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1025
914
|
} if (rf & 2) {
|
|
1026
915
|
const ctx_r0 = ɵɵnextContext();
|
|
1027
916
|
ɵɵadvance(2);
|
|
1028
|
-
ɵɵproperty("
|
|
917
|
+
ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
1029
918
|
ɵɵadvance(1);
|
|
1030
|
-
ɵɵproperty("
|
|
919
|
+
ɵɵproperty("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
|
|
1031
920
|
} }
|
|
1032
921
|
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
1033
922
|
ɵɵelementStart(0, "span", 7);
|
|
1034
|
-
|
|
923
|
+
ɵɵpipe(1, "translate");
|
|
924
|
+
ɵɵtext(2, "?");
|
|
1035
925
|
ɵɵelementEnd();
|
|
1036
926
|
} if (rf & 2) {
|
|
1037
927
|
const ctx_r4 = ɵɵnextContext(2);
|
|
1038
|
-
ɵɵpropertyInterpolate("matTooltip", ctx_r4.schema.help);
|
|
928
|
+
ɵɵpropertyInterpolate("matTooltip", ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
|
|
1039
929
|
} }
|
|
1040
930
|
function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1041
931
|
const _r6 = ɵɵgetCurrentView();
|
|
@@ -1043,7 +933,7 @@ function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1043
933
|
ɵɵelementStart(1, "div", 2);
|
|
1044
934
|
ɵɵelementStart(2, "label", 5);
|
|
1045
935
|
ɵɵtext(3);
|
|
1046
|
-
ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template,
|
|
936
|
+
ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
|
|
1047
937
|
ɵɵelementEnd();
|
|
1048
938
|
ɵɵelementStart(5, "input-render", 4);
|
|
1049
939
|
ɵɵlistener("modelChange", function SchemaInputComponent_div_1_Template_input_render_modelChange_5_listener($event) { ɵɵrestoreView(_r6); const ctx_r5 = ɵɵnextContext(); return (ctx_r5.model[ctx_r5.schema.id] = $event); });
|
|
@@ -1059,16 +949,11 @@ function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1059
949
|
ɵɵadvance(1);
|
|
1060
950
|
ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
1061
951
|
ɵɵadvance(1);
|
|
1062
|
-
ɵɵproperty("
|
|
952
|
+
ɵɵproperty("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
|
|
1063
953
|
} }
|
|
1064
954
|
class SchemaInputComponent extends BaseSchemaComponent {
|
|
1065
955
|
constructor() {
|
|
1066
956
|
super(...arguments);
|
|
1067
|
-
this.requiredLabel = '(required)';
|
|
1068
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
1069
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
1070
|
-
this.selectClearLabel = 'Clear';
|
|
1071
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
1072
957
|
this.editing = false;
|
|
1073
958
|
}
|
|
1074
959
|
ngAfterContentInit() {
|
|
@@ -1079,14 +964,14 @@ class SchemaInputComponent extends BaseSchemaComponent {
|
|
|
1079
964
|
}
|
|
1080
965
|
}
|
|
1081
966
|
SchemaInputComponent.ɵfac = function SchemaInputComponent_Factory(t) { return ɵSchemaInputComponent_BaseFactory(t || SchemaInputComponent); };
|
|
1082
|
-
SchemaInputComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: {
|
|
1083
|
-
ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4,
|
|
1084
|
-
ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6,
|
|
967
|
+
SchemaInputComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "row schema-input", 4, "ngIf"], [1, "row", "schema-input"], [1, "col-md-12"], [3, "label", "tooltip", "inputId"], [3, "inputId", "schema", "model", "modelPropertiesPath", "editing", "modelChange"], [1, "info-label", "bold", 3, "htmlFor"], ["class", "config-tooltip", 3, "matTooltip", 4, "ngIf"], [1, "config-tooltip", 3, "matTooltip"]], template: function SchemaInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
968
|
+
ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 8, "div", 0);
|
|
969
|
+
ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 8, "div", 0);
|
|
1085
970
|
} if (rf & 2) {
|
|
1086
971
|
ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && ctx.schema.minLength && ctx.schema.minLength > 0);
|
|
1087
972
|
ɵɵadvance(1);
|
|
1088
973
|
ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && (!ctx.schema.minLength || ctx.schema.minLength === 0));
|
|
1089
|
-
} }, directives: [NgIf, FieldRenderComponent, InputRenderComponent, MatTooltip], styles: [""] });
|
|
974
|
+
} }, directives: [NgIf, FieldRenderComponent, InputRenderComponent, MatTooltip], pipes: [TranslatePipe], styles: [""] });
|
|
1090
975
|
const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaInputComponent);
|
|
1091
976
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaInputComponent, [{
|
|
1092
977
|
type: Component,
|
|
@@ -1095,17 +980,7 @@ const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory
|
|
|
1095
980
|
templateUrl: 'schema-input.html',
|
|
1096
981
|
styleUrls: ['./schema-input.scss']
|
|
1097
982
|
}]
|
|
1098
|
-
}], null, {
|
|
1099
|
-
type: Input
|
|
1100
|
-
}], selectPlaceHolderLabel: [{
|
|
1101
|
-
type: Input
|
|
1102
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
1103
|
-
type: Input
|
|
1104
|
-
}], selectClearLabel: [{
|
|
1105
|
-
type: Input
|
|
1106
|
-
}], selectNotFoundLabel: [{
|
|
1107
|
-
type: Input
|
|
1108
|
-
}], idPrefix: [{
|
|
983
|
+
}], null, { idPrefix: [{
|
|
1109
984
|
type: Input
|
|
1110
985
|
}], schema: [{
|
|
1111
986
|
type: Input
|
|
@@ -1121,18 +996,19 @@ function SchemaObjectComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1121
996
|
ɵɵelementStart(1, "div", 6);
|
|
1122
997
|
ɵɵelementStart(2, "label", 7);
|
|
1123
998
|
ɵɵtext(3);
|
|
999
|
+
ɵɵpipe(4, "translate");
|
|
1124
1000
|
ɵɵelementEnd();
|
|
1125
|
-
ɵɵelementStart(
|
|
1126
|
-
ɵɵlistener("modelChange", function
|
|
1001
|
+
ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
1002
|
+
ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_5_listener($event) { ɵɵrestoreView(_r3); const ctx_r2 = ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
|
|
1127
1003
|
ɵɵelementEnd();
|
|
1128
1004
|
ɵɵelementEnd();
|
|
1129
1005
|
ɵɵelementEnd();
|
|
1130
1006
|
} if (rf & 2) {
|
|
1131
1007
|
const ctx_r1 = ɵɵnextContext(2);
|
|
1132
1008
|
ɵɵadvance(3);
|
|
1133
|
-
ɵɵtextInterpolate(
|
|
1134
|
-
ɵɵadvance(
|
|
1135
|
-
ɵɵproperty("
|
|
1009
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1010
|
+
ɵɵadvance(2);
|
|
1011
|
+
ɵɵproperty("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
|
|
1136
1012
|
} }
|
|
1137
1013
|
function SchemaObjectComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
1138
1014
|
const _r5 = ɵɵgetCurrentView();
|
|
@@ -1143,34 +1019,20 @@ function SchemaObjectComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1143
1019
|
ɵɵelementStart(3, "schema-form", 3);
|
|
1144
1020
|
ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_Template_schema_form_modelChange_3_listener($event) { ɵɵrestoreView(_r5); const ctx_r4 = ɵɵnextContext(); return (ctx_r4.model[ctx_r4.schema.id] = $event); });
|
|
1145
1021
|
ɵɵelementEnd();
|
|
1146
|
-
ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template,
|
|
1022
|
+
ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
|
|
1147
1023
|
ɵɵelementEnd();
|
|
1148
1024
|
} if (rf & 2) {
|
|
1149
1025
|
const ctx_r0 = ɵɵnextContext();
|
|
1150
1026
|
ɵɵadvance(2);
|
|
1151
1027
|
ɵɵtextInterpolate(ctx_r0.schema.title);
|
|
1152
1028
|
ɵɵadvance(1);
|
|
1153
|
-
ɵɵproperty("
|
|
1029
|
+
ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
|
|
1154
1030
|
ɵɵadvance(1);
|
|
1155
1031
|
ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
|
|
1156
1032
|
} }
|
|
1157
1033
|
class SchemaObjectComponent extends BaseSchemaComponent {
|
|
1158
1034
|
constructor() {
|
|
1159
1035
|
super(...arguments);
|
|
1160
|
-
this.requiredLabel = '(required)';
|
|
1161
|
-
this.addItemLabel = 'Add Item';
|
|
1162
|
-
this.addLoopLabel = 'Add Loop';
|
|
1163
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
1164
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
1165
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
1166
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
1167
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
1168
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
1169
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
1170
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
1171
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
1172
|
-
this.selectClearLabel = 'Clear';
|
|
1173
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
1174
1036
|
this.editing = false;
|
|
1175
1037
|
this.onDropEvent = new EventEmitter();
|
|
1176
1038
|
this.loaded = false;
|
|
@@ -1187,11 +1049,11 @@ class SchemaObjectComponent extends BaseSchemaComponent {
|
|
|
1187
1049
|
}
|
|
1188
1050
|
}
|
|
1189
1051
|
SchemaObjectComponent.ɵfac = function SchemaObjectComponent_Factory(t) { return ɵSchemaObjectComponent_BaseFactory(t || SchemaObjectComponent); };
|
|
1190
|
-
SchemaObjectComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: {
|
|
1191
|
-
ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5,
|
|
1052
|
+
SchemaObjectComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: { idPrefix: "idPrefix", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing", index: "index" }, outputs: { onDropEvent: "onDropEvent" }, features: [ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-object-container", 4, "ngIf"], [1, "schema-object-container"], [1, "schema-object-title"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaObjectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1053
|
+
ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5, 6, "div", 0);
|
|
1192
1054
|
} if (rf & 2) {
|
|
1193
1055
|
ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type == "object");
|
|
1194
|
-
} }, directives: [NgIf, SchemaFormComponent, SchemaCustomAttributesComponent], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
|
|
1056
|
+
} }, directives: [NgIf, SchemaFormComponent, SchemaCustomAttributesComponent], pipes: [TranslatePipe], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
|
|
1195
1057
|
const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaObjectComponent);
|
|
1196
1058
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaObjectComponent, [{
|
|
1197
1059
|
type: Component,
|
|
@@ -1200,35 +1062,7 @@ const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactor
|
|
|
1200
1062
|
templateUrl: 'schema-object.html',
|
|
1201
1063
|
styleUrls: ['./schema-object.scss']
|
|
1202
1064
|
}]
|
|
1203
|
-
}], null, {
|
|
1204
|
-
type: Input
|
|
1205
|
-
}], addItemLabel: [{
|
|
1206
|
-
type: Input
|
|
1207
|
-
}], addLoopLabel: [{
|
|
1208
|
-
type: Input
|
|
1209
|
-
}], additionalAttributesLabel: [{
|
|
1210
|
-
type: Input
|
|
1211
|
-
}], customAttributeRemoveLabel: [{
|
|
1212
|
-
type: Input
|
|
1213
|
-
}], newCustomFieldNameLabel: [{
|
|
1214
|
-
type: Input
|
|
1215
|
-
}], newCustomFieldValueLabel: [{
|
|
1216
|
-
type: Input
|
|
1217
|
-
}], newCustomFieldAddLabel: [{
|
|
1218
|
-
type: Input
|
|
1219
|
-
}], newCustomFieldSaveLabel: [{
|
|
1220
|
-
type: Input
|
|
1221
|
-
}], newCustomFieldCancelLabel: [{
|
|
1222
|
-
type: Input
|
|
1223
|
-
}], selectPlaceHolderLabel: [{
|
|
1224
|
-
type: Input
|
|
1225
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
1226
|
-
type: Input
|
|
1227
|
-
}], selectClearLabel: [{
|
|
1228
|
-
type: Input
|
|
1229
|
-
}], selectNotFoundLabel: [{
|
|
1230
|
-
type: Input
|
|
1231
|
-
}], idPrefix: [{
|
|
1065
|
+
}], null, { idPrefix: [{
|
|
1232
1066
|
type: Input
|
|
1233
1067
|
}], modelPropertiesPath: [{
|
|
1234
1068
|
type: Input
|
|
@@ -1258,7 +1092,8 @@ class SchemaValidationField {
|
|
|
1258
1092
|
}
|
|
1259
1093
|
|
|
1260
1094
|
class SchemaFieldsService {
|
|
1261
|
-
constructor() {
|
|
1095
|
+
constructor(translate) {
|
|
1096
|
+
this.translate = translate;
|
|
1262
1097
|
}
|
|
1263
1098
|
validateSchemaFields(propertiesRendered, model) {
|
|
1264
1099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1307,36 +1142,25 @@ class SchemaFieldsService {
|
|
|
1307
1142
|
const errors = [];
|
|
1308
1143
|
for (const field of structValidation.emptyFields) {
|
|
1309
1144
|
const fieldName = field.title || field.id;
|
|
1310
|
-
errors.push({
|
|
1311
|
-
type: 'emptyFields',
|
|
1312
|
-
fieldName
|
|
1313
|
-
});
|
|
1145
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR', { fieldName }));
|
|
1314
1146
|
}
|
|
1315
1147
|
for (const field of structValidation.invalidMinLengthFields) {
|
|
1316
1148
|
const fieldName = field.title || field.id;
|
|
1317
|
-
errors.push({
|
|
1318
|
-
type: 'invalidMinLengthFields',
|
|
1319
|
-
fieldName,
|
|
1320
|
-
minLength: field.minLength
|
|
1321
|
-
});
|
|
1149
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR', { fieldName, minLength: field.minLength }));
|
|
1322
1150
|
}
|
|
1323
1151
|
for (const field of structValidation.invalidMaxLengthFields) {
|
|
1324
1152
|
const fieldName = field.title || field.id;
|
|
1325
|
-
errors.push({
|
|
1326
|
-
type: 'invalidMaxLengthFields',
|
|
1327
|
-
fieldName,
|
|
1328
|
-
maxLength: field.maxLength
|
|
1329
|
-
});
|
|
1153
|
+
errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR', { fieldName, maxLength: field.maxLength }));
|
|
1330
1154
|
}
|
|
1331
1155
|
return errors;
|
|
1332
1156
|
});
|
|
1333
1157
|
}
|
|
1334
1158
|
}
|
|
1335
|
-
SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(); };
|
|
1159
|
+
SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(ɵɵinject(TranslateService)); };
|
|
1336
1160
|
SchemaFieldsService.ɵprov = ɵɵdefineInjectable({ token: SchemaFieldsService, factory: SchemaFieldsService.ɵfac });
|
|
1337
1161
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaFieldsService, [{
|
|
1338
1162
|
type: Injectable
|
|
1339
|
-
}], function () { return []; }, null); })();
|
|
1163
|
+
}], function () { return [{ type: TranslateService }]; }, null); })();
|
|
1340
1164
|
|
|
1341
1165
|
function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1342
1166
|
const _r6 = ɵɵgetCurrentView();
|
|
@@ -1344,22 +1168,23 @@ function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) { if (rf
|
|
|
1344
1168
|
ɵɵelementStart(1, "div", 7);
|
|
1345
1169
|
ɵɵelementStart(2, "label", 8);
|
|
1346
1170
|
ɵɵtext(3);
|
|
1171
|
+
ɵɵpipe(4, "translate");
|
|
1347
1172
|
ɵɵelementEnd();
|
|
1348
|
-
ɵɵelementStart(
|
|
1349
|
-
ɵɵlistener("modelChange", function
|
|
1173
|
+
ɵɵelementStart(5, "schema-custom-attributes", 9);
|
|
1174
|
+
ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_5_listener($event) { ɵɵrestoreView(_r6); const ctx_r5 = ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
|
|
1350
1175
|
ɵɵelementEnd();
|
|
1351
1176
|
ɵɵelementEnd();
|
|
1352
1177
|
ɵɵelementEnd();
|
|
1353
1178
|
} if (rf & 2) {
|
|
1354
1179
|
const ctx_r4 = ɵɵnextContext(3);
|
|
1355
1180
|
ɵɵadvance(3);
|
|
1356
|
-
ɵɵtextInterpolate(
|
|
1357
|
-
ɵɵadvance(
|
|
1358
|
-
ɵɵproperty("
|
|
1181
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
1182
|
+
ɵɵadvance(2);
|
|
1183
|
+
ɵɵproperty("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
|
|
1359
1184
|
} }
|
|
1360
1185
|
function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1361
1186
|
ɵɵelementStart(0, "div", 4);
|
|
1362
|
-
ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template,
|
|
1187
|
+
ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
|
|
1363
1188
|
ɵɵelementEnd();
|
|
1364
1189
|
} if (rf & 2) {
|
|
1365
1190
|
const ctx_r1 = ɵɵnextContext(2);
|
|
@@ -1377,27 +1202,13 @@ function SchemaFormRenderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1377
1202
|
} if (rf & 2) {
|
|
1378
1203
|
const ctx_r0 = ɵɵnextContext();
|
|
1379
1204
|
ɵɵadvance(1);
|
|
1380
|
-
ɵɵproperty("
|
|
1205
|
+
ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
|
|
1381
1206
|
ɵɵadvance(1);
|
|
1382
1207
|
ɵɵproperty("ngForOf", ctx_r0.schemas);
|
|
1383
1208
|
} }
|
|
1384
1209
|
class SchemaFormRenderComponent extends BaseSchemaComponent {
|
|
1385
1210
|
constructor() {
|
|
1386
1211
|
super(...arguments);
|
|
1387
|
-
this.requiredLabel = '(required)';
|
|
1388
|
-
this.addItemLabel = 'Add Item';
|
|
1389
|
-
this.addLoopLabel = 'Add Loop';
|
|
1390
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
1391
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
1392
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
1393
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
1394
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
1395
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
1396
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
1397
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
1398
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
1399
|
-
this.selectClearLabel = 'Clear';
|
|
1400
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
1401
1212
|
this.schemas = [];
|
|
1402
1213
|
this.customProperties = false;
|
|
1403
1214
|
this.editing = false;
|
|
@@ -1414,11 +1225,11 @@ class SchemaFormRenderComponent extends BaseSchemaComponent {
|
|
|
1414
1225
|
}
|
|
1415
1226
|
}
|
|
1416
1227
|
SchemaFormRenderComponent.ɵfac = function SchemaFormRenderComponent_Factory(t) { return ɵSchemaFormRenderComponent_BaseFactory(t || SchemaFormRenderComponent); };
|
|
1417
|
-
SchemaFormRenderComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: {
|
|
1418
|
-
ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3,
|
|
1228
|
+
SchemaFormRenderComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema", 4, "ngIf"], [1, "schema"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaFormRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1229
|
+
ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
|
|
1419
1230
|
} if (rf & 2) {
|
|
1420
1231
|
ɵɵproperty("ngIf", ctx.loaded);
|
|
1421
|
-
} }, directives: [NgIf, SchemaFormComponent, NgForOf, SchemaCustomAttributesComponent], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
1232
|
+
} }, directives: [NgIf, SchemaFormComponent, NgForOf, SchemaCustomAttributesComponent], pipes: [TranslatePipe], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
1422
1233
|
const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
1423
1234
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
1424
1235
|
type: Component,
|
|
@@ -1427,35 +1238,7 @@ const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFa
|
|
|
1427
1238
|
templateUrl: 'schema-form-render.html',
|
|
1428
1239
|
styleUrls: ['./schema-form-render.scss']
|
|
1429
1240
|
}]
|
|
1430
|
-
}], null, {
|
|
1431
|
-
type: Input
|
|
1432
|
-
}], addItemLabel: [{
|
|
1433
|
-
type: Input
|
|
1434
|
-
}], addLoopLabel: [{
|
|
1435
|
-
type: Input
|
|
1436
|
-
}], additionalAttributesLabel: [{
|
|
1437
|
-
type: Input
|
|
1438
|
-
}], customAttributeRemoveLabel: [{
|
|
1439
|
-
type: Input
|
|
1440
|
-
}], newCustomFieldNameLabel: [{
|
|
1441
|
-
type: Input
|
|
1442
|
-
}], newCustomFieldValueLabel: [{
|
|
1443
|
-
type: Input
|
|
1444
|
-
}], newCustomFieldAddLabel: [{
|
|
1445
|
-
type: Input
|
|
1446
|
-
}], newCustomFieldSaveLabel: [{
|
|
1447
|
-
type: Input
|
|
1448
|
-
}], newCustomFieldCancelLabel: [{
|
|
1449
|
-
type: Input
|
|
1450
|
-
}], selectPlaceHolderLabel: [{
|
|
1451
|
-
type: Input
|
|
1452
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
1453
|
-
type: Input
|
|
1454
|
-
}], selectClearLabel: [{
|
|
1455
|
-
type: Input
|
|
1456
|
-
}], selectNotFoundLabel: [{
|
|
1457
|
-
type: Input
|
|
1458
|
-
}], idPrefix: [{
|
|
1241
|
+
}], null, { idPrefix: [{
|
|
1459
1242
|
type: Input
|
|
1460
1243
|
}], schemas: [{
|
|
1461
1244
|
type: Input
|
|
@@ -1477,6 +1260,7 @@ SchemaFormRenderModule.ɵinj = ɵɵdefineInjector({ factory: function SchemaForm
|
|
|
1477
1260
|
DndModule,
|
|
1478
1261
|
FormsModule,
|
|
1479
1262
|
MatTooltipModule,
|
|
1263
|
+
TranslateModule,
|
|
1480
1264
|
InputsModule
|
|
1481
1265
|
]] });
|
|
1482
1266
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(SchemaFormRenderModule, { declarations: [ArraySessionComponent,
|
|
@@ -1493,6 +1277,7 @@ SchemaFormRenderModule.ɵinj = ɵɵdefineInjector({ factory: function SchemaForm
|
|
|
1493
1277
|
DndModule,
|
|
1494
1278
|
FormsModule,
|
|
1495
1279
|
MatTooltipModule,
|
|
1280
|
+
TranslateModule,
|
|
1496
1281
|
InputsModule], exports: [ArraySessionComponent,
|
|
1497
1282
|
SchemaArrayComponent,
|
|
1498
1283
|
FieldRenderComponent,
|
|
@@ -1512,6 +1297,7 @@ SchemaFormRenderModule.ɵinj = ɵɵdefineInjector({ factory: function SchemaForm
|
|
|
1512
1297
|
DndModule,
|
|
1513
1298
|
FormsModule,
|
|
1514
1299
|
MatTooltipModule,
|
|
1300
|
+
TranslateModule,
|
|
1515
1301
|
InputsModule
|
|
1516
1302
|
],
|
|
1517
1303
|
declarations: [
|
|
@@ -1545,7 +1331,7 @@ SchemaFormRenderModule.ɵinj = ɵɵdefineInjector({ factory: function SchemaForm
|
|
|
1545
1331
|
]
|
|
1546
1332
|
}]
|
|
1547
1333
|
}], null, null); })();
|
|
1548
|
-
ɵɵsetComponentScope(SchemaFormComponent, [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, DndDraggableDirective, DndDropzoneDirective, DndHandleDirective, DndPlaceholderRefDirective, DndDragImageRefDirective, ɵangular_packages_forms_forms_y, NgSelectOption, ɵangular_packages_forms_forms_x, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, NgModel, NgModelGroup, NgForm, MatTooltip, TooltipComponent, Dir, CdkScrollable, SelectBoxComponent, SelectEnumComponent, InputTextComponent, InputPasswordComponent, InputAvatarComponent, InputFileComponent, CustomSelectComponent, FieldComponent, ArraySessionComponent,
|
|
1334
|
+
ɵɵsetComponentScope(SchemaFormComponent, [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, DndDraggableDirective, DndDropzoneDirective, DndHandleDirective, DndPlaceholderRefDirective, DndDragImageRefDirective, ɵangular_packages_forms_forms_y, NgSelectOption, ɵangular_packages_forms_forms_x, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, NgModel, NgModelGroup, NgForm, MatTooltip, TooltipComponent, Dir, CdkScrollable, TranslateDirective, SelectBoxComponent, SelectEnumComponent, InputTextComponent, InputPasswordComponent, InputAvatarComponent, InputFileComponent, CustomSelectComponent, FieldComponent, ArraySessionComponent,
|
|
1549
1335
|
SchemaArrayComponent,
|
|
1550
1336
|
FieldRenderComponent,
|
|
1551
1337
|
InputRenderComponent,
|
|
@@ -1555,7 +1341,7 @@ SchemaFormRenderModule.ɵinj = ɵɵdefineInjector({ factory: function SchemaForm
|
|
|
1555
1341
|
SchemaObjectComponent,
|
|
1556
1342
|
SchemaFormRenderComponent,
|
|
1557
1343
|
SchemaFormComponent,
|
|
1558
|
-
SchemaCustomAttributesComponent], [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe]);
|
|
1344
|
+
SchemaCustomAttributesComponent], [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe, TranslatePipe]);
|
|
1559
1345
|
|
|
1560
1346
|
class TypeScriptCompile {
|
|
1561
1347
|
static addItemToFormProperties(formProperties, item, key) {
|