@apipass/schemas 0.2.8 → 0.2.9
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 +16 -16
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +1 -1
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +17 -17
- package/fesm2015/apipass-schemas.js +16 -16
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,8 +43,8 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
43
43
|
i0.ɵɵtext(6, "*");
|
|
44
44
|
i0.ɵɵelementEnd();
|
|
45
45
|
i0.ɵɵelementEnd();
|
|
46
|
-
i0.ɵɵelementStart(7, "input",
|
|
47
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
46
|
+
i0.ɵɵelementStart(7, "input", 11);
|
|
47
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onDropAttr($event, ctx_r13.newCustomField.label); });
|
|
48
48
|
i0.ɵɵelementEnd();
|
|
49
49
|
i0.ɵɵelementEnd();
|
|
50
50
|
i0.ɵɵelementEnd();
|
|
@@ -57,7 +57,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
57
57
|
i0.ɵɵelementEnd();
|
|
58
58
|
i0.ɵɵelementEnd();
|
|
59
59
|
i0.ɵɵelementStart(14, "input", 11);
|
|
60
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12); const
|
|
60
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onDropAttr($event, ctx_r15.newCustomField.value); });
|
|
61
61
|
i0.ɵɵelementEnd();
|
|
62
62
|
i0.ɵɵelementEnd();
|
|
63
63
|
i0.ɵɵelementEnd();
|
|
@@ -74,9 +74,9 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
74
74
|
i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(7, _c0));
|
|
75
75
|
} }
|
|
76
76
|
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
-
const
|
|
78
|
-
i0.ɵɵelementStart(0, "button",
|
|
79
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
77
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
78
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
79
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.newCustomField = {}; });
|
|
80
80
|
i0.ɵɵtext(1);
|
|
81
81
|
i0.ɵɵelementEnd();
|
|
82
82
|
} if (rf & 2) {
|
|
@@ -85,9 +85,9 @@ function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1
|
|
|
85
85
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.newCustomFieldAddLabel, " ");
|
|
86
86
|
} }
|
|
87
87
|
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
-
const
|
|
89
|
-
i0.ɵɵelementStart(0, "button",
|
|
90
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
88
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
89
|
+
i0.ɵɵelementStart(0, "button", 15);
|
|
90
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.newCustomField = null; });
|
|
91
91
|
i0.ɵɵtext(1);
|
|
92
92
|
i0.ɵɵelementEnd();
|
|
93
93
|
} if (rf & 2) {
|
|
@@ -96,9 +96,9 @@ function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) { if (rf & 1
|
|
|
96
96
|
i0.ɵɵtextInterpolate1(" ", ctx_r3.newCustomFieldCancelLabel, " ");
|
|
97
97
|
} }
|
|
98
98
|
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
-
const
|
|
100
|
-
i0.ɵɵelementStart(0, "button",
|
|
101
|
-
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
99
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
100
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
101
|
+
i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(); return ctx_r20.saveNewAttribute(ctx_r20.newCustomField); });
|
|
102
102
|
i0.ɵɵtext(1);
|
|
103
103
|
i0.ɵɵelementEnd();
|
|
104
104
|
} if (rf & 2) {
|
|
@@ -134,14 +134,14 @@ export class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
134
134
|
this.modelChange.emit(this.model);
|
|
135
135
|
}
|
|
136
136
|
onDropAttr($event, attribute) {
|
|
137
|
-
if (!attribute
|
|
138
|
-
attribute
|
|
137
|
+
if (!attribute) {
|
|
138
|
+
attribute = '';
|
|
139
139
|
}
|
|
140
|
-
attribute
|
|
140
|
+
attribute += `{{${$event.data}}}`;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
144
|
-
SchemaCustomAttributesComponent.ɵcmp = 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, "
|
|
144
|
+
SchemaCustomAttributesComponent.ɵcmp = 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) {
|
|
145
145
|
i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7, 5, "div", 0);
|
|
146
146
|
i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15, 8, "div", 1);
|
|
147
147
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -189,4 +189,4 @@ const ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetIn
|
|
|
189
189
|
}], onDropOnAttribute: [{
|
|
190
190
|
type: Output
|
|
191
191
|
}] }); })();
|
|
192
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
192
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWN1c3RvbS1hdHRyaWJ1dGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc2NoZW1hLWN1c3RvbS1hdHRyaWJ1dGVzL3NjaGVtYS1jdXN0b20tYXR0cmlidXRlcy50cyIsIi4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1jdXN0b20tYXR0cmlidXRlcy9zY2hlbWEtY3VzdG9tLWF0dHJpYnV0ZXMuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW1CLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2RixPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQzs7Ozs7Ozs7O0lDRDdELDhCQUNFO0lBQUEsOEJBQ0U7SUFBQSxnQ0FBMEI7SUFBQSxZQUFxQjtJQUFBLGlCQUFRO0lBQ3ZELCtCQUNFO0lBREksd09BQWtDO0lBQ3RDLHdCQUErRTtJQUNqRixpQkFBTztJQUVQLGlDQU9GO0lBTEksaU9BQTZCLHlQQUFBO0lBRi9CLGlCQU9GO0lBQUEsaUJBQU07SUFDUixpQkFBTTs7OztJQWJ3QixlQUFxQjtJQUFyQix3Q0FBcUI7SUFFakIsZUFBOEM7SUFBOUM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dHRvblxuICAgICAgY2xhc3M9XCJidG4gYnRuLW91dGxpbmUtZGFuZ2VyIGZsb2F0LWxlZnQgbWwtMlwiXG4gICAgICAqbmdJZj1cIm5ld0N1c3RvbUZpZWxkXCJcbiAgICAgIChjbGljayk9XCJuZXdDdXN0b21GaWVsZCA9IG51bGxcIlxuICAgID5cbiAgICAgIHt7IHRoaXMubmV3Q3VzdG9tRmllbGRDYW5jZWxMYWJlbCB9fVxuICAgIDwvYnV0dG9uPlxuICAgIDxidXR0b25cbiAgICAgIGNsYXNzPVwiYnRuIGJ0bi1vdXRsaW5lLXByaW1hcnkgZmxvYXQtbGVmdFwiXG4gICAgICAqbmdJZj1cIm5ld0N1c3RvbUZpZWxkICYmIG5ld0N1c3RvbUZpZWxkLmxhYmVsICYmIG5ld0N1c3RvbUZpZWxkLnZhbHVlXCJcbiAgICAgIChjbGljayk9XCJzYXZlTmV3QXR0cmlidXRlKG5ld0N1c3RvbUZpZWxkKVwiXG4gICAgPlxuICAgICAge3sgdGhpcy5uZXdDdXN0b21GaWVsZFNhdmVMYWJlbCB9fVxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -356,8 +356,8 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
356
356
|
ɵɵtext(6, "*");
|
|
357
357
|
ɵɵelementEnd();
|
|
358
358
|
ɵɵelementEnd();
|
|
359
|
-
ɵɵelementStart(7, "input",
|
|
360
|
-
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
|
|
359
|
+
ɵɵelementStart(7, "input", 11);
|
|
360
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r13 = ɵɵnextContext(); return ctx_r13.onDropAttr($event, ctx_r13.newCustomField.label); });
|
|
361
361
|
ɵɵelementEnd();
|
|
362
362
|
ɵɵelementEnd();
|
|
363
363
|
ɵɵelementEnd();
|
|
@@ -370,7 +370,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
370
370
|
ɵɵelementEnd();
|
|
371
371
|
ɵɵelementEnd();
|
|
372
372
|
ɵɵelementStart(14, "input", 11);
|
|
373
|
-
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { ɵɵrestoreView(_r12); const
|
|
373
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r14 = ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r15 = ɵɵnextContext(); return ctx_r15.onDropAttr($event, ctx_r15.newCustomField.value); });
|
|
374
374
|
ɵɵelementEnd();
|
|
375
375
|
ɵɵelementEnd();
|
|
376
376
|
ɵɵelementEnd();
|
|
@@ -387,9 +387,9 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
387
387
|
ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", ɵɵpureFunction0(7, _c0$1));
|
|
388
388
|
} }
|
|
389
389
|
function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
-
const
|
|
391
|
-
ɵɵelementStart(0, "button",
|
|
392
|
-
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { ɵɵrestoreView(
|
|
390
|
+
const _r17 = ɵɵgetCurrentView();
|
|
391
|
+
ɵɵelementStart(0, "button", 14);
|
|
392
|
+
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { ɵɵrestoreView(_r17); const ctx_r16 = ɵɵnextContext(); return ctx_r16.newCustomField = {}; });
|
|
393
393
|
ɵɵtext(1);
|
|
394
394
|
ɵɵelementEnd();
|
|
395
395
|
} if (rf & 2) {
|
|
@@ -398,9 +398,9 @@ function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) { if (rf & 1
|
|
|
398
398
|
ɵɵtextInterpolate1(" ", ctx_r2.newCustomFieldAddLabel, " ");
|
|
399
399
|
} }
|
|
400
400
|
function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
401
|
-
const
|
|
402
|
-
ɵɵelementStart(0, "button",
|
|
403
|
-
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { ɵɵrestoreView(
|
|
401
|
+
const _r19 = ɵɵgetCurrentView();
|
|
402
|
+
ɵɵelementStart(0, "button", 15);
|
|
403
|
+
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { ɵɵrestoreView(_r19); const ctx_r18 = ɵɵnextContext(); return ctx_r18.newCustomField = null; });
|
|
404
404
|
ɵɵtext(1);
|
|
405
405
|
ɵɵelementEnd();
|
|
406
406
|
} if (rf & 2) {
|
|
@@ -409,9 +409,9 @@ function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) { if (rf & 1
|
|
|
409
409
|
ɵɵtextInterpolate1(" ", ctx_r3.newCustomFieldCancelLabel, " ");
|
|
410
410
|
} }
|
|
411
411
|
function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
412
|
-
const
|
|
413
|
-
ɵɵelementStart(0, "button",
|
|
414
|
-
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { ɵɵrestoreView(
|
|
412
|
+
const _r21 = ɵɵgetCurrentView();
|
|
413
|
+
ɵɵelementStart(0, "button", 14);
|
|
414
|
+
ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { ɵɵrestoreView(_r21); const ctx_r20 = ɵɵnextContext(); return ctx_r20.saveNewAttribute(ctx_r20.newCustomField); });
|
|
415
415
|
ɵɵtext(1);
|
|
416
416
|
ɵɵelementEnd();
|
|
417
417
|
} if (rf & 2) {
|
|
@@ -447,14 +447,14 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
447
447
|
this.modelChange.emit(this.model);
|
|
448
448
|
}
|
|
449
449
|
onDropAttr($event, attribute) {
|
|
450
|
-
if (!attribute
|
|
451
|
-
attribute
|
|
450
|
+
if (!attribute) {
|
|
451
|
+
attribute = '';
|
|
452
452
|
}
|
|
453
|
-
attribute
|
|
453
|
+
attribute += `{{${$event.data}}}`;
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
457
|
-
SchemaCustomAttributesComponent.ɵcmp = ɵɵ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: [ɵɵ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, "
|
|
457
|
+
SchemaCustomAttributesComponent.ɵcmp = ɵɵ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: [ɵɵ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) {
|
|
458
458
|
ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7, 5, "div", 0);
|
|
459
459
|
ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15, 8, "div", 1);
|
|
460
460
|
ɵɵelementStart(2, "div", 2);
|