@whoz-oss/coday-client 0.249.0 → 0.249.2
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/3rdpartylicenses.txt +372 -372
- package/browser/chunk-6uQvW5vO.js +1 -0
- package/browser/chunk-8QCOKWfy.js +1 -0
- package/browser/chunk-B0QeL_YS.js +474 -0
- package/browser/chunk-B1T1lhxO.js +1 -0
- package/browser/chunk-B4ZxVpmQ.js +1 -0
- package/browser/chunk-B9VW5ZdD.js +1 -0
- package/browser/chunk-BGG8qTjD.js +1 -0
- package/browser/chunk-BHrJwQJY.js +1 -0
- package/browser/chunk-BWVGuXWV.js +1 -0
- package/browser/chunk-BXRE8Jnn.js +1 -0
- package/browser/chunk-BXeg32ej.js +1 -0
- package/browser/chunk-BYobt-yL.js +1 -0
- package/browser/chunk-Bb8FM5N7.js +1 -0
- package/browser/chunk-BbkTgcYb.js +1 -0
- package/browser/chunk-BngP4FHh.js +2 -0
- package/browser/chunk-Bo7V2O_x.js +1 -0
- package/browser/chunk-CEFRpdhC.js +1 -0
- package/browser/chunk-CESBNo1v.js +4 -0
- package/browser/chunk-CI20rCP1.js +1 -0
- package/browser/chunk-CMgbU-FY.js +1 -0
- package/browser/chunk-CRujMca4.js +1 -0
- package/browser/chunk-CSLsbjtc.js +429 -0
- package/browser/chunk-CSWaefpi.js +1 -0
- package/browser/chunk-C_hps2N_.js +1 -0
- package/browser/chunk-CawleOYk.js +1 -0
- package/browser/chunk-CeEsFGfn.js +276 -0
- package/browser/chunk-CfgXrte_.js +1 -0
- package/browser/chunk-ChlM0KaI.js +1 -0
- package/browser/chunk-Cl7N3gK-.js +2 -0
- package/browser/chunk-CoVKXwLW.js +7 -0
- package/browser/chunk-CtCrz21E.js +1 -0
- package/browser/chunk-CujZ5wxO.js +1 -0
- package/browser/chunk-Cvmc37VM.js +1 -0
- package/browser/chunk-CyUSpM0s.js +1 -0
- package/browser/chunk-D36CcRIa.js +1 -0
- package/browser/chunk-D3bTMcOe.js +1 -0
- package/browser/chunk-D4O2SdR-.js +1 -0
- package/browser/chunk-D615HDbJ.js +37 -0
- package/browser/chunk-D8jkRlhn.js +141 -0
- package/browser/chunk-DATqkmXk.js +1 -0
- package/browser/chunk-DF9JuMSS.js +1 -0
- package/browser/chunk-DIeUX6U7.js +1 -0
- package/browser/chunk-DVw6VVSF.js +182 -0
- package/browser/chunk-DW95Jf_o.js +1 -0
- package/browser/chunk-DWXHIgAs.js +1 -0
- package/browser/chunk-Dc58xQxP.js +1 -0
- package/browser/chunk-Df2NmKyO.js +190 -0
- package/browser/chunk-Dh70Sw4n.js +675 -0
- package/browser/chunk-DqOy3vx6.js +55 -0
- package/browser/chunk-DrzUXE6a.js +1 -0
- package/browser/chunk-DuetvIR9.js +1 -0
- package/browser/chunk-Dv3y4cq8.js +508 -0
- package/browser/chunk-DxyVrxwh.js +1 -0
- package/browser/chunk-Ims5pjdx.js +1 -0
- package/browser/chunk-Js79q0Hk.js +1 -0
- package/browser/chunk-NZ2JSd9Y.js +976 -0
- package/browser/chunk-R1YuCBfk.js +1 -0
- package/browser/chunk-Tnt17Uum.js +1 -0
- package/browser/chunk-TsE9fL5L.js +1 -0
- package/browser/chunk-ZgaZX2Mw.js +1 -0
- package/browser/chunk-cxvtBPGk.js +1 -0
- package/browser/chunk-hivMYdms.js +5 -0
- package/browser/chunk-hpkckHAH.js +1 -0
- package/browser/chunk-otU95DGd.js +1 -0
- package/browser/chunk-rdNDu_G5.js +61 -0
- package/browser/chunk-sQ2hJaJy.js +1 -0
- package/browser/chunk-tiXMntK-.js +1 -0
- package/browser/index.html +1 -1
- package/browser/main-CERDHS7N.js +1811 -0
- package/package.json +14 -11
- package/browser/chunk-2PWIGCN2.js +0 -4
- package/browser/chunk-3FDPLGME.js +0 -1
- package/browser/chunk-46V5PCBB.js +0 -1
- package/browser/chunk-4KA7TIB4.js +0 -1
- package/browser/chunk-4NPMNHQN.js +0 -1
- package/browser/chunk-4OSUCDSF.js +0 -1
- package/browser/chunk-4QBMPKYR.js +0 -1
- package/browser/chunk-4U47ZPZP.js +0 -1
- package/browser/chunk-5GITXCTT.js +0 -1
- package/browser/chunk-6PGRBK22.js +0 -2
- package/browser/chunk-6XX7GME4.js +0 -1
- package/browser/chunk-7HQ3TFIP.js +0 -1
- package/browser/chunk-7OGOI6WM.js +0 -1
- package/browser/chunk-7P7KJUWV.js +0 -1
- package/browser/chunk-7SEGP55P.js +0 -1
- package/browser/chunk-7TO465TS.js +0 -1
- package/browser/chunk-ABU55DK2.js +0 -1
- package/browser/chunk-AIC4U2MU.js +0 -1
- package/browser/chunk-AKLSF437.js +0 -32
- package/browser/chunk-AS2L77JV.js +0 -2
- package/browser/chunk-AZOMCTR7.js +0 -1
- package/browser/chunk-AZSB2H23.js +0 -1
- package/browser/chunk-B5ZVUFND.js +0 -1
- package/browser/chunk-BK6WNBAO.js +0 -8
- package/browser/chunk-BTOJ27OO.js +0 -3
- package/browser/chunk-C6PO7H3U.js +0 -1
- package/browser/chunk-C7VJCZQE.js +0 -2
- package/browser/chunk-CHEXA6RY.js +0 -5
- package/browser/chunk-CJQ4FDXR.js +0 -1
- package/browser/chunk-CLTMZI2I.js +0 -2
- package/browser/chunk-CNUJJQAG.js +0 -4
- package/browser/chunk-CXNTZ6XI.js +0 -1
- package/browser/chunk-DIJGQPPG.js +0 -1
- package/browser/chunk-EMVHTOJY.js +0 -1
- package/browser/chunk-EWQMM44H.js +0 -1
- package/browser/chunk-F7UYEPIO.js +0 -1
- package/browser/chunk-FAHNOZ4S.js +0 -1
- package/browser/chunk-FELDR7HF.js +0 -1
- package/browser/chunk-FFXIBE7G.js +0 -1
- package/browser/chunk-FL2HNVMC.js +0 -1
- package/browser/chunk-G5RWG2GK.js +0 -9
- package/browser/chunk-GFK56P4B.js +0 -3
- package/browser/chunk-GIIRKWUO.js +0 -1
- package/browser/chunk-GNUSEOSN.js +0 -1
- package/browser/chunk-GOERELOH.js +0 -1
- package/browser/chunk-GS52HX7Q.js +0 -1
- package/browser/chunk-IPWNT3U4.js +0 -1
- package/browser/chunk-IWVV3FNS.js +0 -1
- package/browser/chunk-J6NBYNRX.js +0 -3
- package/browser/chunk-JOFWSHOO.js +0 -1
- package/browser/chunk-JVZA4C5U.js +0 -1
- package/browser/chunk-K2ZZYRVT.js +0 -1
- package/browser/chunk-KHCLVVXY.js +0 -1
- package/browser/chunk-KHMEGI4Z.js +0 -1
- package/browser/chunk-KSZNM45C.js +0 -2
- package/browser/chunk-L2LMV4CM.js +0 -1
- package/browser/chunk-LPIKNWWZ.js +0 -1
- package/browser/chunk-LVZVGPMV.js +0 -6
- package/browser/chunk-MHOEYCWL.js +0 -1
- package/browser/chunk-MIVM4FAD.js +0 -1
- package/browser/chunk-MNWA4UGA.js +0 -1
- package/browser/chunk-MXD6ICBN.js +0 -1
- package/browser/chunk-NHUXMXD2.js +0 -1
- package/browser/chunk-NLCT6PBH.js +0 -1
- package/browser/chunk-NQHQFPW5.js +0 -2
- package/browser/chunk-NWFFZ2FW.js +0 -1
- package/browser/chunk-NXINMPV4.js +0 -1
- package/browser/chunk-OCMS2KMG.js +0 -1
- package/browser/chunk-OO2H5F7U.js +0 -6
- package/browser/chunk-OOO6KSSL.js +0 -1
- package/browser/chunk-P4UYIBTK.js +0 -1
- package/browser/chunk-P5FCG3WF.js +0 -1
- package/browser/chunk-PGEMQVT2.js +0 -1
- package/browser/chunk-PI7ZIR5W.js +0 -1
- package/browser/chunk-PNPPZSOI.js +0 -1
- package/browser/chunk-QVW2GZXC.js +0 -1
- package/browser/chunk-QYUULQIF.js +0 -1
- package/browser/chunk-RB7N2NWN.js +0 -1
- package/browser/chunk-ROOPYJTV.js +0 -1
- package/browser/chunk-RSTB4RTA.js +0 -1
- package/browser/chunk-RUXH3KF5.js +0 -1
- package/browser/chunk-SFQE4GQ6.js +0 -1
- package/browser/chunk-SN27D3CH.js +0 -1
- package/browser/chunk-SPV5SLNS.js +0 -2
- package/browser/chunk-SQACXL4U.js +0 -1
- package/browser/chunk-SVOSTUY5.js +0 -1
- package/browser/chunk-SXFAR5TU.js +0 -1
- package/browser/chunk-TSYL5EEO.js +0 -61
- package/browser/chunk-TTHFWEW7.js +0 -6
- package/browser/chunk-UAC4ZZCA.js +0 -1
- package/browser/chunk-UAVOIVZW.js +0 -2
- package/browser/chunk-UKR2PSUI.js +0 -1
- package/browser/chunk-VCUQMGKI.js +0 -1
- package/browser/chunk-VMYKE4ZC.js +0 -1
- package/browser/chunk-VN2SNJFT.js +0 -1
- package/browser/chunk-WARAZYNV.js +0 -1
- package/browser/chunk-WLOUHJRC.js +0 -1
- package/browser/chunk-WNJYWSOR.js +0 -1
- package/browser/chunk-WRMHUQWQ.js +0 -1
- package/browser/chunk-WVXEP3PL.js +0 -1
- package/browser/chunk-XIV35L24.js +0 -1
- package/browser/chunk-XORVTVXX.js +0 -1
- package/browser/chunk-XXVFHAN5.js +0 -270
- package/browser/chunk-XZIT26QS.js +0 -1
- package/browser/chunk-YFCRBVWD.js +0 -1
- package/browser/chunk-YFONUBPG.js +0 -1
- package/browser/chunk-YGUO4DH3.js +0 -1
- package/browser/chunk-YJOXSEUO.js +0 -1
- package/browser/chunk-YV2SJQAM.js +0 -1
- package/browser/chunk-Z3AHFIZF.js +0 -1
- package/browser/chunk-ZEQWC4IU.js +0 -1
- package/browser/main-7VP3QZBV.js +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {s as se}from'./chunk-NZ2JSd9Y.js';import {M as Mr,z as zi,F as Fn,H as Hi,u as ut,a as ur,h as hr}from'./chunk-Dh70Sw4n.js';import {g,J as dy,P,Y as x,aK as Do,aL as Wn,bC as ge,bD as vt,aN as wt,br as wl,az as Qt,aV as w,aR as K,bE as X,al as yt,aS as Ut,bF as p,bG as Pt,A as Aw,aZ as YT,bz as vC,bH as Eg,b4 as nT,D as Fg,bI as lr,I as IC,E as wC,bu as kg,bJ as fe,bK as pe,bL as gr,aO as G,bs as Qn,bM as F,aQ as As,an as ce,O as Ot,bN as mt,bO as Yy,ae as Ot$1,S as pa,u as ue,bP as Zy,bQ as bd,bR as ga,aE as A,bt as Ve$1,bS as pn,bT as Od,bU as Ky,aA as sn,bV as Y,bW as Pt$1,bX as po,bY as X$1,bZ as xt,aY as ks,aC as wu,l as Ag,C as Cg,aw as fl,bA as DC,ax as pl,ac as mC,b_ as FC,y as Hg,b$ as Ng,c0 as E,c1 as ME,c2 as kt$1,bB as Ii}from'./main-CERDHS7N.js';import {D}from'./chunk-D615HDbJ.js';var xe=class a{http=g(dy);projectState=g(P);getBaseUrl(){return `/api/projects/${this.projectState.getSelectedProjectIdOrThrow()}/schedulers`}listSchedulers(){return this.http.get(this.getBaseUrl())}getScheduler(o){return this.http.get(`${this.getBaseUrl()}/${o}`)}createScheduler(o){return this.http.post(this.getBaseUrl(),o)}listSchedulersForProject(o){return this.http.get(`/api/projects/${o}/schedulers`)}enableSchedulerForProject(o,e){return this.http.post(`/api/projects/${o}/schedulers/${e}/enable`,{})}disableSchedulerForProject(o,e){return this.http.post(`/api/projects/${o}/schedulers/${e}/disable`,{})}runSchedulerNowForProject(o,e){return this.http.post(`/api/projects/${o}/schedulers/${e}/run-now`,{})}deleteSchedulerForProject(o,e){return this.http.delete(`/api/projects/${o}/schedulers/${e}`)}updateSchedulerForProject(o,e,t){return this.http.put(`/api/projects/${o}/schedulers/${e}`,t)}createSchedulerForProject(o,e){return this.http.post(`/api/projects/${o}/schedulers`,e)}updateScheduler(o,e){return this.http.put(`${this.getBaseUrl()}/${o}`,e)}deleteScheduler(o){return this.http.delete(`${this.getBaseUrl()}/${o}`)}enableScheduler(o){return this.http.post(`${this.getBaseUrl()}/${o}/enable`,{})}disableScheduler(o){return this.http.post(`${this.getBaseUrl()}/${o}/disable`,{})}runSchedulerNow(o){return this.http.post(`${this.getBaseUrl()}/${o}/run-now`,{})}static \u0275fac=function(e){return new(e||a)};static \u0275prov=x({token:a,factory:a.\u0275fac,providedIn:"root"})};var Ke=["panel"],Ue=["*"];function qe(a,o){if(a&1&&(fl(0,"div",1,0),DC(2),pl()),a&2){let e=o.id,t=mC();FC(t._classList),Hg("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-autocomplete-panel-animations-enabled",!t._animationsDisabled)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),Ng("id",t.id),Cg("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e));}}var R=class{source;option;constructor(o,e){this.source=o,this.option=e;}},Ve=new w("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:false,autoSelectActiveOption:false,hideSingleSelectionIndicator:false,requireSelection:false,hasBackdrop:false})}),Ct=(()=>{class a{_changeDetectorRef=g(wl);_elementRef=g(Qt);_defaults=g(Ve);_animationsDisabled=K();_activeOptionChanges=X.EMPTY;_keyManager;showPanel=false;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=false;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck();}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=false;optionSelected=new yt;opened=new yt;closed=new yt;optionActivated=new yt;set classList(e){this._classList=e,this._elementRef.nativeElement.className="";}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}id=g(Ut).getId("mat-autocomplete-");inertGroups;constructor(){let e=g(p);this.inertGroups=e?.SAFARI||false,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??false;}ngAfterContentInit(){this._keyManager=new Pt(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null});}),this._setVisibility();}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe();}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e);}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck();}_emitSelectEvent(e){let t=new R(this,e);this.optionSelected.emit(t);}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_skipPredicate(){return false}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=Aw({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,n){if(t&1&&kg(n,Fn,5)(n,Hi,5),t&2){let s;IC(s=wC())&&(i.options=s),IC(s=wC())&&(i.optionGroups=s);}},viewQuery:function(t,i){if(t&1&&Fg(lr,7)(Ke,5),t&2){let n;IC(n=wC())&&(i.template=n.first),IC(n=wC())&&(i.panel=n.first);}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",YT],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",YT],requireSelection:[2,"requireSelection","requireSelection",YT],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",YT],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",YT]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[nT([{provide:zi,useExisting:a}])],ngContentSelectors:Ue,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(t,i){t&1&&(vC(),Eg(0,qe,3,17,"ng-template"));},styles:[`div.mat-mdc-autocomplete-panel {
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-height: 256px;
|
|
4
|
+
visibility: hidden;
|
|
5
|
+
transform-origin: center top;
|
|
6
|
+
overflow: auto;
|
|
7
|
+
padding: 8px 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
position: relative;
|
|
10
|
+
border-radius: var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));
|
|
11
|
+
box-shadow: var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));
|
|
12
|
+
background-color: var(--mat-autocomplete-background-color, var(--mat-sys-surface-container));
|
|
13
|
+
}
|
|
14
|
+
@media (forced-colors: active) {
|
|
15
|
+
div.mat-mdc-autocomplete-panel {
|
|
16
|
+
outline: solid 1px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel {
|
|
20
|
+
border-top-left-radius: 0;
|
|
21
|
+
border-top-right-radius: 0;
|
|
22
|
+
}
|
|
23
|
+
.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel {
|
|
24
|
+
border-bottom-left-radius: 0;
|
|
25
|
+
border-bottom-right-radius: 0;
|
|
26
|
+
transform-origin: center bottom;
|
|
27
|
+
}
|
|
28
|
+
div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible {
|
|
29
|
+
visibility: visible;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden,
|
|
33
|
+
.cdk-overlay-pane:has(> .mat-mdc-autocomplete-hidden) {
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes _mat-autocomplete-enter {
|
|
39
|
+
from {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
transform: scaleY(0.8);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transform: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.mat-autocomplete-panel-animations-enabled {
|
|
49
|
+
animation: _mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
mat-autocomplete {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
`],encapsulation:2})}return a})();var Ye={provide:D,useExisting:Ii(()=>ze),multi:true};var Ge=new w("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(pe);return ()=>kt$1(a)}}),ze=(()=>{class a{_environmentInjector=g(fe);_element=g(Qt);_injector=g(pe);_viewContainerRef=g(gr);_zone=g(G);_changeDetectorRef=g(wl);_dir=g(Qn,{optional:true});_formField=g(se,{optional:true,host:true});_viewportRuler=g(F);_scrollStrategy=g(Ge);_renderer=g(As);_animationsDisabled=K();_defaults=g(Ve,{optional:true});_overlayRef=null;_portal;_componentDestroyed=false;_initialized=new ce;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=false;_closingActionsSubscription;_viewportSubscription=X.EMPTY;_breakpointObserver=g(Ot);_handsetLandscapeSubscription=X.EMPTY;_canOpenOnNextFocus=true;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new ce;_overlayPanelClass=mt(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus();};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=false;_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler);}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition());}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=true,this._destroyPanel(),this._closeKeyEventStream.complete();}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=false;openPanel(){this._openPanelInternal();}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit();}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=false,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=false,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges());}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition();}get panelClosingActions(){return Yy(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ot$1(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ot$1(()=>this._overlayAttached)):pa()).pipe(ue(e=>e instanceof ut?e:null))}optionSelections=Zy(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(bd(e),ga(()=>Yy(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(ga(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new A(e=>{let t=n=>{let s=E(n),l=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,E$1=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&s!==this._element.nativeElement&&!this._hasFocus()&&(!l||!l.contains(s))&&(!E$1||!E$1.contains(s))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(s)&&e.next(n);},i=[this._renderer.listen("document","click",t),this._renderer.listen("document","auxclick",t),this._renderer.listen("document","touchend",t)];return ()=>{i.forEach(n=>n());}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e));}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this._element.nativeElement.disabled=e;}_handleKeydown(e){let t=e,i=t.keyCode,n=Ve$1(t);if(i===27&&!n&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!n)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let s=this.autocomplete._keyManager.activeItem,l=i===38||i===40;i===9||l&&!n&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):l&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(l||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)));}}_handleInput(e){let t=e.target,i=t.value;if(t.type==="number"&&(i=i==""?null:parseFloat(i)),this._previousValue!==i){if(this._previousValue=i,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(i),!i)this._clearPreviousSelectedOption(null,false);else if(this.panelOpen&&!this.autocomplete.requireSelection){let n=this.autocomplete.options?.find(s=>s.selected);if(n){let s=this._getDisplayValue(n.value);i!==s&&n.deselect(false);}}if(this._canOpen()&&this._hasFocus()){let n=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(n);}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(true)):this._canOpenOnNextFocus=true;}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal();}_hasFocus(){return pn()===this._element.nativeElement}_floatLabel(e=false){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=true);}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=false);}_subscribeToClosingActions(){let e=new A(i=>{ME(()=>{i.next();},{injector:this._environmentInjector});}),t=this.autocomplete.options?.changes.pipe(Od(()=>this._positionStrategy.reapplyLastPosition()),Ky(0))??pa();return Yy(e,t).pipe(ga(()=>this._zone.run(()=>{let i=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),i!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),sn(1)).subscribe(i=>this._setValueAndClose(i))}_emitOpened(){this.autocomplete.opened.emit();}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null);}_getDisplayValue(e){let t=this.autocomplete;return t&&t.displayWith?t.displayWith(e):e}_assignOptionValue(e){let t=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,false),this._updateNativeInputValue(t??"");}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e;}_setValueAndClose(e){let t=this.autocomplete,i=e?e.source:this._pendingAutoselectedOption;i?(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),t._emitSelectEvent(i),this._element.nativeElement.focus()):t.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel();}_clearPreviousSelectedOption(e,t){this.autocomplete?.options?.forEach(i=>{i!==e&&i.selected&&i.deselect(t);});}_openPanelInternal(e=this._element.nativeElement.value){this._attachOverlay(e),this._floatLabel();}_attachOverlay(e){if(!this.autocomplete)return;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new Y(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),t=Pt$1(this._injector,this._getOverlayConfig()),this._overlayRef=t,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()});}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(po.HandsetLandscape).subscribe(n=>{n.matches?this._positionStrategy.withFlexibleDimensions(true).withGrowAfterOpen(true).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(false).withGrowAfterOpen(false).withViewportMargin(0);})),t&&!t.hasAttached()&&(t.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=true,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened();}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ve$1(e)||e.keyCode===38&&Ve$1(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault());};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe());}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0;}_getOverlayConfig(){return new X$1({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=xt(this._injector,this._getConnectedElement()).withFlexibleDimensions(false).withPush(false).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}],s;this.position==="above"?s=n:this.position==="below"?s=t:s=[...t,...n],e.withPositions(s);}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let t=-1;for(let i=0;i<e.options.length;i++)if(!e.options.get(i).disabled){t=i;break}e._keyManager.setActiveItem(t);}else e._keyManager.setActiveItem(-1);}_canOpen(){let e=this._element.nativeElement;return !e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let t=this.autocomplete,i=ur(e,t.options,t.optionGroups);if(e===0&&i===1)t._setScrollTop(0);else if(t.panel){let n=t.options.toArray()[e];if(n){let s=n._getHostElement(),l=hr(s.offsetTop,s.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(l);}}}static \u0275fac=function(t){return new(t||a)};static \u0275dir=ks({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){t&1&&Ag("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),t&2&&Cg("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-controls",i.autocompleteDisabled||!i.panelOpen?null:i.autocomplete?.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox");},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",YT]},exportAs:["matAutocompleteTrigger"],features:[nT([Ye]),wu]})}return a})(),kt=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=Do({type:a});static \u0275inj=Wn({imports:[ge,Mr,vt,Mr,wt]})}return a})();export{Ct as C,kt as k,xe as x,ze as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {I}from'./chunk-BbkTgcYb.js';import {g,G,w as we,de as B,dd as $,aI as Tr,bR as ga,aD as Ly,u as ue,b as U,A as Aw,aJ as Nb,v as vs,be as aT,l as Ag,k as dl,af as Dg,T as TC,r as Tg,bf as uT,ah as rT,n as eC,ac as mC,t as tC,a9 as dC,aa as If,ab as wf,ag as fT}from'./main-CERDHS7N.js';import {W as Wn,D as De}from'./chunk-Dh70Sw4n.js';import'./chunk-Dv3y4cq8.js';import'./chunk-D615HDbJ.js';var N=()=>[];function V(n,t){if(n&1){let o=dC();vs(0,"agentos-ai-model-item",4),Ag("editRequested",function(e){If(o);let s=mC(2);return wf(s.onEdit(e))})("deleteRequested",function(e){If(o);let s=mC(2);return wf(s.deleteModel(e))}),dl();}n&2&&Tg("model",t);}function F(n,t){if(n&1&&eC(0,V,1,1,"agentos-ai-model-item",3),n&2){let o,i=t.$implicit,e=mC();tC((o=e.resolveModel(i.id))?0:-1,o);}}var L=class n{router=g(G);destroyRef=g(we);aiModelController=g(B);aiProviderController=g($);refresh$=new Tr(void 0);data$=this.refresh$.pipe(ga(()=>Ly([this.aiModelController.listPlatformLevelAiModel(),this.aiProviderController.listAiProvider("none")])));modelItems$=this.data$.pipe(ue(([t,o])=>{let i=new Map(o.map(e=>[e.id??"",e.name]));return t.map(e=>({id:e.id??"",name:e.alias??e.apiModelName,description:e.apiModelName,groupKey:e.aiProviderId,groupLabel:i.get(e.aiProviderId)??e.aiProviderId}))}));modelsById=new Map;constructor(){this.data$.pipe(U(this.destroyRef)).subscribe(([t])=>{this.modelsById=new Map(t.map(o=>[o.id??"",o]));});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","ai-models","new"]);}deleteModel(t){this.aiModelController.deleteAiModel(t.id??"").pipe(U(this.destroyRef)).subscribe(()=>this.refresh$.next());}onEdit(t){t.id&&this.router.navigate(["/agentos","admin","ai-models",t.id,"edit"]);}resolveModel(t){return this.modelsById.get(t)??null}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=Aw({type:n,selectors:[["agentos-platform-ai-models"]],decls:5,vars:6,consts:[["aiModelItemTpl",""],["title","Platform AI Models","emptyMessage","No platform AI models defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","icon","arrow_back","title","Back",3,"action"],[3,"model"],[3,"editRequested","deleteRequested","model"]],template:function(o,i){if(o&1&&(vs(0,"ds-entity-list",1),aT(1,"async"),Ag("createRequested",function(){return i.openCreateForm()}),vs(2,"ds-icon-button",2),Ag("action",function(){return i.goBack()}),dl()(),Dg(3,F,1,1,"ng-template",null,0,fT)),o&2){let e=TC(4);Tg("items",uT(1,3,i.modelItems$)??rT(5,N))("showCreate",true)("itemTemplate",e);}},dependencies:[Wn,I,De,Nb],styles:[".platform-ai-models__back[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;font-family:inherit;font-size:.875rem;color:var(--color-text-secondary, #6e6e73);padding:.25rem .5rem;border-radius:4px;transition:color .15s ease}.platform-ai-models__back[_ngcontent-%COMP%]:hover{color:var(--color-primary, #007aff)}"]})};export{L as PlatformAiModelsComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {S as S$1}from'./chunk-CRujMca4.js';import {g,G,w as we,dd as $,aI as Tr,bR as ga,u as ue,b as U,A as Aw,aJ as Nb,v as vs,be as aT,l as Ag,k as dl,af as Dg,T as TC,r as Tg,bf as uT,ah as rT,n as eC,ac as mC,t as tC,a9 as dC,aa as If,ab as wf,ag as fT}from'./main-CERDHS7N.js';import {W as Wn,D as De}from'./chunk-Dh70Sw4n.js';import'./chunk-Dv3y4cq8.js';import'./chunk-D615HDbJ.js';var S=()=>[];function V(r,e){if(r&1){let t=dC();vs(0,"agentos-ai-provider-item",4),Ag("editRequested",function(i){If(t);let p=mC(2);return wf(p.onEdit(i))})("deleteRequested",function(i){If(t);let p=mC(2);return wf(p.onDelete(i))}),dl();}r&2&&Tg("config",e)("showBadge",false);}function F(r,e){if(r&1&&eC(0,V,1,2,"agentos-ai-provider-item",3),r&2){let t,o=e.$implicit,i=mC();tC((t=i.resolveProvider(o.id))?0:-1,t);}}var E=class r{router=g(G);destroyRef=g(we);aiProviderController=g($);refresh$=new Tr(void 0);providers$=this.refresh$.pipe(ga(()=>this.aiProviderController.listAiProvider("none")));providerItems$=this.providers$.pipe(ue(e=>e.map(t=>({id:t.id??"",name:t.name,description:t.apiType}))));providersById=new Map;constructor(){this.providers$.pipe(U(this.destroyRef)).subscribe(e=>{this.providersById=new Map(e.map(t=>[t.id??"",t]));});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","ai-providers","new"]);}onEdit(e){e.id&&this.router.navigate(["/agentos","admin","ai-providers",e.id,"edit"]);}onDelete(e){e.id&&this.aiProviderController.deleteAiProvider(e.id).pipe(U(this.destroyRef)).subscribe(()=>this.refresh$.next());}resolveProvider(e){return this.providersById.get(e)??null}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=Aw({type:r,selectors:[["agentos-platform-ai-providers"]],decls:5,vars:6,consts:[["aiProviderItemTpl",""],["title","Platform AI Providers","emptyMessage","No platform AI providers defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","showCreate","itemTemplate"],["toolbar-start","","icon","arrow_back","title","Back",3,"action"],["scope","namespace",3,"config","showBadge"],["scope","namespace",3,"editRequested","deleteRequested","config","showBadge"]],template:function(t,o){if(t&1&&(vs(0,"ds-entity-list",1),aT(1,"async"),Ag("createRequested",function(){return o.openCreateForm()}),vs(2,"ds-icon-button",2),Ag("action",function(){return o.goBack()}),dl()(),Dg(3,F,1,1,"ng-template",null,0,fT)),t&2){let i=TC(4);Tg("items",uT(1,3,o.providerItems$)??rT(5,S))("showCreate",true)("itemTemplate",i);}},dependencies:[Wn,S$1,De,Nb],styles:[".platform-ai-providers__back[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;font-family:inherit;font-size:.875rem;color:var(--color-text-secondary, #6e6e73);padding:.25rem .5rem;border-radius:4px;transition:color .15s ease}.platform-ai-providers__back[_ngcontent-%COMP%]:hover{color:var(--color-primary, #007aff)}"]})};export{E as PlatformAiProvidersComponent};
|