@digitalwalletcorp/vue-core 1.4.2 → 1.4.5

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 (41) hide show
  1. package/README.md +8 -3
  2. package/lib/{components-ytOBcKlQ.cjs → components-Dniui6mw.cjs} +1 -1
  3. package/lib/{components-Mk1fpjbw.js → components-gKR_xoi-.js} +1 -1
  4. package/lib/copy-button.d.cts +6 -0
  5. package/lib/copy-button.d.ts +6 -0
  6. package/lib/help-button.d.cts +2 -2
  7. package/lib/help-button.d.ts +2 -2
  8. package/lib/help-popper.d.cts +2 -2
  9. package/lib/help-popper.d.ts +2 -2
  10. package/lib/helpers/snackbar.d.cts +17 -2
  11. package/lib/helpers/snackbar.d.ts +17 -2
  12. package/lib/helpers/vue-core-options.d.cts +12 -1
  13. package/lib/helpers/vue-core-options.d.ts +12 -1
  14. package/lib/index.cjs +1 -1
  15. package/lib/index.d.cts +2 -2
  16. package/lib/index.d.ts +2 -2
  17. package/lib/index.js +139 -265
  18. package/lib/internal/anchored-popover.d.cts +2 -2
  19. package/lib/internal/anchored-popover.d.ts +2 -2
  20. package/lib/internal/date-format.d.cts +9 -0
  21. package/lib/internal/date-format.d.ts +9 -0
  22. package/lib/internal/icon-popper.d.cts +2 -2
  23. package/lib/internal/icon-popper.d.ts +2 -2
  24. package/lib/nuxt.cjs +1 -1
  25. package/lib/nuxt.js +1 -1
  26. package/lib/register.cjs +1 -1
  27. package/lib/register.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/warning-popper.d.cts +2 -2
  30. package/lib/warning-popper.d.ts +2 -2
  31. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BxdfpRXg.cjs +4 -0
  32. package/lib/warning-popper.vue_vue_type_style_index_0_lang-DuzeuEx2.js +2178 -0
  33. package/package.json +1 -1
  34. package/src/copy-button.vue +14 -1
  35. package/src/helpers/snackbar.ts +34 -3
  36. package/src/helpers/vue-core-options.ts +13 -1
  37. package/src/index.ts +2 -2
  38. package/src/internal/date-format.ts +25 -0
  39. package/src/modal-dialog.vue +26 -0
  40. package/lib/warning-popper.vue_vue_type_style_index_0_lang-142lRixg.cjs +0 -4
  41. package/lib/warning-popper.vue_vue_type_style_index_0_lang-BKR56ef2.js +0 -2019
package/lib/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import { n as $, _ as j, a as G, c as q, t as B, u as K, m as J, b as Q, d as U } from "./warning-popper.vue_vue_type_style_index_0_lang-BKR56ef2.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 Ke, s as Je, v as Qe, w as Ue, x as Xe, y as Ye, z as Ze, A as en, B as nn, C as tn, D as on } from "./warning-popper.vue_vue_type_style_index_0_lang-BKR56ef2.js";
3
- import { defineComponent as W, ref as O, 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({
1
+ import { n as S, _ as T, a as W, c as F, t as y, u as A, m as E, b as P, d as z } from "./warning-popper.vue_vue_type_style_index_0_lang-DuzeuEx2.js";
2
+ import { e as ce, f as de, g as pe, h as ue, i as me, j as fe, k as we, l as ge, o as he, p as ye, q as Ce, r as be, s as ve, v as Se, w as ke, x as xe, y as Be, z as De, A as Le, B as Oe, C as _e, D as Me, E as Te, F as We, G as Fe } from "./warning-popper.vue_vue_type_style_index_0_lang-DuzeuEx2.js";
3
+ import { defineComponent as H, ref as k, onMounted as V, openBlock as x, createBlock as B, Transition as $, withCtx as m, normalizeStyle as N, normalizeClass as j, createSlots as I, renderSlot as G, createTextVNode as R, toDisplayString as q, createVNode as K, createCommentVNode as J, h as c, render as f } from "vue";
4
+ const Q = /* @__PURE__ */ H({
6
5
  __name: "floating-component",
7
6
  props: {
8
7
  open: { type: Boolean },
@@ -20,52 +19,52 @@ const ce = /* @__PURE__ */ W({
20
19
  headerStyle: { type: [Boolean, null, String, Object, Array] }
21
20
  },
22
21
  emits: ["update:open", "emit:close"],
23
- setup(n, { emit: t }) {
24
- const e = n, o = t, l = O(), a = O($()), i = () => {
25
- a.value = $();
26
- }, r = () => {
27
- e.closeOnDblClick && o("update:open", !1);
28
- }, s = () => {
29
- const c = l.value;
30
- if (!c?.element)
22
+ setup(o, { emit: n }) {
23
+ const e = o, t = n, a = k(), l = k(S()), i = () => {
24
+ l.value = S();
25
+ }, d = () => {
26
+ e.closeOnDblClick && t("update:open", !1);
27
+ }, h = () => {
28
+ const s = a.value;
29
+ if (!s?.element)
31
30
  return;
32
- const d = c.element.getBoundingClientRect();
33
- let f = e.initialSize?.width ?? d.width;
34
- window.innerWidth < f && (f = window.innerWidth * 0.9);
35
- let h = e.initialSize?.height ?? -1;
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;
31
+ const r = s.element.getBoundingClientRect();
32
+ let p = e.initialSize?.width ?? r.width;
33
+ window.innerWidth < p && (p = window.innerWidth * 0.9);
34
+ let u = e.initialSize?.height ?? -1;
35
+ window.innerHeight < u && (u = window.innerHeight * 0.9), s.size.width = p, s.size.height = u;
36
+ const C = document.documentElement.scrollLeft, b = document.documentElement.scrollTop;
38
37
  if (e.anchor) {
39
- const N = {
40
- width: f,
41
- height: 0 <= h ? h : d.height
42
- }, R = {
38
+ const _ = {
39
+ width: p,
40
+ height: 0 <= u ? u : r.height
41
+ }, M = {
43
42
  width: document.documentElement.clientWidth,
44
43
  height: document.documentElement.clientHeight
45
- }, D = q(e.anchor.getBoundingClientRect(), N, R, {
44
+ }, v = F(e.anchor.getBoundingClientRect(), _, M, {
46
45
  placement: "bottom-start",
47
46
  offset: 0,
48
47
  margin: 0,
49
48
  arrowMargin: 0
50
49
  });
51
- c.position.x = D.left + E, c.position.y = D.top + T;
50
+ s.position.x = v.left + C, s.position.y = v.top + b;
52
51
  } else
53
- c.position.x = 10 + E, c.position.y = 10 + T;
52
+ s.position.x = 10 + C, s.position.y = 10 + b;
54
53
  };
55
- return X(() => {
56
- e.open && s();
57
- }), (c, d) => (u(), L(Y, {
54
+ return V(() => {
55
+ e.open && h();
56
+ }), (s, r) => (x(), B($, {
58
57
  name: "dwui-floating-component-fade",
59
- onAfterLeave: d[1] || (d[1] = (f) => o("emit:close"))
58
+ onAfterLeave: r[1] || (r[1] = (p) => t("emit:close"))
60
59
  }, {
61
- default: b(() => [
62
- e.open ? (u(), L(j, {
60
+ default: m(() => [
61
+ e.open ? (x(), B(T, {
63
62
  key: 0,
64
63
  ref_key: "refWindow",
65
- ref: l,
66
- class: S(["dwui-floating-component", { "dwui-lock-scroll": e.lockScroll }]),
64
+ ref: a,
65
+ class: j(["dwui-floating-component", { "dwui-lock-scroll": e.lockScroll }]),
67
66
  name: "dwui-floating-component",
68
- style: F({ "--dwui-order-window": a.value }),
67
+ style: N({ "--dwui-order-window": l.value }),
69
68
  "drag-mode": e.dragMode,
70
69
  loading: e.loading,
71
70
  "close-label": e.closeLabel,
@@ -73,21 +72,21 @@ const ce = /* @__PURE__ */ W({
73
72
  "header-class": e.headerClass,
74
73
  "header-style": e.headerStyle,
75
74
  onPointerdownCapture: i,
76
- onDblclick: r,
77
- "onEmit:close": d[0] || (d[0] = (f) => o("update:open", !1))
78
- }, Z({
79
- title: b(() => [
80
- ne(y(e.title), 1)
75
+ onDblclick: d,
76
+ "onEmit:close": r[0] || (r[0] = (p) => t("update:open", !1))
77
+ }, I({
78
+ title: m(() => [
79
+ R(q(e.title), 1)
81
80
  ]),
82
- default: b(() => [
83
- ee(c.$slots, "default")
81
+ default: m(() => [
82
+ G(s.$slots, "default")
84
83
  ]),
85
84
  _: 2
86
85
  }, [
87
86
  e.copyValue != null ? {
88
87
  name: "actions",
89
- fn: b(() => [
90
- z(G, {
88
+ fn: m(() => [
89
+ K(W, {
91
90
  class: "dwui-floating-component-copy-button",
92
91
  value: e.copyValue,
93
92
  "aria-label": e.copyLabel
@@ -95,270 +94,145 @@ const ce = /* @__PURE__ */ W({
95
94
  ]),
96
95
  key: "0"
97
96
  } : void 0
98
- ]), 1032, ["class", "style", "drag-mode", "loading", "close-label", "header-class", "header-style"])) : w("", !0)
97
+ ]), 1032, ["class", "style", "drag-mode", "loading", "close-label", "header-class", "header-style"])) : J("", !0)
99
98
  ]),
100
99
  _: 3
101
100
  }));
102
101
  }
103
- }), P = /* @__PURE__ */ new Set(), v = (n, t, e) => {
104
- const { appContext: o, onClose: l, ...a } = t ?? {};
105
- return J((i, r) => p(ce, {
102
+ }), D = /* @__PURE__ */ new Set(), w = (o, n, e) => {
103
+ const { appContext: t, onClose: a, ...l } = n ?? {};
104
+ return E((i, d) => c(Q, {
106
105
  closeLabel: "Close",
107
106
  copyLabel: "Copy",
108
107
  closeOnDblClick: !1,
109
108
  lockScroll: !1,
110
- ...a,
109
+ ...l,
111
110
  ...i
112
111
  }, {
113
- default: () => n(r)
114
- }), { appContext: o, onClose: l, onClosed: e }, P);
115
- }, V = (n, t) => (e) => p(n, {
116
- ...t,
112
+ default: () => o(d)
113
+ }), { appContext: t, onClose: a, onClosed: e }, D);
114
+ }, L = (o, n) => (e) => c(o, {
115
+ ...n,
117
116
  ...e
118
- }), 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);
117
+ }), O = (o, n) => () => n && typeof o == "string" ? c("div", { class: "dwui-floating-component-message", innerHTML: o }) : c("div", { class: "dwui-floating-component-message" }, y(o));
118
+ function Y(o, n, e) {
119
+ return w(L(o, n), e);
121
120
  }
122
- function Le(n, t) {
123
- const { html: e, ...o } = t ?? {};
124
- return v(H(n, e), {
125
- copyValue: B(n),
126
- ...o
121
+ function Z(o, n) {
122
+ const { html: e, ...t } = n ?? {};
123
+ return w(O(o, e), {
124
+ copyValue: y(o),
125
+ ...t
127
126
  });
128
127
  }
129
- function Se() {
130
- for (const n of [...P])
131
- n.close();
128
+ function ee() {
129
+ for (const o of [...D])
130
+ o.close();
132
131
  }
133
- function xe() {
134
- const n = K("useFloatingComponent"), t = (e) => ({
135
- appContext: n.appContext,
132
+ function oe() {
133
+ const o = A("useFloatingComponent"), n = (e) => ({
134
+ appContext: o.appContext,
136
135
  ...e
137
136
  });
138
137
  return {
139
- showFloatingComponent: (e, o, l) => n.own((a) => v(V(e, o), t(l), a)),
140
- showFloatingMessage: (e, o) => {
141
- const { html: l, ...a } = o ?? {};
142
- return n.own((i) => v(H(e, l), t({
143
- copyValue: B(e),
144
- ...a
138
+ showFloatingComponent: (e, t, a) => o.own((l) => w(L(e, t), n(a), l)),
139
+ showFloatingMessage: (e, t) => {
140
+ const { html: a, ...l } = t ?? {};
141
+ return o.own((i) => w(O(e, a), n({
142
+ copyValue: y(e),
143
+ ...l
145
144
  }), i));
146
145
  }
147
146
  };
148
147
  }
149
- function _(n, t) {
150
- const { icon: e, appContext: o, ...l } = t ?? {};
151
- return new Promise((a) => {
148
+ function g(o, n) {
149
+ const { icon: e, appContext: t, ...a } = n ?? {};
150
+ return new Promise((l) => {
152
151
  const i = document.createElement("div");
153
152
  document.body.appendChild(i);
154
- const r = p(Q, {
155
- ...l,
156
- message: n,
153
+ const d = c(P, {
154
+ ...a,
155
+ message: o,
157
156
  open: !0,
158
- "onEmit:close": (s) => {
159
- g(null, i), i.remove(), a(s);
157
+ "onEmit:close": (h) => {
158
+ f(null, i), i.remove(), l(h);
160
159
  }
161
- }, e ? { icon: () => p(e) } : void 0);
162
- o && (r.appContext = o), g(r, i);
160
+ }, e ? { icon: () => c(e) } : void 0);
161
+ t && (d.appContext = t), f(d, i);
163
162
  });
164
163
  }
165
- function Be(n, t) {
166
- return _(n, {
167
- ...t,
164
+ function ne(o, n) {
165
+ return g(o, {
166
+ ...n,
168
167
  type: "info"
169
168
  });
170
169
  }
171
- function Ee(n, t) {
172
- return _(n, {
173
- ...t,
170
+ function te(o, n) {
171
+ return g(o, {
172
+ ...n,
174
173
  type: "confirm"
175
174
  });
176
175
  }
177
- function Te(n, t) {
178
- return _(n, {
179
- ...t,
176
+ function ae(o, n) {
177
+ return g(o, {
178
+ ...n,
180
179
  type: "warn"
181
180
  });
182
181
  }
183
- function De(n, t) {
184
- return _(n, {
185
- ...t,
182
+ function le(o, n) {
183
+ return g(o, {
184
+ ...n,
186
185
  type: "error"
187
186
  });
188
187
  }
189
- function $e(n) {
190
- const t = document.createElement("div");
191
- document.body.appendChild(t);
188
+ function ie(o) {
189
+ const n = document.createElement("div");
190
+ document.body.appendChild(n);
192
191
  const e = () => {
193
- g(null, t), t.remove();
192
+ f(null, n), n.remove();
194
193
  };
195
- return g(p(U, {
196
- ...n,
194
+ return f(c(z, {
195
+ ...o,
197
196
  loading: !0
198
- }), t), { close: e };
199
- }
200
- const de = ["aria-label", "title"], ue = ["title", "onClick"], pe = {
201
- key: 0,
202
- class: "dwui-snackbar-header"
203
- }, me = {
204
- key: 0,
205
- class: "dwui-snackbar-title"
206
- }, fe = {
207
- key: 1,
208
- class: "dwui-snackbar-label"
209
- }, we = { class: "dwui-snackbar-message" }, ge = {
210
- key: 1,
211
- class: "dwui-snackbar-timestamp"
212
- }, he = /* @__PURE__ */ W({
213
- __name: "snackbar-container",
214
- props: {
215
- placement: {},
216
- direction: {},
217
- items: {}
218
- },
219
- emits: ["emit:close", "emit:clear", "emit:afterLeave"],
220
- setup(n, { emit: t }) {
221
- const e = n, o = t, l = M(() => {
222
- const [i, r = "center"] = e.placement.split("-");
223
- return [
224
- `dwui-snackbar-container-${i}`,
225
- `dwui-snackbar-container-${r}`,
226
- `dwui-snackbar-container-${e.direction}`
227
- ];
228
- }), a = M(() => e.items.filter((i) => i.clearable).at(-1)?.clearLabel);
229
- return (i, r) => (u(), L(te, {
230
- tag: "div",
231
- name: "dwui-snackbar-fade",
232
- class: S(["dwui-snackbar-container", l.value]),
233
- role: "status",
234
- onAfterLeave: r[1] || (r[1] = (s) => o("emit:afterLeave"))
235
- }, {
236
- default: b(() => [
237
- a.value != null ? (u(), m("button", {
238
- key: "clear",
239
- type: "button",
240
- class: "dwui-snackbar-clear-button",
241
- "aria-label": a.value,
242
- title: a.value,
243
- onClick: r[0] || (r[0] = (s) => o("emit:clear"))
244
- }, [
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,
249
- type: "button",
250
- class: S(["dwui-snackbar", s.class]),
251
- style: F(s.style),
252
- title: s.message,
253
- onClick: (c) => o("emit:close", s.id)
254
- }, [
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))
262
- ]),
263
- _: 1
264
- }, 8, ["class"]));
265
- }
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);
270
- if (o < 0)
271
- return;
272
- n.splice(o, 1);
273
- const l = x.get(t);
274
- x.delete(t), clearTimeout(l?.timer), l?.onClose?.(e);
275
- }, I = (n) => {
276
- const t = n.map((e) => e.id);
277
- for (let e = 0; e < t.length; e++)
278
- setTimeout(() => k(n, t[e], "clear"), be * e);
279
- }, ye = (n, t) => {
280
- const e = `${n} ${t}`, o = C.get(e);
281
- if (o)
282
- return o;
283
- const l = document.createElement("div");
284
- document.body.appendChild(l);
285
- const a = ie([]);
286
- return C.set(e, a), g(p(he, {
287
- placement: n,
288
- direction: t,
289
- items: a,
290
- "onEmit:close": (i) => k(a, i, "click"),
291
- "onEmit:clear": () => I(a),
292
- "onEmit:afterLeave": () => {
293
- a.length === 0 && C.get(e) === a && (C.delete(e), g(null, l), l.remove());
294
- }
295
- }), l), a;
296
- };
297
- function Oe(n, t) {
298
- const {
299
- placement: e = "bottom",
300
- direction: o = "overlap",
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;
309
- return c.push({
310
- ...s,
311
- id: d,
312
- message: n,
313
- clearable: a,
314
- clearLabel: i
315
- }), x.set(d, {
316
- timer: l ? setTimeout(() => k(c, d, "duration"), l) : void 0,
317
- onClose: r
318
- }), {
319
- close: () => k(c, d, "handle")
320
- };
321
- }
322
- function Me() {
323
- for (const n of C.values())
324
- I(n);
197
+ }), n), { close: e };
325
198
  }
326
199
  export {
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
- Ke as PageSection,
341
- Je 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
- De as showErrorDialog,
353
- _e as showFloatingComponent,
354
- Le as showFloatingMessage,
355
- Be as showInformationDialog,
356
- _ as showModalDialog,
357
- nn as showOverlayBox,
358
- $e as showScreenLoading,
359
- Oe as showSnackbar,
360
- Te as showWarningDialog,
361
- xe as useFloatingComponent,
362
- tn as useOverlayBox,
363
- on as vueCoreOptionsKey
200
+ ce as AccordionFieldset,
201
+ de as AccordionSection,
202
+ W as CopyButton,
203
+ pe as DarkModeSelector,
204
+ ue as DataTable,
205
+ me as HelpButton,
206
+ fe as HelpPopper,
207
+ we as HourglassLoading,
208
+ ge as IntersectionLazyComponent,
209
+ he as LabelButton,
210
+ ye as LabelIcon,
211
+ P as ModalDialog,
212
+ Ce as OverlayBox,
213
+ be as PageSection,
214
+ ve as PageTitle,
215
+ z as ScreenLoading,
216
+ Se as TabContent,
217
+ ke as TabGroup,
218
+ xe as WarningPopper,
219
+ ee as closeAllFloatingComponents,
220
+ Be as closeAllOverlayBoxes,
221
+ De as closeAllSnackbars,
222
+ Le as headersToCsvColumns,
223
+ Oe as rowToCsvColumns,
224
+ te as showConfirmationDialog,
225
+ le as showErrorDialog,
226
+ Y as showFloatingComponent,
227
+ Z as showFloatingMessage,
228
+ ne as showInformationDialog,
229
+ g as showModalDialog,
230
+ _e as showOverlayBox,
231
+ ie as showScreenLoading,
232
+ Me as showSnackbar,
233
+ ae as showWarningDialog,
234
+ oe as useFloatingComponent,
235
+ Te as useOverlayBox,
236
+ We as useSnackbar,
237
+ Fe as vueCoreOptionsKey
364
238
  };
@@ -19,11 +19,11 @@ declare const __VLS_base: import('vue').DefineComponent<Props, {
19
19
  show: () => void;
20
20
  hide: () => void;
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
- "emit:open": () => any;
23
22
  "emit:close": () => any;
23
+ "emit:open": () => any;
24
24
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
- "onEmit:open"?: (() => any) | undefined;
26
25
  "onEmit:close"?: (() => any) | undefined;
26
+ "onEmit:open"?: (() => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
@@ -19,11 +19,11 @@ declare const __VLS_base: import('vue').DefineComponent<Props, {
19
19
  show: () => void;
20
20
  hide: () => void;
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
- "emit:open": () => any;
23
22
  "emit:close": () => any;
23
+ "emit:open": () => any;
24
24
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
- "onEmit:open"?: (() => any) | undefined;
26
25
  "onEmit:close"?: (() => any) | undefined;
26
+ "onEmit:open"?: (() => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 時刻を snackbar に表示する書式(yyyy-MM-dd HH:mm:ss+09:00)の文字列にする。
3
+ * タイムゾーンが不正なときは RangeError をスローする
4
+ *
5
+ * @param {string} timezone IANA のタイムゾーン名。空文字は UTC
6
+ * @param {Date} [date] 整形する時刻。省略時は現在時刻
7
+ * @returns {string}
8
+ */
9
+ export declare function formatTimestamp(timezone: string, date?: Date): string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 時刻を snackbar に表示する書式(yyyy-MM-dd HH:mm:ss+09:00)の文字列にする。
3
+ * タイムゾーンが不正なときは RangeError をスローする
4
+ *
5
+ * @param {string} timezone IANA のタイムゾーン名。空文字は UTC
6
+ * @param {Date} [date] 整形する時刻。省略時は現在時刻
7
+ * @returns {string}
8
+ */
9
+ export declare function formatTimestamp(timezone: string, date?: Date): string;
@@ -16,11 +16,11 @@ type __VLS_Slots = {} & {
16
16
  default?: (props: typeof __VLS_15) => any;
17
17
  };
18
18
  declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- "emit:open": () => any;
20
19
  "emit:close": () => any;
20
+ "emit:open": () => any;
21
21
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
22
- "onEmit:open"?: (() => any) | undefined;
23
22
  "onEmit:close"?: (() => any) | undefined;
23
+ "onEmit:open"?: (() => any) | undefined;
24
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -16,11 +16,11 @@ type __VLS_Slots = {} & {
16
16
  default?: (props: typeof __VLS_15) => any;
17
17
  };
18
18
  declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- "emit:open": () => any;
20
19
  "emit:close": () => any;
20
+ "emit:open": () => any;
21
21
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
22
- "onEmit:open"?: (() => any) | undefined;
23
22
  "onEmit:close"?: (() => any) | undefined;
23
+ "onEmit:open"?: (() => any) | undefined;
24
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
package/lib/nuxt.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@nuxt/kit"),r=require("./components-ytOBcKlQ.cjs");var t=typeof document<"u"?document.currentScript:null;const u=e.defineNuxtModule({meta:{name:"@digitalwalletcorp/vue-core",configKey:"vueCore"},setup(){const n=e.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:t&&t.tagName.toUpperCase()==="SCRIPT"&&t.src||new URL("nuxt.cjs",document.baseURI).href);for(const o of Object.keys(r.components))e.addComponent({name:o,export:o,filePath:n.resolve("./index")})}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@nuxt/kit"),r=require("./components-Dniui6mw.cjs");var t=typeof document<"u"?document.currentScript:null;const u=e.defineNuxtModule({meta:{name:"@digitalwalletcorp/vue-core",configKey:"vueCore"},setup(){const n=e.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:t&&t.tagName.toUpperCase()==="SCRIPT"&&t.src||new URL("nuxt.cjs",document.baseURI).href);for(const o of Object.keys(r.components))e.addComponent({name:o,export:o,filePath:n.resolve("./index")})}});exports.default=u;
package/lib/nuxt.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineNuxtModule as t, createResolver as r, addComponent as n } from "@nuxt/kit";
2
- import { c as a } from "./components-Mk1fpjbw.js";
2
+ import { c as a } from "./components-gKR_xoi-.js";
3
3
  const c = t({
4
4
  meta: {
5
5
  name: "@digitalwalletcorp/vue-core",
package/lib/register.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-ytOBcKlQ.cjs");function r(e){for(const[o,n]of Object.entries(t.components))e.component(o,n)}exports.registerComponents=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-Dniui6mw.cjs");function r(e){for(const[o,n]of Object.entries(t.components))e.component(o,n)}exports.registerComponents=r;
package/lib/register.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t } from "./components-Mk1fpjbw.js";
1
+ import { c as t } from "./components-gKR_xoi-.js";
2
2
  function m(o) {
3
3
  for (const [n, e] of Object.entries(t))
4
4
  o.component(n, e);