@knoflows/engine 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
Files changed (45) hide show
  1. package/dist/engine.js +21 -11
  2. package/package.json +4 -3
  3. package/static/assets/i18n/en.json +36 -2
  4. package/static/assets/i18n/es.json +36 -2
  5. package/static/{chunk-C40TdCIk.js → chunk--cAlvNjP.js} +1 -1
  6. package/static/{chunk-CCjvFBCX.js → chunk-3tEYpnqu.js} +1 -1
  7. package/static/chunk-4TrlkpZx.js +1 -0
  8. package/static/chunk-99HzEG7y.js +1 -0
  9. package/static/{chunk-ZijlINsH.js → chunk-B4PXIvtd.js} +1 -1
  10. package/static/chunk-BEPCHPAV.js +1 -0
  11. package/static/{chunk-CeFjDLjY.js → chunk-BJ_zTxjo.js} +1 -1
  12. package/static/chunk-BaL0hYvK.js +1 -0
  13. package/static/{chunk-DK8z5vU5.js → chunk-BnjE7sDc.js} +1 -1
  14. package/static/{chunk-CSPhdKAb.js → chunk-BqWiMcNp.js} +1 -1
  15. package/static/{chunk-Cnkrtkdu.js → chunk-BvGpCrD9.js} +1 -1
  16. package/static/{chunk-BDOL5Qby.js → chunk-Byfh9OPw.js} +1 -1
  17. package/static/chunk-C5kOvUkS.js +1 -0
  18. package/static/chunk-C67ITweo.js +1 -0
  19. package/static/{chunk-Dw1tJgiv.js → chunk-CECejZs9.js} +1 -1
  20. package/static/{chunk-CPxI4OjB.js → chunk-CWRAmEOi.js} +1 -1
  21. package/static/{chunk-KyBZUWGU.js → chunk-Ca9rxJZS.js} +1 -1
  22. package/static/chunk-CbG3rfKf.js +66 -0
  23. package/static/chunk-Cdhqfnmn.js +1 -0
  24. package/static/chunk-Cgq1n6kP.js +1 -0
  25. package/static/chunk-CpxvtoPc.js +1 -0
  26. package/static/{chunk-Csk1w6sD.js → chunk-D6KYmz2w.js} +1 -1
  27. package/static/{chunk-DS9-TMN6.js → chunk-DGw7ID-A.js} +1 -1
  28. package/static/{chunk-C50zASMN.js → chunk-DS5k0b_s.js} +1 -1
  29. package/static/{chunk-DyP6QbgY.js → chunk-DZ8K8fY1.js} +1 -1
  30. package/static/{chunk-8DHqiag3.js → chunk-DrMwVUpq.js} +1 -1
  31. package/static/{chunk-DI-Ex2sC.js → chunk-VW6e_Kls.js} +1 -1
  32. package/static/{chunk-BJLDaNHl.js → chunk-jDfyi4_G.js} +1 -1
  33. package/static/chunk-qdbp1qcP.js +1 -0
  34. package/static/chunk-smuNKEab.js +5 -0
  35. package/static/index.html +1 -1
  36. package/static/main-5C7K2447.js +249 -0
  37. package/static/chunk-B4GVyu_H.js +0 -1
  38. package/static/chunk-B5hULR_G.js +0 -1
  39. package/static/chunk-BQYw1slv.js +0 -1
  40. package/static/chunk-BU5DKI8R.js +0 -1
  41. package/static/chunk-BquD19tF.js +0 -5
  42. package/static/chunk-C9CuVcTl.js +0 -1
  43. package/static/chunk-CgvdAwRh.js +0 -1
  44. package/static/chunk-DxRo8m4J.js +0 -66
  45. package/static/main-BK4MAPTK.js +0 -249
@@ -1 +1 @@
1
- import {_ as _n,C as Cn}from'./chunk-CSPhdKAb.js';import {U}from'./chunk-DI-Ex2sC.js';import {W,I}from'./chunk-Dw1tJgiv.js';import {d as dr,c as ca,r as rr,o as oa,s as sr,V as Vn,p as pa}from'./chunk-BQYw1slv.js';import'./chunk-KyBZUWGU.js';import'./chunk-C50zASMN.js';import {C,a as ar,b as at,q as qo,R as Rt$1,c as qe,Q as QE,F as Fn,n as n8,J as J6,k as k3,M as Mt,d as sd,z as zc,e as t7,$ as $b,V as V5,D as D5,f as ec,g as _i,v as vw,h as Rw,K as Kc,m as bD,p as gI,P as Ph,O as Ow,u as nl,A as _D,B as VD,L as LD,j as gh,N as ND,S as SD,o as oE,w as ch,x as sE,y as xD,l as lh,a5 as ah,a2 as Pw,a3 as xw,E as Pu,G as Lu}from'./main-BK4MAPTK.js';var dt=e=>({count:e}),st=e=>["/workflows",e,"edit"],pt=(e,p)=>p.id;function ct(e,p){e&1&&(_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc()),e&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function mt(e,p){if(e&1&&(_i(0,"p",4),vw(1),Kc()),e&2){let t=VD();gI(),Ph(t.loadError());}}function ft(e,p){if(e&1&&(lh(0,"nz-option",7),Rw(1,"transloco")),e&2){let t=p.$implicit,o=VD(2);ch("nzValue",t)("nzLabel",Ow(1,2,o.cardinalityFilterKey(t)));}}function wt(e,p){if(e&1&&(_i(0,"p",8),vw(1),Kc()),e&2){let t=VD(2);gI(),Ph(t.deleteError());}}function _t(e,p){e&1&&(_i(0,"section",9)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"a",11),vw(5),Rw(6,"transloco"),Kc()()),e&2&&(gI(2),Ph(Ow(3,2,"workflows.list.emptyState")),gI(3),nl(" ",Ow(6,4,"workflows.list.emptyCreateButton")," "));}function ut(e,p){if(e&1&&(_i(0,"span"),vw(1),Kc()),e&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(t.description);}}function xt(e,p){if(e&1&&(_i(0,"span",13),vw(1),Rw(2,"transloco"),Kc()),e&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(Ow(2,2,"workflows.list.noDescription"));}}function Ct(e,p){if(e&1&&(_i(0,"nz-tag"),vw(1),Rw(2,"transloco"),Kc()),e&2){let t=p.$implicit,o=VD().$implicit,m=VD(3);ah("data-testid","applies-to-"+o.id),gI(),Ph(Ow(2,2,m.subjectTypeKey(t)));}}function gt(e,p){if(e&1){let t=LD();_i(0,"tr")(1,"td")(2,"span"),vw(3),Kc()(),_i(4,"td",12),bD(5,ut,2,2,"span")(6,xt,3,4,"span",13),Kc(),_i(7,"td"),ND(8,Ct,3,4,"nz-tag",null,SD),Kc(),_i(10,"td")(11,"nz-tag"),vw(12),Rw(13,"transloco"),Kc()(),_i(14,"td")(15,"span"),vw(16),Rw(17,"transloco"),Kc()(),_i(18,"td",14)(19,"a",15),vw(20),Rw(21,"transloco"),Kc(),_i(22,"button",16),Rw(23,"transloco"),Rw(24,"transloco"),Rw(25,"transloco"),gh("nzOnConfirm",function(){let m=Pu(t).$implicit,h=VD(3);return Lu(h.deleteWorkflow(m.id))}),vw(26),Rw(27,"transloco"),Kc()()();}if(e&2){let t=p.$implicit,o=VD(3);ah("data-testid","workflow-"+t.id),gI(2),ah("data-testid","name-"+t.id),gI(),Ph(t.name),gI(2),_D(t.description?.trim()?5:6),gI(3),xD(o.appliesToValues(t)),gI(3),ah("data-testid","cardinality-"+t.id),gI(),Ph(Ow(13,16,o.cardinalityKey(t.cardinality))),gI(3),ah("data-testid","step-count-"+t.id),gI(),Ph(Pw(17,18,"workflows.list.stepCount",xw(31,dt,t.steps.length))),gI(3),ch("routerLink",xw(33,st,t.id)),ah("data-testid","edit-"+t.id),gI(),nl(" ",Ow(21,21,"workflows.list.edit")," "),gI(2),ch("nzPopconfirmTitle",Ow(23,23,"workflows.list.deleteConfirm"))("nzOkText",Ow(24,25,"workflows.list.delete"))("nzCancelText",Ow(25,27,"common.cancel")),ah("data-testid","delete-"+t.id),gI(4),nl(" ",Ow(27,29,"workflows.list.delete")," ");}}function kt(e,p){if(e&1&&(_i(0,"nz-table",10)(1,"thead")(2,"tr")(3,"th"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"th"),vw(7),Rw(8,"transloco"),Kc(),_i(9,"th"),vw(10),Rw(11,"transloco"),Kc(),_i(12,"th"),vw(13),Rw(14,"transloco"),Kc(),_i(15,"th"),vw(16),Rw(17,"transloco"),Kc(),_i(18,"th"),vw(19),Rw(20,"transloco"),Kc()()(),_i(21,"tbody"),ND(22,gt,28,35,"tr",null,pt),Kc()()),e&2){let t=VD(2);ch("nzData",t.workflows())("nzFrontPagination",false)("nzShowPagination",false),gI(4),Ph(Ow(5,9,"workflows.list.column.name")),gI(3),Ph(Ow(8,11,"workflows.list.column.description")),gI(3),Ph(Ow(11,13,"workflow-editor.appliesTo")),gI(3),Ph(Ow(14,15,"workflow-editor.cardinality.label")),gI(3),Ph(Ow(17,17,"workflows.list.column.steps")),gI(3),Ph(Ow(20,19,"workflows.list.column.actions")),gI(3),xD(t.workflows());}}function yt(e,p){if(e&1){let t=LD();_i(0,"div",5)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"nz-select",6),gh("ngModelChange",function(m){Pu(t);let h=VD();return Lu(h.setCardinalityFilter(m))}),ND(5,ft,2,4,"nz-option",7,SD),Kc(),oE(),Kc(),bD(7,wt,2,1,"p",8),bD(8,_t,7,6,"section",9)(9,kt,24,21,"nz-table",10);}if(e&2){let t=VD();gI(2),Ph(Ow(3,4,"workflows.list.filterByLaunchMode")),gI(2),ch("ngModel",t.cardinalityFilter()),sE(),gI(),xD(t.cardinalityOptions),gI(2),_D(t.deleteError()?7:-1),gI(),_D(t.workflows().length===0?8:9);}}var Rt=(()=>{class e{constructor(){this.workflowsApi=C(U),this.transloco=C(ar),this.destroyRef=C(at),this.workflows=qo([]),this.loading=qo(true),this.loadError=qo(null),this.deleteError=qo(null),this.cardinalityFilter=qo("all"),this.cardinalityOptions=["all","single","batch","aggregate"],this.load();}setCardinalityFilter(t){this.cardinalityFilter.set(t),this.load();}appliesToValues(t){let o=t.appliesTo;return o==="none"?["none"]:Array.isArray(o)?o:[o]}subjectTypeKey(t){return `workflow-editor.subjectType.${t}`}cardinalityKey(t){return `workflow-editor.cardinality.${t}`}cardinalityFilterKey(t){return t==="all"?"workflows.list.filterAll":`workflow-editor.cardinality.${t}`}deleteWorkflow(t){this.deleteError.set(null),this.workflowsApi.delete(t).pipe(Rt$1(this.destroyRef)).subscribe({next:()=>{this.workflows.update(o=>o.filter(m=>m.id!==t));},error:o=>{this.deleteError.set(this.errorMessage(o,this.transloco.translate("workflows.list.deleteFailed")));}});}load(){let t=this.cardinalityFilter();this.loading.set(true),this.loadError.set(null),this.workflowsApi.list(t==="all"?void 0:{cardinality:t}).pipe(Rt$1(this.destroyRef)).subscribe({next:o=>{this.workflows.set(o),this.loading.set(false);},error:o=>{this.loading.set(false),this.loadError.set(this.errorMessage(o,this.transloco.translate("workflows.list.loadFailed")));}});}errorMessage(t,o){return t instanceof qe||t instanceof Error?t.message:o}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=QE({type:e,selectors:[["app-workflow-list"]],decls:11,vars:7,consts:[["data-testid","workflows-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","create-workflow"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"field"],["data-testid","cardinality-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","delete-error",1,"error"],["data-testid","empty-state",1,"empty"],["data-testid","workflow-items",3,"nzData","nzFrontPagination","nzShowPagination"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","empty-create"],[1,"description-cell"],[1,"muted"],[1,"actions"],["nz-button","","nzType","link",3,"routerLink"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(o,m){o&1&&(_i(0,"main",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"a",2),vw(6),Rw(7,"transloco"),Kc()(),bD(8,ct,3,3,"p",3)(9,mt,2,1,"p",4)(10,yt,10,6),Kc()),o&2&&(gI(3),Ph(Ow(4,3,"workflows.list.title")),gI(3),nl(" ",Ow(7,5,"workflows.list.createButton")," "),gI(2),_D(m.loading()?8:m.loadError()?9:10));},dependencies:[Fn,n8,J6,k3,Mt,sd,zc,t7,_n,Cn,$b,V5,D5,dr,ca,rr,oa,sr,Vn,pa,W,I,ec],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;max-width:16rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.muted[_ngcontent-%COMP%]{color:#a8a29e;font-style:italic}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] td.description-cell{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-overflow:unset;max-width:28rem;vertical-align:top}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return e})();export{Rt as WorkflowListComponent};
1
+ import {_ as _n,C as Cn}from'./chunk-BqWiMcNp.js';import {U}from'./chunk-VW6e_Kls.js';import {W,I}from'./chunk-CECejZs9.js';import {d as dr,c as ca,r as rr,o as oa,s as sr,V as Vn,p as pa}from'./chunk-BaL0hYvK.js';import'./chunk-Ca9rxJZS.js';import'./chunk-DS5k0b_s.js';import {C,a as ar,b as at,q as qo,R as Rt$1,c as qe,Q as QE,F as Fn,n as n8,J as J6,k as k3,M as Mt,d as sd,z as zc,e as t7,$ as $b,V as V5,D as D5,f as ec,g as _i,v as vw,h as Rw,K as Kc,m as bD,p as gI,P as Ph,O as Ow,u as nl,A as _D,B as VD,L as LD,j as gh,N as ND,S as SD,o as oE,w as ch,x as sE,y as xD,l as lh,a5 as ah,a2 as Pw,a3 as xw,E as Pu,G as Lu}from'./main-5C7K2447.js';var dt=e=>({count:e}),st=e=>["/workflows",e,"edit"],pt=(e,p)=>p.id;function ct(e,p){e&1&&(_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc()),e&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function mt(e,p){if(e&1&&(_i(0,"p",4),vw(1),Kc()),e&2){let t=VD();gI(),Ph(t.loadError());}}function ft(e,p){if(e&1&&(lh(0,"nz-option",7),Rw(1,"transloco")),e&2){let t=p.$implicit,o=VD(2);ch("nzValue",t)("nzLabel",Ow(1,2,o.cardinalityFilterKey(t)));}}function wt(e,p){if(e&1&&(_i(0,"p",8),vw(1),Kc()),e&2){let t=VD(2);gI(),Ph(t.deleteError());}}function _t(e,p){e&1&&(_i(0,"section",9)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"a",11),vw(5),Rw(6,"transloco"),Kc()()),e&2&&(gI(2),Ph(Ow(3,2,"workflows.list.emptyState")),gI(3),nl(" ",Ow(6,4,"workflows.list.emptyCreateButton")," "));}function ut(e,p){if(e&1&&(_i(0,"span"),vw(1),Kc()),e&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(t.description);}}function xt(e,p){if(e&1&&(_i(0,"span",13),vw(1),Rw(2,"transloco"),Kc()),e&2){let t=VD().$implicit;ah("data-testid","description-"+t.id),gI(),Ph(Ow(2,2,"workflows.list.noDescription"));}}function Ct(e,p){if(e&1&&(_i(0,"nz-tag"),vw(1),Rw(2,"transloco"),Kc()),e&2){let t=p.$implicit,o=VD().$implicit,m=VD(3);ah("data-testid","applies-to-"+o.id),gI(),Ph(Ow(2,2,m.subjectTypeKey(t)));}}function gt(e,p){if(e&1){let t=LD();_i(0,"tr")(1,"td")(2,"span"),vw(3),Kc()(),_i(4,"td",12),bD(5,ut,2,2,"span")(6,xt,3,4,"span",13),Kc(),_i(7,"td"),ND(8,Ct,3,4,"nz-tag",null,SD),Kc(),_i(10,"td")(11,"nz-tag"),vw(12),Rw(13,"transloco"),Kc()(),_i(14,"td")(15,"span"),vw(16),Rw(17,"transloco"),Kc()(),_i(18,"td",14)(19,"a",15),vw(20),Rw(21,"transloco"),Kc(),_i(22,"button",16),Rw(23,"transloco"),Rw(24,"transloco"),Rw(25,"transloco"),gh("nzOnConfirm",function(){let m=Pu(t).$implicit,h=VD(3);return Lu(h.deleteWorkflow(m.id))}),vw(26),Rw(27,"transloco"),Kc()()();}if(e&2){let t=p.$implicit,o=VD(3);ah("data-testid","workflow-"+t.id),gI(2),ah("data-testid","name-"+t.id),gI(),Ph(t.name),gI(2),_D(t.description?.trim()?5:6),gI(3),xD(o.appliesToValues(t)),gI(3),ah("data-testid","cardinality-"+t.id),gI(),Ph(Ow(13,16,o.cardinalityKey(t.cardinality))),gI(3),ah("data-testid","step-count-"+t.id),gI(),Ph(Pw(17,18,"workflows.list.stepCount",xw(31,dt,t.steps.length))),gI(3),ch("routerLink",xw(33,st,t.id)),ah("data-testid","edit-"+t.id),gI(),nl(" ",Ow(21,21,"workflows.list.edit")," "),gI(2),ch("nzPopconfirmTitle",Ow(23,23,"workflows.list.deleteConfirm"))("nzOkText",Ow(24,25,"workflows.list.delete"))("nzCancelText",Ow(25,27,"common.cancel")),ah("data-testid","delete-"+t.id),gI(4),nl(" ",Ow(27,29,"workflows.list.delete")," ");}}function kt(e,p){if(e&1&&(_i(0,"nz-table",10)(1,"thead")(2,"tr")(3,"th"),vw(4),Rw(5,"transloco"),Kc(),_i(6,"th"),vw(7),Rw(8,"transloco"),Kc(),_i(9,"th"),vw(10),Rw(11,"transloco"),Kc(),_i(12,"th"),vw(13),Rw(14,"transloco"),Kc(),_i(15,"th"),vw(16),Rw(17,"transloco"),Kc(),_i(18,"th"),vw(19),Rw(20,"transloco"),Kc()()(),_i(21,"tbody"),ND(22,gt,28,35,"tr",null,pt),Kc()()),e&2){let t=VD(2);ch("nzData",t.workflows())("nzFrontPagination",false)("nzShowPagination",false),gI(4),Ph(Ow(5,9,"workflows.list.column.name")),gI(3),Ph(Ow(8,11,"workflows.list.column.description")),gI(3),Ph(Ow(11,13,"workflow-editor.appliesTo")),gI(3),Ph(Ow(14,15,"workflow-editor.cardinality.label")),gI(3),Ph(Ow(17,17,"workflows.list.column.steps")),gI(3),Ph(Ow(20,19,"workflows.list.column.actions")),gI(3),xD(t.workflows());}}function yt(e,p){if(e&1){let t=LD();_i(0,"div",5)(1,"span"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"nz-select",6),gh("ngModelChange",function(m){Pu(t);let h=VD();return Lu(h.setCardinalityFilter(m))}),ND(5,ft,2,4,"nz-option",7,SD),Kc(),oE(),Kc(),bD(7,wt,2,1,"p",8),bD(8,_t,7,6,"section",9)(9,kt,24,21,"nz-table",10);}if(e&2){let t=VD();gI(2),Ph(Ow(3,4,"workflows.list.filterByLaunchMode")),gI(2),ch("ngModel",t.cardinalityFilter()),sE(),gI(),xD(t.cardinalityOptions),gI(2),_D(t.deleteError()?7:-1),gI(),_D(t.workflows().length===0?8:9);}}var Rt=(()=>{class e{constructor(){this.workflowsApi=C(U),this.transloco=C(ar),this.destroyRef=C(at),this.workflows=qo([]),this.loading=qo(true),this.loadError=qo(null),this.deleteError=qo(null),this.cardinalityFilter=qo("all"),this.cardinalityOptions=["all","single","batch","aggregate"],this.load();}setCardinalityFilter(t){this.cardinalityFilter.set(t),this.load();}appliesToValues(t){let o=t.appliesTo;return o==="none"?["none"]:Array.isArray(o)?o:[o]}subjectTypeKey(t){return `workflow-editor.subjectType.${t}`}cardinalityKey(t){return `workflow-editor.cardinality.${t}`}cardinalityFilterKey(t){return t==="all"?"workflows.list.filterAll":`workflow-editor.cardinality.${t}`}deleteWorkflow(t){this.deleteError.set(null),this.workflowsApi.delete(t).pipe(Rt$1(this.destroyRef)).subscribe({next:()=>{this.workflows.update(o=>o.filter(m=>m.id!==t));},error:o=>{this.deleteError.set(this.errorMessage(o,this.transloco.translate("workflows.list.deleteFailed")));}});}load(){let t=this.cardinalityFilter();this.loading.set(true),this.loadError.set(null),this.workflowsApi.list(t==="all"?void 0:{cardinality:t}).pipe(Rt$1(this.destroyRef)).subscribe({next:o=>{this.workflows.set(o),this.loading.set(false);},error:o=>{this.loading.set(false),this.loadError.set(this.errorMessage(o,this.transloco.translate("workflows.list.loadFailed")));}});}errorMessage(t,o){return t instanceof qe||t instanceof Error?t.message:o}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=QE({type:e,selectors:[["app-workflow-list"]],decls:11,vars:7,consts:[["data-testid","workflows-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","create-workflow"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"field"],["data-testid","cardinality-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","delete-error",1,"error"],["data-testid","empty-state",1,"empty"],["data-testid","workflow-items",3,"nzData","nzFrontPagination","nzShowPagination"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","empty-create"],[1,"description-cell"],[1,"muted"],[1,"actions"],["nz-button","","nzType","link",3,"routerLink"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(o,m){o&1&&(_i(0,"main",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"a",2),vw(6),Rw(7,"transloco"),Kc()(),bD(8,ct,3,3,"p",3)(9,mt,2,1,"p",4)(10,yt,10,6),Kc()),o&2&&(gI(3),Ph(Ow(4,3,"workflows.list.title")),gI(3),nl(" ",Ow(7,5,"workflows.list.createButton")," "),gI(2),_D(m.loading()?8:m.loadError()?9:10));},dependencies:[Fn,n8,J6,k3,Mt,sd,zc,t7,_n,Cn,$b,V5,D5,dr,ca,rr,oa,sr,Vn,pa,W,I,ec],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;max-width:16rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.muted[_ngcontent-%COMP%]{color:#a8a29e;font-style:italic}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] td.description-cell{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-overflow:unset;max-width:28rem;vertical-align:top}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return e})();export{Rt as WorkflowListComponent};
@@ -0,0 +1 @@
1
+ import {$}from'./chunk-DS5k0b_s.js';import {s,r,bB as Sy,i as ie,ah as YE,ai as uu,C,an as _r,al as N1,b as at,ar as ga,cE as A,ap as a3,bG as ji,cM as bt,q as qo,H as Hw,a0 as $0,ak as Z0,aq as Le,av as Uw,at as m1,au as za,ad as Zn$1,ae as Se,c7 as mt,ax as D8,cN as gi,R as Rt$1,X as rd,c5 as Wl,aE as va,aB as f9,bd as XE,aJ as Sw,aL as B1,aN as rD,aO as R4,j as gh,a5 as ah,aP as cw,a4 as Mh,ao as Ee,cO as pn$1,cP as Ga,cQ as Vc,cR as K1,c1 as Vt$1,cI as l9,Q as QE,be as eh,g as _i,N as ND,S as SD,K as Kc,b3 as _h,p as gI,y as xD,aw as W0,bW as Er,a1 as B0,ay as u9,c6 as Gl,as as j3,cS as s9,aA as Kf,aC as pt,aD as Se$1,d as sd,z as zc,e as t7,Z as y7,aF as vr,aG as BD,m as bD,aH as nh,aI as Lw,A as _D,aM as wo,aS as Eh,aR as GD,cT as G5,cU as p3,cV as zl,cW as $5,af as S4,J as J6,cX as R0,cY as tr,b2 as ly,aj as Y0,a7 as MD,aK as h1,bw as Ih,bx as qD,by as WD,aT as U0,bf as re,bP as z0,bH as kt$1,a$ as Le$1,am as q0,bs as Tt,bt as Ie,bF as sw,w as ch,ce as Aw,aQ as Dh,L as LD,B as VD,aU as zD,aX as $D,E as Pu,G as Lu,o as oE,x as sE,l as lh,bX as el,bY as tl,bE as Bh,cZ as Tw,v as vw,P as Ph,a3 as xw,c_ as vv,c$ as Cw,u as nl}from'./main-5C7K2447.js';var At=new A("");var qt=["otpInput"];function Ut(t,o){if(t&1){let e=LD();_i(0,"input",2,0),gh("input",function(i){let r=Pu(e).$index,d=VD();return Lu(d.onInput(r,i))})("focus",function(i){Pu(e);let r=VD();return Lu(r.onFocus(i))})("keydown",function(i){let r=Pu(e).$index,d=VD();return Lu(d.onKeyDown(r,i))})("paste",function(i){let r=Pu(e).$index,d=VD();return Lu(d.onPaste(r,i))}),Kc(),oE();}if(t&2){let e=o.$implicit,n=VD();ch("nzSize",n.nzSize)("formControl",e)("nzStatus",n.nzStatus),sE();}}var Gt=[[["","nzInputAddonBefore",""]],[["","nzInputAddonAfter",""]],[["","nzInputSearchEnterButton",""]],[["","nzInputPrefix",""]],[["","nzInputSuffix",""]],[["","nzInputClearIcon",""]],[["","nz-input",""]]],Kt=["[nzInputAddonBefore]","[nzInputAddonAfter]","[nzInputSearchEnterButton]","[nzInputPrefix]","[nzInputSuffix]","[nzInputClearIcon]","[nz-input]"],Qt=t=>({$implicit:t});function Zt(t,o){}function Xt(t,o){if(t&1&&nh(0,Zt,0,0,"ng-template",4),t&2){VD();let e=zD(4);ch("ngTemplateOutlet",e);}}function Yt(t,o){}function Jt(t,o){if(t&1&&nh(0,Yt,0,0,"ng-template",4),t&2){VD();let e=zD(8);ch("ngTemplateOutlet",e);}}function en(t,o){}function tn(t,o){if(t&1&&nh(0,en,0,0,"ng-template",4),t&2){VD();let e=zD(10);ch("ngTemplateOutlet",e);}}function nn(t,o){if(t&1&&vw(0),t&2){let e=VD(3);Ph(e.nzAddonBefore());}}function rn(t,o){t&1&&(_i(0,"span",6),$D(1,0,null,nn,1,1),Kc());}function on(t,o){}function an(t,o){if(t&1&&nh(0,on,0,0,"ng-template",4),t&2){VD(2);let e=zD(6);ch("ngTemplateOutlet",e);}}function sn(t,o){}function un(t,o){if(t&1&&nh(0,sn,0,0,"ng-template",4),t&2){VD(2);let e=zD(10);ch("ngTemplateOutlet",e);}}function ln(t,o){if(t&1&&vw(0),t&2){VD(2);let e=Cw(0);nl(" ",e," ");}}function dn(t,o){t&1&&lh(0,"nz-icon",9);}function cn(t,o){if(t&1&&bD(0,ln,1,1)(1,dn,1,0,"nz-icon",9),t&2){VD();let e=Cw(0);_D(e&&typeof e=="string"?0:1);}}function pn(t,o){if(t&1){let e=LD();Bh(0),_i(1,"button",8),gh("click",function(i){Pu(e);let r=VD(3);return Lu(r.inputSearchDir.search(i))}),$D(2,2,null,cn,2,1),Kc();}if(t&2){let e=VD(3),n=Tw(e.inputSearchDir.nzEnterButton()),i=e.inputSearchEnterButton()??n!==false;gI(),ch("nzType",i?"primary":"default")("nzSize",e.size())("nzLoading",e.inputSearchDir.nzLoading());}}function fn(t,o){if(t&1&&vw(0),t&2){let e=VD(3);Ph(e.nzAddonAfter());}}function mn(t,o){if(t&1&&(_i(0,"span",6),bD(1,pn,4,4,"button",7),$D(2,1,null,fn,1,1),Kc()),t&2){let e=VD(2);gI(),_D(e.inputSearchDir?1:-1);}}function hn(t,o){if(t&1&&(_i(0,"span",5),bD(1,rn,3,0,"span",6),bD(2,an,1,1,null,4)(3,un,1,1,null,4),bD(4,mn,4,1,"span",6),Kc()),t&2){let e=VD();gI(),_D(e.hasAddonBefore()?1:-1),gI(),_D(e.hasAffix()?2:3),gI(2),_D(e.hasAddonAfter()?4:-1);}}function gn(t,o){}function _n(t,o){if(t&1&&(_i(0,"span"),nh(1,gn,0,0,"ng-template",4),Kc()),t&2){let e=VD(),n=zD(8);cw(e.affixWrapperClass()),gI(),ch("ngTemplateOutlet",n);}}function vn(t,o){if(t&1&&vw(0),t&2){let e=VD(3);Ph(e.nzPrefix());}}function Cn(t,o){t&1&&(_i(0,"span",10),$D(1,3,null,vn,1,1),Kc());}function zn(t,o){}function yn(t,o){t&1&&lh(0,"nz-icon",17);}function bn(t,o){if(t&1){let e=LD();_i(0,"span",16),gh("click",function(i){Pu(e);let r=VD(3);return r.clear(),Lu(r.inputSearchDir?.search(i,"clear"))}),$D(1,5,null,yn,1,0),Kc();}if(t&2){let e=VD(3);Mh("ant-input-clear-icon-has-suffix",e.nzSuffix()||e.suffix()||e.hasFeedback()||e.inputPasswordDir?.nzVisibilityToggle())("ant-input-clear-icon-hidden",!e.inputDir().value()||e.disabled()||e.readOnly());}}function Nn(t,o){if(t&1&&(_i(0,"span",13),vw(1),Kc()),t&2){let e=VD(3);gI(),Ph(e.dataCount());}}function Dn(t,o){}function Mn(t,o){if(t&1&&nh(0,Dn,0,0,"ng-template",19),t&2){let e=VD(4);ch("ngTemplateOutlet",o)("ngTemplateOutletContext",xw(2,Qt,e.inputPasswordDir.nzVisible()));}}function xn(t,o){if(t&1&&lh(0,"nz-icon",20),t&2){let e=VD(4);ch("nzType",e.inputPasswordDir.nzVisible()?"eye":"eye-invisible");}}function Sn(t,o){if(t&1){let e=LD();_i(0,"span",18),gh("click",function(){Pu(e);let i=VD(3);return Lu(i.inputPasswordDir.toggleVisible())}),bD(1,Mn,1,4,null,19)(2,xn,1,1,"nz-icon",20),Kc();}if(t&2){let e,n=VD(3);gI(),_D((e=n.inputPasswordIconTmpl())?1:2,e);}}function In(t,o){if(t&1&&vw(0),t&2){let e=VD(3);Ph(e.nzSuffix());}}function Tn(t,o){if(t&1&&lh(0,"nz-form-item-feedback-icon",15),t&2){let e=VD(3);ch("status",e.status());}}function En(t,o){if(t&1&&(_i(0,"span",11),bD(1,bn,3,4,"span",12),bD(2,Nn,2,1,"span",13),bD(3,Sn,3,1,"span",14),$D(4,4,null,In,1,1),bD(6,Tn,1,1,"nz-form-item-feedback-icon",15),Kc()),t&2){let e=VD(2);gI(),_D(e.nzAllowClear()?1:-1),gI(),_D(e.nzShowCount()?2:-1),gI(),_D(e.inputPasswordDir&&e.inputPasswordDir.nzVisibilityToggle()?3:-1),gI(3),_D(e.hasFeedback()&&e.status()?6:-1);}}function An(t,o){if(t&1&&(bD(0,Cn,3,0,"span",10),nh(1,zn,0,0,"ng-template",4),bD(2,En,7,4,"span",11)),t&2){let e=VD(),n=zD(10);_D(e.hasPrefix()?0:-1),gI(),ch("ngTemplateOutlet",n),gI(),_D(e.hasSuffix()?2:-1);}}function wn(t,o){t&1&&$D(0,6);}var wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputAddonBefore",""]]})}return t})(),Ft=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputAddonAfter",""]]})}return t})(),Vt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputPrefix",""]]})}return t})(),Rt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputSuffix",""]]})}return t})(),Ot=(()=>{class t{nzVisibilityToggle=$0(true);nzVisible=U0(false);toggleVisible(){this.nzVisible.update(e=>!e);}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["nz-input-password"]],hostAttrs:[1,"ant-input-password"],inputs:{nzVisibilityToggle:[1,"nzVisibilityToggle"],nzVisible:[1,"nzVisible"]},outputs:{nzVisible:"nzVisibleChange"},exportAs:["nzInputPassword"]})}return t})(),kt=(()=>{class t{static ngTemplateContextGuard(e,n){return true}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputPasswordIcon",""]]})}return t})(),Bt=new A(""),Lt=new A(""),Fn="ant-input",x=(()=>{class t{elementRef=C(_r);compactSize=C(N1,{optional:true});destroyRef=C(at);nzFormStatusService=C(ga,{optional:true});inputWrapper=C(Bt,{host:true,optional:true});focusMonitor=C(a3);hostView=C(ji);inputPasswordDir=C(Ot,{host:true,optional:true});inputSearchDir=C(Lt,{host:true,optional:true});formField=C(At,{self:true,optional:true});ngControl=C(bt,{self:true,optional:true});nativeValue=qo(this.elementRef.nativeElement.value);value=Hw(()=>this.formField?String(this.formField.state().value()??""):this.nativeValue());nzVariant=$0();nzSize=$0("default");nzStatus=$0("");disabled=$0(false,{transform:Z0});readonly=$0(false,{transform:Z0});controlDisabled=qo(false);finalDisabled=Hw(()=>this.formField?this.formField.state().disabled():this.ngControl?this.controlDisabled():this.disabled());dir=C(Le).valueSignal;size=Uw(this.nzSize);formSize=C(m1,{optional:true});formVariant=C(za,{optional:true});status=this.nzFormStatusService?Zn$1(this.nzFormStatusService.formStatusChanges.pipe(Se(e=>e.status)),{initialValue:""}):this.nzStatus;hasFeedback=Zn$1(this.nzFormStatusService?.formStatusChanges.pipe(Se(e=>e.hasFeedback))??mt,{initialValue:false});classes=Hw(()=>D8(Fn,this.status(),this.hasFeedback()));type=Hw(()=>this.inputPasswordDir?this.inputPasswordDir.nzVisible()?"text":"password":this.inputSearchDir?"search":this.elementRef.nativeElement.getAttribute("type")||"text");focused=qo(false);finalSize=Hw(()=>this.formSize?.()?this.formSize():this.compactSize?this.compactSize():this.size());finalVariant=Hw(()=>this.nzVariant()||this.formVariant?.()||"outlined");feedbackRef=null;disabled$=gi(this.finalDisabled);constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef);}),this.focusMonitor.monitor(this.elementRef,false).pipe(Rt$1()).subscribe(e=>this.focused.set(!!e)),rd(()=>{this.renderFeedbackIcon();});}ngOnInit(){this.ngControl?.statusChanges?.pipe(Wl(null),Rt$1(this.destroyRef)).subscribe(()=>{this.controlDisabled.set(!!this.ngControl.disabled);}),this.ngControl?.valueChanges?.pipe(Wl(this.ngControl?.control?.value),Rt$1(this.destroyRef)).subscribe(e=>{this.nativeValue.set(e??"");});}onInput(e){this.nativeValue.set(e.target.value);}renderFeedbackIcon(){if(!this.status()||!this.hasFeedback()||this.inputWrapper){this.hostView.clear(),this.feedbackRef=null;return}this.feedbackRef=this.feedbackRef||this.hostView.createComponent(va),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.setInput("status",this.status());}focus(e){f9(this.elementRef.nativeElement,e);}blur(){this.elementRef.nativeElement.blur();}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:23,hostBindings:function(n,i){n&1&&gh("input",function(d){return i.onInput(d)}),n&2&&(ah("type",i.type())("disabled",i.finalDisabled()||null)("readonly",i.readonly()||null),cw(i.classes()),Mh("ant-input-disabled",i.finalDisabled())("ant-input-outlined",i.finalVariant()==="outlined")("ant-input-borderless",i.finalVariant()==="borderless")("ant-input-filled",i.finalVariant()==="filled")("ant-input-underlined",i.finalVariant()==="underlined")("ant-input-lg",i.finalSize()==="large")("ant-input-sm",i.finalSize()==="small")("ant-input-rtl",i.dir()==="rtl")("ant-input-focused",i.focused()));},inputs:{nzVariant:[1,"nzVariant"],nzSize:[1,"nzSize"],nzStatus:[1,"nzStatus"],disabled:[1,"disabled"],readonly:[1,"readonly"]},exportAs:["nzInput"],features:[Sw([{provide:B1,useValue:"input"}]),rD([R4])]})}return t})(),Vn=(()=>{class t{formBuilder=C(G5);destroyRef=C(at);otpInputs;nzLength=6;nzSize="default";disabled=false;nzStatus="";nzFormatter=e=>e;nzMask=null;otpArray;internalValue=[];onChangeCallback;onTouched=()=>{};constructor(){this.createFormArray();}ngOnChanges(e){e.nzLength?.currentValue&&this.createFormArray(),e.disabled&&this.setDisabledState(this.disabled);}onInput(e,n){let i=n.target,r=this.otpInputs.toArray()[e+1];i.value&&r?r.nativeElement.focus():r||this.selectInputBox(e);}onFocus(e){e.target.select();}onKeyDown(e,n){let i=this.otpInputs.toArray()[e-1];n.keyCode===8?(n.preventDefault(),this.internalValue[e]="",this.otpArray.at(e).setValue("",{emitEvent:false}),i&&this.selectInputBox(e-1),this.emitValue()):n.keyCode===37?(n.preventDefault(),this.selectInputBox(e-1)):n.keyCode===39&&(n.preventDefault(),this.selectInputBox(e+1));}writeValue(e){if(!e){this.otpArray.reset();return}let n=e.split("");this.internalValue=n,n.forEach((i,r)=>{let d=this.nzFormatter(i),te=this.nzMask?this.nzMask:d;this.otpArray.at(r).setValue(te,{emitEvent:false});});}registerOnChange(e){this.onChangeCallback=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){e?this.otpArray.disable():this.otpArray.enable();}onPaste(e,n){let i=n.clipboardData?.getData("text")||"";if(!i)return;let r=e;for(let d of i.split(""))if(r<this.nzLength){let te=this.nzFormatter(d);this.internalValue[r]=d;let Wt=this.nzMask?this.nzMask:te;this.otpArray.at(r).setValue(Wt,{emitEvent:false}),r++;}else break;n.preventDefault(),this.selectInputBox(r),this.emitValue();}createFormArray(){this.otpArray=this.formBuilder.array([]),this.internalValue=new Array(this.nzLength).fill("");for(let e=0;e<this.nzLength;e++){let n=this.formBuilder.nonNullable.control("",[p3.required]);n.valueChanges.pipe(zl(i=>{let r=this.nzFormatter(i);this.internalValue[e]=r,n.setValue(this.nzMask??r,{emitEvent:false}),this.emitValue();}),Rt$1(this.destroyRef)).subscribe(),this.otpArray.push(n);}}emitValue(){let e=this.internalValue.join("");this.onChangeCallback&&this.onChangeCallback(e);}selectInputBox(e){let n=this.otpInputs.toArray();e<=0&&(e=0),e>=n.length&&(e=n.length-1),n[e].nativeElement.select();}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=QE({type:t,selectors:[["nz-input-otp"]],viewQuery:function(n,i){if(n&1&&Ih(qt,5),n&2){let r;qD(r=WD())&&(i.otpInputs=r);}},hostAttrs:[1,"ant-otp"],inputs:{nzLength:[2,"nzLength","nzLength",Y0],nzSize:"nzSize",disabled:[2,"disabled","disabled",Z0],nzStatus:"nzStatus",nzFormatter:"nzFormatter",nzMask:"nzMask"},exportAs:["nzInputOtp"],features:[Sw([{provide:h1,useExisting:wo(()=>t),multi:true}]),ly],decls:2,vars:0,consts:[["otpInput",""],["nz-input","","type","text","maxlength","1","size","1",1,"ant-otp-input",3,"nzSize","formControl","nzStatus"],["nz-input","","type","text","maxlength","1","size","1",1,"ant-otp-input",3,"input","focus","keydown","paste","nzSize","formControl","nzStatus"]],template:function(n,i){n&1&&ND(0,Ut,2,3,"input",1,MD),n&2&&xD(i.otpArray.controls);},dependencies:[x,$5,S4,J6,R0,tr],encapsulation:2})}return t})(),Rn=(()=>{class t{inputDir=W0.required(x);inputRef=W0.required(x,{read:_r});nzEnterButton=$0(false);nzLoading=$0(false,{transform:Z0});nzSearch=B0();size=Hw(()=>this.inputDir().nzSize());search(e,n="input"){this.nzLoading()||this.nzSearch.emit({value:this.inputRef().nativeElement.value,event:e,source:n});}onEnter(e){e.target===this.inputRef().nativeElement&&this.search(e);}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["nz-input-search"]],contentQueries:function(n,i,r){n&1&&Eh(r,i.inputDir,x,5)(r,i.inputRef,x,5,_r),n&2&&GD(2);},hostAttrs:[1,"ant-input-search"],hostVars:6,hostBindings:function(n,i){n&1&&gh("keydown.enter",function(d){return i.onEnter(d)}),n&2&&Mh("ant-input-search-large",i.size()==="large")("ant-input-search-small",i.size()==="small")("ant-input-search-with-button",i.nzEnterButton()!==false);},inputs:{nzEnterButton:[1,"nzEnterButton"],nzLoading:[1,"nzLoading"]},outputs:{nzSearch:"nzSearch"},exportAs:["nzInputSearch"],features:[Sw([{provide:Lt,useExisting:wo(()=>t)}])]})}return t})(),Pt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t,selectors:[["","nzInputSearchEnterButton",""]]})}return t})(),kn=(()=>{class t{focusMonitor=C(a3);inputPasswordDir=C(Ot,{self:true,optional:true});inputSearchDir=C(Rn,{self:true,optional:true});inputRef=W0.required(x,{read:_r});inputDir=W0.required(x);prefix=W0(Vt);suffix=W0(Rt);addonBefore=W0(wt);addonAfter=W0(Ft);inputPasswordIconTmpl=W0(kt,{read:Er});inputSearchEnterButton=W0(Pt);nzAllowClear=$0(false,{transform:Z0});nzPrefix=$0();nzSuffix=$0();nzAddonBefore=$0();nzAddonAfter=$0();nzShowCount=$0(false,{transform:Z0});nzCount=$0();nzClear=B0();size=Hw(()=>this.inputDir().nzSize());variant=Hw(()=>this.inputDir().nzVariant());disabled=Hw(()=>this.inputDir().finalDisabled());readOnly=Hw(()=>this.inputDir().readonly());status=Hw(()=>this.inputDir().status());hasFeedback=Hw(()=>this.inputDir().hasFeedback());hasPrefix=Hw(()=>!!this.nzPrefix()||!!this.prefix());hasSuffix=Hw(()=>!!this.nzSuffix()||!!this.suffix()||this.nzAllowClear()||this.hasFeedback()||this.nzShowCount()||this.inputPasswordDir);hasAffix=Hw(()=>this.hasPrefix()||this.hasSuffix());hasAddonBefore=Hw(()=>!!this.nzAddonBefore()||!!this.addonBefore());hasAddonAfter=Hw(()=>!!this.nzAddonAfter()||!!this.addonAfter()||!!this.inputSearchDir);hasAddon=Hw(()=>this.hasAddonBefore()||this.hasAddonAfter());compactSize=C(N1,{optional:true});dir=C(Le).valueSignal;focused=qo(false);isTextarea=Hw(()=>this.inputRef().nativeElement instanceof HTMLTextAreaElement);finalSize=Hw(()=>this.compactSize?this.compactSize():this.size());class=Hw(()=>this.hasAddon()?this.groupWrapperClass():this.hasAffix()?this.affixWrapperClass():null);affixWrapperClass=Hw(()=>r(r({"ant-input-affix-wrapper":true,"ant-input-affix-wrapper-lg":this.finalSize()==="large","ant-input-affix-wrapper-sm":this.finalSize()==="small","ant-input-affix-wrapper-disabled":this.disabled(),"ant-input-affix-wrapper-readonly":this.readOnly(),"ant-input-affix-wrapper-focused":this.focused(),"ant-input-affix-wrapper-rtl":this.dir()==="rtl"},D8("ant-input-affix-wrapper",this.status(),this.hasFeedback())),u9("ant-input-affix-wrapper",this.variant())));groupWrapperClass=Hw(()=>r(r({"ant-input-group-wrapper":true,"ant-input-group-wrapper-sm":this.finalSize()==="small","ant-input-group-wrapper-lg":this.finalSize()==="large","ant-input-group-wrapper-rtl":this.dir()==="rtl"},D8("ant-input-group-wrapper",this.status(),this.hasFeedback())),u9("ant-input-group-wrapper",this.variant())));inputValue=Zn$1(gi(this.inputDir).pipe(Gl(e=>{let n=e.ngControl;return n?(n.valueChanges??mt).pipe(Wl(n.value)):mt})));formattedValue=Hw(()=>{let e=this.nzCount(),n=this.inputValue(),i=e?.max??0,r=j3(n)?String(n):"",d=r;return e?.exceedFormatter&&(d=e.exceedFormatter(r,{max:i})),d});computedCount=Hw(()=>{let e=this.nzCount(),n=this.formattedValue(),i=n.length;return e?.strategy&&(i=e.strategy(n)),i});dataCount=Hw(()=>{let e=this.nzCount(),n=this.computedCount(),i=e?.max;return `${n}${i?`/${i}`:""}`});isOutOfRange=Hw(()=>{let n=this.nzCount()?.max;return s9(n)?this.computedCount()>n:false});constructor(){let e=C(at);Kf(()=>{let n=this.inputRef();this.focusMonitor.monitor(n).pipe(Rt$1(e)).subscribe(i=>{this.focused.set(!!i);}),e.onDestroy(()=>{this.focusMonitor.stopMonitoring(n);});}),rd(()=>{if(this.nzCount()){let n=this.inputValue(),i=this.formattedValue();j3(n)&&i!==n&&this.inputDir().ngControl?.control?.setValue(i);}});}clear(){this.inputDir().ngControl?.control?.setValue(""),this.nzClear.emit();}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=QE({type:t,selectors:[["nz-input-wrapper"],["nz-input-password"],["nz-input-search"]],contentQueries:function(n,i,r){n&1&&Eh(r,i.inputRef,x,5,_r)(r,i.inputDir,x,5)(r,i.prefix,Vt,5)(r,i.suffix,Rt,5)(r,i.addonBefore,wt,5)(r,i.addonAfter,Ft,5)(r,i.inputPasswordIconTmpl,kt,5,Er)(r,i.inputSearchEnterButton,Pt,5),n&2&&GD(8);},hostVars:8,hostBindings:function(n,i){n&2&&(cw(i.class()),Mh("ant-input-disabled",i.disabled())("ant-input-out-of-range",i.nzShowCount()&&i.isOutOfRange())("ant-input-affix-wrapper-textarea-with-clear-btn",i.nzAllowClear()&&i.isTextarea()));},inputs:{nzAllowClear:[1,"nzAllowClear"],nzPrefix:[1,"nzPrefix"],nzSuffix:[1,"nzSuffix"],nzAddonBefore:[1,"nzAddonBefore"],nzAddonAfter:[1,"nzAddonAfter"],nzShowCount:[1,"nzShowCount"],nzCount:[1,"nzCount"]},outputs:{nzClear:"nzClear"},exportAs:["nzInputWrapper"],features:[Sw([{provide:B1,useValue:"input"},{provide:Bt,useExisting:wo(()=>t)}]),rD([R4])],ngContentSelectors:Kt,decls:11,vars:1,consts:[["inputWithAddonInner",""],["inputWithAffix",""],["inputWithAffixInner",""],["input",""],[3,"ngTemplateOutlet"],[1,"ant-input-wrapper","ant-input-group"],[1,"ant-input-group-addon"],["nz-button","","type","button",1,"ant-input-search-button",3,"nzType","nzSize","nzLoading"],["nz-button","","type","button",1,"ant-input-search-button",3,"click","nzType","nzSize","nzLoading"],["nzType","search","nzTheme","outline"],[1,"ant-input-prefix"],[1,"ant-input-suffix"],["role","button","tabindex","-1",1,"ant-input-clear-icon",3,"ant-input-clear-icon-has-suffix","ant-input-clear-icon-hidden"],[1,"ant-input-show-count-suffix"],["role","button","tabindex","-1",1,"ant-input-password-icon"],[3,"status"],["role","button","tabindex","-1",1,"ant-input-clear-icon",3,"click"],["nzType","close-circle","nzTheme","fill"],["role","button","tabindex","-1",1,"ant-input-password-icon",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&(BD(Gt),bD(0,Xt,1,1,null,4)(1,Jt,1,1,null,4)(2,tn,1,1,null,4),nh(3,hn,5,3,"ng-template",null,0,Lw)(5,_n,2,3,"ng-template",null,1,Lw)(7,An,3,3,"ng-template",null,2,Lw)(9,wn,1,0,"ng-template",null,3,Lw)),n&2&&_D(i.hasAddon()?0:i.hasAffix()?1:2);},dependencies:[pt,Se$1,sd,zc,t7,y7,va,vr],encapsulation:2})}return t})();var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[kn,Vn]})}return t})();var Pn=["animationElement"],On=(t,o)=>({$implicit:t,data:o});function Bn(t,o){t&1&&lh(0,"nz-icon",4);}function Ln(t,o){t&1&&lh(0,"nz-icon",5);}function Wn(t,o){t&1&&lh(0,"nz-icon",6);}function jn(t,o){t&1&&lh(0,"nz-icon",7);}function $n(t,o){t&1&&lh(0,"nz-icon",8);}function Hn(t,o){if(t&1&&(el(0),lh(1,"span",10),tl()),t&2){let e=VD();gI(),ch("innerHTML",e.instance.content,vv);}}function qn(t,o){if(t&1){let e=LD();_i(0,"nz-message",2),gh("destroyed",function(i){Pu(e);let r=VD();return Lu(r.remove(i.id,i.userAction))}),Kc();}if(t&2){let e=o.$implicit;ch("instance",e);}}var Un=0,be=class{container;nzSingletonService=C($);injector=C(Ee);remove(o){this.container&&(o?this.container.remove(o):this.container.removeAll());}getInstanceId(){return `${this.componentPrefix}-${Un++}`}withContainer(o){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let n=pn$1(this.injector,{hasBackdrop:false,scrollStrategy:Vc(),positionStrategy:Ga(this.injector)}),i=new K1(o,null,this.injector),r=n.attach(i),d=n.hostElement;return d.style.zIndex="1010",e||(this.container=e=r.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),n.dispose();})),e}},Gn=(()=>{class t{config;instances=[];_afterAllInstancesRemoved=new re;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=C(z0);nzConfigService=C(kt$1);constructor(){this.subscribeConfigChange();}create(e){let n=this.onCreate(e);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,n],this.readyInstances(),n}remove(e,n=false){this.instances.map((i,r)=>({index:r,instance:i})).filter(({instance:i})=>i.messageId===e).forEach(({index:i,instance:r})=>{this.instances.splice(i,1),this.instances=[...this.instances],this.onRemove(r,n),this.readyInstances();}),this.instances.length||this.onAllInstancesRemoved();}removeAll(){this.instances.forEach(e=>this.onRemove(e,false)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved();}onCreate(e){return e.options=this.mergeOptions(e.options),e.onClose=new re,e}onRemove(e,n){e.onClose.next(n),e.onClose.complete();}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete();}readyInstances(){this.cdr.detectChanges();}mergeOptions(e){let{nzDuration:n,nzAnimate:i,nzPauseOnHover:r$1}=this.config;return r({nzDuration:n,nzAnimate:i,nzPauseOnHover:r$1},e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t})}return t})(),Kn=(()=>{class t{destroyRef=C(at);elementRef=C(_r);options;autoClose;userAction=false;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout();});}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&this._startEnterAnimation(),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout());}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL());}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout();}destroy(e=false){this.userAction=e,this.options.nzAnimate?this._startLeaveAnimation(()=>this.destroyed.next({id:this.instance.messageId,userAction:e})):this.destroyed.next({id:this.instance.messageId,userAction:e});}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now();}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart);}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy();}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0);}_startEnterAnimation(){let e=this.animationElement().nativeElement;e.classList.add(this._animationClassMap.enter);let n=i=>{this.matchAnimationKeyframe(i,this._animationKeyframeMap.enter)&&(e.removeEventListener("animationend",n),e.classList.remove(this._animationClassMap.enter));};e.addEventListener("animationend",n);}_startLeaveAnimation(e){let n=this.animationElement().nativeElement;n.classList.remove(this._animationClassMap.enter),n.classList.add(this._animationClassMap.leave);let i=r=>{this.matchAnimationKeyframe(r,this._animationKeyframeMap.leave)&&(n.removeEventListener("animationend",i),e());};n.addEventListener("animationend",i);}matchAnimationKeyframe(e,n){return typeof n=="string"?e.animationName===n:n.includes(e.animationName)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=XE({type:t})}return t})(),Qn=(()=>{class t extends Kn{instance;destroyed=new Le$1;index;animationElement=q0.required("animationElement",{read:_r});_animationKeyframeMap={enter:"MessageMoveIn",leave:"MessageMoveOut"};_animationClassMap={enter:"ant-message-move-up-enter",leave:"ant-message-move-up-leave"};static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(t)))(i||t)}})();static \u0275cmp=QE({type:t,selectors:[["nz-message"]],viewQuery:function(n,i){n&1&&Dh(i.animationElement,Pn,5,_r),n&2&&GD();},inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[eh],decls:10,vars:12,consts:[["animationElement",""],[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(n,i){if(n&1&&(_i(0,"div",1,0),gh("mouseenter",function(){return i.onEnter()})("mouseleave",function(){return i.onLeave()}),_i(2,"div",2)(3,"div",3),bD(4,Bn,1,0,"nz-icon",4)(5,Ln,1,0,"nz-icon",5)(6,Wn,1,0,"nz-icon",6)(7,jn,1,0,"nz-icon",7)(8,$n,1,0,"nz-icon",8),nh(9,Hn,2,1,"ng-container",9),Kc()()()),n&2){let r;sw(i.instance.options?.nzStyle),cw(i.instance.options?.nzClass),gI(3),cw("ant-message-"+i.instance.type),gI(),_D((r=i.instance.type)==="success"?4:r==="info"?5:r==="warning"?6:r==="error"?7:r==="loading"?8:-1),gI(5),ch("nzStringTemplateOutlet",i.instance.content)("nzStringTemplateOutletContext",Aw(9,On,i,i.instance.options?.nzData));}},dependencies:[pt,Se$1,Tt,Ie],encapsulation:2})}return t})(),ee="message",Zn={nzAnimate:true,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:true,nzTop:24,nzDirection:"ltr"},Xn=(()=>{class t extends Gn{dir=this.nzConfigService.getConfigForComponent(ee)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig();}subscribeConfigChange(){Vt$1(ee,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(ee)?.nzDirection||this.dir;});}updateConfig(){this.config=r(r(r({},Zn),this.config),this.nzConfigService.getConfigForComponent(ee)),this.top=l9(this.config.nzTop),this.cdr.markForCheck();}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=QE({type:t,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[eh],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(n,i){n&1&&(_i(0,"div",0),ND(1,qn,1,1,"nz-message",1,SD),Kc()),n&2&&(_h("top",i.top),Mh("ant-message-rtl",i.dir==="rtl"),gI(),xD(i.instances));},dependencies:[Qn],encapsulation:2})}return t})(),fr=(()=>{class t extends be{componentPrefix="message-";success(e,n){return this.createInstance({type:"success",content:e},n)}error(e,n){return this.createInstance({type:"error",content:e},n)}info(e,n){return this.createInstance({type:"info",content:e},n)}warning(e,n){return this.createInstance({type:"warning",content:e},n)}loading(e,n){return this.createInstance({type:"loading",content:e},n)}create(e,n,i){return this.createInstance({type:e,content:n},i)}createInstance(e,n){return this.container=this.withContainer(Xn),this.container.create(s(r({},e),{createdAt:new Date,messageId:this.getInstanceId(),options:n}))}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Sy(t)))(i||t)}})();static \u0275prov=ie({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{Ft as F,Ki as K,Rt as R,Vt as V,fr as f,wt as w,x};
@@ -0,0 +1 @@
1
+ import {_ as _n}from'./chunk-BqWiMcNp.js';import {h as he}from'./chunk-99HzEG7y.js';import {C,ba as u,U as U$1,I as ue,a as ar,b as at,q as qo,H as Hw,R as Rt,a9 as Ng,c as qe,Q as QE,F as Fn,M as Mt,d as sd,z as zc,e as t7,f as ec,g as _i,v as vw,h as Rw,K as Kc,m as bD,p as gI,P as Ph,O as Ow,u as nl,A as _D,B as VD,L as LD,j as gh,w as ch,E as Pu,G as Lu}from'./main-5C7K2447.js';import {U}from'./chunk-VW6e_Kls.js';import'./chunk-BaL0hYvK.js';import'./chunk-Ca9rxJZS.js';import'./chunk-DS5k0b_s.js';function q(i,b){i&1&&(_i(0,"p",3),vw(1),Rw(2,"transloco"),Kc()),i&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function G(i,b){if(i&1&&(_i(0,"p",4),vw(1),Kc()),i&2){let t=VD();gI(),Ph(t.loadError());}}function H(i,b){if(i&1&&(_i(0,"p",5),vw(1),Kc()),i&2){let t=VD(2);gI(),Ph(t.actionError());}}function K(i,b){i&1&&(_i(0,"section",6)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"a",8),vw(5),Rw(6,"transloco"),Kc()()),i&2&&(gI(2),Ph(Ow(3,2,"shortcuts.list.emptyState")),gI(3),nl(" ",Ow(6,4,"shortcuts.list.emptyCreateButton")," "));}function Q(i,b){if(i&1){let t=LD();_i(0,"app-runnable-items-table",9),gh("rowAction",function(e){Pu(t);let c=VD(2);return Lu(c.onRowAction(e))}),Kc();}if(i&2){let t=VD(2);ch("rows",t.rows())("selectable",false);}}function X(i,b){if(i&1&&(bD(0,H,2,1,"p",5),bD(1,K,7,6,"section",6)(2,Q,1,2,"app-runnable-items-table",7)),i&2){let t=VD();_D(t.actionError()?0:-1),gI(),_D(t.shortcuts().length===0?1:2);}}var ht=(()=>{class i{constructor(){this.shortcutsApi=C(u),this.workflowsApi=C(U),this.jobsApi=C(U$1),this.router=C(ue),this.transloco=C(ar),this.destroyRef=C(at),this.shortcuts=qo([]),this.workflows=qo([]),this.jobsById=qo({}),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.rows=Hw(()=>{let t=this.jobsById(),o=this.workflows();return this.shortcuts().map(e=>({id:e.id,primaryLabel:e.name,subtitle:o.find(c=>c.id===e.workflowId)?.name,latestJob:e.lastJobId?t[e.lastJobId]??null:null}))}),this.load();}onRowAction(t){let o=this.shortcuts().find(e=>e.id===t);o&&(this.actionError.set(null),this.jobsApi.start({workflowId:o.workflowId,inputValues:o.inputValues}).pipe(Rt(this.destroyRef)).subscribe({next:e=>{this.shortcutsApi.update(o.id,{lastJobId:e.id}).pipe(Rt(this.destroyRef)).subscribe({next:c=>{this.shortcuts.update(W=>W.map(C=>C.id===c.id?c:C)),this.router.navigate(["/jobs",e.id]);},error:()=>{this.router.navigate(["/jobs",e.id]);}});},error:e=>{this.actionError.set(this.errorMessage(e,this.transloco.translate("shortcuts.list.runFailed")));}}));}deleteShortcut(t){this.actionError.set(null),this.shortcutsApi.delete(t).pipe(Rt(this.destroyRef)).subscribe({next:()=>{this.shortcuts.update(o=>o.filter(e=>e.id!==t));},error:o=>{this.actionError.set(this.errorMessage(o,this.transloco.translate("shortcuts.list.deleteFailed")));}});}load(){this.loading.set(true),this.loadError.set(null),Ng({shortcuts:this.shortcutsApi.list(),workflows:this.workflowsApi.list()}).pipe(Rt(this.destroyRef)).subscribe({next:({shortcuts:t,workflows:o})=>{this.shortcuts.set(t),this.workflows.set(o),this.loading.set(false),this.loadLatestJobs(t);},error:t=>{this.loading.set(false),this.loadError.set(this.errorMessage(t,this.transloco.translate("shortcuts.list.loadFailed")));}});}loadLatestJobs(t){let o=t.map(e=>e.lastJobId).filter(e=>e!=null);if(o.length===0){this.jobsById.set({});return}Ng(Object.fromEntries(o.map(e=>[e,this.jobsApi.get(e)]))).pipe(Rt(this.destroyRef)).subscribe({next:e=>this.jobsById.set(e),error:()=>this.jobsById.set({})});}errorMessage(t,o){return t instanceof qe||t instanceof Error?t.message:o}static{this.\u0275fac=function(o){return new(o||i)};}static{this.\u0275cmp=QE({type:i,selectors:[["app-shortcut-list"]],decls:11,vars:7,consts:[["data-testid","shortcuts-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/shortcuts/new","data-testid","create-shortcut"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","action-error",1,"error"],["data-testid","empty-state",1,"empty"],[3,"rows","selectable"],["nz-button","","nzType","primary","routerLink","/shortcuts/new","data-testid","empty-create"],[3,"rowAction","rows","selectable"]],template:function(o,e){o&1&&(_i(0,"main",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"a",2),vw(6),Rw(7,"transloco"),Kc()(),bD(8,q,3,3,"p",3)(9,G,2,1,"p",4)(10,X,3,2),Kc()),o&2&&(gI(3),Ph(Ow(4,3,"shortcuts.list.title")),gI(3),nl(" ",Ow(7,5,"shortcuts.list.createButton")," "),gI(2),_D(e.loading()?8:e.loadError()?9:10));},dependencies:[Fn,Mt,sd,zc,t7,_n,he,ec],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return i})();export{ht as ShortcutListComponent};
@@ -1 +1 @@
1
- import {ah as YE,ai as uu,C,bw as XI,an as _r,aq as Le,b0 as Le$1,bp as N7,bR as B7,Q as QE,aC as pt,aD as Se,bF as ly,ak as Z0,aG as BD,aX as $D,m as bD,p as gI,A as _D,j as gh,bS as _h,a4 as Mh,bT as fr,bU as pr,L as LD,g as _i,K as Kc,E as Pu,B as VD,G as Lu}from'./main-BK4MAPTK.js';var V=["*"];function x(o,A){if(o&1){let n=LD();_i(0,"nz-icon",1),gh("click",function(e){Pu(n);let i=VD();return Lu(i.closeTag(e))}),Kc();}}var I=(()=>{class o{renderer=C(XI);el=C(_r).nativeElement;dir=C(Le).valueSignal;nzMode="default";nzColor;nzChecked=false;nzBordered=true;nzOnClose=new Le$1;nzCheckedChange=new Le$1;isPresetColor=false;updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked));}closeTag(n){this.nzOnClose.emit(n),n.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.el),this.el);}clearPresetColor(){let n=new RegExp(`(ant-tag-(?:${[...fr,...pr].join("|")}))`,"g"),t=this.el.classList.toString(),e=[],i=n.exec(t);for(;i!==null;)e.push(i[1]),i=n.exec(t);this.el.classList.remove(...e);}setPresetColor(){this.clearPresetColor(),this.nzColor?this.isPresetColor=N7(this.nzColor)||B7(this.nzColor):this.isPresetColor=false,this.isPresetColor&&this.el.classList.add(`ant-tag-${this.nzColor}`);}ngOnChanges(n){let{nzColor:t}=n;t&&this.setPresetColor();}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=QE({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(t,e){t&1&&gh("click",function(){return e.updateCheckedStatus()}),t&2&&(_h("background-color",e.isPresetColor?"":e.nzColor),Mh("ant-tag-has-color",e.nzColor&&!e.isPresetColor)("ant-tag-checkable",e.nzMode==="checkable")("ant-tag-checkable-checked",e.nzChecked)("ant-tag-rtl",e.dir()==="rtl")("ant-tag-borderless",!e.nzBordered));},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",Z0],nzBordered:[2,"nzBordered","nzBordered",Z0]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[ly],ngContentSelectors:V,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(t,e){t&1&&(BD(),$D(0),bD(1,x,1,0,"nz-icon",0)),t&2&&(gI(),_D(e.nzMode==="closeable"?1:-1));},dependencies:[pt,Se],encapsulation:2})}return o})(),W=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=YE({type:o});static \u0275inj=uu({imports:[I]})}return o})();export{I,W};
1
+ import {ah as YE,ai as uu,C,a_ as XI,an as _r,aq as Le,a$ as Le$1,b0 as N7,b1 as B7,Q as QE,aC as pt,aD as Se,b2 as ly,ak as Z0,aG as BD,aX as $D,m as bD,p as gI,A as _D,j as gh,b3 as _h,a4 as Mh,b4 as fr,b5 as pr,L as LD,g as _i,K as Kc,E as Pu,B as VD,G as Lu}from'./main-5C7K2447.js';var V=["*"];function x(o,A){if(o&1){let n=LD();_i(0,"nz-icon",1),gh("click",function(e){Pu(n);let i=VD();return Lu(i.closeTag(e))}),Kc();}}var I=(()=>{class o{renderer=C(XI);el=C(_r).nativeElement;dir=C(Le).valueSignal;nzMode="default";nzColor;nzChecked=false;nzBordered=true;nzOnClose=new Le$1;nzCheckedChange=new Le$1;isPresetColor=false;updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked));}closeTag(n){this.nzOnClose.emit(n),n.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.el),this.el);}clearPresetColor(){let n=new RegExp(`(ant-tag-(?:${[...fr,...pr].join("|")}))`,"g"),t=this.el.classList.toString(),e=[],i=n.exec(t);for(;i!==null;)e.push(i[1]),i=n.exec(t);this.el.classList.remove(...e);}setPresetColor(){this.clearPresetColor(),this.nzColor?this.isPresetColor=N7(this.nzColor)||B7(this.nzColor):this.isPresetColor=false,this.isPresetColor&&this.el.classList.add(`ant-tag-${this.nzColor}`);}ngOnChanges(n){let{nzColor:t}=n;t&&this.setPresetColor();}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=QE({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(t,e){t&1&&gh("click",function(){return e.updateCheckedStatus()}),t&2&&(_h("background-color",e.isPresetColor?"":e.nzColor),Mh("ant-tag-has-color",e.nzColor&&!e.isPresetColor)("ant-tag-checkable",e.nzMode==="checkable")("ant-tag-checkable-checked",e.nzChecked)("ant-tag-rtl",e.dir()==="rtl")("ant-tag-borderless",!e.nzBordered));},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",Z0],nzBordered:[2,"nzBordered","nzBordered",Z0]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[ly],ngContentSelectors:V,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(t,e){t&1&&(BD(),$D(0),bD(1,x,1,0,"nz-icon",0)),t&2&&(gI(),_D(e.nzMode==="closeable"?1:-1));},dependencies:[pt,Se],encapsulation:2})}return o})(),W=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=YE({type:o});static \u0275inj=uu({imports:[I]})}return o})();export{I,W};
@@ -1 +1 @@
1
- import {U as U$1}from'./chunk-DI-Ex2sC.js';import {v as vt}from'./chunk-DK8z5vU5.js';import'./chunk-Dw1tJgiv.js';import {w as wn,M as Mt$1}from'./chunk-BQYw1slv.js';import {F as Fe,o as oe}from'./chunk-KyBZUWGU.js';import'./chunk-C50zASMN.js';import {C,U,W,a as ar,b as at,q as qo,H as Hw,R as Rt,s,r,c as qe,Q as QE,F as Fn,n as n8,J as J6,k as k3,M as Mt,d as sd,z as zc,e as t7,$ as $b,V as V5,D as D5,f as ec,g as _i,v as vw,h as Rw,K as Kc,j as gh,N as ND,S as SD,o as oE,l as lh,m as bD,p as gI,P as Ph,O as Ow,u as nl,w as ch,x as sE,y as xD,A as _D,B as VD,L as LD,E as Pu,G as Lu}from'./main-BK4MAPTK.js';var se=(t,d)=>d.id;function re(t,d){if(t&1&&(lh(0,"nz-option",6),Rw(1,"transloco"),Rw(2,"transloco")),t&2){let e=d.$implicit,i=VD();ch("nzValue",e)("nzLabel",e==="all"?Ow(1,2,"jobs.list.filterAll"):Ow(2,4,i.statusKey(e)));}}function le(t,d){if(t&1&&lh(0,"nz-option",6),t&2){let e=d.$implicit;ch("nzValue",e.id)("nzLabel",e.name+" ("+e.id+")");}}function de(t,d){t&1&&(_i(0,"p",10),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function pe(t,d){if(t&1&&(_i(0,"p",11),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function me(t,d){t&1&&(_i(0,"section",12)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"a",13),vw(5),Rw(6,"transloco"),Kc()()),t&2&&(gI(2),Ph(Ow(3,2,"jobs.list.empty")),gI(3),nl(" ",Ow(6,4,"jobs.list.startButton")," "));}function ce(t,d){if(t&1){let e=LD();_i(0,"nz-pagination",16),gh("nzPageIndexChange",function(n){Pu(e);let C=VD(2);return Lu(C.setPage(n))}),Kc();}if(t&2){let e=VD(2);ch("nzPageIndex",e.pageIndex())("nzPageSize",e.pageSize)("nzTotal",e.total());}}function ge(t,d){if(t&1&&(lh(0,"app-job-status-table",14),bD(1,ce,1,3,"nz-pagination",15)),t&2){let e=VD();ch("jobs",e.jobs()),gI(),_D(e.total()>e.pageSize||e.pageIndex()>1?1:-1);}}var fe=20,ae=["pending","planning","waiting_for_human","waiting_for_children","implementing","testing","completed","failed","cancelled"],Be=(()=>{class t{constructor(){this.jobsApi=C(U),this.workflowsApi=C(U$1),this.route=C(W),this.transloco=C(ar),this.destroyRef=C(at),this.pageSize=fe,this.statusOptions=["all",...ae],this.jobs=qo([]),this.workflows=qo([]),this.loading=qo(true),this.loadError=qo(null),this.statusFilter=qo("all"),this.workflowIdFilter=qo(""),this.showChildJobs=qo(false),this.pageIndex=qo(1),this.total=Hw(()=>{let e=(this.pageIndex()-1)*this.pageSize,i=this.jobs().length;return i<this.pageSize?e+i:e+i+1}),this.loadWorkflows(),this.route.queryParamMap.pipe(Rt(this.destroyRef)).subscribe(e=>{let i=e.get("status");i&&ae.includes(i)?this.statusFilter.set(i):this.statusFilter.set("all"),this.pageIndex.set(1),this.loadJobs();});}statusKey(e){return `jobs.status.${e}`}setStatusFilter(e){this.statusFilter.set(e),this.pageIndex.set(1),this.loadJobs();}setWorkflowIdFilter(e){this.workflowIdFilter.set(e),this.pageIndex.set(1),this.loadJobs();}setShowChildJobs(e){this.showChildJobs.set(e),this.pageIndex.set(1),this.loadJobs();}setPage(e){this.pageIndex.set(e),this.loadJobs();}loadWorkflows(){this.workflowsApi.list().pipe(Rt(this.destroyRef)).subscribe({next:e=>{this.workflows.set(e);},error:()=>{this.workflows.set([]);}});}loadJobs(){let e=this.statusFilter(),i=this.workflowIdFilter();this.loading.set(true),this.loadError.set(null),this.jobsApi.list(s(r(r({topLevelOnly:!this.showChildJobs()},e==="all"?{}:{status:e}),i?{workflowId:i}:{}),{limit:this.pageSize,offset:(this.pageIndex()-1)*this.pageSize})).pipe(Rt(this.destroyRef)).subscribe({next:n=>{this.jobs.set(n),this.loading.set(false);},error:n=>{this.loading.set(false),this.loadError.set(this.errorMessage(n,this.transloco.translate("jobs.list.loadFailed")));}});}errorMessage(e,i){return e instanceof qe||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-job-list"]],decls:32,vars:22,consts:[["data-testid","jobs-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/jobs/new","data-testid","start-job"],[1,"filters"],[1,"field"],["data-testid","status-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","workflow-filter",3,"ngModelChange","ngModel"],["nzValue","",3,"nzLabel"],["nz-checkbox","","data-testid","show-child-jobs",1,"child-toggle",3,"ngModelChange","ngModel"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","empty-state",1,"empty"],["nz-button","","nzType","primary","routerLink","/jobs/new","data-testid","empty-start"],[3,"jobs"],["data-testid","jobs-pagination",3,"nzPageIndex","nzPageSize","nzTotal"],["data-testid","jobs-pagination",3,"nzPageIndexChange","nzPageIndex","nzPageSize","nzTotal"]],template:function(i,n){i&1&&(_i(0,"main",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"a",2),vw(6),Rw(7,"transloco"),Kc()(),_i(8,"div",3)(9,"div",4)(10,"span"),vw(11),Rw(12,"transloco"),Kc(),_i(13,"nz-select",5),gh("ngModelChange",function(u){return n.setStatusFilter(u)}),ND(14,re,3,6,"nz-option",6,SD),Kc(),oE(),Kc(),_i(16,"div",4)(17,"span"),vw(18),Rw(19,"transloco"),Kc(),_i(20,"nz-select",7),gh("ngModelChange",function(u){return n.setWorkflowIdFilter(u)}),lh(21,"nz-option",8),Rw(22,"transloco"),ND(23,le,1,2,"nz-option",6,se),Kc(),oE(),Kc(),_i(25,"label",9),gh("ngModelChange",function(u){return n.setShowChildJobs(u)}),vw(26),Rw(27,"transloco"),Kc(),oE(),Kc(),bD(28,de,3,3,"p",10)(29,pe,2,1,"p",11)(30,me,7,6,"section",12)(31,ge,2,2),Kc()),i&2&&(gI(3),Ph(Ow(4,10,"jobs.list.title")),gI(3),nl(" ",Ow(7,12,"jobs.list.startButton")," "),gI(5),Ph(Ow(12,14,"jobs.list.filterByStatus")),gI(2),ch("ngModel",n.statusFilter()),sE(),gI(),xD(n.statusOptions),gI(4),Ph(Ow(19,16,"jobs.list.filterByWorkflow")),gI(2),ch("ngModel",n.workflowIdFilter()),sE(),gI(),ch("nzLabel",Ow(22,18,"jobs.list.filterAll")),gI(2),xD(n.workflows()),gI(2),ch("ngModel",n.showChildJobs()),sE(),gI(),nl(" ",Ow(27,20,"jobs.list.showChildJobs")," "),gI(2),_D(n.loading()?28:n.loadError()?29:n.jobs().length===0?30:31));},dependencies:[Fn,n8,J6,k3,Mt,sd,zc,t7,Fe,oe,wn,Mt$1,$b,V5,D5,vt,ec],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem 1.25rem;align-items:flex-end}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;min-width:12rem;max-width:18rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.child-toggle[_ngcontent-%COMP%]{padding-bottom:.35rem}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{fe as JOB_LIST_PAGE_SIZE,Be as JobListComponent};
1
+ import {U as U$1}from'./chunk-VW6e_Kls.js';import {v as vt}from'./chunk-BnjE7sDc.js';import'./chunk-CECejZs9.js';import {w as wn,M as Mt$1}from'./chunk-BaL0hYvK.js';import {F as Fe,o as oe}from'./chunk-Ca9rxJZS.js';import'./chunk-DS5k0b_s.js';import {C,U,W,a as ar,b as at,q as qo,H as Hw,R as Rt,s,r,c as qe,Q as QE,F as Fn,n as n8,J as J6,k as k3,M as Mt,d as sd,z as zc,e as t7,$ as $b,V as V5,D as D5,f as ec,g as _i,v as vw,h as Rw,K as Kc,j as gh,N as ND,S as SD,o as oE,l as lh,m as bD,p as gI,P as Ph,O as Ow,u as nl,w as ch,x as sE,y as xD,A as _D,B as VD,L as LD,E as Pu,G as Lu}from'./main-5C7K2447.js';var se=(t,d)=>d.id;function re(t,d){if(t&1&&(lh(0,"nz-option",6),Rw(1,"transloco"),Rw(2,"transloco")),t&2){let e=d.$implicit,i=VD();ch("nzValue",e)("nzLabel",e==="all"?Ow(1,2,"jobs.list.filterAll"):Ow(2,4,i.statusKey(e)));}}function le(t,d){if(t&1&&lh(0,"nz-option",6),t&2){let e=d.$implicit;ch("nzValue",e.id)("nzLabel",e.name+" ("+e.id+")");}}function de(t,d){t&1&&(_i(0,"p",10),vw(1),Rw(2,"transloco"),Kc()),t&2&&(gI(),Ph(Ow(2,1,"common.loading")));}function pe(t,d){if(t&1&&(_i(0,"p",11),vw(1),Kc()),t&2){let e=VD();gI(),Ph(e.loadError());}}function me(t,d){t&1&&(_i(0,"section",12)(1,"p"),vw(2),Rw(3,"transloco"),Kc(),_i(4,"a",13),vw(5),Rw(6,"transloco"),Kc()()),t&2&&(gI(2),Ph(Ow(3,2,"jobs.list.empty")),gI(3),nl(" ",Ow(6,4,"jobs.list.startButton")," "));}function ce(t,d){if(t&1){let e=LD();_i(0,"nz-pagination",16),gh("nzPageIndexChange",function(n){Pu(e);let C=VD(2);return Lu(C.setPage(n))}),Kc();}if(t&2){let e=VD(2);ch("nzPageIndex",e.pageIndex())("nzPageSize",e.pageSize)("nzTotal",e.total());}}function ge(t,d){if(t&1&&(lh(0,"app-job-status-table",14),bD(1,ce,1,3,"nz-pagination",15)),t&2){let e=VD();ch("jobs",e.jobs()),gI(),_D(e.total()>e.pageSize||e.pageIndex()>1?1:-1);}}var fe=20,ae=["pending","planning","waiting_for_human","waiting_for_children","implementing","testing","completed","failed","cancelled"],Be=(()=>{class t{constructor(){this.jobsApi=C(U),this.workflowsApi=C(U$1),this.route=C(W),this.transloco=C(ar),this.destroyRef=C(at),this.pageSize=fe,this.statusOptions=["all",...ae],this.jobs=qo([]),this.workflows=qo([]),this.loading=qo(true),this.loadError=qo(null),this.statusFilter=qo("all"),this.workflowIdFilter=qo(""),this.showChildJobs=qo(false),this.pageIndex=qo(1),this.total=Hw(()=>{let e=(this.pageIndex()-1)*this.pageSize,i=this.jobs().length;return i<this.pageSize?e+i:e+i+1}),this.loadWorkflows(),this.route.queryParamMap.pipe(Rt(this.destroyRef)).subscribe(e=>{let i=e.get("status");i&&ae.includes(i)?this.statusFilter.set(i):this.statusFilter.set("all"),this.pageIndex.set(1),this.loadJobs();});}statusKey(e){return `jobs.status.${e}`}setStatusFilter(e){this.statusFilter.set(e),this.pageIndex.set(1),this.loadJobs();}setWorkflowIdFilter(e){this.workflowIdFilter.set(e),this.pageIndex.set(1),this.loadJobs();}setShowChildJobs(e){this.showChildJobs.set(e),this.pageIndex.set(1),this.loadJobs();}setPage(e){this.pageIndex.set(e),this.loadJobs();}loadWorkflows(){this.workflowsApi.list().pipe(Rt(this.destroyRef)).subscribe({next:e=>{this.workflows.set(e);},error:()=>{this.workflows.set([]);}});}loadJobs(){let e=this.statusFilter(),i=this.workflowIdFilter();this.loading.set(true),this.loadError.set(null),this.jobsApi.list(s(r(r({topLevelOnly:!this.showChildJobs()},e==="all"?{}:{status:e}),i?{workflowId:i}:{}),{limit:this.pageSize,offset:(this.pageIndex()-1)*this.pageSize})).pipe(Rt(this.destroyRef)).subscribe({next:n=>{this.jobs.set(n),this.loading.set(false);},error:n=>{this.loading.set(false),this.loadError.set(this.errorMessage(n,this.transloco.translate("jobs.list.loadFailed")));}});}errorMessage(e,i){return e instanceof qe||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=QE({type:t,selectors:[["app-job-list"]],decls:32,vars:22,consts:[["data-testid","jobs-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/jobs/new","data-testid","start-job"],[1,"filters"],[1,"field"],["data-testid","status-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","workflow-filter",3,"ngModelChange","ngModel"],["nzValue","",3,"nzLabel"],["nz-checkbox","","data-testid","show-child-jobs",1,"child-toggle",3,"ngModelChange","ngModel"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","empty-state",1,"empty"],["nz-button","","nzType","primary","routerLink","/jobs/new","data-testid","empty-start"],[3,"jobs"],["data-testid","jobs-pagination",3,"nzPageIndex","nzPageSize","nzTotal"],["data-testid","jobs-pagination",3,"nzPageIndexChange","nzPageIndex","nzPageSize","nzTotal"]],template:function(i,n){i&1&&(_i(0,"main",0)(1,"header",1)(2,"h1"),vw(3),Rw(4,"transloco"),Kc(),_i(5,"a",2),vw(6),Rw(7,"transloco"),Kc()(),_i(8,"div",3)(9,"div",4)(10,"span"),vw(11),Rw(12,"transloco"),Kc(),_i(13,"nz-select",5),gh("ngModelChange",function(u){return n.setStatusFilter(u)}),ND(14,re,3,6,"nz-option",6,SD),Kc(),oE(),Kc(),_i(16,"div",4)(17,"span"),vw(18),Rw(19,"transloco"),Kc(),_i(20,"nz-select",7),gh("ngModelChange",function(u){return n.setWorkflowIdFilter(u)}),lh(21,"nz-option",8),Rw(22,"transloco"),ND(23,le,1,2,"nz-option",6,se),Kc(),oE(),Kc(),_i(25,"label",9),gh("ngModelChange",function(u){return n.setShowChildJobs(u)}),vw(26),Rw(27,"transloco"),Kc(),oE(),Kc(),bD(28,de,3,3,"p",10)(29,pe,2,1,"p",11)(30,me,7,6,"section",12)(31,ge,2,2),Kc()),i&2&&(gI(3),Ph(Ow(4,10,"jobs.list.title")),gI(3),nl(" ",Ow(7,12,"jobs.list.startButton")," "),gI(5),Ph(Ow(12,14,"jobs.list.filterByStatus")),gI(2),ch("ngModel",n.statusFilter()),sE(),gI(),xD(n.statusOptions),gI(4),Ph(Ow(19,16,"jobs.list.filterByWorkflow")),gI(2),ch("ngModel",n.workflowIdFilter()),sE(),gI(),ch("nzLabel",Ow(22,18,"jobs.list.filterAll")),gI(2),xD(n.workflows()),gI(2),ch("ngModel",n.showChildJobs()),sE(),gI(),nl(" ",Ow(27,20,"jobs.list.showChildJobs")," "),gI(2),_D(n.loading()?28:n.loadError()?29:n.jobs().length===0?30:31));},dependencies:[Fn,n8,J6,k3,Mt,sd,zc,t7,Fe,oe,wn,Mt$1,$b,V5,D5,vt,ec],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem 1.25rem;align-items:flex-end}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;min-width:12rem;max-width:18rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.child-toggle[_ngcontent-%COMP%]{padding-bottom:.35rem}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return t})();export{fe as JOB_LIST_PAGE_SIZE,Be as JobListComponent};
@@ -1 +1 @@
1
- import {ah as YE,ai as uu,C,ch as oe$1,an as _r,bG as z0,ap as a3,aq as Le,b as at,cD as A,ar as ga,b0 as Le$1,X as rd,R as Rt,ci as St,Q as QE,n as n8,cE as w0,J as J6,k as k3,ak as Z0,aG as BD,g as _i,j as gh,K as Kc,o as oE,l as lh,aX as $D,a4 as Mh,p as gI,w as ch,a5 as ah,x as sE,aJ as Sw,aK as h1,aM as wo,bk as Ih,bl as qD,bm as WD,a0 as $0,q as qo,av as Uw,H as Hw,aA as Kf,Y as Bw,N as ND,B as VD,y as xD,v as vw,u as nl}from'./main-BK4MAPTK.js';var re=["inputElement"],te=["*"],ae=(t,s)=>s.value;function ce(t,s){if(t&1&&(_i(0,"label",0),vw(1),Kc()),t&2){let e=s.$implicit,i=VD(2);ch("nzValue",e.value)("nzName",i.nzName())("nzDisabled",e.disabled||i.finalDisabled()),gI(),nl(" ",e.label," ");}}function le(t,s){if(t&1&&ND(0,ce,2,4,"label",0,ae),t&2){let e=VD();xD(e.normalizedOptions());}}var ie=new A(""),oe=(()=>{class t{ngZone=C(oe$1);elementRef=C(_r);cdr=C(z0);focusMonitor=C(a3);dir=C(Le).valueSignal;destroyRef=C(at);checkboxGroupComponent=C(ie,{optional:true});nzFormStatusService=C(ga,{optional:true});isNzDisableFirstChange=true;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new Le$1;nzValue=null;nzAutoFocus=false;nzDisabled=false;nzIndeterminate=false;nzChecked=false;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e));}writeValue(e){this.nzChecked=e,this.cdr.markForCheck();}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=false,this.cdr.markForCheck();}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard");}blur(){this.inputElement.nativeElement.blur();}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef);}),this.checkboxGroupComponent&&rd(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck();});}ngOnInit(){this.focusMonitor.monitor(this.elementRef,true).pipe(Rt(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched());}),St(this.elementRef.nativeElement,"click").pipe(Rt(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck();});}),St(this.inputElement.nativeElement,"click").pipe(Rt(this.destroyRef)).subscribe(e=>e.stopPropagation());}ngAfterViewInit(){this.nzAutoFocus&&this.focus();}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-checkbox",""]],viewQuery:function(i,n){if(i&1&&Ih(re,7),i&2){let r;qD(r=WD())&&(n.inputElement=r.first);}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-item",!!n.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!n.nzFormStatusService)("ant-checkbox-wrapper-checked",n.nzChecked)("ant-checkbox-wrapper-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-rtl",n.dir()==="rtl");},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",Z0],nzChecked:[2,"nzChecked","nzChecked",Z0],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[Sw([{provide:h1,useExisting:wo(()=>t),multi:true}])],ngContentSelectors:te,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(i,n){i&1&&(BD(),_i(0,"span",1)(1,"input",2,0),gh("ngModelChange",function(se){return n.innerCheckedChange(se)}),Kc(),oE(),lh(3,"span",3),Kc(),_i(4,"span"),$D(5),Kc()),i&2&&(Mh("ant-checkbox-checked",n.nzChecked&&!n.nzIndeterminate)("ant-checkbox-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-indeterminate",n.nzIndeterminate),gI(),ch("checked",n.nzChecked)("ngModel",n.nzChecked)("disabled",n.nzDisabled||(n.checkboxGroupComponent?.finalDisabled()??false)),ah("autofocus",n.nzAutoFocus?"autofocus":null)("id",n.nzId)("name",n.nzName||n.checkboxGroupComponent?.nzName()),sE());},dependencies:[n8,w0,J6,k3],encapsulation:2})}return t})(),ue=(()=>{class t{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;dir=C(Le).valueSignal;nzName=$0(null);nzDisabled=$0(false,{transform:Z0});nzOptions=$0([]);value=qo(null);finalDisabled=Uw(()=>this.nzDisabled());normalizedOptions=Hw(()=>de(this.nzOptions()));constructor(){let e=C(_r),i=C(a3),n=C(at);Kf(()=>{i.monitor(e,true).pipe(Rt(n)).subscribe(r=>{r||this.onTouched();}),n.onDestroy(()=>{i.stopMonitoring(e);});});}writeValue(e){Bw(()=>{this.value.set(e);});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){Bw(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e);}),this.isDisabledFirstChange=false;}onCheckedChange(e,i){this.finalDisabled()||(this.value.update(n=>i?n?.concat(e)||[e]:n?.filter(r=>r!==e)||[]),this.onChange(this.value()));}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-rtl",n.dir()==="rtl");},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[Sw([{provide:h1,useExisting:wo(()=>t),multi:true},{provide:ie,useExisting:wo(()=>t)}])],ngContentSelectors:te,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(i,n){i&1&&(BD(),$D(0,0,null,le,2,0));},dependencies:[oe],encapsulation:2})}return t})();function de(t){return t.map(s=>typeof s=="string"||typeof s=="number"?{label:`${s}`,value:s}:s)}var Fe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[oe,ue]})}return t})();export{Fe as F,oe as o};
1
+ import {ah as YE,ai as uu,C,cf as oe$1,an as _r,bP as z0,ap as a3,aq as Le,b as at,cE as A,ar as ga,a$ as Le$1,X as rd,R as Rt,cg as St,Q as QE,n as n8,cF as w0,J as J6,k as k3,ak as Z0,aG as BD,g as _i,j as gh,K as Kc,o as oE,l as lh,aX as $D,a4 as Mh,p as gI,w as ch,a5 as ah,x as sE,aJ as Sw,aK as h1,aM as wo,bw as Ih,bx as qD,by as WD,a0 as $0,q as qo,av as Uw,H as Hw,aA as Kf,Y as Bw,N as ND,B as VD,y as xD,v as vw,u as nl}from'./main-5C7K2447.js';var re=["inputElement"],te=["*"],ae=(t,s)=>s.value;function ce(t,s){if(t&1&&(_i(0,"label",0),vw(1),Kc()),t&2){let e=s.$implicit,i=VD(2);ch("nzValue",e.value)("nzName",i.nzName())("nzDisabled",e.disabled||i.finalDisabled()),gI(),nl(" ",e.label," ");}}function le(t,s){if(t&1&&ND(0,ce,2,4,"label",0,ae),t&2){let e=VD();xD(e.normalizedOptions());}}var ie=new A(""),oe=(()=>{class t{ngZone=C(oe$1);elementRef=C(_r);cdr=C(z0);focusMonitor=C(a3);dir=C(Le).valueSignal;destroyRef=C(at);checkboxGroupComponent=C(ie,{optional:true});nzFormStatusService=C(ga,{optional:true});isNzDisableFirstChange=true;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new Le$1;nzValue=null;nzAutoFocus=false;nzDisabled=false;nzIndeterminate=false;nzChecked=false;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e));}writeValue(e){this.nzChecked=e,this.cdr.markForCheck();}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=false,this.cdr.markForCheck();}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard");}blur(){this.inputElement.nativeElement.blur();}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef);}),this.checkboxGroupComponent&&rd(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck();});}ngOnInit(){this.focusMonitor.monitor(this.elementRef,true).pipe(Rt(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched());}),St(this.elementRef.nativeElement,"click").pipe(Rt(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck();});}),St(this.inputElement.nativeElement,"click").pipe(Rt(this.destroyRef)).subscribe(e=>e.stopPropagation());}ngAfterViewInit(){this.nzAutoFocus&&this.focus();}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e);}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["","nz-checkbox",""]],viewQuery:function(i,n){if(i&1&&Ih(re,7),i&2){let r;qD(r=WD())&&(n.inputElement=r.first);}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-item",!!n.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!n.nzFormStatusService)("ant-checkbox-wrapper-checked",n.nzChecked)("ant-checkbox-wrapper-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-rtl",n.dir()==="rtl");},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",Z0],nzDisabled:[2,"nzDisabled","nzDisabled",Z0],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",Z0],nzChecked:[2,"nzChecked","nzChecked",Z0],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[Sw([{provide:h1,useExisting:wo(()=>t),multi:true}])],ngContentSelectors:te,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(i,n){i&1&&(BD(),_i(0,"span",1)(1,"input",2,0),gh("ngModelChange",function(se){return n.innerCheckedChange(se)}),Kc(),oE(),lh(3,"span",3),Kc(),_i(4,"span"),$D(5),Kc()),i&2&&(Mh("ant-checkbox-checked",n.nzChecked&&!n.nzIndeterminate)("ant-checkbox-disabled",n.nzDisabled||n.checkboxGroupComponent?.finalDisabled())("ant-checkbox-indeterminate",n.nzIndeterminate),gI(),ch("checked",n.nzChecked)("ngModel",n.nzChecked)("disabled",n.nzDisabled||(n.checkboxGroupComponent?.finalDisabled()??false)),ah("autofocus",n.nzAutoFocus?"autofocus":null)("id",n.nzId)("name",n.nzName||n.checkboxGroupComponent?.nzName()),sE());},dependencies:[n8,w0,J6,k3],encapsulation:2})}return t})(),ue=(()=>{class t{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;dir=C(Le).valueSignal;nzName=$0(null);nzDisabled=$0(false,{transform:Z0});nzOptions=$0([]);value=qo(null);finalDisabled=Uw(()=>this.nzDisabled());normalizedOptions=Hw(()=>de(this.nzOptions()));constructor(){let e=C(_r),i=C(a3),n=C(at);Kf(()=>{i.monitor(e,true).pipe(Rt(n)).subscribe(r=>{r||this.onTouched();}),n.onDestroy(()=>{i.stopMonitoring(e);});});}writeValue(e){Bw(()=>{this.value.set(e);});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){Bw(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e);}),this.isDisabledFirstChange=false;}onCheckedChange(e,i){this.finalDisabled()||(this.value.update(n=>i?n?.concat(e)||[e]:n?.filter(r=>r!==e)||[]),this.onChange(this.value()));}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=QE({type:t,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(i,n){i&2&&Mh("ant-checkbox-group-rtl",n.dir()==="rtl");},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[Sw([{provide:h1,useExisting:wo(()=>t),multi:true},{provide:ie,useExisting:wo(()=>t)}])],ngContentSelectors:te,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(i,n){i&1&&(BD(),$D(0,0,null,le,2,0));},dependencies:[oe],encapsulation:2})}return t})();function de(t){return t.map(s=>typeof s=="string"||typeof s=="number"?{label:`${s}`,value:s}:s)}var Fe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=YE({type:t});static \u0275inj=uu({imports:[oe,ue]})}return t})();export{Fe as F,oe as o};