@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.50 → 0.0.0-workstream-forge.55
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-DbUeQHir.js → chunk-6gRr3WEV.js} +1 -1
- package/browser/{chunk-B6bFaZA9.js → chunk-8EysIpOz.js} +1 -1
- package/browser/{chunk-DItSOE0Q.js → chunk-BDZqVmI-.js} +1 -1
- package/browser/{chunk-BSQubzmp.js → chunk-BQ6bw7Yj.js} +1 -1
- package/browser/{chunk-BhmL2pre.js → chunk-BVUztuwN.js} +1 -1
- package/browser/{chunk-DGkAOvSG.js → chunk-BrPbeQvI.js} +1 -1
- package/browser/{chunk-C7-hnmj2.js → chunk-CA0VBGnT.js} +1 -1
- package/browser/{chunk-sRb0Gr6G.js → chunk-CEVLnVmT.js} +1 -1
- package/browser/{chunk-BVQgrab0.js → chunk-CQwGodVP.js} +1 -1
- package/browser/{chunk-DECdbS2h.js → chunk-CjhHnhWE.js} +1 -1
- package/browser/{chunk-qi8DFb6B.js → chunk-D-hYLN3s.js} +1 -1
- package/browser/{chunk-CAqYojLF.js → chunk-D76mj60K.js} +2 -2
- package/browser/{chunk-DQ8fnaDi.js → chunk-DJTK00iK.js} +1 -1
- package/browser/{chunk-NfayNkw7.js → chunk-DnGOgBgy.js} +3 -3
- package/browser/{chunk-nlPyyAPb.js → chunk-DwfvLKhF.js} +1 -1
- package/browser/{chunk-B7Fl-79t.js → chunk-yVhlCudb.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-R4PLQRBB.js → main-JIBFASD2.js} +6 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {R as Ry,aN as _t,x as xe,G as G8,W as W8,a0 as ir,f as oi,a1 as tt,l as ii,a6 as ai,K as Et,p as pa,d as jC,_ as _d,w as dC,J as Jo,m as fy,q as qg}from'./main-
|
|
1
|
+
import {R as Ry,aN as _t,x as xe,G as G8,W as W8,a0 as ir,f as oi,a1 as tt,l as ii,a6 as ai,K as Et,p as pa,d as jC,_ as _d,w as dC,J as Jo,m as fy,q as qg}from'./main-JIBFASD2.js';var v=["*"];function P(o,i){if(o&1&&(pa(0,"mat-icon",2),jC(1),_d()),o&2){let e=dC();Et("sf-spin",e.spin()),Jo(),fy(e.icon());}}function O(o,i){o&1&&qg(0,"span",1);}var _=class o{tone=Ry("neutral");icon=Ry();spin=Ry(false,{transform:_t});dot=Ry(false,{transform:_t});size=Ry("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&&(ai("sf-chip sf-chip--"+t.tone()),Et("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&&(ir(),oi(0,P,2,3,"mat-icon",0)(1,O,1,0,"span",1),tt(2)),e&2&&ii(t.icon()?0:t.dot()?1:-1);},dependencies:[G8,W8],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{_};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ac as je,h,Z as Ze,cK as g,r as aT,bA as vr,bz as R}from'./main-
|
|
1
|
+
import {ac as je,h,Z as Ze,cK as g,r as aT,bA as vr,bz as R}from'./main-JIBFASD2.js';function U(n){n||(n=h(je));let e=new R(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(vr(e))}function T(n,e){let d=!e?.manualCleanup?e?.injector?.get(je)??h(je):null,l=p(e?.equal),o;e?.requireSync?o=Ze({kind:0},{equal:l}):o=Ze({kind:1,value:e?.initialValue},{equal:l});let i,b=n.subscribe({next:r=>o.set({kind:1,value:r}),error:r=>{o.set({kind:2,error:r}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&o().kind===0)throw new g(601,false);return i=d?.onDestroy(b.unsubscribe.bind(b)),aT(()=>{let r=o();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new g(601,false)}},{equal:e?.equal})}function p(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}export{T,U};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {y}from'./chunk-
|
|
1
|
+
import {y}from'./chunk-DwfvLKhF.js';import {h,M as Mi,g as gb,x as xe$1,N as Nt$1,B as BW,j as jW,G as G8,W as W8,P as Pt$1,I as It$1,a as Me$1,S as Se$1,b as Wr,H as Hr,c as ce$1,o as ot,p as pa,d as jC,_ as _d,X as Xg,e as Xw,f as oi,q as qg,Q as QC,J as Jo,i as Gg,k as Jw,l as ii,m as fy,t as tT,R as Ry,n as dH,r as aT,s as or,u as py,v as gy,U as UC,w as dC,y as iC,z as bi,Z as Ze,A as Hs,C as an,D as aS,E as st,F as nt,K as Et$1,L as ZC,$ as $C,O as pe$1,T as ce$2,V as eo,Y as y$1,a0 as ir,a1 as tt,a2 as $t$1,a3 as vt,a4 as eT,a5 as JC,a6 as ai,a7 as $p,a8 as zp,a9 as Td,aa as Pm}from'./main-JIBFASD2.js';import {I}from'./chunk-BrPbeQvI.js';import {e as ee$1}from'./chunk-CjhHnhWE.js';import {_}from'./chunk-6gRr3WEV.js';var It=["*"];var Rt=new y$1("MAT_CARD_CONFIG"),St=(()=>{class t{appearance;constructor(){let e=h(Rt,{optional:true});this.appearance=e?.appearance||"raised";}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=xe$1({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(o,c){o&2&&Et$1("mat-mdc-card-outlined",c.appearance==="outlined")("mdc-card--outlined",c.appearance==="outlined")("mat-mdc-card-filled",c.appearance==="filled")("mdc-card--filled",c.appearance==="filled");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:It,decls:1,vars:0,template:function(o,c){o&1&&(ir(),tt(0));},styles:[`.mat-mdc-card {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {B as Be,P as Pe$1}from'./chunk-BhmL2pre.js';import {h,M as Mi,ab as ce,ac as je,Z as Ze,r as aT,ad as Rr,ae as Ht,g as gb,A as Hs,af as I,x as xe,ag as Nr,ah as Vr,ai as Yn,aj as Er,ak as Mr,al as is,am as Ss,an as As,N as Nt,B as BW,j as jW,P as Pt,I as It,a as Me$1,S as Se$1,ao as _i,G as G8,W as W8,b as Wr,H as Hr,c as ce$1,p as pa,d as jC,_ as _d,f as oi,X as Xg,e as Xw,ap as BI,q as qg,J as Jo,l as ii,i as Gg,m as fy,aq as HI,k as Jw,a9 as Td,ar as by,as as mb,at as Cc,au as at,av as $e,aw as yr,ax as GW,ay as uc,az as Ut,aA as M,aB as Qw,w as dC}from'./main-R4PLQRBB.js';import {T,U}from'./chunk-B6bFaZA9.js';import {g}from'./chunk-DQ8fnaDi.js';var w=class e{api=h(mb);workflowTypes=Ze([]);namespaces=Ze([]);loading=Ze(false);definitionsError=Ze(null);namespacesError=Ze(null);submitting=Ze(false);submissionError=Ze(null);loadOptions(){this.loading.set(true),this.definitionsError.set(null),this.namespacesError.set(null),Cc({definitions:this.api.getWorkflowDefinitions().pipe(at(t=>(this.definitionsError.set(t),$e([])))),namespaces:this.api.getNamespaces().pipe(at(t=>(this.namespacesError.set(t),$e([]))))}).pipe(yr(()=>this.loading.set(false))).subscribe(({definitions:t,namespaces:r})=>{let l=new Set;for(let f of g(t)){let u=f.workflowType;typeof u=="string"&&u.trim()&&l.add(u.trim());}this.workflowTypes.set([...l]),this.namespaces.set(GW(r));});}launch(t){return this.submitting.set(true),this.submissionError.set(null),this.api.createWorkflowRun(t,uc()).pipe(Ut({error:r=>this.submissionError.set(r)}),yr(()=>this.submitting.set(false)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})};var Me=(e,t)=>t.id;function Se(e,t){e&1&&(pa(0,"div",4)(1,"mat-icon",24),jC(2,"check_circle"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function ke(e,t){e&1&&(pa(0,"div",5)(1,"mat-icon",24),jC(2,"error"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Te(e,t){e&1&&(pa(0,"div",6)(1,"mat-icon",24),jC(2,"warning"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Le(e,t){e&1&&(pa(0,"div",7)(1,"mat-icon",24),jC(2,"error"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Ne(e,t){if(e&1&&(pa(0,"mat-option",13),jC(1),_d()),e&2){let r=t.$implicit;Gg("value",r),Jo(),fy(r);}}function Pe(e,t){if(e&1&&(pa(0,"mat-select",10),Xw(1,Ne,2,2,"mat-option",13,Qw),_d(),BI()),e&2){let r=dC();HI(),Jo(),Jw(r.workflowTypes());}}function Ie(e,t){e&1&&(qg(0,"input",11),BI()),e&2&&HI();}function Oe(e,t){e&1&&(pa(0,"mat-error"),jC(1,"Workflow definition is required."),_d());}function Fe(e,t){if(e&1&&(pa(0,"mat-option",13),jC(1),_d()),e&2){let r=t.$implicit;Gg("value",r.id),Jo(),fy(r.name);}}function Re(e,t){e&1&&(pa(0,"mat-error"),jC(1,"An accessible namespace is required."),_d());}function De(e,t){e&1&&(pa(0,"mat-hint"),jC(1),_d()),e&2&&(Jo(),Td("Namespace id: ",t.id));}function qe(e,t){e&1&&(pa(0,"mat-hint",14),jC(1,"Loading namespaces\u2026"),_d());}function Ae(e,t){e&1&&(pa(0,"mat-hint",15),jC(1,"No AgentOS namespace is available."),_d());}function We(e,t){e&1&&(pa(0,"mat-error"),jC(1,"The objective must not exceed 4,000 characters."),_d());}function Ve(e){let t=e?.code??"UNKNOWN_ERROR",r=e?.message?.trim();return r?`${r} (${t})`:`Launch failed (${t}).`}var Ee=class e{launchState=h(w);store=h(Mi);router=h(ce);destroyRef=h(je);workflowTypes=this.launchState.workflowTypes;namespaces=this.launchState.namespaces;submitting=this.launchState.submitting;successMessage=Ze(null);errorMessage=Ze(null);definitionsLoading=this.launchState.loading;definitionsError=aT(()=>this.launchState.definitionsError()?.message??null);launchTargetsLoading=this.launchState.loading;launchTargetsError=aT(()=>this.launchState.namespacesError()?.message??null);form=h(Rr).group({workflowType:["",Ht.required],namespaceId:["",Ht.required],title:["",Ht.maxLength(200)],ticket:["",Ht.maxLength(64)],initialRequest:["",Ht.maxLength(4e3)]});selectedNamespaceId=T(this.form.controls.namespaceId.valueChanges,{initialValue:this.form.controls.namespaceId.value});selectedNamespace=aT(()=>this.namespaces().find(t=>t.id===this.selectedNamespaceId())??null);constructor(){h(gb).crumbs.set([{label:"Sandboxes",link:"/sandboxes"},{label:"Launch a run"}]),this.launchState.loadOptions(),Hs(()=>{let t=this.workflowTypes();t.length===1&&!this.form.controls.workflowType.value&&this.form.controls.workflowType.setValue(t[0]??"");let r=this.namespaces();r.length===1&&!this.form.controls.namespaceId.value&&this.form.controls.namespaceId.setValue(r[0]?.id??"");});}onSubmit(){if(this.submitting())return;if(this.form.invalid){this.form.markAllAsTouched();return}let{workflowType:t,namespaceId:r,title:l,ticket:f,initialRequest:u}=this.form.getRawValue();if(this.launchTargetsLoading()||this.launchTargetsError()||!this.namespaces().some(y=>y.id===r)){this.errorMessage.set("Select an available namespace before launching.");return}let C=l.trim(),v=f.trim(),x=u.trim();this.submitting.set(true),this.successMessage.set(null),this.errorMessage.set(null),this.launchState.launch(I(I(I({namespaceId:r,workflowType:t},C?{title:C}:{}),x?{initialRequest:x}:{}),v?{parameters:{ticket:v}}:{})).pipe(U(this.destroyRef)).subscribe({next:y=>{let O=y?.submissionId;this.successMessage.set(O?`Launch accepted (id: ${O})`:"Launch accepted."),this.store.selectNamespace(r),this.store.refresh(),this.router.navigate(["/sessions",y.workflowId],{queryParams:{namespaceId:r}});},error:y=>{this.errorMessage.set(Ve(y));}});}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe({type:e,selectors:[["sf-launch-page"]],features:[by([w])],decls:54,vars:14,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["role","status","data-launch-success","true",1,"banner","banner--success"],["role","alert","data-launch-error","true",1,"banner","banner--error"],["role","alert","data-launch-definitions-error","true",1,"banner","banner--warn"],["role","alert","data-launch-targets-error","true",1,"banner","banner--error"],["novalidate","",1,"sf-panel","launch-form",3,"ngSubmit","formGroup"],["appearance","outline",1,"field"],["formControlName","workflowType","data-launch-workflow-type","true"],["matInput","","formControlName","workflowType","placeholder","adw_simple_sdlc","data-launch-workflow-type","true",1,"sf-mono"],["formControlName","namespaceId","data-launch-namespace","true"],[3,"value"],["data-launch-targets-loading","true"],["data-launch-targets-empty","true"],["appearance","outline",1,"field","field--wide"],["matInput","","formControlName","title","maxlength","200","placeholder","Readable run title","data-launch-title","true"],["matInput","","formControlName","ticket","placeholder","ABC-123","data-launch-ticket","true",1,"sf-mono"],["matInput","","id","launch-initial-request","formControlName","initialRequest","aria-describedby","launch-initial-request-help","rows","5","maxlength","4000","data-launch-initial-request","true"],["id","launch-initial-request-help"],[1,"form-actions"],["mat-flat-button","","type","submit","data-launch-submit","true",1,"sf-primary",3,"disabled"],["mat-stroked-button","","routerLink","/sandboxes",1,"sf-secondary"],["aria-hidden","true"]],template:function(r,l){if(r&1&&(pa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),jC(4,"Launch a run"),_d(),pa(5,"p",3),jC(6," Creates and durably submits a real workflow. Factory assigns identity and execution context. "),_d()()(),oi(7,Se,5,1,"div",4),oi(8,ke,5,1,"div",5),oi(9,Te,5,1,"div",6),oi(10,Le,5,1,"div",7),pa(11,"form",8),Xg("ngSubmit",function(){return l.onSubmit()}),pa(12,"mat-form-field",9)(13,"mat-label"),jC(14,"Workflow definition"),_d(),oi(15,Pe,3,0,"mat-select",10)(16,Ie,1,0,"input",11),oi(17,Oe,2,0,"mat-error"),pa(18,"mat-hint"),jC(19),_d()(),pa(20,"mat-form-field",9)(21,"mat-label"),jC(22,"AgentOS namespace"),_d(),pa(23,"mat-select",12),Xw(24,Fe,2,2,"mat-option",13,Me),_d(),BI(),oi(26,Re,2,0,"mat-error"),oi(27,De,2,1,"mat-hint")(28,qe,2,0,"mat-hint",14)(29,Ae,2,0,"mat-hint",15),_d(),pa(30,"mat-form-field",16)(31,"mat-label"),jC(32,"Title (optional)"),_d(),qg(33,"input",17),BI(),pa(34,"mat-hint"),jC(35,"Factory generates a readable title if omitted."),_d()(),pa(36,"mat-form-field",9)(37,"mat-label"),jC(38,"Jira ticket (optional)"),_d(),qg(39,"input",18),BI(),_d(),pa(40,"mat-form-field",16)(41,"mat-label"),jC(42,"What would you like to do? (optional)"),_d(),qg(43,"textarea",19),BI(),oi(44,We,2,0,"mat-error"),pa(45,"mat-hint",20),jC(46," Describe your objective, even briefly. The agent will ask for any clarifications needed. "),_d()(),pa(47,"div",21)(48,"button",22)(49,"mat-icon"),jC(50),_d(),jC(51),_d(),pa(52,"a",23),jC(53,"Cancel"),_d()()()()),r&2){let f,u,C,v,x;Jo(7),ii((f=l.successMessage())?7:-1,f),Jo(),ii((u=l.errorMessage())?8:-1,u),Jo(),ii((C=l.definitionsError())?9:-1,C),Jo(),ii((v=l.launchTargetsError())?10:-1,v),Jo(),Gg("formGroup",l.form),Jo(4),ii(l.workflowTypes().length>0?15:16),Jo(2),ii(l.form.controls.workflowType.hasError("required")?17:-1),Jo(2),fy(l.definitionsLoading()?"Loading definitions\u2026":"workflowType"),Jo(4),HI(),Jo(),Jw(l.namespaces()),Jo(2),ii(l.form.controls.namespaceId.hasError("required")?26:-1),Jo(),ii((x=l.selectedNamespace())?27:l.launchTargetsLoading()?28:!l.launchTargetsError()&&l.namespaces().length===0?29:-1,x),Jo(6),HI(),Jo(6),HI(),Jo(4),HI(),Jo(),ii(l.form.controls.initialRequest.hasError("maxlength")?44:-1),Jo(4),Gg("disabled",l.submitting()||l.launchTargetsLoading()||!!l.launchTargetsError()||l.namespaces().length===0),Jo(2),fy(l.submitting()?"hourglass_top":"play_arrow"),Jo(),Td(" ",l.submitting()?"Launching\u2026":"Launch run"," ");}},dependencies:[Nr,Vr,Yn,Er,Mr,is,Ss,As,Nt,BW,jW,Pt,It,Me$1,Se$1,_i,G8,W8,Be,Pe$1,Wr,Hr,ce$1],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:900px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.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}.launch-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:24px}.field[_ngcontent-%COMP%]{width:100%}.field--wide[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;gap:10px;padding-top:8px}.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--success[_ngcontent-%COMP%]{color:#6ee79a;border-color:#22583a;background:#0e1f16}.banner--error[_ngcontent-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.banner--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}@media(max-width:720px){.launch-form[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}"]})};export{Ee as LaunchPageComponent,Ve as formatLaunchError};
|
|
1
|
+
import {B as Be,P as Pe$1}from'./chunk-BVUztuwN.js';import {h,M as Mi,ab as ce,ac as je,Z as Ze,r as aT,ad as Rr,ae as Ht,g as gb,A as Hs,af as I,x as xe,ag as Nr,ah as Vr,ai as Xn,aj as Er,ak as Mr,al as is,am as Ss,an as As,N as Nt,B as BW,j as jW,P as Pt,I as It,a as Me$1,S as Se$1,ao as _i,G as G8,W as W8,b as Wr,H as Hr,c as ce$1,p as pa,d as jC,_ as _d,f as oi,X as Xg,e as Xw,ap as BI,q as qg,J as Jo,l as ii,i as Gg,m as fy,aq as HI,k as Jw,a9 as Td,ar as by,as as mb,at as Cc,au as at,av as $e,aw as yr,ax as GW,ay as uc,az as Ut,aA as M,aB as Qw,w as dC}from'./main-JIBFASD2.js';import {T,U}from'./chunk-8EysIpOz.js';import {g}from'./chunk-DJTK00iK.js';var w=class e{api=h(mb);workflowTypes=Ze([]);namespaces=Ze([]);loading=Ze(false);definitionsError=Ze(null);namespacesError=Ze(null);submitting=Ze(false);submissionError=Ze(null);loadOptions(){this.loading.set(true),this.definitionsError.set(null),this.namespacesError.set(null),Cc({definitions:this.api.getWorkflowDefinitions().pipe(at(t=>(this.definitionsError.set(t),$e([])))),namespaces:this.api.getNamespaces().pipe(at(t=>(this.namespacesError.set(t),$e([]))))}).pipe(yr(()=>this.loading.set(false))).subscribe(({definitions:t,namespaces:r})=>{let l=new Set;for(let f of g(t)){let u=f.workflowType;typeof u=="string"&&u.trim()&&l.add(u.trim());}this.workflowTypes.set([...l]),this.namespaces.set(GW(r));});}launch(t){return this.submitting.set(true),this.submissionError.set(null),this.api.createWorkflowRun(t,uc()).pipe(Ut({error:r=>this.submissionError.set(r)}),yr(()=>this.submitting.set(false)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})};var Me=(e,t)=>t.id;function Se(e,t){e&1&&(pa(0,"div",4)(1,"mat-icon",24),jC(2,"check_circle"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function ke(e,t){e&1&&(pa(0,"div",5)(1,"mat-icon",24),jC(2,"error"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Te(e,t){e&1&&(pa(0,"div",6)(1,"mat-icon",24),jC(2,"warning"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Le(e,t){e&1&&(pa(0,"div",7)(1,"mat-icon",24),jC(2,"error"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function Ne(e,t){if(e&1&&(pa(0,"mat-option",13),jC(1),_d()),e&2){let r=t.$implicit;Gg("value",r),Jo(),fy(r);}}function Pe(e,t){if(e&1&&(pa(0,"mat-select",10),Xw(1,Ne,2,2,"mat-option",13,Qw),_d(),BI()),e&2){let r=dC();HI(),Jo(),Jw(r.workflowTypes());}}function Ie(e,t){e&1&&(qg(0,"input",11),BI()),e&2&&HI();}function Oe(e,t){e&1&&(pa(0,"mat-error"),jC(1,"Workflow definition is required."),_d());}function Fe(e,t){if(e&1&&(pa(0,"mat-option",13),jC(1),_d()),e&2){let r=t.$implicit;Gg("value",r.id),Jo(),fy(r.name);}}function Re(e,t){e&1&&(pa(0,"mat-error"),jC(1,"An accessible namespace is required."),_d());}function De(e,t){e&1&&(pa(0,"mat-hint"),jC(1),_d()),e&2&&(Jo(),Td("Namespace id: ",t.id));}function qe(e,t){e&1&&(pa(0,"mat-hint",14),jC(1,"Loading namespaces\u2026"),_d());}function Ae(e,t){e&1&&(pa(0,"mat-hint",15),jC(1,"No AgentOS namespace is available."),_d());}function We(e,t){e&1&&(pa(0,"mat-error"),jC(1,"The objective must not exceed 4,000 characters."),_d());}function Ve(e){let t=e?.code??"UNKNOWN_ERROR",r=e?.message?.trim();return r?`${r} (${t})`:`Launch failed (${t}).`}var Ee=class e{launchState=h(w);store=h(Mi);router=h(ce);destroyRef=h(je);workflowTypes=this.launchState.workflowTypes;namespaces=this.launchState.namespaces;submitting=this.launchState.submitting;successMessage=Ze(null);errorMessage=Ze(null);definitionsLoading=this.launchState.loading;definitionsError=aT(()=>this.launchState.definitionsError()?.message??null);launchTargetsLoading=this.launchState.loading;launchTargetsError=aT(()=>this.launchState.namespacesError()?.message??null);form=h(Rr).group({workflowType:["",Ht.required],namespaceId:["",Ht.required],title:["",Ht.maxLength(200)],ticket:["",Ht.maxLength(64)],initialRequest:["",Ht.maxLength(4e3)]});selectedNamespaceId=T(this.form.controls.namespaceId.valueChanges,{initialValue:this.form.controls.namespaceId.value});selectedNamespace=aT(()=>this.namespaces().find(t=>t.id===this.selectedNamespaceId())??null);constructor(){h(gb).crumbs.set([{label:"Sandboxes",link:"/sandboxes"},{label:"Launch a run"}]),this.launchState.loadOptions(),Hs(()=>{let t=this.workflowTypes();t.length===1&&!this.form.controls.workflowType.value&&this.form.controls.workflowType.setValue(t[0]??"");let r=this.namespaces();r.length===1&&!this.form.controls.namespaceId.value&&this.form.controls.namespaceId.setValue(r[0]?.id??"");});}onSubmit(){if(this.submitting())return;if(this.form.invalid){this.form.markAllAsTouched();return}let{workflowType:t,namespaceId:r,title:l,ticket:f,initialRequest:u}=this.form.getRawValue();if(this.launchTargetsLoading()||this.launchTargetsError()||!this.namespaces().some(y=>y.id===r)){this.errorMessage.set("Select an available namespace before launching.");return}let C=l.trim(),v=f.trim(),x=u.trim();this.submitting.set(true),this.successMessage.set(null),this.errorMessage.set(null),this.launchState.launch(I(I(I({namespaceId:r,workflowType:t},C?{title:C}:{}),x?{initialRequest:x}:{}),v?{parameters:{ticket:v}}:{})).pipe(U(this.destroyRef)).subscribe({next:y=>{let O=y?.submissionId;this.successMessage.set(O?`Launch accepted (id: ${O})`:"Launch accepted."),this.store.selectNamespace(r),this.store.refresh(),this.router.navigate(["/sessions",y.workflowId],{queryParams:{namespaceId:r}});},error:y=>{this.errorMessage.set(Ve(y));}});}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=xe({type:e,selectors:[["sf-launch-page"]],features:[by([w])],decls:54,vars:14,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["role","status","data-launch-success","true",1,"banner","banner--success"],["role","alert","data-launch-error","true",1,"banner","banner--error"],["role","alert","data-launch-definitions-error","true",1,"banner","banner--warn"],["role","alert","data-launch-targets-error","true",1,"banner","banner--error"],["novalidate","",1,"sf-panel","launch-form",3,"ngSubmit","formGroup"],["appearance","outline",1,"field"],["formControlName","workflowType","data-launch-workflow-type","true"],["matInput","","formControlName","workflowType","placeholder","adw_simple_sdlc","data-launch-workflow-type","true",1,"sf-mono"],["formControlName","namespaceId","data-launch-namespace","true"],[3,"value"],["data-launch-targets-loading","true"],["data-launch-targets-empty","true"],["appearance","outline",1,"field","field--wide"],["matInput","","formControlName","title","maxlength","200","placeholder","Readable run title","data-launch-title","true"],["matInput","","formControlName","ticket","placeholder","ABC-123","data-launch-ticket","true",1,"sf-mono"],["matInput","","id","launch-initial-request","formControlName","initialRequest","aria-describedby","launch-initial-request-help","rows","5","maxlength","4000","data-launch-initial-request","true"],["id","launch-initial-request-help"],[1,"form-actions"],["mat-flat-button","","type","submit","data-launch-submit","true",1,"sf-primary",3,"disabled"],["mat-stroked-button","","routerLink","/sandboxes",1,"sf-secondary"],["aria-hidden","true"]],template:function(r,l){if(r&1&&(pa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),jC(4,"Launch a run"),_d(),pa(5,"p",3),jC(6," Creates and durably submits a real workflow. Factory assigns identity and execution context. "),_d()()(),oi(7,Se,5,1,"div",4),oi(8,ke,5,1,"div",5),oi(9,Te,5,1,"div",6),oi(10,Le,5,1,"div",7),pa(11,"form",8),Xg("ngSubmit",function(){return l.onSubmit()}),pa(12,"mat-form-field",9)(13,"mat-label"),jC(14,"Workflow definition"),_d(),oi(15,Pe,3,0,"mat-select",10)(16,Ie,1,0,"input",11),oi(17,Oe,2,0,"mat-error"),pa(18,"mat-hint"),jC(19),_d()(),pa(20,"mat-form-field",9)(21,"mat-label"),jC(22,"AgentOS namespace"),_d(),pa(23,"mat-select",12),Xw(24,Fe,2,2,"mat-option",13,Me),_d(),BI(),oi(26,Re,2,0,"mat-error"),oi(27,De,2,1,"mat-hint")(28,qe,2,0,"mat-hint",14)(29,Ae,2,0,"mat-hint",15),_d(),pa(30,"mat-form-field",16)(31,"mat-label"),jC(32,"Title (optional)"),_d(),qg(33,"input",17),BI(),pa(34,"mat-hint"),jC(35,"Factory generates a readable title if omitted."),_d()(),pa(36,"mat-form-field",9)(37,"mat-label"),jC(38,"Jira ticket (optional)"),_d(),qg(39,"input",18),BI(),_d(),pa(40,"mat-form-field",16)(41,"mat-label"),jC(42,"What would you like to do? (optional)"),_d(),qg(43,"textarea",19),BI(),oi(44,We,2,0,"mat-error"),pa(45,"mat-hint",20),jC(46," Describe your objective, even briefly. The agent will ask for any clarifications needed. "),_d()(),pa(47,"div",21)(48,"button",22)(49,"mat-icon"),jC(50),_d(),jC(51),_d(),pa(52,"a",23),jC(53,"Cancel"),_d()()()()),r&2){let f,u,C,v,x;Jo(7),ii((f=l.successMessage())?7:-1,f),Jo(),ii((u=l.errorMessage())?8:-1,u),Jo(),ii((C=l.definitionsError())?9:-1,C),Jo(),ii((v=l.launchTargetsError())?10:-1,v),Jo(),Gg("formGroup",l.form),Jo(4),ii(l.workflowTypes().length>0?15:16),Jo(2),ii(l.form.controls.workflowType.hasError("required")?17:-1),Jo(2),fy(l.definitionsLoading()?"Loading definitions\u2026":"workflowType"),Jo(4),HI(),Jo(),Jw(l.namespaces()),Jo(2),ii(l.form.controls.namespaceId.hasError("required")?26:-1),Jo(),ii((x=l.selectedNamespace())?27:l.launchTargetsLoading()?28:!l.launchTargetsError()&&l.namespaces().length===0?29:-1,x),Jo(6),HI(),Jo(6),HI(),Jo(4),HI(),Jo(),ii(l.form.controls.initialRequest.hasError("maxlength")?44:-1),Jo(4),Gg("disabled",l.submitting()||l.launchTargetsLoading()||!!l.launchTargetsError()||l.namespaces().length===0),Jo(2),fy(l.submitting()?"hourglass_top":"play_arrow"),Jo(),Td(" ",l.submitting()?"Launching\u2026":"Launch run"," ");}},dependencies:[Nr,Vr,Xn,Er,Mr,is,Ss,As,Nt,BW,jW,Pt,It,Me$1,Se$1,_i,G8,W8,Be,Pe$1,Wr,Hr,ce$1],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:900px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.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}.launch-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:24px}.field[_ngcontent-%COMP%]{width:100%}.field--wide[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;gap:10px;padding-top:8px}.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--success[_ngcontent-%COMP%]{color:#6ee79a;border-color:#22583a;background:#0e1f16}.banner--error[_ngcontent-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.banner--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}@media(max-width:720px){.launch-form[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}"]})};export{Ee as LaunchPageComponent,Ve as formatLaunchError};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {O as pe,T as ce,P as Pt,V as eo,h,aV as ue,cf as be,cg as Ae,aU as P,ch as Ee,aW as ri,aZ as pf,Y as y,aY as Z,ci as J3,ae as Ht,cj as H3,ck as ys,am as Ss,bY as Vt,cl as zt,cm as qn,cn as me,A as Hs,aL as et,b3 as ma,aN as _t,ar as by,co as Fe,X as Xg,bM as Kg,s as or,K as Et,cp as Xe,b9 as Bt,bc as Cn,cq as hn,cr as F,x as xe}from'./main-
|
|
1
|
+
import {O as pe,T as ce,P as Pt,V as eo,h,aV as ue,cf as be,cg as Ae,aU as P,ch as Ee,aW as ri,aZ as pf,Y as y,aY as Z,ci as J3,ae as Ht,cj as H3,ck as ys,am as Ss,bY as Vt,cl as zt,cm as qn,cn as me,A as Hs,aL as et,b3 as ma,aN as _t,ar as by,co as Fe,X as Xg,bM as Kg,s as or,K as Et,cp as Xe,b9 as Bt,bc as Cn,cq as hn,cr as F,x as xe}from'./main-JIBFASD2.js';var J=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=xe({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize {
|
|
2
2
|
resize: none;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {$ as $e,H as Ht,j as jt,N as Nt,z as zt,V as Vt}from'./chunk-
|
|
1
|
+
import {$ as $e,H as Ht,j as jt,N as Nt,z as zt,V as Vt}from'./chunk-CjhHnhWE.js';import {h,x as xe,B as BW,j as jW,p as pa,d as jC,_ as _d,f as oi,J as Jo,m as fy,l as ii,i as Gg,K as Et,a9 as Td,w as dC}from'./main-JIBFASD2.js';function S(o,m){if(o&1&&(pa(0,"code",1),jC(1),_d()),o&2){let a=dC();Jo(),fy(a.data.detail);}}var I=class o{data=h($e);static \u0275fac=function(a){return new(a||o)};static \u0275cmp=xe({type:o,selectors:[["sf-confirm-dialog"]],decls:11,vars:8,consts:[["mat-dialog-title",""],[1,"sf-mono","dialog-detail"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",3,"mat-dialog-close"]],template:function(a,l){a&1&&(pa(0,"h2",0),jC(1),_d(),pa(2,"mat-dialog-content")(3,"p"),jC(4),_d(),oi(5,S,2,1,"code",1),_d(),pa(6,"mat-dialog-actions",2)(7,"button",3),jC(8,"Cancel"),_d(),pa(9,"button",4),jC(10),_d()()),a&2&&(Jo(),fy(l.data.title),Jo(3),fy(l.data.message),Jo(),ii(l.data.detail?5:-1),Jo(2),Gg("mat-dialog-close",false),Jo(2),Et("sf-danger",l.data.destructive),Gg("mat-dialog-close",true),Jo(),Td(" ",l.data.confirmLabel??"Confirm"," "));},dependencies:[BW,jW,Ht,jt,Nt,zt,Vt],styles:[".dialog-detail[_ngcontent-%COMP%]{display:inline-block;margin-top:10px;padding:4px 8px;border-radius:6px;background:var(--sf-surface-2);color:var(--sf-primary)}"]})};export{I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {J,Z}from'./chunk-
|
|
1
|
+
import {J,Z}from'./chunk-CEVLnVmT.js';import {h,as as mb,aC as G,g as gb,Z as Ze,x as xe,B as BW,j as jW,G as G8,W as W8,N as Nt,p as pa,d as jC,_ as _d,f as oi,J as Jo,i as Gg,u as py,l as ii,m as fy,q as qg,w as dC}from'./main-JIBFASD2.js';function T(e,t){e&1&&(pa(0,"p",5),jC(1),_d()),e&2&&(Jo(),fy(t));}function W(e,t){e&1&&(pa(0,"div",6),qg(1,"mat-progress-spinner",9),pa(2,"span",10),jC(3,"Loading definition\u2026"),_d()());}function I(e,t){e&1&&(pa(0,"div",7)(1,"mat-icon",11),jC(2,"cloud_off"),_d(),pa(3,"span"),jC(4),_d()()),e&2&&(Jo(4),fy(t));}function z(e,t){if(e&1&&(pa(0,"pre",8)(1,"code"),jC(2),_d()()),e&2){let l=dC();Jo(2),fy(l.formatJson(t));}}function F(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}var E=class e{api=h(mb);route=h(G);shell=h(gb);backLink=["/workflows"];loading=Ze(false);error=Ze(null);definition=Ze(null);workflowType;version;formatJson=F;constructor(){let t=this.route.snapshot.paramMap;this.workflowType=t.get("type")??"",this.version=t.get("version")??"",this.shell.crumbs.set([{label:"Workflows",link:"/workflows"},{label:`${this.workflowType}@${this.version}`,mono:true}]),this.load();}load(){if(!this.workflowType||!this.version){this.error.set("Missing route parameters (type or version).");return}this.loading.set(true),this.error.set(null),this.api.getWorkflowDefinition(this.workflowType,this.version).subscribe({next:t=>{this.definition.set(t),this.loading.set(false);},error:t=>{this.error.set(t?.message?.trim()||"Unable to load workflow definition."),this.loading.set(false);}});}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=xe({type:e,selectors:[["sf-workflow-detail-page"]],decls:13,vars:5,consts:[[1,"page"],[1,"page-head"],["mat-stroked-button","","data-workflow-back","",1,"sf-secondary","back-btn",3,"routerLink"],[1,"titles"],["data-workflow-detail-type","",1,"sf-mono"],["data-workflow-detail-title","",1,"sf-muted"],["data-workflow-detail-loading","",1,"state"],["role","alert","data-workflow-detail-error","",1,"banner","banner--warn"],["data-workflow-detail-json","",1,"json-block"],["diameter","32","mode","indeterminate"],[1,"sf-muted"],["aria-hidden","true"]],template:function(l,a){if(l&1&&(pa(0,"div",0)(1,"header",1)(2,"a",2)(3,"mat-icon"),jC(4,"arrow_back"),_d(),jC(5," Back "),_d(),pa(6,"div",3)(7,"h1",4),jC(8),_d(),oi(9,T,2,1,"p",5),_d()(),oi(10,W,4,0,"div",6)(11,I,5,1,"div",7)(12,z,3,1,"pre",8),_d()),l&2){let g,f;Jo(2),Gg("routerLink",a.backLink),Jo(6),py("",a.workflowType,"@",a.version),Jo(),ii((g=a.definition()?.title)?9:-1,g),Jo(),ii(a.loading()?10:(f=a.error())?11:(f=a.definition())?12:-1,f);}},dependencies:[BW,jW,G8,W8,J,Z,Nt],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:1200px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}.back-btn[_ngcontent-%COMP%]{flex-shrink:0;margin-top:2px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em;word-break:break-all}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.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--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}.state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.json-block[_ngcontent-%COMP%]{margin:0;padding:20px 24px;border-radius:12px;border:1px solid var(--sf-outline);background:var(--sf-surface-2);font-family:var(--sf-mono);font-size:13px;line-height:1.6;overflow-x:auto;overflow-y:auto;max-height:75vh;white-space:pre;tab-size:2}.json-block[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font:inherit;color:inherit;background:none;padding:0}"]})};export{E as WorkflowDetailPageComponent,F as formatJson};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {O as pe,T as ce,V as eo,h,aV as ue,Y as y,cs as NM,x as xe,ct as oS,bh as Pd,b4 as Hg,p as pa,bs as nh,q as qg,_ as _d,bJ as rh,cu as Yg,bH as yC,J as Jo,s as or,bi as sy,i as Gg,a6 as ai,K as Et,b5 as ty,aP as hC,aQ as mC,w as dC,cv as nT}from'./main-
|
|
1
|
+
import {O as pe,T as ce,V as eo,h,aV as ue,Y as y,cs as NM,x as xe,ct as oS,bh as Pd,b4 as Hg,p as pa,bs as nh,q as qg,_ as _d,bJ as rh,cu as Yg,bH as yC,J as Jo,s as or,bi as sy,i as Gg,a6 as ai,K as Et,b5 as ty,aP as hC,aQ as mC,w as dC,cv as nT}from'./main-JIBFASD2.js';var I=["determinateSpinner"];function z(i,V){if(i&1&&(nh(),pa(0,"svg",11),qg(1,"circle",12),_d()),i&2){let e=dC();or("viewBox",e._viewBox()),Jo(),sy("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),or("r",e._circleRadius());}}var D=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:O})}),O=100,N=10,Z=(()=>{class i{_elementRef=h(ue);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=h(D),n=NM(),r=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=O;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-N)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=xe({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&ty(I,5),n&2){let s;hC(s=mC())&&(r._determinateCircle=s.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(or("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),ai("mat-"+r.color),sy("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),Et("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",Pd],diameter:[2,"diameter","diameter",Pd],strokeWidth:[2,"strokeWidth","strokeWidth",Pd]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&(Hg(0,z,2,8,"ng-template",null,0,nT),pa(2,"div",2,1),nh(),pa(4,"svg",3),qg(5,"circle",4),_d()(),rh(),pa(6,"div",5)(7,"div",6)(8,"div",7),Yg(9,8),_d(),pa(10,"div",9),Yg(11,8),_d(),pa(12,"div",10),Yg(13,8),_d()()()),n&2){let s=yC(1);Jo(4),or("viewBox",r._viewBox()),Jo(),sy("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),or("r",r._circleRadius()),Jo(4),Gg("ngTemplateOutlet",s),Jo(2),Gg("ngTemplateOutlet",s),Jo(2),Gg("ngTemplateOutlet",s);}},dependencies:[oS],styles:[`.mat-mdc-progress-spinner {
|
|
2
2
|
--mat-progress-spinner-animation-multiplier: 1;
|
|
3
3
|
display: block;
|
|
4
4
|
overflow: hidden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {J,Z}from'./chunk-
|
|
1
|
+
import {J,Z}from'./chunk-CEVLnVmT.js';import {h,r as aT,g as gb,x as xe,N as Nt,B as BW,j as jW,G as G8,W as W8,p as pa,d as jC,_ as _d,X as Xg,f as oi,J as Jo,i as Gg,l as ii,ar as by,m as fy,q as qg,e as Xw,w as dC,k as Jw,s as or,u as py,a9 as Td}from'./main-JIBFASD2.js';import {c}from'./chunk-DJTK00iK.js';function L(n,e){return this.definitionKey(e)}function H(n,e){n&1&&(pa(0,"div",5)(1,"mat-icon",9),jC(2,"cloud_off"),_d(),pa(3,"span"),jC(4),_d()()),n&2&&(Jo(4),fy(e));}function $(n,e){n&1&&(pa(0,"div",6),qg(1,"mat-progress-spinner",10),pa(2,"span",3),jC(3,"Loading definitions\u2026"),_d()());}function K(n,e){n&1&&(pa(0,"div",7)(1,"mat-icon",9),jC(2,"inventory_2"),_d(),pa(3,"p",3),jC(4,"No workflow definitions registered."),_d()());}function N(n,e){if(n&1&&(pa(0,"a",11)(1,"div",12)(2,"h2",13),jC(3),_d(),pa(4,"p",14),jC(5),_d()(),pa(6,"span",15),jC(7),_d(),pa(8,"mat-icon",16),jC(9,"chevron_right"),_d()()),n&2){let t=e.$implicit,a=dC(2);Gg("routerLink",a.detailLink(t)),or("data-workflow-card",a.definitionKey(t))("data-workflow-card-link",a.definitionKey(t)),Jo(3),fy(a.definitionTitle(t)),Jo(2),py(" ",t.workflowType,"@",t.version," "),Jo(),Gg("title",t.definitionHash??""),Jo(),Td(" ",a.shortHash(t)," ");}}function F(n,e){if(n&1&&(pa(0,"div",8),Xw(1,N,10,8,"a",11,L,true),_d()),n&2){let t=dC();Jo(),Jw(t.definitions());}}var I=class n{state=h(c);definitions=this.state.definitions;loading=this.state.loading;error=aT(()=>this.state.error()?.message?.trim()||(this.state.error()?"Unable to load workflow definitions.":null));constructor(){h(gb).crumbs.set([{label:"Workflows"}]),this.load();}load(){this.state.load();}definitionKey(e){return `${e.workflowType??""}@${e.version??""}`}definitionTitle(e){let t=typeof e.title=="string"?e.title.trim():"",a=typeof e.workflowType=="string"?e.workflowType.trim():"";return t||a||"Definition without type"}shortHash(e){let t=typeof e.definitionHash=="string"?e.definitionHash.trim():"";return t?t.length>12?`${t.slice(0,12)}\u2026`:t:"\u2014"}detailLink(e){return ["/workflows",String(e.workflowType??""),String(e.version??"")]}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["sf-workflows-page"]],features:[by([c])],decls:15,vars:3,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["mat-stroked-button","",1,"sf-secondary",3,"click","disabled"],["role","alert","data-workflow-error","true",1,"banner","banner--warn"],["data-workflow-loading","true",1,"state"],["data-workflow-empty","true",1,"state","sf-panel"],["data-workflow-list","true",1,"grid"],["aria-hidden","true"],["diameter","32","mode","indeterminate"],[1,"wf-card",3,"routerLink"],[1,"wf-card__titles"],["data-workflow-title","",1,"wf-card__title"],["data-workflow-subtitle","",1,"wf-card__subtitle","sf-mono"],["data-workflow-hash","",1,"wf-card__hash","sf-mono",3,"title"],["aria-hidden","true",1,"wf-card__chevron"]],template:function(t,a){if(t&1&&(pa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),jC(4,"Workflows"),_d(),pa(5,"p",3),jC(6,"Registered workflow definitions and their governed steps."),_d()(),pa(7,"button",4),Xg("click",function(){return a.load()}),pa(8,"mat-icon"),jC(9,"refresh"),_d(),jC(10," Refresh "),_d()(),oi(11,H,5,1,"div",5),oi(12,$,4,0,"div",6)(13,K,5,0,"div",7)(14,F,3,0,"div",8),_d()),t&2){let d;Jo(7),Gg("disabled",a.loading()),Jo(4),ii((d=a.error())?11:-1,d),Jo(),ii(a.loading()?12:a.definitions().length===0?13:14);}},dependencies:[Nt,BW,jW,G8,W8,J,Z],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:1200px}.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}.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--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}.state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.state.sf-panel[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;gap:8px;padding:40px;text-align:center}.state.sf-panel[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:36px;height:36px;font-size:36px;color:var(--sf-text-muted)}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px}.wf-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:12px;border:1px solid var(--sf-outline);background:var(--sf-surface);text-decoration:none;color:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease}.wf-card[_ngcontent-%COMP%]:hover{background:#141a26;border-color:var(--sf-outline-active)}.wf-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--sf-primary);outline-offset:2px}.wf-card__titles[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.wf-card__title[_ngcontent-%COMP%]{margin:0;font-size:17px;font-weight:700;color:var(--sf-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wf-card__subtitle[_ngcontent-%COMP%]{margin:0;font-size:12.5px;color:var(--sf-secondary)}.wf-card__hash[_ngcontent-%COMP%]{font-size:12px;color:var(--sf-text-muted);padding:4px 10px;border:1px solid var(--sf-outline-strong);border-radius:999px;background:var(--sf-surface-2);white-space:nowrap;flex-shrink:0}.wf-card__chevron[_ngcontent-%COMP%]{color:var(--sf-text-muted);flex-shrink:0}"]})};export{I as WorkflowsPageComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {h,Y as y,aZ as pf,b$ as K$1,aS as oo,aY as Z,cw as Kb,aI as Ac,af as I,bj as V$1,cx as Ue$1,cr as F,cy as ze$1,cz as Ze$1,c9 as Ut,b0 as ct,ca as Q,cA as wt,cB as Nt$1,bN as $r,b1 as K$2,bC as nM,bW as co,a$ as wt$1,bd as Qb,be as Xv,aX as Re$1,aK as fm,x as xe,b2 as tn,aM as Zr,p as pa,b4 as Hg,_ as _d,bM as Kg,s as or,K as Et,O as pe,T as ce,bZ as pi,aG as Me$1,V as eo,aV as ue,aL as et,b3 as ma,X as Xg,cC as Fw,cD as pt,cE as IM,cF as qv,aU as P,b6 as af,aW as ri,b7 as Oy,cf as be,aT as k,c0 as ql,cG as cM,b5 as ty,aP as hC,aQ as mC,Z as Ze$2,cH as uM,cI as TM,cJ as Ft}from'./main-
|
|
1
|
+
import {h,Y as y,aZ as pf,b$ as K$1,aS as oo,aY as Z,cw as Kb,aI as Ac,af as I,bj as V$1,cx as Ue$1,cr as F,cy as ze$1,cz as Ze$1,c9 as Ut,b0 as ct,ca as Q,cA as wt,cB as Nt$1,bN as $r,b1 as K$2,bC as nM,bW as co,a$ as wt$1,bd as Qb,be as Xv,aX as Re$1,aK as fm,x as xe,b2 as tn,aM as Zr,p as pa,b4 as Hg,_ as _d,bM as Kg,s as or,K as Et,O as pe,T as ce,bZ as pi,aG as Me$1,V as eo,aV as ue,aL as et,b3 as ma,X as Xg,cC as Fw,cD as pt,cE as IM,cF as qv,aU as P,b6 as af,aW as ri,b7 as Oy,cf as be,aT as k,c0 as ql,cG as cM,b5 as ty,aP as hC,aQ as mC,Z as Ze$2,cH as uM,cI as TM,cJ as Ft}from'./main-JIBFASD2.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends pt{_elementRef=h(ue);_focusTrapFactory=h(IM);_config;_interactivityChecker=h(qv);_ngZone=h(P);_focusMonitor=h(af);_renderer=h(ri);_changeDetectorRef=h(Oy);_injector=h(K$1);_platform=h(be);_document=h(k);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=h(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||ql(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=cM(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=cM();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=cM()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&ty(tn,7),t&2){let o;hC(o=mC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&or("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[Zr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&Hg(0,ze,0,0,"ng-template",0);},dependencies:[tn],styles:[`.cdk-dialog-container {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {cL as U$1,bw as In,aY as Z,cM as Fv,bd as Qb,av as $e$1,aD as Ec,aE as O,O as pe$1,T as ce$1,V as eo,aK as fm,x as xe,aM as Zr,a0 as ir,a1 as tt,f as oi$1,J as Jo,l as ii$1,ar as by,Y as y,K as Et,aL as et,aN as _t,cu as Yg,h,aO as ey,aP as hC,aQ as mC,bm as Lt,cN as ky,b7 as Oy,aV as ue$1,bC as nM,cf as be,cO as B,b$ as K,cP as Pe,aT as k,aX as Re,bb as Na,bA as vr,cQ as ut$1,cR as Oe,cS as Mt,cT as x,cU as Yb,cV as Xb,cW as Zb,cX as qb,aR as qr,bN as $r,b3 as ma,c0 as ql,p as pa,_ as _d}from'./main-R4PLQRBB.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&&(pa(0,"thead",0),Yg(1,1),_d(),pa(2,"tbody",0),Yg(3,2)(4,3),_d(),pa(5,"tfoot",0),Yg(6,4),_d());}function at(i,n){i&1&&Yg(0,1)(1,2)(2,3)(3,4);}var R=new y("CDK_TABLE");var te=(()=>{class i{template=h($r);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ie=(()=>{class i{template=h($r);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Qe=(()=>{class i{template=h($r);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&&ey(r,te,5)(r,ie,5)(r,Qe,5),t&2){let s;hC(s=mC())&&(o.cell=s.first),hC(s=mC())&&(o.headerCell=s.first),hC(s=mC())&&(o.footerCell=s.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",_t],stickyEnd:[2,"stickyEnd","stickyEnd",_t]}})}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:[Zr]})}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:[Zr]})}return i})();var de=(()=>{class i{template=h($r);_differs=h(ky);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:[ma]})}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=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",_t]},features:[Zr,ma]})}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=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",_t]},features:[Zr,ma]})}return i})(),oe=(()=>{class i extends de{_table=h(R,{optional:true});when;static \u0275fac=(()=>{let e;return function(o){return (e||(e=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Zr]})}return i})(),N=(()=>{class i{_viewContainer=h(qr);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&&Yg(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&&Yg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),ne=(()=>{class i{templateRef=h($r);_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));ql({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]}),ql({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=[];ql({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&&ql({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(qr);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(qr);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(qr);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(qr);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(ky);_changeDetectorRef=h(Oy);_elementRef=h(ue$1);_dir=h(nM,{optional:true});_platform=h(be);_viewRepeater;_viewportRuler=h(B);_injector=h(K);_virtualScrollViewport=h(Pe,{optional:true,host:true});_positionListener=h(Q,{optional:true})||h(Q,{optional:true,skipSelf:true});_document=h(k);_data;_renderedRange;_onDestroy=new Z;_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 Z;_footerRowStickyUpdates=new Z;_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 Z;_dataStream=new Z;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 In({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){h(new Na("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(vr(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new ut$1:new Oe,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(),Mt(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===x.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=[],Mt(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;Mt(this.dataSource)?e=this.dataSource.connect(this):Yb(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e$1(this.dataSource)),this._renderChangeSubscription=Ec([e,this.viewChange]).pipe(vr(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(vr(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Zb:qb;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Xb(0,t),vr(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),Ec([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(vr(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`;}}}),Ec([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(vr(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&&ey(r,ne,5)(r,U,5)(r,oe,5)(r,W,5)(r,fe,5),t&2){let s;hC(s=mC())&&(o._noDataRow=s.first),hC(s=mC())&&(o._contentColumnDefs=s),hC(s=mC())&&(o._contentRowDefs=s),hC(s=mC())&&(o._contentHeaderRowDefs=s),hC(s=mC())&&(o._contentFooterRowDefs=s);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&Et("cdk-table-fixed-layout",o.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",_t],fixedLayout:[2,"fixedLayout","fixedLayout",_t],recycleRows:[2,"recycleRows","recycleRows",_t]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[by([{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&&(ir(ot),tt(0),tt(1,1),oi$1(2,rt,1,0),oi$1(3,st,7,0)(4,at,4,0)),t&2&&(Jo(2),ii$1(o._isServer?2:-1),Jo(),ii$1(o._isNativeHtmlTable?3:4));},dependencies:[ye,me,pe,_e],styles:[`.cdk-table-fixed-layout {
|
|
1
|
+
import {cL as U$1,bw as In,aY as Z,cM as Fv,bd as Qb,av as $e$1,aD as Ec,aE as O,O as pe$1,T as ce$1,V as eo,aK as fm,x as xe,aM as Zr,a0 as ir,a1 as tt,f as oi$1,J as Jo,l as ii$1,ar as by,Y as y,K as Et,aL as et,aN as _t,cu as Yg,h,aO as ey,aP as hC,aQ as mC,bm as Lt,cN as ky,b7 as Oy,aV as ue$1,bC as nM,cf as be,cO as B,b$ as K,cP as Pe,aT as k,aX as Re,bb as Na,bA as vr,cQ as ut$1,cR as Oe,cS as Mt,cT as x,cU as Yb,cV as Xb,cW as Zb,cX as qb,aR as qr,bN as $r,b3 as ma,c0 as ql,p as pa,_ as _d}from'./main-JIBFASD2.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&&(pa(0,"thead",0),Yg(1,1),_d(),pa(2,"tbody",0),Yg(3,2)(4,3),_d(),pa(5,"tfoot",0),Yg(6,4),_d());}function at(i,n){i&1&&Yg(0,1)(1,2)(2,3)(3,4);}var R=new y("CDK_TABLE");var te=(()=>{class i{template=h($r);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ie=(()=>{class i{template=h($r);static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Qe=(()=>{class i{template=h($r);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&&ey(r,te,5)(r,ie,5)(r,Qe,5),t&2){let s;hC(s=mC())&&(o.cell=s.first),hC(s=mC())&&(o.headerCell=s.first),hC(s=mC())&&(o.footerCell=s.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",_t],stickyEnd:[2,"stickyEnd","stickyEnd",_t]}})}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:[Zr]})}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:[Zr]})}return i})();var de=(()=>{class i{template=h($r);_differs=h(ky);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:[ma]})}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=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",_t]},features:[Zr,ma]})}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=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",_t]},features:[Zr,ma]})}return i})(),oe=(()=>{class i extends de{_table=h(R,{optional:true});when;static \u0275fac=(()=>{let e;return function(o){return (e||(e=fm(i)))(o||i)}})();static \u0275dir=et({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Zr]})}return i})(),N=(()=>{class i{_viewContainer=h(qr);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&&Yg(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&&Yg(0,0);},dependencies:[N],encapsulation:2,changeDetection:1})}return i})(),ne=(()=>{class i{templateRef=h($r);_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));ql({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]}),ql({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=[];ql({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&&ql({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(qr);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(qr);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(qr);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(qr);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(ky);_changeDetectorRef=h(Oy);_elementRef=h(ue$1);_dir=h(nM,{optional:true});_platform=h(be);_viewRepeater;_viewportRuler=h(B);_injector=h(K);_virtualScrollViewport=h(Pe,{optional:true,host:true});_positionListener=h(Q,{optional:true})||h(Q,{optional:true,skipSelf:true});_document=h(k);_data;_renderedRange;_onDestroy=new Z;_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 Z;_footerRowStickyUpdates=new Z;_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 Z;_dataStream=new Z;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 In({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;get renderedRows(){return this._renderRows}constructor(){h(new Na("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(vr(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=true;});}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new ut$1:new Oe,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(),Mt(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===x.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=[],Mt(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;Mt(this.dataSource)?e=this.dataSource.connect(this):Yb(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$e$1(this.dataSource)),this._renderChangeSubscription=Ec([e,this.viewChange]).pipe(vr(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(vr(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles();});}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Zb:qb;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(Xb(0,t),vr(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),Ec([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(vr(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`;}}}),Ec([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(vr(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&&ey(r,ne,5)(r,U,5)(r,oe,5)(r,W,5)(r,fe,5),t&2){let s;hC(s=mC())&&(o._noDataRow=s.first),hC(s=mC())&&(o._contentColumnDefs=s),hC(s=mC())&&(o._contentRowDefs=s),hC(s=mC())&&(o._contentHeaderRowDefs=s),hC(s=mC())&&(o._contentFooterRowDefs=s);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&Et("cdk-table-fixed-layout",o.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",_t],fixedLayout:[2,"fixedLayout","fixedLayout",_t],recycleRows:[2,"recycleRows","recycleRows",_t]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[by([{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&&(ir(ot),tt(0),tt(1,1),oi$1(2,rt,1,0),oi$1(3,st,7,0)(4,at,4,0)),t&2&&(Jo(2),ii$1(o._isServer?2:-1),Jo(),ii$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:[Lt]})}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&&(pa(0,"thead",0),Yg(1,1),_d(),pa(2,"tbody",2),Yg(3,3)(4,4),_d(),pa(5,"tfoot",0),Yg(6,5),_d());}function ht(i,n){i&1&&Yg(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=fm(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&&Et("mat-table-fixed-layout",o.fixedLayout);},exportAs:["matTable"],features:[by([{provide:ge,useExisting:i},{provide:R,useExisting:i},{provide:Q,useValue:null}]),Zr],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&&(ir(ct),tt(0),tt(1,1),oi$1(2,ft,1,0),oi$1(3,ut,7,0)(4,ht,4,0)),t&2&&(Jo(2),ii$1(o._isServer?2:-1),Jo(),ii$1(o._isNativeHtmlTable?3:4));},dependencies:[ye,me,pe,_e],styles:[`.mat-mdc-table-sticky {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {h,M as Mi,Z as Ze,r as aT,bj as V,af as I,bk as fH,bO as gt,g as gb,A as Hs,x as xe,N as Nt,B as BW,j as jW,bP as HM,P as Pt,I as It,a as Me,S as Se,bQ as bi,G as G8,W as W8,bR as Mt,b as Wr,H as Hr,c as ce$1,o as ot,p as pa,d as jC,_ as _d,X as Xg,q as qg,e as Xw,f as oi$1,bS as Id,b4 as Hg,bT as wd,Q as QC,J as Jo,i as Gg,a9 as Td,k as Jw,l as ii$1,m as fy,a4 as eT,br as qC,ar as by,bU as et$1,bV as C,bp as ry,bq as gC,as as mb,aw as yr,ax as GW,aA as M,bW as co,aY as Z,aX as Re,bX as Dt,Y as y,aL as et$2,b3 as ma,aN as _t,O as pe,T as ce$2,bB as pb,V as eo,bY as Vt,aI as Ac,bA as vr,aK as fm,aM as Zr,a0 as ir,bf as ln$1,a1 as tt$1,bg as dn$1,bE as
|
|
1
|
+
import {h,M as Mi,Z as Ze,r as aT,bj as V,af as I,bk as fH,bO as gt,g as gb,A as Hs,x as xe,N as Nt,B as BW,j as jW,bP as HM,P as Pt,I as It,a as Me,S as Se,bQ as bi,G as G8,W as W8,bR as Mt,b as Wr,H as Hr,c as ce$1,o as ot,p as pa,d as jC,_ as _d,X as Xg,q as qg,e as Xw,f as oi$1,bS as Id,b4 as Hg,bT as wd,Q as QC,J as Jo,i as Gg,a9 as Td,k as Jw,l as ii$1,m as fy,a4 as eT,br as qC,ar as by,bU as et$1,bV as C,bp as ry,bq as gC,as as mb,aw as yr,ax as GW,aA as M,bW as co,aY as Z,aX as Re,bX as Dt,Y as y,aL as et$2,b3 as ma,aN as _t,O as pe,T as ce$2,bB as pb,V as eo,bY as Vt,aI as Ac,bA as vr,aK as fm,aM as Zr,a0 as ir,bf as ln$1,a1 as tt$1,bg as dn$1,bE as Yn$1,bM as Kg,s as or,K as Et,aO as ey,aP as hC,aQ as mC,bZ as pi,b_ as Tt,aV as ue,b7 as Oy,b$ as K,aS as oo,aH as Kn$1,aZ as pf,aJ as ff,bx as Nc,bd as Qb,be as Xv,c0 as ql,c1 as Ug,b5 as ty,aT as k,b6 as af,b9 as Bt,ba as db,bF as fW,b8 as q,aW as ri$1,c2 as wi,c3 as Ii,c4 as M3,R as Ry,bi as sy,w as dC,L as ZC,a5 as JC,bH as yC,bC as nM,bh as Pd,bL as vs,c5 as uH,aU as P,c6 as vf,c7 as lb,c8 as Ja,a6 as ai$1,bs as nh,aR as qr,b0 as ct,c9 as Ut,ca as Q,cb as jt,av as $e,a$ as wt,b1 as K$1,cc as qI,bt as fn$1,cd as Ht,y as iC,ce as Jg,a7 as $p,a8 as zp,bN as $r}from'./main-JIBFASD2.js';import {B as Be$1,P as Pe}from'./chunk-BVUztuwN.js';import {K as Ke,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,l as li,U}from'./chunk-D-hYLN3s.js';import {_}from'./chunk-6gRr3WEV.js';var Ri=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ai=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Yi(n,a){n&1&&(pa(0,"span",3),tt$1(1,1),_d());}function $i(n,a){n&1&&(pa(0,"span",6),tt$1(1,2),_d());}function Wi(n,a){n&1&&(pa(0,"span",3),tt$1(1,1),pa(2,"span",7),nh(),pa(3,"svg",8),qg(4,"path",9),_d()()());}function Xi(n,a){n&1&&(pa(0,"span",6),tt$1(1,2),_d());}var Zi=`.mdc-evolution-chip,
|
|
2
2
|
.mdc-evolution-chip__cell,
|
|
3
3
|
.mdc-evolution-chip__action {
|
|
4
4
|
display: inline-flex;
|
|
@@ -1230,7 +1230,7 @@ input.mat-mdc-chip-input {
|
|
|
1230
1230
|
margin-left: 0;
|
|
1231
1231
|
margin-right: 0;
|
|
1232
1232
|
}
|
|
1233
|
-
`],encapsulation:2})}return n})(),Xe=class{source;value;constructor(a,e){this.source=a,this.value=e;}},tn={provide:Xn$1,useExisting:vs(()=>it),multi:true},it=(()=>{class n extends en{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_defaultOptions=h(Je,{optional:true});get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._syncListboxProperties();}_multiple=false;get selected(){let e=this._chips.toArray().filter(t=>t.selected);return this.multiple?e:e[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(e){this._selectable=e,this._syncListboxProperties();}_selectable=true;compareWith=(e,t)=>e===t;required=false;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncListboxProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get chipSelectionChanges(){return this._getChipStream(e=>e.selectionChange)}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}get value(){return this._value}set value(e){this._chips&&this._chips.length&&this._setSelectionByValue(e,false),this._value=e;}_value;change=new Re;_chips=void 0;ngAfterContentInit(){this._chips.changes.pipe(Ac(null),vr(this._destroyed)).subscribe(()=>{this.value!==void 0&&Promise.resolve().then(()=>{this._setSelectionByValue(this.value,false);}),this._syncListboxProperties();}),this.chipBlurChanges.pipe(vr(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(vr(this._destroyed)).subscribe(e=>{this.multiple||this._chips.forEach(t=>{t!==e.source&&t._setSelectedState(false,false,false);}),e.isUserInput&&this._propagateChanges();});}focus(){if(this.disabled)return;let e=this._getFirstSelectedChip();e&&!e.disabled?e.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus();}writeValue(e){e!=null?this.value=e:this.value=void 0;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_setSelectionByValue(e,t=true){this._clearSelection(),Array.isArray(e)?e.forEach(i=>this._selectValue(i,t)):this._selectValue(e,t);}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched();});}_keydown(e){e.keyCode===9&&super._allowFocusEscape();}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck();}_propagateChanges(){let e=null;Array.isArray(this.selected)?e=this.selected.map(t=>t.value):e=this.selected?this.selected.value:void 0,this._value=e,this.change.emit(new Xe(this,e)),this._onChange(e),this._changeDetectorRef.markForCheck();}_clearSelection(e){this._chips.forEach(t=>{t!==e&&t.deselect();});}_selectValue(e,t){let i=this._chips.find(o=>o.value!=null&&this.compareWith(o.value,e));return i&&(t?i.selectViaInteraction():i.select()),i}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(e=>{e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable,e._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,e._changeDetectorRef.markForCheck();});});}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(e){return false}static \u0275fac=(()=>{let e;return function(i){return (e||(e=fm(n)))(i||n)}})();static \u0275cmp=xe({type:n,selectors:[["mat-chip-listbox"]],contentQueries:function(t,i,o){if(t&1&&ey(o,tt,5),t&2){let r;hC(r=mC())&&(i._chips=r);}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(t,i){t&1&&Xg("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(r){return i._keydown(r)}),t&2&&(Kg("tabIndex",i.disabled||i.empty?-1:i.tabIndex),or("role",i.role)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-multiselectable",i.multiple)("aria-orientation",i.ariaOrientation),Et("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-required",i.required));},inputs:{multiple:[2,"multiple","multiple",_t],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",_t],compareWith:"compareWith",required:[2,"required","required",_t],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",_t],value:"value"},outputs:{change:"change"},features:[by([tn]),Zr],ngContentSelectors:Ti,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,i){t&1&&(ir(),ln$1(0,"div",0),tt$1(1),dn$1());},styles:[Ji],encapsulation:2})}return n})();var Bi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=pe({type:n});static \u0275inj=ce$2({providers:[Vt,{provide:Je,useValue:{separatorKeyCodes:[13]}}],imports:[pb,eo]})}return n})();var cn=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],sn=["mat-icon, [matMenuItemIcon]","*"];function ln(n,a){n&1&&(nh(),pa(0,"svg",2),qg(1,"polygon",3),_d());}var dn=["*"];function mn(n,a){if(n&1){let e=iC();ln$1(0,"div",0),Jg("click",function(){$p(e);let i=dC();return zp(i.closed.emit("click"))})("animationstart",function(i){$p(e);let o=dC();return zp(o._onAnimationStart(i.animationName))})("animationend",function(i){$p(e);let o=dC();return zp(o._onAnimationDone(i.animationName))})("animationcancel",function(i){$p(e);let o=dC();return zp(o._onAnimationDone(i.animationName))}),ln$1(1,"div",1),tt$1(2),dn$1()();}if(n&2){let e=dC();ai$1(e._classList),Et("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Kg("id",e.panelId),or("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var at=new y("MAT_MENU_PANEL"),be=(()=>{class n{_elementRef=h(ue);_document=h(k);_focusMonitor=h(af);_parentMenu=h(at,{optional:true});_changeDetectorRef=h(Oy);role="menuitem";disabled=false;disableRipple=false;_hovered=new Z;_focused=new Z;_highlighted=false;_triggersSubmenu=false;constructor(){h(Bt).load(db),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&Xg("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(or("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),Et("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",_t],disableRipple:[2,"disableRipple","disableRipple",_t]},exportAs:["matMenuItem"],ngContentSelectors:sn,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(ir(cn),tt$1(0),pa(1,"span",0),tt$1(2,1),_d(),qg(3,"div",1),oi$1(4,ln,2,0,":svg:svg",2)),t&2&&(Jo(3),Gg("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),Jo(),ii$1(i._triggersSubmenu?4:-1));},dependencies:[fW],encapsulation:2})}return n})();var pn=new y("MatMenuContent");var hn=new y("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),nt="_mat-menu-enter",Be="_mat-menu-exit",se=(()=>{class n{_elementRef=h(ue);_changeDetectorRef=h(Oy);_injector=h(K);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=oo();_allItems;_directDescendantItems=new Kn$1;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Ze(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,i=I({},this._classList);t&&t.length&&t.split(" ").forEach(o=>{i[o]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{i[o]=true;}),this._elementRef.nativeElement.className=""),this._classList=i;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new Re;close=this.closed;panelId=h(pf).getId("mat-menu-panel-");constructor(){let e=h(hn);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ff(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(e=>Qb(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),o=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[o]&&!i[o].disabled?t.setActiveItem(o):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(t=>Qb(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Xv(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ql(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=V(I({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===Be;(t||e===nt)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===nt||e===Be)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Be),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?nt:Be);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Ac(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["mat-menu"]],contentQueries:function(t,i,o){if(t&1&&ey(o,pn,5)(o,be,5)(o,be,4),t&2){let r;hC(r=mC())&&(i.lazyContent=r.first),hC(r=mC())&&(i._allItems=r),hC(r=mC())&&(i.items=r);}},viewQuery:function(t,i){if(t&1&&ty($r,5),t&2){let o;hC(o=mC())&&(i.templateRef=o.first);}},hostVars:3,hostBindings:function(t,i){t&2&&or("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",_t],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:_t(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[by([{provide:at,useExisting:n}])],ngContentSelectors:dn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(ir(),Ug(0,mn,3,12,"ng-template"));},styles:[`mat-menu {
|
|
1233
|
+
`],encapsulation:2})}return n})(),Xe=class{source;value;constructor(a,e){this.source=a,this.value=e;}},tn={provide:Yn$1,useExisting:vs(()=>it),multi:true},it=(()=>{class n extends en{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_defaultOptions=h(Je,{optional:true});get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._syncListboxProperties();}_multiple=false;get selected(){let e=this._chips.toArray().filter(t=>t.selected);return this.multiple?e:e[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(e){this._selectable=e,this._syncListboxProperties();}_selectable=true;compareWith=(e,t)=>e===t;required=false;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncListboxProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get chipSelectionChanges(){return this._getChipStream(e=>e.selectionChange)}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}get value(){return this._value}set value(e){this._chips&&this._chips.length&&this._setSelectionByValue(e,false),this._value=e;}_value;change=new Re;_chips=void 0;ngAfterContentInit(){this._chips.changes.pipe(Ac(null),vr(this._destroyed)).subscribe(()=>{this.value!==void 0&&Promise.resolve().then(()=>{this._setSelectionByValue(this.value,false);}),this._syncListboxProperties();}),this.chipBlurChanges.pipe(vr(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(vr(this._destroyed)).subscribe(e=>{this.multiple||this._chips.forEach(t=>{t!==e.source&&t._setSelectedState(false,false,false);}),e.isUserInput&&this._propagateChanges();});}focus(){if(this.disabled)return;let e=this._getFirstSelectedChip();e&&!e.disabled?e.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus();}writeValue(e){e!=null?this.value=e:this.value=void 0;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_setSelectionByValue(e,t=true){this._clearSelection(),Array.isArray(e)?e.forEach(i=>this._selectValue(i,t)):this._selectValue(e,t);}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched();});}_keydown(e){e.keyCode===9&&super._allowFocusEscape();}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck();}_propagateChanges(){let e=null;Array.isArray(this.selected)?e=this.selected.map(t=>t.value):e=this.selected?this.selected.value:void 0,this._value=e,this.change.emit(new Xe(this,e)),this._onChange(e),this._changeDetectorRef.markForCheck();}_clearSelection(e){this._chips.forEach(t=>{t!==e&&t.deselect();});}_selectValue(e,t){let i=this._chips.find(o=>o.value!=null&&this.compareWith(o.value,e));return i&&(t?i.selectViaInteraction():i.select()),i}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(e=>{e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable,e._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,e._changeDetectorRef.markForCheck();});});}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(e){return false}static \u0275fac=(()=>{let e;return function(i){return (e||(e=fm(n)))(i||n)}})();static \u0275cmp=xe({type:n,selectors:[["mat-chip-listbox"]],contentQueries:function(t,i,o){if(t&1&&ey(o,tt,5),t&2){let r;hC(r=mC())&&(i._chips=r);}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(t,i){t&1&&Xg("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(r){return i._keydown(r)}),t&2&&(Kg("tabIndex",i.disabled||i.empty?-1:i.tabIndex),or("role",i.role)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-multiselectable",i.multiple)("aria-orientation",i.ariaOrientation),Et("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-required",i.required));},inputs:{multiple:[2,"multiple","multiple",_t],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",_t],compareWith:"compareWith",required:[2,"required","required",_t],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",_t],value:"value"},outputs:{change:"change"},features:[by([tn]),Zr],ngContentSelectors:Ti,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,i){t&1&&(ir(),ln$1(0,"div",0),tt$1(1),dn$1());},styles:[Ji],encapsulation:2})}return n})();var Bi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=pe({type:n});static \u0275inj=ce$2({providers:[Vt,{provide:Je,useValue:{separatorKeyCodes:[13]}}],imports:[pb,eo]})}return n})();var cn=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],sn=["mat-icon, [matMenuItemIcon]","*"];function ln(n,a){n&1&&(nh(),pa(0,"svg",2),qg(1,"polygon",3),_d());}var dn=["*"];function mn(n,a){if(n&1){let e=iC();ln$1(0,"div",0),Jg("click",function(){$p(e);let i=dC();return zp(i.closed.emit("click"))})("animationstart",function(i){$p(e);let o=dC();return zp(o._onAnimationStart(i.animationName))})("animationend",function(i){$p(e);let o=dC();return zp(o._onAnimationDone(i.animationName))})("animationcancel",function(i){$p(e);let o=dC();return zp(o._onAnimationDone(i.animationName))}),ln$1(1,"div",1),tt$1(2),dn$1()();}if(n&2){let e=dC();ai$1(e._classList),Et("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Kg("id",e.panelId),or("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var at=new y("MAT_MENU_PANEL"),be=(()=>{class n{_elementRef=h(ue);_document=h(k);_focusMonitor=h(af);_parentMenu=h(at,{optional:true});_changeDetectorRef=h(Oy);role="menuitem";disabled=false;disableRipple=false;_hovered=new Z;_focused=new Z;_highlighted=false;_triggersSubmenu=false;constructor(){h(Bt).load(db),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&Xg("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(or("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),Et("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",_t],disableRipple:[2,"disableRipple","disableRipple",_t]},exportAs:["matMenuItem"],ngContentSelectors:sn,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(ir(cn),tt$1(0),pa(1,"span",0),tt$1(2,1),_d(),qg(3,"div",1),oi$1(4,ln,2,0,":svg:svg",2)),t&2&&(Jo(3),Gg("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),Jo(),ii$1(i._triggersSubmenu?4:-1));},dependencies:[fW],encapsulation:2})}return n})();var pn=new y("MatMenuContent");var hn=new y("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),nt="_mat-menu-enter",Be="_mat-menu-exit",se=(()=>{class n{_elementRef=h(ue);_changeDetectorRef=h(Oy);_injector=h(K);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=oo();_allItems;_directDescendantItems=new Kn$1;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Ze(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,i=I({},this._classList);t&&t.length&&t.split(" ").forEach(o=>{i[o]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{i[o]=true;}),this._elementRef.nativeElement.className=""),this._classList=i;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new Re;close=this.closed;panelId=h(pf).getId("mat-menu-panel-");constructor(){let e=h(hn);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ff(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(e=>Qb(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),o=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[o]&&!i[o].disabled?t.setActiveItem(o):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Ac(this._directDescendantItems),Nc(t=>Qb(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Xv(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ql(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=V(I({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===Be;(t||e===nt)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===nt||e===Be)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Be),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?nt:Be);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Ac(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=xe({type:n,selectors:[["mat-menu"]],contentQueries:function(t,i,o){if(t&1&&ey(o,pn,5)(o,be,5)(o,be,4),t&2){let r;hC(r=mC())&&(i.lazyContent=r.first),hC(r=mC())&&(i._allItems=r),hC(r=mC())&&(i.items=r);}},viewQuery:function(t,i){if(t&1&&ty($r,5),t&2){let o;hC(o=mC())&&(i.templateRef=o.first);}},hostVars:3,hostBindings:function(t,i){t&2&&or("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",_t],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:_t(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[by([{provide:at,useExisting:n}])],ngContentSelectors:dn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(ir(),Ug(0,mn,3,12,"ng-template"));},styles:[`mat-menu {
|
|
1234
1234
|
display: none;
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {h,as as mb,Z as Ze,aw as yr,aE as O,au as at,cY as Wt,aA as M}from'./main-
|
|
1
|
+
import {h,as as mb,Z as Ze,aw as yr,aE as O,au as at,cY as Wt,aA as M}from'./main-JIBFASD2.js';function g(r){if(Array.isArray(r))return r;let e=typeof r=="object"&&r!==null?r:{};if(Array.isArray(e.items))return e.items;if(Array.isArray(e.data))return e.data;let i=typeof e.data=="object"&&e.data!==null?e.data:{};return Array.isArray(i.items)?i.items:[]}var c=class r{api=h(mb);definitions=Ze([]);loading=Ze(false);error=Ze(null);uploading=Ze(false);deletingKey=Ze(null);load(){this.loading.set(true),this.error.set(null),this.api.getWorkflowDefinitions().pipe(yr(()=>this.loading.set(false))).subscribe({next:e=>this.definitions.set(g(e)),error:e=>{this.definitions.set([]),this.error.set(e);}});}upload(e){return this.uploading.set(true),this.error.set(null),this.api.uploadWorkflowDefinition(e).pipe(O(()=>{}),at(i=>(this.error.set(i),Wt(()=>i))),yr(()=>this.uploading.set(false)))}delete(e,i){let p=`${e}@${i}`;return this.deletingKey.set(p),this.error.set(null),this.api.deleteWorkflowDefinition(e,i).pipe(O(()=>{}),at(l=>(this.error.set(l),Wt(()=>l))),yr(()=>this.deletingKey.set(null)))}static \u0275fac=function(i){return new(i||r)};static \u0275prov=M({token:r,factory:r.\u0275fac})};export{c,g};
|