@onemrvapublic/design-system-demos 21.7.9 → 21.7.10-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"demo-collapsible-page-divider.component.html":"<onemrva-collapsible-page-divider\n title=\"Demande n°1 - 01/01/2020\"\n [stickerText]=\"stickerText\"\n [stickerColor]=\"
|
|
1
|
+
{"demo-collapsible-page-divider.component.html":"<!-- Pass undefined / empty string to have no sticker showing at all -->\n<onemrva-collapsible-page-divider\n title=\"Demande n°1 - 01/01/2020\"\n [stickerText]=\"stickerText()\"\n [stickerColor]=\"stickerColor()\"\n [isCollapsed]=\"isCollapsed()\"\n>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n <p>This is the content of the first collapsible divider.</p>\n</onemrva-collapsible-page-divider>\n","demo-collapsible-page-divider.component.scss":"app-demo-collapsible-page-divider {\n width: 100%;\n}\n","demo-collapsible-page-divider.component.ts":"import { Component, input, ViewEncapsulation } from '@angular/core';\nimport { OnemrvaCollapsiblePageDivider } from '@onemrvapublic/design-system/collapsible-page-divider';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { DemoComponentBase } from '../../_demo/demo-component-base';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\n@Component({\n selector: 'app-demo-collapsible-page-divider',\n templateUrl: './demo-collapsible-page-divider.component.html',\n styleUrls: ['./demo-collapsible-page-divider.component.scss'],\n imports: [OnemrvaCollapsiblePageDivider, MatButtonModule, MatIconModule],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DemoCollapsiblePageDividerComponent extends DemoComponentBase {\n readonly title = input<string>('Demande n°1 - 01/01/2020');\n readonly stickerColor = input(OnemrvaMatColor.PRIMARY);\n readonly stickerText = input<string | undefined>('Here is your sticker');\n readonly isCollapsed = input<boolean>(false);\n}\n"}
|
package/browser/main.js
CHANGED
|
@@ -191,7 +191,7 @@ Error when the Bce is not exactly 10 char long:
|
|
|
191
191
|
HTMLCSAuditor.run('WCAG2AA', null, options);
|
|
192
192
|
});
|
|
193
193
|
})()
|
|
194
|
-
`],["mat-tab-link","","routerLinkActive","mdc-tab--active",3,"routerLink","routerLinkActiveOptions","active"],["vertical","",1,"mx-m",2,"height","1em","align-self","center"],["matRipple","","color","accent","size","xsmall",1,"clickable",3,"matMenuTriggerFor","initials"],["matRipple","","icon","account_circle","size","xsmall",1,"clickable",3,"matMenuTriggerFor","color"],["type","button","mat-menu-item","","data-cy","loginButton"],[1,"menu-header","m","mb-m"],[1,"mx-m",2,"align-self","stretch"],["type","button","mat-menu-item","","data-cy","logoutButton",1,"mat-mdc-menu-item",3,"click"],["type","button","mat-menu-item","","data-cy","loginButton",3,"click"],["type","button","mat-icon-button","","data-cy","smallDeviceMenu",1,"menu-button",3,"click"],["id","language-trigger","data-cy","languageMenu","mat-tab-link","",3,"matMenuTriggerFor"],[2,"width","16px"],["type","button","mat-menu-item","",1,"mat-mdc-menu-item","language-trigger__menu-item",3,"click"],[1,"onemrva-layout-container"]],template:function(n,r){if(n&1&&(fe(YGe),d(0,"mat-drawer-container",5)(1,"mat-drawer",6,0),ge(3,ZGe,0,0,"ng-template",7),u(),d(4,"mat-drawer-content")(5,"header"),A(6,"div",8),d(7,"mat-toolbar",9),A(8,"img",10),d(9,"div",11),I(10,JGe,1,1,"ng-container"),I(11,eqe,2,2,"onemrva-mat-sticker",12),u(),A(12,"div",13),I(13,rqe,3,1,"div",14),A(14,"mat-tab-nav-panel",null,1),I(16,aqe,1,1,"ng-container"),I(17,_qe,7,4),I(18,hqe,4,3,"button",15),I(19,fqe,6,6,"div",16),d(20,"mat-menu",null,2),Ie(22,gqe,2,3,"button",17,QGe),u()()(),A(24,"onemrva-layout-left-sidenav"),d(25,"main")(26,"div",18),Z(27),u(),d(28,"section"),ge(29,bqe,1,0,"ng-container",19),I(30,yqe,3,1,"footer",20),u()(),I(31,Eqe,3,0,"button",21),u()()),n&2){let o,a,s,l;v("hasBackdrop",r.drawerService.hasBackdrop()),_(),Dt(r.drawerService.classes()),_(3),Dt(r.leftSidenavService.items().length===0?"no-sidenav":""),Y("collapsed",r.leftSidenavService.isCollapsed()),_(2),Dt(r.environment()),v("color",r.color()),_(2),Jt("cursor",r.logoRedictionUrl()!==null?"pointer":"default"),v("src",r.logoFinal(),Oc)("routerLink",r.logoRedictionUrl()!==null?r.logoRedictionUrl():void 0),H("data-cy","onemrva_logo_"+r.currentLanguage.toLocaleLowerCase()),_(),Y("small-screen",r.isSmall),_(),M((o=(o=r.title())==null?null:o.template())?10:-1,o),_(),M(r.environment()&&(r.environment()===r.env.LOCAL||r.environment()===r.env.TEST||r.environment()===r.env.VAL)?11:-1),_(2),M(r.isSmall?-1:13),_(3),M((a=(a=r.afterNav())==null?null:a.template())?16:-1,a),_(),M(r.profile()!==null?17:-1),_(),M(r.isSmall&&(r.routes().length||r.languages()&&r.languages().length>1)?18:-1),_(),M(!r.isSmall&&r.languages()&&r.languages().length>1?19:-1),_(3),Me(r.languages()),_(7),v("ngTemplateOutlet",(s=r.content())==null?null:s.template()),_(),M((l=(l=r.footer())==null?null:l.template())?30:-1,l),_(),M(r.environment()&&(r.environment()===r.env.LOCAL||r.environment()===r.env.TEST)?31:-1)}},dependencies:[Wo,rm,s_,FL,BL,Ep,Vne,il,Zc,Ua,So,at,co,gi,Hn,Lf,Ai,nc,ym,mr,Yu,Vn,gm,fm,R0,Ha,_t],styles:['[_nghost-%COMP%]{--sideNavWidthFull: 240px;--sideNavWidthCollapsed: 56px;--sideNavWidth: var(--sideNavWidthFull);--mainContentSize: calc(100vh - var(--layout-header-height));position:relative}[_nghost-%COMP%] .onemrva-layout-container[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}[_nghost-%COMP%] a[_ngcontent-%COMP%]:active{outline:none}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%]{z-index:400;border-bottom:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] a[mat-tab-link][_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container-low)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%]{--mat-toolbar-standard-height: var(--layout-header-height);--mat-tab-divider-color: transparent;--mat-tab-container-height: var(--layout-header-height);--mat-tab-label-text-font: var(--text-font);--mat-tab-label-text-weight: 400;--mat-tab-active-indicator-height: 8px;--mat-tab-active-hover-indicator-color: var(--mat-sys-tertiary);--mat-tab-active-focus-indicator-color: var(--mat-sys-tertiary);--mat-tab-inactive-ripple-color: var(--mat-sys-surface-container-low)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .topMenu[_ngcontent-%COMP%] .mat-mdc-tab-header-pagination-before[_ngcontent-%COMP%], [_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .topMenu[_ngcontent-%COMP%] .mat-mdc-tab-header-pagination-after[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .mdc-tab[_ngcontent-%COMP%]{padding:0 16px;min-width:unset}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:42px}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .application-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-tertiary)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .application-title[_ngcontent-%COMP%] onemrva-mat-sticker[_ngcontent-%COMP%]{text-transform:capitalize}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .mat-mdc-tab-nav-bar[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%] #accessibility_fab[_ngcontent-%COMP%]{position:fixed;bottom:16px;left:16px}[_nghost-%COMP%] .environment[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:24000;width:100vw;height:4px;font-weight:700;color:#fff;display:none}[_nghost-%COMP%] .environment.LOCAL[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}[_nghost-%COMP%] .environment.TEST[_ngcontent-%COMP%], [_nghost-%COMP%] .environment.VAL[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary);display:block}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{display:grid;grid-template-areas:"header" "main"}@media screen and (min-width:640px){[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{grid-template-columns:var(--sideNavWidth) 1fr;transition:grid-template-columns .3s ease,max-width .3s ease}[_nghost-%COMP%] mat-drawer-content.collapsed[_ngcontent-%COMP%]{--sideNavWidth: var(--sideNavWidthCollapsed)}[_nghost-%COMP%] mat-drawer-content.collapsed[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{width:var(--sideNavWidthCollapsed)}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{grid-template-areas:"header header" "left-sidenav main"}}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{grid-area:header}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{grid-area:left-sidenav;border-right:1px solid var(--mat-sys-outline-variant)}@media screen and (max-width:640px){[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger__child[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);border-radius:500px}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%]:hover{background:transparent}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:26px}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-area:main;position:relative;width:100%;overflow-y:auto;max-height:var(--mainContentSize);max-width:calc(100vw - var(--sideNavWidth));transition:max-width .3s ease}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%] > .notification[_ngcontent-%COMP%]{z-index:999;position:sticky;top:0}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;width:95%;max-width:1920px;margin-left:auto;margin-right:auto}[_nghost-%COMP%] mat-drawer-content.no-sidenav[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-areas:"header" "main"}[_nghost-%COMP%] mat-drawer-content.no-sidenav[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{max-width:100vw}[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]{max-height:100vh;overflow:hidden}[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]:not(.side-menu){padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}[_nghost-%COMP%] mat-drawer.xsmall[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] mat-drawer.small[_ngcontent-%COMP%]{width:30%}[_nghost-%COMP%] mat-drawer.medium[_ngcontent-%COMP%]{width:50%}[_nghost-%COMP%] mat-drawer.large[_ngcontent-%COMP%]{width:60%}[_nghost-%COMP%] mat-drawer.xlarge[_ngcontent-%COMP%]{width:70%}[_nghost-%COMP%] mat-drawer.xxlarge[_ngcontent-%COMP%]{width:90%}@media screen and (max-width:640px){[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]{width:99%!important}}[_nghost-%COMP%] .onemrva-footer[_ngcontent-%COMP%]{margin-top:auto;height:var(--layout-footer-height);max-height:var(--layout-footer-height);overflow:hidden}nav[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{pointer-events:none}']})}}return t})();var Cqe=["*"],sae=(()=>{class t{constructor(){this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-actions"]],ngContentSelectors:Cqe,decls:1,vars:0,template:function(n,r){n&1&&(fe(),Z(0))},styles:["[_nghost-%COMP%]{width:calc(100% - var(--double-spacer));display:flex;padding:var(--spacer);justify-content:flex-end}"]})}}return t})();var Sqe=["*"],lae=(()=>{class t{constructor(){this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-content"]],ngContentSelectors:Sqe,decls:2,vars:0,template:function(n,r){n&1&&(fe(),xe(0,"span"),Z(1),we())},styles:["[_nghost-%COMP%]{background-color:var(--mat-sys-surface);padding:23px 32px;border-radius:var(--border-radius);display:flex;flex-grow:1;overflow:auto}"]})}}return t})();var Tqe=["*"];function wqe(t,i){if(t&1){let e=Oe();d(0,"mat-icon",1),D("click",function(){se(e);let r=S();return le(r.drawerService.close())}),h(1,"close"),u()}}var cae=(()=>{class t{constructor(){this.showClose=C(!0),this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-title"]],inputs:{showClose:[1,"showClose"]},ngContentSelectors:Tqe,decls:3,vars:1,consts:[[1,"close-drawer","clickable","large","float-right"],[1,"close-drawer","clickable","large","float-right",3,"click"]],template:function(n,r){n&1&&(fe(),d(0,"span"),Z(1),u(),I(2,wqe,2,0,"mat-icon",0)),n&2&&(_(2),M(r.showClose()?2:-1))},dependencies:[at],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:var(--double-spacer) 0}[_nghost-%COMP%] span[_ngcontent-%COMP%]:first-child{font:var(--mat-sys-title-medium);font-size:20px}[_nghost-%COMP%] .close-drawer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]})}}return t})();var l1=class{constructor(...i){this._isLoggedIn=!1,this._firstName="",this._lastName="",i.length===2&&(this._firstName=i[0],this._lastName=i[1],this._isLoggedIn=!0)}initials(){return this._firstName===""||this._lastName===""?"":`${this._firstName.slice(0,1)}${this._lastName.slice(0,1)}`}get firstName(){return this._firstName}set firstName(i){this._firstName=i}get lastName(){return this._lastName}set lastName(i){this._lastName=i}get isLoggedIn(){return this._isLoggedIn}set isLoggedIn(i){this._isLoggedIn=i}login(i,e){this._firstName=i,this._lastName=e,this._isLoggedIn=!0}logout(){this._firstName="",this._lastName="",this._isLoggedIn=!1}};var c1=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=ve({providers:[{provide:c3,useValue:{horizontalPosition:"right"}}],imports:[N0,bm,A0,R0,dr,ey,N2,Js,zf,gm,Yc,It,el,Et,Zc,Br,yt,N2]})}}return t})();var xqe=["*"];function Dqe(t,i){if(t&1&&(h(0),U(1,"translate")),t&2){let e=S();X(" ",j(1,1,e.message())," ")}}function Iqe(t,i){if(t&1){let e=Oe();d(0,"mat-icon",3),D("click",function(){se(e);let r=S();return le(r.closeNotification())}),h(1," close "),u()}}var d1=(()=>{class t{constructor(){this.message=C(""),this.closable=C(!0),this.id=C("onemrva-mat-notification"),this.dataCy=C("onemrva-mat-notification"),this.isOpen=Nl(!0),this.notificationClose=un(),this.destroyNotifier$=new G,this.isSmall=!1,this.breakpointObserver=p(ha),this.breakpointObserver.observe([ba.XSmall,ba.Small]).pipe(Te(this.destroyNotifier$)).subscribe(e=>{this.isSmall=e.matches})}ngOnDestroy(){this.destroyNotifier$.next(),this.destroyNotifier$.complete()}closeNotification(){this.isOpen.set(!1),this.notificationClose.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-mat-notification"]],hostVars:6,hostBindings:function(n,r){n&2&&(H("id",r.id())("data-cy",r.dataCy())("aria-live","assertive")("role","alert"),Y("collapse-notification",!r.isOpen()))},inputs:{message:[1,"message"],closable:[1,"closable"],id:[1,"id"],dataCy:[1,"dataCy"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",notificationClose:"notificationClose"},ngContentSelectors:xqe,decls:5,vars:2,consts:[[1,"onemrva-mat-notification","container"],[1,"onemrva-mat-notification-content","show-icon"],[1,"close-notification","float-right","clickable","mr"],[1,"close-notification","float-right","clickable","mr",3,"click"]],template:function(n,r){n&1&&(fe(),d(0,"div",0)(1,"div",1),I(2,Dqe,2,3),Z(3),I(4,Iqe,2,0,"mat-icon",2),u()()),n&2&&(_(2),M(r.message()!==""?2:-1),_(2),M(r.closable()||r.isSmall?4:-1))},dependencies:[yt,Et,at,_t],styles:["[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%]{transition:max-height .4s ease-out;max-height:100vh;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%] .onemrva-mat-notification-content[_ngcontent-%COMP%]{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%] .onemrva-mat-notification-content[_ngcontent-%COMP%]:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}.collapse-notification[_nghost-%COMP%]{display:none}"]})}}return t})();var u1=(()=>{class t extends re{constructor(){super(...arguments),this.myForm=C.required(),this.drawerService=p(na)}get userId(){return this.myForm().get("userId")}get leftField(){return this.myForm().get("leftField")}get rightField(){return this.myForm().get("rightField")}save(){this.drawerService.close()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["layout-drawer"]],inputs:{myForm:[1,"myForm"]},features:[P],decls:26,vars:5,consts:[[3,"showClose"],["id","myForm",1,"mt-xl",3,"formGroup"],["matInput","",3,"formControl"],["mat-stroked-button","","color","primary",1,"close",3,"click"],["mat-flat-button","","color","accent",1,"ml",3,"click"]],template:function(n,r){n&1&&(d(0,"section")(1,"onemrva-drawer-title",0),h(2," Example slide-over with content "),u(),d(3,"onemrva-drawer-content")(4,"h2"),h(5,"Content title"),u(),d(6,"p"),h(7," The slide-over allows to get some content displayed on a panel with some elements inside. "),u(),d(8,"div",1)(9,"mat-form-field")(10,"mat-label"),h(11,"User ID"),u(),A(12,"input",2),u(),d(13,"mat-form-field")(14,"mat-label"),h(15,"Left fiels"),u(),A(16,"input",2),u(),d(17,"mat-form-field")(18,"mat-label"),h(19,"Right field"),u(),A(20,"input",2),u()()(),d(21,"onemrva-drawer-actions")(22,"button",3),D("click",function(){return r.drawerService.close()}),h(23," Cancel "),u(),d(24,"button",4),D("click",function(){return r.save()}),h(25," Save "),u()()()),n&2&&(_(),v("showClose",!0),_(7),v("formGroup",r.myForm()),_(4),v("formControl",r.userId),_(4),v("formControl",r.leftField),_(4),v("formControl",r.rightField))},dependencies:[sae,lae,cae,Je,Wt,rt,xo,ht,Ir,Et,mt,pt,an,pn,Kc],styles:["[_nghost-%COMP%] > section[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}"]})}}return t})();var Mqe=["mainDrawer"];function kqe(t,i){}var dae=(()=>{class t{constructor(){this.drawerService=p(na),this.size=C(va.XLARGE),this.drawer=ot("mainDrawer"),this.drawerHost=ot(ym),this.dummyForm=new To({userId:new $e(""),leftField:new $e(""),rightField:new $e("")}),$t(()=>{this.drawerService.size.set(this.size())})}ngAfterViewInit(){let e=this.drawer();e&&this.drawerService.setDrawer(e);let n=this.drawerHost();n&&(this.drawerService.host=n)}toggleForm(){if(this.componentRef||(this.componentRef=this.drawerService.host?.createComponent(u1),this.componentRef&&this.componentRef.setInput("myForm",this.dummyForm)),!this.componentRef){console.error("Drawer host is not available.");return}this.componentRef.setInput("myForm",this.dummyForm),this.drawerService.toggle()}help(){alert("HELP")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-drawer"]],viewQuery:function(n,r){n&1&>(r.drawer,Mqe,5)(r.drawerHost,ym,5),n&2&&tt(2)},inputs:{size:[1,"size"]},decls:8,vars:4,consts:[["mainDrawer",""],["id","onemrva-drawer-container","autosize","",3,"hasBackdrop"],["mode","over","position","end"],["drawerhost",""],[2,"height","60vh"],["mat-flat-button","","color","accent",3,"click"]],template:function(n,r){n&1&&(d(0,"mat-drawer-container",1)(1,"mat-drawer",2,0),ge(3,kqe,0,0,"ng-template",3),u(),d(4,"mat-drawer-content")(5,"div",4)(6,"button",5),D("click",function(){return r.toggleForm()}),h(7," Open Drawer "),u()()()()),n&2&&(v("hasBackdrop",r.drawerService.hasBackdrop()),_(),Dt(r.drawerService.classes()),_(5),H("data-cy","click-me"))},dependencies:[ey,yt,Et,el,c1,Je,cl,It,pn,ym,nc,s_,fm],encapsulation:2})}}return t})();var uae=()=>({exact:!0}),Oqe=()=>({exact:!1}),mae=(()=>{class t{constructor(){this.http=p(Kr),this.route=p(Yo),this.drawerService=p(na),this.leftNav=p(gg),this.navItems=[{label:"Home",icon:"home",dataCy:"home-nav",routerLink:"/",children:[]}],this.dummyForm=new To({userId:new $e(""),leftField:new $e(""),rightField:new $e("")}),this.Environment=vm,this.profile=new l1,$t(()=>{this.leftNav.updateItems(this.navItems)})}login(){this.profile.login("Anne","Onymous")}logout(){this.profile.logout()}helpLink(){alert("?")}toggleForm(){this.drawerService.size.set("xlarge"),this.componentRef=this.drawerService.host?.createComponent(u1),this.componentRef?.setInput("myForm",this.dummyForm),this.drawerService.toggle()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-root"]],decls:37,vars:28,consts:[[3,"login","logout","environment","profile","showThemeSwitcher"],["color","info",3,"closable"],["href","#"],[1,"nemo"],["type","button","mat-menu-item","","data-cy","go to admin",3,"click"],["routerLink","/","dataCy","Guides",3,"routerLinkActiveOptions","label"],["routerLink","/demos","dataCy","Components",3,"routerLinkActiveOptions","label"],["routerLink","/news","dataCy","News",3,"routerLinkActiveOptions","label"],["mat-icon-button","","data-cy","goToUserManual","rel","noopener noreferrer","matTooltip","Create ticket",2,"text-decoration","none !important",3,"click","matTooltipClass"],[1,"iconHelp"],[2,"width","100%","height","100%","display","flex","flex-direction","column","justify-content","center","align-items","center"],["mat-flat-button","","color","accent",1,"m-m",3,"click"],[2,"min-height","50vh"]],template:function(n,r){n&1&&(d(0,"onemrva-layout",0),D("login",function(){return r.login()})("logout",function(){return r.logout()}),d(1,"onemrva-mat-notification",1),h(2," Hello "),d(3,"a",2),h(4,"world"),u()(),d(5,"onemrva-layout-title")(6,"span",3)(7,"span"),h(8,"nemo"),u(),d(9,"span"),h(10,"DESIGN SYSTEM"),u()()(),d(11,"onemrva-layout-login-menu")(12,"button",4),U(13,"translate"),D("click",function(){return r.helpLink()}),d(14,"mat-icon"),h(15,"dashboard"),u(),h(16),U(17,"translate"),u()(),A(18,"onemrva-layout-route",5),U(19,"translate"),A(20,"onemrva-layout-route",6),U(21,"translate"),A(22,"onemrva-layout-route",7),U(23,"translate"),d(24,"onemrva-layout-after-nav")(25,"button",8),D("click",function(){return r.helpLink()}),d(26,"mat-icon",9),h(27,"help"),u()()(),d(28,"onemrva-layout-content"),A(29,"router-outlet"),d(30,"section",10)(31,"button",11),D("click",function(){return r.toggleForm()}),h(32," Open form "),u(),d(33,"div",12),h(34,"\xA0"),u()()(),d(35,"onemrva-layout-footer"),h(36," ONEM/RVA \xA9 2025 "),u()()),n&2&&(v("environment",r.Environment.PROD)("profile",r.profile)("showThemeSwitcher",!1),_(),v("closable",!0),_(11),H("aria-label",j(13,15,"Admin")),_(4),X("",j(17,17,"Admin")," "),_(2),v("routerLinkActiveOptions",ei(25,uae))("label",j(19,19,"Guides")),_(2),v("routerLinkActiveOptions",ei(26,Oqe))("label",j(21,21,"Components")),_(2),v("routerLinkActiveOptions",ei(27,uae))("label",j(23,23,"News")),_(3),v("matTooltipClass","tooltip"),H("aria-label","Create ticket"),_(),H("aria-label","Create ticket"))},dependencies:[Kv,c1,N0,bg,yg,bm,vg,Eg,Cg,at,Ai,Hn,yt,Fr,Wo,co,Vn,d1,pn,_t],encapsulation:2})}}return t})();function Rqe(t,i){t&1&&(d(0,"mat-icon",4),h(1,"radio_button_checked"),u())}function Aqe(t,i){t&1&&(d(0,"mat-icon",4),h(1,"radio_button_unchecked"),u())}function Nqe(t,i){if(t&1){let e=Oe();d(0,"div",3),D("click",function(){let r=se(e).$implicit,o=S();return le(o.changeLanguage(r))}),I(1,Rqe,2,0,"mat-icon",4),I(2,Aqe,2,0,"mat-icon",4),h(3),u()}if(t&2){let e=i.$implicit,n=S();_(),M(n.translateService.getCurrentLang()===e?1:-1),_(),M(n.translateService.getCurrentLang()!==e?2:-1),_(),X(" ",e," ")}}var pae=(()=>{class t extends re{constructor(){super(...arguments),this.translateService=p($n)}changeLanguage(e){this.translateService.getLangs().includes(e)&&this.translateService.use(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-language-switcher"]],features:[P],decls:7,vars:1,consts:[["languageMenu","matMenu"],["mat-mini-fab","","aria-label","Language switcher",1,"onemrva-icon-button","truc",3,"matMenuTriggerFor"],["mat-menu-item","","tabindex","0"],["mat-menu-item","","tabindex","0",3,"click"],[1,"mr-s",2,"width","auto","height","auto"]],template:function(n,r){if(n&1&&(d(0,"button",1)(1,"mat-icon"),h(2,"translate"),u()(),d(3,"mat-menu",null,0),Ie(5,Nqe,4,3,"div",2,ln),u()),n&2){let o=Qe(4);v("matMenuTriggerFor",o),_(5),Me(r.translateService.getLangs())}},dependencies:[It,rD,el,So,co,Ua,Et,at],encapsulation:2})}}return t})();var _ae=(()=>{class t extends re{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-link"]],features:[P],decls:8,vars:0,consts:[["id","info"],["href","#carriere"],["id","carriere"],["href","#info"]],template:function(n,r){n&1&&(xe(0,"p",0),h(1," Vous avez perdu votre emploi et vous \xEAtes \xE0 la recherche d'un nouveau travail ? Vous souhaitez consacrer du temps \xE0 vos enfants ou "),xe(2,"a",1),h(3,"interrompre votre carri\xE8re"),we(),h(4,` pour une autre raison ?
|
|
194
|
+
`],["mat-tab-link","","routerLinkActive","mdc-tab--active",3,"routerLink","routerLinkActiveOptions","active"],["vertical","",1,"mx-m",2,"height","1em","align-self","center"],["matRipple","","color","accent","size","xsmall",1,"clickable",3,"matMenuTriggerFor","initials"],["matRipple","","icon","account_circle","size","xsmall",1,"clickable",3,"matMenuTriggerFor","color"],["type","button","mat-menu-item","","data-cy","loginButton"],[1,"menu-header","m","mb-m"],[1,"mx-m",2,"align-self","stretch"],["type","button","mat-menu-item","","data-cy","logoutButton",1,"mat-mdc-menu-item",3,"click"],["type","button","mat-menu-item","","data-cy","loginButton",3,"click"],["type","button","mat-icon-button","","data-cy","smallDeviceMenu",1,"menu-button",3,"click"],["id","language-trigger","data-cy","languageMenu","mat-tab-link","",3,"matMenuTriggerFor"],[2,"width","16px"],["type","button","mat-menu-item","",1,"mat-mdc-menu-item","language-trigger__menu-item",3,"click"],[1,"onemrva-layout-container"]],template:function(n,r){if(n&1&&(fe(YGe),d(0,"mat-drawer-container",5)(1,"mat-drawer",6,0),ge(3,ZGe,0,0,"ng-template",7),u(),d(4,"mat-drawer-content")(5,"header"),A(6,"div",8),d(7,"mat-toolbar",9),A(8,"img",10),d(9,"div",11),I(10,JGe,1,1,"ng-container"),I(11,eqe,2,2,"onemrva-mat-sticker",12),u(),A(12,"div",13),I(13,rqe,3,1,"div",14),A(14,"mat-tab-nav-panel",null,1),I(16,aqe,1,1,"ng-container"),I(17,_qe,7,4),I(18,hqe,4,3,"button",15),I(19,fqe,6,6,"div",16),d(20,"mat-menu",null,2),Ie(22,gqe,2,3,"button",17,QGe),u()()(),A(24,"onemrva-layout-left-sidenav"),d(25,"main")(26,"div",18),Z(27),u(),d(28,"section"),ge(29,bqe,1,0,"ng-container",19),I(30,yqe,3,1,"footer",20),u()(),I(31,Eqe,3,0,"button",21),u()()),n&2){let o,a,s,l;v("hasBackdrop",r.drawerService.hasBackdrop()),_(),Dt(r.drawerService.classes()),_(3),Dt(r.leftSidenavService.items().length===0?"no-sidenav":""),Y("collapsed",r.leftSidenavService.isCollapsed()),_(2),Dt(r.environment()),v("color",r.color()),_(2),Jt("cursor",r.logoRedictionUrl()!==null?"pointer":"default"),v("src",r.logoFinal(),Oc)("routerLink",r.logoRedictionUrl()!==null?r.logoRedictionUrl():void 0),H("data-cy","onemrva_logo_"+r.currentLanguage.toLocaleLowerCase()),_(),Y("small-screen",r.isSmall),_(),M((o=(o=r.title())==null?null:o.template())?10:-1,o),_(),M(r.environment()&&(r.environment()===r.env.LOCAL||r.environment()===r.env.TEST||r.environment()===r.env.VAL)?11:-1),_(2),M(r.isSmall?-1:13),_(3),M((a=(a=r.afterNav())==null?null:a.template())?16:-1,a),_(),M(r.profile()!==null?17:-1),_(),M(r.isSmall&&(r.routes().length||r.languages()&&r.languages().length>1)?18:-1),_(),M(!r.isSmall&&r.languages()&&r.languages().length>1?19:-1),_(3),Me(r.languages()),_(7),v("ngTemplateOutlet",(s=r.content())==null?null:s.template()),_(),M((l=(l=r.footer())==null?null:l.template())?30:-1,l),_(),M(r.environment()&&(r.environment()===r.env.LOCAL||r.environment()===r.env.TEST)?31:-1)}},dependencies:[Wo,rm,s_,FL,BL,Ep,Vne,il,Zc,Ua,So,at,co,gi,Hn,Lf,Ai,nc,ym,mr,Yu,Vn,gm,fm,R0,Ha,_t],styles:['[_nghost-%COMP%]{--sideNavWidthFull: 240px;--sideNavWidthCollapsed: 56px;--sideNavWidth: var(--sideNavWidthFull);--mainContentSize: calc(100vh - var(--layout-header-height));position:relative}[_nghost-%COMP%] .onemrva-layout-container[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}[_nghost-%COMP%] a[_ngcontent-%COMP%]:active{outline:none}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%]{z-index:400;border-bottom:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] a[mat-tab-link][_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container-low)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%]{--mat-toolbar-standard-height: var(--layout-header-height);--mat-tab-divider-color: transparent;--mat-tab-container-height: var(--layout-header-height);--mat-tab-label-text-font: var(--text-font);--mat-tab-label-text-weight: 400;--mat-tab-active-indicator-height: 8px;--mat-tab-active-hover-indicator-color: var(--mat-sys-tertiary);--mat-tab-active-focus-indicator-color: var(--mat-sys-tertiary);--mat-tab-inactive-ripple-color: var(--mat-sys-surface-container-low)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .topMenu[_ngcontent-%COMP%] .mat-mdc-tab-header-pagination-before[_ngcontent-%COMP%], [_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .topMenu[_ngcontent-%COMP%] .mat-mdc-tab-header-pagination-after[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .mdc-tab[_ngcontent-%COMP%]{padding:0 16px;min-width:unset}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:42px}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .application-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-tertiary)}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .application-title[_ngcontent-%COMP%] onemrva-mat-sticker[_ngcontent-%COMP%]{text-transform:capitalize}[_nghost-%COMP%] header[_ngcontent-%COMP%] mat-toolbar[_ngcontent-%COMP%] .mat-mdc-tab-nav-bar[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%] #accessibility_fab[_ngcontent-%COMP%]{position:fixed;bottom:16px;left:16px}[_nghost-%COMP%] .environment[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:24000;width:100vw;height:4px;font-weight:700;color:#fff;display:none}[_nghost-%COMP%] .environment.LOCAL[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}[_nghost-%COMP%] .environment.TEST[_ngcontent-%COMP%], [_nghost-%COMP%] .environment.VAL[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary);display:block}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{display:grid;grid-template-areas:"header" "main"}@media screen and (min-width:640px){[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{grid-template-columns:var(--sideNavWidth) 1fr;transition:grid-template-columns .3s ease,max-width .3s ease}[_nghost-%COMP%] mat-drawer-content.collapsed[_ngcontent-%COMP%]{--sideNavWidth: var(--sideNavWidthCollapsed)}[_nghost-%COMP%] mat-drawer-content.collapsed[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{width:var(--sideNavWidthCollapsed)}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%]{grid-template-areas:"header header" "left-sidenav main"}}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{grid-area:header}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{grid-area:left-sidenav;border-right:1px solid var(--mat-sys-outline-variant)}@media screen and (max-width:640px){[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] onemrva-layout-left-sidenav[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger__child[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);border-radius:500px}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%]:hover{background:transparent}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] #language-trigger[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:26px}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-area:main;position:relative;width:100%;height:100vh;overflow-y:auto;max-height:var(--mainContentSize);max-width:calc(100vw - var(--sideNavWidth));transition:max-width .3s ease}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%] > .notification[_ngcontent-%COMP%]{z-index:999;position:sticky;top:0}[_nghost-%COMP%] mat-drawer-content[_ngcontent-%COMP%] main[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;width:95%;max-width:1920px;margin-left:auto;margin-right:auto}[_nghost-%COMP%] mat-drawer-content.no-sidenav[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-areas:"header" "main"}[_nghost-%COMP%] mat-drawer-content.no-sidenav[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{max-width:100vw}[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]{max-height:100vh;overflow:hidden}[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]:not(.side-menu){padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}[_nghost-%COMP%] mat-drawer.xsmall[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] mat-drawer.small[_ngcontent-%COMP%]{width:30%}[_nghost-%COMP%] mat-drawer.medium[_ngcontent-%COMP%]{width:50%}[_nghost-%COMP%] mat-drawer.large[_ngcontent-%COMP%]{width:60%}[_nghost-%COMP%] mat-drawer.xlarge[_ngcontent-%COMP%]{width:70%}[_nghost-%COMP%] mat-drawer.xxlarge[_ngcontent-%COMP%]{width:90%}@media screen and (max-width:640px){[_nghost-%COMP%] mat-drawer[_ngcontent-%COMP%]{width:99%!important}}[_nghost-%COMP%] .onemrva-footer[_ngcontent-%COMP%]{margin-top:auto;height:var(--layout-footer-height);max-height:var(--layout-footer-height);overflow:hidden}nav[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{pointer-events:none}']})}}return t})();var Cqe=["*"],sae=(()=>{class t{constructor(){this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-actions"]],ngContentSelectors:Cqe,decls:1,vars:0,template:function(n,r){n&1&&(fe(),Z(0))},styles:["[_nghost-%COMP%]{width:calc(100% - var(--double-spacer));display:flex;padding:var(--spacer);justify-content:flex-end}"]})}}return t})();var Sqe=["*"],lae=(()=>{class t{constructor(){this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-content"]],ngContentSelectors:Sqe,decls:2,vars:0,template:function(n,r){n&1&&(fe(),xe(0,"span"),Z(1),we())},styles:["[_nghost-%COMP%]{background-color:var(--mat-sys-surface);padding:23px 32px;border-radius:var(--border-radius);display:flex;flex-grow:1;overflow:auto}"]})}}return t})();var Tqe=["*"];function wqe(t,i){if(t&1){let e=Oe();d(0,"mat-icon",1),D("click",function(){se(e);let r=S();return le(r.drawerService.close())}),h(1,"close"),u()}}var cae=(()=>{class t{constructor(){this.showClose=C(!0),this.drawerService=p(na)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-drawer-title"]],inputs:{showClose:[1,"showClose"]},ngContentSelectors:Tqe,decls:3,vars:1,consts:[[1,"close-drawer","clickable","large","float-right"],[1,"close-drawer","clickable","large","float-right",3,"click"]],template:function(n,r){n&1&&(fe(),d(0,"span"),Z(1),u(),I(2,wqe,2,0,"mat-icon",0)),n&2&&(_(2),M(r.showClose()?2:-1))},dependencies:[at],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:var(--double-spacer) 0}[_nghost-%COMP%] span[_ngcontent-%COMP%]:first-child{font:var(--mat-sys-title-medium);font-size:20px}[_nghost-%COMP%] .close-drawer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]})}}return t})();var l1=class{constructor(...i){this._isLoggedIn=!1,this._firstName="",this._lastName="",i.length===2&&(this._firstName=i[0],this._lastName=i[1],this._isLoggedIn=!0)}initials(){return this._firstName===""||this._lastName===""?"":`${this._firstName.slice(0,1)}${this._lastName.slice(0,1)}`}get firstName(){return this._firstName}set firstName(i){this._firstName=i}get lastName(){return this._lastName}set lastName(i){this._lastName=i}get isLoggedIn(){return this._isLoggedIn}set isLoggedIn(i){this._isLoggedIn=i}login(i,e){this._firstName=i,this._lastName=e,this._isLoggedIn=!0}logout(){this._firstName="",this._lastName="",this._isLoggedIn=!1}};var c1=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=ve({providers:[{provide:c3,useValue:{horizontalPosition:"right"}}],imports:[N0,bm,A0,R0,dr,ey,N2,Js,zf,gm,Yc,It,el,Et,Zc,Br,yt,N2]})}}return t})();var xqe=["*"];function Dqe(t,i){if(t&1&&(h(0),U(1,"translate")),t&2){let e=S();X(" ",j(1,1,e.message())," ")}}function Iqe(t,i){if(t&1){let e=Oe();d(0,"mat-icon",3),D("click",function(){se(e);let r=S();return le(r.closeNotification())}),h(1," close "),u()}}var d1=(()=>{class t{constructor(){this.message=C(""),this.closable=C(!0),this.id=C("onemrva-mat-notification"),this.dataCy=C("onemrva-mat-notification"),this.isOpen=Nl(!0),this.notificationClose=un(),this.destroyNotifier$=new G,this.isSmall=!1,this.breakpointObserver=p(ha),this.breakpointObserver.observe([ba.XSmall,ba.Small]).pipe(Te(this.destroyNotifier$)).subscribe(e=>{this.isSmall=e.matches})}ngOnDestroy(){this.destroyNotifier$.next(),this.destroyNotifier$.complete()}closeNotification(){this.isOpen.set(!1),this.notificationClose.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-mat-notification"]],hostVars:6,hostBindings:function(n,r){n&2&&(H("id",r.id())("data-cy",r.dataCy())("aria-live","assertive")("role","alert"),Y("collapse-notification",!r.isOpen()))},inputs:{message:[1,"message"],closable:[1,"closable"],id:[1,"id"],dataCy:[1,"dataCy"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",notificationClose:"notificationClose"},ngContentSelectors:xqe,decls:5,vars:2,consts:[[1,"onemrva-mat-notification","container"],[1,"onemrva-mat-notification-content","show-icon"],[1,"close-notification","float-right","clickable","mr"],[1,"close-notification","float-right","clickable","mr",3,"click"]],template:function(n,r){n&1&&(fe(),d(0,"div",0)(1,"div",1),I(2,Dqe,2,3),Z(3),I(4,Iqe,2,0,"mat-icon",2),u()()),n&2&&(_(2),M(r.message()!==""?2:-1),_(2),M(r.closable()||r.isSmall?4:-1))},dependencies:[yt,Et,at,_t],styles:["[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%]{transition:max-height .4s ease-out;max-height:100vh;z-index:401;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);border-bottom:1px solid var(--mat-sys-primary)}[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%] .onemrva-mat-notification-content[_ngcontent-%COMP%]{font:var(--mat-sys-body-medium);padding:var(--double-spacer) var(--spacer) var(--double-spacer) var(--spacer)}[_nghost-%COMP%] .onemrva-mat-notification[_ngcontent-%COMP%] .onemrva-mat-notification-content[_ngcontent-%COMP%]:before{margin-right:var(--double-spacer);margin-top:var(--quarter-spacer)}.collapse-notification[_nghost-%COMP%]{display:none}"]})}}return t})();var u1=(()=>{class t extends re{constructor(){super(...arguments),this.myForm=C.required(),this.drawerService=p(na)}get userId(){return this.myForm().get("userId")}get leftField(){return this.myForm().get("leftField")}get rightField(){return this.myForm().get("rightField")}save(){this.drawerService.close()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["layout-drawer"]],inputs:{myForm:[1,"myForm"]},features:[P],decls:26,vars:5,consts:[[3,"showClose"],["id","myForm",1,"mt-xl",3,"formGroup"],["matInput","",3,"formControl"],["mat-stroked-button","","color","primary",1,"close",3,"click"],["mat-flat-button","","color","accent",1,"ml",3,"click"]],template:function(n,r){n&1&&(d(0,"section")(1,"onemrva-drawer-title",0),h(2," Example slide-over with content "),u(),d(3,"onemrva-drawer-content")(4,"h2"),h(5,"Content title"),u(),d(6,"p"),h(7," The slide-over allows to get some content displayed on a panel with some elements inside. "),u(),d(8,"div",1)(9,"mat-form-field")(10,"mat-label"),h(11,"User ID"),u(),A(12,"input",2),u(),d(13,"mat-form-field")(14,"mat-label"),h(15,"Left fiels"),u(),A(16,"input",2),u(),d(17,"mat-form-field")(18,"mat-label"),h(19,"Right field"),u(),A(20,"input",2),u()()(),d(21,"onemrva-drawer-actions")(22,"button",3),D("click",function(){return r.drawerService.close()}),h(23," Cancel "),u(),d(24,"button",4),D("click",function(){return r.save()}),h(25," Save "),u()()()),n&2&&(_(),v("showClose",!0),_(7),v("formGroup",r.myForm()),_(4),v("formControl",r.userId),_(4),v("formControl",r.leftField),_(4),v("formControl",r.rightField))},dependencies:[sae,lae,cae,Je,Wt,rt,xo,ht,Ir,Et,mt,pt,an,pn,Kc],styles:["[_nghost-%COMP%] > section[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}"]})}}return t})();var Mqe=["mainDrawer"];function kqe(t,i){}var dae=(()=>{class t{constructor(){this.drawerService=p(na),this.size=C(va.XLARGE),this.drawer=ot("mainDrawer"),this.drawerHost=ot(ym),this.dummyForm=new To({userId:new $e(""),leftField:new $e(""),rightField:new $e("")}),$t(()=>{this.drawerService.size.set(this.size())})}ngAfterViewInit(){let e=this.drawer();e&&this.drawerService.setDrawer(e);let n=this.drawerHost();n&&(this.drawerService.host=n)}toggleForm(){if(this.componentRef||(this.componentRef=this.drawerService.host?.createComponent(u1),this.componentRef&&this.componentRef.setInput("myForm",this.dummyForm)),!this.componentRef){console.error("Drawer host is not available.");return}this.componentRef.setInput("myForm",this.dummyForm),this.drawerService.toggle()}help(){alert("HELP")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-drawer"]],viewQuery:function(n,r){n&1&>(r.drawer,Mqe,5)(r.drawerHost,ym,5),n&2&&tt(2)},inputs:{size:[1,"size"]},decls:8,vars:4,consts:[["mainDrawer",""],["id","onemrva-drawer-container","autosize","",3,"hasBackdrop"],["mode","over","position","end"],["drawerhost",""],[2,"height","60vh"],["mat-flat-button","","color","accent",3,"click"]],template:function(n,r){n&1&&(d(0,"mat-drawer-container",1)(1,"mat-drawer",2,0),ge(3,kqe,0,0,"ng-template",3),u(),d(4,"mat-drawer-content")(5,"div",4)(6,"button",5),D("click",function(){return r.toggleForm()}),h(7," Open Drawer "),u()()()()),n&2&&(v("hasBackdrop",r.drawerService.hasBackdrop()),_(),Dt(r.drawerService.classes()),_(5),H("data-cy","click-me"))},dependencies:[ey,yt,Et,el,c1,Je,cl,It,pn,ym,nc,s_,fm],encapsulation:2})}}return t})();var uae=()=>({exact:!0}),Oqe=()=>({exact:!1}),mae=(()=>{class t{constructor(){this.http=p(Kr),this.route=p(Yo),this.drawerService=p(na),this.leftNav=p(gg),this.navItems=[{label:"Home",icon:"home",dataCy:"home-nav",routerLink:"/",children:[]}],this.dummyForm=new To({userId:new $e(""),leftField:new $e(""),rightField:new $e("")}),this.Environment=vm,this.profile=new l1,$t(()=>{this.leftNav.updateItems(this.navItems)})}login(){this.profile.login("Anne","Onymous")}logout(){this.profile.logout()}helpLink(){alert("?")}toggleForm(){this.drawerService.size.set("xlarge"),this.componentRef=this.drawerService.host?.createComponent(u1),this.componentRef?.setInput("myForm",this.dummyForm),this.drawerService.toggle()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-root"]],decls:37,vars:28,consts:[[3,"login","logout","environment","profile","showThemeSwitcher"],["color","info",3,"closable"],["href","#"],[1,"nemo"],["type","button","mat-menu-item","","data-cy","go to admin",3,"click"],["routerLink","/","dataCy","Guides",3,"routerLinkActiveOptions","label"],["routerLink","/demos","dataCy","Components",3,"routerLinkActiveOptions","label"],["routerLink","/news","dataCy","News",3,"routerLinkActiveOptions","label"],["mat-icon-button","","data-cy","goToUserManual","rel","noopener noreferrer","matTooltip","Create ticket",2,"text-decoration","none !important",3,"click","matTooltipClass"],[1,"iconHelp"],[2,"width","100%","height","100%","display","flex","flex-direction","column","justify-content","center","align-items","center"],["mat-flat-button","","color","accent",1,"m-m",3,"click"],[2,"min-height","50vh"]],template:function(n,r){n&1&&(d(0,"onemrva-layout",0),D("login",function(){return r.login()})("logout",function(){return r.logout()}),d(1,"onemrva-mat-notification",1),h(2," Hello "),d(3,"a",2),h(4,"world"),u()(),d(5,"onemrva-layout-title")(6,"span",3)(7,"span"),h(8,"nemo"),u(),d(9,"span"),h(10,"DESIGN SYSTEM"),u()()(),d(11,"onemrva-layout-login-menu")(12,"button",4),U(13,"translate"),D("click",function(){return r.helpLink()}),d(14,"mat-icon"),h(15,"dashboard"),u(),h(16),U(17,"translate"),u()(),A(18,"onemrva-layout-route",5),U(19,"translate"),A(20,"onemrva-layout-route",6),U(21,"translate"),A(22,"onemrva-layout-route",7),U(23,"translate"),d(24,"onemrva-layout-after-nav")(25,"button",8),D("click",function(){return r.helpLink()}),d(26,"mat-icon",9),h(27,"help"),u()()(),d(28,"onemrva-layout-content"),A(29,"router-outlet"),d(30,"section",10)(31,"button",11),D("click",function(){return r.toggleForm()}),h(32," Open form "),u(),d(33,"div",12),h(34,"\xA0"),u()()(),d(35,"onemrva-layout-footer"),h(36," ONEM/RVA \xA9 2025 "),u()()),n&2&&(v("environment",r.Environment.PROD)("profile",r.profile)("showThemeSwitcher",!1),_(),v("closable",!0),_(11),H("aria-label",j(13,15,"Admin")),_(4),X("",j(17,17,"Admin")," "),_(2),v("routerLinkActiveOptions",ei(25,uae))("label",j(19,19,"Guides")),_(2),v("routerLinkActiveOptions",ei(26,Oqe))("label",j(21,21,"Components")),_(2),v("routerLinkActiveOptions",ei(27,uae))("label",j(23,23,"News")),_(3),v("matTooltipClass","tooltip"),H("aria-label","Create ticket"),_(),H("aria-label","Create ticket"))},dependencies:[Kv,c1,N0,bg,yg,bm,vg,Eg,Cg,at,Ai,Hn,yt,Fr,Wo,co,Vn,d1,pn,_t],encapsulation:2})}}return t})();function Rqe(t,i){t&1&&(d(0,"mat-icon",4),h(1,"radio_button_checked"),u())}function Aqe(t,i){t&1&&(d(0,"mat-icon",4),h(1,"radio_button_unchecked"),u())}function Nqe(t,i){if(t&1){let e=Oe();d(0,"div",3),D("click",function(){let r=se(e).$implicit,o=S();return le(o.changeLanguage(r))}),I(1,Rqe,2,0,"mat-icon",4),I(2,Aqe,2,0,"mat-icon",4),h(3),u()}if(t&2){let e=i.$implicit,n=S();_(),M(n.translateService.getCurrentLang()===e?1:-1),_(),M(n.translateService.getCurrentLang()!==e?2:-1),_(),X(" ",e," ")}}var pae=(()=>{class t extends re{constructor(){super(...arguments),this.translateService=p($n)}changeLanguage(e){this.translateService.getLangs().includes(e)&&this.translateService.use(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-language-switcher"]],features:[P],decls:7,vars:1,consts:[["languageMenu","matMenu"],["mat-mini-fab","","aria-label","Language switcher",1,"onemrva-icon-button","truc",3,"matMenuTriggerFor"],["mat-menu-item","","tabindex","0"],["mat-menu-item","","tabindex","0",3,"click"],[1,"mr-s",2,"width","auto","height","auto"]],template:function(n,r){if(n&1&&(d(0,"button",1)(1,"mat-icon"),h(2,"translate"),u()(),d(3,"mat-menu",null,0),Ie(5,Nqe,4,3,"div",2,ln),u()),n&2){let o=Qe(4);v("matMenuTriggerFor",o),_(5),Me(r.translateService.getLangs())}},dependencies:[It,rD,el,So,co,Ua,Et,at],encapsulation:2})}}return t})();var _ae=(()=>{class t extends re{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-link"]],features:[P],decls:8,vars:0,consts:[["id","info"],["href","#carriere"],["id","carriere"],["href","#info"]],template:function(n,r){n&1&&(xe(0,"p",0),h(1," Vous avez perdu votre emploi et vous \xEAtes \xE0 la recherche d'un nouveau travail ? Vous souhaitez consacrer du temps \xE0 vos enfants ou "),xe(2,"a",1),h(3,"interrompre votre carri\xE8re"),we(),h(4,` pour une autre raison ?
|
|
195
195
|
`),we(),xe(5,"p",2)(6,"a",3),h(7,"Plus d'informations >"),we()())},encapsulation:2})}}return t})();var hae=(()=>{class t extends re{constructor(){super(...arguments),this.maskedInput1=new $e(""),this.maskedInput2=new $e(""),this.maskedInput3=new $e("")}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["demo-mask"]],features:[P],decls:25,vars:6,consts:[["matInput","","aria-label","mask demo",3,"onemrvamask","formControl"]],template:function(n,r){n&1&&(d(0,"p"),h(1,"Rules"),u(),d(2,"ul")(3,"li"),h(4,"0: digits"),u(),d(5,"li"),h(6,"A: letters (uppercase or lowercase) and digits"),u(),d(7,"li"),h(8,"S: only letters (uppercase or lowercase)"),u(),d(9,"li"),h(10,"U: only letters uppercase"),u(),d(11,"li"),h(12,"L: only letters lowercase"),u()(),d(13,"mat-form-field")(14,"mat-label"),h(15,'Mask: "00.-.00/0000"'),u(),A(16,"input",0),u(),d(17,"mat-form-field")(18,"mat-label"),h(19,'Mask: "UU +00 (0000)/00.00.00"'),u(),A(20,"input",0),u(),d(21,"mat-form-field")(22,"mat-label"),h(23,'Mask: "A%S:U--!L"'),u(),A(24,"input",0),u()),n&2&&(_(16),v("onemrvamask","00.-.00/0000")("formControl",r.maskedInput1),_(4),v("onemrvamask","UU +00 (0000)/00.00.00")("formControl",r.maskedInput2),_(4),v("onemrvamask","A%S:U--!L")("formControl",r.maskedInput3))},dependencies:[zc,z2,Je,Wt,rt,ht,mt,pt,an],encapsulation:2})}}return t})();var Pqe=["mbcontent"],Lqe=["*"],fae=0,m1=(()=>{class t{constructor(){this.label=C(!1),this.messageCode=C(""),this.mbcontent=ot.required("mbcontent"),this.id=C(`onemrva-mat-message-box-${fae++}`),this.dataCy=C(`onemrva-mat-message-box-${fae++}`),this.color=C(Yt.INFO),this.isError=ke(()=>this.color()===Yt.ERROR),this.isWarn=ke(()=>this.color()===Yt.WARN),this.isSuccess=ke(()=>this.color()===Yt.SUCCESS),this.isPrimary=ke(()=>this.color()===Yt.PRIMARY),this.isGrayscale=ke(()=>this.color()===Yt.GRAYSCALE||this.color()===Yt.NONE),this.isInfo=ke(()=>this.color()!==Yt.ERROR&&this.color()!==Yt.WARN&&this.color()!==Yt.NONE&&this.color()!==Yt.ACCENT&&this.color()!==Yt.GRAYSCALE&&this.color()!==Yt.PRIMARY&&this.color()!==Yt.SUCCESS)}ngAfterViewInit(){let e=this.messageCode();e!==""&&(console.warn("messageCode input has been deprecated in message-box component, please review documentation to fix this!"),this.mbcontent().nativeElement.insertAdjacentHTML("beforeend",e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-mat-message-box"]],viewQuery:function(n,r){n&1&>(r.mbcontent,Pqe,5),n&2&&tt()},hostAttrs:[1,"onemrva-mat-message-box"],hostVars:18,hostBindings:function(n,r){n&2&&(H("aria-label","message-box")("role","alert")("id",r.id())("data-cy",r.dataCy()),Y("show-icon",!0)("mat-error",r.isError())("mat-warn",r.isWarn())("mat-success",r.isSuccess())("mat-primary",r.isPrimary())("mat-neutral",r.isGrayscale())("mat-info",r.isInfo()))},inputs:{label:[1,"label"],messageCode:[1,"messageCode"],id:[1,"id"],dataCy:[1,"dataCy"],color:[1,"color"]},ngContentSelectors:Lqe,decls:3,vars:0,consts:[["mbcontent",""]],template:function(n,r){n&1&&(fe(),xe(0,"div",null,0),Z(2),we())},styles:["[_nghost-%COMP%]{display:inline-flex;align-items:flex-start;position:relative;padding:var(--spacer) var(--spacer) var(--spacer) var(--spacer);border-radius:var(--half-spacer);gap:var(--half-spacer);font:var(--mat-sys-body-small);background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}[_nghost-%COMP%] onemrva-mat-sticker[_ngcontent-%COMP%]{line-height:calc(var(--spacer) * 2.25);margin-right:var(--double-spacer)}"]})}}return t})();var p1=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=ve({})}}return t})();function Fqe(t,i){t&1&&(d(0,"onemrva-mat-sticker",1),h(1,"New"),u())}var gae=(()=>{class t extends re{constructor(){super(...arguments),this.color=C(""),this.sticker=C(!1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-message-box"]],inputs:{color:[1,"color"],sticker:[1,"sticker"]},features:[P],decls:3,vars:3,consts:[[3,"color"],["color","accent"]],template:function(n,r){n&1&&(d(0,"onemrva-mat-message-box",0),I(1,Fqe,2,0,"onemrva-mat-sticker",1),h(2),u()),n&2&&(v("color",r.color()),_(),M(r.sticker()?1:-1),_(),X(" This is an ",r.color(),` message
|
|
196
196
|
`))},dependencies:[p1,Qc,Ha,m1,Vn],encapsulation:2})}}return t})();var bae=(()=>{class t extends re{constructor(){super(...arguments),this.disabled=C(!1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-menu"]],inputs:{disabled:[1,"disabled"]},features:[P],decls:13,vars:2,consts:[["menu","matMenu"],["mat-icon-button","","aria-label","Menu",1,"onemrva-icon-button","truc",3,"matMenuTriggerFor","disabled"],["mat-menu-item",""],[1,"mr-s",2,"width","auto","height","auto"]],template:function(n,r){if(n&1&&(d(0,"button",1)(1,"mat-icon"),h(2,"more_horiz"),u()(),d(3,"mat-menu",null,0)(5,"div",2)(6,"mat-icon",3),h(7,"edit"),u(),h(8,"Edit "),u(),d(9,"div",2)(10,"mat-icon",3),h(11,"update"),u(),h(12,"Save "),u()()),n&2){let o=Qe(4);v("matMenuTriggerFor",o)("disabled",r.disabled())}},dependencies:[It,Hn,el,So,co,Ua,Et,at],encapsulation:2})}}return t})();var Bqe=(t,i)=>i.value;function $qe(t,i){if(t&1){let e=Oe();d(0,"div",1)(1,"a",4),D("click",function(){se(e);let r=S();return le(r.selectAll())}),h(2),U(3,"translate"),u(),d(4,"span",5),h(5,"\xA0\xA0|\xA0\xA0"),u(),d(6,"a",6),D("click",function(r){se(e);let o=S();return le(o.deselectAll(r))}),h(7),U(8,"translate"),u()()}if(t&2){let e=S();_(),Y("mat-disabled",e.isAllSelected()),_(),$(j(3,6,"select.select.all")),_(4),Y("mat-disabled",e.isNoneSelected()),_(),$(j(8,8,"select.deselect.all"))}}function Vqe(t,i){if(t&1&&(d(0,"mat-option"),A(1,"mat-select-search",7),U(2,"translate"),U(3,"translate"),U(4,"translate"),u()),t&2){let e=S();_(),v("ariaLabel",Vt(j(2,7,"select.search.filter")))("noEntriesFoundLabel",Vt(j(3,9,"select.search.notFound")))("placeholderLabel",Vt(j(4,11,"select.search.filter")))("formControl",e.searchFilter)}}function Uqe(t,i){if(t&1&&(rn(0),d(1,"mat-option",8),h(2),u(),on()),t&2){let e=i.$implicit;_(),v("disabled",e.disabled)("value",e.value),H("data-cy",e._getHostElement().dataset.cy),_(),X(" ",e._text==null||e._text.nativeElement==null?null:e._text.nativeElement.textContent," ")}}function Hqe(t,i){if(t&1){let e=Oe();d(0,"div",3)(1,"span",9),h(2),u(),d(3,"mat-icon",10),D("click",function(r){se(e);let o=S();return le(o.deselectAll(r))}),h(4,"close"),u()()}if(t&2){let e=S();_(2),$(e.counter)}}var zqe=0,_1=(()=>{class t extends Lo{onFocus(){this.focused=!0,this.stateChanges.next()}onBlur(){this.focused=!1,this.stateChanges.next()}constructor(){super(),this.counter=0,this._values=[],this.stateChanges=new G,this.multiple=C(!0),this.formControl=C.required(),this.role=C("select",{alias:"attr.role"}),this.label=C("",{alias:"attr.aria-label"}),this.invalid=C(!1,{alias:"attr.aria-invalid"}),this.showFilter=C(!0),this.selectionToggle=C(!0),this.dataCy=C(`onemrva-mat-multi-select-${zqe++}`,{alias:"attr.data-cy"}),this.searchFilter=new $e(""),this.matOptions=qo(mn),this.onDestroy$=new G,this._opacity=ke(()=>this.disabled?.4:1),this.focused=!1,this.translate=p($n),this.cd=p(Se),this.onChange=e=>{},this.onTouched=()=>{},this.optionSize=0,setTimeout(()=>{this.focused=!1},3e3)}writeValue(e){this.multiple()&&(this.counter=0,Array.isArray(e)&&(this.counter=e.length)),this._values=e,this.onChange(this._values)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}isAllSelected(){return this.counter===this.matOptions().length}selectAll(){this._values=this.matOptions().map(e=>e.value),this.formControl().setValue(this._values)}isNoneSelected(){return this.counter===0}deselectAll(e){this._values=[],this.formControl().setValue(this._values)}onContainerClick(e){}setDescribedByIds(e){}ngOnDestroy(){this.onDestroy$.next(""),this.onDestroy$.complete()}ngOnInit(){this.matOptions$=this.searchFilter.valueChanges.pipe(Ii(200),st(""),me(e=>(this.optionSize=this.matOptions().length,this._values!==null&&(this.counter=this._values.length),e===""?this.matOptions().filter(n=>!0):this.matOptions().filter(n=>n?._text?.nativeElement.innerHTML.toLowerCase().includes(e.toLowerCase()))))),this.formControl().valueChanges.pipe(Te(this.onDestroy$)).subscribe(e=>{this._values=e,this._values!==null&&this._values!==void 0?this.counter=this._values.length:this.counter=0})}ngAfterContentChecked(){let e=this.matOptions();e.length!==this.optionSize&&(this.optionSize=e.length,this.counter=0,this.searchFilter.updateValueAndValidity({emitEvent:!0}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-mat-multi-select"]],contentQueries:function(n,r,o){n&1&&Ri(o,r.matOptions,mn,4),n&2&&tt()},hostVars:2,hostBindings:function(n,r){n&2&&Jt("opacity",r._opacity())},inputs:{multiple:[1,"multiple"],formControl:[1,"formControl"],role:[1,"attr.role","role"],label:[1,"attr.aria-label","label"],invalid:[1,"attr.aria-invalid","invalid"],showFilter:[1,"showFilter"],selectionToggle:[1,"selectionToggle"],dataCy:[1,"attr.data-cy","dataCy"]},features:[Ce([{provide:Lo,useExisting:t,multi:!1},{provide:Ti,useExisting:Jn(()=>t),multi:!0}]),P],decls:8,vars:11,consts:[[3,"focus","blur","multiple","formControl","placeholder","disabled"],[1,"selection-choice","text-right"],[1,"option-list"],[1,"mat-select-counter","float-right","position-absolute","text-center"],["tabindex","1",3,"click"],[1,"separator"],["tabindex","2",3,"click"],[3,"formControl","ariaLabel","noEntriesFoundLabel","placeholderLabel"],[3,"disabled","value"],[1,"text"],[3,"click"]],template:function(n,r){n&1&&(d(0,"mat-select",0),D("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),I(1,$qe,9,10,"div",1),d(2,"div",2),I(3,Vqe,5,13,"mat-option"),Ie(4,Uqe,3,4,"ng-container",null,Bqe),U(6,"async"),u()(),I(7,Hqe,5,1,"div",3)),n&2&&(v("multiple",r.multiple())("formControl",r.formControl())("placeholder",r.placeholder)("disabled",r.disabled),H("data-cy",r.dataCy())("aria-label",r.label()),_(),M(r.multiple()&&r.selectionToggle()?1:-1),_(2),M(r.showFilter()?3:-1),_(),Me(j(6,9,r.matOptions$)),_(3),M(r.multiple()&&r.counter>0?7:-1))},dependencies:[Je,rt,ht,wi,rr,mn,at,ta,_t,Zn],styles:["[_nghost-%COMP%]{display:inline-block;width:100%}[_nghost-%COMP%] .mat-select-counter[_ngcontent-%COMP%]{top:var(--spacer);right:var(--triple-spacer);display:block;padding:var(--quarter-spacer) var(--half-spacer) var(--quarter-spacer) var(--spacer);background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);min-width:var(--triple-spacer);font-family:var(--brand-font);border:1px solid var(--mat-sys-primary);border-radius:var(--button-border-radius)}[_nghost-%COMP%] .mat-select-counter[_ngcontent-%COMP%] span.text[_ngcontent-%COMP%]{font-family:var(--sys-label-large-font);font-style:normal;font-weight:500;font-size:.75rem;line-height:1.25rem}[_nghost-%COMP%] .mat-select-counter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.75rem;height:.75rem;width:.75rem;line-height:1rem;padding:0 var(--quarter-spacer) 0 var(--quarter-spacer);cursor:pointer}"]})}}return t})();var h1=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=ve({imports:[_1]})}}return t})();var f1=["Arugula","Beef","Cale","Egg","Eggplant","Extra cheese","Ham","Mushroom","Onion","Parmesan","Paprika","Pepper","Pepperoni","Raisin","Sausage","Tomato"];function Gqe(t,i){if(t&1&&(d(0,"mat-option",2),h(1),u()),t&2){let e=i.$implicit;v("value",e),_(),$(e)}}var vae=(()=>{class t extends re{constructor(){super(),this.disabled=C(!1),this.readonly=C(!1),this.selectionToggle=C(!0),this.showFilter=C(!0),this.form=new $e([],Qt.required),this.filterCtrl=new $e(""),$t(()=>{this.disabled()?this.form.disable():this.form.enable(),this.readonly()&&!this.form.getRawValue()&&this.form.setValue(["Pepperoni","Eggplant"])}),this.toppingList$=this.filterCtrl.valueChanges.pipe(Ii(400),st(""),me(e=>f1.filter(n=>!e||e===""?this.form:n.toLowerCase().indexOf(e.toLowerCase())>-1)))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-multiselect"]],inputs:{disabled:[1,"disabled"],readonly:[1,"readonly"],selectionToggle:[1,"selectionToggle"],showFilter:[1,"showFilter"]},features:[P],decls:9,vars:6,consts:[[3,"readonly"],[3,"formControl","selectionToggle","showFilter"],[3,"value"]],template:function(n,r){n&1&&(d(0,"mat-form-field",0)(1,"mat-label"),h(2,"Select (multiple)"),u(),d(3,"onemrva-mat-multi-select",1),Ie(4,Gqe,2,2,"mat-option",2,ln),U(6,"async"),u(),d(7,"mat-hint"),h(8,"Hint"),u()()),n&2&&(v("readonly",r.readonly()),_(3),v("formControl",r.form)("selectionToggle",r.selectionToggle())("showFilter",r.showFilter()),_(),Me(j(6,4,r.toppingList$)))},dependencies:[Je,rt,ht,yt,wt,pt,mt,yn,wi,mn,Do,it,h1,_1,Un,Zn],encapsulation:2})}}return t})();var yae=(()=>{class t extends re{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["demo-niss-pipe"]],features:[P],decls:7,vars:6,template:function(n,r){n&1&&(xe(0,"div"),h(1),U(2,"onemrvaNiss"),we(),h(3,`
|
|
197
197
|
Error when the NISS is not exactly 11 char long:
|
|
@@ -230,9 +230,9 @@ Error: `,j(55,14,r.nissOrBce.errors),`
|
|
|
230
230
|
`],encapsulation:2,changeDetection:0})}return t})();var pSt={provide:Ti,useExisting:Jn(()=>z5),multi:!0};var z5=(()=>{class t{_ngZone=p(Ue);_elementRef=p(ae);_cdr=p(Se);_slider=p(H5);_platform=p(Gt);_listenerCleanups;get value(){return wn(this._hostElement.value,0)}set value(e){e===null&&(e=this._getDefaultValue()),e=isNaN(e)?0:e;let n=e+"";if(!this._hasSetInitialValue){this._initialValue=n;return}this._isActive||this._setValue(n)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new de;dragStart=new de;dragEnd=new de;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}_translateX;thumbPosition=In.END;get min(){return wn(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return wn(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return wn(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return ne(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=ue("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new G;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=p(At);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))]})}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let n=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=n,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let n=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl?1-n/r:n/r,c=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,m=Math.round(c/o)*o,f=this.value;if(m===f){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=m,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let n=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,r),n)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,n){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(n)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=W({type:t,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(n,r){n&1&&D("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),n&2&&H("aria-valuetext",r._valuetext())},inputs:{value:[2,"value","value",wn]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[Ce([pSt,{provide:CEe,useExisting:t}])]})}return t})();var bM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=ve({imports:[yo,Pt]})}return t})();var yb=qn(wEe(),1),REe=qn(xEe(),1),AEe=qn(BI(),1),NEe=qn(kEe(),1),PEe=qn(oE(),1),LEe=qn(L3(),1),W5=qn(z3(),1),FEe=qn(HI(),1);var Za=t=>({display:t});function SSt(t,i){if(t&1&&(d(0,"mat-option",6),h(1),u()),t&2){let e=i.$implicit;v("value",e),_(),X(" ",e," ")}}function TSt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}function wSt(t,i){if(t&1&&(d(0,"mat-hint",3),h(1),u()),t&2){let e=S();_(),$(e.description)}}function xSt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}function DSt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}var K5="[_nghost-%COMP%]{display:flex;flex-direction:row}mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto}";function ISt(t,i){if(t&1&&(d(0,"mat-hint",6),h(1),u()),t&2){let e=S();_(),$(e.description)}}function MSt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}function kSt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}function OSt(t,i){if(t&1&&(d(0,"mat-hint",3),h(1),u()),t&2){let e=S();_(),$(e.description)}}function RSt(t,i){if(t&1&&(d(0,"div"),A(1,"jsonforms-outlet",1),u()),t&2){let e=S();_(),v("renderProps",e._item)}}var ASt=t=>({show:t});function NSt(t,i){if(t&1&&(d(0,"mat-list-item"),h(1),u()),t&2){let e=S();_(),$(e.translations.noDataMessage)}}function PSt(t,i){if(t&1){let e=Oe();d(0,"button",10),D("click",function(){se(e);let r=S().index,o=S();return le(o.onDeleteClick(r))}),d(1,"mat-icon",11),h(2,"delete"),u()()}if(t&2){let e=S().index,n=S();v("ngClass",cn(1,ASt,n.highlightedIdx==e))}}function LSt(t,i){if(t&1){let e=Oe();d(0,"mat-list-item",7),D("click",function(){let r=se(e),o=r.$implicit,a=r.index,s=S();return le(s.onSelect(o,a))})("mouseover",function(){let r=se(e).index,o=S();return le(o.onListItemHover(r))})("mouseout",function(){se(e);let r=S();return le(r.onListItemHover(void 0))}),d(1,"a",8),h(2),u(),ge(3,PSt,3,3,"button",9),u()}if(t&2){let e=i.$implicit,n=S();Y("selected",e===n.selectedItem),_(2),$(e.label||"No label set"),_(),v("ngIf",n.isEnabled())}}function FSt(t,i){if(t&1){let e=Oe();d(0,"button",12),D("click",function(){se(e);let r=S();return le(r.onAddClick())}),d(1,"mat-icon"),h(2,"add"),u()()}if(t&2){let e=S();_(),H("aria-label",e.translations.addAriaLabel)}}function BSt(t,i){if(t&1&&A(0,"jsonforms-detail",13),t&2){let e=S();v("item",e.selectedItem)}}var BEe=t=>({"sort-column":t});function $St(t,i){if(t&1){let e=Oe();d(0,"th",8)(1,"button",9),D("click",function(){se(e);let r=S();return le(r.add())}),d(2,"mat-icon"),h(3,"add"),u()()()}if(t&2){let e=S();v("ngClass",cn(3,BEe,e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons)),_(),v("disabled",!e.isEnabled())("matTooltip",e.translations.addTooltip)}}function VSt(t,i){if(t&1){let e=Oe();d(0,"button",14),D("click",function(){se(e);let r=S().index,o=S();return le(o.up(r))}),d(1,"mat-icon"),h(2,"arrow_upward"),u()()}if(t&2){let e=S().first,n=S();v("disabled",e)("matTooltip",n.translations.upAriaLabel)}}function USt(t,i){if(t&1){let e=Oe();d(0,"button",15),D("click",function(){se(e);let r=S().index,o=S();return le(o.down(r))}),d(1,"mat-icon"),h(2,"arrow_downward"),u()()}if(t&2){let e=S().last,n=S();v("disabled",e)("matTooltip",n.translations.downAriaLabel)}}function HSt(t,i){if(t&1){let e=Oe();d(0,"td",10),ge(1,VSt,3,2,"button",11)(2,USt,3,2,"button",12),d(3,"button",13),D("click",function(){let r=se(e).index,o=S();return le(o.remove(r))}),d(4,"mat-icon"),h(5,"delete"),u()()()}if(t&2){let e=S();v("ngClass",cn(5,BEe,e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons)),_(),v("ngIf",e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons),_(),v("ngIf",e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons),_(),v("disabled",!e.isEnabled())("matTooltip",e.translations.removeTooltip)}}function zSt(t,i){if(t&1&&(d(0,"th",19),h(1),u()),t&2){let e=S().$implicit;_(),$(e.header)}}function GSt(t,i){if(t&1&&(d(0,"td",20),A(1,"jsonforms-outlet",21),U(2,"getProps"),u()),t&2){let e=i.index,n=S().$implicit;_(),v("renderProps",pp(2,1,e,n.props))}}function qSt(t,i){if(t&1&&(rn(0,16),ge(1,zSt,2,1,"th",17)(2,GSt,3,4,"td",18),on()),t&2){let e=i.$implicit;v("matColumnDef",Vt(e.property))}}function jSt(t,i){t&1&&A(0,"tr",22)}function YSt(t,i){t&1&&A(0,"tr",23)}function WSt(t,i){if(t&1&&(d(0,"div"),A(1,"jsonforms-outlet",4),u()),t&2){let e=i.$implicit,n=S(2);_(),v("uischema",e)("path",n.path)("schema",n.schema)}}function KSt(t,i){if(t&1&&(d(0,"mat-tab",2),ge(1,WSt,2,3,"div",3),u()),t&2){let e=i.$implicit,n=i.index,r=S();v("label",r.categoryLabels[n]),_(),v("ngForOf",e.elements)}}function QSt(t,i){if(t&1&&(d(0,"div"),A(1,"jsonforms-outlet",3),u()),t&2){let e=i.$implicit;_(),v("renderProps",e)}}function ZSt(t,i){if(t&1&&(d(0,"div"),A(1,"jsonforms-outlet",2),u()),t&2){let e=i.$implicit;_(),v("renderProps",e)}}function XSt(t,i){if(t&1&&(d(0,"div"),A(1,"jsonforms-outlet",2),u()),t&2){let e=i.$implicit;_(),v("renderProps",e)}}var JSt=()=>[];function eTt(t,i){if(t&1&&(d(0,"mat-icon",7),h(1," error_outline "),u()),t&2){let e=S();v("matBadge",Vt(e.error.split(`
|
|
231
231
|
`).length))("matTooltip",Vt(e.error))}}function tTt(t,i){if(t&1&&(d(0,"p"),h(1),u()),t&2){let e=S();_(),$(e.translations.noDataMessage)}}function nTt(t,i){if(t&1){let e=Oe();d(0,"button",13),D("click",function(){se(e);let r=S(2).index,o=S();return le(o.up(r))}),d(1,"mat-icon"),h(2,"arrow_upward"),u()()}if(t&2){let e=S(2).first,n=S();v("matTooltip",Vt(n.translations.up))("disabled",e),H("aria-label",n.translations.upAriaLabel)}}function iTt(t,i){if(t&1){let e=Oe();d(0,"button",14),D("click",function(){se(e);let r=S(2).index,o=S();return le(o.down(r))}),d(1,"mat-icon"),h(2,"arrow_downward"),u()()}if(t&2){let e=S(2).last,n=S();v("matTooltip",Vt(n.translations.down))("disabled",e),H("aria-label",n.translations.downAriaLabel)}}function rTt(t,i){if(t&1){let e=Oe();d(0,"mat-card-actions"),ge(1,nTt,3,4,"button",10)(2,iTt,3,4,"button",11),d(3,"button",12),D("click",function(){se(e);let r=S().index,o=S();return le(o.remove(r))}),d(4,"mat-icon"),h(5,"delete"),u()()()}if(t&2){let e=S(2);_(),v("ngIf",e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons),_(),v("ngIf",e.uischema==null||e.uischema.options==null?null:e.uischema.options.showSortButtons),_(),v("matTooltip",Vt(e.translations.removeTooltip)),H("aria-label",e.translations.removeAriaLabel)}}function oTt(t,i){if(t&1&&(d(0,"div")(1,"mat-card",8)(2,"mat-card-content"),A(3,"jsonforms-outlet",9),u(),ge(4,rTt,6,5,"mat-card-actions",5),u()()),t&2){let e=i.index,n=S();_(3),v("renderProps",n.getProps(e)),_(),v("ngIf",n.isEnabled())}}var $Ee=(()=>{class t extends Yi{options;filteredOptions;shouldFilter;focused=!1;constructor(e){super(e)}getEventValue=e=>e.target.value;ngOnInit(){super.ngOnInit(),this.shouldFilter=!1,this.filteredOptions=this.form.valueChanges.pipe(st(""),me(e=>this.filter(e)))}updateFilter(e){e.keyCode===13?this.shouldFilter=!1:this.shouldFilter=!0}onSelect(e){let n=oM(this.uischema,this.path);this.shouldFilter=!1,this.jsonFormsService.updateCore(po.update(n,()=>e.option.value)),this.triggerValidation()}filter(e){return(this.options||this.scopedSchema.enum||[]).filter(n=>!this.shouldFilter||!e||n.toLowerCase().indexOf(e.toLowerCase())===0)}getOwnProps(){return pe(R({},super.getOwnProps()),{options:this.options})}static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["AutocompleteControlRenderer"]],inputs:{options:"options"},features:[P],decls:11,vars:12,consts:[["auto","matAutocomplete"],[3,"ngStyle"],["matInput","","type","text",3,"change","keydown","focus","focusout","id","formControl","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"]],template:function(n,r){if(n&1&&(d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),D("change",function(a){return r.onChange(a)})("keydown",function(a){return r.updateFilter(a)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),d(4,"mat-autocomplete",3,0),D("optionSelected",function(a){return r.onSelect(a)}),ge(6,SSt,2,2,"mat-option",4),U(7,"async"),u(),ge(8,TSt,2,1,"mat-hint",5),d(9,"mat-error"),h(10),u()()),n&2){let o=Qe(5);v("ngStyle",cn(10,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("id",r.id)("formControl",r.form)("matAutocomplete",o),_(3),v("ngForOf",j(7,8,r.filteredOptions)),_(2),v("ngIf",r.shouldShowUnfocusedDescription()||r.focused),_(2),$(r.error)}},dependencies:[dr,Fl,Pa,fr,Zn,Je,Wt,rt,ht,it,pt,mt,yn,Pn,wt,an,Hf,am,mn,Jl],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}mat-form-field[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:0})}return t})(),aTt=ai(2,sM),VEe=(()=>{class t extends Yi{changeDetectionRef;constructor(e,n){super(e),this.changeDetectionRef=n}isChecked=()=>this.data||!1;getEventValue=e=>e.checked;mapAdditionalProps(){this.changeDetectionRef.destroyed||this.changeDetectionRef.markForCheck()}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["BooleanControlRenderer"]],features:[P],decls:6,vars:9,consts:[[1,"boolean-control",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-checkbox",1),D("change",function(a){return r.onChange(a)}),h(2),u(),ge(3,wSt,2,1,"mat-hint",2),d(4,"mat-error",3),h(5),u()()),n&2&&(v("ngStyle",cn(7,Za,r.hidden?"none":"")),_(),v("checked",r.isChecked())("disabled",!r.isEnabled())("id",r.id),_(),X(" ",r.label," "),_(),v("ngIf",r.shouldShowUnfocusedDescription()),_(2),$(r.error))},dependencies:[dr,Pa,fr,Xc,Ca,it,yn,Pn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}.boolean-control[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;height:100%}"],changeDetection:0})}return t})(),sTt=ai(2,GE),lTt=(()=>{class t{displayFormat="M/D/YYYY";setDisplayFormat(e){this.displayFormat=e}get display(){return{monthYearLabel:"YYYY-MM",dateA11yLabel:"YYYY-MM-DD",monthYearA11yLabel:"YYYY-MM",dateInput:this.displayFormat}}get parse(){return{dateInput:this.displayFormat}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Q({token:t,factory:t.\u0275fac})}return t})();yb.default.extend(REe.default);var cTt=(()=>{class t extends zy{saveFormat=l5;setSaveFormat(e){this.saveFormat=e}parseSaveFormat(e){return this.parse(e,this.saveFormat)}parse(e,n){if(!e)return null;let r=(0,yb.default)(e,n);return r.isValid()?r.toDate():null}toSaveFormat(e){if(!e)return;let n=(0,yb.default)(e);if(n.isValid())return n.format(this.saveFormat)}format(e,n){return(0,yb.default)(e).format(n)}deserialize(e){if(!e)return null;let n=(0,yb.default)(e);return n.isValid()?n.toDate():null}static \u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})();static \u0275prov=Q({token:t,factory:t.\u0275fac})}return t})(),UEe=(()=>{class t extends Yi{dateFormat;dateAdapter;focused=!1;views=[];startView="";panelClass="";constructor(e,n,r){super(e),this.dateFormat=n,this.dateAdapter=r}getEventValue=e=>{let n=e.value?e.value:e;return this.dateAdapter.toSaveFormat(n)};mapToProps(e){let n=super.mapToProps(e),r=this.uischema?.options?.dateSaveFormat?this.uischema.options.dateSaveFormat:l5;this.views=this.uischema?.options?.views?this.uischema.options.views:["year","month","day"],this.setViewProperties();let o=this.uischema?.options?.dateFormat;o&&this.dateFormat.setDisplayFormat(o),this.dateAdapter.setSaveFormat(r),this.jsonFormsService.getLocale()&&this.dateAdapter.setLocale(this.jsonFormsService.getLocale());let a=this.dateAdapter.parseSaveFormat(n.data);return pe(R({},n),{data:a})}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")}static \u0275fac=function(n){return new(n||t)(et(Hi),et(br),et(Rn))};static \u0275cmp=T({type:t,selectors:[["DateControlRenderer"]],features:[Ce([{provide:Rn,useClass:cTt},{provide:br,useClass:lTt}]),P],decls:10,vars:12,consts:[["datepicker",""],[1,"date-control-renderer",3,"ngStyle"],["matInput","",3,"dateChange","focus","focusout","id","formControl","matDatepicker"],["matSuffix","",3,"for"],[3,"monthSelected","yearSelected","startView","panelClass"],[4,"ngIf"]],template:function(n,r){if(n&1){let o=Oe();d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),D("dateChange",function(s){return r.onChange(s)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),A(4,"mat-datepicker-toggle",3),d(5,"mat-datepicker",4,0),D("monthSelected",function(s){se(o);let l=Qe(6);return le(r.monthSelected(s,l))})("yearSelected",function(s){se(o);let l=Qe(6);return le(r.yearSelected(s,l))}),u(),ge(7,xSt,2,1,"mat-hint",5),d(8,"mat-error"),h(9),u()()}if(n&2){let o=Qe(6);v("ngStyle",cn(10,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("id",r.id)("formControl",r.form)("matDatepicker",o),_(),v("for",o),_(),v("startView",r.startView)("panelClass",r.panelClass),_(2),v("ngIf",r.shouldShowUnfocusedDescription()||r.focused),_(2),$(r.error)}},dependencies:[dr,Pa,fr,Je,Wt,rt,ht,it,pt,mt,yn,Pn,ir,wt,an,ll,sl,Ga,Ta],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}
|
|
232
232
|
`],encapsulation:2,changeDetection:0})}return t})(),dTt=ai(2,lM),HEe=(()=>{class t extends Yi{MAXIMUM_FRACTIONAL_DIGITS=20;oldValue;min;max;multipleOf;locale;numberFormat;decimalSeparator;focused=!1;constructor(e){super(e)}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=R5(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,AEe.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=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["NumberControlRenderer"]],features:[P],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),D("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),ge(4,DSt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(v("ngStyle",cn(10,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("value",r.getValue())("id",r.id)("formControl",r.form)("min",r.min)("max",r.max)("step",r.multipleOf),_(),v("ngIf",r.shouldShowUnfocusedDescription()||r.focused),_(2),$(r.error))},dependencies:[dr,Pa,fr,Je,Wt,rt,ht,it,pt,mt,yn,Pn,wt,an],styles:[K5],changeDetection:0})}return t})(),uTt=ai(2,M_(R5,Z0e)),zEe=(()=>{class t extends Yi{changeDetectorRef;min;max;multipleOf;focused=!1;constructor(e,n){super(e),this.changeDetectorRef=n}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=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["RangeControlRenderer"]],features:[P],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),D("valueChange",function(a){return r.onChange(a)}),u()(),ge(6,ISt,2,1,"mat-hint",5),d(7,"mat-error",6),h(8),u()()),n&2&&(v("ngStyle",cn(10,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("disabled",!r.isEnabled())("max",r.max)("min",r.min)("step",r.multipleOf)("discrete",!0)("id",r.id),_(3),v("ngIf",r.shouldShowUnfocusedDescription()),_(2),$(r.error))},dependencies:[dr,Pa,fr,bM,TEe,z5,it,yn,Pn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}.range-control[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column}"],changeDetection:0})}return t})(),mTt=ai(4,iEe),GEe=(()=>{class t extends Yi{focused=!1;constructor(e){super(e)}getEventValue=e=>e.target.value||void 0;static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["TextAreaRenderer"]],features:[P],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),D("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),ge(4,MSt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(v("ngStyle",cn(6,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("id",r.id)("formControl",r.form),_(),v("ngIf",r.shouldShowUnfocusedDescription()||r.focused),_(2),$(r.error))},dependencies:[dr,Pa,fr,Je,Wt,rt,ht,it,pt,mt,yn,Pn,wt,an],styles:[K5],changeDetection:0})}return t})(),pTt=ai(2,J0e),qEe=(()=>{class t extends Yi{focused=!1;constructor(e){super(e)}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=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["TextControlRenderer"]],features:[P],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),D("input",function(a){return r.onChange(a)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),ge(4,kSt,2,1,"mat-hint",2),d(5,"mat-error"),h(6),u()()),n&2&&(v("ngStyle",cn(7,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("type",r.getType())("id",r.id)("formControl",r.form),_(),v("ngIf",r.shouldShowUnfocusedDescription()||r.focused),_(2),$(r.error))},dependencies:[dr,Pa,fr,Je,Wt,rt,ht,it,pt,mt,yn,Pn,wt,an],styles:[K5],changeDetection:0})}return t})(),_Tt=ai(1,X0e),jEe=(()=>{class t extends Yi{changeDetectorRef;constructor(e,n){super(e),this.changeDetectorRef=n}isChecked=()=>this.data||!1;getEventValue=e=>e.checked;mapAdditionalProps(){this.changeDetectorRef.markForCheck()}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["ToggleControlRenderer"]],features:[P],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),D("change",function(a){return r.onChange(a)}),h(2),u(),ge(3,OSt,2,1,"mat-hint",2),d(4,"mat-error",3),h(5),u()()),n&2&&(v("ngStyle",cn(7,Za,r.hidden?"none":"")),_(),v("checked",r.isChecked())("disabled",!r.isEnabled())("id",r.id),_(),X(" ",r.label," "),_(),v("ngIf",r.shouldShowUnfocusedDescription()),_(2),$(r.error))},dependencies:[dr,Pa,fr,Ig,B0,it,yn,Pn],encapsulation:2,changeDetection:0})}return t})(),hTt=ai(3,Er(GE,dd("toggle",!0))),fTt=(()=>{class t extends cu{jsonFormsService;label;visible;constructor(e){super(),this.jsonFormsService=e}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=_M(e,this.getOwnProps());this.visible=n.visible,this.label=n.text}}))}static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["LabelRenderer"]],features:[P],decls:2,vars:1,consts:[[1,"mat-headline-6"]],template:function(n,r){n&1&&(xe(0,"label",0),h(1),we()),n&2&&(_(),X(" ",r.label," "))},styles:["[_nghost-%COMP%]{flex:1 1 auto}"]})}return t})(),gTt=ai(4,ji("Label")),YEe=(()=>{class t{_item;_schema;initialized=!1;set item(e){e&&(this._item=e,this.initialized=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["jsonforms-detail"]],inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"renderProps"]],template:function(n,r){n&1&&ge(0,RSt,2,1,"div",0),n&2&&v("ngIf",r.initialized)},dependencies:[dr,Pa,Ma,ud],encapsulation:2})}return t})(),bTt=["#","properties","items"],vTt=t=>D_(t.split("/").filter(i=>!(0,NEe.default)(bTt,e=>e===i)).join(".")),WEe=(()=>{class t extends qE{changeDetectorRef;masterItems;selectedItem;selectedItemIdx;addItem;removeItems;highlightedIdx;translations;constructor(e,n){super(e),this.changeDetectorRef=n}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}=pM(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=cM(e.uischemas,o,`${s.scope}/items`,e.path,"VerticalLayout",s,e.rootSchema);this.isEnabled()||VE(l),this.translations=e.translations;let c=(n||[]).map((b,y)=>{let g=s.options?.labelRef&&vTt(s.options.labelRef);return{label:b!==void 0&&typeof b!="object"?b.toString():(0,PEe.default)(b,g??F0e(o)),data:b,path:`${r}.${y}`,schema:o,uischema:l}});this.masterItems=c;let m=-1,f;this.masterItems.length===0?(this.selectedItem=void 0,this.selectedItemIdx=-1):this.selectedItemIdx>=this.masterItems.length?(m=this.masterItems.length-1,f=this.masterItems[m]):this.selectedItemIdx!==-1&&this.selectedItemIdx<this.masterItems.length&&(m=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=m):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,dM(this.scopedSchema,this.rootSchema))()}onDeleteClick(e){this.removeItems(this.propsPath,[e])()}mapToProps(e){let n=mM(e,this.getOwnProps()),r=e.jsonforms.i18n?.translate??ld.translate,o=zE(r,HE,n.i18nKeyPrefix,n.label);return pe(R({},n),{translations:o})}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["jsonforms-list-with-detail-master"]],features:[P],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"),ge(3,NSt,2,1,"mat-list-item",2)(4,LSt,4,4,"mat-list-item",3),u(),ge(5,FSt,3,1,"button",4),u(),d(6,"mat-sidenav-content",5),ge(7,BSt,1,1,"jsonforms-detail",6),u()()),n&2&&(v("ngStyle",cn(6,Za,r.hidden?"none":"")),_(3),v("ngIf",r.masterItems.length===0),_(),v("ngForOf",r.masterItems)("ngForTrackBy",r.trackElement),_(),v("ngIf",r.isEnabled()),_(2),v("ngIf",r.selectedItem))},dependencies:[dr,Nr,Fl,Pa,fr,gm,p3,eae,r1,kg,Ese,I1,It,Hn,Lf,Et,at,YEe],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%}"],changeDetection:0})}return t})(),yTt=ai(4,ji("ListWithDetail")),KEe=(()=>{class t extends hM{detailUiSchema;constructor(e){super(e)}mapAdditionalProps(e){this.detailUiSchema=cM(e.uischemas,e.schema,e.uischema.scope,e.path,()=>{let n=(0,FEe.default)(e.schema);return delete n.oneOf,delete n.anyOf,delete n.allOf,iM.uiSchema(n,"Group",void 0,this.rootSchema)},e.uischema,e.rootSchema),(0,LEe.default)(e.path)?this.detailUiSchema.type="VerticalLayout":this.detailUiSchema.label=(0,W5.default)(e.path),this.isEnabled()||VE(this.detailUiSchema)}static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["ObjectRenderer"]],features:[P],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),A(1,"jsonforms-outlet",1),u()),n&2&&(_(),v("uischema",r.detailUiSchema)("schema",r.scopedSchema)("path",r.propsPath))},dependencies:[Ma,ud,Jc,dm],styles:[".object-layout[_ngcontent-%COMP%]{padding:16px}"],changeDetection:0})}return t})(),ETt=ai(2,Q0e),OEe=t=>({type:"Control",scope:t,label:!1}),CTt=(()=>{class t{transform(e,n){let r=s5.compose(n.path,`${e}`);return{schema:n.schema,uischema:n.uischema,path:r}}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=cr({name:"getProps",type:t,pure:!0})}return t})(),QEe=(()=>{class t extends qE{detailUiSchema;displayedColumns;items;columnsToIgnore=["array","object"];addItem;moveItemUp;moveItemDown;removeItems;translations={};constructor(e){super(e)}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,dM(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}=pM(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=t5(r),a=OEe(`#/properties/${o}`);return this.isEnabled()||VE(a),{property:r,header:(0,W5.default)(r),props:{schema:e,uischema:a,path:n}}}):[{property:"DUMMY",header:this.label,props:{schema:e,uischema:OEe("#"),path:n}}];getValidColumnProps=e=>e.type==="object"?Object.keys(e.properties).filter(n=>{let r=au(e.properties[n]);return r.length>1?!1:this.columnsToIgnore.indexOf(r[0])===-1}):[""];static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["TableRenderer"]],features:[P],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),rn(2,2),d(3,"tr"),ge(4,$St,4,5,"th",3),u(),d(5,"tr"),ge(6,HSt,6,7,"td",4),u(),A(7,"tr"),on(),ge(8,qSt,3,2,"ng-container",5)(9,jSt,1,0,"tr",6)(10,YSt,1,0,"tr",7),u()()),n&2&&(_(),v("dataSource",r.data)("trackBy",r.trackElement),_(7),v("ngForOf",r.items),_(),v("matHeaderRowDef",r.displayedColumns),_(),v("matRowDefColumns",r.displayedColumns))},dependencies:[dr,Nr,Fl,Pa,Ma,ud,i_,rl,Xf,ng,Jf,Zf,ig,eg,tg,rg,og,It,pn,Hn,Et,at,Br,Ai,CTt],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}"]})}return t})(),STt=ai(3,M_(eEe,nEe)),ZEe=(()=>{class t extends cu{jsonFormsService;hidden;visibleCategories;categoryLabels;constructor(e){super(),this.jsonFormsService=e}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=$5(e,this.getOwnProps());this.hidden=!n.visible,this.visibleCategories=this.uischema.elements.filter(r=>UE(r,n.data,void 0,bb(e),cc(e))),this.categoryLabels=this.visibleCategories.map(r=>M5(r,e.jsonforms.i18n?.translate??ld.translate))}}))}static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["jsonforms-categorization-layout"]],features:[P],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),ge(1,KSt,2,2,"mat-tab",1),u()),n&2&&(v("ngStyle",cn(2,Za,r.hidden?"none":"")),_(),v("ngForOf",r.visibleCategories))},dependencies:[dr,Fl,fr,Ma,ud,Yc,Zp,Pf],encapsulation:2})}return t})(),TTt=ai(2,Er(ji("Categorization"),oEe)),Q5=(()=>{class t extends cu{jsonFormsService;changeDetectionRef;hidden;label;constructor(e,n){super(),this.jsonFormsService=e,this.changeDetectionRef=n}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=$5(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=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["ng-component"]],features:[P],decls:0,vars:0,template:function(n,r){},encapsulation:2})}return t})(),Z5=(()=>{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=cr({name:"layoutChildrenRenderProps",type:t,pure:!0})}return t})(),XEe=(()=>{class t extends Q5{constructor(e,n){super(e,n)}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["GroupLayoutRenderer"]],features:[P],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(),ge(3,QSt,2,1,"div",2),U(4,"layoutChildrenRenderProps"),u()),n&2&&(v("ngStyle",cn(8,Za,r.hidden?"none":"")),_(2),$(r.label),_(),v("ngForOf",Go(4,4,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement))},dependencies:[dr,Fl,fr,Ma,ud,Z5,Jc,dm,ND],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}"],changeDetection:0})}return t})(),wTt=ai(1,ji("Group")),JEe=(()=>{class t extends Q5{constructor(e,n){super(e,n)}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["HorizontalLayoutRenderer"]],features:[P],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),ge(1,ZSt,2,1,"div",1),U(2,"layoutChildrenRenderProps"),u()),n&2&&(v("ngStyle",cn(7,Za,r.hidden?"none":"")),_(),v("ngForOf",Go(2,3,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement))},dependencies:[dr,Fl,fr,Ma,ud,Z5],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}"],changeDetection:0})}return t})(),xTt=ai(1,ji("HorizontalLayout")),eCe=(()=>{class t extends Q5{constructor(e,n){super(e,n)}static \u0275fac=function(n){return new(n||t)(et(Hi),et(Se))};static \u0275cmp=T({type:t,selectors:[["VerticalLayoutRenderer"]],features:[P],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),ge(1,XSt,2,1,"div",1),U(2,"layoutChildrenRenderProps"),u()),n&2&&(v("ngStyle",cn(7,Za,r.hidden?"none":"")),_(),v("ngForOf",Go(2,3,r.uischema,r.schema,r.path))("ngForTrackBy",r.trackElement))},dependencies:[dr,Fl,fr,Ma,ud,Z5],styles:[".vertical-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.vertical-layout[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:0})}return t})(),DTt=ai(1,ji("VerticalLayout")),tCe=(()=>{class t extends jE{noData;translations={};addItem;moveItemUp;moveItemDown;removeItems;uischemas;constructor(e){super(e)}mapToProps(e){let n=_Ee(e,this.getOwnProps()),r=e.jsonforms.i18n?.translate??ld.translate,o=zE(r,HE,n.i18nKeyPrefix,n.label);return pe(R({},n),{translations:o})}remove(e){this.removeItems(this.propsPath,[e])()}add(){this.addItem(this.propsPath,dM(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}=pM(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=cM(this.uischemas,this.scopedSchema,this.uischema.scope,this.propsPath,void 0,this.uischema,this.rootSchema);return this.isEnabled()?A0e(n):VE(n),{schema:this.scopedSchema,path:s5.compose(this.propsPath,`${e}`),uischema:n}}trackByFn(e){return e}static \u0275fac=function(n){return new(n||t)(et(Hi))};static \u0275cmp=T({type:t,selectors:[["app-array-layout-renderer"]],features:[P],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(),A(4,"span"),ge(5,eTt,2,4,"mat-icon",3),A(6,"span"),d(7,"button",4),D("click",function(){return r.add()}),d(8,"mat-icon"),h(9,"add"),u()()(),ge(10,tTt,2,1,"p",5)(11,oTt,5,2,"div",6),u()),n&2&&(v("ngStyle",cn(10,Za,r.hidden?"none":"")),_(3),$(r.label),_(2),v("ngIf",r.error==null?null:r.error.length),_(2),v("matTooltip",Vt(r.translations.addTooltip))("disabled",!r.isEnabled()),H("aria-label",r.translations.addAriaLabel),_(3),v("ngIf",r.noData),_(),v("ngForOf",ei(12,JSt).constructor(r.data))("ngForTrackBy",r.trackByFn))},dependencies:[dr,Fl,Pa,fr,Ma,ud,Jc,dm,rre,ag,It,pn,Et,at,U5,gM,Br,Ai],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}"],changeDetection:0})}return t})(),ITt=ai(4,tEe),hl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=ve({imports:[dr,Ma,it,Xc,wt,bM,Ig,Gy,ll,Yc,gm,kg,Je,Jc,wi,It,Et,Hf,i_,Js,Br,U5,VEe,GEe,qEe,HEe,zEe,UEe,jEe,eCe,JEe,ZEe,XEe,WEe,YEe,KEe,$Ee,QEe,tCe,dr,Ma,it,Xc,wt,bM,Ig,Gy,ll,Yc,gm,kg,Je,Jc,wi,It,Et,Hf]})}return t})(),nCe=[{tester:sTt,renderer:VEe},{tester:_Tt,renderer:qEe},{tester:pTt,renderer:GEe},{tester:uTt,renderer:HEe},{tester:mTt,renderer:zEe},{tester:dTt,renderer:UEe},{tester:hTt,renderer:jEe},{tester:aTt,renderer:$Ee},{tester:ETt,renderer:KEe},{tester:DTt,renderer:eCe},{tester:wTt,renderer:XEe},{tester:xTt,renderer:JEe},{tester:TTt,renderer:ZEe},{tester:gTt,renderer:fTt},{tester:ITt,renderer:tCe},{tester:yTt,renderer:WEe},{tester:STt,renderer:QEe}];var iCe={type:"VerticalLayout",elements:[{type:"Control",scope:"#/properties/exampleRadioEnum",options:{format:"radio"}},{type:"Control",label:!1,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 rCe={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 MTt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=S(2);_(),X(" ",e.error)}}function kTt(t,i){if(t&1){let e=Oe();d(0,"mat-checkbox",0),D("change",function(r){se(e);let o=S();return le(o.onCheckboxChange(r.checked))}),h(1),U(2,"translate"),u(),I(3,MTt,2,1,"mat-error")}if(t&2){let e=S();v("color",e.color())("checked",!!e.data)("indeterminate",e.indeterminate())("disabled",!e.enabled),_(),$(j(2,6,e.uischema.i18n+"")),_(2),M(e.error?3:-1)}}var oCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.color=C(""),this.indeterminate=C(!1),this.getEventValue=e=>e}onCheckboxChange(e){this.onChange(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-checkbox"]],inputs:{color:[1,"color"],indeterminate:[1,"indeterminate"]},features:[P],decls:1,vars:1,consts:[[3,"change","color","checked","indeterminate","disabled"]],template:function(n,r){n&1&&I(0,kTt,4,8),n&2&&M(r.hidden?-1:0)},dependencies:[Xc,Ca,hl,Pn,_t],encapsulation:2})}}return t})(),aCe=ai(3,GE);var OTt=new V("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:()=>({useUtc:!1,defaultOutputCalendar:"gregory"})});function RTt(t,i){let e=Array(t);for(let n=0;n<t;n++)e[n]=i(n);return e}var ATt=(()=>{class t extends Rn{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();let e=p(Gp,{optional:!0}),n=p(OTt,{optional:!0});this._useUTC=!!n?.useUtc,this._firstDayOfWeek=n?.firstDayOfWeek,this._defaultOutputCalendar=n?.defaultOutputCalendar||"gregory",this.setLocale(e||Ot.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 vs.months(e,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return RTt(31,n=>e.format(Ot.utc(2017,1,n+1).toJSDate()))}getDayOfWeekNames(e){let n=vs.weekdays(e,{locale:this.locale});return n.unshift(n.pop()),n}getYearName(e){return e.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek??vs.getStartOfWeek({locale:this.locale})}getNumDaysInMonth(e){return e.daysInMonth}clone(e){return Ot.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?Ot.utc(e,n+1,r,o):Ot.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?Ot.utc(e):Ot.local(e)}parse(e,n){let r=this._getOptions();if(typeof e=="string"&&e.length>0){let o=Ot.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=Ot.fromFormat(e,s,r);if(this.isValid(l))return l}return this.invalid()}else{if(typeof e=="number")return Ot.fromMillis(e,r);if(e instanceof Date)return Ot.fromJSDate(e,r);if(e instanceof Ot)return Ot.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=Ot.fromJSDate(e,n)),typeof e=="string"){if(!e)return null;r=Ot.fromISO(e,n)}return r&&this.isValid(r)?r:super.deserialize(e)}isDateInstance(e){return e instanceof Ot}isValid(e){return e.isValid}invalid(){return Ot.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=Q({token:t,factory:t.\u0275fac})}return t})(),NTt={parse:{dateInput:"D",timeInput:"t"},display:{dateInput:"D",timeInput:"t",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy",timeOptionLabel:"t"}};function vM(t=NTt){return[{provide:Rn,useClass:ATt},{provide:br,useValue:t}]}var PTt=t=>({display:t});function LTt(t,i){if(t&1&&(d(0,"mat-hint"),h(1),u()),t&2){let e=S();_(),$(e.description)}}function FTt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=S();_(),$(e.error)}}var sCe="yyyy-MM-dd",lCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.focused=!1,this.startView="month",this.panelClass="",this.views=["year","month","day"],this.OnemrvaMatDatepickerHeaderComponent=pm,this.maxDate=null,this.minDate=null,this.dateAdapter=p(Rn),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=this.uischema?.options?.dateSaveFormat?this.uischema.options.dateSaveFormat:sCe;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)}catch(s){console.warn("Failed to parse date:",n.data,s)}return pe(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||sCe}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-date-picker-renderer"]],features:[Ce([vM()]),P],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=Oe();d(0,"mat-form-field",1)(1,"mat-label"),h(2),u(),d(3,"input",2),D("dateChange",function(s){return r.onChange(s)})("focus",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),u(),A(4,"mat-datepicker-toggle",3),d(5,"mat-datepicker",4,0),D("yearSelected",function(s){se(o);let l=Qe(6);return le(r.yearSelected(s,l))})("monthSelected",function(s){se(o);let l=Qe(6);return le(r.monthSelected(s,l))}),u(),I(8,LTt,2,1,"mat-hint"),I(9,FTt,2,1,"mat-error"),u()}if(n&2){let o=Qe(7);v("ngStyle",cn(13,PTt,r.hidden?"none":"")),_(2),$(r.label),_(),v("id",r.id)("formControl",r.form)("matDatepicker",o)("max",r.maxDate)("min",r.minDate),_(),v("for",o),_(),v("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent)("startView",r.startView)("panelClass",r.panelClass),_(3),M(r.shouldShowUnfocusedDescription()||r.focused?8:-1),_(),M(r.error?9:-1)}},dependencies:[pt,Ga,hl,fr,mt,yn,Pn,ir,an,sl,Ta,Wt,rt,ht],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}
|
|
233
|
-
`],encapsulation:2,changeDetection:0})}}return t})(),cCe=ai(3,lM);function BTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.required")," "))}function $Tt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.iban.length")," "))}function VTt(t,i){t&1&&(d(0,"mat-error"),h(1," NoIBANCountry"),u())}function UTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.iban.invalid")," "))}function HTt(t,i){if(t&1&&(d(0,"mat-form-field")(1,"mat-label"),h(2,"IBAN"),u(),A(3,"onemrva-mat-input-iban",0),I(4,BTt,3,3,"mat-error"),I(5,$Tt,3,3,"mat-error")(6,VTt,2,0,"mat-error")(7,UTt,3,3,"mat-error"),u()),t&2){let e=S();_(3),v("formControl",e.accountNumber),_(),M(e.accountNumber.hasError("required")?4:-1),_(),M(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 dCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.cdr=p(Se),this.accountNumber=new $e("",[Qt.required,hx()])}ngOnInit(){super.ngOnInit(),this.sub=this.accountNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(po.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:!1})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-iban-renderer"]],features:[P],decls:1,vars:1,consts:[[3,"formControl"]],template:function(n,r){n&1&&I(0,HTt,8,3,"mat-form-field"),n&2&&M(r.hidden?-1:0)},dependencies:[it,pt,mt,Pn,Je,rt,ht,wt,Wf,_t],encapsulation:2})}}return t})(),uCe=ai(10,gb("iban"));function zTt(t,i){if(t&1&&(d(0,"mat-label",0),h(1),u()),t&2){let e=S();v("ngStyle",e.labelStyle),_(),X(" ",e.label," ")}}var mCe=(()=>{class t extends cu{constructor(){super(...arguments),this.jsonFormsService=p(Hi)}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=_M(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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-label-renderer"]],features:[P],decls:1,vars:1,consts:[[3,"ngStyle"]],template:function(n,r){n&1&&I(0,zTt,2,2,"mat-label",0),n&2&&M(r.visible?0:-1)},dependencies:[mt,fr],encapsulation:2})}}return t})(),pCe=ai(5,ji("Label"));var _Ce=(()=>{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 GTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),$(j(2,1,"error.ssin")))}var hCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.nissMask=sx,this.isUpdating=ue(!1),this.jsonFormsService=p(Hi),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 $e(r),s=Wu.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=n.replace(/[^0-9]/g,"");this.form.setValue(n);let o=pe(R({},e),{target:pe(R({},e.target),{value:r})});super.onChange(o)}setErrorValue(e){this.isUpdating.set(!0);try{let r=this.jsonFormsService.getState()?.jsonforms?.core?.errors??[],a={instancePath:_Ce.extractStepKey(this.uischema?.scope),message:"Num\xE9ro XXXX invalide",keyword:"custom-renderer",schemaPath:this.uischema?.scope??"",params:{}},s=[...r,a],l=po.updateErrors(s);this.jsonFormsService.updateCore(l)}finally{this.isUpdating.set(!1)}}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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-niss-renderer"]],features:[Ce([Ag()]),P],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),D("input",function(a){return r.onChange(a)}),u()(),I(4,GTt,3,3,"mat-error")),n&2&&(_(2),$(r.label),_(),v("id",Vt(r.id))("formControl",r.form)("mask",r.nissMask),_(),M(r.isSsinError()?4:-1))},dependencies:[pt,mt,Pn,hl,an,Wt,rt,ht,k1,_t],encapsulation:2})}}return t})(),fCe=ai(10,gb("ssin"));function qTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.phone.invalid")," "))}var gCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.cdr=p(Se),this.phoneNumber=new $e("",[Ex()])}ngOnInit(){super.ngOnInit(),this.sub=this.phoneNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(po.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:!1})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-phone-renderer"]],features:[P],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),U(3,"translate"),u(),A(4,"onemrva-mat-input-phone",0),d(5,"mat-hint"),h(6),U(7,"translate"),u(),I(8,qTt,3,3,"mat-error"),u()),n&2&&(_(2),$(j(3,4,"input.phone.label")),_(2),v("formControl",r.phoneNumber),_(2),$(j(7,6,"input.phone.hint")),_(2),M(r.phoneNumber.hasError("phoneNumber")?8:-1))},dependencies:[it,pt,mt,yn,Pn,Je,rt,ht,Rg,gn,wt,yt,_t],encapsulation:2})}}return t})(),bCe=ai(8,gb("phone"));function jTt(t,i){if(t&1&&(d(0,"mat-radio-button",2),h(1),U(2,"translate"),u()),t&2){let e=i.$implicit,n=S(2);v("value",e),_(),X(" ",j(2,2,n.uischema.i18n+"."+e)," ")}}function YTt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=S(2);_(),X(" ",e.error)}}function WTt(t,i){if(t&1){let e=Oe();d(0,"mat-radio-group",1),so("ngModelChange",function(r){se(e);let o=S();return bo(o.data,r)||(o.data=r),le(r)}),D("change",function(r){se(e);let o=S();return le(o.onChange(r))}),Ie(1,jTt,3,4,"mat-radio-button",2,ln),I(3,YTt,2,1,"mat-error"),u()}if(t&2){let e=S();v("disabled",Vt(e.isControlDisable)),ao("ngModel",e.data),_(),Me(e.options),_(2),M(e.error?3:-1)}}var vCe=(()=>{class t extends Yi{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?!a5(this.uischema,e?.jsonforms?.core?.data??{},"",n,null):!0}catch{return!0}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-radio-button-renderer"]],features:[P],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&&I(0,WTt,4,4,"mat-radio-group",0),n&2&&M(r.hidden?-1:0)},dependencies:[yt,Pn,hl,rt,Qd,gn,jd,Em,_t],styles:[".vertical-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:1px}"]})}}return t})(),yCe=t=>t.type==="Control"&&t.options?.format==="radio"?11:-1;var ECe=(()=>{class t extends Yi{constructor(){super(...arguments),this.translate=p($n),this.onemrvaNissPipe=p(px)}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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-readonly-control-renderer"]],features:[Ce([]),P],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(),A(3,"input",2),u()),n&2&&(_(2),$(r.label),_(),v("id",r.id)("formControl",r.form))},dependencies:[gn,Wt,rt,mt,hl,ht],styles:[".column2[_ngcontent-%COMP%]{border:none;background:none}"],changeDetection:0})}}return t})(),CCe=ai(11,Er(I_,dd("readonly",!0)));function KTt(t,i){if(t&1&&(d(0,"mat-option",2),h(1),U(2,"translate"),u()),t&2){let e=i.$implicit,n=S();v("value",e),_(),X(" ",j(2,2,n.uischema.i18n+"."+e)," ")}}var SCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.options=ue([])}mapAdditionalProps(e){this.options.set(this.scopedSchema?.enum||[]),super.mapAdditionalProps(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-enum-renderer"]],features:[P],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),so("valueChange",function(a){return bo(r.data,a)||(r.data=a),a}),D("selectionChange",function(a){return r.onChange(a)}),Ie(4,KTt,3,4,"mat-option",2,ln),u()()),n&2&&(_(2),$(r.label),_(),ao("value",r.data),v("formControl",r.form),_(),Me(r.options()))},dependencies:[yt,pt,mt,mn,rr,hl,rt,ht,_t],encapsulation:2})}}return t})(),TCe=ai(10,sM);var wCe=(()=>{class t extends re{constructor(){super(...arguments),this.renderers=[...nCe,{tester:CCe,renderer:ECe},{tester:TCe,renderer:SCe},{tester:fCe,renderer:hCe},{tester:uCe,renderer:dCe},{tester:pCe,renderer:mCe},{tester:yCe,renderer:vCe},{tester:aCe,renderer:oCe},{tester:bCe,renderer:gCe},{tester:cCe,renderer:lCe}],this.uischema=iCe,this.schema=rCe,this.data={}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-jsonform"]],features:[P],decls:1,vars:4,consts:[[3,"data","schema","uischema","renderers"]],template:function(n,r){n&1&&A(0,"jsonforms",0),n&2&&v("data",r.data)("schema",r.schema)("uischema",r.uischema)("renderers",r.renderers)},dependencies:[Ma,bEe],encapsulation:2})}}return t})();var xCe=(()=>{class t extends re{constructor(){super(...arguments),this.form=new To({iban:new $e("",Qt.required),phone:new $e("",Qt.required),text:new $e("",Qt.required),date:new $e("",Qt.required)}),this.OnemrvaMatDatepickerHeaderComponent=pm}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-form"]],features:[Ce([vM()]),P],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(),A(4,"input",2),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(),A(12,"onemrva-mat-input-phone",3),d(13,"mat-hint"),h(14,"hint"),u(),d(15,"mat-error"),h(16),U(17,"translate"),u()(),d(18,"mat-form-field")(19,"mat-label"),h(20,"IBAN"),u(),A(21,"onemrva-mat-input-iban",4),d(22,"mat-hint"),h(23,"hint"),u(),d(24,"mat-error"),h(25),U(26,"translate"),u()(),d(27,"mat-form-field")(28,"mat-label"),h(29,"Choose a date"),u(),A(30,"input",5),d(31,"mat-hint"),h(32,"DD/MM/YYYY"),u(),A(33,"mat-datepicker-toggle",6)(34,"mat-datepicker",7,0),u()()),n&2){let o=Qe(35);v("formGroup",r.form),_(16),X(" ",j(17,6,"input.phone.required")," "),_(9),X(" ",j(26,8,"input.bank.required")," "),_(5),v("matDatepicker",o),_(3),v("for",o),_(),v("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent)}},dependencies:[Ma,Je,Wc,Wt,rt,xo,Ir,Xl,sl,Ga,it,pt,mt,yn,Pn,ir,Ta,an,Wf,Rg,_t],encapsulation:2})}}return t})();var QTt=["*"];function ZTt(t,i){if(t&1&&(d(0,"onemrva-mat-sticker",3),h(1),u()),t&2){let e=S();v("color",e.stickerColor()),_(),X(" ",e.stickerText()," ")}}var DCe=(()=>{class t{constructor(){this.OnemrvaMatColor=Yt,this.title=C.required(),this.stickerColor=C(Yt.PRIMARY),this.stickerText=C("Your Status"),this.isCollapsed=Nl(!1)}toggle(){this.isCollapsed.update(e=>!e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-collapsible-page-divider"]],inputs:{title:[1,"title"],stickerColor:[1,"stickerColor"],stickerText:[1,"stickerText"],isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},ngContentSelectors:QTt,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&&(fe(),d(0,"section")(1,"header",0),D("click",function(){return r.toggle()}),d(2,"span",1),h(3),u(),A(4,"span",2),I(5,ZTt,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),Z(11),u()()()),n&2&&(Y("collapsed",r.isCollapsed()),_(3),$(r.title()),_(2),M(r.stickerText()?5:-1))},dependencies:[at,Ha,Vn],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}"],changeDetection:0})}}return t})();var ICe=(()=>{class t extends re{constructor(){super(...arguments),this.color=C(Yt.PRIMARY),this.hasSticker=C(!0)}get stickerText(){return this.hasSticker()?"Your Status Goes Here":""}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-collapsible-page-divider"]],inputs:{color:[1,"color"],hasSticker:[1,"hasSticker"]},features:[P],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&&v("stickerText",r.stickerText)("stickerColor",r.color())("isCollapsed",!0)},dependencies:[DCe,It,Et],styles:[`app-demo-collapsible-page-divider{width:100%}
|
|
233
|
+
`],encapsulation:2,changeDetection:0})}}return t})(),cCe=ai(3,lM);function BTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.required")," "))}function $Tt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.iban.length")," "))}function VTt(t,i){t&1&&(d(0,"mat-error"),h(1," NoIBANCountry"),u())}function UTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.iban.invalid")," "))}function HTt(t,i){if(t&1&&(d(0,"mat-form-field")(1,"mat-label"),h(2,"IBAN"),u(),A(3,"onemrva-mat-input-iban",0),I(4,BTt,3,3,"mat-error"),I(5,$Tt,3,3,"mat-error")(6,VTt,2,0,"mat-error")(7,UTt,3,3,"mat-error"),u()),t&2){let e=S();_(3),v("formControl",e.accountNumber),_(),M(e.accountNumber.hasError("required")?4:-1),_(),M(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 dCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.cdr=p(Se),this.accountNumber=new $e("",[Qt.required,hx()])}ngOnInit(){super.ngOnInit(),this.sub=this.accountNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(po.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:!1})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-iban-renderer"]],features:[P],decls:1,vars:1,consts:[[3,"formControl"]],template:function(n,r){n&1&&I(0,HTt,8,3,"mat-form-field"),n&2&&M(r.hidden?-1:0)},dependencies:[it,pt,mt,Pn,Je,rt,ht,wt,Wf,_t],encapsulation:2})}}return t})(),uCe=ai(10,gb("iban"));function zTt(t,i){if(t&1&&(d(0,"mat-label",0),h(1),u()),t&2){let e=S();v("ngStyle",e.labelStyle),_(),X(" ",e.label," ")}}var mCe=(()=>{class t extends cu{constructor(){super(...arguments),this.jsonFormsService=p(Hi)}ngOnInit(){this.addSubscription(this.jsonFormsService.$state.subscribe({next:e=>{let n=_M(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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-label-renderer"]],features:[P],decls:1,vars:1,consts:[[3,"ngStyle"]],template:function(n,r){n&1&&I(0,zTt,2,2,"mat-label",0),n&2&&M(r.visible?0:-1)},dependencies:[mt,fr],encapsulation:2})}}return t})(),pCe=ai(5,ji("Label"));var _Ce=(()=>{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 GTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),$(j(2,1,"error.ssin")))}var hCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.nissMask=sx,this.isUpdating=ue(!1),this.jsonFormsService=p(Hi),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 $e(r),s=Wu.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=n.replace(/[^0-9]/g,"");this.form.setValue(n);let o=pe(R({},e),{target:pe(R({},e.target),{value:r})});super.onChange(o)}setErrorValue(e){this.isUpdating.set(!0);try{let r=this.jsonFormsService.getState()?.jsonforms?.core?.errors??[],a={instancePath:_Ce.extractStepKey(this.uischema?.scope),message:"Num\xE9ro XXXX invalide",keyword:"custom-renderer",schemaPath:this.uischema?.scope??"",params:{}},s=[...r,a],l=po.updateErrors(s);this.jsonFormsService.updateCore(l)}finally{this.isUpdating.set(!1)}}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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-niss-renderer"]],features:[Ce([Ag()]),P],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),D("input",function(a){return r.onChange(a)}),u()(),I(4,GTt,3,3,"mat-error")),n&2&&(_(2),$(r.label),_(),v("id",Vt(r.id))("formControl",r.form)("mask",r.nissMask),_(),M(r.isSsinError()?4:-1))},dependencies:[pt,mt,Pn,hl,an,Wt,rt,ht,k1,_t],encapsulation:2})}}return t})(),fCe=ai(10,gb("ssin"));function qTt(t,i){t&1&&(d(0,"mat-error"),h(1),U(2,"translate"),u()),t&2&&(_(),X(" ",j(2,1,"error.phone.invalid")," "))}var gCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.cdr=p(Se),this.phoneNumber=new $e("",[Ex()])}ngOnInit(){super.ngOnInit(),this.sub=this.phoneNumber.valueChanges.subscribe(e=>{this.jsonFormsService.updateCore(po.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:!1})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-phone-renderer"]],features:[P],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),U(3,"translate"),u(),A(4,"onemrva-mat-input-phone",0),d(5,"mat-hint"),h(6),U(7,"translate"),u(),I(8,qTt,3,3,"mat-error"),u()),n&2&&(_(2),$(j(3,4,"input.phone.label")),_(2),v("formControl",r.phoneNumber),_(2),$(j(7,6,"input.phone.hint")),_(2),M(r.phoneNumber.hasError("phoneNumber")?8:-1))},dependencies:[it,pt,mt,yn,Pn,Je,rt,ht,Rg,gn,wt,yt,_t],encapsulation:2})}}return t})(),bCe=ai(8,gb("phone"));function jTt(t,i){if(t&1&&(d(0,"mat-radio-button",2),h(1),U(2,"translate"),u()),t&2){let e=i.$implicit,n=S(2);v("value",e),_(),X(" ",j(2,2,n.uischema.i18n+"."+e)," ")}}function YTt(t,i){if(t&1&&(d(0,"mat-error"),h(1),u()),t&2){let e=S(2);_(),X(" ",e.error)}}function WTt(t,i){if(t&1){let e=Oe();d(0,"mat-radio-group",1),so("ngModelChange",function(r){se(e);let o=S();return bo(o.data,r)||(o.data=r),le(r)}),D("change",function(r){se(e);let o=S();return le(o.onChange(r))}),Ie(1,jTt,3,4,"mat-radio-button",2,ln),I(3,YTt,2,1,"mat-error"),u()}if(t&2){let e=S();v("disabled",Vt(e.isControlDisable)),ao("ngModel",e.data),_(),Me(e.options),_(2),M(e.error?3:-1)}}var vCe=(()=>{class t extends Yi{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?!a5(this.uischema,e?.jsonforms?.core?.data??{},"",n,null):!0}catch{return!0}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-radio-button-renderer"]],features:[P],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&&I(0,WTt,4,4,"mat-radio-group",0),n&2&&M(r.hidden?-1:0)},dependencies:[yt,Pn,hl,rt,Qd,gn,jd,Em,_t],styles:[".vertical-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:1px}"]})}}return t})(),yCe=t=>t.type==="Control"&&t.options?.format==="radio"?11:-1;var ECe=(()=>{class t extends Yi{constructor(){super(...arguments),this.translate=p($n),this.onemrvaNissPipe=p(px)}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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-readonly-control-renderer"]],features:[Ce([]),P],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(),A(3,"input",2),u()),n&2&&(_(2),$(r.label),_(),v("id",r.id)("formControl",r.form))},dependencies:[gn,Wt,rt,mt,hl,ht],styles:[".column2[_ngcontent-%COMP%]{border:none;background:none}"],changeDetection:0})}}return t})(),CCe=ai(11,Er(I_,dd("readonly",!0)));function KTt(t,i){if(t&1&&(d(0,"mat-option",2),h(1),U(2,"translate"),u()),t&2){let e=i.$implicit,n=S();v("value",e),_(),X(" ",j(2,2,n.uischema.i18n+"."+e)," ")}}var SCe=(()=>{class t extends Yi{constructor(){super(...arguments),this.options=ue([])}mapAdditionalProps(e){this.options.set(this.scopedSchema?.enum||[]),super.mapAdditionalProps(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-enum-renderer"]],features:[P],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),so("valueChange",function(a){return bo(r.data,a)||(r.data=a),a}),D("selectionChange",function(a){return r.onChange(a)}),Ie(4,KTt,3,4,"mat-option",2,ln),u()()),n&2&&(_(2),$(r.label),_(),ao("value",r.data),v("formControl",r.form),_(),Me(r.options()))},dependencies:[yt,pt,mt,mn,rr,hl,rt,ht,_t],encapsulation:2})}}return t})(),TCe=ai(10,sM);var wCe=(()=>{class t extends re{constructor(){super(...arguments),this.renderers=[...nCe,{tester:CCe,renderer:ECe},{tester:TCe,renderer:SCe},{tester:fCe,renderer:hCe},{tester:uCe,renderer:dCe},{tester:pCe,renderer:mCe},{tester:yCe,renderer:vCe},{tester:aCe,renderer:oCe},{tester:bCe,renderer:gCe},{tester:cCe,renderer:lCe}],this.uischema=iCe,this.schema=rCe,this.data={}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-jsonform"]],features:[P],decls:1,vars:4,consts:[[3,"data","schema","uischema","renderers"]],template:function(n,r){n&1&&A(0,"jsonforms",0),n&2&&v("data",r.data)("schema",r.schema)("uischema",r.uischema)("renderers",r.renderers)},dependencies:[Ma,bEe],encapsulation:2})}}return t})();var xCe=(()=>{class t extends re{constructor(){super(...arguments),this.form=new To({iban:new $e("",Qt.required),phone:new $e("",Qt.required),text:new $e("",Qt.required),date:new $e("",Qt.required)}),this.OnemrvaMatDatepickerHeaderComponent=pm}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-form"]],features:[Ce([vM()]),P],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(),A(4,"input",2),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(),A(12,"onemrva-mat-input-phone",3),d(13,"mat-hint"),h(14,"hint"),u(),d(15,"mat-error"),h(16),U(17,"translate"),u()(),d(18,"mat-form-field")(19,"mat-label"),h(20,"IBAN"),u(),A(21,"onemrva-mat-input-iban",4),d(22,"mat-hint"),h(23,"hint"),u(),d(24,"mat-error"),h(25),U(26,"translate"),u()(),d(27,"mat-form-field")(28,"mat-label"),h(29,"Choose a date"),u(),A(30,"input",5),d(31,"mat-hint"),h(32,"DD/MM/YYYY"),u(),A(33,"mat-datepicker-toggle",6)(34,"mat-datepicker",7,0),u()()),n&2){let o=Qe(35);v("formGroup",r.form),_(16),X(" ",j(17,6,"input.phone.required")," "),_(9),X(" ",j(26,8,"input.bank.required")," "),_(5),v("matDatepicker",o),_(3),v("for",o),_(),v("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent)}},dependencies:[Ma,Je,Wc,Wt,rt,xo,Ir,Xl,sl,Ga,it,pt,mt,yn,Pn,ir,Ta,an,Wf,Rg,_t],encapsulation:2})}}return t})();var QTt=["*"];function ZTt(t,i){if(t&1&&(d(0,"onemrva-mat-sticker",3),h(1),u()),t&2){let e=S();v("color",e.stickerColor()),_(),X(" ",e.stickerText()," ")}}var DCe=(()=>{class t{constructor(){this.OnemrvaMatColor=Yt,this.title=C.required(),this.stickerColor=C(Yt.PRIMARY),this.stickerText=C(),this.isCollapsed=Nl(!1)}toggle(){this.isCollapsed.update(e=>!e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["onemrva-collapsible-page-divider"]],inputs:{title:[1,"title"],stickerColor:[1,"stickerColor"],stickerText:[1,"stickerText"],isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},ngContentSelectors:QTt,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&&(fe(),d(0,"section")(1,"header",0),D("click",function(){return r.toggle()}),d(2,"span",1),h(3),u(),A(4,"span",2),I(5,ZTt,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),Z(11),u()()()),n&2&&(Y("collapsed",r.isCollapsed()),_(3),$(r.title()),_(2),M(r.stickerText()?5:-1))},dependencies:[at,Ha,Vn],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}"],changeDetection:0})}}return t})();var ICe=(()=>{class t extends re{constructor(){super(...arguments),this.title=C("Demande n\xB01 - 01/01/2020"),this.stickerColor=C(Yt.PRIMARY),this.stickerText=C("Here is your sticker"),this.isCollapsed=C(!1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-collapsible-page-divider"]],inputs:{title:[1,"title"],stickerColor:[1,"stickerColor"],stickerText:[1,"stickerText"],isCollapsed:[1,"isCollapsed"]},features:[P],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&&v("stickerText",r.stickerText())("stickerColor",r.stickerColor())("isCollapsed",r.isCollapsed())},dependencies:[DCe,It,Et],styles:[`app-demo-collapsible-page-divider{width:100%}
|
|
234
234
|
`],encapsulation:2})}}return t})();var MCe=(()=>{class t extends re{constructor(){super(...arguments),this.value=C(0),this._value=ke(()=>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=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-badge"]],inputs:{value:[1,"value"]},features:[P],decls:2,vars:3,consts:[[3,"matBadge","matBadgeSize"]],template:function(n,r){n&1&&(d(0,"div",0),h(1),u()),n&2&&(v("matBadge",r._value())("matBadgeSize",r._size()),_(),X(" Here is your badge demo ",r.value(),`
|
|
235
|
-
`))},dependencies:[it,Je,wt,yt,gM],encapsulation:2})}}return t})();var kCe=[{name:"Address",selector:"demo-address",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,test:!0,centered:!0},{name:"Address Input",selector:"demo-address-input",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,centered:!0,showOutput:!0},{name:"Autocomplete",selector:"demo-autocomplete",showCode:!0,showDemo:!0,link:"https://material.angular.io/components/autocomplete/overview",inputs:[{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Avatar",selector:"demo-avatar",showCode:!0,showDemo:!0,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:!0,centered:!0},{name:"Badge",selector:"demo-badge",showCode:!0,showDemo:!0,link:"",inputs:[{name:"value",values:[0,1,15,432],currentValue:0}],test:!0,centered:!0},{name:"Bank Input",selector:"demo-bank-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0,centered:!0,translationKey:"input.bank"},{name:"BCE pipe",selector:"demo-bce-pipe",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,centered:!0},{name:"Breadcrumb",selector:"demo-breadcrumb",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,centered:!1},{name:"Button",selector:"demo-button",showCode:!0,showDemo:!0,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:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Button Loading",selector:"demo-button-loading",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["outlined","contained"],currentValue:"contained"},{name:"disabled",values:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Icon Button",selector:"demo-icon-button",showCode:!0,showDemo:!0,link:"https://fonts.google.com/icons",inputs:[],test:!0},{name:"Card",selector:"demo-card",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["no-background","outline","background"],currentValue:"no-background"},{name:"image",values:[!0,!1],currentValue:!0},{name:"helpText",values:["More information about this component",""],currentValue:"More information about this component"},{name:"coloredTitle",values:["auto","true","false"],currentValue:"auto"},{name:"showActions",values:[!0,!1],currentValue:!0},{name:"showDescription",values:[!0,!1],currentValue:!0}],test:!0,centered:!0},{name:"Card Table",selector:"demo-card-table",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Carousel",selector:"demo-carousel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:""}],test:!0},{name:"Checkbox",selector:"demo-checkbox",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","success"],currentValue:""},{name:"checked",values:[!0,!1],currentValue:!0},{name:"indeterminate",values:[!0,!1],currentValue:!1},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Chips",selector:"demo-chips",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","accent","error"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Chips Input",selector:"demo-chips-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","accent","error"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Choice chips",selector:"demo-choice-chips",showCode:!0,showDemo:!0,link:"",showOutput:!0,inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Collapsible Page Divider",selector:"demo-collapsible-page-divider",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:[Yt.WARN,Yt.SUCCESS,Yt.ERROR,Yt.ACCENT,Yt.PRIMARY],currentValue:Yt.PRIMARY},{name:"hasSticker",values:[!0,!1],currentValue:!0}],test:!0},{name:"Copy to clipboard",selector:"demo-copy-to-clipboard",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0},{name:"Country Input",selector:"demo-country-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,centered:!0,test:!0},{name:"Birthplace input",selector:"demo-birthplace-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Date Picker",selector:"demo-datepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Date Picker Month Year ",selector:"demo-datepicker-month-year",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0,showOutput:!0},{name:"Date Picker Luxon",selector:"demo-datepicker-luxon",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0,showOutput:!0},{name:"Date Range Picker",selector:"demo-daterangepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Dialog",selector:"demo-dialog",showCode:!0,showDemo:!0,link:"",inputs:[{name:"size",values:["","small","medium","large","xlarge"],currentValue:""},{name:"type",values:["","error","warn","success"],currentValue:""}],centered:!0,test:!0},{name:"Dialog Content",selector:"demo-dialog-content",showCode:!0,showDemo:!1,link:"",inputs:[],test:!1},{name:"Digit Only directive",selector:"demo-digit-only",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Drag and drop",selector:"demo-drag-and-drop",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Drawer",selector:"demo-drawer",showCode:!0,showDemo:!0,link:"",inputs:[{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:""}],test:!1},{name:"Enterprise number (VIES)",selector:"demo-enterprise-number-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,centered:!0,test:!0},{name:"Error Handler",selector:"demo-error-handler",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"File Panel",selector:"demo-file-panel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","success","warn","error"],currentValue:""},{name:"disabled",values:[!1,!0],currentValue:!1}],test:!0},{name:"File Upload",selector:"demo-file-upload",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,showOutput:!0,translationKey:"file"},{name:"File Upload Manual",selector:"demo-file-upload-manual",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"file"},{name:"FAB",selector:"demo-fab",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:""},{name:"icon",values:["","account_circle","home","search","settings","person"],currentValue:"home"},{name:"disabled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Grid",selector:"demo-grid",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Form",selector:"demo-form",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Icon",selector:"demo-icon",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:"primary"},{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:"xxlarge"},{name:"icon",values:["","warning","check_circle","account_circle","error_outline","info","do_disturb_on","circle","cancel","home","search","settings","person"],currentValue:"settings"},{name:"filled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"If width is",selector:"demo-if-width-is",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"JSON Forms",selector:"demo-jsonform",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Layout and drawer",selector:"demo-layout",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,translationKey:"layout"},{name:"Language switcher",selector:"demo-language-switcher",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Link",selector:"demo-link",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Mask",selector:"demo-mask",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Message box",selector:"demo-message-box",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["info","warn","success","error"],currentValue:"info"},{name:"sticker",values:[!0,!1],currentValue:!1}],test:!0},{name:"Menu",selector:"demo-menu",showCode:!0,showDemo:!0,centered:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1}],test:!0},{name:"Multi Select",selector:"demo-multiselect",showCode:!0,showDemo:!0,link:"",inputs:[{name:"selectionToggle",values:[!0,!1],currentValue:!0},{name:"showFilter",values:[!0,!1],currentValue:!0},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"select"},{name:"Select",selector:"demo-select",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"select"},{name:"NISS pipe",selector:"demo-niss-pipe",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Notification",selector:"demo-notification",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Overlay",selector:"demo-overlay",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,centered:!0},{name:"Page Error",selector:"demo-error",showCode:!0,showDemo:!0,link:"",inputs:[{name:"code",values:[500,404,403,401,400,503,502,408,429],currentValue:500}],test:!0,translationKey:"error"},{name:"Page not found",selector:"demo-not-found",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"404"},{name:"Paginator",selector:"demo-paginator",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"paginator"},{name:"Palette",selector:"demo-palette",showCode:!1,showDemo:!0,link:"",inputs:[{name:"color",values:["primary","warn","success","info","neutral","accent"],currentValue:""}],test:!0},{name:"Panel",selector:"demo-panel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["default","primary"],currentValue:""},{name:"expandable",values:[!0,!1],currentValue:!0}],test:!0},{name:"PopOver",selector:"demo-pop-over",showCode:!0,showDemo:!0,link:"",inputs:[{name:"position",values:["","top-left","top-right","bottom-left","bottom-right"],currentValue:""}],test:!0,centered:!0},{name:"ProgressBar",selector:"demo-progress-bar",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Radio",selector:"demo-radio",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Rxjs Complex case",selector:"demo-rxjs-complex-case",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Combine Operators",selector:"demo-rxjs-combine-operators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Flattening Operators",selector:"demo-rxjs-flattening-operators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Observable",selector:"demo-rxjs-observable",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Subject",selector:"demo-rxjs-subject",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Side menu",selector:"demo-side-menu",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Selectable box",selector:"demo-selectable-box",showCode:!0,showDemo:!0,link:"",inputs:[{name:"icon",values:[!1,!0],currentValue:!0},{name:"content",values:[!1,!0],currentValue:!0},{name:"title",values:[!1,!0],currentValue:!0},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Selectable box LArge",selector:"demo-selectable-box-large",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Skeleton",selector:"demo-skeleton",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Slide toggle",selector:"demo-slide-toggle",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Spacing",selector:"demo-spacing",showCode:!1,showDemo:!0,link:"",inputs:[],test:!0},{name:"Spinner",selector:"demo-spinner",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Stepper (horizontal)",selector:"demo-horizontal-stepper",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Stepper (with Summary)",selector:"demo-summary-stepper",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Sticker",selector:"demo-sticker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","warn","success","info","error","neutral"],currentValue:""}],test:!0},{name:"Tab",selector:"demo-tab",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Table",selector:"demo-table",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Table Dialog Content",selector:"demo-table-dialog-content",showCode:!0,showDemo:!1,link:"",inputs:[],test:!1},{name:"Table of content",selector:"demo-toc",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Task list",selector:"demo-task-list",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["bubble","checkbox","icon"],currentValue:"checkbox"},{name:"color",values:["","error","success"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Toast",selector:"demo-toast",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Text Input",selector:"demo-text-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","warn"]},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1},{name:"hintColor",values:["","warn"],currentValue:""}],centered:!0,test:!0},{name:"Phone Input",selector:"demo-phone-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"input.phone"},{name:"Textarea",selector:"demo-textarea",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1},{name:"autoresize",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Timepicker",selector:"demo-timepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Button Toggle",selector:"demo-button-toggle",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["text","icon"],currentValue:"text"}],centered:!0,test:!0},{name:"Toolbar",selector:"demo-toolbar",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Tooltip",selector:"demo-tooltip",showCode:!0,showDemo:!0,link:"",inputs:[{name:"position",values:["above","below","right","left","before","after"],currentValue:"above"},{name:"filled",values:[!0,!1],currentValue:!1},{name:"html",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Typography",selector:"demo-typography",showCode:!1,showDemo:!0,link:"",inputs:[],test:!0},{name:"Validators",selector:"demo-validators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1}];var OCe=kCe.map(t=>pe(R({},t),{component:{"demo-address":Jse,"demo-address-input":Nie,"demo-autocomplete":Lie,"demo-avatar":Fie,"demo-badge":MCe,"demo-bank-input":Hie,"demo-bce-pipe":zie,"demo-breadcrumb":qie,"demo-button":jie,"demo-button-loading":Yie,"demo-icon-button":Wie,"demo-card":nle,"demo-card-table":_re,"demo-carousel":Die,"demo-checkbox":hre,"demo-chips":Hre,"demo-chips-input":zre,"demo-choice-chips":Gre,"demo-collapsible-page-divider":ICe,"demo-copy-to-clipboard":qre,"demo-country-input":jre,"demo-birthplace-input":Wre,"demo-datepicker":_oe,"demo-datepicker-month-year":hoe,"demo-datepicker-luxon":foe,"demo-daterangepicker":goe,"demo-dialog":Doe,"demo-dialog-content":t1,"demo-digit-only":Ioe,"demo-drag-and-drop":Moe,"demo-drawer":dae,"demo-enterprise-number-input":Ooe,"demo-error-handler":Aoe,"demo-file-panel":qoe,"demo-file-upload":Yoe,"demo-file-upload-manual":Koe,"demo-fab":Qoe,"demo-grid":Zoe,"demo-form":xCe,"demo-icon":Joe,"demo-if-width-is":Xoe,"demo-jsonform":wCe,"demo-layout":mae,"demo-language-switcher":pae,"demo-link":_ae,"demo-mask":hae,"demo-message-box":gae,"demo-menu":bae,"demo-multiselect":vae,"demo-select":ile,"demo-niss-pipe":yae,"demo-notification":Eae,"demo-overlay":ele,"demo-error":Sae,"demo-not-found":Dae,"demo-paginator":Iae,"demo-palette":Mae,"demo-panel":Iie,"demo-pop-over":Oae,"demo-progress-bar":Aae,"demo-radio":Pae,"demo-rxjs-complex-case":Lae,"demo-rxjs-combine-operators":Bae,"demo-rxjs-flattening-operators":Vae,"demo-rxjs-observable":Uae,"demo-rxjs-subject":Hae,"demo-side-menu":qae,"demo-selectable-box":Yae,"demo-selectable-box-large":tle,"demo-skeleton":Qae,"demo-slide-toggle":Xae,"demo-spacing":Jae,"demo-spinner":ese,"demo-horizontal-stepper":lse,"demo-summary-stepper":use,"demo-sticker":mse,"demo-tab":pse,"demo-table":fse,"demo-table-dialog-content":D1,"demo-toc":wse,"demo-task-list":Ise,"demo-toast":kse,"demo-text-input":Ose,"demo-phone-input":Rse,"demo-textarea":Ase,"demo-timepicker":Vse,"demo-button-toggle":Gse,"demo-toolbar":qse,"demo-tooltip":Kse,"demo-typography":Qse,"demo-validators":Zse}[t.selector]}));var RCe=(()=>{class t{constructor(){this.jsonSubPath="assets/json",this.translationSubPath="assets/i18n",this.http=p(Kr),this.basePathSig=p(jc,{optional:!0}),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(Oo(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(Oo(1));this.translationCache.set(o,s)}return this.translationCache.get(o).pipe(me(a=>a[n]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ACe=(()=>{class t extends re{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-empty"]],features:[P],decls:0,vars:0,template:function(n,r){},encapsulation:2})}}return t})();var JTt=["componentRef"],ewt=()=>["hljs","borderRadius"],twt=(t,i)=>i.name;function nwt(t,i){t&1&&xt(0)}function iwt(t,i){if(t&1&&(d(0,"div",5),ge(1,nwt,1,0,"ng-container",6),u()),t&2){let e=S(2);_(),v("ngComponentOutlet",e.current().component)("ngComponentOutletInputs",e.inputs())}}function rwt(t,i){if(t&1&&(d(0,"span",20),h(1),U(2,"titlecase"),u()),t&2){let e=S(4);_(),$(j(2,1,e.visionMode))}}function owt(t,i){if(t&1&&(d(0,"span",20),h(1),u()),t&2){let e=S(4);_(),$(e.currentScreenSize)}}function awt(t,i){if(t&1&&(d(0,"a",24)(1,"mat-icon"),h(2,"code"),u()()),t&2){let e=S(4);v("href",e.current().link,Oc)}}function swt(t,i){if(t&1){let e=Oe();d(0,"button",19),D("click",function(){let r=se(e).$implicit,o=S(4);return le(o.translateService.use(r))}),d(1,"span"),h(2),U(3,"uppercase"),u()()}if(t&2){let e=i.$implicit;_(2),$(j(3,1,e))}}function lwt(t,i){if(t&1&&(d(0,"mat-option",36),h(1),u()),t&2){let e=i.$implicit;v("value",e),_(),$(e)}}function cwt(t,i){if(t&1){let e=Oe();d(0,"mat-form-field",34)(1,"mat-label"),h(2),u(),d(3,"mat-select",35),D("selectionChange",function(r){let o=se(e).$implicit,a=S(6);return le(a.update(r,o.name))}),Ie(4,lwt,2,2,"mat-option",36,ln),u()()}if(t&2){let e=i.$implicit,n=S(6);_(2),$(e.name),_(),v("value",n.liveInputs()[e.name]??e.currentValue),_(),Me(e.values)}}function dwt(t,i){if(t&1&&Ie(0,cwt,6,2,"mat-form-field",34,twt),t&2){let e=S(5);Me(e.current().inputs)}}function uwt(t,i){if(t&1&&(d(0,"div",32)(1,"onemrva-mat-panel",33)(2,"onemrva-mat-panel-title"),h(3,"Controls"),u(),d(4,"onemrva-mat-panel-content"),I(5,dwt,2,0),u()()()),t&2){let e=S(4);_(5),M(e.current().inputs.length>0?5:-1)}}function mwt(t,i){if(t&1){let e=Oe();d(0,"mat-toolbar",12)(1,"div",13)(2,"button",14),D("click",function(){se(e);let r=S(3);return le(r.toggleGrid())}),d(3,"mat-icon"),h(4),u()(),d(5,"button",15),D("click",function(){se(e);let r=S(3);return le(r.zoomOut())}),d(6,"mat-icon"),h(7,"zoom_out"),u()(),d(8,"button",16),D("click",function(){se(e);let r=S(3);return le(r.resetZoom())}),d(9,"mat-icon"),h(10,"restart_alt"),u()(),d(11,"button",17),D("click",function(){se(e);let r=S(3);return le(r.zoomIn())}),d(12,"mat-icon"),h(13,"zoom_in"),u()(),d(14,"button",18)(15,"mat-icon"),h(16,"visibility"),u()(),d(17,"mat-menu",null,0)(19,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("normal"))}),d(20,"mat-icon"),h(21,"visibility"),u(),d(22,"span"),h(23,"Normal Vision"),u()(),d(24,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("blurred"))}),d(25,"mat-icon"),h(26,"blur_on"),u(),d(27,"span"),h(28,"Blurred Vision"),u()(),d(29,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("deuteranomaly"))}),d(30,"mat-icon"),h(31,"color_lens"),u(),d(32,"span"),h(33,"Deuteranomaly"),u()(),d(34,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("deuteranopia"))}),d(35,"mat-icon"),h(36,"color_lens"),u(),d(37,"span"),h(38,"Deuteranopia"),u()(),d(39,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("protanomaly"))}),d(40,"mat-icon"),h(41,"color_lens"),u(),d(42,"span"),h(43,"Protanomaly"),u()(),d(44,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("protanopia"))}),d(45,"mat-icon"),h(46,"color_lens"),u(),d(47,"span"),h(48,"Protanopia"),u()(),d(49,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("tritanomaly"))}),d(50,"mat-icon"),h(51,"color_lens"),u(),d(52,"span"),h(53,"Tritanomaly"),u()(),d(54,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("tritanopia"))}),d(55,"mat-icon"),h(56,"color_lens"),u(),d(57,"span"),h(58,"Tritanopia"),u()(),d(59,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("achromatopsia"))}),d(60,"mat-icon"),h(61,"invert_colors_off"),u(),d(62,"span"),h(63,"Achromatopsia"),u()(),d(64,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("grayscale"))}),d(65,"mat-icon"),h(66,"filter_b_and_w"),u(),d(67,"span"),h(68,"Grayscale"),u()()(),I(69,rwt,3,3,"span",20),d(70,"button",21)(71,"mat-icon"),h(72,"accessibility"),u()(),d(73,"button",22)(74,"mat-icon"),h(75,"devices"),u()(),d(76,"mat-menu",null,1)(78,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize(""))}),d(79,"mat-icon"),h(80,"fullscreen"),u(),d(81,"span"),h(82,"Reset Viewport"),u()(),A(83,"mat-divider"),d(84,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xsmall"))}),d(85,"mat-icon"),h(86,"phone_android"),u(),d(87,"span"),h(88,"XSmall (< 600px)"),u()(),d(89,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("small"))}),d(90,"mat-icon"),h(91,"tablet_android"),u(),d(92,"span"),h(93,"Small (600px - 959px)"),u()(),d(94,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("medium"))}),d(95,"mat-icon"),h(96,"laptop"),u(),d(97,"span"),h(98,"Medium (960px - 1279px)"),u()(),d(99,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("large"))}),d(100,"mat-icon"),h(101,"desktop_windows"),u(),d(102,"span"),h(103,"Large (1280px - 1535px)"),u()(),d(104,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xlarge"))}),d(105,"mat-icon"),h(106,"tv"),u(),d(107,"span"),h(108,"XLarge (1536px - 1919px)"),u()(),d(109,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xxlarge"))}),d(110,"mat-icon"),h(111,"desktop_mac"),u(),d(112,"span"),h(113,"XXLarge (\u2265 1920px)"),u()()(),I(114,owt,2,1,"span",20),A(115,"span",23),I(116,awt,3,1,"a",24),d(117,"button",25)(118,"mat-icon"),h(119,"language"),u()(),d(120,"span",20),h(121),U(122,"uppercase"),u(),d(123,"mat-menu",null,2),Ie(125,swt,4,3,"button",26,ln),u()()(),d(127,"div",27)(128,"div",28)(129,"div",29)(130,"div",30)(131,"div",31),xt(132,null,3),u()()()(),I(134,uwt,6,1,"div",32),u()}if(t&2){let e=Qe(18),n=Qe(77),r=Qe(124),o=S(3);_(4),$(o.showGrid?"grid_off":"grid_on"),_(10),v("matMenuTriggerFor",e),_(55),M(o.visionMode!=="normal"?69:-1),_(4),v("matMenuTriggerFor",n),_(41),M(o.currentScreenSize!=="Full Width"?114:-1),_(2),M(o.current().link?116:-1),_(),v("matMenuTriggerFor",r),_(4),$(j(122,13,o.translateService.currentLang)),_(4),Me(o.languages()),_(6),Y("show-grid",o.showGrid)("centered",o.current().centered),_(3),M(o.current().inputs.length>0?134:-1)}}function pwt(t,i){if(t&1&&(d(0,"mat-tab",37)(1,"pre",39),h(2," "),A(3,"code",40),U(4,"json"),h(5,`
|
|
235
|
+
`))},dependencies:[it,Je,wt,yt,gM],encapsulation:2})}}return t})();var kCe=[{name:"Address",selector:"demo-address",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,test:!0,centered:!0},{name:"Address Input",selector:"demo-address-input",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,centered:!0,showOutput:!0},{name:"Autocomplete",selector:"demo-autocomplete",showCode:!0,showDemo:!0,link:"https://material.angular.io/components/autocomplete/overview",inputs:[{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Avatar",selector:"demo-avatar",showCode:!0,showDemo:!0,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:!0,centered:!0},{name:"Badge",selector:"demo-badge",showCode:!0,showDemo:!0,link:"",inputs:[{name:"value",values:[0,1,15,432],currentValue:0}],test:!0,centered:!0},{name:"Bank Input",selector:"demo-bank-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0,centered:!0,translationKey:"input.bank"},{name:"BCE pipe",selector:"demo-bce-pipe",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,centered:!0},{name:"Breadcrumb",selector:"demo-breadcrumb",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,centered:!1},{name:"Button",selector:"demo-button",showCode:!0,showDemo:!0,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:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Button Loading",selector:"demo-button-loading",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["outlined","contained"],currentValue:"contained"},{name:"disabled",values:[!0,!1],currentValue:!1}],test:!0,centered:!0},{name:"Icon Button",selector:"demo-icon-button",showCode:!0,showDemo:!0,link:"https://fonts.google.com/icons",inputs:[],test:!0},{name:"Card",selector:"demo-card",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["no-background","outline","background"],currentValue:"no-background"},{name:"image",values:[!0,!1],currentValue:!0},{name:"helpText",values:["More information about this component",""],currentValue:"More information about this component"},{name:"coloredTitle",values:["auto","true","false"],currentValue:"auto"},{name:"showActions",values:[!0,!1],currentValue:!0},{name:"showDescription",values:[!0,!1],currentValue:!0}],test:!0,centered:!0},{name:"Card Table",selector:"demo-card-table",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Carousel",selector:"demo-carousel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:""}],test:!0},{name:"Checkbox",selector:"demo-checkbox",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","success"],currentValue:""},{name:"checked",values:[!0,!1],currentValue:!0},{name:"indeterminate",values:[!0,!1],currentValue:!1},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Chips",selector:"demo-chips",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","accent","error"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Chips Input",selector:"demo-chips-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","accent","error"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Choice chips",selector:"demo-choice-chips",showCode:!0,showDemo:!0,link:"",showOutput:!0,inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Collapsible Page Divider",selector:"demo-collapsible-page-divider",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:[Yt.WARN,Yt.SUCCESS,Yt.ERROR,Yt.ACCENT,Yt.PRIMARY],currentValue:Yt.PRIMARY},{name:"stickerText",values:["","Your Sticker value"],currentValue:""},{name:"isCollapsed",values:[!0,!1],currentValue:!0}],test:!0},{name:"Copy to clipboard",selector:"demo-copy-to-clipboard",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0},{name:"Country Input",selector:"demo-country-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,centered:!0,test:!0},{name:"Birthplace input",selector:"demo-birthplace-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Date Picker",selector:"demo-datepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Date Picker Month Year ",selector:"demo-datepicker-month-year",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0,showOutput:!0},{name:"Date Picker Luxon",selector:"demo-datepicker-luxon",showCode:!0,showDemo:!0,link:"",inputs:[],centered:!0,test:!0,showOutput:!0},{name:"Date Range Picker",selector:"demo-daterangepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Dialog",selector:"demo-dialog",showCode:!0,showDemo:!0,link:"",inputs:[{name:"size",values:["","small","medium","large","xlarge"],currentValue:""},{name:"type",values:["","error","warn","success"],currentValue:""}],centered:!0,test:!0},{name:"Dialog Content",selector:"demo-dialog-content",showCode:!0,showDemo:!1,link:"",inputs:[],test:!1},{name:"Digit Only directive",selector:"demo-digit-only",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Drag and drop",selector:"demo-drag-and-drop",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Drawer",selector:"demo-drawer",showCode:!0,showDemo:!0,link:"",inputs:[{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:""}],test:!1},{name:"Enterprise number (VIES)",selector:"demo-enterprise-number-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],showOutput:!0,centered:!0,test:!0},{name:"Error Handler",selector:"demo-error-handler",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"File Panel",selector:"demo-file-panel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","success","warn","error"],currentValue:""},{name:"disabled",values:[!1,!0],currentValue:!1}],test:!0},{name:"File Upload",selector:"demo-file-upload",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,showOutput:!0,translationKey:"file"},{name:"File Upload Manual",selector:"demo-file-upload-manual",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"file"},{name:"FAB",selector:"demo-fab",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:""},{name:"icon",values:["","account_circle","home","search","settings","person"],currentValue:"home"},{name:"disabled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Grid",selector:"demo-grid",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Form",selector:"demo-form",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Icon",selector:"demo-icon",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","error","warn","success","info","neutral"],currentValue:"primary"},{name:"size",values:["","xsmall","small","medium","large","xlarge","xxlarge"],currentValue:"xxlarge"},{name:"icon",values:["","warning","check_circle","account_circle","error_outline","info","do_disturb_on","circle","cancel","home","search","settings","person"],currentValue:"settings"},{name:"filled",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"If width is",selector:"demo-if-width-is",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"JSON Forms",selector:"demo-jsonform",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Layout and drawer",selector:"demo-layout",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,translationKey:"layout"},{name:"Language switcher",selector:"demo-language-switcher",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Link",selector:"demo-link",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Mask",selector:"demo-mask",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Message box",selector:"demo-message-box",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["info","warn","success","error"],currentValue:"info"},{name:"sticker",values:[!0,!1],currentValue:!1}],test:!0},{name:"Menu",selector:"demo-menu",showCode:!0,showDemo:!0,centered:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1}],test:!0},{name:"Multi Select",selector:"demo-multiselect",showCode:!0,showDemo:!0,link:"",inputs:[{name:"selectionToggle",values:[!0,!1],currentValue:!0},{name:"showFilter",values:[!0,!1],currentValue:!0},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"select"},{name:"Select",selector:"demo-select",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"select"},{name:"NISS pipe",selector:"demo-niss-pipe",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Notification",selector:"demo-notification",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Overlay",selector:"demo-overlay",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1,centered:!0},{name:"Page Error",selector:"demo-error",showCode:!0,showDemo:!0,link:"",inputs:[{name:"code",values:[500,404,403,401,400,503,502,408,429],currentValue:500}],test:!0,translationKey:"error"},{name:"Page not found",selector:"demo-not-found",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"404"},{name:"Paginator",selector:"demo-paginator",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0,translationKey:"paginator"},{name:"Palette",selector:"demo-palette",showCode:!1,showDemo:!0,link:"",inputs:[{name:"color",values:["primary","warn","success","info","neutral","accent"],currentValue:""}],test:!0},{name:"Panel",selector:"demo-panel",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["default","primary"],currentValue:""},{name:"expandable",values:[!0,!1],currentValue:!0}],test:!0},{name:"PopOver",selector:"demo-pop-over",showCode:!0,showDemo:!0,link:"",inputs:[{name:"position",values:["","top-left","top-right","bottom-left","bottom-right"],currentValue:""}],test:!0,centered:!0},{name:"ProgressBar",selector:"demo-progress-bar",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Radio",selector:"demo-radio",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Rxjs Complex case",selector:"demo-rxjs-complex-case",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Combine Operators",selector:"demo-rxjs-combine-operators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Flattening Operators",selector:"demo-rxjs-flattening-operators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Observable",selector:"demo-rxjs-observable",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Rxjs Subject",selector:"demo-rxjs-subject",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Side menu",selector:"demo-side-menu",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Selectable box",selector:"demo-selectable-box",showCode:!0,showDemo:!0,link:"",inputs:[{name:"icon",values:[!1,!0],currentValue:!0},{name:"content",values:[!1,!0],currentValue:!0},{name:"title",values:[!1,!0],currentValue:!0},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Selectable box LArge",selector:"demo-selectable-box-large",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Skeleton",selector:"demo-skeleton",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Slide toggle",selector:"demo-slide-toggle",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Spacing",selector:"demo-spacing",showCode:!1,showDemo:!0,link:"",inputs:[],test:!0},{name:"Spinner",selector:"demo-spinner",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Stepper (horizontal)",selector:"demo-horizontal-stepper",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Stepper (with Summary)",selector:"demo-summary-stepper",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Sticker",selector:"demo-sticker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","primary","accent","warn","success","info","error","neutral"],currentValue:""}],test:!0},{name:"Tab",selector:"demo-tab",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Table",selector:"demo-table",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Table Dialog Content",selector:"demo-table-dialog-content",showCode:!0,showDemo:!1,link:"",inputs:[],test:!1},{name:"Table of content",selector:"demo-toc",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1},{name:"Task list",selector:"demo-task-list",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["bubble","checkbox","icon"],currentValue:"checkbox"},{name:"color",values:["","error","success"],currentValue:""},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],test:!0},{name:"Toast",selector:"demo-toast",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Text Input",selector:"demo-text-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"color",values:["","warn"]},{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1},{name:"hintColor",values:["","warn"],currentValue:""}],centered:!0,test:!0},{name:"Phone Input",selector:"demo-phone-input",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,translationKey:"input.phone"},{name:"Textarea",selector:"demo-textarea",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1},{name:"autoresize",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Timepicker",selector:"demo-timepicker",showCode:!0,showDemo:!0,link:"",inputs:[{name:"disabled",values:[!0,!1],currentValue:!1},{name:"readonly",values:[!0,!1],currentValue:!1}],centered:!0,test:!0,showOutput:!0},{name:"Button Toggle",selector:"demo-button-toggle",showCode:!0,showDemo:!0,link:"",inputs:[{name:"type",values:["text","icon"],currentValue:"text"}],centered:!0,test:!0},{name:"Toolbar",selector:"demo-toolbar",showCode:!0,showDemo:!0,link:"",inputs:[],test:!0},{name:"Tooltip",selector:"demo-tooltip",showCode:!0,showDemo:!0,link:"",inputs:[{name:"position",values:["above","below","right","left","before","after"],currentValue:"above"},{name:"filled",values:[!0,!1],currentValue:!1},{name:"html",values:[!0,!1],currentValue:!1}],centered:!0,test:!0},{name:"Typography",selector:"demo-typography",showCode:!1,showDemo:!0,link:"",inputs:[],test:!0},{name:"Validators",selector:"demo-validators",showCode:!0,showDemo:!0,link:"",inputs:[],test:!1}];var OCe=kCe.map(t=>pe(R({},t),{component:{"demo-address":Jse,"demo-address-input":Nie,"demo-autocomplete":Lie,"demo-avatar":Fie,"demo-badge":MCe,"demo-bank-input":Hie,"demo-bce-pipe":zie,"demo-breadcrumb":qie,"demo-button":jie,"demo-button-loading":Yie,"demo-icon-button":Wie,"demo-card":nle,"demo-card-table":_re,"demo-carousel":Die,"demo-checkbox":hre,"demo-chips":Hre,"demo-chips-input":zre,"demo-choice-chips":Gre,"demo-collapsible-page-divider":ICe,"demo-copy-to-clipboard":qre,"demo-country-input":jre,"demo-birthplace-input":Wre,"demo-datepicker":_oe,"demo-datepicker-month-year":hoe,"demo-datepicker-luxon":foe,"demo-daterangepicker":goe,"demo-dialog":Doe,"demo-dialog-content":t1,"demo-digit-only":Ioe,"demo-drag-and-drop":Moe,"demo-drawer":dae,"demo-enterprise-number-input":Ooe,"demo-error-handler":Aoe,"demo-file-panel":qoe,"demo-file-upload":Yoe,"demo-file-upload-manual":Koe,"demo-fab":Qoe,"demo-grid":Zoe,"demo-form":xCe,"demo-icon":Joe,"demo-if-width-is":Xoe,"demo-jsonform":wCe,"demo-layout":mae,"demo-language-switcher":pae,"demo-link":_ae,"demo-mask":hae,"demo-message-box":gae,"demo-menu":bae,"demo-multiselect":vae,"demo-select":ile,"demo-niss-pipe":yae,"demo-notification":Eae,"demo-overlay":ele,"demo-error":Sae,"demo-not-found":Dae,"demo-paginator":Iae,"demo-palette":Mae,"demo-panel":Iie,"demo-pop-over":Oae,"demo-progress-bar":Aae,"demo-radio":Pae,"demo-rxjs-complex-case":Lae,"demo-rxjs-combine-operators":Bae,"demo-rxjs-flattening-operators":Vae,"demo-rxjs-observable":Uae,"demo-rxjs-subject":Hae,"demo-side-menu":qae,"demo-selectable-box":Yae,"demo-selectable-box-large":tle,"demo-skeleton":Qae,"demo-slide-toggle":Xae,"demo-spacing":Jae,"demo-spinner":ese,"demo-horizontal-stepper":lse,"demo-summary-stepper":use,"demo-sticker":mse,"demo-tab":pse,"demo-table":fse,"demo-table-dialog-content":D1,"demo-toc":wse,"demo-task-list":Ise,"demo-toast":kse,"demo-text-input":Ose,"demo-phone-input":Rse,"demo-textarea":Ase,"demo-timepicker":Vse,"demo-button-toggle":Gse,"demo-toolbar":qse,"demo-tooltip":Kse,"demo-typography":Qse,"demo-validators":Zse}[t.selector]}));var RCe=(()=>{class t{constructor(){this.jsonSubPath="assets/json",this.translationSubPath="assets/i18n",this.http=p(Kr),this.basePathSig=p(jc,{optional:!0}),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(Oo(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(Oo(1));this.translationCache.set(o,s)}return this.translationCache.get(o).pipe(me(a=>a[n]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ACe=(()=>{class t extends re{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=K(t)))(r||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-empty"]],features:[P],decls:0,vars:0,template:function(n,r){},encapsulation:2})}}return t})();var JTt=["componentRef"],ewt=()=>["hljs","borderRadius"],twt=(t,i)=>i.name;function nwt(t,i){t&1&&xt(0)}function iwt(t,i){if(t&1&&(d(0,"div",5),ge(1,nwt,1,0,"ng-container",6),u()),t&2){let e=S(2);_(),v("ngComponentOutlet",e.current().component)("ngComponentOutletInputs",e.inputs())}}function rwt(t,i){if(t&1&&(d(0,"span",20),h(1),U(2,"titlecase"),u()),t&2){let e=S(4);_(),$(j(2,1,e.visionMode))}}function owt(t,i){if(t&1&&(d(0,"span",20),h(1),u()),t&2){let e=S(4);_(),$(e.currentScreenSize)}}function awt(t,i){if(t&1&&(d(0,"a",24)(1,"mat-icon"),h(2,"code"),u()()),t&2){let e=S(4);v("href",e.current().link,Oc)}}function swt(t,i){if(t&1){let e=Oe();d(0,"button",19),D("click",function(){let r=se(e).$implicit,o=S(4);return le(o.translateService.use(r))}),d(1,"span"),h(2),U(3,"uppercase"),u()()}if(t&2){let e=i.$implicit;_(2),$(j(3,1,e))}}function lwt(t,i){if(t&1&&(d(0,"mat-option",36),h(1),u()),t&2){let e=i.$implicit;v("value",e),_(),$(e)}}function cwt(t,i){if(t&1){let e=Oe();d(0,"mat-form-field",34)(1,"mat-label"),h(2),u(),d(3,"mat-select",35),D("selectionChange",function(r){let o=se(e).$implicit,a=S(6);return le(a.update(r,o.name))}),Ie(4,lwt,2,2,"mat-option",36,ln),u()()}if(t&2){let e=i.$implicit,n=S(6);_(2),$(e.name),_(),v("value",n.liveInputs()[e.name]??e.currentValue),_(),Me(e.values)}}function dwt(t,i){if(t&1&&Ie(0,cwt,6,2,"mat-form-field",34,twt),t&2){let e=S(5);Me(e.current().inputs)}}function uwt(t,i){if(t&1&&(d(0,"div",32)(1,"onemrva-mat-panel",33)(2,"onemrva-mat-panel-title"),h(3,"Controls"),u(),d(4,"onemrva-mat-panel-content"),I(5,dwt,2,0),u()()()),t&2){let e=S(4);_(5),M(e.current().inputs.length>0?5:-1)}}function mwt(t,i){if(t&1){let e=Oe();d(0,"mat-toolbar",12)(1,"div",13)(2,"button",14),D("click",function(){se(e);let r=S(3);return le(r.toggleGrid())}),d(3,"mat-icon"),h(4),u()(),d(5,"button",15),D("click",function(){se(e);let r=S(3);return le(r.zoomOut())}),d(6,"mat-icon"),h(7,"zoom_out"),u()(),d(8,"button",16),D("click",function(){se(e);let r=S(3);return le(r.resetZoom())}),d(9,"mat-icon"),h(10,"restart_alt"),u()(),d(11,"button",17),D("click",function(){se(e);let r=S(3);return le(r.zoomIn())}),d(12,"mat-icon"),h(13,"zoom_in"),u()(),d(14,"button",18)(15,"mat-icon"),h(16,"visibility"),u()(),d(17,"mat-menu",null,0)(19,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("normal"))}),d(20,"mat-icon"),h(21,"visibility"),u(),d(22,"span"),h(23,"Normal Vision"),u()(),d(24,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("blurred"))}),d(25,"mat-icon"),h(26,"blur_on"),u(),d(27,"span"),h(28,"Blurred Vision"),u()(),d(29,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("deuteranomaly"))}),d(30,"mat-icon"),h(31,"color_lens"),u(),d(32,"span"),h(33,"Deuteranomaly"),u()(),d(34,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("deuteranopia"))}),d(35,"mat-icon"),h(36,"color_lens"),u(),d(37,"span"),h(38,"Deuteranopia"),u()(),d(39,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("protanomaly"))}),d(40,"mat-icon"),h(41,"color_lens"),u(),d(42,"span"),h(43,"Protanomaly"),u()(),d(44,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("protanopia"))}),d(45,"mat-icon"),h(46,"color_lens"),u(),d(47,"span"),h(48,"Protanopia"),u()(),d(49,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("tritanomaly"))}),d(50,"mat-icon"),h(51,"color_lens"),u(),d(52,"span"),h(53,"Tritanomaly"),u()(),d(54,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("tritanopia"))}),d(55,"mat-icon"),h(56,"color_lens"),u(),d(57,"span"),h(58,"Tritanopia"),u()(),d(59,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("achromatopsia"))}),d(60,"mat-icon"),h(61,"invert_colors_off"),u(),d(62,"span"),h(63,"Achromatopsia"),u()(),d(64,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateVision("grayscale"))}),d(65,"mat-icon"),h(66,"filter_b_and_w"),u(),d(67,"span"),h(68,"Grayscale"),u()()(),I(69,rwt,3,3,"span",20),d(70,"button",21)(71,"mat-icon"),h(72,"accessibility"),u()(),d(73,"button",22)(74,"mat-icon"),h(75,"devices"),u()(),d(76,"mat-menu",null,1)(78,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize(""))}),d(79,"mat-icon"),h(80,"fullscreen"),u(),d(81,"span"),h(82,"Reset Viewport"),u()(),A(83,"mat-divider"),d(84,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xsmall"))}),d(85,"mat-icon"),h(86,"phone_android"),u(),d(87,"span"),h(88,"XSmall (< 600px)"),u()(),d(89,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("small"))}),d(90,"mat-icon"),h(91,"tablet_android"),u(),d(92,"span"),h(93,"Small (600px - 959px)"),u()(),d(94,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("medium"))}),d(95,"mat-icon"),h(96,"laptop"),u(),d(97,"span"),h(98,"Medium (960px - 1279px)"),u()(),d(99,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("large"))}),d(100,"mat-icon"),h(101,"desktop_windows"),u(),d(102,"span"),h(103,"Large (1280px - 1535px)"),u()(),d(104,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xlarge"))}),d(105,"mat-icon"),h(106,"tv"),u(),d(107,"span"),h(108,"XLarge (1536px - 1919px)"),u()(),d(109,"button",19),D("click",function(){se(e);let r=S(3);return le(r.updateScreenSize("xxlarge"))}),d(110,"mat-icon"),h(111,"desktop_mac"),u(),d(112,"span"),h(113,"XXLarge (\u2265 1920px)"),u()()(),I(114,owt,2,1,"span",20),A(115,"span",23),I(116,awt,3,1,"a",24),d(117,"button",25)(118,"mat-icon"),h(119,"language"),u()(),d(120,"span",20),h(121),U(122,"uppercase"),u(),d(123,"mat-menu",null,2),Ie(125,swt,4,3,"button",26,ln),u()()(),d(127,"div",27)(128,"div",28)(129,"div",29)(130,"div",30)(131,"div",31),xt(132,null,3),u()()()(),I(134,uwt,6,1,"div",32),u()}if(t&2){let e=Qe(18),n=Qe(77),r=Qe(124),o=S(3);_(4),$(o.showGrid?"grid_off":"grid_on"),_(10),v("matMenuTriggerFor",e),_(55),M(o.visionMode!=="normal"?69:-1),_(4),v("matMenuTriggerFor",n),_(41),M(o.currentScreenSize!=="Full Width"?114:-1),_(2),M(o.current().link?116:-1),_(),v("matMenuTriggerFor",r),_(4),$(j(122,13,o.translateService.currentLang)),_(4),Me(o.languages()),_(6),Y("show-grid",o.showGrid)("centered",o.current().centered),_(3),M(o.current().inputs.length>0?134:-1)}}function pwt(t,i){if(t&1&&(d(0,"mat-tab",37)(1,"pre",39),h(2," "),A(3,"code",40),U(4,"json"),h(5,`
|
|
236
236
|
`),u()()),t&2){let e=S(4);v("label","Output"),_(3),v("highlight",j(4,3,e.demoComponent==null?null:e.demoComponent.output()))("language","json")}}function _wt(t,i){if(t&1&&(d(0,"div",41),A(1,"markdown",45),u()),t&2){let e=S().$index,n=S(4);_(),v("data",n.tabContents()[e])}}function hwt(t,i){if(t&1&&(d(0,"pre",42),h(1," "),A(2,"code",40),h(3,`
|
|
237
237
|
`),u()),t&2){let e=S().$index,n=S(4);_(2),v("highlight",n.tabContents()[e])("language",n.getLanguage(n.tabs()[e]))}}function fwt(t,i){t&1&&(d(0,"mat-icon",44),h(1,"check"),u())}function gwt(t,i){t&1&&(d(0,"mat-icon",44),h(1,"content_copy"),u())}function bwt(t,i){if(t&1){let e=Oe();d(0,"mat-tab",38),I(1,_wt,2,1,"div",41)(2,hwt,4,2,"pre",42),d(3,"button",43),D("click",function(){let r=se(e).$index,o=S(4);return le(o.copyToClipboard(o.tabContents()[r]))}),I(4,fwt,2,0,"mat-icon",44)(5,gwt,2,0,"mat-icon",44),u()()}if(t&2){let e=i.$implicit,n=S(4);v("label",e.replace("demo-",""))("bodyClass",ei(5,ewt)),_(),M(e.split(".")[1]==="md"?1:2),_(2),v("color",n.checked()?"success":"accent"),_(),M(n.checked()?4:5)}}function vwt(t,i){if(t&1&&(d(0,"mat-tab",37)(1,"pre",42),h(2," "),A(3,"code",40),h(4,`
|
|
238
238
|
`),u()()),t&2){let e=i.$implicit;v("label",e.lang+".json"),_(3),v("highlight",e.code)("language","json")}}function ywt(t,i){if(t&1&&Ie(0,vwt,5,3,"mat-tab",37,Bi),t&2){let e=S(4);Me(e.translations)}}function Ewt(t,i){if(t&1&&(d(0,"mat-tab-group",11),I(1,pwt,6,5,"mat-tab",37),Ie(2,bwt,6,6,"mat-tab",38,Bi),I(4,ywt,2,0),u()),t&2){let e=S(3);v("selectedIndex",0)("mat-stretch-tabs",!1),_(),M(e.current().showOutput?1:-1),_(),Me(e.tabs()),_(2),M(e.translations.length>0?4:-1)}}function Cwt(t,i){if(t&1&&(d(0,"div",4)(1,"div",7)(2,"onemrva-mat-panel",8),A(3,"onemrva-mat-panel-title",9),d(4,"onemrva-mat-panel-content",10),I(5,mwt,135,15),I(6,Ewt,5,4,"mat-tab-group",11),u()()()()),t&2){let e=S(2);_(2),v("ngClass","m-0 p-0"),_(3),M(e.effectiveShowDemo()==="yes"?5:-1),_(),M(e.effectiveShowCode()==="yes"?6:-1)}}function Swt(t,i){if(t&1&&I(0,iwt,2,2,"div",5)(1,Cwt,7,3,"div",4),t&2){let e=S();M(e.onlyDemo()?0:e.current()!==void 0&&e.current().component?1:-1)}}function Twt(t,i){if(t&1&&(d(0,"div",4)(1,"div",7)(2,"onemrva-mat-panel",8),A(3,"onemrva-mat-panel-title"),d(4,"onemrva-mat-panel-content")(5,"div",46)(6,"mat-icon",47),h(7,"error_outline"),u(),d(8,"h2"),h(9,"Demo Not Found"),u(),d(10,"p"),h(11),u()()()()()()),t&2){let e=S();_(2),v("ngClass","m-0 p-0"),_(9),X(' The requested demo component "',e.component(),'" does not exist. ')}}var NCe=(()=>{class t{constructor(){this.componentRef=ot("componentRef",{read:nn}),this.onlyDemo=C(!1),this.component=C("empty"),this.showCode=C(null),this.showDemo=C(null),this.inputs=C({}),this.activeTab=C("preview"),this.version=C(""),this.wp=C(1),this.demoBasePathSig=p(jc),this.clipboard=p(lf),this.json=p(RCe),this.cdn=p(Gr),this.translateService=p($n),this.current=ue({name:"",selector:"empty",component:ACe,showCode:!0,showDemo:!0,inputs:[],test:!0,link:""}),this.showGrid=!1,this.checked=ue(!1),this.currentZoom=1,this.ZOOM_STEP=.1,this.MIN_ZOOM=.5,this.MAX_ZOOM=2,this.visionMode="normal",this.currentScreenSize="Full Width",this.tabs=ue([]),this.tabContents=ue({}),this.Object=Object,this.demoExists=ue(!1),this.basePath=ke(()=>{let e=this.wp(),n=this.version(),r=e===1?Sne:"/";return n&&(r+=`${n}/`),r}),this.effectiveShowCode=ke(()=>{let e=this.showCode();return e!==null?e:this.current().showCode?"yes":"no"}),this.effectiveShowDemo=ke(()=>{let e=this.showDemo();return e!==null?e:this.current().showDemo?"yes":"no"}),this.liveInputs=ue({}),this.translations=[],this.lastLoadedComponent=null,$t(()=>{this.demoBasePathSig.set(this.basePath())}),$t(()=>{this.liveInputs.set(this.inputs()??{})}),$t(()=>{let e=this.component(),n=OCe.find(o=>o.selector==="demo-"+e);if(!n){this.demoExists.set(!1);return}this.current.set(n),this.demoExists.set(!0);let r=R({},this.inputs());for(let o of n.inputs)o.currentValue!==void 0&&(r[o.name]=o.currentValue);this.liveInputs.set(r),!this.onlyDemo()&&this.effectiveShowCode()==="yes"&&this.loadCodeIfNeeded(e)}),$t(()=>{let e=this.componentRef(),n=this.current()?.component;!e||!n||this.createComponent()}),$t(()=>{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(ft(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(ft(1)).subscribe(o=>{this.translations.push({key:n,lang:r,code:'{ "'+n+'" : '+JSON.stringify(o,null,2)+" } "})})})}copyToClipboard(e){this.checked.set(!0),this.clipboard.copy(e),setTimeout(()=>this.checked.set(!1),1200)}openLink(e){window.open(e)}update(e,n){let r=e.value;this.liveInputs.set(pe(R({},this.liveInputs()),{[n]:r}));let o=this.current().inputs.find(a=>a.name===n);o&&(o.currentValue=r)}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):De("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-demo-component"]],viewQuery:function(n,r){n&1&>(r.componentRef,JTt,5,nn),n&2&&tt()},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"],[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",`
|