@apipass/schemas 0.2.8 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/apipass-schemas.umd.js +18 -18
- package/bundles/apipass-schemas.umd.js.map +1 -1
- package/bundles/apipass-schemas.umd.min.js +1 -1
- package/bundles/apipass-schemas.umd.min.js.map +1 -1
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +19 -19
- package/fesm2015/apipass-schemas.js +18 -18
- package/fesm2015/apipass-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema-custom-attributes/schema-custom-attributes.d.ts +1 -1
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
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,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function __decorate(e,t,n,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(l=(a<3?i(l):a>3?i(t,n,l):i(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l}function __param(e,t){return function(n,o){t(n,o,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,o){return new(n||(n=Promise))((function(i,a){function l(e){try{d(o.next(e))}catch(e){a(e)}}function r(e){try{d(o.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}d((o=o.apply(e,t||[])).next())}))}function __generator(e,t){var n,o,i,a,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(a){return function(r){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,o=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){l.label=a[1];break}if(6===a[0]&&l.label<i[1]){l.label=i[1],i=a;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(a);break}i[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,r])}}}var __createBinding=Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=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],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],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 o,i,a=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return l}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 o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],l=0,r=a.length;l<r;l++,i++)o[i]=a[l];return o}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 o,i=n.apply(e,t||[]),a=[];return o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o;function l(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){a.push([e,t,n,o])>1||r(e,t)}))})}function r(e,t){try{(n=i[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(d,m):s(a[0][2],n)}catch(e){s(a[0][3],e)}var n}function d(e){r("next",e)}function m(e){r("throw",e)}function s(e,t){e(t),a.shift(),a.length&&r(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:__await(e[o](t)),done:"return"===o}:i?i(t):t}:i}}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={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(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.prototype.onDrop=function(e,t){return t||(t=""),t+="{{"+e.data+"}}"},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_4_div_4_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}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext();return t.loop=o.onDrop(e,t.loop)})),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}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext();return t.alias=o.onDrop(e,t.alias)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit;i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",o.loop)("ngModelOptions",i0.ɵɵpureFunction0(4,_c0)),i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",o.alias)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0))}}function ArraySessionComponent_div_4_ng_container_5_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_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",7),i0.ɵɵelementStart(1,"div",8),i0.ɵɵtext(2),i0.ɵɵelementStart(3,"i",9),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=t.$implicit;return i0.ɵɵnextContext().remove(e)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵtemplate(4,ArraySessionComponent_div_4_div_4_Template,9,6,"div",10),i0.ɵɵtemplate(5,ArraySessionComponent_div_4_ng_container_5_Template,1,0,"ng-container",11),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=t.index,a=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate2("",a.removeLabel," ",i+1," "),i0.ɵɵadvance(2),i0.ɵɵproperty("ngIf",o.mappingAttributes||""===o.mappingAttributes),i0.ɵɵadvance(1),i0.ɵɵproperty("ngTemplateOutlet",a.subsectionItem)("ngTemplateOutletContext",i0.ɵɵpureFunction1(9,_c2,i0.ɵɵpureFunction3(5,_c1,a.model,i,o.mappingAttributes||""===o.mappingAttributes?o.mappingAttributes:o)))}}function ArraySessionComponent_button_9_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.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(o.addLoopLabel)}}var ArraySessionComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.label="",t.removeLabel="Remove",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.showAddLoop=!0,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 o;(1&e&&i0.ɵɵcontentQuery(n,i0.TemplateRef,!0,i0.TemplateRef),2&e)&&(i0.ɵɵqueryRefresh(o=i0.ɵɵloadQuery())&&(t.subsectionItem=o.first))},inputs:{label:"label",removeLabel:"removeLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",showAddLoop:"showAddLoop"},outputs:{onAdd:"onAdd",onAddLoop:"onAddLoop"},features:[i0.ɵɵInheritDefinitionFeature],decls:10,vars:5,consts:[[1,"row"],[1,"col-md-12"],[1,"info-label","bold"],["class","subsection-element",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row","add-buttons"],[1,"btn","btn-outline-primary","float-left","btn-personal-edit",3,"click"],["class","btn btn-outline-primary float-left btn-personal-edit ml-2",3,"click",4,"ngIf"],[1,"subsection-element"],[1,"subsection-item-title"],[1,"far","fa-trash-alt",3,"click"],["class","row",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"col-md-8"],[1,"info-label"],["type","text","dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange","dndDrop"],[1,"col-md-4"],[1,"btn","btn-outline-primary","float-left","btn-personal-edit","ml-2",3,"click"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"div",1),i0.ɵɵelementStart(2,"label",2),i0.ɵɵtext(3),i0.ɵɵelementEnd(),i0.ɵɵtemplate(4,ArraySessionComponent_div_4_Template,6,11,"div",3),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"div",4),i0.ɵɵelementStart(6,"div",1),i0.ɵɵelementStart(7,"button",5),i0.ɵɵlistener("click",(function(){return t.add()})),i0.ɵɵtext(8),i0.ɵɵelementEnd(),i0.ɵɵtemplate(9,ArraySessionComponent_button_9_Template,2,1,"button",6),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(t.label),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",t.model)("ngForTrackBy",t.trackByIndex),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(t.addItemLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.showAddLoop))},directives:[i1.NgForOf,i1.NgIf,i1.NgTemplateOutlet,i3.DefaultValueAccessor,i2.DndDropzoneDirective,i3.NgControlStatus,i3.NgModel],styles:[".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"]});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",3),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementStart(3,"schema-array",3),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=t.index,a=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("addItemLabel",a.addItemLabel)("addLoopLabel",a.addLoopLabel)("additionalAttributesLabel",a.additionalAttributesLabel)("customAttributeRemoveLabel",a.customAttributeRemoveLabel)("newCustomFieldNameLabel",a.newCustomFieldNameLabel)("newCustomFieldValueLabel",a.newCustomFieldValueLabel)("newCustomFieldAddLabel",a.newCustomFieldAddLabel)("newCustomFieldSaveLabel",a.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",a.newCustomFieldCancelLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("addItemLabel",a.addItemLabel)("addLoopLabel",a.addLoopLabel)("additionalAttributesLabel",a.additionalAttributesLabel)("customAttributeRemoveLabel",a.customAttributeRemoveLabel)("newCustomFieldNameLabel",a.newCustomFieldNameLabel)("newCustomFieldValueLabel",a.newCustomFieldValueLabel)("newCustomFieldAddLabel",a.newCustomFieldAddLabel)("newCustomFieldSaveLabel",a.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",a.newCustomFieldCancelLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i)}}var SchemaFormComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schemas:"schemas",customProperties:"customProperties",editing:"editing",inputType:"inputType"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema-properties",4,"ngFor","ngForOf"],[1,"schema-properties"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","idPrefix","model","schema","editing","index","modelChange"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schema","editing","index","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormComponent_div_0_Template,4,48,"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.ɵɵelementEnd(),i0.ɵɵelementStart(6,"input",11),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),t.$implicit.value=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var o=t.$implicit;return i0.ɵɵnextContext().onDropAttr(e,o)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=i0.ɵɵnextContext();i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.label),i0.ɵɵadvance(2),i0.ɵɵproperty("matTooltip",i.customAttributeRemoveLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(4,_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.ɵɵelementStart(5,"strong"),i0.ɵɵtext(6,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(7,"input",14),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField.label=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(8,"div",13),i0.ɵɵelementStart(9,"div",7),i0.ɵɵelementStart(10,"label",8),i0.ɵɵtext(11),i0.ɵɵelementStart(12,"strong"),i0.ɵɵtext(13,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(14,"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.onDropAttr(e,t.newCustomField)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(o.newCustomFieldNameLabel),i0.ɵɵadvance(3),i0.ɵɵproperty("ngModel",o.newCustomField.label)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$1)),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(o.newCustomFieldValueLabel),i0.ɵɵadvance(3),i0.ɵɵproperty("ngModel",o.newCustomField.value)("ngModelOptions",i0.ɵɵpureFunction0(7,_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.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldAddLabel," ")}}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.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldCancelLabel," ")}}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.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldSaveLabel," ")}}var SchemaCustomAttributesComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",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.onDropAttr=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",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel"},outputs:{onSaveAttribute:"onSaveAttribute",onDropOnAttribute:"onDropOnAttribute"},features:[i0.ɵɵInheritDefinitionFeature],decls:7,vars:5,consts:[["class","row custom-attributes",4,"ngFor","ngForOf"],["class","struct-custom-field",4,"ngIf"],[1,"row","actions-buttons"],[1,"col-md-12","pull-right"],["class","btn btn-outline-primary float-left",3,"click",4,"ngIf"],["class","btn btn-outline-danger float-left ml-2",3,"click",4,"ngIf"],[1,"row","custom-attributes"],[1,"col-md-12"],[1,"info-label"],[1,"customAttributeDeleteIcon",3,"click"],[1,"far","fa-trash-alt",3,"matTooltip"],["dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange","dndDrop"],[1,"struct-custom-field"],[1,"row"],[1,"form-control",3,"ngModel","ngModelOptions","ngModelChange"],[1,"btn","btn-outline-primary","float-left",3,"click"],[1,"btn","btn-outline-danger","float-left","ml-2",3,"click"]],template:function(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaCustomAttributesComponent_div_0_Template,7,5,"div",0),i0.ɵɵtemplate(1,SchemaCustomAttributesComponent_div_1_Template,15,8,"div",1),i0.ɵɵelementStart(2,"div",2),i0.ɵɵelementStart(3,"div",3),i0.ɵɵtemplate(4,SchemaCustomAttributesComponent_button_4_Template,2,1,"button",4),i0.ɵɵtemplate(5,SchemaCustomAttributesComponent_button_5_Template,2,1,"button",5),i0.ɵɵtemplate(6,SchemaCustomAttributesComponent_button_6_Template,2,1,"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],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,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index].mappingAttributes=e})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("selectPlaceHolderLabel",i.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",i.selectSearchPlaceHolderLabel)("selectClearLabel",i.selectClearLabel)("selectNotFoundLabel",i.selectNotFoundLabel)("requiredLabel",i.requiredLabel)("addItemLabel",i.addItemLabel)("addLoopLabel",i.addLoopLabel)("additionalAttributesLabel",i.additionalAttributesLabel)("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("idPrefix",i.idPrefix)("model",i.model[i.schema.id][o.index].mappingAttributes)("schemas",i.getSchemaProperties())("editing",i.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,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index]=e})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("selectPlaceHolderLabel",i.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",i.selectSearchPlaceHolderLabel)("selectClearLabel",i.selectClearLabel)("selectNotFoundLabel",i.selectNotFoundLabel)("requiredLabel",i.requiredLabel)("addItemLabel",i.addItemLabel)("addLoopLabel",i.addLoopLabel)("additionalAttributesLabel",i.additionalAttributesLabel)("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("idPrefix",i.idPrefix)("model",i.model[i.schema.id][o.index])("schemas",i.getSchemaProperties())("editing",i.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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"schema-custom-attributes",8),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index].customAttributes=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("model",i.model[i.schema.id][o.index].customAttributes)("onDropFunction",i.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,18,"schema-form",2),i0.ɵɵtemplate(1,SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template,1,18,"schema-form",2),i0.ɵɵtemplate(2,SchemaArrayComponent_div_0_ng_template_2_div_2_Template,5,9,"div",3)),2&e){var n=t.$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngIf",void 0!==o.model[o.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",null==o.model[o.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.model[o.schema.id][n.index]&&o.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 o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("label",o.schema.title)("removeLabel",o.schema.title)("model",o.model[o.schema.id])("showAddLoop",!0!==o.schema.withoutLoop)}}var _c0$2=function(){return{standalone:!0}};function SchemaArrayComponent_div_1_ng_template_2_input_2_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,o=i0.ɵɵnextContext(2);return t.items[t.index].mappingAttributes=o.onDrop(e,t.items[t.index].mappingAttributes)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",o.items[o.index].mappingAttributes)("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",i.getId(i.index)+"-"+o.index)}}function SchemaArrayComponent_div_1_ng_template_2_ng_template_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]=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);return t.items[t.index]=o.onDrop(e,t.items[t.index])})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",o.items[o.index])("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",i.getId(i.index)+"-"+o.index)}}function SchemaArrayComponent_div_1_ng_template_2_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"label",9),i0.ɵɵtext(1),i0.ɵɵelementEnd(),i0.ɵɵtemplate(2,SchemaArrayComponent_div_1_ng_template_2_input_2_Template,1,4,"input",10),i0.ɵɵtemplate(3,SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template,1,4,"ng-template",null,11,i0.ɵɵtemplateRefExtractor)),2&e){var n=t.$implicit,o=i0.ɵɵreference(4),i=i0.ɵɵnextContext(2);i0.ɵɵproperty("htmlFor",i.getId(i.index)+"-"+n.index),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(i.schema.title),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",n.items[n.index].mappingAttributes||""===n.items[n.index].mappingAttributes)("ngIfElse",o)}}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,5,4,"ng-template"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("label",o.schema.title)("removeLabel",o.schema.title)("model",o.model[o.schema.id])("showAddLoop",!0!==o.schema.withoutLoop)}}var SchemaArrayComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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 o=n.schema.properties[e];"object"===o.type?t[o.id]={}:"array"===o.type&&(t[o.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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schema:"schema",editing:"editing",index:"index"},features:[i0.ɵɵInheritDefinitionFeature],decls:2,vars:2,consts:[[4,"ngIf"],[3,"addItemLabel","addLoopLabel","label","removeLabel","model","showAddLoop","modelChange","onAdd","onAddLoop"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange",4,"ngIf"],["class","row struct-custom-properties",4,"ngIf"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"],[1,"info-label",3,"htmlFor"],["class","form-control","type","text","dndDropzone","",3,"ngModel","ngModelOptions","id","ngModelChange","dndDrop",4,"ngIf","ngIfElse"],["elseBlock",""],["type","text","dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","id","ngModelChange","dndDrop"]],template:function(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaArrayComponent_div_0_Template,3,6,"div",0),i0.ɵɵtemplate(1,SchemaArrayComponent_div_1_Template,3,6,"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],styles:[""]});var ɵSchemaArrayComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaArrayComponent),_c0$3=function(e){return{"has-error":e}};function FieldRenderComponent_small_3_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"small",0),i0.ɵɵtext(1),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(2,_c0$3,n.state&&!n.state.valid&&n.state.errors)),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(n.requiredLabel)}}function FieldRenderComponent_span_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",4),i0.ɵɵelement(1,"i",5),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("matTooltip",n.tooltip)}}var _c1$1=["*"],FieldRenderComponent=function(){this.requiredLabel="(required)",this.label="",this.required=!0};FieldRenderComponent.ɵfac=function(e){return new(e||FieldRenderComponent)},FieldRenderComponent.ɵcmp=i0.ɵɵdefineComponent({type:FieldRenderComponent,selectors:[["field-render"]],inputs:{requiredLabel:"requiredLabel",label:"label",inputId:"inputId",tooltip:"tooltip",required:"required",state:"state"},ngContentSelectors:_c1$1,decls:6,vars:7,consts:[[3,"ngClass"],[1,"info-label","bold",3,"htmlFor"],[3,"ngClass",4,"ngIf"],["class","info-icon",3,"matTooltip",4,"ngIf"],[1,"info-icon",3,"matTooltip"],[1,"far","fa-question-circle"]],template:function(e,t){1&e&&(i0.ɵɵprojectionDef(),i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"label",1),i0.ɵɵtext(2),i0.ɵɵtemplate(3,FieldRenderComponent_small_3_Template,2,4,"small",2),i0.ɵɵtemplate(4,FieldRenderComponent_span_4_Template,2,1,"span",3),i0.ɵɵelementEnd(),i0.ɵɵprojection(5),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(5,_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(" ",t.label," "),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.required),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.tooltip))},directives:[i1.NgClass,i1.NgIf,i4.MatTooltip],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.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.changeValue(n)},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:[["dndDropzone","",1,"form-control","number-input",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange","dndDrop"]],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)}))("dndDrop",(function(e){return t.onDropCallBack(e,t.value)})),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,i2.DndDropzoneDirective,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.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.changeValue(n)},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:[["dndDropzone","",1,"form-control",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange","dndDrop"]],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)}))("dndDrop",(function(e){return t.onDropCallBack(e,t.value)})),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,i2.DndDropzoneDirective,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)}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.onDropCallBack(e,t.value)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("placeholder",o.schema.description),i0.ɵɵproperty("type","password"===o.schema.type?"password":"text")("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$6))("id",o.inputId)("maxlength",o.schema.maxLength)}}function InputRenderComponent_select_box_2_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"select-box",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.key)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵproperty("id",o.inputId)("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(12,_c0$6))("placeholder",o.schema.description||o.selectPlaceHolderLabel)("searchPlaceHolder",o.selectSearchPlaceHolderLabel)("clearText",o.selectClearLabel)("notFoundText",o.selectNotFoundLabel)("bindKey","key")("bindValue","value")("enabledSearch",!0)("limitItens",30)("data",o.schema.options)}}function InputRenderComponent_number_input_3_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"number-input",6),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 o=i0.ɵɵnextContext();i0.ɵɵproperty("model",o.value)("inputId",o.inputId)("placeholder",o.schema.description)("maxLength",o.schema.maxLength)}}function InputRenderComponent_boolean_input_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"boolean-input",6),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 o=i0.ɵɵnextContext();i0.ɵɵproperty("model",o.value)("inputId",o.inputId)("placeholder",o.schema.description)("maxLength",o.schema.maxLength)}}var InputRenderComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",t.schema={},t.editing=!1,t.onDropEvent=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){var e,t,n=this;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)(o=this.schema.options.filter((function(e){return!0===e.selected})))[0]&&(this.onChange(o[0].key),this.value=o[0]);else if(this.editing&&this.schema.options&&this.model){var o;(o=this.schema.options.filter((function(e){return e.key===n.model})))[0]&&(this.onChange(o[0].key),this.value=o[0])}else this.value=this.model},t.prototype.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.onChange(n)},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:{selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",schema:"schema",modelPropertiesPath:"modelPropertiesPath",inputId:"inputId",editing:"editing"},outputs:{onDropEvent:"onDropEvent"},features:[i0.ɵɵInheritDefinitionFeature],decls:5,vars:4,consts:[[1,"schema-input-container"],["class","form-control","dndDropzone","",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange","dndDrop",4,"ngIf"],[3,"id","ngModel","ngModelOptions","placeholder","searchPlaceHolder","clearText","notFoundText","bindKey","bindValue","enabledSearch","limitItens","data","ngModelChange",4,"ngIf"],[3,"model","inputId","placeholder","maxLength","modelChange",4,"ngIf"],["dndDropzone","",1,"form-control",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange","dndDrop"],[3,"id","ngModel","ngModelOptions","placeholder","searchPlaceHolder","clearText","notFoundText","bindKey","bindValue","enabledSearch","limitItens","data","ngModelChange"],[3,"model","inputId","placeholder","maxLength","modelChange"]],template:function(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_box_2_Template,1,13,"select-box",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,i7.SelectBoxComponent,NumberInputComponent,BooleanInputComponent],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 o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("requiredLabel",o.requiredLabel)("label",o.schema.title)("tooltip",o.schema.help)("inputId",o.getId(o.index)),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("inputId",o.getId(o.index))("schema",o.schema)("model",o.model[o.schema.id])("modelPropertiesPath","mappingAttributes."+o.schema.id)("editing",o.editing)}}function SchemaInputComponent_div_1_span_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",7),i0.ɵɵtext(1,"?"),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext(2);i0.ɵɵpropertyInterpolate("matTooltip",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,2,1,"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 o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("htmlFor",o.getId(o.index)),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.schema.title," "),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.schema.help),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("inputId",o.getId(o.index))("schema",o.schema)("model",o.model[o.schema.id])("modelPropertiesPath","mappingAttributes."+o.schema.id)("editing",o.editing)}}var SchemaInputComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schema:"schema",editing:"editing",index:"index"},features:[i0.ɵɵInheritDefinitionFeature],decls:2,vars:2,consts:[["class","row schema-input",4,"ngIf"],[1,"row","schema-input"],[1,"col-md-12"],[3,"requiredLabel","label","tooltip","inputId"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","inputId","schema","model","modelPropertiesPath","editing","modelChange"],[1,"info-label","bold",3,"htmlFor"],["class","config-tooltip",3,"matTooltip",4,"ngIf"],[1,"config-tooltip",3,"matTooltip"]],template:function(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaInputComponent_div_0_Template,4,13,"div",0),i0.ɵɵtemplate(1,SchemaInputComponent_div_1_Template,6,12,"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],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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"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 o=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("model",o.model[o.schema.id].customAttributes)("onDropFunction",o.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,5,9,"div",4),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate(o.schema.title),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("requiredLabel",o.requiredLabel)("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("additionalAttributesLabel",o.additionalAttributesLabel)("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("idPrefix",o.idPrefix)("model",o.model[o.schema.id])("schemas",o.getSchemaProperties())("editing",o.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.model[o.schema.id]&&o.schema.customProperties)}}var SchemaObjectComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",modelPropertiesPath:"modelPropertiesPath",inputId:"inputId",editing:"editing",index:"index"},outputs:{onDropEvent:"onDropEvent"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema-object-container",4,"ngIf"],[1,"schema-object-container"],[1,"schema-object-title"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],["class","row struct-custom-properties",4,"ngIf"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaObjectComponent_div_0_Template,5,20,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"object"==t.schema.type)},directives:[i1.NgIf,SchemaFormComponent,SchemaCustomAttributesComponent],styles:[".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"]});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(){}return e.prototype.validateSchemaFields=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,o,i,a,l;return __generator(this,(function(r){switch(r.label){case 0:return e?(n=[],o=[],i=[],this.processProperties(e,t,n,o,i),a=new SchemaValidationField(n,o,i),l=a,[4,this.getErrorsStringArray(a)]):[2,new SchemaValidationField([],[],[])];case 1:return l.validationErrorsLabel=r.sent(),[2,a]}}))}))},e.prototype.processProperties=function(e,t,n,o,i,a){var l,r;try{for(var d=__values(e),m=d.next();!m.done;m=d.next()){var s=m.value;if("object"!==s.type&&"array"!==s.type||!s.properties)if("array"!==s.type||s.properties){var c=a?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?o.push(s):(null==s?void 0:s.canRender)&&(null==s?void 0:s.maxLength)>0&&(null==c?void 0:c.length)>s.maxLength&&i.push(s)}else{var u=Object.assign({},s);u.type="string",this.processProperties([u],t[s.id],n,o,i,!0)}else this.processProperties(s.properties,t[s.id],n,o,i,!0)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}},e.prototype.getErrorsStringArray=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,i,a,l,r,d,m,s,c,u,p,b,C;return __generator(this,(function(h){if(!e.isInvalidSchemaFields())return[2,[]];t=[];try{for(n=__values(e.emptyFields),o=n.next();!o.done;o=n.next())d=o.value,m=d.title||d.id,t.push({type:"emptyFields",fieldName:m})}catch(e){s={error:e}}finally{try{o&&!o.done&&(c=n.return)&&c.call(n)}finally{if(s)throw s.error}}try{for(i=__values(e.invalidMinLengthFields),a=i.next();!a.done;a=i.next())d=a.value,m=d.title||d.id,t.push({type:"invalidMinLengthFields",fieldName:m,minLength:d.minLength})}catch(e){u={error:e}}finally{try{a&&!a.done&&(p=i.return)&&p.call(i)}finally{if(u)throw u.error}}try{for(l=__values(e.invalidMaxLengthFields),r=l.next();!r.done;r=l.next())d=r.value,m=d.title||d.id,t.push({type:"invalidMaxLengthFields",fieldName:m,maxLength:d.maxLength})}catch(e){b={error:e}}finally{try{r&&!r.done&&(C=l.return)&&C.call(l)}finally{if(b)throw b.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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"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 o=i0.ɵɵnextContext(3);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("model",o.model.customAttributes)("onDropFunction",o.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,5,9,"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 o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("requiredLabel",o.requiredLabel)("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("additionalAttributesLabel",o.additionalAttributesLabel)("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("idPrefix",o.idPrefix)("model",o.model)("schemas",o.schemas)("editing",o.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",o.schemas)}}SchemaFieldsService.ɵfac=function(e){return new(e||SchemaFieldsService)},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.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schemas:"schemas",customProperties:"customProperties",editing:"editing",inputType:"inputType"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema",4,"ngIf"],[1,"schema"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],["class","schema-properties",4,"ngFor","ngForOf"],[1,"schema-properties"],["class","row struct-custom-properties",4,"ngIf"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormRenderComponent_div_0_Template,3,19,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded)},directives:[i1.NgIf,SchemaFormComponent,i1.NgForOf,SchemaCustomAttributesComponent],styles:[".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"]});var ɵSchemaFormRenderComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent),TypeScriptCompileBase=function(){function e(){}return e.prototype.getTranslate=function(e){return e},e.prototype.addItemToFormProperties=function(e,t,n){this.translateProperties(t),t.minLength&&t.minLength>0?e[n]=new i3.FormControl([null,[i3.Validators.required]]):e[n]=new i3.FormControl([null])},e.prototype.compileProperties=function(e){var t=[],n={},o={},i=JSON.parse(JSON.stringify(e));if(this.translateProperties(i),i.properties)"array"===i.type&&(o=[]),"object"===i.type&&(o={}),i.id="inputData",this.proccessProperties(i,n,"inputData"),this.translateProperties(i),t.push(i);else if("array"===i.type)i.id="inputData",o=[],this.addItemToFormProperties(n,i,"inputData"),t.push(i);else if(!i.type)for(var a=0;a<Object.keys(i).length;a++){var l=Object.keys(i)[a],r=i[l];r.id=l,"array"===r.type&&(o[r.id]=[]),"object"===r.type&&(o[r.id]={}),this.proccessProperties(r,n,l),this.translateProperties(r),t.push(r)}return t.sort((function(e,t){return e.propertyOrder-t.propertyOrder})),{compiledProperties:t,formProperties:n,inputData:o}},e.prototype.translateProperties=function(e){var t=this;(null==e?void 0:e.title)&&(e.title=this.getTranslate(e.title)),(null==e?void 0:e.description)&&(e.description=this.getTranslate(e.description)),(null==e?void 0:e.options)instanceof Array&&(null==e||e.options.forEach((function(e){return e.value=t.getTranslate(e.value)})))},e.prototype.proccessProperties=function(e,t,n){if(this.translateProperties(e),this.hasProperties(e)){for(var o=[],i=0;i<Object.keys(e.properties).length;i++){var a=Object.keys(e.properties)[i],l=e.properties[a];l.id=a,this.hasProperties(l)?(this.proccessProperties(l,t,a),o.push(l)):(this.addItemToFormProperties(t,l,a),o.push(l))}e.properties=o}else this.addItemToFormProperties(t,e,n)},e.prototype.hasProperties=function(e){return"object"===e.type||"array"===e.type&&e.properties},e}();function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(e){return e||new TypeScriptCompileBase}TypeScriptCompileBase.ɵfac=function(e){return new(e||TypeScriptCompileBase)},TypeScriptCompileBase.ɵprov=i0.ɵɵdefineInjectable({token:TypeScriptCompileBase,factory:TypeScriptCompileBase.ɵfac,providedIn:"root"});var APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER={provide:TypeScriptCompileBase,deps:[[new i0.Optional,new i0.SkipSelf,TypeScriptCompileBase]],useFactory:APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY},SchemaFormRenderModule=function(){};SchemaFormRenderModule.ɵmod=i0.ɵɵdefineNgModule({type:SchemaFormRenderModule}),SchemaFormRenderModule.ɵinj=i0.ɵɵdefineInjector({factory:function(e){return new(e||SchemaFormRenderModule)},providers:[SchemaFieldsService,APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER],imports:[[i1.CommonModule,i2.DndModule,i3.FormsModule,i4.MatTooltipModule,i7.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.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.SelectBoxComponent,i7.SelectEnumComponent,i7.InputTextComponent,i7.InputPasswordComponent,i7.InputAvatarComponent,i7.InputFileComponent,i7.CustomSelectComponent,i7.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]),exports.APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY=APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY,exports.APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER=APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER,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.TypeScriptCompileBase=TypeScriptCompileBase,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
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,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function __decorate(e,t,n,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(l=(a<3?i(l):a>3?i(t,n,l):i(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l}function __param(e,t){return function(n,o){t(n,o,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,o){return new(n||(n=Promise))((function(i,a){function l(e){try{d(o.next(e))}catch(e){a(e)}}function r(e){try{d(o.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}d((o=o.apply(e,t||[])).next())}))}function __generator(e,t){var n,o,i,a,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(a){return function(r){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,o=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){l.label=a[1];break}if(6===a[0]&&l.label<i[1]){l.label=i[1],i=a;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(a);break}i[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,r])}}}var __createBinding=Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=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],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],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 o,i,a=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return l}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 o=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],l=0,r=a.length;l<r;l++,i++)o[i]=a[l];return o}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 o,i=n.apply(e,t||[]),a=[];return o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o;function l(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){a.push([e,t,n,o])>1||r(e,t)}))})}function r(e,t){try{(n=i[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(d,m):s(a[0][2],n)}catch(e){s(a[0][3],e)}var n}function d(e){r("next",e)}function m(e){r("throw",e)}function s(e,t){e(t),a.shift(),a.length&&r(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:__await(e[o](t)),done:"return"===o}:i?i(t):t}:i}}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={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(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.prototype.onDrop=function(e,t){return t||(t=""),t+="{{"+e.data+"}}"},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_4_div_4_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}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext();return t.loop=o.onDrop(e,t.loop)})),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}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext();return t.alias=o.onDrop(e,t.alias)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit;i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",o.loop)("ngModelOptions",i0.ɵɵpureFunction0(4,_c0)),i0.ɵɵadvance(4),i0.ɵɵproperty("ngModel",o.alias)("ngModelOptions",i0.ɵɵpureFunction0(5,_c0))}}function ArraySessionComponent_div_4_ng_container_5_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_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"div",7),i0.ɵɵelementStart(1,"div",8),i0.ɵɵtext(2),i0.ɵɵelementStart(3,"i",9),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=t.$implicit;return i0.ɵɵnextContext().remove(e)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵtemplate(4,ArraySessionComponent_div_4_div_4_Template,9,6,"div",10),i0.ɵɵtemplate(5,ArraySessionComponent_div_4_ng_container_5_Template,1,0,"ng-container",11),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=t.index,a=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate2("",a.removeLabel," ",i+1," "),i0.ɵɵadvance(2),i0.ɵɵproperty("ngIf",o.mappingAttributes||""===o.mappingAttributes),i0.ɵɵadvance(1),i0.ɵɵproperty("ngTemplateOutlet",a.subsectionItem)("ngTemplateOutletContext",i0.ɵɵpureFunction1(9,_c2,i0.ɵɵpureFunction3(5,_c1,a.model,i,o.mappingAttributes||""===o.mappingAttributes?o.mappingAttributes:o)))}}function ArraySessionComponent_button_9_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.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(o.addLoopLabel)}}var ArraySessionComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.label="",t.removeLabel="Remove",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.showAddLoop=!0,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 o;(1&e&&i0.ɵɵcontentQuery(n,i0.TemplateRef,!0,i0.TemplateRef),2&e)&&(i0.ɵɵqueryRefresh(o=i0.ɵɵloadQuery())&&(t.subsectionItem=o.first))},inputs:{label:"label",removeLabel:"removeLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",showAddLoop:"showAddLoop"},outputs:{onAdd:"onAdd",onAddLoop:"onAddLoop"},features:[i0.ɵɵInheritDefinitionFeature],decls:10,vars:5,consts:[[1,"row"],[1,"col-md-12"],[1,"info-label","bold"],["class","subsection-element",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row","add-buttons"],[1,"btn","btn-outline-primary","float-left","btn-personal-edit",3,"click"],["class","btn btn-outline-primary float-left btn-personal-edit ml-2",3,"click",4,"ngIf"],[1,"subsection-element"],[1,"subsection-item-title"],[1,"far","fa-trash-alt",3,"click"],["class","row",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"col-md-8"],[1,"info-label"],["type","text","dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange","dndDrop"],[1,"col-md-4"],[1,"btn","btn-outline-primary","float-left","btn-personal-edit","ml-2",3,"click"]],template:function(e,t){1&e&&(i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"div",1),i0.ɵɵelementStart(2,"label",2),i0.ɵɵtext(3),i0.ɵɵelementEnd(),i0.ɵɵtemplate(4,ArraySessionComponent_div_4_Template,6,11,"div",3),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(5,"div",4),i0.ɵɵelementStart(6,"div",1),i0.ɵɵelementStart(7,"button",5),i0.ɵɵlistener("click",(function(){return t.add()})),i0.ɵɵtext(8),i0.ɵɵelementEnd(),i0.ɵɵtemplate(9,ArraySessionComponent_button_9_Template,2,1,"button",6),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(t.label),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",t.model)("ngForTrackBy",t.trackByIndex),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(t.addItemLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.showAddLoop))},directives:[i1.NgForOf,i1.NgIf,i1.NgTemplateOutlet,i3.DefaultValueAccessor,i2.DndDropzoneDirective,i3.NgControlStatus,i3.NgModel],styles:[".subsection-element[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;border-radius:5px;margin-top:10px;padding:5px 15px 15px}.subsection-element[_ngcontent-%COMP%]:first-child{margin-top:0!important}.btn-personal-edit[_ngcontent-%COMP%]{margin:5px 0}.subsection-item-title[_ngcontent-%COMP%]{align-items:center;background:#eee;border-bottom:1px solid #ccc;border-radius:5px 5px 0 0;display:flex;font-weight:700;justify-content:space-between;margin-bottom:5px;margin-left:-15px;margin-top:-5px;padding:7px 10px 7px 14px;width:calc(100% + 30px)}.subsection-item-title[_ngcontent-%COMP%] .fa-trash-alt[_ngcontent-%COMP%]{color:red;cursor:pointer}.subsection-item-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.add-buttons[_ngcontent-%COMP%]{margin-top:5px}"]});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",3),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementStart(3,"schema-array",3),i0.ɵɵlistener("modelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().model=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=t.index,a=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("addItemLabel",a.addItemLabel)("addLoopLabel",a.addLoopLabel)("additionalAttributesLabel",a.additionalAttributesLabel)("customAttributeRemoveLabel",a.customAttributeRemoveLabel)("newCustomFieldNameLabel",a.newCustomFieldNameLabel)("newCustomFieldValueLabel",a.newCustomFieldValueLabel)("newCustomFieldAddLabel",a.newCustomFieldAddLabel)("newCustomFieldSaveLabel",a.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",a.newCustomFieldCancelLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",a.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",a.selectSearchPlaceHolderLabel)("selectClearLabel",a.selectClearLabel)("selectNotFoundLabel",a.selectNotFoundLabel)("requiredLabel",a.requiredLabel)("addItemLabel",a.addItemLabel)("addLoopLabel",a.addLoopLabel)("additionalAttributesLabel",a.additionalAttributesLabel)("customAttributeRemoveLabel",a.customAttributeRemoveLabel)("newCustomFieldNameLabel",a.newCustomFieldNameLabel)("newCustomFieldValueLabel",a.newCustomFieldValueLabel)("newCustomFieldAddLabel",a.newCustomFieldAddLabel)("newCustomFieldSaveLabel",a.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",a.newCustomFieldCancelLabel)("idPrefix",a.idPrefix)("model",a.model)("schema",o)("editing",a.editing)("index",i)}}var SchemaFormComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schemas:"schemas",customProperties:"customProperties",editing:"editing",inputType:"inputType"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema-properties",4,"ngFor","ngForOf"],[1,"schema-properties"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","idPrefix","model","schema","editing","index","modelChange"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schema","editing","index","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormComponent_div_0_Template,4,48,"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.ɵɵelementEnd(),i0.ɵɵelementStart(6,"input",11),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),t.$implicit.value=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var o=t.$implicit;return i0.ɵɵnextContext().onDropAttr(e,"value",o)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=t.$implicit,i=i0.ɵɵnextContext();i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.label),i0.ɵɵadvance(2),i0.ɵɵproperty("matTooltip",i.customAttributeRemoveLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(4,_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.ɵɵelementStart(5,"strong"),i0.ɵɵtext(6,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(7,"input",11),i0.ɵɵlistener("ngModelChange",(function(e){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField.label=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.onDropAttr(e,"label",t.newCustomField)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(8,"div",13),i0.ɵɵelementStart(9,"div",7),i0.ɵɵelementStart(10,"label",8),i0.ɵɵtext(11),i0.ɵɵelementStart(12,"strong"),i0.ɵɵtext(13,"*"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementStart(14,"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.onDropAttr(e,"value",t.newCustomField)})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(o.newCustomFieldNameLabel),i0.ɵɵadvance(3),i0.ɵɵproperty("ngModel",o.newCustomField.label)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$1)),i0.ɵɵadvance(4),i0.ɵɵtextInterpolate(o.newCustomFieldValueLabel),i0.ɵɵadvance(3),i0.ɵɵproperty("ngModel",o.newCustomField.value)("ngModelOptions",i0.ɵɵpureFunction0(7,_c0$1))}}function SchemaCustomAttributesComponent_button_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",14),i0.ɵɵlistener("click",(function(){return i0.ɵɵrestoreView(n),i0.ɵɵnextContext().newCustomField={}})),i0.ɵɵtext(1),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldAddLabel," ")}}function SchemaCustomAttributesComponent_button_5_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=null})),i0.ɵɵtext(1),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldCancelLabel," ")}}function SchemaCustomAttributesComponent_button_6_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"button",14),i0.ɵɵlistener("click",(function(){i0.ɵɵrestoreView(n);var e=i0.ɵɵnextContext();return e.saveNewAttribute(e.newCustomField)})),i0.ɵɵtext(1),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.newCustomFieldSaveLabel," ")}}var SchemaCustomAttributesComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",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.onDropAttr=function(e,t,n){n[t]||(n[t]=""),n[t]+="{{"+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",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel"},outputs:{onSaveAttribute:"onSaveAttribute",onDropOnAttribute:"onDropOnAttribute"},features:[i0.ɵɵInheritDefinitionFeature],decls:7,vars:5,consts:[["class","row custom-attributes",4,"ngFor","ngForOf"],["class","struct-custom-field",4,"ngIf"],[1,"row","actions-buttons"],[1,"col-md-12","pull-right"],["class","btn btn-outline-primary float-left",3,"click",4,"ngIf"],["class","btn btn-outline-danger float-left ml-2",3,"click",4,"ngIf"],[1,"row","custom-attributes"],[1,"col-md-12"],[1,"info-label"],[1,"customAttributeDeleteIcon",3,"click"],[1,"far","fa-trash-alt",3,"matTooltip"],["dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange","dndDrop"],[1,"struct-custom-field"],[1,"row"],[1,"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,7,5,"div",0),i0.ɵɵtemplate(1,SchemaCustomAttributesComponent_div_1_Template,15,8,"div",1),i0.ɵɵelementStart(2,"div",2),i0.ɵɵelementStart(3,"div",3),i0.ɵɵtemplate(4,SchemaCustomAttributesComponent_button_4_Template,2,1,"button",4),i0.ɵɵtemplate(5,SchemaCustomAttributesComponent_button_5_Template,2,1,"button",5),i0.ɵɵtemplate(6,SchemaCustomAttributesComponent_button_6_Template,2,1,"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],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,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index].mappingAttributes=e})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("selectPlaceHolderLabel",i.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",i.selectSearchPlaceHolderLabel)("selectClearLabel",i.selectClearLabel)("selectNotFoundLabel",i.selectNotFoundLabel)("requiredLabel",i.requiredLabel)("addItemLabel",i.addItemLabel)("addLoopLabel",i.addLoopLabel)("additionalAttributesLabel",i.additionalAttributesLabel)("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("idPrefix",i.idPrefix)("model",i.model[i.schema.id][o.index].mappingAttributes)("schemas",i.getSchemaProperties())("editing",i.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,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index]=e})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("selectPlaceHolderLabel",i.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",i.selectSearchPlaceHolderLabel)("selectClearLabel",i.selectClearLabel)("selectNotFoundLabel",i.selectNotFoundLabel)("requiredLabel",i.requiredLabel)("addItemLabel",i.addItemLabel)("addLoopLabel",i.addLoopLabel)("additionalAttributesLabel",i.additionalAttributesLabel)("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("idPrefix",i.idPrefix)("model",i.model[i.schema.id][o.index])("schemas",i.getSchemaProperties())("editing",i.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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"schema-custom-attributes",8),i0.ɵɵlistener("modelChange",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);return o.model[o.schema.id][t.index].customAttributes=e})),i0.ɵɵelementEnd(),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(i.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",i.customAttributeRemoveLabel)("newCustomFieldNameLabel",i.newCustomFieldNameLabel)("newCustomFieldValueLabel",i.newCustomFieldValueLabel)("newCustomFieldAddLabel",i.newCustomFieldAddLabel)("newCustomFieldSaveLabel",i.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",i.newCustomFieldCancelLabel)("model",i.model[i.schema.id][o.index].customAttributes)("onDropFunction",i.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,18,"schema-form",2),i0.ɵɵtemplate(1,SchemaArrayComponent_div_0_ng_template_2_schema_form_1_Template,1,18,"schema-form",2),i0.ɵɵtemplate(2,SchemaArrayComponent_div_0_ng_template_2_div_2_Template,5,9,"div",3)),2&e){var n=t.$implicit,o=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngIf",void 0!==o.model[o.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",null==o.model[o.schema.id][n.index].loop),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.model[o.schema.id][n.index]&&o.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 o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("label",o.schema.title)("removeLabel",o.schema.title)("model",o.model[o.schema.id])("showAddLoop",!0!==o.schema.withoutLoop)}}var _c0$2=function(){return{standalone:!0}};function SchemaArrayComponent_div_1_ng_template_2_input_2_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,o=i0.ɵɵnextContext(2);return t.items[t.index].mappingAttributes=o.onDrop(e,t.items[t.index].mappingAttributes)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",o.items[o.index].mappingAttributes)("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",i.getId(i.index)+"-"+o.index)}}function SchemaArrayComponent_div_1_ng_template_2_ng_template_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]=e}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext().$implicit,o=i0.ɵɵnextContext(2);return t.items[t.index]=o.onDrop(e,t.items[t.index])})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext().$implicit,i=i0.ɵɵnextContext(2);i0.ɵɵproperty("ngModel",o.items[o.index])("ngModelOptions",i0.ɵɵpureFunction0(3,_c0$2))("id",i.getId(i.index)+"-"+o.index)}}function SchemaArrayComponent_div_1_ng_template_2_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"label",9),i0.ɵɵtext(1),i0.ɵɵelementEnd(),i0.ɵɵtemplate(2,SchemaArrayComponent_div_1_ng_template_2_input_2_Template,1,4,"input",10),i0.ɵɵtemplate(3,SchemaArrayComponent_div_1_ng_template_2_ng_template_3_Template,1,4,"ng-template",null,11,i0.ɵɵtemplateRefExtractor)),2&e){var n=t.$implicit,o=i0.ɵɵreference(4),i=i0.ɵɵnextContext(2);i0.ɵɵproperty("htmlFor",i.getId(i.index)+"-"+n.index),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(i.schema.title),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",n.items[n.index].mappingAttributes||""===n.items[n.index].mappingAttributes)("ngIfElse",o)}}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,5,4,"ng-template"),i0.ɵɵelementEnd(),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("label",o.schema.title)("removeLabel",o.schema.title)("model",o.model[o.schema.id])("showAddLoop",!0!==o.schema.withoutLoop)}}var SchemaArrayComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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 o=n.schema.properties[e];"object"===o.type?t[o.id]={}:"array"===o.type&&(t[o.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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schema:"schema",editing:"editing",index:"index"},features:[i0.ɵɵInheritDefinitionFeature],decls:2,vars:2,consts:[[4,"ngIf"],[3,"addItemLabel","addLoopLabel","label","removeLabel","model","showAddLoop","modelChange","onAdd","onAddLoop"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange",4,"ngIf"],["class","row struct-custom-properties",4,"ngIf"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"],[1,"info-label",3,"htmlFor"],["class","form-control","type","text","dndDropzone","",3,"ngModel","ngModelOptions","id","ngModelChange","dndDrop",4,"ngIf","ngIfElse"],["elseBlock",""],["type","text","dndDropzone","",1,"form-control",3,"ngModel","ngModelOptions","id","ngModelChange","dndDrop"]],template:function(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaArrayComponent_div_0_Template,3,6,"div",0),i0.ɵɵtemplate(1,SchemaArrayComponent_div_1_Template,3,6,"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],styles:[""]});var ɵSchemaArrayComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaArrayComponent),_c0$3=function(e){return{"has-error":e}};function FieldRenderComponent_small_3_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"small",0),i0.ɵɵtext(1),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(2,_c0$3,n.state&&!n.state.valid&&n.state.errors)),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate(n.requiredLabel)}}function FieldRenderComponent_span_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",4),i0.ɵɵelement(1,"i",5),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("matTooltip",n.tooltip)}}var _c1$1=["*"],FieldRenderComponent=function(){this.requiredLabel="(required)",this.label="",this.required=!0};FieldRenderComponent.ɵfac=function(e){return new(e||FieldRenderComponent)},FieldRenderComponent.ɵcmp=i0.ɵɵdefineComponent({type:FieldRenderComponent,selectors:[["field-render"]],inputs:{requiredLabel:"requiredLabel",label:"label",inputId:"inputId",tooltip:"tooltip",required:"required",state:"state"},ngContentSelectors:_c1$1,decls:6,vars:7,consts:[[3,"ngClass"],[1,"info-label","bold",3,"htmlFor"],[3,"ngClass",4,"ngIf"],["class","info-icon",3,"matTooltip",4,"ngIf"],[1,"info-icon",3,"matTooltip"],[1,"far","fa-question-circle"]],template:function(e,t){1&e&&(i0.ɵɵprojectionDef(),i0.ɵɵelementStart(0,"div",0),i0.ɵɵelementStart(1,"label",1),i0.ɵɵtext(2),i0.ɵɵtemplate(3,FieldRenderComponent_small_3_Template,2,4,"small",2),i0.ɵɵtemplate(4,FieldRenderComponent_span_4_Template,2,1,"span",3),i0.ɵɵelementEnd(),i0.ɵɵprojection(5),i0.ɵɵelementEnd()),2&e&&(i0.ɵɵproperty("ngClass",i0.ɵɵpureFunction1(5,_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(" ",t.label," "),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.required),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",t.tooltip))},directives:[i1.NgClass,i1.NgIf,i4.MatTooltip],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.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.changeValue(n)},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:[["dndDropzone","",1,"form-control","number-input",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange","dndDrop"]],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)}))("dndDrop",(function(e){return t.onDropCallBack(e,t.value)})),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,i2.DndDropzoneDirective,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.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.changeValue(n)},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:[["dndDropzone","",1,"form-control",3,"id","placeholder","ngModel","ngModelOptions","maxlength","ngModelChange","dndDrop"]],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)}))("dndDrop",(function(e){return t.onDropCallBack(e,t.value)})),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,i2.DndDropzoneDirective,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)}))("dndDrop",(function(e){i0.ɵɵrestoreView(n);var t=i0.ɵɵnextContext();return t.onDropCallBack(e,t.value)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵpropertyInterpolate("placeholder",o.schema.description),i0.ɵɵproperty("type","password"===o.schema.type?"password":"text")("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(6,_c0$6))("id",o.inputId)("maxlength",o.schema.maxLength)}}function InputRenderComponent_select_box_2_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"select-box",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.key)})),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵproperty("id",o.inputId)("ngModel",o.value)("ngModelOptions",i0.ɵɵpureFunction0(12,_c0$6))("placeholder",o.schema.description||o.selectPlaceHolderLabel)("searchPlaceHolder",o.selectSearchPlaceHolderLabel)("clearText",o.selectClearLabel)("notFoundText",o.selectNotFoundLabel)("bindKey","key")("bindValue","value")("enabledSearch",!0)("limitItens",30)("data",o.schema.options)}}function InputRenderComponent_number_input_3_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"number-input",6),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 o=i0.ɵɵnextContext();i0.ɵɵproperty("model",o.value)("inputId",o.inputId)("placeholder",o.schema.description)("maxLength",o.schema.maxLength)}}function InputRenderComponent_boolean_input_4_Template(e,t){if(1&e){var n=i0.ɵɵgetCurrentView();i0.ɵɵelementStart(0,"boolean-input",6),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 o=i0.ɵɵnextContext();i0.ɵɵproperty("model",o.value)("inputId",o.inputId)("placeholder",o.schema.description)("maxLength",o.schema.maxLength)}}var InputRenderComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",t.schema={},t.editing=!1,t.onDropEvent=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngAfterContentInit=function(){var e,t,n=this;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)(o=this.schema.options.filter((function(e){return!0===e.selected})))[0]&&(this.onChange(o[0].key),this.value=o[0]);else if(this.editing&&this.schema.options&&this.model){var o;(o=this.schema.options.filter((function(e){return e.key===n.model})))[0]&&(this.onChange(o[0].key),this.value=o[0])}else this.value=this.model},t.prototype.onDropCallBack=function(t,n){this.value=n=e.prototype.onDrop.call(this,t,n),this.onChange(n)},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:{selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",schema:"schema",modelPropertiesPath:"modelPropertiesPath",inputId:"inputId",editing:"editing"},outputs:{onDropEvent:"onDropEvent"},features:[i0.ɵɵInheritDefinitionFeature],decls:5,vars:4,consts:[[1,"schema-input-container"],["class","form-control","dndDropzone","",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange","dndDrop",4,"ngIf"],[3,"id","ngModel","ngModelOptions","placeholder","searchPlaceHolder","clearText","notFoundText","bindKey","bindValue","enabledSearch","limitItens","data","ngModelChange",4,"ngIf"],[3,"model","inputId","placeholder","maxLength","modelChange",4,"ngIf"],["dndDropzone","",1,"form-control",3,"type","placeholder","ngModel","ngModelOptions","id","maxlength","ngModelChange","dndDrop"],[3,"id","ngModel","ngModelOptions","placeholder","searchPlaceHolder","clearText","notFoundText","bindKey","bindValue","enabledSearch","limitItens","data","ngModelChange"],[3,"model","inputId","placeholder","maxLength","modelChange"]],template:function(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_box_2_Template,1,13,"select-box",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,i7.SelectBoxComponent,NumberInputComponent,BooleanInputComponent],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 o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("requiredLabel",o.requiredLabel)("label",o.schema.title)("tooltip",o.schema.help)("inputId",o.getId(o.index)),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("inputId",o.getId(o.index))("schema",o.schema)("model",o.model[o.schema.id])("modelPropertiesPath","mappingAttributes."+o.schema.id)("editing",o.editing)}}function SchemaInputComponent_div_1_span_4_Template(e,t){if(1&e&&(i0.ɵɵelementStart(0,"span",7),i0.ɵɵtext(1,"?"),i0.ɵɵelementEnd()),2&e){var n=i0.ɵɵnextContext(2);i0.ɵɵpropertyInterpolate("matTooltip",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,2,1,"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 o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵproperty("htmlFor",o.getId(o.index)),i0.ɵɵadvance(1),i0.ɵɵtextInterpolate1(" ",o.schema.title," "),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.schema.help),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("inputId",o.getId(o.index))("schema",o.schema)("model",o.model[o.schema.id])("modelPropertiesPath","mappingAttributes."+o.schema.id)("editing",o.editing)}}var SchemaInputComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schema:"schema",editing:"editing",index:"index"},features:[i0.ɵɵInheritDefinitionFeature],decls:2,vars:2,consts:[["class","row schema-input",4,"ngIf"],[1,"row","schema-input"],[1,"col-md-12"],[3,"requiredLabel","label","tooltip","inputId"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","inputId","schema","model","modelPropertiesPath","editing","modelChange"],[1,"info-label","bold",3,"htmlFor"],["class","config-tooltip",3,"matTooltip",4,"ngIf"],[1,"config-tooltip",3,"matTooltip"]],template:function(e,t){1&e&&(i0.ɵɵtemplate(0,SchemaInputComponent_div_0_Template,4,13,"div",0),i0.ɵɵtemplate(1,SchemaInputComponent_div_1_Template,6,12,"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],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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"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 o=i0.ɵɵnextContext(2);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("model",o.model[o.schema.id].customAttributes)("onDropFunction",o.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,5,9,"div",4),i0.ɵɵelementEnd()}if(2&e){var o=i0.ɵɵnextContext();i0.ɵɵadvance(2),i0.ɵɵtextInterpolate(o.schema.title),i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("requiredLabel",o.requiredLabel)("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("additionalAttributesLabel",o.additionalAttributesLabel)("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("idPrefix",o.idPrefix)("model",o.model[o.schema.id])("schemas",o.getSchemaProperties())("editing",o.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngIf",o.model[o.schema.id]&&o.schema.customProperties)}}var SchemaObjectComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",modelPropertiesPath:"modelPropertiesPath",inputId:"inputId",editing:"editing",index:"index"},outputs:{onDropEvent:"onDropEvent"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema-object-container",4,"ngIf"],[1,"schema-object-container"],[1,"schema-object-title"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],["class","row struct-custom-properties",4,"ngIf"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaObjectComponent_div_0_Template,5,20,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded&&t.canRender(t.schema)&&"object"==t.schema.type)},directives:[i1.NgIf,SchemaFormComponent,SchemaCustomAttributesComponent],styles:[".schema-object-container[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;margin-bottom:10px;margin-top:10px;padding:10px}.schema-object-container[_ngcontent-%COMP%] .schema-object-title[_ngcontent-%COMP%]{background:#eee;border-bottom:1px solid #ddd;font-weight:700;margin-left:-10px;margin-top:-10px;padding:10px;width:calc(100% + 20px)}"]});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(){}return e.prototype.validateSchemaFields=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,o,i,a,l;return __generator(this,(function(r){switch(r.label){case 0:return e?(n=[],o=[],i=[],this.processProperties(e,t,n,o,i),a=new SchemaValidationField(n,o,i),l=a,[4,this.getErrorsStringArray(a)]):[2,new SchemaValidationField([],[],[])];case 1:return l.validationErrorsLabel=r.sent(),[2,a]}}))}))},e.prototype.processProperties=function(e,t,n,o,i,a){var l,r;try{for(var d=__values(e),m=d.next();!m.done;m=d.next()){var s=m.value;if("object"!==s.type&&"array"!==s.type||!s.properties)if("array"!==s.type||s.properties){var c=a?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?o.push(s):(null==s?void 0:s.canRender)&&(null==s?void 0:s.maxLength)>0&&(null==c?void 0:c.length)>s.maxLength&&i.push(s)}else{var u=Object.assign({},s);u.type="string",this.processProperties([u],t[s.id],n,o,i,!0)}else this.processProperties(s.properties,t[s.id],n,o,i,!0)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}},e.prototype.getErrorsStringArray=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,i,a,l,r,d,m,s,c,u,p,b,C;return __generator(this,(function(h){if(!e.isInvalidSchemaFields())return[2,[]];t=[];try{for(n=__values(e.emptyFields),o=n.next();!o.done;o=n.next())d=o.value,m=d.title||d.id,t.push({type:"emptyFields",fieldName:m})}catch(e){s={error:e}}finally{try{o&&!o.done&&(c=n.return)&&c.call(n)}finally{if(s)throw s.error}}try{for(i=__values(e.invalidMinLengthFields),a=i.next();!a.done;a=i.next())d=a.value,m=d.title||d.id,t.push({type:"invalidMinLengthFields",fieldName:m,minLength:d.minLength})}catch(e){u={error:e}}finally{try{a&&!a.done&&(p=i.return)&&p.call(i)}finally{if(u)throw u.error}}try{for(l=__values(e.invalidMaxLengthFields),r=l.next();!r.done;r=l.next())d=r.value,m=d.title||d.id,t.push({type:"invalidMaxLengthFields",fieldName:m,maxLength:d.maxLength})}catch(e){b={error:e}}finally{try{r&&!r.done&&(C=l.return)&&C.call(l)}finally{if(b)throw b.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.ɵɵelementEnd(),i0.ɵɵelementStart(4,"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 o=i0.ɵɵnextContext(3);i0.ɵɵadvance(3),i0.ɵɵtextInterpolate(o.additionalAttributesLabel),i0.ɵɵadvance(1),i0.ɵɵproperty("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("model",o.model.customAttributes)("onDropFunction",o.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,5,9,"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 o=i0.ɵɵnextContext();i0.ɵɵadvance(1),i0.ɵɵproperty("selectPlaceHolderLabel",o.selectPlaceHolderLabel)("selectSearchPlaceHolderLabel",o.selectSearchPlaceHolderLabel)("selectClearLabel",o.selectClearLabel)("selectNotFoundLabel",o.selectNotFoundLabel)("requiredLabel",o.requiredLabel)("addItemLabel",o.addItemLabel)("addLoopLabel",o.addLoopLabel)("additionalAttributesLabel",o.additionalAttributesLabel)("customAttributeRemoveLabel",o.customAttributeRemoveLabel)("newCustomFieldNameLabel",o.newCustomFieldNameLabel)("newCustomFieldValueLabel",o.newCustomFieldValueLabel)("newCustomFieldAddLabel",o.newCustomFieldAddLabel)("newCustomFieldSaveLabel",o.newCustomFieldSaveLabel)("newCustomFieldCancelLabel",o.newCustomFieldCancelLabel)("idPrefix",o.idPrefix)("model",o.model)("schemas",o.schemas)("editing",o.editing),i0.ɵɵadvance(1),i0.ɵɵproperty("ngForOf",o.schemas)}}SchemaFieldsService.ɵfac=function(e){return new(e||SchemaFieldsService)},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.requiredLabel="(required)",t.addItemLabel="Add Item",t.addLoopLabel="Add Loop",t.additionalAttributesLabel="Additional Fields",t.customAttributeRemoveLabel="Remove",t.newCustomFieldNameLabel="Name",t.newCustomFieldValueLabel="Value",t.newCustomFieldAddLabel="Add",t.newCustomFieldSaveLabel="Save",t.newCustomFieldCancelLabel="Cancel",t.selectPlaceHolderLabel="Select Item",t.selectSearchPlaceHolderLabel="Search",t.selectClearLabel="Clear",t.selectNotFoundLabel="No Items Found",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:{requiredLabel:"requiredLabel",addItemLabel:"addItemLabel",addLoopLabel:"addLoopLabel",additionalAttributesLabel:"additionalAttributesLabel",customAttributeRemoveLabel:"customAttributeRemoveLabel",newCustomFieldNameLabel:"newCustomFieldNameLabel",newCustomFieldValueLabel:"newCustomFieldValueLabel",newCustomFieldAddLabel:"newCustomFieldAddLabel",newCustomFieldSaveLabel:"newCustomFieldSaveLabel",newCustomFieldCancelLabel:"newCustomFieldCancelLabel",selectPlaceHolderLabel:"selectPlaceHolderLabel",selectSearchPlaceHolderLabel:"selectSearchPlaceHolderLabel",selectClearLabel:"selectClearLabel",selectNotFoundLabel:"selectNotFoundLabel",idPrefix:"idPrefix",schemas:"schemas",customProperties:"customProperties",editing:"editing",inputType:"inputType"},features:[i0.ɵɵInheritDefinitionFeature],decls:1,vars:1,consts:[["class","schema",4,"ngIf"],[1,"schema"],[3,"selectPlaceHolderLabel","selectSearchPlaceHolderLabel","selectClearLabel","selectNotFoundLabel","requiredLabel","addItemLabel","addLoopLabel","additionalAttributesLabel","customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","idPrefix","model","schemas","editing","modelChange"],["class","schema-properties",4,"ngFor","ngForOf"],[1,"schema-properties"],["class","row struct-custom-properties",4,"ngIf"],[1,"row","struct-custom-properties"],[1,"col-md-12"],[1,"info-label","bold"],[3,"customAttributeRemoveLabel","newCustomFieldNameLabel","newCustomFieldValueLabel","newCustomFieldAddLabel","newCustomFieldSaveLabel","newCustomFieldCancelLabel","model","onDropFunction","modelChange"]],template:function(e,t){1&e&&i0.ɵɵtemplate(0,SchemaFormRenderComponent_div_0_Template,3,19,"div",0),2&e&&i0.ɵɵproperty("ngIf",t.loaded)},directives:[i1.NgIf,SchemaFormComponent,i1.NgForOf,SchemaCustomAttributesComponent],styles:[".schema[_ngcontent-%COMP%] .info-label{display:block}.schema[_ngcontent-%COMP%] input.form-control{background:#fff;border:1px solid #ddd;border-radius:3px;padding:11px;width:100%}.schema[_ngcontent-%COMP%] select.form-control{border:1px solid #ddd;border-radius:4px;color:#777;cursor:pointer;padding:11px;width:100%}.schema[_ngcontent-%COMP%] .ng-select-container{height:38px!important;min-height:38px!important}.schema[_ngcontent-%COMP%] .btn-outline-primary{background:var(--color-primary);border:1px solid var(--color-secondary);border-radius:4px;color:var(--color-secondary);cursor:pointer;padding:5px 15px}.schema[_ngcontent-%COMP%] .btn-outline-primary:hover{background:var(--color-primary-hover)}.schema[_ngcontent-%COMP%] .subsection-item-title, .schema[_ngcontent-%COMP%] array-session .subsection-element{color:var(--color-primary)}"]});var ɵSchemaFormRenderComponent_BaseFactory=i0.ɵɵgetInheritedFactory(SchemaFormRenderComponent),TypeScriptCompileBase=function(){function e(){}return e.prototype.getTranslate=function(e){return e},e.prototype.addItemToFormProperties=function(e,t,n){this.translateProperties(t),t.minLength&&t.minLength>0?e[n]=new i3.FormControl([null,[i3.Validators.required]]):e[n]=new i3.FormControl([null])},e.prototype.compileProperties=function(e){var t=[],n={},o={},i=JSON.parse(JSON.stringify(e));if(this.translateProperties(i),i.properties)"array"===i.type&&(o=[]),"object"===i.type&&(o={}),i.id="inputData",this.proccessProperties(i,n,"inputData"),this.translateProperties(i),t.push(i);else if("array"===i.type)i.id="inputData",o=[],this.addItemToFormProperties(n,i,"inputData"),t.push(i);else if(!i.type)for(var a=0;a<Object.keys(i).length;a++){var l=Object.keys(i)[a],r=i[l];r.id=l,"array"===r.type&&(o[r.id]=[]),"object"===r.type&&(o[r.id]={}),this.proccessProperties(r,n,l),this.translateProperties(r),t.push(r)}return t.sort((function(e,t){return e.propertyOrder-t.propertyOrder})),{compiledProperties:t,formProperties:n,inputData:o}},e.prototype.translateProperties=function(e){var t=this;(null==e?void 0:e.title)&&(e.title=this.getTranslate(e.title)),(null==e?void 0:e.description)&&(e.description=this.getTranslate(e.description)),(null==e?void 0:e.options)instanceof Array&&(null==e||e.options.forEach((function(e){return e.value=t.getTranslate(e.value)})))},e.prototype.proccessProperties=function(e,t,n){if(this.translateProperties(e),this.hasProperties(e)){for(var o=[],i=0;i<Object.keys(e.properties).length;i++){var a=Object.keys(e.properties)[i],l=e.properties[a];l.id=a,this.hasProperties(l)?(this.proccessProperties(l,t,a),o.push(l)):(this.addItemToFormProperties(t,l,a),o.push(l))}e.properties=o}else this.addItemToFormProperties(t,e,n)},e.prototype.hasProperties=function(e){return"object"===e.type||"array"===e.type&&e.properties},e}();function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(e){return e||new TypeScriptCompileBase}TypeScriptCompileBase.ɵfac=function(e){return new(e||TypeScriptCompileBase)},TypeScriptCompileBase.ɵprov=i0.ɵɵdefineInjectable({token:TypeScriptCompileBase,factory:TypeScriptCompileBase.ɵfac,providedIn:"root"});var APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER={provide:TypeScriptCompileBase,deps:[[new i0.Optional,new i0.SkipSelf,TypeScriptCompileBase]],useFactory:APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY},SchemaFormRenderModule=function(){};SchemaFormRenderModule.ɵmod=i0.ɵɵdefineNgModule({type:SchemaFormRenderModule}),SchemaFormRenderModule.ɵinj=i0.ɵɵdefineInjector({factory:function(e){return new(e||SchemaFormRenderModule)},providers:[SchemaFieldsService,APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER],imports:[[i1.CommonModule,i2.DndModule,i3.FormsModule,i4.MatTooltipModule,i7.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.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.SelectBoxComponent,i7.SelectEnumComponent,i7.InputTextComponent,i7.InputPasswordComponent,i7.InputAvatarComponent,i7.InputFileComponent,i7.CustomSelectComponent,i7.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]),exports.APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY=APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY,exports.APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER=APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER,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.TypeScriptCompileBase=TypeScriptCompileBase,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=apipass-schemas.umd.min.js.map
|