@onemrvapublic/design-system-demos 22.4.1-develop.2 → 22.4.1-develop.3
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/browser/main.js +1 -1
- package/package.json +1 -1
package/browser/main.js
CHANGED
|
@@ -10798,7 +10798,7 @@ Error: `,z(55,14,r.nissOrBce.errors),`
|
|
|
10798
10798
|
`],encapsulation:2})}return t})(),Wwt=Zn(2,sI);var u$=(()=>{class t extends Fi{options;valuesToTranslatedOptions;filteredOptions;shouldFilter;focused=false;mapToProps(e){return bye(e,this.getOwnProps())}getEventValue=e=>e.target.value;onChange(e){let n=this.getEventValue(e),r=Array.from(this.valuesToTranslatedOptions?.values()??[]).find(o=>o.label===n);if(!r){super.onChange(e);return}this.jsonFormsService.updateCore(jr.update(this.propsPath,()=>r.value)),this.triggerValidation();}ngOnInit(){super.ngOnInit(),this.shouldFilter=false,this.filteredOptions=this.form.valueChanges.pipe(Ze(""),ce(e=>this.filter(e)));}mapAdditionalProps(e){this.valuesToTranslatedOptions=new Map((e.options??[]).map(n=>[n.value,n]));}updateFilter(e){e.keyCode===13?this.shouldFilter=false:this.shouldFilter=true;}onSelect(e){let n=oI(this.uischema,this.path);this.shouldFilter=false;let r=e.option.value;this.jsonFormsService.updateCore(jr.update(n,()=>r.value)),this.triggerValidation();}displayFn=e=>e?typeof e=="string"?this.valuesToTranslatedOptions?this.valuesToTranslatedOptions.get(e)?.label??e:e:e?.label??"":"";filter(e){let n=Array.from(this.valuesToTranslatedOptions?.values()||[]);if(!e||!this.shouldFilter)return n;let r=typeof e=="string"?e:e.label;return n.filter(o=>o.label.toLowerCase().startsWith(r.toLowerCase()))}getOwnProps(){return s(r({},super.getOwnProps()),{options:this.options})}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["OneOfEnumControlRenderer"]],inputs:{options:"options"},features:[A],decls:12,vars:12,consts:[["auto","matAutocomplete"],[3,"ngStyle"],["matInput","","type","text",3,"change","keydown","focus","focusout","id","formControl","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","displayWith"],[3,"value"],[4,"ngIf"]],template:function(n,r){if(n&1&&(d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),I("change",function(a){return r.onChange(a)})("keydown",function(a){return r.updateFilter(a)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),d(4,"mat-autocomplete",3,0),I("optionSelected",function(a){return r.onSelect(a)}),fe(6,lwt,2,2,"mat-option",4,Hye),$(8,"async"),u(),ee(9,cwt,2,1,"mat-hint",5),d(10,"mat-error"),h(11),u()()),n&2){let o=Ve(5);b("ngStyle",tn(10,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("id",r.id)("formControl",r.form)("matAutocomplete",o),Se(),m(),b("displayWith",r.displayFn),m(2),ge(z(8,8,r.filteredOptions)),m(3),b("ngIf",r.shouldShowUnfocusedDescription()||r.focused),m(2),L(r.error);}},dependencies:[Qi,da,gr,Ge,Ht,Ye,ut,qe,rt,it,pn,bn,ht,Jt,Mp,Ad,Xt,tl,Vn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto}"]})}return t})(),Kwt=Zn(5,Jve),jye=(()=>{class t extends u${set stringOptions(e){this.options=e.map(n=>({label:n,value:n}));}mapToProps(e){return gye(e,this.getOwnProps())}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["EnumControlRenderer"],["AutocompleteControlRenderer"]],inputs:{stringOptions:[0,"options","stringOptions"]},features:[A],decls:12,vars:12,consts:[["auto","matAutocomplete"],[3,"ngStyle"],["matInput","","type","text",3,"change","keydown","focus","focusout","id","formControl","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","displayWith"],[3,"value"],[4,"ngIf"]],template:function(n,r){if(n&1&&(d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),I("change",function(a){return r.onChange(a)})("keydown",function(a){return r.updateFilter(a)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),d(4,"mat-autocomplete",3,0),I("optionSelected",function(a){return r.onSelect(a)}),fe(6,dwt,2,2,"mat-option",4,Hye),$(8,"async"),u(),ee(9,uwt,2,1,"mat-hint",5),d(10,"mat-error"),h(11),u()()),n&2){let o=Ve(5);b("ngStyle",tn(10,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("id",r.id)("formControl",r.form)("matAutocomplete",o),Se(),m(),b("displayWith",r.displayFn),m(2),ge(z(8,8,r.filteredOptions)),m(3),b("ngIf",r.shouldShowUnfocusedDescription()||r.focused),m(2),L(r.error);}},dependencies:[Qi,da,gr,Ge,Ht,Ye,ut,qe,rt,it,pn,bn,ht,Jt,Mp,Ad,Xt,tl,Vn],styles:[gI]})}return t})(),Qwt=Zn(2,aI),Yye=(()=>{class t extends Fi{MAXIMUM_FRACTIONAL_DIGITS=20;oldValue;min;max;multipleOf;locale;numberFormat;decimalSeparator;focused=false;onChange(e){let n=this.oldValue?e.target.value.replace(this.oldValue,""):e.target.value;if(n==="."||n===","||n===" "||n==="0"&&this.getValue()!==""&&(e.target.selectionStart===1&&e.target.selectionEnd===1||e.target.selectionStart===e.target.value.length&&e.target.selectionEnd===e.target.value.length&&e.target.value.indexOf(this.decimalSeparator)!==-1)){this.oldValue=e.target.value;return}super.onChange(e),this.oldValue=this.getValue();}getEventValue=e=>{let n=new RegExp(`[^-+0-9${this.decimalSeparator}]`,"g"),o=e.target.value.replace(n,"").replace(this.decimalSeparator,".");if(o==="")return;let a=+o;return Number.isNaN(a)?e.target.value:a};getValue=()=>this.data!==void 0&&this.data!==null?typeof this.data=="number"?this.numberFormat.format(this.data):this.data:"";mapAdditionalProps(e){if(this.scopedSchema){let n={rootSchema:this.rootSchema,config:e.config},r=KB(this.uischema,this.rootSchema,n)?.1:1;this.min=this.scopedSchema.minimum,this.max=this.scopedSchema.maximum,this.multipleOf=this.scopedSchema.multipleOf||r;let o=(0, Fye.default)({},e.config,this.uischema.options),a=this.jsonFormsService.getLocale();(this.locale===void 0||this.locale!==a)&&(this.locale=a,this.numberFormat=new Intl.NumberFormat(this.locale,{useGrouping:o.useGrouping,maximumFractionDigits:this.MAXIMUM_FRACTIONAL_DIGITS}),this.determineDecimalSeparator(),this.oldValue=this.getValue()),this.form.setValue(this.getValue());}}determineDecimalSeparator(){let e=this.numberFormat.format(1.1);this.decimalSeparator=e.charAt(1);}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["NumberControlRenderer"]],features:[A],decls:7,vars:12,consts:[[3,"ngStyle"],["matInput","",3,"input","focus","focusout","value","id","formControl","min","max","step"],[4,"ngIf"]],template:function(n,r){n&1&&(d(0,"mat-form-field",0)(1,"mat-label"),h(2),u(),d(3,"input",1),I("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),ee(4,mwt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(b("ngStyle",tn(10,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("value",r.getValue())("id",r.id)("formControl",r.form)("min",r.min)("max",r.max)("step",r.multipleOf),Se(),m(),b("ngIf",r.shouldShowUnfocusedDescription()||r.focused),m(2),L(r.error));},dependencies:[Qi,da,gr,Ge,Ht,Ye,ut,qe,rt,it,pn,bn,ht,Jt],styles:[gI]})}return t})(),Zwt=Zn(2,m_(KB,eye)),Wye=(()=>{class t extends Fi{min;max;multipleOf;focused=false;changeDetectorRef=_(ve);getEventValue=e=>Number(e);mapAdditionalProps(){this.scopedSchema&&(this.min=this.scopedSchema.minimum,this.max=this.scopedSchema.maximum,this.multipleOf=this.scopedSchema.multipleOf||1),this.changeDetectorRef.markForCheck();}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["RangeControlRenderer"]],features:[A],decls:9,vars:12,consts:[["ngSlider",""],[1,"range-control",3,"ngStyle"],[1,"mat-caption",2,"color","rgba(0,0,0,.54)"],["showTickMarks","",3,"disabled","max","min","step","discrete","id"],["matSliderThumb","",3,"valueChange"],["class","mat-caption",4,"ngIf"],[1,"mat-caption"]],template:function(n,r){n&1&&(d(0,"div",1)(1,"label",2),h(2),u(),d(3,"mat-slider",3,0)(5,"input",4),I("valueChange",function(a){return r.onChange(a)}),u()(),ee(6,pwt,2,1,"mat-hint",5),d(7,"mat-error",6),h(8),u()()),n&2&&(b("ngStyle",tn(10,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("disabled",!r.isEnabled())("max",r.max)("min",r.min)("step",r.multipleOf)("discrete",true)("id",r.id),m(3),b("ngIf",r.shouldShowUnfocusedDescription()),m(2),L(r.error));},dependencies:[Qi,da,gr,fI,Iye,o$,qe,pn,bn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}.range-control[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column}"]})}return t})(),Xwt=Zn(4,aye),Kye=(()=>{class t extends Fi{focused=false;getEventValue=e=>e.target.value||void 0;static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["TextAreaRenderer"]],features:[A],decls:7,vars:8,consts:[[3,"ngStyle"],["matInput","",3,"input","focus","focusout","id","formControl"],[4,"ngIf"]],template:function(n,r){n&1&&(d(0,"mat-form-field",0)(1,"mat-label"),h(2),u(),d(3,"textarea",1),I("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),ee(4,_wt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(b("ngStyle",tn(6,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("id",r.id)("formControl",r.form),Se(),m(),b("ngIf",r.shouldShowUnfocusedDescription()||r.focused),m(2),L(r.error));},dependencies:[Qi,da,gr,Ge,Ht,Ye,ut,qe,rt,it,pn,bn,ht,Jt],styles:[gI]})}return t})(),Jwt=Zn(2,nye),Qye=(()=>{class t extends Fi{focused=false;getEventValue=e=>e.target.value||void 0;getType=()=>{if(this.uischema.options&&this.uischema.options.format)return this.uischema.options.format;if(this.scopedSchema&&this.scopedSchema.format)switch(this.scopedSchema.format){case "email":return "email";case "tel":return "tel";default:return "text"}return "text"};static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["TextControlRenderer"]],features:[A],decls:7,vars:9,consts:[[3,"ngStyle"],["matInput","",3,"input","focus","focusout","type","id","formControl"],[4,"ngIf"]],template:function(n,r){n&1&&(d(0,"mat-form-field",0)(1,"mat-label"),h(2),u(),d(3,"input",1),I("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),ee(4,hwt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(b("ngStyle",tn(7,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("type",r.getType())("id",r.id)("formControl",r.form),Se(),m(),b("ngIf",r.shouldShowUnfocusedDescription()||r.focused),m(2),L(r.error));},dependencies:[Qi,da,gr,Ge,Ht,Ye,ut,qe,rt,it,pn,bn,ht,Jt],styles:[gI]})}return t})(),ext=Zn(1,tye),Zye=(()=>{class t extends Fi{changeDetectorRef=_(ve);isChecked=()=>this.data||false;getEventValue=e=>e.checked;mapAdditionalProps(){this.changeDetectorRef.markForCheck();}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["ToggleControlRenderer"]],features:[A],decls:6,vars:9,consts:[[3,"ngStyle"],[3,"change","checked","disabled","id"],["class","mat-caption",4,"ngIf"],[1,"mat-caption"]],template:function(n,r){n&1&&(d(0,"div",0)(1,"mat-slide-toggle",1),I("change",function(a){return r.onChange(a)}),h(2),u(),ee(3,fwt,2,1,"mat-hint",2),d(4,"mat-error",3),h(5),u()()),n&2&&(b("ngStyle",tn(7,Ta,r.hidden?"none":"")),m(),b("checked",r.isChecked())("disabled",!r.isEnabled())("id",r.id),m(),G(" ",r.label," "),m(),b("ngIf",r.shouldShowUnfocusedDescription()),m(2),L(r.error));},dependencies:[Qi,da,gr,Xf,o0,qe,pn,bn],encapsulation:2})}return t})(),txt=Zn(3,ur(hC,Qc("toggle",true))),nxt=(()=>{class t extends Yd{label;visible;jsonFormsService=_(Qa);ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=pI(e,this.getOwnProps());this.visible=n.visible,this.label=n.text;}}));}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["LabelRenderer"]],features:[A],decls:2,vars:1,consts:[[1,"mat-headline-6"]],template:function(n,r){n&1&&(ye(0,"label",0),h(1),be()),n&2&&(m(),G(" ",r.label," "));},styles:["[_nghost-%COMP%]{flex:1 1 auto}"],changeDetection:1})}return t})(),ixt=Zn(4,Li("Label")),Xye=(()=>{class t{_item;_schema;initialized=false;set item(e){e&&(this._item=e,this.initialized=true);}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["jsonforms-detail"]],inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"renderProps"]],template:function(n,r){n&1&&ee(0,gwt,2,1,"div",0),n&2&&b("ngIf",r.initialized);},dependencies:[Qi,da,xa,Zc],encapsulation:2,changeDetection:1})}return t})(),rxt=["#","properties","items"],oxt=t=>d_(t.split("/").filter(i=>!(0, Bye.default)(rxt,e=>e===i)).join(".")),Jye=(()=>{class t extends bC{masterItems;selectedItem;selectedItemIdx;addItem;removeItems;highlightedIdx;translations;changeDetectorRef=_(ve);onListItemHover(e){this.highlightedIdx=e;}trackElement(e,n){return n?n.label:null}ngOnInit(){super.ngOnInit();let e=this.jsonFormsService.updateCore.bind(this.jsonFormsService),{addItem:n,removeItems:r}=mI(e);this.addItem=n,this.removeItems=r;}mapAdditionalProps(e){let{data:n,path:r,schema:o,uischema:a}=e,s=a;this.propsPath=e.path;let l=lI(e.uischemas,o,`${s.scope}/items`,e.path,"VerticalLayout",s,e.rootSchema);this.isEnabled()||uC(l),this.translations=e.translations;let c=(n||[]).map((g,v)=>{let C=s.options?.labelRef&&oxt(s.options.labelRef);return {label:g!==void 0&&typeof g!="object"?g.toString():(0, $ye.default)(g,C??Vve(o)),data:g,path:`${r}.${v}`,schema:o,uischema:l}});this.masterItems=c;let p=-1,f;this.masterItems.length===0?(this.selectedItem=void 0,this.selectedItemIdx=-1):this.selectedItemIdx>=this.masterItems.length?(p=this.masterItems.length-1,f=this.masterItems[p]):this.selectedItemIdx!==-1&&this.selectedItemIdx<this.masterItems.length&&(p=this.selectedItemIdx,f=this.masterItems[this.selectedItemIdx]),f!==void 0&&this.selectedItem!==void 0&&(f.label===this.selectedItem.label||f.path===this.selectedItem.path)?(this.selectedItem=f,this.selectedItemIdx=p):this.masterItems.length>0&&(this.selectedItem=this.masterItems[0],this.selectedItemIdx=0),this.changeDetectorRef.markForCheck();}onSelect(e,n){this.selectedItem=e,this.selectedItemIdx=n;}onAddClick(){this.addItem(this.propsPath,cI(this.scopedSchema,this.rootSchema))();}onDeleteClick(e){this.removeItems(this.propsPath,[e])();}mapToProps(e){let n=uI(e,this.getOwnProps()),r$1=e.jsonforms.i18n?.translate??Wc.translate,o=_C(r$1,pC,n.i18nKeyPrefix,n.label);return s(r({},n),{translations:o})}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["jsonforms-list-with-detail-master"]],features:[A],decls:8,vars:8,consts:[["autosize","true",1,"container",3,"ngStyle"],["mode","side","opened",""],[4,"ngIf"],[3,"selected","click","mouseover","mouseout",4,"ngFor","ngForOf","ngForTrackBy"],["mat-fab","","color","primary","class","add-button",3,"click",4,"ngIf"],[1,"content"],[3,"item",4,"ngIf"],[3,"click","mouseover","mouseout"],["matLine",""],["mat-icon-button","","class","button item-button hide",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",1,"button","item-button","hide",3,"click","ngClass"],["mat-list-icon",""],["mat-fab","","color","primary",1,"add-button",3,"click"],[3,"item"]],template:function(n,r){n&1&&(d(0,"mat-sidenav-container",0)(1,"mat-sidenav",1)(2,"mat-nav-list"),ee(3,vwt,2,1,"mat-list-item",2)(4,Cwt,4,4,"mat-list-item",3),u(),ee(5,Ewt,3,1,"button",4),u(),d(6,"mat-sidenav-content",5),ee(7,Swt,1,1,"jsonforms-detail",6),u()()),n&2&&(b("ngStyle",tn(6,Ta,r.hidden?"none":"")),m(3),b("ngIf",r.masterItems.length===0),m(),b("ngForOf",r.masterItems)("ngForTrackBy",r.trackElement),m(),b("ngIf",r.isEnabled()),m(2),b("ngIf",r.selectedItem));},dependencies:[Qi,Ir,Ec,da,gr,Qu,IL,Uie,s1,eg,loe,M1,xt,kn,af,bt,We,Xye],styles:["mat-list-item.selected[_ngcontent-%COMP%]{background:#0000000a}.container[_ngcontent-%COMP%]{height:100vh}.content[_ngcontent-%COMP%]{padding:15px;background-color:#fff}.add-button[_ngcontent-%COMP%]{float:right;margin-top:.5em;margin-right:.25em}.button[_ngcontent-%COMP%]{float:right;margin-right:.25em}.item-button[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.hide[_ngcontent-%COMP%]{display:none}.show[_ngcontent-%COMP%]{display:inline-block}mat-sidenav[_ngcontent-%COMP%]{width:20%}"]})}return t})(),axt=Zn(4,Li("ListWithDetail")),e0e=(()=>{class t extends _I{detailUiSchema;mapAdditionalProps(e){this.detailUiSchema=lI(e.uischemas,e.schema,e.uischema.scope,e.path,()=>{let n=(0, Uye.default)(e.schema);return delete n.oneOf,delete n.anyOf,delete n.allOf,iI.uiSchema(n,"Group",void 0,this.rootSchema)},e.uischema,e.rootSchema),(0, Vye.default)(e.path)?this.detailUiSchema.type="VerticalLayout":this.detailUiSchema.label=(0, d$.default)(e.path),this.isEnabled()||uC(this.detailUiSchema);}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["ObjectRenderer"]],features:[A],decls:2,vars:3,consts:[["appearance","outlined",1,"object-layout"],[3,"uischema","schema","path"]],template:function(n,r){n&1&&(d(0,"mat-card",0),O(1,"jsonforms-outlet",1),u()),n&2&&(m(),b("uischema",r.detailUiSchema)("schema",r.scopedSchema)("path",r.propsPath));},dependencies:[xa,Zc,$c,qu],styles:[".object-layout[_ngcontent-%COMP%]{padding:16px}"]})}return t})(),sxt=Zn(2,Xve),Pye=t=>({type:"Control",scope:t,label:false}),lxt=(()=>{class t{transform(e,n){let r=wB.compose(n.path,`${e}`);return {schema:n.schema,uischema:n.uischema,path:r}}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Ui({name:"getProps",type:t,pure:true})}return t})(),t0e=(()=>{class t extends bC{detailUiSchema;displayedColumns;items;columnsToIgnore=["array","object"];addItem;moveItemUp;moveItemDown;removeItems;translations={};trackElement(e,n){return e||null}mapAdditionalProps(e){this.items=this.generateCells(e.schema,e.path),this.displayedColumns=this.items.map(n=>n.property),this.isEnabled()&&this.displayedColumns.push("action"),this.translations=e.translations;}remove(e){this.removeItems(this.propsPath,[e])();}add(){this.addItem(this.propsPath,cI(this.scopedSchema,this.rootSchema))();}up(e){this.moveItemUp(this.propsPath,e)();}down(e){this.moveItemDown(this.propsPath,e)();}ngOnInit(){super.ngOnInit();let{addItem:e,removeItems:n,moveUp:r,moveDown:o}=mI(this.jsonFormsService.updateCore.bind(this.jsonFormsService));this.addItem=e,this.moveItemUp=r,this.moveItemDown=o,this.removeItems=n;}generateCells=(e,n)=>e.type==="object"?this.getValidColumnProps(e).map(r=>{let o=gB(r),a=Pye(`#/properties/${o}`);return this.isEnabled()||uC(a),{property:r,header:(0, d$.default)(r),props:{schema:e,uischema:a,path:n}}}):[{property:"DUMMY",header:this.label,props:{schema:e,uischema:Pye("#"),path:n}}];getValidColumnProps=e=>e.type==="object"?Object.keys(e.properties).filter(n=>{let r=qd(e.properties[n]);return r.length>1?false:this.columnsToIgnore.indexOf(r[0])===-1}):[""];static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["TableRenderer"]],features:[A],decls:11,vars:5,consts:[[1,"table-container"],["mat-table","",1,"mat-elevation-z8",3,"dataSource","trackBy"],["matColumnDef","action","stickyEnd",""],["mat-header-cell","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",3,"ngClass"],["mat-button","","color","primary",3,"click","disabled","matTooltip"],["mat-cell","",3,"ngClass"],["class","item-up","mat-icon-button","","matTooltipPosition","right",3,"disabled","matTooltip","click",4,"ngIf"],["class","item-down","mat-icon-button","","matTooltipPosition","right",3,"disabled","matTooltip","click",4,"ngIf"],["mat-icon-button","","color","warn","matTooltipPosition","right",3,"click","disabled","matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"item-up",3,"click","disabled","matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"item-down",3,"click","disabled","matTooltip"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],[3,"renderProps"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(d(0,"div",0)(1,"table",1),ot(2,2),d(3,"tr"),ee(4,wwt,4,5,"th",3),u(),d(5,"tr"),ee(6,Dwt,6,7,"td",4),u(),O(7,"tr"),at(),ee(8,Mwt,3,2,"ng-container",5)(9,Owt,1,0,"tr",6)(10,Rwt,1,0,"tr",7),u()()),n&2&&(m(),b("dataSource",r.data)("trackBy",r.trackElement),m(7),b("ngForOf",r.items),m(),b("matHeaderRowDef",r.displayedColumns),m(),b("matRowDefColumns",r.displayedColumns));},dependencies:[Qi,Ir,Ec,da,xa,Zc,Fp,il,Ef,Tf,Sf,Cf,Df,wf,xf,If,kf,xt,sn,kn,bt,We,sr,hi,lxt],styles:["table[_ngcontent-%COMP%]{width:100%}",".cdk-column-action[_ngcontent-%COMP%]{width:15%}",".sort-column[_ngcontent-%COMP%]{min-width:12vw}",".table-container[_ngcontent-%COMP%]{max-width:100%;overflow:auto}"],changeDetection:1})}return t})(),cxt=Zn(3,m_(iye,oye)),n0e=(()=>{class t extends Yd{hidden;visibleCategories;categoryLabels;jsonFormsService=_(Qa);ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=t$(e,this.getOwnProps());this.hidden=!n.visible,this.visibleCategories=this.uischema.elements.filter(r=>mC(r,n.data,void 0,p_(e),Jl(e))),this.categoryLabels=this.visibleCategories.map(r=>jB(r,e.jsonforms.i18n?.translate??Wc.translate));}}));}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["jsonforms-categorization-layout"]],features:[A],decls:2,vars:4,consts:[["dynamicHeight","true",3,"ngStyle"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[4,"ngFor","ngForOf"],[3,"uischema","path","schema"]],template:function(n,r){n&1&&(d(0,"mat-tab-group",0),ee(1,Nwt,2,2,"mat-tab",1),u()),n&2&&(b("ngStyle",tn(2,Ta,r.hidden?"none":"")),m(),b("ngForOf",r.visibleCategories));},dependencies:[Qi,Ec,gr,xa,Zc,Pc,Ip,of],encapsulation:2,changeDetection:1})}return t})(),dxt=Zn(2,ur(Li("Categorization"),lye)),m$=(()=>{class t extends Yd{hidden;label;jsonFormsService=_(Qa);changeDetectionRef=_(ve);ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=t$(e,this.getOwnProps());this.label=n.label,this.hidden=!n.visible,this.changeDetectionRef.markForCheck();}}));}trackElement(e,n){return n?n.path+JSON.stringify(n.uischema):null}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["ng-component"]],features:[A],decls:0,vars:0,template:function(n,r){},encapsulation:2,changeDetection:1})}return t})(),p$=(()=>{class t{transform(e,n,r){return (e.elements||[]).map(a=>({uischema:a,schema:n,path:r}))}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Ui({name:"layoutChildrenRenderProps",type:t,pure:true})}return t})(),i0e=(()=>{class t extends m${static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["GroupLayoutRenderer"]],features:[A],decls:5,vars:10,consts:[["appearance","outlined",1,"group-layout",3,"ngStyle"],[1,"mat-headline-6"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"renderProps"]],template:function(n,r){n&1&&(d(0,"mat-card",0)(1,"mat-card-title",1),h(2),u(),ee(3,Pwt,2,1,"div",2),$(4,"layoutChildrenRenderProps"),u()),n&2&&(b("ngStyle",tn(8,Ta,r.hidden?"none":"")),m(2),L(r.label),m(),b("ngForOf",Fo(4,4,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement));},dependencies:[Qi,Ec,gr,xa,Zc,$c,qu,FT,p$],styles:[".group-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:16px}.group-layout[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto}"]})}return t})(),uxt=Zn(1,Li("Group")),r0e=(()=>{class t extends m${static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["HorizontalLayoutRenderer"]],features:[A],decls:3,vars:9,consts:[[1,"horizontal-layout",3,"ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"renderProps"]],template:function(n,r){n&1&&(d(0,"div",0),ee(1,Lwt,2,1,"div",1),$(2,"layoutChildrenRenderProps"),u()),n&2&&(b("ngStyle",tn(7,Ta,r.hidden?"none":"")),m(),b("ngForOf",Fo(2,3,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement));},dependencies:[Qi,Ec,gr,xa,Zc,p$],styles:[".horizontal-layout[_ngcontent-%COMP%]{display:flex;gap:16px;flex-flow:row wrap;align-items:flex-start;place-content:flex-start center}.horizontal-layout[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto}"]})}return t})(),mxt=Zn(1,Li("HorizontalLayout")),o0e=(()=>{class t extends m${static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["VerticalLayoutRenderer"]],features:[A],decls:3,vars:9,consts:[[1,"vertical-layout",3,"ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"renderProps"]],template:function(n,r){n&1&&(d(0,"div",0),ee(1,Fwt,2,1,"div",1),$(2,"layoutChildrenRenderProps"),u()),n&2&&(b("ngStyle",tn(7,Ta,r.hidden?"none":"")),m(),b("ngForOf",Fo(2,3,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement));},dependencies:[Qi,Ec,gr,xa,Zc,p$],styles:[".vertical-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.vertical-layout[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto}"]})}return t})(),pxt=Zn(1,Li("VerticalLayout")),a0e=(()=>{class t extends vC{noData;translations={};addItem;moveItemUp;moveItemDown;removeItems;uischemas;mapToProps(e){let n=yye(e,this.getOwnProps()),r$1=e.jsonforms.i18n?.translate??Wc.translate,o=_C(r$1,pC,n.i18nKeyPrefix,n.label);return s(r({},n),{translations:o})}remove(e){this.removeItems(this.propsPath,[e])();}add(){this.addItem(this.propsPath,cI(this.scopedSchema,this.rootSchema))();}up(e){this.moveItemUp(this.propsPath,e)();}down(e){this.moveItemDown(this.propsPath,e)();}ngOnInit(){super.ngOnInit();let{addItem:e,removeItems:n,moveUp:r,moveDown:o}=mI(this.jsonFormsService.updateCore.bind(this.jsonFormsService));this.addItem=e,this.moveItemUp=r,this.moveItemDown=o,this.removeItems=n;}mapAdditionalProps(e){this.noData=!e.data||e.data===0,this.uischemas=e.uischemas,this.translations=e.translations;}getProps(e){let n=lI(this.uischemas,this.scopedSchema,this.uischema.scope,this.propsPath,void 0,this.uischema,this.rootSchema);return this.isEnabled()?Fve(n):uC(n),{schema:this.scopedSchema,path:wB.compose(this.propsPath,`${e}`),uischema:n}}trackByFn(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275cmp=w({type:t,selectors:[["app-array-layout-renderer"]],features:[A],decls:12,vars:13,consts:[[1,"array-layout",3,"ngStyle"],[1,"array-layout-toolbar"],[1,"mat-h2","array-layout-title"],["color","warn","matBadgeColor","warn","matTooltipClass","error-message-tooltip",3,"matBadge","matTooltip",4,"ngIf"],["mat-button","",3,"click","matTooltip","disabled"],[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["color","warn","matBadgeColor","warn","matTooltipClass","error-message-tooltip",3,"matBadge","matTooltip"],["appearance","outlined",1,"array-item"],[3,"renderProps"],["class","item-up","mat-button","","matTooltipPosition","right",3,"disabled","matTooltip","click",4,"ngIf"],["class","item-down","mat-button","","matTooltipPosition","right",3,"disabled","matTooltip","click",4,"ngIf"],["mat-button","","color","warn","matTooltipPosition","right",3,"click","matTooltip"],["mat-button","","matTooltipPosition","right",1,"item-up",3,"click","disabled","matTooltip"],["mat-button","","matTooltipPosition","right",1,"item-down",3,"click","disabled","matTooltip"]],template:function(n,r){n&1&&(d(0,"div",0)(1,"div",1)(2,"h2",2),h(3),u(),O(4,"span"),ee(5,$wt,2,4,"mat-icon",3),O(6,"span"),d(7,"button",4),I("click",function(){return r.add()}),d(8,"mat-icon"),h(9,"add"),u()()(),ee(10,Vwt,2,1,"p",5)(11,Gwt,5,2,"div",6),u()),n&2&&(b("ngStyle",tn(10,Ta,r.hidden?"none":"")),m(3),L(r.label),m(2),b("ngIf",r.error==null?null:r.error.length),m(2),b("matTooltip",Ft(r.translations.addTooltip))("disabled",!r.isEnabled()),F("aria-label",r.translations.addAriaLabel),m(3),b("ngIf",r.noData),m(),b("ngForOf",qn(12,Bwt).constructor(r.data))("ngForTrackBy",r.trackByFn));},dependencies:[Qi,Ec,da,gr,xa,Zc,$c,qu,zte,Mf,xt,sn,bt,We,i$,hI,sr,hi],styles:[".array-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.array-layout[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 1 auto}.array-layout-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center}.array-layout-title[_ngcontent-%COMP%]{margin:0}.array-layout-toolbar[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:1 1 auto}.array-item[_ngcontent-%COMP%]{padding:16px} .error-message-tooltip{white-space:pre-line}"]})}return t})(),_xt=Zn(4,rye),ml=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=_e({type:t});static \u0275inj=pe({imports:[Qi,xa,qe,nl,ht,fI,Xf,hy,za,Pc,Qu,eg,Ge,$c,Kn,xt,bt,Mp,Fp,Xs,sr,i$,Gye,Kye,Qye,Yye,Wye,qye,Zye,o0e,r0e,n0e,i0e,Jye,Xye,e0e,jye,u$,t0e,a0e,Qi,xa,qe,nl,ht,fI,Xf,hy,za,Pc,Qu,eg,Ge,$c,Kn,xt,bt,Mp]})}return t})(),s0e=[{tester:qwt,renderer:Gye},{tester:ext,renderer:Qye},{tester:Jwt,renderer:Kye},{tester:Zwt,renderer:Yye},{tester:Xwt,renderer:Wye},{tester:Wwt,renderer:qye},{tester:txt,renderer:Zye},{tester:Qwt,renderer:jye},{tester:Kwt,renderer:u$},{tester:sxt,renderer:e0e},{tester:pxt,renderer:o0e},{tester:uxt,renderer:i0e},{tester:mxt,renderer:r0e},{tester:dxt,renderer:n0e},{tester:ixt,renderer:nxt},{tester:_xt,renderer:a0e},{tester:axt,renderer:Jye},{tester:cxt,renderer:t0e}];var l0e={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/exampleRadioEnum",options:{format:"radio"}},{type:"Control",label:false,scope:"#/properties/done"},{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/name"},{type:"Control",scope:"#/properties/phone"}]},{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/due_date"},{type:"Control",scope:"#/properties/niss"},{type:"Control",scope:"#/properties/iban"},{type:"Control",scope:"#/properties/recurrence"}]}]};var c0e={type:"object",properties:{exampleRadioEnum:{type:"string",enum:["One","Two","Three"]},name:{type:"string",minLength:1},done:{type:"boolean"},due_date:{type:"string",format:"date"},recurrence:{type:"string",enum:["Never","Daily","Weekly","Monthly"]},phone:{type:"string"},niss:{type:"string"},iban:{type:"string"}},required:["name","due_date","phone"]};function hxt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=y(2);m(),G(" ",e.error);}}function fxt(t,i){if(t&1){let e=xe();d(0,"mat-checkbox",0),I("change",function(r){Z(e);let o=y();return X(o.onCheckboxChange(r.checked))}),h(1),$(2,"translate"),u(),T(3,hxt,2,1,"mat-error");}if(t&2){let e=y();b("color",e.color())("checked",!!e.data)("indeterminate",e.indeterminate())("disabled",!e.enabled),m(),L(z(2,6,e.uischema.i18n+"")),m(2),D(e.error?3:-1);}}var d0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.color=E(""),this.indeterminate=E(false),this.getEventValue=e=>e;}onCheckboxChange(e){this.onChange(e);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-checkbox"]],inputs:{color:[1,"color"],indeterminate:[1,"indeterminate"]},features:[A],decls:1,vars:1,consts:[[3,"change","color","checked","indeterminate","disabled"]],template:function(n,r){n&1&&T(0,fxt,4,8),n&2&&D(r.hidden?-1:0);},dependencies:[nl,Io,ml,bn,lt],encapsulation:2});}}return t})(),u0e=Zn(3,hC);var gxt=new B("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:()=>({useUtc:false,defaultOutputCalendar:"gregory"})});function bxt(t,i){let e=Array(t);for(let n=0;n<t;n++)e[n]=i(n);return e}var vxt=(()=>{class t extends Dn{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();let e=_(yp,{optional:true}),n=_(gxt,{optional:true});this._useUTC=!!n?.useUtc,this._firstDayOfWeek=n?.firstDayOfWeek,this._defaultOutputCalendar=n?.defaultOutputCalendar||"gregory",this.setLocale(e||kt.local().locale);}getYear(e){return e.year}getMonth(e){return e.month-1}getDate(e){return e.day}getDayOfWeek(e){return e.weekday}getMonthNames(e){return fs.months(e,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return bxt(31,n=>e.format(kt.utc(2017,1,n+1).toJSDate()))}getDayOfWeekNames(e){let n=fs.weekdays(e,{locale:this.locale});return n.unshift(n.pop()),n}getYearName(e){return e.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek??fs.getStartOfWeek({locale:this.locale})}getNumDaysInMonth(e){return e.daysInMonth}clone(e){return kt.fromObject(e.toObject(),this._getOptions())}createDate(e,n,r){let o=this._getOptions();if(n<0||n>11)throw Error(`Invalid month index "${n}". Month index has to be between 0 and 11.`);if(r<1)throw Error(`Invalid date "${r}". Date has to be greater than 0.`);let a=this._useUTC?kt.utc(e,n+1,r,o):kt.local(e,n+1,r,o);if(!this.isValid(a))throw Error(`Invalid date "${r}". Reason: "${a.invalidReason}".`);return a}today(){let e=this._getOptions();return this._useUTC?kt.utc(e):kt.local(e)}parse(e,n){let r=this._getOptions();if(typeof e=="string"&&e.length>0){let o=kt.fromISO(e,r);if(this.isValid(o))return o;let a=Array.isArray(n)?n:[n];if(!n.length)throw Error("Formats array must not be empty.");for(let s of a){let l=kt.fromFormat(e,s,r);if(this.isValid(l))return l}return this.invalid()}else {if(typeof e=="number")return kt.fromMillis(e,r);if(e instanceof Date)return kt.fromJSDate(e,r);if(e instanceof kt)return kt.fromMillis(e.toMillis(),r)}return null}format(e,n){if(!this.isValid(e))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?e.setLocale(this.locale).setZone("utc").toFormat(n):e.setLocale(this.locale).toFormat(n)}addCalendarYears(e,n){return e.reconfigure(this._getOptions()).plus({years:n})}addCalendarMonths(e,n){return e.reconfigure(this._getOptions()).plus({months:n})}addCalendarDays(e,n){return e.reconfigure(this._getOptions()).plus({days:n})}toIso8601(e){return e.toISO()}deserialize(e){let n=this._getOptions(),r;if(e instanceof Date&&(r=kt.fromJSDate(e,n)),typeof e=="string"){if(!e)return null;r=kt.fromISO(e,n);}return r&&this.isValid(r)?r:super.deserialize(e)}isDateInstance(e){return e instanceof kt}isValid(e){return e.isValid}invalid(){return kt.invalid("Invalid Luxon DateTime object.")}setTime(e,n,r,o){return this.clone(e).set({hour:n,minute:r,second:o,millisecond:0})}getHours(e){return e.hour}getMinutes(e){return e.minute}getSeconds(e){return e.second}parseTime(e,n){let r=this.parse(e,n);return (!r||!this.isValid(r))&&typeof e=="string"&&this.parse(e.replace(/[^0-9:(AM|PM)]/gi,""),n)||r}addSeconds(e,n){return e.reconfigure(this._getOptions()).plus({seconds:n})}_getOptions(){return {zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ke({token:t,factory:t.\u0275fac,autoProvided:false})}return t})(),yxt={parse:{dateInput:"D",timeInput:"t"},display:{dateInput:"D",timeInput:"t",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy",timeOptionLabel:"t"}};function bI(t=yxt){return [{provide:Dn,useClass:vxt},{provide:lr,useValue:t}]}var Cxt=t=>({display:t});function Ext(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=y();m(),L(e.description);}}function Sxt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=y();m(),L(e.error);}}var m0e="yyyy-MM-dd",p0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.focused=false,this.startView="month",this.panelClass="",this.views=["year","month","day"],this.OnemrvaMatDatepickerHeaderComponent=Uc,this.maxDate=null,this.minDate=null,this.dateAdapter=_(Dn),this.getEventValue=e=>{let n=e.value?e.value:e;return this.dateAdapter.format(n,this.getSaveFormat())};}mapToProps(e){let n=super.mapToProps(e),r$1=this.uischema?.options?.dateSaveFormat?this.uischema.options.dateSaveFormat:m0e;this.views=this.uischema?.options?.views?this.uischema.options.views:["year","month","day"],this.setDateLimits(),this.setViewProperties(),this.uischema?.options?.dateFormat&&this.dateAdapter.setLocale(this.jsonFormsService.getLocale()||"en");let a=null;if(n.data)try{a=this.dateAdapter.parse(n.data,r$1);}catch(s){console.warn("Failed to parse date:",n.data,s);}return s(r({},n),{data:a})}setDateLimits(){let e=this.uischema?.options;e?.maxDate&&(this.maxDate=this.parseDate(e.maxDate)),e?.minDate&&(this.minDate=this.parseDate(e.minDate));}parseDate(e){if(e==="today")return new Date;if(e==="tomorrow"){let n=new Date;return n.setDate(n.getDate()+1),n}else if(e==="yesterday"){let n=new Date;return n.setDate(n.getDate()-1),n}else if(typeof e=="string")try{let n=this.dateAdapter.parse(e,this.getSaveFormat());return n?this.luxonToDate(n):null}catch(n){return console.warn("Failed to parse date:",e,n),null}else if(e instanceof Date)return e;return null}luxonToDate(e){return e.toJSDate()}yearSelected(e,n){!this.views.includes("day")&&!this.views.includes("month")&&(this.onChange(e),n.close());}monthSelected(e,n){this.views.includes("day")||(this.onChange(e),n.close());}setViewProperties(){this.views.includes("day")?this.startView="month":(this.startView="multi-year",this.panelClass="no-panel-navigation");}getSaveFormat(){return this.uischema?.options?.dateSaveFormat||m0e}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-date-picker-renderer"]],features:[he([bI()]),A],decls:10,vars:15,consts:[["picker","","datepicker",""],[1,"date-control-renderer",3,"ngStyle"],["matInput","",3,"dateChange","focus","focusout","id","formControl","matDatepicker","max","min"],["matSuffix","",3,"for"],[3,"yearSelected","monthSelected","calendarHeaderComponent","startView","panelClass"]],template:function(n,r){if(n&1){let o=xe();d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),I("dateChange",function(s){return r.onChange(s)})("focus",function(){return r.focused=true})("focusout",function(){return r.focused=false}),u(),Ee(),O(4,"mat-datepicker-toggle",3),d(5,"mat-datepicker",4,0),I("yearSelected",function(s){Z(o);let l=Ve(6);return X(r.yearSelected(s,l))})("monthSelected",function(s){Z(o);let l=Ve(6);return X(r.monthSelected(s,l))}),u(),T(8,Ext,2,1,"mat-hint"),T(9,Sxt,2,1,"mat-error"),u();}if(n&2){let o=Ve(7);b("ngStyle",tn(13,Cxt,r.hidden?"none":"")),m(2),L(r.label),m(),b("id",r.id)("formControl",r.form)("matDatepicker",o)("max",r.maxDate)("min",r.minDate),Se(),m(),b("for",o),m(),b("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent)("startView",r.startView)("panelClass",r.panelClass),m(3),D(r.shouldShowUnfocusedDescription()||r.focused?8:-1),m(),D(r.error?9:-1);}},dependencies:[rt,Xo,ml,gr,it,pn,bn,Zi,Jt,Ha,ko,Ht,Ye,ut],styles:[`DateControlRenderer{display:flex;flex-direction:row}.date-control-renderer{flex:1 1 auto}.no-panel-navigation .mat-calendar-period-button{pointer-events:none}.no-panel-navigation .mat-calendar-arrow{display:none}.mat-headline-6{font-size:5px;line-height:.6;color:#000}
|
|
10799
10799
|
`],encapsulation:2});}}return t})(),_0e=Zn(3,sI);function wxt(t,i){t&1&&(d(0,"mat-error"),h(1),$(2,"translate"),u()),t&2&&(m(),G(" ",z(2,1,"error.required")," "));}function xxt(t,i){t&1&&(d(0,"mat-error"),h(1),$(2,"translate"),u()),t&2&&(m(),G(" ",z(2,1,"error.iban.length")," "));}function Txt(t,i){t&1&&(d(0,"mat-error"),h(1," NoIBANCountry"),u());}function Dxt(t,i){t&1&&(d(0,"mat-error"),h(1),$(2,"translate"),u()),t&2&&(m(),G(" ",z(2,1,"error.iban.invalid")," "));}function Ixt(t,i){if(t&1&&(d(0,"mat-form-field")(1,"mat-label"),h(2,"IBAN"),u(),O(3,"onemrva-mat-input-iban",0),Ee(),T(4,wxt,3,3,"mat-error"),T(5,xxt,3,3,"mat-error")(6,Txt,2,0,"mat-error")(7,Dxt,3,3,"mat-error"),u()),t&2){let e=y();m(3),b("formControl",e.accountNumber),Se(),m(),D(e.accountNumber.hasError("required")?4:-1),m(),D(e.accountNumber.hasError("WrongBBANLength")?5:e.accountNumber.hasError("NoIBANCountry")?6:!e.accountNumber.hasError("WrongBBANLength")&&(e.accountNumber.hasError("WrongBBANFormat")||e.accountNumber.hasError("WrongAccountBankBranchChecksum")||e.accountNumber.hasError("WrongIBANChecksum"))?7:-1);}}var h0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.cdr=_(ve),this.accountNumber=new Ne("",[Mt.required,bx()]);}ngOnInit(){super.ngOnInit(),this.sub=this.accountNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(jr.update(this.propsPath,()=>e)),this.triggerValidation(),this.cdr.markForCheck();});}ngOnDestroy(){this.sub?.unsubscribe(),super.ngOnDestroy();}mapAdditionalProps(){this.accountNumber.value!==this.data&&this.accountNumber.setValue(this.data??null,{emitEvent:false});}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-iban-renderer"]],features:[A],decls:1,vars:1,consts:[[3,"formControl"]],template:function(n,r){n&1&&T(0,Ixt,8,3,"mat-form-field"),n&2&&D(r.hidden?-1:0);},dependencies:[qe,rt,it,bn,Ge,Ye,ut,ht,bf,lt],encapsulation:2});}}return t})(),f0e=Zn(10,Gg("iban"));function kxt(t,i){if(t&1&&(d(0,"mat-label",0),h(1),u()),t&2){let e=y();b("ngStyle",e.labelStyle),m(),G(" ",e.label," ");}}var g0e=(()=>{class t extends Yd{constructor(){super(...arguments),this.jsonFormsService=_(Qa);}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=pI(e,this.getOwnProps());this.label=n.text,this.visible=n.visible;}}));}get labelStyle(){return {fontSize:`${this.fontSize}px`,fontWeight:`${this.fontWeight}`}}get fontWeight(){return this.uischema.options?.fontWeight??"normal"}get fontSize(){return this.uischema.options?.textSize??20}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-label-renderer"]],features:[A],decls:1,vars:1,consts:[[3,"ngStyle"]],template:function(n,r){n&1&&T(0,kxt,2,2,"mat-label",0),n&2&&D(r.visible?0:-1);},dependencies:[it,gr],encapsulation:2});}}return t})(),b0e=Zn(5,Li("Label"));var v0e=(()=>{class t{static{this.PROPERTY_PATH_REGEX=/\/properties\/([^/]+)(?:\/properties\/([^/]+))?/;}static extractStepKey(e){let r=new RegExp(t.PROPERTY_PATH_REGEX).exec(e??"");return r?r[2]?`/${r[1]}/${r[2]}`:`/${r[1]}`:""}}return t})();function Mxt(t,i){t&1&&(d(0,"mat-error"),h(1),$(2,"translate"),u()),t&2&&(m(),L(z(2,1,"error.ssin")));}var y0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.nissMask=mx,this.isUpdating=W(false),this.jsonFormsService=_(Qa),this.getEventValue=e=>e?.target?.value,this.validator=e=>{if(this.isUpdating())return null;let n=e.value;if(!n||typeof n!="string")return console.debug("Invalid NISS value: "+n),null;console.debug("Valid NISS value: "+n);let r=n.toString().trim();if(!r)return null;let o=new Ne(r),s=Iu.niss()(o);return s?(this.setErrorValue(s),s):null};}ngOnInit(){super.ngOnInit(),this.form.setValue(this.data),this.form.setValidators(this.validator);}onChange(e){let n=this.getEventValue(e),r$1=n.replace(/[^0-9]/g,"");this.form.setValue(n);let o=s(r({},e),{target:s(r({},e.target),{value:r$1})});super.onChange(o);}setErrorValue(e){this.isUpdating.set(true);try{let r=this.jsonFormsService.getState()?.jsonforms?.core?.errors??[],a={instancePath:v0e.extractStepKey(this.uischema?.scope),message:"Num\xE9ro XXXX invalide",keyword:"custom-renderer",schemaPath:this.uischema?.scope??"",params:{}},s=[...r,a],l=jr.updateErrors(s);this.jsonFormsService.updateCore(l);}finally{this.isUpdating.set(false);}}isSsinError(){let e=this.form.errors;return e!==null&&Object.keys(e).length>0&&Object.keys(e)[0].startsWith("niss")}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-niss-renderer"]],features:[he([ig()]),A],decls:5,vars:6,consts:[["matInput","",3,"input","id","formControl","mask"]],template:function(n,r){n&1&&(d(0,"mat-form-field")(1,"mat-label"),h(2),u(),d(3,"input",0),I("input",function(a){return r.onChange(a)}),u(),Ee(),u(),T(4,Mxt,3,3,"mat-error")),n&2&&(m(2),L(r.label),m(),b("id",Ft(r.id))("formControl",r.form)("mask",r.nissMask),Se(),m(),D(r.isSsinError()?4:-1));},dependencies:[rt,it,bn,ml,Jt,Ht,Ye,ut,R1,lt],encapsulation:2});}}return t})(),C0e=Zn(10,Gg("ssin"));function Oxt(t,i){t&1&&(d(0,"mat-error"),h(1),$(2,"translate"),u()),t&2&&(m(),G(" ",z(2,1,"error.phone.invalid")," "));}var E0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.cdr=_(ve),this.phoneNumber=new Ne("",[wx()]);}ngOnInit(){super.ngOnInit(),this.sub=this.phoneNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(jr.update(this.propsPath,()=>e)),this.triggerValidation(),this.cdr.markForCheck();});}ngOnDestroy(){this.sub?.unsubscribe(),super.ngOnDestroy();}mapAdditionalProps(){this.phoneNumber.value!==this.data&&this.phoneNumber.setValue(this.data??null,{emitEvent:false});}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-phone-renderer"]],features:[A],decls:9,vars:8,consts:[["placeholder","+32 475 12 23 34",3,"formControl"]],template:function(n,r){n&1&&(d(0,"mat-form-field")(1,"mat-label"),h(2),$(3,"translate"),u(),O(4,"onemrva-mat-input-phone",0),Ee(),d(5,"mat-hint"),h(6),$(7,"translate"),u(),T(8,Oxt,3,3,"mat-error"),u()),n&2&&(m(2),L(z(3,4,"input.phone.label")),m(2),b("formControl",r.phoneNumber),Se(),m(2),L(z(7,6,"input.phone.hint")),m(2),D(r.phoneNumber.hasError("phoneNumber")?8:-1));},dependencies:[qe,rt,it,pn,bn,Ge,Ye,ut,ng,_n,ht,lt],encapsulation:2});}}return t})(),S0e=Zn(8,Gg("phone"));function Rxt(t,i){if(t&1&&(d(0,"mat-radio-button",2),h(1),$(2,"translate"),u()),t&2){let e=i.$implicit,n=y(2);b("value",e),m(),G(" ",z(2,2,n.uischema.i18n+"."+e)," ");}}function Axt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=y(2);m(),G(" ",e.error);}}function Nxt(t,i){if(t&1){let e=xe();d(0,"mat-radio-group",1),Pr("ngModelChange",function(r){Z(e);let o=y();return Dr(o.data,r)||(o.data=r),X(r)}),I("change",function(r){Z(e);let o=y();return X(o.onChange(r))}),fe(1,Rxt,3,4,"mat-radio-button",2,Yt),T(3,Axt,2,1,"mat-error"),u(),Ee();}if(t&2){let e=y();b("disabled",Ft(e.isControlDisable)),Nr("ngModel",e.data),Se(),m(),ge(e.options),m(2),D(e.error?3:-1);}}var w0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.options=[];}mapAdditionalProps(){this.scopedSchema&&this.scopedSchema.enum&&(this.options=this.scopedSchema.enum);}get isControlDisable(){try{let e=this.jsonFormsService.getState(),n=e?.jsonforms?.core?.ajv;return n?!SB(this.uischema,e?.jsonforms?.core?.data??{},"",n,null):!0}catch{return true}}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-radio-button-renderer"]],features:[A],decls:1,vars:1,consts:[[1,"vertical-radio-group",3,"ngModel","disabled"],[1,"vertical-radio-group",3,"ngModelChange","change","ngModel","disabled"],[3,"value"]],template:function(n,r){n&1&&T(0,Nxt,4,4,"mat-radio-group",0),n&2&&D(r.hidden?-1:0);},dependencies:[bn,ml,Ye,Ld,_n,Rd,em,lt],styles:[".vertical-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:1px}"]});}}return t})(),x0e=t=>t.type==="Control"&&t.options?.format==="radio"?11:-1;var T0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.translate=_(Rn),this.onemrvaNissPipe=_(fx);}mapAdditionalProps(){if(this.needsTranslation()){let e=this.uischema.i18n+"."+this.form.value,n=this.translate.instant(e);this.form.patchValue(n);}if(this.isNiss()){let e=this.onemrvaNissPipe.transform(this.form.value);this.form.patchValue(e);}if(this.isIban()){let e=this.formatIban(this.form.value);this.form.patchValue(e);}}formatIban(e){return e.replace(/\s+/g,"").replace(/(.{4})/g,"$1 ").trim()}hasValueAndSchema(){return !!this.form.value&&!!this.scopedSchema}isIban(){return this.hasValueAndSchema()&&!!this.uischema.scope&&this.uischema.scope.endsWith("/iban")}isDate(){return this.hasValueAndSchema()&&this.scopedSchema.format==="date"}isNiss(){return this.hasValueAndSchema()&&!!this.uischema.scope&&this.uischema.scope.endsWith("/ssin")}needsTranslation(){let e=this.hasValueAndSchema()&&!!this.scopedSchema.enum,n=this.scopedSchema!==void 0&&this.scopedSchema.type?.[0]==="boolean";return e||n}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-readonly-control-renderer"]],features:[he([]),A],decls:4,vars:3,consts:[[1,"summary-grid"],[1,"column1"],[1,"column2","mat-typography",3,"id","formControl"]],template:function(n,r){n&1&&(d(0,"div",0)(1,"mat-label",1),h(2),u(),O(3,"input",2),Ee(),u()),n&2&&(m(2),L(r.label),m(),b("id",r.id)("formControl",r.form),Se());},dependencies:[_n,Ht,Ye,it,ml,ut],styles:[".column2[_ngcontent-%COMP%]{border:none;background:none}"]});}}return t})(),D0e=Zn(11,ur(u_,Qc("readonly",true)));function Pxt(t,i){if(t&1&&(d(0,"mat-option",2),h(1),$(2,"translate"),u()),t&2){let e=i.$implicit,n=y();b("value",e),m(),G(" ",z(2,2,n.uischema.i18n+"."+e)," ");}}var I0e=(()=>{class t extends Fi{constructor(){super(...arguments),this.options=W([]);}mapAdditionalProps(e){this.options.set(this.scopedSchema?.enum||[]),super.mapAdditionalProps(e);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-enum-renderer"]],features:[A],decls:6,vars:3,consts:[["appearance","outline"],[3,"valueChange","selectionChange","value","formControl"],[3,"value"]],template:function(n,r){n&1&&(d(0,"mat-form-field",0)(1,"mat-label"),h(2),u(),d(3,"mat-select",1),Pr("valueChange",function(a){return Dr(r.data,a)||(r.data=a),a}),I("selectionChange",function(a){return r.onChange(a)}),fe(4,Pxt,3,4,"mat-option",2,Yt),u(),Ee(),u()),n&2&&(m(2),L(r.label),m(),Nr("value",r.data),b("formControl",r.form),Se(),m(),ge(r.options()));},dependencies:[rt,it,Xt,Mi,ml,Ye,ut,lt],encapsulation:2});}}return t})(),k0e=Zn(10,aI);var M0e=(()=>{class t extends ie{constructor(){super(...arguments),this.renderers=[...s0e,{tester:D0e,renderer:T0e},{tester:k0e,renderer:I0e},{tester:C0e,renderer:y0e},{tester:f0e,renderer:h0e},{tester:b0e,renderer:g0e},{tester:x0e,renderer:w0e},{tester:u0e,renderer:d0e},{tester:S0e,renderer:E0e},{tester:_0e,renderer:p0e}],this.uischema=l0e,this.schema=c0e,this.data={};}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-jsonform"]],features:[A],decls:1,vars:4,consts:[[3,"data","schema","uischema","renderers"]],template:function(n,r){n&1&&O(0,"jsonforms",0),n&2&&b("data",r.data)("schema",r.schema)("uischema",r.uischema)("renderers",r.renderers);},dependencies:[xa,Sye],encapsulation:2});}}return t})();var O0e=(()=>{class t extends ie{constructor(){super(...arguments),this.form=new Gr({iban:new Ne("",Mt.required),phone:new Ne("",Mt.required),text:new Ne("",Mt.required),date:new Ne("",Mt.required)}),this.OnemrvaMatDatepickerHeaderComponent=Uc;}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-form"]],features:[he([bI()]),A],decls:36,vars:10,consts:[["picker",""],[3,"formGroup"],["matInput","","formControlName","text"],["formControlName","phone","placeholder","+32 475 12 23 34"],["formControlName","iban"],["matInput","","formControlName","date",3,"matDatepicker"],["matSuffix","",3,"for"],[3,"calendarHeaderComponent"]],template:function(n,r){if(n&1&&(d(0,"form",1)(1,"mat-form-field")(2,"mat-label"),h(3,"Error demo"),u(),O(4,"input",2),Ee(),d(5,"mat-hint"),h(6,"Hint"),u(),d(7,"mat-error"),h(8,"Error"),u()(),d(9,"mat-form-field")(10,"mat-label"),h(11,"Phone number"),u(),O(12,"onemrva-mat-input-phone",3),Ee(),d(13,"mat-hint"),h(14,"hint"),u(),d(15,"mat-error"),h(16),$(17,"translate"),u()(),d(18,"mat-form-field")(19,"mat-label"),h(20,"IBAN"),u(),O(21,"onemrva-mat-input-iban",4),Ee(),d(22,"mat-hint"),h(23,"hint"),u(),d(24,"mat-error"),h(25),$(26,"translate"),u()(),d(27,"mat-form-field")(28,"mat-label"),h(29,"Choose a date"),u(),O(30,"input",5),Ee(),d(31,"mat-hint"),h(32,"DD/MM/YYYY"),u(),O(33,"mat-datepicker-toggle",6)(34,"mat-datepicker",7,0),u()()),n&2){let o=Ve(35);b("formGroup",r.form),m(4),Se(),m(8),Se(),m(4),G(" ",z(17,6,"input.phone.required")," "),m(5),Se(),m(4),G(" ",z(26,8,"input.bank.required")," "),m(5),b("matDatepicker",o),Se(),m(3),b("for",o),m(),b("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent);}},dependencies:[xa,Ge,Lc,Ht,Ye,vo,Cr,zl,Ha,Xo,qe,rt,it,pn,bn,Zi,ko,Jt,bf,ng,lt],encapsulation:2});}}return t})();var Lxt=["*"];function Fxt(t,i){if(t&1&&(d(0,"onemrva-mat-sticker",3),h(1),u()),t&2){let e=y();b("color",e.stickerColor()),m(),G(" ",e.stickerText()," ");}}var R0e=(()=>{class t{constructor(){this.OnemrvaMatColor=Bt,this.title=E.required(),this.stickerColor=E(Bt.PRIMARY),this.stickerText=E(),this.isCollapsed=uo(false);}toggle(){this.isCollapsed.update(e=>!e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["onemrva-collapsible-page-divider"]],inputs:{title:[1,"title"],stickerColor:[1,"stickerColor"],stickerText:[1,"stickerText"],isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},ngContentSelectors:Lxt,decls:12,vars:4,consts:[["tabindex","0",3,"click"],[1,"title"],[1,"divider"],[3,"color"],[1,"arrow-container"],[1,"content"]],template:function(n,r){n&1&&(me(),d(0,"section")(1,"header",0),I("click",function(){return r.toggle()}),d(2,"span",1),h(3),u(),O(4,"span",2),T(5,Fxt,2,2,"onemrva-mat-sticker",3),d(6,"div",4)(7,"mat-icon"),h(8,"keyboard_arrow_down"),u()()(),d(9,"main")(10,"div",5),j(11),u()()()),n&2&&(H("collapsed",r.isCollapsed()),m(3),L(r.title()),m(2),D(r.stickerText()?5:-1));},dependencies:[We,Ko,Fn],styles:["[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] section[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:8px 0}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font:var(--mat-sys-headline-large)}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{flex-grow:1;height:1px;background-color:#e4e1ea}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background-color:#eb142a;color:#fff;padding:4px 12px;border-radius:4px;font-size:.85rem;font-weight:500}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .arrow-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;transition:transform .35s ease}[_nghost-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .arrow-container[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{width:24px;height:24px}[_nghost-%COMP%] section.collapsed[_ngcontent-%COMP%] .arrow-container[_ngcontent-%COMP%]{transform:rotate(-180deg)}[_nghost-%COMP%] section.collapsed[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0}[_nghost-%COMP%] section[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;box-sizing:border-box;overflow:hidden;opacity:1;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out}[_nghost-%COMP%] section[_ngcontent-%COMP%] main[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{min-height:0}"]});}}return t})();var A0e=(()=>{class t extends ie{constructor(){super(...arguments),this.title=E("Demande n\xB01 - 01/01/2020"),this.stickerColor=E(Bt.PRIMARY),this.stickerText=E("Here is your sticker"),this.isCollapsed=E(false);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-collapsible-page-divider"]],inputs:{title:[1,"title"],stickerColor:[1,"stickerColor"],stickerText:[1,"stickerText"],isCollapsed:[1,"isCollapsed"]},features:[A],decls:17,vars:3,consts:[["title","Demande n\xB01 - 01/01/2020",3,"stickerText","stickerColor","isCollapsed"]],template:function(n,r){n&1&&(d(0,"onemrva-collapsible-page-divider",0)(1,"p"),h(2,"This is the content of the first collapsible divider."),u(),d(3,"p"),h(4,"This is the content of the first collapsible divider."),u(),d(5,"p"),h(6,"This is the content of the first collapsible divider."),u(),d(7,"p"),h(8,"This is the content of the first collapsible divider."),u(),d(9,"p"),h(10,"This is the content of the first collapsible divider."),u(),d(11,"p"),h(12,"This is the content of the first collapsible divider."),u(),d(13,"p"),h(14,"This is the content of the first collapsible divider."),u(),d(15,"p"),h(16,"This is the content of the first collapsible divider."),u()()),n&2&&b("stickerText",r.stickerText())("stickerColor",r.stickerColor())("isCollapsed",r.isCollapsed());},dependencies:[R0e,xt,bt],styles:[`app-demo-collapsible-page-divider{width:100%}
|
|
10800
10800
|
`],encapsulation:2});}}return t})();var N0e=(()=>{class t extends ie{constructor(){super(...arguments),this.value=E(0),this._value=se(()=>this.value()===0?"":this.value()>99?"99+":this.value()),this._size=()=>this.value()>1?"large":"small";}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-badge"]],inputs:{value:[1,"value"]},features:[A],decls:2,vars:3,consts:[[3,"matBadge","matBadgeSize"]],template:function(n,r){n&1&&(d(0,"div",0),h(1),u()),n&2&&(b("matBadge",r._value())("matBadgeSize",r._size()),m(),G(" Here is your badge demo ",r.value(),`
|
|
10801
|
-
`));},dependencies:[qe,Ge,ht,hI],encapsulation:2});}}return t})();var P0e=[{name:"Address",selector:"demo-address",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,test:true,centered:true},{name:"Address Input",selector:"demo-address-input",showCode:true,showDemo:true,link:"",inputs:[],test:true,centered:true,showOutput:true},{name:"Autocomplete",selector:"demo-autocomplete",showCode:true,showDemo:true,link:"https://material.angular.io/components/autocomplete/overview",inputs:[{name:"readonly",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Avatar",selector:"demo-avatar",showCode:true,showDemo:true,link:"",inputs:[{name:"initials",values:["","OJ"],currentValue:""},{name:"src",values:["","https://cdn.services.rvaonem.fgov.be/img/flags/1x1/be.svg"],currentValue:""},{name:"size",values:["xsmall","small","medium","large"],currentValue:""},{name:"color",values:["accent"],currentValue:""},{name:"icon",values:["account_circle"],currentValue:""}],test:true,centered:true},{name:"Badge",selector:"demo-badge",showCode:true,showDemo:true,link:"",inputs:[{name:"value",values:[0,1,15,432],currentValue:0}],test:true,centered:true},{name:"Bank Input",selector:"demo-bank-input",showCode:true,showDemo:true,link:"",inputs:[{name:"readonly",values:[true,false],currentValue:false}],test:true,centered:true,translationKey:"input.bank"},{name:"BCE pipe",selector:"demo-bce-pipe",showCode:true,showDemo:true,link:"",inputs:[],test:false,centered:true},{name:"Breadcrumb",selector:"demo-breadcrumb",showCode:true,showDemo:true,link:"",inputs:[],test:true,centered:false},{name:"Button",selector:"demo-button",showCode:true,showDemo:true,link:"https://material.angular.io/components/button/overview",inputs:[{name:"size",values:["","small"],currentValue:""},{name:"icon",values:["","home","chevron_left","settings"],currentValue:""},{name:"iconEnd",values:["","chevron_right"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Button Loading",selector:"demo-button-loading",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["outlined","contained"],currentValue:"contained"},{name:"disabled",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Icon Button",selector:"demo-icon-button",showCode:true,showDemo:true,link:"https://fonts.google.com/icons",inputs:[],test:true},{name:"Card",selector:"demo-card",description:"Content card with an optional image, label, title, subtitle, description and help tooltip. The card is not clickable as a whole: it can hold buttons, so a card-wide click target would nest interactive elements. Put the action in the cardActions slot instead.",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["no-background","outline","background"],currentValue:"no-background"},{name:"imageSrc",values:["","https://cdn.services.rvaonem.fgov.be/img/banner/banner-new-component.png"],currentValue:"https://cdn.services.rvaonem.fgov.be/img/banner/banner-new-component.png"},{name:"helpText",values:["More information about this component",""],currentValue:"More information about this component"},{name:"title",values:["Here is your title",""],currentValue:"Here is your title"},{name:"subtitle",values:["With a subtitle",""],currentValue:"With a subtitle"},{name:"label",values:["Category label",""],currentValue:"Category label"},{name:"coloredTitle",values:["auto","true","false"],currentValue:"auto"},{name:"showActions",values:[true,false],currentValue:true},{name:"showDescription",values:[true,false],currentValue:true}],test:true,centered:true},{name:"Card Table",selector:"demo-card-table",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Checkbox",selector:"demo-checkbox",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","success"],currentValue:""},{name:"checked",values:[true,false],currentValue:true},{name:"indeterminate",values:[true,false],currentValue:false},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Chips",selector:"demo-chips",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","error"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Chips Input",selector:"demo-chips-input",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","error"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Choice chips",selector:"demo-choice-chips",showCode:true,showDemo:true,link:"",showOutput:true,inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Collapsible Page Divider",selector:"demo-collapsible-page-divider",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:[Bt.WARN,Bt.SUCCESS,Bt.ERROR,Bt.ACCENT,Bt.PRIMARY],currentValue:Bt.PRIMARY},{name:"stickerText",values:["","Your Sticker value"],currentValue:""},{name:"isCollapsed",values:[true,false],currentValue:true}],test:true},{name:"Copy to clipboard",selector:"demo-copy-to-clipboard",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true},{name:"Country Input",selector:"demo-country-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,centered:true,test:true},{name:"Birthplace input",selector:"demo-birthplace-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Date Picker",selector:"demo-datepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Date Picker Month Year ",selector:"demo-datepicker-month-year",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true,showOutput:true},{name:"Date Picker Luxon",selector:"demo-datepicker-luxon",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true,showOutput:true},{name:"Date Range Picker",selector:"demo-daterangepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Dialog",selector:"demo-dialog",showCode:true,showDemo:true,link:"",inputs:[{name:"size",values:["","small","medium","large","xlarge"],currentValue:""},{name:"type",values:["","error","warn","success"],currentValue:""}],centered:true,test:true},{name:"Dialog Content",selector:"demo-dialog-content",showCode:true,showDemo:false,link:"",inputs:[],test:false},{name:"Digit Only directive",selector:"demo-digit-only",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Drag and drop",selector:"demo-drag-and-drop",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Drawer",selector:"demo-drawer",showCode:true,showDemo:true,link:"",inputs:[{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:""}],test:false},{name:"Enterprise number (VIES)",selector:"demo-enterprise-number-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,centered:true,test:true},{name:"Error Handler",selector:"demo-error-handler",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"File Panel",selector:"demo-file-panel",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","success","warn","error"],currentValue:""},{name:"disabled",values:[false,true],currentValue:false}],test:true},{name:"File Upload",selector:"demo-file-upload",showCode:true,showDemo:true,link:"",inputs:[],test:true,showOutput:true,translationKey:"file"},{name:"File Upload Manual",selector:"demo-file-upload-manual",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"file"},{name:"FAB",selector:"demo-fab",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["accent","primary"],currentValue:"accent"},{name:"icon",values:["comment","share"],currentValue:"comment"},{name:"extended",values:[true,false],currentValue:true}],centered:true,test:true},{name:"Grid",selector:"demo-grid",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Form",selector:"demo-form",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Icon",selector:"demo-icon",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:"primary"},{name:"size",values:["small","medium","large","xxlarge"],currentValue:"xxlarge"},{name:"icon",values:["","settings","person"],currentValue:"settings"},{name:"filled",values:[true,false],currentValue:false}],centered:true,test:true},{name:"If width is",selector:"demo-if-width-is",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"JSON Forms",selector:"demo-jsonform",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Layout and drawer",selector:"demo-layout",showCode:true,showDemo:true,link:"",inputs:[],test:false,translationKey:"layout"},{name:"Language switcher",selector:"demo-language-switcher",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Link",selector:"demo-link",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Mask",selector:"demo-mask",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Message box",selector:"demo-message-box",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["info","warn","success","error","neutral"],currentValue:"info"}],test:true},{name:"Menu",selector:"demo-menu",showCode:true,showDemo:true,centered:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false}],test:true},{name:"Multi Select",selector:"demo-multiselect",showCode:true,showDemo:true,link:"",inputs:[{name:"selectionToggle",values:[true,false],currentValue:true},{name:"showFilter",values:[true,false],currentValue:true},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"select"},{name:"Select",selector:"demo-select",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"select"},{name:"NISS pipe",selector:"demo-niss-pipe",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Notification",selector:"demo-notification",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Overlay",selector:"demo-overlay",showCode:true,showDemo:true,link:"",inputs:[],test:false,centered:true},{name:"Page Error",selector:"demo-error",showCode:true,showDemo:true,link:"",inputs:[{name:"code",values:[500,404,403,401,400,503,502,408,429],currentValue:500}],test:true,translationKey:"error"},{name:"Page not found",selector:"demo-not-found",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"404"},{name:"Paginator",selector:"demo-paginator",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"paginator"},{name:"Palette",selector:"demo-palette",showCode:false,showDemo:true,link:"",inputs:[{name:"color",values:["primary","warn","success","info","neutral","accent"],currentValue:""}],test:true},{name:"Panel",selector:"demo-panel",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["default","primary"],currentValue:""},{name:"expandable",values:[true,false],currentValue:true}],test:true},{name:"PopOver",selector:"demo-pop-over",showCode:true,showDemo:true,link:"",inputs:[{name:"position",values:["","top-left","top-right","bottom-left","bottom-right"],currentValue:""}],test:true,centered:true},{name:"ProgressBar",selector:"demo-progress-bar",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Radio",selector:"demo-radio",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Rxjs Complex case",selector:"demo-rxjs-complex-case",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Combine Operators",selector:"demo-rxjs-combine-operators",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Flattening Operators",selector:"demo-rxjs-flattening-operators",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Observable",selector:"demo-rxjs-observable",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Subject",selector:"demo-rxjs-subject",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Side menu",selector:"demo-side-menu",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Selectable box",selector:"demo-selectable-box",showCode:true,showDemo:true,link:"",inputs:[{name:"icon",values:[false,true],currentValue:true},{name:"content",values:[false,true],currentValue:true},{name:"title",values:[false,true],currentValue:true},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Selectable box Large",selector:"demo-selectable-box-large",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Skeleton",selector:"demo-skeleton",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Slide toggle",selector:"demo-slide-toggle",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Spacing",selector:"demo-spacing",showCode:false,showDemo:true,link:"",inputs:[],test:true},{name:"Spinner",selector:"demo-spinner",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Stepper (horizontal)",selector:"demo-horizontal-stepper",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Stepper (with Summary)",selector:"demo-summary-stepper",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Sticker",selector:"demo-sticker",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["primary","success","error","info","warn","neutral"],currentValue:"primary"},{name:"tooltip",values:["","Here is your text"],currentValue:""},{name:"htmlTooltip",values:[true,false],currentValue:false}],test:true},{name:"Tab",selector:"demo-tab",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Table",selector:"demo-table",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Table of content",selector:"demo-toc",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Task list",selector:"demo-task-list",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["bubble","checkbox","icon"],currentValue:"checkbox"},{name:"color",values:["","error","success"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Toast",selector:"demo-toast",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Text Input",selector:"demo-text-input",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","warn"]},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false},{name:"hintColor",values:["","warn"],currentValue:""}],centered:true,test:true},{name:"Phone Input",selector:"demo-phone-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"input.phone"},{name:"Textarea",selector:"demo-textarea",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false},{name:"autoresize",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Timepicker",selector:"demo-timepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Timeline",selector:"demo-timeline",description:"Plot dated periods on a horizontal, year-based timeline. Overlapping periods stack into rows and take their color from the legend, with month/day zoom, selection, tooltips, filters, and an optional full-size mode.",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Button Toggle",selector:"demo-button-toggle",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["text","icon"],currentValue:"text"}],centered:true,test:true},{name:"Toolbar",selector:"demo-toolbar",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Tooltip",selector:"demo-tooltip",showCode:true,showDemo:true,link:"",inputs:[{name:"position",values:["above","below","right","left","before","after"],currentValue:"above"},{name:"filled",values:[true,false],currentValue:false},{name:"html",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Typography",selector:"demo-typography",showCode:false,showDemo:true,link:"",inputs:[],test:true},{name:"Validators",selector:"demo-validators",showCode:true,showDemo:true,link:"",inputs:[],test:false}];var L0e=P0e.map(t=>s(r({},t),{component:{"demo-address":Xoe,"demo-address-input":bte,"demo-autocomplete":yte,"demo-avatar":Cte,"demo-badge":N0e,"demo-bank-input":Tte,"demo-bce-pipe":Dte,"demo-breadcrumb":kte,"demo-button":Ote,"demo-button-loading":Rte,"demo-icon-button":Ate,"demo-card":tae,"demo-card-table":Jte,"demo-checkbox":ene,"demo-chips":Dne,"demo-chips-input":Ine,"demo-choice-chips":kne,"demo-collapsible-page-divider":A0e,"demo-copy-to-clipboard":Mne,"demo-country-input":One,"demo-birthplace-input":Ane,"demo-datepicker":Jne,"demo-datepicker-month-year":eie,"demo-datepicker-luxon":tie,"demo-daterangepicker":nie,"demo-dialog":mie,"demo-dialog-content":r1,"demo-digit-only":pie,"demo-drag-and-drop":_ie,"demo-drawer":Zie,"demo-enterprise-number-input":fie,"demo-error-handler":bie,"demo-file-panel":Mie,"demo-file-upload":Rie,"demo-file-upload-manual":Nie,"demo-fab":Pie,"demo-grid":Lie,"demo-form":O0e,"demo-icon":Bie,"demo-if-width-is":Fie,"demo-jsonform":M0e,"demo-layout":Jie,"demo-language-switcher":ere,"demo-link":tre,"demo-mask":nre,"demo-message-box":rre,"demo-menu":ore,"demo-multiselect":are,"demo-select":nae,"demo-niss-pipe":sre,"demo-notification":lre,"demo-overlay":Joe,"demo-error":dre,"demo-not-found":_re,"demo-paginator":hre,"demo-palette":fre,"demo-panel":mte,"demo-pop-over":bre,"demo-progress-bar":yre,"demo-radio":Ere,"demo-rxjs-complex-case":Sre,"demo-rxjs-combine-operators":xre,"demo-rxjs-flattening-operators":Dre,"demo-rxjs-observable":Ire,"demo-rxjs-subject":kre,"demo-side-menu":Rre,"demo-selectable-box":Nre,"demo-selectable-box-large":eae,"demo-skeleton":Fre,"demo-slide-toggle":$re,"demo-spacing":Vre,"demo-spinner":Ure,"demo-horizontal-stepper":Kre,"demo-summary-stepper":Zre,"demo-sticker":Xre,"demo-tab":Jre,"demo-table":ioe,"demo-table-dialog-content":k1,"demo-toc":moe,"demo-task-list":hoe,"demo-toast":goe,"demo-text-input":boe,"demo-phone-input":voe,"demo-textarea":yoe,"demo-timepicker":koe,"demo-timeline":qoe,"demo-button-toggle":joe,"demo-toolbar":Yoe,"demo-tooltip":Woe,"demo-typography":Koe,"demo-validators":Qoe}[t.selector]}));var F0e=(()=>{class t{constructor(){this.jsonSubPath="assets/json",this.translationSubPath="assets/i18n",this.http=_(mo),this.basePathSig=_(Od,{optional:true}),this.codeCache=new Map,this.translationCache=new Map;}basePath(){return (this.basePathSig?.()??"/").trim()}joinUrl(...e){return e.filter(Boolean).join("/").replace(/(^|[^:])\/\/+/g,"$1/")}jsonRoot(){return this.joinUrl(this.basePath(),this.jsonSubPath)}i18nRoot(){return this.joinUrl(this.basePath(),this.translationSubPath)}getCode(e){let n=this.jsonRoot(),r=`${n}|${e}`;if(!this.codeCache.has(r)){let o=this.joinUrl(n,`${e}.json`),a=this.http.get(o).pipe(No(1));this.codeCache.set(r,a);}return this.codeCache.get(r)}getTranslation(e,n){let r=this.i18nRoot(),o=`${r}|${e}`;if(!this.translationCache.has(o)){let a=this.joinUrl(r,`${e}.json`),s=this.http.get(a).pipe(No(1));this.translationCache.set(o,s);}return this.translationCache.get(o).pipe(ce(a=>a[n]))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=Re({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var B0e=(()=>{class t extends ie{static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-empty"]],features:[A],decls:0,vars:0,template:function(n,r){},encapsulation:2});}}return t})();var $0e="/wp-content/app-demo/";var $xt=["componentRef"],Vxt=()=>["hljs","borderRadius"],Uxt=(t,i)=>i.name;function Hxt(t,i){t&1&&St(0);}function zxt(t,i){if(t&1&&(d(0,"div",5),ee(1,Hxt,1,0,"ng-container",6),u()),t&2){let e=y(2);m(),b("ngComponentOutlet",e.current().component)("ngComponentOutletInputs",e.inputs());}}function Gxt(t,i){if(t&1&&(d(0,"p",11),h(1),u()),t&2){let e=y(3);m(),L(e.current().description);}}function qxt(t,i){if(t&1&&(d(0,"span",21),h(1),$(2,"titlecase"),u()),t&2){let e=y(4);m(),L(z(2,1,e.visionMode));}}function jxt(t,i){if(t&1&&(d(0,"span",21),h(1),u()),t&2){let e=y(4);m(),L(e.currentScreenSize);}}function Yxt(t,i){if(t&1&&(d(0,"a",25)(1,"mat-icon"),h(2,"code"),u()()),t&2){let e=y(4);b("href",e.current().link,gc);}}function Wxt(t,i){if(t&1){let e=xe();d(0,"button",20),I("click",function(){let r=Z(e).$implicit,o=y(4);return X(o.translateService.use(r))}),d(1,"span"),h(2),$(3,"uppercase"),u()();}if(t&2){let e=i.$implicit;m(2),L(z(3,1,e));}}function Kxt(t,i){if(t&1&&(d(0,"mat-option",37),h(1),u()),t&2){let e=i.$implicit;b("value",e),m(),L(e);}}function Qxt(t,i){if(t&1){let e=xe();d(0,"mat-form-field",35)(1,"mat-label"),h(2),u(),d(3,"mat-select",36),I("selectionChange",function(r){let o=Z(e).$implicit,a=y(6);return X(a.update(r,o.name))}),fe(4,Kxt,2,2,"mat-option",37,Yt),u()();}if(t&2){let e=i.$implicit,n=y(6);m(2),L(e.name),m(),b("value",n.liveInputs()[e.name]??e.currentValue),m(),ge(e.values);}}function Zxt(t,i){if(t&1&&fe(0,Qxt,6,2,"mat-form-field",35,Uxt),t&2){let e=y(5);ge(e.current().inputs);}}function Xxt(t,i){if(t&1&&(d(0,"div",33)(1,"onemrva-mat-panel",34)(2,"onemrva-mat-panel-title"),h(3,"Controls"),u(),d(4,"onemrva-mat-panel-content"),T(5,Zxt,2,0),u()()()),t&2){let e=y(4);m(5),D(e.current().inputs.length>0?5:-1);}}function Jxt(t,i){if(t&1){let e=xe();d(0,"mat-toolbar",13)(1,"div",14)(2,"button",15),I("click",function(){Z(e);let r=y(3);return X(r.toggleGrid())}),d(3,"mat-icon"),h(4),u()(),d(5,"button",16),I("click",function(){Z(e);let r=y(3);return X(r.zoomOut())}),d(6,"mat-icon"),h(7,"zoom_out"),u()(),d(8,"button",17),I("click",function(){Z(e);let r=y(3);return X(r.resetZoom())}),d(9,"mat-icon"),h(10,"restart_alt"),u()(),d(11,"button",18),I("click",function(){Z(e);let r=y(3);return X(r.zoomIn())}),d(12,"mat-icon"),h(13,"zoom_in"),u()(),d(14,"button",19)(15,"mat-icon"),h(16,"visibility"),u()(),d(17,"mat-menu",null,0)(19,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("normal"))}),d(20,"mat-icon"),h(21,"visibility"),u(),d(22,"span"),h(23,"Normal Vision"),u()(),d(24,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("blurred"))}),d(25,"mat-icon"),h(26,"blur_on"),u(),d(27,"span"),h(28,"Blurred Vision"),u()(),d(29,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("deuteranomaly"))}),d(30,"mat-icon"),h(31,"color_lens"),u(),d(32,"span"),h(33,"Deuteranomaly"),u()(),d(34,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("deuteranopia"))}),d(35,"mat-icon"),h(36,"color_lens"),u(),d(37,"span"),h(38,"Deuteranopia"),u()(),d(39,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("protanomaly"))}),d(40,"mat-icon"),h(41,"color_lens"),u(),d(42,"span"),h(43,"Protanomaly"),u()(),d(44,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("protanopia"))}),d(45,"mat-icon"),h(46,"color_lens"),u(),d(47,"span"),h(48,"Protanopia"),u()(),d(49,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("tritanomaly"))}),d(50,"mat-icon"),h(51,"color_lens"),u(),d(52,"span"),h(53,"Tritanomaly"),u()(),d(54,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("tritanopia"))}),d(55,"mat-icon"),h(56,"color_lens"),u(),d(57,"span"),h(58,"Tritanopia"),u()(),d(59,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("achromatopsia"))}),d(60,"mat-icon"),h(61,"invert_colors_off"),u(),d(62,"span"),h(63,"Achromatopsia"),u()(),d(64,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("grayscale"))}),d(65,"mat-icon"),h(66,"filter_b_and_w"),u(),d(67,"span"),h(68,"Grayscale"),u()()(),T(69,qxt,3,3,"span",21),d(70,"button",22)(71,"mat-icon"),h(72,"accessibility"),u()(),d(73,"button",23)(74,"mat-icon"),h(75,"devices"),u()(),d(76,"mat-menu",null,1)(78,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize(""))}),d(79,"mat-icon"),h(80,"fullscreen"),u(),d(81,"span"),h(82,"Reset Viewport"),u()(),O(83,"mat-divider"),d(84,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xsmall"))}),d(85,"mat-icon"),h(86,"phone_android"),u(),d(87,"span"),h(88,"XSmall (< 600px)"),u()(),d(89,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("small"))}),d(90,"mat-icon"),h(91,"tablet_android"),u(),d(92,"span"),h(93,"Small (600px - 959px)"),u()(),d(94,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("medium"))}),d(95,"mat-icon"),h(96,"laptop"),u(),d(97,"span"),h(98,"Medium (960px - 1279px)"),u()(),d(99,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("large"))}),d(100,"mat-icon"),h(101,"desktop_windows"),u(),d(102,"span"),h(103,"Large (1280px - 1535px)"),u()(),d(104,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xlarge"))}),d(105,"mat-icon"),h(106,"tv"),u(),d(107,"span"),h(108,"XLarge (1536px - 1919px)"),u()(),d(109,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xxlarge"))}),d(110,"mat-icon"),h(111,"desktop_mac"),u(),d(112,"span"),h(113,"XXLarge (\u2265 1920px)"),u()()(),T(114,jxt,2,1,"span",21),O(115,"span",24),T(116,Yxt,3,1,"a",25),d(117,"button",26)(118,"mat-icon"),h(119,"language"),u()(),d(120,"span",21),h(121),$(122,"uppercase"),u(),d(123,"mat-menu",null,2),fe(125,Wxt,4,3,"button",27,Yt),u()()(),d(127,"div",28)(128,"div",29)(129,"div",30)(130,"div",31)(131,"div",32),St(132,null,3),u()()()(),T(134,Xxt,6,1,"div",33),u();}if(t&2){let e=Ve(18),n=Ve(77),r=Ve(124),o=y(3);m(4),L(o.showGrid?"grid_off":"grid_on"),m(10),b("matMenuTriggerFor",e),m(55),D(o.visionMode!=="normal"?69:-1),m(4),b("matMenuTriggerFor",n),m(41),D(o.currentScreenSize!=="Full Width"?114:-1),m(2),D(o.current().link?116:-1),m(),b("matMenuTriggerFor",r),m(4),L(z(122,13,o.translateService.currentLang())),m(4),ge(o.languages()),m(6),H("show-grid",o.showGrid)("centered",o.current().centered),m(3),D(o.current().inputs.length>0?134:-1);}}function eTt(t,i){if(t&1&&(d(0,"mat-tab",38)(1,"pre",40),h(2," "),O(3,"code",41),$(4,"json"),h(5,`
|
|
10801
|
+
`));},dependencies:[qe,Ge,ht,hI],encapsulation:2});}}return t})();var P0e=[{name:"Address",selector:"demo-address",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,test:true,centered:true},{name:"Address Input",selector:"demo-address-input",showCode:true,showDemo:true,link:"",inputs:[],test:true,centered:true,showOutput:true},{name:"Autocomplete",selector:"demo-autocomplete",showCode:true,showDemo:true,link:"https://material.angular.io/components/autocomplete/overview",inputs:[{name:"readonly",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Avatar",selector:"demo-avatar",showCode:true,showDemo:true,link:"",inputs:[{name:"initials",values:["","OJ"],currentValue:""},{name:"src",values:["","https://cdn.services.rvaonem.fgov.be/img/flags/1x1/be.svg"],currentValue:""},{name:"size",values:["xsmall","small","medium","large"],currentValue:""},{name:"color",values:["accent"],currentValue:""},{name:"icon",values:["account_circle"],currentValue:""}],test:true,centered:true},{name:"Badge",selector:"demo-badge",showCode:true,showDemo:true,link:"",inputs:[{name:"value",values:[0,1,15,432],currentValue:0}],test:true,centered:true},{name:"Bank Input",selector:"demo-bank-input",showCode:true,showDemo:true,link:"",inputs:[{name:"readonly",values:[true,false],currentValue:false}],test:true,centered:true,translationKey:"input.bank"},{name:"BCE pipe",selector:"demo-bce-pipe",showCode:true,showDemo:true,link:"",inputs:[],test:false,centered:true},{name:"Breadcrumb",selector:"demo-breadcrumb",showCode:true,showDemo:true,link:"",inputs:[],test:true,centered:false},{name:"Button",selector:"demo-button",showCode:true,showDemo:true,link:"https://material.angular.io/components/button/overview",inputs:[{name:"size",values:["","small"],currentValue:""},{name:"icon",values:["","home","chevron_left","settings"],currentValue:""},{name:"iconEnd",values:["","chevron_right"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Button Loading",selector:"demo-button-loading",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["outlined","contained"],currentValue:"contained"},{name:"disabled",values:[true,false],currentValue:false}],test:true,centered:true},{name:"Icon Button",selector:"demo-icon-button",showCode:true,showDemo:true,link:"https://fonts.google.com/icons",inputs:[],test:true},{name:"Card",selector:"demo-card",description:"Content card with an optional image, label, title, subtitle, description and help tooltip. The card is not clickable as a whole: it can hold buttons, so a card-wide click target would nest interactive elements. Put the action in the cardActions slot instead.",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["no-background","outline","background"],currentValue:"no-background"},{name:"imageSrc",values:["","https://cdn.services.rvaonem.fgov.be/img/banner/banner-new-component.png"],currentValue:"https://cdn.services.rvaonem.fgov.be/img/banner/banner-new-component.png"}],test:true,centered:true},{name:"Card Table",selector:"demo-card-table",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Checkbox",selector:"demo-checkbox",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","success"],currentValue:""},{name:"checked",values:[true,false],currentValue:true},{name:"indeterminate",values:[true,false],currentValue:false},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Chips",selector:"demo-chips",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","error"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Chips Input",selector:"demo-chips-input",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","error"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Choice chips",selector:"demo-choice-chips",showCode:true,showDemo:true,link:"",showOutput:true,inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Collapsible Page Divider",selector:"demo-collapsible-page-divider",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:[Bt.WARN,Bt.SUCCESS,Bt.ERROR,Bt.ACCENT,Bt.PRIMARY],currentValue:Bt.PRIMARY},{name:"stickerText",values:["","Your Sticker value"],currentValue:""},{name:"isCollapsed",values:[true,false],currentValue:true}],test:true},{name:"Copy to clipboard",selector:"demo-copy-to-clipboard",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true},{name:"Country Input",selector:"demo-country-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,centered:true,test:true},{name:"Birthplace input",selector:"demo-birthplace-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Date Picker",selector:"demo-datepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Date Picker Month Year ",selector:"demo-datepicker-month-year",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true,showOutput:true},{name:"Date Picker Luxon",selector:"demo-datepicker-luxon",showCode:true,showDemo:true,link:"",inputs:[],centered:true,test:true,showOutput:true},{name:"Date Range Picker",selector:"demo-daterangepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Dialog",selector:"demo-dialog",showCode:true,showDemo:true,link:"",inputs:[{name:"size",values:["","small","medium","large","xlarge"],currentValue:""},{name:"type",values:["","error","warn","success"],currentValue:""}],centered:true,test:true},{name:"Dialog Content",selector:"demo-dialog-content",showCode:true,showDemo:false,link:"",inputs:[],test:false},{name:"Digit Only directive",selector:"demo-digit-only",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Drag and drop",selector:"demo-drag-and-drop",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Drawer",selector:"demo-drawer",showCode:true,showDemo:true,link:"",inputs:[{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:""}],test:false},{name:"Enterprise number (VIES)",selector:"demo-enterprise-number-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],showOutput:true,centered:true,test:true},{name:"Error Handler",selector:"demo-error-handler",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"File Panel",selector:"demo-file-panel",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","success","warn","error"],currentValue:""},{name:"disabled",values:[false,true],currentValue:false}],test:true},{name:"File Upload",selector:"demo-file-upload",showCode:true,showDemo:true,link:"",inputs:[],test:true,showOutput:true,translationKey:"file"},{name:"File Upload Manual",selector:"demo-file-upload-manual",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"file"},{name:"FAB",selector:"demo-fab",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["accent","primary"],currentValue:"accent"},{name:"icon",values:["comment","share"],currentValue:"comment"},{name:"extended",values:[true,false],currentValue:true}],centered:true,test:true},{name:"Grid",selector:"demo-grid",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Form",selector:"demo-form",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Icon",selector:"demo-icon",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:"primary"},{name:"size",values:["small","medium","large","xxlarge"],currentValue:"xxlarge"},{name:"icon",values:["","settings","person"],currentValue:"settings"},{name:"filled",values:[true,false],currentValue:false}],centered:true,test:true},{name:"If width is",selector:"demo-if-width-is",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"JSON Forms",selector:"demo-jsonform",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Layout and drawer",selector:"demo-layout",showCode:true,showDemo:true,link:"",inputs:[],test:false,translationKey:"layout"},{name:"Language switcher",selector:"demo-language-switcher",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Link",selector:"demo-link",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Mask",selector:"demo-mask",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Message box",selector:"demo-message-box",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["info","warn","success","error","neutral"],currentValue:"info"}],test:true},{name:"Menu",selector:"demo-menu",showCode:true,showDemo:true,centered:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false}],test:true},{name:"Multi Select",selector:"demo-multiselect",showCode:true,showDemo:true,link:"",inputs:[{name:"selectionToggle",values:[true,false],currentValue:true},{name:"showFilter",values:[true,false],currentValue:true},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"select"},{name:"Select",selector:"demo-select",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"select"},{name:"NISS pipe",selector:"demo-niss-pipe",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Notification",selector:"demo-notification",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Overlay",selector:"demo-overlay",showCode:true,showDemo:true,link:"",inputs:[],test:false,centered:true},{name:"Page Error",selector:"demo-error",showCode:true,showDemo:true,link:"",inputs:[{name:"code",values:[500,404,403,401,400,503,502,408,429],currentValue:500}],test:true,translationKey:"error"},{name:"Page not found",selector:"demo-not-found",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"404"},{name:"Paginator",selector:"demo-paginator",showCode:true,showDemo:true,link:"",inputs:[],test:true,translationKey:"paginator"},{name:"Palette",selector:"demo-palette",showCode:false,showDemo:true,link:"",inputs:[{name:"color",values:["primary","warn","success","info","neutral","accent"],currentValue:""}],test:true},{name:"Panel",selector:"demo-panel",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["default","primary"],currentValue:""},{name:"expandable",values:[true,false],currentValue:true}],test:true},{name:"PopOver",selector:"demo-pop-over",showCode:true,showDemo:true,link:"",inputs:[{name:"position",values:["","top-left","top-right","bottom-left","bottom-right"],currentValue:""}],test:true,centered:true},{name:"ProgressBar",selector:"demo-progress-bar",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Radio",selector:"demo-radio",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Rxjs Complex case",selector:"demo-rxjs-complex-case",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Combine Operators",selector:"demo-rxjs-combine-operators",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Flattening Operators",selector:"demo-rxjs-flattening-operators",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Observable",selector:"demo-rxjs-observable",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Rxjs Subject",selector:"demo-rxjs-subject",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Side menu",selector:"demo-side-menu",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Selectable box",selector:"demo-selectable-box",showCode:true,showDemo:true,link:"",inputs:[{name:"icon",values:[false,true],currentValue:true},{name:"content",values:[false,true],currentValue:true},{name:"title",values:[false,true],currentValue:true},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Selectable box Large",selector:"demo-selectable-box-large",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Skeleton",selector:"demo-skeleton",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Slide toggle",selector:"demo-slide-toggle",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Spacing",selector:"demo-spacing",showCode:false,showDemo:true,link:"",inputs:[],test:true},{name:"Spinner",selector:"demo-spinner",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Stepper (horizontal)",selector:"demo-horizontal-stepper",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Stepper (with Summary)",selector:"demo-summary-stepper",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Sticker",selector:"demo-sticker",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["primary","success","error","info","warn","neutral"],currentValue:"primary"},{name:"tooltip",values:["","Here is your text"],currentValue:""},{name:"htmlTooltip",values:[true,false],currentValue:false}],test:true},{name:"Tab",selector:"demo-tab",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Table",selector:"demo-table",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Table of content",selector:"demo-toc",showCode:true,showDemo:true,link:"",inputs:[],test:false},{name:"Task list",selector:"demo-task-list",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["bubble","checkbox","icon"],currentValue:"checkbox"},{name:"color",values:["","error","success"],currentValue:""},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],test:true},{name:"Toast",selector:"demo-toast",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Text Input",selector:"demo-text-input",showCode:true,showDemo:true,link:"",inputs:[{name:"color",values:["","warn"]},{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false},{name:"hintColor",values:["","warn"],currentValue:""}],centered:true,test:true},{name:"Phone Input",selector:"demo-phone-input",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,translationKey:"input.phone"},{name:"Textarea",selector:"demo-textarea",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false},{name:"autoresize",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Timepicker",selector:"demo-timepicker",showCode:true,showDemo:true,link:"",inputs:[{name:"disabled",values:[true,false],currentValue:false},{name:"readonly",values:[true,false],currentValue:false}],centered:true,test:true,showOutput:true},{name:"Timeline",selector:"demo-timeline",description:"Plot dated periods on a horizontal, year-based timeline. Overlapping periods stack into rows and take their color from the legend, with month/day zoom, selection, tooltips, filters, and an optional full-size mode.",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Button Toggle",selector:"demo-button-toggle",showCode:true,showDemo:true,link:"",inputs:[{name:"type",values:["text","icon"],currentValue:"text"}],centered:true,test:true},{name:"Toolbar",selector:"demo-toolbar",showCode:true,showDemo:true,link:"",inputs:[],test:true},{name:"Tooltip",selector:"demo-tooltip",showCode:true,showDemo:true,link:"",inputs:[{name:"position",values:["above","below","right","left","before","after"],currentValue:"above"},{name:"filled",values:[true,false],currentValue:false},{name:"html",values:[true,false],currentValue:false}],centered:true,test:true},{name:"Typography",selector:"demo-typography",showCode:false,showDemo:true,link:"",inputs:[],test:true},{name:"Validators",selector:"demo-validators",showCode:true,showDemo:true,link:"",inputs:[],test:false}];var L0e=P0e.map(t=>s(r({},t),{component:{"demo-address":Xoe,"demo-address-input":bte,"demo-autocomplete":yte,"demo-avatar":Cte,"demo-badge":N0e,"demo-bank-input":Tte,"demo-bce-pipe":Dte,"demo-breadcrumb":kte,"demo-button":Ote,"demo-button-loading":Rte,"demo-icon-button":Ate,"demo-card":tae,"demo-card-table":Jte,"demo-checkbox":ene,"demo-chips":Dne,"demo-chips-input":Ine,"demo-choice-chips":kne,"demo-collapsible-page-divider":A0e,"demo-copy-to-clipboard":Mne,"demo-country-input":One,"demo-birthplace-input":Ane,"demo-datepicker":Jne,"demo-datepicker-month-year":eie,"demo-datepicker-luxon":tie,"demo-daterangepicker":nie,"demo-dialog":mie,"demo-dialog-content":r1,"demo-digit-only":pie,"demo-drag-and-drop":_ie,"demo-drawer":Zie,"demo-enterprise-number-input":fie,"demo-error-handler":bie,"demo-file-panel":Mie,"demo-file-upload":Rie,"demo-file-upload-manual":Nie,"demo-fab":Pie,"demo-grid":Lie,"demo-form":O0e,"demo-icon":Bie,"demo-if-width-is":Fie,"demo-jsonform":M0e,"demo-layout":Jie,"demo-language-switcher":ere,"demo-link":tre,"demo-mask":nre,"demo-message-box":rre,"demo-menu":ore,"demo-multiselect":are,"demo-select":nae,"demo-niss-pipe":sre,"demo-notification":lre,"demo-overlay":Joe,"demo-error":dre,"demo-not-found":_re,"demo-paginator":hre,"demo-palette":fre,"demo-panel":mte,"demo-pop-over":bre,"demo-progress-bar":yre,"demo-radio":Ere,"demo-rxjs-complex-case":Sre,"demo-rxjs-combine-operators":xre,"demo-rxjs-flattening-operators":Dre,"demo-rxjs-observable":Ire,"demo-rxjs-subject":kre,"demo-side-menu":Rre,"demo-selectable-box":Nre,"demo-selectable-box-large":eae,"demo-skeleton":Fre,"demo-slide-toggle":$re,"demo-spacing":Vre,"demo-spinner":Ure,"demo-horizontal-stepper":Kre,"demo-summary-stepper":Zre,"demo-sticker":Xre,"demo-tab":Jre,"demo-table":ioe,"demo-table-dialog-content":k1,"demo-toc":moe,"demo-task-list":hoe,"demo-toast":goe,"demo-text-input":boe,"demo-phone-input":voe,"demo-textarea":yoe,"demo-timepicker":koe,"demo-timeline":qoe,"demo-button-toggle":joe,"demo-toolbar":Yoe,"demo-tooltip":Woe,"demo-typography":Koe,"demo-validators":Qoe}[t.selector]}));var F0e=(()=>{class t{constructor(){this.jsonSubPath="assets/json",this.translationSubPath="assets/i18n",this.http=_(mo),this.basePathSig=_(Od,{optional:true}),this.codeCache=new Map,this.translationCache=new Map;}basePath(){return (this.basePathSig?.()??"/").trim()}joinUrl(...e){return e.filter(Boolean).join("/").replace(/(^|[^:])\/\/+/g,"$1/")}jsonRoot(){return this.joinUrl(this.basePath(),this.jsonSubPath)}i18nRoot(){return this.joinUrl(this.basePath(),this.translationSubPath)}getCode(e){let n=this.jsonRoot(),r=`${n}|${e}`;if(!this.codeCache.has(r)){let o=this.joinUrl(n,`${e}.json`),a=this.http.get(o).pipe(No(1));this.codeCache.set(r,a);}return this.codeCache.get(r)}getTranslation(e,n){let r=this.i18nRoot(),o=`${r}|${e}`;if(!this.translationCache.has(o)){let a=this.joinUrl(r,`${e}.json`),s=this.http.get(a).pipe(No(1));this.translationCache.set(o,s);}return this.translationCache.get(o).pipe(ce(a=>a[n]))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=Re({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var B0e=(()=>{class t extends ie{static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-empty"]],features:[A],decls:0,vars:0,template:function(n,r){},encapsulation:2});}}return t})();var $0e="/wp-content/app-demo/";var $xt=["componentRef"],Vxt=()=>["hljs","borderRadius"],Uxt=(t,i)=>i.name;function Hxt(t,i){t&1&&St(0);}function zxt(t,i){if(t&1&&(d(0,"div",5),ee(1,Hxt,1,0,"ng-container",6),u()),t&2){let e=y(2);m(),b("ngComponentOutlet",e.current().component)("ngComponentOutletInputs",e.inputs());}}function Gxt(t,i){if(t&1&&(d(0,"p",11),h(1),u()),t&2){let e=y(3);m(),L(e.current().description);}}function qxt(t,i){if(t&1&&(d(0,"span",21),h(1),$(2,"titlecase"),u()),t&2){let e=y(4);m(),L(z(2,1,e.visionMode));}}function jxt(t,i){if(t&1&&(d(0,"span",21),h(1),u()),t&2){let e=y(4);m(),L(e.currentScreenSize);}}function Yxt(t,i){if(t&1&&(d(0,"a",25)(1,"mat-icon"),h(2,"code"),u()()),t&2){let e=y(4);b("href",e.current().link,gc);}}function Wxt(t,i){if(t&1){let e=xe();d(0,"button",20),I("click",function(){let r=Z(e).$implicit,o=y(4);return X(o.translateService.use(r))}),d(1,"span"),h(2),$(3,"uppercase"),u()();}if(t&2){let e=i.$implicit;m(2),L(z(3,1,e));}}function Kxt(t,i){if(t&1&&(d(0,"mat-option",37),h(1),u()),t&2){let e=i.$implicit;b("value",e),m(),L(e);}}function Qxt(t,i){if(t&1){let e=xe();d(0,"mat-form-field",35)(1,"mat-label"),h(2),u(),d(3,"mat-select",36),I("selectionChange",function(r){let o=Z(e).$implicit,a=y(6);return X(a.update(r,o.name))}),fe(4,Kxt,2,2,"mat-option",37,Yt),u()();}if(t&2){let e=i.$implicit,n=y(6);m(2),L(e.name),m(),b("value",n.liveInputs()[e.name]??e.currentValue),m(),ge(e.values);}}function Zxt(t,i){if(t&1&&fe(0,Qxt,6,2,"mat-form-field",35,Uxt),t&2){let e=y(5);ge(e.current().inputs);}}function Xxt(t,i){if(t&1&&(d(0,"div",33)(1,"onemrva-mat-panel",34)(2,"onemrva-mat-panel-title"),h(3,"Controls"),u(),d(4,"onemrva-mat-panel-content"),T(5,Zxt,2,0),u()()()),t&2){let e=y(4);m(5),D(e.current().inputs.length>0?5:-1);}}function Jxt(t,i){if(t&1){let e=xe();d(0,"mat-toolbar",13)(1,"div",14)(2,"button",15),I("click",function(){Z(e);let r=y(3);return X(r.toggleGrid())}),d(3,"mat-icon"),h(4),u()(),d(5,"button",16),I("click",function(){Z(e);let r=y(3);return X(r.zoomOut())}),d(6,"mat-icon"),h(7,"zoom_out"),u()(),d(8,"button",17),I("click",function(){Z(e);let r=y(3);return X(r.resetZoom())}),d(9,"mat-icon"),h(10,"restart_alt"),u()(),d(11,"button",18),I("click",function(){Z(e);let r=y(3);return X(r.zoomIn())}),d(12,"mat-icon"),h(13,"zoom_in"),u()(),d(14,"button",19)(15,"mat-icon"),h(16,"visibility"),u()(),d(17,"mat-menu",null,0)(19,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("normal"))}),d(20,"mat-icon"),h(21,"visibility"),u(),d(22,"span"),h(23,"Normal Vision"),u()(),d(24,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("blurred"))}),d(25,"mat-icon"),h(26,"blur_on"),u(),d(27,"span"),h(28,"Blurred Vision"),u()(),d(29,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("deuteranomaly"))}),d(30,"mat-icon"),h(31,"color_lens"),u(),d(32,"span"),h(33,"Deuteranomaly"),u()(),d(34,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("deuteranopia"))}),d(35,"mat-icon"),h(36,"color_lens"),u(),d(37,"span"),h(38,"Deuteranopia"),u()(),d(39,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("protanomaly"))}),d(40,"mat-icon"),h(41,"color_lens"),u(),d(42,"span"),h(43,"Protanomaly"),u()(),d(44,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("protanopia"))}),d(45,"mat-icon"),h(46,"color_lens"),u(),d(47,"span"),h(48,"Protanopia"),u()(),d(49,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("tritanomaly"))}),d(50,"mat-icon"),h(51,"color_lens"),u(),d(52,"span"),h(53,"Tritanomaly"),u()(),d(54,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("tritanopia"))}),d(55,"mat-icon"),h(56,"color_lens"),u(),d(57,"span"),h(58,"Tritanopia"),u()(),d(59,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("achromatopsia"))}),d(60,"mat-icon"),h(61,"invert_colors_off"),u(),d(62,"span"),h(63,"Achromatopsia"),u()(),d(64,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateVision("grayscale"))}),d(65,"mat-icon"),h(66,"filter_b_and_w"),u(),d(67,"span"),h(68,"Grayscale"),u()()(),T(69,qxt,3,3,"span",21),d(70,"button",22)(71,"mat-icon"),h(72,"accessibility"),u()(),d(73,"button",23)(74,"mat-icon"),h(75,"devices"),u()(),d(76,"mat-menu",null,1)(78,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize(""))}),d(79,"mat-icon"),h(80,"fullscreen"),u(),d(81,"span"),h(82,"Reset Viewport"),u()(),O(83,"mat-divider"),d(84,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xsmall"))}),d(85,"mat-icon"),h(86,"phone_android"),u(),d(87,"span"),h(88,"XSmall (< 600px)"),u()(),d(89,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("small"))}),d(90,"mat-icon"),h(91,"tablet_android"),u(),d(92,"span"),h(93,"Small (600px - 959px)"),u()(),d(94,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("medium"))}),d(95,"mat-icon"),h(96,"laptop"),u(),d(97,"span"),h(98,"Medium (960px - 1279px)"),u()(),d(99,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("large"))}),d(100,"mat-icon"),h(101,"desktop_windows"),u(),d(102,"span"),h(103,"Large (1280px - 1535px)"),u()(),d(104,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xlarge"))}),d(105,"mat-icon"),h(106,"tv"),u(),d(107,"span"),h(108,"XLarge (1536px - 1919px)"),u()(),d(109,"button",20),I("click",function(){Z(e);let r=y(3);return X(r.updateScreenSize("xxlarge"))}),d(110,"mat-icon"),h(111,"desktop_mac"),u(),d(112,"span"),h(113,"XXLarge (\u2265 1920px)"),u()()(),T(114,jxt,2,1,"span",21),O(115,"span",24),T(116,Yxt,3,1,"a",25),d(117,"button",26)(118,"mat-icon"),h(119,"language"),u()(),d(120,"span",21),h(121),$(122,"uppercase"),u(),d(123,"mat-menu",null,2),fe(125,Wxt,4,3,"button",27,Yt),u()()(),d(127,"div",28)(128,"div",29)(129,"div",30)(130,"div",31)(131,"div",32),St(132,null,3),u()()()(),T(134,Xxt,6,1,"div",33),u();}if(t&2){let e=Ve(18),n=Ve(77),r=Ve(124),o=y(3);m(4),L(o.showGrid?"grid_off":"grid_on"),m(10),b("matMenuTriggerFor",e),m(55),D(o.visionMode!=="normal"?69:-1),m(4),b("matMenuTriggerFor",n),m(41),D(o.currentScreenSize!=="Full Width"?114:-1),m(2),D(o.current().link?116:-1),m(),b("matMenuTriggerFor",r),m(4),L(z(122,13,o.translateService.currentLang())),m(4),ge(o.languages()),m(6),H("show-grid",o.showGrid)("centered",o.current().centered),m(3),D(o.current().inputs.length>0?134:-1);}}function eTt(t,i){if(t&1&&(d(0,"mat-tab",38)(1,"pre",40),h(2," "),O(3,"code",41),$(4,"json"),h(5,`
|
|
10802
10802
|
`),u()()),t&2){let e=y(4);b("label","Output"),m(3),b("highlight",z(4,3,e.demoComponent?.output()))("language","json");}}function tTt(t,i){if(t&1&&(d(0,"div",42),O(1,"markdown",46),u()),t&2){let e=y().$index,n=y(4);m(),b("data",n.tabContents()[e]);}}function nTt(t,i){if(t&1&&(d(0,"pre",43),h(1," "),O(2,"code",41),h(3,`
|
|
10803
10803
|
`),u()),t&2){let e=y().$index,n=y(4);m(2),b("highlight",n.tabContents()[e])("language",n.getLanguage(n.tabs()[e]));}}function iTt(t,i){t&1&&(d(0,"mat-icon",45),h(1,"check"),u());}function rTt(t,i){t&1&&(d(0,"mat-icon",45),h(1,"content_copy"),u());}function oTt(t,i){if(t&1){let e=xe();d(0,"mat-tab",39),T(1,tTt,2,1,"div",42)(2,nTt,4,2,"pre",43),d(3,"button",44),I("click",function(){let r=Z(e).$index,o=y(4);return X(o.copyToClipboard(o.tabContents()[r]))}),T(4,iTt,2,0,"mat-icon",45)(5,rTt,2,0,"mat-icon",45),u()();}if(t&2){let e=i.$implicit,n=y(4);b("label",e.replace("demo-",""))("bodyClass",qn(5,Vxt)),m(),D(e.split(".")[1]==="md"?1:2),m(2),b("color",n.checked()?"success":"accent"),m(),D(n.checked()?4:5);}}function aTt(t,i){if(t&1&&(d(0,"mat-tab",38)(1,"pre",43),h(2," "),O(3,"code",41),h(4,`
|
|
10804
10804
|
`),u()()),t&2){let e=i.$implicit;b("label",e.lang+".json"),m(3),b("highlight",e.code)("language","json");}}function sTt(t,i){if(t&1&&fe(0,aTt,5,3,"mat-tab",38,vi),t&2){let e=y(4);ge(e.translations);}}function lTt(t,i){if(t&1&&(d(0,"mat-tab-group",12),T(1,eTt,6,5,"mat-tab",38),fe(2,oTt,6,6,"mat-tab",39,vi),T(4,sTt,2,0),u()),t&2){let e=y(3);b("selectedIndex",0)("mat-stretch-tabs",false),m(),D(e.current().showOutput?1:-1),m(),ge(e.tabs()),m(2),D(e.translations.length>0?4:-1);}}function cTt(t,i){if(t&1&&(d(0,"div",4)(1,"div",7)(2,"onemrva-mat-panel",8),O(3,"onemrva-mat-panel-title",9),d(4,"onemrva-mat-panel-content",10),T(5,Gxt,2,1,"p",11),T(6,Jxt,135,15),T(7,lTt,5,4,"mat-tab-group",12),u()()()()),t&2){let e=y(2);m(2),b("ngClass","m-0 p-0"),m(3),D(e.current().description?5:-1),m(),D(e.effectiveShowDemo()==="yes"?6:-1),m(),D(e.effectiveShowCode()==="yes"?7:-1);}}function dTt(t,i){if(t&1&&T(0,zxt,2,2,"div",5)(1,cTt,8,4,"div",4),t&2){let e=y();D(e.onlyDemo()?0:e.current()!==void 0&&e.current().component?1:-1);}}function uTt(t,i){if(t&1&&(d(0,"div",4)(1,"div",7)(2,"onemrva-mat-panel",8),O(3,"onemrva-mat-panel-title"),d(4,"onemrva-mat-panel-content")(5,"div",47)(6,"mat-icon",48),h(7,"error_outline"),u(),d(8,"h2"),h(9,"Demo Not Found"),u(),d(10,"p"),h(11),u()()()()()()),t&2){let e=y();m(2),b("ngClass","m-0 p-0"),m(9),G(' The requested demo component "',e.component(),'" does not exist. ');}}var V0e=new Set,U0e=(()=>{class t{constructor(){this.componentRef=et("componentRef",{read:rn}),this.onlyDemo=E(false),this.component=E("empty"),this.showCode=E(null),this.showDemo=E(null),this.inputs=E({}),this.activeTab=E("preview"),this.version=E(""),this.wp=E(1),this.demoBasePathSig=_(Od),this.clipboard=_(kh),this.json=_(F0e),this.cdn=_(to),this.translateService=_(Rn),this.current=W({name:"",selector:"empty",component:B0e,showCode:true,showDemo:true,inputs:[],test:true,link:""}),this.showGrid=false,this.checked=W(false),this.currentZoom=1,this.ZOOM_STEP=.1,this.MIN_ZOOM=.5,this.MAX_ZOOM=2,this.visionMode="normal",this.currentScreenSize="Full Width",this.tabs=W([]),this.tabContents=W({}),this.Object=Object,this.demoExists=W(false),this.basePath=se(()=>{let e=this.wp(),n=this.version(),r=e===1?$0e:"/";return n&&(r+=`${n}/`),r}),this.effectiveShowCode=se(()=>{let e=this.showCode();return e!==null?e:this.current().showCode?"yes":"no"}),this.effectiveShowDemo=se(()=>{let e=this.showDemo();return e!==null?e:this.current().showDemo?"yes":"no"}),this.liveInputs=W({}),this.translations=[],this.lastLoadedComponent=null,vt(()=>{let e=this.basePath();this.demoBasePathSig.set(e);let n=this.translateService.currentLang();if(!n)return;let r=`${e}|${n}`;V0e.has(r)||(V0e.add(r),this.translateService.reloadLang(n));}),vt(()=>{this.liveInputs.set(this.inputs()??{});}),vt(()=>{let e=this.component(),n=L0e.find(o=>o.selector==="demo-"+e);if(!n){this.demoExists.set(false);return}this.current.set(n),this.demoExists.set(true);let r$1=r({},this.inputs());for(let o of n.inputs)o.currentValue!==void 0&&(r$1[o.name]=o.currentValue);this.liveInputs.set(r$1),!this.onlyDemo()&&this.effectiveShowCode()==="yes"&&this.loadCodeIfNeeded(e);}),vt(()=>{let e=this.componentRef(),n=this.current()?.component;!e||!n||this.createComponent();}),vt(()=>{let e=this.componentInstance,n=this.liveInputs();if(e)for(let r of Object.keys(n))e.setInput(r,n[r]);});}createComponent(){let e=this.componentRef(),n=this.current()?.component;if(!e||!n)return;e.clear(),this.componentInstance=e.createComponent(n),this.demoComponent=this.componentInstance.instance;let r=this.liveInputs();for(let o of Object.keys(r))this.componentInstance.setInput(o,r[o]);}loadCodeIfNeeded(e){if(!e||this.lastLoadedComponent===e)return;this.json.getCode(e).pipe(mt(1)).subscribe(r=>{this.tabs.set(Object.keys(r)),this.tabContents.set(Object.values(r)),this.lastLoadedComponent=e;},r=>console.error(r));let n=this.current().translationKey;this.translations=[],n!==void 0&&this.translateService.getLangs().forEach(r=>{this.json.getTranslation(r,n).pipe(mt(1)).subscribe(o=>{this.translations.push({key:n,lang:r,code:'{ "'+n+'" : '+JSON.stringify(o,null,2)+" } "});});});}copyToClipboard(e){this.checked.set(true),this.clipboard.copy(e),setTimeout(()=>this.checked.set(false),1200);}openLink(e){window.open(e);}update(e,n){let r$1=e.value;this.liveInputs.set(s(r({},this.liveInputs()),{[n]:r$1}));let o=this.current().inputs.find(a=>a.name===n);o&&(o.currentValue=r$1);}getLanguage(e){return e.endsWith(".ts")?"typescript":e.endsWith(".scss")||e.endsWith(".css")?"css":e.endsWith(".html")?"xml":"text"}toggleGrid(){this.showGrid=!this.showGrid;}zoomIn(){this.currentZoom<this.MAX_ZOOM&&(this.currentZoom=Math.min(this.currentZoom+this.ZOOM_STEP,this.MAX_ZOOM),this.updateZoom());}zoomOut(){this.currentZoom>this.MIN_ZOOM&&(this.currentZoom=Math.max(this.currentZoom-this.ZOOM_STEP,this.MIN_ZOOM),this.updateZoom());}resetZoom(){this.currentZoom=1,this.updateZoom();}updateZoom(){let e=document.querySelector(".demoDiv");if(!e)return;let n=e.classList.contains("centered");e.style.transformOrigin=n?"center center":"top left",e.style.transform=`scale(${this.currentZoom})`;}updateVision(e){this.visionMode=e;let n=document.querySelector(".demoDiv");n&&(n.classList.remove("vision-blurred","vision-deuteranomaly","vision-deuteranopia","vision-protanomaly","vision-protanopia","vision-tritanomaly","vision-tritanopia","vision-achromatopsia","vision-grayscale"),e!=="normal"&&n.classList.add(`vision-${e}`));}updateScreenSize(e){let n={xsmall:599,small:959,medium:1279,large:1535,xlarge:1919,xxlarge:1920},r=document.querySelector(".viewport-simulator");if(!r)return;if(e===""){r.style.width="",this.currentScreenSize="Full Width";return}let o=n[e];o&&(r.style.width=`${o}px`,this.currentScreenSize=e.charAt(0).toUpperCase()+e.slice(1));}languages(){return this.translateService.getLangs()}getTranslation(e,n){return n?this.json.getTranslation(e,n):we("")}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-component"]],viewQuery:function(n,r){n&1&>(r.componentRef,$xt,5,rn),n&2&&Qe();},inputs:{onlyDemo:[1,"onlyDemo"],component:[1,"component"],showCode:[1,"showCode"],showDemo:[1,"showDemo"],inputs:[1,"inputs"],activeTab:[1,"activeTab"],version:[1,"version"],wp:[1,"wp"]},decls:2,vars:1,consts:[["visionMenu","matMenu"],["screenMenu","matMenu"],["langMenu","matMenu"],["componentRef",""],[1,"onemrva-theme"],[1,"demoNoCode"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[1,"mat-typography"],[3,"ngClass"],[1,"hidden"],["customNgClass","m-0"],[1,"demo-description"],[3,"selectedIndex","mat-stretch-tabs"],[1,"demo-toolbar"],[1,"toolbar-group"],["mat-icon-button","","matTooltip","Toggle Grid","aria-label","Toggle Grid",3,"click"],["mat-icon-button","","matTooltip","Zoom Out","aria-label","Zoom Out",3,"click"],["mat-icon-button","","matTooltip","Reset Zoom","aria-label","Reset Zoom",3,"click"],["mat-icon-button","","matTooltip","Zoom In","aria-label","Zoom In",3,"click"],["mat-icon-button","","matTooltip","Vision Simulator","aria-label","Vision Simulator",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],[1,"selected-option"],["mat-icon-button","","color","accent","aria-label","Accessibility check","matTooltip","Accessibility check","onclick",`
|