@neobrut-vue/core 0.1.1 → 0.2.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/CHANGELOG.md +5 -0
- package/README.md +30 -2
- package/dist/components/NbButtonGroup/NbButtonGroup.vue.d.ts +23 -0
- package/dist/components/NbButtonGroup/index.d.ts +1 -0
- package/dist/components/NbKbd/NbKbd.vue.d.ts +22 -0
- package/dist/components/NbKbd/index.d.ts +1 -0
- package/dist/components/NbLink/NbLink.vue.d.ts +26 -0
- package/dist/components/NbLink/index.d.ts +2 -0
- package/dist/components/NbMarker/NbMarker.vue.d.ts +23 -0
- package/dist/components/NbMarker/index.d.ts +2 -0
- package/dist/components/NbToggle/NbToggle.vue.d.ts +35 -0
- package/dist/components/NbToggle/index.d.ts +2 -0
- package/dist/index.d.ts +9 -1
- package/dist/neobrut-vue.css +1 -1
- package/dist/neobrut-vue.js +663 -567
- package/package.json +1 -1
package/dist/neobrut-vue.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as v, openBlock as
|
|
2
|
-
import { AccordionRoot as
|
|
3
|
-
function
|
|
1
|
+
import { defineComponent as v, openBlock as o, createBlock as N, unref as a, withCtx as u, renderSlot as _, createVNode as m, createElementVNode as c, toDisplayString as p, computed as $, createElementBlock as i, normalizeClass as B, createCommentVNode as h, createTextVNode as V, Fragment as P, renderList as D, mergeProps as k, ref as x, watch as M, onBeforeUnmount as F, withModifiers as K, nextTick as j, useSlots as H, resolveDynamicComponent as J, normalizeStyle as O, inject as X, provide as Q, withDirectives as W, vShow as Y } from "vue";
|
|
2
|
+
import { AccordionRoot as Z, AccordionItem as ee, AccordionHeader as te, AccordionTrigger as ae, AccordionContent as le, AspectRatio as ne, AvatarRoot as oe, AvatarImage as se, AvatarFallback as ie, ComboboxRoot as de, ComboboxAnchor as re, ComboboxInput as ue, ComboboxTrigger as ce, ComboboxPortal as be, ComboboxContent as fe, ComboboxViewport as me, ComboboxEmpty as pe, ComboboxItem as he, ComboboxItemIndicator as ve, DropdownMenuRoot as ge, DropdownMenuTrigger as _e, DropdownMenuPortal as ye, DropdownMenuContent as $e, DropdownMenuItem as Ne, DropdownMenuSeparator as ke, NumberFieldRoot as Ie, NumberFieldDecrement as Be, NumberFieldInput as Ve, NumberFieldIncrement as we, PaginationRoot as xe, PaginationPrev as Se, PaginationList as Te, PaginationListItem as Ae, PaginationEllipsis as Ce, PaginationNext as Pe, PopoverRoot as De, PopoverTrigger as Me, PopoverPortal as Re, PopoverContent as qe, PopoverClose as Oe, ProgressRoot as Ee, ProgressIndicator as Ge, ScrollAreaRoot as ze, ScrollAreaViewport as Le, ScrollAreaScrollbar as Ue, ScrollAreaThumb as Fe, SelectRoot as Ke, SelectTrigger as je, SelectValue as He, SelectIcon as Je, SelectPortal as Xe, SelectContent as Qe, SelectScrollUpButton as We, SelectViewport as Ye, SelectScrollDownButton as Ze, SelectItem as et, SelectItemText as tt, SelectItemIndicator as at, Separator as lt, SliderRoot as nt, SliderTrack as ot, SliderRange as st, SliderThumb as it, ToastProvider as dt, ToastRoot as rt, ToastTitle as ut, ToastDescription as ct, ToastClose as bt, ToastViewport as ft, Toggle as mt, ToggleGroupRoot as pt, ToggleGroupItem as ht } from "reka-ui";
|
|
3
|
+
function vt(e) {
|
|
4
4
|
return {
|
|
5
|
-
install(
|
|
6
|
-
Object.entries(e).forEach(([t, s]) =>
|
|
5
|
+
install(n) {
|
|
6
|
+
Object.entries(e).forEach(([t, s]) => n.component(t, s));
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const gt = /* @__PURE__ */ v({
|
|
11
11
|
__name: "NbAccordion",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {},
|
|
@@ -16,9 +16,9 @@ const ht = /* @__PURE__ */ v({
|
|
|
16
16
|
disabled: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
const t =
|
|
21
|
-
return (s, l) => (
|
|
19
|
+
setup(e, { emit: n }) {
|
|
20
|
+
const t = n;
|
|
21
|
+
return (s, l) => (o(), N(a(Z), {
|
|
22
22
|
class: "nb-root nb-accordion",
|
|
23
23
|
type: "single",
|
|
24
24
|
"model-value": e.modelValue,
|
|
@@ -27,13 +27,13 @@ const ht = /* @__PURE__ */ v({
|
|
|
27
27
|
disabled: e.disabled,
|
|
28
28
|
"onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
30
|
+
default: u(() => [
|
|
31
31
|
_(s.$slots, "default")
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
34
34
|
}, 8, ["model-value", "default-value", "collapsible", "disabled"]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), _t = { class: "nb-accordion__body" }, yt = /* @__PURE__ */ v({
|
|
37
37
|
__name: "NbAccordionItem",
|
|
38
38
|
props: {
|
|
39
39
|
value: {},
|
|
@@ -41,24 +41,24 @@ const ht = /* @__PURE__ */ v({
|
|
|
41
41
|
disabled: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
return (
|
|
44
|
+
return (n, t) => (o(), N(a(ee), {
|
|
45
45
|
class: "nb-accordion__item",
|
|
46
46
|
value: e.value,
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
m(a(
|
|
51
|
-
default:
|
|
52
|
-
m(a(
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
t[0] || (t[0] =
|
|
49
|
+
default: u(() => [
|
|
50
|
+
m(a(te), { class: "nb-accordion__header" }, {
|
|
51
|
+
default: u(() => [
|
|
52
|
+
m(a(ae), { class: "nb-accordion__trigger" }, {
|
|
53
|
+
default: u(() => [
|
|
54
|
+
c("span", null, p(e.title), 1),
|
|
55
|
+
t[0] || (t[0] = c("svg", {
|
|
56
56
|
class: "nb-accordion__icon",
|
|
57
57
|
viewBox: "0 0 16 16",
|
|
58
58
|
"aria-hidden": "true",
|
|
59
59
|
focusable: "false"
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
c("path", { d: "m3 6 5 5 5-5" })
|
|
62
62
|
], -1))
|
|
63
63
|
]),
|
|
64
64
|
_: 1
|
|
@@ -66,10 +66,10 @@ const ht = /* @__PURE__ */ v({
|
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
}),
|
|
69
|
-
m(a(
|
|
70
|
-
default:
|
|
71
|
-
|
|
72
|
-
_(
|
|
69
|
+
m(a(le), { class: "nb-accordion__content" }, {
|
|
70
|
+
default: u(() => [
|
|
71
|
+
c("div", _t, [
|
|
72
|
+
_(n.$slots, "default")
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
_: 3
|
|
@@ -78,41 +78,41 @@ const ht = /* @__PURE__ */ v({
|
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["value", "disabled"]));
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), $t = /* @__PURE__ */ v({
|
|
82
82
|
__name: "NbAspectRatio",
|
|
83
83
|
props: {
|
|
84
84
|
ratio: { default: 1 }
|
|
85
85
|
},
|
|
86
86
|
setup(e) {
|
|
87
|
-
return (
|
|
87
|
+
return (n, t) => (o(), N(a(ne), {
|
|
88
88
|
class: "nb-root nb-aspect-ratio",
|
|
89
89
|
ratio: e.ratio
|
|
90
90
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
_(
|
|
91
|
+
default: u(() => [
|
|
92
|
+
_(n.$slots, "default")
|
|
93
93
|
]),
|
|
94
94
|
_: 3
|
|
95
95
|
}, 8, ["ratio"]));
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
function
|
|
98
|
+
function C(...e) {
|
|
99
99
|
return e.filter(Boolean).join(" ");
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const Nt = /* @__PURE__ */ v({
|
|
102
102
|
__name: "NbBadge",
|
|
103
103
|
props: {
|
|
104
104
|
tone: { default: "primary" },
|
|
105
105
|
size: { default: "md" }
|
|
106
106
|
},
|
|
107
107
|
setup(e) {
|
|
108
|
-
const
|
|
109
|
-
return (s, l) => (
|
|
110
|
-
class:
|
|
108
|
+
const n = e, t = $(() => C(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
|
|
109
|
+
return (s, l) => (o(), i("span", {
|
|
110
|
+
class: B(["nb-root nb-badge", t.value])
|
|
111
111
|
}, [
|
|
112
112
|
_(s.$slots, "default")
|
|
113
113
|
], 2));
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), kt = /* @__PURE__ */ v({
|
|
116
116
|
__name: "NbAvatar",
|
|
117
117
|
props: {
|
|
118
118
|
name: {},
|
|
@@ -121,26 +121,26 @@ const yt = /* @__PURE__ */ v({
|
|
|
121
121
|
tone: { default: "primary" }
|
|
122
122
|
},
|
|
123
123
|
setup(e) {
|
|
124
|
-
const
|
|
125
|
-
return (s, l) => (
|
|
126
|
-
class:
|
|
124
|
+
const n = e, t = $(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
|
|
125
|
+
return (s, l) => (o(), N(a(oe), {
|
|
126
|
+
class: B(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
|
|
127
127
|
role: "img",
|
|
128
128
|
"aria-label": e.name
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
e.src ? (
|
|
130
|
+
default: u(() => [
|
|
131
|
+
e.src ? (o(), N(a(se), {
|
|
132
132
|
key: 0,
|
|
133
133
|
class: "nb-avatar__image",
|
|
134
134
|
src: e.src,
|
|
135
135
|
alt: "",
|
|
136
136
|
"aria-hidden": "true"
|
|
137
137
|
}, null, 8, ["src"])) : h("", !0),
|
|
138
|
-
m(a(
|
|
138
|
+
m(a(ie), {
|
|
139
139
|
class: "nb-avatar__fallback",
|
|
140
140
|
"aria-hidden": "true"
|
|
141
141
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
142
|
+
default: u(() => [
|
|
143
|
+
V(p(t.value), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
})
|
|
@@ -148,46 +148,46 @@ const yt = /* @__PURE__ */ v({
|
|
|
148
148
|
_: 1
|
|
149
149
|
}, 8, ["class", "aria-label"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), It = ["aria-label"], Bt = ["href"], Vt = ["aria-current"], wt = {
|
|
152
152
|
key: 2,
|
|
153
153
|
class: "nb-breadcrumbs__separator",
|
|
154
154
|
viewBox: "0 0 16 16",
|
|
155
155
|
"aria-hidden": "true",
|
|
156
156
|
focusable: "false"
|
|
157
|
-
},
|
|
157
|
+
}, xt = /* @__PURE__ */ v({
|
|
158
158
|
__name: "NbBreadcrumbs",
|
|
159
159
|
props: {
|
|
160
160
|
items: {},
|
|
161
161
|
label: { default: "Breadcrumb" }
|
|
162
162
|
},
|
|
163
163
|
setup(e) {
|
|
164
|
-
return (
|
|
164
|
+
return (n, t) => (o(), i("nav", {
|
|
165
165
|
class: "nb-root nb-breadcrumbs",
|
|
166
166
|
"aria-label": e.label
|
|
167
167
|
}, [
|
|
168
|
-
|
|
169
|
-
(
|
|
168
|
+
c("ol", null, [
|
|
169
|
+
(o(!0), i(P, null, D(e.items, (s, l) => (o(), i("li", {
|
|
170
170
|
key: `${s.label}-${l}`
|
|
171
171
|
}, [
|
|
172
|
-
s.href && l < e.items.length - 1 ? (
|
|
172
|
+
s.href && l < e.items.length - 1 ? (o(), i("a", {
|
|
173
173
|
key: 0,
|
|
174
174
|
href: s.href
|
|
175
|
-
}, p(s.label), 9,
|
|
175
|
+
}, p(s.label), 9, Bt)) : (o(), i("span", {
|
|
176
176
|
key: 1,
|
|
177
177
|
"aria-current": l === e.items.length - 1 ? "page" : void 0
|
|
178
|
-
}, p(s.label), 9,
|
|
179
|
-
l < e.items.length - 1 ? (
|
|
180
|
-
|
|
178
|
+
}, p(s.label), 9, Vt)),
|
|
179
|
+
l < e.items.length - 1 ? (o(), i("svg", wt, [...t[0] || (t[0] = [
|
|
180
|
+
c("path", { d: "m6 3 5 5-5 5" }, null, -1)
|
|
181
181
|
])])) : h("", !0)
|
|
182
182
|
]))), 128))
|
|
183
183
|
])
|
|
184
|
-
], 8,
|
|
184
|
+
], 8, It));
|
|
185
185
|
}
|
|
186
|
-
}),
|
|
186
|
+
}), St = ["type", "disabled", "aria-busy"], Tt = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "nb-button__loader",
|
|
189
189
|
"aria-hidden": "true"
|
|
190
|
-
},
|
|
190
|
+
}, At = /* @__PURE__ */ v({
|
|
191
191
|
inheritAttrs: !1,
|
|
192
192
|
__name: "NbButton",
|
|
193
193
|
props: {
|
|
@@ -198,30 +198,46 @@ const yt = /* @__PURE__ */ v({
|
|
|
198
198
|
disabled: { type: Boolean, default: !1 }
|
|
199
199
|
},
|
|
200
200
|
setup(e) {
|
|
201
|
-
const
|
|
202
|
-
`nb-button--${
|
|
203
|
-
`nb-button--${
|
|
204
|
-
|
|
201
|
+
const n = e, t = $(() => C(
|
|
202
|
+
`nb-button--${n.variant}`,
|
|
203
|
+
`nb-button--${n.size}`,
|
|
204
|
+
n.loading && "is-loading"
|
|
205
205
|
));
|
|
206
|
-
return (s, l) => (
|
|
206
|
+
return (s, l) => (o(), i("button", k(s.$attrs, {
|
|
207
207
|
class: ["nb-root nb-button", t.value],
|
|
208
208
|
type: e.type,
|
|
209
209
|
disabled: e.disabled || e.loading,
|
|
210
210
|
"aria-busy": e.loading || void 0
|
|
211
211
|
}), [
|
|
212
|
-
e.loading ? (
|
|
213
|
-
|
|
212
|
+
e.loading ? (o(), i("span", Tt, "✦")) : h("", !0),
|
|
213
|
+
c("span", null, [
|
|
214
214
|
_(s.$slots, "default")
|
|
215
215
|
])
|
|
216
|
-
], 16,
|
|
216
|
+
], 16, St));
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), Ct = ["aria-label", "data-orientation"], Pt = /* @__PURE__ */ v({
|
|
219
|
+
__name: "NbButtonGroup",
|
|
220
|
+
props: {
|
|
221
|
+
orientation: { default: "horizontal" },
|
|
222
|
+
label: {}
|
|
223
|
+
},
|
|
224
|
+
setup(e) {
|
|
225
|
+
return (n, t) => (o(), i("div", {
|
|
226
|
+
class: "nb-root nb-button-group",
|
|
227
|
+
role: "group",
|
|
228
|
+
"aria-label": e.label,
|
|
229
|
+
"data-orientation": e.orientation
|
|
230
|
+
}, [
|
|
231
|
+
_(n.$slots, "default")
|
|
232
|
+
], 8, Ct));
|
|
233
|
+
}
|
|
234
|
+
}), Dt = {
|
|
219
235
|
key: 0,
|
|
220
236
|
class: "nb-card__header"
|
|
221
|
-
},
|
|
237
|
+
}, Mt = { class: "nb-card__body" }, Rt = {
|
|
222
238
|
key: 1,
|
|
223
239
|
class: "nb-card__footer"
|
|
224
|
-
},
|
|
240
|
+
}, qt = /* @__PURE__ */ v({
|
|
225
241
|
inheritAttrs: !1,
|
|
226
242
|
__name: "NbCard",
|
|
227
243
|
props: {
|
|
@@ -229,41 +245,41 @@ const yt = /* @__PURE__ */ v({
|
|
|
229
245
|
interactive: { type: Boolean, default: !1 }
|
|
230
246
|
},
|
|
231
247
|
setup(e) {
|
|
232
|
-
const
|
|
233
|
-
`nb-card--${
|
|
234
|
-
|
|
248
|
+
const n = e, t = $(() => C(
|
|
249
|
+
`nb-card--${n.tone}`,
|
|
250
|
+
n.interactive && "nb-card--interactive"
|
|
235
251
|
));
|
|
236
|
-
return (s, l) => (
|
|
252
|
+
return (s, l) => (o(), i("article", k(s.$attrs, {
|
|
237
253
|
class: ["nb-root nb-card", t.value]
|
|
238
254
|
}), [
|
|
239
|
-
s.$slots.header ? (
|
|
255
|
+
s.$slots.header ? (o(), i("header", Dt, [
|
|
240
256
|
_(s.$slots, "header")
|
|
241
257
|
])) : h("", !0),
|
|
242
|
-
|
|
258
|
+
c("div", Mt, [
|
|
243
259
|
_(s.$slots, "default")
|
|
244
260
|
]),
|
|
245
|
-
s.$slots.footer ? (
|
|
261
|
+
s.$slots.footer ? (o(), i("footer", Rt, [
|
|
246
262
|
_(s.$slots, "footer")
|
|
247
263
|
])) : h("", !0)
|
|
248
264
|
], 16));
|
|
249
265
|
}
|
|
250
266
|
});
|
|
251
|
-
let
|
|
267
|
+
let L = 0;
|
|
252
268
|
function S(e = "nb") {
|
|
253
|
-
return
|
|
269
|
+
return L += 1, `${e}-${L}`;
|
|
254
270
|
}
|
|
255
|
-
function w(e,
|
|
256
|
-
const t =
|
|
271
|
+
function w(e, n) {
|
|
272
|
+
const t = n ?? S(e);
|
|
257
273
|
return {
|
|
258
274
|
inputId: t,
|
|
259
275
|
hintId: `${t}-hint`,
|
|
260
276
|
errorId: `${t}-error`
|
|
261
277
|
};
|
|
262
278
|
}
|
|
263
|
-
function A(e,
|
|
264
|
-
return [e && t,
|
|
279
|
+
function A(e, n, t, s) {
|
|
280
|
+
return [e && t, n && s].filter(Boolean).join(" ") || void 0;
|
|
265
281
|
}
|
|
266
|
-
const
|
|
282
|
+
const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkbox__label" }, zt = /* @__PURE__ */ v({
|
|
267
283
|
inheritAttrs: !1,
|
|
268
284
|
__name: "NbCheckbox",
|
|
269
285
|
props: {
|
|
@@ -273,28 +289,28 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
273
289
|
id: {}
|
|
274
290
|
},
|
|
275
291
|
emits: ["update:modelValue"],
|
|
276
|
-
setup(e, { emit:
|
|
277
|
-
const t = e, s =
|
|
278
|
-
return (b, f) => (
|
|
292
|
+
setup(e, { emit: n }) {
|
|
293
|
+
const t = e, s = n, l = w("checkbox", t.id);
|
|
294
|
+
return (b, f) => (o(), i("label", {
|
|
279
295
|
class: "nb-root nb-checkbox",
|
|
280
296
|
for: a(l).inputId
|
|
281
297
|
}, [
|
|
282
|
-
|
|
298
|
+
c("input", k(b.$attrs, {
|
|
283
299
|
id: a(l).inputId,
|
|
284
300
|
class: "nb-checkbox__input",
|
|
285
301
|
type: "checkbox",
|
|
286
302
|
checked: e.modelValue,
|
|
287
303
|
disabled: e.disabled,
|
|
288
304
|
onChange: f[0] || (f[0] = (d) => s("update:modelValue", d.target.checked))
|
|
289
|
-
}), null, 16,
|
|
290
|
-
f[1] || (f[1] =
|
|
305
|
+
}), null, 16, Et),
|
|
306
|
+
f[1] || (f[1] = c("span", {
|
|
291
307
|
class: "nb-checkbox__box",
|
|
292
308
|
"aria-hidden": "true"
|
|
293
309
|
}, "✓", -1)),
|
|
294
|
-
|
|
295
|
-
], 8,
|
|
310
|
+
c("span", Gt, p(e.label), 1)
|
|
311
|
+
], 8, Ot));
|
|
296
312
|
}
|
|
297
|
-
}),
|
|
313
|
+
}), Lt = { class: "nb-root nb-field" }, Ut = ["for"], Ft = ["id"], Kt = ["id"], jt = /* @__PURE__ */ v({
|
|
298
314
|
inheritAttrs: !1,
|
|
299
315
|
__name: "NbCombobox",
|
|
300
316
|
props: {
|
|
@@ -311,21 +327,21 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
311
327
|
id: {}
|
|
312
328
|
},
|
|
313
329
|
emits: ["update:modelValue"],
|
|
314
|
-
setup(e, { emit:
|
|
315
|
-
const t = e, s =
|
|
330
|
+
setup(e, { emit: n }) {
|
|
331
|
+
const t = e, s = n, l = w("combobox", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
316
332
|
function f(r) {
|
|
317
333
|
return t.options.find((g) => g.value === r)?.label ?? "";
|
|
318
334
|
}
|
|
319
335
|
function d(r) {
|
|
320
336
|
typeof r == "string" && s("update:modelValue", r);
|
|
321
337
|
}
|
|
322
|
-
return (r, g) => (
|
|
323
|
-
e.label ? (
|
|
338
|
+
return (r, g) => (o(), i("div", Lt, [
|
|
339
|
+
e.label ? (o(), i("label", {
|
|
324
340
|
key: 0,
|
|
325
341
|
class: "nb-field__label",
|
|
326
342
|
for: a(l).inputId
|
|
327
|
-
}, p(e.label), 9,
|
|
328
|
-
m(a(
|
|
343
|
+
}, p(e.label), 9, Ut)) : h("", !0),
|
|
344
|
+
m(a(de), {
|
|
329
345
|
"model-value": e.modelValue,
|
|
330
346
|
disabled: e.disabled,
|
|
331
347
|
required: e.required,
|
|
@@ -333,10 +349,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
333
349
|
"open-on-click": "",
|
|
334
350
|
"onUpdate:modelValue": d
|
|
335
351
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
m(a(
|
|
338
|
-
default:
|
|
339
|
-
m(a(
|
|
352
|
+
default: u(() => [
|
|
353
|
+
m(a(re), { class: "nb-combobox__anchor" }, {
|
|
354
|
+
default: u(() => [
|
|
355
|
+
m(a(ue), k(r.$attrs, {
|
|
340
356
|
id: a(l).inputId,
|
|
341
357
|
class: "nb-combobox__input",
|
|
342
358
|
"display-value": f,
|
|
@@ -344,17 +360,17 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
344
360
|
"aria-invalid": e.error ? "true" : void 0,
|
|
345
361
|
"aria-describedby": b.value
|
|
346
362
|
}), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
|
|
347
|
-
m(a(
|
|
363
|
+
m(a(ce), {
|
|
348
364
|
class: "nb-combobox__trigger",
|
|
349
365
|
"aria-label": "Show options"
|
|
350
366
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
367
|
+
default: u(() => [...g[0] || (g[0] = [
|
|
368
|
+
c("svg", {
|
|
353
369
|
viewBox: "0 0 16 16",
|
|
354
370
|
"aria-hidden": "true",
|
|
355
371
|
focusable: "false"
|
|
356
372
|
}, [
|
|
357
|
-
|
|
373
|
+
c("path", { d: "m3 6 5 5 5-5" })
|
|
358
374
|
], -1)
|
|
359
375
|
])]),
|
|
360
376
|
_: 1
|
|
@@ -362,24 +378,24 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
362
378
|
]),
|
|
363
379
|
_: 1
|
|
364
380
|
}),
|
|
365
|
-
m(a(
|
|
366
|
-
default:
|
|
367
|
-
m(a(
|
|
381
|
+
m(a(be), null, {
|
|
382
|
+
default: u(() => [
|
|
383
|
+
m(a(fe), {
|
|
368
384
|
class: "nb-root nb-combobox__content",
|
|
369
385
|
position: "popper",
|
|
370
386
|
align: "start",
|
|
371
387
|
"side-offset": 5
|
|
372
388
|
}, {
|
|
373
|
-
default:
|
|
374
|
-
m(a(
|
|
375
|
-
default:
|
|
376
|
-
m(a(
|
|
377
|
-
default:
|
|
378
|
-
|
|
389
|
+
default: u(() => [
|
|
390
|
+
m(a(me), { class: "nb-combobox__viewport" }, {
|
|
391
|
+
default: u(() => [
|
|
392
|
+
m(a(pe), { class: "nb-combobox__empty" }, {
|
|
393
|
+
default: u(() => [
|
|
394
|
+
V(p(e.emptyText), 1)
|
|
379
395
|
]),
|
|
380
396
|
_: 1
|
|
381
397
|
}),
|
|
382
|
-
(
|
|
398
|
+
(o(!0), i(P, null, D(e.options, (y) => (o(), N(a(he), {
|
|
383
399
|
key: y.value,
|
|
384
400
|
class: "nb-combobox__item",
|
|
385
401
|
value: y.value,
|
|
@@ -387,18 +403,18 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
387
403
|
disabled: y.disabled,
|
|
388
404
|
"data-value": y.value
|
|
389
405
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
|
|
392
|
-
m(a(
|
|
406
|
+
default: u(() => [
|
|
407
|
+
c("span", null, p(y.label), 1),
|
|
408
|
+
m(a(ve), {
|
|
393
409
|
class: "nb-combobox__indicator",
|
|
394
410
|
"aria-hidden": "true"
|
|
395
411
|
}, {
|
|
396
|
-
default:
|
|
397
|
-
|
|
412
|
+
default: u(() => [...g[1] || (g[1] = [
|
|
413
|
+
c("svg", {
|
|
398
414
|
viewBox: "0 0 16 16",
|
|
399
415
|
focusable: "false"
|
|
400
416
|
}, [
|
|
401
|
-
|
|
417
|
+
c("path", { d: "m3 8 3 3 7-7" })
|
|
402
418
|
], -1)
|
|
403
419
|
])]),
|
|
404
420
|
_: 1
|
|
@@ -418,19 +434,19 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
418
434
|
]),
|
|
419
435
|
_: 1
|
|
420
436
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
421
|
-
e.hint ? (
|
|
437
|
+
e.hint ? (o(), i("span", {
|
|
422
438
|
key: 1,
|
|
423
439
|
id: a(l).hintId,
|
|
424
440
|
class: "nb-field__hint"
|
|
425
|
-
}, p(e.hint), 9,
|
|
426
|
-
e.error ? (
|
|
441
|
+
}, p(e.hint), 9, Ft)) : h("", !0),
|
|
442
|
+
e.error ? (o(), i("span", {
|
|
427
443
|
key: 2,
|
|
428
444
|
id: a(l).errorId,
|
|
429
445
|
class: "nb-field__error"
|
|
430
|
-
}, p(e.error), 9,
|
|
446
|
+
}, p(e.error), 9, Kt)) : h("", !0)
|
|
431
447
|
]));
|
|
432
448
|
}
|
|
433
|
-
}),
|
|
449
|
+
}), Ht = { class: "nb-alert__content" }, Jt = { key: 0 }, Xt = /* @__PURE__ */ v({
|
|
434
450
|
__name: "NbAlert",
|
|
435
451
|
props: {
|
|
436
452
|
tone: { default: "info" },
|
|
@@ -438,23 +454,23 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
438
454
|
dismissible: { type: Boolean, default: !1 }
|
|
439
455
|
},
|
|
440
456
|
emits: ["dismiss"],
|
|
441
|
-
setup(e, { emit:
|
|
442
|
-
const t = e, s =
|
|
457
|
+
setup(e, { emit: n }) {
|
|
458
|
+
const t = e, s = n, l = x(!1), b = $(() => C(`nb-alert--${t.tone}`));
|
|
443
459
|
function f() {
|
|
444
460
|
l.value = !0, s("dismiss");
|
|
445
461
|
}
|
|
446
|
-
return (d, r) => l.value ? h("", !0) : (
|
|
462
|
+
return (d, r) => l.value ? h("", !0) : (o(), i("div", {
|
|
447
463
|
key: 0,
|
|
448
|
-
class:
|
|
464
|
+
class: B(["nb-root nb-alert", b.value]),
|
|
449
465
|
role: "alert"
|
|
450
466
|
}, [
|
|
451
|
-
|
|
452
|
-
e.title ? (
|
|
453
|
-
|
|
467
|
+
c("div", Ht, [
|
|
468
|
+
e.title ? (o(), i("strong", Jt, p(e.title), 1)) : h("", !0),
|
|
469
|
+
c("span", null, [
|
|
454
470
|
_(d.$slots, "default")
|
|
455
471
|
])
|
|
456
472
|
]),
|
|
457
|
-
e.dismissible ? (
|
|
473
|
+
e.dismissible ? (o(), i("button", {
|
|
458
474
|
key: 0,
|
|
459
475
|
class: "nb-alert__close",
|
|
460
476
|
type: "button",
|
|
@@ -463,10 +479,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
463
479
|
}, "×")) : h("", !0)
|
|
464
480
|
], 2));
|
|
465
481
|
}
|
|
466
|
-
}),
|
|
482
|
+
}), Qt = { class: "nb-dialog__header" }, Wt = { class: "nb-dialog__body" }, Yt = {
|
|
467
483
|
key: 0,
|
|
468
484
|
class: "nb-dialog__footer"
|
|
469
|
-
},
|
|
485
|
+
}, Zt = /* @__PURE__ */ v({
|
|
470
486
|
inheritAttrs: !1,
|
|
471
487
|
__name: "NbDialog",
|
|
472
488
|
props: {
|
|
@@ -475,8 +491,8 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
475
491
|
closeOnBackdrop: { type: Boolean, default: !0 }
|
|
476
492
|
},
|
|
477
493
|
emits: ["update:open", "close"],
|
|
478
|
-
setup(e, { emit:
|
|
479
|
-
const t = e, s =
|
|
494
|
+
setup(e, { emit: n }) {
|
|
495
|
+
const t = e, s = n, b = `${S("dialog")}-title`, f = x(null), d = x(null);
|
|
480
496
|
function r() {
|
|
481
497
|
s("update:open", !1), s("close");
|
|
482
498
|
}
|
|
@@ -493,23 +509,23 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
493
509
|
if (I.key !== "Tab") return;
|
|
494
510
|
const T = g();
|
|
495
511
|
if (!T.length) return;
|
|
496
|
-
const
|
|
497
|
-
I.shiftKey && document.activeElement ===
|
|
512
|
+
const q = T[0], z = T[T.length - 1];
|
|
513
|
+
I.shiftKey && document.activeElement === q ? (I.preventDefault(), z.focus()) : !I.shiftKey && document.activeElement === z && (I.preventDefault(), q.focus());
|
|
498
514
|
}
|
|
499
|
-
function
|
|
500
|
-
d.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", y),
|
|
515
|
+
function R() {
|
|
516
|
+
d.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", y), j(() => (g()[0] ?? f.value)?.focus());
|
|
501
517
|
}
|
|
502
518
|
function G() {
|
|
503
519
|
document.removeEventListener("keydown", y), d.value?.focus(), d.value = null;
|
|
504
520
|
}
|
|
505
|
-
return
|
|
506
|
-
I ?
|
|
507
|
-
}, { immediate: !0 }), F(G), (I, T) => e.open ? (
|
|
521
|
+
return M(() => t.open, (I) => {
|
|
522
|
+
I ? R() : G();
|
|
523
|
+
}, { immediate: !0 }), F(G), (I, T) => e.open ? (o(), i("div", {
|
|
508
524
|
key: 0,
|
|
509
525
|
class: "nb-root nb-dialog-layer",
|
|
510
|
-
onMousedown: T[0] || (T[0] =
|
|
526
|
+
onMousedown: T[0] || (T[0] = K((q) => e.closeOnBackdrop && r(), ["self"]))
|
|
511
527
|
}, [
|
|
512
|
-
|
|
528
|
+
c("section", k(I.$attrs, {
|
|
513
529
|
ref_key: "dialogRef",
|
|
514
530
|
ref: f,
|
|
515
531
|
class: "nb-dialog",
|
|
@@ -518,25 +534,25 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
518
534
|
"aria-labelledby": b,
|
|
519
535
|
tabindex: "-1"
|
|
520
536
|
}), [
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
537
|
+
c("header", Qt, [
|
|
538
|
+
c("h2", { id: b }, p(e.title), 1),
|
|
539
|
+
c("button", {
|
|
524
540
|
class: "nb-dialog__close",
|
|
525
541
|
type: "button",
|
|
526
542
|
"aria-label": "Close dialog",
|
|
527
543
|
onClick: r
|
|
528
544
|
}, "×")
|
|
529
545
|
]),
|
|
530
|
-
|
|
546
|
+
c("div", Wt, [
|
|
531
547
|
_(I.$slots, "default")
|
|
532
548
|
]),
|
|
533
|
-
I.$slots.footer ? (
|
|
549
|
+
I.$slots.footer ? (o(), i("footer", Yt, [
|
|
534
550
|
_(I.$slots, "footer")
|
|
535
551
|
])) : h("", !0)
|
|
536
552
|
], 16)
|
|
537
553
|
], 32)) : h("", !0);
|
|
538
554
|
}
|
|
539
|
-
}),
|
|
555
|
+
}), ea = /* @__PURE__ */ v({
|
|
540
556
|
__name: "NbDropdownMenu",
|
|
541
557
|
props: {
|
|
542
558
|
open: { type: Boolean, default: void 0 },
|
|
@@ -546,46 +562,46 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
546
562
|
disabled: { type: Boolean, default: !1 }
|
|
547
563
|
},
|
|
548
564
|
emits: ["update:open"],
|
|
549
|
-
setup(e, { emit:
|
|
550
|
-
const t = e, s =
|
|
551
|
-
|
|
565
|
+
setup(e, { emit: n }) {
|
|
566
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), b = $(() => t.open ?? l.value);
|
|
567
|
+
M(() => t.open, (d) => {
|
|
552
568
|
d !== void 0 && (l.value = d);
|
|
553
569
|
});
|
|
554
570
|
function f(d) {
|
|
555
571
|
l.value = d, s("update:open", d);
|
|
556
572
|
}
|
|
557
|
-
return (d, r) => (
|
|
573
|
+
return (d, r) => (o(), N(a(ge), {
|
|
558
574
|
open: b.value,
|
|
559
575
|
"default-open": e.defaultOpen,
|
|
560
576
|
"onUpdate:open": f
|
|
561
577
|
}, {
|
|
562
|
-
default:
|
|
563
|
-
m(a(
|
|
578
|
+
default: u(() => [
|
|
579
|
+
m(a(_e), {
|
|
564
580
|
class: "nb-root nb-overlay-trigger",
|
|
565
581
|
"aria-label": e.label,
|
|
566
582
|
disabled: e.disabled
|
|
567
583
|
}, {
|
|
568
|
-
default:
|
|
584
|
+
default: u(() => [
|
|
569
585
|
_(d.$slots, "trigger"),
|
|
570
|
-
r[0] || (r[0] =
|
|
586
|
+
r[0] || (r[0] = c("svg", {
|
|
571
587
|
class: "nb-overlay-trigger__icon",
|
|
572
588
|
viewBox: "0 0 16 16",
|
|
573
589
|
"aria-hidden": "true",
|
|
574
590
|
focusable: "false"
|
|
575
591
|
}, [
|
|
576
|
-
|
|
592
|
+
c("path", { d: "m3 6 5 5 5-5" })
|
|
577
593
|
], -1))
|
|
578
594
|
]),
|
|
579
595
|
_: 3
|
|
580
596
|
}, 8, ["aria-label", "disabled"]),
|
|
581
|
-
m(a(
|
|
582
|
-
default:
|
|
583
|
-
m(a(
|
|
597
|
+
m(a(ye), null, {
|
|
598
|
+
default: u(() => [
|
|
599
|
+
m(a($e), {
|
|
584
600
|
class: "nb-root nb-dropdown-menu",
|
|
585
601
|
align: e.align,
|
|
586
602
|
"side-offset": 8
|
|
587
603
|
}, {
|
|
588
|
-
default:
|
|
604
|
+
default: u(() => [
|
|
589
605
|
_(d.$slots, "default")
|
|
590
606
|
]),
|
|
591
607
|
_: 3
|
|
@@ -597,65 +613,65 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
597
613
|
_: 3
|
|
598
614
|
}, 8, ["open", "default-open"]));
|
|
599
615
|
}
|
|
600
|
-
}),
|
|
616
|
+
}), ta = /* @__PURE__ */ v({
|
|
601
617
|
__name: "NbDropdownMenuItem",
|
|
602
618
|
props: {
|
|
603
619
|
disabled: { type: Boolean, default: !1 },
|
|
604
620
|
destructive: { type: Boolean, default: !1 }
|
|
605
621
|
},
|
|
606
622
|
emits: ["select"],
|
|
607
|
-
setup(e, { emit:
|
|
608
|
-
const t =
|
|
609
|
-
return (s, l) => (
|
|
610
|
-
class:
|
|
623
|
+
setup(e, { emit: n }) {
|
|
624
|
+
const t = n;
|
|
625
|
+
return (s, l) => (o(), N(a(Ne), {
|
|
626
|
+
class: B(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
|
|
611
627
|
disabled: e.disabled,
|
|
612
628
|
onSelect: l[0] || (l[0] = (b) => t("select", b))
|
|
613
629
|
}, {
|
|
614
|
-
default:
|
|
630
|
+
default: u(() => [
|
|
615
631
|
_(s.$slots, "default")
|
|
616
632
|
]),
|
|
617
633
|
_: 3
|
|
618
634
|
}, 8, ["class", "disabled"]));
|
|
619
635
|
}
|
|
620
|
-
}),
|
|
636
|
+
}), aa = /* @__PURE__ */ v({
|
|
621
637
|
__name: "NbDropdownMenuSeparator",
|
|
622
638
|
setup(e) {
|
|
623
|
-
return (
|
|
639
|
+
return (n, t) => (o(), N(a(ke), { class: "nb-dropdown-menu__separator" }));
|
|
624
640
|
}
|
|
625
|
-
}),
|
|
641
|
+
}), la = ["aria-labelledby"], na = {
|
|
626
642
|
key: 0,
|
|
627
643
|
class: "nb-empty-state__icon",
|
|
628
644
|
"aria-hidden": "true"
|
|
629
|
-
},
|
|
645
|
+
}, oa = ["id"], sa = { key: 1 }, ia = {
|
|
630
646
|
key: 2,
|
|
631
647
|
class: "nb-empty-state__action"
|
|
632
|
-
},
|
|
648
|
+
}, da = /* @__PURE__ */ v({
|
|
633
649
|
__name: "NbEmptyState",
|
|
634
650
|
props: {
|
|
635
651
|
title: {},
|
|
636
652
|
description: {}
|
|
637
653
|
},
|
|
638
654
|
setup(e) {
|
|
639
|
-
const
|
|
640
|
-
return (t, s) => (
|
|
655
|
+
const n = S("empty-state-title");
|
|
656
|
+
return (t, s) => (o(), i("section", {
|
|
641
657
|
class: "nb-root nb-empty-state",
|
|
642
658
|
role: "region",
|
|
643
|
-
"aria-labelledby": a(
|
|
659
|
+
"aria-labelledby": a(n)
|
|
644
660
|
}, [
|
|
645
|
-
t.$slots.icon ? (
|
|
661
|
+
t.$slots.icon ? (o(), i("div", na, [
|
|
646
662
|
_(t.$slots, "icon")
|
|
647
663
|
])) : h("", !0),
|
|
648
|
-
|
|
649
|
-
e.description ? (
|
|
650
|
-
t.$slots.default ? (
|
|
664
|
+
c("h2", { id: a(n) }, p(e.title), 9, oa),
|
|
665
|
+
e.description ? (o(), i("p", sa, p(e.description), 1)) : h("", !0),
|
|
666
|
+
t.$slots.default ? (o(), i("div", ia, [
|
|
651
667
|
_(t.$slots, "default")
|
|
652
668
|
])) : h("", !0)
|
|
653
|
-
], 8,
|
|
669
|
+
], 8, la));
|
|
654
670
|
}
|
|
655
|
-
}),
|
|
671
|
+
}), ra = ["disabled", "aria-describedby"], ua = {
|
|
656
672
|
key: 0,
|
|
657
673
|
class: "nb-fieldset__legend"
|
|
658
|
-
},
|
|
674
|
+
}, ca = { class: "nb-fieldset__content" }, ba = /* @__PURE__ */ v({
|
|
659
675
|
__name: "NbFieldset",
|
|
660
676
|
props: {
|
|
661
677
|
legend: {},
|
|
@@ -663,24 +679,24 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
663
679
|
disabled: { type: Boolean, default: !1 }
|
|
664
680
|
},
|
|
665
681
|
setup(e) {
|
|
666
|
-
const
|
|
667
|
-
return (t, s) => (
|
|
682
|
+
const n = `${S("fieldset")}-description`;
|
|
683
|
+
return (t, s) => (o(), i("fieldset", {
|
|
668
684
|
class: "nb-root nb-fieldset",
|
|
669
685
|
disabled: e.disabled,
|
|
670
|
-
"aria-describedby": e.description ?
|
|
686
|
+
"aria-describedby": e.description ? n : void 0
|
|
671
687
|
}, [
|
|
672
|
-
e.legend ? (
|
|
673
|
-
e.description ? (
|
|
688
|
+
e.legend ? (o(), i("legend", ua, p(e.legend), 1)) : h("", !0),
|
|
689
|
+
e.description ? (o(), i("p", {
|
|
674
690
|
key: 1,
|
|
675
|
-
id:
|
|
691
|
+
id: n,
|
|
676
692
|
class: "nb-fieldset__description"
|
|
677
693
|
}, p(e.description), 1)) : h("", !0),
|
|
678
|
-
|
|
694
|
+
c("div", ca, [
|
|
679
695
|
_(t.$slots, "default")
|
|
680
696
|
])
|
|
681
|
-
], 8,
|
|
697
|
+
], 8, ra));
|
|
682
698
|
}
|
|
683
|
-
}),
|
|
699
|
+
}), fa = { class: "nb-root nb-field" }, ma = ["for"], pa = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], ha = ["id"], va = ["id"], ga = /* @__PURE__ */ v({
|
|
684
700
|
inheritAttrs: !1,
|
|
685
701
|
__name: "NbInput",
|
|
686
702
|
props: {
|
|
@@ -692,15 +708,15 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
692
708
|
id: {}
|
|
693
709
|
},
|
|
694
710
|
emits: ["update:modelValue"],
|
|
695
|
-
setup(e, { emit:
|
|
696
|
-
const t = e, s =
|
|
697
|
-
return (f, d) => (
|
|
698
|
-
e.label ? (
|
|
711
|
+
setup(e, { emit: n }) {
|
|
712
|
+
const t = e, s = n, l = w("input", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
713
|
+
return (f, d) => (o(), i("div", fa, [
|
|
714
|
+
e.label ? (o(), i("label", {
|
|
699
715
|
key: 0,
|
|
700
716
|
class: "nb-field__label",
|
|
701
717
|
for: a(l).inputId
|
|
702
|
-
}, p(e.label), 9,
|
|
703
|
-
|
|
718
|
+
}, p(e.label), 9, ma)) : h("", !0),
|
|
719
|
+
c("input", k(f.$attrs, {
|
|
704
720
|
id: a(l).inputId,
|
|
705
721
|
class: "nb-field__control",
|
|
706
722
|
value: e.modelValue,
|
|
@@ -708,42 +724,84 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
708
724
|
"aria-invalid": e.error ? "true" : void 0,
|
|
709
725
|
"aria-describedby": b.value,
|
|
710
726
|
onInput: d[0] || (d[0] = (r) => s("update:modelValue", r.target.value))
|
|
711
|
-
}), null, 16,
|
|
712
|
-
e.hint ? (
|
|
727
|
+
}), null, 16, pa),
|
|
728
|
+
e.hint ? (o(), i("span", {
|
|
713
729
|
key: 1,
|
|
714
730
|
id: a(l).hintId,
|
|
715
731
|
class: "nb-field__hint"
|
|
716
|
-
}, p(e.hint), 9,
|
|
717
|
-
e.error ? (
|
|
732
|
+
}, p(e.hint), 9, ha)) : h("", !0),
|
|
733
|
+
e.error ? (o(), i("span", {
|
|
718
734
|
key: 2,
|
|
719
735
|
id: a(l).errorId,
|
|
720
736
|
class: "nb-field__error"
|
|
721
|
-
}, p(e.error), 9,
|
|
737
|
+
}, p(e.error), 9, va)) : h("", !0)
|
|
722
738
|
]));
|
|
723
739
|
}
|
|
724
|
-
}),
|
|
740
|
+
}), _a = { class: "nb-root nb-input-group" }, ya = {
|
|
725
741
|
key: 0,
|
|
726
742
|
class: "nb-input-group__addon"
|
|
727
|
-
},
|
|
743
|
+
}, $a = { class: "nb-input-group__control" }, Na = {
|
|
728
744
|
key: 1,
|
|
729
745
|
class: "nb-input-group__addon"
|
|
730
|
-
},
|
|
746
|
+
}, ka = /* @__PURE__ */ v({
|
|
731
747
|
__name: "NbInputGroup",
|
|
732
748
|
setup(e) {
|
|
733
|
-
const
|
|
734
|
-
return (t, s) => (
|
|
735
|
-
a(
|
|
749
|
+
const n = H();
|
|
750
|
+
return (t, s) => (o(), i("div", _a, [
|
|
751
|
+
a(n).start ? (o(), i("span", ya, [
|
|
736
752
|
_(t.$slots, "start")
|
|
737
753
|
])) : h("", !0),
|
|
738
|
-
|
|
754
|
+
c("div", $a, [
|
|
739
755
|
_(t.$slots, "default")
|
|
740
756
|
]),
|
|
741
|
-
a(
|
|
757
|
+
a(n).end ? (o(), i("span", Na, [
|
|
742
758
|
_(t.$slots, "end")
|
|
743
759
|
])) : h("", !0)
|
|
744
760
|
]));
|
|
745
761
|
}
|
|
746
|
-
}),
|
|
762
|
+
}), Ia = /* @__PURE__ */ v({
|
|
763
|
+
__name: "NbKbd",
|
|
764
|
+
props: {
|
|
765
|
+
size: { default: "md" }
|
|
766
|
+
},
|
|
767
|
+
setup(e) {
|
|
768
|
+
return (n, t) => (o(), i("kbd", {
|
|
769
|
+
class: B(["nb-root nb-kbd", `nb-kbd--${e.size}`])
|
|
770
|
+
}, [
|
|
771
|
+
_(n.$slots, "default")
|
|
772
|
+
], 2));
|
|
773
|
+
}
|
|
774
|
+
}), Ba = /* @__PURE__ */ v({
|
|
775
|
+
inheritAttrs: !1,
|
|
776
|
+
__name: "NbLink",
|
|
777
|
+
props: {
|
|
778
|
+
as: { default: "a" },
|
|
779
|
+
tone: { default: "primary" }
|
|
780
|
+
},
|
|
781
|
+
setup(e) {
|
|
782
|
+
const n = e, t = $(() => C(`nb-link--${n.tone}`));
|
|
783
|
+
return (s, l) => (o(), N(J(e.as), k(s.$attrs, {
|
|
784
|
+
class: ["nb-root nb-link", t.value]
|
|
785
|
+
}), {
|
|
786
|
+
default: u(() => [
|
|
787
|
+
_(s.$slots, "default")
|
|
788
|
+
]),
|
|
789
|
+
_: 3
|
|
790
|
+
}, 16, ["class"]));
|
|
791
|
+
}
|
|
792
|
+
}), Va = /* @__PURE__ */ v({
|
|
793
|
+
__name: "NbMarker",
|
|
794
|
+
props: {
|
|
795
|
+
tone: { default: "primary" }
|
|
796
|
+
},
|
|
797
|
+
setup(e) {
|
|
798
|
+
return (n, t) => (o(), i("mark", {
|
|
799
|
+
class: B(["nb-root nb-marker", `nb-marker--${e.tone}`])
|
|
800
|
+
}, [
|
|
801
|
+
_(n.$slots, "default")
|
|
802
|
+
], 2));
|
|
803
|
+
}
|
|
804
|
+
}), wa = { class: "nb-root nb-field" }, xa = ["for"], Sa = ["id"], Ta = ["id"], Aa = /* @__PURE__ */ v({
|
|
747
805
|
inheritAttrs: !1,
|
|
748
806
|
__name: "NbNumberInput",
|
|
749
807
|
props: {
|
|
@@ -761,14 +819,14 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
761
819
|
step: { default: 1 }
|
|
762
820
|
},
|
|
763
821
|
emits: ["update:modelValue"],
|
|
764
|
-
setup(e, { emit:
|
|
765
|
-
const t = e, s =
|
|
766
|
-
return (d, r) => (
|
|
767
|
-
e.label ? (
|
|
822
|
+
setup(e, { emit: n }) {
|
|
823
|
+
const t = e, s = n, l = w("number-input", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId)), f = $(() => t.label ?? "value");
|
|
824
|
+
return (d, r) => (o(), i("div", wa, [
|
|
825
|
+
e.label ? (o(), i("label", {
|
|
768
826
|
key: 0,
|
|
769
827
|
class: "nb-field__label",
|
|
770
828
|
for: a(l).inputId
|
|
771
|
-
}, p(e.label), 9,
|
|
829
|
+
}, p(e.label), 9, xa)) : h("", !0),
|
|
772
830
|
m(a(Ie), {
|
|
773
831
|
class: "nb-number-input",
|
|
774
832
|
"model-value": e.modelValue,
|
|
@@ -781,47 +839,47 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
781
839
|
name: e.name,
|
|
782
840
|
"onUpdate:modelValue": r[0] || (r[0] = (g) => s("update:modelValue", g))
|
|
783
841
|
}, {
|
|
784
|
-
default:
|
|
785
|
-
m(a(
|
|
842
|
+
default: u(() => [
|
|
843
|
+
m(a(Be), {
|
|
786
844
|
class: "nb-number-input__button",
|
|
787
845
|
"aria-label": `Decrease ${f.value}`
|
|
788
846
|
}, {
|
|
789
|
-
default:
|
|
790
|
-
|
|
847
|
+
default: u(() => [...r[1] || (r[1] = [
|
|
848
|
+
V("−", -1)
|
|
791
849
|
])]),
|
|
792
850
|
_: 1
|
|
793
851
|
}, 8, ["aria-label"]),
|
|
794
|
-
m(a(
|
|
852
|
+
m(a(Ve), k(d.$attrs, {
|
|
795
853
|
id: a(l).inputId,
|
|
796
854
|
class: "nb-number-input__input",
|
|
797
855
|
"aria-invalid": e.error ? "true" : void 0,
|
|
798
856
|
"aria-describedby": b.value
|
|
799
857
|
}), null, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
800
|
-
m(a(
|
|
858
|
+
m(a(we), {
|
|
801
859
|
class: "nb-number-input__button",
|
|
802
860
|
"aria-label": `Increase ${f.value}`
|
|
803
861
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
862
|
+
default: u(() => [...r[2] || (r[2] = [
|
|
863
|
+
V("+", -1)
|
|
806
864
|
])]),
|
|
807
865
|
_: 1
|
|
808
866
|
}, 8, ["aria-label"])
|
|
809
867
|
]),
|
|
810
868
|
_: 1
|
|
811
869
|
}, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
|
|
812
|
-
e.hint ? (
|
|
870
|
+
e.hint ? (o(), i("span", {
|
|
813
871
|
key: 1,
|
|
814
872
|
id: a(l).hintId,
|
|
815
873
|
class: "nb-field__hint"
|
|
816
|
-
}, p(e.hint), 9,
|
|
817
|
-
e.error ? (
|
|
874
|
+
}, p(e.hint), 9, Sa)) : h("", !0),
|
|
875
|
+
e.error ? (o(), i("span", {
|
|
818
876
|
key: 2,
|
|
819
877
|
id: a(l).errorId,
|
|
820
878
|
class: "nb-field__error"
|
|
821
|
-
}, p(e.error), 9,
|
|
879
|
+
}, p(e.error), 9, Ta)) : h("", !0)
|
|
822
880
|
]));
|
|
823
881
|
}
|
|
824
|
-
}),
|
|
882
|
+
}), Ca = /* @__PURE__ */ v({
|
|
825
883
|
__name: "NbPagination",
|
|
826
884
|
props: {
|
|
827
885
|
page: {},
|
|
@@ -833,9 +891,9 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
833
891
|
label: { default: "Pagination" }
|
|
834
892
|
},
|
|
835
893
|
emits: ["update:page"],
|
|
836
|
-
setup(e, { emit:
|
|
837
|
-
const t =
|
|
838
|
-
return (s, l) => (
|
|
894
|
+
setup(e, { emit: n }) {
|
|
895
|
+
const t = n;
|
|
896
|
+
return (s, l) => (o(), N(a(xe), {
|
|
839
897
|
class: "nb-root nb-pagination",
|
|
840
898
|
page: e.page,
|
|
841
899
|
"default-page": e.defaultPage,
|
|
@@ -847,42 +905,42 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
847
905
|
"aria-label": e.label,
|
|
848
906
|
"onUpdate:page": l[0] || (l[0] = (b) => t("update:page", b))
|
|
849
907
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
m(a(
|
|
908
|
+
default: u(() => [
|
|
909
|
+
m(a(Se), {
|
|
852
910
|
class: "nb-pagination__button",
|
|
853
911
|
"aria-label": "Go to previous page"
|
|
854
912
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
|
|
913
|
+
default: u(() => [...l[1] || (l[1] = [
|
|
914
|
+
c("svg", {
|
|
857
915
|
viewBox: "0 0 16 16",
|
|
858
916
|
"aria-hidden": "true",
|
|
859
917
|
focusable: "false"
|
|
860
918
|
}, [
|
|
861
|
-
|
|
919
|
+
c("path", { d: "m10 3-5 5 5 5" })
|
|
862
920
|
], -1)
|
|
863
921
|
])]),
|
|
864
922
|
_: 1
|
|
865
923
|
}),
|
|
866
|
-
m(a(
|
|
867
|
-
default:
|
|
868
|
-
(
|
|
924
|
+
m(a(Te), { class: "nb-pagination__list" }, {
|
|
925
|
+
default: u(({ items: b }) => [
|
|
926
|
+
(o(!0), i(P, null, D(b, (f, d) => (o(), i(P, {
|
|
869
927
|
key: f.type === "page" ? f.value : `ellipsis-${d}`
|
|
870
928
|
}, [
|
|
871
|
-
f.type === "page" ? (
|
|
929
|
+
f.type === "page" ? (o(), N(a(Ae), {
|
|
872
930
|
key: 0,
|
|
873
931
|
class: "nb-pagination__button",
|
|
874
932
|
value: f.value
|
|
875
933
|
}, {
|
|
876
|
-
default:
|
|
877
|
-
|
|
934
|
+
default: u(() => [
|
|
935
|
+
V(p(f.value), 1)
|
|
878
936
|
]),
|
|
879
937
|
_: 2
|
|
880
|
-
}, 1032, ["value"])) : (
|
|
938
|
+
}, 1032, ["value"])) : (o(), N(a(Ce), {
|
|
881
939
|
key: 1,
|
|
882
940
|
class: "nb-pagination__ellipsis"
|
|
883
941
|
}, {
|
|
884
|
-
default:
|
|
885
|
-
|
|
942
|
+
default: u(() => [...l[2] || (l[2] = [
|
|
943
|
+
V("…", -1)
|
|
886
944
|
])]),
|
|
887
945
|
_: 1
|
|
888
946
|
}))
|
|
@@ -890,17 +948,17 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
890
948
|
]),
|
|
891
949
|
_: 1
|
|
892
950
|
}),
|
|
893
|
-
m(a(
|
|
951
|
+
m(a(Pe), {
|
|
894
952
|
class: "nb-pagination__button",
|
|
895
953
|
"aria-label": "Go to next page"
|
|
896
954
|
}, {
|
|
897
|
-
default:
|
|
898
|
-
|
|
955
|
+
default: u(() => [...l[3] || (l[3] = [
|
|
956
|
+
c("svg", {
|
|
899
957
|
viewBox: "0 0 16 16",
|
|
900
958
|
"aria-hidden": "true",
|
|
901
959
|
focusable: "false"
|
|
902
960
|
}, [
|
|
903
|
-
|
|
961
|
+
c("path", { d: "m6 3 5 5-5 5" })
|
|
904
962
|
], -1)
|
|
905
963
|
])]),
|
|
906
964
|
_: 1
|
|
@@ -909,10 +967,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
909
967
|
_: 1
|
|
910
968
|
}, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
|
|
911
969
|
}
|
|
912
|
-
}),
|
|
970
|
+
}), Pa = {
|
|
913
971
|
key: 0,
|
|
914
972
|
class: "nb-popover__header"
|
|
915
|
-
},
|
|
973
|
+
}, Da = ["id"], Ma = { class: "nb-popover__body" }, Ra = /* @__PURE__ */ v({
|
|
916
974
|
__name: "NbPopover",
|
|
917
975
|
props: {
|
|
918
976
|
open: { type: Boolean, default: void 0 },
|
|
@@ -923,31 +981,31 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
923
981
|
disabled: { type: Boolean, default: !1 }
|
|
924
982
|
},
|
|
925
983
|
emits: ["update:open"],
|
|
926
|
-
setup(e, { emit:
|
|
927
|
-
const t = e, s =
|
|
928
|
-
|
|
984
|
+
setup(e, { emit: n }) {
|
|
985
|
+
const t = e, s = n, l = S("popover-title"), b = x(t.open ?? t.defaultOpen), f = $(() => t.open ?? b.value);
|
|
986
|
+
M(() => t.open, (r) => {
|
|
929
987
|
r !== void 0 && (b.value = r);
|
|
930
988
|
});
|
|
931
989
|
function d(r) {
|
|
932
990
|
b.value = r, s("update:open", r);
|
|
933
991
|
}
|
|
934
|
-
return (r, g) => (
|
|
992
|
+
return (r, g) => (o(), N(a(De), {
|
|
935
993
|
open: f.value,
|
|
936
994
|
"default-open": e.defaultOpen,
|
|
937
995
|
"onUpdate:open": d
|
|
938
996
|
}, {
|
|
939
|
-
default:
|
|
940
|
-
m(a(
|
|
997
|
+
default: u(() => [
|
|
998
|
+
m(a(Me), {
|
|
941
999
|
class: "nb-root nb-overlay-trigger",
|
|
942
1000
|
disabled: e.disabled
|
|
943
1001
|
}, {
|
|
944
|
-
default:
|
|
1002
|
+
default: u(() => [
|
|
945
1003
|
_(r.$slots, "trigger")
|
|
946
1004
|
]),
|
|
947
1005
|
_: 3
|
|
948
1006
|
}, 8, ["disabled"]),
|
|
949
1007
|
m(a(Re), null, {
|
|
950
|
-
default:
|
|
1008
|
+
default: u(() => [
|
|
951
1009
|
m(a(qe), {
|
|
952
1010
|
class: "nb-root nb-popover",
|
|
953
1011
|
align: e.align,
|
|
@@ -955,20 +1013,20 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
955
1013
|
"side-offset": 8,
|
|
956
1014
|
"aria-labelledby": e.title ? a(l) : void 0
|
|
957
1015
|
}, {
|
|
958
|
-
default:
|
|
959
|
-
e.title ? (
|
|
960
|
-
|
|
1016
|
+
default: u(() => [
|
|
1017
|
+
e.title ? (o(), i("header", Pa, [
|
|
1018
|
+
c("h2", { id: a(l) }, p(e.title), 9, Da),
|
|
961
1019
|
m(a(Oe), {
|
|
962
1020
|
class: "nb-overlay-close",
|
|
963
1021
|
"aria-label": "Close popover"
|
|
964
1022
|
}, {
|
|
965
|
-
default:
|
|
966
|
-
|
|
1023
|
+
default: u(() => [...g[0] || (g[0] = [
|
|
1024
|
+
V("×", -1)
|
|
967
1025
|
])]),
|
|
968
1026
|
_: 1
|
|
969
1027
|
})
|
|
970
1028
|
])) : h("", !0),
|
|
971
|
-
|
|
1029
|
+
c("div", Ma, [
|
|
972
1030
|
_(r.$slots, "default")
|
|
973
1031
|
])
|
|
974
1032
|
]),
|
|
@@ -981,10 +1039,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
981
1039
|
_: 3
|
|
982
1040
|
}, 8, ["open", "default-open"]));
|
|
983
1041
|
}
|
|
984
|
-
}),
|
|
1042
|
+
}), qa = { class: "nb-root nb-progress-wrap" }, Oa = {
|
|
985
1043
|
key: 0,
|
|
986
1044
|
class: "nb-progress__header"
|
|
987
|
-
},
|
|
1045
|
+
}, Ea = /* @__PURE__ */ v({
|
|
988
1046
|
__name: "NbProgress",
|
|
989
1047
|
props: {
|
|
990
1048
|
value: { default: null },
|
|
@@ -993,35 +1051,35 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
993
1051
|
showValue: { type: Boolean, default: !1 }
|
|
994
1052
|
},
|
|
995
1053
|
setup(e) {
|
|
996
|
-
const
|
|
997
|
-
return (s, l) => (
|
|
998
|
-
e.showValue ? (
|
|
999
|
-
|
|
1000
|
-
|
|
1054
|
+
const n = e, t = $(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
|
|
1055
|
+
return (s, l) => (o(), i("div", qa, [
|
|
1056
|
+
e.showValue ? (o(), i("div", Oa, [
|
|
1057
|
+
c("span", null, p(e.label), 1),
|
|
1058
|
+
c("span", null, p(Math.round(t.value)) + "%", 1)
|
|
1001
1059
|
])) : h("", !0),
|
|
1002
|
-
m(a(
|
|
1060
|
+
m(a(Ee), {
|
|
1003
1061
|
class: "nb-progress",
|
|
1004
1062
|
"model-value": e.value,
|
|
1005
1063
|
max: e.max,
|
|
1006
1064
|
"get-value-label": () => e.label
|
|
1007
1065
|
}, {
|
|
1008
|
-
default:
|
|
1009
|
-
m(a(
|
|
1066
|
+
default: u(() => [
|
|
1067
|
+
m(a(Ge), {
|
|
1010
1068
|
class: "nb-progress__indicator",
|
|
1011
|
-
style:
|
|
1069
|
+
style: O(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
|
|
1012
1070
|
}, null, 8, ["style"])
|
|
1013
1071
|
]),
|
|
1014
1072
|
_: 1
|
|
1015
1073
|
}, 8, ["model-value", "max", "get-value-label"])
|
|
1016
1074
|
]));
|
|
1017
1075
|
}
|
|
1018
|
-
}),
|
|
1076
|
+
}), Ga = ["disabled", "aria-describedby"], za = {
|
|
1019
1077
|
key: 0,
|
|
1020
1078
|
class: "nb-radio-group__legend"
|
|
1021
|
-
},
|
|
1079
|
+
}, La = { class: "nb-radio-group__options" }, Ua = ["for"], Fa = ["id", "name", "value", "checked", "disabled", "onChange"], Ka = { class: "nb-radio__content" }, ja = { class: "nb-radio__label" }, Ha = {
|
|
1022
1080
|
key: 0,
|
|
1023
1081
|
class: "nb-radio__description"
|
|
1024
|
-
},
|
|
1082
|
+
}, Ja = /* @__PURE__ */ v({
|
|
1025
1083
|
__name: "NbRadioGroup",
|
|
1026
1084
|
props: {
|
|
1027
1085
|
modelValue: { default: "" },
|
|
@@ -1032,26 +1090,26 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1032
1090
|
options: {}
|
|
1033
1091
|
},
|
|
1034
1092
|
emits: ["update:modelValue"],
|
|
1035
|
-
setup(e, { emit:
|
|
1036
|
-
const t = e, s =
|
|
1037
|
-
return (d, r) => (
|
|
1093
|
+
setup(e, { emit: n }) {
|
|
1094
|
+
const t = e, s = n, l = S("radio-group"), b = t.name ?? l, f = `${l}-hint`;
|
|
1095
|
+
return (d, r) => (o(), i("fieldset", {
|
|
1038
1096
|
class: "nb-root nb-radio-group",
|
|
1039
1097
|
disabled: e.disabled,
|
|
1040
1098
|
"aria-describedby": e.hint ? f : void 0
|
|
1041
1099
|
}, [
|
|
1042
|
-
e.label ? (
|
|
1043
|
-
e.hint ? (
|
|
1100
|
+
e.label ? (o(), i("legend", za, p(e.label), 1)) : h("", !0),
|
|
1101
|
+
e.hint ? (o(), i("p", {
|
|
1044
1102
|
key: 1,
|
|
1045
1103
|
id: f,
|
|
1046
1104
|
class: "nb-field__hint nb-radio-group__hint"
|
|
1047
1105
|
}, p(e.hint), 1)) : h("", !0),
|
|
1048
|
-
|
|
1049
|
-
(
|
|
1106
|
+
c("div", La, [
|
|
1107
|
+
(o(!0), i(P, null, D(e.options, (g, y) => (o(), i("label", {
|
|
1050
1108
|
key: g.value,
|
|
1051
|
-
class:
|
|
1109
|
+
class: B(["nb-radio", { "is-checked": e.modelValue === g.value }]),
|
|
1052
1110
|
for: `${a(l)}-${y}`
|
|
1053
1111
|
}, [
|
|
1054
|
-
|
|
1112
|
+
c("input", {
|
|
1055
1113
|
id: `${a(l)}-${y}`,
|
|
1056
1114
|
class: "nb-radio__input",
|
|
1057
1115
|
type: "radio",
|
|
@@ -1059,21 +1117,21 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1059
1117
|
value: g.value,
|
|
1060
1118
|
checked: e.modelValue === g.value,
|
|
1061
1119
|
disabled: e.disabled || g.disabled,
|
|
1062
|
-
onChange: (
|
|
1063
|
-
}, null, 40,
|
|
1064
|
-
r[0] || (r[0] =
|
|
1120
|
+
onChange: (R) => s("update:modelValue", g.value)
|
|
1121
|
+
}, null, 40, Fa),
|
|
1122
|
+
r[0] || (r[0] = c("span", {
|
|
1065
1123
|
class: "nb-radio__mark",
|
|
1066
1124
|
"aria-hidden": "true"
|
|
1067
1125
|
}, null, -1)),
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
g.description ? (
|
|
1126
|
+
c("span", Ka, [
|
|
1127
|
+
c("span", ja, p(g.label), 1),
|
|
1128
|
+
g.description ? (o(), i("span", Ha, p(g.description), 1)) : h("", !0)
|
|
1071
1129
|
])
|
|
1072
|
-
], 10,
|
|
1130
|
+
], 10, Ua))), 128))
|
|
1073
1131
|
])
|
|
1074
|
-
], 8,
|
|
1132
|
+
], 8, Ga));
|
|
1075
1133
|
}
|
|
1076
|
-
}),
|
|
1134
|
+
}), Xa = /* @__PURE__ */ v({
|
|
1077
1135
|
__name: "NbScrollArea",
|
|
1078
1136
|
props: {
|
|
1079
1137
|
label: { default: "Scrollable content" },
|
|
@@ -1081,27 +1139,27 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1081
1139
|
type: { default: "hover" }
|
|
1082
1140
|
},
|
|
1083
1141
|
setup(e) {
|
|
1084
|
-
return (
|
|
1142
|
+
return (n, t) => (o(), N(a(ze), {
|
|
1085
1143
|
class: "nb-root nb-scroll-area",
|
|
1086
1144
|
type: e.type,
|
|
1087
|
-
style:
|
|
1145
|
+
style: O({ height: e.height })
|
|
1088
1146
|
}, {
|
|
1089
|
-
default:
|
|
1090
|
-
m(a(
|
|
1147
|
+
default: u(() => [
|
|
1148
|
+
m(a(Le), {
|
|
1091
1149
|
class: "nb-scroll-area__viewport",
|
|
1092
1150
|
"aria-label": e.label
|
|
1093
1151
|
}, {
|
|
1094
|
-
default:
|
|
1095
|
-
_(
|
|
1152
|
+
default: u(() => [
|
|
1153
|
+
_(n.$slots, "default")
|
|
1096
1154
|
]),
|
|
1097
1155
|
_: 3
|
|
1098
1156
|
}, 8, ["aria-label"]),
|
|
1099
|
-
m(a(
|
|
1157
|
+
m(a(Ue), {
|
|
1100
1158
|
class: "nb-scroll-area__scrollbar",
|
|
1101
1159
|
orientation: "vertical"
|
|
1102
1160
|
}, {
|
|
1103
|
-
default:
|
|
1104
|
-
m(a(
|
|
1161
|
+
default: u(() => [
|
|
1162
|
+
m(a(Fe), { class: "nb-scroll-area__thumb" })
|
|
1105
1163
|
]),
|
|
1106
1164
|
_: 1
|
|
1107
1165
|
})
|
|
@@ -1109,7 +1167,7 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1109
1167
|
_: 3
|
|
1110
1168
|
}, 8, ["type", "style"]));
|
|
1111
1169
|
}
|
|
1112
|
-
}),
|
|
1170
|
+
}), Qa = { class: "nb-root nb-field" }, Wa = ["for"], Ya = ["id"], Za = ["id"], el = /* @__PURE__ */ v({
|
|
1113
1171
|
inheritAttrs: !1,
|
|
1114
1172
|
__name: "NbSelect",
|
|
1115
1173
|
props: {
|
|
@@ -1124,43 +1182,43 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1124
1182
|
id: {}
|
|
1125
1183
|
},
|
|
1126
1184
|
emits: ["update:modelValue"],
|
|
1127
|
-
setup(e, { emit:
|
|
1128
|
-
const t = e, s =
|
|
1185
|
+
setup(e, { emit: n }) {
|
|
1186
|
+
const t = e, s = n, l = w("select", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
1129
1187
|
function f(d) {
|
|
1130
1188
|
typeof d == "string" && s("update:modelValue", d);
|
|
1131
1189
|
}
|
|
1132
|
-
return (d, r) => (
|
|
1133
|
-
e.label ? (
|
|
1190
|
+
return (d, r) => (o(), i("div", Qa, [
|
|
1191
|
+
e.label ? (o(), i("label", {
|
|
1134
1192
|
key: 0,
|
|
1135
1193
|
class: "nb-field__label",
|
|
1136
1194
|
for: a(l).inputId
|
|
1137
|
-
}, p(e.label), 9,
|
|
1138
|
-
m(a(
|
|
1195
|
+
}, p(e.label), 9, Wa)) : h("", !0),
|
|
1196
|
+
m(a(Ke), {
|
|
1139
1197
|
"model-value": e.modelValue,
|
|
1140
1198
|
disabled: e.disabled,
|
|
1141
1199
|
required: e.required,
|
|
1142
1200
|
name: e.name,
|
|
1143
1201
|
"onUpdate:modelValue": f
|
|
1144
1202
|
}, {
|
|
1145
|
-
default:
|
|
1203
|
+
default: u(() => [
|
|
1146
1204
|
m(a(je), k(d.$attrs, {
|
|
1147
1205
|
id: a(l).inputId,
|
|
1148
1206
|
class: "nb-select__trigger",
|
|
1149
1207
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1150
1208
|
"aria-describedby": b.value
|
|
1151
1209
|
}), {
|
|
1152
|
-
default:
|
|
1153
|
-
m(a(
|
|
1154
|
-
m(a(
|
|
1210
|
+
default: u(() => [
|
|
1211
|
+
m(a(He), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
1212
|
+
m(a(Je), {
|
|
1155
1213
|
class: "nb-select__icon",
|
|
1156
1214
|
"aria-hidden": "true"
|
|
1157
1215
|
}, {
|
|
1158
|
-
default:
|
|
1159
|
-
|
|
1216
|
+
default: u(() => [...r[0] || (r[0] = [
|
|
1217
|
+
c("svg", {
|
|
1160
1218
|
viewBox: "0 0 16 16",
|
|
1161
1219
|
focusable: "false"
|
|
1162
1220
|
}, [
|
|
1163
|
-
|
|
1221
|
+
c("path", { d: "m3 6 5 5 5-5" })
|
|
1164
1222
|
], -1)
|
|
1165
1223
|
])]),
|
|
1166
1224
|
_: 1
|
|
@@ -1169,45 +1227,45 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1169
1227
|
_: 1
|
|
1170
1228
|
}, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
1171
1229
|
m(a(Xe), null, {
|
|
1172
|
-
default:
|
|
1173
|
-
m(a(
|
|
1230
|
+
default: u(() => [
|
|
1231
|
+
m(a(Qe), {
|
|
1174
1232
|
class: "nb-root nb-select__content",
|
|
1175
1233
|
position: "popper",
|
|
1176
1234
|
"side-offset": 5
|
|
1177
1235
|
}, {
|
|
1178
|
-
default:
|
|
1179
|
-
m(a(
|
|
1236
|
+
default: u(() => [
|
|
1237
|
+
m(a(We), {
|
|
1180
1238
|
class: "nb-select__scroll-button",
|
|
1181
1239
|
"aria-label": "Scroll up"
|
|
1182
1240
|
}, {
|
|
1183
|
-
default:
|
|
1184
|
-
|
|
1241
|
+
default: u(() => [...r[1] || (r[1] = [
|
|
1242
|
+
c("svg", {
|
|
1185
1243
|
viewBox: "0 0 16 16",
|
|
1186
1244
|
"aria-hidden": "true",
|
|
1187
1245
|
focusable: "false"
|
|
1188
1246
|
}, [
|
|
1189
|
-
|
|
1247
|
+
c("path", { d: "m3 10 5-5 5 5" })
|
|
1190
1248
|
], -1)
|
|
1191
1249
|
])]),
|
|
1192
1250
|
_: 1
|
|
1193
1251
|
}),
|
|
1194
|
-
m(a(
|
|
1195
|
-
default:
|
|
1252
|
+
m(a(Ye), { class: "nb-select__viewport" }, {
|
|
1253
|
+
default: u(() => [
|
|
1196
1254
|
_(d.$slots, "default")
|
|
1197
1255
|
]),
|
|
1198
1256
|
_: 3
|
|
1199
1257
|
}),
|
|
1200
|
-
m(a(
|
|
1258
|
+
m(a(Ze), {
|
|
1201
1259
|
class: "nb-select__scroll-button",
|
|
1202
1260
|
"aria-label": "Scroll down"
|
|
1203
1261
|
}, {
|
|
1204
|
-
default:
|
|
1205
|
-
|
|
1262
|
+
default: u(() => [...r[2] || (r[2] = [
|
|
1263
|
+
c("svg", {
|
|
1206
1264
|
viewBox: "0 0 16 16",
|
|
1207
1265
|
"aria-hidden": "true",
|
|
1208
1266
|
focusable: "false"
|
|
1209
1267
|
}, [
|
|
1210
|
-
|
|
1268
|
+
c("path", { d: "m3 6 5 5 5-5" })
|
|
1211
1269
|
], -1)
|
|
1212
1270
|
])]),
|
|
1213
1271
|
_: 1
|
|
@@ -1221,48 +1279,48 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1221
1279
|
]),
|
|
1222
1280
|
_: 3
|
|
1223
1281
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
1224
|
-
e.hint ? (
|
|
1282
|
+
e.hint ? (o(), i("span", {
|
|
1225
1283
|
key: 1,
|
|
1226
1284
|
id: a(l).hintId,
|
|
1227
1285
|
class: "nb-field__hint"
|
|
1228
|
-
}, p(e.hint), 9,
|
|
1229
|
-
e.error ? (
|
|
1286
|
+
}, p(e.hint), 9, Ya)) : h("", !0),
|
|
1287
|
+
e.error ? (o(), i("span", {
|
|
1230
1288
|
key: 2,
|
|
1231
1289
|
id: a(l).errorId,
|
|
1232
1290
|
class: "nb-field__error"
|
|
1233
|
-
}, p(e.error), 9,
|
|
1291
|
+
}, p(e.error), 9, Za)) : h("", !0)
|
|
1234
1292
|
]));
|
|
1235
1293
|
}
|
|
1236
|
-
}),
|
|
1294
|
+
}), tl = /* @__PURE__ */ v({
|
|
1237
1295
|
__name: "NbSelectItem",
|
|
1238
1296
|
props: {
|
|
1239
1297
|
value: {},
|
|
1240
1298
|
disabled: { type: Boolean, default: !1 }
|
|
1241
1299
|
},
|
|
1242
1300
|
setup(e) {
|
|
1243
|
-
return (
|
|
1301
|
+
return (n, t) => (o(), N(a(et), {
|
|
1244
1302
|
class: "nb-select__item",
|
|
1245
1303
|
value: e.value,
|
|
1246
1304
|
disabled: e.disabled,
|
|
1247
1305
|
"data-value": e.value
|
|
1248
1306
|
}, {
|
|
1249
|
-
default:
|
|
1250
|
-
m(a(
|
|
1251
|
-
default:
|
|
1252
|
-
_(
|
|
1307
|
+
default: u(() => [
|
|
1308
|
+
m(a(tt), null, {
|
|
1309
|
+
default: u(() => [
|
|
1310
|
+
_(n.$slots, "default")
|
|
1253
1311
|
]),
|
|
1254
1312
|
_: 3
|
|
1255
1313
|
}),
|
|
1256
|
-
m(a(
|
|
1314
|
+
m(a(at), {
|
|
1257
1315
|
class: "nb-select__indicator",
|
|
1258
1316
|
"aria-hidden": "true"
|
|
1259
1317
|
}, {
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1318
|
+
default: u(() => [...t[0] || (t[0] = [
|
|
1319
|
+
c("svg", {
|
|
1262
1320
|
viewBox: "0 0 16 16",
|
|
1263
1321
|
focusable: "false"
|
|
1264
1322
|
}, [
|
|
1265
|
-
|
|
1323
|
+
c("path", { d: "m2.5 8.5 3.5 3.5 7.5-8" })
|
|
1266
1324
|
], -1)
|
|
1267
1325
|
])]),
|
|
1268
1326
|
_: 1
|
|
@@ -1271,26 +1329,26 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1271
1329
|
_: 3
|
|
1272
1330
|
}, 8, ["value", "disabled", "data-value"]));
|
|
1273
1331
|
}
|
|
1274
|
-
}),
|
|
1332
|
+
}), al = /* @__PURE__ */ v({
|
|
1275
1333
|
__name: "NbSeparator",
|
|
1276
1334
|
props: {
|
|
1277
1335
|
orientation: { default: "horizontal" },
|
|
1278
1336
|
decorative: { type: Boolean, default: !0 }
|
|
1279
1337
|
},
|
|
1280
1338
|
setup(e) {
|
|
1281
|
-
return (
|
|
1339
|
+
return (n, t) => (o(), N(a(lt), {
|
|
1282
1340
|
class: "nb-root nb-separator",
|
|
1283
1341
|
orientation: e.orientation,
|
|
1284
1342
|
decorative: e.decorative
|
|
1285
1343
|
}, null, 8, ["orientation", "decorative"]));
|
|
1286
1344
|
}
|
|
1287
|
-
}),
|
|
1345
|
+
}), ll = { class: "nb-root nb-field" }, nl = {
|
|
1288
1346
|
key: 0,
|
|
1289
1347
|
class: "nb-slider__header"
|
|
1290
|
-
},
|
|
1348
|
+
}, ol = {
|
|
1291
1349
|
key: 1,
|
|
1292
1350
|
class: "nb-slider__value"
|
|
1293
|
-
},
|
|
1351
|
+
}, sl = ["id"], il = ["id"], dl = /* @__PURE__ */ v({
|
|
1294
1352
|
inheritAttrs: !1,
|
|
1295
1353
|
__name: "NbSlider",
|
|
1296
1354
|
props: {
|
|
@@ -1308,24 +1366,24 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1308
1366
|
showValue: { type: Boolean, default: !0 }
|
|
1309
1367
|
},
|
|
1310
1368
|
emits: ["update:modelValue", "change"],
|
|
1311
|
-
setup(e, { emit:
|
|
1312
|
-
const t = e, s =
|
|
1369
|
+
setup(e, { emit: n }) {
|
|
1370
|
+
const t = e, s = n, l = w("slider", t.id), b = `${l.inputId}-label`, f = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
1313
1371
|
function d(g) {
|
|
1314
1372
|
g?.[0] !== void 0 && s("update:modelValue", g[0]);
|
|
1315
1373
|
}
|
|
1316
1374
|
function r(g) {
|
|
1317
1375
|
g[0] !== void 0 && s("change", g[0]);
|
|
1318
1376
|
}
|
|
1319
|
-
return (g, y) => (
|
|
1320
|
-
e.label || e.showValue ? (
|
|
1321
|
-
e.label ? (
|
|
1377
|
+
return (g, y) => (o(), i("div", ll, [
|
|
1378
|
+
e.label || e.showValue ? (o(), i("div", nl, [
|
|
1379
|
+
e.label ? (o(), i("span", {
|
|
1322
1380
|
key: 0,
|
|
1323
1381
|
id: b,
|
|
1324
1382
|
class: "nb-field__label"
|
|
1325
1383
|
}, p(e.label), 1)) : h("", !0),
|
|
1326
|
-
e.showValue ? (
|
|
1384
|
+
e.showValue ? (o(), i("output", ol, p(e.modelValue), 1)) : h("", !0)
|
|
1327
1385
|
])) : h("", !0),
|
|
1328
|
-
m(a(
|
|
1386
|
+
m(a(nt), {
|
|
1329
1387
|
class: "nb-slider",
|
|
1330
1388
|
"model-value": [e.modelValue],
|
|
1331
1389
|
min: e.min,
|
|
@@ -1337,14 +1395,14 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1337
1395
|
"onUpdate:modelValue": d,
|
|
1338
1396
|
onValueCommit: r
|
|
1339
1397
|
}, {
|
|
1340
|
-
default:
|
|
1341
|
-
m(a(
|
|
1342
|
-
default:
|
|
1343
|
-
m(a(
|
|
1398
|
+
default: u(() => [
|
|
1399
|
+
m(a(ot), { class: "nb-slider__track" }, {
|
|
1400
|
+
default: u(() => [
|
|
1401
|
+
m(a(st), { class: "nb-slider__range" })
|
|
1344
1402
|
]),
|
|
1345
1403
|
_: 1
|
|
1346
1404
|
}),
|
|
1347
|
-
m(a(
|
|
1405
|
+
m(a(it), k(g.$attrs, {
|
|
1348
1406
|
id: a(l).inputId,
|
|
1349
1407
|
class: "nb-slider__thumb",
|
|
1350
1408
|
"aria-labelledby": e.label ? b : void 0,
|
|
@@ -1354,19 +1412,19 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1354
1412
|
]),
|
|
1355
1413
|
_: 1
|
|
1356
1414
|
}, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
|
|
1357
|
-
e.hint ? (
|
|
1415
|
+
e.hint ? (o(), i("span", {
|
|
1358
1416
|
key: 1,
|
|
1359
1417
|
id: a(l).hintId,
|
|
1360
1418
|
class: "nb-field__hint"
|
|
1361
|
-
}, p(e.hint), 9,
|
|
1362
|
-
e.error ? (
|
|
1419
|
+
}, p(e.hint), 9, sl)) : h("", !0),
|
|
1420
|
+
e.error ? (o(), i("span", {
|
|
1363
1421
|
key: 2,
|
|
1364
1422
|
id: a(l).errorId,
|
|
1365
1423
|
class: "nb-field__error"
|
|
1366
|
-
}, p(e.error), 9,
|
|
1424
|
+
}, p(e.error), 9, il)) : h("", !0)
|
|
1367
1425
|
]));
|
|
1368
1426
|
}
|
|
1369
|
-
}),
|
|
1427
|
+
}), rl = /* @__PURE__ */ v({
|
|
1370
1428
|
__name: "NbSkeleton",
|
|
1371
1429
|
props: {
|
|
1372
1430
|
width: { default: "100%" },
|
|
@@ -1374,32 +1432,32 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1374
1432
|
rounded: { type: Boolean, default: !1 }
|
|
1375
1433
|
},
|
|
1376
1434
|
setup(e) {
|
|
1377
|
-
const
|
|
1378
|
-
return (s, l) => (
|
|
1379
|
-
class:
|
|
1380
|
-
style:
|
|
1435
|
+
const n = e, t = $(() => ({ width: n.width, height: n.height }));
|
|
1436
|
+
return (s, l) => (o(), i("div", {
|
|
1437
|
+
class: B(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
|
|
1438
|
+
style: O(t.value),
|
|
1381
1439
|
"aria-hidden": "true"
|
|
1382
1440
|
}, null, 6));
|
|
1383
1441
|
}
|
|
1384
|
-
}),
|
|
1442
|
+
}), ul = ["aria-label"], cl = /* @__PURE__ */ v({
|
|
1385
1443
|
__name: "NbSpinner",
|
|
1386
1444
|
props: {
|
|
1387
1445
|
label: { default: "Loading" },
|
|
1388
1446
|
size: { default: "md" }
|
|
1389
1447
|
},
|
|
1390
1448
|
setup(e) {
|
|
1391
|
-
return (
|
|
1449
|
+
return (n, t) => (o(), i("span", {
|
|
1392
1450
|
class: "nb-root nb-spinner-wrap",
|
|
1393
1451
|
role: "status",
|
|
1394
1452
|
"aria-label": e.label
|
|
1395
1453
|
}, [
|
|
1396
|
-
|
|
1397
|
-
class:
|
|
1454
|
+
c("span", {
|
|
1455
|
+
class: B(["nb-spinner", `nb-spinner--${e.size}`]),
|
|
1398
1456
|
"aria-hidden": "true"
|
|
1399
1457
|
}, null, 2)
|
|
1400
|
-
], 8,
|
|
1458
|
+
], 8, ul));
|
|
1401
1459
|
}
|
|
1402
|
-
}),
|
|
1460
|
+
}), bl = ["for"], fl = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], ml = { class: "nb-switch__content" }, pl = { class: "nb-switch__label" }, hl = ["id"], vl = /* @__PURE__ */ v({
|
|
1403
1461
|
inheritAttrs: !1,
|
|
1404
1462
|
__name: "NbSwitch",
|
|
1405
1463
|
props: {
|
|
@@ -1410,13 +1468,13 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1410
1468
|
id: {}
|
|
1411
1469
|
},
|
|
1412
1470
|
emits: ["update:modelValue"],
|
|
1413
|
-
setup(e, { emit:
|
|
1414
|
-
const t = e, s =
|
|
1415
|
-
return (b, f) => (
|
|
1416
|
-
class:
|
|
1471
|
+
setup(e, { emit: n }) {
|
|
1472
|
+
const t = e, s = n, l = w("switch", t.id);
|
|
1473
|
+
return (b, f) => (o(), i("label", {
|
|
1474
|
+
class: B(["nb-root nb-switch", { "is-disabled": e.disabled }]),
|
|
1417
1475
|
for: a(l).inputId
|
|
1418
1476
|
}, [
|
|
1419
|
-
|
|
1477
|
+
c("input", k(b.$attrs, {
|
|
1420
1478
|
id: a(l).inputId,
|
|
1421
1479
|
class: "nb-switch__input",
|
|
1422
1480
|
type: "checkbox",
|
|
@@ -1426,30 +1484,30 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1426
1484
|
"aria-checked": e.modelValue ? "true" : "false",
|
|
1427
1485
|
"aria-describedby": e.description ? a(l).hintId : void 0,
|
|
1428
1486
|
onChange: f[0] || (f[0] = (d) => s("update:modelValue", d.target.checked))
|
|
1429
|
-
}), null, 16,
|
|
1430
|
-
f[1] || (f[1] =
|
|
1487
|
+
}), null, 16, fl),
|
|
1488
|
+
f[1] || (f[1] = c("span", {
|
|
1431
1489
|
class: "nb-switch__track",
|
|
1432
1490
|
"aria-hidden": "true"
|
|
1433
1491
|
}, [
|
|
1434
|
-
|
|
1492
|
+
c("span", { class: "nb-switch__thumb" })
|
|
1435
1493
|
], -1)),
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
e.description ? (
|
|
1494
|
+
c("span", ml, [
|
|
1495
|
+
c("span", pl, p(e.label), 1),
|
|
1496
|
+
e.description ? (o(), i("span", {
|
|
1439
1497
|
key: 0,
|
|
1440
1498
|
id: a(l).hintId,
|
|
1441
1499
|
class: "nb-switch__description"
|
|
1442
|
-
}, p(e.description), 9,
|
|
1500
|
+
}, p(e.description), 9, hl)) : h("", !0)
|
|
1443
1501
|
])
|
|
1444
|
-
], 10,
|
|
1502
|
+
], 10, bl));
|
|
1445
1503
|
}
|
|
1446
|
-
}),
|
|
1504
|
+
}), U = /* @__PURE__ */ Symbol("nb-tabs");
|
|
1447
1505
|
function E() {
|
|
1448
|
-
const e = X(
|
|
1506
|
+
const e = X(U);
|
|
1449
1507
|
if (!e) throw new Error("Tabs components must be used inside NbTabs");
|
|
1450
1508
|
return e;
|
|
1451
1509
|
}
|
|
1452
|
-
const
|
|
1510
|
+
const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
1453
1511
|
__name: "NbTabs",
|
|
1454
1512
|
props: {
|
|
1455
1513
|
modelValue: {},
|
|
@@ -1457,32 +1515,32 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1457
1515
|
orientation: { default: "horizontal" }
|
|
1458
1516
|
},
|
|
1459
1517
|
emits: ["update:modelValue"],
|
|
1460
|
-
setup(e, { emit:
|
|
1461
|
-
const t = e, s =
|
|
1518
|
+
setup(e, { emit: n }) {
|
|
1519
|
+
const t = e, s = n, l = S("tabs"), b = x(t.defaultValue), f = $(() => t.modelValue ?? b.value), d = $(() => t.orientation), r = (y) => encodeURIComponent(y);
|
|
1462
1520
|
function g(y) {
|
|
1463
1521
|
t.modelValue === void 0 && (b.value = y), s("update:modelValue", y);
|
|
1464
1522
|
}
|
|
1465
|
-
return
|
|
1523
|
+
return Q(U, {
|
|
1466
1524
|
activeValue: f,
|
|
1467
1525
|
orientation: d,
|
|
1468
1526
|
select: g,
|
|
1469
1527
|
triggerId: (y) => `${l}-tab-${r(y)}`,
|
|
1470
1528
|
panelId: (y) => `${l}-panel-${r(y)}`
|
|
1471
|
-
}), (y,
|
|
1472
|
-
class:
|
|
1529
|
+
}), (y, R) => (o(), i("div", {
|
|
1530
|
+
class: B(["nb-root nb-tabs", `nb-tabs--${d.value}`]),
|
|
1473
1531
|
"data-orientation": d.value
|
|
1474
1532
|
}, [
|
|
1475
1533
|
_(y.$slots, "default")
|
|
1476
|
-
], 10,
|
|
1534
|
+
], 10, gl));
|
|
1477
1535
|
}
|
|
1478
|
-
}),
|
|
1536
|
+
}), yl = ["id", "aria-labelledby", "hidden"], $l = /* @__PURE__ */ v({
|
|
1479
1537
|
__name: "NbTabsContent",
|
|
1480
1538
|
props: {
|
|
1481
1539
|
value: {}
|
|
1482
1540
|
},
|
|
1483
1541
|
setup(e) {
|
|
1484
|
-
const
|
|
1485
|
-
return (l, b) =>
|
|
1542
|
+
const n = e, t = E(), s = $(() => t.activeValue.value === n.value);
|
|
1543
|
+
return (l, b) => W((o(), i("div", {
|
|
1486
1544
|
class: "nb-tabs__content",
|
|
1487
1545
|
role: "tabpanel",
|
|
1488
1546
|
id: a(t).panelId(e.value),
|
|
@@ -1491,16 +1549,16 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1491
1549
|
tabindex: "0"
|
|
1492
1550
|
}, [
|
|
1493
1551
|
_(l.$slots, "default")
|
|
1494
|
-
], 8,
|
|
1495
|
-
[
|
|
1552
|
+
], 8, yl)), [
|
|
1553
|
+
[Y, s.value]
|
|
1496
1554
|
]);
|
|
1497
1555
|
}
|
|
1498
|
-
}),
|
|
1556
|
+
}), Nl = ["aria-orientation"], kl = /* @__PURE__ */ v({
|
|
1499
1557
|
__name: "NbTabsList",
|
|
1500
1558
|
setup(e) {
|
|
1501
|
-
const { orientation:
|
|
1559
|
+
const { orientation: n } = E();
|
|
1502
1560
|
function t(s) {
|
|
1503
|
-
const l =
|
|
1561
|
+
const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
|
|
1504
1562
|
if (![l, b, "Home", "End"].includes(s.key)) return;
|
|
1505
1563
|
const f = s.currentTarget, d = Array.from(f.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), g = r ? d.indexOf(r) : -1;
|
|
1506
1564
|
if (!d.length || g < 0) return;
|
|
@@ -1508,25 +1566,25 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1508
1566
|
const y = s.key === "Home" ? 0 : s.key === "End" ? d.length - 1 : (g + (s.key === b ? 1 : -1) + d.length) % d.length;
|
|
1509
1567
|
d[y]?.focus(), d[y]?.click();
|
|
1510
1568
|
}
|
|
1511
|
-
return (s, l) => (
|
|
1569
|
+
return (s, l) => (o(), i("div", {
|
|
1512
1570
|
class: "nb-tabs__list",
|
|
1513
1571
|
role: "tablist",
|
|
1514
|
-
"aria-orientation": a(
|
|
1572
|
+
"aria-orientation": a(n),
|
|
1515
1573
|
onKeydown: t
|
|
1516
1574
|
}, [
|
|
1517
1575
|
_(s.$slots, "default")
|
|
1518
|
-
], 40,
|
|
1576
|
+
], 40, Nl));
|
|
1519
1577
|
}
|
|
1520
|
-
}),
|
|
1578
|
+
}), Il = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], Bl = /* @__PURE__ */ v({
|
|
1521
1579
|
__name: "NbTabsTrigger",
|
|
1522
1580
|
props: {
|
|
1523
1581
|
value: {},
|
|
1524
1582
|
disabled: { type: Boolean, default: !1 }
|
|
1525
1583
|
},
|
|
1526
1584
|
setup(e) {
|
|
1527
|
-
const
|
|
1528
|
-
return (l, b) => (
|
|
1529
|
-
class:
|
|
1585
|
+
const n = e, t = E(), s = $(() => t.activeValue.value === n.value);
|
|
1586
|
+
return (l, b) => (o(), i("button", {
|
|
1587
|
+
class: B(["nb-tabs__trigger", { "is-active": s.value }]),
|
|
1530
1588
|
id: a(t).triggerId(e.value),
|
|
1531
1589
|
type: "button",
|
|
1532
1590
|
role: "tab",
|
|
@@ -1538,9 +1596,9 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1538
1596
|
onClick: b[0] || (b[0] = (f) => a(t).select(e.value))
|
|
1539
1597
|
}, [
|
|
1540
1598
|
_(l.$slots, "default")
|
|
1541
|
-
], 10,
|
|
1599
|
+
], 10, Il));
|
|
1542
1600
|
}
|
|
1543
|
-
}),
|
|
1601
|
+
}), Vl = { class: "nb-root nb-field" }, wl = ["for"], xl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Sl = ["id"], Tl = ["id"], Al = /* @__PURE__ */ v({
|
|
1544
1602
|
inheritAttrs: !1,
|
|
1545
1603
|
__name: "NbTextarea",
|
|
1546
1604
|
props: {
|
|
@@ -1552,15 +1610,15 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1552
1610
|
id: {}
|
|
1553
1611
|
},
|
|
1554
1612
|
emits: ["update:modelValue"],
|
|
1555
|
-
setup(e, { emit:
|
|
1556
|
-
const t = e, s =
|
|
1557
|
-
return (f, d) => (
|
|
1558
|
-
e.label ? (
|
|
1613
|
+
setup(e, { emit: n }) {
|
|
1614
|
+
const t = e, s = n, l = w("textarea", t.id), b = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
1615
|
+
return (f, d) => (o(), i("div", Vl, [
|
|
1616
|
+
e.label ? (o(), i("label", {
|
|
1559
1617
|
key: 0,
|
|
1560
1618
|
class: "nb-field__label",
|
|
1561
1619
|
for: a(l).inputId
|
|
1562
|
-
}, p(e.label), 9,
|
|
1563
|
-
|
|
1620
|
+
}, p(e.label), 9, wl)) : h("", !0),
|
|
1621
|
+
c("textarea", k(f.$attrs, {
|
|
1564
1622
|
id: a(l).inputId,
|
|
1565
1623
|
class: "nb-field__control nb-field__control--textarea",
|
|
1566
1624
|
value: e.modelValue,
|
|
@@ -1568,34 +1626,34 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1568
1626
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1569
1627
|
"aria-describedby": b.value,
|
|
1570
1628
|
onInput: d[0] || (d[0] = (r) => s("update:modelValue", r.target.value))
|
|
1571
|
-
}), null, 16,
|
|
1572
|
-
e.hint ? (
|
|
1629
|
+
}), null, 16, xl),
|
|
1630
|
+
e.hint ? (o(), i("span", {
|
|
1573
1631
|
key: 1,
|
|
1574
1632
|
id: a(l).hintId,
|
|
1575
1633
|
class: "nb-field__hint"
|
|
1576
|
-
}, p(e.hint), 9,
|
|
1577
|
-
e.error ? (
|
|
1634
|
+
}, p(e.hint), 9, Sl)) : h("", !0),
|
|
1635
|
+
e.error ? (o(), i("span", {
|
|
1578
1636
|
key: 2,
|
|
1579
1637
|
id: a(l).errorId,
|
|
1580
1638
|
class: "nb-field__error"
|
|
1581
|
-
}, p(e.error), 9,
|
|
1639
|
+
}, p(e.error), 9, Tl)) : h("", !0)
|
|
1582
1640
|
]));
|
|
1583
1641
|
}
|
|
1584
|
-
}),
|
|
1642
|
+
}), Cl = { class: "nb-root nb-table-wrap" }, Pl = { key: 0 }, Dl = /* @__PURE__ */ v({
|
|
1585
1643
|
inheritAttrs: !1,
|
|
1586
1644
|
__name: "NbTable",
|
|
1587
1645
|
props: {
|
|
1588
1646
|
caption: {}
|
|
1589
1647
|
},
|
|
1590
1648
|
setup(e) {
|
|
1591
|
-
return (
|
|
1592
|
-
|
|
1593
|
-
e.caption ? (
|
|
1594
|
-
_(
|
|
1649
|
+
return (n, t) => (o(), i("div", Cl, [
|
|
1650
|
+
c("table", k(n.$attrs, { class: "nb-table" }), [
|
|
1651
|
+
e.caption ? (o(), i("caption", Pl, p(e.caption), 1)) : h("", !0),
|
|
1652
|
+
_(n.$slots, "default")
|
|
1595
1653
|
], 16)
|
|
1596
1654
|
]));
|
|
1597
1655
|
}
|
|
1598
|
-
}),
|
|
1656
|
+
}), Ml = { class: "nb-toast__content" }, Rl = /* @__PURE__ */ v({
|
|
1599
1657
|
__name: "NbToast",
|
|
1600
1658
|
props: {
|
|
1601
1659
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1606,64 +1664,92 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1606
1664
|
duration: { default: 5e3 }
|
|
1607
1665
|
},
|
|
1608
1666
|
emits: ["update:open"],
|
|
1609
|
-
setup(e, { emit:
|
|
1610
|
-
const t = e, s =
|
|
1611
|
-
|
|
1667
|
+
setup(e, { emit: n }) {
|
|
1668
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), b = $(() => t.open ?? l.value);
|
|
1669
|
+
M(() => t.open, (d) => {
|
|
1612
1670
|
d !== void 0 && (l.value = d);
|
|
1613
1671
|
});
|
|
1614
1672
|
function f(d) {
|
|
1615
1673
|
l.value = d, s("update:open", d);
|
|
1616
1674
|
}
|
|
1617
|
-
return (d, r) => (
|
|
1675
|
+
return (d, r) => (o(), N(a(dt), {
|
|
1618
1676
|
label: "Notification",
|
|
1619
1677
|
duration: e.duration
|
|
1620
1678
|
}, {
|
|
1621
|
-
default:
|
|
1622
|
-
m(a(
|
|
1623
|
-
class:
|
|
1679
|
+
default: u(() => [
|
|
1680
|
+
m(a(rt), {
|
|
1681
|
+
class: B(["nb-root nb-toast", `nb-toast--${e.tone}`]),
|
|
1624
1682
|
open: b.value,
|
|
1625
1683
|
"default-open": e.defaultOpen,
|
|
1626
1684
|
type: "foreground",
|
|
1627
1685
|
role: "status",
|
|
1628
1686
|
"onUpdate:open": f
|
|
1629
1687
|
}, {
|
|
1630
|
-
default:
|
|
1631
|
-
|
|
1632
|
-
m(a(
|
|
1633
|
-
default:
|
|
1634
|
-
|
|
1688
|
+
default: u(() => [
|
|
1689
|
+
c("div", Ml, [
|
|
1690
|
+
m(a(ut), { class: "nb-toast__title" }, {
|
|
1691
|
+
default: u(() => [
|
|
1692
|
+
V(p(e.title), 1)
|
|
1635
1693
|
]),
|
|
1636
1694
|
_: 1
|
|
1637
1695
|
}),
|
|
1638
|
-
e.description ? (
|
|
1696
|
+
e.description ? (o(), N(a(ct), {
|
|
1639
1697
|
key: 0,
|
|
1640
1698
|
class: "nb-toast__description"
|
|
1641
1699
|
}, {
|
|
1642
|
-
default:
|
|
1643
|
-
|
|
1700
|
+
default: u(() => [
|
|
1701
|
+
V(p(e.description), 1)
|
|
1644
1702
|
]),
|
|
1645
1703
|
_: 1
|
|
1646
1704
|
})) : h("", !0),
|
|
1647
1705
|
_(d.$slots, "default")
|
|
1648
1706
|
]),
|
|
1649
|
-
m(a(
|
|
1707
|
+
m(a(bt), {
|
|
1650
1708
|
class: "nb-overlay-close",
|
|
1651
1709
|
"aria-label": "Dismiss notification"
|
|
1652
1710
|
}, {
|
|
1653
|
-
default:
|
|
1654
|
-
|
|
1711
|
+
default: u(() => [...r[0] || (r[0] = [
|
|
1712
|
+
V("×", -1)
|
|
1655
1713
|
])]),
|
|
1656
1714
|
_: 1
|
|
1657
1715
|
})
|
|
1658
1716
|
]),
|
|
1659
1717
|
_: 3
|
|
1660
1718
|
}, 8, ["class", "open", "default-open"]),
|
|
1661
|
-
m(a(
|
|
1719
|
+
m(a(ft), { class: "nb-root nb-toast-viewport" })
|
|
1662
1720
|
]),
|
|
1663
1721
|
_: 3
|
|
1664
1722
|
}, 8, ["duration"]));
|
|
1665
1723
|
}
|
|
1666
|
-
}),
|
|
1724
|
+
}), ql = /* @__PURE__ */ v({
|
|
1725
|
+
inheritAttrs: !1,
|
|
1726
|
+
__name: "NbToggle",
|
|
1727
|
+
props: {
|
|
1728
|
+
modelValue: { type: Boolean },
|
|
1729
|
+
defaultValue: { type: Boolean },
|
|
1730
|
+
disabled: { type: Boolean, default: !1 },
|
|
1731
|
+
label: {},
|
|
1732
|
+
tone: { default: "primary" },
|
|
1733
|
+
size: { default: "md" }
|
|
1734
|
+
},
|
|
1735
|
+
emits: ["update:modelValue"],
|
|
1736
|
+
setup(e, { emit: n }) {
|
|
1737
|
+
const t = e, s = n, l = $(() => C(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
|
|
1738
|
+
return (b, f) => (o(), N(a(mt), k(b.$attrs, {
|
|
1739
|
+
class: ["nb-root nb-toggle", l.value],
|
|
1740
|
+
"model-value": e.modelValue,
|
|
1741
|
+
"default-value": e.defaultValue,
|
|
1742
|
+
disabled: e.disabled,
|
|
1743
|
+
"aria-label": e.label,
|
|
1744
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => s("update:modelValue", d))
|
|
1745
|
+
}), {
|
|
1746
|
+
default: u(() => [
|
|
1747
|
+
_(b.$slots, "default")
|
|
1748
|
+
]),
|
|
1749
|
+
_: 3
|
|
1750
|
+
}, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
|
|
1751
|
+
}
|
|
1752
|
+
}), Ol = { class: "nb-root nb-field" }, El = ["id"], Gl = ["id"], zl = /* @__PURE__ */ v({
|
|
1667
1753
|
inheritAttrs: !1,
|
|
1668
1754
|
__name: "NbToggleGroup",
|
|
1669
1755
|
props: {
|
|
@@ -1679,18 +1765,18 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1679
1765
|
id: {}
|
|
1680
1766
|
},
|
|
1681
1767
|
emits: ["update:modelValue"],
|
|
1682
|
-
setup(e, { emit:
|
|
1683
|
-
const t = e, s =
|
|
1768
|
+
setup(e, { emit: n }) {
|
|
1769
|
+
const t = e, s = n, l = w("toggle-group", t.id), b = `${l.inputId}-label`, f = $(() => A(t.hint, t.error, l.hintId, l.errorId));
|
|
1684
1770
|
function d(r) {
|
|
1685
1771
|
(typeof r == "string" || Array.isArray(r) && r.every((g) => typeof g == "string")) && s("update:modelValue", r);
|
|
1686
1772
|
}
|
|
1687
|
-
return (r, g) => (
|
|
1688
|
-
e.label ? (
|
|
1773
|
+
return (r, g) => (o(), i("div", Ol, [
|
|
1774
|
+
e.label ? (o(), i("span", {
|
|
1689
1775
|
key: 0,
|
|
1690
1776
|
id: b,
|
|
1691
1777
|
class: "nb-field__label"
|
|
1692
1778
|
}, p(e.label), 1)) : h("", !0),
|
|
1693
|
-
m(a(
|
|
1779
|
+
m(a(pt), k(r.$attrs, {
|
|
1694
1780
|
id: a(l).inputId,
|
|
1695
1781
|
class: "nb-toggle-group",
|
|
1696
1782
|
"model-value": e.modelValue,
|
|
@@ -1705,24 +1791,24 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1705
1791
|
"aria-describedby": f.value,
|
|
1706
1792
|
"onUpdate:modelValue": d
|
|
1707
1793
|
}), {
|
|
1708
|
-
default:
|
|
1794
|
+
default: u(() => [
|
|
1709
1795
|
_(r.$slots, "default")
|
|
1710
1796
|
]),
|
|
1711
1797
|
_: 3
|
|
1712
1798
|
}, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
|
|
1713
|
-
e.hint ? (
|
|
1799
|
+
e.hint ? (o(), i("span", {
|
|
1714
1800
|
key: 1,
|
|
1715
1801
|
id: a(l).hintId,
|
|
1716
1802
|
class: "nb-field__hint"
|
|
1717
|
-
}, p(e.hint), 9,
|
|
1718
|
-
e.error ? (
|
|
1803
|
+
}, p(e.hint), 9, El)) : h("", !0),
|
|
1804
|
+
e.error ? (o(), i("span", {
|
|
1719
1805
|
key: 2,
|
|
1720
1806
|
id: a(l).errorId,
|
|
1721
1807
|
class: "nb-field__error"
|
|
1722
|
-
}, p(e.error), 9,
|
|
1808
|
+
}, p(e.error), 9, Gl)) : h("", !0)
|
|
1723
1809
|
]));
|
|
1724
1810
|
}
|
|
1725
|
-
}),
|
|
1811
|
+
}), Ll = /* @__PURE__ */ v({
|
|
1726
1812
|
inheritAttrs: !1,
|
|
1727
1813
|
__name: "NbToggleGroupItem",
|
|
1728
1814
|
props: {
|
|
@@ -1730,24 +1816,24 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1730
1816
|
disabled: { type: Boolean, default: !1 }
|
|
1731
1817
|
},
|
|
1732
1818
|
setup(e) {
|
|
1733
|
-
return (
|
|
1819
|
+
return (n, t) => (o(), N(a(ht), k(n.$attrs, {
|
|
1734
1820
|
class: "nb-toggle-group__item",
|
|
1735
1821
|
value: e.value,
|
|
1736
1822
|
disabled: e.disabled
|
|
1737
1823
|
}), {
|
|
1738
|
-
default:
|
|
1739
|
-
_(
|
|
1824
|
+
default: u(() => [
|
|
1825
|
+
_(n.$slots, "default")
|
|
1740
1826
|
]),
|
|
1741
1827
|
_: 3
|
|
1742
1828
|
}, 16, ["value", "disabled"]));
|
|
1743
1829
|
}
|
|
1744
|
-
}),
|
|
1830
|
+
}), Ul = ["aria-describedby"], Fl = ["id", "hidden"], Kl = /* @__PURE__ */ v({
|
|
1745
1831
|
__name: "NbTooltip",
|
|
1746
1832
|
props: {
|
|
1747
1833
|
content: {}
|
|
1748
1834
|
},
|
|
1749
1835
|
setup(e) {
|
|
1750
|
-
const
|
|
1836
|
+
const n = e, t = x(!1), s = S("tooltip");
|
|
1751
1837
|
function l() {
|
|
1752
1838
|
t.value = !0;
|
|
1753
1839
|
}
|
|
@@ -1757,12 +1843,12 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1757
1843
|
function f(d) {
|
|
1758
1844
|
d.key === "Escape" && b();
|
|
1759
1845
|
}
|
|
1760
|
-
return (d, r) => (
|
|
1846
|
+
return (d, r) => (o(), i("span", {
|
|
1761
1847
|
class: "nb-root nb-tooltip",
|
|
1762
1848
|
onMouseenter: l,
|
|
1763
1849
|
onMouseleave: b
|
|
1764
1850
|
}, [
|
|
1765
|
-
|
|
1851
|
+
c("span", {
|
|
1766
1852
|
class: "nb-tooltip__trigger",
|
|
1767
1853
|
tabindex: "0",
|
|
1768
1854
|
"aria-describedby": a(s),
|
|
@@ -1771,105 +1857,115 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1771
1857
|
onKeydown: f
|
|
1772
1858
|
}, [
|
|
1773
1859
|
_(d.$slots, "default")
|
|
1774
|
-
], 40,
|
|
1775
|
-
|
|
1860
|
+
], 40, Ul),
|
|
1861
|
+
c("span", {
|
|
1776
1862
|
id: a(s),
|
|
1777
1863
|
class: "nb-tooltip__content",
|
|
1778
1864
|
role: "tooltip",
|
|
1779
1865
|
hidden: !t.value
|
|
1780
1866
|
}, [
|
|
1781
1867
|
_(d.$slots, "content", {}, () => [
|
|
1782
|
-
|
|
1868
|
+
V(p(n.content), 1)
|
|
1783
1869
|
])
|
|
1784
|
-
], 8,
|
|
1870
|
+
], 8, Fl)
|
|
1785
1871
|
], 32));
|
|
1786
1872
|
}
|
|
1787
|
-
}),
|
|
1788
|
-
NbAccordion:
|
|
1789
|
-
NbAccordionItem:
|
|
1790
|
-
NbAlert:
|
|
1791
|
-
NbAspectRatio:
|
|
1792
|
-
NbAvatar:
|
|
1793
|
-
NbBadge:
|
|
1794
|
-
NbBreadcrumbs:
|
|
1795
|
-
NbButton:
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1873
|
+
}), Jl = vt({
|
|
1874
|
+
NbAccordion: gt,
|
|
1875
|
+
NbAccordionItem: yt,
|
|
1876
|
+
NbAlert: Xt,
|
|
1877
|
+
NbAspectRatio: $t,
|
|
1878
|
+
NbAvatar: kt,
|
|
1879
|
+
NbBadge: Nt,
|
|
1880
|
+
NbBreadcrumbs: xt,
|
|
1881
|
+
NbButton: At,
|
|
1882
|
+
NbButtonGroup: Pt,
|
|
1883
|
+
NbCard: qt,
|
|
1884
|
+
NbCheckbox: zt,
|
|
1885
|
+
NbCombobox: jt,
|
|
1886
|
+
NbDialog: Zt,
|
|
1887
|
+
NbDropdownMenu: ea,
|
|
1888
|
+
NbDropdownMenuItem: ta,
|
|
1889
|
+
NbDropdownMenuSeparator: aa,
|
|
1890
|
+
NbEmptyState: da,
|
|
1891
|
+
NbFieldset: ba,
|
|
1892
|
+
NbInput: ga,
|
|
1893
|
+
NbInputGroup: ka,
|
|
1894
|
+
NbKbd: Ia,
|
|
1895
|
+
NbLink: Ba,
|
|
1896
|
+
NbMarker: Va,
|
|
1897
|
+
NbNumberInput: Aa,
|
|
1898
|
+
NbPagination: Ca,
|
|
1899
|
+
NbPopover: Ra,
|
|
1900
|
+
NbProgress: Ea,
|
|
1901
|
+
NbRadioGroup: Ja,
|
|
1902
|
+
NbScrollArea: Xa,
|
|
1903
|
+
NbSelect: el,
|
|
1904
|
+
NbSelectItem: tl,
|
|
1905
|
+
NbSeparator: al,
|
|
1906
|
+
NbSkeleton: rl,
|
|
1907
|
+
NbSlider: dl,
|
|
1908
|
+
NbSpinner: cl,
|
|
1909
|
+
NbSwitch: vl,
|
|
1910
|
+
NbTable: Dl,
|
|
1911
|
+
NbTabs: _l,
|
|
1912
|
+
NbTabsContent: $l,
|
|
1913
|
+
NbTabsList: kl,
|
|
1914
|
+
NbTabsTrigger: Bl,
|
|
1915
|
+
NbTextarea: Al,
|
|
1916
|
+
NbToast: Rl,
|
|
1917
|
+
NbToggle: ql,
|
|
1918
|
+
NbToggleGroup: zl,
|
|
1919
|
+
NbToggleGroupItem: Ll,
|
|
1920
|
+
NbTooltip: Kl
|
|
1830
1921
|
});
|
|
1831
1922
|
export {
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
Pt as
|
|
1841
|
-
|
|
1842
|
-
zt as
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
da as
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
ka as
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
Ja as
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1923
|
+
gt as NbAccordion,
|
|
1924
|
+
yt as NbAccordionItem,
|
|
1925
|
+
Xt as NbAlert,
|
|
1926
|
+
$t as NbAspectRatio,
|
|
1927
|
+
kt as NbAvatar,
|
|
1928
|
+
Nt as NbBadge,
|
|
1929
|
+
xt as NbBreadcrumbs,
|
|
1930
|
+
At as NbButton,
|
|
1931
|
+
Pt as NbButtonGroup,
|
|
1932
|
+
qt as NbCard,
|
|
1933
|
+
zt as NbCheckbox,
|
|
1934
|
+
jt as NbCombobox,
|
|
1935
|
+
Zt as NbDialog,
|
|
1936
|
+
ea as NbDropdownMenu,
|
|
1937
|
+
ta as NbDropdownMenuItem,
|
|
1938
|
+
aa as NbDropdownMenuSeparator,
|
|
1939
|
+
da as NbEmptyState,
|
|
1940
|
+
ba as NbFieldset,
|
|
1941
|
+
ga as NbInput,
|
|
1942
|
+
ka as NbInputGroup,
|
|
1943
|
+
Ia as NbKbd,
|
|
1944
|
+
Ba as NbLink,
|
|
1945
|
+
Va as NbMarker,
|
|
1946
|
+
Aa as NbNumberInput,
|
|
1947
|
+
Ca as NbPagination,
|
|
1948
|
+
Ra as NbPopover,
|
|
1949
|
+
Ea as NbProgress,
|
|
1950
|
+
Ja as NbRadioGroup,
|
|
1951
|
+
Xa as NbScrollArea,
|
|
1952
|
+
el as NbSelect,
|
|
1953
|
+
tl as NbSelectItem,
|
|
1954
|
+
al as NbSeparator,
|
|
1955
|
+
rl as NbSkeleton,
|
|
1956
|
+
dl as NbSlider,
|
|
1957
|
+
cl as NbSpinner,
|
|
1958
|
+
vl as NbSwitch,
|
|
1959
|
+
Dl as NbTable,
|
|
1960
|
+
_l as NbTabs,
|
|
1961
|
+
$l as NbTabsContent,
|
|
1962
|
+
kl as NbTabsList,
|
|
1963
|
+
Bl as NbTabsTrigger,
|
|
1964
|
+
Al as NbTextarea,
|
|
1965
|
+
Rl as NbToast,
|
|
1966
|
+
ql as NbToggle,
|
|
1967
|
+
zl as NbToggleGroup,
|
|
1968
|
+
Ll as NbToggleGroupItem,
|
|
1969
|
+
Kl as NbTooltip,
|
|
1970
|
+
Jl as NeoBrutalVue
|
|
1875
1971
|
};
|