@neobrut-vue/core 0.1.1 → 0.3.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 +10 -0
- package/README.md +67 -4
- package/dist/components/NbAlertDialog/NbAlertDialog.vue.d.ts +40 -0
- package/dist/components/NbAlertDialog/index.d.ts +1 -0
- package/dist/components/NbButtonGroup/NbButtonGroup.vue.d.ts +23 -0
- package/dist/components/NbButtonGroup/index.d.ts +1 -0
- package/dist/components/NbCommand/NbCommand.vue.d.ts +44 -0
- package/dist/components/NbCommand/NbCommandPanel.vue.d.ts +18 -0
- package/dist/components/NbCommand/index.d.ts +2 -0
- package/dist/components/NbCommand/types.d.ts +8 -0
- package/dist/components/NbContextMenu/NbContextMenu.vue.d.ts +29 -0
- package/dist/components/NbContextMenu/NbContextMenuCheckboxItem.vue.d.ts +28 -0
- package/dist/components/NbContextMenu/NbContextMenuItem.vue.d.ts +28 -0
- package/dist/components/NbContextMenu/NbContextMenuLabel.vue.d.ts +17 -0
- package/dist/components/NbContextMenu/NbContextMenuRadioGroup.vue.d.ts +24 -0
- package/dist/components/NbContextMenu/NbContextMenuRadioItem.vue.d.ts +23 -0
- package/dist/components/NbContextMenu/NbContextMenuSeparator.vue.d.ts +2 -0
- package/dist/components/NbContextMenu/NbContextMenuShortcut.vue.d.ts +17 -0
- package/dist/components/NbContextMenu/NbContextMenuSub.vue.d.ts +23 -0
- package/dist/components/NbContextMenu/index.d.ts +9 -0
- package/dist/components/NbHoverCard/NbHoverCard.vue.d.ts +37 -0
- package/dist/components/NbHoverCard/index.d.ts +1 -0
- package/dist/components/NbKbd/NbKbd.vue.d.ts +22 -0
- package/dist/components/NbKbd/index.d.ts +1 -0
- package/dist/components/NbLink/NbLink.vue.d.ts +26 -0
- package/dist/components/NbLink/index.d.ts +2 -0
- package/dist/components/NbMarker/NbMarker.vue.d.ts +23 -0
- package/dist/components/NbMarker/index.d.ts +2 -0
- package/dist/components/NbNavigationMenu/NbNavigationMenu.vue.d.ts +25 -0
- package/dist/components/NbNavigationMenu/index.d.ts +2 -0
- package/dist/components/NbSheet/NbSheet.vue.d.ts +35 -0
- package/dist/components/NbSheet/index.d.ts +2 -0
- package/dist/components/NbToggle/NbToggle.vue.d.ts +35 -0
- package/dist/components/NbToggle/index.d.ts +2 -0
- package/dist/index.d.ts +18 -1
- package/dist/neobrut-vue.css +1 -1
- package/dist/neobrut-vue.js +1523 -700
- package/package.json +1 -1
package/dist/neobrut-vue.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AccordionRoot as
|
|
3
|
-
function
|
|
1
|
+
import { defineComponent as _, openBlock as o, createBlock as y, unref as a, withCtx as d, renderSlot as h, createVNode as c, createElementVNode as f, toDisplayString as p, computed as N, createElementBlock as u, normalizeClass as I, createCommentVNode as g, createTextVNode as k, Fragment as B, renderList as T, mergeProps as x, ref as V, watch as w, onBeforeUnmount as ie, withModifiers as de, nextTick as re, useSlots as ue, resolveDynamicComponent as ce, normalizeStyle as L, inject as be, provide as fe, withDirectives as me, vShow as pe } from "vue";
|
|
2
|
+
import { AccordionRoot as _e, AccordionItem as ve, AccordionHeader as he, AccordionTrigger as ge, AccordionContent as ye, AspectRatio as $e, AvatarRoot as Ne, AvatarImage as ke, AvatarFallback as xe, ComboboxRoot as H, ComboboxAnchor as K, ComboboxInput as j, ComboboxTrigger as Ie, ComboboxPortal as Ce, ComboboxContent as X, ComboboxViewport as J, ComboboxEmpty as Q, ComboboxItem as W, ComboboxItemIndicator as Ve, ComboboxGroup as Be, ComboboxLabel as we, DialogRoot as Y, DialogTrigger as Z, DialogPortal as ee, DialogOverlay as te, DialogContent as ae, DialogTitle as le, DialogClose as ne, ContextMenuRoot as Se, ContextMenuTrigger as Te, ContextMenuPortal as Me, ContextMenuContent as Ae, ContextMenuCheckboxItem as De, ContextMenuItemIndicator as oe, ContextMenuItem as Oe, ContextMenuLabel as Pe, ContextMenuRadioGroup as Re, ContextMenuRadioItem as Le, ContextMenuSeparator as Ue, ContextMenuSub as Ge, ContextMenuSubTrigger as qe, ContextMenuSubContent as Ee, AlertDialogRoot as ze, AlertDialogTrigger as Fe, AlertDialogPortal as He, AlertDialogOverlay as Ke, AlertDialogContent as je, AlertDialogTitle as Xe, AlertDialogDescription as Je, AlertDialogCancel as Qe, AlertDialogAction as We, DropdownMenuRoot as Ye, DropdownMenuTrigger as Ze, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as at, DropdownMenuSeparator as lt, HoverCardRoot as nt, HoverCardTrigger as ot, HoverCardPortal as st, HoverCardContent as it, NavigationMenuRoot as dt, NavigationMenuList as rt, NavigationMenuItem as ut, NavigationMenuTrigger as ct, NavigationMenuContent as bt, NavigationMenuLink as E, NumberFieldRoot as ft, NumberFieldDecrement as mt, NumberFieldInput as pt, NumberFieldIncrement as _t, PaginationRoot as vt, PaginationPrev as ht, PaginationList as gt, PaginationListItem as yt, PaginationEllipsis as $t, PaginationNext as Nt, PopoverRoot as kt, PopoverTrigger as xt, PopoverPortal as It, PopoverContent as Ct, PopoverClose as Vt, ProgressRoot as Bt, ProgressIndicator as wt, ScrollAreaRoot as St, ScrollAreaViewport as Tt, ScrollAreaScrollbar as Mt, ScrollAreaThumb as At, DialogDescription as Dt, SelectRoot as Ot, SelectTrigger as Pt, SelectValue as Rt, SelectIcon as Lt, SelectPortal as Ut, SelectContent as Gt, SelectScrollUpButton as qt, SelectViewport as Et, SelectScrollDownButton as zt, SelectItem as Ft, SelectItemText as Ht, SelectItemIndicator as Kt, Separator as jt, SliderRoot as Xt, SliderTrack as Jt, SliderRange as Qt, SliderThumb as Wt, ToastProvider as Yt, ToastRoot as Zt, ToastTitle as ea, ToastDescription as ta, ToastClose as aa, ToastViewport as la, Toggle as na, ToggleGroupRoot as oa, ToggleGroupItem as sa } from "reka-ui";
|
|
3
|
+
function ia(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 da = /* @__PURE__ */ _({
|
|
11
11
|
__name: "NbAccordion",
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {},
|
|
@@ -16,9 +16,9 @@ const ht = /* @__PURE__ */ v({
|
|
|
16
16
|
disabled: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
const t =
|
|
21
|
-
return (s, l) => (
|
|
19
|
+
setup(e, { emit: n }) {
|
|
20
|
+
const t = n;
|
|
21
|
+
return (s, l) => (o(), y(a(_e), {
|
|
22
22
|
class: "nb-root nb-accordion",
|
|
23
23
|
type: "single",
|
|
24
24
|
"model-value": e.modelValue,
|
|
@@ -27,13 +27,13 @@ const ht = /* @__PURE__ */ v({
|
|
|
27
27
|
disabled: e.disabled,
|
|
28
28
|
"onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
|
|
30
|
+
default: d(() => [
|
|
31
|
+
h(s.$slots, "default")
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
34
34
|
}, 8, ["model-value", "default-value", "collapsible", "disabled"]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), ra = { class: "nb-accordion__body" }, ua = /* @__PURE__ */ _({
|
|
37
37
|
__name: "NbAccordionItem",
|
|
38
38
|
props: {
|
|
39
39
|
value: {},
|
|
@@ -41,24 +41,24 @@ const ht = /* @__PURE__ */ v({
|
|
|
41
41
|
disabled: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
return (
|
|
44
|
+
return (n, t) => (o(), y(a(ve), {
|
|
45
45
|
class: "nb-accordion__item",
|
|
46
46
|
value: e.value,
|
|
47
47
|
disabled: e.disabled
|
|
48
48
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
t[0] || (t[0] =
|
|
49
|
+
default: d(() => [
|
|
50
|
+
c(a(he), { class: "nb-accordion__header" }, {
|
|
51
|
+
default: d(() => [
|
|
52
|
+
c(a(ge), { class: "nb-accordion__trigger" }, {
|
|
53
|
+
default: d(() => [
|
|
54
|
+
f("span", null, p(e.title), 1),
|
|
55
|
+
t[0] || (t[0] = f("svg", {
|
|
56
56
|
class: "nb-accordion__icon",
|
|
57
57
|
viewBox: "0 0 16 16",
|
|
58
58
|
"aria-hidden": "true",
|
|
59
59
|
focusable: "false"
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
62
62
|
], -1))
|
|
63
63
|
]),
|
|
64
64
|
_: 1
|
|
@@ -66,10 +66,10 @@ const ht = /* @__PURE__ */ v({
|
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
}),
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
c(a(ye), { class: "nb-accordion__content" }, {
|
|
70
|
+
default: d(() => [
|
|
71
|
+
f("div", ra, [
|
|
72
|
+
h(n.$slots, "default")
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
_: 3
|
|
@@ -78,41 +78,41 @@ const ht = /* @__PURE__ */ v({
|
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["value", "disabled"]));
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), ca = /* @__PURE__ */ _({
|
|
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($e), {
|
|
88
88
|
class: "nb-root nb-aspect-ratio",
|
|
89
89
|
ratio: e.ratio
|
|
90
90
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
|
|
91
|
+
default: d(() => [
|
|
92
|
+
h(n.$slots, "default")
|
|
93
93
|
]),
|
|
94
94
|
_: 3
|
|
95
95
|
}, 8, ["ratio"]));
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
function
|
|
98
|
+
function O(...e) {
|
|
99
99
|
return e.filter(Boolean).join(" ");
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const ba = /* @__PURE__ */ _({
|
|
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(() => O(`nb-badge--${n.tone}`, `nb-badge--${n.size}`));
|
|
109
|
+
return (s, l) => (o(), u("span", {
|
|
110
|
+
class: I(["nb-root nb-badge", t.value])
|
|
111
111
|
}, [
|
|
112
|
-
|
|
112
|
+
h(s.$slots, "default")
|
|
113
113
|
], 2));
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), fa = /* @__PURE__ */ _({
|
|
116
116
|
__name: "NbAvatar",
|
|
117
117
|
props: {
|
|
118
118
|
name: {},
|
|
@@ -121,26 +121,26 @@ const yt = /* @__PURE__ */ v({
|
|
|
121
121
|
tone: { default: "primary" }
|
|
122
122
|
},
|
|
123
123
|
setup(e) {
|
|
124
|
-
const
|
|
125
|
-
return (s, l) => (
|
|
126
|
-
class:
|
|
124
|
+
const n = e, t = N(() => n.name.trim().split(/\s+/).slice(0, 2).map((s) => s[0]?.toUpperCase()).join(""));
|
|
125
|
+
return (s, l) => (o(), y(a(Ne), {
|
|
126
|
+
class: I(["nb-root nb-avatar", [`nb-avatar--${e.size}`, `nb-avatar--${e.tone}`]]),
|
|
127
127
|
role: "img",
|
|
128
128
|
"aria-label": e.name
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
e.src ? (
|
|
130
|
+
default: d(() => [
|
|
131
|
+
e.src ? (o(), y(a(ke), {
|
|
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
|
+
c(a(xe), {
|
|
139
139
|
class: "nb-avatar__fallback",
|
|
140
140
|
"aria-hidden": "true"
|
|
141
141
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
142
|
+
default: d(() => [
|
|
143
|
+
k(p(t.value), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
})
|
|
@@ -148,46 +148,46 @@ const yt = /* @__PURE__ */ v({
|
|
|
148
148
|
_: 1
|
|
149
149
|
}, 8, ["class", "aria-label"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), ma = ["aria-label"], pa = ["href"], _a = ["aria-current"], va = {
|
|
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
|
+
}, ha = /* @__PURE__ */ _({
|
|
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
|
-
|
|
169
|
-
(
|
|
168
|
+
f("ol", null, [
|
|
169
|
+
(o(!0), u(B, null, T(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, pa)) : (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 ? (
|
|
180
|
-
|
|
181
|
-
])])) :
|
|
178
|
+
}, p(s.label), 9, _a)),
|
|
179
|
+
l < e.items.length - 1 ? (o(), u("svg", va, [...t[0] || (t[0] = [
|
|
180
|
+
f("path", { d: "m6 3 5 5-5 5" }, null, -1)
|
|
181
|
+
])])) : g("", !0)
|
|
182
182
|
]))), 128))
|
|
183
183
|
])
|
|
184
|
-
], 8,
|
|
184
|
+
], 8, ma));
|
|
185
185
|
}
|
|
186
|
-
}),
|
|
186
|
+
}), ga = ["type", "disabled", "aria-busy"], ya = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "nb-button__loader",
|
|
189
189
|
"aria-hidden": "true"
|
|
190
|
-
},
|
|
190
|
+
}, $a = /* @__PURE__ */ _({
|
|
191
191
|
inheritAttrs: !1,
|
|
192
192
|
__name: "NbButton",
|
|
193
193
|
props: {
|
|
@@ -198,30 +198,46 @@ const yt = /* @__PURE__ */ v({
|
|
|
198
198
|
disabled: { type: Boolean, default: !1 }
|
|
199
199
|
},
|
|
200
200
|
setup(e) {
|
|
201
|
-
const
|
|
202
|
-
`nb-button--${
|
|
203
|
-
`nb-button--${
|
|
204
|
-
|
|
201
|
+
const n = e, t = N(() => O(
|
|
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", x(s.$attrs, {
|
|
207
207
|
class: ["nb-root nb-button", t.value],
|
|
208
208
|
type: e.type,
|
|
209
209
|
disabled: e.disabled || e.loading,
|
|
210
210
|
"aria-busy": e.loading || void 0
|
|
211
211
|
}), [
|
|
212
|
-
e.loading ? (
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
e.loading ? (o(), u("span", ya, "✦")) : g("", !0),
|
|
213
|
+
f("span", null, [
|
|
214
|
+
h(s.$slots, "default")
|
|
215
215
|
])
|
|
216
|
-
], 16,
|
|
216
|
+
], 16, ga));
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), Na = ["aria-label", "data-orientation"], ka = /* @__PURE__ */ _({
|
|
219
|
+
__name: "NbButtonGroup",
|
|
220
|
+
props: {
|
|
221
|
+
orientation: { default: "horizontal" },
|
|
222
|
+
label: {}
|
|
223
|
+
},
|
|
224
|
+
setup(e) {
|
|
225
|
+
return (n, t) => (o(), u("div", {
|
|
226
|
+
class: "nb-root nb-button-group",
|
|
227
|
+
role: "group",
|
|
228
|
+
"aria-label": e.label,
|
|
229
|
+
"data-orientation": e.orientation
|
|
230
|
+
}, [
|
|
231
|
+
h(n.$slots, "default")
|
|
232
|
+
], 8, Na));
|
|
233
|
+
}
|
|
234
|
+
}), xa = {
|
|
219
235
|
key: 0,
|
|
220
236
|
class: "nb-card__header"
|
|
221
|
-
},
|
|
237
|
+
}, Ia = { class: "nb-card__body" }, Ca = {
|
|
222
238
|
key: 1,
|
|
223
239
|
class: "nb-card__footer"
|
|
224
|
-
},
|
|
240
|
+
}, Va = /* @__PURE__ */ _({
|
|
225
241
|
inheritAttrs: !1,
|
|
226
242
|
__name: "NbCard",
|
|
227
243
|
props: {
|
|
@@ -229,41 +245,41 @@ const yt = /* @__PURE__ */ v({
|
|
|
229
245
|
interactive: { type: Boolean, default: !1 }
|
|
230
246
|
},
|
|
231
247
|
setup(e) {
|
|
232
|
-
const
|
|
233
|
-
`nb-card--${
|
|
234
|
-
|
|
248
|
+
const n = e, t = N(() => O(
|
|
249
|
+
`nb-card--${n.tone}`,
|
|
250
|
+
n.interactive && "nb-card--interactive"
|
|
235
251
|
));
|
|
236
|
-
return (s, l) => (
|
|
252
|
+
return (s, l) => (o(), u("article", x(s.$attrs, {
|
|
237
253
|
class: ["nb-root nb-card", t.value]
|
|
238
254
|
}), [
|
|
239
|
-
s.$slots.header ? (
|
|
240
|
-
|
|
241
|
-
])) :
|
|
242
|
-
|
|
243
|
-
|
|
255
|
+
s.$slots.header ? (o(), u("header", xa, [
|
|
256
|
+
h(s.$slots, "header")
|
|
257
|
+
])) : g("", !0),
|
|
258
|
+
f("div", Ia, [
|
|
259
|
+
h(s.$slots, "default")
|
|
244
260
|
]),
|
|
245
|
-
s.$slots.footer ? (
|
|
246
|
-
|
|
247
|
-
])) :
|
|
261
|
+
s.$slots.footer ? (o(), u("footer", Ca, [
|
|
262
|
+
h(s.$slots, "footer")
|
|
263
|
+
])) : g("", !0)
|
|
248
264
|
], 16));
|
|
249
265
|
}
|
|
250
266
|
});
|
|
251
267
|
let z = 0;
|
|
252
|
-
function
|
|
268
|
+
function M(e = "nb") {
|
|
253
269
|
return z += 1, `${e}-${z}`;
|
|
254
270
|
}
|
|
255
|
-
function
|
|
256
|
-
const t =
|
|
271
|
+
function S(e, n) {
|
|
272
|
+
const t = n ?? M(e);
|
|
257
273
|
return {
|
|
258
274
|
inputId: t,
|
|
259
275
|
hintId: `${t}-hint`,
|
|
260
276
|
errorId: `${t}-error`
|
|
261
277
|
};
|
|
262
278
|
}
|
|
263
|
-
function
|
|
264
|
-
return [e && t,
|
|
279
|
+
function D(e, n, t, s) {
|
|
280
|
+
return [e && t, n && s].filter(Boolean).join(" ") || void 0;
|
|
265
281
|
}
|
|
266
|
-
const
|
|
282
|
+
const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkbox__label" }, Ta = /* @__PURE__ */ _({
|
|
267
283
|
inheritAttrs: !1,
|
|
268
284
|
__name: "NbCheckbox",
|
|
269
285
|
props: {
|
|
@@ -273,28 +289,28 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
273
289
|
id: {}
|
|
274
290
|
},
|
|
275
291
|
emits: ["update:modelValue"],
|
|
276
|
-
setup(e, { emit:
|
|
277
|
-
const t = e, s =
|
|
278
|
-
return (b,
|
|
292
|
+
setup(e, { emit: n }) {
|
|
293
|
+
const t = e, s = n, l = S("checkbox", t.id);
|
|
294
|
+
return (b, m) => (o(), u("label", {
|
|
279
295
|
class: "nb-root nb-checkbox",
|
|
280
296
|
for: a(l).inputId
|
|
281
297
|
}, [
|
|
282
|
-
|
|
298
|
+
f("input", x(b.$attrs, {
|
|
283
299
|
id: a(l).inputId,
|
|
284
300
|
class: "nb-checkbox__input",
|
|
285
301
|
type: "checkbox",
|
|
286
302
|
checked: e.modelValue,
|
|
287
303
|
disabled: e.disabled,
|
|
288
|
-
onChange:
|
|
289
|
-
}), null, 16,
|
|
290
|
-
|
|
304
|
+
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
305
|
+
}), null, 16, wa),
|
|
306
|
+
m[1] || (m[1] = f("span", {
|
|
291
307
|
class: "nb-checkbox__box",
|
|
292
308
|
"aria-hidden": "true"
|
|
293
309
|
}, "✓", -1)),
|
|
294
|
-
|
|
295
|
-
], 8,
|
|
310
|
+
f("span", Sa, p(e.label), 1)
|
|
311
|
+
], 8, Ba));
|
|
296
312
|
}
|
|
297
|
-
}),
|
|
313
|
+
}), Ma = { class: "nb-root nb-field" }, Aa = ["for"], Da = ["id"], Oa = ["id"], Pa = /* @__PURE__ */ _({
|
|
298
314
|
inheritAttrs: !1,
|
|
299
315
|
__name: "NbCombobox",
|
|
300
316
|
props: {
|
|
@@ -311,50 +327,50 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
311
327
|
id: {}
|
|
312
328
|
},
|
|
313
329
|
emits: ["update:modelValue"],
|
|
314
|
-
setup(e, { emit:
|
|
315
|
-
const t = e, s =
|
|
316
|
-
function
|
|
317
|
-
return t.options.find((
|
|
330
|
+
setup(e, { emit: n }) {
|
|
331
|
+
const t = e, s = n, l = S("combobox", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
332
|
+
function m(r) {
|
|
333
|
+
return t.options.find((v) => v.value === r)?.label ?? "";
|
|
318
334
|
}
|
|
319
|
-
function
|
|
335
|
+
function i(r) {
|
|
320
336
|
typeof r == "string" && s("update:modelValue", r);
|
|
321
337
|
}
|
|
322
|
-
return (r,
|
|
323
|
-
e.label ? (
|
|
338
|
+
return (r, v) => (o(), u("div", Ma, [
|
|
339
|
+
e.label ? (o(), u("label", {
|
|
324
340
|
key: 0,
|
|
325
341
|
class: "nb-field__label",
|
|
326
342
|
for: a(l).inputId
|
|
327
|
-
}, p(e.label), 9,
|
|
328
|
-
|
|
343
|
+
}, p(e.label), 9, Aa)) : g("", !0),
|
|
344
|
+
c(a(H), {
|
|
329
345
|
"model-value": e.modelValue,
|
|
330
346
|
disabled: e.disabled,
|
|
331
347
|
required: e.required,
|
|
332
348
|
name: e.name,
|
|
333
349
|
"open-on-click": "",
|
|
334
|
-
"onUpdate:modelValue":
|
|
350
|
+
"onUpdate:modelValue": i
|
|
335
351
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
|
|
338
|
-
default:
|
|
339
|
-
|
|
352
|
+
default: d(() => [
|
|
353
|
+
c(a(K), { class: "nb-combobox__anchor" }, {
|
|
354
|
+
default: d(() => [
|
|
355
|
+
c(a(j), x(r.$attrs, {
|
|
340
356
|
id: a(l).inputId,
|
|
341
357
|
class: "nb-combobox__input",
|
|
342
|
-
"display-value":
|
|
358
|
+
"display-value": m,
|
|
343
359
|
placeholder: e.placeholder,
|
|
344
360
|
"aria-invalid": e.error ? "true" : void 0,
|
|
345
361
|
"aria-describedby": b.value
|
|
346
362
|
}), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
|
|
347
|
-
|
|
363
|
+
c(a(Ie), {
|
|
348
364
|
class: "nb-combobox__trigger",
|
|
349
365
|
"aria-label": "Show options"
|
|
350
366
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
367
|
+
default: d(() => [...v[0] || (v[0] = [
|
|
368
|
+
f("svg", {
|
|
353
369
|
viewBox: "0 0 16 16",
|
|
354
370
|
"aria-hidden": "true",
|
|
355
371
|
focusable: "false"
|
|
356
372
|
}, [
|
|
357
|
-
|
|
373
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
358
374
|
], -1)
|
|
359
375
|
])]),
|
|
360
376
|
_: 1
|
|
@@ -362,43 +378,43 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
362
378
|
]),
|
|
363
379
|
_: 1
|
|
364
380
|
}),
|
|
365
|
-
|
|
366
|
-
default:
|
|
367
|
-
|
|
381
|
+
c(a(Ce), null, {
|
|
382
|
+
default: d(() => [
|
|
383
|
+
c(a(X), {
|
|
368
384
|
class: "nb-root nb-combobox__content",
|
|
369
385
|
position: "popper",
|
|
370
386
|
align: "start",
|
|
371
387
|
"side-offset": 5
|
|
372
388
|
}, {
|
|
373
|
-
default:
|
|
374
|
-
|
|
375
|
-
default:
|
|
376
|
-
|
|
377
|
-
default:
|
|
378
|
-
|
|
389
|
+
default: d(() => [
|
|
390
|
+
c(a(J), { class: "nb-combobox__viewport" }, {
|
|
391
|
+
default: d(() => [
|
|
392
|
+
c(a(Q), { class: "nb-combobox__empty" }, {
|
|
393
|
+
default: d(() => [
|
|
394
|
+
k(p(e.emptyText), 1)
|
|
379
395
|
]),
|
|
380
396
|
_: 1
|
|
381
397
|
}),
|
|
382
|
-
(
|
|
383
|
-
key:
|
|
398
|
+
(o(!0), u(B, null, T(e.options, ($) => (o(), y(a(W), {
|
|
399
|
+
key: $.value,
|
|
384
400
|
class: "nb-combobox__item",
|
|
385
|
-
value:
|
|
386
|
-
"text-value":
|
|
387
|
-
disabled:
|
|
388
|
-
"data-value":
|
|
401
|
+
value: $.value,
|
|
402
|
+
"text-value": $.label,
|
|
403
|
+
disabled: $.disabled,
|
|
404
|
+
"data-value": $.value
|
|
389
405
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
|
|
392
|
-
|
|
406
|
+
default: d(() => [
|
|
407
|
+
f("span", null, p($.label), 1),
|
|
408
|
+
c(a(Ve), {
|
|
393
409
|
class: "nb-combobox__indicator",
|
|
394
410
|
"aria-hidden": "true"
|
|
395
411
|
}, {
|
|
396
|
-
default:
|
|
397
|
-
|
|
412
|
+
default: d(() => [...v[1] || (v[1] = [
|
|
413
|
+
f("svg", {
|
|
398
414
|
viewBox: "0 0 16 16",
|
|
399
415
|
focusable: "false"
|
|
400
416
|
}, [
|
|
401
|
-
|
|
417
|
+
f("path", { d: "m3 8 3 3 7-7" })
|
|
402
418
|
], -1)
|
|
403
419
|
])]),
|
|
404
420
|
_: 1
|
|
@@ -418,19 +434,425 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
418
434
|
]),
|
|
419
435
|
_: 1
|
|
420
436
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
421
|
-
e.hint ? (
|
|
437
|
+
e.hint ? (o(), u("span", {
|
|
422
438
|
key: 1,
|
|
423
439
|
id: a(l).hintId,
|
|
424
440
|
class: "nb-field__hint"
|
|
425
|
-
}, p(e.hint), 9,
|
|
426
|
-
e.error ? (
|
|
441
|
+
}, p(e.hint), 9, Da)) : g("", !0),
|
|
442
|
+
e.error ? (o(), u("span", {
|
|
427
443
|
key: 2,
|
|
428
444
|
id: a(l).errorId,
|
|
429
445
|
class: "nb-field__error"
|
|
430
|
-
}, p(e.error), 9,
|
|
446
|
+
}, p(e.error), 9, Oa)) : g("", !0)
|
|
431
447
|
]));
|
|
432
448
|
}
|
|
433
|
-
}),
|
|
449
|
+
}), Ra = {
|
|
450
|
+
key: 0,
|
|
451
|
+
class: "nb-command__shortcut",
|
|
452
|
+
"aria-hidden": "true"
|
|
453
|
+
}, F = /* @__PURE__ */ _({
|
|
454
|
+
__name: "NbCommandPanel",
|
|
455
|
+
props: {
|
|
456
|
+
modelValue: { default: "" },
|
|
457
|
+
options: {},
|
|
458
|
+
label: {},
|
|
459
|
+
placeholder: {},
|
|
460
|
+
emptyText: {}
|
|
461
|
+
},
|
|
462
|
+
emits: ["update:modelValue", "select"],
|
|
463
|
+
setup(e, { emit: n }) {
|
|
464
|
+
const t = e, s = n, l = N(() => {
|
|
465
|
+
const m = /* @__PURE__ */ new Map();
|
|
466
|
+
for (const i of t.options) {
|
|
467
|
+
const r = i.group ?? "";
|
|
468
|
+
m.set(r, [...m.get(r) ?? [], i]);
|
|
469
|
+
}
|
|
470
|
+
return Array.from(m, ([i, r]) => ({ label: i, options: r }));
|
|
471
|
+
});
|
|
472
|
+
function b(m) {
|
|
473
|
+
if (typeof m != "string") return;
|
|
474
|
+
const i = t.options.find((r) => r.value === m);
|
|
475
|
+
i && (s("update:modelValue", m), s("select", i));
|
|
476
|
+
}
|
|
477
|
+
return (m, i) => (o(), y(a(H), {
|
|
478
|
+
class: "nb-command",
|
|
479
|
+
"model-value": e.modelValue,
|
|
480
|
+
open: !0,
|
|
481
|
+
"reset-search-term-on-select": !1,
|
|
482
|
+
"onUpdate:modelValue": b
|
|
483
|
+
}, {
|
|
484
|
+
default: d(() => [
|
|
485
|
+
c(a(K), { class: "nb-command__search" }, {
|
|
486
|
+
default: d(() => [
|
|
487
|
+
i[0] || (i[0] = f("svg", {
|
|
488
|
+
viewBox: "0 0 20 20",
|
|
489
|
+
"aria-hidden": "true",
|
|
490
|
+
focusable: "false"
|
|
491
|
+
}, [
|
|
492
|
+
f("circle", {
|
|
493
|
+
cx: "8.5",
|
|
494
|
+
cy: "8.5",
|
|
495
|
+
r: "5.5"
|
|
496
|
+
}),
|
|
497
|
+
f("path", { d: "m13 13 4 4" })
|
|
498
|
+
], -1)),
|
|
499
|
+
c(a(j), {
|
|
500
|
+
class: "nb-command__input",
|
|
501
|
+
"aria-label": e.label,
|
|
502
|
+
placeholder: e.placeholder,
|
|
503
|
+
"display-value": () => ""
|
|
504
|
+
}, null, 8, ["aria-label", "placeholder"])
|
|
505
|
+
]),
|
|
506
|
+
_: 1
|
|
507
|
+
}),
|
|
508
|
+
c(a(X), { class: "nb-command__content" }, {
|
|
509
|
+
default: d(() => [
|
|
510
|
+
c(a(J), { class: "nb-command__viewport" }, {
|
|
511
|
+
default: d(() => [
|
|
512
|
+
c(a(Q), { class: "nb-command__empty" }, {
|
|
513
|
+
default: d(() => [
|
|
514
|
+
k(p(e.emptyText), 1)
|
|
515
|
+
]),
|
|
516
|
+
_: 1
|
|
517
|
+
}),
|
|
518
|
+
(o(!0), u(B, null, T(l.value, (r) => (o(), y(a(Be), {
|
|
519
|
+
key: r.label || "default",
|
|
520
|
+
class: "nb-command__group"
|
|
521
|
+
}, {
|
|
522
|
+
default: d(() => [
|
|
523
|
+
r.label ? (o(), y(a(we), {
|
|
524
|
+
key: 0,
|
|
525
|
+
class: "nb-command__group-label"
|
|
526
|
+
}, {
|
|
527
|
+
default: d(() => [
|
|
528
|
+
k(p(r.label), 1)
|
|
529
|
+
]),
|
|
530
|
+
_: 2
|
|
531
|
+
}, 1024)) : g("", !0),
|
|
532
|
+
(o(!0), u(B, null, T(r.options, (v) => (o(), y(a(W), {
|
|
533
|
+
key: v.value,
|
|
534
|
+
class: "nb-command__item",
|
|
535
|
+
value: v.value,
|
|
536
|
+
"text-value": [v.label, ...v.keywords ?? []].join(" "),
|
|
537
|
+
disabled: v.disabled,
|
|
538
|
+
"data-value": v.value
|
|
539
|
+
}, {
|
|
540
|
+
default: d(() => [
|
|
541
|
+
f("span", null, p(v.label), 1),
|
|
542
|
+
v.shortcut ? (o(), u("span", Ra, p(v.shortcut), 1)) : g("", !0)
|
|
543
|
+
]),
|
|
544
|
+
_: 2
|
|
545
|
+
}, 1032, ["value", "text-value", "disabled", "data-value"]))), 128))
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
}, 1024))), 128))
|
|
549
|
+
]),
|
|
550
|
+
_: 1
|
|
551
|
+
})
|
|
552
|
+
]),
|
|
553
|
+
_: 1
|
|
554
|
+
})
|
|
555
|
+
]),
|
|
556
|
+
_: 1
|
|
557
|
+
}, 8, ["model-value"]));
|
|
558
|
+
}
|
|
559
|
+
}), La = { class: "nb-command-dialog__header" }, Ua = /* @__PURE__ */ _({
|
|
560
|
+
__name: "NbCommand",
|
|
561
|
+
props: {
|
|
562
|
+
modelValue: { default: "" },
|
|
563
|
+
options: {},
|
|
564
|
+
label: { default: "Command menu" },
|
|
565
|
+
placeholder: { default: "Type a command or search…" },
|
|
566
|
+
emptyText: { default: "No commands found" },
|
|
567
|
+
dialog: { type: Boolean, default: !1 },
|
|
568
|
+
open: { type: Boolean, default: void 0 },
|
|
569
|
+
defaultOpen: { type: Boolean, default: !1 }
|
|
570
|
+
},
|
|
571
|
+
emits: ["update:modelValue", "update:open", "select"],
|
|
572
|
+
setup(e, { emit: n }) {
|
|
573
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
574
|
+
w(() => t.open, (r) => {
|
|
575
|
+
r !== void 0 && (l.value = r);
|
|
576
|
+
});
|
|
577
|
+
function m(r) {
|
|
578
|
+
l.value = r, s("update:open", r);
|
|
579
|
+
}
|
|
580
|
+
function i(r) {
|
|
581
|
+
s("select", r), t.dialog && m(!1);
|
|
582
|
+
}
|
|
583
|
+
return (r, v) => e.dialog ? (o(), y(a(Y), {
|
|
584
|
+
key: 0,
|
|
585
|
+
open: b.value,
|
|
586
|
+
"onUpdate:open": m
|
|
587
|
+
}, {
|
|
588
|
+
default: d(() => [
|
|
589
|
+
c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
|
|
590
|
+
default: d(() => [
|
|
591
|
+
h(r.$slots, "trigger")
|
|
592
|
+
]),
|
|
593
|
+
_: 3
|
|
594
|
+
}),
|
|
595
|
+
c(a(ee), null, {
|
|
596
|
+
default: d(() => [
|
|
597
|
+
c(a(te), { class: "nb-root nb-command-dialog__overlay" }),
|
|
598
|
+
c(a(ae), {
|
|
599
|
+
"aria-describedby": void 0,
|
|
600
|
+
class: "nb-root nb-command-dialog"
|
|
601
|
+
}, {
|
|
602
|
+
default: d(() => [
|
|
603
|
+
f("header", La, [
|
|
604
|
+
c(a(le), { class: "nb-command-dialog__title" }, {
|
|
605
|
+
default: d(() => [
|
|
606
|
+
k(p(e.label), 1)
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
}),
|
|
610
|
+
c(a(ne), {
|
|
611
|
+
class: "nb-overlay-close",
|
|
612
|
+
"aria-label": "Close command menu"
|
|
613
|
+
}, {
|
|
614
|
+
default: d(() => [...v[2] || (v[2] = [
|
|
615
|
+
k("×", -1)
|
|
616
|
+
])]),
|
|
617
|
+
_: 1
|
|
618
|
+
})
|
|
619
|
+
]),
|
|
620
|
+
c(F, {
|
|
621
|
+
"model-value": e.modelValue,
|
|
622
|
+
options: e.options,
|
|
623
|
+
label: e.label,
|
|
624
|
+
placeholder: e.placeholder,
|
|
625
|
+
"empty-text": e.emptyText,
|
|
626
|
+
"onUpdate:modelValue": v[0] || (v[0] = ($) => s("update:modelValue", $)),
|
|
627
|
+
onSelect: i
|
|
628
|
+
}, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"])
|
|
629
|
+
]),
|
|
630
|
+
_: 1
|
|
631
|
+
})
|
|
632
|
+
]),
|
|
633
|
+
_: 1
|
|
634
|
+
})
|
|
635
|
+
]),
|
|
636
|
+
_: 3
|
|
637
|
+
}, 8, ["open"])) : (o(), y(F, {
|
|
638
|
+
key: 1,
|
|
639
|
+
class: "nb-root",
|
|
640
|
+
"model-value": e.modelValue,
|
|
641
|
+
options: e.options,
|
|
642
|
+
label: e.label,
|
|
643
|
+
placeholder: e.placeholder,
|
|
644
|
+
"empty-text": e.emptyText,
|
|
645
|
+
"onUpdate:modelValue": v[1] || (v[1] = ($) => s("update:modelValue", $)),
|
|
646
|
+
onSelect: i
|
|
647
|
+
}, null, 8, ["model-value", "options", "label", "placeholder", "empty-text"]));
|
|
648
|
+
}
|
|
649
|
+
}), Ga = /* @__PURE__ */ _({
|
|
650
|
+
__name: "NbContextMenu",
|
|
651
|
+
props: {
|
|
652
|
+
open: { type: Boolean, default: void 0 },
|
|
653
|
+
defaultOpen: { type: Boolean, default: !1 }
|
|
654
|
+
},
|
|
655
|
+
emits: ["update:open"],
|
|
656
|
+
setup(e, { emit: n }) {
|
|
657
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
658
|
+
w(() => t.open, (i) => {
|
|
659
|
+
i !== void 0 && (l.value = i);
|
|
660
|
+
});
|
|
661
|
+
function m(i) {
|
|
662
|
+
l.value = i, s("update:open", i);
|
|
663
|
+
}
|
|
664
|
+
return (i, r) => (o(), y(a(Se), {
|
|
665
|
+
open: b.value,
|
|
666
|
+
"onUpdate:open": m
|
|
667
|
+
}, {
|
|
668
|
+
default: d(() => [
|
|
669
|
+
c(a(Te), { "as-child": "" }, {
|
|
670
|
+
default: d(() => [
|
|
671
|
+
h(i.$slots, "trigger")
|
|
672
|
+
]),
|
|
673
|
+
_: 3
|
|
674
|
+
}),
|
|
675
|
+
c(a(Me), null, {
|
|
676
|
+
default: d(() => [
|
|
677
|
+
c(a(Ae), {
|
|
678
|
+
class: "nb-root nb-context-menu",
|
|
679
|
+
"side-offset": 6
|
|
680
|
+
}, {
|
|
681
|
+
default: d(() => [
|
|
682
|
+
h(i.$slots, "default")
|
|
683
|
+
]),
|
|
684
|
+
_: 3
|
|
685
|
+
})
|
|
686
|
+
]),
|
|
687
|
+
_: 3
|
|
688
|
+
})
|
|
689
|
+
]),
|
|
690
|
+
_: 3
|
|
691
|
+
}, 8, ["open"]));
|
|
692
|
+
}
|
|
693
|
+
}), qa = /* @__PURE__ */ _({
|
|
694
|
+
__name: "NbContextMenuCheckboxItem",
|
|
695
|
+
props: {
|
|
696
|
+
modelValue: { type: Boolean, default: !1 },
|
|
697
|
+
disabled: { type: Boolean, default: !1 }
|
|
698
|
+
},
|
|
699
|
+
emits: ["update:modelValue"],
|
|
700
|
+
setup(e, { emit: n }) {
|
|
701
|
+
const t = n;
|
|
702
|
+
return (s, l) => (o(), y(a(De), {
|
|
703
|
+
class: "nb-context-menu__item nb-context-menu__item--choice",
|
|
704
|
+
"model-value": e.modelValue,
|
|
705
|
+
disabled: e.disabled,
|
|
706
|
+
"onUpdate:modelValue": l[0] || (l[0] = (b) => t("update:modelValue", b))
|
|
707
|
+
}, {
|
|
708
|
+
default: d(() => [
|
|
709
|
+
c(a(oe), {
|
|
710
|
+
class: "nb-context-menu__indicator",
|
|
711
|
+
"aria-hidden": "true"
|
|
712
|
+
}, {
|
|
713
|
+
default: d(() => [...l[1] || (l[1] = [
|
|
714
|
+
k("✓", -1)
|
|
715
|
+
])]),
|
|
716
|
+
_: 1
|
|
717
|
+
}),
|
|
718
|
+
h(s.$slots, "default")
|
|
719
|
+
]),
|
|
720
|
+
_: 3
|
|
721
|
+
}, 8, ["model-value", "disabled"]));
|
|
722
|
+
}
|
|
723
|
+
}), Ea = /* @__PURE__ */ _({
|
|
724
|
+
__name: "NbContextMenuItem",
|
|
725
|
+
props: {
|
|
726
|
+
disabled: { type: Boolean, default: !1 },
|
|
727
|
+
destructive: { type: Boolean, default: !1 }
|
|
728
|
+
},
|
|
729
|
+
emits: ["select"],
|
|
730
|
+
setup(e, { emit: n }) {
|
|
731
|
+
const t = n;
|
|
732
|
+
return (s, l) => (o(), y(a(Oe), {
|
|
733
|
+
class: I(["nb-context-menu__item", { "nb-context-menu__item--destructive": e.destructive }]),
|
|
734
|
+
disabled: e.disabled,
|
|
735
|
+
onSelect: l[0] || (l[0] = (b) => t("select", b))
|
|
736
|
+
}, {
|
|
737
|
+
default: d(() => [
|
|
738
|
+
h(s.$slots, "default")
|
|
739
|
+
]),
|
|
740
|
+
_: 3
|
|
741
|
+
}, 8, ["class", "disabled"]));
|
|
742
|
+
}
|
|
743
|
+
}), za = /* @__PURE__ */ _({
|
|
744
|
+
__name: "NbContextMenuLabel",
|
|
745
|
+
setup(e) {
|
|
746
|
+
return (n, t) => (o(), y(a(Pe), { class: "nb-context-menu__label" }, {
|
|
747
|
+
default: d(() => [
|
|
748
|
+
h(n.$slots, "default")
|
|
749
|
+
]),
|
|
750
|
+
_: 3
|
|
751
|
+
}));
|
|
752
|
+
}
|
|
753
|
+
}), Fa = /* @__PURE__ */ _({
|
|
754
|
+
__name: "NbContextMenuRadioGroup",
|
|
755
|
+
props: {
|
|
756
|
+
modelValue: {}
|
|
757
|
+
},
|
|
758
|
+
emits: ["update:modelValue"],
|
|
759
|
+
setup(e, { emit: n }) {
|
|
760
|
+
const t = n;
|
|
761
|
+
function s(l) {
|
|
762
|
+
typeof l == "string" && t("update:modelValue", l);
|
|
763
|
+
}
|
|
764
|
+
return (l, b) => (o(), y(a(Re), {
|
|
765
|
+
"model-value": e.modelValue,
|
|
766
|
+
"onUpdate:modelValue": s
|
|
767
|
+
}, {
|
|
768
|
+
default: d(() => [
|
|
769
|
+
h(l.$slots, "default")
|
|
770
|
+
]),
|
|
771
|
+
_: 3
|
|
772
|
+
}, 8, ["model-value"]));
|
|
773
|
+
}
|
|
774
|
+
}), Ha = /* @__PURE__ */ _({
|
|
775
|
+
__name: "NbContextMenuRadioItem",
|
|
776
|
+
props: {
|
|
777
|
+
value: {},
|
|
778
|
+
disabled: { type: Boolean, default: !1 }
|
|
779
|
+
},
|
|
780
|
+
setup(e) {
|
|
781
|
+
return (n, t) => (o(), y(a(Le), {
|
|
782
|
+
class: "nb-context-menu__item nb-context-menu__item--choice",
|
|
783
|
+
value: e.value,
|
|
784
|
+
disabled: e.disabled
|
|
785
|
+
}, {
|
|
786
|
+
default: d(() => [
|
|
787
|
+
c(a(oe), {
|
|
788
|
+
class: "nb-context-menu__indicator",
|
|
789
|
+
"aria-hidden": "true"
|
|
790
|
+
}, {
|
|
791
|
+
default: d(() => [...t[0] || (t[0] = [
|
|
792
|
+
k("●", -1)
|
|
793
|
+
])]),
|
|
794
|
+
_: 1
|
|
795
|
+
}),
|
|
796
|
+
h(n.$slots, "default")
|
|
797
|
+
]),
|
|
798
|
+
_: 3
|
|
799
|
+
}, 8, ["value", "disabled"]));
|
|
800
|
+
}
|
|
801
|
+
}), Ka = /* @__PURE__ */ _({
|
|
802
|
+
__name: "NbContextMenuSeparator",
|
|
803
|
+
setup(e) {
|
|
804
|
+
return (n, t) => (o(), y(a(Ue), { class: "nb-context-menu__separator" }));
|
|
805
|
+
}
|
|
806
|
+
}), ja = (e, n) => {
|
|
807
|
+
const t = e.__vccOpts || e;
|
|
808
|
+
for (const [s, l] of n)
|
|
809
|
+
t[s] = l;
|
|
810
|
+
return t;
|
|
811
|
+
}, Xa = {}, Ja = {
|
|
812
|
+
class: "nb-context-menu__shortcut",
|
|
813
|
+
"aria-hidden": "true"
|
|
814
|
+
};
|
|
815
|
+
function Qa(e, n) {
|
|
816
|
+
return o(), u("span", Ja, [
|
|
817
|
+
h(e.$slots, "default")
|
|
818
|
+
]);
|
|
819
|
+
}
|
|
820
|
+
const Wa = /* @__PURE__ */ ja(Xa, [["render", Qa]]), Ya = /* @__PURE__ */ _({
|
|
821
|
+
__name: "NbContextMenuSub",
|
|
822
|
+
props: {
|
|
823
|
+
label: {},
|
|
824
|
+
disabled: { type: Boolean, default: !1 }
|
|
825
|
+
},
|
|
826
|
+
setup(e) {
|
|
827
|
+
return (n, t) => (o(), y(a(Ge), null, {
|
|
828
|
+
default: d(() => [
|
|
829
|
+
c(a(qe), {
|
|
830
|
+
class: "nb-context-menu__item",
|
|
831
|
+
disabled: e.disabled
|
|
832
|
+
}, {
|
|
833
|
+
default: d(() => [
|
|
834
|
+
k(p(e.label) + " ", 1),
|
|
835
|
+
t[0] || (t[0] = f("span", {
|
|
836
|
+
class: "nb-context-menu__shortcut",
|
|
837
|
+
"aria-hidden": "true"
|
|
838
|
+
}, "›", -1))
|
|
839
|
+
]),
|
|
840
|
+
_: 1
|
|
841
|
+
}, 8, ["disabled"]),
|
|
842
|
+
c(a(Ee), {
|
|
843
|
+
class: "nb-root nb-context-menu",
|
|
844
|
+
"side-offset": 6
|
|
845
|
+
}, {
|
|
846
|
+
default: d(() => [
|
|
847
|
+
h(n.$slots, "default")
|
|
848
|
+
]),
|
|
849
|
+
_: 3
|
|
850
|
+
})
|
|
851
|
+
]),
|
|
852
|
+
_: 3
|
|
853
|
+
}));
|
|
854
|
+
}
|
|
855
|
+
}), Za = { class: "nb-alert__content" }, el = { key: 0 }, tl = /* @__PURE__ */ _({
|
|
434
856
|
__name: "NbAlert",
|
|
435
857
|
props: {
|
|
436
858
|
tone: { default: "info" },
|
|
@@ -438,35 +860,113 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
438
860
|
dismissible: { type: Boolean, default: !1 }
|
|
439
861
|
},
|
|
440
862
|
emits: ["dismiss"],
|
|
441
|
-
setup(e, { emit:
|
|
442
|
-
const t = e, s =
|
|
443
|
-
function
|
|
863
|
+
setup(e, { emit: n }) {
|
|
864
|
+
const t = e, s = n, l = V(!1), b = N(() => O(`nb-alert--${t.tone}`));
|
|
865
|
+
function m() {
|
|
444
866
|
l.value = !0, s("dismiss");
|
|
445
867
|
}
|
|
446
|
-
return (
|
|
868
|
+
return (i, r) => l.value ? g("", !0) : (o(), u("div", {
|
|
447
869
|
key: 0,
|
|
448
|
-
class:
|
|
870
|
+
class: I(["nb-root nb-alert", b.value]),
|
|
449
871
|
role: "alert"
|
|
450
872
|
}, [
|
|
451
|
-
|
|
452
|
-
e.title ? (
|
|
453
|
-
|
|
454
|
-
|
|
873
|
+
f("div", Za, [
|
|
874
|
+
e.title ? (o(), u("strong", el, p(e.title), 1)) : g("", !0),
|
|
875
|
+
f("span", null, [
|
|
876
|
+
h(i.$slots, "default")
|
|
455
877
|
])
|
|
456
878
|
]),
|
|
457
|
-
e.dismissible ? (
|
|
879
|
+
e.dismissible ? (o(), u("button", {
|
|
458
880
|
key: 0,
|
|
459
881
|
class: "nb-alert__close",
|
|
460
882
|
type: "button",
|
|
461
883
|
"aria-label": "Dismiss",
|
|
462
|
-
onClick:
|
|
463
|
-
}, "×")) :
|
|
884
|
+
onClick: m
|
|
885
|
+
}, "×")) : g("", !0)
|
|
464
886
|
], 2));
|
|
465
887
|
}
|
|
466
|
-
}),
|
|
888
|
+
}), al = { class: "nb-alert-dialog__actions" }, ll = /* @__PURE__ */ _({
|
|
889
|
+
__name: "NbAlertDialog",
|
|
890
|
+
props: {
|
|
891
|
+
open: { type: Boolean, default: void 0 },
|
|
892
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
893
|
+
title: {},
|
|
894
|
+
description: {},
|
|
895
|
+
actionLabel: { default: "Continue" },
|
|
896
|
+
cancelLabel: { default: "Cancel" },
|
|
897
|
+
destructive: { type: Boolean, default: !1 }
|
|
898
|
+
},
|
|
899
|
+
emits: ["update:open", "action", "cancel"],
|
|
900
|
+
setup(e, { emit: n }) {
|
|
901
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
902
|
+
w(() => t.open, (i) => {
|
|
903
|
+
i !== void 0 && (l.value = i);
|
|
904
|
+
});
|
|
905
|
+
function m(i) {
|
|
906
|
+
l.value = i, s("update:open", i);
|
|
907
|
+
}
|
|
908
|
+
return (i, r) => (o(), y(a(ze), {
|
|
909
|
+
open: b.value,
|
|
910
|
+
"onUpdate:open": m
|
|
911
|
+
}, {
|
|
912
|
+
default: d(() => [
|
|
913
|
+
c(a(Fe), { class: "nb-root nb-overlay-trigger" }, {
|
|
914
|
+
default: d(() => [
|
|
915
|
+
h(i.$slots, "trigger")
|
|
916
|
+
]),
|
|
917
|
+
_: 3
|
|
918
|
+
}),
|
|
919
|
+
c(a(He), null, {
|
|
920
|
+
default: d(() => [
|
|
921
|
+
c(a(Ke), { class: "nb-root nb-alert-dialog__overlay" }),
|
|
922
|
+
c(a(je), { class: "nb-root nb-alert-dialog" }, {
|
|
923
|
+
default: d(() => [
|
|
924
|
+
c(a(Xe), { class: "nb-alert-dialog__title" }, {
|
|
925
|
+
default: d(() => [
|
|
926
|
+
k(p(e.title), 1)
|
|
927
|
+
]),
|
|
928
|
+
_: 1
|
|
929
|
+
}),
|
|
930
|
+
c(a(Je), { class: "nb-alert-dialog__description" }, {
|
|
931
|
+
default: d(() => [
|
|
932
|
+
k(p(e.description), 1)
|
|
933
|
+
]),
|
|
934
|
+
_: 1
|
|
935
|
+
}),
|
|
936
|
+
f("div", al, [
|
|
937
|
+
c(a(Qe), {
|
|
938
|
+
class: "nb-alert-dialog__button nb-alert-dialog__button--cancel",
|
|
939
|
+
onClick: r[0] || (r[0] = (v) => s("cancel"))
|
|
940
|
+
}, {
|
|
941
|
+
default: d(() => [
|
|
942
|
+
k(p(e.cancelLabel), 1)
|
|
943
|
+
]),
|
|
944
|
+
_: 1
|
|
945
|
+
}),
|
|
946
|
+
c(a(We), {
|
|
947
|
+
class: I(["nb-alert-dialog__button", { "nb-alert-dialog__button--destructive": e.destructive }]),
|
|
948
|
+
onClick: r[1] || (r[1] = (v) => s("action"))
|
|
949
|
+
}, {
|
|
950
|
+
default: d(() => [
|
|
951
|
+
k(p(e.actionLabel), 1)
|
|
952
|
+
]),
|
|
953
|
+
_: 1
|
|
954
|
+
}, 8, ["class"])
|
|
955
|
+
])
|
|
956
|
+
]),
|
|
957
|
+
_: 1
|
|
958
|
+
})
|
|
959
|
+
]),
|
|
960
|
+
_: 1
|
|
961
|
+
})
|
|
962
|
+
]),
|
|
963
|
+
_: 3
|
|
964
|
+
}, 8, ["open"]));
|
|
965
|
+
}
|
|
966
|
+
}), nl = { class: "nb-dialog__header" }, ol = { class: "nb-dialog__body" }, sl = {
|
|
467
967
|
key: 0,
|
|
468
968
|
class: "nb-dialog__footer"
|
|
469
|
-
},
|
|
969
|
+
}, il = /* @__PURE__ */ _({
|
|
470
970
|
inheritAttrs: !1,
|
|
471
971
|
__name: "NbDialog",
|
|
472
972
|
props: {
|
|
@@ -475,68 +975,68 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
475
975
|
closeOnBackdrop: { type: Boolean, default: !0 }
|
|
476
976
|
},
|
|
477
977
|
emits: ["update:open", "close"],
|
|
478
|
-
setup(e, { emit:
|
|
479
|
-
const t = e, s =
|
|
978
|
+
setup(e, { emit: n }) {
|
|
979
|
+
const t = e, s = n, b = `${M("dialog")}-title`, m = V(null), i = V(null);
|
|
480
980
|
function r() {
|
|
481
981
|
s("update:open", !1), s("close");
|
|
482
982
|
}
|
|
483
|
-
function
|
|
484
|
-
return Array.from(
|
|
983
|
+
function v() {
|
|
984
|
+
return Array.from(m.value?.querySelectorAll(
|
|
485
985
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
486
986
|
) ?? []);
|
|
487
987
|
}
|
|
488
|
-
function
|
|
489
|
-
if (
|
|
490
|
-
|
|
988
|
+
function $(C) {
|
|
989
|
+
if (C.key === "Escape") {
|
|
990
|
+
C.preventDefault(), r();
|
|
491
991
|
return;
|
|
492
992
|
}
|
|
493
|
-
if (
|
|
494
|
-
const
|
|
495
|
-
if (!
|
|
496
|
-
const
|
|
497
|
-
|
|
993
|
+
if (C.key !== "Tab") return;
|
|
994
|
+
const A = v();
|
|
995
|
+
if (!A.length) return;
|
|
996
|
+
const R = A[0], q = A[A.length - 1];
|
|
997
|
+
C.shiftKey && document.activeElement === R ? (C.preventDefault(), q.focus()) : !C.shiftKey && document.activeElement === q && (C.preventDefault(), R.focus());
|
|
498
998
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
999
|
+
function P() {
|
|
1000
|
+
i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), re(() => (v()[0] ?? m.value)?.focus());
|
|
501
1001
|
}
|
|
502
1002
|
function G() {
|
|
503
|
-
document.removeEventListener("keydown",
|
|
1003
|
+
document.removeEventListener("keydown", $), i.value?.focus(), i.value = null;
|
|
504
1004
|
}
|
|
505
|
-
return
|
|
506
|
-
|
|
507
|
-
}, { immediate: !0 }),
|
|
1005
|
+
return w(() => t.open, (C) => {
|
|
1006
|
+
C ? P() : G();
|
|
1007
|
+
}, { immediate: !0 }), ie(G), (C, A) => e.open ? (o(), u("div", {
|
|
508
1008
|
key: 0,
|
|
509
1009
|
class: "nb-root nb-dialog-layer",
|
|
510
|
-
onMousedown:
|
|
1010
|
+
onMousedown: A[0] || (A[0] = de((R) => e.closeOnBackdrop && r(), ["self"]))
|
|
511
1011
|
}, [
|
|
512
|
-
|
|
1012
|
+
f("section", x(C.$attrs, {
|
|
513
1013
|
ref_key: "dialogRef",
|
|
514
|
-
ref:
|
|
1014
|
+
ref: m,
|
|
515
1015
|
class: "nb-dialog",
|
|
516
1016
|
role: "dialog",
|
|
517
1017
|
"aria-modal": "true",
|
|
518
1018
|
"aria-labelledby": b,
|
|
519
1019
|
tabindex: "-1"
|
|
520
1020
|
}), [
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
1021
|
+
f("header", nl, [
|
|
1022
|
+
f("h2", { id: b }, p(e.title), 1),
|
|
1023
|
+
f("button", {
|
|
524
1024
|
class: "nb-dialog__close",
|
|
525
1025
|
type: "button",
|
|
526
1026
|
"aria-label": "Close dialog",
|
|
527
1027
|
onClick: r
|
|
528
1028
|
}, "×")
|
|
529
1029
|
]),
|
|
530
|
-
|
|
531
|
-
|
|
1030
|
+
f("div", ol, [
|
|
1031
|
+
h(C.$slots, "default")
|
|
532
1032
|
]),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
])) :
|
|
1033
|
+
C.$slots.footer ? (o(), u("footer", sl, [
|
|
1034
|
+
h(C.$slots, "footer")
|
|
1035
|
+
])) : g("", !0)
|
|
536
1036
|
], 16)
|
|
537
|
-
], 32)) :
|
|
1037
|
+
], 32)) : g("", !0);
|
|
538
1038
|
}
|
|
539
|
-
}),
|
|
1039
|
+
}), dl = /* @__PURE__ */ _({
|
|
540
1040
|
__name: "NbDropdownMenu",
|
|
541
1041
|
props: {
|
|
542
1042
|
open: { type: Boolean, default: void 0 },
|
|
@@ -546,47 +1046,47 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
546
1046
|
disabled: { type: Boolean, default: !1 }
|
|
547
1047
|
},
|
|
548
1048
|
emits: ["update:open"],
|
|
549
|
-
setup(e, { emit:
|
|
550
|
-
const t = e, s =
|
|
551
|
-
|
|
552
|
-
|
|
1049
|
+
setup(e, { emit: n }) {
|
|
1050
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
1051
|
+
w(() => t.open, (i) => {
|
|
1052
|
+
i !== void 0 && (l.value = i);
|
|
553
1053
|
});
|
|
554
|
-
function
|
|
555
|
-
l.value =
|
|
1054
|
+
function m(i) {
|
|
1055
|
+
l.value = i, s("update:open", i);
|
|
556
1056
|
}
|
|
557
|
-
return (
|
|
1057
|
+
return (i, r) => (o(), y(a(Ye), {
|
|
558
1058
|
open: b.value,
|
|
559
1059
|
"default-open": e.defaultOpen,
|
|
560
|
-
"onUpdate:open":
|
|
1060
|
+
"onUpdate:open": m
|
|
561
1061
|
}, {
|
|
562
|
-
default:
|
|
563
|
-
|
|
1062
|
+
default: d(() => [
|
|
1063
|
+
c(a(Ze), {
|
|
564
1064
|
class: "nb-root nb-overlay-trigger",
|
|
565
1065
|
"aria-label": e.label,
|
|
566
1066
|
disabled: e.disabled
|
|
567
1067
|
}, {
|
|
568
|
-
default:
|
|
569
|
-
|
|
570
|
-
r[0] || (r[0] =
|
|
1068
|
+
default: d(() => [
|
|
1069
|
+
h(i.$slots, "trigger"),
|
|
1070
|
+
r[0] || (r[0] = f("svg", {
|
|
571
1071
|
class: "nb-overlay-trigger__icon",
|
|
572
1072
|
viewBox: "0 0 16 16",
|
|
573
1073
|
"aria-hidden": "true",
|
|
574
1074
|
focusable: "false"
|
|
575
1075
|
}, [
|
|
576
|
-
|
|
1076
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
577
1077
|
], -1))
|
|
578
1078
|
]),
|
|
579
1079
|
_: 3
|
|
580
1080
|
}, 8, ["aria-label", "disabled"]),
|
|
581
|
-
|
|
582
|
-
default:
|
|
583
|
-
|
|
1081
|
+
c(a(et), null, {
|
|
1082
|
+
default: d(() => [
|
|
1083
|
+
c(a(tt), {
|
|
584
1084
|
class: "nb-root nb-dropdown-menu",
|
|
585
1085
|
align: e.align,
|
|
586
1086
|
"side-offset": 8
|
|
587
1087
|
}, {
|
|
588
|
-
default:
|
|
589
|
-
|
|
1088
|
+
default: d(() => [
|
|
1089
|
+
h(i.$slots, "default")
|
|
590
1090
|
]),
|
|
591
1091
|
_: 3
|
|
592
1092
|
}, 8, ["align"])
|
|
@@ -597,65 +1097,65 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
597
1097
|
_: 3
|
|
598
1098
|
}, 8, ["open", "default-open"]));
|
|
599
1099
|
}
|
|
600
|
-
}),
|
|
1100
|
+
}), rl = /* @__PURE__ */ _({
|
|
601
1101
|
__name: "NbDropdownMenuItem",
|
|
602
1102
|
props: {
|
|
603
1103
|
disabled: { type: Boolean, default: !1 },
|
|
604
1104
|
destructive: { type: Boolean, default: !1 }
|
|
605
1105
|
},
|
|
606
1106
|
emits: ["select"],
|
|
607
|
-
setup(e, { emit:
|
|
608
|
-
const t =
|
|
609
|
-
return (s, l) => (
|
|
610
|
-
class:
|
|
1107
|
+
setup(e, { emit: n }) {
|
|
1108
|
+
const t = n;
|
|
1109
|
+
return (s, l) => (o(), y(a(at), {
|
|
1110
|
+
class: I(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
|
|
611
1111
|
disabled: e.disabled,
|
|
612
1112
|
onSelect: l[0] || (l[0] = (b) => t("select", b))
|
|
613
1113
|
}, {
|
|
614
|
-
default:
|
|
615
|
-
|
|
1114
|
+
default: d(() => [
|
|
1115
|
+
h(s.$slots, "default")
|
|
616
1116
|
]),
|
|
617
1117
|
_: 3
|
|
618
1118
|
}, 8, ["class", "disabled"]));
|
|
619
1119
|
}
|
|
620
|
-
}),
|
|
1120
|
+
}), ul = /* @__PURE__ */ _({
|
|
621
1121
|
__name: "NbDropdownMenuSeparator",
|
|
622
1122
|
setup(e) {
|
|
623
|
-
return (
|
|
1123
|
+
return (n, t) => (o(), y(a(lt), { class: "nb-dropdown-menu__separator" }));
|
|
624
1124
|
}
|
|
625
|
-
}),
|
|
1125
|
+
}), cl = ["aria-labelledby"], bl = {
|
|
626
1126
|
key: 0,
|
|
627
1127
|
class: "nb-empty-state__icon",
|
|
628
1128
|
"aria-hidden": "true"
|
|
629
|
-
},
|
|
1129
|
+
}, fl = ["id"], ml = { key: 1 }, pl = {
|
|
630
1130
|
key: 2,
|
|
631
1131
|
class: "nb-empty-state__action"
|
|
632
|
-
},
|
|
1132
|
+
}, _l = /* @__PURE__ */ _({
|
|
633
1133
|
__name: "NbEmptyState",
|
|
634
1134
|
props: {
|
|
635
1135
|
title: {},
|
|
636
1136
|
description: {}
|
|
637
1137
|
},
|
|
638
1138
|
setup(e) {
|
|
639
|
-
const
|
|
640
|
-
return (t, s) => (
|
|
1139
|
+
const n = M("empty-state-title");
|
|
1140
|
+
return (t, s) => (o(), u("section", {
|
|
641
1141
|
class: "nb-root nb-empty-state",
|
|
642
1142
|
role: "region",
|
|
643
|
-
"aria-labelledby": a(
|
|
1143
|
+
"aria-labelledby": a(n)
|
|
644
1144
|
}, [
|
|
645
|
-
t.$slots.icon ? (
|
|
646
|
-
|
|
647
|
-
])) :
|
|
648
|
-
|
|
649
|
-
e.description ? (
|
|
650
|
-
t.$slots.default ? (
|
|
651
|
-
|
|
652
|
-
])) :
|
|
653
|
-
], 8,
|
|
1145
|
+
t.$slots.icon ? (o(), u("div", bl, [
|
|
1146
|
+
h(t.$slots, "icon")
|
|
1147
|
+
])) : g("", !0),
|
|
1148
|
+
f("h2", { id: a(n) }, p(e.title), 9, fl),
|
|
1149
|
+
e.description ? (o(), u("p", ml, p(e.description), 1)) : g("", !0),
|
|
1150
|
+
t.$slots.default ? (o(), u("div", pl, [
|
|
1151
|
+
h(t.$slots, "default")
|
|
1152
|
+
])) : g("", !0)
|
|
1153
|
+
], 8, cl));
|
|
654
1154
|
}
|
|
655
|
-
}),
|
|
1155
|
+
}), vl = ["disabled", "aria-describedby"], hl = {
|
|
656
1156
|
key: 0,
|
|
657
1157
|
class: "nb-fieldset__legend"
|
|
658
|
-
},
|
|
1158
|
+
}, gl = { class: "nb-fieldset__content" }, yl = /* @__PURE__ */ _({
|
|
659
1159
|
__name: "NbFieldset",
|
|
660
1160
|
props: {
|
|
661
1161
|
legend: {},
|
|
@@ -663,24 +1163,24 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
663
1163
|
disabled: { type: Boolean, default: !1 }
|
|
664
1164
|
},
|
|
665
1165
|
setup(e) {
|
|
666
|
-
const
|
|
667
|
-
return (t, s) => (
|
|
1166
|
+
const n = `${M("fieldset")}-description`;
|
|
1167
|
+
return (t, s) => (o(), u("fieldset", {
|
|
668
1168
|
class: "nb-root nb-fieldset",
|
|
669
1169
|
disabled: e.disabled,
|
|
670
|
-
"aria-describedby": e.description ?
|
|
1170
|
+
"aria-describedby": e.description ? n : void 0
|
|
671
1171
|
}, [
|
|
672
|
-
e.legend ? (
|
|
673
|
-
e.description ? (
|
|
1172
|
+
e.legend ? (o(), u("legend", hl, p(e.legend), 1)) : g("", !0),
|
|
1173
|
+
e.description ? (o(), u("p", {
|
|
674
1174
|
key: 1,
|
|
675
|
-
id:
|
|
1175
|
+
id: n,
|
|
676
1176
|
class: "nb-fieldset__description"
|
|
677
|
-
}, p(e.description), 1)) :
|
|
678
|
-
|
|
679
|
-
|
|
1177
|
+
}, p(e.description), 1)) : g("", !0),
|
|
1178
|
+
f("div", gl, [
|
|
1179
|
+
h(t.$slots, "default")
|
|
680
1180
|
])
|
|
681
|
-
], 8,
|
|
1181
|
+
], 8, vl));
|
|
682
1182
|
}
|
|
683
|
-
}),
|
|
1183
|
+
}), $l = { class: "nb-root nb-field" }, Nl = ["for"], kl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], xl = ["id"], Il = ["id"], Cl = /* @__PURE__ */ _({
|
|
684
1184
|
inheritAttrs: !1,
|
|
685
1185
|
__name: "NbInput",
|
|
686
1186
|
props: {
|
|
@@ -692,58 +1192,232 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
692
1192
|
id: {}
|
|
693
1193
|
},
|
|
694
1194
|
emits: ["update:modelValue"],
|
|
695
|
-
setup(e, { emit:
|
|
696
|
-
const t = e, s =
|
|
697
|
-
return (
|
|
698
|
-
e.label ? (
|
|
1195
|
+
setup(e, { emit: n }) {
|
|
1196
|
+
const t = e, s = n, l = S("input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
1197
|
+
return (m, i) => (o(), u("div", $l, [
|
|
1198
|
+
e.label ? (o(), u("label", {
|
|
699
1199
|
key: 0,
|
|
700
1200
|
class: "nb-field__label",
|
|
701
1201
|
for: a(l).inputId
|
|
702
|
-
}, p(e.label), 9,
|
|
703
|
-
|
|
1202
|
+
}, p(e.label), 9, Nl)) : g("", !0),
|
|
1203
|
+
f("input", x(m.$attrs, {
|
|
704
1204
|
id: a(l).inputId,
|
|
705
1205
|
class: "nb-field__control",
|
|
706
1206
|
value: e.modelValue,
|
|
707
1207
|
disabled: e.disabled,
|
|
708
1208
|
"aria-invalid": e.error ? "true" : void 0,
|
|
709
1209
|
"aria-describedby": b.value,
|
|
710
|
-
onInput:
|
|
711
|
-
}), null, 16,
|
|
712
|
-
e.hint ? (
|
|
1210
|
+
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
1211
|
+
}), null, 16, kl),
|
|
1212
|
+
e.hint ? (o(), u("span", {
|
|
713
1213
|
key: 1,
|
|
714
1214
|
id: a(l).hintId,
|
|
715
1215
|
class: "nb-field__hint"
|
|
716
|
-
}, p(e.hint), 9,
|
|
717
|
-
e.error ? (
|
|
1216
|
+
}, p(e.hint), 9, xl)) : g("", !0),
|
|
1217
|
+
e.error ? (o(), u("span", {
|
|
718
1218
|
key: 2,
|
|
719
1219
|
id: a(l).errorId,
|
|
720
1220
|
class: "nb-field__error"
|
|
721
|
-
}, p(e.error), 9,
|
|
1221
|
+
}, p(e.error), 9, Il)) : g("", !0)
|
|
722
1222
|
]));
|
|
723
1223
|
}
|
|
724
|
-
}),
|
|
1224
|
+
}), Vl = { class: "nb-root nb-input-group" }, Bl = {
|
|
725
1225
|
key: 0,
|
|
726
1226
|
class: "nb-input-group__addon"
|
|
727
|
-
},
|
|
1227
|
+
}, wl = { class: "nb-input-group__control" }, Sl = {
|
|
728
1228
|
key: 1,
|
|
729
1229
|
class: "nb-input-group__addon"
|
|
730
|
-
},
|
|
1230
|
+
}, Tl = /* @__PURE__ */ _({
|
|
731
1231
|
__name: "NbInputGroup",
|
|
732
1232
|
setup(e) {
|
|
733
|
-
const
|
|
734
|
-
return (t, s) => (
|
|
735
|
-
a(
|
|
736
|
-
|
|
737
|
-
])) :
|
|
738
|
-
|
|
739
|
-
|
|
1233
|
+
const n = ue();
|
|
1234
|
+
return (t, s) => (o(), u("div", Vl, [
|
|
1235
|
+
a(n).start ? (o(), u("span", Bl, [
|
|
1236
|
+
h(t.$slots, "start")
|
|
1237
|
+
])) : g("", !0),
|
|
1238
|
+
f("div", wl, [
|
|
1239
|
+
h(t.$slots, "default")
|
|
740
1240
|
]),
|
|
741
|
-
a(
|
|
742
|
-
|
|
743
|
-
])) :
|
|
1241
|
+
a(n).end ? (o(), u("span", Sl, [
|
|
1242
|
+
h(t.$slots, "end")
|
|
1243
|
+
])) : g("", !0)
|
|
744
1244
|
]));
|
|
745
1245
|
}
|
|
746
|
-
}),
|
|
1246
|
+
}), Ml = /* @__PURE__ */ _({
|
|
1247
|
+
__name: "NbHoverCard",
|
|
1248
|
+
props: {
|
|
1249
|
+
open: { type: Boolean, default: void 0 },
|
|
1250
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
1251
|
+
openDelay: { default: 300 },
|
|
1252
|
+
closeDelay: { default: 150 },
|
|
1253
|
+
align: { default: "center" },
|
|
1254
|
+
side: { default: "bottom" }
|
|
1255
|
+
},
|
|
1256
|
+
emits: ["update:open"],
|
|
1257
|
+
setup(e, { emit: n }) {
|
|
1258
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
1259
|
+
w(() => t.open, (i) => {
|
|
1260
|
+
i !== void 0 && (l.value = i);
|
|
1261
|
+
});
|
|
1262
|
+
function m(i) {
|
|
1263
|
+
l.value = i, s("update:open", i);
|
|
1264
|
+
}
|
|
1265
|
+
return (i, r) => (o(), y(a(nt), {
|
|
1266
|
+
open: b.value,
|
|
1267
|
+
"open-delay": e.openDelay,
|
|
1268
|
+
"close-delay": e.closeDelay,
|
|
1269
|
+
"onUpdate:open": m
|
|
1270
|
+
}, {
|
|
1271
|
+
default: d(() => [
|
|
1272
|
+
c(a(ot), { "as-child": "" }, {
|
|
1273
|
+
default: d(() => [
|
|
1274
|
+
h(i.$slots, "trigger")
|
|
1275
|
+
]),
|
|
1276
|
+
_: 3
|
|
1277
|
+
}),
|
|
1278
|
+
c(a(st), null, {
|
|
1279
|
+
default: d(() => [
|
|
1280
|
+
c(a(it), {
|
|
1281
|
+
class: "nb-root nb-hover-card",
|
|
1282
|
+
align: e.align,
|
|
1283
|
+
side: e.side,
|
|
1284
|
+
"side-offset": 8
|
|
1285
|
+
}, {
|
|
1286
|
+
default: d(() => [
|
|
1287
|
+
h(i.$slots, "default")
|
|
1288
|
+
]),
|
|
1289
|
+
_: 3
|
|
1290
|
+
}, 8, ["align", "side"])
|
|
1291
|
+
]),
|
|
1292
|
+
_: 3
|
|
1293
|
+
})
|
|
1294
|
+
]),
|
|
1295
|
+
_: 3
|
|
1296
|
+
}, 8, ["open", "open-delay", "close-delay"]));
|
|
1297
|
+
}
|
|
1298
|
+
}), Al = /* @__PURE__ */ _({
|
|
1299
|
+
__name: "NbKbd",
|
|
1300
|
+
props: {
|
|
1301
|
+
size: { default: "md" }
|
|
1302
|
+
},
|
|
1303
|
+
setup(e) {
|
|
1304
|
+
return (n, t) => (o(), u("kbd", {
|
|
1305
|
+
class: I(["nb-root nb-kbd", `nb-kbd--${e.size}`])
|
|
1306
|
+
}, [
|
|
1307
|
+
h(n.$slots, "default")
|
|
1308
|
+
], 2));
|
|
1309
|
+
}
|
|
1310
|
+
}), Dl = /* @__PURE__ */ _({
|
|
1311
|
+
inheritAttrs: !1,
|
|
1312
|
+
__name: "NbLink",
|
|
1313
|
+
props: {
|
|
1314
|
+
as: { default: "a" },
|
|
1315
|
+
tone: { default: "primary" }
|
|
1316
|
+
},
|
|
1317
|
+
setup(e) {
|
|
1318
|
+
const n = e, t = N(() => O(`nb-link--${n.tone}`));
|
|
1319
|
+
return (s, l) => (o(), y(ce(e.as), x(s.$attrs, {
|
|
1320
|
+
class: ["nb-root nb-link", t.value]
|
|
1321
|
+
}), {
|
|
1322
|
+
default: d(() => [
|
|
1323
|
+
h(s.$slots, "default")
|
|
1324
|
+
]),
|
|
1325
|
+
_: 3
|
|
1326
|
+
}, 16, ["class"]));
|
|
1327
|
+
}
|
|
1328
|
+
}), Ol = /* @__PURE__ */ _({
|
|
1329
|
+
__name: "NbMarker",
|
|
1330
|
+
props: {
|
|
1331
|
+
tone: { default: "primary" }
|
|
1332
|
+
},
|
|
1333
|
+
setup(e) {
|
|
1334
|
+
return (n, t) => (o(), u("mark", {
|
|
1335
|
+
class: I(["nb-root nb-marker", `nb-marker--${e.tone}`])
|
|
1336
|
+
}, [
|
|
1337
|
+
h(n.$slots, "default")
|
|
1338
|
+
], 2));
|
|
1339
|
+
}
|
|
1340
|
+
}), Pl = ["href", "target"], Rl = { key: 0 }, Ll = ["href", "target"], Ul = /* @__PURE__ */ _({
|
|
1341
|
+
__name: "NbNavigationMenu",
|
|
1342
|
+
props: {
|
|
1343
|
+
items: {},
|
|
1344
|
+
label: { default: "Main navigation" }
|
|
1345
|
+
},
|
|
1346
|
+
setup(e) {
|
|
1347
|
+
return (n, t) => (o(), y(a(dt), {
|
|
1348
|
+
class: "nb-root nb-navigation-menu",
|
|
1349
|
+
"aria-label": e.label
|
|
1350
|
+
}, {
|
|
1351
|
+
default: d(() => [
|
|
1352
|
+
c(a(rt), { class: "nb-navigation-menu__list" }, {
|
|
1353
|
+
default: d(() => [
|
|
1354
|
+
(o(!0), u(B, null, T(e.items, (s, l) => (o(), y(a(ut), {
|
|
1355
|
+
key: `${l}-${s.label}`,
|
|
1356
|
+
value: `${l}-${s.label}`,
|
|
1357
|
+
class: "nb-navigation-menu__item"
|
|
1358
|
+
}, {
|
|
1359
|
+
default: d(() => [
|
|
1360
|
+
s.children?.length ? (o(), u(B, { key: 0 }, [
|
|
1361
|
+
c(a(ct), { class: "nb-navigation-menu__trigger" }, {
|
|
1362
|
+
default: d(() => [
|
|
1363
|
+
k(p(s.label) + " ", 1),
|
|
1364
|
+
t[0] || (t[0] = f("svg", {
|
|
1365
|
+
viewBox: "0 0 16 16",
|
|
1366
|
+
"aria-hidden": "true",
|
|
1367
|
+
focusable: "false"
|
|
1368
|
+
}, [
|
|
1369
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1370
|
+
], -1))
|
|
1371
|
+
]),
|
|
1372
|
+
_: 2
|
|
1373
|
+
}, 1024),
|
|
1374
|
+
c(a(bt), { class: "nb-navigation-menu__content" }, {
|
|
1375
|
+
default: d(() => [
|
|
1376
|
+
(o(!0), u(B, null, T(s.children, (b) => (o(), y(a(E), {
|
|
1377
|
+
key: b.label,
|
|
1378
|
+
"as-child": "",
|
|
1379
|
+
active: b.active
|
|
1380
|
+
}, {
|
|
1381
|
+
default: d(() => [
|
|
1382
|
+
f("a", {
|
|
1383
|
+
class: "nb-navigation-menu__link nb-navigation-menu__link--panel",
|
|
1384
|
+
href: b.href,
|
|
1385
|
+
target: b.target
|
|
1386
|
+
}, [
|
|
1387
|
+
f("strong", null, p(b.label), 1),
|
|
1388
|
+
b.description ? (o(), u("span", Rl, p(b.description), 1)) : g("", !0)
|
|
1389
|
+
], 8, Pl)
|
|
1390
|
+
]),
|
|
1391
|
+
_: 2
|
|
1392
|
+
}, 1032, ["active"]))), 128))
|
|
1393
|
+
]),
|
|
1394
|
+
_: 2
|
|
1395
|
+
}, 1024)
|
|
1396
|
+
], 64)) : (o(), y(a(E), {
|
|
1397
|
+
key: 1,
|
|
1398
|
+
"as-child": "",
|
|
1399
|
+
active: s.active
|
|
1400
|
+
}, {
|
|
1401
|
+
default: d(() => [
|
|
1402
|
+
f("a", {
|
|
1403
|
+
class: "nb-navigation-menu__link",
|
|
1404
|
+
href: s.href,
|
|
1405
|
+
target: s.target
|
|
1406
|
+
}, p(s.label), 9, Ll)
|
|
1407
|
+
]),
|
|
1408
|
+
_: 2
|
|
1409
|
+
}, 1032, ["active"]))
|
|
1410
|
+
]),
|
|
1411
|
+
_: 2
|
|
1412
|
+
}, 1032, ["value"]))), 128))
|
|
1413
|
+
]),
|
|
1414
|
+
_: 1
|
|
1415
|
+
})
|
|
1416
|
+
]),
|
|
1417
|
+
_: 1
|
|
1418
|
+
}, 8, ["aria-label"]));
|
|
1419
|
+
}
|
|
1420
|
+
}), Gl = { class: "nb-root nb-field" }, ql = ["for"], El = ["id"], zl = ["id"], Fl = /* @__PURE__ */ _({
|
|
747
1421
|
inheritAttrs: !1,
|
|
748
1422
|
__name: "NbNumberInput",
|
|
749
1423
|
props: {
|
|
@@ -761,15 +1435,15 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
761
1435
|
step: { default: 1 }
|
|
762
1436
|
},
|
|
763
1437
|
emits: ["update:modelValue"],
|
|
764
|
-
setup(e, { emit:
|
|
765
|
-
const t = e, s =
|
|
766
|
-
return (
|
|
767
|
-
e.label ? (
|
|
1438
|
+
setup(e, { emit: n }) {
|
|
1439
|
+
const t = e, s = n, l = S("number-input", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId)), m = N(() => t.label ?? "value");
|
|
1440
|
+
return (i, r) => (o(), u("div", Gl, [
|
|
1441
|
+
e.label ? (o(), u("label", {
|
|
768
1442
|
key: 0,
|
|
769
1443
|
class: "nb-field__label",
|
|
770
1444
|
for: a(l).inputId
|
|
771
|
-
}, p(e.label), 9,
|
|
772
|
-
|
|
1445
|
+
}, p(e.label), 9, ql)) : g("", !0),
|
|
1446
|
+
c(a(ft), {
|
|
773
1447
|
class: "nb-number-input",
|
|
774
1448
|
"model-value": e.modelValue,
|
|
775
1449
|
min: e.min,
|
|
@@ -779,49 +1453,49 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
779
1453
|
readonly: e.readonly,
|
|
780
1454
|
required: e.required,
|
|
781
1455
|
name: e.name,
|
|
782
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1456
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => s("update:modelValue", v))
|
|
783
1457
|
}, {
|
|
784
|
-
default:
|
|
785
|
-
|
|
1458
|
+
default: d(() => [
|
|
1459
|
+
c(a(mt), {
|
|
786
1460
|
class: "nb-number-input__button",
|
|
787
|
-
"aria-label": `Decrease ${
|
|
1461
|
+
"aria-label": `Decrease ${m.value}`
|
|
788
1462
|
}, {
|
|
789
|
-
default:
|
|
790
|
-
|
|
1463
|
+
default: d(() => [...r[1] || (r[1] = [
|
|
1464
|
+
k("−", -1)
|
|
791
1465
|
])]),
|
|
792
1466
|
_: 1
|
|
793
1467
|
}, 8, ["aria-label"]),
|
|
794
|
-
|
|
1468
|
+
c(a(pt), x(i.$attrs, {
|
|
795
1469
|
id: a(l).inputId,
|
|
796
1470
|
class: "nb-number-input__input",
|
|
797
1471
|
"aria-invalid": e.error ? "true" : void 0,
|
|
798
1472
|
"aria-describedby": b.value
|
|
799
1473
|
}), null, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
800
|
-
|
|
1474
|
+
c(a(_t), {
|
|
801
1475
|
class: "nb-number-input__button",
|
|
802
|
-
"aria-label": `Increase ${
|
|
1476
|
+
"aria-label": `Increase ${m.value}`
|
|
803
1477
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
1478
|
+
default: d(() => [...r[2] || (r[2] = [
|
|
1479
|
+
k("+", -1)
|
|
806
1480
|
])]),
|
|
807
1481
|
_: 1
|
|
808
1482
|
}, 8, ["aria-label"])
|
|
809
1483
|
]),
|
|
810
1484
|
_: 1
|
|
811
1485
|
}, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
|
|
812
|
-
e.hint ? (
|
|
1486
|
+
e.hint ? (o(), u("span", {
|
|
813
1487
|
key: 1,
|
|
814
1488
|
id: a(l).hintId,
|
|
815
1489
|
class: "nb-field__hint"
|
|
816
|
-
}, p(e.hint), 9,
|
|
817
|
-
e.error ? (
|
|
1490
|
+
}, p(e.hint), 9, El)) : g("", !0),
|
|
1491
|
+
e.error ? (o(), u("span", {
|
|
818
1492
|
key: 2,
|
|
819
1493
|
id: a(l).errorId,
|
|
820
1494
|
class: "nb-field__error"
|
|
821
|
-
}, p(e.error), 9,
|
|
1495
|
+
}, p(e.error), 9, zl)) : g("", !0)
|
|
822
1496
|
]));
|
|
823
1497
|
}
|
|
824
|
-
}),
|
|
1498
|
+
}), Hl = /* @__PURE__ */ _({
|
|
825
1499
|
__name: "NbPagination",
|
|
826
1500
|
props: {
|
|
827
1501
|
page: {},
|
|
@@ -833,9 +1507,9 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
833
1507
|
label: { default: "Pagination" }
|
|
834
1508
|
},
|
|
835
1509
|
emits: ["update:page"],
|
|
836
|
-
setup(e, { emit:
|
|
837
|
-
const t =
|
|
838
|
-
return (s, l) => (
|
|
1510
|
+
setup(e, { emit: n }) {
|
|
1511
|
+
const t = n;
|
|
1512
|
+
return (s, l) => (o(), y(a(vt), {
|
|
839
1513
|
class: "nb-root nb-pagination",
|
|
840
1514
|
page: e.page,
|
|
841
1515
|
"default-page": e.defaultPage,
|
|
@@ -847,42 +1521,42 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
847
1521
|
"aria-label": e.label,
|
|
848
1522
|
"onUpdate:page": l[0] || (l[0] = (b) => t("update:page", b))
|
|
849
1523
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
|
|
1524
|
+
default: d(() => [
|
|
1525
|
+
c(a(ht), {
|
|
852
1526
|
class: "nb-pagination__button",
|
|
853
1527
|
"aria-label": "Go to previous page"
|
|
854
1528
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
|
|
1529
|
+
default: d(() => [...l[1] || (l[1] = [
|
|
1530
|
+
f("svg", {
|
|
857
1531
|
viewBox: "0 0 16 16",
|
|
858
1532
|
"aria-hidden": "true",
|
|
859
1533
|
focusable: "false"
|
|
860
1534
|
}, [
|
|
861
|
-
|
|
1535
|
+
f("path", { d: "m10 3-5 5 5 5" })
|
|
862
1536
|
], -1)
|
|
863
1537
|
])]),
|
|
864
1538
|
_: 1
|
|
865
1539
|
}),
|
|
866
|
-
|
|
867
|
-
default:
|
|
868
|
-
(
|
|
869
|
-
key:
|
|
1540
|
+
c(a(gt), { class: "nb-pagination__list" }, {
|
|
1541
|
+
default: d(({ items: b }) => [
|
|
1542
|
+
(o(!0), u(B, null, T(b, (m, i) => (o(), u(B, {
|
|
1543
|
+
key: m.type === "page" ? m.value : `ellipsis-${i}`
|
|
870
1544
|
}, [
|
|
871
|
-
|
|
1545
|
+
m.type === "page" ? (o(), y(a(yt), {
|
|
872
1546
|
key: 0,
|
|
873
1547
|
class: "nb-pagination__button",
|
|
874
|
-
value:
|
|
1548
|
+
value: m.value
|
|
875
1549
|
}, {
|
|
876
|
-
default:
|
|
877
|
-
|
|
1550
|
+
default: d(() => [
|
|
1551
|
+
k(p(m.value), 1)
|
|
878
1552
|
]),
|
|
879
1553
|
_: 2
|
|
880
|
-
}, 1032, ["value"])) : (
|
|
1554
|
+
}, 1032, ["value"])) : (o(), y(a($t), {
|
|
881
1555
|
key: 1,
|
|
882
1556
|
class: "nb-pagination__ellipsis"
|
|
883
1557
|
}, {
|
|
884
|
-
default:
|
|
885
|
-
|
|
1558
|
+
default: d(() => [...l[2] || (l[2] = [
|
|
1559
|
+
k("…", -1)
|
|
886
1560
|
])]),
|
|
887
1561
|
_: 1
|
|
888
1562
|
}))
|
|
@@ -890,17 +1564,17 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
890
1564
|
]),
|
|
891
1565
|
_: 1
|
|
892
1566
|
}),
|
|
893
|
-
|
|
1567
|
+
c(a(Nt), {
|
|
894
1568
|
class: "nb-pagination__button",
|
|
895
1569
|
"aria-label": "Go to next page"
|
|
896
1570
|
}, {
|
|
897
|
-
default:
|
|
898
|
-
|
|
1571
|
+
default: d(() => [...l[3] || (l[3] = [
|
|
1572
|
+
f("svg", {
|
|
899
1573
|
viewBox: "0 0 16 16",
|
|
900
1574
|
"aria-hidden": "true",
|
|
901
1575
|
focusable: "false"
|
|
902
1576
|
}, [
|
|
903
|
-
|
|
1577
|
+
f("path", { d: "m6 3 5 5-5 5" })
|
|
904
1578
|
], -1)
|
|
905
1579
|
])]),
|
|
906
1580
|
_: 1
|
|
@@ -909,10 +1583,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
909
1583
|
_: 1
|
|
910
1584
|
}, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
|
|
911
1585
|
}
|
|
912
|
-
}),
|
|
1586
|
+
}), Kl = {
|
|
913
1587
|
key: 0,
|
|
914
1588
|
class: "nb-popover__header"
|
|
915
|
-
},
|
|
1589
|
+
}, jl = ["id"], Xl = { class: "nb-popover__body" }, Jl = /* @__PURE__ */ _({
|
|
916
1590
|
__name: "NbPopover",
|
|
917
1591
|
props: {
|
|
918
1592
|
open: { type: Boolean, default: void 0 },
|
|
@@ -923,53 +1597,53 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
923
1597
|
disabled: { type: Boolean, default: !1 }
|
|
924
1598
|
},
|
|
925
1599
|
emits: ["update:open"],
|
|
926
|
-
setup(e, { emit:
|
|
927
|
-
const t = e, s =
|
|
928
|
-
|
|
1600
|
+
setup(e, { emit: n }) {
|
|
1601
|
+
const t = e, s = n, l = M("popover-title"), b = V(t.open ?? t.defaultOpen), m = N(() => t.open ?? b.value);
|
|
1602
|
+
w(() => t.open, (r) => {
|
|
929
1603
|
r !== void 0 && (b.value = r);
|
|
930
1604
|
});
|
|
931
|
-
function
|
|
1605
|
+
function i(r) {
|
|
932
1606
|
b.value = r, s("update:open", r);
|
|
933
1607
|
}
|
|
934
|
-
return (r,
|
|
935
|
-
open:
|
|
1608
|
+
return (r, v) => (o(), y(a(kt), {
|
|
1609
|
+
open: m.value,
|
|
936
1610
|
"default-open": e.defaultOpen,
|
|
937
|
-
"onUpdate:open":
|
|
1611
|
+
"onUpdate:open": i
|
|
938
1612
|
}, {
|
|
939
|
-
default:
|
|
940
|
-
|
|
1613
|
+
default: d(() => [
|
|
1614
|
+
c(a(xt), {
|
|
941
1615
|
class: "nb-root nb-overlay-trigger",
|
|
942
1616
|
disabled: e.disabled
|
|
943
1617
|
}, {
|
|
944
|
-
default:
|
|
945
|
-
|
|
1618
|
+
default: d(() => [
|
|
1619
|
+
h(r.$slots, "trigger")
|
|
946
1620
|
]),
|
|
947
1621
|
_: 3
|
|
948
1622
|
}, 8, ["disabled"]),
|
|
949
|
-
|
|
950
|
-
default:
|
|
951
|
-
|
|
1623
|
+
c(a(It), null, {
|
|
1624
|
+
default: d(() => [
|
|
1625
|
+
c(a(Ct), {
|
|
952
1626
|
class: "nb-root nb-popover",
|
|
953
1627
|
align: e.align,
|
|
954
1628
|
side: e.side,
|
|
955
1629
|
"side-offset": 8,
|
|
956
1630
|
"aria-labelledby": e.title ? a(l) : void 0
|
|
957
1631
|
}, {
|
|
958
|
-
default:
|
|
959
|
-
e.title ? (
|
|
960
|
-
|
|
961
|
-
|
|
1632
|
+
default: d(() => [
|
|
1633
|
+
e.title ? (o(), u("header", Kl, [
|
|
1634
|
+
f("h2", { id: a(l) }, p(e.title), 9, jl),
|
|
1635
|
+
c(a(Vt), {
|
|
962
1636
|
class: "nb-overlay-close",
|
|
963
1637
|
"aria-label": "Close popover"
|
|
964
1638
|
}, {
|
|
965
|
-
default:
|
|
966
|
-
|
|
1639
|
+
default: d(() => [...v[0] || (v[0] = [
|
|
1640
|
+
k("×", -1)
|
|
967
1641
|
])]),
|
|
968
1642
|
_: 1
|
|
969
1643
|
})
|
|
970
|
-
])) :
|
|
971
|
-
|
|
972
|
-
|
|
1644
|
+
])) : g("", !0),
|
|
1645
|
+
f("div", Xl, [
|
|
1646
|
+
h(r.$slots, "default")
|
|
973
1647
|
])
|
|
974
1648
|
]),
|
|
975
1649
|
_: 3
|
|
@@ -981,10 +1655,10 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
981
1655
|
_: 3
|
|
982
1656
|
}, 8, ["open", "default-open"]));
|
|
983
1657
|
}
|
|
984
|
-
}),
|
|
1658
|
+
}), Ql = { class: "nb-root nb-progress-wrap" }, Wl = {
|
|
985
1659
|
key: 0,
|
|
986
1660
|
class: "nb-progress__header"
|
|
987
|
-
},
|
|
1661
|
+
}, Yl = /* @__PURE__ */ _({
|
|
988
1662
|
__name: "NbProgress",
|
|
989
1663
|
props: {
|
|
990
1664
|
value: { default: null },
|
|
@@ -993,35 +1667,35 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
993
1667
|
showValue: { type: Boolean, default: !1 }
|
|
994
1668
|
},
|
|
995
1669
|
setup(e) {
|
|
996
|
-
const
|
|
997
|
-
return (s, l) => (
|
|
998
|
-
e.showValue ? (
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
])) :
|
|
1002
|
-
|
|
1670
|
+
const n = e, t = N(() => n.value === null ? 0 : Math.min(100, Math.max(0, n.value / n.max * 100)));
|
|
1671
|
+
return (s, l) => (o(), u("div", Ql, [
|
|
1672
|
+
e.showValue ? (o(), u("div", Wl, [
|
|
1673
|
+
f("span", null, p(e.label), 1),
|
|
1674
|
+
f("span", null, p(Math.round(t.value)) + "%", 1)
|
|
1675
|
+
])) : g("", !0),
|
|
1676
|
+
c(a(Bt), {
|
|
1003
1677
|
class: "nb-progress",
|
|
1004
1678
|
"model-value": e.value,
|
|
1005
1679
|
max: e.max,
|
|
1006
1680
|
"get-value-label": () => e.label
|
|
1007
1681
|
}, {
|
|
1008
|
-
default:
|
|
1009
|
-
|
|
1682
|
+
default: d(() => [
|
|
1683
|
+
c(a(wt), {
|
|
1010
1684
|
class: "nb-progress__indicator",
|
|
1011
|
-
style:
|
|
1685
|
+
style: L(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
|
|
1012
1686
|
}, null, 8, ["style"])
|
|
1013
1687
|
]),
|
|
1014
1688
|
_: 1
|
|
1015
1689
|
}, 8, ["model-value", "max", "get-value-label"])
|
|
1016
1690
|
]));
|
|
1017
1691
|
}
|
|
1018
|
-
}),
|
|
1692
|
+
}), Zl = ["disabled", "aria-describedby"], en = {
|
|
1019
1693
|
key: 0,
|
|
1020
1694
|
class: "nb-radio-group__legend"
|
|
1021
|
-
},
|
|
1695
|
+
}, tn = { class: "nb-radio-group__options" }, an = ["for"], ln = ["id", "name", "value", "checked", "disabled", "onChange"], nn = { class: "nb-radio__content" }, on = { class: "nb-radio__label" }, sn = {
|
|
1022
1696
|
key: 0,
|
|
1023
1697
|
class: "nb-radio__description"
|
|
1024
|
-
},
|
|
1698
|
+
}, dn = /* @__PURE__ */ _({
|
|
1025
1699
|
__name: "NbRadioGroup",
|
|
1026
1700
|
props: {
|
|
1027
1701
|
modelValue: { default: "" },
|
|
@@ -1032,48 +1706,48 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1032
1706
|
options: {}
|
|
1033
1707
|
},
|
|
1034
1708
|
emits: ["update:modelValue"],
|
|
1035
|
-
setup(e, { emit:
|
|
1036
|
-
const t = e, s =
|
|
1037
|
-
return (
|
|
1709
|
+
setup(e, { emit: n }) {
|
|
1710
|
+
const t = e, s = n, l = M("radio-group"), b = t.name ?? l, m = `${l}-hint`;
|
|
1711
|
+
return (i, r) => (o(), u("fieldset", {
|
|
1038
1712
|
class: "nb-root nb-radio-group",
|
|
1039
1713
|
disabled: e.disabled,
|
|
1040
|
-
"aria-describedby": e.hint ?
|
|
1714
|
+
"aria-describedby": e.hint ? m : void 0
|
|
1041
1715
|
}, [
|
|
1042
|
-
e.label ? (
|
|
1043
|
-
e.hint ? (
|
|
1716
|
+
e.label ? (o(), u("legend", en, p(e.label), 1)) : g("", !0),
|
|
1717
|
+
e.hint ? (o(), u("p", {
|
|
1044
1718
|
key: 1,
|
|
1045
|
-
id:
|
|
1719
|
+
id: m,
|
|
1046
1720
|
class: "nb-field__hint nb-radio-group__hint"
|
|
1047
|
-
}, p(e.hint), 1)) :
|
|
1048
|
-
|
|
1049
|
-
(
|
|
1050
|
-
key:
|
|
1051
|
-
class:
|
|
1052
|
-
for: `${a(l)}-${
|
|
1721
|
+
}, p(e.hint), 1)) : g("", !0),
|
|
1722
|
+
f("div", tn, [
|
|
1723
|
+
(o(!0), u(B, null, T(e.options, (v, $) => (o(), u("label", {
|
|
1724
|
+
key: v.value,
|
|
1725
|
+
class: I(["nb-radio", { "is-checked": e.modelValue === v.value }]),
|
|
1726
|
+
for: `${a(l)}-${$}`
|
|
1053
1727
|
}, [
|
|
1054
|
-
|
|
1055
|
-
id: `${a(l)}-${
|
|
1728
|
+
f("input", {
|
|
1729
|
+
id: `${a(l)}-${$}`,
|
|
1056
1730
|
class: "nb-radio__input",
|
|
1057
1731
|
type: "radio",
|
|
1058
1732
|
name: a(b),
|
|
1059
|
-
value:
|
|
1060
|
-
checked: e.modelValue ===
|
|
1061
|
-
disabled: e.disabled ||
|
|
1062
|
-
onChange: (
|
|
1063
|
-
}, null, 40,
|
|
1064
|
-
r[0] || (r[0] =
|
|
1733
|
+
value: v.value,
|
|
1734
|
+
checked: e.modelValue === v.value,
|
|
1735
|
+
disabled: e.disabled || v.disabled,
|
|
1736
|
+
onChange: (P) => s("update:modelValue", v.value)
|
|
1737
|
+
}, null, 40, ln),
|
|
1738
|
+
r[0] || (r[0] = f("span", {
|
|
1065
1739
|
class: "nb-radio__mark",
|
|
1066
1740
|
"aria-hidden": "true"
|
|
1067
1741
|
}, null, -1)),
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1742
|
+
f("span", nn, [
|
|
1743
|
+
f("span", on, p(v.label), 1),
|
|
1744
|
+
v.description ? (o(), u("span", sn, p(v.description), 1)) : g("", !0)
|
|
1071
1745
|
])
|
|
1072
|
-
], 10,
|
|
1746
|
+
], 10, an))), 128))
|
|
1073
1747
|
])
|
|
1074
|
-
], 8,
|
|
1748
|
+
], 8, Zl));
|
|
1075
1749
|
}
|
|
1076
|
-
}),
|
|
1750
|
+
}), rn = /* @__PURE__ */ _({
|
|
1077
1751
|
__name: "NbScrollArea",
|
|
1078
1752
|
props: {
|
|
1079
1753
|
label: { default: "Scrollable content" },
|
|
@@ -1081,27 +1755,27 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1081
1755
|
type: { default: "hover" }
|
|
1082
1756
|
},
|
|
1083
1757
|
setup(e) {
|
|
1084
|
-
return (
|
|
1758
|
+
return (n, t) => (o(), y(a(St), {
|
|
1085
1759
|
class: "nb-root nb-scroll-area",
|
|
1086
1760
|
type: e.type,
|
|
1087
|
-
style:
|
|
1761
|
+
style: L({ height: e.height })
|
|
1088
1762
|
}, {
|
|
1089
|
-
default:
|
|
1090
|
-
|
|
1763
|
+
default: d(() => [
|
|
1764
|
+
c(a(Tt), {
|
|
1091
1765
|
class: "nb-scroll-area__viewport",
|
|
1092
1766
|
"aria-label": e.label
|
|
1093
1767
|
}, {
|
|
1094
|
-
default:
|
|
1095
|
-
|
|
1768
|
+
default: d(() => [
|
|
1769
|
+
h(n.$slots, "default")
|
|
1096
1770
|
]),
|
|
1097
1771
|
_: 3
|
|
1098
1772
|
}, 8, ["aria-label"]),
|
|
1099
|
-
|
|
1773
|
+
c(a(Mt), {
|
|
1100
1774
|
class: "nb-scroll-area__scrollbar",
|
|
1101
1775
|
orientation: "vertical"
|
|
1102
1776
|
}, {
|
|
1103
|
-
default:
|
|
1104
|
-
|
|
1777
|
+
default: d(() => [
|
|
1778
|
+
c(a(At), { class: "nb-scroll-area__thumb" })
|
|
1105
1779
|
]),
|
|
1106
1780
|
_: 1
|
|
1107
1781
|
})
|
|
@@ -1109,7 +1783,90 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1109
1783
|
_: 3
|
|
1110
1784
|
}, 8, ["type", "style"]));
|
|
1111
1785
|
}
|
|
1112
|
-
}),
|
|
1786
|
+
}), un = { class: "nb-sheet__header" }, cn = { class: "nb-sheet__body" }, bn = {
|
|
1787
|
+
key: 0,
|
|
1788
|
+
class: "nb-sheet__footer"
|
|
1789
|
+
}, fn = /* @__PURE__ */ _({
|
|
1790
|
+
__name: "NbSheet",
|
|
1791
|
+
props: {
|
|
1792
|
+
open: { type: Boolean, default: void 0 },
|
|
1793
|
+
defaultOpen: { type: Boolean, default: !1 },
|
|
1794
|
+
title: {},
|
|
1795
|
+
description: {},
|
|
1796
|
+
side: { default: "right" }
|
|
1797
|
+
},
|
|
1798
|
+
emits: ["update:open"],
|
|
1799
|
+
setup(e, { emit: n }) {
|
|
1800
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
1801
|
+
w(() => t.open, (i) => {
|
|
1802
|
+
i !== void 0 && (l.value = i);
|
|
1803
|
+
});
|
|
1804
|
+
function m(i) {
|
|
1805
|
+
l.value = i, s("update:open", i);
|
|
1806
|
+
}
|
|
1807
|
+
return (i, r) => (o(), y(a(Y), {
|
|
1808
|
+
open: b.value,
|
|
1809
|
+
"onUpdate:open": m
|
|
1810
|
+
}, {
|
|
1811
|
+
default: d(() => [
|
|
1812
|
+
c(a(Z), { class: "nb-root nb-overlay-trigger" }, {
|
|
1813
|
+
default: d(() => [
|
|
1814
|
+
h(i.$slots, "trigger")
|
|
1815
|
+
]),
|
|
1816
|
+
_: 3
|
|
1817
|
+
}),
|
|
1818
|
+
c(a(ee), null, {
|
|
1819
|
+
default: d(() => [
|
|
1820
|
+
c(a(te), { class: "nb-root nb-sheet__overlay" }),
|
|
1821
|
+
c(a(ae), x(e.description ? {} : { "aria-describedby": void 0 }, {
|
|
1822
|
+
class: ["nb-root nb-sheet", `nb-sheet--${e.side}`]
|
|
1823
|
+
}), {
|
|
1824
|
+
default: d(() => [
|
|
1825
|
+
f("header", un, [
|
|
1826
|
+
f("div", null, [
|
|
1827
|
+
c(a(le), { class: "nb-sheet__title" }, {
|
|
1828
|
+
default: d(() => [
|
|
1829
|
+
k(p(e.title), 1)
|
|
1830
|
+
]),
|
|
1831
|
+
_: 1
|
|
1832
|
+
}),
|
|
1833
|
+
e.description ? (o(), y(a(Dt), {
|
|
1834
|
+
key: 0,
|
|
1835
|
+
class: "nb-sheet__description"
|
|
1836
|
+
}, {
|
|
1837
|
+
default: d(() => [
|
|
1838
|
+
k(p(e.description), 1)
|
|
1839
|
+
]),
|
|
1840
|
+
_: 1
|
|
1841
|
+
})) : g("", !0)
|
|
1842
|
+
]),
|
|
1843
|
+
c(a(ne), {
|
|
1844
|
+
class: "nb-overlay-close",
|
|
1845
|
+
"aria-label": "Close sheet"
|
|
1846
|
+
}, {
|
|
1847
|
+
default: d(() => [...r[0] || (r[0] = [
|
|
1848
|
+
k("×", -1)
|
|
1849
|
+
])]),
|
|
1850
|
+
_: 1
|
|
1851
|
+
})
|
|
1852
|
+
]),
|
|
1853
|
+
f("div", cn, [
|
|
1854
|
+
h(i.$slots, "default")
|
|
1855
|
+
]),
|
|
1856
|
+
i.$slots.footer ? (o(), u("footer", bn, [
|
|
1857
|
+
h(i.$slots, "footer")
|
|
1858
|
+
])) : g("", !0)
|
|
1859
|
+
]),
|
|
1860
|
+
_: 3
|
|
1861
|
+
}, 16, ["class"])
|
|
1862
|
+
]),
|
|
1863
|
+
_: 3
|
|
1864
|
+
})
|
|
1865
|
+
]),
|
|
1866
|
+
_: 3
|
|
1867
|
+
}, 8, ["open"]));
|
|
1868
|
+
}
|
|
1869
|
+
}), mn = { class: "nb-root nb-field" }, pn = ["for"], _n = ["id"], vn = ["id"], hn = /* @__PURE__ */ _({
|
|
1113
1870
|
inheritAttrs: !1,
|
|
1114
1871
|
__name: "NbSelect",
|
|
1115
1872
|
props: {
|
|
@@ -1124,43 +1881,43 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1124
1881
|
id: {}
|
|
1125
1882
|
},
|
|
1126
1883
|
emits: ["update:modelValue"],
|
|
1127
|
-
setup(e, { emit:
|
|
1128
|
-
const t = e, s =
|
|
1129
|
-
function
|
|
1130
|
-
typeof
|
|
1884
|
+
setup(e, { emit: n }) {
|
|
1885
|
+
const t = e, s = n, l = S("select", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
1886
|
+
function m(i) {
|
|
1887
|
+
typeof i == "string" && s("update:modelValue", i);
|
|
1131
1888
|
}
|
|
1132
|
-
return (
|
|
1133
|
-
e.label ? (
|
|
1889
|
+
return (i, r) => (o(), u("div", mn, [
|
|
1890
|
+
e.label ? (o(), u("label", {
|
|
1134
1891
|
key: 0,
|
|
1135
1892
|
class: "nb-field__label",
|
|
1136
1893
|
for: a(l).inputId
|
|
1137
|
-
}, p(e.label), 9,
|
|
1138
|
-
|
|
1894
|
+
}, p(e.label), 9, pn)) : g("", !0),
|
|
1895
|
+
c(a(Ot), {
|
|
1139
1896
|
"model-value": e.modelValue,
|
|
1140
1897
|
disabled: e.disabled,
|
|
1141
1898
|
required: e.required,
|
|
1142
1899
|
name: e.name,
|
|
1143
|
-
"onUpdate:modelValue":
|
|
1900
|
+
"onUpdate:modelValue": m
|
|
1144
1901
|
}, {
|
|
1145
|
-
default:
|
|
1146
|
-
|
|
1902
|
+
default: d(() => [
|
|
1903
|
+
c(a(Pt), x(i.$attrs, {
|
|
1147
1904
|
id: a(l).inputId,
|
|
1148
1905
|
class: "nb-select__trigger",
|
|
1149
1906
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1150
1907
|
"aria-describedby": b.value
|
|
1151
1908
|
}), {
|
|
1152
|
-
default:
|
|
1153
|
-
|
|
1154
|
-
|
|
1909
|
+
default: d(() => [
|
|
1910
|
+
c(a(Rt), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
1911
|
+
c(a(Lt), {
|
|
1155
1912
|
class: "nb-select__icon",
|
|
1156
1913
|
"aria-hidden": "true"
|
|
1157
1914
|
}, {
|
|
1158
|
-
default:
|
|
1159
|
-
|
|
1915
|
+
default: d(() => [...r[0] || (r[0] = [
|
|
1916
|
+
f("svg", {
|
|
1160
1917
|
viewBox: "0 0 16 16",
|
|
1161
1918
|
focusable: "false"
|
|
1162
1919
|
}, [
|
|
1163
|
-
|
|
1920
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1164
1921
|
], -1)
|
|
1165
1922
|
])]),
|
|
1166
1923
|
_: 1
|
|
@@ -1168,46 +1925,46 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1168
1925
|
]),
|
|
1169
1926
|
_: 1
|
|
1170
1927
|
}, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
1171
|
-
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1928
|
+
c(a(Ut), null, {
|
|
1929
|
+
default: d(() => [
|
|
1930
|
+
c(a(Gt), {
|
|
1174
1931
|
class: "nb-root nb-select__content",
|
|
1175
1932
|
position: "popper",
|
|
1176
1933
|
"side-offset": 5
|
|
1177
1934
|
}, {
|
|
1178
|
-
default:
|
|
1179
|
-
|
|
1935
|
+
default: d(() => [
|
|
1936
|
+
c(a(qt), {
|
|
1180
1937
|
class: "nb-select__scroll-button",
|
|
1181
1938
|
"aria-label": "Scroll up"
|
|
1182
1939
|
}, {
|
|
1183
|
-
default:
|
|
1184
|
-
|
|
1940
|
+
default: d(() => [...r[1] || (r[1] = [
|
|
1941
|
+
f("svg", {
|
|
1185
1942
|
viewBox: "0 0 16 16",
|
|
1186
1943
|
"aria-hidden": "true",
|
|
1187
1944
|
focusable: "false"
|
|
1188
1945
|
}, [
|
|
1189
|
-
|
|
1946
|
+
f("path", { d: "m3 10 5-5 5 5" })
|
|
1190
1947
|
], -1)
|
|
1191
1948
|
])]),
|
|
1192
1949
|
_: 1
|
|
1193
1950
|
}),
|
|
1194
|
-
|
|
1195
|
-
default:
|
|
1196
|
-
|
|
1951
|
+
c(a(Et), { class: "nb-select__viewport" }, {
|
|
1952
|
+
default: d(() => [
|
|
1953
|
+
h(i.$slots, "default")
|
|
1197
1954
|
]),
|
|
1198
1955
|
_: 3
|
|
1199
1956
|
}),
|
|
1200
|
-
|
|
1957
|
+
c(a(zt), {
|
|
1201
1958
|
class: "nb-select__scroll-button",
|
|
1202
1959
|
"aria-label": "Scroll down"
|
|
1203
1960
|
}, {
|
|
1204
|
-
default:
|
|
1205
|
-
|
|
1961
|
+
default: d(() => [...r[2] || (r[2] = [
|
|
1962
|
+
f("svg", {
|
|
1206
1963
|
viewBox: "0 0 16 16",
|
|
1207
1964
|
"aria-hidden": "true",
|
|
1208
1965
|
focusable: "false"
|
|
1209
1966
|
}, [
|
|
1210
|
-
|
|
1967
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1211
1968
|
], -1)
|
|
1212
1969
|
])]),
|
|
1213
1970
|
_: 1
|
|
@@ -1221,48 +1978,48 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1221
1978
|
]),
|
|
1222
1979
|
_: 3
|
|
1223
1980
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
1224
|
-
e.hint ? (
|
|
1981
|
+
e.hint ? (o(), u("span", {
|
|
1225
1982
|
key: 1,
|
|
1226
1983
|
id: a(l).hintId,
|
|
1227
1984
|
class: "nb-field__hint"
|
|
1228
|
-
}, p(e.hint), 9,
|
|
1229
|
-
e.error ? (
|
|
1985
|
+
}, p(e.hint), 9, _n)) : g("", !0),
|
|
1986
|
+
e.error ? (o(), u("span", {
|
|
1230
1987
|
key: 2,
|
|
1231
1988
|
id: a(l).errorId,
|
|
1232
1989
|
class: "nb-field__error"
|
|
1233
|
-
}, p(e.error), 9,
|
|
1990
|
+
}, p(e.error), 9, vn)) : g("", !0)
|
|
1234
1991
|
]));
|
|
1235
1992
|
}
|
|
1236
|
-
}),
|
|
1993
|
+
}), gn = /* @__PURE__ */ _({
|
|
1237
1994
|
__name: "NbSelectItem",
|
|
1238
1995
|
props: {
|
|
1239
1996
|
value: {},
|
|
1240
1997
|
disabled: { type: Boolean, default: !1 }
|
|
1241
1998
|
},
|
|
1242
1999
|
setup(e) {
|
|
1243
|
-
return (
|
|
2000
|
+
return (n, t) => (o(), y(a(Ft), {
|
|
1244
2001
|
class: "nb-select__item",
|
|
1245
2002
|
value: e.value,
|
|
1246
2003
|
disabled: e.disabled,
|
|
1247
2004
|
"data-value": e.value
|
|
1248
2005
|
}, {
|
|
1249
|
-
default:
|
|
1250
|
-
|
|
1251
|
-
default:
|
|
1252
|
-
|
|
2006
|
+
default: d(() => [
|
|
2007
|
+
c(a(Ht), null, {
|
|
2008
|
+
default: d(() => [
|
|
2009
|
+
h(n.$slots, "default")
|
|
1253
2010
|
]),
|
|
1254
2011
|
_: 3
|
|
1255
2012
|
}),
|
|
1256
|
-
|
|
2013
|
+
c(a(Kt), {
|
|
1257
2014
|
class: "nb-select__indicator",
|
|
1258
2015
|
"aria-hidden": "true"
|
|
1259
2016
|
}, {
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
2017
|
+
default: d(() => [...t[0] || (t[0] = [
|
|
2018
|
+
f("svg", {
|
|
1262
2019
|
viewBox: "0 0 16 16",
|
|
1263
2020
|
focusable: "false"
|
|
1264
2021
|
}, [
|
|
1265
|
-
|
|
2022
|
+
f("path", { d: "m2.5 8.5 3.5 3.5 7.5-8" })
|
|
1266
2023
|
], -1)
|
|
1267
2024
|
])]),
|
|
1268
2025
|
_: 1
|
|
@@ -1271,26 +2028,26 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1271
2028
|
_: 3
|
|
1272
2029
|
}, 8, ["value", "disabled", "data-value"]));
|
|
1273
2030
|
}
|
|
1274
|
-
}),
|
|
2031
|
+
}), yn = /* @__PURE__ */ _({
|
|
1275
2032
|
__name: "NbSeparator",
|
|
1276
2033
|
props: {
|
|
1277
2034
|
orientation: { default: "horizontal" },
|
|
1278
2035
|
decorative: { type: Boolean, default: !0 }
|
|
1279
2036
|
},
|
|
1280
2037
|
setup(e) {
|
|
1281
|
-
return (
|
|
2038
|
+
return (n, t) => (o(), y(a(jt), {
|
|
1282
2039
|
class: "nb-root nb-separator",
|
|
1283
2040
|
orientation: e.orientation,
|
|
1284
2041
|
decorative: e.decorative
|
|
1285
2042
|
}, null, 8, ["orientation", "decorative"]));
|
|
1286
2043
|
}
|
|
1287
|
-
}),
|
|
2044
|
+
}), $n = { class: "nb-root nb-field" }, Nn = {
|
|
1288
2045
|
key: 0,
|
|
1289
2046
|
class: "nb-slider__header"
|
|
1290
|
-
},
|
|
2047
|
+
}, kn = {
|
|
1291
2048
|
key: 1,
|
|
1292
2049
|
class: "nb-slider__value"
|
|
1293
|
-
},
|
|
2050
|
+
}, xn = ["id"], In = ["id"], Cn = /* @__PURE__ */ _({
|
|
1294
2051
|
inheritAttrs: !1,
|
|
1295
2052
|
__name: "NbSlider",
|
|
1296
2053
|
props: {
|
|
@@ -1308,24 +2065,24 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1308
2065
|
showValue: { type: Boolean, default: !0 }
|
|
1309
2066
|
},
|
|
1310
2067
|
emits: ["update:modelValue", "change"],
|
|
1311
|
-
setup(e, { emit:
|
|
1312
|
-
const t = e, s =
|
|
1313
|
-
function
|
|
1314
|
-
|
|
2068
|
+
setup(e, { emit: n }) {
|
|
2069
|
+
const t = e, s = n, l = S("slider", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
2070
|
+
function i(v) {
|
|
2071
|
+
v?.[0] !== void 0 && s("update:modelValue", v[0]);
|
|
1315
2072
|
}
|
|
1316
|
-
function r(
|
|
1317
|
-
|
|
2073
|
+
function r(v) {
|
|
2074
|
+
v[0] !== void 0 && s("change", v[0]);
|
|
1318
2075
|
}
|
|
1319
|
-
return (
|
|
1320
|
-
e.label || e.showValue ? (
|
|
1321
|
-
e.label ? (
|
|
2076
|
+
return (v, $) => (o(), u("div", $n, [
|
|
2077
|
+
e.label || e.showValue ? (o(), u("div", Nn, [
|
|
2078
|
+
e.label ? (o(), u("span", {
|
|
1322
2079
|
key: 0,
|
|
1323
2080
|
id: b,
|
|
1324
2081
|
class: "nb-field__label"
|
|
1325
|
-
}, p(e.label), 1)) :
|
|
1326
|
-
e.showValue ? (
|
|
1327
|
-
])) :
|
|
1328
|
-
|
|
2082
|
+
}, p(e.label), 1)) : g("", !0),
|
|
2083
|
+
e.showValue ? (o(), u("output", kn, p(e.modelValue), 1)) : g("", !0)
|
|
2084
|
+
])) : g("", !0),
|
|
2085
|
+
c(a(Xt), {
|
|
1329
2086
|
class: "nb-slider",
|
|
1330
2087
|
"model-value": [e.modelValue],
|
|
1331
2088
|
min: e.min,
|
|
@@ -1334,39 +2091,39 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1334
2091
|
disabled: e.disabled,
|
|
1335
2092
|
required: e.required,
|
|
1336
2093
|
name: e.name,
|
|
1337
|
-
"onUpdate:modelValue":
|
|
2094
|
+
"onUpdate:modelValue": i,
|
|
1338
2095
|
onValueCommit: r
|
|
1339
2096
|
}, {
|
|
1340
|
-
default:
|
|
1341
|
-
|
|
1342
|
-
default:
|
|
1343
|
-
|
|
2097
|
+
default: d(() => [
|
|
2098
|
+
c(a(Jt), { class: "nb-slider__track" }, {
|
|
2099
|
+
default: d(() => [
|
|
2100
|
+
c(a(Qt), { class: "nb-slider__range" })
|
|
1344
2101
|
]),
|
|
1345
2102
|
_: 1
|
|
1346
2103
|
}),
|
|
1347
|
-
|
|
2104
|
+
c(a(Wt), x(v.$attrs, {
|
|
1348
2105
|
id: a(l).inputId,
|
|
1349
2106
|
class: "nb-slider__thumb",
|
|
1350
2107
|
"aria-labelledby": e.label ? b : void 0,
|
|
1351
2108
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1352
|
-
"aria-describedby":
|
|
2109
|
+
"aria-describedby": m.value
|
|
1353
2110
|
}), null, 16, ["id", "aria-labelledby", "aria-invalid", "aria-describedby"])
|
|
1354
2111
|
]),
|
|
1355
2112
|
_: 1
|
|
1356
2113
|
}, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
|
|
1357
|
-
e.hint ? (
|
|
2114
|
+
e.hint ? (o(), u("span", {
|
|
1358
2115
|
key: 1,
|
|
1359
2116
|
id: a(l).hintId,
|
|
1360
2117
|
class: "nb-field__hint"
|
|
1361
|
-
}, p(e.hint), 9,
|
|
1362
|
-
e.error ? (
|
|
2118
|
+
}, p(e.hint), 9, xn)) : g("", !0),
|
|
2119
|
+
e.error ? (o(), u("span", {
|
|
1363
2120
|
key: 2,
|
|
1364
2121
|
id: a(l).errorId,
|
|
1365
2122
|
class: "nb-field__error"
|
|
1366
|
-
}, p(e.error), 9,
|
|
2123
|
+
}, p(e.error), 9, In)) : g("", !0)
|
|
1367
2124
|
]));
|
|
1368
2125
|
}
|
|
1369
|
-
}),
|
|
2126
|
+
}), Vn = /* @__PURE__ */ _({
|
|
1370
2127
|
__name: "NbSkeleton",
|
|
1371
2128
|
props: {
|
|
1372
2129
|
width: { default: "100%" },
|
|
@@ -1374,32 +2131,32 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1374
2131
|
rounded: { type: Boolean, default: !1 }
|
|
1375
2132
|
},
|
|
1376
2133
|
setup(e) {
|
|
1377
|
-
const
|
|
1378
|
-
return (s, l) => (
|
|
1379
|
-
class:
|
|
1380
|
-
style:
|
|
2134
|
+
const n = e, t = N(() => ({ width: n.width, height: n.height }));
|
|
2135
|
+
return (s, l) => (o(), u("div", {
|
|
2136
|
+
class: I(["nb-root nb-skeleton", { "nb-skeleton--rounded": e.rounded }]),
|
|
2137
|
+
style: L(t.value),
|
|
1381
2138
|
"aria-hidden": "true"
|
|
1382
2139
|
}, null, 6));
|
|
1383
2140
|
}
|
|
1384
|
-
}),
|
|
2141
|
+
}), Bn = ["aria-label"], wn = /* @__PURE__ */ _({
|
|
1385
2142
|
__name: "NbSpinner",
|
|
1386
2143
|
props: {
|
|
1387
2144
|
label: { default: "Loading" },
|
|
1388
2145
|
size: { default: "md" }
|
|
1389
2146
|
},
|
|
1390
2147
|
setup(e) {
|
|
1391
|
-
return (
|
|
2148
|
+
return (n, t) => (o(), u("span", {
|
|
1392
2149
|
class: "nb-root nb-spinner-wrap",
|
|
1393
2150
|
role: "status",
|
|
1394
2151
|
"aria-label": e.label
|
|
1395
2152
|
}, [
|
|
1396
|
-
|
|
1397
|
-
class:
|
|
2153
|
+
f("span", {
|
|
2154
|
+
class: I(["nb-spinner", `nb-spinner--${e.size}`]),
|
|
1398
2155
|
"aria-hidden": "true"
|
|
1399
2156
|
}, null, 2)
|
|
1400
|
-
], 8,
|
|
2157
|
+
], 8, Bn));
|
|
1401
2158
|
}
|
|
1402
|
-
}),
|
|
2159
|
+
}), Sn = ["for"], Tn = ["id", "checked", "disabled", "aria-checked", "aria-describedby"], Mn = { class: "nb-switch__content" }, An = { class: "nb-switch__label" }, Dn = ["id"], On = /* @__PURE__ */ _({
|
|
1403
2160
|
inheritAttrs: !1,
|
|
1404
2161
|
__name: "NbSwitch",
|
|
1405
2162
|
props: {
|
|
@@ -1410,13 +2167,13 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1410
2167
|
id: {}
|
|
1411
2168
|
},
|
|
1412
2169
|
emits: ["update:modelValue"],
|
|
1413
|
-
setup(e, { emit:
|
|
1414
|
-
const t = e, s =
|
|
1415
|
-
return (b,
|
|
1416
|
-
class:
|
|
2170
|
+
setup(e, { emit: n }) {
|
|
2171
|
+
const t = e, s = n, l = S("switch", t.id);
|
|
2172
|
+
return (b, m) => (o(), u("label", {
|
|
2173
|
+
class: I(["nb-root nb-switch", { "is-disabled": e.disabled }]),
|
|
1417
2174
|
for: a(l).inputId
|
|
1418
2175
|
}, [
|
|
1419
|
-
|
|
2176
|
+
f("input", x(b.$attrs, {
|
|
1420
2177
|
id: a(l).inputId,
|
|
1421
2178
|
class: "nb-switch__input",
|
|
1422
2179
|
type: "checkbox",
|
|
@@ -1425,31 +2182,31 @@ const Dt = ["for"], Rt = ["id", "checked", "disabled"], qt = { class: "nb-checkb
|
|
|
1425
2182
|
disabled: e.disabled,
|
|
1426
2183
|
"aria-checked": e.modelValue ? "true" : "false",
|
|
1427
2184
|
"aria-describedby": e.description ? a(l).hintId : void 0,
|
|
1428
|
-
onChange:
|
|
1429
|
-
}), null, 16,
|
|
1430
|
-
|
|
2185
|
+
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
2186
|
+
}), null, 16, Tn),
|
|
2187
|
+
m[1] || (m[1] = f("span", {
|
|
1431
2188
|
class: "nb-switch__track",
|
|
1432
2189
|
"aria-hidden": "true"
|
|
1433
2190
|
}, [
|
|
1434
|
-
|
|
2191
|
+
f("span", { class: "nb-switch__thumb" })
|
|
1435
2192
|
], -1)),
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
e.description ? (
|
|
2193
|
+
f("span", Mn, [
|
|
2194
|
+
f("span", An, p(e.label), 1),
|
|
2195
|
+
e.description ? (o(), u("span", {
|
|
1439
2196
|
key: 0,
|
|
1440
2197
|
id: a(l).hintId,
|
|
1441
2198
|
class: "nb-switch__description"
|
|
1442
|
-
}, p(e.description), 9,
|
|
2199
|
+
}, p(e.description), 9, Dn)) : g("", !0)
|
|
1443
2200
|
])
|
|
1444
|
-
], 10,
|
|
2201
|
+
], 10, Sn));
|
|
1445
2202
|
}
|
|
1446
|
-
}),
|
|
1447
|
-
function
|
|
1448
|
-
const e =
|
|
2203
|
+
}), se = /* @__PURE__ */ Symbol("nb-tabs");
|
|
2204
|
+
function U() {
|
|
2205
|
+
const e = be(se);
|
|
1449
2206
|
if (!e) throw new Error("Tabs components must be used inside NbTabs");
|
|
1450
2207
|
return e;
|
|
1451
2208
|
}
|
|
1452
|
-
const
|
|
2209
|
+
const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
|
|
1453
2210
|
__name: "NbTabs",
|
|
1454
2211
|
props: {
|
|
1455
2212
|
modelValue: {},
|
|
@@ -1457,32 +2214,32 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1457
2214
|
orientation: { default: "horizontal" }
|
|
1458
2215
|
},
|
|
1459
2216
|
emits: ["update:modelValue"],
|
|
1460
|
-
setup(e, { emit:
|
|
1461
|
-
const t = e, s =
|
|
1462
|
-
function
|
|
1463
|
-
t.modelValue === void 0 && (b.value =
|
|
2217
|
+
setup(e, { emit: n }) {
|
|
2218
|
+
const t = e, s = n, l = M("tabs"), b = V(t.defaultValue), m = N(() => t.modelValue ?? b.value), i = N(() => t.orientation), r = ($) => encodeURIComponent($);
|
|
2219
|
+
function v($) {
|
|
2220
|
+
t.modelValue === void 0 && (b.value = $), s("update:modelValue", $);
|
|
1464
2221
|
}
|
|
1465
|
-
return
|
|
1466
|
-
activeValue:
|
|
1467
|
-
orientation:
|
|
1468
|
-
select:
|
|
1469
|
-
triggerId: (
|
|
1470
|
-
panelId: (
|
|
1471
|
-
}), (
|
|
1472
|
-
class:
|
|
1473
|
-
"data-orientation":
|
|
2222
|
+
return fe(se, {
|
|
2223
|
+
activeValue: m,
|
|
2224
|
+
orientation: i,
|
|
2225
|
+
select: v,
|
|
2226
|
+
triggerId: ($) => `${l}-tab-${r($)}`,
|
|
2227
|
+
panelId: ($) => `${l}-panel-${r($)}`
|
|
2228
|
+
}), ($, P) => (o(), u("div", {
|
|
2229
|
+
class: I(["nb-root nb-tabs", `nb-tabs--${i.value}`]),
|
|
2230
|
+
"data-orientation": i.value
|
|
1474
2231
|
}, [
|
|
1475
|
-
|
|
1476
|
-
], 10,
|
|
2232
|
+
h($.$slots, "default")
|
|
2233
|
+
], 10, Pn));
|
|
1477
2234
|
}
|
|
1478
|
-
}),
|
|
2235
|
+
}), Ln = ["id", "aria-labelledby", "hidden"], Un = /* @__PURE__ */ _({
|
|
1479
2236
|
__name: "NbTabsContent",
|
|
1480
2237
|
props: {
|
|
1481
2238
|
value: {}
|
|
1482
2239
|
},
|
|
1483
2240
|
setup(e) {
|
|
1484
|
-
const
|
|
1485
|
-
return (l, b) =>
|
|
2241
|
+
const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
|
|
2242
|
+
return (l, b) => me((o(), u("div", {
|
|
1486
2243
|
class: "nb-tabs__content",
|
|
1487
2244
|
role: "tabpanel",
|
|
1488
2245
|
id: a(t).panelId(e.value),
|
|
@@ -1490,43 +2247,43 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1490
2247
|
hidden: !s.value,
|
|
1491
2248
|
tabindex: "0"
|
|
1492
2249
|
}, [
|
|
1493
|
-
|
|
1494
|
-
], 8,
|
|
1495
|
-
[
|
|
2250
|
+
h(l.$slots, "default")
|
|
2251
|
+
], 8, Ln)), [
|
|
2252
|
+
[pe, s.value]
|
|
1496
2253
|
]);
|
|
1497
2254
|
}
|
|
1498
|
-
}),
|
|
2255
|
+
}), Gn = ["aria-orientation"], qn = /* @__PURE__ */ _({
|
|
1499
2256
|
__name: "NbTabsList",
|
|
1500
2257
|
setup(e) {
|
|
1501
|
-
const { orientation:
|
|
2258
|
+
const { orientation: n } = U();
|
|
1502
2259
|
function t(s) {
|
|
1503
|
-
const l =
|
|
2260
|
+
const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
|
|
1504
2261
|
if (![l, b, "Home", "End"].includes(s.key)) return;
|
|
1505
|
-
const
|
|
1506
|
-
if (!
|
|
2262
|
+
const m = s.currentTarget, i = Array.from(m.querySelectorAll('[role="tab"]:not(:disabled)')), r = s.target.closest('[role="tab"]'), v = r ? i.indexOf(r) : -1;
|
|
2263
|
+
if (!i.length || v < 0) return;
|
|
1507
2264
|
s.preventDefault();
|
|
1508
|
-
const
|
|
1509
|
-
|
|
2265
|
+
const $ = s.key === "Home" ? 0 : s.key === "End" ? i.length - 1 : (v + (s.key === b ? 1 : -1) + i.length) % i.length;
|
|
2266
|
+
i[$]?.focus(), i[$]?.click();
|
|
1510
2267
|
}
|
|
1511
|
-
return (s, l) => (
|
|
2268
|
+
return (s, l) => (o(), u("div", {
|
|
1512
2269
|
class: "nb-tabs__list",
|
|
1513
2270
|
role: "tablist",
|
|
1514
|
-
"aria-orientation": a(
|
|
2271
|
+
"aria-orientation": a(n),
|
|
1515
2272
|
onKeydown: t
|
|
1516
2273
|
}, [
|
|
1517
|
-
|
|
1518
|
-
], 40,
|
|
2274
|
+
h(s.$slots, "default")
|
|
2275
|
+
], 40, Gn));
|
|
1519
2276
|
}
|
|
1520
|
-
}),
|
|
2277
|
+
}), En = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], zn = /* @__PURE__ */ _({
|
|
1521
2278
|
__name: "NbTabsTrigger",
|
|
1522
2279
|
props: {
|
|
1523
2280
|
value: {},
|
|
1524
2281
|
disabled: { type: Boolean, default: !1 }
|
|
1525
2282
|
},
|
|
1526
2283
|
setup(e) {
|
|
1527
|
-
const
|
|
1528
|
-
return (l, b) => (
|
|
1529
|
-
class:
|
|
2284
|
+
const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
|
|
2285
|
+
return (l, b) => (o(), u("button", {
|
|
2286
|
+
class: I(["nb-tabs__trigger", { "is-active": s.value }]),
|
|
1530
2287
|
id: a(t).triggerId(e.value),
|
|
1531
2288
|
type: "button",
|
|
1532
2289
|
role: "tab",
|
|
@@ -1535,12 +2292,12 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1535
2292
|
tabindex: s.value ? 0 : -1,
|
|
1536
2293
|
disabled: e.disabled,
|
|
1537
2294
|
"data-active": s.value ? "" : void 0,
|
|
1538
|
-
onClick: b[0] || (b[0] = (
|
|
2295
|
+
onClick: b[0] || (b[0] = (m) => a(t).select(e.value))
|
|
1539
2296
|
}, [
|
|
1540
|
-
|
|
1541
|
-
], 10,
|
|
2297
|
+
h(l.$slots, "default")
|
|
2298
|
+
], 10, En));
|
|
1542
2299
|
}
|
|
1543
|
-
}),
|
|
2300
|
+
}), Fn = { class: "nb-root nb-field" }, Hn = ["for"], Kn = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], jn = ["id"], Xn = ["id"], Jn = /* @__PURE__ */ _({
|
|
1544
2301
|
inheritAttrs: !1,
|
|
1545
2302
|
__name: "NbTextarea",
|
|
1546
2303
|
props: {
|
|
@@ -1552,50 +2309,50 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1552
2309
|
id: {}
|
|
1553
2310
|
},
|
|
1554
2311
|
emits: ["update:modelValue"],
|
|
1555
|
-
setup(e, { emit:
|
|
1556
|
-
const t = e, s =
|
|
1557
|
-
return (
|
|
1558
|
-
e.label ? (
|
|
2312
|
+
setup(e, { emit: n }) {
|
|
2313
|
+
const t = e, s = n, l = S("textarea", t.id), b = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
2314
|
+
return (m, i) => (o(), u("div", Fn, [
|
|
2315
|
+
e.label ? (o(), u("label", {
|
|
1559
2316
|
key: 0,
|
|
1560
2317
|
class: "nb-field__label",
|
|
1561
2318
|
for: a(l).inputId
|
|
1562
|
-
}, p(e.label), 9,
|
|
1563
|
-
|
|
2319
|
+
}, p(e.label), 9, Hn)) : g("", !0),
|
|
2320
|
+
f("textarea", x(m.$attrs, {
|
|
1564
2321
|
id: a(l).inputId,
|
|
1565
2322
|
class: "nb-field__control nb-field__control--textarea",
|
|
1566
2323
|
value: e.modelValue,
|
|
1567
2324
|
disabled: e.disabled,
|
|
1568
2325
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1569
2326
|
"aria-describedby": b.value,
|
|
1570
|
-
onInput:
|
|
1571
|
-
}), null, 16,
|
|
1572
|
-
e.hint ? (
|
|
2327
|
+
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
2328
|
+
}), null, 16, Kn),
|
|
2329
|
+
e.hint ? (o(), u("span", {
|
|
1573
2330
|
key: 1,
|
|
1574
2331
|
id: a(l).hintId,
|
|
1575
2332
|
class: "nb-field__hint"
|
|
1576
|
-
}, p(e.hint), 9,
|
|
1577
|
-
e.error ? (
|
|
2333
|
+
}, p(e.hint), 9, jn)) : g("", !0),
|
|
2334
|
+
e.error ? (o(), u("span", {
|
|
1578
2335
|
key: 2,
|
|
1579
2336
|
id: a(l).errorId,
|
|
1580
2337
|
class: "nb-field__error"
|
|
1581
|
-
}, p(e.error), 9,
|
|
2338
|
+
}, p(e.error), 9, Xn)) : g("", !0)
|
|
1582
2339
|
]));
|
|
1583
2340
|
}
|
|
1584
|
-
}),
|
|
2341
|
+
}), Qn = { class: "nb-root nb-table-wrap" }, Wn = { key: 0 }, Yn = /* @__PURE__ */ _({
|
|
1585
2342
|
inheritAttrs: !1,
|
|
1586
2343
|
__name: "NbTable",
|
|
1587
2344
|
props: {
|
|
1588
2345
|
caption: {}
|
|
1589
2346
|
},
|
|
1590
2347
|
setup(e) {
|
|
1591
|
-
return (
|
|
1592
|
-
|
|
1593
|
-
e.caption ? (
|
|
1594
|
-
|
|
2348
|
+
return (n, t) => (o(), u("div", Qn, [
|
|
2349
|
+
f("table", x(n.$attrs, { class: "nb-table" }), [
|
|
2350
|
+
e.caption ? (o(), u("caption", Wn, p(e.caption), 1)) : g("", !0),
|
|
2351
|
+
h(n.$slots, "default")
|
|
1595
2352
|
], 16)
|
|
1596
2353
|
]));
|
|
1597
2354
|
}
|
|
1598
|
-
}),
|
|
2355
|
+
}), Zn = { class: "nb-toast__content" }, eo = /* @__PURE__ */ _({
|
|
1599
2356
|
__name: "NbToast",
|
|
1600
2357
|
props: {
|
|
1601
2358
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1606,64 +2363,92 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1606
2363
|
duration: { default: 5e3 }
|
|
1607
2364
|
},
|
|
1608
2365
|
emits: ["update:open"],
|
|
1609
|
-
setup(e, { emit:
|
|
1610
|
-
const t = e, s =
|
|
1611
|
-
|
|
1612
|
-
|
|
2366
|
+
setup(e, { emit: n }) {
|
|
2367
|
+
const t = e, s = n, l = V(t.open ?? t.defaultOpen), b = N(() => t.open ?? l.value);
|
|
2368
|
+
w(() => t.open, (i) => {
|
|
2369
|
+
i !== void 0 && (l.value = i);
|
|
1613
2370
|
});
|
|
1614
|
-
function
|
|
1615
|
-
l.value =
|
|
2371
|
+
function m(i) {
|
|
2372
|
+
l.value = i, s("update:open", i);
|
|
1616
2373
|
}
|
|
1617
|
-
return (
|
|
2374
|
+
return (i, r) => (o(), y(a(Yt), {
|
|
1618
2375
|
label: "Notification",
|
|
1619
2376
|
duration: e.duration
|
|
1620
2377
|
}, {
|
|
1621
|
-
default:
|
|
1622
|
-
|
|
1623
|
-
class:
|
|
2378
|
+
default: d(() => [
|
|
2379
|
+
c(a(Zt), {
|
|
2380
|
+
class: I(["nb-root nb-toast", `nb-toast--${e.tone}`]),
|
|
1624
2381
|
open: b.value,
|
|
1625
2382
|
"default-open": e.defaultOpen,
|
|
1626
2383
|
type: "foreground",
|
|
1627
2384
|
role: "status",
|
|
1628
|
-
"onUpdate:open":
|
|
2385
|
+
"onUpdate:open": m
|
|
1629
2386
|
}, {
|
|
1630
|
-
default:
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
default:
|
|
1634
|
-
|
|
2387
|
+
default: d(() => [
|
|
2388
|
+
f("div", Zn, [
|
|
2389
|
+
c(a(ea), { class: "nb-toast__title" }, {
|
|
2390
|
+
default: d(() => [
|
|
2391
|
+
k(p(e.title), 1)
|
|
1635
2392
|
]),
|
|
1636
2393
|
_: 1
|
|
1637
2394
|
}),
|
|
1638
|
-
e.description ? (
|
|
2395
|
+
e.description ? (o(), y(a(ta), {
|
|
1639
2396
|
key: 0,
|
|
1640
2397
|
class: "nb-toast__description"
|
|
1641
2398
|
}, {
|
|
1642
|
-
default:
|
|
1643
|
-
|
|
2399
|
+
default: d(() => [
|
|
2400
|
+
k(p(e.description), 1)
|
|
1644
2401
|
]),
|
|
1645
2402
|
_: 1
|
|
1646
|
-
})) :
|
|
1647
|
-
|
|
2403
|
+
})) : g("", !0),
|
|
2404
|
+
h(i.$slots, "default")
|
|
1648
2405
|
]),
|
|
1649
|
-
|
|
2406
|
+
c(a(aa), {
|
|
1650
2407
|
class: "nb-overlay-close",
|
|
1651
2408
|
"aria-label": "Dismiss notification"
|
|
1652
2409
|
}, {
|
|
1653
|
-
default:
|
|
1654
|
-
|
|
2410
|
+
default: d(() => [...r[0] || (r[0] = [
|
|
2411
|
+
k("×", -1)
|
|
1655
2412
|
])]),
|
|
1656
2413
|
_: 1
|
|
1657
2414
|
})
|
|
1658
2415
|
]),
|
|
1659
2416
|
_: 3
|
|
1660
2417
|
}, 8, ["class", "open", "default-open"]),
|
|
1661
|
-
|
|
2418
|
+
c(a(la), { class: "nb-root nb-toast-viewport" })
|
|
1662
2419
|
]),
|
|
1663
2420
|
_: 3
|
|
1664
2421
|
}, 8, ["duration"]));
|
|
1665
2422
|
}
|
|
1666
|
-
}),
|
|
2423
|
+
}), to = /* @__PURE__ */ _({
|
|
2424
|
+
inheritAttrs: !1,
|
|
2425
|
+
__name: "NbToggle",
|
|
2426
|
+
props: {
|
|
2427
|
+
modelValue: { type: Boolean },
|
|
2428
|
+
defaultValue: { type: Boolean },
|
|
2429
|
+
disabled: { type: Boolean, default: !1 },
|
|
2430
|
+
label: {},
|
|
2431
|
+
tone: { default: "primary" },
|
|
2432
|
+
size: { default: "md" }
|
|
2433
|
+
},
|
|
2434
|
+
emits: ["update:modelValue"],
|
|
2435
|
+
setup(e, { emit: n }) {
|
|
2436
|
+
const t = e, s = n, l = N(() => O(`nb-toggle--${t.tone}`, `nb-toggle--${t.size}`));
|
|
2437
|
+
return (b, m) => (o(), y(a(na), x(b.$attrs, {
|
|
2438
|
+
class: ["nb-root nb-toggle", l.value],
|
|
2439
|
+
"model-value": e.modelValue,
|
|
2440
|
+
"default-value": e.defaultValue,
|
|
2441
|
+
disabled: e.disabled,
|
|
2442
|
+
"aria-label": e.label,
|
|
2443
|
+
"onUpdate:modelValue": m[0] || (m[0] = (i) => s("update:modelValue", i))
|
|
2444
|
+
}), {
|
|
2445
|
+
default: d(() => [
|
|
2446
|
+
h(b.$slots, "default")
|
|
2447
|
+
]),
|
|
2448
|
+
_: 3
|
|
2449
|
+
}, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
|
|
2450
|
+
}
|
|
2451
|
+
}), ao = { class: "nb-root nb-field" }, lo = ["id"], no = ["id"], oo = /* @__PURE__ */ _({
|
|
1667
2452
|
inheritAttrs: !1,
|
|
1668
2453
|
__name: "NbToggleGroup",
|
|
1669
2454
|
props: {
|
|
@@ -1679,18 +2464,18 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1679
2464
|
id: {}
|
|
1680
2465
|
},
|
|
1681
2466
|
emits: ["update:modelValue"],
|
|
1682
|
-
setup(e, { emit:
|
|
1683
|
-
const t = e, s =
|
|
1684
|
-
function
|
|
1685
|
-
(typeof r == "string" || Array.isArray(r) && r.every((
|
|
2467
|
+
setup(e, { emit: n }) {
|
|
2468
|
+
const t = e, s = n, l = S("toggle-group", t.id), b = `${l.inputId}-label`, m = N(() => D(t.hint, t.error, l.hintId, l.errorId));
|
|
2469
|
+
function i(r) {
|
|
2470
|
+
(typeof r == "string" || Array.isArray(r) && r.every((v) => typeof v == "string")) && s("update:modelValue", r);
|
|
1686
2471
|
}
|
|
1687
|
-
return (r,
|
|
1688
|
-
e.label ? (
|
|
2472
|
+
return (r, v) => (o(), u("div", ao, [
|
|
2473
|
+
e.label ? (o(), u("span", {
|
|
1689
2474
|
key: 0,
|
|
1690
2475
|
id: b,
|
|
1691
2476
|
class: "nb-field__label"
|
|
1692
|
-
}, p(e.label), 1)) :
|
|
1693
|
-
|
|
2477
|
+
}, p(e.label), 1)) : g("", !0),
|
|
2478
|
+
c(a(oa), x(r.$attrs, {
|
|
1694
2479
|
id: a(l).inputId,
|
|
1695
2480
|
class: "nb-toggle-group",
|
|
1696
2481
|
"model-value": e.modelValue,
|
|
@@ -1702,27 +2487,27 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1702
2487
|
"data-orientation": e.orientation,
|
|
1703
2488
|
"aria-labelledby": e.label ? b : void 0,
|
|
1704
2489
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1705
|
-
"aria-describedby":
|
|
1706
|
-
"onUpdate:modelValue":
|
|
2490
|
+
"aria-describedby": m.value,
|
|
2491
|
+
"onUpdate:modelValue": i
|
|
1707
2492
|
}), {
|
|
1708
|
-
default:
|
|
1709
|
-
|
|
2493
|
+
default: d(() => [
|
|
2494
|
+
h(r.$slots, "default")
|
|
1710
2495
|
]),
|
|
1711
2496
|
_: 3
|
|
1712
2497
|
}, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
|
|
1713
|
-
e.hint ? (
|
|
2498
|
+
e.hint ? (o(), u("span", {
|
|
1714
2499
|
key: 1,
|
|
1715
2500
|
id: a(l).hintId,
|
|
1716
2501
|
class: "nb-field__hint"
|
|
1717
|
-
}, p(e.hint), 9,
|
|
1718
|
-
e.error ? (
|
|
2502
|
+
}, p(e.hint), 9, lo)) : g("", !0),
|
|
2503
|
+
e.error ? (o(), u("span", {
|
|
1719
2504
|
key: 2,
|
|
1720
2505
|
id: a(l).errorId,
|
|
1721
2506
|
class: "nb-field__error"
|
|
1722
|
-
}, p(e.error), 9,
|
|
2507
|
+
}, p(e.error), 9, no)) : g("", !0)
|
|
1723
2508
|
]));
|
|
1724
2509
|
}
|
|
1725
|
-
}),
|
|
2510
|
+
}), so = /* @__PURE__ */ _({
|
|
1726
2511
|
inheritAttrs: !1,
|
|
1727
2512
|
__name: "NbToggleGroupItem",
|
|
1728
2513
|
props: {
|
|
@@ -1730,146 +2515,184 @@ const cl = ["data-orientation"], bl = /* @__PURE__ */ v({
|
|
|
1730
2515
|
disabled: { type: Boolean, default: !1 }
|
|
1731
2516
|
},
|
|
1732
2517
|
setup(e) {
|
|
1733
|
-
return (
|
|
2518
|
+
return (n, t) => (o(), y(a(sa), x(n.$attrs, {
|
|
1734
2519
|
class: "nb-toggle-group__item",
|
|
1735
2520
|
value: e.value,
|
|
1736
2521
|
disabled: e.disabled
|
|
1737
2522
|
}), {
|
|
1738
|
-
default:
|
|
1739
|
-
|
|
2523
|
+
default: d(() => [
|
|
2524
|
+
h(n.$slots, "default")
|
|
1740
2525
|
]),
|
|
1741
2526
|
_: 3
|
|
1742
2527
|
}, 16, ["value", "disabled"]));
|
|
1743
2528
|
}
|
|
1744
|
-
}),
|
|
2529
|
+
}), io = ["aria-describedby"], ro = ["id", "hidden"], uo = /* @__PURE__ */ _({
|
|
1745
2530
|
__name: "NbTooltip",
|
|
1746
2531
|
props: {
|
|
1747
2532
|
content: {}
|
|
1748
2533
|
},
|
|
1749
2534
|
setup(e) {
|
|
1750
|
-
const
|
|
2535
|
+
const n = e, t = V(!1), s = M("tooltip");
|
|
1751
2536
|
function l() {
|
|
1752
2537
|
t.value = !0;
|
|
1753
2538
|
}
|
|
1754
2539
|
function b() {
|
|
1755
2540
|
t.value = !1;
|
|
1756
2541
|
}
|
|
1757
|
-
function
|
|
1758
|
-
|
|
2542
|
+
function m(i) {
|
|
2543
|
+
i.key === "Escape" && b();
|
|
1759
2544
|
}
|
|
1760
|
-
return (
|
|
2545
|
+
return (i, r) => (o(), u("span", {
|
|
1761
2546
|
class: "nb-root nb-tooltip",
|
|
1762
2547
|
onMouseenter: l,
|
|
1763
2548
|
onMouseleave: b
|
|
1764
2549
|
}, [
|
|
1765
|
-
|
|
2550
|
+
f("span", {
|
|
1766
2551
|
class: "nb-tooltip__trigger",
|
|
1767
2552
|
tabindex: "0",
|
|
1768
2553
|
"aria-describedby": a(s),
|
|
1769
2554
|
onFocus: l,
|
|
1770
2555
|
onBlur: b,
|
|
1771
|
-
onKeydown:
|
|
2556
|
+
onKeydown: m
|
|
1772
2557
|
}, [
|
|
1773
|
-
|
|
1774
|
-
], 40,
|
|
1775
|
-
|
|
2558
|
+
h(i.$slots, "default")
|
|
2559
|
+
], 40, io),
|
|
2560
|
+
f("span", {
|
|
1776
2561
|
id: a(s),
|
|
1777
2562
|
class: "nb-tooltip__content",
|
|
1778
2563
|
role: "tooltip",
|
|
1779
2564
|
hidden: !t.value
|
|
1780
2565
|
}, [
|
|
1781
|
-
|
|
1782
|
-
|
|
2566
|
+
h(i.$slots, "content", {}, () => [
|
|
2567
|
+
k(p(n.content), 1)
|
|
1783
2568
|
])
|
|
1784
|
-
], 8,
|
|
2569
|
+
], 8, ro)
|
|
1785
2570
|
], 32));
|
|
1786
2571
|
}
|
|
1787
|
-
}),
|
|
1788
|
-
NbAccordion:
|
|
1789
|
-
NbAccordionItem:
|
|
1790
|
-
NbAlert:
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
2572
|
+
}), fo = ia({
|
|
2573
|
+
NbAccordion: da,
|
|
2574
|
+
NbAccordionItem: ua,
|
|
2575
|
+
NbAlert: tl,
|
|
2576
|
+
NbAlertDialog: ll,
|
|
2577
|
+
NbAspectRatio: ca,
|
|
2578
|
+
NbAvatar: fa,
|
|
2579
|
+
NbBadge: ba,
|
|
2580
|
+
NbBreadcrumbs: ha,
|
|
2581
|
+
NbButton: $a,
|
|
2582
|
+
NbButtonGroup: ka,
|
|
2583
|
+
NbCard: Va,
|
|
2584
|
+
NbCheckbox: Ta,
|
|
2585
|
+
NbCombobox: Pa,
|
|
2586
|
+
NbCommand: Ua,
|
|
2587
|
+
NbContextMenu: Ga,
|
|
2588
|
+
NbContextMenuCheckboxItem: qa,
|
|
2589
|
+
NbContextMenuItem: Ea,
|
|
2590
|
+
NbContextMenuLabel: za,
|
|
2591
|
+
NbContextMenuRadioGroup: Fa,
|
|
2592
|
+
NbContextMenuRadioItem: Ha,
|
|
2593
|
+
NbContextMenuSeparator: Ka,
|
|
2594
|
+
NbContextMenuShortcut: Wa,
|
|
2595
|
+
NbContextMenuSub: Ya,
|
|
2596
|
+
NbDialog: il,
|
|
2597
|
+
NbDropdownMenu: dl,
|
|
2598
|
+
NbDropdownMenuItem: rl,
|
|
2599
|
+
NbDropdownMenuSeparator: ul,
|
|
2600
|
+
NbEmptyState: _l,
|
|
2601
|
+
NbFieldset: yl,
|
|
2602
|
+
NbHoverCard: Ml,
|
|
2603
|
+
NbInput: Cl,
|
|
2604
|
+
NbInputGroup: Tl,
|
|
2605
|
+
NbKbd: Al,
|
|
2606
|
+
NbLink: Dl,
|
|
2607
|
+
NbMarker: Ol,
|
|
2608
|
+
NbNavigationMenu: Ul,
|
|
2609
|
+
NbNumberInput: Fl,
|
|
2610
|
+
NbPagination: Hl,
|
|
2611
|
+
NbPopover: Jl,
|
|
2612
|
+
NbProgress: Yl,
|
|
2613
|
+
NbRadioGroup: dn,
|
|
2614
|
+
NbScrollArea: rn,
|
|
2615
|
+
NbSheet: fn,
|
|
2616
|
+
NbSelect: hn,
|
|
2617
|
+
NbSelectItem: gn,
|
|
2618
|
+
NbSeparator: yn,
|
|
2619
|
+
NbSkeleton: Vn,
|
|
2620
|
+
NbSlider: Cn,
|
|
2621
|
+
NbSpinner: wn,
|
|
2622
|
+
NbSwitch: On,
|
|
2623
|
+
NbTable: Yn,
|
|
2624
|
+
NbTabs: Rn,
|
|
2625
|
+
NbTabsContent: Un,
|
|
2626
|
+
NbTabsList: qn,
|
|
2627
|
+
NbTabsTrigger: zn,
|
|
2628
|
+
NbTextarea: Jn,
|
|
2629
|
+
NbToast: eo,
|
|
2630
|
+
NbToggle: to,
|
|
2631
|
+
NbToggleGroup: oo,
|
|
2632
|
+
NbToggleGroupItem: so,
|
|
2633
|
+
NbTooltip: uo
|
|
1830
2634
|
});
|
|
1831
2635
|
export {
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
2636
|
+
da as NbAccordion,
|
|
2637
|
+
ua as NbAccordionItem,
|
|
2638
|
+
tl as NbAlert,
|
|
2639
|
+
ll as NbAlertDialog,
|
|
2640
|
+
ca as NbAspectRatio,
|
|
2641
|
+
fa as NbAvatar,
|
|
2642
|
+
ba as NbBadge,
|
|
2643
|
+
ha as NbBreadcrumbs,
|
|
2644
|
+
$a as NbButton,
|
|
2645
|
+
ka as NbButtonGroup,
|
|
2646
|
+
Va as NbCard,
|
|
2647
|
+
Ta as NbCheckbox,
|
|
2648
|
+
Pa as NbCombobox,
|
|
2649
|
+
Ua as NbCommand,
|
|
2650
|
+
Ga as NbContextMenu,
|
|
2651
|
+
qa as NbContextMenuCheckboxItem,
|
|
2652
|
+
Ea as NbContextMenuItem,
|
|
2653
|
+
za as NbContextMenuLabel,
|
|
2654
|
+
Fa as NbContextMenuRadioGroup,
|
|
2655
|
+
Ha as NbContextMenuRadioItem,
|
|
2656
|
+
Ka as NbContextMenuSeparator,
|
|
2657
|
+
Wa as NbContextMenuShortcut,
|
|
2658
|
+
Ya as NbContextMenuSub,
|
|
2659
|
+
il as NbDialog,
|
|
2660
|
+
dl as NbDropdownMenu,
|
|
2661
|
+
rl as NbDropdownMenuItem,
|
|
2662
|
+
ul as NbDropdownMenuSeparator,
|
|
2663
|
+
_l as NbEmptyState,
|
|
2664
|
+
yl as NbFieldset,
|
|
2665
|
+
Ml as NbHoverCard,
|
|
2666
|
+
Cl as NbInput,
|
|
2667
|
+
Tl as NbInputGroup,
|
|
2668
|
+
Al as NbKbd,
|
|
2669
|
+
Dl as NbLink,
|
|
2670
|
+
Ol as NbMarker,
|
|
2671
|
+
Ul as NbNavigationMenu,
|
|
2672
|
+
Fl as NbNumberInput,
|
|
2673
|
+
Hl as NbPagination,
|
|
2674
|
+
Jl as NbPopover,
|
|
2675
|
+
Yl as NbProgress,
|
|
2676
|
+
dn as NbRadioGroup,
|
|
2677
|
+
rn as NbScrollArea,
|
|
2678
|
+
hn as NbSelect,
|
|
2679
|
+
gn as NbSelectItem,
|
|
2680
|
+
yn as NbSeparator,
|
|
2681
|
+
fn as NbSheet,
|
|
2682
|
+
Vn as NbSkeleton,
|
|
2683
|
+
Cn as NbSlider,
|
|
2684
|
+
wn as NbSpinner,
|
|
2685
|
+
On as NbSwitch,
|
|
2686
|
+
Yn as NbTable,
|
|
2687
|
+
Rn as NbTabs,
|
|
2688
|
+
Un as NbTabsContent,
|
|
2689
|
+
qn as NbTabsList,
|
|
2690
|
+
zn as NbTabsTrigger,
|
|
2691
|
+
Jn as NbTextarea,
|
|
2692
|
+
eo as NbToast,
|
|
2693
|
+
to as NbToggle,
|
|
2694
|
+
oo as NbToggleGroup,
|
|
2695
|
+
so as NbToggleGroupItem,
|
|
2696
|
+
uo as NbTooltip,
|
|
2697
|
+
fo as NeoBrutalVue
|
|
1875
2698
|
};
|