@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.41 → 0.0.0-workstream-forge.44
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/chunk-B6UK0wMR.js +1 -0
- package/browser/{chunk-DSXSbuFQ.js → chunk-BEmYKpv0.js} +2 -2
- package/browser/{chunk-D3Jh3jEf.js → chunk-BTNOhGYT.js} +1 -1
- package/browser/{chunk-D8_jgi_F.js → chunk-CCy3tDN5.js} +6 -6
- package/browser/{chunk-CXdlFaTY.js → chunk-CF7S9z7Z.js} +2 -2
- package/browser/chunk-CH91lkh4.js +1 -0
- package/browser/{chunk-mPPwGF9Z.js → chunk-CUCsmBSU.js} +1 -1
- package/browser/{chunk-BYQRoGco.js → chunk-Cah8Kncm.js} +1 -1
- package/browser/{chunk-3XXEtiG9.js → chunk-DMBZriQW.js} +1 -1
- package/browser/chunk-DqP9fC-M.js +171 -0
- package/browser/chunk-Du47bQ8s.js +1 -0
- package/browser/{chunk-D2T_4uFV.js → chunk-DyXG7Qve.js} +1 -1
- package/browser/{chunk-C5IiG0fv.js → chunk-DzGbMD8K.js} +8 -8
- package/browser/chunk-FosnkIyQ.js +1 -0
- package/browser/{chunk-VjgctRNo.js → chunk-IkmBS9rU.js} +1 -1
- package/browser/{chunk--y250vgl.js → chunk-nhm8xk1A.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/main-GN2IPP5X.js +3475 -0
- package/package.json +1 -1
- package/browser/chunk-8pTJQ6J7.js +0 -1
- package/browser/chunk-BTBrHh1t.js +0 -1
- package/browser/chunk-DhNGq2qN.js +0 -1
- package/browser/chunk-ZBSIdk-i.js +0 -171
- package/browser/main-OM7W2PX3.js +0 -3475
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {I}from'./chunk-nhm8xk1A.js';import {e as ee$1}from'./chunk-IkmBS9rU.js';import {U}from'./chunk-CUCsmBSU.js';import {c as ci,Z as Zt,e as ei,n as ni,t as ti,J as Jt,r as ri,i as ii,o as oi,s as si,a as ai}from'./chunk-BEmYKpv0.js';import {_}from'./chunk-BTNOhGYT.js';import {h,a5 as je,i as Ze,p as pb,V as Vs,aE as O,x as xe,I as IW,_ as _W,A as A8,a as x8,f as fa,b as kC,E as Ed,v as ni$1,d as Yg,z as zg,bS as _d,b4 as jg,bT as Id,Q as Qo,$ as $g,a2 as Cd,y as ri$1,ar as gy,u as uy,e as eC,S as sC,a0 as Vp,a1 as Hp}from'./main-GN2IPP5X.js';import {c}from'./chunk-CH91lkh4.js';function te(e,t){e&1&&(fa(0,"div",5)(1,"mat-icon",29),kC(2,"gpp_bad"),Ed(),fa(3,"span"),kC(4),Ed()()),e&2&&(Qo(4),uy(t));}function ne(e,t){e&1&&(fa(0,"span",11),kC(1),Ed()),e&2&&(Qo(),uy(t.name));}function ie(e,t){e&1&&(fa(0,"div",15),kC(1),Ed()),e&2&&(Qo(),uy(t));}function oe(e,t){e&1&&(fa(0,"th",30),kC(1,"Type"),Ed());}function ae(e,t){if(e&1&&(fa(0,"td",31),kC(1),Ed()),e&2){let i=t.$implicit;Qo(),uy(i.workflowType);}}function re(e,t){e&1&&(fa(0,"th",30),kC(1,"Version"),Ed());}function de(e,t){if(e&1&&(fa(0,"td",32),kC(1),Ed()),e&2){let i=t.$implicit;Qo(),uy(i.version);}}function le(e,t){e&1&&(fa(0,"th",30),kC(1,"Hash"),Ed());}function se(e,t){if(e&1&&(fa(0,"td",33),kC(1),Ed()),e&2){let i=t.$implicit;Qo(),uy(i.definitionHash);}}function me(e,t){e&1&&zg(0,"th",30);}function fe(e,t){if(e&1){let i=eC();fa(0,"td",34)(1,"button",35),Yg("click",function(){let l=Vp(i).$implicit,m=sC();return Hp(m.deleteDefinition(l))}),kC(2),Ed()();}if(e&2){let i=t.$implicit,n=sC();Qo(),$g("disabled",n.adminDisabled()||n.deletingKey()===n.definitionKey(i)),Qo(),Cd(" ",n.deletingKey()===n.definitionKey(i)?"Deleting\u2026":"Delete"," ");}}function pe(e,t){e&1&&zg(0,"tr",36);}function ce(e,t){e&1&&zg(0,"tr",37);}function ue(e,t){if(e&1&&(fa(0,"p",28),kC(1),Ed()),e&2){let i=sC();Qo(),Cd(" ",i.definitionsLoading()?"Loading\u2026":"No definitions registered."," ");}}var Z="FORBIDDEN_ADMIN_REQUIRED";function ge(e){let t=e?.status===403||e?.code===Z,i=typeof e?.message=="string"&&e.message.trim()?e.message.trim():null;return t?{forbidden:true,message:`Access denied: ${i??"admin rights required"} (${Z})`}:{forbidden:false,message:i??"Admin command failed (network or server error)."}}var ee=class e{state=h(c);dialog=h(ee$1);destroyRef=h(je);adminDisabled=Ze(false);forbiddenError=Ze(null);definitions=this.state.definitions;definitionsLoading=this.state.loading;uploading=this.state.uploading;selectedFile=Ze(null);definitionsError=Ze(null);deletingKey=this.state.deletingKey;definitionColumns=["workflowType","version","definitionHash","actions"];constructor(){h(pb).crumbs.set([{label:"Workflow definitions"}]),Vs(()=>{let t=this.state.error();t&&this.applyError(t,i=>this.definitionsError.set(i));}),this.loadDefinitions();}loadDefinitions(){this.adminDisabled()||this.state.load();}onFileSelected(t){let i=t.target;this.selectedFile.set(i.files?.[0]??null);}uploadDefinition(){if(this.adminDisabled()||this.uploading())return;let t=this.selectedFile();if(!t){this.definitionsError.set("Please select a JSON definition file.");return}this.definitionsError.set(null),this.state.upload(t).pipe(U(this.destroyRef)).subscribe({next:()=>{this.selectedFile.set(null),this.loadDefinitions();},error:i=>{this.applyError(i,n=>this.definitionsError.set(n));}});}deleteDefinition(t){if(this.adminDisabled()||this.deletingKey())return;let i=String(t.workflowType??"").trim(),n=String(t.version??"").trim();!i||!n||this.confirm({title:"Delete definition",message:"This will permanently delete the workflow definition. Already running executions are not affected.",detail:`${i}@${n}`,confirmLabel:"Delete",destructive:true}).pipe(U(this.destroyRef)).subscribe(l=>{l&&(this.definitionsError.set(null),this.state.delete(i,n).pipe(U(this.destroyRef)).subscribe({next:()=>this.loadDefinitions(),error:m=>{this.applyError(m,D=>this.definitionsError.set(D));}}));});}definitionKey(t){return `${t.workflowType??""}@${t.version??""}`}confirm(t){return this.dialog.open(I,{data:t,width:"440px"}).afterClosed().pipe(O(i=>i===true))}applyError(t,i){let n=ge(t);n.forbidden?(this.adminDisabled.set(true),this.forbiddenError.set(n.message)):i(n.message);}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=xe({type:e,selectors:[["sf-admin-page"]],features:[gy([c])],decls:44,vars:13,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["dot","",3,"tone"],["role","alert","data-admin-forbidden","true",1,"banner","banner--error"],["data-admin-definitions","true",1,"section","sf-panel"],[1,"section-title"],[1,"sf-muted","section-desc"],[1,"row","file-row"],["type","file","accept",".json,application/json","data-admin-definition-file","true",3,"change","disabled"],["data-admin-definition-filename","true",1,"result-chip"],[1,"sf-spacer"],["mat-flat-button","","data-admin-definition-upload","true",1,"sf-primary",3,"click","disabled"],["mat-stroked-button","","data-admin-definition-refresh","true",1,"sf-secondary",3,"click","disabled"],["role","alert","data-admin-definition-error","true",1,"banner","banner--warn"],["mat-table","",1,"definitions-table",3,"dataSource"],["matColumnDef","workflowType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","sf-mono","data-definition-type","true",4,"matCellDef"],["matColumnDef","version"],["mat-cell","","class","sf-mono","data-definition-version","true",4,"matCellDef"],["matColumnDef","definitionHash"],["mat-cell","","class","sf-mono","data-definition-hash","true",4,"matCellDef"],["matColumnDef","actions"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["data-definition-empty","true",1,"sf-muted","empty"],["aria-hidden","true"],["mat-header-cell",""],["mat-cell","","data-definition-type","true",1,"sf-mono"],["mat-cell","","data-definition-version","true",1,"sf-mono"],["mat-cell","","data-definition-hash","true",1,"sf-mono"],["mat-cell",""],["mat-stroked-button","","data-admin-definition-delete","true",1,"sf-danger",3,"click","disabled"],["mat-header-row",""],["mat-row",""]],template:function(i,n){if(i&1&&(fa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),kC(4,"Workflow definitions"),Ed(),fa(5,"p",3),kC(6,"Import and manage registered workflow definitions."),Ed()(),fa(7,"sf-status-chip",4),kC(8),Ed()(),ni$1(9,te,5,1,"div",5),fa(10,"section",6)(11,"h2",7),kC(12,"Workflow definitions"),Ed(),fa(13,"p",8),kC(14,"Import a JSON definition (v1 format) and manage registered definitions."),Ed(),fa(15,"div",9)(16,"input",10),Yg("change",function(m){return n.onFileSelected(m)}),Ed(),ni$1(17,ne,2,1,"span",11),zg(18,"span",12),fa(19,"button",13),Yg("click",function(){return n.uploadDefinition()}),fa(20,"mat-icon"),kC(21,"upload"),Ed(),kC(22),Ed(),fa(23,"button",14),Yg("click",function(){return n.loadDefinitions()}),fa(24,"mat-icon"),kC(25,"refresh"),Ed(),kC(26," Refresh "),Ed()(),ni$1(27,ie,2,1,"div",15),fa(28,"table",16),_d(29,17),jg(30,oe,2,0,"th",18)(31,ae,2,1,"td",19),Id(),_d(32,20),jg(33,re,2,0,"th",18)(34,de,2,1,"td",21),Id(),_d(35,22),jg(36,le,2,0,"th",18)(37,se,2,1,"td",23),Id(),_d(38,24),jg(39,me,1,0,"th",18)(40,fe,3,2,"td",25),Id(),jg(41,pe,1,0,"tr",26)(42,ce,1,0,"tr",27),Ed(),ni$1(43,ue,2,1,"p",28),Ed()()),i&2){let l,m,D;Qo(7),$g("tone",n.adminDisabled()?"red":"green"),Qo(),Cd(" ",n.adminDisabled()?"Access denied":"Admin"," "),Qo(),ri$1((l=n.forbiddenError())?9:-1,l),Qo(7),$g("disabled",n.adminDisabled()||n.uploading()),Qo(),ri$1((m=n.selectedFile())?17:-1,m),Qo(2),$g("disabled",n.adminDisabled()||n.uploading()),Qo(3),Cd(" ",n.uploading()?"Importing\u2026":"Import definition"," "),Qo(),$g("disabled",n.adminDisabled()||n.definitionsLoading()),Qo(4),ri$1((D=n.definitionsError())?27:-1,D),Qo(),$g("dataSource",n.definitions()),Qo(13),$g("matHeaderRowDef",n.definitionColumns),Qo(),$g("matRowDefColumns",n.definitionColumns),Qo(),ri$1(n.definitions().length===0?43:-1);}},dependencies:[IW,_W,A8,x8,ci,Zt,ei,ni,ti,Jt,ri,ii,oi,si,ai,_],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:1100px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:20px}.section-title[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:700}.section-desc[_ngcontent-%COMP%]{margin:0;font-size:13.5px}.row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-row[_ngcontent-%COMP%]{gap:10px}.file-row[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{color:var(--sf-text-2);font-size:13px}.field[_ngcontent-%COMP%]{width:100%;max-width:480px}.result[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:4px}.result-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:999px;border:1px solid var(--sf-outline-strong);background:var(--sf-surface-2);color:var(--sf-text-2);font-size:13px;font-weight:600}.result-chip--success[_ngcontent-%COMP%]{color:#6ee79a;border-color:#22583a;background:#0e1f16}.result-chip--error[_ngcontent-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.timestamp[_ngcontent-%COMP%]{color:var(--sf-text-muted);font-size:12.5px}.banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:10px;border:1px solid;font-size:13.5px;font-weight:600}.banner[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px}.banner--error[_ngcontent-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.banner--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}.definitions-table[_ngcontent-%COMP%]{width:100%}th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:var(--sf-chrome);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--sf-text-faint)}td.mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-color:#1a1f2c}.empty[_ngcontent-%COMP%]{margin:0;padding:12px 4px;font-size:13.5px}.mat-mdc-unelevated-button.sf-danger[_ngcontent-%COMP%]{background:#6b2a2e;color:#ffd9d9;border-radius:10px;font-weight:700}"]})};export{ee as AdminPageComponent,Z as FORBIDDEN_ADMIN_REQUIRED,ge as describeAdminError};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {cI as dt$1,bq as En,aS as q,cJ as Rv,b7 as Zb,bx as $e$1,cK as Ic,aw as O,B as pe$1,C as ce$1,J as Jr,aD as um,x as xe,aF as qr,H as or,L as tt,v as ni$1,Q as Qo,y as ri$1,aH as gy,F as y,D as Dt,aE as et,aG as Et,cs as Gg,h,aI as Qg,aJ as uC,aK as lC,bg as Bt,cL as Ay,b1 as Ny,aP as ue$1,bz as QS,cd as be,cM as A,bZ as Y,cN as Ee,aN as k,aR as Re,b5 as Aa,bw as yr,cO as ut$1,cP as g,cQ as Se,cR as Z,cS as jb,cT as Yb,cU as Ab,cV as xb,aL as Gr,bK as Ur,aZ as ha,b_ as Gl,f as fa,E as Ed}from'./main-OM7W2PX3.js';var ot=[[["caption"]],[["colgroup"],["col"]],"*"],nt=["caption","colgroup, col","*"];function rt(i,n){i&1&&tt(0,2);}function st(i,n){i&1&&(fa(0,"thead",0),Gg(1,1),Ed(),fa(2,"tbody",0),Gg(3,2)(4,3),Ed(),fa(5,"tfoot",0),Gg(6,4),Ed());}function at(i,n){i&1&&Gg(0,1)(1,2)(2,3)(3,4);}var R=new y("CDK_TABLE");var te=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ie=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Qe=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),U=(()=>{class i{_table=h(R,{optional:true});_hasStickyChanged=false;get name(){return this._name}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=true);}_stickyEnd=false;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,o,r){if(t&1&&Qg(r,te,5)(r,ie,5)(r,Qe,5),t&2){let s;uC(s=lC())&&(o.cell=s.first),uC(s=lC())&&(o.headerCell=s.first),uC(s=lC())&&(o.footerCell=s.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Et],stickyEnd:[2,"stickyEnd","stickyEnd",Et]}})}return i})(),ee=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName);}},We=(()=>{class i extends ee{constructor(){super(h(U),h(ue$1));}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[qr]})}return i})();var $e=(()=>{class i extends ee{constructor(){let e=h(U),t=h(ue$1);super(e,t);let o=e._table?._getCellRole();o&&t.nativeElement.setAttribute("role",o);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[qr]})}return i})();var de=(()=>{class i{template=h(Ur);_differs=h(Ay);columns;_columnsDiffer;ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof W?e.headerCell.template:this instanceof fe?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,features:[ha]})}return i})(),W=(()=>{class i extends de{_table=h(R,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Et]},features:[qr,ha]})}return i})(),fe=(()=>{class i extends de{_table=h(R,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Et]},features:[qr,ha]})}return i})(),oe=(()=>{class i extends de{_table=h(R,{optional:true});when;static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[qr]})}return i})(),N=(()=>{class i{_viewContainer=h(Gr);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this;}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),ue=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})();var he=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),ne=(()=>{class i{templateRef=h(Ur);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),Ue=["top","bottom","left","right"],ce=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=false;constructor(n,e,t=true,o=true,r,s,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=s,this._tableInjector=a,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let t=[];for(let o of n)o.nodeType===o.ELEMENT_NODE&&t.push(o,...Array.from(o.children));Gl({write:()=>{for(let o of t)this._removeStickyStyle(o,e);}},{injector:this._tableInjector});}updateStickyColumns(n,e,t,o=true,r=true){if(!n.length||!this._isBrowser||!(e.some(D=>D)||t.some(D=>D))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let s=n[0],a=s.children.length,c=this.direction==="rtl",d=c?"right":"left",u=c?"left":"right",h=e.lastIndexOf(true),y=t.indexOf(true),_,we,Ce;r&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...t]}),Gl({earlyRead:()=>{_=this._getCellWidths(s,o),we=this._getStickyStartColumnPositions(_,e),Ce=this._getStickyEndColumnPositions(_,t);},write:()=>{for(let D of n)for(let w=0;w<a;w++){let De=D.children[w];e[w]&&this._addStickyStyle(De,d,we[w],w===h),t[w]&&this._addStickyStyle(De,u,Ce[w],w===y);}this._positionListener&&_.some(D=>!!D)&&(this._positionListener.stickyColumnsUpdated({sizes:h===-1?[]:_.slice(0,h+1).map((D,w)=>e[w]?D:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:_.slice(y).map((D,w)=>t[w+y]?D:null).reverse()}));}},{injector:this._tableInjector});}stickRows(n,e,t){if(!this._isBrowser)return;let o=t==="bottom"?n.slice().reverse():n,r=t==="bottom"?e.slice().reverse():e,s=[],a=[],c=[];Gl({earlyRead:()=>{for(let d=0,u=0;d<o.length;d++){if(!r[d])continue;s[d]=u;let h=o[d];c[d]=this._isNativeHtmlTable?Array.from(h.children):[h];let y=this._retrieveElementSize(h).height;u+=y,a[d]=y;}},write:()=>{let d=r.lastIndexOf(true);for(let u=0;u<o.length;u++){if(!r[u])continue;let h=s[u],y=u===d;for(let _ of c[u])this._addStickyStyle(_,t,h,y);}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:a,offsets:s,elements:c}):this._positionListener?.stickyFooterRowsUpdated({sizes:a,offsets:s,elements:c});}},{injector:this._tableInjector});}updateStickyFooterContainer(n,e){this._isNativeHtmlTable&&Gl({write:()=>{let t=n.querySelector("tfoot");t&&(e.some(o=>!o)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,false));}},{injector:this._tableInjector});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=true;}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);Ue.some(o=>e.indexOf(o)===-1&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss));}_addStickyStyle(n,e,t,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${t}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},t=0;for(let o of Ue)n.style[o]&&(t+=e[o]);return t?`${t}`:""}_getCellWidths(n,e=true){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],o=n.children;for(let r=0;r<o.length;r++){let s=o[r];t.push(this._retrieveElementSize(s).width);}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(n,e){let t=[],o=0;for(let r=0;r<n.length;r++)e[r]&&(t[r]=o,o+=n[r]);return t}_getStickyEndColumnPositions(n,e){let t=[],o=0;for(let r=n.length;r>0;r--)e[r]&&(t[r]=o,o+=n[r]);return t}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let t=n.getBoundingClientRect(),o={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(n,o),this._resizeObserver.observe(n,{box:"border-box"})),o}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n);}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length);}_updateCachedSizes(n){let e=false;for(let t of n){let o=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};o.width!==this._elemSizeCache.get(t.target)?.width&<(t.target)&&(e=true),this._elemSizeCache.set(t.target,o);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,true,false);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}};function lt(i){return ["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>i.classList.contains(n))}var Q=new y("STICKY_POSITIONING_LISTENER");var me=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._rowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","rowOutlet",""]]})}return i})(),ye=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._headerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),_e=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._footerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),pe=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._noDataRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})(),ge=(()=>{class i{_differs=h(Ay);_changeDetectorRef=h(Ny);_elementRef=h(ue$1);_dir=h(QS,{optional:true});_platform=h(be);_viewRepeater;_viewportRuler=h(A);_injector=h(Y);_virtualScrollViewport=h(Ee,{optional:true,host:true});_positionListener=h(Q,{optional:true})||h(Q,{optional:true,skipSelf:true});_document=h(k);_data;_renderedRange;_onDestroy=new q;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=true;_footerRowDefChanged=true;_stickyColumnStylesNeedReset=true;_forceRecalculateCellWidths=true;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=true;_isServer;_isShowingNoDataRow=false;_hasAllOutlets=false;_hasInitialized=false;_headerRowStickyUpdates=new q;_footerRowStickyUpdates=new q;_disableVirtualScrolling=false;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck());}_dataSource;_dataSourceChanges=new q;_dataStream=new q;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTemplateDataRows=false;get fixedLayout(){return this._virtualScrollEnabled()?true:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=true,this._stickyColumnStylesNeedReset=true;}_fixedLayout=false;recycleRows=false;contentChanged=new Re;viewChange=new En({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){h(new Aa("role"),{optional:true})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o);}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(yr(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new ut$1:new g,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=true;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Se(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(o,r,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===Z.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=t.get(o.currentIndex);r.context.$implicit=o.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=true;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=true;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=true;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=true;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=Ve(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none");}let t=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=Ve(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none");}let t=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(o=>o.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...o],["left","right"]),this._stickyColumnStylesNeedReset=false),e.forEach((r,s)=>{this._addStickyColumnStyles([r],this._headerRowDefs[s]);}),this._rowDefs.forEach(r=>{let s=[];for(let a=0;a<t.length;a++)this._renderRows[a].rowDef===r&&s.push(t[a]);this._addStickyColumnStyles(s,r);}),o.forEach((r,s)=>{this._addStickyColumnStyles([r],this._footerRowDefs[s]);}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged());}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e);}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e);}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e);}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e);}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=true,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=false),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=false),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return [];let e=[],t=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let s=this._data[r],a=this._getRenderRowsForData(s,r,o.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let c=0;c<a.length;c++){let d=a[c],u=this._cachedRenderRowsMap.get(d.data);u.has(d.rowDef)?u.get(d.rowDef).push(d):u.set(d.rowDef,[d]),e.push(d);}}return e}_getRenderRowsForData(e,t,o){return this._getRowDefs(e,t).map(s=>{let a=o&&o.has(s)?o.get(s):[];if(a.length){let c=a.shift();return c.dataIndex=t,c}else return {data:e,rowDef:s,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),J(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t);});}_cacheRowDefs(){this._headerRowDefs=J(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=J(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=J(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(s,a)=>{let c=!!a.getColumnsDiff();return s||c},t=this._rowDefs.reduce(e,false);t&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,false);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,false);return r&&this._forceRenderFooterRows(),t||o||r}_switchDataSource(e){this._data=[],Se(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;Se(this.dataSource)?e=this.dataSource.connect(this):jb(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e$1(this.dataSource)),this._renderChangeSubscription=Ic([e,this.viewChange]).pipe(yr(this._onDestroy)).subscribe(([t,o])=>{this._data=t||[],this._renderedRange=o,this._dataStream.next(t),this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,t){let o=Array.from(t?.columns||[]).map(a=>{let c=this._columnDefsByName.get(a);return c}),r=o.map(a=>a.sticky),s=o.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,s,!this.fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let t=[];for(let o=0;o<e.viewContainer.length;o++){let r=e.viewContainer.get(o);t.push(r.rootNodes[0]);}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return [this._rowDefs[0]];let o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(r=>!r.when||r.when(t,e));else {let r=this._rowDefs.find(s=>s.when&&s.when(t,e))||this._defaultRowDef;r&&o.push(r);}return o.length,o}_getEmbeddedViewArgs(e,t){let o=e.rowDef,r={$implicit:e.data};return {templateRef:o.template,context:r,index:t}}_renderRow(e,t,o,r={}){let s=e.viewContainer.createEmbeddedView(t.template,r,o);return this._renderCellTemplateForItem(t,r),s}_renderCellTemplateForItem(e,t){for(let o of this._getCellTemplates(e))N.mostRecentCellOutlet&&N.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,o=e.length;t<o;t++){let s=e.get(t).context;s.count=o,s.first=t===0,s.last=t===o-1,s.even=t%2===0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[t].dataIndex,s.renderIndex=t):s.index=this._renderRows[t].dataIndex;}}_getCellTemplates(e){return !e||!e.columns?[]:Array.from(e.columns,t=>{let o=this._columnDefsByName.get(t);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(t,o)=>t||o.hasStickyChanged();this._headerRowDefs.reduce(e,false)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,false)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,false)&&(this._stickyColumnStylesNeedReset=true,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new ce(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:$e$1()).pipe(yr(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Ab:xb;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Yb(0,t),yr(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),Ic([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(yr(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let s=0;s<r.elements.length;s++){let a=r.elements[s];if(a){let c=r.offsets[s],d=o!==0?Math.max(o-c,c):-c;for(let u of a)u.style.top=`${-d}px`;}}}),Ic([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(yr(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let s=0;s<r.elements.length;s++){let a=r.elements[s];if(a)for(let c of a)c.style.bottom=`${o+r.offsets[s]}px`;}});}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(t){let r=o.createEmbeddedView(e.templateRef),s=r.rootNodes[0];if(r.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE){s.setAttribute("role","row"),s.classList.add(...e._contentClassNames);let a=s.querySelectorAll(e._cellSelector);for(let c=0;c<a.length;c++)a[c].classList.add(...e._cellClassNames);}}else o.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck();}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<o.start||e.end>o.end;let s=e.start-o.start,a=e.end-e.start,c,d;for(let y=0;y<a;y++){let _=r.get(y+s);if(_&&_.rootNodes.length){c=d=_.rootNodes[0];break}}for(let y=a-1;y>-1;y--){let _=r.get(y+s);if(_&&_.rootNodes.length){d=_.rootNodes[_.rootNodes.length-1];break}}let u=c?.getBoundingClientRect?.(),h=d?.getBoundingClientRect?.();return u&&h?h.bottom-u.top:0}_virtualScrollEnabled(){return !this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,o,r){if(t&1&&Qg(r,ne,5)(r,U,5)(r,oe,5)(r,W,5)(r,fe,5),t&2){let s;uC(s=lC())&&(o._noDataRow=s.first),uC(s=lC())&&(o._contentColumnDefs=s),uC(s=lC())&&(o._contentRowDefs=s),uC(s=lC())&&(o._contentHeaderRowDefs=s),uC(s=lC())&&(o._contentFooterRowDefs=s);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&Dt("cdk-table-fixed-layout",o.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Et],fixedLayout:[2,"fixedLayout","fixedLayout",Et],recycleRows:[2,"recycleRows","recycleRows",Et]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[gy([{provide:R,useExisting:i},{provide:Q,useValue:null}])],ngContentSelectors:nt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(or(ot),tt(0),tt(1,1),ni$1(2,rt,1,0),ni$1(3,st,7,0)(4,at,4,0)),t&2&&(Qo(2),ri$1(o._isServer?2:-1),Qo(),ri$1(o._isNativeHtmlTable?3:4));},dependencies:[ye,me,pe,_e],styles:[`.cdk-table-fixed-layout {
|
|
1
|
+
import {cL as dt$1,bw as _n,aY as q,cM as Rv,bd as Zb,av as $e$1,aD as Dc,aE as O,B as pe$1,C as ce$1,J as Jr,aK as um,x as xe,aM as qr,L as or,M as tt,v as ni$1,Q as Qo,y as ri$1,ar as gy,H as y,D as Dt,aL as et,aN as Et,cu as Gg,h,aO as Qg,aP as uC,aQ as lC,bm as Bt,cN as Ay,b7 as Ny,aV as ue$1,bC as QS,cf as be,cO as A,b$ as Y,cP as Ee,aT as k,aX as Re,bb as Aa,bA as yr,cQ as ut$1,cR as g,cS as Se,cT as Z,cU as Gb,cV as Yb,cW as Wb,cX as zb,aR as Gr,bN as Ur,b3 as ha,c0 as Gl,f as fa,E as Ed}from'./main-GN2IPP5X.js';var ot=[[["caption"]],[["colgroup"],["col"]],"*"],nt=["caption","colgroup, col","*"];function rt(i,n){i&1&&tt(0,2);}function st(i,n){i&1&&(fa(0,"thead",0),Gg(1,1),Ed(),fa(2,"tbody",0),Gg(3,2)(4,3),Ed(),fa(5,"tfoot",0),Gg(6,4),Ed());}function at(i,n){i&1&&Gg(0,1)(1,2)(2,3)(3,4);}var R=new y("CDK_TABLE");var te=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ie=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Qe=(()=>{class i{template=h(Ur);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),U=(()=>{class i{_table=h(R,{optional:true});_hasStickyChanged=false;get name(){return this._name}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=true);}_stickyEnd=false;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,o,r){if(t&1&&Qg(r,te,5)(r,ie,5)(r,Qe,5),t&2){let s;uC(s=lC())&&(o.cell=s.first),uC(s=lC())&&(o.headerCell=s.first),uC(s=lC())&&(o.footerCell=s.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Et],stickyEnd:[2,"stickyEnd","stickyEnd",Et]}})}return i})(),ee=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName);}},We=(()=>{class i extends ee{constructor(){super(h(U),h(ue$1));}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[qr]})}return i})();var $e=(()=>{class i extends ee{constructor(){let e=h(U),t=h(ue$1);super(e,t);let o=e._table?._getCellRole();o&&t.nativeElement.setAttribute("role",o);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[qr]})}return i})();var de=(()=>{class i{template=h(Ur);_differs=h(Ay);columns;_columnsDiffer;ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof W?e.headerCell.template:this instanceof fe?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,features:[ha]})}return i})(),W=(()=>{class i extends de{_table=h(R,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Et]},features:[qr,ha]})}return i})(),fe=(()=>{class i extends de{_table=h(R,{optional:true});_hasStickyChanged=false;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=true);}_sticky=false;ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=false;}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Et]},features:[qr,ha]})}return i})(),oe=(()=>{class i extends de{_table=h(R,{optional:true});when;static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[qr]})}return i})(),N=(()=>{class i{_viewContainer=h(Gr);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this;}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),ue=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})();var he=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),ne=(()=>{class i{templateRef=h(Ur);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),Ue=["top","bottom","left","right"],ce=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=false;constructor(n,e,t=true,o=true,r,s,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=s,this._tableInjector=a,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let t=[];for(let o of n)o.nodeType===o.ELEMENT_NODE&&t.push(o,...Array.from(o.children));Gl({write:()=>{for(let o of t)this._removeStickyStyle(o,e);}},{injector:this._tableInjector});}updateStickyColumns(n,e,t,o=true,r=true){if(!n.length||!this._isBrowser||!(e.some(D=>D)||t.some(D=>D))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let s=n[0],a=s.children.length,c=this.direction==="rtl",d=c?"right":"left",u=c?"left":"right",h=e.lastIndexOf(true),y=t.indexOf(true),_,we,Ce;r&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...t]}),Gl({earlyRead:()=>{_=this._getCellWidths(s,o),we=this._getStickyStartColumnPositions(_,e),Ce=this._getStickyEndColumnPositions(_,t);},write:()=>{for(let D of n)for(let w=0;w<a;w++){let De=D.children[w];e[w]&&this._addStickyStyle(De,d,we[w],w===h),t[w]&&this._addStickyStyle(De,u,Ce[w],w===y);}this._positionListener&&_.some(D=>!!D)&&(this._positionListener.stickyColumnsUpdated({sizes:h===-1?[]:_.slice(0,h+1).map((D,w)=>e[w]?D:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:_.slice(y).map((D,w)=>t[w+y]?D:null).reverse()}));}},{injector:this._tableInjector});}stickRows(n,e,t){if(!this._isBrowser)return;let o=t==="bottom"?n.slice().reverse():n,r=t==="bottom"?e.slice().reverse():e,s=[],a=[],c=[];Gl({earlyRead:()=>{for(let d=0,u=0;d<o.length;d++){if(!r[d])continue;s[d]=u;let h=o[d];c[d]=this._isNativeHtmlTable?Array.from(h.children):[h];let y=this._retrieveElementSize(h).height;u+=y,a[d]=y;}},write:()=>{let d=r.lastIndexOf(true);for(let u=0;u<o.length;u++){if(!r[u])continue;let h=s[u],y=u===d;for(let _ of c[u])this._addStickyStyle(_,t,h,y);}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:a,offsets:s,elements:c}):this._positionListener?.stickyFooterRowsUpdated({sizes:a,offsets:s,elements:c});}},{injector:this._tableInjector});}updateStickyFooterContainer(n,e){this._isNativeHtmlTable&&Gl({write:()=>{let t=n.querySelector("tfoot");t&&(e.some(o=>!o)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,false));}},{injector:this._tableInjector});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=true;}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);Ue.some(o=>e.indexOf(o)===-1&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss));}_addStickyStyle(n,e,t,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${t}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},t=0;for(let o of Ue)n.style[o]&&(t+=e[o]);return t?`${t}`:""}_getCellWidths(n,e=true){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],o=n.children;for(let r=0;r<o.length;r++){let s=o[r];t.push(this._retrieveElementSize(s).width);}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(n,e){let t=[],o=0;for(let r=0;r<n.length;r++)e[r]&&(t[r]=o,o+=n[r]);return t}_getStickyEndColumnPositions(n,e){let t=[],o=0;for(let r=n.length;r>0;r--)e[r]&&(t[r]=o,o+=n[r]);return t}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let t=n.getBoundingClientRect(),o={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(n,o),this._resizeObserver.observe(n,{box:"border-box"})),o}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n);}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length);}_updateCachedSizes(n){let e=false;for(let t of n){let o=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};o.width!==this._elemSizeCache.get(t.target)?.width&<(t.target)&&(e=true),this._elemSizeCache.set(t.target,o);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,true,false);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}};function lt(i){return ["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>i.classList.contains(n))}var Q=new y("STICKY_POSITIONING_LISTENER");var me=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._rowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","rowOutlet",""]]})}return i})(),ye=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._headerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),_e=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._footerRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),pe=(()=>{class i{viewContainer=h(Gr);elementRef=h(ue$1);constructor(){let e=h(R);e._noDataRowOutlet=this,e._outletAssigned();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})(),ge=(()=>{class i{_differs=h(Ay);_changeDetectorRef=h(Ny);_elementRef=h(ue$1);_dir=h(QS,{optional:true});_platform=h(be);_viewRepeater;_viewportRuler=h(A);_injector=h(Y);_virtualScrollViewport=h(Ee,{optional:true,host:true});_positionListener=h(Q,{optional:true})||h(Q,{optional:true,skipSelf:true});_document=h(k);_data;_renderedRange;_onDestroy=new q;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=true;_footerRowDefChanged=true;_stickyColumnStylesNeedReset=true;_forceRecalculateCellWidths=true;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=true;_isServer;_isShowingNoDataRow=false;_hasAllOutlets=false;_hasInitialized=false;_headerRowStickyUpdates=new q;_footerRowStickyUpdates=new q;_disableVirtualScrolling=false;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck());}_dataSource;_dataSourceChanges=new q;_dataStream=new q;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTemplateDataRows=false;get fixedLayout(){return this._virtualScrollEnabled()?true:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=true,this._stickyColumnStylesNeedReset=true;}_fixedLayout=false;recycleRows=false;contentChanged=new Re;viewChange=new _n({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){h(new Aa("role"),{optional:true})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o);}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(yr(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new ut$1:new g,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=true;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Se(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(o,r,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===Z.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=t.get(o.currentIndex);r.context.$implicit=o.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=true;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=true;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=true;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=true;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=Ve(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none");}let t=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=Ve(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none");}let t=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(o=>o.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...o],["left","right"]),this._stickyColumnStylesNeedReset=false),e.forEach((r,s)=>{this._addStickyColumnStyles([r],this._headerRowDefs[s]);}),this._rowDefs.forEach(r=>{let s=[];for(let a=0;a<t.length;a++)this._renderRows[a].rowDef===r&&s.push(t[a]);this._addStickyColumnStyles(s,r);}),o.forEach((r,s)=>{this._addStickyColumnStyles([r],this._footerRowDefs[s]);}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged());}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e);}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e);}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e);}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e);}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=true,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=false),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=false),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return [];let e=[],t=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let s=this._data[r],a=this._getRenderRowsForData(s,r,o.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let c=0;c<a.length;c++){let d=a[c],u=this._cachedRenderRowsMap.get(d.data);u.has(d.rowDef)?u.get(d.rowDef).push(d):u.set(d.rowDef,[d]),e.push(d);}}return e}_getRenderRowsForData(e,t,o){return this._getRowDefs(e,t).map(s=>{let a=o&&o.has(s)?o.get(s):[];if(a.length){let c=a.shift();return c.dataIndex=t,c}else return {data:e,rowDef:s,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),J(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t);});}_cacheRowDefs(){this._headerRowDefs=J(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=J(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=J(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(s,a)=>{let c=!!a.getColumnsDiff();return s||c},t=this._rowDefs.reduce(e,false);t&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,false);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,false);return r&&this._forceRenderFooterRows(),t||o||r}_switchDataSource(e){this._data=[],Se(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;Se(this.dataSource)?e=this.dataSource.connect(this):Gb(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e$1(this.dataSource)),this._renderChangeSubscription=Dc([e,this.viewChange]).pipe(yr(this._onDestroy)).subscribe(([t,o])=>{this._data=t||[],this._renderedRange=o,this._dataStream.next(t),this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,t){let o=Array.from(t?.columns||[]).map(a=>{let c=this._columnDefsByName.get(a);return c}),r=o.map(a=>a.sticky),s=o.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,s,!this.fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let t=[];for(let o=0;o<e.viewContainer.length;o++){let r=e.viewContainer.get(o);t.push(r.rootNodes[0]);}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return [this._rowDefs[0]];let o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(r=>!r.when||r.when(t,e));else {let r=this._rowDefs.find(s=>s.when&&s.when(t,e))||this._defaultRowDef;r&&o.push(r);}return o.length,o}_getEmbeddedViewArgs(e,t){let o=e.rowDef,r={$implicit:e.data};return {templateRef:o.template,context:r,index:t}}_renderRow(e,t,o,r={}){let s=e.viewContainer.createEmbeddedView(t.template,r,o);return this._renderCellTemplateForItem(t,r),s}_renderCellTemplateForItem(e,t){for(let o of this._getCellTemplates(e))N.mostRecentCellOutlet&&N.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,o=e.length;t<o;t++){let s=e.get(t).context;s.count=o,s.first=t===0,s.last=t===o-1,s.even=t%2===0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[t].dataIndex,s.renderIndex=t):s.index=this._renderRows[t].dataIndex;}}_getCellTemplates(e){return !e||!e.columns?[]:Array.from(e.columns,t=>{let o=this._columnDefsByName.get(t);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(t,o)=>t||o.hasStickyChanged();this._headerRowDefs.reduce(e,false)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,false)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,false)&&(this._stickyColumnStylesNeedReset=true,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new ce(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:$e$1()).pipe(yr(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Wb:zb;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Yb(0,t),yr(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),Dc([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(yr(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let s=0;s<r.elements.length;s++){let a=r.elements[s];if(a){let c=r.offsets[s],d=o!==0?Math.max(o-c,c):-c;for(let u of a)u.style.top=`${-d}px`;}}}),Dc([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(yr(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let s=0;s<r.elements.length;s++){let a=r.elements[s];if(a)for(let c of a)c.style.bottom=`${o+r.offsets[s]}px`;}});}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(t){let r=o.createEmbeddedView(e.templateRef),s=r.rootNodes[0];if(r.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE){s.setAttribute("role","row"),s.classList.add(...e._contentClassNames);let a=s.querySelectorAll(e._cellSelector);for(let c=0;c<a.length;c++)a[c].classList.add(...e._cellClassNames);}}else o.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck();}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<o.start||e.end>o.end;let s=e.start-o.start,a=e.end-e.start,c,d;for(let y=0;y<a;y++){let _=r.get(y+s);if(_&&_.rootNodes.length){c=d=_.rootNodes[0];break}}for(let y=a-1;y>-1;y--){let _=r.get(y+s);if(_&&_.rootNodes.length){d=_.rootNodes[_.rootNodes.length-1];break}}let u=c?.getBoundingClientRect?.(),h=d?.getBoundingClientRect?.();return u&&h?h.bottom-u.top:0}_virtualScrollEnabled(){return !this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,o,r){if(t&1&&Qg(r,ne,5)(r,U,5)(r,oe,5)(r,W,5)(r,fe,5),t&2){let s;uC(s=lC())&&(o._noDataRow=s.first),uC(s=lC())&&(o._contentColumnDefs=s),uC(s=lC())&&(o._contentRowDefs=s),uC(s=lC())&&(o._contentHeaderRowDefs=s),uC(s=lC())&&(o._contentFooterRowDefs=s);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&Dt("cdk-table-fixed-layout",o.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Et],fixedLayout:[2,"fixedLayout","fixedLayout",Et],recycleRows:[2,"recycleRows","recycleRows",Et]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[gy([{provide:R,useExisting:i},{provide:Q,useValue:null}])],ngContentSelectors:nt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(or(ot),tt(0),tt(1,1),ni$1(2,rt,1,0),ni$1(3,st,7,0)(4,at,4,0)),t&2&&(Qo(2),ri$1(o._isServer?2:-1),Qo(),ri$1(o._isNativeHtmlTable?3:4));},dependencies:[ye,me,pe,_e],styles:[`.cdk-table-fixed-layout {
|
|
2
2
|
table-layout: fixed;
|
|
3
3
|
}
|
|
4
4
|
`],encapsulation:2,changeDetection:1})}return i})();function J(i,n){return i.concat(Array.from(n))}function Ve(i,n){let e=n.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let o=t.nodeType===1?t.nodeName:null;if(o===e)return t;if(o==="TABLE")break;t=t.parentNode;}return null}var qe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe$1({type:i});static \u0275inj=ce$1({imports:[Bt]})}return i})();var ct=[[["caption"]],[["colgroup"],["col"]],"*"],dt=["caption","colgroup, col","*"];function ft(i,n){i&1&&tt(0,2);}function ut(i,n){i&1&&(fa(0,"thead",0),Gg(1,1),Ed(),fa(2,"tbody",2),Gg(3,3)(4,4),Ed(),fa(5,"tfoot",0),Gg(6,5),Ed());}function ht(i,n){i&1&&Gg(0,1)(1,3)(2,4)(3,5);}var Zt=(()=>{class i extends ge{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=false;static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,o){t&2&&Dt("mat-table-fixed-layout",o.fixedLayout);},exportAs:["matTable"],features:[gy([{provide:ge,useExisting:i},{provide:R,useExisting:i},{provide:Q,useValue:null}]),qr],ngContentSelectors:dt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(or(ct),tt(0),tt(1,1),ni$1(2,ft,1,0),ni$1(3,ut,7,0)(4,ht,4,0)),t&2&&(Qo(2),ri$1(o._isServer?2:-1),Qo(),ri$1(o._isNativeHtmlTable?3:4));},dependencies:[ye,me,pe,_e],styles:[`.mat-mdc-table-sticky {
|
|
@@ -178,4 +178,4 @@ mat-cell.mat-mdc-cell,
|
|
|
178
178
|
mat-footer-cell.mat-mdc-footer-cell {
|
|
179
179
|
align-self: stretch;
|
|
180
180
|
}
|
|
181
|
-
`],encapsulation:2,changeDetection:1})}return i})(),Jt=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matCellDef",""]],features:[gy([{provide:te,useExisting:i}]),qr]})}return i})(),ei=(()=>{class i extends ie{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matHeaderCellDef",""]],features:[gy([{provide:ie,useExisting:i}]),qr]})}return i})();var ti=(()=>{class i extends U{get name(){return this._name}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[gy([{provide:U,useExisting:i}]),qr]})}return i})(),ii=(()=>{class i extends We{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[qr]})}return i})();var oi=(()=>{class i extends $e{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[qr]})}return i})();var ni=(()=>{class i extends W{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Et]},features:[gy([{provide:W,useExisting:i}]),qr]})}return i})();var ri=(()=>{class i extends oe{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[gy([{provide:oe,useExisting:i}]),qr]})}return i})(),si=(()=>{class i extends ue{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[gy([{provide:ue,useExisting:i}]),qr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})();var ai=(()=>{class i extends he{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[gy([{provide:he,useExisting:i}]),qr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),li=(()=>{class i extends ne{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell");}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["ng-template","matNoDataRow",""]],features:[gy([{provide:ne,useExisting:i}]),qr]})}return i})();var ci=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe$1({type:i});static \u0275inj=ce$1({imports:[qe,Jr]})}return i})(),mt=9007199254740991,Ke=class extends dt$1{_data;_renderData=new
|
|
181
|
+
`],encapsulation:2,changeDetection:1})}return i})(),Jt=(()=>{class i extends te{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matCellDef",""]],features:[gy([{provide:te,useExisting:i}]),qr]})}return i})(),ei=(()=>{class i extends ie{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matHeaderCellDef",""]],features:[gy([{provide:ie,useExisting:i}]),qr]})}return i})();var ti=(()=>{class i extends U{get name(){return this._name}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[gy([{provide:U,useExisting:i}]),qr]})}return i})(),ii=(()=>{class i extends We{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[qr]})}return i})();var oi=(()=>{class i extends $e{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[qr]})}return i})();var ni=(()=>{class i extends W{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Et]},features:[gy([{provide:W,useExisting:i}]),qr]})}return i})();var ri=(()=>{class i extends oe{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[gy([{provide:oe,useExisting:i}]),qr]})}return i})(),si=(()=>{class i extends ue{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[gy([{provide:ue,useExisting:i}]),qr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})();var ai=(()=>{class i extends he{static \u0275fac=(()=>{let e;return function(o){return (e||(e=um(i)))(o||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[gy([{provide:he,useExisting:i}]),qr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&Gg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),li=(()=>{class i extends ne{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell");}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["ng-template","matNoDataRow",""]],features:[gy([{provide:ne,useExisting:i}]),qr]})}return i})();var ci=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe$1({type:i});static \u0275inj=ce$1({imports:[qe,Jr]})}return i})(),mt=9007199254740991,Ke=class extends dt$1{_data;_renderData=new _n([]);_filter=new _n("");_internalPageChanges=new q;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n);}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data);}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription();}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription();}_paginator;sortingDataAccessor=(n,e)=>{let t=n[e];if(Rv(t)){let o=Number(t);return o<mt?o:t}return t};sortData=(n,e)=>{let t=e.active,o=e.direction;return !t||o==""?n:n.sort((r,s)=>{let a=this.sortingDataAccessor(r,t),c=this.sortingDataAccessor(s,t),d=typeof a,u=typeof c;d!==u&&(d==="number"&&(a+=""),u==="number"&&(c+=""));let h=0;return a!=null&&c!=null?a>c?h=1:a<c&&(h=-1):a!=null?h=1:c!=null&&(h=-1),h*(o=="asc"?1:-1)})};filterPredicate=(n,e)=>{let t=e.trim().toLowerCase();return Object.values(n).some(o=>`${o}`.toLowerCase().includes(t))};constructor(n=[]){super(),this._data=new _n(n),this._updateChangeSubscription();}_updateChangeSubscription(){let n=this._sort?Zb(this._sort.sortChange,this._sort.initialized):$e$1(null),e=this._paginator?Zb(this._paginator.page,this._internalPageChanges,this._paginator.initialized):$e$1(null),t=this._data,o=Dc([t,this._filter]).pipe(O(([a])=>this._filterData(a))),r=Dc([o,n]).pipe(O(([a])=>this._orderData(a))),s=Dc([r,e]).pipe(O(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a));}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let t=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,t);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next());}});}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null;}};export{Jt as J,Ke as K,U,Zt as Z,ai as a,ci as c,ei as e,ii as i,li as l,ni as n,oi as o,ri as r,si as s,ti as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {c as xy,aN as Et,x as xe,A as A8,a as x8,L as or,v as ni,M as tt,y as ri,X as ii,D as Dt,f as fa,b as kC,E as Ed,S as sC,Q as Qo,u as uy,z as zg}from'./main-GN2IPP5X.js';var v=["*"];function P(o,i){if(o&1&&(fa(0,"mat-icon",2),kC(1),Ed()),o&2){let e=sC();Dt("sf-spin",e.spin()),Qo(),uy(e.icon());}}function O(o,i){o&1&&zg(0,"span",1);}var _=class o{tone=xy("neutral");icon=xy();spin=xy(false,{transform:Et});dot=xy(false,{transform:Et});size=xy("md");static \u0275fac=function(e){return new(e||o)};static \u0275cmp=xe({type:o,selectors:[["sf-status-chip"]],hostVars:4,hostBindings:function(e,t){e&2&&(ii("sf-chip sf-chip--"+t.tone()),Dt("sf-chip--sm",t.size()==="sm"));},inputs:{tone:[1,"tone"],icon:[1,"icon"],spin:[1,"spin"],dot:[1,"dot"],size:[1,"size"]},ngContentSelectors:v,decls:3,vars:1,consts:[["aria-hidden","true",3,"sf-spin"],["aria-hidden","true",1,"dot"],["aria-hidden","true"]],template:function(e,t){e&1&&(or(),ni(0,P,2,3,"mat-icon",0)(1,O,1,0,"span",1),tt(2)),e&2&&ri(t.icon()?0:t.dot()?1:-1);},dependencies:[A8,x8],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 12px;border-radius:999px;border:1px solid;font-size:13px;font-weight:700;white-space:nowrap}.sf-chip--sm[_nghost-%COMP%]{height:24px;padding:0 10px;font-size:12.5px}mat-icon[_ngcontent-%COMP%]{width:14px;height:14px;font-size:14px}.dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:var(--sf-success)}.sf-chip--blue[_nghost-%COMP%]{color:var(--sf-running);border-color:#33486e;background:#121a2b}.sf-chip--amber[_nghost-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b;font-weight:600}.sf-chip--green[_nghost-%COMP%]{color:#6ee79a;border-color:#22583a;background:#0e1f16}.sf-chip--red[_nghost-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.sf-chip--neutral[_nghost-%COMP%]{color:var(--sf-text-muted);border-color:var(--sf-outline-strong);background:var(--sf-surface-2)}.sf-chip--violet[_nghost-%COMP%]{color:#e3d6ff;border-color:#4b3d80;background:#2a2145}.sf-chip--cyan[_nghost-%COMP%]{color:var(--sf-secondary);border-color:#2c5d63;background:#0e1d21}"]})};export{_};
|