@vlalg-nimbus/nb-buttons 3.1.0 → 4.0.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 +1771 -608
- package/dist/nb-buttons.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-buttons.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { useCssVars as U, toRefs as J, computed as t, openBlock as _, createElementBlock as P, normalizeClass as E, normalizeStyle as Y, unref as I, withKeys as L, withModifiers as j, createElementVNode as D, renderSlot as M, createTextVNode as G, createCommentVNode as K, onMounted as ie, ref as ve, watch as pe, toDisplayString as ye } from "vue";
|
|
2
|
+
const Q = (e, c) => {
|
|
3
|
+
const X = e.__vccOpts || e;
|
|
4
|
+
for (const [R, W] of c)
|
|
5
|
+
X[R] = W;
|
|
6
|
+
return X;
|
|
7
|
+
}, ge = ["tabIndex", "aria-label", "aria-disabled"], me = ["id"], Ve = { class: "component-content__text" }, xe = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbButtonVavaGame",
|
|
9
9
|
inheritAttrs: !1
|
|
10
10
|
}, {
|
|
@@ -18,14 +18,26 @@ const j = (e, s) => {
|
|
|
18
18
|
type: String,
|
|
19
19
|
default: "ib",
|
|
20
20
|
validator: (e = "") => {
|
|
21
|
-
const
|
|
22
|
-
return ["b", "ib"].includes(
|
|
21
|
+
const c = e.toLowerCase();
|
|
22
|
+
return ["b", "ib"].includes(c);
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
tabIndex: {
|
|
26
26
|
type: Number,
|
|
27
27
|
default: 0
|
|
28
28
|
},
|
|
29
|
+
hasTabIndexEnter: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !0
|
|
32
|
+
},
|
|
33
|
+
hasTabIndexSpace: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
ariaLabel: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "Alternate Text Button"
|
|
40
|
+
},
|
|
29
41
|
textColor: {
|
|
30
42
|
type: String,
|
|
31
43
|
default: "#ece8e1"
|
|
@@ -96,103 +108,110 @@ const j = (e, s) => {
|
|
|
96
108
|
}
|
|
97
109
|
},
|
|
98
110
|
emits: ["clicked"],
|
|
99
|
-
setup(e, { emit:
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
111
|
+
setup(e, { emit: c }) {
|
|
112
|
+
U((i) => ({
|
|
113
|
+
"3b94cba3": l.value,
|
|
114
|
+
"6146add9": b.value,
|
|
115
|
+
"2753eae3": z.value,
|
|
116
|
+
"4edfa97a": s.value,
|
|
117
|
+
dd0b6f3c: f.value
|
|
106
118
|
}));
|
|
107
|
-
const
|
|
108
|
-
display:
|
|
109
|
-
textColor:
|
|
110
|
-
textColorHover:
|
|
111
|
-
buttonColor:
|
|
112
|
-
buttonColorHover:
|
|
113
|
-
uppercase:
|
|
114
|
-
paddingXContent:
|
|
115
|
-
paddingYContent:
|
|
116
|
-
paddingXBorder:
|
|
117
|
-
paddingYBorder:
|
|
118
|
-
borderColor:
|
|
119
|
+
const X = c, R = e, {
|
|
120
|
+
display: W,
|
|
121
|
+
textColor: T,
|
|
122
|
+
textColorHover: $,
|
|
123
|
+
buttonColor: N,
|
|
124
|
+
buttonColorHover: m,
|
|
125
|
+
uppercase: y,
|
|
126
|
+
paddingXContent: C,
|
|
127
|
+
paddingYContent: S,
|
|
128
|
+
paddingXBorder: h,
|
|
129
|
+
paddingYBorder: g,
|
|
130
|
+
borderColor: V,
|
|
119
131
|
borderOpacity: u,
|
|
120
|
-
disabled:
|
|
121
|
-
fontFamily:
|
|
122
|
-
fontSize:
|
|
123
|
-
fontWeight:
|
|
124
|
-
} =
|
|
125
|
-
const
|
|
132
|
+
disabled: x,
|
|
133
|
+
fontFamily: k,
|
|
134
|
+
fontSize: H,
|
|
135
|
+
fontWeight: r
|
|
136
|
+
} = J(R), B = t(() => {
|
|
137
|
+
const i = x.value ? "component-disabled" : "", p = W.value !== "b" ? "inline-block" : "block", A = T.value ? T.value : "#ece8e1", O = N.value ? N.value : "green", F = $.value ? $.value : "#ece8e1", q = m.value ? m.value : "cyan", Z = V.value ? V.value : "#ffffff", ee = !u.value || !(u.value >= 0 && u.value <= 1) ? "0.5" : u.value, te = !h.value || h.value < 0 ? 0.3 : h.value, ae = !g.value || g.value < 0 ? 0.3 : g.value, oe = !C.value || C.value < 0 ? 0.5 : C.value, le = !S.value || S.value < 0 ? 0.5 : S.value, ne = y.value ? "uppercase" : "none", ue = k.value ? k.value : "'Lato', sans-serif", re = H.value ? H.value : "1.6em", de = !r.value || r.value < 0 ? 100 : r.value;
|
|
126
138
|
return {
|
|
127
|
-
disabled:
|
|
128
|
-
display:
|
|
129
|
-
textColor:
|
|
130
|
-
buttonColor:
|
|
131
|
-
textColorHover:
|
|
132
|
-
buttonColorHover:
|
|
133
|
-
borderColor:
|
|
134
|
-
borderOpacity:
|
|
135
|
-
paddingXBorder:
|
|
136
|
-
paddingYBorder:
|
|
137
|
-
paddingXContent:
|
|
139
|
+
disabled: i,
|
|
140
|
+
display: p,
|
|
141
|
+
textColor: A,
|
|
142
|
+
buttonColor: O,
|
|
143
|
+
textColorHover: F,
|
|
144
|
+
buttonColorHover: q,
|
|
145
|
+
borderColor: Z,
|
|
146
|
+
borderOpacity: ee,
|
|
147
|
+
paddingXBorder: te,
|
|
148
|
+
paddingYBorder: ae,
|
|
149
|
+
paddingXContent: oe,
|
|
138
150
|
paddingYContent: le,
|
|
139
151
|
uppercase: ne,
|
|
140
152
|
font: ue,
|
|
141
153
|
fontSize: re,
|
|
142
154
|
fontWeight: de
|
|
143
155
|
};
|
|
144
|
-
}),
|
|
145
|
-
display:
|
|
146
|
-
})),
|
|
147
|
-
const
|
|
156
|
+
}), d = t(() => B.value.disabled), w = t(() => ({
|
|
157
|
+
display: B.value.display
|
|
158
|
+
})), v = t(() => {
|
|
159
|
+
const i = B.value;
|
|
148
160
|
return {
|
|
149
|
-
padding: `${
|
|
150
|
-
fontSize:
|
|
151
|
-
fontWeight:
|
|
161
|
+
padding: `${i.paddingYBorder}rem ${i.paddingXBorder}rem`,
|
|
162
|
+
fontSize: i.fontSize,
|
|
163
|
+
fontWeight: i.fontWeight
|
|
152
164
|
};
|
|
153
|
-
}),
|
|
154
|
-
const
|
|
165
|
+
}), n = t(() => {
|
|
166
|
+
const i = B.value;
|
|
155
167
|
return {
|
|
156
|
-
textTransform:
|
|
157
|
-
padding: `${
|
|
158
|
-
backgroundColor:
|
|
168
|
+
textTransform: i.uppercase,
|
|
169
|
+
padding: `${i.paddingYContent}rem ${i.paddingXContent}rem`,
|
|
170
|
+
backgroundColor: i.buttonColor
|
|
159
171
|
};
|
|
160
172
|
}), a = t(() => ({
|
|
161
|
-
backgroundColor:
|
|
162
|
-
})),
|
|
163
|
-
|
|
173
|
+
backgroundColor: B.value.buttonColorHover
|
|
174
|
+
})), l = t(() => B.value.font), s = t(() => B.value.borderColor), f = t(() => B.value.borderOpacity), b = t(() => B.value.textColor), z = t(() => B.value.textColorHover), o = () => {
|
|
175
|
+
X("clicked");
|
|
164
176
|
};
|
|
165
|
-
return (
|
|
177
|
+
return (i, p) => e.nbId ? (_(), P("div", {
|
|
166
178
|
key: 0,
|
|
167
|
-
class:
|
|
168
|
-
style:
|
|
179
|
+
class: E(["nb-wrapper", d.value]),
|
|
180
|
+
style: Y([w.value]),
|
|
169
181
|
tabIndex: e.tabIndex,
|
|
170
|
-
|
|
182
|
+
role: "button",
|
|
183
|
+
"aria-label": e.ariaLabel,
|
|
184
|
+
"aria-disabled": I(x),
|
|
185
|
+
onClick: o,
|
|
186
|
+
onKeydown: [
|
|
187
|
+
p[0] || (p[0] = L((A) => !I(x) && e.hasTabIndexEnter && o(), ["enter"])),
|
|
188
|
+
p[1] || (p[1] = L(j((A) => !I(x) && e.hasTabIndexSpace && o(), ["prevent"]), ["space"]))
|
|
189
|
+
]
|
|
171
190
|
}, [
|
|
172
|
-
|
|
191
|
+
D("div", {
|
|
173
192
|
id: e.nbId,
|
|
174
|
-
class:
|
|
175
|
-
style:
|
|
193
|
+
class: E(["nb-reset", "component"]),
|
|
194
|
+
style: Y([v.value])
|
|
176
195
|
}, [
|
|
177
|
-
|
|
196
|
+
D("div", {
|
|
178
197
|
class: "component-content",
|
|
179
|
-
style:
|
|
198
|
+
style: Y([n.value])
|
|
180
199
|
}, [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
200
|
+
D("span", Ve, [
|
|
201
|
+
M(i.$slots, "content", {}, () => [
|
|
202
|
+
p[2] || (p[2] = G("Default Text"))
|
|
184
203
|
], !0)
|
|
185
204
|
]),
|
|
186
|
-
|
|
205
|
+
D("span", {
|
|
187
206
|
class: "component-content__mask",
|
|
188
|
-
style:
|
|
207
|
+
style: Y([a.value])
|
|
189
208
|
}, null, 4)
|
|
190
209
|
], 4)
|
|
191
|
-
], 12,
|
|
192
|
-
],
|
|
210
|
+
], 12, me)
|
|
211
|
+
], 46, ge)) : K("", !0);
|
|
193
212
|
}
|
|
194
|
-
}),
|
|
195
|
-
const
|
|
213
|
+
}), Ce = /* @__PURE__ */ Q(xe, [["__scopeId", "data-v-c8141ce9"]]);
|
|
214
|
+
const Se = ["tabIndex", "aria-label", "aria-disabled"], he = ["id"], Be = /* @__PURE__ */ Object.assign({
|
|
196
215
|
name: "NbButtonShowHover",
|
|
197
216
|
inheritAttrs: !1
|
|
198
217
|
}, {
|
|
@@ -206,6 +225,18 @@ const me = ["tabIndex"], Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
|
|
|
206
225
|
type: Number,
|
|
207
226
|
default: 0
|
|
208
227
|
},
|
|
228
|
+
hasTabIndexEnter: {
|
|
229
|
+
type: Boolean,
|
|
230
|
+
default: !0
|
|
231
|
+
},
|
|
232
|
+
hasTabIndexSpace: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
default: !0
|
|
235
|
+
},
|
|
236
|
+
ariaLabel: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: "Alternate Text Button"
|
|
239
|
+
},
|
|
209
240
|
textColor: {
|
|
210
241
|
type: String,
|
|
211
242
|
default: "#145deb"
|
|
@@ -262,83 +293,90 @@ const me = ["tabIndex"], Ve = ["id"], Ce = /* @__PURE__ */ Object.assign({
|
|
|
262
293
|
}
|
|
263
294
|
},
|
|
264
295
|
emits: ["clicked"],
|
|
265
|
-
setup(e, { emit:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
|
|
271
|
-
"
|
|
296
|
+
setup(e, { emit: c }) {
|
|
297
|
+
U((v) => ({
|
|
298
|
+
"630b5d13": d.value,
|
|
299
|
+
"6584a110": r.value,
|
|
300
|
+
"3cc5d20d": B.value,
|
|
301
|
+
e8db6f2c: e.textColorHover,
|
|
302
|
+
"7e70901c": I(W)
|
|
272
303
|
}));
|
|
273
|
-
const
|
|
274
|
-
textColor:
|
|
275
|
-
buttonColorHover:
|
|
276
|
-
buttonColorOpacityHover:
|
|
277
|
-
paddingX:
|
|
278
|
-
paddingY:
|
|
279
|
-
disabled:
|
|
280
|
-
borderRadius:
|
|
281
|
-
verticalAlign:
|
|
282
|
-
fontFamily:
|
|
283
|
-
fontSize:
|
|
284
|
-
fontWeight:
|
|
285
|
-
} =
|
|
286
|
-
const
|
|
304
|
+
const X = c, R = e, {
|
|
305
|
+
textColor: W,
|
|
306
|
+
buttonColorHover: T,
|
|
307
|
+
buttonColorOpacityHover: $,
|
|
308
|
+
paddingX: N,
|
|
309
|
+
paddingY: m,
|
|
310
|
+
disabled: y,
|
|
311
|
+
borderRadius: C,
|
|
312
|
+
verticalAlign: S,
|
|
313
|
+
fontFamily: h,
|
|
314
|
+
fontSize: g,
|
|
315
|
+
fontWeight: V
|
|
316
|
+
} = J(R), u = t(() => {
|
|
317
|
+
const v = y.value ? "component-disabled" : "", n = S.value ? S.value : "middle", a = W ? W.value : "ffffff", l = !N.value || N.value < 0 ? 1 : N.value, s = !m.value || m.value < 0 ? 0.2 : m.value, f = !C.value || C.value < 0 ? 0 : C.value, b = T.value ? T.value : "10, 38, 184", z = !$.value || $.value < 0 ? 0.1 : $.value, o = h.value ? h.value : "'Lato', sans-serif", i = g.value ? g.value : "1.6rem", p = !V.value || V.value < 0 ? 100 : V.value;
|
|
287
318
|
return {
|
|
288
|
-
disabled:
|
|
289
|
-
borderRadius:
|
|
319
|
+
disabled: v,
|
|
320
|
+
borderRadius: f,
|
|
290
321
|
textColor: a,
|
|
291
|
-
paddingX:
|
|
292
|
-
paddingY:
|
|
293
|
-
buttonColorHover:
|
|
294
|
-
buttonColorOpacityHover:
|
|
295
|
-
font:
|
|
296
|
-
fontSize:
|
|
297
|
-
fontWeight:
|
|
298
|
-
verticalAlign:
|
|
322
|
+
paddingX: l,
|
|
323
|
+
paddingY: s,
|
|
324
|
+
buttonColorHover: b,
|
|
325
|
+
buttonColorOpacityHover: z,
|
|
326
|
+
font: o,
|
|
327
|
+
fontSize: i,
|
|
328
|
+
fontWeight: p,
|
|
329
|
+
verticalAlign: n
|
|
299
330
|
};
|
|
300
|
-
}),
|
|
331
|
+
}), x = t(() => u.value.disabled), k = t(() => ({
|
|
301
332
|
verticalAlign: u.value.verticalAlign
|
|
302
|
-
})),
|
|
303
|
-
const
|
|
333
|
+
})), H = t(() => {
|
|
334
|
+
const v = u.value;
|
|
304
335
|
return {
|
|
305
|
-
color:
|
|
306
|
-
padding: `${
|
|
307
|
-
borderRadius: `${
|
|
308
|
-
fontSize:
|
|
309
|
-
fontWeight:
|
|
336
|
+
color: v.textColor,
|
|
337
|
+
padding: `${v.paddingY}rem 0`,
|
|
338
|
+
borderRadius: `${v.borderRadius}rem`,
|
|
339
|
+
fontSize: v.fontSize,
|
|
340
|
+
fontWeight: v.fontWeight
|
|
310
341
|
};
|
|
311
|
-
}),
|
|
312
|
-
const
|
|
313
|
-
return `${
|
|
314
|
-
}),
|
|
315
|
-
const
|
|
316
|
-
return `rgba(${
|
|
317
|
-
}),
|
|
318
|
-
|
|
342
|
+
}), r = t(() => {
|
|
343
|
+
const v = u.value;
|
|
344
|
+
return `${v.paddingY}rem ${v.paddingX}rem`;
|
|
345
|
+
}), B = t(() => {
|
|
346
|
+
const v = u.value;
|
|
347
|
+
return `rgba(${v.buttonColorHover}, ${v.buttonColorOpacityHover})`;
|
|
348
|
+
}), d = t(() => u.value.font), w = () => {
|
|
349
|
+
X("clicked");
|
|
319
350
|
};
|
|
320
|
-
return (
|
|
351
|
+
return (v, n) => e.nbId ? (_(), P("div", {
|
|
321
352
|
key: 0,
|
|
322
|
-
class:
|
|
323
|
-
style:
|
|
353
|
+
class: E(["nb-wrapper", x.value]),
|
|
354
|
+
style: Y([k.value]),
|
|
324
355
|
tabIndex: e.tabIndex,
|
|
325
|
-
|
|
356
|
+
role: "button",
|
|
357
|
+
"aria-label": e.ariaLabel,
|
|
358
|
+
"aria-disabled": I(y),
|
|
359
|
+
onClick: w,
|
|
360
|
+
onKeydown: [
|
|
361
|
+
n[1] || (n[1] = L((a) => !I(y) && e.hasTabIndexEnter && w(), ["enter"])),
|
|
362
|
+
n[2] || (n[2] = L(j((a) => !I(y) && e.hasTabIndexSpace && w(), ["prevent"]), ["space"]))
|
|
363
|
+
]
|
|
326
364
|
}, [
|
|
327
|
-
|
|
365
|
+
D("a", {
|
|
328
366
|
id: e.nbId,
|
|
329
367
|
class: "nb-reset component tertiary",
|
|
330
|
-
style:
|
|
331
|
-
onClick:
|
|
368
|
+
style: Y([H.value]),
|
|
369
|
+
onClick: n[0] || (n[0] = j(() => {
|
|
332
370
|
}, ["prevent"]))
|
|
333
371
|
}, [
|
|
334
|
-
|
|
335
|
-
|
|
372
|
+
M(v.$slots, "content", {}, () => [
|
|
373
|
+
n[3] || (n[3] = G("Default Text"))
|
|
336
374
|
], !0)
|
|
337
|
-
], 12,
|
|
338
|
-
],
|
|
375
|
+
], 12, he)
|
|
376
|
+
], 46, Se)) : K("", !0);
|
|
339
377
|
}
|
|
340
|
-
}),
|
|
341
|
-
const
|
|
378
|
+
}), we = /* @__PURE__ */ Q(Be, [["__scopeId", "data-v-f844cd94"]]);
|
|
379
|
+
const Ie = ["id"], $e = ["tabIndex", "aria-label", "aria-disabled"], Ne = ["tabIndex", "aria-label", "aria-disabled"], He = /* @__PURE__ */ Object.assign({
|
|
342
380
|
name: "NbButtonPrevNext",
|
|
343
381
|
inheritAttrs: !1
|
|
344
382
|
}, {
|
|
@@ -356,6 +394,22 @@ const Se = ["id"], _e = ["tabIndex"], he = ["tabIndex"], Ne = /* @__PURE__ */ Ob
|
|
|
356
394
|
type: Number,
|
|
357
395
|
default: 0
|
|
358
396
|
},
|
|
397
|
+
hasTabIndexEnter: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
default: !0
|
|
400
|
+
},
|
|
401
|
+
hasTabIndexSpace: {
|
|
402
|
+
type: Boolean,
|
|
403
|
+
default: !0
|
|
404
|
+
},
|
|
405
|
+
ariaLabelPrev: {
|
|
406
|
+
type: String,
|
|
407
|
+
default: "Alternate Text Button"
|
|
408
|
+
},
|
|
409
|
+
ariaLabelNext: {
|
|
410
|
+
type: String,
|
|
411
|
+
default: "Alternate Text Button"
|
|
412
|
+
},
|
|
359
413
|
colorPrimary: {
|
|
360
414
|
type: String,
|
|
361
415
|
default: "tomato"
|
|
@@ -433,100 +487,114 @@ const Se = ["id"], _e = ["tabIndex"], he = ["tabIndex"], Ne = /* @__PURE__ */ Ob
|
|
|
433
487
|
}
|
|
434
488
|
},
|
|
435
489
|
emits: ["clicked"],
|
|
436
|
-
setup(e, { emit:
|
|
437
|
-
|
|
438
|
-
"
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"
|
|
442
|
-
|
|
490
|
+
setup(e, { emit: c }) {
|
|
491
|
+
U((n) => ({
|
|
492
|
+
"16c88917": w.value,
|
|
493
|
+
"6e1325e7": e.colorPrimary,
|
|
494
|
+
"118d2324": e.textColor,
|
|
495
|
+
"72f42419": e.colorSecondary,
|
|
496
|
+
"195b3f6e": e.textColorHover
|
|
443
497
|
}));
|
|
444
|
-
const
|
|
445
|
-
paddingX:
|
|
446
|
-
paddingY:
|
|
447
|
-
marginBetween:
|
|
448
|
-
borderRadius:
|
|
449
|
-
disabled:
|
|
450
|
-
disabledPreview:
|
|
451
|
-
disabledNext:
|
|
452
|
-
fontFamily:
|
|
453
|
-
fontSize:
|
|
454
|
-
fontWeight:
|
|
455
|
-
} =
|
|
456
|
-
const
|
|
498
|
+
const X = c, R = e, {
|
|
499
|
+
paddingX: W,
|
|
500
|
+
paddingY: T,
|
|
501
|
+
marginBetween: $,
|
|
502
|
+
borderRadius: N,
|
|
503
|
+
disabled: m,
|
|
504
|
+
disabledPreview: y,
|
|
505
|
+
disabledNext: C,
|
|
506
|
+
fontFamily: S,
|
|
507
|
+
fontSize: h,
|
|
508
|
+
fontWeight: g
|
|
509
|
+
} = J(R), V = t(() => {
|
|
510
|
+
const n = m.value ? "component-disabled" : "", a = y.value ? "component-disabled" : "", l = C.value ? "component-disabled" : "", s = !$.value || $.value < 0 ? 0 : $.value, f = !N.value || N.value < 0 ? 0 : N.value, b = !W.value || W.value < 0 ? 1 : W.value, z = !T.value || T.value < 0 ? 10 : T.value, o = h.value ? h.value : "1.6em", i = !g.value || g.value < 0 ? 100 : g.value;
|
|
457
511
|
return {
|
|
458
|
-
disabled:
|
|
512
|
+
disabled: n,
|
|
459
513
|
disabledPreview: a,
|
|
460
|
-
disabledNext:
|
|
461
|
-
marginBetween: `${
|
|
462
|
-
borderRadius: `${
|
|
463
|
-
paddingX: `${
|
|
464
|
-
paddingY: `${
|
|
465
|
-
fontSize:
|
|
466
|
-
fontWeight:
|
|
514
|
+
disabledNext: l,
|
|
515
|
+
marginBetween: `${s}px`,
|
|
516
|
+
borderRadius: `${f}px`,
|
|
517
|
+
paddingX: `${b}px`,
|
|
518
|
+
paddingY: `${z}px`,
|
|
519
|
+
fontSize: o,
|
|
520
|
+
fontWeight: i
|
|
467
521
|
};
|
|
468
|
-
}), u = t(() =>
|
|
469
|
-
display:
|
|
470
|
-
})),
|
|
471
|
-
const
|
|
522
|
+
}), u = t(() => V.value.disabled), x = t(() => V.value.disabledPreview), k = t(() => V.value.disabledNext), H = t(() => ({
|
|
523
|
+
display: V.value.display
|
|
524
|
+
})), r = t(() => {
|
|
525
|
+
const n = V.value;
|
|
472
526
|
return {
|
|
473
|
-
fontSize:
|
|
474
|
-
fontWeight:
|
|
527
|
+
fontSize: n.fontSize,
|
|
528
|
+
fontWeight: n.fontWeight
|
|
475
529
|
};
|
|
476
|
-
}),
|
|
477
|
-
const
|
|
530
|
+
}), B = t(() => {
|
|
531
|
+
const n = V.value;
|
|
478
532
|
return {
|
|
479
|
-
borderRadius: `${
|
|
480
|
-
marginRight:
|
|
481
|
-
padding: `${
|
|
533
|
+
borderRadius: `${n.borderRadius} 0px 0px ${n.borderRadius}`,
|
|
534
|
+
marginRight: n.marginBetween,
|
|
535
|
+
padding: `${n.paddingX} ${n.paddingY}`
|
|
482
536
|
};
|
|
483
|
-
}),
|
|
484
|
-
const
|
|
537
|
+
}), d = t(() => {
|
|
538
|
+
const n = V.value;
|
|
485
539
|
return {
|
|
486
|
-
borderRadius: `0px ${
|
|
487
|
-
marginLeft:
|
|
488
|
-
padding: `${
|
|
540
|
+
borderRadius: `0px ${n.borderRadius} ${n.borderRadius} 0px`,
|
|
541
|
+
marginLeft: n.marginBetween,
|
|
542
|
+
padding: `${n.paddingX} ${n.paddingY}`
|
|
489
543
|
};
|
|
490
|
-
}),
|
|
491
|
-
|
|
544
|
+
}), w = t(() => `'${S.value ? S.value : "'Lato', sans-serif"}'`), v = (n) => {
|
|
545
|
+
X("clicked", n);
|
|
492
546
|
};
|
|
493
|
-
return (
|
|
547
|
+
return (n, a) => e.nbId ? (_(), P("div", {
|
|
494
548
|
key: 0,
|
|
495
|
-
class:
|
|
496
|
-
style:
|
|
549
|
+
class: E(["nb-wrapper", u.value]),
|
|
550
|
+
style: Y([H.value])
|
|
497
551
|
}, [
|
|
498
|
-
|
|
552
|
+
D("div", {
|
|
499
553
|
id: e.nbId,
|
|
500
|
-
class:
|
|
501
|
-
style:
|
|
554
|
+
class: E(["nb-reset", "component"]),
|
|
555
|
+
style: Y(r.value)
|
|
502
556
|
}, [
|
|
503
|
-
e.showPreview ? (
|
|
557
|
+
e.showPreview ? (_(), P("div", {
|
|
504
558
|
key: 0,
|
|
505
|
-
class:
|
|
506
|
-
style:
|
|
559
|
+
class: E(["buttonNextPreview buttonPreview", x.value]),
|
|
560
|
+
style: Y(B.value),
|
|
507
561
|
tabIndex: e.tabIndexPrev,
|
|
508
|
-
|
|
562
|
+
role: "button",
|
|
563
|
+
"aria-label": e.ariaLabelPrev,
|
|
564
|
+
"aria-disabled": I(m),
|
|
565
|
+
onClick: a[0] || (a[0] = (l) => v("preview")),
|
|
566
|
+
onKeydown: [
|
|
567
|
+
a[1] || (a[1] = L((l) => !I(m) && e.hasTabIndexEnter && v("preview"), ["enter"])),
|
|
568
|
+
a[2] || (a[2] = L(j((l) => !I(m) && e.hasTabIndexSpace && v("preview"), ["prevent"]), ["space"]))
|
|
569
|
+
]
|
|
509
570
|
}, [
|
|
510
|
-
|
|
511
|
-
a[
|
|
571
|
+
M(n.$slots, "prev", {}, () => [
|
|
572
|
+
a[6] || (a[6] = G("← Preview"))
|
|
512
573
|
], !0)
|
|
513
|
-
],
|
|
514
|
-
e.showNext ? (
|
|
574
|
+
], 46, $e)) : K("", !0),
|
|
575
|
+
e.showNext ? (_(), P("div", {
|
|
515
576
|
key: 1,
|
|
516
|
-
class:
|
|
517
|
-
style:
|
|
577
|
+
class: E(["buttonNextPreview buttonNext", k.value]),
|
|
578
|
+
style: Y(d.value),
|
|
518
579
|
tabIndex: e.tabIndexNext,
|
|
519
|
-
|
|
580
|
+
role: "button",
|
|
581
|
+
"aria-label": e.ariaLabelNext,
|
|
582
|
+
"aria-disabled": I(m),
|
|
583
|
+
onClick: a[3] || (a[3] = (l) => v("next")),
|
|
584
|
+
onKeydown: [
|
|
585
|
+
a[4] || (a[4] = L((l) => !I(m) && e.hasTabIndexEnter && v("next"), ["enter"])),
|
|
586
|
+
a[5] || (a[5] = L(j((l) => !I(m) && e.hasTabIndexSpace && v("next"), ["prevent"]), ["space"]))
|
|
587
|
+
]
|
|
520
588
|
}, [
|
|
521
|
-
|
|
522
|
-
a[
|
|
589
|
+
M(n.$slots, "next", {}, () => [
|
|
590
|
+
a[7] || (a[7] = G("Next →"))
|
|
523
591
|
], !0)
|
|
524
|
-
],
|
|
525
|
-
], 12,
|
|
526
|
-
], 6)) :
|
|
592
|
+
], 46, Ne)) : K("", !0)
|
|
593
|
+
], 12, Ie)
|
|
594
|
+
], 6)) : K("", !0);
|
|
527
595
|
}
|
|
528
|
-
}),
|
|
529
|
-
const
|
|
596
|
+
}), Te = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-235db30a"]]);
|
|
597
|
+
const ke = ["tabIndex", "aria-label", "aria-disabled"], We = ["id"], ze = /* @__PURE__ */ Object.assign({
|
|
530
598
|
name: "NbButtonMechanical",
|
|
531
599
|
inheritAttrs: !1
|
|
532
600
|
}, {
|
|
@@ -540,14 +608,26 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
|
|
|
540
608
|
type: String,
|
|
541
609
|
default: "b",
|
|
542
610
|
validator: (e = "b") => {
|
|
543
|
-
const
|
|
544
|
-
return ["b", "ib"].includes(
|
|
611
|
+
const c = e ? e.toLowerCase() : "";
|
|
612
|
+
return ["b", "ib"].includes(c);
|
|
545
613
|
}
|
|
546
614
|
},
|
|
547
615
|
tabIndex: {
|
|
548
616
|
type: Number,
|
|
549
617
|
default: 0
|
|
550
618
|
},
|
|
619
|
+
hasTabIndexEnter: {
|
|
620
|
+
type: Boolean,
|
|
621
|
+
default: !0
|
|
622
|
+
},
|
|
623
|
+
hasTabIndexSpace: {
|
|
624
|
+
type: Boolean,
|
|
625
|
+
default: !0
|
|
626
|
+
},
|
|
627
|
+
ariaLabel: {
|
|
628
|
+
type: String,
|
|
629
|
+
default: "Alternate Text Button"
|
|
630
|
+
},
|
|
551
631
|
textColor: {
|
|
552
632
|
type: String,
|
|
553
633
|
default: "#ffffff"
|
|
@@ -599,46 +679,46 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
|
|
|
599
679
|
}
|
|
600
680
|
},
|
|
601
681
|
emits: ["clicked"],
|
|
602
|
-
setup(e, { emit:
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
"
|
|
606
|
-
|
|
607
|
-
|
|
682
|
+
setup(e, { emit: c }) {
|
|
683
|
+
U((a) => ({
|
|
684
|
+
"75e08b28": d.value,
|
|
685
|
+
"38d76e94": I(T),
|
|
686
|
+
"1e761906": v.value,
|
|
687
|
+
60007562: w.value
|
|
608
688
|
}));
|
|
609
|
-
const
|
|
610
|
-
display:
|
|
611
|
-
buttonColor:
|
|
612
|
-
textColor:
|
|
613
|
-
containerColor:
|
|
614
|
-
paddingX:
|
|
615
|
-
paddingY:
|
|
616
|
-
borderRadius:
|
|
617
|
-
disabled:
|
|
618
|
-
animationSlow:
|
|
619
|
-
fontFamily:
|
|
620
|
-
fontSize:
|
|
689
|
+
const X = c, R = e, {
|
|
690
|
+
display: W,
|
|
691
|
+
buttonColor: T,
|
|
692
|
+
textColor: $,
|
|
693
|
+
containerColor: N,
|
|
694
|
+
paddingX: m,
|
|
695
|
+
paddingY: y,
|
|
696
|
+
borderRadius: C,
|
|
697
|
+
disabled: S,
|
|
698
|
+
animationSlow: h,
|
|
699
|
+
fontFamily: g,
|
|
700
|
+
fontSize: V,
|
|
621
701
|
fontWeight: u
|
|
622
|
-
} =
|
|
623
|
-
const a =
|
|
702
|
+
} = J(R), x = t(() => {
|
|
703
|
+
const a = S.value ? "component-disabled" : "", l = W.value !== "b" ? "inline-block" : "block", s = N.value ? N.value : "#ffffff", f = T.value ? T.value : "#bbbbbb", b = $.value ? $.value : "#ffffff", z = !m.value || m.value < 0 ? 1 : m.value, o = !y.value || y.value < 0 ? 0.2 : y.value, i = !C.value || C.value < 0 ? 0 : C.value, p = h.value ? "" : "component-transition__no-slow", A = g.value ? g.value : "'Lato', sans-serif", O = V.value ? V.value : "1.6em", F = !u.value || u.value < 0 ? 100 : u.value;
|
|
624
704
|
return {
|
|
625
705
|
disabled: a,
|
|
626
|
-
display:
|
|
627
|
-
containerColor:
|
|
628
|
-
buttonColor:
|
|
629
|
-
textColor:
|
|
630
|
-
paddingX:
|
|
631
|
-
paddingY:
|
|
632
|
-
borderRadius:
|
|
633
|
-
animationSlow:
|
|
634
|
-
font:
|
|
635
|
-
fontSize:
|
|
636
|
-
fontWeight:
|
|
706
|
+
display: l,
|
|
707
|
+
containerColor: s,
|
|
708
|
+
buttonColor: f,
|
|
709
|
+
textColor: b,
|
|
710
|
+
paddingX: z,
|
|
711
|
+
paddingY: o,
|
|
712
|
+
borderRadius: i,
|
|
713
|
+
animationSlow: p,
|
|
714
|
+
font: A,
|
|
715
|
+
fontSize: O,
|
|
716
|
+
fontWeight: F
|
|
637
717
|
};
|
|
638
|
-
}),
|
|
639
|
-
display:
|
|
640
|
-
})),
|
|
641
|
-
const a =
|
|
718
|
+
}), k = t(() => x.value.disabled), H = t(() => ({
|
|
719
|
+
display: x.value.display
|
|
720
|
+
})), r = t(() => {
|
|
721
|
+
const a = x.value;
|
|
642
722
|
return {
|
|
643
723
|
border: `2px solid ${a.containerColor}`,
|
|
644
724
|
color: a.textColor,
|
|
@@ -648,29 +728,36 @@ const Be = ["tabIndex"], $e = ["id"], Ie = /* @__PURE__ */ Object.assign({
|
|
|
648
728
|
fontSize: a.fontSize,
|
|
649
729
|
fontWeight: a.fontWeight
|
|
650
730
|
};
|
|
651
|
-
}),
|
|
652
|
-
|
|
731
|
+
}), B = t(() => x.value.animationSlow), d = t(() => x.value.font), w = t(() => x.value.textColor), v = t(() => x.value.buttonColor), n = () => {
|
|
732
|
+
X("clicked");
|
|
653
733
|
};
|
|
654
|
-
return (a,
|
|
734
|
+
return (a, l) => e.nbId ? (_(), P("div", {
|
|
655
735
|
key: 0,
|
|
656
|
-
class:
|
|
657
|
-
style:
|
|
736
|
+
class: E(["nb-wrapper", k.value]),
|
|
737
|
+
style: Y([H.value]),
|
|
658
738
|
tabIndex: e.tabIndex,
|
|
659
|
-
|
|
739
|
+
role: "button",
|
|
740
|
+
"aria-label": e.ariaLabel,
|
|
741
|
+
"aria-disabled": I(S),
|
|
742
|
+
onClick: n,
|
|
743
|
+
onKeydown: [
|
|
744
|
+
l[0] || (l[0] = L((s) => !I(S) && e.hasTabIndexEnter && n(), ["enter"])),
|
|
745
|
+
l[1] || (l[1] = L(j((s) => !I(S) && e.hasTabIndexSpace && n(), ["prevent"]), ["space"]))
|
|
746
|
+
]
|
|
660
747
|
}, [
|
|
661
|
-
|
|
748
|
+
D("div", {
|
|
662
749
|
id: e.nbId,
|
|
663
|
-
class:
|
|
664
|
-
style:
|
|
750
|
+
class: E(["nb-reset", "component", "component-transition", B.value]),
|
|
751
|
+
style: Y([r.value])
|
|
665
752
|
}, [
|
|
666
|
-
|
|
667
|
-
|
|
753
|
+
M(a.$slots, "content", {}, () => [
|
|
754
|
+
l[2] || (l[2] = G("Default Text"))
|
|
668
755
|
], !0)
|
|
669
|
-
], 14,
|
|
670
|
-
],
|
|
756
|
+
], 14, We)
|
|
757
|
+
], 46, ke)) : K("", !0);
|
|
671
758
|
}
|
|
672
|
-
}),
|
|
673
|
-
const
|
|
759
|
+
}), Ye = /* @__PURE__ */ Q(ze, [["__scopeId", "data-v-cd185961"]]);
|
|
760
|
+
const Xe = ["tabIndex", "aria-label", "aria-disabled"], Le = ["id"], Re = /* @__PURE__ */ Object.assign({
|
|
674
761
|
name: "NbButtonMechanical2",
|
|
675
762
|
inheritAttrs: !1
|
|
676
763
|
}, {
|
|
@@ -684,14 +771,26 @@ const ke = ["tabIndex"], ze = ["id"], We = /* @__PURE__ */ Object.assign({
|
|
|
684
771
|
type: String,
|
|
685
772
|
default: "b",
|
|
686
773
|
validator: (e = "b") => {
|
|
687
|
-
const
|
|
688
|
-
return ["b", "ib"].includes(
|
|
774
|
+
const c = e ? e.toLowerCase() : "";
|
|
775
|
+
return ["b", "ib"].includes(c);
|
|
689
776
|
}
|
|
690
777
|
},
|
|
691
778
|
tabIndex: {
|
|
692
779
|
type: Number,
|
|
693
780
|
default: 0
|
|
694
781
|
},
|
|
782
|
+
hasTabIndexEnter: {
|
|
783
|
+
type: Boolean,
|
|
784
|
+
default: !0
|
|
785
|
+
},
|
|
786
|
+
hasTabIndexSpace: {
|
|
787
|
+
type: Boolean,
|
|
788
|
+
default: !0
|
|
789
|
+
},
|
|
790
|
+
ariaLabel: {
|
|
791
|
+
type: String,
|
|
792
|
+
default: "Alternate Text Button"
|
|
793
|
+
},
|
|
695
794
|
textColor: {
|
|
696
795
|
type: String,
|
|
697
796
|
default: "#ffffff"
|
|
@@ -739,74 +838,81 @@ const ke = ["tabIndex"], ze = ["id"], We = /* @__PURE__ */ Object.assign({
|
|
|
739
838
|
}
|
|
740
839
|
},
|
|
741
840
|
emits: ["clicked"],
|
|
742
|
-
setup(e, { emit:
|
|
743
|
-
|
|
744
|
-
|
|
841
|
+
setup(e, { emit: c }) {
|
|
842
|
+
U((d) => ({
|
|
843
|
+
"41c9f13c": r.value
|
|
745
844
|
}));
|
|
746
|
-
const
|
|
747
|
-
display:
|
|
748
|
-
buttonColor:
|
|
749
|
-
textColor:
|
|
750
|
-
paddingX:
|
|
751
|
-
paddingY:
|
|
752
|
-
borderRadius:
|
|
753
|
-
shadowColor:
|
|
754
|
-
disabled:
|
|
755
|
-
fontFamily:
|
|
756
|
-
fontSize:
|
|
757
|
-
fontWeight:
|
|
758
|
-
} =
|
|
759
|
-
const
|
|
845
|
+
const X = c, R = e, {
|
|
846
|
+
display: W,
|
|
847
|
+
buttonColor: T,
|
|
848
|
+
textColor: $,
|
|
849
|
+
paddingX: N,
|
|
850
|
+
paddingY: m,
|
|
851
|
+
borderRadius: y,
|
|
852
|
+
shadowColor: C,
|
|
853
|
+
disabled: S,
|
|
854
|
+
fontFamily: h,
|
|
855
|
+
fontSize: g,
|
|
856
|
+
fontWeight: V
|
|
857
|
+
} = J(R), u = t(() => {
|
|
858
|
+
const d = S.value ? "component-disabled" : "", w = W.value !== "b" ? "inline-block" : "block", v = T.value ? T.value : "#bbbbbb", n = C.value ? C.value : "#002f3c", a = $.value ? $.value : "#ffffff", l = !N.value || N.value < 0 ? 1 : N.value, s = !m.value || m.value < 0 ? 1 : m.value, f = !y.value || y.value < 0 ? 0 : y.value, b = h.value ? h.value : "'Lato', sans-serif", z = g.value ? g.value : "1.6em", o = !V.value || V.value < 0 ? 100 : V.value;
|
|
760
859
|
return {
|
|
761
|
-
disabled:
|
|
762
|
-
display:
|
|
763
|
-
buttonColor:
|
|
764
|
-
shadowColor:
|
|
860
|
+
disabled: d,
|
|
861
|
+
display: w,
|
|
862
|
+
buttonColor: v,
|
|
863
|
+
shadowColor: n,
|
|
765
864
|
textColor: a,
|
|
766
|
-
paddingX:
|
|
767
|
-
paddingY:
|
|
768
|
-
borderRadius:
|
|
769
|
-
font:
|
|
770
|
-
fontSize:
|
|
771
|
-
fontWeight:
|
|
865
|
+
paddingX: l,
|
|
866
|
+
paddingY: s,
|
|
867
|
+
borderRadius: f,
|
|
868
|
+
font: b,
|
|
869
|
+
fontSize: z,
|
|
870
|
+
fontWeight: o
|
|
772
871
|
};
|
|
773
|
-
}),
|
|
872
|
+
}), x = t(() => u.value.disabled), k = t(() => ({
|
|
774
873
|
display: u.value.display
|
|
775
|
-
})),
|
|
776
|
-
const
|
|
874
|
+
})), H = t(() => {
|
|
875
|
+
const d = u.value;
|
|
777
876
|
return {
|
|
778
|
-
color:
|
|
779
|
-
backgroundColor:
|
|
780
|
-
boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${
|
|
781
|
-
padding: `${
|
|
782
|
-
padding: `${
|
|
783
|
-
borderRadius: `${
|
|
784
|
-
fontSize:
|
|
785
|
-
fontWeight:
|
|
877
|
+
color: d.textColor,
|
|
878
|
+
backgroundColor: d.buttonColor,
|
|
879
|
+
boxShadow: `0 0 #0000, 0 0 #0000, 3px 3px 0 ${d.shadowColor}`,
|
|
880
|
+
padding: `${d.paddingY}rem ${d.paddingX}rem`,
|
|
881
|
+
padding: `${d.paddingY}rem ${d.paddingX}rem`,
|
|
882
|
+
borderRadius: `${d.borderRadius}rem`,
|
|
883
|
+
fontSize: d.fontSize,
|
|
884
|
+
fontWeight: d.fontWeight
|
|
786
885
|
};
|
|
787
|
-
}),
|
|
788
|
-
|
|
886
|
+
}), r = t(() => u.value.font), B = () => {
|
|
887
|
+
X("clicked");
|
|
789
888
|
};
|
|
790
|
-
return (
|
|
889
|
+
return (d, w) => e.nbId ? (_(), P("div", {
|
|
791
890
|
key: 0,
|
|
792
|
-
class:
|
|
793
|
-
style:
|
|
891
|
+
class: E(["nb-wrapper", x.value]),
|
|
892
|
+
style: Y([k.value]),
|
|
794
893
|
tabIndex: e.tabIndex,
|
|
795
|
-
|
|
894
|
+
role: "button",
|
|
895
|
+
"aria-label": e.ariaLabel,
|
|
896
|
+
"aria-disabled": I(S),
|
|
897
|
+
onClick: B,
|
|
898
|
+
onKeydown: [
|
|
899
|
+
w[0] || (w[0] = L((v) => !I(S) && e.hasTabIndexEnter && B(), ["enter"])),
|
|
900
|
+
w[1] || (w[1] = L(j((v) => !I(S) && e.hasTabIndexSpace && B(), ["prevent"]), ["space"]))
|
|
901
|
+
]
|
|
796
902
|
}, [
|
|
797
|
-
|
|
903
|
+
D("div", {
|
|
798
904
|
id: e.nbId,
|
|
799
|
-
class:
|
|
800
|
-
style:
|
|
905
|
+
class: E(["nb-reset", "component", "component-transition"]),
|
|
906
|
+
style: Y([H.value])
|
|
801
907
|
}, [
|
|
802
|
-
|
|
803
|
-
|
|
908
|
+
M(d.$slots, "content", {}, () => [
|
|
909
|
+
w[2] || (w[2] = G("Default Text"))
|
|
804
910
|
], !0)
|
|
805
|
-
], 12,
|
|
806
|
-
],
|
|
911
|
+
], 12, Le)
|
|
912
|
+
], 46, Xe)) : K("", !0);
|
|
807
913
|
}
|
|
808
|
-
}),
|
|
809
|
-
const
|
|
914
|
+
}), Ae = /* @__PURE__ */ Q(Re, [["__scopeId", "data-v-d1239e03"]]);
|
|
915
|
+
const De = ["tabIndex", "aria-label", "aria-disabled"], Ee = ["id"], Oe = /* @__PURE__ */ Object.assign({
|
|
810
916
|
name: "NbButtonHamburger",
|
|
811
917
|
inheritAttrs: !1
|
|
812
918
|
}, {
|
|
@@ -820,6 +926,18 @@ const Xe = ["tabIndex"], Re = ["id"], De = /* @__PURE__ */ Object.assign({
|
|
|
820
926
|
type: Number,
|
|
821
927
|
default: 0
|
|
822
928
|
},
|
|
929
|
+
hasTabIndexEnter: {
|
|
930
|
+
type: Boolean,
|
|
931
|
+
default: !0
|
|
932
|
+
},
|
|
933
|
+
hasTabIndexSpace: {
|
|
934
|
+
type: Boolean,
|
|
935
|
+
default: !0
|
|
936
|
+
},
|
|
937
|
+
ariaLabel: {
|
|
938
|
+
type: String,
|
|
939
|
+
default: "Alternate Text Button"
|
|
940
|
+
},
|
|
823
941
|
status: {
|
|
824
942
|
type: Boolean,
|
|
825
943
|
default: !1,
|
|
@@ -858,78 +976,85 @@ const Xe = ["tabIndex"], Re = ["id"], De = /* @__PURE__ */ Object.assign({
|
|
|
858
976
|
}
|
|
859
977
|
},
|
|
860
978
|
emits: ["clicked"],
|
|
861
|
-
setup(e, { emit:
|
|
862
|
-
|
|
863
|
-
"
|
|
864
|
-
|
|
979
|
+
setup(e, { emit: c }) {
|
|
980
|
+
U((d) => ({
|
|
981
|
+
"05489a45": H.value,
|
|
982
|
+
b1646024: r.value
|
|
865
983
|
}));
|
|
866
|
-
const
|
|
867
|
-
|
|
868
|
-
|
|
984
|
+
const X = c, R = e;
|
|
985
|
+
ie(() => {
|
|
986
|
+
W.value = T.value;
|
|
869
987
|
});
|
|
870
|
-
const
|
|
871
|
-
status:
|
|
872
|
-
color:
|
|
873
|
-
containerColor:
|
|
874
|
-
containerColorHover:
|
|
875
|
-
colorHover:
|
|
876
|
-
paddingX:
|
|
877
|
-
paddingY:
|
|
878
|
-
disabled:
|
|
879
|
-
} =
|
|
880
|
-
const
|
|
988
|
+
const W = ve(!1), {
|
|
989
|
+
status: T,
|
|
990
|
+
color: $,
|
|
991
|
+
containerColor: N,
|
|
992
|
+
containerColorHover: m,
|
|
993
|
+
colorHover: y,
|
|
994
|
+
paddingX: C,
|
|
995
|
+
paddingY: S,
|
|
996
|
+
disabled: h
|
|
997
|
+
} = J(R), g = t(() => {
|
|
998
|
+
const d = h.value ? "component-disabled" : "", w = W.value ? "change" : "", v = N.value ? N.value : "#333333", n = $.value ? $.value : "#ffffff", a = !C.value || C.value < 0 ? 3 : C.value, l = !S.value || S.value < 0 ? 3 : S.value, s = m.value ? m.value : "yellow", f = y.value ? y.value : "red";
|
|
881
999
|
return {
|
|
882
|
-
disabled:
|
|
883
|
-
buttonStatus:
|
|
884
|
-
containerColor:
|
|
1000
|
+
disabled: d,
|
|
1001
|
+
buttonStatus: w,
|
|
1002
|
+
containerColor: v,
|
|
885
1003
|
paddingX: a,
|
|
886
|
-
paddingY:
|
|
887
|
-
color:
|
|
888
|
-
containerColorHover:
|
|
889
|
-
colorHover:
|
|
1004
|
+
paddingY: l,
|
|
1005
|
+
color: n,
|
|
1006
|
+
containerColorHover: s,
|
|
1007
|
+
colorHover: f
|
|
890
1008
|
};
|
|
891
|
-
}),
|
|
892
|
-
const
|
|
1009
|
+
}), V = t(() => g.value.disabled), u = t(() => {
|
|
1010
|
+
const d = g.value;
|
|
893
1011
|
return {
|
|
894
|
-
padding: `${
|
|
895
|
-
backgroundColor:
|
|
1012
|
+
padding: `${d.paddingY}px ${d.paddingX}px`,
|
|
1013
|
+
backgroundColor: d.containerColor
|
|
896
1014
|
};
|
|
897
|
-
}),
|
|
898
|
-
backgroundColor:
|
|
899
|
-
})),
|
|
900
|
-
const
|
|
901
|
-
|
|
1015
|
+
}), x = t(() => ({
|
|
1016
|
+
backgroundColor: g.value.color
|
|
1017
|
+
})), k = t(() => g.value.buttonStatus), H = t(() => g.value.containerColorHover), r = t(() => g.value.colorHover), B = () => {
|
|
1018
|
+
const d = !W.value;
|
|
1019
|
+
W.value = d, X("clicked", d);
|
|
902
1020
|
};
|
|
903
|
-
return
|
|
904
|
-
|
|
905
|
-
}), (
|
|
1021
|
+
return pe(T, () => {
|
|
1022
|
+
W.value = T.value;
|
|
1023
|
+
}), (d, w) => e.nbId ? (_(), P("div", {
|
|
906
1024
|
key: 0,
|
|
907
|
-
class:
|
|
908
|
-
style:
|
|
1025
|
+
class: E(["nb-wrapper", V.value]),
|
|
1026
|
+
style: Y([u.value]),
|
|
909
1027
|
tabIndex: e.tabIndex,
|
|
910
|
-
|
|
1028
|
+
role: "button",
|
|
1029
|
+
"aria-label": e.ariaLabel,
|
|
1030
|
+
"aria-disabled": I(h),
|
|
1031
|
+
onClick: B,
|
|
1032
|
+
onKeydown: [
|
|
1033
|
+
w[0] || (w[0] = L((v) => !I(h) && e.hasTabIndexEnter && B(), ["enter"])),
|
|
1034
|
+
w[1] || (w[1] = L(j((v) => !I(h) && e.hasTabIndexSpace && B(), ["prevent"]), ["space"]))
|
|
1035
|
+
]
|
|
911
1036
|
}, [
|
|
912
|
-
|
|
1037
|
+
D("div", {
|
|
913
1038
|
id: e.nbId,
|
|
914
|
-
class:
|
|
1039
|
+
class: E(["nb-reset", "component", k.value])
|
|
915
1040
|
}, [
|
|
916
|
-
|
|
1041
|
+
D("div", {
|
|
917
1042
|
class: "component__line-one",
|
|
918
|
-
style:
|
|
1043
|
+
style: Y(x.value)
|
|
919
1044
|
}, null, 4),
|
|
920
|
-
|
|
1045
|
+
D("div", {
|
|
921
1046
|
class: "component__line-two",
|
|
922
|
-
style:
|
|
1047
|
+
style: Y(x.value)
|
|
923
1048
|
}, null, 4),
|
|
924
|
-
|
|
1049
|
+
D("div", {
|
|
925
1050
|
class: "component__line-three",
|
|
926
|
-
style:
|
|
1051
|
+
style: Y(x.value)
|
|
927
1052
|
}, null, 4)
|
|
928
|
-
], 10,
|
|
929
|
-
],
|
|
1053
|
+
], 10, Ee)
|
|
1054
|
+
], 46, De)) : K("", !0);
|
|
930
1055
|
}
|
|
931
|
-
}),
|
|
932
|
-
const
|
|
1056
|
+
}), Fe = /* @__PURE__ */ Q(Oe, [["__scopeId", "data-v-ee16aa34"]]);
|
|
1057
|
+
const _e = ["tabIndex", "aria-label", "aria-disabled"], Pe = ["id"], Ke = /* @__PURE__ */ Object.assign({
|
|
933
1058
|
name: "NbButtonColorOutside",
|
|
934
1059
|
inheritAttrs: !1
|
|
935
1060
|
}, {
|
|
@@ -943,14 +1068,26 @@ const Le = ["tabIndex"], Te = ["id"], Ae = /* @__PURE__ */ Object.assign({
|
|
|
943
1068
|
type: String,
|
|
944
1069
|
default: "b",
|
|
945
1070
|
validator: (e = "b") => {
|
|
946
|
-
const
|
|
947
|
-
return ["b", "ib"].includes(
|
|
1071
|
+
const c = e ? e.toLowerCase() : "";
|
|
1072
|
+
return ["b", "ib"].includes(c);
|
|
948
1073
|
}
|
|
949
1074
|
},
|
|
950
1075
|
tabIndex: {
|
|
951
1076
|
type: Number,
|
|
952
1077
|
default: 0
|
|
953
1078
|
},
|
|
1079
|
+
hasTabIndexEnter: {
|
|
1080
|
+
type: Boolean,
|
|
1081
|
+
default: !0
|
|
1082
|
+
},
|
|
1083
|
+
hasTabIndexSpace: {
|
|
1084
|
+
type: Boolean,
|
|
1085
|
+
default: !0
|
|
1086
|
+
},
|
|
1087
|
+
ariaLabel: {
|
|
1088
|
+
type: String,
|
|
1089
|
+
default: "Alternate Text Button"
|
|
1090
|
+
},
|
|
954
1091
|
textColor: {
|
|
955
1092
|
type: String,
|
|
956
1093
|
default: "#ffffff"
|
|
@@ -998,85 +1135,92 @@ const Le = ["tabIndex"], Te = ["id"], Ae = /* @__PURE__ */ Object.assign({
|
|
|
998
1135
|
}
|
|
999
1136
|
},
|
|
1000
1137
|
emits: ["clicked"],
|
|
1001
|
-
setup(e, { emit:
|
|
1002
|
-
|
|
1003
|
-
"
|
|
1004
|
-
"
|
|
1005
|
-
|
|
1006
|
-
"
|
|
1138
|
+
setup(e, { emit: c }) {
|
|
1139
|
+
U((a) => ({
|
|
1140
|
+
"1be7c59c": d.value,
|
|
1141
|
+
"25955d43": v.value,
|
|
1142
|
+
bccb6a10: B.value,
|
|
1143
|
+
"374c98a8": w.value
|
|
1007
1144
|
}));
|
|
1008
|
-
const
|
|
1009
|
-
display:
|
|
1010
|
-
buttonColor:
|
|
1011
|
-
borderColor:
|
|
1012
|
-
textColor:
|
|
1013
|
-
paddingX:
|
|
1014
|
-
paddingY:
|
|
1015
|
-
borderRadius:
|
|
1016
|
-
disabled:
|
|
1017
|
-
fontFamily:
|
|
1018
|
-
fontSize:
|
|
1019
|
-
fontWeight:
|
|
1020
|
-
} =
|
|
1021
|
-
const a =
|
|
1145
|
+
const X = c, R = e, {
|
|
1146
|
+
display: W,
|
|
1147
|
+
buttonColor: T,
|
|
1148
|
+
borderColor: $,
|
|
1149
|
+
textColor: N,
|
|
1150
|
+
paddingX: m,
|
|
1151
|
+
paddingY: y,
|
|
1152
|
+
borderRadius: C,
|
|
1153
|
+
disabled: S,
|
|
1154
|
+
fontFamily: h,
|
|
1155
|
+
fontSize: g,
|
|
1156
|
+
fontWeight: V
|
|
1157
|
+
} = J(R), u = t(() => {
|
|
1158
|
+
const a = S.value ? "component-disabled" : "", l = W.value !== "b" ? "inline-block" : "block", s = T.value ? T.value : "#bbbbbb", f = $.value ? $.value : "#ffe54c", b = N.value ? N.value : "#ffffff", z = !m.value || m.value < 0 ? 1 : m.value, o = !y.value || y.value < 0 ? 0.2 : y.value, i = !C.value || C.value < 0 ? 0 : C.value, p = h.value ? h.value : "'Lato', sans-serif", A = g.value ? g.value : "1.6em", O = !V.value || V.value < 0 ? 200 : V.value;
|
|
1022
1159
|
return {
|
|
1023
1160
|
disabled: a,
|
|
1024
|
-
display:
|
|
1025
|
-
buttonColor:
|
|
1026
|
-
borderColor:
|
|
1027
|
-
textColor:
|
|
1028
|
-
paddingX:
|
|
1029
|
-
paddingY:
|
|
1030
|
-
borderRadius:
|
|
1031
|
-
font:
|
|
1032
|
-
fontSize:
|
|
1033
|
-
fontWeight:
|
|
1161
|
+
display: l,
|
|
1162
|
+
buttonColor: s,
|
|
1163
|
+
borderColor: f,
|
|
1164
|
+
textColor: b,
|
|
1165
|
+
paddingX: z,
|
|
1166
|
+
paddingY: o,
|
|
1167
|
+
borderRadius: i,
|
|
1168
|
+
font: p,
|
|
1169
|
+
fontSize: A,
|
|
1170
|
+
fontWeight: O
|
|
1034
1171
|
};
|
|
1035
|
-
}),
|
|
1172
|
+
}), x = t(() => u.value.disabled), k = t(() => ({
|
|
1036
1173
|
display: u.value.display
|
|
1037
|
-
})),
|
|
1174
|
+
})), H = t(() => {
|
|
1038
1175
|
const a = u.value;
|
|
1039
1176
|
return {
|
|
1040
1177
|
color: a.textColor,
|
|
1041
1178
|
fontSize: a.fontSize,
|
|
1042
1179
|
fontWeight: a.fontWeight
|
|
1043
1180
|
};
|
|
1044
|
-
}),
|
|
1181
|
+
}), r = t(() => {
|
|
1045
1182
|
const a = u.value;
|
|
1046
1183
|
return {
|
|
1047
1184
|
padding: `${a.paddingY}rem ${a.paddingX}rem`,
|
|
1048
1185
|
border: `1px solid ${a.borderColor}`,
|
|
1049
|
-
borderRadius:
|
|
1186
|
+
borderRadius: B.value
|
|
1050
1187
|
};
|
|
1051
|
-
}),
|
|
1052
|
-
|
|
1188
|
+
}), B = t(() => `${u.value.borderRadius}rem`), d = t(() => u.value.font), w = t(() => u.value.textColor), v = t(() => u.value.buttonColor), n = () => {
|
|
1189
|
+
X("clicked");
|
|
1053
1190
|
};
|
|
1054
|
-
return (a,
|
|
1191
|
+
return (a, l) => e.nbId ? (_(), P("div", {
|
|
1055
1192
|
key: 0,
|
|
1056
|
-
class:
|
|
1057
|
-
style:
|
|
1193
|
+
class: E(["nb-wrapper", x.value]),
|
|
1194
|
+
style: Y([k.value]),
|
|
1058
1195
|
tabIndex: e.tabIndex,
|
|
1059
|
-
|
|
1196
|
+
role: "button",
|
|
1197
|
+
"aria-label": e.ariaLabel,
|
|
1198
|
+
"aria-disabled": I(S),
|
|
1199
|
+
onClick: n,
|
|
1200
|
+
onKeydown: [
|
|
1201
|
+
l[0] || (l[0] = L((s) => !I(S) && e.hasTabIndexEnter && n(), ["enter"])),
|
|
1202
|
+
l[1] || (l[1] = L(j((s) => !I(S) && e.hasTabIndexSpace && n(), ["prevent"]), ["space"]))
|
|
1203
|
+
]
|
|
1060
1204
|
}, [
|
|
1061
|
-
|
|
1205
|
+
D("div", {
|
|
1062
1206
|
id: e.nbId,
|
|
1063
|
-
class:
|
|
1064
|
-
style:
|
|
1207
|
+
class: E(["nb-reset", "component"]),
|
|
1208
|
+
style: Y([H.value])
|
|
1065
1209
|
}, [
|
|
1066
|
-
|
|
1210
|
+
D("div", {
|
|
1067
1211
|
class: "component-content",
|
|
1068
|
-
style:
|
|
1212
|
+
style: Y([r.value])
|
|
1069
1213
|
}, [
|
|
1070
|
-
|
|
1071
|
-
|
|
1214
|
+
M(a.$slots, "content", {}, () => [
|
|
1215
|
+
l[2] || (l[2] = G("Default Text"))
|
|
1072
1216
|
], !0)
|
|
1073
1217
|
], 4),
|
|
1074
|
-
|
|
1075
|
-
], 12,
|
|
1076
|
-
],
|
|
1218
|
+
l[3] || (l[3] = D("div", { class: "component-shadow" }, null, -1))
|
|
1219
|
+
], 12, Pe)
|
|
1220
|
+
], 46, _e)) : K("", !0);
|
|
1077
1221
|
}
|
|
1078
|
-
}),
|
|
1079
|
-
const
|
|
1222
|
+
}), je = /* @__PURE__ */ Q(Ke, [["__scopeId", "data-v-4ae432a3"]]);
|
|
1223
|
+
const qe = ["tabIndex", "aria-label", "aria-disabled"], Me = ["id"], Ge = /* @__PURE__ */ Object.assign({
|
|
1080
1224
|
name: "NbButtonColorHover",
|
|
1081
1225
|
inheritAttrs: !1
|
|
1082
1226
|
}, {
|
|
@@ -1090,14 +1234,26 @@ const Fe = ["tabIndex"], Me = ["id"], je = /* @__PURE__ */ Object.assign({
|
|
|
1090
1234
|
type: String,
|
|
1091
1235
|
default: "b",
|
|
1092
1236
|
validator: (e = "b") => {
|
|
1093
|
-
const
|
|
1094
|
-
return ["b", "ib"].includes(
|
|
1237
|
+
const c = e.toLowerCase();
|
|
1238
|
+
return ["b", "ib"].includes(c);
|
|
1095
1239
|
}
|
|
1096
1240
|
},
|
|
1097
1241
|
tabIndex: {
|
|
1098
1242
|
type: Number,
|
|
1099
1243
|
default: 0
|
|
1100
1244
|
},
|
|
1245
|
+
hasTabIndexEnter: {
|
|
1246
|
+
type: Boolean,
|
|
1247
|
+
default: !0
|
|
1248
|
+
},
|
|
1249
|
+
hasTabIndexSpace: {
|
|
1250
|
+
type: Boolean,
|
|
1251
|
+
default: !0
|
|
1252
|
+
},
|
|
1253
|
+
ariaLabel: {
|
|
1254
|
+
type: String,
|
|
1255
|
+
default: "Alternate Text Button"
|
|
1256
|
+
},
|
|
1101
1257
|
textColor: {
|
|
1102
1258
|
type: String,
|
|
1103
1259
|
default: "#ffffff"
|
|
@@ -1149,80 +1305,88 @@ const Fe = ["tabIndex"], Me = ["id"], je = /* @__PURE__ */ Object.assign({
|
|
|
1149
1305
|
}
|
|
1150
1306
|
},
|
|
1151
1307
|
emits: ["clicked"],
|
|
1152
|
-
setup(e, { emit:
|
|
1153
|
-
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
|
|
1308
|
+
setup(e, { emit: c }) {
|
|
1309
|
+
U((l) => ({
|
|
1310
|
+
"37a8072e": B.value,
|
|
1311
|
+
"420521fa": v.value,
|
|
1312
|
+
"2e48555d": w.value,
|
|
1313
|
+
"37cde362": n.value,
|
|
1314
|
+
f8f7c1c2: d.value
|
|
1159
1315
|
}));
|
|
1160
|
-
const
|
|
1161
|
-
display:
|
|
1162
|
-
textColor:
|
|
1163
|
-
paddingX:
|
|
1164
|
-
paddingY:
|
|
1165
|
-
borderRadius:
|
|
1166
|
-
disabled:
|
|
1167
|
-
fontFamily:
|
|
1168
|
-
fontSize:
|
|
1169
|
-
fontWeight:
|
|
1170
|
-
textColorHover:
|
|
1171
|
-
buttonColor:
|
|
1316
|
+
const X = c, R = e, {
|
|
1317
|
+
display: W,
|
|
1318
|
+
textColor: T,
|
|
1319
|
+
paddingX: $,
|
|
1320
|
+
paddingY: N,
|
|
1321
|
+
borderRadius: m,
|
|
1322
|
+
disabled: y,
|
|
1323
|
+
fontFamily: C,
|
|
1324
|
+
fontSize: S,
|
|
1325
|
+
fontWeight: h,
|
|
1326
|
+
textColorHover: g,
|
|
1327
|
+
buttonColor: V,
|
|
1172
1328
|
buttonColorHover: u
|
|
1173
|
-
} =
|
|
1174
|
-
const
|
|
1329
|
+
} = J(R), x = t(() => {
|
|
1330
|
+
const l = y.value ? "component-disabled" : "", s = W.value !== "b" ? "inline-block" : "block", f = T ? T.value : "ffffff", b = !$.value || $.value < 0 ? 1 : $.value, z = !N.value || N.value < 0 ? 0.2 : N.value, o = !m.value || m.value < 0 ? 0 : m.value, i = C.value ? C.value : "'Lato', sans-serif", p = S.value ? S.value : "1.6rem", A = !h.value || h.value < 0 ? 100 : h.value, O = g.value ? g.value : "#cccccc", F = V.value ? V.value : "#bbbbbb", q = u.value ? u.value : "#959595";
|
|
1175
1331
|
return {
|
|
1176
|
-
disabled:
|
|
1177
|
-
display:
|
|
1178
|
-
font:
|
|
1179
|
-
fontSize:
|
|
1180
|
-
fontWeight:
|
|
1181
|
-
textColor:
|
|
1182
|
-
paddingX:
|
|
1183
|
-
paddingY:
|
|
1184
|
-
borderRadius:
|
|
1185
|
-
textColorHover:
|
|
1186
|
-
buttonColor:
|
|
1187
|
-
buttonColorHover:
|
|
1332
|
+
disabled: l,
|
|
1333
|
+
display: s,
|
|
1334
|
+
font: i,
|
|
1335
|
+
fontSize: p,
|
|
1336
|
+
fontWeight: A,
|
|
1337
|
+
textColor: f,
|
|
1338
|
+
paddingX: b,
|
|
1339
|
+
paddingY: z,
|
|
1340
|
+
borderRadius: o,
|
|
1341
|
+
textColorHover: O,
|
|
1342
|
+
buttonColor: F,
|
|
1343
|
+
buttonColorHover: q
|
|
1188
1344
|
};
|
|
1189
|
-
}),
|
|
1190
|
-
const
|
|
1345
|
+
}), k = t(() => x.value.disabled), H = t(() => {
|
|
1346
|
+
const l = x.value;
|
|
1191
1347
|
return {
|
|
1192
|
-
display:
|
|
1193
|
-
borderRadius: `${
|
|
1348
|
+
display: l.display,
|
|
1349
|
+
borderRadius: `${l.borderRadius}rem`
|
|
1194
1350
|
};
|
|
1195
|
-
}),
|
|
1196
|
-
const
|
|
1351
|
+
}), r = t(() => {
|
|
1352
|
+
const l = x.value;
|
|
1197
1353
|
return {
|
|
1198
|
-
color:
|
|
1199
|
-
padding: `${
|
|
1200
|
-
borderRadius: `${
|
|
1201
|
-
fontSize:
|
|
1202
|
-
fontWeight:
|
|
1354
|
+
color: l.textColor,
|
|
1355
|
+
padding: `${l.paddingY}rem ${l.paddingX}rem`,
|
|
1356
|
+
borderRadius: `${l.borderRadius}rem`,
|
|
1357
|
+
fontSize: l.fontSize,
|
|
1358
|
+
fontWeight: l.fontWeight
|
|
1203
1359
|
};
|
|
1204
|
-
}),
|
|
1205
|
-
|
|
1360
|
+
}), B = t(() => x.value.font), d = t(() => x.value.textColor), w = t(() => x.value.textColorHover), v = t(() => x.value.buttonColor), n = t(() => x.value.buttonColorHover), a = () => {
|
|
1361
|
+
X("clicked");
|
|
1206
1362
|
};
|
|
1207
|
-
return (
|
|
1208
|
-
|
|
1209
|
-
|
|
1363
|
+
return (l, s) => e.nbId ? (_(), P("div", {
|
|
1364
|
+
key: 0,
|
|
1365
|
+
class: E(["nb-wrapper", k.value]),
|
|
1366
|
+
style: Y([H.value]),
|
|
1210
1367
|
tabIndex: e.tabIndex,
|
|
1211
|
-
|
|
1368
|
+
role: "button",
|
|
1369
|
+
"aria-label": e.ariaLabel,
|
|
1370
|
+
"aria-disabled": I(y),
|
|
1371
|
+
onClick: a,
|
|
1372
|
+
onKeydown: [
|
|
1373
|
+
s[0] || (s[0] = L((f) => !I(y) && e.hasTabIndexEnter && a(), ["enter"])),
|
|
1374
|
+
s[1] || (s[1] = L(j((f) => !I(y) && e.hasTabIndexSpace && a(), ["prevent"]), ["space"]))
|
|
1375
|
+
]
|
|
1212
1376
|
}, [
|
|
1213
|
-
|
|
1377
|
+
D("div", {
|
|
1214
1378
|
id: e.nbId,
|
|
1215
1379
|
class: "nb-reset component component-transition",
|
|
1216
|
-
style:
|
|
1380
|
+
style: Y([r.value])
|
|
1217
1381
|
}, [
|
|
1218
|
-
|
|
1219
|
-
|
|
1382
|
+
M(l.$slots, "content", {}, () => [
|
|
1383
|
+
s[2] || (s[2] = G("Default Text"))
|
|
1220
1384
|
], !0)
|
|
1221
1385
|
], 12, Me)
|
|
1222
|
-
],
|
|
1386
|
+
], 46, qe)) : K("", !0);
|
|
1223
1387
|
}
|
|
1224
|
-
}),
|
|
1225
|
-
const
|
|
1388
|
+
}), Ue = /* @__PURE__ */ Q(Ge, [["__scopeId", "data-v-d083f1f8"]]);
|
|
1389
|
+
const Je = ["tabIndex", "aria-label", "aria-disabled"], Qe = ["id"], Ze = { class: "first-child" }, et = { class: "last-child" }, tt = /* @__PURE__ */ Object.assign({
|
|
1226
1390
|
name: "NbButtonAlternateText",
|
|
1227
1391
|
inheritAttrs: !1
|
|
1228
1392
|
}, {
|
|
@@ -1236,14 +1400,26 @@ const Ge = ["tabIndex"], Ee = ["id"], Je = { class: "first-child" }, Ke = { clas
|
|
|
1236
1400
|
type: String,
|
|
1237
1401
|
default: "b",
|
|
1238
1402
|
validator: (e = "b") => {
|
|
1239
|
-
const
|
|
1240
|
-
return ["b", "ib"].includes(
|
|
1403
|
+
const c = e ? e.toLowerCase() : "";
|
|
1404
|
+
return ["b", "ib"].includes(c);
|
|
1241
1405
|
}
|
|
1242
1406
|
},
|
|
1243
1407
|
tabIndex: {
|
|
1244
1408
|
type: Number,
|
|
1245
1409
|
default: 0
|
|
1246
1410
|
},
|
|
1411
|
+
hasTabIndexEnter: {
|
|
1412
|
+
type: Boolean,
|
|
1413
|
+
default: !0
|
|
1414
|
+
},
|
|
1415
|
+
hasTabIndexSpace: {
|
|
1416
|
+
type: Boolean,
|
|
1417
|
+
default: !0
|
|
1418
|
+
},
|
|
1419
|
+
ariaLabel: {
|
|
1420
|
+
type: String,
|
|
1421
|
+
default: "Alternate Text Button"
|
|
1422
|
+
},
|
|
1247
1423
|
textColor: {
|
|
1248
1424
|
type: String,
|
|
1249
1425
|
default: "#ffffff"
|
|
@@ -1309,93 +1485,100 @@ const Ge = ["tabIndex"], Ee = ["id"], Je = { class: "first-child" }, Ke = { clas
|
|
|
1309
1485
|
}
|
|
1310
1486
|
},
|
|
1311
1487
|
emits: ["clicked"],
|
|
1312
|
-
setup(e, { emit:
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
"
|
|
1316
|
-
"
|
|
1317
|
-
"
|
|
1488
|
+
setup(e, { emit: c }) {
|
|
1489
|
+
U((f) => ({
|
|
1490
|
+
"516e8559": v.value,
|
|
1491
|
+
"48b787e2": n.value,
|
|
1492
|
+
"0e5ada5b": a.value,
|
|
1493
|
+
"1291c2ea": l.value
|
|
1318
1494
|
}));
|
|
1319
|
-
const
|
|
1320
|
-
display:
|
|
1321
|
-
buttonColor:
|
|
1322
|
-
borderColor:
|
|
1323
|
-
buttonHoverColor:
|
|
1324
|
-
showBorder:
|
|
1325
|
-
borderRadius:
|
|
1326
|
-
textColor:
|
|
1327
|
-
textHoverColor:
|
|
1328
|
-
width:
|
|
1329
|
-
paddingX:
|
|
1330
|
-
paddingY:
|
|
1495
|
+
const X = c, R = e, {
|
|
1496
|
+
display: W,
|
|
1497
|
+
buttonColor: T,
|
|
1498
|
+
borderColor: $,
|
|
1499
|
+
buttonHoverColor: N,
|
|
1500
|
+
showBorder: m,
|
|
1501
|
+
borderRadius: y,
|
|
1502
|
+
textColor: C,
|
|
1503
|
+
textHoverColor: S,
|
|
1504
|
+
width: h,
|
|
1505
|
+
paddingX: g,
|
|
1506
|
+
paddingY: V,
|
|
1331
1507
|
disabled: u,
|
|
1332
|
-
fontFamily:
|
|
1333
|
-
fontSize:
|
|
1334
|
-
fontWeight:
|
|
1335
|
-
} =
|
|
1336
|
-
const
|
|
1508
|
+
fontFamily: x,
|
|
1509
|
+
fontSize: k,
|
|
1510
|
+
fontWeight: H
|
|
1511
|
+
} = J(R), r = t(() => {
|
|
1512
|
+
const f = u.value ? "component-disabled" : "", b = W.value !== "b" ? "inline-block" : "block", z = T.value ? T.value : "#ffffff", o = N.value ? N.value : "#000000", i = $.value ? $.value : "#ffe54c", p = !y.value || y.value < 0 ? 0 : y.value, A = [!1, !0].includes(m.value) ? m.value : !0, O = C.value ? C.value : "#ffffff", F = S.value ? S.value : "#000000", q = !h.value || h.value < 86 ? 86 : h.value, Z = !g.value || g.value < 0 ? 1 : g.value, ee = !V.value || V.value < 0 ? 0.4 : V.value, te = x.value ? x.value : "'Lato', sans-serif", ae = k.value ? k.value : "1.6em", oe = !H.value || H.value < 0 ? 200 : H.value;
|
|
1337
1513
|
return {
|
|
1338
|
-
disabled:
|
|
1339
|
-
display:
|
|
1340
|
-
buttonColor:
|
|
1341
|
-
buttonHoverColor:
|
|
1342
|
-
borderColor:
|
|
1343
|
-
showBorder:
|
|
1344
|
-
borderRadius:
|
|
1345
|
-
textColor:
|
|
1346
|
-
textHoverColor:
|
|
1347
|
-
width:
|
|
1348
|
-
paddingX:
|
|
1349
|
-
paddingY:
|
|
1350
|
-
font:
|
|
1351
|
-
fontSize:
|
|
1352
|
-
fontWeight:
|
|
1514
|
+
disabled: f,
|
|
1515
|
+
display: b,
|
|
1516
|
+
buttonColor: z,
|
|
1517
|
+
buttonHoverColor: o,
|
|
1518
|
+
borderColor: i,
|
|
1519
|
+
showBorder: A,
|
|
1520
|
+
borderRadius: p,
|
|
1521
|
+
textColor: O,
|
|
1522
|
+
textHoverColor: F,
|
|
1523
|
+
width: q,
|
|
1524
|
+
paddingX: Z,
|
|
1525
|
+
paddingY: ee,
|
|
1526
|
+
font: te,
|
|
1527
|
+
fontSize: ae,
|
|
1528
|
+
fontWeight: oe
|
|
1353
1529
|
};
|
|
1354
|
-
}),
|
|
1355
|
-
display:
|
|
1356
|
-
})),
|
|
1357
|
-
const
|
|
1530
|
+
}), B = t(() => r.value.disabled), d = t(() => ({
|
|
1531
|
+
display: r.value.display
|
|
1532
|
+
})), w = t(() => {
|
|
1533
|
+
const f = r.value, b = f.display === "block" ? "auto" : `${f.width}px`;
|
|
1358
1534
|
return {
|
|
1359
|
-
...
|
|
1360
|
-
borderRadius: `${
|
|
1361
|
-
background:
|
|
1535
|
+
...f.showBorder ? { border: `1px solid ${f.borderColor}` } : {},
|
|
1536
|
+
borderRadius: `${f.borderRadius}rem`,
|
|
1537
|
+
background: f.buttonColor,
|
|
1362
1538
|
minWidth: "33px",
|
|
1363
|
-
width:
|
|
1364
|
-
padding: `${
|
|
1539
|
+
width: b,
|
|
1540
|
+
padding: `${f.paddingY}rem ${f.paddingX}rem`,
|
|
1365
1541
|
lineHeight: "1.42857143",
|
|
1366
|
-
fontSize:
|
|
1367
|
-
fontWeight:
|
|
1542
|
+
fontSize: f.fontSize,
|
|
1543
|
+
fontWeight: f.fontWeight
|
|
1368
1544
|
};
|
|
1369
|
-
}),
|
|
1370
|
-
|
|
1545
|
+
}), v = t(() => r.value.font), n = t(() => r.value.textColor), a = t(() => r.value.textHoverColor), l = t(() => r.value.buttonHoverColor), s = () => {
|
|
1546
|
+
X("clicked");
|
|
1371
1547
|
};
|
|
1372
|
-
return (
|
|
1548
|
+
return (f, b) => e.nbId ? (_(), P("div", {
|
|
1373
1549
|
key: 0,
|
|
1374
|
-
class:
|
|
1375
|
-
style:
|
|
1550
|
+
class: E(["nb-wrapper", B.value]),
|
|
1551
|
+
style: Y([d.value]),
|
|
1376
1552
|
tabIndex: e.tabIndex,
|
|
1377
|
-
|
|
1553
|
+
role: "button",
|
|
1554
|
+
"aria-label": e.ariaLabel,
|
|
1555
|
+
"aria-disabled": I(u),
|
|
1556
|
+
onClick: s,
|
|
1557
|
+
onKeydown: [
|
|
1558
|
+
b[0] || (b[0] = L((z) => !I(u) && e.hasTabIndexEnter && s(), ["enter"])),
|
|
1559
|
+
b[1] || (b[1] = L(j((z) => !I(u) && e.hasTabIndexSpace && s(), ["prevent"]), ["space"]))
|
|
1560
|
+
]
|
|
1378
1561
|
}, [
|
|
1379
|
-
|
|
1562
|
+
D("div", {
|
|
1380
1563
|
id: e.nbId,
|
|
1381
|
-
class:
|
|
1382
|
-
style:
|
|
1564
|
+
class: E(["nb-reset", "component"]),
|
|
1565
|
+
style: Y([w.value])
|
|
1383
1566
|
}, [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1567
|
+
D("div", Ze, [
|
|
1568
|
+
M(f.$slots, "content", {}, () => [
|
|
1569
|
+
b[2] || (b[2] = G("Default Text"))
|
|
1387
1570
|
], !0)
|
|
1388
1571
|
]),
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1572
|
+
D("div", et, [
|
|
1573
|
+
M(f.$slots, "content", {}, () => [
|
|
1574
|
+
b[3] || (b[3] = G("Default Text"))
|
|
1392
1575
|
], !0)
|
|
1393
1576
|
])
|
|
1394
|
-
], 12,
|
|
1395
|
-
],
|
|
1577
|
+
], 12, Qe)
|
|
1578
|
+
], 46, Je)) : K("", !0);
|
|
1396
1579
|
}
|
|
1397
|
-
}),
|
|
1398
|
-
const
|
|
1580
|
+
}), at = /* @__PURE__ */ Q(tt, [["__scopeId", "data-v-b10ffc3e"]]);
|
|
1581
|
+
const ot = ["tabIndex", "aria-label", "aria-disabled"], lt = ["id"], nt = /* @__PURE__ */ Object.assign({
|
|
1399
1582
|
name: "NbButtonBack",
|
|
1400
1583
|
inheritAttrs: !1
|
|
1401
1584
|
}, {
|
|
@@ -1409,6 +1592,18 @@ const Ze = ["tabIndex"], et = ["id"], tt = /* @__PURE__ */ Object.assign({
|
|
|
1409
1592
|
type: Number,
|
|
1410
1593
|
default: 0
|
|
1411
1594
|
},
|
|
1595
|
+
hasTabIndexEnter: {
|
|
1596
|
+
type: Boolean,
|
|
1597
|
+
default: !0
|
|
1598
|
+
},
|
|
1599
|
+
hasTabIndexSpace: {
|
|
1600
|
+
type: Boolean,
|
|
1601
|
+
default: !0
|
|
1602
|
+
},
|
|
1603
|
+
ariaLabel: {
|
|
1604
|
+
type: String,
|
|
1605
|
+
default: "Alternate Text Button"
|
|
1606
|
+
},
|
|
1412
1607
|
color: {
|
|
1413
1608
|
type: String,
|
|
1414
1609
|
default: "#477e99"
|
|
@@ -1442,88 +1637,1056 @@ const Ze = ["tabIndex"], et = ["id"], tt = /* @__PURE__ */ Object.assign({
|
|
|
1442
1637
|
}
|
|
1443
1638
|
},
|
|
1444
1639
|
emits: ["clicked"],
|
|
1445
|
-
setup(e, { emit:
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
})),
|
|
1451
|
-
|
|
1640
|
+
setup(e, { emit: c }) {
|
|
1641
|
+
U((r) => ({
|
|
1642
|
+
aa62e326: u.value,
|
|
1643
|
+
adaa07ba: V.value,
|
|
1644
|
+
40060860: g.value
|
|
1645
|
+
})), ie(() => {
|
|
1646
|
+
k();
|
|
1452
1647
|
});
|
|
1453
|
-
const
|
|
1454
|
-
color:
|
|
1455
|
-
textColor:
|
|
1456
|
-
disabled:
|
|
1457
|
-
fontFamily:
|
|
1458
|
-
fontSize:
|
|
1459
|
-
fontWeight:
|
|
1460
|
-
} =
|
|
1461
|
-
const
|
|
1648
|
+
const X = c, R = e, {
|
|
1649
|
+
color: W,
|
|
1650
|
+
textColor: T,
|
|
1651
|
+
disabled: $,
|
|
1652
|
+
fontFamily: N,
|
|
1653
|
+
fontSize: m,
|
|
1654
|
+
fontWeight: y
|
|
1655
|
+
} = J(R), C = t(() => {
|
|
1656
|
+
const r = $.value ? "component-disabled" : "", B = W.value ? W.value : "#77d2ff", d = T.value ? T.value : "#6dc1ec", w = N.value ? N.value : "'Lato', sans-serif", v = m.value ? m.value : "1.6em", n = !y.value || y.value < 0 ? 400 : y.value;
|
|
1462
1657
|
return {
|
|
1463
|
-
color:
|
|
1464
|
-
textColor:
|
|
1465
|
-
font:
|
|
1466
|
-
fontSize:
|
|
1467
|
-
fontWeight:
|
|
1468
|
-
disabled:
|
|
1658
|
+
color: B,
|
|
1659
|
+
textColor: d,
|
|
1660
|
+
font: w,
|
|
1661
|
+
fontSize: v,
|
|
1662
|
+
fontWeight: n,
|
|
1663
|
+
disabled: r
|
|
1469
1664
|
};
|
|
1470
|
-
}),
|
|
1471
|
-
const
|
|
1665
|
+
}), S = t(() => ({})), h = t(() => {
|
|
1666
|
+
const r = C.value;
|
|
1472
1667
|
return {
|
|
1473
|
-
fontSize:
|
|
1474
|
-
fontWeight:
|
|
1668
|
+
fontSize: r.fontSize,
|
|
1669
|
+
fontWeight: r.fontWeight
|
|
1475
1670
|
};
|
|
1476
|
-
}),
|
|
1477
|
-
},
|
|
1478
|
-
|
|
1671
|
+
}), g = t(() => C.value.color), V = t(() => C.value.textColor), u = t(() => C.value.font), x = t(() => C.value.disabled), k = () => {
|
|
1672
|
+
}, H = () => {
|
|
1673
|
+
X("clicked");
|
|
1479
1674
|
};
|
|
1480
|
-
return (
|
|
1675
|
+
return (r, B) => e.nbId ? (_(), P("div", {
|
|
1481
1676
|
key: 0,
|
|
1482
|
-
class:
|
|
1483
|
-
style:
|
|
1677
|
+
class: E(["nb-wrapper", x.value]),
|
|
1678
|
+
style: Y([S.value]),
|
|
1484
1679
|
tabIndex: e.tabIndex,
|
|
1485
|
-
|
|
1680
|
+
role: "button",
|
|
1681
|
+
"aria-label": e.ariaLabel,
|
|
1682
|
+
"aria-disabled": I($),
|
|
1683
|
+
onClick: H,
|
|
1684
|
+
onKeydown: [
|
|
1685
|
+
B[0] || (B[0] = L((d) => !I($) && e.hasTabIndexEnter && H(), ["enter"])),
|
|
1686
|
+
B[1] || (B[1] = L(j((d) => !I($) && e.hasTabIndexSpace && H(), ["prevent"]), ["space"]))
|
|
1687
|
+
]
|
|
1486
1688
|
}, [
|
|
1487
|
-
|
|
1689
|
+
D("div", {
|
|
1488
1690
|
id: e.nbId,
|
|
1489
|
-
class:
|
|
1490
|
-
style:
|
|
1691
|
+
class: E(["nb-reset", "component"]),
|
|
1692
|
+
style: Y([h.value])
|
|
1491
1693
|
}, [
|
|
1492
|
-
|
|
1694
|
+
B[2] || (B[2] = D("svg", {
|
|
1493
1695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1494
1696
|
width: "1em",
|
|
1495
1697
|
height: "1em",
|
|
1496
1698
|
viewBox: "0 0 16 16"
|
|
1497
1699
|
}, [
|
|
1498
|
-
|
|
1700
|
+
D("path", {
|
|
1499
1701
|
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",
|
|
1500
1702
|
"clip-rule": "evenodd"
|
|
1501
1703
|
})
|
|
1502
1704
|
], -1)),
|
|
1503
|
-
|
|
1504
|
-
], 12,
|
|
1505
|
-
],
|
|
1705
|
+
D("span", null, ye(e.text), 1)
|
|
1706
|
+
], 12, lt)
|
|
1707
|
+
], 46, ot)) : K("", !0);
|
|
1708
|
+
}
|
|
1709
|
+
}), ut = /* @__PURE__ */ Q(nt, [["__scopeId", "data-v-1df91d2a"]]);
|
|
1710
|
+
const rt = ["tabIndex", "aria-label", "aria-disabled"], dt = ["id"], st = /* @__PURE__ */ Object.assign({
|
|
1711
|
+
name: "NbButtonGradientBorderToBackground",
|
|
1712
|
+
inheritAttrs: !1
|
|
1713
|
+
}, {
|
|
1714
|
+
__name: "NbButtonGradientBorderToBackground",
|
|
1715
|
+
props: {
|
|
1716
|
+
nbId: {
|
|
1717
|
+
type: String,
|
|
1718
|
+
required: !0
|
|
1719
|
+
},
|
|
1720
|
+
display: {
|
|
1721
|
+
type: String,
|
|
1722
|
+
default: "b",
|
|
1723
|
+
validator: (e = "b") => {
|
|
1724
|
+
const c = e ? e.toLowerCase() : "";
|
|
1725
|
+
return ["b", "ib"].includes(c);
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1728
|
+
tabIndex: {
|
|
1729
|
+
type: Number,
|
|
1730
|
+
default: 0
|
|
1731
|
+
},
|
|
1732
|
+
hasTabIndexEnter: {
|
|
1733
|
+
type: Boolean,
|
|
1734
|
+
default: !0
|
|
1735
|
+
},
|
|
1736
|
+
hasTabIndexSpace: {
|
|
1737
|
+
type: Boolean,
|
|
1738
|
+
default: !0
|
|
1739
|
+
},
|
|
1740
|
+
ariaLabel: {
|
|
1741
|
+
type: String,
|
|
1742
|
+
default: "Alternate Text Button"
|
|
1743
|
+
},
|
|
1744
|
+
textColor: {
|
|
1745
|
+
type: String,
|
|
1746
|
+
default: "#ffffff"
|
|
1747
|
+
},
|
|
1748
|
+
textHoverColor: {
|
|
1749
|
+
type: String,
|
|
1750
|
+
default: "blue"
|
|
1751
|
+
},
|
|
1752
|
+
buttonColor: {
|
|
1753
|
+
type: String,
|
|
1754
|
+
default: "linear-gradient(120deg,#fa7faa,#ff9691 25%,#ffb287 50%,transparent 55%,transparent)"
|
|
1755
|
+
},
|
|
1756
|
+
buttonHoverColor: {
|
|
1757
|
+
type: String,
|
|
1758
|
+
default: "linear-gradient(11deg, #c83852, #b44092 50%, #6a5fc1)"
|
|
1759
|
+
},
|
|
1760
|
+
borderColor: {
|
|
1761
|
+
type: String,
|
|
1762
|
+
default: "#ffe54c"
|
|
1763
|
+
},
|
|
1764
|
+
showBorder: {
|
|
1765
|
+
type: Boolean,
|
|
1766
|
+
default: !0,
|
|
1767
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
1768
|
+
},
|
|
1769
|
+
borderRadius: {
|
|
1770
|
+
type: Number,
|
|
1771
|
+
default: 0.375
|
|
1772
|
+
},
|
|
1773
|
+
width: {
|
|
1774
|
+
type: Number,
|
|
1775
|
+
default: 86,
|
|
1776
|
+
validator: (e) => e || 86
|
|
1777
|
+
},
|
|
1778
|
+
paddingX: {
|
|
1779
|
+
type: Number,
|
|
1780
|
+
default: 1,
|
|
1781
|
+
validator: (e) => e || 1
|
|
1782
|
+
},
|
|
1783
|
+
paddingY: {
|
|
1784
|
+
type: Number,
|
|
1785
|
+
default: 0.2,
|
|
1786
|
+
validator: (e) => e || 0.2
|
|
1787
|
+
},
|
|
1788
|
+
disabled: {
|
|
1789
|
+
type: Boolean,
|
|
1790
|
+
default: !1,
|
|
1791
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
1792
|
+
},
|
|
1793
|
+
fontFamily: {
|
|
1794
|
+
type: String,
|
|
1795
|
+
default: "'Lato', sans-serif"
|
|
1796
|
+
},
|
|
1797
|
+
fontSize: {
|
|
1798
|
+
type: String,
|
|
1799
|
+
default: "1.6em",
|
|
1800
|
+
validator: (e) => e || "1.6em"
|
|
1801
|
+
},
|
|
1802
|
+
fontWeight: {
|
|
1803
|
+
type: Number,
|
|
1804
|
+
default: 200,
|
|
1805
|
+
validator: (e) => e || 200
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
emits: ["clicked"],
|
|
1809
|
+
setup(e, { emit: c }) {
|
|
1810
|
+
U((o) => ({
|
|
1811
|
+
"9a6bd336": v.value,
|
|
1812
|
+
af7fbc14: f.value,
|
|
1813
|
+
"0b36ee1b": l.value,
|
|
1814
|
+
d9aa144e: a.value,
|
|
1815
|
+
"01d4b136": n.value,
|
|
1816
|
+
c5bce062: s.value,
|
|
1817
|
+
"779f80e6": b.value
|
|
1818
|
+
}));
|
|
1819
|
+
const X = c, R = e, {
|
|
1820
|
+
display: W,
|
|
1821
|
+
buttonColor: T,
|
|
1822
|
+
borderColor: $,
|
|
1823
|
+
buttonHoverColor: N,
|
|
1824
|
+
showBorder: m,
|
|
1825
|
+
borderRadius: y,
|
|
1826
|
+
textColor: C,
|
|
1827
|
+
textHoverColor: S,
|
|
1828
|
+
width: h,
|
|
1829
|
+
paddingX: g,
|
|
1830
|
+
paddingY: V,
|
|
1831
|
+
disabled: u,
|
|
1832
|
+
fontFamily: x,
|
|
1833
|
+
fontSize: k,
|
|
1834
|
+
fontWeight: H
|
|
1835
|
+
} = J(R), r = t(() => {
|
|
1836
|
+
const o = u.value ? "component-disabled" : "", i = W.value !== "b" ? "inline-block" : "block", p = T.value ? T.value : "#ffffff", A = N.value ? N.value : "#000000", O = $.value ? $.value : "#ffe54c", F = !y.value || y.value < 0 ? 0 : y.value, q = [!1, !0].includes(m.value) ? m.value : !0, Z = C.value ? C.value : "#ffffff", ee = S.value ? S.value : "#000000", te = !h.value || h.value < 86 ? 86 : h.value, ae = !g.value || g.value < 0 ? 1 : g.value, oe = !V.value || V.value < 0 ? 0.2 : V.value, le = x.value ? x.value : "'Lato', sans-serif", ne = k.value ? k.value : "1.6em", ue = !H.value || H.value < 0 ? 200 : H.value;
|
|
1837
|
+
return {
|
|
1838
|
+
disabled: o,
|
|
1839
|
+
display: i,
|
|
1840
|
+
buttonColor: p,
|
|
1841
|
+
buttonHoverColor: A,
|
|
1842
|
+
borderColor: O,
|
|
1843
|
+
showBorder: q,
|
|
1844
|
+
borderRadius: F,
|
|
1845
|
+
textColor: Z,
|
|
1846
|
+
textHoverColor: ee,
|
|
1847
|
+
width: te,
|
|
1848
|
+
paddingX: ae,
|
|
1849
|
+
paddingY: oe,
|
|
1850
|
+
font: le,
|
|
1851
|
+
fontSize: ne,
|
|
1852
|
+
fontWeight: ue
|
|
1853
|
+
};
|
|
1854
|
+
}), B = t(() => r.value.disabled), d = t(() => ({
|
|
1855
|
+
display: r.value.display
|
|
1856
|
+
})), w = t(() => {
|
|
1857
|
+
const o = r.value;
|
|
1858
|
+
return {
|
|
1859
|
+
minWidth: "33px",
|
|
1860
|
+
width: o.display === "block" ? "auto" : `${o.width}px`,
|
|
1861
|
+
lineHeight: "1.42857143",
|
|
1862
|
+
fontSize: o.fontSize,
|
|
1863
|
+
fontWeight: o.fontWeight
|
|
1864
|
+
};
|
|
1865
|
+
}), v = t(() => r.value.font), n = t(() => {
|
|
1866
|
+
const o = r.value;
|
|
1867
|
+
return `${o.paddingY}rem ${o.paddingX}rem`;
|
|
1868
|
+
}), a = t(() => `${r.value.borderRadius}rem`), l = t(() => r.value.textColor), s = t(() => r.value.textHoverColor), f = t(() => r.value.buttonColor), b = t(() => r.value.buttonHoverColor), z = () => {
|
|
1869
|
+
X("clicked");
|
|
1870
|
+
};
|
|
1871
|
+
return (o, i) => e.nbId ? (_(), P("div", {
|
|
1872
|
+
key: 0,
|
|
1873
|
+
class: E(["nb-wrapper", B.value]),
|
|
1874
|
+
style: Y([d.value]),
|
|
1875
|
+
tabIndex: e.tabIndex,
|
|
1876
|
+
role: "button",
|
|
1877
|
+
"aria-label": e.ariaLabel,
|
|
1878
|
+
"aria-disabled": I(u),
|
|
1879
|
+
onClick: z,
|
|
1880
|
+
onKeydown: [
|
|
1881
|
+
i[0] || (i[0] = L((p) => !I(u) && e.hasTabIndexEnter && z(), ["enter"])),
|
|
1882
|
+
i[1] || (i[1] = L(j((p) => !I(u) && e.hasTabIndexSpace && z(), ["prevent"]), ["space"]))
|
|
1883
|
+
]
|
|
1884
|
+
}, [
|
|
1885
|
+
D("div", {
|
|
1886
|
+
id: e.nbId,
|
|
1887
|
+
class: "nb-reset component",
|
|
1888
|
+
style: Y([w.value])
|
|
1889
|
+
}, [
|
|
1890
|
+
M(o.$slots, "content", {}, () => [
|
|
1891
|
+
i[2] || (i[2] = G("Default Text"))
|
|
1892
|
+
], !0)
|
|
1893
|
+
], 12, dt)
|
|
1894
|
+
], 46, rt)) : K("", !0);
|
|
1895
|
+
}
|
|
1896
|
+
}), it = /* @__PURE__ */ Q(st, [["__scopeId", "data-v-551d4abb"]]);
|
|
1897
|
+
const ft = ["tabIndex", "aria-label", "aria-disabled"], bt = ["id"], ct = /* @__PURE__ */ Object.assign({
|
|
1898
|
+
name: "NbButtonNormal",
|
|
1899
|
+
inheritAttrs: !1
|
|
1900
|
+
}, {
|
|
1901
|
+
__name: "NbButtonNormal",
|
|
1902
|
+
props: {
|
|
1903
|
+
nbId: {
|
|
1904
|
+
type: String,
|
|
1905
|
+
required: !0
|
|
1906
|
+
},
|
|
1907
|
+
display: {
|
|
1908
|
+
type: String,
|
|
1909
|
+
default: "b",
|
|
1910
|
+
validator: (e = "b") => {
|
|
1911
|
+
const c = e ? e.toLowerCase() : "";
|
|
1912
|
+
return ["b", "ib"].includes(c);
|
|
1913
|
+
}
|
|
1914
|
+
},
|
|
1915
|
+
tabIndex: {
|
|
1916
|
+
type: Number,
|
|
1917
|
+
default: 0
|
|
1918
|
+
},
|
|
1919
|
+
hasTabIndexEnter: {
|
|
1920
|
+
type: Boolean,
|
|
1921
|
+
default: !0
|
|
1922
|
+
},
|
|
1923
|
+
hasTabIndexSpace: {
|
|
1924
|
+
type: Boolean,
|
|
1925
|
+
default: !0
|
|
1926
|
+
},
|
|
1927
|
+
ariaLabel: {
|
|
1928
|
+
type: String,
|
|
1929
|
+
default: "Alternate Text Button"
|
|
1930
|
+
},
|
|
1931
|
+
textColor: {
|
|
1932
|
+
type: String,
|
|
1933
|
+
default: "#ffffff"
|
|
1934
|
+
},
|
|
1935
|
+
textHoverColor: {
|
|
1936
|
+
type: String,
|
|
1937
|
+
default: "blue"
|
|
1938
|
+
},
|
|
1939
|
+
buttonColor: {
|
|
1940
|
+
type: String,
|
|
1941
|
+
default: "tomato"
|
|
1942
|
+
},
|
|
1943
|
+
buttonHoverColor: {
|
|
1944
|
+
type: String,
|
|
1945
|
+
default: "green"
|
|
1946
|
+
},
|
|
1947
|
+
borderColor: {
|
|
1948
|
+
type: String,
|
|
1949
|
+
default: "#ffe54c"
|
|
1950
|
+
},
|
|
1951
|
+
showBorder: {
|
|
1952
|
+
type: Boolean,
|
|
1953
|
+
default: !0,
|
|
1954
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
1955
|
+
},
|
|
1956
|
+
borderRadius: {
|
|
1957
|
+
type: Number,
|
|
1958
|
+
default: 0.375
|
|
1959
|
+
},
|
|
1960
|
+
width: {
|
|
1961
|
+
type: Number,
|
|
1962
|
+
default: 86,
|
|
1963
|
+
validator: (e) => e || 86
|
|
1964
|
+
},
|
|
1965
|
+
paddingX: {
|
|
1966
|
+
type: Number,
|
|
1967
|
+
default: 1,
|
|
1968
|
+
validator: (e) => e || 1
|
|
1969
|
+
},
|
|
1970
|
+
paddingY: {
|
|
1971
|
+
type: Number,
|
|
1972
|
+
default: 0.2,
|
|
1973
|
+
validator: (e) => e || 0.2
|
|
1974
|
+
},
|
|
1975
|
+
disabled: {
|
|
1976
|
+
type: Boolean,
|
|
1977
|
+
default: !1,
|
|
1978
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
1979
|
+
},
|
|
1980
|
+
fontFamily: {
|
|
1981
|
+
type: String,
|
|
1982
|
+
default: "'Lato', sans-serif"
|
|
1983
|
+
},
|
|
1984
|
+
fontSize: {
|
|
1985
|
+
type: String,
|
|
1986
|
+
default: "1.6em",
|
|
1987
|
+
validator: (e) => e || "1.6em"
|
|
1988
|
+
},
|
|
1989
|
+
fontWeight: {
|
|
1990
|
+
type: Number,
|
|
1991
|
+
default: 200,
|
|
1992
|
+
validator: (e) => e || 200
|
|
1993
|
+
},
|
|
1994
|
+
hasAnimation: {
|
|
1995
|
+
type: Boolean,
|
|
1996
|
+
default: !1
|
|
1997
|
+
},
|
|
1998
|
+
animationDuration: {
|
|
1999
|
+
type: Number,
|
|
2000
|
+
default: 0.3
|
|
2001
|
+
},
|
|
2002
|
+
animationDurationType: {
|
|
2003
|
+
type: String,
|
|
2004
|
+
default: "s",
|
|
2005
|
+
// ms, s, etc.
|
|
2006
|
+
validator: (e) => ["ms", "s"].indexOf(e) !== -1
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
emits: ["clicked"],
|
|
2010
|
+
setup(e, { emit: c }) {
|
|
2011
|
+
U((p) => ({
|
|
2012
|
+
"4459caa6": l.value,
|
|
2013
|
+
"5c71f5c8": s.value,
|
|
2014
|
+
"0b267cb7": b.value,
|
|
2015
|
+
"53d6f26a": o.value,
|
|
2016
|
+
"9c869d24": f.value,
|
|
2017
|
+
"5c0e9276": z.value
|
|
2018
|
+
}));
|
|
2019
|
+
const X = c, R = e, {
|
|
2020
|
+
display: W,
|
|
2021
|
+
buttonColor: T,
|
|
2022
|
+
borderColor: $,
|
|
2023
|
+
buttonHoverColor: N,
|
|
2024
|
+
showBorder: m,
|
|
2025
|
+
borderRadius: y,
|
|
2026
|
+
textColor: C,
|
|
2027
|
+
textHoverColor: S,
|
|
2028
|
+
width: h,
|
|
2029
|
+
paddingX: g,
|
|
2030
|
+
paddingY: V,
|
|
2031
|
+
disabled: u,
|
|
2032
|
+
fontFamily: x,
|
|
2033
|
+
fontSize: k,
|
|
2034
|
+
fontWeight: H,
|
|
2035
|
+
hasAnimation: r,
|
|
2036
|
+
animationDuration: B,
|
|
2037
|
+
animationDurationType: d
|
|
2038
|
+
} = J(R), w = t(() => {
|
|
2039
|
+
const p = u.value ? "component-disabled" : "", A = W.value !== "b" ? "inline-block" : "block", O = T.value ? T.value : "#ffffff", F = N.value ? N.value : "#000000", q = $.value ? $.value : "#ffe54c", Z = !y.value || y.value < 0 ? 0 : y.value, ee = [!1, !0].includes(m.value) ? m.value : !0, te = C.value ? C.value : "#ffffff", ae = S.value ? S.value : "#000000", oe = !h.value || h.value < 86 ? 86 : h.value, le = !g.value || g.value < 0 ? 1 : g.value, ne = !V.value || V.value < 0 ? 0.2 : V.value, ue = x.value ? x.value : "'Lato', sans-serif", re = k.value ? k.value : "1.6em", de = !H.value || H.value < 0 ? 200 : H.value, fe = r.value ? "component-transition" : "", be = !B.value || B.value < 0 ? 0.3 : B.value, ce = !d.value || d.value < 0 ? "ms" : d.value;
|
|
2040
|
+
return {
|
|
2041
|
+
disabled: p,
|
|
2042
|
+
display: A,
|
|
2043
|
+
buttonColor: O,
|
|
2044
|
+
buttonHoverColor: F,
|
|
2045
|
+
borderColor: q,
|
|
2046
|
+
showBorder: ee,
|
|
2047
|
+
borderRadius: Z,
|
|
2048
|
+
textColor: te,
|
|
2049
|
+
textHoverColor: ae,
|
|
2050
|
+
width: oe,
|
|
2051
|
+
paddingX: le,
|
|
2052
|
+
paddingY: ne,
|
|
2053
|
+
font: ue,
|
|
2054
|
+
fontSize: re,
|
|
2055
|
+
fontWeight: de,
|
|
2056
|
+
hasAnimation: fe,
|
|
2057
|
+
animationDuration: be,
|
|
2058
|
+
animationDurationType: ce
|
|
2059
|
+
};
|
|
2060
|
+
}), v = t(() => w.value.disabled), n = t(() => ({
|
|
2061
|
+
display: w.value.display
|
|
2062
|
+
})), a = t(() => {
|
|
2063
|
+
const p = w.value, A = p.display === "block" ? "auto" : `${p.width}px`;
|
|
2064
|
+
return {
|
|
2065
|
+
...p.showBorder ? { border: `1px solid ${p.borderColor}` } : {},
|
|
2066
|
+
borderRadius: `${p.borderRadius}rem`,
|
|
2067
|
+
minWidth: "33px",
|
|
2068
|
+
width: A,
|
|
2069
|
+
padding: `${p.paddingY}rem ${p.paddingX}rem`,
|
|
2070
|
+
lineHeight: "1.42857143",
|
|
2071
|
+
fontSize: p.fontSize,
|
|
2072
|
+
fontWeight: p.fontWeight
|
|
2073
|
+
};
|
|
2074
|
+
}), l = t(() => w.value.font), s = t(() => w.value.textColor), f = t(() => w.value.textHoverColor), b = t(() => w.value.buttonColor), z = t(() => w.value.buttonHoverColor), o = t(() => {
|
|
2075
|
+
const p = w.value;
|
|
2076
|
+
return p.hasAnimation ? `all ${p.animationDuration}${p.animationDurationType} ease-in-out` : "";
|
|
2077
|
+
}), i = () => {
|
|
2078
|
+
X("clicked");
|
|
2079
|
+
};
|
|
2080
|
+
return (p, A) => e.nbId ? (_(), P("div", {
|
|
2081
|
+
key: 0,
|
|
2082
|
+
class: E(["nb-wrapper", v.value]),
|
|
2083
|
+
style: Y([n.value]),
|
|
2084
|
+
tabIndex: e.tabIndex,
|
|
2085
|
+
role: "button",
|
|
2086
|
+
"aria-label": e.ariaLabel,
|
|
2087
|
+
"aria-disabled": I(u),
|
|
2088
|
+
onClick: i,
|
|
2089
|
+
onKeydown: [
|
|
2090
|
+
A[0] || (A[0] = L((O) => !I(u) && e.hasTabIndexEnter && i(), ["enter"])),
|
|
2091
|
+
A[1] || (A[1] = L(j((O) => !I(u) && e.hasTabIndexSpace && i(), ["prevent"]), ["space"]))
|
|
2092
|
+
]
|
|
2093
|
+
}, [
|
|
2094
|
+
D("div", {
|
|
2095
|
+
id: e.nbId,
|
|
2096
|
+
class: E(["nb-reset component", { "component-transition": I(r) }]),
|
|
2097
|
+
style: Y([a.value])
|
|
2098
|
+
}, [
|
|
2099
|
+
M(p.$slots, "content", {}, () => [
|
|
2100
|
+
A[2] || (A[2] = G("Default Text"))
|
|
2101
|
+
], !0)
|
|
2102
|
+
], 14, bt)
|
|
2103
|
+
], 46, ft)) : K("", !0);
|
|
2104
|
+
}
|
|
2105
|
+
}), vt = /* @__PURE__ */ Q(ct, [["__scopeId", "data-v-a7ab7bdc"]]);
|
|
2106
|
+
const pt = ["tabIndex", "aria-label", "aria-disabled"], yt = ["id"], gt = /* @__PURE__ */ Object.assign({
|
|
2107
|
+
name: "NbButtonShadow",
|
|
2108
|
+
inheritAttrs: !1
|
|
2109
|
+
}, {
|
|
2110
|
+
__name: "NbButtonShadow",
|
|
2111
|
+
props: {
|
|
2112
|
+
nbId: {
|
|
2113
|
+
type: String,
|
|
2114
|
+
required: !0
|
|
2115
|
+
},
|
|
2116
|
+
display: {
|
|
2117
|
+
type: String,
|
|
2118
|
+
default: "b",
|
|
2119
|
+
validator: (e = "b") => {
|
|
2120
|
+
const c = e ? e.toLowerCase() : "";
|
|
2121
|
+
return ["b", "ib"].includes(c);
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
tabIndex: {
|
|
2125
|
+
type: Number,
|
|
2126
|
+
default: 0
|
|
2127
|
+
},
|
|
2128
|
+
hasTabIndexEnter: {
|
|
2129
|
+
type: Boolean,
|
|
2130
|
+
default: !0
|
|
2131
|
+
},
|
|
2132
|
+
hasTabIndexSpace: {
|
|
2133
|
+
type: Boolean,
|
|
2134
|
+
default: !0
|
|
2135
|
+
},
|
|
2136
|
+
ariaLabel: {
|
|
2137
|
+
type: String,
|
|
2138
|
+
default: "Alternate Text Button"
|
|
2139
|
+
},
|
|
2140
|
+
textColor: {
|
|
2141
|
+
type: String,
|
|
2142
|
+
default: "#000000"
|
|
2143
|
+
},
|
|
2144
|
+
textHoverColor: {
|
|
2145
|
+
type: String,
|
|
2146
|
+
default: "tomato"
|
|
2147
|
+
},
|
|
2148
|
+
buttonColor: {
|
|
2149
|
+
type: String,
|
|
2150
|
+
default: "#faf77d"
|
|
2151
|
+
},
|
|
2152
|
+
buttonHoverColor: {
|
|
2153
|
+
type: String,
|
|
2154
|
+
default: "#faf77d"
|
|
2155
|
+
},
|
|
2156
|
+
buttonShadowColor: {
|
|
2157
|
+
type: String,
|
|
2158
|
+
default: "#01d7b0"
|
|
2159
|
+
},
|
|
2160
|
+
borderColor: {
|
|
2161
|
+
type: String,
|
|
2162
|
+
default: "#191a1b"
|
|
2163
|
+
},
|
|
2164
|
+
borderRadius: {
|
|
2165
|
+
type: Number,
|
|
2166
|
+
default: 0
|
|
2167
|
+
},
|
|
2168
|
+
width: {
|
|
2169
|
+
type: Number,
|
|
2170
|
+
default: 86,
|
|
2171
|
+
validator: (e) => e || 86
|
|
2172
|
+
},
|
|
2173
|
+
paddingX: {
|
|
2174
|
+
type: Number,
|
|
2175
|
+
default: 1,
|
|
2176
|
+
validator: (e) => e || 1
|
|
2177
|
+
},
|
|
2178
|
+
paddingY: {
|
|
2179
|
+
type: Number,
|
|
2180
|
+
default: 0.2,
|
|
2181
|
+
validator: (e) => e || 0.2
|
|
2182
|
+
},
|
|
2183
|
+
disabled: {
|
|
2184
|
+
type: Boolean,
|
|
2185
|
+
default: !1,
|
|
2186
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
2187
|
+
},
|
|
2188
|
+
fontFamily: {
|
|
2189
|
+
type: String,
|
|
2190
|
+
default: "'Lato', sans-serif"
|
|
2191
|
+
},
|
|
2192
|
+
fontSize: {
|
|
2193
|
+
type: String,
|
|
2194
|
+
default: "1.6em",
|
|
2195
|
+
validator: (e) => e || "1.6em"
|
|
2196
|
+
},
|
|
2197
|
+
fontWeight: {
|
|
2198
|
+
type: Number,
|
|
2199
|
+
default: 200,
|
|
2200
|
+
validator: (e) => e || 200
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
emits: ["clicked"],
|
|
2204
|
+
setup(e, { emit: c }) {
|
|
2205
|
+
U((o) => ({
|
|
2206
|
+
"932e9364": v.value,
|
|
2207
|
+
b5ada742: l.value,
|
|
2208
|
+
"30817ec4": n.value,
|
|
2209
|
+
de146bc2: f.value,
|
|
2210
|
+
"300cdfc6": s.value,
|
|
2211
|
+
"105400c6": a.value,
|
|
2212
|
+
a7aceb46: b.value
|
|
2213
|
+
}));
|
|
2214
|
+
const X = c, R = e, {
|
|
2215
|
+
display: W,
|
|
2216
|
+
buttonColor: T,
|
|
2217
|
+
borderColor: $,
|
|
2218
|
+
buttonHoverColor: N,
|
|
2219
|
+
buttonShadowColor: m,
|
|
2220
|
+
borderRadius: y,
|
|
2221
|
+
textColor: C,
|
|
2222
|
+
textHoverColor: S,
|
|
2223
|
+
width: h,
|
|
2224
|
+
paddingX: g,
|
|
2225
|
+
paddingY: V,
|
|
2226
|
+
disabled: u,
|
|
2227
|
+
fontFamily: x,
|
|
2228
|
+
fontSize: k,
|
|
2229
|
+
fontWeight: H
|
|
2230
|
+
} = J(R), r = t(() => {
|
|
2231
|
+
const o = u.value ? "component-disabled" : "", i = W.value !== "b" ? "inline-block" : "block", p = T.value ? T.value : "#ffffff", A = N.value ? N.value : "#000000", O = m.value ? m.value : "#01d7b0", F = $.value ? $.value : "#ffe54c", q = !y.value || y.value < 0 ? 0 : y.value, Z = C.value ? C.value : "#ffffff", ee = S.value ? S.value : "#000000", te = !h.value || h.value < 86 ? 86 : h.value, ae = !g.value || g.value < 0 ? 1 : g.value, oe = !V.value || V.value < 0 ? 0.2 : V.value, le = x.value ? x.value : "'Lato', sans-serif", ne = k.value ? k.value : "1.6em", ue = !H.value || H.value < 0 ? 200 : H.value;
|
|
2232
|
+
return {
|
|
2233
|
+
disabled: o,
|
|
2234
|
+
display: i,
|
|
2235
|
+
buttonColor: p,
|
|
2236
|
+
buttonHoverColor: A,
|
|
2237
|
+
buttonShadowColor: O,
|
|
2238
|
+
borderColor: F,
|
|
2239
|
+
borderRadius: q,
|
|
2240
|
+
textColor: Z,
|
|
2241
|
+
textHoverColor: ee,
|
|
2242
|
+
width: te,
|
|
2243
|
+
paddingX: ae,
|
|
2244
|
+
paddingY: oe,
|
|
2245
|
+
font: le,
|
|
2246
|
+
fontSize: ne,
|
|
2247
|
+
fontWeight: ue
|
|
2248
|
+
};
|
|
2249
|
+
}), B = t(() => r.value.disabled), d = t(() => ({
|
|
2250
|
+
display: r.value.display
|
|
2251
|
+
})), w = t(() => {
|
|
2252
|
+
const o = r.value, i = o.display === "block" ? "auto" : `${o.width}px`;
|
|
2253
|
+
return {
|
|
2254
|
+
border: `2px solid ${o.borderColor}`,
|
|
2255
|
+
borderRadius: `${o.borderRadius}rem`,
|
|
2256
|
+
minWidth: "33px",
|
|
2257
|
+
width: i,
|
|
2258
|
+
padding: `${o.paddingY}rem ${o.paddingX}rem`,
|
|
2259
|
+
lineHeight: "1.42857143",
|
|
2260
|
+
fontSize: o.fontSize,
|
|
2261
|
+
fontWeight: o.fontWeight
|
|
2262
|
+
};
|
|
2263
|
+
}), v = t(() => r.value.font), n = t(() => r.value.textColor), a = t(() => r.value.textHoverColor), l = t(() => r.value.buttonColor), s = t(() => r.value.buttonHoverColor), f = t(() => {
|
|
2264
|
+
const o = r.value;
|
|
2265
|
+
return `3px 3px 0 -1px ${o.buttonShadowColor}, 3px 3px 0 ${o.buttonShadowColor}`;
|
|
2266
|
+
}), b = t(() => {
|
|
2267
|
+
const o = r.value;
|
|
2268
|
+
return `0 0 0 -1px ${o.buttonShadowColor}, 0 0 0 ${o.buttonShadowColor};`;
|
|
2269
|
+
}), z = () => {
|
|
2270
|
+
X("clicked");
|
|
2271
|
+
};
|
|
2272
|
+
return (o, i) => e.nbId ? (_(), P("div", {
|
|
2273
|
+
key: 0,
|
|
2274
|
+
class: E(["nb-wrapper", B.value]),
|
|
2275
|
+
style: Y([d.value]),
|
|
2276
|
+
tabIndex: e.tabIndex,
|
|
2277
|
+
role: "button",
|
|
2278
|
+
"aria-label": e.ariaLabel,
|
|
2279
|
+
"aria-disabled": I(u),
|
|
2280
|
+
onClick: z,
|
|
2281
|
+
onKeydown: [
|
|
2282
|
+
i[0] || (i[0] = L((p) => !I(u) && e.hasTabIndexEnter && z(), ["enter"])),
|
|
2283
|
+
i[1] || (i[1] = L(j((p) => !I(u) && e.hasTabIndexSpace && z(), ["prevent"]), ["space"]))
|
|
2284
|
+
]
|
|
2285
|
+
}, [
|
|
2286
|
+
D("div", {
|
|
2287
|
+
id: e.nbId,
|
|
2288
|
+
class: "nb-reset component",
|
|
2289
|
+
style: Y([w.value])
|
|
2290
|
+
}, [
|
|
2291
|
+
M(o.$slots, "content", {}, () => [
|
|
2292
|
+
i[2] || (i[2] = G("Default Text"))
|
|
2293
|
+
], !0)
|
|
2294
|
+
], 12, yt)
|
|
2295
|
+
], 46, pt)) : K("", !0);
|
|
2296
|
+
}
|
|
2297
|
+
}), mt = /* @__PURE__ */ Q(gt, [["__scopeId", "data-v-40806072"]]);
|
|
2298
|
+
const Vt = ["tabIndex", "aria-label", "aria-disabled"], xt = ["id"], Ct = /* @__PURE__ */ Object.assign({
|
|
2299
|
+
name: "NbButtonUnderlineExpand",
|
|
2300
|
+
inheritAttrs: !1
|
|
2301
|
+
}, {
|
|
2302
|
+
__name: "NbButtonUnderlineExpand",
|
|
2303
|
+
props: {
|
|
2304
|
+
nbId: {
|
|
2305
|
+
type: String,
|
|
2306
|
+
required: !0
|
|
2307
|
+
},
|
|
2308
|
+
display: {
|
|
2309
|
+
type: String,
|
|
2310
|
+
default: "b",
|
|
2311
|
+
validator: (e = "b") => {
|
|
2312
|
+
const c = e ? e.toLowerCase() : "";
|
|
2313
|
+
return ["b", "ib"].includes(c);
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
tabIndex: {
|
|
2317
|
+
type: Number,
|
|
2318
|
+
default: 0
|
|
2319
|
+
},
|
|
2320
|
+
hasTabIndexEnter: {
|
|
2321
|
+
type: Boolean,
|
|
2322
|
+
default: !0
|
|
2323
|
+
},
|
|
2324
|
+
hasTabIndexSpace: {
|
|
2325
|
+
type: Boolean,
|
|
2326
|
+
default: !0
|
|
2327
|
+
},
|
|
2328
|
+
ariaLabel: {
|
|
2329
|
+
type: String,
|
|
2330
|
+
default: "Alternate Text Button"
|
|
2331
|
+
},
|
|
2332
|
+
textColor: {
|
|
2333
|
+
type: String,
|
|
2334
|
+
default: "rgb(0, 105, 255)"
|
|
2335
|
+
},
|
|
2336
|
+
textHoverColor: {
|
|
2337
|
+
type: String,
|
|
2338
|
+
default: "#ffffff"
|
|
2339
|
+
},
|
|
2340
|
+
borderColor: {
|
|
2341
|
+
type: String,
|
|
2342
|
+
default: "rgb(0, 105, 255)"
|
|
2343
|
+
},
|
|
2344
|
+
borderHoverColor: {
|
|
2345
|
+
type: String,
|
|
2346
|
+
default: "rgb(20, 51, 214)"
|
|
2347
|
+
},
|
|
2348
|
+
borderHeight: {
|
|
2349
|
+
type: Number,
|
|
2350
|
+
default: 1.5,
|
|
2351
|
+
validator: (e) => e || 1.5
|
|
2352
|
+
},
|
|
2353
|
+
width: {
|
|
2354
|
+
type: Number,
|
|
2355
|
+
default: 86,
|
|
2356
|
+
validator: (e) => e || 86
|
|
2357
|
+
},
|
|
2358
|
+
paddingX: {
|
|
2359
|
+
type: Number,
|
|
2360
|
+
default: 1,
|
|
2361
|
+
validator: (e) => e || 1
|
|
2362
|
+
},
|
|
2363
|
+
paddingY: {
|
|
2364
|
+
type: Number,
|
|
2365
|
+
default: 0.2,
|
|
2366
|
+
validator: (e) => e || 0.2
|
|
2367
|
+
},
|
|
2368
|
+
disabled: {
|
|
2369
|
+
type: Boolean,
|
|
2370
|
+
default: !1,
|
|
2371
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
2372
|
+
},
|
|
2373
|
+
fontFamily: {
|
|
2374
|
+
type: String,
|
|
2375
|
+
default: "'Lato', sans-serif"
|
|
2376
|
+
},
|
|
2377
|
+
fontSize: {
|
|
2378
|
+
type: String,
|
|
2379
|
+
default: "1.6em",
|
|
2380
|
+
validator: (e) => e || "1.6em"
|
|
2381
|
+
},
|
|
2382
|
+
fontWeight: {
|
|
2383
|
+
type: Number,
|
|
2384
|
+
default: 200,
|
|
2385
|
+
validator: (e) => e || 200
|
|
2386
|
+
},
|
|
2387
|
+
textAlign: {
|
|
2388
|
+
type: String,
|
|
2389
|
+
default: "middle",
|
|
2390
|
+
validator: (e) => ["left", "center", "right"].includes(e)
|
|
2391
|
+
}
|
|
2392
|
+
},
|
|
2393
|
+
emits: ["clicked"],
|
|
2394
|
+
setup(e, { emit: c }) {
|
|
2395
|
+
U((b) => ({
|
|
2396
|
+
"7a81bde5": w.value,
|
|
2397
|
+
"7d23359b": v.value,
|
|
2398
|
+
"348d6e88": a.value,
|
|
2399
|
+
"4d2cba24": s.value,
|
|
2400
|
+
fd940f62: n.value,
|
|
2401
|
+
aa789c64: l.value
|
|
2402
|
+
}));
|
|
2403
|
+
const X = c, R = e, {
|
|
2404
|
+
display: W,
|
|
2405
|
+
borderColor: T,
|
|
2406
|
+
borderHoverColor: $,
|
|
2407
|
+
borderHeight: N,
|
|
2408
|
+
textColor: m,
|
|
2409
|
+
textHoverColor: y,
|
|
2410
|
+
width: C,
|
|
2411
|
+
paddingX: S,
|
|
2412
|
+
paddingY: h,
|
|
2413
|
+
disabled: g,
|
|
2414
|
+
fontFamily: V,
|
|
2415
|
+
fontSize: u,
|
|
2416
|
+
fontWeight: x,
|
|
2417
|
+
textAlign: k
|
|
2418
|
+
} = J(R), H = t(() => {
|
|
2419
|
+
const b = g.value ? "component-disabled" : "", z = W.value !== "b" ? "inline-block" : "block", o = T.value ? T.value : "#ffffff", i = $.value ? $.value : "#000000", p = N.value ? N.value : 1.5, A = m.value ? m.value : "#ffffff", O = y.value ? y.value : "#000000", F = !C.value || C.value < 86 ? 86 : C.value, q = !S.value || S.value < 0 ? 1 : S.value, Z = !h.value || h.value < 0 ? 0.2 : h.value, ee = V.value ? V.value : "'Lato', sans-serif", te = u.value ? u.value : "1.6em", ae = !x.value || x.value < 0 ? 200 : x.value, oe = k.value ? k.value : "center";
|
|
2420
|
+
return {
|
|
2421
|
+
disabled: b,
|
|
2422
|
+
display: z,
|
|
2423
|
+
borderColor: o,
|
|
2424
|
+
borderHoverColor: i,
|
|
2425
|
+
borderHeight: p,
|
|
2426
|
+
textColor: A,
|
|
2427
|
+
textHoverColor: O,
|
|
2428
|
+
width: F,
|
|
2429
|
+
paddingX: q,
|
|
2430
|
+
paddingY: Z,
|
|
2431
|
+
font: ee,
|
|
2432
|
+
fontSize: te,
|
|
2433
|
+
fontWeight: ae,
|
|
2434
|
+
textAlign: oe
|
|
2435
|
+
};
|
|
2436
|
+
}), r = t(() => H.value.disabled), B = t(() => {
|
|
2437
|
+
const b = H.value;
|
|
2438
|
+
return {
|
|
2439
|
+
display: b.display,
|
|
2440
|
+
textAlign: b.textAlign
|
|
2441
|
+
};
|
|
2442
|
+
}), d = t(() => {
|
|
2443
|
+
const b = H.value;
|
|
2444
|
+
return {
|
|
2445
|
+
minWidth: "33px",
|
|
2446
|
+
width: b.display === "block" ? "auto" : `${b.width}px`,
|
|
2447
|
+
padding: `${b.paddingY}rem ${b.paddingX}rem`,
|
|
2448
|
+
lineHeight: "1.42857143",
|
|
2449
|
+
fontSize: b.fontSize,
|
|
2450
|
+
fontWeight: b.fontWeight
|
|
2451
|
+
};
|
|
2452
|
+
}), w = t(() => H.value.font), v = t(() => H.value.textColor), n = t(() => H.value.textHoverColor), a = t(() => H.value.borderColor), l = t(() => H.value.borderHoverColor), s = t(() => `${H.value.borderHeight}px`), f = () => {
|
|
2453
|
+
X("clicked");
|
|
2454
|
+
};
|
|
2455
|
+
return (b, z) => e.nbId ? (_(), P("div", {
|
|
2456
|
+
key: 0,
|
|
2457
|
+
class: E(["nb-wrapper", r.value]),
|
|
2458
|
+
style: Y([B.value]),
|
|
2459
|
+
tabIndex: e.tabIndex,
|
|
2460
|
+
role: "button",
|
|
2461
|
+
"aria-label": e.ariaLabel,
|
|
2462
|
+
"aria-disabled": I(g),
|
|
2463
|
+
onClick: f,
|
|
2464
|
+
onKeydown: [
|
|
2465
|
+
z[0] || (z[0] = L((o) => !I(g) && e.hasTabIndexEnter && f(), ["enter"])),
|
|
2466
|
+
z[1] || (z[1] = L(j((o) => !I(g) && e.hasTabIndexSpace && f(), ["prevent"]), ["space"]))
|
|
2467
|
+
]
|
|
2468
|
+
}, [
|
|
2469
|
+
D("div", {
|
|
2470
|
+
id: e.nbId,
|
|
2471
|
+
class: "nb-reset component",
|
|
2472
|
+
style: Y([d.value])
|
|
2473
|
+
}, [
|
|
2474
|
+
M(b.$slots, "content", {}, () => [
|
|
2475
|
+
z[2] || (z[2] = G("Default Text"))
|
|
2476
|
+
], !0)
|
|
2477
|
+
], 12, xt)
|
|
2478
|
+
], 46, Vt)) : K("", !0);
|
|
2479
|
+
}
|
|
2480
|
+
}), St = /* @__PURE__ */ Q(Ct, [["__scopeId", "data-v-2c21f930"]]);
|
|
2481
|
+
const ht = ["tabIndex", "aria-label", "aria-disabled"], Bt = ["id"], wt = /* @__PURE__ */ Object.assign({
|
|
2482
|
+
name: "NbButtonUnderlineExpand",
|
|
2483
|
+
inheritAttrs: !1
|
|
2484
|
+
}, {
|
|
2485
|
+
__name: "NbButtonUnderlineFill",
|
|
2486
|
+
props: {
|
|
2487
|
+
nbId: {
|
|
2488
|
+
type: String,
|
|
2489
|
+
required: !0
|
|
2490
|
+
},
|
|
2491
|
+
display: {
|
|
2492
|
+
type: String,
|
|
2493
|
+
default: "b",
|
|
2494
|
+
validator: (e = "b") => {
|
|
2495
|
+
const c = e ? e.toLowerCase() : "";
|
|
2496
|
+
return ["b", "ib"].includes(c);
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
tabIndex: {
|
|
2500
|
+
type: Number,
|
|
2501
|
+
default: 0
|
|
2502
|
+
},
|
|
2503
|
+
hasTabIndexEnter: {
|
|
2504
|
+
type: Boolean,
|
|
2505
|
+
default: !0
|
|
2506
|
+
},
|
|
2507
|
+
hasTabIndexSpace: {
|
|
2508
|
+
type: Boolean,
|
|
2509
|
+
default: !0
|
|
2510
|
+
},
|
|
2511
|
+
ariaLabel: {
|
|
2512
|
+
type: String,
|
|
2513
|
+
default: "Alternate Text Button"
|
|
2514
|
+
},
|
|
2515
|
+
textColor: {
|
|
2516
|
+
type: String,
|
|
2517
|
+
default: "rgb(0, 105, 255)"
|
|
2518
|
+
},
|
|
2519
|
+
textHoverColor: {
|
|
2520
|
+
type: String,
|
|
2521
|
+
default: "#ffffff"
|
|
2522
|
+
},
|
|
2523
|
+
buttonColor: {
|
|
2524
|
+
type: String,
|
|
2525
|
+
default: "rgb(0, 105, 255)"
|
|
2526
|
+
},
|
|
2527
|
+
buttonHoverColor: {
|
|
2528
|
+
type: String,
|
|
2529
|
+
default: "rgb(20, 51, 214)"
|
|
2530
|
+
},
|
|
2531
|
+
borderColor: {
|
|
2532
|
+
type: String,
|
|
2533
|
+
default: "#ffe54c"
|
|
2534
|
+
},
|
|
2535
|
+
width: {
|
|
2536
|
+
type: Number,
|
|
2537
|
+
default: 86,
|
|
2538
|
+
validator: (e) => e || 86
|
|
2539
|
+
},
|
|
2540
|
+
paddingX: {
|
|
2541
|
+
type: Number,
|
|
2542
|
+
default: 1,
|
|
2543
|
+
validator: (e) => e || 1
|
|
2544
|
+
},
|
|
2545
|
+
paddingY: {
|
|
2546
|
+
type: Number,
|
|
2547
|
+
default: 0.2,
|
|
2548
|
+
validator: (e) => e || 0.2
|
|
2549
|
+
},
|
|
2550
|
+
disabled: {
|
|
2551
|
+
type: Boolean,
|
|
2552
|
+
default: !1,
|
|
2553
|
+
validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
|
|
2554
|
+
},
|
|
2555
|
+
fontFamily: {
|
|
2556
|
+
type: String,
|
|
2557
|
+
default: "'Lato', sans-serif"
|
|
2558
|
+
},
|
|
2559
|
+
fontSize: {
|
|
2560
|
+
type: String,
|
|
2561
|
+
default: "1.6em",
|
|
2562
|
+
validator: (e) => e || "1.6em"
|
|
2563
|
+
},
|
|
2564
|
+
fontWeight: {
|
|
2565
|
+
type: Number,
|
|
2566
|
+
default: 200,
|
|
2567
|
+
validator: (e) => e || 200
|
|
2568
|
+
},
|
|
2569
|
+
textAlign: {
|
|
2570
|
+
type: String,
|
|
2571
|
+
default: "middle",
|
|
2572
|
+
validator: (e) => ["left", "center", "right"].includes(e)
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
emits: ["clicked"],
|
|
2576
|
+
setup(e, { emit: c }) {
|
|
2577
|
+
U((s) => ({
|
|
2578
|
+
49544310: d.value,
|
|
2579
|
+
69196589: n.value,
|
|
2580
|
+
"0abc0b24": w.value,
|
|
2581
|
+
b41efd9a: a.value,
|
|
2582
|
+
bf3f8148: v.value
|
|
2583
|
+
}));
|
|
2584
|
+
const X = c, R = e, {
|
|
2585
|
+
display: W,
|
|
2586
|
+
buttonColor: T,
|
|
2587
|
+
buttonHoverColor: $,
|
|
2588
|
+
textColor: N,
|
|
2589
|
+
textHoverColor: m,
|
|
2590
|
+
width: y,
|
|
2591
|
+
paddingX: C,
|
|
2592
|
+
paddingY: S,
|
|
2593
|
+
disabled: h,
|
|
2594
|
+
fontFamily: g,
|
|
2595
|
+
fontSize: V,
|
|
2596
|
+
fontWeight: u,
|
|
2597
|
+
textAlign: x
|
|
2598
|
+
} = J(R), k = t(() => {
|
|
2599
|
+
const s = h.value ? "component-disabled" : "", f = W.value !== "b" ? "inline-block" : "block", b = T.value ? T.value : "#ffffff", z = $.value ? $.value : "#000000", o = N.value ? N.value : "#ffffff", i = m.value ? m.value : "#000000", p = !y.value || y.value < 86 ? 86 : y.value, A = !C.value || C.value < 0 ? 1 : C.value, O = !S.value || S.value < 0 ? 0.2 : S.value, F = g.value ? g.value : "'Lato', sans-serif", q = V.value ? V.value : "1.6em", Z = !u.value || u.value < 0 ? 200 : u.value, ee = x.value ? x.value : "center";
|
|
2600
|
+
return {
|
|
2601
|
+
disabled: s,
|
|
2602
|
+
display: f,
|
|
2603
|
+
buttonColor: b,
|
|
2604
|
+
buttonHoverColor: z,
|
|
2605
|
+
textColor: o,
|
|
2606
|
+
textHoverColor: i,
|
|
2607
|
+
width: p,
|
|
2608
|
+
paddingX: A,
|
|
2609
|
+
paddingY: O,
|
|
2610
|
+
font: F,
|
|
2611
|
+
fontSize: q,
|
|
2612
|
+
fontWeight: Z,
|
|
2613
|
+
textAlign: ee
|
|
2614
|
+
};
|
|
2615
|
+
}), H = t(() => k.value.disabled), r = t(() => {
|
|
2616
|
+
const s = k.value;
|
|
2617
|
+
return {
|
|
2618
|
+
display: s.display,
|
|
2619
|
+
textAlign: s.textAlign
|
|
2620
|
+
};
|
|
2621
|
+
}), B = t(() => {
|
|
2622
|
+
const s = k.value;
|
|
2623
|
+
return {
|
|
2624
|
+
minWidth: "33px",
|
|
2625
|
+
width: s.display === "block" ? "auto" : `${s.width}px`,
|
|
2626
|
+
padding: `${s.paddingY}rem ${s.paddingX}rem`,
|
|
2627
|
+
lineHeight: "1.42857143",
|
|
2628
|
+
fontSize: s.fontSize,
|
|
2629
|
+
fontWeight: s.fontWeight
|
|
2630
|
+
};
|
|
2631
|
+
}), d = t(() => k.value.font), w = t(() => k.value.textColor), v = t(() => k.value.textHoverColor), n = t(() => {
|
|
2632
|
+
const s = k.value;
|
|
2633
|
+
return `linear-gradient(${s.buttonColor}, ${s.buttonColor}) center bottom / 1px 1px repeat-x`;
|
|
2634
|
+
}), a = t(() => {
|
|
2635
|
+
const s = k.value;
|
|
2636
|
+
return `linear-gradient(${s.buttonHoverColor}, ${s.buttonHoverColor}) center bottom / 100% 100% repeat-x`;
|
|
2637
|
+
}), l = () => {
|
|
2638
|
+
X("clicked");
|
|
2639
|
+
};
|
|
2640
|
+
return (s, f) => e.nbId ? (_(), P("div", {
|
|
2641
|
+
key: 0,
|
|
2642
|
+
class: E(["nb-wrapper", H.value]),
|
|
2643
|
+
style: Y([r.value]),
|
|
2644
|
+
tabIndex: e.tabIndex,
|
|
2645
|
+
role: "button",
|
|
2646
|
+
"aria-label": e.ariaLabel,
|
|
2647
|
+
"aria-disabled": I(h),
|
|
2648
|
+
onClick: l,
|
|
2649
|
+
onKeydown: [
|
|
2650
|
+
f[0] || (f[0] = L((b) => !I(h) && e.hasTabIndexEnter && l(), ["enter"])),
|
|
2651
|
+
f[1] || (f[1] = L(j((b) => !I(h) && e.hasTabIndexSpace && l(), ["prevent"]), ["space"]))
|
|
2652
|
+
]
|
|
2653
|
+
}, [
|
|
2654
|
+
D("div", {
|
|
2655
|
+
id: e.nbId,
|
|
2656
|
+
class: "nb-reset component",
|
|
2657
|
+
style: Y([B.value])
|
|
2658
|
+
}, [
|
|
2659
|
+
M(s.$slots, "content", {}, () => [
|
|
2660
|
+
f[2] || (f[2] = G("Default Text"))
|
|
2661
|
+
], !0)
|
|
2662
|
+
], 12, Bt)
|
|
2663
|
+
], 46, ht)) : K("", !0);
|
|
1506
2664
|
}
|
|
1507
|
-
}),
|
|
1508
|
-
NbButtonVavaGame:
|
|
1509
|
-
NbButtonShowHover:
|
|
1510
|
-
NbButtonPrevNext:
|
|
1511
|
-
NbButtonMechanical:
|
|
1512
|
-
NbButtonMechanical2:
|
|
1513
|
-
NbButtonHamburger:
|
|
1514
|
-
NbButtonColorOutside:
|
|
1515
|
-
NbButtonColorHover:
|
|
1516
|
-
NbButtonAlternateText:
|
|
1517
|
-
NbButtonBack:
|
|
1518
|
-
|
|
2665
|
+
}), It = /* @__PURE__ */ Q(wt, [["__scopeId", "data-v-d0692556"]]), se = {
|
|
2666
|
+
NbButtonVavaGame: Ce,
|
|
2667
|
+
NbButtonShowHover: we,
|
|
2668
|
+
NbButtonPrevNext: Te,
|
|
2669
|
+
NbButtonMechanical: Ye,
|
|
2670
|
+
NbButtonMechanical2: Ae,
|
|
2671
|
+
NbButtonHamburger: Fe,
|
|
2672
|
+
NbButtonColorOutside: je,
|
|
2673
|
+
NbButtonColorHover: Ue,
|
|
2674
|
+
NbButtonAlternateText: at,
|
|
2675
|
+
NbButtonBack: ut,
|
|
2676
|
+
NbButtonNormal: vt,
|
|
2677
|
+
NbButtonShadow: mt,
|
|
2678
|
+
NbButtonUnderlineExpand: St,
|
|
2679
|
+
NbButtonUnderlineFill: It,
|
|
2680
|
+
NbButtonGradientBorderToBackground: it
|
|
2681
|
+
}, Nt = {
|
|
1519
2682
|
install(e) {
|
|
1520
|
-
for (const
|
|
1521
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1522
|
-
const
|
|
1523
|
-
e.component(
|
|
2683
|
+
for (const c in se)
|
|
2684
|
+
if (Object.prototype.hasOwnProperty.call(se, c)) {
|
|
2685
|
+
const X = se[c];
|
|
2686
|
+
e.component(X.name, X);
|
|
1524
2687
|
}
|
|
1525
2688
|
}
|
|
1526
2689
|
};
|
|
1527
2690
|
export {
|
|
1528
|
-
|
|
2691
|
+
Nt as default
|
|
1529
2692
|
};
|