@digitalwalletcorp/vue-core 1.4.3 → 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.
- package/README.md +8 -3
- package/lib/{components-ytOBcKlQ.cjs → components-Dniui6mw.cjs} +1 -1
- package/lib/{components-Mk1fpjbw.js → components-gKR_xoi-.js} +1 -1
- package/lib/copy-button.d.cts +6 -0
- package/lib/copy-button.d.ts +6 -0
- package/lib/help-button.d.cts +2 -2
- package/lib/help-button.d.ts +2 -2
- package/lib/help-popper.d.cts +2 -2
- package/lib/help-popper.d.ts +2 -2
- package/lib/helpers/snackbar.d.cts +17 -2
- package/lib/helpers/snackbar.d.ts +17 -2
- package/lib/helpers/vue-core-options.d.cts +12 -1
- package/lib/helpers/vue-core-options.d.ts +12 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +139 -265
- package/lib/internal/anchored-popover.d.cts +2 -2
- package/lib/internal/anchored-popover.d.ts +2 -2
- package/lib/internal/date-format.d.cts +9 -0
- package/lib/internal/date-format.d.ts +9 -0
- package/lib/internal/icon-popper.d.cts +2 -2
- package/lib/internal/icon-popper.d.ts +2 -2
- package/lib/nuxt.cjs +1 -1
- package/lib/nuxt.js +1 -1
- package/lib/register.cjs +1 -1
- package/lib/register.js +1 -1
- package/lib/style.css +1 -1
- package/lib/warning-popper.d.cts +2 -2
- package/lib/warning-popper.d.ts +2 -2
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-BxdfpRXg.cjs +4 -0
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-DuzeuEx2.js +2178 -0
- package/package.json +1 -1
- package/src/copy-button.vue +14 -1
- package/src/helpers/snackbar.ts +34 -3
- package/src/helpers/vue-core-options.ts +13 -1
- package/src/index.ts +2 -2
- package/src/internal/date-format.ts +25 -0
- package/lib/warning-popper.vue_vue_type_style_index_0_lang-142lRixg.cjs +0 -4
- 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
|
|
2
|
-
import { e as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
|
|
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(
|
|
24
|
-
const e =
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
e.closeOnDblClick &&
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
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
|
|
33
|
-
let
|
|
34
|
-
window.innerWidth <
|
|
35
|
-
let
|
|
36
|
-
window.innerHeight <
|
|
37
|
-
const
|
|
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
|
|
40
|
-
width:
|
|
41
|
-
height: 0 <=
|
|
42
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
50
|
+
s.position.x = v.left + C, s.position.y = v.top + b;
|
|
52
51
|
} else
|
|
53
|
-
|
|
52
|
+
s.position.x = 10 + C, s.position.y = 10 + b;
|
|
54
53
|
};
|
|
55
|
-
return
|
|
56
|
-
e.open &&
|
|
57
|
-
}), (
|
|
54
|
+
return V(() => {
|
|
55
|
+
e.open && h();
|
|
56
|
+
}), (s, r) => (x(), B($, {
|
|
58
57
|
name: "dwui-floating-component-fade",
|
|
59
|
-
onAfterLeave:
|
|
58
|
+
onAfterLeave: r[1] || (r[1] = (p) => t("emit:close"))
|
|
60
59
|
}, {
|
|
61
|
-
default:
|
|
62
|
-
e.open ? (
|
|
60
|
+
default: m(() => [
|
|
61
|
+
e.open ? (x(), B(T, {
|
|
63
62
|
key: 0,
|
|
64
63
|
ref_key: "refWindow",
|
|
65
|
-
ref:
|
|
66
|
-
class:
|
|
64
|
+
ref: a,
|
|
65
|
+
class: j(["dwui-floating-component", { "dwui-lock-scroll": e.lockScroll }]),
|
|
67
66
|
name: "dwui-floating-component",
|
|
68
|
-
style:
|
|
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:
|
|
77
|
-
"onEmit:close":
|
|
78
|
-
},
|
|
79
|
-
title:
|
|
80
|
-
|
|
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:
|
|
83
|
-
|
|
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:
|
|
90
|
-
|
|
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"])) :
|
|
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
|
-
}),
|
|
104
|
-
const { appContext:
|
|
105
|
-
return
|
|
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
|
-
...
|
|
109
|
+
...l,
|
|
111
110
|
...i
|
|
112
111
|
}, {
|
|
113
|
-
default: () =>
|
|
114
|
-
}), { appContext:
|
|
115
|
-
},
|
|
116
|
-
...
|
|
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
|
-
}),
|
|
119
|
-
function
|
|
120
|
-
return
|
|
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
|
|
123
|
-
const { html: e, ...
|
|
124
|
-
return
|
|
125
|
-
copyValue:
|
|
126
|
-
...
|
|
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
|
|
130
|
-
for (const
|
|
131
|
-
|
|
128
|
+
function ee() {
|
|
129
|
+
for (const o of [...D])
|
|
130
|
+
o.close();
|
|
132
131
|
}
|
|
133
|
-
function
|
|
134
|
-
const
|
|
135
|
-
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,
|
|
140
|
-
showFloatingMessage: (e,
|
|
141
|
-
const { html:
|
|
142
|
-
return
|
|
143
|
-
copyValue:
|
|
144
|
-
...
|
|
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
|
|
150
|
-
const { icon: e, appContext:
|
|
151
|
-
return new Promise((
|
|
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
|
|
155
|
-
...
|
|
156
|
-
message:
|
|
153
|
+
const d = c(P, {
|
|
154
|
+
...a,
|
|
155
|
+
message: o,
|
|
157
156
|
open: !0,
|
|
158
|
-
"onEmit:close": (
|
|
159
|
-
|
|
157
|
+
"onEmit:close": (h) => {
|
|
158
|
+
f(null, i), i.remove(), l(h);
|
|
160
159
|
}
|
|
161
|
-
}, e ? { icon: () =>
|
|
162
|
-
|
|
160
|
+
}, e ? { icon: () => c(e) } : void 0);
|
|
161
|
+
t && (d.appContext = t), f(d, i);
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
167
|
-
...
|
|
164
|
+
function ne(o, n) {
|
|
165
|
+
return g(o, {
|
|
166
|
+
...n,
|
|
168
167
|
type: "info"
|
|
169
168
|
});
|
|
170
169
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
173
|
-
...
|
|
170
|
+
function te(o, n) {
|
|
171
|
+
return g(o, {
|
|
172
|
+
...n,
|
|
174
173
|
type: "confirm"
|
|
175
174
|
});
|
|
176
175
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
179
|
-
...
|
|
176
|
+
function ae(o, n) {
|
|
177
|
+
return g(o, {
|
|
178
|
+
...n,
|
|
180
179
|
type: "warn"
|
|
181
180
|
});
|
|
182
181
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
185
|
-
...
|
|
182
|
+
function le(o, n) {
|
|
183
|
+
return g(o, {
|
|
184
|
+
...n,
|
|
186
185
|
type: "error"
|
|
187
186
|
});
|
|
188
187
|
}
|
|
189
|
-
function
|
|
190
|
-
const
|
|
191
|
-
document.body.appendChild(
|
|
188
|
+
function ie(o) {
|
|
189
|
+
const n = document.createElement("div");
|
|
190
|
+
document.body.appendChild(n);
|
|
192
191
|
const e = () => {
|
|
193
|
-
|
|
192
|
+
f(null, n), n.remove();
|
|
194
193
|
};
|
|
195
|
-
return
|
|
196
|
-
...
|
|
194
|
+
return f(c(z, {
|
|
195
|
+
...o,
|
|
197
196
|
loading: !0
|
|
198
|
-
}),
|
|
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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-
|
|
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
package/lib/register.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-
|
|
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