@apipass/schemas 1.0.89 → 1.0.91
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/esm2022/schema-custom-attributes/schema-custom-attributes.mjs +8 -8
- package/esm2022/schema-form/schema-array/array-session/array-session.mjs +6 -6
- package/esm2022/schema-form/schema-array/schema-array.mjs +7 -7
- package/esm2022/schema-form/schema-input/input-render/boolean-input/boolean-input.component.mjs +4 -4
- package/esm2022/schema-form/schema-input/input-render/input-render.mjs +5 -5
- package/esm2022/schema-form/schema-input/input-render/number-input/number-input.component.mjs +4 -4
- package/esm2022/schema-form-render.module.mjs +34 -4
- package/fesm2022/apipass-schemas.mjs +61 -31
- package/fesm2022/apipass-schemas.mjs.map +1 -1
- package/package.json +1 -1
- package/schema-form-render.module.d.ts +1 -1
package/esm2022/schema-form/schema-input/input-render/number-input/number-input.component.mjs
CHANGED
|
@@ -27,18 +27,18 @@ class NumberInputComponent extends BaseSchemaComponent {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
static ɵfac = /*@__PURE__*/ function () { let ɵNumberInputComponent_BaseFactory; return function NumberInputComponent_Factory(t) { return (ɵNumberInputComponent_BaseFactory || (ɵNumberInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(NumberInputComponent)))(t || NumberInputComponent); }; }();
|
|
30
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
30
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 7, consts: [["dndDropzone", "", 1, "form-control", "number-input", 3, "id", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "maxlength", "ngModelChange", "dndDrop"]], template: function NumberInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31
31
|
i0.ɵɵelementStart(0, "input", 0);
|
|
32
32
|
i0.ɵɵlistener("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); })("dndDrop", function NumberInputComponent_Template_input_dndDrop_0_listener($event) { return ctx.onDropCallBack($event, ctx.value); });
|
|
33
33
|
i0.ɵɵelementEnd();
|
|
34
34
|
} if (rf & 2) {
|
|
35
|
-
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
35
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0))("dndAllowExternal", true)("maxlength", ctx.maxLength);
|
|
36
36
|
} }, dependencies: [i1.DndDropzoneDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.MaxLengthValidator, i2.NgModel], encapsulation: 2 });
|
|
37
37
|
}
|
|
38
38
|
export { NumberInputComponent };
|
|
39
39
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
40
40
|
type: Component,
|
|
41
|
-
args: [{ selector: 'number-input', template: "<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
41
|
+
args: [{ selector: 'number-input', template: "<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
42
42
|
}], null, { placeholder: [{
|
|
43
43
|
type: Input
|
|
44
44
|
}], inputId: [{
|
|
@@ -46,4 +46,4 @@ export { NumberInputComponent };
|
|
|
46
46
|
}], maxLength: [{
|
|
47
47
|
type: Input
|
|
48
48
|
}] }); })();
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1pbnB1dC9pbnB1dC1yZW5kZXIvbnVtYmVyLWlucHV0L251bWJlci1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zY2hlbWFzL3NyYy9zY2hlbWEtZm9ybS9zY2hlbWEtaW5wdXQvaW5wdXQtcmVuZGVyL251bWJlci1pbnB1dC9udW1iZXItaW5wdXQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFvQixTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFBO0FBQ2xFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFBOzs7OztBQUd2RSxNQUlhLG9CQUFxQixTQUFRLG1CQUFtQjtJQUVsRCxXQUFXLENBQW9CO0lBQy9CLE9BQU8sQ0FBb0I7SUFDM0IsU0FBUyxDQUFLO0lBRXZCLEtBQUssQ0FBb0I7SUFFekIsa0JBQWtCO1FBQ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gIGlmICgkZXZlbnQgJiYgIWlzTmFOKCRldmVudCkpIHtcbiAgICAgIHRoaXMubW9kZWwgPSBOdW1iZXIoJGV2ZW50KVxuICAgICAgdGhpcy5tb2RlbENoYW5nZS5lbWl0KHRoaXMubW9kZWwpXG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMubW9kZWwgPSAkZXZlbnRcbiAgICAgIHRoaXMubW9kZWxDaGFuZ2UuZW1pdCh0aGlzLm1vZGVsKVxuICAgIH1cbiAgfVxuXG59XG4iLCI8aW5wdXQgY2xhc3M9XCJmb3JtLWNvbnRyb2wgbnVtYmVyLWlucHV0XCJcbiAgICAgICBbaWRdPVwiaW5wdXRJZFwiXG4gICAgICAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgICAgICBbKG5nTW9kZWwpXT1cInZhbHVlXCJcbiAgICAgICBbbmdNb2RlbE9wdGlvbnNdPVwie3N0YW5kYWxvbmU6IHRydWV9XCJcbiAgICAgICAobmdNb2RlbENoYW5nZSk9XCJjaGFuZ2VWYWx1ZSgkZXZlbnQpXCJcbiAgICAgICBkbmREcm9wem9uZSBbZG5kQWxsb3dFeHRlcm5hbF09XCJ0cnVlXCIgKGRuZERyb3ApPVwib25Ecm9wQ2FsbEJhY2soJGV2ZW50LCB2YWx1ZSlcIlxuICAgICAgIFttYXhsZW5ndGhdPVwibWF4TGVuZ3RoXCI+XG4iXX0=
|
|
@@ -31,7 +31,17 @@ class SchemaFormRenderModule {
|
|
|
31
31
|
FormsModule,
|
|
32
32
|
MatTooltipModule,
|
|
33
33
|
InputsModule,
|
|
34
|
-
IconsModule
|
|
34
|
+
IconsModule,
|
|
35
|
+
DndModule,
|
|
36
|
+
DndModule,
|
|
37
|
+
DndModule,
|
|
38
|
+
DndModule,
|
|
39
|
+
DndModule,
|
|
40
|
+
DndModule,
|
|
41
|
+
DndModule,
|
|
42
|
+
DndModule,
|
|
43
|
+
DndModule,
|
|
44
|
+
DndModule] });
|
|
35
45
|
}
|
|
36
46
|
export { SchemaFormRenderModule };
|
|
37
47
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaFormRenderModule, [{
|
|
@@ -43,7 +53,17 @@ export { SchemaFormRenderModule };
|
|
|
43
53
|
FormsModule,
|
|
44
54
|
MatTooltipModule,
|
|
45
55
|
InputsModule,
|
|
46
|
-
IconsModule
|
|
56
|
+
IconsModule,
|
|
57
|
+
DndModule,
|
|
58
|
+
DndModule,
|
|
59
|
+
DndModule,
|
|
60
|
+
DndModule,
|
|
61
|
+
DndModule,
|
|
62
|
+
DndModule,
|
|
63
|
+
DndModule,
|
|
64
|
+
DndModule,
|
|
65
|
+
DndModule,
|
|
66
|
+
DndModule
|
|
47
67
|
],
|
|
48
68
|
declarations: [
|
|
49
69
|
ArraySessionComponent,
|
|
@@ -92,7 +112,17 @@ export { SchemaFormRenderModule };
|
|
|
92
112
|
FormsModule,
|
|
93
113
|
MatTooltipModule,
|
|
94
114
|
InputsModule,
|
|
95
|
-
IconsModule
|
|
115
|
+
IconsModule,
|
|
116
|
+
DndModule,
|
|
117
|
+
DndModule,
|
|
118
|
+
DndModule,
|
|
119
|
+
DndModule,
|
|
120
|
+
DndModule,
|
|
121
|
+
DndModule,
|
|
122
|
+
DndModule,
|
|
123
|
+
DndModule,
|
|
124
|
+
DndModule,
|
|
125
|
+
DndModule], exports: [ArraySessionComponent,
|
|
96
126
|
SchemaArrayComponent,
|
|
97
127
|
FieldRenderComponent,
|
|
98
128
|
InputRenderComponent,
|
|
@@ -106,4 +136,4 @@ export { SchemaFormRenderModule };
|
|
|
106
136
|
i0.ɵɵsetComponentScope(SchemaFormComponent, [i1.NgForOf, SchemaArrayComponent,
|
|
107
137
|
SchemaInputComponent,
|
|
108
138
|
SchemaObjectComponent], []);
|
|
109
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
139
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2No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iZXJJbnB1dENvbXBvbmVudCxcbiAgICBTY2hlbWFJbnB1dENvbXBvbmVudCxcbiAgICBTY2hlbWFPYmplY3RDb21wb25lbnQsXG4gICAgU2NoZW1hRm9ybVJlbmRlckNvbXBvbmVudCxcbiAgICBTY2hlbWFGb3JtQ29tcG9uZW50LFxuICAgIFNjaGVtYUN1c3RvbUF0dHJpYnV0ZXNDb21wb25lbnRcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXG4gICAgU2NoZW1hRmllbGRzU2VydmljZSxcbiAgICBBUElQQVNTX1RZUEVTQ1JJUFRfQ09NUElMRV9JTlRMX1BST1ZJREVSXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgU2NoZW1hRm9ybVJlbmRlck1vZHVsZSB7XG59XG4iXX0=
|
|
@@ -75,9 +75,9 @@ function ArraySessionComponent_div_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
75
75
|
} if (rf & 2) {
|
|
76
76
|
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
77
77
|
i0.ɵɵadvance(4);
|
|
78
|
-
i0.ɵɵproperty("ngModel", item_r2.loop)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
78
|
+
i0.ɵɵproperty("ngModel", item_r2.loop)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$6))("dndAllowExternal", true);
|
|
79
79
|
i0.ɵɵadvance(4);
|
|
80
|
-
i0.ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
80
|
+
i0.ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", i0.ɵɵpureFunction0(7, _c0$6))("dndAllowExternal", true);
|
|
81
81
|
} }
|
|
82
82
|
function ArraySessionComponent_div_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
83
83
|
i0.ɵɵelementContainer(0);
|
|
@@ -91,7 +91,7 @@ function ArraySessionComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
91
91
|
i0.ɵɵelementStart(3, "i", 9);
|
|
92
92
|
i0.ɵɵlistener("click", function ArraySessionComponent_div_4_Template_i_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r17); const item_r2 = restoredCtx.$implicit; const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.remove(item_r2)); });
|
|
93
93
|
i0.ɵɵelementEnd()();
|
|
94
|
-
i0.ɵɵtemplate(4, ArraySessionComponent_div_4_div_4_Template, 9,
|
|
94
|
+
i0.ɵɵtemplate(4, ArraySessionComponent_div_4_div_4_Template, 9, 8, "div", 10);
|
|
95
95
|
i0.ɵɵtemplate(5, ArraySessionComponent_div_4_ng_container_5_Template, 1, 0, "ng-container", 11);
|
|
96
96
|
i0.ɵɵelementEnd();
|
|
97
97
|
} if (rf & 2) {
|
|
@@ -146,7 +146,7 @@ class ArraySessionComponent extends BaseSchemaComponent {
|
|
|
146
146
|
} if (rf & 2) {
|
|
147
147
|
let _t;
|
|
148
148
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subsectionItem = _t.first);
|
|
149
|
-
} }, inputs: { label: "label", removeLabel: "removeLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", showAddLoop: "showAddLoop" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 5, 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) {
|
|
149
|
+
} }, inputs: { label: "label", removeLabel: "removeLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", showAddLoop: "showAddLoop" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 5, 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", "dndAllowExternal", "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) {
|
|
150
150
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "label", 2);
|
|
151
151
|
i0.ɵɵtext(3);
|
|
152
152
|
i0.ɵɵelementEnd();
|
|
@@ -171,7 +171,7 @@ class ArraySessionComponent extends BaseSchemaComponent {
|
|
|
171
171
|
}
|
|
172
172
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArraySessionComponent, [{
|
|
173
173
|
type: Component,
|
|
174
|
-
args: [{ selector: 'array-session', template: "<div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ label }}</label>\n <div class=\"subsection-element\" *ngFor=\"let item of model; let index = index; trackBy:trackByIndex;\">\n <div class=\"subsection-item-title\">{{ removeLabel }} {{ index + 1 }}\n <i class=\"far fa-trash-alt\" (click)=\"remove(item)\"></i>\n </div>\n <div class=\"row\" *ngIf=\"item.mappingAttributes || item.mappingAttributes === ''\">\n <div class=\"col-md-8\">\n <label class=\"info-label\">Loop</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.loop\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.loop = this.onDrop($event, item.loop)\" />\n </div>\n <div class=\"col-md-4\">\n <label class=\"info-label\">Alias</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.alias\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.alias = this.onDrop($event, item.alias)\" />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"subsectionItem, context: {\n $implicit: {\n items: model, index: index,\n mappingAttributes: (item.mappingAttributes || item.mappingAttributes === '') ? item.mappingAttributes : item\n }\n }\"></ng-container>\n </div>\n </div>\n</div>\n<div class=\"row add-buttons\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-outline-primary float-left btn-personal-edit\" (click)=\"add()\">{{ this.addItemLabel }}</button>\n <button class=\"btn btn-outline-primary float-left btn-personal-edit ml-2\" *ngIf=\"showAddLoop\" (click)=\"addLoop()\">{{ this.addLoopLabel }}</button>\n </div>\n</div>\n", styles: [".subsection-element{padding:5px 15px 15px;margin-top:10px;border:1px solid #CCC;border-radius:5px;background:#FFF}.subsection-element:first-child{margin-top:0!important}.btn-personal-edit{margin:5px 0}.subsection-item-title{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 30px);padding:7px 10px 7px 14px;margin-top:-5px;margin-bottom:5px;margin-left:-15px;background:#EEE;border-radius:5px 5px 0 0;font-weight:700;border-bottom:1px solid #CCC}.subsection-item-title .fa-trash-alt{color:red;cursor:pointer}.subsection-item-title label{font-weight:700}.add-buttons{margin-top:5px}\n"] }]
|
|
174
|
+
args: [{ selector: 'array-session', template: "<div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ label }}</label>\n <div class=\"subsection-element\" *ngFor=\"let item of model; let index = index; trackBy:trackByIndex;\">\n <div class=\"subsection-item-title\">{{ removeLabel }} {{ index + 1 }}\n <i class=\"far fa-trash-alt\" (click)=\"remove(item)\"></i>\n </div>\n <div class=\"row\" *ngIf=\"item.mappingAttributes || item.mappingAttributes === ''\">\n <div class=\"col-md-8\">\n <label class=\"info-label\">Loop</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.loop\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"item.loop = this.onDrop($event, item.loop)\" />\n </div>\n <div class=\"col-md-4\">\n <label class=\"info-label\">Alias</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.alias\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"item.alias = this.onDrop($event, item.alias)\" />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"subsectionItem, context: {\n $implicit: {\n items: model, index: index,\n mappingAttributes: (item.mappingAttributes || item.mappingAttributes === '') ? item.mappingAttributes : item\n }\n }\"></ng-container>\n </div>\n </div>\n</div>\n<div class=\"row add-buttons\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-outline-primary float-left btn-personal-edit\" (click)=\"add()\">{{ this.addItemLabel }}</button>\n <button class=\"btn btn-outline-primary float-left btn-personal-edit ml-2\" *ngIf=\"showAddLoop\" (click)=\"addLoop()\">{{ this.addLoopLabel }}</button>\n </div>\n</div>\n", styles: [".subsection-element{padding:5px 15px 15px;margin-top:10px;border:1px solid #CCC;border-radius:5px;background:#FFF}.subsection-element:first-child{margin-top:0!important}.btn-personal-edit{margin:5px 0}.subsection-item-title{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 30px);padding:7px 10px 7px 14px;margin-top:-5px;margin-bottom:5px;margin-left:-15px;background:#EEE;border-radius:5px 5px 0 0;font-weight:700;border-bottom:1px solid #CCC}.subsection-item-title .fa-trash-alt{color:red;cursor:pointer}.subsection-item-title label{font-weight:700}.add-buttons{margin-top:5px}\n"] }]
|
|
175
175
|
}], null, { label: [{
|
|
176
176
|
type: Input
|
|
177
177
|
}], removeLabel: [{
|
|
@@ -314,7 +314,7 @@ function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
314
314
|
i0.ɵɵadvance(2);
|
|
315
315
|
i0.ɵɵproperty("matTooltip", ctx_r0.customAttributeRemoveLabel);
|
|
316
316
|
i0.ɵɵadvance(1);
|
|
317
|
-
i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
317
|
+
i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0$5))("dndAllowExternal", true);
|
|
318
318
|
} }
|
|
319
319
|
function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
320
320
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -339,11 +339,11 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
339
339
|
i0.ɵɵadvance(4);
|
|
340
340
|
i0.ɵɵtextInterpolate(ctx_r1.newCustomFieldNameLabel);
|
|
341
341
|
i0.ɵɵadvance(3);
|
|
342
|
-
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
342
|
+
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(8, _c0$5))("dndAllowExternal", true);
|
|
343
343
|
i0.ɵɵadvance(4);
|
|
344
344
|
i0.ɵɵtextInterpolate(ctx_r1.newCustomFieldValueLabel);
|
|
345
345
|
i0.ɵɵadvance(3);
|
|
346
|
-
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
346
|
+
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(9, _c0$5))("dndAllowExternal", true);
|
|
347
347
|
} }
|
|
348
348
|
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
349
349
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
@@ -411,9 +411,9 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
411
411
|
newCustomField[value] += `{{${$event.data}}}`;
|
|
412
412
|
}
|
|
413
413
|
static ɵfac = /*@__PURE__*/ function () { let ɵSchemaCustomAttributesComponent_BaseFactory; return function SchemaCustomAttributesComponent_Factory(t) { return (ɵSchemaCustomAttributesComponent_BaseFactory || (ɵSchemaCustomAttributesComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SchemaCustomAttributesComponent)))(t || SchemaCustomAttributesComponent); }; }();
|
|
414
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵ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, "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) {
|
|
415
|
-
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7,
|
|
416
|
-
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15,
|
|
414
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵ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", "dndAllowExternal", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [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) {
|
|
415
|
+
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7, 6, "div", 0);
|
|
416
|
+
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15, 10, "div", 1);
|
|
417
417
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
418
418
|
i0.ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 2, 1, "button", 4);
|
|
419
419
|
i0.ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 2, 1, "button", 5);
|
|
@@ -433,7 +433,7 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
433
433
|
}
|
|
434
434
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
|
|
435
435
|
type: Component,
|
|
436
|
-
args: [{ selector: 'schema-custom-attributes', template: "<div class=\"row custom-attributes\" *ngFor=\"let attribute of model; let i = index\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ attribute.label }}</label>\n <span (click)=\"removeCustomAttribute(i)\" class=\"customAttributeDeleteIcon\">\n <i class=\"far fa-trash-alt\" [matTooltip]=\"this.customAttributeRemoveLabel\"></i>\n </span>\n\n <input\n class=\"form-control\"\n [(ngModel)]=\"attribute.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, 'value', attribute)\"\n />\n </div>\n</div>\n<div *ngIf=\"newCustomField\" class=\"struct-custom-field\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldNameLabel }}<strong>*</strong></label>\n <input
|
|
436
|
+
args: [{ selector: 'schema-custom-attributes', template: "<div class=\"row custom-attributes\" *ngFor=\"let attribute of model; let i = index\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ attribute.label }}</label>\n <span (click)=\"removeCustomAttribute(i)\" class=\"customAttributeDeleteIcon\">\n <i class=\"far fa-trash-alt\" [matTooltip]=\"this.customAttributeRemoveLabel\"></i>\n </span>\n\n <input\n class=\"form-control\"\n [(ngModel)]=\"attribute.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone [dndAllowExternal]=\"true\"\n (dndDrop)=\"onDropAttr($event, 'value', attribute)\"\n />\n </div>\n</div>\n<div *ngIf=\"newCustomField\" class=\"struct-custom-field\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldNameLabel }}<strong>*</strong></label>\n <input\n class=\"form-control\"\n [(ngModel)]=\"newCustomField.label\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone [dndAllowExternal]=\"true\"\n (dndDrop)=\"onDropAttr($event, 'label', newCustomField)\"\n />\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldValueLabel }}<strong>*</strong></label>\n <input\n class=\"form-control\"\n [(ngModel)]=\"newCustomField.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone [dndAllowExternal]=\"true\"\n (dndDrop)=\"onDropAttr($event, 'value', newCustomField)\"\n />\n </div>\n </div>\n</div>\n<div class=\"row actions-buttons\">\n <div class=\"col-md-12 pull-right\">\n <button class=\"btn btn-outline-primary float-left\" *ngIf=\"!newCustomField\" (click)=\"newCustomField = {}\">\n {{ this.newCustomFieldAddLabel }}\n </button>\n <button\n class=\"btn btn-outline-danger float-left ml-2\"\n *ngIf=\"newCustomField\"\n (click)=\"newCustomField = null\"\n >\n {{ this.newCustomFieldCancelLabel }}\n </button>\n <button\n class=\"btn btn-outline-primary float-left\"\n *ngIf=\"newCustomField && newCustomField.label && newCustomField.value\"\n (click)=\"saveNewAttribute(newCustomField)\"\n >\n {{ this.newCustomFieldSaveLabel }}\n </button>\n </div>\n</div>\n", styles: [".customAttributeDeleteIcon{position:absolute;right:15px;top:4px;cursor:pointer;font-size:16px;color:red}.customAttributeDeleteIcon:hover{color:#777}.struct-custom-field{margin-top:16px;padding:8px 16px 16px;background-color:#ececec}\n"] }]
|
|
437
437
|
}], null, { onDropFunction: [{
|
|
438
438
|
type: Input
|
|
439
439
|
}], customAttributeRemoveLabel: [{
|
|
@@ -523,7 +523,7 @@ function SchemaArrayComponent_div_1_ng_template_2_input_2_Template(rf, ctx) { if
|
|
|
523
523
|
} if (rf & 2) {
|
|
524
524
|
const item_r24 = i0.ɵɵnextContext().$implicit;
|
|
525
525
|
const ctx_r25 = i0.ɵɵnextContext(2);
|
|
526
|
-
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
526
|
+
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", i0.ɵɵpureFunction0(4, _c0$4))("dndAllowExternal", true)("id", ctx_r25.getId(ctx_r25.index) + "-" + item_r24.index);
|
|
527
527
|
} }
|
|
528
528
|
function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
529
529
|
const _r36 = i0.ɵɵgetCurrentView();
|
|
@@ -533,14 +533,14 @@ function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template(rf, ctx
|
|
|
533
533
|
} if (rf & 2) {
|
|
534
534
|
const item_r24 = i0.ɵɵnextContext().$implicit;
|
|
535
535
|
const ctx_r27 = i0.ɵɵnextContext(2);
|
|
536
|
-
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index])("ngModelOptions", i0.ɵɵpureFunction0(
|
|
536
|
+
i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index])("ngModelOptions", i0.ɵɵpureFunction0(4, _c0$4))("dndAllowExternal", true)("id", ctx_r27.getId(ctx_r27.index) + "-" + item_r24.index);
|
|
537
537
|
} }
|
|
538
538
|
function SchemaArrayComponent_div_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
539
539
|
i0.ɵɵelementStart(0, "label", 9);
|
|
540
540
|
i0.ɵɵtext(1);
|
|
541
541
|
i0.ɵɵelementEnd();
|
|
542
|
-
i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_input_2_Template, 1,
|
|
543
|
-
i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template, 1,
|
|
542
|
+
i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_input_2_Template, 1, 5, "input", 10);
|
|
543
|
+
i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template, 1, 5, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
544
544
|
} if (rf & 2) {
|
|
545
545
|
const item_r24 = ctx.$implicit;
|
|
546
546
|
const _r26 = i0.ɵɵreference(4);
|
|
@@ -614,7 +614,7 @@ class SchemaArrayComponent extends BaseSchemaComponent {
|
|
|
614
614
|
this.model[id].push({ loop: '', alias: '', mappingAttributes });
|
|
615
615
|
}
|
|
616
616
|
static ɵfac = /*@__PURE__*/ function () { let ɵSchemaArrayComponent_BaseFactory; return function SchemaArrayComponent_Factory(t) { return (ɵSchemaArrayComponent_BaseFactory || (ɵSchemaArrayComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SchemaArrayComponent)))(t || SchemaArrayComponent); }; }();
|
|
617
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "addItemLabel", "addLoopLabel", "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "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) {
|
|
617
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "addItemLabel", "addLoopLabel", "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "model", "onDropFunction", "modelChange"], [1, "info-label", 3, "htmlFor"], ["class", "form-control", "type", "text", "dndDropzone", "", 3, "ngModel", "ngModelOptions", "dndAllowExternal", "id", "ngModelChange", "dndDrop", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "dndAllowExternal", "id", "ngModelChange", "dndDrop"]], template: function SchemaArrayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
618
618
|
i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3, 6, "div", 0);
|
|
619
619
|
i0.ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3, 6, "div", 0);
|
|
620
620
|
} if (rf & 2) {
|
|
@@ -625,7 +625,7 @@ class SchemaArrayComponent extends BaseSchemaComponent {
|
|
|
625
625
|
}
|
|
626
626
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaArrayComponent, [{
|
|
627
627
|
type: Component,
|
|
628
|
-
args: [{ selector: 'schema-array', template: "<div *ngIf=\"loaded && canRender(schema) && schema.type === 'array' && schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, {})\"\n (onAddLoop)=\"addArrayLoop(schema.id, {})\">\n <ng-template let-item>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop !== undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index].mappingAttributes\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop == undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id][item.index] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id][item.index].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n </ng-template>\n </array-session>\n</div>\n<div *ngIf=\"schema && canRender(schema) && schema.type === 'array' && !schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, '')\"\n (onAddLoop)=\"addArrayLoop(schema.id, '')\"\n >\n <ng-template let-item>\n <label class=\"info-label\" [htmlFor]=\"getId(index)+'-'+item.index\">{{ schema.title }}</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index].mappingAttributes\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index].mappingAttributes = this.onDrop($event, item.items[item.index].mappingAttributes)\"\n *ngIf=\"item.items[item.index].mappingAttributes || item.items[item.index].mappingAttributes === ''; else elseBlock\"\n [id]=\"getId(index)+'-'+item.index\"/>\n <ng-template #elseBlock>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index]\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index] = this.onDrop($event, item.items[item.index])\"\n [id]=\"getId(index)+'-'+item.index\"/>\n </ng-template>\n </ng-template>\n </array-session>\n</div>\n" }]
|
|
628
|
+
args: [{ selector: 'schema-array', template: "<div *ngIf=\"loaded && canRender(schema) && schema.type === 'array' && schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, {})\"\n (onAddLoop)=\"addArrayLoop(schema.id, {})\">\n <ng-template let-item>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop !== undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index].mappingAttributes\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop == undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id][item.index] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id][item.index].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n </ng-template>\n </array-session>\n</div>\n<div *ngIf=\"schema && canRender(schema) && schema.type === 'array' && !schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, '')\"\n (onAddLoop)=\"addArrayLoop(schema.id, '')\"\n >\n <ng-template let-item>\n <label class=\"info-label\" [htmlFor]=\"getId(index)+'-'+item.index\">{{ schema.title }}</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index].mappingAttributes\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone [dndAllowExternal]=\"true\"\n (dndDrop)=\"item.items[item.index].mappingAttributes = this.onDrop($event, item.items[item.index].mappingAttributes)\"\n *ngIf=\"item.items[item.index].mappingAttributes || item.items[item.index].mappingAttributes === ''; else elseBlock\"\n [id]=\"getId(index)+'-'+item.index\"/>\n <ng-template #elseBlock>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index]\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone [dndAllowExternal]=\"true\"\n (dndDrop)=\"item.items[item.index] = this.onDrop($event, item.items[item.index])\"\n [id]=\"getId(index)+'-'+item.index\"/>\n </ng-template>\n </ng-template>\n </array-session>\n</div>\n" }]
|
|
629
629
|
}], null, { requiredLabel: [{
|
|
630
630
|
type: Input
|
|
631
631
|
}], addItemLabel: [{
|
|
@@ -758,17 +758,17 @@ class BooleanInputComponent extends BaseSchemaComponent {
|
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
static ɵfac = /*@__PURE__*/ function () { let ɵBooleanInputComponent_BaseFactory; return function BooleanInputComponent_Factory(t) { return (ɵBooleanInputComponent_BaseFactory || (ɵBooleanInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BooleanInputComponent)))(t || BooleanInputComponent); }; }();
|
|
761
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BooleanInputComponent, selectors: [["boolean-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
761
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BooleanInputComponent, selectors: [["boolean-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 7, consts: [["dndDropzone", "", 1, "form-control", 3, "id", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "maxlength", "ngModelChange", "dndDrop"]], template: function BooleanInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
762
762
|
i0.ɵɵelementStart(0, "input", 0);
|
|
763
763
|
i0.ɵɵlistener("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function BooleanInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); })("dndDrop", function BooleanInputComponent_Template_input_dndDrop_0_listener($event) { return ctx.onDropCallBack($event, ctx.value); });
|
|
764
764
|
i0.ɵɵelementEnd();
|
|
765
765
|
} if (rf & 2) {
|
|
766
|
-
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
766
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$2))("dndAllowExternal", true)("maxlength", ctx.maxLength);
|
|
767
767
|
} }, dependencies: [i2.DndDropzoneDirective, i3.DefaultValueAccessor, i3.NgControlStatus, i3.MaxLengthValidator, i3.NgModel], encapsulation: 2 });
|
|
768
768
|
}
|
|
769
769
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BooleanInputComponent, [{
|
|
770
770
|
type: Component,
|
|
771
|
-
args: [{ selector: 'boolean-input', template: "<input class=\"form-control\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
771
|
+
args: [{ selector: 'boolean-input', template: "<input class=\"form-control\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
772
772
|
}], null, { placeholder: [{
|
|
773
773
|
type: Input
|
|
774
774
|
}], inputId: [{
|
|
@@ -801,17 +801,17 @@ class NumberInputComponent extends BaseSchemaComponent {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
static ɵfac = /*@__PURE__*/ function () { let ɵNumberInputComponent_BaseFactory; return function NumberInputComponent_Factory(t) { return (ɵNumberInputComponent_BaseFactory || (ɵNumberInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(NumberInputComponent)))(t || NumberInputComponent); }; }();
|
|
804
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
804
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 7, consts: [["dndDropzone", "", 1, "form-control", "number-input", 3, "id", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "maxlength", "ngModelChange", "dndDrop"]], template: function NumberInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
805
805
|
i0.ɵɵelementStart(0, "input", 0);
|
|
806
806
|
i0.ɵɵlistener("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.value = $event; })("ngModelChange", function NumberInputComponent_Template_input_ngModelChange_0_listener($event) { return ctx.changeValue($event); })("dndDrop", function NumberInputComponent_Template_input_dndDrop_0_listener($event) { return ctx.onDropCallBack($event, ctx.value); });
|
|
807
807
|
i0.ɵɵelementEnd();
|
|
808
808
|
} if (rf & 2) {
|
|
809
|
-
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
809
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1))("dndAllowExternal", true)("maxlength", ctx.maxLength);
|
|
810
810
|
} }, dependencies: [i2.DndDropzoneDirective, i3.DefaultValueAccessor, i3.NgControlStatus, i3.MaxLengthValidator, i3.NgModel], encapsulation: 2 });
|
|
811
811
|
}
|
|
812
812
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
813
813
|
type: Component,
|
|
814
|
-
args: [{ selector: 'number-input', template: "<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
814
|
+
args: [{ selector: 'number-input', template: "<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n" }]
|
|
815
815
|
}], null, { placeholder: [{
|
|
816
816
|
type: Input
|
|
817
817
|
}], inputId: [{
|
|
@@ -857,7 +857,7 @@ function InputRenderComponent_input_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
857
857
|
} if (rf & 2) {
|
|
858
858
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
859
859
|
i0.ɵɵpropertyInterpolate("placeholder", ctx_r1.schema.type === "password" && ctx_r1.schema.readOnlyPassword ? "*****" : ctx_r1.schema.description);
|
|
860
|
-
i0.ɵɵproperty("disabled", ctx_r1.schema.readOnlyPassword && ctx_r1.editing)("type", ctx_r1.schema.type === "password" ? "password" : "text")("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
860
|
+
i0.ɵɵproperty("disabled", ctx_r1.schema.readOnlyPassword && ctx_r1.editing)("type", ctx_r1.schema.type === "password" ? "password" : "text")("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(8, _c0))("dndAllowExternal", true)("id", ctx_r1.inputId)("maxlength", ctx_r1.schema.maxLength);
|
|
861
861
|
} }
|
|
862
862
|
function InputRenderComponent_select_box_3_Template(rf, ctx) { if (rf & 1) {
|
|
863
863
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
@@ -957,10 +957,10 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
957
957
|
this.schema.readOnlyPassword = value;
|
|
958
958
|
}
|
|
959
959
|
static ɵfac = /*@__PURE__*/ function () { let ɵInputRenderComponent_BaseFactory; return function InputRenderComponent_Factory(t) { return (ɵInputRenderComponent_BaseFactory || (ɵInputRenderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(InputRenderComponent)))(t || InputRenderComponent); }; }();
|
|
960
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [[1, "schema-input-container", 3, "ngClass"], ["class", "edit-icon", 4, "ngIf"], ["class", "form-control", "dndDropzone", "", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "blur", "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"], [1, "edit-icon"], ["size", "15", "type", "primary", 3, "name", "onClick", 4, "ngIf"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown", 4, "ngIf"], ["size", "15", "type", "primary", 3, "name", "onClick"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown"], ["dndDropzone", "", 1, "form-control", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "blur", "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) {
|
|
960
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 8, consts: [[1, "schema-input-container", 3, "ngClass"], ["class", "edit-icon", 4, "ngIf"], ["class", "form-control", "dndDropzone", "", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "id", "maxlength", "blur", "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"], [1, "edit-icon"], ["size", "15", "type", "primary", 3, "name", "onClick", 4, "ngIf"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown", 4, "ngIf"], ["size", "15", "type", "primary", 3, "name", "onClick"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown"], ["dndDropzone", "", 1, "form-control", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "id", "maxlength", "blur", "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) {
|
|
961
961
|
i0.ɵɵelementStart(0, "div", 0);
|
|
962
962
|
i0.ɵɵtemplate(1, InputRenderComponent_div_1_Template, 3, 2, "div", 1);
|
|
963
|
-
i0.ɵɵtemplate(2, InputRenderComponent_input_2_Template, 1,
|
|
963
|
+
i0.ɵɵtemplate(2, InputRenderComponent_input_2_Template, 1, 9, "input", 2);
|
|
964
964
|
i0.ɵɵtemplate(3, InputRenderComponent_select_box_3_Template, 1, 13, "select-box", 3);
|
|
965
965
|
i0.ɵɵtemplate(4, InputRenderComponent_number_input_4_Template, 1, 4, "number-input", 4);
|
|
966
966
|
i0.ɵɵtemplate(5, InputRenderComponent_boolean_input_5_Template, 1, 4, "boolean-input", 4);
|
|
@@ -981,7 +981,7 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
981
981
|
}
|
|
982
982
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
983
983
|
type: Component,
|
|
984
|
-
args: [{ selector: 'input-render', template: "<div class=\"schema-input-container\" [ngClass]=\"{'schema-input-container-password' : schema.type === 'password' }\" >\n <div *ngIf=\"schema.type === 'password' && editing\" class=\"edit-icon\">\n <icon *ngIf=\"this.schema.readOnlyPassword\" size=\"15\" type=\"primary\" [name]=\"'fas fa-pencil-alt'\"\n (onClick)=\"editPassword()\">\n </icon>\n <icon *ngIf=\"!this.schema.readOnlyPassword\" size=\"15\" type=\"primary clickable\" [name]=\"'fas fa-ban'\"\n (mousedown)=\"cancelEditPassword(); $event.stopPropagation()\">\n </icon>\n </div>\n <input (blur)=\"onInputBlur()\"\n [disabled]=\"schema.readOnlyPassword && editing\" class=\"form-control\"\n [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.type === 'password' && this.schema.readOnlyPassword ? '*****' : schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onChange($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\" [id]=\"inputId\" [maxlength]=\"schema.maxLength\"/>\n\n <select-box\n [id]=\"inputId\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event.key)\"\n [ngModelOptions]=\"{standalone: true}\"\n *ngIf=\"schema.type === 'string' && schema.options\"\n [placeholder]=\"schema.description || this.selectPlaceHolderLabel\"\n [searchPlaceHolder]=\"selectSearchPlaceHolderLabel\"\n [clearText]=\"this.selectClearLabel\"\n [notFoundText]=\"this.selectNotFoundLabel\"\n [bindKey]=\"'key'\"\n [bindValue]=\"'value'\"\n [enabledSearch]=\"true\"\n [limitItens]=\"30\"\n [data]=\"schema.options\">\n </select-box>\n\n <number-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'number'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></number-input>\n\n <boolean-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'boolean'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></boolean-input>\n</div>\n", styles: [".schema-input-container-password{position:relative}.schema-input-container-password .edit-icon{position:absolute;width:30px;right:-5px;top:7px;z-index:1}.schema-input-container-password input{display:block;padding-right:40px!important;width:calc(100% - 52px)!important}\n"] }]
|
|
984
|
+
args: [{ selector: 'input-render', template: "<div class=\"schema-input-container\" [ngClass]=\"{'schema-input-container-password' : schema.type === 'password' }\" >\n <div *ngIf=\"schema.type === 'password' && editing\" class=\"edit-icon\">\n <icon *ngIf=\"this.schema.readOnlyPassword\" size=\"15\" type=\"primary\" [name]=\"'fas fa-pencil-alt'\"\n (onClick)=\"editPassword()\">\n </icon>\n <icon *ngIf=\"!this.schema.readOnlyPassword\" size=\"15\" type=\"primary clickable\" [name]=\"'fas fa-ban'\"\n (mousedown)=\"cancelEditPassword(); $event.stopPropagation()\">\n </icon>\n </div>\n <input (blur)=\"onInputBlur()\"\n [disabled]=\"schema.readOnlyPassword && editing\" class=\"form-control\"\n [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.type === 'password' && this.schema.readOnlyPassword ? '*****' : schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onChange($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\" [id]=\"inputId\" [maxlength]=\"schema.maxLength\"/>\n\n <select-box\n [id]=\"inputId\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event.key)\"\n [ngModelOptions]=\"{standalone: true}\"\n *ngIf=\"schema.type === 'string' && schema.options\"\n [placeholder]=\"schema.description || this.selectPlaceHolderLabel\"\n [searchPlaceHolder]=\"selectSearchPlaceHolderLabel\"\n [clearText]=\"this.selectClearLabel\"\n [notFoundText]=\"this.selectNotFoundLabel\"\n [bindKey]=\"'key'\"\n [bindValue]=\"'value'\"\n [enabledSearch]=\"true\"\n [limitItens]=\"30\"\n [data]=\"schema.options\">\n </select-box>\n\n <number-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'number'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></number-input>\n\n <boolean-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'boolean'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></boolean-input>\n</div>\n", styles: [".schema-input-container-password{position:relative}.schema-input-container-password .edit-icon{position:absolute;width:30px;right:-5px;top:7px;z-index:1}.schema-input-container-password input{display:block;padding-right:40px!important;width:calc(100% - 52px)!important}\n"] }]
|
|
985
985
|
}], null, { selectPlaceHolderLabel: [{
|
|
986
986
|
type: Input
|
|
987
987
|
}], selectSearchPlaceHolderLabel: [{
|
|
@@ -1541,7 +1541,17 @@ class SchemaFormRenderModule {
|
|
|
1541
1541
|
FormsModule,
|
|
1542
1542
|
MatTooltipModule,
|
|
1543
1543
|
InputsModule,
|
|
1544
|
-
IconsModule
|
|
1544
|
+
IconsModule,
|
|
1545
|
+
DndModule,
|
|
1546
|
+
DndModule,
|
|
1547
|
+
DndModule,
|
|
1548
|
+
DndModule,
|
|
1549
|
+
DndModule,
|
|
1550
|
+
DndModule,
|
|
1551
|
+
DndModule,
|
|
1552
|
+
DndModule,
|
|
1553
|
+
DndModule,
|
|
1554
|
+
DndModule] });
|
|
1545
1555
|
}
|
|
1546
1556
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaFormRenderModule, [{
|
|
1547
1557
|
type: NgModule,
|
|
@@ -1552,7 +1562,17 @@ class SchemaFormRenderModule {
|
|
|
1552
1562
|
FormsModule,
|
|
1553
1563
|
MatTooltipModule,
|
|
1554
1564
|
InputsModule,
|
|
1555
|
-
IconsModule
|
|
1565
|
+
IconsModule,
|
|
1566
|
+
DndModule,
|
|
1567
|
+
DndModule,
|
|
1568
|
+
DndModule,
|
|
1569
|
+
DndModule,
|
|
1570
|
+
DndModule,
|
|
1571
|
+
DndModule,
|
|
1572
|
+
DndModule,
|
|
1573
|
+
DndModule,
|
|
1574
|
+
DndModule,
|
|
1575
|
+
DndModule
|
|
1556
1576
|
],
|
|
1557
1577
|
declarations: [
|
|
1558
1578
|
ArraySessionComponent,
|
|
@@ -1601,7 +1621,17 @@ class SchemaFormRenderModule {
|
|
|
1601
1621
|
FormsModule,
|
|
1602
1622
|
MatTooltipModule,
|
|
1603
1623
|
InputsModule,
|
|
1604
|
-
IconsModule
|
|
1624
|
+
IconsModule,
|
|
1625
|
+
DndModule,
|
|
1626
|
+
DndModule,
|
|
1627
|
+
DndModule,
|
|
1628
|
+
DndModule,
|
|
1629
|
+
DndModule,
|
|
1630
|
+
DndModule,
|
|
1631
|
+
DndModule,
|
|
1632
|
+
DndModule,
|
|
1633
|
+
DndModule,
|
|
1634
|
+
DndModule], exports: [ArraySessionComponent,
|
|
1605
1635
|
SchemaArrayComponent,
|
|
1606
1636
|
FieldRenderComponent,
|
|
1607
1637
|
InputRenderComponent,
|