@neobrut-vue/core 0.2.0 → 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 +5 -0
- package/README.md +37 -2
- package/dist/components/NbAlertDialog/NbAlertDialog.vue.d.ts +40 -0
- package/dist/components/NbAlertDialog/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/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/index.d.ts +10 -1
- package/dist/neobrut-vue.css +1 -1
- package/dist/neobrut-vue.js +1427 -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
5
|
install(n) {
|
|
6
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: {},
|
|
@@ -18,7 +18,7 @@ const gt = /* @__PURE__ */ v({
|
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(e, { emit: n }) {
|
|
20
20
|
const t = n;
|
|
21
|
-
return (s, l) => (o(),
|
|
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 gt = /* @__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 gt = /* @__PURE__ */ v({
|
|
|
41
41
|
disabled: { type: Boolean, default: !1 }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
return (n, t) => (o(),
|
|
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 gt = /* @__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 gt = /* @__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 (n, t) => (o(),
|
|
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 n = e, t =
|
|
109
|
-
return (s, l) => (o(),
|
|
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 Nt = /* @__PURE__ */ v({
|
|
|
121
121
|
tone: { default: "primary" }
|
|
122
122
|
},
|
|
123
123
|
setup(e) {
|
|
124
|
-
const n = e, t =
|
|
125
|
-
return (s, l) => (o(),
|
|
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 ? (o(),
|
|
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 Nt = /* @__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 (n, t) => (o(),
|
|
164
|
+
return (n, t) => (o(), u("nav", {
|
|
165
165
|
class: "nb-root nb-breadcrumbs",
|
|
166
166
|
"aria-label": e.label
|
|
167
167
|
}, [
|
|
168
|
-
|
|
169
|
-
(o(!0),
|
|
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 ? (o(),
|
|
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 ? (o(),
|
|
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,46 +198,46 @@ const Nt = /* @__PURE__ */ v({
|
|
|
198
198
|
disabled: { type: Boolean, default: !1 }
|
|
199
199
|
},
|
|
200
200
|
setup(e) {
|
|
201
|
-
const n = e, t =
|
|
201
|
+
const n = e, t = N(() => O(
|
|
202
202
|
`nb-button--${n.variant}`,
|
|
203
203
|
`nb-button--${n.size}`,
|
|
204
204
|
n.loading && "is-loading"
|
|
205
205
|
));
|
|
206
|
-
return (s, l) => (o(),
|
|
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 ? (o(),
|
|
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
219
|
__name: "NbButtonGroup",
|
|
220
220
|
props: {
|
|
221
221
|
orientation: { default: "horizontal" },
|
|
222
222
|
label: {}
|
|
223
223
|
},
|
|
224
224
|
setup(e) {
|
|
225
|
-
return (n, t) => (o(),
|
|
225
|
+
return (n, t) => (o(), u("div", {
|
|
226
226
|
class: "nb-root nb-button-group",
|
|
227
227
|
role: "group",
|
|
228
228
|
"aria-label": e.label,
|
|
229
229
|
"data-orientation": e.orientation
|
|
230
230
|
}, [
|
|
231
|
-
|
|
232
|
-
], 8,
|
|
231
|
+
h(n.$slots, "default")
|
|
232
|
+
], 8, Na));
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
234
|
+
}), xa = {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: "nb-card__header"
|
|
237
|
-
},
|
|
237
|
+
}, Ia = { class: "nb-card__body" }, Ca = {
|
|
238
238
|
key: 1,
|
|
239
239
|
class: "nb-card__footer"
|
|
240
|
-
},
|
|
240
|
+
}, Va = /* @__PURE__ */ _({
|
|
241
241
|
inheritAttrs: !1,
|
|
242
242
|
__name: "NbCard",
|
|
243
243
|
props: {
|
|
@@ -245,41 +245,41 @@ const Nt = /* @__PURE__ */ v({
|
|
|
245
245
|
interactive: { type: Boolean, default: !1 }
|
|
246
246
|
},
|
|
247
247
|
setup(e) {
|
|
248
|
-
const n = e, t =
|
|
248
|
+
const n = e, t = N(() => O(
|
|
249
249
|
`nb-card--${n.tone}`,
|
|
250
250
|
n.interactive && "nb-card--interactive"
|
|
251
251
|
));
|
|
252
|
-
return (s, l) => (o(),
|
|
252
|
+
return (s, l) => (o(), u("article", x(s.$attrs, {
|
|
253
253
|
class: ["nb-root nb-card", t.value]
|
|
254
254
|
}), [
|
|
255
|
-
s.$slots.header ? (o(),
|
|
256
|
-
|
|
257
|
-
])) :
|
|
258
|
-
|
|
259
|
-
|
|
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")
|
|
260
260
|
]),
|
|
261
|
-
s.$slots.footer ? (o(),
|
|
262
|
-
|
|
263
|
-
])) :
|
|
261
|
+
s.$slots.footer ? (o(), u("footer", Ca, [
|
|
262
|
+
h(s.$slots, "footer")
|
|
263
|
+
])) : g("", !0)
|
|
264
264
|
], 16));
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
|
-
let
|
|
268
|
-
function
|
|
269
|
-
return
|
|
267
|
+
let z = 0;
|
|
268
|
+
function M(e = "nb") {
|
|
269
|
+
return z += 1, `${e}-${z}`;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
const t = n ??
|
|
271
|
+
function S(e, n) {
|
|
272
|
+
const t = n ?? M(e);
|
|
273
273
|
return {
|
|
274
274
|
inputId: t,
|
|
275
275
|
hintId: `${t}-hint`,
|
|
276
276
|
errorId: `${t}-error`
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function D(e, n, t, s) {
|
|
280
280
|
return [e && t, n && s].filter(Boolean).join(" ") || void 0;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
282
|
+
const Ba = ["for"], wa = ["id", "checked", "disabled"], Sa = { class: "nb-checkbox__label" }, Ta = /* @__PURE__ */ _({
|
|
283
283
|
inheritAttrs: !1,
|
|
284
284
|
__name: "NbCheckbox",
|
|
285
285
|
props: {
|
|
@@ -290,27 +290,27 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
290
290
|
},
|
|
291
291
|
emits: ["update:modelValue"],
|
|
292
292
|
setup(e, { emit: n }) {
|
|
293
|
-
const t = e, s = n, l =
|
|
294
|
-
return (b,
|
|
293
|
+
const t = e, s = n, l = S("checkbox", t.id);
|
|
294
|
+
return (b, m) => (o(), u("label", {
|
|
295
295
|
class: "nb-root nb-checkbox",
|
|
296
296
|
for: a(l).inputId
|
|
297
297
|
}, [
|
|
298
|
-
|
|
298
|
+
f("input", x(b.$attrs, {
|
|
299
299
|
id: a(l).inputId,
|
|
300
300
|
class: "nb-checkbox__input",
|
|
301
301
|
type: "checkbox",
|
|
302
302
|
checked: e.modelValue,
|
|
303
303
|
disabled: e.disabled,
|
|
304
|
-
onChange:
|
|
305
|
-
}), null, 16,
|
|
306
|
-
|
|
304
|
+
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
305
|
+
}), null, 16, wa),
|
|
306
|
+
m[1] || (m[1] = f("span", {
|
|
307
307
|
class: "nb-checkbox__box",
|
|
308
308
|
"aria-hidden": "true"
|
|
309
309
|
}, "✓", -1)),
|
|
310
|
-
|
|
311
|
-
], 8,
|
|
310
|
+
f("span", Sa, p(e.label), 1)
|
|
311
|
+
], 8, Ba));
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), Ma = { class: "nb-root nb-field" }, Aa = ["for"], Da = ["id"], Oa = ["id"], Pa = /* @__PURE__ */ _({
|
|
314
314
|
inheritAttrs: !1,
|
|
315
315
|
__name: "NbCombobox",
|
|
316
316
|
props: {
|
|
@@ -328,49 +328,49 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
328
328
|
},
|
|
329
329
|
emits: ["update:modelValue"],
|
|
330
330
|
setup(e, { emit: n }) {
|
|
331
|
-
const t = e, s = n, l =
|
|
332
|
-
function
|
|
333
|
-
return t.options.find((
|
|
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 ?? "";
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function i(r) {
|
|
336
336
|
typeof r == "string" && s("update:modelValue", r);
|
|
337
337
|
}
|
|
338
|
-
return (r,
|
|
339
|
-
e.label ? (o(),
|
|
338
|
+
return (r, v) => (o(), u("div", Ma, [
|
|
339
|
+
e.label ? (o(), u("label", {
|
|
340
340
|
key: 0,
|
|
341
341
|
class: "nb-field__label",
|
|
342
342
|
for: a(l).inputId
|
|
343
|
-
}, p(e.label), 9,
|
|
344
|
-
|
|
343
|
+
}, p(e.label), 9, Aa)) : g("", !0),
|
|
344
|
+
c(a(H), {
|
|
345
345
|
"model-value": e.modelValue,
|
|
346
346
|
disabled: e.disabled,
|
|
347
347
|
required: e.required,
|
|
348
348
|
name: e.name,
|
|
349
349
|
"open-on-click": "",
|
|
350
|
-
"onUpdate:modelValue":
|
|
350
|
+
"onUpdate:modelValue": i
|
|
351
351
|
}, {
|
|
352
|
-
default:
|
|
353
|
-
|
|
354
|
-
default:
|
|
355
|
-
|
|
352
|
+
default: d(() => [
|
|
353
|
+
c(a(K), { class: "nb-combobox__anchor" }, {
|
|
354
|
+
default: d(() => [
|
|
355
|
+
c(a(j), x(r.$attrs, {
|
|
356
356
|
id: a(l).inputId,
|
|
357
357
|
class: "nb-combobox__input",
|
|
358
|
-
"display-value":
|
|
358
|
+
"display-value": m,
|
|
359
359
|
placeholder: e.placeholder,
|
|
360
360
|
"aria-invalid": e.error ? "true" : void 0,
|
|
361
361
|
"aria-describedby": b.value
|
|
362
362
|
}), null, 16, ["id", "placeholder", "aria-invalid", "aria-describedby"]),
|
|
363
|
-
|
|
363
|
+
c(a(Ie), {
|
|
364
364
|
class: "nb-combobox__trigger",
|
|
365
365
|
"aria-label": "Show options"
|
|
366
366
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
|
|
367
|
+
default: d(() => [...v[0] || (v[0] = [
|
|
368
|
+
f("svg", {
|
|
369
369
|
viewBox: "0 0 16 16",
|
|
370
370
|
"aria-hidden": "true",
|
|
371
371
|
focusable: "false"
|
|
372
372
|
}, [
|
|
373
|
-
|
|
373
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
374
374
|
], -1)
|
|
375
375
|
])]),
|
|
376
376
|
_: 1
|
|
@@ -378,43 +378,43 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
378
378
|
]),
|
|
379
379
|
_: 1
|
|
380
380
|
}),
|
|
381
|
-
|
|
382
|
-
default:
|
|
383
|
-
|
|
381
|
+
c(a(Ce), null, {
|
|
382
|
+
default: d(() => [
|
|
383
|
+
c(a(X), {
|
|
384
384
|
class: "nb-root nb-combobox__content",
|
|
385
385
|
position: "popper",
|
|
386
386
|
align: "start",
|
|
387
387
|
"side-offset": 5
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
391
|
-
default:
|
|
392
|
-
|
|
393
|
-
default:
|
|
394
|
-
|
|
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)
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}),
|
|
398
|
-
(o(!0),
|
|
399
|
-
key:
|
|
398
|
+
(o(!0), u(B, null, T(e.options, ($) => (o(), y(a(W), {
|
|
399
|
+
key: $.value,
|
|
400
400
|
class: "nb-combobox__item",
|
|
401
|
-
value:
|
|
402
|
-
"text-value":
|
|
403
|
-
disabled:
|
|
404
|
-
"data-value":
|
|
401
|
+
value: $.value,
|
|
402
|
+
"text-value": $.label,
|
|
403
|
+
disabled: $.disabled,
|
|
404
|
+
"data-value": $.value
|
|
405
405
|
}, {
|
|
406
|
-
default:
|
|
407
|
-
|
|
408
|
-
|
|
406
|
+
default: d(() => [
|
|
407
|
+
f("span", null, p($.label), 1),
|
|
408
|
+
c(a(Ve), {
|
|
409
409
|
class: "nb-combobox__indicator",
|
|
410
410
|
"aria-hidden": "true"
|
|
411
411
|
}, {
|
|
412
|
-
default:
|
|
413
|
-
|
|
412
|
+
default: d(() => [...v[1] || (v[1] = [
|
|
413
|
+
f("svg", {
|
|
414
414
|
viewBox: "0 0 16 16",
|
|
415
415
|
focusable: "false"
|
|
416
416
|
}, [
|
|
417
|
-
|
|
417
|
+
f("path", { d: "m3 8 3 3 7-7" })
|
|
418
418
|
], -1)
|
|
419
419
|
])]),
|
|
420
420
|
_: 1
|
|
@@ -434,19 +434,425 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
437
|
-
e.hint ? (o(),
|
|
437
|
+
e.hint ? (o(), u("span", {
|
|
438
438
|
key: 1,
|
|
439
439
|
id: a(l).hintId,
|
|
440
440
|
class: "nb-field__hint"
|
|
441
|
-
}, p(e.hint), 9,
|
|
442
|
-
e.error ? (o(),
|
|
441
|
+
}, p(e.hint), 9, Da)) : g("", !0),
|
|
442
|
+
e.error ? (o(), u("span", {
|
|
443
443
|
key: 2,
|
|
444
444
|
id: a(l).errorId,
|
|
445
445
|
class: "nb-field__error"
|
|
446
|
-
}, p(e.error), 9,
|
|
446
|
+
}, p(e.error), 9, Oa)) : g("", !0)
|
|
447
447
|
]));
|
|
448
448
|
}
|
|
449
|
-
}),
|
|
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__ */ _({
|
|
450
856
|
__name: "NbAlert",
|
|
451
857
|
props: {
|
|
452
858
|
tone: { default: "info" },
|
|
@@ -455,34 +861,112 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
455
861
|
},
|
|
456
862
|
emits: ["dismiss"],
|
|
457
863
|
setup(e, { emit: n }) {
|
|
458
|
-
const t = e, s = n, l =
|
|
459
|
-
function
|
|
864
|
+
const t = e, s = n, l = V(!1), b = N(() => O(`nb-alert--${t.tone}`));
|
|
865
|
+
function m() {
|
|
460
866
|
l.value = !0, s("dismiss");
|
|
461
867
|
}
|
|
462
|
-
return (
|
|
868
|
+
return (i, r) => l.value ? g("", !0) : (o(), u("div", {
|
|
463
869
|
key: 0,
|
|
464
|
-
class:
|
|
870
|
+
class: I(["nb-root nb-alert", b.value]),
|
|
465
871
|
role: "alert"
|
|
466
872
|
}, [
|
|
467
|
-
|
|
468
|
-
e.title ? (o(),
|
|
469
|
-
|
|
470
|
-
|
|
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")
|
|
471
877
|
])
|
|
472
878
|
]),
|
|
473
|
-
e.dismissible ? (o(),
|
|
879
|
+
e.dismissible ? (o(), u("button", {
|
|
474
880
|
key: 0,
|
|
475
881
|
class: "nb-alert__close",
|
|
476
882
|
type: "button",
|
|
477
883
|
"aria-label": "Dismiss",
|
|
478
|
-
onClick:
|
|
479
|
-
}, "×")) :
|
|
884
|
+
onClick: m
|
|
885
|
+
}, "×")) : g("", !0)
|
|
480
886
|
], 2));
|
|
481
887
|
}
|
|
482
|
-
}),
|
|
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 = {
|
|
483
967
|
key: 0,
|
|
484
968
|
class: "nb-dialog__footer"
|
|
485
|
-
},
|
|
969
|
+
}, il = /* @__PURE__ */ _({
|
|
486
970
|
inheritAttrs: !1,
|
|
487
971
|
__name: "NbDialog",
|
|
488
972
|
props: {
|
|
@@ -492,67 +976,67 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
492
976
|
},
|
|
493
977
|
emits: ["update:open", "close"],
|
|
494
978
|
setup(e, { emit: n }) {
|
|
495
|
-
const t = e, s = n, b = `${
|
|
979
|
+
const t = e, s = n, b = `${M("dialog")}-title`, m = V(null), i = V(null);
|
|
496
980
|
function r() {
|
|
497
981
|
s("update:open", !1), s("close");
|
|
498
982
|
}
|
|
499
|
-
function
|
|
500
|
-
return Array.from(
|
|
983
|
+
function v() {
|
|
984
|
+
return Array.from(m.value?.querySelectorAll(
|
|
501
985
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
502
986
|
) ?? []);
|
|
503
987
|
}
|
|
504
|
-
function
|
|
505
|
-
if (
|
|
506
|
-
|
|
988
|
+
function $(C) {
|
|
989
|
+
if (C.key === "Escape") {
|
|
990
|
+
C.preventDefault(), r();
|
|
507
991
|
return;
|
|
508
992
|
}
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
511
|
-
if (!
|
|
512
|
-
const
|
|
513
|
-
|
|
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());
|
|
514
998
|
}
|
|
515
|
-
function
|
|
516
|
-
|
|
999
|
+
function P() {
|
|
1000
|
+
i.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", $), re(() => (v()[0] ?? m.value)?.focus());
|
|
517
1001
|
}
|
|
518
1002
|
function G() {
|
|
519
|
-
document.removeEventListener("keydown",
|
|
1003
|
+
document.removeEventListener("keydown", $), i.value?.focus(), i.value = null;
|
|
520
1004
|
}
|
|
521
|
-
return
|
|
522
|
-
|
|
523
|
-
}, { immediate: !0 }),
|
|
1005
|
+
return w(() => t.open, (C) => {
|
|
1006
|
+
C ? P() : G();
|
|
1007
|
+
}, { immediate: !0 }), ie(G), (C, A) => e.open ? (o(), u("div", {
|
|
524
1008
|
key: 0,
|
|
525
1009
|
class: "nb-root nb-dialog-layer",
|
|
526
|
-
onMousedown:
|
|
1010
|
+
onMousedown: A[0] || (A[0] = de((R) => e.closeOnBackdrop && r(), ["self"]))
|
|
527
1011
|
}, [
|
|
528
|
-
|
|
1012
|
+
f("section", x(C.$attrs, {
|
|
529
1013
|
ref_key: "dialogRef",
|
|
530
|
-
ref:
|
|
1014
|
+
ref: m,
|
|
531
1015
|
class: "nb-dialog",
|
|
532
1016
|
role: "dialog",
|
|
533
1017
|
"aria-modal": "true",
|
|
534
1018
|
"aria-labelledby": b,
|
|
535
1019
|
tabindex: "-1"
|
|
536
1020
|
}), [
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
1021
|
+
f("header", nl, [
|
|
1022
|
+
f("h2", { id: b }, p(e.title), 1),
|
|
1023
|
+
f("button", {
|
|
540
1024
|
class: "nb-dialog__close",
|
|
541
1025
|
type: "button",
|
|
542
1026
|
"aria-label": "Close dialog",
|
|
543
1027
|
onClick: r
|
|
544
1028
|
}, "×")
|
|
545
1029
|
]),
|
|
546
|
-
|
|
547
|
-
|
|
1030
|
+
f("div", ol, [
|
|
1031
|
+
h(C.$slots, "default")
|
|
548
1032
|
]),
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
])) :
|
|
1033
|
+
C.$slots.footer ? (o(), u("footer", sl, [
|
|
1034
|
+
h(C.$slots, "footer")
|
|
1035
|
+
])) : g("", !0)
|
|
552
1036
|
], 16)
|
|
553
|
-
], 32)) :
|
|
1037
|
+
], 32)) : g("", !0);
|
|
554
1038
|
}
|
|
555
|
-
}),
|
|
1039
|
+
}), dl = /* @__PURE__ */ _({
|
|
556
1040
|
__name: "NbDropdownMenu",
|
|
557
1041
|
props: {
|
|
558
1042
|
open: { type: Boolean, default: void 0 },
|
|
@@ -563,46 +1047,46 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
563
1047
|
},
|
|
564
1048
|
emits: ["update:open"],
|
|
565
1049
|
setup(e, { emit: n }) {
|
|
566
|
-
const t = e, s = n, l =
|
|
567
|
-
|
|
568
|
-
|
|
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);
|
|
569
1053
|
});
|
|
570
|
-
function
|
|
571
|
-
l.value =
|
|
1054
|
+
function m(i) {
|
|
1055
|
+
l.value = i, s("update:open", i);
|
|
572
1056
|
}
|
|
573
|
-
return (
|
|
1057
|
+
return (i, r) => (o(), y(a(Ye), {
|
|
574
1058
|
open: b.value,
|
|
575
1059
|
"default-open": e.defaultOpen,
|
|
576
|
-
"onUpdate:open":
|
|
1060
|
+
"onUpdate:open": m
|
|
577
1061
|
}, {
|
|
578
|
-
default:
|
|
579
|
-
|
|
1062
|
+
default: d(() => [
|
|
1063
|
+
c(a(Ze), {
|
|
580
1064
|
class: "nb-root nb-overlay-trigger",
|
|
581
1065
|
"aria-label": e.label,
|
|
582
1066
|
disabled: e.disabled
|
|
583
1067
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
586
|
-
r[0] || (r[0] =
|
|
1068
|
+
default: d(() => [
|
|
1069
|
+
h(i.$slots, "trigger"),
|
|
1070
|
+
r[0] || (r[0] = f("svg", {
|
|
587
1071
|
class: "nb-overlay-trigger__icon",
|
|
588
1072
|
viewBox: "0 0 16 16",
|
|
589
1073
|
"aria-hidden": "true",
|
|
590
1074
|
focusable: "false"
|
|
591
1075
|
}, [
|
|
592
|
-
|
|
1076
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
593
1077
|
], -1))
|
|
594
1078
|
]),
|
|
595
1079
|
_: 3
|
|
596
1080
|
}, 8, ["aria-label", "disabled"]),
|
|
597
|
-
|
|
598
|
-
default:
|
|
599
|
-
|
|
1081
|
+
c(a(et), null, {
|
|
1082
|
+
default: d(() => [
|
|
1083
|
+
c(a(tt), {
|
|
600
1084
|
class: "nb-root nb-dropdown-menu",
|
|
601
1085
|
align: e.align,
|
|
602
1086
|
"side-offset": 8
|
|
603
1087
|
}, {
|
|
604
|
-
default:
|
|
605
|
-
|
|
1088
|
+
default: d(() => [
|
|
1089
|
+
h(i.$slots, "default")
|
|
606
1090
|
]),
|
|
607
1091
|
_: 3
|
|
608
1092
|
}, 8, ["align"])
|
|
@@ -613,7 +1097,7 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
613
1097
|
_: 3
|
|
614
1098
|
}, 8, ["open", "default-open"]));
|
|
615
1099
|
}
|
|
616
|
-
}),
|
|
1100
|
+
}), rl = /* @__PURE__ */ _({
|
|
617
1101
|
__name: "NbDropdownMenuItem",
|
|
618
1102
|
props: {
|
|
619
1103
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -622,56 +1106,56 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
622
1106
|
emits: ["select"],
|
|
623
1107
|
setup(e, { emit: n }) {
|
|
624
1108
|
const t = n;
|
|
625
|
-
return (s, l) => (o(),
|
|
626
|
-
class:
|
|
1109
|
+
return (s, l) => (o(), y(a(at), {
|
|
1110
|
+
class: I(["nb-dropdown-menu__item", { "nb-dropdown-menu__item--destructive": e.destructive }]),
|
|
627
1111
|
disabled: e.disabled,
|
|
628
1112
|
onSelect: l[0] || (l[0] = (b) => t("select", b))
|
|
629
1113
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
|
|
1114
|
+
default: d(() => [
|
|
1115
|
+
h(s.$slots, "default")
|
|
632
1116
|
]),
|
|
633
1117
|
_: 3
|
|
634
1118
|
}, 8, ["class", "disabled"]));
|
|
635
1119
|
}
|
|
636
|
-
}),
|
|
1120
|
+
}), ul = /* @__PURE__ */ _({
|
|
637
1121
|
__name: "NbDropdownMenuSeparator",
|
|
638
1122
|
setup(e) {
|
|
639
|
-
return (n, t) => (o(),
|
|
1123
|
+
return (n, t) => (o(), y(a(lt), { class: "nb-dropdown-menu__separator" }));
|
|
640
1124
|
}
|
|
641
|
-
}),
|
|
1125
|
+
}), cl = ["aria-labelledby"], bl = {
|
|
642
1126
|
key: 0,
|
|
643
1127
|
class: "nb-empty-state__icon",
|
|
644
1128
|
"aria-hidden": "true"
|
|
645
|
-
},
|
|
1129
|
+
}, fl = ["id"], ml = { key: 1 }, pl = {
|
|
646
1130
|
key: 2,
|
|
647
1131
|
class: "nb-empty-state__action"
|
|
648
|
-
},
|
|
1132
|
+
}, _l = /* @__PURE__ */ _({
|
|
649
1133
|
__name: "NbEmptyState",
|
|
650
1134
|
props: {
|
|
651
1135
|
title: {},
|
|
652
1136
|
description: {}
|
|
653
1137
|
},
|
|
654
1138
|
setup(e) {
|
|
655
|
-
const n =
|
|
656
|
-
return (t, s) => (o(),
|
|
1139
|
+
const n = M("empty-state-title");
|
|
1140
|
+
return (t, s) => (o(), u("section", {
|
|
657
1141
|
class: "nb-root nb-empty-state",
|
|
658
1142
|
role: "region",
|
|
659
1143
|
"aria-labelledby": a(n)
|
|
660
1144
|
}, [
|
|
661
|
-
t.$slots.icon ? (o(),
|
|
662
|
-
|
|
663
|
-
])) :
|
|
664
|
-
|
|
665
|
-
e.description ? (o(),
|
|
666
|
-
t.$slots.default ? (o(),
|
|
667
|
-
|
|
668
|
-
])) :
|
|
669
|
-
], 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));
|
|
670
1154
|
}
|
|
671
|
-
}),
|
|
1155
|
+
}), vl = ["disabled", "aria-describedby"], hl = {
|
|
672
1156
|
key: 0,
|
|
673
1157
|
class: "nb-fieldset__legend"
|
|
674
|
-
},
|
|
1158
|
+
}, gl = { class: "nb-fieldset__content" }, yl = /* @__PURE__ */ _({
|
|
675
1159
|
__name: "NbFieldset",
|
|
676
1160
|
props: {
|
|
677
1161
|
legend: {},
|
|
@@ -679,24 +1163,24 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
679
1163
|
disabled: { type: Boolean, default: !1 }
|
|
680
1164
|
},
|
|
681
1165
|
setup(e) {
|
|
682
|
-
const n = `${
|
|
683
|
-
return (t, s) => (o(),
|
|
1166
|
+
const n = `${M("fieldset")}-description`;
|
|
1167
|
+
return (t, s) => (o(), u("fieldset", {
|
|
684
1168
|
class: "nb-root nb-fieldset",
|
|
685
1169
|
disabled: e.disabled,
|
|
686
1170
|
"aria-describedby": e.description ? n : void 0
|
|
687
1171
|
}, [
|
|
688
|
-
e.legend ? (o(),
|
|
689
|
-
e.description ? (o(),
|
|
1172
|
+
e.legend ? (o(), u("legend", hl, p(e.legend), 1)) : g("", !0),
|
|
1173
|
+
e.description ? (o(), u("p", {
|
|
690
1174
|
key: 1,
|
|
691
1175
|
id: n,
|
|
692
1176
|
class: "nb-fieldset__description"
|
|
693
|
-
}, p(e.description), 1)) :
|
|
694
|
-
|
|
695
|
-
|
|
1177
|
+
}, p(e.description), 1)) : g("", !0),
|
|
1178
|
+
f("div", gl, [
|
|
1179
|
+
h(t.$slots, "default")
|
|
696
1180
|
])
|
|
697
|
-
], 8,
|
|
1181
|
+
], 8, vl));
|
|
698
1182
|
}
|
|
699
|
-
}),
|
|
1183
|
+
}), $l = { class: "nb-root nb-field" }, Nl = ["for"], kl = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], xl = ["id"], Il = ["id"], Cl = /* @__PURE__ */ _({
|
|
700
1184
|
inheritAttrs: !1,
|
|
701
1185
|
__name: "NbInput",
|
|
702
1186
|
props: {
|
|
@@ -709,69 +1193,121 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
709
1193
|
},
|
|
710
1194
|
emits: ["update:modelValue"],
|
|
711
1195
|
setup(e, { emit: n }) {
|
|
712
|
-
const t = e, s = n, l =
|
|
713
|
-
return (
|
|
714
|
-
e.label ? (o(),
|
|
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", {
|
|
715
1199
|
key: 0,
|
|
716
1200
|
class: "nb-field__label",
|
|
717
1201
|
for: a(l).inputId
|
|
718
|
-
}, p(e.label), 9,
|
|
719
|
-
|
|
1202
|
+
}, p(e.label), 9, Nl)) : g("", !0),
|
|
1203
|
+
f("input", x(m.$attrs, {
|
|
720
1204
|
id: a(l).inputId,
|
|
721
1205
|
class: "nb-field__control",
|
|
722
1206
|
value: e.modelValue,
|
|
723
1207
|
disabled: e.disabled,
|
|
724
1208
|
"aria-invalid": e.error ? "true" : void 0,
|
|
725
1209
|
"aria-describedby": b.value,
|
|
726
|
-
onInput:
|
|
727
|
-
}), null, 16,
|
|
728
|
-
e.hint ? (o(),
|
|
1210
|
+
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
1211
|
+
}), null, 16, kl),
|
|
1212
|
+
e.hint ? (o(), u("span", {
|
|
729
1213
|
key: 1,
|
|
730
1214
|
id: a(l).hintId,
|
|
731
1215
|
class: "nb-field__hint"
|
|
732
|
-
}, p(e.hint), 9,
|
|
733
|
-
e.error ? (o(),
|
|
1216
|
+
}, p(e.hint), 9, xl)) : g("", !0),
|
|
1217
|
+
e.error ? (o(), u("span", {
|
|
734
1218
|
key: 2,
|
|
735
1219
|
id: a(l).errorId,
|
|
736
1220
|
class: "nb-field__error"
|
|
737
|
-
}, p(e.error), 9,
|
|
1221
|
+
}, p(e.error), 9, Il)) : g("", !0)
|
|
738
1222
|
]));
|
|
739
1223
|
}
|
|
740
|
-
}),
|
|
1224
|
+
}), Vl = { class: "nb-root nb-input-group" }, Bl = {
|
|
741
1225
|
key: 0,
|
|
742
1226
|
class: "nb-input-group__addon"
|
|
743
|
-
},
|
|
1227
|
+
}, wl = { class: "nb-input-group__control" }, Sl = {
|
|
744
1228
|
key: 1,
|
|
745
1229
|
class: "nb-input-group__addon"
|
|
746
|
-
},
|
|
1230
|
+
}, Tl = /* @__PURE__ */ _({
|
|
747
1231
|
__name: "NbInputGroup",
|
|
748
1232
|
setup(e) {
|
|
749
|
-
const n =
|
|
750
|
-
return (t, s) => (o(),
|
|
751
|
-
a(n).start ? (o(),
|
|
752
|
-
|
|
753
|
-
])) :
|
|
754
|
-
|
|
755
|
-
|
|
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")
|
|
756
1240
|
]),
|
|
757
|
-
a(n).end ? (o(),
|
|
758
|
-
|
|
759
|
-
])) :
|
|
1241
|
+
a(n).end ? (o(), u("span", Sl, [
|
|
1242
|
+
h(t.$slots, "end")
|
|
1243
|
+
])) : g("", !0)
|
|
760
1244
|
]));
|
|
761
1245
|
}
|
|
762
|
-
}),
|
|
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__ */ _({
|
|
763
1299
|
__name: "NbKbd",
|
|
764
1300
|
props: {
|
|
765
1301
|
size: { default: "md" }
|
|
766
1302
|
},
|
|
767
1303
|
setup(e) {
|
|
768
|
-
return (n, t) => (o(),
|
|
769
|
-
class:
|
|
1304
|
+
return (n, t) => (o(), u("kbd", {
|
|
1305
|
+
class: I(["nb-root nb-kbd", `nb-kbd--${e.size}`])
|
|
770
1306
|
}, [
|
|
771
|
-
|
|
1307
|
+
h(n.$slots, "default")
|
|
772
1308
|
], 2));
|
|
773
1309
|
}
|
|
774
|
-
}),
|
|
1310
|
+
}), Dl = /* @__PURE__ */ _({
|
|
775
1311
|
inheritAttrs: !1,
|
|
776
1312
|
__name: "NbLink",
|
|
777
1313
|
props: {
|
|
@@ -779,29 +1315,109 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
779
1315
|
tone: { default: "primary" }
|
|
780
1316
|
},
|
|
781
1317
|
setup(e) {
|
|
782
|
-
const n = e, t =
|
|
783
|
-
return (s, l) => (o(),
|
|
1318
|
+
const n = e, t = N(() => O(`nb-link--${n.tone}`));
|
|
1319
|
+
return (s, l) => (o(), y(ce(e.as), x(s.$attrs, {
|
|
784
1320
|
class: ["nb-root nb-link", t.value]
|
|
785
1321
|
}), {
|
|
786
|
-
default:
|
|
787
|
-
|
|
1322
|
+
default: d(() => [
|
|
1323
|
+
h(s.$slots, "default")
|
|
788
1324
|
]),
|
|
789
1325
|
_: 3
|
|
790
1326
|
}, 16, ["class"]));
|
|
791
1327
|
}
|
|
792
|
-
}),
|
|
1328
|
+
}), Ol = /* @__PURE__ */ _({
|
|
793
1329
|
__name: "NbMarker",
|
|
794
1330
|
props: {
|
|
795
1331
|
tone: { default: "primary" }
|
|
796
1332
|
},
|
|
797
1333
|
setup(e) {
|
|
798
|
-
return (n, t) => (o(),
|
|
799
|
-
class:
|
|
1334
|
+
return (n, t) => (o(), u("mark", {
|
|
1335
|
+
class: I(["nb-root nb-marker", `nb-marker--${e.tone}`])
|
|
800
1336
|
}, [
|
|
801
|
-
|
|
1337
|
+
h(n.$slots, "default")
|
|
802
1338
|
], 2));
|
|
803
1339
|
}
|
|
804
|
-
}),
|
|
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__ */ _({
|
|
805
1421
|
inheritAttrs: !1,
|
|
806
1422
|
__name: "NbNumberInput",
|
|
807
1423
|
props: {
|
|
@@ -820,14 +1436,14 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
820
1436
|
},
|
|
821
1437
|
emits: ["update:modelValue"],
|
|
822
1438
|
setup(e, { emit: n }) {
|
|
823
|
-
const t = e, s = n, l =
|
|
824
|
-
return (
|
|
825
|
-
e.label ? (o(),
|
|
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", {
|
|
826
1442
|
key: 0,
|
|
827
1443
|
class: "nb-field__label",
|
|
828
1444
|
for: a(l).inputId
|
|
829
|
-
}, p(e.label), 9,
|
|
830
|
-
|
|
1445
|
+
}, p(e.label), 9, ql)) : g("", !0),
|
|
1446
|
+
c(a(ft), {
|
|
831
1447
|
class: "nb-number-input",
|
|
832
1448
|
"model-value": e.modelValue,
|
|
833
1449
|
min: e.min,
|
|
@@ -837,49 +1453,49 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
837
1453
|
readonly: e.readonly,
|
|
838
1454
|
required: e.required,
|
|
839
1455
|
name: e.name,
|
|
840
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1456
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => s("update:modelValue", v))
|
|
841
1457
|
}, {
|
|
842
|
-
default:
|
|
843
|
-
|
|
1458
|
+
default: d(() => [
|
|
1459
|
+
c(a(mt), {
|
|
844
1460
|
class: "nb-number-input__button",
|
|
845
|
-
"aria-label": `Decrease ${
|
|
1461
|
+
"aria-label": `Decrease ${m.value}`
|
|
846
1462
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
|
|
1463
|
+
default: d(() => [...r[1] || (r[1] = [
|
|
1464
|
+
k("−", -1)
|
|
849
1465
|
])]),
|
|
850
1466
|
_: 1
|
|
851
1467
|
}, 8, ["aria-label"]),
|
|
852
|
-
|
|
1468
|
+
c(a(pt), x(i.$attrs, {
|
|
853
1469
|
id: a(l).inputId,
|
|
854
1470
|
class: "nb-number-input__input",
|
|
855
1471
|
"aria-invalid": e.error ? "true" : void 0,
|
|
856
1472
|
"aria-describedby": b.value
|
|
857
1473
|
}), null, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
858
|
-
|
|
1474
|
+
c(a(_t), {
|
|
859
1475
|
class: "nb-number-input__button",
|
|
860
|
-
"aria-label": `Increase ${
|
|
1476
|
+
"aria-label": `Increase ${m.value}`
|
|
861
1477
|
}, {
|
|
862
|
-
default:
|
|
863
|
-
|
|
1478
|
+
default: d(() => [...r[2] || (r[2] = [
|
|
1479
|
+
k("+", -1)
|
|
864
1480
|
])]),
|
|
865
1481
|
_: 1
|
|
866
1482
|
}, 8, ["aria-label"])
|
|
867
1483
|
]),
|
|
868
1484
|
_: 1
|
|
869
1485
|
}, 8, ["model-value", "min", "max", "step", "disabled", "readonly", "required", "name"]),
|
|
870
|
-
e.hint ? (o(),
|
|
1486
|
+
e.hint ? (o(), u("span", {
|
|
871
1487
|
key: 1,
|
|
872
1488
|
id: a(l).hintId,
|
|
873
1489
|
class: "nb-field__hint"
|
|
874
|
-
}, p(e.hint), 9,
|
|
875
|
-
e.error ? (o(),
|
|
1490
|
+
}, p(e.hint), 9, El)) : g("", !0),
|
|
1491
|
+
e.error ? (o(), u("span", {
|
|
876
1492
|
key: 2,
|
|
877
1493
|
id: a(l).errorId,
|
|
878
1494
|
class: "nb-field__error"
|
|
879
|
-
}, p(e.error), 9,
|
|
1495
|
+
}, p(e.error), 9, zl)) : g("", !0)
|
|
880
1496
|
]));
|
|
881
1497
|
}
|
|
882
|
-
}),
|
|
1498
|
+
}), Hl = /* @__PURE__ */ _({
|
|
883
1499
|
__name: "NbPagination",
|
|
884
1500
|
props: {
|
|
885
1501
|
page: {},
|
|
@@ -893,7 +1509,7 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
893
1509
|
emits: ["update:page"],
|
|
894
1510
|
setup(e, { emit: n }) {
|
|
895
1511
|
const t = n;
|
|
896
|
-
return (s, l) => (o(),
|
|
1512
|
+
return (s, l) => (o(), y(a(vt), {
|
|
897
1513
|
class: "nb-root nb-pagination",
|
|
898
1514
|
page: e.page,
|
|
899
1515
|
"default-page": e.defaultPage,
|
|
@@ -905,42 +1521,42 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
905
1521
|
"aria-label": e.label,
|
|
906
1522
|
"onUpdate:page": l[0] || (l[0] = (b) => t("update:page", b))
|
|
907
1523
|
}, {
|
|
908
|
-
default:
|
|
909
|
-
|
|
1524
|
+
default: d(() => [
|
|
1525
|
+
c(a(ht), {
|
|
910
1526
|
class: "nb-pagination__button",
|
|
911
1527
|
"aria-label": "Go to previous page"
|
|
912
1528
|
}, {
|
|
913
|
-
default:
|
|
914
|
-
|
|
1529
|
+
default: d(() => [...l[1] || (l[1] = [
|
|
1530
|
+
f("svg", {
|
|
915
1531
|
viewBox: "0 0 16 16",
|
|
916
1532
|
"aria-hidden": "true",
|
|
917
1533
|
focusable: "false"
|
|
918
1534
|
}, [
|
|
919
|
-
|
|
1535
|
+
f("path", { d: "m10 3-5 5 5 5" })
|
|
920
1536
|
], -1)
|
|
921
1537
|
])]),
|
|
922
1538
|
_: 1
|
|
923
1539
|
}),
|
|
924
|
-
|
|
925
|
-
default:
|
|
926
|
-
(o(!0),
|
|
927
|
-
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}`
|
|
928
1544
|
}, [
|
|
929
|
-
|
|
1545
|
+
m.type === "page" ? (o(), y(a(yt), {
|
|
930
1546
|
key: 0,
|
|
931
1547
|
class: "nb-pagination__button",
|
|
932
|
-
value:
|
|
1548
|
+
value: m.value
|
|
933
1549
|
}, {
|
|
934
|
-
default:
|
|
935
|
-
|
|
1550
|
+
default: d(() => [
|
|
1551
|
+
k(p(m.value), 1)
|
|
936
1552
|
]),
|
|
937
1553
|
_: 2
|
|
938
|
-
}, 1032, ["value"])) : (o(),
|
|
1554
|
+
}, 1032, ["value"])) : (o(), y(a($t), {
|
|
939
1555
|
key: 1,
|
|
940
1556
|
class: "nb-pagination__ellipsis"
|
|
941
1557
|
}, {
|
|
942
|
-
default:
|
|
943
|
-
|
|
1558
|
+
default: d(() => [...l[2] || (l[2] = [
|
|
1559
|
+
k("…", -1)
|
|
944
1560
|
])]),
|
|
945
1561
|
_: 1
|
|
946
1562
|
}))
|
|
@@ -948,17 +1564,17 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
948
1564
|
]),
|
|
949
1565
|
_: 1
|
|
950
1566
|
}),
|
|
951
|
-
|
|
1567
|
+
c(a(Nt), {
|
|
952
1568
|
class: "nb-pagination__button",
|
|
953
1569
|
"aria-label": "Go to next page"
|
|
954
1570
|
}, {
|
|
955
|
-
default:
|
|
956
|
-
|
|
1571
|
+
default: d(() => [...l[3] || (l[3] = [
|
|
1572
|
+
f("svg", {
|
|
957
1573
|
viewBox: "0 0 16 16",
|
|
958
1574
|
"aria-hidden": "true",
|
|
959
1575
|
focusable: "false"
|
|
960
1576
|
}, [
|
|
961
|
-
|
|
1577
|
+
f("path", { d: "m6 3 5 5-5 5" })
|
|
962
1578
|
], -1)
|
|
963
1579
|
])]),
|
|
964
1580
|
_: 1
|
|
@@ -967,10 +1583,10 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
967
1583
|
_: 1
|
|
968
1584
|
}, 8, ["page", "default-page", "total", "items-per-page", "sibling-count", "disabled", "aria-label"]));
|
|
969
1585
|
}
|
|
970
|
-
}),
|
|
1586
|
+
}), Kl = {
|
|
971
1587
|
key: 0,
|
|
972
1588
|
class: "nb-popover__header"
|
|
973
|
-
},
|
|
1589
|
+
}, jl = ["id"], Xl = { class: "nb-popover__body" }, Jl = /* @__PURE__ */ _({
|
|
974
1590
|
__name: "NbPopover",
|
|
975
1591
|
props: {
|
|
976
1592
|
open: { type: Boolean, default: void 0 },
|
|
@@ -982,52 +1598,52 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
982
1598
|
},
|
|
983
1599
|
emits: ["update:open"],
|
|
984
1600
|
setup(e, { emit: n }) {
|
|
985
|
-
const t = e, s = n, l =
|
|
986
|
-
|
|
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) => {
|
|
987
1603
|
r !== void 0 && (b.value = r);
|
|
988
1604
|
});
|
|
989
|
-
function
|
|
1605
|
+
function i(r) {
|
|
990
1606
|
b.value = r, s("update:open", r);
|
|
991
1607
|
}
|
|
992
|
-
return (r,
|
|
993
|
-
open:
|
|
1608
|
+
return (r, v) => (o(), y(a(kt), {
|
|
1609
|
+
open: m.value,
|
|
994
1610
|
"default-open": e.defaultOpen,
|
|
995
|
-
"onUpdate:open":
|
|
1611
|
+
"onUpdate:open": i
|
|
996
1612
|
}, {
|
|
997
|
-
default:
|
|
998
|
-
|
|
1613
|
+
default: d(() => [
|
|
1614
|
+
c(a(xt), {
|
|
999
1615
|
class: "nb-root nb-overlay-trigger",
|
|
1000
1616
|
disabled: e.disabled
|
|
1001
1617
|
}, {
|
|
1002
|
-
default:
|
|
1003
|
-
|
|
1618
|
+
default: d(() => [
|
|
1619
|
+
h(r.$slots, "trigger")
|
|
1004
1620
|
]),
|
|
1005
1621
|
_: 3
|
|
1006
1622
|
}, 8, ["disabled"]),
|
|
1007
|
-
|
|
1008
|
-
default:
|
|
1009
|
-
|
|
1623
|
+
c(a(It), null, {
|
|
1624
|
+
default: d(() => [
|
|
1625
|
+
c(a(Ct), {
|
|
1010
1626
|
class: "nb-root nb-popover",
|
|
1011
1627
|
align: e.align,
|
|
1012
1628
|
side: e.side,
|
|
1013
1629
|
"side-offset": 8,
|
|
1014
1630
|
"aria-labelledby": e.title ? a(l) : void 0
|
|
1015
1631
|
}, {
|
|
1016
|
-
default:
|
|
1017
|
-
e.title ? (o(),
|
|
1018
|
-
|
|
1019
|
-
|
|
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), {
|
|
1020
1636
|
class: "nb-overlay-close",
|
|
1021
1637
|
"aria-label": "Close popover"
|
|
1022
1638
|
}, {
|
|
1023
|
-
default:
|
|
1024
|
-
|
|
1639
|
+
default: d(() => [...v[0] || (v[0] = [
|
|
1640
|
+
k("×", -1)
|
|
1025
1641
|
])]),
|
|
1026
1642
|
_: 1
|
|
1027
1643
|
})
|
|
1028
|
-
])) :
|
|
1029
|
-
|
|
1030
|
-
|
|
1644
|
+
])) : g("", !0),
|
|
1645
|
+
f("div", Xl, [
|
|
1646
|
+
h(r.$slots, "default")
|
|
1031
1647
|
])
|
|
1032
1648
|
]),
|
|
1033
1649
|
_: 3
|
|
@@ -1039,10 +1655,10 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1039
1655
|
_: 3
|
|
1040
1656
|
}, 8, ["open", "default-open"]));
|
|
1041
1657
|
}
|
|
1042
|
-
}),
|
|
1658
|
+
}), Ql = { class: "nb-root nb-progress-wrap" }, Wl = {
|
|
1043
1659
|
key: 0,
|
|
1044
1660
|
class: "nb-progress__header"
|
|
1045
|
-
},
|
|
1661
|
+
}, Yl = /* @__PURE__ */ _({
|
|
1046
1662
|
__name: "NbProgress",
|
|
1047
1663
|
props: {
|
|
1048
1664
|
value: { default: null },
|
|
@@ -1051,35 +1667,35 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1051
1667
|
showValue: { type: Boolean, default: !1 }
|
|
1052
1668
|
},
|
|
1053
1669
|
setup(e) {
|
|
1054
|
-
const n = e, t =
|
|
1055
|
-
return (s, l) => (o(),
|
|
1056
|
-
e.showValue ? (o(),
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
])) :
|
|
1060
|
-
|
|
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), {
|
|
1061
1677
|
class: "nb-progress",
|
|
1062
1678
|
"model-value": e.value,
|
|
1063
1679
|
max: e.max,
|
|
1064
1680
|
"get-value-label": () => e.label
|
|
1065
1681
|
}, {
|
|
1066
|
-
default:
|
|
1067
|
-
|
|
1682
|
+
default: d(() => [
|
|
1683
|
+
c(a(wt), {
|
|
1068
1684
|
class: "nb-progress__indicator",
|
|
1069
|
-
style:
|
|
1685
|
+
style: L(e.value === null ? void 0 : { transform: `translateX(-${100 - t.value}%)` })
|
|
1070
1686
|
}, null, 8, ["style"])
|
|
1071
1687
|
]),
|
|
1072
1688
|
_: 1
|
|
1073
1689
|
}, 8, ["model-value", "max", "get-value-label"])
|
|
1074
1690
|
]));
|
|
1075
1691
|
}
|
|
1076
|
-
}),
|
|
1692
|
+
}), Zl = ["disabled", "aria-describedby"], en = {
|
|
1077
1693
|
key: 0,
|
|
1078
1694
|
class: "nb-radio-group__legend"
|
|
1079
|
-
},
|
|
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 = {
|
|
1080
1696
|
key: 0,
|
|
1081
1697
|
class: "nb-radio__description"
|
|
1082
|
-
},
|
|
1698
|
+
}, dn = /* @__PURE__ */ _({
|
|
1083
1699
|
__name: "NbRadioGroup",
|
|
1084
1700
|
props: {
|
|
1085
1701
|
modelValue: { default: "" },
|
|
@@ -1091,47 +1707,47 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1091
1707
|
},
|
|
1092
1708
|
emits: ["update:modelValue"],
|
|
1093
1709
|
setup(e, { emit: n }) {
|
|
1094
|
-
const t = e, s = n, l =
|
|
1095
|
-
return (
|
|
1710
|
+
const t = e, s = n, l = M("radio-group"), b = t.name ?? l, m = `${l}-hint`;
|
|
1711
|
+
return (i, r) => (o(), u("fieldset", {
|
|
1096
1712
|
class: "nb-root nb-radio-group",
|
|
1097
1713
|
disabled: e.disabled,
|
|
1098
|
-
"aria-describedby": e.hint ?
|
|
1714
|
+
"aria-describedby": e.hint ? m : void 0
|
|
1099
1715
|
}, [
|
|
1100
|
-
e.label ? (o(),
|
|
1101
|
-
e.hint ? (o(),
|
|
1716
|
+
e.label ? (o(), u("legend", en, p(e.label), 1)) : g("", !0),
|
|
1717
|
+
e.hint ? (o(), u("p", {
|
|
1102
1718
|
key: 1,
|
|
1103
|
-
id:
|
|
1719
|
+
id: m,
|
|
1104
1720
|
class: "nb-field__hint nb-radio-group__hint"
|
|
1105
|
-
}, p(e.hint), 1)) :
|
|
1106
|
-
|
|
1107
|
-
(o(!0),
|
|
1108
|
-
key:
|
|
1109
|
-
class:
|
|
1110
|
-
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)}-${$}`
|
|
1111
1727
|
}, [
|
|
1112
|
-
|
|
1113
|
-
id: `${a(l)}-${
|
|
1728
|
+
f("input", {
|
|
1729
|
+
id: `${a(l)}-${$}`,
|
|
1114
1730
|
class: "nb-radio__input",
|
|
1115
1731
|
type: "radio",
|
|
1116
1732
|
name: a(b),
|
|
1117
|
-
value:
|
|
1118
|
-
checked: e.modelValue ===
|
|
1119
|
-
disabled: e.disabled ||
|
|
1120
|
-
onChange: (
|
|
1121
|
-
}, null, 40,
|
|
1122
|
-
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", {
|
|
1123
1739
|
class: "nb-radio__mark",
|
|
1124
1740
|
"aria-hidden": "true"
|
|
1125
1741
|
}, null, -1)),
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
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)
|
|
1129
1745
|
])
|
|
1130
|
-
], 10,
|
|
1746
|
+
], 10, an))), 128))
|
|
1131
1747
|
])
|
|
1132
|
-
], 8,
|
|
1748
|
+
], 8, Zl));
|
|
1133
1749
|
}
|
|
1134
|
-
}),
|
|
1750
|
+
}), rn = /* @__PURE__ */ _({
|
|
1135
1751
|
__name: "NbScrollArea",
|
|
1136
1752
|
props: {
|
|
1137
1753
|
label: { default: "Scrollable content" },
|
|
@@ -1139,27 +1755,27 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1139
1755
|
type: { default: "hover" }
|
|
1140
1756
|
},
|
|
1141
1757
|
setup(e) {
|
|
1142
|
-
return (n, t) => (o(),
|
|
1758
|
+
return (n, t) => (o(), y(a(St), {
|
|
1143
1759
|
class: "nb-root nb-scroll-area",
|
|
1144
1760
|
type: e.type,
|
|
1145
|
-
style:
|
|
1761
|
+
style: L({ height: e.height })
|
|
1146
1762
|
}, {
|
|
1147
|
-
default:
|
|
1148
|
-
|
|
1763
|
+
default: d(() => [
|
|
1764
|
+
c(a(Tt), {
|
|
1149
1765
|
class: "nb-scroll-area__viewport",
|
|
1150
1766
|
"aria-label": e.label
|
|
1151
1767
|
}, {
|
|
1152
|
-
default:
|
|
1153
|
-
|
|
1768
|
+
default: d(() => [
|
|
1769
|
+
h(n.$slots, "default")
|
|
1154
1770
|
]),
|
|
1155
1771
|
_: 3
|
|
1156
1772
|
}, 8, ["aria-label"]),
|
|
1157
|
-
|
|
1773
|
+
c(a(Mt), {
|
|
1158
1774
|
class: "nb-scroll-area__scrollbar",
|
|
1159
1775
|
orientation: "vertical"
|
|
1160
1776
|
}, {
|
|
1161
|
-
default:
|
|
1162
|
-
|
|
1777
|
+
default: d(() => [
|
|
1778
|
+
c(a(At), { class: "nb-scroll-area__thumb" })
|
|
1163
1779
|
]),
|
|
1164
1780
|
_: 1
|
|
1165
1781
|
})
|
|
@@ -1167,7 +1783,90 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1167
1783
|
_: 3
|
|
1168
1784
|
}, 8, ["type", "style"]));
|
|
1169
1785
|
}
|
|
1170
|
-
}),
|
|
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__ */ _({
|
|
1171
1870
|
inheritAttrs: !1,
|
|
1172
1871
|
__name: "NbSelect",
|
|
1173
1872
|
props: {
|
|
@@ -1183,42 +1882,42 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1183
1882
|
},
|
|
1184
1883
|
emits: ["update:modelValue"],
|
|
1185
1884
|
setup(e, { emit: n }) {
|
|
1186
|
-
const t = e, s = n, l =
|
|
1187
|
-
function
|
|
1188
|
-
typeof
|
|
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);
|
|
1189
1888
|
}
|
|
1190
|
-
return (
|
|
1191
|
-
e.label ? (o(),
|
|
1889
|
+
return (i, r) => (o(), u("div", mn, [
|
|
1890
|
+
e.label ? (o(), u("label", {
|
|
1192
1891
|
key: 0,
|
|
1193
1892
|
class: "nb-field__label",
|
|
1194
1893
|
for: a(l).inputId
|
|
1195
|
-
}, p(e.label), 9,
|
|
1196
|
-
|
|
1894
|
+
}, p(e.label), 9, pn)) : g("", !0),
|
|
1895
|
+
c(a(Ot), {
|
|
1197
1896
|
"model-value": e.modelValue,
|
|
1198
1897
|
disabled: e.disabled,
|
|
1199
1898
|
required: e.required,
|
|
1200
1899
|
name: e.name,
|
|
1201
|
-
"onUpdate:modelValue":
|
|
1900
|
+
"onUpdate:modelValue": m
|
|
1202
1901
|
}, {
|
|
1203
|
-
default:
|
|
1204
|
-
|
|
1902
|
+
default: d(() => [
|
|
1903
|
+
c(a(Pt), x(i.$attrs, {
|
|
1205
1904
|
id: a(l).inputId,
|
|
1206
1905
|
class: "nb-select__trigger",
|
|
1207
1906
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1208
1907
|
"aria-describedby": b.value
|
|
1209
1908
|
}), {
|
|
1210
|
-
default:
|
|
1211
|
-
|
|
1212
|
-
|
|
1909
|
+
default: d(() => [
|
|
1910
|
+
c(a(Rt), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
|
|
1911
|
+
c(a(Lt), {
|
|
1213
1912
|
class: "nb-select__icon",
|
|
1214
1913
|
"aria-hidden": "true"
|
|
1215
1914
|
}, {
|
|
1216
|
-
default:
|
|
1217
|
-
|
|
1915
|
+
default: d(() => [...r[0] || (r[0] = [
|
|
1916
|
+
f("svg", {
|
|
1218
1917
|
viewBox: "0 0 16 16",
|
|
1219
1918
|
focusable: "false"
|
|
1220
1919
|
}, [
|
|
1221
|
-
|
|
1920
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1222
1921
|
], -1)
|
|
1223
1922
|
])]),
|
|
1224
1923
|
_: 1
|
|
@@ -1226,46 +1925,46 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1226
1925
|
]),
|
|
1227
1926
|
_: 1
|
|
1228
1927
|
}, 16, ["id", "aria-invalid", "aria-describedby"]),
|
|
1229
|
-
|
|
1230
|
-
default:
|
|
1231
|
-
|
|
1928
|
+
c(a(Ut), null, {
|
|
1929
|
+
default: d(() => [
|
|
1930
|
+
c(a(Gt), {
|
|
1232
1931
|
class: "nb-root nb-select__content",
|
|
1233
1932
|
position: "popper",
|
|
1234
1933
|
"side-offset": 5
|
|
1235
1934
|
}, {
|
|
1236
|
-
default:
|
|
1237
|
-
|
|
1935
|
+
default: d(() => [
|
|
1936
|
+
c(a(qt), {
|
|
1238
1937
|
class: "nb-select__scroll-button",
|
|
1239
1938
|
"aria-label": "Scroll up"
|
|
1240
1939
|
}, {
|
|
1241
|
-
default:
|
|
1242
|
-
|
|
1940
|
+
default: d(() => [...r[1] || (r[1] = [
|
|
1941
|
+
f("svg", {
|
|
1243
1942
|
viewBox: "0 0 16 16",
|
|
1244
1943
|
"aria-hidden": "true",
|
|
1245
1944
|
focusable: "false"
|
|
1246
1945
|
}, [
|
|
1247
|
-
|
|
1946
|
+
f("path", { d: "m3 10 5-5 5 5" })
|
|
1248
1947
|
], -1)
|
|
1249
1948
|
])]),
|
|
1250
1949
|
_: 1
|
|
1251
1950
|
}),
|
|
1252
|
-
|
|
1253
|
-
default:
|
|
1254
|
-
|
|
1951
|
+
c(a(Et), { class: "nb-select__viewport" }, {
|
|
1952
|
+
default: d(() => [
|
|
1953
|
+
h(i.$slots, "default")
|
|
1255
1954
|
]),
|
|
1256
1955
|
_: 3
|
|
1257
1956
|
}),
|
|
1258
|
-
|
|
1957
|
+
c(a(zt), {
|
|
1259
1958
|
class: "nb-select__scroll-button",
|
|
1260
1959
|
"aria-label": "Scroll down"
|
|
1261
1960
|
}, {
|
|
1262
|
-
default:
|
|
1263
|
-
|
|
1961
|
+
default: d(() => [...r[2] || (r[2] = [
|
|
1962
|
+
f("svg", {
|
|
1264
1963
|
viewBox: "0 0 16 16",
|
|
1265
1964
|
"aria-hidden": "true",
|
|
1266
1965
|
focusable: "false"
|
|
1267
1966
|
}, [
|
|
1268
|
-
|
|
1967
|
+
f("path", { d: "m3 6 5 5 5-5" })
|
|
1269
1968
|
], -1)
|
|
1270
1969
|
])]),
|
|
1271
1970
|
_: 1
|
|
@@ -1279,48 +1978,48 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1279
1978
|
]),
|
|
1280
1979
|
_: 3
|
|
1281
1980
|
}, 8, ["model-value", "disabled", "required", "name"]),
|
|
1282
|
-
e.hint ? (o(),
|
|
1981
|
+
e.hint ? (o(), u("span", {
|
|
1283
1982
|
key: 1,
|
|
1284
1983
|
id: a(l).hintId,
|
|
1285
1984
|
class: "nb-field__hint"
|
|
1286
|
-
}, p(e.hint), 9,
|
|
1287
|
-
e.error ? (o(),
|
|
1985
|
+
}, p(e.hint), 9, _n)) : g("", !0),
|
|
1986
|
+
e.error ? (o(), u("span", {
|
|
1288
1987
|
key: 2,
|
|
1289
1988
|
id: a(l).errorId,
|
|
1290
1989
|
class: "nb-field__error"
|
|
1291
|
-
}, p(e.error), 9,
|
|
1990
|
+
}, p(e.error), 9, vn)) : g("", !0)
|
|
1292
1991
|
]));
|
|
1293
1992
|
}
|
|
1294
|
-
}),
|
|
1993
|
+
}), gn = /* @__PURE__ */ _({
|
|
1295
1994
|
__name: "NbSelectItem",
|
|
1296
1995
|
props: {
|
|
1297
1996
|
value: {},
|
|
1298
1997
|
disabled: { type: Boolean, default: !1 }
|
|
1299
1998
|
},
|
|
1300
1999
|
setup(e) {
|
|
1301
|
-
return (n, t) => (o(),
|
|
2000
|
+
return (n, t) => (o(), y(a(Ft), {
|
|
1302
2001
|
class: "nb-select__item",
|
|
1303
2002
|
value: e.value,
|
|
1304
2003
|
disabled: e.disabled,
|
|
1305
2004
|
"data-value": e.value
|
|
1306
2005
|
}, {
|
|
1307
|
-
default:
|
|
1308
|
-
|
|
1309
|
-
default:
|
|
1310
|
-
|
|
2006
|
+
default: d(() => [
|
|
2007
|
+
c(a(Ht), null, {
|
|
2008
|
+
default: d(() => [
|
|
2009
|
+
h(n.$slots, "default")
|
|
1311
2010
|
]),
|
|
1312
2011
|
_: 3
|
|
1313
2012
|
}),
|
|
1314
|
-
|
|
2013
|
+
c(a(Kt), {
|
|
1315
2014
|
class: "nb-select__indicator",
|
|
1316
2015
|
"aria-hidden": "true"
|
|
1317
2016
|
}, {
|
|
1318
|
-
default:
|
|
1319
|
-
|
|
2017
|
+
default: d(() => [...t[0] || (t[0] = [
|
|
2018
|
+
f("svg", {
|
|
1320
2019
|
viewBox: "0 0 16 16",
|
|
1321
2020
|
focusable: "false"
|
|
1322
2021
|
}, [
|
|
1323
|
-
|
|
2022
|
+
f("path", { d: "m2.5 8.5 3.5 3.5 7.5-8" })
|
|
1324
2023
|
], -1)
|
|
1325
2024
|
])]),
|
|
1326
2025
|
_: 1
|
|
@@ -1329,26 +2028,26 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1329
2028
|
_: 3
|
|
1330
2029
|
}, 8, ["value", "disabled", "data-value"]));
|
|
1331
2030
|
}
|
|
1332
|
-
}),
|
|
2031
|
+
}), yn = /* @__PURE__ */ _({
|
|
1333
2032
|
__name: "NbSeparator",
|
|
1334
2033
|
props: {
|
|
1335
2034
|
orientation: { default: "horizontal" },
|
|
1336
2035
|
decorative: { type: Boolean, default: !0 }
|
|
1337
2036
|
},
|
|
1338
2037
|
setup(e) {
|
|
1339
|
-
return (n, t) => (o(),
|
|
2038
|
+
return (n, t) => (o(), y(a(jt), {
|
|
1340
2039
|
class: "nb-root nb-separator",
|
|
1341
2040
|
orientation: e.orientation,
|
|
1342
2041
|
decorative: e.decorative
|
|
1343
2042
|
}, null, 8, ["orientation", "decorative"]));
|
|
1344
2043
|
}
|
|
1345
|
-
}),
|
|
2044
|
+
}), $n = { class: "nb-root nb-field" }, Nn = {
|
|
1346
2045
|
key: 0,
|
|
1347
2046
|
class: "nb-slider__header"
|
|
1348
|
-
},
|
|
2047
|
+
}, kn = {
|
|
1349
2048
|
key: 1,
|
|
1350
2049
|
class: "nb-slider__value"
|
|
1351
|
-
},
|
|
2050
|
+
}, xn = ["id"], In = ["id"], Cn = /* @__PURE__ */ _({
|
|
1352
2051
|
inheritAttrs: !1,
|
|
1353
2052
|
__name: "NbSlider",
|
|
1354
2053
|
props: {
|
|
@@ -1367,23 +2066,23 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1367
2066
|
},
|
|
1368
2067
|
emits: ["update:modelValue", "change"],
|
|
1369
2068
|
setup(e, { emit: n }) {
|
|
1370
|
-
const t = e, s = n, l =
|
|
1371
|
-
function
|
|
1372
|
-
|
|
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]);
|
|
1373
2072
|
}
|
|
1374
|
-
function r(
|
|
1375
|
-
|
|
2073
|
+
function r(v) {
|
|
2074
|
+
v[0] !== void 0 && s("change", v[0]);
|
|
1376
2075
|
}
|
|
1377
|
-
return (
|
|
1378
|
-
e.label || e.showValue ? (o(),
|
|
1379
|
-
e.label ? (o(),
|
|
2076
|
+
return (v, $) => (o(), u("div", $n, [
|
|
2077
|
+
e.label || e.showValue ? (o(), u("div", Nn, [
|
|
2078
|
+
e.label ? (o(), u("span", {
|
|
1380
2079
|
key: 0,
|
|
1381
2080
|
id: b,
|
|
1382
2081
|
class: "nb-field__label"
|
|
1383
|
-
}, p(e.label), 1)) :
|
|
1384
|
-
e.showValue ? (o(),
|
|
1385
|
-
])) :
|
|
1386
|
-
|
|
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), {
|
|
1387
2086
|
class: "nb-slider",
|
|
1388
2087
|
"model-value": [e.modelValue],
|
|
1389
2088
|
min: e.min,
|
|
@@ -1392,39 +2091,39 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1392
2091
|
disabled: e.disabled,
|
|
1393
2092
|
required: e.required,
|
|
1394
2093
|
name: e.name,
|
|
1395
|
-
"onUpdate:modelValue":
|
|
2094
|
+
"onUpdate:modelValue": i,
|
|
1396
2095
|
onValueCommit: r
|
|
1397
2096
|
}, {
|
|
1398
|
-
default:
|
|
1399
|
-
|
|
1400
|
-
default:
|
|
1401
|
-
|
|
2097
|
+
default: d(() => [
|
|
2098
|
+
c(a(Jt), { class: "nb-slider__track" }, {
|
|
2099
|
+
default: d(() => [
|
|
2100
|
+
c(a(Qt), { class: "nb-slider__range" })
|
|
1402
2101
|
]),
|
|
1403
2102
|
_: 1
|
|
1404
2103
|
}),
|
|
1405
|
-
|
|
2104
|
+
c(a(Wt), x(v.$attrs, {
|
|
1406
2105
|
id: a(l).inputId,
|
|
1407
2106
|
class: "nb-slider__thumb",
|
|
1408
2107
|
"aria-labelledby": e.label ? b : void 0,
|
|
1409
2108
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1410
|
-
"aria-describedby":
|
|
2109
|
+
"aria-describedby": m.value
|
|
1411
2110
|
}), null, 16, ["id", "aria-labelledby", "aria-invalid", "aria-describedby"])
|
|
1412
2111
|
]),
|
|
1413
2112
|
_: 1
|
|
1414
2113
|
}, 8, ["model-value", "min", "max", "step", "disabled", "required", "name"]),
|
|
1415
|
-
e.hint ? (o(),
|
|
2114
|
+
e.hint ? (o(), u("span", {
|
|
1416
2115
|
key: 1,
|
|
1417
2116
|
id: a(l).hintId,
|
|
1418
2117
|
class: "nb-field__hint"
|
|
1419
|
-
}, p(e.hint), 9,
|
|
1420
|
-
e.error ? (o(),
|
|
2118
|
+
}, p(e.hint), 9, xn)) : g("", !0),
|
|
2119
|
+
e.error ? (o(), u("span", {
|
|
1421
2120
|
key: 2,
|
|
1422
2121
|
id: a(l).errorId,
|
|
1423
2122
|
class: "nb-field__error"
|
|
1424
|
-
}, p(e.error), 9,
|
|
2123
|
+
}, p(e.error), 9, In)) : g("", !0)
|
|
1425
2124
|
]));
|
|
1426
2125
|
}
|
|
1427
|
-
}),
|
|
2126
|
+
}), Vn = /* @__PURE__ */ _({
|
|
1428
2127
|
__name: "NbSkeleton",
|
|
1429
2128
|
props: {
|
|
1430
2129
|
width: { default: "100%" },
|
|
@@ -1432,32 +2131,32 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1432
2131
|
rounded: { type: Boolean, default: !1 }
|
|
1433
2132
|
},
|
|
1434
2133
|
setup(e) {
|
|
1435
|
-
const n = e, t =
|
|
1436
|
-
return (s, l) => (o(),
|
|
1437
|
-
class:
|
|
1438
|
-
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),
|
|
1439
2138
|
"aria-hidden": "true"
|
|
1440
2139
|
}, null, 6));
|
|
1441
2140
|
}
|
|
1442
|
-
}),
|
|
2141
|
+
}), Bn = ["aria-label"], wn = /* @__PURE__ */ _({
|
|
1443
2142
|
__name: "NbSpinner",
|
|
1444
2143
|
props: {
|
|
1445
2144
|
label: { default: "Loading" },
|
|
1446
2145
|
size: { default: "md" }
|
|
1447
2146
|
},
|
|
1448
2147
|
setup(e) {
|
|
1449
|
-
return (n, t) => (o(),
|
|
2148
|
+
return (n, t) => (o(), u("span", {
|
|
1450
2149
|
class: "nb-root nb-spinner-wrap",
|
|
1451
2150
|
role: "status",
|
|
1452
2151
|
"aria-label": e.label
|
|
1453
2152
|
}, [
|
|
1454
|
-
|
|
1455
|
-
class:
|
|
2153
|
+
f("span", {
|
|
2154
|
+
class: I(["nb-spinner", `nb-spinner--${e.size}`]),
|
|
1456
2155
|
"aria-hidden": "true"
|
|
1457
2156
|
}, null, 2)
|
|
1458
|
-
], 8,
|
|
2157
|
+
], 8, Bn));
|
|
1459
2158
|
}
|
|
1460
|
-
}),
|
|
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__ */ _({
|
|
1461
2160
|
inheritAttrs: !1,
|
|
1462
2161
|
__name: "NbSwitch",
|
|
1463
2162
|
props: {
|
|
@@ -1469,12 +2168,12 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1469
2168
|
},
|
|
1470
2169
|
emits: ["update:modelValue"],
|
|
1471
2170
|
setup(e, { emit: n }) {
|
|
1472
|
-
const t = e, s = n, l =
|
|
1473
|
-
return (b,
|
|
1474
|
-
class:
|
|
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 }]),
|
|
1475
2174
|
for: a(l).inputId
|
|
1476
2175
|
}, [
|
|
1477
|
-
|
|
2176
|
+
f("input", x(b.$attrs, {
|
|
1478
2177
|
id: a(l).inputId,
|
|
1479
2178
|
class: "nb-switch__input",
|
|
1480
2179
|
type: "checkbox",
|
|
@@ -1483,31 +2182,31 @@ const Ot = ["for"], Et = ["id", "checked", "disabled"], Gt = { class: "nb-checkb
|
|
|
1483
2182
|
disabled: e.disabled,
|
|
1484
2183
|
"aria-checked": e.modelValue ? "true" : "false",
|
|
1485
2184
|
"aria-describedby": e.description ? a(l).hintId : void 0,
|
|
1486
|
-
onChange:
|
|
1487
|
-
}), null, 16,
|
|
1488
|
-
|
|
2185
|
+
onChange: m[0] || (m[0] = (i) => s("update:modelValue", i.target.checked))
|
|
2186
|
+
}), null, 16, Tn),
|
|
2187
|
+
m[1] || (m[1] = f("span", {
|
|
1489
2188
|
class: "nb-switch__track",
|
|
1490
2189
|
"aria-hidden": "true"
|
|
1491
2190
|
}, [
|
|
1492
|
-
|
|
2191
|
+
f("span", { class: "nb-switch__thumb" })
|
|
1493
2192
|
], -1)),
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
e.description ? (o(),
|
|
2193
|
+
f("span", Mn, [
|
|
2194
|
+
f("span", An, p(e.label), 1),
|
|
2195
|
+
e.description ? (o(), u("span", {
|
|
1497
2196
|
key: 0,
|
|
1498
2197
|
id: a(l).hintId,
|
|
1499
2198
|
class: "nb-switch__description"
|
|
1500
|
-
}, p(e.description), 9,
|
|
2199
|
+
}, p(e.description), 9, Dn)) : g("", !0)
|
|
1501
2200
|
])
|
|
1502
|
-
], 10,
|
|
2201
|
+
], 10, Sn));
|
|
1503
2202
|
}
|
|
1504
|
-
}),
|
|
1505
|
-
function
|
|
1506
|
-
const e =
|
|
2203
|
+
}), se = /* @__PURE__ */ Symbol("nb-tabs");
|
|
2204
|
+
function U() {
|
|
2205
|
+
const e = be(se);
|
|
1507
2206
|
if (!e) throw new Error("Tabs components must be used inside NbTabs");
|
|
1508
2207
|
return e;
|
|
1509
2208
|
}
|
|
1510
|
-
const
|
|
2209
|
+
const Pn = ["data-orientation"], Rn = /* @__PURE__ */ _({
|
|
1511
2210
|
__name: "NbTabs",
|
|
1512
2211
|
props: {
|
|
1513
2212
|
modelValue: {},
|
|
@@ -1516,31 +2215,31 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1516
2215
|
},
|
|
1517
2216
|
emits: ["update:modelValue"],
|
|
1518
2217
|
setup(e, { emit: n }) {
|
|
1519
|
-
const t = e, s = n, l =
|
|
1520
|
-
function
|
|
1521
|
-
t.modelValue === void 0 && (b.value =
|
|
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", $);
|
|
1522
2221
|
}
|
|
1523
|
-
return
|
|
1524
|
-
activeValue:
|
|
1525
|
-
orientation:
|
|
1526
|
-
select:
|
|
1527
|
-
triggerId: (
|
|
1528
|
-
panelId: (
|
|
1529
|
-
}), (
|
|
1530
|
-
class:
|
|
1531
|
-
"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
|
|
1532
2231
|
}, [
|
|
1533
|
-
|
|
1534
|
-
], 10,
|
|
2232
|
+
h($.$slots, "default")
|
|
2233
|
+
], 10, Pn));
|
|
1535
2234
|
}
|
|
1536
|
-
}),
|
|
2235
|
+
}), Ln = ["id", "aria-labelledby", "hidden"], Un = /* @__PURE__ */ _({
|
|
1537
2236
|
__name: "NbTabsContent",
|
|
1538
2237
|
props: {
|
|
1539
2238
|
value: {}
|
|
1540
2239
|
},
|
|
1541
2240
|
setup(e) {
|
|
1542
|
-
const n = e, t =
|
|
1543
|
-
return (l, b) =>
|
|
2241
|
+
const n = e, t = U(), s = N(() => t.activeValue.value === n.value);
|
|
2242
|
+
return (l, b) => me((o(), u("div", {
|
|
1544
2243
|
class: "nb-tabs__content",
|
|
1545
2244
|
role: "tabpanel",
|
|
1546
2245
|
id: a(t).panelId(e.value),
|
|
@@ -1548,43 +2247,43 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1548
2247
|
hidden: !s.value,
|
|
1549
2248
|
tabindex: "0"
|
|
1550
2249
|
}, [
|
|
1551
|
-
|
|
1552
|
-
], 8,
|
|
1553
|
-
[
|
|
2250
|
+
h(l.$slots, "default")
|
|
2251
|
+
], 8, Ln)), [
|
|
2252
|
+
[pe, s.value]
|
|
1554
2253
|
]);
|
|
1555
2254
|
}
|
|
1556
|
-
}),
|
|
2255
|
+
}), Gn = ["aria-orientation"], qn = /* @__PURE__ */ _({
|
|
1557
2256
|
__name: "NbTabsList",
|
|
1558
2257
|
setup(e) {
|
|
1559
|
-
const { orientation: n } =
|
|
2258
|
+
const { orientation: n } = U();
|
|
1560
2259
|
function t(s) {
|
|
1561
2260
|
const l = n.value === "vertical" ? "ArrowUp" : "ArrowLeft", b = n.value === "vertical" ? "ArrowDown" : "ArrowRight";
|
|
1562
2261
|
if (![l, b, "Home", "End"].includes(s.key)) return;
|
|
1563
|
-
const
|
|
1564
|
-
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;
|
|
1565
2264
|
s.preventDefault();
|
|
1566
|
-
const
|
|
1567
|
-
|
|
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();
|
|
1568
2267
|
}
|
|
1569
|
-
return (s, l) => (o(),
|
|
2268
|
+
return (s, l) => (o(), u("div", {
|
|
1570
2269
|
class: "nb-tabs__list",
|
|
1571
2270
|
role: "tablist",
|
|
1572
2271
|
"aria-orientation": a(n),
|
|
1573
2272
|
onKeydown: t
|
|
1574
2273
|
}, [
|
|
1575
|
-
|
|
1576
|
-
], 40,
|
|
2274
|
+
h(s.$slots, "default")
|
|
2275
|
+
], 40, Gn));
|
|
1577
2276
|
}
|
|
1578
|
-
}),
|
|
2277
|
+
}), En = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "data-active"], zn = /* @__PURE__ */ _({
|
|
1579
2278
|
__name: "NbTabsTrigger",
|
|
1580
2279
|
props: {
|
|
1581
2280
|
value: {},
|
|
1582
2281
|
disabled: { type: Boolean, default: !1 }
|
|
1583
2282
|
},
|
|
1584
2283
|
setup(e) {
|
|
1585
|
-
const n = e, t =
|
|
1586
|
-
return (l, b) => (o(),
|
|
1587
|
-
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 }]),
|
|
1588
2287
|
id: a(t).triggerId(e.value),
|
|
1589
2288
|
type: "button",
|
|
1590
2289
|
role: "tab",
|
|
@@ -1593,12 +2292,12 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1593
2292
|
tabindex: s.value ? 0 : -1,
|
|
1594
2293
|
disabled: e.disabled,
|
|
1595
2294
|
"data-active": s.value ? "" : void 0,
|
|
1596
|
-
onClick: b[0] || (b[0] = (
|
|
2295
|
+
onClick: b[0] || (b[0] = (m) => a(t).select(e.value))
|
|
1597
2296
|
}, [
|
|
1598
|
-
|
|
1599
|
-
], 10,
|
|
2297
|
+
h(l.$slots, "default")
|
|
2298
|
+
], 10, En));
|
|
1600
2299
|
}
|
|
1601
|
-
}),
|
|
2300
|
+
}), Fn = { class: "nb-root nb-field" }, Hn = ["for"], Kn = ["id", "value", "disabled", "aria-invalid", "aria-describedby"], jn = ["id"], Xn = ["id"], Jn = /* @__PURE__ */ _({
|
|
1602
2301
|
inheritAttrs: !1,
|
|
1603
2302
|
__name: "NbTextarea",
|
|
1604
2303
|
props: {
|
|
@@ -1611,49 +2310,49 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1611
2310
|
},
|
|
1612
2311
|
emits: ["update:modelValue"],
|
|
1613
2312
|
setup(e, { emit: n }) {
|
|
1614
|
-
const t = e, s = n, l =
|
|
1615
|
-
return (
|
|
1616
|
-
e.label ? (o(),
|
|
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", {
|
|
1617
2316
|
key: 0,
|
|
1618
2317
|
class: "nb-field__label",
|
|
1619
2318
|
for: a(l).inputId
|
|
1620
|
-
}, p(e.label), 9,
|
|
1621
|
-
|
|
2319
|
+
}, p(e.label), 9, Hn)) : g("", !0),
|
|
2320
|
+
f("textarea", x(m.$attrs, {
|
|
1622
2321
|
id: a(l).inputId,
|
|
1623
2322
|
class: "nb-field__control nb-field__control--textarea",
|
|
1624
2323
|
value: e.modelValue,
|
|
1625
2324
|
disabled: e.disabled,
|
|
1626
2325
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1627
2326
|
"aria-describedby": b.value,
|
|
1628
|
-
onInput:
|
|
1629
|
-
}), null, 16,
|
|
1630
|
-
e.hint ? (o(),
|
|
2327
|
+
onInput: i[0] || (i[0] = (r) => s("update:modelValue", r.target.value))
|
|
2328
|
+
}), null, 16, Kn),
|
|
2329
|
+
e.hint ? (o(), u("span", {
|
|
1631
2330
|
key: 1,
|
|
1632
2331
|
id: a(l).hintId,
|
|
1633
2332
|
class: "nb-field__hint"
|
|
1634
|
-
}, p(e.hint), 9,
|
|
1635
|
-
e.error ? (o(),
|
|
2333
|
+
}, p(e.hint), 9, jn)) : g("", !0),
|
|
2334
|
+
e.error ? (o(), u("span", {
|
|
1636
2335
|
key: 2,
|
|
1637
2336
|
id: a(l).errorId,
|
|
1638
2337
|
class: "nb-field__error"
|
|
1639
|
-
}, p(e.error), 9,
|
|
2338
|
+
}, p(e.error), 9, Xn)) : g("", !0)
|
|
1640
2339
|
]));
|
|
1641
2340
|
}
|
|
1642
|
-
}),
|
|
2341
|
+
}), Qn = { class: "nb-root nb-table-wrap" }, Wn = { key: 0 }, Yn = /* @__PURE__ */ _({
|
|
1643
2342
|
inheritAttrs: !1,
|
|
1644
2343
|
__name: "NbTable",
|
|
1645
2344
|
props: {
|
|
1646
2345
|
caption: {}
|
|
1647
2346
|
},
|
|
1648
2347
|
setup(e) {
|
|
1649
|
-
return (n, t) => (o(),
|
|
1650
|
-
|
|
1651
|
-
e.caption ? (o(),
|
|
1652
|
-
|
|
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")
|
|
1653
2352
|
], 16)
|
|
1654
2353
|
]));
|
|
1655
2354
|
}
|
|
1656
|
-
}),
|
|
2355
|
+
}), Zn = { class: "nb-toast__content" }, eo = /* @__PURE__ */ _({
|
|
1657
2356
|
__name: "NbToast",
|
|
1658
2357
|
props: {
|
|
1659
2358
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1665,63 +2364,63 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1665
2364
|
},
|
|
1666
2365
|
emits: ["update:open"],
|
|
1667
2366
|
setup(e, { emit: n }) {
|
|
1668
|
-
const t = e, s = n, l =
|
|
1669
|
-
|
|
1670
|
-
|
|
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);
|
|
1671
2370
|
});
|
|
1672
|
-
function
|
|
1673
|
-
l.value =
|
|
2371
|
+
function m(i) {
|
|
2372
|
+
l.value = i, s("update:open", i);
|
|
1674
2373
|
}
|
|
1675
|
-
return (
|
|
2374
|
+
return (i, r) => (o(), y(a(Yt), {
|
|
1676
2375
|
label: "Notification",
|
|
1677
2376
|
duration: e.duration
|
|
1678
2377
|
}, {
|
|
1679
|
-
default:
|
|
1680
|
-
|
|
1681
|
-
class:
|
|
2378
|
+
default: d(() => [
|
|
2379
|
+
c(a(Zt), {
|
|
2380
|
+
class: I(["nb-root nb-toast", `nb-toast--${e.tone}`]),
|
|
1682
2381
|
open: b.value,
|
|
1683
2382
|
"default-open": e.defaultOpen,
|
|
1684
2383
|
type: "foreground",
|
|
1685
2384
|
role: "status",
|
|
1686
|
-
"onUpdate:open":
|
|
2385
|
+
"onUpdate:open": m
|
|
1687
2386
|
}, {
|
|
1688
|
-
default:
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
default:
|
|
1692
|
-
|
|
2387
|
+
default: d(() => [
|
|
2388
|
+
f("div", Zn, [
|
|
2389
|
+
c(a(ea), { class: "nb-toast__title" }, {
|
|
2390
|
+
default: d(() => [
|
|
2391
|
+
k(p(e.title), 1)
|
|
1693
2392
|
]),
|
|
1694
2393
|
_: 1
|
|
1695
2394
|
}),
|
|
1696
|
-
e.description ? (o(),
|
|
2395
|
+
e.description ? (o(), y(a(ta), {
|
|
1697
2396
|
key: 0,
|
|
1698
2397
|
class: "nb-toast__description"
|
|
1699
2398
|
}, {
|
|
1700
|
-
default:
|
|
1701
|
-
|
|
2399
|
+
default: d(() => [
|
|
2400
|
+
k(p(e.description), 1)
|
|
1702
2401
|
]),
|
|
1703
2402
|
_: 1
|
|
1704
|
-
})) :
|
|
1705
|
-
|
|
2403
|
+
})) : g("", !0),
|
|
2404
|
+
h(i.$slots, "default")
|
|
1706
2405
|
]),
|
|
1707
|
-
|
|
2406
|
+
c(a(aa), {
|
|
1708
2407
|
class: "nb-overlay-close",
|
|
1709
2408
|
"aria-label": "Dismiss notification"
|
|
1710
2409
|
}, {
|
|
1711
|
-
default:
|
|
1712
|
-
|
|
2410
|
+
default: d(() => [...r[0] || (r[0] = [
|
|
2411
|
+
k("×", -1)
|
|
1713
2412
|
])]),
|
|
1714
2413
|
_: 1
|
|
1715
2414
|
})
|
|
1716
2415
|
]),
|
|
1717
2416
|
_: 3
|
|
1718
2417
|
}, 8, ["class", "open", "default-open"]),
|
|
1719
|
-
|
|
2418
|
+
c(a(la), { class: "nb-root nb-toast-viewport" })
|
|
1720
2419
|
]),
|
|
1721
2420
|
_: 3
|
|
1722
2421
|
}, 8, ["duration"]));
|
|
1723
2422
|
}
|
|
1724
|
-
}),
|
|
2423
|
+
}), to = /* @__PURE__ */ _({
|
|
1725
2424
|
inheritAttrs: !1,
|
|
1726
2425
|
__name: "NbToggle",
|
|
1727
2426
|
props: {
|
|
@@ -1734,22 +2433,22 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1734
2433
|
},
|
|
1735
2434
|
emits: ["update:modelValue"],
|
|
1736
2435
|
setup(e, { emit: n }) {
|
|
1737
|
-
const t = e, s = n, l =
|
|
1738
|
-
return (b,
|
|
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, {
|
|
1739
2438
|
class: ["nb-root nb-toggle", l.value],
|
|
1740
2439
|
"model-value": e.modelValue,
|
|
1741
2440
|
"default-value": e.defaultValue,
|
|
1742
2441
|
disabled: e.disabled,
|
|
1743
2442
|
"aria-label": e.label,
|
|
1744
|
-
"onUpdate:modelValue":
|
|
2443
|
+
"onUpdate:modelValue": m[0] || (m[0] = (i) => s("update:modelValue", i))
|
|
1745
2444
|
}), {
|
|
1746
|
-
default:
|
|
1747
|
-
|
|
2445
|
+
default: d(() => [
|
|
2446
|
+
h(b.$slots, "default")
|
|
1748
2447
|
]),
|
|
1749
2448
|
_: 3
|
|
1750
2449
|
}, 16, ["class", "model-value", "default-value", "disabled", "aria-label"]));
|
|
1751
2450
|
}
|
|
1752
|
-
}),
|
|
2451
|
+
}), ao = { class: "nb-root nb-field" }, lo = ["id"], no = ["id"], oo = /* @__PURE__ */ _({
|
|
1753
2452
|
inheritAttrs: !1,
|
|
1754
2453
|
__name: "NbToggleGroup",
|
|
1755
2454
|
props: {
|
|
@@ -1766,17 +2465,17 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1766
2465
|
},
|
|
1767
2466
|
emits: ["update:modelValue"],
|
|
1768
2467
|
setup(e, { emit: n }) {
|
|
1769
|
-
const t = e, s = n, l =
|
|
1770
|
-
function
|
|
1771
|
-
(typeof r == "string" || Array.isArray(r) && r.every((
|
|
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);
|
|
1772
2471
|
}
|
|
1773
|
-
return (r,
|
|
1774
|
-
e.label ? (o(),
|
|
2472
|
+
return (r, v) => (o(), u("div", ao, [
|
|
2473
|
+
e.label ? (o(), u("span", {
|
|
1775
2474
|
key: 0,
|
|
1776
2475
|
id: b,
|
|
1777
2476
|
class: "nb-field__label"
|
|
1778
|
-
}, p(e.label), 1)) :
|
|
1779
|
-
|
|
2477
|
+
}, p(e.label), 1)) : g("", !0),
|
|
2478
|
+
c(a(oa), x(r.$attrs, {
|
|
1780
2479
|
id: a(l).inputId,
|
|
1781
2480
|
class: "nb-toggle-group",
|
|
1782
2481
|
"model-value": e.modelValue,
|
|
@@ -1788,27 +2487,27 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1788
2487
|
"data-orientation": e.orientation,
|
|
1789
2488
|
"aria-labelledby": e.label ? b : void 0,
|
|
1790
2489
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1791
|
-
"aria-describedby":
|
|
1792
|
-
"onUpdate:modelValue":
|
|
2490
|
+
"aria-describedby": m.value,
|
|
2491
|
+
"onUpdate:modelValue": i
|
|
1793
2492
|
}), {
|
|
1794
|
-
default:
|
|
1795
|
-
|
|
2493
|
+
default: d(() => [
|
|
2494
|
+
h(r.$slots, "default")
|
|
1796
2495
|
]),
|
|
1797
2496
|
_: 3
|
|
1798
2497
|
}, 16, ["id", "model-value", "type", "orientation", "disabled", "required", "name", "data-orientation", "aria-labelledby", "aria-invalid", "aria-describedby"]),
|
|
1799
|
-
e.hint ? (o(),
|
|
2498
|
+
e.hint ? (o(), u("span", {
|
|
1800
2499
|
key: 1,
|
|
1801
2500
|
id: a(l).hintId,
|
|
1802
2501
|
class: "nb-field__hint"
|
|
1803
|
-
}, p(e.hint), 9,
|
|
1804
|
-
e.error ? (o(),
|
|
2502
|
+
}, p(e.hint), 9, lo)) : g("", !0),
|
|
2503
|
+
e.error ? (o(), u("span", {
|
|
1805
2504
|
key: 2,
|
|
1806
2505
|
id: a(l).errorId,
|
|
1807
2506
|
class: "nb-field__error"
|
|
1808
|
-
}, p(e.error), 9,
|
|
2507
|
+
}, p(e.error), 9, no)) : g("", !0)
|
|
1809
2508
|
]));
|
|
1810
2509
|
}
|
|
1811
|
-
}),
|
|
2510
|
+
}), so = /* @__PURE__ */ _({
|
|
1812
2511
|
inheritAttrs: !1,
|
|
1813
2512
|
__name: "NbToggleGroupItem",
|
|
1814
2513
|
props: {
|
|
@@ -1816,156 +2515,184 @@ const gl = ["data-orientation"], _l = /* @__PURE__ */ v({
|
|
|
1816
2515
|
disabled: { type: Boolean, default: !1 }
|
|
1817
2516
|
},
|
|
1818
2517
|
setup(e) {
|
|
1819
|
-
return (n, t) => (o(),
|
|
2518
|
+
return (n, t) => (o(), y(a(sa), x(n.$attrs, {
|
|
1820
2519
|
class: "nb-toggle-group__item",
|
|
1821
2520
|
value: e.value,
|
|
1822
2521
|
disabled: e.disabled
|
|
1823
2522
|
}), {
|
|
1824
|
-
default:
|
|
1825
|
-
|
|
2523
|
+
default: d(() => [
|
|
2524
|
+
h(n.$slots, "default")
|
|
1826
2525
|
]),
|
|
1827
2526
|
_: 3
|
|
1828
2527
|
}, 16, ["value", "disabled"]));
|
|
1829
2528
|
}
|
|
1830
|
-
}),
|
|
2529
|
+
}), io = ["aria-describedby"], ro = ["id", "hidden"], uo = /* @__PURE__ */ _({
|
|
1831
2530
|
__name: "NbTooltip",
|
|
1832
2531
|
props: {
|
|
1833
2532
|
content: {}
|
|
1834
2533
|
},
|
|
1835
2534
|
setup(e) {
|
|
1836
|
-
const n = e, t =
|
|
2535
|
+
const n = e, t = V(!1), s = M("tooltip");
|
|
1837
2536
|
function l() {
|
|
1838
2537
|
t.value = !0;
|
|
1839
2538
|
}
|
|
1840
2539
|
function b() {
|
|
1841
2540
|
t.value = !1;
|
|
1842
2541
|
}
|
|
1843
|
-
function
|
|
1844
|
-
|
|
2542
|
+
function m(i) {
|
|
2543
|
+
i.key === "Escape" && b();
|
|
1845
2544
|
}
|
|
1846
|
-
return (
|
|
2545
|
+
return (i, r) => (o(), u("span", {
|
|
1847
2546
|
class: "nb-root nb-tooltip",
|
|
1848
2547
|
onMouseenter: l,
|
|
1849
2548
|
onMouseleave: b
|
|
1850
2549
|
}, [
|
|
1851
|
-
|
|
2550
|
+
f("span", {
|
|
1852
2551
|
class: "nb-tooltip__trigger",
|
|
1853
2552
|
tabindex: "0",
|
|
1854
2553
|
"aria-describedby": a(s),
|
|
1855
2554
|
onFocus: l,
|
|
1856
2555
|
onBlur: b,
|
|
1857
|
-
onKeydown:
|
|
2556
|
+
onKeydown: m
|
|
1858
2557
|
}, [
|
|
1859
|
-
|
|
1860
|
-
], 40,
|
|
1861
|
-
|
|
2558
|
+
h(i.$slots, "default")
|
|
2559
|
+
], 40, io),
|
|
2560
|
+
f("span", {
|
|
1862
2561
|
id: a(s),
|
|
1863
2562
|
class: "nb-tooltip__content",
|
|
1864
2563
|
role: "tooltip",
|
|
1865
2564
|
hidden: !t.value
|
|
1866
2565
|
}, [
|
|
1867
|
-
|
|
1868
|
-
|
|
2566
|
+
h(i.$slots, "content", {}, () => [
|
|
2567
|
+
k(p(n.content), 1)
|
|
1869
2568
|
])
|
|
1870
|
-
], 8,
|
|
2569
|
+
], 8, ro)
|
|
1871
2570
|
], 32));
|
|
1872
2571
|
}
|
|
1873
|
-
}),
|
|
1874
|
-
NbAccordion:
|
|
1875
|
-
NbAccordionItem:
|
|
1876
|
-
NbAlert:
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
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
|
|
1921
2634
|
});
|
|
1922
2635
|
export {
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
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
|
|
1971
2698
|
};
|