@nightshadeui/core 2.0.14 → 2.0.15
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/dist/components/RouterBtn.vue.d.ts +26 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/core.mjs +225 -192
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
to: {
|
|
3
|
+
required: true;
|
|
4
|
+
};
|
|
5
|
+
activeOverrides: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
};
|
|
8
|
+
exactActiveOverrides: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {
|
|
12
|
+
actualAttrs(isActive: any, isExactActive: any): {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
to: {
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
activeOverrides: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
22
|
+
exactActiveOverrides: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -6,8 +6,9 @@ import { default as InputGroup } from './InputGroup.vue';
|
|
|
6
6
|
import { default as InputSelect } from './InputSelect.vue';
|
|
7
7
|
import { default as InputText } from './InputText.vue';
|
|
8
8
|
import { default as InputTextarea } from './InputTextarea.vue';
|
|
9
|
+
import { default as RouterBtn } from './RouterBtn.vue';
|
|
9
10
|
import { default as Tab } from './Tab.vue';
|
|
10
11
|
import { default as TabCap } from './TabCap.vue';
|
|
11
12
|
import { default as Toggle } from './Toggle.vue';
|
|
12
13
|
import { default as VGroup } from './VGroup.vue';
|
|
13
|
-
export { Btn, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, Tab, TabCap, Toggle, VGroup, };
|
|
14
|
+
export { Btn, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, RouterBtn, Tab, TabCap, Toggle, VGroup, };
|
package/dist/core.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createBlock as
|
|
1
|
+
import { createBlock as p, openBlock as r, resolveDynamicComponent as S, normalizeClass as y, withCtx as v, renderSlot as u, createElementBlock as d, createCommentVNode as c, toDisplayString as g, resolveComponent as b, createVNode as O, createElementVNode as h, Fragment as V, mergeProps as B } from "vue";
|
|
2
2
|
const f = (t, n) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
|
-
for (const [i,
|
|
5
|
-
e[i] =
|
|
4
|
+
for (const [i, l] of n)
|
|
5
|
+
e[i] = l;
|
|
6
6
|
return e;
|
|
7
|
-
},
|
|
7
|
+
}, $ = {
|
|
8
8
|
props: {
|
|
9
9
|
tagName: { type: String, default: "button" },
|
|
10
10
|
href: { type: String },
|
|
@@ -55,89 +55,89 @@ const f = (t, n) => {
|
|
|
55
55
|
hoverOverrides: n = {},
|
|
56
56
|
activeOverrides: e = {},
|
|
57
57
|
focusOverrides: i = {},
|
|
58
|
-
active:
|
|
59
|
-
hover:
|
|
58
|
+
active: l,
|
|
59
|
+
hover: o,
|
|
60
60
|
focus: s,
|
|
61
61
|
forceActive: a,
|
|
62
|
-
forceHover:
|
|
63
|
-
forceFocus:
|
|
64
|
-
} = this,
|
|
65
|
-
return (
|
|
62
|
+
forceHover: _,
|
|
63
|
+
forceFocus: k
|
|
64
|
+
} = this, m = Object.assign({}, t);
|
|
65
|
+
return (l || a) && Object.assign(m, e), (o || _) && Object.assign(m, n), (s || k) && Object.assign(m, i), m;
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
69
|
// TODO add debounce
|
|
70
70
|
}
|
|
71
|
-
},
|
|
71
|
+
}, j = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "Label"
|
|
74
74
|
};
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function C(t, n, e, i, l, o) {
|
|
76
|
+
return r(), p(S(e.tagName), {
|
|
77
77
|
ref: "button",
|
|
78
|
-
class:
|
|
79
|
-
`Btn-${
|
|
80
|
-
`Btn-${
|
|
81
|
-
`input-kind-${
|
|
78
|
+
class: y(["Btn InputElement", [
|
|
79
|
+
`Btn-${o.effectiveStyle.size}`,
|
|
80
|
+
`Btn-${o.effectiveStyle.kind}`,
|
|
81
|
+
`input-kind-${o.effectiveStyle.kind}`,
|
|
82
82
|
`Btn-iconPos-${e.iconPos}`,
|
|
83
83
|
{
|
|
84
|
-
"Btn-ghost":
|
|
85
|
-
"Btn-round":
|
|
86
|
-
"Btn-outline":
|
|
87
|
-
"Btn-flat":
|
|
88
|
-
"Btn-shadow":
|
|
84
|
+
"Btn-ghost": o.effectiveStyle.ghost,
|
|
85
|
+
"Btn-round": o.effectiveStyle.round,
|
|
86
|
+
"Btn-outline": o.effectiveStyle.outline,
|
|
87
|
+
"Btn-flat": o.effectiveStyle.flat,
|
|
88
|
+
"Btn-shadow": o.effectiveStyle.shadow,
|
|
89
89
|
"Btn-square": e.square,
|
|
90
90
|
"Btn-block": e.block,
|
|
91
|
-
"Btn-disabled": e.disabled ||
|
|
91
|
+
"Btn-disabled": e.disabled || l.blocked,
|
|
92
92
|
"Btn-force-focus": e.forceFocus,
|
|
93
93
|
"Btn-force-hover": e.forceHover,
|
|
94
94
|
"Btn-force-active": e.forceActive
|
|
95
95
|
}
|
|
96
96
|
]]),
|
|
97
|
-
disabled: e.disabled ||
|
|
97
|
+
disabled: e.disabled || l.blocked,
|
|
98
98
|
title: e.title ?? e.label,
|
|
99
99
|
href: e.href,
|
|
100
|
-
onMouseenter: n[0] || (n[0] = (s) =>
|
|
101
|
-
onMouseleave: n[1] || (n[1] = (s) =>
|
|
102
|
-
onMousedown: n[2] || (n[2] = (s) =>
|
|
103
|
-
onMouseup: n[3] || (n[3] = (s) =>
|
|
104
|
-
onMouseout: n[4] || (n[4] = (s) =>
|
|
105
|
-
onFocusin: n[5] || (n[5] = (s) =>
|
|
106
|
-
onFocusout: n[6] || (n[6] = (s) =>
|
|
100
|
+
onMouseenter: n[0] || (n[0] = (s) => l.hover = !0),
|
|
101
|
+
onMouseleave: n[1] || (n[1] = (s) => l.hover = !1),
|
|
102
|
+
onMousedown: n[2] || (n[2] = (s) => l.active = !0),
|
|
103
|
+
onMouseup: n[3] || (n[3] = (s) => l.active = !1),
|
|
104
|
+
onMouseout: n[4] || (n[4] = (s) => l.active = !1),
|
|
105
|
+
onFocusin: n[5] || (n[5] = (s) => l.focus = !0),
|
|
106
|
+
onFocusout: n[6] || (n[6] = (s) => l.focus = !1)
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
109
|
-
|
|
110
|
-
hover:
|
|
111
|
-
blocked:
|
|
108
|
+
default: v(() => [
|
|
109
|
+
u(t.$slots, "icon", {
|
|
110
|
+
hover: l.hover,
|
|
111
|
+
blocked: l.blocked
|
|
112
112
|
}, () => [
|
|
113
|
-
e.icon ? (
|
|
113
|
+
e.icon ? (r(), d("i", {
|
|
114
114
|
key: 0,
|
|
115
|
-
class:
|
|
115
|
+
class: y([e.icon, "Icon"])
|
|
116
116
|
}, null, 2)) : c("", !0)
|
|
117
117
|
], !0),
|
|
118
|
-
e.label ? (
|
|
119
|
-
|
|
120
|
-
hover:
|
|
121
|
-
active:
|
|
122
|
-
blocked:
|
|
118
|
+
e.label ? (r(), d("span", j, g(e.label), 1)) : c("", !0),
|
|
119
|
+
u(t.$slots, "default", {
|
|
120
|
+
hover: l.hover,
|
|
121
|
+
active: l.active,
|
|
122
|
+
blocked: l.blocked
|
|
123
123
|
}, void 0, !0)
|
|
124
124
|
]),
|
|
125
125
|
_: 3
|
|
126
126
|
}, 40, ["class", "disabled", "title", "href"]);
|
|
127
127
|
}
|
|
128
|
-
const F = /* @__PURE__ */ f(
|
|
128
|
+
const F = /* @__PURE__ */ f($, [["render", C], ["__scopeId", "data-v-09d29421"]]), x = {
|
|
129
129
|
props: {
|
|
130
130
|
fill: { type: String, default: "none" }
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
function H(t, n, e, i,
|
|
134
|
-
return
|
|
135
|
-
class:
|
|
133
|
+
function H(t, n, e, i, l, o) {
|
|
134
|
+
return r(), d("div", {
|
|
135
|
+
class: y(["Filler", [
|
|
136
136
|
`Filler-${e.fill}`
|
|
137
137
|
]])
|
|
138
138
|
}, null, 2);
|
|
139
139
|
}
|
|
140
|
-
const z = /* @__PURE__ */ f(
|
|
140
|
+
const z = /* @__PURE__ */ f(x, [["render", H], ["__scopeId", "data-v-a4c89219"]]), N = {
|
|
141
141
|
props: {
|
|
142
142
|
tagName: { type: String, default: "div" },
|
|
143
143
|
align: { type: String, default: "center" },
|
|
@@ -146,9 +146,9 @@ const z = /* @__PURE__ */ f(C, [["render", H], ["__scopeId", "data-v-a4c89219"]]
|
|
|
146
146
|
wrap: { type: Boolean, default: !1 }
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
function
|
|
150
|
-
return
|
|
151
|
-
class:
|
|
149
|
+
function M(t, n, e, i, l, o) {
|
|
150
|
+
return r(), p(S(e.tagName), {
|
|
151
|
+
class: y(["HGroup", [
|
|
152
152
|
`HGroup-align-${e.align}`,
|
|
153
153
|
`HGroup-justify-${e.justify}`,
|
|
154
154
|
`HGroup-gap-${e.gap}`,
|
|
@@ -157,13 +157,13 @@ function N(t, n, e, i, o, l) {
|
|
|
157
157
|
}
|
|
158
158
|
]])
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
160
|
+
default: v(() => [
|
|
161
|
+
u(t.$slots, "default", {}, void 0, !0)
|
|
162
162
|
]),
|
|
163
163
|
_: 3
|
|
164
164
|
}, 8, ["class"]);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const G = /* @__PURE__ */ f(N, [["render", M], ["__scopeId", "data-v-4afcf47f"]]), A = {
|
|
167
167
|
props: {
|
|
168
168
|
dir: { type: String, default: "top" },
|
|
169
169
|
label: { type: String }
|
|
@@ -173,37 +173,37 @@ const M = /* @__PURE__ */ f(x, [["render", N], ["__scopeId", "data-v-4afcf47f"]]
|
|
|
173
173
|
return this.dir === "top" || this.dir === "bottom" ? "h" : "v";
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
}, L = { class: "Content" },
|
|
177
|
-
function
|
|
178
|
-
const s =
|
|
179
|
-
return
|
|
180
|
-
class:
|
|
176
|
+
}, L = { class: "Content" }, D = ["title"];
|
|
177
|
+
function P(t, n, e, i, l, o) {
|
|
178
|
+
const s = b("TabCap");
|
|
179
|
+
return r(), d("div", {
|
|
180
|
+
class: y(["Tab", [
|
|
181
181
|
`Tab-${e.dir}`,
|
|
182
|
-
`Tab-${
|
|
182
|
+
`Tab-${o.orientation}`
|
|
183
183
|
]])
|
|
184
184
|
}, [
|
|
185
|
-
|
|
185
|
+
O(s, {
|
|
186
186
|
class: "TabCap",
|
|
187
187
|
dir: e.dir,
|
|
188
188
|
type: "start"
|
|
189
189
|
}, null, 8, ["dir"]),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
e.label ? (
|
|
190
|
+
h("div", L, [
|
|
191
|
+
u(t.$slots, "default", {}, () => [
|
|
192
|
+
e.label ? (r(), d("div", {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "TabLabel",
|
|
195
195
|
title: e.label
|
|
196
|
-
},
|
|
196
|
+
}, g(e.label), 9, D)) : c("", !0)
|
|
197
197
|
], !0)
|
|
198
198
|
]),
|
|
199
|
-
|
|
199
|
+
O(s, {
|
|
200
200
|
class: "TabCap",
|
|
201
201
|
dir: e.dir,
|
|
202
202
|
type: "end"
|
|
203
203
|
}, null, 8, ["dir"])
|
|
204
204
|
], 2);
|
|
205
205
|
}
|
|
206
|
-
const w = /* @__PURE__ */ f(
|
|
206
|
+
const w = /* @__PURE__ */ f(A, [["render", P], ["__scopeId", "data-v-a4bb3614"]]), E = {
|
|
207
207
|
components: {
|
|
208
208
|
Tab: w
|
|
209
209
|
},
|
|
@@ -244,74 +244,74 @@ const w = /* @__PURE__ */ f(G, [["render", D], ["__scopeId", "data-v-a4bb3614"]]
|
|
|
244
244
|
hoverOverrides: n = {},
|
|
245
245
|
focusOverrides: e = {},
|
|
246
246
|
hover: i,
|
|
247
|
-
focus:
|
|
248
|
-
forceHover:
|
|
247
|
+
focus: l,
|
|
248
|
+
forceHover: o,
|
|
249
249
|
forceFocus: s
|
|
250
250
|
} = this, a = Object.assign({}, t);
|
|
251
|
-
return (i ||
|
|
251
|
+
return (i || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, R = {
|
|
255
255
|
key: 1,
|
|
256
256
|
class: "Label TextLabel"
|
|
257
257
|
}, q = {
|
|
258
258
|
key: 2,
|
|
259
259
|
class: "Label InlineLabel"
|
|
260
260
|
}, K = { class: "InputElement Container" };
|
|
261
|
-
function
|
|
262
|
-
const s =
|
|
263
|
-
return
|
|
264
|
-
class:
|
|
265
|
-
`InputBase-${
|
|
266
|
-
`input-kind-${
|
|
267
|
-
`InputBase-${
|
|
261
|
+
function Y(t, n, e, i, l, o) {
|
|
262
|
+
const s = b("Tab");
|
|
263
|
+
return r(), p(S(e.tagName), {
|
|
264
|
+
class: y(["InputBase", [
|
|
265
|
+
`InputBase-${o.effectiveStyle.kind}`,
|
|
266
|
+
`input-kind-${o.effectiveStyle.kind}`,
|
|
267
|
+
`InputBase-${o.effectiveStyle.size}`,
|
|
268
268
|
{
|
|
269
269
|
"InputBase-fixed-height": e.fixedHeight,
|
|
270
|
-
"InputBase-shadow":
|
|
271
|
-
"InputBase-round":
|
|
270
|
+
"InputBase-shadow": o.effectiveStyle.shadow,
|
|
271
|
+
"InputBase-round": o.effectiveStyle.round,
|
|
272
272
|
"InputBase-disabled": e.disabled,
|
|
273
273
|
"InputBase-force-focus": e.forceFocus,
|
|
274
274
|
"InputBase-force-hover": e.forceHover
|
|
275
275
|
}
|
|
276
276
|
]]),
|
|
277
|
-
onMouseenter: n[0] || (n[0] = (a) =>
|
|
278
|
-
onMouseleave: n[1] || (n[1] = (a) =>
|
|
279
|
-
onFocusin: n[2] || (n[2] = (a) =>
|
|
280
|
-
onFocusout: n[3] || (n[3] = (a) =>
|
|
277
|
+
onMouseenter: n[0] || (n[0] = (a) => l.hover = !0),
|
|
278
|
+
onMouseleave: n[1] || (n[1] = (a) => l.hover = !1),
|
|
279
|
+
onFocusin: n[2] || (n[2] = (a) => l.focus = !0),
|
|
280
|
+
onFocusout: n[3] || (n[3] = (a) => l.focus = !1)
|
|
281
281
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
e.label ? (
|
|
284
|
-
e.labelStyle === "tab" ? (
|
|
282
|
+
default: v(() => [
|
|
283
|
+
e.label ? (r(), d(V, { key: 0 }, [
|
|
284
|
+
e.labelStyle === "tab" ? (r(), p(s, {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "Label TabLabel",
|
|
287
287
|
label: e.label
|
|
288
288
|
}, null, 8, ["label"])) : c("", !0),
|
|
289
|
-
e.labelStyle === "text" ? (
|
|
290
|
-
e.labelStyle === "inline" ? (
|
|
289
|
+
e.labelStyle === "text" ? (r(), d("div", R, g(e.label), 1)) : c("", !0),
|
|
290
|
+
e.labelStyle === "inline" ? (r(), d("div", q, g(e.label), 1)) : c("", !0)
|
|
291
291
|
], 64)) : c("", !0),
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
h("div", K, [
|
|
293
|
+
u(t.$slots, "default", {}, void 0, !0)
|
|
294
294
|
])
|
|
295
295
|
]),
|
|
296
296
|
_: 3
|
|
297
297
|
}, 40, ["class"]);
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const I = /* @__PURE__ */ f(E, [["render", Y], ["__scopeId", "data-v-408c1aa3"]]), J = {
|
|
300
300
|
props: {
|
|
301
301
|
tagName: { type: String, default: "div" }
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
|
-
function
|
|
305
|
-
return
|
|
306
|
-
default:
|
|
307
|
-
|
|
304
|
+
function Q(t, n, e, i, l, o) {
|
|
305
|
+
return r(), p(S(e.tagName), { class: "InputGroup" }, {
|
|
306
|
+
default: v(() => [
|
|
307
|
+
u(t.$slots, "default", {}, void 0, !0)
|
|
308
308
|
]),
|
|
309
309
|
_: 3
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const U = /* @__PURE__ */ f(J, [["render", Q], ["__scopeId", "data-v-3d98e109"]]), W = {
|
|
313
313
|
props: {
|
|
314
|
-
...
|
|
314
|
+
...I.props,
|
|
315
315
|
modelValue: {},
|
|
316
316
|
items: { type: Array, default: () => [] },
|
|
317
317
|
placeholder: { type: String },
|
|
@@ -370,55 +370,55 @@ const Q = /* @__PURE__ */ f(Y, [["render", J], ["__scopeId", "data-v-3d98e109"]]
|
|
|
370
370
|
this.disabled || (this.menuShown = !0);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, X = {
|
|
374
374
|
key: 1,
|
|
375
375
|
class: "Value"
|
|
376
|
-
},
|
|
376
|
+
}, Z = {
|
|
377
377
|
key: 2,
|
|
378
378
|
class: "Placeholder"
|
|
379
|
-
},
|
|
379
|
+
}, ee = {
|
|
380
380
|
ref: "icon",
|
|
381
381
|
class: "DropdownIcon"
|
|
382
382
|
};
|
|
383
|
-
function
|
|
384
|
-
const s =
|
|
385
|
-
return
|
|
383
|
+
function te(t, n, e, i, l, o) {
|
|
384
|
+
const s = b("ContextMenu"), a = b("InputBase");
|
|
385
|
+
return r(), p(a, B({ class: "InputSelect" }, {
|
|
386
386
|
...t.$props
|
|
387
387
|
}, {
|
|
388
388
|
tabindex: "0",
|
|
389
|
-
onClick: n[1] || (n[1] = (
|
|
389
|
+
onClick: n[1] || (n[1] = (_) => o.show())
|
|
390
390
|
}), {
|
|
391
|
-
default:
|
|
392
|
-
|
|
393
|
-
|
|
391
|
+
default: v(() => [
|
|
392
|
+
u(t.$slots, "before", {}, void 0, !0),
|
|
393
|
+
o.itemIcon ? (r(), d("i", {
|
|
394
394
|
key: 0,
|
|
395
|
-
class:
|
|
395
|
+
class: y(["Icon", o.itemIcon])
|
|
396
396
|
}, null, 2)) : c("", !0),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
class:
|
|
397
|
+
o.selectedItem ? (r(), d("span", X, g(o.itemTitle), 1)) : c("", !0),
|
|
398
|
+
o.selectedItem ? c("", !0) : (r(), d("span", Z, g(e.placeholder), 1)),
|
|
399
|
+
h("div", ee, [
|
|
400
|
+
u(t.$slots, "iconDropdown", {}, () => [
|
|
401
|
+
h("i", {
|
|
402
|
+
class: y(o.iconDropdown)
|
|
403
403
|
}, null, 2)
|
|
404
404
|
], !0)
|
|
405
405
|
], 512),
|
|
406
|
-
!t.disabled &&
|
|
406
|
+
!t.disabled && l.menuShown ? (r(), p(s, {
|
|
407
407
|
key: 3,
|
|
408
408
|
anchorRef: "icon",
|
|
409
|
-
items:
|
|
409
|
+
items: o.getMenuItems(),
|
|
410
410
|
search: e.search,
|
|
411
411
|
overlayShown: !1,
|
|
412
|
-
onHide: n[0] || (n[0] = (
|
|
412
|
+
onHide: n[0] || (n[0] = (_) => l.menuShown = !1)
|
|
413
413
|
}, null, 8, ["items", "search"])) : c("", !0),
|
|
414
|
-
|
|
414
|
+
u(t.$slots, "after", {}, void 0, !0)
|
|
415
415
|
]),
|
|
416
416
|
_: 3
|
|
417
417
|
}, 16);
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const ne = /* @__PURE__ */ f(W, [["render", te], ["__scopeId", "data-v-2c4374be"]]), oe = {
|
|
420
420
|
props: {
|
|
421
|
-
...
|
|
421
|
+
...I.props,
|
|
422
422
|
modelValue: { type: [String, Number] },
|
|
423
423
|
type: { type: String },
|
|
424
424
|
placeholder: { type: String },
|
|
@@ -443,14 +443,14 @@ const te = /* @__PURE__ */ f(U, [["render", ee], ["__scopeId", "data-v-2c4374be"
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}, le = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
|
|
446
|
-
function
|
|
447
|
-
const s =
|
|
448
|
-
return
|
|
446
|
+
function se(t, n, e, i, l, o) {
|
|
447
|
+
const s = b("InputBase");
|
|
448
|
+
return r(), p(s, B({ class: "InputText" }, {
|
|
449
449
|
...t.$props
|
|
450
450
|
}), {
|
|
451
|
-
default:
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
default: v(() => [
|
|
452
|
+
u(t.$slots, "before", {}, void 0, !0),
|
|
453
|
+
h("input", {
|
|
454
454
|
ref: "input",
|
|
455
455
|
value: e.modelValue,
|
|
456
456
|
type: e.type,
|
|
@@ -461,18 +461,18 @@ function oe(t, n, e, i, o, l) {
|
|
|
461
461
|
max: e.max,
|
|
462
462
|
step: e.step,
|
|
463
463
|
autocomplete: "off",
|
|
464
|
-
onInput: n[0] || (n[0] = (a) =>
|
|
464
|
+
onInput: n[0] || (n[0] = (a) => o.onInput(a)),
|
|
465
465
|
onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
|
|
466
466
|
onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
|
|
467
467
|
}, null, 40, le),
|
|
468
|
-
|
|
468
|
+
u(t.$slots, "after", {}, void 0, !0)
|
|
469
469
|
]),
|
|
470
470
|
_: 3
|
|
471
471
|
}, 16);
|
|
472
472
|
}
|
|
473
|
-
const
|
|
473
|
+
const ae = /* @__PURE__ */ f(oe, [["render", se], ["__scopeId", "data-v-f0bca74d"]]), re = {
|
|
474
474
|
props: {
|
|
475
|
-
...
|
|
475
|
+
...I.props,
|
|
476
476
|
modelValue: { type: String },
|
|
477
477
|
placeholder: { type: String },
|
|
478
478
|
rows: { type: Number },
|
|
@@ -505,15 +505,15 @@ const se = /* @__PURE__ */ f(ne, [["render", oe], ["__scopeId", "data-v-f0bca74d
|
|
|
505
505
|
this.$emit("update:modelValue", t.target.value);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
},
|
|
509
|
-
function
|
|
510
|
-
const s =
|
|
511
|
-
return
|
|
508
|
+
}, ie = ["value", "placeholder", "readonly", "disabled", "rows"];
|
|
509
|
+
function ue(t, n, e, i, l, o) {
|
|
510
|
+
const s = b("InputBase");
|
|
511
|
+
return r(), p(s, B({ class: "InputTextarea" }, {
|
|
512
512
|
...t.$props
|
|
513
513
|
}, { fixedHeight: !1 }), {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
default: v(() => [
|
|
515
|
+
u(t.$slots, "before", {}, void 0, !0),
|
|
516
|
+
h("textarea", {
|
|
517
517
|
ref: "input",
|
|
518
518
|
value: e.modelValue,
|
|
519
519
|
placeholder: e.placeholder,
|
|
@@ -522,34 +522,65 @@ function ie(t, n, e, i, o, l) {
|
|
|
522
522
|
rows: e.rows,
|
|
523
523
|
resize: "none",
|
|
524
524
|
autocomplete: "off",
|
|
525
|
-
onInput: n[0] || (n[0] = (a) =>
|
|
525
|
+
onInput: n[0] || (n[0] = (a) => o.onInput(a)),
|
|
526
526
|
onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
|
|
527
527
|
onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
|
|
528
|
-
}, null, 40,
|
|
529
|
-
|
|
528
|
+
}, null, 40, ie),
|
|
529
|
+
u(t.$slots, "after", {}, void 0, !0)
|
|
530
530
|
]),
|
|
531
531
|
_: 3
|
|
532
532
|
}, 16);
|
|
533
533
|
}
|
|
534
|
-
const
|
|
534
|
+
const de = /* @__PURE__ */ f(re, [["render", ue], ["__scopeId", "data-v-d1f75aa4"]]), fe = {
|
|
535
|
+
props: {
|
|
536
|
+
to: { required: !0 },
|
|
537
|
+
activeOverrides: { type: Object },
|
|
538
|
+
exactActiveOverrides: { type: Object }
|
|
539
|
+
},
|
|
540
|
+
methods: {
|
|
541
|
+
actualAttrs(t, n) {
|
|
542
|
+
return {
|
|
543
|
+
...this.$attrs,
|
|
544
|
+
...t ? this.activeOverrides : {},
|
|
545
|
+
...n ? this.exactActiveOverrides : {}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
function ce(t, n, e, i, l, o) {
|
|
551
|
+
const s = b("Button"), a = b("RouterLink");
|
|
552
|
+
return r(), p(a, {
|
|
553
|
+
to: e.to,
|
|
554
|
+
custom: ""
|
|
555
|
+
}, {
|
|
556
|
+
default: v(({ href: _, navigate: k, isActive: m, isExactActive: T }) => [
|
|
557
|
+
O(s, B({
|
|
558
|
+
as: "a",
|
|
559
|
+
href: _
|
|
560
|
+
}, o.actualAttrs(m, T), { onClick: k }), null, 16, ["href", "onClick"])
|
|
561
|
+
]),
|
|
562
|
+
_: 1
|
|
563
|
+
}, 8, ["to"]);
|
|
564
|
+
}
|
|
565
|
+
const pe = /* @__PURE__ */ f(fe, [["render", ce]]), ye = {
|
|
535
566
|
props: {
|
|
536
567
|
dir: { type: String, default: "top" },
|
|
537
568
|
type: { type: String, default: "start" }
|
|
538
569
|
}
|
|
539
570
|
};
|
|
540
|
-
function
|
|
541
|
-
return
|
|
542
|
-
class:
|
|
571
|
+
function ve(t, n, e, i, l, o) {
|
|
572
|
+
return r(), d("svg", {
|
|
573
|
+
class: y(["TabCap", [
|
|
543
574
|
`TabCap-${e.dir}`,
|
|
544
575
|
`TabCap-${e.type}`
|
|
545
576
|
]]),
|
|
546
577
|
viewBox: "0 0 32 32",
|
|
547
578
|
preserveAspectRatio: "none"
|
|
548
579
|
}, [...n[0] || (n[0] = [
|
|
549
|
-
|
|
580
|
+
h("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
|
|
550
581
|
])], 2);
|
|
551
582
|
}
|
|
552
|
-
const
|
|
583
|
+
const be = /* @__PURE__ */ f(ye, [["render", ve], ["__scopeId", "data-v-d898255a"]]), he = {
|
|
553
584
|
props: {
|
|
554
585
|
modelValue: { type: Boolean },
|
|
555
586
|
disabled: { type: Boolean },
|
|
@@ -592,11 +623,11 @@ const ce = /* @__PURE__ */ f(de, [["render", fe], ["__scopeId", "data-v-d898255a
|
|
|
592
623
|
hoverOverrides: n = {},
|
|
593
624
|
focusOverrides: e = {},
|
|
594
625
|
hover: i,
|
|
595
|
-
focus:
|
|
596
|
-
forceHover:
|
|
626
|
+
focus: l,
|
|
627
|
+
forceHover: o,
|
|
597
628
|
forceFocus: s
|
|
598
629
|
} = this, a = Object.assign({}, t);
|
|
599
|
-
return (i ||
|
|
630
|
+
return (i || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
|
|
600
631
|
}
|
|
601
632
|
},
|
|
602
633
|
methods: {
|
|
@@ -604,38 +635,38 @@ const ce = /* @__PURE__ */ f(de, [["render", fe], ["__scopeId", "data-v-d898255a
|
|
|
604
635
|
this.$emit("update:modelValue", t.target.checked);
|
|
605
636
|
}
|
|
606
637
|
}
|
|
607
|
-
},
|
|
608
|
-
function
|
|
609
|
-
return
|
|
610
|
-
class:
|
|
611
|
-
`Toggle-${
|
|
612
|
-
`input-kind-${
|
|
613
|
-
`Toggle-${
|
|
638
|
+
}, me = ["checked", "disabled"];
|
|
639
|
+
function ge(t, n, e, i, l, o) {
|
|
640
|
+
return r(), d("label", {
|
|
641
|
+
class: y(["Toggle InputElement", [
|
|
642
|
+
`Toggle-${o.effectiveStyle.kind}`,
|
|
643
|
+
`input-kind-${o.effectiveStyle.kind}`,
|
|
644
|
+
`Toggle-${o.effectiveStyle.size}`,
|
|
614
645
|
{
|
|
615
646
|
"Toggle-active": !!e.modelValue,
|
|
616
|
-
"Toggle-outline":
|
|
617
|
-
"Toggle-round":
|
|
618
|
-
"Toggle-flat":
|
|
647
|
+
"Toggle-outline": o.effectiveStyle.outline,
|
|
648
|
+
"Toggle-round": o.effectiveStyle.round,
|
|
649
|
+
"Toggle-flat": o.effectiveStyle.flat,
|
|
619
650
|
"Toggle-disabled": e.disabled,
|
|
620
651
|
"Toggle-force-focus": e.forceFocus,
|
|
621
652
|
"Toggle-force-hover": e.forceHover
|
|
622
653
|
}
|
|
623
654
|
]]),
|
|
624
655
|
tabindex: "0",
|
|
625
|
-
onMouseenter: n[1] || (n[1] = (s) =>
|
|
626
|
-
onMouseleave: n[2] || (n[2] = (s) =>
|
|
627
|
-
onFocusin: n[3] || (n[3] = (s) =>
|
|
628
|
-
onFocusout: n[4] || (n[4] = (s) =>
|
|
656
|
+
onMouseenter: n[1] || (n[1] = (s) => l.hover = !0),
|
|
657
|
+
onMouseleave: n[2] || (n[2] = (s) => l.hover = !1),
|
|
658
|
+
onFocusin: n[3] || (n[3] = (s) => l.focus = !0),
|
|
659
|
+
onFocusout: n[4] || (n[4] = (s) => l.focus = !1)
|
|
629
660
|
}, [
|
|
630
|
-
|
|
661
|
+
h("input", {
|
|
631
662
|
type: "checkbox",
|
|
632
663
|
checked: e.modelValue,
|
|
633
664
|
disabled: e.disabled,
|
|
634
|
-
onChange: n[0] || (n[0] = (...s) =>
|
|
635
|
-
}, null, 40,
|
|
665
|
+
onChange: n[0] || (n[0] = (...s) => o.onChange && o.onChange(...s))
|
|
666
|
+
}, null, 40, me)
|
|
636
667
|
], 34);
|
|
637
668
|
}
|
|
638
|
-
const
|
|
669
|
+
const _e = /* @__PURE__ */ f(he, [["render", ge], ["__scopeId", "data-v-c5f9a677"]]), Se = {
|
|
639
670
|
props: {
|
|
640
671
|
tagName: { type: String, default: "div" },
|
|
641
672
|
align: { type: String, default: "stretch" },
|
|
@@ -643,47 +674,49 @@ const be = /* @__PURE__ */ f(pe, [["render", ve], ["__scopeId", "data-v-c5f9a677
|
|
|
643
674
|
gap: { type: String, default: "m" }
|
|
644
675
|
}
|
|
645
676
|
};
|
|
646
|
-
function
|
|
647
|
-
return
|
|
648
|
-
class:
|
|
677
|
+
function Be(t, n, e, i, l, o) {
|
|
678
|
+
return r(), p(S(e.tagName), {
|
|
679
|
+
class: y(["VGroup", [
|
|
649
680
|
`VGroup-align-${e.align}`,
|
|
650
681
|
`VGroup-justify-${e.justify}`,
|
|
651
682
|
`VGroup-gap-${e.gap}`
|
|
652
683
|
]])
|
|
653
684
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
|
|
685
|
+
default: v(() => [
|
|
686
|
+
u(t.$slots, "default", {}, void 0, !0)
|
|
656
687
|
]),
|
|
657
688
|
_: 3
|
|
658
689
|
}, 8, ["class"]);
|
|
659
690
|
}
|
|
660
|
-
const
|
|
691
|
+
const Ie = /* @__PURE__ */ f(Se, [["render", Be], ["__scopeId", "data-v-ada4a00f"]]), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
661
692
|
__proto__: null,
|
|
662
693
|
Btn: F,
|
|
663
694
|
Filler: z,
|
|
664
|
-
HGroup:
|
|
665
|
-
InputBase:
|
|
666
|
-
InputGroup:
|
|
667
|
-
InputSelect:
|
|
668
|
-
InputText:
|
|
669
|
-
InputTextarea:
|
|
695
|
+
HGroup: G,
|
|
696
|
+
InputBase: I,
|
|
697
|
+
InputGroup: U,
|
|
698
|
+
InputSelect: ne,
|
|
699
|
+
InputText: ae,
|
|
700
|
+
InputTextarea: de,
|
|
701
|
+
RouterBtn: pe,
|
|
670
702
|
Tab: w,
|
|
671
|
-
TabCap:
|
|
672
|
-
Toggle:
|
|
673
|
-
VGroup:
|
|
703
|
+
TabCap: be,
|
|
704
|
+
Toggle: _e,
|
|
705
|
+
VGroup: Ie
|
|
674
706
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
675
707
|
export {
|
|
676
708
|
F as Btn,
|
|
677
709
|
z as Filler,
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
710
|
+
G as HGroup,
|
|
711
|
+
I as InputBase,
|
|
712
|
+
U as InputGroup,
|
|
713
|
+
ne as InputSelect,
|
|
714
|
+
ae as InputText,
|
|
715
|
+
de as InputTextarea,
|
|
716
|
+
pe as RouterBtn,
|
|
684
717
|
w as Tab,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
718
|
+
be as TabCap,
|
|
719
|
+
_e as Toggle,
|
|
720
|
+
Ie as VGroup,
|
|
721
|
+
Oe as coreComponents
|
|
689
722
|
};
|