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