@vlalg-nimbus/nb-buttons 5.0.0 → 5.0.2
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/nb-buttons.js +2291 -1621
- package/dist/nb-buttons.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-buttons.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
1
|
+
import { useCssVars as xe, toRefs as Be, computed as t, openBlock as fe, createElementBlock as ve, mergeProps as Se, withKeys as O, withModifiers as A, unref as o, createElementVNode as de, normalizeClass as pe, normalizeStyle as se, renderSlot as he, createTextVNode as Ce, createCommentVNode as ye, onMounted as Ee, ref as Te, watch as yt, toDisplayString as We, nextTick as Oe, onUnmounted as mt, Fragment as ht, renderList as Ct } from "vue";
|
|
2
|
+
const ke = (e, l) => {
|
|
3
3
|
const X = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
X[
|
|
4
|
+
for (const [ae, q] of l)
|
|
5
|
+
X[ae] = q;
|
|
6
6
|
return X;
|
|
7
|
-
}, St = ["tabIndex"],
|
|
7
|
+
}, St = ["tabIndex"], xt = ["id"], Bt = { class: "component-content__text" }, kt = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
9
9
|
inheritAttrs: !1
|
|
10
10
|
}, {
|
|
@@ -18,8 +18,8 @@ const ve = (e, b) => {
|
|
|
18
18
|
type: String,
|
|
19
19
|
default: "ib",
|
|
20
20
|
validator: (e = "") => {
|
|
21
|
-
const
|
|
22
|
-
return ["b", "ib"].includes(
|
|
21
|
+
const l = e.toLowerCase();
|
|
22
|
+
return ["b", "ib"].includes(l);
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
tabIndex: {
|
|
@@ -42,25 +42,63 @@ const ve = (e, b) => {
|
|
|
42
42
|
type: Object,
|
|
43
43
|
default: () => ({})
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
theme: {
|
|
46
46
|
type: String,
|
|
47
|
-
default: "
|
|
47
|
+
default: "light",
|
|
48
|
+
validator: (e) => {
|
|
49
|
+
const l = e ? e.toLowerCase() : "";
|
|
50
|
+
return ["light", "dark"].includes(l);
|
|
51
|
+
}
|
|
48
52
|
},
|
|
49
|
-
|
|
53
|
+
// Cores do tema light
|
|
54
|
+
lightTextColor: {
|
|
50
55
|
type: String,
|
|
51
|
-
default: "
|
|
56
|
+
default: "#333333"
|
|
52
57
|
},
|
|
53
|
-
|
|
58
|
+
lightTextColorHover: {
|
|
54
59
|
type: String,
|
|
55
|
-
default: "
|
|
60
|
+
default: "#000000"
|
|
56
61
|
},
|
|
57
|
-
|
|
62
|
+
lightButtonColor: {
|
|
58
63
|
type: String,
|
|
59
|
-
default: "
|
|
64
|
+
default: "#f5f5f5"
|
|
60
65
|
},
|
|
61
|
-
|
|
66
|
+
lightButtonColorHover: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "#e0e0e0"
|
|
69
|
+
},
|
|
70
|
+
lightBorderColor: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "#333333"
|
|
73
|
+
},
|
|
74
|
+
lightDisabledBgColor: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: "#dfdfd9"
|
|
77
|
+
},
|
|
78
|
+
// Cores do tema dark
|
|
79
|
+
darkTextColor: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: "#e0e0e0"
|
|
82
|
+
},
|
|
83
|
+
darkTextColorHover: {
|
|
62
84
|
type: String,
|
|
63
|
-
default: "
|
|
85
|
+
default: "#ffffff"
|
|
86
|
+
},
|
|
87
|
+
darkButtonColor: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "#2d2d2d"
|
|
90
|
+
},
|
|
91
|
+
darkButtonColorHover: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "#3d3d3d"
|
|
94
|
+
},
|
|
95
|
+
darkBorderColor: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: "#e0e0e0"
|
|
98
|
+
},
|
|
99
|
+
darkDisabledBgColor: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "rgba(40, 42, 54, 1)"
|
|
64
102
|
},
|
|
65
103
|
borderOpacity: {
|
|
66
104
|
type: Number,
|
|
@@ -112,122 +150,131 @@ const ve = (e, b) => {
|
|
|
112
150
|
}
|
|
113
151
|
},
|
|
114
152
|
emits: ["clicked"],
|
|
115
|
-
setup(e, { emit:
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"
|
|
153
|
+
setup(e, { emit: l }) {
|
|
154
|
+
xe(($) => ({
|
|
155
|
+
"1dd0577e": B.value,
|
|
156
|
+
b105ba7c: h.value,
|
|
157
|
+
"5ac1c0cc": r.value,
|
|
158
|
+
"3d66efba": n.value,
|
|
159
|
+
"71da78fd": E.value,
|
|
160
|
+
"4bcbc8dd": i.value,
|
|
161
|
+
"219b125f": u.value,
|
|
162
|
+
"1f7aebc4": H.value,
|
|
163
|
+
c5c01c84: oe.value,
|
|
164
|
+
"0e55887f": M.value,
|
|
165
|
+
"78d4c939": ie.value,
|
|
166
|
+
"4f2feb83": be.value,
|
|
167
|
+
"1ddc4b8e": c.value,
|
|
168
|
+
b914842c: v.value
|
|
122
169
|
}));
|
|
123
|
-
const X =
|
|
124
|
-
display:
|
|
125
|
-
ariaLabel:
|
|
126
|
-
ariaAttrs:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
170
|
+
const X = l, ae = e, {
|
|
171
|
+
display: q,
|
|
172
|
+
ariaLabel: Q,
|
|
173
|
+
ariaAttrs: y,
|
|
174
|
+
theme: Y,
|
|
175
|
+
lightTextColor: U,
|
|
176
|
+
lightTextColorHover: te,
|
|
177
|
+
lightButtonColor: j,
|
|
178
|
+
lightButtonColorHover: Z,
|
|
179
|
+
lightBorderColor: F,
|
|
180
|
+
lightDisabledBgColor: G,
|
|
181
|
+
darkTextColor: ee,
|
|
182
|
+
darkTextColorHover: W,
|
|
183
|
+
darkButtonColor: L,
|
|
184
|
+
darkButtonColorHover: V,
|
|
185
|
+
darkBorderColor: I,
|
|
186
|
+
darkDisabledBgColor: b,
|
|
187
|
+
uppercase: T,
|
|
188
|
+
paddingXContent: f,
|
|
189
|
+
paddingYContent: m,
|
|
190
|
+
paddingXBorder: d,
|
|
191
|
+
paddingYBorder: _,
|
|
192
|
+
borderOpacity: S,
|
|
193
|
+
disabled: D,
|
|
194
|
+
fontFamily: P,
|
|
195
|
+
fontSize: J,
|
|
196
|
+
fontWeight: w
|
|
197
|
+
} = Be(ae), x = t(() => {
|
|
198
|
+
const $ = D.value ? "component-disabled" : "", k = q.value !== "b" ? "inline-block" : "block", ue = !S.value || !(S.value >= 0 && S.value <= 1) ? "0.5" : S.value, ne = !d.value || d.value < 0 ? 0.3 : d.value, me = !_.value || _.value < 0 ? 0.3 : _.value, ge = !f.value || f.value < 0 ? 0.5 : f.value, Ie = !m.value || m.value < 0 ? 0.5 : m.value, _e = T.value ? "uppercase" : "none", De = P.value ? P.value : "'Lato', sans-serif", Ne = J.value ? J.value : "1.6em", Re = !w.value || w.value < 0 ? 100 : w.value;
|
|
144
199
|
return {
|
|
145
|
-
disabled:
|
|
146
|
-
display:
|
|
147
|
-
|
|
148
|
-
buttonColor: F,
|
|
149
|
-
textColorHover: G,
|
|
150
|
-
buttonColorHover: le,
|
|
151
|
-
borderColor: ae,
|
|
152
|
-
borderOpacity: K,
|
|
200
|
+
disabled: $,
|
|
201
|
+
display: k,
|
|
202
|
+
borderOpacity: ue,
|
|
153
203
|
paddingXBorder: ne,
|
|
154
|
-
paddingYBorder:
|
|
155
|
-
paddingXContent:
|
|
156
|
-
paddingYContent:
|
|
157
|
-
uppercase:
|
|
158
|
-
font:
|
|
159
|
-
fontSize:
|
|
160
|
-
fontWeight:
|
|
204
|
+
paddingYBorder: me,
|
|
205
|
+
paddingXContent: ge,
|
|
206
|
+
paddingYContent: Ie,
|
|
207
|
+
uppercase: _e,
|
|
208
|
+
font: De,
|
|
209
|
+
fontSize: Ne,
|
|
210
|
+
fontWeight: Re
|
|
161
211
|
};
|
|
162
|
-
}), R = t(() =>
|
|
163
|
-
display:
|
|
164
|
-
})),
|
|
165
|
-
const
|
|
212
|
+
}), R = t(() => x.value.disabled), K = t(() => ({
|
|
213
|
+
display: x.value.display
|
|
214
|
+
})), p = t(() => {
|
|
215
|
+
const $ = x.value;
|
|
166
216
|
return {
|
|
167
|
-
padding: `${
|
|
168
|
-
fontSize:
|
|
169
|
-
fontWeight:
|
|
217
|
+
padding: `${$.paddingYBorder}rem ${$.paddingXBorder}rem`,
|
|
218
|
+
fontSize: $.fontSize,
|
|
219
|
+
fontWeight: $.fontWeight
|
|
170
220
|
};
|
|
171
|
-
}),
|
|
172
|
-
const
|
|
221
|
+
}), s = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), N = t(() => {
|
|
222
|
+
const $ = x.value;
|
|
173
223
|
return {
|
|
174
|
-
textTransform:
|
|
175
|
-
padding: `${
|
|
176
|
-
backgroundColor: n.buttonColor
|
|
224
|
+
textTransform: $.uppercase,
|
|
225
|
+
padding: `${$.paddingYContent}rem ${$.paddingXContent}rem`
|
|
177
226
|
};
|
|
178
|
-
}),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"aria-disabled": y.value,
|
|
186
|
-
...n
|
|
227
|
+
}), z = t(() => ({})), B = t(() => x.value.font), E = t(() => x.value.borderOpacity), h = t(() => U.value), r = t(() => te.value), i = t(() => j.value), u = t(() => Z.value), n = t(() => F.value), c = t(() => G.value), H = t(() => ee.value), oe = t(() => W.value), ie = t(() => L.value), be = t(() => V.value), M = t(() => I.value), v = t(() => b.value), g = t(() => {
|
|
228
|
+
const $ = {};
|
|
229
|
+
y.value && Object.keys(y.value).forEach((ne) => $[`aria-${ne}`] = y.value[ne]);
|
|
230
|
+
const k = {
|
|
231
|
+
"aria-label": Q.value,
|
|
232
|
+
"aria-disabled": D.value,
|
|
233
|
+
...$
|
|
187
234
|
};
|
|
188
235
|
return Object.fromEntries(
|
|
189
|
-
Object.entries(
|
|
236
|
+
Object.entries(k).filter(([ue, ne]) => ne != null)
|
|
190
237
|
);
|
|
191
|
-
}),
|
|
238
|
+
}), le = () => {
|
|
192
239
|
X("clicked");
|
|
193
240
|
};
|
|
194
|
-
return (
|
|
241
|
+
return ($, k) => e.nbId ? (fe(), ve("div", Se({
|
|
195
242
|
key: 0,
|
|
196
243
|
class: ["nb-wrapper", R.value],
|
|
197
|
-
style: [
|
|
244
|
+
style: [K.value],
|
|
198
245
|
tabIndex: e.tabIndex,
|
|
199
246
|
role: "button"
|
|
200
|
-
},
|
|
201
|
-
onClick:
|
|
247
|
+
}, g.value, {
|
|
248
|
+
onClick: le,
|
|
202
249
|
onKeydown: [
|
|
203
|
-
|
|
204
|
-
|
|
250
|
+
k[0] || (k[0] = O(A((ue) => !o(D) && e.hasTabIndexEnter && le(), ["prevent"]), ["enter"])),
|
|
251
|
+
k[1] || (k[1] = O(A((ue) => !o(D) && e.hasTabIndexSpace && le(), ["prevent"]), ["space"]))
|
|
205
252
|
]
|
|
206
253
|
}), [
|
|
207
|
-
|
|
254
|
+
de("div", {
|
|
208
255
|
id: e.nbId,
|
|
209
|
-
class:
|
|
210
|
-
style:
|
|
256
|
+
class: pe(["nb-reset", "component", s.value]),
|
|
257
|
+
style: se([p.value])
|
|
211
258
|
}, [
|
|
212
|
-
|
|
259
|
+
de("div", {
|
|
213
260
|
class: "component-content",
|
|
214
|
-
style:
|
|
261
|
+
style: se([N.value])
|
|
215
262
|
}, [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
263
|
+
de("span", Bt, [
|
|
264
|
+
he($.$slots, "content", {}, () => [
|
|
265
|
+
k[2] || (k[2] = Ce("Default Text"))
|
|
219
266
|
], !0)
|
|
220
267
|
]),
|
|
221
|
-
|
|
268
|
+
de("span", {
|
|
222
269
|
class: "component-content__mask",
|
|
223
|
-
style:
|
|
270
|
+
style: se([z.value])
|
|
224
271
|
}, null, 4)
|
|
225
272
|
], 4)
|
|
226
|
-
],
|
|
227
|
-
], 16, St)) :
|
|
273
|
+
], 14, xt)
|
|
274
|
+
], 16, St)) : ye("", !0);
|
|
228
275
|
}
|
|
229
|
-
}),
|
|
230
|
-
const
|
|
276
|
+
}), Vt = /* @__PURE__ */ ke(kt, [["__scopeId", "data-v-eb3b20b1"]]);
|
|
277
|
+
const Tt = ["tabIndex"], wt = ["id"], $t = /* @__PURE__ */ Object.assign({
|
|
231
278
|
name: "NbButtonShowHover",
|
|
232
279
|
inheritAttrs: !1
|
|
233
280
|
}, {
|
|
@@ -257,22 +304,56 @@ const $t = ["tabIndex"], Nt = ["id"], Ht = /* @__PURE__ */ Object.assign({
|
|
|
257
304
|
type: Object,
|
|
258
305
|
default: () => ({})
|
|
259
306
|
},
|
|
260
|
-
|
|
307
|
+
theme: {
|
|
308
|
+
type: String,
|
|
309
|
+
default: "light",
|
|
310
|
+
validator: (e) => {
|
|
311
|
+
const l = e ? e.toLowerCase() : "";
|
|
312
|
+
return ["light", "dark"].includes(l);
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
// Cores do tema light
|
|
316
|
+
lightTextColor: {
|
|
317
|
+
type: String,
|
|
318
|
+
default: "#333333"
|
|
319
|
+
},
|
|
320
|
+
lightTextColorHover: {
|
|
261
321
|
type: String,
|
|
262
|
-
default: "#
|
|
322
|
+
default: "#000000"
|
|
323
|
+
},
|
|
324
|
+
lightButtonColorHover: {
|
|
325
|
+
type: String,
|
|
326
|
+
default: "245, 245, 245"
|
|
327
|
+
},
|
|
328
|
+
lightButtonColorOpacityHover: {
|
|
329
|
+
type: Number,
|
|
330
|
+
default: 0.1
|
|
331
|
+
},
|
|
332
|
+
lightDisabledBgColor: {
|
|
333
|
+
type: String,
|
|
334
|
+
default: "#dfdfd9"
|
|
263
335
|
},
|
|
264
|
-
|
|
336
|
+
// Cores do tema dark
|
|
337
|
+
darkTextColor: {
|
|
265
338
|
type: String,
|
|
266
|
-
default: "#
|
|
339
|
+
default: "#e0e0e0"
|
|
267
340
|
},
|
|
268
|
-
|
|
341
|
+
darkTextColorHover: {
|
|
269
342
|
type: String,
|
|
270
|
-
default: "
|
|
343
|
+
default: "#ffffff"
|
|
344
|
+
},
|
|
345
|
+
darkButtonColorHover: {
|
|
346
|
+
type: String,
|
|
347
|
+
default: "45, 45, 45"
|
|
271
348
|
},
|
|
272
|
-
|
|
349
|
+
darkButtonColorOpacityHover: {
|
|
273
350
|
type: Number,
|
|
274
351
|
default: 0.1
|
|
275
352
|
},
|
|
353
|
+
darkDisabledBgColor: {
|
|
354
|
+
type: String,
|
|
355
|
+
default: "rgba(40, 42, 54, 1)"
|
|
356
|
+
},
|
|
276
357
|
paddingX: {
|
|
277
358
|
type: Number,
|
|
278
359
|
default: 1,
|
|
@@ -313,102 +394,110 @@ const $t = ["tabIndex"], Nt = ["id"], Ht = /* @__PURE__ */ Object.assign({
|
|
|
313
394
|
}
|
|
314
395
|
},
|
|
315
396
|
emits: ["clicked"],
|
|
316
|
-
setup(e, { emit:
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
"
|
|
397
|
+
setup(e, { emit: l }) {
|
|
398
|
+
xe((r) => ({
|
|
399
|
+
"254fad7c": B.value,
|
|
400
|
+
"7a31df04": R.value,
|
|
401
|
+
"153f3e7f": x.value,
|
|
402
|
+
"640d0dba": p.value,
|
|
403
|
+
"1e30675e": K.value,
|
|
404
|
+
"7545f4e2": s.value,
|
|
405
|
+
"75c79c3f": z.value,
|
|
406
|
+
"1bb6bd0c": N.value
|
|
323
407
|
}));
|
|
324
|
-
const X =
|
|
325
|
-
ariaLabel:
|
|
326
|
-
ariaAttrs:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
408
|
+
const X = l, ae = e, {
|
|
409
|
+
ariaLabel: q,
|
|
410
|
+
ariaAttrs: Q,
|
|
411
|
+
theme: y,
|
|
412
|
+
lightTextColor: Y,
|
|
413
|
+
lightTextColorHover: U,
|
|
414
|
+
lightButtonColorHover: te,
|
|
415
|
+
lightButtonColorOpacityHover: j,
|
|
416
|
+
lightDisabledBgColor: Z,
|
|
417
|
+
darkTextColor: F,
|
|
418
|
+
darkTextColorHover: G,
|
|
419
|
+
darkButtonColorHover: ee,
|
|
420
|
+
darkButtonColorOpacityHover: W,
|
|
421
|
+
darkDisabledBgColor: L,
|
|
422
|
+
paddingX: V,
|
|
423
|
+
paddingY: I,
|
|
424
|
+
disabled: b,
|
|
425
|
+
borderRadius: T,
|
|
426
|
+
verticalAlign: f,
|
|
427
|
+
fontFamily: m,
|
|
428
|
+
fontSize: d,
|
|
429
|
+
fontWeight: _
|
|
430
|
+
} = Be(ae), S = t(() => {
|
|
431
|
+
const r = b.value ? "component-disabled" : "", i = f.value ? f.value : "middle", u = !V.value || V.value < 0 ? 1 : V.value, n = !I.value || I.value < 0 ? 0.2 : I.value, c = !T.value || T.value < 0 ? 0 : T.value, H = m.value ? m.value : "'Lato', sans-serif", oe = d.value ? d.value : "1.6rem", ie = !_.value || _.value < 0 ? 100 : _.value;
|
|
340
432
|
return {
|
|
341
|
-
disabled:
|
|
342
|
-
borderRadius:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
fontSize: n,
|
|
350
|
-
fontWeight: c,
|
|
351
|
-
verticalAlign: p
|
|
433
|
+
disabled: r,
|
|
434
|
+
borderRadius: c,
|
|
435
|
+
paddingX: u,
|
|
436
|
+
paddingY: n,
|
|
437
|
+
font: H,
|
|
438
|
+
fontSize: oe,
|
|
439
|
+
fontWeight: ie,
|
|
440
|
+
verticalAlign: i
|
|
352
441
|
};
|
|
353
|
-
}),
|
|
354
|
-
verticalAlign:
|
|
355
|
-
})),
|
|
356
|
-
const
|
|
442
|
+
}), D = t(() => S.value.disabled), P = t(() => ({
|
|
443
|
+
verticalAlign: S.value.verticalAlign
|
|
444
|
+
})), J = t(() => y.value === "dark" ? "component__theme--dark" : "component__theme--light"), w = t(() => {
|
|
445
|
+
const r = S.value;
|
|
357
446
|
return {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
fontWeight: g.fontWeight
|
|
447
|
+
padding: `${r.paddingY}rem 0`,
|
|
448
|
+
borderRadius: `${r.borderRadius}rem`,
|
|
449
|
+
fontSize: r.fontSize,
|
|
450
|
+
fontWeight: r.fontWeight
|
|
363
451
|
};
|
|
364
|
-
}),
|
|
365
|
-
const
|
|
366
|
-
return `${
|
|
367
|
-
}),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
"aria-
|
|
376
|
-
|
|
452
|
+
}), x = t(() => {
|
|
453
|
+
const r = S.value;
|
|
454
|
+
return `${r.paddingY}rem ${r.paddingX}rem`;
|
|
455
|
+
}), R = t(() => Y.value), K = t(() => U.value), p = t(() => `rgba(${te.value}, ${j.value})`);
|
|
456
|
+
t(() => Z.value);
|
|
457
|
+
const s = t(() => F.value), N = t(() => G.value), z = t(() => `rgba(${ee.value}, ${W.value})`);
|
|
458
|
+
t(() => L.value);
|
|
459
|
+
const B = t(() => S.value.font), E = t(() => {
|
|
460
|
+
const r = {};
|
|
461
|
+
Q.value && Object.keys(Q.value).forEach((n) => r[`aria-${n}`] = Q.value[n]);
|
|
462
|
+
const i = {
|
|
463
|
+
"aria-label": q.value,
|
|
464
|
+
"aria-disabled": b.value,
|
|
465
|
+
...r
|
|
377
466
|
};
|
|
378
467
|
return Object.fromEntries(
|
|
379
|
-
Object.entries(
|
|
468
|
+
Object.entries(i).filter(([u, n]) => n != null)
|
|
380
469
|
);
|
|
381
|
-
}),
|
|
470
|
+
}), h = () => {
|
|
382
471
|
X("clicked");
|
|
383
472
|
};
|
|
384
|
-
return (
|
|
473
|
+
return (r, i) => e.nbId ? (fe(), ve("div", Se({
|
|
385
474
|
key: 0,
|
|
386
|
-
class: ["nb-wrapper",
|
|
387
|
-
style: [
|
|
475
|
+
class: ["nb-wrapper", D.value],
|
|
476
|
+
style: [P.value],
|
|
388
477
|
tabIndex: e.tabIndex,
|
|
389
478
|
role: "button"
|
|
390
|
-
},
|
|
391
|
-
onClick:
|
|
479
|
+
}, E.value, {
|
|
480
|
+
onClick: h,
|
|
392
481
|
onKeydown: [
|
|
393
|
-
|
|
394
|
-
|
|
482
|
+
i[1] || (i[1] = O(A((u) => !o(b) && e.hasTabIndexEnter && h(), ["prevent"]), ["enter"])),
|
|
483
|
+
i[2] || (i[2] = O(A((u) => !o(b) && e.hasTabIndexSpace && h(), ["prevent"]), ["space"]))
|
|
395
484
|
]
|
|
396
485
|
}), [
|
|
397
|
-
|
|
486
|
+
de("a", {
|
|
398
487
|
id: e.nbId,
|
|
399
|
-
class: "nb-reset component tertiary",
|
|
400
|
-
style:
|
|
401
|
-
onClick:
|
|
488
|
+
class: pe(["nb-reset component tertiary", [J.value]]),
|
|
489
|
+
style: se([w.value]),
|
|
490
|
+
onClick: i[0] || (i[0] = A(() => {
|
|
402
491
|
}, ["prevent"]))
|
|
403
492
|
}, [
|
|
404
|
-
|
|
405
|
-
|
|
493
|
+
he(r.$slots, "content", {}, () => [
|
|
494
|
+
i[3] || (i[3] = Ce("Default Text"))
|
|
406
495
|
], !0)
|
|
407
|
-
],
|
|
408
|
-
], 16,
|
|
496
|
+
], 14, wt)
|
|
497
|
+
], 16, Tt)) : ye("", !0);
|
|
409
498
|
}
|
|
410
|
-
}),
|
|
411
|
-
const
|
|
499
|
+
}), It = /* @__PURE__ */ ke($t, [["__scopeId", "data-v-2816d105"]]);
|
|
500
|
+
const _t = ["id"], Dt = ["tabIndex"], Nt = ["tabIndex"], Ht = /* @__PURE__ */ Object.assign({
|
|
412
501
|
name: "NbButtonPrevNext",
|
|
413
502
|
inheritAttrs: !1
|
|
414
503
|
}, {
|
|
@@ -450,21 +539,55 @@ const Tt = ["id"], kt = ["tabIndex"], Ot = ["tabIndex"], Wt = /* @__PURE__ */ Ob
|
|
|
450
539
|
type: Object,
|
|
451
540
|
default: () => ({})
|
|
452
541
|
},
|
|
453
|
-
|
|
542
|
+
theme: {
|
|
454
543
|
type: String,
|
|
455
|
-
default: "
|
|
544
|
+
default: "light",
|
|
545
|
+
validator: (e) => {
|
|
546
|
+
const l = e ? e.toLowerCase() : "";
|
|
547
|
+
return ["light", "dark"].includes(l);
|
|
548
|
+
}
|
|
456
549
|
},
|
|
457
|
-
|
|
550
|
+
// Cores do tema light
|
|
551
|
+
lightColorPrimary: {
|
|
458
552
|
type: String,
|
|
459
|
-
default: "
|
|
553
|
+
default: "#f5f5f5"
|
|
460
554
|
},
|
|
461
|
-
|
|
555
|
+
lightColorSecondary: {
|
|
556
|
+
type: String,
|
|
557
|
+
default: "#e0e0e0"
|
|
558
|
+
},
|
|
559
|
+
lightTextColor: {
|
|
560
|
+
type: String,
|
|
561
|
+
default: "#333333"
|
|
562
|
+
},
|
|
563
|
+
lightTextColorHover: {
|
|
564
|
+
type: String,
|
|
565
|
+
default: "#000000"
|
|
566
|
+
},
|
|
567
|
+
lightDisabledBgColor: {
|
|
568
|
+
type: String,
|
|
569
|
+
default: "#dfdfd9"
|
|
570
|
+
},
|
|
571
|
+
// Cores do tema dark
|
|
572
|
+
darkColorPrimary: {
|
|
573
|
+
type: String,
|
|
574
|
+
default: "#2d2d2d"
|
|
575
|
+
},
|
|
576
|
+
darkColorSecondary: {
|
|
577
|
+
type: String,
|
|
578
|
+
default: "#3d3d3d"
|
|
579
|
+
},
|
|
580
|
+
darkTextColor: {
|
|
581
|
+
type: String,
|
|
582
|
+
default: "#e0e0e0"
|
|
583
|
+
},
|
|
584
|
+
darkTextColorHover: {
|
|
462
585
|
type: String,
|
|
463
|
-
default: "#
|
|
586
|
+
default: "#ffffff"
|
|
464
587
|
},
|
|
465
|
-
|
|
588
|
+
darkDisabledBgColor: {
|
|
466
589
|
type: String,
|
|
467
|
-
default: "
|
|
590
|
+
default: "rgba(40, 42, 54, 1)"
|
|
468
591
|
},
|
|
469
592
|
paddingX: {
|
|
470
593
|
type: Number,
|
|
@@ -527,138 +650,157 @@ const Tt = ["id"], kt = ["tabIndex"], Ot = ["tabIndex"], Wt = /* @__PURE__ */ Ob
|
|
|
527
650
|
}
|
|
528
651
|
},
|
|
529
652
|
emits: ["clicked"],
|
|
530
|
-
setup(e, { emit:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
|
|
536
|
-
|
|
653
|
+
setup(e, { emit: l }) {
|
|
654
|
+
xe((v) => ({
|
|
655
|
+
cf4bc708: oe.value,
|
|
656
|
+
"5116e291": E.value,
|
|
657
|
+
"266d0204": r.value,
|
|
658
|
+
b809437a: h.value,
|
|
659
|
+
"4a627998": i.value,
|
|
660
|
+
"7b7542f9": u.value,
|
|
661
|
+
"27ce8ac8": c.value,
|
|
662
|
+
"9f7976aa": n.value,
|
|
663
|
+
"56aa6000": H.value
|
|
537
664
|
}));
|
|
538
|
-
const X =
|
|
539
|
-
ariaLabelPrev:
|
|
540
|
-
ariaAttrsPrev:
|
|
541
|
-
ariaLabelNext:
|
|
542
|
-
ariaAttrsNext:
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
665
|
+
const X = l, ae = e, {
|
|
666
|
+
ariaLabelPrev: q,
|
|
667
|
+
ariaAttrsPrev: Q,
|
|
668
|
+
ariaLabelNext: y,
|
|
669
|
+
ariaAttrsNext: Y,
|
|
670
|
+
theme: U,
|
|
671
|
+
lightColorPrimary: te,
|
|
672
|
+
lightColorSecondary: j,
|
|
673
|
+
lightTextColor: Z,
|
|
674
|
+
lightTextColorHover: F,
|
|
675
|
+
lightDisabledBgColor: G,
|
|
676
|
+
darkColorPrimary: ee,
|
|
677
|
+
darkColorSecondary: W,
|
|
678
|
+
darkTextColor: L,
|
|
679
|
+
darkTextColorHover: V,
|
|
680
|
+
darkDisabledBgColor: I,
|
|
681
|
+
paddingX: b,
|
|
682
|
+
paddingY: T,
|
|
683
|
+
marginBetween: f,
|
|
684
|
+
borderRadius: m,
|
|
685
|
+
disabled: d,
|
|
686
|
+
disabledPreview: _,
|
|
687
|
+
disabledNext: S,
|
|
688
|
+
fontFamily: D,
|
|
689
|
+
fontSize: P,
|
|
690
|
+
fontWeight: J
|
|
691
|
+
} = Be(ae), w = t(() => {
|
|
692
|
+
const v = d.value ? "component-disabled" : "", g = _.value ? "component-disabled" : "", le = S.value ? "component-disabled" : "", $ = !f.value || f.value < 0 ? 0 : f.value, k = !m.value || m.value < 0 ? 0 : m.value, ue = !b.value || b.value < 0 ? 1 : b.value, ne = !T.value || T.value < 0 ? 10 : T.value, me = P.value ? P.value : "1.6em", ge = !J.value || J.value < 0 ? 100 : J.value;
|
|
555
693
|
return {
|
|
556
|
-
disabled:
|
|
557
|
-
disabledPreview:
|
|
558
|
-
disabledNext:
|
|
559
|
-
marginBetween: `${
|
|
560
|
-
borderRadius: `${
|
|
561
|
-
paddingX: `${
|
|
562
|
-
paddingY: `${
|
|
563
|
-
fontSize:
|
|
564
|
-
fontWeight:
|
|
694
|
+
disabled: v,
|
|
695
|
+
disabledPreview: g,
|
|
696
|
+
disabledNext: le,
|
|
697
|
+
marginBetween: `${$}px`,
|
|
698
|
+
borderRadius: `${k}px`,
|
|
699
|
+
paddingX: `${ue}px`,
|
|
700
|
+
paddingY: `${ne}px`,
|
|
701
|
+
fontSize: me,
|
|
702
|
+
fontWeight: ge
|
|
565
703
|
};
|
|
566
|
-
}),
|
|
567
|
-
display:
|
|
568
|
-
})),
|
|
569
|
-
const
|
|
704
|
+
}), x = t(() => w.value.disabled), R = t(() => w.value.disabledPreview), K = t(() => w.value.disabledNext), p = t(() => ({
|
|
705
|
+
display: w.value.display
|
|
706
|
+
})), s = t(() => {
|
|
707
|
+
const v = w.value;
|
|
570
708
|
return {
|
|
571
|
-
fontSize:
|
|
572
|
-
fontWeight:
|
|
709
|
+
fontSize: v.fontSize,
|
|
710
|
+
fontWeight: v.fontWeight
|
|
573
711
|
};
|
|
574
|
-
}),
|
|
575
|
-
const
|
|
712
|
+
}), N = t(() => {
|
|
713
|
+
const v = w.value;
|
|
576
714
|
return {
|
|
577
|
-
borderRadius: `${
|
|
578
|
-
marginRight:
|
|
579
|
-
padding: `${
|
|
715
|
+
borderRadius: `${v.borderRadius} 0px 0px ${v.borderRadius}`,
|
|
716
|
+
marginRight: v.marginBetween,
|
|
717
|
+
padding: `${v.paddingX} ${v.paddingY}`
|
|
580
718
|
};
|
|
581
|
-
}),
|
|
582
|
-
const
|
|
719
|
+
}), z = t(() => {
|
|
720
|
+
const v = w.value;
|
|
583
721
|
return {
|
|
584
|
-
borderRadius: `0px ${
|
|
585
|
-
marginLeft:
|
|
586
|
-
padding: `${
|
|
722
|
+
borderRadius: `0px ${v.borderRadius} ${v.borderRadius} 0px`,
|
|
723
|
+
marginLeft: v.marginBetween,
|
|
724
|
+
padding: `${v.paddingX} ${v.paddingY}`
|
|
587
725
|
};
|
|
588
|
-
}),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
726
|
+
}), B = t(() => U.value === "dark" ? "component__theme--dark" : "component__theme--light"), E = t(() => te.value), h = t(() => j.value), r = t(() => Z.value), i = t(() => F.value);
|
|
727
|
+
t(() => G.value);
|
|
728
|
+
const u = t(() => ee.value), n = t(() => W.value), c = t(() => L.value), H = t(() => V.value);
|
|
729
|
+
t(() => I.value);
|
|
730
|
+
const oe = t(() => `'${D.value ? D.value : "'Lato', sans-serif"}'`), ie = t(() => {
|
|
731
|
+
const v = {};
|
|
732
|
+
Q.value && Object.keys(Q.value).forEach(($) => v[`aria-${$}`] = Q.value[$]);
|
|
733
|
+
const g = {
|
|
734
|
+
"aria-label": q.value,
|
|
735
|
+
"aria-disabled": R.value,
|
|
736
|
+
...v
|
|
595
737
|
};
|
|
596
738
|
return Object.fromEntries(
|
|
597
|
-
Object.entries(
|
|
739
|
+
Object.entries(g).filter(([le, $]) => $ != null)
|
|
598
740
|
);
|
|
599
|
-
}),
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
"aria-label":
|
|
604
|
-
"aria-disabled":
|
|
605
|
-
...
|
|
741
|
+
}), be = t(() => {
|
|
742
|
+
const v = {};
|
|
743
|
+
Y.value && Object.keys(Y.value).forEach(($) => v[`aria-${$}`] = Y.value[$]);
|
|
744
|
+
const g = {
|
|
745
|
+
"aria-label": y.value,
|
|
746
|
+
"aria-disabled": K.value,
|
|
747
|
+
...v
|
|
606
748
|
};
|
|
607
749
|
return Object.fromEntries(
|
|
608
|
-
Object.entries(
|
|
750
|
+
Object.entries(g).filter(([le, $]) => $ != null)
|
|
609
751
|
);
|
|
610
|
-
}),
|
|
611
|
-
X("clicked",
|
|
752
|
+
}), M = (v) => {
|
|
753
|
+
X("clicked", v);
|
|
612
754
|
};
|
|
613
|
-
return (
|
|
755
|
+
return (v, g) => e.nbId ? (fe(), ve("div", {
|
|
614
756
|
key: 0,
|
|
615
|
-
class:
|
|
616
|
-
style:
|
|
757
|
+
class: pe(["nb-wrapper", x.value]),
|
|
758
|
+
style: se([p.value])
|
|
617
759
|
}, [
|
|
618
|
-
|
|
760
|
+
de("div", {
|
|
619
761
|
id: e.nbId,
|
|
620
|
-
class:
|
|
621
|
-
style:
|
|
762
|
+
class: pe(["nb-reset", "component", B.value]),
|
|
763
|
+
style: se(s.value)
|
|
622
764
|
}, [
|
|
623
|
-
e.showPreview ? (
|
|
765
|
+
e.showPreview ? (fe(), ve("div", Se({
|
|
624
766
|
key: 0,
|
|
625
|
-
class: ["buttonNextPreview buttonPreview",
|
|
626
|
-
style:
|
|
767
|
+
class: ["buttonNextPreview buttonPreview", R.value],
|
|
768
|
+
style: N.value,
|
|
627
769
|
tabIndex: e.tabIndexPrev,
|
|
628
770
|
role: "button"
|
|
629
|
-
},
|
|
630
|
-
onClick:
|
|
771
|
+
}, ie.value, {
|
|
772
|
+
onClick: g[0] || (g[0] = (le) => M("preview")),
|
|
631
773
|
onKeydown: [
|
|
632
|
-
|
|
633
|
-
|
|
774
|
+
g[1] || (g[1] = O(A((le) => !o(d) && e.hasTabIndexEnter && M("preview"), ["prevent"]), ["enter"])),
|
|
775
|
+
g[2] || (g[2] = O(A((le) => !o(d) && e.hasTabIndexSpace && M("preview"), ["prevent"]), ["space"]))
|
|
634
776
|
]
|
|
635
777
|
}), [
|
|
636
|
-
|
|
637
|
-
|
|
778
|
+
he(v.$slots, "prev", {}, () => [
|
|
779
|
+
g[6] || (g[6] = Ce("← Preview"))
|
|
638
780
|
], !0)
|
|
639
|
-
], 16,
|
|
640
|
-
e.showNext ? (
|
|
781
|
+
], 16, Dt)) : ye("", !0),
|
|
782
|
+
e.showNext ? (fe(), ve("div", Se({
|
|
641
783
|
key: 1,
|
|
642
|
-
class: ["buttonNextPreview buttonNext",
|
|
643
|
-
style:
|
|
784
|
+
class: ["buttonNextPreview buttonNext", K.value],
|
|
785
|
+
style: z.value,
|
|
644
786
|
tabIndex: e.tabIndexNext,
|
|
645
787
|
role: "button"
|
|
646
|
-
},
|
|
647
|
-
onClick:
|
|
788
|
+
}, be.value, {
|
|
789
|
+
onClick: g[3] || (g[3] = (le) => M("next")),
|
|
648
790
|
onKeydown: [
|
|
649
|
-
|
|
650
|
-
|
|
791
|
+
g[4] || (g[4] = O(A((le) => !o(d) && e.hasTabIndexEnter && M("next"), ["prevent"]), ["enter"])),
|
|
792
|
+
g[5] || (g[5] = O(A((le) => !o(d) && e.hasTabIndexSpace && M("next"), ["prevent"]), ["space"]))
|
|
651
793
|
]
|
|
652
794
|
}), [
|
|
653
|
-
|
|
654
|
-
|
|
795
|
+
he(v.$slots, "next", {}, () => [
|
|
796
|
+
g[7] || (g[7] = Ce("Next →"))
|
|
655
797
|
], !0)
|
|
656
|
-
], 16,
|
|
657
|
-
],
|
|
658
|
-
], 6)) :
|
|
798
|
+
], 16, Nt)) : ye("", !0)
|
|
799
|
+
], 14, _t)
|
|
800
|
+
], 6)) : ye("", !0);
|
|
659
801
|
}
|
|
660
|
-
}),
|
|
661
|
-
const
|
|
802
|
+
}), At = /* @__PURE__ */ ke(Ht, [["__scopeId", "data-v-a0020765"]]);
|
|
803
|
+
const Lt = ["tabIndex"], Ot = ["id"], Wt = /* @__PURE__ */ Object.assign({
|
|
662
804
|
name: "NbButtonMechanical",
|
|
663
805
|
inheritAttrs: !1
|
|
664
806
|
}, {
|
|
@@ -672,8 +814,8 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
|
|
|
672
814
|
type: String,
|
|
673
815
|
default: "b",
|
|
674
816
|
validator: (e = "b") => {
|
|
675
|
-
const
|
|
676
|
-
return ["b", "ib"].includes(
|
|
817
|
+
const l = e ? e.toLowerCase() : "";
|
|
818
|
+
return ["b", "ib"].includes(l);
|
|
677
819
|
}
|
|
678
820
|
},
|
|
679
821
|
tabIndex: {
|
|
@@ -696,17 +838,47 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
|
|
|
696
838
|
type: Object,
|
|
697
839
|
default: () => ({})
|
|
698
840
|
},
|
|
699
|
-
|
|
841
|
+
theme: {
|
|
700
842
|
type: String,
|
|
701
|
-
default: "
|
|
843
|
+
default: "light",
|
|
844
|
+
validator: (e) => {
|
|
845
|
+
const l = e ? e.toLowerCase() : "";
|
|
846
|
+
return ["light", "dark"].includes(l);
|
|
847
|
+
}
|
|
702
848
|
},
|
|
703
|
-
|
|
849
|
+
// Cores do tema light
|
|
850
|
+
lightTextColor: {
|
|
704
851
|
type: String,
|
|
705
|
-
default: "#
|
|
852
|
+
default: "#333333"
|
|
706
853
|
},
|
|
707
|
-
|
|
854
|
+
lightButtonColor: {
|
|
708
855
|
type: String,
|
|
709
|
-
default: "#
|
|
856
|
+
default: "#f5f5f5"
|
|
857
|
+
},
|
|
858
|
+
lightContainerColor: {
|
|
859
|
+
type: String,
|
|
860
|
+
default: "#e0e0e0"
|
|
861
|
+
},
|
|
862
|
+
lightDisabledBgColor: {
|
|
863
|
+
type: String,
|
|
864
|
+
default: "#dfdfd9"
|
|
865
|
+
},
|
|
866
|
+
// Cores do tema dark
|
|
867
|
+
darkTextColor: {
|
|
868
|
+
type: String,
|
|
869
|
+
default: "#e0e0e0"
|
|
870
|
+
},
|
|
871
|
+
darkButtonColor: {
|
|
872
|
+
type: String,
|
|
873
|
+
default: "#2d2d2d"
|
|
874
|
+
},
|
|
875
|
+
darkContainerColor: {
|
|
876
|
+
type: String,
|
|
877
|
+
default: "#3d3d3d"
|
|
878
|
+
},
|
|
879
|
+
darkDisabledBgColor: {
|
|
880
|
+
type: String,
|
|
881
|
+
default: "rgba(40, 42, 54, 1)"
|
|
710
882
|
},
|
|
711
883
|
paddingX: {
|
|
712
884
|
type: Number,
|
|
@@ -747,97 +919,104 @@ const Rt = ["tabIndex"], zt = ["id"], Lt = /* @__PURE__ */ Object.assign({
|
|
|
747
919
|
}
|
|
748
920
|
},
|
|
749
921
|
emits: ["clicked"],
|
|
750
|
-
setup(e, { emit:
|
|
751
|
-
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
|
|
755
|
-
"
|
|
922
|
+
setup(e, { emit: l }) {
|
|
923
|
+
xe((h) => ({
|
|
924
|
+
"448924c5": x.value,
|
|
925
|
+
"524d021d": p.value,
|
|
926
|
+
d03582ca: R.value,
|
|
927
|
+
"7ac75b14": K.value,
|
|
928
|
+
e834105a: z.value,
|
|
929
|
+
d629e1b6: s.value,
|
|
930
|
+
d51faf00: N.value
|
|
756
931
|
}));
|
|
757
|
-
const X =
|
|
758
|
-
display:
|
|
759
|
-
ariaLabel:
|
|
760
|
-
ariaAttrs:
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
932
|
+
const X = l, ae = e, {
|
|
933
|
+
display: q,
|
|
934
|
+
ariaLabel: Q,
|
|
935
|
+
ariaAttrs: y,
|
|
936
|
+
theme: Y,
|
|
937
|
+
lightTextColor: U,
|
|
938
|
+
lightButtonColor: te,
|
|
939
|
+
lightContainerColor: j,
|
|
940
|
+
lightDisabledBgColor: Z,
|
|
941
|
+
darkTextColor: F,
|
|
942
|
+
darkButtonColor: G,
|
|
943
|
+
darkContainerColor: ee,
|
|
944
|
+
darkDisabledBgColor: W,
|
|
945
|
+
paddingX: L,
|
|
946
|
+
paddingY: V,
|
|
947
|
+
borderRadius: I,
|
|
948
|
+
disabled: b,
|
|
949
|
+
animationSlow: T,
|
|
950
|
+
fontFamily: f,
|
|
951
|
+
fontSize: m,
|
|
952
|
+
fontWeight: d
|
|
953
|
+
} = Be(ae), _ = t(() => {
|
|
954
|
+
const h = b.value ? "component-disabled" : "", r = q.value !== "b" ? "inline-block" : "block", i = !L.value || L.value < 0 ? 1 : L.value, u = !V.value || V.value < 0 ? 0.2 : V.value, n = !I.value || I.value < 0 ? 0 : I.value, c = T.value ? "" : "component-transition__no-slow", H = f.value ? f.value : "'Lato', sans-serif", oe = m.value ? m.value : "1.6em", ie = !d.value || d.value < 0 ? 100 : d.value;
|
|
774
955
|
return {
|
|
775
|
-
disabled:
|
|
956
|
+
disabled: h,
|
|
776
957
|
display: r,
|
|
777
|
-
|
|
778
|
-
buttonColor: o,
|
|
779
|
-
textColor: d,
|
|
780
|
-
paddingX: v,
|
|
958
|
+
paddingX: i,
|
|
781
959
|
paddingY: u,
|
|
782
960
|
borderRadius: n,
|
|
783
961
|
animationSlow: c,
|
|
784
|
-
font:
|
|
785
|
-
fontSize:
|
|
786
|
-
fontWeight:
|
|
962
|
+
font: H,
|
|
963
|
+
fontSize: oe,
|
|
964
|
+
fontWeight: ie
|
|
787
965
|
};
|
|
788
|
-
}),
|
|
789
|
-
display:
|
|
790
|
-
})),
|
|
791
|
-
const
|
|
966
|
+
}), S = t(() => _.value.disabled), D = t(() => ({
|
|
967
|
+
display: _.value.display
|
|
968
|
+
})), P = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), J = t(() => {
|
|
969
|
+
const h = _.value;
|
|
792
970
|
return {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
borderRadius: `${i.borderRadius}rem`,
|
|
798
|
-
fontSize: i.fontSize,
|
|
799
|
-
fontWeight: i.fontWeight
|
|
971
|
+
padding: `${h.paddingY}rem ${h.paddingX}rem`,
|
|
972
|
+
borderRadius: `${h.borderRadius}rem`,
|
|
973
|
+
fontSize: h.fontSize,
|
|
974
|
+
fontWeight: h.fontWeight
|
|
800
975
|
};
|
|
801
|
-
}),
|
|
802
|
-
|
|
803
|
-
|
|
976
|
+
}), w = t(() => _.value.animationSlow), x = t(() => _.value.font), R = t(() => U.value), K = t(() => te.value), p = t(() => j.value);
|
|
977
|
+
t(() => Z.value);
|
|
978
|
+
const s = t(() => F.value), N = t(() => G.value), z = t(() => ee.value);
|
|
979
|
+
t(() => W.value);
|
|
980
|
+
const B = t(() => {
|
|
981
|
+
const h = {};
|
|
982
|
+
y.value && Object.keys(y.value).forEach((u) => h[`aria-${u}`] = y.value[u]);
|
|
804
983
|
const r = {
|
|
805
|
-
"aria-label":
|
|
806
|
-
"aria-disabled":
|
|
807
|
-
...
|
|
984
|
+
"aria-label": Q.value,
|
|
985
|
+
"aria-disabled": b.value,
|
|
986
|
+
...h
|
|
808
987
|
};
|
|
809
988
|
return Object.fromEntries(
|
|
810
|
-
Object.entries(r).filter(([
|
|
989
|
+
Object.entries(r).filter(([i, u]) => u != null)
|
|
811
990
|
);
|
|
812
|
-
}),
|
|
991
|
+
}), E = () => {
|
|
813
992
|
X("clicked");
|
|
814
993
|
};
|
|
815
|
-
return (
|
|
994
|
+
return (h, r) => e.nbId ? (fe(), ve("div", Se({
|
|
816
995
|
key: 0,
|
|
817
|
-
class: ["nb-wrapper",
|
|
818
|
-
style: [
|
|
996
|
+
class: ["nb-wrapper", S.value],
|
|
997
|
+
style: [D.value],
|
|
819
998
|
tabIndex: e.tabIndex,
|
|
820
999
|
role: "button"
|
|
821
|
-
},
|
|
822
|
-
onClick:
|
|
1000
|
+
}, B.value, {
|
|
1001
|
+
onClick: E,
|
|
823
1002
|
onKeydown: [
|
|
824
|
-
r[0] || (r[0] =
|
|
825
|
-
r[1] || (r[1] =
|
|
1003
|
+
r[0] || (r[0] = O(A((i) => !o(b) && e.hasTabIndexEnter && E(), ["prevent"]), ["enter"])),
|
|
1004
|
+
r[1] || (r[1] = O(A((i) => !o(b) && e.hasTabIndexSpace && E(), ["prevent"]), ["space"]))
|
|
826
1005
|
]
|
|
827
1006
|
}), [
|
|
828
|
-
|
|
1007
|
+
de("div", {
|
|
829
1008
|
id: e.nbId,
|
|
830
|
-
class:
|
|
831
|
-
style:
|
|
1009
|
+
class: pe(["nb-reset", "component", "component-transition", w.value, P.value]),
|
|
1010
|
+
style: se([J.value])
|
|
832
1011
|
}, [
|
|
833
|
-
|
|
834
|
-
r[2] || (r[2] =
|
|
1012
|
+
he(h.$slots, "content", {}, () => [
|
|
1013
|
+
r[2] || (r[2] = Ce("Default Text"))
|
|
835
1014
|
], !0)
|
|
836
|
-
], 14,
|
|
837
|
-
], 16,
|
|
1015
|
+
], 14, Ot)
|
|
1016
|
+
], 16, Lt)) : ye("", !0);
|
|
838
1017
|
}
|
|
839
|
-
}),
|
|
840
|
-
const
|
|
1018
|
+
}), Rt = /* @__PURE__ */ ke(Wt, [["__scopeId", "data-v-5b33e712"]]);
|
|
1019
|
+
const zt = ["tabIndex"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assign({
|
|
841
1020
|
name: "NbButtonMechanical2",
|
|
842
1021
|
inheritAttrs: !1
|
|
843
1022
|
}, {
|
|
@@ -851,8 +1030,8 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
|
|
|
851
1030
|
type: String,
|
|
852
1031
|
default: "b",
|
|
853
1032
|
validator: (e = "b") => {
|
|
854
|
-
const
|
|
855
|
-
return ["b", "ib"].includes(
|
|
1033
|
+
const l = e ? e.toLowerCase() : "";
|
|
1034
|
+
return ["b", "ib"].includes(l);
|
|
856
1035
|
}
|
|
857
1036
|
},
|
|
858
1037
|
tabIndex: {
|
|
@@ -875,17 +1054,47 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
|
|
|
875
1054
|
type: Object,
|
|
876
1055
|
default: () => ({})
|
|
877
1056
|
},
|
|
878
|
-
|
|
1057
|
+
theme: {
|
|
879
1058
|
type: String,
|
|
880
|
-
default: "
|
|
1059
|
+
default: "light",
|
|
1060
|
+
validator: (e) => {
|
|
1061
|
+
const l = e ? e.toLowerCase() : "";
|
|
1062
|
+
return ["light", "dark"].includes(l);
|
|
1063
|
+
}
|
|
881
1064
|
},
|
|
882
|
-
|
|
1065
|
+
// Cores do tema light
|
|
1066
|
+
lightTextColor: {
|
|
883
1067
|
type: String,
|
|
884
|
-
default: "#
|
|
1068
|
+
default: "#333333"
|
|
1069
|
+
},
|
|
1070
|
+
lightButtonColor: {
|
|
1071
|
+
type: String,
|
|
1072
|
+
default: "#f5f5f5"
|
|
1073
|
+
},
|
|
1074
|
+
lightShadowColor: {
|
|
1075
|
+
type: String,
|
|
1076
|
+
default: "#e0e0e0"
|
|
1077
|
+
},
|
|
1078
|
+
lightDisabledBgColor: {
|
|
1079
|
+
type: String,
|
|
1080
|
+
default: "#dfdfd9"
|
|
1081
|
+
},
|
|
1082
|
+
// Cores do tema dark
|
|
1083
|
+
darkTextColor: {
|
|
1084
|
+
type: String,
|
|
1085
|
+
default: "#e0e0e0"
|
|
1086
|
+
},
|
|
1087
|
+
darkButtonColor: {
|
|
1088
|
+
type: String,
|
|
1089
|
+
default: "#2d2d2d"
|
|
1090
|
+
},
|
|
1091
|
+
darkShadowColor: {
|
|
1092
|
+
type: String,
|
|
1093
|
+
default: "#3d3d3d"
|
|
885
1094
|
},
|
|
886
|
-
|
|
1095
|
+
darkDisabledBgColor: {
|
|
887
1096
|
type: String,
|
|
888
|
-
default: "
|
|
1097
|
+
default: "rgba(40, 42, 54, 1)"
|
|
889
1098
|
},
|
|
890
1099
|
paddingX: {
|
|
891
1100
|
type: Number,
|
|
@@ -922,93 +1131,102 @@ const Xt = ["tabIndex"], jt = ["id"], Et = /* @__PURE__ */ Object.assign({
|
|
|
922
1131
|
}
|
|
923
1132
|
},
|
|
924
1133
|
emits: ["clicked"],
|
|
925
|
-
setup(e, { emit:
|
|
926
|
-
|
|
927
|
-
"
|
|
1134
|
+
setup(e, { emit: l }) {
|
|
1135
|
+
xe((B) => ({
|
|
1136
|
+
"5792e749": s.value,
|
|
1137
|
+
"69d4b8d2": J.value,
|
|
1138
|
+
"29712f1c": w.value,
|
|
1139
|
+
"121dc978": x.value,
|
|
1140
|
+
"8047caae": R.value,
|
|
1141
|
+
"6f6739f8": K.value,
|
|
1142
|
+
"5813d454": p.value
|
|
928
1143
|
}));
|
|
929
|
-
const X =
|
|
930
|
-
display:
|
|
931
|
-
ariaLabel:
|
|
932
|
-
ariaAttrs:
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1144
|
+
const X = l, ae = e, {
|
|
1145
|
+
display: q,
|
|
1146
|
+
ariaLabel: Q,
|
|
1147
|
+
ariaAttrs: y,
|
|
1148
|
+
theme: Y,
|
|
1149
|
+
lightTextColor: U,
|
|
1150
|
+
lightButtonColor: te,
|
|
1151
|
+
lightShadowColor: j,
|
|
1152
|
+
lightDisabledBgColor: Z,
|
|
1153
|
+
darkTextColor: F,
|
|
1154
|
+
darkButtonColor: G,
|
|
1155
|
+
darkShadowColor: ee,
|
|
1156
|
+
darkDisabledBgColor: W,
|
|
1157
|
+
paddingX: L,
|
|
1158
|
+
paddingY: V,
|
|
1159
|
+
borderRadius: I,
|
|
1160
|
+
disabled: b,
|
|
1161
|
+
fontFamily: T,
|
|
1162
|
+
fontSize: f,
|
|
1163
|
+
fontWeight: m
|
|
1164
|
+
} = Be(ae), d = t(() => {
|
|
1165
|
+
const B = b.value ? "component-disabled" : "", E = q.value !== "b" ? "inline-block" : "block", h = !L.value || L.value < 0 ? 1 : L.value, r = !V.value || V.value < 0 ? 1 : V.value, i = !I.value || I.value < 0 ? 0 : I.value, u = T.value ? T.value : "'Lato', sans-serif", n = f.value ? f.value : "1.6em", c = !m.value || m.value < 0 ? 100 : m.value;
|
|
945
1166
|
return {
|
|
946
|
-
disabled:
|
|
947
|
-
display:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
font: d,
|
|
955
|
-
fontSize: v,
|
|
956
|
-
fontWeight: u
|
|
1167
|
+
disabled: B,
|
|
1168
|
+
display: E,
|
|
1169
|
+
paddingX: h,
|
|
1170
|
+
paddingY: r,
|
|
1171
|
+
borderRadius: i,
|
|
1172
|
+
font: u,
|
|
1173
|
+
fontSize: n,
|
|
1174
|
+
fontWeight: c
|
|
957
1175
|
};
|
|
958
|
-
}),
|
|
959
|
-
display:
|
|
960
|
-
})),
|
|
961
|
-
const
|
|
1176
|
+
}), _ = t(() => d.value.disabled), S = t(() => ({
|
|
1177
|
+
display: d.value.display
|
|
1178
|
+
})), D = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), P = t(() => {
|
|
1179
|
+
const B = d.value;
|
|
962
1180
|
return {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
padding: `${s.paddingY}rem ${s.paddingX}rem`,
|
|
968
|
-
borderRadius: `${s.borderRadius}rem`,
|
|
969
|
-
fontSize: s.fontSize,
|
|
970
|
-
fontWeight: s.fontWeight
|
|
1181
|
+
padding: `${B.paddingY}rem ${B.paddingX}rem`,
|
|
1182
|
+
borderRadius: `${B.borderRadius}rem`,
|
|
1183
|
+
fontSize: B.fontSize,
|
|
1184
|
+
fontWeight: B.fontWeight
|
|
971
1185
|
};
|
|
972
|
-
}),
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1186
|
+
}), J = t(() => U.value), w = t(() => te.value), x = t(() => j.value);
|
|
1187
|
+
t(() => Z.value);
|
|
1188
|
+
const R = t(() => F.value), K = t(() => G.value), p = t(() => ee.value);
|
|
1189
|
+
t(() => W.value);
|
|
1190
|
+
const s = t(() => d.value.font), N = t(() => {
|
|
1191
|
+
const B = {};
|
|
1192
|
+
y.value && Object.keys(y.value).forEach((r) => B[`aria-${r}`] = y.value[r]);
|
|
1193
|
+
const E = {
|
|
1194
|
+
"aria-label": Q.value,
|
|
1195
|
+
"aria-disabled": b.value,
|
|
1196
|
+
...B
|
|
979
1197
|
};
|
|
980
1198
|
return Object.fromEntries(
|
|
981
|
-
Object.entries(
|
|
1199
|
+
Object.entries(E).filter(([h, r]) => r != null)
|
|
982
1200
|
);
|
|
983
|
-
}),
|
|
1201
|
+
}), z = () => {
|
|
984
1202
|
X("clicked");
|
|
985
1203
|
};
|
|
986
|
-
return (
|
|
1204
|
+
return (B, E) => e.nbId ? (fe(), ve("div", Se({
|
|
987
1205
|
key: 0,
|
|
988
|
-
class: ["nb-wrapper",
|
|
989
|
-
style: [
|
|
1206
|
+
class: ["nb-wrapper", _.value],
|
|
1207
|
+
style: [S.value],
|
|
990
1208
|
tabIndex: e.tabIndex,
|
|
991
1209
|
role: "button"
|
|
992
|
-
},
|
|
993
|
-
onClick:
|
|
1210
|
+
}, N.value, {
|
|
1211
|
+
onClick: z,
|
|
994
1212
|
onKeydown: [
|
|
995
|
-
|
|
996
|
-
|
|
1213
|
+
E[0] || (E[0] = O(A((h) => !o(b) && e.hasTabIndexEnter && z(), ["prevent"]), ["enter"])),
|
|
1214
|
+
E[1] || (E[1] = O(A((h) => !o(b) && e.hasTabIndexSpace && z(), ["prevent"]), ["space"]))
|
|
997
1215
|
]
|
|
998
1216
|
}), [
|
|
999
|
-
|
|
1217
|
+
de("div", {
|
|
1000
1218
|
id: e.nbId,
|
|
1001
|
-
class:
|
|
1002
|
-
style:
|
|
1219
|
+
class: pe(["nb-reset", "component", "component-transition", D.value]),
|
|
1220
|
+
style: se([P.value])
|
|
1003
1221
|
}, [
|
|
1004
|
-
|
|
1005
|
-
|
|
1222
|
+
he(B.$slots, "content", {}, () => [
|
|
1223
|
+
E[2] || (E[2] = Ce("Default Text"))
|
|
1006
1224
|
], !0)
|
|
1007
|
-
],
|
|
1008
|
-
], 16,
|
|
1225
|
+
], 14, Yt)
|
|
1226
|
+
], 16, zt)) : ye("", !0);
|
|
1009
1227
|
}
|
|
1010
|
-
}),
|
|
1011
|
-
const
|
|
1228
|
+
}), jt = /* @__PURE__ */ ke(Xt, [["__scopeId", "data-v-2c06324b"]]);
|
|
1229
|
+
const Et = ["tabIndex"], Ft = ["id"], Pt = /* @__PURE__ */ Object.assign({
|
|
1012
1230
|
name: "NbButtonHamburger",
|
|
1013
1231
|
inheritAttrs: !1
|
|
1014
1232
|
}, {
|
|
@@ -1038,26 +1256,60 @@ const Dt = ["tabIndex"], Kt = ["id"], Pt = /* @__PURE__ */ Object.assign({
|
|
|
1038
1256
|
type: Object,
|
|
1039
1257
|
default: () => ({})
|
|
1040
1258
|
},
|
|
1259
|
+
theme: {
|
|
1260
|
+
type: String,
|
|
1261
|
+
default: "light",
|
|
1262
|
+
validator: (e) => {
|
|
1263
|
+
const l = e ? e.toLowerCase() : "";
|
|
1264
|
+
return ["light", "dark"].includes(l);
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1041
1267
|
status: {
|
|
1042
1268
|
type: Boolean,
|
|
1043
1269
|
default: !1,
|
|
1044
1270
|
validator: (e) => [!1, !0].includes(e)
|
|
1045
1271
|
},
|
|
1046
|
-
|
|
1272
|
+
// Cores do tema light
|
|
1273
|
+
lightColor: {
|
|
1274
|
+
type: String,
|
|
1275
|
+
default: "#333333"
|
|
1276
|
+
},
|
|
1277
|
+
lightColorHover: {
|
|
1278
|
+
type: String,
|
|
1279
|
+
default: "#000000"
|
|
1280
|
+
},
|
|
1281
|
+
lightContainerColor: {
|
|
1282
|
+
type: String,
|
|
1283
|
+
default: "#f5f5f5"
|
|
1284
|
+
},
|
|
1285
|
+
lightContainerColorHover: {
|
|
1286
|
+
type: String,
|
|
1287
|
+
default: "#e0e0e0"
|
|
1288
|
+
},
|
|
1289
|
+
lightDisabledBgColor: {
|
|
1290
|
+
type: String,
|
|
1291
|
+
default: "#dfdfd9"
|
|
1292
|
+
},
|
|
1293
|
+
// Cores do tema dark
|
|
1294
|
+
darkColor: {
|
|
1295
|
+
type: String,
|
|
1296
|
+
default: "#e0e0e0"
|
|
1297
|
+
},
|
|
1298
|
+
darkColorHover: {
|
|
1047
1299
|
type: String,
|
|
1048
1300
|
default: "#ffffff"
|
|
1049
1301
|
},
|
|
1050
|
-
|
|
1302
|
+
darkContainerColor: {
|
|
1051
1303
|
type: String,
|
|
1052
|
-
default: "
|
|
1304
|
+
default: "#2d2d2d"
|
|
1053
1305
|
},
|
|
1054
|
-
|
|
1306
|
+
darkContainerColorHover: {
|
|
1055
1307
|
type: String,
|
|
1056
|
-
default: "#
|
|
1308
|
+
default: "#3d3d3d"
|
|
1057
1309
|
},
|
|
1058
|
-
|
|
1310
|
+
darkDisabledBgColor: {
|
|
1059
1311
|
type: String,
|
|
1060
|
-
default: "
|
|
1312
|
+
default: "rgba(40, 42, 54, 1)"
|
|
1061
1313
|
},
|
|
1062
1314
|
paddingX: {
|
|
1063
1315
|
type: Number,
|
|
@@ -1076,97 +1328,105 @@ const Dt = ["tabIndex"], Kt = ["id"], Pt = /* @__PURE__ */ Object.assign({
|
|
|
1076
1328
|
}
|
|
1077
1329
|
},
|
|
1078
1330
|
emits: ["clicked"],
|
|
1079
|
-
setup(e, { emit:
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1331
|
+
setup(e, { emit: l }) {
|
|
1332
|
+
xe((r) => ({
|
|
1333
|
+
"00101ecc": x.value,
|
|
1334
|
+
bbf5ed78: N.value,
|
|
1335
|
+
"1b9a19d0": R.value,
|
|
1336
|
+
"51f8cffa": w.value,
|
|
1337
|
+
a6260b50: z.value,
|
|
1338
|
+
"47407e7b": s.value,
|
|
1339
|
+
"75874cb9": J.value,
|
|
1340
|
+
"6b023b41": p.value,
|
|
1341
|
+
"4a4cd9d8": K.value,
|
|
1342
|
+
32158340: B.value
|
|
1083
1343
|
}));
|
|
1084
|
-
const X =
|
|
1085
|
-
|
|
1086
|
-
|
|
1344
|
+
const X = l, ae = e;
|
|
1345
|
+
Ee(() => {
|
|
1346
|
+
q.value = U.value;
|
|
1087
1347
|
});
|
|
1088
|
-
const
|
|
1089
|
-
ariaLabel:
|
|
1090
|
-
ariaAttrs:
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1348
|
+
const q = Te(!1), {
|
|
1349
|
+
ariaLabel: Q,
|
|
1350
|
+
ariaAttrs: y,
|
|
1351
|
+
theme: Y,
|
|
1352
|
+
status: U,
|
|
1353
|
+
lightColor: te,
|
|
1354
|
+
lightColorHover: j,
|
|
1355
|
+
lightContainerColor: Z,
|
|
1356
|
+
lightContainerColorHover: F,
|
|
1357
|
+
lightDisabledBgColor: G,
|
|
1358
|
+
darkColor: ee,
|
|
1359
|
+
darkColorHover: W,
|
|
1360
|
+
darkContainerColor: L,
|
|
1361
|
+
darkContainerColorHover: V,
|
|
1362
|
+
darkDisabledBgColor: I,
|
|
1363
|
+
paddingX: b,
|
|
1364
|
+
paddingY: T,
|
|
1365
|
+
disabled: f
|
|
1366
|
+
} = Be(ae), m = t(() => {
|
|
1367
|
+
const r = f.value ? "component-disabled" : "", i = q.value ? "change" : "", u = !b.value || b.value < 0 ? 3 : b.value, n = !T.value || T.value < 0 ? 3 : T.value;
|
|
1101
1368
|
return {
|
|
1102
|
-
disabled:
|
|
1103
|
-
buttonStatus:
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
paddingY: r,
|
|
1107
|
-
color: p,
|
|
1108
|
-
containerColorHover: a,
|
|
1109
|
-
colorHover: o
|
|
1369
|
+
disabled: r,
|
|
1370
|
+
buttonStatus: i,
|
|
1371
|
+
paddingX: u,
|
|
1372
|
+
paddingY: n
|
|
1110
1373
|
};
|
|
1111
|
-
}),
|
|
1112
|
-
const
|
|
1374
|
+
}), d = t(() => m.value.disabled), _ = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), S = t(() => {
|
|
1375
|
+
const r = m.value;
|
|
1113
1376
|
return {
|
|
1114
|
-
padding: `${
|
|
1115
|
-
backgroundColor: s.containerColor
|
|
1377
|
+
padding: `${r.paddingY}px ${r.paddingX}px`
|
|
1116
1378
|
};
|
|
1117
|
-
}),
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
"aria-disabled": I.value,
|
|
1125
|
-
...s
|
|
1379
|
+
}), D = t(() => ({})), P = t(() => m.value.buttonStatus), J = t(() => te.value), w = t(() => j.value), x = t(() => Z.value), R = t(() => F.value), K = t(() => G.value), p = t(() => ee.value), s = t(() => W.value), N = t(() => L.value), z = t(() => V.value), B = t(() => I.value), E = t(() => {
|
|
1380
|
+
const r = {};
|
|
1381
|
+
y.value && Object.keys(y.value).forEach((n) => r[`aria-${n}`] = y.value[n]);
|
|
1382
|
+
const i = {
|
|
1383
|
+
"aria-label": Q.value,
|
|
1384
|
+
"aria-disabled": f.value,
|
|
1385
|
+
...r
|
|
1126
1386
|
};
|
|
1127
1387
|
return Object.fromEntries(
|
|
1128
|
-
Object.entries(
|
|
1388
|
+
Object.entries(i).filter(([u, n]) => n != null)
|
|
1129
1389
|
);
|
|
1130
|
-
}),
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1390
|
+
}), h = () => {
|
|
1391
|
+
const r = !q.value;
|
|
1392
|
+
q.value = r, X("clicked", r);
|
|
1133
1393
|
};
|
|
1134
|
-
return
|
|
1135
|
-
|
|
1136
|
-
}), (
|
|
1394
|
+
return yt(U, () => {
|
|
1395
|
+
q.value = U.value;
|
|
1396
|
+
}), (r, i) => e.nbId ? (fe(), ve("div", Se({
|
|
1137
1397
|
key: 0,
|
|
1138
|
-
class: ["nb-wrapper",
|
|
1139
|
-
style: [
|
|
1398
|
+
class: ["nb-wrapper", d.value],
|
|
1399
|
+
style: [S.value],
|
|
1140
1400
|
tabIndex: e.tabIndex,
|
|
1141
1401
|
role: "button"
|
|
1142
|
-
},
|
|
1143
|
-
onClick:
|
|
1402
|
+
}, E.value, {
|
|
1403
|
+
onClick: h,
|
|
1144
1404
|
onKeydown: [
|
|
1145
|
-
|
|
1146
|
-
|
|
1405
|
+
i[0] || (i[0] = O(A((u) => !o(f) && e.hasTabIndexEnter && h(), ["prevent"]), ["enter"])),
|
|
1406
|
+
i[1] || (i[1] = O(A((u) => !o(f) && e.hasTabIndexSpace && h(), ["prevent"]), ["space"]))
|
|
1147
1407
|
]
|
|
1148
1408
|
}), [
|
|
1149
|
-
|
|
1409
|
+
de("div", {
|
|
1150
1410
|
id: e.nbId,
|
|
1151
|
-
class:
|
|
1411
|
+
class: pe(["nb-reset", "component", P.value, _.value])
|
|
1152
1412
|
}, [
|
|
1153
|
-
|
|
1413
|
+
de("div", {
|
|
1154
1414
|
class: "component__line-one",
|
|
1155
|
-
style:
|
|
1415
|
+
style: se(D.value)
|
|
1156
1416
|
}, null, 4),
|
|
1157
|
-
|
|
1417
|
+
de("div", {
|
|
1158
1418
|
class: "component__line-two",
|
|
1159
|
-
style:
|
|
1419
|
+
style: se(D.value)
|
|
1160
1420
|
}, null, 4),
|
|
1161
|
-
|
|
1421
|
+
de("div", {
|
|
1162
1422
|
class: "component__line-three",
|
|
1163
|
-
style:
|
|
1423
|
+
style: se(D.value)
|
|
1164
1424
|
}, null, 4)
|
|
1165
|
-
], 10,
|
|
1166
|
-
], 16,
|
|
1425
|
+
], 10, Ft)
|
|
1426
|
+
], 16, Et)) : ye("", !0);
|
|
1167
1427
|
}
|
|
1168
|
-
}),
|
|
1169
|
-
const Mt = ["tabIndex"],
|
|
1428
|
+
}), Kt = /* @__PURE__ */ ke(Pt, [["__scopeId", "data-v-ff42dd2c"]]);
|
|
1429
|
+
const Mt = ["tabIndex"], qt = ["id"], Ut = /* @__PURE__ */ Object.assign({
|
|
1170
1430
|
name: "NbButtonColorOutside",
|
|
1171
1431
|
inheritAttrs: !1
|
|
1172
1432
|
}, {
|
|
@@ -1180,8 +1440,8 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
|
|
|
1180
1440
|
type: String,
|
|
1181
1441
|
default: "b",
|
|
1182
1442
|
validator: (e = "b") => {
|
|
1183
|
-
const
|
|
1184
|
-
return ["b", "ib"].includes(
|
|
1443
|
+
const l = e ? e.toLowerCase() : "";
|
|
1444
|
+
return ["b", "ib"].includes(l);
|
|
1185
1445
|
}
|
|
1186
1446
|
},
|
|
1187
1447
|
tabIndex: {
|
|
@@ -1204,17 +1464,47 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
|
|
|
1204
1464
|
type: Object,
|
|
1205
1465
|
default: () => ({})
|
|
1206
1466
|
},
|
|
1207
|
-
|
|
1467
|
+
theme: {
|
|
1208
1468
|
type: String,
|
|
1209
|
-
default: "
|
|
1469
|
+
default: "light",
|
|
1470
|
+
validator: (e) => {
|
|
1471
|
+
const l = e ? e.toLowerCase() : "";
|
|
1472
|
+
return ["light", "dark"].includes(l);
|
|
1473
|
+
}
|
|
1210
1474
|
},
|
|
1211
|
-
|
|
1475
|
+
// Cores do tema light
|
|
1476
|
+
lightTextColor: {
|
|
1212
1477
|
type: String,
|
|
1213
|
-
default: "#
|
|
1478
|
+
default: "#333333"
|
|
1214
1479
|
},
|
|
1215
|
-
|
|
1480
|
+
lightButtonColor: {
|
|
1216
1481
|
type: String,
|
|
1217
|
-
default: "#
|
|
1482
|
+
default: "#f5f5f5"
|
|
1483
|
+
},
|
|
1484
|
+
lightBorderColor: {
|
|
1485
|
+
type: String,
|
|
1486
|
+
default: "#cccccc"
|
|
1487
|
+
},
|
|
1488
|
+
lightDisabledBgColor: {
|
|
1489
|
+
type: String,
|
|
1490
|
+
default: "#dfdfd9"
|
|
1491
|
+
},
|
|
1492
|
+
// Cores do tema dark
|
|
1493
|
+
darkTextColor: {
|
|
1494
|
+
type: String,
|
|
1495
|
+
default: "#e0e0e0"
|
|
1496
|
+
},
|
|
1497
|
+
darkButtonColor: {
|
|
1498
|
+
type: String,
|
|
1499
|
+
default: "#2d2d2d"
|
|
1500
|
+
},
|
|
1501
|
+
darkBorderColor: {
|
|
1502
|
+
type: String,
|
|
1503
|
+
default: "#555555"
|
|
1504
|
+
},
|
|
1505
|
+
darkDisabledBgColor: {
|
|
1506
|
+
type: String,
|
|
1507
|
+
default: "rgba(40, 42, 54, 1)"
|
|
1218
1508
|
},
|
|
1219
1509
|
paddingX: {
|
|
1220
1510
|
type: Number,
|
|
@@ -1251,104 +1541,111 @@ const Mt = ["tabIndex"], Ut = ["id"], Gt = /* @__PURE__ */ Object.assign({
|
|
|
1251
1541
|
}
|
|
1252
1542
|
},
|
|
1253
1543
|
emits: ["clicked"],
|
|
1254
|
-
setup(e, { emit:
|
|
1255
|
-
|
|
1256
|
-
"
|
|
1257
|
-
|
|
1258
|
-
"
|
|
1259
|
-
|
|
1544
|
+
setup(e, { emit: l }) {
|
|
1545
|
+
xe((i) => ({
|
|
1546
|
+
"3be64e20": w.value,
|
|
1547
|
+
"210653ca": J.value,
|
|
1548
|
+
"336a5840": R.value,
|
|
1549
|
+
b91b2c7e: p.value,
|
|
1550
|
+
"0df1aa7b": K.value,
|
|
1551
|
+
"0ae98580": N.value,
|
|
1552
|
+
ad8409be: B.value,
|
|
1553
|
+
"13bd3bdb": z.value,
|
|
1554
|
+
"9e47a3a8": s.value,
|
|
1555
|
+
"4c7fe0e8": E.value
|
|
1260
1556
|
}));
|
|
1261
|
-
const X =
|
|
1262
|
-
display:
|
|
1263
|
-
ariaLabel:
|
|
1264
|
-
ariaAttrs:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1557
|
+
const X = l, ae = e, {
|
|
1558
|
+
display: q,
|
|
1559
|
+
ariaLabel: Q,
|
|
1560
|
+
ariaAttrs: y,
|
|
1561
|
+
theme: Y,
|
|
1562
|
+
lightTextColor: U,
|
|
1563
|
+
lightButtonColor: te,
|
|
1564
|
+
lightBorderColor: j,
|
|
1565
|
+
lightDisabledBgColor: Z,
|
|
1566
|
+
darkTextColor: F,
|
|
1567
|
+
darkButtonColor: G,
|
|
1568
|
+
darkBorderColor: ee,
|
|
1569
|
+
darkDisabledBgColor: W,
|
|
1570
|
+
paddingX: L,
|
|
1571
|
+
paddingY: V,
|
|
1572
|
+
borderRadius: I,
|
|
1573
|
+
disabled: b,
|
|
1574
|
+
fontFamily: T,
|
|
1575
|
+
fontSize: f,
|
|
1576
|
+
fontWeight: m
|
|
1577
|
+
} = Be(ae), d = t(() => {
|
|
1578
|
+
const i = b.value ? "component-disabled" : "", u = q.value !== "b" ? "inline-block" : "block", n = !L.value || L.value < 0 ? 1 : L.value, c = !V.value || V.value < 0 ? 0.2 : V.value, H = !I.value || I.value < 0 ? 0 : I.value, oe = T.value ? T.value : "'Lato', sans-serif", ie = f.value ? f.value : "1.6em", be = !m.value || m.value < 0 ? 200 : m.value;
|
|
1277
1579
|
return {
|
|
1278
1580
|
disabled: i,
|
|
1279
|
-
display:
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
font: c,
|
|
1287
|
-
fontSize: k,
|
|
1288
|
-
fontWeight: F
|
|
1581
|
+
display: u,
|
|
1582
|
+
paddingX: n,
|
|
1583
|
+
paddingY: c,
|
|
1584
|
+
borderRadius: H,
|
|
1585
|
+
font: oe,
|
|
1586
|
+
fontSize: ie,
|
|
1587
|
+
fontWeight: be
|
|
1289
1588
|
};
|
|
1290
|
-
}),
|
|
1291
|
-
display:
|
|
1292
|
-
})),
|
|
1293
|
-
const i =
|
|
1589
|
+
}), _ = t(() => d.value.disabled), S = t(() => ({
|
|
1590
|
+
display: d.value.display
|
|
1591
|
+
})), D = t(() => {
|
|
1592
|
+
const i = d.value;
|
|
1294
1593
|
return {
|
|
1295
|
-
color: i.textColor,
|
|
1296
1594
|
fontSize: i.fontSize,
|
|
1297
1595
|
fontWeight: i.fontWeight
|
|
1298
1596
|
};
|
|
1299
|
-
}),
|
|
1300
|
-
const i =
|
|
1597
|
+
}), P = t(() => {
|
|
1598
|
+
const i = d.value;
|
|
1301
1599
|
return {
|
|
1302
1600
|
padding: `${i.paddingY}rem ${i.paddingX}rem`,
|
|
1303
|
-
|
|
1304
|
-
borderRadius: h.value
|
|
1601
|
+
borderRadius: J.value
|
|
1305
1602
|
};
|
|
1306
|
-
}),
|
|
1603
|
+
}), J = t(() => `${d.value.borderRadius}rem`), w = t(() => d.value.font), x = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), R = t(() => U.value), K = t(() => te.value), p = t(() => j.value), s = t(() => Z.value), N = t(() => F.value), z = t(() => G.value), B = t(() => ee.value), E = t(() => W.value), h = t(() => {
|
|
1307
1604
|
const i = {};
|
|
1308
|
-
|
|
1309
|
-
const
|
|
1310
|
-
"aria-label":
|
|
1311
|
-
"aria-disabled":
|
|
1605
|
+
y.value && Object.keys(y.value).forEach((c) => i[`aria-${c}`] = y.value[c]);
|
|
1606
|
+
const u = {
|
|
1607
|
+
"aria-label": Q.value,
|
|
1608
|
+
"aria-disabled": b.value,
|
|
1312
1609
|
...i
|
|
1313
1610
|
};
|
|
1314
1611
|
return Object.fromEntries(
|
|
1315
|
-
Object.entries(
|
|
1612
|
+
Object.entries(u).filter(([n, c]) => c != null)
|
|
1316
1613
|
);
|
|
1317
|
-
}),
|
|
1614
|
+
}), r = () => {
|
|
1318
1615
|
X("clicked");
|
|
1319
1616
|
};
|
|
1320
|
-
return (i,
|
|
1617
|
+
return (i, u) => e.nbId ? (fe(), ve("div", Se({
|
|
1321
1618
|
key: 0,
|
|
1322
|
-
class: ["nb-wrapper",
|
|
1323
|
-
style: [
|
|
1619
|
+
class: ["nb-wrapper", _.value],
|
|
1620
|
+
style: [S.value],
|
|
1324
1621
|
tabIndex: e.tabIndex,
|
|
1325
1622
|
role: "button"
|
|
1326
|
-
},
|
|
1327
|
-
onClick:
|
|
1623
|
+
}, h.value, {
|
|
1624
|
+
onClick: r,
|
|
1328
1625
|
onKeydown: [
|
|
1329
|
-
|
|
1330
|
-
|
|
1626
|
+
u[0] || (u[0] = O(A((n) => !o(b) && e.hasTabIndexEnter && r(), ["prevent"]), ["enter"])),
|
|
1627
|
+
u[1] || (u[1] = O(A((n) => !o(b) && e.hasTabIndexSpace && r(), ["prevent"]), ["space"]))
|
|
1331
1628
|
]
|
|
1332
1629
|
}), [
|
|
1333
|
-
|
|
1630
|
+
de("div", {
|
|
1334
1631
|
id: e.nbId,
|
|
1335
|
-
class:
|
|
1336
|
-
style:
|
|
1632
|
+
class: pe(["nb-reset", "component", x.value]),
|
|
1633
|
+
style: se([D.value])
|
|
1337
1634
|
}, [
|
|
1338
|
-
|
|
1635
|
+
de("div", {
|
|
1339
1636
|
class: "component-content",
|
|
1340
|
-
style:
|
|
1637
|
+
style: se([P.value])
|
|
1341
1638
|
}, [
|
|
1342
|
-
|
|
1343
|
-
|
|
1639
|
+
he(i.$slots, "content", {}, () => [
|
|
1640
|
+
u[2] || (u[2] = Ce("Default Text"))
|
|
1344
1641
|
], !0)
|
|
1345
1642
|
], 4),
|
|
1346
|
-
|
|
1347
|
-
],
|
|
1348
|
-
], 16, Mt)) :
|
|
1643
|
+
u[3] || (u[3] = de("div", { class: "component-shadow" }, null, -1))
|
|
1644
|
+
], 14, qt)
|
|
1645
|
+
], 16, Mt)) : ye("", !0);
|
|
1349
1646
|
}
|
|
1350
|
-
}),
|
|
1351
|
-
const
|
|
1647
|
+
}), Gt = /* @__PURE__ */ ke(Ut, [["__scopeId", "data-v-81403966"]]);
|
|
1648
|
+
const Jt = ["tabIndex"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assign({
|
|
1352
1649
|
name: "NbButtonColorHover",
|
|
1353
1650
|
inheritAttrs: !1
|
|
1354
1651
|
}, {
|
|
@@ -1362,8 +1659,8 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
|
|
|
1362
1659
|
type: String,
|
|
1363
1660
|
default: "b",
|
|
1364
1661
|
validator: (e = "b") => {
|
|
1365
|
-
const
|
|
1366
|
-
return ["b", "ib"].includes(
|
|
1662
|
+
const l = e.toLowerCase();
|
|
1663
|
+
return ["b", "ib"].includes(l);
|
|
1367
1664
|
}
|
|
1368
1665
|
},
|
|
1369
1666
|
tabIndex: {
|
|
@@ -1386,10 +1683,6 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
|
|
|
1386
1683
|
type: Object,
|
|
1387
1684
|
default: () => ({})
|
|
1388
1685
|
},
|
|
1389
|
-
textColor: {
|
|
1390
|
-
type: String,
|
|
1391
|
-
default: "#ffffff"
|
|
1392
|
-
},
|
|
1393
1686
|
paddingX: {
|
|
1394
1687
|
type: Number,
|
|
1395
1688
|
default: 1,
|
|
@@ -1404,18 +1697,6 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
|
|
|
1404
1697
|
type: Number,
|
|
1405
1698
|
default: 0.375
|
|
1406
1699
|
},
|
|
1407
|
-
textColorHover: {
|
|
1408
|
-
type: String,
|
|
1409
|
-
default: "#cccccc"
|
|
1410
|
-
},
|
|
1411
|
-
buttonColor: {
|
|
1412
|
-
type: String,
|
|
1413
|
-
default: "#bbbbbb"
|
|
1414
|
-
},
|
|
1415
|
-
buttonColorHover: {
|
|
1416
|
-
type: String,
|
|
1417
|
-
default: "#959595"
|
|
1418
|
-
},
|
|
1419
1700
|
disabled: {
|
|
1420
1701
|
type: Boolean,
|
|
1421
1702
|
default: !1,
|
|
@@ -1434,103 +1715,166 @@ const Qt = ["tabIndex"], Zt = ["id"], ea = /* @__PURE__ */ Object.assign({
|
|
|
1434
1715
|
type: Number,
|
|
1435
1716
|
default: 400,
|
|
1436
1717
|
validator: (e) => e || 700
|
|
1718
|
+
},
|
|
1719
|
+
theme: {
|
|
1720
|
+
type: String,
|
|
1721
|
+
default: "light",
|
|
1722
|
+
validator: (e) => ["dark", "light"].indexOf(e) !== -1
|
|
1723
|
+
},
|
|
1724
|
+
// Cores do tema light
|
|
1725
|
+
lightButtonColor: {
|
|
1726
|
+
type: String,
|
|
1727
|
+
default: "#f5f5f5"
|
|
1728
|
+
},
|
|
1729
|
+
lightButtonColorHover: {
|
|
1730
|
+
type: String,
|
|
1731
|
+
default: "#e0e0e0"
|
|
1732
|
+
},
|
|
1733
|
+
lightTextColor: {
|
|
1734
|
+
type: String,
|
|
1735
|
+
default: "#333333"
|
|
1736
|
+
},
|
|
1737
|
+
lightTextColorHover: {
|
|
1738
|
+
type: String,
|
|
1739
|
+
default: "#000000"
|
|
1740
|
+
},
|
|
1741
|
+
lightDisabledBgColor: {
|
|
1742
|
+
type: String,
|
|
1743
|
+
default: "#dfdfd9"
|
|
1744
|
+
},
|
|
1745
|
+
// Cores do tema dark
|
|
1746
|
+
darkButtonColor: {
|
|
1747
|
+
type: String,
|
|
1748
|
+
default: "#2d2d2d"
|
|
1749
|
+
},
|
|
1750
|
+
darkButtonColorHover: {
|
|
1751
|
+
type: String,
|
|
1752
|
+
default: "#3d3d3d"
|
|
1753
|
+
},
|
|
1754
|
+
darkTextColor: {
|
|
1755
|
+
type: String,
|
|
1756
|
+
default: "#e0e0e0"
|
|
1757
|
+
},
|
|
1758
|
+
darkTextColorHover: {
|
|
1759
|
+
type: String,
|
|
1760
|
+
default: "#ffffff"
|
|
1761
|
+
},
|
|
1762
|
+
darkDisabledBgColor: {
|
|
1763
|
+
type: String,
|
|
1764
|
+
default: "rgba(40, 42, 54, 1)"
|
|
1437
1765
|
}
|
|
1438
1766
|
},
|
|
1439
1767
|
emits: ["clicked"],
|
|
1440
|
-
setup(e, { emit:
|
|
1441
|
-
|
|
1442
|
-
"
|
|
1443
|
-
"
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
"
|
|
1768
|
+
setup(e, { emit: l }) {
|
|
1769
|
+
xe((p) => ({
|
|
1770
|
+
"5def56df": w.value,
|
|
1771
|
+
"0338fad0": o(m),
|
|
1772
|
+
b01c552a: o(T),
|
|
1773
|
+
"426e204c": o(d),
|
|
1774
|
+
"4ca6a2de": o(f),
|
|
1775
|
+
"19566f60": o(V),
|
|
1776
|
+
"005042eb": o(W),
|
|
1777
|
+
"51d27a68": o(I),
|
|
1778
|
+
"32929dde": o(L),
|
|
1779
|
+
b0253dc8: o(_),
|
|
1780
|
+
af4de2c8: o(b)
|
|
1447
1781
|
}));
|
|
1448
|
-
const X =
|
|
1449
|
-
display:
|
|
1450
|
-
ariaLabel:
|
|
1451
|
-
ariaAttrs:
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1782
|
+
const X = l, ae = e, {
|
|
1783
|
+
display: q,
|
|
1784
|
+
ariaLabel: Q,
|
|
1785
|
+
ariaAttrs: y,
|
|
1786
|
+
paddingX: Y,
|
|
1787
|
+
paddingY: U,
|
|
1788
|
+
borderRadius: te,
|
|
1789
|
+
disabled: j,
|
|
1790
|
+
fontFamily: Z,
|
|
1791
|
+
fontSize: F,
|
|
1792
|
+
fontWeight: G,
|
|
1793
|
+
theme: ee,
|
|
1794
|
+
lightButtonColor: W,
|
|
1795
|
+
lightButtonColorHover: L,
|
|
1796
|
+
lightTextColor: V,
|
|
1797
|
+
lightTextColorHover: I,
|
|
1798
|
+
lightDisabledBgColor: b,
|
|
1799
|
+
darkButtonColor: T,
|
|
1800
|
+
darkButtonColorHover: f,
|
|
1801
|
+
darkTextColor: m,
|
|
1802
|
+
darkTextColorHover: d,
|
|
1803
|
+
darkDisabledBgColor: _
|
|
1804
|
+
} = Be(ae), S = t(() => {
|
|
1805
|
+
const p = j.value ? "component-disabled" : "", s = q.value !== "b" ? "inline-block" : "block", N = !Y.value || Y.value < 0 ? 1 : Y.value, z = !U.value || U.value < 0 ? 0.2 : U.value, B = !te.value || te.value < 0 ? 0 : te.value, E = Z.value ? Z.value : "'Lato', sans-serif", h = F.value ? F.value : "1.6rem", r = !G.value || G.value < 0 ? 100 : G.value, i = ee.value ? ee.value : "light";
|
|
1465
1806
|
return {
|
|
1466
|
-
disabled:
|
|
1467
|
-
display:
|
|
1468
|
-
font:
|
|
1469
|
-
fontSize:
|
|
1470
|
-
fontWeight:
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
textColorHover: F,
|
|
1476
|
-
buttonColor: G,
|
|
1477
|
-
buttonColorHover: le
|
|
1807
|
+
disabled: p,
|
|
1808
|
+
display: s,
|
|
1809
|
+
font: E,
|
|
1810
|
+
fontSize: h,
|
|
1811
|
+
fontWeight: r,
|
|
1812
|
+
paddingX: N,
|
|
1813
|
+
paddingY: z,
|
|
1814
|
+
borderRadius: B,
|
|
1815
|
+
theme: i
|
|
1478
1816
|
};
|
|
1479
|
-
}),
|
|
1480
|
-
const
|
|
1817
|
+
}), D = t(() => S.value.disabled), P = t(() => {
|
|
1818
|
+
const p = S.value;
|
|
1481
1819
|
return {
|
|
1482
|
-
display:
|
|
1483
|
-
borderRadius: `${
|
|
1820
|
+
display: p.display,
|
|
1821
|
+
borderRadius: `${p.borderRadius}rem`
|
|
1484
1822
|
};
|
|
1485
|
-
}),
|
|
1486
|
-
const
|
|
1823
|
+
}), J = t(() => {
|
|
1824
|
+
const p = S.value;
|
|
1487
1825
|
return {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
fontWeight: r.fontWeight
|
|
1826
|
+
padding: `${p.paddingY}rem ${p.paddingX}rem`,
|
|
1827
|
+
borderRadius: `${p.borderRadius}rem`,
|
|
1828
|
+
fontSize: p.fontSize,
|
|
1829
|
+
fontWeight: p.fontWeight
|
|
1493
1830
|
};
|
|
1494
|
-
}),
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1831
|
+
}), w = t(() => S.value.font), x = t(() => {
|
|
1832
|
+
switch (S.value.theme) {
|
|
1833
|
+
case "dark":
|
|
1834
|
+
return "component__theme--dark";
|
|
1835
|
+
default:
|
|
1836
|
+
return "component__theme--light";
|
|
1837
|
+
}
|
|
1838
|
+
}), R = t(() => {
|
|
1839
|
+
const p = {};
|
|
1840
|
+
y.value && Object.keys(y.value).forEach((z) => p[`aria-${z}`] = y.value[z]);
|
|
1841
|
+
const s = {
|
|
1842
|
+
"aria-label": Q.value,
|
|
1843
|
+
"aria-disabled": j.value,
|
|
1844
|
+
...p
|
|
1501
1845
|
};
|
|
1502
1846
|
return Object.fromEntries(
|
|
1503
|
-
Object.entries(
|
|
1847
|
+
Object.entries(s).filter(([N, z]) => z != null)
|
|
1504
1848
|
);
|
|
1505
|
-
}),
|
|
1849
|
+
}), K = () => {
|
|
1506
1850
|
X("clicked");
|
|
1507
1851
|
};
|
|
1508
|
-
return (
|
|
1852
|
+
return (p, s) => e.nbId ? (fe(), ve("div", Se({
|
|
1509
1853
|
key: 0,
|
|
1510
|
-
class: ["nb-wrapper",
|
|
1511
|
-
style: [
|
|
1854
|
+
class: ["nb-wrapper", D.value],
|
|
1855
|
+
style: [P.value],
|
|
1512
1856
|
tabIndex: e.tabIndex,
|
|
1513
1857
|
role: "button"
|
|
1514
|
-
},
|
|
1515
|
-
onClick:
|
|
1858
|
+
}, R.value, {
|
|
1859
|
+
onClick: K,
|
|
1516
1860
|
onKeydown: [
|
|
1517
|
-
|
|
1518
|
-
|
|
1861
|
+
s[0] || (s[0] = O(A((N) => !o(j) && e.hasTabIndexEnter && K(), ["prevent"]), ["enter"])),
|
|
1862
|
+
s[1] || (s[1] = O(A((N) => !o(j) && e.hasTabIndexSpace && K(), ["prevent"]), ["space"]))
|
|
1519
1863
|
]
|
|
1520
1864
|
}), [
|
|
1521
|
-
|
|
1865
|
+
de("div", {
|
|
1522
1866
|
id: e.nbId,
|
|
1523
|
-
class: "nb-reset component component-transition",
|
|
1524
|
-
style:
|
|
1867
|
+
class: pe(["nb-reset component component-transition", [x.value]]),
|
|
1868
|
+
style: se([J.value])
|
|
1525
1869
|
}, [
|
|
1526
|
-
|
|
1527
|
-
|
|
1870
|
+
he(p.$slots, "content", {}, () => [
|
|
1871
|
+
s[2] || (s[2] = Ce("Default Text"))
|
|
1528
1872
|
], !0)
|
|
1529
|
-
],
|
|
1530
|
-
], 16,
|
|
1873
|
+
], 14, Qt)
|
|
1874
|
+
], 16, Jt)) : ye("", !0);
|
|
1531
1875
|
}
|
|
1532
|
-
}),
|
|
1533
|
-
const
|
|
1876
|
+
}), ea = /* @__PURE__ */ ke(Zt, [["__scopeId", "data-v-055e6db9"]]);
|
|
1877
|
+
const ta = ["tabIndex"], aa = ["id"], la = { class: "first-child" }, oa = { class: "last-child" }, na = /* @__PURE__ */ Object.assign({
|
|
1534
1878
|
name: "NbButtonAlternateText",
|
|
1535
1879
|
inheritAttrs: !1
|
|
1536
1880
|
}, {
|
|
@@ -1544,8 +1888,8 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
|
|
|
1544
1888
|
type: String,
|
|
1545
1889
|
default: "b",
|
|
1546
1890
|
validator: (e = "b") => {
|
|
1547
|
-
const
|
|
1548
|
-
return ["b", "ib"].includes(
|
|
1891
|
+
const l = e ? e.toLowerCase() : "";
|
|
1892
|
+
return ["b", "ib"].includes(l);
|
|
1549
1893
|
}
|
|
1550
1894
|
},
|
|
1551
1895
|
tabIndex: {
|
|
@@ -1568,25 +1912,63 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
|
|
|
1568
1912
|
type: Object,
|
|
1569
1913
|
default: () => ({})
|
|
1570
1914
|
},
|
|
1571
|
-
|
|
1915
|
+
theme: {
|
|
1572
1916
|
type: String,
|
|
1573
|
-
default: "
|
|
1917
|
+
default: "light",
|
|
1918
|
+
validator: (e) => {
|
|
1919
|
+
const l = e ? e.toLowerCase() : "";
|
|
1920
|
+
return ["light", "dark"].includes(l);
|
|
1921
|
+
}
|
|
1574
1922
|
},
|
|
1575
|
-
|
|
1923
|
+
// Cores do tema light
|
|
1924
|
+
lightTextColor: {
|
|
1925
|
+
type: String,
|
|
1926
|
+
default: "#333333"
|
|
1927
|
+
},
|
|
1928
|
+
lightTextColorHover: {
|
|
1576
1929
|
type: String,
|
|
1577
1930
|
default: "#000000"
|
|
1578
1931
|
},
|
|
1579
|
-
|
|
1932
|
+
lightButtonColor: {
|
|
1933
|
+
type: String,
|
|
1934
|
+
default: "#f5f5f5"
|
|
1935
|
+
},
|
|
1936
|
+
lightButtonColorHover: {
|
|
1937
|
+
type: String,
|
|
1938
|
+
default: "#e0e0e0"
|
|
1939
|
+
},
|
|
1940
|
+
lightBorderColor: {
|
|
1941
|
+
type: String,
|
|
1942
|
+
default: "#cccccc"
|
|
1943
|
+
},
|
|
1944
|
+
lightDisabledBgColor: {
|
|
1945
|
+
type: String,
|
|
1946
|
+
default: "#dfdfd9"
|
|
1947
|
+
},
|
|
1948
|
+
// Cores do tema dark
|
|
1949
|
+
darkTextColor: {
|
|
1950
|
+
type: String,
|
|
1951
|
+
default: "#e0e0e0"
|
|
1952
|
+
},
|
|
1953
|
+
darkTextColorHover: {
|
|
1580
1954
|
type: String,
|
|
1581
1955
|
default: "#ffffff"
|
|
1582
1956
|
},
|
|
1583
|
-
|
|
1957
|
+
darkButtonColor: {
|
|
1584
1958
|
type: String,
|
|
1585
|
-
default: "
|
|
1959
|
+
default: "#2d2d2d"
|
|
1586
1960
|
},
|
|
1587
|
-
|
|
1961
|
+
darkButtonColorHover: {
|
|
1588
1962
|
type: String,
|
|
1589
|
-
default: "#
|
|
1963
|
+
default: "#3d3d3d"
|
|
1964
|
+
},
|
|
1965
|
+
darkBorderColor: {
|
|
1966
|
+
type: String,
|
|
1967
|
+
default: "#555555"
|
|
1968
|
+
},
|
|
1969
|
+
darkDisabledBgColor: {
|
|
1970
|
+
type: String,
|
|
1971
|
+
default: "rgba(40, 42, 54, 1)"
|
|
1590
1972
|
},
|
|
1591
1973
|
showBorder: {
|
|
1592
1974
|
type: Boolean,
|
|
@@ -1633,112 +2015,122 @@ const aa = ["tabIndex"], oa = ["id"], la = { class: "first-child" }, na = { clas
|
|
|
1633
2015
|
}
|
|
1634
2016
|
},
|
|
1635
2017
|
emits: ["clicked"],
|
|
1636
|
-
setup(e, { emit:
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
"
|
|
2018
|
+
setup(e, { emit: l }) {
|
|
2019
|
+
xe((M) => ({
|
|
2020
|
+
"5956052a": p.value,
|
|
2021
|
+
da8cae9e: B.value,
|
|
2022
|
+
"283a67f7": h.value,
|
|
2023
|
+
"7248e796": N.value,
|
|
2024
|
+
"235d8174": z.value,
|
|
2025
|
+
"1943f70b": E.value,
|
|
2026
|
+
"07819ee5": n.value,
|
|
2027
|
+
c5fb43aa: H.value,
|
|
2028
|
+
"757e4a6c": i.value,
|
|
2029
|
+
"3fd5a6dc": u.value,
|
|
2030
|
+
ac7c7d52: c.value,
|
|
2031
|
+
"786e2162": r.value,
|
|
2032
|
+
"81b044d4": oe.value
|
|
1642
2033
|
}));
|
|
1643
|
-
const X =
|
|
1644
|
-
display:
|
|
1645
|
-
ariaLabel:
|
|
1646
|
-
ariaAttrs:
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2034
|
+
const X = l, ae = e, {
|
|
2035
|
+
display: q,
|
|
2036
|
+
ariaLabel: Q,
|
|
2037
|
+
ariaAttrs: y,
|
|
2038
|
+
theme: Y,
|
|
2039
|
+
lightTextColor: U,
|
|
2040
|
+
lightTextColorHover: te,
|
|
2041
|
+
lightButtonColor: j,
|
|
2042
|
+
lightButtonColorHover: Z,
|
|
2043
|
+
lightBorderColor: F,
|
|
2044
|
+
lightDisabledBgColor: G,
|
|
2045
|
+
darkTextColor: ee,
|
|
2046
|
+
darkTextColorHover: W,
|
|
2047
|
+
darkButtonColor: L,
|
|
2048
|
+
darkButtonColorHover: V,
|
|
2049
|
+
darkBorderColor: I,
|
|
2050
|
+
darkDisabledBgColor: b,
|
|
2051
|
+
showBorder: T,
|
|
2052
|
+
borderRadius: f,
|
|
2053
|
+
width: m,
|
|
2054
|
+
paddingX: d,
|
|
2055
|
+
paddingY: _,
|
|
2056
|
+
disabled: S,
|
|
2057
|
+
fontFamily: D,
|
|
2058
|
+
fontSize: P,
|
|
2059
|
+
fontWeight: J
|
|
2060
|
+
} = Be(ae), w = t(() => {
|
|
2061
|
+
const M = S.value ? "component-disabled" : "", v = q.value !== "b" ? "inline-block" : "block", g = !f.value || f.value < 0 ? 0 : f.value, le = [!1, !0].includes(T.value) ? T.value : !0, $ = !m.value || m.value < 86 ? 86 : m.value, k = !d.value || d.value < 0 ? 1 : d.value, ue = !_.value || _.value < 0 ? 0.4 : _.value, ne = D.value ? D.value : "'Lato', sans-serif", me = P.value ? P.value : "1.6em", ge = !J.value || J.value < 0 ? 200 : J.value;
|
|
1663
2062
|
return {
|
|
1664
|
-
disabled:
|
|
1665
|
-
display:
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
textColor: F,
|
|
1672
|
-
textHoverColor: G,
|
|
1673
|
-
width: le,
|
|
1674
|
-
paddingX: ae,
|
|
1675
|
-
paddingY: K,
|
|
2063
|
+
disabled: M,
|
|
2064
|
+
display: v,
|
|
2065
|
+
showBorder: le,
|
|
2066
|
+
borderRadius: g,
|
|
2067
|
+
width: $,
|
|
2068
|
+
paddingX: k,
|
|
2069
|
+
paddingY: ue,
|
|
1676
2070
|
font: ne,
|
|
1677
|
-
fontSize:
|
|
1678
|
-
fontWeight:
|
|
2071
|
+
fontSize: me,
|
|
2072
|
+
fontWeight: ge
|
|
1679
2073
|
};
|
|
1680
|
-
}),
|
|
1681
|
-
display:
|
|
1682
|
-
})),
|
|
1683
|
-
const
|
|
2074
|
+
}), x = t(() => w.value.disabled), R = t(() => ({
|
|
2075
|
+
display: w.value.display
|
|
2076
|
+
})), K = t(() => {
|
|
2077
|
+
const M = w.value, v = M.display === "block" ? "auto" : `${M.width}px`;
|
|
1684
2078
|
return {
|
|
1685
|
-
|
|
1686
|
-
borderRadius: `${o.borderRadius}rem`,
|
|
1687
|
-
background: o.buttonColor,
|
|
2079
|
+
borderRadius: `${M.borderRadius}rem`,
|
|
1688
2080
|
minWidth: "33px",
|
|
1689
|
-
width:
|
|
1690
|
-
padding: `${
|
|
2081
|
+
width: v,
|
|
2082
|
+
padding: `${M.paddingY}rem ${M.paddingX}rem`,
|
|
1691
2083
|
lineHeight: "1.42857143",
|
|
1692
|
-
fontSize:
|
|
1693
|
-
fontWeight:
|
|
2084
|
+
fontSize: M.fontSize,
|
|
2085
|
+
fontWeight: M.fontWeight
|
|
1694
2086
|
};
|
|
1695
|
-
}),
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
const
|
|
1699
|
-
"aria-label":
|
|
1700
|
-
"aria-disabled":
|
|
1701
|
-
...
|
|
2087
|
+
}), p = t(() => w.value.font), s = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), N = t(() => U.value), z = t(() => te.value), B = t(() => j.value), E = t(() => Z.value), h = t(() => F.value), r = t(() => G.value), i = t(() => ee.value), u = t(() => W.value), n = t(() => L.value), c = t(() => V.value), H = t(() => I.value), oe = t(() => b.value), ie = t(() => {
|
|
2088
|
+
const M = {};
|
|
2089
|
+
y.value && Object.keys(y.value).forEach((le) => M[`aria-${le}`] = y.value[le]);
|
|
2090
|
+
const v = {
|
|
2091
|
+
"aria-label": Q.value,
|
|
2092
|
+
"aria-disabled": S.value,
|
|
2093
|
+
...M
|
|
1702
2094
|
};
|
|
1703
2095
|
return Object.fromEntries(
|
|
1704
|
-
Object.entries(
|
|
2096
|
+
Object.entries(v).filter(([g, le]) => le != null)
|
|
1705
2097
|
);
|
|
1706
|
-
}),
|
|
2098
|
+
}), be = () => {
|
|
1707
2099
|
X("clicked");
|
|
1708
2100
|
};
|
|
1709
|
-
return (
|
|
2101
|
+
return (M, v) => e.nbId ? (fe(), ve("div", Se({
|
|
1710
2102
|
key: 0,
|
|
1711
|
-
class: ["nb-wrapper",
|
|
2103
|
+
class: ["nb-wrapper", x.value],
|
|
1712
2104
|
style: [R.value],
|
|
1713
2105
|
tabIndex: e.tabIndex,
|
|
1714
2106
|
role: "button"
|
|
1715
|
-
},
|
|
1716
|
-
onClick:
|
|
2107
|
+
}, ie.value, {
|
|
2108
|
+
onClick: be,
|
|
1717
2109
|
onKeydown: [
|
|
1718
|
-
|
|
1719
|
-
|
|
2110
|
+
v[0] || (v[0] = O(A((g) => !o(S) && e.hasTabIndexEnter && be(), ["prevent"]), ["enter"])),
|
|
2111
|
+
v[1] || (v[1] = O(A((g) => !o(S) && e.hasTabIndexSpace && be(), ["prevent"]), ["space"]))
|
|
1720
2112
|
]
|
|
1721
2113
|
}), [
|
|
1722
|
-
|
|
2114
|
+
de("div", {
|
|
1723
2115
|
id: e.nbId,
|
|
1724
|
-
class:
|
|
1725
|
-
style:
|
|
2116
|
+
class: pe(["nb-reset", "component", s.value, { "component--no-border": !o(T) }]),
|
|
2117
|
+
style: se([K.value])
|
|
1726
2118
|
}, [
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
2119
|
+
de("div", la, [
|
|
2120
|
+
he(M.$slots, "content", {}, () => [
|
|
2121
|
+
v[2] || (v[2] = Ce("Default Text"))
|
|
1730
2122
|
], !0)
|
|
1731
2123
|
]),
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
2124
|
+
de("div", oa, [
|
|
2125
|
+
he(M.$slots, "content", {}, () => [
|
|
2126
|
+
v[3] || (v[3] = Ce("Default Text"))
|
|
1735
2127
|
], !0)
|
|
1736
2128
|
])
|
|
1737
|
-
],
|
|
1738
|
-
], 16,
|
|
2129
|
+
], 14, aa)
|
|
2130
|
+
], 16, ta)) : ye("", !0);
|
|
1739
2131
|
}
|
|
1740
|
-
}), ra = /* @__PURE__ */
|
|
1741
|
-
const
|
|
2132
|
+
}), ra = /* @__PURE__ */ ke(na, [["__scopeId", "data-v-374312ab"]]);
|
|
2133
|
+
const ua = ["tabIndex"], da = ["id"], ia = /* @__PURE__ */ Object.assign({
|
|
1742
2134
|
name: "NbButtonBack",
|
|
1743
2135
|
inheritAttrs: !1
|
|
1744
2136
|
}, {
|
|
@@ -1768,13 +2160,39 @@ const da = ["tabIndex"], sa = ["id"], ia = /* @__PURE__ */ Object.assign({
|
|
|
1768
2160
|
type: Object,
|
|
1769
2161
|
default: () => ({})
|
|
1770
2162
|
},
|
|
1771
|
-
|
|
2163
|
+
theme: {
|
|
1772
2164
|
type: String,
|
|
1773
|
-
default: "
|
|
2165
|
+
default: "light",
|
|
2166
|
+
validator: (e) => {
|
|
2167
|
+
const l = e ? e.toLowerCase() : "";
|
|
2168
|
+
return ["light", "dark"].includes(l);
|
|
2169
|
+
}
|
|
1774
2170
|
},
|
|
1775
|
-
|
|
2171
|
+
// Cores do tema light
|
|
2172
|
+
lightColor: {
|
|
1776
2173
|
type: String,
|
|
1777
|
-
default: "#
|
|
2174
|
+
default: "#333333"
|
|
2175
|
+
},
|
|
2176
|
+
lightTextColor: {
|
|
2177
|
+
type: String,
|
|
2178
|
+
default: "#333333"
|
|
2179
|
+
},
|
|
2180
|
+
lightDisabledBgColor: {
|
|
2181
|
+
type: String,
|
|
2182
|
+
default: "#dfdfd9"
|
|
2183
|
+
},
|
|
2184
|
+
// Cores do tema dark
|
|
2185
|
+
darkColor: {
|
|
2186
|
+
type: String,
|
|
2187
|
+
default: "#ffffff"
|
|
2188
|
+
},
|
|
2189
|
+
darkTextColor: {
|
|
2190
|
+
type: String,
|
|
2191
|
+
default: "#ffffff"
|
|
2192
|
+
},
|
|
2193
|
+
darkDisabledBgColor: {
|
|
2194
|
+
type: String,
|
|
2195
|
+
default: "rgba(40, 42, 54, 1)"
|
|
1778
2196
|
},
|
|
1779
2197
|
text: {
|
|
1780
2198
|
type: String,
|
|
@@ -1801,89 +2219,98 @@ const da = ["tabIndex"], sa = ["id"], ia = /* @__PURE__ */ Object.assign({
|
|
|
1801
2219
|
}
|
|
1802
2220
|
},
|
|
1803
2221
|
emits: ["clicked"],
|
|
1804
|
-
setup(e, { emit:
|
|
1805
|
-
|
|
1806
|
-
"
|
|
1807
|
-
"
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
2222
|
+
setup(e, { emit: l }) {
|
|
2223
|
+
xe((x) => ({
|
|
2224
|
+
"0236f7b6": S.value,
|
|
2225
|
+
"2ceb0b8a": m.value,
|
|
2226
|
+
bcfa5292: f.value,
|
|
2227
|
+
"16df2f54": _.value,
|
|
2228
|
+
"1ee30cfa": d.value
|
|
2229
|
+
})), Ee(() => {
|
|
2230
|
+
J();
|
|
1811
2231
|
});
|
|
1812
|
-
const X =
|
|
1813
|
-
ariaLabel:
|
|
1814
|
-
ariaAttrs:
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
2232
|
+
const X = l, ae = e, {
|
|
2233
|
+
ariaLabel: q,
|
|
2234
|
+
ariaAttrs: Q,
|
|
2235
|
+
theme: y,
|
|
2236
|
+
lightColor: Y,
|
|
2237
|
+
lightTextColor: U,
|
|
2238
|
+
lightDisabledBgColor: te,
|
|
2239
|
+
darkColor: j,
|
|
2240
|
+
darkTextColor: Z,
|
|
2241
|
+
darkDisabledBgColor: F,
|
|
2242
|
+
disabled: G,
|
|
2243
|
+
fontFamily: ee,
|
|
2244
|
+
fontSize: W,
|
|
2245
|
+
fontWeight: L
|
|
2246
|
+
} = Be(ae), V = t(() => {
|
|
2247
|
+
const x = G.value ? "component-disabled" : "", R = ee.value ? ee.value : "'Lato', sans-serif", K = W.value ? W.value : "1.6em", p = !L.value || L.value < 0 ? 400 : L.value;
|
|
1823
2248
|
return {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
font: $,
|
|
1827
|
-
fontSize: g,
|
|
2249
|
+
font: R,
|
|
2250
|
+
fontSize: K,
|
|
1828
2251
|
fontWeight: p,
|
|
1829
|
-
disabled:
|
|
2252
|
+
disabled: x
|
|
1830
2253
|
};
|
|
1831
|
-
}),
|
|
1832
|
-
const
|
|
2254
|
+
}), I = t(() => ({})), b = t(() => {
|
|
2255
|
+
const x = V.value;
|
|
1833
2256
|
return {
|
|
1834
|
-
fontSize:
|
|
1835
|
-
fontWeight:
|
|
2257
|
+
fontSize: x.fontSize,
|
|
2258
|
+
fontWeight: x.fontWeight
|
|
1836
2259
|
};
|
|
1837
|
-
}),
|
|
1838
|
-
|
|
1839
|
-
|
|
2260
|
+
}), T = t(() => y.value === "dark" ? "component__theme--dark" : "component__theme--light"), f = t(() => Y.value), m = t(() => U.value);
|
|
2261
|
+
t(() => te.value);
|
|
2262
|
+
const d = t(() => j.value), _ = t(() => Z.value);
|
|
2263
|
+
t(() => F.value);
|
|
2264
|
+
const S = t(() => V.value.font), D = t(() => V.value.disabled), P = t(() => {
|
|
2265
|
+
const x = {};
|
|
2266
|
+
Q.value && Object.keys(Q.value).forEach((p) => x[`aria-${p}`] = Q.value[p]);
|
|
1840
2267
|
const R = {
|
|
1841
|
-
"aria-label":
|
|
1842
|
-
"aria-disabled":
|
|
1843
|
-
...
|
|
2268
|
+
"aria-label": q.value,
|
|
2269
|
+
"aria-disabled": G.value,
|
|
2270
|
+
...x
|
|
1844
2271
|
};
|
|
1845
2272
|
return Object.fromEntries(
|
|
1846
|
-
Object.entries(R).filter(([
|
|
2273
|
+
Object.entries(R).filter(([K, p]) => p != null)
|
|
1847
2274
|
);
|
|
1848
|
-
}),
|
|
1849
|
-
},
|
|
2275
|
+
}), J = () => {
|
|
2276
|
+
}, w = () => {
|
|
1850
2277
|
X("clicked");
|
|
1851
2278
|
};
|
|
1852
|
-
return (
|
|
2279
|
+
return (x, R) => e.nbId ? (fe(), ve("div", Se({
|
|
1853
2280
|
key: 0,
|
|
1854
|
-
class: ["nb-wrapper",
|
|
1855
|
-
style: [
|
|
2281
|
+
class: ["nb-wrapper", D.value],
|
|
2282
|
+
style: [I.value],
|
|
1856
2283
|
tabIndex: e.tabIndex,
|
|
1857
2284
|
role: "button"
|
|
1858
|
-
},
|
|
1859
|
-
onClick:
|
|
2285
|
+
}, P.value, {
|
|
2286
|
+
onClick: w,
|
|
1860
2287
|
onKeydown: [
|
|
1861
|
-
R[0] || (R[0] =
|
|
1862
|
-
R[1] || (R[1] =
|
|
2288
|
+
R[0] || (R[0] = O(A((K) => !o(G) && e.hasTabIndexEnter && w(), ["prevent"]), ["enter"])),
|
|
2289
|
+
R[1] || (R[1] = O(A((K) => !o(G) && e.hasTabIndexSpace && w(), ["prevent"]), ["space"]))
|
|
1863
2290
|
]
|
|
1864
2291
|
}), [
|
|
1865
|
-
|
|
2292
|
+
de("div", {
|
|
1866
2293
|
id: e.nbId,
|
|
1867
|
-
class:
|
|
1868
|
-
style:
|
|
2294
|
+
class: pe(["nb-reset", "component", T.value]),
|
|
2295
|
+
style: se([b.value])
|
|
1869
2296
|
}, [
|
|
1870
|
-
R[2] || (R[2] =
|
|
2297
|
+
R[2] || (R[2] = de("svg", {
|
|
1871
2298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1872
2299
|
width: "1em",
|
|
1873
2300
|
height: "1em",
|
|
1874
2301
|
viewBox: "0 0 16 16"
|
|
1875
2302
|
}, [
|
|
1876
|
-
|
|
2303
|
+
de("path", {
|
|
1877
2304
|
d: "M14 8a.75.75 0 01-.75.75H4.56l1.22 1.22a.75.75 0 11-1.06 1.06l-2.5-2.5a.75.75 0 010-1.06l2.5-2.5a.75.75 0 111.06 1.06L4.56 7.25h8.69A.75.75 0 0114 8z",
|
|
1878
2305
|
"clip-rule": "evenodd"
|
|
1879
2306
|
})
|
|
1880
2307
|
], -1)),
|
|
1881
|
-
|
|
1882
|
-
],
|
|
1883
|
-
], 16,
|
|
2308
|
+
de("span", null, We(e.text), 1)
|
|
2309
|
+
], 14, da)
|
|
2310
|
+
], 16, ua)) : ye("", !0);
|
|
1884
2311
|
}
|
|
1885
|
-
}),
|
|
1886
|
-
const ca = ["tabIndex"],
|
|
2312
|
+
}), sa = /* @__PURE__ */ ke(ia, [["__scopeId", "data-v-88b676fd"]]);
|
|
2313
|
+
const ca = ["tabIndex"], fa = ["id"], va = /* @__PURE__ */ Object.assign({
|
|
1887
2314
|
name: "NbButtonGradientBorderToBackground",
|
|
1888
2315
|
inheritAttrs: !1
|
|
1889
2316
|
}, {
|
|
@@ -1897,8 +2324,8 @@ const ca = ["tabIndex"], va = ["id"], ba = /* @__PURE__ */ Object.assign({
|
|
|
1897
2324
|
type: String,
|
|
1898
2325
|
default: "b",
|
|
1899
2326
|
validator: (e = "b") => {
|
|
1900
|
-
const
|
|
1901
|
-
return ["b", "ib"].includes(
|
|
2327
|
+
const l = e ? e.toLowerCase() : "";
|
|
2328
|
+
return ["b", "ib"].includes(l);
|
|
1902
2329
|
}
|
|
1903
2330
|
},
|
|
1904
2331
|
tabIndex: {
|
|
@@ -1986,107 +2413,107 @@ const ca = ["tabIndex"], va = ["id"], ba = /* @__PURE__ */ Object.assign({
|
|
|
1986
2413
|
}
|
|
1987
2414
|
},
|
|
1988
2415
|
emits: ["clicked"],
|
|
1989
|
-
setup(e, { emit:
|
|
1990
|
-
|
|
1991
|
-
"91fb25f6":
|
|
1992
|
-
"2e8b8896":
|
|
1993
|
-
"0c6b7cbb":
|
|
1994
|
-
"5367398e":
|
|
1995
|
-
"13c73054":
|
|
1996
|
-
c4c5b5a2:
|
|
1997
|
-
"478b3e46":
|
|
2416
|
+
setup(e, { emit: l }) {
|
|
2417
|
+
xe((s) => ({
|
|
2418
|
+
"91fb25f6": S.value,
|
|
2419
|
+
"2e8b8896": x.value,
|
|
2420
|
+
"0c6b7cbb": J.value,
|
|
2421
|
+
"5367398e": P.value,
|
|
2422
|
+
"13c73054": D.value,
|
|
2423
|
+
c4c5b5a2: w.value,
|
|
2424
|
+
"478b3e46": R.value
|
|
1998
2425
|
}));
|
|
1999
|
-
const X =
|
|
2000
|
-
display:
|
|
2001
|
-
ariaLabel:
|
|
2002
|
-
ariaAttrs:
|
|
2003
|
-
buttonColor:
|
|
2004
|
-
borderColor:
|
|
2005
|
-
buttonHoverColor:
|
|
2006
|
-
showBorder:
|
|
2007
|
-
borderRadius:
|
|
2008
|
-
textColor:
|
|
2009
|
-
textHoverColor:
|
|
2010
|
-
width:
|
|
2011
|
-
paddingX:
|
|
2012
|
-
paddingY:
|
|
2013
|
-
disabled:
|
|
2014
|
-
fontFamily:
|
|
2015
|
-
fontSize:
|
|
2016
|
-
fontWeight:
|
|
2017
|
-
} =
|
|
2018
|
-
const
|
|
2426
|
+
const X = l, ae = e, {
|
|
2427
|
+
display: q,
|
|
2428
|
+
ariaLabel: Q,
|
|
2429
|
+
ariaAttrs: y,
|
|
2430
|
+
buttonColor: Y,
|
|
2431
|
+
borderColor: U,
|
|
2432
|
+
buttonHoverColor: te,
|
|
2433
|
+
showBorder: j,
|
|
2434
|
+
borderRadius: Z,
|
|
2435
|
+
textColor: F,
|
|
2436
|
+
textHoverColor: G,
|
|
2437
|
+
width: ee,
|
|
2438
|
+
paddingX: W,
|
|
2439
|
+
paddingY: L,
|
|
2440
|
+
disabled: V,
|
|
2441
|
+
fontFamily: I,
|
|
2442
|
+
fontSize: b,
|
|
2443
|
+
fontWeight: T
|
|
2444
|
+
} = Be(ae), f = t(() => {
|
|
2445
|
+
const s = V.value ? "component-disabled" : "", N = q.value !== "b" ? "inline-block" : "block", z = Y.value ? Y.value : "#ffffff", B = te.value ? te.value : "#000000", E = U.value ? U.value : "#ffe54c", h = !Z.value || Z.value < 0 ? 0 : Z.value, r = [!1, !0].includes(j.value) ? j.value : !0, i = F.value ? F.value : "#ffffff", u = G.value ? G.value : "#000000", n = !ee.value || ee.value < 86 ? 86 : ee.value, c = !W.value || W.value < 0 ? 1 : W.value, H = !L.value || L.value < 0 ? 0.2 : L.value, oe = I.value ? I.value : "'Lato', sans-serif", ie = b.value ? b.value : "1.6em", be = !T.value || T.value < 0 ? 200 : T.value;
|
|
2019
2446
|
return {
|
|
2020
|
-
disabled:
|
|
2021
|
-
display:
|
|
2022
|
-
buttonColor:
|
|
2023
|
-
buttonHoverColor:
|
|
2024
|
-
borderColor:
|
|
2025
|
-
showBorder:
|
|
2026
|
-
borderRadius:
|
|
2027
|
-
textColor:
|
|
2028
|
-
textHoverColor:
|
|
2029
|
-
width:
|
|
2030
|
-
paddingX:
|
|
2031
|
-
paddingY:
|
|
2032
|
-
font:
|
|
2033
|
-
fontSize:
|
|
2034
|
-
fontWeight:
|
|
2447
|
+
disabled: s,
|
|
2448
|
+
display: N,
|
|
2449
|
+
buttonColor: z,
|
|
2450
|
+
buttonHoverColor: B,
|
|
2451
|
+
borderColor: E,
|
|
2452
|
+
showBorder: r,
|
|
2453
|
+
borderRadius: h,
|
|
2454
|
+
textColor: i,
|
|
2455
|
+
textHoverColor: u,
|
|
2456
|
+
width: n,
|
|
2457
|
+
paddingX: c,
|
|
2458
|
+
paddingY: H,
|
|
2459
|
+
font: oe,
|
|
2460
|
+
fontSize: ie,
|
|
2461
|
+
fontWeight: be
|
|
2035
2462
|
};
|
|
2036
|
-
}),
|
|
2037
|
-
display:
|
|
2038
|
-
})),
|
|
2039
|
-
const
|
|
2463
|
+
}), m = t(() => f.value.disabled), d = t(() => ({
|
|
2464
|
+
display: f.value.display
|
|
2465
|
+
})), _ = t(() => {
|
|
2466
|
+
const s = f.value;
|
|
2040
2467
|
return {
|
|
2041
2468
|
minWidth: "33px",
|
|
2042
|
-
width:
|
|
2469
|
+
width: s.display === "block" ? "auto" : `${s.width}px`,
|
|
2043
2470
|
lineHeight: "1.42857143",
|
|
2044
|
-
fontSize:
|
|
2045
|
-
fontWeight:
|
|
2471
|
+
fontSize: s.fontSize,
|
|
2472
|
+
fontWeight: s.fontWeight
|
|
2046
2473
|
};
|
|
2047
|
-
}),
|
|
2048
|
-
const
|
|
2049
|
-
return `${
|
|
2050
|
-
}),
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2053
|
-
const
|
|
2054
|
-
"aria-label":
|
|
2055
|
-
"aria-disabled":
|
|
2056
|
-
...
|
|
2474
|
+
}), S = t(() => f.value.font), D = t(() => {
|
|
2475
|
+
const s = f.value;
|
|
2476
|
+
return `${s.paddingY}rem ${s.paddingX}rem`;
|
|
2477
|
+
}), P = t(() => `${f.value.borderRadius}rem`), J = t(() => f.value.textColor), w = t(() => f.value.textHoverColor), x = t(() => f.value.buttonColor), R = t(() => f.value.buttonHoverColor), K = t(() => {
|
|
2478
|
+
const s = {};
|
|
2479
|
+
y.value && Object.keys(y.value).forEach((B) => s[`aria-${B}`] = y.value[B]);
|
|
2480
|
+
const N = {
|
|
2481
|
+
"aria-label": Q.value,
|
|
2482
|
+
"aria-disabled": V.value,
|
|
2483
|
+
...s
|
|
2057
2484
|
};
|
|
2058
2485
|
return Object.fromEntries(
|
|
2059
|
-
Object.entries(
|
|
2486
|
+
Object.entries(N).filter(([z, B]) => B != null)
|
|
2060
2487
|
);
|
|
2061
|
-
}),
|
|
2488
|
+
}), p = () => {
|
|
2062
2489
|
X("clicked");
|
|
2063
2490
|
};
|
|
2064
|
-
return (
|
|
2491
|
+
return (s, N) => e.nbId ? (fe(), ve("div", Se({
|
|
2065
2492
|
key: 0,
|
|
2066
|
-
class: ["nb-wrapper",
|
|
2067
|
-
style: [
|
|
2493
|
+
class: ["nb-wrapper", m.value],
|
|
2494
|
+
style: [d.value],
|
|
2068
2495
|
tabIndex: e.tabIndex,
|
|
2069
2496
|
role: "button"
|
|
2070
|
-
},
|
|
2071
|
-
onClick:
|
|
2497
|
+
}, K.value, {
|
|
2498
|
+
onClick: p,
|
|
2072
2499
|
onKeydown: [
|
|
2073
|
-
|
|
2074
|
-
|
|
2500
|
+
N[0] || (N[0] = O(A((z) => !o(V) && e.hasTabIndexEnter && p(), ["prevent"]), ["enter"])),
|
|
2501
|
+
N[1] || (N[1] = O(A((z) => !o(V) && e.hasTabIndexSpace && p(), ["prevent"]), ["space"]))
|
|
2075
2502
|
]
|
|
2076
2503
|
}), [
|
|
2077
|
-
|
|
2504
|
+
de("div", {
|
|
2078
2505
|
id: e.nbId,
|
|
2079
2506
|
class: "nb-reset component",
|
|
2080
|
-
style:
|
|
2507
|
+
style: se([_.value])
|
|
2081
2508
|
}, [
|
|
2082
|
-
|
|
2083
|
-
|
|
2509
|
+
he(s.$slots, "content", {}, () => [
|
|
2510
|
+
N[2] || (N[2] = Ce("Default Text"))
|
|
2084
2511
|
], !0)
|
|
2085
|
-
], 12,
|
|
2086
|
-
], 16, ca)) :
|
|
2512
|
+
], 12, fa)
|
|
2513
|
+
], 16, ca)) : ye("", !0);
|
|
2087
2514
|
}
|
|
2088
|
-
}), pa = /* @__PURE__ */
|
|
2089
|
-
const
|
|
2515
|
+
}), pa = /* @__PURE__ */ ke(va, [["__scopeId", "data-v-38279483"]]);
|
|
2516
|
+
const ba = ["tabIndex"], ga = ["id"], ya = /* @__PURE__ */ Object.assign({
|
|
2090
2517
|
name: "NbButtonNormal",
|
|
2091
2518
|
inheritAttrs: !1
|
|
2092
2519
|
}, {
|
|
@@ -2100,8 +2527,8 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
|
|
|
2100
2527
|
type: String,
|
|
2101
2528
|
default: "b",
|
|
2102
2529
|
validator: (e = "b") => {
|
|
2103
|
-
const
|
|
2104
|
-
return ["b", "ib"].includes(
|
|
2530
|
+
const l = e ? e.toLowerCase() : "";
|
|
2531
|
+
return ["b", "ib"].includes(l);
|
|
2105
2532
|
}
|
|
2106
2533
|
},
|
|
2107
2534
|
tabIndex: {
|
|
@@ -2124,26 +2551,6 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
|
|
|
2124
2551
|
type: Object,
|
|
2125
2552
|
default: () => ({})
|
|
2126
2553
|
},
|
|
2127
|
-
textColor: {
|
|
2128
|
-
type: String,
|
|
2129
|
-
default: "#ffffff"
|
|
2130
|
-
},
|
|
2131
|
-
textHoverColor: {
|
|
2132
|
-
type: String,
|
|
2133
|
-
default: "blue"
|
|
2134
|
-
},
|
|
2135
|
-
buttonColor: {
|
|
2136
|
-
type: String,
|
|
2137
|
-
default: "tomato"
|
|
2138
|
-
},
|
|
2139
|
-
buttonHoverColor: {
|
|
2140
|
-
type: String,
|
|
2141
|
-
default: "green"
|
|
2142
|
-
},
|
|
2143
|
-
borderColor: {
|
|
2144
|
-
type: String,
|
|
2145
|
-
default: "#ffe54c"
|
|
2146
|
-
},
|
|
2147
2554
|
showBorder: {
|
|
2148
2555
|
type: Boolean,
|
|
2149
2556
|
default: !0,
|
|
@@ -2200,118 +2607,203 @@ const ya = ["tabIndex"], ma = ["id"], ga = /* @__PURE__ */ Object.assign({
|
|
|
2200
2607
|
default: "s",
|
|
2201
2608
|
// ms, s, etc.
|
|
2202
2609
|
validator: (e) => ["ms", "s"].indexOf(e) !== -1
|
|
2610
|
+
},
|
|
2611
|
+
theme: {
|
|
2612
|
+
type: String,
|
|
2613
|
+
default: "light",
|
|
2614
|
+
validator: (e) => ["dark", "light"].indexOf(e) !== -1
|
|
2615
|
+
},
|
|
2616
|
+
// Cores do tema light
|
|
2617
|
+
lightButtonColor: {
|
|
2618
|
+
type: String,
|
|
2619
|
+
default: "#f5f5f5"
|
|
2620
|
+
},
|
|
2621
|
+
lightButtonColorHover: {
|
|
2622
|
+
type: String,
|
|
2623
|
+
default: "#e0e0e0"
|
|
2624
|
+
},
|
|
2625
|
+
lightTextColor: {
|
|
2626
|
+
type: String,
|
|
2627
|
+
default: "#333333"
|
|
2628
|
+
},
|
|
2629
|
+
lightTextColorHover: {
|
|
2630
|
+
type: String,
|
|
2631
|
+
default: "#000000"
|
|
2632
|
+
},
|
|
2633
|
+
lightBorderColor: {
|
|
2634
|
+
type: String,
|
|
2635
|
+
default: "#cccccc"
|
|
2636
|
+
},
|
|
2637
|
+
lightBorderColorHover: {
|
|
2638
|
+
type: String,
|
|
2639
|
+
default: "#bbbbbb"
|
|
2640
|
+
},
|
|
2641
|
+
lightDisabledBgColor: {
|
|
2642
|
+
type: String,
|
|
2643
|
+
default: "#dfdfd9"
|
|
2644
|
+
},
|
|
2645
|
+
// Cores do tema dark
|
|
2646
|
+
darkButtonColor: {
|
|
2647
|
+
type: String,
|
|
2648
|
+
default: "#2d2d2d"
|
|
2649
|
+
},
|
|
2650
|
+
darkButtonColorHover: {
|
|
2651
|
+
type: String,
|
|
2652
|
+
default: "#3d3d3d"
|
|
2653
|
+
},
|
|
2654
|
+
darkTextColor: {
|
|
2655
|
+
type: String,
|
|
2656
|
+
default: "#e0e0e0"
|
|
2657
|
+
},
|
|
2658
|
+
darkTextColorHover: {
|
|
2659
|
+
type: String,
|
|
2660
|
+
default: "#ffffff"
|
|
2661
|
+
},
|
|
2662
|
+
darkBorderColor: {
|
|
2663
|
+
type: String,
|
|
2664
|
+
default: "#555555"
|
|
2665
|
+
},
|
|
2666
|
+
darkBorderColorHover: {
|
|
2667
|
+
type: String,
|
|
2668
|
+
default: "#666666"
|
|
2669
|
+
},
|
|
2670
|
+
darkDisabledBgColor: {
|
|
2671
|
+
type: String,
|
|
2672
|
+
default: "rgba(40, 42, 54, 1)"
|
|
2203
2673
|
}
|
|
2204
2674
|
},
|
|
2205
2675
|
emits: ["clicked"],
|
|
2206
|
-
setup(e, { emit:
|
|
2207
|
-
|
|
2208
|
-
"
|
|
2209
|
-
"
|
|
2210
|
-
|
|
2211
|
-
"
|
|
2212
|
-
"
|
|
2213
|
-
|
|
2676
|
+
setup(e, { emit: l }) {
|
|
2677
|
+
xe((n) => ({
|
|
2678
|
+
"7269af92": E.value,
|
|
2679
|
+
"6d2ea056": h.value,
|
|
2680
|
+
"663bbb7d": o(w),
|
|
2681
|
+
"55471ed8": o(P),
|
|
2682
|
+
"2a7043c4": o(R),
|
|
2683
|
+
"3a59c3bf": o(x),
|
|
2684
|
+
f5857d78: o(J),
|
|
2685
|
+
"7661c484": o(K),
|
|
2686
|
+
"1eabc57a": o(m),
|
|
2687
|
+
"04b7b1c4": o(T),
|
|
2688
|
+
d9b63338: o(_),
|
|
2689
|
+
"46c0e48e": o(d),
|
|
2690
|
+
a58f1684: o(f),
|
|
2691
|
+
"266b5d90": o(S),
|
|
2692
|
+
a513a7ee: o(p),
|
|
2693
|
+
"53e9a14f": o(D)
|
|
2214
2694
|
}));
|
|
2215
|
-
const X =
|
|
2216
|
-
display:
|
|
2217
|
-
ariaLabel:
|
|
2218
|
-
ariaAttrs:
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
paddingX: S,
|
|
2228
|
-
paddingY: T,
|
|
2229
|
-
disabled: f,
|
|
2230
|
-
fontFamily: y,
|
|
2231
|
-
fontSize: L,
|
|
2695
|
+
const X = l, ae = e, {
|
|
2696
|
+
display: q,
|
|
2697
|
+
ariaLabel: Q,
|
|
2698
|
+
ariaAttrs: y,
|
|
2699
|
+
showBorder: Y,
|
|
2700
|
+
borderRadius: U,
|
|
2701
|
+
width: te,
|
|
2702
|
+
paddingX: j,
|
|
2703
|
+
paddingY: Z,
|
|
2704
|
+
disabled: F,
|
|
2705
|
+
fontFamily: G,
|
|
2706
|
+
fontSize: ee,
|
|
2232
2707
|
fontWeight: W,
|
|
2233
|
-
hasAnimation:
|
|
2234
|
-
animationDuration:
|
|
2235
|
-
animationDurationType:
|
|
2236
|
-
|
|
2237
|
-
|
|
2708
|
+
hasAnimation: L,
|
|
2709
|
+
animationDuration: V,
|
|
2710
|
+
animationDurationType: I,
|
|
2711
|
+
theme: b,
|
|
2712
|
+
lightButtonColor: T,
|
|
2713
|
+
lightButtonColorHover: f,
|
|
2714
|
+
lightTextColor: m,
|
|
2715
|
+
lightTextColorHover: d,
|
|
2716
|
+
lightBorderColor: _,
|
|
2717
|
+
lightBorderColorHover: S,
|
|
2718
|
+
lightDisabledBgColor: D,
|
|
2719
|
+
darkButtonColor: P,
|
|
2720
|
+
darkButtonColorHover: J,
|
|
2721
|
+
darkTextColor: w,
|
|
2722
|
+
darkTextColorHover: x,
|
|
2723
|
+
darkBorderColor: R,
|
|
2724
|
+
darkBorderColorHover: K,
|
|
2725
|
+
darkDisabledBgColor: p
|
|
2726
|
+
} = Be(ae), s = t(() => {
|
|
2727
|
+
const n = F.value ? "component-disabled" : "", c = q.value !== "b" ? "inline-block" : "block", H = !U.value || U.value < 0 ? 0 : U.value, oe = [!1, !0].includes(Y.value) ? Y.value : !0, ie = !te.value || te.value < 86 ? 86 : te.value, be = !j.value || j.value < 0 ? 1 : j.value, M = !Z.value || Z.value < 0 ? 0.2 : Z.value, v = G.value ? G.value : "'Lato', sans-serif", g = ee.value ? ee.value : "1.6em", le = !W.value || W.value < 0 ? 200 : W.value, $ = L.value ? "component-transition" : "", k = !V.value || V.value < 0 ? 0.3 : V.value, ue = !I.value || I.value < 0 ? "ms" : I.value, ne = b.value ? b.value : "light";
|
|
2238
2728
|
return {
|
|
2239
|
-
disabled:
|
|
2240
|
-
display:
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
showBorder: K,
|
|
2245
|
-
borderRadius: ae,
|
|
2246
|
-
textColor: ne,
|
|
2247
|
-
textHoverColor: de,
|
|
2248
|
-
width: U,
|
|
2729
|
+
disabled: n,
|
|
2730
|
+
display: c,
|
|
2731
|
+
showBorder: oe,
|
|
2732
|
+
borderRadius: H,
|
|
2733
|
+
width: ie,
|
|
2249
2734
|
paddingX: be,
|
|
2250
|
-
paddingY:
|
|
2251
|
-
font:
|
|
2252
|
-
fontSize:
|
|
2253
|
-
fontWeight:
|
|
2254
|
-
hasAnimation:
|
|
2255
|
-
animationDuration:
|
|
2256
|
-
animationDurationType:
|
|
2735
|
+
paddingY: M,
|
|
2736
|
+
font: v,
|
|
2737
|
+
fontSize: g,
|
|
2738
|
+
fontWeight: le,
|
|
2739
|
+
hasAnimation: $,
|
|
2740
|
+
animationDuration: k,
|
|
2741
|
+
animationDurationType: ue,
|
|
2742
|
+
theme: ne
|
|
2257
2743
|
};
|
|
2258
|
-
}),
|
|
2744
|
+
}), N = t(() => s.value.disabled), z = t(() => ({
|
|
2259
2745
|
display: s.value.display
|
|
2260
|
-
})),
|
|
2261
|
-
const
|
|
2746
|
+
})), B = t(() => {
|
|
2747
|
+
const n = s.value, c = n.display === "block" ? "auto" : `${n.width}px`;
|
|
2262
2748
|
return {
|
|
2263
|
-
|
|
2264
|
-
borderRadius: `${c.borderRadius}rem`,
|
|
2749
|
+
borderRadius: `${n.borderRadius}rem`,
|
|
2265
2750
|
minWidth: "33px",
|
|
2266
|
-
width:
|
|
2267
|
-
padding: `${
|
|
2751
|
+
width: c,
|
|
2752
|
+
padding: `${n.paddingY}rem ${n.paddingX}rem`,
|
|
2268
2753
|
lineHeight: "1.42857143",
|
|
2269
|
-
fontSize:
|
|
2270
|
-
fontWeight:
|
|
2754
|
+
fontSize: n.fontSize,
|
|
2755
|
+
fontWeight: n.fontWeight
|
|
2271
2756
|
};
|
|
2272
|
-
}),
|
|
2273
|
-
const
|
|
2274
|
-
return
|
|
2275
|
-
}),
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2757
|
+
}), E = t(() => s.value.font), h = t(() => {
|
|
2758
|
+
const n = s.value;
|
|
2759
|
+
return n.hasAnimation ? `all ${n.animationDuration}${n.animationDurationType} ease-in-out` : "";
|
|
2760
|
+
}), r = t(() => {
|
|
2761
|
+
switch (s.value.theme) {
|
|
2762
|
+
case "dark":
|
|
2763
|
+
return "component__theme--dark";
|
|
2764
|
+
default:
|
|
2765
|
+
return "component__theme--light";
|
|
2766
|
+
}
|
|
2767
|
+
}), i = t(() => {
|
|
2768
|
+
const n = {};
|
|
2769
|
+
y.value && Object.keys(y.value).forEach((oe) => n[`aria-${oe}`] = y.value[oe]);
|
|
2770
|
+
const c = {
|
|
2771
|
+
"aria-label": Q.value,
|
|
2772
|
+
"aria-disabled": F.value,
|
|
2773
|
+
...n
|
|
2282
2774
|
};
|
|
2283
2775
|
return Object.fromEntries(
|
|
2284
|
-
Object.entries(
|
|
2776
|
+
Object.entries(c).filter(([H, oe]) => oe != null)
|
|
2285
2777
|
);
|
|
2286
|
-
}),
|
|
2778
|
+
}), u = () => {
|
|
2287
2779
|
X("clicked");
|
|
2288
2780
|
};
|
|
2289
|
-
return (
|
|
2781
|
+
return (n, c) => e.nbId ? (fe(), ve("div", Se({
|
|
2290
2782
|
key: 0,
|
|
2291
|
-
class: ["nb-wrapper",
|
|
2292
|
-
style: [
|
|
2783
|
+
class: ["nb-wrapper", N.value],
|
|
2784
|
+
style: [z.value],
|
|
2293
2785
|
tabIndex: e.tabIndex,
|
|
2294
2786
|
role: "button"
|
|
2295
|
-
},
|
|
2296
|
-
onClick:
|
|
2787
|
+
}, i.value, {
|
|
2788
|
+
onClick: u,
|
|
2297
2789
|
onKeydown: [
|
|
2298
|
-
|
|
2299
|
-
|
|
2790
|
+
c[0] || (c[0] = O(A((H) => !o(F) && e.hasTabIndexEnter && u(), ["prevent"]), ["enter"])),
|
|
2791
|
+
c[1] || (c[1] = O(A((H) => !o(F) && e.hasTabIndexSpace && u(), ["prevent"]), ["space"]))
|
|
2300
2792
|
]
|
|
2301
2793
|
}), [
|
|
2302
|
-
|
|
2794
|
+
de("div", {
|
|
2303
2795
|
id: e.nbId,
|
|
2304
|
-
class:
|
|
2305
|
-
style:
|
|
2796
|
+
class: pe(["nb-reset component", [{ "component-transition": o(L), "component--no-border": !o(Y) }, r.value]]),
|
|
2797
|
+
style: se([B.value])
|
|
2306
2798
|
}, [
|
|
2307
|
-
|
|
2308
|
-
|
|
2799
|
+
he(n.$slots, "content", {}, () => [
|
|
2800
|
+
c[2] || (c[2] = Ce("Default Text"))
|
|
2309
2801
|
], !0)
|
|
2310
|
-
], 14,
|
|
2311
|
-
], 16,
|
|
2802
|
+
], 14, ga)
|
|
2803
|
+
], 16, ba)) : ye("", !0);
|
|
2312
2804
|
}
|
|
2313
|
-
}),
|
|
2314
|
-
const
|
|
2805
|
+
}), ma = /* @__PURE__ */ ke(ya, [["__scopeId", "data-v-df95b133"]]);
|
|
2806
|
+
const ha = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
|
|
2315
2807
|
name: "NbButtonShadow",
|
|
2316
2808
|
inheritAttrs: !1
|
|
2317
2809
|
}, {
|
|
@@ -2325,8 +2817,8 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
|
|
|
2325
2817
|
type: String,
|
|
2326
2818
|
default: "b",
|
|
2327
2819
|
validator: (e = "b") => {
|
|
2328
|
-
const
|
|
2329
|
-
return ["b", "ib"].includes(
|
|
2820
|
+
const l = e ? e.toLowerCase() : "";
|
|
2821
|
+
return ["b", "ib"].includes(l);
|
|
2330
2822
|
}
|
|
2331
2823
|
},
|
|
2332
2824
|
tabIndex: {
|
|
@@ -2349,29 +2841,71 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
|
|
|
2349
2841
|
type: Object,
|
|
2350
2842
|
default: () => ({})
|
|
2351
2843
|
},
|
|
2352
|
-
|
|
2844
|
+
theme: {
|
|
2845
|
+
type: String,
|
|
2846
|
+
default: "light",
|
|
2847
|
+
validator: (e) => {
|
|
2848
|
+
const l = e ? e.toLowerCase() : "";
|
|
2849
|
+
return ["light", "dark"].includes(l);
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
// Cores do tema light
|
|
2853
|
+
lightTextColor: {
|
|
2854
|
+
type: String,
|
|
2855
|
+
default: "#333333"
|
|
2856
|
+
},
|
|
2857
|
+
lightTextColorHover: {
|
|
2353
2858
|
type: String,
|
|
2354
2859
|
default: "#000000"
|
|
2355
2860
|
},
|
|
2356
|
-
|
|
2861
|
+
lightButtonColor: {
|
|
2357
2862
|
type: String,
|
|
2358
|
-
default: "
|
|
2863
|
+
default: "#f5f5f5"
|
|
2359
2864
|
},
|
|
2360
|
-
|
|
2865
|
+
lightButtonColorHover: {
|
|
2361
2866
|
type: String,
|
|
2362
|
-
default: "#
|
|
2867
|
+
default: "#e0e0e0"
|
|
2363
2868
|
},
|
|
2364
|
-
|
|
2869
|
+
lightButtonShadowColor: {
|
|
2870
|
+
type: String,
|
|
2871
|
+
default: "#cccccc"
|
|
2872
|
+
},
|
|
2873
|
+
lightBorderColor: {
|
|
2365
2874
|
type: String,
|
|
2366
|
-
default: "#
|
|
2875
|
+
default: "#cccccc"
|
|
2367
2876
|
},
|
|
2368
|
-
|
|
2877
|
+
lightDisabledBgColor: {
|
|
2369
2878
|
type: String,
|
|
2370
|
-
default: "#
|
|
2879
|
+
default: "#dfdfd9"
|
|
2371
2880
|
},
|
|
2372
|
-
|
|
2881
|
+
// Cores do tema dark
|
|
2882
|
+
darkTextColor: {
|
|
2373
2883
|
type: String,
|
|
2374
|
-
default: "#
|
|
2884
|
+
default: "#ffffff"
|
|
2885
|
+
},
|
|
2886
|
+
darkTextColorHover: {
|
|
2887
|
+
type: String,
|
|
2888
|
+
default: "#ffffff"
|
|
2889
|
+
},
|
|
2890
|
+
darkButtonColor: {
|
|
2891
|
+
type: String,
|
|
2892
|
+
default: "#2d2d2d"
|
|
2893
|
+
},
|
|
2894
|
+
darkButtonColorHover: {
|
|
2895
|
+
type: String,
|
|
2896
|
+
default: "#3d3d3d"
|
|
2897
|
+
},
|
|
2898
|
+
darkButtonShadowColor: {
|
|
2899
|
+
type: String,
|
|
2900
|
+
default: "#555555"
|
|
2901
|
+
},
|
|
2902
|
+
darkBorderColor: {
|
|
2903
|
+
type: String,
|
|
2904
|
+
default: "#555555"
|
|
2905
|
+
},
|
|
2906
|
+
darkDisabledBgColor: {
|
|
2907
|
+
type: String,
|
|
2908
|
+
default: "rgba(40, 42, 54, 1)"
|
|
2375
2909
|
},
|
|
2376
2910
|
borderRadius: {
|
|
2377
2911
|
type: Number,
|
|
@@ -2413,113 +2947,119 @@ const Va = ["tabIndex"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
|
|
|
2413
2947
|
}
|
|
2414
2948
|
},
|
|
2415
2949
|
emits: ["clicked"],
|
|
2416
|
-
setup(e, { emit:
|
|
2417
|
-
|
|
2418
|
-
"
|
|
2419
|
-
|
|
2420
|
-
"
|
|
2421
|
-
|
|
2422
|
-
"
|
|
2423
|
-
|
|
2424
|
-
|
|
2950
|
+
setup(e, { emit: l }) {
|
|
2951
|
+
xe((k) => ({
|
|
2952
|
+
"25941b92": s.value,
|
|
2953
|
+
"6279d744": E.value,
|
|
2954
|
+
"43599ee9": z.value,
|
|
2955
|
+
"100ad2ec": u.value,
|
|
2956
|
+
"4791f544": r.value,
|
|
2957
|
+
c96e2750: h.value,
|
|
2958
|
+
"1bbd23d3": B.value,
|
|
2959
|
+
"56938e58": i.value,
|
|
2960
|
+
"5887d1f2": oe.value,
|
|
2961
|
+
"58626d17": c.value,
|
|
2962
|
+
"23eedd90": v.value,
|
|
2963
|
+
eb8e951c: be.value,
|
|
2964
|
+
"29d26e6a": ie.value,
|
|
2965
|
+
"7ef7fb36": H.value,
|
|
2966
|
+
"86b88a2c": M.value,
|
|
2967
|
+
"0f026316": n.value,
|
|
2968
|
+
"26d87bba": g.value
|
|
2425
2969
|
}));
|
|
2426
|
-
const X =
|
|
2427
|
-
display:
|
|
2428
|
-
ariaLabel:
|
|
2429
|
-
ariaAttrs:
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2970
|
+
const X = l, ae = e, {
|
|
2971
|
+
display: q,
|
|
2972
|
+
ariaLabel: Q,
|
|
2973
|
+
ariaAttrs: y,
|
|
2974
|
+
theme: Y,
|
|
2975
|
+
lightTextColor: U,
|
|
2976
|
+
lightTextColorHover: te,
|
|
2977
|
+
lightButtonColor: j,
|
|
2978
|
+
lightButtonColorHover: Z,
|
|
2979
|
+
lightButtonShadowColor: F,
|
|
2980
|
+
lightBorderColor: G,
|
|
2981
|
+
lightDisabledBgColor: ee,
|
|
2982
|
+
darkTextColor: W,
|
|
2983
|
+
darkTextColorHover: L,
|
|
2984
|
+
darkButtonColor: V,
|
|
2985
|
+
darkButtonColorHover: I,
|
|
2986
|
+
darkButtonShadowColor: b,
|
|
2987
|
+
darkBorderColor: T,
|
|
2988
|
+
darkDisabledBgColor: f,
|
|
2989
|
+
borderRadius: m,
|
|
2990
|
+
width: d,
|
|
2991
|
+
paddingX: _,
|
|
2992
|
+
paddingY: S,
|
|
2993
|
+
disabled: D,
|
|
2994
|
+
fontFamily: P,
|
|
2995
|
+
fontSize: J,
|
|
2996
|
+
fontWeight: w
|
|
2997
|
+
} = Be(ae), x = t(() => {
|
|
2998
|
+
const k = D.value ? "component-disabled" : "", ue = q.value !== "b" ? "inline-block" : "block", ne = !m.value || m.value < 0 ? 0 : m.value, me = !d.value || d.value < 86 ? 86 : d.value, ge = !_.value || _.value < 0 ? 1 : _.value, Ie = !S.value || S.value < 0 ? 0.2 : S.value, _e = P.value ? P.value : "'Lato', sans-serif", De = J.value ? J.value : "1.6em", Ne = !w.value || w.value < 0 ? 200 : w.value;
|
|
2446
2999
|
return {
|
|
2447
|
-
disabled:
|
|
2448
|
-
display:
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
width: ne,
|
|
2457
|
-
paddingX: de,
|
|
2458
|
-
paddingY: U,
|
|
2459
|
-
font: be,
|
|
2460
|
-
fontSize: Z,
|
|
2461
|
-
fontWeight: pe
|
|
3000
|
+
disabled: k,
|
|
3001
|
+
display: ue,
|
|
3002
|
+
borderRadius: ne,
|
|
3003
|
+
width: me,
|
|
3004
|
+
paddingX: ge,
|
|
3005
|
+
paddingY: Ie,
|
|
3006
|
+
font: _e,
|
|
3007
|
+
fontSize: De,
|
|
3008
|
+
fontWeight: Ne
|
|
2462
3009
|
};
|
|
2463
|
-
}),
|
|
2464
|
-
display:
|
|
2465
|
-
})),
|
|
2466
|
-
const
|
|
3010
|
+
}), R = t(() => x.value.disabled), K = t(() => ({
|
|
3011
|
+
display: x.value.display
|
|
3012
|
+
})), p = t(() => {
|
|
3013
|
+
const k = x.value, ue = k.display === "block" ? "auto" : `${k.width}px`;
|
|
2467
3014
|
return {
|
|
2468
|
-
|
|
2469
|
-
borderRadius: `${u.borderRadius}rem`,
|
|
3015
|
+
borderRadius: `${k.borderRadius}rem`,
|
|
2470
3016
|
minWidth: "33px",
|
|
2471
|
-
width:
|
|
2472
|
-
padding: `${
|
|
3017
|
+
width: ue,
|
|
3018
|
+
padding: `${k.paddingY}rem ${k.paddingX}rem`,
|
|
2473
3019
|
lineHeight: "1.42857143",
|
|
2474
|
-
fontSize:
|
|
2475
|
-
fontWeight:
|
|
3020
|
+
fontSize: k.fontSize,
|
|
3021
|
+
fontWeight: k.fontWeight
|
|
2476
3022
|
};
|
|
2477
|
-
}),
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
const u = {};
|
|
2485
|
-
C.value && Object.keys(C.value).forEach((k) => u[`aria-${k}`] = C.value[k]);
|
|
2486
|
-
const n = {
|
|
2487
|
-
"aria-label": E.value,
|
|
2488
|
-
"aria-disabled": f.value,
|
|
2489
|
-
...u
|
|
3023
|
+
}), s = t(() => x.value.font), N = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), z = t(() => U.value), B = t(() => te.value), E = t(() => j.value), h = t(() => Z.value), r = t(() => `3px 3px 0 -1px ${F.value}, 3px 3px 0 ${F.value}`), i = t(() => `0 0 0 -1px ${F.value}, 0 0 0 ${F.value}`), u = t(() => G.value), n = t(() => ee.value), c = t(() => W.value), H = t(() => L.value), oe = t(() => V.value), ie = t(() => I.value), be = t(() => `3px 3px 0 -1px ${b.value}, 3px 3px 0 ${b.value}`), M = t(() => `0 0 0 -1px ${b.value}, 0 0 0 ${b.value}`), v = t(() => T.value), g = t(() => f.value), le = t(() => {
|
|
3024
|
+
const k = {};
|
|
3025
|
+
y.value && Object.keys(y.value).forEach((me) => k[`aria-${me}`] = y.value[me]);
|
|
3026
|
+
const ue = {
|
|
3027
|
+
"aria-label": Q.value,
|
|
3028
|
+
"aria-disabled": D.value,
|
|
3029
|
+
...k
|
|
2490
3030
|
};
|
|
2491
3031
|
return Object.fromEntries(
|
|
2492
|
-
Object.entries(
|
|
3032
|
+
Object.entries(ue).filter(([ne, me]) => me != null)
|
|
2493
3033
|
);
|
|
2494
|
-
}),
|
|
3034
|
+
}), $ = () => {
|
|
2495
3035
|
X("clicked");
|
|
2496
3036
|
};
|
|
2497
|
-
return (
|
|
3037
|
+
return (k, ue) => e.nbId ? (fe(), ve("div", Se({
|
|
2498
3038
|
key: 0,
|
|
2499
|
-
class: ["nb-wrapper",
|
|
2500
|
-
style: [
|
|
3039
|
+
class: ["nb-wrapper", R.value],
|
|
3040
|
+
style: [K.value],
|
|
2501
3041
|
tabIndex: e.tabIndex,
|
|
2502
3042
|
role: "button"
|
|
2503
|
-
},
|
|
2504
|
-
onClick:
|
|
3043
|
+
}, le.value, {
|
|
3044
|
+
onClick: $,
|
|
2505
3045
|
onKeydown: [
|
|
2506
|
-
|
|
2507
|
-
|
|
3046
|
+
ue[0] || (ue[0] = O(A((ne) => !o(D) && e.hasTabIndexEnter && $(), ["prevent"]), ["enter"])),
|
|
3047
|
+
ue[1] || (ue[1] = O(A((ne) => !o(D) && e.hasTabIndexSpace && $(), ["prevent"]), ["space"]))
|
|
2508
3048
|
]
|
|
2509
3049
|
}), [
|
|
2510
|
-
|
|
3050
|
+
de("div", {
|
|
2511
3051
|
id: e.nbId,
|
|
2512
|
-
class: "nb-reset component",
|
|
2513
|
-
style:
|
|
3052
|
+
class: pe(["nb-reset component", [N.value]]),
|
|
3053
|
+
style: se([p.value])
|
|
2514
3054
|
}, [
|
|
2515
|
-
|
|
2516
|
-
|
|
3055
|
+
he(k.$slots, "content", {}, () => [
|
|
3056
|
+
ue[2] || (ue[2] = Ce("Default Text"))
|
|
2517
3057
|
], !0)
|
|
2518
|
-
],
|
|
2519
|
-
], 16,
|
|
3058
|
+
], 14, Ca)
|
|
3059
|
+
], 16, ha)) : ye("", !0);
|
|
2520
3060
|
}
|
|
2521
|
-
}),
|
|
2522
|
-
const Ba = ["tabIndex"],
|
|
3061
|
+
}), xa = /* @__PURE__ */ ke(Sa, [["__scopeId", "data-v-4552bf5e"]]);
|
|
3062
|
+
const Ba = ["tabIndex"], ka = ["id"], Va = /* @__PURE__ */ Object.assign({
|
|
2523
3063
|
name: "NbButtonUnderlineExpand",
|
|
2524
3064
|
inheritAttrs: !1
|
|
2525
3065
|
}, {
|
|
@@ -2533,8 +3073,8 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
|
|
|
2533
3073
|
type: String,
|
|
2534
3074
|
default: "b",
|
|
2535
3075
|
validator: (e = "b") => {
|
|
2536
|
-
const
|
|
2537
|
-
return ["b", "ib"].includes(
|
|
3076
|
+
const l = e ? e.toLowerCase() : "";
|
|
3077
|
+
return ["b", "ib"].includes(l);
|
|
2538
3078
|
}
|
|
2539
3079
|
},
|
|
2540
3080
|
tabIndex: {
|
|
@@ -2557,21 +3097,55 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
|
|
|
2557
3097
|
type: Object,
|
|
2558
3098
|
default: () => ({})
|
|
2559
3099
|
},
|
|
2560
|
-
|
|
3100
|
+
theme: {
|
|
2561
3101
|
type: String,
|
|
2562
|
-
default: "
|
|
3102
|
+
default: "light",
|
|
3103
|
+
validator: (e) => {
|
|
3104
|
+
const l = e ? e.toLowerCase() : "";
|
|
3105
|
+
return ["light", "dark"].includes(l);
|
|
3106
|
+
}
|
|
2563
3107
|
},
|
|
2564
|
-
|
|
3108
|
+
// Cores do tema light
|
|
3109
|
+
lightTextColor: {
|
|
3110
|
+
type: String,
|
|
3111
|
+
default: "#333333"
|
|
3112
|
+
},
|
|
3113
|
+
lightTextColorHover: {
|
|
3114
|
+
type: String,
|
|
3115
|
+
default: "#000000"
|
|
3116
|
+
},
|
|
3117
|
+
lightBorderColor: {
|
|
3118
|
+
type: String,
|
|
3119
|
+
default: "#f5f5f5"
|
|
3120
|
+
},
|
|
3121
|
+
lightBorderColorHover: {
|
|
3122
|
+
type: String,
|
|
3123
|
+
default: "#e0e0e0"
|
|
3124
|
+
},
|
|
3125
|
+
lightDisabledBgColor: {
|
|
3126
|
+
type: String,
|
|
3127
|
+
default: "#dfdfd9"
|
|
3128
|
+
},
|
|
3129
|
+
// Cores do tema dark
|
|
3130
|
+
darkTextColor: {
|
|
3131
|
+
type: String,
|
|
3132
|
+
default: "#e0e0e0"
|
|
3133
|
+
},
|
|
3134
|
+
darkTextColorHover: {
|
|
2565
3135
|
type: String,
|
|
2566
3136
|
default: "#ffffff"
|
|
2567
3137
|
},
|
|
2568
|
-
|
|
3138
|
+
darkBorderColor: {
|
|
3139
|
+
type: String,
|
|
3140
|
+
default: "#2d2d2d"
|
|
3141
|
+
},
|
|
3142
|
+
darkBorderColorHover: {
|
|
2569
3143
|
type: String,
|
|
2570
|
-
default: "
|
|
3144
|
+
default: "#3d3d3d"
|
|
2571
3145
|
},
|
|
2572
|
-
|
|
3146
|
+
darkDisabledBgColor: {
|
|
2573
3147
|
type: String,
|
|
2574
|
-
default: "
|
|
3148
|
+
default: "rgba(40, 42, 54, 1)"
|
|
2575
3149
|
},
|
|
2576
3150
|
borderHeight: {
|
|
2577
3151
|
type: Number,
|
|
@@ -2619,106 +3193,117 @@ const Ba = ["tabIndex"], wa = ["id"], Ia = /* @__PURE__ */ Object.assign({
|
|
|
2619
3193
|
}
|
|
2620
3194
|
},
|
|
2621
3195
|
emits: ["clicked"],
|
|
2622
|
-
setup(e, { emit:
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
"
|
|
2627
|
-
"
|
|
2628
|
-
"
|
|
2629
|
-
"
|
|
3196
|
+
setup(e, { emit: l }) {
|
|
3197
|
+
xe((c) => ({
|
|
3198
|
+
c721e4a2: R.value,
|
|
3199
|
+
aa546938: i.value,
|
|
3200
|
+
"39c72471": p.value,
|
|
3201
|
+
"091cda12": N.value,
|
|
3202
|
+
"03e4596a": s.value,
|
|
3203
|
+
"6bbd7a4a": z.value,
|
|
3204
|
+
"9a2bd2e2": B.value,
|
|
3205
|
+
"756886a0": h.value,
|
|
3206
|
+
"122383ed": E.value,
|
|
3207
|
+
"5daceb28": r.value
|
|
2630
3208
|
}));
|
|
2631
|
-
const X =
|
|
2632
|
-
display:
|
|
2633
|
-
ariaLabel:
|
|
2634
|
-
ariaAttrs:
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
3209
|
+
const X = l, ae = e, {
|
|
3210
|
+
display: q,
|
|
3211
|
+
ariaLabel: Q,
|
|
3212
|
+
ariaAttrs: y,
|
|
3213
|
+
theme: Y,
|
|
3214
|
+
lightTextColor: U,
|
|
3215
|
+
lightTextColorHover: te,
|
|
3216
|
+
lightBorderColor: j,
|
|
3217
|
+
lightBorderColorHover: Z,
|
|
3218
|
+
lightDisabledBgColor: F,
|
|
3219
|
+
darkTextColor: G,
|
|
3220
|
+
darkTextColorHover: ee,
|
|
3221
|
+
darkBorderColor: W,
|
|
3222
|
+
darkBorderColorHover: L,
|
|
3223
|
+
darkDisabledBgColor: V,
|
|
3224
|
+
borderHeight: I,
|
|
3225
|
+
width: b,
|
|
3226
|
+
paddingX: T,
|
|
3227
|
+
paddingY: f,
|
|
3228
|
+
disabled: m,
|
|
3229
|
+
fontFamily: d,
|
|
3230
|
+
fontSize: _,
|
|
3231
|
+
fontWeight: S,
|
|
3232
|
+
textAlign: D
|
|
3233
|
+
} = Be(ae), P = t(() => {
|
|
3234
|
+
const c = m.value ? "component-disabled" : "", H = q.value !== "b" ? "inline-block" : "block", oe = I.value ? I.value : 1.5, ie = !b.value || b.value < 86 ? 86 : b.value, be = !T.value || T.value < 0 ? 1 : T.value, M = !f.value || f.value < 0 ? 0.2 : f.value, v = d.value ? d.value : "'Lato', sans-serif", g = _.value ? _.value : "1.6em", le = !S.value || S.value < 0 ? 200 : S.value, $ = D.value ? D.value : "center";
|
|
2650
3235
|
return {
|
|
2651
|
-
disabled:
|
|
2652
|
-
display:
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
font: K,
|
|
2662
|
-
fontSize: ne,
|
|
2663
|
-
fontWeight: de,
|
|
2664
|
-
textAlign: U
|
|
3236
|
+
disabled: c,
|
|
3237
|
+
display: H,
|
|
3238
|
+
borderHeight: oe,
|
|
3239
|
+
width: ie,
|
|
3240
|
+
paddingX: be,
|
|
3241
|
+
paddingY: M,
|
|
3242
|
+
font: v,
|
|
3243
|
+
fontSize: g,
|
|
3244
|
+
fontWeight: le,
|
|
3245
|
+
textAlign: $
|
|
2665
3246
|
};
|
|
2666
|
-
}),
|
|
2667
|
-
const
|
|
3247
|
+
}), J = t(() => P.value.disabled), w = t(() => {
|
|
3248
|
+
const c = P.value;
|
|
2668
3249
|
return {
|
|
2669
|
-
display:
|
|
2670
|
-
textAlign:
|
|
3250
|
+
display: c.display,
|
|
3251
|
+
textAlign: c.textAlign
|
|
2671
3252
|
};
|
|
2672
|
-
}),
|
|
2673
|
-
const
|
|
3253
|
+
}), x = t(() => {
|
|
3254
|
+
const c = P.value;
|
|
2674
3255
|
return {
|
|
2675
3256
|
minWidth: "33px",
|
|
2676
|
-
width:
|
|
2677
|
-
padding: `${
|
|
3257
|
+
width: c.display === "block" ? "auto" : `${c.width}px`,
|
|
3258
|
+
padding: `${c.paddingY}rem ${c.paddingX}rem`,
|
|
2678
3259
|
lineHeight: "1.42857143",
|
|
2679
|
-
fontSize:
|
|
2680
|
-
fontWeight:
|
|
3260
|
+
fontSize: c.fontSize,
|
|
3261
|
+
fontWeight: c.fontWeight
|
|
2681
3262
|
};
|
|
2682
|
-
}),
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
3263
|
+
}), R = t(() => P.value.font), K = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), p = t(() => U.value), s = t(() => te.value), N = t(() => j.value), z = t(() => Z.value);
|
|
3264
|
+
t(() => F.value);
|
|
3265
|
+
const B = t(() => G.value), E = t(() => ee.value), h = t(() => W.value), r = t(() => L.value);
|
|
3266
|
+
t(() => V.value);
|
|
3267
|
+
const i = t(() => `${P.value.borderHeight}px`), u = t(() => {
|
|
3268
|
+
const c = {};
|
|
3269
|
+
y.value && Object.keys(y.value).forEach((ie) => c[`aria-${ie}`] = y.value[ie]);
|
|
3270
|
+
const H = {
|
|
3271
|
+
"aria-label": Q.value,
|
|
3272
|
+
"aria-disabled": m.value,
|
|
3273
|
+
...c
|
|
2689
3274
|
};
|
|
2690
3275
|
return Object.fromEntries(
|
|
2691
|
-
Object.entries(
|
|
3276
|
+
Object.entries(H).filter(([oe, ie]) => ie != null)
|
|
2692
3277
|
);
|
|
2693
|
-
}),
|
|
3278
|
+
}), n = () => {
|
|
2694
3279
|
X("clicked");
|
|
2695
3280
|
};
|
|
2696
|
-
return (
|
|
3281
|
+
return (c, H) => e.nbId ? (fe(), ve("div", Se({
|
|
2697
3282
|
key: 0,
|
|
2698
|
-
class: ["nb-wrapper",
|
|
2699
|
-
style: [
|
|
3283
|
+
class: ["nb-wrapper", J.value],
|
|
3284
|
+
style: [w.value],
|
|
2700
3285
|
tabIndex: e.tabIndex,
|
|
2701
3286
|
role: "button"
|
|
2702
|
-
},
|
|
2703
|
-
onClick:
|
|
3287
|
+
}, u.value, {
|
|
3288
|
+
onClick: n,
|
|
2704
3289
|
onKeydown: [
|
|
2705
|
-
|
|
2706
|
-
|
|
3290
|
+
H[0] || (H[0] = O(A((oe) => !o(m) && e.hasTabIndexEnter && n(), ["prevent"]), ["enter"])),
|
|
3291
|
+
H[1] || (H[1] = O(A((oe) => !o(m) && e.hasTabIndexSpace && n(), ["prevent"]), ["space"]))
|
|
2707
3292
|
]
|
|
2708
3293
|
}), [
|
|
2709
|
-
|
|
3294
|
+
de("div", {
|
|
2710
3295
|
id: e.nbId,
|
|
2711
|
-
class: "nb-reset component",
|
|
2712
|
-
style:
|
|
3296
|
+
class: pe(["nb-reset component", [K.value]]),
|
|
3297
|
+
style: se([x.value])
|
|
2713
3298
|
}, [
|
|
2714
|
-
|
|
2715
|
-
|
|
3299
|
+
he(c.$slots, "content", {}, () => [
|
|
3300
|
+
H[2] || (H[2] = Ce("Default Text"))
|
|
2716
3301
|
], !0)
|
|
2717
|
-
],
|
|
2718
|
-
], 16, Ba)) :
|
|
3302
|
+
], 14, ka)
|
|
3303
|
+
], 16, Ba)) : ye("", !0);
|
|
2719
3304
|
}
|
|
2720
|
-
}),
|
|
2721
|
-
const
|
|
3305
|
+
}), Ta = /* @__PURE__ */ ke(Va, [["__scopeId", "data-v-e53b9a58"]]);
|
|
3306
|
+
const wa = ["tabIndex"], $a = ["id"], Ia = /* @__PURE__ */ Object.assign({
|
|
2722
3307
|
name: "NbButtonUnderlineFill",
|
|
2723
3308
|
inheritAttrs: !1
|
|
2724
3309
|
}, {
|
|
@@ -2732,8 +3317,8 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
|
|
|
2732
3317
|
type: String,
|
|
2733
3318
|
default: "b",
|
|
2734
3319
|
validator: (e = "b") => {
|
|
2735
|
-
const
|
|
2736
|
-
return ["b", "ib"].includes(
|
|
3320
|
+
const l = e ? e.toLowerCase() : "";
|
|
3321
|
+
return ["b", "ib"].includes(l);
|
|
2737
3322
|
}
|
|
2738
3323
|
},
|
|
2739
3324
|
tabIndex: {
|
|
@@ -2756,25 +3341,55 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
|
|
|
2756
3341
|
type: Object,
|
|
2757
3342
|
default: () => ({})
|
|
2758
3343
|
},
|
|
2759
|
-
|
|
3344
|
+
theme: {
|
|
2760
3345
|
type: String,
|
|
2761
|
-
default: "
|
|
3346
|
+
default: "light",
|
|
3347
|
+
validator: (e) => {
|
|
3348
|
+
const l = e ? e.toLowerCase() : "";
|
|
3349
|
+
return ["light", "dark"].includes(l);
|
|
3350
|
+
}
|
|
2762
3351
|
},
|
|
2763
|
-
|
|
3352
|
+
// Cores do tema light
|
|
3353
|
+
lightButtonColor: {
|
|
2764
3354
|
type: String,
|
|
2765
|
-
default: "#
|
|
3355
|
+
default: "#f5f5f5"
|
|
2766
3356
|
},
|
|
2767
|
-
|
|
3357
|
+
lightButtonColorHover: {
|
|
2768
3358
|
type: String,
|
|
2769
|
-
default: "
|
|
3359
|
+
default: "#e0e0e0"
|
|
2770
3360
|
},
|
|
2771
|
-
|
|
3361
|
+
lightTextColor: {
|
|
2772
3362
|
type: String,
|
|
2773
|
-
default: "
|
|
3363
|
+
default: "#333333"
|
|
2774
3364
|
},
|
|
2775
|
-
|
|
3365
|
+
lightTextColorHover: {
|
|
2776
3366
|
type: String,
|
|
2777
|
-
default: "#
|
|
3367
|
+
default: "#000000"
|
|
3368
|
+
},
|
|
3369
|
+
lightDisabledBgColor: {
|
|
3370
|
+
type: String,
|
|
3371
|
+
default: "#dfdfd9"
|
|
3372
|
+
},
|
|
3373
|
+
// Cores do tema dark
|
|
3374
|
+
darkButtonColor: {
|
|
3375
|
+
type: String,
|
|
3376
|
+
default: "#2d2d2d"
|
|
3377
|
+
},
|
|
3378
|
+
darkButtonColorHover: {
|
|
3379
|
+
type: String,
|
|
3380
|
+
default: "#3d3d3d"
|
|
3381
|
+
},
|
|
3382
|
+
darkTextColor: {
|
|
3383
|
+
type: String,
|
|
3384
|
+
default: "#e0e0e0"
|
|
3385
|
+
},
|
|
3386
|
+
darkTextColorHover: {
|
|
3387
|
+
type: String,
|
|
3388
|
+
default: "#ffffff"
|
|
3389
|
+
},
|
|
3390
|
+
darkDisabledBgColor: {
|
|
3391
|
+
type: String,
|
|
3392
|
+
default: "rgba(40, 42, 54, 1)"
|
|
2778
3393
|
},
|
|
2779
3394
|
width: {
|
|
2780
3395
|
type: Number,
|
|
@@ -2817,113 +3432,118 @@ const Na = ["tabIndex"], Ha = ["id"], Aa = /* @__PURE__ */ Object.assign({
|
|
|
2817
3432
|
}
|
|
2818
3433
|
},
|
|
2819
3434
|
emits: ["clicked"],
|
|
2820
|
-
setup(e, { emit:
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
"
|
|
2824
|
-
|
|
2825
|
-
"
|
|
2826
|
-
|
|
3435
|
+
setup(e, { emit: l }) {
|
|
3436
|
+
xe((u) => ({
|
|
3437
|
+
a55578d4: x.value,
|
|
3438
|
+
"1ee98fc5": s.value,
|
|
3439
|
+
"3daf83aa": K.value,
|
|
3440
|
+
"240d5c77": N.value,
|
|
3441
|
+
ae65e09c: p.value,
|
|
3442
|
+
ae22f55e: E.value,
|
|
3443
|
+
89672794: z.value,
|
|
3444
|
+
"3ebffe6b": h.value,
|
|
3445
|
+
"1fe79ea6": B.value
|
|
2827
3446
|
}));
|
|
2828
|
-
const X =
|
|
2829
|
-
display:
|
|
2830
|
-
ariaLabel:
|
|
2831
|
-
ariaAttrs:
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
3447
|
+
const X = l, ae = e, {
|
|
3448
|
+
display: q,
|
|
3449
|
+
ariaLabel: Q,
|
|
3450
|
+
ariaAttrs: y,
|
|
3451
|
+
theme: Y,
|
|
3452
|
+
lightTextColor: U,
|
|
3453
|
+
lightTextColorHover: te,
|
|
3454
|
+
lightButtonColor: j,
|
|
3455
|
+
lightButtonColorHover: Z,
|
|
3456
|
+
lightDisabledBgColor: F,
|
|
3457
|
+
darkTextColor: G,
|
|
3458
|
+
darkTextColorHover: ee,
|
|
3459
|
+
darkButtonColor: W,
|
|
3460
|
+
darkButtonColorHover: L,
|
|
3461
|
+
darkDisabledBgColor: V,
|
|
3462
|
+
width: I,
|
|
3463
|
+
paddingX: b,
|
|
3464
|
+
paddingY: T,
|
|
3465
|
+
disabled: f,
|
|
3466
|
+
fontFamily: m,
|
|
3467
|
+
fontSize: d,
|
|
3468
|
+
fontWeight: _,
|
|
3469
|
+
textAlign: S
|
|
3470
|
+
} = Be(ae), D = t(() => {
|
|
3471
|
+
const u = f.value ? "component-disabled" : "", n = q.value !== "b" ? "inline-block" : "block", c = !I.value || I.value < 86 ? 86 : I.value, H = !b.value || b.value < 0 ? 1 : b.value, oe = !T.value || T.value < 0 ? 0.2 : T.value, ie = m.value ? m.value : "'Lato', sans-serif", be = d.value ? d.value : "1.6em", M = !_.value || _.value < 0 ? 200 : _.value, v = S.value ? S.value : "center";
|
|
2846
3472
|
return {
|
|
2847
|
-
disabled:
|
|
2848
|
-
display:
|
|
2849
|
-
buttonColor: d,
|
|
2850
|
-
buttonHoverColor: v,
|
|
2851
|
-
textColor: u,
|
|
2852
|
-
textHoverColor: n,
|
|
3473
|
+
disabled: u,
|
|
3474
|
+
display: n,
|
|
2853
3475
|
width: c,
|
|
2854
|
-
paddingX:
|
|
2855
|
-
paddingY:
|
|
2856
|
-
font:
|
|
2857
|
-
fontSize:
|
|
2858
|
-
fontWeight:
|
|
2859
|
-
textAlign:
|
|
3476
|
+
paddingX: H,
|
|
3477
|
+
paddingY: oe,
|
|
3478
|
+
font: ie,
|
|
3479
|
+
fontSize: be,
|
|
3480
|
+
fontWeight: M,
|
|
3481
|
+
textAlign: v
|
|
2860
3482
|
};
|
|
2861
|
-
}),
|
|
2862
|
-
const
|
|
3483
|
+
}), P = t(() => D.value.disabled), J = t(() => {
|
|
3484
|
+
const u = D.value;
|
|
2863
3485
|
return {
|
|
2864
|
-
display:
|
|
2865
|
-
textAlign:
|
|
3486
|
+
display: u.display,
|
|
3487
|
+
textAlign: u.textAlign
|
|
2866
3488
|
};
|
|
2867
|
-
}),
|
|
2868
|
-
const
|
|
3489
|
+
}), w = t(() => {
|
|
3490
|
+
const u = D.value;
|
|
2869
3491
|
return {
|
|
2870
3492
|
minWidth: "33px",
|
|
2871
|
-
width:
|
|
2872
|
-
padding: `${
|
|
3493
|
+
width: u.display === "block" ? "auto" : `${u.width}px`,
|
|
3494
|
+
padding: `${u.paddingY}rem ${u.paddingX}rem`,
|
|
2873
3495
|
lineHeight: "1.42857143",
|
|
2874
|
-
fontSize:
|
|
2875
|
-
fontWeight:
|
|
3496
|
+
fontSize: u.fontSize,
|
|
3497
|
+
fontWeight: u.fontWeight
|
|
2876
3498
|
};
|
|
2877
|
-
}),
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
const
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
"aria-disabled": I.value,
|
|
2889
|
-
...a
|
|
3499
|
+
}), x = t(() => D.value.font), R = t(() => Y.value === "dark" ? "component__theme--dark" : "component__theme--light"), K = t(() => U.value), p = t(() => te.value), s = t(() => `linear-gradient(${j.value}, ${j.value}) center bottom / 1px 1px repeat-x`), N = t(() => `linear-gradient(${Z.value}, ${Z.value}) center bottom / 100% 100% repeat-x`);
|
|
3500
|
+
t(() => F.value);
|
|
3501
|
+
const z = t(() => G.value), B = t(() => ee.value), E = t(() => `linear-gradient(${W.value}, ${W.value}) center bottom / 1px 1px repeat-x`), h = t(() => `linear-gradient(${L.value}, ${L.value}) center bottom / 100% 100% repeat-x`);
|
|
3502
|
+
t(() => V.value);
|
|
3503
|
+
const r = t(() => {
|
|
3504
|
+
const u = {};
|
|
3505
|
+
y.value && Object.keys(y.value).forEach((H) => u[`aria-${H}`] = y.value[H]);
|
|
3506
|
+
const n = {
|
|
3507
|
+
"aria-label": Q.value,
|
|
3508
|
+
"aria-disabled": f.value,
|
|
3509
|
+
...u
|
|
2890
3510
|
};
|
|
2891
3511
|
return Object.fromEntries(
|
|
2892
|
-
Object.entries(
|
|
3512
|
+
Object.entries(n).filter(([c, H]) => H != null)
|
|
2893
3513
|
);
|
|
2894
|
-
}),
|
|
3514
|
+
}), i = () => {
|
|
2895
3515
|
X("clicked");
|
|
2896
3516
|
};
|
|
2897
|
-
return (
|
|
3517
|
+
return (u, n) => e.nbId ? (fe(), ve("div", Se({
|
|
2898
3518
|
key: 0,
|
|
2899
|
-
class: ["nb-wrapper",
|
|
2900
|
-
style: [
|
|
3519
|
+
class: ["nb-wrapper", P.value],
|
|
3520
|
+
style: [J.value],
|
|
2901
3521
|
tabIndex: e.tabIndex,
|
|
2902
3522
|
role: "button"
|
|
2903
|
-
},
|
|
2904
|
-
onClick:
|
|
3523
|
+
}, r.value, {
|
|
3524
|
+
onClick: i,
|
|
2905
3525
|
onKeydown: [
|
|
2906
|
-
|
|
2907
|
-
|
|
3526
|
+
n[0] || (n[0] = O(A((c) => !o(f) && e.hasTabIndexEnter && i(), ["prevent"]), ["enter"])),
|
|
3527
|
+
n[1] || (n[1] = O(A((c) => !o(f) && e.hasTabIndexSpace && i(), ["prevent"]), ["space"]))
|
|
2908
3528
|
]
|
|
2909
3529
|
}), [
|
|
2910
|
-
|
|
3530
|
+
de("div", {
|
|
2911
3531
|
id: e.nbId,
|
|
2912
|
-
class: "nb-reset component",
|
|
2913
|
-
style:
|
|
3532
|
+
class: pe(["nb-reset component", [R.value]]),
|
|
3533
|
+
style: se([w.value])
|
|
2914
3534
|
}, [
|
|
2915
|
-
|
|
2916
|
-
|
|
3535
|
+
he(u.$slots, "content", {}, () => [
|
|
3536
|
+
n[2] || (n[2] = Ce("Default Text"))
|
|
2917
3537
|
], !0)
|
|
2918
|
-
],
|
|
2919
|
-
], 16,
|
|
3538
|
+
], 14, $a)
|
|
3539
|
+
], 16, wa)) : ye("", !0);
|
|
2920
3540
|
}
|
|
2921
|
-
}),
|
|
2922
|
-
const
|
|
3541
|
+
}), _a = /* @__PURE__ */ ke(Ia, [["__scopeId", "data-v-d0591167"]]);
|
|
3542
|
+
const Da = ["id"], Na = ["disabled", "aria-label", "aria-haspopup", "aria-expanded", "tabindex"], Ha = ["aria-expanded", "title", "tabindex"], Aa = ["disabled", "tabindex", "onClick", "onKeydown"], La = {
|
|
2923
3543
|
key: 0,
|
|
2924
3544
|
class: "split-button__menu-item-icon"
|
|
2925
|
-
},
|
|
2926
|
-
name: "
|
|
3545
|
+
}, Oa = { class: "split-button__menu-item-text" }, Wa = /* @__PURE__ */ Object.assign({
|
|
3546
|
+
name: "NbButtonSplitDropdown",
|
|
2927
3547
|
inheritAttrs: !1
|
|
2928
3548
|
}, {
|
|
2929
3549
|
__name: "NbButtonSplitDropdown",
|
|
@@ -2936,8 +3556,8 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
|
|
|
2936
3556
|
type: String,
|
|
2937
3557
|
default: "ib",
|
|
2938
3558
|
validator: (e = "ib") => {
|
|
2939
|
-
const
|
|
2940
|
-
return ["b", "ib"].includes(
|
|
3559
|
+
const l = e ? e.toLowerCase() : "";
|
|
3560
|
+
return ["b", "ib"].includes(l);
|
|
2941
3561
|
}
|
|
2942
3562
|
},
|
|
2943
3563
|
mainButtonText: {
|
|
@@ -2952,7 +3572,7 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
|
|
|
2952
3572
|
type: Array,
|
|
2953
3573
|
default: () => [],
|
|
2954
3574
|
validator: (e) => Array.isArray(e) && e.every(
|
|
2955
|
-
(
|
|
3575
|
+
(l) => typeof l == "object" && l !== null && "label" in l
|
|
2956
3576
|
)
|
|
2957
3577
|
},
|
|
2958
3578
|
popupButtonTitle: {
|
|
@@ -2979,54 +3599,6 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
|
|
|
2979
3599
|
type: Object,
|
|
2980
3600
|
default: () => ({})
|
|
2981
3601
|
},
|
|
2982
|
-
textColor: {
|
|
2983
|
-
type: String,
|
|
2984
|
-
default: "#ffffff"
|
|
2985
|
-
},
|
|
2986
|
-
textHoverColor: {
|
|
2987
|
-
type: String,
|
|
2988
|
-
default: "#ffffff"
|
|
2989
|
-
},
|
|
2990
|
-
buttonColor: {
|
|
2991
|
-
type: String,
|
|
2992
|
-
default: "hsl(220 75% 50%)"
|
|
2993
|
-
},
|
|
2994
|
-
buttonHoverColor: {
|
|
2995
|
-
type: String,
|
|
2996
|
-
default: "hsl(220 75% 45%)"
|
|
2997
|
-
},
|
|
2998
|
-
popupButtonHoverColor: {
|
|
2999
|
-
type: String,
|
|
3000
|
-
default: null
|
|
3001
|
-
},
|
|
3002
|
-
popupTextHoverColor: {
|
|
3003
|
-
type: String,
|
|
3004
|
-
default: "null"
|
|
3005
|
-
},
|
|
3006
|
-
buttonActiveColor: {
|
|
3007
|
-
type: String,
|
|
3008
|
-
default: "hsl(220 75% 40%)"
|
|
3009
|
-
},
|
|
3010
|
-
borderColor: {
|
|
3011
|
-
type: String,
|
|
3012
|
-
default: "hsl(220 50% 75%)"
|
|
3013
|
-
},
|
|
3014
|
-
borderHoverColor: {
|
|
3015
|
-
type: String,
|
|
3016
|
-
default: "tomato"
|
|
3017
|
-
},
|
|
3018
|
-
popupBgColor: {
|
|
3019
|
-
type: String,
|
|
3020
|
-
default: "#ffffff"
|
|
3021
|
-
},
|
|
3022
|
-
menuItemHoverColor: {
|
|
3023
|
-
type: String,
|
|
3024
|
-
default: "hsl(220 75% 95%)"
|
|
3025
|
-
},
|
|
3026
|
-
menuItemTextColor: {
|
|
3027
|
-
type: String,
|
|
3028
|
-
default: "#000000"
|
|
3029
|
-
},
|
|
3030
3602
|
menuItemFocusOutlineColor: {
|
|
3031
3603
|
type: String,
|
|
3032
3604
|
default: null
|
|
@@ -3107,376 +3679,474 @@ const ka = ["id"], Oa = ["disabled", "aria-label", "aria-haspopup", "aria-expand
|
|
|
3107
3679
|
popupFontWeight: {
|
|
3108
3680
|
type: Number,
|
|
3109
3681
|
default: null
|
|
3682
|
+
},
|
|
3683
|
+
theme: {
|
|
3684
|
+
type: String,
|
|
3685
|
+
default: "light",
|
|
3686
|
+
validator: (e) => ["dark", "light"].indexOf(e) !== -1
|
|
3687
|
+
},
|
|
3688
|
+
// Cores do tema light
|
|
3689
|
+
lightButtonColor: {
|
|
3690
|
+
type: String,
|
|
3691
|
+
default: "#f5f5f5"
|
|
3692
|
+
},
|
|
3693
|
+
lightButtonColorHover: {
|
|
3694
|
+
type: String,
|
|
3695
|
+
default: "#e0e0e0"
|
|
3696
|
+
},
|
|
3697
|
+
lightTextColor: {
|
|
3698
|
+
type: String,
|
|
3699
|
+
default: "#333333"
|
|
3700
|
+
},
|
|
3701
|
+
lightTextColorHover: {
|
|
3702
|
+
type: String,
|
|
3703
|
+
default: "#000000"
|
|
3704
|
+
},
|
|
3705
|
+
lightBorderColor: {
|
|
3706
|
+
type: String,
|
|
3707
|
+
default: "#cccccc"
|
|
3708
|
+
},
|
|
3709
|
+
lightBorderColorHover: {
|
|
3710
|
+
type: String,
|
|
3711
|
+
default: "#bbbbbb"
|
|
3712
|
+
},
|
|
3713
|
+
lightPopupBgColor: {
|
|
3714
|
+
type: String,
|
|
3715
|
+
default: "#ffffff"
|
|
3716
|
+
},
|
|
3717
|
+
lightMenuItemHoverColor: {
|
|
3718
|
+
type: String,
|
|
3719
|
+
default: "#f5f5f5"
|
|
3720
|
+
},
|
|
3721
|
+
lightMenuItemTextColor: {
|
|
3722
|
+
type: String,
|
|
3723
|
+
default: "#333333"
|
|
3724
|
+
},
|
|
3725
|
+
lightDisabledBgColor: {
|
|
3726
|
+
type: String,
|
|
3727
|
+
default: "#dfdfd9"
|
|
3728
|
+
},
|
|
3729
|
+
// Cores do tema dark
|
|
3730
|
+
darkButtonColor: {
|
|
3731
|
+
type: String,
|
|
3732
|
+
default: "#2d2d2d"
|
|
3733
|
+
},
|
|
3734
|
+
darkButtonColorHover: {
|
|
3735
|
+
type: String,
|
|
3736
|
+
default: "#3d3d3d"
|
|
3737
|
+
},
|
|
3738
|
+
darkTextColor: {
|
|
3739
|
+
type: String,
|
|
3740
|
+
default: "#e0e0e0"
|
|
3741
|
+
},
|
|
3742
|
+
darkTextColorHover: {
|
|
3743
|
+
type: String,
|
|
3744
|
+
default: "#ffffff"
|
|
3745
|
+
},
|
|
3746
|
+
darkBorderColor: {
|
|
3747
|
+
type: String,
|
|
3748
|
+
default: "#555555"
|
|
3749
|
+
},
|
|
3750
|
+
darkBorderColorHover: {
|
|
3751
|
+
type: String,
|
|
3752
|
+
default: "#666666"
|
|
3753
|
+
},
|
|
3754
|
+
darkPopupBgColor: {
|
|
3755
|
+
type: String,
|
|
3756
|
+
default: "#2d2d2d"
|
|
3757
|
+
},
|
|
3758
|
+
darkMenuItemHoverColor: {
|
|
3759
|
+
type: String,
|
|
3760
|
+
default: "#3d3d3d"
|
|
3761
|
+
},
|
|
3762
|
+
darkMenuItemTextColor: {
|
|
3763
|
+
type: String,
|
|
3764
|
+
default: "#e0e0e0"
|
|
3765
|
+
},
|
|
3766
|
+
darkDisabledBgColor: {
|
|
3767
|
+
type: String,
|
|
3768
|
+
default: "rgba(40, 42, 54, 1)"
|
|
3110
3769
|
}
|
|
3111
3770
|
},
|
|
3112
3771
|
emits: ["clicked", "main-clicked", "menu-item-clicked"],
|
|
3113
|
-
setup(e, { emit:
|
|
3114
|
-
|
|
3115
|
-
|
|
3772
|
+
setup(e, { emit: l }) {
|
|
3773
|
+
xe((a) => ({
|
|
3774
|
+
a2b87d56: ge.value.font,
|
|
3775
|
+
"68e0aa8a": o(M),
|
|
3776
|
+
"230f2f9c": o(h),
|
|
3777
|
+
"48b2d97c": o(n),
|
|
3778
|
+
"60b88ec8": o(v),
|
|
3779
|
+
"5d16bf24": o(p),
|
|
3780
|
+
"08f39670": o(r)
|
|
3116
3781
|
}));
|
|
3117
|
-
const X =
|
|
3118
|
-
display:
|
|
3119
|
-
mainButtonText:
|
|
3120
|
-
mainButtonAriaLabel:
|
|
3121
|
-
menuItems:
|
|
3122
|
-
popupButtonTitle:
|
|
3123
|
-
ariaLabel:
|
|
3124
|
-
ariaAttrs:
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3782
|
+
const X = l, ae = e, {
|
|
3783
|
+
display: q,
|
|
3784
|
+
mainButtonText: Q,
|
|
3785
|
+
mainButtonAriaLabel: y,
|
|
3786
|
+
menuItems: Y,
|
|
3787
|
+
popupButtonTitle: U,
|
|
3788
|
+
ariaLabel: te,
|
|
3789
|
+
ariaAttrs: j,
|
|
3790
|
+
menuItemFocusOutlineColor: Z,
|
|
3791
|
+
menuItemFocusOutlineWidth: F,
|
|
3792
|
+
menuItemFocusOutlineOffset: G,
|
|
3793
|
+
showBorder: ee,
|
|
3794
|
+
showPopupButton: W,
|
|
3795
|
+
borderRadius: L,
|
|
3796
|
+
popupBorderRadius: V,
|
|
3797
|
+
width: I,
|
|
3798
|
+
paddingX: b,
|
|
3799
|
+
paddingY: T,
|
|
3800
|
+
popupPaddingX: f,
|
|
3801
|
+
popupPaddingY: m,
|
|
3802
|
+
disabled: d,
|
|
3803
|
+
fontFamily: _,
|
|
3804
|
+
fontSize: S,
|
|
3805
|
+
fontWeight: D,
|
|
3806
|
+
popupFontFamily: P,
|
|
3807
|
+
popupFontSize: J,
|
|
3808
|
+
popupFontWeight: w,
|
|
3809
|
+
theme: x,
|
|
3810
|
+
lightButtonColor: R,
|
|
3811
|
+
lightButtonColorHover: K,
|
|
3812
|
+
lightTextColor: p,
|
|
3813
|
+
lightTextColorHover: s,
|
|
3814
|
+
lightBorderColor: N,
|
|
3815
|
+
lightBorderColorHover: z,
|
|
3816
|
+
lightPopupBgColor: B,
|
|
3817
|
+
lightMenuItemHoverColor: E,
|
|
3818
|
+
lightMenuItemTextColor: h,
|
|
3819
|
+
lightDisabledBgColor: r,
|
|
3820
|
+
darkButtonColor: i,
|
|
3821
|
+
darkButtonColorHover: u,
|
|
3822
|
+
darkTextColor: n,
|
|
3823
|
+
darkTextColorHover: c,
|
|
3824
|
+
darkBorderColor: H,
|
|
3825
|
+
darkBorderColorHover: oe,
|
|
3826
|
+
darkPopupBgColor: ie,
|
|
3827
|
+
darkMenuItemHoverColor: be,
|
|
3828
|
+
darkMenuItemTextColor: M,
|
|
3829
|
+
darkDisabledBgColor: v
|
|
3830
|
+
} = Be(ae), g = Te(!1), le = Te(null), $ = Te(null), k = Te(null), ue = Te(null), ne = Te(-1), me = Te(!1), ge = t(() => {
|
|
3831
|
+
const a = d.value ? "component-disabled" : "", C = q.value !== "b" ? "inline-block" : "block", re = !L.value || L.value < 0 ? 0 : L.value, ce = V.value !== null && V.value !== void 0 ? V.value < 0 ? 0 : V.value : re, Ve = [!1, !0].includes(ee.value) ? ee.value : !0, we = [!1, !0].includes(W.value) ? W.value : !0, $e = Z.value || "currentColor", He = F.value || "2px", Xe = G.value || "-2px", Ke = !b.value || b.value < 0 ? 1 : b.value, Me = !T.value || T.value < 0 ? 0.32 : T.value, ct = f.value !== null && f.value !== void 0 ? f.value < 0 ? 1 : f.value : Ke, ft = m.value !== null && m.value !== void 0 ? m.value < 0 ? 0.2 : m.value : Me, qe = _.value ? _.value : "'Lato', sans-serif", Ue = S.value ? S.value : "1.6em", Ge = !D.value || D.value < 0 ? 400 : D.value, vt = P.value || qe, pt = J.value || Ue, bt = w.value !== null && w.value !== void 0 ? w.value < 0 ? 400 : w.value : Ge, gt = x.value ? x.value : "light";
|
|
3158
3832
|
return {
|
|
3159
|
-
disabled:
|
|
3160
|
-
display:
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
menuItemFocusOutlineOffset: ct,
|
|
3180
|
-
paddingX: _e,
|
|
3181
|
-
paddingY: Re,
|
|
3182
|
-
popupPaddingX: vt,
|
|
3183
|
-
popupPaddingY: bt,
|
|
3184
|
-
font: ze,
|
|
3185
|
-
fontSize: Le,
|
|
3186
|
-
fontWeight: Ye,
|
|
3187
|
-
popupFont: pt,
|
|
3188
|
-
popupFontSize: yt,
|
|
3189
|
-
popupFontWeight: mt
|
|
3833
|
+
disabled: a,
|
|
3834
|
+
display: C,
|
|
3835
|
+
showBorder: Ve,
|
|
3836
|
+
showPopupButton: we,
|
|
3837
|
+
borderRadius: re,
|
|
3838
|
+
popupBorderRadius: ce,
|
|
3839
|
+
menuItemFocusOutlineColor: $e,
|
|
3840
|
+
menuItemFocusOutlineWidth: He,
|
|
3841
|
+
menuItemFocusOutlineOffset: Xe,
|
|
3842
|
+
paddingX: Ke,
|
|
3843
|
+
paddingY: Me,
|
|
3844
|
+
popupPaddingX: ct,
|
|
3845
|
+
popupPaddingY: ft,
|
|
3846
|
+
font: qe,
|
|
3847
|
+
fontSize: Ue,
|
|
3848
|
+
fontWeight: Ge,
|
|
3849
|
+
popupFont: vt,
|
|
3850
|
+
popupFontSize: pt,
|
|
3851
|
+
popupFontWeight: bt,
|
|
3852
|
+
theme: gt
|
|
3190
3853
|
};
|
|
3191
|
-
}),
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3854
|
+
}), Ie = t(() => {
|
|
3855
|
+
switch (ge.value.theme) {
|
|
3856
|
+
case "dark":
|
|
3857
|
+
return "component__theme--dark";
|
|
3858
|
+
default:
|
|
3859
|
+
return "component__theme--light";
|
|
3860
|
+
}
|
|
3861
|
+
}), _e = t(() => ge.value.disabled), De = t(() => ({
|
|
3862
|
+
display: ge.value.display
|
|
3863
|
+
})), Ne = t(() => {
|
|
3864
|
+
const a = ge.value, C = a.display === "block" ? {} : { width: I.value ? `${I.value}px` : "auto" };
|
|
3195
3865
|
return {
|
|
3196
|
-
borderRadius: `${
|
|
3866
|
+
borderRadius: `${a.borderRadius}rem`,
|
|
3197
3867
|
overflow: "visible",
|
|
3198
3868
|
position: "relative",
|
|
3199
|
-
...
|
|
3869
|
+
...C
|
|
3200
3870
|
};
|
|
3201
|
-
}),
|
|
3202
|
-
const
|
|
3203
|
-
borderTopLeftRadius: `${
|
|
3204
|
-
borderBottomLeftRadius: `${
|
|
3871
|
+
}), Re = t(() => {
|
|
3872
|
+
const a = ge.value, C = I.value ? `${I.value}px` : "auto", re = a.showPopupButton ? {
|
|
3873
|
+
borderTopLeftRadius: `${a.borderRadius}rem`,
|
|
3874
|
+
borderBottomLeftRadius: `${a.borderRadius}rem`,
|
|
3205
3875
|
borderTopRightRadius: "0",
|
|
3206
3876
|
borderBottomRightRadius: "0"
|
|
3207
3877
|
} : {
|
|
3208
|
-
borderRadius: `${
|
|
3209
|
-
},
|
|
3210
|
-
borderTop: `1px solid ${
|
|
3211
|
-
borderBottom: `1px solid ${
|
|
3212
|
-
borderLeft: `1px solid ${
|
|
3878
|
+
borderRadius: `${a.borderRadius}rem`
|
|
3879
|
+
}, ce = a.showBorder ? a.showPopupButton ? {
|
|
3880
|
+
borderTop: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
|
|
3881
|
+
borderBottom: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
|
|
3882
|
+
borderLeft: `1px solid ${a.theme === "dark" ? H.value : N.value}`,
|
|
3213
3883
|
borderRight: "none"
|
|
3214
3884
|
} : {
|
|
3215
|
-
border: `1px solid ${
|
|
3216
|
-
} : { border: "none" };
|
|
3885
|
+
border: `1px solid ${a.theme === "dark" ? H.value : N.value}`
|
|
3886
|
+
} : { border: "none" }, Ve = a.theme === "dark" ? i.value : R.value, we = a.theme === "dark" ? n.value : p.value, $e = a.theme === "dark" ? u.value : K.value, He = a.theme === "dark" ? c.value : s.value, Xe = a.theme === "dark" ? oe.value : z.value;
|
|
3217
3887
|
return {
|
|
3218
|
-
color:
|
|
3219
|
-
backgroundColor:
|
|
3220
|
-
padding: `${
|
|
3888
|
+
color: we,
|
|
3889
|
+
backgroundColor: Ve,
|
|
3890
|
+
padding: `${a.paddingY}rem ${a.paddingX}rem`,
|
|
3221
3891
|
lineHeight: "1.42857143",
|
|
3222
|
-
fontSize:
|
|
3223
|
-
fontWeight:
|
|
3224
|
-
fontFamily:
|
|
3225
|
-
...
|
|
3226
|
-
...
|
|
3227
|
-
minWidth:
|
|
3228
|
-
"--main-button-hover-color":
|
|
3229
|
-
"--main-button-active-color":
|
|
3230
|
-
"--main-text-hover-color":
|
|
3231
|
-
"--main-border-hover-color":
|
|
3892
|
+
fontSize: a.fontSize,
|
|
3893
|
+
fontWeight: a.fontWeight,
|
|
3894
|
+
fontFamily: a.font,
|
|
3895
|
+
...ce,
|
|
3896
|
+
...re,
|
|
3897
|
+
minWidth: C === "auto" ? "33px" : C,
|
|
3898
|
+
"--main-button-hover-color": $e,
|
|
3899
|
+
"--main-button-active-color": $e,
|
|
3900
|
+
"--main-text-hover-color": He,
|
|
3901
|
+
"--main-border-hover-color": Xe
|
|
3232
3902
|
};
|
|
3233
|
-
}),
|
|
3234
|
-
const
|
|
3235
|
-
borderTop: `1px solid ${
|
|
3236
|
-
borderBottom: `1px solid ${
|
|
3237
|
-
borderRight: `1px solid ${
|
|
3238
|
-
borderLeft: `1px solid ${
|
|
3239
|
-
} : { border: "none" };
|
|
3903
|
+
}), Je = t(() => {
|
|
3904
|
+
const a = ge.value, C = a.theme === "dark" ? H.value : N.value, re = a.showBorder ? {
|
|
3905
|
+
borderTop: `1px solid ${C}`,
|
|
3906
|
+
borderBottom: `1px solid ${C}`,
|
|
3907
|
+
borderRight: `1px solid ${C}`,
|
|
3908
|
+
borderLeft: `1px solid ${C}`
|
|
3909
|
+
} : { border: "none" }, ce = a.theme === "dark" ? i.value : R.value, Ve = a.theme === "dark" ? n.value : p.value, we = a.theme === "dark" ? u.value : K.value, $e = a.theme === "dark" ? c.value : s.value, He = a.theme === "dark" ? oe.value : z.value;
|
|
3240
3910
|
return {
|
|
3241
|
-
color:
|
|
3242
|
-
backgroundColor:
|
|
3243
|
-
padding: `${
|
|
3244
|
-
fontSize:
|
|
3245
|
-
fontWeight:
|
|
3246
|
-
fontFamily:
|
|
3247
|
-
...
|
|
3248
|
-
borderTopRightRadius: `${
|
|
3249
|
-
borderBottomRightRadius: `${
|
|
3911
|
+
color: Ve,
|
|
3912
|
+
backgroundColor: ce,
|
|
3913
|
+
padding: `${a.paddingY}rem ${a.paddingX * 0.5}rem`,
|
|
3914
|
+
fontSize: a.fontSize,
|
|
3915
|
+
fontWeight: a.fontWeight,
|
|
3916
|
+
fontFamily: a.font,
|
|
3917
|
+
...re,
|
|
3918
|
+
borderTopRightRadius: `${a.borderRadius}rem`,
|
|
3919
|
+
borderBottomRightRadius: `${a.borderRadius}rem`,
|
|
3250
3920
|
borderTopLeftRadius: "0",
|
|
3251
3921
|
borderBottomLeftRadius: "0",
|
|
3252
|
-
"--popup-button-hover-color":
|
|
3253
|
-
"--popup-button-active-color":
|
|
3254
|
-
"--popup-text-hover-color":
|
|
3255
|
-
"--popup-border-hover-color":
|
|
3922
|
+
"--popup-button-hover-color": we,
|
|
3923
|
+
"--popup-button-active-color": we,
|
|
3924
|
+
"--popup-text-hover-color": $e,
|
|
3925
|
+
"--popup-border-hover-color": He
|
|
3256
3926
|
};
|
|
3257
|
-
}),
|
|
3258
|
-
const
|
|
3927
|
+
}), Qe = t(() => {
|
|
3928
|
+
const a = ge.value, C = a.theme === "dark" ? ie.value : B.value, re = a.theme === "dark" ? M.value : h.value, ce = a.theme === "dark" ? be.value : E.value;
|
|
3259
3929
|
return {
|
|
3260
|
-
backgroundColor:
|
|
3261
|
-
color:
|
|
3262
|
-
borderRadius: `${
|
|
3930
|
+
backgroundColor: C,
|
|
3931
|
+
color: re,
|
|
3932
|
+
borderRadius: `${a.popupBorderRadius}rem`,
|
|
3263
3933
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
3264
|
-
minHeight:
|
|
3265
|
-
"--menu-item-hover-color":
|
|
3266
|
-
"--menu-item-focus-outline-color":
|
|
3267
|
-
"--menu-item-focus-outline-width":
|
|
3268
|
-
"--menu-item-focus-outline-offset":
|
|
3934
|
+
minHeight: Y.value.length === 0 ? "40px" : "auto",
|
|
3935
|
+
"--menu-item-hover-color": ce,
|
|
3936
|
+
"--menu-item-focus-outline-color": a.menuItemFocusOutlineColor,
|
|
3937
|
+
"--menu-item-focus-outline-width": a.menuItemFocusOutlineWidth,
|
|
3938
|
+
"--menu-item-focus-outline-offset": a.menuItemFocusOutlineOffset
|
|
3269
3939
|
};
|
|
3270
|
-
}),
|
|
3271
|
-
fontSize:
|
|
3272
|
-
fontWeight:
|
|
3273
|
-
fontFamily:
|
|
3274
|
-
padding: `${
|
|
3940
|
+
}), Ze = t(() => ge.value.popupFont), et = t(() => ge.value.popupFontSize), tt = t(() => ge.value.popupFontWeight), at = t(() => ge.value.popupPaddingX), lt = t(() => ge.value.popupPaddingY), ot = t(() => ({
|
|
3941
|
+
fontSize: et.value,
|
|
3942
|
+
fontWeight: tt.value,
|
|
3943
|
+
fontFamily: Ze.value,
|
|
3944
|
+
padding: `${lt.value}rem ${at.value}rem`
|
|
3275
3945
|
}));
|
|
3276
3946
|
t(() => {
|
|
3277
|
-
const
|
|
3278
|
-
|
|
3279
|
-
const
|
|
3280
|
-
"aria-label":
|
|
3281
|
-
"aria-disabled":
|
|
3282
|
-
...
|
|
3947
|
+
const a = {};
|
|
3948
|
+
j.value && Object.keys(j.value).forEach((ce) => a[`aria-${ce}`] = j.value[ce]);
|
|
3949
|
+
const C = {
|
|
3950
|
+
"aria-label": te.value,
|
|
3951
|
+
"aria-disabled": d.value,
|
|
3952
|
+
...a
|
|
3283
3953
|
};
|
|
3284
3954
|
return Object.fromEntries(
|
|
3285
|
-
Object.entries(
|
|
3955
|
+
Object.entries(C).filter(([re, ce]) => ce != null)
|
|
3286
3956
|
);
|
|
3287
3957
|
});
|
|
3288
|
-
const
|
|
3958
|
+
const nt = () => {
|
|
3289
3959
|
document.dispatchEvent(new CustomEvent("splitbutton:close-all", {
|
|
3290
|
-
detail: { excludeId:
|
|
3960
|
+
detail: { excludeId: ae.nbId }
|
|
3291
3961
|
}));
|
|
3292
|
-
},
|
|
3293
|
-
var
|
|
3294
|
-
((
|
|
3295
|
-
},
|
|
3296
|
-
|
|
3297
|
-
if (
|
|
3298
|
-
const
|
|
3299
|
-
if (
|
|
3300
|
-
const
|
|
3301
|
-
(
|
|
3962
|
+
}, Fe = (a) => {
|
|
3963
|
+
var C;
|
|
3964
|
+
((C = a.detail) == null ? void 0 : C.excludeId) !== ae.nbId && g.value && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
|
|
3965
|
+
}, Ae = () => {
|
|
3966
|
+
d.value || (g.value || nt(), me.value = !0, g.value = !g.value, g.value ? Oe(() => {
|
|
3967
|
+
if (ue.value) {
|
|
3968
|
+
const a = ue.value.querySelectorAll("button:not([disabled])");
|
|
3969
|
+
if (a && a.length > 0) {
|
|
3970
|
+
const C = document.activeElement;
|
|
3971
|
+
(C === k.value || C === $.value) && a[0].focus(), ne.value = 0;
|
|
3302
3972
|
}
|
|
3303
3973
|
}
|
|
3304
3974
|
setTimeout(() => {
|
|
3305
|
-
|
|
3975
|
+
me.value = !1;
|
|
3306
3976
|
}, 10);
|
|
3307
|
-
}) : (
|
|
3308
|
-
},
|
|
3309
|
-
if (!
|
|
3310
|
-
if (!
|
|
3311
|
-
|
|
3977
|
+
}) : (ne.value = -1, me.value = !1));
|
|
3978
|
+
}, ze = () => {
|
|
3979
|
+
if (!d.value) {
|
|
3980
|
+
if (!W.value && Y.value.length > 0) {
|
|
3981
|
+
Ae();
|
|
3312
3982
|
return;
|
|
3313
3983
|
}
|
|
3314
3984
|
X("main-clicked"), X("clicked", { type: "main" });
|
|
3315
3985
|
}
|
|
3316
|
-
},
|
|
3317
|
-
|
|
3318
|
-
},
|
|
3319
|
-
|
|
3320
|
-
},
|
|
3321
|
-
var
|
|
3322
|
-
|
|
3323
|
-
},
|
|
3324
|
-
var
|
|
3325
|
-
|
|
3326
|
-
},
|
|
3327
|
-
(
|
|
3328
|
-
},
|
|
3329
|
-
|
|
3330
|
-
var
|
|
3331
|
-
const
|
|
3332
|
-
|
|
3986
|
+
}, Ye = (a, C) => {
|
|
3987
|
+
a.disabled || d.value || (X("menu-item-clicked", { item: a, index: C }), X("clicked", { type: "menu-item", item: a, index: C }), g.value = !1, ne.value = -1);
|
|
3988
|
+
}, rt = () => {
|
|
3989
|
+
k.value && k.value.setAttribute("aria-expanded", "true");
|
|
3990
|
+
}, ut = (a) => {
|
|
3991
|
+
var C;
|
|
3992
|
+
ue.value && !ue.value.contains(a.relatedTarget) && !((C = le.value) != null && C.contains(a.relatedTarget)) && (k.value && k.value.setAttribute("aria-expanded", "false"), g.value = !1, ne.value = -1);
|
|
3993
|
+
}, dt = (a) => {
|
|
3994
|
+
var C;
|
|
3995
|
+
g.value && !((C = le.value) != null && C.contains(a.relatedTarget)) && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
|
|
3996
|
+
}, Le = (a) => {
|
|
3997
|
+
(a.code === "Escape" || a.code === "Backspace") && g.value && (g.value = !1, ne.value = -1, !W.value && $.value ? $.value.focus() : k.value && k.value.focus());
|
|
3998
|
+
}, it = (a) => {
|
|
3999
|
+
a > 0 && (ne.value = a - 1, Oe(() => {
|
|
4000
|
+
var re;
|
|
4001
|
+
const C = (re = ue.value) == null ? void 0 : re.querySelectorAll("button:not([disabled])");
|
|
4002
|
+
C && C[ne.value] && C[ne.value].focus();
|
|
3333
4003
|
}));
|
|
3334
|
-
},
|
|
3335
|
-
var
|
|
3336
|
-
const
|
|
3337
|
-
|
|
3338
|
-
|
|
4004
|
+
}, st = (a) => {
|
|
4005
|
+
var re;
|
|
4006
|
+
const C = (re = ue.value) == null ? void 0 : re.querySelectorAll("button:not([disabled])");
|
|
4007
|
+
C && a < C.length - 1 && (ne.value = a + 1, Oe(() => {
|
|
4008
|
+
C[ne.value] && C[ne.value].focus();
|
|
3339
4009
|
}));
|
|
3340
|
-
},
|
|
3341
|
-
var
|
|
3342
|
-
if (
|
|
4010
|
+
}, Pe = (a) => {
|
|
4011
|
+
var ce, Ve;
|
|
4012
|
+
if (me.value || !g.value || (ce = le.value) != null && ce.contains(a.target))
|
|
3343
4013
|
return;
|
|
3344
|
-
const
|
|
3345
|
-
((
|
|
4014
|
+
const C = a.target;
|
|
4015
|
+
((Ve = C.closest) == null ? void 0 : Ve.call(C, ".nb-split-button")) !== le.value && (g.value = !1, ne.value = -1, k.value && k.value.setAttribute("aria-expanded", "false"));
|
|
3346
4016
|
};
|
|
3347
|
-
return
|
|
3348
|
-
|
|
3349
|
-
document.addEventListener("click",
|
|
4017
|
+
return Ee(() => {
|
|
4018
|
+
Oe(() => {
|
|
4019
|
+
document.addEventListener("click", Pe, !1), document.addEventListener("splitbutton:close-all", Fe);
|
|
3350
4020
|
});
|
|
3351
|
-
}),
|
|
3352
|
-
document.removeEventListener("click",
|
|
3353
|
-
}), (
|
|
4021
|
+
}), mt(() => {
|
|
4022
|
+
document.removeEventListener("click", Pe, !1), document.removeEventListener("splitbutton:close-all", Fe);
|
|
4023
|
+
}), (a, C) => e.nbId ? (fe(), ve("div", {
|
|
3354
4024
|
key: 0,
|
|
3355
4025
|
ref_key: "wrapperRef",
|
|
3356
|
-
ref:
|
|
3357
|
-
class:
|
|
3358
|
-
style:
|
|
3359
|
-
onFocusout:
|
|
4026
|
+
ref: le,
|
|
4027
|
+
class: pe(["nb-wrapper", "nb-split-button", _e.value]),
|
|
4028
|
+
style: se([De.value]),
|
|
4029
|
+
onFocusout: dt
|
|
3360
4030
|
}, [
|
|
3361
|
-
|
|
4031
|
+
de("div", {
|
|
3362
4032
|
id: e.nbId,
|
|
3363
|
-
class:
|
|
3364
|
-
style:
|
|
4033
|
+
class: pe(["nb-reset", "component", { "component--block": o(q) === "b" }, Ie.value]),
|
|
4034
|
+
style: se([Ne.value])
|
|
3365
4035
|
}, [
|
|
3366
|
-
|
|
4036
|
+
de("button", {
|
|
3367
4037
|
ref_key: "mainButtonRef",
|
|
3368
|
-
ref:
|
|
3369
|
-
class:
|
|
3370
|
-
style:
|
|
3371
|
-
disabled:
|
|
3372
|
-
"aria-label":
|
|
3373
|
-
"aria-haspopup": !
|
|
3374
|
-
"aria-expanded":
|
|
3375
|
-
tabindex:
|
|
3376
|
-
onClick:
|
|
4038
|
+
ref: $,
|
|
4039
|
+
class: pe(["split-button__main", { "split-button__main--disabled": o(d) }]),
|
|
4040
|
+
style: se([Re.value]),
|
|
4041
|
+
disabled: o(d),
|
|
4042
|
+
"aria-label": o(y),
|
|
4043
|
+
"aria-haspopup": !o(W) && o(Y).length > 0,
|
|
4044
|
+
"aria-expanded": o(W) ? void 0 : g.value,
|
|
4045
|
+
tabindex: o(d) ? -1 : 0,
|
|
4046
|
+
onClick: A(ze, ["stop"]),
|
|
3377
4047
|
onKeydown: [
|
|
3378
|
-
|
|
3379
|
-
|
|
4048
|
+
C[0] || (C[0] = O(A((re) => !o(d) && e.hasTabIndexEnter && ze(), ["prevent"]), ["enter"])),
|
|
4049
|
+
C[1] || (C[1] = O(A((re) => !o(d) && e.hasTabIndexSpace && ze(), ["prevent"]), ["space"]))
|
|
3380
4050
|
]
|
|
3381
4051
|
}, [
|
|
3382
|
-
|
|
3383
|
-
|
|
4052
|
+
he(a.$slots, "main-content", {}, () => [
|
|
4053
|
+
Ce(We(o(Q)), 1)
|
|
3384
4054
|
], !0)
|
|
3385
|
-
], 46,
|
|
3386
|
-
|
|
4055
|
+
], 46, Na),
|
|
4056
|
+
o(W) ? (fe(), ve("span", {
|
|
3387
4057
|
key: 0,
|
|
3388
4058
|
ref_key: "popupButtonRef",
|
|
3389
|
-
ref:
|
|
3390
|
-
class:
|
|
3391
|
-
style:
|
|
4059
|
+
ref: k,
|
|
4060
|
+
class: pe(["split-button__popup-button", { "split-button__popup-button--open": g.value }]),
|
|
4061
|
+
style: se([Je.value]),
|
|
3392
4062
|
"aria-haspopup": !0,
|
|
3393
|
-
"aria-expanded":
|
|
3394
|
-
title:
|
|
3395
|
-
tabindex:
|
|
3396
|
-
onClick:
|
|
3397
|
-
onFocusin:
|
|
3398
|
-
onFocusout:
|
|
4063
|
+
"aria-expanded": g.value,
|
|
4064
|
+
title: o(U),
|
|
4065
|
+
tabindex: o(d) ? -1 : 0,
|
|
4066
|
+
onClick: A(Ae, ["stop"]),
|
|
4067
|
+
onFocusin: rt,
|
|
4068
|
+
onFocusout: ut,
|
|
3399
4069
|
onKeydown: [
|
|
3400
|
-
|
|
3401
|
-
|
|
4070
|
+
C[2] || (C[2] = O(A((re) => !o(d) && Ae(), ["prevent"]), ["enter"])),
|
|
4071
|
+
C[3] || (C[3] = O(A((re) => !o(d) && Ae(), ["prevent"]), ["space"]))
|
|
3402
4072
|
],
|
|
3403
4073
|
onKeyup: [
|
|
3404
|
-
|
|
3405
|
-
|
|
4074
|
+
O(Le, ["escape"]),
|
|
4075
|
+
O(Le, ["backspace"])
|
|
3406
4076
|
]
|
|
3407
4077
|
}, [
|
|
3408
|
-
|
|
3409
|
-
(
|
|
3410
|
-
class:
|
|
4078
|
+
he(a.$slots, "popup-icon", {}, () => [
|
|
4079
|
+
(fe(), ve("svg", {
|
|
4080
|
+
class: pe(["split-button__icon", { "split-button__icon--open": g.value }]),
|
|
3411
4081
|
viewBox: "0 0 24 24",
|
|
3412
4082
|
fill: "none",
|
|
3413
4083
|
stroke: "currentColor",
|
|
3414
4084
|
"stroke-width": "2"
|
|
3415
|
-
},
|
|
3416
|
-
|
|
4085
|
+
}, C[4] || (C[4] = [
|
|
4086
|
+
de("polyline", { points: "6 9 12 15 18 9" }, null, -1)
|
|
3417
4087
|
]), 2))
|
|
3418
4088
|
], !0)
|
|
3419
|
-
], 46,
|
|
3420
|
-
|
|
4089
|
+
], 46, Ha)) : ye("", !0),
|
|
4090
|
+
g.value ? (fe(), ve("div", {
|
|
3421
4091
|
key: 1,
|
|
3422
4092
|
ref_key: "popupRef",
|
|
3423
|
-
ref:
|
|
3424
|
-
class:
|
|
3425
|
-
style:
|
|
4093
|
+
ref: ue,
|
|
4094
|
+
class: pe(["split-button__popup", { "split-button__popup--open": g.value }]),
|
|
4095
|
+
style: se([Qe.value])
|
|
3426
4096
|
}, [
|
|
3427
|
-
(
|
|
3428
|
-
key:
|
|
3429
|
-
class:
|
|
3430
|
-
style:
|
|
3431
|
-
disabled:
|
|
3432
|
-
tabindex:
|
|
3433
|
-
onClick:
|
|
4097
|
+
(fe(!0), ve(ht, null, Ct(o(Y), (re, ce) => (fe(), ve("button", {
|
|
4098
|
+
key: ce,
|
|
4099
|
+
class: pe(["split-button__menu-item", { "split-button__menu-item--disabled": re.disabled }]),
|
|
4100
|
+
style: se([ot.value]),
|
|
4101
|
+
disabled: re.disabled || o(d),
|
|
4102
|
+
tabindex: re.disabled || o(d) ? -1 : 0,
|
|
4103
|
+
onClick: A((Ve) => Ye(re, ce), ["stop"]),
|
|
3434
4104
|
onKeydown: [
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
4105
|
+
O(A((Ve) => !re.disabled && !o(d) && Ye(re, ce), ["prevent"]), ["enter"]),
|
|
4106
|
+
O(A((Ve) => !re.disabled && !o(d) && Ye(re, ce), ["prevent"]), ["space"]),
|
|
4107
|
+
O(A((Ve) => it(ce), ["prevent"]), ["arrow-up"]),
|
|
4108
|
+
O(A((Ve) => st(ce), ["prevent"]), ["arrow-down"]),
|
|
4109
|
+
O(A(Le, ["prevent"]), ["escape"]),
|
|
4110
|
+
O(A(Le, ["prevent"]), ["backspace"])
|
|
3441
4111
|
]
|
|
3442
4112
|
}, [
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
4113
|
+
re.icon ? (fe(), ve("span", La, [
|
|
4114
|
+
he(a.$slots, `item-icon-${ce}`, { item: re }, () => [
|
|
4115
|
+
Ce(We(re.icon), 1)
|
|
3446
4116
|
], !0)
|
|
3447
|
-
])) :
|
|
3448
|
-
|
|
3449
|
-
], 46,
|
|
3450
|
-
], 6)) :
|
|
3451
|
-
], 14,
|
|
3452
|
-
], 38)) :
|
|
4117
|
+
])) : ye("", !0),
|
|
4118
|
+
de("span", Oa, We(re.label), 1)
|
|
4119
|
+
], 46, Aa))), 128))
|
|
4120
|
+
], 6)) : ye("", !0)
|
|
4121
|
+
], 14, Da)
|
|
4122
|
+
], 38)) : ye("", !0);
|
|
3453
4123
|
}
|
|
3454
|
-
}),
|
|
3455
|
-
NbButtonVavaGame:
|
|
3456
|
-
NbButtonShowHover:
|
|
3457
|
-
NbButtonPrevNext:
|
|
3458
|
-
NbButtonMechanical:
|
|
3459
|
-
NbButtonMechanical2:
|
|
3460
|
-
NbButtonHamburger:
|
|
3461
|
-
NbButtonColorOutside:
|
|
3462
|
-
NbButtonColorHover:
|
|
4124
|
+
}), Ra = /* @__PURE__ */ ke(Wa, [["__scopeId", "data-v-2b74c5a0"]]), je = {
|
|
4125
|
+
NbButtonVavaGame: Vt,
|
|
4126
|
+
NbButtonShowHover: It,
|
|
4127
|
+
NbButtonPrevNext: At,
|
|
4128
|
+
NbButtonMechanical: Rt,
|
|
4129
|
+
NbButtonMechanical2: jt,
|
|
4130
|
+
NbButtonHamburger: Kt,
|
|
4131
|
+
NbButtonColorOutside: Gt,
|
|
4132
|
+
NbButtonColorHover: ea,
|
|
3463
4133
|
NbButtonAlternateText: ra,
|
|
3464
|
-
NbButtonBack:
|
|
3465
|
-
NbButtonNormal:
|
|
3466
|
-
NbButtonShadow:
|
|
3467
|
-
NbButtonUnderlineExpand:
|
|
3468
|
-
NbButtonUnderlineFill:
|
|
4134
|
+
NbButtonBack: sa,
|
|
4135
|
+
NbButtonNormal: ma,
|
|
4136
|
+
NbButtonShadow: xa,
|
|
4137
|
+
NbButtonUnderlineExpand: Ta,
|
|
4138
|
+
NbButtonUnderlineFill: _a,
|
|
3469
4139
|
NbButtonGradientBorderToBackground: pa,
|
|
3470
|
-
NbButtonSplitDropdown:
|
|
3471
|
-
},
|
|
4140
|
+
NbButtonSplitDropdown: Ra
|
|
4141
|
+
}, Ya = {
|
|
3472
4142
|
install(e) {
|
|
3473
|
-
for (const
|
|
3474
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3475
|
-
const X =
|
|
4143
|
+
for (const l in je)
|
|
4144
|
+
if (Object.prototype.hasOwnProperty.call(je, l)) {
|
|
4145
|
+
const X = je[l];
|
|
3476
4146
|
e.component(X.name, X);
|
|
3477
4147
|
}
|
|
3478
4148
|
}
|
|
3479
4149
|
};
|
|
3480
4150
|
export {
|
|
3481
|
-
|
|
4151
|
+
Ya as default
|
|
3482
4152
|
};
|