@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.236 → 0.0.0-workstream-forge.238
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 +6 -6
- package/browser/chunk-7p-1xXH7.js +27 -0
- package/browser/chunk-B--QEE-T.js +1 -0
- package/browser/chunk-B2ZPWdaB.js +1 -0
- package/browser/chunk-B4xpdFhf.js +1 -0
- package/browser/chunk-CFrC2dDX.js +197 -0
- package/browser/{chunk-D8_xxYpK.js → chunk-CJoHoQkg.js} +2 -2
- package/browser/chunk-CMpb_Udx.js +1 -0
- package/browser/chunk-COC5QX2L.js +1005 -0
- package/browser/chunk-Co1Ku9WV.js +1 -0
- package/browser/{chunk-nhCtv6KF.js → chunk-Cp3Tr1Fj.js} +1 -1
- package/browser/{chunk-CNOhl9OO.js → chunk-D6GqK89P.js} +1 -1
- package/browser/chunk-LesvdyPZ.js +1705 -0
- package/browser/chunk-mxyZIykv.js +1 -0
- package/browser/chunk-yLJXs6w-.js +1 -0
- package/browser/chunk-zmtQvPvN.js +171 -0
- package/browser/index.html +1 -1
- package/browser/main-WXSAACUF.js +3475 -0
- package/package.json +1 -1
- package/browser/chunk-BIseZKUS.js +0 -1
- package/browser/chunk-C64W8VIN.js +0 -27
- package/browser/chunk-C81vMbJf.js +0 -1
- package/browser/chunk-CAL56ymC.js +0 -1525
- package/browser/chunk-CJwLjMOX.js +0 -1
- package/browser/chunk-CiHUCdhU.js +0 -1005
- package/browser/chunk-Ct8eurXX.js +0 -1
- package/browser/chunk-D5t9ROPJ.js +0 -171
- package/browser/chunk-DHjG3wRc.js +0 -197
- package/browser/chunk-DO4aiYZQ.js +0 -1
- package/browser/chunk-DR66-Nly.js +0 -1
- package/browser/chunk-DlPnN4AH.js +0 -181
- package/browser/chunk-Qzocwlo0.js +0 -1
- package/browser/main-TX54ME2U.js +0 -3475
package/3rdpartylicenses.txt
CHANGED
|
@@ -301,12 +301,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
301
301
|
THE SOFTWARE.
|
|
302
302
|
|
|
303
303
|
--------------------------------------------------------------------------------
|
|
304
|
-
Package: @angular/
|
|
304
|
+
Package: @angular/router
|
|
305
305
|
License: "MIT"
|
|
306
306
|
|
|
307
307
|
The MIT License
|
|
308
308
|
|
|
309
|
-
Copyright (c) 2026 Google LLC.
|
|
309
|
+
Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
|
|
310
310
|
|
|
311
311
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
312
312
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -327,7 +327,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
327
327
|
THE SOFTWARE.
|
|
328
328
|
|
|
329
329
|
--------------------------------------------------------------------------------
|
|
330
|
-
Package: @angular/
|
|
330
|
+
Package: @angular/cdk
|
|
331
331
|
License: "MIT"
|
|
332
332
|
|
|
333
333
|
The MIT License
|
|
@@ -353,12 +353,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
353
353
|
THE SOFTWARE.
|
|
354
354
|
|
|
355
355
|
--------------------------------------------------------------------------------
|
|
356
|
-
Package: @angular/
|
|
356
|
+
Package: @angular/material
|
|
357
357
|
License: "MIT"
|
|
358
358
|
|
|
359
359
|
The MIT License
|
|
360
360
|
|
|
361
|
-
Copyright (c)
|
|
361
|
+
Copyright (c) 2026 Google LLC.
|
|
362
362
|
|
|
363
363
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
364
364
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -379,7 +379,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
379
379
|
THE SOFTWARE.
|
|
380
380
|
|
|
381
381
|
--------------------------------------------------------------------------------
|
|
382
|
-
Package: @angular/
|
|
382
|
+
Package: @angular/forms
|
|
383
383
|
License: "MIT"
|
|
384
384
|
|
|
385
385
|
The MIT License
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {T as Se,_ as _e,P as Pt,U as Xo,f,aU as fe,ch as ze,cu as U,aT as H,cv as Ee,aV as Un,aY as jh,V as y,aX as U$1,cw as z6,ad as Ct,cx as R6,cy as cr,al as mr,b_ as Vt,cz as zt,cA as Cr,cB as me,y as cc,aK as Re,b2 as sn,aM as Ge,aq as Hb,cC as Fe,X as Xc,bL as Db,q as ln,K as Wt,cD as Ct$1,b8 as yn,bb as me$1,cE as Zn,cF as M,H as He}from'./main-WXSAACUF.js';var J=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=He({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize {
|
|
2
|
+
resize: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
textarea.cdk-textarea-autosize-measuring {
|
|
6
|
+
padding: 2px 0 !important;
|
|
7
|
+
box-sizing: content-box !important;
|
|
8
|
+
height: auto !important;
|
|
9
|
+
overflow: hidden !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
textarea.cdk-textarea-autosize-measuring-firefox {
|
|
13
|
+
padding: 2px 0 !important;
|
|
14
|
+
box-sizing: content-box !important;
|
|
15
|
+
height: 0 !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes cdk-text-field-autofill-start { /*!*/ }
|
|
19
|
+
@keyframes cdk-text-field-autofill-end { /*!*/ }
|
|
20
|
+
.cdk-text-field-autofill-monitored:-webkit-autofill {
|
|
21
|
+
animation: cdk-text-field-autofill-start 0s 1ms;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cdk-text-field-autofill-monitored:not(:-webkit-autofill) {
|
|
25
|
+
animation: cdk-text-field-autofill-end 0s 1ms;
|
|
26
|
+
}
|
|
27
|
+
`],encapsulation:2})}return s})(),Q={passive:true},$=(()=>{class s{_platform=f(ze);_ngZone=f(H);_renderer=f(Ct$1).createRenderer(null,null);_styleLoader=f(yn);_monitoredElements=new Map;monitor(e){if(!this._platform.isBrowser)return me$1;this._styleLoader.load(J);let t=Zn(e),i=this._monitoredElements.get(t);if(i)return i.subject;let r=new U$1,o="cdk-text-field-autofilled",a=d=>{d.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(o)?(t.classList.add(o),this._ngZone.run(()=>r.next({target:d.target,isAutofilled:true}))):d.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(o)&&(t.classList.remove(o),this._ngZone.run(()=>r.next({target:d.target,isAutofilled:false})));},l=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(t,"animationstart",a,Q)));return this._monitoredElements.set(t,{subject:r,unlisten:l}),r}stopMonitoring(e){let t=Zn(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t));}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t));}static \u0275fac=function(t){return new(t||s)};static \u0275prov=M({token:s,factory:s.\u0275fac})}return s})();var W=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Se({type:s});static \u0275inj=_e({})}return s})();var Y=new y("MAT_INPUT_VALUE_ACCESSOR");var ee=["button","checkbox","file","hidden","image","radio","range","reset","submit"],te=new y("MAT_INPUT_CONFIG"),Pe=(()=>{class s{_elementRef=f(fe);_platform=f(ze);ngControl=f(U,{optional:true,self:true});_autofillMonitor=f($);_ngZone=f(H);_formField=f(Ee,{optional:true});_renderer=f(Un);_uid=f(jh).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=f(te,{optional:true});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=false;_isNativeSelect=false;_isTextarea=false;_isInFormField=false;focused=false;stateChanges=new U$1;controlType="mat-input";autofilled=false;get disabled(){return this._disabled}set disabled(e){this._disabled=z6(e),this.focused&&(this.focused=false,this.stateChanges.next());}_disabled=false;get id(){return this._id}set id(e){this._id=e||this._uid;}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ct.required)??false}set required(e){this._required=z6(e);}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&R6().has(this._type)&&(this._elementRef.nativeElement.type=this._type);}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next());}get readonly(){return this._readonly}set readonly(e){this._readonly=z6(e);}_readonly=false;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>R6().has(e));constructor(){let e=f(cr,{optional:true}),t=f(mr,{optional:true}),i=f(Vt),r=f(Y,{optional:true,self:true}),o=f(zt,{optional:true,self:true}),a=this._elementRef.nativeElement,l=a.nodeName.toLowerCase();r?Cr(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener);}),this._errorStateTracker=new me(i,o||this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=l==="select",this._isTextarea=l==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||false,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&cc(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next();});}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next();});}ngOnChanges(){this.stateChanges.next();}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.();}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder();}focus(e){this._elementRef.nativeElement.focus(e);}updateErrorState(){this._errorStateTracker.updateErrorState();}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0);}this.focused=e,this.stateChanges.next();}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next());}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder");}}_getPlaceholder(){return this.placeholder||null}_validateType(){ee.indexOf(this._type)>-1;}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return !this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(){this.focused||this.focus();}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0));};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Re({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&Xc("focus",function(){return i._focusChanged(true)})("blur",function(){return i._focusChanged(false)})("input",function(){return i._onInput()}),t&2&&(Db("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),ln("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),Wt("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()));},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ge]},exportAs:["matInput"],features:[Hb([{provide:Fe,useExisting:s}]),sn]})}return s})(),Be=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Se({type:s});static \u0275inj=_e({imports:[Pt,Pt,W,Xo]})}return s})();export{Be as B,Pe as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,ar as P_,Z,av as Dn,aD as _,at as Pe,d4 as vt,az as x}from'./main-WXSAACUF.js';function g(r){if(Array.isArray(r))return r;let e=typeof r=="object"&&r!==null?r:{};if(Array.isArray(e.items))return e.items;if(Array.isArray(e.data))return e.data;let i=typeof e.data=="object"&&e.data!==null?e.data:{};return Array.isArray(i.items)?i.items:[]}var c=class r{api=f(P_);definitions=Z([]);loading=Z(false);error=Z(null);uploading=Z(false);deletingKey=Z(null);load(){this.loading.set(true),this.error.set(null),this.api.getWorkflowDefinitions().pipe(Dn(()=>this.loading.set(false))).subscribe({next:e=>this.definitions.set(g(e)),error:e=>{this.definitions.set([]),this.error.set(e);}});}upload(e){return this.uploading.set(true),this.error.set(null),this.api.uploadWorkflowDefinition(e).pipe(_(()=>{}),Pe(i=>(this.error.set(i),vt(()=>i))),Dn(()=>this.uploading.set(false)))}delete(e,i){let p=`${e}@${i}`;return this.deletingKey.set(p),this.error.set(null),this.api.deleteWorkflowDefinition(e,i).pipe(_(()=>{}),Pe(l=>(this.error.set(l),vt(()=>l))),Dn(()=>this.deletingKey.set(null)))}static \u0275fac=function(i){return new(i||r)};static \u0275prov=x({token:r,factory:r.\u0275fac})};export{c,g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {$ as $e,H as Ht,j as jt,N as Nt,z as zt,V as Vt}from'./chunk-CFrC2dDX.js';import {f,H as He,x as x9,A as A9,d as kc,z as zM,h as hp,i as is,J as Ji,l as kb,j as ss,v as vb,K as Wt,a8 as Dp,u as bM}from'./main-WXSAACUF.js';function S(o,m){if(o&1&&(kc(0,"code",1),zM(1),hp()),o&2){let a=bM();Ji(),kb(a.data.detail);}}var I=class o{data=f($e);static \u0275fac=function(a){return new(a||o)};static \u0275cmp=He({type:o,selectors:[["sf-confirm-dialog"]],decls:11,vars:8,consts:[["mat-dialog-title",""],[1,"sf-mono","dialog-detail"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-stroked-button","",3,"mat-dialog-close"]],template:function(a,l){a&1&&(kc(0,"h2",0),zM(1),hp(),kc(2,"mat-dialog-content")(3,"p"),zM(4),hp(),is(5,S,2,1,"code",1),hp(),kc(6,"mat-dialog-actions",2)(7,"button",3),zM(8,"Cancel"),hp(),kc(9,"button",4),zM(10),hp()()),a&2&&(Ji(),kb(l.data.title),Ji(3),kb(l.data.message),Ji(),ss(l.data.detail?5:-1),Ji(2),vb("mat-dialog-close",false),Ji(2),Wt("sf-danger",l.data.destructive),vb("mat-dialog-close",true),Ji(),Dp(" ",l.data.confirmLabel??"Confirm"," "));},dependencies:[x9,A9,Ht,jt,Nt,zt,Vt],styles:[".dialog-detail[_ngcontent-%COMP%]{display:inline-block;margin-top:10px;padding:4px 8px;border-radius:6px;background:var(--sf-surface-2);color:var(--sf-primary)}"]})};export{I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {N as No,n as J8,p as ls,H as He,be as Hn,br as Tg,bs as $n,bf as Vn,s as sM,J as Ji,bh as Mb,q as ln,g as aM,i as is,j as ss,w as pM,ct as _b,a6 as hg,u as bM,a7 as mg,z as zM,bL as Db,l as kb,r as Pb,a8 as Dp,bq as eA}from'./main-WXSAACUF.js';var H=()=>[],J=(t,i)=>i.from+":"+i.to,X=(t,i)=>i.step.id,Y=(t,i)=>i.name;function q(t,i){if(t&1&&(Tg(),Hn(0,"text",7),zM(1),Vn()),t&2){let e=bM().$implicit;ln("x",e.x)("y",e.y),Ji(),kb(e.label);}}function A(t,i){if(t&1&&(Tg(),$n(0,"path",6),is(1,q,2,3,":svg:text",7)),t&2){let e=i.$implicit;ln("d",e.path)("data-dependency",e.from+":"+e.to),Ji(),ss(e.label?1:-1);}}function K(t,i){if(t&1&&(Hn(0,"span"),zM(1),Vn()),t&2){let e=bM().$implicit;Ji(),Dp("Decision \xB7 ",e.step.decision.mode);}}function Q(t,i){if(t&1&&(Hn(0,"span"),zM(1),Vn()),t&2){let e=bM().$implicit;Ji(),Dp("Join \xB7 ",e.step.join);}}function U(t,i){if(t&1&&(Hn(0,"span"),zM(1),Vn()),t&2){let e=bM().$implicit;Ji(),Pb("",e.step.status," \xB7 ",e.step.activation);}}function Z(t,i){if(t&1&&(Hn(0,"span"),zM(1),Vn()),t&2){let e=bM().$implicit;Ji(),Dp("Selected: ",e.step.routeDecision.selectedRoutes.join(", "));}}function ee(t,i){if(t&1&&(Hn(0,"span",9),zM(1),Vn()),t&2){let e=i.$implicit;Ji(),Pb("Route ",e.name," to ",e.target);}}function te(t,i){if(t&1){let e=pM();Hn(0,"button",8),_b("click",function(){let _=hg(e).$implicit,c=bM();return mg(c.selected.emit(_.step.id))}),Hn(1,"strong"),zM(2),Vn(),Hn(3,"span"),zM(4),Vn(),is(5,K,2,1,"span"),is(6,Q,2,1,"span"),is(7,U,2,2,"span"),is(8,Z,2,1,"span"),Hn(9,"span",9),zM(10),Vn(),sM(11,ee,2,2,"span",9,Y),Vn();}if(t&2){let e=i.$implicit,r=bM();Mb("left",e.x,"px")("top",e.y,"px"),Db("disabled",r.disabled()),ln("data-step-node",e.step.id)("aria-pressed",r.selectedId()===e.step.id),Ji(2),kb(e.step.name),Ji(2),Pb("",e.step.responsibility?.kind," \xB7 ",e.step.responsibility?.name),Ji(),ss(e.step.decision?5:-1),Ji(),ss(e.step.join?6:-1),Ji(),ss(e.step.status?7:-1),Ji(),ss(e.step.routeDecision?8:-1),Ji(2),Dp("Depends on: ",e.step.dependsOn?.join(", ")||"none"),Ji(),aM(e.step.decision?.routes??eA(15,H));}}function ne(t){let i=new Map,e=new Map(t.map(n=>[n.id,n]));function r(n,l=new Set){if(i.has(n))return i.get(n)??0;if(l.has(n))return 0;l.add(n);let d=(e.get(n)?.dependsOn??[]).filter(u=>e.has(u)),f=d.length?1+Math.max(...d.map(u=>r(u,new Set(l)))):0;return i.set(n,f),f}let _=new Map,c=t.map(n=>{let l=r(n.id),d=_.get(l)??0;return _.set(l,d+1),{step:n,x:l*360+16,y:d*180+16}}),G=new Map(c.map(n=>[n.step.id,n])),L=c.flatMap(n=>(n.step.dependsOn??[]).flatMap(l=>{let d=G.get(l);if(!d)return [];let f=d.x+216,u=d.y+40,E=n.x,D=n.y+40,W=d.step.decision?.routes.find(R=>R.target===n.step.id);return [{label:W?`${W.name} (${d.step.decision?.mode})`:n.step.join?"join":"",x:(f+E)/2,y:(u+D)/2-8,from:l,to:n.step.id,path:`M ${f} ${u} C ${f+22} ${u}, ${E-22} ${D}, ${E} ${D}`}]}));return {nodes:c,edges:L,width:Math.max(260,...c.map(n=>n.x+240)),height:Math.max(180,...c.map(n=>n.y+164))}}var z=class t{steps=No([]);selectedId=No(null);disabled=No(false);selected=J8();layout=ls(()=>ne(this.steps()));static \u0275fac=function(e){return new(e||t)};static \u0275cmp=He({type:t,selectors:[["sf-workflow-definition-diagram"]],inputs:{steps:[1,"steps"],selectedId:[1,"selectedId"],disabled:[1,"disabled"]},outputs:{selected:"selected"},decls:10,vars:6,consts:[["role","region","aria-label","Workflow steps and dependencies","tabindex","0",1,"scroll"],[1,"diagram"],["aria-hidden","true"],["id","definition-arrow","viewBox","0 0 10 10","refX","9","refY","5","markerWidth","6","markerHeight","6","orient","auto-start-reverse"],["d","M 0 0 L 10 5 L 0 10 z"],["type","button",3,"left","top","disabled"],["marker-end","url(#definition-arrow)",1,"edge"],["text-anchor","middle","font-size","10"],["type","button",3,"click","disabled"],[1,"sr-only"]],template:function(e,r){e&1&&(Hn(0,"div",0)(1,"div",1),Tg(),Hn(2,"svg",2)(3,"defs")(4,"marker",3),$n(5,"path",4),Vn()(),sM(6,A,2,3,null,null,J),Vn(),sM(8,te,13,16,"button",5,X),Vn()()),e&2&&(Ji(),Mb("width",r.layout().width,"px")("height",r.layout().height,"px"),Ji(),ln("width",r.layout().width)("height",r.layout().height),Ji(4),aM(r.layout().edges),Ji(2),aM(r.layout().nodes));},styles:["[_nghost-%COMP%]{display:block;min-width:0}.scroll[_ngcontent-%COMP%]{min-width:0;max-width:100%;box-sizing:border-box;overflow:auto;border:1px solid var(--sf-outline);border-radius:8px}.diagram[_ngcontent-%COMP%]{position:relative}svg[_ngcontent-%COMP%]{position:absolute;inset:0;pointer-events:none;fill:var(--sf-text-secondary, currentColor)}.edge[_ngcontent-%COMP%]{fill:none;stroke:var(--sf-text-secondary, currentColor);stroke-width:2}button[_ngcontent-%COMP%]{position:absolute;width:216px;min-height:80px;padding:12px;border:1px solid var(--sf-outline);border-radius:8px;background:var(--sf-surface-2);color:inherit;cursor:pointer;text-align:left}button[aria-pressed=true][_ngcontent-%COMP%]{outline:2px solid var(--sf-primary, #9fa8ff)}button[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--sf-primary, #9fa8ff);outline-offset:3px}strong[_ngcontent-%COMP%], span[_ngcontent-%COMP%]{display:block;overflow-wrap:anywhere}strong[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}span[_ngcontent-%COMP%]{font-size:12px;margin-top:4px}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}"]})};export{z};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import {f,V as y,aY as jh,c1 as ne,aR as ni,aX as U,cO as li,aH as hi,ae as g$1,bi as k,cP as An,cF as M,cQ as wn,cR as Rn,cc as $t,a$ as Ce,cd as Ae,cS as at,cT as Lt,bN as Io,b0 as Me$1,bB as qN,bY as ai,a_ as Me$2,bc as pw,bd as v_,aW as be,aJ as jv,H as He$1,b1 as Wo,aL as Ao,d as kc,b3 as pb,h as hp,bL as Db,q as ln,K as Wt,T as Se,_ as _e,b$ as Lr,aF as pn,U as Xo,aU as fe,aK as Re$1,b2 as sn,X as Xc,cU as $S,cV as tt,cW as hR,cX as f_,aT as H,b5 as Rh,aV as Un,b6 as Ro,ch as ze$1,aS as j,c2 as Xi,cY as JN,b4 as wb,aO as yp,aP as bp,Z,cZ as eR,c_ as vR,c$ as Tt}from'./main-WXSAACUF.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends tt{_elementRef=f(fe);_focusTrapFactory=f(hR);_config;_interactivityChecker=f(f_);_ngZone=f(H);_focusMonitor=f(Rh);_renderer=f(Un);_changeDetectorRef=f(Ro);_injector=f(ne);_platform=f(ze$1);_document=f(j);_portalOutlet;_focusTrapped=new U;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=f(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Xi(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=JN(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=JN();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=JN()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=He$1({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&wb(Wo,7),t&2){let o;yp(o=bp())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&ln("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[Ao],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&pb(0,ze,0,0,"ng-template",0);},dependencies:[Wo],styles:[`.cdk-dialog-container {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
min-height: inherit;
|
|
6
|
+
max-height: inherit;
|
|
7
|
+
}
|
|
8
|
+
`],encapsulation:2,changeDetection:1})}return i})(),T=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new U;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!v_(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},He=new y("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=f(ne);return ()=>wn(i)}}),Ge=new y("DialogData"),We=new y("DefaultDialogConfig");function Qe(i){let a=Z(i),e=new be;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var X=(()=>{class i{_injector=f(ne);_defaultOptions=f(We,{optional:true});_parentDialog=f(i,{optional:true,skipSelf:true});_overlayContainer=f(Rn);_idGenerator=f(jh);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;_ariaHiddenElements=new Map;_scrollStrategy=f(He);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=li(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0)));open(e,t){let n=this._defaultOptions||new g;t=g$1(g$1({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=$t(this._injector,o),r=new T(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let H=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(Ce(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(H);}):this._hideNonDialogContentFromAssistiveTechnology(H);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){$(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Ae({positionStrategy:e.positionStrategy||An().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g,useValue:n},{provide:T,useValue:t},{provide:at,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=K;let d=new Lt(r,n.viewContainerRef,ne.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof Io){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=g$1(g$1({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new Me$1(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new Lt(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:Ge,useValue:e.data},{provide:T,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(qN,null,{optional:true}))&&r.push({provide:qN,useValue:Qe(e.direction)}),ne.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let o=t[n];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac})}return i})();function $(i,a){let e=i.length;for(;e--;)a(i[e]);}var Fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Se({type:i});static \u0275inj=_e({providers:[X],imports:[Lr,pn,vR,pn]})}return i})();function qe(i,a){}var z=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},J="mdc-dialog--open",Le="mdc-dialog--opening",Re="mdc-dialog--closing",Ue=150,Ye=75,Ze=(()=>{class i extends K{_animationStateChanged=new be;_animationsEnabled=!ni();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Me(this._config.enterAnimationDuration)??Ue:0;_exitAnimationDuration=this._animationsEnabled?Me(this._config.exitAnimationDuration)??Ye:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Le,J)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(J),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(J),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Re)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Le,Re);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return (e||(e=jv(i)))(n||i)}})();static \u0275cmp=He$1({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(Db("id",n._config.id),ln("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Wt("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[Ao],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(kc(0,"div",0)(1,"div",1),pb(2,qe,0,0,"ng-template",2),hp()());},dependencies:[Wo],styles:[`.mat-mdc-dialog-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: block;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
max-height: inherit;
|
|
14
|
+
min-height: inherit;
|
|
15
|
+
min-width: inherit;
|
|
16
|
+
max-width: inherit;
|
|
17
|
+
outline: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cdk-overlay-pane.mat-mdc-dialog-panel {
|
|
21
|
+
max-width: var(--mat-dialog-container-max-width, 560px);
|
|
22
|
+
min-width: var(--mat-dialog-container-min-width, 280px);
|
|
23
|
+
}
|
|
24
|
+
@media (max-width: 599px) {
|
|
25
|
+
.cdk-overlay-pane.mat-mdc-dialog-panel {
|
|
26
|
+
max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mat-mdc-dialog-inner-container {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-around;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
height: 100%;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transition: opacity linear var(--mat-dialog-transition-duration, 0ms);
|
|
39
|
+
max-height: inherit;
|
|
40
|
+
min-height: inherit;
|
|
41
|
+
min-width: inherit;
|
|
42
|
+
max-width: inherit;
|
|
43
|
+
}
|
|
44
|
+
.mdc-dialog--closing .mat-mdc-dialog-inner-container {
|
|
45
|
+
transition: opacity 75ms linear;
|
|
46
|
+
transform: none;
|
|
47
|
+
}
|
|
48
|
+
.mdc-dialog--open .mat-mdc-dialog-inner-container {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
._mat-animation-noopable .mat-mdc-dialog-inner-container {
|
|
52
|
+
transition: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.mat-mdc-dialog-surface {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
flex-grow: 0;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
position: relative;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
outline: 0;
|
|
66
|
+
transform: scale(0.8);
|
|
67
|
+
transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);
|
|
68
|
+
max-height: inherit;
|
|
69
|
+
min-height: inherit;
|
|
70
|
+
min-width: inherit;
|
|
71
|
+
max-width: inherit;
|
|
72
|
+
box-shadow: var(--mat-dialog-container-elevation-shadow, none);
|
|
73
|
+
border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));
|
|
74
|
+
background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white));
|
|
75
|
+
}
|
|
76
|
+
[dir=rtl] .mat-mdc-dialog-surface {
|
|
77
|
+
text-align: right;
|
|
78
|
+
}
|
|
79
|
+
.mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface {
|
|
80
|
+
transform: none;
|
|
81
|
+
}
|
|
82
|
+
._mat-animation-noopable .mat-mdc-dialog-surface {
|
|
83
|
+
transition: none;
|
|
84
|
+
}
|
|
85
|
+
.mat-mdc-dialog-surface::before {
|
|
86
|
+
position: absolute;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 0;
|
|
92
|
+
border: 2px solid transparent;
|
|
93
|
+
border-radius: inherit;
|
|
94
|
+
content: "";
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mat-mdc-dialog-title {
|
|
99
|
+
display: block;
|
|
100
|
+
position: relative;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
margin: 0 0 1px;
|
|
104
|
+
padding: var(--mat-dialog-headline-padding, 6px 24px 13px);
|
|
105
|
+
}
|
|
106
|
+
.mat-mdc-dialog-title::before {
|
|
107
|
+
display: inline-block;
|
|
108
|
+
width: 0;
|
|
109
|
+
height: 40px;
|
|
110
|
+
content: "";
|
|
111
|
+
vertical-align: 0;
|
|
112
|
+
}
|
|
113
|
+
[dir=rtl] .mat-mdc-dialog-title {
|
|
114
|
+
text-align: right;
|
|
115
|
+
}
|
|
116
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-title {
|
|
117
|
+
color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
|
|
118
|
+
font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));
|
|
119
|
+
line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));
|
|
120
|
+
font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));
|
|
121
|
+
font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));
|
|
122
|
+
letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mat-mdc-dialog-content {
|
|
126
|
+
display: block;
|
|
127
|
+
flex-grow: 1;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
margin: 0;
|
|
130
|
+
overflow: auto;
|
|
131
|
+
max-height: 65vh;
|
|
132
|
+
}
|
|
133
|
+
.mat-mdc-dialog-content > :first-child {
|
|
134
|
+
margin-top: 0;
|
|
135
|
+
}
|
|
136
|
+
.mat-mdc-dialog-content > :last-child {
|
|
137
|
+
margin-bottom: 0;
|
|
138
|
+
}
|
|
139
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
140
|
+
color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
|
|
141
|
+
font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));
|
|
142
|
+
line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));
|
|
143
|
+
font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));
|
|
144
|
+
font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));
|
|
145
|
+
letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em));
|
|
146
|
+
}
|
|
147
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
148
|
+
padding: var(--mat-dialog-content-padding, 20px 24px);
|
|
149
|
+
}
|
|
150
|
+
.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
|
|
151
|
+
padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0);
|
|
152
|
+
}
|
|
153
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content {
|
|
154
|
+
padding-top: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.mat-mdc-dialog-actions {
|
|
158
|
+
display: flex;
|
|
159
|
+
position: relative;
|
|
160
|
+
flex-shrink: 0;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
align-items: center;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
min-height: 52px;
|
|
165
|
+
margin: 0;
|
|
166
|
+
border-top: 1px solid transparent;
|
|
167
|
+
padding: var(--mat-dialog-actions-padding, 16px 24px);
|
|
168
|
+
justify-content: var(--mat-dialog-actions-alignment, flex-end);
|
|
169
|
+
}
|
|
170
|
+
@media (forced-colors: active) {
|
|
171
|
+
.mat-mdc-dialog-actions {
|
|
172
|
+
border-top-color: CanvasText;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] {
|
|
176
|
+
justify-content: start;
|
|
177
|
+
}
|
|
178
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] {
|
|
179
|
+
justify-content: center;
|
|
180
|
+
}
|
|
181
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] {
|
|
182
|
+
justify-content: flex-end;
|
|
183
|
+
}
|
|
184
|
+
.mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
|
|
185
|
+
.mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
|
|
186
|
+
margin-left: 8px;
|
|
187
|
+
}
|
|
188
|
+
[dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
|
|
189
|
+
[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
|
|
190
|
+
margin-left: 0;
|
|
191
|
+
margin-right: 8px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.mat-mdc-dialog-component-host {
|
|
195
|
+
display: contents;
|
|
196
|
+
}
|
|
197
|
+
`],encapsulation:2,changeDetection:1})}return i})(),Pe="--mat-dialog-transition-duration";function Me(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?eR(i.substring(0,i.length-2)):i.endsWith("s")?eR(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var V=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(V||{}),O=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new ai(1);_beforeClosed=new ai(1);_result;_closeFallbackTimeout;_state=V.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Me$2(n=>n.state==="opened"),Ce(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Me$2(n=>n.state==="closed"),Ce(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),pw(this.backdropClick(),this.keydownEvents().pipe(Me$2(n=>n.keyCode===27&&!this.disableClose&&!v_(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Be(this,n.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Me$2(t=>t.state==="closing"),Ce(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=V.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=V.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function Be(i,a,e){return i._closeInteractionType=a,i.close(e)}var $e=new y("MatMdcDialogData"),Ke=new y("mat-mdc-dialog-default-options"),Xe=new y("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=f(ne);return ()=>wn(i)}}),ee=(()=>{class i{_defaultOptions=f(Ke,{optional:true});_scrollStrategy=f(Xe);_parentDialog=f(i,{optional:true,skipSelf:true});_idGenerator=f(jh);_injector=f(ne);_dialog=f(X);_animationsDisabled=ni();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;dialogConfigClass=z;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=li(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0)));constructor(){this._dialogRefConstructor=O,this._dialogContainerType=Ze,this._dialogDataToken=$e;}open(e,t){let n;t=g$1(g$1({},this._defaultOptions||new z),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,k(g$1({},t),{positionStrategy:An(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||i)};static \u0275prov=M({token:i,factory:i.\u0275fac})}return i})(),jt=(()=>{class i{dialogRef=f(O,{optional:true});_elementRef=f(fe);_dialog=f(ee);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=Ne(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let t=e._matDialogClose;t&&(this.dialogResult=t.currentValue);}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&Be(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=Re$1({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Xc("click",function(l){return n._onButtonClick(l)}),t&2&&ln("aria-label",n.ariaLabel||null)("type",n.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[sn]})}return i})(),je=(()=>{class i{_dialogRef=f(O,{optional:true});_elementRef=f(fe);_dialog=f(ee);ngOnInit(){this._dialogRef||(this._dialogRef=Ne(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=Re$1({type:i})}return i})(),Nt=(()=>{class i extends je{id=f(jh).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=jv(i)))(n||i)}})();static \u0275dir=Re$1({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&Db("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Ao]})}return i})(),Vt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=Re$1({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[$S([Tt])]})}return i})(),zt=(()=>{class i extends je{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=jv(i)))(n||i)}})();static \u0275dir=Re$1({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&Wt("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end");},inputs:{align:"align"},features:[Ao]})}return i})();function Ne(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var Ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Se({type:i});static \u0275inj=_e({providers:[ee],imports:[Fe,Lr,pn,Xo]})}return i})();export{$e as $,Ht as H,Nt as N,Vt as V,ee as e,jt as j,zt as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {T as Se,_ as _e,U as Xo,f,aU as fe,V as y,d1 as _R,H as He,d2 as u0,bg as Pp,b3 as pb,d as kc,br as Tg,Q as Qc,h as hp,bI as Sg,c7 as bb,bG as wM,J as Ji,q as ln,bh as Mb,v as vb,a5 as cs,K as Wt,b4 as wb,aO as yp,aP as bp,u as bM,d3 as uA}from'./main-WXSAACUF.js';var I=["determinateSpinner"];function z(i,V){if(i&1&&(Tg(),kc(0,"svg",11),Qc(1,"circle",12),hp()),i&2){let e=bM();ln("viewBox",e._viewBox()),Ji(),Mb("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ln("r",e._circleRadius());}}var D=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:O})}),O=100,N=10,Z=(()=>{class i{_elementRef=f(fe);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=f(D),n=_R(),r=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=r.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&r.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=O;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-N)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=He({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&wb(I,5),n&2){let s;yp(s=bp())&&(r._determinateCircle=s.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(ln("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),cs("mat-"+r.color),Mb("width",r.diameter,"px")("height",r.diameter,"px")("--mat-progress-spinner-size",r.diameter+"px")("--mat-progress-spinner-active-indicator-width",r.diameter+"px"),Wt("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",Pp],diameter:[2,"diameter","diameter",Pp],strokeWidth:[2,"strokeWidth","strokeWidth",Pp]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&(pb(0,z,2,8,"ng-template",null,0,uA),kc(2,"div",2,1),Tg(),kc(4,"svg",3),Qc(5,"circle",4),hp()(),Sg(),kc(6,"div",5)(7,"div",6)(8,"div",7),bb(9,8),hp(),kc(10,"div",9),bb(11,8),hp(),kc(12,"div",10),bb(13,8),hp()()()),n&2){let s=wM(1);Ji(4),ln("viewBox",r._viewBox()),Ji(),Mb("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),ln("r",r._circleRadius()),Ji(4),vb("ngTemplateOutlet",s),Ji(2),vb("ngTemplateOutlet",s),Ji(2),vb("ngTemplateOutlet",s);}},dependencies:[u0],styles:[`.mat-mdc-progress-spinner {
|
|
2
2
|
--mat-progress-spinner-animation-multiplier: 1;
|
|
3
3
|
display: block;
|
|
4
4
|
overflow: hidden;
|
|
@@ -173,4 +173,4 @@ import {Q as he,R as ce,T as eo,h,aU as ue,X as y,cs as kM,x as xe,ct as sS,bg a
|
|
|
173
173
|
transform: rotate(-265deg);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
`],encapsulation:2})}return i})();var J=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=
|
|
176
|
+
`],encapsulation:2})}return i})();var J=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Se({type:i});static \u0275inj=_e({imports:[Xo]})}return i})();export{J,Z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {B as Be$1,P as Pe$1}from'./chunk-7p-1xXH7.js';import {f,G as Gt,aa as Hr,ab as Be,Z,p as ls,ac as lo,ad as Ct,k as k_,y as cc,ae as g,H as He,af as ho,ag as oo,ah as Fi,ai as io,aj as no,ak as Qn,al as mr,am as gr,a as Gu,x as x9,A as A9,P as Pt,I as It,M as Me$1,S as Se,an as _i,L as L4,F as F4,W as Wr,b as Hr$1,c as ce,d as kc,z as zM,h as hp,i as is,X as Xc,s as sM,ao as YT,Q as Qc,J as Ji,j as ss,v as vb,ap as QT,g as aM,l as kb,a8 as Dp,aq as Hb,ar as P_,as as bl,at as Pe$2,au as T$1,av as Dn,aw as B9,ax as Ys,ay as le,az as x,u as bM,aA as Fb}from'./main-WXSAACUF.js';import {T,U}from'./chunk-yLJXs6w-.js';import {g as g$1}from'./chunk-B--QEE-T.js';var E=class t{api=f(P_);definitions=Z([]);namespaces=Z([]);loading=Z(false);definitionsError=Z(null);namespacesError=Z(null);submitting=Z(false);submissionError=Z(null);loadOptions(){this.loading.set(true),this.definitionsError.set(null),this.namespacesError.set(null),bl({definitions:this.api.getWorkflowDefinitions().pipe(Pe$2(e=>(this.definitionsError.set(e),T$1([])))),namespaces:this.api.getNamespaces().pipe(Pe$2(e=>(this.namespacesError.set(e),T$1([]))))}).pipe(Dn(()=>this.loading.set(false))).subscribe(({definitions:e,namespaces:o})=>{this.definitions.set(g$1(e).filter(n=>!!n.workflowType&&!!n.version&&/^[0-9a-f]{64}$/.test(n.definitionHash??""))),this.namespaces.set(B9(o));});}launch(e){return this.submitting.set(true),this.submissionError.set(null),this.api.createWorkflowRun(e,Ys()).pipe(le({error:o=>this.submissionError.set(o)}),Dn(()=>this.submitting.set(false)))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=x({token:t,factory:t.\u0275fac})};function we(t,e){return this.definitionKey(e)}var ke=(t,e)=>e.id;function Ne(t,e){t&1&&(kc(0,"div",4)(1,"mat-icon",23),zM(2,"check_circle"),hp(),kc(3,"span"),zM(4),hp()()),t&2&&(Ji(4),kb(e));}function Le(t,e){t&1&&(kc(0,"div",5)(1,"mat-icon",23),zM(2,"error"),hp(),kc(3,"span"),zM(4),hp()()),t&2&&(Ji(4),kb(e));}function Te(t,e){t&1&&(kc(0,"div",6)(1,"mat-icon",23),zM(2,"warning"),hp(),kc(3,"span"),zM(4),hp()()),t&2&&(Ji(4),kb(e));}function Pe(t,e){t&1&&(kc(0,"div",7)(1,"mat-icon",23),zM(2,"error"),hp(),kc(3,"span"),zM(4),hp()()),t&2&&(Ji(4),kb(e));}function Ie(t,e){if(t&1&&(kc(0,"mat-option",11),zM(1),hp()),t&2){let o=e.$implicit,n=bM();vb("value",n.definitionKey(o)),Ji(),Fb("",o.workflowType,"@",o.version," \xB7 ",o.definitionHash?.slice(0,12));}}function Oe(t,e){t&1&&(kc(0,"mat-error"),zM(1,"Workflow definition is required."),hp());}function Fe(t,e){if(t&1&&(kc(0,"mat-option",11),zM(1),hp()),t&2){let o=e.$implicit;vb("value",o.id),Ji(),kb(o.name);}}function Re(t,e){t&1&&(kc(0,"mat-error"),zM(1,"An accessible namespace is required."),hp());}function De(t,e){t&1&&(kc(0,"mat-hint"),zM(1),hp()),t&2&&(Ji(),Dp("Namespace id: ",e.id));}function qe(t,e){t&1&&(kc(0,"mat-hint",13),zM(1,"Loading namespaces\u2026"),hp());}function Ae(t,e){t&1&&(kc(0,"mat-hint",14),zM(1,"No AgentOS namespace is available."),hp());}function We(t,e){t&1&&(kc(0,"mat-error"),zM(1,"The objective must not exceed 4,000 characters."),hp());}function Ke(t){let e=t?.code??"UNKNOWN_ERROR",o=t?.message?.trim();return o?`${o} (${e})`:`Launch failed (${e}).`}var Me=class t{launchState=f(E);store=f(Gt);router=f(Hr);destroyRef=f(Be);definitions=this.launchState.definitions;namespaces=this.launchState.namespaces;submitting=this.launchState.submitting;successMessage=Z(null);errorMessage=Z(null);definitionsLoading=this.launchState.loading;definitionsError=ls(()=>this.launchState.definitionsError()?.message??null);launchTargetsLoading=this.launchState.loading;launchTargetsError=ls(()=>this.launchState.namespacesError()?.message??null);form=f(lo).group({definitionKey:["",Ct.required],namespaceId:["",Ct.required],title:["",Ct.maxLength(200)],ticket:["",Ct.maxLength(64)],initialRequest:["",Ct.maxLength(4e3)]});selectedNamespaceId=T(this.form.controls.namespaceId.valueChanges,{initialValue:this.form.controls.namespaceId.value});selectedNamespace=ls(()=>this.namespaces().find(e=>e.id===this.selectedNamespaceId())??null);constructor(){f(k_).crumbs.set([{label:"Workstreams",link:"/workstreams"},{label:"Launch a run"}]),this.launchState.loadOptions(),cc(()=>{let e=this.definitions();e.length===1&&!this.form.controls.definitionKey.value&&this.form.controls.definitionKey.setValue(this.definitionKey(e[0]));let o=this.namespaces();o.length===1&&!this.form.controls.namespaceId.value&&this.form.controls.namespaceId.setValue(o[0]?.id??"");});}definitionKey(e){return JSON.stringify([e?.workflowType,e?.version,e?.definitionHash])}onSubmit(){if(this.submitting())return;if(this.form.invalid){this.form.markAllAsTouched();return}let{definitionKey:e,namespaceId:o,title:n,ticket:y,initialRequest:_}=this.form.getRawValue(),f=this.definitions().find(u=>this.definitionKey(u)===e);if(this.definitionsLoading()||this.definitionsError()||!f){this.errorMessage.set("Select an available workflow version before launching.");return}if(this.launchTargetsLoading()||this.launchTargetsError()||!this.namespaces().some(u=>u.id===o)){this.errorMessage.set("Select an available namespace before launching.");return}let v=n.trim(),C=y.trim(),O=_.trim();this.submitting.set(true),this.successMessage.set(null),this.errorMessage.set(null),this.launchState.launch(g(g(g({namespaceId:o,workflowType:f.workflowType,definitionVersion:f.version,definitionHash:f.definitionHash},v?{title:v}:{}),O?{initialRequest:O}:{}),C?{parameters:{ticket:C}}:{})).pipe(U(this.destroyRef)).subscribe({next:u=>{let F=u?.submissionId;this.successMessage.set(F?`Launch accepted (id: ${F})`:"Launch accepted."),this.store.selectNamespace(o),this.store.refresh(),this.router.navigate(["/sessions",u.workflowId],{queryParams:{namespaceId:o}});},error:u=>{this.errorMessage.set(Ke(u));}});}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=He({type:t,selectors:[["sf-launch-page"]],features:[Hb([E])],decls:55,vars:13,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["role","status","data-launch-success","true",1,"banner","banner--success"],["role","alert","data-launch-error","true",1,"banner","banner--error"],["role","alert","data-launch-definitions-error","true",1,"banner","banner--warn"],["role","alert","data-launch-targets-error","true",1,"banner","banner--error"],["novalidate","",1,"sf-panel","launch-form",3,"ngSubmit","formGroup"],["appearance","outline",1,"field"],["formControlName","definitionKey","data-launch-workflow-type","true"],[3,"value"],["formControlName","namespaceId","data-launch-namespace","true"],["data-launch-targets-loading","true"],["data-launch-targets-empty","true"],["appearance","outline",1,"field","field--wide"],["matInput","","formControlName","title","maxlength","200","placeholder","Readable run title","data-launch-title","true"],["matInput","","formControlName","ticket","placeholder","ABC-123","data-launch-ticket","true",1,"sf-mono"],["matInput","","id","launch-initial-request","formControlName","initialRequest","aria-describedby","launch-initial-request-help","rows","5","maxlength","4000","data-launch-initial-request","true"],["id","launch-initial-request-help"],[1,"form-actions"],["mat-flat-button","","type","submit","data-launch-submit","true",1,"sf-primary",3,"disabled"],["mat-stroked-button","","routerLink","/workstreams",1,"sf-secondary"],["aria-hidden","true"]],template:function(o,n){if(o&1&&(kc(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),zM(4,"Launch a run"),hp(),kc(5,"p",3),zM(6," Creates and durably submits a real workflow. Factory assigns identity and execution context. "),hp()()(),is(7,Ne,5,1,"div",4),is(8,Le,5,1,"div",5),is(9,Te,5,1,"div",6),is(10,Pe,5,1,"div",7),kc(11,"form",8),Xc("ngSubmit",function(){return n.onSubmit()}),kc(12,"mat-form-field",9)(13,"mat-label"),zM(14,"Workflow definition"),hp(),kc(15,"mat-select",10),sM(16,Ie,2,4,"mat-option",11,we,true),hp(),YT(),is(18,Oe,2,0,"mat-error"),kc(19,"mat-hint"),zM(20),hp()(),kc(21,"mat-form-field",9)(22,"mat-label"),zM(23,"AgentOS namespace"),hp(),kc(24,"mat-select",12),sM(25,Fe,2,2,"mat-option",11,ke),hp(),YT(),is(27,Re,2,0,"mat-error"),is(28,De,2,1,"mat-hint")(29,qe,2,0,"mat-hint",13)(30,Ae,2,0,"mat-hint",14),hp(),kc(31,"mat-form-field",15)(32,"mat-label"),zM(33,"Title (optional)"),hp(),Qc(34,"input",16),YT(),kc(35,"mat-hint"),zM(36,"Factory generates a readable title if omitted."),hp()(),kc(37,"mat-form-field",9)(38,"mat-label"),zM(39,"Jira ticket (optional)"),hp(),Qc(40,"input",17),YT(),hp(),kc(41,"mat-form-field",15)(42,"mat-label"),zM(43,"What would you like to do? (optional)"),hp(),Qc(44,"textarea",18),YT(),is(45,We,2,0,"mat-error"),kc(46,"mat-hint",19),zM(47," Describe your objective, even briefly. The agent will ask for any clarifications needed. "),hp()(),kc(48,"div",20)(49,"button",21)(50,"mat-icon"),zM(51),hp(),zM(52),hp(),kc(53,"a",22),zM(54,"Cancel"),hp()()()()),o&2){let y,_,f,v,C;Ji(7),ss((y=n.successMessage())?7:-1,y),Ji(),ss((_=n.errorMessage())?8:-1,_),Ji(),ss((f=n.definitionsError())?9:-1,f),Ji(),ss((v=n.launchTargetsError())?10:-1,v),Ji(),vb("formGroup",n.form),Ji(4),QT(),Ji(),aM(n.definitions()),Ji(2),ss(n.form.controls.definitionKey.hasError("required")?18:-1),Ji(2),kb(n.definitionsLoading()?"Loading definitions\u2026":n.definitions().length?"Choose an exact version. No automatic latest selection.":"No workflow version is available."),Ji(4),QT(),Ji(),aM(n.namespaces()),Ji(2),ss(n.form.controls.namespaceId.hasError("required")?27:-1),Ji(),ss((C=n.selectedNamespace())?28:n.launchTargetsLoading()?29:!n.launchTargetsError()&&n.namespaces().length===0?30:-1,C),Ji(6),QT(),Ji(6),QT(),Ji(4),QT(),Ji(),ss(n.form.controls.initialRequest.hasError("maxlength")?45:-1),Ji(4),vb("disabled",n.submitting()||n.definitionsLoading()||!!n.definitionsError()||n.definitions().length===0||n.form.invalid||n.launchTargetsLoading()||!!n.launchTargetsError()||n.namespaces().length===0),Ji(2),kb(n.submitting()?"hourglass_top":"play_arrow"),Ji(),Dp(" ",n.submitting()?"Launching\u2026":"Launch run"," ");}},dependencies:[ho,oo,Fi,io,no,Qn,mr,gr,Gu,x9,A9,Pt,It,Me$1,Se,_i,L4,F4,Be$1,Pe$1,Wr,Hr$1,ce],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;max-width:900px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.launch-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:24px}.field[_ngcontent-%COMP%]{width:100%}.field--wide[_ngcontent-%COMP%]{grid-column:1/-1}.form-actions[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;gap:10px;padding-top:8px}.banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:10px;border:1px solid;font-size:13.5px;font-weight:600}.banner[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px}.banner--success[_ngcontent-%COMP%]{color:#6ee79a;border-color:#22583a;background:#0e1f16}.banner--error[_ngcontent-%COMP%]{color:#f58f8f;border-color:#6b2a2e;background:#1f1114}.banner--warn[_ngcontent-%COMP%]{color:var(--sf-tertiary);border-color:#5a4818;background:#1d180b}@media(max-width:720px){.launch-form[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}"]})};export{Me as LaunchPageComponent,Ke as formatLaunchError};
|