@skill-map/cli 0.59.0 → 0.60.1
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-tutorial/SKILL.md +12 -5
- package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +15 -4
- package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +3 -3
- package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +19 -15
- package/dist/cli/tutorial/sm-tutorial/references/part-daily-loop.md +4 -2
- package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +59 -44
- package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +18 -0
- package/dist/cli.js +160 -76
- package/dist/index.js +3 -3
- package/dist/kernel/index.d.ts +20 -0
- package/dist/kernel/index.js +3 -3
- package/dist/ui/chunk-4N3NRZEH.js +809 -0
- package/dist/ui/chunk-5SSKJ7AM.js +1 -0
- package/dist/ui/{chunk-WB7FKIBP.js → chunk-7VUEZZFJ.js} +1 -1
- package/dist/ui/{chunk-P2DAPRK7.js → chunk-7X3DZNG4.js} +1 -1
- package/dist/ui/chunk-AKKFFP7Y.js +1 -0
- package/dist/ui/chunk-F7TCJIHA.js +1843 -0
- package/dist/ui/{chunk-JA4Z74I3.js → chunk-FRUHVCND.js} +1 -1
- package/dist/ui/{chunk-K2MAVAHG.js → chunk-GKQA75EF.js} +1 -1
- package/dist/ui/chunk-HQ6M2HXK.js +369 -0
- package/dist/ui/chunk-JRVAI7GI.js +2 -0
- package/dist/ui/chunk-JTCIY3SL.js +742 -0
- package/dist/ui/chunk-MBBJJEUX.js +917 -0
- package/dist/ui/{chunk-LCOYSPKE.js → chunk-MGWGV4VD.js} +1 -1
- package/dist/ui/chunk-N6MUHKWR.js +105 -0
- package/dist/ui/chunk-OGXBHDY4.js +1 -0
- package/dist/ui/{chunk-KHARMPTZ.js → chunk-OVVTCPBJ.js} +1 -1
- package/dist/ui/{chunk-UBQUCSQ4.js → chunk-Q4PXVDJA.js} +1 -1
- package/dist/ui/chunk-X7FXLWQA.js +3 -0
- package/dist/ui/chunk-ZYPXVXYF.js +4 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-UJBBRSBH.js +4 -0
- package/package.json +2 -2
- package/dist/ui/chunk-BCEJCDZB.js +0 -3
- package/dist/ui/chunk-DPLNM4UD.js +0 -2
- package/dist/ui/chunk-G3ZVF4TM.js +0 -1
- package/dist/ui/chunk-H6O2DYVT.js +0 -1110
- package/dist/ui/chunk-KJZQIUZA.js +0 -917
- package/dist/ui/chunk-Q2A6FWC7.js +0 -4
- package/dist/ui/chunk-QVNZN5F7.js +0 -1843
- package/dist/ui/chunk-SXXFDP6V.js +0 -1
- package/dist/ui/chunk-YHJL5LP3.js +0 -913
- package/dist/ui/main-PHRAKC4A.js +0 -4
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
import{A as it,M as rt,O as dt,P as lt,j as ot,k as h,m as L,v as A,w as U,x as b,y as et}from"./chunk-HQ6M2HXK.js";import{i as W,j as X,k as Y,l as _}from"./chunk-MGWGV4VD.js";import{$a as v,Ab as E,Bb as z,Cb as R,Fc as a,Gc as K,Ha as l,Hb as Q,Jb as s,K as B,Kb as q,L as C,Lb as G,Mb as Z,N as P,Ob as k,P as u,Pb as x,Ub as J,Wa as T,X as H,Xa as w,Xb as g,Yb as N,Za as S,Zb as M,_a as D,ba as I,hc as F,ka as m,kb as p,kc as j,tb as r,ub as O,vb as $,vc as c,wb as y}from"./chunk-ZYPXVXYF.js";import{Q as tt,T as nt}from"./chunk-4SG4352Z.js";var at=`
|
|
2
|
+
.p-badge {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
border-radius: dt('badge.border.radius');
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: dt('badge.padding');
|
|
8
|
+
background: dt('badge.primary.background');
|
|
9
|
+
color: dt('badge.primary.color');
|
|
10
|
+
font-size: dt('badge.font.size');
|
|
11
|
+
font-weight: dt('badge.font.weight');
|
|
12
|
+
min-width: dt('badge.min.width');
|
|
13
|
+
height: dt('badge.height');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.p-badge-dot {
|
|
17
|
+
width: dt('badge.dot.size');
|
|
18
|
+
min-width: dt('badge.dot.size');
|
|
19
|
+
height: dt('badge.dot.size');
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.p-badge-circle {
|
|
25
|
+
padding: 0;
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-badge-secondary {
|
|
30
|
+
background: dt('badge.secondary.background');
|
|
31
|
+
color: dt('badge.secondary.color');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-badge-success {
|
|
35
|
+
background: dt('badge.success.background');
|
|
36
|
+
color: dt('badge.success.color');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.p-badge-info {
|
|
40
|
+
background: dt('badge.info.background');
|
|
41
|
+
color: dt('badge.info.color');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.p-badge-warn {
|
|
45
|
+
background: dt('badge.warn.background');
|
|
46
|
+
color: dt('badge.warn.color');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.p-badge-danger {
|
|
50
|
+
background: dt('badge.danger.background');
|
|
51
|
+
color: dt('badge.danger.color');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.p-badge-contrast {
|
|
55
|
+
background: dt('badge.contrast.background');
|
|
56
|
+
color: dt('badge.contrast.color');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.p-badge-sm {
|
|
60
|
+
font-size: dt('badge.sm.font.size');
|
|
61
|
+
min-width: dt('badge.sm.min.width');
|
|
62
|
+
height: dt('badge.sm.height');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.p-badge-lg {
|
|
66
|
+
font-size: dt('badge.lg.font.size');
|
|
67
|
+
min-width: dt('badge.lg.min.width');
|
|
68
|
+
height: dt('badge.lg.height');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.p-badge-xl {
|
|
72
|
+
font-size: dt('badge.xl.font.size');
|
|
73
|
+
min-width: dt('badge.xl.min.width');
|
|
74
|
+
height: dt('badge.xl.height');
|
|
75
|
+
}
|
|
76
|
+
`;var kt=`
|
|
77
|
+
${at}
|
|
78
|
+
|
|
79
|
+
/* For PrimeNG (directive)*/
|
|
80
|
+
.p-overlay-badge {
|
|
81
|
+
position: relative;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-overlay-badge > .p-badge {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
inset-inline-end: 0;
|
|
88
|
+
transform: translate(50%, -50%);
|
|
89
|
+
transform-origin: 100% 0;
|
|
90
|
+
margin: 0;
|
|
91
|
+
}
|
|
92
|
+
`,xt={root:({instance:t})=>{let e=typeof t.value=="function"?t.value():t.value,n=typeof t.size=="function"?t.size():t.size,i=typeof t.badgeSize=="function"?t.badgeSize():t.badgeSize,o=typeof t.severity=="function"?t.severity():t.severity;return["p-badge p-component",{"p-badge-circle":nt(e)&&String(e).length===1,"p-badge-dot":tt(e),"p-badge-sm":n==="small"||i==="small","p-badge-lg":n==="large"||i==="large","p-badge-xl":n==="xlarge"||i==="xlarge","p-badge-info":o==="info","p-badge-success":o==="success","p-badge-warn":o==="warn","p-badge-danger":o==="danger","p-badge-secondary":o==="secondary","p-badge-contrast":o==="contrast"}]}},st=(()=>{class t extends L{name="badge";style=kt;classes=xt;static \u0275fac=(()=>{let n;return function(o){return(n||(n=m(t)))(o||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var ut=new P("BADGE_INSTANCE");var V=(()=>{class t extends U{componentName="Badge";$pcBadge=u(ut,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(b,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass=c();badgeSize=c();size=c();severity=c();value=c();badgeDisabled=c(!1,{transform:a});_componentStyle=u(st);get dataP(){return this.cn({circle:this.value()!=null&&String(this.value()).length===1,empty:this.value()==null,disabled:this.badgeDisabled(),[this.severity()]:this.severity(),[this.size()]:this.size()})}static \u0275fac=(()=>{let n;return function(o){return(n||(n=m(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["p-badge"]],hostVars:5,hostBindings:function(i,o){i&2&&(p("data-p",o.dataP),g(o.cn(o.cx("root"),o.styleClass())),J("display",o.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[F([st,{provide:ut,useExisting:t},{provide:A,useExisting:t}]),S([b]),D],decls:1,vars:1,template:function(i,o){i&1&&N(0),i&2&&M(o.value())},dependencies:[_,h,et],encapsulation:2,changeDetection:0})}return t})(),ct=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=w({type:t});static \u0275inj=C({imports:[V,h,h]})}return t})();var bt=`
|
|
93
|
+
.p-button {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
user-select: none;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
position: relative;
|
|
101
|
+
color: dt('button.primary.color');
|
|
102
|
+
background: dt('button.primary.background');
|
|
103
|
+
border: 1px solid dt('button.primary.border.color');
|
|
104
|
+
padding: dt('button.padding.y') dt('button.padding.x');
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
font-family: inherit;
|
|
107
|
+
font-feature-settings: inherit;
|
|
108
|
+
transition:
|
|
109
|
+
background dt('button.transition.duration'),
|
|
110
|
+
color dt('button.transition.duration'),
|
|
111
|
+
border-color dt('button.transition.duration'),
|
|
112
|
+
outline-color dt('button.transition.duration'),
|
|
113
|
+
box-shadow dt('button.transition.duration');
|
|
114
|
+
border-radius: dt('button.border.radius');
|
|
115
|
+
outline-color: transparent;
|
|
116
|
+
gap: dt('button.gap');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.p-button:disabled {
|
|
120
|
+
cursor: default;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-button-icon-right {
|
|
124
|
+
order: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.p-button-icon-right:dir(rtl) {
|
|
128
|
+
order: -1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {
|
|
132
|
+
order: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.p-button-icon-bottom {
|
|
136
|
+
order: 2;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.p-button-icon-only {
|
|
140
|
+
width: dt('button.icon.only.width');
|
|
141
|
+
padding-inline-start: 0;
|
|
142
|
+
padding-inline-end: 0;
|
|
143
|
+
gap: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.p-button-icon-only.p-button-rounded {
|
|
147
|
+
border-radius: 50%;
|
|
148
|
+
height: dt('button.icon.only.width');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.p-button-icon-only .p-button-label {
|
|
152
|
+
visibility: hidden;
|
|
153
|
+
width: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.p-button-icon-only::after {
|
|
157
|
+
content: "\xA0";
|
|
158
|
+
visibility: hidden;
|
|
159
|
+
width: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.p-button-sm {
|
|
163
|
+
font-size: dt('button.sm.font.size');
|
|
164
|
+
padding: dt('button.sm.padding.y') dt('button.sm.padding.x');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.p-button-sm .p-button-icon {
|
|
168
|
+
font-size: dt('button.sm.font.size');
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.p-button-sm.p-button-icon-only {
|
|
172
|
+
width: dt('button.sm.icon.only.width');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.p-button-sm.p-button-icon-only.p-button-rounded {
|
|
176
|
+
height: dt('button.sm.icon.only.width');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.p-button-lg {
|
|
180
|
+
font-size: dt('button.lg.font.size');
|
|
181
|
+
padding: dt('button.lg.padding.y') dt('button.lg.padding.x');
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.p-button-lg .p-button-icon {
|
|
185
|
+
font-size: dt('button.lg.font.size');
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-button-lg.p-button-icon-only {
|
|
189
|
+
width: dt('button.lg.icon.only.width');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.p-button-lg.p-button-icon-only.p-button-rounded {
|
|
193
|
+
height: dt('button.lg.icon.only.width');
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.p-button-vertical {
|
|
197
|
+
flex-direction: column;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.p-button-label {
|
|
201
|
+
font-weight: dt('button.label.font.weight');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.p-button-fluid {
|
|
205
|
+
width: 100%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.p-button-fluid.p-button-icon-only {
|
|
209
|
+
width: dt('button.icon.only.width');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.p-button:not(:disabled):hover {
|
|
213
|
+
background: dt('button.primary.hover.background');
|
|
214
|
+
border: 1px solid dt('button.primary.hover.border.color');
|
|
215
|
+
color: dt('button.primary.hover.color');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.p-button:not(:disabled):active {
|
|
219
|
+
background: dt('button.primary.active.background');
|
|
220
|
+
border: 1px solid dt('button.primary.active.border.color');
|
|
221
|
+
color: dt('button.primary.active.color');
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.p-button:focus-visible {
|
|
225
|
+
box-shadow: dt('button.primary.focus.ring.shadow');
|
|
226
|
+
outline: dt('button.focus.ring.width') dt('button.focus.ring.style') dt('button.primary.focus.ring.color');
|
|
227
|
+
outline-offset: dt('button.focus.ring.offset');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.p-button .p-badge {
|
|
231
|
+
min-width: dt('button.badge.size');
|
|
232
|
+
height: dt('button.badge.size');
|
|
233
|
+
line-height: dt('button.badge.size');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.p-button-raised {
|
|
237
|
+
box-shadow: dt('button.raised.shadow');
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.p-button-rounded {
|
|
241
|
+
border-radius: dt('button.rounded.border.radius');
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.p-button-secondary {
|
|
245
|
+
background: dt('button.secondary.background');
|
|
246
|
+
border: 1px solid dt('button.secondary.border.color');
|
|
247
|
+
color: dt('button.secondary.color');
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.p-button-secondary:not(:disabled):hover {
|
|
251
|
+
background: dt('button.secondary.hover.background');
|
|
252
|
+
border: 1px solid dt('button.secondary.hover.border.color');
|
|
253
|
+
color: dt('button.secondary.hover.color');
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.p-button-secondary:not(:disabled):active {
|
|
257
|
+
background: dt('button.secondary.active.background');
|
|
258
|
+
border: 1px solid dt('button.secondary.active.border.color');
|
|
259
|
+
color: dt('button.secondary.active.color');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.p-button-secondary:focus-visible {
|
|
263
|
+
outline-color: dt('button.secondary.focus.ring.color');
|
|
264
|
+
box-shadow: dt('button.secondary.focus.ring.shadow');
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.p-button-success {
|
|
268
|
+
background: dt('button.success.background');
|
|
269
|
+
border: 1px solid dt('button.success.border.color');
|
|
270
|
+
color: dt('button.success.color');
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.p-button-success:not(:disabled):hover {
|
|
274
|
+
background: dt('button.success.hover.background');
|
|
275
|
+
border: 1px solid dt('button.success.hover.border.color');
|
|
276
|
+
color: dt('button.success.hover.color');
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.p-button-success:not(:disabled):active {
|
|
280
|
+
background: dt('button.success.active.background');
|
|
281
|
+
border: 1px solid dt('button.success.active.border.color');
|
|
282
|
+
color: dt('button.success.active.color');
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.p-button-success:focus-visible {
|
|
286
|
+
outline-color: dt('button.success.focus.ring.color');
|
|
287
|
+
box-shadow: dt('button.success.focus.ring.shadow');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.p-button-info {
|
|
291
|
+
background: dt('button.info.background');
|
|
292
|
+
border: 1px solid dt('button.info.border.color');
|
|
293
|
+
color: dt('button.info.color');
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.p-button-info:not(:disabled):hover {
|
|
297
|
+
background: dt('button.info.hover.background');
|
|
298
|
+
border: 1px solid dt('button.info.hover.border.color');
|
|
299
|
+
color: dt('button.info.hover.color');
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.p-button-info:not(:disabled):active {
|
|
303
|
+
background: dt('button.info.active.background');
|
|
304
|
+
border: 1px solid dt('button.info.active.border.color');
|
|
305
|
+
color: dt('button.info.active.color');
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.p-button-info:focus-visible {
|
|
309
|
+
outline-color: dt('button.info.focus.ring.color');
|
|
310
|
+
box-shadow: dt('button.info.focus.ring.shadow');
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.p-button-warn {
|
|
314
|
+
background: dt('button.warn.background');
|
|
315
|
+
border: 1px solid dt('button.warn.border.color');
|
|
316
|
+
color: dt('button.warn.color');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.p-button-warn:not(:disabled):hover {
|
|
320
|
+
background: dt('button.warn.hover.background');
|
|
321
|
+
border: 1px solid dt('button.warn.hover.border.color');
|
|
322
|
+
color: dt('button.warn.hover.color');
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.p-button-warn:not(:disabled):active {
|
|
326
|
+
background: dt('button.warn.active.background');
|
|
327
|
+
border: 1px solid dt('button.warn.active.border.color');
|
|
328
|
+
color: dt('button.warn.active.color');
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.p-button-warn:focus-visible {
|
|
332
|
+
outline-color: dt('button.warn.focus.ring.color');
|
|
333
|
+
box-shadow: dt('button.warn.focus.ring.shadow');
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.p-button-help {
|
|
337
|
+
background: dt('button.help.background');
|
|
338
|
+
border: 1px solid dt('button.help.border.color');
|
|
339
|
+
color: dt('button.help.color');
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.p-button-help:not(:disabled):hover {
|
|
343
|
+
background: dt('button.help.hover.background');
|
|
344
|
+
border: 1px solid dt('button.help.hover.border.color');
|
|
345
|
+
color: dt('button.help.hover.color');
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.p-button-help:not(:disabled):active {
|
|
349
|
+
background: dt('button.help.active.background');
|
|
350
|
+
border: 1px solid dt('button.help.active.border.color');
|
|
351
|
+
color: dt('button.help.active.color');
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.p-button-help:focus-visible {
|
|
355
|
+
outline-color: dt('button.help.focus.ring.color');
|
|
356
|
+
box-shadow: dt('button.help.focus.ring.shadow');
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.p-button-danger {
|
|
360
|
+
background: dt('button.danger.background');
|
|
361
|
+
border: 1px solid dt('button.danger.border.color');
|
|
362
|
+
color: dt('button.danger.color');
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.p-button-danger:not(:disabled):hover {
|
|
366
|
+
background: dt('button.danger.hover.background');
|
|
367
|
+
border: 1px solid dt('button.danger.hover.border.color');
|
|
368
|
+
color: dt('button.danger.hover.color');
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.p-button-danger:not(:disabled):active {
|
|
372
|
+
background: dt('button.danger.active.background');
|
|
373
|
+
border: 1px solid dt('button.danger.active.border.color');
|
|
374
|
+
color: dt('button.danger.active.color');
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.p-button-danger:focus-visible {
|
|
378
|
+
outline-color: dt('button.danger.focus.ring.color');
|
|
379
|
+
box-shadow: dt('button.danger.focus.ring.shadow');
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.p-button-contrast {
|
|
383
|
+
background: dt('button.contrast.background');
|
|
384
|
+
border: 1px solid dt('button.contrast.border.color');
|
|
385
|
+
color: dt('button.contrast.color');
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.p-button-contrast:not(:disabled):hover {
|
|
389
|
+
background: dt('button.contrast.hover.background');
|
|
390
|
+
border: 1px solid dt('button.contrast.hover.border.color');
|
|
391
|
+
color: dt('button.contrast.hover.color');
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.p-button-contrast:not(:disabled):active {
|
|
395
|
+
background: dt('button.contrast.active.background');
|
|
396
|
+
border: 1px solid dt('button.contrast.active.border.color');
|
|
397
|
+
color: dt('button.contrast.active.color');
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.p-button-contrast:focus-visible {
|
|
401
|
+
outline-color: dt('button.contrast.focus.ring.color');
|
|
402
|
+
box-shadow: dt('button.contrast.focus.ring.shadow');
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.p-button-outlined {
|
|
406
|
+
background: transparent;
|
|
407
|
+
border-color: dt('button.outlined.primary.border.color');
|
|
408
|
+
color: dt('button.outlined.primary.color');
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.p-button-outlined:not(:disabled):hover {
|
|
412
|
+
background: dt('button.outlined.primary.hover.background');
|
|
413
|
+
border-color: dt('button.outlined.primary.border.color');
|
|
414
|
+
color: dt('button.outlined.primary.color');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.p-button-outlined:not(:disabled):active {
|
|
418
|
+
background: dt('button.outlined.primary.active.background');
|
|
419
|
+
border-color: dt('button.outlined.primary.border.color');
|
|
420
|
+
color: dt('button.outlined.primary.color');
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.p-button-outlined.p-button-secondary {
|
|
424
|
+
border-color: dt('button.outlined.secondary.border.color');
|
|
425
|
+
color: dt('button.outlined.secondary.color');
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.p-button-outlined.p-button-secondary:not(:disabled):hover {
|
|
429
|
+
background: dt('button.outlined.secondary.hover.background');
|
|
430
|
+
border-color: dt('button.outlined.secondary.border.color');
|
|
431
|
+
color: dt('button.outlined.secondary.color');
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.p-button-outlined.p-button-secondary:not(:disabled):active {
|
|
435
|
+
background: dt('button.outlined.secondary.active.background');
|
|
436
|
+
border-color: dt('button.outlined.secondary.border.color');
|
|
437
|
+
color: dt('button.outlined.secondary.color');
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.p-button-outlined.p-button-success {
|
|
441
|
+
border-color: dt('button.outlined.success.border.color');
|
|
442
|
+
color: dt('button.outlined.success.color');
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.p-button-outlined.p-button-success:not(:disabled):hover {
|
|
446
|
+
background: dt('button.outlined.success.hover.background');
|
|
447
|
+
border-color: dt('button.outlined.success.border.color');
|
|
448
|
+
color: dt('button.outlined.success.color');
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.p-button-outlined.p-button-success:not(:disabled):active {
|
|
452
|
+
background: dt('button.outlined.success.active.background');
|
|
453
|
+
border-color: dt('button.outlined.success.border.color');
|
|
454
|
+
color: dt('button.outlined.success.color');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.p-button-outlined.p-button-info {
|
|
458
|
+
border-color: dt('button.outlined.info.border.color');
|
|
459
|
+
color: dt('button.outlined.info.color');
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.p-button-outlined.p-button-info:not(:disabled):hover {
|
|
463
|
+
background: dt('button.outlined.info.hover.background');
|
|
464
|
+
border-color: dt('button.outlined.info.border.color');
|
|
465
|
+
color: dt('button.outlined.info.color');
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.p-button-outlined.p-button-info:not(:disabled):active {
|
|
469
|
+
background: dt('button.outlined.info.active.background');
|
|
470
|
+
border-color: dt('button.outlined.info.border.color');
|
|
471
|
+
color: dt('button.outlined.info.color');
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.p-button-outlined.p-button-warn {
|
|
475
|
+
border-color: dt('button.outlined.warn.border.color');
|
|
476
|
+
color: dt('button.outlined.warn.color');
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.p-button-outlined.p-button-warn:not(:disabled):hover {
|
|
480
|
+
background: dt('button.outlined.warn.hover.background');
|
|
481
|
+
border-color: dt('button.outlined.warn.border.color');
|
|
482
|
+
color: dt('button.outlined.warn.color');
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.p-button-outlined.p-button-warn:not(:disabled):active {
|
|
486
|
+
background: dt('button.outlined.warn.active.background');
|
|
487
|
+
border-color: dt('button.outlined.warn.border.color');
|
|
488
|
+
color: dt('button.outlined.warn.color');
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.p-button-outlined.p-button-help {
|
|
492
|
+
border-color: dt('button.outlined.help.border.color');
|
|
493
|
+
color: dt('button.outlined.help.color');
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.p-button-outlined.p-button-help:not(:disabled):hover {
|
|
497
|
+
background: dt('button.outlined.help.hover.background');
|
|
498
|
+
border-color: dt('button.outlined.help.border.color');
|
|
499
|
+
color: dt('button.outlined.help.color');
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.p-button-outlined.p-button-help:not(:disabled):active {
|
|
503
|
+
background: dt('button.outlined.help.active.background');
|
|
504
|
+
border-color: dt('button.outlined.help.border.color');
|
|
505
|
+
color: dt('button.outlined.help.color');
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.p-button-outlined.p-button-danger {
|
|
509
|
+
border-color: dt('button.outlined.danger.border.color');
|
|
510
|
+
color: dt('button.outlined.danger.color');
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.p-button-outlined.p-button-danger:not(:disabled):hover {
|
|
514
|
+
background: dt('button.outlined.danger.hover.background');
|
|
515
|
+
border-color: dt('button.outlined.danger.border.color');
|
|
516
|
+
color: dt('button.outlined.danger.color');
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.p-button-outlined.p-button-danger:not(:disabled):active {
|
|
520
|
+
background: dt('button.outlined.danger.active.background');
|
|
521
|
+
border-color: dt('button.outlined.danger.border.color');
|
|
522
|
+
color: dt('button.outlined.danger.color');
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.p-button-outlined.p-button-contrast {
|
|
526
|
+
border-color: dt('button.outlined.contrast.border.color');
|
|
527
|
+
color: dt('button.outlined.contrast.color');
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.p-button-outlined.p-button-contrast:not(:disabled):hover {
|
|
531
|
+
background: dt('button.outlined.contrast.hover.background');
|
|
532
|
+
border-color: dt('button.outlined.contrast.border.color');
|
|
533
|
+
color: dt('button.outlined.contrast.color');
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.p-button-outlined.p-button-contrast:not(:disabled):active {
|
|
537
|
+
background: dt('button.outlined.contrast.active.background');
|
|
538
|
+
border-color: dt('button.outlined.contrast.border.color');
|
|
539
|
+
color: dt('button.outlined.contrast.color');
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.p-button-outlined.p-button-plain {
|
|
543
|
+
border-color: dt('button.outlined.plain.border.color');
|
|
544
|
+
color: dt('button.outlined.plain.color');
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.p-button-outlined.p-button-plain:not(:disabled):hover {
|
|
548
|
+
background: dt('button.outlined.plain.hover.background');
|
|
549
|
+
border-color: dt('button.outlined.plain.border.color');
|
|
550
|
+
color: dt('button.outlined.plain.color');
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.p-button-outlined.p-button-plain:not(:disabled):active {
|
|
554
|
+
background: dt('button.outlined.plain.active.background');
|
|
555
|
+
border-color: dt('button.outlined.plain.border.color');
|
|
556
|
+
color: dt('button.outlined.plain.color');
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.p-button-text {
|
|
560
|
+
background: transparent;
|
|
561
|
+
border-color: transparent;
|
|
562
|
+
color: dt('button.text.primary.color');
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.p-button-text:not(:disabled):hover {
|
|
566
|
+
background: dt('button.text.primary.hover.background');
|
|
567
|
+
border-color: transparent;
|
|
568
|
+
color: dt('button.text.primary.color');
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.p-button-text:not(:disabled):active {
|
|
572
|
+
background: dt('button.text.primary.active.background');
|
|
573
|
+
border-color: transparent;
|
|
574
|
+
color: dt('button.text.primary.color');
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.p-button-text.p-button-secondary {
|
|
578
|
+
background: transparent;
|
|
579
|
+
border-color: transparent;
|
|
580
|
+
color: dt('button.text.secondary.color');
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.p-button-text.p-button-secondary:not(:disabled):hover {
|
|
584
|
+
background: dt('button.text.secondary.hover.background');
|
|
585
|
+
border-color: transparent;
|
|
586
|
+
color: dt('button.text.secondary.color');
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.p-button-text.p-button-secondary:not(:disabled):active {
|
|
590
|
+
background: dt('button.text.secondary.active.background');
|
|
591
|
+
border-color: transparent;
|
|
592
|
+
color: dt('button.text.secondary.color');
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.p-button-text.p-button-success {
|
|
596
|
+
background: transparent;
|
|
597
|
+
border-color: transparent;
|
|
598
|
+
color: dt('button.text.success.color');
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.p-button-text.p-button-success:not(:disabled):hover {
|
|
602
|
+
background: dt('button.text.success.hover.background');
|
|
603
|
+
border-color: transparent;
|
|
604
|
+
color: dt('button.text.success.color');
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.p-button-text.p-button-success:not(:disabled):active {
|
|
608
|
+
background: dt('button.text.success.active.background');
|
|
609
|
+
border-color: transparent;
|
|
610
|
+
color: dt('button.text.success.color');
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.p-button-text.p-button-info {
|
|
614
|
+
background: transparent;
|
|
615
|
+
border-color: transparent;
|
|
616
|
+
color: dt('button.text.info.color');
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.p-button-text.p-button-info:not(:disabled):hover {
|
|
620
|
+
background: dt('button.text.info.hover.background');
|
|
621
|
+
border-color: transparent;
|
|
622
|
+
color: dt('button.text.info.color');
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.p-button-text.p-button-info:not(:disabled):active {
|
|
626
|
+
background: dt('button.text.info.active.background');
|
|
627
|
+
border-color: transparent;
|
|
628
|
+
color: dt('button.text.info.color');
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.p-button-text.p-button-warn {
|
|
632
|
+
background: transparent;
|
|
633
|
+
border-color: transparent;
|
|
634
|
+
color: dt('button.text.warn.color');
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.p-button-text.p-button-warn:not(:disabled):hover {
|
|
638
|
+
background: dt('button.text.warn.hover.background');
|
|
639
|
+
border-color: transparent;
|
|
640
|
+
color: dt('button.text.warn.color');
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.p-button-text.p-button-warn:not(:disabled):active {
|
|
644
|
+
background: dt('button.text.warn.active.background');
|
|
645
|
+
border-color: transparent;
|
|
646
|
+
color: dt('button.text.warn.color');
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.p-button-text.p-button-help {
|
|
650
|
+
background: transparent;
|
|
651
|
+
border-color: transparent;
|
|
652
|
+
color: dt('button.text.help.color');
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.p-button-text.p-button-help:not(:disabled):hover {
|
|
656
|
+
background: dt('button.text.help.hover.background');
|
|
657
|
+
border-color: transparent;
|
|
658
|
+
color: dt('button.text.help.color');
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.p-button-text.p-button-help:not(:disabled):active {
|
|
662
|
+
background: dt('button.text.help.active.background');
|
|
663
|
+
border-color: transparent;
|
|
664
|
+
color: dt('button.text.help.color');
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.p-button-text.p-button-danger {
|
|
668
|
+
background: transparent;
|
|
669
|
+
border-color: transparent;
|
|
670
|
+
color: dt('button.text.danger.color');
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.p-button-text.p-button-danger:not(:disabled):hover {
|
|
674
|
+
background: dt('button.text.danger.hover.background');
|
|
675
|
+
border-color: transparent;
|
|
676
|
+
color: dt('button.text.danger.color');
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.p-button-text.p-button-danger:not(:disabled):active {
|
|
680
|
+
background: dt('button.text.danger.active.background');
|
|
681
|
+
border-color: transparent;
|
|
682
|
+
color: dt('button.text.danger.color');
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.p-button-text.p-button-contrast {
|
|
686
|
+
background: transparent;
|
|
687
|
+
border-color: transparent;
|
|
688
|
+
color: dt('button.text.contrast.color');
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.p-button-text.p-button-contrast:not(:disabled):hover {
|
|
692
|
+
background: dt('button.text.contrast.hover.background');
|
|
693
|
+
border-color: transparent;
|
|
694
|
+
color: dt('button.text.contrast.color');
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.p-button-text.p-button-contrast:not(:disabled):active {
|
|
698
|
+
background: dt('button.text.contrast.active.background');
|
|
699
|
+
border-color: transparent;
|
|
700
|
+
color: dt('button.text.contrast.color');
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.p-button-text.p-button-plain {
|
|
704
|
+
background: transparent;
|
|
705
|
+
border-color: transparent;
|
|
706
|
+
color: dt('button.text.plain.color');
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.p-button-text.p-button-plain:not(:disabled):hover {
|
|
710
|
+
background: dt('button.text.plain.hover.background');
|
|
711
|
+
border-color: transparent;
|
|
712
|
+
color: dt('button.text.plain.color');
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.p-button-text.p-button-plain:not(:disabled):active {
|
|
716
|
+
background: dt('button.text.plain.active.background');
|
|
717
|
+
border-color: transparent;
|
|
718
|
+
color: dt('button.text.plain.color');
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.p-button-link {
|
|
722
|
+
background: transparent;
|
|
723
|
+
border-color: transparent;
|
|
724
|
+
color: dt('button.link.color');
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.p-button-link:not(:disabled):hover {
|
|
728
|
+
background: transparent;
|
|
729
|
+
border-color: transparent;
|
|
730
|
+
color: dt('button.link.hover.color');
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.p-button-link:not(:disabled):hover .p-button-label {
|
|
734
|
+
text-decoration: underline;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.p-button-link:not(:disabled):active {
|
|
738
|
+
background: transparent;
|
|
739
|
+
border-color: transparent;
|
|
740
|
+
color: dt('button.link.active.color');
|
|
741
|
+
}
|
|
742
|
+
`;var Bt=["content"],Ct=["loadingicon"],Pt=["icon"],It=["*"],ht=(t,e)=>({class:t,pt:e});function Tt(t,e){t&1&&R(0)}function wt(t,e){if(t&1&&y(0,"span",7),t&2){let n=s(3);g(n.cn(n.cx("loadingIcon"),"pi-spin",n.loadingIcon||(n.buttonProps==null?null:n.buttonProps.loadingIcon))),r("pBind",n.ptm("loadingIcon")),p("aria-hidden",!0)}}function St(t,e){if(t&1&&(H(),y(0,"svg",8)),t&2){let n=s(3);g(n.cn(n.cx("loadingIcon"),n.cx("spinnerIcon"))),r("pBind",n.ptm("loadingIcon"))("spin",!0),p("aria-hidden",!0)}}function Dt(t,e){if(t&1&&(E(0),v(1,wt,1,4,"span",3)(2,St,1,5,"svg",6),z()),t&2){let n=s(2);l(),r("ngIf",n.loadingIcon||(n.buttonProps==null?null:n.buttonProps.loadingIcon)),l(),r("ngIf",!(n.loadingIcon||n.buttonProps!=null&&n.buttonProps.loadingIcon))}}function Et(t,e){}function zt(t,e){if(t&1&&v(0,Et,0,0,"ng-template",9),t&2){let n=s(2);r("ngIf",n.loadingIconTemplate||n._loadingIconTemplate)}}function Nt(t,e){if(t&1&&(E(0),v(1,Dt,3,2,"ng-container",2)(2,zt,1,1,null,5),z()),t&2){let n=s();l(),r("ngIf",!n.loadingIconTemplate&&!n._loadingIconTemplate),l(),r("ngTemplateOutlet",n.loadingIconTemplate||n._loadingIconTemplate)("ngTemplateOutletContext",j(3,ht,n.cx("loadingIcon"),n.ptm("loadingIcon")))}}function Mt(t,e){if(t&1&&y(0,"span",7),t&2){let n=s(2);g(n.cn(n.cx("icon"),n.icon||(n.buttonProps==null?null:n.buttonProps.icon))),r("pBind",n.ptm("icon")),p("data-p",n.dataIconP)}}function Ft(t,e){}function Lt(t,e){if(t&1&&v(0,Ft,0,0,"ng-template",9),t&2){let n=s(2);r("ngIf",!n.icon&&(n.iconTemplate||n._iconTemplate))}}function At(t,e){if(t&1&&(E(0),v(1,Mt,1,4,"span",3)(2,Lt,1,1,null,5),z()),t&2){let n=s();l(),r("ngIf",(n.icon||(n.buttonProps==null?null:n.buttonProps.icon))&&!n.iconTemplate&&!n._iconTemplate),l(),r("ngTemplateOutlet",n.iconTemplate||n._iconTemplate)("ngTemplateOutletContext",j(3,ht,n.cx("icon"),n.ptm("icon")))}}function Ut(t,e){if(t&1&&(O(0,"span",7),N(1),$()),t&2){let n=s();g(n.cx("label")),r("pBind",n.ptm("label")),p("aria-hidden",(n.icon||(n.buttonProps==null?null:n.buttonProps.icon))&&!(n.label||n.buttonProps!=null&&n.buttonProps.label))("data-p",n.dataLabelP),l(),M(n.label||(n.buttonProps==null?null:n.buttonProps.label))}}function Ot(t,e){if(t&1&&y(0,"p-badge",10),t&2){let n=s();r("value",n.badge||(n.buttonProps==null?null:n.buttonProps.badge))("severity",n.badgeSeverity||(n.buttonProps==null?null:n.buttonProps.badgeSeverity))("pt",n.ptm("pcBadge"))("unstyled",n.unstyled())}}var $t={root:({instance:t})=>["p-button p-component",{"p-button-icon-only":t.hasIcon&&!t.label&&!t.buttonProps?.label&&!t.badge,"p-button-vertical":(t.iconPos==="top"||t.iconPos==="bottom")&&t.label,"p-button-loading":t.loading||t.buttonProps?.loading,"p-button-link":t.link||t.buttonProps?.link,[`p-button-${t.severity||t.buttonProps?.severity}`]:t.severity||t.buttonProps?.severity,"p-button-raised":t.raised||t.buttonProps?.raised,"p-button-rounded":t.rounded||t.buttonProps?.rounded,"p-button-text":t.text||t.variant==="text"||t.buttonProps?.text||t.buttonProps?.variant==="text","p-button-outlined":t.outlined||t.variant==="outlined"||t.buttonProps?.outlined||t.buttonProps?.variant==="outlined","p-button-sm":t.size==="small"||t.buttonProps?.size==="small","p-button-lg":t.size==="large"||t.buttonProps?.size==="large","p-button-plain":t.plain||t.buttonProps?.plain,"p-button-fluid":t.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:t})=>["p-button-icon",{[`p-button-icon-${t.iconPos||t.buttonProps?.iconPos}`]:t.label||t.buttonProps?.label,"p-button-icon-left":(t.iconPos==="left"||t.buttonProps?.iconPos==="left")&&t.label||t.buttonProps?.label,"p-button-icon-right":(t.iconPos==="right"||t.buttonProps?.iconPos==="right")&&t.label||t.buttonProps?.label,"p-button-icon-top":(t.iconPos==="top"||t.buttonProps?.iconPos==="top")&&t.label||t.buttonProps?.label,"p-button-icon-bottom":(t.iconPos==="bottom"||t.buttonProps?.iconPos==="bottom")&&t.label||t.buttonProps?.label},t.icon,t.buttonProps?.icon],spinnerIcon:({instance:t})=>Object.entries(t.cx("icon")).filter(([,e])=>!!e).reduce((e,[n])=>e+` ${n}`,"p-button-loading-icon"),label:"p-button-label"},pt=(()=>{class t extends L{name="button";style=bt;classes=$t;static \u0275fac=(()=>{let n;return function(o){return(n||(n=m(t)))(o||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var gt=new P("BUTTON_INSTANCE");var jt=(()=>{class t extends U{componentName="Button";hostName="";$pcButton=u(gt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(b,{self:!0});_componentStyle=u(pt);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=c(void 0,{transform:a});onClick=new I;onFocus=new I;onBlur=new I;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=u(it,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}get hasIcon(){return this.icon||this.buttonProps?.icon||this.iconTemplate||this._iconTemplate||this.loadingIcon||this.loadingIconTemplate||this._loadingIconTemplate}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(n=>{switch(n.getType()){case"content":this._contentTemplate=n.template;break;case"icon":this._iconTemplate=n.template;break;case"loadingicon":this._loadingIconTemplate=n.template;break;default:this._contentTemplate=n.template;break}})}get dataP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge,loading:this.loading,fluid:this.hasFluid,rounded:this.rounded,raised:this.raised,outlined:this.outlined||this.variant==="outlined",text:this.text||this.variant==="text",link:this.link,vertical:(this.iconPos==="top"||this.iconPos==="bottom")&&this.label})}get dataIconP(){return this.cn({[this.iconPos]:this.iconPos,[this.size]:this.size})}get dataLabelP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge})}static \u0275fac=(()=>{let n;return function(o){return(n||(n=m(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["p-button"]],contentQueries:function(i,o,f){if(i&1&&Z(f,Bt,5)(f,Ct,5)(f,Pt,5)(f,ot,4),i&2){let d;k(d=x())&&(o.contentTemplate=d.first),k(d=x())&&(o.loadingIconTemplate=d.first),k(d=x())&&(o.iconTemplate=d.first),k(d=x())&&(o.templates=d)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",a],raised:[2,"raised","raised",a],rounded:[2,"rounded","rounded",a],text:[2,"text","text",a],plain:[2,"plain","plain",a],outlined:[2,"outlined","outlined",a],link:[2,"link","link",a],tabindex:[2,"tabindex","tabindex",K],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",a],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",a],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[F([pt,{provide:gt,useExisting:t},{provide:A,useExisting:t}]),S([b]),D],ngContentSelectors:It,decls:7,vars:17,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt","unstyled",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt","unstyled"]],template:function(i,o){i&1&&(q(),O(0,"button",0),Q("click",function(d){return o.onClick.emit(d)})("focus",function(d){return o.onFocus.emit(d)})("blur",function(d){return o.onBlur.emit(d)}),G(1),v(2,Tt,1,0,"ng-container",1)(3,Nt,3,6,"ng-container",2)(4,At,3,6,"ng-container",2)(5,Ut,2,6,"span",3)(6,Ot,1,4,"p-badge",4),$()),i&2&&(g(o.cn(o.cx("root"),o.styleClass,o.buttonProps==null?null:o.buttonProps.styleClass)),r("ngStyle",o.style||(o.buttonProps==null?null:o.buttonProps.style))("disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("pAutoFocus",o.autofocus||(o.buttonProps==null?null:o.buttonProps.autofocus))("pBind",o.ptm("root")),p("type",o.type||(o.buttonProps==null?null:o.buttonProps.type))("aria-label",o.ariaLabel||(o.buttonProps==null?null:o.buttonProps.ariaLabel))("tabindex",o.tabindex||(o.buttonProps==null?null:o.buttonProps.tabindex))("data-p",o.dataP)("data-p-disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("data-p-severity",o.severity||(o.buttonProps==null?null:o.buttonProps.severity)),l(2),r("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),l(),r("ngIf",o.loading||(o.buttonProps==null?null:o.buttonProps.loading)),l(),r("ngIf",!(o.loading||o.buttonProps!=null&&o.buttonProps.loading)),l(),r("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.label||(o.buttonProps==null?null:o.buttonProps.label))),l(),r("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.badge||(o.buttonProps==null?null:o.buttonProps.badge))))},dependencies:[_,W,Y,X,lt,rt,dt,ct,V,h,b],encapsulation:2,changeDetection:0})}return t})(),$n=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=w({type:t});static \u0275inj=C({imports:[_,jt,h,h]})}return t})();export{ct as a,jt as b,$n as c};
|