@onemrvapublic/design-system-demos 22.4.0-develop.7 → 22.4.0-develop.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser/main.js CHANGED
@@ -9457,9 +9457,9 @@ Error when the NISS is not exactly 11 char long:
9457
9457
  padding: 0 24px 24px 24px;
9458
9458
  }
9459
9459
  `],encapsulation:2})}return t})(),x1=(()=>{class t extends Hre{static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275dir=q({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,r){n&2&&yn("type",r.type);},features:[A]})}return t})(),T1=(()=>{class t extends zre{static \u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();static \u0275dir=q({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,r){n&2&&yn("type",r.type);},features:[A]})}return t})(),Jf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=_e({type:t});static \u0275inj=pe({providers:[ps],imports:[Fa,Gre,bt,_o,qp,s0,It]})}return t})();function Dje(t,i){t&1&&h(0,"Fill out your name");}function Ije(t,i){t&1&&h(0,"Fill out your address");}function kje(t,i){t&1&&h(0,"Done");}var Kre=(()=>{class t extends ie{constructor(){super(...arguments),this.linear=true,this._formBuilder=_(el),this.firstFormGroup=this._formBuilder.group({firstCtrl:["",Mt.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:["",Mt.required]});}selectionChanged(e){console.log(e);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-horizontal-stepper"]],features:[he([{provide:a0,useValue:{showError:true,displayDefaultIndicatorType:false}}]),A],decls:37,vars:7,consts:[["stepper1",""],["headerPosition","top",3,"linear"],["errorMessage","Name is required.","aria-label","Fill out your name",3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["matInput","","placeholder","Last name, First name","formControlName","firstCtrl","required",""],["mat-button","","mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],["errorMessage","Address is required.","aria-label","Fill out your address",3,"stepControl"],["matInput","","placeholder","Ex. 1 Main St, New York, NY","formControlName","secondCtrl","required",""],["mat-button","","mat-stroked-button","","color","primary","matStepperPrevious",""],["aria-label","Done"],["mat-button","","color","primary",3,"click"]],template:function(n,r){if(n&1){let o=xe();d(0,"mat-stepper",1,0)(2,"mat-step",2)(3,"form",3),ee(4,Dje,1,0,"ng-template",4),d(5,"mat-form-field")(6,"mat-label"),h(7,"Name"),u(),O(8,"input",5),Ee(),u(),d(9,"div")(10,"p"),h(11,"Go to a different step to see the error state"),u(),d(12,"button",6),h(13," Next "),u()()()(),d(14,"mat-step",7)(15,"form",3),ee(16,Ije,1,0,"ng-template",4),d(17,"mat-form-field")(18,"mat-label"),h(19,"Address"),u(),O(20,"input",8),Ee(),u(),d(21,"div")(22,"p"),h(23,"Go to a different step to see the error state"),u(),d(24,"button",9),h(25," Back "),u(),d(26,"button",6),h(27," Next "),u()()()(),d(28,"mat-step",10),ee(29,kje,1,0,"ng-template",4),d(30,"p"),h(31,"You are now done."),u(),d(32,"div")(33,"button",9),h(34," Back "),u(),d(35,"button",11),I("click",function(){Z(o);let s=Ve(1);return X(s.reset())}),h(36," Reset "),u()()()();}n&2&&(b("linear",r.linear),m(2),b("stepControl",r.firstFormGroup),m(),b("formGroup",r.firstFormGroup),m(5),Se(),m(4),b("disabled",r.linear&&!r.firstFormGroup.valid),m(2),b("stepControl",r.secondFormGroup),m(),b("formGroup",r.secondFormGroup),m(5),Se(),m(6),b("disabled",r.linear&&!r.secondFormGroup.valid));},dependencies:[Ge,Lc,Ht,Ye,vo,Vu,Cr,zl,xt,sn,ht,Jt,rt,it,qe,Jf,l0,Gp,qp,x1,T1],encapsulation:2});}}return t})();var Mje=(t,i)=>({step:t,i});function Oje(t,i){if(t&1&&(d(0,"div",1),St(1,2),d(2,"div",3)(3,"div",4)(4,"div",5),St(5,6),u()()()()),t&2){let e=i.$implicit,n=i.$index,r=i.$count,o=y(),a=Ve(4);m(),b("ngTemplateOutlet",a)("ngTemplateOutletContext",vc(10,Mje,e,n)),m(),H("mat-stepper-vertical-line",n!==r-1),m(),Pt("grid-template-rows",o.selectedIndex===n?"1fr":"0fr"),b("id",o._getStepContentId(n)),F("aria-labelledby",o._getStepLabelId(n))("aria-expanded",o.selectedIndex===n),m(2),b("ngTemplateOutlet",e.content);}}function Rje(t,i){if(t&1){let e=xe();d(0,"mat-step-header",7),I("click",function(){let r=Z(e).step;return X(r.select())})("keydown",function(r){Z(e);let o=y();return X(o._onKeydown(r))}),u();}if(t&2){let e=i.step,n=i.i,r=y();H("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),b("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",r._stepIsNavigable(n,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(n,e)),F("aria-label",e.ariaLabel||null)("aria-current",r.selectedIndex===n?"step":null)("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex===n)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(n,e)?null:true);}}var D1=(()=>{class t extends qp{get orientation(){return "vertical"}set orientation(e){this.matStepperVertical=true;}scrollToElement(e){let n=document.getElementById(e);if(n){let o=n.getBoundingClientRect().top+window.pageYOffset+-100;window.scrollTo({top:o,behavior:"smooth"});}}constructor(){super(),this.destroyNotifier$=new U,this.matStepperVertical=true,this.ariaOrientation="vertical",this.role="tablist",this._animationDone=new U;}ngAfterContentInit(){super.ngAfterContentInit(),this.selectionChange.pipe(Ce(this.destroyNotifier$)).subscribe(e=>{let n=parseInt(this.animationDuration||"0")+400;setTimeout(()=>{let r=`cdk-step-label-${this._getStepLabelId(e.selectedIndex)}`;this.scrollToElement(r);},n);});}ngOnDestroy(){super.ngOnDestroy(),this.destroyNotifier$.next(),this.destroyNotifier$.complete();}_stepIsNavigable(e,n){return n.completed||this.selectedIndex===e||this.selectedIndex>e}_getIndicatorType(e,n){return n||(this.selectedIndex===e,"number")}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["onemrva-mat-stepper"],["onemrva-mat-vertical-stepper"],["","onemrvaMatStepper",""]],hostAttrs:["class.mat-stepper-vertical","true","class.mat-stepper-animations-enabled","true"],hostVars:2,hostBindings:function(n,r){n&2&&F("aria-orientation","vertical")("role","tablist");},inputs:{selectedIndex:"selectedIndex",orientation:"orientation"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[he([{provide:qp,useExisting:t},{provide:tm,useExisting:qp}]),A],decls:5,vars:0,consts:[["stepTemplate",""],[1,"mat-step"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"],["role","tab",3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple"]],template:function(n,r){n&1&&(ot(0),fe(1,Oje,6,13,"div",1,Yt),at(),ee(3,Rje,1,23,"ng-template",null,0,yi)),n&2&&(m(),ge(r.steps));},dependencies:[_i,s0],styles:['.mat-stepper-animations-enabled[_nghost-%COMP%] .mat-vertical-content-container[_ngcontent-%COMP%]{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(.4,0,.2,1)}[_nghost-%COMP%] .mat-step-header[_ngcontent-%COMP%]{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px;background-color:var(--mat-sys-surface-container-lowest);z-index:10}[_nghost-%COMP%] .mat-vertical-content-container[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}[_nghost-%COMP%] .mat-vertical-content-container[_ngcontent-%COMP%] .mat-vertical-content[_ngcontent-%COMP%]{margin:var(--spacer);padding:0 1.5rem 1.5rem}[_nghost-%COMP%] .mat-vertical-content-container.mat-stepper-vertical-line[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-sys-outline-variant);top:calc(8px - (var(--mat-stepper-header-height, 72px) - 24px) / 2);bottom:calc(8px - (var(--mat-stepper-header-height, 72px) - 24px) / 2);--mat-stepper-header-height: 3rem;left:var(--spacer)}']});}}return t})();var Qre=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275mod=_e({type:t});}static{this.\u0275inj=pe({imports:[D1,Jf]});}}return t})();function Nje(t,i){t&1&&h(0,"Fill out your name");}function Pje(t,i){t&1&&h(0,"Fill out your address");}function Lje(t,i){t&1&&h(0,"Fill out your phone number");}function Fje(t,i){t&1&&h(0,"Done");}var Zre=(()=>{class t extends ie{constructor(){super(...arguments),this.linear=true,this._formBuilder=_(el),this.firstFormGroup=this._formBuilder.group({firstCtrl:["",Mt.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:["",Mt.required]}),this.thirdFormGroup=this._formBuilder.group({thirdCtrl:["",Mt.required]});}selectionChanged(e){console.log(e);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-summary-stepper"]],features:[he([{provide:a0,useValue:{showError:true,displayDefaultIndicatorType:false}}]),A],decls:56,vars:13,consts:[["stepper3",""],["animationDuration","2000",3,"selectionChange","linear"],["aria-label","Fill out your name",3,"stepControl"],["matStepLabel",""],[1,"mat-step-summary"],[1,"mat-step-form"],[3,"formGroup"],["matInput","","placeholder","Last name, First name","formControlName","firstCtrl","required",""],[1,"mt-s"],["mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],["aria-label","Fill out your address",3,"stepControl"],["matInput","","placeholder","Address","formControlName","secondCtrl","required",""],["mat-stroked-button","","color","primary","matStepperPrevious",""],["aria-label","Fill out your phone number",3,"stepControl"],["matInput","","placeholder","Address","formControlName","thirdCtrl","required",""],["aria-label","Done"],["mat-flat-button","","color","accent",3,"click"]],template:function(n,r){if(n&1){let o=xe();d(0,"onemrva-mat-vertical-stepper",1,0),I("selectionChange",function(s){return r.selectionChanged(s)}),d(2,"mat-step",2),ee(3,Nje,1,0,"ng-template",3),d(4,"div",4),h(5),u(),d(6,"div",5)(7,"form",6),O(8,"br"),d(9,"mat-form-field")(10,"mat-label"),h(11,"Last name, First name"),u(),O(12,"input",7),Ee(),u(),d(13,"div",8)(14,"button",9),h(15," Next "),u()()()()(),d(16,"mat-step",10),ee(17,Pje,1,0,"ng-template",3),d(18,"div",4),h(19),u(),d(20,"div",5)(21,"form",6),O(22,"br"),d(23,"mat-form-field")(24,"mat-label"),h(25,"Address"),u(),O(26,"input",11),Ee(),u(),d(27,"div",8)(28,"button",12),h(29," Back "),u(),d(30,"button",9),h(31," Next "),u()()()()(),d(32,"mat-step",13),ee(33,Lje,1,0,"ng-template",3),d(34,"div",4),h(35),u(),d(36,"div",5)(37,"form",6),O(38,"br"),d(39,"mat-form-field")(40,"mat-label"),h(41,"Address"),u(),O(42,"input",14),Ee(),u(),d(43,"div",8)(44,"button",12),h(45," Back "),u(),d(46,"button",9),h(47," Next "),u()()()()(),d(48,"mat-step",15),ee(49,Fje,1,0,"ng-template",3),h(50," You are now done. "),d(51,"div",8)(52,"button",12),h(53," Back "),u(),d(54,"button",16),I("click",function(){Z(o);let s=Ve(1);return X(s.reset())}),h(55," Reset "),u()()()();}n&2&&(b("linear",r.linear),m(2),b("stepControl",r.firstFormGroup),m(3),G(" ",r.firstFormGroup.controls.firstCtrl.value," "),m(2),b("formGroup",r.firstFormGroup),m(5),Se(),m(2),b("disabled",r.linear&&!r.firstFormGroup.valid),m(2),b("stepControl",r.secondFormGroup),m(3),G(" ",r.secondFormGroup.controls.secondCtrl.value," "),m(2),b("formGroup",r.secondFormGroup),m(5),Se(),m(4),b("disabled",r.linear&&!r.secondFormGroup.valid),m(2),b("stepControl",r.thirdFormGroup),m(3),G(" ",r.thirdFormGroup.controls.thirdCtrl.value," "),m(2),b("formGroup",r.thirdFormGroup),m(5),Se(),m(4),b("disabled",r.linear&&!r.thirdFormGroup.valid));},dependencies:[Ge,Lc,Ht,Ye,vo,Vu,Cr,zl,xt,sn,ht,Jt,rt,it,qe,Jf,l0,Gp,x1,T1,Qre,D1],encapsulation:2});}}return t})();function Bje(t,i){if(t&1&&(d(0,"onemrva-mat-sticker",1),h(1," Default "),u()),t&2){let e=y(),n=Ve(3);b("color",e.color())("htmlTooltip",n);}}function $je(t,i){if(t&1&&(d(0,"onemrva-mat-sticker",2),h(1," Default "),u()),t&2){let e=y();b("color",e.color())("tooltip",e.tooltip());}}function Vje(t,i){t&1&&(h(0," I am a custom content with html (position: "),d(1,"b"),h(2,"right"),u(),h(3,") but there are 3 other positions "),d(4,"ul")(5,"li"),h(6,"left"),u(),d(7,"li"),h(8,"top"),u(),d(9,"li"),h(10,"bottom"),u()());}var Xre=(()=>{class t extends ie{constructor(){super(...arguments),this.color=E(Bt.ACCENT),this.tooltip=E(""),this.htmlTooltip=E(false);}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-sticker"]],inputs:{color:[1,"color"],tooltip:[1,"tooltip"],htmlTooltip:[1,"htmlTooltip"]},features:[A],decls:4,vars:1,consts:[["tooltipContent",""],[3,"color","htmlTooltip"],[3,"color","tooltip"]],template:function(n,r){n&1&&(T(0,Bje,2,2,"onemrva-mat-sticker",1)(1,$je,2,2,"onemrva-mat-sticker",2),ee(2,Vje,11,0,"ng-template",null,0,yi)),n&2&&D(r.htmlTooltip()?0:1);},dependencies:[Fc,Ko,_n,Fn],encapsulation:2});}}return t})();var Jre=(()=>{class t extends ie{constructor(){super(...arguments),this.links=["link1","link2","link3"],this.Object=Object;}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=V(t)))(r||t)}})();}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-tab"]],features:[A],decls:8,vars:0,consts:[["label","First"],["tabindex","0",2,"height","1px"],["label","Second"],["label","Third"]],template:function(n,r){n&1&&(d(0,"mat-tab-group")(1,"mat-tab",0),h(2," Content 1 "),O(3,"p",1),u(),d(4,"mat-tab",2),h(5," Content 2 "),u(),d(6,"mat-tab",3),h(7," Content 3 "),u()());},dependencies:[Pc,Ip,of],encapsulation:2});}}return t})();var I1=class extends hp{constructor(i){super(),this.elementsService=i,this.data$=new xn([]),this.prevSearch="",this.refresh$=new U;}connect(){if(this.sort)return Ot(this.sort.sortChange,this.search.valueChanges,this.paginator.pageSize$,this.paginator.pageIndex$,this.refresh$).pipe(Ze({}),on(()=>{this.search.getRawValue().trim()!==""&&this.search.getRawValue()!==this.prevSearch&&(this.paginator.resetPageIndex(),this.prevSearch=this.search.getRawValue());}),Lt(()=>{let i=this.sort?.active||"id",e=this.sort?.direction||"asc";return this.elementsService.getElementsList(i,e,this.paginator.pageIndex,this.paginator.pageSize,this.search.getRawValue()).pipe(ce(n=>(this.paginator.length=n.length,this.paginator.pageIndex=n.page,this.paginator.pageSize=n.pageSize,n.list)))}));throw Error("Please set the sort on the data source before connecting.")}disconnect(){console.log("disconnect");}all(){return this.elementsService.getAllElementsIds(this.search.getRawValue())}delete(i){this.elementsService.deleteElement(i),this.refresh$.next("");}};var Uje=["*"];function Hje(t,i){if(t&1){let e=xe();d(0,"button",4),I("click",function(){Z(e);let r=y();return X(r.clear.emit(void 0))}),h(1),u();}if(t&2){let e=y();m(),G(" ",e.buttonText()," ");}}var eoe=(()=>{class t{constructor(){this.cdn=_(to),this.translate=_(Rn),this.noresultimg=this.cdn.getOri("wordless.svg"),this.buttonText=E(this.translate.instant("Reset filters")),this.text=E(this.translate.instant("Sorry, there is no results for this search.")),this.imageAlt=E(this.translate.instant("Ori is wordless")),this.clear=Qt();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["onemrva-mat-empty-row"]],inputs:{buttonText:[1,"buttonText"],text:[1,"text"],imageAlt:[1,"imageAlt"]},outputs:{clear:"clear"},ngContentSelectors:Uje,decls:6,vars:5,consts:[[1,"img"],["fill","","priority","",3,"ngSrc","alt"],[1,"text"],["mat-stroked-button",""],["mat-stroked-button","",3,"click"]],template:function(n,r){n&1&&(me(),d(0,"span",0),O(1,"img",1),u(),d(2,"span",2),h(3),j(4),u(),T(5,Hje,2,1,"button",3)),n&2&&(m(),b("alt",Ft(r.imageAlt()))("ngSrc",r.noresultimg),m(2),G(" ",r.text()," "),m(2),D(r.buttonText()?5:-1));},dependencies:[HS,sn],styles:[`onemrva-mat-empty-row{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(2,1fr);justify-items:center;gap:15px}onemrva-mat-empty-row span.img{grid-area:1/1/3/2;display:block;min-width:80px;min-height:80px;height:10vw;width:10vw;margin:32px;position:relative;float:left}onemrva-mat-empty-row span.text{grid-area:1/2/2/7;justify-self:start;align-self:end}onemrva-mat-empty-row button{grid-area:2/2/3/7;justify-self:start;align-self:start}
9460
- `],encapsulation:2});}}return t})();var toe=(()=>{class t{constructor(){this.cdn=_(to),this.deletedItems=[];}getElementsList(e,n,r,o,a=""){return this.cdn.fetch("/json/elements.json").pipe(ce(s=>s),ce(s=>{let l=this.filterElements(s,a),c=l.length,p=l.sort((v,C)=>{let x=v[e],k=C[e],M=x>k?1:x<k?-1:0;return n==="asc"?M:-M}),f=r*o,g=p.slice(f,f+o);return {page:r,pageSize:o,length:c,list:g}}))}getAllElementsIds(e=""){return this.cdn.fetch("/json/elements.json").pipe(ce(n=>n),ce(n=>this.filterElements(n,e).map(r=>r.id)))}filterElements(e,n){let r=e.filter(o=>!this.deletedItems.includes(o.id));return n?r.filter(o=>o.name.toLowerCase().includes(n.toLowerCase())||o.description.toLowerCase().includes(n.toLowerCase())):r}deleteElement(e){this.deletedItems.includes(e)||(this.deletedItems.push(e),console.log(this.deletedItems));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=Re({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function zje(t,i){if(t&1&&(d(0,"onemrva-mat-choice-chip",1),h(1),u(),Ee()),t&2){let e=i.$implicit,n=i.$index,r=y();b("formControl",r.formGet(n)),Se(),m(),G(" ",e," ");}}var k1=(()=>{class t extends ie{constructor(){super(),this.dialogRef=_(Up),this.data=_(Pf),this.allColumns=this.data.allColumns,this.savedValues=W(this.data.columns),this.fb=_(el),this.formArray=new Ly(this.data.columns.map(e=>{let n=this.allColumns.includes(e);return new Ne(n)})),this.formArray.valueChanges.subscribe(e=>{this.savedValues.set(e);});}formGet(e){return this.formArray.at(e)}onNoClick(){this.dialogRef.close();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-content-dialog"]],features:[he([{provide:Pf,useValue:{columns:[],allColumns:[],allSubColumns:[]}}]),A],decls:10,vars:1,consts:[["mat-dialog-title",""],["color","primary",1,"mr",3,"formControl"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,r){n&1&&(d(0,"h2",0),h(1,"Choose columns"),u(),d(2,"mat-dialog-content"),fe(3,zje,2,2,"onemrva-mat-choice-chip",1,Yt),u(),d(5,"mat-dialog-actions")(6,"button",2),I("click",function(){return r.onNoClick()}),h(7,"Cancel"),u(),d(8,"button",3),h(9," Save "),u()()),n&2&&(m(3),ge(r.data.columns),m(5),b("mat-dialog-close",r.savedValues()));},dependencies:[al,e1,t1,i1,n1,sn,Ge,Ye,ut,Fn,jT],encapsulation:2});}}return t})();var noe=(()=>{class t{constructor(){this.isExpanded=E.required(),this.detailRowId=E.required(),this.expandedChange=Qt();}_onClick(e){e.stopPropagation(),this.expandedChange.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["onemrva-expandable-table-icon"]],inputs:{isExpanded:[1,"isExpanded"],detailRowId:[1,"detailRowId"]},outputs:{expandedChange:"expandedChange"},decls:3,vars:5,consts:[["mat-icon-button","","type","button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","12","viewBox","0 0 20 12","fill","none"],["d","M18.2083 -0.000162005L20 1.7915L10 11.7915L-3.93748e-07 1.83317L1.79167 0.0415055L10 8.24984L18.2083 -0.000162005Z","fill","#625D9C"]],template:function(n,r){n&1&&(d(0,"button",0),I("click",function(a){return r._onClick(a)}),pi(),d(1,"svg",1),O(2,"path",2),u()()),n&2&&(F("aria-expanded",r.isExpanded())("aria-controls",r.detailRowId())("aria-label",r.isExpanded()?"Collapse":"Expand"),m(),pt(r.isExpanded()?"isExpanded":""));},dependencies:[kn],styles:["[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;transform-origin:50% 50%;transition:transform .2s cubic-bezier(.4,0,.2,1)}[_nghost-%COMP%] svg.isExpanded[_ngcontent-%COMP%]{transform:rotate(180deg)}@media(prefers-reduced-motion:reduce){[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:none}}"]});}}return t})();var Gje=["checkboxes"],qje=()=>["delay","days"],jje=()=>["notice"],Yje=()=>[],Wje=()=>[5,10,20,50],Kje=(t,i)=>i.code;function Qje(t,i){if(t&1){let e=xe();d(0,"button",78),I("click",function(){Z(e);let r=y();return X(r.clear())}),d(1,"mat-icon"),h(2,"close"),u()();}}function Zje(t,i){t&1&&O(0,"tr",79);}function Xje(t,i){t&1&&O(0,"tr",80);}function Jje(t,i){if(t&1&&O(0,"tr",81),t&2){let e=y();pt(e.showNotice()?"":"hidden");}}function eYe(t,i){if(t&1){let e=xe();d(0,"a",7),I("click",function(){Z(e);let r=y(3);return X(r.selectAll())}),h(1),u(),h(2,"\xA0 ");}if(t&2){y(3);let e=Ve(29);m(),G("Select ",e.length," items");}}function tYe(t,i){if(t&1){let e=xe();d(0,"a",7),I("click",function(){Z(e);let r=y(3);return X(r.deSelectAll())}),h(1),u();}if(t&2){let e=y(3);m(),G("Deselect ",e.checkboxes.length," items");}}function nYe(t,i){if(t&1&&(d(0,"th",83),h(1),T(2,eYe,3,1),T(3,tYe,2,1,"a",84),u()),t&2){let e=y(2),n=Ve(29);m(),G(" You have selected ",e.checkboxes.length," items.\xA0 "),m(),D(e.checkboxes.length<n.length?2:-1),m(),D(e.checkboxes.length>=0?3:-1);}}function iYe(t,i){t&1&&(ot(0,12),ee(1,nYe,4,3,"th",82),at());}function rYe(t,i){t&1&&O(0,"tr",85);}function oYe(t,i){if(t&1){let e=xe();d(0,"tr",86)(1,"td",83)(2,"onemrva-mat-empty-row",87),I("clear",function(){Z(e);let r=y();return X(r.clear())}),u()()();}}function aYe(t,i){if(t&1){let e=xe();d(0,"th",88)(1,"div")(2,"mat-checkbox",89),I("change",function(r){Z(e);let o=y();return X(o.toggleAllVisible(r))}),u()()();}if(t&2){let e=y();F("rowspan",2),m(2),b("checked",e.checked)("indeterminate",e.undetermined);}}function sYe(t,i){if(t&1){let e=xe();d(0,"td",90)(1,"mat-checkbox",91,1),I("change",function(r){let o=Z(e).$implicit,a=y();return X(a.toggleOne(r,o.id))}),u()();}if(t&2){let e=i.$implicit,n=y();m(),Oa("aria-label",ls("Check row ",e.id)),b("value",e.id)("checked",n.isChecked(e.id));}}function lYe(t,i){t&1&&(d(0,"th",93),h(1," Id "),u()),t&2&&F("rowspan",2);}function cYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.id," ");}}function dYe(t,i){t&1&&(ot(0,18),ee(1,lYe,2,1,"th",92)(2,cYe,2,1,"td",37),at());}function uYe(t,i){t&1&&(d(0,"th",97),h(1," Name "),u()),t&2&&F("rowspan",2);}function mYe(t,i){if(t&1&&(d(0,"td",98)(1,"a",99),h(2),u()()),t&2){let e=i.$implicit;b("id",Ft(e.name)),m(2),L(e.name);}}function pYe(t,i){t&1&&(ot(0,19),ee(1,uYe,2,1,"th",95)(2,mYe,3,3,"td",96),at());}function _Ye(t,i){t&1&&(d(0,"th",102),h(1," Description "),u()),t&2&&F("rowspan",2);}function hYe(t,i){if(t&1&&(d(0,"td",103),O(1,"span"),h(2),u()),t&2){let e=i.$implicit;m(2),G(" ",e.description," ");}}function fYe(t,i){t&1&&(ot(0,20),ee(1,_Ye,2,1,"th",100)(2,hYe,3,1,"td",101),at());}function gYe(t,i){t&1&&(d(0,"th",105),h(1," Suspension "),u()),t&2&&F("colspan",2);}function bYe(t,i){t&1&&(ot(0,21),ee(1,gYe,2,1,"th",104),at());}function vYe(t,i){t&1&&(d(0,"th",108),h(1," Delay "),u());}function yYe(t,i){t&1&&(d(0,"td",109),h(1," 1 "),u());}function CYe(t,i){t&1&&(ot(0,22),ee(1,vYe,2,0,"th",106)(2,yYe,2,0,"td",107),at());}function EYe(t,i){t&1&&(d(0,"th",112),h(1," Days "),u());}function SYe(t,i){t&1&&(d(0,"td",113),h(1," 2 "),u());}function wYe(t,i){t&1&&(ot(0,23),ee(1,EYe,2,0,"th",110)(2,SYe,2,0,"td",111),at());}function xYe(t,i){t&1&&(d(0,"th",115),h(1," Menu "),u()),t&2&&F("rowspan",2);}function TYe(t,i){if(t&1){let e=xe();d(0,"td",116)(1,"button",117)(2,"mat-icon"),h(3,"more_vert"),u()(),d(4,"mat-menu",null,2)(6,"button",118),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.edit(r))}),d(7,"mat-icon"),h(8,"edit"),u(),h(9," Edit "),u(),d(10,"button",119),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.delete(r))}),d(11,"mat-icon"),h(12,"delete"),u(),h(13," Delete "),u(),d(14,"button",120),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.share(r))}),d(15,"mat-icon"),h(16,"share"),u(),h(17," Share "),u()()();}if(t&2){let e=Ve(5);m(),b("matMenuTriggerFor",e);}}function DYe(t,i){t&1&&(ot(0,24),ee(1,xYe,2,1,"th",36)(2,TYe,18,1,"td",114),at());}function IYe(t,i){t&1&&O(0,"tr",79);}function kYe(t,i){if(t&1&&O(0,"tr",121),t&2){let e=i.$implicit,n=i.dataIndex,r=y();H("demo-expandable-row--striped",n%2===0)("demo-expandable-row--open",r.isExpanded(e.id));}}function MYe(t,i){if(t&1&&O(0,"tr",122),t&2){let e=i.$implicit,n=y();F("id",n.detailRowId(e.id));}}function OYe(t,i){t&1&&(d(0,"th",123),h(1," Details "),u());}function RYe(t,i){if(t&1){let e=xe();d(0,"onemrva-expandable-table-icon",126),I("expandedChange",function(){Z(e);let r=y().$implicit,o=y();return X(o.toggleExpanded(r.id))}),u();}if(t&2){let e=y().$implicit,n=y();b("isExpanded",n.isExpanded(e.id))("detailRowId",n.detailRowId(e.id));}}function AYe(t,i){if(t&1&&(d(0,"td",124),T(1,RYe,1,2,"onemrva-expandable-table-icon",125),u()),t&2){let e=i.$implicit,n=y();m(),D(n.hasDetails(e)?1:-1);}}function NYe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function PYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),L(e.id);}}function LYe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function FYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.name);}}function BYe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function $Ye(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.office);}}function VYe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function UYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.period);}}function HYe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function zYe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.total," ");}}function GYe(t,i){if(t&1&&(d(0,"div",133)(1,"div",136),h(2),u(),d(3,"div",136),h(4),u(),d(5,"div",137),h(6),u(),d(7,"div",137),h(8),u()()),t&2){let e=i.$implicit;m(2),L(e.code),m(2),L(e.label),m(2),G(" ",e.days," "),m(2),G(" ",e.amount," ");}}function qYe(t,i){if(t&1&&(d(0,"td",129)(1,"div",130)(2,"div",131)(3,"div",132)(4,"div",133)(5,"div",134),h(6," Code "),u(),d(7,"div",134),h(8," Benefit "),u(),d(9,"div",135),h(10," Days "),u(),d(11,"div",135),h(12," Amount "),u()(),fe(13,GYe,9,4,"div",133,Kje),u()()()()),t&2){let e=i.$implicit,n=y();H("demo-expandable-detail-cell--open",n.isExpanded(e.id)),F("colspan",n.benefitColumns.length),m(3),F("aria-hidden",n.isExpanded(e.id)?null:"true")("aria-label","Payment details of "+e.name),m(10),ge(n.detailsFor(e.id));}}function jYe(t,i){t&1&&O(0,"tr",79);}function YYe(t,i){if(t&1&&O(0,"tr",138),t&2){let e=i.$implicit,n=y();H("demo-tree-row--striped",e.groupIndex%2===0)("demo-tree-row--grouped",!e.lastInGroup),F("aria-expanded",n.hasDetails(e.row)?n.isTreeExpanded(e.row.id):null);}}function WYe(t,i){if(t&1&&O(0,"tr",139),t&2){let e=i.$implicit,n=y();H("demo-tree-row--striped",e.groupIndex%2===0)("demo-tree-row--grouped",!e.lastInGroup),F("id",n.treeChildRowId(e.parent.id,e.detail.code));}}function KYe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function QYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.row.id," ");}}function ZYe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function XYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.name);}}function JYe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function eWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.office);}}function tWe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function nWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.period);}}function iWe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function rWe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.row.total," ");}}function oWe(t,i){t&1&&(d(0,"th",140),h(1," Details "),u());}function aWe(t,i){if(t&1){let e=xe();d(0,"onemrva-expandable-table-icon",126),I("expandedChange",function(){Z(e);let r=y().$implicit,o=y();return X(o.toggleTreeExpanded(r.row.id))}),u();}if(t&2){let e=y().$implicit,n=y();b("isExpanded",n.isTreeExpanded(e.row.id))("detailRowId",n.treeChildRowIds(e.row.id));}}function sWe(t,i){if(t&1&&(d(0,"td",141),T(1,aWe,1,2,"onemrva-expandable-table-icon",125),u()),t&2){let e=i.$implicit,n=y();m(),D(n.hasDetails(e.row)?1:-1);}}function lWe(t,i){if(t&1&&(d(0,"td",142),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.detail.code," ");}}function cWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.detail.label);}}function dWe(t,i){t&1&&O(0,"td",90);}function uWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),G("",e.detail.days," days");}}function mWe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.detail.amount," ");}}function pWe(t,i){t&1&&O(0,"td",141);}function _We(t,i){if(t&1){let e=xe();d(0,"p",63),h(1),d(2,"button",143),I("click",function(){Z(e);let r=y();return X(r.saveAll())}),h(3," Save all "),u(),d(4,"button",144),I("click",function(){Z(e);let r=y();return X(r.cancelAll())}),h(5," Discard all "),u()();}if(t&2){let e=y();m(),G(" ",e.editingCount()," row(s) in edit mode.\xA0 ");}}function hWe(t,i){t&1&&O(0,"tr",79);}function fWe(t,i){if(t&1){let e=xe();d(0,"tr",145),I("keydown.enter",function(){let r=Z(e).$implicit,o=y();return X(o.isEditing(r.id)&&o.saveEdit(r.id))})("keydown.escape",function(){let r=Z(e).$implicit,o=y();return X(o.cancelEdit(r.id))}),u();}if(t&2){let e=i.$implicit,n=y();H("demo-inline-edit-row--editing",n.isEditing(e.id));}}function gWe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function bWe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),L(e.id);}}function vWe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function yWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Beneficiary is required"),u());}function CWe(t,i){t&1&&(d(0,"mat-error"),h(1,"60 characters at most"),u());}function EWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",148),Ee(),T(2,yWe,2,0,"mat-error"),T(3,CWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("id",n.firstControlId(e.id))("formControl",n.formFor(e.id).controls.name),F("aria-label","Beneficiary of row "+e.id),Se(),m(),D(n.formFor(e.id).controls.name.hasError("required")?2:-1),m(),D(n.formFor(e.id).controls.name.hasError("maxlength")?3:-1);}}function SWe(t,i){if(t&1&&h(0),t&2){let e=y().$implicit;G(" ",e.name," ");}}function wWe(t,i){if(t&1&&(d(0,"td",146),T(1,EWe,4,5,"mat-form-field",147)(2,SWe,1,1),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function xWe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function TWe(t,i){if(t&1&&(d(0,"mat-option",150),h(1),u()),t&2){let e=i.$implicit;b("value",e),m(),L(e);}}function DWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Office is required"),u());}function IWe(t,i){if(t&1&&(d(0,"mat-form-field",147)(1,"mat-select",149),fe(2,TWe,2,2,"mat-option",150,Yt),u(),Ee(),T(4,DWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("formControl",n.formFor(e.id).controls.office),F("aria-label","Office of row "+e.id),Se(),m(),ge(n.offices),m(2),D(n.formFor(e.id).controls.office.hasError("required")?4:-1);}}function kWe(t,i){if(t&1&&h(0),t&2){let e=y().$implicit;G(" ",e.office," ");}}function MWe(t,i){if(t&1&&(d(0,"td",146),T(1,IWe,5,3,"mat-form-field",147)(2,kWe,1,1),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function OWe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function RWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.period);}}function AWe(t,i){t&1&&(d(0,"th",88),h(1,"Paid on"),u());}function NWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Payment date is required"),u());}function PWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Use DD/MM/YYYY"),u());}function LWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Cannot be in the future"),u());}function FWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",151),Ee(),O(2,"mat-datepicker-toggle",152)(3,"mat-datepicker",153,3),T(5,NWe,2,0,"mat-error"),T(6,PWe,2,0,"mat-error"),T(7,LWe,2,0,"mat-error"),u()),t&2){let e=Ve(4),n=y().$implicit,r=y();m(),b("matDatepicker",e)("max",r.today)("formControl",r.formFor(n.id).controls.paidOn),F("aria-label","Payment date of row "+n.id),Se(),m(),b("for",e),m(),b("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent),m(2),D(r.formFor(n.id).controls.paidOn.hasError("required")?5:-1),m(),D(r.formFor(n.id).controls.paidOn.hasError("matDatepickerParse")?6:-1),m(),D(r.formFor(n.id).controls.paidOn.hasError("matDatepickerMax")?7:-1);}}function BWe(t,i){if(t&1&&(h(0),$(1,"date")),t&2){let e=y().$implicit;G(" ",$s(1,1,e.paidOn,"dd/MM/yyyy")," ");}}function $We(t,i){if(t&1&&(d(0,"td",146),T(1,FWe,8,9,"mat-form-field",147)(2,BWe,2,4),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function VWe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function UWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Total is required"),u());}function HWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Cannot be negative"),u());}function zWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",155),Ee(),T(2,UWe,2,0,"mat-error"),T(3,HWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("formControl",n.formFor(e.id).controls.total),F("aria-label","Total of row "+e.id),Se(),m(),D(n.formFor(e.id).controls.total.hasError("required")?2:-1),m(),D(n.formFor(e.id).controls.total.hasError("min")?3:-1);}}function GWe(t,i){if(t&1&&(h(0),$(1,"currency")),t&2){let e=y().$implicit;G(" ",$s(1,1,e.total,"EUR")," ");}}function qWe(t,i){if(t&1&&(d(0,"td",154),T(1,zWe,4,4,"mat-form-field",147)(2,GWe,2,4),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function jWe(t,i){t&1&&(d(0,"th",156),h(1," Actions "),u());}function YWe(t,i){if(t&1){let e=xe();d(0,"button",159),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.saveEdit(r.id))}),d(1,"mat-icon"),h(2,"check"),u()(),d(3,"button",159),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.cancelEdit(r.id))}),d(4,"mat-icon"),h(5,"close"),u()();}if(t&2){let e=y().$implicit;F("aria-label","Save changes to "+e.name),m(3),F("aria-label","Discard changes to "+e.name);}}function WWe(t,i){if(t&1){let e=xe();d(0,"button",160),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.startEdit(r))}),d(1,"mat-icon"),h(2,"edit"),u()();}if(t&2){let e=y().$implicit,n=y();b("id",n.editButtonId(e.id))("disabled",e.locked)("matTooltip",e.locked?"Already paid out \u2014 no longer editable":"Edit row"),F("aria-label","Edit "+e.name);}}function KWe(t,i){if(t&1&&(d(0,"td",157),T(1,YWe,6,2)(2,WWe,3,4,"button",158),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}var QWe=[{id:1,name:"Janssens, Marie",office:"Brussel",period:"January 2026",total:"\u20AC 1.284,60"},{id:2,name:"Peeters, Tom",office:"Antwerpen",period:"January 2026",total:"\u20AC 962,00"},{id:3,name:"Dubois, Claire",office:"Li\xE8ge",period:"January 2026",total:"\u20AC 1.431,25"},{id:4,name:"Van Damme, Lars",office:"Gent",period:"January 2026",total:"\u20AC 744,15"},{id:5,name:"Mertens, Hind",office:"Brugge",period:"January 2026",total:"\u20AC 0,00"}],ZWe={1:[{code:"A01",label:"Full unemployment benefit",days:18,amount:"\u20AC 902,40"},{code:"A07",label:"Seniority supplement",days:18,amount:"\u20AC 241,20"},{code:"C12",label:"Commuting allowance",days:12,amount:"\u20AC 141,00"}],2:[{code:"A01",label:"Full unemployment benefit",days:14,amount:"\u20AC 728,00"},{code:"B03",label:"Temporary unemployment \u2014 economic",days:4,amount:"\u20AC 234,00"}],3:[{code:"A01",label:"Full unemployment benefit",days:20,amount:"\u20AC 1.002,00"},{code:"A07",label:"Seniority supplement",days:20,amount:"\u20AC 268,00"},{code:"C12",label:"Commuting allowance",days:15,amount:"\u20AC 161,25"}],4:[{code:"B03",label:"Temporary unemployment \u2014 economic",days:11,amount:"\u20AC 643,50"},{code:"C12",label:"Commuting allowance",days:9,amount:"\u20AC 100,65"}]},XWe=["Brussel","Antwerpen","Li\xE8ge","Gent","Brugge","Namur"],JWe=[{id:1,name:"Janssens, Marie",office:"Brussel",period:"January 2026",paidOn:new Date(2026,1,3),total:1284.6},{id:2,name:"Peeters, Tom",office:"Antwerpen",period:"January 2026",paidOn:new Date(2026,1,5),total:962},{id:3,name:"Dubois, Claire",office:"Li\xE8ge",period:"January 2026",paidOn:new Date(2026,1,5),total:1431.25},{id:4,name:"Van Damme, Lars",office:"Gent",period:"January 2026",paidOn:new Date(2026,1,10),total:744.15},{id:5,name:"Mertens, Hind",office:"Brugge",period:"January 2026",paidOn:new Date(2026,1,2),total:0,locked:true}],ioe=(()=>{class t extends ie{hasDetails(e){return this.detailsFor(e.id).length>0}isExpanded(e){return this.expandedIds().has(e)}toggleExpanded(e){this.expandedIds.update(n=>{let r=new Set(n);return r.delete(e)||r.add(e),r});}collapseAll(){this.expandedIds.set(new Set);}detailsFor(e){return ZWe[e]??[]}detailRowId(e){return `demo-table-benefit-detail-${e}`}isTreeExpanded(e){return this.treeExpandedIds().has(e)}toggleTreeExpanded(e){this.treeExpandedIds.update(n=>{let r=new Set(n);return r.delete(e)||r.add(e),r});}collapseAllTree(){this.treeExpandedIds.set(new Set);}treeChildRowId(e,n){return `demo-table-tree-${e}-${n}`}treeChildRowIds(e){return this.detailsFor(e).map(n=>this.treeChildRowId(e,n.code)).join(" ")}isEditing(e){return this.editingIds().has(e)}formFor(e){let n=this.editForms.get(e);if(!n)throw new Error(`No inline-edit form for row ${e}.`);return n}startEdit(e){e.locked||this.isEditing(e.id)||(this.editForms.set(e.id,this.buildForm(e)),this.editingIds.update(n=>new Set(n).add(e.id)),this.announcer.announce(`Editing ${e.name}`),this.focusAfterRender(this.firstControlId(e.id)));}cancelEdit(e){this.isEditing(e)&&(this.editForms.delete(e),this.editingIds.update(n=>{let r=new Set(n);return r.delete(e),r}),this.announcer.announce("Changes discarded"),this.focusAfterRender(this.editButtonId(e)));}saveEdit(e){let n=this.editForms.get(e);if(!n)return false;if(n.markAllAsTouched(),n.invalid)return this.announcer.announce("Row has errors and was not saved"),false;let r$1=n.getRawValue();return this.editRows.update(o=>o.map(a=>a.id===e?r(r({},a),r$1):a)),this.editForms.delete(e),this.editingIds.update(o=>{let a=new Set(o);return a.delete(e),a}),this.announcer.announce("Row saved"),this.focusAfterRender(this.editButtonId(e)),true}saveAll(){let e=[...this.editingIds()],n=e.filter(r=>!this.saveEdit(r));n.length>0&&(this.announcer.announce(`${e.length-n.length} rows saved, ${n.length} still have errors`),this.focusAfterRender(this.firstControlId(n[0])));}cancelAll(){this.editForms.clear(),this.editingIds.set(new Set),this.announcer.announce("All changes discarded");}editButtonId(e){return `demo-table-inline-edit-${e}`}firstControlId(e){return `demo-table-inline-name-${e}`}buildForm(e){return new Gr({name:new Ne(e.name,{nonNullable:true,validators:[Mt.required,Mt.maxLength(60)]}),office:new Ne(e.office,{nonNullable:true,validators:[Mt.required]}),paidOn:new Ne(new Date(e.paidOn),{nonNullable:true,validators:[Mt.required]}),total:new Ne(e.total,{nonNullable:true,validators:[Mt.required,Mt.min(0)]})})}focusAfterRender(e){mn(()=>document.getElementById(e)?.focus(),{injector:this.injector});}constructor(){super(),this.paginator=et.required(rl),this.sort=et.required(ql),this.table=et.required(il),this.matCheckboxes=DS(),this.checkboxes=[],this.undetermined=false,this.checked=false,this.allColumns=["check","id","name","description","suspension","more"],this.allSubColumns=["check","id","name","description","delay","days","more"],this.columns=["id","name","description"],this.search=new Ne(""),this.benefitRows=QWe,this.benefitColumns=["id","name","office","period","total","expand"],this.detailColumns=["detail"],this.expandedIds=W(new Set),this.expandedCount=se(()=>this.expandedIds().size),this.hasDetailRow=(e,n)=>this.hasDetails(n),this.treeColumns=["tree-id","tree-name","tree-office","tree-period","tree-total","tree-expand"],this.treeDetailColumns=["tree-detail-code","tree-detail-label","tree-detail-office","tree-detail-days","tree-detail-amount","tree-detail-expand"],this.treeExpandedIds=W(new Set),this.treeExpandedCount=se(()=>this.treeExpandedIds().size),this.treeRows=se(()=>{let e=this.treeExpandedIds();return this.benefitRows.flatMap((n,r)=>{let o=e.has(n.id)?this.detailsFor(n.id):[];return [{kind:"parent",key:`parent-${n.id}`,groupIndex:r,lastInGroup:o.length===0,row:n},...o.map((a,s)=>({kind:"child",key:`child-${n.id}-${a.code}`,groupIndex:r,lastInGroup:s===o.length-1,parent:n,detail:a}))]})}),this.isTreeChildRow=(e,n)=>n.kind==="child",this.treeTrackBy=(e,n)=>n.key,this.editRows=W(JWe),this.inlineRows=this.editRows.asReadonly(),this.offices=XWe,this.inlineColumns=["inline-id","inline-name","inline-office","inline-period","inline-paid-on","inline-total","inline-actions"],this.OnemrvaMatDatepickerHeaderComponent=Uc,this.today=new Date,this.editingIds=W(new Set),this.editForms=new Map,this.editingCount=se(()=>this.editingIds().size),this.announcer=_(wd),this.injector=_(He),this.dialog=_(Cs),this.elementsService=_(toe),this.dataSource=new I1(this.elementsService),this.search.valueChanges.pipe(ei()).subscribe(e=>{console.log(e),setTimeout(()=>{this.updateToggleAllStatus();},100);});}showHideColumns(){let e=["large"];this.dialog.open(k1,{data:{allColumns:this.allColumns,allSubColumns:this.allSubColumns,columns:this.columns},panelClass:e}).afterClosed().pipe(mt(1)).subscribe(r=>{r!==void 0&&(this.allColumns=["check"],this.allSubColumns=["check"],r.forEach((o,a)=>{o&&(this.allColumns.push(this.columns[a]),this.allSubColumns.push(this.columns[a]));}),this.allColumns.push("suspension"),this.allColumns.push("more"),this.allSubColumns.push("delay"),this.allSubColumns.push("days"),this.allSubColumns.push("more"));});}ngAfterViewInit(){this.dataSource.sort=this.sort(),this.dataSource.paginator=this.paginator(),this.dataSource.search=this.search,this.table().dataSource=this.dataSource;}columnIsVisible(e){return this.allColumns.includes(e)}subColumnIsVisible(e){return this.allSubColumns.includes(e)}edit(e){alert(`Edit row n\xB0${e.id}: ${e.name}`);}delete(e){this.dataSource.delete(e.id);}share(e){alert(`Share row n\xB0${e.id}: ${e.name}`);}clear(){this.search.setValue("");}changePage(e){console.log(e),setTimeout(()=>{this.updateToggleAllStatus();},100);}showNotice(){return this.checkboxes.length>0}isChecked(e){return this.checkboxes.includes(e)}toggleOne(e,n){let r=e.checked;this.toggleCheckBox(n,r),this.updateToggleAllStatus();}toggleCheckBox(e,n){n?this.checkboxes.includes(e)||this.checkboxes.push(e):this.checkboxes.splice(this.checkboxes.indexOf(e),1);}toggleAllVisible(e){let n=e.checked;this.checked=n,this.matCheckboxes().forEach(r=>{let o=parseInt(r.value);this.toggleCheckBox(o,n);}),this.updateToggleAllStatus();}updateToggleAllStatus(){this.undetermined=false,this.checked=false;let e=0;this.matCheckboxes().forEach(n=>{let r=parseInt(n.value);this.checkboxes.includes(r)&&e++;}),e>0&&(e===this.matCheckboxes().length?this.checked=true:this.undetermined=true);}selectAll(){this.dataSource.all().pipe(mt(1)).subscribe(e=>{this.checkboxes=e,this.updateToggleAllStatus();});}deSelectAll(){this.checkboxes=[],this.updateToggleAllStatus();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-table"]],viewQuery:function(n,r){n&1&&gt(r.paginator,rl,5)(r.sort,ql,5)(r.table,il,5)(r.matCheckboxes,Gje,5),n&2&&Qe(4);},features:[he([tf()]),A],decls:142,vars:41,consts:[["paginator",""],["checkboxes",""],["menu","matMenu"],["paidOnPicker",""],[1,"search"],["matInput","",3,"formControl"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["tabindex","0",3,"click"],["mat-table","","matSort","","aria-label","Elements",1,"full-width-table","multi-table-row-header"],["mat-header-row","",4,"matHeaderRowDef"],["mat-header-row","","class","compact",4,"matHeaderRowDef"],["mat-header-row","","class","onemrva-notice-row",3,"class",4,"matHeaderRowDef"],["matColumnDef","notice"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","noresult",4,"matNoDataRow"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id","sticky",""],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","suspension"],["matColumnDef","delay"],["matColumnDef","days"],["matColumnDef","more"],[1,"my-m"],["previousKey","Previous","nextKey","Next",3,"page","pageSizeSelector","pageSizeOptions","pageSizeDefaultOption","pageSize"],["mat-button","","type","button","aria-label","Collapse all expanded rows",3,"click","disabled"],[1,"demo-expandable-table-scroll"],["mat-table","","multiTemplateDataRows","","aria-label","Benefit payments per beneficiary",1,"full-width-table","demo-expandable-table",3,"dataSource"],["mat-row","","class","demo-expandable-row",3,"demo-expandable-row--striped","demo-expandable-row--open",4,"matRowDef","matRowDefColumns"],["mat-row","","class","demo-expandable-detail-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["matColumnDef","expand"],["mat-header-cell","","class","demo-expandable-toggle-cell",4,"matHeaderCellDef"],["mat-cell","","class","demo-expandable-toggle-cell",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","compact",4,"matHeaderCellDef"],["mat-cell","","class","compact",4,"matCellDef"],["matColumnDef","office"],["matColumnDef","period"],["matColumnDef","total"],["mat-header-cell","","class","align-right",4,"matHeaderCellDef"],["mat-cell","","class","align-right",4,"matCellDef"],["matColumnDef","detail"],["mat-cell","","class","demo-expandable-detail-cell",3,"demo-expandable-detail-cell--open",4,"matCellDef"],["mat-table","","aria-label","Benefit payments per beneficiary, with sub-rows",1,"full-width-table","demo-tree-table",3,"dataSource","trackBy"],["mat-row","","class","demo-tree-row",3,"demo-tree-row--striped","demo-tree-row--grouped",4,"matRowDef","matRowDefColumns"],["mat-row","","class","demo-tree-row demo-tree-row--child",3,"demo-tree-row--striped","demo-tree-row--grouped",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["matColumnDef","tree-id"],["matColumnDef","tree-name"],["matColumnDef","tree-office"],["matColumnDef","tree-period"],["matColumnDef","tree-total"],["matColumnDef","tree-expand"],["mat-header-cell","","class","demo-tree-toggle-cell",4,"matHeaderCellDef"],["mat-cell","","class","demo-tree-toggle-cell",4,"matCellDef"],["matColumnDef","tree-detail-code"],["mat-cell","","class","compact demo-tree-child-cell",4,"matCellDef"],["matColumnDef","tree-detail-label"],["matColumnDef","tree-detail-office"],["matColumnDef","tree-detail-days"],["matColumnDef","tree-detail-amount"],["matColumnDef","tree-detail-expand"],[1,"demo-inline-edit-bar"],[1,"demo-inline-edit-table-scroll"],["mat-table","","aria-label","Benefits, editable in place",1,"full-width-table","demo-inline-edit-table",3,"dataSource"],["mat-row","","class","demo-inline-edit-row",3,"demo-inline-edit-row--editing","keydown.enter","keydown.escape",4,"matRowDef","matRowDefColumns"],["matColumnDef","inline-id"],["matColumnDef","inline-name"],["mat-cell","","class","demo-inline-edit-cell",4,"matCellDef"],["matColumnDef","inline-office"],["matColumnDef","inline-period"],["matColumnDef","inline-paid-on"],["matColumnDef","inline-total"],["mat-cell","","class","align-right demo-inline-edit-cell",4,"matCellDef"],["matColumnDef","inline-actions"],["mat-header-cell","","class","demo-inline-edit-actions",4,"matHeaderCellDef"],["mat-cell","","class","demo-inline-edit-actions",4,"matCellDef"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-header-row",""],["mat-header-row","",1,"compact"],["mat-header-row","",1,"onemrva-notice-row"],["colspan","7",4,"matHeaderCellDef"],["colspan","7"],["tabindex","0"],["mat-row",""],[1,"noresult"],[3,"clear"],["mat-header-cell",""],["aria-label","Check All","value","toggleAll",3,"change","checked","indeterminate"],["mat-cell",""],[3,"change","aria-label","value","checked"],["mat-header-cell","","class","compact","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header","",1,"compact"],["mat-cell","",1,"compact"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"id",4,"matCellDef"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"id"],["href","/#table"],["mat-header-cell","","mat-sort-header","description","class","d-table-cell-large description-cell",4,"matHeaderCellDef"],["mat-cell","","class","d-table-cell-large description-cell",4,"matCellDef"],["mat-header-cell","","mat-sort-header","description",1,"d-table-cell-large","description-cell"],["mat-cell","",1,"d-table-cell-large","description-cell"],["mat-header-cell","","class","align-center compact table__border-left table__border-right",4,"matHeaderCellDef"],["mat-header-cell","",1,"align-center","compact","table__border-left","table__border-right"],["mat-header-cell","","class","compact align-center table__border-left",4,"matHeaderCellDef"],["mat-cell","","class","align-center table__border-left",4,"matCellDef"],["mat-header-cell","",1,"compact","align-center","table__border-left"],["mat-cell","",1,"align-center","table__border-left"],["mat-header-cell","","class","compact align-center table__border-right",4,"matHeaderCellDef"],["mat-cell","","class","align-center table__border-right",4,"matCellDef"],["mat-header-cell","",1,"compact","align-center","table__border-right"],["mat-cell","",1,"align-center","table__border-right"],["mat-cell","","class","compact align-right",4,"matCellDef"],["mat-header-cell","",1,"compact"],["mat-cell","",1,"compact","align-right"],["mat-icon-button","","aria-label","More",3,"matMenuTriggerFor"],["mat-menu-item","","aria-label","Edit",3,"click"],["mat-menu-item","","aria-label","Delete",3,"click"],["mat-menu-item","","aria-label","Share",3,"click"],["mat-row","",1,"demo-expandable-row"],["mat-row","",1,"demo-expandable-detail-row"],["mat-header-cell","",1,"demo-expandable-toggle-cell"],["mat-cell","",1,"demo-expandable-toggle-cell"],[3,"isExpanded","detailRowId"],[3,"expandedChange","isExpanded","detailRowId"],["mat-header-cell","",1,"align-right"],["mat-cell","",1,"align-right"],["mat-cell","",1,"demo-expandable-detail-cell"],[1,"demo-expandable-detail"],[1,"demo-expandable-detail__inner"],["role","table",1,"demo-expandable-detail__grid"],["role","row",1,"demo-expandable-detail__row"],["role","columnheader",1,"demo-expandable-detail__header"],["role","columnheader",1,"demo-expandable-detail__header","demo-expandable-detail__numeric"],["role","cell"],["role","cell",1,"demo-expandable-detail__numeric"],["mat-row","",1,"demo-tree-row"],["mat-row","",1,"demo-tree-row","demo-tree-row--child"],["mat-header-cell","",1,"demo-tree-toggle-cell"],["mat-cell","",1,"demo-tree-toggle-cell"],["mat-cell","",1,"compact","demo-tree-child-cell"],["mat-button","","type","button","aria-label","Save every row in edit mode",3,"click"],["mat-button","","type","button","aria-label","Discard every row in edit mode",3,"click"],["mat-row","",1,"demo-inline-edit-row",3,"keydown.enter","keydown.escape"],["mat-cell","",1,"demo-inline-edit-cell"],["subscriptSizing","dynamic"],["matInput","",3,"id","formControl"],[3,"formControl"],[3,"value"],["onemrvaDateFormat","","matInput","",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],[3,"calendarHeaderComponent"],["mat-cell","",1,"align-right","demo-inline-edit-cell"],["matInput","","type","number","step","0.01",3,"formControl"],["mat-header-cell","",1,"demo-inline-edit-actions"],["mat-cell","",1,"demo-inline-edit-actions"],["mat-icon-button","","type","button",3,"id","disabled","matTooltip"],["mat-icon-button","","type","button",3,"click"],["mat-icon-button","","type","button",3,"click","id","disabled","matTooltip"]],template:function(n,r){n&1&&(d(0,"h1"),h(1,"Table"),u(),d(2,"mat-form-field",4)(3,"mat-label"),h(4,"Search"),u(),O(5,"input",5),Ee(),T(6,Qje,3,0,"button",6),u(),d(7,"p")(8,"a",7),I("click",function(){return r.showHideColumns()}),h(9,"Hide/Show column"),u()(),d(10,"table",8),ee(11,Zje,1,0,"tr",9)(12,Xje,1,0,"tr",10)(13,Jje,1,2,"tr",11),T(14,iYe,2,0,"ng-container",12),ee(15,rYe,1,0,"tr",13)(16,oYe,3,0,"tr",14),ot(17,15),ee(18,aYe,3,3,"th",16)(19,sYe,3,4,"td",17),at(),T(20,dYe,3,0,"ng-container",18),T(21,pYe,3,0,"ng-container",19),T(22,fYe,3,0,"ng-container",20),T(23,bYe,2,0,"ng-container",21),T(24,CYe,3,0,"ng-container",22),T(25,wYe,3,0,"ng-container",23),T(26,DYe,3,0,"ng-container",24),u(),d(27,"div",25)(28,"onemrva-mat-paginator",26,0),I("page",function(a){return r.changePage(a)}),u()(),d(30,"h2"),h(31,"Expandable row"),u(),d(32,"p"),h(33,` A row can expand to reveal its own sub-rows. Several rows can be open at the same time, so two payments can be compared side by side. A row without sub-rows has no toggle to press and no detail row of its own.
9460
+ `],encapsulation:2});}}return t})();var toe=(()=>{class t{constructor(){this.cdn=_(to),this.deletedItems=[];}getElementsList(e,n,r,o,a=""){return this.cdn.fetch("/json/elements.json").pipe(ce(s=>s),ce(s=>{let l=this.filterElements(s,a),c=l.length,p=l.sort((v,C)=>{let x=v[e],k=C[e],M=x>k?1:x<k?-1:0;return n==="asc"?M:-M}),f=r*o,g=p.slice(f,f+o);return {page:r,pageSize:o,length:c,list:g}}))}getAllElementsIds(e=""){return this.cdn.fetch("/json/elements.json").pipe(ce(n=>n),ce(n=>this.filterElements(n,e).map(r=>r.id)))}filterElements(e,n){let r=e.filter(o=>!this.deletedItems.includes(o.id));return n?r.filter(o=>o.name.toLowerCase().includes(n.toLowerCase())||o.description.toLowerCase().includes(n.toLowerCase())):r}deleteElement(e){this.deletedItems.includes(e)||(this.deletedItems.push(e),console.log(this.deletedItems));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=Re({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function zje(t,i){if(t&1&&(d(0,"onemrva-mat-choice-chip",1),h(1),u(),Ee()),t&2){let e=i.$implicit,n=i.$index,r=y();b("formControl",r.formGet(n)),Se(),m(),G(" ",e," ");}}var k1=(()=>{class t extends ie{constructor(){super(),this.dialogRef=_(Up),this.data=_(Pf),this.allColumns=this.data.allColumns,this.savedValues=W(this.data.columns),this.fb=_(el),this.formArray=new Ly(this.data.columns.map(e=>{let n=this.allColumns.includes(e);return new Ne(n)})),this.formArray.valueChanges.subscribe(e=>{this.savedValues.set(e);});}formGet(e){return this.formArray.at(e)}onNoClick(){this.dialogRef.close();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-content-dialog"]],features:[he([{provide:Pf,useValue:{columns:[],allColumns:[],allSubColumns:[]}}]),A],decls:10,vars:1,consts:[["mat-dialog-title",""],["color","primary",1,"mr",3,"formControl"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,r){n&1&&(d(0,"h2",0),h(1,"Choose columns"),u(),d(2,"mat-dialog-content"),fe(3,zje,2,2,"onemrva-mat-choice-chip",1,Yt),u(),d(5,"mat-dialog-actions")(6,"button",2),I("click",function(){return r.onNoClick()}),h(7,"Cancel"),u(),d(8,"button",3),h(9," Save "),u()()),n&2&&(m(3),ge(r.data.columns),m(5),b("mat-dialog-close",r.savedValues()));},dependencies:[al,e1,t1,i1,n1,sn,Ge,Ye,ut,Fn,jT],encapsulation:2});}}return t})();var noe=(()=>{class t{constructor(){this.isExpanded=E.required(),this.detailRowId=E.required(),this.expandedChange=Qt();}_onClick(e){e.stopPropagation(),this.expandedChange.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["onemrva-expandable-table-icon"]],inputs:{isExpanded:[1,"isExpanded"],detailRowId:[1,"detailRowId"]},outputs:{expandedChange:"expandedChange"},decls:3,vars:5,consts:[["mat-icon-button","","type","button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","12","viewBox","0 0 20 12","fill","none"],["d","M18.2083 -0.000162005L20 1.7915L10 11.7915L-3.93748e-07 1.83317L1.79167 0.0415055L10 8.24984L18.2083 -0.000162005Z","fill","#625D9C"]],template:function(n,r){n&1&&(d(0,"button",0),I("click",function(a){return r._onClick(a)}),pi(),d(1,"svg",1),O(2,"path",2),u()()),n&2&&(F("aria-expanded",r.isExpanded())("aria-controls",r.detailRowId())("aria-label",r.isExpanded()?"Collapse":"Expand"),m(),pt(r.isExpanded()?"isExpanded":""));},dependencies:[kn],styles:["[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;transform-origin:50% 50%;transition:transform .2s cubic-bezier(.4,0,.2,1)}[_nghost-%COMP%] svg.isExpanded[_ngcontent-%COMP%]{transform:rotate(180deg)}@media(prefers-reduced-motion:reduce){[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:none}}"]});}}return t})();var Gje=["checkboxes"],qje=()=>["delay","days"],jje=()=>["notice"],Yje=()=>[],Wje=()=>[5,10,20,50],Kje=(t,i)=>i.code;function Qje(t,i){if(t&1){let e=xe();d(0,"button",78),I("click",function(){Z(e);let r=y();return X(r.clear())}),d(1,"mat-icon"),h(2,"close"),u()();}}function Zje(t,i){t&1&&O(0,"tr",79);}function Xje(t,i){t&1&&O(0,"tr",80);}function Jje(t,i){if(t&1&&O(0,"tr",81),t&2){let e=y();pt(e.showNotice()?"":"hidden");}}function eYe(t,i){if(t&1){let e=xe();d(0,"a",7),I("click",function(){Z(e);let r=y(3);return X(r.selectAll())}),h(1),u(),h(2,"\xA0 ");}if(t&2){y(3);let e=Ve(29);m(),G("Select ",e.length," items");}}function tYe(t,i){if(t&1){let e=xe();d(0,"a",7),I("click",function(){Z(e);let r=y(3);return X(r.deSelectAll())}),h(1),u();}if(t&2){let e=y(3);m(),G("Deselect ",e.checkboxes.length," items");}}function nYe(t,i){if(t&1&&(d(0,"th",83),h(1),T(2,eYe,3,1),T(3,tYe,2,1,"a",84),u()),t&2){let e=y(2),n=Ve(29);m(),G(" You have selected ",e.checkboxes.length," items.\xA0 "),m(),D(e.checkboxes.length<n.length?2:-1),m(),D(e.checkboxes.length>=0?3:-1);}}function iYe(t,i){t&1&&(ot(0,12),ee(1,nYe,4,3,"th",82),at());}function rYe(t,i){t&1&&O(0,"tr",85);}function oYe(t,i){if(t&1){let e=xe();d(0,"tr",86)(1,"td",83)(2,"onemrva-mat-empty-row",87),I("clear",function(){Z(e);let r=y();return X(r.clear())}),u()()();}}function aYe(t,i){if(t&1){let e=xe();d(0,"th",88)(1,"div")(2,"mat-checkbox",89),I("change",function(r){Z(e);let o=y();return X(o.toggleAllVisible(r))}),u()()();}if(t&2){let e=y();F("rowspan",2),m(2),b("checked",e.checked)("indeterminate",e.undetermined);}}function sYe(t,i){if(t&1){let e=xe();d(0,"td",90)(1,"mat-checkbox",91,1),I("change",function(r){let o=Z(e).$implicit,a=y();return X(a.toggleOne(r,o.id))}),u()();}if(t&2){let e=i.$implicit,n=y();m(),Oa("aria-label",ls("Check row ",e.id)),b("value",e.id)("checked",n.isChecked(e.id));}}function lYe(t,i){t&1&&(d(0,"th",93),h(1," Id "),u()),t&2&&F("rowspan",2);}function cYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.id," ");}}function dYe(t,i){t&1&&(ot(0,18),ee(1,lYe,2,1,"th",92)(2,cYe,2,1,"td",37),at());}function uYe(t,i){t&1&&(d(0,"th",97),h(1," Name "),u()),t&2&&F("rowspan",2);}function mYe(t,i){if(t&1&&(d(0,"td",98)(1,"a",99),h(2),u()()),t&2){let e=i.$implicit;b("id",Ft(e.name)),m(2),L(e.name);}}function pYe(t,i){t&1&&(ot(0,19),ee(1,uYe,2,1,"th",95)(2,mYe,3,3,"td",96),at());}function _Ye(t,i){t&1&&(d(0,"th",102),h(1," Description "),u()),t&2&&F("rowspan",2);}function hYe(t,i){if(t&1&&(d(0,"td",103),O(1,"span"),h(2),u()),t&2){let e=i.$implicit;m(2),G(" ",e.description," ");}}function fYe(t,i){t&1&&(ot(0,20),ee(1,_Ye,2,1,"th",100)(2,hYe,3,1,"td",101),at());}function gYe(t,i){t&1&&(d(0,"th",105),h(1," Suspension "),u()),t&2&&F("colspan",2);}function bYe(t,i){t&1&&(ot(0,21),ee(1,gYe,2,1,"th",104),at());}function vYe(t,i){t&1&&(d(0,"th",108),h(1," Delay "),u());}function yYe(t,i){t&1&&(d(0,"td",109),h(1," 1 "),u());}function CYe(t,i){t&1&&(ot(0,22),ee(1,vYe,2,0,"th",106)(2,yYe,2,0,"td",107),at());}function EYe(t,i){t&1&&(d(0,"th",112),h(1," Days "),u());}function SYe(t,i){t&1&&(d(0,"td",113),h(1," 2 "),u());}function wYe(t,i){t&1&&(ot(0,23),ee(1,EYe,2,0,"th",110)(2,SYe,2,0,"td",111),at());}function xYe(t,i){t&1&&(d(0,"th",115),h(1," Menu "),u()),t&2&&F("rowspan",2);}function TYe(t,i){if(t&1){let e=xe();d(0,"td",116)(1,"button",117)(2,"mat-icon"),h(3,"more_vert"),u()(),d(4,"mat-menu",null,2)(6,"button",118),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.edit(r))}),d(7,"mat-icon"),h(8,"edit"),u(),h(9," Edit "),u(),d(10,"button",119),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.delete(r))}),d(11,"mat-icon"),h(12,"delete"),u(),h(13," Delete "),u(),d(14,"button",120),I("click",function(){let r=Z(e).$implicit,o=y(2);return X(o.share(r))}),d(15,"mat-icon"),h(16,"share"),u(),h(17," Share "),u()()();}if(t&2){let e=Ve(5);m(),b("matMenuTriggerFor",e);}}function DYe(t,i){t&1&&(ot(0,24),ee(1,xYe,2,1,"th",36)(2,TYe,18,1,"td",114),at());}function IYe(t,i){t&1&&O(0,"tr",79);}function kYe(t,i){if(t&1&&O(0,"tr",121),t&2){let e=i.$implicit,n=i.dataIndex,r=y();H("demo-expandable-row--striped",n%2===0)("demo-expandable-row--open",r.isExpanded(e.id));}}function MYe(t,i){if(t&1&&O(0,"tr",122),t&2){let e=i.$implicit,n=y();F("id",n.detailRowId(e.id));}}function OYe(t,i){t&1&&(d(0,"th",123),h(1," Details "),u());}function RYe(t,i){if(t&1){let e=xe();d(0,"onemrva-expandable-table-icon",126),I("expandedChange",function(){Z(e);let r=y().$implicit,o=y();return X(o.toggleExpanded(r.id))}),u();}if(t&2){let e=y().$implicit,n=y();b("isExpanded",n.isExpanded(e.id))("detailRowId",n.detailRowId(e.id));}}function AYe(t,i){if(t&1&&(d(0,"td",124),T(1,RYe,1,2,"onemrva-expandable-table-icon",125),u()),t&2){let e=i.$implicit,n=y();m(),D(n.hasDetails(e)?1:-1);}}function NYe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function PYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),L(e.id);}}function LYe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function FYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.name);}}function BYe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function $Ye(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.office);}}function VYe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function UYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.period);}}function HYe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function zYe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.total," ");}}function GYe(t,i){if(t&1&&(d(0,"div",133)(1,"div",136),h(2),u(),d(3,"div",136),h(4),u(),d(5,"div",137),h(6),u(),d(7,"div",137),h(8),u()()),t&2){let e=i.$implicit;m(2),L(e.code),m(2),L(e.label),m(2),G(" ",e.days," "),m(2),G(" ",e.amount," ");}}function qYe(t,i){if(t&1&&(d(0,"td",129)(1,"div",130)(2,"div",131)(3,"div",132)(4,"div",133)(5,"div",134),h(6," Code "),u(),d(7,"div",134),h(8," Benefit "),u(),d(9,"div",135),h(10," Days "),u(),d(11,"div",135),h(12," Amount "),u()(),fe(13,GYe,9,4,"div",133,Kje),u()()()()),t&2){let e=i.$implicit,n=y();H("demo-expandable-detail-cell--open",n.isExpanded(e.id)),F("colspan",n.benefitColumns.length),m(3),F("aria-hidden",n.isExpanded(e.id)?null:"true")("aria-label","Payment details of "+e.name),m(10),ge(n.detailsFor(e.id));}}function jYe(t,i){t&1&&O(0,"tr",79);}function YYe(t,i){if(t&1&&O(0,"tr",138),t&2){let e=i.$implicit;H("demo-tree-row--striped",e.groupIndex%2===0)("demo-tree-row--grouped",!e.lastInGroup);}}function WYe(t,i){if(t&1&&O(0,"tr",139),t&2){let e=i.$implicit,n=y();H("demo-tree-row--striped",e.groupIndex%2===0)("demo-tree-row--grouped",!e.lastInGroup),F("id",n.treeChildRowId(e.parent.id,e.detail.code));}}function KYe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function QYe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.row.id," ");}}function ZYe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function XYe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.name);}}function JYe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function eWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.office);}}function tWe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function nWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.row.period);}}function iWe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function rWe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.row.total," ");}}function oWe(t,i){t&1&&(d(0,"th",140),h(1," Details "),u());}function aWe(t,i){if(t&1){let e=xe();d(0,"onemrva-expandable-table-icon",126),I("expandedChange",function(){Z(e);let r=y().$implicit,o=y();return X(o.toggleTreeExpanded(r.row.id))}),u();}if(t&2){let e=y().$implicit,n=y();b("isExpanded",n.isTreeExpanded(e.row.id))("detailRowId",n.treeChildRowIds(e.row.id));}}function sWe(t,i){if(t&1&&(d(0,"td",141),T(1,aWe,1,2,"onemrva-expandable-table-icon",125),u()),t&2){let e=i.$implicit,n=y();m(),D(n.hasDetails(e.row)?1:-1);}}function lWe(t,i){if(t&1&&(d(0,"td",142),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.detail.code," ");}}function cWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.detail.label);}}function dWe(t,i){t&1&&O(0,"td",90);}function uWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),G("",e.detail.days," days");}}function mWe(t,i){if(t&1&&(d(0,"td",128),h(1),u()),t&2){let e=i.$implicit;m(),G(" ",e.detail.amount," ");}}function pWe(t,i){t&1&&O(0,"td",141);}function _We(t,i){if(t&1){let e=xe();d(0,"p",63),h(1),d(2,"button",143),I("click",function(){Z(e);let r=y();return X(r.saveAll())}),h(3," Save all "),u(),d(4,"button",144),I("click",function(){Z(e);let r=y();return X(r.cancelAll())}),h(5," Discard all "),u()();}if(t&2){let e=y();m(),G(" ",e.editingCount()," row(s) in edit mode.\xA0 ");}}function hWe(t,i){t&1&&O(0,"tr",79);}function fWe(t,i){if(t&1){let e=xe();d(0,"tr",145),I("keydown.enter",function(){let r=Z(e).$implicit,o=y();return X(o.isEditing(r.id)&&o.saveEdit(r.id))})("keydown.escape",function(){let r=Z(e).$implicit,o=y();return X(o.cancelEdit(r.id))}),u();}if(t&2){let e=i.$implicit,n=y();H("demo-inline-edit-row--editing",n.isEditing(e.id));}}function gWe(t,i){t&1&&(d(0,"th",115),h(1,"Id"),u());}function bWe(t,i){if(t&1&&(d(0,"td",94),h(1),u()),t&2){let e=i.$implicit;m(),L(e.id);}}function vWe(t,i){t&1&&(d(0,"th",88),h(1,"Beneficiary"),u());}function yWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Beneficiary is required"),u());}function CWe(t,i){t&1&&(d(0,"mat-error"),h(1,"60 characters at most"),u());}function EWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",148),Ee(),T(2,yWe,2,0,"mat-error"),T(3,CWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("id",n.firstControlId(e.id))("formControl",n.formFor(e.id).controls.name),F("aria-label","Beneficiary of row "+e.id),Se(),m(),D(n.formFor(e.id).controls.name.hasError("required")?2:-1),m(),D(n.formFor(e.id).controls.name.hasError("maxlength")?3:-1);}}function SWe(t,i){if(t&1&&h(0),t&2){let e=y().$implicit;G(" ",e.name," ");}}function wWe(t,i){if(t&1&&(d(0,"td",146),T(1,EWe,4,5,"mat-form-field",147)(2,SWe,1,1),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function xWe(t,i){t&1&&(d(0,"th",88),h(1,"Office"),u());}function TWe(t,i){if(t&1&&(d(0,"mat-option",150),h(1),u()),t&2){let e=i.$implicit;b("value",e),m(),L(e);}}function DWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Office is required"),u());}function IWe(t,i){if(t&1&&(d(0,"mat-form-field",147)(1,"mat-select",149),fe(2,TWe,2,2,"mat-option",150,Yt),u(),Ee(),T(4,DWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("formControl",n.formFor(e.id).controls.office),F("aria-label","Office of row "+e.id),Se(),m(),ge(n.offices),m(2),D(n.formFor(e.id).controls.office.hasError("required")?4:-1);}}function kWe(t,i){if(t&1&&h(0),t&2){let e=y().$implicit;G(" ",e.office," ");}}function MWe(t,i){if(t&1&&(d(0,"td",146),T(1,IWe,5,3,"mat-form-field",147)(2,kWe,1,1),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function OWe(t,i){t&1&&(d(0,"th",88),h(1,"Period"),u());}function RWe(t,i){if(t&1&&(d(0,"td",90),h(1),u()),t&2){let e=i.$implicit;m(),L(e.period);}}function AWe(t,i){t&1&&(d(0,"th",88),h(1,"Paid on"),u());}function NWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Payment date is required"),u());}function PWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Use DD/MM/YYYY"),u());}function LWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Cannot be in the future"),u());}function FWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",151),Ee(),O(2,"mat-datepicker-toggle",152)(3,"mat-datepicker",153,3),T(5,NWe,2,0,"mat-error"),T(6,PWe,2,0,"mat-error"),T(7,LWe,2,0,"mat-error"),u()),t&2){let e=Ve(4),n=y().$implicit,r=y();m(),b("matDatepicker",e)("max",r.today)("formControl",r.formFor(n.id).controls.paidOn),F("aria-label","Payment date of row "+n.id),Se(),m(),b("for",e),m(),b("calendarHeaderComponent",r.OnemrvaMatDatepickerHeaderComponent),m(2),D(r.formFor(n.id).controls.paidOn.hasError("required")?5:-1),m(),D(r.formFor(n.id).controls.paidOn.hasError("matDatepickerParse")?6:-1),m(),D(r.formFor(n.id).controls.paidOn.hasError("matDatepickerMax")?7:-1);}}function BWe(t,i){if(t&1&&(h(0),$(1,"date")),t&2){let e=y().$implicit;G(" ",$s(1,1,e.paidOn,"dd/MM/yyyy")," ");}}function $We(t,i){if(t&1&&(d(0,"td",146),T(1,FWe,8,9,"mat-form-field",147)(2,BWe,2,4),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function VWe(t,i){t&1&&(d(0,"th",127),h(1,"Total"),u());}function UWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Total is required"),u());}function HWe(t,i){t&1&&(d(0,"mat-error"),h(1,"Cannot be negative"),u());}function zWe(t,i){if(t&1&&(d(0,"mat-form-field",147),O(1,"input",155),Ee(),T(2,UWe,2,0,"mat-error"),T(3,HWe,2,0,"mat-error"),u()),t&2){let e=y().$implicit,n=y();m(),b("formControl",n.formFor(e.id).controls.total),F("aria-label","Total of row "+e.id),Se(),m(),D(n.formFor(e.id).controls.total.hasError("required")?2:-1),m(),D(n.formFor(e.id).controls.total.hasError("min")?3:-1);}}function GWe(t,i){if(t&1&&(h(0),$(1,"currency")),t&2){let e=y().$implicit;G(" ",$s(1,1,e.total,"EUR")," ");}}function qWe(t,i){if(t&1&&(d(0,"td",154),T(1,zWe,4,4,"mat-form-field",147)(2,GWe,2,4),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}function jWe(t,i){t&1&&(d(0,"th",156),h(1," Actions "),u());}function YWe(t,i){if(t&1){let e=xe();d(0,"button",159),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.saveEdit(r.id))}),d(1,"mat-icon"),h(2,"check"),u()(),d(3,"button",159),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.cancelEdit(r.id))}),d(4,"mat-icon"),h(5,"close"),u()();}if(t&2){let e=y().$implicit;F("aria-label","Save changes to "+e.name),m(3),F("aria-label","Discard changes to "+e.name);}}function WWe(t,i){if(t&1){let e=xe();d(0,"button",160),I("click",function(){Z(e);let r=y().$implicit,o=y();return X(o.startEdit(r))}),d(1,"mat-icon"),h(2,"edit"),u()();}if(t&2){let e=y().$implicit,n=y();b("id",n.editButtonId(e.id))("disabled",e.locked)("matTooltip",e.locked?"Already paid out \u2014 no longer editable":"Edit row"),F("aria-label","Edit "+e.name);}}function KWe(t,i){if(t&1&&(d(0,"td",157),T(1,YWe,6,2)(2,WWe,3,4,"button",158),u()),t&2){let e=i.$implicit,n=y();m(),D(n.isEditing(e.id)?1:2);}}var QWe=[{id:1,name:"Janssens, Marie",office:"Brussel",period:"January 2026",total:"\u20AC 1.284,60"},{id:2,name:"Peeters, Tom",office:"Antwerpen",period:"January 2026",total:"\u20AC 962,00"},{id:3,name:"Dubois, Claire",office:"Li\xE8ge",period:"January 2026",total:"\u20AC 1.431,25"},{id:4,name:"Van Damme, Lars",office:"Gent",period:"January 2026",total:"\u20AC 744,15"},{id:5,name:"Mertens, Hind",office:"Brugge",period:"January 2026",total:"\u20AC 0,00"}],ZWe={1:[{code:"A01",label:"Full unemployment benefit",days:18,amount:"\u20AC 902,40"},{code:"A07",label:"Seniority supplement",days:18,amount:"\u20AC 241,20"},{code:"C12",label:"Commuting allowance",days:12,amount:"\u20AC 141,00"}],2:[{code:"A01",label:"Full unemployment benefit",days:14,amount:"\u20AC 728,00"},{code:"B03",label:"Temporary unemployment \u2014 economic",days:4,amount:"\u20AC 234,00"}],3:[{code:"A01",label:"Full unemployment benefit",days:20,amount:"\u20AC 1.002,00"},{code:"A07",label:"Seniority supplement",days:20,amount:"\u20AC 268,00"},{code:"C12",label:"Commuting allowance",days:15,amount:"\u20AC 161,25"}],4:[{code:"B03",label:"Temporary unemployment \u2014 economic",days:11,amount:"\u20AC 643,50"},{code:"C12",label:"Commuting allowance",days:9,amount:"\u20AC 100,65"}]},XWe=["Brussel","Antwerpen","Li\xE8ge","Gent","Brugge","Namur"],JWe=[{id:1,name:"Janssens, Marie",office:"Brussel",period:"January 2026",paidOn:new Date(2026,1,3),total:1284.6},{id:2,name:"Peeters, Tom",office:"Antwerpen",period:"January 2026",paidOn:new Date(2026,1,5),total:962},{id:3,name:"Dubois, Claire",office:"Li\xE8ge",period:"January 2026",paidOn:new Date(2026,1,5),total:1431.25},{id:4,name:"Van Damme, Lars",office:"Gent",period:"January 2026",paidOn:new Date(2026,1,10),total:744.15},{id:5,name:"Mertens, Hind",office:"Brugge",period:"January 2026",paidOn:new Date(2026,1,2),total:0,locked:true}],ioe=(()=>{class t extends ie{hasDetails(e){return this.detailsFor(e.id).length>0}isExpanded(e){return this.expandedIds().has(e)}toggleExpanded(e){this.expandedIds.update(n=>{let r=new Set(n);return r.delete(e)||r.add(e),r});}collapseAll(){this.expandedIds.set(new Set);}detailsFor(e){return ZWe[e]??[]}detailRowId(e){return `demo-table-benefit-detail-${e}`}isTreeExpanded(e){return this.treeExpandedIds().has(e)}toggleTreeExpanded(e){this.treeExpandedIds.update(n=>{let r=new Set(n);return r.delete(e)||r.add(e),r});}collapseAllTree(){this.treeExpandedIds.set(new Set);}treeChildRowId(e,n){return `demo-table-tree-${e}-${n}`}treeChildRowIds(e){return this.detailsFor(e).map(n=>this.treeChildRowId(e,n.code)).join(" ")}isEditing(e){return this.editingIds().has(e)}formFor(e){let n=this.editForms.get(e);if(!n)throw new Error(`No inline-edit form for row ${e}.`);return n}startEdit(e){e.locked||this.isEditing(e.id)||(this.editForms.set(e.id,this.buildForm(e)),this.editingIds.update(n=>new Set(n).add(e.id)),this.announcer.announce(`Editing ${e.name}`),this.focusAfterRender(this.firstControlId(e.id)));}cancelEdit(e){this.isEditing(e)&&(this.editForms.delete(e),this.editingIds.update(n=>{let r=new Set(n);return r.delete(e),r}),this.announcer.announce("Changes discarded"),this.focusAfterRender(this.editButtonId(e)));}saveEdit(e){let n=this.editForms.get(e);if(!n)return false;if(n.markAllAsTouched(),n.invalid)return this.announcer.announce("Row has errors and was not saved"),false;let r$1=n.getRawValue();return this.editRows.update(o=>o.map(a=>a.id===e?r(r({},a),r$1):a)),this.editForms.delete(e),this.editingIds.update(o=>{let a=new Set(o);return a.delete(e),a}),this.announcer.announce("Row saved"),this.focusAfterRender(this.editButtonId(e)),true}saveAll(){let e=[...this.editingIds()],n=e.filter(r=>!this.saveEdit(r));n.length>0&&(this.announcer.announce(`${e.length-n.length} rows saved, ${n.length} still have errors`),this.focusAfterRender(this.firstControlId(n[0])));}cancelAll(){this.editForms.clear(),this.editingIds.set(new Set),this.announcer.announce("All changes discarded");}editButtonId(e){return `demo-table-inline-edit-${e}`}firstControlId(e){return `demo-table-inline-name-${e}`}buildForm(e){return new Gr({name:new Ne(e.name,{nonNullable:true,validators:[Mt.required,Mt.maxLength(60)]}),office:new Ne(e.office,{nonNullable:true,validators:[Mt.required]}),paidOn:new Ne(new Date(e.paidOn),{nonNullable:true,validators:[Mt.required]}),total:new Ne(e.total,{nonNullable:true,validators:[Mt.required,Mt.min(0)]})})}focusAfterRender(e){mn(()=>document.getElementById(e)?.focus(),{injector:this.injector});}constructor(){super(),this.paginator=et.required(rl),this.sort=et.required(ql),this.table=et.required(il),this.matCheckboxes=DS(),this.checkboxes=[],this.undetermined=false,this.checked=false,this.allColumns=["check","id","name","description","suspension","more"],this.allSubColumns=["check","id","name","description","delay","days","more"],this.columns=["id","name","description"],this.search=new Ne(""),this.benefitRows=QWe,this.benefitColumns=["id","name","office","period","total","expand"],this.detailColumns=["detail"],this.expandedIds=W(new Set),this.expandedCount=se(()=>this.expandedIds().size),this.hasDetailRow=(e,n)=>this.hasDetails(n),this.treeColumns=["tree-id","tree-name","tree-office","tree-period","tree-total","tree-expand"],this.treeDetailColumns=["tree-detail-code","tree-detail-label","tree-detail-office","tree-detail-days","tree-detail-amount","tree-detail-expand"],this.treeExpandedIds=W(new Set),this.treeExpandedCount=se(()=>this.treeExpandedIds().size),this.treeRows=se(()=>{let e=this.treeExpandedIds();return this.benefitRows.flatMap((n,r)=>{let o=e.has(n.id)?this.detailsFor(n.id):[];return [{kind:"parent",key:`parent-${n.id}`,groupIndex:r,lastInGroup:o.length===0,row:n},...o.map((a,s)=>({kind:"child",key:`child-${n.id}-${a.code}`,groupIndex:r,lastInGroup:s===o.length-1,parent:n,detail:a}))]})}),this.isTreeChildRow=(e,n)=>n.kind==="child",this.treeTrackBy=(e,n)=>n.key,this.editRows=W(JWe),this.inlineRows=this.editRows.asReadonly(),this.offices=XWe,this.inlineColumns=["inline-id","inline-name","inline-office","inline-period","inline-paid-on","inline-total","inline-actions"],this.OnemrvaMatDatepickerHeaderComponent=Uc,this.today=new Date,this.editingIds=W(new Set),this.editForms=new Map,this.editingCount=se(()=>this.editingIds().size),this.announcer=_(wd),this.injector=_(He),this.dialog=_(Cs),this.elementsService=_(toe),this.dataSource=new I1(this.elementsService),this.search.valueChanges.pipe(ei()).subscribe(e=>{console.log(e),setTimeout(()=>{this.updateToggleAllStatus();},100);});}showHideColumns(){let e=["large"];this.dialog.open(k1,{data:{allColumns:this.allColumns,allSubColumns:this.allSubColumns,columns:this.columns},panelClass:e}).afterClosed().pipe(mt(1)).subscribe(r=>{r!==void 0&&(this.allColumns=["check"],this.allSubColumns=["check"],r.forEach((o,a)=>{o&&(this.allColumns.push(this.columns[a]),this.allSubColumns.push(this.columns[a]));}),this.allColumns.push("suspension"),this.allColumns.push("more"),this.allSubColumns.push("delay"),this.allSubColumns.push("days"),this.allSubColumns.push("more"));});}ngAfterViewInit(){this.dataSource.sort=this.sort(),this.dataSource.paginator=this.paginator(),this.dataSource.search=this.search,this.table().dataSource=this.dataSource;}columnIsVisible(e){return this.allColumns.includes(e)}subColumnIsVisible(e){return this.allSubColumns.includes(e)}edit(e){alert(`Edit row n\xB0${e.id}: ${e.name}`);}delete(e){this.dataSource.delete(e.id);}share(e){alert(`Share row n\xB0${e.id}: ${e.name}`);}clear(){this.search.setValue("");}changePage(e){console.log(e),setTimeout(()=>{this.updateToggleAllStatus();},100);}showNotice(){return this.checkboxes.length>0}isChecked(e){return this.checkboxes.includes(e)}toggleOne(e,n){let r=e.checked;this.toggleCheckBox(n,r),this.updateToggleAllStatus();}toggleCheckBox(e,n){n?this.checkboxes.includes(e)||this.checkboxes.push(e):this.checkboxes.splice(this.checkboxes.indexOf(e),1);}toggleAllVisible(e){let n=e.checked;this.checked=n,this.matCheckboxes().forEach(r=>{let o=parseInt(r.value);this.toggleCheckBox(o,n);}),this.updateToggleAllStatus();}updateToggleAllStatus(){this.undetermined=false,this.checked=false;let e=0;this.matCheckboxes().forEach(n=>{let r=parseInt(n.value);this.checkboxes.includes(r)&&e++;}),e>0&&(e===this.matCheckboxes().length?this.checked=true:this.undetermined=true);}selectAll(){this.dataSource.all().pipe(mt(1)).subscribe(e=>{this.checkboxes=e,this.updateToggleAllStatus();});}deSelectAll(){this.checkboxes=[],this.updateToggleAllStatus();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=w({type:t,selectors:[["app-demo-table"]],viewQuery:function(n,r){n&1&&gt(r.paginator,rl,5)(r.sort,ql,5)(r.table,il,5)(r.matCheckboxes,Gje,5),n&2&&Qe(4);},features:[he([tf()]),A],decls:142,vars:41,consts:[["paginator",""],["checkboxes",""],["menu","matMenu"],["paidOnPicker",""],[1,"search"],["matInput","",3,"formControl"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["tabindex","0",3,"click"],["mat-table","","matSort","","aria-label","Elements",1,"full-width-table","multi-table-row-header"],["mat-header-row","",4,"matHeaderRowDef"],["mat-header-row","","class","compact",4,"matHeaderRowDef"],["mat-header-row","","class","onemrva-notice-row",3,"class",4,"matHeaderRowDef"],["matColumnDef","notice"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","noresult",4,"matNoDataRow"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id","sticky",""],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","suspension"],["matColumnDef","delay"],["matColumnDef","days"],["matColumnDef","more"],[1,"my-m"],["previousKey","Previous","nextKey","Next",3,"page","pageSizeSelector","pageSizeOptions","pageSizeDefaultOption","pageSize"],["mat-button","","type","button","aria-label","Collapse all expanded rows",3,"click","disabled"],[1,"demo-expandable-table-scroll"],["mat-table","","multiTemplateDataRows","","aria-label","Benefit payments per beneficiary",1,"full-width-table","demo-expandable-table",3,"dataSource"],["mat-row","","class","demo-expandable-row",3,"demo-expandable-row--striped","demo-expandable-row--open",4,"matRowDef","matRowDefColumns"],["mat-row","","class","demo-expandable-detail-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["matColumnDef","expand"],["mat-header-cell","","class","demo-expandable-toggle-cell",4,"matHeaderCellDef"],["mat-cell","","class","demo-expandable-toggle-cell",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","compact",4,"matHeaderCellDef"],["mat-cell","","class","compact",4,"matCellDef"],["matColumnDef","office"],["matColumnDef","period"],["matColumnDef","total"],["mat-header-cell","","class","align-right",4,"matHeaderCellDef"],["mat-cell","","class","align-right",4,"matCellDef"],["matColumnDef","detail"],["mat-cell","","class","demo-expandable-detail-cell",3,"demo-expandable-detail-cell--open",4,"matCellDef"],["mat-table","","aria-label","Benefit payments per beneficiary, with sub-rows",1,"full-width-table","demo-tree-table",3,"dataSource","trackBy"],["mat-row","","class","demo-tree-row",3,"demo-tree-row--striped","demo-tree-row--grouped",4,"matRowDef","matRowDefColumns"],["mat-row","","class","demo-tree-row demo-tree-row--child",3,"demo-tree-row--striped","demo-tree-row--grouped",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["matColumnDef","tree-id"],["matColumnDef","tree-name"],["matColumnDef","tree-office"],["matColumnDef","tree-period"],["matColumnDef","tree-total"],["matColumnDef","tree-expand"],["mat-header-cell","","class","demo-tree-toggle-cell",4,"matHeaderCellDef"],["mat-cell","","class","demo-tree-toggle-cell",4,"matCellDef"],["matColumnDef","tree-detail-code"],["mat-cell","","class","compact demo-tree-child-cell",4,"matCellDef"],["matColumnDef","tree-detail-label"],["matColumnDef","tree-detail-office"],["matColumnDef","tree-detail-days"],["matColumnDef","tree-detail-amount"],["matColumnDef","tree-detail-expand"],[1,"demo-inline-edit-bar"],[1,"demo-inline-edit-table-scroll"],["mat-table","","aria-label","Benefits, editable in place",1,"full-width-table","demo-inline-edit-table",3,"dataSource"],["mat-row","","class","demo-inline-edit-row",3,"demo-inline-edit-row--editing","keydown.enter","keydown.escape",4,"matRowDef","matRowDefColumns"],["matColumnDef","inline-id"],["matColumnDef","inline-name"],["mat-cell","","class","demo-inline-edit-cell",4,"matCellDef"],["matColumnDef","inline-office"],["matColumnDef","inline-period"],["matColumnDef","inline-paid-on"],["matColumnDef","inline-total"],["mat-cell","","class","align-right demo-inline-edit-cell",4,"matCellDef"],["matColumnDef","inline-actions"],["mat-header-cell","","class","demo-inline-edit-actions",4,"matHeaderCellDef"],["mat-cell","","class","demo-inline-edit-actions",4,"matCellDef"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-header-row",""],["mat-header-row","",1,"compact"],["mat-header-row","",1,"onemrva-notice-row"],["colspan","7",4,"matHeaderCellDef"],["colspan","7"],["tabindex","0"],["mat-row",""],[1,"noresult"],[3,"clear"],["mat-header-cell",""],["aria-label","Check All","value","toggleAll",3,"change","checked","indeterminate"],["mat-cell",""],[3,"change","aria-label","value","checked"],["mat-header-cell","","class","compact","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header","",1,"compact"],["mat-cell","",1,"compact"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"id",4,"matCellDef"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"id"],["href","/#table"],["mat-header-cell","","mat-sort-header","description","class","d-table-cell-large description-cell",4,"matHeaderCellDef"],["mat-cell","","class","d-table-cell-large description-cell",4,"matCellDef"],["mat-header-cell","","mat-sort-header","description",1,"d-table-cell-large","description-cell"],["mat-cell","",1,"d-table-cell-large","description-cell"],["mat-header-cell","","class","align-center compact table__border-left table__border-right",4,"matHeaderCellDef"],["mat-header-cell","",1,"align-center","compact","table__border-left","table__border-right"],["mat-header-cell","","class","compact align-center table__border-left",4,"matHeaderCellDef"],["mat-cell","","class","align-center table__border-left",4,"matCellDef"],["mat-header-cell","",1,"compact","align-center","table__border-left"],["mat-cell","",1,"align-center","table__border-left"],["mat-header-cell","","class","compact align-center table__border-right",4,"matHeaderCellDef"],["mat-cell","","class","align-center table__border-right",4,"matCellDef"],["mat-header-cell","",1,"compact","align-center","table__border-right"],["mat-cell","",1,"align-center","table__border-right"],["mat-cell","","class","compact align-right",4,"matCellDef"],["mat-header-cell","",1,"compact"],["mat-cell","",1,"compact","align-right"],["mat-icon-button","","aria-label","More",3,"matMenuTriggerFor"],["mat-menu-item","","aria-label","Edit",3,"click"],["mat-menu-item","","aria-label","Delete",3,"click"],["mat-menu-item","","aria-label","Share",3,"click"],["mat-row","",1,"demo-expandable-row"],["mat-row","",1,"demo-expandable-detail-row"],["mat-header-cell","",1,"demo-expandable-toggle-cell"],["mat-cell","",1,"demo-expandable-toggle-cell"],[3,"isExpanded","detailRowId"],[3,"expandedChange","isExpanded","detailRowId"],["mat-header-cell","",1,"align-right"],["mat-cell","",1,"align-right"],["mat-cell","",1,"demo-expandable-detail-cell"],[1,"demo-expandable-detail"],[1,"demo-expandable-detail__inner"],["role","table",1,"demo-expandable-detail__grid"],["role","row",1,"demo-expandable-detail__row"],["role","columnheader",1,"demo-expandable-detail__header"],["role","columnheader",1,"demo-expandable-detail__header","demo-expandable-detail__numeric"],["role","cell"],["role","cell",1,"demo-expandable-detail__numeric"],["mat-row","",1,"demo-tree-row"],["mat-row","",1,"demo-tree-row","demo-tree-row--child"],["mat-header-cell","",1,"demo-tree-toggle-cell"],["mat-cell","",1,"demo-tree-toggle-cell"],["mat-cell","",1,"compact","demo-tree-child-cell"],["mat-button","","type","button","aria-label","Save every row in edit mode",3,"click"],["mat-button","","type","button","aria-label","Discard every row in edit mode",3,"click"],["mat-row","",1,"demo-inline-edit-row",3,"keydown.enter","keydown.escape"],["mat-cell","",1,"demo-inline-edit-cell"],["subscriptSizing","dynamic"],["matInput","",3,"id","formControl"],[3,"formControl"],[3,"value"],["onemrvaDateFormat","","matInput","",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],[3,"calendarHeaderComponent"],["mat-cell","",1,"align-right","demo-inline-edit-cell"],["matInput","","type","number","step","0.01",3,"formControl"],["mat-header-cell","",1,"demo-inline-edit-actions"],["mat-cell","",1,"demo-inline-edit-actions"],["mat-icon-button","","type","button",3,"id","disabled","matTooltip"],["mat-icon-button","","type","button",3,"click"],["mat-icon-button","","type","button",3,"click","id","disabled","matTooltip"]],template:function(n,r){n&1&&(d(0,"h1"),h(1,"Table"),u(),d(2,"mat-form-field",4)(3,"mat-label"),h(4,"Search"),u(),O(5,"input",5),Ee(),T(6,Qje,3,0,"button",6),u(),d(7,"p")(8,"a",7),I("click",function(){return r.showHideColumns()}),h(9,"Hide/Show column"),u()(),d(10,"table",8),ee(11,Zje,1,0,"tr",9)(12,Xje,1,0,"tr",10)(13,Jje,1,2,"tr",11),T(14,iYe,2,0,"ng-container",12),ee(15,rYe,1,0,"tr",13)(16,oYe,3,0,"tr",14),ot(17,15),ee(18,aYe,3,3,"th",16)(19,sYe,3,4,"td",17),at(),T(20,dYe,3,0,"ng-container",18),T(21,pYe,3,0,"ng-container",19),T(22,fYe,3,0,"ng-container",20),T(23,bYe,2,0,"ng-container",21),T(24,CYe,3,0,"ng-container",22),T(25,wYe,3,0,"ng-container",23),T(26,DYe,3,0,"ng-container",24),u(),d(27,"div",25)(28,"onemrva-mat-paginator",26,0),I("page",function(a){return r.changePage(a)}),u()(),d(30,"h2"),h(31,"Expandable row"),u(),d(32,"p"),h(33,` A row can expand to reveal its own sub-rows. Several rows can be open at the same time, so two payments can be compared side by side. A row without sub-rows has no toggle to press and no detail row of its own.
9461
9461
  `),u(),d(34,"p")(35,"button",27),I("click",function(){return r.collapseAll()}),h(36),u()(),d(37,"div",28)(38,"table",29),ee(39,IYe,1,0,"tr",9)(40,kYe,1,4,"tr",30)(41,MYe,1,1,"tr",31),ot(42,32),ee(43,OYe,2,0,"th",33)(44,AYe,2,1,"td",34),at(),ot(45,35),ee(46,NYe,2,0,"th",36)(47,PYe,2,1,"td",37),at(),ot(48,19),ee(49,LYe,2,0,"th",16)(50,FYe,2,1,"td",17),at(),ot(51,38),ee(52,BYe,2,0,"th",16)(53,$Ye,2,1,"td",17),at(),ot(54,39),ee(55,VYe,2,0,"th",16)(56,UYe,2,1,"td",17),at(),ot(57,40),ee(58,HYe,2,0,"th",41)(59,zYe,2,1,"td",42),at(),ot(60,43),ee(61,qYe,15,5,"td",44),at(),u()(),d(62,"h2"),h(63,"Expandable row with real rows"),u(),d(64,"p"),h(65,` The same toggle, but the sub-rows are real table rows instead of a grid inside one wide detail cell, so they sit in the table's own columns. A parent and its sub-rows share one stripe and one bottom border, so the group reads as a block, and the stripe alternates per parent whether or not any row is open.
9462
- `),u(),d(66,"p")(67,"button",27),I("click",function(){return r.collapseAllTree()}),h(68),u()(),d(69,"div",28)(70,"table",45),ee(71,jYe,1,0,"tr",9)(72,YYe,1,5,"tr",46)(73,WYe,1,5,"tr",47),ot(74,48),ee(75,KYe,2,0,"th",36)(76,QYe,2,1,"td",37),at(),ot(77,49),ee(78,ZYe,2,0,"th",16)(79,XYe,2,1,"td",17),at(),ot(80,50),ee(81,JYe,2,0,"th",16)(82,eWe,2,1,"td",17),at(),ot(83,51),ee(84,tWe,2,0,"th",16)(85,nWe,2,1,"td",17),at(),ot(86,52),ee(87,iWe,2,0,"th",41)(88,rWe,2,1,"td",42),at(),ot(89,53),ee(90,oWe,2,0,"th",54)(91,sWe,2,1,"td",55),at(),ot(92,56),ee(93,lWe,2,1,"td",57),at(),ot(94,58),ee(95,cWe,2,1,"td",17),at(),ot(96,59),ee(97,dWe,1,0,"td",17),at(),ot(98,60),ee(99,uWe,2,1,"td",17),at(),ot(100,61),ee(101,mWe,2,1,"td",42),at(),ot(102,62),ee(103,pWe,1,0,"td",55),at(),u()(),d(104,"h2"),h(105,"Inline row editing"),u(),d(106,"p"),h(107," The pen switches one row into edit mode. Only some columns become editable \u2014 "),d(108,"em"),h(109,"Id"),u(),h(110," is the row's identity and "),d(111,"em"),h(112,"Period"),u(),h(113,` comes from the payment run, so both keep rendering their value while the rest of the row is a form.
9462
+ `),u(),d(66,"p")(67,"button",27),I("click",function(){return r.collapseAllTree()}),h(68),u()(),d(69,"div",28)(70,"table",45),ee(71,jYe,1,0,"tr",9)(72,YYe,1,4,"tr",46)(73,WYe,1,5,"tr",47),ot(74,48),ee(75,KYe,2,0,"th",36)(76,QYe,2,1,"td",37),at(),ot(77,49),ee(78,ZYe,2,0,"th",16)(79,XYe,2,1,"td",17),at(),ot(80,50),ee(81,JYe,2,0,"th",16)(82,eWe,2,1,"td",17),at(),ot(83,51),ee(84,tWe,2,0,"th",16)(85,nWe,2,1,"td",17),at(),ot(86,52),ee(87,iWe,2,0,"th",41)(88,rWe,2,1,"td",42),at(),ot(89,53),ee(90,oWe,2,0,"th",54)(91,sWe,2,1,"td",55),at(),ot(92,56),ee(93,lWe,2,1,"td",57),at(),ot(94,58),ee(95,cWe,2,1,"td",17),at(),ot(96,59),ee(97,dWe,1,0,"td",17),at(),ot(98,60),ee(99,uWe,2,1,"td",17),at(),ot(100,61),ee(101,mWe,2,1,"td",42),at(),ot(102,62),ee(103,pWe,1,0,"td",55),at(),u()(),d(104,"h2"),h(105,"Inline row editing"),u(),d(106,"p"),h(107," The pen switches one row into edit mode. Only some columns become editable \u2014 "),d(108,"em"),h(109,"Id"),u(),h(110," is the row's identity and "),d(111,"em"),h(112,"Period"),u(),h(113,` comes from the payment run, so both keep rendering their value while the rest of the row is a form.
9463
9463
  `),u(),d(114,"p"),h(115,` Several rows can be open at once. Each one owns its own form, so validity, dirtiness and cancel are row-scoped and cancelling one row leaves the others untouched. Saving writes to the local signal only \u2014 a real screen would call a service and handle the failure path \u2014 and a dirty row is discarded without confirmation, which a real screen would also ask about first.
9464
9464
  `),u(),T(116,_We,6,1,"p",63),d(117,"div",64)(118,"table",65),ee(119,hWe,1,0,"tr",9)(120,fWe,1,2,"tr",66),ot(121,67),ee(122,gWe,2,0,"th",36)(123,bWe,2,1,"td",37),at(),ot(124,68),ee(125,vWe,2,0,"th",16)(126,wWe,3,1,"td",69),at(),ot(127,70),ee(128,xWe,2,0,"th",16)(129,MWe,3,1,"td",69),at(),ot(130,71),ee(131,OWe,2,0,"th",16)(132,RWe,2,1,"td",17),at(),ot(133,72),ee(134,AWe,2,0,"th",16)(135,$We,3,1,"td",69),at(),ot(136,73),ee(137,VWe,2,0,"th",41)(138,qWe,3,1,"td",74),at(),ot(139,75),ee(140,jWe,2,0,"th",76)(141,KWe,3,1,"td",77),at(),u()()),n&2&&(m(5),b("formControl",r.search),Se(),m(),D(r.search.getRawValue()?6:-1),m(5),b("matHeaderRowDef",r.allColumns),m(),b("matHeaderRowDef",qn(37,qje)),m(),b("matHeaderRowDef",r.showNotice()?qn(38,jje):qn(39,Yje)),m(),D(r.showNotice()?14:-1),m(),b("matRowDefColumns",r.allSubColumns),m(5),D(r.columnIsVisible("id")?20:-1),m(),D(r.columnIsVisible("name")?21:-1),m(),D(r.columnIsVisible("description")?22:-1),m(),D(r.columnIsVisible("suspension")?23:-1),m(),D(r.subColumnIsVisible("delay")?24:-1),m(),D(r.subColumnIsVisible("days")?25:-1),m(),D(r.columnIsVisible("more")?26:-1),m(2),b("pageSizeSelector",true)("pageSizeOptions",qn(40,Wje))("pageSizeDefaultOption",5)("pageSize",5),m(7),b("disabled",r.expandedCount()===0),m(),G(" Collapse all (",r.expandedCount(),") "),m(2),b("dataSource",r.benefitRows),m(),b("matHeaderRowDef",r.benefitColumns),m(),b("matRowDefColumns",r.benefitColumns),m(),b("matRowDefColumns",r.detailColumns)("matRowDefWhen",r.hasDetailRow),m(26),b("disabled",r.treeExpandedCount()===0),m(),G(" Collapse all (",r.treeExpandedCount(),") "),m(2),b("dataSource",r.treeRows())("trackBy",r.treeTrackBy),m(),b("matHeaderRowDef",r.treeColumns),m(),b("matRowDefColumns",r.treeColumns),m(),b("matRowDefColumns",r.treeDetailColumns)("matRowDefWhen",r.isTreeChildRow),m(43),D(r.editingCount()>0?116:-1),m(2),b("dataSource",r.inlineRows()),m(),b("matHeaderRowDef",r.inlineColumns),m(),b("matRowDefColumns",r.inlineColumns));},dependencies:[Ge,Ht,SP,Ye,ut,_n,Io,Vc,rt,kn,Jt,it,go,Ba,LT,ql,PT,Zi,Fp,il,Ef,Tf,Sf,Cf,Df,wf,xf,If,kf,Hte,al,We,VT,eoe,h1,rl,no,sn,noe,Kn,bn,Mi,Xt,hi,za,Ha,Xo,ko,Fl,gR,fR],styles:[`table{display:table;overflow:auto;width:100%}table .description-cell{min-width:500px}.demo-expandable-table-scroll{width:100%;overflow:auto}.demo-expandable-table.mat-mdc-table{display:table;overflow:visible}.demo-expandable-table.mat-mdc-table:not(.mat-card-table) tbody tr:nth-child(odd){background-color:transparent}.demo-expandable-table.mat-mdc-table:not(.mat-card-table) tbody tr.demo-expandable-row--striped{background-color:var(--mat-sys-primary-container)}.demo-expandable-table.mat-mdc-table:not(.mat-card-table) tbody tr.demo-expandable-row--striped+tr{background-color:var(--mat-sys-primary-container)}.demo-expandable-table .demo-expandable-toggle-cell{width:4rem;height:var(--mdc-icon-button-state-layer-size, 40px)}.demo-expandable-table.mat-mdc-table tbody tr.demo-expandable-row--open td.mat-mdc-cell{border-bottom:none}.demo-expandable-table.mat-mdc-table tbody tr.demo-expandable-detail-row{height:auto}.demo-expandable-table.mat-mdc-table tbody td.demo-expandable-detail-cell.mat-mdc-cell{padding:0;border-bottom:none}.demo-expandable-table.mat-mdc-table tbody td.demo-expandable-detail-cell--open.mat-mdc-cell{border-bottom:1px solid var(--mat-sys-outline-variant)}.demo-expandable-table .demo-expandable-detail{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s ease-in-out}@media(prefers-reduced-motion:reduce){.demo-expandable-table .demo-expandable-detail{transition:none}}.demo-expandable-table .demo-expandable-detail-cell--open .demo-expandable-detail{grid-template-rows:1fr}.demo-expandable-table .demo-expandable-detail__inner{min-height:0;overflow:hidden}.demo-expandable-table .demo-expandable-detail__grid{padding:var(--spacer) var(--spacer-and-half) var(--spacer-and-half)}.demo-expandable-table .demo-expandable-detail__row{display:grid;grid-template-columns:6rem minmax(12rem,1fr) 5rem 8rem;gap:var(--spacer);padding:var(--half-spacer) 0}.demo-expandable-table .demo-expandable-detail__row:not(:last-child){border-bottom:1px solid var(--mat-sys-outline-variant)}.demo-expandable-table .demo-expandable-detail__header{font-weight:var(--mat-sys-title-small-weight, 500);color:var(--mat-sys-on-surface-variant)}.demo-expandable-table .demo-expandable-detail__numeric{text-align:right}.demo-tree-table.mat-mdc-table{display:table;overflow:visible}.demo-tree-table.mat-mdc-table:not(.mat-card-table) tbody tr:nth-child(odd){background-color:transparent}.demo-tree-table.mat-mdc-table:not(.mat-card-table) tbody tr.demo-tree-row--striped{background-color:var(--mat-sys-primary-container)}.demo-tree-table.mat-mdc-table tbody tr.demo-tree-row--grouped td.mat-mdc-cell{border-bottom:none}.demo-tree-table .demo-tree-toggle-cell{width:4rem;height:var(--mdc-icon-button-state-layer-size, 40px)}.demo-tree-table .demo-tree-child-cell{padding-left:var(--spacer-and-half);color:var(--mat-sys-on-surface-variant)}.demo-tree-table.mat-mdc-table tbody tr.demo-tree-row--child td.mat-mdc-cell{height:auto;padding-top:var(--half-spacer);padding-bottom:var(--half-spacer)}.demo-inline-edit-table-scroll{width:100%;overflow:auto}.demo-inline-edit-bar{display:flex;align-items:center;gap:var(--half-spacer)}.demo-inline-edit-table.mat-mdc-table{display:table;overflow:visible}.demo-inline-edit-table.mat-mdc-table tbody tr.demo-inline-edit-row td.mat-mdc-cell{height:4.5rem}.demo-inline-edit-table .demo-inline-edit-cell{min-width:12rem}.demo-inline-edit-table .demo-inline-edit-cell .mat-mdc-form-field{width:100%;margin:0}.demo-inline-edit-table .demo-inline-edit-actions{width:7rem;min-width:7rem;white-space:nowrap}.demo-inline-edit-table.mat-mdc-table tbody tr.demo-inline-edit-row--editing td.mat-mdc-cell:first-child{box-shadow:inset 3px 0 0 0 var(--mat-sys-primary)}
9465
9465
  `],encapsulation:2});}}return t})();var roe=["*"],ooe=`.mdc-list {