@nightshadeui/components 0.0.0-stage → 3.0.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/dist/components/BaseMenu.vue.d.ts +310 -0
- package/dist/components/BaseMenu.vue.d.ts.map +1 -0
- package/dist/components/Btn.vue.d.ts +210 -0
- package/dist/components/Btn.vue.d.ts.map +1 -0
- package/dist/components/Bubble.vue.d.ts +42 -0
- package/dist/components/Bubble.vue.d.ts.map +1 -0
- package/dist/components/Checkbox.vue.d.ts +137 -0
- package/dist/components/Checkbox.vue.d.ts.map +1 -0
- package/dist/components/Chip.vue.d.ts +120 -0
- package/dist/components/Chip.vue.d.ts.map +1 -0
- package/dist/components/ContextMenu.vue.d.ts +475 -0
- package/dist/components/ContextMenu.vue.d.ts.map +1 -0
- package/dist/components/ContextPopup.vue.d.ts +142 -0
- package/dist/components/ContextPopup.vue.d.ts.map +1 -0
- package/dist/components/Filler.vue.d.ts +24 -0
- package/dist/components/Filler.vue.d.ts.map +1 -0
- package/dist/components/HGroup.vue.d.ts +57 -0
- package/dist/components/HGroup.vue.d.ts.map +1 -0
- package/dist/components/InputBase.vue.d.ts +196 -0
- package/dist/components/InputBase.vue.d.ts.map +1 -0
- package/dist/components/InputGroup.vue.d.ts +24 -0
- package/dist/components/InputGroup.vue.d.ts.map +1 -0
- package/dist/components/InputSelect.vue.d.ts +228 -0
- package/dist/components/InputSelect.vue.d.ts.map +1 -0
- package/dist/components/InputText.vue.d.ts +218 -0
- package/dist/components/InputText.vue.d.ts.map +1 -0
- package/dist/components/InputTextarea.vue.d.ts +218 -0
- package/dist/components/InputTextarea.vue.d.ts.map +1 -0
- package/dist/components/ModalOverlay.vue.d.ts +38 -0
- package/dist/components/ModalOverlay.vue.d.ts.map +1 -0
- package/dist/components/RouterBtn.vue.d.ts +225 -0
- package/dist/components/RouterBtn.vue.d.ts.map +1 -0
- package/dist/components/Slider.vue.d.ts +293 -0
- package/dist/components/Slider.vue.d.ts.map +1 -0
- package/dist/components/Tab.vue.d.ts +53 -0
- package/dist/components/Tab.vue.d.ts.map +1 -0
- package/dist/components/TabCap.vue.d.ts +33 -0
- package/dist/components/TabCap.vue.d.ts.map +1 -0
- package/dist/components/Toggle.vue.d.ts +138 -0
- package/dist/components/Toggle.vue.d.ts.map +1 -0
- package/dist/components/ToolPanel.vue.d.ts +48 -0
- package/dist/components/ToolPanel.vue.d.ts.map +1 -0
- package/dist/components/VGroup.vue.d.ts +48 -0
- package/dist/components/VGroup.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components.css +1 -0
- package/dist/components.mjs +1704 -0
- package/dist/glyphs/GlyphCheck.vue.d.ts +3 -0
- package/dist/glyphs/GlyphCheck.vue.d.ts.map +1 -0
- package/dist/glyphs/GlyphXmark.vue.d.ts +3 -0
- package/dist/glyphs/GlyphXmark.vue.d.ts.map +1 -0
- package/dist/glyphs/index.d.ts +4 -0
- package/dist/glyphs/index.d.ts.map +1 -0
- package/dist/helpers/props.d.ts +13 -0
- package/dist/helpers/props.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types/MenuItem.d.ts +14 -0
- package/dist/types/MenuItem.d.ts.map +1 -0
- package/dist/types/SelectOption.d.ts +6 -0
- package/dist/types/SelectOption.d.ts.map +1 -0
- package/package.json +36 -5
- package/src/components/BaseMenu.vue +173 -0
- package/src/components/Btn.vue +362 -0
- package/src/components/Bubble.vue +143 -0
- package/src/components/Checkbox.vue +256 -0
- package/src/components/Chip.vue +189 -0
- package/src/components/ContextMenu.vue +71 -0
- package/src/components/ContextPopup.vue +166 -0
- package/src/components/Filler.vue +43 -0
- package/src/components/HGroup.vue +74 -0
- package/src/components/InputBase.vue +279 -0
- package/src/components/InputGroup.vue +40 -0
- package/src/components/InputSelect.vue +180 -0
- package/src/components/InputText.vue +102 -0
- package/src/components/InputTextarea.vue +129 -0
- package/src/components/ModalOverlay.vue +74 -0
- package/src/components/RouterBtn.vue +52 -0
- package/src/components/Slider.vue +689 -0
- package/src/components/Tab.vue +129 -0
- package/src/components/TabCap.vue +46 -0
- package/src/components/Toggle.vue +238 -0
- package/src/components/ToolPanel.vue +83 -0
- package/src/components/VGroup.vue +68 -0
- package/src/components/index.ts +47 -0
- package/src/glyphs/GlyphCheck.vue +12 -0
- package/src/glyphs/GlyphXmark.vue +12 -0
- package/src/glyphs/index.ts +7 -0
- package/src/helpers/props.ts +58 -0
- package/src/index.ts +10 -0
- package/src/types/MenuItem.ts +13 -0
- package/src/types/SelectOption.ts +5 -0
- package/src/types.d.ts +6 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1704 @@
|
|
|
1
|
+
import { openBlock as a, createBlock as v, resolveDynamicComponent as $, normalizeClass as h, withCtx as m, renderSlot as p, createElementBlock as d, createCommentVNode as b, toDisplayString as P, resolveComponent as g, Fragment as w, renderList as F, createElementVNode as c, Transition as G, Teleport as R, withModifiers as B, normalizeStyle as j, mergeProps as I, createVNode as A } from "vue";
|
|
2
|
+
function U(e) {
|
|
3
|
+
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4
|
+
}
|
|
5
|
+
function D(e, t) {
|
|
6
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
7
|
+
}
|
|
8
|
+
function q(e, t) {
|
|
9
|
+
const r = e?.$?.vnode?.props || {};
|
|
10
|
+
return D(r, t) ? !0 : D(r, U(t));
|
|
11
|
+
}
|
|
12
|
+
const y = {
|
|
13
|
+
inject: {
|
|
14
|
+
$nightshade: {
|
|
15
|
+
default: null
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
computed: {
|
|
19
|
+
resolvedProps() {
|
|
20
|
+
return H(this, this.$options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function H(e, t) {
|
|
25
|
+
const r = {}, n = t?.props || {}, s = Object.keys(n), o = e?.$nightshade?.defaults || {};
|
|
26
|
+
for (const i of s) {
|
|
27
|
+
if (q(e, i)) {
|
|
28
|
+
r[i] = e.$props[i];
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (D(o, i)) {
|
|
32
|
+
r[i] = o[i];
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
r[i] = e.$props[i];
|
|
36
|
+
}
|
|
37
|
+
return r;
|
|
38
|
+
}
|
|
39
|
+
function C(e, t) {
|
|
40
|
+
const r = {}, n = e?.resolvedProps || H(e, e?.$options), s = Object.keys(t.props || {});
|
|
41
|
+
for (const o of s)
|
|
42
|
+
r[o] = n[o];
|
|
43
|
+
return r;
|
|
44
|
+
}
|
|
45
|
+
const f = (e, t) => {
|
|
46
|
+
const r = e.__vccOpts || e;
|
|
47
|
+
for (const [n, s] of t)
|
|
48
|
+
r[n] = s;
|
|
49
|
+
return r;
|
|
50
|
+
}, X = {
|
|
51
|
+
mixins: [y],
|
|
52
|
+
props: {
|
|
53
|
+
tagName: { type: String, default: "button" },
|
|
54
|
+
href: { type: String },
|
|
55
|
+
label: { type: String },
|
|
56
|
+
title: { type: String },
|
|
57
|
+
tone: { type: String },
|
|
58
|
+
size: { type: String },
|
|
59
|
+
flat: { type: Boolean, default: !1 },
|
|
60
|
+
outline: { type: Boolean, default: !1 },
|
|
61
|
+
round: { type: Boolean, default: !1 },
|
|
62
|
+
translucent: { type: Boolean, default: !1 },
|
|
63
|
+
ghost: { type: Boolean, default: !1 },
|
|
64
|
+
block: { type: Boolean, default: !1 },
|
|
65
|
+
square: { type: Boolean, default: !1 },
|
|
66
|
+
disabled: { type: Boolean, default: !1 },
|
|
67
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
68
|
+
forceHover: { type: Boolean, default: !1 },
|
|
69
|
+
forceActive: { type: Boolean, default: !1 },
|
|
70
|
+
icon: { type: String },
|
|
71
|
+
iconPos: { type: String, default: "left" },
|
|
72
|
+
hoverOverrides: { type: Object },
|
|
73
|
+
activeOverrides: { type: Object },
|
|
74
|
+
focusOverrides: { type: Object }
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
hover: !1,
|
|
79
|
+
active: !1,
|
|
80
|
+
focus: !1,
|
|
81
|
+
blocked: !1
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
computed: {
|
|
85
|
+
baseStyle() {
|
|
86
|
+
const { resolvedProps: e } = this;
|
|
87
|
+
return {
|
|
88
|
+
tone: e.tone,
|
|
89
|
+
size: e.size,
|
|
90
|
+
flat: e.flat,
|
|
91
|
+
outline: e.outline,
|
|
92
|
+
round: e.round,
|
|
93
|
+
translucent: e.translucent,
|
|
94
|
+
ghost: e.ghost
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
effectiveStyle() {
|
|
98
|
+
const {
|
|
99
|
+
baseStyle: e,
|
|
100
|
+
hoverOverrides: t = {},
|
|
101
|
+
activeOverrides: r = {},
|
|
102
|
+
focusOverrides: n = {},
|
|
103
|
+
active: s,
|
|
104
|
+
hover: o,
|
|
105
|
+
focus: i,
|
|
106
|
+
resolvedProps: l
|
|
107
|
+
} = this, { forceActive: u, forceHover: k, forceFocus: z } = l, T = Object.assign({}, e);
|
|
108
|
+
return (s || u) && Object.assign(T, r), (o || k) && Object.assign(T, t), (i || z) && Object.assign(T, n), T;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, W = {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "Label"
|
|
114
|
+
};
|
|
115
|
+
function Y(e, t, r, n, s, o) {
|
|
116
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
117
|
+
ref: "button",
|
|
118
|
+
class: h(["Btn InputElement", [
|
|
119
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
120
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
121
|
+
`Btn-iconPos-${e.resolvedProps.iconPos}`,
|
|
122
|
+
{
|
|
123
|
+
"Btn-ghost": o.effectiveStyle.ghost,
|
|
124
|
+
"Btn-round": o.effectiveStyle.round,
|
|
125
|
+
"Btn-outline": o.effectiveStyle.outline,
|
|
126
|
+
"Btn-flat": o.effectiveStyle.flat,
|
|
127
|
+
"Btn-translucent": o.effectiveStyle.translucent && !o.effectiveStyle.ghost,
|
|
128
|
+
"Btn-square": e.resolvedProps.square,
|
|
129
|
+
"Btn-block": e.resolvedProps.block,
|
|
130
|
+
"Btn-disabled": e.resolvedProps.disabled || s.blocked,
|
|
131
|
+
"Btn-forceFocus": e.resolvedProps.forceFocus,
|
|
132
|
+
"Btn-forceHover": e.resolvedProps.forceHover,
|
|
133
|
+
"Btn-forceActive": e.resolvedProps.forceActive
|
|
134
|
+
}
|
|
135
|
+
]]),
|
|
136
|
+
disabled: e.resolvedProps.disabled || s.blocked,
|
|
137
|
+
title: e.resolvedProps.title ?? e.resolvedProps.label,
|
|
138
|
+
href: e.resolvedProps.href,
|
|
139
|
+
onMouseenter: t[0] || (t[0] = (i) => s.hover = !0),
|
|
140
|
+
onMouseleave: t[1] || (t[1] = (i) => s.hover = !1),
|
|
141
|
+
onMousedown: t[2] || (t[2] = (i) => s.active = !0),
|
|
142
|
+
onMouseup: t[3] || (t[3] = (i) => s.active = !1),
|
|
143
|
+
onMouseout: t[4] || (t[4] = (i) => s.active = !1),
|
|
144
|
+
onFocusin: t[5] || (t[5] = (i) => s.focus = !0),
|
|
145
|
+
onFocusout: t[6] || (t[6] = (i) => s.focus = !1)
|
|
146
|
+
}, {
|
|
147
|
+
default: m(() => [
|
|
148
|
+
p(e.$slots, "before", {
|
|
149
|
+
hover: s.hover,
|
|
150
|
+
active: s.active,
|
|
151
|
+
focus: s.focus,
|
|
152
|
+
blocked: s.blocked
|
|
153
|
+
}, void 0, !0),
|
|
154
|
+
p(e.$slots, "default", {
|
|
155
|
+
hover: s.hover,
|
|
156
|
+
active: s.active,
|
|
157
|
+
focus: s.focus,
|
|
158
|
+
blocked: s.blocked
|
|
159
|
+
}, () => [
|
|
160
|
+
e.resolvedProps.icon ? (a(), d("i", {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: h([e.resolvedProps.icon, "Icon"])
|
|
163
|
+
}, null, 2)) : b("", !0),
|
|
164
|
+
p(e.$slots, "label", {
|
|
165
|
+
hover: s.hover,
|
|
166
|
+
active: s.active,
|
|
167
|
+
focus: s.focus,
|
|
168
|
+
blocked: s.blocked
|
|
169
|
+
}, () => [
|
|
170
|
+
e.resolvedProps.label ? (a(), d("span", W, P(e.resolvedProps.label), 1)) : b("", !0)
|
|
171
|
+
], !0)
|
|
172
|
+
], !0),
|
|
173
|
+
p(e.$slots, "after", {
|
|
174
|
+
hover: s.hover,
|
|
175
|
+
active: s.active,
|
|
176
|
+
focus: s.focus,
|
|
177
|
+
blocked: s.blocked
|
|
178
|
+
}, void 0, !0)
|
|
179
|
+
]),
|
|
180
|
+
_: 3
|
|
181
|
+
}, 40, ["class", "disabled", "title", "href"]);
|
|
182
|
+
}
|
|
183
|
+
const E = /* @__PURE__ */ f(X, [["render", Y], ["__scopeId", "data-v-1050482f"]]), Z = {
|
|
184
|
+
mixins: [y],
|
|
185
|
+
props: {
|
|
186
|
+
tagName: { type: String, default: "div" },
|
|
187
|
+
align: { type: String, default: "stretch" },
|
|
188
|
+
justify: { type: String },
|
|
189
|
+
gap: { type: String, default: "2" }
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
function J(e, t, r, n, s, o) {
|
|
193
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
194
|
+
class: h(["VGroup", [
|
|
195
|
+
`VGroup-align-${e.resolvedProps.align}`,
|
|
196
|
+
`VGroup-justify-${e.resolvedProps.justify}`,
|
|
197
|
+
`VGroup-gap-${e.resolvedProps.gap}`
|
|
198
|
+
]])
|
|
199
|
+
}, {
|
|
200
|
+
default: m(() => [
|
|
201
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
202
|
+
]),
|
|
203
|
+
_: 3
|
|
204
|
+
}, 8, ["class"]);
|
|
205
|
+
}
|
|
206
|
+
const N = /* @__PURE__ */ f(Z, [["render", J], ["__scopeId", "data-v-232c0628"]]), Q = {
|
|
207
|
+
components: {
|
|
208
|
+
Btn: E,
|
|
209
|
+
VGroup: N
|
|
210
|
+
},
|
|
211
|
+
mixins: [y],
|
|
212
|
+
props: {
|
|
213
|
+
items: { type: Array, default: () => [] },
|
|
214
|
+
size: { type: String },
|
|
215
|
+
round: { type: Boolean, default: !1 },
|
|
216
|
+
autoFocus: { type: Boolean, default: !1 }
|
|
217
|
+
},
|
|
218
|
+
emits: [
|
|
219
|
+
"activate"
|
|
220
|
+
],
|
|
221
|
+
mounted() {
|
|
222
|
+
this.resolvedProps.autoFocus && this.$nextTick(() => {
|
|
223
|
+
const e = this.getFocusableEls()[0];
|
|
224
|
+
e && e.focus();
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
methods: {
|
|
228
|
+
getItemType(e) {
|
|
229
|
+
return e.type || "normal";
|
|
230
|
+
},
|
|
231
|
+
getFocusableEls() {
|
|
232
|
+
return Array.from(this.$el.querySelectorAll(".Item:not(:disabled)"));
|
|
233
|
+
},
|
|
234
|
+
onKeyDown(e) {
|
|
235
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
236
|
+
e.preventDefault();
|
|
237
|
+
const t = this.getFocusableEls();
|
|
238
|
+
if (!t.length)
|
|
239
|
+
return;
|
|
240
|
+
const r = document.activeElement;
|
|
241
|
+
let n = t.findIndex((s) => s === r || s.contains(r));
|
|
242
|
+
e.key === "ArrowDown" ? n = (n + 1) % t.length : n = (n + t.length - 1) % t.length, t[n]?.focus();
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
onItemClick(e, t) {
|
|
246
|
+
e.disabled || (typeof e.activate == "function" && e.activate(), this.$emit("activate", e, t));
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}, x = {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: "Header"
|
|
252
|
+
}, ee = {
|
|
253
|
+
key: 1,
|
|
254
|
+
class: "Separator"
|
|
255
|
+
}, te = { class: "Title" }, oe = {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: "CheckIcon"
|
|
258
|
+
};
|
|
259
|
+
function se(e, t, r, n, s, o) {
|
|
260
|
+
const i = g("Btn"), l = g("VGroup");
|
|
261
|
+
return a(), v(l, {
|
|
262
|
+
class: h(["BaseMenu", [
|
|
263
|
+
e.resolvedProps.size && `input-size-${e.resolvedProps.size}`
|
|
264
|
+
]]),
|
|
265
|
+
onKeydown: o.onKeyDown
|
|
266
|
+
}, {
|
|
267
|
+
default: m(() => [
|
|
268
|
+
(a(!0), d(w, null, F(r.items, (u, k) => (a(), d(w, { key: k }, [
|
|
269
|
+
o.getItemType(u) === "header" ? (a(), d("div", x, P(u.title), 1)) : b("", !0),
|
|
270
|
+
o.getItemType(u) === "separator" ? (a(), d("div", ee)) : b("", !0),
|
|
271
|
+
o.getItemType(u) === "normal" ? (a(), v(i, {
|
|
272
|
+
key: 2,
|
|
273
|
+
class: h(["Item", {
|
|
274
|
+
"Item-checked": u.checked
|
|
275
|
+
}]),
|
|
276
|
+
tone: u.tone,
|
|
277
|
+
size: e.resolvedProps.size,
|
|
278
|
+
round: e.resolvedProps.round,
|
|
279
|
+
flat: !0,
|
|
280
|
+
ghost: u.ghost ?? !0,
|
|
281
|
+
outline: u.outline,
|
|
282
|
+
disabled: u.disabled,
|
|
283
|
+
icon: u.icon,
|
|
284
|
+
onClick: (z) => o.onItemClick(u, z)
|
|
285
|
+
}, {
|
|
286
|
+
label: m(() => [
|
|
287
|
+
c("div", te, P(u.title), 1)
|
|
288
|
+
]),
|
|
289
|
+
after: m(() => [
|
|
290
|
+
u.checked ? (a(), d("span", oe, " ✓ ")) : b("", !0)
|
|
291
|
+
]),
|
|
292
|
+
_: 2
|
|
293
|
+
}, 1032, ["class", "tone", "size", "round", "ghost", "outline", "disabled", "icon", "onClick"])) : b("", !0)
|
|
294
|
+
], 64))), 128))
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["class", "onKeydown"]);
|
|
298
|
+
}
|
|
299
|
+
const O = /* @__PURE__ */ f(Q, [["render", se], ["__scopeId", "data-v-92b75163"]]), re = {
|
|
300
|
+
mixins: [y],
|
|
301
|
+
props: {
|
|
302
|
+
dir: { type: String, default: "bottom" },
|
|
303
|
+
align: { type: String, default: "start" },
|
|
304
|
+
arrowShown: { type: Boolean, default: !0 }
|
|
305
|
+
}
|
|
306
|
+
}, ne = {
|
|
307
|
+
key: 0,
|
|
308
|
+
class: "Arrow"
|
|
309
|
+
}, le = { class: "Body" };
|
|
310
|
+
function ie(e, t, r, n, s, o) {
|
|
311
|
+
return a(), v(G, {
|
|
312
|
+
name: "fade-" + e.resolvedProps.dir,
|
|
313
|
+
appear: ""
|
|
314
|
+
}, {
|
|
315
|
+
default: m(() => [
|
|
316
|
+
c("div", {
|
|
317
|
+
class: h(["Bubble", [
|
|
318
|
+
`Bubble-${e.resolvedProps.dir}`,
|
|
319
|
+
`Bubble-${e.resolvedProps.align}`
|
|
320
|
+
]])
|
|
321
|
+
}, [
|
|
322
|
+
e.resolvedProps.arrowShown ? (a(), d("div", ne)) : b("", !0),
|
|
323
|
+
c("div", le, [
|
|
324
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
325
|
+
])
|
|
326
|
+
], 2)
|
|
327
|
+
]),
|
|
328
|
+
_: 3
|
|
329
|
+
}, 8, ["name"]);
|
|
330
|
+
}
|
|
331
|
+
const L = /* @__PURE__ */ f(re, [["render", ie], ["__scopeId", "data-v-905600bc"]]), ae = {}, ue = {
|
|
332
|
+
viewBox: "0 0 32 32",
|
|
333
|
+
fill: "none",
|
|
334
|
+
stroke: "currentColor",
|
|
335
|
+
"stroke-width": "3.2",
|
|
336
|
+
"stroke-linecap": "round",
|
|
337
|
+
"stroke-linejoin": "round",
|
|
338
|
+
"aria-hidden": "true"
|
|
339
|
+
};
|
|
340
|
+
function de(e, t) {
|
|
341
|
+
return a(), d("svg", ue, [...t[0] || (t[0] = [
|
|
342
|
+
c("path", { d: "M7 17L13 23L25 10" }, null, -1)
|
|
343
|
+
])]);
|
|
344
|
+
}
|
|
345
|
+
const pe = /* @__PURE__ */ f(ae, [["render", de]]), fe = {}, ce = {
|
|
346
|
+
viewBox: "0 0 32 32",
|
|
347
|
+
fill: "none",
|
|
348
|
+
stroke: "currentColor",
|
|
349
|
+
"stroke-width": "3",
|
|
350
|
+
"stroke-linecap": "round",
|
|
351
|
+
"stroke-linejoin": "round",
|
|
352
|
+
"aria-hidden": "true"
|
|
353
|
+
};
|
|
354
|
+
function ve(e, t) {
|
|
355
|
+
return a(), d("svg", ce, [...t[0] || (t[0] = [
|
|
356
|
+
c("path", { d: "M10 10L22 22M22 10L10 22" }, null, -1)
|
|
357
|
+
])]);
|
|
358
|
+
}
|
|
359
|
+
const ye = /* @__PURE__ */ f(fe, [["render", ve]]), he = {
|
|
360
|
+
mixins: [y],
|
|
361
|
+
props: {
|
|
362
|
+
mark: { type: String, default: "check" },
|
|
363
|
+
modelValue: { type: Boolean },
|
|
364
|
+
disabled: { type: Boolean },
|
|
365
|
+
tone: { type: String },
|
|
366
|
+
activeTone: { type: String },
|
|
367
|
+
size: { type: String },
|
|
368
|
+
round: { type: Boolean, default: !1 },
|
|
369
|
+
flat: { type: Boolean, default: !1 },
|
|
370
|
+
outline: { type: Boolean, default: !1 },
|
|
371
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
372
|
+
forceHover: { type: Boolean, default: !1 },
|
|
373
|
+
focusOverrides: { type: Object },
|
|
374
|
+
hoverOverrides: { type: Object }
|
|
375
|
+
},
|
|
376
|
+
emits: [
|
|
377
|
+
"update:modelValue"
|
|
378
|
+
],
|
|
379
|
+
data() {
|
|
380
|
+
return {
|
|
381
|
+
hover: !1,
|
|
382
|
+
focus: !1
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
computed: {
|
|
386
|
+
markComponent() {
|
|
387
|
+
return this.resolvedProps.mark === "check" ? pe : this.resolvedProps.mark === "xmark" ? ye : null;
|
|
388
|
+
},
|
|
389
|
+
isActive() {
|
|
390
|
+
return !!this.resolvedProps.modelValue;
|
|
391
|
+
},
|
|
392
|
+
baseStyle() {
|
|
393
|
+
const { resolvedProps: e } = this;
|
|
394
|
+
return {
|
|
395
|
+
tone: (this.isActive ? e.activeTone : e.tone) ?? e.tone,
|
|
396
|
+
size: e.size,
|
|
397
|
+
round: e.round,
|
|
398
|
+
outline: e.outline,
|
|
399
|
+
flat: e.flat
|
|
400
|
+
};
|
|
401
|
+
},
|
|
402
|
+
effectiveStyle() {
|
|
403
|
+
const {
|
|
404
|
+
baseStyle: e,
|
|
405
|
+
hoverOverrides: t = {},
|
|
406
|
+
focusOverrides: r = {},
|
|
407
|
+
hover: n,
|
|
408
|
+
focus: s,
|
|
409
|
+
resolvedProps: o
|
|
410
|
+
} = this, { forceHover: i, forceFocus: l } = o, u = Object.assign({}, e);
|
|
411
|
+
return (n || i) && Object.assign(u, t), (s || l) && Object.assign(u, r), u;
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
methods: {
|
|
415
|
+
onChange(e) {
|
|
416
|
+
this.$emit("update:modelValue", e.target.checked);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}, me = {
|
|
420
|
+
key: 1,
|
|
421
|
+
class: "Mark"
|
|
422
|
+
}, be = ["checked", "disabled"];
|
|
423
|
+
function ge(e, t, r, n, s, o) {
|
|
424
|
+
return a(), d("label", {
|
|
425
|
+
class: h(["Checkbox InputElement", [
|
|
426
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
427
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
428
|
+
`Checkbox-mark-${e.resolvedProps.mark}`,
|
|
429
|
+
{
|
|
430
|
+
"Checkbox-active": !!e.resolvedProps.modelValue,
|
|
431
|
+
"Checkbox-outline": o.effectiveStyle.outline,
|
|
432
|
+
"Checkbox-round": o.effectiveStyle.round,
|
|
433
|
+
"Checkbox-flat": o.effectiveStyle.flat,
|
|
434
|
+
"Checkbox-disabled": e.resolvedProps.disabled,
|
|
435
|
+
"Checkbox-forceFocus": e.resolvedProps.forceFocus,
|
|
436
|
+
"Checkbox-forceHover": e.resolvedProps.forceHover
|
|
437
|
+
}
|
|
438
|
+
]]),
|
|
439
|
+
tabindex: "0",
|
|
440
|
+
onMouseenter: t[1] || (t[1] = (i) => s.hover = !0),
|
|
441
|
+
onMouseleave: t[2] || (t[2] = (i) => s.hover = !1),
|
|
442
|
+
onFocusin: t[3] || (t[3] = (i) => s.focus = !0),
|
|
443
|
+
onFocusout: t[4] || (t[4] = (i) => s.focus = !1)
|
|
444
|
+
}, [
|
|
445
|
+
e.resolvedProps.modelValue ? p(e.$slots, "active", { key: 0 }, () => [
|
|
446
|
+
o.markComponent ? (a(), v($(o.markComponent), {
|
|
447
|
+
key: 0,
|
|
448
|
+
class: "Mark MarkGlyph"
|
|
449
|
+
})) : (a(), d("div", me))
|
|
450
|
+
], !0) : b("", !0),
|
|
451
|
+
e.resolvedProps.modelValue ? b("", !0) : p(e.$slots, "inactive", { key: 1 }, void 0, !0),
|
|
452
|
+
c("input", {
|
|
453
|
+
type: "checkbox",
|
|
454
|
+
checked: e.resolvedProps.modelValue,
|
|
455
|
+
disabled: e.resolvedProps.disabled,
|
|
456
|
+
onChange: t[0] || (t[0] = (...i) => o.onChange && o.onChange(...i))
|
|
457
|
+
}, null, 40, be)
|
|
458
|
+
], 34);
|
|
459
|
+
}
|
|
460
|
+
const Pe = /* @__PURE__ */ f(he, [["render", ge], ["__scopeId", "data-v-b636a028"]]), Se = {
|
|
461
|
+
mixins: [y],
|
|
462
|
+
props: {
|
|
463
|
+
tagName: { type: String, default: "button" },
|
|
464
|
+
label: { type: String },
|
|
465
|
+
icon: { type: String },
|
|
466
|
+
tone: { type: String },
|
|
467
|
+
size: { type: String },
|
|
468
|
+
flat: { type: Boolean, default: !1 },
|
|
469
|
+
outline: { type: Boolean, default: !1 },
|
|
470
|
+
round: { type: Boolean, default: !1 },
|
|
471
|
+
translucent: { type: Boolean, default: !1 },
|
|
472
|
+
disabled: { type: Boolean, default: !1 },
|
|
473
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
474
|
+
forceHover: { type: Boolean, default: !1 }
|
|
475
|
+
},
|
|
476
|
+
computed: {
|
|
477
|
+
effectiveStyle() {
|
|
478
|
+
const { resolvedProps: e } = this;
|
|
479
|
+
return {
|
|
480
|
+
tone: e.tone,
|
|
481
|
+
size: e.size,
|
|
482
|
+
flat: e.flat,
|
|
483
|
+
outline: e.outline,
|
|
484
|
+
round: e.round,
|
|
485
|
+
translucent: e.translucent
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}, $e = {
|
|
490
|
+
key: 1,
|
|
491
|
+
class: "Label"
|
|
492
|
+
};
|
|
493
|
+
function ke(e, t, r, n, s, o) {
|
|
494
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
495
|
+
class: h(["Chip InputElement", [
|
|
496
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
497
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
498
|
+
{
|
|
499
|
+
"Chip-round": o.effectiveStyle.round,
|
|
500
|
+
"Chip-outline": o.effectiveStyle.outline,
|
|
501
|
+
"Chip-flat": o.effectiveStyle.flat,
|
|
502
|
+
"Chip-translucent": o.effectiveStyle.translucent,
|
|
503
|
+
"Chip-disabled": e.resolvedProps.disabled,
|
|
504
|
+
"Chip-forceFocus": e.resolvedProps.forceFocus,
|
|
505
|
+
"Chip-forceHover": e.resolvedProps.forceHover
|
|
506
|
+
}
|
|
507
|
+
]]),
|
|
508
|
+
disabled: e.resolvedProps.disabled
|
|
509
|
+
}, {
|
|
510
|
+
default: m(() => [
|
|
511
|
+
p(e.$slots, "before", {}, void 0, !0),
|
|
512
|
+
p(e.$slots, "default", {}, () => [
|
|
513
|
+
e.resolvedProps.icon ? (a(), d("i", {
|
|
514
|
+
key: 0,
|
|
515
|
+
class: h([e.resolvedProps.icon, "Icon"])
|
|
516
|
+
}, null, 2)) : b("", !0),
|
|
517
|
+
e.resolvedProps.label ? (a(), d("span", $e, P(e.resolvedProps.label), 1)) : b("", !0)
|
|
518
|
+
], !0),
|
|
519
|
+
p(e.$slots, "after", {}, void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
_: 3
|
|
522
|
+
}, 8, ["class", "disabled"]);
|
|
523
|
+
}
|
|
524
|
+
const Be = /* @__PURE__ */ f(Se, [["render", ke], ["__scopeId", "data-v-2d8b8114"]]), we = {
|
|
525
|
+
mixins: [y],
|
|
526
|
+
props: {
|
|
527
|
+
overlayEnabled: { type: Boolean, default: !0 },
|
|
528
|
+
overlayShown: { type: Boolean, default: !0 }
|
|
529
|
+
},
|
|
530
|
+
emits: ["hide"],
|
|
531
|
+
mounted() {
|
|
532
|
+
window.addEventListener("keydown", this.onKeyDown);
|
|
533
|
+
},
|
|
534
|
+
beforeUnmount() {
|
|
535
|
+
window.removeEventListener("keydown", this.onKeyDown);
|
|
536
|
+
},
|
|
537
|
+
methods: {
|
|
538
|
+
hide() {
|
|
539
|
+
this.$emit("hide");
|
|
540
|
+
},
|
|
541
|
+
onKeyDown(e) {
|
|
542
|
+
e.key === "Escape" && (e.preventDefault(), this.hide());
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
function Te(e, t, r, n, s, o) {
|
|
547
|
+
return a(), v(R, { to: "#overlays" }, [
|
|
548
|
+
c("div", {
|
|
549
|
+
class: h(["ModalOverlay", {
|
|
550
|
+
"ModalOverlay-enabled": e.resolvedProps.overlayEnabled,
|
|
551
|
+
"ModalOverlay-shown": e.resolvedProps.overlayShown
|
|
552
|
+
}]),
|
|
553
|
+
onClick: t[0] || (t[0] = B((...i) => o.hide && o.hide(...i), ["stop"]))
|
|
554
|
+
}, [
|
|
555
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
556
|
+
], 2)
|
|
557
|
+
]);
|
|
558
|
+
}
|
|
559
|
+
const _ = /* @__PURE__ */ f(we, [["render", Te], ["__scopeId", "data-v-f1088f36"]]), Ie = {
|
|
560
|
+
components: {
|
|
561
|
+
ModalOverlay: _
|
|
562
|
+
},
|
|
563
|
+
mixins: [y],
|
|
564
|
+
props: {
|
|
565
|
+
dir: { type: String, default: "v" },
|
|
566
|
+
align: { type: String, default: "auto" },
|
|
567
|
+
anchorRef: { type: String },
|
|
568
|
+
anchorDir: { type: String, default: "middle" },
|
|
569
|
+
overlayEnabled: { type: Boolean, default: !0 },
|
|
570
|
+
overlayShown: { type: Boolean, default: !0 },
|
|
571
|
+
arrowShown: { type: Boolean, default: !0 }
|
|
572
|
+
},
|
|
573
|
+
emits: ["hide", "mouseenter", "mouseleave", "ready"],
|
|
574
|
+
data() {
|
|
575
|
+
return {
|
|
576
|
+
pos: { x: 0, y: 0 },
|
|
577
|
+
actualDir: "bottom",
|
|
578
|
+
actualAlign: "start",
|
|
579
|
+
ready: !1
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
computed: {
|
|
583
|
+
bubbleStyle() {
|
|
584
|
+
const { x: e, y: t } = this.pos;
|
|
585
|
+
return {
|
|
586
|
+
left: `${e}px`,
|
|
587
|
+
top: `${t}px`,
|
|
588
|
+
"pointer-events": "auto"
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
mounted() {
|
|
593
|
+
this.$nextTick(() => this.calcPos()), window.addEventListener("resize", this.onResize);
|
|
594
|
+
},
|
|
595
|
+
beforeUnmount() {
|
|
596
|
+
window.removeEventListener("resize", this.onResize);
|
|
597
|
+
},
|
|
598
|
+
methods: {
|
|
599
|
+
hide() {
|
|
600
|
+
this.$emit("hide");
|
|
601
|
+
},
|
|
602
|
+
calcPos() {
|
|
603
|
+
const e = this.getAnchorEl();
|
|
604
|
+
e && (this.pos = this.getAnchorPoint(e, this.resolvedProps.anchorDir), this.calcDirAlign(), this.ready = !0, this.$nextTick(() => this.$emit("ready")));
|
|
605
|
+
},
|
|
606
|
+
calcDirAlign() {
|
|
607
|
+
const e = this.pos.y < window.innerHeight * 0.5, t = this.pos.x < window.innerWidth * 0.5, { align: r, dir: n } = this.resolvedProps;
|
|
608
|
+
r === "auto" ? ["top", "bottom", "v"].includes(n) ? this.actualAlign = t ? "start" : "end" : this.actualAlign = e ? "start" : "end" : this.actualAlign = r, n === "v" ? this.actualDir = e ? "bottom" : "top" : n === "h" ? this.actualDir = t ? "right" : "left" : this.actualDir = n;
|
|
609
|
+
},
|
|
610
|
+
getAnchorEl() {
|
|
611
|
+
if (this.resolvedProps.anchorRef) {
|
|
612
|
+
const e = this.findRef(this.$parent, this.resolvedProps.anchorRef);
|
|
613
|
+
if (e)
|
|
614
|
+
return e;
|
|
615
|
+
}
|
|
616
|
+
return this.$el.parentElement;
|
|
617
|
+
},
|
|
618
|
+
findRef(e, t) {
|
|
619
|
+
if (!e)
|
|
620
|
+
return null;
|
|
621
|
+
const r = e.$refs[t];
|
|
622
|
+
if (r) {
|
|
623
|
+
const n = r.$el ?? r;
|
|
624
|
+
if (n instanceof HTMLElement)
|
|
625
|
+
return n;
|
|
626
|
+
}
|
|
627
|
+
return e.$parent ? this.findRef(e.$parent, t) : null;
|
|
628
|
+
},
|
|
629
|
+
getAnchorPoint(e, t) {
|
|
630
|
+
const { top: r, left: n, width: s, height: o } = e.getBoundingClientRect();
|
|
631
|
+
switch (t) {
|
|
632
|
+
case "left":
|
|
633
|
+
return { x: n, y: r + o * 0.5 };
|
|
634
|
+
case "right":
|
|
635
|
+
return { x: n + s, y: r + o * 0.5 };
|
|
636
|
+
case "top":
|
|
637
|
+
return { x: n + s * 0.5, y: r };
|
|
638
|
+
case "bottom":
|
|
639
|
+
return { x: n + s * 0.5, y: r + o };
|
|
640
|
+
default:
|
|
641
|
+
return { x: n + s * 0.5, y: r + o * 0.5 };
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
onResize() {
|
|
645
|
+
this.calcPos();
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
function Ce(e, t, r, n, s, o) {
|
|
650
|
+
const i = g("Bubble"), l = g("ModalOverlay");
|
|
651
|
+
return a(), v(l, {
|
|
652
|
+
overlayEnabled: e.resolvedProps.overlayEnabled,
|
|
653
|
+
overlayShown: e.resolvedProps.overlayShown,
|
|
654
|
+
onHide: o.hide
|
|
655
|
+
}, {
|
|
656
|
+
default: m(() => [
|
|
657
|
+
s.ready ? (a(), v(i, {
|
|
658
|
+
key: 0,
|
|
659
|
+
dir: s.actualDir,
|
|
660
|
+
align: s.actualAlign,
|
|
661
|
+
style: j(o.bubbleStyle),
|
|
662
|
+
arrowShown: e.resolvedProps.arrowShown,
|
|
663
|
+
onMouseenter: t[0] || (t[0] = (u) => e.$emit("mouseenter")),
|
|
664
|
+
onMouseleave: t[1] || (t[1] = (u) => e.$emit("mouseleave")),
|
|
665
|
+
onClick: t[2] || (t[2] = B(() => {
|
|
666
|
+
}, ["stop"]))
|
|
667
|
+
}, {
|
|
668
|
+
default: m(() => [
|
|
669
|
+
p(e.$slots, "default")
|
|
670
|
+
]),
|
|
671
|
+
_: 3
|
|
672
|
+
}, 8, ["dir", "align", "style", "arrowShown"])) : b("", !0)
|
|
673
|
+
]),
|
|
674
|
+
_: 3
|
|
675
|
+
}, 8, ["overlayEnabled", "overlayShown", "onHide"]);
|
|
676
|
+
}
|
|
677
|
+
const V = /* @__PURE__ */ f(Ie, [["render", Ce]]), ze = {
|
|
678
|
+
components: {
|
|
679
|
+
ContextPopup: V,
|
|
680
|
+
BaseMenu: O
|
|
681
|
+
},
|
|
682
|
+
mixins: [y],
|
|
683
|
+
inheritAttrs: !1,
|
|
684
|
+
props: {
|
|
685
|
+
...V.props,
|
|
686
|
+
...O.props,
|
|
687
|
+
autoFocus: { type: Boolean, default: !0 }
|
|
688
|
+
},
|
|
689
|
+
emits: [
|
|
690
|
+
...V.emits || [],
|
|
691
|
+
...O.emits || []
|
|
692
|
+
],
|
|
693
|
+
computed: {
|
|
694
|
+
contextPopupProps() {
|
|
695
|
+
return C(this, V);
|
|
696
|
+
},
|
|
697
|
+
baseMenuProps() {
|
|
698
|
+
return C(this, O);
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
methods: {
|
|
702
|
+
hide() {
|
|
703
|
+
this.$refs.popup?.hide();
|
|
704
|
+
},
|
|
705
|
+
onActivate(e, t) {
|
|
706
|
+
this.$emit("activate", e, t);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
function Oe(e, t, r, n, s, o) {
|
|
711
|
+
const i = g("BaseMenu"), l = g("ContextPopup");
|
|
712
|
+
return a(), v(l, I({ ref: "popup" }, o.contextPopupProps, {
|
|
713
|
+
onHide: t[0] || (t[0] = (u) => e.$emit("hide")),
|
|
714
|
+
onMouseenter: t[1] || (t[1] = (u) => e.$emit("mouseenter")),
|
|
715
|
+
onMouseleave: t[2] || (t[2] = (u) => e.$emit("mouseleave")),
|
|
716
|
+
onReady: t[3] || (t[3] = (u) => e.$emit("ready"))
|
|
717
|
+
}), {
|
|
718
|
+
default: m(() => [
|
|
719
|
+
A(i, I({ class: "ContextMenu" }, { ...o.baseMenuProps, ...e.$attrs }, { onActivate: o.onActivate }), null, 16, ["onActivate"])
|
|
720
|
+
]),
|
|
721
|
+
_: 1
|
|
722
|
+
}, 16);
|
|
723
|
+
}
|
|
724
|
+
const Ve = /* @__PURE__ */ f(ze, [["render", Oe]]), Fe = {
|
|
725
|
+
mixins: [y],
|
|
726
|
+
props: {
|
|
727
|
+
fill: { type: String, default: "none" }
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
function Ee(e, t, r, n, s, o) {
|
|
731
|
+
return a(), d("div", {
|
|
732
|
+
class: h(["Filler", [
|
|
733
|
+
`Filler-${e.resolvedProps.fill}`
|
|
734
|
+
]])
|
|
735
|
+
}, null, 2);
|
|
736
|
+
}
|
|
737
|
+
const Me = /* @__PURE__ */ f(Fe, [["render", Ee], ["__scopeId", "data-v-e6acedec"]]), Ae = {
|
|
738
|
+
mixins: [y],
|
|
739
|
+
props: {
|
|
740
|
+
tagName: { type: String, default: "div" },
|
|
741
|
+
align: { type: String, default: "center" },
|
|
742
|
+
justify: { type: String },
|
|
743
|
+
gap: { type: String, default: "1" },
|
|
744
|
+
wrap: { type: Boolean, default: !1 }
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
function je(e, t, r, n, s, o) {
|
|
748
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
749
|
+
class: h(["HGroup", [
|
|
750
|
+
`HGroup-align-${e.resolvedProps.align}`,
|
|
751
|
+
`HGroup-justify-${e.resolvedProps.justify}`,
|
|
752
|
+
`HGroup-gap-${e.resolvedProps.gap}`,
|
|
753
|
+
{
|
|
754
|
+
"HGroup-wrap": e.resolvedProps.wrap
|
|
755
|
+
}
|
|
756
|
+
]])
|
|
757
|
+
}, {
|
|
758
|
+
default: m(() => [
|
|
759
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
760
|
+
]),
|
|
761
|
+
_: 3
|
|
762
|
+
}, 8, ["class"]);
|
|
763
|
+
}
|
|
764
|
+
const De = /* @__PURE__ */ f(Ae, [["render", je], ["__scopeId", "data-v-64030310"]]), He = {
|
|
765
|
+
mixins: [y],
|
|
766
|
+
props: {
|
|
767
|
+
tagName: { type: String, default: "div" },
|
|
768
|
+
dir: { type: String, default: "top" },
|
|
769
|
+
label: { type: String },
|
|
770
|
+
size: { type: String },
|
|
771
|
+
tone: { type: String }
|
|
772
|
+
},
|
|
773
|
+
computed: {
|
|
774
|
+
orientation() {
|
|
775
|
+
const { dir: e } = this.resolvedProps;
|
|
776
|
+
return e === "top" || e === "bottom" ? "h" : "v";
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}, Ne = { class: "Content" }, Le = ["title"];
|
|
780
|
+
function _e(e, t, r, n, s, o) {
|
|
781
|
+
const i = g("TabCap");
|
|
782
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
783
|
+
class: h(["Tab", [
|
|
784
|
+
e.resolvedProps.tone && `tone-${e.resolvedProps.tone}`,
|
|
785
|
+
e.resolvedProps.size && `input-size-${e.resolvedProps.size}`,
|
|
786
|
+
`Tab-${e.resolvedProps.dir}`,
|
|
787
|
+
`Tab-${o.orientation}`
|
|
788
|
+
]])
|
|
789
|
+
}, {
|
|
790
|
+
default: m(() => [
|
|
791
|
+
A(i, {
|
|
792
|
+
class: "TabCap",
|
|
793
|
+
dir: e.resolvedProps.dir,
|
|
794
|
+
type: "start"
|
|
795
|
+
}, null, 8, ["dir"]),
|
|
796
|
+
c("div", Ne, [
|
|
797
|
+
p(e.$slots, "default", {}, () => [
|
|
798
|
+
e.resolvedProps.label ? (a(), d("div", {
|
|
799
|
+
key: 0,
|
|
800
|
+
class: "TabLabel",
|
|
801
|
+
title: e.resolvedProps.label
|
|
802
|
+
}, P(e.resolvedProps.label), 9, Le)) : b("", !0)
|
|
803
|
+
], !0)
|
|
804
|
+
]),
|
|
805
|
+
A(i, {
|
|
806
|
+
class: "TabCap",
|
|
807
|
+
dir: e.resolvedProps.dir,
|
|
808
|
+
type: "end"
|
|
809
|
+
}, null, 8, ["dir"])
|
|
810
|
+
]),
|
|
811
|
+
_: 3
|
|
812
|
+
}, 8, ["class"]);
|
|
813
|
+
}
|
|
814
|
+
const K = /* @__PURE__ */ f(He, [["render", _e], ["__scopeId", "data-v-b8592753"]]), Ke = {
|
|
815
|
+
components: {
|
|
816
|
+
Tab: K
|
|
817
|
+
},
|
|
818
|
+
mixins: [y],
|
|
819
|
+
props: {
|
|
820
|
+
tagName: { default: "label" },
|
|
821
|
+
tone: { type: String },
|
|
822
|
+
label: { type: String },
|
|
823
|
+
labelStyle: { type: String, default: "inline" },
|
|
824
|
+
size: { type: String },
|
|
825
|
+
fixedHeight: { type: Boolean, default: !0 },
|
|
826
|
+
flat: { type: Boolean, default: !1 },
|
|
827
|
+
round: { type: Boolean, default: !1 },
|
|
828
|
+
outline: { type: Boolean, default: !1 },
|
|
829
|
+
disabled: { type: Boolean, default: !1 },
|
|
830
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
831
|
+
forceHover: { type: Boolean, default: !1 },
|
|
832
|
+
hoverOverrides: { type: Object },
|
|
833
|
+
focusOverrides: { type: Object }
|
|
834
|
+
},
|
|
835
|
+
data() {
|
|
836
|
+
return {
|
|
837
|
+
hover: !1,
|
|
838
|
+
focus: !1
|
|
839
|
+
};
|
|
840
|
+
},
|
|
841
|
+
computed: {
|
|
842
|
+
baseStyle() {
|
|
843
|
+
const { resolvedProps: e } = this;
|
|
844
|
+
return {
|
|
845
|
+
tone: e.tone,
|
|
846
|
+
size: e.size,
|
|
847
|
+
flat: e.flat,
|
|
848
|
+
round: e.round,
|
|
849
|
+
outline: e.outline,
|
|
850
|
+
labelStyle: e.labelStyle
|
|
851
|
+
};
|
|
852
|
+
},
|
|
853
|
+
effectiveStyle() {
|
|
854
|
+
const {
|
|
855
|
+
baseStyle: e,
|
|
856
|
+
hoverOverrides: t = {},
|
|
857
|
+
focusOverrides: r = {},
|
|
858
|
+
hover: n,
|
|
859
|
+
focus: s,
|
|
860
|
+
resolvedProps: o
|
|
861
|
+
} = this, { forceHover: i, forceFocus: l } = o, u = Object.assign({}, e);
|
|
862
|
+
return (n || i) && Object.assign(u, t), (s || l) && Object.assign(u, r), u;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}, Ge = {
|
|
866
|
+
key: 1,
|
|
867
|
+
class: "Label TextLabel"
|
|
868
|
+
}, Re = {
|
|
869
|
+
key: 2,
|
|
870
|
+
class: "Label InlineLabel"
|
|
871
|
+
}, Ue = { class: "InputElement Container" };
|
|
872
|
+
function qe(e, t, r, n, s, o) {
|
|
873
|
+
const i = g("Tab");
|
|
874
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
875
|
+
class: h(["InputBase", [
|
|
876
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
877
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
878
|
+
{
|
|
879
|
+
"InputBase-fixedHeight": e.resolvedProps.fixedHeight,
|
|
880
|
+
"InputBase-flat": o.effectiveStyle.flat,
|
|
881
|
+
"InputBase-round": o.effectiveStyle.round,
|
|
882
|
+
"InputBase-disabled": e.resolvedProps.disabled,
|
|
883
|
+
"InputBase-forceFocus": e.resolvedProps.forceFocus,
|
|
884
|
+
"InputBase-forceHover": e.resolvedProps.forceHover
|
|
885
|
+
}
|
|
886
|
+
]]),
|
|
887
|
+
onMouseenter: t[0] || (t[0] = (l) => s.hover = !0),
|
|
888
|
+
onMouseleave: t[1] || (t[1] = (l) => s.hover = !1),
|
|
889
|
+
onFocusin: t[2] || (t[2] = (l) => s.focus = !0),
|
|
890
|
+
onFocusout: t[3] || (t[3] = (l) => s.focus = !1)
|
|
891
|
+
}, {
|
|
892
|
+
default: m(() => [
|
|
893
|
+
e.resolvedProps.label ? (a(), d(w, { key: 0 }, [
|
|
894
|
+
e.resolvedProps.labelStyle === "tab" ? (a(), v(i, {
|
|
895
|
+
key: 0,
|
|
896
|
+
class: "Label TabLabel",
|
|
897
|
+
label: e.resolvedProps.label,
|
|
898
|
+
tone: e.resolvedProps.tone
|
|
899
|
+
}, null, 8, ["label", "tone"])) : b("", !0),
|
|
900
|
+
e.resolvedProps.labelStyle === "text" ? (a(), d("div", Ge, P(e.resolvedProps.label), 1)) : b("", !0),
|
|
901
|
+
e.resolvedProps.labelStyle === "inline" ? (a(), d("div", Re, P(e.resolvedProps.label), 1)) : b("", !0)
|
|
902
|
+
], 64)) : b("", !0),
|
|
903
|
+
c("div", Ue, [
|
|
904
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
905
|
+
])
|
|
906
|
+
]),
|
|
907
|
+
_: 3
|
|
908
|
+
}, 40, ["class"]);
|
|
909
|
+
}
|
|
910
|
+
const S = /* @__PURE__ */ f(Ke, [["render", qe], ["__scopeId", "data-v-bb5bf603"]]), Xe = {
|
|
911
|
+
mixins: [y],
|
|
912
|
+
props: {
|
|
913
|
+
tagName: { type: String, default: "div" }
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
function We(e, t, r, n, s, o) {
|
|
917
|
+
return a(), v($(e.resolvedProps.tagName), { class: "InputGroup" }, {
|
|
918
|
+
default: m(() => [
|
|
919
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
920
|
+
]),
|
|
921
|
+
_: 3
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
const Ye = /* @__PURE__ */ f(Xe, [["render", We], ["__scopeId", "data-v-0e623cfd"]]), Ze = {
|
|
925
|
+
components: {
|
|
926
|
+
InputBase: S
|
|
927
|
+
},
|
|
928
|
+
mixins: [y],
|
|
929
|
+
props: {
|
|
930
|
+
...S.props,
|
|
931
|
+
tagName: { type: String, default: "label" },
|
|
932
|
+
modelValue: { type: [String, Number] },
|
|
933
|
+
options: {
|
|
934
|
+
type: Array,
|
|
935
|
+
default: () => []
|
|
936
|
+
},
|
|
937
|
+
autoFocus: { type: Boolean },
|
|
938
|
+
readonly: { type: Boolean }
|
|
939
|
+
},
|
|
940
|
+
emits: [
|
|
941
|
+
"focus",
|
|
942
|
+
"blur",
|
|
943
|
+
"input",
|
|
944
|
+
"change",
|
|
945
|
+
"update:modelValue"
|
|
946
|
+
],
|
|
947
|
+
computed: {
|
|
948
|
+
inputBaseProps() {
|
|
949
|
+
return C(this, S);
|
|
950
|
+
},
|
|
951
|
+
hasGroupedOptions() {
|
|
952
|
+
return this.resolvedProps.options.some((e) => e?.group);
|
|
953
|
+
},
|
|
954
|
+
groupedOptions() {
|
|
955
|
+
const e = [{
|
|
956
|
+
label: "",
|
|
957
|
+
options: []
|
|
958
|
+
}];
|
|
959
|
+
for (const t of this.resolvedProps.options) {
|
|
960
|
+
const r = t?.group ?? "", n = e.find((s) => s.label === r);
|
|
961
|
+
n ? n.options.push(t) : e.push({
|
|
962
|
+
label: r,
|
|
963
|
+
options: [t]
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
return e;
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
mounted() {
|
|
970
|
+
this.resolvedProps.autoFocus && this.$refs.input?.focus();
|
|
971
|
+
},
|
|
972
|
+
methods: {
|
|
973
|
+
onInput(e) {
|
|
974
|
+
this.$emit("input", e);
|
|
975
|
+
},
|
|
976
|
+
onChange(e) {
|
|
977
|
+
if (this.resolvedProps.readonly) {
|
|
978
|
+
e.target.value = this.resolvedProps.modelValue;
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
this.$emit("change", e), this.$emit("update:modelValue", e.target.value);
|
|
982
|
+
},
|
|
983
|
+
optionLabel(e) {
|
|
984
|
+
return String(e?.label ?? e?.value ?? "");
|
|
985
|
+
},
|
|
986
|
+
optionKey(e) {
|
|
987
|
+
return `${e?.group ?? ""}:${String(e?.value ?? "")}`;
|
|
988
|
+
},
|
|
989
|
+
onBaseClick(e) {
|
|
990
|
+
const t = this.$refs.input;
|
|
991
|
+
e.target !== t && (e.preventDefault(), typeof t.showPicker == "function" ? t.showPicker() : t.click());
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}, Je = ["value", "disabled", "aria-readonly"], Qe = ["label"], xe = ["value"], et = ["value"];
|
|
995
|
+
function tt(e, t, r, n, s, o) {
|
|
996
|
+
const i = g("InputBase");
|
|
997
|
+
return a(), v(i, I({ class: "InputSelect" }, o.inputBaseProps, {
|
|
998
|
+
onClick: t[4] || (t[4] = (l) => o.onBaseClick(l))
|
|
999
|
+
}), {
|
|
1000
|
+
default: m(() => [
|
|
1001
|
+
p(e.$slots, "before", {}, void 0, !0),
|
|
1002
|
+
c("select", {
|
|
1003
|
+
ref: "input",
|
|
1004
|
+
value: e.resolvedProps.modelValue,
|
|
1005
|
+
disabled: e.resolvedProps.disabled,
|
|
1006
|
+
"aria-readonly": e.resolvedProps.readonly,
|
|
1007
|
+
onInput: t[0] || (t[0] = (l) => o.onInput(l)),
|
|
1008
|
+
onChange: t[1] || (t[1] = (l) => o.onChange(l)),
|
|
1009
|
+
onFocus: t[2] || (t[2] = (l) => e.$emit("focus", l)),
|
|
1010
|
+
onBlur: t[3] || (t[3] = (l) => e.$emit("blur", l))
|
|
1011
|
+
}, [
|
|
1012
|
+
o.hasGroupedOptions ? (a(!0), d(w, { key: 0 }, F(o.groupedOptions, (l) => (a(), d("optgroup", {
|
|
1013
|
+
key: l.label,
|
|
1014
|
+
label: l.label
|
|
1015
|
+
}, [
|
|
1016
|
+
(a(!0), d(w, null, F(l.options, (u) => (a(), d("option", {
|
|
1017
|
+
key: o.optionKey(u),
|
|
1018
|
+
value: u.value
|
|
1019
|
+
}, P(o.optionLabel(u)), 9, xe))), 128))
|
|
1020
|
+
], 8, Qe))), 128)) : (a(!0), d(w, { key: 1 }, F(e.resolvedProps.options, (l) => (a(), d("option", {
|
|
1021
|
+
key: o.optionKey(l),
|
|
1022
|
+
value: l.value
|
|
1023
|
+
}, P(o.optionLabel(l)), 9, et))), 128))
|
|
1024
|
+
], 40, Je),
|
|
1025
|
+
p(e.$slots, "after", {}, void 0, !0)
|
|
1026
|
+
]),
|
|
1027
|
+
_: 3
|
|
1028
|
+
}, 16);
|
|
1029
|
+
}
|
|
1030
|
+
const ot = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-f10cecb8"]]), st = {
|
|
1031
|
+
components: {
|
|
1032
|
+
InputBase: S
|
|
1033
|
+
},
|
|
1034
|
+
mixins: [y],
|
|
1035
|
+
props: {
|
|
1036
|
+
...S.props,
|
|
1037
|
+
tagName: { type: String, default: "label" },
|
|
1038
|
+
modelValue: { type: [String, Number] },
|
|
1039
|
+
type: { type: String },
|
|
1040
|
+
placeholder: { type: String },
|
|
1041
|
+
min: { type: Number },
|
|
1042
|
+
max: { type: Number },
|
|
1043
|
+
step: { type: Number },
|
|
1044
|
+
autoFocus: { type: Boolean },
|
|
1045
|
+
readonly: { type: Boolean }
|
|
1046
|
+
},
|
|
1047
|
+
emits: [
|
|
1048
|
+
"focus",
|
|
1049
|
+
"blur",
|
|
1050
|
+
"input",
|
|
1051
|
+
"update:modelValue"
|
|
1052
|
+
],
|
|
1053
|
+
computed: {
|
|
1054
|
+
inputBaseProps() {
|
|
1055
|
+
return C(this, S);
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
mounted() {
|
|
1059
|
+
this.resolvedProps.autoFocus && this.$refs.input?.focus();
|
|
1060
|
+
},
|
|
1061
|
+
methods: {
|
|
1062
|
+
onInput(e) {
|
|
1063
|
+
this.$emit("update:modelValue", e.target.value);
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}, rt = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
|
|
1067
|
+
function nt(e, t, r, n, s, o) {
|
|
1068
|
+
const i = g("InputBase");
|
|
1069
|
+
return a(), v(i, I({ class: "InputText" }, o.inputBaseProps), {
|
|
1070
|
+
default: m(() => [
|
|
1071
|
+
p(e.$slots, "before", {}, void 0, !0),
|
|
1072
|
+
c("input", {
|
|
1073
|
+
ref: "input",
|
|
1074
|
+
value: e.resolvedProps.modelValue,
|
|
1075
|
+
type: e.resolvedProps.type,
|
|
1076
|
+
placeholder: e.resolvedProps.placeholder,
|
|
1077
|
+
readonly: e.resolvedProps.readonly,
|
|
1078
|
+
disabled: e.resolvedProps.disabled,
|
|
1079
|
+
min: e.resolvedProps.min,
|
|
1080
|
+
max: e.resolvedProps.max,
|
|
1081
|
+
step: e.resolvedProps.step,
|
|
1082
|
+
autocomplete: "off",
|
|
1083
|
+
onInput: t[0] || (t[0] = (l) => o.onInput(l)),
|
|
1084
|
+
onFocus: t[1] || (t[1] = (l) => e.$emit("focus", l)),
|
|
1085
|
+
onBlur: t[2] || (t[2] = (l) => e.$emit("blur", l))
|
|
1086
|
+
}, null, 40, rt),
|
|
1087
|
+
p(e.$slots, "after", {}, void 0, !0)
|
|
1088
|
+
]),
|
|
1089
|
+
_: 3
|
|
1090
|
+
}, 16);
|
|
1091
|
+
}
|
|
1092
|
+
const lt = /* @__PURE__ */ f(st, [["render", nt], ["__scopeId", "data-v-7d668f70"]]), it = {
|
|
1093
|
+
components: {
|
|
1094
|
+
InputBase: S
|
|
1095
|
+
},
|
|
1096
|
+
mixins: [y],
|
|
1097
|
+
props: {
|
|
1098
|
+
...S.props,
|
|
1099
|
+
tagName: { type: String, default: "label" },
|
|
1100
|
+
modelValue: { type: String },
|
|
1101
|
+
placeholder: { type: String },
|
|
1102
|
+
rows: { type: Number },
|
|
1103
|
+
autoSize: { type: Boolean, default: !0 },
|
|
1104
|
+
autoFocus: { type: Boolean },
|
|
1105
|
+
readonly: { type: Boolean }
|
|
1106
|
+
},
|
|
1107
|
+
emits: [
|
|
1108
|
+
"focus",
|
|
1109
|
+
"blur",
|
|
1110
|
+
"input",
|
|
1111
|
+
"update:modelValue"
|
|
1112
|
+
],
|
|
1113
|
+
computed: {
|
|
1114
|
+
inputBaseProps() {
|
|
1115
|
+
return C(this, S);
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
watch: {
|
|
1119
|
+
modelValue: {
|
|
1120
|
+
handler() {
|
|
1121
|
+
const e = this.$refs.input;
|
|
1122
|
+
this.resolvedProps.autoSize && e && (e.style.height = "auto", e.style.height = e.scrollHeight + "px");
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
mounted() {
|
|
1127
|
+
this.$nextTick(() => {
|
|
1128
|
+
const e = this.$refs.input;
|
|
1129
|
+
this.resolvedProps.autoFocus && e.focus(), this.resolvedProps.autoSize && (e.style.height = e.scrollHeight + "px", e.style.overflowY = "hidden");
|
|
1130
|
+
});
|
|
1131
|
+
},
|
|
1132
|
+
methods: {
|
|
1133
|
+
onInput(e) {
|
|
1134
|
+
this.$emit("update:modelValue", e.target.value);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}, at = ["value", "placeholder", "readonly", "disabled", "rows"];
|
|
1138
|
+
function ut(e, t, r, n, s, o) {
|
|
1139
|
+
const i = g("InputBase");
|
|
1140
|
+
return a(), v(i, I({ class: "InputTextarea" }, o.inputBaseProps, { fixedHeight: !1 }), {
|
|
1141
|
+
default: m(() => [
|
|
1142
|
+
p(e.$slots, "before", {}, void 0, !0),
|
|
1143
|
+
c("textarea", {
|
|
1144
|
+
ref: "input",
|
|
1145
|
+
value: e.resolvedProps.modelValue,
|
|
1146
|
+
placeholder: e.resolvedProps.placeholder,
|
|
1147
|
+
readonly: e.resolvedProps.readonly,
|
|
1148
|
+
disabled: e.resolvedProps.disabled,
|
|
1149
|
+
rows: e.resolvedProps.rows,
|
|
1150
|
+
resize: "none",
|
|
1151
|
+
autocomplete: "off",
|
|
1152
|
+
onInput: t[0] || (t[0] = (l) => o.onInput(l)),
|
|
1153
|
+
onFocus: t[1] || (t[1] = (l) => e.$emit("focus", l)),
|
|
1154
|
+
onBlur: t[2] || (t[2] = (l) => e.$emit("blur", l))
|
|
1155
|
+
}, null, 40, at),
|
|
1156
|
+
p(e.$slots, "after", {}, void 0, !0)
|
|
1157
|
+
]),
|
|
1158
|
+
_: 3
|
|
1159
|
+
}, 16);
|
|
1160
|
+
}
|
|
1161
|
+
const dt = /* @__PURE__ */ f(it, [["render", ut], ["__scopeId", "data-v-99ad4e2b"]]), pt = {
|
|
1162
|
+
components: {
|
|
1163
|
+
Btn: E
|
|
1164
|
+
},
|
|
1165
|
+
mixins: [y],
|
|
1166
|
+
props: {
|
|
1167
|
+
...E.props,
|
|
1168
|
+
to: { required: !0 },
|
|
1169
|
+
baseProps: { type: Object },
|
|
1170
|
+
activeProps: { type: Object },
|
|
1171
|
+
exactActiveProps: { type: Object }
|
|
1172
|
+
},
|
|
1173
|
+
methods: {
|
|
1174
|
+
actualProps(e, t) {
|
|
1175
|
+
return {
|
|
1176
|
+
...C(this, E),
|
|
1177
|
+
...this.resolvedProps.baseProps,
|
|
1178
|
+
...e ? this.resolvedProps.activeProps : {},
|
|
1179
|
+
...t ? this.resolvedProps.exactActiveProps : {}
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
function ft(e, t, r, n, s, o) {
|
|
1185
|
+
const i = g("Btn"), l = g("RouterLink");
|
|
1186
|
+
return a(), v(l, {
|
|
1187
|
+
to: e.resolvedProps.to,
|
|
1188
|
+
custom: ""
|
|
1189
|
+
}, {
|
|
1190
|
+
default: m(({ href: u, navigate: k, isActive: z, isExactActive: T }) => [
|
|
1191
|
+
A(i, I({
|
|
1192
|
+
tagName: "a",
|
|
1193
|
+
href: u
|
|
1194
|
+
}, o.actualProps(z, T), { onClick: k }), null, 16, ["href", "onClick"])
|
|
1195
|
+
]),
|
|
1196
|
+
_: 1
|
|
1197
|
+
}, 8, ["to"]);
|
|
1198
|
+
}
|
|
1199
|
+
const ct = /* @__PURE__ */ f(pt, [["render", ft]]);
|
|
1200
|
+
function M(e, t, r) {
|
|
1201
|
+
return Math.max(t, Math.min(r, e));
|
|
1202
|
+
}
|
|
1203
|
+
function vt(e, t, r) {
|
|
1204
|
+
if (!r)
|
|
1205
|
+
return e;
|
|
1206
|
+
const n = Math.round((e - t) / r);
|
|
1207
|
+
return t + n * r;
|
|
1208
|
+
}
|
|
1209
|
+
const yt = {
|
|
1210
|
+
components: {
|
|
1211
|
+
Bubble: L
|
|
1212
|
+
},
|
|
1213
|
+
mixins: [y],
|
|
1214
|
+
props: {
|
|
1215
|
+
tagName: { type: String, default: "div" },
|
|
1216
|
+
modelValue: { type: Number },
|
|
1217
|
+
min: { type: Number, default: 0 },
|
|
1218
|
+
max: { type: Number, default: 100 },
|
|
1219
|
+
step: { type: Number, default: 1 },
|
|
1220
|
+
tone: { type: String },
|
|
1221
|
+
size: { type: String },
|
|
1222
|
+
round: { type: Boolean, default: !1 },
|
|
1223
|
+
flat: { type: Boolean, default: !1 },
|
|
1224
|
+
outline: { type: Boolean, default: !1 },
|
|
1225
|
+
translucent: { type: Boolean, default: !1 },
|
|
1226
|
+
disabled: { type: Boolean },
|
|
1227
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
1228
|
+
forceHover: { type: Boolean, default: !1 },
|
|
1229
|
+
focusOverrides: { type: Object },
|
|
1230
|
+
hoverOverrides: { type: Object },
|
|
1231
|
+
tooltip: { type: String, default: "off" },
|
|
1232
|
+
formatTooltip: { type: Function },
|
|
1233
|
+
tooltipTone: { type: String, default: "inverse" },
|
|
1234
|
+
scale: { type: Array },
|
|
1235
|
+
formatScale: { type: Function },
|
|
1236
|
+
tickStyle: { type: Function },
|
|
1237
|
+
snapThreshold: { type: Number },
|
|
1238
|
+
fillStyle: {
|
|
1239
|
+
type: String,
|
|
1240
|
+
default: "track",
|
|
1241
|
+
validator: (e) => ["track", "inset", "none"].includes(e)
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
emits: [
|
|
1245
|
+
"update:modelValue"
|
|
1246
|
+
],
|
|
1247
|
+
data() {
|
|
1248
|
+
return {
|
|
1249
|
+
hover: !1,
|
|
1250
|
+
focus: !1,
|
|
1251
|
+
dragging: !1,
|
|
1252
|
+
valuePulse: !1,
|
|
1253
|
+
valuePulseTimer: null,
|
|
1254
|
+
tooltipEditing: !1,
|
|
1255
|
+
tooltipDraft: ""
|
|
1256
|
+
};
|
|
1257
|
+
},
|
|
1258
|
+
computed: {
|
|
1259
|
+
currentValue() {
|
|
1260
|
+
const { modelValue: e, min: t } = this.resolvedProps;
|
|
1261
|
+
return e == null ? t : Number(e);
|
|
1262
|
+
},
|
|
1263
|
+
ratio() {
|
|
1264
|
+
const { min: e, max: t } = this.resolvedProps, r = t - e;
|
|
1265
|
+
return r ? (this.clampedValue - e) / r : 0;
|
|
1266
|
+
},
|
|
1267
|
+
clampedValue() {
|
|
1268
|
+
const { min: e, max: t } = this.resolvedProps;
|
|
1269
|
+
return M(this.currentValue, e, t);
|
|
1270
|
+
},
|
|
1271
|
+
scaleTicks() {
|
|
1272
|
+
const { scale: e, min: t, max: r } = this.resolvedProps;
|
|
1273
|
+
return e?.length ? e.filter((n) => n >= t && n <= r) : [];
|
|
1274
|
+
},
|
|
1275
|
+
tooltipShown() {
|
|
1276
|
+
const { tooltip: e } = this.resolvedProps;
|
|
1277
|
+
return e === "visible" ? !0 : e !== "dynamic" ? !1 : this.hover || this.dragging || this.focus || this.valuePulse || this.tooltipEditing;
|
|
1278
|
+
},
|
|
1279
|
+
tooltipText() {
|
|
1280
|
+
return this.formatValue(this.clampedValue, this.resolvedProps.formatTooltip);
|
|
1281
|
+
},
|
|
1282
|
+
baseStyle() {
|
|
1283
|
+
const { resolvedProps: e } = this;
|
|
1284
|
+
return {
|
|
1285
|
+
tone: e.tone,
|
|
1286
|
+
size: e.size,
|
|
1287
|
+
round: e.round,
|
|
1288
|
+
outline: e.outline,
|
|
1289
|
+
flat: e.flat,
|
|
1290
|
+
translucent: e.translucent
|
|
1291
|
+
};
|
|
1292
|
+
},
|
|
1293
|
+
effectiveStyle() {
|
|
1294
|
+
const {
|
|
1295
|
+
baseStyle: e,
|
|
1296
|
+
hoverOverrides: t = {},
|
|
1297
|
+
focusOverrides: r = {},
|
|
1298
|
+
hover: n,
|
|
1299
|
+
focus: s,
|
|
1300
|
+
resolvedProps: o
|
|
1301
|
+
} = this, { forceHover: i, forceFocus: l } = o, u = Object.assign({}, e);
|
|
1302
|
+
return (n || i) && Object.assign(u, t), (s || l) && Object.assign(u, r), u;
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
watch: {
|
|
1306
|
+
clampedValue() {
|
|
1307
|
+
this.resolvedProps.tooltip === "dynamic" && (this.valuePulse = !0, clearTimeout(this.valuePulseTimer), this.valuePulseTimer = setTimeout(() => {
|
|
1308
|
+
this.valuePulse = !1;
|
|
1309
|
+
}, 1e3));
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
beforeUnmount() {
|
|
1313
|
+
clearTimeout(this.valuePulseTimer), this.stopDrag();
|
|
1314
|
+
},
|
|
1315
|
+
methods: {
|
|
1316
|
+
snap(e) {
|
|
1317
|
+
const { scale: t, snapThreshold: r } = this.resolvedProps;
|
|
1318
|
+
if (!t?.length || r == null)
|
|
1319
|
+
return e;
|
|
1320
|
+
let n = null, s = 1 / 0;
|
|
1321
|
+
for (const o of t) {
|
|
1322
|
+
const i = Math.abs(o - e);
|
|
1323
|
+
i <= r && i < s && (s = i, n = o);
|
|
1324
|
+
}
|
|
1325
|
+
return n ?? e;
|
|
1326
|
+
},
|
|
1327
|
+
normalize(e) {
|
|
1328
|
+
const { min: t, max: r, step: n } = this.resolvedProps;
|
|
1329
|
+
return this.snap(vt(M(e, t, r), t, n));
|
|
1330
|
+
},
|
|
1331
|
+
valueFromClientX(e) {
|
|
1332
|
+
const t = this.$refs.trackArea, r = this.$refs.knob;
|
|
1333
|
+
if (!t || !r)
|
|
1334
|
+
return this.clampedValue;
|
|
1335
|
+
const n = t.getBoundingClientRect(), s = r.getBoundingClientRect(), o = n.width - s.width, i = e - n.left - s.width / 2, l = o ? M(i / o, 0, 1) : 0, { min: u, max: k } = this.resolvedProps;
|
|
1336
|
+
return this.normalize(u + l * (k - u));
|
|
1337
|
+
},
|
|
1338
|
+
setValue(e) {
|
|
1339
|
+
const t = this.normalize(e);
|
|
1340
|
+
t !== this.currentValue && this.$emit("update:modelValue", t);
|
|
1341
|
+
},
|
|
1342
|
+
setPreciseValue(e) {
|
|
1343
|
+
const { min: t, max: r } = this.resolvedProps, n = M(e, t, r);
|
|
1344
|
+
n !== this.currentValue && this.$emit("update:modelValue", n);
|
|
1345
|
+
},
|
|
1346
|
+
tickElementStyle(e) {
|
|
1347
|
+
const { min: t, max: r, tickStyle: n } = this.resolvedProps, s = r - t, o = s ? (e - t) / s : 0;
|
|
1348
|
+
return Object.assign(
|
|
1349
|
+
{ "--Slider-ratio": o },
|
|
1350
|
+
n?.(e)
|
|
1351
|
+
);
|
|
1352
|
+
},
|
|
1353
|
+
scaleLabel(e) {
|
|
1354
|
+
return this.formatValue(e, this.resolvedProps.formatScale);
|
|
1355
|
+
},
|
|
1356
|
+
formatValue(e, t) {
|
|
1357
|
+
return t ? t(e) : String(e);
|
|
1358
|
+
},
|
|
1359
|
+
onPointerDown(e) {
|
|
1360
|
+
this.resolvedProps.disabled || e.button !== 0 || (this.dragging = !0, this.setValue(this.valueFromClientX(e.clientX)), window.addEventListener("pointermove", this.onPointerMove, { passive: !1 }), window.addEventListener("pointerup", this.onPointerUp), window.addEventListener("pointercancel", this.onPointerUp), this.$refs.hitArea?.setPointerCapture(e.pointerId));
|
|
1361
|
+
},
|
|
1362
|
+
onPointerMove(e) {
|
|
1363
|
+
this.dragging && (e.preventDefault(), this.setValue(this.valueFromClientX(e.clientX)));
|
|
1364
|
+
},
|
|
1365
|
+
onPointerUp(e) {
|
|
1366
|
+
if (!this.dragging)
|
|
1367
|
+
return;
|
|
1368
|
+
this.dragging = !1, this.stopDrag();
|
|
1369
|
+
const t = this.$refs.hitArea;
|
|
1370
|
+
t?.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId);
|
|
1371
|
+
},
|
|
1372
|
+
stopDrag() {
|
|
1373
|
+
window.removeEventListener("pointermove", this.onPointerMove), window.removeEventListener("pointerup", this.onPointerUp), window.removeEventListener("pointercancel", this.onPointerUp);
|
|
1374
|
+
},
|
|
1375
|
+
startTooltipEdit() {
|
|
1376
|
+
this.resolvedProps.disabled || (this.tooltipEditing = !0, this.tooltipDraft = String(this.clampedValue), this.$nextTick(() => {
|
|
1377
|
+
const e = this.$refs.tooltipInput;
|
|
1378
|
+
e?.focus(), e?.select();
|
|
1379
|
+
}));
|
|
1380
|
+
},
|
|
1381
|
+
onTooltipDraftInput(e) {
|
|
1382
|
+
this.tooltipDraft = e.target.value;
|
|
1383
|
+
},
|
|
1384
|
+
commitTooltipEdit() {
|
|
1385
|
+
if (!this.tooltipEditing)
|
|
1386
|
+
return;
|
|
1387
|
+
const e = Number(this.tooltipDraft);
|
|
1388
|
+
this.tooltipDraft !== "" && !Number.isNaN(e) && this.setPreciseValue(e), this.tooltipEditing = !1;
|
|
1389
|
+
},
|
|
1390
|
+
onTooltipInputKeydown(e) {
|
|
1391
|
+
if (e.key === "Enter") {
|
|
1392
|
+
e.preventDefault(), this.$refs.tooltipInput?.blur();
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
e.key === "Escape" && (e.preventDefault(), this.tooltipEditing = !1);
|
|
1396
|
+
},
|
|
1397
|
+
onKeydown(e) {
|
|
1398
|
+
if (this.resolvedProps.disabled)
|
|
1399
|
+
return;
|
|
1400
|
+
const { min: t, max: r, step: n } = this.resolvedProps, s = {
|
|
1401
|
+
ArrowLeft: -n,
|
|
1402
|
+
ArrowDown: -n,
|
|
1403
|
+
ArrowRight: n,
|
|
1404
|
+
ArrowUp: n
|
|
1405
|
+
}[e.key];
|
|
1406
|
+
if (s) {
|
|
1407
|
+
e.preventDefault(), this.setValue(this.clampedValue + s);
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1410
|
+
e.key === "Home" && (e.preventDefault(), this.setValue(t)), e.key === "End" && (e.preventDefault(), this.setValue(r));
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
}, ht = {
|
|
1414
|
+
ref: "hitArea",
|
|
1415
|
+
class: "HitArea"
|
|
1416
|
+
}, mt = {
|
|
1417
|
+
ref: "trackArea",
|
|
1418
|
+
class: "TrackArea"
|
|
1419
|
+
}, bt = {
|
|
1420
|
+
ref: "rail",
|
|
1421
|
+
class: "Track"
|
|
1422
|
+
}, gt = {
|
|
1423
|
+
ref: "knob",
|
|
1424
|
+
class: "Knob"
|
|
1425
|
+
}, Pt = { class: "TooltipContent" }, St = ["value", "min", "max"], $t = {
|
|
1426
|
+
key: 0,
|
|
1427
|
+
class: "Scale"
|
|
1428
|
+
}, kt = ["data-value"], Bt = { class: "Label" };
|
|
1429
|
+
function wt(e, t, r, n, s, o) {
|
|
1430
|
+
const i = g("Bubble");
|
|
1431
|
+
return a(), v($(e.resolvedProps.tagName), {
|
|
1432
|
+
class: h(["Slider InputElement", [
|
|
1433
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
1434
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
1435
|
+
{
|
|
1436
|
+
"Slider-outline": o.effectiveStyle.outline,
|
|
1437
|
+
"Slider-round": o.effectiveStyle.round,
|
|
1438
|
+
"Slider-flat": o.effectiveStyle.flat,
|
|
1439
|
+
"Slider-translucent": o.effectiveStyle.translucent,
|
|
1440
|
+
"Slider-disabled": e.resolvedProps.disabled,
|
|
1441
|
+
"Slider-forceFocus": e.resolvedProps.forceFocus,
|
|
1442
|
+
"Slider-forceHover": e.resolvedProps.forceHover,
|
|
1443
|
+
"Slider-dragging": s.dragging
|
|
1444
|
+
}
|
|
1445
|
+
]]),
|
|
1446
|
+
role: "slider",
|
|
1447
|
+
"aria-valuemin": e.resolvedProps.min,
|
|
1448
|
+
"aria-valuemax": e.resolvedProps.max,
|
|
1449
|
+
"aria-valuenow": o.currentValue,
|
|
1450
|
+
"aria-disabled": e.resolvedProps.disabled || void 0,
|
|
1451
|
+
tabindex: "0",
|
|
1452
|
+
style: j({ "--Slider-ratio": o.ratio }),
|
|
1453
|
+
onPointerdown: o.onPointerDown,
|
|
1454
|
+
onKeydown: o.onKeydown,
|
|
1455
|
+
onMouseenter: t[7] || (t[7] = (l) => s.hover = !0),
|
|
1456
|
+
onMouseleave: t[8] || (t[8] = (l) => s.hover = !1),
|
|
1457
|
+
onFocusin: t[9] || (t[9] = (l) => s.focus = !0),
|
|
1458
|
+
onFocusout: t[10] || (t[10] = (l) => s.focus = !1)
|
|
1459
|
+
}, {
|
|
1460
|
+
default: m(() => [
|
|
1461
|
+
c("div", ht, null, 512),
|
|
1462
|
+
c("div", mt, [
|
|
1463
|
+
c("div", bt, [
|
|
1464
|
+
c("div", {
|
|
1465
|
+
class: h(["Fill", `Slider-fill-${r.fillStyle}`])
|
|
1466
|
+
}, null, 2)
|
|
1467
|
+
], 512),
|
|
1468
|
+
c("div", gt, [
|
|
1469
|
+
o.tooltipShown ? (a(), v(i, {
|
|
1470
|
+
key: 0,
|
|
1471
|
+
class: h(`Tooltip tone-${e.resolvedProps.tooltipTone}`),
|
|
1472
|
+
dir: "top",
|
|
1473
|
+
align: "center",
|
|
1474
|
+
onPointerdown: t[6] || (t[6] = B(() => {
|
|
1475
|
+
}, ["stop"]))
|
|
1476
|
+
}, {
|
|
1477
|
+
default: m(() => [
|
|
1478
|
+
c("div", Pt, [
|
|
1479
|
+
s.tooltipEditing ? (a(), d("input", {
|
|
1480
|
+
key: 1,
|
|
1481
|
+
ref: "tooltipInput",
|
|
1482
|
+
class: "TooltipInput",
|
|
1483
|
+
type: "number",
|
|
1484
|
+
value: s.tooltipDraft,
|
|
1485
|
+
min: e.resolvedProps.min,
|
|
1486
|
+
max: e.resolvedProps.max,
|
|
1487
|
+
step: "any",
|
|
1488
|
+
onInput: t[1] || (t[1] = (...l) => o.onTooltipDraftInput && o.onTooltipDraftInput(...l)),
|
|
1489
|
+
onKeydown: t[2] || (t[2] = B((...l) => o.onTooltipInputKeydown && o.onTooltipInputKeydown(...l), ["stop"])),
|
|
1490
|
+
onBlur: t[3] || (t[3] = (...l) => o.commitTooltipEdit && o.commitTooltipEdit(...l)),
|
|
1491
|
+
onClick: t[4] || (t[4] = B(() => {
|
|
1492
|
+
}, ["stop"])),
|
|
1493
|
+
onPointerdown: t[5] || (t[5] = B(() => {
|
|
1494
|
+
}, ["stop"]))
|
|
1495
|
+
}, null, 40, St)) : (a(), d("div", {
|
|
1496
|
+
key: 0,
|
|
1497
|
+
class: "TooltipBody",
|
|
1498
|
+
onClick: t[0] || (t[0] = B((...l) => o.startTooltipEdit && o.startTooltipEdit(...l), ["stop"]))
|
|
1499
|
+
}, P(o.tooltipText), 1))
|
|
1500
|
+
])
|
|
1501
|
+
]),
|
|
1502
|
+
_: 1
|
|
1503
|
+
}, 8, ["class"])) : b("", !0)
|
|
1504
|
+
], 512)
|
|
1505
|
+
], 512),
|
|
1506
|
+
o.scaleTicks.length ? (a(), d("div", $t, [
|
|
1507
|
+
(a(!0), d(w, null, F(o.scaleTicks, (l) => (a(), d("div", {
|
|
1508
|
+
key: l,
|
|
1509
|
+
class: "Tick",
|
|
1510
|
+
"data-value": l,
|
|
1511
|
+
style: j(o.tickElementStyle(l))
|
|
1512
|
+
}, [
|
|
1513
|
+
t[11] || (t[11] = c("div", { class: "Mark" }, null, -1)),
|
|
1514
|
+
c("div", Bt, P(o.scaleLabel(l)), 1)
|
|
1515
|
+
], 12, kt))), 128))
|
|
1516
|
+
])) : b("", !0)
|
|
1517
|
+
]),
|
|
1518
|
+
_: 1
|
|
1519
|
+
}, 40, ["class", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "style", "onPointerdown", "onKeydown"]);
|
|
1520
|
+
}
|
|
1521
|
+
const Tt = /* @__PURE__ */ f(yt, [["render", wt], ["__scopeId", "data-v-7a56ca8c"]]), It = {
|
|
1522
|
+
mixins: [y],
|
|
1523
|
+
props: {
|
|
1524
|
+
dir: { type: String, default: "top" },
|
|
1525
|
+
type: { type: String, default: "start" }
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
function Ct(e, t, r, n, s, o) {
|
|
1529
|
+
return a(), d("svg", {
|
|
1530
|
+
class: h(["TabCap", [
|
|
1531
|
+
`TabCap-${e.resolvedProps.dir}`,
|
|
1532
|
+
`TabCap-${e.resolvedProps.type}`
|
|
1533
|
+
]]),
|
|
1534
|
+
viewBox: "0 0 32 32",
|
|
1535
|
+
preserveAspectRatio: "none"
|
|
1536
|
+
}, [...t[0] || (t[0] = [
|
|
1537
|
+
c("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
|
|
1538
|
+
])], 2);
|
|
1539
|
+
}
|
|
1540
|
+
const zt = /* @__PURE__ */ f(It, [["render", Ct], ["__scopeId", "data-v-697fbd68"]]), Ot = {
|
|
1541
|
+
mixins: [y],
|
|
1542
|
+
props: {
|
|
1543
|
+
modelValue: { type: Boolean },
|
|
1544
|
+
disabled: { type: Boolean },
|
|
1545
|
+
tone: { type: String },
|
|
1546
|
+
activeTone: { type: String },
|
|
1547
|
+
size: { type: String },
|
|
1548
|
+
round: { type: Boolean, default: !1 },
|
|
1549
|
+
flat: { type: Boolean, default: !1 },
|
|
1550
|
+
outline: { type: Boolean, default: !1 },
|
|
1551
|
+
translucent: { type: Boolean, default: !1 },
|
|
1552
|
+
forceFocus: { type: Boolean, default: !1 },
|
|
1553
|
+
forceHover: { type: Boolean, default: !1 },
|
|
1554
|
+
focusOverrides: { type: Object },
|
|
1555
|
+
hoverOverrides: { type: Object }
|
|
1556
|
+
},
|
|
1557
|
+
emits: [
|
|
1558
|
+
"update:modelValue"
|
|
1559
|
+
],
|
|
1560
|
+
data() {
|
|
1561
|
+
return {
|
|
1562
|
+
hover: !1,
|
|
1563
|
+
focus: !1
|
|
1564
|
+
};
|
|
1565
|
+
},
|
|
1566
|
+
computed: {
|
|
1567
|
+
isActive() {
|
|
1568
|
+
return !!this.resolvedProps.modelValue;
|
|
1569
|
+
},
|
|
1570
|
+
baseStyle() {
|
|
1571
|
+
const { resolvedProps: e } = this;
|
|
1572
|
+
return {
|
|
1573
|
+
tone: (this.isActive ? e.activeTone : e.tone) ?? e.tone,
|
|
1574
|
+
size: e.size,
|
|
1575
|
+
round: e.round,
|
|
1576
|
+
outline: e.outline,
|
|
1577
|
+
flat: e.flat,
|
|
1578
|
+
translucent: e.translucent
|
|
1579
|
+
};
|
|
1580
|
+
},
|
|
1581
|
+
effectiveStyle() {
|
|
1582
|
+
const {
|
|
1583
|
+
baseStyle: e,
|
|
1584
|
+
hoverOverrides: t = {},
|
|
1585
|
+
focusOverrides: r = {},
|
|
1586
|
+
hover: n,
|
|
1587
|
+
focus: s,
|
|
1588
|
+
resolvedProps: o
|
|
1589
|
+
} = this, { forceHover: i, forceFocus: l } = o, u = Object.assign({}, e);
|
|
1590
|
+
return (n || i) && Object.assign(u, t), (s || l) && Object.assign(u, r), u;
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
methods: {
|
|
1594
|
+
onChange(e) {
|
|
1595
|
+
this.$emit("update:modelValue", e.target.checked);
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
}, Vt = ["checked", "disabled"];
|
|
1599
|
+
function Ft(e, t, r, n, s, o) {
|
|
1600
|
+
return a(), d("label", {
|
|
1601
|
+
class: h(["Toggle InputElement", [
|
|
1602
|
+
o.effectiveStyle.tone && `tone-${o.effectiveStyle.tone}`,
|
|
1603
|
+
o.effectiveStyle.size && `input-size-${o.effectiveStyle.size}`,
|
|
1604
|
+
{
|
|
1605
|
+
"Toggle-active": !!r.modelValue,
|
|
1606
|
+
"Toggle-outline": o.effectiveStyle.outline,
|
|
1607
|
+
"Toggle-round": o.effectiveStyle.round,
|
|
1608
|
+
"Toggle-flat": o.effectiveStyle.flat,
|
|
1609
|
+
"Toggle-translucent": o.effectiveStyle.translucent,
|
|
1610
|
+
"Toggle-disabled": e.resolvedProps.disabled,
|
|
1611
|
+
"Toggle-forceFocus": e.resolvedProps.forceFocus,
|
|
1612
|
+
"Toggle-forceHover": e.resolvedProps.forceHover
|
|
1613
|
+
}
|
|
1614
|
+
]]),
|
|
1615
|
+
tabindex: "0",
|
|
1616
|
+
onMouseenter: t[1] || (t[1] = (i) => s.hover = !0),
|
|
1617
|
+
onMouseleave: t[2] || (t[2] = (i) => s.hover = !1),
|
|
1618
|
+
onFocusin: t[3] || (t[3] = (i) => s.focus = !0),
|
|
1619
|
+
onFocusout: t[4] || (t[4] = (i) => s.focus = !1)
|
|
1620
|
+
}, [
|
|
1621
|
+
c("input", {
|
|
1622
|
+
type: "checkbox",
|
|
1623
|
+
checked: e.resolvedProps.modelValue,
|
|
1624
|
+
disabled: e.resolvedProps.disabled,
|
|
1625
|
+
onChange: t[0] || (t[0] = (...i) => o.onChange && o.onChange(...i))
|
|
1626
|
+
}, null, 40, Vt)
|
|
1627
|
+
], 34);
|
|
1628
|
+
}
|
|
1629
|
+
const Et = /* @__PURE__ */ f(Ot, [["render", Ft], ["__scopeId", "data-v-d71188af"]]), Mt = {
|
|
1630
|
+
mixins: [y],
|
|
1631
|
+
props: {
|
|
1632
|
+
size: { type: String },
|
|
1633
|
+
flat: { type: Boolean, default: !1 },
|
|
1634
|
+
outline: { type: Boolean, default: !1 },
|
|
1635
|
+
round: { type: Boolean, default: !1 }
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
function At(e, t, r, n, s, o) {
|
|
1639
|
+
return a(), d("div", {
|
|
1640
|
+
class: h(["ToolPanel", [
|
|
1641
|
+
e.resolvedProps.size && `ToolPanel-size-${e.resolvedProps.size}`,
|
|
1642
|
+
e.resolvedProps.size && `input-size-${e.resolvedProps.size}`,
|
|
1643
|
+
{
|
|
1644
|
+
"ToolPanel-flat": e.resolvedProps.flat,
|
|
1645
|
+
"ToolPanel-outline": e.resolvedProps.outline,
|
|
1646
|
+
"ToolPanel-round": e.resolvedProps.round
|
|
1647
|
+
}
|
|
1648
|
+
]])
|
|
1649
|
+
}, [
|
|
1650
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
1651
|
+
], 2);
|
|
1652
|
+
}
|
|
1653
|
+
const jt = /* @__PURE__ */ f(Mt, [["render", At], ["__scopeId", "data-v-9e5d1a90"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1654
|
+
__proto__: null,
|
|
1655
|
+
BaseMenu: O,
|
|
1656
|
+
Btn: E,
|
|
1657
|
+
Bubble: L,
|
|
1658
|
+
Checkbox: Pe,
|
|
1659
|
+
Chip: Be,
|
|
1660
|
+
ContextMenu: Ve,
|
|
1661
|
+
ContextPopup: V,
|
|
1662
|
+
Filler: Me,
|
|
1663
|
+
HGroup: De,
|
|
1664
|
+
InputBase: S,
|
|
1665
|
+
InputGroup: Ye,
|
|
1666
|
+
InputSelect: ot,
|
|
1667
|
+
InputText: lt,
|
|
1668
|
+
InputTextarea: dt,
|
|
1669
|
+
ModalOverlay: _,
|
|
1670
|
+
RouterBtn: ct,
|
|
1671
|
+
Slider: Tt,
|
|
1672
|
+
Tab: K,
|
|
1673
|
+
TabCap: zt,
|
|
1674
|
+
Toggle: Et,
|
|
1675
|
+
ToolPanel: jt,
|
|
1676
|
+
VGroup: N
|
|
1677
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1678
|
+
export {
|
|
1679
|
+
O as BaseMenu,
|
|
1680
|
+
E as Btn,
|
|
1681
|
+
L as Bubble,
|
|
1682
|
+
Pe as Checkbox,
|
|
1683
|
+
Be as Chip,
|
|
1684
|
+
Ve as ContextMenu,
|
|
1685
|
+
V as ContextPopup,
|
|
1686
|
+
Me as Filler,
|
|
1687
|
+
pe as GlyphCheck,
|
|
1688
|
+
ye as GlyphXmark,
|
|
1689
|
+
De as HGroup,
|
|
1690
|
+
S as InputBase,
|
|
1691
|
+
Ye as InputGroup,
|
|
1692
|
+
ot as InputSelect,
|
|
1693
|
+
lt as InputText,
|
|
1694
|
+
dt as InputTextarea,
|
|
1695
|
+
_ as ModalOverlay,
|
|
1696
|
+
ct as RouterBtn,
|
|
1697
|
+
Tt as Slider,
|
|
1698
|
+
K as Tab,
|
|
1699
|
+
zt as TabCap,
|
|
1700
|
+
Et as Toggle,
|
|
1701
|
+
jt as ToolPanel,
|
|
1702
|
+
N as VGroup,
|
|
1703
|
+
Ht as standardComponents
|
|
1704
|
+
};
|