@whoz-oss/coday-client 0.0.0-workstream-forge.273 → 0.0.0-workstream-forge.277

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 (52) hide show
  1. package/browser/{chunk-VCV19Z6L.js → chunk-56OxYvTW.js} +1 -1
  2. package/browser/{chunk-BQof2LNq.js → chunk-BED4qwEN.js} +1 -1
  3. package/browser/{chunk-BmsFJQ_v.js → chunk-BLThxRwW.js} +1 -1
  4. package/browser/{chunk-q02QECba.js → chunk-BNJKMQ40.js} +1 -1
  5. package/browser/{chunk-DgEngWkY.js → chunk-BRG2mZxM.js} +1 -1
  6. package/browser/{chunk-9n3XkPN1.js → chunk-BUteAT98.js} +1 -1
  7. package/browser/{chunk-DKbc-fih.js → chunk-BVxZcExv.js} +1 -1
  8. package/browser/{chunk-Cix3-0K2.js → chunk-B_i7Gb4p.js} +1 -1
  9. package/browser/{chunk-CaSk42fD.js → chunk-BlVXMV5_.js} +1 -1
  10. package/browser/{chunk-CyYuvnGm.js → chunk-ByQeZNnk.js} +1 -1
  11. package/browser/{chunk-BkPDwEh1.js → chunk-C4IVnZbu.js} +1 -1
  12. package/browser/{chunk-CBWtz2mG.js → chunk-CB0PeoYM.js} +1 -1
  13. package/browser/{chunk-CfhLsKNC.js → chunk-CImBOm7_.js} +1 -1
  14. package/browser/{chunk-hha5EuTF.js → chunk-COGFVAu7.js} +1 -1
  15. package/browser/{chunk-DDZiCKt-.js → chunk-CQza1bwI.js} +1 -1
  16. package/browser/{chunk-0ZtY80DW.js → chunk-CR5KknLd.js} +1 -1
  17. package/browser/{chunk-Dnc62mls.js → chunk-CZ4W1lh-.js} +1 -1
  18. package/browser/{chunk-dCxf5p0L.js → chunk-CZ4YI741.js} +1 -1
  19. package/browser/{chunk-CZFKR68R.js → chunk-CeDVuO_Z.js} +1 -1
  20. package/browser/chunk-ClakYmhV.js +1 -0
  21. package/browser/{chunk-PGJjZGrF.js → chunk-CtCeahwW.js} +1 -1
  22. package/browser/{chunk-CBVMv4ai.js → chunk-CwqgCML1.js} +1 -1
  23. package/browser/{chunk-CAqIYs7P.js → chunk-DAL6CPFu.js} +1 -1
  24. package/browser/{chunk-C1EaR3-9.js → chunk-DDsv6wXk.js} +1 -1
  25. package/browser/{chunk-CeqhBlc6.js → chunk-DHk5Re07.js} +1 -1
  26. package/browser/{chunk-CDUMxrcp.js → chunk-DLxGcM5-.js} +1 -1
  27. package/browser/chunk-DOSprkJV.js +1 -0
  28. package/browser/{chunk-Dadlh5JC.js → chunk-DOx8GaaP.js} +1 -1
  29. package/browser/{chunk-C_vj5e-Y.js → chunk-DTnDeD2s.js} +1 -1
  30. package/browser/{chunk-BSRpGLZu.js → chunk-D_xqMlq6.js} +1 -1
  31. package/browser/{chunk-hmzIFgbE.js → chunk-DkF8DhYk.js} +1 -1
  32. package/browser/{chunk-CuwUFZ9P.js → chunk-DklN7iCc.js} +1 -1
  33. package/browser/{chunk-BbjUb8n0.js → chunk-Ds5GmwHL.js} +1 -1
  34. package/browser/{chunk-14mxT3bD.js → chunk-Dv92ICfv.js} +1 -1
  35. package/browser/{chunk-BnhHFWL5.js → chunk-ISCbSjnU.js} +1 -1
  36. package/browser/chunk-Ke2U7XMU.js +670 -0
  37. package/browser/{chunk-D68ToWiu.js → chunk-LYjM3kyc.js} +1 -1
  38. package/browser/{chunk-BgL5ewFe.js → chunk-N8U2a1qx.js} +1 -1
  39. package/browser/{chunk-BTUoHs1a.js → chunk-bhbaK714.js} +1 -1
  40. package/browser/{chunk-CjVNMPMk.js → chunk-hgAOKq8J.js} +1 -1
  41. package/browser/{chunk-BB9Gq9LM.js → chunk-k40UYrbW.js} +1 -1
  42. package/browser/{chunk-Bt4hGQrm.js → chunk-lpJxVOWy.js} +1 -1
  43. package/browser/{chunk-B0xq8HoB.js → chunk-mDzCbzth.js} +1 -1
  44. package/browser/{chunk-Daidn0iH.js → chunk-w-M5MTSs.js} +1 -1
  45. package/browser/{chunk-NON463g4.js → chunk-w6EbeVVz.js} +1 -1
  46. package/browser/{chunk-sKMEQoDc.js → chunk-wyDpS97m.js} +1 -1
  47. package/browser/index.html +1 -1
  48. package/browser/{main-G2NDWI4S.js → main-5FVEDMYL.js} +1 -1
  49. package/package.json +1 -1
  50. package/browser/chunk-BZjbpPBa.js +0 -671
  51. package/browser/chunk-C9MRS4KJ.js +0 -1
  52. package/browser/chunk-Cl72Xnim.js +0 -1
@@ -1 +0,0 @@
1
- import {O as O$1}from'./chunk-Dnc62mls.js';import {I}from'./chunk-hmzIFgbE.js';import {O}from'./chunk-CAqIYs7P.js';import {g,K as we$1,$ as $i,o as oT,a9 as F,at as Cy,ad as ne,U,D as Dw,E as Es,f as fg,a as Bw,c as hl,d as VE,i as Vw,b as AC,Q as Qw,R as vg,v as tC,P as dg,S as NI,q as $w,F as Fg,T as AI,z as zw,u as Dl,ae as Lw,w as pf,x as hf,N as x,L as w}from'./main-G2NDWI4S.js';import {y,J as k,L as B,X as a,p as pt,T as Te$1,$ as v,a0 as V,K as Kt,a as fd,M as Mo,D as Do,U as Ut,Q as Qt,c as fo,g as go,R as Rn,E as Ea,v as vn,d as yn,e as fn,a1 as gn,h as hn,i as at,u as un,m as mn,a2 as ji,F as Ni,a3 as m,a4 as S}from'./chunk-BZjbpPBa.js';import'./chunk-Cl72Xnim.js';var ye=(o,e)=>e.value,Ce=(o,e)=>e.title;function be(o,e){o&1&&(Es(0,"p",2),AC(1,"Loading\u2026"),hl());}function xe(o,e){if(o&1&&(Es(0,"option",27),AC(1),hl()),o&2){let t=e.$implicit;dg("value",t.value),VE(),Fg(t.label);}}function Se(o,e){if(o&1){let t=Qw();Es(0,"form",15),vg("ngSubmit",function(){pf(t);let s=tC(2);return hf(s.save())}),Es(1,"ds-group",16)(2,"dl",17)(3,"dt"),AC(4,"Email"),hl(),Es(5,"dd"),AC(6),hl(),Es(7,"dt"),AC(8,"External ID"),hl(),Es(9,"dd"),AC(10),hl()()(),Es(11,"ds-group",18)(12,"ds-form-field",19),fg(13,"input",20),NI(),hl(),Es(14,"ds-form-field",21),fg(15,"input",22),NI(),hl(),Es(16,"ds-form-field",23),fg(17,"textarea",24),NI(),hl(),Es(18,"ds-form-field",25)(19,"select",26),$w(20,xe,2,2,"option",27,ye),hl(),NI(),hl()(),Es(22,"ds-form-actions")(23,"button",28),AC(24),hl(),Es(25,"button",29),vg("click",function(){pf(t);let s=tC(2);return hf(s.cancelEditing())}),AC(26,"Cancel"),hl()()();}if(o&2){let t=tC(),l=tC();dg("formGroup",l.form),VE(6),Fg(t.email),VE(4),Fg(t.externalId),VE(3),AI(),VE(2),AI(),VE(2),AI(),VE(2),AI(),VE(),zw(l.languageOptions),VE(3),dg("disabled",l.isSaving()),VE(),Dl(" ",l.isSaving()?"Saving\u2026":"Save changes"," ");}}function Ee(o,e){o&1&&(Es(0,"p",2),AC(1," No global configuration yet. Create one from the Integrations / AI Providers / Auth Settings pages of your namespaces. "),hl());}function Pe(o,e){if(o&1){let t=Qw();Es(0,"span",38),AC(1,"Delete?"),hl(),Es(2,"button",39),vg("click",function(){pf(t);let s=tC().$implicit,m=tC(5);return hf(m.confirmDelete(s))}),AC(3,"Confirm"),hl(),Es(4,"button",40),vg("click",function(){pf(t);let s=tC(6);return hf(s.cancelDelete())}),AC(5,"Cancel"),hl();}}function Te(o,e){if(o&1){let t=Qw();Es(0,"button",40),vg("click",function(){pf(t);let s=tC().$implicit,m=tC(5);return hf(m.armDelete(s))}),AC(1,"Delete"),hl();}}function De(o,e){if(o&1&&(Es(0,"li",34)(1,"span",35),AC(2),hl(),Es(3,"span",36),AC(4),hl(),Bw(5,Pe,6,0)(6,Te,2,0,"button",37),hl()),o&2){let t=e.$implicit,l=tC(5);VE(2),Fg(t.name),VE(2),Fg(t.subtitle),VE(),Vw(l.isPendingDelete(t)?5:6);}}function we(o,e){if(o&1&&(Es(0,"span",32),AC(1),hl(),Es(2,"ul",33),$w(3,De,7,3,"li",34,Lw().trackEntry,true),hl()),o&2){let t=e.$implicit;VE(),Fg(t.title),VE(2),zw(t.entries);}}function Ve(o,e){if(o&1&&$w(0,we,5,1,null,null,Ce),o&2){let t=tC(3);zw(t.recapSections());}}function Ue(o,e){if(o&1){let t=Qw();Es(0,"ds-group",16)(1,"dl",17)(2,"dt"),AC(3,"Email"),hl(),Es(4,"dd"),AC(5),hl(),Es(6,"dt"),AC(7,"External ID"),hl(),Es(8,"dd"),AC(9),hl()()(),Es(10,"ds-group",18)(11,"dl",17)(12,"dt"),AC(13,"First name"),hl(),Es(14,"dd"),AC(15),hl(),Es(16,"dt"),AC(17,"Last name"),hl(),Es(18,"dd"),AC(19),hl(),Es(20,"dt"),AC(21,"Bio"),hl(),Es(22,"dd"),AC(23),hl(),Es(24,"dt"),AC(25,"Language"),hl(),Es(26,"dd"),AC(27),hl()()(),Es(28,"ds-form-actions")(29,"button",30),vg("click",function(){pf(t);let s=tC(2);return hf(s.startEditing())}),AC(30,"Edit profile"),hl()(),Es(31,"ds-disclosure",31),vg("toggled",function(){pf(t);let s=tC(2);return hf(s.toggleOverrides())}),Bw(32,Ee,2,0,"p",2)(33,Ve,2,0),hl();}if(o&2){let t=tC(),l=tC();VE(5),Fg(t.email),VE(4),Fg(t.externalId),VE(6),Fg(t.firstname||"\u2014"),VE(4),Fg(t.lastname||"\u2014"),VE(4),Fg(t.bio||"\u2014"),VE(4),Fg(t.preferredLanguage||"\u2014"),VE(4),dg("heading","My global user configurations ("+l.recap().total+")")("open",l.isOverridesExpanded()),VE(),Vw(l.recap().total===0?32:33);}}function Me(o,e){if(o&1){let t=Qw();Es(0,"ds-group",3)(1,"ds-form-field",4)(2,"ds-segmented",5),vg("valueChange",function(s){pf(t);let m=tC();return hf(m.setThemeVariant(s))}),hl()(),Es(3,"ds-form-field",6)(4,"ds-segmented",7),vg("valueChange",function(s){pf(t);let m=tC();return hf(m.setTheme(s))}),hl()()(),Es(5,"ds-group",8)(6,"ds-form-field",9)(7,"ds-segmented",10),vg("valueChange",function(s){pf(t);let m=tC();return hf(m.setEnterKeyBehavior(s))}),hl()()(),Es(8,"ds-group",11)(9,"ds-form-field",12)(10,"ds-segmented",13),vg("valueChange",function(s){pf(t);let m=tC();return hf(m.setShowTechnical(s))}),hl()()(),Bw(11,Se,27,5,"form",14)(12,Ue,34,9);}if(o&2){let t=tC();VE(),dg("hint",t.activeVariantDescription()),VE(),dg("options",t.themeVariantOptions)("value",t.themeVariant()),VE(),dg("hint",t.modeOverridden()?t.activeVariantLabel()+" does not support this mode; your choice is kept for other skins.":null),VE(),dg("options",t.modeOptions())("value",t.shownMode()),VE(3),dg("options",t.enterKeyOptions)("value",t.enterKeyBehavior()),VE(3),dg("options",t.showTechnicalOptions)("value",t.showTechnical()),VE(),Vw(t.isEditing()?11:12);}}function Ie(o,e){o&1&&(Es(0,"p",2),AC(1,"Unable to load profile."),hl());}var ve=class o{userState=g(y);destroyRef=g(we$1);integrationState=g(O);providerState=g(O$1);authSettingState=g(I);themePort=g(k);preferencesPort=g(B);isEditing=$i(false);isLoading=$i(false);isSaving=$i(false);isOverridesExpanded=$i(false);currentUser=this.userState.currentUser;theme=this.themePort.theme;themeMode=oT(()=>this.themePort.theme().mode);themeOptions=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];themeVariant=oT(()=>this.themePort.theme().variant);themeVariantOptions=a.map(({id:e,label:t,description:l})=>({value:e,label:t,description:l}));modeOverridden=oT(()=>!V(this.themeVariant(),this.themeMode()));activeVariantLabel=oT(()=>m(this.themeVariant()).label);activeVariantDescription=oT(()=>m(this.themeVariant()).description);modeOptions=oT(()=>this.themeOptions.map(e=>x(w({},e),{disabled:this.isModeDisabled(e.value)})));shownMode=oT(()=>this.modeOverridden()?S(this.themeVariant(),this.themeMode(),false):this.themeMode());enterKeyBehavior=this.preferencesPort.enterKeyBehavior;enterKeyOptions=[{value:"send",label:"Send"},{value:"newline",label:"New line"}];showTechnical=this.preferencesPort.showTechnical;showTechnicalOptions=[{value:true,label:"Shown"},{value:false,label:"Hidden"}];languageOptions=[{value:"",label:"No preference (English fallback)"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"pt",label:"Portuguese"},{value:"it",label:"Italian"},{value:"nl",label:"Dutch"},{value:"pl",label:"Polish"},{value:"ja",label:"Japanese"},{value:"zh",label:"Chinese"}];form=new pt({firstname:new Te$1("",{nonNullable:true}),lastname:new Te$1("",{nonNullable:true}),bio:new Te$1("",{nonNullable:true}),preferredLanguage:new Te$1("",{nonNullable:true})});recap=F(Cy([this.integrationState.userGlobal$,this.providerState.userGlobal$,this.authSettingState.userGlobal$]).pipe(ne(([e,t,l])=>{let s=e.map(g=>({category:"integration",id:g.id??"",name:g.name,subtitle:g.integrationType})),m=t.map(g=>({category:"aiProvider",id:g.id??"",name:g.name,subtitle:g.apiType})),I=l.map(g=>({category:"authSetting",id:g.id??"",name:g.name,subtitle:g.authType}));return {integrations:s,aiProviders:m,authSettings:I,total:s.length+m.length+I.length}})),{initialValue:{integrations:[],aiProviders:[],authSettings:[],total:0}});recapSections=oT(()=>{let e=this.recap();return [{title:"Integrations",entries:e.integrations},{title:"AI Providers",entries:e.aiProviders},{title:"My global auth settings",entries:e.authSettings}].filter(t=>t.entries.length>0)});ngOnInit(){if(this.currentUser()){this.syncFormFromState();return}this.isLoading.set(true),this.userState.loadMe().pipe(U(this.destroyRef)).subscribe({next:()=>{this.syncFormFromState(),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}startEditing(){this.syncFormFromState(),this.isEditing.set(true);}cancelEditing(){this.isEditing.set(false);}setTheme(e){this.themePort.setTheme({variant:this.themePort.theme().variant,mode:e});}setThemeVariant(e){v(e)&&this.themePort.setTheme({variant:e,mode:this.themePort.theme().mode});}isModeDisabled(e){return !V(this.themeVariant(),e)}setEnterKeyBehavior(e){this.preferencesPort.setEnterKeyBehavior(e);}setShowTechnical(e){this.preferencesPort.setShowTechnical(e);}save(){if(this.isSaving())return;this.isSaving.set(true);let e=this.form.controls.preferredLanguage.value.trim();this.userState.updateMe({firstname:this.form.controls.firstname.value.trim()||void 0,lastname:this.form.controls.lastname.value.trim()||void 0,bio:this.form.controls.bio.value.trim()||void 0,preferredLanguage:e||void 0}).pipe(U(this.destroyRef)).subscribe({next:()=>{this.isSaving.set(false),this.isEditing.set(false);},error:()=>this.isSaving.set(false)});}toggleOverrides(){this.isOverridesExpanded.update(e=>!e),this.pendingDeleteKey.set(null);}pendingDeleteKey=$i(null);isPendingDelete(e){return this.pendingDeleteKey()===this.entryKey(e)}armDelete(e){e.id&&this.pendingDeleteKey.set(this.entryKey(e));}cancelDelete(){this.pendingDeleteKey.set(null);}confirmDelete(e){if(!e.id)return;this.pendingDeleteKey.set(null),(e.category==="integration"?this.integrationState.delete(e.id,"userGlobal"):e.category==="authSetting"?this.authSettingState.delete(e.id,"userGlobal"):this.providerState.delete(e.id,"userGlobal")).pipe(U(this.destroyRef)).subscribe({error:l=>{console.error(`[UserProfile] Delete failed for ${e.category}:${e.id}:`,l);}});}entryKey(e){return `${e.category}:${e.id}`}trackEntry(e,t){return this.entryKey(t)}syncFormFromState(){let e=this.currentUser();e&&this.form.setValue({firstname:e.firstname??"",lastname:e.lastname??"",bio:e.bio??"",preferredLanguage:e.preferredLanguage??""});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=Dw({type:o,selectors:[["agentos-user-profile"]],decls:5,vars:1,consts:[["framed",""],["title","My profile"],[1,"ds-hint"],["heading","Appearance"],["label","Skin",3,"hint"],["label","Skin",3,"valueChange","options","value"],["label","Mode",3,"hint"],["label","Color mode",3,"valueChange","options","value"],["heading","Composer"],["label","Enter key","hint",'In "New line" mode, press Ctrl or Cmd + Enter to send.'],["label","Enter key behavior",3,"valueChange","options","value"],["heading","Case chat"],["label","Technical logs","hint","Show system log lines (agent status, tool selection...) in the case chat."],["label","Technical logs",3,"valueChange","options","value"],[1,"ds-form",3,"formGroup"],[1,"ds-form",3,"ngSubmit","formGroup"],["heading","Identity"],["dsDefinitionList",""],["heading","Profile"],["label","First name","controlId","up-firstname"],["dsControl","","id","up-firstname","type","text","placeholder","Your first name","formControlName","firstname","autocomplete","given-name"],["label","Last name","controlId","up-lastname"],["dsControl","","id","up-lastname","type","text","placeholder","Your last name","formControlName","lastname","autocomplete","family-name"],["label","Bio","controlId","up-bio"],["dsControl","","id","up-bio","placeholder","A short description about yourself","formControlName","bio","rows","4"],["label","Language","controlId","up-preferredLanguage"],["dsControl","","id","up-preferredLanguage","formControlName","preferredLanguage"],[3,"value"],["dsButton","","variant","primary","type","submit",3,"disabled"],["dsButton","","type","button",3,"click"],["dsButton","","variant","primary","type","button",3,"click"],[3,"toggled","heading","open"],[1,"ds-micro"],[1,"ds-list"],[1,"ds-row"],[1,"ds-strong","ds-row__grow"],[1,"ds-meta"],["dsButton","","variant","ghost","type","button"],[1,"ds-error"],["dsButton","","variant","danger","type","button",3,"click"],["dsButton","","variant","ghost","type","button",3,"click"]],template:function(t,l){if(t&1&&(Es(0,"ds-page",0),fg(1,"ds-section-header",1),Bw(2,be,2,0,"p",2)(3,Me,13,11)(4,Ie,2,0,"p",2),hl()),t&2){let s;VE(2),Vw(l.isLoading()?2:(s=l.currentUser())?3:4,s);}},dependencies:[Kt,fd,Mo,Do,Ut,Qt,fo,go,Rn,Ea,vn,yn,fn,gn,hn,at,un,mn,ji,Ni],encapsulation:2})};export{ve as UserProfileComponent};
@@ -1 +0,0 @@
1
- import {a1 as ga,a2 as ha,aa as br,aD as $y}from'./main-G2NDWI4S.js';function i(t,o,p){return t.pipe(ga(()=>o().pipe(ha(()=>br(p)))),$y({bufferSize:1,refCount:true}))}export{i};