@apipass/schemas 0.2.5-alpha.9 → 0.2.6

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.
Files changed (31) hide show
  1. package/bundles/apipass-schemas.umd.js +192 -407
  2. package/bundles/apipass-schemas.umd.js.map +1 -1
  3. package/bundles/apipass-schemas.umd.min.js +2 -2
  4. package/bundles/apipass-schemas.umd.min.js.map +1 -1
  5. package/esm2015/schema-custom-attributes/schema-custom-attributes.js +41 -56
  6. package/esm2015/schema-fields.service.js +10 -18
  7. package/esm2015/schema-form/schema-array/array-session/array-session.js +37 -39
  8. package/esm2015/schema-form/schema-array/schema-array.js +31 -70
  9. package/esm2015/schema-form/schema-form.js +9 -51
  10. package/esm2015/schema-form/schema-input/field-render/field-render.js +19 -21
  11. package/esm2015/schema-form/schema-input/input-render/input-render.js +11 -18
  12. package/esm2015/schema-form/schema-input/schema-input.js +14 -27
  13. package/esm2015/schema-form/schema-object/schema-object.js +14 -54
  14. package/esm2015/schema-form-render.js +14 -54
  15. package/esm2015/schema-form-render.module.js +9 -4
  16. package/esm2015/schema-validation-field.js +1 -1
  17. package/fesm2015/apipass-schemas.js +187 -401
  18. package/fesm2015/apipass-schemas.js.map +1 -1
  19. package/package.json +1 -1
  20. package/schema-custom-attributes/schema-custom-attributes.d.ts +1 -7
  21. package/schema-fields.service.d.ts +4 -7
  22. package/schema-form/schema-array/array-session/array-session.d.ts +2 -4
  23. package/schema-form/schema-array/schema-array.d.ts +1 -15
  24. package/schema-form/schema-form.d.ts +1 -15
  25. package/schema-form/schema-input/field-render/field-render.d.ts +1 -2
  26. package/schema-form/schema-input/input-render/input-render.d.ts +1 -5
  27. package/schema-form/schema-input/schema-input.d.ts +1 -6
  28. package/schema-form/schema-object/schema-object.d.ts +1 -15
  29. package/schema-form-render.d.ts +1 -15
  30. package/schema-form-render.module.d.ts +3 -2
  31. package/schema-validation-field.d.ts +1 -7
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-drag-drop'), require('@angular/material/tooltip'), require('@apipass/inputs'), require('@angular/cdk/bidi'), require('@angular/cdk/scrolling')) :
3
- typeof define === 'function' && define.amd ? define('@apipass/schemas', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-drag-drop', '@angular/material/tooltip', '@apipass/inputs', '@angular/cdk/bidi', '@angular/cdk/scrolling'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.schemas = {}), global.ng.core, global.ng.common, global.ng.forms, global.i2, global.ng.material.tooltip, global.i7, global.ng.cdk.bidi, global.ng.cdk.scrolling));
5
- }(this, (function (exports, i0, i1, i3, i2, i4, i7, i5, i6) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ngx-translate/core'), require('ngx-drag-drop'), require('@angular/material/tooltip'), require('@apipass/inputs'), require('@angular/cdk/bidi'), require('@angular/cdk/scrolling')) :
3
+ typeof define === 'function' && define.amd ? define('@apipass/schemas', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ngx-translate/core', 'ngx-drag-drop', '@angular/material/tooltip', '@apipass/inputs', '@angular/cdk/bidi', '@angular/cdk/scrolling'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.schemas = {}), global.ng.core, global.ng.common, global.ng.forms, global.i7, global.i2, global.ng.material.tooltip, global.i8, global.ng.cdk.bidi, global.ng.cdk.scrolling));
5
+ }(this, (function (exports, i0, i1, i3, i7, i2, i4, i8, i5, i6) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -354,7 +354,7 @@
354
354
  }
355
355
 
356
356
  var _c0 = function () { return { standalone: true }; };
357
- function ArraySessionComponent_div_4_div_4_Template(rf, ctx) {
357
+ function ArraySessionComponent_div_5_div_5_Template(rf, ctx) {
358
358
  if (rf & 1) {
359
359
  var _r8_1 = i0.ɵɵgetCurrentView();
360
360
  i0.ɵɵelementStart(0, "div", 0);
@@ -363,7 +363,7 @@
363
363
  i0.ɵɵtext(3, "Loop");
364
364
  i0.ɵɵelementEnd();
365
365
  i0.ɵɵelementStart(4, "input", 14);
366
- i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_4_div_4_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.loop = $event; })("dndDrop", function ArraySessionComponent_div_4_div_4_Template_input_dndDrop_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; var ctx_r9 = i0.ɵɵnextContext(); return item_r2.loop = ctx_r9.onDrop($event, item_r2.loop); });
366
+ i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.loop = $event; })("dndDrop", function ArraySessionComponent_div_5_div_5_Template_input_dndDrop_4_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; var ctx_r9 = i0.ɵɵnextContext(); return item_r2.loop = ctx_r9.onDrop($event, item_r2.loop); });
367
367
  i0.ɵɵelementEnd();
368
368
  i0.ɵɵelementEnd();
369
369
  i0.ɵɵelementStart(5, "div", 15);
@@ -371,7 +371,7 @@
371
371
  i0.ɵɵtext(7, "Alias");
372
372
  i0.ɵɵelementEnd();
373
373
  i0.ɵɵelementStart(8, "input", 14);
374
- i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_4_div_4_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.alias = $event; })("dndDrop", function ArraySessionComponent_div_4_div_4_Template_input_dndDrop_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; var ctx_r13 = i0.ɵɵnextContext(); return item_r2.alias = ctx_r13.onDrop($event, item_r2.alias); });
374
+ i0.ɵɵlistener("ngModelChange", function ArraySessionComponent_div_5_div_5_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; return item_r2.alias = $event; })("dndDrop", function ArraySessionComponent_div_5_div_5_Template_input_dndDrop_8_listener($event) { i0.ɵɵrestoreView(_r8_1); var item_r2 = i0.ɵɵnextContext().$implicit; var ctx_r13 = i0.ɵɵnextContext(); return item_r2.alias = ctx_r13.onDrop($event, item_r2.alias); });
375
375
  i0.ɵɵelementEnd();
376
376
  i0.ɵɵelementEnd();
377
377
  i0.ɵɵelementEnd();
@@ -384,25 +384,26 @@
384
384
  i0.ɵɵproperty("ngModel", item_r2.alias)("ngModelOptions", i0.ɵɵpureFunction0(5, _c0));
385
385
  }
386
386
  }
387
- function ArraySessionComponent_div_4_ng_container_5_Template(rf, ctx) {
387
+ function ArraySessionComponent_div_5_ng_container_6_Template(rf, ctx) {
388
388
  if (rf & 1) {
389
389
  i0.ɵɵelementContainer(0);
390
390
  }
391
391
  }
392
392
  var _c1 = function (a0, a1, a2) { return { items: a0, index: a1, mappingAttributes: a2 }; };
393
393
  var _c2 = function (a0) { return { $implicit: a0 }; };
394
- function ArraySessionComponent_div_4_Template(rf, ctx) {
394
+ function ArraySessionComponent_div_5_Template(rf, ctx) {
395
395
  if (rf & 1) {
396
396
  var _r17_1 = i0.ɵɵgetCurrentView();
397
397
  i0.ɵɵelementStart(0, "div", 7);
398
398
  i0.ɵɵelementStart(1, "div", 8);
399
399
  i0.ɵɵtext(2);
400
- i0.ɵɵelementStart(3, "i", 9);
401
- i0.ɵɵlistener("click", function ArraySessionComponent_div_4_Template_i_click_3_listener() { i0.ɵɵrestoreView(_r17_1); var item_r2 = ctx.$implicit; var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.remove(item_r2); });
400
+ i0.ɵɵpipe(3, "translate");
401
+ i0.ɵɵelementStart(4, "i", 9);
402
+ i0.ɵɵlistener("click", function ArraySessionComponent_div_5_Template_i_click_4_listener() { i0.ɵɵrestoreView(_r17_1); var item_r2 = ctx.$implicit; var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.remove(item_r2); });
402
403
  i0.ɵɵelementEnd();
403
404
  i0.ɵɵelementEnd();
404
- i0.ɵɵtemplate(4, ArraySessionComponent_div_4_div_4_Template, 9, 6, "div", 10);
405
- i0.ɵɵtemplate(5, ArraySessionComponent_div_4_ng_container_5_Template, 1, 0, "ng-container", 11);
405
+ i0.ɵɵtemplate(5, ArraySessionComponent_div_5_div_5_Template, 9, 6, "div", 10);
406
+ i0.ɵɵtemplate(6, ArraySessionComponent_div_5_ng_container_6_Template, 1, 0, "ng-container", 11);
406
407
  i0.ɵɵelementEnd();
407
408
  }
408
409
  if (rf & 2) {
@@ -410,25 +411,25 @@
410
411
  var index_r3 = ctx.index;
411
412
  var ctx_r0 = i0.ɵɵnextContext();
412
413
  i0.ɵɵadvance(2);
413
- i0.ɵɵtextInterpolate2("", ctx_r0.removeLabel, " ", index_r3 + 1, " ");
414
- i0.ɵɵadvance(2);
414
+ i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(3, 5, ctx_r0.removeLabel), " ", index_r3 + 1, " ");
415
+ i0.ɵɵadvance(3);
415
416
  i0.ɵɵproperty("ngIf", item_r2.mappingAttributes || item_r2.mappingAttributes === "");
416
417
  i0.ɵɵadvance(1);
417
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c2, i0.ɵɵpureFunction3(5, _c1, ctx_r0.model, index_r3, item_r2.mappingAttributes || item_r2.mappingAttributes === "" ? item_r2.mappingAttributes : item_r2)));
418
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.subsectionItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(11, _c2, i0.ɵɵpureFunction3(7, _c1, ctx_r0.model, index_r3, item_r2.mappingAttributes || item_r2.mappingAttributes === "" ? item_r2.mappingAttributes : item_r2)));
418
419
  }
419
420
  }
420
- function ArraySessionComponent_button_9_Template(rf, ctx) {
421
+ function ArraySessionComponent_button_11_Template(rf, ctx) {
421
422
  if (rf & 1) {
422
423
  var _r19_1 = i0.ɵɵgetCurrentView();
423
424
  i0.ɵɵelementStart(0, "button", 16);
424
- i0.ɵɵlistener("click", function ArraySessionComponent_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.addLoop(); });
425
+ i0.ɵɵlistener("click", function ArraySessionComponent_button_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.addLoop(); });
425
426
  i0.ɵɵtext(1);
427
+ i0.ɵɵpipe(2, "translate");
426
428
  i0.ɵɵelementEnd();
427
429
  }
428
430
  if (rf & 2) {
429
- var ctx_r1 = i0.ɵɵnextContext();
430
431
  i0.ɵɵadvance(1);
431
- i0.ɵɵtextInterpolate(ctx_r1.addLoopLabel);
432
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "ADD_LOOP"));
432
433
  }
433
434
  }
434
435
  var ArraySessionComponent = /** @class */ (function (_super) {
@@ -436,10 +437,8 @@
436
437
  function ArraySessionComponent() {
437
438
  var _this = _super.apply(this, __spread(arguments)) || this;
438
439
  _this.label = '';
439
- _this.removeLabel = 'Remove';
440
- _this.addItemLabel = 'Add Item';
441
- _this.addLoopLabel = 'Add Loop';
442
440
  _this.showAddLoop = true;
441
+ _this.removeLabel = '';
443
442
  _this.onAdd = new i0.EventEmitter();
444
443
  _this.onAddLoop = new i0.EventEmitter();
445
444
  return _this;
@@ -470,37 +469,39 @@
470
469
  var _t;
471
470
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.subsectionItem = _t.first);
472
471
  }
473
- }, inputs: { label: "label", removeLabel: "removeLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", showAddLoop: "showAddLoop" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 5, consts: [[1, "row"], [1, "col-md-12"], [1, "info-label", "bold"], ["class", "subsection-element", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "row", "add-buttons"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", 3, "click"], ["class", "btn btn-outline-primary float-left btn-personal-edit ml-2", 3, "click", 4, "ngIf"], [1, "subsection-element"], [1, "subsection-item-title"], [1, "far", "fa-trash-alt", 3, "click"], ["class", "row", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "col-md-8"], [1, "info-label"], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "col-md-4"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", "ml-2", 3, "click"]], template: function ArraySessionComponent_Template(rf, ctx) {
472
+ }, inputs: { label: "label", showAddLoop: "showAddLoop", removeLabel: "removeLabel" }, outputs: { onAdd: "onAdd", onAddLoop: "onAddLoop" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 9, consts: [[1, "row"], [1, "col-md-12"], [1, "info-label", "bold"], ["class", "subsection-element", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "row", "add-buttons"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", 3, "click"], ["class", "btn btn-outline-primary float-left btn-personal-edit ml-2", 3, "click", 4, "ngIf"], [1, "subsection-element"], [1, "subsection-item-title"], [1, "far", "fa-trash-alt", 3, "click"], ["class", "row", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "col-md-8"], [1, "info-label"], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "col-md-4"], [1, "btn", "btn-outline-primary", "float-left", "btn-personal-edit", "ml-2", 3, "click"]], template: function ArraySessionComponent_Template(rf, ctx) {
474
473
  if (rf & 1) {
475
474
  i0.ɵɵelementStart(0, "div", 0);
476
475
  i0.ɵɵelementStart(1, "div", 1);
477
476
  i0.ɵɵelementStart(2, "label", 2);
478
477
  i0.ɵɵtext(3);
478
+ i0.ɵɵpipe(4, "translate");
479
479
  i0.ɵɵelementEnd();
480
- i0.ɵɵtemplate(4, ArraySessionComponent_div_4_Template, 6, 11, "div", 3);
480
+ i0.ɵɵtemplate(5, ArraySessionComponent_div_5_Template, 7, 13, "div", 3);
481
481
  i0.ɵɵelementEnd();
482
482
  i0.ɵɵelementEnd();
483
- i0.ɵɵelementStart(5, "div", 4);
484
- i0.ɵɵelementStart(6, "div", 1);
485
- i0.ɵɵelementStart(7, "button", 5);
486
- i0.ɵɵlistener("click", function ArraySessionComponent_Template_button_click_7_listener() { return ctx.add(); });
487
- i0.ɵɵtext(8);
483
+ i0.ɵɵelementStart(6, "div", 4);
484
+ i0.ɵɵelementStart(7, "div", 1);
485
+ i0.ɵɵelementStart(8, "button", 5);
486
+ i0.ɵɵlistener("click", function ArraySessionComponent_Template_button_click_8_listener() { return ctx.add(); });
487
+ i0.ɵɵtext(9);
488
+ i0.ɵɵpipe(10, "translate");
488
489
  i0.ɵɵelementEnd();
489
- i0.ɵɵtemplate(9, ArraySessionComponent_button_9_Template, 2, 1, "button", 6);
490
+ i0.ɵɵtemplate(11, ArraySessionComponent_button_11_Template, 3, 3, "button", 6);
490
491
  i0.ɵɵelementEnd();
491
492
  i0.ɵɵelementEnd();
492
493
  }
493
494
  if (rf & 2) {
494
495
  i0.ɵɵadvance(3);
495
- i0.ɵɵtextInterpolate(ctx.label);
496
- i0.ɵɵadvance(1);
496
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, ctx.label));
497
+ i0.ɵɵadvance(2);
497
498
  i0.ɵɵproperty("ngForOf", ctx.model)("ngForTrackBy", ctx.trackByIndex);
498
499
  i0.ɵɵadvance(4);
499
- i0.ɵɵtextInterpolate(ctx.addItemLabel);
500
- i0.ɵɵadvance(1);
500
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 7, "ADD_ITEM"));
501
+ i0.ɵɵadvance(2);
501
502
  i0.ɵɵproperty("ngIf", ctx.showAddLoop);
502
503
  }
503
- }, directives: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
504
+ }, directives: [i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"] });
504
505
  var ɵArraySessionComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ArraySessionComponent);
505
506
  /*@__PURE__*/ (function () {
506
507
  i0.ɵsetClassMetadata(ArraySessionComponent, [{
@@ -512,14 +513,10 @@
512
513
  }]
513
514
  }], null, { label: [{
514
515
  type: i0.Input
515
- }], removeLabel: [{
516
- type: i0.Input
517
- }], addItemLabel: [{
518
- type: i0.Input
519
- }], addLoopLabel: [{
520
- type: i0.Input
521
516
  }], showAddLoop: [{
522
517
  type: i0.Input
518
+ }], removeLabel: [{
519
+ type: i0.Input
523
520
  }], onAdd: [{
524
521
  type: i0.Output
525
522
  }], onAddLoop: [{
@@ -537,10 +534,10 @@
537
534
  i0.ɵɵelementStart(1, "schema-input", 2);
538
535
  i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_input_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.model = $event; });
539
536
  i0.ɵɵelementEnd();
540
- i0.ɵɵelementStart(2, "schema-object", 3);
537
+ i0.ɵɵelementStart(2, "schema-object", 2);
541
538
  i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_object_modelChange_2_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.model = $event; });
542
539
  i0.ɵɵelementEnd();
543
- i0.ɵɵelementStart(3, "schema-array", 3);
540
+ i0.ɵɵelementStart(3, "schema-array", 2);
544
541
  i0.ɵɵlistener("modelChange", function SchemaFormComponent_div_0_Template_schema_array_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.model = $event; });
545
542
  i0.ɵɵelementEnd();
546
543
  i0.ɵɵelementEnd();
@@ -550,31 +547,17 @@
550
547
  var i_r2 = ctx.index;
551
548
  var ctx_r0 = i0.ɵɵnextContext();
552
549
  i0.ɵɵadvance(1);
553
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("requiredLabel", ctx_r0.requiredLabel)("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
550
+ i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
554
551
  i0.ɵɵadvance(1);
555
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("requiredLabel", ctx_r0.requiredLabel)("addItemLabel", ctx_r0.addItemLabel)("addLoopLabel", ctx_r0.addLoopLabel)("additionalAttributesLabel", ctx_r0.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r0.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r0.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r0.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r0.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r0.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r0.newCustomFieldCancelLabel)("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
552
+ i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
556
553
  i0.ɵɵadvance(1);
557
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("requiredLabel", ctx_r0.requiredLabel)("addItemLabel", ctx_r0.addItemLabel)("addLoopLabel", ctx_r0.addLoopLabel)("additionalAttributesLabel", ctx_r0.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r0.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r0.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r0.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r0.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r0.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r0.newCustomFieldCancelLabel)("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
554
+ i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schema", schema_r1)("editing", ctx_r0.editing)("index", i_r2);
558
555
  }
559
556
  }
560
557
  var SchemaFormComponent = /** @class */ (function (_super) {
561
558
  __extends(SchemaFormComponent, _super);
562
559
  function SchemaFormComponent() {
563
560
  var _this = _super.apply(this, __spread(arguments)) || this;
564
- _this.requiredLabel = '(required)';
565
- _this.addItemLabel = 'Add Item';
566
- _this.addLoopLabel = 'Add Loop';
567
- _this.additionalAttributesLabel = 'Additional Fields';
568
- _this.customAttributeRemoveLabel = 'Remove';
569
- _this.newCustomFieldNameLabel = 'Name';
570
- _this.newCustomFieldValueLabel = 'Value';
571
- _this.newCustomFieldAddLabel = 'Add';
572
- _this.newCustomFieldSaveLabel = 'Save';
573
- _this.newCustomFieldCancelLabel = 'Cancel';
574
- _this.selectPlaceHolderLabel = 'Select Item';
575
- _this.selectSearchPlaceHolderLabel = 'Search';
576
- _this.selectClearLabel = 'Clear';
577
- _this.selectNotFoundLabel = 'No Items Found';
578
561
  _this.schemas = [];
579
562
  _this.customProperties = false;
580
563
  _this.editing = false;
@@ -593,9 +576,9 @@
593
576
  return SchemaFormComponent;
594
577
  }(BaseSchemaComponent));
595
578
  SchemaFormComponent.ɵfac = function SchemaFormComponent_Factory(t) { return ɵSchemaFormComponent_BaseFactory(t || SchemaFormComponent); };
596
- SchemaFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormComponent, selectors: [["schema-form"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "idPrefix", "model", "schema", "editing", "index", "modelChange"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schema", "editing", "index", "modelChange"]], template: function SchemaFormComponent_Template(rf, ctx) {
579
+ SchemaFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormComponent, selectors: [["schema-form"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], [3, "idPrefix", "model", "schema", "editing", "index", "modelChange"]], template: function SchemaFormComponent_Template(rf, ctx) {
597
580
  if (rf & 1) {
598
- i0.ɵɵtemplate(0, SchemaFormComponent_div_0_Template, 4, 48, "div", 0);
581
+ i0.ɵɵtemplate(0, SchemaFormComponent_div_0_Template, 4, 15, "div", 0);
599
582
  }
600
583
  if (rf & 2) {
601
584
  i0.ɵɵproperty("ngForOf", ctx.schemas);
@@ -610,35 +593,7 @@
610
593
  templateUrl: 'schema-form.html',
611
594
  styleUrls: ['./schema-form.scss']
612
595
  }]
613
- }], null, { requiredLabel: [{
614
- type: i0.Input
615
- }], addItemLabel: [{
616
- type: i0.Input
617
- }], addLoopLabel: [{
618
- type: i0.Input
619
- }], additionalAttributesLabel: [{
620
- type: i0.Input
621
- }], customAttributeRemoveLabel: [{
622
- type: i0.Input
623
- }], newCustomFieldNameLabel: [{
624
- type: i0.Input
625
- }], newCustomFieldValueLabel: [{
626
- type: i0.Input
627
- }], newCustomFieldAddLabel: [{
628
- type: i0.Input
629
- }], newCustomFieldSaveLabel: [{
630
- type: i0.Input
631
- }], newCustomFieldCancelLabel: [{
632
- type: i0.Input
633
- }], selectPlaceHolderLabel: [{
634
- type: i0.Input
635
- }], selectSearchPlaceHolderLabel: [{
636
- type: i0.Input
637
- }], selectClearLabel: [{
638
- type: i0.Input
639
- }], selectNotFoundLabel: [{
640
- type: i0.Input
641
- }], idPrefix: [{
596
+ }], null, { idPrefix: [{
642
597
  type: i0.Input
643
598
  }], schemas: [{
644
599
  type: i0.Input
@@ -663,22 +618,22 @@
663
618
  i0.ɵɵelementStart(4, "span", 9);
664
619
  i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_div_0_Template_span_click_4_listener() { i0.ɵɵrestoreView(_r8_1); var i_r6 = ctx.index; var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.removeCustomAttribute(i_r6); });
665
620
  i0.ɵɵelement(5, "i", 10);
621
+ i0.ɵɵpipe(6, "translate");
666
622
  i0.ɵɵelementEnd();
667
- i0.ɵɵelementStart(6, "input", 11);
668
- i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_6_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDropAttr($event, attribute_r5); });
623
+ i0.ɵɵelementStart(7, "input", 11);
624
+ i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_0_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; return attribute_r5.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_0_Template_input_dndDrop_7_listener($event) { i0.ɵɵrestoreView(_r8_1); var attribute_r5 = ctx.$implicit; var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onDropAttr($event, attribute_r5); });
669
625
  i0.ɵɵelementEnd();
670
626
  i0.ɵɵelementEnd();
671
627
  i0.ɵɵelementEnd();
672
628
  }
673
629
  if (rf & 2) {
674
630
  var attribute_r5 = ctx.$implicit;
675
- var ctx_r0 = i0.ɵɵnextContext();
676
631
  i0.ɵɵadvance(3);
677
632
  i0.ɵɵtextInterpolate(attribute_r5.label);
678
633
  i0.ɵɵadvance(2);
679
- i0.ɵɵproperty("matTooltip", ctx_r0.customAttributeRemoveLabel);
680
- i0.ɵɵadvance(1);
681
- i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(4, _c0$1));
634
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 4, "REMOVE"));
635
+ i0.ɵɵadvance(2);
636
+ i0.ɵɵproperty("ngModel", attribute_r5.value)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1));
682
637
  }
683
638
  }
684
639
  function SchemaCustomAttributesComponent_div_1_Template(rf, ctx) {
@@ -689,25 +644,27 @@
689
644
  i0.ɵɵelementStart(2, "div", 7);
690
645
  i0.ɵɵelementStart(3, "label", 8);
691
646
  i0.ɵɵtext(4);
692
- i0.ɵɵelementStart(5, "strong");
693
- i0.ɵɵtext(6, "*");
647
+ i0.ɵɵpipe(5, "translate");
648
+ i0.ɵɵelementStart(6, "strong");
649
+ i0.ɵɵtext(7, "*");
694
650
  i0.ɵɵelementEnd();
695
651
  i0.ɵɵelementEnd();
696
- i0.ɵɵelementStart(7, "input", 14);
697
- i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
652
+ i0.ɵɵelementStart(8, "input", 14);
653
+ i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.newCustomField.label = $event; });
698
654
  i0.ɵɵelementEnd();
699
655
  i0.ɵɵelementEnd();
700
656
  i0.ɵɵelementEnd();
701
- i0.ɵɵelementStart(8, "div", 13);
702
- i0.ɵɵelementStart(9, "div", 7);
703
- i0.ɵɵelementStart(10, "label", 8);
704
- i0.ɵɵtext(11);
705
- i0.ɵɵelementStart(12, "strong");
706
- i0.ɵɵtext(13, "*");
657
+ i0.ɵɵelementStart(9, "div", 13);
658
+ i0.ɵɵelementStart(10, "div", 7);
659
+ i0.ɵɵelementStart(11, "label", 8);
660
+ i0.ɵɵtext(12);
661
+ i0.ɵɵpipe(13, "translate");
662
+ i0.ɵɵelementStart(14, "strong");
663
+ i0.ɵɵtext(15, "*");
707
664
  i0.ɵɵelementEnd();
708
665
  i0.ɵɵelementEnd();
709
- i0.ɵɵelementStart(14, "input", 11);
710
- i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_14_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onDropAttr($event, ctx_r14.newCustomField); });
666
+ i0.ɵɵelementStart(16, "input", 11);
667
+ i0.ɵɵlistener("ngModelChange", function SchemaCustomAttributesComponent_div_1_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.newCustomField.value = $event; })("dndDrop", function SchemaCustomAttributesComponent_div_1_Template_input_dndDrop_16_listener($event) { i0.ɵɵrestoreView(_r12_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onDropAttr($event, ctx_r14.newCustomField); });
711
668
  i0.ɵɵelementEnd();
712
669
  i0.ɵɵelementEnd();
713
670
  i0.ɵɵelementEnd();
@@ -716,13 +673,13 @@
716
673
  if (rf & 2) {
717
674
  var ctx_r1 = i0.ɵɵnextContext();
718
675
  i0.ɵɵadvance(4);
719
- i0.ɵɵtextInterpolate(ctx_r1.newCustomFieldNameLabel);
720
- i0.ɵɵadvance(3);
721
- i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(6, _c0$1));
676
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, "STEP.NAME"));
722
677
  i0.ɵɵadvance(4);
723
- i0.ɵɵtextInterpolate(ctx_r1.newCustomFieldValueLabel);
724
- i0.ɵɵadvance(3);
725
- i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(7, _c0$1));
678
+ i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.label)("ngModelOptions", i0.ɵɵpureFunction0(10, _c0$1));
679
+ i0.ɵɵadvance(4);
680
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 8, "STEP.VALUE"));
681
+ i0.ɵɵadvance(4);
682
+ i0.ɵɵproperty("ngModel", ctx_r1.newCustomField.value)("ngModelOptions", i0.ɵɵpureFunction0(11, _c0$1));
726
683
  }
727
684
  }
728
685
  function SchemaCustomAttributesComponent_button_4_Template(rf, ctx) {
@@ -731,12 +688,12 @@
731
688
  i0.ɵɵelementStart(0, "button", 15);
732
689
  i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.newCustomField = {}; });
733
690
  i0.ɵɵtext(1);
691
+ i0.ɵɵpipe(2, "translate");
734
692
  i0.ɵɵelementEnd();
735
693
  }
736
694
  if (rf & 2) {
737
- var ctx_r2 = i0.ɵɵnextContext();
738
695
  i0.ɵɵadvance(1);
739
- i0.ɵɵtextInterpolate1(" ", ctx_r2.newCustomFieldAddLabel, " ");
696
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "ADD"), " ");
740
697
  }
741
698
  }
742
699
  function SchemaCustomAttributesComponent_button_5_Template(rf, ctx) {
@@ -745,12 +702,12 @@
745
702
  i0.ɵɵelementStart(0, "button", 16);
746
703
  i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.newCustomField = null; });
747
704
  i0.ɵɵtext(1);
705
+ i0.ɵɵpipe(2, "translate");
748
706
  i0.ɵɵelementEnd();
749
707
  }
750
708
  if (rf & 2) {
751
- var ctx_r3 = i0.ɵɵnextContext();
752
709
  i0.ɵɵadvance(1);
753
- i0.ɵɵtextInterpolate1(" ", ctx_r3.newCustomFieldCancelLabel, " ");
710
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "CANCEL"), " ");
754
711
  }
755
712
  }
756
713
  function SchemaCustomAttributesComponent_button_6_Template(rf, ctx) {
@@ -759,24 +716,18 @@
759
716
  i0.ɵɵelementStart(0, "button", 15);
760
717
  i0.ɵɵlistener("click", function SchemaCustomAttributesComponent_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(); return ctx_r19.saveNewAttribute(ctx_r19.newCustomField); });
761
718
  i0.ɵɵtext(1);
719
+ i0.ɵɵpipe(2, "translate");
762
720
  i0.ɵɵelementEnd();
763
721
  }
764
722
  if (rf & 2) {
765
- var ctx_r4 = i0.ɵɵnextContext();
766
723
  i0.ɵɵadvance(1);
767
- i0.ɵɵtextInterpolate1(" ", ctx_r4.newCustomFieldSaveLabel, " ");
724
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "SAVE"), " ");
768
725
  }
769
726
  }
770
727
  var SchemaCustomAttributesComponent = /** @class */ (function (_super) {
771
728
  __extends(SchemaCustomAttributesComponent, _super);
772
729
  function SchemaCustomAttributesComponent() {
773
730
  var _this = _super.apply(this, __spread(arguments)) || this;
774
- _this.customAttributeRemoveLabel = 'Remove';
775
- _this.newCustomFieldNameLabel = 'Name';
776
- _this.newCustomFieldValueLabel = 'Value';
777
- _this.newCustomFieldAddLabel = 'Add';
778
- _this.newCustomFieldSaveLabel = 'Save';
779
- _this.newCustomFieldCancelLabel = 'Cancel';
780
731
  _this.onSaveAttribute = new i0.EventEmitter();
781
732
  _this.onDropOnAttribute = new i0.EventEmitter();
782
733
  return _this;
@@ -805,15 +756,15 @@
805
756
  return SchemaCustomAttributesComponent;
806
757
  }(BaseSchemaComponent));
807
758
  SchemaCustomAttributesComponent.ɵfac = function SchemaCustomAttributesComponent_Factory(t) { return ɵSchemaCustomAttributesComponent_BaseFactory(t || SchemaCustomAttributesComponent); };
808
- SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) {
759
+ SchemaCustomAttributesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaCustomAttributesComponent, selectors: [["schema-custom-attributes"]], inputs: { onDropFunction: "onDropFunction" }, outputs: { onSaveAttribute: "onSaveAttribute", onDropOnAttribute: "onDropOnAttribute" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 5, consts: [["class", "row custom-attributes", 4, "ngFor", "ngForOf"], ["class", "struct-custom-field", 4, "ngIf"], [1, "row", "actions-buttons"], [1, "col-md-12", "pull-right"], ["class", "btn btn-outline-primary float-left", 3, "click", 4, "ngIf"], ["class", "btn btn-outline-danger float-left ml-2", 3, "click", 4, "ngIf"], [1, "row", "custom-attributes"], [1, "col-md-12"], [1, "info-label"], [1, "customAttributeDeleteIcon", 3, "click"], [1, "far", "fa-trash-alt", 3, "matTooltip"], ["dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange", "dndDrop"], [1, "struct-custom-field"], [1, "row"], [1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-outline-primary", "float-left", 3, "click"], [1, "btn", "btn-outline-danger", "float-left", "ml-2", 3, "click"]], template: function SchemaCustomAttributesComponent_Template(rf, ctx) {
809
760
  if (rf & 1) {
810
- i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 7, 5, "div", 0);
811
- i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 15, 8, "div", 1);
761
+ i0.ɵɵtemplate(0, SchemaCustomAttributesComponent_div_0_Template, 8, 7, "div", 0);
762
+ i0.ɵɵtemplate(1, SchemaCustomAttributesComponent_div_1_Template, 17, 12, "div", 1);
812
763
  i0.ɵɵelementStart(2, "div", 2);
813
764
  i0.ɵɵelementStart(3, "div", 3);
814
- i0.ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 2, 1, "button", 4);
815
- i0.ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 2, 1, "button", 5);
816
- i0.ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template, 2, 1, "button", 4);
765
+ i0.ɵɵtemplate(4, SchemaCustomAttributesComponent_button_4_Template, 3, 3, "button", 4);
766
+ i0.ɵɵtemplate(5, SchemaCustomAttributesComponent_button_5_Template, 3, 3, "button", 5);
767
+ i0.ɵɵtemplate(6, SchemaCustomAttributesComponent_button_6_Template, 3, 3, "button", 4);
817
768
  i0.ɵɵelementEnd();
818
769
  i0.ɵɵelementEnd();
819
770
  }
@@ -828,7 +779,7 @@
828
779
  i0.ɵɵadvance(1);
829
780
  i0.ɵɵproperty("ngIf", ctx.newCustomField && ctx.newCustomField.label && ctx.newCustomField.value);
830
781
  }
831
- }, directives: [i1.NgForOf, i1.NgIf, i4.MatTooltip, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
782
+ }, directives: [i1.NgForOf, i1.NgIf, i4.MatTooltip, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [".customAttributeDeleteIcon[_ngcontent-%COMP%]{color:red;cursor:pointer;font-size:16px;position:absolute;right:15px;top:4px}.customAttributeDeleteIcon[_ngcontent-%COMP%]:hover{color:#777}.struct-custom-field[_ngcontent-%COMP%]{background-color:#ececec;margin-top:16px;padding:8px 16px 16px}"] });
832
783
  var ɵSchemaCustomAttributesComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaCustomAttributesComponent);
833
784
  /*@__PURE__*/ (function () {
834
785
  i0.ɵsetClassMetadata(SchemaCustomAttributesComponent, [{
@@ -840,18 +791,6 @@
840
791
  }]
841
792
  }], null, { onDropFunction: [{
842
793
  type: i0.Input
843
- }], customAttributeRemoveLabel: [{
844
- type: i0.Input
845
- }], newCustomFieldNameLabel: [{
846
- type: i0.Input
847
- }], newCustomFieldValueLabel: [{
848
- type: i0.Input
849
- }], newCustomFieldAddLabel: [{
850
- type: i0.Input
851
- }], newCustomFieldSaveLabel: [{
852
- type: i0.Input
853
- }], newCustomFieldCancelLabel: [{
854
- type: i0.Input
855
794
  }], onSaveAttribute: [{
856
795
  type: i0.Output
857
796
  }], onDropOnAttribute: [{
@@ -869,7 +808,7 @@
869
808
  if (rf & 2) {
870
809
  var item_r3 = i0.ɵɵnextContext().$implicit;
871
810
  var ctx_r4 = i0.ɵɵnextContext(2);
872
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r4.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r4.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r4.selectClearLabel)("selectNotFoundLabel", ctx_r4.selectNotFoundLabel)("requiredLabel", ctx_r4.requiredLabel)("addItemLabel", ctx_r4.addItemLabel)("addLoopLabel", ctx_r4.addLoopLabel)("additionalAttributesLabel", ctx_r4.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r4.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r4.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r4.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r4.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r4.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r4.newCustomFieldCancelLabel)("idPrefix", ctx_r4.idPrefix)("model", ctx_r4.model[ctx_r4.schema.id][item_r3.index].mappingAttributes)("schemas", ctx_r4.getSchemaProperties())("editing", ctx_r4.editing);
811
+ i0.ɵɵproperty("idPrefix", ctx_r4.idPrefix)("model", ctx_r4.model[ctx_r4.schema.id][item_r3.index].mappingAttributes)("schemas", ctx_r4.getSchemaProperties())("editing", ctx_r4.editing);
873
812
  }
874
813
  }
875
814
  function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(rf, ctx) {
@@ -882,7 +821,7 @@
882
821
  if (rf & 2) {
883
822
  var item_r3 = i0.ɵɵnextContext().$implicit;
884
823
  var ctx_r5 = i0.ɵɵnextContext(2);
885
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r5.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r5.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r5.selectClearLabel)("selectNotFoundLabel", ctx_r5.selectNotFoundLabel)("requiredLabel", ctx_r5.requiredLabel)("addItemLabel", ctx_r5.addItemLabel)("addLoopLabel", ctx_r5.addLoopLabel)("additionalAttributesLabel", ctx_r5.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r5.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r5.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r5.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r5.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r5.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r5.newCustomFieldCancelLabel)("idPrefix", ctx_r5.idPrefix)("model", ctx_r5.model[ctx_r5.schema.id][item_r3.index])("schemas", ctx_r5.getSchemaProperties())("editing", ctx_r5.editing);
824
+ i0.ɵɵproperty("idPrefix", ctx_r5.idPrefix)("model", ctx_r5.model[ctx_r5.schema.id][item_r3.index])("schemas", ctx_r5.getSchemaProperties())("editing", ctx_r5.editing);
886
825
  }
887
826
  }
888
827
  function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(rf, ctx) {
@@ -892,9 +831,10 @@
892
831
  i0.ɵɵelementStart(1, "div", 6);
893
832
  i0.ɵɵelementStart(2, "label", 7);
894
833
  i0.ɵɵtext(3);
834
+ i0.ɵɵpipe(4, "translate");
895
835
  i0.ɵɵelementEnd();
896
- i0.ɵɵelementStart(4, "schema-custom-attributes", 8);
897
- i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_div_2_Template_schema_custom_attributes_modelChange_4_listener($event) { i0.ɵɵrestoreView(_r16_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.model[ctx_r15.schema.id][item_r3.index].customAttributes = $event; });
836
+ i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
837
+ i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_0_ng_template_2_div_2_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r16_1); var item_r3 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.model[ctx_r15.schema.id][item_r3.index].customAttributes = $event; });
898
838
  i0.ɵɵelementEnd();
899
839
  i0.ɵɵelementEnd();
900
840
  i0.ɵɵelementEnd();
@@ -903,16 +843,16 @@
903
843
  var item_r3 = i0.ɵɵnextContext().$implicit;
904
844
  var ctx_r6 = i0.ɵɵnextContext(2);
905
845
  i0.ɵɵadvance(3);
906
- i0.ɵɵtextInterpolate(ctx_r6.additionalAttributesLabel);
907
- i0.ɵɵadvance(1);
908
- i0.ɵɵproperty("customAttributeRemoveLabel", ctx_r6.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r6.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r6.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r6.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r6.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r6.newCustomFieldCancelLabel)("model", ctx_r6.model[ctx_r6.schema.id][item_r3.index].customAttributes)("onDropFunction", ctx_r6.onDrop);
846
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
847
+ i0.ɵɵadvance(2);
848
+ i0.ɵɵproperty("model", ctx_r6.model[ctx_r6.schema.id][item_r3.index].customAttributes)("onDropFunction", ctx_r6.onDrop);
909
849
  }
910
850
  }
911
851
  function SchemaArrayComponent_div_0_ng_template_2_Template(rf, ctx) {
912
852
  if (rf & 1) {
913
- i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1, 18, "schema-form", 2);
914
- i0.ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1, 18, "schema-form", 2);
915
- i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template, 5, 9, "div", 3);
853
+ i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template, 1, 4, "schema-form", 2);
854
+ i0.ɵɵtemplate(1, SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template, 1, 4, "schema-form", 2);
855
+ i0.ɵɵtemplate(2, SchemaArrayComponent_div_0_ng_template_2_div_2_Template, 6, 5, "div", 3);
916
856
  }
917
857
  if (rf & 2) {
918
858
  var item_r3 = ctx.$implicit;
@@ -937,15 +877,15 @@
937
877
  if (rf & 2) {
938
878
  var ctx_r0 = i0.ɵɵnextContext();
939
879
  i0.ɵɵadvance(1);
940
- i0.ɵɵproperty("addItemLabel", ctx_r0.addItemLabel)("addLoopLabel", ctx_r0.addLoopLabel)("label", ctx_r0.schema.title)("removeLabel", ctx_r0.schema.title)("model", ctx_r0.model[ctx_r0.schema.id])("showAddLoop", ctx_r0.schema.withoutLoop !== true);
880
+ i0.ɵɵproperty("label", ctx_r0.schema.title)("removeLabel", ctx_r0.schema.title)("model", ctx_r0.model[ctx_r0.schema.id])("showAddLoop", ctx_r0.schema.withoutLoop !== true);
941
881
  }
942
882
  }
943
883
  var _c0$2 = function () { return { standalone: true }; };
944
- function SchemaArrayComponent_div_1_ng_template_2_input_2_Template(rf, ctx) {
884
+ function SchemaArrayComponent_div_1_ng_template_2_input_3_Template(rf, ctx) {
945
885
  if (rf & 1) {
946
886
  var _r30_1 = i0.ɵɵgetCurrentView();
947
887
  i0.ɵɵelementStart(0, "input", 12);
948
- i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_input_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; return item_r24.items[item_r24.index].mappingAttributes = $event; })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_input_2_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r31 = i0.ɵɵnextContext(2); return item_r24.items[item_r24.index].mappingAttributes = ctx_r31.onDrop($event, item_r24.items[item_r24.index].mappingAttributes); });
888
+ i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; return item_r24.items[item_r24.index].mappingAttributes = $event; })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_input_3_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r30_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r31 = i0.ɵɵnextContext(2); return item_r24.items[item_r24.index].mappingAttributes = ctx_r31.onDrop($event, item_r24.items[item_r24.index].mappingAttributes); });
949
889
  i0.ɵɵelementEnd();
950
890
  }
951
891
  if (rf & 2) {
@@ -954,11 +894,11 @@
954
894
  i0.ɵɵproperty("ngModel", item_r24.items[item_r24.index].mappingAttributes)("ngModelOptions", i0.ɵɵpureFunction0(3, _c0$2))("id", ctx_r25.getId(ctx_r25.index) + "-" + item_r24.index);
955
895
  }
956
896
  }
957
- function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template(rf, ctx) {
897
+ function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template(rf, ctx) {
958
898
  if (rf & 1) {
959
899
  var _r36_1 = i0.ɵɵgetCurrentView();
960
900
  i0.ɵɵelementStart(0, "input", 12);
961
- i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; return (item_r24.items[item_r24.index] = $event); })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r37 = i0.ɵɵnextContext(2); return (item_r24.items[item_r24.index] = ctx_r37.onDrop($event, item_r24.items[item_r24.index])); });
901
+ i0.ɵɵlistener("ngModelChange", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; return (item_r24.items[item_r24.index] = $event); })("dndDrop", function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template_input_dndDrop_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var item_r24 = i0.ɵɵnextContext().$implicit; var ctx_r37 = i0.ɵɵnextContext(2); return (item_r24.items[item_r24.index] = ctx_r37.onDrop($event, item_r24.items[item_r24.index])); });
962
902
  i0.ɵɵelementEnd();
963
903
  }
964
904
  if (rf & 2) {
@@ -971,18 +911,19 @@
971
911
  if (rf & 1) {
972
912
  i0.ɵɵelementStart(0, "label", 9);
973
913
  i0.ɵɵtext(1);
914
+ i0.ɵɵpipe(2, "translate");
974
915
  i0.ɵɵelementEnd();
975
- i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_input_2_Template, 1, 4, "input", 10);
976
- i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template, 1, 4, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
916
+ i0.ɵɵtemplate(3, SchemaArrayComponent_div_1_ng_template_2_input_3_Template, 1, 4, "input", 10);
917
+ i0.ɵɵtemplate(4, SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template, 1, 4, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
977
918
  }
978
919
  if (rf & 2) {
979
920
  var item_r24 = ctx.$implicit;
980
- var _r26 = i0.ɵɵreference(4);
921
+ var _r26 = i0.ɵɵreference(5);
981
922
  var ctx_r23 = i0.ɵɵnextContext(2);
982
923
  i0.ɵɵproperty("htmlFor", ctx_r23.getId(ctx_r23.index) + "-" + item_r24.index);
983
924
  i0.ɵɵadvance(1);
984
- i0.ɵɵtextInterpolate(ctx_r23.schema.title);
985
- i0.ɵɵadvance(1);
925
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 4, ctx_r23.schema.title));
926
+ i0.ɵɵadvance(2);
986
927
  i0.ɵɵproperty("ngIf", item_r24.items[item_r24.index].mappingAttributes || item_r24.items[item_r24.index].mappingAttributes === "")("ngIfElse", _r26);
987
928
  }
988
929
  }
@@ -992,34 +933,20 @@
992
933
  i0.ɵɵelementStart(0, "div");
993
934
  i0.ɵɵelementStart(1, "array-session", 1);
994
935
  i0.ɵɵlistener("modelChange", function SchemaArrayComponent_div_1_Template_array_session_modelChange_1_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(); return (ctx_r40.model[ctx_r40.schema.id] = $event); })("onAdd", function SchemaArrayComponent_div_1_Template_array_session_onAdd_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.addArrayItem(ctx_r42.schema.id, ""); })("onAddLoop", function SchemaArrayComponent_div_1_Template_array_session_onAddLoop_1_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.addArrayLoop(ctx_r43.schema.id, ""); });
995
- i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template, 5, 4, "ng-template");
936
+ i0.ɵɵtemplate(2, SchemaArrayComponent_div_1_ng_template_2_Template, 6, 6, "ng-template");
996
937
  i0.ɵɵelementEnd();
997
938
  i0.ɵɵelementEnd();
998
939
  }
999
940
  if (rf & 2) {
1000
941
  var ctx_r1 = i0.ɵɵnextContext();
1001
942
  i0.ɵɵadvance(1);
1002
- i0.ɵɵproperty("addItemLabel", ctx_r1.addItemLabel)("addLoopLabel", ctx_r1.addLoopLabel)("label", ctx_r1.schema.title)("removeLabel", ctx_r1.schema.title)("model", ctx_r1.model[ctx_r1.schema.id])("showAddLoop", ctx_r1.schema.withoutLoop !== true);
943
+ i0.ɵɵproperty("label", ctx_r1.schema.title)("removeLabel", ctx_r1.schema.title)("model", ctx_r1.model[ctx_r1.schema.id])("showAddLoop", ctx_r1.schema.withoutLoop !== true);
1003
944
  }
1004
945
  }
1005
946
  var SchemaArrayComponent = /** @class */ (function (_super) {
1006
947
  __extends(SchemaArrayComponent, _super);
1007
948
  function SchemaArrayComponent() {
1008
949
  var _this = _super.apply(this, __spread(arguments)) || this;
1009
- _this.requiredLabel = '(required)';
1010
- _this.addItemLabel = 'Add Item';
1011
- _this.addLoopLabel = 'Add Loop';
1012
- _this.additionalAttributesLabel = 'Additional Fields';
1013
- _this.customAttributeRemoveLabel = 'Remove';
1014
- _this.newCustomFieldNameLabel = 'Name';
1015
- _this.newCustomFieldValueLabel = 'Value';
1016
- _this.newCustomFieldAddLabel = 'Add';
1017
- _this.newCustomFieldSaveLabel = 'Save';
1018
- _this.newCustomFieldCancelLabel = 'Cancel';
1019
- _this.selectPlaceHolderLabel = 'Select Item';
1020
- _this.selectSearchPlaceHolderLabel = 'Search';
1021
- _this.selectClearLabel = 'Clear';
1022
- _this.selectNotFoundLabel = 'No Items Found';
1023
950
  _this.editing = false;
1024
951
  return _this;
1025
952
  }
@@ -1060,17 +987,17 @@
1060
987
  return SchemaArrayComponent;
1061
988
  }(BaseSchemaComponent));
1062
989
  SchemaArrayComponent.ɵfac = function SchemaArrayComponent_Factory(t) { return ɵSchemaArrayComponent_BaseFactory(t || SchemaArrayComponent); };
1063
- SchemaArrayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "addItemLabel", "addLoopLabel", "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "model", "onDropFunction", "modelChange"], [1, "info-label", 3, "htmlFor"], ["class", "form-control", "type", "text", "dndDropzone", "", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop"]], template: function SchemaArrayComponent_Template(rf, ctx) {
990
+ SchemaArrayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaArrayComponent, selectors: [["schema-array"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "label", "removeLabel", "model", "showAddLoop", "modelChange", "onAdd", "onAddLoop"], [3, "idPrefix", "model", "schemas", "editing", "modelChange", 4, "ngIf"], ["class", "row struct-custom-properties", 4, "ngIf"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"], [1, "info-label", 3, "htmlFor"], ["class", "form-control", "type", "text", "dndDropzone", "", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["type", "text", "dndDropzone", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "id", "ngModelChange", "dndDrop"]], template: function SchemaArrayComponent_Template(rf, ctx) {
1064
991
  if (rf & 1) {
1065
- i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3, 6, "div", 0);
1066
- i0.ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3, 6, "div", 0);
992
+ i0.ɵɵtemplate(0, SchemaArrayComponent_div_0_Template, 3, 4, "div", 0);
993
+ i0.ɵɵtemplate(1, SchemaArrayComponent_div_1_Template, 3, 4, "div", 0);
1067
994
  }
1068
995
  if (rf & 2) {
1069
996
  i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && ctx.schema.properties);
1070
997
  i0.ɵɵadvance(1);
1071
998
  i0.ɵɵproperty("ngIf", ctx.schema && ctx.canRender(ctx.schema) && ctx.schema.type === "array" && !ctx.schema.properties);
1072
999
  }
1073
- }, directives: [i1.NgIf, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], styles: [""] });
1000
+ }, directives: [i1.NgIf, ArraySessionComponent, SchemaFormComponent, SchemaCustomAttributesComponent, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel], pipes: [i7.TranslatePipe], styles: [""] });
1074
1001
  var ɵSchemaArrayComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaArrayComponent);
1075
1002
  /*@__PURE__*/ (function () {
1076
1003
  i0.ɵsetClassMetadata(SchemaArrayComponent, [{
@@ -1080,35 +1007,7 @@
1080
1007
  templateUrl: 'schema-array.html',
1081
1008
  styleUrls: ['./schema-array.scss']
1082
1009
  }]
1083
- }], null, { requiredLabel: [{
1084
- type: i0.Input
1085
- }], addItemLabel: [{
1086
- type: i0.Input
1087
- }], addLoopLabel: [{
1088
- type: i0.Input
1089
- }], additionalAttributesLabel: [{
1090
- type: i0.Input
1091
- }], customAttributeRemoveLabel: [{
1092
- type: i0.Input
1093
- }], newCustomFieldNameLabel: [{
1094
- type: i0.Input
1095
- }], newCustomFieldValueLabel: [{
1096
- type: i0.Input
1097
- }], newCustomFieldAddLabel: [{
1098
- type: i0.Input
1099
- }], newCustomFieldSaveLabel: [{
1100
- type: i0.Input
1101
- }], newCustomFieldCancelLabel: [{
1102
- type: i0.Input
1103
- }], selectPlaceHolderLabel: [{
1104
- type: i0.Input
1105
- }], selectSearchPlaceHolderLabel: [{
1106
- type: i0.Input
1107
- }], selectClearLabel: [{
1108
- type: i0.Input
1109
- }], selectNotFoundLabel: [{
1110
- type: i0.Input
1111
- }], idPrefix: [{
1010
+ }], null, { idPrefix: [{
1112
1011
  type: i0.Input
1113
1012
  }], schema: [{
1114
1013
  type: i0.Input
@@ -1120,64 +1019,63 @@
1120
1019
  })();
1121
1020
 
1122
1021
  var _c0$3 = function (a0) { return { "has-error": a0 }; };
1123
- function FieldRenderComponent_small_3_Template(rf, ctx) {
1022
+ function FieldRenderComponent_small_4_Template(rf, ctx) {
1124
1023
  if (rf & 1) {
1125
1024
  i0.ɵɵelementStart(0, "small", 0);
1126
- i0.ɵɵtext(1);
1025
+ i0.ɵɵtext(1, "(obrigat\u00F3rio)");
1127
1026
  i0.ɵɵelementEnd();
1128
1027
  }
1129
1028
  if (rf & 2) {
1130
1029
  var ctx_r0 = i0.ɵɵnextContext();
1131
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$3, ctx_r0.state && !ctx_r0.state.valid && ctx_r0.state.errors));
1132
- i0.ɵɵadvance(1);
1133
- i0.ɵɵtextInterpolate(ctx_r0.requiredLabel);
1030
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$3, ctx_r0.state && !ctx_r0.state.valid && ctx_r0.state.errors));
1134
1031
  }
1135
1032
  }
1136
- function FieldRenderComponent_span_4_Template(rf, ctx) {
1033
+ function FieldRenderComponent_span_5_Template(rf, ctx) {
1137
1034
  if (rf & 1) {
1138
1035
  i0.ɵɵelementStart(0, "span", 4);
1139
- i0.ɵɵelement(1, "i", 5);
1036
+ i0.ɵɵpipe(1, "translate");
1037
+ i0.ɵɵelement(2, "i", 5);
1140
1038
  i0.ɵɵelementEnd();
1141
1039
  }
1142
1040
  if (rf & 2) {
1143
1041
  var ctx_r1 = i0.ɵɵnextContext();
1144
- i0.ɵɵpropertyInterpolate("matTooltip", ctx_r1.tooltip);
1042
+ i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r1.tooltip));
1145
1043
  }
1146
1044
  }
1147
1045
  var _c1$1 = ["*"];
1148
1046
  var FieldRenderComponent = /** @class */ (function () {
1149
1047
  function FieldRenderComponent() {
1150
- this.requiredLabel = '(required)';
1151
1048
  this.label = '';
1152
1049
  this.required = true;
1153
1050
  }
1154
1051
  return FieldRenderComponent;
1155
1052
  }());
1156
1053
  FieldRenderComponent.ɵfac = function FieldRenderComponent_Factory(t) { return new (t || FieldRenderComponent)(); };
1157
- FieldRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: { requiredLabel: "requiredLabel", label: "label", inputId: "inputId", tooltip: "tooltip", required: "required", state: "state" }, ngContentSelectors: _c1$1, decls: 6, vars: 7, consts: [[3, "ngClass"], [1, "info-label", "bold", 3, "htmlFor"], [3, "ngClass", 4, "ngIf"], ["class", "info-icon", 3, "matTooltip", 4, "ngIf"], [1, "info-icon", 3, "matTooltip"], [1, "far", "fa-question-circle"]], template: function FieldRenderComponent_Template(rf, ctx) {
1054
+ FieldRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldRenderComponent, selectors: [["field-render"]], inputs: { label: "label", inputId: "inputId", tooltip: "tooltip", required: "required", state: "state" }, ngContentSelectors: _c1$1, decls: 7, vars: 9, consts: [[3, "ngClass"], [1, "info-label", "bold", 3, "htmlFor"], [3, "ngClass", 4, "ngIf"], ["class", "info-icon", 3, "matTooltip", 4, "ngIf"], [1, "info-icon", 3, "matTooltip"], [1, "far", "fa-question-circle"]], template: function FieldRenderComponent_Template(rf, ctx) {
1158
1055
  if (rf & 1) {
1159
1056
  i0.ɵɵprojectionDef();
1160
1057
  i0.ɵɵelementStart(0, "div", 0);
1161
1058
  i0.ɵɵelementStart(1, "label", 1);
1162
1059
  i0.ɵɵtext(2);
1163
- i0.ɵɵtemplate(3, FieldRenderComponent_small_3_Template, 2, 4, "small", 2);
1164
- i0.ɵɵtemplate(4, FieldRenderComponent_span_4_Template, 2, 1, "span", 3);
1060
+ i0.ɵɵpipe(3, "translate");
1061
+ i0.ɵɵtemplate(4, FieldRenderComponent_small_4_Template, 2, 3, "small", 2);
1062
+ i0.ɵɵtemplate(5, FieldRenderComponent_span_5_Template, 3, 3, "span", 3);
1165
1063
  i0.ɵɵelementEnd();
1166
- i0.ɵɵprojection(5);
1064
+ i0.ɵɵprojection(6);
1167
1065
  i0.ɵɵelementEnd();
1168
1066
  }
1169
1067
  if (rf & 2) {
1170
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$3, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
1068
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$3, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
1171
1069
  i0.ɵɵadvance(1);
1172
1070
  i0.ɵɵproperty("htmlFor", ctx.inputId);
1173
1071
  i0.ɵɵadvance(1);
1174
- i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
1175
- i0.ɵɵadvance(1);
1072
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, ctx.label), " ");
1073
+ i0.ɵɵadvance(2);
1176
1074
  i0.ɵɵproperty("ngIf", ctx.required);
1177
1075
  i0.ɵɵadvance(1);
1178
1076
  i0.ɵɵproperty("ngIf", ctx.tooltip);
1179
1077
  }
1180
- }, directives: [i1.NgClass, i1.NgIf, i4.MatTooltip], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
1078
+ }, directives: [i1.NgClass, i1.NgIf, i4.MatTooltip], pipes: [i7.TranslatePipe], styles: [".info-icon[_ngcontent-%COMP%]{color:#222d57;float:right;font-size:13px;margin-left:4px}"] });
1181
1079
  /*@__PURE__*/ (function () {
1182
1080
  i0.ɵsetClassMetadata(FieldRenderComponent, [{
1183
1081
  type: i0.Component,
@@ -1186,9 +1084,7 @@
1186
1084
  templateUrl: 'field-render.html',
1187
1085
  styleUrls: ['field-render.scss']
1188
1086
  }]
1189
- }], null, { requiredLabel: [{
1190
- type: i0.Input
1191
- }], label: [{
1087
+ }], null, { label: [{
1192
1088
  type: i0.Input
1193
1089
  }], inputId: [{
1194
1090
  type: i0.Input
@@ -1328,11 +1224,15 @@
1328
1224
  var _r9_1 = i0.ɵɵgetCurrentView();
1329
1225
  i0.ɵɵelementStart(0, "select-box", 5);
1330
1226
  i0.ɵɵlistener("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9_1); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.value = $event; })("ngModelChange", function InputRenderComponent_select_box_2_Template_select_box_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onChange($event.key); });
1227
+ i0.ɵɵpipe(1, "translate");
1228
+ i0.ɵɵpipe(2, "translate");
1229
+ i0.ɵɵpipe(3, "translate");
1230
+ i0.ɵɵpipe(4, "translate");
1331
1231
  i0.ɵɵelementEnd();
1332
1232
  }
1333
1233
  if (rf & 2) {
1334
1234
  var ctx_r1 = i0.ɵɵnextContext();
1335
- i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(12, _c0$6))("placeholder", ctx_r1.schema.description || ctx_r1.selectPlaceHolderLabel)("searchPlaceHolder", ctx_r1.selectSearchPlaceHolderLabel)("clearText", ctx_r1.selectClearLabel)("notFoundText", ctx_r1.selectNotFoundLabel)("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
1235
+ i0.ɵɵproperty("id", ctx_r1.inputId)("ngModel", ctx_r1.value)("ngModelOptions", i0.ɵɵpureFunction0(20, _c0$6))("placeholder", i0.ɵɵpipeBind1(1, 12, ctx_r1.schema.description || "COMPONENTS.SCHEMA.SELECT.PLACEHOLDER"))("searchPlaceHolder", i0.ɵɵpipeBind1(2, 14, "COMPONENTS.SCHEMA.SELECT.SEARCH"))("clearText", i0.ɵɵpipeBind1(3, 16, "COMPONENTS.SCHEMA.SELECT.CLEAR"))("notFoundText", i0.ɵɵpipeBind1(4, 18, "COMPONENTS.SCHEMA.SELECT.NOT_FOUND"))("bindKey", "key")("bindValue", "value")("enabledSearch", true)("limitItens", 30)("data", ctx_r1.schema.options);
1336
1236
  }
1337
1237
  }
1338
1238
  function InputRenderComponent_number_input_3_Template(rf, ctx) {
@@ -1363,10 +1263,6 @@
1363
1263
  __extends(InputRenderComponent, _super);
1364
1264
  function InputRenderComponent() {
1365
1265
  var _this = _super.apply(this, __spread(arguments)) || this;
1366
- _this.selectPlaceHolderLabel = 'Select Item';
1367
- _this.selectSearchPlaceHolderLabel = 'Search';
1368
- _this.selectClearLabel = 'Clear';
1369
- _this.selectNotFoundLabel = 'No Items Found';
1370
1266
  _this.schema = {};
1371
1267
  _this.editing = false;
1372
1268
  _this.onDropEvent = new i0.EventEmitter();
@@ -1406,11 +1302,11 @@
1406
1302
  return InputRenderComponent;
1407
1303
  }(BaseSchemaComponent));
1408
1304
  InputRenderComponent.ɵfac = function InputRenderComponent_Factory(t) { return ɵInputRenderComponent_BaseFactory(t || InputRenderComponent); };
1409
- InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
1305
+ InputRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputRenderComponent, selectors: [["input-render"]], inputs: { schema: "schema", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "schema-input-container"], ["class", "form-control", "dndDropzone", "", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop", 4, "ngIf"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange", 4, "ngIf"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange", 4, "ngIf"], ["dndDropzone", "", 1, "form-control", 3, "type", "placeholder", "ngModel", "ngModelOptions", "id", "maxlength", "ngModelChange", "dndDrop"], [3, "id", "ngModel", "ngModelOptions", "placeholder", "searchPlaceHolder", "clearText", "notFoundText", "bindKey", "bindValue", "enabledSearch", "limitItens", "data", "ngModelChange"], [3, "model", "inputId", "placeholder", "maxLength", "modelChange"]], template: function InputRenderComponent_Template(rf, ctx) {
1410
1306
  if (rf & 1) {
1411
1307
  i0.ɵɵelementStart(0, "div", 0);
1412
1308
  i0.ɵɵtemplate(1, InputRenderComponent_input_1_Template, 1, 7, "input", 1);
1413
- i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 1, 13, "select-box", 2);
1309
+ i0.ɵɵtemplate(2, InputRenderComponent_select_box_2_Template, 5, 21, "select-box", 2);
1414
1310
  i0.ɵɵtemplate(3, InputRenderComponent_number_input_3_Template, 1, 4, "number-input", 3);
1415
1311
  i0.ɵɵtemplate(4, InputRenderComponent_boolean_input_4_Template, 1, 4, "boolean-input", 3);
1416
1312
  i0.ɵɵelementEnd();
@@ -1425,7 +1321,7 @@
1425
1321
  i0.ɵɵadvance(1);
1426
1322
  i0.ɵɵproperty("ngIf", ctx.schema.type === "boolean");
1427
1323
  }
1428
- }, directives: [i1.NgIf, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i7.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], styles: [""] });
1324
+ }, directives: [i1.NgIf, i3.DefaultValueAccessor, i2.DndDropzoneDirective, i3.NgControlStatus, i3.NgModel, i3.MaxLengthValidator, i8.SelectBoxComponent, NumberInputComponent, BooleanInputComponent], pipes: [i7.TranslatePipe], styles: [""] });
1429
1325
  var ɵInputRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputRenderComponent);
1430
1326
  /*@__PURE__*/ (function () {
1431
1327
  i0.ɵsetClassMetadata(InputRenderComponent, [{
@@ -1435,15 +1331,7 @@
1435
1331
  templateUrl: 'input-render.html',
1436
1332
  styleUrls: ['./input-render.scss']
1437
1333
  }]
1438
- }], null, { selectPlaceHolderLabel: [{
1439
- type: i0.Input
1440
- }], selectSearchPlaceHolderLabel: [{
1441
- type: i0.Input
1442
- }], selectClearLabel: [{
1443
- type: i0.Input
1444
- }], selectNotFoundLabel: [{
1445
- type: i0.Input
1446
- }], schema: [{
1334
+ }], null, { schema: [{
1447
1335
  type: i0.Input
1448
1336
  }], modelPropertiesPath: [{
1449
1337
  type: i0.Input
@@ -1472,20 +1360,21 @@
1472
1360
  if (rf & 2) {
1473
1361
  var ctx_r0 = i0.ɵɵnextContext();
1474
1362
  i0.ɵɵadvance(2);
1475
- i0.ɵɵproperty("requiredLabel", ctx_r0.requiredLabel)("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
1363
+ i0.ɵɵproperty("label", ctx_r0.schema.title)("tooltip", ctx_r0.schema.help)("inputId", ctx_r0.getId(ctx_r0.index));
1476
1364
  i0.ɵɵadvance(1);
1477
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
1365
+ i0.ɵɵproperty("inputId", ctx_r0.getId(ctx_r0.index))("schema", ctx_r0.schema)("model", ctx_r0.model[ctx_r0.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r0.schema.id)("editing", ctx_r0.editing);
1478
1366
  }
1479
1367
  }
1480
1368
  function SchemaInputComponent_div_1_span_4_Template(rf, ctx) {
1481
1369
  if (rf & 1) {
1482
1370
  i0.ɵɵelementStart(0, "span", 7);
1483
- i0.ɵɵtext(1, "?");
1371
+ i0.ɵɵpipe(1, "translate");
1372
+ i0.ɵɵtext(2, "?");
1484
1373
  i0.ɵɵelementEnd();
1485
1374
  }
1486
1375
  if (rf & 2) {
1487
1376
  var ctx_r4 = i0.ɵɵnextContext(2);
1488
- i0.ɵɵpropertyInterpolate("matTooltip", ctx_r4.schema.help);
1377
+ i0.ɵɵpropertyInterpolate("matTooltip", i0.ɵɵpipeBind1(1, 1, ctx_r4.schema.help));
1489
1378
  }
1490
1379
  }
1491
1380
  function SchemaInputComponent_div_1_Template(rf, ctx) {
@@ -1495,7 +1384,7 @@
1495
1384
  i0.ɵɵelementStart(1, "div", 2);
1496
1385
  i0.ɵɵelementStart(2, "label", 5);
1497
1386
  i0.ɵɵtext(3);
1498
- i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 2, 1, "span", 6);
1387
+ i0.ɵɵtemplate(4, SchemaInputComponent_div_1_span_4_Template, 3, 3, "span", 6);
1499
1388
  i0.ɵɵelementEnd();
1500
1389
  i0.ɵɵelementStart(5, "input-render", 4);
1501
1390
  i0.ɵɵlistener("modelChange", function SchemaInputComponent_div_1_Template_input_render_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return (ctx_r5.model[ctx_r5.schema.id] = $event); });
@@ -1512,18 +1401,13 @@
1512
1401
  i0.ɵɵadvance(1);
1513
1402
  i0.ɵɵproperty("ngIf", ctx_r1.schema.help);
1514
1403
  i0.ɵɵadvance(1);
1515
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r1.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r1.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r1.selectClearLabel)("selectNotFoundLabel", ctx_r1.selectNotFoundLabel)("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
1404
+ i0.ɵɵproperty("inputId", ctx_r1.getId(ctx_r1.index))("schema", ctx_r1.schema)("model", ctx_r1.model[ctx_r1.schema.id])("modelPropertiesPath", "mappingAttributes." + ctx_r1.schema.id)("editing", ctx_r1.editing);
1516
1405
  }
1517
1406
  }
1518
1407
  var SchemaInputComponent = /** @class */ (function (_super) {
1519
1408
  __extends(SchemaInputComponent, _super);
1520
1409
  function SchemaInputComponent() {
1521
1410
  var _this = _super.apply(this, __spread(arguments)) || this;
1522
- _this.requiredLabel = '(required)';
1523
- _this.selectPlaceHolderLabel = 'Select Item';
1524
- _this.selectSearchPlaceHolderLabel = 'Search';
1525
- _this.selectClearLabel = 'Clear';
1526
- _this.selectNotFoundLabel = 'No Items Found';
1527
1411
  _this.editing = false;
1528
1412
  return _this;
1529
1413
  }
@@ -1536,17 +1420,17 @@
1536
1420
  return SchemaInputComponent;
1537
1421
  }(BaseSchemaComponent));
1538
1422
  SchemaInputComponent.ɵfac = function SchemaInputComponent_Factory(t) { return ɵSchemaInputComponent_BaseFactory(t || SchemaInputComponent); };
1539
- SchemaInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { requiredLabel: "requiredLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "row schema-input", 4, "ngIf"], [1, "row", "schema-input"], [1, "col-md-12"], [3, "requiredLabel", "label", "tooltip", "inputId"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "inputId", "schema", "model", "modelPropertiesPath", "editing", "modelChange"], [1, "info-label", "bold", 3, "htmlFor"], ["class", "config-tooltip", 3, "matTooltip", 4, "ngIf"], [1, "config-tooltip", 3, "matTooltip"]], template: function SchemaInputComponent_Template(rf, ctx) {
1423
+ SchemaInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaInputComponent, selectors: [["schema-input"]], inputs: { idPrefix: "idPrefix", schema: "schema", editing: "editing", index: "index" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "row schema-input", 4, "ngIf"], [1, "row", "schema-input"], [1, "col-md-12"], [3, "label", "tooltip", "inputId"], [3, "inputId", "schema", "model", "modelPropertiesPath", "editing", "modelChange"], [1, "info-label", "bold", 3, "htmlFor"], ["class", "config-tooltip", 3, "matTooltip", 4, "ngIf"], [1, "config-tooltip", 3, "matTooltip"]], template: function SchemaInputComponent_Template(rf, ctx) {
1540
1424
  if (rf & 1) {
1541
- i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 13, "div", 0);
1542
- i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 12, "div", 0);
1425
+ i0.ɵɵtemplate(0, SchemaInputComponent_div_0_Template, 4, 8, "div", 0);
1426
+ i0.ɵɵtemplate(1, SchemaInputComponent_div_1_Template, 6, 8, "div", 0);
1543
1427
  }
1544
1428
  if (rf & 2) {
1545
1429
  i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && ctx.schema.minLength && ctx.schema.minLength > 0);
1546
1430
  i0.ɵɵadvance(1);
1547
1431
  i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type !== "array" && ctx.schema.type !== "object" && (!ctx.schema.minLength || ctx.schema.minLength === 0));
1548
1432
  }
1549
- }, directives: [i1.NgIf, FieldRenderComponent, InputRenderComponent, i4.MatTooltip], styles: [""] });
1433
+ }, directives: [i1.NgIf, FieldRenderComponent, InputRenderComponent, i4.MatTooltip], pipes: [i7.TranslatePipe], styles: [""] });
1550
1434
  var ɵSchemaInputComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaInputComponent);
1551
1435
  /*@__PURE__*/ (function () {
1552
1436
  i0.ɵsetClassMetadata(SchemaInputComponent, [{
@@ -1556,17 +1440,7 @@
1556
1440
  templateUrl: 'schema-input.html',
1557
1441
  styleUrls: ['./schema-input.scss']
1558
1442
  }]
1559
- }], null, { requiredLabel: [{
1560
- type: i0.Input
1561
- }], selectPlaceHolderLabel: [{
1562
- type: i0.Input
1563
- }], selectSearchPlaceHolderLabel: [{
1564
- type: i0.Input
1565
- }], selectClearLabel: [{
1566
- type: i0.Input
1567
- }], selectNotFoundLabel: [{
1568
- type: i0.Input
1569
- }], idPrefix: [{
1443
+ }], null, { idPrefix: [{
1570
1444
  type: i0.Input
1571
1445
  }], schema: [{
1572
1446
  type: i0.Input
@@ -1584,9 +1458,10 @@
1584
1458
  i0.ɵɵelementStart(1, "div", 6);
1585
1459
  i0.ɵɵelementStart(2, "label", 7);
1586
1460
  i0.ɵɵtext(3);
1461
+ i0.ɵɵpipe(4, "translate");
1587
1462
  i0.ɵɵelementEnd();
1588
- i0.ɵɵelementStart(4, "schema-custom-attributes", 8);
1589
- i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_4_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
1463
+ i0.ɵɵelementStart(5, "schema-custom-attributes", 8);
1464
+ i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_div_4_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(2); return ctx_r2.model[ctx_r2.schema.id].customAttributes = $event; });
1590
1465
  i0.ɵɵelementEnd();
1591
1466
  i0.ɵɵelementEnd();
1592
1467
  i0.ɵɵelementEnd();
@@ -1594,9 +1469,9 @@
1594
1469
  if (rf & 2) {
1595
1470
  var ctx_r1 = i0.ɵɵnextContext(2);
1596
1471
  i0.ɵɵadvance(3);
1597
- i0.ɵɵtextInterpolate(ctx_r1.additionalAttributesLabel);
1598
- i0.ɵɵadvance(1);
1599
- i0.ɵɵproperty("customAttributeRemoveLabel", ctx_r1.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r1.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r1.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r1.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r1.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r1.newCustomFieldCancelLabel)("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
1472
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
1473
+ i0.ɵɵadvance(2);
1474
+ i0.ɵɵproperty("model", ctx_r1.model[ctx_r1.schema.id].customAttributes)("onDropFunction", ctx_r1.onDrop);
1600
1475
  }
1601
1476
  }
1602
1477
  function SchemaObjectComponent_div_0_Template(rf, ctx) {
@@ -1609,7 +1484,7 @@
1609
1484
  i0.ɵɵelementStart(3, "schema-form", 3);
1610
1485
  i0.ɵɵlistener("modelChange", function SchemaObjectComponent_div_0_Template_schema_form_modelChange_3_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return (ctx_r4.model[ctx_r4.schema.id] = $event); });
1611
1486
  i0.ɵɵelementEnd();
1612
- i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 5, 9, "div", 4);
1487
+ i0.ɵɵtemplate(4, SchemaObjectComponent_div_0_div_4_Template, 6, 5, "div", 4);
1613
1488
  i0.ɵɵelementEnd();
1614
1489
  }
1615
1490
  if (rf & 2) {
@@ -1617,7 +1492,7 @@
1617
1492
  i0.ɵɵadvance(2);
1618
1493
  i0.ɵɵtextInterpolate(ctx_r0.schema.title);
1619
1494
  i0.ɵɵadvance(1);
1620
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("requiredLabel", ctx_r0.requiredLabel)("addItemLabel", ctx_r0.addItemLabel)("addLoopLabel", ctx_r0.addLoopLabel)("additionalAttributesLabel", ctx_r0.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r0.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r0.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r0.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r0.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r0.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r0.newCustomFieldCancelLabel)("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
1495
+ i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model[ctx_r0.schema.id])("schemas", ctx_r0.getSchemaProperties())("editing", ctx_r0.editing);
1621
1496
  i0.ɵɵadvance(1);
1622
1497
  i0.ɵɵproperty("ngIf", ctx_r0.model[ctx_r0.schema.id] && ctx_r0.schema.customProperties);
1623
1498
  }
@@ -1626,20 +1501,6 @@
1626
1501
  __extends(SchemaObjectComponent, _super);
1627
1502
  function SchemaObjectComponent() {
1628
1503
  var _this = _super.apply(this, __spread(arguments)) || this;
1629
- _this.requiredLabel = '(required)';
1630
- _this.addItemLabel = 'Add Item';
1631
- _this.addLoopLabel = 'Add Loop';
1632
- _this.additionalAttributesLabel = 'Additional Fields';
1633
- _this.customAttributeRemoveLabel = 'Remove';
1634
- _this.newCustomFieldNameLabel = 'Name';
1635
- _this.newCustomFieldValueLabel = 'Value';
1636
- _this.newCustomFieldAddLabel = 'Add';
1637
- _this.newCustomFieldSaveLabel = 'Save';
1638
- _this.newCustomFieldCancelLabel = 'Cancel';
1639
- _this.selectPlaceHolderLabel = 'Select Item';
1640
- _this.selectSearchPlaceHolderLabel = 'Search';
1641
- _this.selectClearLabel = 'Clear';
1642
- _this.selectNotFoundLabel = 'No Items Found';
1643
1504
  _this.editing = false;
1644
1505
  _this.onDropEvent = new i0.EventEmitter();
1645
1506
  _this.loaded = false;
@@ -1658,14 +1519,14 @@
1658
1519
  return SchemaObjectComponent;
1659
1520
  }(BaseSchemaComponent));
1660
1521
  SchemaObjectComponent.ɵfac = function SchemaObjectComponent_Factory(t) { return ɵSchemaObjectComponent_BaseFactory(t || SchemaObjectComponent); };
1661
- SchemaObjectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing", index: "index" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-object-container", 4, "ngIf"], [1, "schema-object-container"], [1, "schema-object-title"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "model", "onDropFunction", "modelChange"]], template: function SchemaObjectComponent_Template(rf, ctx) {
1522
+ SchemaObjectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaObjectComponent, selectors: [["schema-object"]], inputs: { idPrefix: "idPrefix", modelPropertiesPath: "modelPropertiesPath", inputId: "inputId", editing: "editing", index: "index" }, outputs: { onDropEvent: "onDropEvent" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema-object-container", 4, "ngIf"], [1, "schema-object-container"], [1, "schema-object-title"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaObjectComponent_Template(rf, ctx) {
1662
1523
  if (rf & 1) {
1663
- i0.ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5, 20, "div", 0);
1524
+ i0.ɵɵtemplate(0, SchemaObjectComponent_div_0_Template, 5, 6, "div", 0);
1664
1525
  }
1665
1526
  if (rf & 2) {
1666
1527
  i0.ɵɵproperty("ngIf", ctx.loaded && ctx.canRender(ctx.schema) && ctx.schema.type == "object");
1667
1528
  }
1668
- }, directives: [i1.NgIf, SchemaFormComponent, SchemaCustomAttributesComponent], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
1529
+ }, directives: [i1.NgIf, SchemaFormComponent, SchemaCustomAttributesComponent], pipes: [i7.TranslatePipe], styles: [".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"] });
1669
1530
  var ɵSchemaObjectComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaObjectComponent);
1670
1531
  /*@__PURE__*/ (function () {
1671
1532
  i0.ɵsetClassMetadata(SchemaObjectComponent, [{
@@ -1675,35 +1536,7 @@
1675
1536
  templateUrl: 'schema-object.html',
1676
1537
  styleUrls: ['./schema-object.scss']
1677
1538
  }]
1678
- }], null, { requiredLabel: [{
1679
- type: i0.Input
1680
- }], addItemLabel: [{
1681
- type: i0.Input
1682
- }], addLoopLabel: [{
1683
- type: i0.Input
1684
- }], additionalAttributesLabel: [{
1685
- type: i0.Input
1686
- }], customAttributeRemoveLabel: [{
1687
- type: i0.Input
1688
- }], newCustomFieldNameLabel: [{
1689
- type: i0.Input
1690
- }], newCustomFieldValueLabel: [{
1691
- type: i0.Input
1692
- }], newCustomFieldAddLabel: [{
1693
- type: i0.Input
1694
- }], newCustomFieldSaveLabel: [{
1695
- type: i0.Input
1696
- }], newCustomFieldCancelLabel: [{
1697
- type: i0.Input
1698
- }], selectPlaceHolderLabel: [{
1699
- type: i0.Input
1700
- }], selectSearchPlaceHolderLabel: [{
1701
- type: i0.Input
1702
- }], selectClearLabel: [{
1703
- type: i0.Input
1704
- }], selectNotFoundLabel: [{
1705
- type: i0.Input
1706
- }], idPrefix: [{
1539
+ }], null, { idPrefix: [{
1707
1540
  type: i0.Input
1708
1541
  }], modelPropertiesPath: [{
1709
1542
  type: i0.Input
@@ -1735,7 +1568,8 @@
1735
1568
  }());
1736
1569
 
1737
1570
  var SchemaFieldsService = /** @class */ (function () {
1738
- function SchemaFieldsService() {
1571
+ function SchemaFieldsService(translate) {
1572
+ this.translate = translate;
1739
1573
  }
1740
1574
  SchemaFieldsService.prototype.validateSchemaFields = function (propertiesRendered, model) {
1741
1575
  return __awaiter(this, void 0, void 0, function () {
@@ -1809,10 +1643,7 @@
1809
1643
  for (_a = __values(structValidation.emptyFields), _b = _a.next(); !_b.done; _b = _a.next()) {
1810
1644
  field = _b.value;
1811
1645
  fieldName = field.title || field.id;
1812
- errors.push({
1813
- type: 'emptyFields',
1814
- fieldName: fieldName
1815
- });
1646
+ errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR', { fieldName: fieldName }));
1816
1647
  }
1817
1648
  }
1818
1649
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -1826,11 +1657,7 @@
1826
1657
  for (_c = __values(structValidation.invalidMinLengthFields), _d = _c.next(); !_d.done; _d = _c.next()) {
1827
1658
  field = _d.value;
1828
1659
  fieldName = field.title || field.id;
1829
- errors.push({
1830
- type: 'invalidMinLengthFields',
1831
- fieldName: fieldName,
1832
- minLength: field.minLength
1833
- });
1660
+ errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR', { fieldName: fieldName, minLength: field.minLength }));
1834
1661
  }
1835
1662
  }
1836
1663
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
@@ -1844,11 +1671,7 @@
1844
1671
  for (_e = __values(structValidation.invalidMaxLengthFields), _f = _e.next(); !_f.done; _f = _e.next()) {
1845
1672
  field = _f.value;
1846
1673
  fieldName = field.title || field.id;
1847
- errors.push({
1848
- type: 'invalidMaxLengthFields',
1849
- fieldName: fieldName,
1850
- maxLength: field.maxLength
1851
- });
1674
+ errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR', { fieldName: fieldName, maxLength: field.maxLength }));
1852
1675
  }
1853
1676
  }
1854
1677
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
@@ -1864,12 +1687,12 @@
1864
1687
  };
1865
1688
  return SchemaFieldsService;
1866
1689
  }());
1867
- SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(); };
1690
+ SchemaFieldsService.ɵfac = function SchemaFieldsService_Factory(t) { return new (t || SchemaFieldsService)(i0.ɵɵinject(i7.TranslateService)); };
1868
1691
  SchemaFieldsService.ɵprov = i0.ɵɵdefineInjectable({ token: SchemaFieldsService, factory: SchemaFieldsService.ɵfac });
1869
1692
  /*@__PURE__*/ (function () {
1870
1693
  i0.ɵsetClassMetadata(SchemaFieldsService, [{
1871
1694
  type: i0.Injectable
1872
- }], function () { return []; }, null);
1695
+ }], function () { return [{ type: i7.TranslateService }]; }, null);
1873
1696
  })();
1874
1697
 
1875
1698
  function SchemaFormRenderComponent_div_0_div_2_div_1_Template(rf, ctx) {
@@ -1879,9 +1702,10 @@
1879
1702
  i0.ɵɵelementStart(1, "div", 7);
1880
1703
  i0.ɵɵelementStart(2, "label", 8);
1881
1704
  i0.ɵɵtext(3);
1705
+ i0.ɵɵpipe(4, "translate");
1882
1706
  i0.ɵɵelementEnd();
1883
- i0.ɵɵelementStart(4, "schema-custom-attributes", 9);
1884
- i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_4_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
1707
+ i0.ɵɵelementStart(5, "schema-custom-attributes", 9);
1708
+ i0.ɵɵlistener("modelChange", function SchemaFormRenderComponent_div_0_div_2_div_1_Template_schema_custom_attributes_modelChange_5_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.model.customAttributes = $event; });
1885
1709
  i0.ɵɵelementEnd();
1886
1710
  i0.ɵɵelementEnd();
1887
1711
  i0.ɵɵelementEnd();
@@ -1889,15 +1713,15 @@
1889
1713
  if (rf & 2) {
1890
1714
  var ctx_r4 = i0.ɵɵnextContext(3);
1891
1715
  i0.ɵɵadvance(3);
1892
- i0.ɵɵtextInterpolate(ctx_r4.additionalAttributesLabel);
1893
- i0.ɵɵadvance(1);
1894
- i0.ɵɵproperty("customAttributeRemoveLabel", ctx_r4.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r4.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r4.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r4.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r4.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r4.newCustomFieldCancelLabel)("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
1716
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "STEP.ADDITIONAL_ATTRIBUTES"));
1717
+ i0.ɵɵadvance(2);
1718
+ i0.ɵɵproperty("model", ctx_r4.model.customAttributes)("onDropFunction", ctx_r4.onDrop);
1895
1719
  }
1896
1720
  }
1897
1721
  function SchemaFormRenderComponent_div_0_div_2_Template(rf, ctx) {
1898
1722
  if (rf & 1) {
1899
1723
  i0.ɵɵelementStart(0, "div", 4);
1900
- i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 5, 9, "div", 5);
1724
+ i0.ɵɵtemplate(1, SchemaFormRenderComponent_div_0_div_2_div_1_Template, 6, 5, "div", 5);
1901
1725
  i0.ɵɵelementEnd();
1902
1726
  }
1903
1727
  if (rf & 2) {
@@ -1919,7 +1743,7 @@
1919
1743
  if (rf & 2) {
1920
1744
  var ctx_r0 = i0.ɵɵnextContext();
1921
1745
  i0.ɵɵadvance(1);
1922
- i0.ɵɵproperty("selectPlaceHolderLabel", ctx_r0.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel", ctx_r0.selectSearchPlaceHolderLabel)("selectClearLabel", ctx_r0.selectClearLabel)("selectNotFoundLabel", ctx_r0.selectNotFoundLabel)("requiredLabel", ctx_r0.requiredLabel)("addItemLabel", ctx_r0.addItemLabel)("addLoopLabel", ctx_r0.addLoopLabel)("additionalAttributesLabel", ctx_r0.additionalAttributesLabel)("customAttributeRemoveLabel", ctx_r0.customAttributeRemoveLabel)("newCustomFieldNameLabel", ctx_r0.newCustomFieldNameLabel)("newCustomFieldValueLabel", ctx_r0.newCustomFieldValueLabel)("newCustomFieldAddLabel", ctx_r0.newCustomFieldAddLabel)("newCustomFieldSaveLabel", ctx_r0.newCustomFieldSaveLabel)("newCustomFieldCancelLabel", ctx_r0.newCustomFieldCancelLabel)("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
1746
+ i0.ɵɵproperty("idPrefix", ctx_r0.idPrefix)("model", ctx_r0.model)("schemas", ctx_r0.schemas)("editing", ctx_r0.editing);
1923
1747
  i0.ɵɵadvance(1);
1924
1748
  i0.ɵɵproperty("ngForOf", ctx_r0.schemas);
1925
1749
  }
@@ -1928,20 +1752,6 @@
1928
1752
  __extends(SchemaFormRenderComponent, _super);
1929
1753
  function SchemaFormRenderComponent() {
1930
1754
  var _this = _super.apply(this, __spread(arguments)) || this;
1931
- _this.requiredLabel = '(required)';
1932
- _this.addItemLabel = 'Add Item';
1933
- _this.addLoopLabel = 'Add Loop';
1934
- _this.additionalAttributesLabel = 'Additional Fields';
1935
- _this.customAttributeRemoveLabel = 'Remove';
1936
- _this.newCustomFieldNameLabel = 'Name';
1937
- _this.newCustomFieldValueLabel = 'Value';
1938
- _this.newCustomFieldAddLabel = 'Add';
1939
- _this.newCustomFieldSaveLabel = 'Save';
1940
- _this.newCustomFieldCancelLabel = 'Cancel';
1941
- _this.selectPlaceHolderLabel = 'Select Item';
1942
- _this.selectSearchPlaceHolderLabel = 'Search';
1943
- _this.selectClearLabel = 'Clear';
1944
- _this.selectNotFoundLabel = 'No Items Found';
1945
1755
  _this.schemas = [];
1946
1756
  _this.customProperties = false;
1947
1757
  _this.editing = false;
@@ -1960,14 +1770,14 @@
1960
1770
  return SchemaFormRenderComponent;
1961
1771
  }(BaseSchemaComponent));
1962
1772
  SchemaFormRenderComponent.ɵfac = function SchemaFormRenderComponent_Factory(t) { return ɵSchemaFormRenderComponent_BaseFactory(t || SchemaFormRenderComponent); };
1963
- SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: { requiredLabel: "requiredLabel", addItemLabel: "addItemLabel", addLoopLabel: "addLoopLabel", additionalAttributesLabel: "additionalAttributesLabel", customAttributeRemoveLabel: "customAttributeRemoveLabel", newCustomFieldNameLabel: "newCustomFieldNameLabel", newCustomFieldValueLabel: "newCustomFieldValueLabel", newCustomFieldAddLabel: "newCustomFieldAddLabel", newCustomFieldSaveLabel: "newCustomFieldSaveLabel", newCustomFieldCancelLabel: "newCustomFieldCancelLabel", selectPlaceHolderLabel: "selectPlaceHolderLabel", selectSearchPlaceHolderLabel: "selectSearchPlaceHolderLabel", selectClearLabel: "selectClearLabel", selectNotFoundLabel: "selectNotFoundLabel", idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema", 4, "ngIf"], [1, "schema"], [3, "selectPlaceHolderLabel", "selectSearchPlaceHolderLabel", "selectClearLabel", "selectNotFoundLabel", "requiredLabel", "addItemLabel", "addLoopLabel", "additionalAttributesLabel", "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "customAttributeRemoveLabel", "newCustomFieldNameLabel", "newCustomFieldValueLabel", "newCustomFieldAddLabel", "newCustomFieldSaveLabel", "newCustomFieldCancelLabel", "model", "onDropFunction", "modelChange"]], template: function SchemaFormRenderComponent_Template(rf, ctx) {
1773
+ SchemaFormRenderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SchemaFormRenderComponent, selectors: [["schema-form-render"]], inputs: { idPrefix: "idPrefix", schemas: "schemas", customProperties: "customProperties", editing: "editing", inputType: "inputType" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "schema", 4, "ngIf"], [1, "schema"], [3, "idPrefix", "model", "schemas", "editing", "modelChange"], ["class", "schema-properties", 4, "ngFor", "ngForOf"], [1, "schema-properties"], ["class", "row struct-custom-properties", 4, "ngIf"], [1, "row", "struct-custom-properties"], [1, "col-md-12"], [1, "info-label", "bold"], [3, "model", "onDropFunction", "modelChange"]], template: function SchemaFormRenderComponent_Template(rf, ctx) {
1964
1774
  if (rf & 1) {
1965
- i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 19, "div", 0);
1775
+ i0.ɵɵtemplate(0, SchemaFormRenderComponent_div_0_Template, 3, 5, "div", 0);
1966
1776
  }
1967
1777
  if (rf & 2) {
1968
1778
  i0.ɵɵproperty("ngIf", ctx.loaded);
1969
1779
  }
1970
- }, directives: [i1.NgIf, SchemaFormComponent, i1.NgForOf, SchemaCustomAttributesComponent], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
1780
+ }, directives: [i1.NgIf, SchemaFormComponent, i1.NgForOf, SchemaCustomAttributesComponent], pipes: [i7.TranslatePipe], styles: [".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"] });
1971
1781
  var ɵSchemaFormRenderComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent);
1972
1782
  /*@__PURE__*/ (function () {
1973
1783
  i0.ɵsetClassMetadata(SchemaFormRenderComponent, [{
@@ -1977,35 +1787,7 @@
1977
1787
  templateUrl: 'schema-form-render.html',
1978
1788
  styleUrls: ['./schema-form-render.scss']
1979
1789
  }]
1980
- }], null, { requiredLabel: [{
1981
- type: i0.Input
1982
- }], addItemLabel: [{
1983
- type: i0.Input
1984
- }], addLoopLabel: [{
1985
- type: i0.Input
1986
- }], additionalAttributesLabel: [{
1987
- type: i0.Input
1988
- }], customAttributeRemoveLabel: [{
1989
- type: i0.Input
1990
- }], newCustomFieldNameLabel: [{
1991
- type: i0.Input
1992
- }], newCustomFieldValueLabel: [{
1993
- type: i0.Input
1994
- }], newCustomFieldAddLabel: [{
1995
- type: i0.Input
1996
- }], newCustomFieldSaveLabel: [{
1997
- type: i0.Input
1998
- }], newCustomFieldCancelLabel: [{
1999
- type: i0.Input
2000
- }], selectPlaceHolderLabel: [{
2001
- type: i0.Input
2002
- }], selectSearchPlaceHolderLabel: [{
2003
- type: i0.Input
2004
- }], selectClearLabel: [{
2005
- type: i0.Input
2006
- }], selectNotFoundLabel: [{
2007
- type: i0.Input
2008
- }], idPrefix: [{
1790
+ }], null, { idPrefix: [{
2009
1791
  type: i0.Input
2010
1792
  }], schemas: [{
2011
1793
  type: i0.Input
@@ -2031,7 +1813,8 @@
2031
1813
  i2.DndModule,
2032
1814
  i3.FormsModule,
2033
1815
  i4.MatTooltipModule,
2034
- i7.InputsModule
1816
+ i7.TranslateModule,
1817
+ i8.InputsModule
2035
1818
  ]] });
2036
1819
  (function () {
2037
1820
  (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SchemaFormRenderModule, { declarations: [ArraySessionComponent,
@@ -2048,7 +1831,8 @@
2048
1831
  i2.DndModule,
2049
1832
  i3.FormsModule,
2050
1833
  i4.MatTooltipModule,
2051
- i7.InputsModule], exports: [ArraySessionComponent,
1834
+ i7.TranslateModule,
1835
+ i8.InputsModule], exports: [ArraySessionComponent,
2052
1836
  SchemaArrayComponent,
2053
1837
  FieldRenderComponent,
2054
1838
  InputRenderComponent,
@@ -2069,7 +1853,8 @@
2069
1853
  i2.DndModule,
2070
1854
  i3.FormsModule,
2071
1855
  i4.MatTooltipModule,
2072
- i7.InputsModule
1856
+ i7.TranslateModule,
1857
+ i8.InputsModule
2073
1858
  ],
2074
1859
  declarations: [
2075
1860
  ArraySessionComponent,
@@ -2103,7 +1888,7 @@
2103
1888
  }]
2104
1889
  }], null, null);
2105
1890
  })();
2106
- i0.ɵɵsetComponentScope(SchemaFormComponent, [i1.NgClass, i1.NgComponentOutlet, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2.DndDraggableDirective, i2.DndDropzoneDirective, i2.DndHandleDirective, i2.DndPlaceholderRefDirective, i2.DndDragImageRefDirective, i3.ɵangular_packages_forms_forms_y, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_x, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.RangeValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.SelectMultipleControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.MinLengthValidator, i3.MaxLengthValidator, i3.PatternValidator, i3.CheckboxRequiredValidator, i3.EmailValidator, i3.NgModel, i3.NgModelGroup, i3.NgForm, i4.MatTooltip, i4.TooltipComponent, i5.Dir, i6.CdkScrollable, i7.SelectBoxComponent, i7.SelectEnumComponent, i7.InputTextComponent, i7.InputPasswordComponent, i7.InputAvatarComponent, i7.InputFileComponent, i7.CustomSelectComponent, i7.FieldComponent, ArraySessionComponent,
1891
+ i0.ɵɵsetComponentScope(SchemaFormComponent, [i1.NgClass, i1.NgComponentOutlet, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i1.NgPlural, i1.NgPluralCase, i2.DndDraggableDirective, i2.DndDropzoneDirective, i2.DndHandleDirective, i2.DndPlaceholderRefDirective, i2.DndDragImageRefDirective, i3.ɵangular_packages_forms_forms_y, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_x, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.RangeValueAccessor, i3.CheckboxControlValueAccessor, i3.SelectControlValueAccessor, i3.SelectMultipleControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.MinLengthValidator, i3.MaxLengthValidator, i3.PatternValidator, i3.CheckboxRequiredValidator, i3.EmailValidator, i3.NgModel, i3.NgModelGroup, i3.NgForm, i4.MatTooltip, i4.TooltipComponent, i5.Dir, i6.CdkScrollable, i7.TranslateDirective, i8.SelectBoxComponent, i8.SelectEnumComponent, i8.InputTextComponent, i8.InputPasswordComponent, i8.InputAvatarComponent, i8.InputFileComponent, i8.CustomSelectComponent, i8.FieldComponent, ArraySessionComponent,
2107
1892
  SchemaArrayComponent,
2108
1893
  FieldRenderComponent,
2109
1894
  InputRenderComponent,
@@ -2113,7 +1898,7 @@
2113
1898
  SchemaObjectComponent,
2114
1899
  SchemaFormRenderComponent,
2115
1900
  SchemaFormComponent,
2116
- SchemaCustomAttributesComponent], [i1.AsyncPipe, i1.UpperCasePipe, i1.LowerCasePipe, i1.JsonPipe, i1.SlicePipe, i1.DecimalPipe, i1.PercentPipe, i1.TitleCasePipe, i1.CurrencyPipe, i1.DatePipe, i1.I18nPluralPipe, i1.I18nSelectPipe, i1.KeyValuePipe]);
1901
+ SchemaCustomAttributesComponent], [i1.AsyncPipe, i1.UpperCasePipe, i1.LowerCasePipe, i1.JsonPipe, i1.SlicePipe, i1.DecimalPipe, i1.PercentPipe, i1.TitleCasePipe, i1.CurrencyPipe, i1.DatePipe, i1.I18nPluralPipe, i1.I18nSelectPipe, i1.KeyValuePipe, i7.TranslatePipe]);
2117
1902
 
2118
1903
  var TypeScriptCompile = /** @class */ (function () {
2119
1904
  function TypeScriptCompile() {