@digitalwalletcorp/vue-core 1.4.6 → 1.4.8

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,6 +1,7 @@
1
- import { defineComponent as O, useSlots as Z, openBlock as u, createElementBlock as f, normalizeStyle as F, renderSlot as x, createBlock as j, resolveDynamicComponent as te, mergeProps as le, createCommentVNode as T, normalizeClass as I, createTextVNode as Q, toDisplayString as A, ref as B, onMounted as X, onBeforeUnmount as G, useModel as re, computed as E, createElementVNode as b, createVNode as D, unref as _, createSlots as de, withCtx as H, mergeModels as J, withModifiers as ee, normalizeProps as je, guardReactiveProps as We, TransitionGroup as ct, Fragment as K, renderList as U, getCurrentInstance as Ke, inject as ke, toValue as ut, shallowReactive as pt, render as pe, h as me, shallowRef as mt, watch as Y, withKeys as we, useAttrs as Fe, useId as se, reactive as Te, Transition as vt, provide as ft, Teleport as gt } from "vue";
1
+ import { defineComponent as A, useSlots as Q, openBlock as r, createElementBlock as v, normalizeStyle as F, renderSlot as x, createBlock as W, resolveDynamicComponent as te, mergeProps as le, createCommentVNode as E, normalizeClass as D, createTextVNode as q, toDisplayString as M, ref as B, onMounted as X, onBeforeUnmount as U, useModel as re, computed as T, createElementVNode as b, createVNode as I, unref as _, createSlots as de, withCtx as H, mergeModels as Z, withModifiers as ee, normalizeProps as je, guardReactiveProps as We, TransitionGroup as ct, Fragment as j, renderList as V, getCurrentInstance as Ke, inject as ke, toValue as ut, shallowReactive as pt, render as pe, h as me, shallowRef as mt, watch as Y, withKeys as we, useAttrs as Fe, useId as se, reactive as Te, Transition as vt, provide as ft, Teleport as gt } from "vue";
2
2
  import { SvgTriangleButton as Ve, SvgWastebasket as bt, SvgMemo as ht, SvgHighBrightness as wt, SvgMoonPhases as yt, SvgChevronDouble as Ee, SvgChevron as Me, SvgBlackArrow as Ae, SvgFolderDownload as _t, SvgCloudDownload as $t, SvgPointingTriangle as kt, SvgQuestion as Ce, SvgHourglass as Ct, SvgCritical as St, SvgWarningSign as Ge, SvgInfo as xt, SvgNegativeSquaredCrossMark as Pt, SvgCornerDiagonal as Bt, SvgRoundPushpin as Lt, SvgPushpin as Tt, SvgSquare as Et, SvgCircle as Mt, SvgDiamond as At } from "@digitalwalletcorp/vue-svg-icons";
3
- const oe = /* @__PURE__ */ O({
3
+ import { diffChars as Ot } from "diff";
4
+ const oe = /* @__PURE__ */ A({
4
5
  __name: "label-icon",
5
6
  props: {
6
7
  preset: {},
@@ -11,44 +12,44 @@ const oe = /* @__PURE__ */ O({
11
12
  labelStyle: { type: [Boolean, null, String, Object, Array] }
12
13
  },
13
14
  setup(n) {
14
- const t = n, e = Z();
15
- return (o, a) => (u(), f("span", {
15
+ const t = n, e = Q();
16
+ return (o, a) => (r(), v("span", {
16
17
  class: "dwui-label-icon",
17
18
  style: F(t.gap == null ? void 0 : { "--dwui-gap-label-icon": t.gap })
18
19
  }, [
19
20
  x(o.$slots, "icon", {}, () => [
20
- t.preset != null ? (u(), j(te(t.preset.icon), le({ key: 0 }, t.preset.iconProps, {
21
+ t.preset != null ? (r(), W(te(t.preset.icon), le({ key: 0 }, t.preset.iconProps, {
21
22
  class: t.iconClass,
22
23
  style: t.iconStyle
23
- }), null, 16, ["class", "style"])) : T("", !0)
24
+ }), null, 16, ["class", "style"])) : E("", !0)
24
25
  ]),
25
- e.default != null || t.preset != null ? (u(), f("span", {
26
+ e.default != null || t.preset != null ? (r(), v("span", {
26
27
  key: 0,
27
- class: I(["dwui-label", t.labelClass]),
28
+ class: D(["dwui-label", t.labelClass]),
28
29
  style: F(t.labelStyle)
29
30
  }, [
30
31
  x(o.$slots, "default", {}, () => [
31
- Q(A(typeof t.preset?.label == "function" ? t.preset.label() : t.preset?.label), 1)
32
+ q(M(typeof t.preset?.label == "function" ? t.preset.label() : t.preset?.label), 1)
32
33
  ])
33
- ], 6)) : T("", !0)
34
+ ], 6)) : E("", !0)
34
35
  ], 4));
35
36
  }
36
- }), Ot = 70;
37
+ }), Dt = 70;
37
38
  function Ue(n) {
38
39
  const t = B(!0);
39
40
  let e;
40
41
  return X(() => {
41
42
  const o = n.value;
42
43
  o != null && (e = new ResizeObserver(() => {
43
- t.value = Ot <= o.scrollHeight;
44
+ t.value = Dt <= o.scrollHeight;
44
45
  }), e.observe(o));
45
- }), G(() => {
46
+ }), U(() => {
46
47
  e?.disconnect();
47
48
  }), t;
48
49
  }
49
- const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-expanded"], Dn = /* @__PURE__ */ O({
50
+ const It = ["disabled"], Nt = { class: "dwui-accordion-legend" }, zt = ["aria-expanded"], jn = /* @__PURE__ */ A({
50
51
  __name: "accordion-fieldset",
51
- props: /* @__PURE__ */ J({
52
+ props: /* @__PURE__ */ Z({
52
53
  legend: {},
53
54
  disabled: { type: Boolean },
54
55
  initialExpand: { type: Boolean }
@@ -58,63 +59,63 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
58
59
  }),
59
60
  emits: ["update:expanded"],
60
61
  setup(n) {
61
- const t = n, e = Z(), o = B(), a = re(n, "expanded"), l = B(!!t.initialExpand), s = E({
62
+ const t = n, e = Q(), o = B(), a = re(n, "expanded"), l = B(!!t.initialExpand), s = T({
62
63
  get: () => a.value ?? l.value,
63
- set: (r) => {
64
- l.value = r, a.value = r;
64
+ set: (d) => {
65
+ l.value = d, a.value = d;
65
66
  }
66
67
  }), p = Ue(o), i = () => {
67
68
  s.value = !s.value;
68
69
  };
69
- return (r, h) => (u(), f("fieldset", {
70
+ return (d, h) => (r(), v("fieldset", {
70
71
  class: "dwui-accordion-fieldset",
71
72
  disabled: t.disabled
72
73
  }, [
73
- b("legend", It, [
74
+ b("legend", Nt, [
74
75
  b("button", {
75
76
  type: "button",
76
77
  class: "dwui-accordion-toggle",
77
78
  "aria-expanded": s.value,
78
79
  onClick: i
79
80
  }, [
80
- D(_(Ve), {
81
+ I(_(Ve), {
81
82
  direction: s.value ? "up" : "down"
82
83
  }, null, 8, ["direction"]),
83
- t.legend != null || e.legend != null || e.icon != null ? (u(), j(oe, { key: 0 }, de({ _: 2 }, [
84
+ t.legend != null || e.legend != null || e.icon != null ? (r(), W(oe, { key: 0 }, de({ _: 2 }, [
84
85
  e.icon != null ? {
85
86
  name: "icon",
86
87
  fn: H(() => [
87
- x(r.$slots, "icon")
88
+ x(d.$slots, "icon")
88
89
  ]),
89
90
  key: "0"
90
91
  } : void 0,
91
92
  t.legend != null || e.legend != null ? {
92
93
  name: "default",
93
94
  fn: H(() => [
94
- x(r.$slots, "legend", {}, () => [
95
- Q(A(t.legend), 1)
95
+ x(d.$slots, "legend", {}, () => [
96
+ q(M(t.legend), 1)
96
97
  ])
97
98
  ]),
98
99
  key: "1"
99
100
  } : void 0
100
- ]), 1024)) : T("", !0)
101
- ], 8, Nt)
101
+ ]), 1024)) : E("", !0)
102
+ ], 8, zt)
102
103
  ]),
103
104
  b("div", {
104
105
  ref_key: "refContents",
105
106
  ref: o,
106
- class: I(["dwui-accordion-contents", _(p) ? s.value ? "dwui-expanded" : "dwui-shrunk" : ""])
107
+ class: D(["dwui-accordion-contents", _(p) ? s.value ? "dwui-expanded" : "dwui-shrunk" : ""])
107
108
  }, [
108
- x(r.$slots, "default")
109
+ x(d.$slots, "default")
109
110
  ], 2)
110
- ], 8, Dt));
111
+ ], 8, It));
111
112
  }
112
- }), zt = { class: "dwui-accordion-section" }, Ht = {
113
+ }), Ht = { class: "dwui-accordion-section" }, Rt = {
113
114
  key: 0,
114
115
  class: "dwui-accordion-section-control"
115
- }, Rt = ["disabled", "aria-expanded"], In = /* @__PURE__ */ O({
116
+ }, jt = ["disabled", "aria-expanded"], Wn = /* @__PURE__ */ A({
116
117
  __name: "accordion-section",
117
- props: /* @__PURE__ */ J({
118
+ props: /* @__PURE__ */ Z({
118
119
  disabled: { type: Boolean },
119
120
  initialExpand: { type: Boolean },
120
121
  noGradient: { type: Boolean },
@@ -128,12 +129,12 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
128
129
  }),
129
130
  emits: ["update:expanded"],
130
131
  setup(n) {
131
- const t = n, e = Z(), o = B(), a = re(n, "expanded"), l = B(!!t.initialExpand), s = E({
132
+ const t = n, e = Q(), o = B(), a = re(n, "expanded"), l = B(!!t.initialExpand), s = T({
132
133
  get: () => a.value ?? l.value,
133
134
  set: (C) => {
134
135
  l.value = C, a.value = C;
135
136
  }
136
- }), p = Ue(o), i = E(() => s.value ? t.collapsePreset : t.expandPreset), r = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) ?? i.value?.icon, h = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) == null ? i.value?.iconProps : void 0, v = E(() => {
137
+ }), p = Ue(o), i = T(() => s.value ? t.collapsePreset : t.expandPreset), d = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) ?? i.value?.icon, h = () => (s.value ? e["collapse-icon"] : e["expand-icon"]) == null ? i.value?.iconProps : void 0, f = T(() => {
137
138
  const C = s.value ? t.collapseLabel : t.expandLabel;
138
139
  if (C != null)
139
140
  return C;
@@ -142,18 +143,18 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
142
143
  }), m = () => {
143
144
  s.value = !s.value;
144
145
  };
145
- return (C, P) => (u(), f("div", zt, [
146
+ return (C, P) => (r(), v("div", Ht, [
146
147
  b("div", {
147
148
  ref_key: "refContents",
148
149
  ref: o,
149
- class: I(["dwui-accordion-section-contents", [
150
+ class: D(["dwui-accordion-section-contents", [
150
151
  _(p) ? s.value ? "dwui-expanded" : "dwui-shrunk" : "",
151
152
  { "dwui-no-gradient": t.noGradient }
152
153
  ]])
153
154
  }, [
154
155
  x(C.$slots, "default")
155
156
  ], 2),
156
- _(p) ? (u(), f("div", Ht, [
157
+ _(p) ? (r(), v("div", Rt, [
157
158
  b("button", {
158
159
  type: "button",
159
160
  class: "dwui-accordion-section-toggle",
@@ -161,42 +162,42 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
161
162
  "aria-expanded": s.value,
162
163
  onClick: ee(m, ["stop"])
163
164
  }, [
164
- r() != null || v.value != null ? (u(), j(oe, { key: 0 }, de({ _: 2 }, [
165
- r() != null ? {
165
+ d() != null || f.value != null ? (r(), W(oe, { key: 0 }, de({ _: 2 }, [
166
+ d() != null ? {
166
167
  name: "icon",
167
168
  fn: H(() => [
168
- (u(), j(te(r()), je(We(h())), null, 16))
169
+ (r(), W(te(d()), je(We(h())), null, 16))
169
170
  ]),
170
171
  key: "0"
171
172
  } : void 0,
172
- v.value != null ? {
173
+ f.value != null ? {
173
174
  name: "default",
174
175
  fn: H(() => [
175
- Q(A(v.value), 1)
176
+ q(M(f.value), 1)
176
177
  ]),
177
178
  key: "1"
178
179
  } : void 0
179
- ]), 1024)) : (u(), j(_(Ve), {
180
+ ]), 1024)) : (r(), W(_(Ve), {
180
181
  key: 1,
181
182
  direction: s.value ? "up" : "down"
182
183
  }, null, 8, ["direction"]))
183
- ], 8, Rt)
184
- ])) : T("", !0)
184
+ ], 8, jt)
185
+ ])) : E("", !0)
185
186
  ]));
186
187
  }
187
- }), Xe = /* @__PURE__ */ Symbol("dwui-vue-core-options"), jt = ["aria-label", "title"], Wt = ["title", "onClick"], Kt = {
188
+ }), Xe = /* @__PURE__ */ Symbol("dwui-vue-core-options"), Wt = ["aria-label", "title"], Kt = ["title", "onClick"], Ft = {
188
189
  key: 0,
189
190
  class: "dwui-snackbar-header"
190
- }, Ft = {
191
+ }, Vt = {
191
192
  key: 0,
192
193
  class: "dwui-snackbar-title"
193
- }, Vt = {
194
+ }, Gt = {
194
195
  key: 1,
195
196
  class: "dwui-snackbar-label"
196
- }, Gt = { class: "dwui-snackbar-message" }, Ut = {
197
+ }, Ut = { class: "dwui-snackbar-message" }, Xt = {
197
198
  key: 1,
198
199
  class: "dwui-snackbar-timestamp"
199
- }, Xt = /* @__PURE__ */ O({
200
+ }, Yt = /* @__PURE__ */ A({
200
201
  __name: "snackbar-container",
201
202
  props: {
202
203
  placement: {},
@@ -205,23 +206,23 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
205
206
  },
206
207
  emits: ["emit:close", "emit:clear", "emit:afterLeave"],
207
208
  setup(n, { emit: t }) {
208
- const e = n, o = t, a = E(() => {
209
+ const e = n, o = t, a = T(() => {
209
210
  const [s, p = "center"] = e.placement.split("-");
210
211
  return [
211
212
  `dwui-snackbar-container-${s}`,
212
213
  `dwui-snackbar-container-${p}`,
213
214
  `dwui-snackbar-container-${e.direction}`
214
215
  ];
215
- }), l = E(() => e.items.filter((s) => s.clearable).at(-1)?.clearLabel);
216
- return (s, p) => (u(), j(ct, {
216
+ }), l = T(() => e.items.filter((s) => s.clearable).at(-1)?.clearLabel);
217
+ return (s, p) => (r(), W(ct, {
217
218
  tag: "div",
218
219
  name: "dwui-snackbar-fade",
219
- class: I(["dwui-snackbar-container", a.value]),
220
+ class: D(["dwui-snackbar-container", a.value]),
220
221
  role: "status",
221
222
  onAfterLeave: p[1] || (p[1] = (i) => o("emit:afterLeave"))
222
223
  }, {
223
224
  default: H(() => [
224
- l.value != null ? (u(), f("button", {
225
+ l.value != null ? (r(), v("button", {
225
226
  key: "clear",
226
227
  type: "button",
227
228
  class: "dwui-snackbar-clear-button",
@@ -229,29 +230,29 @@ const Dt = ["disabled"], It = { class: "dwui-accordion-legend" }, Nt = ["aria-ex
229
230
  title: l.value,
230
231
  onClick: p[0] || (p[0] = (i) => o("emit:clear"))
231
232
  }, [
232
- D(_(bt))
233
- ], 8, jt)) : T("", !0),
234
- (u(!0), f(K, null, U(e.items, (i) => (u(), f("button", {
233
+ I(_(bt))
234
+ ], 8, Wt)) : E("", !0),
235
+ (r(!0), v(j, null, V(e.items, (i) => (r(), v("button", {
235
236
  key: i.id,
236
237
  type: "button",
237
- class: I(["dwui-snackbar", i.class]),
238
+ class: D(["dwui-snackbar", i.class]),
238
239
  style: F(i.style),
239
240
  title: i.message,
240
- onClick: (r) => o("emit:close", i.id)
241
+ onClick: (d) => o("emit:close", i.id)
241
242
  }, [
242
- i.title || i.label ? (u(), f("span", Kt, [
243
- i.title ? (u(), f("span", Ft, A(i.title), 1)) : T("", !0),
244
- i.label ? (u(), f("span", Vt, A(i.label), 1)) : T("", !0)
245
- ])) : T("", !0),
246
- b("span", Gt, A(i.message), 1),
247
- i.timestamp ? (u(), f("span", Ut, A(i.timestamp), 1)) : T("", !0)
248
- ], 14, Wt))), 128))
243
+ i.title || i.label ? (r(), v("span", Ft, [
244
+ i.title ? (r(), v("span", Vt, M(i.title), 1)) : E("", !0),
245
+ i.label ? (r(), v("span", Gt, M(i.label), 1)) : E("", !0)
246
+ ])) : E("", !0),
247
+ b("span", Ut, M(i.message), 1),
248
+ i.timestamp ? (r(), v("span", Xt, M(i.timestamp), 1)) : E("", !0)
249
+ ], 14, Kt))), 128))
249
250
  ]),
250
251
  _: 1
251
252
  }, 8, ["class"]));
252
253
  }
253
254
  });
254
- function Yt(n, t = /* @__PURE__ */ new Date()) {
255
+ function qt(n, t = /* @__PURE__ */ new Date()) {
255
256
  const e = new Intl.DateTimeFormat("en-US", {
256
257
  timeZone: n || "UTC",
257
258
  hourCycle: "h23",
@@ -265,7 +266,7 @@ function Yt(n, t = /* @__PURE__ */ new Date()) {
265
266
  }).formatToParts(t), o = (l) => e.find((s) => s.type === l)?.value ?? "", a = o("timeZoneName").replace(/^GMT/, "") || "+00:00";
266
267
  return `${o("year")}-${o("month")}-${o("day")} ${o("hour")}:${o("minute")}:${o("second")}${a}`;
267
268
  }
268
- const qt = 50, ae = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Map();
269
+ const Jt = 50, ae = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Map();
269
270
  let Oe = 0;
270
271
  const ve = (n, t, e) => {
271
272
  const o = n.findIndex((l) => l.id === t);
@@ -277,15 +278,15 @@ const ve = (n, t, e) => {
277
278
  }, Ye = (n) => {
278
279
  const t = n.map((e) => e.id);
279
280
  for (let e = 0; e < t.length; e++)
280
- setTimeout(() => ve(n, t[e], "clear"), qt * e);
281
- }, Jt = (n, t) => {
281
+ setTimeout(() => ve(n, t[e], "clear"), Jt * e);
282
+ }, Zt = (n, t) => {
282
283
  const e = `${n} ${t}`, o = ae.get(e);
283
284
  if (o)
284
285
  return o;
285
286
  const a = document.createElement("div");
286
287
  document.body.appendChild(a);
287
288
  const l = pt([]);
288
- return ae.set(e, l), pe(me(Xt, {
289
+ return ae.set(e, l), pe(me(Yt, {
289
290
  placement: n,
290
291
  direction: t,
291
292
  items: l,
@@ -296,7 +297,7 @@ const ve = (n, t, e) => {
296
297
  }
297
298
  }), a), l;
298
299
  };
299
- function Zt(n, t) {
300
+ function Qt(n, t) {
300
301
  const {
301
302
  placement: e = "bottom",
302
303
  direction: o = "overlap",
@@ -305,40 +306,40 @@ function Zt(n, t) {
305
306
  clearLabel: s = "Clear all",
306
307
  timezone: p,
307
308
  onClose: i,
308
- ...r
309
- } = t ?? {}, h = p === !1 ? void 0 : Yt(p ?? ""), v = Jt(e, o);
309
+ ...d
310
+ } = t ?? {}, h = p === !1 ? void 0 : qt(p ?? ""), f = Zt(e, o);
310
311
  Oe += 1;
311
312
  const m = Oe;
312
- return v.push({
313
- ...r,
313
+ return f.push({
314
+ ...d,
314
315
  id: m,
315
316
  message: n,
316
317
  timestamp: h,
317
318
  clearable: l,
318
319
  clearLabel: s
319
320
  }), ye.set(m, {
320
- timer: a ? setTimeout(() => ve(v, m, "duration"), a) : void 0,
321
+ timer: a ? setTimeout(() => ve(f, m, "duration"), a) : void 0,
321
322
  onClose: i
322
323
  }), {
323
- close: () => ve(v, m, "handle")
324
+ close: () => ve(f, m, "handle")
324
325
  };
325
326
  }
326
- function Nn() {
327
+ function Kn() {
327
328
  for (const n of ae.values())
328
329
  Ye(n);
329
330
  }
330
- function Qt() {
331
+ function eo() {
331
332
  if (!Ke())
332
333
  throw new Error("useSnackbar() must be called inside setup().");
333
334
  const n = ke(Xe, void 0);
334
335
  return {
335
- showSnackbar: (t, e) => Zt(t, {
336
+ showSnackbar: (t, e) => Qt(t, {
336
337
  ...e,
337
338
  timezone: e?.timezone ?? ut(n?.snackbar?.timezone)
338
339
  })
339
340
  };
340
341
  }
341
- const eo = ["aria-label"], zn = /* @__PURE__ */ O({
342
+ const to = ["aria-label"], Fn = /* @__PURE__ */ A({
342
343
  __name: "copy-button",
343
344
  props: {
344
345
  value: {},
@@ -348,7 +349,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
348
349
  },
349
350
  emits: ["emit:copy", "emit:error"],
350
351
  setup(n, { emit: t }) {
351
- const e = n, o = t, a = Z(), { showSnackbar: l } = Qt(), s = async () => {
352
+ const e = n, o = t, a = Q(), { showSnackbar: l } = eo(), s = async () => {
352
353
  const p = String(typeof e.value == "function" ? e.value() : e.value);
353
354
  try {
354
355
  await navigator.clipboard.writeText(p);
@@ -358,18 +359,18 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
358
359
  }
359
360
  o("emit:copy", p), e.copiedMessage && l(e.copiedMessage, { duration: e.copiedDuration });
360
361
  };
361
- return (p, i) => (u(), f("button", {
362
+ return (p, i) => (r(), v("button", {
362
363
  type: "button",
363
364
  class: "dwui-copy-button",
364
365
  "aria-label": a.default ? void 0 : e.label,
365
366
  onClick: s
366
367
  }, [
367
368
  x(p.$slots, "default", {}, () => [
368
- D(_(ht))
369
+ I(_(ht))
369
370
  ])
370
- ], 8, eo));
371
+ ], 8, to));
371
372
  }
372
- }), to = ["aria-label", "aria-checked"], oo = { class: "dwui-dark-mode-selector-track" }, no = { class: "dwui-dark-mode-selector-icon-light" }, ao = { class: "dwui-dark-mode-selector-icon-dark" }, Hn = /* @__PURE__ */ O({
373
+ }), oo = ["aria-label", "aria-checked"], no = { class: "dwui-dark-mode-selector-track" }, ao = { class: "dwui-dark-mode-selector-icon-light" }, lo = { class: "dwui-dark-mode-selector-icon-dark" }, Vn = /* @__PURE__ */ A({
373
374
  __name: "dark-mode-selector",
374
375
  props: {
375
376
  storageKey: { default: "dwui-color-scheme" },
@@ -379,7 +380,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
379
380
  setup(n, { emit: t }) {
380
381
  const e = n, o = t, a = B(!1);
381
382
  let l = null, s = null;
382
- const p = (k) => k === "light" || k === "dark", i = () => s?.matches ? "dark" : "light", r = () => {
383
+ const p = (k) => k === "light" || k === "dark", i = () => s?.matches ? "dark" : "light", d = () => {
383
384
  try {
384
385
  const k = localStorage.getItem(e.storageKey);
385
386
  return p(k) ? k : null;
@@ -387,26 +388,26 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
387
388
  return null;
388
389
  }
389
390
  }, h = (k) => {
390
- const c = document.documentElement.classList;
391
- c.remove(k === "dark" ? "light" : "dark"), c.add(k), a.value = k === "dark", l !== k && (l = k, o("emit:change", k));
392
- }, v = (k) => {
391
+ const u = document.documentElement.classList;
392
+ u.remove(k === "dark" ? "light" : "dark"), u.add(k), a.value = k === "dark", l !== k && (l = k, o("emit:change", k));
393
+ }, f = (k) => {
393
394
  try {
394
395
  localStorage.setItem(e.storageKey, k);
395
396
  } catch {
396
397
  }
397
398
  h(k);
398
399
  }, m = () => {
399
- v(a.value ? "light" : "dark");
400
+ f(a.value ? "light" : "dark");
400
401
  }, C = (k) => {
401
- v(k.matches ? "dark" : "light");
402
+ f(k.matches ? "dark" : "light");
402
403
  }, P = (k) => {
403
404
  k.key === e.storageKey && h(p(k.newValue) ? k.newValue : i());
404
405
  };
405
406
  return X(() => {
406
- s = window.matchMedia("(prefers-color-scheme: dark)"), h(r() ?? i()), s.addEventListener("change", C), window.addEventListener("storage", P);
407
- }), G(() => {
407
+ s = window.matchMedia("(prefers-color-scheme: dark)"), h(d() ?? i()), s.addEventListener("change", C), window.addEventListener("storage", P);
408
+ }), U(() => {
408
409
  s?.removeEventListener("change", C), window.removeEventListener("storage", P);
409
- }), (k, c) => (u(), f("button", {
410
+ }), (k, u) => (r(), v("button", {
410
411
  type: "button",
411
412
  role: "switch",
412
413
  class: "dwui-dark-mode-selector",
@@ -414,25 +415,25 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
414
415
  "aria-checked": a.value,
415
416
  onClick: m
416
417
  }, [
417
- b("span", oo, [
418
- b("span", no, [
418
+ b("span", no, [
419
+ b("span", ao, [
419
420
  x(k.$slots, "icon-light", {}, () => [
420
- D(_(wt))
421
+ I(_(wt))
421
422
  ])
422
423
  ]),
423
- b("span", ao, [
424
+ b("span", lo, [
424
425
  x(k.$slots, "icon-dark", {}, () => [
425
- D(_(yt), { "moon-age": 3.85 })
426
+ I(_(yt), { "moon-age": 3.85 })
426
427
  ])
427
428
  ])
428
429
  ]),
429
- c[0] || (c[0] = b("span", { class: "dwui-dark-mode-selector-handle" }, null, -1))
430
- ], 8, to));
430
+ u[0] || (u[0] = b("span", { class: "dwui-dark-mode-selector-handle" }, null, -1))
431
+ ], 8, oo));
431
432
  }
432
- }), lo = { class: "dwui-pagination" }, so = { class: "dwui-pagination-list" }, io = ["disabled", "aria-label", "title"], ro = ["disabled", "aria-label", "title"], co = ["disabled", "aria-label", "title"], uo = ["aria-current", "onClick"], po = ["disabled", "aria-label", "title"], mo = ["disabled", "aria-label", "title"], vo = ["disabled", "aria-label", "title"], fo = {
433
+ }), so = { class: "dwui-pagination" }, io = { class: "dwui-pagination-list" }, ro = ["disabled", "aria-label", "title"], co = ["disabled", "aria-label", "title"], uo = ["disabled", "aria-label", "title"], po = ["aria-current", "onClick"], mo = ["disabled", "aria-label", "title"], vo = ["disabled", "aria-label", "title"], fo = ["disabled", "aria-label", "title"], go = {
433
434
  key: 0,
434
435
  class: "dwui-pagination-select"
435
- }, go = ["value", "disabled"], bo = ["value"], ho = /* @__PURE__ */ O({
436
+ }, bo = ["value", "disabled"], ho = ["value"], wo = /* @__PURE__ */ A({
436
437
  __name: "pagination",
437
438
  props: {
438
439
  current: {},
@@ -444,46 +445,46 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
444
445
  },
445
446
  emits: ["emit:changePage"],
446
447
  setup(n, { emit: t }) {
447
- const e = n, o = t, a = E(() => Math.ceil(e.totalCount / e.limit)), l = E(() => Math.min(Math.max(e.current, 1), a.value)), s = B(!1), p = E(() => a.value < 1 ? [] : s.value ? Array.from({ length: a.value }, (c, S) => S + 1) : [l.value]), i = E(() => {
448
+ const e = n, o = t, a = T(() => Math.ceil(e.totalCount / e.limit)), l = T(() => Math.min(Math.max(e.current, 1), a.value)), s = B(!1), p = T(() => a.value < 1 ? [] : s.value ? Array.from({ length: a.value }, (u, S) => S + 1) : [l.value]), i = T(() => {
448
449
  if (a.value < 1)
449
450
  return [];
450
- const c = Math.min(
451
+ const u = Math.min(
451
452
  Math.max(l.value - Math.floor((e.maxPagination - 1) / 2), 1),
452
453
  Math.max(a.value - e.maxPagination + 1, 1)
453
- ), S = Math.min(c + e.maxPagination - 1, a.value);
454
- return Array.from({ length: S - c + 1 }, (w, N) => c + N);
455
- }), r = (c) => {
456
- c !== e.current && o("emit:changePage", c);
457
- }, h = (c) => {
454
+ ), S = Math.min(u + e.maxPagination - 1, a.value);
455
+ return Array.from({ length: S - u + 1 }, (w, N) => u + N);
456
+ }), d = (u) => {
457
+ u !== e.current && o("emit:changePage", u);
458
+ }, h = (u) => {
458
459
  let S;
459
- c < 0 ? S = Math.max(i.value[0] - e.maxPagination, 1) : S = Math.min(i.value[i.value.length - 1] + e.maxPagination, a.value) - e.maxPagination + 1, r(S + Math.round((e.maxPagination - 1) / 2));
460
- }, v = (c) => {
461
- r(Number(c.target.value));
460
+ u < 0 ? S = Math.max(i.value[0] - e.maxPagination, 1) : S = Math.min(i.value[i.value.length - 1] + e.maxPagination, a.value) - e.maxPagination + 1, d(S + Math.round((e.maxPagination - 1) / 2));
461
+ }, f = (u) => {
462
+ d(Number(u.target.value));
462
463
  }, m = () => {
463
464
  s.value = !0;
464
- }, C = (c) => {
465
- document.activeElement !== c.currentTarget && (s.value = !1);
465
+ }, C = (u) => {
466
+ document.activeElement !== u.currentTarget && (s.value = !1);
466
467
  }, P = () => {
467
468
  s.value = !0;
468
469
  }, k = () => {
469
470
  s.value = !1;
470
471
  };
471
- return (c, S) => (u(), f("div", lo, [
472
- b("ul", so, [
472
+ return (u, S) => (r(), v("div", so, [
473
+ b("ul", io, [
473
474
  b("li", null, [
474
475
  b("button", {
475
476
  type: "button",
476
477
  disabled: l.value <= 1,
477
478
  "aria-label": e.labels.firstPage,
478
479
  title: e.labels.firstPage,
479
- onClick: S[0] || (S[0] = (w) => r(1))
480
+ onClick: S[0] || (S[0] = (w) => d(1))
480
481
  }, [
481
- D(_(Ee), {
482
+ I(_(Ee), {
482
483
  direction: "left",
483
484
  size: "1em",
484
485
  "stroke-width": 8
485
486
  })
486
- ], 8, io)
487
+ ], 8, ro)
487
488
  ]),
488
489
  b("li", null, [
489
490
  b("button", {
@@ -491,14 +492,14 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
491
492
  disabled: l.value <= 1,
492
493
  "aria-label": e.labels.previousPage,
493
494
  title: e.labels.previousPage,
494
- onClick: S[1] || (S[1] = (w) => r(l.value - 1))
495
+ onClick: S[1] || (S[1] = (w) => d(l.value - 1))
495
496
  }, [
496
- D(_(Me), {
497
+ I(_(Me), {
497
498
  direction: "left",
498
499
  size: "1em",
499
500
  "stroke-width": 8
500
501
  })
501
- ], 8, ro)
502
+ ], 8, co)
502
503
  ]),
503
504
  b("li", null, [
504
505
  b("button", {
@@ -508,19 +509,19 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
508
509
  title: e.labels.previousPages,
509
510
  onClick: S[2] || (S[2] = (w) => h(-1))
510
511
  }, [
511
- D(_(Ae), {
512
+ I(_(Ae), {
512
513
  direction: "left",
513
514
  size: "1em"
514
515
  })
515
- ], 8, co)
516
+ ], 8, uo)
516
517
  ]),
517
- (u(!0), f(K, null, U(i.value, (w) => (u(), f("li", { key: w }, [
518
+ (r(!0), v(j, null, V(i.value, (w) => (r(), v("li", { key: w }, [
518
519
  b("button", {
519
520
  type: "button",
520
- class: I(["dwui-pagination-page", { "dwui-current": w === l.value }]),
521
+ class: D(["dwui-pagination-page", { "dwui-current": w === l.value }]),
521
522
  "aria-current": w === l.value ? "page" : void 0,
522
- onClick: (N) => r(w)
523
- }, A(w), 11, uo)
523
+ onClick: (N) => d(w)
524
+ }, M(w), 11, po)
524
525
  ]))), 128)),
525
526
  b("li", null, [
526
527
  b("button", {
@@ -530,11 +531,11 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
530
531
  title: e.labels.nextPages,
531
532
  onClick: S[3] || (S[3] = (w) => h(1))
532
533
  }, [
533
- D(_(Ae), {
534
+ I(_(Ae), {
534
535
  direction: "right",
535
536
  size: "1em"
536
537
  })
537
- ], 8, po)
538
+ ], 8, mo)
538
539
  ]),
539
540
  b("li", null, [
540
541
  b("button", {
@@ -542,14 +543,14 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
542
543
  disabled: a.value <= l.value,
543
544
  "aria-label": e.labels.nextPage,
544
545
  title: e.labels.nextPage,
545
- onClick: S[4] || (S[4] = (w) => r(l.value + 1))
546
+ onClick: S[4] || (S[4] = (w) => d(l.value + 1))
546
547
  }, [
547
- D(_(Me), {
548
+ I(_(Me), {
548
549
  direction: "right",
549
550
  size: "1em",
550
551
  "stroke-width": 8
551
552
  })
552
- ], 8, mo)
553
+ ], 8, vo)
553
554
  ]),
554
555
  b("li", null, [
555
556
  b("button", {
@@ -557,18 +558,18 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
557
558
  disabled: a.value <= l.value,
558
559
  "aria-label": e.labels.lastPage,
559
560
  title: e.labels.lastPage,
560
- onClick: S[5] || (S[5] = (w) => r(a.value))
561
+ onClick: S[5] || (S[5] = (w) => d(a.value))
561
562
  }, [
562
- D(_(Ee), {
563
+ I(_(Ee), {
563
564
  direction: "right",
564
565
  size: "1em",
565
566
  "stroke-width": 8
566
567
  })
567
- ], 8, vo)
568
+ ], 8, fo)
568
569
  ])
569
570
  ]),
570
- e.showPageSelect ? (u(), f("label", fo, [
571
- b("span", null, A(e.labels.pageNumber), 1),
571
+ e.showPageSelect ? (r(), v("label", go, [
572
+ b("span", null, M(e.labels.pageNumber), 1),
572
573
  b("select", {
573
574
  value: l.value,
574
575
  disabled: a.value <= 1,
@@ -576,23 +577,23 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
576
577
  onPointerleave: C,
577
578
  onFocus: P,
578
579
  onBlur: k,
579
- onChange: v
580
+ onChange: f
580
581
  }, [
581
- (u(!0), f(K, null, U(p.value, (w) => (u(), f("option", {
582
+ (r(!0), v(j, null, V(p.value, (w) => (r(), v("option", {
582
583
  key: w,
583
584
  value: w
584
- }, A(w) + " (" + A((w - 1) * e.limit + 1) + " - " + A(Math.min(w * e.limit, e.totalCount)) + ") ", 9, bo))), 128))
585
- ], 40, go)
586
- ])) : T("", !0)
585
+ }, M(w) + " (" + M((w - 1) * e.limit + 1) + " - " + M(Math.min(w * e.limit, e.totalCount)) + ") ", 9, ho))), 128))
586
+ ], 40, bo)
587
+ ])) : E("", !0)
587
588
  ]));
588
589
  }
589
- }), wo = { class: "dwui-data-table-controls" }, yo = { class: "dwui-data-table-tools" }, _o = {
590
+ }), yo = { class: "dwui-data-table-controls" }, _o = { class: "dwui-data-table-tools" }, $o = {
590
591
  key: 0,
591
592
  class: "dwui-data-table-total"
592
- }, $o = { class: "dwui-data-table-total-count" }, ko = {
593
+ }, ko = { class: "dwui-data-table-total-count" }, Co = {
593
594
  key: 1,
594
595
  class: "dwui-data-table-limit"
595
- }, Co = ["value", "max"], So = ["title", "aria-label"], xo = ["title", "aria-label"], De = /* @__PURE__ */ O({
596
+ }, So = ["value", "max"], xo = ["title", "aria-label"], Po = ["title", "aria-label"], De = /* @__PURE__ */ A({
596
597
  __name: "data-table-controls",
597
598
  props: {
598
599
  pagination: { type: Boolean },
@@ -611,12 +612,12 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
611
612
  },
612
613
  emits: ["emit:changePage", "emit:changeLimit", "emit:downloadPage", "emit:downloadAll"],
613
614
  setup(n, { emit: t }) {
614
- const e = n, o = t, a = new Intl.NumberFormat("en-US"), l = E(() => e.formatTotalCount ? e.formatTotalCount(e.totalCount) : a.format(e.totalCount)), s = (p) => {
615
- const i = p.target, r = Math.min(Math.max(Math.trunc(Number(i.value)) || 1, 1), e.maxLimit);
616
- i.value = String(r), r !== e.limit && o("emit:changeLimit", r);
615
+ const e = n, o = t, a = new Intl.NumberFormat("en-US"), l = T(() => e.formatTotalCount ? e.formatTotalCount(e.totalCount) : a.format(e.totalCount)), s = (p) => {
616
+ const i = p.target, d = Math.min(Math.max(Math.trunc(Number(i.value)) || 1, 1), e.maxLimit);
617
+ i.value = String(d), d !== e.limit && o("emit:changeLimit", d);
617
618
  };
618
- return (p, i) => (u(), f("div", wo, [
619
- e.pagination ? (u(), j(ho, {
619
+ return (p, i) => (r(), v("div", yo, [
620
+ e.pagination ? (r(), W(wo, {
620
621
  key: 0,
621
622
  current: e.current,
622
623
  "total-count": e.totalCount,
@@ -624,16 +625,16 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
624
625
  "max-pagination": e.maxPagination,
625
626
  "show-page-select": e.showPageSelect,
626
627
  labels: e.labels,
627
- "onEmit:changePage": i[0] || (i[0] = (r) => o("emit:changePage", r))
628
- }, null, 8, ["current", "total-count", "limit", "max-pagination", "show-page-select", "labels"])) : T("", !0),
629
- b("div", yo, [
630
- e.showTotal ? (u(), f("span", _o, [
631
- b("span", null, A(e.labels.totalCount), 1),
632
- b("span", $o, A(l.value), 1),
633
- b("span", null, A(e.labels.totalUnit), 1)
634
- ])) : T("", !0),
635
- e.showLimit ? (u(), f("label", ko, [
636
- b("span", null, A(e.labels.limit), 1),
628
+ "onEmit:changePage": i[0] || (i[0] = (d) => o("emit:changePage", d))
629
+ }, null, 8, ["current", "total-count", "limit", "max-pagination", "show-page-select", "labels"])) : E("", !0),
630
+ b("div", _o, [
631
+ e.showTotal ? (r(), v("span", $o, [
632
+ b("span", null, M(e.labels.totalCount), 1),
633
+ b("span", ko, M(l.value), 1),
634
+ b("span", null, M(e.labels.totalUnit), 1)
635
+ ])) : E("", !0),
636
+ e.showLimit ? (r(), v("label", Co, [
637
+ b("span", null, M(e.labels.limit), 1),
637
638
  b("input", {
638
639
  type: "number",
639
640
  value: e.limit,
@@ -641,26 +642,26 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
641
642
  max: e.maxLimit,
642
643
  step: "1",
643
644
  onChange: s
644
- }, null, 40, Co)
645
- ])) : T("", !0),
646
- e.showDownloadPage ? (u(), f("button", {
645
+ }, null, 40, So)
646
+ ])) : E("", !0),
647
+ e.showDownloadPage ? (r(), v("button", {
647
648
  key: 2,
648
649
  type: "button",
649
650
  title: e.labels.downloadPage,
650
651
  "aria-label": e.labels.downloadPage,
651
- onClick: i[1] || (i[1] = (r) => o("emit:downloadPage"))
652
+ onClick: i[1] || (i[1] = (d) => o("emit:downloadPage"))
652
653
  }, [
653
- D(_(_t))
654
- ], 8, So)) : T("", !0),
655
- e.showDownloadAll ? (u(), f("button", {
654
+ I(_(_t))
655
+ ], 8, xo)) : E("", !0),
656
+ e.showDownloadAll ? (r(), v("button", {
656
657
  key: 3,
657
658
  type: "button",
658
659
  title: e.labels.downloadAll,
659
660
  "aria-label": e.labels.downloadAll,
660
- onClick: i[2] || (i[2] = (r) => o("emit:downloadAll"))
661
+ onClick: i[2] || (i[2] = (d) => o("emit:downloadAll"))
661
662
  }, [
662
- D(_($t))
663
- ], 8, xo)) : T("", !0)
663
+ I(_($t))
664
+ ], 8, Po)) : E("", !0)
664
665
  ])
665
666
  ]));
666
667
  }
@@ -672,7 +673,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
672
673
  e = e[o];
673
674
  }
674
675
  return e;
675
- }, $e = (n) => typeof n == "function" ? n() : n ?? "", Ie = (n) => n === !0 || n === "true" || n === "1" || n === "on" || n === 1, Ne = (n) => typeof n == "number" ? n : Number(String(n).replace(/[^+\-\d.]/g, "")), Po = (n, t, e) => {
676
+ }, $e = (n) => typeof n == "function" ? n() : n ?? "", Ie = (n) => n === !0 || n === "true" || n === "1" || n === "on" || n === 1, Ne = (n) => typeof n == "number" ? n : Number(String(n).replace(/[^+\-\d.]/g, "")), Bo = (n, t, e) => {
676
677
  if (n == null && t == null)
677
678
  return 0;
678
679
  if (n == null)
@@ -699,7 +700,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
699
700
  } catch {
700
701
  return "";
701
702
  }
702
- }, Bo = "$index", qe = (n) => {
703
+ }, Lo = "$index", qe = (n) => {
703
704
  const t = [];
704
705
  for (const e of n)
705
706
  if (e.csv === !0)
@@ -708,18 +709,18 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
708
709
  for (const o of e.csv)
709
710
  o.disabled || t.push({ header: e, column: o });
710
711
  return t;
711
- }, Rn = (n) => qe(n).map(({ header: t, column: e }) => $e(e.label ?? t.label)), jn = (n, t, e) => qe(n).map(({ header: o, column: a }) => {
712
+ }, Gn = (n) => qe(n).map(({ header: t, column: e }) => $e(e.label ?? t.label)), Un = (n, t, e) => qe(n).map(({ header: o, column: a }) => {
712
713
  if (a.format)
713
714
  return a.format(t);
714
715
  const l = a.key ?? o.id;
715
- return l === Bo ? e : _e(t, l);
716
- }), Lo = ["rowspan", "colspan", "title", "aria-sort"], To = { class: "dwui-data-table-header" }, Eo = ["role", "tabindex", "onClick", "onKeydown"], Mo = ["innerHTML"], Ao = { key: 2 }, Oo = ["onPointerdown"], Do = {
716
+ return l === Lo ? e : _e(t, l);
717
+ }), To = ["rowspan", "colspan", "title", "aria-sort"], Eo = { class: "dwui-data-table-header" }, Mo = ["role", "tabindex", "onClick", "onKeydown"], Ao = ["innerHTML"], Oo = { key: 2 }, Do = ["onPointerdown"], Io = {
717
718
  key: 0,
718
719
  class: "dwui-data-table-no-data"
719
- }, Io = ["colspan"], No = {
720
+ }, No = ["colspan"], zo = {
720
721
  key: 0,
721
722
  class: "dwui-data-table-loading"
722
- }, Wn = /* @__PURE__ */ O({
723
+ }, Xn = /* @__PURE__ */ A({
723
724
  __name: "data-table",
724
725
  props: {
725
726
  dataList: {},
@@ -751,9 +752,9 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
751
752
  },
752
753
  emits: ["emit:selectRow", "emit:changeSort", "emit:updateHeader", "emit:dblclickRow", "emit:changeLimit", "emit:changePage", "emit:downloadPage", "emit:downloadAll"],
753
754
  setup(n, { expose: t, emit: e }) {
754
- const o = n, a = e, l = ke(Xe, {}), s = B(), p = B(), i = B(), r = B({}), h = B(""), v = B(!1), m = B();
755
+ const o = n, a = e, l = ke(Xe, {}), s = B(), p = B(), i = B(), d = B({}), h = B(""), f = B(!1), m = B();
755
756
  let C;
756
- const P = E(() => o.headers.map((d) => r.value[d.id] == null ? d : { ...d, width: r.value[d.id] })), k = {
757
+ const P = T(() => o.headers.map((c) => d.value[c.id] == null ? c : { ...c, width: d.value[c.id] })), k = {
757
758
  maxLimit: 9999,
758
759
  maxPagination: 7,
759
760
  selectable: !0,
@@ -773,14 +774,14 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
773
774
  tableClass: void 0,
774
775
  tableStyle: void 0,
775
776
  formatTotalCount: void 0
776
- }, c = E(() => {
777
- const d = { ...k };
777
+ }, u = T(() => {
778
+ const c = { ...k };
778
779
  for (const g of [l.dataTable ?? {}, o])
779
780
  for (const y of Object.keys(k))
780
- g[y] !== void 0 && Object.assign(d, { [y]: g[y] });
781
- return d;
782
- }), S = E(() => {
783
- const d = {
781
+ g[y] !== void 0 && Object.assign(c, { [y]: g[y] });
782
+ return c;
783
+ }), S = T(() => {
784
+ const c = {
784
785
  totalCount: "Total",
785
786
  totalUnit: "",
786
787
  limit: "Rows per page",
@@ -797,251 +798,271 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
797
798
  ...l.dataTable?.labels,
798
799
  ...o.labels
799
800
  }, g = {};
800
- for (const y of Object.keys(d)) {
801
- const M = d[y];
802
- g[y] = typeof M == "function" ? M() : M;
801
+ for (const y of Object.keys(c)) {
802
+ const O = c[y];
803
+ g[y] = typeof O == "function" ? O() : O;
803
804
  }
804
805
  return g;
805
- }), w = E(() => Math.min(o.limit, c.value.maxLimit)), N = E(() => ({
806
- showTotal: c.value.showTotal,
807
- showLimit: c.value.showLimit,
808
- showPageSelect: c.value.showPageSelect,
809
- showDownloadPage: c.value.showDownloadPage,
810
- showDownloadAll: c.value.showDownloadAll,
806
+ }), w = T(() => Math.min(o.limit, u.value.maxLimit)), N = T(() => ({
807
+ showTotal: u.value.showTotal,
808
+ showLimit: u.value.showLimit,
809
+ showPageSelect: u.value.showPageSelect,
810
+ showDownloadPage: u.value.showDownloadPage,
811
+ showDownloadAll: u.value.showDownloadAll,
811
812
  current: o.current,
812
813
  limit: w.value,
813
- maxLimit: c.value.maxLimit,
814
- maxPagination: c.value.maxPagination,
814
+ maxLimit: u.value.maxLimit,
815
+ maxPagination: u.value.maxPagination,
815
816
  totalCount: o.totalCount ?? o.dataList.length,
816
- formatTotalCount: c.value.formatTotalCount,
817
+ formatTotalCount: u.value.formatTotalCount,
817
818
  labels: S.value
818
- })), $ = mt(void 0), z = E(() => {
819
- const d = c.value.sortMode === "page" ? o.headers.find((y) => y.id === h.value) : void 0;
820
- if (!d)
819
+ })), $ = mt(void 0), z = T(() => {
820
+ const c = u.value.sortMode === "page" ? o.headers.find((y) => y.id === h.value) : void 0;
821
+ if (!c)
821
822
  return o.dataList;
822
- const g = d.compare ?? ((y, M) => {
823
- const R = d.sortKey ?? d.id;
824
- return Po(_e(y, R), _e(M, R), d.type ?? "string");
823
+ const g = c.compare ?? ((y, O) => {
824
+ const R = c.sortKey ?? c.id;
825
+ return Bo(_e(y, R), _e(O, R), c.type ?? "string");
825
826
  });
826
- return [...o.dataList].sort((y, M) => v.value ? g(M, y) : g(y, M));
827
- }), L = E(() => {
828
- const d = $.value;
829
- if (d == null)
827
+ return [...o.dataList].sort((y, O) => f.value ? g(O, y) : g(y, O));
828
+ }), L = T(() => {
829
+ const c = $.value;
830
+ if (c == null)
830
831
  return -1;
831
- const g = z.value.indexOf(d);
832
+ const g = z.value.indexOf(c);
832
833
  if (g !== -1)
833
834
  return g;
834
- const y = fe(d);
835
- return y === "" ? -1 : z.value.findIndex((M) => fe(M) === y);
836
- }), V = E(() => o.headers.reduce((d, g) => d + (g.colspan == null ? 1 : Number(g.colspan)), 0)), W = (d) => {
837
- if (d != null)
838
- return typeof d == "number" ? `${d}px` : d;
839
- }, q = (d) => ({
840
- width: W(d.width),
841
- minWidth: W(d.minWidth),
842
- maxWidth: W(d.maxWidth)
843
- }), ot = (d) => {
844
- if (h.value === d)
845
- return v.value ? "descending" : "ascending";
846
- }, Se = (d) => {
847
- if (!(!c.value.sortable || h.value !== d))
848
- return v.value ? "down" : "up";
849
- }, nt = (d) => (o.current - 1) * w.value + d + 1, xe = () => Array.from(i.value?.children ?? []).filter((d) => d.tagName === "TR" && !d.classList.contains("dwui-data-table-no-data")), at = (d) => Array.from(d.children).filter((g) => g.tagName === "TD" || g.tagName === "TH"), Pe = () => {
850
- a("emit:updateHeader", P.value.map((d) => ({ ...d })));
835
+ const y = fe(c);
836
+ return y === "" ? -1 : z.value.findIndex((O) => fe(O) === y);
837
+ }), G = T(() => o.headers.reduce((c, g) => c + (g.colspan == null ? 1 : Number(g.colspan)), 0)), K = (c) => {
838
+ if (c != null)
839
+ return typeof c == "number" ? `${c}px` : c;
840
+ }, J = (c) => ({
841
+ width: K(c.width),
842
+ minWidth: K(c.minWidth),
843
+ maxWidth: K(c.maxWidth)
844
+ }), ot = (c) => {
845
+ if (h.value === c)
846
+ return f.value ? "descending" : "ascending";
847
+ }, Se = (c) => {
848
+ if (!(!u.value.sortable || h.value !== c))
849
+ return f.value ? "down" : "up";
850
+ }, nt = (c) => (o.current - 1) * w.value + c + 1, xe = () => Array.from(i.value?.children ?? []).filter((c) => c.tagName === "TR" && !c.classList.contains("dwui-data-table-no-data")), at = (c) => Array.from(c.children).filter((g) => g.tagName === "TD" || g.tagName === "TH"), Pe = () => {
851
+ a("emit:updateHeader", P.value.map((c) => ({ ...c })));
851
852
  }, ge = () => {
852
- xe().forEach((d, g) => d.classList.toggle("dwui-selected", g === L.value));
853
+ xe().forEach((c, g) => c.classList.toggle("dwui-selected", g === L.value));
853
854
  }, lt = () => {
854
- const d = s.value, g = xe()[L.value];
855
- if (!d || !g)
855
+ const c = s.value, g = xe()[L.value];
856
+ if (!c || !g)
856
857
  return;
857
- const y = p.value?.offsetHeight ?? 0, M = g.offsetTop, R = M + g.offsetHeight;
858
- M < d.scrollTop + y ? d.scrollTop = M - y : d.scrollTop + d.clientHeight < R && (d.scrollTop = R - d.clientHeight);
859
- }, ce = (d, g) => {
860
- $.value = d, a("emit:selectRow", d, g);
861
- }, Be = (d, g) => {
862
- c.value.selectable && (g === L.value ? ce(void 0, -1) : (ce(d, g), s.value?.focus({ preventScroll: !0 })));
863
- }, st = (d, g) => {
864
- g !== L.value && Be(d, g), a("emit:dblclickRow", d, g);
865
- }, it = (d) => {
866
- if (d.target !== d.currentTarget || L.value < 0 || d.key !== "ArrowUp" && d.key !== "ArrowDown")
858
+ const y = p.value?.offsetHeight ?? 0, O = g.offsetTop, R = O + g.offsetHeight;
859
+ O < c.scrollTop + y ? c.scrollTop = O - y : c.scrollTop + c.clientHeight < R && (c.scrollTop = R - c.clientHeight);
860
+ }, ce = (c, g) => {
861
+ $.value = c, a("emit:selectRow", c, g);
862
+ }, Be = (c, g) => {
863
+ u.value.selectable && (g === L.value ? ce(void 0, -1) : (ce(c, g), s.value?.focus({ preventScroll: !0 })));
864
+ }, st = (c, g) => {
865
+ g !== L.value && Be(c, g), a("emit:dblclickRow", c, g);
866
+ }, it = (c) => {
867
+ if (c.target !== c.currentTarget || L.value < 0 || c.key !== "ArrowUp" && c.key !== "ArrowDown")
867
868
  return;
868
- const g = L.value + (d.key === "ArrowUp" ? -1 : 1);
869
- g < 0 || z.value.length <= g || (d.preventDefault(), ce(z.value[g], g));
870
- }, be = (d) => {
871
- !c.value.sortable || o.dataList.length === 0 || (v.value = h.value === d.id ? !v.value : !1, h.value = d.id, a("emit:changeSort", {
869
+ const g = L.value + (c.key === "ArrowUp" ? -1 : 1);
870
+ g < 0 || z.value.length <= g || (c.preventDefault(), ce(z.value[g], g));
871
+ }, be = (c) => {
872
+ !u.value.sortable || o.dataList.length === 0 || (f.value = h.value === c.id ? !f.value : !1, h.value = c.id, a("emit:changeSort", {
872
873
  sortKey: h.value,
873
- descending: v.value
874
+ descending: f.value
874
875
  }));
875
- }, rt = (d, g) => {
876
- if (!c.value.resizable)
876
+ }, rt = (c, g) => {
877
+ if (!u.value.resizable)
877
878
  return;
878
- d.preventDefault();
879
- const y = p.value?.firstElementChild, M = y ? at(y) : [];
880
- for (const [R, ne] of M.entries())
881
- r.value[o.headers[R].id] = ne.getBoundingClientRect().width;
882
- m.value = { index: g, x: d.clientX }, d.currentTarget.setPointerCapture(d.pointerId), Pe();
883
- }, dt = (d) => {
879
+ c.preventDefault();
880
+ const y = p.value?.firstElementChild, O = y ? at(y) : [];
881
+ for (const [R, ne] of O.entries())
882
+ d.value[o.headers[R].id] = ne.getBoundingClientRect().width;
883
+ m.value = { index: g, x: c.clientX }, c.currentTarget.setPointerCapture(c.pointerId), Pe();
884
+ }, dt = (c) => {
884
885
  if (!m.value)
885
886
  return;
886
- const g = d.clientX - m.value.x;
887
+ const g = c.clientX - m.value.x;
887
888
  if (g === 0)
888
889
  return;
889
- m.value.x = d.clientX;
890
- const y = m.value.index, M = o.headers.map((ne) => ne.id);
891
- r.value[M[y]] += g;
892
- const R = g / (M.length - y - 1);
893
- for (const ne of M.slice(y + 1))
894
- r.value[ne] -= R;
890
+ m.value.x = c.clientX;
891
+ const y = m.value.index, O = o.headers.map((ne) => ne.id);
892
+ d.value[O[y]] += g;
893
+ const R = g / (O.length - y - 1);
894
+ for (const ne of O.slice(y + 1))
895
+ d.value[ne] -= R;
895
896
  }, Le = () => {
896
897
  m.value && (m.value = void 0, Pe());
897
898
  };
898
899
  return X(() => {
899
900
  C = new MutationObserver(ge), i.value && C.observe(i.value, { childList: !0 }), ge();
900
- }), G(() => {
901
+ }), U(() => {
901
902
  C?.disconnect();
902
- }), Y(() => o.headers, (d, g) => {
903
- const y = d.map((R) => R.id), M = g.map((R) => R.id);
904
- (y.length !== M.length || y.some((R) => !M.includes(R))) && (r.value = {});
905
- }), Y(() => o.loading, (d, g) => {
906
- g && !d && (c.value.sortMode === "page" && (h.value = "", v.value = !1), $.value != null && ce(void 0, -1));
907
- }), Y(L, (d) => {
908
- 0 <= d && lt();
903
+ }), Y(() => o.headers, (c, g) => {
904
+ const y = c.map((R) => R.id), O = g.map((R) => R.id);
905
+ (y.length !== O.length || y.some((R) => !O.includes(R))) && (d.value = {});
906
+ }), Y(() => o.loading, (c, g) => {
907
+ g && !c && (u.value.sortMode === "page" && (h.value = "", f.value = !1), $.value != null && ce(void 0, -1));
908
+ }), Y(L, (c) => {
909
+ 0 <= c && lt();
909
910
  }, { flush: "post" }), Y(L, ge, { flush: "post" }), t({
910
911
  /** ソートの状態を返す */
911
912
  getSortContext: () => ({
912
913
  sortKey: h.value,
913
- descending: v.value
914
+ descending: f.value
914
915
  })
915
- }), (d, g) => (u(), f("section", {
916
- class: I(["dwui-data-table", { "dwui-selectable": c.value.selectable }])
916
+ }), (c, g) => (r(), v("section", {
917
+ class: D(["dwui-data-table", { "dwui-selectable": u.value.selectable }])
917
918
  }, [
918
- c.value.controls === "both" || c.value.controls === "top" ? (u(), j(De, le({ key: 0 }, N.value, {
919
- pagination: c.value.pagination === "both" || c.value.pagination === "top",
919
+ u.value.controls === "both" || u.value.controls === "top" ? (r(), W(De, le({ key: 0 }, N.value, {
920
+ pagination: u.value.pagination === "both" || u.value.pagination === "top",
920
921
  "onEmit:changePage": g[0] || (g[0] = (y) => a("emit:changePage", y)),
921
922
  "onEmit:changeLimit": g[1] || (g[1] = (y) => a("emit:changeLimit", y)),
922
923
  "onEmit:downloadPage": g[2] || (g[2] = (y) => a("emit:downloadPage")),
923
924
  "onEmit:downloadAll": g[3] || (g[3] = (y) => a("emit:downloadAll"))
924
- }), null, 16, ["pagination"])) : T("", !0),
925
+ }), null, 16, ["pagination"])) : E("", !0),
925
926
  b("div", {
926
927
  ref_key: "refContent",
927
928
  ref: s,
928
- class: I(["dwui-data-table-content", [{ "dwui-loading": o.loading }, c.value.contentClass]]),
929
- style: F(c.value.contentStyle),
929
+ class: D(["dwui-data-table-content", [{ "dwui-loading": o.loading }, u.value.contentClass]]),
930
+ style: F(u.value.contentStyle),
930
931
  tabindex: "-1",
931
932
  onKeydown: it
932
933
  }, [
933
934
  b("table", {
934
- class: I(c.value.tableClass),
935
- style: F(c.value.tableStyle)
935
+ class: D(u.value.tableClass),
936
+ style: F(u.value.tableStyle)
936
937
  }, [
937
938
  b("thead", {
938
939
  ref_key: "refThead",
939
940
  ref: p
940
941
  }, [
941
942
  b("tr", null, [
942
- (u(!0), f(K, null, U(P.value, (y, M) => (u(), f("th", {
943
+ (r(!0), v(j, null, V(P.value, (y, O) => (r(), v("th", {
943
944
  key: y.id,
944
945
  rowspan: y.rowspan,
945
946
  colspan: y.colspan,
946
947
  title: y.title,
947
- style: F(q(y)),
948
+ style: F(J(y)),
948
949
  "aria-sort": ot(y.id),
949
950
  scope: "col"
950
951
  }, [
951
- b("div", To, [
952
+ b("div", Eo, [
952
953
  b("span", {
953
954
  class: "dwui-data-table-sort",
954
- role: c.value.sortable ? "button" : void 0,
955
- tabindex: c.value.sortable ? 0 : void 0,
955
+ role: u.value.sortable ? "button" : void 0,
956
+ tabindex: u.value.sortable ? 0 : void 0,
956
957
  onClick: (R) => be(y),
957
958
  onKeydown: [
958
959
  we(ee((R) => be(y), ["prevent"]), ["enter"]),
959
960
  we(ee((R) => be(y), ["prevent"]), ["space"])
960
961
  ]
961
962
  }, [
962
- Se(y.id) ? (u(), j(_(kt), {
963
+ Se(y.id) ? (r(), W(_(kt), {
963
964
  key: 0,
964
965
  direction: Se(y.id),
965
966
  size: "0.7em"
966
- }, null, 8, ["direction"])) : T("", !0),
967
- y.html ? (u(), f("span", {
967
+ }, null, 8, ["direction"])) : E("", !0),
968
+ y.html ? (r(), v("span", {
968
969
  key: 1,
969
970
  innerHTML: _($e)(y.label)
970
- }, null, 8, Mo)) : (u(), f("span", Ao, A(_($e)(y.label)), 1))
971
- ], 40, Eo)
971
+ }, null, 8, Ao)) : (r(), v("span", Oo, M(_($e)(y.label)), 1))
972
+ ], 40, Mo)
972
973
  ]),
973
- c.value.resizable && M < P.value.length - 1 ? (u(), f("div", {
974
+ u.value.resizable && O < P.value.length - 1 ? (r(), v("div", {
974
975
  key: 0,
975
976
  class: "dwui-data-table-resizer",
976
- onPointerdown: (R) => rt(R, M),
977
+ onPointerdown: (R) => rt(R, O),
977
978
  onPointermove: dt,
978
979
  onPointerup: Le,
979
980
  onPointercancel: Le
980
- }, null, 40, Oo)) : T("", !0)
981
- ], 12, Lo))), 128))
981
+ }, null, 40, Do)) : E("", !0)
982
+ ], 12, To))), 128))
982
983
  ])
983
984
  ], 512),
984
985
  b("tbody", {
985
986
  ref_key: "refTbody",
986
987
  ref: i
987
988
  }, [
988
- o.loading ? T("", !0) : (u(), f(K, { key: 0 }, [
989
- x(d.$slots, "default", {
989
+ o.loading ? E("", !0) : (r(), v(j, { key: 0 }, [
990
+ x(c.$slots, "default", {
990
991
  rows: z.value,
991
992
  clickRow: Be,
992
993
  dblclickRow: st,
993
994
  rowNumber: nt,
994
995
  selectedIndex: L.value
995
996
  }),
996
- o.dataList.length === 0 && c.value.showNoData ? (u(), f("tr", Do, [
997
- b("td", { colspan: V.value }, A(S.value.noData), 9, Io)
998
- ])) : T("", !0)
997
+ o.dataList.length === 0 && u.value.showNoData ? (r(), v("tr", Io, [
998
+ b("td", { colspan: G.value }, M(S.value.noData), 9, No)
999
+ ])) : E("", !0)
999
1000
  ], 64))
1000
1001
  ], 512)
1001
1002
  ], 6),
1002
- o.loading ? (u(), f("div", No, [
1003
- x(d.$slots, "loading", {}, () => [
1003
+ o.loading ? (r(), v("div", zo, [
1004
+ x(c.$slots, "loading", {}, () => [
1004
1005
  g[8] || (g[8] = b("div", { class: "dwui-data-table-loading-spinner" }, null, -1))
1005
1006
  ])
1006
- ])) : T("", !0)
1007
+ ])) : E("", !0)
1007
1008
  ], 38),
1008
- c.value.controls === "both" || c.value.controls === "bottom" ? (u(), j(De, le({ key: 1 }, N.value, {
1009
- pagination: c.value.pagination === "both" || c.value.pagination === "bottom",
1009
+ u.value.controls === "both" || u.value.controls === "bottom" ? (r(), W(De, le({ key: 1 }, N.value, {
1010
+ pagination: u.value.pagination === "both" || u.value.pagination === "bottom",
1010
1011
  "onEmit:changePage": g[4] || (g[4] = (y) => a("emit:changePage", y)),
1011
1012
  "onEmit:changeLimit": g[5] || (g[5] = (y) => a("emit:changeLimit", y)),
1012
1013
  "onEmit:downloadPage": g[6] || (g[6] = (y) => a("emit:downloadPage")),
1013
1014
  "onEmit:downloadAll": g[7] || (g[7] = (y) => a("emit:downloadAll"))
1014
- }), null, 16, ["pagination"])) : T("", !0)
1015
+ }), null, 16, ["pagination"])) : E("", !0)
1015
1016
  ], 2));
1016
1017
  }
1018
+ }), Ho = { class: "dwui-diff-text" }, Ro = ["textContent"], Yn = /* @__PURE__ */ A({
1019
+ __name: "diff-text",
1020
+ props: {
1021
+ before: {},
1022
+ after: {},
1023
+ ignoreCase: { type: Boolean }
1024
+ },
1025
+ setup(n) {
1026
+ const t = n, e = T(() => Ot(t.before ?? "", t.after ?? "", { ignoreCase: t.ignoreCase }).map((o) => ({
1027
+ type: o.added ? "added" : o.removed ? "removed" : "same",
1028
+ value: o.value
1029
+ })));
1030
+ return (o, a) => (r(), v("span", Ho, [
1031
+ (r(!0), v(j, null, V(e.value, (l, s) => (r(), v("span", {
1032
+ key: s,
1033
+ class: D(`dwui-diff-text-${l.type}`),
1034
+ textContent: M(l.value)
1035
+ }, null, 10, Ro))), 128))
1036
+ ]));
1037
+ }
1017
1038
  }), ze = {
1018
1039
  top: "bottom",
1019
1040
  bottom: "top",
1020
1041
  left: "right",
1021
1042
  right: "left"
1022
- }, he = (n, t, e) => Math.min(Math.max(n, t), e), zo = (n, t, e, o) => {
1023
- const { offset: a, margin: l, arrowMargin: s } = o, [p, i = "center"] = o.placement.split("-"), r = p === "top" || p === "bottom", h = n.top + n.height, v = n.left + n.width, m = {
1043
+ }, he = (n, t, e) => Math.min(Math.max(n, t), e), jo = (n, t, e, o) => {
1044
+ const { offset: a, margin: l, arrowMargin: s } = o, [p, i = "center"] = o.placement.split("-"), d = p === "top" || p === "bottom", h = n.top + n.height, f = n.left + n.width, m = {
1024
1045
  top: n.top - l,
1025
1046
  bottom: e.height - h - l,
1026
1047
  left: n.left - l,
1027
- right: e.width - v - l
1028
- }, k = (r ? t.height : t.width) + a <= m[p] || m[ze[p]] <= m[p] ? p : ze[p];
1029
- let c;
1048
+ right: e.width - f - l
1049
+ }, k = (d ? t.height : t.width) + a <= m[p] || m[ze[p]] <= m[p] ? p : ze[p];
1050
+ let u;
1030
1051
  switch (k) {
1031
1052
  case "top":
1032
- c = n.top - a - t.height;
1053
+ u = n.top - a - t.height;
1033
1054
  break;
1034
1055
  case "bottom":
1035
- c = h + a;
1056
+ u = h + a;
1036
1057
  break;
1037
1058
  case "left":
1038
- c = n.left - a - t.width;
1059
+ u = n.left - a - t.width;
1039
1060
  break;
1040
1061
  default:
1041
- c = v + a;
1062
+ u = f + a;
1042
1063
  break;
1043
1064
  }
1044
- const S = r ? n.left : n.top, w = r ? n.width : n.height, N = r ? t.width : t.height;
1065
+ const S = d ? n.left : n.top, w = d ? n.width : n.height, N = d ? t.width : t.height;
1045
1066
  let $;
1046
1067
  switch (i) {
1047
1068
  case "start":
@@ -1054,9 +1075,9 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1054
1075
  $ = S + (w - N) / 2;
1055
1076
  break;
1056
1077
  }
1057
- const z = he(r ? c : $, l, Math.max(l, e.height - l - t.height)), L = he(r ? $ : c, l, Math.max(l, e.width - l - t.width)), V = S + w / 2, q = he(V - (r ? L : z), s, Math.max(s, N - s));
1058
- return { top: z, left: L, side: k, arrow: q };
1059
- }, Ho = ["popover", "data-side"], Ro = { class: "dwui-anchored-popover-content" }, He = 4, jo = 7, Wo = 12, Ko = 8, Je = /* @__PURE__ */ O({
1078
+ const z = he(d ? u : $, l, Math.max(l, e.height - l - t.height)), L = he(d ? $ : u, l, Math.max(l, e.width - l - t.width)), G = S + w / 2, J = he(G - (d ? L : z), s, Math.max(s, N - s));
1079
+ return { top: z, left: L, side: k, arrow: J };
1080
+ }, Wo = ["popover", "data-side"], Ko = { class: "dwui-anchored-popover-content" }, He = 4, Fo = 7, Vo = 12, Go = 8, Je = /* @__PURE__ */ A({
1060
1081
  __name: "anchored-popover",
1061
1082
  props: {
1062
1083
  anchor: {},
@@ -1070,46 +1091,46 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1070
1091
  l.value?.hidePopover();
1071
1092
  }, i = () => {
1072
1093
  l.value?.showPopover();
1073
- }, r = () => {
1094
+ }, d = () => {
1074
1095
  const m = l.value;
1075
1096
  if (!o.anchor || !m)
1076
1097
  return;
1077
1098
  const C = {
1078
1099
  width: document.documentElement.clientWidth,
1079
1100
  height: document.documentElement.clientHeight
1080
- }, P = zo(o.anchor.getBoundingClientRect(), m.getBoundingClientRect(), C, {
1101
+ }, P = jo(o.anchor.getBoundingClientRect(), m.getBoundingClientRect(), C, {
1081
1102
  placement: o.placement,
1082
- offset: o.arrow ? He + jo : He,
1083
- margin: Ko,
1084
- arrowMargin: Wo
1103
+ offset: o.arrow ? He + Fo : He,
1104
+ margin: Go,
1105
+ arrowMargin: Vo
1085
1106
  });
1086
1107
  s.value = P.side, m.style.top = `${P.top}px`, m.style.left = `${P.left}px`, m.style.setProperty("--dwui-offset-arrow", `${P.arrow}px`), m.style.visibility = "visible";
1087
1108
  }, h = (m) => {
1088
- l.value?.contains(m.target) || r();
1089
- }, v = (m) => {
1090
- m.newState === "open" ? (r(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", r), a("emit:open")) : (l.value && (l.value.style.visibility = ""), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", r), a("emit:close"));
1109
+ l.value?.contains(m.target) || d();
1110
+ }, f = (m) => {
1111
+ m.newState === "open" ? (d(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", d), a("emit:open")) : (l.value && (l.value.style.visibility = ""), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", d), a("emit:close"));
1091
1112
  };
1092
- return G(() => {
1093
- window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", r);
1113
+ return U(() => {
1114
+ window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", d);
1094
1115
  }), t({
1095
1116
  /** パネルの要素。invoker の設定や、要素がパネルの中かの判定に使う */
1096
1117
  element: l,
1097
1118
  show: i,
1098
1119
  hide: p
1099
- }), (m, C) => (u(), f("div", {
1120
+ }), (m, C) => (r(), v("div", {
1100
1121
  ref_key: "refPanel",
1101
1122
  ref: l,
1102
- class: I(["dwui-anchored-popover", { "dwui-arrow": o.arrow }]),
1123
+ class: D(["dwui-anchored-popover", { "dwui-arrow": o.arrow }]),
1103
1124
  popover: o.mode,
1104
1125
  "data-side": s.value,
1105
- onToggle: v
1126
+ onToggle: f
1106
1127
  }, [
1107
- b("div", Ro, [
1128
+ b("div", Ko, [
1108
1129
  x(m.$slots, "default")
1109
1130
  ])
1110
- ], 42, Ho));
1131
+ ], 42, Wo));
1111
1132
  }
1112
- }), Fo = ["aria-label"], Kn = /* @__PURE__ */ O({
1133
+ }), Uo = ["aria-label"], qn = /* @__PURE__ */ A({
1113
1134
  inheritAttrs: !1,
1114
1135
  __name: "help-button",
1115
1136
  props: {
@@ -1123,7 +1144,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1123
1144
  return X(() => {
1124
1145
  const p = s.value?.element;
1125
1146
  l.value && p && (l.value.popoverTargetElement = p);
1126
- }), (p, i) => (u(), f(K, null, [
1147
+ }), (p, i) => (r(), v(j, null, [
1127
1148
  b("button", le({
1128
1149
  ref_key: "refButton",
1129
1150
  ref: l,
@@ -1132,10 +1153,10 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1132
1153
  "aria-label": e.label
1133
1154
  }, _(a)), [
1134
1155
  x(p.$slots, "icon", {}, () => [
1135
- D(_(Ce))
1156
+ I(_(Ce))
1136
1157
  ])
1137
- ], 16, Fo),
1138
- D(Je, {
1158
+ ], 16, Uo),
1159
+ I(Je, {
1139
1160
  ref_key: "refPopover",
1140
1161
  ref: s,
1141
1162
  class: "dwui-help-button-popover",
@@ -1143,8 +1164,8 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1143
1164
  anchor: l.value,
1144
1165
  placement: e.placement,
1145
1166
  arrow: e.arrow,
1146
- "onEmit:open": i[0] || (i[0] = (r) => o("emit:open")),
1147
- "onEmit:close": i[1] || (i[1] = (r) => o("emit:close"))
1167
+ "onEmit:open": i[0] || (i[0] = (d) => o("emit:open")),
1168
+ "onEmit:close": i[1] || (i[1] = (d) => o("emit:close"))
1148
1169
  }, {
1149
1170
  default: H(() => [
1150
1171
  x(p.$slots, "default")
@@ -1153,7 +1174,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1153
1174
  }, 8, ["anchor", "placement", "arrow"])
1154
1175
  ], 64));
1155
1176
  }
1156
- }), Vo = ["aria-label", "aria-describedby"], Go = 150, Ze = /* @__PURE__ */ O({
1177
+ }), Xo = ["aria-label", "aria-describedby"], Yo = 150, Ze = /* @__PURE__ */ A({
1157
1178
  inheritAttrs: !1,
1158
1179
  __name: "icon-popper",
1159
1180
  props: {
@@ -1165,42 +1186,42 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1165
1186
  emits: ["emit:open", "emit:close"],
1166
1187
  setup(n, { emit: t }) {
1167
1188
  const e = n, o = t, a = Fe(), l = B(), s = B(), p = B(!1), i = se();
1168
- let r;
1189
+ let d;
1169
1190
  const h = () => {
1170
- r !== void 0 && (clearTimeout(r), r = void 0);
1171
- }, v = () => {
1191
+ d !== void 0 && (clearTimeout(d), d = void 0);
1192
+ }, f = () => {
1172
1193
  h(), s.value?.show();
1173
1194
  }, m = () => {
1174
1195
  h(), s.value?.hide();
1175
1196
  }, C = () => {
1176
- h(), r = setTimeout(() => {
1177
- r = void 0, s.value?.hide();
1178
- }, Go);
1179
- }, P = (W) => {
1180
- const q = W.target;
1181
- !l.value?.contains(q) && !s.value?.element?.contains(q) && m();
1182
- }, k = (W) => {
1183
- W.pointerType !== "touch" && v();
1184
- }, c = (W) => {
1185
- W.pointerType !== "touch" && C();
1186
- }, S = (W) => {
1187
- W.pointerType !== "touch" && h();
1188
- }, w = (W) => {
1189
- W.pointerType === "touch" && (p.value ? m() : v());
1197
+ h(), d = setTimeout(() => {
1198
+ d = void 0, s.value?.hide();
1199
+ }, Yo);
1200
+ }, P = (K) => {
1201
+ const J = K.target;
1202
+ !l.value?.contains(J) && !s.value?.element?.contains(J) && m();
1203
+ }, k = (K) => {
1204
+ K.pointerType !== "touch" && f();
1205
+ }, u = (K) => {
1206
+ K.pointerType !== "touch" && C();
1207
+ }, S = (K) => {
1208
+ K.pointerType !== "touch" && h();
1209
+ }, w = (K) => {
1210
+ K.pointerType === "touch" && (p.value ? m() : f());
1190
1211
  }, N = () => {
1191
- v();
1212
+ f();
1192
1213
  }, $ = () => {
1193
1214
  m();
1194
1215
  }, z = () => {
1195
1216
  m();
1196
1217
  }, L = () => {
1197
1218
  p.value = !0, document.addEventListener("pointerdown", P, !0), o("emit:open");
1198
- }, V = () => {
1219
+ }, G = () => {
1199
1220
  p.value = !1, document.removeEventListener("pointerdown", P, !0), o("emit:close");
1200
1221
  };
1201
- return G(() => {
1222
+ return U(() => {
1202
1223
  h(), document.removeEventListener("pointerdown", P, !0);
1203
- }), (W, q) => (u(), f(K, null, [
1224
+ }), (K, J) => (r(), v(j, null, [
1204
1225
  b("span", le({
1205
1226
  ref_key: "refTrigger",
1206
1227
  ref: l,
@@ -1210,37 +1231,37 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1210
1231
  "aria-describedby": _(i)
1211
1232
  }, _(a), {
1212
1233
  onPointerenter: k,
1213
- onPointerleave: c,
1234
+ onPointerleave: u,
1214
1235
  onPointerdown: w,
1215
1236
  onFocus: N,
1216
1237
  onBlur: $,
1217
1238
  onKeydown: we(z, ["esc"])
1218
1239
  }), [
1219
- x(W.$slots, "icon")
1220
- ], 16, Vo),
1221
- D(Je, {
1240
+ x(K.$slots, "icon")
1241
+ ], 16, Xo),
1242
+ I(Je, {
1222
1243
  ref_key: "refPopover",
1223
1244
  ref: s,
1224
1245
  id: _(i),
1225
- class: I(["dwui-icon-popper-popover", e.popoverClass]),
1246
+ class: D(["dwui-icon-popper-popover", e.popoverClass]),
1226
1247
  role: "tooltip",
1227
1248
  mode: "manual",
1228
1249
  anchor: l.value,
1229
1250
  placement: e.placement,
1230
1251
  arrow: e.arrow,
1231
1252
  onPointerenter: S,
1232
- onPointerleave: c,
1253
+ onPointerleave: u,
1233
1254
  "onEmit:open": L,
1234
- "onEmit:close": V
1255
+ "onEmit:close": G
1235
1256
  }, {
1236
1257
  default: H(() => [
1237
- x(W.$slots, "default")
1258
+ x(K.$slots, "default")
1238
1259
  ]),
1239
1260
  _: 3
1240
1261
  }, 8, ["id", "class", "anchor", "placement", "arrow"])
1241
1262
  ], 64));
1242
1263
  }
1243
- }), Fn = /* @__PURE__ */ O({
1264
+ }), Jn = /* @__PURE__ */ A({
1244
1265
  __name: "help-popper",
1245
1266
  props: {
1246
1267
  placement: { default: "right" },
@@ -1250,7 +1271,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1250
1271
  emits: ["emit:open", "emit:close"],
1251
1272
  setup(n, { emit: t }) {
1252
1273
  const e = n, o = t;
1253
- return (a, l) => (u(), j(Ze, {
1274
+ return (a, l) => (r(), W(Ze, {
1254
1275
  class: "dwui-help-popper",
1255
1276
  "popover-class": "dwui-help-popper-popover",
1256
1277
  placement: e.placement,
@@ -1261,7 +1282,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1261
1282
  }, {
1262
1283
  icon: H(() => [
1263
1284
  x(a.$slots, "icon", {}, () => [
1264
- D(_(Ce))
1285
+ I(_(Ce))
1265
1286
  ])
1266
1287
  ]),
1267
1288
  default: H(() => [
@@ -1270,7 +1291,33 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1270
1291
  _: 3
1271
1292
  }, 8, ["placement", "arrow", "label"]));
1272
1293
  }
1273
- }), Vn = /* @__PURE__ */ O({
1294
+ }), qo = { class: "dwui-highlight-text" }, Jo = { key: 0 }, Zn = /* @__PURE__ */ A({
1295
+ __name: "highlight-text",
1296
+ props: {
1297
+ text: {},
1298
+ word: {},
1299
+ ignoreCase: { type: Boolean }
1300
+ },
1301
+ setup(n) {
1302
+ const t = n, e = T(() => {
1303
+ const o = t.text ?? "";
1304
+ if (!t.word)
1305
+ return [{ text: o, match: !1 }];
1306
+ const a = t.word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1307
+ return o.split(new RegExp(`(${a})`, t.ignoreCase ? "i" : "")).map((l, s) => ({
1308
+ text: l,
1309
+ match: s % 2 === 1
1310
+ }));
1311
+ });
1312
+ return (o, a) => (r(), v("span", qo, [
1313
+ (r(!0), v(j, null, V(e.value, (l, s) => (r(), v(j, { key: s }, [
1314
+ l.match ? (r(), v("mark", Jo, M(l.text), 1)) : (r(), v(j, { key: 1 }, [
1315
+ q(M(l.text), 1)
1316
+ ], 64))
1317
+ ], 64))), 128))
1318
+ ]));
1319
+ }
1320
+ }), Qn = /* @__PURE__ */ A({
1274
1321
  __name: "hourglass-loading",
1275
1322
  props: {
1276
1323
  loading: { type: Boolean },
@@ -1279,14 +1326,14 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1279
1326
  },
1280
1327
  setup(n) {
1281
1328
  const t = n;
1282
- return (e, o) => t.loading ? (u(), j(_(Ct), {
1329
+ return (e, o) => t.loading ? (r(), W(_(Ct), {
1283
1330
  key: 0,
1284
1331
  duration: t.duration,
1285
1332
  size: t.size,
1286
1333
  class: "dwui-hourglass-loading"
1287
1334
  }, null, 8, ["duration", "size"])) : x(e.$slots, "default", {}, void 0, void 0, 1);
1288
1335
  }
1289
- }), Gn = /* @__PURE__ */ O({
1336
+ }), ea = /* @__PURE__ */ A({
1290
1337
  __name: "intersection-lazy-component",
1291
1338
  props: {
1292
1339
  root: {},
@@ -1299,7 +1346,7 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1299
1346
  let s;
1300
1347
  const p = () => {
1301
1348
  s?.disconnect(), s = void 0, !(!a.value || l.value) && (s = new IntersectionObserver((i) => {
1302
- i.some((r) => r.isIntersecting) && (l.value = !0, s?.disconnect(), s = void 0, o("emit:visible"));
1349
+ i.some((d) => d.isIntersecting) && (l.value = !0, s?.disconnect(), s = void 0, o("emit:visible"));
1303
1350
  }, {
1304
1351
  root: e.root,
1305
1352
  rootMargin: e.rootMargin,
@@ -1308,11 +1355,11 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1308
1355
  };
1309
1356
  return X(() => {
1310
1357
  p();
1311
- }), G(() => {
1358
+ }), U(() => {
1312
1359
  s?.disconnect();
1313
1360
  }), Y(() => [e.root, e.rootMargin, e.threshold], () => {
1314
1361
  p();
1315
- }, { flush: "post" }), (i, r) => (u(), f("div", {
1362
+ }, { flush: "post" }), (i, d) => (r(), v("div", {
1316
1363
  ref_key: "refTarget",
1317
1364
  ref: a,
1318
1365
  class: "dwui-intersection-lazy-component"
@@ -1320,10 +1367,10 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1320
1367
  l.value ? x(i.$slots, "default", {}, void 0, void 0, 0) : x(i.$slots, "placeholder", {}, void 0, void 0, 1)
1321
1368
  ], 512));
1322
1369
  }
1323
- }), Uo = {
1370
+ }), Zo = {
1324
1371
  type: "button",
1325
1372
  class: "dwui-label-button"
1326
- }, Un = /* @__PURE__ */ O({
1373
+ }, ta = /* @__PURE__ */ A({
1327
1374
  __name: "label-button",
1328
1375
  props: {
1329
1376
  preset: {},
@@ -1334,9 +1381,9 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1334
1381
  labelStyle: { type: [Boolean, null, String, Object, Array] }
1335
1382
  },
1336
1383
  setup(n) {
1337
- const t = n, e = Z();
1338
- return (o, a) => (u(), f("button", Uo, [
1339
- D(oe, {
1384
+ const t = n, e = Q();
1385
+ return (o, a) => (r(), v("button", Zo, [
1386
+ I(oe, {
1340
1387
  preset: t.preset,
1341
1388
  gap: t.gap,
1342
1389
  "icon-class": t.iconClass,
@@ -1361,12 +1408,12 @@ const eo = ["aria-label"], zn = /* @__PURE__ */ O({
1361
1408
  ]), 1032, ["preset", "gap", "icon-class", "icon-style", "label-class", "label-style"])
1362
1409
  ]));
1363
1410
  }
1364
- }), Xo = /^\s*[[{]/;
1365
- function Yo(n) {
1411
+ }), Qo = /^\s*[[{]/;
1412
+ function en(n) {
1366
1413
  return typeof n == "string" ? n : n instanceof Error ? String(n) : ie(n, 0, "", []) ?? String(n);
1367
1414
  }
1368
- function qo(n) {
1369
- if (Xo.test(n))
1415
+ function tn(n) {
1416
+ if (Qo.test(n))
1370
1417
  try {
1371
1418
  const t = JSON.parse(n);
1372
1419
  return typeof t == "object" && t !== null ? t : void 0;
@@ -1377,7 +1424,7 @@ function qo(n) {
1377
1424
  function ie(n, t, e, o) {
1378
1425
  switch (typeof n) {
1379
1426
  case "string": {
1380
- const a = qo(n);
1427
+ const a = tn(n);
1381
1428
  return a === void 0 ? `"${n}"` : ie(a, t, e, o);
1382
1429
  }
1383
1430
  case "number":
@@ -1397,7 +1444,7 @@ function ie(n, t, e, o) {
1397
1444
  return '"[Circular]"';
1398
1445
  o.push(n);
1399
1446
  try {
1400
- return Jo(n, t, o);
1447
+ return on(n, t, o);
1401
1448
  } finally {
1402
1449
  o.pop();
1403
1450
  }
@@ -1406,15 +1453,15 @@ function ie(n, t, e, o) {
1406
1453
  return;
1407
1454
  }
1408
1455
  }
1409
- function Jo(n, t, e) {
1456
+ function on(n, t, e) {
1410
1457
  const o = Array.isArray(n), a = [];
1411
1458
  if (o)
1412
- for (let r = 0; r < n.length; r++)
1413
- a.push(ie(n[r], t + 1, String(r), e) ?? "null");
1459
+ for (let d = 0; d < n.length; d++)
1460
+ a.push(ie(n[d], t + 1, String(d), e) ?? "null");
1414
1461
  else
1415
- for (const [r, h] of Object.entries(n)) {
1416
- const v = ie(h, t + 1, r, e);
1417
- v !== void 0 && a.push(`"${r}": ${v}`);
1462
+ for (const [d, h] of Object.entries(n)) {
1463
+ const f = ie(h, t + 1, d, e);
1464
+ f !== void 0 && a.push(`"${d}": ${f}`);
1418
1465
  }
1419
1466
  const [l, s] = o ? ["[", "]"] : ["{", "}"];
1420
1467
  if (a.length === 0)
@@ -1425,12 +1472,12 @@ ${p}${a.join(`,
1425
1472
  ${p}`)}
1426
1473
  ${i}${s}`;
1427
1474
  }
1428
- const Zo = ["aria-labelledby", "aria-describedby"], Qo = { class: "dwui-modal-dialog-header" }, en = { class: "dwui-modal-dialog-icon" }, tn = ["id", "innerHTML"], on = ["id"], nn = ["id"], an = { key: 0 }, ln = ["innerHTML"], sn = { key: 2 }, rn = {
1475
+ const nn = ["aria-labelledby", "aria-describedby"], an = { class: "dwui-modal-dialog-header" }, ln = { class: "dwui-modal-dialog-icon" }, sn = ["id", "innerHTML"], rn = ["id"], dn = ["id"], cn = { key: 0 }, un = ["innerHTML"], pn = { key: 2 }, mn = {
1429
1476
  key: 0,
1430
1477
  class: "dwui-modal-dialog-images"
1431
- }, dn = ["src", "alt"], cn = ["onClick"], Xn = /* @__PURE__ */ O({
1478
+ }, vn = ["src", "alt"], fn = ["onClick"], oa = /* @__PURE__ */ A({
1432
1479
  __name: "modal-dialog",
1433
- props: /* @__PURE__ */ J({
1480
+ props: /* @__PURE__ */ Z({
1434
1481
  type: { default: "info" },
1435
1482
  title: { default: void 0 },
1436
1483
  message: { default: void 0 },
@@ -1445,24 +1492,24 @@ const Zo = ["aria-labelledby", "aria-describedby"], Qo = { class: "dwui-modal-di
1445
1492
  open: { type: Boolean, default: !1 },
1446
1493
  openModifiers: {}
1447
1494
  }),
1448
- emits: /* @__PURE__ */ J(["emit:close"], ["update:open"]),
1495
+ emits: /* @__PURE__ */ Z(["emit:close"], ["update:open"]),
1449
1496
  setup(n, { emit: t }) {
1450
- const e = n, o = t, a = re(n, "open"), l = B(), s = B(), p = se(), i = se(), r = {
1497
+ const e = n, o = t, a = re(n, "open"), l = B(), s = B(), p = se(), i = se(), d = {
1451
1498
  info: xt,
1452
1499
  confirm: Ce,
1453
1500
  warn: Ge,
1454
1501
  error: St
1455
- }, h = ["cancel", "no", "yes", "ok"], v = E(() => e.buttons ?? (e.type === "confirm" ? ["yes", "no"] : ["ok"])), m = E(() => ({
1502
+ }, h = ["cancel", "no", "yes", "ok"], f = T(() => e.buttons ?? (e.type === "confirm" ? ["yes", "no"] : ["ok"])), m = T(() => ({
1456
1503
  ok: e.okLabel,
1457
1504
  yes: e.yesLabel,
1458
1505
  no: e.noLabel,
1459
1506
  cancel: e.cancelLabel
1460
- })), C = E(() => e.message == null ? [] : [e.message].flat()), P = E(() => [e.image ?? []].flat().map(($) => typeof $ == "string" ? {
1507
+ })), C = T(() => e.message == null ? [] : [e.message].flat()), P = T(() => [e.image ?? []].flat().map(($) => typeof $ == "string" ? {
1461
1508
  src: $,
1462
1509
  alt: ""
1463
1510
  } : $)), k = ($) => {
1464
1511
  N($);
1465
- }, c = ($) => {
1512
+ }, u = ($) => {
1466
1513
  $.preventDefault(), N("cancel");
1467
1514
  }, S = ($) => {
1468
1515
  if ($.key !== "ArrowLeft" && $.key !== "ArrowRight")
@@ -1471,7 +1518,7 @@ const Zo = ["aria-labelledby", "aria-describedby"], Qo = { class: "dwui-modal-di
1471
1518
  L < 0 || z[$.key === "ArrowRight" ? L + 1 : L - 1]?.focus();
1472
1519
  }, w = () => {
1473
1520
  l.value?.showModal();
1474
- const $ = h.find((L) => v.value.includes(L)), z = $ ? v.value.indexOf($) : -1;
1521
+ const $ = h.find((L) => f.value.includes(L)), z = $ ? f.value.indexOf($) : -1;
1475
1522
  s.value?.children[z]?.focus();
1476
1523
  }, N = ($) => {
1477
1524
  l.value?.close(), a.value = !1, o("emit:close", $);
@@ -1480,70 +1527,70 @@ const Zo = ["aria-labelledby", "aria-describedby"], Qo = { class: "dwui-modal-di
1480
1527
  a.value && w();
1481
1528
  }), Y(a, ($) => {
1482
1529
  $ ? w() : l.value?.close();
1483
- }, { flush: "post" }), ($, z) => (u(), f("dialog", {
1530
+ }, { flush: "post" }), ($, z) => (r(), v("dialog", {
1484
1531
  ref_key: "refDialog",
1485
1532
  ref: l,
1486
- class: I(["dwui-modal-dialog", `dwui-modal-dialog-${e.type}`]),
1533
+ class: D(["dwui-modal-dialog", `dwui-modal-dialog-${e.type}`]),
1487
1534
  "aria-labelledby": e.title ? _(p) : void 0,
1488
1535
  "aria-describedby": _(i),
1489
- onCancel: c,
1536
+ onCancel: u,
1490
1537
  onKeydown: S
1491
1538
  }, [
1492
- b("div", Qo, [
1493
- b("span", en, [
1539
+ b("div", an, [
1540
+ b("span", ln, [
1494
1541
  x($.$slots, "icon", {}, () => [
1495
- (u(), j(te(r[e.type])))
1542
+ (r(), W(te(d[e.type])))
1496
1543
  ])
1497
1544
  ]),
1498
- e.title ? (u(), f(K, { key: 0 }, [
1499
- e.html ? (u(), f("span", {
1545
+ e.title ? (r(), v(j, { key: 0 }, [
1546
+ e.html ? (r(), v("span", {
1500
1547
  key: 0,
1501
1548
  id: _(p),
1502
1549
  class: "dwui-modal-dialog-title",
1503
1550
  innerHTML: e.title
1504
- }, null, 8, tn)) : (u(), f("span", {
1551
+ }, null, 8, sn)) : (r(), v("span", {
1505
1552
  key: 1,
1506
1553
  id: _(p),
1507
1554
  class: "dwui-modal-dialog-title"
1508
- }, A(e.title), 9, on))
1509
- ], 64)) : T("", !0)
1555
+ }, M(e.title), 9, rn))
1556
+ ], 64)) : E("", !0)
1510
1557
  ]),
1511
1558
  b("div", {
1512
1559
  id: _(i),
1513
1560
  class: "dwui-modal-dialog-body"
1514
1561
  }, [
1515
1562
  x($.$slots, "default", {}, () => [
1516
- (u(!0), f(K, null, U(C.value, (L, V) => (u(), f(K, { key: V }, [
1517
- typeof L != "string" ? (u(), f("pre", an, A(_(Yo)(L)), 1)) : e.html ? (u(), f("p", {
1563
+ (r(!0), v(j, null, V(C.value, (L, G) => (r(), v(j, { key: G }, [
1564
+ typeof L != "string" ? (r(), v("pre", cn, M(_(en)(L)), 1)) : e.html ? (r(), v("p", {
1518
1565
  key: 1,
1519
1566
  innerHTML: L
1520
- }, null, 8, ln)) : (u(), f("p", sn, A(L), 1))
1567
+ }, null, 8, un)) : (r(), v("p", pn, M(L), 1))
1521
1568
  ], 64))), 128)),
1522
- P.value.length ? (u(), f("div", rn, [
1523
- (u(!0), f(K, null, U(P.value, (L, V) => (u(), f("img", {
1524
- key: V,
1569
+ P.value.length ? (r(), v("div", mn, [
1570
+ (r(!0), v(j, null, V(P.value, (L, G) => (r(), v("img", {
1571
+ key: G,
1525
1572
  src: L.src,
1526
1573
  alt: L.alt
1527
- }, null, 8, dn))), 128))
1528
- ])) : T("", !0)
1574
+ }, null, 8, vn))), 128))
1575
+ ])) : E("", !0)
1529
1576
  ])
1530
- ], 8, nn),
1577
+ ], 8, dn),
1531
1578
  b("div", {
1532
1579
  ref_key: "refButtons",
1533
1580
  ref: s,
1534
1581
  class: "dwui-modal-dialog-buttons"
1535
1582
  }, [
1536
- (u(!0), f(K, null, U(v.value, (L) => (u(), f("button", {
1583
+ (r(!0), v(j, null, V(f.value, (L) => (r(), v("button", {
1537
1584
  key: L,
1538
1585
  type: "button",
1539
- class: I(["dwui-modal-dialog-button", `dwui-modal-dialog-button-${L}`]),
1540
- onClick: (V) => k(L)
1541
- }, A(m.value[L]), 11, cn))), 128))
1586
+ class: D(["dwui-modal-dialog-button", `dwui-modal-dialog-button-${L}`]),
1587
+ onClick: (G) => k(L)
1588
+ }, M(m.value[L]), 11, fn))), 128))
1542
1589
  ], 512)
1543
- ], 42, Zo));
1590
+ ], 42, nn));
1544
1591
  }
1545
1592
  });
1546
- function un(n) {
1593
+ function gn(n) {
1547
1594
  const t = n.minWidth ?? 20, e = n.minHeight ?? 20, o = B(!1), a = B(!1), l = Te({
1548
1595
  x: 0,
1549
1596
  y: 0
@@ -1551,7 +1598,7 @@ function un(n) {
1551
1598
  width: -1,
1552
1599
  height: -1
1553
1600
  });
1554
- let p = null, i = "bottom-right", r = {
1601
+ let p = null, i = "bottom-right", d = {
1555
1602
  x: 0,
1556
1603
  y: 0
1557
1604
  };
@@ -1559,8 +1606,8 @@ function un(n) {
1559
1606
  if (w.pointerId !== p)
1560
1607
  return;
1561
1608
  w.preventDefault();
1562
- const N = w.clientX - r.x, $ = w.clientY - r.y;
1563
- if (r = {
1609
+ const N = w.clientX - d.x, $ = w.clientY - d.y;
1610
+ if (d = {
1564
1611
  x: w.clientX,
1565
1612
  y: w.clientY
1566
1613
  }, o.value)
@@ -1577,24 +1624,24 @@ function un(n) {
1577
1624
  } else
1578
1625
  s.height = Math.max(e, s.height + $);
1579
1626
  }
1580
- }, v = () => {
1627
+ }, f = () => {
1581
1628
  const w = n.target.value?.getBoundingClientRect().width || 0;
1582
1629
  l.x < 40 - w && (l.x = 40 - w), window.innerWidth - 40 < l.x && (l.x = window.innerWidth - 40), l.y < 0 && (l.y = 0), n.clampBottom && window.innerHeight - 20 < l.y && (l.y = window.innerHeight - 20);
1583
1630
  }, m = (w) => {
1584
1631
  if (w.pointerId !== p)
1585
1632
  return;
1586
1633
  const N = o.value;
1587
- C(), N && v();
1634
+ C(), N && f();
1588
1635
  }, C = () => {
1589
1636
  document.removeEventListener("pointermove", h, !0), document.removeEventListener("pointerup", m, !0), document.removeEventListener("pointercancel", m, !0), p = null, o.value = !1, a.value = !1;
1590
1637
  }, P = (w) => {
1591
- C(), p = w.pointerId, r = {
1638
+ C(), p = w.pointerId, d = {
1592
1639
  x: w.clientX,
1593
1640
  y: w.clientY
1594
1641
  }, document.addEventListener("pointermove", h, !0), document.addEventListener("pointerup", m, !0), document.addEventListener("pointercancel", m, !0);
1595
1642
  }, k = (w) => {
1596
1643
  w.isPrimary && n.dragMode() === "body" && (P(w), o.value = !0);
1597
- }, c = (w) => {
1644
+ }, u = (w) => {
1598
1645
  w.isPrimary && n.dragMode() === "header" && (P(w), o.value = !0);
1599
1646
  }, S = (w, N = "bottom-right") => {
1600
1647
  if (!w.isPrimary)
@@ -1603,18 +1650,18 @@ function un(n) {
1603
1650
  const $ = n.target.value?.getBoundingClientRect();
1604
1651
  $ && (s.width < 0 && (s.width = $.width), s.height < 0 && (s.height = $.height)), P(w), a.value = !0;
1605
1652
  };
1606
- return G(C), {
1653
+ return U(C), {
1607
1654
  moving: o,
1608
1655
  resizing: a,
1609
1656
  currentPosition: l,
1610
1657
  currentRect: s,
1611
1658
  onDragStart: k,
1612
- onDragHeaderStart: c,
1659
+ onDragHeaderStart: u,
1613
1660
  onResizeStart: S,
1614
1661
  teardown: C
1615
1662
  };
1616
1663
  }
1617
- const pn = ["aria-labelledby"], mn = ["id"], vn = ["aria-label"], fn = ["onPointerdown"], gn = /* @__PURE__ */ O({
1664
+ const bn = ["aria-labelledby"], hn = ["id"], wn = ["aria-label"], yn = ["onPointerdown"], _n = /* @__PURE__ */ A({
1618
1665
  __name: "movable-window",
1619
1666
  props: {
1620
1667
  name: {},
@@ -1627,17 +1674,17 @@ const pn = ["aria-labelledby"], mn = ["id"], vn = ["aria-label"], fn = ["onPoint
1627
1674
  },
1628
1675
  emits: ["emit:close"],
1629
1676
  setup(n, { expose: t, emit: e }) {
1630
- const o = n, a = e, l = B(), s = se(), p = ["top-left", "top-right", "bottom-left"], i = un({
1677
+ const o = n, a = e, l = B(), s = se(), p = ["top-left", "top-right", "bottom-left"], i = gn({
1631
1678
  target: l,
1632
1679
  dragMode: () => o.dragMode,
1633
1680
  clampBottom: o.clampBottom
1634
- }), r = E(() => {
1635
- const { currentPosition: h, currentRect: v } = i;
1681
+ }), d = T(() => {
1682
+ const { currentPosition: h, currentRect: f } = i;
1636
1683
  return {
1637
1684
  top: `${h.y}px`,
1638
1685
  left: `${h.x}px`,
1639
- width: 0 <= v.width ? `${v.width}px` : void 0,
1640
- height: 0 <= v.height ? `${v.height}px` : void 0
1686
+ width: 0 <= f.width ? `${f.width}px` : void 0,
1687
+ height: 0 <= f.height ? `${f.height}px` : void 0
1641
1688
  };
1642
1689
  });
1643
1690
  return t({
@@ -1649,86 +1696,86 @@ const pn = ["aria-labelledby"], mn = ["id"], vn = ["aria-label"], fn = ["onPoint
1649
1696
  size: i.currentRect,
1650
1697
  /** ドラッグ・リサイズのリスナーを解除する */
1651
1698
  teardown: i.teardown
1652
- }), (h, v) => (u(), f("div", {
1699
+ }), (h, f) => (r(), v("div", {
1653
1700
  ref_key: "refWindow",
1654
1701
  ref: l,
1655
1702
  class: "dwui-movable-window",
1656
1703
  role: "dialog",
1657
1704
  "aria-labelledby": _(s),
1658
- style: F(r.value)
1705
+ style: F(d.value)
1659
1706
  }, [
1660
1707
  b("div", {
1661
1708
  class: "dwui-movable-window-frame",
1662
- onPointerdown: v[2] || (v[2] = //@ts-ignore
1709
+ onPointerdown: f[2] || (f[2] = //@ts-ignore
1663
1710
  (...m) => _(i).onDragStart && _(i).onDragStart(...m))
1664
1711
  }, [
1665
1712
  b("div", {
1666
- class: I(["dwui-movable-window-header", [`${o.name}-header`, o.headerClass, { "dwui-movable": o.dragMode }]]),
1713
+ class: D(["dwui-movable-window-header", [`${o.name}-header`, o.headerClass, { "dwui-movable": o.dragMode }]]),
1667
1714
  style: F(o.headerStyle),
1668
- onPointerdown: v[1] || (v[1] = //@ts-ignore
1715
+ onPointerdown: f[1] || (f[1] = //@ts-ignore
1669
1716
  (...m) => _(i).onDragHeaderStart && _(i).onDragHeaderStart(...m))
1670
1717
  }, [
1671
1718
  b("div", {
1672
1719
  id: _(s),
1673
- class: I(["dwui-movable-window-title", `${o.name}-title`])
1720
+ class: D(["dwui-movable-window-title", `${o.name}-title`])
1674
1721
  }, [
1675
1722
  x(h.$slots, "title")
1676
- ], 10, mn),
1723
+ ], 10, hn),
1677
1724
  x(h.$slots, "actions"),
1678
1725
  b("button", {
1679
1726
  type: "button",
1680
- class: I(["dwui-movable-window-close-button", `${o.name}-close-button`]),
1727
+ class: D(["dwui-movable-window-close-button", `${o.name}-close-button`]),
1681
1728
  "aria-label": o.closeLabel,
1682
- onClick: v[0] || (v[0] = (m) => a("emit:close"))
1729
+ onClick: f[0] || (f[0] = (m) => a("emit:close"))
1683
1730
  }, [
1684
- D(_(Pt))
1685
- ], 10, vn)
1731
+ I(_(Pt))
1732
+ ], 10, wn)
1686
1733
  ], 38),
1687
1734
  b("div", {
1688
- class: I(["dwui-movable-window-body", [`${o.name}-body`, { "dwui-movable": o.dragMode === "body" }]])
1735
+ class: D(["dwui-movable-window-body", [`${o.name}-body`, { "dwui-movable": o.dragMode === "body" }]])
1689
1736
  }, [
1690
1737
  x(h.$slots, "default")
1691
1738
  ], 2)
1692
1739
  ], 32),
1693
- o.loading ? (u(), f("div", {
1740
+ o.loading ? (r(), v("div", {
1694
1741
  key: 0,
1695
- class: I(["dwui-movable-window-loading", `${o.name}-loading`])
1742
+ class: D(["dwui-movable-window-loading", `${o.name}-loading`])
1696
1743
  }, [
1697
1744
  b("div", {
1698
- class: I(["dwui-movable-window-spinner", `${o.name}-spinner`])
1745
+ class: D(["dwui-movable-window-spinner", `${o.name}-spinner`])
1699
1746
  }, null, 2)
1700
- ], 2)) : T("", !0),
1701
- (u(), f(K, null, U(p, (m) => b("div", {
1747
+ ], 2)) : E("", !0),
1748
+ (r(), v(j, null, V(p, (m) => b("div", {
1702
1749
  key: m,
1703
- class: I(["dwui-movable-window-corner", [`${o.name}-corner`, `dwui-${m}`]]),
1750
+ class: D(["dwui-movable-window-corner", [`${o.name}-corner`, `dwui-${m}`]]),
1704
1751
  onPointerdown: ee((C) => _(i).onResizeStart(C, m), ["prevent"])
1705
- }, null, 42, fn)), 64)),
1752
+ }, null, 42, yn)), 64)),
1706
1753
  b("div", {
1707
- class: I(["dwui-movable-window-resizer", `${o.name}-resizer`]),
1708
- onPointerdown: v[3] || (v[3] = ee((m) => _(i).onResizeStart(m, "bottom-right"), ["prevent"]))
1754
+ class: D(["dwui-movable-window-resizer", `${o.name}-resizer`]),
1755
+ onPointerdown: f[3] || (f[3] = ee((m) => _(i).onResizeStart(m, "bottom-right"), ["prevent"]))
1709
1756
  }, [
1710
- D(_(Bt), { direction: "bottom-right" })
1757
+ I(_(Bt), { direction: "bottom-right" })
1711
1758
  ], 34)
1712
- ], 12, pn));
1759
+ ], 12, bn));
1713
1760
  }
1714
1761
  });
1715
1762
  let Re = 0;
1716
- const bn = () => (Re += 1, Re);
1717
- function hn(n, t, e) {
1763
+ const $n = () => (Re += 1, Re);
1764
+ function kn(n, t, e) {
1718
1765
  const o = document.createElement("div");
1719
1766
  document.body.appendChild(o);
1720
1767
  const a = B(!0), l = B(!1), s = {
1721
1768
  close: () => {
1722
1769
  a.value = !1;
1723
1770
  },
1724
- setLoading: (r) => {
1725
- l.value = r;
1771
+ setLoading: (d) => {
1772
+ l.value = d;
1726
1773
  }
1727
- }, p = O(() => () => n({
1774
+ }, p = A(() => () => n({
1728
1775
  open: a.value,
1729
1776
  loading: l.value,
1730
- "onUpdate:open": (r) => {
1731
- a.value = r;
1777
+ "onUpdate:open": (d) => {
1778
+ a.value = d;
1732
1779
  },
1733
1780
  "onEmit:close": () => {
1734
1781
  e.delete(s), pe(null, o), o.remove(), t.onClosed?.(), t.onClose?.();
@@ -1736,12 +1783,12 @@ function hn(n, t, e) {
1736
1783
  }, s)), i = me(p);
1737
1784
  return t.appContext && (i.appContext = t.appContext), pe(i, o), e.add(s), s;
1738
1785
  }
1739
- function wn(n) {
1786
+ function Cn(n) {
1740
1787
  const t = Ke();
1741
1788
  if (!t)
1742
1789
  throw new Error(`${n}() must be called inside setup().`);
1743
1790
  const e = /* @__PURE__ */ new Set();
1744
- return G(() => {
1791
+ return U(() => {
1745
1792
  for (const o of e)
1746
1793
  o.close();
1747
1794
  }), {
@@ -1756,7 +1803,7 @@ function wn(n) {
1756
1803
  }
1757
1804
  const ue = [], Qe = /* @__PURE__ */ new Set(), et = (n, t, e, o) => {
1758
1805
  const { appContext: a, onClose: l, ...s } = e ?? {};
1759
- return hn((p, i) => me(yn, {
1806
+ return kn((p, i) => me(Sn, {
1760
1807
  ...s,
1761
1808
  ...p
1762
1809
  }, {
@@ -1767,15 +1814,15 @@ const ue = [], Qe = /* @__PURE__ */ new Set(), et = (n, t, e, o) => {
1767
1814
  })
1768
1815
  }), { appContext: a, onClose: l, onClosed: o }, Qe);
1769
1816
  };
1770
- function Yn(n, t, e) {
1817
+ function na(n, t, e) {
1771
1818
  return et(n, t, e);
1772
1819
  }
1773
- function qn() {
1820
+ function aa() {
1774
1821
  for (const n of [...Qe])
1775
1822
  n.close();
1776
1823
  }
1777
- function Jn() {
1778
- const n = wn("useOverlayBox");
1824
+ function la() {
1825
+ const n = Cn("useOverlayBox");
1779
1826
  return {
1780
1827
  showOverlayBox: (t, e, o) => n.own((a) => et(t, e, {
1781
1828
  appContext: n.appContext,
@@ -1783,9 +1830,9 @@ function Jn() {
1783
1830
  }, a))
1784
1831
  };
1785
1832
  }
1786
- const yn = /* @__PURE__ */ O({
1833
+ const Sn = /* @__PURE__ */ A({
1787
1834
  __name: "overlay-box",
1788
- props: /* @__PURE__ */ J({
1835
+ props: /* @__PURE__ */ Z({
1789
1836
  title: { default: void 0 },
1790
1837
  dragMode: { default: void 0 },
1791
1838
  closeOnBackdrop: { type: Boolean, default: !1 },
@@ -1795,49 +1842,49 @@ const yn = /* @__PURE__ */ O({
1795
1842
  open: { type: Boolean, default: !1 },
1796
1843
  openModifiers: {}
1797
1844
  }),
1798
- emits: /* @__PURE__ */ J(["emit:close"], ["update:open"]),
1845
+ emits: /* @__PURE__ */ Z(["emit:close"], ["update:open"]),
1799
1846
  setup(n, { emit: t }) {
1800
1847
  const e = n, o = t, a = re(n, "open"), l = B(), s = B(0), p = /* @__PURE__ */ Symbol("dwui-overlay-box");
1801
1848
  let i = null;
1802
- const r = () => {
1849
+ const d = () => {
1803
1850
  e.closeOnBackdrop && (a.value = !1);
1804
1851
  }, h = () => {
1805
1852
  a.value = !1;
1806
- }, v = (c) => {
1807
- c.key !== "Escape" || !c.isTrusted || c.isComposing || c.target instanceof Element && c.target.closest("dialog") || ue.at(-1) === p && (a.value = !1);
1853
+ }, f = (u) => {
1854
+ u.key !== "Escape" || !u.isTrusted || u.isComposing || u.target instanceof Element && u.target.closest("dialog") || ue.at(-1) === p && (a.value = !1);
1808
1855
  }, m = () => {
1809
1856
  o("emit:close");
1810
1857
  }, C = () => {
1811
- const c = ue.indexOf(p);
1812
- 0 <= c && ue.splice(c, 1);
1858
+ const u = ue.indexOf(p);
1859
+ 0 <= u && ue.splice(u, 1);
1813
1860
  }, P = () => {
1814
- s.value = bn();
1815
- const c = l.value, S = c?.element?.getBoundingClientRect();
1816
- c && (c.position.x = (window.innerWidth - (S?.width || 0)) / 2, c.position.y = Math.max(0, (window.innerHeight - (S?.height || 0)) / 2)), i = document.activeElement instanceof HTMLElement ? document.activeElement : null, c?.element?.focus(), ue.push(p);
1861
+ s.value = $n();
1862
+ const u = l.value, S = u?.element?.getBoundingClientRect();
1863
+ u && (u.position.x = (window.innerWidth - (S?.width || 0)) / 2, u.position.y = Math.max(0, (window.innerHeight - (S?.height || 0)) / 2)), i = document.activeElement instanceof HTMLElement ? document.activeElement : null, u?.element?.focus(), ue.push(p);
1817
1864
  }, k = () => {
1818
1865
  l.value?.teardown(), C(), i?.isConnected && i.focus(), i = null;
1819
1866
  };
1820
1867
  return X(() => {
1821
1868
  a.value && P();
1822
- }), G(() => {
1869
+ }), U(() => {
1823
1870
  C();
1824
- }), Y(a, (c) => {
1825
- c ? P() : k();
1826
- }, { flush: "post" }), (c, S) => (u(), j(vt, {
1871
+ }), Y(a, (u) => {
1872
+ u ? P() : k();
1873
+ }, { flush: "post" }), (u, S) => (r(), W(vt, {
1827
1874
  name: "dwui-overlay-box-fade",
1828
1875
  onAfterLeave: m
1829
1876
  }, {
1830
1877
  default: H(() => [
1831
- a.value ? (u(), f("div", {
1878
+ a.value ? (r(), v("div", {
1832
1879
  key: 0,
1833
1880
  class: "dwui-overlay-box",
1834
1881
  style: F({ "--dwui-order-window": s.value })
1835
1882
  }, [
1836
1883
  b("div", {
1837
1884
  class: "dwui-overlay-box-backdrop",
1838
- onClick: r
1885
+ onClick: d
1839
1886
  }),
1840
- D(gn, {
1887
+ I(_n, {
1841
1888
  ref_key: "refWindow",
1842
1889
  ref: l,
1843
1890
  class: "dwui-overlay-box-container",
@@ -1847,25 +1894,25 @@ const yn = /* @__PURE__ */ O({
1847
1894
  loading: e.loading,
1848
1895
  "close-label": e.closeLabel,
1849
1896
  "clamp-bottom": "",
1850
- onKeydown: v,
1897
+ onKeydown: f,
1851
1898
  "onEmit:close": h
1852
1899
  }, {
1853
1900
  title: H(() => [
1854
- x(c.$slots, "title", {}, () => [
1855
- Q(A(e.title), 1)
1901
+ x(u.$slots, "title", {}, () => [
1902
+ q(M(e.title), 1)
1856
1903
  ])
1857
1904
  ]),
1858
1905
  default: H(() => [
1859
- x(c.$slots, "default")
1906
+ x(u.$slots, "default")
1860
1907
  ]),
1861
1908
  _: 3
1862
1909
  }, 8, ["drag-mode", "loading", "close-label"])
1863
- ], 4)) : T("", !0)
1910
+ ], 4)) : E("", !0)
1864
1911
  ]),
1865
1912
  _: 3
1866
1913
  }));
1867
1914
  }
1868
- }), _n = { class: "dwui-page-section" }, $n = { class: "dwui-page-section-content" }, Zn = /* @__PURE__ */ O({
1915
+ }), xn = { class: "dwui-page-section" }, Pn = { class: "dwui-page-section-content" }, sa = /* @__PURE__ */ A({
1869
1916
  __name: "page-section",
1870
1917
  props: {
1871
1918
  title: {},
@@ -1882,50 +1929,50 @@ const yn = /* @__PURE__ */ O({
1882
1929
  square: { component: Et, shape: !0, color: "#d13a2b" },
1883
1930
  pushpin: { component: Tt, shape: !1 },
1884
1931
  "round-pushpin": { component: Lt, shape: !1 }
1885
- }, o = E(() => {
1932
+ }, o = T(() => {
1886
1933
  const a = e[t.icon];
1887
1934
  return {
1888
1935
  component: a.component,
1889
1936
  props: a.shape ? { variant: t.iconVariant, color: t.iconColor ?? a.color } : {}
1890
1937
  };
1891
1938
  });
1892
- return (a, l) => (u(), f("section", _n, [
1893
- t.title != null ? (u(), f("div", {
1939
+ return (a, l) => (r(), v("section", xn, [
1940
+ t.title != null ? (r(), v("div", {
1894
1941
  key: 0,
1895
- class: I(["dwui-page-section-title", t.titleClass]),
1942
+ class: D(["dwui-page-section-title", t.titleClass]),
1896
1943
  style: F(t.titleStyle)
1897
1944
  }, [
1898
- D(oe, null, {
1945
+ I(oe, null, {
1899
1946
  icon: H(() => [
1900
1947
  x(a.$slots, "icon", {}, () => [
1901
- (u(), j(te(o.value.component), je(We(o.value.props)), null, 16))
1948
+ (r(), W(te(o.value.component), je(We(o.value.props)), null, 16))
1902
1949
  ])
1903
1950
  ]),
1904
1951
  default: H(() => [
1905
- Q(" " + A(t.title), 1)
1952
+ q(" " + M(t.title), 1)
1906
1953
  ]),
1907
1954
  _: 3
1908
1955
  })
1909
- ], 6)) : T("", !0),
1910
- b("div", $n, [
1956
+ ], 6)) : E("", !0),
1957
+ b("div", Pn, [
1911
1958
  x(a.$slots, "default")
1912
1959
  ])
1913
1960
  ]));
1914
1961
  }
1915
- }), kn = { class: "dwui-page-title" }, Cn = {
1962
+ }), Bn = { class: "dwui-page-title" }, Ln = {
1916
1963
  key: 0,
1917
1964
  class: "dwui-page-title-actions"
1918
- }, Qn = /* @__PURE__ */ O({
1965
+ }, ia = /* @__PURE__ */ A({
1919
1966
  __name: "page-title",
1920
1967
  props: {
1921
1968
  title: {}
1922
1969
  },
1923
1970
  setup(n) {
1924
- const t = n, e = Z();
1925
- return (o, a) => (u(), f("section", kn, [
1926
- D(oe, { class: "dwui-page-title-label" }, de({
1971
+ const t = n, e = Q();
1972
+ return (o, a) => (r(), v("section", Bn, [
1973
+ I(oe, { class: "dwui-page-title-label" }, de({
1927
1974
  default: H(() => [
1928
- Q(" " + A(t.title), 1)
1975
+ q(" " + M(t.title), 1)
1929
1976
  ]),
1930
1977
  _: 2
1931
1978
  }, [
@@ -1937,12 +1984,12 @@ const yn = /* @__PURE__ */ O({
1937
1984
  key: "0"
1938
1985
  } : void 0
1939
1986
  ]), 1024),
1940
- e.default != null ? (u(), f("span", Cn, [
1987
+ e.default != null ? (r(), v("span", Ln, [
1941
1988
  x(o.$slots, "default")
1942
- ])) : T("", !0)
1989
+ ])) : E("", !0)
1943
1990
  ]));
1944
1991
  }
1945
- }), ea = /* @__PURE__ */ O({
1992
+ }), ra = /* @__PURE__ */ A({
1946
1993
  __name: "screen-loading",
1947
1994
  props: {
1948
1995
  loading: { type: Boolean }
@@ -1957,11 +2004,11 @@ const yn = /* @__PURE__ */ O({
1957
2004
  };
1958
2005
  return X(() => {
1959
2006
  t.loading && o();
1960
- }), G(() => {
2007
+ }), U(() => {
1961
2008
  a();
1962
2009
  }), Y(() => t.loading, (l) => {
1963
2010
  l ? o() : a();
1964
- }, { flush: "post" }), (l, s) => (u(), f("dialog", {
2011
+ }, { flush: "post" }), (l, s) => (r(), v("dialog", {
1965
2012
  ref_key: "refDialog",
1966
2013
  ref: e,
1967
2014
  class: "dwui-screen-loading",
@@ -1972,13 +2019,13 @@ const yn = /* @__PURE__ */ O({
1972
2019
  b("div", { class: "dwui-screen-loading-spinner" }, null, -1)
1973
2020
  ])], 544));
1974
2021
  }
1975
- }), tt = /* @__PURE__ */ Symbol("dwui-tab-group"), Sn = ["id", "aria-labelledby", "aria-busy", "hidden"], xn = {
2022
+ }), tt = /* @__PURE__ */ Symbol("dwui-tab-group"), Tn = ["id", "aria-labelledby", "aria-busy", "hidden"], En = {
1976
2023
  key: 0,
1977
2024
  class: "dwui-tab-loading"
1978
- }, Pn = {
2025
+ }, Mn = {
1979
2026
  key: 1,
1980
2027
  class: "dwui-tab-loading-spinner"
1981
- }, Bn = /* @__PURE__ */ O({
2028
+ }, An = /* @__PURE__ */ A({
1982
2029
  __name: "tab-content",
1983
2030
  props: {
1984
2031
  tabId: {},
@@ -1989,10 +2036,10 @@ const yn = /* @__PURE__ */ O({
1989
2036
  headerStyle: { type: [Boolean, null, String, Object, Array] }
1990
2037
  },
1991
2038
  setup(n) {
1992
- const t = n, e = ke(tt, void 0), o = B(!1), a = () => e?.loadingSlot(), l = E(() => e?.activeTabId.value === t.tabId), s = E(() => !!e?.mounted.value && l.value), p = (i) => {
2039
+ const t = n, e = ke(tt, void 0), o = B(!1), a = () => e?.loadingSlot(), l = T(() => e?.activeTabId.value === t.tabId), s = T(() => !!e?.mounted.value && l.value), p = (i) => {
1993
2040
  o.value = i;
1994
2041
  };
1995
- return (i, r) => t.disabled ? T("", !0) : (u(), f("div", {
2042
+ return (i, d) => t.disabled ? E("", !0) : (r(), v("div", {
1996
2043
  key: 0,
1997
2044
  id: _(e) ? `${_(e).groupName}-${t.tabId}-panel` : void 0,
1998
2045
  class: "dwui-tab-content",
@@ -2005,14 +2052,14 @@ const yn = /* @__PURE__ */ O({
2005
2052
  activated: s.value,
2006
2053
  setLoading: p
2007
2054
  }),
2008
- o.value ? (u(), f("div", xn, [
2009
- a() != null ? (u(), j(te(a()), { key: 0 })) : (u(), f("span", Pn))
2010
- ])) : T("", !0)
2011
- ], 8, Sn));
2055
+ o.value ? (r(), v("div", En, [
2056
+ a() != null ? (r(), W(te(a()), { key: 0 })) : (r(), v("span", Mn))
2057
+ ])) : E("", !0)
2058
+ ], 8, Tn));
2012
2059
  }
2013
- }), Ln = { class: "dwui-tab-group" }, Tn = ["id", "name", "disabled", "checked", "aria-selected", "aria-controls", "onChange"], En = ["for"], Mn = { class: "dwui-tab-items" }, ta = /* @__PURE__ */ O({
2060
+ }), On = { class: "dwui-tab-group" }, Dn = ["id", "name", "disabled", "checked", "aria-selected", "aria-controls", "onChange"], In = ["for"], Nn = { class: "dwui-tab-items" }, da = /* @__PURE__ */ A({
2014
2061
  __name: "tab-group",
2015
- props: /* @__PURE__ */ J({
2062
+ props: /* @__PURE__ */ Z({
2016
2063
  tabGroupName: {},
2017
2064
  selectFirstEnabled: { type: Boolean },
2018
2065
  headerClass: { type: [Boolean, null, String, Object, Array] },
@@ -2024,49 +2071,49 @@ const yn = /* @__PURE__ */ O({
2024
2071
  }),
2025
2072
  emits: ["update:selectedTabId"],
2026
2073
  setup(n) {
2027
- const t = n, e = re(n, "selectedTabId"), o = Z(), a = t.tabGroupName ?? se(), l = (h) => {
2028
- if (h.type !== Bn)
2074
+ const t = n, e = re(n, "selectedTabId"), o = Q(), a = t.tabGroupName ?? se(), l = (h) => {
2075
+ if (h.type !== An)
2029
2076
  return;
2030
- const v = h.props ?? {}, m = v.disabled;
2077
+ const f = h.props ?? {}, m = f.disabled;
2031
2078
  return {
2032
- tabId: String(v["tab-id"] ?? v.tabId),
2033
- label: v.label,
2079
+ tabId: String(f["tab-id"] ?? f.tabId),
2080
+ label: f.label,
2034
2081
  // 属性だけを書いた場合(<TabContent disabled>)は空文字になる
2035
2082
  disabled: m === "" || !!m,
2036
- status: v.status,
2037
- headerClass: v["header-class"] ?? v.headerClass,
2038
- headerStyle: v["header-style"] ?? v.headerStyle,
2083
+ status: f.status,
2084
+ headerClass: f["header-class"] ?? f.headerClass,
2085
+ headerStyle: f["header-style"] ?? f.headerStyle,
2039
2086
  // TabContentの#iconスロットは、TabContentではなくここで見出しに描画する
2040
2087
  icon: h.children?.icon
2041
2088
  };
2042
- }, s = E(() => {
2089
+ }, s = T(() => {
2043
2090
  const h = [];
2044
- for (const v of o.default?.() ?? []) {
2045
- const m = Array.isArray(v.children) ? v.children : [v];
2091
+ for (const f of o.default?.() ?? []) {
2092
+ const m = Array.isArray(f.children) ? f.children : [f];
2046
2093
  for (const C of m) {
2047
2094
  const P = l(C);
2048
2095
  P && h.push(P);
2049
2096
  }
2050
2097
  }
2051
2098
  return h;
2052
- }), p = E(() => e.value != null ? e.value : (t.selectFirstEnabled ? s.value.find((v) => !v.disabled) : s.value[0])?.tabId), i = B(!1);
2099
+ }), p = T(() => e.value != null ? e.value : (t.selectFirstEnabled ? s.value.find((f) => !f.disabled) : s.value[0])?.tabId), i = B(!1);
2053
2100
  ft(tt, { groupName: a, activeTabId: p, mounted: i, loadingSlot: () => o.loading }), X(() => {
2054
2101
  i.value = !0;
2055
2102
  });
2056
- const r = (h) => {
2103
+ const d = (h) => {
2057
2104
  e.value = h;
2058
2105
  };
2059
- return (h, v) => (u(), f("div", Ln, [
2060
- (u(), j(gt, {
2106
+ return (h, f) => (r(), v("div", On, [
2107
+ (r(), W(gt, {
2061
2108
  to: t.teleport ?? "body",
2062
2109
  disabled: t.teleport == null
2063
2110
  }, [
2064
2111
  b("div", {
2065
- class: I(["dwui-tab-headers", t.headerClass]),
2112
+ class: D(["dwui-tab-headers", t.headerClass]),
2066
2113
  role: "tablist",
2067
2114
  style: F(t.headerStyle)
2068
2115
  }, [
2069
- (u(!0), f(K, null, U(s.value, (m) => (u(), f(K, {
2116
+ (r(!0), v(j, null, V(s.value, (m) => (r(), v(j, {
2070
2117
  key: m.tabId
2071
2118
  }, [
2072
2119
  b("input", {
@@ -2079,37 +2126,37 @@ const yn = /* @__PURE__ */ O({
2079
2126
  checked: m.tabId === p.value,
2080
2127
  "aria-selected": m.tabId === p.value ? "true" : "false",
2081
2128
  "aria-controls": `${_(a)}-${m.tabId}-panel`,
2082
- onChange: (C) => r(m.tabId)
2083
- }, null, 40, Tn),
2129
+ onChange: (C) => d(m.tabId)
2130
+ }, null, 40, Dn),
2084
2131
  b("label", {
2085
2132
  for: `${_(a)}-${m.tabId}`,
2086
- class: I(["dwui-tab-item", [m.status != null ? `dwui-tab-${m.status}` : void 0, m.headerClass]]),
2133
+ class: D(["dwui-tab-item", [m.status != null ? `dwui-tab-${m.status}` : void 0, m.headerClass]]),
2087
2134
  style: F(m.headerStyle)
2088
2135
  }, [
2089
- D(oe, null, de({
2136
+ I(oe, null, de({
2090
2137
  default: H(() => [
2091
- Q(" " + A(m.label), 1)
2138
+ q(" " + M(m.label), 1)
2092
2139
  ]),
2093
2140
  _: 2
2094
2141
  }, [
2095
2142
  m.icon != null ? {
2096
2143
  name: "icon",
2097
2144
  fn: H(() => [
2098
- (u(), j(te(m.icon)))
2145
+ (r(), W(te(m.icon)))
2099
2146
  ]),
2100
2147
  key: "0"
2101
2148
  } : void 0
2102
2149
  ]), 1024)
2103
- ], 14, En)
2150
+ ], 14, In)
2104
2151
  ], 64))), 128))
2105
2152
  ], 6)
2106
2153
  ], 8, ["to", "disabled"])),
2107
- b("div", Mn, [
2154
+ b("div", Nn, [
2108
2155
  x(h.$slots, "default")
2109
2156
  ])
2110
2157
  ]));
2111
2158
  }
2112
- }), oa = /* @__PURE__ */ O({
2159
+ }), ca = /* @__PURE__ */ A({
2113
2160
  __name: "warning-popper",
2114
2161
  props: {
2115
2162
  placement: { default: "right" },
@@ -2119,7 +2166,7 @@ const yn = /* @__PURE__ */ O({
2119
2166
  emits: ["emit:open", "emit:close"],
2120
2167
  setup(n, { emit: t }) {
2121
2168
  const e = n, o = t;
2122
- return (a, l) => (u(), j(Ze, {
2169
+ return (a, l) => (r(), W(Ze, {
2123
2170
  class: "dwui-warning-popper",
2124
2171
  "popover-class": "dwui-warning-popper-popover",
2125
2172
  placement: e.placement,
@@ -2130,7 +2177,7 @@ const yn = /* @__PURE__ */ O({
2130
2177
  }, {
2131
2178
  icon: H(() => [
2132
2179
  x(a.$slots, "icon", {}, () => [
2133
- D(_(Ge))
2180
+ I(_(Ge))
2134
2181
  ])
2135
2182
  ]),
2136
2183
  default: H(() => [
@@ -2141,38 +2188,40 @@ const yn = /* @__PURE__ */ O({
2141
2188
  }
2142
2189
  });
2143
2190
  export {
2144
- Rn as A,
2145
- jn as B,
2146
- Yn as C,
2147
- Zt as D,
2148
- Jn as E,
2191
+ aa as A,
2192
+ Kn as B,
2193
+ Gn as C,
2194
+ Un as D,
2195
+ na as E,
2149
2196
  Qt as F,
2150
- Xe as G,
2151
- gn as _,
2152
- zn as a,
2153
- Xn as b,
2154
- zo as c,
2155
- ea as d,
2156
- Dn as e,
2157
- In as f,
2158
- Hn as g,
2159
- Wn as h,
2160
- Kn as i,
2161
- Fn as j,
2162
- Vn as k,
2163
- Gn as l,
2164
- hn as m,
2165
- bn as n,
2166
- Un as o,
2167
- oe as p,
2168
- yn as q,
2169
- Zn as r,
2170
- Qn as s,
2171
- Yo as t,
2172
- wn as u,
2173
- Bn as v,
2174
- ta as w,
2175
- oa as x,
2176
- qn as y,
2177
- Nn as z
2197
+ la as G,
2198
+ eo as H,
2199
+ Xe as I,
2200
+ _n as _,
2201
+ Fn as a,
2202
+ oa as b,
2203
+ jo as c,
2204
+ ra as d,
2205
+ jn as e,
2206
+ Wn as f,
2207
+ Vn as g,
2208
+ Xn as h,
2209
+ Yn as i,
2210
+ qn as j,
2211
+ Jn as k,
2212
+ Zn as l,
2213
+ kn as m,
2214
+ $n as n,
2215
+ Qn as o,
2216
+ ea as p,
2217
+ ta as q,
2218
+ oe as r,
2219
+ Sn as s,
2220
+ en as t,
2221
+ Cn as u,
2222
+ sa as v,
2223
+ ia as w,
2224
+ An as x,
2225
+ da as y,
2226
+ ca as z
2178
2227
  };