@cfasim-ui/components 0.4.5 → 0.4.7
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/ParamEditor/ParamEditor.d.ts +16 -0
- package/dist/ParamEditor/ParamEditor.spec.d.ts +1 -0
- package/dist/ParamEditor/ParamEditor.test.d.ts +1 -0
- package/dist/ParamEditor/ParamEditorImpl.d.ts +20 -0
- package/dist/ParamEditorImpl-CcsMO4k-.js +20284 -0
- package/dist/SelectBox-BDCkOxe1.js +135 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +326 -427
- package/package.json +11 -2
package/dist/index.js
CHANGED
|
@@ -1,65 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
props: {
|
|
7
|
-
variant: {},
|
|
8
|
-
bgColor: {},
|
|
9
|
-
textColor: {},
|
|
10
|
-
role: {}
|
|
11
|
-
},
|
|
12
|
-
setup(e) {
|
|
13
|
-
return (t, n) => (h(), i("div", {
|
|
14
|
-
class: d(["box", e.variant ? `box-${e.variant}` : void 0]),
|
|
15
|
-
style: f({
|
|
16
|
-
backgroundColor: e.bgColor,
|
|
17
|
-
color: e.textColor
|
|
18
|
-
}),
|
|
19
|
-
role: e.role
|
|
20
|
-
}, [_(t.$slots, "default", {}, void 0, !0)], 14, fe));
|
|
21
|
-
}
|
|
22
|
-
}), q = (e, t) => {
|
|
23
|
-
let n = e.__vccOpts || e;
|
|
24
|
-
for (let [e, r] of t) n[e] = r;
|
|
25
|
-
return n;
|
|
26
|
-
}, J = /* @__PURE__ */ q(pe, [["__scopeId", "data-v-d7342c02"]]), me = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
27
|
-
__name: "Button",
|
|
28
|
-
props: {
|
|
29
|
-
label: {},
|
|
30
|
-
variant: { default: "primary" },
|
|
31
|
-
asChild: { type: Boolean },
|
|
32
|
-
as: { default: "button" }
|
|
33
|
-
},
|
|
34
|
-
emits: ["click"],
|
|
35
|
-
setup(e) {
|
|
36
|
-
return (t, r) => (h(), n(b(j), {
|
|
37
|
-
class: "button",
|
|
38
|
-
"data-variant": e.variant,
|
|
39
|
-
as: e.as,
|
|
40
|
-
"as-child": e.asChild,
|
|
41
|
-
onClick: r[0] ||= (e) => t.$emit("click", e)
|
|
42
|
-
}, {
|
|
43
|
-
default: w(() => [_(t.$slots, "default", {}, () => [o(y(e.label), 1)], !0)]),
|
|
44
|
-
_: 3
|
|
45
|
-
}, 8, [
|
|
46
|
-
"data-variant",
|
|
47
|
-
"as",
|
|
48
|
-
"as-child"
|
|
49
|
-
]));
|
|
50
|
-
}
|
|
51
|
-
}), [["__scopeId", "data-v-250eab18"]]), he = {
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./SelectBox-BDCkOxe1.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 ee, mergeModels as m, normalizeClass as h, normalizeStyle as g, onMounted as te, onUnmounted as _, openBlock as v, ref as y, renderList as ne, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useModel as w, vModelText as T, watch as E, withCtx as D, withDirectives as O, withKeys as k, withModifiers as A } from "vue";
|
|
3
|
+
import { CollapsibleContent as j, CollapsibleRoot as re, CollapsibleTrigger as ie, SliderRange as ae, SliderRoot as oe, SliderThumb as se, SliderTrack as ce, SwitchRoot as le, SwitchThumb as M, TabsIndicator as N, TabsList as P, TabsRoot as ue, TabsTrigger as F, TooltipArrow as I, TooltipContent as L, TooltipPortal as de, TooltipProvider as R, TooltipRoot as z, TooltipTrigger as B, useId as V } from "reka-ui";
|
|
4
|
+
//#region src/_internal/gap.ts
|
|
5
|
+
var H = {
|
|
52
6
|
none: "0",
|
|
53
7
|
small: "var(--space-2)",
|
|
54
8
|
medium: "var(--space-4)",
|
|
55
9
|
large: "var(--space-6)"
|
|
56
10
|
};
|
|
57
|
-
function
|
|
58
|
-
return e == null ?
|
|
11
|
+
function U(e, t = "medium") {
|
|
12
|
+
return e == null ? H[t] : e in H ? H[e] : e;
|
|
59
13
|
}
|
|
60
14
|
//#endregion
|
|
61
15
|
//#region src/Container/Container.vue
|
|
62
|
-
var
|
|
16
|
+
var W = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
63
17
|
__name: "Container",
|
|
64
18
|
props: {
|
|
65
19
|
border: { type: Boolean },
|
|
@@ -68,25 +22,25 @@ var X = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
68
22
|
gap: {}
|
|
69
23
|
},
|
|
70
24
|
setup(e) {
|
|
71
|
-
let
|
|
72
|
-
let e =
|
|
25
|
+
let t = e, n = a(() => U(t.gap)), r = a(() => {
|
|
26
|
+
let e = t.height;
|
|
73
27
|
if (e != null) return typeof e == "number" ? `${e}px` : e;
|
|
74
28
|
});
|
|
75
|
-
return (t,
|
|
76
|
-
class:
|
|
29
|
+
return (t, i) => (v(), c("div", {
|
|
30
|
+
class: h(["container", {
|
|
77
31
|
"container-border": e.border,
|
|
78
32
|
"container-horizontal": e.horizontal,
|
|
79
33
|
"container-scrollable": e.height != null
|
|
80
34
|
}]),
|
|
81
|
-
style:
|
|
82
|
-
gap:
|
|
83
|
-
height:
|
|
35
|
+
style: g({
|
|
36
|
+
gap: n.value,
|
|
37
|
+
height: r.value
|
|
84
38
|
})
|
|
85
|
-
}, [
|
|
39
|
+
}, [b(t.$slots, "default", {}, void 0, !0)], 6));
|
|
86
40
|
}
|
|
87
|
-
}), [["__scopeId", "data-v-bff01edb"]]),
|
|
41
|
+
}), [["__scopeId", "data-v-bff01edb"]]), G = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
88
42
|
__name: "Expander",
|
|
89
|
-
props: /* @__PURE__ */
|
|
43
|
+
props: /* @__PURE__ */ m({ label: {} }, {
|
|
90
44
|
open: {
|
|
91
45
|
type: Boolean,
|
|
92
46
|
default: !1
|
|
@@ -95,54 +49,54 @@ var X = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
95
49
|
}),
|
|
96
50
|
emits: ["update:open"],
|
|
97
51
|
setup(e) {
|
|
98
|
-
let t =
|
|
99
|
-
return (
|
|
52
|
+
let t = w(e, "open");
|
|
53
|
+
return (n, r) => (v(), o(C(re), {
|
|
100
54
|
open: t.value,
|
|
101
|
-
"onUpdate:open":
|
|
55
|
+
"onUpdate:open": r[0] ||= (e) => t.value = e,
|
|
102
56
|
class: "expander"
|
|
103
57
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
default:
|
|
58
|
+
default: D(() => [d(C(ie), { class: "expander-trigger" }, {
|
|
59
|
+
default: D(() => [l("span", { class: h(["expander-caret", { open: t.value }]) }, null, 2), b(n.$slots, "label", {}, () => [u(S(e.label), 1)], !0)]),
|
|
106
60
|
_: 3
|
|
107
|
-
}),
|
|
108
|
-
default:
|
|
61
|
+
}), d(C(j), { class: "expander-content" }, {
|
|
62
|
+
default: D(() => [b(n.$slots, "default", {}, void 0, !0)]),
|
|
109
63
|
_: 3
|
|
110
64
|
})]),
|
|
111
65
|
_: 3
|
|
112
66
|
}, 8, ["open"]));
|
|
113
67
|
}
|
|
114
|
-
}), [["__scopeId", "data-v-39e4acd0"]]),
|
|
115
|
-
function
|
|
68
|
+
}), [["__scopeId", "data-v-39e4acd0"]]), K = ["data-cfasim-grid-bp"], fe = "640px";
|
|
69
|
+
function pe(e) {
|
|
116
70
|
return typeof e == "number" ? `repeat(${e}, 1fr)` : e.map((e) => typeof e == "number" ? `${e}fr` : e).join(" ");
|
|
117
71
|
}
|
|
118
|
-
function
|
|
119
|
-
return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e :
|
|
72
|
+
function me(e) {
|
|
73
|
+
return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e : fe;
|
|
120
74
|
}
|
|
121
|
-
var
|
|
122
|
-
function
|
|
75
|
+
var q = /* @__PURE__ */ new Map();
|
|
76
|
+
function he(e) {
|
|
123
77
|
if (typeof document > "u") return;
|
|
124
|
-
let t =
|
|
78
|
+
let t = q.get(e);
|
|
125
79
|
if (t) {
|
|
126
80
|
t.count++;
|
|
127
81
|
return;
|
|
128
82
|
}
|
|
129
83
|
let n = document.createElement("style");
|
|
130
|
-
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),
|
|
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), q.set(e, {
|
|
131
85
|
count: 1,
|
|
132
86
|
el: n
|
|
133
87
|
});
|
|
134
88
|
}
|
|
135
|
-
function
|
|
89
|
+
function ge(e) {
|
|
136
90
|
if (typeof document > "u") return;
|
|
137
|
-
let t =
|
|
138
|
-
t && (t.count--, t.count === 0 && (t.el.remove(),
|
|
91
|
+
let t = q.get(e);
|
|
92
|
+
t && (t.count--, t.count === 0 && (t.el.remove(), q.delete(e)));
|
|
139
93
|
}
|
|
140
94
|
(void 0)?.dispose(() => {
|
|
141
|
-
|
|
95
|
+
q.forEach(({ el: e }) => e.remove()), q.clear();
|
|
142
96
|
});
|
|
143
97
|
//#endregion
|
|
144
98
|
//#region src/Grid/Grid.vue
|
|
145
|
-
var
|
|
99
|
+
var J = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
146
100
|
__name: "Grid",
|
|
147
101
|
props: {
|
|
148
102
|
cols: {},
|
|
@@ -152,31 +106,31 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
152
106
|
minColWidth: {}
|
|
153
107
|
},
|
|
154
108
|
setup(e) {
|
|
155
|
-
let
|
|
156
|
-
|
|
109
|
+
let t = e, n = a(() => U(t.gap)), r = a(() => t.minColWidth ? `repeat(auto-fit, minmax(${t.minColWidth}, 1fr))` : pe(t.cols ?? 2)), i = a(() => t.minColWidth || t.colsSmall == null ? r.value : pe(t.colsSmall)), o = a(() => me(t.breakpoint ?? fe)), s = null, u = E(o, (e) => {
|
|
110
|
+
s !== e && (he(e), s && ge(s), s = e);
|
|
157
111
|
}, { immediate: !0 });
|
|
158
|
-
return
|
|
159
|
-
u(),
|
|
160
|
-
}), (e, t) => (
|
|
161
|
-
"data-cfasim-grid-bp":
|
|
112
|
+
return _(() => {
|
|
113
|
+
u(), s &&= (ge(s), null);
|
|
114
|
+
}), (e, t) => (v(), c("div", {
|
|
115
|
+
"data-cfasim-grid-bp": o.value,
|
|
162
116
|
class: "grid-wrapper"
|
|
163
|
-
}, [
|
|
117
|
+
}, [l("div", {
|
|
164
118
|
class: "grid",
|
|
165
|
-
style:
|
|
166
|
-
gap:
|
|
167
|
-
gridTemplateColumns:
|
|
168
|
-
"--grid-cols-small":
|
|
119
|
+
style: g({
|
|
120
|
+
gap: n.value,
|
|
121
|
+
gridTemplateColumns: r.value,
|
|
122
|
+
"--grid-cols-small": i.value
|
|
169
123
|
})
|
|
170
|
-
}, [
|
|
124
|
+
}, [b(e.$slots, "default", {}, void 0, !0)], 4)], 8, K));
|
|
171
125
|
}
|
|
172
|
-
}), [["__scopeId", "data-v-7ae87f0f"]]),
|
|
126
|
+
}), [["__scopeId", "data-v-7ae87f0f"]]), Y = [
|
|
173
127
|
"data-size",
|
|
174
128
|
"data-fill",
|
|
175
129
|
"data-inline",
|
|
176
130
|
"aria-hidden",
|
|
177
131
|
"aria-label",
|
|
178
132
|
"role"
|
|
179
|
-
],
|
|
133
|
+
], X = /* @__PURE__ */ p({
|
|
180
134
|
__name: "Icon",
|
|
181
135
|
props: {
|
|
182
136
|
icon: {},
|
|
@@ -198,48 +152,48 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
198
152
|
}
|
|
199
153
|
},
|
|
200
154
|
setup(e) {
|
|
201
|
-
let
|
|
155
|
+
let t = e, n = a(() => typeof t.size == "string" ? t.size : void 0), r = a(() => typeof t.size == "number" ? t.size : void 0), i = a(() => {
|
|
202
156
|
let e = {};
|
|
203
|
-
return
|
|
157
|
+
return r.value !== void 0 && (e.fontSize = `${r.value}px`, e["--icon-opsz"] = r.value), t.weight !== void 0 && (e["--icon-weight"] = t.weight), t.grade !== void 0 && (e["--icon-grade"] = t.grade), e;
|
|
204
158
|
});
|
|
205
|
-
return (t,
|
|
159
|
+
return (t, r) => (v(), c("span", {
|
|
206
160
|
class: "Icon",
|
|
207
|
-
"data-size":
|
|
161
|
+
"data-size": n.value,
|
|
208
162
|
"data-fill": e.fill ? "true" : void 0,
|
|
209
163
|
"data-inline": e.inline ? "true" : void 0,
|
|
210
|
-
style:
|
|
164
|
+
style: g(i.value),
|
|
211
165
|
"aria-hidden": e.decorative ? !0 : void 0,
|
|
212
166
|
"aria-label": e.decorative ? void 0 : e.ariaLabel,
|
|
213
167
|
role: e.decorative ? void 0 : "img"
|
|
214
|
-
},
|
|
168
|
+
}, S(e.icon), 13, Y));
|
|
215
169
|
}
|
|
216
|
-
}),
|
|
170
|
+
}), Z = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
217
171
|
__name: "Hint",
|
|
218
172
|
props: { text: {} },
|
|
219
173
|
setup(e) {
|
|
220
|
-
return (t,
|
|
221
|
-
default:
|
|
174
|
+
return (t, n) => (v(), o(C(R), null, {
|
|
175
|
+
default: D(() => [d(C(z), {
|
|
222
176
|
"delay-duration": 0,
|
|
223
177
|
"disable-closing-trigger": ""
|
|
224
178
|
}, {
|
|
225
|
-
default:
|
|
226
|
-
default:
|
|
179
|
+
default: D(() => [d(C(B), { "as-child": "" }, {
|
|
180
|
+
default: D(() => [l("button", {
|
|
227
181
|
type: "button",
|
|
228
182
|
class: "HintTrigger",
|
|
229
183
|
"aria-label": "More info",
|
|
230
|
-
onPointerdown:
|
|
231
|
-
}, [
|
|
184
|
+
onPointerdown: n[0] ||= A(() => {}, ["prevent"])
|
|
185
|
+
}, [d(X, {
|
|
232
186
|
icon: "help",
|
|
233
187
|
size: 16
|
|
234
188
|
})], 32)]),
|
|
235
189
|
_: 1
|
|
236
|
-
}),
|
|
237
|
-
default:
|
|
190
|
+
}), d(C(de), null, {
|
|
191
|
+
default: D(() => [d(C(L), {
|
|
238
192
|
class: "HintContent",
|
|
239
193
|
side: "top",
|
|
240
194
|
"side-offset": 4
|
|
241
195
|
}, {
|
|
242
|
-
default:
|
|
196
|
+
default: D(() => [u(S(e.text) + " ", 1), d(C(I), {
|
|
243
197
|
class: "HintArrow",
|
|
244
198
|
width: 10,
|
|
245
199
|
height: 5
|
|
@@ -253,45 +207,45 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
253
207
|
_: 1
|
|
254
208
|
}));
|
|
255
209
|
}
|
|
256
|
-
}), [["__scopeId", "data-v-9dbf1c25"]]),
|
|
210
|
+
}), [["__scopeId", "data-v-9dbf1c25"]]), _e = ["aria-label"], Q = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
257
211
|
__name: "LightDarkToggle",
|
|
258
212
|
setup(e) {
|
|
259
|
-
let t =
|
|
213
|
+
let t = y(window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
260
214
|
function n(e) {
|
|
261
215
|
document.documentElement.classList.toggle("dark", e), document.documentElement.classList.toggle("light", !e);
|
|
262
216
|
}
|
|
263
|
-
return n(t.value),
|
|
217
|
+
return n(t.value), E(t, n), (e, n) => (v(), c("button", {
|
|
264
218
|
class: "light-dark-toggle",
|
|
265
219
|
type: "button",
|
|
266
220
|
"aria-label": t.value ? "Switch to light mode" : "Switch to dark mode",
|
|
267
221
|
onClick: n[0] ||= (e) => t.value = !t.value
|
|
268
|
-
}, [
|
|
222
|
+
}, [d(X, {
|
|
269
223
|
icon: t.value ? "dark_mode" : "light_mode",
|
|
270
224
|
size: "sm"
|
|
271
|
-
}, null, 8, ["icon"])], 8,
|
|
225
|
+
}, null, 8, ["icon"])], 8, _e));
|
|
272
226
|
}
|
|
273
|
-
}), [["__scopeId", "data-v-4c423498"]]),
|
|
227
|
+
}), [["__scopeId", "data-v-4c423498"]]), ve = {
|
|
274
228
|
key: 1,
|
|
275
229
|
class: "input-wrapper"
|
|
276
|
-
},
|
|
230
|
+
}, ye = [
|
|
277
231
|
"inputmode",
|
|
278
232
|
"placeholder",
|
|
279
233
|
"aria-invalid",
|
|
280
234
|
"aria-required",
|
|
281
235
|
"required"
|
|
282
|
-
],
|
|
236
|
+
], be = {
|
|
283
237
|
key: 0,
|
|
284
238
|
class: "input-suffix"
|
|
285
|
-
},
|
|
239
|
+
}, xe = {
|
|
286
240
|
key: 2,
|
|
287
241
|
class: "input-error",
|
|
288
242
|
role: "alert"
|
|
289
|
-
},
|
|
243
|
+
}, Se = {
|
|
290
244
|
key: 3,
|
|
291
245
|
class: "slider-container"
|
|
292
|
-
},
|
|
246
|
+
}, Ce = { class: "slider-current" }, we = { class: "slider-labels" }, Te = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
293
247
|
__name: "NumberInput",
|
|
294
|
-
props: /* @__PURE__ */
|
|
248
|
+
props: /* @__PURE__ */ m({
|
|
295
249
|
label: {},
|
|
296
250
|
hideLabel: { type: Boolean },
|
|
297
251
|
placeholder: {},
|
|
@@ -322,92 +276,92 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
322
276
|
"update:lower",
|
|
323
277
|
"update:upper"
|
|
324
278
|
],
|
|
325
|
-
setup(
|
|
326
|
-
let
|
|
327
|
-
function
|
|
279
|
+
setup(e) {
|
|
280
|
+
let t = w(e, "modelValue"), n = w(e, "range"), r = w(e, "lower"), f = w(e, "upper"), p = e;
|
|
281
|
+
function m(e) {
|
|
328
282
|
return Array.isArray(e) && e.length === 2;
|
|
329
283
|
}
|
|
330
|
-
let
|
|
331
|
-
|
|
332
|
-
|
|
284
|
+
let g = ee()?.vnode.props, _ = !!g?.["onUpdate:range"] || !!g?.["onUpdate:lower"] || !!g?.["onUpdate:upper"] || n.value !== void 0 || r.value !== void 0 || f.value !== void 0, b = a(() => !!p.slider || _);
|
|
285
|
+
te(() => {
|
|
286
|
+
_ && 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.");
|
|
333
287
|
});
|
|
334
|
-
let
|
|
335
|
-
function
|
|
288
|
+
let A = a(() => p.min ?? (p.percent, 0)), j = a(() => p.max ?? (p.percent ? 1 : 100)), re = a(() => p.step ?? (p.percent ? .01 : 1));
|
|
289
|
+
function ie(e) {
|
|
336
290
|
if (!Number.isFinite(e) || Number.isInteger(e)) return 0;
|
|
337
291
|
let t = parseFloat(Math.abs(e).toPrecision(12)).toString(), n = t.indexOf(".");
|
|
338
292
|
if (n !== -1) return t.length - n - 1;
|
|
339
293
|
let r = t.indexOf("e-");
|
|
340
294
|
return r === -1 ? 0 : Number(t.slice(r + 2));
|
|
341
295
|
}
|
|
342
|
-
let
|
|
343
|
-
function
|
|
296
|
+
let le = a(() => p.step == null ? 1 : p.percent ? p.step * 100 : p.step), M = a(() => p.min == null ? p.percent ? 0 : void 0 : p.percent ? p.min * 100 : p.min), N = a(() => p.max == null ? p.percent ? 100 : void 0 : p.percent ? p.max * 100 : p.max), P = a(() => p.numberType === "integer" ? 0 : p.decimals == null ? ie(le.value) : Math.max(0, p.decimals));
|
|
297
|
+
function ue(e, t) {
|
|
344
298
|
let n = 10 ** t;
|
|
345
299
|
return Math.round(e * n) / n;
|
|
346
300
|
}
|
|
347
|
-
function
|
|
301
|
+
function F(e) {
|
|
348
302
|
if (e == null) return "";
|
|
349
|
-
if (
|
|
350
|
-
let t =
|
|
351
|
-
return
|
|
303
|
+
if (p.sliderDisplay) return p.sliderDisplay(e);
|
|
304
|
+
let t = P.value;
|
|
305
|
+
return p.percent ? (e * 100).toFixed(t) + "%" : e.toLocaleString("en-US", {
|
|
352
306
|
minimumFractionDigits: t,
|
|
353
307
|
maximumFractionDigits: t
|
|
354
308
|
});
|
|
355
309
|
}
|
|
356
|
-
function
|
|
357
|
-
return e == null || !
|
|
310
|
+
function I(e) {
|
|
311
|
+
return e == null || !p.percent ? e : ue(e * 100, P.value);
|
|
358
312
|
}
|
|
359
|
-
function
|
|
360
|
-
return
|
|
313
|
+
function L(e) {
|
|
314
|
+
return p.percent ? e / 100 : e;
|
|
361
315
|
}
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
364
|
-
let t =
|
|
365
|
-
return t == null ? e :
|
|
316
|
+
function de(e) {
|
|
317
|
+
if (p.numberType !== "integer") return e;
|
|
318
|
+
let t = I(e);
|
|
319
|
+
return t == null ? e : L(Math.trunc(t));
|
|
366
320
|
}
|
|
367
|
-
function
|
|
321
|
+
function R(e) {
|
|
368
322
|
return e == null ? "" : e.toLocaleString("en-US");
|
|
369
323
|
}
|
|
370
|
-
function
|
|
324
|
+
function z(e) {
|
|
371
325
|
if (e == null) return "";
|
|
372
|
-
let t =
|
|
326
|
+
let t = P.value;
|
|
373
327
|
if (t > 0) return e.toLocaleString("en-US", {
|
|
374
328
|
minimumFractionDigits: t,
|
|
375
329
|
maximumFractionDigits: t
|
|
376
330
|
});
|
|
377
|
-
let n =
|
|
378
|
-
return
|
|
331
|
+
let n = R(e);
|
|
332
|
+
return p.numberType === "float" && Number.isInteger(e) ? n + ".0" : n;
|
|
379
333
|
}
|
|
380
|
-
function
|
|
334
|
+
function B(e) {
|
|
381
335
|
return e.replace(/,/g, "");
|
|
382
336
|
}
|
|
383
|
-
function
|
|
384
|
-
if (
|
|
385
|
-
let e =
|
|
386
|
-
return t !== void 0 ||
|
|
337
|
+
function V() {
|
|
338
|
+
if (_) {
|
|
339
|
+
let e = n.value, t = r.value ?? e?.[0], i = f.value ?? e?.[1];
|
|
340
|
+
return t !== void 0 || i !== void 0 ? [t ?? A.value, i ?? j.value] : void 0;
|
|
387
341
|
}
|
|
388
|
-
return
|
|
342
|
+
return t.value;
|
|
389
343
|
}
|
|
390
|
-
let H =
|
|
344
|
+
let H = V(), U = y(z(I(typeof H == "number" ? H : void 0)));
|
|
391
345
|
function W(e) {
|
|
392
|
-
return
|
|
346
|
+
return _ ? m(e) ? [e[0], e[1]] : [A.value, j.value] : typeof e == "number" ? [e] : [A.value];
|
|
393
347
|
}
|
|
394
|
-
let G =
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
348
|
+
let G = y(W(H)), K = y();
|
|
349
|
+
E([
|
|
350
|
+
t,
|
|
351
|
+
n,
|
|
352
|
+
r,
|
|
353
|
+
f
|
|
400
354
|
], () => {
|
|
401
|
-
let e =
|
|
402
|
-
!
|
|
355
|
+
let e = V();
|
|
356
|
+
!_ && !m(e) && (U.value = z(I(e))), G.value = W(e), K.value = Y(e);
|
|
403
357
|
});
|
|
404
358
|
let fe = /[^0-9,.\-+eE]/g;
|
|
405
359
|
function pe(e) {
|
|
406
|
-
let t = e.target, n =
|
|
360
|
+
let t = e.target, n = B(t.value);
|
|
407
361
|
if (n === "" || n === "-" || n.endsWith(".") || n.includes(".") && n.endsWith("0")) return;
|
|
408
362
|
let r = Number(n);
|
|
409
363
|
if (Number.isNaN(r)) return;
|
|
410
|
-
let i =
|
|
364
|
+
let i = R(r);
|
|
411
365
|
if (i === t.value) return;
|
|
412
366
|
let a = t.selectionStart ?? 0, o = (t.value.slice(0, a).match(/,/g) || []).length;
|
|
413
367
|
U.value = i, requestAnimationFrame(() => {
|
|
@@ -419,118 +373,118 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
419
373
|
r < e && (n = i.length), t.setSelectionRange(n, n);
|
|
420
374
|
});
|
|
421
375
|
}
|
|
422
|
-
function q() {
|
|
423
|
-
if (Z(), U.value.trim() === "") return;
|
|
424
|
-
let e = Number(V(U.value));
|
|
425
|
-
Number.isNaN(e) || (U.value = B(e));
|
|
426
|
-
}
|
|
427
|
-
let J = null;
|
|
428
376
|
function me() {
|
|
429
|
-
|
|
377
|
+
if (X(), U.value.trim() === "") return;
|
|
378
|
+
let e = Number(B(U.value));
|
|
379
|
+
Number.isNaN(e) || (U.value = z(e));
|
|
430
380
|
}
|
|
381
|
+
let q = null;
|
|
431
382
|
function he() {
|
|
432
|
-
!
|
|
383
|
+
!p.live || b.value || (q && clearTimeout(q), q = setTimeout(X, 300));
|
|
433
384
|
}
|
|
434
|
-
function
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
385
|
+
function ge() {
|
|
386
|
+
!p.live || b.value || (q && clearTimeout(q), X());
|
|
387
|
+
}
|
|
388
|
+
function J(e) {
|
|
389
|
+
let t = I(e);
|
|
390
|
+
if (M.value != null && t < M.value) return `Min ${M.value}${p.percent ? "%" : ""}`;
|
|
391
|
+
if (N.value != null && t > N.value) return `Max ${N.value}${p.percent ? "%" : ""}`;
|
|
438
392
|
}
|
|
439
|
-
function
|
|
440
|
-
if (e == null) return
|
|
441
|
-
if (
|
|
442
|
-
let t =
|
|
393
|
+
function Y(e) {
|
|
394
|
+
if (e == null) return p.required ? "Required" : void 0;
|
|
395
|
+
if (m(e)) {
|
|
396
|
+
let t = J(e[0]);
|
|
443
397
|
if (t) return `${t} (lower)`;
|
|
444
|
-
let n =
|
|
398
|
+
let n = J(e[1]);
|
|
445
399
|
return n ? `${n} (upper)` : void 0;
|
|
446
400
|
}
|
|
447
|
-
return
|
|
401
|
+
return J(e);
|
|
448
402
|
}
|
|
449
|
-
function
|
|
450
|
-
let e =
|
|
403
|
+
function X() {
|
|
404
|
+
let e = t.value;
|
|
451
405
|
if (U.value.trim() === "") {
|
|
452
|
-
|
|
406
|
+
t.value = void 0, G.value = W(void 0), K.value = Y(void 0);
|
|
453
407
|
return;
|
|
454
408
|
}
|
|
455
|
-
let
|
|
456
|
-
if (!/\d/.test(
|
|
457
|
-
U.value =
|
|
409
|
+
let n = U.value.replace(fe, "");
|
|
410
|
+
if (!/\d/.test(n)) {
|
|
411
|
+
U.value = z(I(e)), K.value = Y(e);
|
|
458
412
|
return;
|
|
459
413
|
}
|
|
460
|
-
|
|
461
|
-
let
|
|
462
|
-
if (Number.isNaN(
|
|
463
|
-
|
|
464
|
-
let
|
|
465
|
-
K.value =
|
|
414
|
+
n !== U.value && (U.value = n);
|
|
415
|
+
let r = Number(B(n));
|
|
416
|
+
if (Number.isNaN(r)) return;
|
|
417
|
+
p.numberType === "integer" && (r = Math.trunc(r), U.value = z(r));
|
|
418
|
+
let i = L(r), a = Y(i);
|
|
419
|
+
K.value = a, !a && (t.value = i, G.value = [i]);
|
|
466
420
|
}
|
|
467
|
-
function
|
|
468
|
-
let
|
|
469
|
-
G.value =
|
|
421
|
+
function _e(e, i) {
|
|
422
|
+
let a = e.map(de);
|
|
423
|
+
G.value = a, _ || (U.value = z(I(a[0]))), i && (_ ? (n.value = [a[0], a[1]], r.value = a[0], f.value = a[1]) : t.value = a[0]);
|
|
470
424
|
}
|
|
471
|
-
function
|
|
472
|
-
if (
|
|
425
|
+
function Q(e) {
|
|
426
|
+
if (p.label) return _ ? e === 0 ? `${p.label} (lower)` : `${p.label} (upper)` : p.label;
|
|
473
427
|
}
|
|
474
|
-
function
|
|
475
|
-
e &&
|
|
428
|
+
function Te(e) {
|
|
429
|
+
e && _e(e, !!p.live);
|
|
476
430
|
}
|
|
477
|
-
function
|
|
478
|
-
e &&
|
|
431
|
+
function Ee(e) {
|
|
432
|
+
e && _e(e, !0);
|
|
479
433
|
}
|
|
480
|
-
function
|
|
434
|
+
function $(e, n) {
|
|
481
435
|
e.preventDefault();
|
|
482
|
-
let
|
|
483
|
-
|
|
484
|
-
let
|
|
485
|
-
|
|
436
|
+
let r = Number(B(U.value)), i = (Number.isNaN(r) ? 0 : r) + le.value * (e.shiftKey ? 10 : 1) * n;
|
|
437
|
+
p.numberType === "integer" && (i = Math.trunc(i)), M.value != null && (i = Math.max(i, M.value)), N.value != null && (i = Math.min(i, N.value)), U.value = z(i);
|
|
438
|
+
let a = L(i);
|
|
439
|
+
t.value = a, G.value = [a];
|
|
486
440
|
}
|
|
487
|
-
return (
|
|
488
|
-
default:
|
|
489
|
-
|
|
441
|
+
return (e, t) => (v(), o(x(p.label ? "label" : "div"), { class: h(p.label ? "input-label" : void 0) }, {
|
|
442
|
+
default: D(() => [
|
|
443
|
+
p.label ? (v(), c("span", {
|
|
490
444
|
key: 0,
|
|
491
|
-
class:
|
|
492
|
-
}, [
|
|
445
|
+
class: h(["input-label-row", { "visually-hidden": p.hideLabel }])
|
|
446
|
+
}, [u(S(p.label) + " ", 1), p.hint && !p.hideLabel ? (v(), o(Z, {
|
|
493
447
|
key: 0,
|
|
494
|
-
text:
|
|
495
|
-
}, null, 8, ["text"])) :
|
|
496
|
-
|
|
448
|
+
text: p.hint
|
|
449
|
+
}, null, 8, ["text"])) : s("", !0)], 2)) : s("", !0),
|
|
450
|
+
b.value ? s("", !0) : (v(), c("span", ve, [O(l("input", {
|
|
497
451
|
type: "text",
|
|
498
|
-
inputmode:
|
|
499
|
-
"onUpdate:modelValue":
|
|
500
|
-
placeholder:
|
|
452
|
+
inputmode: p.numberType === "integer" ? "numeric" : "decimal",
|
|
453
|
+
"onUpdate:modelValue": t[0] ||= (e) => U.value = e,
|
|
454
|
+
placeholder: p.placeholder,
|
|
501
455
|
"aria-invalid": !!K.value,
|
|
502
|
-
"aria-required":
|
|
503
|
-
required:
|
|
504
|
-
onBlur:
|
|
456
|
+
"aria-required": p.required || void 0,
|
|
457
|
+
required: p.required,
|
|
458
|
+
onBlur: me,
|
|
505
459
|
onKeydown: [
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
460
|
+
k(X, ["enter"]),
|
|
461
|
+
t[1] ||= k((e) => $(e, 1), ["up"]),
|
|
462
|
+
t[2] ||= k((e) => $(e, -1), ["down"])
|
|
509
463
|
],
|
|
510
|
-
onInput:
|
|
511
|
-
pe(e),
|
|
464
|
+
onInput: t[3] ||= (e) => {
|
|
465
|
+
pe(e), he();
|
|
512
466
|
},
|
|
513
|
-
onChange:
|
|
514
|
-
}, null, 40,
|
|
515
|
-
K.value ? (
|
|
516
|
-
|
|
467
|
+
onChange: ge
|
|
468
|
+
}, null, 40, ye), [[T, U.value]]), p.percent ? (v(), c("span", be, "%")) : s("", !0)])),
|
|
469
|
+
K.value ? (v(), c("span", xe, S(K.value), 1)) : s("", !0),
|
|
470
|
+
b.value ? (v(), c("div", Se, [d(C(oe), {
|
|
517
471
|
class: "slider-root",
|
|
518
472
|
"model-value": G.value,
|
|
519
|
-
min:
|
|
520
|
-
max:
|
|
521
|
-
step:
|
|
522
|
-
"onUpdate:modelValue":
|
|
523
|
-
onValueCommit:
|
|
473
|
+
min: A.value,
|
|
474
|
+
max: j.value,
|
|
475
|
+
step: re.value,
|
|
476
|
+
"onUpdate:modelValue": Te,
|
|
477
|
+
onValueCommit: Ee
|
|
524
478
|
}, {
|
|
525
|
-
default:
|
|
526
|
-
default:
|
|
479
|
+
default: D(() => [d(C(ce), { class: "slider-track" }, {
|
|
480
|
+
default: D(() => [d(C(ae), { class: "slider-range" })]),
|
|
527
481
|
_: 1
|
|
528
|
-
}), (
|
|
482
|
+
}), (v(!0), c(i, null, ne(G.value, (e, t) => (v(), o(C(se), {
|
|
529
483
|
key: t,
|
|
530
484
|
class: "slider-thumb",
|
|
531
|
-
"aria-label":
|
|
485
|
+
"aria-label": Q(t)
|
|
532
486
|
}, {
|
|
533
|
-
default:
|
|
487
|
+
default: D(() => [l("span", Ce, S(F(e)), 1)]),
|
|
534
488
|
_: 2
|
|
535
489
|
}, 1032, ["aria-label"]))), 128))]),
|
|
536
490
|
_: 1
|
|
@@ -539,96 +493,56 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
539
493
|
"min",
|
|
540
494
|
"max",
|
|
541
495
|
"step"
|
|
542
|
-
]),
|
|
496
|
+
]), l("div", we, [l("span", null, S(F(A.value)), 1), l("span", null, S(F(j.value)), 1)])])) : s("", !0)
|
|
543
497
|
]),
|
|
544
498
|
_: 1
|
|
545
499
|
}, 8, ["class"]));
|
|
546
500
|
}
|
|
547
|
-
}), [["__scopeId", "data-v-db116f99"]]),
|
|
548
|
-
__name: "
|
|
549
|
-
props:
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
_: 1
|
|
589
|
-
}, 8, ["aria-labelledby", "aria-label"]), s(b(re), null, {
|
|
590
|
-
default: w(() => [s(b(M), {
|
|
591
|
-
class: "select-content",
|
|
592
|
-
position: "popper",
|
|
593
|
-
"side-offset": 4,
|
|
594
|
-
"body-lock": !1
|
|
595
|
-
}, {
|
|
596
|
-
default: w(() => [s(b(ie), { class: "select-viewport" }, {
|
|
597
|
-
default: w(() => [(h(!0), i(e, null, ee(t.options, (e) => (h(), n(b(N), {
|
|
598
|
-
key: e.value,
|
|
599
|
-
value: e.value,
|
|
600
|
-
class: "select-item"
|
|
601
|
-
}, {
|
|
602
|
-
default: w(() => [s(b(ne), null, {
|
|
603
|
-
default: w(() => [o(y(e.label), 1)]),
|
|
604
|
-
_: 2
|
|
605
|
-
}, 1024), s(b(te), { class: "select-indicator" }, {
|
|
606
|
-
default: w(() => [...p[2] ||= [a("svg", {
|
|
607
|
-
width: "12",
|
|
608
|
-
height: "12",
|
|
609
|
-
viewBox: "0 0 12 12",
|
|
610
|
-
fill: "none",
|
|
611
|
-
stroke: "currentColor",
|
|
612
|
-
"stroke-width": "2",
|
|
613
|
-
"stroke-linecap": "round",
|
|
614
|
-
"stroke-linejoin": "round"
|
|
615
|
-
}, [a("path", { d: "M2 6L5 9L10 3" })], -1)]]),
|
|
616
|
-
_: 1
|
|
617
|
-
})]),
|
|
618
|
-
_: 2
|
|
619
|
-
}, 1032, ["value"]))), 128))]),
|
|
620
|
-
_: 1
|
|
621
|
-
})]),
|
|
622
|
-
_: 1
|
|
623
|
-
})]),
|
|
624
|
-
_: 1
|
|
625
|
-
})]),
|
|
626
|
-
_: 1
|
|
627
|
-
}, 8, ["modelValue"])]));
|
|
501
|
+
}), [["__scopeId", "data-v-db116f99"]]), Ee = ["data-size", "aria-label"], $ = /* @__PURE__ */ p({
|
|
502
|
+
__name: "Spinner",
|
|
503
|
+
props: {
|
|
504
|
+
size: { default: "sm" },
|
|
505
|
+
label: {}
|
|
506
|
+
},
|
|
507
|
+
setup(e) {
|
|
508
|
+
return (t, n) => (v(), c("span", {
|
|
509
|
+
class: "Spinner",
|
|
510
|
+
"data-size": e.size,
|
|
511
|
+
role: "status",
|
|
512
|
+
"aria-label": e.label ?? "Loading"
|
|
513
|
+
}, null, 8, Ee));
|
|
514
|
+
}
|
|
515
|
+
}), De = /* @__PURE__ */ p({
|
|
516
|
+
__name: "ParamEditor",
|
|
517
|
+
props: {
|
|
518
|
+
value: {},
|
|
519
|
+
format: {},
|
|
520
|
+
height: {},
|
|
521
|
+
filename: {}
|
|
522
|
+
},
|
|
523
|
+
emits: ["apply"],
|
|
524
|
+
setup(e) {
|
|
525
|
+
let t = f({
|
|
526
|
+
loader: () => import("./ParamEditorImpl-CcsMO4k-.js"),
|
|
527
|
+
loadingComponent: $,
|
|
528
|
+
delay: 100
|
|
529
|
+
});
|
|
530
|
+
return (n, r) => (v(), o(C(t), {
|
|
531
|
+
value: e.value,
|
|
532
|
+
format: e.format,
|
|
533
|
+
height: e.height,
|
|
534
|
+
filename: e.filename,
|
|
535
|
+
onApply: r[0] ||= (e) => n.$emit("apply", e)
|
|
536
|
+
}, null, 8, [
|
|
537
|
+
"value",
|
|
538
|
+
"format",
|
|
539
|
+
"height",
|
|
540
|
+
"filename"
|
|
541
|
+
]));
|
|
628
542
|
}
|
|
629
|
-
}),
|
|
543
|
+
}), Oe = ["data-collapsed"], ke = { class: "SidebarRail" }, Ae = { class: "Sidebar" }, je = { class: "SidebarScroll" }, Me = { class: "SidebarHeader" }, Ne = { class: "Main" }, Pe = { class: "TabsBar" }, Fe = { class: "TabsBarEnd" }, Ie = { class: "MainScroll" }, Le = { class: "MainContent" }, Re = { class: "Topbar" }, ze = { class: "TopbarEnd" }, Be = { class: "MainScroll" }, Ve = { class: "MainContent" }, He = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
630
544
|
__name: "SidebarLayout",
|
|
631
|
-
props: /* @__PURE__ */
|
|
545
|
+
props: /* @__PURE__ */ m({
|
|
632
546
|
hideTopbar: { type: Boolean },
|
|
633
547
|
tabs: {}
|
|
634
548
|
}, {
|
|
@@ -636,86 +550,85 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
636
550
|
tabModifiers: {}
|
|
637
551
|
}),
|
|
638
552
|
emits: ["update:tab"],
|
|
639
|
-
setup(
|
|
640
|
-
let
|
|
641
|
-
function
|
|
642
|
-
|
|
553
|
+
setup(e) {
|
|
554
|
+
let t = ee()?.appContext.config.globalProperties, n = t?.$router, r = e, f = w(e, "tab"), p = window.matchMedia("(max-width: 767px)"), m = y(p.matches), h = y(p.matches);
|
|
555
|
+
function g(e) {
|
|
556
|
+
m.value = e.matches, h.value = e.matches;
|
|
643
557
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}),
|
|
647
|
-
|
|
558
|
+
te(() => {
|
|
559
|
+
p.addEventListener("change", g);
|
|
560
|
+
}), _(() => {
|
|
561
|
+
p.removeEventListener("change", g);
|
|
648
562
|
});
|
|
649
|
-
function
|
|
650
|
-
|
|
563
|
+
function x() {
|
|
564
|
+
h.value = !h.value;
|
|
651
565
|
}
|
|
652
|
-
let
|
|
566
|
+
let T = a(() => !!n && r.tabs?.some((e) => e.to)), O = a({
|
|
653
567
|
get() {
|
|
654
|
-
return
|
|
568
|
+
return f.value ?? r.tabs?.[0]?.value;
|
|
655
569
|
},
|
|
656
570
|
set(e) {
|
|
657
|
-
if (e && (
|
|
658
|
-
let t =
|
|
659
|
-
t?.to &&
|
|
571
|
+
if (e && (f.value = e, T.value && n)) {
|
|
572
|
+
let t = r.tabs?.find((t) => t.value === e);
|
|
573
|
+
t?.to && n.push(t.to);
|
|
660
574
|
}
|
|
661
575
|
}
|
|
662
576
|
});
|
|
663
|
-
return
|
|
664
|
-
if (
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}, { immediate: !0 }), (t, l) => (h(), i("div", {
|
|
577
|
+
return t && E(() => t.$route?.path, (e) => {
|
|
578
|
+
if (!e || !T.value) return;
|
|
579
|
+
let t = r.tabs?.find((t) => t.to === e);
|
|
580
|
+
t && (f.value = t.value);
|
|
581
|
+
}, { immediate: !0 }), (t, n) => (v(), c("div", {
|
|
669
582
|
class: "SidebarLayout",
|
|
670
|
-
"data-collapsed":
|
|
671
|
-
}, [
|
|
583
|
+
"data-collapsed": h.value
|
|
584
|
+
}, [l("div", ke, [l("aside", Ae, [l("div", je, [l("div", Me, [l("button", {
|
|
672
585
|
type: "button",
|
|
673
586
|
class: "Toggle",
|
|
674
587
|
"aria-label": "Collapse sidebar",
|
|
675
588
|
title: "Collapse sidebar",
|
|
676
|
-
onClick:
|
|
677
|
-
}, [
|
|
589
|
+
onClick: x
|
|
590
|
+
}, [d(X, {
|
|
678
591
|
icon: "keyboard_double_arrow_left",
|
|
679
592
|
size: "sm"
|
|
680
|
-
})])]),
|
|
593
|
+
})])]), b(t.$slots, "sidebar", {}, void 0, !0)])]), l("button", {
|
|
681
594
|
type: "button",
|
|
682
595
|
class: "Toggle Toggle--expand",
|
|
683
596
|
"aria-label": "Expand sidebar",
|
|
684
597
|
title: "Expand sidebar",
|
|
685
|
-
onClick:
|
|
686
|
-
}, [
|
|
598
|
+
onClick: x
|
|
599
|
+
}, [d(X, {
|
|
687
600
|
icon: "keyboard_double_arrow_right",
|
|
688
601
|
size: "sm"
|
|
689
|
-
})])]),
|
|
602
|
+
})])]), l("main", Ne, [e.tabs?.length ? (v(), o(C(ue), {
|
|
690
603
|
key: 0,
|
|
691
|
-
"model-value":
|
|
604
|
+
"model-value": O.value,
|
|
692
605
|
class: "TabsLayout",
|
|
693
|
-
"onUpdate:modelValue":
|
|
606
|
+
"onUpdate:modelValue": n[0] ||= (e) => O.value = e
|
|
694
607
|
}, {
|
|
695
|
-
default:
|
|
696
|
-
|
|
608
|
+
default: D(() => [l("div", Pe, [
|
|
609
|
+
m.value && h.value ? (v(), c("button", {
|
|
697
610
|
key: 0,
|
|
698
611
|
type: "button",
|
|
699
612
|
class: "Toggle",
|
|
700
613
|
"aria-label": "Expand sidebar",
|
|
701
614
|
title: "Expand sidebar",
|
|
702
|
-
onClick:
|
|
703
|
-
}, [
|
|
615
|
+
onClick: x
|
|
616
|
+
}, [d(X, {
|
|
704
617
|
icon: "keyboard_double_arrow_right",
|
|
705
618
|
size: "sm"
|
|
706
|
-
})])) :
|
|
707
|
-
|
|
619
|
+
})])) : s("", !0),
|
|
620
|
+
d(C(P), {
|
|
708
621
|
class: "TabsList",
|
|
709
622
|
"aria-label": "Tabs"
|
|
710
623
|
}, {
|
|
711
|
-
default:
|
|
624
|
+
default: D(() => [(v(!0), c(i, null, ne(e.tabs, (e) => (v(), o(C(F), {
|
|
712
625
|
key: e.value,
|
|
713
626
|
value: e.value,
|
|
714
627
|
class: "TabsTrigger"
|
|
715
628
|
}, {
|
|
716
|
-
default:
|
|
629
|
+
default: D(() => [u(S(e.label), 1)]),
|
|
717
630
|
_: 2
|
|
718
|
-
}, 1032, ["value"]))), 128)),
|
|
631
|
+
}, 1032, ["value"]))), 128)), d(C(N), {
|
|
719
632
|
class: "TabsIndicator",
|
|
720
633
|
style: {
|
|
721
634
|
width: "var(--reka-tabs-indicator-size)",
|
|
@@ -724,41 +637,27 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
724
637
|
})]),
|
|
725
638
|
_: 1
|
|
726
639
|
}),
|
|
727
|
-
|
|
728
|
-
]),
|
|
640
|
+
l("div", Fe, [b(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (v(), o(Q, { key: 0 }))])
|
|
641
|
+
]), l("div", Ie, [l("div", Le, [b(t.$slots, "default", {}, void 0, !0)])])]),
|
|
729
642
|
_: 3
|
|
730
|
-
}, 8, ["model-value"])) : (
|
|
643
|
+
}, 8, ["model-value"])) : (v(), c(i, { key: 1 }, [l("div", Re, [m.value && h.value ? (v(), c("button", {
|
|
731
644
|
key: 0,
|
|
732
645
|
type: "button",
|
|
733
646
|
class: "Toggle",
|
|
734
647
|
"aria-label": "Expand sidebar",
|
|
735
648
|
title: "Expand sidebar",
|
|
736
|
-
onClick:
|
|
737
|
-
}, [
|
|
649
|
+
onClick: x
|
|
650
|
+
}, [d(X, {
|
|
738
651
|
icon: "keyboard_double_arrow_right",
|
|
739
652
|
size: "sm"
|
|
740
|
-
})])) :
|
|
741
|
-
}
|
|
742
|
-
}), [["__scopeId", "data-v-e0ed7a62"]]), $e = ["data-size", "aria-label"], et = /* @__PURE__ */ c({
|
|
743
|
-
__name: "Spinner",
|
|
744
|
-
props: {
|
|
745
|
-
size: { default: "sm" },
|
|
746
|
-
label: {}
|
|
747
|
-
},
|
|
748
|
-
setup(e) {
|
|
749
|
-
return (t, n) => (h(), i("span", {
|
|
750
|
-
class: "Spinner",
|
|
751
|
-
"data-size": e.size,
|
|
752
|
-
role: "status",
|
|
753
|
-
"aria-label": e.label ?? "Loading"
|
|
754
|
-
}, null, 8, $e));
|
|
653
|
+
})])) : s("", !0), l("div", ze, [b(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (v(), o(Q, { key: 0 }))])]), l("div", Be, [l("div", Ve, [b(t.$slots, "default", {}, void 0, !0)])])], 64))])], 8, Oe));
|
|
755
654
|
}
|
|
756
|
-
}),
|
|
655
|
+
}), [["__scopeId", "data-v-6d59601d"]]), Ue = {
|
|
757
656
|
key: 0,
|
|
758
657
|
class: "input-label"
|
|
759
|
-
},
|
|
658
|
+
}, We = ["placeholder"], Ge = { key: 1 }, Ke = ["placeholder"], qe = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
760
659
|
__name: "TextInput",
|
|
761
|
-
props: /* @__PURE__ */
|
|
660
|
+
props: /* @__PURE__ */ m({
|
|
762
661
|
label: {},
|
|
763
662
|
hideLabel: { type: Boolean },
|
|
764
663
|
placeholder: {},
|
|
@@ -769,34 +668,34 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
769
668
|
}),
|
|
770
669
|
emits: ["update:modelValue"],
|
|
771
670
|
setup(e) {
|
|
772
|
-
let t =
|
|
773
|
-
|
|
774
|
-
|
|
671
|
+
let t = w(e, "modelValue"), n = y(t.value);
|
|
672
|
+
E(t, (e) => {
|
|
673
|
+
n.value = e;
|
|
775
674
|
});
|
|
776
|
-
function
|
|
777
|
-
t.value =
|
|
675
|
+
function r() {
|
|
676
|
+
t.value = n.value;
|
|
778
677
|
}
|
|
779
|
-
let
|
|
780
|
-
return (e, t) =>
|
|
678
|
+
let i = e;
|
|
679
|
+
return (e, t) => i.label ? (v(), c("label", Ue, [l("span", { class: h(["input-label-row", { "visually-hidden": i.hideLabel }]) }, [u(S(i.label) + " ", 1), i.hint && !i.hideLabel ? (v(), o(Z, {
|
|
781
680
|
key: 0,
|
|
782
|
-
text:
|
|
783
|
-
}, null, 8, ["text"])) :
|
|
681
|
+
text: i.hint
|
|
682
|
+
}, null, 8, ["text"])) : s("", !0)], 2), O(l("input", {
|
|
784
683
|
type: "text",
|
|
785
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
786
|
-
placeholder:
|
|
787
|
-
onBlur:
|
|
788
|
-
onKeydown:
|
|
789
|
-
}, null, 40,
|
|
684
|
+
"onUpdate:modelValue": t[0] ||= (e) => n.value = e,
|
|
685
|
+
placeholder: i.placeholder,
|
|
686
|
+
onBlur: r,
|
|
687
|
+
onKeydown: k(r, ["enter"])
|
|
688
|
+
}, null, 40, We), [[T, n.value]])])) : (v(), c("div", Ge, [O(l("input", {
|
|
790
689
|
type: "text",
|
|
791
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
792
|
-
placeholder:
|
|
793
|
-
onBlur:
|
|
794
|
-
onKeydown:
|
|
795
|
-
}, null, 40,
|
|
690
|
+
"onUpdate:modelValue": t[1] ||= (e) => n.value = e,
|
|
691
|
+
placeholder: i.placeholder,
|
|
692
|
+
onBlur: r,
|
|
693
|
+
onKeydown: k(r, ["enter"])
|
|
694
|
+
}, null, 40, Ke), [[T, n.value]])]));
|
|
796
695
|
}
|
|
797
|
-
}), [["__scopeId", "data-v-3f3d20cc"]]),
|
|
696
|
+
}), [["__scopeId", "data-v-3f3d20cc"]]), Je = { class: "toggle" }, Ye = ["for"], Xe = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
798
697
|
__name: "Toggle",
|
|
799
|
-
props: /* @__PURE__ */
|
|
698
|
+
props: /* @__PURE__ */ m({
|
|
800
699
|
label: {},
|
|
801
700
|
hint: {},
|
|
802
701
|
disabled: { type: Boolean }
|
|
@@ -806,21 +705,21 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
806
705
|
}),
|
|
807
706
|
emits: ["update:modelValue"],
|
|
808
707
|
setup(e) {
|
|
809
|
-
let t =
|
|
810
|
-
return (
|
|
811
|
-
|
|
812
|
-
|
|
708
|
+
let t = w(e, "modelValue"), n = e, r = V();
|
|
709
|
+
return (i, a) => (v(), c("div", Je, [
|
|
710
|
+
l("label", { for: C(r) }, S(e.label), 9, Ye),
|
|
711
|
+
n.hint ? (v(), o(Z, {
|
|
813
712
|
key: 0,
|
|
814
|
-
text:
|
|
815
|
-
}, null, 8, ["text"])) :
|
|
816
|
-
|
|
817
|
-
id:
|
|
713
|
+
text: n.hint
|
|
714
|
+
}, null, 8, ["text"])) : s("", !0),
|
|
715
|
+
d(C(le), {
|
|
716
|
+
id: C(r),
|
|
818
717
|
modelValue: t.value,
|
|
819
|
-
"onUpdate:modelValue":
|
|
718
|
+
"onUpdate:modelValue": a[0] ||= (e) => t.value = e,
|
|
820
719
|
disabled: e.disabled,
|
|
821
720
|
class: "switch"
|
|
822
721
|
}, {
|
|
823
|
-
default:
|
|
722
|
+
default: D(() => [d(C(M), { class: "thumb" })]),
|
|
824
723
|
_: 1
|
|
825
724
|
}, 8, [
|
|
826
725
|
"id",
|
|
@@ -831,4 +730,4 @@ var Se = /* @__PURE__ */ q(/* @__PURE__ */ c({
|
|
|
831
730
|
}
|
|
832
731
|
}), [["__scopeId", "data-v-9916c71e"]]);
|
|
833
732
|
//#endregion
|
|
834
|
-
export {
|
|
733
|
+
export { n as Box, t as Button, W as Container, G as Expander, J as Grid, Z as Hint, X as Icon, Q as LightDarkToggle, Te as NumberInput, De as ParamEditor, r as SelectBox, He as SidebarLayout, $ as Spinner, qe as TextInput, Xe as Toggle };
|