@apipass/schemas 0.1.6-alpha.5 → 0.1.6-alpha.8
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 +30 -48
- 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-form/schema-input/input-render/input-render.js +33 -45
- package/esm2015/schema-form-render.js +1 -1
- package/fesm2015/apipass-schemas.js +31 -44
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema-form/schema-input/input-render/input-render.d.ts +1 -1
|
@@ -4,9 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
5
|
import * as i2 from "@angular/forms";
|
|
6
6
|
import * as i3 from "ngx-drag-drop";
|
|
7
|
-
import * as i4 from "
|
|
8
|
-
import * as i5 from "./
|
|
9
|
-
import * as i6 from "
|
|
7
|
+
import * as i4 from "@apipass/inputs";
|
|
8
|
+
import * as i5 from "./number-input/number-input.component";
|
|
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();
|
|
@@ -18,55 +19,32 @@ function InputRenderComponent_input_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
18
19
|
i0.ɵɵpropertyInterpolate("placeholder", ctx_r0.schema.description);
|
|
19
20
|
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
|
} }
|
|
21
|
-
function
|
|
22
|
-
i0.ɵɵ
|
|
23
|
-
i0.ɵɵ
|
|
24
|
-
i0.ɵɵ
|
|
25
|
-
|
|
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);
|
|
22
|
+
function InputRenderComponent_select_box_2_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
24
|
+
i0.ɵɵelementStart(0, "select-box", 5);
|
|
25
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onChange($event.key); });
|
|
26
|
+
i0.ɵɵpipe(1, "translate");
|
|
34
27
|
i0.ɵɵpipe(2, "translate");
|
|
35
|
-
i0.ɵɵ
|
|
36
|
-
|
|
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);
|
|
28
|
+
i0.ɵɵpipe(3, "translate");
|
|
29
|
+
i0.ɵɵpipe(4, "translate");
|
|
48
30
|
i0.ɵɵelementEnd();
|
|
49
31
|
} if (rf & 2) {
|
|
50
32
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
51
|
-
i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(
|
|
52
|
-
i0.ɵɵadvance(1);
|
|
53
|
-
i0.ɵɵproperty("ngIf", ctx_r1.schema.description);
|
|
54
|
-
i0.ɵɵadvance(1);
|
|
55
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.schema.options);
|
|
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);
|
|
56
34
|
} }
|
|
57
35
|
function InputRenderComponent_number_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
-
const
|
|
59
|
-
i0.ɵɵelementStart(0, "number-input",
|
|
60
|
-
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
36
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
37
|
+
i0.ɵɵelementStart(0, "number-input", 6);
|
|
38
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.value = $event; })("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
61
39
|
i0.ɵɵelementEnd();
|
|
62
40
|
} if (rf & 2) {
|
|
63
41
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
64
42
|
i0.ɵɵproperty("model", ctx_r2.value)("inputId", ctx_r2.inputId)("placeholder", ctx_r2.schema.description)("maxLength", ctx_r2.schema.maxLength);
|
|
65
43
|
} }
|
|
66
44
|
function InputRenderComponent_boolean_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
const
|
|
68
|
-
i0.ɵɵelementStart(0, "boolean-input",
|
|
69
|
-
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
45
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
46
|
+
i0.ɵɵelementStart(0, "boolean-input", 6);
|
|
47
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.value = $event; })("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onChange($event); });
|
|
70
48
|
i0.ɵɵelementEnd();
|
|
71
49
|
} if (rf & 2) {
|
|
72
50
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -86,9 +64,19 @@ export class InputRenderComponent extends BaseSchemaComponent {
|
|
|
86
64
|
const $event = this.schema.options.filter((item) => item.selected === true);
|
|
87
65
|
if ($event[0]) {
|
|
88
66
|
this.onChange($event[0].key);
|
|
67
|
+
this.value = $event[0];
|
|
89
68
|
}
|
|
90
69
|
}
|
|
91
|
-
this.
|
|
70
|
+
else if (this.editing && this.schema.options && this.model) {
|
|
71
|
+
const $event = this.schema.options.filter((item) => item.key === this.model);
|
|
72
|
+
if ($event[0]) {
|
|
73
|
+
this.onChange($event[0].key);
|
|
74
|
+
this.value = $event[0];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.value = this.model;
|
|
79
|
+
}
|
|
92
80
|
}
|
|
93
81
|
}
|
|
94
82
|
onChange($event) {
|
|
@@ -97,10 +85,10 @@ export class InputRenderComponent extends BaseSchemaComponent {
|
|
|
97
85
|
}
|
|
98
86
|
}
|
|
99
87
|
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"], ["
|
|
88
|
+
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"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
101
89
|
i0.ɵɵelementStart(0, "div", 0);
|
|
102
90
|
i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
103
|
-
i0.ɵɵtemplate(2,
|
|
91
|
+
i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
104
92
|
i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
105
93
|
i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
106
94
|
i0.ɵɵelementEnd();
|
|
@@ -113,7 +101,7 @@ InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent
|
|
|
113
101
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
114
102
|
i0.ɵɵadvance(1);
|
|
115
103
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
116
|
-
} }, directives: [i1.NgIf, i2.DefaultValueAccessor, i3.DndDropzoneDirective, i2.NgControlStatus, i2.NgModel, i2.MaxLengthValidator,
|
|
104
|
+
} }, directives: [i1.NgIf, i2.DefaultValueAccessor, i3.DndDropzoneDirective, i2.NgControlStatus, i2.NgModel, i2.MaxLengthValidator, i4.SelectBoxComponent, i5.NumberInputComponent, i6.BooleanInputComponent], pipes: [i7.TranslatePipe], styles: [""] });
|
|
117
105
|
const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
|
|
118
106
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
119
107
|
type: Component,
|
|
@@ -133,4 +121,4 @@ const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFact
|
|
|
133
121
|
}], onDropEvent: [{
|
|
134
122
|
type: Output
|
|
135
123
|
}] }); })();
|
|
136
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
124
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2NoZW1hcy9zcmMvc2NoZW1hLWZvcm0vc2NoZW1hLWlucHV0L2lucHV0LXJlbmRlci9pbnB1dC1yZW5kZXIudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zY2hlbWFzL3NyYy9zY2hlbWEtZm9ybS9zY2hlbWEtaW5wdXQvaW5wdXQtcmVuZGVyL2lucHV0LXJlbmRlci5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBL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gW2xpbWl0SXRlbnNdPVwiMzBcIlxuICAgIFtkYXRhXT1cInNjaGVtYS5vcHRpb25zXCI+XG4gIDwvc2VsZWN0LWJveD5cblxuICA8bnVtYmVyLWlucHV0IFsobW9kZWwpXT1cInZhbHVlXCIgW2lucHV0SWRdPVwiaW5wdXRJZFwiXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJzY2hlbWEudHlwZSA9PT0gJ251bWJlcidcIiBkbmREcm9wem9uZVxuICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJzY2hlbWEuZGVzY3JpcHRpb25cIiBbbWF4TGVuZ3RoXT1cInNjaGVtYS5tYXhMZW5ndGhcIlxuICAgICAgICAgICAgICAgIChtb2RlbENoYW5nZSk9XCJvbkNoYW5nZSgkZXZlbnQpXCI+PC9udW1iZXItaW5wdXQ+XG5cbiAgPGJvb2xlYW4taW5wdXQgWyhtb2RlbCldPVwidmFsdWVcIiBbaW5wdXRJZF09XCJpbnB1dElkXCJcbiAgICAgICAgICAgICAgICAgKm5nSWY9XCJzY2hlbWEudHlwZSA9PT0gJ2Jvb2xlYW4nXCIgZG5kRHJvcHpvbmVcbiAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cInNjaGVtYS5kZXNjcmlwdGlvblwiIFttYXhMZW5ndGhdPVwic2NoZW1hLm1heExlbmd0aFwiXG4gICAgICAgICAgICAgICAgIChtb2RlbENoYW5nZSk9XCJvbkNoYW5nZSgkZXZlbnQpXCI+PC9ib29sZWFuLWlucHV0PlxuPC9kaXY+XG4iXX0=
|
|
@@ -73,7 +73,7 @@ SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRende
|
|
|
73
73
|
i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
|
|
74
74
|
} if (rf & 2) {
|
|
75
75
|
i0.ɵɵproperty("ngIf", ctx.loaded);
|
|
76
|
-
} }, directives: [i1.NgIf, i2.SchemaFormComponent, i1.NgForOf, i3.SchemaCustomAttributesComponent], pipes: [i4.TranslatePipe], styles: [""] });
|
|
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)}"] });
|
|
77
77
|
const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
78
78
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
79
79
|
type: Component,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, ɵɵdefineComponent, ɵsetClassMetadata, Component, Input, Output, ɵɵgetCurrentView, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵadvance, ɵɵproperty, ɵɵpureFunction0, ɵɵelementContainer, ɵɵpipe, ɵɵtemplate, ɵɵtextInterpolate2, ɵɵpipeBind1, ɵɵpureFunction1, ɵɵpureFunction3, ɵɵtextInterpolate, ɵɵcontentQuery, TemplateRef, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵInheritDefinitionFeature, ɵɵgetInheritedFactory, ContentChild, ɵɵelement, ɵɵtextInterpolate1, ɵɵtemplateRefExtractor, ɵɵreference, ɵɵpropertyInterpolate, ɵɵprojectionDef, ɵɵprojection, ɵɵinject, ɵɵdefineInjectable, Injectable, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule, ɵɵsetComponentScope } from '@angular/core';
|
|
2
2
|
import { NgForOf, NgIf, NgTemplateOutlet, NgClass, CommonModule, NgComponentOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe } from '@angular/common';
|
|
3
|
-
import { DefaultValueAccessor, NgControlStatus, NgModel, MaxLengthValidator,
|
|
3
|
+
import { DefaultValueAccessor, NgControlStatus, NgModel, MaxLengthValidator, FormsModule, ɵangular_packages_forms_forms_y, NgSelectOption, ɵangular_packages_forms_forms_x, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatusGroup, RequiredValidator, MinLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, NgModelGroup, NgForm, FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { TranslatePipe, TranslateService, TranslateModule, TranslateDirective } from '@ngx-translate/core';
|
|
5
5
|
import { MatTooltip, MatTooltipModule, TooltipComponent } from '@angular/material/tooltip';
|
|
6
6
|
import { DndDropzoneDirective, DndModule, DndDraggableDirective, DndHandleDirective, DndPlaceholderRefDirective, DndDragImageRefDirective } from 'ngx-drag-drop';
|
|
7
|
+
import { SelectBoxComponent, InputsModule, SelectEnumComponent, InputTextComponent, InputPasswordComponent, InputAvatarComponent, InputFileComponent, CustomSelectComponent, FieldComponent } from '@apipass/inputs';
|
|
7
8
|
import { __awaiter } from 'tslib';
|
|
8
|
-
import { InputsModule, SelectBoxComponent, SelectEnumComponent, InputTextComponent, InputPasswordComponent, InputAvatarComponent, InputFileComponent, CustomSelectComponent, FieldComponent } from '@apipass/inputs';
|
|
9
9
|
import { Dir } from '@angular/cdk/bidi';
|
|
10
10
|
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
11
11
|
|
|
@@ -777,55 +777,32 @@ function InputRenderComponent_input_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
777
777
|
ɵɵpropertyInterpolate("placeholder", ctx_r0.schema.description);
|
|
778
778
|
ɵɵproperty("type", ctx_r0.schema.type === "password" ? "password" : "text")("ngModel", ctx_r0.value)("ngModelOptions", ɵɵpureFunction0(6, _c0$6))("id", ctx_r0.inputId)("maxlength", ctx_r0.schema.maxLength);
|
|
779
779
|
} }
|
|
780
|
-
function
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
const ctx_r7 = ɵɵnextContext(2);
|
|
786
|
-
ɵɵproperty("value", undefined);
|
|
787
|
-
ɵɵadvance(1);
|
|
788
|
-
ɵɵtextInterpolate1(" ", ctx_r7.schema.description, " ");
|
|
789
|
-
} }
|
|
790
|
-
function InputRenderComponent_select_2_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
791
|
-
ɵɵelementStart(0, "option", 9);
|
|
792
|
-
ɵɵtext(1);
|
|
780
|
+
function InputRenderComponent_select_box_2_Template(rf, ctx) { if (rf & 1) {
|
|
781
|
+
const _r8 = ɵɵgetCurrentView();
|
|
782
|
+
ɵɵelementStart(0, "select-box", 5);
|
|
783
|
+
ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { ɵɵrestoreView(_r8); const ctx_r7 = ɵɵnextContext(); return ctx_r7.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { ɵɵrestoreView(_r8); const ctx_r9 = ɵɵnextContext(); return ctx_r9.onChange($event.key); });
|
|
784
|
+
ɵɵpipe(1, "translate");
|
|
793
785
|
ɵɵpipe(2, "translate");
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const item_r9 = ctx.$implicit;
|
|
797
|
-
ɵɵproperty("value", item_r9.key)("selected", item_r9.selected === true);
|
|
798
|
-
ɵɵadvance(1);
|
|
799
|
-
ɵɵtextInterpolate(ɵɵpipeBind1(2, 3, item_r9.value));
|
|
800
|
-
} }
|
|
801
|
-
function InputRenderComponent_select_2_Template(rf, ctx) { if (rf & 1) {
|
|
802
|
-
const _r11 = ɵɵgetCurrentView();
|
|
803
|
-
ɵɵelementStart(0, "select", 5);
|
|
804
|
-
ɵɵlistener("ngModelChange", function InputRenderComponent_select_2_Template_select_ngModelChange_0_listener($event) { ɵɵrestoreView(_r11); const ctx_r10 = ɵɵnextContext(); return ctx_r10.value = $event; })("ngModelChange", function InputRenderComponent_select_2_Template_select_ngModelChange_0_listener($event) { ɵɵrestoreView(_r11); const ctx_r12 = ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
805
|
-
ɵɵtemplate(1, InputRenderComponent_select_2_option_1_Template, 2, 2, "option", 6);
|
|
806
|
-
ɵɵtemplate(2, InputRenderComponent_select_2_option_2_Template, 3, 5, "option", 7);
|
|
786
|
+
ɵɵpipe(3, "translate");
|
|
787
|
+
ɵɵpipe(4, "translate");
|
|
807
788
|
ɵɵelementEnd();
|
|
808
789
|
} if (rf & 2) {
|
|
809
790
|
const ctx_r1 = ɵɵnextContext();
|
|
810
|
-
ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", ɵɵpureFunction0(
|
|
811
|
-
ɵɵadvance(1);
|
|
812
|
-
ɵɵproperty("ngIf", ctx_r1.schema.description);
|
|
813
|
-
ɵɵadvance(1);
|
|
814
|
-
ɵɵproperty("ngForOf", ctx_r1.schema.options);
|
|
791
|
+
ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", ɵɵpureFunction0(20, _c0$6))("placeholder", ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
|
|
815
792
|
} }
|
|
816
793
|
function InputRenderComponent_number_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
817
|
-
const
|
|
818
|
-
ɵɵelementStart(0, "number-input",
|
|
819
|
-
ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { ɵɵrestoreView(
|
|
794
|
+
const _r11 = ɵɵgetCurrentView();
|
|
795
|
+
ɵɵelementStart(0, "number-input", 6);
|
|
796
|
+
ɵɵlistener("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { ɵɵrestoreView(_r11); const ctx_r10 = ɵɵnextContext(); return ctx_r10.value = $event; })("modelChange", function InputRenderComponent_number_input_3_Template_number_input_modelChange_0_listener($event) { ɵɵrestoreView(_r11); const ctx_r12 = ɵɵnextContext(); return ctx_r12.onChange($event); });
|
|
820
797
|
ɵɵelementEnd();
|
|
821
798
|
} if (rf & 2) {
|
|
822
799
|
const ctx_r2 = ɵɵnextContext();
|
|
823
800
|
ɵɵproperty("model", ctx_r2.value)("inputId", ctx_r2.inputId)("placeholder", ctx_r2.schema.description)("maxLength", ctx_r2.schema.maxLength);
|
|
824
801
|
} }
|
|
825
802
|
function InputRenderComponent_boolean_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
826
|
-
const
|
|
827
|
-
ɵɵelementStart(0, "boolean-input",
|
|
828
|
-
ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { ɵɵrestoreView(
|
|
803
|
+
const _r14 = ɵɵgetCurrentView();
|
|
804
|
+
ɵɵelementStart(0, "boolean-input", 6);
|
|
805
|
+
ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { ɵɵrestoreView(_r14); const ctx_r13 = ɵɵnextContext(); return ctx_r13.value = $event; })("modelChange", function InputRenderComponent_boolean_input_4_Template_boolean_input_modelChange_0_listener($event) { ɵɵrestoreView(_r14); const ctx_r15 = ɵɵnextContext(); return ctx_r15.onChange($event); });
|
|
829
806
|
ɵɵelementEnd();
|
|
830
807
|
} if (rf & 2) {
|
|
831
808
|
const ctx_r3 = ɵɵnextContext();
|
|
@@ -845,9 +822,19 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
845
822
|
const $event = this.schema.options.filter((item) => item.selected === true);
|
|
846
823
|
if ($event[0]) {
|
|
847
824
|
this.onChange($event[0].key);
|
|
825
|
+
this.value = $event[0];
|
|
848
826
|
}
|
|
849
827
|
}
|
|
850
|
-
this.
|
|
828
|
+
else if (this.editing && this.schema.options && this.model) {
|
|
829
|
+
const $event = this.schema.options.filter((item) => item.key === this.model);
|
|
830
|
+
if ($event[0]) {
|
|
831
|
+
this.onChange($event[0].key);
|
|
832
|
+
this.value = $event[0];
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
this.value = this.model;
|
|
837
|
+
}
|
|
851
838
|
}
|
|
852
839
|
}
|
|
853
840
|
onChange($event) {
|
|
@@ -856,10 +843,10 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
856
843
|
}
|
|
857
844
|
}
|
|
858
845
|
InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
|
|
859
|
-
InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", 4, "ngIf"], ["
|
|
846
|
+
InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], ["dndDropzone", "", 3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
860
847
|
ɵɵelementStart(0, "div", 0);
|
|
861
848
|
ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
|
|
862
|
-
ɵɵtemplate(2,
|
|
849
|
+
ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
|
|
863
850
|
ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
|
|
864
851
|
ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
|
|
865
852
|
ɵɵelementEnd();
|
|
@@ -872,7 +859,7 @@ InputRenderComponent.ɵcmp = ɵɵdefineComponent({ type: InputRenderComponent, s
|
|
|
872
859
|
ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
873
860
|
ɵɵadvance(1);
|
|
874
861
|
ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
875
|
-
} }, directives: [NgIf, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, MaxLengthValidator,
|
|
862
|
+
} }, directives: [NgIf, DefaultValueAccessor, DndDropzoneDirective, NgControlStatus, NgModel, MaxLengthValidator, SelectBoxComponent, NumberInputComponent, BooleanInputComponent], pipes: [TranslatePipe], styles: [""] });
|
|
876
863
|
const ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(InputRenderComponent);
|
|
877
864
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(InputRenderComponent, [{
|
|
878
865
|
type: Component,
|
|
@@ -1222,7 +1209,7 @@ SchemaFormRenderComponent.ɵcmp = ɵɵdefineComponent({ type: SchemaFormRenderCo
|
|
|
1222
1209
|
ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
|
|
1223
1210
|
} if (rf & 2) {
|
|
1224
1211
|
ɵɵproperty("ngIf", ctx.loaded);
|
|
1225
|
-
} }, directives: [NgIf, SchemaFormComponent, NgForOf, SchemaCustomAttributesComponent], pipes: [TranslatePipe], styles: [""] });
|
|
1212
|
+
} }, directives: [NgIf, SchemaFormComponent, NgForOf, SchemaCustomAttributesComponent], pipes: [TranslatePipe], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
|
|
1226
1213
|
const ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ ɵɵgetInheritedFactory(SchemaFormRenderComponent);
|
|
1227
1214
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SchemaFormRenderComponent, [{
|
|
1228
1215
|
type: Component,
|