@nightshadeui/core 2.7.0 → 2.8.1

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/core.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { createBlock as c, openBlock as i, resolveDynamicComponent as S, normalizeClass as p, withCtx as b, renderSlot as r, createElementBlock as f, createCommentVNode as y, toDisplayString as g, createElementVNode as v, resolveComponent as h, createVNode as O, Fragment as T, mergeProps as k } from "vue";
2
- const d = (t, n) => {
3
- const e = t.__vccOpts || t;
4
- for (const [u, l] of n)
5
- e[u] = l;
1
+ import { openBlock as r, createBlock as y, resolveDynamicComponent as S, normalizeClass as h, withCtx as v, renderSlot as d, createElementBlock as f, createCommentVNode as p, toDisplayString as k, resolveComponent as m, Fragment as T, renderList as A, createElementVNode as b, Transition as V, Teleport as H, withModifiers as z, normalizeStyle as M, mergeProps as x, createVNode as O } from "vue";
2
+ const c = (n, t) => {
3
+ const e = n.__vccOpts || n;
4
+ for (const [l, o] of t)
5
+ e[l] = o;
6
6
  return e;
7
- }, j = {
7
+ }, E = {
8
8
  props: {
9
9
  tagName: { type: String, default: "button" },
10
10
  href: { type: String },
@@ -49,80 +49,240 @@ const d = (t, n) => {
49
49
  },
50
50
  effectiveStyle() {
51
51
  const {
52
- baseStyle: t,
53
- hoverOverrides: n = {},
52
+ baseStyle: n,
53
+ hoverOverrides: t = {},
54
54
  activeOverrides: e = {},
55
- focusOverrides: u = {},
56
- active: l,
57
- hover: o,
58
- focus: s,
59
- forceActive: a,
60
- forceHover: _,
61
- forceFocus: I
62
- } = this, m = Object.assign({}, t);
63
- return (l || a) && Object.assign(m, e), (o || _) && Object.assign(m, n), (s || I) && Object.assign(m, u), m;
55
+ focusOverrides: l = {},
56
+ active: o,
57
+ hover: s,
58
+ focus: a,
59
+ forceActive: i,
60
+ forceHover: u,
61
+ forceFocus: B
62
+ } = this, g = Object.assign({}, n);
63
+ return (o || i) && Object.assign(g, e), (s || u) && Object.assign(g, t), (a || B) && Object.assign(g, l), g;
64
64
  }
65
65
  },
66
66
  methods: {
67
67
  // TODO add debounce
68
68
  }
69
- }, F = {
69
+ }, D = {
70
70
  key: 0,
71
71
  class: "Label"
72
72
  };
73
- function $(t, n, e, u, l, o) {
74
- return i(), c(S(e.tagName), {
73
+ function N(n, t, e, l, o, s) {
74
+ return r(), y(S(e.tagName), {
75
75
  ref: "button",
76
- class: p(["Btn InputElement", [
77
- `Btn-${o.effectiveStyle.kind}`,
78
- `ui-${o.effectiveStyle.kind}`,
79
- `input-size-${o.effectiveStyle.size}`,
76
+ class: h(["Btn InputElement", [
77
+ `ui-${s.effectiveStyle.kind}`,
78
+ `input-size-${s.effectiveStyle.size}`,
80
79
  `Btn-iconPos-${e.iconPos}`,
81
80
  {
82
- "Btn-ghost": o.effectiveStyle.ghost,
83
- "Btn-round": o.effectiveStyle.round,
84
- "Btn-outline": o.effectiveStyle.outline,
85
- "Btn-flat": o.effectiveStyle.flat,
81
+ "Btn-ghost": s.effectiveStyle.ghost,
82
+ "Btn-round": s.effectiveStyle.round,
83
+ "Btn-outline": s.effectiveStyle.outline,
84
+ "Btn-flat": s.effectiveStyle.flat,
86
85
  "Btn-square": e.square,
87
86
  "Btn-block": e.block,
88
- "Btn-disabled": e.disabled || l.blocked,
87
+ "Btn-disabled": e.disabled || o.blocked,
89
88
  "Btn-forceFocus": e.forceFocus,
90
89
  "Btn-forceHover": e.forceHover,
91
90
  "Btn-forceActive": e.forceActive
92
91
  }
93
92
  ]]),
94
- disabled: e.disabled || l.blocked,
93
+ disabled: e.disabled || o.blocked,
95
94
  title: e.title ?? e.label,
96
95
  href: e.href,
97
- onMouseenter: n[0] || (n[0] = (s) => l.hover = !0),
98
- onMouseleave: n[1] || (n[1] = (s) => l.hover = !1),
99
- onMousedown: n[2] || (n[2] = (s) => l.active = !0),
100
- onMouseup: n[3] || (n[3] = (s) => l.active = !1),
101
- onMouseout: n[4] || (n[4] = (s) => l.active = !1),
102
- onFocusin: n[5] || (n[5] = (s) => l.focus = !0),
103
- onFocusout: n[6] || (n[6] = (s) => l.focus = !1)
96
+ onMouseenter: t[0] || (t[0] = (a) => o.hover = !0),
97
+ onMouseleave: t[1] || (t[1] = (a) => o.hover = !1),
98
+ onMousedown: t[2] || (t[2] = (a) => o.active = !0),
99
+ onMouseup: t[3] || (t[3] = (a) => o.active = !1),
100
+ onMouseout: t[4] || (t[4] = (a) => o.active = !1),
101
+ onFocusin: t[5] || (t[5] = (a) => o.focus = !0),
102
+ onFocusout: t[6] || (t[6] = (a) => o.focus = !1)
104
103
  }, {
105
- default: b(() => [
106
- r(t.$slots, "icon", {
107
- hover: l.hover,
108
- blocked: l.blocked
104
+ default: v(() => [
105
+ d(n.$slots, "before", {
106
+ hover: o.hover,
107
+ active: o.active,
108
+ focus: o.focus,
109
+ blocked: o.blocked
110
+ }, void 0, !0),
111
+ d(n.$slots, "default", {
112
+ hover: o.hover,
113
+ active: o.active,
114
+ focus: o.focus,
115
+ blocked: o.blocked
109
116
  }, () => [
110
- e.icon ? (i(), f("i", {
117
+ e.icon ? (r(), f("i", {
111
118
  key: 0,
112
- class: p([e.icon, "Icon"])
113
- }, null, 2)) : y("", !0)
119
+ class: h([e.icon, "Icon"])
120
+ }, null, 2)) : p("", !0),
121
+ d(n.$slots, "label", {
122
+ hover: o.hover,
123
+ active: o.active,
124
+ focus: o.focus,
125
+ blocked: o.blocked
126
+ }, () => [
127
+ e.label ? (r(), f("span", D, k(e.label), 1)) : p("", !0)
128
+ ], !0)
114
129
  ], !0),
115
- e.label ? (i(), f("span", F, g(e.label), 1)) : y("", !0),
116
- r(t.$slots, "default", {
117
- hover: l.hover,
118
- active: l.active,
119
- blocked: l.blocked
130
+ d(n.$slots, "after", {
131
+ hover: o.hover,
132
+ active: o.active,
133
+ focus: o.focus,
134
+ blocked: o.blocked
120
135
  }, void 0, !0)
121
136
  ]),
122
137
  _: 3
123
138
  }, 40, ["class", "disabled", "title", "href"]);
124
139
  }
125
- const C = /* @__PURE__ */ d(j, [["render", $], ["__scopeId", "data-v-05f8e48e"]]), z = {
140
+ const $ = /* @__PURE__ */ c(E, [["render", N], ["__scopeId", "data-v-144a5c7b"]]), L = {
141
+ props: {
142
+ tagName: { type: String, default: "div" },
143
+ align: { type: String, default: "stretch" },
144
+ justify: { type: String },
145
+ gap: { type: String, default: "m" }
146
+ }
147
+ };
148
+ function G(n, t, e, l, o, s) {
149
+ return r(), y(S(e.tagName), {
150
+ class: h(["VGroup", [
151
+ `VGroup-align-${e.align}`,
152
+ `VGroup-justify-${e.justify}`,
153
+ `VGroup-gap-${e.gap}`
154
+ ]])
155
+ }, {
156
+ default: v(() => [
157
+ d(n.$slots, "default", {}, void 0, !0)
158
+ ]),
159
+ _: 3
160
+ }, 8, ["class"]);
161
+ }
162
+ const P = /* @__PURE__ */ c(L, [["render", G], ["__scopeId", "data-v-044d3ec4"]]), R = {
163
+ components: {
164
+ Btn: $,
165
+ VGroup: P
166
+ },
167
+ props: {
168
+ items: { type: Array, default: () => [] },
169
+ size: { type: String, default: "m" },
170
+ round: { type: Boolean, default: !1 },
171
+ autoFocus: { type: Boolean, default: !1 }
172
+ },
173
+ emits: [
174
+ "activate"
175
+ ],
176
+ mounted() {
177
+ this.autoFocus && this.$nextTick(() => {
178
+ const n = this.getFocusableEls()[0];
179
+ n && n.focus();
180
+ });
181
+ },
182
+ methods: {
183
+ getItemType(n) {
184
+ return n.type || "normal";
185
+ },
186
+ getFocusableEls() {
187
+ return Array.from(this.$el.querySelectorAll(".Item:not(:disabled)"));
188
+ },
189
+ onKeyDown(n) {
190
+ if (n.key === "ArrowUp" || n.key === "ArrowDown") {
191
+ n.preventDefault();
192
+ const t = this.getFocusableEls();
193
+ if (!t.length)
194
+ return;
195
+ const e = document.activeElement;
196
+ let l = t.findIndex((o) => o === e || o.contains(e));
197
+ n.key === "ArrowDown" ? l = (l + 1) % t.length : l = (l + t.length - 1) % t.length, t[l]?.focus();
198
+ }
199
+ },
200
+ onItemClick(n, t) {
201
+ n.disabled || (typeof n.activate == "function" && n.activate(), this.$emit("activate", n, t));
202
+ }
203
+ }
204
+ }, K = {
205
+ key: 0,
206
+ class: "Header"
207
+ }, q = {
208
+ key: 1,
209
+ class: "Separator"
210
+ }, U = { class: "Title" }, W = {
211
+ key: 0,
212
+ class: "CheckIcon"
213
+ };
214
+ function Y(n, t, e, l, o, s) {
215
+ const a = m("Btn"), i = m("VGroup");
216
+ return r(), y(i, {
217
+ class: h(["BaseMenu", [
218
+ `input-size-${e.size}`
219
+ ]]),
220
+ onKeydown: s.onKeyDown
221
+ }, {
222
+ default: v(() => [
223
+ (r(!0), f(T, null, A(e.items, (u, B) => (r(), f(T, { key: B }, [
224
+ s.getItemType(u) === "header" ? (r(), f("div", K, k(u.title), 1)) : p("", !0),
225
+ s.getItemType(u) === "separator" ? (r(), f("div", q)) : p("", !0),
226
+ s.getItemType(u) === "normal" ? (r(), y(a, {
227
+ key: 2,
228
+ class: h(["Item", {
229
+ "Item-checked": u.checked
230
+ }]),
231
+ kind: u.kind || "base",
232
+ size: e.size,
233
+ round: e.round,
234
+ flat: !0,
235
+ ghost: u.ghost ?? !0,
236
+ outline: u.outline,
237
+ disabled: u.disabled,
238
+ icon: u.icon,
239
+ onClick: (g) => s.onItemClick(u, g)
240
+ }, {
241
+ label: v(() => [
242
+ b("div", U, k(u.title), 1)
243
+ ]),
244
+ after: v(() => [
245
+ u.checked ? (r(), f("span", W, " ✓ ")) : p("", !0)
246
+ ]),
247
+ _: 2
248
+ }, 1032, ["class", "kind", "size", "round", "ghost", "outline", "disabled", "icon", "onClick"])) : p("", !0)
249
+ ], 64))), 128))
250
+ ]),
251
+ _: 1
252
+ }, 8, ["class", "onKeydown"]);
253
+ }
254
+ const I = /* @__PURE__ */ c(R, [["render", Y], ["__scopeId", "data-v-c6736688"]]), J = {
255
+ props: {
256
+ dir: { type: String, default: "bottom" },
257
+ align: { type: String, default: "start" },
258
+ arrowShown: { type: Boolean, default: !0 }
259
+ }
260
+ }, Q = {
261
+ key: 0,
262
+ class: "Arrow"
263
+ }, X = { class: "Body" };
264
+ function Z(n, t, e, l, o, s) {
265
+ return r(), y(V, {
266
+ name: "fade-" + e.dir,
267
+ appear: ""
268
+ }, {
269
+ default: v(() => [
270
+ b("div", {
271
+ class: h(["Bubble", [
272
+ `Bubble-${e.dir}`,
273
+ `Bubble-${e.align}`
274
+ ]])
275
+ }, [
276
+ e.arrowShown ? (r(), f("div", Q)) : p("", !0),
277
+ b("div", X, [
278
+ d(n.$slots, "default", {}, void 0, !0)
279
+ ])
280
+ ], 2)
281
+ ]),
282
+ _: 3
283
+ }, 8, ["name"]);
284
+ }
285
+ const ee = /* @__PURE__ */ c(J, [["render", Z], ["__scopeId", "data-v-0840cacf"]]), te = {
126
286
  props: {
127
287
  mark: { type: String, default: "check" },
128
288
  modelValue: { type: Boolean },
@@ -162,67 +322,242 @@ const C = /* @__PURE__ */ d(j, [["render", $], ["__scopeId", "data-v-05f8e48e"]]
162
322
  },
163
323
  effectiveStyle() {
164
324
  const {
165
- baseStyle: t,
166
- hoverOverrides: n = {},
325
+ baseStyle: n,
326
+ hoverOverrides: t = {},
167
327
  focusOverrides: e = {},
168
- hover: u,
169
- focus: l,
170
- forceHover: o,
171
- forceFocus: s
172
- } = this, a = Object.assign({}, t);
173
- return (u || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
328
+ hover: l,
329
+ focus: o,
330
+ forceHover: s,
331
+ forceFocus: a
332
+ } = this, i = Object.assign({}, n);
333
+ return (l || s) && Object.assign(i, t), (o || a) && Object.assign(i, e), i;
174
334
  }
175
335
  },
176
336
  methods: {
177
- onChange(t) {
178
- this.$emit("update:modelValue", t.target.checked);
337
+ onChange(n) {
338
+ this.$emit("update:modelValue", n.target.checked);
179
339
  }
180
340
  }
181
- }, H = ["checked", "disabled"];
182
- function w(t, n, e, u, l, o) {
183
- return i(), f("label", {
184
- class: p(["Checkbox InputElement", [
185
- `Checkbox-${o.effectiveStyle.kind}`,
186
- `ui-${o.effectiveStyle.kind}`,
187
- `input-size-${o.effectiveStyle.size}`,
341
+ }, ne = ["checked", "disabled"];
342
+ function oe(n, t, e, l, o, s) {
343
+ return r(), f("label", {
344
+ class: h(["Checkbox InputElement", [
345
+ `ui-${s.effectiveStyle.kind}`,
346
+ `input-size-${s.effectiveStyle.size}`,
188
347
  `Checkbox-mark-${e.mark}`,
189
348
  {
190
349
  "Checkbox-active": !!e.modelValue,
191
- "Checkbox-outline": o.effectiveStyle.outline,
192
- "Checkbox-round": o.effectiveStyle.round,
193
- "Checkbox-flat": o.effectiveStyle.flat,
350
+ "Checkbox-outline": s.effectiveStyle.outline,
351
+ "Checkbox-round": s.effectiveStyle.round,
352
+ "Checkbox-flat": s.effectiveStyle.flat,
194
353
  "Checkbox-disabled": e.disabled,
195
354
  "Checkbox-force-focus": e.forceFocus,
196
355
  "Checkbox-force-hover": e.forceHover
197
356
  }
198
357
  ]]),
199
358
  tabindex: "0",
200
- onMouseenter: n[1] || (n[1] = (s) => l.hover = !0),
201
- onMouseleave: n[2] || (n[2] = (s) => l.hover = !1),
202
- onFocusin: n[3] || (n[3] = (s) => l.focus = !0),
203
- onFocusout: n[4] || (n[4] = (s) => l.focus = !1)
359
+ onMouseenter: t[1] || (t[1] = (a) => o.hover = !0),
360
+ onMouseleave: t[2] || (t[2] = (a) => o.hover = !1),
361
+ onFocusin: t[3] || (t[3] = (a) => o.focus = !0),
362
+ onFocusout: t[4] || (t[4] = (a) => o.focus = !1)
204
363
  }, [
205
- v("input", {
364
+ e.modelValue ? d(n.$slots, "active", { key: 0 }, () => [
365
+ t[5] || (t[5] = b("div", { class: "Mark" }, null, -1))
366
+ ], !0) : p("", !0),
367
+ e.modelValue ? p("", !0) : d(n.$slots, "inactive", { key: 1 }, void 0, !0),
368
+ b("input", {
206
369
  type: "checkbox",
207
370
  checked: e.modelValue,
208
371
  disabled: e.disabled,
209
- onChange: n[0] || (n[0] = (...s) => o.onChange && o.onChange(...s))
210
- }, null, 40, H)
372
+ onChange: t[0] || (t[0] = (...a) => s.onChange && s.onChange(...a))
373
+ }, null, 40, ne)
211
374
  ], 34);
212
375
  }
213
- const N = /* @__PURE__ */ d(z, [["render", w], ["__scopeId", "data-v-7bc3ecd0"]]), M = {
376
+ const se = /* @__PURE__ */ c(te, [["render", oe], ["__scopeId", "data-v-24a3751b"]]);
377
+ function C(n, t) {
378
+ const e = {}, l = Object.keys(t.props || {});
379
+ for (const o of l)
380
+ e[o] = n.$props[o];
381
+ return e;
382
+ }
383
+ const le = {
384
+ props: {
385
+ dir: { type: String, default: "v" },
386
+ align: { type: String, default: "auto" },
387
+ anchorRef: { type: String },
388
+ anchorDir: { type: String, default: "middle" },
389
+ overlayEnabled: { type: Boolean, default: !0 },
390
+ overlayShown: { type: Boolean, default: !0 },
391
+ arrowShown: { type: Boolean, default: !0 }
392
+ },
393
+ emits: ["hide", "mouseenter", "mouseleave", "ready"],
394
+ data() {
395
+ return {
396
+ pos: { x: 0, y: 0 },
397
+ actualDir: "bottom",
398
+ actualAlign: "start",
399
+ ready: !1
400
+ };
401
+ },
402
+ computed: {
403
+ bubbleStyle() {
404
+ const { x: n, y: t } = this.pos;
405
+ return {
406
+ left: `${n}px`,
407
+ top: `${t}px`,
408
+ "pointer-events": "auto"
409
+ };
410
+ }
411
+ },
412
+ mounted() {
413
+ this.$nextTick(() => this.calcPos()), window.addEventListener("resize", this.onResize), window.addEventListener("keydown", this.onKeyDown);
414
+ },
415
+ beforeUnmount() {
416
+ window.removeEventListener("resize", this.onResize), window.removeEventListener("keydown", this.onKeyDown);
417
+ },
418
+ methods: {
419
+ hide() {
420
+ this.$emit("hide");
421
+ },
422
+ calcPos() {
423
+ const n = this.getAnchorEl();
424
+ n && (this.pos = this.getAnchorPoint(n, this.anchorDir), this.calcDirAlign(), this.ready = !0, this.$nextTick(() => this.$emit("ready")));
425
+ },
426
+ calcDirAlign() {
427
+ const n = this.pos.y < window.innerHeight * 0.5, t = this.pos.x < window.innerWidth * 0.5;
428
+ this.align === "auto" ? ["top", "bottom", "v"].includes(this.dir) ? this.actualAlign = t ? "start" : "end" : this.actualAlign = n ? "start" : "end" : this.actualAlign = this.align, this.dir === "v" ? this.actualDir = n ? "bottom" : "top" : this.dir === "h" ? this.actualDir = t ? "right" : "left" : this.actualDir = this.dir;
429
+ },
430
+ getAnchorEl() {
431
+ if (this.anchorRef) {
432
+ const n = this.findRef(this.$parent, this.anchorRef);
433
+ if (n)
434
+ return n;
435
+ }
436
+ return this.$el.parentElement;
437
+ },
438
+ findRef(n, t) {
439
+ if (!n)
440
+ return null;
441
+ const e = n.$refs[t];
442
+ if (e) {
443
+ const l = e.$el ?? e;
444
+ if (l instanceof HTMLElement)
445
+ return l;
446
+ }
447
+ return n.$parent ? this.findRef(n.$parent, t) : null;
448
+ },
449
+ getAnchorPoint(n, t) {
450
+ const { top: e, left: l, width: o, height: s } = n.getBoundingClientRect();
451
+ switch (t) {
452
+ case "left":
453
+ return { x: l, y: e + s * 0.5 };
454
+ case "right":
455
+ return { x: l + o, y: e + s * 0.5 };
456
+ case "top":
457
+ return { x: l + o * 0.5, y: e };
458
+ case "bottom":
459
+ return { x: l + o * 0.5, y: e + s };
460
+ case "middle":
461
+ default:
462
+ return { x: l + o * 0.5, y: e + s * 0.5 };
463
+ }
464
+ },
465
+ onResize() {
466
+ this.calcPos();
467
+ },
468
+ onKeyDown(n) {
469
+ n.key === "Escape" && (n.preventDefault(), this.hide());
470
+ }
471
+ }
472
+ };
473
+ function ae(n, t, e, l, o, s) {
474
+ const a = m("Bubble");
475
+ return r(), y(H, { to: "#overlays" }, [
476
+ b("div", {
477
+ class: h(["Overlay", {
478
+ "Overlay-enabled": e.overlayEnabled,
479
+ "Overlay-shown": e.overlayShown
480
+ }]),
481
+ onClick: t[3] || (t[3] = z((i) => s.hide(), ["stop"]))
482
+ }, [
483
+ o.ready ? (r(), y(a, {
484
+ key: 0,
485
+ dir: o.actualDir,
486
+ align: o.actualAlign,
487
+ style: M(s.bubbleStyle),
488
+ arrowShown: e.arrowShown,
489
+ onMouseenter: t[0] || (t[0] = (i) => n.$emit("mouseenter")),
490
+ onMouseleave: t[1] || (t[1] = (i) => n.$emit("mouseleave")),
491
+ onClick: t[2] || (t[2] = z(() => {
492
+ }, ["stop"]))
493
+ }, {
494
+ default: v(() => [
495
+ d(n.$slots, "default", {}, void 0, !0)
496
+ ]),
497
+ _: 3
498
+ }, 8, ["dir", "align", "style", "arrowShown"])) : p("", !0)
499
+ ], 2)
500
+ ]);
501
+ }
502
+ const w = /* @__PURE__ */ c(le, [["render", ae], ["__scopeId", "data-v-8d924b35"]]), ie = {
503
+ components: {
504
+ ContextPopup: w,
505
+ BaseMenu: I
506
+ },
507
+ inheritAttrs: !1,
508
+ props: {
509
+ ...w.props,
510
+ ...I.props,
511
+ autoFocus: { type: Boolean, default: !0 }
512
+ },
513
+ emits: [
514
+ ...w.emits || [],
515
+ ...I.emits || []
516
+ ],
517
+ computed: {
518
+ contextPopupProps() {
519
+ return C(this, w);
520
+ },
521
+ baseMenuProps() {
522
+ return C(this, I);
523
+ }
524
+ },
525
+ methods: {
526
+ hide() {
527
+ this.$refs.popup?.hide();
528
+ },
529
+ onActivate(n, t) {
530
+ this.$emit("activate", n, t);
531
+ }
532
+ }
533
+ };
534
+ function re(n, t, e, l, o, s) {
535
+ const a = m("BaseMenu"), i = m("ContextPopup");
536
+ return r(), y(i, x({ ref: "popup" }, s.contextPopupProps, {
537
+ onHide: t[0] || (t[0] = (u) => n.$emit("hide")),
538
+ onMouseenter: t[1] || (t[1] = (u) => n.$emit("mouseenter")),
539
+ onMouseleave: t[2] || (t[2] = (u) => n.$emit("mouseleave")),
540
+ onReady: t[3] || (t[3] = (u) => n.$emit("ready"))
541
+ }), {
542
+ default: v(() => [
543
+ O(a, x({ class: "ContextMenu" }, { ...s.baseMenuProps, ...n.$attrs }, { onActivate: s.onActivate }), null, 16, ["onActivate"])
544
+ ]),
545
+ _: 1
546
+ }, 16);
547
+ }
548
+ const ue = /* @__PURE__ */ c(ie, [["render", re]]), de = {
214
549
  props: {
215
550
  fill: { type: String, default: "none" }
216
551
  }
217
552
  };
218
- function P(t, n, e, u, l, o) {
219
- return i(), f("div", {
220
- class: p(["Filler", [
553
+ function ce(n, t, e, l, o, s) {
554
+ return r(), f("div", {
555
+ class: h(["Filler", [
221
556
  `Filler-${e.fill}`
222
557
  ]])
223
558
  }, null, 2);
224
559
  }
225
- const G = /* @__PURE__ */ d(M, [["render", P], ["__scopeId", "data-v-448176c1"]]), A = {
560
+ const fe = /* @__PURE__ */ c(de, [["render", ce], ["__scopeId", "data-v-448176c1"]]), ye = {
226
561
  props: {
227
562
  tagName: { type: String, default: "div" },
228
563
  align: { type: String, default: "center" },
@@ -231,9 +566,9 @@ const G = /* @__PURE__ */ d(M, [["render", P], ["__scopeId", "data-v-448176c1"]]
231
566
  wrap: { type: Boolean, default: !1 }
232
567
  }
233
568
  };
234
- function L(t, n, e, u, l, o) {
235
- return i(), c(S(e.tagName), {
236
- class: p(["HGroup", [
569
+ function pe(n, t, e, l, o, s) {
570
+ return r(), y(S(e.tagName), {
571
+ class: h(["HGroup", [
237
572
  `HGroup-align-${e.align}`,
238
573
  `HGroup-justify-${e.justify}`,
239
574
  `HGroup-gap-${e.gap}`,
@@ -242,48 +577,52 @@ function L(t, n, e, u, l, o) {
242
577
  }
243
578
  ]])
244
579
  }, {
245
- default: b(() => [
246
- r(t.$slots, "default", {}, void 0, !0)
580
+ default: v(() => [
581
+ d(n.$slots, "default", {}, void 0, !0)
247
582
  ]),
248
583
  _: 3
249
584
  }, 8, ["class"]);
250
585
  }
251
- const D = /* @__PURE__ */ d(A, [["render", L], ["__scopeId", "data-v-5b190da7"]]), E = {
586
+ const ve = /* @__PURE__ */ c(ye, [["render", pe], ["__scopeId", "data-v-5b190da7"]]), he = {
252
587
  props: {
253
588
  tagName: { type: String, default: "div" },
254
589
  dir: { type: String, default: "top" },
255
- label: { type: String }
590
+ label: { type: String },
591
+ size: { type: String, default: "m" },
592
+ kind: { type: String, default: "base" }
256
593
  },
257
594
  computed: {
258
595
  orientation() {
259
596
  return this.dir === "top" || this.dir === "bottom" ? "h" : "v";
260
597
  }
261
598
  }
262
- }, R = { class: "Content" }, q = ["title"];
263
- function K(t, n, e, u, l, o) {
264
- const s = h("TabCap");
265
- return i(), c(S(e.tagName), {
266
- class: p(["Tab", [
599
+ }, be = { class: "Content" }, me = ["title"];
600
+ function ge(n, t, e, l, o, s) {
601
+ const a = m("TabCap");
602
+ return r(), y(S(e.tagName), {
603
+ class: h(["Tab", [
604
+ `ui-${e.kind}`,
605
+ `input-size-${e.size}`,
267
606
  `Tab-${e.dir}`,
268
- `Tab-${o.orientation}`
607
+ `Tab-${s.orientation}`
269
608
  ]])
270
609
  }, {
271
- default: b(() => [
272
- O(s, {
610
+ default: v(() => [
611
+ O(a, {
273
612
  class: "TabCap",
274
613
  dir: e.dir,
275
614
  type: "start"
276
615
  }, null, 8, ["dir"]),
277
- v("div", R, [
278
- r(t.$slots, "default", {}, () => [
279
- e.label ? (i(), f("div", {
616
+ b("div", be, [
617
+ d(n.$slots, "default", {}, () => [
618
+ e.label ? (r(), f("div", {
280
619
  key: 0,
281
620
  class: "TabLabel",
282
621
  title: e.label
283
- }, g(e.label), 9, q)) : y("", !0)
622
+ }, k(e.label), 9, me)) : p("", !0)
284
623
  ], !0)
285
624
  ]),
286
- O(s, {
625
+ O(a, {
287
626
  class: "TabCap",
288
627
  dir: e.dir,
289
628
  type: "end"
@@ -292,9 +631,9 @@ function K(t, n, e, u, l, o) {
292
631
  _: 3
293
632
  }, 8, ["class"]);
294
633
  }
295
- const V = /* @__PURE__ */ d(E, [["render", K], ["__scopeId", "data-v-d854a1ad"]]), Y = {
634
+ const F = /* @__PURE__ */ c(he, [["render", ge], ["__scopeId", "data-v-2d5bc4a5"]]), _e = {
296
635
  components: {
297
- Tab: V
636
+ Tab: F
298
637
  },
299
638
  props: {
300
639
  tagName: { default: "label" },
@@ -305,6 +644,7 @@ const V = /* @__PURE__ */ d(E, [["render", K], ["__scopeId", "data-v-d854a1ad"]]
305
644
  fixedHeight: { type: Boolean, default: !0 },
306
645
  flat: { type: Boolean, default: !1 },
307
646
  round: { type: Boolean, default: !1 },
647
+ outline: { type: Boolean, default: !1 },
308
648
  disabled: { type: Boolean, default: !1 },
309
649
  forceFocus: { type: Boolean, default: !1 },
310
650
  forceHover: { type: Boolean, default: !1 },
@@ -329,187 +669,81 @@ const V = /* @__PURE__ */ d(E, [["render", K], ["__scopeId", "data-v-d854a1ad"]]
329
669
  },
330
670
  effectiveStyle() {
331
671
  const {
332
- baseStyle: t,
333
- hoverOverrides: n = {},
672
+ baseStyle: n,
673
+ hoverOverrides: t = {},
334
674
  focusOverrides: e = {},
335
- hover: u,
336
- focus: l,
337
- forceHover: o,
338
- forceFocus: s
339
- } = this, a = Object.assign({}, t);
340
- return (u || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
675
+ hover: l,
676
+ focus: o,
677
+ forceHover: s,
678
+ forceFocus: a
679
+ } = this, i = Object.assign({}, n);
680
+ return (l || s) && Object.assign(i, t), (o || a) && Object.assign(i, e), i;
341
681
  }
342
682
  }
343
- }, J = {
683
+ }, ke = {
344
684
  key: 1,
345
685
  class: "Label TextLabel"
346
- }, Q = {
686
+ }, Se = {
347
687
  key: 2,
348
688
  class: "Label InlineLabel"
349
- }, U = { class: "InlineLabelText" }, W = { class: "InputElement Container" };
350
- function X(t, n, e, u, l, o) {
351
- const s = h("Tab");
352
- return i(), c(S(e.tagName), {
353
- class: p(["InputBase", [
354
- `InputBase-${o.effectiveStyle.kind}`,
355
- `ui-${o.effectiveStyle.kind}`,
356
- `input-size-${o.effectiveStyle.size}`,
689
+ }, Be = { class: "InputElement Container" };
690
+ function Ie(n, t, e, l, o, s) {
691
+ const a = m("Tab");
692
+ return r(), y(S(e.tagName), {
693
+ class: h(["InputBase", [
694
+ `ui-${s.effectiveStyle.kind}`,
695
+ `input-size-${s.effectiveStyle.size}`,
357
696
  {
358
697
  "InputBase-fixedHeight": e.fixedHeight,
359
- "InputBase-flat": o.effectiveStyle.flat,
360
- "InputBase-round": o.effectiveStyle.round,
698
+ "InputBase-flat": s.effectiveStyle.flat,
699
+ "InputBase-round": s.effectiveStyle.round,
361
700
  "InputBase-disabled": e.disabled,
362
701
  "InputBase-forceFocus": e.forceFocus,
363
702
  "InputBase-forceHover": e.forceHover
364
703
  }
365
704
  ]]),
366
- onMouseenter: n[0] || (n[0] = (a) => l.hover = !0),
367
- onMouseleave: n[1] || (n[1] = (a) => l.hover = !1),
368
- onFocusin: n[2] || (n[2] = (a) => l.focus = !0),
369
- onFocusout: n[3] || (n[3] = (a) => l.focus = !1)
705
+ onMouseenter: t[0] || (t[0] = (i) => o.hover = !0),
706
+ onMouseleave: t[1] || (t[1] = (i) => o.hover = !1),
707
+ onFocusin: t[2] || (t[2] = (i) => o.focus = !0),
708
+ onFocusout: t[3] || (t[3] = (i) => o.focus = !1)
370
709
  }, {
371
- default: b(() => [
372
- e.label ? (i(), f(T, { key: 0 }, [
373
- e.labelStyle === "tab" ? (i(), c(s, {
710
+ default: v(() => [
711
+ e.label ? (r(), f(T, { key: 0 }, [
712
+ e.labelStyle === "tab" ? (r(), y(a, {
374
713
  key: 0,
375
714
  class: "Label TabLabel",
376
- label: e.label
377
- }, null, 8, ["label"])) : y("", !0),
378
- e.labelStyle === "text" ? (i(), f("div", J, g(e.label), 1)) : y("", !0),
379
- e.labelStyle === "inline" ? (i(), f("div", Q, [
380
- v("div", U, g(e.label), 1)
381
- ])) : y("", !0)
382
- ], 64)) : y("", !0),
383
- v("div", W, [
384
- r(t.$slots, "default", {}, void 0, !0)
715
+ label: e.label,
716
+ kind: e.kind
717
+ }, null, 8, ["label", "kind"])) : p("", !0),
718
+ e.labelStyle === "text" ? (r(), f("div", ke, k(e.label), 1)) : p("", !0),
719
+ e.labelStyle === "inline" ? (r(), f("div", Se, k(e.label), 1)) : p("", !0)
720
+ ], 64)) : p("", !0),
721
+ b("div", Be, [
722
+ d(n.$slots, "default", {}, void 0, !0)
385
723
  ])
386
724
  ]),
387
725
  _: 3
388
726
  }, 40, ["class"]);
389
727
  }
390
- const B = /* @__PURE__ */ d(Y, [["render", X], ["__scopeId", "data-v-d24cfcb2"]]), Z = {
728
+ const _ = /* @__PURE__ */ c(_e, [["render", Ie], ["__scopeId", "data-v-911102ad"]]), we = {
391
729
  props: {
392
730
  tagName: { type: String, default: "div" }
393
731
  }
394
732
  };
395
- function ee(t, n, e, u, l, o) {
396
- return i(), c(S(e.tagName), { class: "InputGroup" }, {
397
- default: b(() => [
398
- r(t.$slots, "default", {}, void 0, !0)
733
+ function $e(n, t, e, l, o, s) {
734
+ return r(), y(S(e.tagName), { class: "InputGroup" }, {
735
+ default: v(() => [
736
+ d(n.$slots, "default", {}, void 0, !0)
399
737
  ]),
400
738
  _: 3
401
739
  });
402
740
  }
403
- const te = /* @__PURE__ */ d(Z, [["render", ee], ["__scopeId", "data-v-ca03932d"]]), ne = {
404
- props: {
405
- ...B.props,
406
- modelValue: {},
407
- items: { type: Array, default: () => [] },
408
- placeholder: { type: String },
409
- readonly: { type: Boolean },
410
- search: { type: Boolean, default: !1 }
411
- },
412
- emits: [
413
- "focus",
414
- "blur",
415
- "update:modelValue"
416
- ],
417
- data() {
418
- return {
419
- menuShown: !1
420
- };
421
- },
422
- computed: {
423
- selectedItem() {
424
- return this.items.find((t) => (t.value ?? t) === this.modelValue);
425
- },
426
- itemTitle() {
427
- const { selectedItem: t } = this;
428
- return t?.title ?? t;
429
- },
430
- itemIcon() {
431
- const { selectedItem: t } = this;
432
- return t?.icon;
433
- },
434
- iconDropdown() {
435
- return this.$nightshadeIcons?.dropdown ?? "fas fa-angle-down";
436
- }
741
+ const xe = /* @__PURE__ */ c(we, [["render", $e], ["__scopeId", "data-v-ca03932d"]]), Ce = {
742
+ components: {
743
+ InputBase: _
437
744
  },
438
- methods: {
439
- onInput(t) {
440
- this.$emit("update:modelValue", t.target.value);
441
- },
442
- selectValue(t) {
443
- this.$emit("update:modelValue", t), this.menuShown = !1;
444
- },
445
- getMenuItems() {
446
- return this.items.map((t) => {
447
- const n = typeof t == "string" ? t : t.title, e = typeof t == "string" ? t : t.value;
448
- return {
449
- title: n,
450
- checked: e === this.modelValue,
451
- disabled: t.disabled,
452
- description: t.description,
453
- icon: t.icon ?? void 0,
454
- activate: () => {
455
- this.disabled || this.selectValue(e);
456
- }
457
- };
458
- });
459
- },
460
- show() {
461
- this.disabled || (this.menuShown = !0);
462
- }
463
- }
464
- }, oe = {
465
- key: 1,
466
- class: "Value"
467
- }, le = {
468
- key: 2,
469
- class: "Placeholder"
470
- }, se = {
471
- ref: "icon",
472
- class: "DropdownIcon"
473
- };
474
- function ae(t, n, e, u, l, o) {
475
- const s = h("ContextMenu"), a = h("InputBase");
476
- return i(), c(a, k({ class: "InputSelect" }, {
477
- ...t.$props
478
- }, {
479
- tabindex: "0",
480
- onClick: n[1] || (n[1] = (_) => o.show())
481
- }), {
482
- default: b(() => [
483
- r(t.$slots, "before", {}, void 0, !0),
484
- o.itemIcon ? (i(), f("i", {
485
- key: 0,
486
- class: p(["Icon", o.itemIcon])
487
- }, null, 2)) : y("", !0),
488
- o.selectedItem ? (i(), f("span", oe, g(o.itemTitle), 1)) : y("", !0),
489
- o.selectedItem ? y("", !0) : (i(), f("span", le, g(e.placeholder), 1)),
490
- v("div", se, [
491
- r(t.$slots, "iconDropdown", {}, () => [
492
- v("i", {
493
- class: p(o.iconDropdown)
494
- }, null, 2)
495
- ], !0)
496
- ], 512),
497
- !t.disabled && l.menuShown ? (i(), c(s, {
498
- key: 3,
499
- anchorRef: "icon",
500
- items: o.getMenuItems(),
501
- search: e.search,
502
- overlayShown: !1,
503
- onHide: n[0] || (n[0] = (_) => l.menuShown = !1)
504
- }, null, 8, ["items", "search"])) : y("", !0),
505
- r(t.$slots, "after", {}, void 0, !0)
506
- ]),
507
- _: 3
508
- }, 16);
509
- }
510
- const ie = /* @__PURE__ */ d(ne, [["render", ae], ["__scopeId", "data-v-3adb595b"]]), ue = {
511
745
  props: {
512
- ...B.props,
746
+ ..._.props,
513
747
  modelValue: { type: [String, Number] },
514
748
  type: { type: String },
515
749
  placeholder: { type: String },
@@ -525,45 +759,51 @@ const ie = /* @__PURE__ */ d(ne, [["render", ae], ["__scopeId", "data-v-3adb595b
525
759
  "input",
526
760
  "update:modelValue"
527
761
  ],
762
+ computed: {
763
+ inputBaseProps() {
764
+ return C(this, _);
765
+ }
766
+ },
528
767
  mounted() {
529
768
  this.autoFocus && this.$refs.input?.focus();
530
769
  },
531
770
  methods: {
532
- onInput(t) {
533
- this.$emit("update:modelValue", t.target.value);
771
+ onInput(n) {
772
+ this.$emit("update:modelValue", n.target.value);
534
773
  }
535
774
  }
536
- }, re = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
537
- function de(t, n, e, u, l, o) {
538
- const s = h("InputBase");
539
- return i(), c(s, k({ class: "InputText" }, {
540
- ...t.$props
541
- }), {
542
- default: b(() => [
543
- r(t.$slots, "before", {}, void 0, !0),
544
- v("input", {
775
+ }, Oe = ["value", "type", "placeholder", "readonly", "disabled", "min", "max", "step"];
776
+ function Te(n, t, e, l, o, s) {
777
+ const a = m("InputBase");
778
+ return r(), y(a, x({ class: "InputText" }, s.inputBaseProps), {
779
+ default: v(() => [
780
+ d(n.$slots, "before", {}, void 0, !0),
781
+ b("input", {
545
782
  ref: "input",
546
783
  value: e.modelValue,
547
784
  type: e.type,
548
785
  placeholder: e.placeholder,
549
786
  readonly: e.readonly,
550
- disabled: t.disabled,
787
+ disabled: n.disabled,
551
788
  min: e.min,
552
789
  max: e.max,
553
790
  step: e.step,
554
791
  autocomplete: "off",
555
- onInput: n[0] || (n[0] = (a) => o.onInput(a)),
556
- onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
557
- onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
558
- }, null, 40, re),
559
- r(t.$slots, "after", {}, void 0, !0)
792
+ onInput: t[0] || (t[0] = (i) => s.onInput(i)),
793
+ onFocus: t[1] || (t[1] = (i) => n.$emit("focus", i)),
794
+ onBlur: t[2] || (t[2] = (i) => n.$emit("blur", i))
795
+ }, null, 40, Oe),
796
+ d(n.$slots, "after", {}, void 0, !0)
560
797
  ]),
561
798
  _: 3
562
799
  }, 16);
563
800
  }
564
- const fe = /* @__PURE__ */ d(ue, [["render", de], ["__scopeId", "data-v-f645b756"]]), ce = {
801
+ const ze = /* @__PURE__ */ c(Ce, [["render", Te], ["__scopeId", "data-v-a7cbc67d"]]), Pe = {
802
+ components: {
803
+ InputBase: _
804
+ },
565
805
  props: {
566
- ...B.props,
806
+ ..._.props,
567
807
  modelValue: { type: String },
568
808
  placeholder: { type: String },
569
809
  rows: { type: Number },
@@ -577,107 +817,110 @@ const fe = /* @__PURE__ */ d(ue, [["render", de], ["__scopeId", "data-v-f645b756
577
817
  "input",
578
818
  "update:modelValue"
579
819
  ],
820
+ computed: {
821
+ inputBaseProps() {
822
+ return C(this, _);
823
+ }
824
+ },
580
825
  watch: {
581
826
  modelValue: {
582
827
  handler() {
583
- const t = this.$refs.input;
584
- this.autoSize && t && (t.style.height = "auto", t.style.height = t.scrollHeight + "px");
828
+ const n = this.$refs.input;
829
+ this.autoSize && n && (n.style.height = "auto", n.style.height = n.scrollHeight + "px");
585
830
  }
586
831
  }
587
832
  },
588
833
  mounted() {
589
834
  this.$nextTick(() => {
590
- const t = this.$refs.input;
591
- this.autoFocus && t.focus(), this.autoSize && (t.style.height = t.scrollHeight + "px", t.style.overflowY = "hidden");
835
+ const n = this.$refs.input;
836
+ this.autoFocus && n.focus(), this.autoSize && (n.style.height = n.scrollHeight + "px", n.style.overflowY = "hidden");
592
837
  });
593
838
  },
594
839
  methods: {
595
- onInput(t) {
596
- this.$emit("update:modelValue", t.target.value);
840
+ onInput(n) {
841
+ this.$emit("update:modelValue", n.target.value);
597
842
  }
598
843
  }
599
- }, pe = ["value", "placeholder", "readonly", "disabled", "rows"];
600
- function ye(t, n, e, u, l, o) {
601
- const s = h("InputBase");
602
- return i(), c(s, k({ class: "InputTextarea" }, {
603
- ...t.$props
604
- }, { fixedHeight: !1 }), {
605
- default: b(() => [
606
- r(t.$slots, "before", {}, void 0, !0),
607
- v("textarea", {
844
+ }, Fe = ["value", "placeholder", "readonly", "disabled", "rows"];
845
+ function je(n, t, e, l, o, s) {
846
+ const a = m("InputBase");
847
+ return r(), y(a, x({ class: "InputTextarea" }, s.inputBaseProps, { fixedHeight: !1 }), {
848
+ default: v(() => [
849
+ d(n.$slots, "before", {}, void 0, !0),
850
+ b("textarea", {
608
851
  ref: "input",
609
852
  value: e.modelValue,
610
853
  placeholder: e.placeholder,
611
854
  readonly: e.readonly,
612
- disabled: t.disabled,
855
+ disabled: n.disabled,
613
856
  rows: e.rows,
614
857
  resize: "none",
615
858
  autocomplete: "off",
616
- onInput: n[0] || (n[0] = (a) => o.onInput(a)),
617
- onFocus: n[1] || (n[1] = (a) => t.$emit("focus", a)),
618
- onBlur: n[2] || (n[2] = (a) => t.$emit("blur", a))
619
- }, null, 40, pe),
620
- r(t.$slots, "after", {}, void 0, !0)
859
+ onInput: t[0] || (t[0] = (i) => s.onInput(i)),
860
+ onFocus: t[1] || (t[1] = (i) => n.$emit("focus", i)),
861
+ onBlur: t[2] || (t[2] = (i) => n.$emit("blur", i))
862
+ }, null, 40, Fe),
863
+ d(n.$slots, "after", {}, void 0, !0)
621
864
  ]),
622
865
  _: 3
623
866
  }, 16);
624
867
  }
625
- const ve = /* @__PURE__ */ d(ce, [["render", ye], ["__scopeId", "data-v-dc23c98e"]]), be = {
868
+ const Ae = /* @__PURE__ */ c(Pe, [["render", je], ["__scopeId", "data-v-3967e87e"]]), Ve = {
626
869
  components: {
627
- Btn: C
870
+ Btn: $
628
871
  },
629
872
  props: {
630
- ...C.props,
873
+ ...$.props,
631
874
  to: { required: !0 },
632
875
  baseProps: { type: Object },
633
876
  activeProps: { type: Object },
634
877
  exactActiveProps: { type: Object }
635
878
  },
636
879
  methods: {
637
- actualProps(t, n) {
880
+ actualProps(n, t) {
638
881
  return {
639
- ...this.$props,
882
+ ...C(this, $),
640
883
  ...this.baseProps,
641
- ...t ? this.activeProps : {},
642
- ...n ? this.exactActiveProps : {}
884
+ ...n ? this.activeProps : {},
885
+ ...t ? this.exactActiveProps : {}
643
886
  };
644
887
  }
645
888
  }
646
889
  };
647
- function he(t, n, e, u, l, o) {
648
- const s = h("Btn"), a = h("RouterLink");
649
- return i(), c(a, {
890
+ function He(n, t, e, l, o, s) {
891
+ const a = m("Btn"), i = m("RouterLink");
892
+ return r(), y(i, {
650
893
  to: e.to,
651
894
  custom: ""
652
895
  }, {
653
- default: b(({ href: _, navigate: I, isActive: m, isExactActive: x }) => [
654
- O(s, k({
896
+ default: v(({ href: u, navigate: B, isActive: g, isExactActive: j }) => [
897
+ O(a, x({
655
898
  tagName: "a",
656
- href: _
657
- }, o.actualProps(m, x), { onClick: I }), null, 16, ["href", "onClick"])
899
+ href: u
900
+ }, s.actualProps(g, j), { onClick: B }), null, 16, ["href", "onClick"])
658
901
  ]),
659
902
  _: 1
660
903
  }, 8, ["to"]);
661
904
  }
662
- const me = /* @__PURE__ */ d(be, [["render", he]]), ge = {
905
+ const Me = /* @__PURE__ */ c(Ve, [["render", He]]), Ee = {
663
906
  props: {
664
907
  dir: { type: String, default: "top" },
665
908
  type: { type: String, default: "start" }
666
909
  }
667
910
  };
668
- function Se(t, n, e, u, l, o) {
669
- return i(), f("svg", {
670
- class: p(["TabCap", [
911
+ function De(n, t, e, l, o, s) {
912
+ return r(), f("svg", {
913
+ class: h(["TabCap", [
671
914
  `TabCap-${e.dir}`,
672
915
  `TabCap-${e.type}`
673
916
  ]]),
674
917
  viewBox: "0 0 32 32",
675
918
  preserveAspectRatio: "none"
676
- }, [...n[0] || (n[0] = [
677
- v("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
919
+ }, [...t[0] || (t[0] = [
920
+ b("path", { d: "M0 32 C 16 32 16 0 32 0 L 32 32 z" }, null, -1)
678
921
  ])], 2);
679
922
  }
680
- const _e = /* @__PURE__ */ d(ge, [["render", Se], ["__scopeId", "data-v-703bfafd"]]), ke = {
923
+ const Ne = /* @__PURE__ */ c(Ee, [["render", De], ["__scopeId", "data-v-703bfafd"]]), Le = {
681
924
  props: {
682
925
  modelValue: { type: Boolean },
683
926
  disabled: { type: Boolean },
@@ -716,106 +959,114 @@ const _e = /* @__PURE__ */ d(ge, [["render", Se], ["__scopeId", "data-v-703bfafd
716
959
  },
717
960
  effectiveStyle() {
718
961
  const {
719
- baseStyle: t,
720
- hoverOverrides: n = {},
962
+ baseStyle: n,
963
+ hoverOverrides: t = {},
721
964
  focusOverrides: e = {},
722
- hover: u,
723
- focus: l,
724
- forceHover: o,
725
- forceFocus: s
726
- } = this, a = Object.assign({}, t);
727
- return (u || o) && Object.assign(a, n), (l || s) && Object.assign(a, e), a;
965
+ hover: l,
966
+ focus: o,
967
+ forceHover: s,
968
+ forceFocus: a
969
+ } = this, i = Object.assign({}, n);
970
+ return (l || s) && Object.assign(i, t), (o || a) && Object.assign(i, e), i;
728
971
  }
729
972
  },
730
973
  methods: {
731
- onChange(t) {
732
- this.$emit("update:modelValue", t.target.checked);
974
+ onChange(n) {
975
+ this.$emit("update:modelValue", n.target.checked);
733
976
  }
734
977
  }
735
- }, Be = ["checked", "disabled"];
736
- function Ie(t, n, e, u, l, o) {
737
- return i(), f("label", {
738
- class: p(["Toggle InputElement", [
739
- `Toggle-${o.effectiveStyle.kind}`,
740
- `ui-${o.effectiveStyle.kind}`,
741
- `input-size-${o.effectiveStyle.size}`,
978
+ }, Ge = ["checked", "disabled"];
979
+ function Re(n, t, e, l, o, s) {
980
+ return r(), f("label", {
981
+ class: h(["Toggle InputElement", [
982
+ `ui-${s.effectiveStyle.kind}`,
983
+ `input-size-${s.effectiveStyle.size}`,
742
984
  {
743
985
  "Toggle-active": !!e.modelValue,
744
- "Toggle-outline": o.effectiveStyle.outline,
745
- "Toggle-round": o.effectiveStyle.round,
746
- "Toggle-flat": o.effectiveStyle.flat,
986
+ "Toggle-outline": s.effectiveStyle.outline,
987
+ "Toggle-round": s.effectiveStyle.round,
988
+ "Toggle-flat": s.effectiveStyle.flat,
747
989
  "Toggle-disabled": e.disabled,
748
990
  "Toggle-force-focus": e.forceFocus,
749
991
  "Toggle-force-hover": e.forceHover
750
992
  }
751
993
  ]]),
752
994
  tabindex: "0",
753
- onMouseenter: n[1] || (n[1] = (s) => l.hover = !0),
754
- onMouseleave: n[2] || (n[2] = (s) => l.hover = !1),
755
- onFocusin: n[3] || (n[3] = (s) => l.focus = !0),
756
- onFocusout: n[4] || (n[4] = (s) => l.focus = !1)
995
+ onMouseenter: t[1] || (t[1] = (a) => o.hover = !0),
996
+ onMouseleave: t[2] || (t[2] = (a) => o.hover = !1),
997
+ onFocusin: t[3] || (t[3] = (a) => o.focus = !0),
998
+ onFocusout: t[4] || (t[4] = (a) => o.focus = !1)
757
999
  }, [
758
- v("input", {
1000
+ b("input", {
759
1001
  type: "checkbox",
760
1002
  checked: e.modelValue,
761
1003
  disabled: e.disabled,
762
- onChange: n[0] || (n[0] = (...s) => o.onChange && o.onChange(...s))
763
- }, null, 40, Be)
1004
+ onChange: t[0] || (t[0] = (...a) => s.onChange && s.onChange(...a))
1005
+ }, null, 40, Ge)
764
1006
  ], 34);
765
1007
  }
766
- const Oe = /* @__PURE__ */ d(ke, [["render", Ie], ["__scopeId", "data-v-79a54383"]]), Ce = {
1008
+ const Ke = /* @__PURE__ */ c(Le, [["render", Re], ["__scopeId", "data-v-7086db27"]]), qe = {
767
1009
  props: {
768
- tagName: { type: String, default: "div" },
769
- align: { type: String, default: "stretch" },
770
- justify: { type: String },
771
- gap: { type: String, default: "m" }
1010
+ size: { type: String, default: "m" },
1011
+ flat: { type: Boolean, default: !1 },
1012
+ outline: { type: Boolean, default: !1 },
1013
+ round: { type: Boolean, default: !1 }
772
1014
  }
773
1015
  };
774
- function Ve(t, n, e, u, l, o) {
775
- return i(), c(S(e.tagName), {
776
- class: p(["VGroup", [
777
- `VGroup-align-${e.align}`,
778
- `VGroup-justify-${e.justify}`,
779
- `VGroup-gap-${e.gap}`
1016
+ function Ue(n, t, e, l, o, s) {
1017
+ return r(), f("div", {
1018
+ class: h(["ToolPanel", [
1019
+ `ToolPanel-size-${e.size}`,
1020
+ `input-size-${e.size}`,
1021
+ {
1022
+ "ToolPanel-flat": e.flat,
1023
+ "ToolPanel-outline": e.outline,
1024
+ "ToolPanel-round": e.round
1025
+ }
780
1026
  ]])
781
- }, {
782
- default: b(() => [
783
- r(t.$slots, "default", {}, void 0, !0)
784
- ]),
785
- _: 3
786
- }, 8, ["class"]);
1027
+ }, [
1028
+ d(n.$slots, "default", {}, void 0, !0)
1029
+ ], 2);
787
1030
  }
788
- const xe = /* @__PURE__ */ d(Ce, [["render", Ve], ["__scopeId", "data-v-044d3ec4"]]), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1031
+ const We = /* @__PURE__ */ c(qe, [["render", Ue], ["__scopeId", "data-v-5ab32096"]]), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
789
1032
  __proto__: null,
790
- Btn: C,
791
- Checkbox: N,
792
- Filler: G,
793
- HGroup: D,
794
- InputBase: B,
795
- InputGroup: te,
796
- InputSelect: ie,
797
- InputText: fe,
798
- InputTextarea: ve,
799
- RouterBtn: me,
800
- Tab: V,
801
- TabCap: _e,
802
- Toggle: Oe,
803
- VGroup: xe
1033
+ BaseMenu: I,
1034
+ Btn: $,
1035
+ Bubble: ee,
1036
+ Checkbox: se,
1037
+ ContextMenu: ue,
1038
+ ContextPopup: w,
1039
+ Filler: fe,
1040
+ HGroup: ve,
1041
+ InputBase: _,
1042
+ InputGroup: xe,
1043
+ InputText: ze,
1044
+ InputTextarea: Ae,
1045
+ RouterBtn: Me,
1046
+ Tab: F,
1047
+ TabCap: Ne,
1048
+ Toggle: Ke,
1049
+ ToolPanel: We,
1050
+ VGroup: P
804
1051
  }, Symbol.toStringTag, { value: "Module" }));
805
1052
  export {
806
- C as Btn,
807
- N as Checkbox,
808
- G as Filler,
809
- D as HGroup,
810
- B as InputBase,
811
- te as InputGroup,
812
- ie as InputSelect,
813
- fe as InputText,
814
- ve as InputTextarea,
815
- me as RouterBtn,
816
- V as Tab,
817
- _e as TabCap,
818
- Oe as Toggle,
819
- xe as VGroup,
820
- je as coreComponents
1053
+ I as BaseMenu,
1054
+ $ as Btn,
1055
+ ee as Bubble,
1056
+ se as Checkbox,
1057
+ ue as ContextMenu,
1058
+ w as ContextPopup,
1059
+ fe as Filler,
1060
+ ve as HGroup,
1061
+ _ as InputBase,
1062
+ xe as InputGroup,
1063
+ ze as InputText,
1064
+ Ae as InputTextarea,
1065
+ Me as RouterBtn,
1066
+ F as Tab,
1067
+ Ne as TabCap,
1068
+ Ke as Toggle,
1069
+ We as ToolPanel,
1070
+ P as VGroup,
1071
+ Je as coreComponents
821
1072
  };