@skill-map/cli 0.18.0 → 0.20.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 +9 -10
- package/dist/cli.js +11062 -7069
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.js +1 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +424 -148
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +776 -119
- package/dist/kernel/index.js +424 -148
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +125 -15
- package/dist/ui/chunk-2W62S3FU.js +2638 -0
- package/dist/ui/chunk-C7QWBAYP.js +247 -0
- package/dist/ui/chunk-DLT5AP43.js +237 -0
- package/dist/ui/chunk-HJSRMZTK.js +450 -0
- package/dist/ui/chunk-HOBQ4G4O.js +125 -0
- package/dist/ui/chunk-IBUV6OG2.js +1 -0
- package/dist/ui/chunk-LQTUSDHD.js +124 -0
- package/dist/ui/chunk-QICH7GU2.js +5 -0
- package/dist/ui/chunk-UJRROL5X.js +1 -0
- package/dist/ui/chunk-VLNLJAUB.js +61 -0
- package/dist/ui/chunk-W3JLG7BI.js +965 -0
- package/dist/ui/index.html +10 -2
- package/dist/ui/main-QHE47BCM.js +1 -0
- package/dist/ui/{styles-CBPFNGXA.css → styles-VJ5Q6D2X.css} +1 -1
- package/migrations/001_initial.sql +125 -15
- 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
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import{e as ye,l as ve}from"./chunk-QICH7GU2.js";import{$a as oe,Aa as p,Fc as z,Gb as P,Gc as h,Hc as fe,I as re,Ib as ie,Ic as j,J as B,Ja as m,K as E,Lc as R,M,Ma as K,Mc as X,Na as U,O as u,Pb as pe,S as C,Sa as i,Sc as g,T,Ta as f,Tc as be,U as q,Ua as b,Va as L,Wa as ee,Wb as ge,Xa as te,Xc as he,Ya as ne,Z as Q,Za as H,Zc as _e,_a as G,ac as k,bc as ue,cb as $,db as le,ea as _,eb as w,gb as r,hb as Z,hc as J,ib as Y,ja as ce,jb as N,kc as W,lb as y,mb as v,mc as V,na as c,nc as O,qb as se,tb as de,ub as d,va as I,vb as A,wa as S,wb as F,wc as me,ya as D,za as x}from"./chunk-W3JLG7BI.js";var Ce=`
|
|
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 Fe=["icon"],Pe=["*"];function Ve(t,l){if(t&1&&L(0,"span",4),t&2){let e=r(2);d(e.cx("icon")),i("ngClass",e.icon)("pBind",e.ptm("icon"))}}function Oe(t,l){if(t&1&&(H(0),p(1,Ve,1,4,"span",3),G()),t&2){let e=r();c(),i("ngIf",e.icon)}}function ze(t,l){}function je(t,l){t&1&&p(0,ze,0,0,"ng-template")}function Re(t,l){if(t&1&&(f(0,"span",2),p(1,je,1,0,null,5),b()),t&2){let e=r();d(e.cx("icon")),i("pBind",e.ptm("icon")),c(),i("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}var Qe={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"},Te=(()=>{class t extends j{name="tag";style=Ce;classes=Qe;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ie=new M("TAG_INSTANCE"),He=(()=>{class t extends X{componentName="Tag";$pcTag=u(Ie,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;severity;value;icon;rounded;iconTemplate;templates;_iconTemplate;_componentStyle=u(Te);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(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-tag"]],contentQueries:function(o,n,a){if(o&1&&N(a,Fe,4)(a,z,4),o&2){let s;y(s=v())&&(n.iconTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:3,hostBindings:function(o,n){o&2&&(m("data-p",n.dataP),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",k]},features:[P([Te,{provide:Ie,useExisting:t},{provide:R,useExisting:t}]),D([g]),x],ngContentSelectors:Pe,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(o,n){o&1&&(Z(),Y(0),p(1,Oe,2,1,"ng-container",0)(2,Re,2,4,"span",1),f(3,"span",2),A(4),b()),o&2&&(c(),i("ngIf",!n.iconTemplate&&!n._iconTemplate),c(),i("ngIf",n.iconTemplate||n._iconTemplate),c(),d(n.cx("label")),i("pBind",n.ptm("label")),c(),F(n.value))},dependencies:[O,J,W,V,h,g],encapsulation:2,changeDetection:0})}return t})(),At=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[He,h,h]})}return t})();var we=`
|
|
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 Ge=["icon"],$e=["content"],Me=t=>({$implicit:t});function qe(t,l){t&1&&oe(0)}function Ke(t,l){if(t&1&&L(0,"span",0),t&2){let e=r(3);d(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),i("pBind",e.ptm("icon"))}}function Ue(t,l){if(t&1&&K(0,Ke,1,3,"span",2),t&2){let e=r(2);U(e.onIcon||e.offIcon?0:-1)}}function Ze(t,l){t&1&&oe(0)}function Ye(t,l){if(t&1&&p(0,Ze,1,0,"ng-container",1),t&2){let e=r(2);i("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",ie(2,Me,e.checked))}}function Je(t,l){if(t&1&&(K(0,Ue,1,1)(1,Ye,1,4,"ng-container"),f(2,"span",0),A(3),b()),t&2){let e=r();U(e.iconTemplate?1:0),c(2),d(e.cx("label")),i("pBind",e.ptm("label")),c(),F(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var We=`
|
|
174
|
+
${we}
|
|
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
|
+
`,Xe={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"},Be=(()=>{class t extends j{name="togglebutton";style=We;classes=Xe;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ee=new M("TOGGLEBUTTON_INSTANCE"),et={provide:ye,useExisting:re(()=>Se),multi:!0},Se=(()=>{class t extends ve{componentName="ToggleButton";$pcToggleButton=u(Ee,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{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=ge(void 0,{transform:k});onChange=new Q;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=u(Be);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,o){this.checked=e,o(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(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(o,n,a){if(o&1&&N(a,Ge,4)(a,$e,4)(a,z,4),o&2){let s;y(s=v())&&(n.iconTemplate=s.first),y(s=v())&&(n.contentTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:11,hostBindings:function(o,n){o&1&&w("keydown",function(s){return n.onKeyDown(s)})("click",function(s){return n.toggle(s)}),o&2&&(m("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-pressed",n.checked?"true":"false")("role","button")("tabindex",n.tabindex!==void 0?n.tabindex:n.$disabled()?-1:0)("data-pc-name","togglebutton")("data-p-checked",n.active)("data-p-disabled",n.$disabled())("data-p",n.dataP),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",ue],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",k],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[P([et,Be,{provide:Ee,useExisting:t},{provide:R,useExisting:t}]),D([_e,g]),x],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(o,n){o&1&&(f(0,"span",0),p(1,qe,1,0,"ng-container",1),K(2,Je,4,5),b()),o&2&&(d(n.cx("content")),i("pBind",n.ptm("content")),m("data-p",n.dataP),c(),i("ngTemplateOutlet",n.contentTemplate||n._contentTemplate)("ngTemplateOutletContext",ie(7,Me,n.checked)),c(),U(n.contentTemplate?-1:2))},dependencies:[O,V,h,be,g],encapsulation:2,changeDetection:0})}return t})(),on=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[Se,h,h]})}return t})();var tt=["data-p-icon","times-circle"],De=(()=>{class t extends he{pathId;onInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["","data-p-icon","times-circle"]],features:[x],attrs:tt,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(o,n){o&1&&(q(),ee(0,"g"),ne(1,"path",0),te(),ee(2,"defs")(3,"clipPath",1),ne(4,"rect",2),te()()),o&2&&(m("clip-path",n.pathId),c(3),le("id",n.pathId))},encapsulation:2})}return t})();var Le=`
|
|
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 nt=["removeicon"],ot=["*"];function it(t,l){if(t&1){let e=$();f(0,"img",4),w("error",function(n){C(e);let a=r();return T(a.imageError(n))}),b()}if(t&2){let e=r();d(e.cx("image")),i("pBind",e.ptm("image"))("src",e.image,ce)("alt",e.alt)}}function at(t,l){if(t&1&&L(0,"span",6),t&2){let e=r(2);d(e.icon),i("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function rt(t,l){if(t&1&&p(0,at,1,4,"span",5),t&2){let e=r();i("ngIf",e.icon)}}function ct(t,l){if(t&1&&(f(0,"div",7),A(1),b()),t&2){let e=r();d(e.cx("label")),i("pBind",e.ptm("label")),c(),F(e.label)}}function lt(t,l){if(t&1){let e=$();f(0,"span",11),w("click",function(n){C(e);let a=r(3);return T(a.close(n))})("keydown",function(n){C(e);let a=r(3);return T(a.onKeydown(n))}),b()}if(t&2){let e=r(3);d(e.removeIcon),i("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function st(t,l){if(t&1){let e=$();q(),f(0,"svg",12),w("click",function(n){C(e);let a=r(3);return T(a.close(n))})("keydown",function(n){C(e);let a=r(3);return T(a.onKeydown(n))}),b()}if(t&2){let e=r(3);d(e.cx("removeIcon")),i("pBind",e.ptm("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function dt(t,l){if(t&1&&(H(0),p(1,lt,1,6,"span",9)(2,st,1,5,"svg",10),G()),t&2){let e=r(2);c(),i("ngIf",e.removeIcon),c(),i("ngIf",!e.removeIcon)}}function pt(t,l){}function gt(t,l){t&1&&p(0,pt,0,0,"ng-template")}function ut(t,l){if(t&1){let e=$();f(0,"span",13),w("click",function(n){C(e);let a=r(2);return T(a.close(n))})("keydown",function(n){C(e);let a=r(2);return T(a.onKeydown(n))}),p(1,gt,1,0,null,14),b()}if(t&2){let e=r(2);d(e.cx("removeIcon")),i("pBind",e.ptm("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),c(),i("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function mt(t,l){if(t&1&&(H(0),p(1,dt,3,2,"ng-container",3)(2,ut,2,6,"span",8),G()),t&2){let e=r();c(),i("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),c(),i("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var ft={root:({instance:t})=>({display:!t.visible&&"none"})},bt={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"},Ne=(()=>{class t extends j{name="chip";style=Le;classes=bt;inlineStyles=ft;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ae=new M("CHIP_INSTANCE"),ht=(()=>{class t extends X{componentName="Chip";$pcChip=u(Ae,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new Q;onImageError=new Q;visible=!0;get removeAriaLabel(){return this.config.getTranslation(fe.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([o,n])=>this[`_${o}`]!==n&&(this[`_${o}`]=n))}_chipProps;_componentStyle=u(Ne);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:o}=e.chipProps;o.label!==void 0&&(this.label=o.label),o.icon!==void 0&&(this.icon=o.icon),o.image!==void 0&&(this.image=o.image),o.alt!==void 0&&(this.alt=o.alt),o.styleClass!==void 0&&(this.styleClass=o.styleClass),o.removable!==void 0&&(this.removable=o.removable),o.removeIcon!==void 0&&(this.removeIcon=o.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(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-chip"]],contentQueries:function(o,n,a){if(o&1&&N(a,nt,4)(a,z,4),o&2){let s;y(s=v())&&(n.removeIconTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:6,hostBindings:function(o,n){o&2&&(m("aria-label",n.label)("data-p",n.dataP),de(n.sx("root")),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",k],removable:[2,"removable","removable",k],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[P([Ne,{provide:Ae,useExisting:t},{provide:R,useExisting:t}]),D([g]),x],ngContentSelectors:ot,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(o,n){if(o&1&&(Z(),Y(0),p(1,it,1,5,"img",1)(2,rt,1,1,"ng-template",null,0,pe)(4,ct,2,4,"div",2)(5,mt,3,2,"ng-container",3)),o&2){let a=se(3);c(),i("ngIf",n.image)("ngIfElse",a),c(3),i("ngIf",n.label),c(),i("ngIf",n.removable)}},dependencies:[O,J,W,V,De,h,g],encapsulation:2,changeDetection:0})}return t})(),En=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[ht,h,h]})}return t})();export{Se as a,on as b,He as c,At as d,ht as e,En as f};
|