@apipass/schemas 0.1.6-alpha.2

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 (53) hide show
  1. package/README.md +33 -0
  2. package/apipass-schemas.d.ts +5 -0
  3. package/assets/css/buttons.scss +112 -0
  4. package/assets/css/colors.scss +34 -0
  5. package/assets/css/fonts.scss +24 -0
  6. package/assets/css/inputs.scss +197 -0
  7. package/assets/css/pt_sans.scss +144 -0
  8. package/assets/css/spacing.scss +28 -0
  9. package/assets/css/texts.scss +18 -0
  10. package/base-schema.component.d.ts +11 -0
  11. package/bundles/apipass-schemas.umd.js +2004 -0
  12. package/bundles/apipass-schemas.umd.js.map +1 -0
  13. package/bundles/apipass-schemas.umd.min.js +16 -0
  14. package/bundles/apipass-schemas.umd.min.js.map +1 -0
  15. package/esm2015/apipass-schemas.js +5 -0
  16. package/esm2015/base-schema.component.js +30 -0
  17. package/esm2015/public-api.js +17 -0
  18. package/esm2015/schema-custom-attributes/schema-custom-attributes.js +177 -0
  19. package/esm2015/schema-fields.service.js +77 -0
  20. package/esm2015/schema-form/schema-array/array-session/array-session.js +158 -0
  21. package/esm2015/schema-form/schema-array/schema-array.js +195 -0
  22. package/esm2015/schema-form/schema-form.js +72 -0
  23. package/esm2015/schema-form/schema-input/field-render/field-render.js +72 -0
  24. package/esm2015/schema-form/schema-input/input-render/boolean-input/boolean-input.component.js +45 -0
  25. package/esm2015/schema-form/schema-input/input-render/input-render.js +136 -0
  26. package/esm2015/schema-form/schema-input/input-render/number-input/number-input.component.js +43 -0
  27. package/esm2015/schema-form/schema-input/schema-input.js +98 -0
  28. package/esm2015/schema-form/schema-object/schema-object.js +94 -0
  29. package/esm2015/schema-form-render.js +96 -0
  30. package/esm2015/schema-form-render.module.js +121 -0
  31. package/esm2015/schema-validation-field.js +15 -0
  32. package/esm2015/struct.utils.js +9 -0
  33. package/esm2015/type-script-compile.js +77 -0
  34. package/fesm2015/apipass-schemas.js +1420 -0
  35. package/fesm2015/apipass-schemas.js.map +1 -0
  36. package/package.json +27 -0
  37. package/public-api.d.ts +16 -0
  38. package/schema-custom-attributes/schema-custom-attributes.d.ts +15 -0
  39. package/schema-fields.service.d.ts +12 -0
  40. package/schema-form/schema-array/array-session/array-session.d.ts +17 -0
  41. package/schema-form/schema-array/schema-array.d.ts +18 -0
  42. package/schema-form/schema-form.d.ts +17 -0
  43. package/schema-form/schema-input/field-render/field-render.d.ts +15 -0
  44. package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +13 -0
  45. package/schema-form/schema-input/input-render/input-render.d.ts +19 -0
  46. package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +13 -0
  47. package/schema-form/schema-input/schema-input.d.ts +14 -0
  48. package/schema-form/schema-object/schema-object.d.ts +20 -0
  49. package/schema-form-render.d.ts +17 -0
  50. package/schema-form-render.module.d.ts +22 -0
  51. package/schema-validation-field.d.ts +17 -0
  52. package/struct.utils.d.ts +1 -0
  53. package/type-script-compile.d.ts +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apipass-schemas.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/schemas/src/base-schema.component.ts","../../../projects/schemas/src/struct.utils.ts","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.html","../../../projects/schemas/src/schema-form/schema-array/array-session/array-session.ts","../../../projects/schemas/src/schema-form/schema-form.html","../../../projects/schemas/src/schema-form/schema-form.ts","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.html","../../../projects/schemas/src/schema-custom-attributes/schema-custom-attributes.ts","../../../projects/schemas/src/schema-form/schema-array/schema-array.html","../../../projects/schemas/src/schema-form/schema-array/schema-array.ts","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.html","../../../projects/schemas/src/schema-form/schema-input/field-render/field-render.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/number-input/number-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.ts","../../../projects/schemas/src/schema-form/schema-input/input-render/boolean-input/boolean-input.component.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.html","../../../projects/schemas/src/schema-form/schema-input/input-render/input-render.ts","../../../projects/schemas/src/schema-form/schema-input/schema-input.html","../../../projects/schemas/src/schema-form/schema-input/schema-input.ts","../../../projects/schemas/src/schema-form/schema-object/schema-object.html","../../../projects/schemas/src/schema-form/schema-object/schema-object.ts","../../../projects/schemas/src/schema-validation-field.ts","../../../projects/schemas/src/schema-fields.service.ts","../../../projects/schemas/src/schema-form-render.html","../../../projects/schemas/src/schema-form-render.ts","../../../projects/schemas/src/schema-form-render.module.ts","../../../projects/schemas/src/type-script-compile.ts","../../../projects/schemas/src/apipass-schemas.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {Component, EventEmitter, Input, Output} from '@angular/core';\n\n@Component({\n template: ''\n})\nexport abstract class BaseSchemaComponent {\n\n @Input() model: any;\n @Input() public schema: any;\n @Output() modelChange: EventEmitter<any> = new EventEmitter<any>();\n\n getSchemaProperties(): any {\n return this.schema.properties instanceof Array ? this.schema.properties : [this.schema.properties];\n }\n\n public canRender(property: any): boolean {\n // tslint:disable-next-line:no-eval\n property.canRender = property?.conditionExpression ? eval(property.conditionExpression) : true;\n return property.canRender;\n }\n\n}\n","export function onDropStruct(event: any, attr: any): any {\n const data = event.data;\n if (!attr) {\n attr = '';\n }\n attr += `{{${data}}}`;\n return attr;\n}\n","<div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ label | translate }}</label>\n <div class=\"subsection-element\" *ngFor=\"let item of model; let index = index; trackBy:trackByIndex;\">\n <div class=\"subsection-item-title\">{{removeLabel | translate}} {{index + 1}}\n <i class=\"far fa-trash-alt\" (click)=\"remove(item)\"></i>\n </div>\n <div class=\"row\" *ngIf=\"item.mappingAttributes || item.mappingAttributes === ''\">\n <div class=\"col-md-8\">\n <label class=\"info-label\">Loop</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.loop\" [ngModelOptions]=\"{standalone: true}\"/>\n </div>\n <div class=\"col-md-4\">\n <label class=\"info-label\">Alias</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.alias\" [ngModelOptions]=\"{standalone: true}\"/>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"subsectionItem, context: {\n $implicit: {\n items: model, index: index,\n mappingAttributes: (item.mappingAttributes || item.mappingAttributes === '') ? item.mappingAttributes : item\n }\n }\"></ng-container>\n </div>\n </div>\n</div>\n<div class=\"row add-buttons\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-outline-primary float-left btn-personal-edit\" (click)=\"add()\">{{'ADD_ITEM' | translate}}</button>\n <button class=\"btn btn-outline-primary float-left btn-personal-edit ml-2\" *ngIf=\"showAddLoop\" (click)=\"addLoop()\">{{'ADD_LOOP' | translate}}</button>\n </div>\n</div>\n","import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\n\n@Component({\n selector: 'array-session',\n templateUrl: 'array-session.html',\n styleUrls: ['array-session.scss']\n})\nexport class ArraySessionComponent extends BaseSchemaComponent {\n\n @Input() public label = '';\n @Input() public showAddLoop = true;\n @Input() public removeLabel = '';\n\n @Output() public onAdd: EventEmitter<any> = new EventEmitter<any>();\n @Output() public onAddLoop: EventEmitter<any> = new EventEmitter<any>();\n\n @ContentChild(TemplateRef, { read: TemplateRef })\n public subsectionItem: TemplateRef<any> | undefined;\n\n public add(): void {\n this.onAdd.next();\n }\n\n public addLoop(): void {\n this.onAddLoop.next();\n }\n\n public remove(item: any): any {\n const values = this.model;\n const index = values.indexOf(item);\n values.splice(index, 1);\n this.model = values;\n }\n\n public trackByIndex(index: number, obj: any): any {\n return index;\n }\n\n}\n","<div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <schema-input [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-input>\n <schema-object [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-object>\n <schema-array [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schema]=\"schema\"\n [editing]=\"this.editing\"\n [index]=\"i\">\n </schema-array>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\nimport {onDropStruct} from '../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-form',\n templateUrl: 'schema-form.html',\n styleUrls: ['./schema-form.scss']\n})\nexport class SchemaFormComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"row custom-attributes\" *ngFor=\"let attribute of model; let i = index\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{ attribute.label }}</label>\n <span (click)=\"removeCustomAttribute(i)\" class=\"customAttributeDeleteIcon\">\n <i class=\"far fa-trash-alt\" [matTooltip]=\"'REMOVE' | translate\"></i>\n </span>\n\n <input\n class=\"form-control\"\n [(ngModel)]=\"attribute.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDrop($event, attribute)\"\n />\n </div>\n</div>\n<div *ngIf=\"newCustomField\" class=\"struct-custom-field\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{'STEP.NAME' | translate}}<strong>*</strong></label>\n <input class=\"form-control\" [(ngModel)]=\"newCustomField.label\" [ngModelOptions]=\"{standalone: true}\"/>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <label class=\"info-label\">{{'STEP.VALUE' | translate}}<strong>*</strong></label>\n <input\n class=\"form-control\"\n [(ngModel)]=\"newCustomField.value\"\n [ngModelOptions]=\"{standalone: true}\"\n dndDropzone\n (dndDrop)=\"onDrop($event, newCustomField)\"\n />\n </div>\n </div>\n</div>\n<div class=\"row actions-buttons\">\n <div class=\"col-md-12 pull-right\">\n <button class=\"btn btn-outline-primary float-left\" *ngIf=\"!newCustomField\" (click)=\"newCustomField = {}\">\n {{'ADD' | translate }}\n </button>\n <button\n class=\"btn btn-outline-danger float-left ml-2\"\n *ngIf=\"newCustomField\"\n (click)=\"newCustomField = null\"\n >\n {{'CANCEL' | translate }}\n </button>\n <button\n class=\"btn btn-outline-primary float-left\"\n *ngIf=\"newCustomField && newCustomField.label && newCustomField.value\"\n (click)=\"saveNewAttribute(newCustomField)\"\n >\n {{'SAVE' | translate }}\n </button>\n </div>\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../base-schema.component';\n\n@Component({\n selector: 'schema-custom-attributes',\n templateUrl: 'schema-custom-attributes.html',\n styleUrls: ['./schema-custom-attributes.scss']\n})\nexport class SchemaCustomAttributesComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() onDropFunction: (() => any | undefined) | undefined;\n\n @Output() onSaveAttribute: EventEmitter<any> = new EventEmitter<any>();\n @Output() onDropOnAttribute: EventEmitter<any> = new EventEmitter<any>();\n\n public newCustomField: any;\n\n ngAfterContentInit(): void {\n if (!this.model) {\n this.model = [];\n }\n }\n\n public saveNewAttribute(newCustomField: any): void {\n this.onSaveAttribute.emit(newCustomField);\n this.model.push(newCustomField);\n this.newCustomField = null;\n this.modelChange.emit(this.model);\n }\n\n public removeCustomAttribute(attributeIndex: any): void {\n this.model.splice(attributeIndex, 1);\n this.modelChange.emit(this.model);\n }\n\n public onDrop($event: any, attribute: any): void {\n if (!attribute.value) {\n attribute.value = '';\n }\n attribute.value += `{{${$event.data}}}`;\n }\n\n}\n","<div *ngIf=\"loaded && canRender(schema) && schema.type === 'array' && schema.properties\">\n <array-session\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, {})\"\n (onAddLoop)=\"addArrayLoop(schema.id, {})\">\n <ng-template let-item>\n <schema-form *ngIf=\"this.model[schema.id][item.index].loop !== undefined\" [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index].mappingAttributes\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n <schema-form *ngIf=\"this.model[schema.id][item.index].loop == undefined\" [idPrefix]=\"idPrefix\"\n [(model)]=\"this.model[schema.id][item.index]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id][item.index] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ 'STEP.ADDITIONAL_ATTRIBUTES' | translate }}</label>\n <schema-custom-attributes [(model)]=\"this.model[schema.id][item.index].customAttributes\" [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n </ng-template>\n </array-session>\n</div>\n<div *ngIf=\"schema && canRender(schema) && schema.type === 'array' && !schema.properties\">\n <array-session\n [label]=\"schema.title\"\n [removeLabel]=\"schema.title\"\n [(model)]=\"this.model[schema.id]\"\n [showAddLoop]=\"schema.withoutLoop !== true\"\n (onAdd)=\"addArrayItem(schema.id, '')\"\n (onAddLoop)=\"addArrayLoop(schema.id, '')\"\n >\n <ng-template let-item>\n <label class=\"info-label\" [htmlFor]=\"getId(index)+'-'+item.index\">{{ schema.title | translate }}</label>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index].mappingAttributes\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index].mappingAttributes = this.onDrop($event, item.items[item.index].mappingAttributes)\"\n *ngIf=\"item.items[item.index].mappingAttributes || item.items[item.index].mappingAttributes === ''; else elseBlock\"\n [id]=\"getId(index)+'-'+item.index\"/>\n <ng-template #elseBlock>\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"item.items[item.index]\"\n [ngModelOptions]=\"{standalone: true}\" dndDropzone\n (dndDrop)=\"item.items[item.index] = this.onDrop($event, item.items[item.index])\"\n [id]=\"getId(index)+'-'+item.index\"/>\n </ng-template>\n </ng-template>\n </array-session>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {onDropStruct} from '../../struct.utils';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'schema-array',\n templateUrl: 'schema-array.html',\n styleUrls: ['./schema-array.scss']\n})\nexport class SchemaArrayComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'array' && this.model && !this.model[this.schema.id]) {\n this.model[this.schema.id] = [];\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n addArrayItem(id: any, param: any): void {\n this.model[id] = this.model[id] || [];\n if (this.schema.properties) {\n param = {};\n Object.keys(this.schema.properties).forEach(key => {\n const schemaProperty = this.schema.properties[key];\n if (schemaProperty.type === 'object') {\n param[schemaProperty.id] = {};\n } else if (schemaProperty.type === 'array') {\n param[schemaProperty.id] = [];\n }\n });\n }\n this.model[id].push(param);\n }\n\n addArrayLoop(id: any, mappingAttributes: any): void {\n this.model[id] = this.model[id] || [];\n this.model[id].push({loop: '', alias: '', mappingAttributes});\n }\n\n}\n\n","<div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"info-label bold\" [htmlFor]=\"inputId\">\n {{ label | translate }}\n <small [ngClass]=\"{'has-error':state && !state.valid && state.errors}\" *ngIf=\"required\">(obrigatório)</small>\n <span class=\"info-icon\" matTooltip=\"{{ tooltip | translate }}\" *ngIf=\"tooltip\">\n <i class=\"far fa-question-circle\"></i>\n </span>\n </label>\n\n <!-- Input, textarea or select -->\n <ng-content></ng-content>\n</div>","import {Component, Input} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n selector: 'field-render',\n templateUrl: 'field-render.html',\n styleUrls: ['field-render.scss']\n})\nexport class FieldRenderComponent {\n\n @Input() label = '';\n @Input() inputId: string | undefined;\n @Input() tooltip: string | undefined;\n @Input() required = true;\n\n /**\n * Estado do input no formulário para validar quando\n * é necessário exibir as mensagens de erro.\n */\n @Input() state: FormControl | undefined;\n\n}\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\n\n@Component({\n selector: 'number-input',\n templateUrl: 'number-input.component.html'\n})\nexport class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n public changeValue($event: any): void {\n if ($event && !isNaN($event)) {\n this.model = Number($event);\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control number-input\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n [maxlength]=\"maxLength\">\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../../base-schema.component';\n\n@Component({\n selector: 'boolean-input',\n templateUrl: 'boolean-input.component.html',\n})\nexport class BooleanInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() placeholder: string | undefined;\n @Input() inputId: string | undefined;\n @Input() maxLength: any;\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n this.value = this.model;\n }\n\n public changeValue($event: any): void {\n if ($event && ($event === 'true' || $event === 'false')) {\n this.model = $event === 'true';\n this.value = this.model;\n this.modelChange.emit(this.model);\n } else {\n this.model = $event;\n this.value = this.model;\n this.modelChange.emit(this.model);\n }\n }\n\n}\n","<input class=\"form-control\"\n [id]=\"inputId\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"changeValue($event)\"\n [maxlength]=\"maxLength\">\n","<div class=\"schema-input-container\">\n <input class=\"form-control\" [type]=\"schema.type === 'password' ? 'password' : 'text'\"\n placeholder=\"{{schema.description}}\"\n *ngIf=\"(schema.type === 'string' || schema.type === 'password') && !schema.options\"\n [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" (ngModelChange)=\"onChange($event)\"\n dndDropzone [id]=\"inputId\" [maxlength]=\"schema.maxLength\" />\n\n <select class=\"form-control custom-select\" [id]=\"inputId\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange($event)\" [ngModelOptions]=\"{standalone: true}\"\n *ngIf=\"schema.type === 'string' && schema.options\">\n <option *ngIf=\"schema.description\" [value]=\"undefined\"> {{schema.description}} </option>\n <option *ngFor=\"let item of schema.options\" [value]=\"item.key\" [selected]=\"item.selected === true\">{{\n item.value | translate }}</option>\n </select>\n\n <number-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'number'\" dndDropzone\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\" (modelChange)=\"onChange($event)\"></number-input>\n\n <boolean-input [(model)]=\"value\" [inputId]=\"inputId\"\n *ngIf=\"schema.type === 'boolean'\" dndDropzone\n [placeholder]=\"schema.description\" [maxLength]=\"schema.maxLength\" (modelChange)=\"onChange($event)\"></boolean-input>\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\n\n@Component({\n selector: 'input-render',\n templateUrl: 'input-render.html',\n styleUrls: ['./input-render.scss']\n})\nexport class InputRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public schema: any = {};\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n\n value: string | undefined;\n\n ngAfterContentInit(): void {\n if (this.schema?.type !== 'object' && this.schema?.type !== 'array') {\n if (!this.editing && this.schema.options) {\n const $event = this.schema.options.filter((item: any) => item.selected === true);\n if ($event[0]) {\n this.onChange($event[0].key);\n }\n }\n this.value = this.model;\n }\n }\n\n onChange($event: any): void {\n this.model = $event;\n this.modelChange.emit(this.model);\n }\n\n}\n","<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && schema.minLength && schema.minLength > 0\">\n <div class=\"col-md-12\">\n <field-render [label]=\"schema.title\" [tooltip]=\"schema.help\" [inputId]=\"getId(index)\">\n <input-render [inputId]=\"getId(index)\" [schema]=\"schema\" [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </field-render>\n </div>\n</div>\n<div class=\"row schema-input\"\n *ngIf=\"loaded && canRender(schema) && schema.type !== 'array' && schema.type !== 'object' && (!schema.minLength || schema.minLength === 0)\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\" [htmlFor]=\"getId(index)\">\n {{schema.title}}\n <span class=\"config-tooltip\" matTooltip=\"{{ schema.help | translate }}\" *ngIf=\"schema.help\">?</span>\n </label>\n <input-render [inputId]=\"getId(index)\" [schema]=\"schema\" [(model)]=\"this.model[schema.id]\"\n [modelPropertiesPath]=\"'mappingAttributes.' + schema.id\"\n [editing]=\"this.editing\"></input-render>\n </div>\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\n\n@Component({\n selector: 'schema-input',\n templateUrl: 'schema-input.html',\n styleUrls: ['./schema-input.scss']\n})\nexport class SchemaInputComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() idPrefix: string | undefined;\n @Input() schema: any;\n @Input() editing = false;\n @Input() index: number | undefined;\n\n loaded: boolean | undefined;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n getId(index: any): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","<div class=\"schema-object-container\" *ngIf=\"loaded && canRender(schema) && schema.type == 'object'\">\n <div class=\"schema-object-title\">{{schema.title}}</div>\n <schema-form [idPrefix]=\"idPrefix\"\n [(model)]=\"model[schema.id]\"\n [schemas]=\"getSchemaProperties()\"\n [editing]=\"this.editing\">\n </schema-form>\n\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model[schema.id] && schema.customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ 'STEP.ADDITIONAL_ATTRIBUTES' | translate }}</label>\n <schema-custom-attributes [(model)]=\"this.model[schema.id].customAttributes\" [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {BaseSchemaComponent} from '../../base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from '../../struct.utils';\n\n@Component({\n selector: 'schema-object',\n templateUrl: 'schema-object.html',\n styleUrls: ['./schema-object.scss']\n})\nexport class SchemaObjectComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() public idPrefix: string | undefined;\n @Input() public modelPropertiesPath: string | undefined;\n @Input() public inputId: string | undefined;\n @Input() public editing = false;\n @Input() index: number | undefined;\n\n @Output() public onDropEvent = new EventEmitter<{ $event: DndDropEvent, modelElement: any }>();\n loaded = false;\n\n ngAfterContentInit(): void {\n if (this.schema?.type === 'object' && this.model) {\n this.model[this.schema.id] = this.model[this.schema.id] || {};\n }\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n}\n","export type StructFieldType = Array<{\n title?: string,\n id: string,\n description?: string,\n propertyOrder?: number,\n minLength?: number,\n maxLength?: number\n}>;\n\nexport class SchemaValidationField {\n\n emptyFields: StructFieldType;\n invalidMinLengthFields: StructFieldType;\n invalidMaxLengthFields: StructFieldType;\n validationErrorsLabel: string[] | undefined;\n\n constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType) {\n this.emptyFields = emptyFields;\n this.invalidMinLengthFields = invalidMinLengthFields;\n this.invalidMaxLengthFields = invalidMaxLengthFields;\n }\n\n isValidSchemaFields(): boolean {\n return this.emptyFields?.length < 1 && this.invalidMinLengthFields?.length < 1 && this.invalidMaxLengthFields?.length < 1;\n }\n\n isInvalidSchemaFields(): boolean {\n return !this.isValidSchemaFields();\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {SchemaValidationField} from './schema-validation-field';\nimport {TranslateService} from '@ngx-translate/core';\n\n@Injectable()\nexport class SchemaFieldsService {\n\n constructor(private translate: TranslateService) {\n }\n\n public async validateSchemaFields(propertiesRendered: Array<any>, model: any): Promise<SchemaValidationField> {\n\n if (!propertiesRendered) {\n return new SchemaValidationField([], [], []);\n }\n\n const emptyFields: any[] = [];\n const invalidMinLengthFields: any[] = [];\n const invalidMaxLengthFields: any[] = [];\n this.processProperties(propertiesRendered, model, emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n\n const structValidationField = new SchemaValidationField(emptyFields, invalidMinLengthFields, invalidMaxLengthFields);\n structValidationField.validationErrorsLabel = await this.getErrorsStringArray(structValidationField);\n\n return structValidationField;\n\n }\n\n private processProperties(propertiesRendered: Array<any>,\n model: any, emptyFields: any[],\n invalidMinLengthFields: any[],\n invalidMaxLengthFields: any[],\n recursive?: boolean): void {\n for (const property of propertiesRendered) {\n if ((property.type === 'object' || property.type === 'array') && property.properties) {\n this.processProperties(property.properties, model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else if (property.type === 'array' && !property.properties) {\n const newProperty = {...property};\n newProperty.type = 'string';\n this.processProperties([newProperty], model[property.id], emptyFields, invalidMinLengthFields, invalidMaxLengthFields, true);\n } else {\n const validateModel = recursive ? model : model[property.id];\n if (property?.canRender && property?.minLength > 0\n && (validateModel === undefined || validateModel === '' || validateModel === null)) {\n emptyFields.push(property);\n } else if (property?.canRender && property?.minLength > 0 && (validateModel?.length < property.minLength)) {\n invalidMinLengthFields.push(property);\n } else if (property?.canRender && property?.maxLength > 0 && (validateModel?.length > property.maxLength)) {\n invalidMaxLengthFields.push(property);\n }\n }\n }\n }\n\n public async getErrorsStringArray(structValidation: SchemaValidationField): Promise<string[]> {\n if (!structValidation.isInvalidSchemaFields()) {\n return [];\n }\n const errors = [];\n for (const field of structValidation.emptyFields) {\n const fieldName = field.title || field.id;\n errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR', {fieldName}));\n }\n for (const field of structValidation.invalidMinLengthFields) {\n const fieldName = field.title || field.id;\n errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR',\n {fieldName, minLength: field.minLength}));\n }\n for (const field of structValidation.invalidMaxLengthFields) {\n const fieldName = field.title || field.id;\n errors.push(this.translate.instant('COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR',\n {fieldName, maxLength: field.maxLength}));\n }\n return errors;\n }\n\n}\n","<div class=\"schema\" *ngIf=\"loaded\">\n <schema-form [idPrefix]=\"idPrefix\"\n [(model)]=\"model\"\n [schemas]=\"schemas\"\n [editing]=\"this.editing\"></schema-form>\n\n <div class=\"schema-properties\" *ngFor=\"let schema of schemas; let i = index\">\n <div class=\"row struct-custom-properties\" *ngIf=\"this.model && customProperties\">\n <div class=\"col-md-12\">\n <label class=\"info-label bold\">{{ 'STEP.ADDITIONAL_ATTRIBUTES' | translate }}</label>\n <schema-custom-attributes [(model)]=\"model.customAttributes\" [onDropFunction]=\"onDrop\">\n </schema-custom-attributes>\n </div>\n </div>\n </div>\n\n</div>\n","import {AfterContentInit, Component, Input} from '@angular/core';\nimport {BaseSchemaComponent} from './base-schema.component';\nimport {DndDropEvent} from 'ngx-drag-drop';\nimport {onDropStruct} from './struct.utils';\n\n@Component({\n selector: 'schema-form-render',\n templateUrl: 'schema-form-render.html',\n styleUrls: ['./schema-form-render.scss']\n})\nexport class SchemaFormRenderComponent extends BaseSchemaComponent implements AfterContentInit {\n\n @Input() idPrefix: string | undefined;\n @Input() schemas = [];\n @Input() customProperties = false;\n @Input() editing = false;\n @Input() inputType: string | undefined;\n\n loaded = false;\n\n ngAfterContentInit(): void {\n this.loaded = true;\n }\n\n onDrop($event: DndDropEvent, modelElement: any): any {\n return onDropStruct($event, modelElement);\n }\n\n getId(index: number): string {\n return `${this.idPrefix}-struct-${index}`;\n }\n\n}\n\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {SchemaArrayComponent} from './schema-form/schema-array/schema-array';\nimport {SchemaInputComponent} from './schema-form/schema-input/schema-input';\nimport {FieldRenderComponent} from './schema-form/schema-input/field-render/field-render';\nimport {SchemaObjectComponent} from './schema-form/schema-object/schema-object';\nimport {ArraySessionComponent} from './schema-form/schema-array/array-session/array-session';\nimport {InputRenderComponent} from './schema-form/schema-input/input-render/input-render';\nimport {SchemaFieldsService} from './schema-fields.service';\nimport {SchemaFormComponent} from './schema-form/schema-form';\nimport {SchemaCustomAttributesComponent} from './schema-custom-attributes/schema-custom-attributes';\nimport {BooleanInputComponent} from './schema-form/schema-input/input-render/boolean-input/boolean-input.component';\nimport {NumberInputComponent} from './schema-form/schema-input/input-render/number-input/number-input.component';\nimport {DndModule} from 'ngx-drag-drop';\nimport {MatTooltipModule} from '@angular/material/tooltip';\nimport {SchemaFormRenderComponent} from './schema-form-render';\nimport {InputsModule} from '@apipass/inputs';\n\n@NgModule({\n imports: [\n CommonModule,\n DndModule,\n FormsModule,\n MatTooltipModule,\n TranslateModule,\n InputsModule\n ],\n declarations: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n exports: [\n ArraySessionComponent,\n SchemaArrayComponent,\n FieldRenderComponent,\n InputRenderComponent,\n BooleanInputComponent,\n NumberInputComponent,\n SchemaInputComponent,\n SchemaObjectComponent,\n SchemaFormRenderComponent,\n SchemaFormComponent,\n SchemaCustomAttributesComponent\n ],\n providers: [\n SchemaFieldsService\n ]\n})\nexport class SchemaFormRenderModule {\n}\n","import {FormControl, Validators} from '@angular/forms';\n\nexport class TypeScriptCompile {\n\n private static addItemToFormProperties(formProperties: any, item: any, key: string): void {\n if (item.minLength && item.minLength > 0) {\n formProperties[key] = new FormControl([null, [Validators.required]]);\n } else {\n formProperties[key] = new FormControl([null]);\n }\n }\n\n public static compileProperties(input: any): {\n compiledProperties: any,\n formProperties: any,\n inputData: any\n } {\n const compiledProperties = [];\n const formProperties = {};\n let inputData: any = {};\n const inputToCompile = JSON.parse(JSON.stringify(input));\n if (inputToCompile.properties) {\n if (inputToCompile.type === 'array') {\n inputData = [];\n }\n if (inputToCompile.type === 'object') {\n inputData = {};\n }\n inputToCompile.id = 'inputData';\n this.proccessProperties(inputToCompile, formProperties, 'inputData');\n compiledProperties.push(inputToCompile);\n } else if (inputToCompile.type === 'array') {\n inputToCompile.id = 'inputData';\n inputData = [];\n TypeScriptCompile.addItemToFormProperties(formProperties, inputToCompile, 'inputData');\n compiledProperties.push(inputToCompile);\n } else if (!inputToCompile.type) {\n for (let index = 0; index < Object.keys(inputToCompile).length; index++) {\n const key = Object.keys(inputToCompile)[index];\n const item = inputToCompile[key];\n item.id = key;\n\n if (item.type === 'array') {\n inputData[item.id] = [];\n }\n\n if (item.type === 'object') {\n inputData[item.id] = {};\n }\n this.proccessProperties(item, formProperties, key);\n compiledProperties.push(item);\n }\n }\n\n compiledProperties.sort((a, b) => a.propertyOrder - b.propertyOrder);\n return {compiledProperties, formProperties, inputData};\n }\n\n private static proccessProperties(item: any, formProperties: {}, key: any): void {\n if (this.hasProperties(item)) {\n const arFieldsChild = [];\n for (let indexChild = 0; indexChild < Object.keys(item.properties).length; indexChild++) {\n const keyChild = Object.keys(item.properties)[indexChild];\n const itemChild = item.properties[keyChild];\n itemChild.id = keyChild;\n if (this.hasProperties(itemChild)) {\n this.proccessProperties(itemChild, formProperties, keyChild);\n arFieldsChild.push(itemChild);\n } else {\n TypeScriptCompile.addItemToFormProperties(formProperties, itemChild, keyChild);\n arFieldsChild.push(itemChild);\n }\n }\n item.properties = arFieldsChild;\n } else {\n TypeScriptCompile.addItemToFormProperties(formProperties, item, key);\n }\n }\n\n private static hasProperties(item: any): any {\n return item.type === 'object' || (item.type === 'array' && item.properties);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","Component","Input","Output","i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵlistener","i0.ɵɵadvance","i0.ɵɵproperty","i0.ɵɵelementContainer","i0.ɵɵtemplate","i0.ɵɵtextInterpolate2","i0.ɵɵtextInterpolate","TemplateRef","ContentChild","i0.ɵɵelement","i0.ɵɵtextInterpolate1","i0.ɵɵpropertyInterpolate","i0.ɵɵprojection","Injectable","CommonModule","DndModule","FormsModule","MatTooltipModule","TranslateModule","InputsModule","NgModule","FormControl","Validators"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzF,CAAC;IAEM,IAAI,QAAQ,GAAG;QAClB,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC;YAC3C,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM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C/B;iBACF;gBACD,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC;aACjC;iBAAM;gBACL,iBAAiB,CAAC,uBAAuB,CAAC,cAAc,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;aACtE;SACF;QAEc,+BAAa,GAApB,UAAqB,IAAS;YACpC,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,KAAK,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;SAC7E;gCAEF;KAAA;;ICnFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@ngx-translate/core"),require("@angular/material/tooltip"),require("ngx-drag-drop"),require("@apipass/inputs"),require("@angular/cdk/bidi"),require("@angular/cdk/scrolling")):"function"==typeof define&&define.amd?define("@apipass/schemas",["exports","@angular/core","@angular/common","@angular/forms","@ngx-translate/core","@angular/material/tooltip","ngx-drag-drop","@apipass/inputs","@angular/cdk/bidi","@angular/cdk/scrolling"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).apipass=e.apipass||{},e.apipass.schemas={}),e.ng.core,e.ng.common,e.ng.forms,e.i7,e.ng.material.tooltip,e.i2,e.i8,e.ng.cdk.bidi,e.ng.cdk.scrolling)}(this,(function(exports,i0,i1,i3,i7,i4,i2,i8,i5,i6){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function __decorate(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function __param(e,t){return function(n,i){t(n,i,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function p(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,p)}l((i=i.apply(e,t||[])).next())}))}function __generator(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function p(r){return function(p){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,p])}}}var __createBinding=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function __exportStar(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||__createBinding(t,e,n)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,p=r.length;a<p;a++,o++)i[o]=r[a];return i}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||p(e,t)}))})}function p(e,t){try{(n=o[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(l,m):s(r[0][2],n)}catch(e){s(r[0][3],e)}var n}function l(e){p("next",e)}function m(e){p("throw",e)}function s(e,t){e(t),r.shift(),r.length&&p(r[0][0],r[0][1])}}function __asyncDelegator(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:__await(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function __classPrivateFieldSet(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var BaseSchemaComponent=function(){function BaseSchemaComponent(){this.modelChange=new i0.EventEmitter}return BaseSchemaComponent.prototype.getSchemaProperties=function(){return this.schema.properties instanceof Array?this.schema.properties:[this.schema.properties]},BaseSchemaComponent.prototype.canRender=function(property){return property.canRender=!(null==property?void 0:property.conditionExpression)||eval(property.conditionExpression),property.canRender},BaseSchemaComponent}();function onDropStruct(e,t){return t||(t=""),t+="{{"+e.data+"}}"}BaseSchemaComponent.ɵfac=function(e){return new(e||BaseSchemaComponent)},BaseSchemaComponent.ɵcmp=i0.ɵɵdefineComponent({type:BaseSchemaComponent,selectors:[["ng-component"]],inputs:{model:"model",schema:"schema"},outputs:{modelChange:"modelChange"},decls:0,vars:0,template:function(e,t){},encapsulation:2});var _c0=function(){return{standalone:!0}};function ArraySessionComponent_div_5_div_5_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"div",12),i0.ɵɵelementStart(2,"label",13),i0.ɵɵtext(3,"Loop"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(4,"input",14),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().$implicit.loop=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"div",15),i0.ɵɵelementStart(6,"label",13),i0.ɵɵtext(7,"Alias"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(8,"input",14),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().$implicit.alias=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit;i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",i.loop)("ngModelOptions",i0.ɵɵpureFunction0(4,_c0)),i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",i.alias)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0))}}function ArraySessionComponent_div_5_ng_container_6_Template(e,t){1&e&&i0.ɵɵelementContainer(0)}var _c1=function(e,t,n){return{items:e,index:t,mappingAttributes:n}},_c2=function(e){return{$implicit:e}};function ArraySessionComponent_div_5_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",7),i0.ɵɵelementStart(1,"div",8),i0.ɵɵtext(2),i0.ɵɵpipe(3,"translate"),i0.ɵɵelementStart(4,"i",9),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=t.$implicit;return i0.ɵɵnextContext().remove(e)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵtemplate(5,ArraySessionComponent_div_5_div_5_Template,9,6,"div",10),i0.ɵɵtemplate(6,ArraySessionComponent_div_5_ng_container_6_Template,1,0,"ng-container",11),i0.ɵɵelementEnd()}if(2&e){var i=t.$implicit,o=t.index,r=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate2("",i0.ɵɵpipeBind1(3,5,r.removeLabel)," ",o+1," "),i0.ɵɵadvance(3),i0.ɵɵproperty("ngIf",i.mappingAttributes||""===i.mappingAttributes),i0.ɵɵadvance(1),i0.ɵɵproperty("ngTemplateOutlet",r.subsectionItem)("ngTemplateOutletContext",i0.ɵɵpureFunction1(11,_c2,i0.ɵɵpureFunction3(7,_c1,r.model,o,i.mappingAttributes||""===i.mappingAttributes?i.mappingAttributes:i)))}}function ArraySessionComponent_button_11_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",16),i0.ɵɵlistener("click",(function(){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().addLoop()})),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd()}2&e&&(i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,1,"ADD_LOOP")))}var ArraySessionComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.label="",t.showAddLoop=!0,t.removeLabel="",t.onAdd=new i0.EventEmitter,t.onAddLoop=new i0.EventEmitter,t}return __extends(t,e),t.prototype.add=function(){this.onAdd.next()},t.prototype.addLoop=function(){this.onAddLoop.next()},t.prototype.remove=function(e){var t=this.model,n=t.indexOf(e);t.splice(n,1),this.model=t},t.prototype.trackByIndex=function(e,t){return e},t}(BaseSchemaComponent);ArraySessionComponent.ɵfac=function(e){return ɵArraySessionComponent_BaseFactory(e||ArraySessionComponent)},ArraySessionComponent.ɵcmp=i0.ɵɵdefineComponent({type:ArraySessionComponent,selectors:[["array-session"]],contentQueries:function(e,t,n){var i;(1&e&&i0.ɵɵcontentQuery(n,i0.TemplateRef,!0,i0.TemplateRef),2&e)&&(i0.ɵɵqueryRefresh(i=i0.ɵɵloadQuery())&&(t.subsectionItem=i.first))},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",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange"],[1,"col-md-4"],[1,"btn","btn-outline-primary","float-left","btn-personal-edit","ml-2",3,"click"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"div",1),i0.ɵɵelementStart(2,"label",2),i0.ɵɵtext(3),i0.ɵɵpipe(4,"translate"),i0.ɵɵelementEnd(),i0.ɵɵtemplate(5,ArraySessionComponent_div_5_Template,7,13,"div",3),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(6,"div",4),i0.ɵɵelementStart(7,"div",1),i0.ɵɵelementStart(8,"button",5),i0.ɵɵlistener("click",(function(){return t.add()})),i0.ɵɵtext(9),i0.ɵɵpipe(10,"translate"),i0.ɵɵelementEnd(),i0.ɵɵtemplate(11,ArraySessionComponent_button_11_Template,3,3,"button",6),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,5,t.label)),i0.ɵɵadvance(2),i0.ɵɵproperty("ngForOf",t.model)("ngForTrackBy",t.trackByIndex),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10,7,"ADD_ITEM")),i0.ɵɵadvance(2),i0.ɵɵproperty("ngIf",t.showAddLoop))},directives:[i1.NgForOf,i1.NgIf,i1.NgTemplateOutlet,i3.DefaultValueAccessor,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}"]});var ɵArraySessionComponent_BaseFactory=i0.ɵɵgetInheritedFactory(ArraySessionComponent);function SchemaFormComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",1),i0.ɵɵelementStart(1,"schema-input",2),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementStart(2,"schema-object",2),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementStart(3,"schema-array",2),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=t.$implicit,o=t.index,r=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("idPrefix",r.idPrefix)("model",r.model)("schema",i)("editing",r.editing)("index",o),i0.ɵɵadvance(1),i0.ɵɵproperty("idPrefix",r.idPrefix)("model",r.model)("schema",i)("editing",r.editing)("index",o),i0.ɵɵadvance(1),i0.ɵɵproperty("idPrefix",r.idPrefix)("model",r.model)("schema",i)("editing",r.editing)("index",o)}}var SchemaFormComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.schemas=[],t.customProperties=!1,t.editing=!1,t.loaded=!1,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.loaded=!0},t.prototype.onDrop=function(e,t){return onDropStruct(e,t)},t.prototype.getId=function(e){return this.idPrefix+"-struct-"+e},t}(BaseSchemaComponent);SchemaFormComponent.ɵfac=function(e){return ɵSchemaFormComponent_BaseFactory(e||SchemaFormComponent)},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(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormComponent_div_0_Template,4,15,"div",0),2&e&&i0.ɵɵproperty("ngForOf",t.schemas)},styles:[""]});var ɵSchemaFormComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaFormComponent),_c0$1=function(){return{standalone:!0}};function SchemaCustomAttributesComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",6),i0.ɵɵelementStart(1,"div",7),i0.ɵɵelementStart(2,"label",8),i0.ɵɵtext(3),i0.ɵɵelementEnd(),i0.ɵɵelementStart(4,"span",9),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=t.index;return i0.ɵɵnextContext().removeCustomAttribute(e)})),i0.ɵɵelement(5,"i",10),i0.ɵɵpipe(6,"translate"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(7,"input",11),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),t.$implicit.value=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var i=t.$implicit;return i0.ɵɵnextContext().onDrop(e,i)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=t.$implicit;i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i.label),i0.ɵɵadvance(2),i0.ɵɵproperty("matTooltip",i0.ɵɵpipeBind1(6,4,"REMOVE")),i0.ɵɵadvance(2),i0.ɵɵproperty("ngModel",i.value)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$1))}}function SchemaCustomAttributesComponent_div_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",12),i0.ɵɵelementStart(1,"div",13),i0.ɵɵelementStart(2,"div",7),i0.ɵɵelementStart(3,"label",8),i0.ɵɵtext(4),i0.ɵɵpipe(5,"translate"),i0.ɵɵelementStart(6,"strong"),i0.ɵɵtext(7,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(8,"input",14),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField.label=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(9,"div",13),i0.ɵɵelementStart(10,"div",7),i0.ɵɵelementStart(11,"label",8),i0.ɵɵtext(12),i0.ɵɵpipe(13,"translate"),i0.ɵɵelementStart(14,"strong"),i0.ɵɵtext(15,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(16,"input",11),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField.value=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.onDrop(e,t.newCustomField)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5,6,"STEP.NAME")),i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",i.newCustomField.label)("ngModelOptions",i0.ɵɵpureFunction0(10,_c0$1)),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,8,"STEP.VALUE")),i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",i.newCustomField.value)("ngModelOptions",i0.ɵɵpureFunction0(11,_c0$1))}}function SchemaCustomAttributesComponent_button_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",15),i0.ɵɵlistener("click",(function(){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField={}})),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd()}2&e&&(i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",i0.ɵɵpipeBind1(2,1,"ADD")," "))}function SchemaCustomAttributesComponent_button_5_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",16),i0.ɵɵlistener("click",(function(){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField=null})),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd()}2&e&&(i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",i0.ɵɵpipeBind1(2,1,"CANCEL")," "))}function SchemaCustomAttributesComponent_button_6_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",15),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.saveNewAttribute(e.newCustomField)})),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd()}2&e&&(i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",i0.ɵɵpipeBind1(2,1,"SAVE")," "))}var SchemaCustomAttributesComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.onSaveAttribute=new i0.EventEmitter,t.onDropOnAttribute=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.model||(this.model=[])},t.prototype.saveNewAttribute=function(e){this.onSaveAttribute.emit(e),this.model.push(e),this.newCustomField=null,this.modelChange.emit(this.model)},t.prototype.removeCustomAttribute=function(e){this.model.splice(e,1),this.modelChange.emit(this.model)},t.prototype.onDrop=function(e,t){t.value||(t.value=""),t.value+="{{"+e.data+"}}"},t}(BaseSchemaComponent);SchemaCustomAttributesComponent.ɵfac=function(e){return ɵSchemaCustomAttributesComponent_BaseFactory(e||SchemaCustomAttributesComponent)},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(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaCustomAttributesComponent_div_0_Template,8,7,"div",0),i0.ɵɵtemplate(1,SchemaCustomAttributesComponent_div_1_Template,17,12,"div",1),i0.ɵɵelementStart(2,"div",2),i0.ɵɵelementStart(3,"div",3),i0.ɵɵtemplate(4,SchemaCustomAttributesComponent_button_4_Template,3,3,"button",4),i0.ɵɵtemplate(5,SchemaCustomAttributesComponent_button_5_Template,3,3,"button",5),i0.ɵɵtemplate(6,SchemaCustomAttributesComponent_button_6_Template,3,3,"button",4),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵproperty("ngForOf",t.model),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.newCustomField),i0.ɵɵadvance(3),i0.ɵɵproperty("ngIf",!t.newCustomField),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.newCustomField),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.newCustomField&&t.newCustomField.label&&t.newCustomField.value))},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}"]});var ɵSchemaCustomAttributesComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaCustomAttributesComponent);function SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"schema-form",4),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);return i.model[i.schema.id][t.index].mappingAttributes=e})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("idPrefix",o.idPrefix)("model",o.model[o.schema.id][i.index].mappingAttributes)("schemas",o.getSchemaProperties())("editing",o.editing)}}function SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"schema-form",4),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);return i.model[i.schema.id][t.index]=e})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("idPrefix",o.idPrefix)("model",o.model[o.schema.id][i.index])("schemas",o.getSchemaProperties())("editing",o.editing)}}function SchemaArrayComponent_div_0_ng_template_2_div_2_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",5),i0.ɵɵelementStart(1,"div",6),i0.ɵɵelementStart(2,"label",7),i0.ɵɵtext(3),i0.ɵɵpipe(4,"translate"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"schema-custom-attributes",8),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);return i.model[i.schema.id][t.index].customAttributes=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,3,"STEP.ADDITIONAL_ATTRIBUTES")),i0.ɵɵadvance(2),i0.ɵɵproperty("model",o.model[o.schema.id][i.index].customAttributes)("onDropFunction",o.onDrop)}}function SchemaArrayComponent_div_0_ng_template_2_Template(e,t){if(1&e&&(i0.ɵɵtemplate(0,SchemaArrayComponent_div_0_ng_template_2_schema_form_0_Template,1,4,"schema-form",2),i0.ɵɵtemplate(1,SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template,1,4,"schema-form",2),i0.ɵɵtemplate(2,SchemaArrayComponent_div_0_ng_template_2_div_2_Template,6,5,"div",3)),2&e){var n=t.$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngIf",void 0!==i.model[i.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",null==i.model[i.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",i.model[i.schema.id][n.index]&&i.schema.customProperties)}}function SchemaArrayComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div"),i0.ɵɵelementStart(1,"array-session",1),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.model[t.schema.id]=e}))("onAdd",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.addArrayItem(e.schema.id,{})}))("onAddLoop",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.addArrayLoop(e.schema.id,{})})),i0.ɵɵtemplate(2,SchemaArrayComponent_div_0_ng_template_2_Template,3,3,"ng-template"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("label",i.schema.title)("removeLabel",i.schema.title)("model",i.model[i.schema.id])("showAddLoop",!0!==i.schema.withoutLoop)}}var _c0$2=function(){return{standalone:!0}};function SchemaArrayComponent_div_1_ng_template_2_input_3_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"input",12),i0.ɵɵlistener("ngModelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit;return t.items[t.index].mappingAttributes=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);return t.items[t.index].mappingAttributes=i.onDrop(e,t.items[t.index].mappingAttributes)})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",i.items[i.index].mappingAttributes)("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",o.getId(o.index)+"-"+i.index)}}function SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"input",12),i0.ɵɵlistener("ngModelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit;return t.items[t.index]=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);return t.items[t.index]=i.onDrop(e,t.items[t.index])})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",i.items[i.index])("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",o.getId(o.index)+"-"+i.index)}}function SchemaArrayComponent_div_1_ng_template_2_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"label",9),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd(),i0.ɵɵtemplate(3,SchemaArrayComponent_div_1_ng_template_2_input_3_Template,1,4,"input",10),i0.ɵɵtemplate(4,SchemaArrayComponent_div_1_ng_template_2_ng_template_4_Template,1,4,"ng-template",null,11,i0.ɵɵtemplateRefExtractor)),2&e){var n=t.$implicit,i=i0.ɵɵreference(5),o=i0.ɵɵnextContext(2);i0.ɵɵproperty("htmlFor",o.getId(o.index)+"-"+n.index),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,4,o.schema.title)),i0.ɵɵadvance(2),i0.ɵɵproperty("ngIf",n.items[n.index].mappingAttributes||""===n.items[n.index].mappingAttributes)("ngIfElse",i)}}function SchemaArrayComponent_div_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div"),i0.ɵɵelementStart(1,"array-session",1),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.model[t.schema.id]=e}))("onAdd",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.addArrayItem(e.schema.id,"")}))("onAddLoop",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.addArrayLoop(e.schema.id,"")})),i0.ɵɵtemplate(2,SchemaArrayComponent_div_1_ng_template_2_Template,6,6,"ng-template"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("label",i.schema.title)("removeLabel",i.schema.title)("model",i.model[i.schema.id])("showAddLoop",!0!==i.schema.withoutLoop)}}var SchemaArrayComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.editing=!1,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){var e;"array"===(null===(e=this.schema)||void 0===e?void 0:e.type)&&this.model&&!this.model[this.schema.id]&&(this.model[this.schema.id]=[]),this.loaded=!0},t.prototype.onDrop=function(e,t){return onDropStruct(e,t)},t.prototype.getId=function(e){return this.idPrefix+"-struct-"+e},t.prototype.addArrayItem=function(e,t){var n=this;this.model[e]=this.model[e]||[],this.schema.properties&&(t={},Object.keys(this.schema.properties).forEach((function(e){var i=n.schema.properties[e];"object"===i.type?t[i.id]={}:"array"===i.type&&(t[i.id]=[])}))),this.model[e].push(t)},t.prototype.addArrayLoop=function(e,t){this.model[e]=this.model[e]||[],this.model[e].push({loop:"",alias:"",mappingAttributes:t})},t}(BaseSchemaComponent);SchemaArrayComponent.ɵfac=function(e){return ɵSchemaArrayComponent_BaseFactory(e||SchemaArrayComponent)},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(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaArrayComponent_div_0_Template,3,4,"div",0),i0.ɵɵtemplate(1,SchemaArrayComponent_div_1_Template,3,4,"div",0)),2&e&&(i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"array"===t.schema.type&&t.schema.properties),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.schema&&t.canRender(t.schema)&&"array"===t.schema.type&&!t.schema.properties))},directives:[i1.NgIf,ArraySessionComponent,SchemaFormComponent,SchemaCustomAttributesComponent,i3.DefaultValueAccessor,i2.DndDropzoneDirective,i3.NgControlStatus,i3.NgModel],pipes:[i7.TranslatePipe],styles:[""]});var ɵSchemaArrayComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaArrayComponent),_c0$3=function(e){return{"has-error":e}};function FieldRenderComponent_small_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"small",0),i0.ɵɵtext(1,"(obrigatório)"),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(1,_c0$3,n.state&&!n.state.valid&&n.state.errors))}}function FieldRenderComponent_span_5_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",4),i0.ɵɵpipe(1,"translate"),i0.ɵɵelement(2,"i",5),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("matTooltip",i0.ɵɵpipeBind1(1,1,n.tooltip))}}var _c1$1=["*"],FieldRenderComponent=function(){this.label="",this.required=!0};FieldRenderComponent.ɵfac=function(e){return new(e||FieldRenderComponent)},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(e,t){1&e&&(i0.ɵɵprojectionDef(),i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"label",1),i0.ɵɵtext(2),i0.ɵɵpipe(3,"translate"),i0.ɵɵtemplate(4,FieldRenderComponent_small_4_Template,2,3,"small",2),i0.ɵɵtemplate(5,FieldRenderComponent_span_5_Template,3,3,"span",3),i0.ɵɵelementEnd(),i0.ɵɵprojection(6),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(7,_c0$3,t.state&&!t.state.valid&&(!t.state.pristine||t.state.touched)&&t.state.errors)),i0.ɵɵadvance(1),i0.ɵɵproperty("htmlFor",t.inputId),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",i0.ɵɵpipeBind1(3,5,t.label)," "),i0.ɵɵadvance(2),i0.ɵɵproperty("ngIf",t.required),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.tooltip))},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}"]});var _c0$4=function(){return{standalone:!0}},NumberInputComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.value=this.model},t.prototype.changeValue=function(e){e&&!isNaN(e)?(this.model=Number(e),this.modelChange.emit(this.model)):(this.model=e,this.modelChange.emit(this.model))},t}(BaseSchemaComponent);NumberInputComponent.ɵfac=function(e){return ɵNumberInputComponent_BaseFactory(e||NumberInputComponent)},NumberInputComponent.ɵcmp=i0.ɵɵdefineComponent({type:NumberInputComponent,selectors:[["number-input"]],inputs:{placeholder:"placeholder",inputId:"inputId",maxLength:"maxLength"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:6,consts:[[1,"form-control","number-input",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"input",0),i0.ɵɵlistener("ngModelChange",(function(e){return t.value=e}))("ngModelChange",(function(e){return t.changeValue(e)})),i0.ɵɵelementEnd()),2&e&&i0.ɵɵproperty("id",t.inputId)("placeholder",t.placeholder)("ngModel",t.value)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0$4))("maxlength",t.maxLength)},directives:[i3.DefaultValueAccessor,i3.NgControlStatus,i3.NgModel,i3.MaxLengthValidator],encapsulation:2});var ɵNumberInputComponent_BaseFactory=i0.ɵɵgetInheritedFactory(NumberInputComponent),_c0$5=function(){return{standalone:!0}},BooleanInputComponent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.value=this.model},t.prototype.changeValue=function(e){!e||"true"!==e&&"false"!==e?(this.model=e,this.value=this.model,this.modelChange.emit(this.model)):(this.model="true"===e,this.value=this.model,this.modelChange.emit(this.model))},t}(BaseSchemaComponent);BooleanInputComponent.ɵfac=function(e){return ɵBooleanInputComponent_BaseFactory(e||BooleanInputComponent)},BooleanInputComponent.ɵcmp=i0.ɵɵdefineComponent({type:BooleanInputComponent,selectors:[["boolean-input"]],inputs:{placeholder:"placeholder",inputId:"inputId",maxLength:"maxLength"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:6,consts:[[1,"form-control",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"input",0),i0.ɵɵlistener("ngModelChange",(function(e){return t.value=e}))("ngModelChange",(function(e){return t.changeValue(e)})),i0.ɵɵelementEnd()),2&e&&i0.ɵɵproperty("id",t.inputId)("placeholder",t.placeholder)("ngModel",t.value)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0$5))("maxlength",t.maxLength)},directives:[i3.DefaultValueAccessor,i3.NgControlStatus,i3.NgModel,i3.MaxLengthValidator],encapsulation:2});var ɵBooleanInputComponent_BaseFactory=i0.ɵɵgetInheritedFactory(BooleanInputComponent),_c0$6=function(){return{standalone:!0}};function InputRenderComponent_input_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"input",4),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().value=e}))("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().onChange(e)})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("placeholder",i.schema.description),i0.ɵɵproperty("type","password"===i.schema.type?"password":"text")("ngModel",i.value)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$6))("id",i.inputId)("maxlength",i.schema.maxLength)}}function InputRenderComponent_select_2_option_1_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"option",8),i0.ɵɵtext(1),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext(2);i0.ɵɵproperty("value",void 0),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",n.schema.description," ")}}function InputRenderComponent_select_2_option_2_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"option",9),i0.ɵɵtext(1),i0.ɵɵpipe(2,"translate"),i0.ɵɵelementEnd()),2&e){var n=t.$implicit;i0.ɵɵproperty("value",n.key)("selected",!0===n.selected),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,3,n.value))}}function InputRenderComponent_select_2_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"select",5),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().value=e}))("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().onChange(e)})),i0.ɵɵtemplate(1,InputRenderComponent_select_2_option_1_Template,2,2,"option",6),i0.ɵɵtemplate(2,InputRenderComponent_select_2_option_2_Template,3,5,"option",7),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵproperty("id",i.inputId)("ngModel",i.value)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0$6)),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",i.schema.description),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",i.schema.options)}}function InputRenderComponent_number_input_3_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"number-input",10),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().value=e}))("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().onChange(e)})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵproperty("model",i.value)("inputId",i.inputId)("placeholder",i.schema.description)("maxLength",i.schema.maxLength)}}function InputRenderComponent_boolean_input_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"boolean-input",10),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().value=e}))("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().onChange(e)})),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵproperty("model",i.value)("inputId",i.inputId)("placeholder",i.schema.description)("maxLength",i.schema.maxLength)}}var InputRenderComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.schema={},t.editing=!1,t.onDropEvent=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){var e,t;if("object"!==(null===(e=this.schema)||void 0===e?void 0:e.type)&&"array"!==(null===(t=this.schema)||void 0===t?void 0:t.type)){if(!this.editing&&this.schema.options){var n=this.schema.options.filter((function(e){return!0===e.selected}));n[0]&&this.onChange(n[0].key)}this.value=this.model}},t.prototype.onChange=function(e){this.model=e,this.modelChange.emit(this.model)},t}(BaseSchemaComponent);InputRenderComponent.ɵfac=function(e){return ɵInputRenderComponent_BaseFactory(e||InputRenderComponent)},InputRenderComponent.ɵcmp=i0.ɵɵdefineComponent({type:InputRenderComponent,selectors:[["input-render"]],inputs:{schema:"schema",modelPropertiesPath:"modelPropertiesPath",inputId:"inputId",editing:"editing"},outputs:{onDropEvent:"onDropEvent"},features:[i0.ɵɵInheritDefinitionFeature],decls:5,vars:4,consts:[[1,"schema-input-container"],["class","form-control","dndDropzone","",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange",4,"ngIf"],["class","form-control custom-select",3,"id","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["dndDropzone","",3,"model","inputId","placeholder","maxLength","modelChange",4,"ngIf"],["dndDropzone","",1,"form-control",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange"],[1,"form-control","custom-select",3,"id","ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngIf"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value"],[3,"value","selected"],["dndDropzone","",3,"model","inputId","placeholder","maxLength","modelChange"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"div",0),i0.ɵɵtemplate(1,InputRenderComponent_input_1_Template,1,7,"input",1),i0.ɵɵtemplate(2,InputRenderComponent_select_2_Template,3,6,"select",2),i0.ɵɵtemplate(3,InputRenderComponent_number_input_3_Template,1,4,"number-input",3),i0.ɵɵtemplate(4,InputRenderComponent_boolean_input_4_Template,1,4,"boolean-input",3),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",("string"===t.schema.type||"password"===t.schema.type)&&!t.schema.options),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf","string"===t.schema.type&&t.schema.options),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf","number"===t.schema.type),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf","boolean"===t.schema.type))},directives:[i1.NgIf,i3.DefaultValueAccessor,i2.DndDropzoneDirective,i3.NgControlStatus,i3.NgModel,i3.MaxLengthValidator,i3.SelectControlValueAccessor,i1.NgForOf,i3.NgSelectOption,i3.ɵangular_packages_forms_forms_x,NumberInputComponent,BooleanInputComponent],pipes:[i7.TranslatePipe],styles:[""]});var ɵInputRenderComponent_BaseFactory=i0.ɵɵgetInheritedFactory(InputRenderComponent);function SchemaInputComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",1),i0.ɵɵelementStart(1,"div",2),i0.ɵɵelementStart(2,"field-render",3),i0.ɵɵelementStart(3,"input-render",4),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.model[t.schema.id]=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("label",i.schema.title)("tooltip",i.schema.help)("inputId",i.getId(i.index)),i0.ɵɵadvance(1),i0.ɵɵproperty("inputId",i.getId(i.index))("schema",i.schema)("model",i.model[i.schema.id])("modelPropertiesPath","mappingAttributes."+i.schema.id)("editing",i.editing)}}function SchemaInputComponent_div_1_span_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",7),i0.ɵɵpipe(1,"translate"),i0.ɵɵtext(2,"?"),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext(2);i0.ɵɵpropertyInterpolate("matTooltip",i0.ɵɵpipeBind1(1,1,n.schema.help))}}function SchemaInputComponent_div_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",1),i0.ɵɵelementStart(1,"div",2),i0.ɵɵelementStart(2,"label",5),i0.ɵɵtext(3),i0.ɵɵtemplate(4,SchemaInputComponent_div_1_span_4_Template,3,3,"span",6),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"input-render",4),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.model[t.schema.id]=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("htmlFor",i.getId(i.index)),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",i.schema.title," "),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",i.schema.help),i0.ɵɵadvance(1),i0.ɵɵproperty("inputId",i.getId(i.index))("schema",i.schema)("model",i.model[i.schema.id])("modelPropertiesPath","mappingAttributes."+i.schema.id)("editing",i.editing)}}var SchemaInputComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.editing=!1,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.loaded=!0},t.prototype.getId=function(e){return this.idPrefix+"-struct-"+e},t}(BaseSchemaComponent);SchemaInputComponent.ɵfac=function(e){return ɵSchemaInputComponent_BaseFactory(e||SchemaInputComponent)},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(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaInputComponent_div_0_Template,4,8,"div",0),i0.ɵɵtemplate(1,SchemaInputComponent_div_1_Template,6,8,"div",0)),2&e&&(i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"array"!==t.schema.type&&"object"!==t.schema.type&&t.schema.minLength&&t.schema.minLength>0),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"array"!==t.schema.type&&"object"!==t.schema.type&&(!t.schema.minLength||0===t.schema.minLength)))},directives:[i1.NgIf,FieldRenderComponent,InputRenderComponent,i4.MatTooltip],pipes:[i7.TranslatePipe],styles:[""]});var ɵSchemaInputComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaInputComponent);function SchemaObjectComponent_div_0_div_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",5),i0.ɵɵelementStart(1,"div",6),i0.ɵɵelementStart(2,"label",7),i0.ɵɵtext(3),i0.ɵɵpipe(4,"translate"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"schema-custom-attributes",8),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext(2);return t.model[t.schema.id].customAttributes=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,3,"STEP.ADDITIONAL_ATTRIBUTES")),i0.ɵɵadvance(2),i0.ɵɵproperty("model",i.model[i.schema.id].customAttributes)("onDropFunction",i.onDrop)}}function SchemaObjectComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",1),i0.ɵɵelementStart(1,"div",2),i0.ɵɵtext(2),i0.ɵɵelementEnd(),i0.ɵɵelementStart(3,"schema-form",3),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.model[t.schema.id]=e})),i0.ɵɵelementEnd(),i0.ɵɵtemplate(4,SchemaObjectComponent_div_0_div_4_Template,6,5,"div",4),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate(i.schema.title),i0.ɵɵadvance(1),i0.ɵɵproperty("idPrefix",i.idPrefix)("model",i.model[i.schema.id])("schemas",i.getSchemaProperties())("editing",i.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",i.model[i.schema.id]&&i.schema.customProperties)}}var SchemaObjectComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.editing=!1,t.onDropEvent=new i0.EventEmitter,t.loaded=!1,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){var e;"object"===(null===(e=this.schema)||void 0===e?void 0:e.type)&&this.model&&(this.model[this.schema.id]=this.model[this.schema.id]||{}),this.loaded=!0},t.prototype.onDrop=function(e,t){return onDropStruct(e,t)},t}(BaseSchemaComponent);SchemaObjectComponent.ɵfac=function(e){return ɵSchemaObjectComponent_BaseFactory(e||SchemaObjectComponent)},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(e,t){1&e&&i0.ɵɵtemplate(0,SchemaObjectComponent_div_0_Template,5,6,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"object"==t.schema.type)},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)}"]});var ɵSchemaObjectComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaObjectComponent),SchemaValidationField=function(){function e(e,t,n){this.emptyFields=e,this.invalidMinLengthFields=t,this.invalidMaxLengthFields=n}return e.prototype.isValidSchemaFields=function(){var e,t,n;return(null===(e=this.emptyFields)||void 0===e?void 0:e.length)<1&&(null===(t=this.invalidMinLengthFields)||void 0===t?void 0:t.length)<1&&(null===(n=this.invalidMaxLengthFields)||void 0===n?void 0:n.length)<1},e.prototype.isInvalidSchemaFields=function(){return!this.isValidSchemaFields()},e}(),SchemaFieldsService=function(){function e(e){this.translate=e}return e.prototype.validateSchemaFields=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,o,r,a;return __generator(this,(function(p){switch(p.label){case 0:return e?(n=[],i=[],o=[],this.processProperties(e,t,n,i,o),r=new SchemaValidationField(n,i,o),a=r,[4,this.getErrorsStringArray(r)]):[2,new SchemaValidationField([],[],[])];case 1:return a.validationErrorsLabel=p.sent(),[2,r]}}))}))},e.prototype.processProperties=function(e,t,n,i,o,r){var a,p;try{for(var l=__values(e),m=l.next();!m.done;m=l.next()){var s=m.value;if("object"!==s.type&&"array"!==s.type||!s.properties)if("array"!==s.type||s.properties){var c=r?t:t[s.id];(null==s?void 0:s.canRender)&&(null==s?void 0:s.minLength)>0&&(void 0===c||""===c||null===c)?n.push(s):(null==s?void 0:s.canRender)&&(null==s?void 0:s.minLength)>0&&(null==c?void 0:c.length)<s.minLength?i.push(s):(null==s?void 0:s.canRender)&&(null==s?void 0:s.maxLength)>0&&(null==c?void 0:c.length)>s.maxLength&&o.push(s)}else{var d=Object.assign({},s);d.type="string",this.processProperties([d],t[s.id],n,i,o,!0)}else this.processProperties(s.properties,t[s.id],n,i,o,!0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(p=l.return)&&p.call(l)}finally{if(a)throw a.error}}},e.prototype.getErrorsStringArray=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,o,r,a,p,l,m,s,c,d,u,h,f;return __generator(this,(function(g){if(!e.isInvalidSchemaFields())return[2,[]];t=[];try{for(n=__values(e.emptyFields),i=n.next();!i.done;i=n.next())l=i.value,m=l.title||l.id,t.push(this.translate.instant("COMPONENTS.STRUCT.VALIDATION_FIELDS.REQUIRED_FIELD_ERROR",{fieldName:m}))}catch(e){s={error:e}}finally{try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(s)throw s.error}}try{for(o=__values(e.invalidMinLengthFields),r=o.next();!r.done;r=o.next())l=r.value,m=l.title||l.id,t.push(this.translate.instant("COMPONENTS.STRUCT.VALIDATION_FIELDS.MINLENGTH_FIELD_ERROR",{fieldName:m,minLength:l.minLength}))}catch(e){d={error:e}}finally{try{r&&!r.done&&(u=o.return)&&u.call(o)}finally{if(d)throw d.error}}try{for(a=__values(e.invalidMaxLengthFields),p=a.next();!p.done;p=a.next())l=p.value,m=l.title||l.id,t.push(this.translate.instant("COMPONENTS.STRUCT.VALIDATION_FIELDS.MAXLENGTH_FIELD_ERROR",{fieldName:m,maxLength:l.maxLength}))}catch(e){h={error:e}}finally{try{p&&!p.done&&(f=a.return)&&f.call(a)}finally{if(h)throw h.error}}return[2,t]}))}))},e}();function SchemaFormRenderComponent_div_0_div_2_div_1_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",6),i0.ɵɵelementStart(1,"div",7),i0.ɵɵelementStart(2,"label",8),i0.ɵɵtext(3),i0.ɵɵpipe(4,"translate"),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"schema-custom-attributes",9),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext(3).model.customAttributes=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext(3);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,3,"STEP.ADDITIONAL_ATTRIBUTES")),i0.ɵɵadvance(2),i0.ɵɵproperty("model",i.model.customAttributes)("onDropFunction",i.onDrop)}}function SchemaFormRenderComponent_div_0_div_2_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"div",4),i0.ɵɵtemplate(1,SchemaFormRenderComponent_div_0_div_2_div_1_Template,6,5,"div",5),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext(2);i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",n.model&&n.customProperties)}}function SchemaFormRenderComponent_div_0_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",1),i0.ɵɵelementStart(1,"schema-form",2),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵtemplate(2,SchemaFormRenderComponent_div_0_div_2_Template,2,1,"div",3),i0.ɵɵelementEnd()}if(2&e){var i=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("idPrefix",i.idPrefix)("model",i.model)("schemas",i.schemas)("editing",i.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",i.schemas)}}SchemaFieldsService.ɵfac=function(e){return new(e||SchemaFieldsService)(i0.ɵɵinject(i7.TranslateService))},SchemaFieldsService.ɵprov=i0.ɵɵdefineInjectable({token:SchemaFieldsService,factory:SchemaFieldsService.ɵfac});var SchemaFormRenderComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.schemas=[],t.customProperties=!1,t.editing=!1,t.loaded=!1,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){this.loaded=!0},t.prototype.onDrop=function(e,t){return onDropStruct(e,t)},t.prototype.getId=function(e){return this.idPrefix+"-struct-"+e},t}(BaseSchemaComponent);SchemaFormRenderComponent.ɵfac=function(e){return ɵSchemaFormRenderComponent_BaseFactory(e||SchemaFormRenderComponent)},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(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormRenderComponent_div_0_Template,3,5,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded)},directives:[i1.NgIf,SchemaFormComponent,i1.NgForOf,SchemaCustomAttributesComponent],pipes:[i7.TranslatePipe],styles:[""]});var ɵSchemaFormRenderComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent),SchemaFormRenderModule=function(){};SchemaFormRenderModule.ɵmod=i0.ɵɵdefineNgModule({type:SchemaFormRenderModule}),SchemaFormRenderModule.ɵinj=i0.ɵɵdefineInjector({factory:function(e){return new(e||SchemaFormRenderModule)},providers:[SchemaFieldsService],imports:[[i1.CommonModule,i2.DndModule,i3.FormsModule,i4.MatTooltipModule,i7.TranslateModule,i8.InputsModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&i0.ɵɵsetNgModuleScope(SchemaFormRenderModule,{declarations:[ArraySessionComponent,SchemaArrayComponent,FieldRenderComponent,InputRenderComponent,BooleanInputComponent,NumberInputComponent,SchemaInputComponent,SchemaObjectComponent,SchemaFormRenderComponent,SchemaFormComponent,SchemaCustomAttributesComponent],imports:[i1.CommonModule,i2.DndModule,i3.FormsModule,i4.MatTooltipModule,i7.TranslateModule,i8.InputsModule],exports:[ArraySessionComponent,SchemaArrayComponent,FieldRenderComponent,InputRenderComponent,BooleanInputComponent,NumberInputComponent,SchemaInputComponent,SchemaObjectComponent,SchemaFormRenderComponent,SchemaFormComponent,SchemaCustomAttributesComponent]}),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,SchemaArrayComponent,FieldRenderComponent,InputRenderComponent,BooleanInputComponent,NumberInputComponent,SchemaInputComponent,SchemaObjectComponent,SchemaFormRenderComponent,SchemaFormComponent,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]);var TypeScriptCompile=function(){function e(){}return e.addItemToFormProperties=function(e,t,n){t.minLength&&t.minLength>0?e[n]=new i3.FormControl([null,[i3.Validators.required]]):e[n]=new i3.FormControl([null])},e.compileProperties=function(t){var n=[],i={},o={},r=JSON.parse(JSON.stringify(t));if(r.properties)"array"===r.type&&(o=[]),"object"===r.type&&(o={}),r.id="inputData",this.proccessProperties(r,i,"inputData"),n.push(r);else if("array"===r.type)r.id="inputData",o=[],e.addItemToFormProperties(i,r,"inputData"),n.push(r);else if(!r.type)for(var a=0;a<Object.keys(r).length;a++){var p=Object.keys(r)[a],l=r[p];l.id=p,"array"===l.type&&(o[l.id]=[]),"object"===l.type&&(o[l.id]={}),this.proccessProperties(l,i,p),n.push(l)}return n.sort((function(e,t){return e.propertyOrder-t.propertyOrder})),{compiledProperties:n,formProperties:i,inputData:o}},e.proccessProperties=function(t,n,i){if(this.hasProperties(t)){for(var o=[],r=0;r<Object.keys(t.properties).length;r++){var a=Object.keys(t.properties)[r],p=t.properties[a];p.id=a,this.hasProperties(p)?(this.proccessProperties(p,n,a),o.push(p)):(e.addItemToFormProperties(n,p,a),o.push(p))}t.properties=o}else e.addItemToFormProperties(n,t,i)},e.hasProperties=function(e){return"object"===e.type||"array"===e.type&&e.properties},e}();exports.ArraySessionComponent=ArraySessionComponent,exports.BaseSchemaComponent=BaseSchemaComponent,exports.BooleanInputComponent=BooleanInputComponent,exports.FieldRenderComponent=FieldRenderComponent,exports.InputRenderComponent=InputRenderComponent,exports.NumberInputComponent=NumberInputComponent,exports.SchemaArrayComponent=SchemaArrayComponent,exports.SchemaCustomAttributesComponent=SchemaCustomAttributesComponent,exports.SchemaFieldsService=SchemaFieldsService,exports.SchemaFormComponent=SchemaFormComponent,exports.SchemaFormRenderComponent=SchemaFormRenderComponent,exports.SchemaFormRenderModule=SchemaFormRenderModule,exports.SchemaInputComponent=SchemaInputComponent,exports.SchemaObjectComponent=SchemaObjectComponent,exports.SchemaValidationField=SchemaValidationField,exports.TypeScriptCompile=TypeScriptCompile,Object.defineProperty(exports,"__esModule",{value:!0})}));
16
+ //# sourceMappingURL=apipass-schemas.umd.min.js.map