@whoz-oss/coday-client 0.0.0-workstream-forge.84 → 0.0.0-workstream-forge.85
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-Rdy9k34O.js → chunk-0uuGJUFj.js} +1 -1
- package/browser/{chunk-DZHGnFjE.js → chunk-6erFss_x.js} +1 -1
- package/browser/chunk-8RXCnz6r.js +1 -0
- package/browser/chunk-B4TTtVTM.js +10 -0
- package/browser/{chunk-CFlLRNUS.js → chunk-B4rhq7bi.js} +1 -1
- package/browser/chunk-BCgigK6M.js +1 -0
- package/browser/{chunk-B_OwdG5-.js → chunk-BKXr22P2.js} +1 -1
- package/browser/{chunk-hDHO1K8u.js → chunk-BUdJX9hY.js} +1 -1
- package/browser/{chunk-l2JMNOcc.js → chunk-BXySi22i.js} +1 -1
- package/browser/{chunk-DEfCjILN.js → chunk-BYDOmTQe.js} +1 -1
- package/browser/{chunk-BcR4wKPc.js → chunk-BZ-HbHiK.js} +1 -1
- package/browser/{chunk-Cc2DuHOX.js → chunk-B_lCG1w5.js} +1 -1
- package/browser/{chunk-Cb_1956G.js → chunk-Bbg_XtL3.js} +1 -1
- package/browser/{chunk-DGsM-JdO.js → chunk-BbgxegPT.js} +1 -1
- package/browser/{chunk-SZPeRnmS.js → chunk-BhT8LBNg.js} +1 -1
- package/browser/{chunk-B7hnPpIt.js → chunk-BjfXiBY5.js} +1 -1
- package/browser/{chunk-BGnyrLd-.js → chunk-BsKyZz1S.js} +1 -1
- package/browser/{chunk-Czq8CvrA.js → chunk-BsPV1PdF.js} +1 -1
- package/browser/{chunk-Csqd4j1t.js → chunk-C-Hr86np.js} +1 -1
- package/browser/{chunk-BQ9Crt0c.js → chunk-C0Zdso7r.js} +1 -1
- package/browser/{chunk-PdBnSF1R.js → chunk-CBIKdwfA.js} +1 -1
- package/browser/{chunk-B5Tz4UVx.js → chunk-CBZ1dj9K.js} +1 -1
- package/browser/{chunk-tpzWilaJ.js → chunk-CGWw5lBT.js} +1 -1
- package/browser/{chunk-B9szgPYk.js → chunk-CH4pl_-4.js} +1 -1
- package/browser/{chunk-DE3paDFx.js → chunk-CLTA0yP4.js} +1 -1
- package/browser/{chunk-CdT4lVhw.js → chunk-CLrKP-zf.js} +1 -1
- package/browser/{chunk-DRyN58kZ.js → chunk-CQzPiBAl.js} +1 -1
- package/browser/{chunk-Bb-KV2lM.js → chunk-CV8NcEte.js} +1 -1
- package/browser/{chunk-DefqMZl0.js → chunk-Ce5Rvt6i.js} +1 -1
- package/browser/{chunk-DQoiZLep.js → chunk-Cf3SbmDw.js} +1 -1
- package/browser/{chunk-PKWFkcRs.js → chunk-CfnQW0vA.js} +1 -1
- package/browser/{chunk-BhzRxI-8.js → chunk-Crk2ISp0.js} +1 -1
- package/browser/{chunk-Uff8whp7.js → chunk-Csfh2LFH.js} +1 -1
- package/browser/{chunk-DoIScbtS.js → chunk-Ctx595g6.js} +1 -1
- package/browser/{chunk-BiQymVZf.js → chunk-CxS-yA8k.js} +1 -1
- package/browser/{chunk-Z7xyAVi8.js → chunk-CxcK5VhO.js} +1 -1
- package/browser/{chunk-Cd8IxrHK.js → chunk-D-8acZ_5.js} +1 -1
- package/browser/chunk-D-97XyJO.js +1 -0
- package/browser/{chunk-4SlKq2CX.js → chunk-D7231OLC.js} +1 -1
- package/browser/{chunk-DlnNaOX-.js → chunk-D7KQtMAo.js} +1 -1
- package/browser/{chunk-B02L2Ai_.js → chunk-D8r5u_yM.js} +1 -1
- package/browser/{chunk-5vx6OZTu.js → chunk-DCELc1L9.js} +1 -1
- package/browser/{chunk-CxRmMBvD.js → chunk-DCSvIjdr.js} +1 -1
- package/browser/{chunk-COt_gdc0.js → chunk-DD1yExa7.js} +1 -1
- package/browser/{chunk-DH99aGE8.js → chunk-DJ3Vvjz1.js} +1 -1
- package/browser/{chunk-XQ2cT2Y6.js → chunk-DKMH3aiq.js} +1 -1
- package/browser/{chunk-CNxIZatr.js → chunk-DOEaoDAU.js} +1 -1
- package/browser/{chunk-DO8AI3WK.js → chunk-DOvy24Mz.js} +1 -1
- package/browser/{chunk-BfdPPBaD.js → chunk-DRCrokPV.js} +1 -1
- package/browser/{chunk-BHXkrBNd.js → chunk-DRJyk_K2.js} +1 -1
- package/browser/{chunk-D6iarznd.js → chunk-DYDIpbat.js} +1 -1
- package/browser/chunk-DeooMs7E.js +1 -0
- package/browser/{chunk-DbDvT3YL.js → chunk-DlGeZ2Fv.js} +1 -1
- package/browser/{chunk-3V67yrJv.js → chunk-DqtsMOGa.js} +1 -1
- package/browser/{chunk-CWbqhQHh.js → chunk-DuOS42Vx.js} +1 -1
- package/browser/{chunk-BP_frYQX.js → chunk-Dwke_s-Q.js} +1 -1
- package/browser/chunk-Dzh3BtRr.js +2 -0
- package/browser/{chunk-BPwwVRWf.js → chunk-Jk7g0fPe.js} +1 -1
- package/browser/{chunk-C-vU4kdu.js → chunk-KN3VmbRk.js} +1 -1
- package/browser/{chunk-D7O0Df2r.js → chunk-XbDie-5R.js} +1 -1
- package/browser/chunk-cA4bIkG2.js +1 -0
- package/browser/{chunk-BzLaN_r8.js → chunk-gE_FLWxH.js} +1 -1
- package/browser/{chunk-BWEthITx.js → chunk-htTShCZB.js} +1 -1
- package/browser/{chunk-BfSYxYRv.js → chunk-nbSpeG1c.js} +1 -1
- package/browser/{chunk-C7ZjTWdy.js → chunk-njPktt_6.js} +1 -1
- package/browser/{chunk-HthGt849.js → chunk-o4CghyWD.js} +1 -1
- package/browser/{chunk-BwDp8nAy.js → chunk-oTStGRTV.js} +1 -1
- package/browser/{chunk-Bgy3V4vj.js → chunk-ou-LSZw8.js} +1 -1
- package/browser/{chunk-iRhCSFLQ.js → chunk-qLHWo9Sh.js} +1 -1
- package/browser/{chunk-Cy_LcKox.js → chunk-qP8cZKcf.js} +1 -1
- package/browser/{chunk-BLmfn_X7.js → chunk-uUqcsMN3.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-OFQWNC3P.js → main-ZCPOJMDG.js} +13 -13
- package/package.json +1 -1
- package/browser/chunk-By68jJD2.js +0 -1
- package/browser/chunk-CF7acDOg.js +0 -1
- package/browser/chunk-CedcDUti.js +0 -10
- package/browser/chunk-ClpHGwdE.js +0 -2
- package/browser/chunk-CsAopW0-.js +0 -1
- package/browser/chunk-NIfc6_hy.js +0 -1
- package/browser/chunk-qXaqzkk-.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {bS as Ea,a7 as ya,Q as br,cE as Dd}from'./main-OFQWNC3P.js';function i(t,o,p){return t.pipe(Ea(()=>o().pipe(ya(()=>br(p)))),Dd({bufferSize:1,refCount:true}))}export{i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c}from'./chunk-BwDp8nAy.js';import {g,F,C as Ce,G as Gi,m as mT,b as U,e as xw,k as ws,q as Rg,o as pl,af as Eg,t as CC,u as bg,cb as ZB,cc as qB,dc as Ie,de as Ee,n as GC,J as Jw,X as XE,a8 as Yg,z as Ug,a5 as vl,v as eC,ac as gC,a9 as lC,aa as If,ab as wf,ag as fT}from'./main-OFQWNC3P.js';import {$ as $n,S as Se,c as ni}from'./chunk-DefqMZl0.js';import'./chunk-BLmfn_X7.js';import'./chunk-DE3paDFx.js';function W(o,t){if(o&1&&(ws(0,"span",5),GC(1),pl()),o&2){let e=gC();XE(),Yg(e.definition().description);}}function j(o,t){if(o&1&&(ws(0,"span",7),GC(1),pl()),o&2){let e=gC();XE(),vl("Next: ",e.nextRunLabel);}}function Y(o,t){if(o&1&&(ws(0,"span",8),GC(1),pl()),o&2){let e=gC();XE(),vl("Last run: ",e.lastRunLabel);}}function G(o,t){if(o&1){let e=lC();ws(0,"span",12),GC(1,"Delete?"),pl(),ws(2,"ds-icon-button",13),Rg("action",function(){If(e);let i=gC(2);return wf(i.onDeleteConfirmed())}),pl(),ws(3,"ds-icon-button",14),Rg("action",function(){If(e);let i=gC(2);return wf(i.onDeleteCancelled())}),pl();}}function H(o,t){if(o&1){let e=lC();ws(0,"ds-kebab-menu",15),Rg("itemSelected",function(i){If(e);let s=gC(2);return wf(s.onMenuAction(i))}),pl();}if(o&2){let e=gC(2);bg("items",e.menuItems);}}function Z(o,t){if(o&1&&(ws(0,"div",10),Jw(1,G,4,0)(2,H,1,1,"ds-kebab-menu",11),pl()),o&2){let e=gC();Ug("scheduled-prompt-item__actions--confirming",e.pendingDelete()),XE(),eC(e.pendingDelete()?1:2);}}var D=class o{router=g(F);definition=ZB.required();namespaceId=ZB(void 0);platformMode=ZB(false);readOnly=ZB(false);enableRequested=qB();disableRequested=qB();deleteRequested=qB();pendingDelete=Gi(false);get scheduleLabel(){let{recurrence:t}=this.definition(),e=t.unit,n=t.timeUtc,i=e===Ie.WEEK?"week":"month",s=e===Ie.WEEK&&t.days?.length?` (${t.days.map(P=>Ee[P]??P).join(", ")})`:"";return `Every ${i}${s} at ${n} UTC`}formatInstant(t){if(!t)return null;let e=new Date(t),n=e.getUTCDate(),i=e.toLocaleString("en-GB",{month:"short",timeZone:"UTC"}),s=e.getUTCFullYear(),P=String(e.getUTCHours()).padStart(2,"0"),A=String(e.getUTCMinutes()).padStart(2,"0");return `${n} ${i} ${s} at ${P}:${A} UTC`}get nextRunLabel(){return this.formatInstant(this.definition().nextRunAt)}get lastRunLabel(){return this.formatInstant(this.definition().lastRunAt)}get menuItems(){let t=this.definition();return [{key:"edit",label:"Edit scheduled prompt",icon:"edit"},{key:"toggle",label:t.enabled?"Disable":"Enable",icon:t.enabled?"toggle_on":"toggle_off"},{key:"delete",label:"Delete scheduled prompt",icon:"delete",variant:"danger"}]}onMenuAction(t){let e=this.definition();switch(t){case "edit":this.platformMode()?this.router.navigate(["/agentos","admin","scheduled-prompts",e.id,"edit"]):this.router.navigate(["/agentos",this.namespaceId(),"scheduled-prompts",e.id,"edit"]);break;case "toggle":e.enabled?this.disableRequested.emit(e):this.enableRequested.emit(e);break;case "delete":this.pendingDelete.set(true);break}}onDeleteConfirmed(){this.pendingDelete.set(false),this.deleteRequested.emit(this.definition());}onDeleteCancelled(){this.pendingDelete.set(false);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=xw({type:o,selectors:[["agentos-scheduled-prompt-item"]],inputs:{definition:[1,"definition"],namespaceId:[1,"namespaceId"],platformMode:[1,"platformMode"],readOnly:[1,"readOnly"]},outputs:{enableRequested:"enableRequested",disableRequested:"disableRequested",deleteRequested:"deleteRequested"},decls:13,vars:11,consts:[["role","listitem",1,"scheduled-prompt-item"],[1,"scheduled-prompt-item__body"],[1,"scheduled-prompt-item__header"],[1,"scheduled-prompt-item__name"],[1,"scheduled-prompt-item__status"],[1,"scheduled-prompt-item__description"],[1,"scheduled-prompt-item__schedule"],[1,"scheduled-prompt-item__next-run"],[1,"scheduled-prompt-item__last-run"],[1,"scheduled-prompt-item__actions",3,"scheduled-prompt-item__actions--confirming"],[1,"scheduled-prompt-item__actions"],[3,"items"],[1,"scheduled-prompt-item__confirm-label"],["icon","check","variant","danger","title","Confirm deletion",3,"action"],["icon","close","title","Cancel deletion",3,"action"],[3,"itemSelected","items"]],template:function(e,n){e&1&&(ws(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),GC(4),pl(),ws(5,"span",4),GC(6),pl()(),Jw(7,W,2,1,"span",5),ws(8,"span",6),GC(9),pl(),Jw(10,j,2,1,"span",7),Jw(11,Y,2,1,"span",8),pl(),Jw(12,Z,3,3,"div",9),pl()),e&2&&(XE(4),Yg(n.definition().name),XE(),Ug("scheduled-prompt-item__status--enabled",n.definition().enabled)("scheduled-prompt-item__status--disabled",!n.definition().enabled),XE(),vl(" ",n.definition().enabled?"Enabled":"Disabled"," "),XE(),eC(n.definition().description?7:-1),XE(2),Yg(n.scheduleLabel),XE(),eC(n.nextRunLabel?10:-1),XE(),eC(n.lastRunLabel?11:-1),XE(),eC(n.readOnly()?-1:12));},dependencies:[ni,Se],styles:[".scheduled-prompt-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:10px;border:1px solid var(--color-border, rgba(0, 0, 0, .08));background:var(--glass-bg, rgba(255, 255, 255, .72));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));backdrop-filter:var(--glass-backdrop-blur, blur(20px));transition:background .15s ease,border-color .15s ease}.scheduled-prompt-item[_ngcontent-%COMP%]:hover{background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-color:var(--color-primary, #007aff)}.scheduled-prompt-item__body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.2rem;min-width:0}.scheduled-prompt-item__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;min-width:0}.scheduled-prompt-item__name[_ngcontent-%COMP%]{font-size:.95rem;font-weight:500;color:var(--color-text, #1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.scheduled-prompt-item__status[_ngcontent-%COMP%]{font-size:.7rem;font-weight:600;padding:.15rem .5rem;border-radius:999px;white-space:nowrap;flex-shrink:0;text-transform:uppercase;letter-spacing:.04em}.scheduled-prompt-item__status--enabled[_ngcontent-%COMP%]{background:var(--color-success-bg, rgba(52, 199, 89, .12));color:var(--color-success, #34c759)}.scheduled-prompt-item__status--disabled[_ngcontent-%COMP%]{background:var(--color-warning-bg, rgba(255, 159, 10, .12));color:var(--color-warning, #ff9f0a)}.scheduled-prompt-item__description[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text-secondary, #6e6e73);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scheduled-prompt-item__schedule[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text-secondary, #6e6e73);font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scheduled-prompt-item__next-run[_ngcontent-%COMP%]{font-size:.8rem;color:var(--color-text, #1d1d1f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scheduled-prompt-item__last-run[_ngcontent-%COMP%]{font-size:.75rem;color:var(--color-text-secondary, #6e6e73);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scheduled-prompt-item__actions[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:.125rem;opacity:0;transition:opacity .15s ease}.scheduled-prompt-item[_ngcontent-%COMP%]:hover .scheduled-prompt-item__actions[_ngcontent-%COMP%], .scheduled-prompt-item[_ngcontent-%COMP%]:focus-within .scheduled-prompt-item__actions[_ngcontent-%COMP%]{opacity:1}.scheduled-prompt-item__actions--confirming[_ngcontent-%COMP%]{opacity:1}.scheduled-prompt-item__confirm-label[_ngcontent-%COMP%]{font-size:.8rem;font-weight:500;color:var(--color-error, #ff3b30);margin-right:.25rem;white-space:nowrap}"]})};function J(o,t){if(o&1){let e=lC();ws(0,"agentos-scheduled-prompt-item",4),Rg("enableRequested",function(i){If(e);let s=gC(2);return wf(s.enablePrompt(i))})("disableRequested",function(i){If(e);let s=gC(2);return wf(s.disablePrompt(i))})("deleteRequested",function(i){If(e);let s=gC(2);return wf(s.deletePrompt(i))}),pl();}o&2&&bg("definition",t)("platformMode",true);}function Q(o,t){if(o&1&&Jw(0,J,1,2,"agentos-scheduled-prompt-item",3),o&2){let e,n=t.$implicit,i=gC();eC((e=i.resolvePrompt(n.id))?0:-1,e);}}var z=class o{router=g(F);destroyRef=g(Ce);state=g(c);prompts=Gi([]);isLoading=Gi(true);promptItems=mT(()=>this.prompts().map(t=>({id:t.id??"",name:t.name,description:t.description,badges:[{label:t.enabled?"Enabled":"Disabled",variant:t.enabled?"success":"warning"}]})));constructor(){this.state.listPlatform().pipe(U(this.destroyRef)).subscribe({next:t=>{this.prompts.set(t),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","scheduled-prompts","new"]);}enablePrompt(t){this.state.enable(t.id??"").pipe(U(this.destroyRef)).subscribe(e=>this.patchPrompt(e));}disablePrompt(t){this.state.disable(t.id??"").pipe(U(this.destroyRef)).subscribe(e=>this.patchPrompt(e));}deletePrompt(t){let e=t.id??"";this.state.delete(e).pipe(U(this.destroyRef)).subscribe(()=>this.prompts.update(n=>n.filter(i=>i.id!==e)));}resolvePrompt(t){return this.prompts().find(e=>e.id===t)??null}patchPrompt(t){this.prompts.update(e=>e.map(n=>n.id===t.id?t:n));}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=xw({type:o,selectors:[["agentos-platform-scheduled-prompts"]],decls:4,vars:4,consts:[["scheduledPromptItemTpl",""],["title","Platform Scheduled Prompts","emptyMessage","No platform scheduled prompts defined yet. Add one above.","cardMinWidth","420px",3,"createRequested","items","loading","showCreate","itemTemplate"],["toolbar-start","","icon","arrow_back","title","Back",3,"action"],[3,"definition","platformMode"],[3,"enableRequested","disableRequested","deleteRequested","definition","platformMode"]],template:function(e,n){if(e&1&&(ws(0,"ds-entity-list",1),Rg("createRequested",function(){return n.openCreateForm()}),ws(1,"ds-icon-button",2),Rg("action",function(){return n.goBack()}),pl()(),Eg(2,Q,1,1,"ng-template",null,0,fT)),e&2){let i=CC(3);bg("items",n.promptItems())("loading",n.isLoading())("showCreate",true)("itemTemplate",i);}},dependencies:[$n,D,Se],encapsulation:2})};export{z as PlatformScheduledPromptsComponent};
|