@digitalwalletcorp/vue-core 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/lib/accordion-section.d.cts +1 -1
  2. package/lib/accordion-section.d.ts +1 -1
  3. package/lib/components-BCJWnExf.cjs +1 -0
  4. package/lib/{components-B2jz-g6A.js → components-CDIhw5uP.js} +5 -5
  5. package/lib/data-table.d.cts +1 -1
  6. package/lib/data-table.d.ts +1 -1
  7. package/lib/{types → helpers}/data-table.d.cts +47 -0
  8. package/lib/{types → helpers}/data-table.d.ts +47 -0
  9. package/lib/helpers/{show-floating-component.d.cts → floating-component.d.cts} +1 -1
  10. package/lib/helpers/{show-floating-component.d.ts → floating-component.d.ts} +1 -1
  11. package/lib/helpers/{show-modal-dialog.d.cts → modal-dialog.d.cts} +13 -1
  12. package/lib/helpers/{show-modal-dialog.d.ts → modal-dialog.d.ts} +13 -1
  13. package/lib/helpers/{show-overlay-box.d.ts → overlay-box.d.cts} +3 -1
  14. package/lib/helpers/{show-overlay-box.d.cts → overlay-box.d.ts} +3 -1
  15. package/lib/helpers/{show-snackbar.d.cts → snackbar.d.cts} +16 -1
  16. package/lib/helpers/{show-snackbar.d.ts → snackbar.d.ts} +16 -1
  17. package/lib/index.cjs +1 -1
  18. package/lib/index.d.cts +15 -18
  19. package/lib/index.d.ts +15 -18
  20. package/lib/index.js +181 -265
  21. package/lib/internal/data-table-controls.d.cts +1 -1
  22. package/lib/internal/data-table-controls.d.ts +1 -1
  23. package/lib/internal/floating-component.d.cts +1 -1
  24. package/lib/internal/floating-component.d.ts +1 -1
  25. package/lib/internal/movable-window.d.cts +1 -1
  26. package/lib/internal/movable-window.d.ts +1 -1
  27. package/lib/internal/pagination.d.cts +1 -1
  28. package/lib/internal/pagination.d.ts +1 -1
  29. package/lib/internal/snackbar-container.d.cts +1 -1
  30. package/lib/internal/snackbar-container.d.ts +1 -1
  31. package/lib/internal/use-movable-window.d.cts +1 -1
  32. package/lib/internal/use-movable-window.d.ts +1 -1
  33. package/lib/internal/{mount-window.d.cts → window-control.d.cts} +22 -1
  34. package/lib/internal/{mount-window.d.ts → window-control.d.ts} +22 -1
  35. package/lib/label-button.d.cts +1 -1
  36. package/lib/label-button.d.ts +1 -1
  37. package/lib/label-icon.d.cts +12 -2
  38. package/lib/label-icon.d.ts +12 -2
  39. package/lib/modal-dialog.d.cts +1 -1
  40. package/lib/modal-dialog.d.ts +1 -1
  41. package/lib/nuxt.cjs +1 -1
  42. package/lib/nuxt.js +1 -1
  43. package/lib/overlay-box.d.cts +1 -1
  44. package/lib/overlay-box.d.ts +1 -1
  45. package/lib/register.cjs +1 -1
  46. package/lib/register.js +1 -1
  47. package/lib/tab-content.d.cts +1 -1
  48. package/lib/tab-content.d.ts +1 -1
  49. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BJxLA6aU.js +1954 -0
  50. package/lib/warning-popper.vue_vue_type_style_index_0_lang-TYmLM_h9.cjs +1 -0
  51. package/package.json +1 -1
  52. package/src/accordion-section.vue +1 -1
  53. package/src/data-table.vue +2 -2
  54. package/src/helpers/data-table.ts +250 -0
  55. package/src/helpers/{show-floating-component.ts → floating-component.ts} +2 -2
  56. package/src/helpers/{show-modal-dialog.ts → modal-dialog.ts} +17 -1
  57. package/src/helpers/{show-overlay-box.ts → overlay-box.ts} +5 -2
  58. package/src/helpers/{show-snackbar.ts → snackbar.ts} +19 -1
  59. package/src/index.ts +15 -18
  60. package/src/internal/data-table-controls.vue +1 -1
  61. package/src/internal/floating-component.vue +2 -2
  62. package/src/internal/movable-window.vue +1 -1
  63. package/src/internal/pagination.vue +1 -1
  64. package/src/internal/snackbar-container.vue +1 -1
  65. package/src/internal/use-movable-window.ts +1 -1
  66. package/src/internal/{mount-window.ts → window-control.ts} +31 -1
  67. package/src/label-button.vue +1 -1
  68. package/src/label-icon.vue +13 -2
  69. package/src/modal-dialog.vue +1 -1
  70. package/src/overlay-box.vue +3 -3
  71. package/src/tab-content.vue +2 -2
  72. package/src/tab-group.vue +2 -2
  73. package/lib/components-COL2ZbhC.cjs +0 -1
  74. package/lib/helpers/data-table-csv.d.cts +0 -17
  75. package/lib/helpers/data-table-csv.d.ts +0 -17
  76. package/lib/internal/data-table-value.d.cts +0 -32
  77. package/lib/internal/data-table-value.d.ts +0 -32
  78. package/lib/internal/opened-overlay-boxes.d.cts +0 -2
  79. package/lib/internal/opened-overlay-boxes.d.ts +0 -2
  80. package/lib/internal/snackbar-item.d.cts +0 -17
  81. package/lib/internal/snackbar-item.d.ts +0 -17
  82. package/lib/internal/window-order.d.cts +0 -6
  83. package/lib/internal/window-order.d.ts +0 -6
  84. package/lib/types/label-preset.d.cts +0 -12
  85. package/lib/types/label-preset.d.ts +0 -12
  86. package/lib/types/modal-dialog.d.cts +0 -13
  87. package/lib/types/modal-dialog.d.ts +0 -13
  88. package/lib/types/movable-window.d.cts +0 -16
  89. package/lib/types/movable-window.d.ts +0 -16
  90. package/lib/warning-popper.vue_vue_type_style_index_0_lang-4FIOsOY5.cjs +0 -1
  91. package/lib/warning-popper.vue_vue_type_style_index_0_lang-CgXoSjjp.js +0 -1865
  92. package/src/helpers/data-table-csv.ts +0 -55
  93. package/src/internal/data-table-value.ts +0 -99
  94. package/src/internal/opened-overlay-boxes.ts +0 -2
  95. package/src/internal/snackbar-item.ts +0 -20
  96. package/src/internal/window-order.ts +0 -11
  97. package/src/types/data-table.ts +0 -99
  98. package/src/types/label-preset.ts +0 -13
  99. package/src/types/modal-dialog.ts +0 -16
  100. package/src/types/movable-window.ts +0 -18
  101. /package/lib/helpers/{show-screen-loading.d.cts → screen-loading.d.cts} +0 -0
  102. /package/lib/helpers/{show-screen-loading.d.ts → screen-loading.d.ts} +0 -0
  103. /package/lib/internal/{tab-group-context.d.cts → tab-group.d.cts} +0 -0
  104. /package/lib/internal/{tab-group-context.d.ts → tab-group.d.ts} +0 -0
  105. /package/src/helpers/{show-screen-loading.ts → screen-loading.ts} +0 -0
  106. /package/src/internal/{tab-group-context.ts → tab-group.ts} +0 -0
package/lib/index.js CHANGED
@@ -1,22 +1,8 @@
1
- import { r as J, g as X, n as A, _ as Y, a as Q, c as Z, b as ee, d as ne, e as te } from "./warning-popper.vue_vue_type_style_index_0_lang-CgXoSjjp.js";
2
- import { f as Xe, h as Ye, i as Qe, j as Ze, k as en, l as nn, m as tn, o as on, p as an, q as sn, s as ln, t as rn, u as cn, v as dn, w as un, x as pn } from "./warning-popper.vue_vue_type_style_index_0_lang-CgXoSjjp.js";
3
- import { defineComponent as E, ref as C, onMounted as oe, openBlock as p, createBlock as L, Transition as ae, withCtx as b, normalizeStyle as P, normalizeClass as S, createSlots as se, renderSlot as le, createTextVNode as re, toDisplayString as y, createVNode as F, createCommentVNode as g, getCurrentInstance as ie, onBeforeUnmount as ce, render as m, h as u, computed as M, TransitionGroup as de, createElementBlock as f, unref as ue, Fragment as pe, renderList as me, createElementVNode as fe, shallowReactive as we } from "vue";
4
- import { SvgWastebasket as ge } from "@digitalwalletcorp/vue-svg-icons";
5
- const he = "$index", H = (n) => {
6
- const t = [];
7
- for (const e of n)
8
- if (e.csv === !0)
9
- t.push({ header: e, column: {} });
10
- else if (Array.isArray(e.csv))
11
- for (const o of e.csv)
12
- o.disabled || t.push({ header: e, column: o });
13
- return t;
14
- }, De = (n) => H(n).map(({ header: t, column: e }) => J(e.label ?? t.label)), Ae = (n, t, e) => H(n).map(({ header: o, column: a }) => {
15
- if (a.format)
16
- return a.format(t);
17
- const s = a.key ?? o.id;
18
- return s === he ? e : X(t, s);
19
- }), be = /* @__PURE__ */ E({
1
+ import { n as $, _ as j, a as G, c as q, u as J, m as K, b as Q, d as U } from "./warning-popper.vue_vue_type_style_index_0_lang-BJxLA6aU.js";
2
+ import { e as Fe, f as ze, g as Pe, h as Ve, i as He, j as Ie, k as Ne, l as Re, o as je, p as Ge, q as qe, r as Je, s as Ke, t as Qe, v as Ue, w as Xe, x as Ye, y as Ze, z as en, A as nn, B as tn, C as on } from "./warning-popper.vue_vue_type_style_index_0_lang-BJxLA6aU.js";
3
+ import { defineComponent as W, ref as D, onMounted as X, openBlock as u, createBlock as L, Transition as Y, withCtx as b, normalizeStyle as F, normalizeClass as S, createSlots as Z, renderSlot as ee, createTextVNode as ne, toDisplayString as y, createVNode as z, createCommentVNode as w, h as p, render as g, computed as M, TransitionGroup as te, createElementBlock as m, unref as oe, Fragment as ae, renderList as le, createElementVNode as se, shallowReactive as ie } from "vue";
4
+ import { SvgWastebasket as re } from "@digitalwalletcorp/vue-svg-icons";
5
+ const ce = /* @__PURE__ */ W({
20
6
  __name: "floating-component",
21
7
  props: {
22
8
  open: { type: Boolean },
@@ -35,73 +21,73 @@ const he = "$index", H = (n) => {
35
21
  },
36
22
  emits: ["update:open", "emit:close"],
37
23
  setup(n, { emit: t }) {
38
- const e = n, o = t, a = C(), s = C(A()), r = () => {
39
- s.value = A();
40
- }, i = () => {
24
+ const e = n, o = t, l = D(), a = D($()), i = () => {
25
+ a.value = $();
26
+ }, r = () => {
41
27
  e.closeOnDblClick && o("update:open", !1);
42
- }, l = () => {
43
- const c = a.value;
28
+ }, s = () => {
29
+ const c = l.value;
44
30
  if (!c?.element)
45
31
  return;
46
32
  const d = c.element.getBoundingClientRect();
47
- let w = e.initialSize?.width ?? d.width;
48
- window.innerWidth < w && (w = window.innerWidth * 0.9);
33
+ let f = e.initialSize?.width ?? d.width;
34
+ window.innerWidth < f && (f = window.innerWidth * 0.9);
49
35
  let h = e.initialSize?.height ?? -1;
50
- window.innerHeight < h && (h = window.innerHeight * 0.9), c.size.width = w, c.size.height = h;
51
- const O = document.documentElement.scrollLeft, T = document.documentElement.scrollTop;
36
+ window.innerHeight < h && (h = window.innerHeight * 0.9), c.size.width = f, c.size.height = h;
37
+ const E = document.documentElement.scrollLeft, T = document.documentElement.scrollTop;
52
38
  if (e.anchor) {
53
- const U = {
54
- width: w,
39
+ const N = {
40
+ width: f,
55
41
  height: 0 <= h ? h : d.height
56
- }, q = {
42
+ }, R = {
57
43
  width: document.documentElement.clientWidth,
58
44
  height: document.documentElement.clientHeight
59
- }, D = Z(e.anchor.getBoundingClientRect(), U, q, {
45
+ }, O = q(e.anchor.getBoundingClientRect(), N, R, {
60
46
  placement: "bottom-start",
61
47
  offset: 0,
62
48
  margin: 0,
63
49
  arrowMargin: 0
64
50
  });
65
- c.position.x = D.left + O, c.position.y = D.top + T;
51
+ c.position.x = O.left + E, c.position.y = O.top + T;
66
52
  } else
67
- c.position.x = 10 + O, c.position.y = 10 + T;
53
+ c.position.x = 10 + E, c.position.y = 10 + T;
68
54
  };
69
- return oe(() => {
70
- e.open && l();
71
- }), (c, d) => (p(), L(ae, {
55
+ return X(() => {
56
+ e.open && s();
57
+ }), (c, d) => (u(), L(Y, {
72
58
  name: "dwui-floating-component-fade",
73
- onAfterLeave: d[1] || (d[1] = (w) => o("emit:close"))
59
+ onAfterLeave: d[1] || (d[1] = (f) => o("emit:close"))
74
60
  }, {
75
61
  default: b(() => [
76
- e.open ? (p(), L(Y, {
62
+ e.open ? (u(), L(j, {
77
63
  key: 0,
78
64
  ref_key: "refWindow",
79
- ref: a,
65
+ ref: l,
80
66
  class: S(["dwui-floating-component", { "dwui-lock-scroll": e.lockScroll }]),
81
67
  name: "dwui-floating-component",
82
- style: P({ "--dwui-order-window": s.value }),
68
+ style: F({ "--dwui-order-window": a.value }),
83
69
  "drag-mode": e.dragMode,
84
70
  loading: e.loading,
85
71
  "close-label": e.closeLabel,
86
72
  "clamp-bottom": !1,
87
73
  "header-class": e.headerClass,
88
74
  "header-style": e.headerStyle,
89
- onPointerdownCapture: r,
90
- onDblclick: i,
91
- "onEmit:close": d[0] || (d[0] = (w) => o("update:open", !1))
92
- }, se({
75
+ onPointerdownCapture: i,
76
+ onDblclick: r,
77
+ "onEmit:close": d[0] || (d[0] = (f) => o("update:open", !1))
78
+ }, Z({
93
79
  title: b(() => [
94
- re(y(e.title), 1)
80
+ ne(y(e.title), 1)
95
81
  ]),
96
82
  default: b(() => [
97
- le(c.$slots, "default")
83
+ ee(c.$slots, "default")
98
84
  ]),
99
85
  _: 2
100
86
  }, [
101
87
  e.copyValue != null ? {
102
88
  name: "actions",
103
89
  fn: b(() => [
104
- F(Q, {
90
+ z(G, {
105
91
  class: "dwui-floating-component-copy-button",
106
92
  value: e.copyValue,
107
93
  "aria-label": e.copyLabel
@@ -109,191 +95,121 @@ const he = "$index", H = (n) => {
109
95
  ]),
110
96
  key: "0"
111
97
  } : void 0
112
- ]), 1032, ["class", "style", "drag-mode", "loading", "close-label", "header-class", "header-style"])) : g("", !0)
98
+ ]), 1032, ["class", "style", "drag-mode", "loading", "close-label", "header-class", "header-style"])) : w("", !0)
113
99
  ]),
114
100
  _: 3
115
101
  }));
116
102
  }
117
- });
118
- function V(n, t, e) {
119
- const o = document.createElement("div");
120
- document.body.appendChild(o);
121
- const a = C(!0), s = C(!1), r = {
122
- close: () => {
123
- a.value = !1;
124
- },
125
- setLoading: (c) => {
126
- s.value = c;
127
- }
128
- }, i = E(() => () => n({
129
- open: a.value,
130
- loading: s.value,
131
- "onUpdate:open": (c) => {
132
- a.value = c;
133
- },
134
- "onEmit:close": () => {
135
- e.delete(r), m(null, o), o.remove(), t.onClosed?.(), t.onClose?.();
136
- }
137
- }, r)), l = u(i);
138
- return t.appContext && (l.appContext = t.appContext), m(l, o), e.add(r), r;
139
- }
140
- function I(n) {
141
- const t = ie();
142
- if (!t)
143
- throw new Error(`${n}() must be called inside setup().`);
144
- const e = /* @__PURE__ */ new Set();
145
- return ce(() => {
146
- for (const o of e)
147
- o.close();
148
- }), {
149
- appContext: t.appContext,
150
- own: (o) => {
151
- const a = o(() => {
152
- e.delete(a);
153
- });
154
- return e.add(a), a;
155
- }
156
- };
157
- }
158
- const z = /* @__PURE__ */ new Set(), k = (n, t, e) => {
159
- const { appContext: o, onClose: a, ...s } = t ?? {};
160
- return V((r, i) => u(be, {
103
+ }), P = /* @__PURE__ */ new Set(), v = (n, t, e) => {
104
+ const { appContext: o, onClose: l, ...a } = t ?? {};
105
+ return K((i, r) => p(ce, {
161
106
  closeLabel: "Close",
162
107
  copyLabel: "Copy",
163
108
  closeOnDblClick: !1,
164
109
  lockScroll: !1,
165
- ...s,
166
- ...r
110
+ ...a,
111
+ ...i
167
112
  }, {
168
- default: () => n(i)
169
- }), { appContext: o, onClose: a, onClosed: e }, z);
170
- }, N = (n, t) => (e) => u(n, {
113
+ default: () => n(r)
114
+ }), { appContext: o, onClose: l, onClosed: e }, P);
115
+ }, V = (n, t) => (e) => p(n, {
171
116
  ...t,
172
117
  ...e
173
- }), $ = (n) => typeof n == "string" ? n : JSON.stringify(n, null, 2), R = (n, t) => () => t && typeof n == "string" ? u("div", { class: "dwui-floating-component-message", innerHTML: n }) : u("div", { class: "dwui-floating-component-message" }, $(n));
174
- function Me(n, t, e) {
175
- return k(N(n, t), e);
118
+ }), B = (n) => typeof n == "string" ? n : JSON.stringify(n, null, 2), H = (n, t) => () => t && typeof n == "string" ? p("div", { class: "dwui-floating-component-message", innerHTML: n }) : p("div", { class: "dwui-floating-component-message" }, B(n));
119
+ function _e(n, t, e) {
120
+ return v(V(n, t), e);
176
121
  }
177
- function We(n, t) {
122
+ function Le(n, t) {
178
123
  const { html: e, ...o } = t ?? {};
179
- return k(R(n, e), {
180
- copyValue: $(n),
124
+ return v(H(n, e), {
125
+ copyValue: B(n),
181
126
  ...o
182
127
  });
183
128
  }
184
- function Pe() {
185
- for (const n of [...z])
129
+ function Se() {
130
+ for (const n of [...P])
186
131
  n.close();
187
132
  }
188
- function Fe() {
189
- const n = I("useFloatingComponent"), t = (e) => ({
133
+ function xe() {
134
+ const n = J("useFloatingComponent"), t = (e) => ({
190
135
  appContext: n.appContext,
191
136
  ...e
192
137
  });
193
138
  return {
194
- showFloatingComponent: (e, o, a) => n.own((s) => k(N(e, o), t(a), s)),
139
+ showFloatingComponent: (e, o, l) => n.own((a) => v(V(e, o), t(l), a)),
195
140
  showFloatingMessage: (e, o) => {
196
- const { html: a, ...s } = o ?? {};
197
- return n.own((r) => k(R(e, a), t({
198
- copyValue: $(e),
199
- ...s
200
- }), r));
141
+ const { html: l, ...a } = o ?? {};
142
+ return n.own((i) => v(H(e, l), t({
143
+ copyValue: B(e),
144
+ ...a
145
+ }), i));
201
146
  }
202
147
  };
203
148
  }
204
149
  function _(n, t) {
205
- const { icon: e, appContext: o, ...a } = t ?? {};
206
- return new Promise((s) => {
207
- const r = document.createElement("div");
208
- document.body.appendChild(r);
209
- const i = u(ee, {
210
- ...a,
150
+ const { icon: e, appContext: o, ...l } = t ?? {};
151
+ return new Promise((a) => {
152
+ const i = document.createElement("div");
153
+ document.body.appendChild(i);
154
+ const r = p(Q, {
155
+ ...l,
211
156
  message: n,
212
157
  open: !0,
213
- "onEmit:close": (l) => {
214
- m(null, r), r.remove(), s(l);
158
+ "onEmit:close": (s) => {
159
+ g(null, i), i.remove(), a(s);
215
160
  }
216
- }, e ? { icon: () => u(e) } : void 0);
217
- o && (i.appContext = o), m(i, r);
161
+ }, e ? { icon: () => p(e) } : void 0);
162
+ o && (r.appContext = o), g(r, i);
218
163
  });
219
164
  }
220
- function He(n, t) {
165
+ function Be(n, t) {
221
166
  return _(n, {
222
167
  ...t,
223
168
  type: "info"
224
169
  });
225
170
  }
226
- function Ve(n, t) {
171
+ function Ee(n, t) {
227
172
  return _(n, {
228
173
  ...t,
229
174
  type: "confirm"
230
175
  });
231
176
  }
232
- function Ie(n, t) {
177
+ function Te(n, t) {
233
178
  return _(n, {
234
179
  ...t,
235
180
  type: "warn"
236
181
  });
237
182
  }
238
- function ze(n, t) {
183
+ function Oe(n, t) {
239
184
  return _(n, {
240
185
  ...t,
241
186
  type: "error"
242
187
  });
243
188
  }
244
- const j = /* @__PURE__ */ new Set(), G = (n, t, e, o) => {
245
- const { appContext: a, onClose: s, ...r } = e ?? {};
246
- return V((i, l) => u(ne, {
247
- ...r,
248
- ...i
249
- }, {
250
- default: () => u(n, {
251
- ...t,
252
- close: l.close,
253
- setLoading: l.setLoading
254
- })
255
- }), { appContext: a, onClose: s, onClosed: o }, j);
256
- };
257
- function Ne(n, t, e) {
258
- return G(n, t, e);
259
- }
260
- function Re() {
261
- for (const n of [...j])
262
- n.close();
263
- }
264
- function je() {
265
- const n = I("useOverlayBox");
266
- return {
267
- showOverlayBox: (t, e, o) => n.own((a) => G(t, e, {
268
- appContext: n.appContext,
269
- ...o
270
- }, a))
271
- };
272
- }
273
- function Ge(n) {
189
+ function $e(n) {
274
190
  const t = document.createElement("div");
275
191
  document.body.appendChild(t);
276
192
  const e = () => {
277
- m(null, t), t.remove();
193
+ g(null, t), t.remove();
278
194
  };
279
- return m(u(te, {
195
+ return g(p(U, {
280
196
  ...n,
281
197
  loading: !0
282
198
  }), t), { close: e };
283
199
  }
284
- const ye = ["aria-label", "title"], ve = ["title", "onClick"], Ce = {
200
+ const de = ["aria-label", "title"], ue = ["title", "onClick"], pe = {
285
201
  key: 0,
286
202
  class: "dwui-snackbar-header"
287
- }, ke = {
203
+ }, me = {
288
204
  key: 0,
289
205
  class: "dwui-snackbar-title"
290
- }, xe = {
206
+ }, fe = {
291
207
  key: 1,
292
208
  class: "dwui-snackbar-label"
293
- }, _e = { class: "dwui-snackbar-message" }, Le = {
209
+ }, we = { class: "dwui-snackbar-message" }, ge = {
294
210
  key: 1,
295
211
  class: "dwui-snackbar-timestamp"
296
- }, Se = /* @__PURE__ */ E({
212
+ }, he = /* @__PURE__ */ W({
297
213
  __name: "snackbar-container",
298
214
  props: {
299
215
  placement: {},
@@ -302,147 +218,147 @@ const ye = ["aria-label", "title"], ve = ["title", "onClick"], Ce = {
302
218
  },
303
219
  emits: ["emit:close", "emit:clear", "emit:afterLeave"],
304
220
  setup(n, { emit: t }) {
305
- const e = n, o = t, a = M(() => {
306
- const [r, i = "center"] = e.placement.split("-");
221
+ const e = n, o = t, l = M(() => {
222
+ const [i, r = "center"] = e.placement.split("-");
307
223
  return [
308
- `dwui-snackbar-container-${r}`,
309
224
  `dwui-snackbar-container-${i}`,
225
+ `dwui-snackbar-container-${r}`,
310
226
  `dwui-snackbar-container-${e.direction}`
311
227
  ];
312
- }), s = M(() => e.items.filter((r) => r.clearable).at(-1)?.clearLabel);
313
- return (r, i) => (p(), L(de, {
228
+ }), a = M(() => e.items.filter((i) => i.clearable).at(-1)?.clearLabel);
229
+ return (i, r) => (u(), L(te, {
314
230
  tag: "div",
315
231
  name: "dwui-snackbar-fade",
316
- class: S(["dwui-snackbar-container", a.value]),
232
+ class: S(["dwui-snackbar-container", l.value]),
317
233
  role: "status",
318
- onAfterLeave: i[1] || (i[1] = (l) => o("emit:afterLeave"))
234
+ onAfterLeave: r[1] || (r[1] = (s) => o("emit:afterLeave"))
319
235
  }, {
320
236
  default: b(() => [
321
- s.value != null ? (p(), f("button", {
237
+ a.value != null ? (u(), m("button", {
322
238
  key: "clear",
323
239
  type: "button",
324
240
  class: "dwui-snackbar-clear-button",
325
- "aria-label": s.value,
326
- title: s.value,
327
- onClick: i[0] || (i[0] = (l) => o("emit:clear"))
241
+ "aria-label": a.value,
242
+ title: a.value,
243
+ onClick: r[0] || (r[0] = (s) => o("emit:clear"))
328
244
  }, [
329
- F(ue(ge))
330
- ], 8, ye)) : g("", !0),
331
- (p(!0), f(pe, null, me(e.items, (l) => (p(), f("button", {
332
- key: l.id,
245
+ z(oe(re))
246
+ ], 8, de)) : w("", !0),
247
+ (u(!0), m(ae, null, le(e.items, (s) => (u(), m("button", {
248
+ key: s.id,
333
249
  type: "button",
334
- class: S(["dwui-snackbar", l.class]),
335
- style: P(l.style),
336
- title: l.message,
337
- onClick: (c) => o("emit:close", l.id)
250
+ class: S(["dwui-snackbar", s.class]),
251
+ style: F(s.style),
252
+ title: s.message,
253
+ onClick: (c) => o("emit:close", s.id)
338
254
  }, [
339
- l.title || l.label ? (p(), f("span", Ce, [
340
- l.title ? (p(), f("span", ke, y(l.title), 1)) : g("", !0),
341
- l.label ? (p(), f("span", xe, y(l.label), 1)) : g("", !0)
342
- ])) : g("", !0),
343
- fe("span", _e, y(l.message), 1),
344
- l.timestamp ? (p(), f("span", Le, y(l.timestamp), 1)) : g("", !0)
345
- ], 14, ve))), 128))
255
+ s.title || s.label ? (u(), m("span", pe, [
256
+ s.title ? (u(), m("span", me, y(s.title), 1)) : w("", !0),
257
+ s.label ? (u(), m("span", fe, y(s.label), 1)) : w("", !0)
258
+ ])) : w("", !0),
259
+ se("span", we, y(s.message), 1),
260
+ s.timestamp ? (u(), m("span", ge, y(s.timestamp), 1)) : w("", !0)
261
+ ], 14, ue))), 128))
346
262
  ]),
347
263
  _: 1
348
264
  }, 8, ["class"]));
349
265
  }
350
- }), Be = 50, v = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
351
- let W = 0;
352
- const x = (n, t, e) => {
353
- const o = n.findIndex((s) => s.id === t);
266
+ }), be = 50, C = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
267
+ let A = 0;
268
+ const k = (n, t, e) => {
269
+ const o = n.findIndex((a) => a.id === t);
354
270
  if (o < 0)
355
271
  return;
356
272
  n.splice(o, 1);
357
- const a = B.get(t);
358
- B.delete(t), clearTimeout(a?.timer), a?.onClose?.(e);
359
- }, K = (n) => {
273
+ const l = x.get(t);
274
+ x.delete(t), clearTimeout(l?.timer), l?.onClose?.(e);
275
+ }, I = (n) => {
360
276
  const t = n.map((e) => e.id);
361
277
  for (let e = 0; e < t.length; e++)
362
- setTimeout(() => x(n, t[e], "clear"), Be * e);
363
- }, Ee = (n, t) => {
364
- const e = `${n} ${t}`, o = v.get(e);
278
+ setTimeout(() => k(n, t[e], "clear"), be * e);
279
+ }, ye = (n, t) => {
280
+ const e = `${n} ${t}`, o = C.get(e);
365
281
  if (o)
366
282
  return o;
367
- const a = document.createElement("div");
368
- document.body.appendChild(a);
369
- const s = we([]);
370
- return v.set(e, s), m(u(Se, {
283
+ const l = document.createElement("div");
284
+ document.body.appendChild(l);
285
+ const a = ie([]);
286
+ return C.set(e, a), g(p(he, {
371
287
  placement: n,
372
288
  direction: t,
373
- items: s,
374
- "onEmit:close": (r) => x(s, r, "click"),
375
- "onEmit:clear": () => K(s),
289
+ items: a,
290
+ "onEmit:close": (i) => k(a, i, "click"),
291
+ "onEmit:clear": () => I(a),
376
292
  "onEmit:afterLeave": () => {
377
- s.length === 0 && v.get(e) === s && (v.delete(e), m(null, a), a.remove());
293
+ a.length === 0 && C.get(e) === a && (C.delete(e), g(null, l), l.remove());
378
294
  }
379
- }), a), s;
295
+ }), l), a;
380
296
  };
381
- function Ke(n, t) {
297
+ function De(n, t) {
382
298
  const {
383
299
  placement: e = "bottom",
384
300
  direction: o = "overlap",
385
- duration: a,
386
- clearable: s = !1,
387
- clearLabel: r = "Clear all",
388
- onClose: i,
389
- ...l
390
- } = t ?? {}, c = Ee(e, o);
391
- W += 1;
392
- const d = W;
301
+ duration: l,
302
+ clearable: a = !1,
303
+ clearLabel: i = "Clear all",
304
+ onClose: r,
305
+ ...s
306
+ } = t ?? {}, c = ye(e, o);
307
+ A += 1;
308
+ const d = A;
393
309
  return c.push({
394
- ...l,
310
+ ...s,
395
311
  id: d,
396
312
  message: n,
397
- clearable: s,
398
- clearLabel: r
399
- }), B.set(d, {
400
- timer: a ? setTimeout(() => x(c, d, "duration"), a) : void 0,
401
- onClose: i
313
+ clearable: a,
314
+ clearLabel: i
315
+ }), x.set(d, {
316
+ timer: l ? setTimeout(() => k(c, d, "duration"), l) : void 0,
317
+ onClose: r
402
318
  }), {
403
- close: () => x(c, d, "handle")
319
+ close: () => k(c, d, "handle")
404
320
  };
405
321
  }
406
- function Ue() {
407
- for (const n of v.values())
408
- K(n);
322
+ function Me() {
323
+ for (const n of C.values())
324
+ I(n);
409
325
  }
410
326
  export {
411
- Xe as AccordionFieldset,
412
- Ye as AccordionSection,
413
- Q as CopyButton,
414
- Qe as DarkModeSelector,
415
- Ze as DataTable,
416
- en as HelpButton,
417
- nn as HelpPopper,
418
- tn as HourglassLoading,
419
- on as IntersectionLazyComponent,
420
- an as LabelButton,
421
- sn as LabelIcon,
422
- ee as ModalDialog,
423
- ne as OverlayBox,
424
- ln as PageSection,
425
- rn as PageTitle,
426
- te as ScreenLoading,
427
- cn as TabContent,
428
- dn as TabGroup,
429
- un as WarningPopper,
430
- Pe as closeAllFloatingComponents,
431
- Re as closeAllOverlayBoxes,
432
- Ue as closeAllSnackbars,
433
- De as headersToCsvColumns,
434
- Ae as rowToCsvColumns,
435
- Ve as showConfirmationDialog,
436
- ze as showErrorDialog,
437
- Me as showFloatingComponent,
438
- We as showFloatingMessage,
439
- He as showInformationDialog,
327
+ Fe as AccordionFieldset,
328
+ ze as AccordionSection,
329
+ G as CopyButton,
330
+ Pe as DarkModeSelector,
331
+ Ve as DataTable,
332
+ He as HelpButton,
333
+ Ie as HelpPopper,
334
+ Ne as HourglassLoading,
335
+ Re as IntersectionLazyComponent,
336
+ je as LabelButton,
337
+ Ge as LabelIcon,
338
+ Q as ModalDialog,
339
+ qe as OverlayBox,
340
+ Je as PageSection,
341
+ Ke as PageTitle,
342
+ U as ScreenLoading,
343
+ Qe as TabContent,
344
+ Ue as TabGroup,
345
+ Xe as WarningPopper,
346
+ Se as closeAllFloatingComponents,
347
+ Ye as closeAllOverlayBoxes,
348
+ Me as closeAllSnackbars,
349
+ Ze as headersToCsvColumns,
350
+ en as rowToCsvColumns,
351
+ Ee as showConfirmationDialog,
352
+ Oe as showErrorDialog,
353
+ _e as showFloatingComponent,
354
+ Le as showFloatingMessage,
355
+ Be as showInformationDialog,
440
356
  _ as showModalDialog,
441
- Ne as showOverlayBox,
442
- Ge as showScreenLoading,
443
- Ke as showSnackbar,
444
- Ie as showWarningDialog,
445
- Fe as useFloatingComponent,
446
- je as useOverlayBox,
447
- pn as vueCoreOptionsKey
357
+ nn as showOverlayBox,
358
+ $e as showScreenLoading,
359
+ De as showSnackbar,
360
+ Te as showWarningDialog,
361
+ xe as useFloatingComponent,
362
+ tn as useOverlayBox,
363
+ on as vueCoreOptionsKey
448
364
  };
@@ -1,4 +1,4 @@
1
- import { DataTableResolvedLabels } from '../types/data-table.cjs';
1
+ import { DataTableResolvedLabels } from '../helpers/data-table.cjs';
2
2
  interface Props {
3
3
  /** ページネーションを表示するか */
4
4
  pagination: boolean;
@@ -1,4 +1,4 @@
1
- import { DataTableResolvedLabels } from '../types/data-table';
1
+ import { DataTableResolvedLabels } from '../helpers/data-table';
2
2
  interface Props {
3
3
  /** ページネーションを表示するか */
4
4
  pagination: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
- import { MovableWindowDragMode } from '../types/movable-window.cjs';
2
+ import { MovableWindowDragMode } from './window-control.cjs';
3
3
  interface Props {
4
4
  /** 表示するか */
5
5
  open: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
- import { MovableWindowDragMode } from '../types/movable-window';
2
+ import { MovableWindowDragMode } from './window-control';
3
3
  interface Props {
4
4
  /** 表示するか */
5
5
  open: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ClassValue, StyleValue } from 'vue';
2
- import { MovableWindowDragMode } from '../types/movable-window.cjs';
2
+ import { MovableWindowDragMode } from './window-control.cjs';
3
3
  interface Props {
4
4
  /** 各部位のクラスの接頭辞。利用側のコンポーネントのクラス名(dwui-overlay-box など) */
5
5
  name: string;