@apipass/schemas 0.2.9 → 0.2.12
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 +7 -7
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +1 -1
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +8 -8
- package/fesm2015/apipass-schemas.js +7 -7
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema-custom-attributes/schema-custom-attributes.d.ts +1 -1
|
@@ -18,7 +18,7 @@ function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
18
18
|
i0.ɵɵelement(5, "i", 10);
|
|
19
19
|
i0.ɵɵelementEnd();
|
|
20
20
|
i0.ɵɵelementStart(6, "input", 11);
|
|
21
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_6_listener($event) { i0.ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDropAttr($event, attribute_r5); });
|
|
21
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_6_listener($event) { i0.ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDropAttr($event, "value", attribute_r5); });
|
|
22
22
|
i0.ɵɵelementEnd();
|
|
23
23
|
i0.ɵɵelementEnd();
|
|
24
24
|
i0.ɵɵelementEnd();
|
|
@@ -44,7 +44,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
44
44
|
i0.ɵɵelementEnd();
|
|
45
45
|
i0.ɵɵelementEnd();
|
|
46
46
|
i0.ɵɵelementStart(7, "input", 11);
|
|
47
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onDropAttr($event, ctx_r13.newCustomField
|
|
47
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onDropAttr($event, "label", ctx_r13.newCustomField); });
|
|
48
48
|
i0.ɵɵelementEnd();
|
|
49
49
|
i0.ɵɵelementEnd();
|
|
50
50
|
i0.ɵɵelementEnd();
|
|
@@ -57,7 +57,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
57
57
|
i0.ɵɵelementEnd();
|
|
58
58
|
i0.ɵɵelementEnd();
|
|
59
59
|
i0.ɵɵelementStart(14, "input", 11);
|
|
60
|
-
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onDropAttr($event, ctx_r15.newCustomField
|
|
60
|
+
i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.onDropAttr($event, "value", ctx_r15.newCustomField); });
|
|
61
61
|
i0.ɵɵelementEnd();
|
|
62
62
|
i0.ɵɵelementEnd();
|
|
63
63
|
i0.ɵɵelementEnd();
|
|
@@ -133,11 +133,11 @@ export class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
133
133
|
this.model.splice(attributeIndex, 1);
|
|
134
134
|
this.modelChange.emit(this.model);
|
|
135
135
|
}
|
|
136
|
-
onDropAttr($event,
|
|
137
|
-
if (!
|
|
138
|
-
|
|
136
|
+
onDropAttr($event, value, newCustomField) {
|
|
137
|
+
if (!newCustomField[value]) {
|
|
138
|
+
newCustomField[value] = '';
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
newCustomField[value] += `{{${$event.data}}}`;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
@@ -189,4 +189,4 @@ const ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetIn
|
|
|
189
189
|
}], onDropOnAttribute: [{
|
|
190
190
|
type: Output
|
|
191
191
|
}] }); })();
|
|
192
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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fVxuICAgIDwvYnV0dG9uPlxuICAgIDxidXR0b25cbiAgICAgIGNsYXNzPVwiYnRuIGJ0bi1vdXRsaW5lLWRhbmdlciBmbG9hdC1sZWZ0IG1sLTJcIlxuICAgICAgKm5nSWY9XCJuZXdDdXN0b21GaWVsZFwiXG4gICAgICAoY2xpY2spPVwibmV3Q3VzdG9tRmllbGQgPSBudWxsXCJcbiAgICA+XG4gICAgICB7eyB0aGlzLm5ld0N1c3RvbUZpZWxkQ2FuY2VsTGFiZWwgfX1cbiAgICA8L2J1dHRvbj5cbiAgICA8YnV0dG9uXG4gICAgICBjbGFzcz1cImJ0biBidG4tb3V0bGluZS1wcmltYXJ5IGZsb2F0LWxlZnRcIlxuICAgICAgKm5nSWY9XCJuZXdDdXN0b21GaWVsZCAmJiBuZXdDdXN0b21GaWVsZC5sYWJlbCAmJiBuZXdDdXN0b21GaWVsZC52YWx1ZVwiXG4gICAgICAoY2xpY2spPVwic2F2ZU5ld0F0dHJpYnV0ZShuZXdDdXN0b21GaWVsZClcIlxuICAgID5cbiAgICAgIHt7IHRoaXMubmV3Q3VzdG9tRmllbGRTYXZlTGFiZWwgfX1cbiAgICA8L2J1dHRvbj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -331,7 +331,7 @@ function SchemaCustomAttributesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
331
331
|
ɵɵelement(5, "i", 10);
|
|
332
332
|
ɵɵelementEnd();
|
|
333
333
|
ɵɵelementStart(6, "input", 11);
|
|
334
|
-
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_6_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_6_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; const ctx_r10 = ɵɵnextContext(); return ctx_r10.onDropAttr($event, attribute_r5); });
|
|
334
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_6_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_6_listener($event) { ɵɵrestoreView(_r8); const attribute_r5 = ctx.$implicit; const ctx_r10 = ɵɵnextContext(); return ctx_r10.onDropAttr($event, "value", attribute_r5); });
|
|
335
335
|
ɵɵelementEnd();
|
|
336
336
|
ɵɵelementEnd();
|
|
337
337
|
ɵɵelementEnd();
|
|
@@ -357,7 +357,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
357
357
|
ɵɵelementEnd();
|
|
358
358
|
ɵɵelementEnd();
|
|
359
359
|
ɵɵelementStart(7, "input", 11);
|
|
360
|
-
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r13 = ɵɵnextContext(); return ctx_r13.onDropAttr($event, ctx_r13.newCustomField
|
|
360
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_7_listener($event) { ɵɵrestoreView(_r12); const ctx_r13 = ɵɵnextContext(); return ctx_r13.onDropAttr($event, "label", ctx_r13.newCustomField); });
|
|
361
361
|
ɵɵelementEnd();
|
|
362
362
|
ɵɵelementEnd();
|
|
363
363
|
ɵɵelementEnd();
|
|
@@ -370,7 +370,7 @@ function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
370
370
|
ɵɵelementEnd();
|
|
371
371
|
ɵɵelementEnd();
|
|
372
372
|
ɵɵelementStart(14, "input", 11);
|
|
373
|
-
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r14 = ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r15 = ɵɵnextContext(); return ctx_r15.onDropAttr($event, ctx_r15.newCustomField
|
|
373
|
+
ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r14 = ɵɵnextContext(); return ctx_r14.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { ɵɵrestoreView(_r12); const ctx_r15 = ɵɵnextContext(); return ctx_r15.onDropAttr($event, "value", ctx_r15.newCustomField); });
|
|
374
374
|
ɵɵelementEnd();
|
|
375
375
|
ɵɵelementEnd();
|
|
376
376
|
ɵɵelementEnd();
|
|
@@ -446,11 +446,11 @@ class SchemaCustomAttributesComponent extends BaseSchemaComponent {
|
|
|
446
446
|
this.model.splice(attributeIndex, 1);
|
|
447
447
|
this.modelChange.emit(this.model);
|
|
448
448
|
}
|
|
449
|
-
onDropAttr($event,
|
|
450
|
-
if (!
|
|
451
|
-
|
|
449
|
+
onDropAttr($event, value, newCustomField) {
|
|
450
|
+
if (!newCustomField[value]) {
|
|
451
|
+
newCustomField[value] = '';
|
|
452
452
|
}
|
|
453
|
-
|
|
453
|
+
newCustomField[value] += `{{${$event.data}}}`;
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apipass-schemas.js","sources":["../../../projects/schemas/src/base-schema.component.ts","../../../projects/schemas/src/struct.utils.ts","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.html","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.ts","../../../projects/schemas/src/schema-form/schema-form.html","../../../projects/schemas/src/schema-form/schema-form.ts","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.html","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.ts","../../../projects/schemas/src/schema-form/schema-array/schema-array.html","../../../projects/schemas/src/schema-form/schema-array/schema-array.ts","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.html","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.ts","../../../projects/schemas/src/schema-form/schema-input/schema-input.html","../../../projects/schemas/src/schema-form/schema-input/schema-input.ts","../../../projects/schemas/src/schema-form/schema-object/schema-object.html","../../../projects/schemas/src/schema-form/schema-object/schema-object.ts","../../../projects/schemas/src/schema-validation-field.ts","../../../projects/schemas/src/schema-fields.service.ts","../../../projects/schemas/src/schema-form-render.html","../../../projects/schemas/src/schema-form-render.ts","../../../projects/schemas/src/type-script-compile/type-script-compile.base.ts","../../../projects/schemas/src/schema-form-render.module.ts","../../../projects/schemas/src/apipass-schemas.ts"],"sourcesContent":["import {Component, EventEmitter, Input, Output} from '@angular/core';\n\n@Component({\n template: ''\n})\nexport abstract class BaseSchemaComponent {\n\n @Input() model: any;\n @Input() public schema: any;\n @Output() modelChange: EventEmitter<any> = new EventEmitter<any>();\n\n getSchemaProperties(): any {\n return this.schema.properties instanceof Array ? this.schema.properties : [this.schema.properties];\n }\n\n public canRender(property: any): boolean {\n // tslint:disable-next-line:no-eval\n property.canRender = property?.conditionExpression ? eval(property.conditionExpression) : true;\n return property.canRender;\n }\n\n public onDrop(event: any, attr: any): string {\n const data = event.data;\n if (!attr) {\n attr = '';\n }\n attr += `{{${data}}}`;\n return attr;\n }\n\n}\n","export function onDropStruct(event: any, attr: any): any {\n const data = event.data;\n if (!attr) {\n attr = '';\n }\n attr += `{{${data}}}`;\n return attr;\n}\n","<div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ label }}</label>\n <div class=\"subsection-element\" *ngFor=\"let item of model; let index = index; trackBy:trackByIndex;\">\n <div class=\"subsection-item-title\">{{ removeLabel }} {{ index + 1 }}\n <i class=\"far fa-trash-alt\" (click)=\"remove(item)\"></i>\n </div>\n <div class=\"row\" *ngIf=\"item.mappingAttributes || item.mappingAttributes === ''\">\n <div class=\"col-md-8\">\n <label class=\"info-label\">Loop</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.loop\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.loop = this.onDrop($event, item.loop)\" />\n </div>\n <div class=\"col-md-4\">\n <label class=\"info-label\">Alias</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.alias\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.alias = this.onDrop($event, item.alias)\" />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"subsectionItem, context: {\n $implicit: {\n items: model, index: index,\n mappingAttributes: (item.mappingAttributes || item.mappingAttributes === '') ? item.mappingAttributes : item\n }\n }\"></ng-container>\n </div>\n </div>\n</div>\n<div class=\"row add-buttons\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-outline-primary float-left btn-personal-edit\" (click)=\"add()\">{{ this.addItemLabel }}</button>\n <button class=\"btn btn-outline-primary float-left btn-personal-edit ml-2\" *ngIf=\"showAddLoop\" (click)=\"addLoop()\">{{ this.addLoopLabel }}</button>\n </div>\n</div>\n","import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\n\n@Component({\n selector: 'array-session',\n templateUrl: 'array-session.html',\n styleUrls: ['array-session.scss']\n})\nexport class ArraySessionComponent extends BaseSchemaComponent {\n\n @Input() public label = '';\n @Input() public removeLabel = 'Remove';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n\n @Input() public showAddLoop = true;\n\n @Output() public onAdd: EventEmitter<any> = new EventEmitter<any>();\n @Output() public onAddLoop: EventEmitter<any> = new EventEmitter<any>();\n\n @ContentChild(TemplateRef, { read: TemplateRef })\n public subsectionItem: TemplateRef<any> | undefined;\n\n public add(): void {\n this.onAdd.next();\n }\n\n public addLoop(): void {\n this.onAddLoop.next();\n }\n\n public remove(item: any): any {\n const values = this.model;\n const index = values.indexOf(item);\n values.splice(index, 1);\n this.model = values;\n }\n\n public trackByIndex(index: number, obj: any): any {\n return index;\n }\n\n}\n","<div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <schema-input\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-input>\n <schema-object\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-object>\n <schema-array\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-array>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\nimport {onDropStruct} from '../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-form',\n templateUrl: 'schema-form.html',\n styleUrls: ['./schema-form.scss']\n})\nexport class SchemaFormComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"row custom-attributes\" *ngFor=\"let attribute of model; let i = index\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ attribute.label }}</label>\n <span (click)=\"removeCustomAttribute(i)\" class=\"customAttributeDeleteIcon\">\n <i class=\"far fa-trash-alt\" [matTooltip]=\"this.customAttributeRemoveLabel\"></i>\n </span>\n\n <input\n class=\"form-control\"\n [(ngModel)]=\"attribute.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, attribute)\"\n />\n </div>\n</div>\n<div *ngIf=\"newCustomField\" class=\"struct-custom-field\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldNameLabel }}<strong>*</strong></label>\n <input \n class=\"form-control\" \n [(ngModel)]=\"newCustomField.label\" \n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, newCustomField.label)\"\n />\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldValueLabel }}<strong>*</strong></label>\n <input\n class=\"form-control\"\n [(ngModel)]=\"newCustomField.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, newCustomField.value)\"\n />\n </div>\n </div>\n</div>\n<div class=\"row actions-buttons\">\n <div class=\"col-md-12 pull-right\">\n <button class=\"btn btn-outline-primary float-left\" *ngIf=\"!newCustomField\" (click)=\"newCustomField = {}\">\n {{ this.newCustomFieldAddLabel }}\n </button>\n <button\n class=\"btn btn-outline-danger float-left ml-2\"\n *ngIf=\"newCustomField\"\n (click)=\"newCustomField = null\"\n >\n {{ this.newCustomFieldCancelLabel }}\n </button>\n <button\n class=\"btn btn-outline-primary float-left\"\n *ngIf=\"newCustomField && newCustomField.label && newCustomField.value\"\n (click)=\"saveNewAttribute(newCustomField)\"\n >\n {{ this.newCustomFieldSaveLabel }}\n </button>\n </div>\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\n\n@Component({\n selector: 'schema-custom-attributes',\n templateUrl: 'schema-custom-attributes.html',\n styleUrls: ['./schema-custom-attributes.scss']\n})\nexport class SchemaCustomAttributesComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() onDropFunction: (() => any | undefined) | undefined;\n\n @Input() customAttributeRemoveLabel = 'Remove';\n @Input() newCustomFieldNameLabel = 'Name';\n @Input() newCustomFieldValueLabel = 'Value';\n @Input() newCustomFieldAddLabel = 'Add';\n @Input() newCustomFieldSaveLabel = 'Save';\n @Input() newCustomFieldCancelLabel = 'Cancel';\n\n @Output() onSaveAttribute: EventEmitter<any> = new EventEmitter<any>();\n @Output() onDropOnAttribute: EventEmitter<any> = new EventEmitter<any>();\n\n public newCustomField: any;\n\n ngAfterContentInit(): void {\n if (!this.model) {\n this.model = [];\n }\n }\n\n public saveNewAttribute(newCustomField: any): void {\n this.onSaveAttribute.emit(newCustomField);\n this.model.push(newCustomField);\n this.newCustomField = null;\n this.modelChange.emit(this.model);\n }\n\n public removeCustomAttribute(attributeIndex: any): void {\n this.model.splice(attributeIndex, 1);\n this.modelChange.emit(this.model);\n }\n\n public onDropAttr($event: any, attribute: any): void {\n if (!attribute) {\n attribute = '';\n }\n attribute += `{{${$event.data}}}`;\n }\n\n}\n","<div *ngIf=\"loaded && canRender(schema) && schema.type === 'array' && schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, {})\"\n (onAddLoop)=\"addArrayLoop(schema.id, {})\">\n <ng-template let-item>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop !== undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index].mappingAttributes\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop == undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id][item.index] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id][item.index].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n </ng-template>\n </array-session>\n</div>\n<div *ngIf=\"schema && canRender(schema) && schema.type === 'array' && !schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, '')\"\n (onAddLoop)=\"addArrayLoop(schema.id, '')\"\n >\n <ng-template let-item>\n <label class=\"info-label\" [htmlFor]=\"getId(index)+'-'+item.index\">{{ schema.title }}</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index].mappingAttributes\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index].mappingAttributes = this.onDrop($event, item.items[item.index].mappingAttributes)\"\n *ngIf=\"item.items[item.index].mappingAttributes || item.items[item.index].mappingAttributes === ''; else elseBlock\"\n [id]=\"getId(index)+'-'+item.index\"/>\n <ng-template #elseBlock>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index]\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index] = this.onDrop($event, item.items[item.index])\"\n [id]=\"getId(index)+'-'+item.index\"/>\n </ng-template>\n </ng-template>\n </array-session>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {onDropStruct} from '../../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-array',\n templateUrl: 'schema-array.html',\n styleUrls: ['./schema-array.scss']\n})\nexport class SchemaArrayComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'array' && this.model && !this.model[this.schema.id]) {\n this.model[this.schema.id] = [];\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n addArrayItem(id: any, param: any): void {\n this.model[id] = this.model[id] || [];\n if (this.schema.properties) {\n param = {};\n Object.keys(this.schema.properties).forEach(key => {\n const schemaProperty = this.schema.properties[key];\n if (schemaProperty.type === 'object') {\n param[schemaProperty.id] = {};\n } else if (schemaProperty.type === 'array') {\n param[schemaProperty.id] = [];\n }\n });\n }\n this.model[id].push(param);\n }\n\n addArrayLoop(id: any, mappingAttributes: any): void {\n this.model[id] = this.model[id] || [];\n this.model[id].push({loop: '', alias: '', mappingAttributes});\n }\n\n}\n\n","<div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"info-label bold\" [htmlFor]=\"inputId\">\n {{ label }}\n <small [ngClass]=\"{'has-error':state && !state.valid && state.errors}\" *ngIf=\"required\">{{this.requiredLabel}}</small>\n <span class=\"info-icon\" matTooltip=\"{{ tooltip }}\" *ngIf=\"tooltip\">\n <i class=\"far fa-question-circle\"></i>\n </span>\n </label>\n\n <!-- Input, textarea or select -->\n <ng-content></ng-content>\n</div>\n","import {Component, Input} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n selector: 'field-render',\n templateUrl: 'field-render.html',\n styleUrls: ['field-render.scss']\n})\nexport class FieldRenderComponent {\n\n @Input() requiredLabel = '(required)';\n @Input() label = '';\n @Input() inputId: string | undefined;\n @Input() tooltip: string | undefined;\n @Input() required = true;\n\n /**\n * Estado do input no formulário para validar quando\n * é necessário exibir as mensagens de erro.\n */\n @Input() state: FormControl | undefined;\n\n}\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'number-input',\n templateUrl: 'number-input.component.html'\n})\nexport class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.changeValue(value);\n }\n\n public changeValue($event: any): void {\n if ($event && !isNaN($event)) {\n this.model = Number($event);\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'boolean-input',\n templateUrl: 'boolean-input.component.html',\n})\nexport class BooleanInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.changeValue(value);\n }\n\n public changeValue($event: any): void {\n if ($event && ($event === 'true' || $event === 'false')) {\n this.model = $event === 'true';\n this.value = this.model;\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.value = this.model;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n","<div class=\"schema-input-container\">\n <input class=\"form-control\" [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" (ngModelChange)=\"onChange($event)\"\n dndDropzone (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","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'input-render',\n templateUrl: 'input-render.html',\n styleUrls: ['./input-render.scss']\n})\nexport class InputRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() public schema: any = {};\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n\n value: any;\n\n ngAfterContentInit(): void {\n if (this.schema?.type !== 'object' && this.schema?.type !== 'array') {\n if (!this.editing && this.schema.options) {\n const $event = this.schema.options.filter((item: any) => item.selected === true);\n if ($event[0]) {\n this.onChange($event[0].key);\n this.value = $event[0];\n }\n } else if (this.editing && this.schema.options && this.model) {\n const $event = this.schema.options.filter((item: any) => item.key === this.model);\n if ($event[0]) {\n this.onChange($event[0].key);\n this.value = $event[0];\n }\n } else {\n this.value = this.model;\n }\n }\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.onChange(value);\n }\n\n onChange($event: any): void {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n\n}\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\">\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\">\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","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\n\n@Component({\n selector: 'schema-input',\n templateUrl: 'schema-input.html',\n styleUrls: ['./schema-input.scss']\n})\nexport class SchemaInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"schema-object-container\" *ngIf=\"loaded && canRender(schema) && schema.type == 'object'\">\n <div class=\"schema-object-title\">{{schema.title}}</div>\n <schema-form\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model[schema.id]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from '../../struct.utils';\n\n@Component({\n selector: 'schema-object',\n templateUrl: 'schema-object.html',\n styleUrls: ['./schema-object.scss']\n})\nexport class SchemaObjectComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() public idPrefix: string | undefined;\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n @Input() index: number | undefined;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n loaded = false;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'object' && this.model) {\n this.model[this.schema.id] = this.model[this.schema.id] || {};\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n}\n","export type StructFieldType = Array<{\n title?: string,\n id: string,\n description?: string,\n propertyOrder?: number,\n minLength?: number,\n maxLength?: number\n}>;\n\nexport type ErrorsLabel = Array<{\n type: string,\n fieldName?: string,\n minLength?: number,\n maxLength?: number\n}>;\n\nexport class SchemaValidationField {\n\n emptyFields: StructFieldType;\n invalidMinLengthFields: StructFieldType;\n invalidMaxLengthFields: StructFieldType;\n validationErrorsLabel: ErrorsLabel | undefined;\n\n constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType) {\n this.emptyFields = emptyFields;\n this.invalidMinLengthFields = invalidMinLengthFields;\n this.invalidMaxLengthFields = invalidMaxLengthFields;\n }\n\n isValidSchemaFields(): boolean {\n return this.emptyFields?.length < 1 && this.invalidMinLengthFields?.length < 1 && this.invalidMaxLengthFields?.length < 1;\n }\n\n isInvalidSchemaFields(): boolean {\n return !this.isValidSchemaFields();\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {SchemaValidationField} from './schema-validation-field';\n\n@Injectable()\nexport class SchemaFieldsService {\n\n constructor() {\n }\n\n public async validateSchemaFields(propertiesRendered: Array<any>, model: any): Promise<SchemaValidationField> {\n\n if (!propertiesRendered) {\n return new SchemaValidationField([], [], []);\n }\n\n const emptyFields: any[] = [];\n const invalidMinLengthFields: any[] = [];\n const invalidMaxLengthFields: any[] = [];\n this.processProperties(propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n\n const structValidationField = new SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n structValidationField.validationErrorsLabel = await this.getErrorsStringArray(structValidationField);\n\n return structValidationField;\n\n }\n\n private processProperties(propertiesRendered: Array<any>,\n model: any, emptyFields: any[],\n invalidMinLengthFields: any[],\n invalidMaxLengthFields: any[],\n recursive?: boolean): void {\n for (const property of propertiesRendered) {\n if ((property.type === 'object' || property.type === 'array') && property.properties) {\n this.processProperties(property.properties, model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else if (property.type === 'array' && !property.properties) {\n const newProperty = {...property};\n newProperty.type = 'string';\n this.processProperties([newProperty], model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else {\n const validateModel = recursive ? model : model[property.id];\n if (property?.canRender && property?.minLength > 0\n && (validateModel === undefined || validateModel === '' || validateModel === null)) {\n emptyFields.push(property);\n } else if (property?.canRender && property?.minLength > 0 && (validateModel?.length < property.minLength)) {\n invalidMinLengthFields.push(property);\n } else if (property?.canRender && property?.maxLength > 0 && (validateModel?.length > property.maxLength)) {\n invalidMaxLengthFields.push(property);\n }\n }\n }\n }\n\n public async getErrorsStringArray(structValidation: SchemaValidationField):\n Promise<{ type: string, fieldName?: string, minLength?: number, maxLength?: number }[]> {\n if (!structValidation.isInvalidSchemaFields()) {\n return [];\n }\n const errors = [];\n for (const field of structValidation.emptyFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'emptyFields',\n fieldName\n });\n }\n for (const field of structValidation.invalidMinLengthFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'invalidMinLengthFields',\n fieldName,\n minLength: field.minLength\n });\n }\n for (const field of structValidation.invalidMaxLengthFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'invalidMaxLengthFields',\n fieldName,\n maxLength: field.maxLength\n });\n }\n return errors;\n }\n\n}\n","<div class=\"schema\" *ngIf=\"loaded\">\n <schema-form\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schemas]=\"schemas\"\n [editing]=\"this.editing\"></schema-form>\n\n <div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model && customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"model.customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from './base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from './struct.utils';\n\n@Component({\n selector: 'schema-form-render',\n templateUrl: 'schema-form-render.html',\n styleUrls: ['./schema-form-render.scss']\n})\nexport class SchemaFormRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","import {Injectable, Optional, SkipSelf} from '@angular/core';\nimport {FormControl, Validators} from '@angular/forms';\n\n@Injectable({providedIn: 'root'})\nexport class TypeScriptCompileBase {\n\n protected getTranslate(text: string): string {\n return text;\n }\n\n protected addItemToFormProperties(formProperties: any, item: any, key: string): void {\n this.translateProperties(item);\n if (item.minLength && item.minLength > 0) {\n formProperties[key] = new FormControl([null, [Validators.required]]);\n } else {\n formProperties[key] = new FormControl([null]);\n }\n }\n\n public compileProperties(input: any): {\n compiledProperties: any,\n formProperties: any,\n inputData: any\n } {\n const compiledProperties = [];\n const formProperties = {};\n let inputData: any = {};\n const inputToCompile = JSON.parse(JSON.stringify(input));\n this.translateProperties(inputToCompile);\n\n if (inputToCompile.properties) {\n if (inputToCompile.type === 'array') {\n inputData = [];\n }\n if (inputToCompile.type === 'object') {\n inputData = {};\n }\n inputToCompile.id = 'inputData';\n this.proccessProperties(inputToCompile, formProperties, 'inputData');\n this.translateProperties(inputToCompile);\n compiledProperties.push(inputToCompile);\n } else if (inputToCompile.type === 'array') {\n inputToCompile.id = 'inputData';\n inputData = [];\n this.addItemToFormProperties(formProperties, inputToCompile, 'inputData');\n compiledProperties.push(inputToCompile);\n } else if (!inputToCompile.type) {\n for (let index = 0; index < Object.keys(inputToCompile).length; index++) {\n const key = Object.keys(inputToCompile)[index];\n const item = inputToCompile[key];\n item.id = key;\n\n if (item.type === 'array') {\n inputData[item.id] = [];\n }\n\n if (item.type === 'object') {\n inputData[item.id] = {};\n }\n this.proccessProperties(item, formProperties, key);\n this.translateProperties(item);\n compiledProperties.push(item);\n }\n }\n\n compiledProperties.sort((a, b) => a.propertyOrder - b.propertyOrder);\n return {compiledProperties, formProperties, inputData};\n }\n\n protected translateProperties(input: any): void {\n if (input?.title) {\n input.title = this.getTranslate(input.title);\n }\n if (input?.description) {\n input.description = this.getTranslate(input.description);\n }\n if (input?.options instanceof Array) {\n input?.options.forEach((option: any) => option.value = this.getTranslate(option.value));\n }\n }\n\n protected proccessProperties(item: any, formProperties: {}, key: any): void {\n this.translateProperties(item);\n if (this.hasProperties(item)) {\n const arFieldsChild = [];\n for (let indexChild = 0; indexChild < Object.keys(item.properties).length; indexChild++) {\n const keyChild = Object.keys(item.properties)[indexChild];\n const itemChild = item.properties[keyChild];\n itemChild.id = keyChild;\n if (this.hasProperties(itemChild)) {\n this.proccessProperties(itemChild, formProperties, keyChild);\n arFieldsChild.push(itemChild);\n } else {\n this.addItemToFormProperties(formProperties, itemChild, keyChild);\n arFieldsChild.push(itemChild);\n }\n }\n item.properties = arFieldsChild;\n } else {\n this.addItemToFormProperties(formProperties, item, key);\n }\n }\n\n protected hasProperties(item: any): any {\n return item.type === 'object' || (item.type === 'array' && item.properties);\n }\n\n}\n\nexport function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(parentIntl: TypeScriptCompileBase): any {\n return parentIntl || new TypeScriptCompileBase();\n}\n\nexport const APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER: any = {\n provide: TypeScriptCompileBase,\n deps: [[new Optional(), new SkipSelf(), TypeScriptCompileBase]],\n useFactory: APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY,\n};\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {SchemaArrayComponent} from './schema-form/schema-array/schema-array';\nimport {SchemaInputComponent} from './schema-form/schema-input/schema-input';\nimport {FieldRenderComponent} from './schema-form/schema-input/field-render/field-render';\nimport {SchemaObjectComponent} from './schema-form/schema-object/schema-object';\nimport {ArraySessionComponent} from './schema-form/schema-array/array-session/array-session';\nimport {InputRenderComponent} from './schema-form/schema-input/input-render/input-render';\nimport {SchemaFieldsService} from './schema-fields.service';\nimport {SchemaFormComponent} from './schema-form/schema-form';\nimport {SchemaCustomAttributesComponent} from './schema-custom-attributes/schema-custom-attributes';\nimport {BooleanInputComponent} from './schema-form/schema-input/input-render/boolean-input/boolean-input.component';\nimport {NumberInputComponent} from './schema-form/schema-input/input-render/number-input/number-input.component';\nimport {DndModule} from 'ngx-drag-drop';\nimport {MatTooltipModule} from '@angular/material/tooltip';\nimport {SchemaFormRenderComponent} from './schema-form-render';\nimport {InputsModule} from '@apipass/inputs';\nimport {APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER} from './type-script-compile/type-script-compile.base';\n\n@NgModule({\n imports: [\n CommonModule,\n DndModule,\n FormsModule,\n MatTooltipModule,\n InputsModule\n ],\n declarations: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n exports: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n providers: [\n SchemaFieldsService,\n APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER\n ]\n})\nexport class SchemaFormRenderModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵlistener","i0.ɵɵadvance","i0.ɵɵproperty","i0.ɵɵelementContainer","i0.ɵɵtemplate","i0.ɵɵtextInterpolate2","i0.ɵɵtextInterpolate","i0.ɵɵelement","i0.ɵɵtextInterpolate1","i0.ɵɵpropertyInterpolate","i0.ɵɵprojection"],"m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C;gBACD,SAAS,EAAE;oBACT,mBAAmB;oBACnB,wCAAwC;iBACzC;aACF;;oBApBG,mBAAmB,i6BATnB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,yBAAyB;IACzB,mBAAmB;IACnB,+BAA+B;;ACvCnC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"apipass-schemas.js","sources":["../../../projects/schemas/src/base-schema.component.ts","../../../projects/schemas/src/struct.utils.ts","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.html","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.ts","../../../projects/schemas/src/schema-form/schema-form.html","../../../projects/schemas/src/schema-form/schema-form.ts","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.html","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.ts","../../../projects/schemas/src/schema-form/schema-array/schema-array.html","../../../projects/schemas/src/schema-form/schema-array/schema-array.ts","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.html","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.ts","../../../projects/schemas/src/schema-form/schema-input/schema-input.html","../../../projects/schemas/src/schema-form/schema-input/schema-input.ts","../../../projects/schemas/src/schema-form/schema-object/schema-object.html","../../../projects/schemas/src/schema-form/schema-object/schema-object.ts","../../../projects/schemas/src/schema-validation-field.ts","../../../projects/schemas/src/schema-fields.service.ts","../../../projects/schemas/src/schema-form-render.html","../../../projects/schemas/src/schema-form-render.ts","../../../projects/schemas/src/type-script-compile/type-script-compile.base.ts","../../../projects/schemas/src/schema-form-render.module.ts","../../../projects/schemas/src/apipass-schemas.ts"],"sourcesContent":["import {Component, EventEmitter, Input, Output} from '@angular/core';\n\n@Component({\n template: ''\n})\nexport abstract class BaseSchemaComponent {\n\n @Input() model: any;\n @Input() public schema: any;\n @Output() modelChange: EventEmitter<any> = new EventEmitter<any>();\n\n getSchemaProperties(): any {\n return this.schema.properties instanceof Array ? this.schema.properties : [this.schema.properties];\n }\n\n public canRender(property: any): boolean {\n // tslint:disable-next-line:no-eval\n property.canRender = property?.conditionExpression ? eval(property.conditionExpression) : true;\n return property.canRender;\n }\n\n public onDrop(event: any, attr: any): string {\n const data = event.data;\n if (!attr) {\n attr = '';\n }\n attr += `{{${data}}}`;\n return attr;\n }\n\n}\n","export function onDropStruct(event: any, attr: any): any {\n const data = event.data;\n if (!attr) {\n attr = '';\n }\n attr += `{{${data}}}`;\n return attr;\n}\n","<div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ label }}</label>\n <div class=\"subsection-element\" *ngFor=\"let item of model; let index = index; trackBy:trackByIndex;\">\n <div class=\"subsection-item-title\">{{ removeLabel }} {{ index + 1 }}\n <i class=\"far fa-trash-alt\" (click)=\"remove(item)\"></i>\n </div>\n <div class=\"row\" *ngIf=\"item.mappingAttributes || item.mappingAttributes === ''\">\n <div class=\"col-md-8\">\n <label class=\"info-label\">Loop</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.loop\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.loop = this.onDrop($event, item.loop)\" />\n </div>\n <div class=\"col-md-4\">\n <label class=\"info-label\">Alias</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.alias\" [ngModelOptions]=\"{standalone: true}\"\n dndDropzone (dndDrop)=\"item.alias = this.onDrop($event, item.alias)\" />\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"subsectionItem, context: {\n $implicit: {\n items: model, index: index,\n mappingAttributes: (item.mappingAttributes || item.mappingAttributes === '') ? item.mappingAttributes : item\n }\n }\"></ng-container>\n </div>\n </div>\n</div>\n<div class=\"row add-buttons\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-outline-primary float-left btn-personal-edit\" (click)=\"add()\">{{ this.addItemLabel }}</button>\n <button class=\"btn btn-outline-primary float-left btn-personal-edit ml-2\" *ngIf=\"showAddLoop\" (click)=\"addLoop()\">{{ this.addLoopLabel }}</button>\n </div>\n</div>\n","import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\n\n@Component({\n selector: 'array-session',\n templateUrl: 'array-session.html',\n styleUrls: ['array-session.scss']\n})\nexport class ArraySessionComponent extends BaseSchemaComponent {\n\n @Input() public label = '';\n @Input() public removeLabel = 'Remove';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n\n @Input() public showAddLoop = true;\n\n @Output() public onAdd: EventEmitter<any> = new EventEmitter<any>();\n @Output() public onAddLoop: EventEmitter<any> = new EventEmitter<any>();\n\n @ContentChild(TemplateRef, { read: TemplateRef })\n public subsectionItem: TemplateRef<any> | undefined;\n\n public add(): void {\n this.onAdd.next();\n }\n\n public addLoop(): void {\n this.onAddLoop.next();\n }\n\n public remove(item: any): any {\n const values = this.model;\n const index = values.indexOf(item);\n values.splice(index, 1);\n this.model = values;\n }\n\n public trackByIndex(index: number, obj: any): any {\n return index;\n }\n\n}\n","<div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <schema-input\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-input>\n <schema-object\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-object>\n <schema-array\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-array>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\nimport {onDropStruct} from '../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-form',\n templateUrl: 'schema-form.html',\n styleUrls: ['./schema-form.scss']\n})\nexport class SchemaFormComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"row custom-attributes\" *ngFor=\"let attribute of model; let i = index\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ attribute.label }}</label>\n <span (click)=\"removeCustomAttribute(i)\" class=\"customAttributeDeleteIcon\">\n <i class=\"far fa-trash-alt\" [matTooltip]=\"this.customAttributeRemoveLabel\"></i>\n </span>\n\n <input\n class=\"form-control\"\n [(ngModel)]=\"attribute.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, 'value', attribute)\"\n />\n </div>\n</div>\n<div *ngIf=\"newCustomField\" class=\"struct-custom-field\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldNameLabel }}<strong>*</strong></label>\n <input \n class=\"form-control\" \n [(ngModel)]=\"newCustomField.label\" \n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, 'label', newCustomField)\"\n />\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ this.newCustomFieldValueLabel }}<strong>*</strong></label>\n <input\n class=\"form-control\"\n [(ngModel)]=\"newCustomField.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDropAttr($event, 'value', newCustomField)\"\n />\n </div>\n </div>\n</div>\n<div class=\"row actions-buttons\">\n <div class=\"col-md-12 pull-right\">\n <button class=\"btn btn-outline-primary float-left\" *ngIf=\"!newCustomField\" (click)=\"newCustomField = {}\">\n {{ this.newCustomFieldAddLabel }}\n </button>\n <button\n class=\"btn btn-outline-danger float-left ml-2\"\n *ngIf=\"newCustomField\"\n (click)=\"newCustomField = null\"\n >\n {{ this.newCustomFieldCancelLabel }}\n </button>\n <button\n class=\"btn btn-outline-primary float-left\"\n *ngIf=\"newCustomField && newCustomField.label && newCustomField.value\"\n (click)=\"saveNewAttribute(newCustomField)\"\n >\n {{ this.newCustomFieldSaveLabel }}\n </button>\n </div>\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\n\n@Component({\n selector: 'schema-custom-attributes',\n templateUrl: 'schema-custom-attributes.html',\n styleUrls: ['./schema-custom-attributes.scss']\n})\nexport class SchemaCustomAttributesComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() onDropFunction: (() => any | undefined) | undefined;\n\n @Input() customAttributeRemoveLabel = 'Remove';\n @Input() newCustomFieldNameLabel = 'Name';\n @Input() newCustomFieldValueLabel = 'Value';\n @Input() newCustomFieldAddLabel = 'Add';\n @Input() newCustomFieldSaveLabel = 'Save';\n @Input() newCustomFieldCancelLabel = 'Cancel';\n\n @Output() onSaveAttribute: EventEmitter<any> = new EventEmitter<any>();\n @Output() onDropOnAttribute: EventEmitter<any> = new EventEmitter<any>();\n\n public newCustomField: any;\n\n ngAfterContentInit(): void {\n if (!this.model) {\n this.model = [];\n }\n }\n\n public saveNewAttribute(newCustomField: any): void {\n this.onSaveAttribute.emit(newCustomField);\n this.model.push(newCustomField);\n this.newCustomField = null;\n this.modelChange.emit(this.model);\n }\n\n public removeCustomAttribute(attributeIndex: any): void {\n this.model.splice(attributeIndex, 1);\n this.modelChange.emit(this.model);\n }\n\n public onDropAttr($event: any, value: any, newCustomField: any): void {\n if (!newCustomField[value]) {\n newCustomField[value] = '';\n }\n newCustomField[value] += `{{${$event.data}}}`;\n }\n}\n","<div *ngIf=\"loaded && canRender(schema) && schema.type === 'array' && schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, {})\"\n (onAddLoop)=\"addArrayLoop(schema.id, {})\">\n <ng-template let-item>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop !== undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index].mappingAttributes\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n <schema-form\n *ngIf=\"this.model[schema.id][item.index].loop == undefined\"\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id][item.index] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id][item.index].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n </ng-template>\n </array-session>\n</div>\n<div *ngIf=\"schema && canRender(schema) && schema.type === 'array' && !schema.properties\">\n <array-session\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, '')\"\n (onAddLoop)=\"addArrayLoop(schema.id, '')\"\n >\n <ng-template let-item>\n <label class=\"info-label\" [htmlFor]=\"getId(index)+'-'+item.index\">{{ schema.title }}</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index].mappingAttributes\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index].mappingAttributes = this.onDrop($event, item.items[item.index].mappingAttributes)\"\n *ngIf=\"item.items[item.index].mappingAttributes || item.items[item.index].mappingAttributes === ''; else elseBlock\"\n [id]=\"getId(index)+'-'+item.index\"/>\n <ng-template #elseBlock>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index]\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index] = this.onDrop($event, item.items[item.index])\"\n [id]=\"getId(index)+'-'+item.index\"/>\n </ng-template>\n </ng-template>\n </array-session>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {onDropStruct} from '../../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-array',\n templateUrl: 'schema-array.html',\n styleUrls: ['./schema-array.scss']\n})\nexport class SchemaArrayComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'array' && this.model && !this.model[this.schema.id]) {\n this.model[this.schema.id] = [];\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n addArrayItem(id: any, param: any): void {\n this.model[id] = this.model[id] || [];\n if (this.schema.properties) {\n param = {};\n Object.keys(this.schema.properties).forEach(key => {\n const schemaProperty = this.schema.properties[key];\n if (schemaProperty.type === 'object') {\n param[schemaProperty.id] = {};\n } else if (schemaProperty.type === 'array') {\n param[schemaProperty.id] = [];\n }\n });\n }\n this.model[id].push(param);\n }\n\n addArrayLoop(id: any, mappingAttributes: any): void {\n this.model[id] = this.model[id] || [];\n this.model[id].push({loop: '', alias: '', mappingAttributes});\n }\n\n}\n\n","<div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"info-label bold\" [htmlFor]=\"inputId\">\n {{ label }}\n <small [ngClass]=\"{'has-error':state && !state.valid && state.errors}\" *ngIf=\"required\">{{this.requiredLabel}}</small>\n <span class=\"info-icon\" matTooltip=\"{{ tooltip }}\" *ngIf=\"tooltip\">\n <i class=\"far fa-question-circle\"></i>\n </span>\n </label>\n\n <!-- Input, textarea or select -->\n <ng-content></ng-content>\n</div>\n","import {Component, Input} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n selector: 'field-render',\n templateUrl: 'field-render.html',\n styleUrls: ['field-render.scss']\n})\nexport class FieldRenderComponent {\n\n @Input() requiredLabel = '(required)';\n @Input() label = '';\n @Input() inputId: string | undefined;\n @Input() tooltip: string | undefined;\n @Input() required = true;\n\n /**\n * Estado do input no formulário para validar quando\n * é necessário exibir as mensagens de erro.\n */\n @Input() state: FormControl | undefined;\n\n}\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'number-input',\n templateUrl: 'number-input.component.html'\n})\nexport class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.changeValue(value);\n }\n\n public changeValue($event: any): void {\n if ($event && !isNaN($event)) {\n this.model = Number($event);\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'boolean-input',\n templateUrl: 'boolean-input.component.html',\n})\nexport class BooleanInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.changeValue(value);\n }\n\n public changeValue($event: any): void {\n if ($event && ($event === 'true' || $event === 'false')) {\n this.model = $event === 'true';\n this.value = this.model;\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.value = this.model;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n dndDropzone (dndDrop)=\"onDropCallBack($event, value)\"\n [maxlength]=\"maxLength\">\n","<div class=\"schema-input-container\">\n <input class=\"form-control\" [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" (ngModelChange)=\"onChange($event)\"\n dndDropzone (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","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'input-render',\n templateUrl: 'input-render.html',\n styleUrls: ['./input-render.scss']\n})\nexport class InputRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() public schema: any = {};\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n\n value: any;\n\n ngAfterContentInit(): void {\n if (this.schema?.type !== 'object' && this.schema?.type !== 'array') {\n if (!this.editing && this.schema.options) {\n const $event = this.schema.options.filter((item: any) => item.selected === true);\n if ($event[0]) {\n this.onChange($event[0].key);\n this.value = $event[0];\n }\n } else if (this.editing && this.schema.options && this.model) {\n const $event = this.schema.options.filter((item: any) => item.key === this.model);\n if ($event[0]) {\n this.onChange($event[0].key);\n this.value = $event[0];\n }\n } else {\n this.value = this.model;\n }\n }\n }\n\n onDropCallBack($event: DndDropEvent, value: any): void {\n this.value = value = super.onDrop($event, value);\n this.onChange(value);\n }\n\n onChange($event: any): void {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n\n}\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\">\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\">\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","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\n\n@Component({\n selector: 'schema-input',\n templateUrl: 'schema-input.html',\n styleUrls: ['./schema-input.scss']\n})\nexport class SchemaInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"schema-object-container\" *ngIf=\"loaded && canRender(schema) && schema.type == 'object'\">\n <div class=\"schema-object-title\">{{schema.title}}</div>\n <schema-form\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model[schema.id]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"this.model[schema.id].customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from '../../struct.utils';\n\n@Component({\n selector: 'schema-object',\n templateUrl: 'schema-object.html',\n styleUrls: ['./schema-object.scss']\n})\nexport class SchemaObjectComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() public idPrefix: string | undefined;\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n @Input() index: number | undefined;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n loaded = false;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'object' && this.model) {\n this.model[this.schema.id] = this.model[this.schema.id] || {};\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n}\n","export type StructFieldType = Array<{\n title?: string,\n id: string,\n description?: string,\n propertyOrder?: number,\n minLength?: number,\n maxLength?: number\n}>;\n\nexport type ErrorsLabel = Array<{\n type: string,\n fieldName?: string,\n minLength?: number,\n maxLength?: number\n}>;\n\nexport class SchemaValidationField {\n\n emptyFields: StructFieldType;\n invalidMinLengthFields: StructFieldType;\n invalidMaxLengthFields: StructFieldType;\n validationErrorsLabel: ErrorsLabel | undefined;\n\n constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType) {\n this.emptyFields = emptyFields;\n this.invalidMinLengthFields = invalidMinLengthFields;\n this.invalidMaxLengthFields = invalidMaxLengthFields;\n }\n\n isValidSchemaFields(): boolean {\n return this.emptyFields?.length < 1 && this.invalidMinLengthFields?.length < 1 && this.invalidMaxLengthFields?.length < 1;\n }\n\n isInvalidSchemaFields(): boolean {\n return !this.isValidSchemaFields();\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {SchemaValidationField} from './schema-validation-field';\n\n@Injectable()\nexport class SchemaFieldsService {\n\n constructor() {\n }\n\n public async validateSchemaFields(propertiesRendered: Array<any>, model: any): Promise<SchemaValidationField> {\n\n if (!propertiesRendered) {\n return new SchemaValidationField([], [], []);\n }\n\n const emptyFields: any[] = [];\n const invalidMinLengthFields: any[] = [];\n const invalidMaxLengthFields: any[] = [];\n this.processProperties(propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n\n const structValidationField = new SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n structValidationField.validationErrorsLabel = await this.getErrorsStringArray(structValidationField);\n\n return structValidationField;\n\n }\n\n private processProperties(propertiesRendered: Array<any>,\n model: any, emptyFields: any[],\n invalidMinLengthFields: any[],\n invalidMaxLengthFields: any[],\n recursive?: boolean): void {\n for (const property of propertiesRendered) {\n if ((property.type === 'object' || property.type === 'array') && property.properties) {\n this.processProperties(property.properties, model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else if (property.type === 'array' && !property.properties) {\n const newProperty = {...property};\n newProperty.type = 'string';\n this.processProperties([newProperty], model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else {\n const validateModel = recursive ? model : model[property.id];\n if (property?.canRender && property?.minLength > 0\n && (validateModel === undefined || validateModel === '' || validateModel === null)) {\n emptyFields.push(property);\n } else if (property?.canRender && property?.minLength > 0 && (validateModel?.length < property.minLength)) {\n invalidMinLengthFields.push(property);\n } else if (property?.canRender && property?.maxLength > 0 && (validateModel?.length > property.maxLength)) {\n invalidMaxLengthFields.push(property);\n }\n }\n }\n }\n\n public async getErrorsStringArray(structValidation: SchemaValidationField):\n Promise<{ type: string, fieldName?: string, minLength?: number, maxLength?: number }[]> {\n if (!structValidation.isInvalidSchemaFields()) {\n return [];\n }\n const errors = [];\n for (const field of structValidation.emptyFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'emptyFields',\n fieldName\n });\n }\n for (const field of structValidation.invalidMinLengthFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'invalidMinLengthFields',\n fieldName,\n minLength: field.minLength\n });\n }\n for (const field of structValidation.invalidMaxLengthFields) {\n const fieldName = field.title || field.id;\n errors.push({\n type: 'invalidMaxLengthFields',\n fieldName,\n maxLength: field.maxLength\n });\n }\n return errors;\n }\n\n}\n","<div class=\"schema\" *ngIf=\"loaded\">\n <schema-form\n [selectPlaceHolderLabel]=\"selectPlaceHolderLabel\"\n [selectSearchPlaceHolderLabel]=\"selectSearchPlaceHolderLabel\"\n [selectClearLabel]=\"selectClearLabel\"\n [selectNotFoundLabel]=\"selectNotFoundLabel\"\n [requiredLabel]=\"requiredLabel\"\n [addItemLabel]=\"addItemLabel\"\n [addLoopLabel]=\"addLoopLabel\"\n [additionalAttributesLabel]=\"additionalAttributesLabel\"\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schemas]=\"schemas\"\n [editing]=\"this.editing\"></schema-form>\n\n <div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model && customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ this.additionalAttributesLabel }}</label>\n <schema-custom-attributes\n [customAttributeRemoveLabel]=\"customAttributeRemoveLabel\"\n [newCustomFieldNameLabel]=\"newCustomFieldNameLabel\"\n [newCustomFieldValueLabel]=\"newCustomFieldValueLabel\"\n [newCustomFieldAddLabel]=\"newCustomFieldAddLabel\"\n [newCustomFieldSaveLabel]=\"newCustomFieldSaveLabel\"\n [newCustomFieldCancelLabel]=\"newCustomFieldCancelLabel\"\n [(model)]=\"model.customAttributes\"\n [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from './base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from './struct.utils';\n\n@Component({\n selector: 'schema-form-render',\n templateUrl: 'schema-form-render.html',\n styleUrls: ['./schema-form-render.scss']\n})\nexport class SchemaFormRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public requiredLabel = '(required)';\n @Input() public addItemLabel = 'Add Item';\n @Input() public addLoopLabel = 'Add Loop';\n @Input() public additionalAttributesLabel = 'Additional Fields';\n @Input() public customAttributeRemoveLabel = 'Remove';\n @Input() public newCustomFieldNameLabel = 'Name';\n @Input() public newCustomFieldValueLabel = 'Value';\n @Input() public newCustomFieldAddLabel = 'Add';\n @Input() public newCustomFieldSaveLabel = 'Save';\n @Input() public newCustomFieldCancelLabel = 'Cancel';\n @Input() public selectPlaceHolderLabel = 'Select Item';\n @Input() public selectSearchPlaceHolderLabel = 'Search';\n @Input() public selectClearLabel = 'Clear';\n @Input() public selectNotFoundLabel = 'No Items Found';\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","import {Injectable, Optional, SkipSelf} from '@angular/core';\nimport {FormControl, Validators} from '@angular/forms';\n\n@Injectable({providedIn: 'root'})\nexport class TypeScriptCompileBase {\n\n protected getTranslate(text: string): string {\n return text;\n }\n\n protected addItemToFormProperties(formProperties: any, item: any, key: string): void {\n this.translateProperties(item);\n if (item.minLength && item.minLength > 0) {\n formProperties[key] = new FormControl([null, [Validators.required]]);\n } else {\n formProperties[key] = new FormControl([null]);\n }\n }\n\n public compileProperties(input: any): {\n compiledProperties: any,\n formProperties: any,\n inputData: any\n } {\n const compiledProperties = [];\n const formProperties = {};\n let inputData: any = {};\n const inputToCompile = JSON.parse(JSON.stringify(input));\n this.translateProperties(inputToCompile);\n\n if (inputToCompile.properties) {\n if (inputToCompile.type === 'array') {\n inputData = [];\n }\n if (inputToCompile.type === 'object') {\n inputData = {};\n }\n inputToCompile.id = 'inputData';\n this.proccessProperties(inputToCompile, formProperties, 'inputData');\n this.translateProperties(inputToCompile);\n compiledProperties.push(inputToCompile);\n } else if (inputToCompile.type === 'array') {\n inputToCompile.id = 'inputData';\n inputData = [];\n this.addItemToFormProperties(formProperties, inputToCompile, 'inputData');\n compiledProperties.push(inputToCompile);\n } else if (!inputToCompile.type) {\n for (let index = 0; index < Object.keys(inputToCompile).length; index++) {\n const key = Object.keys(inputToCompile)[index];\n const item = inputToCompile[key];\n item.id = key;\n\n if (item.type === 'array') {\n inputData[item.id] = [];\n }\n\n if (item.type === 'object') {\n inputData[item.id] = {};\n }\n this.proccessProperties(item, formProperties, key);\n this.translateProperties(item);\n compiledProperties.push(item);\n }\n }\n\n compiledProperties.sort((a, b) => a.propertyOrder - b.propertyOrder);\n return {compiledProperties, formProperties, inputData};\n }\n\n protected translateProperties(input: any): void {\n if (input?.title) {\n input.title = this.getTranslate(input.title);\n }\n if (input?.description) {\n input.description = this.getTranslate(input.description);\n }\n if (input?.options instanceof Array) {\n input?.options.forEach((option: any) => option.value = this.getTranslate(option.value));\n }\n }\n\n protected proccessProperties(item: any, formProperties: {}, key: any): void {\n this.translateProperties(item);\n if (this.hasProperties(item)) {\n const arFieldsChild = [];\n for (let indexChild = 0; indexChild < Object.keys(item.properties).length; indexChild++) {\n const keyChild = Object.keys(item.properties)[indexChild];\n const itemChild = item.properties[keyChild];\n itemChild.id = keyChild;\n if (this.hasProperties(itemChild)) {\n this.proccessProperties(itemChild, formProperties, keyChild);\n arFieldsChild.push(itemChild);\n } else {\n this.addItemToFormProperties(formProperties, itemChild, keyChild);\n arFieldsChild.push(itemChild);\n }\n }\n item.properties = arFieldsChild;\n } else {\n this.addItemToFormProperties(formProperties, item, key);\n }\n }\n\n protected hasProperties(item: any): any {\n return item.type === 'object' || (item.type === 'array' && item.properties);\n }\n\n}\n\nexport function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(parentIntl: TypeScriptCompileBase): any {\n return parentIntl || new TypeScriptCompileBase();\n}\n\nexport const APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER: any = {\n provide: TypeScriptCompileBase,\n deps: [[new Optional(), new SkipSelf(), TypeScriptCompileBase]],\n useFactory: APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY,\n};\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {SchemaArrayComponent} from './schema-form/schema-array/schema-array';\nimport {SchemaInputComponent} from './schema-form/schema-input/schema-input';\nimport {FieldRenderComponent} from './schema-form/schema-input/field-render/field-render';\nimport {SchemaObjectComponent} from './schema-form/schema-object/schema-object';\nimport {ArraySessionComponent} from './schema-form/schema-array/array-session/array-session';\nimport {InputRenderComponent} from './schema-form/schema-input/input-render/input-render';\nimport {SchemaFieldsService} from './schema-fields.service';\nimport {SchemaFormComponent} from './schema-form/schema-form';\nimport {SchemaCustomAttributesComponent} from './schema-custom-attributes/schema-custom-attributes';\nimport {BooleanInputComponent} from './schema-form/schema-input/input-render/boolean-input/boolean-input.component';\nimport {NumberInputComponent} from './schema-form/schema-input/input-render/number-input/number-input.component';\nimport {DndModule} from 'ngx-drag-drop';\nimport {MatTooltipModule} from '@angular/material/tooltip';\nimport {SchemaFormRenderComponent} from './schema-form-render';\nimport {InputsModule} from '@apipass/inputs';\nimport {APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER} from './type-script-compile/type-script-compile.base';\n\n@NgModule({\n imports: [\n CommonModule,\n DndModule,\n FormsModule,\n MatTooltipModule,\n InputsModule\n ],\n declarations: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n exports: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n providers: [\n SchemaFieldsService,\n APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER\n ]\n})\nexport class SchemaFormRenderModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵlistener","i0.ɵɵadvance","i0.ɵɵproperty","i0.ɵɵelementContainer","i0.ɵɵtemplate","i0.ɵɵtextInterpolate2","i0.ɵɵtextInterpolate","i0.ɵɵelement","i0.ɵɵtextInterpolate1","i0.ɵɵpropertyInterpolate","i0.ɵɵprojection"],"mappings":";;;;;;;;;;MAKsB,mBAAmB;IAHzC;QAOY,gBAAW,GAAsB,IAAI,YAAY,EAAO,CAAC;KAqBpE;IAnBC,mBAAmB;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,YAAY,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KACpG;IAEM,SAAS,CAAC,QAAa;;QAE5B,QAAQ,CAAC,SAAS,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,mBAAmB,IAAG,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;QAC/F,OAAO,QAAQ,CAAC,SAAS,CAAC;KAC3B;IAEM,MAAM,CAAC,KAAU,EAAE,IAAS;QACjC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,EAAE;YACT,IAAI,GAAG,EAAE,CAAC;SACX;QACD,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC;QACtB,OAAO,IAAI,CAAC;KACb;;sFAvBmB,mBAAmB;qDAAnB,mBAAmB;+CAAnB,mBAAmB;cAHxC,SAAS;eAAC;gBACT,QAAQ,EAAE,EAAE;aACb;gBAGU,KAAK;kBAAb,KAAK;YACU,MAAM;kBAArB,KAAK;YACI,WAAW;kBAApB,MAAM;;;SCTO,YAAY,CAAC,KAAU,EAAE,IAAS;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,IAAI,CAAC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,qBAAqB;oBACrB,oBAAoB;oBACpB,oBAAoB;oBACpB,oBAAoB;oBACpB,qBAAqB;oBACrB,oBAAoB;oBACpB,oBAAoB;oBACpB,qBAAqB;oBACrB,yBAAyB;oBACzB,mBAAmB;oBACnB,+BAA+B;iBAChC;gBACD,OAAO,EAAE;oBACP,qBAAqB;oBACrB,oBAAoB;oBACpB,oBAAoB;oBACpB,oBAAoB;oBACpB,qBAAqB;oBACrB,oBAAoB;oBACpB,oBAAoB;oBACpB,qBAAqB;oBACrB,yBAAyB;oBACzB,mBAAmB;oBACnB,+BAA+B;iBAChC;gBACD,SAAS,EAAE;oBACT,mBAAmB;oBACnB,wCAAwC;iBACzC;aACF;;oBApBG,mBAAmB,i6BATnB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,yBAAyB;IACzB,mBAAmB;IACnB,+BAA+B;;ACvCnC;;;;;;"}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export declare class SchemaCustomAttributesComponent extends BaseSchemaComponent
|
|
|
15
15
|
ngAfterContentInit(): void;
|
|
16
16
|
saveNewAttribute(newCustomField: any): void;
|
|
17
17
|
removeCustomAttribute(attributeIndex: any): void;
|
|
18
|
-
onDropAttr($event: any,
|
|
18
|
+
onDropAttr($event: any, value: any, newCustomField: any): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDef<SchemaCustomAttributesComponent, never>;
|
|
20
20
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaCustomAttributesComponent, "schema-custom-attributes", never, { "onDropFunction": "onDropFunction"; "customAttributeRemoveLabel": "customAttributeRemoveLabel"; "newCustomFieldNameLabel": "newCustomFieldNameLabel"; "newCustomFieldValueLabel": "newCustomFieldValueLabel"; "newCustomFieldAddLabel": "newCustomFieldAddLabel"; "newCustomFieldSaveLabel": "newCustomFieldSaveLabel"; "newCustomFieldCancelLabel": "newCustomFieldCancelLabel"; }, { "onSaveAttribute": "onSaveAttribute"; "onDropOnAttribute": "onDropOnAttribute"; }, never, never>;
|
|
21
21
|
}
|