@cfasim-ui/components 0.5.0 → 0.6.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/ButtonGroup/ButtonGroup.d.ts +23 -0
- package/dist/MultiSelect/MultiSelect.d.ts +23 -0
- package/dist/{src/ParamEditor → ParamEditor}/ParamEditor.d.ts +3 -0
- package/dist/{src/ParamEditor → ParamEditor}/ParamEditorImpl.d.ts +2 -0
- package/dist/{ParamEditorImpl-B-Rd1mHs.js → ParamEditorImpl-BLZRogrw.js} +6 -2
- package/dist/TextInput/TextInput.spec.d.ts +1 -0
- package/dist/TextInput/TextInput.test.d.ts +1 -0
- package/dist/Toggle/Toggle.spec.d.ts +1 -0
- package/dist/Toggle/Toggle.test.d.ts +1 -0
- package/dist/ToggleGroup/ToggleGroup.d.ts +26 -0
- package/dist/ToggleGroup/ToggleGroup.spec.d.ts +1 -0
- package/dist/ToggleGroup/ToggleGroup.test.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/{src/index.d.ts → index.d.ts} +5 -0
- package/dist/index.js +499 -300
- package/package.json +2 -2
- /package/dist/{src/Box → Box}/Box.d.ts +0 -0
- /package/dist/{src/Box → Box}/Box.spec.d.ts +0 -0
- /package/dist/{src/Box → Box}/Box.test.d.ts +0 -0
- /package/dist/{src/Button → Button}/Button.d.ts +0 -0
- /package/dist/{src/Button → Button}/Button.spec.d.ts +0 -0
- /package/dist/{src/Button → Button}/Button.test.d.ts +0 -0
- /package/dist/{src/Container/Container.spec.d.ts → ButtonGroup/ButtonGroup.spec.d.ts} +0 -0
- /package/dist/{src/Container/Container.test.d.ts → ButtonGroup/ButtonGroup.test.d.ts} +0 -0
- /package/dist/{src/Container → Container}/Container.d.ts +0 -0
- /package/dist/{src/Expander/Expander.spec.d.ts → Container/Container.spec.d.ts} +0 -0
- /package/dist/{src/Grid/Grid.spec.d.ts → Container/Container.test.d.ts} +0 -0
- /package/dist/{src/Expander → Expander}/Expander.d.ts +0 -0
- /package/dist/{src/Grid/Grid.test.d.ts → Expander/Expander.spec.d.ts} +0 -0
- /package/dist/{src/Grid → Grid}/Grid.d.ts +0 -0
- /package/dist/{src/Hint/Hint.spec.d.ts → Grid/Grid.spec.d.ts} +0 -0
- /package/dist/{src/Hint/Hint.test.d.ts → Grid/Grid.test.d.ts} +0 -0
- /package/dist/{src/Hint → Hint}/Hint.d.ts +0 -0
- /package/dist/{src/Icon/Icon.spec.d.ts → Hint/Hint.spec.d.ts} +0 -0
- /package/dist/{src/Icon/Icon.test.d.ts → Hint/Hint.test.d.ts} +0 -0
- /package/dist/{src/Icon → Icon}/Icon.d.ts +0 -0
- /package/dist/{src/NumberInput/NumberInput.spec.d.ts → Icon/Icon.spec.d.ts} +0 -0
- /package/dist/{src/NumberInput/NumberInput.test.d.ts → Icon/Icon.test.d.ts} +0 -0
- /package/dist/{src/Icon → Icon}/defaultIcons.d.ts +0 -0
- /package/dist/{src/Icon → Icon}/registry.d.ts +0 -0
- /package/dist/{src/LightDarkToggle → LightDarkToggle}/LightDarkToggle.d.ts +0 -0
- /package/dist/{src/ParamEditor/ParamEditor.spec.d.ts → MultiSelect/MultiSelect.spec.d.ts} +0 -0
- /package/dist/{src/ParamEditor/ParamEditor.test.d.ts → MultiSelect/MultiSelect.test.d.ts} +0 -0
- /package/dist/{src/NumberInput → NumberInput}/NumberInput.d.ts +0 -0
- /package/dist/{src/SelectBox/SelectBox.spec.d.ts → NumberInput/NumberInput.spec.d.ts} +0 -0
- /package/dist/{src/SelectBox/SelectBox.test.d.ts → NumberInput/NumberInput.test.d.ts} +0 -0
- /package/dist/{src/SidebarLayout/SidebarLayout.test.d.ts → ParamEditor/ParamEditor.spec.d.ts} +0 -0
- /package/dist/{src/Spinner/Spinner.spec.d.ts → ParamEditor/ParamEditor.test.d.ts} +0 -0
- /package/dist/{src/SelectBox → SelectBox}/SelectBox.d.ts +0 -0
- /package/dist/{src/TextInput/TextInput.spec.d.ts → SelectBox/SelectBox.spec.d.ts} +0 -0
- /package/dist/{src/TextInput/TextInput.test.d.ts → SelectBox/SelectBox.test.d.ts} +0 -0
- /package/dist/{src/SidebarLayout → SidebarLayout}/SidebarLayout.d.ts +0 -0
- /package/dist/{src/Toggle/Toggle.spec.d.ts → SidebarLayout/SidebarLayout.test.d.ts} +0 -0
- /package/dist/{src/Spinner → Spinner}/Spinner.d.ts +0 -0
- /package/dist/{src/Toggle/Toggle.test.d.ts → Spinner/Spinner.spec.d.ts} +0 -0
- /package/dist/{src/TextInput → TextInput}/TextInput.d.ts +0 -0
- /package/dist/{src/Toggle → Toggle}/Toggle.d.ts +0 -0
- /package/dist/{src/_internal → _internal}/gap.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, t as r } from "./SelectBox-Bqsx-5ZB.js";
|
|
2
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineAsyncComponent as f, defineComponent as p, getCurrentInstance as m, mergeModels as h,
|
|
3
|
-
import { CollapsibleContent as
|
|
2
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineAsyncComponent as f, defineComponent as p, getCurrentInstance as m, mergeModels as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as ee, onUnmounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useModel as D, vModelText as O, watch as k, withCtx as A, withDirectives as te, withKeys as j, withModifiers as M } from "vue";
|
|
3
|
+
import { CollapsibleContent as ne, CollapsibleRoot as re, CollapsibleTrigger as ie, ComboboxAnchor as N, ComboboxContent as P, ComboboxEmpty as F, ComboboxInput as ae, ComboboxItem as I, ComboboxItemIndicator as L, ComboboxPortal as R, ComboboxRoot as oe, ComboboxTrigger as se, ComboboxViewport as z, SliderRange as ce, SliderRoot as le, SliderThumb as ue, SliderTrack as de, SwitchRoot as B, SwitchThumb as fe, TabsIndicator as V, TabsList as H, TabsRoot as U, TabsTrigger as W, ToggleGroupItem as G, ToggleGroupRoot as pe, TooltipArrow as me, TooltipContent as he, TooltipPortal as K, TooltipProvider as ge, TooltipRoot as _e, TooltipTrigger as q, useId as J } from "reka-ui";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
5
|
+
var Y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ve = ["data-orientation", "aria-label"], ye = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
6
|
+
__name: "ButtonGroup",
|
|
7
|
+
props: {
|
|
8
|
+
ariaLabel: {},
|
|
9
|
+
orientation: { default: "horizontal" }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (t, n) => (b(), c("div", {
|
|
13
|
+
class: "button-group",
|
|
14
|
+
role: "group",
|
|
15
|
+
"data-orientation": e.orientation,
|
|
16
|
+
"aria-label": e.ariaLabel
|
|
17
|
+
}, [C(t.$slots, "default", {}, void 0, !0)], 8, ve));
|
|
18
|
+
}
|
|
19
|
+
}), [["__scopeId", "data-v-f3bd45a3"]]), X = {
|
|
6
20
|
none: "0",
|
|
7
21
|
small: "var(--space-2)",
|
|
8
22
|
medium: "var(--space-4)",
|
|
9
23
|
large: "var(--space-6)"
|
|
10
24
|
};
|
|
11
|
-
function
|
|
12
|
-
return e == null ?
|
|
25
|
+
function be(e, t = "medium") {
|
|
26
|
+
return e == null ? X[t] : e in X ? X[e] : e;
|
|
13
27
|
}
|
|
14
28
|
//#endregion
|
|
15
29
|
//#region src/Container/Container.vue
|
|
16
|
-
var
|
|
30
|
+
var xe = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
17
31
|
__name: "Container",
|
|
18
32
|
props: {
|
|
19
33
|
border: { type: Boolean },
|
|
@@ -22,23 +36,23 @@ var W = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
|
22
36
|
gap: {}
|
|
23
37
|
},
|
|
24
38
|
setup(e) {
|
|
25
|
-
let t = e, n = a(() =>
|
|
39
|
+
let t = e, n = a(() => be(t.gap)), r = a(() => {
|
|
26
40
|
let e = t.height;
|
|
27
41
|
if (e != null) return typeof e == "number" ? `${e}px` : e;
|
|
28
42
|
});
|
|
29
|
-
return (t, i) => (
|
|
30
|
-
class:
|
|
43
|
+
return (t, i) => (b(), c("div", {
|
|
44
|
+
class: _(["container", {
|
|
31
45
|
"container-border": e.border,
|
|
32
46
|
"container-horizontal": e.horizontal,
|
|
33
47
|
"container-scrollable": e.height != null
|
|
34
48
|
}]),
|
|
35
|
-
style:
|
|
49
|
+
style: v({
|
|
36
50
|
gap: n.value,
|
|
37
51
|
height: r.value
|
|
38
52
|
})
|
|
39
|
-
}, [
|
|
53
|
+
}, [C(t.$slots, "default", {}, void 0, !0)], 6));
|
|
40
54
|
}
|
|
41
|
-
}), [["__scopeId", "data-v-bff01edb"]]),
|
|
55
|
+
}), [["__scopeId", "data-v-bff01edb"]]), Se = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
42
56
|
__name: "Expander",
|
|
43
57
|
props: /* @__PURE__ */ h({ label: {} }, {
|
|
44
58
|
open: {
|
|
@@ -49,51 +63,51 @@ var W = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
|
49
63
|
}),
|
|
50
64
|
emits: ["update:open"],
|
|
51
65
|
setup(e) {
|
|
52
|
-
let t =
|
|
53
|
-
return (n, r) => (
|
|
66
|
+
let t = D(e, "open");
|
|
67
|
+
return (n, r) => (b(), o(E(re), {
|
|
54
68
|
open: t.value,
|
|
55
69
|
"onUpdate:open": r[0] ||= (e) => t.value = e,
|
|
56
70
|
class: "expander"
|
|
57
71
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
default:
|
|
72
|
+
default: A(() => [d(E(ie), { class: "expander-trigger" }, {
|
|
73
|
+
default: A(() => [l("span", { class: _(["expander-caret", { open: t.value }]) }, null, 2), C(n.$slots, "label", {}, () => [u(T(e.label), 1)], !0)]),
|
|
60
74
|
_: 3
|
|
61
|
-
}), d(
|
|
62
|
-
default:
|
|
75
|
+
}), d(E(ne), { class: "expander-content" }, {
|
|
76
|
+
default: A(() => [C(n.$slots, "default", {}, void 0, !0)]),
|
|
63
77
|
_: 3
|
|
64
78
|
})]),
|
|
65
79
|
_: 3
|
|
66
80
|
}, 8, ["open"]));
|
|
67
81
|
}
|
|
68
|
-
}), [["__scopeId", "data-v-39e4acd0"]]),
|
|
69
|
-
function
|
|
82
|
+
}), [["__scopeId", "data-v-39e4acd0"]]), Ce = ["data-cfasim-grid-bp"], we = "640px";
|
|
83
|
+
function Te(e) {
|
|
70
84
|
return typeof e == "number" ? `repeat(${e}, 1fr)` : e.map((e) => typeof e == "number" ? `${e}fr` : e).join(" ");
|
|
71
85
|
}
|
|
72
|
-
function
|
|
73
|
-
return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e :
|
|
86
|
+
function Ee(e) {
|
|
87
|
+
return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e : we;
|
|
74
88
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
89
|
+
var Z = /* @__PURE__ */ new Map();
|
|
90
|
+
function De(e) {
|
|
77
91
|
if (typeof document > "u") return;
|
|
78
|
-
let t =
|
|
92
|
+
let t = Z.get(e);
|
|
79
93
|
if (t) {
|
|
80
94
|
t.count++;
|
|
81
95
|
return;
|
|
82
96
|
}
|
|
83
97
|
let n = document.createElement("style");
|
|
84
|
-
n.setAttribute("data-cfasim-grid-bp", e), n.textContent = `@container (max-width: ${e}) {[data-cfasim-grid-bp="${e}"] > .grid {grid-template-columns: var(--grid-cols-small) !important;}}`, document.head.appendChild(n),
|
|
98
|
+
n.setAttribute("data-cfasim-grid-bp", e), n.textContent = `@container (max-width: ${e}) {[data-cfasim-grid-bp="${e}"] > .grid {grid-template-columns: var(--grid-cols-small) !important;}}`, document.head.appendChild(n), Z.set(e, {
|
|
85
99
|
count: 1,
|
|
86
100
|
el: n
|
|
87
101
|
});
|
|
88
102
|
}
|
|
89
|
-
function
|
|
103
|
+
function Oe(e) {
|
|
90
104
|
if (typeof document > "u") return;
|
|
91
|
-
let t =
|
|
92
|
-
t && (t.count--, t.count === 0 && (t.el.remove(),
|
|
105
|
+
let t = Z.get(e);
|
|
106
|
+
t && (t.count--, t.count === 0 && (t.el.remove(), Z.delete(e)));
|
|
93
107
|
}
|
|
94
108
|
//#endregion
|
|
95
109
|
//#region src/Grid/Grid.vue
|
|
96
|
-
var
|
|
110
|
+
var ke = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
97
111
|
__name: "Grid",
|
|
98
112
|
props: {
|
|
99
113
|
cols: {},
|
|
@@ -103,278 +117,278 @@ var Y = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
|
103
117
|
minColWidth: {}
|
|
104
118
|
},
|
|
105
119
|
setup(e) {
|
|
106
|
-
let t = e, n = a(() =>
|
|
107
|
-
s !== e && (
|
|
120
|
+
let t = e, n = a(() => be(t.gap)), r = a(() => t.minColWidth ? `repeat(auto-fit, minmax(${t.minColWidth}, 1fr))` : Te(t.cols ?? 2)), i = a(() => t.minColWidth || t.colsSmall == null ? r.value : Te(t.colsSmall)), o = a(() => Ee(t.breakpoint ?? we)), s = null, u = k(o, (e) => {
|
|
121
|
+
s !== e && (De(e), s && Oe(s), s = e);
|
|
108
122
|
}, { immediate: !0 });
|
|
109
|
-
return
|
|
110
|
-
u(), s &&= (
|
|
111
|
-
}), (e, t) => (
|
|
123
|
+
return y(() => {
|
|
124
|
+
u(), s &&= (Oe(s), null);
|
|
125
|
+
}), (e, t) => (b(), c("div", {
|
|
112
126
|
"data-cfasim-grid-bp": o.value,
|
|
113
127
|
class: "grid-wrapper"
|
|
114
128
|
}, [l("div", {
|
|
115
129
|
class: "grid",
|
|
116
|
-
style:
|
|
130
|
+
style: v({
|
|
117
131
|
gap: n.value,
|
|
118
132
|
gridTemplateColumns: r.value,
|
|
119
133
|
"--grid-cols-small": i.value
|
|
120
134
|
})
|
|
121
|
-
}, [
|
|
135
|
+
}, [C(e.$slots, "default", {}, void 0, !0)], 4)], 8, Ce));
|
|
122
136
|
}
|
|
123
|
-
}), [["__scopeId", "data-v-7ae87f0f"]]),
|
|
124
|
-
function
|
|
137
|
+
}), [["__scopeId", "data-v-7ae87f0f"]]), Ae = /* @__PURE__ */ new Map();
|
|
138
|
+
function je(e) {
|
|
125
139
|
return typeof e == "object" && e && "outline" in e ? e : { outline: e };
|
|
126
140
|
}
|
|
127
|
-
function
|
|
128
|
-
for (let [t, n] of Object.entries(e))
|
|
141
|
+
function Me(e) {
|
|
142
|
+
for (let [t, n] of Object.entries(e)) Ae.set(t, je(n));
|
|
129
143
|
}
|
|
130
|
-
function
|
|
131
|
-
let n =
|
|
144
|
+
function Ne(e, t = !1) {
|
|
145
|
+
let n = Ae.get(e);
|
|
132
146
|
if (n) return t && n.fill ? n.fill : n.outline;
|
|
133
147
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
148
|
+
function Pe(e) {
|
|
149
|
+
return Ae.has(e);
|
|
136
150
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
151
|
+
var Fe = /* @__PURE__ */ new Set();
|
|
152
|
+
function Ie(e) {
|
|
139
153
|
let t = /^[a-zA-Z_$][\w$]*$/.test(e), n = t ? e : `icon_${e.replace(/[^\w$]/g, "_")}`;
|
|
140
154
|
return ` import ${n} from "@material-symbols/svg-400/outlined/${e}.svg?component";\n import { registerIcons } from "@cfasim-ui/components";\n registerIcons(${t ? `{ ${e} }` : `{ "${e}": ${n} }`});`;
|
|
141
155
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
156
|
+
function Le(e) {
|
|
157
|
+
Fe.has(e) || (Fe.add(e), console.warn(`[cfasim-ui] Icon "${e}" is not registered — nothing will render.\nRegister it once at startup:\n\n${Ie(e)}\n\nRequires dev deps "@material-symbols/svg-400" + "vite-svg-loader".\nDocs: https://cdcgov.github.io/cfa-simulator/docs/cfasim-ui/components/icon#registering-icons`));
|
|
144
158
|
}
|
|
145
159
|
//#endregion
|
|
146
160
|
//#region ../../node_modules/.pnpm/@material-symbols+svg-400@0.44.10/node_modules/@material-symbols/svg-400/outlined/help.svg?component
|
|
147
|
-
var
|
|
148
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
149
|
-
viewBox: "0 -960 960 960"
|
|
150
|
-
};
|
|
151
|
-
function we(e, t) {
|
|
152
|
-
return y(), c("svg", Ce, [...t[0] ||= [l("path", { d: "M511-258q11-11 11-27t-11-27-27-11-27 11-11 27 11 27 27 11 27-11m-62-135h59q0-26 6.5-47.5T555-490q31-26 44-51t13-55q0-53-34.5-85T486-713q-49 0-86.5 24.5T345-621l53 20q11-28 33-43.5t52-15.5q34 0 55 18.5t21 47.5q0 22-13 41.5T508-512q-30 26-44.5 51.5T449-393m31 313q-82 0-155-31.5t-127.5-86-86-127.5T80-480q0-83 31.5-156t86-127T325-848.5 480-880q83 0 156 31.5T763-763t85.5 127T880-480q0 82-31.5 155T763-197.5t-127 86T480-80m0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140m0-340" }, null, -1)]]);
|
|
153
|
-
}
|
|
154
|
-
var Te = { render: we }, Ee = {
|
|
155
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
156
|
-
viewBox: "0 -960 960 960"
|
|
157
|
-
};
|
|
158
|
-
function De(e, t) {
|
|
159
|
-
return y(), c("svg", Ee, [...t[0] ||= [l("path", { d: "m480-121-41-37q-105.77-97.12-174.88-167.56Q195-396 154-451.5T96.5-552 80-643q0-90.15 60.5-150.58Q201-854 290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.42Q880-733.15 880-643q0 46-16.5 91T806-451.5 695.88-325.56Q626.77-255.12 521-158zm0-79q101.24-93 166.62-159.5T750.5-476t54-89.14q15.5-39.13 15.5-77.72 0-66.14-42-108.64T670.22-794q-51.52 0-95.37 31.5T504-674h-49q-26-56-69.85-88t-95.37-32Q224-794 182-751.5t-42 108.82q0 38.68 15.5 78.18t54 90T314-358t166 158m0-297" }, null, -1)]]);
|
|
160
|
-
}
|
|
161
|
-
var Oe = { render: De }, ke = {
|
|
162
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
163
|
-
viewBox: "0 -960 960 960"
|
|
164
|
-
};
|
|
165
|
-
function Ae(e, t) {
|
|
166
|
-
return y(), c("svg", ke, [...t[0] ||= [l("path", { d: "m480-121-41-37q-106-97-175-167.5t-110-126T96.5-552 80-643q0-90 60.5-150.5T290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.5T880-643q0 46-16.5 91T806-451.5t-110 126T521-158z" }, null, -1)]]);
|
|
167
|
-
}
|
|
168
|
-
var je = { render: Ae }, Me = {
|
|
169
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
170
|
-
viewBox: "0 -960 960 960"
|
|
171
|
-
};
|
|
172
|
-
function Ne(e, t) {
|
|
173
|
-
return y(), c("svg", Me, [...t[0] ||= [l("path", { d: "M480-120q-150 0-255-105T120-480t105-255 255-105q8 0 17 .5t23 1.5q-36 32-56 79t-20 99q0 90 63 153t153 63q52 0 99-18.5t79-51.5q1 12 1.5 19.5t.5 14.5q0 150-105 255T480-120m0-60q109 0 190-67.5T771-406q-25 11-53.67 16.5Q688.67-384 660-384q-114.69 0-195.34-80.66Q384-545.31 384-660q0-24 5-51.5t18-62.5q-98 27-162.5 109.5T180-480q0 125 87.5 212.5T480-180m-4-297" }, null, -1)]]);
|
|
174
|
-
}
|
|
175
|
-
var Pe = { render: Ne }, Fe = {
|
|
176
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
177
|
-
viewBox: "0 -960 960 960"
|
|
178
|
-
};
|
|
179
|
-
function Ie(e, t) {
|
|
180
|
-
return y(), c("svg", Fe, [...t[0] ||= [l("path", { d: "M579-381q41-41 41-99t-41-99-99-41-99 41-41 99 41 99 99 41 99-41m-240.5 42.5Q280-397 280-480t58.5-141.5T480-680t141.5 58.5T680-480t-58.5 141.5T480-280t-141.5-58.5M200-450H40v-60h160zm720 0H760v-60h160zM450-760v-160h60v160zm0 720v-160h60v160zM262-658l-100-97 43-44 96 100zm494 496-98-100 41-41 99 98zm-99-537 98-99 44 42-99 98zM162-205l99-98 42 42-98 99zm318-275" }, null, -1)]]);
|
|
181
|
-
}
|
|
182
|
-
var Le = { render: Ie }, Re = {
|
|
161
|
+
var Re = {
|
|
183
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
163
|
viewBox: "0 -960 960 960"
|
|
185
164
|
};
|
|
186
165
|
function ze(e, t) {
|
|
187
|
-
return
|
|
166
|
+
return b(), c("svg", Re, [...t[0] ||= [l("path", { d: "M511-258q11-11 11-27t-11-27-27-11-27 11-11 27 11 27 27 11 27-11m-62-135h59q0-26 6.5-47.5T555-490q31-26 44-51t13-55q0-53-34.5-85T486-713q-49 0-86.5 24.5T345-621l53 20q11-28 33-43.5t52-15.5q34 0 55 18.5t21 47.5q0 22-13 41.5T508-512q-30 26-44.5 51.5T449-393m31 313q-82 0-155-31.5t-127.5-86-86-127.5T80-480q0-83 31.5-156t86-127T325-848.5 480-880q83 0 156 31.5T763-763t85.5 127T880-480q0 82-31.5 155T763-197.5t-127 86T480-80m0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140m0-340" }, null, -1)]]);
|
|
188
167
|
}
|
|
189
168
|
var Be = { render: ze }, Ve = {
|
|
190
169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
191
170
|
viewBox: "0 -960 960 960"
|
|
192
171
|
};
|
|
193
172
|
function He(e, t) {
|
|
194
|
-
return
|
|
173
|
+
return b(), c("svg", Ve, [...t[0] ||= [l("path", { d: "m480-121-41-37q-105.77-97.12-174.88-167.56Q195-396 154-451.5T96.5-552 80-643q0-90.15 60.5-150.58Q201-854 290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.42Q880-733.15 880-643q0 46-16.5 91T806-451.5 695.88-325.56Q626.77-255.12 521-158zm0-79q101.24-93 166.62-159.5T750.5-476t54-89.14q15.5-39.13 15.5-77.72 0-66.14-42-108.64T670.22-794q-51.52 0-95.37 31.5T504-674h-49q-26-56-69.85-88t-95.37-32Q224-794 182-751.5t-42 108.82q0 38.68 15.5 78.18t54 90T314-358t166 158m0-297" }, null, -1)]]);
|
|
195
174
|
}
|
|
196
175
|
var Ue = { render: He }, We = {
|
|
197
176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
177
|
viewBox: "0 -960 960 960"
|
|
199
178
|
};
|
|
200
179
|
function Ge(e, t) {
|
|
201
|
-
return
|
|
180
|
+
return b(), c("svg", We, [...t[0] ||= [l("path", { d: "m480-121-41-37q-106-97-175-167.5t-110-126T96.5-552 80-643q0-90 60.5-150.5T290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.5T880-643q0 46-16.5 91T806-451.5t-110 126T521-158z" }, null, -1)]]);
|
|
202
181
|
}
|
|
203
182
|
var Ke = { render: Ge }, qe = {
|
|
204
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
184
|
viewBox: "0 -960 960 960"
|
|
206
185
|
};
|
|
207
186
|
function Je(e, t) {
|
|
208
|
-
return
|
|
187
|
+
return b(), c("svg", qe, [...t[0] ||= [l("path", { d: "M480-120q-150 0-255-105T120-480t105-255 255-105q8 0 17 .5t23 1.5q-36 32-56 79t-20 99q0 90 63 153t153 63q52 0 99-18.5t79-51.5q1 12 1.5 19.5t.5 14.5q0 150-105 255T480-120m0-60q109 0 190-67.5T771-406q-25 11-53.67 16.5Q688.67-384 660-384q-114.69 0-195.34-80.66Q384-545.31 384-660q0-24 5-51.5t18-62.5q-98 27-162.5 109.5T180-480q0 125 87.5 212.5T480-180m-4-297" }, null, -1)]]);
|
|
209
188
|
}
|
|
210
189
|
var Ye = { render: Je }, Xe = {
|
|
211
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
212
191
|
viewBox: "0 -960 960 960"
|
|
213
192
|
};
|
|
214
193
|
function Ze(e, t) {
|
|
215
|
-
return
|
|
194
|
+
return b(), c("svg", Xe, [...t[0] ||= [l("path", { d: "M579-381q41-41 41-99t-41-99-99-41-99 41-41 99 41 99 99 41 99-41m-240.5 42.5Q280-397 280-480t58.5-141.5T480-680t141.5 58.5T680-480t-58.5 141.5T480-280t-141.5-58.5M200-450H40v-60h160zm720 0H760v-60h160zM450-760v-160h60v160zm0 720v-160h60v160zM262-658l-100-97 43-44 96 100zm494 496-98-100 41-41 99 98zm-99-537 98-99 44 42-99 98zM162-205l99-98 42 42-98 99zm318-275" }, null, -1)]]);
|
|
216
195
|
}
|
|
217
196
|
var Qe = { render: Ze }, $e = {
|
|
218
197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
219
198
|
viewBox: "0 -960 960 960"
|
|
220
199
|
};
|
|
221
200
|
function et(e, t) {
|
|
222
|
-
return
|
|
201
|
+
return b(), c("svg", $e, [...t[0] ||= [l("path", { d: "M561-240 320-481l241-241 43 43-198 198 198 198z" }, null, -1)]]);
|
|
223
202
|
}
|
|
224
203
|
var tt = { render: et }, nt = {
|
|
225
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
205
|
viewBox: "0 -960 960 960"
|
|
227
206
|
};
|
|
228
207
|
function rt(e, t) {
|
|
229
|
-
return
|
|
208
|
+
return b(), c("svg", nt, [...t[0] ||= [l("path", { d: "M530-481 332-679l43-43 241 241-241 241-43-43z" }, null, -1)]]);
|
|
230
209
|
}
|
|
231
210
|
var it = { render: rt }, at = {
|
|
232
211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
233
212
|
viewBox: "0 -960 960 960"
|
|
234
213
|
};
|
|
235
214
|
function ot(e, t) {
|
|
236
|
-
return
|
|
215
|
+
return b(), c("svg", at, [...t[0] ||= [l("path", { d: "M480-554 283-357l-43-43 240-240 240 240-43 43z" }, null, -1)]]);
|
|
237
216
|
}
|
|
238
217
|
var st = { render: ot }, ct = {
|
|
239
218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
219
|
viewBox: "0 -960 960 960"
|
|
241
220
|
};
|
|
242
221
|
function lt(e, t) {
|
|
243
|
-
return
|
|
222
|
+
return b(), c("svg", ct, [...t[0] ||= [l("path", { d: "M480-344 240-584l43-43 197 197 197-197 43 43z" }, null, -1)]]);
|
|
244
223
|
}
|
|
245
224
|
var ut = { render: lt }, dt = {
|
|
246
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
247
226
|
viewBox: "0 -960 960 960"
|
|
248
227
|
};
|
|
249
228
|
function ft(e, t) {
|
|
250
|
-
return
|
|
229
|
+
return b(), c("svg", dt, [...t[0] ||= [l("path", { d: "M453-241 213-481l240-240 42 42-198 198 198 198zm253 0L466-481l240-240 42 42-198 198 198 198z" }, null, -1)]]);
|
|
251
230
|
}
|
|
252
231
|
var pt = { render: ft }, mt = {
|
|
253
232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
254
233
|
viewBox: "0 -960 960 960"
|
|
255
234
|
};
|
|
256
235
|
function ht(e, t) {
|
|
257
|
-
return
|
|
236
|
+
return b(), c("svg", mt, [...t[0] ||= [l("path", { d: "M411-481 213-679l42-42 240 240-240 240-42-42zm253 0L466-679l42-42 240 240-240 240-42-42z" }, null, -1)]]);
|
|
258
237
|
}
|
|
259
238
|
var gt = { render: ht }, _t = {
|
|
260
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
261
240
|
viewBox: "0 -960 960 960"
|
|
262
241
|
};
|
|
263
242
|
function vt(e, t) {
|
|
264
|
-
return
|
|
243
|
+
return b(), c("svg", _t, [...t[0] ||= [l("path", { d: "M450-160v-526L202-438l-42-42 320-320 320 320-42 42-248-248v526z" }, null, -1)]]);
|
|
265
244
|
}
|
|
266
245
|
var yt = { render: vt }, bt = {
|
|
267
246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
268
247
|
viewBox: "0 -960 960 960"
|
|
269
248
|
};
|
|
270
249
|
function xt(e, t) {
|
|
271
|
-
return
|
|
250
|
+
return b(), c("svg", bt, [...t[0] ||= [l("path", { d: "M450-800v526L202-522l-42 42 320 320 320-320-42-42-248 248v-526z" }, null, -1)]]);
|
|
272
251
|
}
|
|
273
252
|
var St = { render: xt }, Ct = {
|
|
274
253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
275
254
|
viewBox: "0 -960 960 960"
|
|
276
255
|
};
|
|
277
256
|
function wt(e, t) {
|
|
278
|
-
return
|
|
257
|
+
return b(), c("svg", Ct, [...t[0] ||= [l("path", { d: "m274-450 248 248-42 42-320-320 320-320 42 42-248 248h526v60z" }, null, -1)]]);
|
|
279
258
|
}
|
|
280
259
|
var Tt = { render: wt }, Et = {
|
|
281
260
|
xmlns: "http://www.w3.org/2000/svg",
|
|
282
261
|
viewBox: "0 -960 960 960"
|
|
283
262
|
};
|
|
284
263
|
function Dt(e, t) {
|
|
285
|
-
return
|
|
264
|
+
return b(), c("svg", Et, [...t[0] ||= [l("path", { d: "M686-450H160v-60h526L438-758l42-42 320 320-320 320-42-42z" }, null, -1)]]);
|
|
286
265
|
}
|
|
287
266
|
var Ot = { render: Dt }, kt = {
|
|
288
267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
268
|
viewBox: "0 -960 960 960"
|
|
290
269
|
};
|
|
291
270
|
function At(e, t) {
|
|
292
|
-
return
|
|
271
|
+
return b(), c("svg", kt, [...t[0] ||= [l("path", { d: "M120-240v-60h720v60zm0-210v-60h720v60zm0-210v-60h720v60z" }, null, -1)]]);
|
|
293
272
|
}
|
|
294
273
|
var jt = { render: At }, Mt = {
|
|
295
274
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
275
|
viewBox: "0 -960 960 960"
|
|
297
276
|
};
|
|
298
277
|
function Nt(e, t) {
|
|
299
|
-
return
|
|
278
|
+
return b(), c("svg", Mt, [...t[0] ||= [l("path", { d: "M479.86-160Q460-160 446-174.14t-14-34T446.14-242t34-14T514-241.86t14 34T513.86-174t-34 14m0-272Q460-432 446-446.14t-14-34T446.14-514t34-14T514-513.86t14 34T513.86-446t-34 14m0-272Q460-704 446-718.14t-14-34T446.14-786t34-14T514-785.86t14 34T513.86-718t-34 14" }, null, -1)]]);
|
|
300
279
|
}
|
|
301
280
|
var Pt = { render: Nt }, Ft = {
|
|
302
281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
303
282
|
viewBox: "0 -960 960 960"
|
|
304
283
|
};
|
|
305
284
|
function It(e, t) {
|
|
306
|
-
return
|
|
285
|
+
return b(), c("svg", Ft, [...t[0] ||= [l("path", { d: "M207.86-432Q188-432 174-446.14t-14-34T174.14-514t34-14T242-513.86t14 34T241.86-446t-34 14m272 0Q460-432 446-446.14t-14-34T446.14-514t34-14T514-513.86t14 34T513.86-446t-34 14m272 0Q732-432 718-446.14t-14-34T718.14-514t34-14T786-513.86t14 34T785.86-446t-34 14" }, null, -1)]]);
|
|
307
286
|
}
|
|
308
287
|
var Lt = { render: It }, Rt = {
|
|
309
288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
310
289
|
viewBox: "0 -960 960 960"
|
|
311
290
|
};
|
|
312
291
|
function zt(e, t) {
|
|
313
|
-
return
|
|
292
|
+
return b(), c("svg", Rt, [...t[0] ||= [l("path", { d: "M450-450H200v-60h250v-250h60v250h250v60H510v250h-60z" }, null, -1)]]);
|
|
314
293
|
}
|
|
315
294
|
var Bt = { render: zt }, Vt = {
|
|
316
295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
317
296
|
viewBox: "0 -960 960 960"
|
|
318
297
|
};
|
|
319
298
|
function Ht(e, t) {
|
|
320
|
-
return
|
|
299
|
+
return b(), c("svg", Vt, [...t[0] ||= [l("path", { d: "M180-180h44l472-471-44-44-472 471zm-60 60v-128l575-574q8-8 19-12.5t23-4.5q11 0 22 4.5t20 12.5l44 44q9 9 13 20t4 22-4.5 22.5T823-694L248-120zm659-617-41-41zm-105 64-22-22 44 44z" }, null, -1)]]);
|
|
321
300
|
}
|
|
322
301
|
var Ut = { render: Ht }, Wt = {
|
|
323
302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
303
|
viewBox: "0 -960 960 960"
|
|
325
304
|
};
|
|
326
305
|
function Gt(e, t) {
|
|
327
|
-
return
|
|
306
|
+
return b(), c("svg", Wt, [...t[0] ||= [l("path", { d: "M261-120q-24.75 0-42.37-17.63Q201-155.25 201-180v-570h-41v-60h188v-30h264v30h188v60h-41v570q0 24-18 42t-42 18zm438-630H261v570h438zM367-266h60v-399h-60zm166 0h60v-399h-60zM261-750v570z" }, null, -1)]]);
|
|
328
307
|
}
|
|
329
308
|
var Kt = { render: Gt }, qt = {
|
|
330
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
331
|
-
viewBox: "0
|
|
310
|
+
viewBox: "0 -960 960 960"
|
|
332
311
|
};
|
|
333
312
|
function Jt(e, t) {
|
|
334
|
-
return
|
|
313
|
+
return b(), c("svg", qt, [...t[0] ||= [l("path", { d: "m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z" }, null, -1)]]);
|
|
314
|
+
}
|
|
315
|
+
var Yt = { render: Jt }, Xt = {
|
|
316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
317
|
+
viewBox: "0 -960 960 960"
|
|
318
|
+
};
|
|
319
|
+
function Zt(e, t) {
|
|
320
|
+
return b(), c("svg", Xt, [...t[0] ||= [l("path", { d: "M378-246 154-470l43-43 181 181 384-384 43 43z" }, null, -1)]]);
|
|
321
|
+
}
|
|
322
|
+
var Qt = { render: Zt }, $t = {
|
|
323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
+
viewBox: "0 -960 960 960"
|
|
325
|
+
};
|
|
326
|
+
function en(e, t) {
|
|
327
|
+
return b(), c("svg", $t, [...t[0] ||= [l("path", { d: "M796-121 533-384q-30 26-70 40.5T378-329q-108 0-183-75t-75-181 75-181 182-75q106 0 180.5 75T632-585q0 43-14 83t-42 75l264 262zM377-389q81 0 138-57.5T572-585t-57-138.5T377-781q-82 0-139.5 57.5T180-585t57.5 138.5T377-389" }, null, -1)]]);
|
|
328
|
+
}
|
|
329
|
+
var tn = { render: en }, nn = {
|
|
330
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
331
|
+
viewBox: "0 -960 960 960"
|
|
332
|
+
};
|
|
333
|
+
function rn(e, t) {
|
|
334
|
+
return b(), c("svg", nn, [...t[0] ||= [l("path", { d: "M427-120v-225h60v83h353v60H487v82zm-307-82v-60h247v60zm187-166v-82H120v-60h187v-84h60v226zm120-82v-60h413v60zm166-165v-225h60v82h187v60H653v83zm-473-83v-60h413v60z" }, null, -1)]]);
|
|
335
|
+
}
|
|
336
|
+
var an = { render: rn }, on = {
|
|
337
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
338
|
+
viewBox: "0 -960 960 960"
|
|
339
|
+
};
|
|
340
|
+
function sn(e, t) {
|
|
341
|
+
return b(), c("svg", on, [...t[0] ||= [l("path", { d: "M480-313 287-506l43-43 120 120v-371h60v371l120-120 43 43zM220-160q-24 0-42-18t-18-42v-143h60v143h520v-143h60v143q0 24-18 42t-42 18z" }, null, -1)]]);
|
|
342
|
+
}
|
|
343
|
+
var cn = { render: sn }, ln = {
|
|
344
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
345
|
+
viewBox: "0 0 24 24"
|
|
346
|
+
};
|
|
347
|
+
function un(e, t) {
|
|
348
|
+
return b(), c("svg", ln, [...t[0] ||= [l("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }, null, -1)]]);
|
|
335
349
|
}
|
|
336
350
|
//#endregion
|
|
337
351
|
//#region src/Icon/defaultIcons.ts
|
|
338
|
-
var
|
|
339
|
-
help:
|
|
352
|
+
var dn = {
|
|
353
|
+
help: Be,
|
|
340
354
|
favorite: {
|
|
341
|
-
outline:
|
|
342
|
-
fill:
|
|
355
|
+
outline: Ue,
|
|
356
|
+
fill: Ke
|
|
343
357
|
},
|
|
344
|
-
dark_mode:
|
|
345
|
-
light_mode:
|
|
346
|
-
chevron_left:
|
|
347
|
-
chevron_right:
|
|
348
|
-
keyboard_arrow_up:
|
|
349
|
-
keyboard_arrow_down:
|
|
350
|
-
keyboard_double_arrow_left:
|
|
351
|
-
keyboard_double_arrow_right:
|
|
352
|
-
arrow_upward:
|
|
353
|
-
arrow_downward:
|
|
354
|
-
arrow_back:
|
|
355
|
-
arrow_forward:
|
|
356
|
-
menu:
|
|
357
|
-
more_vert:
|
|
358
|
-
more_horiz:
|
|
359
|
-
add:
|
|
360
|
-
edit:
|
|
361
|
-
delete:
|
|
362
|
-
close:
|
|
363
|
-
check:
|
|
364
|
-
search:
|
|
365
|
-
tune:
|
|
366
|
-
download:
|
|
367
|
-
github: { render:
|
|
368
|
-
},
|
|
369
|
-
function
|
|
370
|
-
if (!
|
|
371
|
-
|
|
372
|
-
for (let [e, t] of Object.entries(
|
|
358
|
+
dark_mode: Ye,
|
|
359
|
+
light_mode: Qe,
|
|
360
|
+
chevron_left: tt,
|
|
361
|
+
chevron_right: it,
|
|
362
|
+
keyboard_arrow_up: st,
|
|
363
|
+
keyboard_arrow_down: ut,
|
|
364
|
+
keyboard_double_arrow_left: pt,
|
|
365
|
+
keyboard_double_arrow_right: gt,
|
|
366
|
+
arrow_upward: yt,
|
|
367
|
+
arrow_downward: St,
|
|
368
|
+
arrow_back: Tt,
|
|
369
|
+
arrow_forward: Ot,
|
|
370
|
+
menu: jt,
|
|
371
|
+
more_vert: Pt,
|
|
372
|
+
more_horiz: Lt,
|
|
373
|
+
add: Bt,
|
|
374
|
+
edit: Ut,
|
|
375
|
+
delete: Kt,
|
|
376
|
+
close: Yt,
|
|
377
|
+
check: Qt,
|
|
378
|
+
search: tn,
|
|
379
|
+
tune: an,
|
|
380
|
+
download: cn,
|
|
381
|
+
github: { render: un }
|
|
382
|
+
}, fn = !1;
|
|
383
|
+
function pn() {
|
|
384
|
+
if (!fn) {
|
|
385
|
+
fn = !0;
|
|
386
|
+
for (let [e, t] of Object.entries(dn)) Pe(e) || Me({ [e]: t });
|
|
373
387
|
}
|
|
374
388
|
}
|
|
375
389
|
//#endregion
|
|
376
390
|
//#region src/Icon/Icon.vue?vue&type=script&setup=true&lang.ts
|
|
377
|
-
var
|
|
391
|
+
var mn = [
|
|
378
392
|
"data-size",
|
|
379
393
|
"data-inline",
|
|
380
394
|
"aria-hidden",
|
|
@@ -402,51 +416,51 @@ var Qt = [
|
|
|
402
416
|
}
|
|
403
417
|
},
|
|
404
418
|
setup(e) {
|
|
405
|
-
|
|
419
|
+
pn();
|
|
406
420
|
let t = e, n = a(() => typeof t.size == "string" ? t.size : void 0), r = a(() => typeof t.size == "number" ? {
|
|
407
421
|
width: `${t.size}px`,
|
|
408
422
|
height: `${t.size}px`
|
|
409
423
|
} : {}), i = a(() => {
|
|
410
|
-
let e =
|
|
411
|
-
return e ||
|
|
424
|
+
let e = Ne(t.icon, t.fill);
|
|
425
|
+
return e || Le(t.icon), e;
|
|
412
426
|
});
|
|
413
|
-
return (t, a) => (
|
|
427
|
+
return (t, a) => (b(), c("span", {
|
|
414
428
|
class: "Icon",
|
|
415
429
|
"data-size": n.value,
|
|
416
430
|
"data-inline": e.inline ? "true" : void 0,
|
|
417
|
-
style:
|
|
431
|
+
style: v(r.value),
|
|
418
432
|
"aria-hidden": e.decorative ? !0 : void 0,
|
|
419
433
|
"aria-label": e.decorative ? void 0 : e.ariaLabel,
|
|
420
434
|
role: e.decorative ? void 0 : "img"
|
|
421
|
-
}, [i.value ? (
|
|
435
|
+
}, [i.value ? (b(), o(w(i.value), { key: 0 })) : s("", !0)], 12, mn));
|
|
422
436
|
}
|
|
423
437
|
}), $ = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
424
438
|
__name: "Hint",
|
|
425
439
|
props: { text: {} },
|
|
426
440
|
setup(e) {
|
|
427
|
-
return (t, n) => (
|
|
428
|
-
default:
|
|
441
|
+
return (t, n) => (b(), o(E(ge), null, {
|
|
442
|
+
default: A(() => [d(E(_e), {
|
|
429
443
|
"delay-duration": 0,
|
|
430
444
|
"disable-closing-trigger": ""
|
|
431
445
|
}, {
|
|
432
|
-
default:
|
|
433
|
-
default:
|
|
446
|
+
default: A(() => [d(E(q), { "as-child": "" }, {
|
|
447
|
+
default: A(() => [l("button", {
|
|
434
448
|
type: "button",
|
|
435
449
|
class: "HintTrigger",
|
|
436
450
|
"aria-label": "More info",
|
|
437
|
-
onPointerdown: n[0] ||=
|
|
451
|
+
onPointerdown: n[0] ||= M(() => {}, ["prevent"])
|
|
438
452
|
}, [d(Q, {
|
|
439
453
|
icon: "help",
|
|
440
454
|
size: 16
|
|
441
455
|
})], 32)]),
|
|
442
456
|
_: 1
|
|
443
|
-
}), d(
|
|
444
|
-
default:
|
|
457
|
+
}), d(E(K), null, {
|
|
458
|
+
default: A(() => [d(E(he), {
|
|
445
459
|
class: "HintContent",
|
|
446
460
|
side: "top",
|
|
447
461
|
"side-offset": 4
|
|
448
462
|
}, {
|
|
449
|
-
default:
|
|
463
|
+
default: A(() => [u(T(e.text) + " ", 1), d(E(me), {
|
|
450
464
|
class: "HintArrow",
|
|
451
465
|
width: 10,
|
|
452
466
|
height: 5
|
|
@@ -460,14 +474,14 @@ var Qt = [
|
|
|
460
474
|
_: 1
|
|
461
475
|
}));
|
|
462
476
|
}
|
|
463
|
-
}), [["__scopeId", "data-v-9dbf1c25"]]),
|
|
477
|
+
}), [["__scopeId", "data-v-9dbf1c25"]]), hn = ["aria-label"], gn = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
464
478
|
__name: "LightDarkToggle",
|
|
465
479
|
setup(e) {
|
|
466
|
-
let t =
|
|
480
|
+
let t = x(window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
467
481
|
function n(e) {
|
|
468
482
|
document.documentElement.classList.toggle("dark", e), document.documentElement.classList.toggle("light", !e);
|
|
469
483
|
}
|
|
470
|
-
return n(t.value),
|
|
484
|
+
return n(t.value), k(t, n), (e, n) => (b(), c("button", {
|
|
471
485
|
class: "light-dark-toggle",
|
|
472
486
|
type: "button",
|
|
473
487
|
"aria-label": t.value ? "Switch to light mode" : "Switch to dark mode",
|
|
@@ -475,13 +489,140 @@ var Qt = [
|
|
|
475
489
|
}, [d(Q, {
|
|
476
490
|
icon: t.value ? "dark_mode" : "light_mode",
|
|
477
491
|
size: "sm"
|
|
478
|
-
}, null, 8, ["icon"])], 8,
|
|
492
|
+
}, null, 8, ["icon"])], 8, hn));
|
|
493
|
+
}
|
|
494
|
+
}), [["__scopeId", "data-v-4c423498"]]), _n = { class: "multi-select" }, vn = ["id"], yn = {
|
|
495
|
+
key: 0,
|
|
496
|
+
class: "multi-select-chips"
|
|
497
|
+
}, bn = { class: "multi-select-chip-label" }, xn = ["aria-label", "onClick"], Sn = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
498
|
+
__name: "MultiSelect",
|
|
499
|
+
props: /* @__PURE__ */ h({
|
|
500
|
+
label: {},
|
|
501
|
+
hideLabel: { type: Boolean },
|
|
502
|
+
ariaLabel: {},
|
|
503
|
+
options: {},
|
|
504
|
+
placeholder: {},
|
|
505
|
+
hint: {}
|
|
506
|
+
}, {
|
|
507
|
+
modelValue: { default: () => [] },
|
|
508
|
+
modelModifiers: {}
|
|
509
|
+
}),
|
|
510
|
+
emits: ["update:modelValue"],
|
|
511
|
+
setup(e) {
|
|
512
|
+
let t = D(e, "modelValue"), n = e, r = J(), f = x(null);
|
|
513
|
+
k(t, () => {
|
|
514
|
+
g(() => {
|
|
515
|
+
let e = f.value?.querySelector("input");
|
|
516
|
+
e?.value && (e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })));
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
let p = a(() => t.value.map((e) => n.options.find((t) => t.value === e)).filter((e) => !!e));
|
|
520
|
+
function m(e) {
|
|
521
|
+
t.value = t.value.filter((t) => t !== e);
|
|
522
|
+
}
|
|
523
|
+
function h(e) {
|
|
524
|
+
let n = e.target;
|
|
525
|
+
e.key === "Backspace" && !n.value && t.value.length && m(t.value[t.value.length - 1]);
|
|
526
|
+
}
|
|
527
|
+
return (n, a) => (b(), c("div", _n, [e.label ? (b(), c("label", {
|
|
528
|
+
key: 0,
|
|
529
|
+
id: `${E(r)}-label`,
|
|
530
|
+
class: _(["multi-select-label", { "visually-hidden": e.hideLabel }])
|
|
531
|
+
}, [u(T(e.label) + " ", 1), e.hint && !e.hideLabel ? (b(), o($, {
|
|
532
|
+
key: 0,
|
|
533
|
+
text: e.hint
|
|
534
|
+
}, null, 8, ["text"])) : s("", !0)], 10, vn)) : s("", !0), d(E(oe), {
|
|
535
|
+
modelValue: t.value,
|
|
536
|
+
"onUpdate:modelValue": a[0] ||= (e) => t.value = e,
|
|
537
|
+
multiple: "",
|
|
538
|
+
"open-on-click": "",
|
|
539
|
+
class: "multi-select-root"
|
|
540
|
+
}, {
|
|
541
|
+
default: A(() => [d(E(N), { class: "multi-select-anchor" }, {
|
|
542
|
+
default: A(() => [l("div", {
|
|
543
|
+
ref_key: "fieldRef",
|
|
544
|
+
ref: f,
|
|
545
|
+
class: "multi-select-field"
|
|
546
|
+
}, [p.value.length ? (b(), c("ul", yn, [(b(!0), c(i, null, S(p.value, (e) => (b(), c("li", {
|
|
547
|
+
key: e.value,
|
|
548
|
+
class: "multi-select-chip"
|
|
549
|
+
}, [l("span", bn, T(e.label), 1), l("button", {
|
|
550
|
+
type: "button",
|
|
551
|
+
class: "multi-select-chip-remove",
|
|
552
|
+
"aria-label": `Remove ${e.label}`,
|
|
553
|
+
onClick: (t) => m(e.value)
|
|
554
|
+
}, [d(Q, {
|
|
555
|
+
icon: "close",
|
|
556
|
+
size: 14
|
|
557
|
+
})], 8, xn)]))), 128))])) : s("", !0), d(E(ae), {
|
|
558
|
+
class: "multi-select-input",
|
|
559
|
+
placeholder: p.value.length ? void 0 : e.placeholder,
|
|
560
|
+
"aria-labelledby": e.label ? `${E(r)}-label` : void 0,
|
|
561
|
+
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
562
|
+
onKeydown: h
|
|
563
|
+
}, null, 8, [
|
|
564
|
+
"placeholder",
|
|
565
|
+
"aria-labelledby",
|
|
566
|
+
"aria-label"
|
|
567
|
+
])], 512), d(E(se), {
|
|
568
|
+
class: "multi-select-trigger",
|
|
569
|
+
"aria-label": "Toggle options"
|
|
570
|
+
}, {
|
|
571
|
+
default: A(() => [...a[1] ||= [l("span", {
|
|
572
|
+
class: "multi-select-icon",
|
|
573
|
+
"aria-hidden": "true"
|
|
574
|
+
}, [l("svg", {
|
|
575
|
+
width: "12",
|
|
576
|
+
height: "12",
|
|
577
|
+
viewBox: "0 0 12 12",
|
|
578
|
+
fill: "none",
|
|
579
|
+
stroke: "currentColor",
|
|
580
|
+
"stroke-width": "2",
|
|
581
|
+
"stroke-linecap": "round",
|
|
582
|
+
"stroke-linejoin": "round"
|
|
583
|
+
}, [l("path", { d: "M3 4.5L6 7.5L9 4.5" })])], -1)]]),
|
|
584
|
+
_: 1
|
|
585
|
+
})]),
|
|
586
|
+
_: 1
|
|
587
|
+
}), d(E(R), null, {
|
|
588
|
+
default: A(() => [d(E(P), {
|
|
589
|
+
class: "multi-select-content",
|
|
590
|
+
position: "popper",
|
|
591
|
+
"side-offset": 4,
|
|
592
|
+
"body-lock": !1
|
|
593
|
+
}, {
|
|
594
|
+
default: A(() => [d(E(z), { class: "multi-select-viewport" }, {
|
|
595
|
+
default: A(() => [d(E(F), { class: "multi-select-empty" }, {
|
|
596
|
+
default: A(() => [...a[2] ||= [u("No matches", -1)]]),
|
|
597
|
+
_: 1
|
|
598
|
+
}), (b(!0), c(i, null, S(e.options, (e) => (b(), o(E(I), {
|
|
599
|
+
key: e.value,
|
|
600
|
+
value: e.value,
|
|
601
|
+
class: "multi-select-item"
|
|
602
|
+
}, {
|
|
603
|
+
default: A(() => [l("span", null, T(e.label), 1), d(E(L), { class: "multi-select-indicator" }, {
|
|
604
|
+
default: A(() => [d(Q, {
|
|
605
|
+
icon: "check",
|
|
606
|
+
size: 14
|
|
607
|
+
})]),
|
|
608
|
+
_: 1
|
|
609
|
+
})]),
|
|
610
|
+
_: 2
|
|
611
|
+
}, 1032, ["value"]))), 128))]),
|
|
612
|
+
_: 1
|
|
613
|
+
})]),
|
|
614
|
+
_: 1
|
|
615
|
+
})]),
|
|
616
|
+
_: 1
|
|
617
|
+
})]),
|
|
618
|
+
_: 1
|
|
619
|
+
}, 8, ["modelValue"])]));
|
|
479
620
|
}
|
|
480
|
-
}), [["__scopeId", "data-v-
|
|
621
|
+
}), [["__scopeId", "data-v-14e1dc47"]]);
|
|
481
622
|
BigInt64Array, BigUint64Array;
|
|
482
623
|
//#endregion
|
|
483
624
|
//#region ../shared/src/formatNumber.ts
|
|
484
|
-
var
|
|
625
|
+
var Cn = (/* @__PURE__ */ Y(((e) => {
|
|
485
626
|
(function() {
|
|
486
627
|
var t = {
|
|
487
628
|
not_string: /[^s]/,
|
|
@@ -608,7 +749,7 @@ var tn = (/* @__PURE__ */ V(((e) => {
|
|
|
608
749
|
};
|
|
609
750
|
}));
|
|
610
751
|
})();
|
|
611
|
-
})))(),
|
|
752
|
+
})))(), wn = new Set([
|
|
612
753
|
"plain",
|
|
613
754
|
"localized",
|
|
614
755
|
"percent",
|
|
@@ -616,26 +757,26 @@ var tn = (/* @__PURE__ */ V(((e) => {
|
|
|
616
757
|
"scientific",
|
|
617
758
|
"engineering"
|
|
618
759
|
]);
|
|
619
|
-
function
|
|
620
|
-
return
|
|
760
|
+
function Tn(e) {
|
|
761
|
+
return wn.has(e);
|
|
621
762
|
}
|
|
622
|
-
function
|
|
763
|
+
function En(e) {
|
|
623
764
|
let t = e.indexOf(":");
|
|
624
|
-
if (t === -1) return
|
|
765
|
+
if (t === -1) return Tn(e) ? {
|
|
625
766
|
preset: e,
|
|
626
767
|
digits: void 0
|
|
627
768
|
} : null;
|
|
628
769
|
let n = e.slice(0, t), r = e.slice(t + 1);
|
|
629
|
-
if (!
|
|
770
|
+
if (!Tn(n) || !/^\d+$/.test(r)) return null;
|
|
630
771
|
let i = Number(r);
|
|
631
772
|
return i > 100 ? null : {
|
|
632
773
|
preset: n,
|
|
633
774
|
digits: i
|
|
634
775
|
};
|
|
635
776
|
}
|
|
636
|
-
var
|
|
637
|
-
function
|
|
638
|
-
let r = n === void 0 ? { maximumFractionDigits:
|
|
777
|
+
var Dn = 20;
|
|
778
|
+
function On(e, t, n) {
|
|
779
|
+
let r = n === void 0 ? { maximumFractionDigits: Dn } : {
|
|
639
780
|
minimumFractionDigits: n,
|
|
640
781
|
maximumFractionDigits: n
|
|
641
782
|
};
|
|
@@ -660,39 +801,39 @@ function sn(e, t, n) {
|
|
|
660
801
|
}).format(e);
|
|
661
802
|
}
|
|
662
803
|
}
|
|
663
|
-
function
|
|
804
|
+
function kn(e, t) {
|
|
664
805
|
if (!Number.isFinite(e) || t === void 0) return String(e);
|
|
665
806
|
if (typeof t == "function") return t(e);
|
|
666
|
-
if (t.includes("%")) return (0,
|
|
667
|
-
let n =
|
|
807
|
+
if (t.includes("%")) return (0, Cn.sprintf)(t, e);
|
|
808
|
+
let n = En(t);
|
|
668
809
|
if (!n) {
|
|
669
|
-
let e = [...
|
|
810
|
+
let e = [...wn].join(", ");
|
|
670
811
|
throw Error(`formatNumber: invalid format ${JSON.stringify(t)}. Expected one of ${e} (optionally with ":N" digits), a printf format string containing "%", or a function.`);
|
|
671
812
|
}
|
|
672
|
-
return
|
|
813
|
+
return On(e, n.preset, n.digits);
|
|
673
814
|
}
|
|
674
815
|
//#endregion
|
|
675
816
|
//#region src/NumberInput/NumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
676
|
-
var
|
|
817
|
+
var An = {
|
|
677
818
|
key: 1,
|
|
678
819
|
class: "input-wrapper"
|
|
679
|
-
},
|
|
820
|
+
}, jn = [
|
|
680
821
|
"inputmode",
|
|
681
822
|
"placeholder",
|
|
682
823
|
"aria-invalid",
|
|
683
824
|
"aria-required",
|
|
684
825
|
"required"
|
|
685
|
-
],
|
|
826
|
+
], Mn = {
|
|
686
827
|
key: 0,
|
|
687
828
|
class: "input-suffix"
|
|
688
|
-
},
|
|
829
|
+
}, Nn = {
|
|
689
830
|
key: 2,
|
|
690
831
|
class: "input-error",
|
|
691
832
|
role: "alert"
|
|
692
|
-
},
|
|
833
|
+
}, Pn = {
|
|
693
834
|
key: 3,
|
|
694
835
|
class: "slider-container"
|
|
695
|
-
},
|
|
836
|
+
}, Fn = { class: "slider-current" }, In = { class: "slider-labels" }, Ln = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
696
837
|
__name: "NumberInput",
|
|
697
838
|
props: /* @__PURE__ */ h({
|
|
698
839
|
label: {},
|
|
@@ -727,15 +868,15 @@ var ln = {
|
|
|
727
868
|
"update:upper"
|
|
728
869
|
],
|
|
729
870
|
setup(e) {
|
|
730
|
-
let t =
|
|
871
|
+
let t = D(e, "modelValue"), n = D(e, "range"), r = D(e, "lower"), f = D(e, "upper"), p = e;
|
|
731
872
|
function h(e) {
|
|
732
873
|
return Array.isArray(e) && e.length === 2;
|
|
733
874
|
}
|
|
734
|
-
let
|
|
875
|
+
let g = m()?.vnode.props, v = !!g?.["onUpdate:range"] || !!g?.["onUpdate:lower"] || !!g?.["onUpdate:upper"] || n.value !== void 0 || r.value !== void 0 || f.value !== void 0, y = a(() => !!p.slider || v);
|
|
735
876
|
ee(() => {
|
|
736
|
-
v &&
|
|
877
|
+
v && g?.["onUpdate:modelValue"] && console.warn("[NumberInput] In range mode, the default `v-model` is unused. Bind `v-model:range` or `v-model:lower`/`v-model:upper` instead.");
|
|
737
878
|
});
|
|
738
|
-
let
|
|
879
|
+
let C = a(() => p.min ?? (p.percent, 0)), M = a(() => p.max ?? (p.percent ? 1 : 100)), ne = a(() => p.step ?? (p.percent ? .01 : 1));
|
|
739
880
|
function re(e) {
|
|
740
881
|
if (!Number.isFinite(e) || Number.isInteger(e)) return 0;
|
|
741
882
|
let t = parseFloat(Math.abs(e).toPrecision(12)).toString(), n = t.indexOf(".");
|
|
@@ -743,15 +884,15 @@ var ln = {
|
|
|
743
884
|
let r = t.indexOf("e-");
|
|
744
885
|
return r === -1 ? 0 : Number(t.slice(r + 2));
|
|
745
886
|
}
|
|
746
|
-
let
|
|
747
|
-
function
|
|
887
|
+
let ie = a(() => p.step == null ? 1 : p.percent ? p.step * 100 : p.step), N = a(() => p.min == null ? p.percent ? 0 : void 0 : p.percent ? p.min * 100 : p.min), P = a(() => p.max == null ? p.percent ? 100 : void 0 : p.percent ? p.max * 100 : p.max), F = a(() => p.numberType === "integer" ? 0 : p.decimals == null ? re(ie.value) : Math.max(0, p.decimals));
|
|
888
|
+
function ae(e, t) {
|
|
748
889
|
let n = 10 ** t;
|
|
749
890
|
return Math.round(e * n) / n;
|
|
750
891
|
}
|
|
751
892
|
function I(e) {
|
|
752
893
|
if (e == null) return "";
|
|
753
894
|
let t = p.format ?? p.sliderDisplay;
|
|
754
|
-
if (t !== void 0) return
|
|
895
|
+
if (t !== void 0) return kn(e, t);
|
|
755
896
|
let n = F.value;
|
|
756
897
|
return p.percent ? (e * 100).toFixed(n) + "%" : e.toLocaleString("en-US", {
|
|
757
898
|
minimumFractionDigits: n,
|
|
@@ -759,28 +900,28 @@ var ln = {
|
|
|
759
900
|
});
|
|
760
901
|
}
|
|
761
902
|
function L(e) {
|
|
762
|
-
return e == null || !p.percent ? e :
|
|
903
|
+
return e == null || !p.percent ? e : ae(e * 100, F.value);
|
|
763
904
|
}
|
|
764
905
|
function R(e) {
|
|
765
906
|
return p.percent ? e / 100 : e;
|
|
766
907
|
}
|
|
767
|
-
function
|
|
908
|
+
function oe(e) {
|
|
768
909
|
if (p.numberType !== "integer") return e;
|
|
769
910
|
let t = L(e);
|
|
770
911
|
return t == null ? e : R(Math.trunc(t));
|
|
771
912
|
}
|
|
772
|
-
function
|
|
913
|
+
function se(e) {
|
|
773
914
|
return e == null ? "" : e.toLocaleString("en-US");
|
|
774
915
|
}
|
|
775
916
|
function z(e) {
|
|
776
917
|
if (e == null) return "";
|
|
777
|
-
if (p.format !== void 0) return
|
|
918
|
+
if (p.format !== void 0) return kn(e, p.format);
|
|
778
919
|
let t = F.value;
|
|
779
920
|
if (t > 0) return e.toLocaleString("en-US", {
|
|
780
921
|
minimumFractionDigits: t,
|
|
781
922
|
maximumFractionDigits: t
|
|
782
923
|
});
|
|
783
|
-
let n =
|
|
924
|
+
let n = se(e);
|
|
784
925
|
return p.numberType === "float" && Number.isInteger(e) ? n + ".0" : n;
|
|
785
926
|
}
|
|
786
927
|
function B(e) {
|
|
@@ -789,23 +930,23 @@ var ln = {
|
|
|
789
930
|
function fe() {
|
|
790
931
|
if (v) {
|
|
791
932
|
let e = n.value, t = r.value ?? e?.[0], i = f.value ?? e?.[1];
|
|
792
|
-
return t !== void 0 || i !== void 0 ? [t ??
|
|
933
|
+
return t !== void 0 || i !== void 0 ? [t ?? C.value, i ?? M.value] : void 0;
|
|
793
934
|
}
|
|
794
935
|
return t.value;
|
|
795
936
|
}
|
|
796
|
-
let V = fe(), H =
|
|
937
|
+
let V = fe(), H = x(z(L(typeof V == "number" ? V : void 0)));
|
|
797
938
|
function U(e) {
|
|
798
|
-
return v ? h(e) ? [e[0], e[1]] : [
|
|
939
|
+
return v ? h(e) ? [e[0], e[1]] : [C.value, M.value] : typeof e == "number" ? [e] : [C.value];
|
|
799
940
|
}
|
|
800
|
-
let W =
|
|
801
|
-
|
|
941
|
+
let W = x(U(V)), G = x();
|
|
942
|
+
k([
|
|
802
943
|
t,
|
|
803
944
|
n,
|
|
804
945
|
r,
|
|
805
946
|
f
|
|
806
947
|
], () => {
|
|
807
948
|
let e = fe();
|
|
808
|
-
!v && !h(e) && (H.value = z(L(e))), W.value = U(e), G.value =
|
|
949
|
+
!v && !h(e) && (H.value = z(L(e))), W.value = U(e), G.value = J(e);
|
|
809
950
|
});
|
|
810
951
|
let pe = /[^0-9,.\-+eE]/g;
|
|
811
952
|
function me(e) {
|
|
@@ -813,7 +954,7 @@ var ln = {
|
|
|
813
954
|
if (n === "" || n === "-" || n.endsWith(".") || n.includes(".") && n.endsWith("0")) return;
|
|
814
955
|
let r = Number(n);
|
|
815
956
|
if (Number.isNaN(r)) return;
|
|
816
|
-
let i =
|
|
957
|
+
let i = se(r);
|
|
817
958
|
if (i === t.value) return;
|
|
818
959
|
let a = t.selectionStart ?? 0, o = (t.value.slice(0, a).match(/,/g) || []).length;
|
|
819
960
|
H.value = i, requestAnimationFrame(() => {
|
|
@@ -826,80 +967,80 @@ var ln = {
|
|
|
826
967
|
});
|
|
827
968
|
}
|
|
828
969
|
function he() {
|
|
829
|
-
if (
|
|
970
|
+
if (Y(), H.value.trim() === "") return;
|
|
830
971
|
let e = Number(B(H.value));
|
|
831
972
|
Number.isNaN(e) || (H.value = z(e));
|
|
832
973
|
}
|
|
833
974
|
let K = null;
|
|
834
|
-
function q() {
|
|
835
|
-
!p.live || x.value || (K && clearTimeout(K), K = setTimeout(X, 300));
|
|
836
|
-
}
|
|
837
975
|
function ge() {
|
|
838
|
-
!p.live ||
|
|
976
|
+
!p.live || y.value || (K && clearTimeout(K), K = setTimeout(Y, 300));
|
|
839
977
|
}
|
|
840
|
-
function
|
|
978
|
+
function _e() {
|
|
979
|
+
!p.live || y.value || (K && clearTimeout(K), Y());
|
|
980
|
+
}
|
|
981
|
+
function q(e) {
|
|
841
982
|
let t = L(e);
|
|
842
983
|
if (N.value != null && t < N.value) return `Min ${N.value}${p.percent ? "%" : ""}`;
|
|
843
984
|
if (P.value != null && t > P.value) return `Max ${P.value}${p.percent ? "%" : ""}`;
|
|
844
985
|
}
|
|
845
|
-
function
|
|
986
|
+
function J(e) {
|
|
846
987
|
if (e == null) return p.required ? "Required" : void 0;
|
|
847
988
|
if (h(e)) {
|
|
848
|
-
let t =
|
|
989
|
+
let t = q(e[0]);
|
|
849
990
|
if (t) return `${t} (lower)`;
|
|
850
|
-
let n =
|
|
991
|
+
let n = q(e[1]);
|
|
851
992
|
return n ? `${n} (upper)` : void 0;
|
|
852
993
|
}
|
|
853
|
-
return
|
|
994
|
+
return q(e);
|
|
854
995
|
}
|
|
855
|
-
function
|
|
996
|
+
function Y() {
|
|
856
997
|
let e = t.value;
|
|
857
998
|
if (H.value.trim() === "") {
|
|
858
|
-
t.value = void 0, W.value = U(void 0), G.value =
|
|
999
|
+
t.value = void 0, W.value = U(void 0), G.value = J(void 0);
|
|
859
1000
|
return;
|
|
860
1001
|
}
|
|
861
1002
|
let n = H.value.replace(pe, "");
|
|
862
1003
|
if (!/\d/.test(n)) {
|
|
863
|
-
H.value = z(L(e)), G.value =
|
|
1004
|
+
H.value = z(L(e)), G.value = J(e);
|
|
864
1005
|
return;
|
|
865
1006
|
}
|
|
866
1007
|
n !== H.value && (H.value = n);
|
|
867
1008
|
let r = Number(B(n));
|
|
868
1009
|
if (Number.isNaN(r)) return;
|
|
869
1010
|
p.numberType === "integer" && (r = Math.trunc(r), H.value = z(r));
|
|
870
|
-
let i = R(r), a =
|
|
1011
|
+
let i = R(r), a = J(i);
|
|
871
1012
|
G.value = a, !a && (t.value = i, W.value = [i]);
|
|
872
1013
|
}
|
|
873
|
-
function
|
|
874
|
-
let a = e.map(
|
|
1014
|
+
function ve(e, i) {
|
|
1015
|
+
let a = e.map(oe);
|
|
875
1016
|
W.value = a, v || (H.value = z(L(a[0]))), i && (v ? (n.value = [a[0], a[1]], r.value = a[0], f.value = a[1]) : t.value = a[0]);
|
|
876
1017
|
}
|
|
877
|
-
function
|
|
1018
|
+
function ye(e) {
|
|
878
1019
|
if (p.label) return v ? e === 0 ? `${p.label} (lower)` : `${p.label} (upper)` : p.label;
|
|
879
1020
|
}
|
|
880
|
-
function
|
|
881
|
-
e &&
|
|
1021
|
+
function X(e) {
|
|
1022
|
+
e && ve(e, !!p.live);
|
|
882
1023
|
}
|
|
883
1024
|
function be(e) {
|
|
884
|
-
e &&
|
|
1025
|
+
e && ve(e, !0);
|
|
885
1026
|
}
|
|
886
|
-
function
|
|
1027
|
+
function xe(e, n) {
|
|
887
1028
|
e.preventDefault();
|
|
888
|
-
let r = Number(B(H.value)), i = (Number.isNaN(r) ? 0 : r) +
|
|
1029
|
+
let r = Number(B(H.value)), i = (Number.isNaN(r) ? 0 : r) + ie.value * (e.shiftKey ? 10 : 1) * n;
|
|
889
1030
|
p.numberType === "integer" && (i = Math.trunc(i)), N.value != null && (i = Math.max(i, N.value)), P.value != null && (i = Math.min(i, P.value)), H.value = z(i);
|
|
890
1031
|
let a = R(i);
|
|
891
1032
|
t.value = a, W.value = [a];
|
|
892
1033
|
}
|
|
893
|
-
return (e, t) => (
|
|
894
|
-
default:
|
|
895
|
-
p.label ? (
|
|
1034
|
+
return (e, t) => (b(), o(w(p.label ? "label" : "div"), { class: _(p.label ? "input-label" : void 0) }, {
|
|
1035
|
+
default: A(() => [
|
|
1036
|
+
p.label ? (b(), c("span", {
|
|
896
1037
|
key: 0,
|
|
897
|
-
class:
|
|
898
|
-
}, [u(
|
|
1038
|
+
class: _(["input-label-row", { "visually-hidden": p.hideLabel }])
|
|
1039
|
+
}, [u(T(p.label) + " ", 1), p.hint && !p.hideLabel ? (b(), o($, {
|
|
899
1040
|
key: 0,
|
|
900
1041
|
text: p.hint
|
|
901
1042
|
}, null, 8, ["text"])) : s("", !0)], 2)) : s("", !0),
|
|
902
|
-
|
|
1043
|
+
y.value ? s("", !0) : (b(), c("span", An, [te(l("input", {
|
|
903
1044
|
type: "text",
|
|
904
1045
|
inputmode: p.numberType === "integer" ? "numeric" : "decimal",
|
|
905
1046
|
"onUpdate:modelValue": t[0] ||= (e) => H.value = e,
|
|
@@ -909,34 +1050,34 @@ var ln = {
|
|
|
909
1050
|
required: p.required,
|
|
910
1051
|
onBlur: he,
|
|
911
1052
|
onKeydown: [
|
|
912
|
-
|
|
913
|
-
t[1] ||=
|
|
914
|
-
t[2] ||=
|
|
1053
|
+
j(Y, ["enter"]),
|
|
1054
|
+
t[1] ||= j((e) => xe(e, 1), ["up"]),
|
|
1055
|
+
t[2] ||= j((e) => xe(e, -1), ["down"])
|
|
915
1056
|
],
|
|
916
1057
|
onInput: t[3] ||= (e) => {
|
|
917
|
-
me(e),
|
|
1058
|
+
me(e), ge();
|
|
918
1059
|
},
|
|
919
|
-
onChange:
|
|
920
|
-
}, null, 40,
|
|
921
|
-
G.value ? (
|
|
922
|
-
|
|
1060
|
+
onChange: _e
|
|
1061
|
+
}, null, 40, jn), [[O, H.value]]), p.percent ? (b(), c("span", Mn, "%")) : s("", !0)])),
|
|
1062
|
+
G.value ? (b(), c("span", Nn, T(G.value), 1)) : s("", !0),
|
|
1063
|
+
y.value ? (b(), c("div", Pn, [d(E(le), {
|
|
923
1064
|
class: "slider-root",
|
|
924
1065
|
"model-value": W.value,
|
|
925
|
-
min:
|
|
1066
|
+
min: C.value,
|
|
926
1067
|
max: M.value,
|
|
927
1068
|
step: ne.value,
|
|
928
|
-
"onUpdate:modelValue":
|
|
1069
|
+
"onUpdate:modelValue": X,
|
|
929
1070
|
onValueCommit: be
|
|
930
1071
|
}, {
|
|
931
|
-
default:
|
|
932
|
-
default:
|
|
1072
|
+
default: A(() => [d(E(de), { class: "slider-track" }, {
|
|
1073
|
+
default: A(() => [d(E(ce), { class: "slider-range" })]),
|
|
933
1074
|
_: 1
|
|
934
|
-
}), (
|
|
1075
|
+
}), (b(!0), c(i, null, S(W.value, (e, t) => (b(), o(E(ue), {
|
|
935
1076
|
key: t,
|
|
936
1077
|
class: "slider-thumb",
|
|
937
|
-
"aria-label":
|
|
1078
|
+
"aria-label": ye(t)
|
|
938
1079
|
}, {
|
|
939
|
-
default:
|
|
1080
|
+
default: A(() => [l("span", Fn, T(I(e)), 1)]),
|
|
940
1081
|
_: 2
|
|
941
1082
|
}, 1032, ["aria-label"]))), 128))]),
|
|
942
1083
|
_: 1
|
|
@@ -945,54 +1086,57 @@ var ln = {
|
|
|
945
1086
|
"min",
|
|
946
1087
|
"max",
|
|
947
1088
|
"step"
|
|
948
|
-
]), l("div",
|
|
1089
|
+
]), l("div", In, [l("span", null, T(I(C.value)), 1), l("span", null, T(I(M.value)), 1)])])) : s("", !0)
|
|
949
1090
|
]),
|
|
950
1091
|
_: 1
|
|
951
1092
|
}, 8, ["class"]));
|
|
952
1093
|
}
|
|
953
|
-
}), [["__scopeId", "data-v-b123853e"]]),
|
|
1094
|
+
}), [["__scopeId", "data-v-b123853e"]]), Rn = ["data-size", "aria-label"], zn = /* @__PURE__ */ p({
|
|
954
1095
|
__name: "Spinner",
|
|
955
1096
|
props: {
|
|
956
1097
|
size: { default: "sm" },
|
|
957
1098
|
label: {}
|
|
958
1099
|
},
|
|
959
1100
|
setup(e) {
|
|
960
|
-
return (t, n) => (
|
|
1101
|
+
return (t, n) => (b(), c("span", {
|
|
961
1102
|
class: "Spinner",
|
|
962
1103
|
"data-size": e.size,
|
|
963
1104
|
role: "status",
|
|
964
1105
|
"aria-label": e.label ?? "Loading"
|
|
965
|
-
}, null, 8,
|
|
1106
|
+
}, null, 8, Rn));
|
|
966
1107
|
}
|
|
967
|
-
}),
|
|
1108
|
+
}), Bn = /* @__PURE__ */ p({
|
|
968
1109
|
__name: "ParamEditor",
|
|
969
1110
|
props: {
|
|
970
1111
|
value: {},
|
|
971
1112
|
format: {},
|
|
972
1113
|
height: {},
|
|
1114
|
+
fontSize: {},
|
|
973
1115
|
filename: {}
|
|
974
1116
|
},
|
|
975
1117
|
emits: ["apply"],
|
|
976
1118
|
setup(e) {
|
|
977
1119
|
let t = f({
|
|
978
|
-
loader: () => import("./ParamEditorImpl-
|
|
979
|
-
loadingComponent:
|
|
1120
|
+
loader: () => import("./ParamEditorImpl-BLZRogrw.js"),
|
|
1121
|
+
loadingComponent: zn,
|
|
980
1122
|
delay: 100
|
|
981
1123
|
});
|
|
982
|
-
return (n, r) => (
|
|
1124
|
+
return (n, r) => (b(), o(E(t), {
|
|
983
1125
|
value: e.value,
|
|
984
1126
|
format: e.format,
|
|
985
1127
|
height: e.height,
|
|
1128
|
+
"font-size": e.fontSize,
|
|
986
1129
|
filename: e.filename,
|
|
987
1130
|
onApply: r[0] ||= (e) => n.$emit("apply", e)
|
|
988
1131
|
}, null, 8, [
|
|
989
1132
|
"value",
|
|
990
1133
|
"format",
|
|
991
1134
|
"height",
|
|
1135
|
+
"font-size",
|
|
992
1136
|
"filename"
|
|
993
1137
|
]));
|
|
994
1138
|
}
|
|
995
|
-
}),
|
|
1139
|
+
}), Vn = ["data-collapsed"], Hn = { class: "SidebarRail" }, Un = { class: "Sidebar" }, Wn = { class: "SidebarScroll" }, Gn = { class: "SidebarHeader" }, Kn = { class: "Main" }, qn = { class: "TabsBar" }, Jn = { class: "TabsBarEnd" }, Yn = { class: "MainScroll" }, Xn = { class: "MainContent" }, Zn = { class: "Topbar" }, Qn = { class: "TopbarEnd" }, $n = { class: "MainScroll" }, er = { class: "MainContent" }, tr = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
996
1140
|
__name: "SidebarLayout",
|
|
997
1141
|
props: /* @__PURE__ */ h({
|
|
998
1142
|
hideTopbar: { type: Boolean },
|
|
@@ -1003,84 +1147,84 @@ var ln = {
|
|
|
1003
1147
|
}),
|
|
1004
1148
|
emits: ["update:tab"],
|
|
1005
1149
|
setup(e) {
|
|
1006
|
-
let t = m()?.appContext.config.globalProperties, n = t?.$router, r = e, f =
|
|
1150
|
+
let t = m()?.appContext.config.globalProperties, n = t?.$router, r = e, f = D(e, "tab"), p = window.matchMedia("(max-width: 767px)"), h = x(p.matches), g = x(p.matches);
|
|
1007
1151
|
function _(e) {
|
|
1008
1152
|
h.value = e.matches, g.value = e.matches;
|
|
1009
1153
|
}
|
|
1010
1154
|
ee(() => {
|
|
1011
1155
|
p.addEventListener("change", _);
|
|
1012
|
-
}),
|
|
1156
|
+
}), y(() => {
|
|
1013
1157
|
p.removeEventListener("change", _);
|
|
1014
1158
|
});
|
|
1015
|
-
function
|
|
1159
|
+
function v() {
|
|
1016
1160
|
g.value = !g.value;
|
|
1017
1161
|
}
|
|
1018
|
-
let
|
|
1162
|
+
let w = a(() => !!n && r.tabs?.some((e) => e.to)), O = a({
|
|
1019
1163
|
get() {
|
|
1020
1164
|
return f.value ?? r.tabs?.[0]?.value;
|
|
1021
1165
|
},
|
|
1022
1166
|
set(e) {
|
|
1023
|
-
if (e && (f.value = e,
|
|
1167
|
+
if (e && (f.value = e, w.value && n)) {
|
|
1024
1168
|
let t = r.tabs?.find((t) => t.value === e);
|
|
1025
1169
|
t?.to && n.push(t.to);
|
|
1026
1170
|
}
|
|
1027
1171
|
}
|
|
1028
1172
|
});
|
|
1029
|
-
return t &&
|
|
1030
|
-
if (!e || !
|
|
1173
|
+
return t && k(() => t.$route?.path, (e) => {
|
|
1174
|
+
if (!e || !w.value) return;
|
|
1031
1175
|
let t = r.tabs?.find((t) => t.to === e);
|
|
1032
1176
|
t && (f.value = t.value);
|
|
1033
|
-
}, { immediate: !0 }), (t, n) => (
|
|
1177
|
+
}, { immediate: !0 }), (t, n) => (b(), c("div", {
|
|
1034
1178
|
class: "SidebarLayout",
|
|
1035
1179
|
"data-collapsed": g.value
|
|
1036
|
-
}, [l("div",
|
|
1180
|
+
}, [l("div", Hn, [l("aside", Un, [l("div", Wn, [l("div", Gn, [l("button", {
|
|
1037
1181
|
type: "button",
|
|
1038
1182
|
class: "Toggle",
|
|
1039
1183
|
"aria-label": "Collapse sidebar",
|
|
1040
1184
|
title: "Collapse sidebar",
|
|
1041
|
-
onClick:
|
|
1185
|
+
onClick: v
|
|
1042
1186
|
}, [d(Q, {
|
|
1043
1187
|
icon: "keyboard_double_arrow_left",
|
|
1044
1188
|
size: "sm"
|
|
1045
|
-
})])]),
|
|
1189
|
+
})])]), C(t.$slots, "sidebar", {}, void 0, !0)])]), l("button", {
|
|
1046
1190
|
type: "button",
|
|
1047
1191
|
class: "Toggle Toggle--expand",
|
|
1048
1192
|
"aria-label": "Expand sidebar",
|
|
1049
1193
|
title: "Expand sidebar",
|
|
1050
|
-
onClick:
|
|
1194
|
+
onClick: v
|
|
1051
1195
|
}, [d(Q, {
|
|
1052
1196
|
icon: "keyboard_double_arrow_right",
|
|
1053
1197
|
size: "sm"
|
|
1054
|
-
})])]), l("main",
|
|
1198
|
+
})])]), l("main", Kn, [e.tabs?.length ? (b(), o(E(U), {
|
|
1055
1199
|
key: 0,
|
|
1056
|
-
"model-value":
|
|
1200
|
+
"model-value": O.value,
|
|
1057
1201
|
class: "TabsLayout",
|
|
1058
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1202
|
+
"onUpdate:modelValue": n[0] ||= (e) => O.value = e
|
|
1059
1203
|
}, {
|
|
1060
|
-
default:
|
|
1061
|
-
h.value && g.value ? (
|
|
1204
|
+
default: A(() => [l("div", qn, [
|
|
1205
|
+
h.value && g.value ? (b(), c("button", {
|
|
1062
1206
|
key: 0,
|
|
1063
1207
|
type: "button",
|
|
1064
1208
|
class: "Toggle",
|
|
1065
1209
|
"aria-label": "Expand sidebar",
|
|
1066
1210
|
title: "Expand sidebar",
|
|
1067
|
-
onClick:
|
|
1211
|
+
onClick: v
|
|
1068
1212
|
}, [d(Q, {
|
|
1069
1213
|
icon: "keyboard_double_arrow_right",
|
|
1070
1214
|
size: "sm"
|
|
1071
1215
|
})])) : s("", !0),
|
|
1072
|
-
d(
|
|
1216
|
+
d(E(H), {
|
|
1073
1217
|
class: "TabsList",
|
|
1074
1218
|
"aria-label": "Tabs"
|
|
1075
1219
|
}, {
|
|
1076
|
-
default:
|
|
1220
|
+
default: A(() => [(b(!0), c(i, null, S(e.tabs, (e) => (b(), o(E(W), {
|
|
1077
1221
|
key: e.value,
|
|
1078
1222
|
value: e.value,
|
|
1079
1223
|
class: "TabsTrigger"
|
|
1080
1224
|
}, {
|
|
1081
|
-
default:
|
|
1225
|
+
default: A(() => [u(T(e.label), 1)]),
|
|
1082
1226
|
_: 2
|
|
1083
|
-
}, 1032, ["value"]))), 128)), d(
|
|
1227
|
+
}, 1032, ["value"]))), 128)), d(E(V), {
|
|
1084
1228
|
class: "TabsIndicator",
|
|
1085
1229
|
style: {
|
|
1086
1230
|
width: "var(--reka-tabs-indicator-size)",
|
|
@@ -1089,25 +1233,25 @@ var ln = {
|
|
|
1089
1233
|
})]),
|
|
1090
1234
|
_: 1
|
|
1091
1235
|
}),
|
|
1092
|
-
l("div",
|
|
1093
|
-
]), l("div",
|
|
1236
|
+
l("div", Jn, [C(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (b(), o(gn, { key: 0 }))])
|
|
1237
|
+
]), l("div", Yn, [l("div", Xn, [C(t.$slots, "default", {}, void 0, !0)])])]),
|
|
1094
1238
|
_: 3
|
|
1095
|
-
}, 8, ["model-value"])) : (
|
|
1239
|
+
}, 8, ["model-value"])) : (b(), c(i, { key: 1 }, [l("div", Zn, [h.value && g.value ? (b(), c("button", {
|
|
1096
1240
|
key: 0,
|
|
1097
1241
|
type: "button",
|
|
1098
1242
|
class: "Toggle",
|
|
1099
1243
|
"aria-label": "Expand sidebar",
|
|
1100
1244
|
title: "Expand sidebar",
|
|
1101
|
-
onClick:
|
|
1245
|
+
onClick: v
|
|
1102
1246
|
}, [d(Q, {
|
|
1103
1247
|
icon: "keyboard_double_arrow_right",
|
|
1104
1248
|
size: "sm"
|
|
1105
|
-
})])) : s("", !0), l("div",
|
|
1249
|
+
})])) : s("", !0), l("div", Qn, [C(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (b(), o(gn, { key: 0 }))])]), l("div", $n, [l("div", er, [C(t.$slots, "default", {}, void 0, !0)])])], 64))])], 8, Vn));
|
|
1106
1250
|
}
|
|
1107
|
-
}), [["__scopeId", "data-v-6d59601d"]]),
|
|
1251
|
+
}), [["__scopeId", "data-v-6d59601d"]]), nr = {
|
|
1108
1252
|
key: 0,
|
|
1109
1253
|
class: "input-label"
|
|
1110
|
-
},
|
|
1254
|
+
}, rr = ["placeholder"], ir = { key: 1 }, ar = ["placeholder"], or = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
1111
1255
|
__name: "TextInput",
|
|
1112
1256
|
props: /* @__PURE__ */ h({
|
|
1113
1257
|
label: {},
|
|
@@ -1120,32 +1264,32 @@ var ln = {
|
|
|
1120
1264
|
}),
|
|
1121
1265
|
emits: ["update:modelValue"],
|
|
1122
1266
|
setup(e) {
|
|
1123
|
-
let t =
|
|
1124
|
-
|
|
1267
|
+
let t = D(e, "modelValue"), n = x(t.value);
|
|
1268
|
+
k(t, (e) => {
|
|
1125
1269
|
n.value = e;
|
|
1126
1270
|
});
|
|
1127
1271
|
function r() {
|
|
1128
1272
|
t.value = n.value;
|
|
1129
1273
|
}
|
|
1130
1274
|
let i = e;
|
|
1131
|
-
return (e, t) => i.label ? (
|
|
1275
|
+
return (e, t) => i.label ? (b(), c("label", nr, [l("span", { class: _(["input-label-row", { "visually-hidden": i.hideLabel }]) }, [u(T(i.label) + " ", 1), i.hint && !i.hideLabel ? (b(), o($, {
|
|
1132
1276
|
key: 0,
|
|
1133
1277
|
text: i.hint
|
|
1134
|
-
}, null, 8, ["text"])) : s("", !0)], 2),
|
|
1278
|
+
}, null, 8, ["text"])) : s("", !0)], 2), te(l("input", {
|
|
1135
1279
|
type: "text",
|
|
1136
1280
|
"onUpdate:modelValue": t[0] ||= (e) => n.value = e,
|
|
1137
1281
|
placeholder: i.placeholder,
|
|
1138
1282
|
onBlur: r,
|
|
1139
|
-
onKeydown:
|
|
1140
|
-
}, null, 40,
|
|
1283
|
+
onKeydown: j(r, ["enter"])
|
|
1284
|
+
}, null, 40, rr), [[O, n.value]])])) : (b(), c("div", ir, [te(l("input", {
|
|
1141
1285
|
type: "text",
|
|
1142
1286
|
"onUpdate:modelValue": t[1] ||= (e) => n.value = e,
|
|
1143
1287
|
placeholder: i.placeholder,
|
|
1144
1288
|
onBlur: r,
|
|
1145
|
-
onKeydown:
|
|
1146
|
-
}, null, 40,
|
|
1289
|
+
onKeydown: j(r, ["enter"])
|
|
1290
|
+
}, null, 40, ar), [[O, n.value]])]));
|
|
1147
1291
|
}
|
|
1148
|
-
}), [["__scopeId", "data-v-3f3d20cc"]]),
|
|
1292
|
+
}), [["__scopeId", "data-v-3f3d20cc"]]), sr = { class: "toggle" }, cr = ["for"], lr = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
1149
1293
|
__name: "Toggle",
|
|
1150
1294
|
props: /* @__PURE__ */ h({
|
|
1151
1295
|
label: {},
|
|
@@ -1157,21 +1301,21 @@ var ln = {
|
|
|
1157
1301
|
}),
|
|
1158
1302
|
emits: ["update:modelValue"],
|
|
1159
1303
|
setup(e) {
|
|
1160
|
-
let t =
|
|
1161
|
-
return (i, a) => (
|
|
1162
|
-
l("label", { for:
|
|
1163
|
-
n.hint ? (
|
|
1304
|
+
let t = D(e, "modelValue"), n = e, r = J();
|
|
1305
|
+
return (i, a) => (b(), c("div", sr, [
|
|
1306
|
+
l("label", { for: E(r) }, T(e.label), 9, cr),
|
|
1307
|
+
n.hint ? (b(), o($, {
|
|
1164
1308
|
key: 0,
|
|
1165
1309
|
text: n.hint
|
|
1166
1310
|
}, null, 8, ["text"])) : s("", !0),
|
|
1167
|
-
d(
|
|
1168
|
-
id:
|
|
1311
|
+
d(E(B), {
|
|
1312
|
+
id: E(r),
|
|
1169
1313
|
modelValue: t.value,
|
|
1170
1314
|
"onUpdate:modelValue": a[0] ||= (e) => t.value = e,
|
|
1171
1315
|
disabled: e.disabled,
|
|
1172
1316
|
class: "switch"
|
|
1173
1317
|
}, {
|
|
1174
|
-
default:
|
|
1318
|
+
default: A(() => [d(E(fe), { class: "thumb" })]),
|
|
1175
1319
|
_: 1
|
|
1176
1320
|
}, 8, [
|
|
1177
1321
|
"id",
|
|
@@ -1180,6 +1324,61 @@ var ln = {
|
|
|
1180
1324
|
])
|
|
1181
1325
|
]));
|
|
1182
1326
|
}
|
|
1183
|
-
}), [["__scopeId", "data-v-9916c71e"]])
|
|
1327
|
+
}), [["__scopeId", "data-v-9916c71e"]]), ur = { class: "toggle-group-field" }, dr = ["id"], fr = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
1328
|
+
__name: "ToggleGroup",
|
|
1329
|
+
props: /* @__PURE__ */ h({
|
|
1330
|
+
options: {},
|
|
1331
|
+
multiple: { type: Boolean },
|
|
1332
|
+
label: {},
|
|
1333
|
+
hideLabel: { type: Boolean },
|
|
1334
|
+
ariaLabel: {},
|
|
1335
|
+
hint: {},
|
|
1336
|
+
disabled: { type: Boolean },
|
|
1337
|
+
orientation: { default: "horizontal" }
|
|
1338
|
+
}, {
|
|
1339
|
+
modelValue: {},
|
|
1340
|
+
modelModifiers: {}
|
|
1341
|
+
}),
|
|
1342
|
+
emits: ["update:modelValue"],
|
|
1343
|
+
setup(e) {
|
|
1344
|
+
let t = D(e, "modelValue"), n = e, r = J(), l = a(() => n.multiple ? "multiple" : "single");
|
|
1345
|
+
return (n, a) => (b(), c("div", ur, [e.label ? (b(), c("label", {
|
|
1346
|
+
key: 0,
|
|
1347
|
+
id: `${E(r)}-label`,
|
|
1348
|
+
class: _(["toggle-group-label", { "visually-hidden": e.hideLabel }])
|
|
1349
|
+
}, [u(T(e.label) + " ", 1), e.hint && !e.hideLabel ? (b(), o($, {
|
|
1350
|
+
key: 0,
|
|
1351
|
+
text: e.hint
|
|
1352
|
+
}, null, 8, ["text"])) : s("", !0)], 10, dr)) : s("", !0), d(E(pe), {
|
|
1353
|
+
modelValue: t.value,
|
|
1354
|
+
"onUpdate:modelValue": a[0] ||= (e) => t.value = e,
|
|
1355
|
+
type: l.value,
|
|
1356
|
+
disabled: e.disabled,
|
|
1357
|
+
orientation: e.orientation,
|
|
1358
|
+
class: _(["toggle-group", `toggle-group--${e.orientation}`]),
|
|
1359
|
+
"aria-labelledby": e.label ? `${E(r)}-label` : void 0,
|
|
1360
|
+
"aria-label": e.label ? void 0 : e.ariaLabel
|
|
1361
|
+
}, {
|
|
1362
|
+
default: A(() => [(b(!0), c(i, null, S(e.options, (e) => (b(), o(E(G), {
|
|
1363
|
+
key: e.value,
|
|
1364
|
+
value: e.value,
|
|
1365
|
+
disabled: e.disabled,
|
|
1366
|
+
class: "toggle-group-item"
|
|
1367
|
+
}, {
|
|
1368
|
+
default: A(() => [u(T(e.label), 1)]),
|
|
1369
|
+
_: 2
|
|
1370
|
+
}, 1032, ["value", "disabled"]))), 128))]),
|
|
1371
|
+
_: 1
|
|
1372
|
+
}, 8, [
|
|
1373
|
+
"modelValue",
|
|
1374
|
+
"type",
|
|
1375
|
+
"disabled",
|
|
1376
|
+
"orientation",
|
|
1377
|
+
"class",
|
|
1378
|
+
"aria-labelledby",
|
|
1379
|
+
"aria-label"
|
|
1380
|
+
])]));
|
|
1381
|
+
}
|
|
1382
|
+
}), [["__scopeId", "data-v-efb7da4d"]]);
|
|
1184
1383
|
//#endregion
|
|
1185
|
-
export { n as Box, t as Button,
|
|
1384
|
+
export { n as Box, t as Button, ye as ButtonGroup, xe as Container, Se as Expander, ke as Grid, $ as Hint, Q as Icon, gn as LightDarkToggle, Sn as MultiSelect, Ln as NumberInput, Bn as ParamEditor, r as SelectBox, tr as SidebarLayout, zn as Spinner, or as TextInput, lr as Toggle, fr as ToggleGroup, Pe as hasIcon, Me as registerIcons };
|