@vlalg-nimbus/nb-buttons 6.2.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nb-buttons.js +1704 -1577
- 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,9 +1,9 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
1
|
+
import { useCssVars as ke, toRefs as Ve, computed as t, openBlock as pe, createElementBlock as be, mergeProps as Be, withKeys as F, withModifiers as z, unref as n, createElementVNode as se, normalizeClass as ge, normalizeStyle as ce, renderSlot as me, createTextVNode as he, createCommentVNode as ye, onMounted as Ge, ref as we, watch as yt, toDisplayString as We, nextTick as Re, onUnmounted as mt, Fragment as ht, renderList as Ct } from "vue";
|
|
2
|
+
const Te = (e, l) => {
|
|
3
|
+
const J = e.__vccOpts || e;
|
|
4
|
+
for (const [ue, ae] of l)
|
|
5
|
+
J[ue] = ae;
|
|
6
|
+
return J;
|
|
7
7
|
}, St = ["tabIndex", "title"], xt = ["id"], Bt = { class: "component-content__text" }, kt = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
9
9
|
inheritAttrs: !1
|
|
@@ -18,8 +18,8 @@ const ke = (e, n) => {
|
|
|
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: {
|
|
@@ -50,8 +50,8 @@ const ke = (e, n) => {
|
|
|
50
50
|
type: String,
|
|
51
51
|
default: "light",
|
|
52
52
|
validator: (e) => {
|
|
53
|
-
const
|
|
54
|
-
return ["light", "dark"].includes(
|
|
53
|
+
const l = e ? e.toLowerCase() : "";
|
|
54
|
+
return ["light", "dark"].includes(l);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
// Cores do tema light
|
|
@@ -154,132 +154,132 @@ const ke = (e, n) => {
|
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
emits: ["clicked"],
|
|
157
|
-
setup(e, { emit:
|
|
158
|
-
|
|
159
|
-
"5bb874cf":
|
|
160
|
-
"7c42cd5e":
|
|
161
|
-
"5cbc6a6b":
|
|
162
|
-
"2daad21c":
|
|
163
|
-
f98f16e4:
|
|
164
|
-
"53a9d7ac":
|
|
165
|
-
ccde2620:
|
|
166
|
-
"01a085af":
|
|
167
|
-
"25b588cd":
|
|
168
|
-
"4022e3d0":
|
|
169
|
-
aabbb6ec:
|
|
170
|
-
"08bbfad2":
|
|
171
|
-
"512f4a46":
|
|
172
|
-
"2d9308bb":
|
|
157
|
+
setup(e, { emit: l }) {
|
|
158
|
+
ke(($) => ({
|
|
159
|
+
"5bb874cf": P.value,
|
|
160
|
+
"7c42cd5e": X.value,
|
|
161
|
+
"5cbc6a6b": f.value,
|
|
162
|
+
"2daad21c": o.value,
|
|
163
|
+
f98f16e4: A.value,
|
|
164
|
+
"53a9d7ac": u.value,
|
|
165
|
+
ccde2620: d.value,
|
|
166
|
+
"01a085af": S.value,
|
|
167
|
+
"25b588cd": b.value,
|
|
168
|
+
"4022e3d0": H.value,
|
|
169
|
+
aabbb6ec: U.value,
|
|
170
|
+
"08bbfad2": de.value,
|
|
171
|
+
"512f4a46": s.value,
|
|
172
|
+
"2d9308bb": g.value
|
|
173
173
|
}));
|
|
174
|
-
const
|
|
175
|
-
display:
|
|
176
|
-
ariaLabel:
|
|
177
|
-
ariaAttrs:
|
|
178
|
-
theme:
|
|
179
|
-
lightTextColor:
|
|
180
|
-
lightTextColorHover:
|
|
181
|
-
lightButtonColor:
|
|
182
|
-
lightButtonColorHover:
|
|
183
|
-
lightBorderColor:
|
|
184
|
-
lightDisabledBgColor:
|
|
185
|
-
darkTextColor:
|
|
186
|
-
darkTextColorHover:
|
|
187
|
-
darkButtonColor:
|
|
188
|
-
darkButtonColorHover:
|
|
189
|
-
darkBorderColor:
|
|
190
|
-
darkDisabledBgColor:
|
|
191
|
-
uppercase:
|
|
192
|
-
paddingXContent:
|
|
193
|
-
paddingYContent:
|
|
194
|
-
paddingXBorder:
|
|
195
|
-
paddingYBorder:
|
|
196
|
-
borderOpacity:
|
|
197
|
-
disabled:
|
|
198
|
-
fontFamily:
|
|
199
|
-
fontSize:
|
|
200
|
-
fontWeight:
|
|
201
|
-
} =
|
|
202
|
-
const
|
|
174
|
+
const J = l, ue = e, {
|
|
175
|
+
display: ae,
|
|
176
|
+
ariaLabel: oe,
|
|
177
|
+
ariaAttrs: B,
|
|
178
|
+
theme: M,
|
|
179
|
+
lightTextColor: Q,
|
|
180
|
+
lightTextColorHover: le,
|
|
181
|
+
lightButtonColor: G,
|
|
182
|
+
lightButtonColorHover: ee,
|
|
183
|
+
lightBorderColor: ne,
|
|
184
|
+
lightDisabledBgColor: te,
|
|
185
|
+
darkTextColor: q,
|
|
186
|
+
darkTextColorHover: O,
|
|
187
|
+
darkButtonColor: I,
|
|
188
|
+
darkButtonColorHover: T,
|
|
189
|
+
darkBorderColor: V,
|
|
190
|
+
darkDisabledBgColor: c,
|
|
191
|
+
uppercase: m,
|
|
192
|
+
paddingXContent: v,
|
|
193
|
+
paddingYContent: h,
|
|
194
|
+
paddingXBorder: i,
|
|
195
|
+
paddingYBorder: C,
|
|
196
|
+
borderOpacity: w,
|
|
197
|
+
disabled: y,
|
|
198
|
+
fontFamily: _,
|
|
199
|
+
fontSize: R,
|
|
200
|
+
fontWeight: N
|
|
201
|
+
} = Ve(ue), D = t(() => {
|
|
202
|
+
const $ = y.value ? "component-disabled" : "", re = ae.value !== "b" ? "inline-block" : "block", fe = !w.value || !(w.value >= 0 && w.value <= 1) ? "0.5" : w.value, ie = i.value !== 0 && !i.value || i.value < 0 ? 0.5 : i.value, Ce = C.value !== 0 && !C.value || C.value < 0 ? 0.5 : C.value, j = v.value !== 0 && !v.value || v.value < 0 ? 0.5 : v.value, Se = h.value !== 0 && !h.value || h.value < 0 ? 0.5 : h.value, He = m.value ? "uppercase" : "none", Ie = _.value ? _.value : "'Lato', sans-serif", De = R.value ? R.value : "1.6em", Le = N.value !== 0 && !N.value || N.value < 0 ? 100 : N.value;
|
|
203
203
|
return {
|
|
204
|
-
disabled:
|
|
205
|
-
display:
|
|
206
|
-
borderOpacity:
|
|
207
|
-
paddingXBorder:
|
|
208
|
-
paddingYBorder:
|
|
209
|
-
paddingXContent:
|
|
210
|
-
paddingYContent:
|
|
211
|
-
uppercase:
|
|
212
|
-
font:
|
|
213
|
-
fontSize:
|
|
214
|
-
fontWeight:
|
|
204
|
+
disabled: $,
|
|
205
|
+
display: re,
|
|
206
|
+
borderOpacity: fe,
|
|
207
|
+
paddingXBorder: ie,
|
|
208
|
+
paddingYBorder: Ce,
|
|
209
|
+
paddingXContent: j,
|
|
210
|
+
paddingYContent: Se,
|
|
211
|
+
uppercase: He,
|
|
212
|
+
font: Ie,
|
|
213
|
+
fontSize: De,
|
|
214
|
+
fontWeight: Le
|
|
215
215
|
};
|
|
216
|
-
}),
|
|
217
|
-
display:
|
|
218
|
-
})),
|
|
219
|
-
const
|
|
216
|
+
}), Y = t(() => D.value.disabled), E = t(() => ({
|
|
217
|
+
display: D.value.display
|
|
218
|
+
})), L = t(() => {
|
|
219
|
+
const $ = D.value;
|
|
220
220
|
return {
|
|
221
|
-
padding: `${
|
|
222
|
-
fontSize:
|
|
223
|
-
fontWeight:
|
|
221
|
+
padding: `${$.paddingYBorder}rem ${$.paddingXBorder}rem`,
|
|
222
|
+
fontSize: $.fontSize,
|
|
223
|
+
fontWeight: $.fontWeight
|
|
224
224
|
};
|
|
225
|
-
}),
|
|
226
|
-
const
|
|
225
|
+
}), r = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), k = t(() => {
|
|
226
|
+
const $ = D.value;
|
|
227
227
|
return {
|
|
228
|
-
textTransform:
|
|
229
|
-
padding: `${
|
|
228
|
+
textTransform: $.uppercase,
|
|
229
|
+
padding: `${$.paddingYContent}rem ${$.paddingXContent}rem`
|
|
230
230
|
};
|
|
231
|
-
}),
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
"aria-label":
|
|
236
|
-
"aria-disabled":
|
|
237
|
-
|
|
231
|
+
}), W = t(() => ({})), P = t(() => D.value.font), A = t(() => D.value.borderOpacity), X = t(() => Q.value), f = t(() => le.value), u = t(() => G.value), d = t(() => ee.value), o = t(() => ne.value), s = t(() => te.value), S = t(() => q.value), b = t(() => O.value), U = t(() => I.value), de = t(() => T.value), H = t(() => V.value), g = t(() => c.value), p = t(() => {
|
|
232
|
+
const $ = {};
|
|
233
|
+
B.value && Object.keys(B.value).forEach((ie) => $[`aria-${ie}`] = B.value[ie]);
|
|
234
|
+
const re = {
|
|
235
|
+
"aria-label": oe.value,
|
|
236
|
+
"aria-disabled": y.value,
|
|
237
|
+
...$
|
|
238
238
|
};
|
|
239
239
|
return Object.fromEntries(
|
|
240
|
-
Object.entries(
|
|
240
|
+
Object.entries(re).filter(([fe, ie]) => ie != null)
|
|
241
241
|
);
|
|
242
|
-
}),
|
|
243
|
-
|
|
242
|
+
}), K = ($) => {
|
|
243
|
+
J("clicked", $);
|
|
244
244
|
};
|
|
245
|
-
return (
|
|
245
|
+
return ($, re) => e.nbId ? (pe(), be("div", Be({
|
|
246
246
|
key: 0,
|
|
247
|
-
class: ["nb-wrapper",
|
|
248
|
-
style: [
|
|
247
|
+
class: ["nb-wrapper", Y.value],
|
|
248
|
+
style: [E.value],
|
|
249
249
|
tabIndex: e.tabIndex,
|
|
250
250
|
role: "button",
|
|
251
251
|
title: e.title
|
|
252
252
|
}, p.value, {
|
|
253
|
-
onClick:
|
|
253
|
+
onClick: re[0] || (re[0] = (fe) => K(fe)),
|
|
254
254
|
onKeydown: [
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
re[1] || (re[1] = F(z((fe) => !n(y) && e.hasTabIndexEnter && K(fe), ["prevent"]), ["enter"])),
|
|
256
|
+
re[2] || (re[2] = F(z((fe) => !n(y) && e.hasTabIndexSpace && K(fe), ["prevent"]), ["space"]))
|
|
257
257
|
]
|
|
258
258
|
}), [
|
|
259
|
-
|
|
259
|
+
se("div", {
|
|
260
260
|
id: e.nbId,
|
|
261
|
-
class:
|
|
262
|
-
style:
|
|
261
|
+
class: ge(["nb-reset", "component", r.value]),
|
|
262
|
+
style: ce([L.value])
|
|
263
263
|
}, [
|
|
264
|
-
|
|
264
|
+
se("div", {
|
|
265
265
|
class: "component-content",
|
|
266
|
-
style:
|
|
266
|
+
style: ce([k.value])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
269
|
-
me(
|
|
270
|
-
|
|
268
|
+
se("span", Bt, [
|
|
269
|
+
me($.$slots, "content", {}, () => [
|
|
270
|
+
re[3] || (re[3] = he("Default Text"))
|
|
271
271
|
], !0)
|
|
272
272
|
]),
|
|
273
|
-
|
|
273
|
+
se("span", {
|
|
274
274
|
class: "component-content__mask",
|
|
275
|
-
style:
|
|
275
|
+
style: ce([W.value])
|
|
276
276
|
}, null, 4)
|
|
277
277
|
], 4)
|
|
278
278
|
], 14, xt)
|
|
279
|
-
], 16, St)) :
|
|
279
|
+
], 16, St)) : ye("", !0);
|
|
280
280
|
}
|
|
281
|
-
}), Vt = /* @__PURE__ */
|
|
282
|
-
const Tt = ["tabIndex", "title"],
|
|
281
|
+
}), Vt = /* @__PURE__ */ Te(kt, [["__scopeId", "data-v-42160f0a"]]);
|
|
282
|
+
const Tt = ["tabIndex", "title"], Ht = ["id"], It = /* @__PURE__ */ Object.assign({
|
|
283
283
|
name: "NbButtonShowHover",
|
|
284
284
|
inheritAttrs: !1
|
|
285
285
|
}, {
|
|
@@ -317,8 +317,8 @@ const Tt = ["tabIndex", "title"], It = ["id"], wt = /* @__PURE__ */ Object.assig
|
|
|
317
317
|
type: String,
|
|
318
318
|
default: "light",
|
|
319
319
|
validator: (e) => {
|
|
320
|
-
const
|
|
321
|
-
return ["light", "dark"].includes(
|
|
320
|
+
const l = e ? e.toLowerCase() : "";
|
|
321
|
+
return ["light", "dark"].includes(l);
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
// Cores do tema light
|
|
@@ -400,114 +400,121 @@ const Tt = ["tabIndex", "title"], It = ["id"], wt = /* @__PURE__ */ Object.assig
|
|
|
400
400
|
type: Number,
|
|
401
401
|
default: 400,
|
|
402
402
|
validator: (e) => e || 400
|
|
403
|
+
},
|
|
404
|
+
lineHeight: {
|
|
405
|
+
type: Number,
|
|
406
|
+
default: 1.42857143
|
|
403
407
|
}
|
|
404
408
|
},
|
|
405
409
|
emits: ["clicked"],
|
|
406
|
-
setup(e, { emit:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
|
|
413
|
-
"
|
|
414
|
-
|
|
415
|
-
"
|
|
410
|
+
setup(e, { emit: l }) {
|
|
411
|
+
ke((u) => ({
|
|
412
|
+
"2528cfa7": A.value,
|
|
413
|
+
f4fb990e: E.value,
|
|
414
|
+
"599a2ab8": Y.value,
|
|
415
|
+
"8e89d470": r.value,
|
|
416
|
+
"758ae943": L.value,
|
|
417
|
+
"7b8d0687": k.value,
|
|
418
|
+
"09bd56fa": P.value,
|
|
419
|
+
"47a06216": W.value
|
|
416
420
|
}));
|
|
417
|
-
const
|
|
418
|
-
ariaLabel:
|
|
419
|
-
ariaAttrs:
|
|
420
|
-
theme:
|
|
421
|
-
lightTextColor:
|
|
422
|
-
lightTextColorHover:
|
|
423
|
-
lightButtonColorHover:
|
|
424
|
-
lightButtonColorOpacityHover:
|
|
425
|
-
lightDisabledBgColor:
|
|
426
|
-
darkTextColor:
|
|
427
|
-
darkTextColorHover:
|
|
428
|
-
darkButtonColorHover:
|
|
429
|
-
darkButtonColorOpacityHover:
|
|
430
|
-
darkDisabledBgColor:
|
|
431
|
-
paddingX:
|
|
432
|
-
paddingY:
|
|
433
|
-
disabled:
|
|
434
|
-
borderRadius:
|
|
435
|
-
verticalAlign:
|
|
436
|
-
fontFamily:
|
|
437
|
-
fontSize:
|
|
438
|
-
fontWeight:
|
|
439
|
-
|
|
440
|
-
|
|
421
|
+
const J = l, ue = e, {
|
|
422
|
+
ariaLabel: ae,
|
|
423
|
+
ariaAttrs: oe,
|
|
424
|
+
theme: B,
|
|
425
|
+
lightTextColor: M,
|
|
426
|
+
lightTextColorHover: Q,
|
|
427
|
+
lightButtonColorHover: le,
|
|
428
|
+
lightButtonColorOpacityHover: G,
|
|
429
|
+
lightDisabledBgColor: ee,
|
|
430
|
+
darkTextColor: ne,
|
|
431
|
+
darkTextColorHover: te,
|
|
432
|
+
darkButtonColorHover: q,
|
|
433
|
+
darkButtonColorOpacityHover: O,
|
|
434
|
+
darkDisabledBgColor: I,
|
|
435
|
+
paddingX: T,
|
|
436
|
+
paddingY: V,
|
|
437
|
+
disabled: c,
|
|
438
|
+
borderRadius: m,
|
|
439
|
+
verticalAlign: v,
|
|
440
|
+
fontFamily: h,
|
|
441
|
+
fontSize: i,
|
|
442
|
+
fontWeight: C,
|
|
443
|
+
lineHeight: w
|
|
444
|
+
} = Ve(ue), y = t(() => {
|
|
445
|
+
const u = c.value ? "component-disabled" : "", d = v.value ? v.value : "middle", o = T.value !== 0 && !T.value || T.value < 0 ? 1 : T.value, s = V.value !== 0 && !V.value || V.value < 0 ? 0.2 : V.value, S = m.value !== 0 && !m.value || m.value < 0 ? 0 : m.value, b = h.value ? h.value : "'Lato', sans-serif", U = i.value ? i.value : "1.6em", de = C.value !== 0 && !C.value || C.value < 0 ? 100 : C.value, H = w.value !== 0 && !w.value || w.value < 0 ? 1.42857143 : w.value;
|
|
441
446
|
return {
|
|
442
|
-
disabled:
|
|
443
|
-
borderRadius:
|
|
444
|
-
paddingX:
|
|
445
|
-
paddingY:
|
|
446
|
-
font:
|
|
447
|
-
fontSize:
|
|
448
|
-
fontWeight:
|
|
449
|
-
|
|
447
|
+
disabled: u,
|
|
448
|
+
borderRadius: S,
|
|
449
|
+
paddingX: o,
|
|
450
|
+
paddingY: s,
|
|
451
|
+
font: b,
|
|
452
|
+
fontSize: U,
|
|
453
|
+
fontWeight: de,
|
|
454
|
+
lineHeight: H,
|
|
455
|
+
verticalAlign: d
|
|
450
456
|
};
|
|
451
|
-
}),
|
|
452
|
-
verticalAlign:
|
|
453
|
-
})),
|
|
454
|
-
const
|
|
457
|
+
}), _ = t(() => y.value.disabled), R = t(() => ({
|
|
458
|
+
verticalAlign: y.value.verticalAlign
|
|
459
|
+
})), N = t(() => B.value === "dark" ? "component__theme--dark" : "component__theme--light"), D = t(() => {
|
|
460
|
+
const u = y.value;
|
|
455
461
|
return {
|
|
456
|
-
padding: `${
|
|
457
|
-
borderRadius: `${
|
|
458
|
-
|
|
459
|
-
|
|
462
|
+
padding: `${u.paddingY}rem 0`,
|
|
463
|
+
borderRadius: `${u.borderRadius}rem`,
|
|
464
|
+
lineHeight: u.lineHeight,
|
|
465
|
+
fontSize: u.fontSize,
|
|
466
|
+
fontWeight: u.fontWeight
|
|
460
467
|
};
|
|
461
|
-
}),
|
|
462
|
-
const
|
|
463
|
-
return `${
|
|
464
|
-
}),
|
|
465
|
-
t(() =>
|
|
466
|
-
const
|
|
467
|
-
t(() =>
|
|
468
|
-
const
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
"aria-label":
|
|
473
|
-
"aria-disabled":
|
|
474
|
-
...
|
|
468
|
+
}), Y = t(() => {
|
|
469
|
+
const u = y.value;
|
|
470
|
+
return `${u.paddingY}rem ${u.paddingX}rem`;
|
|
471
|
+
}), E = t(() => M.value), L = t(() => Q.value), r = t(() => `rgba(${le.value}, ${G.value})`);
|
|
472
|
+
t(() => ee.value);
|
|
473
|
+
const k = t(() => ne.value), W = t(() => te.value), P = t(() => `rgba(${q.value}, ${O.value})`);
|
|
474
|
+
t(() => I.value);
|
|
475
|
+
const A = t(() => y.value.font), X = t(() => {
|
|
476
|
+
const u = {};
|
|
477
|
+
oe.value && Object.keys(oe.value).forEach((s) => u[`aria-${s}`] = oe.value[s]);
|
|
478
|
+
const d = {
|
|
479
|
+
"aria-label": ae.value,
|
|
480
|
+
"aria-disabled": c.value,
|
|
481
|
+
...u
|
|
475
482
|
};
|
|
476
483
|
return Object.fromEntries(
|
|
477
|
-
Object.entries(
|
|
484
|
+
Object.entries(d).filter(([o, s]) => s != null)
|
|
478
485
|
);
|
|
479
|
-
}),
|
|
480
|
-
|
|
486
|
+
}), f = (u) => {
|
|
487
|
+
J("clicked", u);
|
|
481
488
|
};
|
|
482
|
-
return (
|
|
489
|
+
return (u, d) => e.nbId ? (pe(), be("div", Be({
|
|
483
490
|
key: 0,
|
|
484
|
-
class: ["nb-wrapper",
|
|
485
|
-
style: [
|
|
491
|
+
class: ["nb-wrapper", _.value],
|
|
492
|
+
style: [R.value],
|
|
486
493
|
tabIndex: e.tabIndex,
|
|
487
494
|
role: "button",
|
|
488
495
|
title: e.title
|
|
489
|
-
},
|
|
490
|
-
onClick:
|
|
496
|
+
}, X.value, {
|
|
497
|
+
onClick: d[1] || (d[1] = (o) => f(o)),
|
|
491
498
|
onKeydown: [
|
|
492
|
-
|
|
493
|
-
|
|
499
|
+
d[2] || (d[2] = F(z((o) => !n(c) && e.hasTabIndexEnter && f(o), ["prevent"]), ["enter"])),
|
|
500
|
+
d[3] || (d[3] = F(z((o) => !n(c) && e.hasTabIndexSpace && f(o), ["prevent"]), ["space"]))
|
|
494
501
|
]
|
|
495
502
|
}), [
|
|
496
|
-
|
|
503
|
+
se("a", {
|
|
497
504
|
id: e.nbId,
|
|
498
|
-
class:
|
|
499
|
-
style:
|
|
500
|
-
onClick:
|
|
505
|
+
class: ge(["nb-reset component tertiary", [N.value]]),
|
|
506
|
+
style: ce([D.value]),
|
|
507
|
+
onClick: d[0] || (d[0] = z(() => {
|
|
501
508
|
}, ["prevent"]))
|
|
502
509
|
}, [
|
|
503
|
-
me(
|
|
504
|
-
|
|
510
|
+
me(u.$slots, "content", {}, () => [
|
|
511
|
+
d[4] || (d[4] = he("Default Text"))
|
|
505
512
|
], !0)
|
|
506
|
-
], 14,
|
|
507
|
-
], 16, Tt)) :
|
|
513
|
+
], 14, Ht)
|
|
514
|
+
], 16, Tt)) : ye("", !0);
|
|
508
515
|
}
|
|
509
|
-
}),
|
|
510
|
-
const
|
|
516
|
+
}), wt = /* @__PURE__ */ Te(It, [["__scopeId", "data-v-d7a87d7b"]]);
|
|
517
|
+
const Nt = ["id"], $t = ["tabIndex", "title"], Dt = ["tabIndex", "title"], Lt = /* @__PURE__ */ Object.assign({
|
|
511
518
|
name: "NbButtonPrevNext",
|
|
512
519
|
inheritAttrs: !1
|
|
513
520
|
}, {
|
|
@@ -561,8 +568,8 @@ const Dt = ["id"], Nt = ["tabIndex", "title"], Ht = ["tabIndex", "title"], At =
|
|
|
561
568
|
type: String,
|
|
562
569
|
default: "light",
|
|
563
570
|
validator: (e) => {
|
|
564
|
-
const
|
|
565
|
-
return ["light", "dark"].includes(
|
|
571
|
+
const l = e ? e.toLowerCase() : "";
|
|
572
|
+
return ["light", "dark"].includes(l);
|
|
566
573
|
}
|
|
567
574
|
},
|
|
568
575
|
// Cores do tema light
|
|
@@ -668,158 +675,158 @@ const Dt = ["id"], Nt = ["tabIndex", "title"], Ht = ["tabIndex", "title"], At =
|
|
|
668
675
|
}
|
|
669
676
|
},
|
|
670
677
|
emits: ["clicked"],
|
|
671
|
-
setup(e, { emit:
|
|
672
|
-
|
|
673
|
-
c2fd627c:
|
|
674
|
-
"3f2c4f57":
|
|
675
|
-
"589e3afe":
|
|
676
|
-
"6268b189":
|
|
677
|
-
"08cfccde":
|
|
678
|
-
"3387b51a":
|
|
679
|
-
"0ebf7a62":
|
|
680
|
-
f6491eb6:
|
|
681
|
-
"2b428bfa":
|
|
678
|
+
setup(e, { emit: l }) {
|
|
679
|
+
ke((g) => ({
|
|
680
|
+
c2fd627c: b.value,
|
|
681
|
+
"3f2c4f57": A.value,
|
|
682
|
+
"589e3afe": f.value,
|
|
683
|
+
"6268b189": X.value,
|
|
684
|
+
"08cfccde": u.value,
|
|
685
|
+
"3387b51a": d.value,
|
|
686
|
+
"0ebf7a62": s.value,
|
|
687
|
+
f6491eb6: o.value,
|
|
688
|
+
"2b428bfa": S.value
|
|
682
689
|
}));
|
|
683
|
-
const
|
|
684
|
-
ariaLabelPrev:
|
|
685
|
-
ariaAttrsPrev:
|
|
686
|
-
ariaLabelNext:
|
|
687
|
-
ariaAttrsNext:
|
|
688
|
-
theme:
|
|
689
|
-
lightColorPrimary:
|
|
690
|
-
lightColorSecondary:
|
|
691
|
-
lightTextColor:
|
|
692
|
-
lightTextColorHover:
|
|
693
|
-
lightDisabledBgColor:
|
|
694
|
-
darkColorPrimary:
|
|
695
|
-
darkColorSecondary:
|
|
696
|
-
darkTextColor:
|
|
697
|
-
darkTextColorHover:
|
|
698
|
-
darkDisabledBgColor:
|
|
699
|
-
paddingX:
|
|
700
|
-
paddingY:
|
|
701
|
-
marginBetween:
|
|
702
|
-
borderRadius:
|
|
703
|
-
disabled:
|
|
704
|
-
disabledPreview:
|
|
705
|
-
disabledNext:
|
|
706
|
-
fontFamily:
|
|
707
|
-
fontSize:
|
|
708
|
-
fontWeight:
|
|
709
|
-
} =
|
|
710
|
-
const
|
|
690
|
+
const J = l, ue = e, {
|
|
691
|
+
ariaLabelPrev: ae,
|
|
692
|
+
ariaAttrsPrev: oe,
|
|
693
|
+
ariaLabelNext: B,
|
|
694
|
+
ariaAttrsNext: M,
|
|
695
|
+
theme: Q,
|
|
696
|
+
lightColorPrimary: le,
|
|
697
|
+
lightColorSecondary: G,
|
|
698
|
+
lightTextColor: ee,
|
|
699
|
+
lightTextColorHover: ne,
|
|
700
|
+
lightDisabledBgColor: te,
|
|
701
|
+
darkColorPrimary: q,
|
|
702
|
+
darkColorSecondary: O,
|
|
703
|
+
darkTextColor: I,
|
|
704
|
+
darkTextColorHover: T,
|
|
705
|
+
darkDisabledBgColor: V,
|
|
706
|
+
paddingX: c,
|
|
707
|
+
paddingY: m,
|
|
708
|
+
marginBetween: v,
|
|
709
|
+
borderRadius: h,
|
|
710
|
+
disabled: i,
|
|
711
|
+
disabledPreview: C,
|
|
712
|
+
disabledNext: w,
|
|
713
|
+
fontFamily: y,
|
|
714
|
+
fontSize: _,
|
|
715
|
+
fontWeight: R
|
|
716
|
+
} = Ve(ue), N = t(() => {
|
|
717
|
+
const g = i.value ? "component-disabled" : "", p = C.value ? "component-disabled" : "", K = w.value ? "component-disabled" : "", $ = v.value !== 0 && !v.value || v.value < 0 ? 0 : v.value, re = h.value !== 0 && !h.value || h.value < 0 ? 0 : h.value, fe = c.value !== 0 && !c.value || c.value < 0 ? 1 : c.value, ie = m.value !== 0 && !m.value || m.value < 0 ? 10 : m.value, Ce = _.value ? _.value : "1.6em", j = R.value !== 0 && !R.value || R.value < 0 ? 100 : R.value;
|
|
711
718
|
return {
|
|
712
|
-
disabled:
|
|
719
|
+
disabled: g,
|
|
713
720
|
disabledPreview: p,
|
|
714
|
-
disabledNext:
|
|
715
|
-
marginBetween: `${
|
|
716
|
-
borderRadius: `${
|
|
717
|
-
paddingX: `${
|
|
718
|
-
paddingY: `${
|
|
719
|
-
fontSize:
|
|
720
|
-
fontWeight:
|
|
721
|
+
disabledNext: K,
|
|
722
|
+
marginBetween: `${$}px`,
|
|
723
|
+
borderRadius: `${re}px`,
|
|
724
|
+
paddingX: `${fe}px`,
|
|
725
|
+
paddingY: `${ie}px`,
|
|
726
|
+
fontSize: Ce,
|
|
727
|
+
fontWeight: j
|
|
721
728
|
};
|
|
722
|
-
}),
|
|
723
|
-
display:
|
|
724
|
-
})),
|
|
725
|
-
const
|
|
729
|
+
}), D = t(() => N.value.disabled), Y = t(() => N.value.disabledPreview), E = t(() => N.value.disabledNext), L = t(() => ({
|
|
730
|
+
display: N.value.display
|
|
731
|
+
})), r = t(() => {
|
|
732
|
+
const g = N.value;
|
|
726
733
|
return {
|
|
727
|
-
fontSize:
|
|
728
|
-
fontWeight:
|
|
734
|
+
fontSize: g.fontSize,
|
|
735
|
+
fontWeight: g.fontWeight
|
|
729
736
|
};
|
|
730
|
-
}),
|
|
731
|
-
const
|
|
737
|
+
}), k = t(() => {
|
|
738
|
+
const g = N.value;
|
|
732
739
|
return {
|
|
733
|
-
borderRadius: `${
|
|
734
|
-
marginRight:
|
|
735
|
-
padding: `${
|
|
740
|
+
borderRadius: `${g.borderRadius} 0px 0px ${g.borderRadius}`,
|
|
741
|
+
marginRight: g.marginBetween,
|
|
742
|
+
padding: `${g.paddingX} ${g.paddingY}`
|
|
736
743
|
};
|
|
737
|
-
}),
|
|
738
|
-
const
|
|
744
|
+
}), W = t(() => {
|
|
745
|
+
const g = N.value;
|
|
739
746
|
return {
|
|
740
|
-
borderRadius: `0px ${
|
|
741
|
-
marginLeft:
|
|
742
|
-
padding: `${
|
|
747
|
+
borderRadius: `0px ${g.borderRadius} ${g.borderRadius} 0px`,
|
|
748
|
+
marginLeft: g.marginBetween,
|
|
749
|
+
padding: `${g.paddingX} ${g.paddingY}`
|
|
743
750
|
};
|
|
744
|
-
}),
|
|
745
|
-
t(() =>
|
|
746
|
-
const
|
|
747
|
-
t(() =>
|
|
748
|
-
const
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
+
}), P = t(() => Q.value === "dark" ? "component__theme--dark" : "component__theme--light"), A = t(() => le.value), X = t(() => G.value), f = t(() => ee.value), u = t(() => ne.value);
|
|
752
|
+
t(() => te.value);
|
|
753
|
+
const d = t(() => q.value), o = t(() => O.value), s = t(() => I.value), S = t(() => T.value);
|
|
754
|
+
t(() => V.value);
|
|
755
|
+
const b = t(() => `'${y.value ? y.value : "'Lato', sans-serif"}'`), U = t(() => {
|
|
756
|
+
const g = {};
|
|
757
|
+
oe.value && Object.keys(oe.value).forEach(($) => g[`aria-${$}`] = oe.value[$]);
|
|
751
758
|
const p = {
|
|
752
|
-
"aria-label":
|
|
753
|
-
"aria-disabled":
|
|
754
|
-
...
|
|
759
|
+
"aria-label": ae.value,
|
|
760
|
+
"aria-disabled": Y.value,
|
|
761
|
+
...g
|
|
755
762
|
};
|
|
756
763
|
return Object.fromEntries(
|
|
757
|
-
Object.entries(p).filter(([
|
|
764
|
+
Object.entries(p).filter(([K, $]) => $ != null)
|
|
758
765
|
);
|
|
759
|
-
}),
|
|
760
|
-
const
|
|
761
|
-
|
|
766
|
+
}), de = t(() => {
|
|
767
|
+
const g = {};
|
|
768
|
+
M.value && Object.keys(M.value).forEach(($) => g[`aria-${$}`] = M.value[$]);
|
|
762
769
|
const p = {
|
|
763
|
-
"aria-label":
|
|
764
|
-
"aria-disabled":
|
|
765
|
-
...
|
|
770
|
+
"aria-label": B.value,
|
|
771
|
+
"aria-disabled": E.value,
|
|
772
|
+
...g
|
|
766
773
|
};
|
|
767
774
|
return Object.fromEntries(
|
|
768
|
-
Object.entries(p).filter(([
|
|
775
|
+
Object.entries(p).filter(([K, $]) => $ != null)
|
|
769
776
|
);
|
|
770
|
-
}),
|
|
771
|
-
|
|
777
|
+
}), H = (g, p) => {
|
|
778
|
+
J("clicked", g, p);
|
|
772
779
|
};
|
|
773
|
-
return (
|
|
780
|
+
return (g, p) => e.nbId ? (pe(), be("div", {
|
|
774
781
|
key: 0,
|
|
775
|
-
class:
|
|
776
|
-
style:
|
|
782
|
+
class: ge(["nb-wrapper", D.value]),
|
|
783
|
+
style: ce([L.value])
|
|
777
784
|
}, [
|
|
778
|
-
|
|
785
|
+
se("div", {
|
|
779
786
|
id: e.nbId,
|
|
780
|
-
class:
|
|
781
|
-
style:
|
|
787
|
+
class: ge(["nb-reset", "component", P.value]),
|
|
788
|
+
style: ce(r.value)
|
|
782
789
|
}, [
|
|
783
|
-
e.showPreview ? (
|
|
790
|
+
e.showPreview ? (pe(), be("div", Be({
|
|
784
791
|
key: 0,
|
|
785
|
-
class: ["buttonNextPreview buttonPreview",
|
|
786
|
-
style:
|
|
792
|
+
class: ["buttonNextPreview buttonPreview", Y.value],
|
|
793
|
+
style: k.value,
|
|
787
794
|
tabIndex: e.tabIndexPrev,
|
|
788
795
|
role: "button",
|
|
789
796
|
title: e.titlePrev
|
|
790
|
-
},
|
|
791
|
-
onClick: p[0] || (p[0] = (
|
|
797
|
+
}, U.value, {
|
|
798
|
+
onClick: p[0] || (p[0] = (K) => H("preview", K)),
|
|
792
799
|
onKeydown: [
|
|
793
|
-
p[1] || (p[1] =
|
|
794
|
-
p[2] || (p[2] =
|
|
800
|
+
p[1] || (p[1] = F(z((K) => !n(i) && e.hasTabIndexEnter && H("preview", K), ["prevent"]), ["enter"])),
|
|
801
|
+
p[2] || (p[2] = F(z((K) => !n(i) && e.hasTabIndexSpace && H("preview", K), ["prevent"]), ["space"]))
|
|
795
802
|
]
|
|
796
803
|
}), [
|
|
797
|
-
me(
|
|
804
|
+
me(g.$slots, "prev", {}, () => [
|
|
798
805
|
p[6] || (p[6] = he("← Preview"))
|
|
799
806
|
], !0)
|
|
800
|
-
], 16,
|
|
801
|
-
e.showNext ? (
|
|
807
|
+
], 16, $t)) : ye("", !0),
|
|
808
|
+
e.showNext ? (pe(), be("div", Be({
|
|
802
809
|
key: 1,
|
|
803
|
-
class: ["buttonNextPreview buttonNext",
|
|
804
|
-
style:
|
|
810
|
+
class: ["buttonNextPreview buttonNext", E.value],
|
|
811
|
+
style: W.value,
|
|
805
812
|
tabIndex: e.tabIndexNext,
|
|
806
813
|
role: "button",
|
|
807
814
|
title: e.titleNext
|
|
808
|
-
},
|
|
809
|
-
onClick: p[3] || (p[3] = (
|
|
815
|
+
}, de.value, {
|
|
816
|
+
onClick: p[3] || (p[3] = (K) => H("next", K)),
|
|
810
817
|
onKeydown: [
|
|
811
|
-
p[4] || (p[4] =
|
|
812
|
-
p[5] || (p[5] =
|
|
818
|
+
p[4] || (p[4] = F(z((K) => !n(i) && e.hasTabIndexEnter && H("next", K), ["prevent"]), ["enter"])),
|
|
819
|
+
p[5] || (p[5] = F(z((K) => !n(i) && e.hasTabIndexSpace && H("next", K), ["prevent"]), ["space"]))
|
|
813
820
|
]
|
|
814
821
|
}), [
|
|
815
|
-
me(
|
|
822
|
+
me(g.$slots, "next", {}, () => [
|
|
816
823
|
p[7] || (p[7] = he("Next →"))
|
|
817
824
|
], !0)
|
|
818
|
-
], 16,
|
|
819
|
-
], 14,
|
|
820
|
-
], 6)) :
|
|
825
|
+
], 16, Dt)) : ye("", !0)
|
|
826
|
+
], 14, Nt)
|
|
827
|
+
], 6)) : ye("", !0);
|
|
821
828
|
}
|
|
822
|
-
}),
|
|
829
|
+
}), At = /* @__PURE__ */ Te(Lt, [["__scopeId", "data-v-162f7c91"]]);
|
|
823
830
|
const Ot = ["tabIndex", "title"], _t = ["id"], Rt = /* @__PURE__ */ Object.assign({
|
|
824
831
|
name: "NbButtonMechanical",
|
|
825
832
|
inheritAttrs: !1
|
|
@@ -834,8 +841,8 @@ const Ot = ["tabIndex", "title"], _t = ["id"], Rt = /* @__PURE__ */ Object.assig
|
|
|
834
841
|
type: String,
|
|
835
842
|
default: "b",
|
|
836
843
|
validator: (e = "b") => {
|
|
837
|
-
const
|
|
838
|
-
return ["b", "ib"].includes(
|
|
844
|
+
const l = e ? e.toLowerCase() : "";
|
|
845
|
+
return ["b", "ib"].includes(l);
|
|
839
846
|
}
|
|
840
847
|
},
|
|
841
848
|
tabIndex: {
|
|
@@ -866,8 +873,8 @@ const Ot = ["tabIndex", "title"], _t = ["id"], Rt = /* @__PURE__ */ Object.assig
|
|
|
866
873
|
type: String,
|
|
867
874
|
default: "light",
|
|
868
875
|
validator: (e) => {
|
|
869
|
-
const
|
|
870
|
-
return ["light", "dark"].includes(
|
|
876
|
+
const l = e ? e.toLowerCase() : "";
|
|
877
|
+
return ["light", "dark"].includes(l);
|
|
871
878
|
}
|
|
872
879
|
},
|
|
873
880
|
// Cores do tema light
|
|
@@ -940,107 +947,114 @@ const Ot = ["tabIndex", "title"], _t = ["id"], Rt = /* @__PURE__ */ Object.assig
|
|
|
940
947
|
type: Number,
|
|
941
948
|
default: 400,
|
|
942
949
|
validator: (e) => e || 400
|
|
950
|
+
},
|
|
951
|
+
lineHeight: {
|
|
952
|
+
type: Number,
|
|
953
|
+
default: 1.42857143
|
|
943
954
|
}
|
|
944
955
|
},
|
|
945
956
|
emits: ["clicked"],
|
|
946
|
-
setup(e, { emit:
|
|
947
|
-
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
"
|
|
951
|
-
|
|
952
|
-
"
|
|
953
|
-
|
|
954
|
-
|
|
957
|
+
setup(e, { emit: l }) {
|
|
958
|
+
ke((f) => ({
|
|
959
|
+
"68dfdef5": Y.value,
|
|
960
|
+
"6eb0c44d": r.value,
|
|
961
|
+
"7946432a": E.value,
|
|
962
|
+
"22a98374": L.value,
|
|
963
|
+
"202da0ba": P.value,
|
|
964
|
+
a1cf9556: k.value,
|
|
965
|
+
"4e26faa0": W.value
|
|
955
966
|
}));
|
|
956
|
-
const
|
|
957
|
-
display:
|
|
958
|
-
ariaLabel:
|
|
959
|
-
ariaAttrs:
|
|
960
|
-
theme:
|
|
961
|
-
lightTextColor:
|
|
962
|
-
lightButtonColor:
|
|
963
|
-
lightContainerColor:
|
|
964
|
-
lightDisabledBgColor:
|
|
965
|
-
darkTextColor:
|
|
966
|
-
darkButtonColor:
|
|
967
|
-
darkContainerColor:
|
|
968
|
-
darkDisabledBgColor:
|
|
969
|
-
paddingX:
|
|
970
|
-
paddingY:
|
|
971
|
-
borderRadius:
|
|
972
|
-
disabled:
|
|
973
|
-
animationSlow:
|
|
974
|
-
fontFamily:
|
|
975
|
-
fontSize:
|
|
976
|
-
fontWeight:
|
|
977
|
-
|
|
978
|
-
|
|
967
|
+
const J = l, ue = e, {
|
|
968
|
+
display: ae,
|
|
969
|
+
ariaLabel: oe,
|
|
970
|
+
ariaAttrs: B,
|
|
971
|
+
theme: M,
|
|
972
|
+
lightTextColor: Q,
|
|
973
|
+
lightButtonColor: le,
|
|
974
|
+
lightContainerColor: G,
|
|
975
|
+
lightDisabledBgColor: ee,
|
|
976
|
+
darkTextColor: ne,
|
|
977
|
+
darkButtonColor: te,
|
|
978
|
+
darkContainerColor: q,
|
|
979
|
+
darkDisabledBgColor: O,
|
|
980
|
+
paddingX: I,
|
|
981
|
+
paddingY: T,
|
|
982
|
+
borderRadius: V,
|
|
983
|
+
disabled: c,
|
|
984
|
+
animationSlow: m,
|
|
985
|
+
fontFamily: v,
|
|
986
|
+
fontSize: h,
|
|
987
|
+
fontWeight: i,
|
|
988
|
+
lineHeight: C
|
|
989
|
+
} = Ve(ue), w = t(() => {
|
|
990
|
+
const f = c.value ? "component-disabled" : "", u = ae.value !== "b" ? "inline-block" : "block", d = I.value !== 0 && !I.value || I.value < 0 ? 1 : I.value, o = T.value !== 0 && !T.value || T.value < 0 ? 0.2 : T.value, s = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, S = m.value ? "" : "component-transition__no-slow", b = v.value ? v.value : "'Lato', sans-serif", U = h.value ? h.value : "1.6em", de = i.value !== 0 && !i.value || i.value < 0 ? 100 : i.value, H = C.value !== 0 && !C.value || C.value < 0 ? 1.42857143 : C.value;
|
|
979
991
|
return {
|
|
980
|
-
disabled:
|
|
981
|
-
display:
|
|
982
|
-
paddingX:
|
|
983
|
-
paddingY:
|
|
984
|
-
borderRadius:
|
|
985
|
-
animationSlow:
|
|
986
|
-
font:
|
|
987
|
-
fontSize:
|
|
988
|
-
fontWeight:
|
|
992
|
+
disabled: f,
|
|
993
|
+
display: u,
|
|
994
|
+
paddingX: d,
|
|
995
|
+
paddingY: o,
|
|
996
|
+
borderRadius: s,
|
|
997
|
+
animationSlow: S,
|
|
998
|
+
font: b,
|
|
999
|
+
fontSize: U,
|
|
1000
|
+
fontWeight: de,
|
|
1001
|
+
lineHeight: H
|
|
989
1002
|
};
|
|
990
|
-
}),
|
|
991
|
-
display:
|
|
992
|
-
})),
|
|
993
|
-
const
|
|
1003
|
+
}), y = t(() => w.value.disabled), _ = t(() => ({
|
|
1004
|
+
display: w.value.display
|
|
1005
|
+
})), R = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), N = t(() => {
|
|
1006
|
+
const f = w.value;
|
|
994
1007
|
return {
|
|
995
|
-
padding: `${
|
|
996
|
-
borderRadius: `${
|
|
997
|
-
|
|
998
|
-
|
|
1008
|
+
padding: `${f.paddingY}rem ${f.paddingX}rem`,
|
|
1009
|
+
borderRadius: `${f.borderRadius}rem`,
|
|
1010
|
+
lineHeight: f.lineHeight,
|
|
1011
|
+
fontSize: f.fontSize,
|
|
1012
|
+
fontWeight: f.fontWeight
|
|
999
1013
|
};
|
|
1000
|
-
}), D = t(() =>
|
|
1001
|
-
t(() =>
|
|
1002
|
-
const
|
|
1003
|
-
t(() =>
|
|
1004
|
-
const
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1008
|
-
"aria-label":
|
|
1009
|
-
"aria-disabled":
|
|
1010
|
-
...
|
|
1014
|
+
}), D = t(() => w.value.animationSlow), Y = t(() => w.value.font), E = t(() => Q.value), L = t(() => le.value), r = t(() => G.value);
|
|
1015
|
+
t(() => ee.value);
|
|
1016
|
+
const k = t(() => ne.value), W = t(() => te.value), P = t(() => q.value);
|
|
1017
|
+
t(() => O.value);
|
|
1018
|
+
const A = t(() => {
|
|
1019
|
+
const f = {};
|
|
1020
|
+
B.value && Object.keys(B.value).forEach((o) => f[`aria-${o}`] = B.value[o]);
|
|
1021
|
+
const u = {
|
|
1022
|
+
"aria-label": oe.value,
|
|
1023
|
+
"aria-disabled": c.value,
|
|
1024
|
+
...f
|
|
1011
1025
|
};
|
|
1012
1026
|
return Object.fromEntries(
|
|
1013
|
-
Object.entries(
|
|
1027
|
+
Object.entries(u).filter(([d, o]) => o != null)
|
|
1014
1028
|
);
|
|
1015
|
-
}),
|
|
1016
|
-
|
|
1029
|
+
}), X = (f) => {
|
|
1030
|
+
J("clicked", f);
|
|
1017
1031
|
};
|
|
1018
|
-
return (
|
|
1032
|
+
return (f, u) => e.nbId ? (pe(), be("div", Be({
|
|
1019
1033
|
key: 0,
|
|
1020
|
-
class: ["nb-wrapper",
|
|
1021
|
-
style: [
|
|
1034
|
+
class: ["nb-wrapper", y.value],
|
|
1035
|
+
style: [_.value],
|
|
1022
1036
|
tabIndex: e.tabIndex,
|
|
1023
1037
|
role: "button",
|
|
1024
1038
|
title: e.title
|
|
1025
|
-
},
|
|
1026
|
-
onClick:
|
|
1039
|
+
}, A.value, {
|
|
1040
|
+
onClick: u[0] || (u[0] = (d) => X(d)),
|
|
1027
1041
|
onKeydown: [
|
|
1028
|
-
|
|
1029
|
-
|
|
1042
|
+
u[1] || (u[1] = F(z((d) => !n(c) && e.hasTabIndexEnter && X(d), ["prevent"]), ["enter"])),
|
|
1043
|
+
u[2] || (u[2] = F(z((d) => !n(c) && e.hasTabIndexSpace && X(d), ["prevent"]), ["space"]))
|
|
1030
1044
|
]
|
|
1031
1045
|
}), [
|
|
1032
|
-
|
|
1046
|
+
se("div", {
|
|
1033
1047
|
id: e.nbId,
|
|
1034
|
-
class:
|
|
1035
|
-
style:
|
|
1048
|
+
class: ge(["nb-reset", "component", "component-transition", D.value, R.value]),
|
|
1049
|
+
style: ce([N.value])
|
|
1036
1050
|
}, [
|
|
1037
|
-
me(
|
|
1038
|
-
|
|
1051
|
+
me(f.$slots, "content", {}, () => [
|
|
1052
|
+
u[3] || (u[3] = he("Default Text"))
|
|
1039
1053
|
], !0)
|
|
1040
1054
|
], 14, _t)
|
|
1041
|
-
], 16, Ot)) :
|
|
1055
|
+
], 16, Ot)) : ye("", !0);
|
|
1042
1056
|
}
|
|
1043
|
-
}), Wt = /* @__PURE__ */
|
|
1057
|
+
}), Wt = /* @__PURE__ */ Te(Rt, [["__scopeId", "data-v-d878e49e"]]);
|
|
1044
1058
|
const zt = ["tabIndex", "title"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assign({
|
|
1045
1059
|
name: "NbButtonMechanical2",
|
|
1046
1060
|
inheritAttrs: !1
|
|
@@ -1055,8 +1069,8 @@ const zt = ["tabIndex", "title"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assig
|
|
|
1055
1069
|
type: String,
|
|
1056
1070
|
default: "b",
|
|
1057
1071
|
validator: (e = "b") => {
|
|
1058
|
-
const
|
|
1059
|
-
return ["b", "ib"].includes(
|
|
1072
|
+
const l = e ? e.toLowerCase() : "";
|
|
1073
|
+
return ["b", "ib"].includes(l);
|
|
1060
1074
|
}
|
|
1061
1075
|
},
|
|
1062
1076
|
tabIndex: {
|
|
@@ -1087,8 +1101,8 @@ const zt = ["tabIndex", "title"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assig
|
|
|
1087
1101
|
type: String,
|
|
1088
1102
|
default: "light",
|
|
1089
1103
|
validator: (e) => {
|
|
1090
|
-
const
|
|
1091
|
-
return ["light", "dark"].includes(
|
|
1104
|
+
const l = e ? e.toLowerCase() : "";
|
|
1105
|
+
return ["light", "dark"].includes(l);
|
|
1092
1106
|
}
|
|
1093
1107
|
},
|
|
1094
1108
|
// Cores do tema light
|
|
@@ -1157,105 +1171,112 @@ const zt = ["tabIndex", "title"], Yt = ["id"], Xt = /* @__PURE__ */ Object.assig
|
|
|
1157
1171
|
type: Number,
|
|
1158
1172
|
default: 400,
|
|
1159
1173
|
validator: (e) => e || 400
|
|
1174
|
+
},
|
|
1175
|
+
lineHeight: {
|
|
1176
|
+
type: Number,
|
|
1177
|
+
default: 1.42857143
|
|
1160
1178
|
}
|
|
1161
1179
|
},
|
|
1162
1180
|
emits: ["clicked"],
|
|
1163
|
-
setup(e, { emit:
|
|
1164
|
-
|
|
1165
|
-
"
|
|
1166
|
-
"
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
1169
|
-
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1181
|
+
setup(e, { emit: l }) {
|
|
1182
|
+
ke((A) => ({
|
|
1183
|
+
"0dc1c087": k.value,
|
|
1184
|
+
"798d6699": N.value,
|
|
1185
|
+
"4a4b1a18": D.value,
|
|
1186
|
+
"32f7b474": Y.value,
|
|
1187
|
+
64822132: E.value,
|
|
1188
|
+
"2e65ff7c": L.value,
|
|
1189
|
+
"171299d8": r.value
|
|
1172
1190
|
}));
|
|
1173
|
-
const
|
|
1174
|
-
display:
|
|
1175
|
-
ariaLabel:
|
|
1176
|
-
ariaAttrs:
|
|
1177
|
-
theme:
|
|
1178
|
-
lightTextColor:
|
|
1179
|
-
lightButtonColor:
|
|
1180
|
-
lightShadowColor:
|
|
1181
|
-
lightDisabledBgColor:
|
|
1182
|
-
darkTextColor:
|
|
1183
|
-
darkButtonColor:
|
|
1184
|
-
darkShadowColor:
|
|
1185
|
-
darkDisabledBgColor:
|
|
1186
|
-
paddingX:
|
|
1187
|
-
paddingY:
|
|
1188
|
-
borderRadius:
|
|
1189
|
-
disabled:
|
|
1190
|
-
fontFamily:
|
|
1191
|
-
fontSize:
|
|
1192
|
-
fontWeight:
|
|
1193
|
-
|
|
1194
|
-
|
|
1191
|
+
const J = l, ue = e, {
|
|
1192
|
+
display: ae,
|
|
1193
|
+
ariaLabel: oe,
|
|
1194
|
+
ariaAttrs: B,
|
|
1195
|
+
theme: M,
|
|
1196
|
+
lightTextColor: Q,
|
|
1197
|
+
lightButtonColor: le,
|
|
1198
|
+
lightShadowColor: G,
|
|
1199
|
+
lightDisabledBgColor: ee,
|
|
1200
|
+
darkTextColor: ne,
|
|
1201
|
+
darkButtonColor: te,
|
|
1202
|
+
darkShadowColor: q,
|
|
1203
|
+
darkDisabledBgColor: O,
|
|
1204
|
+
paddingX: I,
|
|
1205
|
+
paddingY: T,
|
|
1206
|
+
borderRadius: V,
|
|
1207
|
+
disabled: c,
|
|
1208
|
+
fontFamily: m,
|
|
1209
|
+
fontSize: v,
|
|
1210
|
+
fontWeight: h,
|
|
1211
|
+
lineHeight: i
|
|
1212
|
+
} = Ve(ue), C = t(() => {
|
|
1213
|
+
const A = c.value ? "component-disabled" : "", X = ae.value !== "b" ? "inline-block" : "block", f = I.value !== 0 && !I.value || I.value < 0 ? 1 : I.value, u = T.value !== 0 && !T.value || T.value < 0 ? 1 : T.value, d = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, o = m.value ? m.value : "'Lato', sans-serif", s = v.value ? v.value : "1.6em", S = h.value !== 0 && !h.value || h.value < 0 ? 100 : h.value, b = i.value !== 0 && !i.value || i.value < 0 ? 1.42857143 : i.value;
|
|
1195
1214
|
return {
|
|
1196
|
-
disabled:
|
|
1197
|
-
display:
|
|
1198
|
-
paddingX:
|
|
1199
|
-
paddingY:
|
|
1200
|
-
borderRadius:
|
|
1201
|
-
font:
|
|
1202
|
-
fontSize:
|
|
1203
|
-
fontWeight:
|
|
1215
|
+
disabled: A,
|
|
1216
|
+
display: X,
|
|
1217
|
+
paddingX: f,
|
|
1218
|
+
paddingY: u,
|
|
1219
|
+
borderRadius: d,
|
|
1220
|
+
font: o,
|
|
1221
|
+
fontSize: s,
|
|
1222
|
+
fontWeight: S,
|
|
1223
|
+
lineHeight: b
|
|
1204
1224
|
};
|
|
1205
|
-
}),
|
|
1206
|
-
display:
|
|
1207
|
-
})),
|
|
1208
|
-
const
|
|
1225
|
+
}), w = t(() => C.value.disabled), y = t(() => ({
|
|
1226
|
+
display: C.value.display
|
|
1227
|
+
})), _ = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), R = t(() => {
|
|
1228
|
+
const A = C.value;
|
|
1209
1229
|
return {
|
|
1210
|
-
padding: `${
|
|
1211
|
-
borderRadius: `${
|
|
1212
|
-
|
|
1213
|
-
|
|
1230
|
+
padding: `${A.paddingY}rem ${A.paddingX}rem`,
|
|
1231
|
+
borderRadius: `${A.borderRadius}rem`,
|
|
1232
|
+
lineHeight: A.lineHeight,
|
|
1233
|
+
fontSize: A.fontSize,
|
|
1234
|
+
fontWeight: A.fontWeight
|
|
1214
1235
|
};
|
|
1215
|
-
}),
|
|
1216
|
-
t(() =>
|
|
1217
|
-
const
|
|
1218
|
-
t(() =>
|
|
1219
|
-
const
|
|
1220
|
-
const
|
|
1221
|
-
|
|
1222
|
-
const
|
|
1223
|
-
"aria-label":
|
|
1224
|
-
"aria-disabled":
|
|
1225
|
-
...
|
|
1236
|
+
}), N = t(() => Q.value), D = t(() => le.value), Y = t(() => G.value);
|
|
1237
|
+
t(() => ee.value);
|
|
1238
|
+
const E = t(() => ne.value), L = t(() => te.value), r = t(() => q.value);
|
|
1239
|
+
t(() => O.value);
|
|
1240
|
+
const k = t(() => C.value.font), W = t(() => {
|
|
1241
|
+
const A = {};
|
|
1242
|
+
B.value && Object.keys(B.value).forEach((u) => A[`aria-${u}`] = B.value[u]);
|
|
1243
|
+
const X = {
|
|
1244
|
+
"aria-label": oe.value,
|
|
1245
|
+
"aria-disabled": c.value,
|
|
1246
|
+
...A
|
|
1226
1247
|
};
|
|
1227
1248
|
return Object.fromEntries(
|
|
1228
|
-
Object.entries(
|
|
1249
|
+
Object.entries(X).filter(([f, u]) => u != null)
|
|
1229
1250
|
);
|
|
1230
|
-
}),
|
|
1231
|
-
|
|
1251
|
+
}), P = (A) => {
|
|
1252
|
+
J("clicked", A);
|
|
1232
1253
|
};
|
|
1233
|
-
return (
|
|
1254
|
+
return (A, X) => e.nbId ? (pe(), be("div", Be({
|
|
1234
1255
|
key: 0,
|
|
1235
|
-
class: ["nb-wrapper",
|
|
1236
|
-
style: [
|
|
1256
|
+
class: ["nb-wrapper", w.value],
|
|
1257
|
+
style: [y.value],
|
|
1237
1258
|
tabIndex: e.tabIndex,
|
|
1238
1259
|
role: "button",
|
|
1239
1260
|
title: e.title
|
|
1240
|
-
},
|
|
1241
|
-
onClick:
|
|
1261
|
+
}, W.value, {
|
|
1262
|
+
onClick: X[0] || (X[0] = (f) => P(f)),
|
|
1242
1263
|
onKeydown: [
|
|
1243
|
-
|
|
1244
|
-
|
|
1264
|
+
X[1] || (X[1] = F(z((f) => !n(c) && e.hasTabIndexEnter && P(f), ["prevent"]), ["enter"])),
|
|
1265
|
+
X[2] || (X[2] = F(z((f) => !n(c) && e.hasTabIndexSpace && P(f), ["prevent"]), ["space"]))
|
|
1245
1266
|
]
|
|
1246
1267
|
}), [
|
|
1247
|
-
|
|
1268
|
+
se("div", {
|
|
1248
1269
|
id: e.nbId,
|
|
1249
|
-
class:
|
|
1250
|
-
style:
|
|
1270
|
+
class: ge(["nb-reset", "component", "component-transition", _.value]),
|
|
1271
|
+
style: ce([R.value])
|
|
1251
1272
|
}, [
|
|
1252
|
-
me(
|
|
1253
|
-
|
|
1273
|
+
me(A.$slots, "content", {}, () => [
|
|
1274
|
+
X[3] || (X[3] = he("Default Text"))
|
|
1254
1275
|
], !0)
|
|
1255
1276
|
], 14, Yt)
|
|
1256
|
-
], 16, zt)) :
|
|
1277
|
+
], 16, zt)) : ye("", !0);
|
|
1257
1278
|
}
|
|
1258
|
-
}), jt = /* @__PURE__ */
|
|
1279
|
+
}), jt = /* @__PURE__ */ Te(Xt, [["__scopeId", "data-v-6917f609"]]);
|
|
1259
1280
|
const Et = ["tabIndex", "title"], Ft = ["id"], Pt = /* @__PURE__ */ Object.assign({
|
|
1260
1281
|
name: "NbButtonHamburger",
|
|
1261
1282
|
inheritAttrs: !1
|
|
@@ -1294,8 +1315,8 @@ const Et = ["tabIndex", "title"], Ft = ["id"], Pt = /* @__PURE__ */ Object.assig
|
|
|
1294
1315
|
type: String,
|
|
1295
1316
|
default: "light",
|
|
1296
1317
|
validator: (e) => {
|
|
1297
|
-
const
|
|
1298
|
-
return ["light", "dark"].includes(
|
|
1318
|
+
const l = e ? e.toLowerCase() : "";
|
|
1319
|
+
return ["light", "dark"].includes(l);
|
|
1299
1320
|
}
|
|
1300
1321
|
},
|
|
1301
1322
|
status: {
|
|
@@ -1362,105 +1383,105 @@ const Et = ["tabIndex", "title"], Ft = ["id"], Pt = /* @__PURE__ */ Object.assig
|
|
|
1362
1383
|
}
|
|
1363
1384
|
},
|
|
1364
1385
|
emits: ["clicked"],
|
|
1365
|
-
setup(e, { emit:
|
|
1366
|
-
|
|
1367
|
-
"3912eef2":
|
|
1368
|
-
"06f49c5e":
|
|
1369
|
-
"64b1716a":
|
|
1370
|
-
"16906b29":
|
|
1371
|
-
"0a1f477e":
|
|
1372
|
-
"7ad9ae95":
|
|
1373
|
-
"41becc5a":
|
|
1374
|
-
"3cdde2e7":
|
|
1375
|
-
"31a40e72":
|
|
1376
|
-
"1ff80e86":
|
|
1386
|
+
setup(e, { emit: l }) {
|
|
1387
|
+
ke((f) => ({
|
|
1388
|
+
"3912eef2": D.value,
|
|
1389
|
+
"06f49c5e": k.value,
|
|
1390
|
+
"64b1716a": Y.value,
|
|
1391
|
+
"16906b29": N.value,
|
|
1392
|
+
"0a1f477e": W.value,
|
|
1393
|
+
"7ad9ae95": r.value,
|
|
1394
|
+
"41becc5a": R.value,
|
|
1395
|
+
"3cdde2e7": L.value,
|
|
1396
|
+
"31a40e72": E.value,
|
|
1397
|
+
"1ff80e86": P.value
|
|
1377
1398
|
}));
|
|
1378
|
-
const
|
|
1379
|
-
|
|
1380
|
-
|
|
1399
|
+
const J = l, ue = e;
|
|
1400
|
+
Ge(() => {
|
|
1401
|
+
ae.value = Q.value;
|
|
1381
1402
|
});
|
|
1382
|
-
const
|
|
1383
|
-
ariaLabel:
|
|
1384
|
-
ariaAttrs:
|
|
1385
|
-
theme:
|
|
1386
|
-
status:
|
|
1387
|
-
lightColor:
|
|
1388
|
-
lightColorHover:
|
|
1389
|
-
lightContainerColor:
|
|
1390
|
-
lightContainerColorHover:
|
|
1391
|
-
lightDisabledBgColor:
|
|
1392
|
-
darkColor:
|
|
1393
|
-
darkColorHover:
|
|
1394
|
-
darkContainerColor:
|
|
1395
|
-
darkContainerColorHover:
|
|
1396
|
-
darkDisabledBgColor:
|
|
1397
|
-
paddingX:
|
|
1398
|
-
paddingY:
|
|
1399
|
-
disabled:
|
|
1400
|
-
} =
|
|
1401
|
-
const
|
|
1403
|
+
const ae = we(!1), {
|
|
1404
|
+
ariaLabel: oe,
|
|
1405
|
+
ariaAttrs: B,
|
|
1406
|
+
theme: M,
|
|
1407
|
+
status: Q,
|
|
1408
|
+
lightColor: le,
|
|
1409
|
+
lightColorHover: G,
|
|
1410
|
+
lightContainerColor: ee,
|
|
1411
|
+
lightContainerColorHover: ne,
|
|
1412
|
+
lightDisabledBgColor: te,
|
|
1413
|
+
darkColor: q,
|
|
1414
|
+
darkColorHover: O,
|
|
1415
|
+
darkContainerColor: I,
|
|
1416
|
+
darkContainerColorHover: T,
|
|
1417
|
+
darkDisabledBgColor: V,
|
|
1418
|
+
paddingX: c,
|
|
1419
|
+
paddingY: m,
|
|
1420
|
+
disabled: v
|
|
1421
|
+
} = Ve(ue), h = t(() => {
|
|
1422
|
+
const f = v.value ? "component-disabled" : "", u = ae.value ? "change" : "", d = c.value !== 0 && !c.value || c.value < 0 ? 3 : c.value, o = m.value !== 0 && !m.value || m.value < 0 ? 3 : m.value;
|
|
1402
1423
|
return {
|
|
1403
|
-
disabled:
|
|
1404
|
-
buttonStatus:
|
|
1405
|
-
paddingX:
|
|
1406
|
-
paddingY:
|
|
1424
|
+
disabled: f,
|
|
1425
|
+
buttonStatus: u,
|
|
1426
|
+
paddingX: d,
|
|
1427
|
+
paddingY: o
|
|
1407
1428
|
};
|
|
1408
|
-
}),
|
|
1409
|
-
const
|
|
1429
|
+
}), i = t(() => h.value.disabled), C = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), w = t(() => {
|
|
1430
|
+
const f = h.value;
|
|
1410
1431
|
return {
|
|
1411
|
-
padding: `${
|
|
1432
|
+
padding: `${f.paddingY}px ${f.paddingX}px`
|
|
1412
1433
|
};
|
|
1413
|
-
}),
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
const
|
|
1417
|
-
"aria-label":
|
|
1418
|
-
"aria-disabled":
|
|
1419
|
-
...
|
|
1434
|
+
}), y = t(() => ({})), _ = t(() => h.value.buttonStatus), R = t(() => le.value), N = t(() => G.value), D = t(() => ee.value), Y = t(() => ne.value), E = t(() => te.value), L = t(() => q.value), r = t(() => O.value), k = t(() => I.value), W = t(() => T.value), P = t(() => V.value), A = t(() => {
|
|
1435
|
+
const f = {};
|
|
1436
|
+
B.value && Object.keys(B.value).forEach((o) => f[`aria-${o}`] = B.value[o]);
|
|
1437
|
+
const u = {
|
|
1438
|
+
"aria-label": oe.value,
|
|
1439
|
+
"aria-disabled": v.value,
|
|
1440
|
+
...f
|
|
1420
1441
|
};
|
|
1421
1442
|
return Object.fromEntries(
|
|
1422
|
-
Object.entries(
|
|
1443
|
+
Object.entries(u).filter(([d, o]) => o != null)
|
|
1423
1444
|
);
|
|
1424
|
-
}),
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1445
|
+
}), X = (f) => {
|
|
1446
|
+
const u = !ae.value;
|
|
1447
|
+
ae.value = u, J("clicked", u, f);
|
|
1427
1448
|
};
|
|
1428
|
-
return yt(
|
|
1429
|
-
|
|
1430
|
-
}), (
|
|
1449
|
+
return yt(Q, () => {
|
|
1450
|
+
ae.value = Q.value;
|
|
1451
|
+
}), (f, u) => e.nbId ? (pe(), be("div", Be({
|
|
1431
1452
|
key: 0,
|
|
1432
|
-
class: ["nb-wrapper",
|
|
1433
|
-
style: [
|
|
1453
|
+
class: ["nb-wrapper", i.value],
|
|
1454
|
+
style: [w.value],
|
|
1434
1455
|
tabIndex: e.tabIndex,
|
|
1435
1456
|
role: "button",
|
|
1436
1457
|
title: e.title
|
|
1437
|
-
},
|
|
1438
|
-
onClick:
|
|
1458
|
+
}, A.value, {
|
|
1459
|
+
onClick: u[0] || (u[0] = (d) => X(d)),
|
|
1439
1460
|
onKeydown: [
|
|
1440
|
-
|
|
1441
|
-
|
|
1461
|
+
u[1] || (u[1] = F(z((d) => !n(v) && e.hasTabIndexEnter && X(d), ["prevent"]), ["enter"])),
|
|
1462
|
+
u[2] || (u[2] = F(z((d) => !n(v) && e.hasTabIndexSpace && X(d), ["prevent"]), ["space"]))
|
|
1442
1463
|
]
|
|
1443
1464
|
}), [
|
|
1444
|
-
|
|
1465
|
+
se("div", {
|
|
1445
1466
|
id: e.nbId,
|
|
1446
|
-
class:
|
|
1467
|
+
class: ge(["nb-reset", "component", _.value, C.value])
|
|
1447
1468
|
}, [
|
|
1448
|
-
|
|
1469
|
+
se("div", {
|
|
1449
1470
|
class: "component__line-one",
|
|
1450
|
-
style:
|
|
1471
|
+
style: ce(y.value)
|
|
1451
1472
|
}, null, 4),
|
|
1452
|
-
|
|
1473
|
+
se("div", {
|
|
1453
1474
|
class: "component__line-two",
|
|
1454
|
-
style:
|
|
1475
|
+
style: ce(y.value)
|
|
1455
1476
|
}, null, 4),
|
|
1456
|
-
|
|
1477
|
+
se("div", {
|
|
1457
1478
|
class: "component__line-three",
|
|
1458
|
-
style:
|
|
1479
|
+
style: ce(y.value)
|
|
1459
1480
|
}, null, 4)
|
|
1460
1481
|
], 10, Ft)
|
|
1461
|
-
], 16, Et)) :
|
|
1482
|
+
], 16, Et)) : ye("", !0);
|
|
1462
1483
|
}
|
|
1463
|
-
}), Kt = /* @__PURE__ */
|
|
1484
|
+
}), Kt = /* @__PURE__ */ Te(Pt, [["__scopeId", "data-v-b3a3087a"]]);
|
|
1464
1485
|
const Mt = ["tabIndex", "title"], qt = ["id"], Ut = /* @__PURE__ */ Object.assign({
|
|
1465
1486
|
name: "NbButtonColorOutside",
|
|
1466
1487
|
inheritAttrs: !1
|
|
@@ -1475,8 +1496,8 @@ const Mt = ["tabIndex", "title"], qt = ["id"], Ut = /* @__PURE__ */ Object.assig
|
|
|
1475
1496
|
type: String,
|
|
1476
1497
|
default: "b",
|
|
1477
1498
|
validator: (e = "b") => {
|
|
1478
|
-
const
|
|
1479
|
-
return ["b", "ib"].includes(
|
|
1499
|
+
const l = e ? e.toLowerCase() : "";
|
|
1500
|
+
return ["b", "ib"].includes(l);
|
|
1480
1501
|
}
|
|
1481
1502
|
},
|
|
1482
1503
|
tabIndex: {
|
|
@@ -1507,8 +1528,8 @@ const Mt = ["tabIndex", "title"], qt = ["id"], Ut = /* @__PURE__ */ Object.assig
|
|
|
1507
1528
|
type: String,
|
|
1508
1529
|
default: "light",
|
|
1509
1530
|
validator: (e) => {
|
|
1510
|
-
const
|
|
1511
|
-
return ["light", "dark"].includes(
|
|
1531
|
+
const l = e ? e.toLowerCase() : "";
|
|
1532
|
+
return ["light", "dark"].includes(l);
|
|
1512
1533
|
}
|
|
1513
1534
|
},
|
|
1514
1535
|
// Cores do tema light
|
|
@@ -1555,6 +1576,22 @@ const Mt = ["tabIndex", "title"], qt = ["id"], Ut = /* @__PURE__ */ Object.assig
|
|
|
1555
1576
|
default: 0.2,
|
|
1556
1577
|
validator: (e) => e || 0.2
|
|
1557
1578
|
},
|
|
1579
|
+
marginTop: {
|
|
1580
|
+
type: Number,
|
|
1581
|
+
default: 0
|
|
1582
|
+
},
|
|
1583
|
+
marginBottom: {
|
|
1584
|
+
type: Number,
|
|
1585
|
+
default: 0
|
|
1586
|
+
},
|
|
1587
|
+
marginRight: {
|
|
1588
|
+
type: Number,
|
|
1589
|
+
default: 0
|
|
1590
|
+
},
|
|
1591
|
+
marginLeft: {
|
|
1592
|
+
type: Number,
|
|
1593
|
+
default: 0
|
|
1594
|
+
},
|
|
1558
1595
|
disabled: {
|
|
1559
1596
|
type: Boolean,
|
|
1560
1597
|
default: !1,
|
|
@@ -1577,114 +1614,133 @@ const Mt = ["tabIndex", "title"], qt = ["id"], Ut = /* @__PURE__ */ Object.assig
|
|
|
1577
1614
|
type: Number,
|
|
1578
1615
|
default: 200,
|
|
1579
1616
|
validator: (e) => e || 200
|
|
1617
|
+
},
|
|
1618
|
+
lineHeight: {
|
|
1619
|
+
type: Number,
|
|
1620
|
+
default: 1.42857143
|
|
1580
1621
|
}
|
|
1581
1622
|
},
|
|
1582
1623
|
emits: ["clicked"],
|
|
1583
|
-
setup(e, { emit:
|
|
1584
|
-
|
|
1585
|
-
"
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1588
|
-
|
|
1589
|
-
"
|
|
1590
|
-
"
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
"
|
|
1624
|
+
setup(e, { emit: l }) {
|
|
1625
|
+
ke((b) => ({
|
|
1626
|
+
"03f259af": r.value,
|
|
1627
|
+
"04aef81b": L.value,
|
|
1628
|
+
"6c7b4f1e": W.value,
|
|
1629
|
+
f1c9e3dc: A.value,
|
|
1630
|
+
"1ccb6268": P.value,
|
|
1631
|
+
"5cb8628f": f.value,
|
|
1632
|
+
"34b708b0": d.value,
|
|
1633
|
+
c1936d2c: u.value,
|
|
1634
|
+
e7ef7c06: X.value,
|
|
1635
|
+
"806c84ca": o.value
|
|
1595
1636
|
}));
|
|
1596
|
-
const
|
|
1597
|
-
display:
|
|
1598
|
-
ariaLabel:
|
|
1599
|
-
ariaAttrs:
|
|
1600
|
-
theme:
|
|
1601
|
-
lightTextColor:
|
|
1602
|
-
lightButtonColor:
|
|
1603
|
-
lightBorderColor:
|
|
1604
|
-
lightDisabledBgColor:
|
|
1605
|
-
darkTextColor:
|
|
1606
|
-
darkButtonColor:
|
|
1607
|
-
darkBorderColor:
|
|
1608
|
-
darkDisabledBgColor:
|
|
1609
|
-
paddingX:
|
|
1610
|
-
paddingY:
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1637
|
+
const J = l, ue = e, {
|
|
1638
|
+
display: ae,
|
|
1639
|
+
ariaLabel: oe,
|
|
1640
|
+
ariaAttrs: B,
|
|
1641
|
+
theme: M,
|
|
1642
|
+
lightTextColor: Q,
|
|
1643
|
+
lightButtonColor: le,
|
|
1644
|
+
lightBorderColor: G,
|
|
1645
|
+
lightDisabledBgColor: ee,
|
|
1646
|
+
darkTextColor: ne,
|
|
1647
|
+
darkButtonColor: te,
|
|
1648
|
+
darkBorderColor: q,
|
|
1649
|
+
darkDisabledBgColor: O,
|
|
1650
|
+
paddingX: I,
|
|
1651
|
+
paddingY: T,
|
|
1652
|
+
marginTop: V,
|
|
1653
|
+
marginBottom: c,
|
|
1654
|
+
marginRight: m,
|
|
1655
|
+
marginLeft: v,
|
|
1656
|
+
borderRadius: h,
|
|
1657
|
+
disabled: i,
|
|
1658
|
+
fontFamily: C,
|
|
1659
|
+
fontSize: w,
|
|
1660
|
+
fontWeight: y,
|
|
1661
|
+
lineHeight: _
|
|
1662
|
+
} = Ve(ue), R = t(() => {
|
|
1663
|
+
const b = i.value ? "component-disabled" : "", U = ae.value !== "b" ? "inline-block" : "block", de = I.value !== 0 && !I.value || I.value < 0 ? 1 : I.value, H = T.value !== 0 && !T.value || T.value < 0 ? 0.2 : T.value, g = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, p = c.value !== 0 && !c.value || c.value < 0 ? 0 : c.value, K = m.value !== 0 && !m.value || m.value < 0 ? 0 : m.value, $ = v.value !== 0 && !v.value || v.value < 0 ? 0 : v.value, re = h.value !== 0 && !h.value || h.value < 0 ? 0 : h.value, fe = C.value ? C.value : "'Lato', sans-serif", ie = w.value ? w.value : "1.6em", Ce = y.value !== 0 && !y.value || y.value < 0 ? 200 : y.value, j = _.value !== 0 && !_.value || _.value < 0 ? 1.42857143 : _.value;
|
|
1618
1664
|
return {
|
|
1619
|
-
disabled:
|
|
1620
|
-
display:
|
|
1621
|
-
paddingX:
|
|
1622
|
-
paddingY:
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1665
|
+
disabled: b,
|
|
1666
|
+
display: U,
|
|
1667
|
+
paddingX: de,
|
|
1668
|
+
paddingY: H,
|
|
1669
|
+
marginTop: g,
|
|
1670
|
+
marginBottom: p,
|
|
1671
|
+
marginRight: K,
|
|
1672
|
+
marginLeft: $,
|
|
1673
|
+
borderRadius: re,
|
|
1674
|
+
font: fe,
|
|
1675
|
+
fontSize: ie,
|
|
1676
|
+
fontWeight: Ce,
|
|
1677
|
+
lineHeight: j
|
|
1627
1678
|
};
|
|
1628
|
-
}),
|
|
1629
|
-
display:
|
|
1630
|
-
})),
|
|
1631
|
-
const
|
|
1679
|
+
}), N = t(() => R.value.disabled), D = t(() => ({
|
|
1680
|
+
display: R.value.display
|
|
1681
|
+
})), Y = t(() => {
|
|
1682
|
+
const b = R.value;
|
|
1632
1683
|
return {
|
|
1633
|
-
fontSize:
|
|
1634
|
-
fontWeight:
|
|
1684
|
+
fontSize: b.fontSize,
|
|
1685
|
+
fontWeight: b.fontWeight,
|
|
1686
|
+
lineHeight: b.lineHeight,
|
|
1687
|
+
marginTop: `${b.marginTop}px`,
|
|
1688
|
+
marginBottom: `${b.marginBottom}px`,
|
|
1689
|
+
marginRight: `${b.marginRight}px`,
|
|
1690
|
+
marginLeft: `${b.marginLeft}px`
|
|
1635
1691
|
};
|
|
1636
|
-
}),
|
|
1637
|
-
const
|
|
1692
|
+
}), E = t(() => {
|
|
1693
|
+
const b = R.value;
|
|
1638
1694
|
return {
|
|
1639
|
-
padding: `${
|
|
1640
|
-
borderRadius:
|
|
1695
|
+
padding: `${b.paddingY}rem ${b.paddingX}rem`,
|
|
1696
|
+
borderRadius: L.value
|
|
1641
1697
|
};
|
|
1642
|
-
}),
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
const
|
|
1646
|
-
"aria-label":
|
|
1647
|
-
"aria-disabled":
|
|
1648
|
-
...
|
|
1698
|
+
}), L = t(() => `${R.value.borderRadius}rem`), r = t(() => R.value.font), k = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), W = t(() => Q.value), P = t(() => le.value), A = t(() => G.value), X = t(() => ee.value), f = t(() => ne.value), u = t(() => te.value), d = t(() => q.value), o = t(() => O.value), s = t(() => {
|
|
1699
|
+
const b = {};
|
|
1700
|
+
B.value && Object.keys(B.value).forEach((H) => b[`aria-${H}`] = B.value[H]);
|
|
1701
|
+
const U = {
|
|
1702
|
+
"aria-label": oe.value,
|
|
1703
|
+
"aria-disabled": i.value,
|
|
1704
|
+
...b
|
|
1649
1705
|
};
|
|
1650
1706
|
return Object.fromEntries(
|
|
1651
|
-
Object.entries(
|
|
1707
|
+
Object.entries(U).filter(([de, H]) => H != null)
|
|
1652
1708
|
);
|
|
1653
|
-
}),
|
|
1654
|
-
|
|
1709
|
+
}), S = (b) => {
|
|
1710
|
+
J("clicked", b);
|
|
1655
1711
|
};
|
|
1656
|
-
return (
|
|
1712
|
+
return (b, U) => e.nbId ? (pe(), be("div", Be({
|
|
1657
1713
|
key: 0,
|
|
1658
|
-
class: ["nb-wrapper",
|
|
1659
|
-
style: [
|
|
1714
|
+
class: ["nb-wrapper", N.value],
|
|
1715
|
+
style: [D.value],
|
|
1660
1716
|
tabIndex: e.tabIndex,
|
|
1661
1717
|
role: "button",
|
|
1662
1718
|
title: e.title
|
|
1663
|
-
},
|
|
1664
|
-
onClick:
|
|
1719
|
+
}, s.value, {
|
|
1720
|
+
onClick: U[0] || (U[0] = (de) => S(de)),
|
|
1665
1721
|
onKeydown: [
|
|
1666
|
-
|
|
1667
|
-
|
|
1722
|
+
U[1] || (U[1] = F(z((de) => !n(i) && e.hasTabIndexEnter && S(de), ["prevent"]), ["enter"])),
|
|
1723
|
+
U[2] || (U[2] = F(z((de) => !n(i) && e.hasTabIndexSpace && S(de), ["prevent"]), ["space"]))
|
|
1668
1724
|
]
|
|
1669
1725
|
}), [
|
|
1670
|
-
|
|
1726
|
+
se("div", {
|
|
1671
1727
|
id: e.nbId,
|
|
1672
|
-
class:
|
|
1673
|
-
style:
|
|
1728
|
+
class: ge(["nb-reset", "component", k.value]),
|
|
1729
|
+
style: ce([Y.value])
|
|
1674
1730
|
}, [
|
|
1675
|
-
|
|
1731
|
+
se("div", {
|
|
1676
1732
|
class: "component-content",
|
|
1677
|
-
style:
|
|
1733
|
+
style: ce([E.value])
|
|
1678
1734
|
}, [
|
|
1679
|
-
me(
|
|
1680
|
-
|
|
1735
|
+
me(b.$slots, "content", {}, () => [
|
|
1736
|
+
U[3] || (U[3] = he("Default Text"))
|
|
1681
1737
|
], !0)
|
|
1682
1738
|
], 4),
|
|
1683
|
-
|
|
1739
|
+
U[4] || (U[4] = se("div", { class: "component-shadow" }, null, -1))
|
|
1684
1740
|
], 14, qt)
|
|
1685
|
-
], 16, Mt)) :
|
|
1741
|
+
], 16, Mt)) : ye("", !0);
|
|
1686
1742
|
}
|
|
1687
|
-
}), Gt = /* @__PURE__ */
|
|
1743
|
+
}), Gt = /* @__PURE__ */ Te(Ut, [["__scopeId", "data-v-026ea09c"]]);
|
|
1688
1744
|
const Jt = ["tabIndex", "title"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assign({
|
|
1689
1745
|
name: "NbButtonColorHover",
|
|
1690
1746
|
inheritAttrs: !1
|
|
@@ -1699,8 +1755,8 @@ const Jt = ["tabIndex", "title"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assig
|
|
|
1699
1755
|
type: String,
|
|
1700
1756
|
default: "b",
|
|
1701
1757
|
validator: (e = "b") => {
|
|
1702
|
-
const
|
|
1703
|
-
return ["b", "ib"].includes(
|
|
1758
|
+
const l = e.toLowerCase();
|
|
1759
|
+
return ["b", "ib"].includes(l);
|
|
1704
1760
|
}
|
|
1705
1761
|
},
|
|
1706
1762
|
tabIndex: {
|
|
@@ -1760,6 +1816,10 @@ const Jt = ["tabIndex", "title"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assig
|
|
|
1760
1816
|
default: 400,
|
|
1761
1817
|
validator: (e) => e || 700
|
|
1762
1818
|
},
|
|
1819
|
+
lineHeight: {
|
|
1820
|
+
type: Number,
|
|
1821
|
+
default: 1.42857143
|
|
1822
|
+
},
|
|
1763
1823
|
theme: {
|
|
1764
1824
|
type: String,
|
|
1765
1825
|
default: "light",
|
|
@@ -1809,116 +1869,119 @@ const Jt = ["tabIndex", "title"], Qt = ["id"], Zt = /* @__PURE__ */ Object.assig
|
|
|
1809
1869
|
}
|
|
1810
1870
|
},
|
|
1811
1871
|
emits: ["clicked"],
|
|
1812
|
-
setup(e, { emit:
|
|
1813
|
-
|
|
1814
|
-
"
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
"
|
|
1818
|
-
"
|
|
1819
|
-
"
|
|
1820
|
-
"
|
|
1821
|
-
"
|
|
1822
|
-
"
|
|
1823
|
-
|
|
1824
|
-
|
|
1872
|
+
setup(e, { emit: l }) {
|
|
1873
|
+
ke((r) => ({
|
|
1874
|
+
"1aea0f2a": D.value,
|
|
1875
|
+
"354c56c4": n(i),
|
|
1876
|
+
bac3f742: n(v),
|
|
1877
|
+
"4d9a1cd8": n(C),
|
|
1878
|
+
"6c688fc6": n(h),
|
|
1879
|
+
"03aceadc": n(V),
|
|
1880
|
+
"5b29f277": n(I),
|
|
1881
|
+
"316a57c0": n(c),
|
|
1882
|
+
"0b0e4df6": n(T),
|
|
1883
|
+
"0240f610": n(w),
|
|
1884
|
+
cf0fcfb0: n(m)
|
|
1825
1885
|
}));
|
|
1826
|
-
const
|
|
1827
|
-
display:
|
|
1828
|
-
ariaLabel:
|
|
1829
|
-
ariaAttrs:
|
|
1830
|
-
paddingX:
|
|
1831
|
-
paddingY:
|
|
1832
|
-
borderRadius:
|
|
1833
|
-
disabled:
|
|
1834
|
-
fontFamily:
|
|
1835
|
-
fontSize:
|
|
1836
|
-
fontWeight:
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1886
|
+
const J = l, ue = e, {
|
|
1887
|
+
display: ae,
|
|
1888
|
+
ariaLabel: oe,
|
|
1889
|
+
ariaAttrs: B,
|
|
1890
|
+
paddingX: M,
|
|
1891
|
+
paddingY: Q,
|
|
1892
|
+
borderRadius: le,
|
|
1893
|
+
disabled: G,
|
|
1894
|
+
fontFamily: ee,
|
|
1895
|
+
fontSize: ne,
|
|
1896
|
+
fontWeight: te,
|
|
1897
|
+
lineHeight: q,
|
|
1898
|
+
theme: O,
|
|
1899
|
+
lightButtonColor: I,
|
|
1900
|
+
lightButtonColorHover: T,
|
|
1901
|
+
lightTextColor: V,
|
|
1902
|
+
lightTextColorHover: c,
|
|
1903
|
+
lightDisabledBgColor: m,
|
|
1843
1904
|
darkButtonColor: v,
|
|
1844
|
-
darkButtonColorHover:
|
|
1845
|
-
darkTextColor:
|
|
1846
|
-
darkTextColorHover:
|
|
1847
|
-
darkDisabledBgColor:
|
|
1848
|
-
} =
|
|
1849
|
-
const
|
|
1905
|
+
darkButtonColorHover: h,
|
|
1906
|
+
darkTextColor: i,
|
|
1907
|
+
darkTextColorHover: C,
|
|
1908
|
+
darkDisabledBgColor: w
|
|
1909
|
+
} = Ve(ue), y = t(() => {
|
|
1910
|
+
const r = G.value ? "component-disabled" : "", k = ae.value !== "b" ? "inline-block" : "block", W = M.value !== 0 && !M.value || M.value < 0 ? 1 : M.value, P = Q.value !== 0 && !Q.value || Q.value < 0 ? 0.2 : Q.value, A = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, X = ee.value ? ee.value : "'Lato', sans-serif", f = ne.value ? ne.value : "1.6em", u = te.value !== 0 && !te.value || te.value < 0 ? 100 : te.value, d = q.value !== 0 && !q.value || q.value < 0 ? 1.42857143 : q.value, o = O.value ? O.value : "light";
|
|
1850
1911
|
return {
|
|
1851
|
-
disabled:
|
|
1852
|
-
display:
|
|
1853
|
-
font:
|
|
1854
|
-
fontSize:
|
|
1855
|
-
fontWeight:
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1912
|
+
disabled: r,
|
|
1913
|
+
display: k,
|
|
1914
|
+
font: X,
|
|
1915
|
+
fontSize: f,
|
|
1916
|
+
fontWeight: u,
|
|
1917
|
+
lineHeight: d,
|
|
1918
|
+
paddingX: W,
|
|
1919
|
+
paddingY: P,
|
|
1920
|
+
borderRadius: A,
|
|
1921
|
+
theme: o
|
|
1860
1922
|
};
|
|
1861
|
-
}),
|
|
1862
|
-
const
|
|
1923
|
+
}), _ = t(() => y.value.disabled), R = t(() => {
|
|
1924
|
+
const r = y.value;
|
|
1863
1925
|
return {
|
|
1864
|
-
display:
|
|
1865
|
-
borderRadius: `${
|
|
1926
|
+
display: r.display,
|
|
1927
|
+
borderRadius: `${r.borderRadius}rem`
|
|
1866
1928
|
};
|
|
1867
|
-
}),
|
|
1868
|
-
const
|
|
1929
|
+
}), N = t(() => {
|
|
1930
|
+
const r = y.value;
|
|
1869
1931
|
return {
|
|
1870
|
-
padding: `${
|
|
1871
|
-
borderRadius: `${
|
|
1872
|
-
|
|
1873
|
-
|
|
1932
|
+
padding: `${r.paddingY}rem ${r.paddingX}rem`,
|
|
1933
|
+
borderRadius: `${r.borderRadius}rem`,
|
|
1934
|
+
lineHeight: r.lineHeight,
|
|
1935
|
+
fontSize: r.fontSize,
|
|
1936
|
+
fontWeight: r.fontWeight
|
|
1874
1937
|
};
|
|
1875
|
-
}), D = t(() =>
|
|
1876
|
-
switch (
|
|
1938
|
+
}), D = t(() => y.value.font), Y = t(() => {
|
|
1939
|
+
switch (y.value.theme) {
|
|
1877
1940
|
case "dark":
|
|
1878
1941
|
return "component__theme--dark";
|
|
1879
1942
|
default:
|
|
1880
1943
|
return "component__theme--light";
|
|
1881
1944
|
}
|
|
1882
|
-
}),
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
-
const
|
|
1886
|
-
"aria-label":
|
|
1887
|
-
"aria-disabled":
|
|
1888
|
-
...
|
|
1945
|
+
}), E = t(() => {
|
|
1946
|
+
const r = {};
|
|
1947
|
+
B.value && Object.keys(B.value).forEach((P) => r[`aria-${P}`] = B.value[P]);
|
|
1948
|
+
const k = {
|
|
1949
|
+
"aria-label": oe.value,
|
|
1950
|
+
"aria-disabled": G.value,
|
|
1951
|
+
...r
|
|
1889
1952
|
};
|
|
1890
1953
|
return Object.fromEntries(
|
|
1891
|
-
Object.entries(
|
|
1954
|
+
Object.entries(k).filter(([W, P]) => P != null)
|
|
1892
1955
|
);
|
|
1893
|
-
}),
|
|
1894
|
-
|
|
1956
|
+
}), L = (r) => {
|
|
1957
|
+
J("clicked", r);
|
|
1895
1958
|
};
|
|
1896
|
-
return (
|
|
1959
|
+
return (r, k) => e.nbId ? (pe(), be("div", Be({
|
|
1897
1960
|
key: 0,
|
|
1898
|
-
class: ["nb-wrapper",
|
|
1899
|
-
style: [
|
|
1961
|
+
class: ["nb-wrapper", _.value],
|
|
1962
|
+
style: [R.value],
|
|
1900
1963
|
tabIndex: e.tabIndex,
|
|
1901
1964
|
role: "button",
|
|
1902
1965
|
title: e.title
|
|
1903
|
-
},
|
|
1904
|
-
onClick:
|
|
1966
|
+
}, E.value, {
|
|
1967
|
+
onClick: k[0] || (k[0] = (W) => L(W)),
|
|
1905
1968
|
onKeydown: [
|
|
1906
|
-
|
|
1907
|
-
|
|
1969
|
+
k[1] || (k[1] = F(z((W) => !n(G) && e.hasTabIndexEnter && L(W), ["prevent"]), ["enter"])),
|
|
1970
|
+
k[2] || (k[2] = F(z((W) => !n(G) && e.hasTabIndexSpace && L(W), ["prevent"]), ["space"]))
|
|
1908
1971
|
]
|
|
1909
1972
|
}), [
|
|
1910
|
-
|
|
1973
|
+
se("div", {
|
|
1911
1974
|
id: e.nbId,
|
|
1912
|
-
class:
|
|
1913
|
-
style:
|
|
1975
|
+
class: ge(["nb-reset component component-transition", [Y.value]]),
|
|
1976
|
+
style: ce([N.value])
|
|
1914
1977
|
}, [
|
|
1915
|
-
me(
|
|
1916
|
-
|
|
1978
|
+
me(r.$slots, "content", {}, () => [
|
|
1979
|
+
k[3] || (k[3] = he("Default Text"))
|
|
1917
1980
|
], !0)
|
|
1918
1981
|
], 14, Qt)
|
|
1919
|
-
], 16, Jt)) :
|
|
1982
|
+
], 16, Jt)) : ye("", !0);
|
|
1920
1983
|
}
|
|
1921
|
-
}), ea = /* @__PURE__ */
|
|
1984
|
+
}), ea = /* @__PURE__ */ Te(Zt, [["__scopeId", "data-v-6d5b935f"]]);
|
|
1922
1985
|
const ta = ["tabIndex", "title"], aa = ["id"], la = { class: "first-child" }, oa = { class: "last-child" }, na = /* @__PURE__ */ Object.assign({
|
|
1923
1986
|
name: "NbButtonAlternateText",
|
|
1924
1987
|
inheritAttrs: !1
|
|
@@ -1933,8 +1996,8 @@ const ta = ["tabIndex", "title"], aa = ["id"], la = { class: "first-child" }, oa
|
|
|
1933
1996
|
type: String,
|
|
1934
1997
|
default: "b",
|
|
1935
1998
|
validator: (e = "b") => {
|
|
1936
|
-
const
|
|
1937
|
-
return ["b", "ib"].includes(
|
|
1999
|
+
const l = e ? e.toLowerCase() : "";
|
|
2000
|
+
return ["b", "ib"].includes(l);
|
|
1938
2001
|
}
|
|
1939
2002
|
},
|
|
1940
2003
|
tabIndex: {
|
|
@@ -1965,8 +2028,8 @@ const ta = ["tabIndex", "title"], aa = ["id"], la = { class: "first-child" }, oa
|
|
|
1965
2028
|
type: String,
|
|
1966
2029
|
default: "light",
|
|
1967
2030
|
validator: (e) => {
|
|
1968
|
-
const
|
|
1969
|
-
return ["light", "dark"].includes(
|
|
2031
|
+
const l = e ? e.toLowerCase() : "";
|
|
2032
|
+
return ["light", "dark"].includes(l);
|
|
1970
2033
|
}
|
|
1971
2034
|
},
|
|
1972
2035
|
// Cores do tema light
|
|
@@ -2035,8 +2098,8 @@ const ta = ["tabIndex", "title"], aa = ["id"], la = { class: "first-child" }, oa
|
|
|
2035
2098
|
},
|
|
2036
2099
|
paddingY: {
|
|
2037
2100
|
type: Number,
|
|
2038
|
-
default: 0.
|
|
2039
|
-
validator: (e) => e || 0.
|
|
2101
|
+
default: 0.2,
|
|
2102
|
+
validator: (e) => e || 0.2
|
|
2040
2103
|
},
|
|
2041
2104
|
disabled: {
|
|
2042
2105
|
type: Boolean,
|
|
@@ -2056,121 +2119,127 @@ const ta = ["tabIndex", "title"], aa = ["id"], la = { class: "first-child" }, oa
|
|
|
2056
2119
|
type: Number,
|
|
2057
2120
|
default: 200,
|
|
2058
2121
|
validator: (e) => e || 200
|
|
2122
|
+
},
|
|
2123
|
+
lineHeight: {
|
|
2124
|
+
type: Number,
|
|
2125
|
+
default: 1.42857143
|
|
2059
2126
|
}
|
|
2060
2127
|
},
|
|
2061
2128
|
emits: ["clicked"],
|
|
2062
|
-
setup(e, { emit:
|
|
2063
|
-
|
|
2064
|
-
"
|
|
2065
|
-
|
|
2066
|
-
"
|
|
2067
|
-
"
|
|
2068
|
-
"
|
|
2069
|
-
"
|
|
2070
|
-
"
|
|
2071
|
-
"
|
|
2072
|
-
"
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
"
|
|
2076
|
-
"
|
|
2129
|
+
setup(e, { emit: l }) {
|
|
2130
|
+
ke((H) => ({
|
|
2131
|
+
"3bec2bc6": L.value,
|
|
2132
|
+
"414be4d6": P.value,
|
|
2133
|
+
"74daccdb": X.value,
|
|
2134
|
+
"6cc5357a": k.value,
|
|
2135
|
+
"0b8dffe2": W.value,
|
|
2136
|
+
"4b59feb2": A.value,
|
|
2137
|
+
"5c8f0d81": o.value,
|
|
2138
|
+
"1be06672": S.value,
|
|
2139
|
+
"865d7f34": u.value,
|
|
2140
|
+
f3a02f14: d.value,
|
|
2141
|
+
"341d143b": s.value,
|
|
2142
|
+
"02c97446": f.value,
|
|
2143
|
+
"4736c39c": b.value
|
|
2077
2144
|
}));
|
|
2078
|
-
const
|
|
2079
|
-
display:
|
|
2080
|
-
ariaLabel:
|
|
2081
|
-
ariaAttrs:
|
|
2082
|
-
theme:
|
|
2083
|
-
lightTextColor:
|
|
2084
|
-
lightTextColorHover:
|
|
2085
|
-
lightButtonColor:
|
|
2086
|
-
lightButtonColorHover:
|
|
2087
|
-
lightBorderColor:
|
|
2088
|
-
lightDisabledBgColor:
|
|
2089
|
-
darkTextColor:
|
|
2090
|
-
darkTextColorHover:
|
|
2091
|
-
darkButtonColor:
|
|
2092
|
-
darkButtonColorHover:
|
|
2093
|
-
darkBorderColor:
|
|
2094
|
-
darkDisabledBgColor:
|
|
2095
|
-
showBorder:
|
|
2096
|
-
borderRadius:
|
|
2097
|
-
paddingX:
|
|
2098
|
-
paddingY:
|
|
2099
|
-
disabled:
|
|
2100
|
-
fontFamily:
|
|
2101
|
-
fontSize:
|
|
2102
|
-
fontWeight:
|
|
2103
|
-
|
|
2104
|
-
|
|
2145
|
+
const J = l, ue = e, {
|
|
2146
|
+
display: ae,
|
|
2147
|
+
ariaLabel: oe,
|
|
2148
|
+
ariaAttrs: B,
|
|
2149
|
+
theme: M,
|
|
2150
|
+
lightTextColor: Q,
|
|
2151
|
+
lightTextColorHover: le,
|
|
2152
|
+
lightButtonColor: G,
|
|
2153
|
+
lightButtonColorHover: ee,
|
|
2154
|
+
lightBorderColor: ne,
|
|
2155
|
+
lightDisabledBgColor: te,
|
|
2156
|
+
darkTextColor: q,
|
|
2157
|
+
darkTextColorHover: O,
|
|
2158
|
+
darkButtonColor: I,
|
|
2159
|
+
darkButtonColorHover: T,
|
|
2160
|
+
darkBorderColor: V,
|
|
2161
|
+
darkDisabledBgColor: c,
|
|
2162
|
+
showBorder: m,
|
|
2163
|
+
borderRadius: v,
|
|
2164
|
+
paddingX: h,
|
|
2165
|
+
paddingY: i,
|
|
2166
|
+
disabled: C,
|
|
2167
|
+
fontFamily: w,
|
|
2168
|
+
fontSize: y,
|
|
2169
|
+
fontWeight: _,
|
|
2170
|
+
lineHeight: R
|
|
2171
|
+
} = Ve(ue), N = t(() => {
|
|
2172
|
+
const H = C.value ? "component-disabled" : "", g = ae.value !== "b" ? "inline-block" : "block", p = v.value !== 0 && !v.value || v.value < 0 ? 0 : v.value, K = [!1, !0].includes(m.value) ? m.value : !0, $ = h.value !== 0 && !h.value || h.value < 0 ? 1 : h.value, re = i.value !== 0 && !i.value || i.value < 0 ? 0.2 : i.value, fe = w.value ? w.value : "'Lato', sans-serif", ie = y.value ? y.value : "1.6em", Ce = _.value !== 0 && !_.value || _.value < 0 ? 200 : _.value, j = R.value !== 0 && !R.value || R.value < 0 ? 1.42857143 : R.value;
|
|
2105
2173
|
return {
|
|
2106
|
-
disabled:
|
|
2107
|
-
display:
|
|
2108
|
-
showBorder:
|
|
2109
|
-
borderRadius:
|
|
2110
|
-
paddingX:
|
|
2111
|
-
paddingY:
|
|
2112
|
-
font:
|
|
2113
|
-
fontSize:
|
|
2114
|
-
fontWeight:
|
|
2174
|
+
disabled: H,
|
|
2175
|
+
display: g,
|
|
2176
|
+
showBorder: K,
|
|
2177
|
+
borderRadius: p,
|
|
2178
|
+
paddingX: $,
|
|
2179
|
+
paddingY: re,
|
|
2180
|
+
font: fe,
|
|
2181
|
+
fontSize: ie,
|
|
2182
|
+
fontWeight: Ce,
|
|
2183
|
+
lineHeight: j
|
|
2115
2184
|
};
|
|
2116
|
-
}), D = t(() =>
|
|
2117
|
-
display:
|
|
2118
|
-
})),
|
|
2119
|
-
const
|
|
2185
|
+
}), D = t(() => N.value.disabled), Y = t(() => ({
|
|
2186
|
+
display: N.value.display
|
|
2187
|
+
})), E = t(() => {
|
|
2188
|
+
const H = N.value;
|
|
2120
2189
|
return {
|
|
2121
|
-
borderRadius: `${
|
|
2122
|
-
padding: `${
|
|
2123
|
-
lineHeight:
|
|
2124
|
-
fontSize:
|
|
2125
|
-
fontWeight:
|
|
2190
|
+
borderRadius: `${H.borderRadius}rem`,
|
|
2191
|
+
padding: `${H.paddingY}rem ${H.paddingX}rem`,
|
|
2192
|
+
lineHeight: H.lineHeight,
|
|
2193
|
+
fontSize: H.fontSize,
|
|
2194
|
+
fontWeight: H.fontWeight
|
|
2126
2195
|
};
|
|
2127
|
-
}),
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2130
|
-
const
|
|
2131
|
-
"aria-label":
|
|
2132
|
-
"aria-disabled":
|
|
2133
|
-
...
|
|
2196
|
+
}), L = t(() => N.value.font), r = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), k = t(() => Q.value), W = t(() => le.value), P = t(() => G.value), A = t(() => ee.value), X = t(() => ne.value), f = t(() => te.value), u = t(() => q.value), d = t(() => O.value), o = t(() => I.value), s = t(() => T.value), S = t(() => V.value), b = t(() => c.value), U = t(() => {
|
|
2197
|
+
const H = {};
|
|
2198
|
+
B.value && Object.keys(B.value).forEach((K) => H[`aria-${K}`] = B.value[K]);
|
|
2199
|
+
const g = {
|
|
2200
|
+
"aria-label": oe.value,
|
|
2201
|
+
"aria-disabled": C.value,
|
|
2202
|
+
...H
|
|
2134
2203
|
};
|
|
2135
2204
|
return Object.fromEntries(
|
|
2136
|
-
Object.entries(
|
|
2205
|
+
Object.entries(g).filter(([p, K]) => K != null)
|
|
2137
2206
|
);
|
|
2138
|
-
}),
|
|
2139
|
-
|
|
2207
|
+
}), de = (H) => {
|
|
2208
|
+
J("clicked", H);
|
|
2140
2209
|
};
|
|
2141
|
-
return (
|
|
2210
|
+
return (H, g) => e.nbId ? (pe(), be("div", Be({
|
|
2142
2211
|
key: 0,
|
|
2143
2212
|
class: ["nb-wrapper", D.value],
|
|
2144
|
-
style: [
|
|
2213
|
+
style: [Y.value],
|
|
2145
2214
|
tabIndex: e.tabIndex,
|
|
2146
2215
|
role: "button",
|
|
2147
2216
|
title: e.title
|
|
2148
|
-
},
|
|
2149
|
-
onClick:
|
|
2217
|
+
}, U.value, {
|
|
2218
|
+
onClick: g[0] || (g[0] = (p) => de(p)),
|
|
2150
2219
|
onKeydown: [
|
|
2151
|
-
|
|
2152
|
-
|
|
2220
|
+
g[1] || (g[1] = F(z((p) => !n(C) && e.hasTabIndexEnter && de(p), ["prevent"]), ["enter"])),
|
|
2221
|
+
g[2] || (g[2] = F(z((p) => !n(C) && e.hasTabIndexSpace && de(p), ["prevent"]), ["space"]))
|
|
2153
2222
|
]
|
|
2154
2223
|
}), [
|
|
2155
|
-
|
|
2224
|
+
se("div", {
|
|
2156
2225
|
id: e.nbId,
|
|
2157
|
-
class:
|
|
2158
|
-
style:
|
|
2226
|
+
class: ge(["nb-reset", "component", r.value, { "component--no-border": !n(m) }]),
|
|
2227
|
+
style: ce([E.value])
|
|
2159
2228
|
}, [
|
|
2160
|
-
|
|
2161
|
-
me(
|
|
2162
|
-
|
|
2229
|
+
se("div", la, [
|
|
2230
|
+
me(H.$slots, "content", {}, () => [
|
|
2231
|
+
g[3] || (g[3] = he("Default Text"))
|
|
2163
2232
|
], !0)
|
|
2164
2233
|
]),
|
|
2165
|
-
|
|
2166
|
-
me(
|
|
2167
|
-
|
|
2234
|
+
se("div", oa, [
|
|
2235
|
+
me(H.$slots, "content", {}, () => [
|
|
2236
|
+
g[4] || (g[4] = he("Default Text"))
|
|
2168
2237
|
], !0)
|
|
2169
2238
|
])
|
|
2170
2239
|
], 14, aa)
|
|
2171
|
-
], 16, ta)) :
|
|
2240
|
+
], 16, ta)) : ye("", !0);
|
|
2172
2241
|
}
|
|
2173
|
-
}), ra = /* @__PURE__ */
|
|
2242
|
+
}), ra = /* @__PURE__ */ Te(na, [["__scopeId", "data-v-e511b234"]]);
|
|
2174
2243
|
const ua = ["tabIndex", "title"], da = ["id"], ia = /* @__PURE__ */ Object.assign({
|
|
2175
2244
|
name: "NbButtonBack",
|
|
2176
2245
|
inheritAttrs: !1
|
|
@@ -2209,8 +2278,8 @@ const ua = ["tabIndex", "title"], da = ["id"], ia = /* @__PURE__ */ Object.assig
|
|
|
2209
2278
|
type: String,
|
|
2210
2279
|
default: "light",
|
|
2211
2280
|
validator: (e) => {
|
|
2212
|
-
const
|
|
2213
|
-
return ["light", "dark"].includes(
|
|
2281
|
+
const l = e ? e.toLowerCase() : "";
|
|
2282
|
+
return ["light", "dark"].includes(l);
|
|
2214
2283
|
}
|
|
2215
2284
|
},
|
|
2216
2285
|
// Cores do tema light
|
|
@@ -2264,98 +2333,98 @@ const ua = ["tabIndex", "title"], da = ["id"], ia = /* @__PURE__ */ Object.assig
|
|
|
2264
2333
|
}
|
|
2265
2334
|
},
|
|
2266
2335
|
emits: ["clicked"],
|
|
2267
|
-
setup(e, { emit:
|
|
2268
|
-
|
|
2269
|
-
"7c3baba0":
|
|
2270
|
-
"17dec660":
|
|
2271
|
-
"87fd26e6":
|
|
2272
|
-
"256efac0":
|
|
2273
|
-
"90ca5e26":
|
|
2274
|
-
})),
|
|
2275
|
-
|
|
2336
|
+
setup(e, { emit: l }) {
|
|
2337
|
+
ke((D) => ({
|
|
2338
|
+
"7c3baba0": w.value,
|
|
2339
|
+
"17dec660": h.value,
|
|
2340
|
+
"87fd26e6": v.value,
|
|
2341
|
+
"256efac0": C.value,
|
|
2342
|
+
"90ca5e26": i.value
|
|
2343
|
+
})), Ge(() => {
|
|
2344
|
+
R();
|
|
2276
2345
|
});
|
|
2277
|
-
const
|
|
2278
|
-
ariaLabel:
|
|
2279
|
-
ariaAttrs:
|
|
2280
|
-
theme:
|
|
2281
|
-
lightColor:
|
|
2282
|
-
lightTextColor:
|
|
2283
|
-
lightDisabledBgColor:
|
|
2284
|
-
darkColor:
|
|
2285
|
-
darkTextColor:
|
|
2286
|
-
darkDisabledBgColor:
|
|
2287
|
-
disabled:
|
|
2288
|
-
fontFamily:
|
|
2289
|
-
fontSize:
|
|
2290
|
-
fontWeight:
|
|
2291
|
-
} =
|
|
2292
|
-
const
|
|
2346
|
+
const J = l, ue = e, {
|
|
2347
|
+
ariaLabel: ae,
|
|
2348
|
+
ariaAttrs: oe,
|
|
2349
|
+
theme: B,
|
|
2350
|
+
lightColor: M,
|
|
2351
|
+
lightTextColor: Q,
|
|
2352
|
+
lightDisabledBgColor: le,
|
|
2353
|
+
darkColor: G,
|
|
2354
|
+
darkTextColor: ee,
|
|
2355
|
+
darkDisabledBgColor: ne,
|
|
2356
|
+
disabled: te,
|
|
2357
|
+
fontFamily: q,
|
|
2358
|
+
fontSize: O,
|
|
2359
|
+
fontWeight: I
|
|
2360
|
+
} = Ve(ue), T = t(() => {
|
|
2361
|
+
const D = te.value ? "component-disabled" : "", Y = q.value ? q.value : "'Lato', sans-serif", E = O.value ? O.value : "1.6em", L = I.value !== 0 && !I.value || I.value < 0 ? 400 : I.value;
|
|
2293
2362
|
return {
|
|
2294
|
-
font:
|
|
2295
|
-
fontSize:
|
|
2296
|
-
fontWeight:
|
|
2297
|
-
disabled:
|
|
2363
|
+
font: Y,
|
|
2364
|
+
fontSize: E,
|
|
2365
|
+
fontWeight: L,
|
|
2366
|
+
disabled: D
|
|
2298
2367
|
};
|
|
2299
|
-
}),
|
|
2300
|
-
const
|
|
2368
|
+
}), V = t(() => ({})), c = t(() => {
|
|
2369
|
+
const D = T.value;
|
|
2301
2370
|
return {
|
|
2302
|
-
fontSize:
|
|
2303
|
-
fontWeight:
|
|
2371
|
+
fontSize: D.fontSize,
|
|
2372
|
+
fontWeight: D.fontWeight
|
|
2304
2373
|
};
|
|
2305
|
-
}),
|
|
2306
|
-
t(() =>
|
|
2307
|
-
const
|
|
2308
|
-
t(() =>
|
|
2309
|
-
const
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2312
|
-
const
|
|
2313
|
-
"aria-label":
|
|
2314
|
-
"aria-disabled":
|
|
2315
|
-
...
|
|
2374
|
+
}), m = t(() => B.value === "dark" ? "component__theme--dark" : "component__theme--light"), v = t(() => M.value), h = t(() => Q.value);
|
|
2375
|
+
t(() => le.value);
|
|
2376
|
+
const i = t(() => G.value), C = t(() => ee.value);
|
|
2377
|
+
t(() => ne.value);
|
|
2378
|
+
const w = t(() => T.value.font), y = t(() => T.value.disabled), _ = t(() => {
|
|
2379
|
+
const D = {};
|
|
2380
|
+
oe.value && Object.keys(oe.value).forEach((L) => D[`aria-${L}`] = oe.value[L]);
|
|
2381
|
+
const Y = {
|
|
2382
|
+
"aria-label": ae.value,
|
|
2383
|
+
"aria-disabled": te.value,
|
|
2384
|
+
...D
|
|
2316
2385
|
};
|
|
2317
2386
|
return Object.fromEntries(
|
|
2318
|
-
Object.entries(
|
|
2387
|
+
Object.entries(Y).filter(([E, L]) => L != null)
|
|
2319
2388
|
);
|
|
2320
|
-
}),
|
|
2321
|
-
},
|
|
2322
|
-
|
|
2389
|
+
}), R = () => {
|
|
2390
|
+
}, N = (D) => {
|
|
2391
|
+
J("clicked", D);
|
|
2323
2392
|
};
|
|
2324
|
-
return (
|
|
2393
|
+
return (D, Y) => e.nbId ? (pe(), be("div", Be({
|
|
2325
2394
|
key: 0,
|
|
2326
|
-
class: ["nb-wrapper",
|
|
2327
|
-
style: [
|
|
2395
|
+
class: ["nb-wrapper", y.value],
|
|
2396
|
+
style: [V.value],
|
|
2328
2397
|
tabIndex: e.tabIndex,
|
|
2329
2398
|
role: "button",
|
|
2330
2399
|
title: e.title
|
|
2331
|
-
},
|
|
2332
|
-
onClick:
|
|
2400
|
+
}, _.value, {
|
|
2401
|
+
onClick: Y[0] || (Y[0] = (E) => N(E)),
|
|
2333
2402
|
onKeydown: [
|
|
2334
|
-
|
|
2335
|
-
|
|
2403
|
+
Y[1] || (Y[1] = F(z((E) => !n(te) && e.hasTabIndexEnter && N(E), ["prevent"]), ["enter"])),
|
|
2404
|
+
Y[2] || (Y[2] = F(z((E) => !n(te) && e.hasTabIndexSpace && N(E), ["prevent"]), ["space"]))
|
|
2336
2405
|
]
|
|
2337
2406
|
}), [
|
|
2338
|
-
|
|
2407
|
+
se("div", {
|
|
2339
2408
|
id: e.nbId,
|
|
2340
|
-
class:
|
|
2341
|
-
style:
|
|
2409
|
+
class: ge(["nb-reset", "component", m.value]),
|
|
2410
|
+
style: ce([c.value])
|
|
2342
2411
|
}, [
|
|
2343
|
-
|
|
2412
|
+
Y[3] || (Y[3] = se("svg", {
|
|
2344
2413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2345
2414
|
width: "1em",
|
|
2346
2415
|
height: "1em",
|
|
2347
2416
|
viewBox: "0 0 16 16"
|
|
2348
2417
|
}, [
|
|
2349
|
-
|
|
2418
|
+
se("path", {
|
|
2350
2419
|
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",
|
|
2351
2420
|
"clip-rule": "evenodd"
|
|
2352
2421
|
})
|
|
2353
2422
|
], -1)),
|
|
2354
|
-
|
|
2423
|
+
se("span", null, We(e.text), 1)
|
|
2355
2424
|
], 14, da)
|
|
2356
|
-
], 16, ua)) :
|
|
2425
|
+
], 16, ua)) : ye("", !0);
|
|
2357
2426
|
}
|
|
2358
|
-
}), sa = /* @__PURE__ */
|
|
2427
|
+
}), sa = /* @__PURE__ */ Te(ia, [["__scopeId", "data-v-9d39f792"]]);
|
|
2359
2428
|
const fa = ["tabIndex", "title"], ca = ["id"], va = /* @__PURE__ */ Object.assign({
|
|
2360
2429
|
name: "NbButtonGradientBorderToBackground",
|
|
2361
2430
|
inheritAttrs: !1
|
|
@@ -2370,8 +2439,8 @@ const fa = ["tabIndex", "title"], ca = ["id"], va = /* @__PURE__ */ Object.assig
|
|
|
2370
2439
|
type: String,
|
|
2371
2440
|
default: "b",
|
|
2372
2441
|
validator: (e = "b") => {
|
|
2373
|
-
const
|
|
2374
|
-
return ["b", "ib"].includes(
|
|
2442
|
+
const l = e ? e.toLowerCase() : "";
|
|
2443
|
+
return ["b", "ib"].includes(l);
|
|
2375
2444
|
}
|
|
2376
2445
|
},
|
|
2377
2446
|
tabIndex: {
|
|
@@ -2455,106 +2524,112 @@ const fa = ["tabIndex", "title"], ca = ["id"], va = /* @__PURE__ */ Object.assig
|
|
|
2455
2524
|
type: Number,
|
|
2456
2525
|
default: 200,
|
|
2457
2526
|
validator: (e) => e || 200
|
|
2527
|
+
},
|
|
2528
|
+
lineHeight: {
|
|
2529
|
+
type: Number,
|
|
2530
|
+
default: 1.42857143
|
|
2458
2531
|
}
|
|
2459
2532
|
},
|
|
2460
2533
|
emits: ["clicked"],
|
|
2461
|
-
setup(e, { emit:
|
|
2462
|
-
|
|
2463
|
-
"
|
|
2464
|
-
"
|
|
2465
|
-
"
|
|
2466
|
-
|
|
2467
|
-
"
|
|
2468
|
-
"
|
|
2469
|
-
"
|
|
2534
|
+
setup(e, { emit: l }) {
|
|
2535
|
+
ke((r) => ({
|
|
2536
|
+
"3a43176d": w.value,
|
|
2537
|
+
"8d505204": D.value,
|
|
2538
|
+
"496f75ba": R.value,
|
|
2539
|
+
b5ec3c5e: _.value,
|
|
2540
|
+
"323fab84": y.value,
|
|
2541
|
+
"9a154472": N.value,
|
|
2542
|
+
"67b7b0de": Y.value
|
|
2470
2543
|
}));
|
|
2471
|
-
const
|
|
2472
|
-
display:
|
|
2473
|
-
ariaLabel:
|
|
2474
|
-
ariaAttrs:
|
|
2475
|
-
buttonColor:
|
|
2476
|
-
borderColor:
|
|
2477
|
-
buttonHoverColor:
|
|
2478
|
-
showBorder:
|
|
2479
|
-
borderRadius:
|
|
2480
|
-
textColor:
|
|
2481
|
-
textHoverColor:
|
|
2482
|
-
paddingX:
|
|
2483
|
-
paddingY:
|
|
2484
|
-
disabled:
|
|
2485
|
-
fontFamily:
|
|
2486
|
-
fontSize:
|
|
2487
|
-
fontWeight:
|
|
2488
|
-
|
|
2489
|
-
|
|
2544
|
+
const J = l, ue = e, {
|
|
2545
|
+
display: ae,
|
|
2546
|
+
ariaLabel: oe,
|
|
2547
|
+
ariaAttrs: B,
|
|
2548
|
+
buttonColor: M,
|
|
2549
|
+
borderColor: Q,
|
|
2550
|
+
buttonHoverColor: le,
|
|
2551
|
+
showBorder: G,
|
|
2552
|
+
borderRadius: ee,
|
|
2553
|
+
textColor: ne,
|
|
2554
|
+
textHoverColor: te,
|
|
2555
|
+
paddingX: q,
|
|
2556
|
+
paddingY: O,
|
|
2557
|
+
disabled: I,
|
|
2558
|
+
fontFamily: T,
|
|
2559
|
+
fontSize: V,
|
|
2560
|
+
fontWeight: c,
|
|
2561
|
+
lineHeight: m
|
|
2562
|
+
} = Ve(ue), v = t(() => {
|
|
2563
|
+
const r = I.value ? "component-disabled" : "", k = ae.value !== "b" ? "inline-block" : "block", W = M.value ? M.value : "#ffffff", P = le.value ? le.value : "#000000", A = Q.value ? Q.value : "#ffe54c", X = ee.value !== 0 && !ee.value || ee.value < 0 ? 0 : ee.value, f = [!1, !0].includes(G.value) ? G.value : !0, u = ne.value ? ne.value : "#ffffff", d = te.value ? te.value : "#000000", o = q.value !== 0 && !q.value || q.value < 0 ? 1 : q.value, s = O.value !== 0 && !O.value || O.value < 0 ? 0.2 : O.value, S = T.value ? T.value : "'Lato', sans-serif", b = V.value ? V.value : "1.6em", U = c.value !== 0 && !c.value || c.value < 0 ? 200 : c.value, de = m.value !== 0 && !m.value || m.value < 0 ? 1.42857143 : m.value;
|
|
2490
2564
|
return {
|
|
2491
|
-
disabled:
|
|
2492
|
-
display:
|
|
2493
|
-
buttonColor:
|
|
2494
|
-
buttonHoverColor:
|
|
2495
|
-
borderColor:
|
|
2496
|
-
showBorder:
|
|
2497
|
-
borderRadius:
|
|
2498
|
-
textColor:
|
|
2499
|
-
textHoverColor:
|
|
2500
|
-
paddingX:
|
|
2501
|
-
paddingY:
|
|
2502
|
-
font:
|
|
2503
|
-
fontSize:
|
|
2504
|
-
fontWeight:
|
|
2565
|
+
disabled: r,
|
|
2566
|
+
display: k,
|
|
2567
|
+
buttonColor: W,
|
|
2568
|
+
buttonHoverColor: P,
|
|
2569
|
+
borderColor: A,
|
|
2570
|
+
showBorder: f,
|
|
2571
|
+
borderRadius: X,
|
|
2572
|
+
textColor: u,
|
|
2573
|
+
textHoverColor: d,
|
|
2574
|
+
paddingX: o,
|
|
2575
|
+
paddingY: s,
|
|
2576
|
+
font: S,
|
|
2577
|
+
fontSize: b,
|
|
2578
|
+
fontWeight: U,
|
|
2579
|
+
lineHeight: de
|
|
2505
2580
|
};
|
|
2506
|
-
}),
|
|
2581
|
+
}), h = t(() => v.value.disabled), i = t(() => ({
|
|
2507
2582
|
display: v.value.display
|
|
2508
|
-
})),
|
|
2509
|
-
const
|
|
2583
|
+
})), C = t(() => {
|
|
2584
|
+
const r = v.value;
|
|
2510
2585
|
return {
|
|
2511
|
-
lineHeight:
|
|
2512
|
-
fontSize:
|
|
2513
|
-
fontWeight:
|
|
2586
|
+
lineHeight: r.lineHeight,
|
|
2587
|
+
fontSize: r.fontSize,
|
|
2588
|
+
fontWeight: r.fontWeight
|
|
2514
2589
|
};
|
|
2515
|
-
}),
|
|
2516
|
-
const
|
|
2517
|
-
return `${
|
|
2518
|
-
}),
|
|
2519
|
-
const
|
|
2520
|
-
|
|
2521
|
-
const
|
|
2522
|
-
"aria-label":
|
|
2523
|
-
"aria-disabled":
|
|
2524
|
-
...
|
|
2590
|
+
}), w = t(() => v.value.font), y = t(() => {
|
|
2591
|
+
const r = v.value;
|
|
2592
|
+
return `${r.paddingY}rem ${r.paddingX}rem`;
|
|
2593
|
+
}), _ = t(() => `${v.value.borderRadius}rem`), R = t(() => v.value.textColor), N = t(() => v.value.textHoverColor), D = t(() => v.value.buttonColor), Y = t(() => v.value.buttonHoverColor), E = t(() => {
|
|
2594
|
+
const r = {};
|
|
2595
|
+
B.value && Object.keys(B.value).forEach((P) => r[`aria-${P}`] = B.value[P]);
|
|
2596
|
+
const k = {
|
|
2597
|
+
"aria-label": oe.value,
|
|
2598
|
+
"aria-disabled": I.value,
|
|
2599
|
+
...r
|
|
2525
2600
|
};
|
|
2526
2601
|
return Object.fromEntries(
|
|
2527
|
-
Object.entries(
|
|
2602
|
+
Object.entries(k).filter(([W, P]) => P != null)
|
|
2528
2603
|
);
|
|
2529
|
-
}),
|
|
2530
|
-
|
|
2604
|
+
}), L = (r) => {
|
|
2605
|
+
J("clicked", r);
|
|
2531
2606
|
};
|
|
2532
|
-
return (
|
|
2607
|
+
return (r, k) => e.nbId ? (pe(), be("div", Be({
|
|
2533
2608
|
key: 0,
|
|
2534
|
-
class: ["nb-wrapper",
|
|
2535
|
-
style: [
|
|
2609
|
+
class: ["nb-wrapper", h.value],
|
|
2610
|
+
style: [i.value],
|
|
2536
2611
|
tabIndex: e.tabIndex,
|
|
2537
2612
|
role: "button",
|
|
2538
2613
|
title: e.title
|
|
2539
|
-
},
|
|
2540
|
-
onClick:
|
|
2614
|
+
}, E.value, {
|
|
2615
|
+
onClick: k[0] || (k[0] = (W) => L(W)),
|
|
2541
2616
|
onKeydown: [
|
|
2542
|
-
|
|
2543
|
-
|
|
2617
|
+
k[1] || (k[1] = F(z((W) => !n(I) && e.hasTabIndexEnter && L(W), ["prevent"]), ["enter"])),
|
|
2618
|
+
k[2] || (k[2] = F(z((W) => !n(I) && e.hasTabIndexSpace && L(W), ["prevent"]), ["space"]))
|
|
2544
2619
|
]
|
|
2545
2620
|
}), [
|
|
2546
|
-
|
|
2621
|
+
se("div", {
|
|
2547
2622
|
id: e.nbId,
|
|
2548
2623
|
class: "nb-reset component",
|
|
2549
|
-
style:
|
|
2624
|
+
style: ce([C.value])
|
|
2550
2625
|
}, [
|
|
2551
|
-
me(
|
|
2552
|
-
|
|
2626
|
+
me(r.$slots, "content", {}, () => [
|
|
2627
|
+
k[3] || (k[3] = he("Default Text"))
|
|
2553
2628
|
], !0)
|
|
2554
2629
|
], 12, ca)
|
|
2555
|
-
], 16, fa)) :
|
|
2630
|
+
], 16, fa)) : ye("", !0);
|
|
2556
2631
|
}
|
|
2557
|
-
}), pa = /* @__PURE__ */
|
|
2632
|
+
}), pa = /* @__PURE__ */ Te(va, [["__scopeId", "data-v-7105af37"]]);
|
|
2558
2633
|
const ba = ["tabIndex", "title"], ga = ["id"], ya = /* @__PURE__ */ Object.assign({
|
|
2559
2634
|
name: "NbButtonNormal",
|
|
2560
2635
|
inheritAttrs: !1
|
|
@@ -2569,8 +2644,8 @@ const ba = ["tabIndex", "title"], ga = ["id"], ya = /* @__PURE__ */ Object.assig
|
|
|
2569
2644
|
type: String,
|
|
2570
2645
|
default: "b",
|
|
2571
2646
|
validator: (e = "b") => {
|
|
2572
|
-
const
|
|
2573
|
-
return ["b", "ib"].includes(
|
|
2647
|
+
const l = e ? e.toLowerCase() : "";
|
|
2648
|
+
return ["b", "ib"].includes(l);
|
|
2574
2649
|
}
|
|
2575
2650
|
},
|
|
2576
2651
|
tabIndex: {
|
|
@@ -2635,6 +2710,10 @@ const ba = ["tabIndex", "title"], ga = ["id"], ya = /* @__PURE__ */ Object.assig
|
|
|
2635
2710
|
default: 200,
|
|
2636
2711
|
validator: (e) => e || 200
|
|
2637
2712
|
},
|
|
2713
|
+
lineHeight: {
|
|
2714
|
+
type: Number,
|
|
2715
|
+
default: 1.42857143
|
|
2716
|
+
},
|
|
2638
2717
|
hasAnimation: {
|
|
2639
2718
|
type: Boolean,
|
|
2640
2719
|
default: !1
|
|
@@ -2714,133 +2793,135 @@ const ba = ["tabIndex", "title"], ga = ["id"], ya = /* @__PURE__ */ Object.assig
|
|
|
2714
2793
|
}
|
|
2715
2794
|
},
|
|
2716
2795
|
emits: ["clicked"],
|
|
2717
|
-
setup(e, { emit:
|
|
2718
|
-
|
|
2719
|
-
"
|
|
2720
|
-
"
|
|
2721
|
-
|
|
2722
|
-
"
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
"
|
|
2727
|
-
|
|
2728
|
-
"
|
|
2729
|
-
"
|
|
2730
|
-
"
|
|
2731
|
-
|
|
2732
|
-
"
|
|
2733
|
-
|
|
2734
|
-
"
|
|
2796
|
+
setup(e, { emit: l }) {
|
|
2797
|
+
ke((o) => ({
|
|
2798
|
+
"7b170f4a": A.value,
|
|
2799
|
+
"4befc1df": X.value,
|
|
2800
|
+
a1087658: n(N),
|
|
2801
|
+
"4eaa2e6f": n(_),
|
|
2802
|
+
"37aa2496": n(Y),
|
|
2803
|
+
ada60e70: n(D),
|
|
2804
|
+
e7d14fe6: n(R),
|
|
2805
|
+
"68ad96f2": n(E),
|
|
2806
|
+
61298268: n(h),
|
|
2807
|
+
"30a30a67": n(m),
|
|
2808
|
+
"73b86ca6": n(C),
|
|
2809
|
+
"4832f9d0": n(i),
|
|
2810
|
+
fcbd91d6: n(v),
|
|
2811
|
+
"7d99d8e2": n(w),
|
|
2812
|
+
19099820: n(L),
|
|
2813
|
+
"5ac3b818": n(y)
|
|
2735
2814
|
}));
|
|
2736
|
-
const
|
|
2737
|
-
display:
|
|
2738
|
-
ariaLabel:
|
|
2739
|
-
ariaAttrs:
|
|
2740
|
-
showBorder:
|
|
2741
|
-
borderRadius:
|
|
2742
|
-
paddingX:
|
|
2743
|
-
paddingY:
|
|
2744
|
-
disabled:
|
|
2745
|
-
fontFamily:
|
|
2746
|
-
fontSize:
|
|
2747
|
-
fontWeight:
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2815
|
+
const J = l, ue = e, {
|
|
2816
|
+
display: ae,
|
|
2817
|
+
ariaLabel: oe,
|
|
2818
|
+
ariaAttrs: B,
|
|
2819
|
+
showBorder: M,
|
|
2820
|
+
borderRadius: Q,
|
|
2821
|
+
paddingX: le,
|
|
2822
|
+
paddingY: G,
|
|
2823
|
+
disabled: ee,
|
|
2824
|
+
fontFamily: ne,
|
|
2825
|
+
fontSize: te,
|
|
2826
|
+
fontWeight: q,
|
|
2827
|
+
lineHeight: O,
|
|
2828
|
+
hasAnimation: I,
|
|
2829
|
+
animationDuration: T,
|
|
2830
|
+
animationDurationType: V,
|
|
2831
|
+
theme: c,
|
|
2832
|
+
lightButtonColor: m,
|
|
2753
2833
|
lightButtonColorHover: v,
|
|
2754
|
-
lightTextColor:
|
|
2755
|
-
lightTextColorHover:
|
|
2756
|
-
lightBorderColor:
|
|
2757
|
-
lightBorderColorHover:
|
|
2758
|
-
lightDisabledBgColor:
|
|
2759
|
-
darkButtonColor:
|
|
2760
|
-
darkButtonColorHover:
|
|
2761
|
-
darkTextColor:
|
|
2834
|
+
lightTextColor: h,
|
|
2835
|
+
lightTextColorHover: i,
|
|
2836
|
+
lightBorderColor: C,
|
|
2837
|
+
lightBorderColorHover: w,
|
|
2838
|
+
lightDisabledBgColor: y,
|
|
2839
|
+
darkButtonColor: _,
|
|
2840
|
+
darkButtonColorHover: R,
|
|
2841
|
+
darkTextColor: N,
|
|
2762
2842
|
darkTextColorHover: D,
|
|
2763
|
-
darkBorderColor:
|
|
2764
|
-
darkBorderColorHover:
|
|
2765
|
-
darkDisabledBgColor:
|
|
2766
|
-
} =
|
|
2767
|
-
const
|
|
2843
|
+
darkBorderColor: Y,
|
|
2844
|
+
darkBorderColorHover: E,
|
|
2845
|
+
darkDisabledBgColor: L
|
|
2846
|
+
} = Ve(ue), r = t(() => {
|
|
2847
|
+
const o = ee.value ? "component-disabled" : "", s = ae.value !== "b" ? "inline-block" : "block", S = Q.value !== 0 && !Q.value || Q.value < 0 ? 0 : Q.value, b = [!1, !0].includes(M.value) ? M.value : !0, U = le.value !== 0 && !le.value || le.value < 0 ? 1 : le.value, de = G.value !== 0 && !G.value || G.value < 0 ? 0.2 : G.value, H = ne.value ? ne.value : "'Lato', sans-serif", g = te.value ? te.value : "1.6em", p = q.value !== 0 && !q.value || q.value < 0 ? 200 : q.value, K = O.value !== 0 && !O.value || O.value < 0 ? 1.42857143 : O.value, $ = I.value ? "component-transition" : "", re = T.value !== 0 && !T.value || T.value < 0 ? 0.3 : T.value, fe = V.value ? V.value : "ms", ie = c.value ? c.value : "light";
|
|
2768
2848
|
return {
|
|
2769
|
-
disabled:
|
|
2770
|
-
display:
|
|
2771
|
-
showBorder:
|
|
2772
|
-
borderRadius:
|
|
2773
|
-
paddingX:
|
|
2774
|
-
paddingY:
|
|
2775
|
-
font:
|
|
2776
|
-
fontSize:
|
|
2777
|
-
fontWeight:
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2849
|
+
disabled: o,
|
|
2850
|
+
display: s,
|
|
2851
|
+
showBorder: b,
|
|
2852
|
+
borderRadius: S,
|
|
2853
|
+
paddingX: U,
|
|
2854
|
+
paddingY: de,
|
|
2855
|
+
font: H,
|
|
2856
|
+
fontSize: g,
|
|
2857
|
+
fontWeight: p,
|
|
2858
|
+
lineHeight: K,
|
|
2859
|
+
hasAnimation: $,
|
|
2860
|
+
animationDuration: re,
|
|
2861
|
+
animationDurationType: fe,
|
|
2862
|
+
theme: ie
|
|
2782
2863
|
};
|
|
2783
|
-
}),
|
|
2784
|
-
display:
|
|
2785
|
-
})),
|
|
2786
|
-
const
|
|
2864
|
+
}), k = t(() => r.value.disabled), W = t(() => ({
|
|
2865
|
+
display: r.value.display
|
|
2866
|
+
})), P = t(() => {
|
|
2867
|
+
const o = r.value;
|
|
2787
2868
|
return {
|
|
2788
|
-
borderRadius: `${
|
|
2789
|
-
padding: `${
|
|
2790
|
-
lineHeight:
|
|
2791
|
-
fontSize:
|
|
2792
|
-
fontWeight:
|
|
2869
|
+
borderRadius: `${o.borderRadius}rem`,
|
|
2870
|
+
padding: `${o.paddingY}rem ${o.paddingX}rem`,
|
|
2871
|
+
lineHeight: o.lineHeight,
|
|
2872
|
+
fontSize: o.fontSize,
|
|
2873
|
+
fontWeight: o.fontWeight
|
|
2793
2874
|
};
|
|
2794
|
-
}),
|
|
2795
|
-
const
|
|
2796
|
-
return
|
|
2797
|
-
}),
|
|
2798
|
-
switch (
|
|
2875
|
+
}), A = t(() => r.value.font), X = t(() => {
|
|
2876
|
+
const o = r.value;
|
|
2877
|
+
return o.hasAnimation ? `all ${o.animationDuration}${o.animationDurationType} ease-in-out` : "";
|
|
2878
|
+
}), f = t(() => {
|
|
2879
|
+
switch (r.value.theme) {
|
|
2799
2880
|
case "dark":
|
|
2800
2881
|
return "component__theme--dark";
|
|
2801
2882
|
default:
|
|
2802
2883
|
return "component__theme--light";
|
|
2803
2884
|
}
|
|
2804
|
-
}),
|
|
2805
|
-
const
|
|
2806
|
-
|
|
2807
|
-
const
|
|
2808
|
-
"aria-label":
|
|
2809
|
-
"aria-disabled":
|
|
2810
|
-
...
|
|
2885
|
+
}), u = t(() => {
|
|
2886
|
+
const o = {};
|
|
2887
|
+
B.value && Object.keys(B.value).forEach((b) => o[`aria-${b}`] = B.value[b]);
|
|
2888
|
+
const s = {
|
|
2889
|
+
"aria-label": oe.value,
|
|
2890
|
+
"aria-disabled": ee.value,
|
|
2891
|
+
...o
|
|
2811
2892
|
};
|
|
2812
2893
|
return Object.fromEntries(
|
|
2813
|
-
Object.entries(
|
|
2894
|
+
Object.entries(s).filter(([S, b]) => b != null)
|
|
2814
2895
|
);
|
|
2815
|
-
}),
|
|
2816
|
-
|
|
2896
|
+
}), d = (o) => {
|
|
2897
|
+
J("clicked", o);
|
|
2817
2898
|
};
|
|
2818
|
-
return (
|
|
2899
|
+
return (o, s) => e.nbId ? (pe(), be("div", Be({
|
|
2819
2900
|
key: 0,
|
|
2820
|
-
class: ["nb-wrapper",
|
|
2821
|
-
style: [
|
|
2901
|
+
class: ["nb-wrapper", k.value],
|
|
2902
|
+
style: [W.value],
|
|
2822
2903
|
tabIndex: e.tabIndex,
|
|
2823
2904
|
role: "button",
|
|
2824
2905
|
title: e.title
|
|
2825
|
-
},
|
|
2826
|
-
onClick:
|
|
2906
|
+
}, u.value, {
|
|
2907
|
+
onClick: s[0] || (s[0] = (S) => d(S)),
|
|
2827
2908
|
onKeydown: [
|
|
2828
|
-
|
|
2829
|
-
|
|
2909
|
+
s[1] || (s[1] = F(z((S) => !n(ee) && e.hasTabIndexEnter && d(S), ["prevent"]), ["enter"])),
|
|
2910
|
+
s[2] || (s[2] = F(z((S) => !n(ee) && e.hasTabIndexSpace && d(S), ["prevent"]), ["space"]))
|
|
2830
2911
|
]
|
|
2831
2912
|
}), [
|
|
2832
|
-
|
|
2913
|
+
se("div", {
|
|
2833
2914
|
id: e.nbId,
|
|
2834
|
-
class:
|
|
2835
|
-
style:
|
|
2915
|
+
class: ge(["nb-reset component", [{ "component-transition": n(I), "component--no-border": !n(M) }, f.value]]),
|
|
2916
|
+
style: ce([P.value])
|
|
2836
2917
|
}, [
|
|
2837
|
-
me(
|
|
2838
|
-
|
|
2918
|
+
me(o.$slots, "content", {}, () => [
|
|
2919
|
+
s[3] || (s[3] = he("Default Text"))
|
|
2839
2920
|
], !0)
|
|
2840
2921
|
], 14, ga)
|
|
2841
|
-
], 16, ba)) :
|
|
2922
|
+
], 16, ba)) : ye("", !0);
|
|
2842
2923
|
}
|
|
2843
|
-
}), ma = /* @__PURE__ */
|
|
2924
|
+
}), ma = /* @__PURE__ */ Te(ya, [["__scopeId", "data-v-00ab22c8"]]);
|
|
2844
2925
|
const ha = ["tabIndex", "title"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assign({
|
|
2845
2926
|
name: "NbButtonShadow",
|
|
2846
2927
|
inheritAttrs: !1
|
|
@@ -2855,8 +2936,8 @@ const ha = ["tabIndex", "title"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assig
|
|
|
2855
2936
|
type: String,
|
|
2856
2937
|
default: "b",
|
|
2857
2938
|
validator: (e = "b") => {
|
|
2858
|
-
const
|
|
2859
|
-
return ["b", "ib"].includes(
|
|
2939
|
+
const l = e ? e.toLowerCase() : "";
|
|
2940
|
+
return ["b", "ib"].includes(l);
|
|
2860
2941
|
}
|
|
2861
2942
|
},
|
|
2862
2943
|
tabIndex: {
|
|
@@ -2887,8 +2968,8 @@ const ha = ["tabIndex", "title"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assig
|
|
|
2887
2968
|
type: String,
|
|
2888
2969
|
default: "light",
|
|
2889
2970
|
validator: (e) => {
|
|
2890
|
-
const
|
|
2891
|
-
return ["light", "dark"].includes(
|
|
2971
|
+
const l = e ? e.toLowerCase() : "";
|
|
2972
|
+
return ["light", "dark"].includes(l);
|
|
2892
2973
|
}
|
|
2893
2974
|
},
|
|
2894
2975
|
// Cores do tema light
|
|
@@ -2968,6 +3049,22 @@ const ha = ["tabIndex", "title"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assig
|
|
|
2968
3049
|
default: 0.2,
|
|
2969
3050
|
validator: (e) => e || 0.2
|
|
2970
3051
|
},
|
|
3052
|
+
marginTop: {
|
|
3053
|
+
type: Number,
|
|
3054
|
+
default: 0
|
|
3055
|
+
},
|
|
3056
|
+
marginBottom: {
|
|
3057
|
+
type: Number,
|
|
3058
|
+
default: 0
|
|
3059
|
+
},
|
|
3060
|
+
marginRight: {
|
|
3061
|
+
type: Number,
|
|
3062
|
+
default: 0
|
|
3063
|
+
},
|
|
3064
|
+
marginLeft: {
|
|
3065
|
+
type: Number,
|
|
3066
|
+
default: 0
|
|
3067
|
+
},
|
|
2971
3068
|
disabled: {
|
|
2972
3069
|
type: Boolean,
|
|
2973
3070
|
default: !1,
|
|
@@ -2986,118 +3083,136 @@ const ha = ["tabIndex", "title"], Ca = ["id"], Sa = /* @__PURE__ */ Object.assig
|
|
|
2986
3083
|
type: Number,
|
|
2987
3084
|
default: 200,
|
|
2988
3085
|
validator: (e) => e || 200
|
|
3086
|
+
},
|
|
3087
|
+
lineHeight: {
|
|
3088
|
+
type: Number,
|
|
3089
|
+
default: 1.42857143
|
|
2989
3090
|
}
|
|
2990
3091
|
},
|
|
2991
3092
|
emits: ["clicked"],
|
|
2992
|
-
setup(e, { emit:
|
|
2993
|
-
|
|
2994
|
-
"
|
|
2995
|
-
"
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
"
|
|
2999
|
-
|
|
3000
|
-
"
|
|
3001
|
-
"
|
|
3002
|
-
"
|
|
3003
|
-
"
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
"
|
|
3008
|
-
"
|
|
3009
|
-
|
|
3010
|
-
"
|
|
3093
|
+
setup(e, { emit: l }) {
|
|
3094
|
+
ke((j) => ({
|
|
3095
|
+
"5390e096": A.value,
|
|
3096
|
+
"99d9b4f4": d.value,
|
|
3097
|
+
d9d4d4aa: f.value,
|
|
3098
|
+
"4893e4cc": b.value,
|
|
3099
|
+
"6a57ebf4": s.value,
|
|
3100
|
+
"4cf03756": o.value,
|
|
3101
|
+
"7c171651": u.value,
|
|
3102
|
+
"0eebba54": S.value,
|
|
3103
|
+
"004ab370": g.value,
|
|
3104
|
+
"9468d3d6": de.value,
|
|
3105
|
+
d4691a94: re.value,
|
|
3106
|
+
"3be00070": K.value,
|
|
3107
|
+
"569268a8": p.value,
|
|
3108
|
+
"5002c827": H.value,
|
|
3109
|
+
"192cc2a8": $.value,
|
|
3110
|
+
b939a892: U.value,
|
|
3111
|
+
"4cedb4a1": fe.value
|
|
3011
3112
|
}));
|
|
3012
|
-
const
|
|
3013
|
-
display:
|
|
3014
|
-
ariaLabel:
|
|
3015
|
-
ariaAttrs:
|
|
3016
|
-
theme:
|
|
3017
|
-
lightTextColor:
|
|
3018
|
-
lightTextColorHover:
|
|
3019
|
-
lightButtonColor:
|
|
3020
|
-
lightButtonColorHover:
|
|
3021
|
-
lightButtonShadowColor:
|
|
3022
|
-
lightBorderColor:
|
|
3023
|
-
lightDisabledBgColor:
|
|
3024
|
-
darkTextColor:
|
|
3025
|
-
darkTextColorHover:
|
|
3026
|
-
darkButtonColor:
|
|
3027
|
-
darkButtonColorHover:
|
|
3028
|
-
darkButtonShadowColor:
|
|
3029
|
-
darkBorderColor:
|
|
3030
|
-
darkDisabledBgColor:
|
|
3031
|
-
borderRadius:
|
|
3032
|
-
paddingX:
|
|
3033
|
-
paddingY:
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3113
|
+
const J = l, ue = e, {
|
|
3114
|
+
display: ae,
|
|
3115
|
+
ariaLabel: oe,
|
|
3116
|
+
ariaAttrs: B,
|
|
3117
|
+
theme: M,
|
|
3118
|
+
lightTextColor: Q,
|
|
3119
|
+
lightTextColorHover: le,
|
|
3120
|
+
lightButtonColor: G,
|
|
3121
|
+
lightButtonColorHover: ee,
|
|
3122
|
+
lightButtonShadowColor: ne,
|
|
3123
|
+
lightBorderColor: te,
|
|
3124
|
+
lightDisabledBgColor: q,
|
|
3125
|
+
darkTextColor: O,
|
|
3126
|
+
darkTextColorHover: I,
|
|
3127
|
+
darkButtonColor: T,
|
|
3128
|
+
darkButtonColorHover: V,
|
|
3129
|
+
darkButtonShadowColor: c,
|
|
3130
|
+
darkBorderColor: m,
|
|
3131
|
+
darkDisabledBgColor: v,
|
|
3132
|
+
borderRadius: h,
|
|
3133
|
+
paddingX: i,
|
|
3134
|
+
paddingY: C,
|
|
3135
|
+
marginTop: w,
|
|
3136
|
+
marginBottom: y,
|
|
3137
|
+
marginRight: _,
|
|
3138
|
+
marginLeft: R,
|
|
3139
|
+
disabled: N,
|
|
3140
|
+
fontFamily: D,
|
|
3141
|
+
fontSize: Y,
|
|
3142
|
+
fontWeight: E,
|
|
3143
|
+
lineHeight: L
|
|
3144
|
+
} = Ve(ue), r = t(() => {
|
|
3145
|
+
const j = N.value ? "component-disabled" : "", Se = ae.value !== "b" ? "inline-block" : "block", He = h.value !== 0 && !h.value || h.value < 0 ? 0 : h.value, Ie = i.value !== 0 && !i.value || i.value < 0 ? 1 : i.value, De = C.value !== 0 && !C.value || C.value < 0 ? 0.2 : C.value, Le = w.value !== 0 && !w.value || w.value < 0 ? 0 : w.value, ze = y.value !== 0 && !y.value || y.value < 0 ? 0 : y.value, Ye = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, Xe = R.value !== 0 && !R.value || R.value < 0 ? 0 : R.value, je = D.value ? D.value : "'Lato', sans-serif", Ee = Y.value ? Y.value : "1.6em", Fe = E.value !== 0 && !E.value || E.value < 0 ? 200 : E.value, Pe = L.value !== 0 && !L.value || L.value < 0 ? 1.42857143 : L.value;
|
|
3040
3146
|
return {
|
|
3041
|
-
disabled:
|
|
3042
|
-
display:
|
|
3043
|
-
borderRadius:
|
|
3044
|
-
paddingX:
|
|
3045
|
-
paddingY:
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3147
|
+
disabled: j,
|
|
3148
|
+
display: Se,
|
|
3149
|
+
borderRadius: He,
|
|
3150
|
+
paddingX: Ie,
|
|
3151
|
+
paddingY: De,
|
|
3152
|
+
marginTop: Le,
|
|
3153
|
+
marginBottom: ze,
|
|
3154
|
+
marginRight: Ye,
|
|
3155
|
+
marginLeft: Xe,
|
|
3156
|
+
font: je,
|
|
3157
|
+
fontSize: Ee,
|
|
3158
|
+
fontWeight: Fe,
|
|
3159
|
+
lineHeight: Pe
|
|
3049
3160
|
};
|
|
3050
|
-
}),
|
|
3051
|
-
display:
|
|
3052
|
-
})),
|
|
3053
|
-
const
|
|
3161
|
+
}), k = t(() => r.value.disabled), W = t(() => ({
|
|
3162
|
+
display: r.value.display
|
|
3163
|
+
})), P = t(() => {
|
|
3164
|
+
const j = r.value;
|
|
3054
3165
|
return {
|
|
3055
|
-
borderRadius: `${
|
|
3056
|
-
padding: `${
|
|
3057
|
-
lineHeight:
|
|
3058
|
-
fontSize:
|
|
3059
|
-
fontWeight:
|
|
3166
|
+
borderRadius: `${j.borderRadius}rem`,
|
|
3167
|
+
padding: `${j.paddingY}rem ${j.paddingX}rem`,
|
|
3168
|
+
lineHeight: j.lineHeight,
|
|
3169
|
+
fontSize: j.fontSize,
|
|
3170
|
+
fontWeight: j.fontWeight,
|
|
3171
|
+
marginTop: `${j.marginTop}px`,
|
|
3172
|
+
marginBottom: `${j.marginBottom}px`,
|
|
3173
|
+
marginRight: `${j.marginRight}px`,
|
|
3174
|
+
marginLeft: `${j.marginLeft}px`
|
|
3060
3175
|
};
|
|
3061
|
-
}),
|
|
3062
|
-
const
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3065
|
-
"aria-label":
|
|
3066
|
-
"aria-disabled":
|
|
3067
|
-
...
|
|
3176
|
+
}), A = t(() => r.value.font), X = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), f = t(() => Q.value), u = t(() => le.value), d = t(() => G.value), o = t(() => ee.value), s = t(() => `3px 3px 0 -1px ${ne.value}, 3px 3px 0 ${ne.value}`), S = t(() => `0 0 0 -1px ${ne.value}, 0 0 0 ${ne.value}`), b = t(() => te.value), U = t(() => q.value), de = t(() => O.value), H = t(() => I.value), g = t(() => T.value), p = t(() => V.value), K = t(() => `3px 3px 0 -1px ${c.value}, 3px 3px 0 ${c.value}`), $ = t(() => `0 0 0 -1px ${c.value}, 0 0 0 ${c.value}`), re = t(() => m.value), fe = t(() => v.value), ie = t(() => {
|
|
3177
|
+
const j = {};
|
|
3178
|
+
B.value && Object.keys(B.value).forEach((Ie) => j[`aria-${Ie}`] = B.value[Ie]);
|
|
3179
|
+
const Se = {
|
|
3180
|
+
"aria-label": oe.value,
|
|
3181
|
+
"aria-disabled": N.value,
|
|
3182
|
+
...j
|
|
3068
3183
|
};
|
|
3069
3184
|
return Object.fromEntries(
|
|
3070
|
-
Object.entries(
|
|
3185
|
+
Object.entries(Se).filter(([He, Ie]) => Ie != null)
|
|
3071
3186
|
);
|
|
3072
|
-
}),
|
|
3073
|
-
|
|
3187
|
+
}), Ce = (j) => {
|
|
3188
|
+
J("clicked", j);
|
|
3074
3189
|
};
|
|
3075
|
-
return (
|
|
3190
|
+
return (j, Se) => e.nbId ? (pe(), be("div", Be({
|
|
3076
3191
|
key: 0,
|
|
3077
|
-
class: ["nb-wrapper",
|
|
3078
|
-
style: [
|
|
3192
|
+
class: ["nb-wrapper", k.value],
|
|
3193
|
+
style: [W.value],
|
|
3079
3194
|
tabIndex: e.tabIndex,
|
|
3080
3195
|
role: "button",
|
|
3081
3196
|
title: e.title
|
|
3082
|
-
},
|
|
3083
|
-
onClick:
|
|
3197
|
+
}, ie.value, {
|
|
3198
|
+
onClick: Se[0] || (Se[0] = (He) => Ce(He)),
|
|
3084
3199
|
onKeydown: [
|
|
3085
|
-
|
|
3086
|
-
|
|
3200
|
+
Se[1] || (Se[1] = F(z((He) => !n(N) && e.hasTabIndexEnter && Ce(He), ["prevent"]), ["enter"])),
|
|
3201
|
+
Se[2] || (Se[2] = F(z((He) => !n(N) && e.hasTabIndexSpace && Ce(He), ["prevent"]), ["space"]))
|
|
3087
3202
|
]
|
|
3088
3203
|
}), [
|
|
3089
|
-
|
|
3204
|
+
se("div", {
|
|
3090
3205
|
id: e.nbId,
|
|
3091
|
-
class:
|
|
3092
|
-
style:
|
|
3206
|
+
class: ge(["nb-reset component", [X.value]]),
|
|
3207
|
+
style: ce([P.value])
|
|
3093
3208
|
}, [
|
|
3094
|
-
me(
|
|
3095
|
-
|
|
3209
|
+
me(j.$slots, "content", {}, () => [
|
|
3210
|
+
Se[3] || (Se[3] = he("Default Text"))
|
|
3096
3211
|
], !0)
|
|
3097
3212
|
], 14, Ca)
|
|
3098
|
-
], 16, ha)) :
|
|
3213
|
+
], 16, ha)) : ye("", !0);
|
|
3099
3214
|
}
|
|
3100
|
-
}), xa = /* @__PURE__ */
|
|
3215
|
+
}), xa = /* @__PURE__ */ Te(Sa, [["__scopeId", "data-v-caa365ef"]]);
|
|
3101
3216
|
const Ba = ["tabIndex", "title"], ka = ["id"], Va = /* @__PURE__ */ Object.assign({
|
|
3102
3217
|
name: "NbButtonUnderlineExpand",
|
|
3103
3218
|
inheritAttrs: !1
|
|
@@ -3112,8 +3227,8 @@ const Ba = ["tabIndex", "title"], ka = ["id"], Va = /* @__PURE__ */ Object.assig
|
|
|
3112
3227
|
type: String,
|
|
3113
3228
|
default: "b",
|
|
3114
3229
|
validator: (e = "b") => {
|
|
3115
|
-
const
|
|
3116
|
-
return ["b", "ib"].includes(
|
|
3230
|
+
const l = e ? e.toLowerCase() : "";
|
|
3231
|
+
return ["b", "ib"].includes(l);
|
|
3117
3232
|
}
|
|
3118
3233
|
},
|
|
3119
3234
|
tabIndex: {
|
|
@@ -3144,8 +3259,8 @@ const Ba = ["tabIndex", "title"], ka = ["id"], Va = /* @__PURE__ */ Object.assig
|
|
|
3144
3259
|
type: String,
|
|
3145
3260
|
default: "light",
|
|
3146
3261
|
validator: (e) => {
|
|
3147
|
-
const
|
|
3148
|
-
return ["light", "dark"].includes(
|
|
3262
|
+
const l = e ? e.toLowerCase() : "";
|
|
3263
|
+
return ["light", "dark"].includes(l);
|
|
3149
3264
|
}
|
|
3150
3265
|
},
|
|
3151
3266
|
// Cores do tema light
|
|
@@ -3224,6 +3339,10 @@ const Ba = ["tabIndex", "title"], ka = ["id"], Va = /* @__PURE__ */ Object.assig
|
|
|
3224
3339
|
default: 200,
|
|
3225
3340
|
validator: (e) => e || 200
|
|
3226
3341
|
},
|
|
3342
|
+
lineHeight: {
|
|
3343
|
+
type: Number,
|
|
3344
|
+
default: 1.42857143
|
|
3345
|
+
},
|
|
3227
3346
|
textAlign: {
|
|
3228
3347
|
type: String,
|
|
3229
3348
|
default: "middle",
|
|
@@ -3231,114 +3350,116 @@ const Ba = ["tabIndex", "title"], ka = ["id"], Va = /* @__PURE__ */ Object.assig
|
|
|
3231
3350
|
}
|
|
3232
3351
|
},
|
|
3233
3352
|
emits: ["clicked"],
|
|
3234
|
-
setup(e, { emit:
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
"
|
|
3238
|
-
"
|
|
3239
|
-
"
|
|
3240
|
-
|
|
3241
|
-
"
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
"
|
|
3245
|
-
"
|
|
3353
|
+
setup(e, { emit: l }) {
|
|
3354
|
+
ke((s) => ({
|
|
3355
|
+
"78c34386": Y.value,
|
|
3356
|
+
"13040aed": u.value,
|
|
3357
|
+
"4f63a5ba": L.value,
|
|
3358
|
+
"299e2d1b": k.value,
|
|
3359
|
+
b0a890bc: r.value,
|
|
3360
|
+
"2573a4e1": W.value,
|
|
3361
|
+
"5083c826": P.value,
|
|
3362
|
+
"633f6487": X.value,
|
|
3363
|
+
"179c38b6": A.value,
|
|
3364
|
+
"5b4830f5": f.value
|
|
3246
3365
|
}));
|
|
3247
|
-
const
|
|
3248
|
-
display:
|
|
3249
|
-
ariaLabel:
|
|
3250
|
-
ariaAttrs:
|
|
3251
|
-
theme:
|
|
3252
|
-
lightTextColor:
|
|
3253
|
-
lightTextColorHover:
|
|
3254
|
-
lightBorderColor:
|
|
3255
|
-
lightBorderColorHover:
|
|
3256
|
-
lightDisabledBgColor:
|
|
3257
|
-
darkTextColor:
|
|
3258
|
-
darkTextColorHover:
|
|
3259
|
-
darkBorderColor:
|
|
3260
|
-
darkBorderColorHover:
|
|
3261
|
-
darkDisabledBgColor:
|
|
3262
|
-
borderHeight:
|
|
3263
|
-
paddingX:
|
|
3264
|
-
paddingY:
|
|
3265
|
-
disabled:
|
|
3266
|
-
fontFamily:
|
|
3267
|
-
fontSize:
|
|
3268
|
-
fontWeight:
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3366
|
+
const J = l, ue = e, {
|
|
3367
|
+
display: ae,
|
|
3368
|
+
ariaLabel: oe,
|
|
3369
|
+
ariaAttrs: B,
|
|
3370
|
+
theme: M,
|
|
3371
|
+
lightTextColor: Q,
|
|
3372
|
+
lightTextColorHover: le,
|
|
3373
|
+
lightBorderColor: G,
|
|
3374
|
+
lightBorderColorHover: ee,
|
|
3375
|
+
lightDisabledBgColor: ne,
|
|
3376
|
+
darkTextColor: te,
|
|
3377
|
+
darkTextColorHover: q,
|
|
3378
|
+
darkBorderColor: O,
|
|
3379
|
+
darkBorderColorHover: I,
|
|
3380
|
+
darkDisabledBgColor: T,
|
|
3381
|
+
borderHeight: V,
|
|
3382
|
+
paddingX: c,
|
|
3383
|
+
paddingY: m,
|
|
3384
|
+
disabled: v,
|
|
3385
|
+
fontFamily: h,
|
|
3386
|
+
fontSize: i,
|
|
3387
|
+
fontWeight: C,
|
|
3388
|
+
lineHeight: w,
|
|
3389
|
+
textAlign: y
|
|
3390
|
+
} = Ve(ue), _ = t(() => {
|
|
3391
|
+
const s = v.value ? "component-disabled" : "", S = ae.value !== "b" ? "inline-block" : "block", b = V.value !== 0 && !V.value || V.value < 0 ? 1.5 : V.value, U = c.value !== 0 && !c.value || c.value < 0 ? 1 : c.value, de = m.value !== 0 && !m.value || m.value < 0 ? 0.2 : m.value, H = h.value ? h.value : "'Lato', sans-serif", g = i.value ? i.value : "1.6em", p = C.value !== 0 && !C.value || C.value < 0 ? 200 : C.value, K = w.value !== 0 && !w.value || w.value < 0 ? 1.42857143 : w.value, $ = y.value ? y.value : "center";
|
|
3272
3392
|
return {
|
|
3273
|
-
disabled:
|
|
3274
|
-
display:
|
|
3275
|
-
borderHeight:
|
|
3276
|
-
paddingX:
|
|
3277
|
-
paddingY:
|
|
3278
|
-
font:
|
|
3279
|
-
fontSize:
|
|
3280
|
-
fontWeight:
|
|
3281
|
-
|
|
3393
|
+
disabled: s,
|
|
3394
|
+
display: S,
|
|
3395
|
+
borderHeight: b,
|
|
3396
|
+
paddingX: U,
|
|
3397
|
+
paddingY: de,
|
|
3398
|
+
font: H,
|
|
3399
|
+
fontSize: g,
|
|
3400
|
+
fontWeight: p,
|
|
3401
|
+
lineHeight: K,
|
|
3402
|
+
textAlign: $
|
|
3282
3403
|
};
|
|
3283
|
-
}),
|
|
3284
|
-
const
|
|
3404
|
+
}), R = t(() => _.value.disabled), N = t(() => {
|
|
3405
|
+
const s = _.value;
|
|
3285
3406
|
return {
|
|
3286
|
-
display:
|
|
3287
|
-
textAlign:
|
|
3407
|
+
display: s.display,
|
|
3408
|
+
textAlign: s.textAlign
|
|
3288
3409
|
};
|
|
3289
3410
|
}), D = t(() => {
|
|
3290
|
-
const
|
|
3411
|
+
const s = _.value;
|
|
3291
3412
|
return {
|
|
3292
|
-
padding: `${
|
|
3293
|
-
lineHeight:
|
|
3294
|
-
fontSize:
|
|
3295
|
-
fontWeight:
|
|
3413
|
+
padding: `${s.paddingY}rem ${s.paddingX}rem`,
|
|
3414
|
+
lineHeight: s.lineHeight,
|
|
3415
|
+
fontSize: s.fontSize,
|
|
3416
|
+
fontWeight: s.fontWeight
|
|
3296
3417
|
};
|
|
3297
|
-
}),
|
|
3298
|
-
t(() =>
|
|
3299
|
-
const
|
|
3300
|
-
t(() =>
|
|
3301
|
-
const
|
|
3302
|
-
const
|
|
3303
|
-
|
|
3304
|
-
const
|
|
3305
|
-
"aria-label":
|
|
3306
|
-
"aria-disabled":
|
|
3307
|
-
...
|
|
3418
|
+
}), Y = t(() => _.value.font), E = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), L = t(() => Q.value), r = t(() => le.value), k = t(() => G.value), W = t(() => ee.value);
|
|
3419
|
+
t(() => ne.value);
|
|
3420
|
+
const P = t(() => te.value), A = t(() => q.value), X = t(() => O.value), f = t(() => I.value);
|
|
3421
|
+
t(() => T.value);
|
|
3422
|
+
const u = t(() => `${_.value.borderHeight}px`), d = t(() => {
|
|
3423
|
+
const s = {};
|
|
3424
|
+
B.value && Object.keys(B.value).forEach((U) => s[`aria-${U}`] = B.value[U]);
|
|
3425
|
+
const S = {
|
|
3426
|
+
"aria-label": oe.value,
|
|
3427
|
+
"aria-disabled": v.value,
|
|
3428
|
+
...s
|
|
3308
3429
|
};
|
|
3309
3430
|
return Object.fromEntries(
|
|
3310
|
-
Object.entries(
|
|
3431
|
+
Object.entries(S).filter(([b, U]) => U != null)
|
|
3311
3432
|
);
|
|
3312
|
-
}),
|
|
3313
|
-
|
|
3433
|
+
}), o = (s) => {
|
|
3434
|
+
J("clicked", s);
|
|
3314
3435
|
};
|
|
3315
|
-
return (
|
|
3436
|
+
return (s, S) => e.nbId ? (pe(), be("div", Be({
|
|
3316
3437
|
key: 0,
|
|
3317
|
-
class: ["nb-wrapper",
|
|
3318
|
-
style: [
|
|
3438
|
+
class: ["nb-wrapper", R.value],
|
|
3439
|
+
style: [N.value],
|
|
3319
3440
|
tabIndex: e.tabIndex,
|
|
3320
3441
|
role: "button",
|
|
3321
3442
|
title: e.title
|
|
3322
|
-
},
|
|
3323
|
-
onClick:
|
|
3443
|
+
}, d.value, {
|
|
3444
|
+
onClick: S[0] || (S[0] = (b) => o(b)),
|
|
3324
3445
|
onKeydown: [
|
|
3325
|
-
|
|
3326
|
-
|
|
3446
|
+
S[1] || (S[1] = F(z((b) => !n(v) && e.hasTabIndexEnter && o(b), ["prevent"]), ["enter"])),
|
|
3447
|
+
S[2] || (S[2] = F(z((b) => !n(v) && e.hasTabIndexSpace && o(b), ["prevent"]), ["space"]))
|
|
3327
3448
|
]
|
|
3328
3449
|
}), [
|
|
3329
|
-
|
|
3450
|
+
se("div", {
|
|
3330
3451
|
id: e.nbId,
|
|
3331
|
-
class:
|
|
3332
|
-
style:
|
|
3452
|
+
class: ge(["nb-reset component", [E.value]]),
|
|
3453
|
+
style: ce([D.value])
|
|
3333
3454
|
}, [
|
|
3334
|
-
me(
|
|
3335
|
-
|
|
3455
|
+
me(s.$slots, "content", {}, () => [
|
|
3456
|
+
S[3] || (S[3] = he("Default Text"))
|
|
3336
3457
|
], !0)
|
|
3337
3458
|
], 14, ka)
|
|
3338
|
-
], 16, Ba)) :
|
|
3459
|
+
], 16, Ba)) : ye("", !0);
|
|
3339
3460
|
}
|
|
3340
|
-
}), Ta = /* @__PURE__ */
|
|
3341
|
-
const
|
|
3461
|
+
}), Ta = /* @__PURE__ */ Te(Va, [["__scopeId", "data-v-95180f9a"]]);
|
|
3462
|
+
const Ha = ["tabIndex", "title"], Ia = ["id"], wa = /* @__PURE__ */ Object.assign({
|
|
3342
3463
|
name: "NbButtonUnderlineFill",
|
|
3343
3464
|
inheritAttrs: !1
|
|
3344
3465
|
}, {
|
|
@@ -3352,8 +3473,8 @@ const Ia = ["tabIndex", "title"], wa = ["id"], $a = /* @__PURE__ */ Object.assig
|
|
|
3352
3473
|
type: String,
|
|
3353
3474
|
default: "b",
|
|
3354
3475
|
validator: (e = "b") => {
|
|
3355
|
-
const
|
|
3356
|
-
return ["b", "ib"].includes(
|
|
3476
|
+
const l = e ? e.toLowerCase() : "";
|
|
3477
|
+
return ["b", "ib"].includes(l);
|
|
3357
3478
|
}
|
|
3358
3479
|
},
|
|
3359
3480
|
tabIndex: {
|
|
@@ -3384,8 +3505,8 @@ const Ia = ["tabIndex", "title"], wa = ["id"], $a = /* @__PURE__ */ Object.assig
|
|
|
3384
3505
|
type: String,
|
|
3385
3506
|
default: "light",
|
|
3386
3507
|
validator: (e) => {
|
|
3387
|
-
const
|
|
3388
|
-
return ["light", "dark"].includes(
|
|
3508
|
+
const l = e ? e.toLowerCase() : "";
|
|
3509
|
+
return ["light", "dark"].includes(l);
|
|
3389
3510
|
}
|
|
3390
3511
|
},
|
|
3391
3512
|
// Cores do tema light
|
|
@@ -3459,6 +3580,10 @@ const Ia = ["tabIndex", "title"], wa = ["id"], $a = /* @__PURE__ */ Object.assig
|
|
|
3459
3580
|
default: 200,
|
|
3460
3581
|
validator: (e) => e || 200
|
|
3461
3582
|
},
|
|
3583
|
+
lineHeight: {
|
|
3584
|
+
type: Number,
|
|
3585
|
+
default: 1.42857143
|
|
3586
|
+
},
|
|
3462
3587
|
textAlign: {
|
|
3463
3588
|
type: String,
|
|
3464
3589
|
default: "middle",
|
|
@@ -3466,111 +3591,113 @@ const Ia = ["tabIndex", "title"], wa = ["id"], $a = /* @__PURE__ */ Object.assig
|
|
|
3466
3591
|
}
|
|
3467
3592
|
},
|
|
3468
3593
|
emits: ["clicked"],
|
|
3469
|
-
setup(e, { emit:
|
|
3470
|
-
|
|
3471
|
-
"
|
|
3472
|
-
"
|
|
3473
|
-
"
|
|
3474
|
-
|
|
3475
|
-
"
|
|
3476
|
-
"
|
|
3477
|
-
|
|
3478
|
-
"
|
|
3479
|
-
"
|
|
3594
|
+
setup(e, { emit: l }) {
|
|
3595
|
+
ke((d) => ({
|
|
3596
|
+
"8cff8558": D.value,
|
|
3597
|
+
"753589c7": r.value,
|
|
3598
|
+
"6356162c": E.value,
|
|
3599
|
+
b8d15896: k.value,
|
|
3600
|
+
"1c47be70": L.value,
|
|
3601
|
+
"381a430f": A.value,
|
|
3602
|
+
51288174: W.value,
|
|
3603
|
+
"3a9b276d": X.value,
|
|
3604
|
+
"131d2028": P.value
|
|
3480
3605
|
}));
|
|
3481
|
-
const
|
|
3482
|
-
display:
|
|
3483
|
-
ariaLabel:
|
|
3484
|
-
ariaAttrs:
|
|
3485
|
-
theme:
|
|
3486
|
-
lightTextColor:
|
|
3487
|
-
lightTextColorHover:
|
|
3488
|
-
lightButtonColor:
|
|
3489
|
-
lightButtonColorHover:
|
|
3490
|
-
lightDisabledBgColor:
|
|
3491
|
-
darkTextColor:
|
|
3492
|
-
darkTextColorHover:
|
|
3493
|
-
darkButtonColor:
|
|
3494
|
-
darkButtonColorHover:
|
|
3495
|
-
darkDisabledBgColor:
|
|
3496
|
-
paddingX:
|
|
3497
|
-
paddingY:
|
|
3498
|
-
disabled:
|
|
3499
|
-
fontFamily:
|
|
3500
|
-
fontSize:
|
|
3501
|
-
fontWeight:
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3606
|
+
const J = l, ue = e, {
|
|
3607
|
+
display: ae,
|
|
3608
|
+
ariaLabel: oe,
|
|
3609
|
+
ariaAttrs: B,
|
|
3610
|
+
theme: M,
|
|
3611
|
+
lightTextColor: Q,
|
|
3612
|
+
lightTextColorHover: le,
|
|
3613
|
+
lightButtonColor: G,
|
|
3614
|
+
lightButtonColorHover: ee,
|
|
3615
|
+
lightDisabledBgColor: ne,
|
|
3616
|
+
darkTextColor: te,
|
|
3617
|
+
darkTextColorHover: q,
|
|
3618
|
+
darkButtonColor: O,
|
|
3619
|
+
darkButtonColorHover: I,
|
|
3620
|
+
darkDisabledBgColor: T,
|
|
3621
|
+
paddingX: V,
|
|
3622
|
+
paddingY: c,
|
|
3623
|
+
disabled: m,
|
|
3624
|
+
fontFamily: v,
|
|
3625
|
+
fontSize: h,
|
|
3626
|
+
fontWeight: i,
|
|
3627
|
+
lineHeight: C,
|
|
3628
|
+
textAlign: w
|
|
3629
|
+
} = Ve(ue), y = t(() => {
|
|
3630
|
+
const d = m.value ? "component-disabled" : "", o = ae.value !== "b" ? "inline-block" : "block", s = V.value !== 0 && !V.value || V.value < 0 ? 1 : V.value, S = c.value !== 0 && !c.value || c.value < 0 ? 0.2 : c.value, b = v.value ? v.value : "'Lato', sans-serif", U = h.value ? h.value : "1.6em", de = i.value !== 0 && !i.value || i.value < 0 ? 200 : i.value, H = C.value !== 0 && !C.value || C.value < 0 ? 1.42857143 : C.value, g = w.value ? w.value : "center";
|
|
3505
3631
|
return {
|
|
3506
|
-
disabled:
|
|
3507
|
-
display:
|
|
3508
|
-
paddingX:
|
|
3509
|
-
paddingY:
|
|
3510
|
-
font:
|
|
3511
|
-
fontSize:
|
|
3512
|
-
fontWeight:
|
|
3513
|
-
|
|
3632
|
+
disabled: d,
|
|
3633
|
+
display: o,
|
|
3634
|
+
paddingX: s,
|
|
3635
|
+
paddingY: S,
|
|
3636
|
+
font: b,
|
|
3637
|
+
fontSize: U,
|
|
3638
|
+
fontWeight: de,
|
|
3639
|
+
lineHeight: H,
|
|
3640
|
+
textAlign: g
|
|
3514
3641
|
};
|
|
3515
|
-
}),
|
|
3516
|
-
const
|
|
3642
|
+
}), _ = t(() => y.value.disabled), R = t(() => {
|
|
3643
|
+
const d = y.value;
|
|
3517
3644
|
return {
|
|
3518
|
-
display:
|
|
3519
|
-
textAlign:
|
|
3645
|
+
display: d.display,
|
|
3646
|
+
textAlign: d.textAlign
|
|
3520
3647
|
};
|
|
3521
|
-
}),
|
|
3522
|
-
const
|
|
3648
|
+
}), N = t(() => {
|
|
3649
|
+
const d = y.value;
|
|
3523
3650
|
return {
|
|
3524
|
-
padding: `${
|
|
3525
|
-
lineHeight:
|
|
3526
|
-
fontSize:
|
|
3527
|
-
fontWeight:
|
|
3651
|
+
padding: `${d.paddingY}rem ${d.paddingX}rem`,
|
|
3652
|
+
lineHeight: d.lineHeight,
|
|
3653
|
+
fontSize: d.fontSize,
|
|
3654
|
+
fontWeight: d.fontWeight
|
|
3528
3655
|
};
|
|
3529
|
-
}), D = t(() =>
|
|
3530
|
-
t(() =>
|
|
3531
|
-
const
|
|
3532
|
-
t(() =>
|
|
3533
|
-
const
|
|
3534
|
-
const
|
|
3535
|
-
|
|
3536
|
-
const
|
|
3537
|
-
"aria-label":
|
|
3538
|
-
"aria-disabled":
|
|
3539
|
-
...
|
|
3656
|
+
}), D = t(() => y.value.font), Y = t(() => M.value === "dark" ? "component__theme--dark" : "component__theme--light"), E = t(() => Q.value), L = t(() => le.value), r = t(() => `linear-gradient(${G.value}, ${G.value}) center bottom / 1px 1px repeat-x`), k = t(() => `linear-gradient(${ee.value}, ${ee.value}) center bottom / 100% 100% repeat-x`);
|
|
3657
|
+
t(() => ne.value);
|
|
3658
|
+
const W = t(() => te.value), P = t(() => q.value), A = t(() => `linear-gradient(${O.value}, ${O.value}) center bottom / 1px 1px repeat-x`), X = t(() => `linear-gradient(${I.value}, ${I.value}) center bottom / 100% 100% repeat-x`);
|
|
3659
|
+
t(() => T.value);
|
|
3660
|
+
const f = t(() => {
|
|
3661
|
+
const d = {};
|
|
3662
|
+
B.value && Object.keys(B.value).forEach((S) => d[`aria-${S}`] = B.value[S]);
|
|
3663
|
+
const o = {
|
|
3664
|
+
"aria-label": oe.value,
|
|
3665
|
+
"aria-disabled": m.value,
|
|
3666
|
+
...d
|
|
3540
3667
|
};
|
|
3541
3668
|
return Object.fromEntries(
|
|
3542
|
-
Object.entries(
|
|
3669
|
+
Object.entries(o).filter(([s, S]) => S != null)
|
|
3543
3670
|
);
|
|
3544
|
-
}),
|
|
3545
|
-
|
|
3671
|
+
}), u = (d) => {
|
|
3672
|
+
J("clicked", d);
|
|
3546
3673
|
};
|
|
3547
|
-
return (
|
|
3674
|
+
return (d, o) => e.nbId ? (pe(), be("div", Be({
|
|
3548
3675
|
key: 0,
|
|
3549
|
-
class: ["nb-wrapper",
|
|
3550
|
-
style: [
|
|
3676
|
+
class: ["nb-wrapper", _.value],
|
|
3677
|
+
style: [R.value],
|
|
3551
3678
|
tabIndex: e.tabIndex,
|
|
3552
3679
|
role: "button",
|
|
3553
3680
|
title: e.title
|
|
3554
|
-
},
|
|
3555
|
-
onClick:
|
|
3681
|
+
}, f.value, {
|
|
3682
|
+
onClick: o[0] || (o[0] = (s) => u(s)),
|
|
3556
3683
|
onKeydown: [
|
|
3557
|
-
|
|
3558
|
-
|
|
3684
|
+
o[1] || (o[1] = F(z((s) => !n(m) && e.hasTabIndexEnter && u(s), ["prevent"]), ["enter"])),
|
|
3685
|
+
o[2] || (o[2] = F(z((s) => !n(m) && e.hasTabIndexSpace && u(s), ["prevent"]), ["space"]))
|
|
3559
3686
|
]
|
|
3560
3687
|
}), [
|
|
3561
|
-
|
|
3688
|
+
se("div", {
|
|
3562
3689
|
id: e.nbId,
|
|
3563
|
-
class:
|
|
3564
|
-
style:
|
|
3690
|
+
class: ge(["nb-reset component", [Y.value]]),
|
|
3691
|
+
style: ce([N.value])
|
|
3565
3692
|
}, [
|
|
3566
|
-
me(
|
|
3567
|
-
|
|
3693
|
+
me(d.$slots, "content", {}, () => [
|
|
3694
|
+
o[3] || (o[3] = he("Default Text"))
|
|
3568
3695
|
], !0)
|
|
3569
|
-
], 14,
|
|
3570
|
-
], 16,
|
|
3696
|
+
], 14, Ia)
|
|
3697
|
+
], 16, Ha)) : ye("", !0);
|
|
3571
3698
|
}
|
|
3572
|
-
}),
|
|
3573
|
-
const
|
|
3699
|
+
}), Na = /* @__PURE__ */ Te(wa, [["__scopeId", "data-v-f18823be"]]);
|
|
3700
|
+
const $a = ["id"], Da = ["disabled", "title", "aria-label", "aria-haspopup", "aria-expanded", "tabindex"], La = ["aria-expanded", "title", "tabindex"], Aa = ["disabled", "tabindex", "onClick", "onKeydown"], Oa = {
|
|
3574
3701
|
key: 0,
|
|
3575
3702
|
class: "split-button__menu-item-icon"
|
|
3576
3703
|
}, _a = { class: "split-button__menu-item-text" }, Ra = /* @__PURE__ */ Object.assign({
|
|
@@ -3587,8 +3714,8 @@ const Na = ["id"], Ha = ["disabled", "title", "aria-label", "aria-haspopup", "ar
|
|
|
3587
3714
|
type: String,
|
|
3588
3715
|
default: "ib",
|
|
3589
3716
|
validator: (e = "ib") => {
|
|
3590
|
-
const
|
|
3591
|
-
return ["b", "ib"].includes(
|
|
3717
|
+
const l = e ? e.toLowerCase() : "";
|
|
3718
|
+
return ["b", "ib"].includes(l);
|
|
3592
3719
|
}
|
|
3593
3720
|
},
|
|
3594
3721
|
mainButtonText: {
|
|
@@ -3603,7 +3730,7 @@ const Na = ["id"], Ha = ["disabled", "title", "aria-label", "aria-haspopup", "ar
|
|
|
3603
3730
|
type: Array,
|
|
3604
3731
|
default: () => [],
|
|
3605
3732
|
validator: (e) => Array.isArray(e) && e.every(
|
|
3606
|
-
(
|
|
3733
|
+
(l) => typeof l == "object" && l !== null && "label" in l
|
|
3607
3734
|
)
|
|
3608
3735
|
},
|
|
3609
3736
|
popupButtonTitle: {
|
|
@@ -3804,363 +3931,363 @@ const Na = ["id"], Ha = ["disabled", "title", "aria-label", "aria-haspopup", "ar
|
|
|
3804
3931
|
}
|
|
3805
3932
|
},
|
|
3806
3933
|
emits: ["clicked", "main-clicked", "menu-item-clicked"],
|
|
3807
|
-
setup(e, { emit:
|
|
3808
|
-
|
|
3809
|
-
"1e00f617":
|
|
3810
|
-
"27f37d08":
|
|
3811
|
-
"11bfe574":
|
|
3812
|
-
"0d4709fa":
|
|
3813
|
-
ca8c2e74:
|
|
3814
|
-
"2b089e66":
|
|
3815
|
-
"0f1d7c32":
|
|
3934
|
+
setup(e, { emit: l }) {
|
|
3935
|
+
ke((a) => ({
|
|
3936
|
+
"1e00f617": j.value.font,
|
|
3937
|
+
"27f37d08": n(H),
|
|
3938
|
+
"11bfe574": n(X),
|
|
3939
|
+
"0d4709fa": n(o),
|
|
3940
|
+
ca8c2e74: n(g),
|
|
3941
|
+
"2b089e66": n(L),
|
|
3942
|
+
"0f1d7c32": n(f)
|
|
3816
3943
|
}));
|
|
3817
|
-
const
|
|
3818
|
-
display:
|
|
3819
|
-
mainButtonText:
|
|
3820
|
-
mainButtonAriaLabel:
|
|
3821
|
-
menuItems:
|
|
3822
|
-
popupButtonTitle:
|
|
3823
|
-
ariaLabel:
|
|
3824
|
-
ariaAttrs:
|
|
3825
|
-
menuItemFocusOutlineColor:
|
|
3826
|
-
menuItemFocusOutlineWidth:
|
|
3827
|
-
menuItemFocusOutlineOffset:
|
|
3828
|
-
showBorder:
|
|
3829
|
-
showPopupButton:
|
|
3830
|
-
borderRadius:
|
|
3831
|
-
popupBorderRadius:
|
|
3832
|
-
width:
|
|
3833
|
-
paddingX:
|
|
3834
|
-
paddingY:
|
|
3835
|
-
popupPaddingX:
|
|
3836
|
-
popupPaddingY:
|
|
3837
|
-
disabled:
|
|
3838
|
-
fontFamily:
|
|
3839
|
-
fontSize:
|
|
3840
|
-
fontWeight:
|
|
3841
|
-
popupFontFamily:
|
|
3842
|
-
popupFontSize:
|
|
3843
|
-
popupFontWeight:
|
|
3844
|
-
theme:
|
|
3845
|
-
lightButtonColor:
|
|
3846
|
-
lightButtonColorHover:
|
|
3847
|
-
lightTextColor:
|
|
3848
|
-
lightTextColorHover:
|
|
3849
|
-
lightBorderColor:
|
|
3850
|
-
lightBorderColorHover:
|
|
3851
|
-
lightPopupBgColor:
|
|
3852
|
-
lightMenuItemHoverColor:
|
|
3853
|
-
lightMenuItemTextColor:
|
|
3854
|
-
lightDisabledBgColor:
|
|
3855
|
-
darkButtonColor:
|
|
3856
|
-
darkButtonColorHover:
|
|
3857
|
-
darkTextColor:
|
|
3858
|
-
darkTextColorHover:
|
|
3859
|
-
darkBorderColor:
|
|
3860
|
-
darkBorderColorHover:
|
|
3861
|
-
darkPopupBgColor:
|
|
3862
|
-
darkMenuItemHoverColor:
|
|
3863
|
-
darkMenuItemTextColor:
|
|
3864
|
-
darkDisabledBgColor:
|
|
3865
|
-
} =
|
|
3866
|
-
const
|
|
3944
|
+
const J = l, ue = e, {
|
|
3945
|
+
display: ae,
|
|
3946
|
+
mainButtonText: oe,
|
|
3947
|
+
mainButtonAriaLabel: B,
|
|
3948
|
+
menuItems: M,
|
|
3949
|
+
popupButtonTitle: Q,
|
|
3950
|
+
ariaLabel: le,
|
|
3951
|
+
ariaAttrs: G,
|
|
3952
|
+
menuItemFocusOutlineColor: ee,
|
|
3953
|
+
menuItemFocusOutlineWidth: ne,
|
|
3954
|
+
menuItemFocusOutlineOffset: te,
|
|
3955
|
+
showBorder: q,
|
|
3956
|
+
showPopupButton: O,
|
|
3957
|
+
borderRadius: I,
|
|
3958
|
+
popupBorderRadius: T,
|
|
3959
|
+
width: V,
|
|
3960
|
+
paddingX: c,
|
|
3961
|
+
paddingY: m,
|
|
3962
|
+
popupPaddingX: v,
|
|
3963
|
+
popupPaddingY: h,
|
|
3964
|
+
disabled: i,
|
|
3965
|
+
fontFamily: C,
|
|
3966
|
+
fontSize: w,
|
|
3967
|
+
fontWeight: y,
|
|
3968
|
+
popupFontFamily: _,
|
|
3969
|
+
popupFontSize: R,
|
|
3970
|
+
popupFontWeight: N,
|
|
3971
|
+
theme: D,
|
|
3972
|
+
lightButtonColor: Y,
|
|
3973
|
+
lightButtonColorHover: E,
|
|
3974
|
+
lightTextColor: L,
|
|
3975
|
+
lightTextColorHover: r,
|
|
3976
|
+
lightBorderColor: k,
|
|
3977
|
+
lightBorderColorHover: W,
|
|
3978
|
+
lightPopupBgColor: P,
|
|
3979
|
+
lightMenuItemHoverColor: A,
|
|
3980
|
+
lightMenuItemTextColor: X,
|
|
3981
|
+
lightDisabledBgColor: f,
|
|
3982
|
+
darkButtonColor: u,
|
|
3983
|
+
darkButtonColorHover: d,
|
|
3984
|
+
darkTextColor: o,
|
|
3985
|
+
darkTextColorHover: s,
|
|
3986
|
+
darkBorderColor: S,
|
|
3987
|
+
darkBorderColorHover: b,
|
|
3988
|
+
darkPopupBgColor: U,
|
|
3989
|
+
darkMenuItemHoverColor: de,
|
|
3990
|
+
darkMenuItemTextColor: H,
|
|
3991
|
+
darkDisabledBgColor: g
|
|
3992
|
+
} = Ve(ue), p = we(!1), K = we(null), $ = we(null), re = we(null), fe = we(null), ie = we(-1), Ce = we(!1), j = t(() => {
|
|
3993
|
+
const a = i.value ? "component-disabled" : "", x = ae.value !== "b" ? "inline-block" : "block", Z = I.value !== 0 && !I.value || I.value < 0 ? 0 : I.value, ve = T.value !== null && T.value !== void 0 ? T.value < 0 ? 0 : T.value : Z, xe = [!1, !0].includes(q.value) ? q.value : !0, Ne = [!1, !0].includes(O.value) ? O.value : !0, $e = ee.value || "currentColor", Ae = ne.value || "2px", qe = te.value || "-2px", Ze = c.value !== 0 && !c.value || c.value < 0 ? 1 : c.value, et = m.value !== 0 && !m.value || m.value < 0 ? 0.32 : m.value, ft = v.value !== null && v.value !== void 0 ? v.value < 0 ? 1 : v.value : Ze, ct = h.value !== null && h.value !== void 0 ? h.value < 0 ? 0.2 : h.value : et, tt = C.value ? C.value : "'Lato', sans-serif", at = w.value ? w.value : "1.6em", lt = y.value !== 0 && !y.value || y.value < 0 ? 400 : y.value, vt = _.value || tt, pt = R.value || at, bt = N.value !== null && N.value !== void 0 ? N.value < 0 ? 400 : N.value : lt, gt = D.value ? D.value : "light";
|
|
3867
3994
|
return {
|
|
3868
|
-
disabled:
|
|
3869
|
-
display:
|
|
3870
|
-
showBorder:
|
|
3871
|
-
showPopupButton:
|
|
3872
|
-
borderRadius:
|
|
3873
|
-
popupBorderRadius:
|
|
3874
|
-
menuItemFocusOutlineColor:
|
|
3875
|
-
menuItemFocusOutlineWidth:
|
|
3876
|
-
menuItemFocusOutlineOffset:
|
|
3877
|
-
paddingX:
|
|
3878
|
-
paddingY:
|
|
3995
|
+
disabled: a,
|
|
3996
|
+
display: x,
|
|
3997
|
+
showBorder: xe,
|
|
3998
|
+
showPopupButton: Ne,
|
|
3999
|
+
borderRadius: Z,
|
|
4000
|
+
popupBorderRadius: ve,
|
|
4001
|
+
menuItemFocusOutlineColor: $e,
|
|
4002
|
+
menuItemFocusOutlineWidth: Ae,
|
|
4003
|
+
menuItemFocusOutlineOffset: qe,
|
|
4004
|
+
paddingX: Ze,
|
|
4005
|
+
paddingY: et,
|
|
3879
4006
|
popupPaddingX: ft,
|
|
3880
4007
|
popupPaddingY: ct,
|
|
3881
|
-
font:
|
|
3882
|
-
fontSize:
|
|
3883
|
-
fontWeight:
|
|
4008
|
+
font: tt,
|
|
4009
|
+
fontSize: at,
|
|
4010
|
+
fontWeight: lt,
|
|
3884
4011
|
popupFont: vt,
|
|
3885
4012
|
popupFontSize: pt,
|
|
3886
4013
|
popupFontWeight: bt,
|
|
3887
4014
|
theme: gt
|
|
3888
4015
|
};
|
|
3889
|
-
}),
|
|
3890
|
-
switch (
|
|
4016
|
+
}), Se = t(() => {
|
|
4017
|
+
switch (j.value.theme) {
|
|
3891
4018
|
case "dark":
|
|
3892
4019
|
return "component__theme--dark";
|
|
3893
4020
|
default:
|
|
3894
4021
|
return "component__theme--light";
|
|
3895
4022
|
}
|
|
3896
|
-
}),
|
|
3897
|
-
display:
|
|
3898
|
-
})),
|
|
3899
|
-
const
|
|
4023
|
+
}), He = t(() => j.value.disabled), Ie = t(() => ({
|
|
4024
|
+
display: j.value.display
|
|
4025
|
+
})), De = t(() => {
|
|
4026
|
+
const a = j.value, x = a.display === "block" ? {} : { width: V.value ? `${V.value}px` : "auto" };
|
|
3900
4027
|
return {
|
|
3901
|
-
borderRadius: `${
|
|
4028
|
+
borderRadius: `${a.borderRadius}rem`,
|
|
3902
4029
|
overflow: "visible",
|
|
3903
4030
|
position: "relative",
|
|
3904
|
-
...
|
|
4031
|
+
...x
|
|
3905
4032
|
};
|
|
3906
|
-
}),
|
|
3907
|
-
const
|
|
3908
|
-
borderTopLeftRadius: `${
|
|
3909
|
-
borderBottomLeftRadius: `${
|
|
4033
|
+
}), Le = t(() => {
|
|
4034
|
+
const a = j.value, x = V.value ? `${V.value}px` : "auto", Z = a.showPopupButton ? {
|
|
4035
|
+
borderTopLeftRadius: `${a.borderRadius}rem`,
|
|
4036
|
+
borderBottomLeftRadius: `${a.borderRadius}rem`,
|
|
3910
4037
|
borderTopRightRadius: "0",
|
|
3911
4038
|
borderBottomRightRadius: "0"
|
|
3912
4039
|
} : {
|
|
3913
|
-
borderRadius: `${
|
|
3914
|
-
},
|
|
3915
|
-
borderTop: `1px solid ${
|
|
3916
|
-
borderBottom: `1px solid ${
|
|
3917
|
-
borderLeft: `1px solid ${
|
|
4040
|
+
borderRadius: `${a.borderRadius}rem`
|
|
4041
|
+
}, ve = a.showBorder ? a.showPopupButton ? {
|
|
4042
|
+
borderTop: `1px solid ${a.theme === "dark" ? S.value : k.value}`,
|
|
4043
|
+
borderBottom: `1px solid ${a.theme === "dark" ? S.value : k.value}`,
|
|
4044
|
+
borderLeft: `1px solid ${a.theme === "dark" ? S.value : k.value}`,
|
|
3918
4045
|
borderRight: "none"
|
|
3919
4046
|
} : {
|
|
3920
|
-
border: `1px solid ${
|
|
3921
|
-
} : { border: "none" },
|
|
4047
|
+
border: `1px solid ${a.theme === "dark" ? S.value : k.value}`
|
|
4048
|
+
} : { border: "none" }, xe = a.theme === "dark" ? u.value : Y.value, Ne = a.theme === "dark" ? o.value : L.value, $e = a.theme === "dark" ? d.value : E.value, Ae = a.theme === "dark" ? s.value : r.value, qe = a.theme === "dark" ? b.value : W.value;
|
|
3922
4049
|
return {
|
|
3923
|
-
color:
|
|
3924
|
-
backgroundColor:
|
|
3925
|
-
padding: `${
|
|
4050
|
+
color: Ne,
|
|
4051
|
+
backgroundColor: xe,
|
|
4052
|
+
padding: `${a.paddingY}rem ${a.paddingX}rem`,
|
|
3926
4053
|
lineHeight: "1.42857143",
|
|
3927
|
-
fontSize:
|
|
3928
|
-
fontWeight:
|
|
3929
|
-
fontFamily:
|
|
3930
|
-
...
|
|
3931
|
-
...
|
|
3932
|
-
minWidth:
|
|
3933
|
-
"--main-button-hover-color":
|
|
3934
|
-
"--main-button-active-color":
|
|
3935
|
-
"--main-text-hover-color":
|
|
3936
|
-
"--main-border-hover-color":
|
|
4054
|
+
fontSize: a.fontSize,
|
|
4055
|
+
fontWeight: a.fontWeight,
|
|
4056
|
+
fontFamily: a.font,
|
|
4057
|
+
...ve,
|
|
4058
|
+
...Z,
|
|
4059
|
+
minWidth: x === "auto" ? "33px" : x,
|
|
4060
|
+
"--main-button-hover-color": $e,
|
|
4061
|
+
"--main-button-active-color": $e,
|
|
4062
|
+
"--main-text-hover-color": Ae,
|
|
4063
|
+
"--main-border-hover-color": qe
|
|
3937
4064
|
};
|
|
3938
|
-
}),
|
|
3939
|
-
const
|
|
3940
|
-
borderTop: `1px solid ${
|
|
3941
|
-
borderBottom: `1px solid ${
|
|
3942
|
-
borderRight: `1px solid ${
|
|
3943
|
-
borderLeft: `1px solid ${
|
|
3944
|
-
} : { border: "none" },
|
|
4065
|
+
}), ze = t(() => {
|
|
4066
|
+
const a = j.value, x = a.theme === "dark" ? S.value : k.value, Z = a.showBorder ? {
|
|
4067
|
+
borderTop: `1px solid ${x}`,
|
|
4068
|
+
borderBottom: `1px solid ${x}`,
|
|
4069
|
+
borderRight: `1px solid ${x}`,
|
|
4070
|
+
borderLeft: `1px solid ${x}`
|
|
4071
|
+
} : { border: "none" }, ve = a.theme === "dark" ? u.value : Y.value, xe = a.theme === "dark" ? o.value : L.value, Ne = a.theme === "dark" ? d.value : E.value, $e = a.theme === "dark" ? s.value : r.value, Ae = a.theme === "dark" ? b.value : W.value;
|
|
3945
4072
|
return {
|
|
3946
|
-
color:
|
|
3947
|
-
backgroundColor:
|
|
3948
|
-
padding: `${
|
|
3949
|
-
fontSize:
|
|
3950
|
-
fontWeight:
|
|
3951
|
-
fontFamily:
|
|
3952
|
-
...
|
|
3953
|
-
borderTopRightRadius: `${
|
|
3954
|
-
borderBottomRightRadius: `${
|
|
4073
|
+
color: xe,
|
|
4074
|
+
backgroundColor: ve,
|
|
4075
|
+
padding: `${a.paddingY}rem ${a.paddingX * 0.5}rem`,
|
|
4076
|
+
fontSize: a.fontSize,
|
|
4077
|
+
fontWeight: a.fontWeight,
|
|
4078
|
+
fontFamily: a.font,
|
|
4079
|
+
...Z,
|
|
4080
|
+
borderTopRightRadius: `${a.borderRadius}rem`,
|
|
4081
|
+
borderBottomRightRadius: `${a.borderRadius}rem`,
|
|
3955
4082
|
borderTopLeftRadius: "0",
|
|
3956
4083
|
borderBottomLeftRadius: "0",
|
|
3957
|
-
"--popup-button-hover-color":
|
|
3958
|
-
"--popup-button-active-color":
|
|
3959
|
-
"--popup-text-hover-color":
|
|
3960
|
-
"--popup-border-hover-color":
|
|
4084
|
+
"--popup-button-hover-color": Ne,
|
|
4085
|
+
"--popup-button-active-color": Ne,
|
|
4086
|
+
"--popup-text-hover-color": $e,
|
|
4087
|
+
"--popup-border-hover-color": Ae
|
|
3961
4088
|
};
|
|
3962
|
-
}),
|
|
3963
|
-
const
|
|
4089
|
+
}), Ye = t(() => {
|
|
4090
|
+
const a = j.value, x = a.theme === "dark" ? U.value : P.value, Z = a.theme === "dark" ? H.value : X.value, ve = a.theme === "dark" ? de.value : A.value;
|
|
3964
4091
|
return {
|
|
3965
|
-
backgroundColor:
|
|
3966
|
-
color:
|
|
3967
|
-
borderRadius: `${
|
|
4092
|
+
backgroundColor: x,
|
|
4093
|
+
color: Z,
|
|
4094
|
+
borderRadius: `${a.popupBorderRadius}rem`,
|
|
3968
4095
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
3969
|
-
minHeight:
|
|
3970
|
-
"--menu-item-hover-color":
|
|
3971
|
-
"--menu-item-focus-outline-color":
|
|
3972
|
-
"--menu-item-focus-outline-width":
|
|
3973
|
-
"--menu-item-focus-outline-offset":
|
|
4096
|
+
minHeight: M.value.length === 0 ? "40px" : "auto",
|
|
4097
|
+
"--menu-item-hover-color": ve,
|
|
4098
|
+
"--menu-item-focus-outline-color": a.menuItemFocusOutlineColor,
|
|
4099
|
+
"--menu-item-focus-outline-width": a.menuItemFocusOutlineWidth,
|
|
4100
|
+
"--menu-item-focus-outline-offset": a.menuItemFocusOutlineOffset
|
|
3974
4101
|
};
|
|
3975
|
-
}),
|
|
3976
|
-
fontSize:
|
|
3977
|
-
fontWeight:
|
|
3978
|
-
fontFamily:
|
|
3979
|
-
padding: `${
|
|
4102
|
+
}), Xe = t(() => j.value.popupFont), je = t(() => j.value.popupFontSize), Ee = t(() => j.value.popupFontWeight), Fe = t(() => j.value.popupPaddingX), Pe = t(() => j.value.popupPaddingY), ot = t(() => ({
|
|
4103
|
+
fontSize: je.value,
|
|
4104
|
+
fontWeight: Ee.value,
|
|
4105
|
+
fontFamily: Xe.value,
|
|
4106
|
+
padding: `${Pe.value}rem ${Fe.value}rem`
|
|
3980
4107
|
}));
|
|
3981
4108
|
t(() => {
|
|
3982
|
-
const
|
|
3983
|
-
|
|
3984
|
-
const
|
|
3985
|
-
"aria-label":
|
|
3986
|
-
"aria-disabled":
|
|
3987
|
-
...
|
|
4109
|
+
const a = {};
|
|
4110
|
+
G.value && Object.keys(G.value).forEach((ve) => a[`aria-${ve}`] = G.value[ve]);
|
|
4111
|
+
const x = {
|
|
4112
|
+
"aria-label": le.value,
|
|
4113
|
+
"aria-disabled": i.value,
|
|
4114
|
+
...a
|
|
3988
4115
|
};
|
|
3989
4116
|
return Object.fromEntries(
|
|
3990
|
-
Object.entries(
|
|
4117
|
+
Object.entries(x).filter(([Z, ve]) => ve != null)
|
|
3991
4118
|
);
|
|
3992
4119
|
});
|
|
3993
4120
|
const nt = () => {
|
|
3994
4121
|
document.dispatchEvent(new CustomEvent("splitbutton:close-all", {
|
|
3995
|
-
detail: { excludeId:
|
|
4122
|
+
detail: { excludeId: ue.nbId }
|
|
3996
4123
|
}));
|
|
3997
|
-
},
|
|
3998
|
-
var
|
|
3999
|
-
((
|
|
4000
|
-
},
|
|
4001
|
-
|
|
4002
|
-
if (
|
|
4003
|
-
const
|
|
4004
|
-
if (
|
|
4005
|
-
const
|
|
4006
|
-
(
|
|
4124
|
+
}, Je = (a) => {
|
|
4125
|
+
var x;
|
|
4126
|
+
((x = a.detail) == null ? void 0 : x.excludeId) !== ue.nbId && p.value && (p.value = !1, ie.value = -1, re.value && re.value.setAttribute("aria-expanded", "false"));
|
|
4127
|
+
}, Oe = () => {
|
|
4128
|
+
i.value || (p.value || nt(), Ce.value = !0, p.value = !p.value, p.value ? Re(() => {
|
|
4129
|
+
if (fe.value) {
|
|
4130
|
+
const a = fe.value.querySelectorAll("button:not([disabled])");
|
|
4131
|
+
if (a && a.length > 0) {
|
|
4132
|
+
const x = document.activeElement;
|
|
4133
|
+
(x === re.value || x === $.value) && a[0].focus(), ie.value = 0;
|
|
4007
4134
|
}
|
|
4008
4135
|
}
|
|
4009
4136
|
setTimeout(() => {
|
|
4010
|
-
|
|
4137
|
+
Ce.value = !1;
|
|
4011
4138
|
}, 10);
|
|
4012
|
-
}) : (
|
|
4013
|
-
},
|
|
4014
|
-
if (!
|
|
4015
|
-
if (!
|
|
4016
|
-
|
|
4139
|
+
}) : (ie.value = -1, Ce.value = !1));
|
|
4140
|
+
}, Ke = (a) => {
|
|
4141
|
+
if (!i.value) {
|
|
4142
|
+
if (!O.value && M.value.length > 0) {
|
|
4143
|
+
Oe();
|
|
4017
4144
|
return;
|
|
4018
4145
|
}
|
|
4019
|
-
|
|
4146
|
+
J("main-clicked"), J("clicked", { type: "main" }, a);
|
|
4020
4147
|
}
|
|
4021
|
-
},
|
|
4022
|
-
|
|
4148
|
+
}, Me = (a, x, Z) => {
|
|
4149
|
+
a.disabled || i.value || (J("menu-item-clicked", { item: a, index: x }), J("clicked", { type: "menu-item", item: a, index: x }, Z), p.value = !1, ie.value = -1);
|
|
4023
4150
|
}, rt = () => {
|
|
4024
|
-
|
|
4025
|
-
}, ut = (
|
|
4026
|
-
var
|
|
4027
|
-
|
|
4028
|
-
}, dt = (
|
|
4029
|
-
var
|
|
4030
|
-
p.value && !((
|
|
4031
|
-
},
|
|
4032
|
-
(
|
|
4033
|
-
}, it = (
|
|
4034
|
-
|
|
4035
|
-
var
|
|
4036
|
-
const
|
|
4037
|
-
|
|
4151
|
+
re.value && re.value.setAttribute("aria-expanded", "true");
|
|
4152
|
+
}, ut = (a) => {
|
|
4153
|
+
var x;
|
|
4154
|
+
fe.value && !fe.value.contains(a.relatedTarget) && !((x = K.value) != null && x.contains(a.relatedTarget)) && (re.value && re.value.setAttribute("aria-expanded", "false"), p.value = !1, ie.value = -1);
|
|
4155
|
+
}, dt = (a) => {
|
|
4156
|
+
var x;
|
|
4157
|
+
p.value && !((x = K.value) != null && x.contains(a.relatedTarget)) && (p.value = !1, ie.value = -1, re.value && re.value.setAttribute("aria-expanded", "false"));
|
|
4158
|
+
}, _e = (a) => {
|
|
4159
|
+
(a.code === "Escape" || a.code === "Backspace") && p.value && (p.value = !1, ie.value = -1, !O.value && $.value ? $.value.focus() : re.value && re.value.focus());
|
|
4160
|
+
}, it = (a) => {
|
|
4161
|
+
a > 0 && (ie.value = a - 1, Re(() => {
|
|
4162
|
+
var Z;
|
|
4163
|
+
const x = (Z = fe.value) == null ? void 0 : Z.querySelectorAll("button:not([disabled])");
|
|
4164
|
+
x && x[ie.value] && x[ie.value].focus();
|
|
4038
4165
|
}));
|
|
4039
|
-
}, st = (
|
|
4040
|
-
var
|
|
4041
|
-
const
|
|
4042
|
-
|
|
4043
|
-
|
|
4166
|
+
}, st = (a) => {
|
|
4167
|
+
var Z;
|
|
4168
|
+
const x = (Z = fe.value) == null ? void 0 : Z.querySelectorAll("button:not([disabled])");
|
|
4169
|
+
x && a < x.length - 1 && (ie.value = a + 1, Re(() => {
|
|
4170
|
+
x[ie.value] && x[ie.value].focus();
|
|
4044
4171
|
}));
|
|
4045
|
-
},
|
|
4046
|
-
var
|
|
4047
|
-
if (
|
|
4172
|
+
}, Qe = (a) => {
|
|
4173
|
+
var ve, xe;
|
|
4174
|
+
if (Ce.value || !p.value || (ve = K.value) != null && ve.contains(a.target))
|
|
4048
4175
|
return;
|
|
4049
|
-
const
|
|
4050
|
-
((
|
|
4176
|
+
const x = a.target;
|
|
4177
|
+
((xe = x.closest) == null ? void 0 : xe.call(x, ".nb-split-button")) !== K.value && (p.value = !1, ie.value = -1, re.value && re.value.setAttribute("aria-expanded", "false"));
|
|
4051
4178
|
};
|
|
4052
|
-
return
|
|
4053
|
-
|
|
4054
|
-
document.addEventListener("click",
|
|
4179
|
+
return Ge(() => {
|
|
4180
|
+
Re(() => {
|
|
4181
|
+
document.addEventListener("click", Qe, !1), document.addEventListener("splitbutton:close-all", Je);
|
|
4055
4182
|
});
|
|
4056
4183
|
}), mt(() => {
|
|
4057
|
-
document.removeEventListener("click",
|
|
4058
|
-
}), (
|
|
4184
|
+
document.removeEventListener("click", Qe, !1), document.removeEventListener("splitbutton:close-all", Je);
|
|
4185
|
+
}), (a, x) => e.nbId ? (pe(), be("div", {
|
|
4059
4186
|
key: 0,
|
|
4060
4187
|
ref_key: "wrapperRef",
|
|
4061
|
-
ref:
|
|
4062
|
-
class:
|
|
4063
|
-
style:
|
|
4188
|
+
ref: K,
|
|
4189
|
+
class: ge(["nb-wrapper", "nb-split-button", He.value]),
|
|
4190
|
+
style: ce([Ie.value]),
|
|
4064
4191
|
onFocusout: dt
|
|
4065
4192
|
}, [
|
|
4066
|
-
|
|
4193
|
+
se("div", {
|
|
4067
4194
|
id: e.nbId,
|
|
4068
|
-
class:
|
|
4069
|
-
style:
|
|
4195
|
+
class: ge(["nb-reset", "component", { "component--block": n(ae) === "b" }, Se.value]),
|
|
4196
|
+
style: ce([De.value])
|
|
4070
4197
|
}, [
|
|
4071
|
-
|
|
4198
|
+
se("button", {
|
|
4072
4199
|
ref_key: "mainButtonRef",
|
|
4073
|
-
ref:
|
|
4074
|
-
class:
|
|
4075
|
-
style:
|
|
4076
|
-
disabled:
|
|
4200
|
+
ref: $,
|
|
4201
|
+
class: ge(["split-button__main", { "split-button__main--disabled": n(i) }]),
|
|
4202
|
+
style: ce([Le.value]),
|
|
4203
|
+
disabled: n(i),
|
|
4077
4204
|
title: e.title,
|
|
4078
|
-
"aria-label":
|
|
4079
|
-
"aria-haspopup": !
|
|
4080
|
-
"aria-expanded":
|
|
4081
|
-
tabindex:
|
|
4082
|
-
onClick:
|
|
4205
|
+
"aria-label": n(B),
|
|
4206
|
+
"aria-haspopup": !n(O) && n(M).length > 0,
|
|
4207
|
+
"aria-expanded": n(O) ? void 0 : p.value,
|
|
4208
|
+
tabindex: n(i) ? -1 : 0,
|
|
4209
|
+
onClick: x[0] || (x[0] = z((Z) => Ke(Z), ["stop"])),
|
|
4083
4210
|
onKeydown: [
|
|
4084
|
-
|
|
4085
|
-
|
|
4211
|
+
x[1] || (x[1] = F(z((Z) => !n(i) && e.hasTabIndexEnter && Ke(Z), ["prevent"]), ["enter"])),
|
|
4212
|
+
x[2] || (x[2] = F(z((Z) => !n(i) && e.hasTabIndexSpace && Ke(Z), ["prevent"]), ["space"]))
|
|
4086
4213
|
]
|
|
4087
4214
|
}, [
|
|
4088
|
-
me(
|
|
4089
|
-
he(
|
|
4215
|
+
me(a.$slots, "main-content", {}, () => [
|
|
4216
|
+
he(We(n(oe)), 1)
|
|
4090
4217
|
], !0)
|
|
4091
|
-
], 46,
|
|
4092
|
-
|
|
4218
|
+
], 46, Da),
|
|
4219
|
+
n(O) ? (pe(), be("span", {
|
|
4093
4220
|
key: 0,
|
|
4094
4221
|
ref_key: "popupButtonRef",
|
|
4095
|
-
ref:
|
|
4096
|
-
class:
|
|
4097
|
-
style:
|
|
4222
|
+
ref: re,
|
|
4223
|
+
class: ge(["split-button__popup-button", { "split-button__popup-button--open": p.value }]),
|
|
4224
|
+
style: ce([ze.value]),
|
|
4098
4225
|
"aria-haspopup": !0,
|
|
4099
4226
|
"aria-expanded": p.value,
|
|
4100
|
-
title:
|
|
4101
|
-
tabindex:
|
|
4102
|
-
onClick:
|
|
4227
|
+
title: n(Q),
|
|
4228
|
+
tabindex: n(i) ? -1 : 0,
|
|
4229
|
+
onClick: z(Oe, ["stop"]),
|
|
4103
4230
|
onFocusin: rt,
|
|
4104
4231
|
onFocusout: ut,
|
|
4105
4232
|
onKeydown: [
|
|
4106
|
-
|
|
4107
|
-
|
|
4233
|
+
x[3] || (x[3] = F(z((Z) => !n(i) && Oe(), ["prevent"]), ["enter"])),
|
|
4234
|
+
x[4] || (x[4] = F(z((Z) => !n(i) && Oe(), ["prevent"]), ["space"]))
|
|
4108
4235
|
],
|
|
4109
4236
|
onKeyup: [
|
|
4110
|
-
|
|
4111
|
-
|
|
4237
|
+
F(_e, ["escape"]),
|
|
4238
|
+
F(_e, ["backspace"])
|
|
4112
4239
|
]
|
|
4113
4240
|
}, [
|
|
4114
|
-
me(
|
|
4115
|
-
(
|
|
4116
|
-
class:
|
|
4241
|
+
me(a.$slots, "popup-icon", {}, () => [
|
|
4242
|
+
(pe(), be("svg", {
|
|
4243
|
+
class: ge(["split-button__icon", { "split-button__icon--open": p.value }]),
|
|
4117
4244
|
viewBox: "0 0 24 24",
|
|
4118
4245
|
fill: "none",
|
|
4119
4246
|
stroke: "currentColor",
|
|
4120
4247
|
"stroke-width": "2"
|
|
4121
|
-
},
|
|
4122
|
-
|
|
4248
|
+
}, x[5] || (x[5] = [
|
|
4249
|
+
se("polyline", { points: "6 9 12 15 18 9" }, null, -1)
|
|
4123
4250
|
]), 2))
|
|
4124
4251
|
], !0)
|
|
4125
|
-
], 46,
|
|
4126
|
-
p.value ? (
|
|
4252
|
+
], 46, La)) : ye("", !0),
|
|
4253
|
+
p.value ? (pe(), be("div", {
|
|
4127
4254
|
key: 1,
|
|
4128
4255
|
ref_key: "popupRef",
|
|
4129
|
-
ref:
|
|
4130
|
-
class:
|
|
4131
|
-
style:
|
|
4256
|
+
ref: fe,
|
|
4257
|
+
class: ge(["split-button__popup", { "split-button__popup--open": p.value }]),
|
|
4258
|
+
style: ce([Ye.value])
|
|
4132
4259
|
}, [
|
|
4133
|
-
(
|
|
4134
|
-
key:
|
|
4135
|
-
class:
|
|
4136
|
-
style:
|
|
4137
|
-
disabled:
|
|
4138
|
-
tabindex:
|
|
4139
|
-
onClick:
|
|
4260
|
+
(pe(!0), be(ht, null, Ct(n(M), (Z, ve) => (pe(), be("button", {
|
|
4261
|
+
key: ve,
|
|
4262
|
+
class: ge(["split-button__menu-item", { "split-button__menu-item--disabled": Z.disabled }]),
|
|
4263
|
+
style: ce([ot.value]),
|
|
4264
|
+
disabled: Z.disabled || n(i),
|
|
4265
|
+
tabindex: Z.disabled || n(i) ? -1 : 0,
|
|
4266
|
+
onClick: z((xe) => Me(Z, ve, xe), ["stop"]),
|
|
4140
4267
|
onKeydown: [
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4268
|
+
F(z((xe) => !Z.disabled && !n(i) && Me(Z, ve, xe), ["prevent"]), ["enter"]),
|
|
4269
|
+
F(z((xe) => !Z.disabled && !n(i) && Me(Z, ve, xe), ["prevent"]), ["space"]),
|
|
4270
|
+
F(z((xe) => it(ve), ["prevent"]), ["arrow-up"]),
|
|
4271
|
+
F(z((xe) => st(ve), ["prevent"]), ["arrow-down"]),
|
|
4272
|
+
F(z(_e, ["prevent"]), ["escape"]),
|
|
4273
|
+
F(z(_e, ["prevent"]), ["backspace"])
|
|
4147
4274
|
]
|
|
4148
4275
|
}, [
|
|
4149
|
-
|
|
4150
|
-
me(
|
|
4151
|
-
he(
|
|
4276
|
+
Z.icon ? (pe(), be("span", Oa, [
|
|
4277
|
+
me(a.$slots, `item-icon-${ve}`, { item: Z }, () => [
|
|
4278
|
+
he(We(Z.icon), 1)
|
|
4152
4279
|
], !0)
|
|
4153
|
-
])) :
|
|
4154
|
-
|
|
4155
|
-
], 46,
|
|
4156
|
-
], 6)) :
|
|
4157
|
-
], 14,
|
|
4158
|
-
], 38)) :
|
|
4280
|
+
])) : ye("", !0),
|
|
4281
|
+
se("span", _a, We(Z.label), 1)
|
|
4282
|
+
], 46, Aa))), 128))
|
|
4283
|
+
], 6)) : ye("", !0)
|
|
4284
|
+
], 14, $a)
|
|
4285
|
+
], 38)) : ye("", !0);
|
|
4159
4286
|
}
|
|
4160
|
-
}), Wa = /* @__PURE__ */
|
|
4287
|
+
}), Wa = /* @__PURE__ */ Te(Ra, [["__scopeId", "data-v-dd4bc1d8"]]), Ue = {
|
|
4161
4288
|
NbButtonVavaGame: Vt,
|
|
4162
|
-
NbButtonShowHover:
|
|
4163
|
-
NbButtonPrevNext:
|
|
4289
|
+
NbButtonShowHover: wt,
|
|
4290
|
+
NbButtonPrevNext: At,
|
|
4164
4291
|
NbButtonMechanical: Wt,
|
|
4165
4292
|
NbButtonMechanical2: jt,
|
|
4166
4293
|
NbButtonHamburger: Kt,
|
|
@@ -4171,15 +4298,15 @@ const Na = ["id"], Ha = ["disabled", "title", "aria-label", "aria-haspopup", "ar
|
|
|
4171
4298
|
NbButtonNormal: ma,
|
|
4172
4299
|
NbButtonShadow: xa,
|
|
4173
4300
|
NbButtonUnderlineExpand: Ta,
|
|
4174
|
-
NbButtonUnderlineFill:
|
|
4301
|
+
NbButtonUnderlineFill: Na,
|
|
4175
4302
|
NbButtonGradientBorderToBackground: pa,
|
|
4176
4303
|
NbButtonSplitDropdown: Wa
|
|
4177
4304
|
}, Ya = {
|
|
4178
4305
|
install(e) {
|
|
4179
|
-
for (const
|
|
4180
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4181
|
-
const
|
|
4182
|
-
e.component(
|
|
4306
|
+
for (const l in Ue)
|
|
4307
|
+
if (Object.prototype.hasOwnProperty.call(Ue, l)) {
|
|
4308
|
+
const J = Ue[l];
|
|
4309
|
+
e.component(J.name, J);
|
|
4183
4310
|
}
|
|
4184
4311
|
}
|
|
4185
4312
|
};
|