@apipass/schemas 1.0.167 → 1.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/schema-custom-attributes/schema-custom-attributes.mjs +4 -4
- package/esm2022/schema-form/schema-array/array-session/array-session.mjs +3 -3
- package/esm2022/schema-form/schema-array/schema-array.mjs +3 -3
- package/esm2022/schema-form/schema-input/input-render/boolean-input/boolean-input.component.mjs +3 -3
- package/esm2022/schema-form/schema-input/input-render/input-render.mjs +62 -35
- package/esm2022/schema-form/schema-input/input-render/number-input/number-input.component.mjs +3 -3
- package/esm2022/schema-form/schema-input/schema-input.mjs +7 -7
- package/esm2022/schema-form-render.module.mjs +1 -31
- package/fesm2022/apipass-schemas.mjs +72 -75
- package/fesm2022/apipass-schemas.mjs.map +1 -1
- package/package.json +3 -3
- package/schema-form/schema-input/input-render/input-render.d.ts +2 -1
- package/schema-form-render.module.d.ts +6 -6
|
@@ -2,15 +2,15 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, Component, Input, Output, TemplateRef, ContentChild, Injectable, Optional, SkipSelf, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
6
|
import { FormControl, Validators, FormsModule } from '@angular/forms';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i3 from 'ngx-drag-drop';
|
|
8
8
|
import { DndModule } from 'ngx-drag-drop';
|
|
9
9
|
import * as i2$1 from '@angular/material/tooltip';
|
|
10
10
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i3$1 from '@apipass/inputs';
|
|
12
12
|
import { InputsModule } from '@apipass/inputs';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i4 from '@apipass/icons';
|
|
14
14
|
import { IconsModule } from '@apipass/icons';
|
|
15
15
|
|
|
16
16
|
class BaseSchemaComponent {
|
|
@@ -167,7 +167,7 @@ class ArraySessionComponent extends BaseSchemaComponent {
|
|
|
167
167
|
i0.ɵɵtextInterpolate(ctx.addItemLabel);
|
|
168
168
|
i0.ɵɵadvance(1);
|
|
169
169
|
i0.ɵɵproperty("ngIf", ctx.showAddLoop);
|
|
170
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i2.
|
|
170
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel, i3.DndDropzoneDirective], styles: [".subsection-element[_ngcontent-%COMP%]{padding:5px 15px 15px;margin-top:10px;border:1px solid #CCC;border-radius:5px;background:#FFF}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 30px);padding:7px 10px 7px 14px;margin-top:-5px;margin-bottom:5px;margin-left:-15px;background:#EEE;border-radius:5px 5px 0 0;font-weight:700;border-bottom:1px solid #CCC}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
|
|
171
171
|
}
|
|
172
172
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArraySessionComponent, [{
|
|
173
173
|
type: Component,
|
|
@@ -429,7 +429,7 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
429
429
|
i0.ɵɵproperty("ngIf", ctx.newCustomField);
|
|
430
430
|
i0.ɵɵadvance(1);
|
|
431
431
|
i0.ɵɵproperty("ngIf", ctx.newCustomField && ctx.newCustomField.label && ctx.newCustomField.value);
|
|
432
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.
|
|
432
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel, i2$1.MatTooltip, i3.DndDropzoneDirective], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{position:absolute;right:15px;top:4px;cursor:pointer;font-size:16px;color:red}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{margin-top:16px;padding:8px 16px 16px;background-color:#ececec}"] });
|
|
433
433
|
}
|
|
434
434
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
|
|
435
435
|
type: Component,
|
|
@@ -621,7 +621,7 @@ class SchemaArrayComponent extends BaseSchemaComponent {
|
|
|
621
621
|
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && ctx.schema.properties);
|
|
622
622
|
i0.ɵɵadvance(1);
|
|
623
623
|
i0.ɵɵproperty("ngIf", ctx.schema && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && !ctx.schema.properties);
|
|
624
|
-
} }, dependencies: [i1.NgIf, i2.
|
|
624
|
+
} }, dependencies: [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel, i3.DndDropzoneDirective, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent] });
|
|
625
625
|
}
|
|
626
626
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaArrayComponent, [{
|
|
627
627
|
type: Component,
|
|
@@ -764,7 +764,7 @@ class BooleanInputComponent extends BaseSchemaComponent {
|
|
|
764
764
|
i0.ɵɵelementEnd();
|
|
765
765
|
} if (rf & 2) {
|
|
766
766
|
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$2))("dndAllowExternal", true)("maxlength", ctx.maxLength);
|
|
767
|
-
} }, dependencies: [i2.
|
|
767
|
+
} }, dependencies: [i2.DefaultValueAccessor, i2.NgControlStatus, i2.MaxLengthValidator, i2.NgModel, i3.DndDropzoneDirective], encapsulation: 2 });
|
|
768
768
|
}
|
|
769
769
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BooleanInputComponent, [{
|
|
770
770
|
type: Component,
|
|
@@ -807,7 +807,7 @@ class NumberInputComponent extends BaseSchemaComponent {
|
|
|
807
807
|
i0.ɵɵelementEnd();
|
|
808
808
|
} if (rf & 2) {
|
|
809
809
|
i0.ɵɵproperty("id", ctx.inputId)("placeholder", ctx.placeholder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1))("dndAllowExternal", true)("maxlength", ctx.maxLength);
|
|
810
|
-
} }, dependencies: [i2.
|
|
810
|
+
} }, dependencies: [i2.DefaultValueAccessor, i2.NgControlStatus, i2.MaxLengthValidator, i2.NgModel, i3.DndDropzoneDirective], encapsulation: 2 });
|
|
811
811
|
}
|
|
812
812
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberInputComponent, [{
|
|
813
813
|
type: Component,
|
|
@@ -821,25 +821,25 @@ class NumberInputComponent extends BaseSchemaComponent {
|
|
|
821
821
|
}] }); })();
|
|
822
822
|
|
|
823
823
|
function InputRenderComponent_div_1_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
824
|
-
const
|
|
825
|
-
i0.ɵɵelementStart(0, "icon",
|
|
826
|
-
i0.ɵɵlistener("onClick", function InputRenderComponent_div_1_icon_1_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(
|
|
824
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
825
|
+
i0.ɵɵelementStart(0, "icon", 10);
|
|
826
|
+
i0.ɵɵlistener("onClick", function InputRenderComponent_div_1_icon_1_Template_icon_onClick_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.editPassword()); });
|
|
827
827
|
i0.ɵɵelementEnd();
|
|
828
828
|
} if (rf & 2) {
|
|
829
829
|
i0.ɵɵproperty("name", "fas fa-pencil-alt");
|
|
830
830
|
} }
|
|
831
831
|
function InputRenderComponent_div_1_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
832
|
-
const
|
|
833
|
-
i0.ɵɵelementStart(0, "icon",
|
|
834
|
-
i0.ɵɵlistener("mousedown", function InputRenderComponent_div_1_icon_2_Template_icon_mousedown_0_listener($event) { i0.ɵɵrestoreView(
|
|
832
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
833
|
+
i0.ɵɵelementStart(0, "icon", 11);
|
|
834
|
+
i0.ɵɵlistener("mousedown", function InputRenderComponent_div_1_icon_2_Template_icon_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); ctx_r11.cancelEditPassword(); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
835
835
|
i0.ɵɵelementEnd();
|
|
836
836
|
} if (rf & 2) {
|
|
837
837
|
i0.ɵɵproperty("name", "fas fa-ban");
|
|
838
838
|
} }
|
|
839
839
|
function InputRenderComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
840
|
-
i0.ɵɵelementStart(0, "div",
|
|
841
|
-
i0.ɵɵtemplate(1, InputRenderComponent_div_1_icon_1_Template, 1, 1, "icon",
|
|
842
|
-
i0.ɵɵtemplate(2, InputRenderComponent_div_1_icon_2_Template, 1, 1, "icon",
|
|
840
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
841
|
+
i0.ɵɵtemplate(1, InputRenderComponent_div_1_icon_1_Template, 1, 1, "icon", 8);
|
|
842
|
+
i0.ɵɵtemplate(2, InputRenderComponent_div_1_icon_2_Template, 1, 1, "icon", 9);
|
|
843
843
|
i0.ɵɵelementEnd();
|
|
844
844
|
} if (rf & 2) {
|
|
845
845
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -850,9 +850,9 @@ function InputRenderComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
850
850
|
} }
|
|
851
851
|
const _c0 = function () { return { standalone: true }; };
|
|
852
852
|
function InputRenderComponent_input_2_Template(rf, ctx) { if (rf & 1) {
|
|
853
|
-
const
|
|
854
|
-
i0.ɵɵelementStart(0, "input",
|
|
855
|
-
i0.ɵɵlistener("blur", function InputRenderComponent_input_2_Template_input_blur_0_listener() { i0.ɵɵrestoreView(
|
|
853
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
854
|
+
i0.ɵɵelementStart(0, "input", 12);
|
|
855
|
+
i0.ɵɵlistener("blur", function InputRenderComponent_input_2_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.onInputBlur()); })("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.value = $event); })("ngModelChange", function InputRenderComponent_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.onChange($event)); })("dndDrop", function InputRenderComponent_input_2_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.onDropCallBack($event, ctx_r17.value)); });
|
|
856
856
|
i0.ɵɵelementEnd();
|
|
857
857
|
} if (rf & 2) {
|
|
858
858
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -860,32 +860,50 @@ function InputRenderComponent_input_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
860
860
|
i0.ɵɵproperty("disabled", ctx_r1.schema.readOnlyPassword && ctx_r1.editing)("type", ctx_r1.schema.type === "password" ? "password" : "text")("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(8, _c0))("dndAllowExternal", true)("id", ctx_r1.inputId)("maxlength", ctx_r1.schema.maxLength);
|
|
861
861
|
} }
|
|
862
862
|
function InputRenderComponent_select_box_3_Template(rf, ctx) { if (rf & 1) {
|
|
863
|
-
const
|
|
864
|
-
i0.ɵɵelementStart(0, "select-box",
|
|
865
|
-
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
863
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
864
|
+
i0.ɵɵelementStart(0, "select-box", 13);
|
|
865
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.value = $event); })("ngModelChange", function InputRenderComponent_select_box_3_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r20 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r20.onChange($event.key)); });
|
|
866
866
|
i0.ɵɵelementEnd();
|
|
867
867
|
} if (rf & 2) {
|
|
868
868
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
869
869
|
i0.ɵɵproperty("id", ctx_r2.inputId)("ngModel", ctx_r2.value)("ngModelOptions", i0.ɵɵpureFunction0(12, _c0))("placeholder", ctx_r2.schema.description || ctx_r2.selectPlaceHolderLabel)("searchPlaceHolder", ctx_r2.selectSearchPlaceHolderLabel)("clearText", ctx_r2.selectClearLabel)("notFoundText", ctx_r2.selectNotFoundLabel)("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r2.schema.options);
|
|
870
870
|
} }
|
|
871
|
-
function
|
|
872
|
-
const
|
|
873
|
-
i0.ɵɵelementStart(0, "
|
|
874
|
-
i0.ɵɵlistener("
|
|
871
|
+
function InputRenderComponent_select_interpolation_4_Template(rf, ctx) { if (rf & 1) {
|
|
872
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
873
|
+
i0.ɵɵelementStart(0, "select-interpolation", 14);
|
|
874
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_interpolation_4_Template_select_interpolation_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r21.onChange($event.key)); })("ngModelChange", function InputRenderComponent_select_interpolation_4_Template_select_interpolation_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r23 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r23.value = $event); });
|
|
875
875
|
i0.ɵɵelementEnd();
|
|
876
876
|
} if (rf & 2) {
|
|
877
877
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
878
|
-
i0.ɵɵproperty("
|
|
878
|
+
i0.ɵɵproperty("id", ctx_r3.inputId)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0))("placeHolder", ctx_r3.schema.description || ctx_r3.selectPlaceHolderLabel)("findPlaceHolder", ctx_r3.selectSearchPlaceHolderLabel)("ngModel", ctx_r3.value)("items", ctx_r3.schema.options);
|
|
879
879
|
} }
|
|
880
|
-
function
|
|
881
|
-
const
|
|
882
|
-
i0.ɵɵelementStart(0, "
|
|
883
|
-
i0.ɵɵlistener("modelChange", function
|
|
880
|
+
function InputRenderComponent_number_input_5_Template(rf, ctx) { if (rf & 1) {
|
|
881
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
882
|
+
i0.ɵɵelementStart(0, "number-input", 15);
|
|
883
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_number_input_5_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r24.value = $event); })("modelChange", function InputRenderComponent_number_input_5_Template_number_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r26 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r26.onChange($event)); });
|
|
884
884
|
i0.ɵɵelementEnd();
|
|
885
885
|
} if (rf & 2) {
|
|
886
886
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
887
887
|
i0.ɵɵproperty("model", ctx_r4.value)("inputId", ctx_r4.inputId)("placeholder", ctx_r4.schema.description)("maxLength", ctx_r4.schema.maxLength);
|
|
888
888
|
} }
|
|
889
|
+
function InputRenderComponent_boolean_input_6_Template(rf, ctx) { if (rf & 1) {
|
|
890
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
891
|
+
i0.ɵɵelementStart(0, "boolean-input", 15);
|
|
892
|
+
i0.ɵɵlistener("modelChange", function InputRenderComponent_boolean_input_6_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r27.value = $event); })("modelChange", function InputRenderComponent_boolean_input_6_Template_boolean_input_modelChange_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r29 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r29.onChange($event)); });
|
|
893
|
+
i0.ɵɵelementEnd();
|
|
894
|
+
} if (rf & 2) {
|
|
895
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
896
|
+
i0.ɵɵproperty("model", ctx_r5.value)("inputId", ctx_r5.inputId)("placeholder", ctx_r5.schema.description)("maxLength", ctx_r5.schema.maxLength);
|
|
897
|
+
} }
|
|
898
|
+
function InputRenderComponent_ace_editor_input_7_Template(rf, ctx) { if (rf & 1) {
|
|
899
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
900
|
+
i0.ɵɵelementStart(0, "ace-editor-input", 16);
|
|
901
|
+
i0.ɵɵlistener("ngModelChange", function InputRenderComponent_ace_editor_input_7_Template_ace_editor_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r30.value = $event); })("ngModelChange", function InputRenderComponent_ace_editor_input_7_Template_ace_editor_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r32 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r32.onChange($event)); });
|
|
902
|
+
i0.ɵɵelementEnd();
|
|
903
|
+
} if (rf & 2) {
|
|
904
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
905
|
+
i0.ɵɵproperty("ngModel", ctx_r6.value)("mode", ctx_r6.schema.type)("previousStepsOutputAttributes", ctx_r6.fullModel.previousStepsOutputAttributes)("description", ctx_r6.schema.description);
|
|
906
|
+
} }
|
|
889
907
|
const _c1 = function (a0) { return { "schema-input-container-password": a0 }; };
|
|
890
908
|
class InputRenderComponent extends BaseSchemaComponent {
|
|
891
909
|
selectPlaceHolderLabel = 'Select Item';
|
|
@@ -893,6 +911,7 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
893
911
|
selectClearLabel = 'Clear';
|
|
894
912
|
selectNotFoundLabel = 'No Items Found';
|
|
895
913
|
schema = {};
|
|
914
|
+
fullModel = {};
|
|
896
915
|
modelPropertiesPath;
|
|
897
916
|
inputId;
|
|
898
917
|
editing = false;
|
|
@@ -957,16 +976,18 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
957
976
|
this.schema.readOnlyPassword = value;
|
|
958
977
|
}
|
|
959
978
|
static ɵfac = /*@__PURE__*/ function () { let ɵInputRenderComponent_BaseFactory; return function InputRenderComponent_Factory(t) { return (ɵInputRenderComponent_BaseFactory || (ɵInputRenderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(InputRenderComponent)))(t || InputRenderComponent); }; }();
|
|
960
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
979
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", fullModel: "fullModel", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 10, consts: [[1, "schema-input-container", 3, "ngClass"], ["class", "edit-icon", 4, "ngIf"], ["class", "form-control", "dndDropzone", "", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "id", "maxlength", "blur", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "id", "ngModelOptions", "placeHolder", "findPlaceHolder", "ngModel", "items", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], [3, "ngModel", "mode", "previousStepsOutputAttributes", "description", "ngModelChange", 4, "ngIf"], [1, "edit-icon"], ["size", "15", "type", "primary", 3, "name", "onClick", 4, "ngIf"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown", 4, "ngIf"], ["size", "15", "type", "primary", 3, "name", "onClick"], ["size", "15", "type", "primary clickable", 3, "name", "mousedown"], ["dndDropzone", "", 1, "form-control", 3, "disabled", "type", "placeholder", "ngModel", "ngModelOptions", "dndAllowExternal", "id", "maxlength", "blur", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "id", "ngModelOptions", "placeHolder", "findPlaceHolder", "ngModel", "items", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"], [3, "ngModel", "mode", "previousStepsOutputAttributes", "description", "ngModelChange"]], template: function InputRenderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
961
980
|
i0.ɵɵelementStart(0, "div", 0);
|
|
962
981
|
i0.ɵɵtemplate(1, InputRenderComponent_div_1_Template, 3, 2, "div", 1);
|
|
963
982
|
i0.ɵɵtemplate(2, InputRenderComponent_input_2_Template, 1, 9, "input", 2);
|
|
964
983
|
i0.ɵɵtemplate(3, InputRenderComponent_select_box_3_Template, 1, 13, "select-box", 3);
|
|
965
|
-
i0.ɵɵtemplate(4,
|
|
966
|
-
i0.ɵɵtemplate(5,
|
|
984
|
+
i0.ɵɵtemplate(4, InputRenderComponent_select_interpolation_4_Template, 1, 7, "select-interpolation", 4);
|
|
985
|
+
i0.ɵɵtemplate(5, InputRenderComponent_number_input_5_Template, 1, 4, "number-input", 5);
|
|
986
|
+
i0.ɵɵtemplate(6, InputRenderComponent_boolean_input_6_Template, 1, 4, "boolean-input", 5);
|
|
987
|
+
i0.ɵɵtemplate(7, InputRenderComponent_ace_editor_input_7_Template, 1, 4, "ace-editor-input", 6);
|
|
967
988
|
i0.ɵɵelementEnd();
|
|
968
989
|
} if (rf & 2) {
|
|
969
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
990
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1, ctx.schema.type === "password"));
|
|
970
991
|
i0.ɵɵadvance(1);
|
|
971
992
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "password" && ctx.editing);
|
|
972
993
|
i0.ɵɵadvance(1);
|
|
@@ -974,14 +995,18 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
974
995
|
i0.ɵɵadvance(1);
|
|
975
996
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "string" && ctx.schema.options);
|
|
976
997
|
i0.ɵɵadvance(1);
|
|
998
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "select-interpolation" && ctx.schema.options);
|
|
999
|
+
i0.ɵɵadvance(1);
|
|
977
1000
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "number");
|
|
978
1001
|
i0.ɵɵadvance(1);
|
|
979
1002
|
i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
|
|
980
|
-
|
|
1003
|
+
i0.ɵɵadvance(1);
|
|
1004
|
+
i0.ɵɵproperty("ngIf", ctx.schema.type === "json" || ctx.schema.type === "html" || ctx.schema.type === "sql" || ctx.schema.type === "xml" || ctx.schema.type === "text");
|
|
1005
|
+
} }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.MaxLengthValidator, i2.NgModel, i3$1.SelectBoxComponent, i3$1.SelectInterpolationComponent, i3$1.AceEditorInputComponent, i4.IconComponent, i3.DndDropzoneDirective, BooleanInputComponent, NumberInputComponent], styles: [".schema-input-container-password[_ngcontent-%COMP%]{position:relative}.schema-input-container-password[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]{position:absolute;width:30px;right:-5px;top:7px;z-index:1}.schema-input-container-password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;padding-right:40px!important;width:calc(100% - 52px)!important}"] });
|
|
981
1006
|
}
|
|
982
1007
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputRenderComponent, [{
|
|
983
1008
|
type: Component,
|
|
984
|
-
args: [{ selector: 'input-render', template: "<div class=\"schema-input-container\" [ngClass]=\"{'schema-input-container-password' : schema.type === 'password' }\" >\n <div *ngIf=\"schema.type === 'password' && editing\" class=\"edit-icon\">\n <icon *ngIf=\"this.schema.readOnlyPassword\" size=\"15\" type=\"primary\" [name]=\"'fas fa-pencil-alt'\"\n (onClick)=\"editPassword()\">\n </icon>\n <icon *ngIf=\"!this.schema.readOnlyPassword\" size=\"15\" type=\"primary clickable\" [name]=\"'fas fa-ban'\"\n (mousedown)=\"cancelEditPassword(); $event.stopPropagation()\">\n </icon>\n </div>\n <input (blur)=\"onInputBlur()\"\n [disabled]=\"schema.readOnlyPassword && editing\" class=\"form-control\"\n [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.type === 'password' && this.schema.readOnlyPassword ? '*****' : schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onChange($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\" [id]=\"inputId\" [maxlength]=\"schema.maxLength\"/>\n\n <select-box\n [id]=\"inputId\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event.key)\"\n [ngModelOptions]=\"{standalone: true}\"\n *ngIf=\"schema.type === 'string' && schema.options\"\n [placeholder]=\"schema.description || this.selectPlaceHolderLabel\"\n [searchPlaceHolder]=\"selectSearchPlaceHolderLabel\"\n [clearText]=\"this.selectClearLabel\"\n [notFoundText]=\"this.selectNotFoundLabel\"\n [bindKey]=\"'key'\"\n [bindValue]=\"'value'\"\n [enabledSearch]=\"true\"\n [limitItens]=\"30\"\n [data]=\"schema.options\">\n </select-box>\n\n <number-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'number'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></number-input>\n\n <boolean-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'boolean'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></boolean-input>\n</div>\n", styles: [".schema-input-container-password{position:relative}.schema-input-container-password .edit-icon{position:absolute;width:30px;right:-5px;top:7px;z-index:1}.schema-input-container-password input{display:block;padding-right:40px!important;width:calc(100% - 52px)!important}\n"] }]
|
|
1009
|
+
args: [{ selector: 'input-render', template: "<div class=\"schema-input-container\" [ngClass]=\"{'schema-input-container-password' : schema.type === 'password' }\" >\n <div *ngIf=\"schema.type === 'password' && editing\" class=\"edit-icon\">\n <icon *ngIf=\"this.schema.readOnlyPassword\" size=\"15\" type=\"primary\" [name]=\"'fas fa-pencil-alt'\"\n (onClick)=\"editPassword()\">\n </icon>\n <icon *ngIf=\"!this.schema.readOnlyPassword\" size=\"15\" type=\"primary clickable\" [name]=\"'fas fa-ban'\"\n (mousedown)=\"cancelEditPassword(); $event.stopPropagation()\">\n </icon>\n </div>\n <input (blur)=\"onInputBlur()\"\n [disabled]=\"schema.readOnlyPassword && editing\" class=\"form-control\"\n [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.type === 'password' && this.schema.readOnlyPassword ? '*****' : schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onChange($event)\"\n dndDropzone [dndAllowExternal]=\"true\" (dndDrop)=\"onDropCallBack($event, value)\" [id]=\"inputId\" [maxlength]=\"schema.maxLength\"/>\n\n <select-box\n [id]=\"inputId\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event.key)\"\n [ngModelOptions]=\"{standalone: true}\"\n *ngIf=\"schema.type === 'string' && schema.options\"\n [placeholder]=\"schema.description || this.selectPlaceHolderLabel\"\n [searchPlaceHolder]=\"selectSearchPlaceHolderLabel\"\n [clearText]=\"this.selectClearLabel\"\n [notFoundText]=\"this.selectNotFoundLabel\"\n [bindKey]=\"'key'\"\n [bindValue]=\"'value'\"\n [enabledSearch]=\"true\"\n [limitItens]=\"30\"\n [data]=\"schema.options\">\n </select-box>\n\n <select-interpolation\n [id]=\"inputId\"\n *ngIf=\"schema.type === 'select-interpolation' && schema.options\"\n (ngModelChange)=\"onChange($event.key)\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeHolder]=\"schema.description || this.selectPlaceHolderLabel\"\n [findPlaceHolder]=\"selectSearchPlaceHolderLabel\"\n [(ngModel)]=\"value\"\n [items]=\"schema.options\">\n </select-interpolation>\n\n <number-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'number'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></number-input>\n\n <boolean-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'boolean'\"\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\"\n (modelChange)=\"onChange($event)\"></boolean-input>\n\n <ace-editor-input [(ngModel)]=\"value\"\n *ngIf=\"schema.type === 'json'\n || schema.type === 'html'\n || schema.type === 'sql'\n || schema.type === 'xml'\n || schema.type === 'text'\"\n [mode]=\"schema.type\"\n [previousStepsOutputAttributes]=\"this.fullModel.previousStepsOutputAttributes\"\n [description]=\"schema.description\"\n (ngModelChange)=\"onChange($event)\">\n </ace-editor-input>\n\n</div>\n", styles: [".schema-input-container-password{position:relative}.schema-input-container-password .edit-icon{position:absolute;width:30px;right:-5px;top:7px;z-index:1}.schema-input-container-password input{display:block;padding-right:40px!important;width:calc(100% - 52px)!important}\n"] }]
|
|
985
1010
|
}], null, { selectPlaceHolderLabel: [{
|
|
986
1011
|
type: Input
|
|
987
1012
|
}], selectSearchPlaceHolderLabel: [{
|
|
@@ -992,6 +1017,8 @@ class InputRenderComponent extends BaseSchemaComponent {
|
|
|
992
1017
|
type: Input
|
|
993
1018
|
}], schema: [{
|
|
994
1019
|
type: Input
|
|
1020
|
+
}], fullModel: [{
|
|
1021
|
+
type: Input
|
|
995
1022
|
}], modelPropertiesPath: [{
|
|
996
1023
|
type: Input
|
|
997
1024
|
}], inputId: [{
|
|
@@ -1012,7 +1039,7 @@ function SchemaInputComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1012
1039
|
i0.ɵɵadvance(2);
|
|
1013
1040
|
i0.ɵɵproperty("requiredLabel", ctx_r0.requiredLabel)("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
|
|
1014
1041
|
i0.ɵɵadvance(1);
|
|
1015
|
-
i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("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);
|
|
1042
|
+
i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("fullModel", ctx_r0.model)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
|
|
1016
1043
|
} }
|
|
1017
1044
|
function SchemaInputComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
1018
1045
|
i0.ɵɵelementStart(0, "span", 7);
|
|
@@ -1040,7 +1067,7 @@ function SchemaInputComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1040
1067
|
i0.ɵɵadvance(1);
|
|
1041
1068
|
i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
|
|
1042
1069
|
i0.ɵɵadvance(1);
|
|
1043
|
-
i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r1.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r1.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r1.selectClearLabel)("selectNotFoundLabel", ctx_r1.selectNotFoundLabel)("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);
|
|
1070
|
+
i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r1.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r1.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r1.selectClearLabel)("selectNotFoundLabel", ctx_r1.selectNotFoundLabel)("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("fullModel", ctx_r1.model)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
|
|
1044
1071
|
} }
|
|
1045
1072
|
class SchemaInputComponent extends BaseSchemaComponent {
|
|
1046
1073
|
requiredLabel = '(required)';
|
|
@@ -1059,9 +1086,9 @@ class SchemaInputComponent extends BaseSchemaComponent {
|
|
|
1059
1086
|
return `${this.idPrefix}-struct-${index}`;
|
|
1060
1087
|
}
|
|
1061
1088
|
static ɵfac = /*@__PURE__*/ function () { let ɵSchemaInputComponent_BaseFactory; return function SchemaInputComponent_Factory(t) { return (ɵSchemaInputComponent_BaseFactory || (ɵSchemaInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SchemaInputComponent)))(t || SchemaInputComponent); }; }();
|
|
1062
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { requiredLabel: "requiredLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", 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", "schema-input-element"], [3, "requiredLabel", "label", "tooltip", "inputId"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "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) {
|
|
1063
|
-
i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4,
|
|
1064
|
-
i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6,
|
|
1089
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { requiredLabel: "requiredLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", 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", "schema-input-element"], [3, "requiredLabel", "label", "tooltip", "inputId"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "inputId", "schema", "fullModel", "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) {
|
|
1090
|
+
i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 14, "div", 0);
|
|
1091
|
+
i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 13, "div", 0);
|
|
1065
1092
|
} if (rf & 2) {
|
|
1066
1093
|
i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && ctx.schema.minLength && ctx.schema.minLength > 0);
|
|
1067
1094
|
i0.ɵɵadvance(1);
|
|
@@ -1070,7 +1097,7 @@ class SchemaInputComponent extends BaseSchemaComponent {
|
|
|
1070
1097
|
}
|
|
1071
1098
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaInputComponent, [{
|
|
1072
1099
|
type: Component,
|
|
1073
|
-
args: [{ selector: 'schema-input', template: "<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && schema.minLength && schema.minLength > 0\">\n <div class=\"col-md-12 schema-input-element\">\n <field-render [requiredLabel]=\"requiredLabel\" [label]=\"schema.title\" [tooltip]=\"schema.help\" [inputId]=\"getId(index)\">\n <input-render\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [inputId]=\"getId(index)\"\n [schema]=\"schema\"\n [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </field-render>\n </div>\n</div>\n<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && (!schema.minLength || schema.minLength === 0)\">\n <div class=\"col-md-12 schema-input-element\">\n <label class=\"info-label bold\" [htmlFor]=\"getId(index)\">\n {{schema.title}}\n <span class=\"config-tooltip\" matTooltip=\"{{ schema.help }}\" *ngIf=\"schema.help\">?</span>\n </label>\n <input-render\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [inputId]=\"getId(index)\"\n [schema]=\"schema\"\n [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </div>\n</div>\n", styles: [".schema-input-element{margin-top:10px!important}\n"] }]
|
|
1100
|
+
args: [{ selector: 'schema-input', template: "<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && schema.minLength && schema.minLength > 0\">\n <div class=\"col-md-12 schema-input-element\">\n <field-render [requiredLabel]=\"requiredLabel\" [label]=\"schema.title\" [tooltip]=\"schema.help\" [inputId]=\"getId(index)\">\n <input-render\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [inputId]=\"getId(index)\"\n [schema]=\"schema\"\n [fullModel]=\"this.model\"\n [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </field-render>\n </div>\n</div>\n<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && (!schema.minLength || schema.minLength === 0)\">\n <div class=\"col-md-12 schema-input-element\">\n <label class=\"info-label bold\" [htmlFor]=\"getId(index)\">\n {{schema.title}}\n <span class=\"config-tooltip\" matTooltip=\"{{ schema.help }}\" *ngIf=\"schema.help\">?</span>\n </label>\n <input-render\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [inputId]=\"getId(index)\"\n [schema]=\"schema\"\n [fullModel]=\"this.model\"\n [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </div>\n</div>\n", styles: [".schema-input-element{margin-top:10px!important}\n"] }]
|
|
1074
1101
|
}], null, { requiredLabel: [{
|
|
1075
1102
|
type: Input
|
|
1076
1103
|
}], selectPlaceHolderLabel: [{
|
|
@@ -1540,20 +1567,10 @@ class SchemaFormRenderModule {
|
|
|
1540
1567
|
SchemaFieldsService,
|
|
1541
1568
|
APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER
|
|
1542
1569
|
], imports: [CommonModule,
|
|
1543
|
-
DndModule,
|
|
1544
1570
|
FormsModule,
|
|
1545
1571
|
MatTooltipModule,
|
|
1546
1572
|
InputsModule,
|
|
1547
1573
|
IconsModule,
|
|
1548
|
-
DndModule,
|
|
1549
|
-
DndModule,
|
|
1550
|
-
DndModule,
|
|
1551
|
-
DndModule,
|
|
1552
|
-
DndModule,
|
|
1553
|
-
DndModule,
|
|
1554
|
-
DndModule,
|
|
1555
|
-
DndModule,
|
|
1556
|
-
DndModule,
|
|
1557
1574
|
DndModule] });
|
|
1558
1575
|
}
|
|
1559
1576
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SchemaFormRenderModule, [{
|
|
@@ -1561,20 +1578,10 @@ class SchemaFormRenderModule {
|
|
|
1561
1578
|
args: [{
|
|
1562
1579
|
imports: [
|
|
1563
1580
|
CommonModule,
|
|
1564
|
-
DndModule,
|
|
1565
1581
|
FormsModule,
|
|
1566
1582
|
MatTooltipModule,
|
|
1567
1583
|
InputsModule,
|
|
1568
1584
|
IconsModule,
|
|
1569
|
-
DndModule,
|
|
1570
|
-
DndModule,
|
|
1571
|
-
DndModule,
|
|
1572
|
-
DndModule,
|
|
1573
|
-
DndModule,
|
|
1574
|
-
DndModule,
|
|
1575
|
-
DndModule,
|
|
1576
|
-
DndModule,
|
|
1577
|
-
DndModule,
|
|
1578
1585
|
DndModule
|
|
1579
1586
|
],
|
|
1580
1587
|
declarations: [
|
|
@@ -1620,20 +1627,10 @@ class SchemaFormRenderModule {
|
|
|
1620
1627
|
SchemaFormRenderComponent,
|
|
1621
1628
|
SchemaFormComponent,
|
|
1622
1629
|
SchemaCustomAttributesComponent], imports: [CommonModule,
|
|
1623
|
-
DndModule,
|
|
1624
1630
|
FormsModule,
|
|
1625
1631
|
MatTooltipModule,
|
|
1626
1632
|
InputsModule,
|
|
1627
1633
|
IconsModule,
|
|
1628
|
-
DndModule,
|
|
1629
|
-
DndModule,
|
|
1630
|
-
DndModule,
|
|
1631
|
-
DndModule,
|
|
1632
|
-
DndModule,
|
|
1633
|
-
DndModule,
|
|
1634
|
-
DndModule,
|
|
1635
|
-
DndModule,
|
|
1636
|
-
DndModule,
|
|
1637
1634
|
DndModule], exports: [ArraySessionComponent,
|
|
1638
1635
|
SchemaArrayComponent,
|
|
1639
1636
|
FieldRenderComponent,
|