@neobrut-vue/core 0.5.0 → 0.6.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 +16 -5
- package/dist/components/NbCarousel/NbCarousel.vue.d.ts +26 -0
- package/dist/components/NbCarousel/NbCarouselSlide.vue.d.ts +20 -0
- package/dist/components/NbCarousel/index.d.ts +2 -0
- package/dist/components/NbDrawer/NbDrawer.vue.d.ts +35 -0
- package/dist/components/NbDrawer/index.d.ts +2 -0
- package/dist/components/NbField/NbField.vue.d.ts +27 -0
- package/dist/components/NbField/index.d.ts +1 -0
- package/dist/components/NbLabel/NbLabel.vue.d.ts +17 -0
- package/dist/components/NbLabel/index.d.ts +1 -0
- package/dist/components/NbMenubar/NbMenubar.vue.d.ts +22 -0
- package/dist/components/NbMenubar/NbMenubarItem.vue.d.ts +28 -0
- package/dist/components/NbMenubar/NbMenubarMenu.vue.d.ts +20 -0
- package/dist/components/NbMenubar/NbMenubarSeparator.vue.d.ts +2 -0
- package/dist/components/NbMenubar/index.d.ts +4 -0
- package/dist/components/NbNativeSelect/NbNativeSelect.vue.d.ts +35 -0
- package/dist/components/NbNativeSelect/index.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/neobrut-vue.css +1 -1
- package/dist/neobrut-vue.js +1200 -857
- package/package.json +6 -2
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 y, unref as a, withCtx as d, renderSlot as _, createVNode as b, createElementVNode as f, toDisplayString as p, computed as N, createElementBlock as u, normalizeClass as C, createCommentVNode as g, createTextVNode as I, Fragment as V, renderList as S, mergeProps as k, ref as x, onMounted as be, onUpdated as fe, nextTick as H, watch as M, onBeforeUnmount as K, withModifiers as me, useSlots as pe, resolveDynamicComponent as ve, normalizeStyle as q, inject as he, provide as _e, withDirectives as ge, vShow as ye } from "vue";
|
|
2
|
+
import { AccordionRoot as $e, AccordionItem as Ne, AccordionHeader as Ie, AccordionTrigger as ke, AccordionContent as xe, AspectRatio as Ce, AvatarRoot as Be, AvatarImage as Ve, AvatarFallback as we, CollapsibleRoot as Se, CollapsibleTrigger as Me, CollapsibleContent as Te, ComboboxRoot as j, ComboboxAnchor as W, ComboboxInput as J, ComboboxTrigger as Ae, ComboboxPortal as De, ComboboxContent as X, ComboboxViewport as Q, ComboboxEmpty as Y, ComboboxItem as Z, ComboboxItemIndicator as Oe, ComboboxGroup as Pe, ComboboxLabel as Re, DialogRoot as ee, DialogTrigger as te, DialogPortal as ae, DialogOverlay as le, DialogContent as ne, DialogTitle as oe, DialogClose as se, ContextMenuRoot as qe, ContextMenuTrigger as Le, ContextMenuPortal as Ue, ContextMenuContent as Ge, ContextMenuCheckboxItem as Ee, ContextMenuItemIndicator as ie, ContextMenuItem as ze, ContextMenuLabel as Fe, ContextMenuRadioGroup as He, ContextMenuRadioItem as Ke, ContextMenuSeparator as je, ContextMenuSub as We, ContextMenuSubTrigger as Je, ContextMenuSubContent as Xe, AlertDialogRoot as Qe, AlertDialogTrigger as Ye, AlertDialogPortal as Ze, AlertDialogOverlay as et, AlertDialogContent as tt, AlertDialogTitle as at, AlertDialogDescription as lt, AlertDialogCancel as nt, AlertDialogAction as ot, DrawerRoot as st, DrawerTrigger as it, DrawerPortal as dt, DrawerOverlay as rt, DrawerContent as ut, DrawerHandle as ct, DrawerTitle as bt, DrawerDescription as ft, DrawerClose as mt, DropdownMenuRoot as pt, DropdownMenuTrigger as vt, DropdownMenuPortal as ht, DropdownMenuContent as _t, DropdownMenuItem as gt, DropdownMenuSeparator as yt, HoverCardRoot as $t, HoverCardTrigger as Nt, HoverCardPortal as It, HoverCardContent as kt, MenubarRoot as xt, MenubarMenu as Ct, MenubarTrigger as Bt, MenubarPortal as Vt, MenubarContent as wt, MenubarItem as St, MenubarSeparator as Mt, NavigationMenuRoot as Tt, NavigationMenuList as At, NavigationMenuItem as Dt, NavigationMenuTrigger as Ot, NavigationMenuContent as Pt, NavigationMenuLink as E, NumberFieldRoot as Rt, NumberFieldDecrement as qt, NumberFieldInput as Lt, NumberFieldIncrement as Ut, PaginationRoot as Gt, PaginationPrev as Et, PaginationList as zt, PaginationListItem as Ft, PaginationEllipsis as Ht, PaginationNext as Kt, PinInputRoot as jt, PinInputInput as Wt, PopoverRoot as Jt, PopoverTrigger as Xt, PopoverPortal as Qt, PopoverContent as Yt, PopoverClose as Zt, ProgressRoot as ea, ProgressIndicator as ta, ScrollAreaRoot as aa, ScrollAreaViewport as la, ScrollAreaScrollbar as na, ScrollAreaThumb as oa, DialogDescription as sa, SelectRoot as ia, SelectTrigger as da, SelectValue as ra, SelectIcon as ua, SelectPortal as ca, SelectContent as ba, SelectScrollUpButton as fa, SelectViewport as ma, SelectScrollDownButton as pa, SelectItem as va, SelectItemText as ha, SelectItemIndicator as _a, Separator as ga, SliderRoot as ya, SliderTrack as $a, SliderRange as Na, SliderThumb as Ia, StepperRoot as ka, StepperItem as xa, StepperTrigger as Ca, StepperIndicator as Ba, StepperTitle as Va, StepperDescription as wa, TagsInputRoot as Sa, TagsInputItem as Ma, TagsInputItemText as Ta, TagsInputItemDelete as Aa, TagsInputInput as Da, ToastProvider as Oa, ToastRoot as Pa, ToastTitle as Ra, ToastDescription as qa, ToastClose as La, ToastViewport as Ua, Toggle as Ga, ToggleGroupRoot as Ea, ToggleGroupItem as za } from "reka-ui";
|
|
3
|
+
function Fa(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 Ha = /* @__PURE__ */ v({
|
|
11
11
|
__name: "NbAccordion",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {},
|
|
@@ -16,24 +16,24 @@ const xa = /* @__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(), y(a($e), {
|
|
22
22
|
class: "nb-root nb-accordion",
|
|
23
23
|
type: "single",
|
|
24
24
|
"model-value": e.modelValue,
|
|
25
25
|
"default-value": e.defaultValue,
|
|
26
26
|
collapsible: e.collapsible,
|
|
27
27
|
disabled: e.disabled,
|
|
28
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
28
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => t("update:modelValue", c))
|
|
29
29
|
}, {
|
|
30
30
|
default: d(() => [
|
|
31
|
-
|
|
31
|
+
_(s.$slots, "default")
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
34
34
|
}, 8, ["model-value", "default-value", "collapsible", "disabled"]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), Ka = { class: "nb-accordion__body" }, ja = /* @__PURE__ */ v({
|
|
37
37
|
__name: "NbAccordionItem",
|
|
38
38
|
props: {
|
|
39
39
|
value: {},
|
|
@@ -41,15 +41,15 @@ const xa = /* @__PURE__ */ v({
|
|
|
41
41
|
disabled: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
return (
|
|
44
|
+
return (n, t) => (o(), y(a(Ne), {
|
|
45
45
|
class: "nb-accordion__item",
|
|
46
46
|
value: e.value,
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, {
|
|
49
49
|
default: d(() => [
|
|
50
|
-
|
|
50
|
+
b(a(Ie), { class: "nb-accordion__header" }, {
|
|
51
51
|
default: d(() => [
|
|
52
|
-
|
|
52
|
+
b(a(ke), { class: "nb-accordion__trigger" }, {
|
|
53
53
|
default: d(() => [
|
|
54
54
|
f("span", null, p(e.title), 1),
|
|
55
55
|
t[0] || (t[0] = f("svg", {
|
|
@@ -66,10 +66,10 @@ const xa = /* @__PURE__ */ v({
|
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
}),
|
|
69
|
-
|
|
69
|
+
b(a(xe), { class: "nb-accordion__content" }, {
|
|
70
70
|
default: d(() => [
|
|
71
|
-
f("div",
|
|
72
|
-
|
|
71
|
+
f("div", Ka, [
|
|
72
|
+
_(n.$slots, "default")
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
_: 3
|
|
@@ -78,18 +78,18 @@ const xa = /* @__PURE__ */ v({
|
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["value", "disabled"]));
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), Wa = /* @__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(), y(a(Ce), {
|
|
88
88
|
class: "nb-root nb-aspect-ratio",
|
|
89
89
|
ratio: e.ratio
|
|
90
90
|
}, {
|
|
91
91
|
default: d(() => [
|
|
92
|
-
|
|
92
|
+
_(n.$slots, "default")
|
|
93
93
|
]),
|
|
94
94
|
_: 3
|
|
95
95
|
}, 8, ["ratio"]));
|
|
@@ -98,21 +98,21 @@ const xa = /* @__PURE__ */ v({
|
|
|
98
98
|
function P(...e) {
|
|
99
99
|
return e.filter(Boolean).join(" ");
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const Ja = /* @__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 = N(() => P(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
|
|
109
|
+
return (s, l) => (o(), u("span", {
|
|
110
|
+
class: C(["nb-root nb-badge", t.value])
|
|
111
111
|
}, [
|
|
112
|
-
|
|
112
|
+
_(s.$slots, "default")
|
|
113
113
|
], 2));
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), Xa = /* @__PURE__ */ v({
|
|
116
116
|
__name: "NbAvatar",
|
|
117
117
|
props: {
|
|
118
118
|
name: {},
|
|
@@ -121,21 +121,21 @@ const Ta = /* @__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(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
|
|
125
|
+
return (s, l) => (o(), y(a(Be), {
|
|
126
|
+
class: C(["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
130
|
default: d(() => [
|
|
131
|
-
e.src ? (
|
|
131
|
+
e.src ? (o(), y(a(Ve), {
|
|
132
132
|
key: 0,
|
|
133
133
|
class: "nb-avatar__image",
|
|
134
134
|
src: e.src,
|
|
135
135
|
alt: "",
|
|
136
136
|
"aria-hidden": "true"
|
|
137
|
-
}, null, 8, ["src"])) :
|
|
138
|
-
|
|
137
|
+
}, null, 8, ["src"])) : g("", !0),
|
|
138
|
+
b(a(we), {
|
|
139
139
|
class: "nb-avatar__fallback",
|
|
140
140
|
"aria-hidden": "true"
|
|
141
141
|
}, {
|
|
@@ -148,46 +148,46 @@ const Ta = /* @__PURE__ */ v({
|
|
|
148
148
|
_: 1
|
|
149
149
|
}, 8, ["class", "aria-label"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), Qa = ["aria-label"], Ya = ["href"], Za = ["aria-current"], el = {
|
|
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
|
+
}, tl = /* @__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(), u("nav", {
|
|
165
165
|
class: "nb-root nb-breadcrumbs",
|
|
166
166
|
"aria-label": e.label
|
|
167
167
|
}, [
|
|
168
168
|
f("ol", null, [
|
|
169
|
-
(
|
|
169
|
+
(o(!0), u(V, null, S(e.items, (s, l) => (o(), u("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(), u("a", {
|
|
173
173
|
key: 0,
|
|
174
174
|
href: s.href
|
|
175
|
-
}, p(s.label), 9,
|
|
175
|
+
}, p(s.label), 9, Ya)) : (o(), u("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 ? (
|
|
178
|
+
}, p(s.label), 9, Za)),
|
|
179
|
+
l < e.items.length - 1 ? (o(), u("svg", el, [...t[0] || (t[0] = [
|
|
180
180
|
f("path", { d: "m6 3 5 5-5 5" }, null, -1)
|
|
181
|
-
])])) :
|
|
181
|
+
])])) : g("", !0)
|
|
182
182
|
]))), 128))
|
|
183
183
|
])
|
|
184
|
-
], 8,
|
|
184
|
+
], 8, Qa));
|
|
185
185
|
}
|
|
186
|
-
}),
|
|
186
|
+
}), al = ["type", "disabled", "aria-busy"], ll = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "nb-button__loader",
|
|
189
189
|
"aria-hidden": "true"
|
|
190
|
-
},
|
|
190
|
+
}, de = /* @__PURE__ */ v({
|
|
191
191
|
inheritAttrs: !1,
|
|
192
192
|
__name: "NbButton",
|
|
193
193
|
props: {
|
|
@@ -198,46 +198,114 @@ const Ta = /* @__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 = N(() => P(
|
|
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(), u("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 ? (
|
|
212
|
+
e.loading ? (o(), u("span", ll, "✦")) : g("", !0),
|
|
213
213
|
f("span", null, [
|
|
214
|
-
|
|
214
|
+
_(s.$slots, "default")
|
|
215
215
|
])
|
|
216
|
-
], 16,
|
|
216
|
+
], 16, al));
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), nl = ["aria-label", "data-orientation"], ol = /* @__PURE__ */ v({
|
|
219
219
|
__name: "NbButtonGroup",
|
|
220
220
|
props: {
|
|
221
221
|
orientation: { default: "horizontal" },
|
|
222
222
|
label: {}
|
|
223
223
|
},
|
|
224
224
|
setup(e) {
|
|
225
|
-
return (
|
|
225
|
+
return (n, t) => (o(), u("div", {
|
|
226
226
|
class: "nb-root nb-button-group",
|
|
227
227
|
role: "group",
|
|
228
228
|
"aria-label": e.label,
|
|
229
229
|
"data-orientation": e.orientation
|
|
230
230
|
}, [
|
|
231
|
-
|
|
232
|
-
], 8,
|
|
231
|
+
_(n.$slots, "default")
|
|
232
|
+
], 8, nl));
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
234
|
+
}), sl = ["aria-label"], il = { class: "nb-carousel__controls" }, dl = { "aria-live": "polite" }, rl = ["disabled"], ul = ["disabled"], cl = /* @__PURE__ */ v({
|
|
235
|
+
__name: "NbCarousel",
|
|
236
|
+
props: {
|
|
237
|
+
label: { default: "Carousel" }
|
|
238
|
+
},
|
|
239
|
+
setup(e) {
|
|
240
|
+
const n = x(null), t = x(0), s = x(0);
|
|
241
|
+
function l() {
|
|
242
|
+
const m = n.value;
|
|
243
|
+
m && (s.value = m.children.length, t.value = s.value ? Math.min(s.value - 1, Math.round(m.scrollLeft / (m.clientWidth || 1))) : 0);
|
|
244
|
+
}
|
|
245
|
+
function c(m) {
|
|
246
|
+
const i = n.value;
|
|
247
|
+
if (!i) return;
|
|
248
|
+
const r = Math.max(0, Math.min(s.value - 1, t.value + m));
|
|
249
|
+
i.scrollTo({ left: r * i.clientWidth, behavior: "smooth" });
|
|
250
|
+
}
|
|
251
|
+
return be(l), fe(() => {
|
|
252
|
+
H(l);
|
|
253
|
+
}), (m, i) => (o(), u("section", {
|
|
254
|
+
class: "nb-root nb-carousel",
|
|
255
|
+
role: "region",
|
|
256
|
+
"aria-roledescription": "carousel",
|
|
257
|
+
"aria-label": e.label
|
|
258
|
+
}, [
|
|
259
|
+
f("div", {
|
|
260
|
+
ref_key: "track",
|
|
261
|
+
ref: n,
|
|
262
|
+
class: "nb-carousel__track",
|
|
263
|
+
tabindex: "0",
|
|
264
|
+
onScrollPassive: l
|
|
265
|
+
}, [
|
|
266
|
+
_(m.$slots, "default")
|
|
267
|
+
], 544),
|
|
268
|
+
f("div", il, [
|
|
269
|
+
f("span", dl, p(s.value ? `${t.value + 1} / ${s.value}` : ""), 1),
|
|
270
|
+
f("div", null, [
|
|
271
|
+
f("button", {
|
|
272
|
+
type: "button",
|
|
273
|
+
"aria-label": "Previous slide",
|
|
274
|
+
disabled: t.value === 0,
|
|
275
|
+
onClick: i[0] || (i[0] = (r) => c(-1))
|
|
276
|
+
}, "←", 8, rl),
|
|
277
|
+
f("button", {
|
|
278
|
+
type: "button",
|
|
279
|
+
"aria-label": "Next slide",
|
|
280
|
+
disabled: t.value >= s.value - 1,
|
|
281
|
+
onClick: i[1] || (i[1] = (r) => c(1))
|
|
282
|
+
}, "→", 8, ul)
|
|
283
|
+
])
|
|
284
|
+
])
|
|
285
|
+
], 8, sl));
|
|
286
|
+
}
|
|
287
|
+
}), bl = ["aria-label"], fl = /* @__PURE__ */ v({
|
|
288
|
+
__name: "NbCarouselSlide",
|
|
289
|
+
props: {
|
|
290
|
+
label: {}
|
|
291
|
+
},
|
|
292
|
+
setup(e) {
|
|
293
|
+
return (n, t) => (o(), u("div", {
|
|
294
|
+
class: "nb-carousel__slide",
|
|
295
|
+
role: "group",
|
|
296
|
+
"aria-roledescription": "slide",
|
|
297
|
+
"aria-label": e.label
|
|
298
|
+
}, [
|
|
299
|
+
_(n.$slots, "default")
|
|
300
|
+
], 8, bl));
|
|
301
|
+
}
|
|
302
|
+
}), ml = {
|
|
235
303
|
key: 0,
|
|
236
304
|
class: "nb-card__header"
|
|
237
|
-
},
|
|
305
|
+
}, pl = { class: "nb-card__body" }, vl = {
|
|
238
306
|
key: 1,
|
|
239
307
|
class: "nb-card__footer"
|
|
240
|
-
},
|
|
308
|
+
}, hl = /* @__PURE__ */ v({
|
|
241
309
|
inheritAttrs: !1,
|
|
242
310
|
__name: "NbCard",
|
|
243
311
|
props: {
|
|
@@ -245,22 +313,22 @@ const Ta = /* @__PURE__ */ v({
|
|
|
245
313
|
interactive: { type: Boolean, default: !1 }
|
|
246
314
|
},
|
|
247
315
|
setup(e) {
|
|
248
|
-
const
|
|
249
|
-
`nb-card--${
|
|
250
|
-
|
|
316
|
+
const n = e, t = N(() => P(
|
|
317
|
+
`nb-card--${n.tone}`,
|
|
318
|
+
n.interactive && "nb-card--interactive"
|
|
251
319
|
));
|
|
252
|
-
return (s, l) => (
|
|
320
|
+
return (s, l) => (o(), u("article", k(s.$attrs, {
|
|
253
321
|
class: ["nb-root nb-card", t.value]
|
|
254
322
|
}), [
|
|
255
|
-
s.$slots.header ? (
|
|
256
|
-
|
|
257
|
-
])) :
|
|
258
|
-
f("div",
|
|
259
|
-
|
|
323
|
+
s.$slots.header ? (o(), u("header", ml, [
|
|
324
|
+
_(s.$slots, "header")
|
|
325
|
+
])) : g("", !0),
|
|
326
|
+
f("div", pl, [
|
|
327
|
+
_(s.$slots, "default")
|
|
260
328
|
]),
|
|
261
|
-
s.$slots.footer ? (
|
|
262
|
-
|
|
263
|
-
])) :
|
|
329
|
+
s.$slots.footer ? (o(), u("footer", vl, [
|
|
330
|
+
_(s.$slots, "footer")
|
|
331
|
+
])) : g("", !0)
|
|
264
332
|
], 16));
|
|
265
333
|
}
|
|
266
334
|
});
|
|
@@ -268,18 +336,18 @@ let z = 0;
|
|
|
268
336
|
function A(e = "nb") {
|
|
269
337
|
return z += 1, `${e}-${z}`;
|
|
270
338
|
}
|
|
271
|
-
function
|
|
272
|
-
const t =
|
|
339
|
+
function w(e, n) {
|
|
340
|
+
const t = n ?? A(e);
|
|
273
341
|
return {
|
|
274
342
|
inputId: t,
|
|
275
343
|
hintId: `${t}-hint`,
|
|
276
344
|
errorId: `${t}-error`
|
|
277
345
|
};
|
|
278
346
|
}
|
|
279
|
-
function
|
|
280
|
-
return [e && t,
|
|
347
|
+
function T(e, n, t, s) {
|
|
348
|
+
return [e && t, n && s].filter(Boolean).join(" ") || void 0;
|
|
281
349
|
}
|
|
282
|
-
const
|
|
350
|
+
const _l = ["for"], gl = ["id", "checked", "disabled"], yl = { class: "nb-checkbox__label" }, $l = /* @__PURE__ */ v({
|
|
283
351
|
inheritAttrs: !1,
|
|
284
352
|
__name: "NbCheckbox",
|
|
285
353
|
props: {
|
|
@@ -289,28 +357,28 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
289
357
|
id: {}
|
|
290
358
|
},
|
|
291
359
|
emits: ["update:modelValue"],
|
|
292
|
-
setup(e, { emit:
|
|
293
|
-
const t = e, s =
|
|
294
|
-
return (
|
|
360
|
+
setup(e, { emit: n }) {
|
|
361
|
+
const t = e, s = n, l = w("checkbox", t.id);
|
|
362
|
+
return (c, m) => (o(), u("label", {
|
|
295
363
|
class: "nb-root nb-checkbox",
|
|
296
364
|
for: a(l).inputId
|
|
297
365
|
}, [
|
|
298
|
-
f("input", k(
|
|
366
|
+
f("input", k(c.$attrs, {
|
|
299
367
|
id: a(l).inputId,
|
|
300
368
|
class: "nb-checkbox__input",
|
|
301
369
|
type: "checkbox",
|
|
302
370
|
checked: e.modelValue,
|
|
303
371
|
disabled: e.disabled,
|
|
304
372
|
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
305
|
-
}), null, 16,
|
|
373
|
+
}), null, 16, gl),
|
|
306
374
|
m[1] || (m[1] = f("span", {
|
|
307
375
|
class: "nb-checkbox__box",
|
|
308
376
|
"aria-hidden": "true"
|
|
309
377
|
}, "✓", -1)),
|
|
310
|
-
f("span",
|
|
311
|
-
], 8,
|
|
378
|
+
f("span", yl, p(e.label), 1)
|
|
379
|
+
], 8, _l));
|
|
312
380
|
}
|
|
313
|
-
}),
|
|
381
|
+
}), Nl = { class: "nb-collapsible__body" }, Il = /* @__PURE__ */ v({
|
|
314
382
|
__name: "NbCollapsible",
|
|
315
383
|
props: {
|
|
316
384
|
title: {},
|
|
@@ -319,17 +387,17 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
319
387
|
disabled: { type: Boolean, default: !1 }
|
|
320
388
|
},
|
|
321
389
|
emits: ["update:open"],
|
|
322
|
-
setup(e, { emit:
|
|
323
|
-
const t =
|
|
324
|
-
return (s, l) => (
|
|
390
|
+
setup(e, { emit: n }) {
|
|
391
|
+
const t = n;
|
|
392
|
+
return (s, l) => (o(), y(a(Se), {
|
|
325
393
|
class: "nb-root nb-collapsible",
|
|
326
394
|
open: e.open,
|
|
327
395
|
"default-open": e.defaultOpen,
|
|
328
396
|
disabled: e.disabled,
|
|
329
|
-
"onUpdate:open": l[0] || (l[0] = (
|
|
397
|
+
"onUpdate:open": l[0] || (l[0] = (c) => t("update:open", c))
|
|
330
398
|
}, {
|
|
331
399
|
default: d(() => [
|
|
332
|
-
|
|
400
|
+
b(a(Me), { class: "nb-collapsible__trigger" }, {
|
|
333
401
|
default: d(() => [
|
|
334
402
|
f("span", null, p(e.title), 1),
|
|
335
403
|
l[1] || (l[1] = f("svg", {
|
|
@@ -343,10 +411,10 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
343
411
|
]),
|
|
344
412
|
_: 1
|
|
345
413
|
}),
|
|
346
|
-
|
|
414
|
+
b(a(Te), { class: "nb-collapsible__content" }, {
|
|
347
415
|
default: d(() => [
|
|
348
|
-
f("div",
|
|
349
|
-
|
|
416
|
+
f("div", Nl, [
|
|
417
|
+
_(s.$slots, "default")
|
|
350
418
|
])
|
|
351
419
|
]),
|
|
352
420
|
_: 3
|
|
@@ -355,10 +423,10 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
355
423
|
_: 3
|
|
356
424
|
}, 8, ["open", "default-open", "disabled"]));
|
|
357
425
|
}
|
|
358
|
-
}),
|
|
426
|
+
}), kl = {
|
|
359
427
|
role: "status",
|
|
360
428
|
"aria-live": "polite"
|
|
361
|
-
},
|
|
429
|
+
}, xl = /* @__PURE__ */ v({
|
|
362
430
|
inheritAttrs: !1,
|
|
363
431
|
__name: "NbCopyButton",
|
|
364
432
|
props: {
|
|
@@ -369,12 +437,12 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
369
437
|
disabled: { type: Boolean, default: !1 }
|
|
370
438
|
},
|
|
371
439
|
emits: ["copied", "error"],
|
|
372
|
-
setup(e, { emit:
|
|
373
|
-
const t = e, s =
|
|
440
|
+
setup(e, { emit: n }) {
|
|
441
|
+
const t = e, s = n, l = x("idle"), c = x(!1);
|
|
374
442
|
let m, i = !1;
|
|
375
|
-
|
|
443
|
+
M(() => t.text, () => {
|
|
376
444
|
clearTimeout(m), l.value = "idle";
|
|
377
|
-
}),
|
|
445
|
+
}), K(() => {
|
|
378
446
|
i = !0, clearTimeout(m);
|
|
379
447
|
});
|
|
380
448
|
function r($) {
|
|
@@ -383,8 +451,8 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
383
451
|
}, 2e3);
|
|
384
452
|
}
|
|
385
453
|
async function h() {
|
|
386
|
-
if (
|
|
387
|
-
|
|
454
|
+
if (c.value || t.disabled) return;
|
|
455
|
+
c.value = !0;
|
|
388
456
|
const $ = t.text;
|
|
389
457
|
try {
|
|
390
458
|
if (!navigator.clipboard?.writeText) throw new Error("Clipboard is unavailable");
|
|
@@ -394,22 +462,22 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
394
462
|
if (i) return;
|
|
395
463
|
s("error", O), t.text === $ && r("error");
|
|
396
464
|
} finally {
|
|
397
|
-
|
|
465
|
+
c.value = !1;
|
|
398
466
|
}
|
|
399
467
|
}
|
|
400
|
-
return ($, O) => (
|
|
468
|
+
return ($, O) => (o(), y(de, k($.$attrs, {
|
|
401
469
|
variant: "secondary",
|
|
402
470
|
type: "button",
|
|
403
|
-
disabled: e.disabled ||
|
|
471
|
+
disabled: e.disabled || c.value,
|
|
404
472
|
onClick: h
|
|
405
473
|
}), {
|
|
406
474
|
default: d(() => [
|
|
407
|
-
f("span",
|
|
475
|
+
f("span", kl, p(l.value === "copied" ? e.copiedLabel : l.value === "error" ? e.errorLabel : e.label), 1)
|
|
408
476
|
]),
|
|
409
477
|
_: 1
|
|
410
478
|
}, 16, ["disabled"]));
|
|
411
479
|
}
|
|
412
|
-
}),
|
|
480
|
+
}), Cl = { class: "nb-root nb-field" }, Bl = ["for"], Vl = ["id"], wl = ["id"], Sl = /* @__PURE__ */ v({
|
|
413
481
|
inheritAttrs: !1,
|
|
414
482
|
__name: "NbCombobox",
|
|
415
483
|
props: {
|
|
@@ -426,21 +494,21 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
426
494
|
id: {}
|
|
427
495
|
},
|
|
428
496
|
emits: ["update:modelValue"],
|
|
429
|
-
setup(e, { emit:
|
|
430
|
-
const t = e, s =
|
|
497
|
+
setup(e, { emit: n }) {
|
|
498
|
+
const t = e, s = n, l = w("combobox", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
431
499
|
function m(r) {
|
|
432
500
|
return t.options.find((h) => h.value === r)?.label ?? "";
|
|
433
501
|
}
|
|
434
502
|
function i(r) {
|
|
435
503
|
typeof r == "string" && s("update:modelValue", r);
|
|
436
504
|
}
|
|
437
|
-
return (r, h) => (
|
|
438
|
-
e.label ? (
|
|
505
|
+
return (r, h) => (o(), u("div", Cl, [
|
|
506
|
+
e.label ? (o(), u("label", {
|
|
439
507
|
key: 0,
|
|
440
508
|
class: "nb-field__label",
|
|
441
509
|
for: a(l).inputId
|
|
442
|
-
}, p(e.label), 9,
|
|
443
|
-
|
|
510
|
+
}, p(e.label), 9, Bl)) : g("", !0),
|
|
511
|
+
b(a(j), {
|
|
444
512
|
"model-value": e.modelValue,
|
|
445
513
|
disabled: e.disabled,
|
|
446
514
|
required: e.required,
|
|
@@ -449,17 +517,17 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
449
517
|
"onUpdate:modelValue": i
|
|
450
518
|
}, {
|
|
451
519
|
default: d(() => [
|
|
452
|
-
|
|
520
|
+
b(a(W), { class: "nb-combobox__anchor" }, {
|
|
453
521
|
default: d(() => [
|
|
454
|
-
|
|
522
|
+
b(a(J), k(r.$attrs, {
|
|
455
523
|
id: a(l).inputId,
|
|
456
524
|
class: "nb-combobox__input",
|
|
457
525
|
"display-value": m,
|
|
458
526
|
placeholder: e.placeholder,
|
|
459
527
|
"aria-invalid": e.error ? "true" : void 0,
|
|
460
|
-
"aria-describedby":
|
|
528
|
+
"aria-describedby": c.value
|
|
461
529
|
}), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
|
|
462
|
-
|
|
530
|
+
b(a(Ae), {
|
|
463
531
|
class: "nb-combobox__trigger",
|
|
464
532
|
"aria-label": "Show options"
|
|
465
533
|
}, {
|
|
@@ -477,24 +545,24 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
477
545
|
]),
|
|
478
546
|
_: 1
|
|
479
547
|
}),
|
|
480
|
-
|
|
548
|
+
b(a(De), null, {
|
|
481
549
|
default: d(() => [
|
|
482
|
-
|
|
550
|
+
b(a(X), {
|
|
483
551
|
class: "nb-root nb-combobox__content",
|
|
484
552
|
position: "popper",
|
|
485
553
|
align: "start",
|
|
486
554
|
"side-offset": 5
|
|
487
555
|
}, {
|
|
488
556
|
default: d(() => [
|
|
489
|
-
|
|
557
|
+
b(a(Q), { class: "nb-combobox__viewport" }, {
|
|
490
558
|
default: d(() => [
|
|
491
|
-
|
|
559
|
+
b(a(Y), { class: "nb-combobox__empty" }, {
|
|
492
560
|
default: d(() => [
|
|
493
561
|
I(p(e.emptyText), 1)
|
|
494
562
|
]),
|
|
495
563
|
_: 1
|
|
496
564
|
}),
|
|
497
|
-
(
|
|
565
|
+
(o(!0), u(V, null, S(e.options, ($) => (o(), y(a(Z), {
|
|
498
566
|
key: $.value,
|
|
499
567
|
class: "nb-combobox__item",
|
|
500
568
|
value: $.value,
|
|
@@ -504,7 +572,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
504
572
|
}, {
|
|
505
573
|
default: d(() => [
|
|
506
574
|
f("span", null, p($.label), 1),
|
|
507
|
-
|
|
575
|
+
b(a(Oe), {
|
|
508
576
|
class: "nb-combobox__indicator",
|
|
509
577
|
"aria-hidden": "true"
|
|
510
578
|
}, {
|
|
@@ -533,19 +601,19 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
533
601
|
]),
|
|
534
602
|
_: 1
|
|
535
603
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
536
|
-
e.hint ? (
|
|
604
|
+
e.hint ? (o(), u("span", {
|
|
537
605
|
key: 1,
|
|
538
606
|
id: a(l).hintId,
|
|
539
607
|
class: "nb-field__hint"
|
|
540
|
-
}, p(e.hint), 9,
|
|
541
|
-
e.error ? (
|
|
608
|
+
}, p(e.hint), 9, Vl)) : g("", !0),
|
|
609
|
+
e.error ? (o(), u("span", {
|
|
542
610
|
key: 2,
|
|
543
611
|
id: a(l).errorId,
|
|
544
612
|
class: "nb-field__error"
|
|
545
|
-
}, p(e.error), 9,
|
|
613
|
+
}, p(e.error), 9, wl)) : g("", !0)
|
|
546
614
|
]));
|
|
547
615
|
}
|
|
548
|
-
}),
|
|
616
|
+
}), Ml = {
|
|
549
617
|
key: 0,
|
|
550
618
|
class: "nb-command__shortcut",
|
|
551
619
|
"aria-hidden": "true"
|
|
@@ -559,8 +627,8 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
559
627
|
emptyText: {}
|
|
560
628
|
},
|
|
561
629
|
emits: ["update:modelValue", "select"],
|
|
562
|
-
setup(e, { emit:
|
|
563
|
-
const t = e, s =
|
|
630
|
+
setup(e, { emit: n }) {
|
|
631
|
+
const t = e, s = n, l = N(() => {
|
|
564
632
|
const m = /* @__PURE__ */ new Map();
|
|
565
633
|
for (const i of t.options) {
|
|
566
634
|
const r = i.group ?? "";
|
|
@@ -568,20 +636,20 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
568
636
|
}
|
|
569
637
|
return Array.from(m, ([i, r]) => ({ label: i, options: r }));
|
|
570
638
|
});
|
|
571
|
-
function
|
|
639
|
+
function c(m) {
|
|
572
640
|
if (typeof m != "string") return;
|
|
573
641
|
const i = t.options.find((r) => r.value === m);
|
|
574
642
|
i && (s("update:modelValue", m), s("select", i));
|
|
575
643
|
}
|
|
576
|
-
return (m, i) => (
|
|
644
|
+
return (m, i) => (o(), y(a(j), {
|
|
577
645
|
class: "nb-command",
|
|
578
646
|
"model-value": e.modelValue,
|
|
579
647
|
open: !0,
|
|
580
648
|
"reset-search-term-on-select": !1,
|
|
581
|
-
"onUpdate:modelValue":
|
|
649
|
+
"onUpdate:modelValue": c
|
|
582
650
|
}, {
|
|
583
651
|
default: d(() => [
|
|
584
|
-
|
|
652
|
+
b(a(W), { class: "nb-command__search" }, {
|
|
585
653
|
default: d(() => [
|
|
586
654
|
i[0] || (i[0] = f("svg", {
|
|
587
655
|
viewBox: "0 0 20 20",
|
|
@@ -595,7 +663,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
595
663
|
}),
|
|
596
664
|
f("path", { d: "m13 13 4 4" })
|
|
597
665
|
], -1)),
|
|
598
|
-
|
|
666
|
+
b(a(J), {
|
|
599
667
|
class: "nb-command__input",
|
|
600
668
|
"aria-label": e.label,
|
|
601
669
|
placeholder: e.placeholder,
|
|
@@ -604,22 +672,22 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
604
672
|
]),
|
|
605
673
|
_: 1
|
|
606
674
|
}),
|
|
607
|
-
|
|
675
|
+
b(a(X), { class: "nb-command__content" }, {
|
|
608
676
|
default: d(() => [
|
|
609
|
-
|
|
677
|
+
b(a(Q), { class: "nb-command__viewport" }, {
|
|
610
678
|
default: d(() => [
|
|
611
|
-
|
|
679
|
+
b(a(Y), { class: "nb-command__empty" }, {
|
|
612
680
|
default: d(() => [
|
|
613
681
|
I(p(e.emptyText), 1)
|
|
614
682
|
]),
|
|
615
683
|
_: 1
|
|
616
684
|
}),
|
|
617
|
-
(
|
|
685
|
+
(o(!0), u(V, null, S(l.value, (r) => (o(), y(a(Pe), {
|
|
618
686
|
key: r.label || "default",
|
|
619
687
|
class: "nb-command__group"
|
|
620
688
|
}, {
|
|
621
689
|
default: d(() => [
|
|
622
|
-
r.label ? (
|
|
690
|
+
r.label ? (o(), y(a(Re), {
|
|
623
691
|
key: 0,
|
|
624
692
|
class: "nb-command__group-label"
|
|
625
693
|
}, {
|
|
@@ -627,8 +695,8 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
627
695
|
I(p(r.label), 1)
|
|
628
696
|
]),
|
|
629
697
|
_: 2
|
|
630
|
-
}, 1024)) :
|
|
631
|
-
(
|
|
698
|
+
}, 1024)) : g("", !0),
|
|
699
|
+
(o(!0), u(V, null, S(r.options, (h) => (o(), y(a(Z), {
|
|
632
700
|
key: h.value,
|
|
633
701
|
class: "nb-command__item",
|
|
634
702
|
value: h.value,
|
|
@@ -638,7 +706,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
638
706
|
}, {
|
|
639
707
|
default: d(() => [
|
|
640
708
|
f("span", null, p(h.label), 1),
|
|
641
|
-
h.shortcut ? (
|
|
709
|
+
h.shortcut ? (o(), u("span", Ml, p(h.shortcut), 1)) : g("", !0)
|
|
642
710
|
]),
|
|
643
711
|
_: 2
|
|
644
712
|
}, 1032, ["value", "text-value", "disabled", "data-value"]))), 128))
|
|
@@ -655,7 +723,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
655
723
|
_: 1
|
|
656
724
|
}, 8, ["model-value"]));
|
|
657
725
|
}
|
|
658
|
-
}),
|
|
726
|
+
}), Tl = { class: "nb-command-dialog__header" }, Al = /* @__PURE__ */ v({
|
|
659
727
|
__name: "NbCommand",
|
|
660
728
|
props: {
|
|
661
729
|
modelValue: { default: "" },
|
|
@@ -668,9 +736,9 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
668
736
|
defaultOpen: { type: Boolean, default: !1 }
|
|
669
737
|
},
|
|
670
738
|
emits: ["update:modelValue", "update:open", "select"],
|
|
671
|
-
setup(e, { emit:
|
|
672
|
-
const t = e, s =
|
|
673
|
-
|
|
739
|
+
setup(e, { emit: n }) {
|
|
740
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
741
|
+
M(() => t.open, (r) => {
|
|
674
742
|
r !== void 0 && (l.value = r);
|
|
675
743
|
});
|
|
676
744
|
function m(r) {
|
|
@@ -679,34 +747,34 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
679
747
|
function i(r) {
|
|
680
748
|
s("select", r), t.dialog && m(!1);
|
|
681
749
|
}
|
|
682
|
-
return (r, h) => e.dialog ? (
|
|
750
|
+
return (r, h) => e.dialog ? (o(), y(a(ee), {
|
|
683
751
|
key: 0,
|
|
684
|
-
open:
|
|
752
|
+
open: c.value,
|
|
685
753
|
"onUpdate:open": m
|
|
686
754
|
}, {
|
|
687
755
|
default: d(() => [
|
|
688
|
-
|
|
756
|
+
b(a(te), { class: "nb-root nb-overlay-trigger" }, {
|
|
689
757
|
default: d(() => [
|
|
690
|
-
|
|
758
|
+
_(r.$slots, "trigger")
|
|
691
759
|
]),
|
|
692
760
|
_: 3
|
|
693
761
|
}),
|
|
694
|
-
|
|
762
|
+
b(a(ae), null, {
|
|
695
763
|
default: d(() => [
|
|
696
|
-
|
|
697
|
-
|
|
764
|
+
b(a(le), { class: "nb-root nb-command-dialog__overlay" }),
|
|
765
|
+
b(a(ne), {
|
|
698
766
|
"aria-describedby": void 0,
|
|
699
767
|
class: "nb-root nb-command-dialog"
|
|
700
768
|
}, {
|
|
701
769
|
default: d(() => [
|
|
702
|
-
f("header",
|
|
703
|
-
|
|
770
|
+
f("header", Tl, [
|
|
771
|
+
b(a(oe), { class: "nb-command-dialog__title" }, {
|
|
704
772
|
default: d(() => [
|
|
705
773
|
I(p(e.label), 1)
|
|
706
774
|
]),
|
|
707
775
|
_: 1
|
|
708
776
|
}),
|
|
709
|
-
|
|
777
|
+
b(a(se), {
|
|
710
778
|
class: "nb-overlay-close",
|
|
711
779
|
"aria-label": "Close command menu"
|
|
712
780
|
}, {
|
|
@@ -716,7 +784,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
716
784
|
_: 1
|
|
717
785
|
})
|
|
718
786
|
]),
|
|
719
|
-
|
|
787
|
+
b(F, {
|
|
720
788
|
"model-value": e.modelValue,
|
|
721
789
|
options: e.options,
|
|
722
790
|
label: e.label,
|
|
@@ -733,7 +801,7 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
733
801
|
})
|
|
734
802
|
]),
|
|
735
803
|
_: 3
|
|
736
|
-
}, 8, ["open"])) : (
|
|
804
|
+
}, 8, ["open"])) : (o(), y(F, {
|
|
737
805
|
key: 1,
|
|
738
806
|
class: "nb-root",
|
|
739
807
|
"model-value": e.modelValue,
|
|
@@ -745,40 +813,40 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
745
813
|
onSelect: i
|
|
746
814
|
}, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"]));
|
|
747
815
|
}
|
|
748
|
-
}),
|
|
816
|
+
}), Dl = /* @__PURE__ */ v({
|
|
749
817
|
__name: "NbContextMenu",
|
|
750
818
|
props: {
|
|
751
819
|
open: { type: Boolean, default: void 0 },
|
|
752
820
|
defaultOpen: { type: Boolean, default: !1 }
|
|
753
821
|
},
|
|
754
822
|
emits: ["update:open"],
|
|
755
|
-
setup(e, { emit:
|
|
756
|
-
const t = e, s =
|
|
757
|
-
|
|
823
|
+
setup(e, { emit: n }) {
|
|
824
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
825
|
+
M(() => t.open, (i) => {
|
|
758
826
|
i !== void 0 && (l.value = i);
|
|
759
827
|
});
|
|
760
828
|
function m(i) {
|
|
761
829
|
l.value = i, s("update:open", i);
|
|
762
830
|
}
|
|
763
|
-
return (i, r) => (
|
|
764
|
-
open:
|
|
831
|
+
return (i, r) => (o(), y(a(qe), {
|
|
832
|
+
open: c.value,
|
|
765
833
|
"onUpdate:open": m
|
|
766
834
|
}, {
|
|
767
835
|
default: d(() => [
|
|
768
|
-
|
|
836
|
+
b(a(Le), { "as-child": "" }, {
|
|
769
837
|
default: d(() => [
|
|
770
|
-
|
|
838
|
+
_(i.$slots, "trigger")
|
|
771
839
|
]),
|
|
772
840
|
_: 3
|
|
773
841
|
}),
|
|
774
|
-
|
|
842
|
+
b(a(Ue), null, {
|
|
775
843
|
default: d(() => [
|
|
776
|
-
|
|
844
|
+
b(a(Ge), {
|
|
777
845
|
class: "nb-root nb-context-menu",
|
|
778
846
|
"side-offset": 6
|
|
779
847
|
}, {
|
|
780
848
|
default: d(() => [
|
|
781
|
-
|
|
849
|
+
_(i.$slots, "default")
|
|
782
850
|
]),
|
|
783
851
|
_: 3
|
|
784
852
|
})
|
|
@@ -789,23 +857,23 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
789
857
|
_: 3
|
|
790
858
|
}, 8, ["open"]));
|
|
791
859
|
}
|
|
792
|
-
}),
|
|
860
|
+
}), Ol = /* @__PURE__ */ v({
|
|
793
861
|
__name: "NbContextMenuCheckboxItem",
|
|
794
862
|
props: {
|
|
795
863
|
modelValue: { type: Boolean, default: !1 },
|
|
796
864
|
disabled: { type: Boolean, default: !1 }
|
|
797
865
|
},
|
|
798
866
|
emits: ["update:modelValue"],
|
|
799
|
-
setup(e, { emit:
|
|
800
|
-
const t =
|
|
801
|
-
return (s, l) => (
|
|
867
|
+
setup(e, { emit: n }) {
|
|
868
|
+
const t = n;
|
|
869
|
+
return (s, l) => (o(), y(a(Ee), {
|
|
802
870
|
class: "nb-context-menu__item nb-context-menu__item--choice",
|
|
803
871
|
"model-value": e.modelValue,
|
|
804
872
|
disabled: e.disabled,
|
|
805
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
873
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => t("update:modelValue", c))
|
|
806
874
|
}, {
|
|
807
875
|
default: d(() => [
|
|
808
|
-
|
|
876
|
+
b(a(ie), {
|
|
809
877
|
class: "nb-context-menu__indicator",
|
|
810
878
|
"aria-hidden": "true"
|
|
811
879
|
}, {
|
|
@@ -814,76 +882,76 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
814
882
|
])]),
|
|
815
883
|
_: 1
|
|
816
884
|
}),
|
|
817
|
-
|
|
885
|
+
_(s.$slots, "default")
|
|
818
886
|
]),
|
|
819
887
|
_: 3
|
|
820
888
|
}, 8, ["model-value", "disabled"]));
|
|
821
889
|
}
|
|
822
|
-
}),
|
|
890
|
+
}), Pl = /* @__PURE__ */ v({
|
|
823
891
|
__name: "NbContextMenuItem",
|
|
824
892
|
props: {
|
|
825
893
|
disabled: { type: Boolean, default: !1 },
|
|
826
894
|
destructive: { type: Boolean, default: !1 }
|
|
827
895
|
},
|
|
828
896
|
emits: ["select"],
|
|
829
|
-
setup(e, { emit:
|
|
830
|
-
const t =
|
|
831
|
-
return (s, l) => (
|
|
832
|
-
class:
|
|
897
|
+
setup(e, { emit: n }) {
|
|
898
|
+
const t = n;
|
|
899
|
+
return (s, l) => (o(), y(a(ze), {
|
|
900
|
+
class: C(["nb-context-menu__item", { "nb-context-menu__item--destructive": e.destructive }]),
|
|
833
901
|
disabled: e.disabled,
|
|
834
|
-
onSelect: l[0] || (l[0] = (
|
|
902
|
+
onSelect: l[0] || (l[0] = (c) => t("select", c))
|
|
835
903
|
}, {
|
|
836
904
|
default: d(() => [
|
|
837
|
-
|
|
905
|
+
_(s.$slots, "default")
|
|
838
906
|
]),
|
|
839
907
|
_: 3
|
|
840
908
|
}, 8, ["class", "disabled"]));
|
|
841
909
|
}
|
|
842
|
-
}),
|
|
910
|
+
}), Rl = /* @__PURE__ */ v({
|
|
843
911
|
__name: "NbContextMenuLabel",
|
|
844
912
|
setup(e) {
|
|
845
|
-
return (
|
|
913
|
+
return (n, t) => (o(), y(a(Fe), { class: "nb-context-menu__label" }, {
|
|
846
914
|
default: d(() => [
|
|
847
|
-
|
|
915
|
+
_(n.$slots, "default")
|
|
848
916
|
]),
|
|
849
917
|
_: 3
|
|
850
918
|
}));
|
|
851
919
|
}
|
|
852
|
-
}),
|
|
920
|
+
}), ql = /* @__PURE__ */ v({
|
|
853
921
|
__name: "NbContextMenuRadioGroup",
|
|
854
922
|
props: {
|
|
855
923
|
modelValue: {}
|
|
856
924
|
},
|
|
857
925
|
emits: ["update:modelValue"],
|
|
858
|
-
setup(e, { emit:
|
|
859
|
-
const t =
|
|
926
|
+
setup(e, { emit: n }) {
|
|
927
|
+
const t = n;
|
|
860
928
|
function s(l) {
|
|
861
929
|
typeof l == "string" && t("update:modelValue", l);
|
|
862
930
|
}
|
|
863
|
-
return (l,
|
|
931
|
+
return (l, c) => (o(), y(a(He), {
|
|
864
932
|
"model-value": e.modelValue,
|
|
865
933
|
"onUpdate:modelValue": s
|
|
866
934
|
}, {
|
|
867
935
|
default: d(() => [
|
|
868
|
-
|
|
936
|
+
_(l.$slots, "default")
|
|
869
937
|
]),
|
|
870
938
|
_: 3
|
|
871
939
|
}, 8, ["model-value"]));
|
|
872
940
|
}
|
|
873
|
-
}),
|
|
941
|
+
}), Ll = /* @__PURE__ */ v({
|
|
874
942
|
__name: "NbContextMenuRadioItem",
|
|
875
943
|
props: {
|
|
876
944
|
value: {},
|
|
877
945
|
disabled: { type: Boolean, default: !1 }
|
|
878
946
|
},
|
|
879
947
|
setup(e) {
|
|
880
|
-
return (
|
|
948
|
+
return (n, t) => (o(), y(a(Ke), {
|
|
881
949
|
class: "nb-context-menu__item nb-context-menu__item--choice",
|
|
882
950
|
value: e.value,
|
|
883
951
|
disabled: e.disabled
|
|
884
952
|
}, {
|
|
885
953
|
default: d(() => [
|
|
886
|
-
|
|
954
|
+
b(a(ie), {
|
|
887
955
|
class: "nb-context-menu__indicator",
|
|
888
956
|
"aria-hidden": "true"
|
|
889
957
|
}, {
|
|
@@ -892,40 +960,40 @@ const Fa = ["for"], Ha = ["id", "checked", "disabled"], Ka = { class: "nb-checkb
|
|
|
892
960
|
])]),
|
|
893
961
|
_: 1
|
|
894
962
|
}),
|
|
895
|
-
|
|
963
|
+
_(n.$slots, "default")
|
|
896
964
|
]),
|
|
897
965
|
_: 3
|
|
898
966
|
}, 8, ["value", "disabled"]));
|
|
899
967
|
}
|
|
900
|
-
}),
|
|
968
|
+
}), Ul = /* @__PURE__ */ v({
|
|
901
969
|
__name: "NbContextMenuSeparator",
|
|
902
970
|
setup(e) {
|
|
903
|
-
return (
|
|
971
|
+
return (n, t) => (o(), y(a(je), { class: "nb-context-menu__separator" }));
|
|
904
972
|
}
|
|
905
|
-
}),
|
|
973
|
+
}), Gl = (e, n) => {
|
|
906
974
|
const t = e.__vccOpts || e;
|
|
907
|
-
for (const [s, l] of
|
|
975
|
+
for (const [s, l] of n)
|
|
908
976
|
t[s] = l;
|
|
909
977
|
return t;
|
|
910
|
-
},
|
|
978
|
+
}, El = {}, zl = {
|
|
911
979
|
class: "nb-context-menu__shortcut",
|
|
912
980
|
"aria-hidden": "true"
|
|
913
981
|
};
|
|
914
|
-
function
|
|
915
|
-
return
|
|
916
|
-
|
|
982
|
+
function Fl(e, n) {
|
|
983
|
+
return o(), u("span", zl, [
|
|
984
|
+
_(e.$slots, "default")
|
|
917
985
|
]);
|
|
918
986
|
}
|
|
919
|
-
const
|
|
987
|
+
const Hl = /* @__PURE__ */ Gl(El, [["render", Fl]]), Kl = /* @__PURE__ */ v({
|
|
920
988
|
__name: "NbContextMenuSub",
|
|
921
989
|
props: {
|
|
922
990
|
label: {},
|
|
923
991
|
disabled: { type: Boolean, default: !1 }
|
|
924
992
|
},
|
|
925
993
|
setup(e) {
|
|
926
|
-
return (
|
|
994
|
+
return (n, t) => (o(), y(a(We), null, {
|
|
927
995
|
default: d(() => [
|
|
928
|
-
|
|
996
|
+
b(a(Je), {
|
|
929
997
|
class: "nb-context-menu__item",
|
|
930
998
|
disabled: e.disabled
|
|
931
999
|
}, {
|
|
@@ -938,12 +1006,12 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
938
1006
|
]),
|
|
939
1007
|
_: 1
|
|
940
1008
|
}, 8, ["disabled"]),
|
|
941
|
-
|
|
1009
|
+
b(a(Xe), {
|
|
942
1010
|
class: "nb-root nb-context-menu",
|
|
943
1011
|
"side-offset": 6
|
|
944
1012
|
}, {
|
|
945
1013
|
default: d(() => [
|
|
946
|
-
|
|
1014
|
+
_(n.$slots, "default")
|
|
947
1015
|
]),
|
|
948
1016
|
_: 3
|
|
949
1017
|
})
|
|
@@ -951,7 +1019,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
951
1019
|
_: 3
|
|
952
1020
|
}));
|
|
953
1021
|
}
|
|
954
|
-
}),
|
|
1022
|
+
}), jl = { class: "nb-alert__content" }, Wl = { key: 0 }, Jl = /* @__PURE__ */ v({
|
|
955
1023
|
__name: "NbAlert",
|
|
956
1024
|
props: {
|
|
957
1025
|
tone: { default: "info" },
|
|
@@ -959,32 +1027,32 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
959
1027
|
dismissible: { type: Boolean, default: !1 }
|
|
960
1028
|
},
|
|
961
1029
|
emits: ["dismiss"],
|
|
962
|
-
setup(e, { emit:
|
|
963
|
-
const t = e, s =
|
|
1030
|
+
setup(e, { emit: n }) {
|
|
1031
|
+
const t = e, s = n, l = x(!1), c = N(() => P(`nb-alert--${t.tone}`));
|
|
964
1032
|
function m() {
|
|
965
1033
|
l.value = !0, s("dismiss");
|
|
966
1034
|
}
|
|
967
|
-
return (i, r) => l.value ?
|
|
1035
|
+
return (i, r) => l.value ? g("", !0) : (o(), u("div", {
|
|
968
1036
|
key: 0,
|
|
969
|
-
class:
|
|
1037
|
+
class: C(["nb-root nb-alert", c.value]),
|
|
970
1038
|
role: "alert"
|
|
971
1039
|
}, [
|
|
972
|
-
f("div",
|
|
973
|
-
e.title ? (
|
|
1040
|
+
f("div", jl, [
|
|
1041
|
+
e.title ? (o(), u("strong", Wl, p(e.title), 1)) : g("", !0),
|
|
974
1042
|
f("span", null, [
|
|
975
|
-
|
|
1043
|
+
_(i.$slots, "default")
|
|
976
1044
|
])
|
|
977
1045
|
]),
|
|
978
|
-
e.dismissible ? (
|
|
1046
|
+
e.dismissible ? (o(), u("button", {
|
|
979
1047
|
key: 0,
|
|
980
1048
|
class: "nb-alert__close",
|
|
981
1049
|
type: "button",
|
|
982
1050
|
"aria-label": "Dismiss",
|
|
983
1051
|
onClick: m
|
|
984
|
-
}, "×")) :
|
|
1052
|
+
}, "×")) : g("", !0)
|
|
985
1053
|
], 2));
|
|
986
1054
|
}
|
|
987
|
-
}),
|
|
1055
|
+
}), Xl = { class: "nb-alert-dialog__actions" }, Ql = /* @__PURE__ */ v({
|
|
988
1056
|
__name: "NbAlertDialog",
|
|
989
1057
|
props: {
|
|
990
1058
|
open: { type: Boolean, default: void 0 },
|
|
@@ -996,44 +1064,44 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
996
1064
|
destructive: { type: Boolean, default: !1 }
|
|
997
1065
|
},
|
|
998
1066
|
emits: ["update:open", "action", "cancel"],
|
|
999
|
-
setup(e, { emit:
|
|
1000
|
-
const t = e, s =
|
|
1001
|
-
|
|
1067
|
+
setup(e, { emit: n }) {
|
|
1068
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
1069
|
+
M(() => t.open, (i) => {
|
|
1002
1070
|
i !== void 0 && (l.value = i);
|
|
1003
1071
|
});
|
|
1004
1072
|
function m(i) {
|
|
1005
1073
|
l.value = i, s("update:open", i);
|
|
1006
1074
|
}
|
|
1007
|
-
return (i, r) => (
|
|
1008
|
-
open:
|
|
1075
|
+
return (i, r) => (o(), y(a(Qe), {
|
|
1076
|
+
open: c.value,
|
|
1009
1077
|
"onUpdate:open": m
|
|
1010
1078
|
}, {
|
|
1011
1079
|
default: d(() => [
|
|
1012
|
-
|
|
1080
|
+
b(a(Ye), { class: "nb-root nb-overlay-trigger" }, {
|
|
1013
1081
|
default: d(() => [
|
|
1014
|
-
|
|
1082
|
+
_(i.$slots, "trigger")
|
|
1015
1083
|
]),
|
|
1016
1084
|
_: 3
|
|
1017
1085
|
}),
|
|
1018
|
-
|
|
1086
|
+
b(a(Ze), null, {
|
|
1019
1087
|
default: d(() => [
|
|
1020
|
-
|
|
1021
|
-
|
|
1088
|
+
b(a(et), { class: "nb-root nb-alert-dialog__overlay" }),
|
|
1089
|
+
b(a(tt), { class: "nb-root nb-alert-dialog" }, {
|
|
1022
1090
|
default: d(() => [
|
|
1023
|
-
|
|
1091
|
+
b(a(at), { class: "nb-alert-dialog__title" }, {
|
|
1024
1092
|
default: d(() => [
|
|
1025
1093
|
I(p(e.title), 1)
|
|
1026
1094
|
]),
|
|
1027
1095
|
_: 1
|
|
1028
1096
|
}),
|
|
1029
|
-
|
|
1097
|
+
b(a(lt), { class: "nb-alert-dialog__description" }, {
|
|
1030
1098
|
default: d(() => [
|
|
1031
1099
|
I(p(e.description), 1)
|
|
1032
1100
|
]),
|
|
1033
1101
|
_: 1
|
|
1034
1102
|
}),
|
|
1035
|
-
f("div",
|
|
1036
|
-
|
|
1103
|
+
f("div", Xl, [
|
|
1104
|
+
b(a(nt), {
|
|
1037
1105
|
class: "nb-alert-dialog__button nb-alert-dialog__button--cancel",
|
|
1038
1106
|
onClick: r[0] || (r[0] = (h) => s("cancel"))
|
|
1039
1107
|
}, {
|
|
@@ -1042,8 +1110,8 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1042
1110
|
]),
|
|
1043
1111
|
_: 1
|
|
1044
1112
|
}),
|
|
1045
|
-
|
|
1046
|
-
class:
|
|
1113
|
+
b(a(ot), {
|
|
1114
|
+
class: C(["nb-alert-dialog__button", { "nb-alert-dialog__button--destructive": e.destructive }]),
|
|
1047
1115
|
onClick: r[1] || (r[1] = (h) => s("action"))
|
|
1048
1116
|
}, {
|
|
1049
1117
|
default: d(() => [
|
|
@@ -1062,10 +1130,10 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1062
1130
|
_: 3
|
|
1063
1131
|
}, 8, ["open"]));
|
|
1064
1132
|
}
|
|
1065
|
-
}),
|
|
1133
|
+
}), Yl = { class: "nb-dialog__header" }, Zl = { class: "nb-dialog__body" }, en = {
|
|
1066
1134
|
key: 0,
|
|
1067
1135
|
class: "nb-dialog__footer"
|
|
1068
|
-
},
|
|
1136
|
+
}, tn = /* @__PURE__ */ v({
|
|
1069
1137
|
inheritAttrs: !1,
|
|
1070
1138
|
__name: "NbDialog",
|
|
1071
1139
|
props: {
|
|
@@ -1074,8 +1142,8 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1074
1142
|
closeOnBackdrop: { type: Boolean, default: !0 }
|
|
1075
1143
|
},
|
|
1076
1144
|
emits: ["update:open", "close"],
|
|
1077
|
-
setup(e, { emit:
|
|
1078
|
-
const t = e, s =
|
|
1145
|
+
setup(e, { emit: n }) {
|
|
1146
|
+
const t = e, s = n, c = `${A("dialog")}-title`, m = x(null), i = x(null);
|
|
1079
1147
|
function r() {
|
|
1080
1148
|
s("update:open", !1), s("close");
|
|
1081
1149
|
}
|
|
@@ -1096,17 +1164,17 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1096
1164
|
B.shiftKey && document.activeElement === R ? (B.preventDefault(), G.focus()) : !B.shiftKey && document.activeElement === G && (B.preventDefault(), R.focus());
|
|
1097
1165
|
}
|
|
1098
1166
|
function O() {
|
|
1099
|
-
i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $),
|
|
1167
|
+
i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), H(() => (h()[0] ?? m.value)?.focus());
|
|
1100
1168
|
}
|
|
1101
1169
|
function U() {
|
|
1102
1170
|
document.removeEventListener("keydown", $), i.value?.focus(), i.value = null;
|
|
1103
1171
|
}
|
|
1104
|
-
return
|
|
1172
|
+
return M(() => t.open, (B) => {
|
|
1105
1173
|
B ? O() : U();
|
|
1106
|
-
}, { immediate: !0 }),
|
|
1174
|
+
}, { immediate: !0 }), K(U), (B, D) => e.open ? (o(), u("div", {
|
|
1107
1175
|
key: 0,
|
|
1108
1176
|
class: "nb-root nb-dialog-layer",
|
|
1109
|
-
onMousedown: D[0] || (D[0] =
|
|
1177
|
+
onMousedown: D[0] || (D[0] = me((R) => e.closeOnBackdrop && r(), ["self"]))
|
|
1110
1178
|
}, [
|
|
1111
1179
|
f("section", k(B.$attrs, {
|
|
1112
1180
|
ref_key: "dialogRef",
|
|
@@ -1114,11 +1182,11 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1114
1182
|
class: "nb-dialog",
|
|
1115
1183
|
role: "dialog",
|
|
1116
1184
|
"aria-modal": "true",
|
|
1117
|
-
"aria-labelledby":
|
|
1185
|
+
"aria-labelledby": c,
|
|
1118
1186
|
tabindex: "-1"
|
|
1119
1187
|
}), [
|
|
1120
|
-
f("header",
|
|
1121
|
-
f("h2", { id:
|
|
1188
|
+
f("header", Yl, [
|
|
1189
|
+
f("h2", { id: c }, p(e.title), 1),
|
|
1122
1190
|
f("button", {
|
|
1123
1191
|
class: "nb-dialog__close",
|
|
1124
1192
|
type: "button",
|
|
@@ -1126,16 +1194,104 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1126
1194
|
onClick: r
|
|
1127
1195
|
}, "×")
|
|
1128
1196
|
]),
|
|
1129
|
-
f("div",
|
|
1130
|
-
|
|
1197
|
+
f("div", Zl, [
|
|
1198
|
+
_(B.$slots, "default")
|
|
1131
1199
|
]),
|
|
1132
|
-
B.$slots.footer ? (
|
|
1133
|
-
|
|
1134
|
-
])) :
|
|
1200
|
+
B.$slots.footer ? (o(), u("footer", en, [
|
|
1201
|
+
_(B.$slots, "footer")
|
|
1202
|
+
])) : g("", !0)
|
|
1135
1203
|
], 16)
|
|
1136
|
-
], 32)) :
|
|
1204
|
+
], 32)) : g("", !0);
|
|
1137
1205
|
}
|
|
1138
|
-
}),
|
|
1206
|
+
}), an = { class: "nb-drawer__header" }, ln = { class: "nb-drawer__body" }, nn = {
|
|
1207
|
+
key: 0,
|
|
1208
|
+
class: "nb-drawer__footer"
|
|
1209
|
+
}, on = /* @__PURE__ */ v({
|
|
1210
|
+
__name: "NbDrawer",
|
|
1211
|
+
props: {
|
|
1212
|
+
open: { type: Boolean, default: void 0 },
|
|
1213
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
1214
|
+
title: {},
|
|
1215
|
+
description: {},
|
|
1216
|
+
side: { default: "bottom" }
|
|
1217
|
+
},
|
|
1218
|
+
emits: ["update:open"],
|
|
1219
|
+
setup(e, { emit: n }) {
|
|
1220
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value), m = N(() => ({ bottom: "down", top: "up", left: "left", right: "right" })[t.side]);
|
|
1221
|
+
M(() => t.open, (r) => {
|
|
1222
|
+
r !== void 0 && (l.value = r);
|
|
1223
|
+
});
|
|
1224
|
+
function i(r) {
|
|
1225
|
+
l.value = r, s("update:open", r);
|
|
1226
|
+
}
|
|
1227
|
+
return (r, h) => (o(), y(a(st), {
|
|
1228
|
+
open: c.value,
|
|
1229
|
+
"swipe-direction": m.value,
|
|
1230
|
+
"onUpdate:open": i
|
|
1231
|
+
}, {
|
|
1232
|
+
default: d(() => [
|
|
1233
|
+
b(a(it), { class: "nb-root nb-overlay-trigger" }, {
|
|
1234
|
+
default: d(() => [
|
|
1235
|
+
_(r.$slots, "trigger")
|
|
1236
|
+
]),
|
|
1237
|
+
_: 3
|
|
1238
|
+
}),
|
|
1239
|
+
b(a(dt), null, {
|
|
1240
|
+
default: d(() => [
|
|
1241
|
+
b(a(rt), { class: "nb-root nb-drawer__overlay" }),
|
|
1242
|
+
b(a(ut), k(e.description ? {} : { "aria-describedby": void 0 }, {
|
|
1243
|
+
class: ["nb-root nb-drawer", `nb-drawer--${e.side}`]
|
|
1244
|
+
}), {
|
|
1245
|
+
default: d(() => [
|
|
1246
|
+
b(a(ct), {
|
|
1247
|
+
class: "nb-drawer__handle",
|
|
1248
|
+
"aria-hidden": "true"
|
|
1249
|
+
}),
|
|
1250
|
+
f("header", an, [
|
|
1251
|
+
f("div", null, [
|
|
1252
|
+
b(a(bt), { class: "nb-drawer__title" }, {
|
|
1253
|
+
default: d(() => [
|
|
1254
|
+
I(p(e.title), 1)
|
|
1255
|
+
]),
|
|
1256
|
+
_: 1
|
|
1257
|
+
}),
|
|
1258
|
+
e.description ? (o(), y(a(ft), {
|
|
1259
|
+
key: 0,
|
|
1260
|
+
class: "nb-drawer__description"
|
|
1261
|
+
}, {
|
|
1262
|
+
default: d(() => [
|
|
1263
|
+
I(p(e.description), 1)
|
|
1264
|
+
]),
|
|
1265
|
+
_: 1
|
|
1266
|
+
})) : g("", !0)
|
|
1267
|
+
]),
|
|
1268
|
+
b(a(mt), {
|
|
1269
|
+
class: "nb-overlay-close",
|
|
1270
|
+
"aria-label": "Close drawer"
|
|
1271
|
+
}, {
|
|
1272
|
+
default: d(() => [...h[0] || (h[0] = [
|
|
1273
|
+
I("×", -1)
|
|
1274
|
+
])]),
|
|
1275
|
+
_: 1
|
|
1276
|
+
})
|
|
1277
|
+
]),
|
|
1278
|
+
f("div", ln, [
|
|
1279
|
+
_(r.$slots, "default")
|
|
1280
|
+
]),
|
|
1281
|
+
r.$slots.footer ? (o(), u("footer", nn, [
|
|
1282
|
+
_(r.$slots, "footer")
|
|
1283
|
+
])) : g("", !0)
|
|
1284
|
+
]),
|
|
1285
|
+
_: 3
|
|
1286
|
+
}, 16, ["class"])
|
|
1287
|
+
]),
|
|
1288
|
+
_: 3
|
|
1289
|
+
})
|
|
1290
|
+
]),
|
|
1291
|
+
_: 3
|
|
1292
|
+
}, 8, ["open", "swipe-direction"]));
|
|
1293
|
+
}
|
|
1294
|
+
}), sn = /* @__PURE__ */ v({
|
|
1139
1295
|
__name: "NbDropdownMenu",
|
|
1140
1296
|
props: {
|
|
1141
1297
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1145,27 +1301,27 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1145
1301
|
disabled: { type: Boolean, default: !1 }
|
|
1146
1302
|
},
|
|
1147
1303
|
emits: ["update:open"],
|
|
1148
|
-
setup(e, { emit:
|
|
1149
|
-
const t = e, s =
|
|
1150
|
-
|
|
1304
|
+
setup(e, { emit: n }) {
|
|
1305
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
1306
|
+
M(() => t.open, (i) => {
|
|
1151
1307
|
i !== void 0 && (l.value = i);
|
|
1152
1308
|
});
|
|
1153
1309
|
function m(i) {
|
|
1154
1310
|
l.value = i, s("update:open", i);
|
|
1155
1311
|
}
|
|
1156
|
-
return (i, r) => (
|
|
1157
|
-
open:
|
|
1312
|
+
return (i, r) => (o(), y(a(pt), {
|
|
1313
|
+
open: c.value,
|
|
1158
1314
|
"default-open": e.defaultOpen,
|
|
1159
1315
|
"onUpdate:open": m
|
|
1160
1316
|
}, {
|
|
1161
1317
|
default: d(() => [
|
|
1162
|
-
|
|
1318
|
+
b(a(vt), {
|
|
1163
1319
|
class: "nb-root nb-overlay-trigger",
|
|
1164
1320
|
"aria-label": e.label,
|
|
1165
1321
|
disabled: e.disabled
|
|
1166
1322
|
}, {
|
|
1167
1323
|
default: d(() => [
|
|
1168
|
-
|
|
1324
|
+
_(i.$slots, "trigger"),
|
|
1169
1325
|
r[0] || (r[0] = f("svg", {
|
|
1170
1326
|
class: "nb-overlay-trigger__icon",
|
|
1171
1327
|
viewBox: "0 0 16 16",
|
|
@@ -1177,15 +1333,15 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1177
1333
|
]),
|
|
1178
1334
|
_: 3
|
|
1179
1335
|
}, 8, ["aria-label", "disabled"]),
|
|
1180
|
-
|
|
1336
|
+
b(a(ht), null, {
|
|
1181
1337
|
default: d(() => [
|
|
1182
|
-
|
|
1338
|
+
b(a(_t), {
|
|
1183
1339
|
class: "nb-root nb-dropdown-menu",
|
|
1184
1340
|
align: e.align,
|
|
1185
1341
|
"side-offset": 8
|
|
1186
1342
|
}, {
|
|
1187
1343
|
default: d(() => [
|
|
1188
|
-
|
|
1344
|
+
_(i.$slots, "default")
|
|
1189
1345
|
]),
|
|
1190
1346
|
_: 3
|
|
1191
1347
|
}, 8, ["align"])
|
|
@@ -1196,65 +1352,65 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1196
1352
|
_: 3
|
|
1197
1353
|
}, 8, ["open", "default-open"]));
|
|
1198
1354
|
}
|
|
1199
|
-
}),
|
|
1355
|
+
}), dn = /* @__PURE__ */ v({
|
|
1200
1356
|
__name: "NbDropdownMenuItem",
|
|
1201
1357
|
props: {
|
|
1202
1358
|
disabled: { type: Boolean, default: !1 },
|
|
1203
1359
|
destructive: { type: Boolean, default: !1 }
|
|
1204
1360
|
},
|
|
1205
1361
|
emits: ["select"],
|
|
1206
|
-
setup(e, { emit:
|
|
1207
|
-
const t =
|
|
1208
|
-
return (s, l) => (
|
|
1209
|
-
class:
|
|
1362
|
+
setup(e, { emit: n }) {
|
|
1363
|
+
const t = n;
|
|
1364
|
+
return (s, l) => (o(), y(a(gt), {
|
|
1365
|
+
class: C(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
|
|
1210
1366
|
disabled: e.disabled,
|
|
1211
|
-
onSelect: l[0] || (l[0] = (
|
|
1367
|
+
onSelect: l[0] || (l[0] = (c) => t("select", c))
|
|
1212
1368
|
}, {
|
|
1213
1369
|
default: d(() => [
|
|
1214
|
-
|
|
1370
|
+
_(s.$slots, "default")
|
|
1215
1371
|
]),
|
|
1216
1372
|
_: 3
|
|
1217
1373
|
}, 8, ["class", "disabled"]));
|
|
1218
1374
|
}
|
|
1219
|
-
}),
|
|
1375
|
+
}), rn = /* @__PURE__ */ v({
|
|
1220
1376
|
__name: "NbDropdownMenuSeparator",
|
|
1221
1377
|
setup(e) {
|
|
1222
|
-
return (
|
|
1378
|
+
return (n, t) => (o(), y(a(yt), { class: "nb-dropdown-menu__separator" }));
|
|
1223
1379
|
}
|
|
1224
|
-
}),
|
|
1380
|
+
}), un = ["aria-labelledby"], cn = {
|
|
1225
1381
|
key: 0,
|
|
1226
1382
|
class: "nb-empty-state__icon",
|
|
1227
1383
|
"aria-hidden": "true"
|
|
1228
|
-
},
|
|
1384
|
+
}, bn = ["id"], fn = { key: 1 }, mn = {
|
|
1229
1385
|
key: 2,
|
|
1230
1386
|
class: "nb-empty-state__action"
|
|
1231
|
-
},
|
|
1387
|
+
}, pn = /* @__PURE__ */ v({
|
|
1232
1388
|
__name: "NbEmptyState",
|
|
1233
1389
|
props: {
|
|
1234
1390
|
title: {},
|
|
1235
1391
|
description: {}
|
|
1236
1392
|
},
|
|
1237
1393
|
setup(e) {
|
|
1238
|
-
const
|
|
1239
|
-
return (t, s) => (
|
|
1394
|
+
const n = A("empty-state-title");
|
|
1395
|
+
return (t, s) => (o(), u("section", {
|
|
1240
1396
|
class: "nb-root nb-empty-state",
|
|
1241
1397
|
role: "region",
|
|
1242
|
-
"aria-labelledby": a(
|
|
1398
|
+
"aria-labelledby": a(n)
|
|
1243
1399
|
}, [
|
|
1244
|
-
t.$slots.icon ? (
|
|
1245
|
-
|
|
1246
|
-
])) :
|
|
1247
|
-
f("h2", { id: a(
|
|
1248
|
-
e.description ? (
|
|
1249
|
-
t.$slots.default ? (
|
|
1250
|
-
|
|
1251
|
-
])) :
|
|
1252
|
-
], 8,
|
|
1253
|
-
}
|
|
1254
|
-
}),
|
|
1400
|
+
t.$slots.icon ? (o(), u("div", cn, [
|
|
1401
|
+
_(t.$slots, "icon")
|
|
1402
|
+
])) : g("", !0),
|
|
1403
|
+
f("h2", { id: a(n) }, p(e.title), 9, bn),
|
|
1404
|
+
e.description ? (o(), u("p", fn, p(e.description), 1)) : g("", !0),
|
|
1405
|
+
t.$slots.default ? (o(), u("div", mn, [
|
|
1406
|
+
_(t.$slots, "default")
|
|
1407
|
+
])) : g("", !0)
|
|
1408
|
+
], 8, un));
|
|
1409
|
+
}
|
|
1410
|
+
}), vn = ["disabled", "aria-describedby"], hn = {
|
|
1255
1411
|
key: 0,
|
|
1256
1412
|
class: "nb-fieldset__legend"
|
|
1257
|
-
},
|
|
1413
|
+
}, _n = { class: "nb-fieldset__content" }, gn = /* @__PURE__ */ v({
|
|
1258
1414
|
__name: "NbFieldset",
|
|
1259
1415
|
props: {
|
|
1260
1416
|
legend: {},
|
|
@@ -1262,24 +1418,69 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1262
1418
|
disabled: { type: Boolean, default: !1 }
|
|
1263
1419
|
},
|
|
1264
1420
|
setup(e) {
|
|
1265
|
-
const
|
|
1266
|
-
return (t, s) => (
|
|
1421
|
+
const n = `${A("fieldset")}-description`;
|
|
1422
|
+
return (t, s) => (o(), u("fieldset", {
|
|
1267
1423
|
class: "nb-root nb-fieldset",
|
|
1268
1424
|
disabled: e.disabled,
|
|
1269
|
-
"aria-describedby": e.description ?
|
|
1425
|
+
"aria-describedby": e.description ? n : void 0
|
|
1270
1426
|
}, [
|
|
1271
|
-
e.legend ? (
|
|
1272
|
-
e.description ? (
|
|
1427
|
+
e.legend ? (o(), u("legend", hn, p(e.legend), 1)) : g("", !0),
|
|
1428
|
+
e.description ? (o(), u("p", {
|
|
1273
1429
|
key: 1,
|
|
1274
|
-
id:
|
|
1430
|
+
id: n,
|
|
1275
1431
|
class: "nb-fieldset__description"
|
|
1276
|
-
}, p(e.description), 1)) :
|
|
1277
|
-
f("div",
|
|
1278
|
-
|
|
1432
|
+
}, p(e.description), 1)) : g("", !0),
|
|
1433
|
+
f("div", _n, [
|
|
1434
|
+
_(t.$slots, "default")
|
|
1279
1435
|
])
|
|
1280
|
-
], 8,
|
|
1436
|
+
], 8, vn));
|
|
1281
1437
|
}
|
|
1282
|
-
}),
|
|
1438
|
+
}), re = /* @__PURE__ */ v({
|
|
1439
|
+
inheritAttrs: !1,
|
|
1440
|
+
__name: "NbLabel",
|
|
1441
|
+
setup(e) {
|
|
1442
|
+
return (n, t) => (o(), u("label", k(n.$attrs, { class: "nb-root nb-label" }), [
|
|
1443
|
+
_(n.$slots, "default")
|
|
1444
|
+
], 16));
|
|
1445
|
+
}
|
|
1446
|
+
}), yn = { class: "nb-root nb-field" }, $n = ["id"], Nn = ["id"], ue = /* @__PURE__ */ v({
|
|
1447
|
+
__name: "NbField",
|
|
1448
|
+
props: {
|
|
1449
|
+
id: {},
|
|
1450
|
+
label: {},
|
|
1451
|
+
hint: {},
|
|
1452
|
+
error: {}
|
|
1453
|
+
},
|
|
1454
|
+
setup(e) {
|
|
1455
|
+
const n = e, t = w("field", n.id), s = N(() => T(n.hint, n.error, t.hintId, t.errorId));
|
|
1456
|
+
return (l, c) => (o(), u("div", yn, [
|
|
1457
|
+
e.label ? (o(), y(a(re), {
|
|
1458
|
+
key: 0,
|
|
1459
|
+
for: a(t).inputId
|
|
1460
|
+
}, {
|
|
1461
|
+
default: d(() => [
|
|
1462
|
+
I(p(e.label), 1)
|
|
1463
|
+
]),
|
|
1464
|
+
_: 1
|
|
1465
|
+
}, 8, ["for"])) : g("", !0),
|
|
1466
|
+
_(l.$slots, "default", {
|
|
1467
|
+
inputId: a(t).inputId,
|
|
1468
|
+
describedBy: s.value,
|
|
1469
|
+
invalid: !!e.error
|
|
1470
|
+
}),
|
|
1471
|
+
e.hint ? (o(), u("span", {
|
|
1472
|
+
key: 1,
|
|
1473
|
+
id: a(t).hintId,
|
|
1474
|
+
class: "nb-field__hint"
|
|
1475
|
+
}, p(e.hint), 9, $n)) : g("", !0),
|
|
1476
|
+
e.error ? (o(), u("span", {
|
|
1477
|
+
key: 2,
|
|
1478
|
+
id: a(t).errorId,
|
|
1479
|
+
class: "nb-field__error"
|
|
1480
|
+
}, p(e.error), 9, Nn)) : g("", !0)
|
|
1481
|
+
]));
|
|
1482
|
+
}
|
|
1483
|
+
}), In = { class: "nb-root nb-field" }, kn = ["for"], xn = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Cn = ["id"], Bn = ["id"], Vn = /* @__PURE__ */ v({
|
|
1283
1484
|
inheritAttrs: !1,
|
|
1284
1485
|
__name: "NbInput",
|
|
1285
1486
|
props: {
|
|
@@ -1291,58 +1492,58 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1291
1492
|
id: {}
|
|
1292
1493
|
},
|
|
1293
1494
|
emits: ["update:modelValue"],
|
|
1294
|
-
setup(e, { emit:
|
|
1295
|
-
const t = e, s =
|
|
1296
|
-
return (m, i) => (
|
|
1297
|
-
e.label ? (
|
|
1495
|
+
setup(e, { emit: n }) {
|
|
1496
|
+
const t = e, s = n, l = w("input", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
1497
|
+
return (m, i) => (o(), u("div", In, [
|
|
1498
|
+
e.label ? (o(), u("label", {
|
|
1298
1499
|
key: 0,
|
|
1299
1500
|
class: "nb-field__label",
|
|
1300
1501
|
for: a(l).inputId
|
|
1301
|
-
}, p(e.label), 9,
|
|
1502
|
+
}, p(e.label), 9, kn)) : g("", !0),
|
|
1302
1503
|
f("input", k(m.$attrs, {
|
|
1303
1504
|
id: a(l).inputId,
|
|
1304
1505
|
class: "nb-field__control",
|
|
1305
1506
|
value: e.modelValue,
|
|
1306
1507
|
disabled: e.disabled,
|
|
1307
1508
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1308
|
-
"aria-describedby":
|
|
1509
|
+
"aria-describedby": c.value,
|
|
1309
1510
|
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
1310
|
-
}), null, 16,
|
|
1311
|
-
e.hint ? (
|
|
1511
|
+
}), null, 16, xn),
|
|
1512
|
+
e.hint ? (o(), u("span", {
|
|
1312
1513
|
key: 1,
|
|
1313
1514
|
id: a(l).hintId,
|
|
1314
1515
|
class: "nb-field__hint"
|
|
1315
|
-
}, p(e.hint), 9,
|
|
1316
|
-
e.error ? (
|
|
1516
|
+
}, p(e.hint), 9, Cn)) : g("", !0),
|
|
1517
|
+
e.error ? (o(), u("span", {
|
|
1317
1518
|
key: 2,
|
|
1318
1519
|
id: a(l).errorId,
|
|
1319
1520
|
class: "nb-field__error"
|
|
1320
|
-
}, p(e.error), 9,
|
|
1521
|
+
}, p(e.error), 9, Bn)) : g("", !0)
|
|
1321
1522
|
]));
|
|
1322
1523
|
}
|
|
1323
|
-
}),
|
|
1524
|
+
}), wn = { class: "nb-root nb-input-group" }, Sn = {
|
|
1324
1525
|
key: 0,
|
|
1325
1526
|
class: "nb-input-group__addon"
|
|
1326
|
-
},
|
|
1527
|
+
}, Mn = { class: "nb-input-group__control" }, Tn = {
|
|
1327
1528
|
key: 1,
|
|
1328
1529
|
class: "nb-input-group__addon"
|
|
1329
|
-
},
|
|
1530
|
+
}, An = /* @__PURE__ */ v({
|
|
1330
1531
|
__name: "NbInputGroup",
|
|
1331
1532
|
setup(e) {
|
|
1332
|
-
const
|
|
1333
|
-
return (t, s) => (
|
|
1334
|
-
a(
|
|
1335
|
-
|
|
1336
|
-
])) :
|
|
1337
|
-
f("div",
|
|
1338
|
-
|
|
1533
|
+
const n = pe();
|
|
1534
|
+
return (t, s) => (o(), u("div", wn, [
|
|
1535
|
+
a(n).start ? (o(), u("span", Sn, [
|
|
1536
|
+
_(t.$slots, "start")
|
|
1537
|
+
])) : g("", !0),
|
|
1538
|
+
f("div", Mn, [
|
|
1539
|
+
_(t.$slots, "default")
|
|
1339
1540
|
]),
|
|
1340
|
-
a(
|
|
1341
|
-
|
|
1342
|
-
])) :
|
|
1541
|
+
a(n).end ? (o(), u("span", Tn, [
|
|
1542
|
+
_(t.$slots, "end")
|
|
1543
|
+
])) : g("", !0)
|
|
1343
1544
|
]));
|
|
1344
1545
|
}
|
|
1345
|
-
}),
|
|
1546
|
+
}), Dn = /* @__PURE__ */ v({
|
|
1346
1547
|
__name: "NbHoverCard",
|
|
1347
1548
|
props: {
|
|
1348
1549
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1353,37 +1554,37 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1353
1554
|
side: { default: "bottom" }
|
|
1354
1555
|
},
|
|
1355
1556
|
emits: ["update:open"],
|
|
1356
|
-
setup(e, { emit:
|
|
1357
|
-
const t = e, s =
|
|
1358
|
-
|
|
1557
|
+
setup(e, { emit: n }) {
|
|
1558
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
1559
|
+
M(() => t.open, (i) => {
|
|
1359
1560
|
i !== void 0 && (l.value = i);
|
|
1360
1561
|
});
|
|
1361
1562
|
function m(i) {
|
|
1362
1563
|
l.value = i, s("update:open", i);
|
|
1363
1564
|
}
|
|
1364
|
-
return (i, r) => (
|
|
1365
|
-
open:
|
|
1565
|
+
return (i, r) => (o(), y(a($t), {
|
|
1566
|
+
open: c.value,
|
|
1366
1567
|
"open-delay": e.openDelay,
|
|
1367
1568
|
"close-delay": e.closeDelay,
|
|
1368
1569
|
"onUpdate:open": m
|
|
1369
1570
|
}, {
|
|
1370
1571
|
default: d(() => [
|
|
1371
|
-
|
|
1572
|
+
b(a(Nt), { "as-child": "" }, {
|
|
1372
1573
|
default: d(() => [
|
|
1373
|
-
|
|
1574
|
+
_(i.$slots, "trigger")
|
|
1374
1575
|
]),
|
|
1375
1576
|
_: 3
|
|
1376
1577
|
}),
|
|
1377
|
-
|
|
1578
|
+
b(a(It), null, {
|
|
1378
1579
|
default: d(() => [
|
|
1379
|
-
|
|
1580
|
+
b(a(kt), {
|
|
1380
1581
|
class: "nb-root nb-hover-card",
|
|
1381
1582
|
align: e.align,
|
|
1382
1583
|
side: e.side,
|
|
1383
1584
|
"side-offset": 8
|
|
1384
1585
|
}, {
|
|
1385
1586
|
default: d(() => [
|
|
1386
|
-
|
|
1587
|
+
_(i.$slots, "default")
|
|
1387
1588
|
]),
|
|
1388
1589
|
_: 3
|
|
1389
1590
|
}, 8, ["align", "side"])
|
|
@@ -1394,19 +1595,19 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1394
1595
|
_: 3
|
|
1395
1596
|
}, 8, ["open", "open-delay", "close-delay"]));
|
|
1396
1597
|
}
|
|
1397
|
-
}),
|
|
1598
|
+
}), On = /* @__PURE__ */ v({
|
|
1398
1599
|
__name: "NbKbd",
|
|
1399
1600
|
props: {
|
|
1400
1601
|
size: { default: "md" }
|
|
1401
1602
|
},
|
|
1402
1603
|
setup(e) {
|
|
1403
|
-
return (
|
|
1404
|
-
class:
|
|
1604
|
+
return (n, t) => (o(), u("kbd", {
|
|
1605
|
+
class: C(["nb-root nb-kbd", `nb-kbd--${e.size}`])
|
|
1405
1606
|
}, [
|
|
1406
|
-
|
|
1607
|
+
_(n.$slots, "default")
|
|
1407
1608
|
], 2));
|
|
1408
1609
|
}
|
|
1409
|
-
}),
|
|
1610
|
+
}), Pn = /* @__PURE__ */ v({
|
|
1410
1611
|
inheritAttrs: !1,
|
|
1411
1612
|
__name: "NbLink",
|
|
1412
1613
|
props: {
|
|
@@ -1414,32 +1615,32 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1414
1615
|
tone: { default: "primary" }
|
|
1415
1616
|
},
|
|
1416
1617
|
setup(e) {
|
|
1417
|
-
const
|
|
1418
|
-
return (s, l) => (
|
|
1618
|
+
const n = e, t = N(() => P(`nb-link--${n.tone}`));
|
|
1619
|
+
return (s, l) => (o(), y(ve(e.as), k(s.$attrs, {
|
|
1419
1620
|
class: ["nb-root nb-link", t.value]
|
|
1420
1621
|
}), {
|
|
1421
1622
|
default: d(() => [
|
|
1422
|
-
|
|
1623
|
+
_(s.$slots, "default")
|
|
1423
1624
|
]),
|
|
1424
1625
|
_: 3
|
|
1425
1626
|
}, 16, ["class"]));
|
|
1426
1627
|
}
|
|
1427
|
-
}),
|
|
1628
|
+
}), Rn = /* @__PURE__ */ v({
|
|
1428
1629
|
__name: "NbMarker",
|
|
1429
1630
|
props: {
|
|
1430
1631
|
tone: { default: "primary" }
|
|
1431
1632
|
},
|
|
1432
1633
|
setup(e) {
|
|
1433
|
-
return (
|
|
1434
|
-
class:
|
|
1634
|
+
return (n, t) => (o(), u("mark", {
|
|
1635
|
+
class: C(["nb-root nb-marker", `nb-marker--${e.tone}`])
|
|
1435
1636
|
}, [
|
|
1436
|
-
|
|
1637
|
+
_(n.$slots, "default")
|
|
1437
1638
|
], 2));
|
|
1438
1639
|
}
|
|
1439
|
-
}),
|
|
1640
|
+
}), qn = { class: "nb-root nb-meter" }, Ln = { class: "nb-meter__header" }, Un = ["for"], Gn = {
|
|
1440
1641
|
key: 0,
|
|
1441
1642
|
"aria-hidden": "true"
|
|
1442
|
-
},
|
|
1643
|
+
}, En = ["id", "value", "min", "max", "low", "high", "optimum"], zn = /* @__PURE__ */ v({
|
|
1443
1644
|
__name: "NbMeter",
|
|
1444
1645
|
props: {
|
|
1445
1646
|
value: {},
|
|
@@ -1452,11 +1653,11 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1452
1653
|
optimum: {}
|
|
1453
1654
|
},
|
|
1454
1655
|
setup(e) {
|
|
1455
|
-
const
|
|
1456
|
-
return (l,
|
|
1457
|
-
f("div",
|
|
1458
|
-
f("label", { for: a(t) }, p(e.label), 9,
|
|
1459
|
-
e.showValue ? (
|
|
1656
|
+
const n = e, t = A("meter"), s = N(() => n.max > n.min ? Math.round(Math.min(100, Math.max(0, (n.value - n.min) / (n.max - n.min) * 100))) : 0);
|
|
1657
|
+
return (l, c) => (o(), u("div", qn, [
|
|
1658
|
+
f("div", Ln, [
|
|
1659
|
+
f("label", { for: a(t) }, p(e.label), 9, Un),
|
|
1660
|
+
e.showValue ? (o(), u("span", Gn, p(s.value) + "%", 1)) : g("", !0)
|
|
1460
1661
|
]),
|
|
1461
1662
|
f("meter", {
|
|
1462
1663
|
id: a(t),
|
|
@@ -1466,31 +1667,104 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1466
1667
|
low: e.low,
|
|
1467
1668
|
high: e.high,
|
|
1468
1669
|
optimum: e.optimum
|
|
1469
|
-
}, p(s.value) + "%", 9,
|
|
1670
|
+
}, p(s.value) + "%", 9, En)
|
|
1470
1671
|
]));
|
|
1471
1672
|
}
|
|
1472
|
-
}),
|
|
1673
|
+
}), Fn = /* @__PURE__ */ v({
|
|
1674
|
+
__name: "NbMenubar",
|
|
1675
|
+
props: {
|
|
1676
|
+
label: { default: "Actions" }
|
|
1677
|
+
},
|
|
1678
|
+
setup(e) {
|
|
1679
|
+
return (n, t) => (o(), y(a(xt), {
|
|
1680
|
+
class: "nb-root nb-menubar",
|
|
1681
|
+
"aria-label": e.label
|
|
1682
|
+
}, {
|
|
1683
|
+
default: d(() => [
|
|
1684
|
+
_(n.$slots, "default")
|
|
1685
|
+
]),
|
|
1686
|
+
_: 3
|
|
1687
|
+
}, 8, ["aria-label"]));
|
|
1688
|
+
}
|
|
1689
|
+
}), Hn = /* @__PURE__ */ v({
|
|
1690
|
+
__name: "NbMenubarMenu",
|
|
1691
|
+
props: {
|
|
1692
|
+
label: {}
|
|
1693
|
+
},
|
|
1694
|
+
setup(e) {
|
|
1695
|
+
return (n, t) => (o(), y(a(Ct), null, {
|
|
1696
|
+
default: d(() => [
|
|
1697
|
+
b(a(Bt), { class: "nb-menubar__trigger" }, {
|
|
1698
|
+
default: d(() => [
|
|
1699
|
+
I(p(e.label), 1)
|
|
1700
|
+
]),
|
|
1701
|
+
_: 1
|
|
1702
|
+
}),
|
|
1703
|
+
b(a(Vt), null, {
|
|
1704
|
+
default: d(() => [
|
|
1705
|
+
b(a(wt), {
|
|
1706
|
+
class: "nb-root nb-menubar__content",
|
|
1707
|
+
"side-offset": 6
|
|
1708
|
+
}, {
|
|
1709
|
+
default: d(() => [
|
|
1710
|
+
_(n.$slots, "default")
|
|
1711
|
+
]),
|
|
1712
|
+
_: 3
|
|
1713
|
+
})
|
|
1714
|
+
]),
|
|
1715
|
+
_: 3
|
|
1716
|
+
})
|
|
1717
|
+
]),
|
|
1718
|
+
_: 3
|
|
1719
|
+
}));
|
|
1720
|
+
}
|
|
1721
|
+
}), Kn = /* @__PURE__ */ v({
|
|
1722
|
+
__name: "NbMenubarItem",
|
|
1723
|
+
props: {
|
|
1724
|
+
disabled: { type: Boolean, default: !1 },
|
|
1725
|
+
destructive: { type: Boolean, default: !1 }
|
|
1726
|
+
},
|
|
1727
|
+
emits: ["select"],
|
|
1728
|
+
setup(e, { emit: n }) {
|
|
1729
|
+
const t = n;
|
|
1730
|
+
return (s, l) => (o(), y(a(St), {
|
|
1731
|
+
class: C(["nb-menubar__item", { "nb-menubar__item--destructive": e.destructive }]),
|
|
1732
|
+
disabled: e.disabled,
|
|
1733
|
+
onSelect: l[0] || (l[0] = (c) => t("select", c))
|
|
1734
|
+
}, {
|
|
1735
|
+
default: d(() => [
|
|
1736
|
+
_(s.$slots, "default")
|
|
1737
|
+
]),
|
|
1738
|
+
_: 3
|
|
1739
|
+
}, 8, ["class", "disabled"]));
|
|
1740
|
+
}
|
|
1741
|
+
}), jn = /* @__PURE__ */ v({
|
|
1742
|
+
__name: "NbMenubarSeparator",
|
|
1743
|
+
setup(e) {
|
|
1744
|
+
return (n, t) => (o(), y(a(Mt), { class: "nb-menubar__separator" }));
|
|
1745
|
+
}
|
|
1746
|
+
}), Wn = ["href", "target"], Jn = { key: 0 }, Xn = ["href", "target"], Qn = /* @__PURE__ */ v({
|
|
1473
1747
|
__name: "NbNavigationMenu",
|
|
1474
1748
|
props: {
|
|
1475
1749
|
items: {},
|
|
1476
1750
|
label: { default: "Main navigation" }
|
|
1477
1751
|
},
|
|
1478
1752
|
setup(e) {
|
|
1479
|
-
return (
|
|
1753
|
+
return (n, t) => (o(), y(a(Tt), {
|
|
1480
1754
|
class: "nb-root nb-navigation-menu",
|
|
1481
1755
|
"aria-label": e.label
|
|
1482
1756
|
}, {
|
|
1483
1757
|
default: d(() => [
|
|
1484
|
-
|
|
1758
|
+
b(a(At), { class: "nb-navigation-menu__list" }, {
|
|
1485
1759
|
default: d(() => [
|
|
1486
|
-
(
|
|
1760
|
+
(o(!0), u(V, null, S(e.items, (s, l) => (o(), y(a(Dt), {
|
|
1487
1761
|
key: `${l}-${s.label}`,
|
|
1488
1762
|
value: `${l}-${s.label}`,
|
|
1489
1763
|
class: "nb-navigation-menu__item"
|
|
1490
1764
|
}, {
|
|
1491
1765
|
default: d(() => [
|
|
1492
|
-
s.children?.length ? (
|
|
1493
|
-
|
|
1766
|
+
s.children?.length ? (o(), u(V, { key: 0 }, [
|
|
1767
|
+
b(a(Ot), { class: "nb-navigation-menu__trigger" }, {
|
|
1494
1768
|
default: d(() => [
|
|
1495
1769
|
I(p(s.label) + " ", 1),
|
|
1496
1770
|
t[0] || (t[0] = f("svg", {
|
|
@@ -1503,29 +1777,29 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1503
1777
|
]),
|
|
1504
1778
|
_: 2
|
|
1505
1779
|
}, 1024),
|
|
1506
|
-
|
|
1780
|
+
b(a(Pt), { class: "nb-navigation-menu__content" }, {
|
|
1507
1781
|
default: d(() => [
|
|
1508
|
-
(
|
|
1509
|
-
key:
|
|
1782
|
+
(o(!0), u(V, null, S(s.children, (c) => (o(), y(a(E), {
|
|
1783
|
+
key: c.label,
|
|
1510
1784
|
"as-child": "",
|
|
1511
|
-
active:
|
|
1785
|
+
active: c.active
|
|
1512
1786
|
}, {
|
|
1513
1787
|
default: d(() => [
|
|
1514
1788
|
f("a", {
|
|
1515
1789
|
class: "nb-navigation-menu__link nb-navigation-menu__link--panel",
|
|
1516
|
-
href:
|
|
1517
|
-
target:
|
|
1790
|
+
href: c.href,
|
|
1791
|
+
target: c.target
|
|
1518
1792
|
}, [
|
|
1519
|
-
f("strong", null, p(
|
|
1520
|
-
|
|
1521
|
-
], 8,
|
|
1793
|
+
f("strong", null, p(c.label), 1),
|
|
1794
|
+
c.description ? (o(), u("span", Jn, p(c.description), 1)) : g("", !0)
|
|
1795
|
+
], 8, Wn)
|
|
1522
1796
|
]),
|
|
1523
1797
|
_: 2
|
|
1524
1798
|
}, 1032, ["active"]))), 128))
|
|
1525
1799
|
]),
|
|
1526
1800
|
_: 2
|
|
1527
1801
|
}, 1024)
|
|
1528
|
-
], 64)) : (
|
|
1802
|
+
], 64)) : (o(), y(a(E), {
|
|
1529
1803
|
key: 1,
|
|
1530
1804
|
"as-child": "",
|
|
1531
1805
|
active: s.active
|
|
@@ -1535,7 +1809,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1535
1809
|
class: "nb-navigation-menu__link",
|
|
1536
1810
|
href: s.href,
|
|
1537
1811
|
target: s.target
|
|
1538
|
-
}, p(s.label), 9,
|
|
1812
|
+
}, p(s.label), 9, Xn)
|
|
1539
1813
|
]),
|
|
1540
1814
|
_: 2
|
|
1541
1815
|
}, 1032, ["active"]))
|
|
@@ -1549,7 +1823,56 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1549
1823
|
_: 1
|
|
1550
1824
|
}, 8, ["aria-label"]));
|
|
1551
1825
|
}
|
|
1552
|
-
}),
|
|
1826
|
+
}), Yn = { class: "nb-native-select" }, Zn = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], eo = /* @__PURE__ */ v({
|
|
1827
|
+
inheritAttrs: !1,
|
|
1828
|
+
__name: "NbNativeSelect",
|
|
1829
|
+
props: {
|
|
1830
|
+
modelValue: { default: "" },
|
|
1831
|
+
label: {},
|
|
1832
|
+
hint: {},
|
|
1833
|
+
error: {},
|
|
1834
|
+
id: {},
|
|
1835
|
+
name: {},
|
|
1836
|
+
required: { type: Boolean, default: !1 },
|
|
1837
|
+
disabled: { type: Boolean, default: !1 }
|
|
1838
|
+
},
|
|
1839
|
+
emits: ["update:modelValue"],
|
|
1840
|
+
setup(e, { emit: n }) {
|
|
1841
|
+
const t = e, s = n;
|
|
1842
|
+
return (l, c) => (o(), y(a(ue), {
|
|
1843
|
+
id: t.id,
|
|
1844
|
+
label: e.label,
|
|
1845
|
+
hint: e.hint,
|
|
1846
|
+
error: e.error
|
|
1847
|
+
}, {
|
|
1848
|
+
default: d(({ inputId: m, describedBy: i, invalid: r }) => [
|
|
1849
|
+
f("span", Yn, [
|
|
1850
|
+
f("select", k(l.$attrs, {
|
|
1851
|
+
id: m,
|
|
1852
|
+
class: "nb-field__control nb-native-select__control",
|
|
1853
|
+
name: e.name,
|
|
1854
|
+
value: e.modelValue,
|
|
1855
|
+
required: e.required,
|
|
1856
|
+
disabled: e.disabled,
|
|
1857
|
+
"aria-invalid": r || void 0,
|
|
1858
|
+
"aria-describedby": i,
|
|
1859
|
+
onChange: c[0] || (c[0] = (h) => s("update:modelValue", h.target.value))
|
|
1860
|
+
}), [
|
|
1861
|
+
_(l.$slots, "default")
|
|
1862
|
+
], 16, Zn),
|
|
1863
|
+
c[1] || (c[1] = f("svg", {
|
|
1864
|
+
viewBox: "0 0 16 16",
|
|
1865
|
+
"aria-hidden": "true",
|
|
1866
|
+
focusable: "false"
|
|
1867
|
+
}, [
|
|
1868
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1869
|
+
], -1))
|
|
1870
|
+
])
|
|
1871
|
+
]),
|
|
1872
|
+
_: 3
|
|
1873
|
+
}, 8, ["id", "label", "hint", "error"]));
|
|
1874
|
+
}
|
|
1875
|
+
}), to = { class: "nb-root nb-field" }, ao = ["for"], lo = ["id"], no = ["id"], oo = /* @__PURE__ */ v({
|
|
1553
1876
|
inheritAttrs: !1,
|
|
1554
1877
|
__name: "NbNumberInput",
|
|
1555
1878
|
props: {
|
|
@@ -1567,15 +1890,15 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1567
1890
|
step: { default: 1 }
|
|
1568
1891
|
},
|
|
1569
1892
|
emits: ["update:modelValue"],
|
|
1570
|
-
setup(e, { emit:
|
|
1571
|
-
const t = e, s =
|
|
1572
|
-
return (i, r) => (
|
|
1573
|
-
e.label ? (
|
|
1893
|
+
setup(e, { emit: n }) {
|
|
1894
|
+
const t = e, s = n, l = w("number-input", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId)), m = N(() => t.label ?? "value");
|
|
1895
|
+
return (i, r) => (o(), u("div", to, [
|
|
1896
|
+
e.label ? (o(), u("label", {
|
|
1574
1897
|
key: 0,
|
|
1575
1898
|
class: "nb-field__label",
|
|
1576
1899
|
for: a(l).inputId
|
|
1577
|
-
}, p(e.label), 9,
|
|
1578
|
-
|
|
1900
|
+
}, p(e.label), 9, ao)) : g("", !0),
|
|
1901
|
+
b(a(Rt), {
|
|
1579
1902
|
class: "nb-number-input",
|
|
1580
1903
|
"model-value": e.modelValue,
|
|
1581
1904
|
min: e.min,
|
|
@@ -1588,7 +1911,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1588
1911
|
"onUpdate:modelValue": r[0] || (r[0] = (h) => s("update:modelValue", h))
|
|
1589
1912
|
}, {
|
|
1590
1913
|
default: d(() => [
|
|
1591
|
-
|
|
1914
|
+
b(a(qt), {
|
|
1592
1915
|
class: "nb-number-input__button",
|
|
1593
1916
|
"aria-label": `Decrease ${m.value}`
|
|
1594
1917
|
}, {
|
|
@@ -1597,13 +1920,13 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1597
1920
|
])]),
|
|
1598
1921
|
_: 1
|
|
1599
1922
|
}, 8, ["aria-label"]),
|
|
1600
|
-
|
|
1923
|
+
b(a(Lt), k(i.$attrs, {
|
|
1601
1924
|
id: a(l).inputId,
|
|
1602
1925
|
class: "nb-number-input__input",
|
|
1603
1926
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1604
|
-
"aria-describedby":
|
|
1927
|
+
"aria-describedby": c.value
|
|
1605
1928
|
}), null, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
1606
|
-
|
|
1929
|
+
b(a(Ut), {
|
|
1607
1930
|
class: "nb-number-input__button",
|
|
1608
1931
|
"aria-label": `Increase ${m.value}`
|
|
1609
1932
|
}, {
|
|
@@ -1615,19 +1938,19 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1615
1938
|
]),
|
|
1616
1939
|
_: 1
|
|
1617
1940
|
}, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
|
|
1618
|
-
e.hint ? (
|
|
1941
|
+
e.hint ? (o(), u("span", {
|
|
1619
1942
|
key: 1,
|
|
1620
1943
|
id: a(l).hintId,
|
|
1621
1944
|
class: "nb-field__hint"
|
|
1622
|
-
}, p(e.hint), 9,
|
|
1623
|
-
e.error ? (
|
|
1945
|
+
}, p(e.hint), 9, lo)) : g("", !0),
|
|
1946
|
+
e.error ? (o(), u("span", {
|
|
1624
1947
|
key: 2,
|
|
1625
1948
|
id: a(l).errorId,
|
|
1626
1949
|
class: "nb-field__error"
|
|
1627
|
-
}, p(e.error), 9,
|
|
1950
|
+
}, p(e.error), 9, no)) : g("", !0)
|
|
1628
1951
|
]));
|
|
1629
1952
|
}
|
|
1630
|
-
}),
|
|
1953
|
+
}), so = /* @__PURE__ */ v({
|
|
1631
1954
|
__name: "NbPagination",
|
|
1632
1955
|
props: {
|
|
1633
1956
|
page: {},
|
|
@@ -1639,9 +1962,9 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1639
1962
|
label: { default: "Pagination" }
|
|
1640
1963
|
},
|
|
1641
1964
|
emits: ["update:page"],
|
|
1642
|
-
setup(e, { emit:
|
|
1643
|
-
const t =
|
|
1644
|
-
return (s, l) => (
|
|
1965
|
+
setup(e, { emit: n }) {
|
|
1966
|
+
const t = n;
|
|
1967
|
+
return (s, l) => (o(), y(a(Gt), {
|
|
1645
1968
|
class: "nb-root nb-pagination",
|
|
1646
1969
|
page: e.page,
|
|
1647
1970
|
"default-page": e.defaultPage,
|
|
@@ -1651,10 +1974,10 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1651
1974
|
disabled: e.disabled,
|
|
1652
1975
|
"show-edges": "",
|
|
1653
1976
|
"aria-label": e.label,
|
|
1654
|
-
"onUpdate:page": l[0] || (l[0] = (
|
|
1977
|
+
"onUpdate:page": l[0] || (l[0] = (c) => t("update:page", c))
|
|
1655
1978
|
}, {
|
|
1656
1979
|
default: d(() => [
|
|
1657
|
-
|
|
1980
|
+
b(a(Et), {
|
|
1658
1981
|
class: "nb-pagination__button",
|
|
1659
1982
|
"aria-label": "Go to previous page"
|
|
1660
1983
|
}, {
|
|
@@ -1669,12 +1992,12 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1669
1992
|
])]),
|
|
1670
1993
|
_: 1
|
|
1671
1994
|
}),
|
|
1672
|
-
|
|
1673
|
-
default: d(({ items:
|
|
1674
|
-
(
|
|
1995
|
+
b(a(zt), { class: "nb-pagination__list" }, {
|
|
1996
|
+
default: d(({ items: c }) => [
|
|
1997
|
+
(o(!0), u(V, null, S(c, (m, i) => (o(), u(V, {
|
|
1675
1998
|
key: m.type === "page" ? m.value : `ellipsis-${i}`
|
|
1676
1999
|
}, [
|
|
1677
|
-
m.type === "page" ? (
|
|
2000
|
+
m.type === "page" ? (o(), y(a(Ft), {
|
|
1678
2001
|
key: 0,
|
|
1679
2002
|
class: "nb-pagination__button",
|
|
1680
2003
|
value: m.value
|
|
@@ -1683,7 +2006,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1683
2006
|
I(p(m.value), 1)
|
|
1684
2007
|
]),
|
|
1685
2008
|
_: 2
|
|
1686
|
-
}, 1032, ["value"])) : (
|
|
2009
|
+
}, 1032, ["value"])) : (o(), y(a(Ht), {
|
|
1687
2010
|
key: 1,
|
|
1688
2011
|
class: "nb-pagination__ellipsis"
|
|
1689
2012
|
}, {
|
|
@@ -1696,7 +2019,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1696
2019
|
]),
|
|
1697
2020
|
_: 1
|
|
1698
2021
|
}),
|
|
1699
|
-
|
|
2022
|
+
b(a(Kt), {
|
|
1700
2023
|
class: "nb-pagination__button",
|
|
1701
2024
|
"aria-label": "Go to next page"
|
|
1702
2025
|
}, {
|
|
@@ -1715,7 +2038,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1715
2038
|
_: 1
|
|
1716
2039
|
}, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
|
|
1717
2040
|
}
|
|
1718
|
-
}),
|
|
2041
|
+
}), io = { class: "nb-root nb-field" }, ro = ["id"], uo = ["id"], co = /* @__PURE__ */ v({
|
|
1719
2042
|
inheritAttrs: !1,
|
|
1720
2043
|
__name: "NbPinInput",
|
|
1721
2044
|
props: {
|
|
@@ -1732,18 +2055,18 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1732
2055
|
otp: { type: Boolean, default: !1 }
|
|
1733
2056
|
},
|
|
1734
2057
|
emits: ["update:modelValue", "complete"],
|
|
1735
|
-
setup(e, { emit:
|
|
1736
|
-
const t = e, s =
|
|
2058
|
+
setup(e, { emit: n }) {
|
|
2059
|
+
const t = e, s = n, l = w("pin-input", t.id), c = `${l.inputId}-label`, m = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
1737
2060
|
function i(r) {
|
|
1738
2061
|
r.inputType === "insertText" && r.data && /\D/.test(r.data) && r.preventDefault();
|
|
1739
2062
|
}
|
|
1740
|
-
return (r, h) => (
|
|
1741
|
-
e.label ? (
|
|
2063
|
+
return (r, h) => (o(), u("div", io, [
|
|
2064
|
+
e.label ? (o(), u("span", {
|
|
1742
2065
|
key: 0,
|
|
1743
|
-
id:
|
|
2066
|
+
id: c,
|
|
1744
2067
|
class: "nb-field__label"
|
|
1745
|
-
}, p(e.label), 1)) :
|
|
1746
|
-
|
|
2068
|
+
}, p(e.label), 1)) : g("", !0),
|
|
2069
|
+
b(a(jt), k(r.$attrs, {
|
|
1747
2070
|
class: "nb-pin-input",
|
|
1748
2071
|
role: "group",
|
|
1749
2072
|
id: a(l).inputId,
|
|
@@ -1754,14 +2077,14 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1754
2077
|
mask: e.mask,
|
|
1755
2078
|
otp: e.otp,
|
|
1756
2079
|
"aria-label": e.label ? void 0 : "PIN input",
|
|
1757
|
-
"aria-labelledby": e.label ?
|
|
2080
|
+
"aria-labelledby": e.label ? c : void 0,
|
|
1758
2081
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1759
2082
|
"aria-describedby": m.value,
|
|
1760
2083
|
"onUpdate:modelValue": h[0] || (h[0] = ($) => s("update:modelValue", $)),
|
|
1761
2084
|
onComplete: h[1] || (h[1] = ($) => s("complete", $))
|
|
1762
2085
|
}), {
|
|
1763
2086
|
default: d(() => [
|
|
1764
|
-
(
|
|
2087
|
+
(o(!0), u(V, null, S(e.length, ($) => (o(), y(a(Wt), {
|
|
1765
2088
|
key: $,
|
|
1766
2089
|
class: "nb-pin-input__digit",
|
|
1767
2090
|
index: $ - 1,
|
|
@@ -1771,22 +2094,22 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1771
2094
|
]),
|
|
1772
2095
|
_: 1
|
|
1773
2096
|
}, 16, ["id", "model-value", "name", "disabled", "mask", "otp", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"]),
|
|
1774
|
-
e.hint ? (
|
|
2097
|
+
e.hint ? (o(), u("span", {
|
|
1775
2098
|
key: 1,
|
|
1776
2099
|
id: a(l).hintId,
|
|
1777
2100
|
class: "nb-field__hint"
|
|
1778
|
-
}, p(e.hint), 9,
|
|
1779
|
-
e.error ? (
|
|
2101
|
+
}, p(e.hint), 9, ro)) : g("", !0),
|
|
2102
|
+
e.error ? (o(), u("span", {
|
|
1780
2103
|
key: 2,
|
|
1781
2104
|
id: a(l).errorId,
|
|
1782
2105
|
class: "nb-field__error"
|
|
1783
|
-
}, p(e.error), 9,
|
|
2106
|
+
}, p(e.error), 9, uo)) : g("", !0)
|
|
1784
2107
|
]));
|
|
1785
2108
|
}
|
|
1786
|
-
}),
|
|
2109
|
+
}), bo = {
|
|
1787
2110
|
key: 0,
|
|
1788
2111
|
class: "nb-popover__header"
|
|
1789
|
-
},
|
|
2112
|
+
}, fo = ["id"], mo = { class: "nb-popover__body" }, po = /* @__PURE__ */ v({
|
|
1790
2113
|
__name: "NbPopover",
|
|
1791
2114
|
props: {
|
|
1792
2115
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1797,32 +2120,32 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1797
2120
|
disabled: { type: Boolean, default: !1 }
|
|
1798
2121
|
},
|
|
1799
2122
|
emits: ["update:open"],
|
|
1800
|
-
setup(e, { emit:
|
|
1801
|
-
const t = e, s =
|
|
1802
|
-
|
|
1803
|
-
r !== void 0 && (
|
|
2123
|
+
setup(e, { emit: n }) {
|
|
2124
|
+
const t = e, s = n, l = A("popover-title"), c = x(t.open ?? t.defaultOpen), m = N(() => t.open ?? c.value);
|
|
2125
|
+
M(() => t.open, (r) => {
|
|
2126
|
+
r !== void 0 && (c.value = r);
|
|
1804
2127
|
});
|
|
1805
2128
|
function i(r) {
|
|
1806
|
-
|
|
2129
|
+
c.value = r, s("update:open", r);
|
|
1807
2130
|
}
|
|
1808
|
-
return (r, h) => (
|
|
2131
|
+
return (r, h) => (o(), y(a(Jt), {
|
|
1809
2132
|
open: m.value,
|
|
1810
2133
|
"default-open": e.defaultOpen,
|
|
1811
2134
|
"onUpdate:open": i
|
|
1812
2135
|
}, {
|
|
1813
2136
|
default: d(() => [
|
|
1814
|
-
|
|
2137
|
+
b(a(Xt), {
|
|
1815
2138
|
class: "nb-root nb-overlay-trigger",
|
|
1816
2139
|
disabled: e.disabled
|
|
1817
2140
|
}, {
|
|
1818
2141
|
default: d(() => [
|
|
1819
|
-
|
|
2142
|
+
_(r.$slots, "trigger")
|
|
1820
2143
|
]),
|
|
1821
2144
|
_: 3
|
|
1822
2145
|
}, 8, ["disabled"]),
|
|
1823
|
-
|
|
2146
|
+
b(a(Qt), null, {
|
|
1824
2147
|
default: d(() => [
|
|
1825
|
-
|
|
2148
|
+
b(a(Yt), {
|
|
1826
2149
|
class: "nb-root nb-popover",
|
|
1827
2150
|
align: e.align,
|
|
1828
2151
|
side: e.side,
|
|
@@ -1830,9 +2153,9 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1830
2153
|
"aria-labelledby": e.title ? a(l) : void 0
|
|
1831
2154
|
}, {
|
|
1832
2155
|
default: d(() => [
|
|
1833
|
-
e.title ? (
|
|
1834
|
-
f("h2", { id: a(l) }, p(e.title), 9,
|
|
1835
|
-
|
|
2156
|
+
e.title ? (o(), u("header", bo, [
|
|
2157
|
+
f("h2", { id: a(l) }, p(e.title), 9, fo),
|
|
2158
|
+
b(a(Zt), {
|
|
1836
2159
|
class: "nb-overlay-close",
|
|
1837
2160
|
"aria-label": "Close popover"
|
|
1838
2161
|
}, {
|
|
@@ -1841,9 +2164,9 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1841
2164
|
])]),
|
|
1842
2165
|
_: 1
|
|
1843
2166
|
})
|
|
1844
|
-
])) :
|
|
1845
|
-
f("div",
|
|
1846
|
-
|
|
2167
|
+
])) : g("", !0),
|
|
2168
|
+
f("div", mo, [
|
|
2169
|
+
_(r.$slots, "default")
|
|
1847
2170
|
])
|
|
1848
2171
|
]),
|
|
1849
2172
|
_: 3
|
|
@@ -1855,10 +2178,10 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1855
2178
|
_: 3
|
|
1856
2179
|
}, 8, ["open", "default-open"]));
|
|
1857
2180
|
}
|
|
1858
|
-
}),
|
|
2181
|
+
}), vo = { class: "nb-root nb-progress-wrap" }, ho = {
|
|
1859
2182
|
key: 0,
|
|
1860
2183
|
class: "nb-progress__header"
|
|
1861
|
-
},
|
|
2184
|
+
}, _o = /* @__PURE__ */ v({
|
|
1862
2185
|
__name: "NbProgress",
|
|
1863
2186
|
props: {
|
|
1864
2187
|
value: { default: null },
|
|
@@ -1867,20 +2190,20 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1867
2190
|
showValue: { type: Boolean, default: !1 }
|
|
1868
2191
|
},
|
|
1869
2192
|
setup(e) {
|
|
1870
|
-
const
|
|
1871
|
-
return (s, l) => (
|
|
1872
|
-
e.showValue ? (
|
|
2193
|
+
const n = e, t = N(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
|
|
2194
|
+
return (s, l) => (o(), u("div", vo, [
|
|
2195
|
+
e.showValue ? (o(), u("div", ho, [
|
|
1873
2196
|
f("span", null, p(e.label), 1),
|
|
1874
2197
|
f("span", null, p(Math.round(t.value)) + "%", 1)
|
|
1875
|
-
])) :
|
|
1876
|
-
|
|
2198
|
+
])) : g("", !0),
|
|
2199
|
+
b(a(ea), {
|
|
1877
2200
|
class: "nb-progress",
|
|
1878
2201
|
"model-value": e.value,
|
|
1879
2202
|
max: e.max,
|
|
1880
2203
|
"get-value-label": () => e.label
|
|
1881
2204
|
}, {
|
|
1882
2205
|
default: d(() => [
|
|
1883
|
-
|
|
2206
|
+
b(a(ta), {
|
|
1884
2207
|
class: "nb-progress__indicator",
|
|
1885
2208
|
style: q(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
|
|
1886
2209
|
}, null, 8, ["style"])
|
|
@@ -1889,13 +2212,13 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1889
2212
|
}, 8, ["model-value", "max", "get-value-label"])
|
|
1890
2213
|
]));
|
|
1891
2214
|
}
|
|
1892
|
-
}),
|
|
2215
|
+
}), go = ["disabled", "aria-describedby"], yo = {
|
|
1893
2216
|
key: 0,
|
|
1894
2217
|
class: "nb-radio-group__legend"
|
|
1895
|
-
},
|
|
2218
|
+
}, $o = { class: "nb-radio-group__options" }, No = ["for"], Io = ["id", "name", "value", "checked", "disabled", "onChange"], ko = { class: "nb-radio__content" }, xo = { class: "nb-radio__label" }, Co = {
|
|
1896
2219
|
key: 0,
|
|
1897
2220
|
class: "nb-radio__description"
|
|
1898
|
-
},
|
|
2221
|
+
}, Bo = /* @__PURE__ */ v({
|
|
1899
2222
|
__name: "NbRadioGroup",
|
|
1900
2223
|
props: {
|
|
1901
2224
|
modelValue: { default: "" },
|
|
@@ -1906,51 +2229,51 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1906
2229
|
options: {}
|
|
1907
2230
|
},
|
|
1908
2231
|
emits: ["update:modelValue"],
|
|
1909
|
-
setup(e, { emit:
|
|
1910
|
-
const t = e, s =
|
|
1911
|
-
return (i, r) => (
|
|
2232
|
+
setup(e, { emit: n }) {
|
|
2233
|
+
const t = e, s = n, l = A("radio-group"), c = t.name ?? l, m = `${l}-hint`;
|
|
2234
|
+
return (i, r) => (o(), u("fieldset", {
|
|
1912
2235
|
class: "nb-root nb-radio-group",
|
|
1913
2236
|
disabled: e.disabled,
|
|
1914
2237
|
"aria-describedby": e.hint ? m : void 0
|
|
1915
2238
|
}, [
|
|
1916
|
-
e.label ? (
|
|
1917
|
-
e.hint ? (
|
|
2239
|
+
e.label ? (o(), u("legend", yo, p(e.label), 1)) : g("", !0),
|
|
2240
|
+
e.hint ? (o(), u("p", {
|
|
1918
2241
|
key: 1,
|
|
1919
2242
|
id: m,
|
|
1920
2243
|
class: "nb-field__hint nb-radio-group__hint"
|
|
1921
|
-
}, p(e.hint), 1)) :
|
|
1922
|
-
f("div",
|
|
1923
|
-
(
|
|
2244
|
+
}, p(e.hint), 1)) : g("", !0),
|
|
2245
|
+
f("div", $o, [
|
|
2246
|
+
(o(!0), u(V, null, S(e.options, (h, $) => (o(), u("label", {
|
|
1924
2247
|
key: h.value,
|
|
1925
|
-
class:
|
|
2248
|
+
class: C(["nb-radio", { "is-checked": e.modelValue === h.value }]),
|
|
1926
2249
|
for: `${a(l)}-${$}`
|
|
1927
2250
|
}, [
|
|
1928
2251
|
f("input", {
|
|
1929
2252
|
id: `${a(l)}-${$}`,
|
|
1930
2253
|
class: "nb-radio__input",
|
|
1931
2254
|
type: "radio",
|
|
1932
|
-
name: a(
|
|
2255
|
+
name: a(c),
|
|
1933
2256
|
value: h.value,
|
|
1934
2257
|
checked: e.modelValue === h.value,
|
|
1935
2258
|
disabled: e.disabled || h.disabled,
|
|
1936
2259
|
onChange: (O) => s("update:modelValue", h.value)
|
|
1937
|
-
}, null, 40,
|
|
2260
|
+
}, null, 40, Io),
|
|
1938
2261
|
r[0] || (r[0] = f("span", {
|
|
1939
2262
|
class: "nb-radio__mark",
|
|
1940
2263
|
"aria-hidden": "true"
|
|
1941
2264
|
}, null, -1)),
|
|
1942
|
-
f("span",
|
|
1943
|
-
f("span",
|
|
1944
|
-
h.description ? (
|
|
2265
|
+
f("span", ko, [
|
|
2266
|
+
f("span", xo, p(h.label), 1),
|
|
2267
|
+
h.description ? (o(), u("span", Co, p(h.description), 1)) : g("", !0)
|
|
1945
2268
|
])
|
|
1946
|
-
], 10,
|
|
2269
|
+
], 10, No))), 128))
|
|
1947
2270
|
])
|
|
1948
|
-
], 8,
|
|
2271
|
+
], 8, go));
|
|
1949
2272
|
}
|
|
1950
|
-
}),
|
|
2273
|
+
}), Vo = ["id", "disabled", "aria-label", "aria-invalid", "aria-describedby"], wo = {
|
|
1951
2274
|
key: 0,
|
|
1952
2275
|
class: "nb-field__label"
|
|
1953
|
-
},
|
|
2276
|
+
}, So = { class: "nb-rating__options" }, Mo = ["name", "value", "checked", "required", "aria-label"], To = ["id"], Ao = ["id"], Do = /* @__PURE__ */ v({
|
|
1954
2277
|
inheritAttrs: !1,
|
|
1955
2278
|
__name: "NbRating",
|
|
1956
2279
|
props: {
|
|
@@ -1965,21 +2288,21 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1965
2288
|
required: { type: Boolean, default: !1 }
|
|
1966
2289
|
},
|
|
1967
2290
|
emits: ["update:modelValue"],
|
|
1968
|
-
setup(e, { emit:
|
|
1969
|
-
const t = e, s =
|
|
1970
|
-
return (m, i) => (
|
|
2291
|
+
setup(e, { emit: n }) {
|
|
2292
|
+
const t = e, s = n, l = w("rating", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
2293
|
+
return (m, i) => (o(), u("fieldset", k(m.$attrs, {
|
|
1971
2294
|
id: a(l).inputId,
|
|
1972
2295
|
class: "nb-root nb-field nb-rating",
|
|
1973
2296
|
disabled: e.disabled,
|
|
1974
2297
|
"aria-label": e.label ? void 0 : "Rating",
|
|
1975
2298
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1976
|
-
"aria-describedby":
|
|
2299
|
+
"aria-describedby": c.value
|
|
1977
2300
|
}), [
|
|
1978
|
-
e.label ? (
|
|
1979
|
-
f("div",
|
|
1980
|
-
(
|
|
2301
|
+
e.label ? (o(), u("legend", wo, p(e.label), 1)) : g("", !0),
|
|
2302
|
+
f("div", So, [
|
|
2303
|
+
(o(!0), u(V, null, S(e.length, (r) => (o(), u("label", {
|
|
1981
2304
|
key: r,
|
|
1982
|
-
class:
|
|
2305
|
+
class: C(["nb-rating__option", { "is-active": e.modelValue !== void 0 && r <= e.modelValue }])
|
|
1983
2306
|
}, [
|
|
1984
2307
|
f("input", {
|
|
1985
2308
|
class: "nb-rating__input",
|
|
@@ -1990,7 +2313,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
1990
2313
|
required: e.required,
|
|
1991
2314
|
"aria-label": `${r} of ${e.length}`,
|
|
1992
2315
|
onChange: i[0] || (i[0] = (h) => s("update:modelValue", Number(h.target.value)))
|
|
1993
|
-
}, null, 40,
|
|
2316
|
+
}, null, 40, Mo),
|
|
1994
2317
|
i[1] || (i[1] = f("svg", {
|
|
1995
2318
|
viewBox: "0 0 24 24",
|
|
1996
2319
|
"aria-hidden": "true",
|
|
@@ -2000,19 +2323,19 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2000
2323
|
], -1))
|
|
2001
2324
|
], 2))), 128))
|
|
2002
2325
|
]),
|
|
2003
|
-
e.hint ? (
|
|
2326
|
+
e.hint ? (o(), u("span", {
|
|
2004
2327
|
key: 1,
|
|
2005
2328
|
id: a(l).hintId,
|
|
2006
2329
|
class: "nb-field__hint"
|
|
2007
|
-
}, p(e.hint), 9,
|
|
2008
|
-
e.error ? (
|
|
2330
|
+
}, p(e.hint), 9, To)) : g("", !0),
|
|
2331
|
+
e.error ? (o(), u("span", {
|
|
2009
2332
|
key: 2,
|
|
2010
2333
|
id: a(l).errorId,
|
|
2011
2334
|
class: "nb-field__error"
|
|
2012
|
-
}, p(e.error), 9,
|
|
2013
|
-
], 16,
|
|
2335
|
+
}, p(e.error), 9, Ao)) : g("", !0)
|
|
2336
|
+
], 16, Vo));
|
|
2014
2337
|
}
|
|
2015
|
-
}),
|
|
2338
|
+
}), Oo = /* @__PURE__ */ v({
|
|
2016
2339
|
__name: "NbScrollArea",
|
|
2017
2340
|
props: {
|
|
2018
2341
|
label: { default: "Scrollable content" },
|
|
@@ -2020,27 +2343,27 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2020
2343
|
type: { default: "hover" }
|
|
2021
2344
|
},
|
|
2022
2345
|
setup(e) {
|
|
2023
|
-
return (
|
|
2346
|
+
return (n, t) => (o(), y(a(aa), {
|
|
2024
2347
|
class: "nb-root nb-scroll-area",
|
|
2025
2348
|
type: e.type,
|
|
2026
2349
|
style: q({ height: e.height })
|
|
2027
2350
|
}, {
|
|
2028
2351
|
default: d(() => [
|
|
2029
|
-
|
|
2352
|
+
b(a(la), {
|
|
2030
2353
|
class: "nb-scroll-area__viewport",
|
|
2031
2354
|
"aria-label": e.label
|
|
2032
2355
|
}, {
|
|
2033
2356
|
default: d(() => [
|
|
2034
|
-
|
|
2357
|
+
_(n.$slots, "default")
|
|
2035
2358
|
]),
|
|
2036
2359
|
_: 3
|
|
2037
2360
|
}, 8, ["aria-label"]),
|
|
2038
|
-
|
|
2361
|
+
b(a(na), {
|
|
2039
2362
|
class: "nb-scroll-area__scrollbar",
|
|
2040
2363
|
orientation: "vertical"
|
|
2041
2364
|
}, {
|
|
2042
2365
|
default: d(() => [
|
|
2043
|
-
|
|
2366
|
+
b(a(oa), { class: "nb-scroll-area__thumb" })
|
|
2044
2367
|
]),
|
|
2045
2368
|
_: 1
|
|
2046
2369
|
})
|
|
@@ -2048,10 +2371,10 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2048
2371
|
_: 3
|
|
2049
2372
|
}, 8, ["type", "style"]));
|
|
2050
2373
|
}
|
|
2051
|
-
}),
|
|
2374
|
+
}), Po = { class: "nb-sheet__header" }, Ro = { class: "nb-sheet__body" }, qo = {
|
|
2052
2375
|
key: 0,
|
|
2053
2376
|
class: "nb-sheet__footer"
|
|
2054
|
-
},
|
|
2377
|
+
}, Lo = /* @__PURE__ */ v({
|
|
2055
2378
|
__name: "NbSheet",
|
|
2056
2379
|
props: {
|
|
2057
2380
|
open: { type: Boolean, default: void 0 },
|
|
@@ -2061,41 +2384,41 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2061
2384
|
side: { default: "right" }
|
|
2062
2385
|
},
|
|
2063
2386
|
emits: ["update:open"],
|
|
2064
|
-
setup(e, { emit:
|
|
2065
|
-
const t = e, s =
|
|
2066
|
-
|
|
2387
|
+
setup(e, { emit: n }) {
|
|
2388
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
2389
|
+
M(() => t.open, (i) => {
|
|
2067
2390
|
i !== void 0 && (l.value = i);
|
|
2068
2391
|
});
|
|
2069
2392
|
function m(i) {
|
|
2070
2393
|
l.value = i, s("update:open", i);
|
|
2071
2394
|
}
|
|
2072
|
-
return (i, r) => (
|
|
2073
|
-
open:
|
|
2395
|
+
return (i, r) => (o(), y(a(ee), {
|
|
2396
|
+
open: c.value,
|
|
2074
2397
|
"onUpdate:open": m
|
|
2075
2398
|
}, {
|
|
2076
2399
|
default: d(() => [
|
|
2077
|
-
|
|
2400
|
+
b(a(te), { class: "nb-root nb-overlay-trigger" }, {
|
|
2078
2401
|
default: d(() => [
|
|
2079
|
-
|
|
2402
|
+
_(i.$slots, "trigger")
|
|
2080
2403
|
]),
|
|
2081
2404
|
_: 3
|
|
2082
2405
|
}),
|
|
2083
|
-
|
|
2406
|
+
b(a(ae), null, {
|
|
2084
2407
|
default: d(() => [
|
|
2085
|
-
|
|
2086
|
-
|
|
2408
|
+
b(a(le), { class: "nb-root nb-sheet__overlay" }),
|
|
2409
|
+
b(a(ne), k(e.description ? {} : { "aria-describedby": void 0 }, {
|
|
2087
2410
|
class: ["nb-root nb-sheet", `nb-sheet--${e.side}`]
|
|
2088
2411
|
}), {
|
|
2089
2412
|
default: d(() => [
|
|
2090
|
-
f("header",
|
|
2413
|
+
f("header", Po, [
|
|
2091
2414
|
f("div", null, [
|
|
2092
|
-
|
|
2415
|
+
b(a(oe), { class: "nb-sheet__title" }, {
|
|
2093
2416
|
default: d(() => [
|
|
2094
2417
|
I(p(e.title), 1)
|
|
2095
2418
|
]),
|
|
2096
2419
|
_: 1
|
|
2097
2420
|
}),
|
|
2098
|
-
e.description ? (
|
|
2421
|
+
e.description ? (o(), y(a(sa), {
|
|
2099
2422
|
key: 0,
|
|
2100
2423
|
class: "nb-sheet__description"
|
|
2101
2424
|
}, {
|
|
@@ -2103,9 +2426,9 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2103
2426
|
I(p(e.description), 1)
|
|
2104
2427
|
]),
|
|
2105
2428
|
_: 1
|
|
2106
|
-
})) :
|
|
2429
|
+
})) : g("", !0)
|
|
2107
2430
|
]),
|
|
2108
|
-
|
|
2431
|
+
b(a(se), {
|
|
2109
2432
|
class: "nb-overlay-close",
|
|
2110
2433
|
"aria-label": "Close sheet"
|
|
2111
2434
|
}, {
|
|
@@ -2115,12 +2438,12 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2115
2438
|
_: 1
|
|
2116
2439
|
})
|
|
2117
2440
|
]),
|
|
2118
|
-
f("div",
|
|
2119
|
-
|
|
2441
|
+
f("div", Ro, [
|
|
2442
|
+
_(i.$slots, "default")
|
|
2120
2443
|
]),
|
|
2121
|
-
i.$slots.footer ? (
|
|
2122
|
-
|
|
2123
|
-
])) :
|
|
2444
|
+
i.$slots.footer ? (o(), u("footer", qo, [
|
|
2445
|
+
_(i.$slots, "footer")
|
|
2446
|
+
])) : g("", !0)
|
|
2124
2447
|
]),
|
|
2125
2448
|
_: 3
|
|
2126
2449
|
}, 16, ["class"])
|
|
@@ -2131,7 +2454,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2131
2454
|
_: 3
|
|
2132
2455
|
}, 8, ["open"]));
|
|
2133
2456
|
}
|
|
2134
|
-
}),
|
|
2457
|
+
}), Uo = { class: "nb-root nb-field" }, Go = ["for"], Eo = ["id"], zo = ["id"], Fo = /* @__PURE__ */ v({
|
|
2135
2458
|
inheritAttrs: !1,
|
|
2136
2459
|
__name: "NbSelect",
|
|
2137
2460
|
props: {
|
|
@@ -2146,18 +2469,18 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2146
2469
|
id: {}
|
|
2147
2470
|
},
|
|
2148
2471
|
emits: ["update:modelValue"],
|
|
2149
|
-
setup(e, { emit:
|
|
2150
|
-
const t = e, s =
|
|
2472
|
+
setup(e, { emit: n }) {
|
|
2473
|
+
const t = e, s = n, l = w("select", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
2151
2474
|
function m(i) {
|
|
2152
2475
|
typeof i == "string" && s("update:modelValue", i);
|
|
2153
2476
|
}
|
|
2154
|
-
return (i, r) => (
|
|
2155
|
-
e.label ? (
|
|
2477
|
+
return (i, r) => (o(), u("div", Uo, [
|
|
2478
|
+
e.label ? (o(), u("label", {
|
|
2156
2479
|
key: 0,
|
|
2157
2480
|
class: "nb-field__label",
|
|
2158
2481
|
for: a(l).inputId
|
|
2159
|
-
}, p(e.label), 9,
|
|
2160
|
-
|
|
2482
|
+
}, p(e.label), 9, Go)) : g("", !0),
|
|
2483
|
+
b(a(ia), {
|
|
2161
2484
|
"model-value": e.modelValue,
|
|
2162
2485
|
disabled: e.disabled,
|
|
2163
2486
|
required: e.required,
|
|
@@ -2165,15 +2488,15 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2165
2488
|
"onUpdate:modelValue": m
|
|
2166
2489
|
}, {
|
|
2167
2490
|
default: d(() => [
|
|
2168
|
-
|
|
2491
|
+
b(a(da), k(i.$attrs, {
|
|
2169
2492
|
id: a(l).inputId,
|
|
2170
2493
|
class: "nb-select__trigger",
|
|
2171
2494
|
"aria-invalid": e.error ? "true" : void 0,
|
|
2172
|
-
"aria-describedby":
|
|
2495
|
+
"aria-describedby": c.value
|
|
2173
2496
|
}), {
|
|
2174
2497
|
default: d(() => [
|
|
2175
|
-
|
|
2176
|
-
|
|
2498
|
+
b(a(ra), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
2499
|
+
b(a(ua), {
|
|
2177
2500
|
class: "nb-select__icon",
|
|
2178
2501
|
"aria-hidden": "true"
|
|
2179
2502
|
}, {
|
|
@@ -2190,15 +2513,15 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2190
2513
|
]),
|
|
2191
2514
|
_: 1
|
|
2192
2515
|
}, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
2193
|
-
|
|
2516
|
+
b(a(ca), null, {
|
|
2194
2517
|
default: d(() => [
|
|
2195
|
-
|
|
2518
|
+
b(a(ba), {
|
|
2196
2519
|
class: "nb-root nb-select__content",
|
|
2197
2520
|
position: "popper",
|
|
2198
2521
|
"side-offset": 5
|
|
2199
2522
|
}, {
|
|
2200
2523
|
default: d(() => [
|
|
2201
|
-
|
|
2524
|
+
b(a(fa), {
|
|
2202
2525
|
class: "nb-select__scroll-button",
|
|
2203
2526
|
"aria-label": "Scroll up"
|
|
2204
2527
|
}, {
|
|
@@ -2213,13 +2536,13 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2213
2536
|
])]),
|
|
2214
2537
|
_: 1
|
|
2215
2538
|
}),
|
|
2216
|
-
|
|
2539
|
+
b(a(ma), { class: "nb-select__viewport" }, {
|
|
2217
2540
|
default: d(() => [
|
|
2218
|
-
|
|
2541
|
+
_(i.$slots, "default")
|
|
2219
2542
|
]),
|
|
2220
2543
|
_: 3
|
|
2221
2544
|
}),
|
|
2222
|
-
|
|
2545
|
+
b(a(pa), {
|
|
2223
2546
|
class: "nb-select__scroll-button",
|
|
2224
2547
|
"aria-label": "Scroll down"
|
|
2225
2548
|
}, {
|
|
@@ -2243,39 +2566,39 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2243
2566
|
]),
|
|
2244
2567
|
_: 3
|
|
2245
2568
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
2246
|
-
e.hint ? (
|
|
2569
|
+
e.hint ? (o(), u("span", {
|
|
2247
2570
|
key: 1,
|
|
2248
2571
|
id: a(l).hintId,
|
|
2249
2572
|
class: "nb-field__hint"
|
|
2250
|
-
}, p(e.hint), 9,
|
|
2251
|
-
e.error ? (
|
|
2573
|
+
}, p(e.hint), 9, Eo)) : g("", !0),
|
|
2574
|
+
e.error ? (o(), u("span", {
|
|
2252
2575
|
key: 2,
|
|
2253
2576
|
id: a(l).errorId,
|
|
2254
2577
|
class: "nb-field__error"
|
|
2255
|
-
}, p(e.error), 9,
|
|
2578
|
+
}, p(e.error), 9, zo)) : g("", !0)
|
|
2256
2579
|
]));
|
|
2257
2580
|
}
|
|
2258
|
-
}),
|
|
2581
|
+
}), Ho = /* @__PURE__ */ v({
|
|
2259
2582
|
__name: "NbSelectItem",
|
|
2260
2583
|
props: {
|
|
2261
2584
|
value: {},
|
|
2262
2585
|
disabled: { type: Boolean, default: !1 }
|
|
2263
2586
|
},
|
|
2264
2587
|
setup(e) {
|
|
2265
|
-
return (
|
|
2588
|
+
return (n, t) => (o(), y(a(va), {
|
|
2266
2589
|
class: "nb-select__item",
|
|
2267
2590
|
value: e.value,
|
|
2268
2591
|
disabled: e.disabled,
|
|
2269
2592
|
"data-value": e.value
|
|
2270
2593
|
}, {
|
|
2271
2594
|
default: d(() => [
|
|
2272
|
-
|
|
2595
|
+
b(a(ha), null, {
|
|
2273
2596
|
default: d(() => [
|
|
2274
|
-
|
|
2597
|
+
_(n.$slots, "default")
|
|
2275
2598
|
]),
|
|
2276
2599
|
_: 3
|
|
2277
2600
|
}),
|
|
2278
|
-
|
|
2601
|
+
b(a(_a), {
|
|
2279
2602
|
class: "nb-select__indicator",
|
|
2280
2603
|
"aria-hidden": "true"
|
|
2281
2604
|
}, {
|
|
@@ -2293,26 +2616,26 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2293
2616
|
_: 3
|
|
2294
2617
|
}, 8, ["value", "disabled", "data-value"]));
|
|
2295
2618
|
}
|
|
2296
|
-
}),
|
|
2619
|
+
}), Ko = /* @__PURE__ */ v({
|
|
2297
2620
|
__name: "NbSeparator",
|
|
2298
2621
|
props: {
|
|
2299
2622
|
orientation: { default: "horizontal" },
|
|
2300
2623
|
decorative: { type: Boolean, default: !0 }
|
|
2301
2624
|
},
|
|
2302
2625
|
setup(e) {
|
|
2303
|
-
return (
|
|
2626
|
+
return (n, t) => (o(), y(a(ga), {
|
|
2304
2627
|
class: "nb-root nb-separator",
|
|
2305
2628
|
orientation: e.orientation,
|
|
2306
2629
|
decorative: e.decorative
|
|
2307
2630
|
}, null, 8, ["orientation", "decorative"]));
|
|
2308
2631
|
}
|
|
2309
|
-
}),
|
|
2632
|
+
}), jo = { class: "nb-root nb-field" }, Wo = {
|
|
2310
2633
|
key: 0,
|
|
2311
2634
|
class: "nb-slider__header"
|
|
2312
|
-
},
|
|
2635
|
+
}, Jo = {
|
|
2313
2636
|
key: 1,
|
|
2314
2637
|
class: "nb-slider__value"
|
|
2315
|
-
},
|
|
2638
|
+
}, Xo = ["id"], Qo = ["id"], Yo = /* @__PURE__ */ v({
|
|
2316
2639
|
inheritAttrs: !1,
|
|
2317
2640
|
__name: "NbSlider",
|
|
2318
2641
|
props: {
|
|
@@ -2330,24 +2653,24 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2330
2653
|
showValue: { type: Boolean, default: !0 }
|
|
2331
2654
|
},
|
|
2332
2655
|
emits: ["update:modelValue", "change"],
|
|
2333
|
-
setup(e, { emit:
|
|
2334
|
-
const t = e, s =
|
|
2656
|
+
setup(e, { emit: n }) {
|
|
2657
|
+
const t = e, s = n, l = w("slider", t.id), c = `${l.inputId}-label`, m = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
2335
2658
|
function i(h) {
|
|
2336
2659
|
h?.[0] !== void 0 && s("update:modelValue", h[0]);
|
|
2337
2660
|
}
|
|
2338
2661
|
function r(h) {
|
|
2339
2662
|
h[0] !== void 0 && s("change", h[0]);
|
|
2340
2663
|
}
|
|
2341
|
-
return (h, $) => (
|
|
2342
|
-
e.label || e.showValue ? (
|
|
2343
|
-
e.label ? (
|
|
2664
|
+
return (h, $) => (o(), u("div", jo, [
|
|
2665
|
+
e.label || e.showValue ? (o(), u("div", Wo, [
|
|
2666
|
+
e.label ? (o(), u("span", {
|
|
2344
2667
|
key: 0,
|
|
2345
|
-
id:
|
|
2668
|
+
id: c,
|
|
2346
2669
|
class: "nb-field__label"
|
|
2347
|
-
}, p(e.label), 1)) :
|
|
2348
|
-
e.showValue ? (
|
|
2349
|
-
])) :
|
|
2350
|
-
|
|
2670
|
+
}, p(e.label), 1)) : g("", !0),
|
|
2671
|
+
e.showValue ? (o(), u("output", Jo, p(e.modelValue), 1)) : g("", !0)
|
|
2672
|
+
])) : g("", !0),
|
|
2673
|
+
b(a(ya), {
|
|
2351
2674
|
class: "nb-slider",
|
|
2352
2675
|
"model-value": [e.modelValue],
|
|
2353
2676
|
min: e.min,
|
|
@@ -2360,35 +2683,35 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2360
2683
|
onValueCommit: r
|
|
2361
2684
|
}, {
|
|
2362
2685
|
default: d(() => [
|
|
2363
|
-
|
|
2686
|
+
b(a($a), { class: "nb-slider__track" }, {
|
|
2364
2687
|
default: d(() => [
|
|
2365
|
-
|
|
2688
|
+
b(a(Na), { class: "nb-slider__range" })
|
|
2366
2689
|
]),
|
|
2367
2690
|
_: 1
|
|
2368
2691
|
}),
|
|
2369
|
-
|
|
2692
|
+
b(a(Ia), k(h.$attrs, {
|
|
2370
2693
|
id: a(l).inputId,
|
|
2371
2694
|
class: "nb-slider__thumb",
|
|
2372
|
-
"aria-labelledby": e.label ?
|
|
2695
|
+
"aria-labelledby": e.label ? c : void 0,
|
|
2373
2696
|
"aria-invalid": e.error ? "true" : void 0,
|
|
2374
2697
|
"aria-describedby": m.value
|
|
2375
2698
|
}), null, 16, ["id", "aria-labelledby", "aria-invalid", "aria-describedby"])
|
|
2376
2699
|
]),
|
|
2377
2700
|
_: 1
|
|
2378
2701
|
}, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
|
|
2379
|
-
e.hint ? (
|
|
2702
|
+
e.hint ? (o(), u("span", {
|
|
2380
2703
|
key: 1,
|
|
2381
2704
|
id: a(l).hintId,
|
|
2382
2705
|
class: "nb-field__hint"
|
|
2383
|
-
}, p(e.hint), 9,
|
|
2384
|
-
e.error ? (
|
|
2706
|
+
}, p(e.hint), 9, Xo)) : g("", !0),
|
|
2707
|
+
e.error ? (o(), u("span", {
|
|
2385
2708
|
key: 2,
|
|
2386
2709
|
id: a(l).errorId,
|
|
2387
2710
|
class: "nb-field__error"
|
|
2388
|
-
}, p(e.error), 9,
|
|
2711
|
+
}, p(e.error), 9, Qo)) : g("", !0)
|
|
2389
2712
|
]));
|
|
2390
2713
|
}
|
|
2391
|
-
}),
|
|
2714
|
+
}), Zo = /* @__PURE__ */ v({
|
|
2392
2715
|
__name: "NbSkeleton",
|
|
2393
2716
|
props: {
|
|
2394
2717
|
width: { default: "100%" },
|
|
@@ -2396,32 +2719,32 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2396
2719
|
rounded: { type: Boolean, default: !1 }
|
|
2397
2720
|
},
|
|
2398
2721
|
setup(e) {
|
|
2399
|
-
const
|
|
2400
|
-
return (s, l) => (
|
|
2401
|
-
class:
|
|
2722
|
+
const n = e, t = N(() => ({ width: n.width, height: n.height }));
|
|
2723
|
+
return (s, l) => (o(), u("div", {
|
|
2724
|
+
class: C(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
|
|
2402
2725
|
style: q(t.value),
|
|
2403
2726
|
"aria-hidden": "true"
|
|
2404
2727
|
}, null, 6));
|
|
2405
2728
|
}
|
|
2406
|
-
}),
|
|
2729
|
+
}), es = ["aria-label"], ts = /* @__PURE__ */ v({
|
|
2407
2730
|
__name: "NbSpinner",
|
|
2408
2731
|
props: {
|
|
2409
2732
|
label: { default: "Loading" },
|
|
2410
2733
|
size: { default: "md" }
|
|
2411
2734
|
},
|
|
2412
2735
|
setup(e) {
|
|
2413
|
-
return (
|
|
2736
|
+
return (n, t) => (o(), u("span", {
|
|
2414
2737
|
class: "nb-root nb-spinner-wrap",
|
|
2415
2738
|
role: "status",
|
|
2416
2739
|
"aria-label": e.label
|
|
2417
2740
|
}, [
|
|
2418
2741
|
f("span", {
|
|
2419
|
-
class:
|
|
2742
|
+
class: C(["nb-spinner", `nb-spinner--${e.size}`]),
|
|
2420
2743
|
"aria-hidden": "true"
|
|
2421
2744
|
}, null, 2)
|
|
2422
|
-
], 8,
|
|
2745
|
+
], 8, es));
|
|
2423
2746
|
}
|
|
2424
|
-
}),
|
|
2747
|
+
}), as = /* @__PURE__ */ v({
|
|
2425
2748
|
__name: "NbStepper",
|
|
2426
2749
|
props: {
|
|
2427
2750
|
modelValue: {},
|
|
@@ -2431,12 +2754,12 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2431
2754
|
linear: { type: Boolean, default: !0 }
|
|
2432
2755
|
},
|
|
2433
2756
|
emits: ["update:modelValue"],
|
|
2434
|
-
setup(e, { emit:
|
|
2435
|
-
const t =
|
|
2757
|
+
setup(e, { emit: n }) {
|
|
2758
|
+
const t = n;
|
|
2436
2759
|
function s(l) {
|
|
2437
2760
|
l !== void 0 && t("update:modelValue", l);
|
|
2438
2761
|
}
|
|
2439
|
-
return (l,
|
|
2762
|
+
return (l, c) => (o(), y(a(ka), {
|
|
2440
2763
|
class: "nb-root nb-stepper",
|
|
2441
2764
|
"model-value": e.modelValue,
|
|
2442
2765
|
"default-value": e.defaultValue,
|
|
@@ -2446,12 +2769,12 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2446
2769
|
"onUpdate:modelValue": s
|
|
2447
2770
|
}, {
|
|
2448
2771
|
default: d(() => [
|
|
2449
|
-
|
|
2772
|
+
_(l.$slots, "default")
|
|
2450
2773
|
]),
|
|
2451
2774
|
_: 3
|
|
2452
2775
|
}, 8, ["model-value", "default-value", "aria-label", "orientation", "linear"]));
|
|
2453
2776
|
}
|
|
2454
|
-
}),
|
|
2777
|
+
}), ls = { class: "nb-stepper__copy" }, ns = /* @__PURE__ */ v({
|
|
2455
2778
|
__name: "NbStepperItem",
|
|
2456
2779
|
props: {
|
|
2457
2780
|
step: {},
|
|
@@ -2461,23 +2784,23 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2461
2784
|
completed: { type: Boolean }
|
|
2462
2785
|
},
|
|
2463
2786
|
setup(e) {
|
|
2464
|
-
return (
|
|
2787
|
+
return (n, t) => (o(), y(a(xa), {
|
|
2465
2788
|
class: "nb-stepper__item",
|
|
2466
2789
|
step: e.step,
|
|
2467
2790
|
disabled: e.disabled,
|
|
2468
2791
|
completed: e.completed
|
|
2469
2792
|
}, {
|
|
2470
2793
|
default: d(() => [
|
|
2471
|
-
|
|
2794
|
+
b(a(Ca), { class: "nb-stepper__trigger" }, {
|
|
2472
2795
|
default: d(() => [
|
|
2473
|
-
|
|
2796
|
+
b(a(Ba), { class: "nb-stepper__indicator" }, {
|
|
2474
2797
|
default: d(() => [
|
|
2475
2798
|
I(p(e.step), 1)
|
|
2476
2799
|
]),
|
|
2477
2800
|
_: 1
|
|
2478
2801
|
}),
|
|
2479
|
-
f("span",
|
|
2480
|
-
|
|
2802
|
+
f("span", ls, [
|
|
2803
|
+
b(a(Va), {
|
|
2481
2804
|
as: "span",
|
|
2482
2805
|
class: "nb-stepper__title"
|
|
2483
2806
|
}, {
|
|
@@ -2486,7 +2809,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2486
2809
|
]),
|
|
2487
2810
|
_: 1
|
|
2488
2811
|
}),
|
|
2489
|
-
|
|
2812
|
+
b(a(wa), {
|
|
2490
2813
|
as: "span",
|
|
2491
2814
|
class: "nb-stepper__description"
|
|
2492
2815
|
}, {
|
|
@@ -2503,7 +2826,7 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2503
2826
|
_: 1
|
|
2504
2827
|
}, 8, ["step", "disabled", "completed"]));
|
|
2505
2828
|
}
|
|
2506
|
-
}),
|
|
2829
|
+
}), os = ["for"], ss = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], is = { class: "nb-switch__content" }, ds = { class: "nb-switch__label" }, rs = ["id"], us = /* @__PURE__ */ v({
|
|
2507
2830
|
inheritAttrs: !1,
|
|
2508
2831
|
__name: "NbSwitch",
|
|
2509
2832
|
props: {
|
|
@@ -2514,13 +2837,13 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2514
2837
|
id: {}
|
|
2515
2838
|
},
|
|
2516
2839
|
emits: ["update:modelValue"],
|
|
2517
|
-
setup(e, { emit:
|
|
2518
|
-
const t = e, s =
|
|
2519
|
-
return (
|
|
2520
|
-
class:
|
|
2840
|
+
setup(e, { emit: n }) {
|
|
2841
|
+
const t = e, s = n, l = w("switch", t.id);
|
|
2842
|
+
return (c, m) => (o(), u("label", {
|
|
2843
|
+
class: C(["nb-root nb-switch", { "is-disabled": e.disabled }]),
|
|
2521
2844
|
for: a(l).inputId
|
|
2522
2845
|
}, [
|
|
2523
|
-
f("input", k(
|
|
2846
|
+
f("input", k(c.$attrs, {
|
|
2524
2847
|
id: a(l).inputId,
|
|
2525
2848
|
class: "nb-switch__input",
|
|
2526
2849
|
type: "checkbox",
|
|
@@ -2530,24 +2853,24 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2530
2853
|
"aria-checked": e.modelValue ? "true" : "false",
|
|
2531
2854
|
"aria-describedby": e.description ? a(l).hintId : void 0,
|
|
2532
2855
|
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
2533
|
-
}), null, 16,
|
|
2856
|
+
}), null, 16, ss),
|
|
2534
2857
|
m[1] || (m[1] = f("span", {
|
|
2535
2858
|
class: "nb-switch__track",
|
|
2536
2859
|
"aria-hidden": "true"
|
|
2537
2860
|
}, [
|
|
2538
2861
|
f("span", { class: "nb-switch__thumb" })
|
|
2539
2862
|
], -1)),
|
|
2540
|
-
f("span",
|
|
2541
|
-
f("span",
|
|
2542
|
-
e.description ? (
|
|
2863
|
+
f("span", is, [
|
|
2864
|
+
f("span", ds, p(e.label), 1),
|
|
2865
|
+
e.description ? (o(), u("span", {
|
|
2543
2866
|
key: 0,
|
|
2544
2867
|
id: a(l).hintId,
|
|
2545
2868
|
class: "nb-switch__description"
|
|
2546
|
-
}, p(e.description), 9,
|
|
2869
|
+
}, p(e.description), 9, rs)) : g("", !0)
|
|
2547
2870
|
])
|
|
2548
|
-
], 10,
|
|
2871
|
+
], 10, os));
|
|
2549
2872
|
}
|
|
2550
|
-
}),
|
|
2873
|
+
}), cs = { class: "nb-root nb-field" }, bs = ["for"], fs = ["id"], ms = ["id"], ps = /* @__PURE__ */ v({
|
|
2551
2874
|
inheritAttrs: !1,
|
|
2552
2875
|
__name: "NbTagsInput",
|
|
2553
2876
|
props: {
|
|
@@ -2563,15 +2886,15 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2563
2886
|
required: { type: Boolean, default: !1 }
|
|
2564
2887
|
},
|
|
2565
2888
|
emits: ["update:modelValue"],
|
|
2566
|
-
setup(e, { emit:
|
|
2567
|
-
const t = e, s =
|
|
2568
|
-
return (m, i) => (
|
|
2569
|
-
e.label ? (
|
|
2889
|
+
setup(e, { emit: n }) {
|
|
2890
|
+
const t = e, s = n, l = w("tags-input", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
2891
|
+
return (m, i) => (o(), u("div", cs, [
|
|
2892
|
+
e.label ? (o(), u("label", {
|
|
2570
2893
|
key: 0,
|
|
2571
2894
|
class: "nb-field__label",
|
|
2572
2895
|
for: a(l).inputId
|
|
2573
|
-
}, p(e.label), 9,
|
|
2574
|
-
|
|
2896
|
+
}, p(e.label), 9, bs)) : g("", !0),
|
|
2897
|
+
b(a(Sa), {
|
|
2575
2898
|
class: "nb-tags-input",
|
|
2576
2899
|
"model-value": e.modelValue,
|
|
2577
2900
|
name: e.name ?? (e.required ? a(l).inputId : void 0),
|
|
@@ -2582,14 +2905,14 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2582
2905
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => s("update:modelValue", r))
|
|
2583
2906
|
}, {
|
|
2584
2907
|
default: d(() => [
|
|
2585
|
-
(
|
|
2908
|
+
(o(!0), u(V, null, S(e.modelValue, (r) => (o(), y(a(Ma), {
|
|
2586
2909
|
key: r,
|
|
2587
2910
|
class: "nb-tags-input__tag",
|
|
2588
2911
|
value: r
|
|
2589
2912
|
}, {
|
|
2590
2913
|
default: d(() => [
|
|
2591
|
-
|
|
2592
|
-
|
|
2914
|
+
b(a(Ta)),
|
|
2915
|
+
b(a(Aa), {
|
|
2593
2916
|
class: "nb-tags-input__remove",
|
|
2594
2917
|
"aria-label": `Remove ${r}`,
|
|
2595
2918
|
"aria-labelledby": void 0
|
|
@@ -2602,34 +2925,34 @@ const hl = /* @__PURE__ */ fl(ml, [["render", vl]]), _l = /* @__PURE__ */ v({
|
|
|
2602
2925
|
]),
|
|
2603
2926
|
_: 2
|
|
2604
2927
|
}, 1032, ["value"]))), 128)),
|
|
2605
|
-
|
|
2928
|
+
b(a(Da), k(m.$attrs, {
|
|
2606
2929
|
class: "nb-tags-input__input",
|
|
2607
2930
|
placeholder: e.placeholder,
|
|
2608
2931
|
"aria-invalid": e.error ? "true" : void 0,
|
|
2609
|
-
"aria-describedby":
|
|
2932
|
+
"aria-describedby": c.value
|
|
2610
2933
|
}), null, 16, ["placeholder", "aria-invalid", "aria-describedby"])
|
|
2611
2934
|
]),
|
|
2612
2935
|
_: 1
|
|
2613
2936
|
}, 8, ["model-value", "name", "id", "max", "disabled", "required"]),
|
|
2614
|
-
e.hint ? (
|
|
2937
|
+
e.hint ? (o(), u("span", {
|
|
2615
2938
|
key: 1,
|
|
2616
2939
|
id: a(l).hintId,
|
|
2617
2940
|
class: "nb-field__hint"
|
|
2618
|
-
}, p(e.hint), 9,
|
|
2619
|
-
e.error ? (
|
|
2941
|
+
}, p(e.hint), 9, fs)) : g("", !0),
|
|
2942
|
+
e.error ? (o(), u("span", {
|
|
2620
2943
|
key: 2,
|
|
2621
2944
|
id: a(l).errorId,
|
|
2622
2945
|
class: "nb-field__error"
|
|
2623
|
-
}, p(e.error), 9,
|
|
2946
|
+
}, p(e.error), 9, ms)) : g("", !0)
|
|
2624
2947
|
]));
|
|
2625
2948
|
}
|
|
2626
|
-
}),
|
|
2949
|
+
}), ce = /* @__PURE__ */ Symbol("nb-tabs");
|
|
2627
2950
|
function L() {
|
|
2628
|
-
const e =
|
|
2951
|
+
const e = he(ce);
|
|
2629
2952
|
if (!e) throw new Error("Tabs components must be used inside NbTabs");
|
|
2630
2953
|
return e;
|
|
2631
2954
|
}
|
|
2632
|
-
const
|
|
2955
|
+
const vs = ["data-orientation"], hs = /* @__PURE__ */ v({
|
|
2633
2956
|
__name: "NbTabs",
|
|
2634
2957
|
props: {
|
|
2635
2958
|
modelValue: {},
|
|
@@ -2637,32 +2960,32 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2637
2960
|
orientation: { default: "horizontal" }
|
|
2638
2961
|
},
|
|
2639
2962
|
emits: ["update:modelValue"],
|
|
2640
|
-
setup(e, { emit:
|
|
2641
|
-
const t = e, s =
|
|
2963
|
+
setup(e, { emit: n }) {
|
|
2964
|
+
const t = e, s = n, l = A("tabs"), c = x(t.defaultValue), m = N(() => t.modelValue ?? c.value), i = N(() => t.orientation), r = ($) => encodeURIComponent($);
|
|
2642
2965
|
function h($) {
|
|
2643
|
-
t.modelValue === void 0 && (
|
|
2966
|
+
t.modelValue === void 0 && (c.value = $), s("update:modelValue", $);
|
|
2644
2967
|
}
|
|
2645
|
-
return
|
|
2968
|
+
return _e(ce, {
|
|
2646
2969
|
activeValue: m,
|
|
2647
2970
|
orientation: i,
|
|
2648
2971
|
select: h,
|
|
2649
2972
|
triggerId: ($) => `${l}-tab-${r($)}`,
|
|
2650
2973
|
panelId: ($) => `${l}-panel-${r($)}`
|
|
2651
|
-
}), ($, O) => (
|
|
2652
|
-
class:
|
|
2974
|
+
}), ($, O) => (o(), u("div", {
|
|
2975
|
+
class: C(["nb-root nb-tabs", `nb-tabs--${i.value}`]),
|
|
2653
2976
|
"data-orientation": i.value
|
|
2654
2977
|
}, [
|
|
2655
|
-
|
|
2656
|
-
], 10,
|
|
2978
|
+
_($.$slots, "default")
|
|
2979
|
+
], 10, vs));
|
|
2657
2980
|
}
|
|
2658
|
-
}),
|
|
2981
|
+
}), _s = ["id", "aria-labelledby", "hidden"], gs = /* @__PURE__ */ v({
|
|
2659
2982
|
__name: "NbTabsContent",
|
|
2660
2983
|
props: {
|
|
2661
2984
|
value: {}
|
|
2662
2985
|
},
|
|
2663
2986
|
setup(e) {
|
|
2664
|
-
const
|
|
2665
|
-
return (l,
|
|
2987
|
+
const n = e, t = L(), s = N(() => t.activeValue.value === n.value);
|
|
2988
|
+
return (l, c) => ge((o(), u("div", {
|
|
2666
2989
|
class: "nb-tabs__content",
|
|
2667
2990
|
role: "tabpanel",
|
|
2668
2991
|
id: a(t).panelId(e.value),
|
|
@@ -2670,43 +2993,43 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2670
2993
|
hidden: !s.value,
|
|
2671
2994
|
tabindex: "0"
|
|
2672
2995
|
}, [
|
|
2673
|
-
|
|
2674
|
-
], 8,
|
|
2675
|
-
[
|
|
2996
|
+
_(l.$slots, "default")
|
|
2997
|
+
], 8, _s)), [
|
|
2998
|
+
[ye, s.value]
|
|
2676
2999
|
]);
|
|
2677
3000
|
}
|
|
2678
|
-
}),
|
|
3001
|
+
}), ys = ["aria-orientation"], $s = /* @__PURE__ */ v({
|
|
2679
3002
|
__name: "NbTabsList",
|
|
2680
3003
|
setup(e) {
|
|
2681
|
-
const { orientation:
|
|
3004
|
+
const { orientation: n } = L();
|
|
2682
3005
|
function t(s) {
|
|
2683
|
-
const l =
|
|
2684
|
-
if (![l,
|
|
3006
|
+
const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", c = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
|
|
3007
|
+
if (![l, c, "Home", "End"].includes(s.key)) return;
|
|
2685
3008
|
const m = s.currentTarget, i = Array.from(m.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), h = r ? i.indexOf(r) : -1;
|
|
2686
3009
|
if (!i.length || h < 0) return;
|
|
2687
3010
|
s.preventDefault();
|
|
2688
|
-
const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (h + (s.key ===
|
|
3011
|
+
const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (h + (s.key === c ? 1 : -1) + i.length) % i.length;
|
|
2689
3012
|
i[$]?.focus(), i[$]?.click();
|
|
2690
3013
|
}
|
|
2691
|
-
return (s, l) => (
|
|
3014
|
+
return (s, l) => (o(), u("div", {
|
|
2692
3015
|
class: "nb-tabs__list",
|
|
2693
3016
|
role: "tablist",
|
|
2694
|
-
"aria-orientation": a(
|
|
3017
|
+
"aria-orientation": a(n),
|
|
2695
3018
|
onKeydown: t
|
|
2696
3019
|
}, [
|
|
2697
|
-
|
|
2698
|
-
], 40,
|
|
3020
|
+
_(s.$slots, "default")
|
|
3021
|
+
], 40, ys));
|
|
2699
3022
|
}
|
|
2700
|
-
}),
|
|
3023
|
+
}), Ns = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], Is = /* @__PURE__ */ v({
|
|
2701
3024
|
__name: "NbTabsTrigger",
|
|
2702
3025
|
props: {
|
|
2703
3026
|
value: {},
|
|
2704
3027
|
disabled: { type: Boolean, default: !1 }
|
|
2705
3028
|
},
|
|
2706
3029
|
setup(e) {
|
|
2707
|
-
const
|
|
2708
|
-
return (l,
|
|
2709
|
-
class:
|
|
3030
|
+
const n = e, t = L(), s = N(() => t.activeValue.value === n.value);
|
|
3031
|
+
return (l, c) => (o(), u("button", {
|
|
3032
|
+
class: C(["nb-tabs__trigger", { "is-active": s.value }]),
|
|
2710
3033
|
id: a(t).triggerId(e.value),
|
|
2711
3034
|
type: "button",
|
|
2712
3035
|
role: "tab",
|
|
@@ -2715,12 +3038,12 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2715
3038
|
tabindex: s.value ? 0 : -1,
|
|
2716
3039
|
disabled: e.disabled,
|
|
2717
3040
|
"data-active": s.value ? "" : void 0,
|
|
2718
|
-
onClick:
|
|
3041
|
+
onClick: c[0] || (c[0] = (m) => a(t).select(e.value))
|
|
2719
3042
|
}, [
|
|
2720
|
-
|
|
2721
|
-
], 10,
|
|
3043
|
+
_(l.$slots, "default")
|
|
3044
|
+
], 10, Ns));
|
|
2722
3045
|
}
|
|
2723
|
-
}),
|
|
3046
|
+
}), ks = { class: "nb-root nb-field" }, xs = ["for"], Cs = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], Bs = ["id"], Vs = ["id"], ws = /* @__PURE__ */ v({
|
|
2724
3047
|
inheritAttrs: !1,
|
|
2725
3048
|
__name: "NbTextarea",
|
|
2726
3049
|
props: {
|
|
@@ -2732,50 +3055,50 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2732
3055
|
id: {}
|
|
2733
3056
|
},
|
|
2734
3057
|
emits: ["update:modelValue"],
|
|
2735
|
-
setup(e, { emit:
|
|
2736
|
-
const t = e, s =
|
|
2737
|
-
return (m, i) => (
|
|
2738
|
-
e.label ? (
|
|
3058
|
+
setup(e, { emit: n }) {
|
|
3059
|
+
const t = e, s = n, l = w("textarea", t.id), c = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
3060
|
+
return (m, i) => (o(), u("div", ks, [
|
|
3061
|
+
e.label ? (o(), u("label", {
|
|
2739
3062
|
key: 0,
|
|
2740
3063
|
class: "nb-field__label",
|
|
2741
3064
|
for: a(l).inputId
|
|
2742
|
-
}, p(e.label), 9,
|
|
3065
|
+
}, p(e.label), 9, xs)) : g("", !0),
|
|
2743
3066
|
f("textarea", k(m.$attrs, {
|
|
2744
3067
|
id: a(l).inputId,
|
|
2745
3068
|
class: "nb-field__control nb-field__control--textarea",
|
|
2746
3069
|
value: e.modelValue,
|
|
2747
3070
|
disabled: e.disabled,
|
|
2748
3071
|
"aria-invalid": e.error ? "true" : void 0,
|
|
2749
|
-
"aria-describedby":
|
|
3072
|
+
"aria-describedby": c.value,
|
|
2750
3073
|
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
2751
|
-
}), null, 16,
|
|
2752
|
-
e.hint ? (
|
|
3074
|
+
}), null, 16, Cs),
|
|
3075
|
+
e.hint ? (o(), u("span", {
|
|
2753
3076
|
key: 1,
|
|
2754
3077
|
id: a(l).hintId,
|
|
2755
3078
|
class: "nb-field__hint"
|
|
2756
|
-
}, p(e.hint), 9,
|
|
2757
|
-
e.error ? (
|
|
3079
|
+
}, p(e.hint), 9, Bs)) : g("", !0),
|
|
3080
|
+
e.error ? (o(), u("span", {
|
|
2758
3081
|
key: 2,
|
|
2759
3082
|
id: a(l).errorId,
|
|
2760
3083
|
class: "nb-field__error"
|
|
2761
|
-
}, p(e.error), 9,
|
|
3084
|
+
}, p(e.error), 9, Vs)) : g("", !0)
|
|
2762
3085
|
]));
|
|
2763
3086
|
}
|
|
2764
|
-
}),
|
|
3087
|
+
}), Ss = { class: "nb-root nb-table-wrap" }, Ms = { key: 0 }, Ts = /* @__PURE__ */ v({
|
|
2765
3088
|
inheritAttrs: !1,
|
|
2766
3089
|
__name: "NbTable",
|
|
2767
3090
|
props: {
|
|
2768
3091
|
caption: {}
|
|
2769
3092
|
},
|
|
2770
3093
|
setup(e) {
|
|
2771
|
-
return (
|
|
2772
|
-
f("table", k(
|
|
2773
|
-
e.caption ? (
|
|
2774
|
-
|
|
3094
|
+
return (n, t) => (o(), u("div", Ss, [
|
|
3095
|
+
f("table", k(n.$attrs, { class: "nb-table" }), [
|
|
3096
|
+
e.caption ? (o(), u("caption", Ms, p(e.caption), 1)) : g("", !0),
|
|
3097
|
+
_(n.$slots, "default")
|
|
2775
3098
|
], 16)
|
|
2776
3099
|
]));
|
|
2777
3100
|
}
|
|
2778
|
-
}),
|
|
3101
|
+
}), As = { class: "nb-toast__content" }, Ds = /* @__PURE__ */ v({
|
|
2779
3102
|
__name: "NbToast",
|
|
2780
3103
|
props: {
|
|
2781
3104
|
open: { type: Boolean, default: void 0 },
|
|
@@ -2786,36 +3109,36 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2786
3109
|
duration: { default: 5e3 }
|
|
2787
3110
|
},
|
|
2788
3111
|
emits: ["update:open"],
|
|
2789
|
-
setup(e, { emit:
|
|
2790
|
-
const t = e, s =
|
|
2791
|
-
|
|
3112
|
+
setup(e, { emit: n }) {
|
|
3113
|
+
const t = e, s = n, l = x(t.open ?? t.defaultOpen), c = N(() => t.open ?? l.value);
|
|
3114
|
+
M(() => t.open, (i) => {
|
|
2792
3115
|
i !== void 0 && (l.value = i);
|
|
2793
3116
|
});
|
|
2794
3117
|
function m(i) {
|
|
2795
3118
|
l.value = i, s("update:open", i);
|
|
2796
3119
|
}
|
|
2797
|
-
return (i, r) => (
|
|
3120
|
+
return (i, r) => (o(), y(a(Oa), {
|
|
2798
3121
|
label: "Notification",
|
|
2799
3122
|
duration: e.duration
|
|
2800
3123
|
}, {
|
|
2801
3124
|
default: d(() => [
|
|
2802
|
-
|
|
2803
|
-
class:
|
|
2804
|
-
open:
|
|
3125
|
+
b(a(Pa), {
|
|
3126
|
+
class: C(["nb-root nb-toast", `nb-toast--${e.tone}`]),
|
|
3127
|
+
open: c.value,
|
|
2805
3128
|
"default-open": e.defaultOpen,
|
|
2806
3129
|
type: "foreground",
|
|
2807
3130
|
role: "status",
|
|
2808
3131
|
"onUpdate:open": m
|
|
2809
3132
|
}, {
|
|
2810
3133
|
default: d(() => [
|
|
2811
|
-
f("div",
|
|
2812
|
-
|
|
3134
|
+
f("div", As, [
|
|
3135
|
+
b(a(Ra), { class: "nb-toast__title" }, {
|
|
2813
3136
|
default: d(() => [
|
|
2814
3137
|
I(p(e.title), 1)
|
|
2815
3138
|
]),
|
|
2816
3139
|
_: 1
|
|
2817
3140
|
}),
|
|
2818
|
-
e.description ? (
|
|
3141
|
+
e.description ? (o(), y(a(qa), {
|
|
2819
3142
|
key: 0,
|
|
2820
3143
|
class: "nb-toast__description"
|
|
2821
3144
|
}, {
|
|
@@ -2823,10 +3146,10 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2823
3146
|
I(p(e.description), 1)
|
|
2824
3147
|
]),
|
|
2825
3148
|
_: 1
|
|
2826
|
-
})) :
|
|
2827
|
-
|
|
3149
|
+
})) : g("", !0),
|
|
3150
|
+
_(i.$slots, "default")
|
|
2828
3151
|
]),
|
|
2829
|
-
|
|
3152
|
+
b(a(La), {
|
|
2830
3153
|
class: "nb-overlay-close",
|
|
2831
3154
|
"aria-label": "Dismiss notification"
|
|
2832
3155
|
}, {
|
|
@@ -2838,28 +3161,28 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2838
3161
|
]),
|
|
2839
3162
|
_: 3
|
|
2840
3163
|
}, 8, ["class", "open", "default-open"]),
|
|
2841
|
-
|
|
3164
|
+
b(a(Ua), { class: "nb-root nb-toast-viewport" })
|
|
2842
3165
|
]),
|
|
2843
3166
|
_: 3
|
|
2844
3167
|
}, 8, ["duration"]));
|
|
2845
3168
|
}
|
|
2846
|
-
}),
|
|
3169
|
+
}), Os = ["aria-label"], Ps = /* @__PURE__ */ v({
|
|
2847
3170
|
__name: "NbTimeline",
|
|
2848
3171
|
props: {
|
|
2849
3172
|
label: {}
|
|
2850
3173
|
},
|
|
2851
3174
|
setup(e) {
|
|
2852
|
-
return (
|
|
3175
|
+
return (n, t) => (o(), u("ol", {
|
|
2853
3176
|
class: "nb-root nb-timeline",
|
|
2854
3177
|
"aria-label": e.label
|
|
2855
3178
|
}, [
|
|
2856
|
-
|
|
2857
|
-
], 8,
|
|
3179
|
+
_(n.$slots, "default")
|
|
3180
|
+
], 8, Os));
|
|
2858
3181
|
}
|
|
2859
|
-
}),
|
|
3182
|
+
}), Rs = { class: "nb-timeline__item" }, qs = { class: "nb-timeline__card" }, Ls = { class: "nb-timeline__heading" }, Us = ["datetime"], Gs = {
|
|
2860
3183
|
key: 0,
|
|
2861
3184
|
class: "nb-timeline__body"
|
|
2862
|
-
},
|
|
3185
|
+
}, Es = /* @__PURE__ */ v({
|
|
2863
3186
|
__name: "NbTimelineItem",
|
|
2864
3187
|
props: {
|
|
2865
3188
|
title: {},
|
|
@@ -2867,22 +3190,22 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2867
3190
|
datetime: {}
|
|
2868
3191
|
},
|
|
2869
3192
|
setup(e) {
|
|
2870
|
-
return (
|
|
2871
|
-
f("div",
|
|
2872
|
-
f("div",
|
|
3193
|
+
return (n, t) => (o(), u("li", Rs, [
|
|
3194
|
+
f("div", qs, [
|
|
3195
|
+
f("div", Ls, [
|
|
2873
3196
|
f("strong", null, p(e.title), 1),
|
|
2874
|
-
e.date ? (
|
|
3197
|
+
e.date ? (o(), u("time", {
|
|
2875
3198
|
key: 0,
|
|
2876
3199
|
datetime: e.datetime
|
|
2877
|
-
}, p(e.date), 9,
|
|
3200
|
+
}, p(e.date), 9, Us)) : g("", !0)
|
|
2878
3201
|
]),
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
])) :
|
|
3202
|
+
n.$slots.default ? (o(), u("div", Gs, [
|
|
3203
|
+
_(n.$slots, "default")
|
|
3204
|
+
])) : g("", !0)
|
|
2882
3205
|
])
|
|
2883
3206
|
]));
|
|
2884
3207
|
}
|
|
2885
|
-
}),
|
|
3208
|
+
}), zs = /* @__PURE__ */ v({
|
|
2886
3209
|
inheritAttrs: !1,
|
|
2887
3210
|
__name: "NbToggle",
|
|
2888
3211
|
props: {
|
|
@@ -2894,9 +3217,9 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2894
3217
|
size: { default: "md" }
|
|
2895
3218
|
},
|
|
2896
3219
|
emits: ["update:modelValue"],
|
|
2897
|
-
setup(e, { emit:
|
|
2898
|
-
const t = e, s =
|
|
2899
|
-
return (
|
|
3220
|
+
setup(e, { emit: n }) {
|
|
3221
|
+
const t = e, s = n, l = N(() => P(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
|
|
3222
|
+
return (c, m) => (o(), y(a(Ga), k(c.$attrs, {
|
|
2900
3223
|
class: ["nb-root nb-toggle", l.value],
|
|
2901
3224
|
"model-value": e.modelValue,
|
|
2902
3225
|
"default-value": e.defaultValue,
|
|
@@ -2905,12 +3228,12 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2905
3228
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => s("update:modelValue", i))
|
|
2906
3229
|
}), {
|
|
2907
3230
|
default: d(() => [
|
|
2908
|
-
|
|
3231
|
+
_(c.$slots, "default")
|
|
2909
3232
|
]),
|
|
2910
3233
|
_: 3
|
|
2911
3234
|
}, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
|
|
2912
3235
|
}
|
|
2913
|
-
}),
|
|
3236
|
+
}), Fs = { class: "nb-root nb-field" }, Hs = ["id"], Ks = ["id"], js = /* @__PURE__ */ v({
|
|
2914
3237
|
inheritAttrs: !1,
|
|
2915
3238
|
__name: "NbToggleGroup",
|
|
2916
3239
|
props: {
|
|
@@ -2926,18 +3249,18 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2926
3249
|
id: {}
|
|
2927
3250
|
},
|
|
2928
3251
|
emits: ["update:modelValue"],
|
|
2929
|
-
setup(e, { emit:
|
|
2930
|
-
const t = e, s =
|
|
3252
|
+
setup(e, { emit: n }) {
|
|
3253
|
+
const t = e, s = n, l = w("toggle-group", t.id), c = `${l.inputId}-label`, m = N(() => T(t.hint, t.error, l.hintId, l.errorId));
|
|
2931
3254
|
function i(r) {
|
|
2932
3255
|
(typeof r == "string" || Array.isArray(r) && r.every((h) => typeof h == "string")) && s("update:modelValue", r);
|
|
2933
3256
|
}
|
|
2934
|
-
return (r, h) => (
|
|
2935
|
-
e.label ? (
|
|
3257
|
+
return (r, h) => (o(), u("div", Fs, [
|
|
3258
|
+
e.label ? (o(), u("span", {
|
|
2936
3259
|
key: 0,
|
|
2937
|
-
id:
|
|
3260
|
+
id: c,
|
|
2938
3261
|
class: "nb-field__label"
|
|
2939
|
-
}, p(e.label), 1)) :
|
|
2940
|
-
|
|
3262
|
+
}, p(e.label), 1)) : g("", !0),
|
|
3263
|
+
b(a(Ea), k(r.$attrs, {
|
|
2941
3264
|
id: a(l).inputId,
|
|
2942
3265
|
class: "nb-toggle-group",
|
|
2943
3266
|
"model-value": e.modelValue,
|
|
@@ -2947,29 +3270,29 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2947
3270
|
required: e.required,
|
|
2948
3271
|
name: e.name,
|
|
2949
3272
|
"data-orientation": e.orientation,
|
|
2950
|
-
"aria-labelledby": e.label ?
|
|
3273
|
+
"aria-labelledby": e.label ? c : void 0,
|
|
2951
3274
|
"aria-invalid": e.error ? "true" : void 0,
|
|
2952
3275
|
"aria-describedby": m.value,
|
|
2953
3276
|
"onUpdate:modelValue": i
|
|
2954
3277
|
}), {
|
|
2955
3278
|
default: d(() => [
|
|
2956
|
-
|
|
3279
|
+
_(r.$slots, "default")
|
|
2957
3280
|
]),
|
|
2958
3281
|
_: 3
|
|
2959
3282
|
}, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
|
|
2960
|
-
e.hint ? (
|
|
3283
|
+
e.hint ? (o(), u("span", {
|
|
2961
3284
|
key: 1,
|
|
2962
3285
|
id: a(l).hintId,
|
|
2963
3286
|
class: "nb-field__hint"
|
|
2964
|
-
}, p(e.hint), 9,
|
|
2965
|
-
e.error ? (
|
|
3287
|
+
}, p(e.hint), 9, Hs)) : g("", !0),
|
|
3288
|
+
e.error ? (o(), u("span", {
|
|
2966
3289
|
key: 2,
|
|
2967
3290
|
id: a(l).errorId,
|
|
2968
3291
|
class: "nb-field__error"
|
|
2969
|
-
}, p(e.error), 9,
|
|
3292
|
+
}, p(e.error), 9, Ks)) : g("", !0)
|
|
2970
3293
|
]));
|
|
2971
3294
|
}
|
|
2972
|
-
}),
|
|
3295
|
+
}), Ws = /* @__PURE__ */ v({
|
|
2973
3296
|
inheritAttrs: !1,
|
|
2974
3297
|
__name: "NbToggleGroupItem",
|
|
2975
3298
|
props: {
|
|
@@ -2977,204 +3300,224 @@ const Co = ["data-orientation"], To = /* @__PURE__ */ v({
|
|
|
2977
3300
|
disabled: { type: Boolean, default: !1 }
|
|
2978
3301
|
},
|
|
2979
3302
|
setup(e) {
|
|
2980
|
-
return (
|
|
3303
|
+
return (n, t) => (o(), y(a(za), k(n.$attrs, {
|
|
2981
3304
|
class: "nb-toggle-group__item",
|
|
2982
3305
|
value: e.value,
|
|
2983
3306
|
disabled: e.disabled
|
|
2984
3307
|
}), {
|
|
2985
3308
|
default: d(() => [
|
|
2986
|
-
|
|
3309
|
+
_(n.$slots, "default")
|
|
2987
3310
|
]),
|
|
2988
3311
|
_: 3
|
|
2989
3312
|
}, 16, ["value", "disabled"]));
|
|
2990
3313
|
}
|
|
2991
|
-
}),
|
|
3314
|
+
}), Js = ["aria-describedby"], Xs = ["id", "hidden"], Qs = /* @__PURE__ */ v({
|
|
2992
3315
|
__name: "NbTooltip",
|
|
2993
3316
|
props: {
|
|
2994
3317
|
content: {}
|
|
2995
3318
|
},
|
|
2996
3319
|
setup(e) {
|
|
2997
|
-
const
|
|
3320
|
+
const n = e, t = x(!1), s = A("tooltip");
|
|
2998
3321
|
function l() {
|
|
2999
3322
|
t.value = !0;
|
|
3000
3323
|
}
|
|
3001
|
-
function
|
|
3324
|
+
function c() {
|
|
3002
3325
|
t.value = !1;
|
|
3003
3326
|
}
|
|
3004
3327
|
function m(i) {
|
|
3005
|
-
i.key === "Escape" &&
|
|
3328
|
+
i.key === "Escape" && c();
|
|
3006
3329
|
}
|
|
3007
|
-
return (i, r) => (
|
|
3330
|
+
return (i, r) => (o(), u("span", {
|
|
3008
3331
|
class: "nb-root nb-tooltip",
|
|
3009
3332
|
onMouseenter: l,
|
|
3010
|
-
onMouseleave:
|
|
3333
|
+
onMouseleave: c
|
|
3011
3334
|
}, [
|
|
3012
3335
|
f("span", {
|
|
3013
3336
|
class: "nb-tooltip__trigger",
|
|
3014
3337
|
tabindex: "0",
|
|
3015
3338
|
"aria-describedby": a(s),
|
|
3016
3339
|
onFocus: l,
|
|
3017
|
-
onBlur:
|
|
3340
|
+
onBlur: c,
|
|
3018
3341
|
onKeydown: m
|
|
3019
3342
|
}, [
|
|
3020
|
-
|
|
3021
|
-
], 40,
|
|
3343
|
+
_(i.$slots, "default")
|
|
3344
|
+
], 40, Js),
|
|
3022
3345
|
f("span", {
|
|
3023
3346
|
id: a(s),
|
|
3024
3347
|
class: "nb-tooltip__content",
|
|
3025
3348
|
role: "tooltip",
|
|
3026
3349
|
hidden: !t.value
|
|
3027
3350
|
}, [
|
|
3028
|
-
|
|
3029
|
-
I(p(
|
|
3351
|
+
_(i.$slots, "content", {}, () => [
|
|
3352
|
+
I(p(n.content), 1)
|
|
3030
3353
|
])
|
|
3031
|
-
], 8,
|
|
3354
|
+
], 8, Xs)
|
|
3032
3355
|
], 32));
|
|
3033
3356
|
}
|
|
3034
|
-
}),
|
|
3035
|
-
NbAccordion:
|
|
3036
|
-
NbAccordionItem:
|
|
3037
|
-
NbAlert:
|
|
3038
|
-
NbAlertDialog:
|
|
3039
|
-
NbAspectRatio:
|
|
3040
|
-
NbAvatar:
|
|
3041
|
-
NbBadge:
|
|
3042
|
-
NbBreadcrumbs:
|
|
3043
|
-
NbButton:
|
|
3044
|
-
NbButtonGroup:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3357
|
+
}), ei = Fa({
|
|
3358
|
+
NbAccordion: Ha,
|
|
3359
|
+
NbAccordionItem: ja,
|
|
3360
|
+
NbAlert: Jl,
|
|
3361
|
+
NbAlertDialog: Ql,
|
|
3362
|
+
NbAspectRatio: Wa,
|
|
3363
|
+
NbAvatar: Xa,
|
|
3364
|
+
NbBadge: Ja,
|
|
3365
|
+
NbBreadcrumbs: tl,
|
|
3366
|
+
NbButton: de,
|
|
3367
|
+
NbButtonGroup: ol,
|
|
3368
|
+
NbCarousel: cl,
|
|
3369
|
+
NbCarouselSlide: fl,
|
|
3370
|
+
NbCard: hl,
|
|
3371
|
+
NbCheckbox: $l,
|
|
3372
|
+
NbCollapsible: Il,
|
|
3373
|
+
NbCopyButton: xl,
|
|
3374
|
+
NbCombobox: Sl,
|
|
3375
|
+
NbCommand: Al,
|
|
3376
|
+
NbContextMenu: Dl,
|
|
3377
|
+
NbContextMenuCheckboxItem: Ol,
|
|
3378
|
+
NbContextMenuItem: Pl,
|
|
3379
|
+
NbContextMenuLabel: Rl,
|
|
3380
|
+
NbContextMenuRadioGroup: ql,
|
|
3381
|
+
NbContextMenuRadioItem: Ll,
|
|
3382
|
+
NbContextMenuSeparator: Ul,
|
|
3383
|
+
NbContextMenuShortcut: Hl,
|
|
3384
|
+
NbContextMenuSub: Kl,
|
|
3385
|
+
NbDialog: tn,
|
|
3386
|
+
NbDrawer: on,
|
|
3387
|
+
NbDropdownMenu: sn,
|
|
3388
|
+
NbDropdownMenuItem: dn,
|
|
3389
|
+
NbDropdownMenuSeparator: rn,
|
|
3390
|
+
NbEmptyState: pn,
|
|
3391
|
+
NbField: ue,
|
|
3392
|
+
NbFieldset: gn,
|
|
3393
|
+
NbHoverCard: Dn,
|
|
3394
|
+
NbInput: Vn,
|
|
3395
|
+
NbInputGroup: An,
|
|
3396
|
+
NbKbd: On,
|
|
3397
|
+
NbLabel: re,
|
|
3398
|
+
NbLink: Pn,
|
|
3399
|
+
NbMarker: Rn,
|
|
3400
|
+
NbMenubar: Fn,
|
|
3401
|
+
NbMenubarMenu: Hn,
|
|
3402
|
+
NbMenubarItem: Kn,
|
|
3403
|
+
NbMenubarSeparator: jn,
|
|
3404
|
+
NbMeter: zn,
|
|
3405
|
+
NbNativeSelect: eo,
|
|
3406
|
+
NbNavigationMenu: Qn,
|
|
3407
|
+
NbNumberInput: oo,
|
|
3408
|
+
NbPagination: so,
|
|
3409
|
+
NbPinInput: co,
|
|
3410
|
+
NbPopover: po,
|
|
3411
|
+
NbProgress: _o,
|
|
3412
|
+
NbRadioGroup: Bo,
|
|
3413
|
+
NbRating: Do,
|
|
3414
|
+
NbScrollArea: Oo,
|
|
3415
|
+
NbSheet: Lo,
|
|
3416
|
+
NbSelect: Fo,
|
|
3417
|
+
NbSelectItem: Ho,
|
|
3418
|
+
NbSeparator: Ko,
|
|
3419
|
+
NbSkeleton: Zo,
|
|
3420
|
+
NbSlider: Yo,
|
|
3421
|
+
NbSpinner: ts,
|
|
3422
|
+
NbStepper: as,
|
|
3423
|
+
NbStepperItem: ns,
|
|
3424
|
+
NbSwitch: us,
|
|
3425
|
+
NbTagsInput: ps,
|
|
3426
|
+
NbTable: Ts,
|
|
3427
|
+
NbTabs: hs,
|
|
3428
|
+
NbTabsContent: gs,
|
|
3429
|
+
NbTabsList: $s,
|
|
3430
|
+
NbTabsTrigger: Is,
|
|
3431
|
+
NbTextarea: ws,
|
|
3432
|
+
NbTimeline: Ps,
|
|
3433
|
+
NbTimelineItem: Es,
|
|
3434
|
+
NbToast: Ds,
|
|
3435
|
+
NbToggle: zs,
|
|
3436
|
+
NbToggleGroup: js,
|
|
3437
|
+
NbToggleGroupItem: Ws,
|
|
3438
|
+
NbTooltip: Qs
|
|
3106
3439
|
});
|
|
3107
3440
|
export {
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
co as
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
Fo as
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3441
|
+
Ha as NbAccordion,
|
|
3442
|
+
ja as NbAccordionItem,
|
|
3443
|
+
Jl as NbAlert,
|
|
3444
|
+
Ql as NbAlertDialog,
|
|
3445
|
+
Wa as NbAspectRatio,
|
|
3446
|
+
Xa as NbAvatar,
|
|
3447
|
+
Ja as NbBadge,
|
|
3448
|
+
tl as NbBreadcrumbs,
|
|
3449
|
+
de as NbButton,
|
|
3450
|
+
ol as NbButtonGroup,
|
|
3451
|
+
hl as NbCard,
|
|
3452
|
+
cl as NbCarousel,
|
|
3453
|
+
fl as NbCarouselSlide,
|
|
3454
|
+
$l as NbCheckbox,
|
|
3455
|
+
Il as NbCollapsible,
|
|
3456
|
+
Sl as NbCombobox,
|
|
3457
|
+
Al as NbCommand,
|
|
3458
|
+
Dl as NbContextMenu,
|
|
3459
|
+
Ol as NbContextMenuCheckboxItem,
|
|
3460
|
+
Pl as NbContextMenuItem,
|
|
3461
|
+
Rl as NbContextMenuLabel,
|
|
3462
|
+
ql as NbContextMenuRadioGroup,
|
|
3463
|
+
Ll as NbContextMenuRadioItem,
|
|
3464
|
+
Ul as NbContextMenuSeparator,
|
|
3465
|
+
Hl as NbContextMenuShortcut,
|
|
3466
|
+
Kl as NbContextMenuSub,
|
|
3467
|
+
xl as NbCopyButton,
|
|
3468
|
+
tn as NbDialog,
|
|
3469
|
+
on as NbDrawer,
|
|
3470
|
+
sn as NbDropdownMenu,
|
|
3471
|
+
dn as NbDropdownMenuItem,
|
|
3472
|
+
rn as NbDropdownMenuSeparator,
|
|
3473
|
+
pn as NbEmptyState,
|
|
3474
|
+
ue as NbField,
|
|
3475
|
+
gn as NbFieldset,
|
|
3476
|
+
Dn as NbHoverCard,
|
|
3477
|
+
Vn as NbInput,
|
|
3478
|
+
An as NbInputGroup,
|
|
3479
|
+
On as NbKbd,
|
|
3480
|
+
re as NbLabel,
|
|
3481
|
+
Pn as NbLink,
|
|
3482
|
+
Rn as NbMarker,
|
|
3483
|
+
Fn as NbMenubar,
|
|
3484
|
+
Kn as NbMenubarItem,
|
|
3485
|
+
Hn as NbMenubarMenu,
|
|
3486
|
+
jn as NbMenubarSeparator,
|
|
3487
|
+
zn as NbMeter,
|
|
3488
|
+
eo as NbNativeSelect,
|
|
3489
|
+
Qn as NbNavigationMenu,
|
|
3490
|
+
oo as NbNumberInput,
|
|
3491
|
+
so as NbPagination,
|
|
3492
|
+
co as NbPinInput,
|
|
3493
|
+
po as NbPopover,
|
|
3494
|
+
_o as NbProgress,
|
|
3495
|
+
Bo as NbRadioGroup,
|
|
3496
|
+
Do as NbRating,
|
|
3497
|
+
Oo as NbScrollArea,
|
|
3498
|
+
Fo as NbSelect,
|
|
3499
|
+
Ho as NbSelectItem,
|
|
3500
|
+
Ko as NbSeparator,
|
|
3501
|
+
Lo as NbSheet,
|
|
3502
|
+
Zo as NbSkeleton,
|
|
3503
|
+
Yo as NbSlider,
|
|
3504
|
+
ts as NbSpinner,
|
|
3505
|
+
as as NbStepper,
|
|
3506
|
+
ns as NbStepperItem,
|
|
3507
|
+
us as NbSwitch,
|
|
3508
|
+
Ts as NbTable,
|
|
3509
|
+
hs as NbTabs,
|
|
3510
|
+
gs as NbTabsContent,
|
|
3511
|
+
$s as NbTabsList,
|
|
3512
|
+
Is as NbTabsTrigger,
|
|
3513
|
+
ps as NbTagsInput,
|
|
3514
|
+
ws as NbTextarea,
|
|
3515
|
+
Ps as NbTimeline,
|
|
3516
|
+
Es as NbTimelineItem,
|
|
3517
|
+
Ds as NbToast,
|
|
3518
|
+
zs as NbToggle,
|
|
3519
|
+
js as NbToggleGroup,
|
|
3520
|
+
Ws as NbToggleGroupItem,
|
|
3521
|
+
Qs as NbTooltip,
|
|
3522
|
+
ei as NeoBrutalVue
|
|
3180
3523
|
};
|