@skill-map/cli 0.39.0 → 0.40.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/dist/cli/tutorial/sm-master/references/tour-authoring.md +0 -4
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +279 -26
- package/dist/cli.js +732 -549
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -13
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +44 -34
- package/dist/kernel/index.js +28 -13
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-VZIYRREA.js → chunk-2W6BCESO.js} +30 -29
- package/dist/ui/{chunk-NHI5UPNK.js → chunk-3FPS5OIY.js} +1 -1
- package/dist/ui/chunk-4KQGLZV2.js +123 -0
- package/dist/ui/chunk-ASCTZSBZ.js +107 -0
- package/dist/ui/chunk-GSTYLDCL.js +135 -0
- package/dist/ui/chunk-MHEKCBIR.js +317 -0
- package/dist/ui/chunk-PFA2CVPN.js +61 -0
- package/dist/ui/chunk-PURF7B6R.js +411 -0
- package/dist/ui/chunk-UFCOGNZX.js +1 -0
- package/dist/ui/chunk-WQ42JTZB.js +90 -0
- package/dist/ui/chunk-XEWWXGNE.js +1 -0
- package/dist/ui/chunk-YXFKPYK3.js +965 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-WLCA4YLM.js +3 -0
- package/package.json +2 -2
- package/dist/ui/chunk-AALYQ3RG.js +0 -965
- package/dist/ui/chunk-JECPBFFX.js +0 -135
- package/dist/ui/chunk-LGLLRAJ6.js +0 -61
- package/dist/ui/chunk-PVVKVGJ6.js +0 -500
- package/dist/ui/chunk-SKA7ZFUX.js +0 -1
- package/dist/ui/chunk-VDMXHCXR.js +0 -1
- package/dist/ui/chunk-XRDZZC5F.js +0 -123
- package/dist/ui/chunk-YPO2DTMO.js +0 -317
- package/dist/ui/chunk-ZYIKNMFV.js +0 -107
- package/dist/ui/main-TYWMNAII.js +0 -2
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import{a as we,d as Ee,e as Ne,g as Be,h as ke,i as De,m as Se,n as ze,o as Fe,p as Oe}from"./chunk-JECPBFFX.js";import{$ as R,Aa as T,Ba as I,Hb as E,I as ae,Ic as ee,J as v,Jb as xe,Jc as b,K as x,Ka as u,Kb as ye,La as pe,Lc as N,M as y,Ma as ue,Na as w,O as l,Oa as M,Oc as B,Pc as $,Qb as X,Ra as me,Sa as ge,T as q,Ta as c,Tb as J,U as K,Ua as D,V as le,Va as S,Vc as r,Wa as U,Wc as H,Xb as f,Zc as Ie,ab as P,ad as Me,cc as h,da as re,db as G,dc as _e,ea as se,fb as V,ga as m,hb as d,ib as j,jb as L,jc as Ce,ka as ce,kb as W,mb as z,mc as Te,nb as F,oa as g,oc as Y,pc as O,rb as fe,tb as he,vb as p,wa as k,wb as be,xa as _,xb as ve,ya as de,za as C}from"./chunk-AALYQ3RG.js";import{V as Z,W as Q}from"./chunk-3SI3TVER.js";import{a as ie}from"./chunk-VB56BUGO.js";var Ae=`
|
|
2
|
-
.p-message {
|
|
3
|
-
display: grid;
|
|
4
|
-
grid-template-rows: 1fr;
|
|
5
|
-
border-radius: dt('message.border.radius');
|
|
6
|
-
outline-width: dt('message.border.width');
|
|
7
|
-
outline-style: solid;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.p-message-content-wrapper {
|
|
11
|
-
min-height: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.p-message-content {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
padding: dt('message.content.padding');
|
|
18
|
-
gap: dt('message.content.gap');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-message-icon {
|
|
22
|
-
flex-shrink: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.p-message-close-button {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
flex-shrink: 0;
|
|
30
|
-
margin-inline-start: auto;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
position: relative;
|
|
33
|
-
width: dt('message.close.button.width');
|
|
34
|
-
height: dt('message.close.button.height');
|
|
35
|
-
border-radius: dt('message.close.button.border.radius');
|
|
36
|
-
background: transparent;
|
|
37
|
-
transition:
|
|
38
|
-
background dt('message.transition.duration'),
|
|
39
|
-
color dt('message.transition.duration'),
|
|
40
|
-
outline-color dt('message.transition.duration'),
|
|
41
|
-
box-shadow dt('message.transition.duration'),
|
|
42
|
-
opacity 0.3s;
|
|
43
|
-
outline-color: transparent;
|
|
44
|
-
color: inherit;
|
|
45
|
-
padding: 0;
|
|
46
|
-
border: none;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
user-select: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.p-message-close-icon {
|
|
52
|
-
font-size: dt('message.close.icon.size');
|
|
53
|
-
width: dt('message.close.icon.size');
|
|
54
|
-
height: dt('message.close.icon.size');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.p-message-close-button:focus-visible {
|
|
58
|
-
outline-width: dt('message.close.button.focus.ring.width');
|
|
59
|
-
outline-style: dt('message.close.button.focus.ring.style');
|
|
60
|
-
outline-offset: dt('message.close.button.focus.ring.offset');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-message-info {
|
|
64
|
-
background: dt('message.info.background');
|
|
65
|
-
outline-color: dt('message.info.border.color');
|
|
66
|
-
color: dt('message.info.color');
|
|
67
|
-
box-shadow: dt('message.info.shadow');
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.p-message-info .p-message-close-button:focus-visible {
|
|
71
|
-
outline-color: dt('message.info.close.button.focus.ring.color');
|
|
72
|
-
box-shadow: dt('message.info.close.button.focus.ring.shadow');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.p-message-info .p-message-close-button:hover {
|
|
76
|
-
background: dt('message.info.close.button.hover.background');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-message-info.p-message-outlined {
|
|
80
|
-
color: dt('message.info.outlined.color');
|
|
81
|
-
outline-color: dt('message.info.outlined.border.color');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.p-message-info.p-message-simple {
|
|
85
|
-
color: dt('message.info.simple.color');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.p-message-success {
|
|
89
|
-
background: dt('message.success.background');
|
|
90
|
-
outline-color: dt('message.success.border.color');
|
|
91
|
-
color: dt('message.success.color');
|
|
92
|
-
box-shadow: dt('message.success.shadow');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-message-success .p-message-close-button:focus-visible {
|
|
96
|
-
outline-color: dt('message.success.close.button.focus.ring.color');
|
|
97
|
-
box-shadow: dt('message.success.close.button.focus.ring.shadow');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-message-success .p-message-close-button:hover {
|
|
101
|
-
background: dt('message.success.close.button.hover.background');
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.p-message-success.p-message-outlined {
|
|
105
|
-
color: dt('message.success.outlined.color');
|
|
106
|
-
outline-color: dt('message.success.outlined.border.color');
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.p-message-success.p-message-simple {
|
|
110
|
-
color: dt('message.success.simple.color');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-message-warn {
|
|
114
|
-
background: dt('message.warn.background');
|
|
115
|
-
outline-color: dt('message.warn.border.color');
|
|
116
|
-
color: dt('message.warn.color');
|
|
117
|
-
box-shadow: dt('message.warn.shadow');
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.p-message-warn .p-message-close-button:focus-visible {
|
|
121
|
-
outline-color: dt('message.warn.close.button.focus.ring.color');
|
|
122
|
-
box-shadow: dt('message.warn.close.button.focus.ring.shadow');
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.p-message-warn .p-message-close-button:hover {
|
|
126
|
-
background: dt('message.warn.close.button.hover.background');
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.p-message-warn.p-message-outlined {
|
|
130
|
-
color: dt('message.warn.outlined.color');
|
|
131
|
-
outline-color: dt('message.warn.outlined.border.color');
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.p-message-warn.p-message-simple {
|
|
135
|
-
color: dt('message.warn.simple.color');
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.p-message-error {
|
|
139
|
-
background: dt('message.error.background');
|
|
140
|
-
outline-color: dt('message.error.border.color');
|
|
141
|
-
color: dt('message.error.color');
|
|
142
|
-
box-shadow: dt('message.error.shadow');
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-message-error .p-message-close-button:focus-visible {
|
|
146
|
-
outline-color: dt('message.error.close.button.focus.ring.color');
|
|
147
|
-
box-shadow: dt('message.error.close.button.focus.ring.shadow');
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.p-message-error .p-message-close-button:hover {
|
|
151
|
-
background: dt('message.error.close.button.hover.background');
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.p-message-error.p-message-outlined {
|
|
155
|
-
color: dt('message.error.outlined.color');
|
|
156
|
-
outline-color: dt('message.error.outlined.border.color');
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.p-message-error.p-message-simple {
|
|
160
|
-
color: dt('message.error.simple.color');
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.p-message-secondary {
|
|
164
|
-
background: dt('message.secondary.background');
|
|
165
|
-
outline-color: dt('message.secondary.border.color');
|
|
166
|
-
color: dt('message.secondary.color');
|
|
167
|
-
box-shadow: dt('message.secondary.shadow');
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.p-message-secondary .p-message-close-button:focus-visible {
|
|
171
|
-
outline-color: dt('message.secondary.close.button.focus.ring.color');
|
|
172
|
-
box-shadow: dt('message.secondary.close.button.focus.ring.shadow');
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.p-message-secondary .p-message-close-button:hover {
|
|
176
|
-
background: dt('message.secondary.close.button.hover.background');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.p-message-secondary.p-message-outlined {
|
|
180
|
-
color: dt('message.secondary.outlined.color');
|
|
181
|
-
outline-color: dt('message.secondary.outlined.border.color');
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.p-message-secondary.p-message-simple {
|
|
185
|
-
color: dt('message.secondary.simple.color');
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.p-message-contrast {
|
|
189
|
-
background: dt('message.contrast.background');
|
|
190
|
-
outline-color: dt('message.contrast.border.color');
|
|
191
|
-
color: dt('message.contrast.color');
|
|
192
|
-
box-shadow: dt('message.contrast.shadow');
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.p-message-contrast .p-message-close-button:focus-visible {
|
|
196
|
-
outline-color: dt('message.contrast.close.button.focus.ring.color');
|
|
197
|
-
box-shadow: dt('message.contrast.close.button.focus.ring.shadow');
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.p-message-contrast .p-message-close-button:hover {
|
|
201
|
-
background: dt('message.contrast.close.button.hover.background');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.p-message-contrast.p-message-outlined {
|
|
205
|
-
color: dt('message.contrast.outlined.color');
|
|
206
|
-
outline-color: dt('message.contrast.outlined.border.color');
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.p-message-contrast.p-message-simple {
|
|
210
|
-
color: dt('message.contrast.simple.color');
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.p-message-text {
|
|
214
|
-
font-size: dt('message.text.font.size');
|
|
215
|
-
font-weight: dt('message.text.font.weight');
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.p-message-icon {
|
|
219
|
-
font-size: dt('message.icon.size');
|
|
220
|
-
width: dt('message.icon.size');
|
|
221
|
-
height: dt('message.icon.size');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.p-message-sm .p-message-content {
|
|
225
|
-
padding: dt('message.content.sm.padding');
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.p-message-sm .p-message-text {
|
|
229
|
-
font-size: dt('message.text.sm.font.size');
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.p-message-sm .p-message-icon {
|
|
233
|
-
font-size: dt('message.icon.sm.size');
|
|
234
|
-
width: dt('message.icon.sm.size');
|
|
235
|
-
height: dt('message.icon.sm.size');
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.p-message-sm .p-message-close-icon {
|
|
239
|
-
font-size: dt('message.close.icon.sm.size');
|
|
240
|
-
width: dt('message.close.icon.sm.size');
|
|
241
|
-
height: dt('message.close.icon.sm.size');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.p-message-lg .p-message-content {
|
|
245
|
-
padding: dt('message.content.lg.padding');
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.p-message-lg .p-message-text {
|
|
249
|
-
font-size: dt('message.text.lg.font.size');
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.p-message-lg .p-message-icon {
|
|
253
|
-
font-size: dt('message.icon.lg.size');
|
|
254
|
-
width: dt('message.icon.lg.size');
|
|
255
|
-
height: dt('message.icon.lg.size');
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.p-message-lg .p-message-close-icon {
|
|
259
|
-
font-size: dt('message.close.icon.lg.size');
|
|
260
|
-
width: dt('message.close.icon.lg.size');
|
|
261
|
-
height: dt('message.close.icon.lg.size');
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.p-message-outlined {
|
|
265
|
-
background: transparent;
|
|
266
|
-
outline-width: dt('message.outlined.border.width');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.p-message-simple {
|
|
270
|
-
background: transparent;
|
|
271
|
-
outline-color: transparent;
|
|
272
|
-
box-shadow: none;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.p-message-simple .p-message-content {
|
|
276
|
-
padding: dt('message.simple.content.padding');
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.p-message-outlined .p-message-close-button:hover,
|
|
280
|
-
.p-message-simple .p-message-close-button:hover {
|
|
281
|
-
background: transparent;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.p-message-enter-active {
|
|
285
|
-
animation: p-animate-message-enter 0.3s ease-out forwards;
|
|
286
|
-
overflow: hidden;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.p-message-leave-active {
|
|
290
|
-
animation: p-animate-message-leave 0.15s ease-in forwards;
|
|
291
|
-
overflow: hidden;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
@keyframes p-animate-message-enter {
|
|
295
|
-
from {
|
|
296
|
-
opacity: 0;
|
|
297
|
-
grid-template-rows: 0fr;
|
|
298
|
-
}
|
|
299
|
-
to {
|
|
300
|
-
opacity: 1;
|
|
301
|
-
grid-template-rows: 1fr;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
@keyframes p-animate-message-leave {
|
|
306
|
-
from {
|
|
307
|
-
opacity: 1;
|
|
308
|
-
grid-template-rows: 1fr;
|
|
309
|
-
}
|
|
310
|
-
to {
|
|
311
|
-
opacity: 0;
|
|
312
|
-
margin: 0;
|
|
313
|
-
grid-template-rows: 0fr;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
`;var Ye=["container"],Ze=["icon"],et=["closeicon"],tt=["*"],nt=e=>({closeCallback:e});function ot(e,a){e&1&&P(0)}function it(e,a){if(e&1&&I(0,ot,1,0,"ng-container",4),e&2){let t=d();c("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)}}function st(e,a){if(e&1&&U(0,"i",1),e&2){let t=d();p(t.cn(t.cx("icon"),t.icon)),c("pBind",t.ptm("icon")),u("data-p",t.dataP)}}function at(e,a){e&1&&P(0)}function lt(e,a){if(e&1&&I(0,at,1,0,"ng-container",5),e&2){let t=d();c("ngTemplateOutlet",t.containerTemplate||t._containerTemplate)("ngTemplateOutletContext",xe(2,nt,t.closeCallback))}}function rt(e,a){if(e&1&&U(0,"span",9),e&2){let t=d(3);c("pBind",t.ptm("text"))("ngClass",t.cx("text"))("innerHTML",t.text,ce),u("data-p",t.dataP)}}function ct(e,a){if(e&1&&(D(0,"div"),I(1,rt,1,4,"span",8),S()),e&2){let t=d(2);g(),c("ngIf",!t.escape)}}function dt(e,a){if(e&1&&(D(0,"span",7),be(1),S()),e&2){let t=d(3);c("pBind",t.ptm("text"))("ngClass",t.cx("text")),u("data-p",t.dataP),g(),ve(t.text)}}function pt(e,a){if(e&1&&I(0,dt,2,4,"span",10),e&2){let t=d(2);c("ngIf",t.escape&&t.text)}}function ut(e,a){if(e&1&&(I(0,ct,2,1,"div",6)(1,pt,1,1,"ng-template",null,0,X),D(3,"span",7),L(4),S()),e&2){let t=fe(2),n=d();c("ngIf",!n.escape)("ngIfElse",t),g(3),c("pBind",n.ptm("text"))("ngClass",n.cx("text")),u("data-p",n.dataP)}}function mt(e,a){if(e&1&&U(0,"i",7),e&2){let t=d(2);p(t.cn(t.cx("closeIcon"),t.closeIcon)),c("pBind",t.ptm("closeIcon"))("ngClass",t.closeIcon),u("data-p",t.dataP)}}function gt(e,a){e&1&&P(0)}function ft(e,a){if(e&1&&I(0,gt,1,0,"ng-container",4),e&2){let t=d(2);c("ngTemplateOutlet",t.closeIconTemplate||t._closeIconTemplate)}}function ht(e,a){if(e&1&&(le(),U(0,"svg",14)),e&2){let t=d(2);p(t.cx("closeIcon")),c("pBind",t.ptm("closeIcon")),u("data-p",t.dataP)}}function bt(e,a){if(e&1){let t=G();D(0,"button",11),V("click",function(o){q(t);let i=d();return K(i.close(o))}),w(1,mt,1,5,"i",12),w(2,ft,1,1,"ng-container"),w(3,ht,1,4,":svg:svg",13),S()}if(e&2){let t=d();p(t.cx("closeButton")),c("pBind",t.ptm("closeButton")),u("aria-label",t.closeAriaLabel)("data-p",t.dataP),g(),M(t.closeIcon?1:-1),g(),M(t.closeIconTemplate||t._closeIconTemplate?2:-1),g(),M(!t.closeIconTemplate&&!t._closeIconTemplate&&!t.closeIcon?3:-1)}}var vt={root:({instance:e})=>["p-message p-component p-message-"+e.severity,e.variant&&"p-message-"+e.variant,{"p-message-sm":e.size==="small","p-message-lg":e.size==="large"}],contentWrapper:"p-message-content-wrapper",content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"},Pe=(()=>{class e extends N{name="message";style=Ae;classes=vt;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var Ve=new y("MESSAGE_INSTANCE"),xt=(()=>{class e extends ${componentName="Message";_componentStyle=l(Pe);bindDirectiveInstance=l(r,{self:!0});$pcMessage=l(Ve,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;motionOptions=f(void 0);computedMotionOptions=J(()=>ie(ie({},this.ptm("motion")),this.motionOptions()));onClose=new R;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visible=re(!0);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;closeCallback=t=>{this.close(t)};onInit(){this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}onAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"container":this._containerTemplate=t.template;break;case"icon":this._iconTemplate=t.template;break;case"closeicon":this._closeIconTemplate=t.template;break}})}close(t){this.visible.set(!1),this.onClose.emit({originalEvent:t})}get dataP(){return this.cn({outlined:this.variant==="outlined",simple:this.variant==="simple",[this.severity]:this.severity,[this.size]:this.size})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275cmp=k({type:e,selectors:[["p-message"]],contentQueries:function(n,o,i){if(n&1&&W(i,Ye,4)(i,Ze,4)(i,et,4)(i,ee,4),n&2){let s;z(s=F())&&(o.containerTemplate=s.first),z(s=F())&&(o.iconTemplate=s.first),z(s=F())&&(o.closeIconTemplate=s.first),z(s=F())&&(o.templates=s)}},hostAttrs:["role","alert","aria-live","polite"],hostVars:5,hostBindings:function(n,o){n&1&&(pe(function(){return"p-message-enter-active"}),ue(function(){return"p-message-leave-active"})),n&2&&(u("data-p",o.dataP),p(o.cn(o.cx("root"),o.styleClass)),he("p-message-leave-active",!o.visible()))},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",h],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",h],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant",motionOptions:[1,"motionOptions"]},outputs:{onClose:"onClose"},features:[E([Pe,{provide:Ve,useExisting:e},{provide:B,useExisting:e}]),C([r]),T],ngContentSelectors:tt,decls:7,vars:12,consts:[["escapeOut",""],[3,"pBind"],[3,"pBind","class"],["pRipple","","type","button",3,"pBind","class"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"pBind","ngClass"],[3,"pBind","ngClass","innerHTML",4,"ngIf"],[3,"pBind","ngClass","innerHTML"],[3,"pBind","ngClass",4,"ngIf"],["pRipple","","type","button",3,"click","pBind"],[3,"pBind","class","ngClass"],["data-p-icon","times",3,"pBind","class"],["data-p-icon","times",3,"pBind"]],template:function(n,o){n&1&&(j(),D(0,"div",1)(1,"div",1),w(2,it,1,1,"ng-container"),w(3,st,1,4,"i",2),w(4,lt,1,4,"ng-container")(5,ut,5,5),w(6,bt,4,8,"button",3),S()()),n&2&&(p(o.cx("contentWrapper")),c("pBind",o.ptm("contentWrapper")),u("data-p",o.dataP),g(),p(o.cx("content")),c("pBind",o.ptm("content")),u("data-p",o.dataP),g(),M(o.iconTemplate||o._iconTemplate?2:-1),g(),M(o.icon?3:-1),g(),M(o.containerTemplate||o._containerTemplate?4:5),g(2),M(o.closable?6:-1))},dependencies:[O,Ce,Te,Y,we,Me,b,r,Ee],encapsulation:2,changeDetection:0})}return e})(),sn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_({type:e});static \u0275inj=x({imports:[xt,b,b]})}return e})();var je=`
|
|
317
|
-
.p-inputtext {
|
|
318
|
-
font-family: inherit;
|
|
319
|
-
font-feature-settings: inherit;
|
|
320
|
-
font-size: 1rem;
|
|
321
|
-
color: dt('inputtext.color');
|
|
322
|
-
background: dt('inputtext.background');
|
|
323
|
-
padding-block: dt('inputtext.padding.y');
|
|
324
|
-
padding-inline: dt('inputtext.padding.x');
|
|
325
|
-
border: 1px solid dt('inputtext.border.color');
|
|
326
|
-
transition:
|
|
327
|
-
background dt('inputtext.transition.duration'),
|
|
328
|
-
color dt('inputtext.transition.duration'),
|
|
329
|
-
border-color dt('inputtext.transition.duration'),
|
|
330
|
-
outline-color dt('inputtext.transition.duration'),
|
|
331
|
-
box-shadow dt('inputtext.transition.duration');
|
|
332
|
-
appearance: none;
|
|
333
|
-
border-radius: dt('inputtext.border.radius');
|
|
334
|
-
outline-color: transparent;
|
|
335
|
-
box-shadow: dt('inputtext.shadow');
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.p-inputtext:enabled:hover {
|
|
339
|
-
border-color: dt('inputtext.hover.border.color');
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.p-inputtext:enabled:focus {
|
|
343
|
-
border-color: dt('inputtext.focus.border.color');
|
|
344
|
-
box-shadow: dt('inputtext.focus.ring.shadow');
|
|
345
|
-
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
|
|
346
|
-
outline-offset: dt('inputtext.focus.ring.offset');
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.p-inputtext.p-invalid {
|
|
350
|
-
border-color: dt('inputtext.invalid.border.color');
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.p-inputtext.p-variant-filled {
|
|
354
|
-
background: dt('inputtext.filled.background');
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.p-inputtext.p-variant-filled:enabled:hover {
|
|
358
|
-
background: dt('inputtext.filled.hover.background');
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.p-inputtext.p-variant-filled:enabled:focus {
|
|
362
|
-
background: dt('inputtext.filled.focus.background');
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.p-inputtext:disabled {
|
|
366
|
-
opacity: 1;
|
|
367
|
-
background: dt('inputtext.disabled.background');
|
|
368
|
-
color: dt('inputtext.disabled.color');
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.p-inputtext::placeholder {
|
|
372
|
-
color: dt('inputtext.placeholder.color');
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.p-inputtext.p-invalid::placeholder {
|
|
376
|
-
color: dt('inputtext.invalid.placeholder.color');
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.p-inputtext-sm {
|
|
380
|
-
font-size: dt('inputtext.sm.font.size');
|
|
381
|
-
padding-block: dt('inputtext.sm.padding.y');
|
|
382
|
-
padding-inline: dt('inputtext.sm.padding.x');
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.p-inputtext-lg {
|
|
386
|
-
font-size: dt('inputtext.lg.font.size');
|
|
387
|
-
padding-block: dt('inputtext.lg.padding.y');
|
|
388
|
-
padding-inline: dt('inputtext.lg.padding.x');
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.p-inputtext-fluid {
|
|
392
|
-
width: 100%;
|
|
393
|
-
}
|
|
394
|
-
`;var yt=`
|
|
395
|
-
${je}
|
|
396
|
-
|
|
397
|
-
/* For PrimeNG */
|
|
398
|
-
.p-inputtext.ng-invalid.ng-dirty {
|
|
399
|
-
border-color: dt('inputtext.invalid.border.color');
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.p-inputtext.ng-invalid.ng-dirty::placeholder {
|
|
403
|
-
color: dt('inputtext.invalid.placeholder.color');
|
|
404
|
-
}
|
|
405
|
-
`,_t={root:({instance:e})=>["p-inputtext p-component",{"p-filled":e.$filled(),"p-inputtext-sm":e.pSize==="small","p-inputtext-lg":e.pSize==="large","p-invalid":e.invalid(),"p-variant-filled":e.$variant()==="filled","p-inputtext-fluid":e.hasFluid}]},Le=(()=>{class e extends N{name="inputtext";style=yt;classes=_t;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var $e=new y("INPUTTEXT_INSTANCE"),Cn=(()=>{class e extends ze{componentName="InputText";hostName="";ptInputText=f();pInputTextPT=f();pInputTextUnstyled=f();bindDirectiveInstance=l(r,{self:!0});$pcInputText=l($e,{optional:!0,skipSelf:!0})??void 0;ngControl=l(Be,{optional:!0,self:!0});pcFluid=l(Ie,{optional:!0,host:!0,skipSelf:!0});pSize;variant=f();fluid=f(void 0,{transform:h});invalid=f(void 0,{transform:h});$variant=J(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=l(Le);constructor(){super(),se(()=>{let t=this.ptInputText()||this.pInputTextPT();t&&this.directivePT.set(t)}),se(()=>{this.pInputTextUnstyled()&&this.directiveUnstyled.set(this.pInputTextUnstyled())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}get dataP(){return this.cn({invalid:this.invalid(),fluid:this.hasFluid,filled:this.$variant()==="filled",[this.pSize]:this.pSize})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=de({type:e,selectors:[["","pInputText",""]],hostVars:3,hostBindings:function(n,o){n&1&&V("input",function(){return o.onInput()}),n&2&&(u("data-p",o.dataP),p(o.cx("root")))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pInputTextPT:[1,"pInputTextPT"],pInputTextUnstyled:[1,"pInputTextUnstyled"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[E([Le,{provide:$e,useExisting:e},{provide:B,useExisting:e}]),C([r]),T]})}return e})(),Tn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_({type:e});static \u0275inj=x({})}return e})();var He=`
|
|
406
|
-
.p-iconfield {
|
|
407
|
-
position: relative;
|
|
408
|
-
display: block;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.p-inputicon {
|
|
412
|
-
position: absolute;
|
|
413
|
-
top: 50%;
|
|
414
|
-
margin-top: calc(-1 * (dt('icon.size') / 2));
|
|
415
|
-
color: dt('iconfield.icon.color');
|
|
416
|
-
line-height: 1;
|
|
417
|
-
z-index: 1;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.p-iconfield .p-inputicon:first-child {
|
|
421
|
-
inset-inline-start: dt('form.field.padding.x');
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.p-iconfield .p-inputicon:last-child {
|
|
425
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.p-iconfield .p-inputtext:not(:first-child),
|
|
429
|
-
.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
|
|
430
|
-
padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.p-iconfield .p-inputtext:not(:last-child) {
|
|
434
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
|
|
438
|
-
font-size: dt('form.field.sm.font.size');
|
|
439
|
-
width: dt('form.field.sm.font.size');
|
|
440
|
-
height: dt('form.field.sm.font.size');
|
|
441
|
-
margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
|
|
445
|
-
font-size: dt('form.field.lg.font.size');
|
|
446
|
-
width: dt('form.field.lg.font.size');
|
|
447
|
-
height: dt('form.field.lg.font.size');
|
|
448
|
-
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
|
|
449
|
-
}
|
|
450
|
-
`;var Ct=["*"],Tt={root:({instance:e})=>["p-iconfield",{"p-iconfield-left":e.iconPosition=="left","p-iconfield-right":e.iconPosition=="right"}]},Re=(()=>{class e extends N{name="iconfield";style=He;classes=Tt;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var Ue=new y("ICONFIELD_INSTANCE"),It=(()=>{class e extends ${componentName="IconField";hostName="";_componentStyle=l(Re);$pcIconField=l(Ue,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(r,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275cmp=k({type:e,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(n,o){n&2&&p(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[E([Re,{provide:Ue,useExisting:e},{provide:B,useExisting:e}]),C([r]),T],ngContentSelectors:Ct,decls:1,vars:0,template:function(n,o){n&1&&(j(),L(0))},dependencies:[O,H],encapsulation:2,changeDetection:0})}return e})(),Vn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_({type:e});static \u0275inj=x({imports:[It]})}return e})();var wt=["*"],Mt={root:"p-inputicon"},Qe=(()=>{class e extends N{name="inputicon";classes=Mt;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),qe=new y("INPUTICON_INSTANCE"),Et=(()=>{class e extends ${componentName="InputIcon";hostName="";styleClass;_componentStyle=l(Qe);$pcInputIcon=l(qe,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(r,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275cmp=k({type:e,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(n,o){n&2&&p(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[E([Qe,{provide:qe,useExisting:e},{provide:B,useExisting:e}]),C([r]),T],ngContentSelectors:wt,decls:1,vars:0,template:function(n,o){n&1&&(j(),L(0))},dependencies:[O,b,H],encapsulation:2,changeDetection:0})}return e})(),Yn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_({type:e});static \u0275inj=x({imports:[Et,b,b]})}return e})();var Ke=`
|
|
451
|
-
.p-selectbutton {
|
|
452
|
-
display: inline-flex;
|
|
453
|
-
user-select: none;
|
|
454
|
-
vertical-align: bottom;
|
|
455
|
-
outline-color: transparent;
|
|
456
|
-
border-radius: dt('selectbutton.border.radius');
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.p-selectbutton .p-togglebutton {
|
|
460
|
-
border-radius: 0;
|
|
461
|
-
border-width: 1px 1px 1px 0;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.p-selectbutton .p-togglebutton:focus-visible {
|
|
465
|
-
position: relative;
|
|
466
|
-
z-index: 1;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
.p-selectbutton .p-togglebutton:first-child {
|
|
470
|
-
border-inline-start-width: 1px;
|
|
471
|
-
border-start-start-radius: dt('selectbutton.border.radius');
|
|
472
|
-
border-end-start-radius: dt('selectbutton.border.radius');
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.p-selectbutton .p-togglebutton:last-child {
|
|
476
|
-
border-start-end-radius: dt('selectbutton.border.radius');
|
|
477
|
-
border-end-end-radius: dt('selectbutton.border.radius');
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.p-selectbutton.p-invalid {
|
|
481
|
-
outline: 1px solid dt('selectbutton.invalid.border.color');
|
|
482
|
-
outline-offset: 0;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.p-selectbutton-fluid {
|
|
486
|
-
width: 100%;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
.p-selectbutton-fluid .p-togglebutton {
|
|
490
|
-
flex: 1 1 0;
|
|
491
|
-
}
|
|
492
|
-
`;var Nt=["item"],Bt=(e,a)=>({$implicit:e,index:a});function kt(e,a){return this.getOptionLabel(a)}function Dt(e,a){e&1&&P(0)}function St(e,a){if(e&1&&I(0,Dt,1,0,"ng-container",3),e&2){let t=d(2),n=t.$implicit,o=t.$index,i=d();c("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",ye(2,Bt,n,o))}}function zt(e,a){e&1&&I(0,St,1,5,"ng-template",null,0,X)}function Ft(e,a){if(e&1){let t=G();D(0,"p-togglebutton",2),V("onChange",function(o){let i=q(t),s=i.$implicit,A=i.$index,oe=d();return K(oe.onOptionSelect(o,s,A))}),w(1,zt,2,0),S()}if(e&2){let t=a.$implicit,n=d();c("autofocus",n.autofocus)("styleClass",n.styleClass)("ngModel",n.isSelected(t))("onLabel",n.getOptionLabel(t))("offLabel",n.getOptionLabel(t))("disabled",n.$disabled()||n.isOptionDisabled(t))("allowEmpty",n.getAllowEmpty())("size",n.size())("fluid",n.fluid())("pt",n.ptm("pcToggleButton"))("unstyled",n.unstyled()),g(),M(n.itemTemplate||n._itemTemplate?1:-1)}}var Ot=`
|
|
493
|
-
${Ke}
|
|
494
|
-
|
|
495
|
-
/* For PrimeNG */
|
|
496
|
-
.p-selectbutton.ng-invalid.ng-dirty {
|
|
497
|
-
outline: 1px solid dt('selectbutton.invalid.border.color');
|
|
498
|
-
outline-offset: 0;
|
|
499
|
-
}
|
|
500
|
-
`,At={root:({instance:e})=>["p-selectbutton p-component",{"p-invalid":e.invalid(),"p-selectbutton-fluid":e.fluid()}]},Ge=(()=>{class e extends N{name="selectbutton";style=Ot;classes=At;static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var We=new y("SELECTBUTTON_INSTANCE"),Pt={provide:Ne,useExisting:ae(()=>Xe),multi:!0},Xe=(()=>{class e extends Fe{componentName="SelectButton";options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(t){this._unselectable=t,this.allowEmpty=!t}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=f();fluid=f(void 0,{transform:h});onOptionClick=new R;onChange=new R;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=l(Ge);$pcSelectButton=l(We,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=l(r,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(t){return this.optionLabel?Z(t,this.optionLabel):t.label!=null?t.label:t}getOptionValue(t){return this.optionValue?Z(t,this.optionValue):this.optionLabel||t.value===void 0?t:t.value}isOptionDisabled(t){return this.optionDisabled?Z(t,this.optionDisabled):t.disabled!==void 0?t.disabled:!1}onOptionSelect(t,n,o){if(this.$disabled()||this.isOptionDisabled(n))return;let i=this.isSelected(n);if(i&&this.unselectable)return;let s=this.getOptionValue(n),A;if(this.multiple)i?A=this.value.filter(oe=>!Q(oe,s,this.equalityKey||void 0)):A=this.value?[...this.value,s]:[s];else{if(i&&!this.allowEmpty)return;A=i?null:s}this.focusedIndex=o,this.value=A,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}),this.onOptionClick.emit({originalEvent:t,option:n,index:o})}changeTabIndexes(t,n){let o,i;for(let s=0;s<=this.el.nativeElement.children.length-1;s++)this.el.nativeElement.children[s].getAttribute("tabindex")==="0"&&(o={elem:this.el.nativeElement.children[s],index:s});n==="prev"?o.index===0?i=this.el.nativeElement.children.length-1:i=o.index-1:o.index===this.el.nativeElement.children.length-1?i=0:i=o.index+1,this.focusedIndex=i,this.el.nativeElement.children[i].focus()}onFocus(t,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(t){this.value=this.value.filter(n=>!Q(n,this.getOptionValue(t),this.dataKey))}isSelected(t){let n=!1,o=this.getOptionValue(t);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let i of this.value)if(Q(i,o,this.dataKey)){n=!0;break}}}else n=Q(this.getOptionValue(t),this.value,this.equalityKey||void 0);return n}templates;onAfterContentInit(){this.templates.forEach(t=>{t.getType()==="item"&&(this._itemTemplate=t.template)})}writeControlValue(t,n){this.value=t,n(this.value),this.cd.markForCheck()}get dataP(){return this.cn({invalid:this.invalid()})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(e)))(o||e)}})();static \u0275cmp=k({type:e,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(n,o,i){if(n&1&&W(i,Nt,4)(i,ee,4),n&2){let s;z(s=F())&&(o.itemTemplate=s.first),z(s=F())&&(o.templates=s)}},hostVars:5,hostBindings:function(n,o){n&2&&(u("role","group")("aria-labelledby",o.ariaLabelledBy)("data-p",o.dataP),p(o.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",h],tabindex:[2,"tabindex","tabindex",_e],multiple:[2,"multiple","multiple",h],allowEmpty:[2,"allowEmpty","allowEmpty",h],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",h],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[E([Pt,Ge,{provide:We,useExisting:e},{provide:B,useExisting:e}]),C([r]),T],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt","unstyled"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){n&1&&me(0,Ft,2,12,"p-togglebutton",1,kt,!0),n&2&&ge(o.options)},dependencies:[Oe,Se,ke,De,O,Y,b,H],encapsulation:2,changeDetection:0})}return e})(),To=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_({type:e});static \u0275inj=x({imports:[Xe,b,b]})}return e})();export{Cn as a,Tn as b,It as c,Vn as d,Et as e,Yn as f,Xe as g,To as h,xt as i,sn as j};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as o,O as i,Tb as s,Y as h,Z as p,da as r,ea as u,id as c,jd as m,nd as f}from"./chunk-AALYQ3RG.js";var j={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences. The update-check toggle is the only setting that lives outside the project; it persists at `~/.skill-map/settings.json` and follows you across projects.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}},localPreferences:{heading:"This browser",intro:"Visual preferences saved in this browser only. They won't sync to another machine."},extraTheme:{label:"Theme",description:"Pick a specialty theme. Overrides the topbar dark/light toggle while active; click that toggle to exit.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."},matrix:{label:"Matrix",description:"Cyber-green retint on the dark palette."}}}},project:{heading:"Project",intro:"These settings apply only to this project and are saved in its `.skill-map/settings.local.json` file.",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:'Folders checked only to validate links. Files here are not indexed and do not appear in the graph, they just stop "broken link" warnings when a link points to a real file outside this project.',referencePathsPlaceholder:"~/Documents/research",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescription:"Patterns that exclude files and folders from the scan, stored in `.skillmapignore` at the project root. Same syntax as `.gitignore` (one pattern per line). Comments (`# ...`) and blank lines in the file are preserved on save; the list below only shows active patterns.",ignorePatternsPlaceholder:"secrets.md",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The graph reflects how the chosen provider interprets your files. Switching clears the persisted scan so the graph regenerates under the new lens; jobs and history are kept.",activeProviderSourceConfig:"Set in settings.json.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected on disk:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the graph under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(t,e)=>t==="present"?e:`${t} \xB7 ${e}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:t=>`No plugins match "${t}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(t,e)=>e?`Show only ${t} extensions`:"Show all kinds",unsavedChangesMessage:t=>t===1?'1 unsaved change. Click "Apply" to persist it.':`${t} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the graph",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:t=>t===1?"You have 1 unsaved change.":`You have ${t} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(t,e)=>e?`Enable plugin ${t}`:`Disable plugin ${t}`,extensionToggle:(t,e)=>e?`Enable ${t}`:`Disable ${t}`,pluginRow:t=>`Plugin ${t} row`,extensionRow:t=>`Extension ${t} row`}};var v={available:"Update available",tooltip:t=>`v${t} is available. Run \`npm i -g @skill-map/cli@latest\` to update.`,a11yLabel:t=>`Update available: version ${t}`,versionLabel:t=>`v${t}`,versionTooltip:t=>`skill-map CLI v${t}`,versionA11yLabel:t=>`Running version ${t}`,fetchFailed:t=>`UpdateCheckService: fetch failed (${t})`};var b=class t{dataSource=i(c);status=r(null);isOutdated=s(()=>this.status()?.isOutdated===!0);latest=s(()=>this.status()?.latest??null);current=s(()=>this.status()?.current??null);async load(){try{let e=await this.dataSource.getUpdateStatus();this.status.set(e)}catch(e){let a=e instanceof Error?e.message:String(e);console.warn(v.fetchFailed(a))}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var S={scanFailed:t=>`scan-trigger failed: ${t}`};var T=class t{dataSource=i(c);loader=i(f);scanning=r(!1);scanError=r(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(e){let a=e instanceof m||e instanceof Error?e.message:String(e);this.scanError.set(a),console.warn(S.scanFailed(a))}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var k="skill-map.ui.theme",g="skill-map.ui.extra-theme",x="app-dark",A="dark",C="app-matrix",P="(prefers-color-scheme: dark)",I="favicon.svg",D="favicon-matrix.svg",L='link[rel="icon"][type="image/svg+xml"]',R="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",E="sm-matrix-font",w=class t{doc=i(h);destroyRef=i(p);mode=r(this.readInitialMode());extraTheme=r(this.readInitialExtra());systemPrefersDark=r(this.readSystemPref());resolved=s(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),u(()=>{let e=this.extraTheme(),n=this.resolved()==="dark"||e==="matrix",l=this.doc.documentElement;l.classList.toggle(x,n),l.classList.toggle(A,n),l.classList.toggle(C,e==="matrix"),this.applyFavicon(e==="matrix"?D:I),e==="matrix"&&this.ensureMatrixFont();try{let d=this.doc.defaultView?.localStorage;d?.setItem(k,this.mode()),e===null?d?.removeItem(g):d?.setItem(g,e)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(e)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(k);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(g);if(e==="matrix")return e}catch{}return null}readSystemPref(){try{return this.doc.defaultView?.matchMedia(P).matches??!1}catch{return!1}}ensureMatrixFont(){if(this.doc.getElementById(E))return;let e=this.doc.head;if(!e)return;let a=this.doc.createElement("link");a.id=E,a.rel="stylesheet",a.href=R,e.appendChild(a)}applyFavicon(e){let a=this.doc.querySelector(L);a&&a.getAttribute("href")!==e&&a.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let a=e.matchMedia(P),n=l=>{this.systemPrefersDark.set(l.matches)};a.addEventListener("change",n),this.destroyRef.onDestroy(()=>a.removeEventListener("change",n))}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};export{v as a,b,j as c,T as d,w as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as xe,j as T,k as w}from"./chunk-LGLLRAJ6.js";import{Ba as ue,Ib as be,J as V,Jb as Ce,Ka as g,M as le,Na as p,O as R,Oa as m,Pa as ge,Ra as x,Sa as I,T as ce,Ta as C,Tb as r,U as pe,Ua as f,Va as v,Wa as F,Xa as s,Xb as y,Ya as l,Za as $,ab as ye,da as j,db as fe,ea as me,gb as ve,hb as a,kc as he,oa as i,sb as _e,tb as E,vb as oe,wa as _,wb as d,xb as c,yb as z}from"./chunk-AALYQ3RG.js";import{d as se}from"./chunk-VB56BUGO.js";var q="sm-debug-slots",Ee="debug-slots",Se="is-debug-slots",K=class n{visible=j(!1);constructor(){this.visible.set(this.resolveInitial()),me(()=>{let e=this.visible();document.documentElement.classList.toggle(Se,e)})}toggle(){let e=!this.visible();this.visible.set(e);try{localStorage.setItem(q,e?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(Ee);if(t==="1"||t==="true"){try{localStorage.setItem(q,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(q,"0")}catch{}return!1}try{return localStorage.getItem(q)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var H=class n{registry=j({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};function k(n){return typeof n=="object"&&n!==null}function O(n,e){return k(n)&&Array.isArray(n[e])}function U(n,e){return k(n)&&typeof n[e]=="string"}var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var De=(n,e)=>e.label;function Pe(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Oe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Re(n,e){if(n&1&&(s(0,"li",4)(1,"span",5),d(2),l(),s(3,"span",6),$(4,"span",7),l(),s(5,"span",8),d(6),l()()),n&2){let t=e.$implicit,o=a(2);g("title",t.tooltip??""),i(2),c(t.label),i(2),_e("width",o.percent(t.value),"%"),i(2),c(t.value)}}function Fe(n,e){if(n&1&&(s(0,"ul",3),x(1,Re,7,5,"li",4,De),l()),n&2){let t=a();i(),I(t.entries())}}var W=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);maxValue=r(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(t,o){t&1&&(s(0,"section",0),p(1,Pe,2,1,"h5",1),p(2,Oe,2,1,"p",2)(3,Fe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-breakdown"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function $e(n,e){if(n&1&&(s(0,"span",1),d(1),l()),n&2){let t=a(),o=a();oe(o.hostClass()),i(),c(t.text)}}function Le(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();oe(o.hostClass()+" "+t.cls)}}function Ae(n,e){n&1&&p(0,$e,2,3,"span",0)(1,Le,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function Ve(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var P=class n{icon=y(void 0);hostClass=y("");resolved=r(()=>{let e=this.icon(),t=Ve(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(t,o){if(t&1&&p(0,Ae,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})};function Be(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();g("aria-label",t.ariaLabel()),i(),c(t.value())}}var L=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=r(()=>this.typed().value);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(t,o){t&1&&(f(0,"span",0)(1,"span",1),F(2,"sm-icon",2),v(),p(3,Be,2,2,"span",3),v()),t&2&&(E("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-counter"),i(2),C("icon",o.icon()),i(),m(o.value()>0?3:-1))},dependencies:[w,T,P],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%], .vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var je=(n,e)=>e.key;function ze(n,e){if(n&1&&(f(0,"h5",1),d(1),v()),n&2){let t=a();i(),c(t.label())}}function qe(n,e){if(n&1&&(f(0,"p",2),d(1),v()),n&2){let t=a();i(),c(t.emptyText())}}function Ke(n,e){if(n&1&&(f(0,"dt",4),d(1),v(),f(2,"dd"),d(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),i(),c(t.key),i(2),c(o.formatValue(t.value))}}function He(n,e){if(n&1&&(f(0,"dl",3),x(1,Ke,4,3,null,null,je),v()),n&2){let t=a();i(),I(t.entries())}}var X=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\xB7":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(t,o){t&1&&(f(0,"section",0),p(1,ze,2,1,"h5",1),p(2,qe,2,1,"p",2)(3,He,3,0,"dl",3),v()),t&2&&(g("data-testid","renderer-node-key-values"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},dependencies:[w,T],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var ie=class n{router=R(xe);open(e){this.router.navigate(["/graph"],{queryParams:{path:e}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})},Ie=new le("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>R(ie)});var Ue=(n,e)=>e.path;function We(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Xe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Ye(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.kind)}}function Ge(n,e){if(n&1){let t=fe();s(0,"li")(1,"button",4),ve("click",function(){let u=ce(t).$implicit,b=a(2);return pe(b.onOpenPath(u.path))}),p(2,Ye,2,1,"span",5),s(3,"span",6),d(4),l()()()}if(n&2){let t=e.$implicit;i(2),m(t.kind?2:-1),i(2),c(t.label??t.path)}}function Qe(n,e){if(n&1&&(s(0,"ul",3),x(1,Ge,5,2,"li",null,Ue),l()),n&2){let t=a();i(),I(t.entries())}}var Y=class n{openIntent=R(Ie);inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);onOpenPath(e){this.openIntent.open(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(t,o){t&1&&(s(0,"section",0),p(1,We,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Qe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-link-list"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var Ne=(n,e)=>e.key;function Je(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Ze(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function et(n,e){if(n&1&&(s(0,"th"),d(1),l()),n&2){let t=e.$implicit;i(),c(t.label)}}function tt(n,e){if(n&1&&$(0,"i",4),n&2){let t=a(4);g("aria-label",t.texts.boolTrue)}}function nt(n,e){if(n&1&&$(0,"i",5),n&2){let t=a(4);g("aria-label",t.texts.boolFalse)}}function ot(n,e){}function it(n,e){if(n&1&&d(0),n&2){let t=a().$implicit,o=a().$implicit,u=a(2);z(" ",u.cellText(o[t.key])," ")}}function rt(n,e){if(n&1&&(s(0,"td"),p(1,tt,1,1,"i",4)(2,nt,1,1,"i",5)(3,ot,0,0)(4,it,1,1),l()),n&2){let t,o=e.$implicit,u=a().$implicit,b=a(2);i(),m((t=b.cellKind(u[o.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function at(n,e){if(n&1&&(s(0,"tr"),x(1,rt,5,1,"td",null,Ne),l()),n&2){let t=a(2);i(),I(t.columns())}}function dt(n,e){if(n&1&&(s(0,"table",3)(1,"thead")(2,"tr"),x(3,et,2,1,"th",null,Ne),l()(),s(5,"tbody"),x(6,at,3,0,"tr",null,ge),l()()),n&2){let t=a();i(3),I(t.columns()),i(3),I(t.rows())}}var G=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?!O(e,"columns")||!O(e,"rows")?{columns:[],rows:[]}:e:{columns:[],rows:[]}});columns=r(()=>this.typed().columns??[]);rows=r(()=>this.typed().rows??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);texts=h.recordsCell;cellKind(e){return e==null?"empty":typeof e=="boolean"?e?"bool-true":"bool-false":"text"}cellText(e){return e==null?"":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(t,o){t&1&&(s(0,"section",0),p(1,Je,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,dt,8,0,"table",3),l()),t&2&&(g("data-testid","renderer-node-records"),i(),m(o.label()?1:-1),i(),m(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})};function st(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function lt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function ct(n,e){if(n&1&&(s(0,"pre",3),d(1),l()),n&2){let t=a();i(),c(t.markdown())}}var Q=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"markdown")?e:{markdown:""}:{markdown:""}});markdown=r(()=>this.typed().markdown??"");label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(t,o){t&1&&(s(0,"section",0),p(1,st,2,1,"h5",1),p(2,lt,2,1,"p",2)(3,ct,2,1,"pre",3),l()),t&2&&(g("data-testid","renderer-node-markdown"),i(),m(o.label()?1:-1),i(),m(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function pt(n,e){if(n&1&&(f(0,"span",1),d(1),v()),n&2){let t=a();i(),c(t.icon())}}var J=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=r(()=>this.typed().label||"");icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,o){t&1&&(f(0,"span",0),p(1,pt,2,1,"span",1),f(2,"span",2),d(3),v()()),t&2&&(E("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-tag"),i(),m(o.icon()?1:-1),i(2),c(o.label()))},dependencies:[w,T],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})};var mt=()=>[],Te=(n,e)=>e.label;function ut(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function gt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function yt(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function ft(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function vt(n,e){if(n&1&&(s(0,"li",4),p(1,ft,2,1,"span",5),s(2,"span",6),d(3),l()()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label)}}function _t(n,e){if(n&1&&(s(0,"ul",7),x(1,vt,4,3,"li",4,Te),l()),n&2){let t=a().$implicit;i(),I(t.children)}}function bt(n,e){if(n&1&&(s(0,"li",4),p(1,yt,2,1,"span",5),s(2,"span",6),d(3),l(),p(4,_t,3,0,"ul",7),l()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label),i(),m(t.children&&t.children.length>0?4:-1)}}function Ct(n,e){if(n&1&&(s(0,"ul",3),x(1,bt,5,4,"li",4,Te),l()),n&2){let t=a();i(),I(t.root().children??be(0,mt))}}var Z=class n{inputs=y.required();root=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"label")?e.children!==void 0&&!Array.isArray(e.children)?{label:""}:e:{label:""}:{label:""}});rootIsEmpty=r(()=>{let e=this.root();return!e.children||e.children.length===0});label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(t,o){t&1&&(s(0,"section",0),p(1,ut,2,1,"h5",1),p(2,gt,2,1,"p",2)(3,Ct,3,1,"ul",3),l()),t&2&&(g("data-testid","renderer-node-tree"),i(),m(o.label()?1:-1),i(),m(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function ht(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a();i(),c(t.formattedCount())}}var ee=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);count=r(()=>this.typed().count??null);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=r(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),p(2,ht,2,1,"span",2),v()),t&2&&(E("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-alert"),i(),C("icon",o.icon()),i(),m(o.count()!==null?2:-1))},dependencies:[w,T,P],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var te=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),v()),t&2&&(E("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),i(),C("icon",o.icon()))},dependencies:[w,T,P],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};function xt(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();i(),c(t.label())}}var ne=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=r(()=>String(this.typed().value??""));label=r(()=>this.typed().label??this.inputs().label);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),f(2,"span",2),d(3),v(),p(4,xt,2,1,"span",3),v()),t&2&&(E("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-scope-stat"),i(),C("icon",o.icon()),i(2),c(o.value()),i(),m(o.label()?4:-1))},dependencies:[w,T,P],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})};var re={"card.title.right":te,"card.subtitle.left":L,"card.footer.left":L,"card.footer.right":L,"graph.node.alert":ee,"inspector.header.badge.counter":L,"inspector.header.badge.tag":J,"inspector.body.panel.breakdown":W,"inspector.body.panel.records":G,"inspector.body.panel.tree":Z,"inspector.body.panel.key-values":X,"inspector.body.panel.link-list":Y,"inspector.body.panel.markdown":Q,"topbar.nav.start":ne};function we(n){return n in re}var A={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var It=n=>({inputs:n}),Nt=(n,e)=>e.qualifiedId;function Tt(n,e){n&1&&ye(0)}function wt(n,e){if(n&1&&(f(0,"span",1),ue(1,Tt,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);g("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),i(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",Ce(3,It,t.rendererInputs))}}function kt(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),i(),z(" ",t.overflowBadge()," ")}}function Mt(n,e){if(n&1&&(f(0,"span",0),x(1,wt,2,5,"span",1,Nt),p(3,kt,2,2,"span",2),v()),n&2){let t=a();g("data-testid","view-contributions-host-"+t.testidSuffix()),i(),I(t.visible()),i(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var ke=class n{slot=y.required();node=y(null);debugSlots=R(K);debugVisible=this.debugSlots.visible;testidSuffix=r(()=>this.slot().replaceAll(".","-"));registry=R(H);dispatched=r(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>we(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return e.slice(0,t)});overflowCount=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=r(()=>A[this.slot()].showOverflowBadge!==!1);overflowBadge=r(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return re[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=A[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let de=M,{severity:Et}=de;M=se(de,["severity"])}let D={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(D.label=u.label),u?.tooltip&&(D.tooltip=u.tooltip),u?.icon&&(D.icon=u.icon),u?.emptyText&&(D.emptyText=u.emptyText),D}sortBySlotOrder(e,t){let o=A[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),D=this.priorityFor(b);return M!==D?M-D:ae(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=Me(u),D=Me(b);return M!==D?D-M:ae(u,b)}):e.slice().sort(ae)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(t,o){t&2&&(g("data-debug-slot",o.debugVisible()?o.slot():null),E("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(t,o){t&1&&p(0,Mt,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[he,w,T],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})};function ae(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function Me(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}export{K as a,H as b,ke as c};
|