@apipass/schemas 0.1.6-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/apipass-schemas.d.ts +5 -0
- package/assets/css/buttons.scss +112 -0
- package/assets/css/colors.scss +34 -0
- package/assets/css/fonts.scss +24 -0
- package/assets/css/inputs.scss +197 -0
- package/assets/css/pt_sans.scss +144 -0
- package/assets/css/spacing.scss +28 -0
- package/assets/css/texts.scss +18 -0
- package/base-schema.component.d.ts +11 -0
- package/bundles/apipass-schemas.umd.js +2004 -0
- package/bundles/apipass-schemas.umd.js.map +1 -0
- package/bundles/apipass-schemas.umd.min.js +16 -0
- package/bundles/apipass-schemas.umd.min.js.map +1 -0
- package/esm2015/apipass-schemas.js +5 -0
- package/esm2015/base-schema.component.js +30 -0
- package/esm2015/public-api.js +17 -0
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +177 -0
- package/esm2015/schema-fields.service.js +77 -0
- package/esm2015/schema-form/schema-array/array-session/array-session.js +158 -0
- package/esm2015/schema-form/schema-array/schema-array.js +195 -0
- package/esm2015/schema-form/schema-form.js +72 -0
- package/esm2015/schema-form/schema-input/field-render/field-render.js +72 -0
- package/esm2015/schema-form/schema-input/input-render/boolean-input/boolean-input.component.js +45 -0
- package/esm2015/schema-form/schema-input/input-render/input-render.js +136 -0
- package/esm2015/schema-form/schema-input/input-render/number-input/number-input.component.js +43 -0
- package/esm2015/schema-form/schema-input/schema-input.js +98 -0
- package/esm2015/schema-form/schema-object/schema-object.js +94 -0
- package/esm2015/schema-form-render.js +96 -0
- package/esm2015/schema-form-render.module.js +121 -0
- package/esm2015/schema-validation-field.js +15 -0
- package/esm2015/struct.utils.js +9 -0
- package/esm2015/type-script-compile.js +77 -0
- package/fesm2015/apipass-schemas.js +1420 -0
- package/fesm2015/apipass-schemas.js.map +1 -0
- package/package.json +27 -0
- package/public-api.d.ts +16 -0
- package/schema-custom-attributes/schema-custom-attributes.d.ts +15 -0
- package/schema-fields.service.d.ts +12 -0
- package/schema-form/schema-array/array-session/array-session.d.ts +17 -0
- package/schema-form/schema-array/schema-array.d.ts +18 -0
- package/schema-form/schema-form.d.ts +17 -0
- package/schema-form/schema-input/field-render/field-render.d.ts +15 -0
- package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +13 -0
- package/schema-form/schema-input/input-render/input-render.d.ts +19 -0
- package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +13 -0
- package/schema-form/schema-input/schema-input.d.ts +14 -0
- package/schema-form/schema-object/schema-object.d.ts +20 -0
- package/schema-form-render.d.ts +17 -0
- package/schema-form-render.module.d.ts +22 -0
- package/schema-validation-field.d.ts +17 -0
- package/struct.utils.d.ts +1 -0
- package/type-script-compile.d.ts +10 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../../base-schema.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "ngx-drag-drop";
|
|
7
|
+
import * as i4 from "./number-input/number-input.component";
|
|
8
|
+
import * as i5 from "./boolean-input/boolean-input.component";
|
|
9
|
+
import * as i6 from "@ngx-translate/core";
|
|
10
|
+
const _c0 = function () { return { standalone: true }; };
|
|
11
|
+
function InputRenderComponent_input_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
13
|
+
i0.ɵɵelementStart(0, "input", 4);
|
|
14
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.value = $event; })("ngModelChange", function InputRenderComponent_input_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onChange($event); });
|
|
15
|
+
i0.ɵɵelementEnd();
|
|
16
|
+
} if (rf & 2) {
|
|
17
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
18
|
+
i0.ɵɵpropertyInterpolate("placeholder", ctx_r0.schema.description);
|
|
19
|
+
i0.ɵɵproperty("type", ctx_r0.schema.type === "password" ? "password" : "text")("ngModel", ctx_r0.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0))("id", ctx_r0.inputId)("maxlength", ctx_r0.schema.maxLength);
|
|
20
|
+
} }
|
|
21
|
+
function InputRenderComponent_select_2_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
i0.ɵɵelementStart(0, "option", 8);
|
|
23
|
+
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
27
|
+
i0.ɵɵproperty("value", undefined);
|
|
28
|
+
i0.ɵɵadvance(1);
|
|
29
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r7.schema.description, " ");
|
|
30
|
+
} }
|
|
31
|
+
function InputRenderComponent_select_2_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelementStart(0, "option", 9);
|
|
33
|
+
i0.ɵɵtext(1);
|
|
34
|
+
i0.ɵɵpipe(2, "translate");
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const item_r9 = ctx.$implicit;
|
|
38
|
+
i0.ɵɵproperty("value", item_r9.key)("selected", item_r9.selected === true);
|
|
39
|
+
i0.ɵɵadvance(1);
|
|
40
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, item_r9.value));
|
|
41
|
+
} }
|
|
42
|
+
function InputRenderComponent_select_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
44
|
+
i0.ɵɵelementStart(0, "select", 5);
|
|
45
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_2_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.value = $event; })("ngModelChange", function InputRenderComponent_select_2_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
46
|
+
i0.ɵɵtemplate(1, InputRenderComponent_select_2_option_1_Template, 2, 2, "option", 6);
|
|
47
|
+
i0.ɵɵtemplate(2, InputRenderComponent_select_2_option_2_Template, 3, 5, "option", 7);
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
51
|
+
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0));
|
|
52
|
+
i0.ɵɵadvance(1);
|
|
53
|
+
i0.ɵɵproperty("ngIf", ctx_r1.schema.description);
|
|
54
|
+
i0.ɵɵadvance(1);
|
|
55
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.schema.options);
|
|
56
|
+
} }
|
|
57
|
+
function InputRenderComponent_number_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
59
|
+
i0.ɵɵelementStart(0, "number-input", 10);
|
|
60
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.value = $event; })("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onChange($event); });
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
64
|
+
i0.ɵɵproperty("model", ctx_r2.value)("inputId", ctx_r2.inputId)("placeholder", ctx_r2.schema.description)("maxLength", ctx_r2.schema.maxLength);
|
|
65
|
+
} }
|
|
66
|
+
function InputRenderComponent_boolean_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
68
|
+
i0.ɵɵelementStart(0, "boolean-input", 10);
|
|
69
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.value = $event; })("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.onChange($event); });
|
|
70
|
+
i0.ɵɵelementEnd();
|
|
71
|
+
} if (rf & 2) {
|
|
72
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
73
|
+
i0.ɵɵproperty("model", ctx_r3.value)("inputId", ctx_r3.inputId)("placeholder", ctx_r3.schema.description)("maxLength", ctx_r3.schema.maxLength);
|
|
74
|
+
} }
|
|
75
|
+
export class InputRenderComponent extends BaseSchemaComponent {
|
|
76
|
+
constructor() {
|
|
77
|
+
super(...arguments);
|
|
78
|
+
this.schema = {};
|
|
79
|
+
this.editing = false;
|
|
80
|
+
this.onDropEvent = new EventEmitter();
|
|
81
|
+
}
|
|
82
|
+
ngAfterContentInit() {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) !== 'object' && ((_b = this.schema) === null || _b === void 0 ? void 0 : _b.type) !== 'array') {
|
|
85
|
+
if (!this.editing && this.schema.options) {
|
|
86
|
+
const $event = this.schema.options.filter((item) => item.selected === true);
|
|
87
|
+
if ($event[0]) {
|
|
88
|
+
this.onChange($event[0].key);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
this.value = this.model;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
onChange($event) {
|
|
95
|
+
this.model = $event;
|
|
96
|
+
this.modelChange.emit(this.model);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
100
|
+
InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", 4, "ngIf"], ["class", "form-control custom-select", 3, "id", "ngModel", "ngModelOptions", "ngModelChange", 4, "ngIf"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange"], [1, "form-control", "custom-select", 3, "id", "ngModel", "ngModelOptions", "ngModelChange"], [3, "value", 4, "ngIf"], [3, "value", "selected", 4, "ngFor", "ngForOf"], [3, "value"], [3, "value", "selected"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
102
|
+
i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
103
|
+
i0.ɵɵtemplate(2, InputRenderComponent_select_2_Template, 3, 6, "select", 2);
|
|
104
|
+
i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
105
|
+
i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
i0.ɵɵadvance(1);
|
|
109
|
+
i0.ɵɵproperty("ngIf", (ctx.schema.type === "string" || ctx.schema.type === "password") && !ctx.schema.options);
|
|
110
|
+
i0.ɵɵadvance(1);
|
|
111
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "string" && ctx.schema.options);
|
|
112
|
+
i0.ɵɵadvance(1);
|
|
113
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
114
|
+
i0.ɵɵadvance(1);
|
|
115
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
116
|
+
} }, directives: [i1.NgIf, i2.DefaultValueAccessor, i3.DndDropzoneDirective, i2.NgControlStatus, i2.NgModel, i2.MaxLengthValidator, i2.SelectControlValueAccessor, i1.NgForOf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_x, i4.NumberInputComponent, i5.BooleanInputComponent], pipes: [i6.TranslatePipe], styles: [""] });
|
|
117
|
+
const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
|
|
118
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{
|
|
121
|
+
selector: 'input-render',
|
|
122
|
+
templateUrl: 'input-render.html',
|
|
123
|
+
styleUrls: ['./input-render.scss']
|
|
124
|
+
}]
|
|
125
|
+
}], null, { schema: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], modelPropertiesPath: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], inputId: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], editing: [{
|
|
132
|
+
type: Input
|
|
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RcIlxuICAgICAgICAgICAgICAgICAgICpuZ0lmPVwic2NoZW1hLnR5cGUgPT09ICdib29sZWFuJ1wiIGRuZERyb3B6b25lXG4gICAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cInNjaGVtYS5kZXNjcmlwdGlvblwiIFttYXhMZW5ndGhdPVwic2NoZW1hLm1heExlbmd0aFwiIChtb2RlbENoYW5nZSk9XCJvbkNoYW5nZSgkZXZlbnQpXCI+PC9ib29sZWFuLWlucHV0PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../../../base-schema.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
const _c0 = function () { return { standalone: true }; };
|
|
6
|
+
export class NumberInputComponent extends BaseSchemaComponent {
|
|
7
|
+
ngAfterContentInit() {
|
|
8
|
+
this.value = this.model;
|
|
9
|
+
}
|
|
10
|
+
changeValue($event) {
|
|
11
|
+
if ($event && !isNaN($event)) {
|
|
12
|
+
this.model = Number($event);
|
|
13
|
+
this.modelChange.emit(this.model);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
this.model = $event;
|
|
17
|
+
this.modelChange.emit(this.model);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
NumberInputComponent.ɵfac = function NumberInputComponent_Factory(t) { return ɵNumberInputComponent_BaseFactory(t || NumberInputComponent); };
|
|
22
|
+
NumberInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NumberInputComponent, selectors: [["number-input"]], inputs: { placeholder: "placeholder", inputId: "inputId", maxLength: "maxLength" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 6, consts: [[1, "form-control", "number-input", 3, "id", "placeholder", "ngModel", "ngModelOptions", "maxlength", "ngModelChange"]], template: function NumberInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelementStart(0, "input", 0);
|
|
24
|
+
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); });
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
} if (rf & 2) {
|
|
27
|
+
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0))("maxlength", ctx.maxLength);
|
|
28
|
+
} }, directives: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i1.MaxLengthValidator], encapsulation: 2 });
|
|
29
|
+
const ɵNumberInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(NumberInputComponent);
|
|
30
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: 'number-input',
|
|
34
|
+
templateUrl: 'number-input.component.html'
|
|
35
|
+
}]
|
|
36
|
+
}], null, { placeholder: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}], inputId: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}], maxLength: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}] }); })();
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1pbnB1dC9pbnB1dC1yZW5kZXIvbnVtYmVyLWlucHV0L251bWJlci1pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8u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1iZXIoJGV2ZW50KTtcbiAgICAgIHRoaXMubW9kZWxDaGFuZ2UuZW1pdCh0aGlzLm1vZGVsKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5tb2RlbCA9ICRldmVudDtcbiAgICAgIHRoaXMubW9kZWxDaGFuZ2UuZW1pdCh0aGlzLm1vZGVsKTtcbiAgICB9XG4gIH1cblxufVxuIiwiPGlucHV0IGNsYXNzPVwiZm9ybS1jb250cm9sIG51bWJlci1pbnB1dFwiXG4gICAgICAgW2lkXT1cImlucHV0SWRcIlxuICAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXG4gICAgICAgWyhuZ01vZGVsKV09XCJ2YWx1ZVwiXG4gICAgICAgW25nTW9kZWxPcHRpb25zXT1cIntzdGFuZGFsb25lOiB0cnVlfVwiXG4gICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwiY2hhbmdlVmFsdWUoJGV2ZW50KVwiXG4gICAgICAgW21heGxlbmd0aF09XCJtYXhMZW5ndGhcIj5cbiJdfQ==
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "./field-render/field-render";
|
|
6
|
+
import * as i3 from "./input-render/input-render";
|
|
7
|
+
import * as i4 from "@angular/material/tooltip";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
function SchemaInputComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
11
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
12
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
13
|
+
i0.ɵɵelementStart(2, "field-render", 3);
|
|
14
|
+
i0.ɵɵelementStart(3, "input-render", 4);
|
|
15
|
+
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_0_Template_input_render_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return (ctx_r2.model[ctx_r2.schema.id] = $event); });
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementEnd();
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22
|
+
i0.ɵɵadvance(2);
|
|
23
|
+
i0.ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵ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);
|
|
26
|
+
} }
|
|
27
|
+
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
29
|
+
i0.ɵɵpipe(1, "translate");
|
|
30
|
+
i0.ɵɵtext(2, "?");
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
34
|
+
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
|
|
35
|
+
} }
|
|
36
|
+
function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
38
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
39
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
40
|
+
i0.ɵɵelementStart(2, "label", 5);
|
|
41
|
+
i0.ɵɵtext(3);
|
|
42
|
+
i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementStart(5, "input-render", 4);
|
|
45
|
+
i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_1_Template_input_render_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return (ctx_r5.model[ctx_r5.schema.id] = $event); });
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
51
|
+
i0.ɵɵadvance(2);
|
|
52
|
+
i0.ɵɵproperty("htmlFor", ctx_r1.getId(ctx_r1.index));
|
|
53
|
+
i0.ɵɵadvance(1);
|
|
54
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.schema.title, " ");
|
|
55
|
+
i0.ɵɵadvance(1);
|
|
56
|
+
i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
57
|
+
i0.ɵɵadvance(1);
|
|
58
|
+
i0.ɵɵ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);
|
|
59
|
+
} }
|
|
60
|
+
export class SchemaInputComponent extends BaseSchemaComponent {
|
|
61
|
+
constructor() {
|
|
62
|
+
super(...arguments);
|
|
63
|
+
this.editing = false;
|
|
64
|
+
}
|
|
65
|
+
ngAfterContentInit() {
|
|
66
|
+
this.loaded = true;
|
|
67
|
+
}
|
|
68
|
+
getId(index) {
|
|
69
|
+
return `${this.idPrefix}-struct-${index}`;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
SchemaInputComponent.ɵfac = function SchemaInputComponent_Factory(t) { return ɵSchemaInputComponent_BaseFactory(t || SchemaInputComponent); };
|
|
73
|
+
SchemaInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵ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) {
|
|
74
|
+
i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 8, "div", 0);
|
|
75
|
+
i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 8, "div", 0);
|
|
76
|
+
} if (rf & 2) {
|
|
77
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && ctx.schema.minLength && ctx.schema.minLength > 0);
|
|
78
|
+
i0.ɵɵadvance(1);
|
|
79
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && (!ctx.schema.minLength || ctx.schema.minLength === 0));
|
|
80
|
+
} }, directives: [i1.NgIf, i2.FieldRenderComponent, i3.InputRenderComponent, i4.MatTooltip], pipes: [i5.TranslatePipe], styles: [""] });
|
|
81
|
+
const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaInputComponent);
|
|
82
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaInputComponent, [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{
|
|
85
|
+
selector: 'schema-input',
|
|
86
|
+
templateUrl: 'schema-input.html',
|
|
87
|
+
styleUrls: ['./schema-input.scss']
|
|
88
|
+
}]
|
|
89
|
+
}], null, { idPrefix: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], schema: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], editing: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], index: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}] }); })();
|
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWlucHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc2NoZW1hLWZvcm0vc2NoZW1hLWlucHV0L3NjaGVtYS1pbnB1dC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1pbnB1dC9zY2hlbWEtaW5wdXQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW1CLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7Ozs7Ozs7OztJQ0RoRSw4QkFFRTtJQUFBLDhCQUNFO0lBQUEsdUNBQ0U7SUFBQSx1Q0FFc0Q7SUFGRyxzT0FBaUM7SUFFbkQsaUJBQWU7SUFDeEQsaUJBQWU7SUFDakIsaUJBQU07SUFDUixpQkFBTTs7O0lBTlksZUFBc0I7SUFBdEIsMkNBQXNCLCtCQUFBLHVDQUFBO0lBQ3BCLGVBQXdCO0lBQXhCLG9EQUF3Qix5QkFBQSx5Q0FBQSxnRUFBQSwyQkFBQTs7O0lBV3RDLCtCQUE0Rjs7SUFBQSxpQkFBQztJQUFBLGlCQUF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b25maWctdG9vbHRpcFwiIG1hdFRvb2x0aXA9XCJ7eyBzY2hlbWEuaGVscCB8IHRyYW5zbGF0ZSB9fVwiICpuZ0lmPVwic2NoZW1hLmhlbHBcIj4/PC9zcGFuPlxuICAgIDwvbGFiZWw+XG4gICAgPGlucHV0LXJlbmRlciBbaW5wdXRJZF09XCJnZXRJZChpbmRleClcIiBbc2NoZW1hXT1cInNjaGVtYVwiIFsobW9kZWwpXT1cInRoaXMubW9kZWxbc2NoZW1hLmlkXVwiXG4gICAgICAgICAgICAgICAgICBbbW9kZWxQcm9wZXJ0aWVzUGF0aF09XCInbWFwcGluZ0F0dHJpYnV0ZXMuJyArIHNjaGVtYS5pZFwiXG4gICAgICAgICAgICAgICAgICBbZWRpdGluZ109XCJ0aGlzLmVkaXRpbmdcIj48L2lucHV0LXJlbmRlcj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
+
import { onDropStruct } from '../../struct.utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "../schema-form";
|
|
7
|
+
import * as i3 from "../../schema-custom-attributes/schema-custom-attributes";
|
|
8
|
+
import * as i4 from "@ngx-translate/core";
|
|
9
|
+
function SchemaObjectComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
11
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
12
|
+
i0.ɵɵelementStart(1, "div", 6);
|
|
13
|
+
i0.ɵɵelementStart(2, "label", 7);
|
|
14
|
+
i0.ɵɵtext(3);
|
|
15
|
+
i0.ɵɵpipe(4, "translate");
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
|
|
18
|
+
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
24
|
+
i0.ɵɵadvance(3);
|
|
25
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
26
|
+
i0.ɵɵadvance(2);
|
|
27
|
+
i0.ɵɵproperty("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
|
|
28
|
+
} }
|
|
29
|
+
function SchemaObjectComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
31
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
32
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
33
|
+
i0.ɵɵtext(2);
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
i0.ɵɵelementStart(3, "schema-form", 3);
|
|
36
|
+
i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_Template_schema_form_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return (ctx_r4.model[ctx_r4.schema.id] = $event); });
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} if (rf & 2) {
|
|
41
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵadvance(2);
|
|
43
|
+
i0.ɵɵtextInterpolate(ctx_r0.schema.title);
|
|
44
|
+
i0.ɵɵadvance(1);
|
|
45
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
|
|
46
|
+
i0.ɵɵadvance(1);
|
|
47
|
+
i0.ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
|
|
48
|
+
} }
|
|
49
|
+
export class SchemaObjectComponent extends BaseSchemaComponent {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments);
|
|
52
|
+
this.editing = false;
|
|
53
|
+
this.onDropEvent = new EventEmitter();
|
|
54
|
+
this.loaded = false;
|
|
55
|
+
}
|
|
56
|
+
ngAfterContentInit() {
|
|
57
|
+
var _a;
|
|
58
|
+
if (((_a = this.schema) === null || _a === void 0 ? void 0 : _a.type) === 'object' && this.model) {
|
|
59
|
+
this.model[this.schema.id] = this.model[this.schema.id] || {};
|
|
60
|
+
}
|
|
61
|
+
this.loaded = true;
|
|
62
|
+
}
|
|
63
|
+
onDrop($event, modelElement) {
|
|
64
|
+
return onDropStruct($event, modelElement);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
SchemaObjectComponent.ɵfac = function SchemaObjectComponent_Factory(t) { return ɵSchemaObjectComponent_BaseFactory(t || SchemaObjectComponent); };
|
|
68
|
+
SchemaObjectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: { idPrefix: "idPrefix", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing", index: "index" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵ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) {
|
|
69
|
+
i0.ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5, 6, "div", 0);
|
|
70
|
+
} if (rf & 2) {
|
|
71
|
+
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type == "object");
|
|
72
|
+
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i3.SchemaCustomAttributesComponent], pipes: [i4.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)}"] });
|
|
73
|
+
const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaObjectComponent);
|
|
74
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaObjectComponent, [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{
|
|
77
|
+
selector: 'schema-object',
|
|
78
|
+
templateUrl: 'schema-object.html',
|
|
79
|
+
styleUrls: ['./schema-object.scss']
|
|
80
|
+
}]
|
|
81
|
+
}], null, { idPrefix: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], modelPropertiesPath: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], inputId: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], editing: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], index: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], onDropEvent: [{
|
|
92
|
+
type: Output
|
|
93
|
+
}] }); })();
|
|
94
|
+
//# sourceMappingURL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mPVwidGhpcy5tb2RlbFtzY2hlbWEuaWRdICYmIHNjaGVtYS5jdXN0b21Qcm9wZXJ0aWVzXCI+XG4gICAgPGRpdiBjbGFzcz1cImNvbC1tZC0xMlwiPlxuICAgICAgPGxhYmVsIGNsYXNzPVwiaW5mby1sYWJlbCBib2xkXCI+e3sgJ1NURVAuQURESVRJT05BTF9BVFRSSUJVVEVTJyB8IHRyYW5zbGF0ZSB9fTwvbGFiZWw+XG4gICAgICA8c2NoZW1hLWN1c3RvbS1hdHRyaWJ1dGVzIFsobW9kZWwpXT1cInRoaXMubW9kZWxbc2NoZW1hLmlkXS5jdXN0b21BdHRyaWJ1dGVzXCIgW29uRHJvcEZ1bmN0aW9uXT1cIm9uRHJvcFwiPlxuICAgICAgPC9zY2hlbWEtY3VzdG9tLWF0dHJpYnV0ZXM+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuXG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from './base-schema.component';
|
|
3
|
+
import { onDropStruct } from './struct.utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "./schema-form/schema-form";
|
|
7
|
+
import * as i3 from "./schema-custom-attributes/schema-custom-attributes";
|
|
8
|
+
import * as i4 from "@ngx-translate/core";
|
|
9
|
+
function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
11
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
12
|
+
i0.ɵɵelementStart(1, "div", 7);
|
|
13
|
+
i0.ɵɵelementStart(2, "label", 8);
|
|
14
|
+
i0.ɵɵtext(3);
|
|
15
|
+
i0.ɵɵpipe(4, "translate");
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementStart(5, "schema-custom-attributes", 9);
|
|
18
|
+
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r4 = i0.ɵɵnextContext(3);
|
|
24
|
+
i0.ɵɵadvance(3);
|
|
25
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
|
|
26
|
+
i0.ɵɵadvance(2);
|
|
27
|
+
i0.ɵɵproperty("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
|
|
28
|
+
} }
|
|
29
|
+
function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
31
|
+
i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} if (rf & 2) {
|
|
34
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
35
|
+
i0.ɵɵadvance(1);
|
|
36
|
+
i0.ɵɵproperty("ngIf", ctx_r1.model && ctx_r1.customProperties);
|
|
37
|
+
} }
|
|
38
|
+
function SchemaFormRenderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
41
|
+
i0.ɵɵelementStart(1, "schema-form", 2);
|
|
42
|
+
i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_Template_schema_form_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.model = $event; });
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵtemplate(2, SchemaFormRenderComponent_div_0_div_2_Template, 2, 1, "div", 3);
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
48
|
+
i0.ɵɵadvance(1);
|
|
49
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
|
|
50
|
+
i0.ɵɵadvance(1);
|
|
51
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.schemas);
|
|
52
|
+
} }
|
|
53
|
+
export class SchemaFormRenderComponent extends BaseSchemaComponent {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this.schemas = [];
|
|
57
|
+
this.customProperties = false;
|
|
58
|
+
this.editing = false;
|
|
59
|
+
this.loaded = false;
|
|
60
|
+
}
|
|
61
|
+
ngAfterContentInit() {
|
|
62
|
+
this.loaded = true;
|
|
63
|
+
}
|
|
64
|
+
onDrop($event, modelElement) {
|
|
65
|
+
return onDropStruct($event, modelElement);
|
|
66
|
+
}
|
|
67
|
+
getId(index) {
|
|
68
|
+
return `${this.idPrefix}-struct-${index}`;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
SchemaFormRenderComponent.ɵfac = function SchemaFormRenderComponent_Factory(t) { return ɵSchemaFormRenderComponent_BaseFactory(t || SchemaFormRenderComponent); };
|
|
72
|
+
SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵ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) {
|
|
73
|
+
i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
|
|
74
|
+
} if (rf & 2) {
|
|
75
|
+
i0.ɵɵproperty("ngIf", ctx.loaded);
|
|
76
|
+
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i1.NgForOf, i3.SchemaCustomAttributesComponent], pipes: [i4.TranslatePipe], styles: [""] });
|
|
77
|
+
const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
78
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{
|
|
81
|
+
selector: 'schema-form-render',
|
|
82
|
+
templateUrl: 'schema-form-render.html',
|
|
83
|
+
styleUrls: ['./schema-form-render.scss']
|
|
84
|
+
}]
|
|
85
|
+
}], null, { idPrefix: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], schemas: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], customProperties: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], editing: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], inputType: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}] }); })();
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWZvcm0tcmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc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