@skill-map/cli 0.18.0 → 0.19.0
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/README.md +4 -0
- package/dist/cli/tutorial/sm-tutorial.md +6 -7
- package/dist/cli.js +7011 -4047
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +277 -42
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +566 -68
- package/dist/kernel/index.js +277 -42
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +122 -12
- package/dist/ui/chunk-7CAK6MVK.js +2638 -0
- package/dist/ui/chunk-BORRASJB.js +247 -0
- package/dist/ui/chunk-CZSS4D6J.js +454 -0
- package/dist/ui/chunk-EQD7AYYJ.js +227 -0
- package/dist/ui/chunk-ETTRVTFV.js +1 -0
- package/dist/ui/chunk-LFIE4SCX.js +965 -0
- package/dist/ui/chunk-OKO3QOH6.js +1 -0
- package/dist/ui/chunk-PMIMYHBM.js +61 -0
- package/dist/ui/chunk-UHFGCO24.js +1 -0
- package/dist/ui/chunk-VHIPW3TH.js +1 -0
- package/dist/ui/chunk-VWAUXWQX.js +237 -0
- package/dist/ui/index.html +10 -2
- package/dist/ui/main-BSYMJKTL.js +1 -0
- package/dist/ui/{styles-CBPFNGXA.css → styles-UAABA7VK.css} +1 -1
- package/migrations/001_initial.sql +122 -12
- package/package.json +2 -2
- package/dist/migrations/002_sidecar_columns.sql +0 -53
- package/dist/migrations/003_drop_node_author.sql +0 -20
- package/dist/migrations/004_sidecar_root_json.sql +0 -23
- package/dist/migrations/005_node_favorites.sql +0 -20
- package/dist/ui/chunk-JKJGGXCS.js +0 -1025
- package/dist/ui/chunk-SX2A3WBX.js +0 -247
- package/dist/ui/chunk-TWZHUCAT.js +0 -237
- package/dist/ui/chunk-WTAL2RK4.js +0 -1
- package/dist/ui/chunk-Z3UJHHTC.js +0 -3091
- package/dist/ui/main-AAYGMON4.js +0 -1
- package/migrations/002_sidecar_columns.sql +0 -53
- package/migrations/003_drop_node_author.sql +0 -20
- package/migrations/004_sidecar_root_json.sql +0 -23
- package/migrations/005_node_favorites.sql +0 -20
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import{$ as he,A as O,C as He,D as u,Da as ze,E as Me,Fa as qe,Ga as Qe,H as Ue,Ha as d,Ia as W,Ja as z,Jb as Je,K as c,N as Ae,O as _,Q as B,Qb as K,R as x,Rb as V,S as M,Sb as et,T as H,Ta as T,Tb as Z,U as h,V as p,Va as xe,W as $e,Y as v,Yb as Y,Zb as X,aa as pe,ab as Ke,b as Re,bb as j,cb as P,dc as f,e as je,ea as s,eb as G,ec as tt,fa as b,g as Ge,ga as C,h as Le,ha as U,ia as we,ic as nt,ja as Ee,jb as Ze,k as ne,ka as Ie,kb as g,kc as it,l as R,la as ie,lb as Ye,m as I,ma as oe,n as y,na as Fe,nb as Se,ob as me,p as m,qa as re,qb as _e,r as k,ra as We,s as N,sa as S,sb as q,t as ue,ta as l,tb as Q,ua as fe,va as ge,wa as $,x as F,ya as A,za as w}from"./chunk-JKJGGXCS.js";import{T as Xe}from"./chunk-3R7E3HPC.js";import{a as D,b as E}from"./chunk-Q7L6LLAK.js";var ot=`
|
|
2
|
-
.p-tag {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
background: dt('tag.primary.background');
|
|
7
|
-
color: dt('tag.primary.color');
|
|
8
|
-
font-size: dt('tag.font.size');
|
|
9
|
-
font-weight: dt('tag.font.weight');
|
|
10
|
-
padding: dt('tag.padding');
|
|
11
|
-
border-radius: dt('tag.border.radius');
|
|
12
|
-
gap: dt('tag.gap');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-tag-icon {
|
|
16
|
-
font-size: dt('tag.icon.size');
|
|
17
|
-
width: dt('tag.icon.size');
|
|
18
|
-
height: dt('tag.icon.size');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-tag-rounded {
|
|
22
|
-
border-radius: dt('tag.rounded.border.radius');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.p-tag-success {
|
|
26
|
-
background: dt('tag.success.background');
|
|
27
|
-
color: dt('tag.success.color');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-tag-info {
|
|
31
|
-
background: dt('tag.info.background');
|
|
32
|
-
color: dt('tag.info.color');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-tag-warn {
|
|
36
|
-
background: dt('tag.warn.background');
|
|
37
|
-
color: dt('tag.warn.color');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.p-tag-danger {
|
|
41
|
-
background: dt('tag.danger.background');
|
|
42
|
-
color: dt('tag.danger.color');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.p-tag-secondary {
|
|
46
|
-
background: dt('tag.secondary.background');
|
|
47
|
-
color: dt('tag.secondary.color');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.p-tag-contrast {
|
|
51
|
-
background: dt('tag.contrast.background');
|
|
52
|
-
color: dt('tag.contrast.color');
|
|
53
|
-
}
|
|
54
|
-
`;var jt=["icon"],Gt=["*"];function Lt(t,n){if(t&1&&U(0,"span",4),t&2){let e=l(2);d(e.cx("icon")),s("ngClass",e.icon)("pBind",e.ptm("icon"))}}function Ht(t,n){if(t&1&&(ie(0),p(1,Lt,1,4,"span",3),oe()),t&2){let e=l();c(),s("ngIf",e.icon)}}function Ut(t,n){}function $t(t,n){t&1&&p(0,Ut,0,0,"ng-template")}function Wt(t,n){if(t&1&&(b(0,"span",2),p(1,$t,1,0,null,5),C()),t&2){let e=l();d(e.cx("icon")),s("pBind",e.ptm("icon")),c(),s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}var zt={root:({instance:t})=>["p-tag p-component",{"p-tag-info":t.severity==="info","p-tag-success":t.severity==="success","p-tag-warn":t.severity==="warn","p-tag-danger":t.severity==="danger","p-tag-secondary":t.severity==="secondary","p-tag-contrast":t.severity==="contrast","p-tag-rounded":t.rounded}],icon:"p-tag-icon",label:"p-tag-label"},rt=(()=>{class t extends Z{name="tag";style=ot;classes=zt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var st=new y("TAG_INSTANCE"),qt=(()=>{class t extends X{componentName="Tag";$pcTag=m(st,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(f,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;severity;value;icon;rounded;iconTemplate;templates;_iconTemplate;_componentStyle=m(rt);onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="icon"&&(this._iconTemplate=e.template)})}get dataP(){return this.cn({rounded:this.rounded,[this.severity]:this.severity})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["p-tag"]],contentQueries:function(i,o,r){if(i&1&&$(r,jt,4)(r,K,4),i&2){let a;A(a=w())&&(o.iconTemplate=a.first),A(a=w())&&(o.templates=a)}},hostVars:3,hostBindings:function(i,o){i&2&&(v("data-p",o.dataP),d(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",g]},features:[T([rt,{provide:st,useExisting:t},{provide:Y,useExisting:t}]),H([f]),h],ngContentSelectors:Gt,decls:5,vars:6,consts:[[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"pBind"],[3,"class","ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],[4,"ngTemplateOutlet"]],template:function(i,o){i&1&&(fe(),ge(0),p(1,Ht,2,1,"ng-container",0)(2,Wt,2,4,"span",1),b(3,"span",2),W(4),C()),i&2&&(c(),s("ngIf",!o.iconTemplate&&!o._iconTemplate),c(),s("ngIf",o.iconTemplate||o._iconTemplate),c(),d(o.cx("label")),s("pBind",o.ptm("label")),c(),z(o.value))},dependencies:[Q,me,_e,q,V,f],encapsulation:2,changeDetection:0})}return t})(),fi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=x({type:t});static \u0275inj=I({imports:[qt,V,V]})}return t})();var mt=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(_(Ae),_(Me))};static \u0275dir=M({type:t})}return t})(),Qt=(()=>{class t extends mt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275dir=M({type:t,features:[h]})}return t})(),Ve=new y("");var Kt={provide:Ve,useExisting:ne(()=>_t),multi:!0};function Zt(){let t=Se()?Se().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Yt=new y(""),_t=(()=>{class t extends mt{_compositionMode;_composing=!1;constructor(e,i,o){super(e,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Zt())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(_(Ae),_(Me),_(Yt,8))};static \u0275dir=M({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&S("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[T([Kt]),h]})}return t})();var Xt=new y(""),Jt=new y("");function vt(t){return t!=null}function yt(t){return $e(t)?je(t):t}function bt(t){let n={};return t.forEach(e=>{n=e!=null?D(D({},n),e):n}),Object.keys(n).length===0?null:n}function Ct(t,n){return n.map(e=>e(t))}function en(t){return!t.validate}function Vt(t){return t.map(n=>en(n)?n:e=>n.validate(e))}function tn(t){if(!t)return null;let n=t.filter(vt);return n.length==0?null:function(e){return bt(Ct(e,n))}}function Dt(t){return t!=null?tn(Vt(t)):null}function nn(t){if(!t)return null;let n=t.filter(vt);return n.length==0?null:function(e){let i=Ct(e,n).map(yt);return Le(i).pipe(Ge(bt))}}function Mt(t){return t!=null?nn(Vt(t)):null}function ct(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function on(t){return t._rawValidators}function rn(t){return t._rawAsyncValidators}function Te(t){return t?Array.isArray(t)?t:[t]:[]}function ye(t,n){return Array.isArray(t)?t.includes(n):t===n}function dt(t,n){let e=Te(n);return Te(t).forEach(o=>{ye(e,o)||e.push(o)}),e}function ut(t,n){return Te(n).filter(e=>!ye(t,e))}var be=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Dt(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},ke=class extends be{name;get formDirective(){return null}get path(){return null}},de=class extends be{_parent=null;name=null;valueAccessor=null},Ne=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Ri=(()=>{class t extends Ne{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(_(de,2))};static \u0275dir=M({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&qe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[h]})}return t})();var se="VALID",ve="INVALID",ee="PENDING",ae="DISABLED",L=class{},Ce=class extends L{value;source;constructor(n,e){super(),this.value=n,this.source=e}},le=class extends L{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ce=class extends L{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},te=class extends L{status;source;constructor(n,e){super(),this.status=n,this.source=e}};var Oe=class extends L{source;constructor(n){super(),this.source=n}};function sn(t){return(De(t)?t.validators:t)||null}function an(t){return Array.isArray(t)?Dt(t):t||null}function ln(t,n){return(De(n)?n.asyncValidators:t)||null}function cn(t){return Array.isArray(t)?Mt(t):t||null}function De(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Be=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return j(this.statusReactive)}set status(n){j(()=>this.statusReactive.set(n))}_status=P(()=>this.statusReactive());statusReactive=O(void 0);get valid(){return this.status===se}get invalid(){return this.status===ve}get pending(){return this.status===ee}get disabled(){return this.status===ae}get enabled(){return this.status!==ae}errors;get pristine(){return j(this.pristineReactive)}set pristine(n){j(()=>this.pristineReactive.set(n))}_pristine=P(()=>this.pristineReactive());pristineReactive=O(!0);get dirty(){return!this.pristine}get touched(){return j(this.touchedReactive)}set touched(n){j(()=>this.touchedReactive.set(n))}_touched=P(()=>this.touchedReactive());touchedReactive=O(!1);get untouched(){return!this.touched}_events=new Re;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(dt(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(dt(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ut(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ut(n,this._rawAsyncValidators))}hasValidator(n){return ye(this._rawValidators,n)}hasAsyncValidator(n){return ye(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(E(D({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ce(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),n.onlySelf||this._parent?._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new ce(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(E(D({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new le(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new le(!0,i))}markAsPending(n={}){this.status=ee;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new te(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(E(D({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ae,this.errors=null,this._forEachChild(o=>{o.disable(E(D({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ce(this.value,i)),this._events.next(new te(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(E(D({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=se,this._forEachChild(i=>{i.enable(E(D({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(E(D({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===se||this.status===ee)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ce(this.value,e)),this._events.next(new te(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(E(D({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ae:se}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=ee,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=yt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){let i=e?this.get(e):this;return i?.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new te(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?ae:this.errors?ve:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ee)?ee:this._anyControlsHaveStatus(ve)?ve:se}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,n.onlySelf||this._parent?._updatePristine(n,e),o&&this._events.next(new le(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ce(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){De(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=an(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=cn(this._rawAsyncValidators)}};var At=new y("",{factory:()=>Pe}),Pe="always";function dn(t,n){return[...n.path,t]}function un(t,n,e=Pe){pn(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),fn(t,n),mn(t,n),gn(t,n),hn(t,n)}function ht(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function hn(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function pn(t,n){let e=on(t);n.validator!==null?t.setValidators(ct(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=rn(t);n.asyncValidator!==null?t.setAsyncValidators(ct(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();ht(n._rawValidators,o),ht(n._rawAsyncValidators,o)}function fn(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&wt(t,n)})}function gn(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&wt(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function wt(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function mn(t,n){let e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function _n(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function vn(t){return Object.getPrototypeOf(t.constructor)===Qt}function yn(t,n){if(!n)return null;Array.isArray(n);let e,i,o;return n.forEach(r=>{r.constructor===_t?e=r:vn(r)?i=r:o=r}),o||i||e||null}function pt(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function ft(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var bn=class extends Be{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(sn(e),ln(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),De(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ft(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Oe(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){pt(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){pt(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){ft(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Cn={provide:de,useExisting:ne(()=>Vn)},gt=Promise.resolve(),Vn=(()=>{class t extends de{_changeDetectorRef;callSetDisabledState;control=new bn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new F;constructor(e,i,o,r,a,Rt){super(),this._changeDetectorRef=a,this.callSetDisabledState=Rt,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=yn(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),_n(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){un(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){gt.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,o=i!==0&&g(i);gt.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?dn(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(_(ke,9),_(Xt,10),_(Jt,10),_(Ve,10),_(Ze,8),_(At,8))};static \u0275dir=M({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[T([Cn]),h,He]})}return t})();var Dn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=x({type:t});static \u0275inj=I({})}return t})();var Gi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:At,useValue:e.callSetDisabledState??Pe}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=x({type:t});static \u0275inj=I({imports:[Dn]})}return t})();var Et=`
|
|
55
|
-
.p-togglebutton {
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
user-select: none;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
position: relative;
|
|
61
|
-
color: dt('togglebutton.color');
|
|
62
|
-
background: dt('togglebutton.background');
|
|
63
|
-
border: 1px solid dt('togglebutton.border.color');
|
|
64
|
-
padding: dt('togglebutton.padding');
|
|
65
|
-
font-size: 1rem;
|
|
66
|
-
font-family: inherit;
|
|
67
|
-
font-feature-settings: inherit;
|
|
68
|
-
transition:
|
|
69
|
-
background dt('togglebutton.transition.duration'),
|
|
70
|
-
color dt('togglebutton.transition.duration'),
|
|
71
|
-
border-color dt('togglebutton.transition.duration'),
|
|
72
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
73
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
74
|
-
border-radius: dt('togglebutton.border.radius');
|
|
75
|
-
outline-color: transparent;
|
|
76
|
-
font-weight: dt('togglebutton.font.weight');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-togglebutton-content {
|
|
80
|
-
display: inline-flex;
|
|
81
|
-
flex: 1 1 auto;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
gap: dt('togglebutton.gap');
|
|
85
|
-
padding: dt('togglebutton.content.padding');
|
|
86
|
-
background: transparent;
|
|
87
|
-
border-radius: dt('togglebutton.content.border.radius');
|
|
88
|
-
transition:
|
|
89
|
-
background dt('togglebutton.transition.duration'),
|
|
90
|
-
color dt('togglebutton.transition.duration'),
|
|
91
|
-
border-color dt('togglebutton.transition.duration'),
|
|
92
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
93
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
97
|
-
background: dt('togglebutton.hover.background');
|
|
98
|
-
color: dt('togglebutton.hover.color');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-togglebutton.p-togglebutton-checked {
|
|
102
|
-
background: dt('togglebutton.checked.background');
|
|
103
|
-
border-color: dt('togglebutton.checked.border.color');
|
|
104
|
-
color: dt('togglebutton.checked.color');
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.p-togglebutton-checked .p-togglebutton-content {
|
|
108
|
-
background: dt('togglebutton.content.checked.background');
|
|
109
|
-
box-shadow: dt('togglebutton.content.checked.shadow');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.p-togglebutton:focus-visible {
|
|
113
|
-
box-shadow: dt('togglebutton.focus.ring.shadow');
|
|
114
|
-
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
|
|
115
|
-
outline-offset: dt('togglebutton.focus.ring.offset');
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.p-togglebutton.p-invalid {
|
|
119
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.p-togglebutton:disabled {
|
|
123
|
-
opacity: 1;
|
|
124
|
-
cursor: default;
|
|
125
|
-
background: dt('togglebutton.disabled.background');
|
|
126
|
-
border-color: dt('togglebutton.disabled.border.color');
|
|
127
|
-
color: dt('togglebutton.disabled.color');
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-togglebutton-label,
|
|
131
|
-
.p-togglebutton-icon {
|
|
132
|
-
position: relative;
|
|
133
|
-
transition: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.p-togglebutton-icon {
|
|
137
|
-
color: dt('togglebutton.icon.color');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
141
|
-
color: dt('togglebutton.icon.hover.color');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
145
|
-
color: dt('togglebutton.icon.checked.color');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
149
|
-
color: dt('togglebutton.icon.disabled.color');
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-togglebutton-sm {
|
|
153
|
-
padding: dt('togglebutton.sm.padding');
|
|
154
|
-
font-size: dt('togglebutton.sm.font.size');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.p-togglebutton-sm .p-togglebutton-content {
|
|
158
|
-
padding: dt('togglebutton.content.sm.padding');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-togglebutton-lg {
|
|
162
|
-
padding: dt('togglebutton.lg.padding');
|
|
163
|
-
font-size: dt('togglebutton.lg.font.size');
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.p-togglebutton-lg .p-togglebutton-content {
|
|
167
|
-
padding: dt('togglebutton.content.lg.padding');
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.p-togglebutton-fluid {
|
|
171
|
-
width: 100%;
|
|
172
|
-
}
|
|
173
|
-
`;var It=(()=>{class t extends X{modelValue=O(void 0);$filled=P(()=>Xe(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275dir=M({type:t,features:[h]})}return t})();var Ft=(()=>{class t extends It{required=G(void 0,{transform:g});invalid=G(void 0,{transform:g});disabled=G(void 0,{transform:g});name=G();_disabled=O(!1);$disabled=P(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275dir=M({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[h]})}return t})();var Mn=["icon"],An=["content"],Tt=t=>({$implicit:t});function wn(t,n){t&1&&Fe(0)}function En(t,n){if(t&1&&U(0,"span",0),t&2){let e=l(3);d(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),s("pBind",e.ptm("icon"))}}function In(t,n){if(t&1&&he(0,En,1,3,"span",2),t&2){let e=l(2);pe(e.onIcon||e.offIcon?0:-1)}}function Fn(t,n){t&1&&Fe(0)}function xn(t,n){if(t&1&&p(0,Fn,1,0,"ng-container",1),t&2){let e=l(2);s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",xe(2,Tt,e.checked))}}function Sn(t,n){if(t&1&&(he(0,In,1,1)(1,xn,1,4,"ng-container"),b(2,"span",0),W(3),C()),t&2){let e=l();pe(e.iconTemplate?1:0),c(2),d(e.cx("label")),s("pBind",e.ptm("label")),c(),z(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var Tn=`
|
|
174
|
-
${Et}
|
|
175
|
-
|
|
176
|
-
/* For PrimeNG (iconPos) */
|
|
177
|
-
.p-togglebutton-icon-right {
|
|
178
|
-
order: 1;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.p-togglebutton.ng-invalid.ng-dirty {
|
|
182
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
183
|
-
}
|
|
184
|
-
`,kn={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},xt=(()=>{class t extends Z{name="togglebutton";style=Tn;classes=kn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var St=new y("TOGGLEBUTTON_INSTANCE"),Nn={provide:Ve,useExisting:ne(()=>kt),multi:!0},kt=(()=>{class t extends Ft{componentName="ToggleButton";$pcToggleButton=m(St,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(f,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=G(void 0,{transform:g});onChange=new F;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=m(xt);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,i){this.checked=e,i(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.active,invalid:this.invalid(),[this.size]:this.size})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(i,o,r){if(i&1&&$(r,Mn,4)(r,An,4)(r,K,4),i&2){let a;A(a=w())&&(o.iconTemplate=a.first),A(a=w())&&(o.contentTemplate=a.first),A(a=w())&&(o.templates=a)}},hostVars:11,hostBindings:function(i,o){i&1&&S("keydown",function(a){return o.onKeyDown(a)})("click",function(a){return o.toggle(a)}),i&2&&(v("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-pressed",o.checked?"true":"false")("role","button")("tabindex",o.tabindex!==void 0?o.tabindex:o.$disabled()?-1:0)("data-pc-name","togglebutton")("data-p-checked",o.active)("data-p-disabled",o.$disabled())("data-p",o.dataP),d(o.cn(o.cx("root"),o.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",Ye],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",g],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[T([Nn,xt,{provide:St,useExisting:t},{provide:Y,useExisting:t}]),H([it,f]),h],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(i,o){i&1&&(b(0,"span",0),p(1,wn,1,0,"ng-container",1),he(2,Sn,4,5),C()),i&2&&(d(o.cx("content")),s("pBind",o.ptm("content")),v("data-p",o.dataP),c(),s("ngTemplateOutlet",o.contentTemplate||o._contentTemplate)("ngTemplateOutletContext",xe(7,Tt,o.checked)),c(),pe(o.contentTemplate?-1:2))},dependencies:[Q,q,V,tt,f],encapsulation:2,changeDetection:0})}return t})(),yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=x({type:t});static \u0275inj=I({imports:[kt,V,V]})}return t})();var On=["data-p-icon","times-circle"],Nt=(()=>{class t extends nt{pathId;onInit(){this.pathId="url(#"+Je()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","times-circle"]],features:[h],attrs:On,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(ue(),we(0,"g"),Ie(1,"path",0),Ee(),we(2,"defs")(3,"clipPath",1),Ie(4,"rect",2),Ee()()),i&2&&(v("clip-path",o.pathId),c(3),We("id",o.pathId))},encapsulation:2})}return t})();var Ot=`
|
|
185
|
-
.p-chip {
|
|
186
|
-
display: inline-flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
background: dt('chip.background');
|
|
189
|
-
color: dt('chip.color');
|
|
190
|
-
border-radius: dt('chip.border.radius');
|
|
191
|
-
padding-block: dt('chip.padding.y');
|
|
192
|
-
padding-inline: dt('chip.padding.x');
|
|
193
|
-
gap: dt('chip.gap');
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.p-chip-icon {
|
|
197
|
-
color: dt('chip.icon.color');
|
|
198
|
-
font-size: dt('chip.icon.size');
|
|
199
|
-
width: dt('chip.icon.size');
|
|
200
|
-
height: dt('chip.icon.size');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.p-chip-image {
|
|
204
|
-
border-radius: 50%;
|
|
205
|
-
width: dt('chip.image.width');
|
|
206
|
-
height: dt('chip.image.height');
|
|
207
|
-
margin-inline-start: calc(-1 * dt('chip.padding.y'));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.p-chip:has(.p-chip-remove-icon) {
|
|
211
|
-
padding-inline-end: dt('chip.padding.y');
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.p-chip:has(.p-chip-image) {
|
|
215
|
-
padding-block-start: calc(dt('chip.padding.y') / 2);
|
|
216
|
-
padding-block-end: calc(dt('chip.padding.y') / 2);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.p-chip-remove-icon {
|
|
220
|
-
cursor: pointer;
|
|
221
|
-
font-size: dt('chip.remove.icon.size');
|
|
222
|
-
width: dt('chip.remove.icon.size');
|
|
223
|
-
height: dt('chip.remove.icon.size');
|
|
224
|
-
color: dt('chip.remove.icon.color');
|
|
225
|
-
border-radius: 50%;
|
|
226
|
-
transition:
|
|
227
|
-
outline-color dt('chip.transition.duration'),
|
|
228
|
-
box-shadow dt('chip.transition.duration');
|
|
229
|
-
outline-color: transparent;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.p-chip-remove-icon:focus-visible {
|
|
233
|
-
box-shadow: dt('chip.remove.icon.focus.ring.shadow');
|
|
234
|
-
outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
|
|
235
|
-
outline-offset: dt('chip.remove.icon.focus.ring.offset');
|
|
236
|
-
}
|
|
237
|
-
`;var Bn=["removeicon"],Pn=["*"];function Rn(t,n){if(t&1){let e=re();b(0,"img",4),S("error",function(o){k(e);let r=l();return N(r.imageError(o))}),C()}if(t&2){let e=l();d(e.cx("image")),s("pBind",e.ptm("image"))("src",e.image,Ue)("alt",e.alt)}}function jn(t,n){if(t&1&&U(0,"span",6),t&2){let e=l(2);d(e.icon),s("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function Gn(t,n){if(t&1&&p(0,jn,1,4,"span",5),t&2){let e=l();s("ngIf",e.icon)}}function Ln(t,n){if(t&1&&(b(0,"div",7),W(1),C()),t&2){let e=l();d(e.cx("label")),s("pBind",e.ptm("label")),c(),z(e.label)}}function Hn(t,n){if(t&1){let e=re();b(0,"span",11),S("click",function(o){k(e);let r=l(3);return N(r.close(o))})("keydown",function(o){k(e);let r=l(3);return N(r.onKeydown(o))}),C()}if(t&2){let e=l(3);d(e.removeIcon),s("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),v("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function Un(t,n){if(t&1){let e=re();ue(),b(0,"svg",12),S("click",function(o){k(e);let r=l(3);return N(r.close(o))})("keydown",function(o){k(e);let r=l(3);return N(r.onKeydown(o))}),C()}if(t&2){let e=l(3);d(e.cx("removeIcon")),s("pBind",e.ptm("removeIcon")),v("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function $n(t,n){if(t&1&&(ie(0),p(1,Hn,1,6,"span",9)(2,Un,1,5,"svg",10),oe()),t&2){let e=l(2);c(),s("ngIf",e.removeIcon),c(),s("ngIf",!e.removeIcon)}}function Wn(t,n){}function zn(t,n){t&1&&p(0,Wn,0,0,"ng-template")}function qn(t,n){if(t&1){let e=re();b(0,"span",13),S("click",function(o){k(e);let r=l(2);return N(r.close(o))})("keydown",function(o){k(e);let r=l(2);return N(r.onKeydown(o))}),p(1,zn,1,0,null,14),C()}if(t&2){let e=l(2);d(e.cx("removeIcon")),s("pBind",e.ptm("removeIcon")),v("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),c(),s("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function Qn(t,n){if(t&1&&(ie(0),p(1,$n,3,2,"ng-container",3)(2,qn,2,6,"span",8),oe()),t&2){let e=l();c(),s("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),c(),s("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var Kn={root:({instance:t})=>({display:!t.visible&&"none"})},Zn={root:({instance:t})=>["p-chip p-component",{"p-disabled":t.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},Bt=(()=>{class t extends Z{name="chip";style=Ot;classes=Zn;inlineStyles=Kn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Pt=new y("CHIP_INSTANCE"),Yn=(()=>{class t extends X{componentName="Chip";$pcChip=m(Pt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(f,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new F;onImageError=new F;visible=!0;get removeAriaLabel(){return this.config.getTranslation(et.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}_chipProps;_componentStyle=m(Bt);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="removeicon"?this._removeIconTemplate=e.template:this._removeIconTemplate=e.template})}onChanges(e){if(e.chipProps&&e.chipProps.currentValue){let{currentValue:i}=e.chipProps;i.label!==void 0&&(this.label=i.label),i.icon!==void 0&&(this.icon=i.icon),i.image!==void 0&&(this.image=i.image),i.alt!==void 0&&(this.alt=i.alt),i.styleClass!==void 0&&(this.styleClass=i.styleClass),i.removable!==void 0&&(this.removable=i.removable),i.removeIcon!==void 0&&(this.removeIcon=i.removeIcon)}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=u(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["p-chip"]],contentQueries:function(i,o,r){if(i&1&&$(r,Bn,4)(r,K,4),i&2){let a;A(a=w())&&(o.removeIconTemplate=a.first),A(a=w())&&(o.templates=a)}},hostVars:6,hostBindings:function(i,o){i&2&&(v("aria-label",o.label)("data-p",o.dataP),Qe(o.sx("root")),d(o.cn(o.cx("root"),o.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",g],removable:[2,"removable","removable",g],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[T([Bt,{provide:Pt,useExisting:t},{provide:Y,useExisting:t}]),H([f]),h],ngContentSelectors:Pn,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(i,o){if(i&1&&(fe(),ge(0),p(1,Rn,1,5,"img",1)(2,Gn,1,1,"ng-template",null,0,Ke)(4,Ln,2,4,"div",2)(5,Qn,3,2,"ng-container",3)),i&2){let r=ze(3);c(),s("ngIf",o.image)("ngIfElse",r),c(3),s("ngIf",o.label),c(),s("ngIf",o.removable)}},dependencies:[Q,me,_e,q,Nt,V,f],encapsulation:2,changeDetection:0})}return t})(),Uo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=x({type:t});static \u0275inj=I({imports:[Yn,V,V]})}return t})();export{Ve as a,_t as b,de as c,Ri as d,Vn as e,Gi as f,It as g,Ft as h,kt as i,yo as j,qt as k,fi as l,Yn as m,Uo as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(t){if(typeof t!="object"||t===null)return!1;let e=t;if(typeof e.type!="string"||e.type.length===0)return!1;let n=e.timestamp;return!(typeof n!="number"&&typeof n!="string"||!("data"in e))}function s(t){if(!r(t)||t.type!=="sidecar.bumped")return!1;let e=t.data;if(typeof e!="object"||e===null||typeof e.nodePath!="string"||e.nodePath.length===0)return!1;let n=e.version;return!(n!==null&&typeof n!="number"||e.status!=="fresh")}export{r as a,s as b};
|