@digitalwalletcorp/vue-core 1.3.1 → 1.4.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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as D, useSlots as J, openBlock as d, createElementBlock as f, normalizeStyle as F, renderSlot as C, createBlock as j, resolveDynamicComponent as te, mergeProps as le, createCommentVNode as M, normalizeClass as O, createTextVNode as Z, toDisplayString as N, ref as B, onMounted as G, onBeforeUnmount as U, useModel as se, computed as T, createElementVNode as v, createVNode as A, unref as _, createSlots as ie, withCtx as H, mergeModels as Q, withModifiers as ee, normalizeProps as Me, guardReactiveProps as Ae, Fragment as K, renderList as Y, shallowRef as Ue, watch as X, withKeys as ge, useAttrs as De, useId as ae, reactive as ye, Transition as Xe, inject as Ye, provide as qe, Teleport as Qe } from "vue";
2
- import { SvgTriangleButton as Ie, SvgMemo as Je, SvgHighBrightness as Ze, SvgMoonPhases as et, SvgChevronDouble as _e, SvgChevron as $e, SvgBlackArrow as ke, SvgFolderDownload as tt, SvgCloudDownload as ot, SvgPointingTriangle as nt, SvgQuestion as ve, SvgHourglass as lt, SvgCritical as at, SvgWarningSign as Oe, SvgInfo as st, SvgNegativeSquaredCrossMark as it, SvgCornerDiagonal as rt, SvgRoundPushpin as dt, SvgPushpin as ct, SvgSquare as ut, SvgCircle as pt, SvgDiamond as mt } from "@digitalwalletcorp/vue-svg-icons";
1
+ import { defineComponent as D, useSlots as J, openBlock as c, createElementBlock as b, normalizeStyle as F, renderSlot as C, createBlock as j, resolveDynamicComponent as te, mergeProps as le, createCommentVNode as M, normalizeClass as N, createTextVNode as Z, toDisplayString as z, ref as B, onMounted as G, onBeforeUnmount as U, useModel as se, computed as T, createElementVNode as f, createVNode as A, unref as _, createSlots as ie, withCtx as H, mergeModels as Q, withModifiers as ee, normalizeProps as Ae, guardReactiveProps as De, Fragment as W, renderList as Y, inject as Oe, shallowRef as Qe, watch as X, withKeys as ve, useAttrs as Ie, useId as ae, reactive as _e, Transition as Je, provide as Ze, Teleport as et } from "vue";
2
+ import { SvgTriangleButton as Ne, SvgMemo as tt, SvgHighBrightness as ot, SvgMoonPhases as nt, SvgChevronDouble as $e, SvgChevron as ke, SvgBlackArrow as Se, SvgFolderDownload as lt, SvgCloudDownload as at, SvgPointingTriangle as st, SvgQuestion as ge, SvgHourglass as it, SvgCritical as rt, SvgWarningSign as ze, SvgInfo as dt, SvgNegativeSquaredCrossMark as ct, SvgCornerDiagonal as ut, SvgRoundPushpin as pt, SvgPushpin as mt, SvgSquare as vt, SvgCircle as gt, SvgDiamond as ft } from "@digitalwalletcorp/vue-svg-icons";
3
3
  const oe = /* @__PURE__ */ D({
4
4
  __name: "label-icon",
5
5
  props: {
@@ -12,41 +12,41 @@ const oe = /* @__PURE__ */ D({
12
12
  },
13
13
  setup(a) {
14
14
  const o = a, e = J();
15
- return (t, l) => (d(), f("span", {
15
+ return (t, l) => (c(), b("span", {
16
16
  class: "dwui-label-icon",
17
17
  style: F(o.gap == null ? void 0 : { "--dwui-gap-label-icon": o.gap })
18
18
  }, [
19
19
  C(t.$slots, "icon", {}, () => [
20
- o.preset != null ? (d(), j(te(o.preset.icon), le({ key: 0 }, o.preset.iconProps, {
20
+ o.preset != null ? (c(), j(te(o.preset.icon), le({ key: 0 }, o.preset.iconProps, {
21
21
  class: o.iconClass,
22
22
  style: o.iconStyle
23
23
  }), null, 16, ["class", "style"])) : M("", !0)
24
24
  ]),
25
- e.default != null || o.preset != null ? (d(), f("span", {
25
+ e.default != null || o.preset != null ? (c(), b("span", {
26
26
  key: 0,
27
- class: O(["dwui-label", o.labelClass]),
27
+ class: N(["dwui-label", o.labelClass]),
28
28
  style: F(o.labelStyle)
29
29
  }, [
30
30
  C(t.$slots, "default", {}, () => [
31
- Z(N(typeof o.preset?.label == "function" ? o.preset.label() : o.preset?.label), 1)
31
+ Z(z(typeof o.preset?.label == "function" ? o.preset.label() : o.preset?.label), 1)
32
32
  ])
33
33
  ], 6)) : M("", !0)
34
34
  ], 4));
35
35
  }
36
- }), gt = 70;
37
- function Ne(a) {
36
+ }), bt = 70;
37
+ function He(a) {
38
38
  const o = B(!0);
39
39
  let e;
40
40
  return G(() => {
41
41
  const t = a.value;
42
42
  t != null && (e = new ResizeObserver(() => {
43
- o.value = gt <= t.scrollHeight;
43
+ o.value = bt <= t.scrollHeight;
44
44
  }), e.observe(t));
45
45
  }), U(() => {
46
46
  e?.disconnect();
47
47
  }), o;
48
48
  }
49
- const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-expanded"], Go = /* @__PURE__ */ D({
49
+ const ht = ["disabled"], wt = { class: "dwui-accordion-legend" }, yt = ["aria-expanded"], qo = /* @__PURE__ */ D({
50
50
  __name: "accordion-fieldset",
51
51
  props: /* @__PURE__ */ Q({
52
52
  legend: {},
@@ -60,59 +60,59 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
60
60
  setup(a) {
61
61
  const o = a, e = J(), t = B(), l = se(a, "expanded"), n = B(!!o.initialExpand), s = T({
62
62
  get: () => l.value ?? n.value,
63
- set: (c) => {
64
- n.value = c, l.value = c;
63
+ set: (p) => {
64
+ n.value = p, l.value = p;
65
65
  }
66
- }), p = Ne(t), r = () => {
66
+ }), g = He(t), d = () => {
67
67
  s.value = !s.value;
68
68
  };
69
- return (c, h) => (d(), f("fieldset", {
69
+ return (p, h) => (c(), b("fieldset", {
70
70
  class: "dwui-accordion-fieldset",
71
71
  disabled: o.disabled
72
72
  }, [
73
- v("legend", ft, [
74
- v("button", {
73
+ f("legend", wt, [
74
+ f("button", {
75
75
  type: "button",
76
76
  class: "dwui-accordion-toggle",
77
77
  "aria-expanded": s.value,
78
- onClick: r
78
+ onClick: d
79
79
  }, [
80
- A(_(Ie), {
80
+ A(_(Ne), {
81
81
  direction: s.value ? "up" : "down"
82
82
  }, null, 8, ["direction"]),
83
- o.legend != null || e.legend != null || e.icon != null ? (d(), j(oe, { key: 0 }, ie({ _: 2 }, [
83
+ o.legend != null || e.legend != null || e.icon != null ? (c(), j(oe, { key: 0 }, ie({ _: 2 }, [
84
84
  e.icon != null ? {
85
85
  name: "icon",
86
86
  fn: H(() => [
87
- C(c.$slots, "icon")
87
+ C(p.$slots, "icon")
88
88
  ]),
89
89
  key: "0"
90
90
  } : void 0,
91
91
  o.legend != null || e.legend != null ? {
92
92
  name: "default",
93
93
  fn: H(() => [
94
- C(c.$slots, "legend", {}, () => [
95
- Z(N(o.legend), 1)
94
+ C(p.$slots, "legend", {}, () => [
95
+ Z(z(o.legend), 1)
96
96
  ])
97
97
  ]),
98
98
  key: "1"
99
99
  } : void 0
100
100
  ]), 1024)) : M("", !0)
101
- ], 8, bt)
101
+ ], 8, yt)
102
102
  ]),
103
- v("div", {
103
+ f("div", {
104
104
  ref_key: "refContents",
105
105
  ref: t,
106
- class: O(["dwui-accordion-contents", _(p) ? s.value ? "dwui-expanded" : "dwui-shrunk" : ""])
106
+ class: N(["dwui-accordion-contents", _(g) ? s.value ? "dwui-expanded" : "dwui-shrunk" : ""])
107
107
  }, [
108
- C(c.$slots, "default")
108
+ C(p.$slots, "default")
109
109
  ], 2)
110
- ], 8, vt));
110
+ ], 8, ht));
111
111
  }
112
- }), ht = { class: "dwui-accordion-section" }, wt = {
112
+ }), _t = { class: "dwui-accordion-section" }, $t = {
113
113
  key: 0,
114
114
  class: "dwui-accordion-section-control"
115
- }, yt = ["disabled", "aria-expanded"], Uo = /* @__PURE__ */ D({
115
+ }, kt = ["disabled", "aria-expanded"], Qo = /* @__PURE__ */ D({
116
116
  __name: "accordion-section",
117
117
  props: /* @__PURE__ */ Q({
118
118
  disabled: { type: Boolean },
@@ -130,61 +130,61 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
130
130
  setup(a) {
131
131
  const o = a, e = J(), t = B(), l = se(a, "expanded"), n = B(!!o.initialExpand), s = T({
132
132
  get: () => l.value ?? n.value,
133
- set: (k) => {
134
- n.value = k, l.value = k;
133
+ set: (S) => {
134
+ n.value = S, l.value = S;
135
135
  }
136
- }), p = Ne(t), r = T(() => s.value ? o.collapsePreset : o.expandPreset), c = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) ?? r.value?.icon, h = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) == null ? r.value?.iconProps : void 0, m = T(() => {
137
- const k = s.value ? o.collapseLabel : o.expandLabel;
138
- if (k != null)
139
- return k;
140
- const x = r.value?.label;
136
+ }), g = He(t), d = T(() => s.value ? o.collapsePreset : o.expandPreset), p = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) ?? d.value?.icon, h = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) == null ? d.value?.iconProps : void 0, v = T(() => {
137
+ const S = s.value ? o.collapseLabel : o.expandLabel;
138
+ if (S != null)
139
+ return S;
140
+ const x = d.value?.label;
141
141
  return typeof x == "function" ? x() : x;
142
142
  }), u = () => {
143
143
  s.value = !s.value;
144
144
  };
145
- return (k, x) => (d(), f("div", ht, [
146
- v("div", {
145
+ return (S, x) => (c(), b("div", _t, [
146
+ f("div", {
147
147
  ref_key: "refContents",
148
148
  ref: t,
149
- class: O(["dwui-accordion-section-contents", [
150
- _(p) ? s.value ? "dwui-expanded" : "dwui-shrunk" : "",
149
+ class: N(["dwui-accordion-section-contents", [
150
+ _(g) ? s.value ? "dwui-expanded" : "dwui-shrunk" : "",
151
151
  { "dwui-no-gradient": o.noGradient }
152
152
  ]])
153
153
  }, [
154
- C(k.$slots, "default")
154
+ C(S.$slots, "default")
155
155
  ], 2),
156
- _(p) ? (d(), f("div", wt, [
157
- v("button", {
156
+ _(g) ? (c(), b("div", $t, [
157
+ f("button", {
158
158
  type: "button",
159
159
  class: "dwui-accordion-section-toggle",
160
160
  disabled: o.disabled,
161
161
  "aria-expanded": s.value,
162
162
  onClick: ee(u, ["stop"])
163
163
  }, [
164
- c() != null || m.value != null ? (d(), j(oe, { key: 0 }, ie({ _: 2 }, [
165
- c() != null ? {
164
+ p() != null || v.value != null ? (c(), j(oe, { key: 0 }, ie({ _: 2 }, [
165
+ p() != null ? {
166
166
  name: "icon",
167
167
  fn: H(() => [
168
- (d(), j(te(c()), Me(Ae(h())), null, 16))
168
+ (c(), j(te(p()), Ae(De(h())), null, 16))
169
169
  ]),
170
170
  key: "0"
171
171
  } : void 0,
172
- m.value != null ? {
172
+ v.value != null ? {
173
173
  name: "default",
174
174
  fn: H(() => [
175
- Z(N(m.value), 1)
175
+ Z(z(v.value), 1)
176
176
  ]),
177
177
  key: "1"
178
178
  } : void 0
179
- ]), 1024)) : (d(), j(_(Ie), {
179
+ ]), 1024)) : (c(), j(_(Ne), {
180
180
  key: 1,
181
181
  direction: s.value ? "up" : "down"
182
182
  }, null, 8, ["direction"]))
183
- ], 8, yt)
183
+ ], 8, kt)
184
184
  ])) : M("", !0)
185
185
  ]));
186
186
  }
187
- }), _t = ["aria-label"], Xo = /* @__PURE__ */ D({
187
+ }), St = ["aria-label"], Jo = /* @__PURE__ */ D({
188
188
  __name: "copy-button",
189
189
  props: {
190
190
  value: {},
@@ -196,24 +196,24 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
196
196
  const s = String(typeof e.value == "function" ? e.value() : e.value);
197
197
  try {
198
198
  await navigator.clipboard.writeText(s);
199
- } catch (p) {
200
- t("emit:error", p);
199
+ } catch (g) {
200
+ t("emit:error", g);
201
201
  return;
202
202
  }
203
203
  t("emit:copy", s);
204
204
  };
205
- return (s, p) => (d(), f("button", {
205
+ return (s, g) => (c(), b("button", {
206
206
  type: "button",
207
207
  class: "dwui-copy-button",
208
208
  "aria-label": l.default ? void 0 : e.label,
209
209
  onClick: n
210
210
  }, [
211
211
  C(s.$slots, "default", {}, () => [
212
- A(_(Je))
212
+ A(_(tt))
213
213
  ])
214
- ], 8, _t));
214
+ ], 8, St));
215
215
  }
216
- }), $t = ["aria-label", "aria-checked"], kt = { class: "dwui-dark-mode-selector-track" }, St = { class: "dwui-dark-mode-selector-icon-light" }, Pt = { class: "dwui-dark-mode-selector-icon-dark" }, Yo = /* @__PURE__ */ D({
216
+ }), Pt = ["aria-label", "aria-checked"], Ct = { class: "dwui-dark-mode-selector-track" }, xt = { class: "dwui-dark-mode-selector-icon-light" }, Bt = { class: "dwui-dark-mode-selector-icon-dark" }, Zo = /* @__PURE__ */ D({
217
217
  __name: "dark-mode-selector",
218
218
  props: {
219
219
  storageKey: { default: "dwui-color-scheme" },
@@ -223,34 +223,34 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
223
223
  setup(a, { emit: o }) {
224
224
  const e = a, t = o, l = B(!1);
225
225
  let n = null, s = null;
226
- const p = ($) => $ === "light" || $ === "dark", r = () => s?.matches ? "dark" : "light", c = () => {
226
+ const g = (k) => k === "light" || k === "dark", d = () => s?.matches ? "dark" : "light", p = () => {
227
227
  try {
228
- const $ = localStorage.getItem(e.storageKey);
229
- return p($) ? $ : null;
228
+ const k = localStorage.getItem(e.storageKey);
229
+ return g(k) ? k : null;
230
230
  } catch {
231
231
  return null;
232
232
  }
233
- }, h = ($) => {
234
- const w = document.documentElement.classList;
235
- w.remove($ === "dark" ? "light" : "dark"), w.add($), l.value = $ === "dark", n !== $ && (n = $, t("emit:change", $));
236
- }, m = ($) => {
233
+ }, h = (k) => {
234
+ const r = document.documentElement.classList;
235
+ r.remove(k === "dark" ? "light" : "dark"), r.add(k), l.value = k === "dark", n !== k && (n = k, t("emit:change", k));
236
+ }, v = (k) => {
237
237
  try {
238
- localStorage.setItem(e.storageKey, $);
238
+ localStorage.setItem(e.storageKey, k);
239
239
  } catch {
240
240
  }
241
- h($);
241
+ h(k);
242
242
  }, u = () => {
243
- m(l.value ? "light" : "dark");
244
- }, k = ($) => {
245
- m($.matches ? "dark" : "light");
246
- }, x = ($) => {
247
- $.key === e.storageKey && h(p($.newValue) ? $.newValue : r());
243
+ v(l.value ? "light" : "dark");
244
+ }, S = (k) => {
245
+ v(k.matches ? "dark" : "light");
246
+ }, x = (k) => {
247
+ k.key === e.storageKey && h(g(k.newValue) ? k.newValue : d());
248
248
  };
249
249
  return G(() => {
250
- s = window.matchMedia("(prefers-color-scheme: dark)"), h(c() ?? r()), s.addEventListener("change", k), window.addEventListener("storage", x);
250
+ s = window.matchMedia("(prefers-color-scheme: dark)"), h(p() ?? d()), s.addEventListener("change", S), window.addEventListener("storage", x);
251
251
  }), U(() => {
252
- s?.removeEventListener("change", k), window.removeEventListener("storage", x);
253
- }), ($, w) => (d(), f("button", {
252
+ s?.removeEventListener("change", S), window.removeEventListener("storage", x);
253
+ }), (k, r) => (c(), b("button", {
254
254
  type: "button",
255
255
  role: "switch",
256
256
  class: "dwui-dark-mode-selector",
@@ -258,25 +258,25 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
258
258
  "aria-checked": l.value,
259
259
  onClick: u
260
260
  }, [
261
- v("span", kt, [
262
- v("span", St, [
263
- C($.$slots, "icon-light", {}, () => [
264
- A(_(Ze))
261
+ f("span", Ct, [
262
+ f("span", xt, [
263
+ C(k.$slots, "icon-light", {}, () => [
264
+ A(_(ot))
265
265
  ])
266
266
  ]),
267
- v("span", Pt, [
268
- C($.$slots, "icon-dark", {}, () => [
269
- A(_(et), { "moon-age": 3.85 })
267
+ f("span", Bt, [
268
+ C(k.$slots, "icon-dark", {}, () => [
269
+ A(_(nt), { "moon-age": 3.85 })
270
270
  ])
271
271
  ])
272
272
  ]),
273
- w[0] || (w[0] = v("span", { class: "dwui-dark-mode-selector-handle" }, null, -1))
274
- ], 8, $t));
273
+ r[0] || (r[0] = f("span", { class: "dwui-dark-mode-selector-handle" }, null, -1))
274
+ ], 8, Pt));
275
275
  }
276
- }), Ct = { class: "dwui-pagination" }, xt = { class: "dwui-pagination-list" }, Bt = ["disabled", "aria-label", "title"], Lt = ["disabled", "aria-label", "title"], Et = ["disabled", "aria-label", "title"], Tt = ["aria-current", "onClick"], Mt = ["disabled", "aria-label", "title"], At = ["disabled", "aria-label", "title"], Dt = ["disabled", "aria-label", "title"], It = {
276
+ }), Lt = { class: "dwui-pagination" }, Tt = { class: "dwui-pagination-list" }, Et = ["disabled", "aria-label", "title"], Mt = ["disabled", "aria-label", "title"], At = ["disabled", "aria-label", "title"], Dt = ["aria-current", "onClick"], Ot = ["disabled", "aria-label", "title"], It = ["disabled", "aria-label", "title"], Nt = ["disabled", "aria-label", "title"], zt = {
277
277
  key: 0,
278
278
  class: "dwui-pagination-select"
279
- }, Ot = ["value", "disabled"], Nt = ["value"], Ht = /* @__PURE__ */ D({
279
+ }, Ht = ["value", "disabled"], Rt = ["value"], jt = /* @__PURE__ */ D({
280
280
  __name: "pagination",
281
281
  props: {
282
282
  current: {},
@@ -288,155 +288,155 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
288
288
  },
289
289
  emits: ["emit:changePage"],
290
290
  setup(a, { emit: o }) {
291
- const e = a, t = o, l = T(() => Math.ceil(e.totalCount / e.limit)), n = T(() => Math.min(Math.max(e.current, 1), l.value)), s = B(!1), p = T(() => l.value < 1 ? [] : s.value ? Array.from({ length: l.value }, (w, S) => S + 1) : [n.value]), r = T(() => {
291
+ const e = a, t = o, l = T(() => Math.ceil(e.totalCount / e.limit)), n = T(() => Math.min(Math.max(e.current, 1), l.value)), s = B(!1), g = T(() => l.value < 1 ? [] : s.value ? Array.from({ length: l.value }, (r, P) => P + 1) : [n.value]), d = T(() => {
292
292
  if (l.value < 1)
293
293
  return [];
294
- const w = Math.min(
294
+ const r = Math.min(
295
295
  Math.max(n.value - Math.floor((e.maxPagination - 1) / 2), 1),
296
296
  Math.max(l.value - e.maxPagination + 1, 1)
297
- ), S = Math.min(w + e.maxPagination - 1, l.value);
298
- return Array.from({ length: S - w + 1 }, (b, L) => w + L);
299
- }), c = (w) => {
300
- w !== e.current && t("emit:changePage", w);
301
- }, h = (w) => {
302
- let S;
303
- w < 0 ? S = Math.max(r.value[0] - e.maxPagination, 1) : S = Math.min(r.value[r.value.length - 1] + e.maxPagination, l.value) - e.maxPagination + 1, c(S + Math.round((e.maxPagination - 1) / 2));
304
- }, m = (w) => {
305
- c(Number(w.target.value));
297
+ ), P = Math.min(r + e.maxPagination - 1, l.value);
298
+ return Array.from({ length: P - r + 1 }, (w, O) => r + O);
299
+ }), p = (r) => {
300
+ r !== e.current && t("emit:changePage", r);
301
+ }, h = (r) => {
302
+ let P;
303
+ r < 0 ? P = Math.max(d.value[0] - e.maxPagination, 1) : P = Math.min(d.value[d.value.length - 1] + e.maxPagination, l.value) - e.maxPagination + 1, p(P + Math.round((e.maxPagination - 1) / 2));
304
+ }, v = (r) => {
305
+ p(Number(r.target.value));
306
306
  }, u = () => {
307
307
  s.value = !0;
308
- }, k = (w) => {
309
- document.activeElement !== w.currentTarget && (s.value = !1);
308
+ }, S = (r) => {
309
+ document.activeElement !== r.currentTarget && (s.value = !1);
310
310
  }, x = () => {
311
311
  s.value = !0;
312
- }, $ = () => {
312
+ }, k = () => {
313
313
  s.value = !1;
314
314
  };
315
- return (w, S) => (d(), f("div", Ct, [
316
- v("ul", xt, [
317
- v("li", null, [
318
- v("button", {
315
+ return (r, P) => (c(), b("div", Lt, [
316
+ f("ul", Tt, [
317
+ f("li", null, [
318
+ f("button", {
319
319
  type: "button",
320
320
  disabled: n.value <= 1,
321
321
  "aria-label": e.labels.firstPage,
322
322
  title: e.labels.firstPage,
323
- onClick: S[0] || (S[0] = (b) => c(1))
323
+ onClick: P[0] || (P[0] = (w) => p(1))
324
324
  }, [
325
- A(_(_e), {
325
+ A(_($e), {
326
326
  direction: "left",
327
327
  size: "1em",
328
328
  "stroke-width": 8
329
329
  })
330
- ], 8, Bt)
330
+ ], 8, Et)
331
331
  ]),
332
- v("li", null, [
333
- v("button", {
332
+ f("li", null, [
333
+ f("button", {
334
334
  type: "button",
335
335
  disabled: n.value <= 1,
336
336
  "aria-label": e.labels.previousPage,
337
337
  title: e.labels.previousPage,
338
- onClick: S[1] || (S[1] = (b) => c(n.value - 1))
338
+ onClick: P[1] || (P[1] = (w) => p(n.value - 1))
339
339
  }, [
340
- A(_($e), {
340
+ A(_(ke), {
341
341
  direction: "left",
342
342
  size: "1em",
343
343
  "stroke-width": 8
344
344
  })
345
- ], 8, Lt)
345
+ ], 8, Mt)
346
346
  ]),
347
- v("li", null, [
348
- v("button", {
347
+ f("li", null, [
348
+ f("button", {
349
349
  type: "button",
350
- disabled: r.value.length === 0 || r.value[0] === 1,
350
+ disabled: d.value.length === 0 || d.value[0] === 1,
351
351
  "aria-label": e.labels.previousPages,
352
352
  title: e.labels.previousPages,
353
- onClick: S[2] || (S[2] = (b) => h(-1))
353
+ onClick: P[2] || (P[2] = (w) => h(-1))
354
354
  }, [
355
- A(_(ke), {
355
+ A(_(Se), {
356
356
  direction: "left",
357
357
  size: "1em"
358
358
  })
359
- ], 8, Et)
359
+ ], 8, At)
360
360
  ]),
361
- (d(!0), f(K, null, Y(r.value, (b) => (d(), f("li", { key: b }, [
362
- v("button", {
361
+ (c(!0), b(W, null, Y(d.value, (w) => (c(), b("li", { key: w }, [
362
+ f("button", {
363
363
  type: "button",
364
- class: O(["dwui-pagination-page", { "dwui-current": b === n.value }]),
365
- "aria-current": b === n.value ? "page" : void 0,
366
- onClick: (L) => c(b)
367
- }, N(b), 11, Tt)
364
+ class: N(["dwui-pagination-page", { "dwui-current": w === n.value }]),
365
+ "aria-current": w === n.value ? "page" : void 0,
366
+ onClick: (O) => p(w)
367
+ }, z(w), 11, Dt)
368
368
  ]))), 128)),
369
- v("li", null, [
370
- v("button", {
369
+ f("li", null, [
370
+ f("button", {
371
371
  type: "button",
372
- disabled: r.value.length === 0 || r.value[r.value.length - 1] === l.value,
372
+ disabled: d.value.length === 0 || d.value[d.value.length - 1] === l.value,
373
373
  "aria-label": e.labels.nextPages,
374
374
  title: e.labels.nextPages,
375
- onClick: S[3] || (S[3] = (b) => h(1))
375
+ onClick: P[3] || (P[3] = (w) => h(1))
376
376
  }, [
377
- A(_(ke), {
377
+ A(_(Se), {
378
378
  direction: "right",
379
379
  size: "1em"
380
380
  })
381
- ], 8, Mt)
381
+ ], 8, Ot)
382
382
  ]),
383
- v("li", null, [
384
- v("button", {
383
+ f("li", null, [
384
+ f("button", {
385
385
  type: "button",
386
386
  disabled: l.value <= n.value,
387
387
  "aria-label": e.labels.nextPage,
388
388
  title: e.labels.nextPage,
389
- onClick: S[4] || (S[4] = (b) => c(n.value + 1))
389
+ onClick: P[4] || (P[4] = (w) => p(n.value + 1))
390
390
  }, [
391
- A(_($e), {
391
+ A(_(ke), {
392
392
  direction: "right",
393
393
  size: "1em",
394
394
  "stroke-width": 8
395
395
  })
396
- ], 8, At)
396
+ ], 8, It)
397
397
  ]),
398
- v("li", null, [
399
- v("button", {
398
+ f("li", null, [
399
+ f("button", {
400
400
  type: "button",
401
401
  disabled: l.value <= n.value,
402
402
  "aria-label": e.labels.lastPage,
403
403
  title: e.labels.lastPage,
404
- onClick: S[5] || (S[5] = (b) => c(l.value))
404
+ onClick: P[5] || (P[5] = (w) => p(l.value))
405
405
  }, [
406
- A(_(_e), {
406
+ A(_($e), {
407
407
  direction: "right",
408
408
  size: "1em",
409
409
  "stroke-width": 8
410
410
  })
411
- ], 8, Dt)
411
+ ], 8, Nt)
412
412
  ])
413
413
  ]),
414
- e.showPageSelect ? (d(), f("label", It, [
415
- v("span", null, N(e.labels.pageNumber), 1),
416
- v("select", {
414
+ e.showPageSelect ? (c(), b("label", zt, [
415
+ f("span", null, z(e.labels.pageNumber), 1),
416
+ f("select", {
417
417
  value: n.value,
418
418
  disabled: l.value <= 1,
419
419
  onPointerenter: u,
420
- onPointerleave: k,
420
+ onPointerleave: S,
421
421
  onFocus: x,
422
- onBlur: $,
423
- onChange: m
422
+ onBlur: k,
423
+ onChange: v
424
424
  }, [
425
- (d(!0), f(K, null, Y(p.value, (b) => (d(), f("option", {
426
- key: b,
427
- value: b
428
- }, N(b) + " (" + N((b - 1) * e.limit + 1) + " - " + N(Math.min(b * e.limit, e.totalCount)) + ") ", 9, Nt))), 128))
429
- ], 40, Ot)
425
+ (c(!0), b(W, null, Y(g.value, (w) => (c(), b("option", {
426
+ key: w,
427
+ value: w
428
+ }, z(w) + " (" + z((w - 1) * e.limit + 1) + " - " + z(Math.min(w * e.limit, e.totalCount)) + ") ", 9, Rt))), 128))
429
+ ], 40, Ht)
430
430
  ])) : M("", !0)
431
431
  ]));
432
432
  }
433
- }), zt = { class: "dwui-data-table-controls" }, Rt = { class: "dwui-data-table-tools" }, jt = {
433
+ }), Kt = { class: "dwui-data-table-controls" }, Wt = { class: "dwui-data-table-tools" }, Ft = {
434
434
  key: 0,
435
435
  class: "dwui-data-table-total"
436
- }, Wt = { class: "dwui-data-table-total-count" }, Kt = {
436
+ }, Vt = { class: "dwui-data-table-total-count" }, Gt = {
437
437
  key: 1,
438
438
  class: "dwui-data-table-limit"
439
- }, Ft = ["value", "max"], Vt = ["title", "aria-label"], Gt = ["title", "aria-label"], Se = /* @__PURE__ */ D({
439
+ }, Ut = ["value", "max"], Xt = ["title", "aria-label"], Yt = ["title", "aria-label"], Pe = /* @__PURE__ */ D({
440
440
  __name: "data-table-controls",
441
441
  props: {
442
442
  pagination: { type: Boolean },
@@ -455,12 +455,12 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
455
455
  },
456
456
  emits: ["emit:changePage", "emit:changeLimit", "emit:downloadPage", "emit:downloadAll"],
457
457
  setup(a, { emit: o }) {
458
- const e = a, t = o, l = new Intl.NumberFormat("en-US"), n = T(() => e.formatTotalCount ? e.formatTotalCount(e.totalCount) : l.format(e.totalCount)), s = (p) => {
459
- const r = p.target, c = Math.min(Math.max(Math.trunc(Number(r.value)) || 1, 1), e.maxLimit);
460
- r.value = String(c), c !== e.limit && t("emit:changeLimit", c);
458
+ const e = a, t = o, l = new Intl.NumberFormat("en-US"), n = T(() => e.formatTotalCount ? e.formatTotalCount(e.totalCount) : l.format(e.totalCount)), s = (g) => {
459
+ const d = g.target, p = Math.min(Math.max(Math.trunc(Number(d.value)) || 1, 1), e.maxLimit);
460
+ d.value = String(p), p !== e.limit && t("emit:changeLimit", p);
461
461
  };
462
- return (p, r) => (d(), f("div", zt, [
463
- e.pagination ? (d(), j(Ht, {
462
+ return (g, d) => (c(), b("div", Kt, [
463
+ e.pagination ? (c(), j(jt, {
464
464
  key: 0,
465
465
  current: e.current,
466
466
  "total-count": e.totalCount,
@@ -468,47 +468,47 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
468
468
  "max-pagination": e.maxPagination,
469
469
  "show-page-select": e.showPageSelect,
470
470
  labels: e.labels,
471
- "onEmit:changePage": r[0] || (r[0] = (c) => t("emit:changePage", c))
471
+ "onEmit:changePage": d[0] || (d[0] = (p) => t("emit:changePage", p))
472
472
  }, null, 8, ["current", "total-count", "limit", "max-pagination", "show-page-select", "labels"])) : M("", !0),
473
- v("div", Rt, [
474
- e.showTotal ? (d(), f("span", jt, [
475
- v("span", null, N(e.labels.totalCount), 1),
476
- v("span", Wt, N(n.value), 1),
477
- v("span", null, N(e.labels.totalUnit), 1)
473
+ f("div", Wt, [
474
+ e.showTotal ? (c(), b("span", Ft, [
475
+ f("span", null, z(e.labels.totalCount), 1),
476
+ f("span", Vt, z(n.value), 1),
477
+ f("span", null, z(e.labels.totalUnit), 1)
478
478
  ])) : M("", !0),
479
- e.showLimit ? (d(), f("label", Kt, [
480
- v("span", null, N(e.labels.limit), 1),
481
- v("input", {
479
+ e.showLimit ? (c(), b("label", Gt, [
480
+ f("span", null, z(e.labels.limit), 1),
481
+ f("input", {
482
482
  type: "number",
483
483
  value: e.limit,
484
484
  min: "1",
485
485
  max: e.maxLimit,
486
486
  step: "1",
487
487
  onChange: s
488
- }, null, 40, Ft)
488
+ }, null, 40, Ut)
489
489
  ])) : M("", !0),
490
- e.showDownloadPage ? (d(), f("button", {
490
+ e.showDownloadPage ? (c(), b("button", {
491
491
  key: 2,
492
492
  type: "button",
493
493
  title: e.labels.downloadPage,
494
494
  "aria-label": e.labels.downloadPage,
495
- onClick: r[1] || (r[1] = (c) => t("emit:downloadPage"))
495
+ onClick: d[1] || (d[1] = (p) => t("emit:downloadPage"))
496
496
  }, [
497
- A(_(tt))
498
- ], 8, Vt)) : M("", !0),
499
- e.showDownloadAll ? (d(), f("button", {
497
+ A(_(lt))
498
+ ], 8, Xt)) : M("", !0),
499
+ e.showDownloadAll ? (c(), b("button", {
500
500
  key: 3,
501
501
  type: "button",
502
502
  title: e.labels.downloadAll,
503
503
  "aria-label": e.labels.downloadAll,
504
- onClick: r[2] || (r[2] = (c) => t("emit:downloadAll"))
504
+ onClick: d[2] || (d[2] = (p) => t("emit:downloadAll"))
505
505
  }, [
506
- A(_(ot))
507
- ], 8, Gt)) : M("", !0)
506
+ A(_(at))
507
+ ], 8, Yt)) : M("", !0)
508
508
  ])
509
509
  ]));
510
510
  }
511
- }), Pe = (a, o) => {
511
+ }), Ce = (a, o) => {
512
512
  let e = a;
513
513
  for (const t of o.replace(/\[(\w+)\]/g, ".$1").split(".")) {
514
514
  if (e == null)
@@ -516,7 +516,7 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
516
516
  e = e[t];
517
517
  }
518
518
  return e;
519
- }, Ce = (a) => typeof a == "function" ? a() : a ?? "", xe = (a) => a === !0 || a === "true" || a === "1" || a === "on" || a === 1, Be = (a) => typeof a == "number" ? a : Number(String(a).replace(/[^+\-\d.]/g, "")), Ut = (a, o, e) => {
519
+ }, xe = (a) => typeof a == "function" ? a() : a ?? "", Be = (a) => a === !0 || a === "true" || a === "1" || a === "on" || a === 1, Le = (a) => typeof a == "number" ? a : Number(String(a).replace(/[^+\-\d.]/g, "")), qt = (a, o, e) => {
520
520
  if (a == null && o == null)
521
521
  return 0;
522
522
  if (a == null)
@@ -527,9 +527,9 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
527
527
  return 0;
528
528
  switch (e) {
529
529
  case "boolean":
530
- return (xe(a) ? 1 : 0) - (xe(o) ? 1 : 0);
530
+ return (Be(a) ? 1 : 0) - (Be(o) ? 1 : 0);
531
531
  case "number": {
532
- const t = Be(a), l = Be(o);
532
+ const t = Le(a), l = Le(o);
533
533
  return Number.isNaN(t) || Number.isNaN(l) ? (Number.isNaN(t) ? 0 : 1) - (Number.isNaN(l) ? 0 : 1) : t - l;
534
534
  }
535
535
  case "object":
@@ -543,13 +543,13 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
543
543
  } catch {
544
544
  return "";
545
545
  }
546
- }, Xt = ["rowspan", "colspan", "title", "aria-sort"], Yt = { class: "dwui-data-table-header" }, qt = ["role", "tabindex", "onClick", "onKeydown"], Qt = ["innerHTML"], Jt = { key: 2 }, Zt = ["onPointerdown"], eo = {
546
+ }, Qt = /* @__PURE__ */ Symbol("dwui-vue-core-options"), Jt = ["rowspan", "colspan", "title", "aria-sort"], Zt = { class: "dwui-data-table-header" }, eo = ["role", "tabindex", "onClick", "onKeydown"], to = ["innerHTML"], oo = { key: 2 }, no = ["onPointerdown"], lo = {
547
547
  key: 0,
548
548
  class: "dwui-data-table-no-data"
549
- }, to = ["colspan"], oo = {
549
+ }, ao = ["colspan"], so = {
550
550
  key: 0,
551
551
  class: "dwui-data-table-loading"
552
- }, qo = /* @__PURE__ */ D({
552
+ }, en = /* @__PURE__ */ D({
553
553
  __name: "data-table",
554
554
  props: {
555
555
  dataList: {},
@@ -558,20 +558,20 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
558
558
  totalCount: { default: void 0 },
559
559
  current: { default: 1 },
560
560
  limit: { default: 100 },
561
- maxLimit: { default: 9999 },
562
- maxPagination: { default: 7 },
563
- selectable: { type: Boolean, default: !0 },
564
- controls: { default: "both" },
565
- pagination: { default: "both" },
566
- showDownloadPage: { type: Boolean, default: !0 },
567
- showDownloadAll: { type: Boolean, default: !0 },
568
- showTotal: { type: Boolean, default: !0 },
569
- showLimit: { type: Boolean, default: !0 },
570
- showPageSelect: { type: Boolean, default: !1 },
571
- showNoData: { type: Boolean, default: !0 },
572
- resizable: { type: Boolean, default: !0 },
573
- sortable: { type: Boolean, default: !0 },
574
- sortMode: { default: "remote" },
561
+ maxLimit: { default: void 0 },
562
+ maxPagination: { default: void 0 },
563
+ selectable: { type: Boolean, default: void 0 },
564
+ controls: { default: void 0 },
565
+ pagination: { default: void 0 },
566
+ showDownloadPage: { type: Boolean, default: void 0 },
567
+ showDownloadAll: { type: Boolean, default: void 0 },
568
+ showTotal: { type: Boolean, default: void 0 },
569
+ showLimit: { type: Boolean, default: void 0 },
570
+ showPageSelect: { type: Boolean, default: void 0 },
571
+ showNoData: { type: Boolean, default: void 0 },
572
+ resizable: { type: Boolean, default: void 0 },
573
+ sortable: { type: Boolean, default: void 0 },
574
+ sortMode: { default: void 0 },
575
575
  contentClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
576
576
  contentStyle: { type: [Boolean, null, String, Object, Array], default: void 0 },
577
577
  tableClass: { type: [Boolean, null, String, Object, Array], default: void 0 },
@@ -581,9 +581,35 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
581
581
  },
582
582
  emits: ["emit:selectRow", "emit:changeSort", "emit:updateHeader", "emit:dblclickRow", "emit:changeLimit", "emit:changePage", "emit:downloadPage", "emit:downloadAll"],
583
583
  setup(a, { expose: o, emit: e }) {
584
- const t = a, l = e, n = B(), s = B(), p = B(), r = B({}), c = B(""), h = B(!1), m = B();
585
- let u;
586
- const k = T(() => t.headers.map((i) => r.value[i.id] == null ? i : { ...i, width: r.value[i.id] })), x = T(() => {
584
+ const t = a, l = e, n = Oe(Qt, {}), s = B(), g = B(), d = B(), p = B({}), h = B(""), v = B(!1), u = B();
585
+ let S;
586
+ const x = T(() => t.headers.map((i) => p.value[i.id] == null ? i : { ...i, width: p.value[i.id] })), k = {
587
+ maxLimit: 9999,
588
+ maxPagination: 7,
589
+ selectable: !0,
590
+ controls: "both",
591
+ pagination: "both",
592
+ showDownloadPage: !0,
593
+ showDownloadAll: !0,
594
+ showTotal: !0,
595
+ showLimit: !0,
596
+ showPageSelect: !1,
597
+ showNoData: !0,
598
+ resizable: !0,
599
+ sortable: !0,
600
+ sortMode: "remote",
601
+ contentClass: void 0,
602
+ contentStyle: void 0,
603
+ tableClass: void 0,
604
+ tableStyle: void 0,
605
+ formatTotalCount: void 0
606
+ }, r = T(() => {
607
+ const i = { ...k };
608
+ for (const m of [n.dataTable ?? {}, t])
609
+ for (const y of Object.keys(k))
610
+ m[y] !== void 0 && Object.assign(i, { [y]: m[y] });
611
+ return i;
612
+ }), P = T(() => {
587
613
  const i = {
588
614
  totalCount: "Total",
589
615
  totalUnit: "",
@@ -598,268 +624,269 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
598
624
  nextPages: "Next pages",
599
625
  nextPage: "Next page",
600
626
  lastPage: "Last page",
627
+ ...n.dataTable?.labels,
601
628
  ...t.labels
602
- }, g = {};
629
+ }, m = {};
603
630
  for (const y of Object.keys(i)) {
604
631
  const E = i[y];
605
- g[y] = typeof E == "function" ? E() : E;
632
+ m[y] = typeof E == "function" ? E() : E;
606
633
  }
607
- return g;
608
- }), $ = T(() => Math.min(t.limit, t.maxLimit)), w = T(() => ({
609
- showTotal: t.showTotal,
610
- showLimit: t.showLimit,
611
- showPageSelect: t.showPageSelect,
612
- showDownloadPage: t.showDownloadPage,
613
- showDownloadAll: t.showDownloadAll,
634
+ return m;
635
+ }), w = T(() => Math.min(t.limit, r.value.maxLimit)), O = T(() => ({
636
+ showTotal: r.value.showTotal,
637
+ showLimit: r.value.showLimit,
638
+ showPageSelect: r.value.showPageSelect,
639
+ showDownloadPage: r.value.showDownloadPage,
640
+ showDownloadAll: r.value.showDownloadAll,
614
641
  current: t.current,
615
- limit: $.value,
616
- maxLimit: t.maxLimit,
617
- maxPagination: t.maxPagination,
642
+ limit: w.value,
643
+ maxLimit: r.value.maxLimit,
644
+ maxPagination: r.value.maxPagination,
618
645
  totalCount: t.totalCount ?? t.dataList.length,
619
- formatTotalCount: t.formatTotalCount,
620
- labels: x.value
621
- })), S = Ue(void 0), b = T(() => {
622
- const i = t.sortMode === "page" ? t.headers.find((y) => y.id === c.value) : void 0;
646
+ formatTotalCount: r.value.formatTotalCount,
647
+ labels: P.value
648
+ })), $ = Qe(void 0), I = T(() => {
649
+ const i = r.value.sortMode === "page" ? t.headers.find((y) => y.id === h.value) : void 0;
623
650
  if (!i)
624
651
  return t.dataList;
625
- const g = i.compare ?? ((y, E) => {
652
+ const m = i.compare ?? ((y, E) => {
626
653
  const R = i.sortKey ?? i.id;
627
- return Ut(Pe(y, R), Pe(E, R), i.type ?? "string");
654
+ return qt(Ce(y, R), Ce(E, R), i.type ?? "string");
628
655
  });
629
- return [...t.dataList].sort((y, E) => h.value ? g(E, y) : g(y, E));
656
+ return [...t.dataList].sort((y, E) => v.value ? m(E, y) : m(y, E));
630
657
  }), L = T(() => {
631
- const i = S.value;
658
+ const i = $.value;
632
659
  if (i == null)
633
660
  return -1;
634
- const g = b.value.indexOf(i);
635
- if (g !== -1)
636
- return g;
661
+ const m = I.value.indexOf(i);
662
+ if (m !== -1)
663
+ return m;
637
664
  const y = ce(i);
638
- return y === "" ? -1 : b.value.findIndex((E) => ce(E) === y);
639
- }), P = T(() => t.headers.reduce((i, g) => i + (g.colspan == null ? 1 : Number(g.colspan)), 0)), z = (i) => {
665
+ return y === "" ? -1 : I.value.findIndex((E) => ce(E) === y);
666
+ }), V = T(() => t.headers.reduce((i, m) => i + (m.colspan == null ? 1 : Number(m.colspan)), 0)), K = (i) => {
640
667
  if (i != null)
641
668
  return typeof i == "number" ? `${i}px` : i;
642
- }, I = (i) => ({
643
- width: z(i.width),
644
- minWidth: z(i.minWidth),
645
- maxWidth: z(i.maxWidth)
646
- }), V = (i) => {
647
- if (c.value === i)
648
- return h.value ? "descending" : "ascending";
649
- }, W = (i) => {
650
- if (!(!t.sortable || c.value !== i))
651
- return h.value ? "down" : "up";
652
- }, q = (i) => (t.current - 1) * $.value + i + 1, fe = () => Array.from(p.value?.children ?? []).filter((i) => i.tagName === "TR" && !i.classList.contains("dwui-data-table-no-data")), je = (i) => Array.from(i.children).filter((g) => g.tagName === "TD" || g.tagName === "TH"), be = () => {
653
- l("emit:updateHeader", k.value.map((i) => ({ ...i })));
669
+ }, q = (i) => ({
670
+ width: K(i.width),
671
+ minWidth: K(i.minWidth),
672
+ maxWidth: K(i.maxWidth)
673
+ }), We = (i) => {
674
+ if (h.value === i)
675
+ return v.value ? "descending" : "ascending";
676
+ }, fe = (i) => {
677
+ if (!(!r.value.sortable || h.value !== i))
678
+ return v.value ? "down" : "up";
679
+ }, Fe = (i) => (t.current - 1) * w.value + i + 1, be = () => Array.from(d.value?.children ?? []).filter((i) => i.tagName === "TR" && !i.classList.contains("dwui-data-table-no-data")), Ve = (i) => Array.from(i.children).filter((m) => m.tagName === "TD" || m.tagName === "TH"), he = () => {
680
+ l("emit:updateHeader", x.value.map((i) => ({ ...i })));
654
681
  }, ue = () => {
655
- fe().forEach((i, g) => i.classList.toggle("dwui-selected", g === L.value));
656
- }, We = () => {
657
- const i = n.value, g = fe()[L.value];
658
- if (!i || !g)
682
+ be().forEach((i, m) => i.classList.toggle("dwui-selected", m === L.value));
683
+ }, Ge = () => {
684
+ const i = s.value, m = be()[L.value];
685
+ if (!i || !m)
659
686
  return;
660
- const y = s.value?.offsetHeight ?? 0, E = g.offsetTop, R = E + g.offsetHeight;
687
+ const y = g.value?.offsetHeight ?? 0, E = m.offsetTop, R = E + m.offsetHeight;
661
688
  E < i.scrollTop + y ? i.scrollTop = E - y : i.scrollTop + i.clientHeight < R && (i.scrollTop = R - i.clientHeight);
662
- }, re = (i, g) => {
663
- S.value = i, l("emit:selectRow", i, g);
664
- }, he = (i, g) => {
665
- t.selectable && (g === L.value ? re(void 0, -1) : (re(i, g), n.value?.focus({ preventScroll: !0 })));
666
- }, Ke = (i, g) => {
667
- g !== L.value && he(i, g), l("emit:dblclickRow", i, g);
668
- }, Fe = (i) => {
689
+ }, re = (i, m) => {
690
+ $.value = i, l("emit:selectRow", i, m);
691
+ }, we = (i, m) => {
692
+ r.value.selectable && (m === L.value ? re(void 0, -1) : (re(i, m), s.value?.focus({ preventScroll: !0 })));
693
+ }, Ue = (i, m) => {
694
+ m !== L.value && we(i, m), l("emit:dblclickRow", i, m);
695
+ }, Xe = (i) => {
669
696
  if (i.target !== i.currentTarget || L.value < 0 || i.key !== "ArrowUp" && i.key !== "ArrowDown")
670
697
  return;
671
- const g = L.value + (i.key === "ArrowUp" ? -1 : 1);
672
- g < 0 || b.value.length <= g || (i.preventDefault(), re(b.value[g], g));
698
+ const m = L.value + (i.key === "ArrowUp" ? -1 : 1);
699
+ m < 0 || I.value.length <= m || (i.preventDefault(), re(I.value[m], m));
673
700
  }, pe = (i) => {
674
- !t.sortable || t.dataList.length === 0 || (h.value = c.value === i.id ? !h.value : !1, c.value = i.id, l("emit:changeSort", {
675
- sortKey: c.value,
676
- descending: h.value
701
+ !r.value.sortable || t.dataList.length === 0 || (v.value = h.value === i.id ? !v.value : !1, h.value = i.id, l("emit:changeSort", {
702
+ sortKey: h.value,
703
+ descending: v.value
677
704
  }));
678
- }, Ve = (i, g) => {
679
- if (!t.resizable)
705
+ }, Ye = (i, m) => {
706
+ if (!r.value.resizable)
680
707
  return;
681
708
  i.preventDefault();
682
- const y = s.value?.firstElementChild, E = y ? je(y) : [];
709
+ const y = g.value?.firstElementChild, E = y ? Ve(y) : [];
683
710
  for (const [R, ne] of E.entries())
684
- r.value[t.headers[R].id] = ne.getBoundingClientRect().width;
685
- m.value = { index: g, x: i.clientX }, i.currentTarget.setPointerCapture(i.pointerId), be();
686
- }, Ge = (i) => {
687
- if (!m.value)
711
+ p.value[t.headers[R].id] = ne.getBoundingClientRect().width;
712
+ u.value = { index: m, x: i.clientX }, i.currentTarget.setPointerCapture(i.pointerId), he();
713
+ }, qe = (i) => {
714
+ if (!u.value)
688
715
  return;
689
- const g = i.clientX - m.value.x;
690
- if (g === 0)
716
+ const m = i.clientX - u.value.x;
717
+ if (m === 0)
691
718
  return;
692
- m.value.x = i.clientX;
693
- const y = m.value.index, E = t.headers.map((ne) => ne.id);
694
- r.value[E[y]] += g;
695
- const R = g / (E.length - y - 1);
719
+ u.value.x = i.clientX;
720
+ const y = u.value.index, E = t.headers.map((ne) => ne.id);
721
+ p.value[E[y]] += m;
722
+ const R = m / (E.length - y - 1);
696
723
  for (const ne of E.slice(y + 1))
697
- r.value[ne] -= R;
698
- }, we = () => {
699
- m.value && (m.value = void 0, be());
724
+ p.value[ne] -= R;
725
+ }, ye = () => {
726
+ u.value && (u.value = void 0, he());
700
727
  };
701
728
  return G(() => {
702
- u = new MutationObserver(ue), p.value && u.observe(p.value, { childList: !0 }), ue();
729
+ S = new MutationObserver(ue), d.value && S.observe(d.value, { childList: !0 }), ue();
703
730
  }), U(() => {
704
- u?.disconnect();
705
- }), X(() => t.headers, (i, g) => {
706
- const y = i.map((R) => R.id), E = g.map((R) => R.id);
707
- (y.length !== E.length || y.some((R) => !E.includes(R))) && (r.value = {});
708
- }), X(() => t.loading, (i, g) => {
709
- g && !i && (t.sortMode === "page" && (c.value = "", h.value = !1), S.value != null && re(void 0, -1));
731
+ S?.disconnect();
732
+ }), X(() => t.headers, (i, m) => {
733
+ const y = i.map((R) => R.id), E = m.map((R) => R.id);
734
+ (y.length !== E.length || y.some((R) => !E.includes(R))) && (p.value = {});
735
+ }), X(() => t.loading, (i, m) => {
736
+ m && !i && (r.value.sortMode === "page" && (h.value = "", v.value = !1), $.value != null && re(void 0, -1));
710
737
  }), X(L, (i) => {
711
- 0 <= i && We();
738
+ 0 <= i && Ge();
712
739
  }, { flush: "post" }), X(L, ue, { flush: "post" }), o({
713
740
  /** ソートの状態を返す */
714
741
  getSortContext: () => ({
715
- sortKey: c.value,
716
- descending: h.value
742
+ sortKey: h.value,
743
+ descending: v.value
717
744
  })
718
- }), (i, g) => (d(), f("section", {
719
- class: O(["dwui-data-table", { "dwui-selectable": t.selectable }])
745
+ }), (i, m) => (c(), b("section", {
746
+ class: N(["dwui-data-table", { "dwui-selectable": r.value.selectable }])
720
747
  }, [
721
- t.controls === "both" || t.controls === "top" ? (d(), j(Se, le({ key: 0 }, w.value, {
722
- pagination: t.pagination === "both" || t.pagination === "top",
723
- "onEmit:changePage": g[0] || (g[0] = (y) => l("emit:changePage", y)),
724
- "onEmit:changeLimit": g[1] || (g[1] = (y) => l("emit:changeLimit", y)),
725
- "onEmit:downloadPage": g[2] || (g[2] = (y) => l("emit:downloadPage")),
726
- "onEmit:downloadAll": g[3] || (g[3] = (y) => l("emit:downloadAll"))
748
+ r.value.controls === "both" || r.value.controls === "top" ? (c(), j(Pe, le({ key: 0 }, O.value, {
749
+ pagination: r.value.pagination === "both" || r.value.pagination === "top",
750
+ "onEmit:changePage": m[0] || (m[0] = (y) => l("emit:changePage", y)),
751
+ "onEmit:changeLimit": m[1] || (m[1] = (y) => l("emit:changeLimit", y)),
752
+ "onEmit:downloadPage": m[2] || (m[2] = (y) => l("emit:downloadPage")),
753
+ "onEmit:downloadAll": m[3] || (m[3] = (y) => l("emit:downloadAll"))
727
754
  }), null, 16, ["pagination"])) : M("", !0),
728
- v("div", {
755
+ f("div", {
729
756
  ref_key: "refContent",
730
- ref: n,
731
- class: O(["dwui-data-table-content", [{ "dwui-loading": t.loading }, t.contentClass]]),
732
- style: F(t.contentStyle),
757
+ ref: s,
758
+ class: N(["dwui-data-table-content", [{ "dwui-loading": t.loading }, r.value.contentClass]]),
759
+ style: F(r.value.contentStyle),
733
760
  tabindex: "-1",
734
- onKeydown: Fe
761
+ onKeydown: Xe
735
762
  }, [
736
- v("table", {
737
- class: O(t.tableClass),
738
- style: F(t.tableStyle)
763
+ f("table", {
764
+ class: N(r.value.tableClass),
765
+ style: F(r.value.tableStyle)
739
766
  }, [
740
- v("thead", {
767
+ f("thead", {
741
768
  ref_key: "refThead",
742
- ref: s
769
+ ref: g
743
770
  }, [
744
- v("tr", null, [
745
- (d(!0), f(K, null, Y(k.value, (y, E) => (d(), f("th", {
771
+ f("tr", null, [
772
+ (c(!0), b(W, null, Y(x.value, (y, E) => (c(), b("th", {
746
773
  key: y.id,
747
774
  rowspan: y.rowspan,
748
775
  colspan: y.colspan,
749
776
  title: y.title,
750
- style: F(I(y)),
751
- "aria-sort": V(y.id),
777
+ style: F(q(y)),
778
+ "aria-sort": We(y.id),
752
779
  scope: "col"
753
780
  }, [
754
- v("div", Yt, [
755
- v("span", {
781
+ f("div", Zt, [
782
+ f("span", {
756
783
  class: "dwui-data-table-sort",
757
- role: t.sortable ? "button" : void 0,
758
- tabindex: t.sortable ? 0 : void 0,
784
+ role: r.value.sortable ? "button" : void 0,
785
+ tabindex: r.value.sortable ? 0 : void 0,
759
786
  onClick: (R) => pe(y),
760
787
  onKeydown: [
761
- ge(ee((R) => pe(y), ["prevent"]), ["enter"]),
762
- ge(ee((R) => pe(y), ["prevent"]), ["space"])
788
+ ve(ee((R) => pe(y), ["prevent"]), ["enter"]),
789
+ ve(ee((R) => pe(y), ["prevent"]), ["space"])
763
790
  ]
764
791
  }, [
765
- W(y.id) ? (d(), j(_(nt), {
792
+ fe(y.id) ? (c(), j(_(st), {
766
793
  key: 0,
767
- direction: W(y.id),
794
+ direction: fe(y.id),
768
795
  size: "0.7em"
769
796
  }, null, 8, ["direction"])) : M("", !0),
770
- y.html ? (d(), f("span", {
797
+ y.html ? (c(), b("span", {
771
798
  key: 1,
772
- innerHTML: _(Ce)(y.label)
773
- }, null, 8, Qt)) : (d(), f("span", Jt, N(_(Ce)(y.label)), 1))
774
- ], 40, qt)
799
+ innerHTML: _(xe)(y.label)
800
+ }, null, 8, to)) : (c(), b("span", oo, z(_(xe)(y.label)), 1))
801
+ ], 40, eo)
775
802
  ]),
776
- t.resizable && E < k.value.length - 1 ? (d(), f("div", {
803
+ r.value.resizable && E < x.value.length - 1 ? (c(), b("div", {
777
804
  key: 0,
778
805
  class: "dwui-data-table-resizer",
779
- onPointerdown: (R) => Ve(R, E),
780
- onPointermove: Ge,
781
- onPointerup: we,
782
- onPointercancel: we
783
- }, null, 40, Zt)) : M("", !0)
784
- ], 12, Xt))), 128))
806
+ onPointerdown: (R) => Ye(R, E),
807
+ onPointermove: qe,
808
+ onPointerup: ye,
809
+ onPointercancel: ye
810
+ }, null, 40, no)) : M("", !0)
811
+ ], 12, Jt))), 128))
785
812
  ])
786
813
  ], 512),
787
- v("tbody", {
814
+ f("tbody", {
788
815
  ref_key: "refTbody",
789
- ref: p
816
+ ref: d
790
817
  }, [
791
- t.loading ? M("", !0) : (d(), f(K, { key: 0 }, [
818
+ t.loading ? M("", !0) : (c(), b(W, { key: 0 }, [
792
819
  C(i.$slots, "default", {
793
- rows: b.value,
794
- clickRow: he,
795
- dblclickRow: Ke,
796
- rowNumber: q,
820
+ rows: I.value,
821
+ clickRow: we,
822
+ dblclickRow: Ue,
823
+ rowNumber: Fe,
797
824
  selectedIndex: L.value
798
825
  }),
799
- t.dataList.length === 0 && t.showNoData ? (d(), f("tr", eo, [
800
- v("td", { colspan: P.value }, N(x.value.noData), 9, to)
826
+ t.dataList.length === 0 && r.value.showNoData ? (c(), b("tr", lo, [
827
+ f("td", { colspan: V.value }, z(P.value.noData), 9, ao)
801
828
  ])) : M("", !0)
802
829
  ], 64))
803
830
  ], 512)
804
831
  ], 6),
805
- t.loading ? (d(), f("div", oo, [
832
+ t.loading ? (c(), b("div", so, [
806
833
  C(i.$slots, "loading", {}, () => [
807
- g[8] || (g[8] = v("div", { class: "dwui-data-table-loading-spinner" }, null, -1))
834
+ m[8] || (m[8] = f("div", { class: "dwui-data-table-loading-spinner" }, null, -1))
808
835
  ])
809
836
  ])) : M("", !0)
810
837
  ], 38),
811
- t.controls === "both" || t.controls === "bottom" ? (d(), j(Se, le({ key: 1 }, w.value, {
812
- pagination: t.pagination === "both" || t.pagination === "bottom",
813
- "onEmit:changePage": g[4] || (g[4] = (y) => l("emit:changePage", y)),
814
- "onEmit:changeLimit": g[5] || (g[5] = (y) => l("emit:changeLimit", y)),
815
- "onEmit:downloadPage": g[6] || (g[6] = (y) => l("emit:downloadPage")),
816
- "onEmit:downloadAll": g[7] || (g[7] = (y) => l("emit:downloadAll"))
838
+ r.value.controls === "both" || r.value.controls === "bottom" ? (c(), j(Pe, le({ key: 1 }, O.value, {
839
+ pagination: r.value.pagination === "both" || r.value.pagination === "bottom",
840
+ "onEmit:changePage": m[4] || (m[4] = (y) => l("emit:changePage", y)),
841
+ "onEmit:changeLimit": m[5] || (m[5] = (y) => l("emit:changeLimit", y)),
842
+ "onEmit:downloadPage": m[6] || (m[6] = (y) => l("emit:downloadPage")),
843
+ "onEmit:downloadAll": m[7] || (m[7] = (y) => l("emit:downloadAll"))
817
844
  }), null, 16, ["pagination"])) : M("", !0)
818
845
  ], 2));
819
846
  }
820
- }), Le = {
847
+ }), Te = {
821
848
  top: "bottom",
822
849
  bottom: "top",
823
850
  left: "right",
824
851
  right: "left"
825
- }, me = (a, o, e) => Math.min(Math.max(a, o), e), no = (a, o, e, t) => {
826
- const { offset: l, margin: n, arrowMargin: s } = t, [p, r = "center"] = t.placement.split("-"), c = p === "top" || p === "bottom", h = a.top + a.height, m = a.left + a.width, u = {
852
+ }, me = (a, o, e) => Math.min(Math.max(a, o), e), io = (a, o, e, t) => {
853
+ const { offset: l, margin: n, arrowMargin: s } = t, [g, d = "center"] = t.placement.split("-"), p = g === "top" || g === "bottom", h = a.top + a.height, v = a.left + a.width, u = {
827
854
  top: a.top - n,
828
855
  bottom: e.height - h - n,
829
856
  left: a.left - n,
830
- right: e.width - m - n
831
- }, $ = (c ? o.height : o.width) + l <= u[p] || u[Le[p]] <= u[p] ? p : Le[p];
832
- let w;
833
- switch ($) {
857
+ right: e.width - v - n
858
+ }, k = (p ? o.height : o.width) + l <= u[g] || u[Te[g]] <= u[g] ? g : Te[g];
859
+ let r;
860
+ switch (k) {
834
861
  case "top":
835
- w = a.top - l - o.height;
862
+ r = a.top - l - o.height;
836
863
  break;
837
864
  case "bottom":
838
- w = h + l;
865
+ r = h + l;
839
866
  break;
840
867
  case "left":
841
- w = a.left - l - o.width;
868
+ r = a.left - l - o.width;
842
869
  break;
843
870
  default:
844
- w = m + l;
871
+ r = v + l;
845
872
  break;
846
873
  }
847
- const S = c ? a.left : a.top, b = c ? a.width : a.height, L = c ? o.width : o.height;
848
- let P;
849
- switch (r) {
874
+ const P = p ? a.left : a.top, w = p ? a.width : a.height, O = p ? o.width : o.height;
875
+ let $;
876
+ switch (d) {
850
877
  case "start":
851
- P = S;
878
+ $ = P;
852
879
  break;
853
880
  case "end":
854
- P = S + b - L;
881
+ $ = P + w - O;
855
882
  break;
856
883
  default:
857
- P = S + (b - L) / 2;
884
+ $ = P + (w - O) / 2;
858
885
  break;
859
886
  }
860
- const z = me(c ? w : P, n, Math.max(n, e.height - n - o.height)), I = me(c ? P : w, n, Math.max(n, e.width - n - o.width)), V = S + b / 2, q = me(V - (c ? I : z), s, Math.max(s, L - s));
861
- return { top: z, left: I, side: $, arrow: q };
862
- }, lo = ["popover", "data-side"], ao = { class: "dwui-anchored-popover-content" }, Ee = 4, so = 7, io = 12, ro = 8, He = /* @__PURE__ */ D({
887
+ const I = me(p ? r : $, n, Math.max(n, e.height - n - o.height)), L = me(p ? $ : r, n, Math.max(n, e.width - n - o.width)), V = P + w / 2, q = me(V - (p ? L : I), s, Math.max(s, O - s));
888
+ return { top: I, left: L, side: k, arrow: q };
889
+ }, ro = ["popover", "data-side"], co = { class: "dwui-anchored-popover-content" }, Ee = 4, uo = 7, po = 12, mo = 8, Re = /* @__PURE__ */ D({
863
890
  __name: "anchored-popover",
864
891
  props: {
865
892
  anchor: {},
@@ -869,50 +896,50 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
869
896
  },
870
897
  emits: ["emit:open", "emit:close"],
871
898
  setup(a, { expose: o, emit: e }) {
872
- const t = a, l = e, n = B(), s = B(), p = () => {
899
+ const t = a, l = e, n = B(), s = B(), g = () => {
873
900
  n.value?.hidePopover();
874
- }, r = () => {
901
+ }, d = () => {
875
902
  n.value?.showPopover();
876
- }, c = () => {
903
+ }, p = () => {
877
904
  const u = n.value;
878
905
  if (!t.anchor || !u)
879
906
  return;
880
- const k = {
907
+ const S = {
881
908
  width: document.documentElement.clientWidth,
882
909
  height: document.documentElement.clientHeight
883
- }, x = no(t.anchor.getBoundingClientRect(), u.getBoundingClientRect(), k, {
910
+ }, x = io(t.anchor.getBoundingClientRect(), u.getBoundingClientRect(), S, {
884
911
  placement: t.placement,
885
- offset: t.arrow ? Ee + so : Ee,
886
- margin: ro,
887
- arrowMargin: io
912
+ offset: t.arrow ? Ee + uo : Ee,
913
+ margin: mo,
914
+ arrowMargin: po
888
915
  });
889
916
  s.value = x.side, u.style.top = `${x.top}px`, u.style.left = `${x.left}px`, u.style.setProperty("--dwui-offset-arrow", `${x.arrow}px`), u.style.visibility = "visible";
890
917
  }, h = (u) => {
891
- n.value?.contains(u.target) || c();
892
- }, m = (u) => {
893
- u.newState === "open" ? (c(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", c), l("emit:open")) : (n.value && (n.value.style.visibility = ""), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", c), l("emit:close"));
918
+ n.value?.contains(u.target) || p();
919
+ }, v = (u) => {
920
+ u.newState === "open" ? (p(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", p), l("emit:open")) : (n.value && (n.value.style.visibility = ""), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", p), l("emit:close"));
894
921
  };
895
922
  return U(() => {
896
- window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", c);
923
+ window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", p);
897
924
  }), o({
898
925
  /** パネルの要素。invoker の設定や、要素がパネルの中かの判定に使う */
899
926
  element: n,
900
- show: r,
901
- hide: p
902
- }), (u, k) => (d(), f("div", {
927
+ show: d,
928
+ hide: g
929
+ }), (u, S) => (c(), b("div", {
903
930
  ref_key: "refPanel",
904
931
  ref: n,
905
- class: O(["dwui-anchored-popover", { "dwui-arrow": t.arrow }]),
932
+ class: N(["dwui-anchored-popover", { "dwui-arrow": t.arrow }]),
906
933
  popover: t.mode,
907
934
  "data-side": s.value,
908
- onToggle: m
935
+ onToggle: v
909
936
  }, [
910
- v("div", ao, [
937
+ f("div", co, [
911
938
  C(u.$slots, "default")
912
939
  ])
913
- ], 42, lo));
940
+ ], 42, ro));
914
941
  }
915
- }), co = ["aria-label"], Qo = /* @__PURE__ */ D({
942
+ }), vo = ["aria-label"], tn = /* @__PURE__ */ D({
916
943
  inheritAttrs: !1,
917
944
  __name: "help-button",
918
945
  props: {
@@ -922,23 +949,23 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
922
949
  },
923
950
  emits: ["emit:open", "emit:close"],
924
951
  setup(a, { emit: o }) {
925
- const e = a, t = o, l = De(), n = B(), s = B();
952
+ const e = a, t = o, l = Ie(), n = B(), s = B();
926
953
  return G(() => {
927
- const p = s.value?.element;
928
- n.value && p && (n.value.popoverTargetElement = p);
929
- }), (p, r) => (d(), f(K, null, [
930
- v("button", le({
954
+ const g = s.value?.element;
955
+ n.value && g && (n.value.popoverTargetElement = g);
956
+ }), (g, d) => (c(), b(W, null, [
957
+ f("button", le({
931
958
  ref_key: "refButton",
932
959
  ref: n,
933
960
  type: "button",
934
961
  class: "dwui-help-button",
935
962
  "aria-label": e.label
936
963
  }, _(l)), [
937
- C(p.$slots, "icon", {}, () => [
938
- A(_(ve))
964
+ C(g.$slots, "icon", {}, () => [
965
+ A(_(ge))
939
966
  ])
940
- ], 16, co),
941
- A(He, {
967
+ ], 16, vo),
968
+ A(Re, {
942
969
  ref_key: "refPopover",
943
970
  ref: s,
944
971
  class: "dwui-help-button-popover",
@@ -946,17 +973,17 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
946
973
  anchor: n.value,
947
974
  placement: e.placement,
948
975
  arrow: e.arrow,
949
- "onEmit:open": r[0] || (r[0] = (c) => t("emit:open")),
950
- "onEmit:close": r[1] || (r[1] = (c) => t("emit:close"))
976
+ "onEmit:open": d[0] || (d[0] = (p) => t("emit:open")),
977
+ "onEmit:close": d[1] || (d[1] = (p) => t("emit:close"))
951
978
  }, {
952
979
  default: H(() => [
953
- C(p.$slots, "default")
980
+ C(g.$slots, "default")
954
981
  ]),
955
982
  _: 3
956
983
  }, 8, ["anchor", "placement", "arrow"])
957
984
  ], 64));
958
985
  }
959
- }), uo = ["aria-label", "aria-describedby"], po = 150, ze = /* @__PURE__ */ D({
986
+ }), go = ["aria-label", "aria-describedby"], fo = 150, je = /* @__PURE__ */ D({
960
987
  inheritAttrs: !1,
961
988
  __name: "icon-popper",
962
989
  props: {
@@ -967,83 +994,83 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
967
994
  },
968
995
  emits: ["emit:open", "emit:close"],
969
996
  setup(a, { emit: o }) {
970
- const e = a, t = o, l = De(), n = B(), s = B(), p = B(!1), r = ae();
971
- let c;
997
+ const e = a, t = o, l = Ie(), n = B(), s = B(), g = B(!1), d = ae();
998
+ let p;
972
999
  const h = () => {
973
- c !== void 0 && (clearTimeout(c), c = void 0);
974
- }, m = () => {
1000
+ p !== void 0 && (clearTimeout(p), p = void 0);
1001
+ }, v = () => {
975
1002
  h(), s.value?.show();
976
1003
  }, u = () => {
977
1004
  h(), s.value?.hide();
978
- }, k = () => {
979
- h(), c = setTimeout(() => {
980
- c = void 0, s.value?.hide();
981
- }, po);
982
- }, x = (W) => {
983
- const q = W.target;
1005
+ }, S = () => {
1006
+ h(), p = setTimeout(() => {
1007
+ p = void 0, s.value?.hide();
1008
+ }, fo);
1009
+ }, x = (K) => {
1010
+ const q = K.target;
984
1011
  !n.value?.contains(q) && !s.value?.element?.contains(q) && u();
985
- }, $ = (W) => {
986
- W.pointerType !== "touch" && m();
987
- }, w = (W) => {
988
- W.pointerType !== "touch" && k();
989
- }, S = (W) => {
990
- W.pointerType !== "touch" && h();
991
- }, b = (W) => {
992
- W.pointerType === "touch" && (p.value ? u() : m());
993
- }, L = () => {
994
- m();
995
- }, P = () => {
996
- u();
997
- }, z = () => {
1012
+ }, k = (K) => {
1013
+ K.pointerType !== "touch" && v();
1014
+ }, r = (K) => {
1015
+ K.pointerType !== "touch" && S();
1016
+ }, P = (K) => {
1017
+ K.pointerType !== "touch" && h();
1018
+ }, w = (K) => {
1019
+ K.pointerType === "touch" && (g.value ? u() : v());
1020
+ }, O = () => {
1021
+ v();
1022
+ }, $ = () => {
998
1023
  u();
999
1024
  }, I = () => {
1000
- p.value = !0, document.addEventListener("pointerdown", x, !0), t("emit:open");
1025
+ u();
1026
+ }, L = () => {
1027
+ g.value = !0, document.addEventListener("pointerdown", x, !0), t("emit:open");
1001
1028
  }, V = () => {
1002
- p.value = !1, document.removeEventListener("pointerdown", x, !0), t("emit:close");
1029
+ g.value = !1, document.removeEventListener("pointerdown", x, !0), t("emit:close");
1003
1030
  };
1004
1031
  return U(() => {
1005
1032
  h(), document.removeEventListener("pointerdown", x, !0);
1006
- }), (W, q) => (d(), f(K, null, [
1007
- v("span", le({
1033
+ }), (K, q) => (c(), b(W, null, [
1034
+ f("span", le({
1008
1035
  ref_key: "refTrigger",
1009
1036
  ref: n,
1010
1037
  class: "dwui-icon-popper",
1011
1038
  tabindex: "0",
1012
1039
  "aria-label": e.label,
1013
- "aria-describedby": _(r)
1040
+ "aria-describedby": _(d)
1014
1041
  }, _(l), {
1015
- onPointerenter: $,
1016
- onPointerleave: w,
1017
- onPointerdown: b,
1018
- onFocus: L,
1019
- onBlur: P,
1020
- onKeydown: ge(z, ["esc"])
1042
+ onPointerenter: k,
1043
+ onPointerleave: r,
1044
+ onPointerdown: w,
1045
+ onFocus: O,
1046
+ onBlur: $,
1047
+ onKeydown: ve(I, ["esc"])
1021
1048
  }), [
1022
- C(W.$slots, "icon")
1023
- ], 16, uo),
1024
- A(He, {
1049
+ C(K.$slots, "icon")
1050
+ ], 16, go),
1051
+ A(Re, {
1025
1052
  ref_key: "refPopover",
1026
1053
  ref: s,
1027
- id: _(r),
1028
- class: O(["dwui-icon-popper-popover", e.popoverClass]),
1054
+ id: _(d),
1055
+ class: N(["dwui-icon-popper-popover", e.popoverClass]),
1029
1056
  role: "tooltip",
1030
1057
  mode: "manual",
1031
1058
  anchor: n.value,
1032
1059
  placement: e.placement,
1033
1060
  arrow: e.arrow,
1034
- onPointerenter: S,
1035
- onPointerleave: w,
1036
- "onEmit:open": I,
1061
+ onPointerenter: P,
1062
+ onPointerleave: r,
1063
+ "onEmit:open": L,
1037
1064
  "onEmit:close": V
1038
1065
  }, {
1039
1066
  default: H(() => [
1040
- C(W.$slots, "default")
1067
+ C(K.$slots, "default")
1041
1068
  ]),
1042
1069
  _: 3
1043
1070
  }, 8, ["id", "class", "anchor", "placement", "arrow"])
1044
1071
  ], 64));
1045
1072
  }
1046
- }), Jo = /* @__PURE__ */ D({
1073
+ }), on = /* @__PURE__ */ D({
1047
1074
  __name: "help-popper",
1048
1075
  props: {
1049
1076
  placement: { default: "right" },
@@ -1053,7 +1080,7 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1053
1080
  emits: ["emit:open", "emit:close"],
1054
1081
  setup(a, { emit: o }) {
1055
1082
  const e = a, t = o;
1056
- return (l, n) => (d(), j(ze, {
1083
+ return (l, n) => (c(), j(je, {
1057
1084
  class: "dwui-help-popper",
1058
1085
  "popover-class": "dwui-help-popper-popover",
1059
1086
  placement: e.placement,
@@ -1064,7 +1091,7 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1064
1091
  }, {
1065
1092
  icon: H(() => [
1066
1093
  C(l.$slots, "icon", {}, () => [
1067
- A(_(ve))
1094
+ A(_(ge))
1068
1095
  ])
1069
1096
  ]),
1070
1097
  default: H(() => [
@@ -1073,7 +1100,7 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1073
1100
  _: 3
1074
1101
  }, 8, ["placement", "arrow", "label"]));
1075
1102
  }
1076
- }), Zo = /* @__PURE__ */ D({
1103
+ }), nn = /* @__PURE__ */ D({
1077
1104
  __name: "hourglass-loading",
1078
1105
  props: {
1079
1106
  loading: { type: Boolean },
@@ -1082,14 +1109,14 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1082
1109
  },
1083
1110
  setup(a) {
1084
1111
  const o = a;
1085
- return (e, t) => o.loading ? (d(), j(_(lt), {
1112
+ return (e, t) => o.loading ? (c(), j(_(it), {
1086
1113
  key: 0,
1087
1114
  duration: o.duration,
1088
1115
  size: o.size,
1089
1116
  class: "dwui-hourglass-loading"
1090
1117
  }, null, 8, ["duration", "size"])) : C(e.$slots, "default", {}, void 0, void 0, 1);
1091
1118
  }
1092
- }), en = /* @__PURE__ */ D({
1119
+ }), ln = /* @__PURE__ */ D({
1093
1120
  __name: "intersection-lazy-component",
1094
1121
  props: {
1095
1122
  root: {},
@@ -1100,9 +1127,9 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1100
1127
  setup(a, { emit: o }) {
1101
1128
  const e = a, t = o, l = B(), n = B(!1);
1102
1129
  let s;
1103
- const p = () => {
1104
- s?.disconnect(), s = void 0, !(!l.value || n.value) && (s = new IntersectionObserver((r) => {
1105
- r.some((c) => c.isIntersecting) && (n.value = !0, s?.disconnect(), s = void 0, t("emit:visible"));
1130
+ const g = () => {
1131
+ s?.disconnect(), s = void 0, !(!l.value || n.value) && (s = new IntersectionObserver((d) => {
1132
+ d.some((p) => p.isIntersecting) && (n.value = !0, s?.disconnect(), s = void 0, t("emit:visible"));
1106
1133
  }, {
1107
1134
  root: e.root,
1108
1135
  rootMargin: e.rootMargin,
@@ -1110,23 +1137,23 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1110
1137
  }), s.observe(l.value));
1111
1138
  };
1112
1139
  return G(() => {
1113
- p();
1140
+ g();
1114
1141
  }), U(() => {
1115
1142
  s?.disconnect();
1116
1143
  }), X(() => [e.root, e.rootMargin, e.threshold], () => {
1117
- p();
1118
- }, { flush: "post" }), (r, c) => (d(), f("div", {
1144
+ g();
1145
+ }, { flush: "post" }), (d, p) => (c(), b("div", {
1119
1146
  ref_key: "refTarget",
1120
1147
  ref: l,
1121
1148
  class: "dwui-intersection-lazy-component"
1122
1149
  }, [
1123
- n.value ? C(r.$slots, "default", {}, void 0, void 0, 0) : C(r.$slots, "placeholder", {}, void 0, void 0, 1)
1150
+ n.value ? C(d.$slots, "default", {}, void 0, void 0, 0) : C(d.$slots, "placeholder", {}, void 0, void 0, 1)
1124
1151
  ], 512));
1125
1152
  }
1126
- }), mo = {
1153
+ }), bo = {
1127
1154
  type: "button",
1128
1155
  class: "dwui-label-button"
1129
- }, tn = /* @__PURE__ */ D({
1156
+ }, an = /* @__PURE__ */ D({
1130
1157
  __name: "label-button",
1131
1158
  props: {
1132
1159
  preset: {},
@@ -1138,7 +1165,7 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1138
1165
  },
1139
1166
  setup(a) {
1140
1167
  const o = a, e = J();
1141
- return (t, l) => (d(), f("button", mo, [
1168
+ return (t, l) => (c(), b("button", bo, [
1142
1169
  A(oe, {
1143
1170
  preset: o.preset,
1144
1171
  gap: o.gap,
@@ -1164,10 +1191,10 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1164
1191
  ]), 1032, ["preset", "gap", "icon-class", "icon-style", "label-class", "label-style"])
1165
1192
  ]));
1166
1193
  }
1167
- }), go = ["aria-labelledby", "aria-describedby"], vo = { class: "dwui-modal-dialog-header" }, fo = { class: "dwui-modal-dialog-icon" }, bo = ["id", "innerHTML"], ho = ["id"], wo = ["id"], yo = ["innerHTML"], _o = { key: 1 }, $o = {
1194
+ }), ho = ["aria-labelledby", "aria-describedby"], wo = { class: "dwui-modal-dialog-header" }, yo = { class: "dwui-modal-dialog-icon" }, _o = ["id", "innerHTML"], $o = ["id"], ko = ["id"], So = ["innerHTML"], Po = { key: 1 }, Co = {
1168
1195
  key: 0,
1169
1196
  class: "dwui-modal-dialog-images"
1170
- }, ko = ["src", "alt"], So = ["onClick"], on = /* @__PURE__ */ D({
1197
+ }, xo = ["src", "alt"], Bo = ["onClick"], sn = /* @__PURE__ */ D({
1171
1198
  __name: "modal-dialog",
1172
1199
  props: /* @__PURE__ */ Q({
1173
1200
  type: { default: "info" },
@@ -1186,174 +1213,174 @@ const vt = ["disabled"], ft = { class: "dwui-accordion-legend" }, bt = ["aria-ex
1186
1213
  }),
1187
1214
  emits: /* @__PURE__ */ Q(["emit:close"], ["update:open"]),
1188
1215
  setup(a, { emit: o }) {
1189
- const e = a, t = o, l = se(a, "open"), n = B(), s = B(), p = ae(), r = ae(), c = {
1190
- info: st,
1191
- confirm: ve,
1192
- warn: Oe,
1193
- error: at
1194
- }, h = ["cancel", "no", "yes", "ok"], m = T(() => e.buttons ?? (e.type === "confirm" ? ["yes", "no"] : ["ok"])), u = T(() => ({
1216
+ const e = a, t = o, l = se(a, "open"), n = B(), s = B(), g = ae(), d = ae(), p = {
1217
+ info: dt,
1218
+ confirm: ge,
1219
+ warn: ze,
1220
+ error: rt
1221
+ }, h = ["cancel", "no", "yes", "ok"], v = T(() => e.buttons ?? (e.type === "confirm" ? ["yes", "no"] : ["ok"])), u = T(() => ({
1195
1222
  ok: e.okLabel,
1196
1223
  yes: e.yesLabel,
1197
1224
  no: e.noLabel,
1198
1225
  cancel: e.cancelLabel
1199
- })), k = T(() => e.message == null ? [] : [e.message].flat()), x = T(() => [e.image ?? []].flat().map((P) => typeof P == "string" ? {
1200
- src: P,
1226
+ })), S = T(() => e.message == null ? [] : [e.message].flat()), x = T(() => [e.image ?? []].flat().map(($) => typeof $ == "string" ? {
1227
+ src: $,
1201
1228
  alt: ""
1202
- } : P)), $ = (P) => {
1203
- L(P);
1204
- }, w = (P) => {
1205
- P.preventDefault(), L("cancel");
1206
- }, S = (P) => {
1207
- if (P.key !== "ArrowLeft" && P.key !== "ArrowRight")
1229
+ } : $)), k = ($) => {
1230
+ O($);
1231
+ }, r = ($) => {
1232
+ $.preventDefault(), O("cancel");
1233
+ }, P = ($) => {
1234
+ if ($.key !== "ArrowLeft" && $.key !== "ArrowRight")
1208
1235
  return;
1209
- const z = [...s.value?.children ?? []], I = z.indexOf(document.activeElement);
1210
- I < 0 || z[P.key === "ArrowRight" ? I + 1 : I - 1]?.focus();
1211
- }, b = () => {
1236
+ const I = [...s.value?.children ?? []], L = I.indexOf(document.activeElement);
1237
+ L < 0 || I[$.key === "ArrowRight" ? L + 1 : L - 1]?.focus();
1238
+ }, w = () => {
1212
1239
  n.value?.showModal();
1213
- const P = h.find((I) => m.value.includes(I)), z = P ? m.value.indexOf(P) : -1;
1214
- s.value?.children[z]?.focus();
1215
- }, L = (P) => {
1216
- n.value?.close(), l.value = !1, t("emit:close", P);
1240
+ const $ = h.find((L) => v.value.includes(L)), I = $ ? v.value.indexOf($) : -1;
1241
+ s.value?.children[I]?.focus();
1242
+ }, O = ($) => {
1243
+ n.value?.close(), l.value = !1, t("emit:close", $);
1217
1244
  };
1218
1245
  return G(() => {
1219
- l.value && b();
1220
- }), X(l, (P) => {
1221
- P ? b() : n.value?.close();
1222
- }, { flush: "post" }), (P, z) => (d(), f("dialog", {
1246
+ l.value && w();
1247
+ }), X(l, ($) => {
1248
+ $ ? w() : n.value?.close();
1249
+ }, { flush: "post" }), ($, I) => (c(), b("dialog", {
1223
1250
  ref_key: "refDialog",
1224
1251
  ref: n,
1225
- class: O(["dwui-modal-dialog", `dwui-modal-dialog-${e.type}`]),
1226
- "aria-labelledby": e.title ? _(p) : void 0,
1227
- "aria-describedby": _(r),
1228
- onCancel: w,
1229
- onKeydown: S
1252
+ class: N(["dwui-modal-dialog", `dwui-modal-dialog-${e.type}`]),
1253
+ "aria-labelledby": e.title ? _(g) : void 0,
1254
+ "aria-describedby": _(d),
1255
+ onCancel: r,
1256
+ onKeydown: P
1230
1257
  }, [
1231
- v("div", vo, [
1232
- v("span", fo, [
1233
- C(P.$slots, "icon", {}, () => [
1234
- (d(), j(te(c[e.type])))
1258
+ f("div", wo, [
1259
+ f("span", yo, [
1260
+ C($.$slots, "icon", {}, () => [
1261
+ (c(), j(te(p[e.type])))
1235
1262
  ])
1236
1263
  ]),
1237
- e.title ? (d(), f(K, { key: 0 }, [
1238
- e.html ? (d(), f("span", {
1264
+ e.title ? (c(), b(W, { key: 0 }, [
1265
+ e.html ? (c(), b("span", {
1239
1266
  key: 0,
1240
- id: _(p),
1267
+ id: _(g),
1241
1268
  class: "dwui-modal-dialog-title",
1242
1269
  innerHTML: e.title
1243
- }, null, 8, bo)) : (d(), f("span", {
1270
+ }, null, 8, _o)) : (c(), b("span", {
1244
1271
  key: 1,
1245
- id: _(p),
1272
+ id: _(g),
1246
1273
  class: "dwui-modal-dialog-title"
1247
- }, N(e.title), 9, ho))
1274
+ }, z(e.title), 9, $o))
1248
1275
  ], 64)) : M("", !0)
1249
1276
  ]),
1250
- v("div", {
1251
- id: _(r),
1277
+ f("div", {
1278
+ id: _(d),
1252
1279
  class: "dwui-modal-dialog-body"
1253
1280
  }, [
1254
- C(P.$slots, "default", {}, () => [
1255
- (d(!0), f(K, null, Y(k.value, (I, V) => (d(), f(K, { key: V }, [
1256
- e.html ? (d(), f("p", {
1281
+ C($.$slots, "default", {}, () => [
1282
+ (c(!0), b(W, null, Y(S.value, (L, V) => (c(), b(W, { key: V }, [
1283
+ e.html ? (c(), b("p", {
1257
1284
  key: 0,
1258
- innerHTML: I
1259
- }, null, 8, yo)) : (d(), f("p", _o, N(I), 1))
1285
+ innerHTML: L
1286
+ }, null, 8, So)) : (c(), b("p", Po, z(L), 1))
1260
1287
  ], 64))), 128)),
1261
- x.value.length ? (d(), f("div", $o, [
1262
- (d(!0), f(K, null, Y(x.value, (I, V) => (d(), f("img", {
1288
+ x.value.length ? (c(), b("div", Co, [
1289
+ (c(!0), b(W, null, Y(x.value, (L, V) => (c(), b("img", {
1263
1290
  key: V,
1264
- src: I.src,
1265
- alt: I.alt
1266
- }, null, 8, ko))), 128))
1291
+ src: L.src,
1292
+ alt: L.alt
1293
+ }, null, 8, xo))), 128))
1267
1294
  ])) : M("", !0)
1268
1295
  ])
1269
- ], 8, wo),
1270
- v("div", {
1296
+ ], 8, ko),
1297
+ f("div", {
1271
1298
  ref_key: "refButtons",
1272
1299
  ref: s,
1273
1300
  class: "dwui-modal-dialog-buttons"
1274
1301
  }, [
1275
- (d(!0), f(K, null, Y(m.value, (I) => (d(), f("button", {
1276
- key: I,
1302
+ (c(!0), b(W, null, Y(v.value, (L) => (c(), b("button", {
1303
+ key: L,
1277
1304
  type: "button",
1278
- class: O(["dwui-modal-dialog-button", `dwui-modal-dialog-button-${I}`]),
1279
- onClick: (V) => $(I)
1280
- }, N(u.value[I]), 11, So))), 128))
1305
+ class: N(["dwui-modal-dialog-button", `dwui-modal-dialog-button-${L}`]),
1306
+ onClick: (V) => k(L)
1307
+ }, z(u.value[L]), 11, Bo))), 128))
1281
1308
  ], 512)
1282
- ], 42, go));
1309
+ ], 42, ho));
1283
1310
  }
1284
1311
  });
1285
- function Po(a) {
1286
- const o = a.minWidth ?? 20, e = a.minHeight ?? 20, t = B(!1), l = B(!1), n = ye({
1312
+ function Lo(a) {
1313
+ const o = a.minWidth ?? 20, e = a.minHeight ?? 20, t = B(!1), l = B(!1), n = _e({
1287
1314
  x: 0,
1288
1315
  y: 0
1289
- }), s = ye({
1316
+ }), s = _e({
1290
1317
  width: -1,
1291
1318
  height: -1
1292
1319
  });
1293
- let p = null, r = "bottom-right", c = {
1320
+ let g = null, d = "bottom-right", p = {
1294
1321
  x: 0,
1295
1322
  y: 0
1296
1323
  };
1297
- const h = (b) => {
1298
- if (b.pointerId !== p)
1324
+ const h = (w) => {
1325
+ if (w.pointerId !== g)
1299
1326
  return;
1300
- b.preventDefault();
1301
- const L = b.clientX - c.x, P = b.clientY - c.y;
1302
- if (c = {
1303
- x: b.clientX,
1304
- y: b.clientY
1327
+ w.preventDefault();
1328
+ const O = w.clientX - p.x, $ = w.clientY - p.y;
1329
+ if (p = {
1330
+ x: w.clientX,
1331
+ y: w.clientY
1305
1332
  }, t.value)
1306
- n.x += L, n.y += P;
1333
+ n.x += O, n.y += $;
1307
1334
  else if (l.value) {
1308
- if (r.endsWith("left")) {
1309
- const z = Math.max(o, s.width - L);
1310
- n.x += s.width - z, s.width = z;
1335
+ if (d.endsWith("left")) {
1336
+ const I = Math.max(o, s.width - O);
1337
+ n.x += s.width - I, s.width = I;
1311
1338
  } else
1312
- s.width = Math.max(o, s.width + L);
1313
- if (r.startsWith("top")) {
1314
- const z = Math.max(e, s.height - P);
1315
- n.y += s.height - z, s.height = z;
1339
+ s.width = Math.max(o, s.width + O);
1340
+ if (d.startsWith("top")) {
1341
+ const I = Math.max(e, s.height - $);
1342
+ n.y += s.height - I, s.height = I;
1316
1343
  } else
1317
- s.height = Math.max(e, s.height + P);
1344
+ s.height = Math.max(e, s.height + $);
1318
1345
  }
1319
- }, m = () => {
1320
- const b = a.target.value?.getBoundingClientRect().width || 0;
1321
- n.x < 40 - b && (n.x = 40 - b), window.innerWidth - 40 < n.x && (n.x = window.innerWidth - 40), n.y < 0 && (n.y = 0), a.clampBottom && window.innerHeight - 20 < n.y && (n.y = window.innerHeight - 20);
1322
- }, u = (b) => {
1323
- if (b.pointerId !== p)
1346
+ }, v = () => {
1347
+ const w = a.target.value?.getBoundingClientRect().width || 0;
1348
+ n.x < 40 - w && (n.x = 40 - w), window.innerWidth - 40 < n.x && (n.x = window.innerWidth - 40), n.y < 0 && (n.y = 0), a.clampBottom && window.innerHeight - 20 < n.y && (n.y = window.innerHeight - 20);
1349
+ }, u = (w) => {
1350
+ if (w.pointerId !== g)
1324
1351
  return;
1325
- const L = t.value;
1326
- k(), L && m();
1327
- }, k = () => {
1328
- document.removeEventListener("pointermove", h, !0), document.removeEventListener("pointerup", u, !0), document.removeEventListener("pointercancel", u, !0), p = null, t.value = !1, l.value = !1;
1329
- }, x = (b) => {
1330
- k(), p = b.pointerId, c = {
1331
- x: b.clientX,
1332
- y: b.clientY
1352
+ const O = t.value;
1353
+ S(), O && v();
1354
+ }, S = () => {
1355
+ document.removeEventListener("pointermove", h, !0), document.removeEventListener("pointerup", u, !0), document.removeEventListener("pointercancel", u, !0), g = null, t.value = !1, l.value = !1;
1356
+ }, x = (w) => {
1357
+ S(), g = w.pointerId, p = {
1358
+ x: w.clientX,
1359
+ y: w.clientY
1333
1360
  }, document.addEventListener("pointermove", h, !0), document.addEventListener("pointerup", u, !0), document.addEventListener("pointercancel", u, !0);
1334
- }, $ = (b) => {
1335
- b.isPrimary && a.dragMode() === "body" && (x(b), t.value = !0);
1336
- }, w = (b) => {
1337
- b.isPrimary && a.dragMode() === "header" && (x(b), t.value = !0);
1338
- }, S = (b, L = "bottom-right") => {
1339
- if (!b.isPrimary)
1361
+ }, k = (w) => {
1362
+ w.isPrimary && a.dragMode() === "body" && (x(w), t.value = !0);
1363
+ }, r = (w) => {
1364
+ w.isPrimary && a.dragMode() === "header" && (x(w), t.value = !0);
1365
+ }, P = (w, O = "bottom-right") => {
1366
+ if (!w.isPrimary)
1340
1367
  return;
1341
- r = L;
1342
- const P = a.target.value?.getBoundingClientRect();
1343
- P && (s.width < 0 && (s.width = P.width), s.height < 0 && (s.height = P.height)), x(b), l.value = !0;
1368
+ d = O;
1369
+ const $ = a.target.value?.getBoundingClientRect();
1370
+ $ && (s.width < 0 && (s.width = $.width), s.height < 0 && (s.height = $.height)), x(w), l.value = !0;
1344
1371
  };
1345
- return U(k), {
1372
+ return U(S), {
1346
1373
  moving: t,
1347
1374
  resizing: l,
1348
1375
  currentPosition: n,
1349
1376
  currentRect: s,
1350
- onDragStart: $,
1351
- onDragHeaderStart: w,
1352
- onResizeStart: S,
1353
- teardown: k
1377
+ onDragStart: k,
1378
+ onDragHeaderStart: r,
1379
+ onResizeStart: P,
1380
+ teardown: S
1354
1381
  };
1355
1382
  }
1356
- const Co = ["aria-labelledby"], xo = ["id"], Bo = ["aria-label"], Lo = ["onPointerdown"], Eo = /* @__PURE__ */ D({
1383
+ const To = ["aria-labelledby"], Eo = ["id"], Mo = ["aria-label"], Ao = ["onPointerdown"], Do = /* @__PURE__ */ D({
1357
1384
  __name: "movable-window",
1358
1385
  props: {
1359
1386
  name: {},
@@ -1366,93 +1393,93 @@ const Co = ["aria-labelledby"], xo = ["id"], Bo = ["aria-label"], Lo = ["onPoint
1366
1393
  },
1367
1394
  emits: ["emit:close"],
1368
1395
  setup(a, { expose: o, emit: e }) {
1369
- const t = a, l = e, n = B(), s = ae(), p = ["top-left", "top-right", "bottom-left"], r = Po({
1396
+ const t = a, l = e, n = B(), s = ae(), g = ["top-left", "top-right", "bottom-left"], d = Lo({
1370
1397
  target: n,
1371
1398
  dragMode: () => t.dragMode,
1372
1399
  clampBottom: t.clampBottom
1373
- }), c = T(() => {
1374
- const { currentPosition: h, currentRect: m } = r;
1400
+ }), p = T(() => {
1401
+ const { currentPosition: h, currentRect: v } = d;
1375
1402
  return {
1376
1403
  top: `${h.y}px`,
1377
1404
  left: `${h.x}px`,
1378
- width: 0 <= m.width ? `${m.width}px` : void 0,
1379
- height: 0 <= m.height ? `${m.height}px` : void 0
1405
+ width: 0 <= v.width ? `${v.width}px` : void 0,
1406
+ height: 0 <= v.height ? `${v.height}px` : void 0
1380
1407
  };
1381
1408
  });
1382
1409
  return o({
1383
1410
  /** ウィンドウの要素 */
1384
1411
  element: n,
1385
1412
  /** 位置(px)。書き込むと移動する */
1386
- position: r.currentPosition,
1413
+ position: d.currentPosition,
1387
1414
  /** 幅・高さ(px)。-1 は中身に合わせる。書き込むとその寸法になる */
1388
- size: r.currentRect,
1415
+ size: d.currentRect,
1389
1416
  /** ドラッグ・リサイズのリスナーを解除する */
1390
- teardown: r.teardown
1391
- }), (h, m) => (d(), f("div", {
1417
+ teardown: d.teardown
1418
+ }), (h, v) => (c(), b("div", {
1392
1419
  ref_key: "refWindow",
1393
1420
  ref: n,
1394
1421
  class: "dwui-movable-window",
1395
1422
  role: "dialog",
1396
1423
  "aria-labelledby": _(s),
1397
- style: F(c.value)
1424
+ style: F(p.value)
1398
1425
  }, [
1399
- v("div", {
1426
+ f("div", {
1400
1427
  class: "dwui-movable-window-frame",
1401
- onPointerdown: m[2] || (m[2] = //@ts-ignore
1402
- (...u) => _(r).onDragStart && _(r).onDragStart(...u))
1428
+ onPointerdown: v[2] || (v[2] = //@ts-ignore
1429
+ (...u) => _(d).onDragStart && _(d).onDragStart(...u))
1403
1430
  }, [
1404
- v("div", {
1405
- class: O(["dwui-movable-window-header", [`${t.name}-header`, t.headerClass, { "dwui-movable": t.dragMode }]]),
1431
+ f("div", {
1432
+ class: N(["dwui-movable-window-header", [`${t.name}-header`, t.headerClass, { "dwui-movable": t.dragMode }]]),
1406
1433
  style: F(t.headerStyle),
1407
- onPointerdown: m[1] || (m[1] = //@ts-ignore
1408
- (...u) => _(r).onDragHeaderStart && _(r).onDragHeaderStart(...u))
1434
+ onPointerdown: v[1] || (v[1] = //@ts-ignore
1435
+ (...u) => _(d).onDragHeaderStart && _(d).onDragHeaderStart(...u))
1409
1436
  }, [
1410
- v("div", {
1437
+ f("div", {
1411
1438
  id: _(s),
1412
- class: O(["dwui-movable-window-title", `${t.name}-title`])
1439
+ class: N(["dwui-movable-window-title", `${t.name}-title`])
1413
1440
  }, [
1414
1441
  C(h.$slots, "title")
1415
- ], 10, xo),
1442
+ ], 10, Eo),
1416
1443
  C(h.$slots, "actions"),
1417
- v("button", {
1444
+ f("button", {
1418
1445
  type: "button",
1419
- class: O(["dwui-movable-window-close-button", `${t.name}-close-button`]),
1446
+ class: N(["dwui-movable-window-close-button", `${t.name}-close-button`]),
1420
1447
  "aria-label": t.closeLabel,
1421
- onClick: m[0] || (m[0] = (u) => l("emit:close"))
1448
+ onClick: v[0] || (v[0] = (u) => l("emit:close"))
1422
1449
  }, [
1423
- A(_(it))
1424
- ], 10, Bo)
1450
+ A(_(ct))
1451
+ ], 10, Mo)
1425
1452
  ], 38),
1426
- v("div", {
1427
- class: O(["dwui-movable-window-body", [`${t.name}-body`, { "dwui-movable": t.dragMode === "body" }]])
1453
+ f("div", {
1454
+ class: N(["dwui-movable-window-body", [`${t.name}-body`, { "dwui-movable": t.dragMode === "body" }]])
1428
1455
  }, [
1429
1456
  C(h.$slots, "default")
1430
1457
  ], 2)
1431
1458
  ], 32),
1432
- t.loading ? (d(), f("div", {
1459
+ t.loading ? (c(), b("div", {
1433
1460
  key: 0,
1434
- class: O(["dwui-movable-window-loading", `${t.name}-loading`])
1461
+ class: N(["dwui-movable-window-loading", `${t.name}-loading`])
1435
1462
  }, [
1436
- v("div", {
1437
- class: O(["dwui-movable-window-spinner", `${t.name}-spinner`])
1463
+ f("div", {
1464
+ class: N(["dwui-movable-window-spinner", `${t.name}-spinner`])
1438
1465
  }, null, 2)
1439
1466
  ], 2)) : M("", !0),
1440
- (d(), f(K, null, Y(p, (u) => v("div", {
1467
+ (c(), b(W, null, Y(g, (u) => f("div", {
1441
1468
  key: u,
1442
- class: O(["dwui-movable-window-corner", [`${t.name}-corner`, `dwui-${u}`]]),
1443
- onPointerdown: ee((k) => _(r).onResizeStart(k, u), ["prevent"])
1444
- }, null, 42, Lo)), 64)),
1445
- v("div", {
1446
- class: O(["dwui-movable-window-resizer", `${t.name}-resizer`]),
1447
- onPointerdown: m[3] || (m[3] = ee((u) => _(r).onResizeStart(u, "bottom-right"), ["prevent"]))
1469
+ class: N(["dwui-movable-window-corner", [`${t.name}-corner`, `dwui-${u}`]]),
1470
+ onPointerdown: ee((S) => _(d).onResizeStart(S, u), ["prevent"])
1471
+ }, null, 42, Ao)), 64)),
1472
+ f("div", {
1473
+ class: N(["dwui-movable-window-resizer", `${t.name}-resizer`]),
1474
+ onPointerdown: v[3] || (v[3] = ee((u) => _(d).onResizeStart(u, "bottom-right"), ["prevent"]))
1448
1475
  }, [
1449
- A(_(rt), { direction: "bottom-right" })
1476
+ A(_(ut), { direction: "bottom-right" })
1450
1477
  ], 34)
1451
- ], 12, Co));
1478
+ ], 12, To));
1452
1479
  }
1453
1480
  }), de = [];
1454
- let Te = 0;
1455
- const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1481
+ let Me = 0;
1482
+ const Oo = () => (Me += 1, Me), rn = /* @__PURE__ */ D({
1456
1483
  __name: "overlay-box",
1457
1484
  props: /* @__PURE__ */ Q({
1458
1485
  title: { default: void 0 },
@@ -1466,47 +1493,47 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1466
1493
  }),
1467
1494
  emits: /* @__PURE__ */ Q(["emit:close"], ["update:open"]),
1468
1495
  setup(a, { emit: o }) {
1469
- const e = a, t = o, l = se(a, "open"), n = B(), s = B(0), p = /* @__PURE__ */ Symbol("dwui-overlay-box");
1470
- let r = null;
1471
- const c = () => {
1496
+ const e = a, t = o, l = se(a, "open"), n = B(), s = B(0), g = /* @__PURE__ */ Symbol("dwui-overlay-box");
1497
+ let d = null;
1498
+ const p = () => {
1472
1499
  e.closeOnBackdrop && (l.value = !1);
1473
1500
  }, h = () => {
1474
1501
  l.value = !1;
1475
- }, m = (w) => {
1476
- w.key !== "Escape" || !w.isTrusted || w.isComposing || w.target instanceof Element && w.target.closest("dialog") || de.at(-1) === p && (l.value = !1);
1502
+ }, v = (r) => {
1503
+ r.key !== "Escape" || !r.isTrusted || r.isComposing || r.target instanceof Element && r.target.closest("dialog") || de.at(-1) === g && (l.value = !1);
1477
1504
  }, u = () => {
1478
1505
  t("emit:close");
1479
- }, k = () => {
1480
- const w = de.indexOf(p);
1481
- 0 <= w && de.splice(w, 1);
1506
+ }, S = () => {
1507
+ const r = de.indexOf(g);
1508
+ 0 <= r && de.splice(r, 1);
1482
1509
  }, x = () => {
1483
- s.value = To();
1484
- const w = n.value, S = w?.element?.getBoundingClientRect();
1485
- w && (w.position.x = (window.innerWidth - (S?.width || 0)) / 2, w.position.y = Math.max(0, (window.innerHeight - (S?.height || 0)) / 2)), r = document.activeElement instanceof HTMLElement ? document.activeElement : null, w?.element?.focus(), de.push(p);
1486
- }, $ = () => {
1487
- n.value?.teardown(), k(), r?.isConnected && r.focus(), r = null;
1510
+ s.value = Oo();
1511
+ const r = n.value, P = r?.element?.getBoundingClientRect();
1512
+ r && (r.position.x = (window.innerWidth - (P?.width || 0)) / 2, r.position.y = Math.max(0, (window.innerHeight - (P?.height || 0)) / 2)), d = document.activeElement instanceof HTMLElement ? document.activeElement : null, r?.element?.focus(), de.push(g);
1513
+ }, k = () => {
1514
+ n.value?.teardown(), S(), d?.isConnected && d.focus(), d = null;
1488
1515
  };
1489
1516
  return G(() => {
1490
1517
  l.value && x();
1491
1518
  }), U(() => {
1492
- k();
1493
- }), X(l, (w) => {
1494
- w ? x() : $();
1495
- }, { flush: "post" }), (w, S) => (d(), j(Xe, {
1519
+ S();
1520
+ }), X(l, (r) => {
1521
+ r ? x() : k();
1522
+ }, { flush: "post" }), (r, P) => (c(), j(Je, {
1496
1523
  name: "dwui-overlay-box-fade",
1497
1524
  onAfterLeave: u
1498
1525
  }, {
1499
1526
  default: H(() => [
1500
- l.value ? (d(), f("div", {
1527
+ l.value ? (c(), b("div", {
1501
1528
  key: 0,
1502
1529
  class: "dwui-overlay-box",
1503
1530
  style: F({ "--dwui-order-window": s.value })
1504
1531
  }, [
1505
- v("div", {
1532
+ f("div", {
1506
1533
  class: "dwui-overlay-box-backdrop",
1507
- onClick: c
1534
+ onClick: p
1508
1535
  }),
1509
- A(Eo, {
1536
+ A(Do, {
1510
1537
  ref_key: "refWindow",
1511
1538
  ref: n,
1512
1539
  class: "dwui-overlay-box-container",
@@ -1516,16 +1543,16 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1516
1543
  loading: e.loading,
1517
1544
  "close-label": e.closeLabel,
1518
1545
  "clamp-bottom": "",
1519
- onKeydown: m,
1546
+ onKeydown: v,
1520
1547
  "onEmit:close": h
1521
1548
  }, {
1522
1549
  title: H(() => [
1523
- C(w.$slots, "title", {}, () => [
1524
- Z(N(e.title), 1)
1550
+ C(r.$slots, "title", {}, () => [
1551
+ Z(z(e.title), 1)
1525
1552
  ])
1526
1553
  ]),
1527
1554
  default: H(() => [
1528
- C(w.$slots, "default")
1555
+ C(r.$slots, "default")
1529
1556
  ]),
1530
1557
  _: 3
1531
1558
  }, 8, ["drag-mode", "loading", "close-label"])
@@ -1534,7 +1561,7 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1534
1561
  _: 3
1535
1562
  }));
1536
1563
  }
1537
- }), Mo = { class: "dwui-page-section" }, Ao = { class: "dwui-page-section-content" }, ln = /* @__PURE__ */ D({
1564
+ }), Io = { class: "dwui-page-section" }, No = { class: "dwui-page-section-content" }, dn = /* @__PURE__ */ D({
1538
1565
  __name: "page-section",
1539
1566
  props: {
1540
1567
  title: {},
@@ -1546,11 +1573,11 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1546
1573
  },
1547
1574
  setup(a) {
1548
1575
  const o = a, e = {
1549
- diamond: { component: mt, shape: !0, color: "#1a44b6" },
1550
- circle: { component: pt, shape: !0, color: "#e78b2f" },
1551
- square: { component: ut, shape: !0, color: "#d13a2b" },
1552
- pushpin: { component: ct, shape: !1 },
1553
- "round-pushpin": { component: dt, shape: !1 }
1576
+ diamond: { component: ft, shape: !0, color: "#1a44b6" },
1577
+ circle: { component: gt, shape: !0, color: "#e78b2f" },
1578
+ square: { component: vt, shape: !0, color: "#d13a2b" },
1579
+ pushpin: { component: mt, shape: !1 },
1580
+ "round-pushpin": { component: pt, shape: !1 }
1554
1581
  }, t = T(() => {
1555
1582
  const l = e[o.icon];
1556
1583
  return {
@@ -1558,43 +1585,43 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1558
1585
  props: l.shape ? { variant: o.iconVariant, color: o.iconColor ?? l.color } : {}
1559
1586
  };
1560
1587
  });
1561
- return (l, n) => (d(), f("section", Mo, [
1562
- o.title != null ? (d(), f("div", {
1588
+ return (l, n) => (c(), b("section", Io, [
1589
+ o.title != null ? (c(), b("div", {
1563
1590
  key: 0,
1564
- class: O(["dwui-page-section-title", o.titleClass]),
1591
+ class: N(["dwui-page-section-title", o.titleClass]),
1565
1592
  style: F(o.titleStyle)
1566
1593
  }, [
1567
1594
  A(oe, null, {
1568
1595
  icon: H(() => [
1569
1596
  C(l.$slots, "icon", {}, () => [
1570
- (d(), j(te(t.value.component), Me(Ae(t.value.props)), null, 16))
1597
+ (c(), j(te(t.value.component), Ae(De(t.value.props)), null, 16))
1571
1598
  ])
1572
1599
  ]),
1573
1600
  default: H(() => [
1574
- Z(" " + N(o.title), 1)
1601
+ Z(" " + z(o.title), 1)
1575
1602
  ]),
1576
1603
  _: 3
1577
1604
  })
1578
1605
  ], 6)) : M("", !0),
1579
- v("div", Ao, [
1606
+ f("div", No, [
1580
1607
  C(l.$slots, "default")
1581
1608
  ])
1582
1609
  ]));
1583
1610
  }
1584
- }), Do = { class: "dwui-page-title" }, Io = {
1611
+ }), zo = { class: "dwui-page-title" }, Ho = {
1585
1612
  key: 0,
1586
1613
  class: "dwui-page-title-actions"
1587
- }, an = /* @__PURE__ */ D({
1614
+ }, cn = /* @__PURE__ */ D({
1588
1615
  __name: "page-title",
1589
1616
  props: {
1590
1617
  title: {}
1591
1618
  },
1592
1619
  setup(a) {
1593
1620
  const o = a, e = J();
1594
- return (t, l) => (d(), f("section", Do, [
1621
+ return (t, l) => (c(), b("section", zo, [
1595
1622
  A(oe, { class: "dwui-page-title-label" }, ie({
1596
1623
  default: H(() => [
1597
- Z(" " + N(o.title), 1)
1624
+ Z(" " + z(o.title), 1)
1598
1625
  ]),
1599
1626
  _: 2
1600
1627
  }, [
@@ -1606,12 +1633,12 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1606
1633
  key: "0"
1607
1634
  } : void 0
1608
1635
  ]), 1024),
1609
- e.default != null ? (d(), f("span", Io, [
1636
+ e.default != null ? (c(), b("span", Ho, [
1610
1637
  C(t.$slots, "default")
1611
1638
  ])) : M("", !0)
1612
1639
  ]));
1613
1640
  }
1614
- }), sn = /* @__PURE__ */ D({
1641
+ }), un = /* @__PURE__ */ D({
1615
1642
  __name: "screen-loading",
1616
1643
  props: {
1617
1644
  loading: { type: Boolean }
@@ -1630,7 +1657,7 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1630
1657
  l();
1631
1658
  }), X(() => o.loading, (n) => {
1632
1659
  n ? t() : l();
1633
- }, { flush: "post" }), (n, s) => (d(), f("dialog", {
1660
+ }, { flush: "post" }), (n, s) => (c(), b("dialog", {
1634
1661
  ref_key: "refDialog",
1635
1662
  ref: e,
1636
1663
  class: "dwui-screen-loading",
@@ -1638,16 +1665,16 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1638
1665
  onCancel: s[0] || (s[0] = ee(() => {
1639
1666
  }, ["prevent"]))
1640
1667
  }, [...s[1] || (s[1] = [
1641
- v("div", { class: "dwui-screen-loading-spinner" }, null, -1)
1668
+ f("div", { class: "dwui-screen-loading-spinner" }, null, -1)
1642
1669
  ])], 544));
1643
1670
  }
1644
- }), Re = /* @__PURE__ */ Symbol("dwui-tab-group"), Oo = ["id", "aria-labelledby", "aria-busy", "hidden"], No = {
1671
+ }), Ke = /* @__PURE__ */ Symbol("dwui-tab-group"), Ro = ["id", "aria-labelledby", "aria-busy", "hidden"], jo = {
1645
1672
  key: 0,
1646
1673
  class: "dwui-tab-loading"
1647
- }, Ho = {
1674
+ }, Ko = {
1648
1675
  key: 1,
1649
1676
  class: "dwui-tab-loading-spinner"
1650
- }, zo = /* @__PURE__ */ D({
1677
+ }, Wo = /* @__PURE__ */ D({
1651
1678
  __name: "tab-content",
1652
1679
  props: {
1653
1680
  tabId: {},
@@ -1658,10 +1685,10 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1658
1685
  headerStyle: { type: [Boolean, null, String, Object, Array] }
1659
1686
  },
1660
1687
  setup(a) {
1661
- const o = a, e = Ye(Re, void 0), t = B(!1), l = () => e?.loadingSlot(), n = T(() => e?.activeTabId.value === o.tabId), s = T(() => !!e?.mounted.value && n.value), p = (r) => {
1662
- t.value = r;
1688
+ const o = a, e = Oe(Ke, void 0), t = B(!1), l = () => e?.loadingSlot(), n = T(() => e?.activeTabId.value === o.tabId), s = T(() => !!e?.mounted.value && n.value), g = (d) => {
1689
+ t.value = d;
1663
1690
  };
1664
- return (r, c) => o.disabled ? M("", !0) : (d(), f("div", {
1691
+ return (d, p) => o.disabled ? M("", !0) : (c(), b("div", {
1665
1692
  key: 0,
1666
1693
  id: _(e) ? `${_(e).groupName}-${o.tabId}-panel` : void 0,
1667
1694
  class: "dwui-tab-content",
@@ -1670,16 +1697,16 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1670
1697
  "aria-busy": t.value ? "true" : void 0,
1671
1698
  hidden: !n.value
1672
1699
  }, [
1673
- C(r.$slots, "default", {
1700
+ C(d.$slots, "default", {
1674
1701
  activated: s.value,
1675
- setLoading: p
1702
+ setLoading: g
1676
1703
  }),
1677
- t.value ? (d(), f("div", No, [
1678
- l() != null ? (d(), j(te(l()), { key: 0 })) : (d(), f("span", Ho))
1704
+ t.value ? (c(), b("div", jo, [
1705
+ l() != null ? (c(), j(te(l()), { key: 0 })) : (c(), b("span", Ko))
1679
1706
  ])) : M("", !0)
1680
- ], 8, Oo));
1707
+ ], 8, Ro));
1681
1708
  }
1682
- }), Ro = { class: "dwui-tab-group" }, jo = ["id", "name", "disabled", "checked", "aria-selected", "aria-controls", "onChange"], Wo = ["for"], Ko = { class: "dwui-tab-items" }, rn = /* @__PURE__ */ D({
1709
+ }), Fo = { class: "dwui-tab-group" }, Vo = ["id", "name", "disabled", "checked", "aria-selected", "aria-controls", "onChange"], Go = ["for"], Uo = { class: "dwui-tab-items" }, pn = /* @__PURE__ */ D({
1683
1710
  __name: "tab-group",
1684
1711
  props: /* @__PURE__ */ Q({
1685
1712
  tabGroupName: {},
@@ -1694,91 +1721,91 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1694
1721
  emits: ["update:selectedTabId"],
1695
1722
  setup(a) {
1696
1723
  const o = a, e = se(a, "selectedTabId"), t = J(), l = o.tabGroupName ?? ae(), n = (h) => {
1697
- if (h.type !== zo)
1724
+ if (h.type !== Wo)
1698
1725
  return;
1699
- const m = h.props ?? {}, u = m.disabled;
1726
+ const v = h.props ?? {}, u = v.disabled;
1700
1727
  return {
1701
- tabId: String(m["tab-id"] ?? m.tabId),
1702
- label: m.label,
1728
+ tabId: String(v["tab-id"] ?? v.tabId),
1729
+ label: v.label,
1703
1730
  // 属性だけを書いた場合(<TabContent disabled>)は空文字になる
1704
1731
  disabled: u === "" || !!u,
1705
- status: m.status,
1706
- headerClass: m["header-class"] ?? m.headerClass,
1707
- headerStyle: m["header-style"] ?? m.headerStyle,
1732
+ status: v.status,
1733
+ headerClass: v["header-class"] ?? v.headerClass,
1734
+ headerStyle: v["header-style"] ?? v.headerStyle,
1708
1735
  // TabContentの#iconスロットは、TabContentではなくここで見出しに描画する
1709
1736
  icon: h.children?.icon
1710
1737
  };
1711
1738
  }, s = T(() => {
1712
1739
  const h = [];
1713
- for (const m of t.default?.() ?? []) {
1714
- const u = Array.isArray(m.children) ? m.children : [m];
1715
- for (const k of u) {
1716
- const x = n(k);
1740
+ for (const v of t.default?.() ?? []) {
1741
+ const u = Array.isArray(v.children) ? v.children : [v];
1742
+ for (const S of u) {
1743
+ const x = n(S);
1717
1744
  x && h.push(x);
1718
1745
  }
1719
1746
  }
1720
1747
  return h;
1721
- }), p = T(() => e.value != null ? e.value : (o.selectFirstEnabled ? s.value.find((m) => !m.disabled) : s.value[0])?.tabId), r = B(!1);
1722
- qe(Re, { groupName: l, activeTabId: p, mounted: r, loadingSlot: () => t.loading }), G(() => {
1723
- r.value = !0;
1748
+ }), g = T(() => e.value != null ? e.value : (o.selectFirstEnabled ? s.value.find((v) => !v.disabled) : s.value[0])?.tabId), d = B(!1);
1749
+ Ze(Ke, { groupName: l, activeTabId: g, mounted: d, loadingSlot: () => t.loading }), G(() => {
1750
+ d.value = !0;
1724
1751
  });
1725
- const c = (h) => {
1752
+ const p = (h) => {
1726
1753
  e.value = h;
1727
1754
  };
1728
- return (h, m) => (d(), f("div", Ro, [
1729
- (d(), j(Qe, {
1755
+ return (h, v) => (c(), b("div", Fo, [
1756
+ (c(), j(et, {
1730
1757
  to: o.teleport ?? "body",
1731
1758
  disabled: o.teleport == null
1732
1759
  }, [
1733
- v("div", {
1734
- class: O(["dwui-tab-headers", o.headerClass]),
1760
+ f("div", {
1761
+ class: N(["dwui-tab-headers", o.headerClass]),
1735
1762
  role: "tablist",
1736
1763
  style: F(o.headerStyle)
1737
1764
  }, [
1738
- (d(!0), f(K, null, Y(s.value, (u) => (d(), f(K, {
1765
+ (c(!0), b(W, null, Y(s.value, (u) => (c(), b(W, {
1739
1766
  key: u.tabId
1740
1767
  }, [
1741
- v("input", {
1768
+ f("input", {
1742
1769
  id: `${_(l)}-${u.tabId}`,
1743
1770
  type: "radio",
1744
1771
  class: "dwui-tab-radio",
1745
1772
  role: "tab",
1746
1773
  name: _(l),
1747
1774
  disabled: u.disabled,
1748
- checked: u.tabId === p.value,
1749
- "aria-selected": u.tabId === p.value ? "true" : "false",
1775
+ checked: u.tabId === g.value,
1776
+ "aria-selected": u.tabId === g.value ? "true" : "false",
1750
1777
  "aria-controls": `${_(l)}-${u.tabId}-panel`,
1751
- onChange: (k) => c(u.tabId)
1752
- }, null, 40, jo),
1753
- v("label", {
1778
+ onChange: (S) => p(u.tabId)
1779
+ }, null, 40, Vo),
1780
+ f("label", {
1754
1781
  for: `${_(l)}-${u.tabId}`,
1755
- class: O(["dwui-tab-item", [u.status != null ? `dwui-tab-${u.status}` : void 0, u.headerClass]]),
1782
+ class: N(["dwui-tab-item", [u.status != null ? `dwui-tab-${u.status}` : void 0, u.headerClass]]),
1756
1783
  style: F(u.headerStyle)
1757
1784
  }, [
1758
1785
  A(oe, null, ie({
1759
1786
  default: H(() => [
1760
- Z(" " + N(u.label), 1)
1787
+ Z(" " + z(u.label), 1)
1761
1788
  ]),
1762
1789
  _: 2
1763
1790
  }, [
1764
1791
  u.icon != null ? {
1765
1792
  name: "icon",
1766
1793
  fn: H(() => [
1767
- (d(), j(te(u.icon)))
1794
+ (c(), j(te(u.icon)))
1768
1795
  ]),
1769
1796
  key: "0"
1770
1797
  } : void 0
1771
1798
  ]), 1024)
1772
- ], 14, Wo)
1799
+ ], 14, Go)
1773
1800
  ], 64))), 128))
1774
1801
  ], 6)
1775
1802
  ], 8, ["to", "disabled"])),
1776
- v("div", Ko, [
1803
+ f("div", Uo, [
1777
1804
  C(h.$slots, "default")
1778
1805
  ])
1779
1806
  ]));
1780
1807
  }
1781
- }), dn = /* @__PURE__ */ D({
1808
+ }), mn = /* @__PURE__ */ D({
1782
1809
  __name: "warning-popper",
1783
1810
  props: {
1784
1811
  placement: { default: "right" },
@@ -1788,7 +1815,7 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1788
1815
  emits: ["emit:open", "emit:close"],
1789
1816
  setup(a, { emit: o }) {
1790
1817
  const e = a, t = o;
1791
- return (l, n) => (d(), j(ze, {
1818
+ return (l, n) => (c(), j(je, {
1792
1819
  class: "dwui-warning-popper",
1793
1820
  "popover-class": "dwui-warning-popper-popover",
1794
1821
  placement: e.placement,
@@ -1799,7 +1826,7 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1799
1826
  }, {
1800
1827
  icon: H(() => [
1801
1828
  C(l.$slots, "icon", {}, () => [
1802
- A(_(Oe))
1829
+ A(_(ze))
1803
1830
  ])
1804
1831
  ]),
1805
1832
  default: H(() => [
@@ -1810,28 +1837,29 @@ const To = () => (Te += 1, Te), nn = /* @__PURE__ */ D({
1810
1837
  }
1811
1838
  });
1812
1839
  export {
1813
- Eo as _,
1814
- Xo as a,
1815
- on as b,
1816
- no as c,
1817
- nn as d,
1818
- sn as e,
1819
- Go as f,
1820
- Pe as g,
1821
- Uo as h,
1822
- Yo as i,
1823
- qo as j,
1824
- Qo as k,
1825
- Jo as l,
1826
- Zo as m,
1827
- To as n,
1828
- en as o,
1829
- tn as p,
1840
+ Do as _,
1841
+ Jo as a,
1842
+ sn as b,
1843
+ io as c,
1844
+ rn as d,
1845
+ un as e,
1846
+ qo as f,
1847
+ Ce as g,
1848
+ Qo as h,
1849
+ Zo as i,
1850
+ en as j,
1851
+ tn as k,
1852
+ on as l,
1853
+ nn as m,
1854
+ Oo as n,
1855
+ ln as o,
1856
+ an as p,
1830
1857
  oe as q,
1831
- Ce as r,
1832
- ln as s,
1833
- an as t,
1834
- zo as u,
1835
- rn as v,
1836
- dn as w
1858
+ xe as r,
1859
+ dn as s,
1860
+ cn as t,
1861
+ Wo as u,
1862
+ pn as v,
1863
+ mn as w,
1864
+ Qt as x
1837
1865
  };