@apipass/schemas 0.2.5-alpha.9 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/apipass-schemas.umd.js +192 -407
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +2 -2
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +41 -56
- package/esm2015/schema-fields.service.js +10 -18
- package/esm2015/schema-form/schema-array/array-session/array-session.js +37 -39
- package/esm2015/schema-form/schema-array/schema-array.js +31 -70
- package/esm2015/schema-form/schema-form.js +9 -51
- package/esm2015/schema-form/schema-input/field-render/field-render.js +19 -21
- package/esm2015/schema-form/schema-input/input-render/input-render.js +11 -18
- package/esm2015/schema-form/schema-input/schema-input.js +14 -27
- package/esm2015/schema-form/schema-object/schema-object.js +14 -54
- package/esm2015/schema-form-render.js +14 -54
- package/esm2015/schema-form-render.module.js +9 -4
- package/esm2015/schema-validation-field.js +1 -1
- package/fesm2015/apipass-schemas.js +187 -401
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema-custom-attributes/schema-custom-attributes.d.ts +1 -7
- package/schema-fields.service.d.ts +4 -7
- package/schema-form/schema-array/array-session/array-session.d.ts +2 -4
- package/schema-form/schema-array/schema-array.d.ts +1 -15
- package/schema-form/schema-form.d.ts +1 -15
- package/schema-form/schema-input/field-render/field-render.d.ts +1 -2
- package/schema-form/schema-input/input-render/input-render.d.ts +1 -5
- package/schema-form/schema-input/schema-input.d.ts +1 -6
- package/schema-form/schema-object/schema-object.d.ts +1 -15
- package/schema-form-render.d.ts +1 -15
- package/schema-form-render.module.d.ts +3 -2
- package/schema-validation-field.d.ts +1 -7
|
@@ -7,6 +7,7 @@ import * as i3 from "ngx-drag-drop";
|
|
|
7
7
|
import * as i4 from "@apipass/inputs";
|
|
8
8
|
import * as i5 from "./number-input/number-input.component";
|
|
9
9
|
import * as i6 from "./boolean-input/boolean-input.component";
|
|
10
|
+
import * as i7 from "@ngx-translate/core";
|
|
10
11
|
const _c0 = function () { return { standalone: true }; };
|
|
11
12
|
function InputRenderComponent_input_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
13
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -22,10 +23,14 @@ function InputRenderComponent_select_box_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
22
23
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
23
24
|
i0.ɵɵelementStart(0, "select-box", 5);
|
|
24
25
|
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onChange($event.key); });
|
|
26
|
+
i0.ɵɵpipe(1, "translate");
|
|
27
|
+
i0.ɵɵpipe(2, "translate");
|
|
28
|
+
i0.ɵɵpipe(3, "translate");
|
|
29
|
+
i0.ɵɵpipe(4, "translate");
|
|
25
30
|
i0.ɵɵelementEnd();
|
|
26
31
|
} if (rf & 2) {
|
|
27
32
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
28
|
-
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
33
|
+
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(20, _c0))("placeholder", i0.ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", i0.ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", i0.ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", i0.ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
|
|
29
34
|
} }
|
|
30
35
|
function InputRenderComponent_number_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
31
36
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -48,10 +53,6 @@ function InputRenderComponent_boolean_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
48
53
|
export class InputRenderComponent extends BaseSchemaComponent {
|
|
49
54
|
constructor() {
|
|
50
55
|
super(...arguments);
|
|
51
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
52
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
53
|
-
this.selectClearLabel = 'Clear';
|
|
54
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
55
56
|
this.schema = {};
|
|
56
57
|
this.editing = false;
|
|
57
58
|
this.onDropEvent = new EventEmitter();
|
|
@@ -88,10 +89,10 @@ export class InputRenderComponent extends BaseSchemaComponent {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
91
|
-
InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: {
|
|
92
|
+
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", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
93
|
i0.ɵɵelementStart(0, "div", 0);
|
|
93
94
|
i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
94
|
-
i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template,
|
|
95
|
+
i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
95
96
|
i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
96
97
|
i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
97
98
|
i0.ɵɵelementEnd();
|
|
@@ -104,7 +105,7 @@ InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent
|
|
|
104
105
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
105
106
|
i0.ɵɵadvance(1);
|
|
106
107
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
107
|
-
} }, directives: [i1.NgIf, i2.DefaultValueAccessor, i3.DndDropzoneDirective, i2.NgControlStatus, i2.NgModel, i2.MaxLengthValidator, i4.SelectBoxComponent, i5.NumberInputComponent, i6.BooleanInputComponent], styles: [""] });
|
|
108
|
+
} }, directives: [i1.NgIf, i2.DefaultValueAccessor, i3.DndDropzoneDirective, i2.NgControlStatus, i2.NgModel, i2.MaxLengthValidator, i4.SelectBoxComponent, i5.NumberInputComponent, i6.BooleanInputComponent], pipes: [i7.TranslatePipe], styles: [""] });
|
|
108
109
|
const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
|
|
109
110
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
110
111
|
type: Component,
|
|
@@ -113,15 +114,7 @@ const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFact
|
|
|
113
114
|
templateUrl: 'input-render.html',
|
|
114
115
|
styleUrls: ['./input-render.scss']
|
|
115
116
|
}]
|
|
116
|
-
}], null, {
|
|
117
|
-
type: Input
|
|
118
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], selectClearLabel: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], selectNotFoundLabel: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], schema: [{
|
|
117
|
+
}], null, { schema: [{
|
|
125
118
|
type: Input
|
|
126
119
|
}], modelPropertiesPath: [{
|
|
127
120
|
type: Input
|
|
@@ -132,4 +125,4 @@ const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFact
|
|
|
132
125
|
}], onDropEvent: [{
|
|
133
126
|
type: Output
|
|
134
127
|
}] }); })();
|
|
135
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
128
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc2NoZW1hLWZvcm0vc2NoZW1hLWlucHV0L2lucHV0LXJlbmRlci9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Chtb2RlbENoYW5nZSk9XCJvbkNoYW5nZSgkZXZlbnQpXCI+PC9udW1iZXItaW5wdXQ+XG5cbiAgPGJvb2xlYW4taW5wdXQgWyhtb2RlbCldPVwidmFsdWVcIiBbaW5wdXRJZF09XCJpbnB1dElkXCJcbiAgICAgICAgICAgICAgICAgKm5nSWY9XCJzY2hlbWEudHlwZSA9PT0gJ2Jvb2xlYW4nXCJcbiAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cInNjaGVtYS5kZXNjcmlwdGlvblwiIFttYXhMZW5ndGhdPVwic2NoZW1hLm1heExlbmd0aFwiXG4gICAgICAgICAgICAgICAgIChtb2RlbENoYW5nZSk9XCJvbkNoYW5nZSgkZXZlbnQpXCI+PC9ib29sZWFuLWlucHV0PlxuPC9kaXY+XG4iXX0=
|
|
@@ -5,6 +5,7 @@ import * as i1 from "@angular/common";
|
|
|
5
5
|
import * as i2 from "./field-render/field-render";
|
|
6
6
|
import * as i3 from "./input-render/input-render";
|
|
7
7
|
import * as i4 from "@angular/material/tooltip";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
8
9
|
function SchemaInputComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
10
11
|
i0.ɵɵelementStart(0, "div", 1);
|
|
@@ -19,17 +20,18 @@ function SchemaInputComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
19
20
|
} if (rf & 2) {
|
|
20
21
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
22
|
i0.ɵɵadvance(2);
|
|
22
|
-
i0.ɵɵproperty("
|
|
23
|
+
i0.ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
23
24
|
i0.ɵɵadvance(1);
|
|
24
|
-
i0.ɵɵproperty("
|
|
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);
|
|
25
26
|
} }
|
|
26
27
|
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
27
28
|
i0.ɵɵelementStart(0, "span", 7);
|
|
28
|
-
i0.ɵɵ
|
|
29
|
+
i0.ɵɵpipe(1, "translate");
|
|
30
|
+
i0.ɵɵtext(2, "?");
|
|
29
31
|
i0.ɵɵelementEnd();
|
|
30
32
|
} if (rf & 2) {
|
|
31
33
|
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
32
|
-
i0.ɵɵpropertyInterpolate("matTooltip", ctx_r4.schema.help);
|
|
34
|
+
i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
|
|
33
35
|
} }
|
|
34
36
|
function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
35
37
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
@@ -37,7 +39,7 @@ function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
37
39
|
i0.ɵɵelementStart(1, "div", 2);
|
|
38
40
|
i0.ɵɵelementStart(2, "label", 5);
|
|
39
41
|
i0.ɵɵtext(3);
|
|
40
|
-
i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template,
|
|
42
|
+
i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
|
|
41
43
|
i0.ɵɵelementEnd();
|
|
42
44
|
i0.ɵɵelementStart(5, "input-render", 4);
|
|
43
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); });
|
|
@@ -53,16 +55,11 @@ function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
53
55
|
i0.ɵɵadvance(1);
|
|
54
56
|
i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
55
57
|
i0.ɵɵadvance(1);
|
|
56
|
-
i0.ɵɵproperty("
|
|
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);
|
|
57
59
|
} }
|
|
58
60
|
export class SchemaInputComponent extends BaseSchemaComponent {
|
|
59
61
|
constructor() {
|
|
60
62
|
super(...arguments);
|
|
61
|
-
this.requiredLabel = '(required)';
|
|
62
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
63
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
64
|
-
this.selectClearLabel = 'Clear';
|
|
65
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
66
63
|
this.editing = false;
|
|
67
64
|
}
|
|
68
65
|
ngAfterContentInit() {
|
|
@@ -73,14 +70,14 @@ export class SchemaInputComponent extends BaseSchemaComponent {
|
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
SchemaInputComponent.ɵfac = function SchemaInputComponent_Factory(t) { return ɵSchemaInputComponent_BaseFactory(t || SchemaInputComponent); };
|
|
76
|
-
SchemaInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: {
|
|
77
|
-
i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4,
|
|
78
|
-
i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6,
|
|
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);
|
|
79
76
|
} if (rf & 2) {
|
|
80
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);
|
|
81
78
|
i0.ɵɵadvance(1);
|
|
82
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));
|
|
83
|
-
} }, directives: [i1.NgIf, i2.FieldRenderComponent, i3.InputRenderComponent, i4.MatTooltip], styles: [""] });
|
|
80
|
+
} }, directives: [i1.NgIf, i2.FieldRenderComponent, i3.InputRenderComponent, i4.MatTooltip], pipes: [i5.TranslatePipe], styles: [""] });
|
|
84
81
|
const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaInputComponent);
|
|
85
82
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaInputComponent, [{
|
|
86
83
|
type: Component,
|
|
@@ -89,17 +86,7 @@ const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFact
|
|
|
89
86
|
templateUrl: 'schema-input.html',
|
|
90
87
|
styleUrls: ['./schema-input.scss']
|
|
91
88
|
}]
|
|
92
|
-
}], null, {
|
|
93
|
-
type: Input
|
|
94
|
-
}], selectPlaceHolderLabel: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], selectClearLabel: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], selectNotFoundLabel: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], idPrefix: [{
|
|
89
|
+
}], null, { idPrefix: [{
|
|
103
90
|
type: Input
|
|
104
91
|
}], schema: [{
|
|
105
92
|
type: Input
|
|
@@ -108,4 +95,4 @@ const ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFact
|
|
|
108
95
|
}], index: [{
|
|
109
96
|
type: Input
|
|
110
97
|
}] }); })();
|
|
111
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWlucHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc2NoZW1hLWZvcm0vc2NoZW1hLWlucHV0L3NjaGVtYS1pbnB1dC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1pbnB1dC9zY2hlbWEtaW5wdXQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW1CLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7Ozs7Ozs7OztJQ0RoRSw4QkFFRTtJQUFBLDhCQUNFO0lBQUEsdUNBQ0U7SUFBQSx1Q0FFc0Q7SUFGRyxzT0FBaUM7SUFFbkQsaUJBQWU7SUFDeEQsaUJBQWU7SUFDakIsaUJBQU07SU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Ij5cbiAgPGRpdiBjbGFzcz1cImNvbC1tZC0xMlwiPlxuICAgIDxsYWJlbCBjbGFzcz1cImluZm8tbGFiZWwgYm9sZFwiIFtodG1sRm9yXT1cImdldElkKGluZGV4KVwiPlxuICAgICAge3tzY2hlbWEudGl0bGV9fVxuICAgICAgPHNwYW4gY2xhc3M9XCJjb25maWctdG9vbHRpcFwiIG1hdFRvb2x0aXA9XCJ7eyBzY2hlbWEuaGVscCB8IHRyYW5zbGF0ZSB9fVwiICpuZ0lmPVwic2NoZW1hLmhlbHBcIj4/PC9zcGFuPlxuICAgIDwvbGFiZWw+XG4gICAgPGlucHV0LXJlbmRlciBbaW5wdXRJZF09XCJnZXRJZChpbmRleClcIiBbc2NoZW1hXT1cInNjaGVtYVwiIFsobW9kZWwpXT1cInRoaXMubW9kZWxbc2NoZW1hLmlkXVwiXG4gICAgICAgICAgICAgICAgICBbbW9kZWxQcm9wZXJ0aWVzUGF0aF09XCInbWFwcGluZ0F0dHJpYnV0ZXMuJyArIHNjaGVtYS5pZFwiXG4gICAgICAgICAgICAgICAgICBbZWRpdGluZ109XCJ0aGlzLmVkaXRpbmdcIj48L2lucHV0LXJlbmRlcj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -5,24 +5,26 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "../schema-form";
|
|
7
7
|
import * as i3 from "../../schema-custom-attributes/schema-custom-attributes";
|
|
8
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
9
|
function SchemaObjectComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
10
11
|
i0.ɵɵelementStart(0, "div", 5);
|
|
11
12
|
i0.ɵɵelementStart(1, "div", 6);
|
|
12
13
|
i0.ɵɵelementStart(2, "label", 7);
|
|
13
14
|
i0.ɵɵtext(3);
|
|
15
|
+
i0.ɵɵpipe(4, "translate");
|
|
14
16
|
i0.ɵɵelementEnd();
|
|
15
|
-
i0.ɵɵelementStart(
|
|
16
|
-
i0.ɵɵlistener("modelChange", function
|
|
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; });
|
|
17
19
|
i0.ɵɵelementEnd();
|
|
18
20
|
i0.ɵɵelementEnd();
|
|
19
21
|
i0.ɵɵelementEnd();
|
|
20
22
|
} if (rf & 2) {
|
|
21
23
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
22
24
|
i0.ɵɵadvance(3);
|
|
23
|
-
i0.ɵɵtextInterpolate(
|
|
24
|
-
i0.ɵɵadvance(
|
|
25
|
-
i0.ɵɵproperty("
|
|
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);
|
|
26
28
|
} }
|
|
27
29
|
function SchemaObjectComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
28
30
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -33,34 +35,20 @@ function SchemaObjectComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
33
35
|
i0.ɵɵelementStart(3, "schema-form", 3);
|
|
34
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); });
|
|
35
37
|
i0.ɵɵelementEnd();
|
|
36
|
-
i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template,
|
|
38
|
+
i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
|
|
37
39
|
i0.ɵɵelementEnd();
|
|
38
40
|
} if (rf & 2) {
|
|
39
41
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
40
42
|
i0.ɵɵadvance(2);
|
|
41
43
|
i0.ɵɵtextInterpolate(ctx_r0.schema.title);
|
|
42
44
|
i0.ɵɵadvance(1);
|
|
43
|
-
i0.ɵɵproperty("
|
|
45
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
|
|
44
46
|
i0.ɵɵadvance(1);
|
|
45
47
|
i0.ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
|
|
46
48
|
} }
|
|
47
49
|
export class SchemaObjectComponent extends BaseSchemaComponent {
|
|
48
50
|
constructor() {
|
|
49
51
|
super(...arguments);
|
|
50
|
-
this.requiredLabel = '(required)';
|
|
51
|
-
this.addItemLabel = 'Add Item';
|
|
52
|
-
this.addLoopLabel = 'Add Loop';
|
|
53
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
54
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
55
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
56
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
57
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
58
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
59
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
60
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
61
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
62
|
-
this.selectClearLabel = 'Clear';
|
|
63
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
64
52
|
this.editing = false;
|
|
65
53
|
this.onDropEvent = new EventEmitter();
|
|
66
54
|
this.loaded = false;
|
|
@@ -77,11 +65,11 @@ export class SchemaObjectComponent extends BaseSchemaComponent {
|
|
|
77
65
|
}
|
|
78
66
|
}
|
|
79
67
|
SchemaObjectComponent.ɵfac = function SchemaObjectComponent_Factory(t) { return ɵSchemaObjectComponent_BaseFactory(t || SchemaObjectComponent); };
|
|
80
|
-
SchemaObjectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: {
|
|
81
|
-
i0.ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5,
|
|
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);
|
|
82
70
|
} if (rf & 2) {
|
|
83
71
|
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type == "object");
|
|
84
|
-
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i3.SchemaCustomAttributesComponent], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
|
|
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)}"] });
|
|
85
73
|
const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaObjectComponent);
|
|
86
74
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaObjectComponent, [{
|
|
87
75
|
type: Component,
|
|
@@ -90,35 +78,7 @@ const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFac
|
|
|
90
78
|
templateUrl: 'schema-object.html',
|
|
91
79
|
styleUrls: ['./schema-object.scss']
|
|
92
80
|
}]
|
|
93
|
-
}], null, {
|
|
94
|
-
type: Input
|
|
95
|
-
}], addItemLabel: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], addLoopLabel: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], additionalAttributesLabel: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], customAttributeRemoveLabel: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], newCustomFieldNameLabel: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], newCustomFieldValueLabel: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], newCustomFieldAddLabel: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], newCustomFieldSaveLabel: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], newCustomFieldCancelLabel: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], selectPlaceHolderLabel: [{
|
|
114
|
-
type: Input
|
|
115
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], selectClearLabel: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}], selectNotFoundLabel: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], idPrefix: [{
|
|
81
|
+
}], null, { idPrefix: [{
|
|
122
82
|
type: Input
|
|
123
83
|
}], modelPropertiesPath: [{
|
|
124
84
|
type: Input
|
|
@@ -131,4 +91,4 @@ const ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFac
|
|
|
131
91
|
}], onDropEvent: [{
|
|
132
92
|
type: Output
|
|
133
93
|
}] }); })();
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLW9iamVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1vYmplY3Qvc2NoZW1hLW9iamVjdC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NjaGVtYXMvc3JjL3NjaGVtYS1mb3JtL3NjaGVtYS1vYmplY3Qvc2NoZW1hLW9iamVjdC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZGLE9BQU8sRUFBQyxtQkFBbUIsRUFBQyxNQUFNLDZCQUE2QixDQUFDO0FBRWhFLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQzs7Ozs7Ozs7SUNLOUMsOEJBQ0U7SUFBQSw4QkFDRTtJQU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BzY2hlbWEudHlwZSA9PSAnb2JqZWN0J1wiPlxuICA8ZGl2IGNsYXNzPVwic2NoZW1hLW9iamVjdC10aXRsZVwiPnt7c2NoZW1hLnRpdGxlfX08L2Rpdj5cbiAgPHNjaGVtYS1mb3JtIFtpZFByZWZpeF09XCJpZFByZWZpeFwiXG4gICAgICAgICAgICAgICBbKG1vZGVsKV09XCJtb2RlbFtzY2hlbWEuaWRdXCJcbiAgICAgICAgICAgICAgIFtzY2hlbWFzXT1cImdldFNjaGVtYVByb3BlcnRpZXMoKVwiXG4gICAgICAgICAgICAgICBbZWRpdGluZ109XCJ0aGlzLmVkaXRpbmdcIj5cbiAgPC9zY2hlbWEtZm9ybT5cblxuICA8ZGl2IGNsYXNzPVwicm93IHN0cnVjdC1jdXN0b20tcHJvcGVydGllc1wiICpuZ0lmPVwidGhpcy5tb2RlbFtzY2hlbWEuaWRdICYmIHNjaGVtYS5jdXN0b21Qcm9wZXJ0aWVzXCI+XG4gICAgPGRpdiBjbGFzcz1cImNvbC1tZC0xMlwiPlxuICAgICAgPGxhYmVsIGNsYXNzPVwiaW5mby1sYWJlbCBib2xkXCI+e3sgJ1NURVAuQURESVRJT05BTF9BVFRSSUJVVEVTJyB8IHRyYW5zbGF0ZSB9fTwvbGFiZWw+XG4gICAgICA8c2NoZW1hLWN1c3RvbS1hdHRyaWJ1dGVzIFsobW9kZWwpXT1cInRoaXMubW9kZWxbc2NoZW1hLmlkXS5jdXN0b21BdHRyaWJ1dGVzXCIgW29uRHJvcEZ1bmN0aW9uXT1cIm9uRHJvcFwiPlxuICAgICAgPC9zY2hlbWEtY3VzdG9tLWF0dHJpYnV0ZXM+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuXG48L2Rpdj5cbiJdfQ==
|
|
@@ -5,28 +5,30 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "./schema-form/schema-form";
|
|
7
7
|
import * as i3 from "./schema-custom-attributes/schema-custom-attributes";
|
|
8
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
9
|
function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
10
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
10
11
|
i0.ɵɵelementStart(0, "div", 6);
|
|
11
12
|
i0.ɵɵelementStart(1, "div", 7);
|
|
12
13
|
i0.ɵɵelementStart(2, "label", 8);
|
|
13
14
|
i0.ɵɵtext(3);
|
|
15
|
+
i0.ɵɵpipe(4, "translate");
|
|
14
16
|
i0.ɵɵelementEnd();
|
|
15
|
-
i0.ɵɵelementStart(
|
|
16
|
-
i0.ɵɵlistener("modelChange", function
|
|
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; });
|
|
17
19
|
i0.ɵɵelementEnd();
|
|
18
20
|
i0.ɵɵelementEnd();
|
|
19
21
|
i0.ɵɵelementEnd();
|
|
20
22
|
} if (rf & 2) {
|
|
21
23
|
const ctx_r4 = i0.ɵɵnextContext(3);
|
|
22
24
|
i0.ɵɵadvance(3);
|
|
23
|
-
i0.ɵɵtextInterpolate(
|
|
24
|
-
i0.ɵɵadvance(
|
|
25
|
-
i0.ɵɵproperty("
|
|
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);
|
|
26
28
|
} }
|
|
27
29
|
function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28
30
|
i0.ɵɵelementStart(0, "div", 4);
|
|
29
|
-
i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template,
|
|
31
|
+
i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
|
|
30
32
|
i0.ɵɵelementEnd();
|
|
31
33
|
} if (rf & 2) {
|
|
32
34
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -44,27 +46,13 @@ function SchemaFormRenderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
44
46
|
} if (rf & 2) {
|
|
45
47
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
46
48
|
i0.ɵɵadvance(1);
|
|
47
|
-
i0.ɵɵproperty("
|
|
49
|
+
i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
|
|
48
50
|
i0.ɵɵadvance(1);
|
|
49
51
|
i0.ɵɵproperty("ngForOf", ctx_r0.schemas);
|
|
50
52
|
} }
|
|
51
53
|
export class SchemaFormRenderComponent extends BaseSchemaComponent {
|
|
52
54
|
constructor() {
|
|
53
55
|
super(...arguments);
|
|
54
|
-
this.requiredLabel = '(required)';
|
|
55
|
-
this.addItemLabel = 'Add Item';
|
|
56
|
-
this.addLoopLabel = 'Add Loop';
|
|
57
|
-
this.additionalAttributesLabel = 'Additional Fields';
|
|
58
|
-
this.customAttributeRemoveLabel = 'Remove';
|
|
59
|
-
this.newCustomFieldNameLabel = 'Name';
|
|
60
|
-
this.newCustomFieldValueLabel = 'Value';
|
|
61
|
-
this.newCustomFieldAddLabel = 'Add';
|
|
62
|
-
this.newCustomFieldSaveLabel = 'Save';
|
|
63
|
-
this.newCustomFieldCancelLabel = 'Cancel';
|
|
64
|
-
this.selectPlaceHolderLabel = 'Select Item';
|
|
65
|
-
this.selectSearchPlaceHolderLabel = 'Search';
|
|
66
|
-
this.selectClearLabel = 'Clear';
|
|
67
|
-
this.selectNotFoundLabel = 'No Items Found';
|
|
68
56
|
this.schemas = [];
|
|
69
57
|
this.customProperties = false;
|
|
70
58
|
this.editing = false;
|
|
@@ -81,11 +69,11 @@ export class SchemaFormRenderComponent extends BaseSchemaComponent {
|
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
71
|
SchemaFormRenderComponent.ɵfac = function SchemaFormRenderComponent_Factory(t) { return ɵSchemaFormRenderComponent_BaseFactory(t || SchemaFormRenderComponent); };
|
|
84
|
-
SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: {
|
|
85
|
-
i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3,
|
|
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);
|
|
86
74
|
} if (rf & 2) {
|
|
87
75
|
i0.ɵɵproperty("ngIf", ctx.loaded);
|
|
88
|
-
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i1.NgForOf, i3.SchemaCustomAttributesComponent], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
76
|
+
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i1.NgForOf, i3.SchemaCustomAttributesComponent], pipes: [i4.TranslatePipe], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
89
77
|
const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
90
78
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
91
79
|
type: Component,
|
|
@@ -94,35 +82,7 @@ const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherite
|
|
|
94
82
|
templateUrl: 'schema-form-render.html',
|
|
95
83
|
styleUrls: ['./schema-form-render.scss']
|
|
96
84
|
}]
|
|
97
|
-
}], null, {
|
|
98
|
-
type: Input
|
|
99
|
-
}], addItemLabel: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], addLoopLabel: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], additionalAttributesLabel: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], customAttributeRemoveLabel: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], newCustomFieldNameLabel: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], newCustomFieldValueLabel: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], newCustomFieldAddLabel: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], newCustomFieldSaveLabel: [{
|
|
114
|
-
type: Input
|
|
115
|
-
}], newCustomFieldCancelLabel: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], selectPlaceHolderLabel: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}], selectSearchPlaceHolderLabel: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], selectClearLabel: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], selectNotFoundLabel: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}], idPrefix: [{
|
|
85
|
+
}], null, { idPrefix: [{
|
|
126
86
|
type: Input
|
|
127
87
|
}], schemas: [{
|
|
128
88
|
type: Input
|
|
@@ -133,4 +93,4 @@ const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherite
|
|
|
133
93
|
}], inputType: [{
|
|
134
94
|
type: Input
|
|
135
95
|
}] }); })();
|
|
136
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWZvcm0tcmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcm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