doph-js 0.2.76 → 0.2.78
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/dist/dophJs.js +620 -617
- package/dist/dophJs.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as Ce, computed as m, h as
|
|
1
|
+
import { useSlots as Ce, computed as m, h as st, openBlock as d, createBlock as b, unref as B, ref as T, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as H, resolveDynamicComponent as Y, createStaticVNode as ut, onMounted as me, toDisplayString as O, withDirectives as J, createElementVNode as _, vModelDynamic as De, withCtx as E, createTextVNode as K, Transition as Ne, withModifiers as j, resolveComponent as Ct, resolveDirective as Re, normalizeProps as pt, guardReactiveProps as ft, createVNode as oe, renderList as ge, pushScopeId as Lt, popScopeId as It, reactive as Oe, Teleport as mt, nextTick as ht, getCurrentInstance as gt, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as Ae, shallowRef as Bt, defineComponent as Mt, TransitionGroup as yt, vModelCheckbox as Nt, vModelSelect as Rt, toRef as Ot, KeepAlive as At, toRefs as Ht, vModelText as Vt } from "vue";
|
|
2
2
|
const de = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -18,7 +18,7 @@ const de = {
|
|
|
18
18
|
const l = o.size ?? null;
|
|
19
19
|
if (l !== void 0)
|
|
20
20
|
return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
|
|
21
|
-
}), r = m(() =>
|
|
21
|
+
}), r = m(() => st(
|
|
22
22
|
"i",
|
|
23
23
|
{
|
|
24
24
|
class: n.value,
|
|
@@ -27,9 +27,9 @@ const de = {
|
|
|
27
27
|
fontSize: a.value
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
o.component ?
|
|
30
|
+
o.component ? st(o.component) : t
|
|
31
31
|
));
|
|
32
|
-
return (l, i) => (d(), b(
|
|
32
|
+
return (l, i) => (d(), b(B(r)));
|
|
33
33
|
}
|
|
34
34
|
}, te = {
|
|
35
35
|
state: {},
|
|
@@ -51,14 +51,14 @@ const de = {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function _t(e) {
|
|
55
55
|
const o = e.value.getBoundingClientRect();
|
|
56
56
|
let t = e.value, n = 0, s = 0;
|
|
57
57
|
for (; t && !isNaN(t.offsetLeft) && !isNaN(t.offsetTop); )
|
|
58
58
|
n += t.offsetLeft - t.scrollLeft, s += t.offsetTop - t.scrollTop, t = t.offsetParent;
|
|
59
59
|
return { top: s, left: n, x: o.x, y: o.y, width: o.width, height: o.height };
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function zt() {
|
|
62
62
|
function e(s) {
|
|
63
63
|
return s * Math.random() | 0;
|
|
64
64
|
}
|
|
@@ -81,21 +81,21 @@ const re = (e, o) => {
|
|
|
81
81
|
for (const [n, s] of o)
|
|
82
82
|
t[n] = s;
|
|
83
83
|
return t;
|
|
84
|
-
},
|
|
84
|
+
}, Ft = {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "loading-svg rotating",
|
|
87
87
|
xmlns: "http://www.w3.org/2000/svg",
|
|
88
88
|
viewBox: "0 0 24 24"
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
],
|
|
89
|
+
}, Wt = /* @__PURE__ */ ut('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), Pt = [
|
|
90
|
+
Wt
|
|
91
|
+
], jt = { key: 1 }, Xt = {
|
|
92
92
|
key: 2,
|
|
93
93
|
class: "loading-svg rotating",
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
viewBox: "0 0 24 24"
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
],
|
|
96
|
+
}, Yt = /* @__PURE__ */ ut('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), Ut = [
|
|
97
|
+
Yt
|
|
98
|
+
], qt = {
|
|
99
99
|
__name: "DButton",
|
|
100
100
|
props: {
|
|
101
101
|
class: String,
|
|
@@ -120,27 +120,27 @@ const re = (e, o) => {
|
|
|
120
120
|
},
|
|
121
121
|
emits: ["click", "contextmenu"],
|
|
122
122
|
setup(e, { expose: o, emit: t }) {
|
|
123
|
-
const n = e, s = Ce(), a =
|
|
123
|
+
const n = e, s = Ce(), a = T(null), r = m(() => n.icon ? te.getters.getIcon(n.icon) : null), l = ($) => {
|
|
124
124
|
t("click", $);
|
|
125
125
|
}, i = ($) => {
|
|
126
126
|
t("contextmenu", $);
|
|
127
|
-
}, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], x = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"),
|
|
127
|
+
}, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], x = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
|
|
128
128
|
const $ = n.outline ? "-outline" : "";
|
|
129
129
|
return n.type === "primary" ? `button${$}-blue` : n.type === "success" ? `button${$}-green` : n.type === "error" ? `button${$}-red` : n.type === "warning" ? `button${$}-orange` : n.type === "wait" ? `button${$}-violet` : n.outline ? `button${$}` : "";
|
|
130
130
|
});
|
|
131
131
|
return o({
|
|
132
|
-
elementSize: () =>
|
|
133
|
-
}), ($,
|
|
132
|
+
elementSize: () => _t(a)
|
|
133
|
+
}), ($, A) => (d(), f(ie, null, [
|
|
134
134
|
r.value ? k("", !0) : (d(), f("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
ref_key: "el",
|
|
137
137
|
ref: a,
|
|
138
138
|
onClick: l,
|
|
139
139
|
onContextmenu: i,
|
|
140
|
-
class:
|
|
140
|
+
class: D(["button", [n.class, c.value, S.value, u.value].join(" ")])
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
n.loading ? (d(), f("svg",
|
|
142
|
+
L($.$slots, "default", {}, void 0, !0),
|
|
143
|
+
n.loading ? (d(), f("svg", Ft, Pt)) : k("", !0)
|
|
144
144
|
], 34)),
|
|
145
145
|
r.value ? (d(), f("div", {
|
|
146
146
|
key: 1,
|
|
@@ -148,7 +148,7 @@ const re = (e, o) => {
|
|
|
148
148
|
ref: a,
|
|
149
149
|
onClick: l,
|
|
150
150
|
onContextmenu: i,
|
|
151
|
-
class:
|
|
151
|
+
class: D(["button button-ext", [n.class, c.value, x.value, S.value, u.value].join(" ")]),
|
|
152
152
|
style: H(n.style)
|
|
153
153
|
}, [
|
|
154
154
|
n.icon ? (d(), b(Y(de), {
|
|
@@ -156,35 +156,35 @@ const re = (e, o) => {
|
|
|
156
156
|
component: r.value,
|
|
157
157
|
color: "inherit"
|
|
158
158
|
}, null, 8, ["component"])) : k("", !0),
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
B(s).default ? (d(), f("div", jt, [
|
|
160
|
+
L($.$slots, "default", {}, void 0, !0)
|
|
161
161
|
])) : k("", !0),
|
|
162
|
-
n.loading ? (d(), f("svg",
|
|
162
|
+
n.loading ? (d(), f("svg", Xt, Ut)) : k("", !0)
|
|
163
163
|
], 38)) : k("", !0)
|
|
164
164
|
], 64));
|
|
165
165
|
}
|
|
166
|
-
}, ae = /* @__PURE__ */ re(
|
|
167
|
-
const
|
|
166
|
+
}, ae = /* @__PURE__ */ re(qt, [["__scopeId", "data-v-e5cd6ccd"]]);
|
|
167
|
+
const Gt = {
|
|
168
168
|
key: 0,
|
|
169
169
|
class: "d-input"
|
|
170
|
-
},
|
|
170
|
+
}, Zt = {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "label"
|
|
173
|
-
},
|
|
173
|
+
}, Kt = ["type", "placeholder"], Jt = {
|
|
174
174
|
key: 1,
|
|
175
175
|
class: "d-input",
|
|
176
176
|
style: { display: "flex", "flex-direction": "column" }
|
|
177
|
-
},
|
|
177
|
+
}, Qt = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "label"
|
|
180
|
-
},
|
|
180
|
+
}, eo = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, to = { style: { flex: "1" } }, oo = ["type", "placeholder"], no = {
|
|
181
181
|
key: 2,
|
|
182
182
|
class: "d-input",
|
|
183
183
|
style: { display: "flex", "flex-direction": "column" }
|
|
184
|
-
},
|
|
184
|
+
}, so = {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "label"
|
|
187
|
-
},
|
|
187
|
+
}, ao = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, io = { style: { flex: "1" } }, ro = ["type", "placeholder"], lo = {
|
|
188
188
|
__name: "DInput",
|
|
189
189
|
props: {
|
|
190
190
|
label: String,
|
|
@@ -199,7 +199,7 @@ const qt = {
|
|
|
199
199
|
},
|
|
200
200
|
emits: ["update:modelValue"],
|
|
201
201
|
setup(e, { expose: o, emit: t }) {
|
|
202
|
-
const n = e, s =
|
|
202
|
+
const n = e, s = T(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), r = m({
|
|
203
203
|
get: () => n.modelValue,
|
|
204
204
|
set: (i) => {
|
|
205
205
|
t("update:modelValue", i);
|
|
@@ -213,92 +213,92 @@ const qt = {
|
|
|
213
213
|
};
|
|
214
214
|
return o({
|
|
215
215
|
focus: l
|
|
216
|
-
}), (i, c) => !n.post && !n.pre ? (d(), f("div",
|
|
217
|
-
n.label ? (d(), f("div",
|
|
216
|
+
}), (i, c) => !n.post && !n.pre ? (d(), f("div", Gt, [
|
|
217
|
+
n.label ? (d(), f("div", Zt, O(n.label), 1)) : k("", !0),
|
|
218
218
|
J(_("input", {
|
|
219
219
|
ref_key: "inputRef",
|
|
220
220
|
ref: s,
|
|
221
221
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
|
222
222
|
type: n.password ? "password" : "text",
|
|
223
|
-
class:
|
|
223
|
+
class: D(a.value),
|
|
224
224
|
placeholder: n.placeholder,
|
|
225
225
|
style: { width: "100%" }
|
|
226
|
-
}, null, 10,
|
|
226
|
+
}, null, 10, Kt), [
|
|
227
227
|
[De, r.value]
|
|
228
228
|
])
|
|
229
|
-
])) : n.post && n.post.click && !n.pre ? (d(), f("div",
|
|
230
|
-
n.label ? (d(), f("div",
|
|
231
|
-
_("div",
|
|
232
|
-
_("div",
|
|
229
|
+
])) : n.post && n.post.click && !n.pre ? (d(), f("div", Jt, [
|
|
230
|
+
n.label ? (d(), f("div", Qt, O(n.label), 1)) : k("", !0),
|
|
231
|
+
_("div", eo, [
|
|
232
|
+
_("div", to, [
|
|
233
233
|
J(_("input", {
|
|
234
234
|
ref_key: "inputRef",
|
|
235
235
|
ref: s,
|
|
236
|
-
class:
|
|
236
|
+
class: D(["d-input-post-field", a.value]),
|
|
237
237
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => r.value = u),
|
|
238
238
|
type: n.password ? "password" : "text",
|
|
239
239
|
placeholder: n.placeholder,
|
|
240
240
|
style: { width: "100%" }
|
|
241
|
-
}, null, 10,
|
|
241
|
+
}, null, 10, oo), [
|
|
242
242
|
[De, r.value]
|
|
243
243
|
])
|
|
244
244
|
]),
|
|
245
245
|
n.post.label ? (d(), b(ae, {
|
|
246
246
|
key: 0,
|
|
247
247
|
scale: n.scale,
|
|
248
|
-
class:
|
|
248
|
+
class: D(["d-input-post-button", n.post.class]),
|
|
249
249
|
onClick: n.post.click,
|
|
250
250
|
icon: n.post.icon
|
|
251
251
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
K(
|
|
252
|
+
default: E(() => [
|
|
253
|
+
K(O(n.post.label), 1)
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
256
|
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ae, {
|
|
257
257
|
key: 1,
|
|
258
258
|
scale: n.scale,
|
|
259
|
-
class:
|
|
259
|
+
class: D(["d-input-post-button", n.post.class]),
|
|
260
260
|
onClick: n.post.click,
|
|
261
261
|
icon: n.post.icon
|
|
262
262
|
}, null, 8, ["scale", "onClick", "icon", "class"]))
|
|
263
263
|
])
|
|
264
|
-
])) : !n.post && n.pre && n.pre.click ? (d(), f("div",
|
|
265
|
-
n.label ? (d(), f("div",
|
|
266
|
-
_("div",
|
|
264
|
+
])) : !n.post && n.pre && n.pre.click ? (d(), f("div", no, [
|
|
265
|
+
n.label ? (d(), f("div", so, O(n.label), 1)) : k("", !0),
|
|
266
|
+
_("div", ao, [
|
|
267
267
|
n.pre.label ? (d(), b(ae, {
|
|
268
268
|
key: 0,
|
|
269
269
|
scale: n.scale,
|
|
270
|
-
class:
|
|
270
|
+
class: D(["d-input-pre-button", n.pre.class]),
|
|
271
271
|
onClick: n.pre.click,
|
|
272
272
|
icon: n.pre.icon
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
K(
|
|
274
|
+
default: E(() => [
|
|
275
|
+
K(O(n.pre.label), 1)
|
|
276
276
|
]),
|
|
277
277
|
_: 1
|
|
278
278
|
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ae, {
|
|
279
279
|
key: 1,
|
|
280
280
|
scale: n.scale,
|
|
281
|
-
class:
|
|
281
|
+
class: D(["d-input-pre-button", n.pre.class]),
|
|
282
282
|
onClick: n.pre.click,
|
|
283
283
|
icon: n.pre.icon
|
|
284
284
|
}, null, 8, ["scale", "onClick", "icon", "class"])),
|
|
285
|
-
_("div",
|
|
285
|
+
_("div", io, [
|
|
286
286
|
J(_("input", {
|
|
287
287
|
ref_key: "inputRef",
|
|
288
288
|
ref: s,
|
|
289
|
-
class:
|
|
289
|
+
class: D(["d-input-pre-field", a.value]),
|
|
290
290
|
"onUpdate:modelValue": c[2] || (c[2] = (u) => r.value = u),
|
|
291
291
|
type: n.password ? "password" : "text",
|
|
292
292
|
placeholder: n.placeholder,
|
|
293
293
|
style: { width: "100%" }
|
|
294
|
-
}, null, 10,
|
|
294
|
+
}, null, 10, ro), [
|
|
295
295
|
[De, r.value]
|
|
296
296
|
])
|
|
297
297
|
])
|
|
298
298
|
])
|
|
299
299
|
])) : k("", !0);
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, Ds = /* @__PURE__ */ re(lo, [["__scopeId", "data-v-a972038a"]]), co = {
|
|
302
302
|
__name: "DBadge",
|
|
303
303
|
props: {
|
|
304
304
|
scale: String,
|
|
@@ -315,12 +315,12 @@ const qt = {
|
|
|
315
315
|
return o.type === "primary" ? `badge${s}-blue` : o.type === "success" ? `badge${s}-green` : o.type === "error" ? `badge${s}-red` : o.type === "warning" ? `badge${s}-orange` : o.type === "wait" ? `badge${s}-violet` : o.stress ? `badge${s}-gray` : "";
|
|
316
316
|
});
|
|
317
317
|
return (s, a) => (d(), f("div", {
|
|
318
|
-
class:
|
|
318
|
+
class: D(["badge", [o.class, t.value, n.value].join(" ")])
|
|
319
319
|
}, [
|
|
320
|
-
|
|
320
|
+
L(s.$slots, "default")
|
|
321
321
|
], 2));
|
|
322
322
|
}
|
|
323
|
-
}, se = "0px",
|
|
323
|
+
}, se = "0px", uo = {
|
|
324
324
|
__name: "DCollapse",
|
|
325
325
|
props: {
|
|
326
326
|
duration: {
|
|
@@ -363,8 +363,8 @@ const qt = {
|
|
|
363
363
|
let { height: h } = getComputedStyle(i);
|
|
364
364
|
return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = se, i.style.overflow = "hidden", c.height && c.height !== se ? c.height : h;
|
|
365
365
|
}, s = (i, c, u, h, x) => {
|
|
366
|
-
const
|
|
367
|
-
i.style.height = c.height,
|
|
366
|
+
const S = i.animate(h, x);
|
|
367
|
+
i.style.height = c.height, S.onfinish = () => {
|
|
368
368
|
i.style.overflow = c.overflow, u();
|
|
369
369
|
};
|
|
370
370
|
}, a = (i, c) => [
|
|
@@ -389,21 +389,21 @@ const qt = {
|
|
|
389
389
|
marginBottom: c.marginBottom
|
|
390
390
|
}
|
|
391
391
|
], r = (i, c) => {
|
|
392
|
-
const u = i, h = t(u), x = n(u, h),
|
|
393
|
-
s(u, h, c,
|
|
392
|
+
const u = i, h = t(u), x = n(u, h), S = a(x, h), N = { duration: o.duration, easing: o.easingEnter };
|
|
393
|
+
s(u, h, c, S, N);
|
|
394
394
|
}, l = (i, c) => {
|
|
395
395
|
const u = i, h = t(u), { height: x } = getComputedStyle(u);
|
|
396
396
|
u.style.height = x, u.style.overflow = "hidden";
|
|
397
|
-
const
|
|
398
|
-
s(u, h, c,
|
|
397
|
+
const S = a(x, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
|
|
398
|
+
s(u, h, c, S, N);
|
|
399
399
|
};
|
|
400
400
|
return (i, c) => (d(), b(Ne, {
|
|
401
401
|
css: !1,
|
|
402
402
|
onEnter: r,
|
|
403
403
|
onLeave: l
|
|
404
404
|
}, {
|
|
405
|
-
default:
|
|
406
|
-
|
|
405
|
+
default: E(() => [
|
|
406
|
+
L(i.$slots, "default")
|
|
407
407
|
]),
|
|
408
408
|
_: 3
|
|
409
409
|
}));
|
|
@@ -418,7 +418,7 @@ const qt = {
|
|
|
418
418
|
"dragstart",
|
|
419
419
|
"dragover",
|
|
420
420
|
"drop"
|
|
421
|
-
]),
|
|
421
|
+
]), po = He(["copy", "move", "link", "none"]), fo = He([
|
|
422
422
|
"none",
|
|
423
423
|
"copy",
|
|
424
424
|
"copyLink",
|
|
@@ -428,13 +428,13 @@ const qt = {
|
|
|
428
428
|
"move",
|
|
429
429
|
"all",
|
|
430
430
|
"uninitialized"
|
|
431
|
-
]),
|
|
431
|
+
]), at = {
|
|
432
432
|
__name: "DDrag",
|
|
433
433
|
props: {
|
|
434
434
|
draggable: { type: Boolean, default: !0 },
|
|
435
435
|
transferData: {},
|
|
436
|
-
dropEffect: { validator: (e) => e in
|
|
437
|
-
effectAllowed: { validator: (e) => e in
|
|
436
|
+
dropEffect: { validator: (e) => e in po },
|
|
437
|
+
effectAllowed: { validator: (e) => e in fo },
|
|
438
438
|
image: String,
|
|
439
439
|
imageXOffset: { type: Number, default: 0 },
|
|
440
440
|
imageYOffset: { type: Number, default: 0 },
|
|
@@ -442,7 +442,7 @@ const qt = {
|
|
|
442
442
|
tag: { type: String, default: "div" }
|
|
443
443
|
},
|
|
444
444
|
setup(e) {
|
|
445
|
-
const o = e, t = Ce(), n =
|
|
445
|
+
const o = e, t = Ce(), n = T(!1), s = m(() => n && o.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), r = (l, i) => {
|
|
446
446
|
const c = i.dataTransfer;
|
|
447
447
|
if ([X.dragenter, X.dragover].includes(l) && o.dropEffect && (c.dropEffect = o.dropEffect), l === X.dragstart) {
|
|
448
448
|
if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
|
|
@@ -454,20 +454,20 @@ const qt = {
|
|
|
454
454
|
};
|
|
455
455
|
return (l, i) => (d(), b(Y(e.tag), {
|
|
456
456
|
draggable: o.draggable,
|
|
457
|
-
onDrag: i[0] || (i[0] = (c) => r(
|
|
458
|
-
onDragstart: i[1] || (i[1] = j((c) => r(
|
|
459
|
-
onDragenter: i[2] || (i[2] = (c) => r(
|
|
460
|
-
onDragleave: i[3] || (i[3] = (c) => r(
|
|
461
|
-
onDragend: i[4] || (i[4] = (c) => r(
|
|
457
|
+
onDrag: i[0] || (i[0] = (c) => r(B(X).drag, c)),
|
|
458
|
+
onDragstart: i[1] || (i[1] = j((c) => r(B(X).dragstart, c), ["stop"])),
|
|
459
|
+
onDragenter: i[2] || (i[2] = (c) => r(B(X).dragenter, c)),
|
|
460
|
+
onDragleave: i[3] || (i[3] = (c) => r(B(X).dragleave, c)),
|
|
461
|
+
onDragend: i[4] || (i[4] = (c) => r(B(X).dragend, c))
|
|
462
462
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
|
|
463
|
+
default: E(() => [
|
|
464
|
+
L(l.$slots, "default", { transferData: s.value }),
|
|
465
465
|
e.hideImageHtml ? (d(), f("div", {
|
|
466
466
|
key: 0,
|
|
467
467
|
style: H(a.value)
|
|
468
468
|
}, [
|
|
469
|
-
|
|
470
|
-
], 4)) :
|
|
469
|
+
L(l.$slots, "image", { transferData: s.value })
|
|
470
|
+
], 4)) : L(l.$slots, "image", {
|
|
471
471
|
key: 1,
|
|
472
472
|
transferData: s.value
|
|
473
473
|
})
|
|
@@ -476,18 +476,18 @@ const qt = {
|
|
|
476
476
|
}, 40, ["draggable"]));
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
const
|
|
479
|
+
const mo = (e) => (Lt("data-v-40c7ab17"), e = e(), It(), e), ho = {
|
|
480
480
|
key: 0,
|
|
481
481
|
style: { display: "none" }
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
],
|
|
482
|
+
}, go = { key: 1 }, vo = /* @__PURE__ */ mo(() => /* @__PURE__ */ _("div", { class: "tree-divider" }, null, -1)), yo = [
|
|
483
|
+
vo
|
|
484
|
+
], _o = { key: 2 }, bo = { class: "tree-divider-header" }, xo = { class: "item-title" }, $o = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "tree-divider"
|
|
487
|
-
},
|
|
487
|
+
}, ko = { key: 1 }, wo = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, So = {
|
|
488
488
|
key: 0,
|
|
489
489
|
class: "sub-menu"
|
|
490
|
-
},
|
|
490
|
+
}, Do = {
|
|
491
491
|
__name: "DTreeItem",
|
|
492
492
|
props: {
|
|
493
493
|
model: Object,
|
|
@@ -498,7 +498,7 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
498
498
|
},
|
|
499
499
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
|
|
500
500
|
setup(e, { emit: o }) {
|
|
501
|
-
const t = e, n =
|
|
501
|
+
const t = e, n = T(null), s = T(!1), a = T(!1), r = T(!1), l = m(() => t.model.children && t.model.children.length), i = m(() => (v.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (M) => {
|
|
502
502
|
o("nodeclick", { event: M, model: t.model });
|
|
503
503
|
}, u = (M) => {
|
|
504
504
|
o("nodeclick", M);
|
|
@@ -506,7 +506,7 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
506
506
|
o("nodedrop", M);
|
|
507
507
|
}, x = (M) => {
|
|
508
508
|
o("nodecontext", M);
|
|
509
|
-
},
|
|
509
|
+
}, S = m(() => (v.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (r.value ? "node-bottom " : "")), N = m(() => t.search ? !1 : t.model.draggable === !0), $ = (M) => {
|
|
510
510
|
let g = Te.data;
|
|
511
511
|
if (g === void 0 || g.model === void 0)
|
|
512
512
|
return s.value = !1, !1;
|
|
@@ -514,9 +514,9 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
514
514
|
return s.value = !1, a.value = !1, r.value = !1, !1;
|
|
515
515
|
if (!v.state.trees[t.treeId].transfer && g.id !== t.treeId || !v.state.trees[t.treeId].dropInside && !r.value && !a.value)
|
|
516
516
|
return !1;
|
|
517
|
-
let
|
|
518
|
-
a.value ?
|
|
519
|
-
},
|
|
517
|
+
let R = "";
|
|
518
|
+
a.value ? R = "before" : r.value ? R = "after" : R = "inside", o("nodedrop", { e: M, model: t.model, place: R }), (g.id === t.treeId || g.id !== t.treeId && g.model.transfer) && v.actions.moveTreeNode(g.id, t.treeId, t.items, g.model.id, t.model.id, R), s.value = !1, a.value = !1, r.value = !1;
|
|
519
|
+
}, A = (M) => {
|
|
520
520
|
o("nodedragover", { e: M, model: t.model });
|
|
521
521
|
let g = Te.data;
|
|
522
522
|
if (!t.model.droppable)
|
|
@@ -525,11 +525,11 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
525
525
|
return s.value = !0, !1;
|
|
526
526
|
if (g.model.id === t.model.id || v.actions.isChildOfParent(t.treeId, t.items, t.model.id, g.model.id) || v.actions.isParentOfChild(t.treeId, t.items, g.model.id, t.model.id))
|
|
527
527
|
return !1;
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
},
|
|
528
|
+
const R = M.y, P = n.value.getBoundingClientRect().top, V = n.value.getBoundingClientRect().height, y = V / 3;
|
|
529
|
+
R > P && R <= P + y ? (s.value = !1, a.value = !0, r.value = !1) : R < P + V && R >= P + V - y ? (s.value = !1, a.value = !1, r.value = !0) : (s.value = v.state.trees[t.treeId].dropInside, a.value = !1, r.value = !1);
|
|
530
|
+
}, W = () => {
|
|
531
531
|
s.value = !1, a.value = !1, r.value = !1;
|
|
532
|
-
},
|
|
532
|
+
}, w = m(() => t.model.title.startsWith("-")), I = m(() => {
|
|
533
533
|
if (t.model.title.startsWith("-")) {
|
|
534
534
|
let [M, ...g] = t.model.title.split(" ");
|
|
535
535
|
return g = g.join(" "), g;
|
|
@@ -537,10 +537,10 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
537
537
|
return null;
|
|
538
538
|
});
|
|
539
539
|
return (M, g) => {
|
|
540
|
-
const
|
|
541
|
-
return
|
|
542
|
-
_("div",
|
|
543
|
-
])) : t.model.component ? (d(), b(
|
|
540
|
+
const R = Ct("d-tree-item", !0), P = Re("touch");
|
|
541
|
+
return B(v).actions.beforeItem(t.treeId, e.model) ? w.value && !I.value ? (d(), f("li", go, yo)) : w.value && I.value ? (d(), f("li", _o, [
|
|
542
|
+
_("div", bo, O(B(v).actions.renderTitle(t.treeId, I.value)), 1)
|
|
543
|
+
])) : t.model.component ? (d(), b(at, {
|
|
544
544
|
key: 3,
|
|
545
545
|
tag: "li",
|
|
546
546
|
class: "tree-item-component",
|
|
@@ -549,23 +549,23 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
549
549
|
onDrop: j($, ["stop"]),
|
|
550
550
|
onDragenter: g[1] || (g[1] = j(() => {
|
|
551
551
|
}, ["prevent"])),
|
|
552
|
-
onDragover: j(
|
|
553
|
-
onDragleave: j(
|
|
552
|
+
onDragover: j(A, ["prevent", "stop"]),
|
|
553
|
+
onDragleave: j(W, ["prevent"])
|
|
554
554
|
}, {
|
|
555
|
-
default:
|
|
555
|
+
default: E(() => [
|
|
556
556
|
J((d(), f("div", {
|
|
557
557
|
ref_key: "node",
|
|
558
558
|
ref: n,
|
|
559
|
-
class: S
|
|
560
|
-
onContextmenu: g[0] || (g[0] = j((
|
|
559
|
+
class: D(S.value),
|
|
560
|
+
onContextmenu: g[0] || (g[0] = j((V) => o("nodecontext", { e: V, model: t.model }), ["prevent"]))
|
|
561
561
|
}, [
|
|
562
|
-
(d(), b(Y(
|
|
562
|
+
(d(), b(Y(B(fe).getters.getComponent(t.model.component).component), pt(ft(B(fe).getters.getComponent(t.model.component).props)), null, 16))
|
|
563
563
|
], 34)), [
|
|
564
564
|
[P, c]
|
|
565
565
|
])
|
|
566
566
|
]),
|
|
567
567
|
_: 1
|
|
568
|
-
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), b(
|
|
568
|
+
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), b(at, {
|
|
569
569
|
key: 4,
|
|
570
570
|
tag: "li",
|
|
571
571
|
class: "tree-item",
|
|
@@ -574,72 +574,72 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
574
574
|
onDrop: j($, ["stop"]),
|
|
575
575
|
onDragenter: g[3] || (g[3] = j(() => {
|
|
576
576
|
}, ["prevent"])),
|
|
577
|
-
onDragover: j(
|
|
578
|
-
onDragleave: j(
|
|
577
|
+
onDragover: j(A, ["prevent", "stop"]),
|
|
578
|
+
onDragleave: j(W, ["prevent"])
|
|
579
579
|
}, {
|
|
580
|
-
default:
|
|
581
|
-
var
|
|
580
|
+
default: E(() => {
|
|
581
|
+
var V, y;
|
|
582
582
|
return [
|
|
583
583
|
J((d(), f("div", {
|
|
584
584
|
ref_key: "node",
|
|
585
585
|
ref: n,
|
|
586
|
-
class: S
|
|
587
|
-
onContextmenu: g[2] || (g[2] = j((
|
|
586
|
+
class: D(S.value),
|
|
587
|
+
onContextmenu: g[2] || (g[2] = j((z) => o("nodecontext", { e: z, model: t.model }), ["prevent"]))
|
|
588
588
|
}, [
|
|
589
589
|
_("div", null, [
|
|
590
|
-
t.model.icons && t.model.icons.pre && l.value && !t.search && !
|
|
590
|
+
t.model.icons && t.model.icons.pre && l.value && !t.search && !w.value ? (d(), b(Y(de), {
|
|
591
591
|
key: 0,
|
|
592
|
-
component:
|
|
592
|
+
component: B(te).getters.getIcon(t.model.icons.pre.component),
|
|
593
593
|
size: 18,
|
|
594
594
|
color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
|
|
595
|
-
class:
|
|
595
|
+
class: D(i.value ? "tree-open-pre" : "")
|
|
596
596
|
}, null, 8, ["component", "color", "class"])) : k("", !0),
|
|
597
|
-
t.model.icons && t.model.icons.pre && !l.value && !t.search && !
|
|
597
|
+
t.model.icons && t.model.icons.pre && !l.value && !t.search && !w.value ? (d(), b(Y(de), {
|
|
598
598
|
key: 1,
|
|
599
|
-
component:
|
|
599
|
+
component: B(te).getters.getIcon(t.model.icons.pre.component),
|
|
600
600
|
size: 18,
|
|
601
601
|
color: "rgba(0,0,0,0)",
|
|
602
|
-
class:
|
|
602
|
+
class: D(i.value ? "tree-open-pre" : "")
|
|
603
603
|
}, null, 8, ["component", "class"])) : k("", !0),
|
|
604
|
-
t.model.icons && t.model.icons.icon && !
|
|
604
|
+
t.model.icons && t.model.icons.icon && !w.value ? (d(), b(Y(de), {
|
|
605
605
|
key: 2,
|
|
606
|
-
component:
|
|
606
|
+
component: B(te).getters.getIcon(t.model.icons.icon.component),
|
|
607
607
|
color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
|
|
608
608
|
size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
|
|
609
609
|
className: t.model.icons.icon.class ? t.model.icons.icon.class : null
|
|
610
610
|
}, null, 8, ["component", "color", "size", "className"])) : k("", !0),
|
|
611
|
-
_("div",
|
|
612
|
-
|
|
613
|
-
|
|
611
|
+
_("div", xo, [
|
|
612
|
+
w.value ? (d(), f("div", $o)) : k("", !0),
|
|
613
|
+
w.value ? k("", !0) : (d(), f("div", ko, O(B(v).actions.renderTitle(t.treeId, t.model.title)), 1))
|
|
614
614
|
])
|
|
615
615
|
]),
|
|
616
|
-
_("div",
|
|
617
|
-
((
|
|
616
|
+
_("div", wo, [
|
|
617
|
+
((V = t.model.badge) == null ? void 0 : V.value) !== void 0 && !w.value ? (d(), b(Y(co), {
|
|
618
618
|
key: 0,
|
|
619
|
-
class:
|
|
619
|
+
class: D([(y = t.model.badge) == null ? void 0 : y.class, "badge-sm"])
|
|
620
620
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
K(
|
|
621
|
+
default: E(() => [
|
|
622
|
+
K(O(t.model.badge.value), 1)
|
|
623
623
|
]),
|
|
624
624
|
_: 1
|
|
625
625
|
}, 8, ["class"])) : k("", !0),
|
|
626
|
-
t.model.icons && t.model.icons.post && l.value && !t.search && !
|
|
626
|
+
t.model.icons && t.model.icons.post && l.value && !t.search && !w.value ? (d(), b(Y(de), {
|
|
627
627
|
key: 1,
|
|
628
|
-
component:
|
|
628
|
+
component: B(te).getters.getIcon(t.model.icons.post.component),
|
|
629
629
|
size: 20,
|
|
630
630
|
color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
|
|
631
|
-
class:
|
|
631
|
+
class: D(i.value ? "tree-open-post" : "")
|
|
632
632
|
}, null, 8, ["component", "color", "class"])) : k("", !0)
|
|
633
633
|
])
|
|
634
634
|
], 34)), [
|
|
635
635
|
[P, c]
|
|
636
636
|
]),
|
|
637
|
-
oe(
|
|
638
|
-
default:
|
|
639
|
-
l.value && i.value && !t.search ? (d(), f("ul",
|
|
640
|
-
(d(!0), f(ie, null, ge(e.model.children, (
|
|
641
|
-
key:
|
|
642
|
-
model:
|
|
637
|
+
oe(uo, null, {
|
|
638
|
+
default: E(() => [
|
|
639
|
+
l.value && i.value && !t.search ? (d(), f("ul", So, [
|
|
640
|
+
(d(!0), f(ie, null, ge(e.model.children, (z) => (d(), b(R, {
|
|
641
|
+
key: z.id,
|
|
642
|
+
model: z,
|
|
643
643
|
treeId: t.treeId,
|
|
644
644
|
items: t.items,
|
|
645
645
|
search: t.search,
|
|
@@ -654,11 +654,11 @@ const fo = (e) => (Ct("data-v-40c7ab17"), e = e(), Lt(), e), mo = {
|
|
|
654
654
|
];
|
|
655
655
|
}),
|
|
656
656
|
_: 1
|
|
657
|
-
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), f("li",
|
|
657
|
+
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), f("li", ho));
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
},
|
|
661
|
-
function
|
|
660
|
+
}, To = /* @__PURE__ */ re(Do, [["__scopeId", "data-v-40c7ab17"]]);
|
|
661
|
+
function Co(e) {
|
|
662
662
|
return e = e || /* @__PURE__ */ new Map(), {
|
|
663
663
|
/**
|
|
664
664
|
* A Map of event names to registered handler functions.
|
|
@@ -705,7 +705,7 @@ function To(e) {
|
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
const q =
|
|
708
|
+
const q = Co(), v = {
|
|
709
709
|
state: Oe({
|
|
710
710
|
trees: {}
|
|
711
711
|
}),
|
|
@@ -807,7 +807,7 @@ const q = To(), v = {
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, Lo = {
|
|
811
811
|
__name: "DDrop",
|
|
812
812
|
props: {
|
|
813
813
|
tag: { type: String, default: "div" }
|
|
@@ -815,26 +815,26 @@ const q = To(), v = {
|
|
|
815
815
|
emits: Object.keys(X),
|
|
816
816
|
setup(e, { expose: o, emit: t }) {
|
|
817
817
|
let n = Oe({});
|
|
818
|
-
const s =
|
|
818
|
+
const s = T("false"), a = T(null), r = /* @__PURE__ */ new Set(), l = m(() => s.value && n), i = (u, h) => {
|
|
819
819
|
n = Te.data, t(u, h, n), u === X.dragenter && (r.size || h.target === a.value) && r.add(h.target), u === X.dragleave && r.delete(h.target), u === X.drop && r.clear(), s.value = !!r.size;
|
|
820
820
|
};
|
|
821
821
|
return o({
|
|
822
|
-
elementSize: () =>
|
|
822
|
+
elementSize: () => _t(a)
|
|
823
823
|
}), (u, h) => (d(), b(Y(e.tag), {
|
|
824
824
|
ref_key: "el",
|
|
825
825
|
ref: a,
|
|
826
|
-
onDragenter: h[0] || (h[0] = (x) => i(
|
|
827
|
-
onDragleave: h[1] || (h[1] = (x) => i(
|
|
828
|
-
onDragover: h[2] || (h[2] = j((x) => i(
|
|
829
|
-
onDrop: h[3] || (h[3] = j((x) => i(
|
|
826
|
+
onDragenter: h[0] || (h[0] = (x) => i(B(X).dragenter, x)),
|
|
827
|
+
onDragleave: h[1] || (h[1] = (x) => i(B(X).dragleave, x)),
|
|
828
|
+
onDragover: h[2] || (h[2] = j((x) => i(B(X).dragover, x), ["prevent"])),
|
|
829
|
+
onDrop: h[3] || (h[3] = j((x) => i(B(X).drop, x), ["prevent"]))
|
|
830
830
|
}, {
|
|
831
|
-
default:
|
|
832
|
-
|
|
831
|
+
default: E(() => [
|
|
832
|
+
L(u.$slots, "default", { transferData: l.value })
|
|
833
833
|
]),
|
|
834
834
|
_: 3
|
|
835
835
|
}, 544));
|
|
836
836
|
}
|
|
837
|
-
},
|
|
837
|
+
}, bt = {
|
|
838
838
|
__name: "DMenu",
|
|
839
839
|
props: {
|
|
840
840
|
class: String,
|
|
@@ -854,7 +854,7 @@ const q = To(), v = {
|
|
|
854
854
|
emits: ["select"],
|
|
855
855
|
setup(e, { expose: o, emit: t }) {
|
|
856
856
|
const n = e;
|
|
857
|
-
let s =
|
|
857
|
+
let s = T(null), a = T(!1);
|
|
858
858
|
const r = () => {
|
|
859
859
|
q.emit("menu-show-request"), a.value = !0;
|
|
860
860
|
}, l = () => {
|
|
@@ -873,16 +873,16 @@ const q = To(), v = {
|
|
|
873
873
|
const h = (x) => {
|
|
874
874
|
t("select", x), x.model.children || l();
|
|
875
875
|
};
|
|
876
|
-
return (x,
|
|
876
|
+
return (x, S) => {
|
|
877
877
|
const N = Re("click-outside");
|
|
878
|
-
return d(), b(
|
|
879
|
-
|
|
878
|
+
return d(), b(mt, { to: "body" }, [
|
|
879
|
+
B(a) ? J((d(), b(xt, {
|
|
880
880
|
key: 0,
|
|
881
881
|
ref_key: "treeRef",
|
|
882
882
|
ref: s,
|
|
883
883
|
items: n.items,
|
|
884
884
|
"no-select": n.noSelect,
|
|
885
|
-
class:
|
|
885
|
+
class: D(n.class),
|
|
886
886
|
style: H(n.style),
|
|
887
887
|
onSelect: h,
|
|
888
888
|
"render-title": n.renderItemTitle,
|
|
@@ -893,7 +893,7 @@ const q = To(), v = {
|
|
|
893
893
|
]);
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
|
-
},
|
|
896
|
+
}, Io = {
|
|
897
897
|
__name: "DContextMenu",
|
|
898
898
|
props: {
|
|
899
899
|
items: Array,
|
|
@@ -902,20 +902,20 @@ const q = To(), v = {
|
|
|
902
902
|
},
|
|
903
903
|
emits: ["select"],
|
|
904
904
|
setup(e, { expose: o, emit: t }) {
|
|
905
|
-
const n = e, s =
|
|
905
|
+
const n = e, s = T(null), a = T(0), r = T(0), l = m(() => ({
|
|
906
906
|
left: a.value + "px",
|
|
907
907
|
top: r.value + "px"
|
|
908
908
|
})), i = (u) => {
|
|
909
|
-
s.value.show(),
|
|
910
|
-
const h = s.value.elementSize(), x = window.innerWidth,
|
|
911
|
-
a.value = x - u.pageX < h.width ? u.pageX - h.width : u.pageX, r.value =
|
|
909
|
+
s.value.show(), ht(() => {
|
|
910
|
+
const h = s.value.elementSize(), x = window.innerWidth, S = window.innerHeight;
|
|
911
|
+
a.value = x - u.pageX < h.width ? u.pageX - h.width : u.pageX, r.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
|
|
912
912
|
});
|
|
913
913
|
}, c = (u) => {
|
|
914
914
|
t("select", u);
|
|
915
915
|
};
|
|
916
916
|
return o({
|
|
917
917
|
show: i
|
|
918
|
-
}), (u, h) => (d(), b(
|
|
918
|
+
}), (u, h) => (d(), b(bt, {
|
|
919
919
|
ref_key: "dMenuRef",
|
|
920
920
|
ref: s,
|
|
921
921
|
onSelect: c,
|
|
@@ -927,7 +927,7 @@ const q = To(), v = {
|
|
|
927
927
|
"before-item": n.beforeItem
|
|
928
928
|
}, null, 8, ["items", "style", "render-item-title", "before-item"]));
|
|
929
929
|
}
|
|
930
|
-
},
|
|
930
|
+
}, xt = {
|
|
931
931
|
__name: "DTree",
|
|
932
932
|
props: {
|
|
933
933
|
items: Array,
|
|
@@ -970,10 +970,10 @@ const q = To(), v = {
|
|
|
970
970
|
},
|
|
971
971
|
emits: ["select", "collapse", "expand", "move", "over", "drop"],
|
|
972
972
|
setup(e, { expose: o, emit: t }) {
|
|
973
|
-
const n = e, s =
|
|
973
|
+
const n = e, s = T(null), a = T(!1), r = T(null), l = gt().uid;
|
|
974
974
|
v.actions.initTreeStore(l, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem, n.dropInside);
|
|
975
|
-
const i = (y,
|
|
976
|
-
console.log(y,
|
|
975
|
+
const i = (y, z) => {
|
|
976
|
+
console.log(y, z);
|
|
977
977
|
};
|
|
978
978
|
q.on(`expand-${l}`, (y) => {
|
|
979
979
|
t("expand", y);
|
|
@@ -988,55 +988,55 @@ const q = To(), v = {
|
|
|
988
988
|
t("over", y);
|
|
989
989
|
}, x = (y = null) => {
|
|
990
990
|
t("drop", y);
|
|
991
|
-
},
|
|
991
|
+
}, S = () => s.value.elementSize(), N = () => {
|
|
992
992
|
for (let y = 0; y < n.items.length; y++)
|
|
993
993
|
n.items[y].expanded = !0;
|
|
994
994
|
}, $ = () => {
|
|
995
995
|
for (let y = 0; y < n.items.length; y++)
|
|
996
996
|
n.items[y].expanded = !1;
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
},
|
|
997
|
+
}, A = () => l, W = (y) => v.actions.deepSearch(n.items, y), w = (y) => {
|
|
998
|
+
W(y) && v.mutations.setItemSelect(l, W(y));
|
|
999
|
+
}, I = (y) => {
|
|
1000
1000
|
n.contextClick({ e: y.e, model: y.model, target: r.value });
|
|
1001
|
-
}, M = (y) => n.contextBeforeClick({ model: y, target: r.value }), g = m(() => n.context),
|
|
1002
|
-
let
|
|
1001
|
+
}, M = (y) => n.contextBeforeClick({ model: y, target: r.value }), g = m(() => n.context), R = (y) => (g.value && (r.value = y.model, a.value.show(y.e)), !1), P = () => V(c.value), V = (y) => {
|
|
1002
|
+
let z = 0;
|
|
1003
1003
|
for (let p = 0; p < y.length; p++)
|
|
1004
|
-
|
|
1005
|
-
return
|
|
1004
|
+
z += v.actions.beforeItem(l, y[p]) ? 1 : 0, y[p].children && y[p].children.length > 0 && (z += V(y[p].children));
|
|
1005
|
+
return z;
|
|
1006
1006
|
};
|
|
1007
1007
|
return o({
|
|
1008
|
-
elementSize:
|
|
1008
|
+
elementSize: S,
|
|
1009
1009
|
expandAll: N,
|
|
1010
1010
|
collapseAll: $,
|
|
1011
|
-
getId:
|
|
1012
|
-
getNode:
|
|
1013
|
-
selectNode:
|
|
1011
|
+
getId: A,
|
|
1012
|
+
getNode: W,
|
|
1013
|
+
selectNode: w,
|
|
1014
1014
|
itemsCount: P
|
|
1015
|
-
}), (y,
|
|
1015
|
+
}), (y, z) => (d(), b(Lo, {
|
|
1016
1016
|
ref_key: "treeRef",
|
|
1017
1017
|
ref: s,
|
|
1018
1018
|
class: "tree",
|
|
1019
1019
|
tag: "ul",
|
|
1020
1020
|
onDrop: j(i, ["stop"])
|
|
1021
1021
|
}, {
|
|
1022
|
-
default:
|
|
1023
|
-
(d(!0), f(ie, null, ge(c.value, (p) => (d(), b(
|
|
1022
|
+
default: E(() => [
|
|
1023
|
+
(d(!0), f(ie, null, ge(c.value, (p) => (d(), b(To, {
|
|
1024
1024
|
key: p.id,
|
|
1025
1025
|
model: p,
|
|
1026
|
-
treeId:
|
|
1026
|
+
treeId: B(l),
|
|
1027
1027
|
items: n.items,
|
|
1028
1028
|
search: n.search,
|
|
1029
1029
|
onNodeclick: u,
|
|
1030
1030
|
onNodedragover: h,
|
|
1031
1031
|
onNodedrop: x,
|
|
1032
|
-
onNodecontext:
|
|
1032
|
+
onNodecontext: R
|
|
1033
1033
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128)),
|
|
1034
|
-
g.value ? (d(), b(
|
|
1034
|
+
g.value ? (d(), b(Io, {
|
|
1035
1035
|
key: 0,
|
|
1036
1036
|
ref_key: "contextTreeRef",
|
|
1037
1037
|
ref: a,
|
|
1038
1038
|
items: g.value,
|
|
1039
|
-
onSelect:
|
|
1039
|
+
onSelect: I,
|
|
1040
1040
|
"before-item": M
|
|
1041
1041
|
}, null, 8, ["items"])) : k("", !0)
|
|
1042
1042
|
]),
|
|
@@ -1044,7 +1044,7 @@ const q = To(), v = {
|
|
|
1044
1044
|
}, 8, ["onDrop"]));
|
|
1045
1045
|
}
|
|
1046
1046
|
};
|
|
1047
|
-
const
|
|
1047
|
+
const Eo = {
|
|
1048
1048
|
__name: "DAccordion",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
items: Array,
|
|
@@ -1060,7 +1060,7 @@ const Io = {
|
|
|
1060
1060
|
const t = e, n = (s) => {
|
|
1061
1061
|
o("move", s);
|
|
1062
1062
|
};
|
|
1063
|
-
return (s, a) => (d(), b(
|
|
1063
|
+
return (s, a) => (d(), b(xt, {
|
|
1064
1064
|
class: "accordion",
|
|
1065
1065
|
items: t.items,
|
|
1066
1066
|
"no-select": t.noSelect,
|
|
@@ -1069,7 +1069,7 @@ const Io = {
|
|
|
1069
1069
|
onMove: n
|
|
1070
1070
|
}, null, 8, ["items", "no-select", "render-title"]));
|
|
1071
1071
|
}
|
|
1072
|
-
},
|
|
1072
|
+
}, Ts = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-a724c500"]]), Bo = {
|
|
1073
1073
|
__name: "DLayoutHeader",
|
|
1074
1074
|
props: {
|
|
1075
1075
|
fixed: {
|
|
@@ -1111,10 +1111,10 @@ const Io = {
|
|
|
1111
1111
|
class: "d-layout-header",
|
|
1112
1112
|
style: H(t.value)
|
|
1113
1113
|
}, [
|
|
1114
|
-
|
|
1114
|
+
L(n.$slots, "default")
|
|
1115
1115
|
], 4));
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, Mo = {
|
|
1118
1118
|
__name: "DLayoutTab",
|
|
1119
1119
|
props: {
|
|
1120
1120
|
fixed: {
|
|
@@ -1160,10 +1160,10 @@ const Io = {
|
|
|
1160
1160
|
class: "d-layout-tab",
|
|
1161
1161
|
style: H(t.value)
|
|
1162
1162
|
}, [
|
|
1163
|
-
|
|
1163
|
+
L(n.$slots, "default")
|
|
1164
1164
|
], 4));
|
|
1165
1165
|
}
|
|
1166
|
-
},
|
|
1166
|
+
}, No = {
|
|
1167
1167
|
__name: "DLayoutFooter",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
fixed: {
|
|
@@ -1205,10 +1205,10 @@ const Io = {
|
|
|
1205
1205
|
class: "d-layout-footer",
|
|
1206
1206
|
style: H(t.value)
|
|
1207
1207
|
}, [
|
|
1208
|
-
|
|
1208
|
+
L(n.$slots, "default")
|
|
1209
1209
|
], 4));
|
|
1210
1210
|
}
|
|
1211
|
-
},
|
|
1211
|
+
}, Ro = {
|
|
1212
1212
|
__name: "DLayoutSidebar",
|
|
1213
1213
|
props: {
|
|
1214
1214
|
zIndex: {
|
|
@@ -1245,10 +1245,10 @@ const Io = {
|
|
|
1245
1245
|
class: "d-layout-sidebar",
|
|
1246
1246
|
style: H(t.value)
|
|
1247
1247
|
}, [
|
|
1248
|
-
|
|
1248
|
+
L(n.$slots, "default")
|
|
1249
1249
|
], 4));
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1251
|
+
}, Oo = {
|
|
1252
1252
|
__name: "DLayoutContent",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
paddingTop: {
|
|
@@ -1282,12 +1282,12 @@ const Io = {
|
|
|
1282
1282
|
style: H(t.value),
|
|
1283
1283
|
class: "d-layout-content"
|
|
1284
1284
|
}, [
|
|
1285
|
-
|
|
1285
|
+
L(n.$slots, "default")
|
|
1286
1286
|
], 4));
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
function
|
|
1290
|
-
const o =
|
|
1289
|
+
function Ao(e) {
|
|
1290
|
+
const o = T(0), t = m(() => `transform: translateX(${-o.value}px);`);
|
|
1291
1291
|
let n = !1;
|
|
1292
1292
|
function s(u) {
|
|
1293
1293
|
o.value = u;
|
|
@@ -1309,13 +1309,13 @@ function Oo(e) {
|
|
|
1309
1309
|
function c() {
|
|
1310
1310
|
r(), l(), n = !0;
|
|
1311
1311
|
}
|
|
1312
|
-
return
|
|
1312
|
+
return vt(e, (u) => {
|
|
1313
1313
|
u ? c() : i();
|
|
1314
|
-
}, { immediate: !0 }),
|
|
1314
|
+
}, { immediate: !0 }), Et(() => {
|
|
1315
1315
|
i();
|
|
1316
1316
|
}), t;
|
|
1317
1317
|
}
|
|
1318
|
-
const
|
|
1318
|
+
const Ho = 1001, Vo = 999, zo = 998, Cs = {
|
|
1319
1319
|
__name: "DLayoutAdmin",
|
|
1320
1320
|
props: {
|
|
1321
1321
|
mode: {
|
|
@@ -1406,11 +1406,11 @@ const Ao = 1001, Ho = 999, Vo = 998, Ts = {
|
|
|
1406
1406
|
},
|
|
1407
1407
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1408
1408
|
setup(e, { emit: o }) {
|
|
1409
|
-
const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a =
|
|
1410
|
-
const { transitionDuration: g, transitionTimingFunction:
|
|
1409
|
+
const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = Ao(s), r = m(() => t.fixedHeaderAndTab ? a.value : ""), l = m(() => t.fixedFooter ? a.value : ""), i = m(() => {
|
|
1410
|
+
const { transitionDuration: g, transitionTimingFunction: R } = t;
|
|
1411
1411
|
return {
|
|
1412
1412
|
transitionDuration: g,
|
|
1413
|
-
transitionTimingFunction:
|
|
1413
|
+
transitionTimingFunction: R
|
|
1414
1414
|
};
|
|
1415
1415
|
}), c = m(() => t.mode === "vertical"), u = m(() => t.isMobile || c.value ? 1003 : 1e3), h = m({
|
|
1416
1416
|
get() {
|
|
@@ -1423,86 +1423,86 @@ const Ao = 1001, Ho = 999, Vo = 998, Ts = {
|
|
|
1423
1423
|
function x() {
|
|
1424
1424
|
o("sidebar-mask-click");
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1427
|
-
const { transitionDuration: g, transitionTimingFunction:
|
|
1428
|
-
return `background-color:${t.maskBg};transition-duration:${g}ms;transition-timing-function:${
|
|
1426
|
+
const S = m(() => t.isMobile && !h.value), N = m(() => {
|
|
1427
|
+
const { transitionDuration: g, transitionTimingFunction: R } = t;
|
|
1428
|
+
return `background-color:${t.maskBg};transition-duration:${g}ms;transition-timing-function:${R};`;
|
|
1429
1429
|
}), $ = m(() => {
|
|
1430
|
-
const { sidebarWidth: g, sidebarCollapsedWidth:
|
|
1431
|
-
return t.sidebarVisible ?
|
|
1432
|
-
}),
|
|
1430
|
+
const { sidebarWidth: g, sidebarCollapsedWidth: R } = t, P = t.isMobile ? 0 : R, V = h.value ? P : g;
|
|
1431
|
+
return t.sidebarVisible ? V : 0;
|
|
1432
|
+
}), A = m(() => t.isMobile ? 0 : $.value), W = m(() => c.value ? A.value : 0), w = m(
|
|
1433
1433
|
() => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
|
|
1434
|
-
),
|
|
1434
|
+
), I = m(() => {
|
|
1435
1435
|
let g = 0;
|
|
1436
1436
|
return t.fixedHeaderAndTab && (t.headerVisible && (g += t.headerHeight), t.tabVisible && (g += t.tabHeight)), g;
|
|
1437
1437
|
}), M = m(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
|
|
1438
|
-
return (g,
|
|
1438
|
+
return (g, R) => (d(), f("div", {
|
|
1439
1439
|
class: "d-layout",
|
|
1440
1440
|
style: H(n.value)
|
|
1441
1441
|
}, [
|
|
1442
|
-
e.headerVisible ? (d(), b(
|
|
1442
|
+
e.headerVisible ? (d(), b(Bo, ue({ key: 0 }, i.value, {
|
|
1443
1443
|
fixed: e.fixedHeaderAndTab,
|
|
1444
|
-
"z-index":
|
|
1444
|
+
"z-index": Ho,
|
|
1445
1445
|
"min-width": e.minWidth,
|
|
1446
1446
|
height: e.headerHeight,
|
|
1447
|
-
"padding-left":
|
|
1447
|
+
"padding-left": W.value,
|
|
1448
1448
|
style: r.value
|
|
1449
1449
|
}), {
|
|
1450
|
-
default:
|
|
1451
|
-
|
|
1450
|
+
default: E(() => [
|
|
1451
|
+
L(g.$slots, "header")
|
|
1452
1452
|
]),
|
|
1453
1453
|
_: 3
|
|
1454
1454
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
|
|
1455
|
-
e.tabVisible ? (d(), b(
|
|
1455
|
+
e.tabVisible ? (d(), b(Mo, ue({ key: 1 }, i.value, {
|
|
1456
1456
|
fixed: e.fixedHeaderAndTab,
|
|
1457
|
-
"z-index":
|
|
1457
|
+
"z-index": Vo,
|
|
1458
1458
|
"min-width": e.minWidth,
|
|
1459
1459
|
top: e.headerHeight,
|
|
1460
1460
|
height: e.tabHeight,
|
|
1461
|
-
"padding-left":
|
|
1461
|
+
"padding-left": A.value,
|
|
1462
1462
|
style: r.value
|
|
1463
1463
|
}), {
|
|
1464
|
-
default:
|
|
1465
|
-
|
|
1464
|
+
default: E(() => [
|
|
1465
|
+
L(g.$slots, "tab")
|
|
1466
1466
|
]),
|
|
1467
1467
|
_: 3
|
|
1468
1468
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
|
|
1469
|
-
e.sidebarVisible ? (d(), b(
|
|
1469
|
+
e.sidebarVisible ? (d(), b(Ro, ue({ key: 2 }, i.value, {
|
|
1470
1470
|
"z-index": u.value,
|
|
1471
1471
|
width: $.value,
|
|
1472
|
-
"padding-top":
|
|
1472
|
+
"padding-top": w.value
|
|
1473
1473
|
}), {
|
|
1474
|
-
default:
|
|
1475
|
-
|
|
1474
|
+
default: E(() => [
|
|
1475
|
+
L(g.$slots, "sidebar")
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 3
|
|
1478
1478
|
}, 16, ["z-index", "width", "padding-top"])) : k("", !0),
|
|
1479
|
-
|
|
1479
|
+
S.value ? (d(), f("div", {
|
|
1480
1480
|
key: 3,
|
|
1481
1481
|
class: "d-layout-sidebar-mask",
|
|
1482
1482
|
style: H(N.value),
|
|
1483
1483
|
onClick: x
|
|
1484
1484
|
}, null, 4)) : k("", !0),
|
|
1485
|
-
oe(
|
|
1486
|
-
"padding-top":
|
|
1485
|
+
oe(Oo, ue(i.value, {
|
|
1486
|
+
"padding-top": I.value,
|
|
1487
1487
|
"padding-bottom": M.value,
|
|
1488
|
-
"padding-left":
|
|
1488
|
+
"padding-left": A.value,
|
|
1489
1489
|
"overflow-hidden": e.addMainOverflowHidden
|
|
1490
1490
|
}), {
|
|
1491
|
-
default:
|
|
1492
|
-
|
|
1491
|
+
default: E(() => [
|
|
1492
|
+
L(g.$slots, "default")
|
|
1493
1493
|
]),
|
|
1494
1494
|
_: 3
|
|
1495
1495
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
1496
|
-
e.footerVisible ? (d(), b(
|
|
1496
|
+
e.footerVisible ? (d(), b(No, ue({ key: 4 }, i.value, {
|
|
1497
1497
|
fixed: e.fixedFooter,
|
|
1498
|
-
"z-index":
|
|
1498
|
+
"z-index": zo,
|
|
1499
1499
|
"min-width": e.minWidth,
|
|
1500
1500
|
height: e.footerHeight,
|
|
1501
|
-
"padding-left":
|
|
1501
|
+
"padding-left": A.value,
|
|
1502
1502
|
style: l.value
|
|
1503
1503
|
}), {
|
|
1504
|
-
default:
|
|
1505
|
-
|
|
1504
|
+
default: E(() => [
|
|
1505
|
+
L(g.$slots, "footer")
|
|
1506
1506
|
]),
|
|
1507
1507
|
_: 3
|
|
1508
1508
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
|
|
@@ -1527,7 +1527,7 @@ const Ao = 1001, Ho = 999, Vo = 998, Ts = {
|
|
|
1527
1527
|
pe.state.theme = pe.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(pe.state.theme);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
},
|
|
1530
|
+
}, Ls = {
|
|
1531
1531
|
__name: "DConfigProvider",
|
|
1532
1532
|
props: {
|
|
1533
1533
|
theme: {
|
|
@@ -1537,10 +1537,10 @@ const Ao = 1001, Ho = 999, Vo = 998, Ts = {
|
|
|
1537
1537
|
},
|
|
1538
1538
|
setup(e) {
|
|
1539
1539
|
const o = e;
|
|
1540
|
-
return pe.mutations.setTheme(o.theme), (t, n) =>
|
|
1540
|
+
return pe.mutations.setTheme(o.theme), (t, n) => L(t.$slots, "default");
|
|
1541
1541
|
}
|
|
1542
1542
|
};
|
|
1543
|
-
const
|
|
1543
|
+
const Is = {
|
|
1544
1544
|
__name: "DScrollProvider",
|
|
1545
1545
|
props: {
|
|
1546
1546
|
xHide: {
|
|
@@ -1564,11 +1564,11 @@ const Ls = {
|
|
|
1564
1564
|
return me(() => {
|
|
1565
1565
|
s("colored-scroller");
|
|
1566
1566
|
}), (a, r) => (d(), f("div", null, [
|
|
1567
|
-
|
|
1567
|
+
L(a.$slots, "default")
|
|
1568
1568
|
]));
|
|
1569
1569
|
}
|
|
1570
1570
|
};
|
|
1571
|
-
const
|
|
1571
|
+
const Fo = {
|
|
1572
1572
|
__name: "DScroll",
|
|
1573
1573
|
props: {
|
|
1574
1574
|
autoHide: {
|
|
@@ -1592,12 +1592,12 @@ const zo = {
|
|
|
1592
1592
|
}));
|
|
1593
1593
|
const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible");
|
|
1594
1594
|
return (s, a) => (d(), f("div", {
|
|
1595
|
-
class:
|
|
1595
|
+
class: D(o.autoHide ? "d-scroll-hide" : "d-scroll")
|
|
1596
1596
|
}, [
|
|
1597
|
-
|
|
1597
|
+
L(s.$slots, "default", {}, void 0, !0)
|
|
1598
1598
|
], 2));
|
|
1599
1599
|
}
|
|
1600
|
-
},
|
|
1600
|
+
}, Es = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-d50b3609"]]), Wo = { class: "modal-content" }, Po = { class: "modal-header" }, jo = { class: "modal-title" }, Xo = { class: "modal-body" }, Yo = { class: "modal-footer" }, $t = {
|
|
1601
1601
|
__name: "DModal",
|
|
1602
1602
|
props: {
|
|
1603
1603
|
show: Boolean,
|
|
@@ -1608,7 +1608,7 @@ const zo = {
|
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["open", "close"],
|
|
1610
1610
|
setup(e, { expose: o, emit: t }) {
|
|
1611
|
-
const n = e, s =
|
|
1611
|
+
const n = e, s = T(null), a = T(!1);
|
|
1612
1612
|
a.value = n == null ? void 0 : n.show;
|
|
1613
1613
|
const r = () => {
|
|
1614
1614
|
a.value = !0, t("open", s);
|
|
@@ -1620,9 +1620,9 @@ const zo = {
|
|
|
1620
1620
|
hide: l
|
|
1621
1621
|
}), (i, c) => {
|
|
1622
1622
|
const u = Re("keydown");
|
|
1623
|
-
return d(), b(
|
|
1623
|
+
return d(), b(mt, { to: "body" }, [
|
|
1624
1624
|
oe(Ne, { name: "fade" }, {
|
|
1625
|
-
default:
|
|
1625
|
+
default: E(() => [
|
|
1626
1626
|
a.value ? J((d(), f("div", {
|
|
1627
1627
|
key: 0,
|
|
1628
1628
|
ref_key: "modalRef",
|
|
@@ -1633,17 +1633,17 @@ const zo = {
|
|
|
1633
1633
|
class: "modal-dialog",
|
|
1634
1634
|
style: H({ width: n.width, maxWidth: n.maxWidth })
|
|
1635
1635
|
}, [
|
|
1636
|
-
_("div",
|
|
1637
|
-
_("div",
|
|
1638
|
-
_("h5",
|
|
1639
|
-
|
|
1636
|
+
_("div", Wo, [
|
|
1637
|
+
_("div", Po, [
|
|
1638
|
+
_("h5", jo, [
|
|
1639
|
+
L(i.$slots, "modal-title")
|
|
1640
1640
|
])
|
|
1641
1641
|
]),
|
|
1642
|
-
_("div", jo, [
|
|
1643
|
-
C(i.$slots, "default")
|
|
1644
|
-
]),
|
|
1645
1642
|
_("div", Xo, [
|
|
1646
|
-
|
|
1643
|
+
L(i.$slots, "default")
|
|
1644
|
+
]),
|
|
1645
|
+
_("div", Yo, [
|
|
1646
|
+
L(i.$slots, "modal-footer")
|
|
1647
1647
|
])
|
|
1648
1648
|
])
|
|
1649
1649
|
], 4)
|
|
@@ -1656,11 +1656,11 @@ const zo = {
|
|
|
1656
1656
|
]);
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
|
-
}, ce =
|
|
1659
|
+
}, ce = Bt();
|
|
1660
1660
|
function Me(e) {
|
|
1661
1661
|
e === void 0 && (e = ce.value.comp.returnValue()), ce.value.resolve(e), ce.value = null;
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function kt(e, o, t = "default") {
|
|
1664
1664
|
return new Promise((n) => {
|
|
1665
1665
|
ce.value = {
|
|
1666
1666
|
dialog: e,
|
|
@@ -1670,13 +1670,13 @@ function $t(e, o, t = "default") {
|
|
|
1670
1670
|
};
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
|
-
var
|
|
1673
|
+
var Uo = (e, o) => {
|
|
1674
1674
|
const t = e.__vccOpts || e;
|
|
1675
1675
|
for (const [n, s] of o)
|
|
1676
1676
|
t[n] = s;
|
|
1677
1677
|
return t;
|
|
1678
1678
|
};
|
|
1679
|
-
const
|
|
1679
|
+
const qo = Mt({
|
|
1680
1680
|
name: "DialogWrapper",
|
|
1681
1681
|
components: {},
|
|
1682
1682
|
props: {
|
|
@@ -1687,8 +1687,8 @@ const Uo = Bt({
|
|
|
1687
1687
|
transitionAttrs: Object
|
|
1688
1688
|
},
|
|
1689
1689
|
setup() {
|
|
1690
|
-
const e =
|
|
1691
|
-
return
|
|
1690
|
+
const e = T();
|
|
1691
|
+
return vt(e, () => {
|
|
1692
1692
|
ce.value && (ce.value.comp = e.value);
|
|
1693
1693
|
}), {
|
|
1694
1694
|
dialogRef: ce,
|
|
@@ -1696,16 +1696,16 @@ const Uo = Bt({
|
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
|
-
function
|
|
1700
|
-
return d(), b(Ne,
|
|
1701
|
-
default:
|
|
1699
|
+
function Go(e, o, t, n, s, a) {
|
|
1700
|
+
return d(), b(Ne, pt(ft(e.transitionAttrs)), {
|
|
1701
|
+
default: E(() => [
|
|
1702
1702
|
e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), b(Y(e.dialogRef.dialog), ue({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
|
|
1703
1703
|
]),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}, 16);
|
|
1706
1706
|
}
|
|
1707
|
-
var
|
|
1708
|
-
const
|
|
1707
|
+
var Zo = /* @__PURE__ */ Uo(qo, [["render", Go]]);
|
|
1708
|
+
const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, Jo = {
|
|
1709
1709
|
__name: "DAlertDialog",
|
|
1710
1710
|
props: {
|
|
1711
1711
|
title: String,
|
|
@@ -1716,19 +1716,19 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1716
1716
|
return o({
|
|
1717
1717
|
returnValue: () => !0
|
|
1718
1718
|
}), (s, a) => (d(), f("div", null, [
|
|
1719
|
-
oe(
|
|
1720
|
-
"modal-title":
|
|
1721
|
-
K(
|
|
1719
|
+
oe($t, { show: !0 }, {
|
|
1720
|
+
"modal-title": E(() => [
|
|
1721
|
+
K(O(t.title), 1)
|
|
1722
1722
|
]),
|
|
1723
|
-
default:
|
|
1724
|
-
K(
|
|
1723
|
+
default: E(() => [
|
|
1724
|
+
K(O(t.message), 1)
|
|
1725
1725
|
]),
|
|
1726
|
-
"modal-footer":
|
|
1727
|
-
_("div",
|
|
1726
|
+
"modal-footer": E(() => [
|
|
1727
|
+
_("div", Ko, [
|
|
1728
1728
|
oe(ae, {
|
|
1729
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
1729
|
+
onClick: a[0] || (a[0] = (r) => B(Me)())
|
|
1730
1730
|
}, {
|
|
1731
|
-
default:
|
|
1731
|
+
default: E(() => [
|
|
1732
1732
|
K("Закрыть")
|
|
1733
1733
|
]),
|
|
1734
1734
|
_: 1
|
|
@@ -1739,7 +1739,7 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1739
1739
|
})
|
|
1740
1740
|
]));
|
|
1741
1741
|
}
|
|
1742
|
-
},
|
|
1742
|
+
}, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, en = {
|
|
1743
1743
|
__name: "DConfirmDialog",
|
|
1744
1744
|
props: {
|
|
1745
1745
|
title: String,
|
|
@@ -1750,28 +1750,28 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1750
1750
|
return o({
|
|
1751
1751
|
returnValue: () => !0
|
|
1752
1752
|
}), (s, a) => (d(), f("div", null, [
|
|
1753
|
-
oe(
|
|
1754
|
-
"modal-title":
|
|
1755
|
-
K(
|
|
1753
|
+
oe($t, { show: !0 }, {
|
|
1754
|
+
"modal-title": E(() => [
|
|
1755
|
+
K(O(t.title), 1)
|
|
1756
1756
|
]),
|
|
1757
|
-
default:
|
|
1758
|
-
K(
|
|
1757
|
+
default: E(() => [
|
|
1758
|
+
K(O(t.message), 1)
|
|
1759
1759
|
]),
|
|
1760
|
-
"modal-footer":
|
|
1761
|
-
_("div",
|
|
1760
|
+
"modal-footer": E(() => [
|
|
1761
|
+
_("div", Qo, [
|
|
1762
1762
|
oe(ae, {
|
|
1763
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
1763
|
+
onClick: a[0] || (a[0] = (r) => B(Me)())
|
|
1764
1764
|
}, {
|
|
1765
|
-
default:
|
|
1765
|
+
default: E(() => [
|
|
1766
1766
|
K("Да")
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 1
|
|
1769
1769
|
}),
|
|
1770
1770
|
oe(ae, {
|
|
1771
1771
|
class: "button-red",
|
|
1772
|
-
onClick: a[1] || (a[1] = (r) =>
|
|
1772
|
+
onClick: a[1] || (a[1] = (r) => B(Me)(!1))
|
|
1773
1773
|
}, {
|
|
1774
|
-
default:
|
|
1774
|
+
default: E(() => [
|
|
1775
1775
|
K("Нет")
|
|
1776
1776
|
]),
|
|
1777
1777
|
_: 1
|
|
@@ -1782,7 +1782,7 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1782
1782
|
})
|
|
1783
1783
|
]));
|
|
1784
1784
|
}
|
|
1785
|
-
},
|
|
1785
|
+
}, tn = { class: "dropdown" }, Bs = {
|
|
1786
1786
|
__name: "DDropdown",
|
|
1787
1787
|
props: {
|
|
1788
1788
|
class: String,
|
|
@@ -1802,46 +1802,46 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1802
1802
|
},
|
|
1803
1803
|
emits: ["select", "click"],
|
|
1804
1804
|
setup(e, { expose: o, emit: t }) {
|
|
1805
|
-
const n = e, s = Ce(), a =
|
|
1806
|
-
if (t("click",
|
|
1805
|
+
const n = e, s = Ce(), a = T(null), r = T(null), l = T(0), i = T(0), c = (S) => {
|
|
1806
|
+
if (t("click", S), a.value.isShowed()) {
|
|
1807
1807
|
a.value.hide();
|
|
1808
1808
|
return;
|
|
1809
1809
|
}
|
|
1810
|
-
a.value.show(),
|
|
1811
|
-
const N = a.value.elementSize(), $ = r.value.elementSize(),
|
|
1812
|
-
l.value =
|
|
1810
|
+
a.value.show(), ht(() => {
|
|
1811
|
+
const N = a.value.elementSize(), $ = r.value.elementSize(), A = window.innerWidth, W = window.innerHeight;
|
|
1812
|
+
l.value = A - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = W - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
|
|
1813
1813
|
});
|
|
1814
|
-
}, u = (
|
|
1815
|
-
t("select",
|
|
1814
|
+
}, u = (S) => {
|
|
1815
|
+
t("select", S);
|
|
1816
1816
|
}, h = m(() => ({ left: l.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
|
|
1817
1817
|
o({
|
|
1818
1818
|
show: c
|
|
1819
1819
|
});
|
|
1820
|
-
const x = (
|
|
1821
|
-
return (
|
|
1820
|
+
const x = (S) => !!s[S];
|
|
1821
|
+
return (S, N) => (d(), f("div", tn, [
|
|
1822
1822
|
x("default") ? (d(), b(ae, {
|
|
1823
1823
|
key: 0,
|
|
1824
1824
|
ref_key: "buttonRef",
|
|
1825
1825
|
ref: r,
|
|
1826
|
-
class:
|
|
1826
|
+
class: D(n.class),
|
|
1827
1827
|
icon: n.icon,
|
|
1828
1828
|
onClick: j(c, ["stop", "prevent"]),
|
|
1829
1829
|
type: n.type
|
|
1830
1830
|
}, {
|
|
1831
|
-
default:
|
|
1832
|
-
|
|
1831
|
+
default: E(() => [
|
|
1832
|
+
L(S.$slots, "default")
|
|
1833
1833
|
]),
|
|
1834
1834
|
_: 3
|
|
1835
1835
|
}, 8, ["class", "icon", "onClick", "type"])) : (d(), b(ae, {
|
|
1836
1836
|
key: 1,
|
|
1837
1837
|
ref_key: "buttonRef",
|
|
1838
1838
|
ref: r,
|
|
1839
|
-
class:
|
|
1839
|
+
class: D(n.class),
|
|
1840
1840
|
icon: n.icon,
|
|
1841
1841
|
onClick: j(c, ["stop", "prevent"]),
|
|
1842
1842
|
type: n.type
|
|
1843
1843
|
}, null, 8, ["class", "icon", "onClick", "type"])),
|
|
1844
|
-
oe(
|
|
1844
|
+
oe(bt, {
|
|
1845
1845
|
ref_key: "dMenuRef",
|
|
1846
1846
|
ref: a,
|
|
1847
1847
|
items: n.items,
|
|
@@ -1855,34 +1855,34 @@ const Zo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1855
1855
|
}, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
|
|
1856
1856
|
]));
|
|
1857
1857
|
}
|
|
1858
|
-
},
|
|
1859
|
-
function
|
|
1860
|
-
return d(), f("div",
|
|
1861
|
-
|
|
1858
|
+
}, on = {}, nn = { class: "d-panel" };
|
|
1859
|
+
function sn(e, o) {
|
|
1860
|
+
return d(), f("div", nn, [
|
|
1861
|
+
L(e.$slots, "default")
|
|
1862
1862
|
]);
|
|
1863
1863
|
}
|
|
1864
|
-
const
|
|
1864
|
+
const an = /* @__PURE__ */ re(on, [["render", sn]]), rn = { class: "card-header" }, ln = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Ms = {
|
|
1865
1865
|
__name: "DCard",
|
|
1866
1866
|
setup(e) {
|
|
1867
|
-
return (o, t) => (d(), b(
|
|
1868
|
-
default:
|
|
1869
|
-
_("div",
|
|
1870
|
-
_("h5",
|
|
1871
|
-
|
|
1867
|
+
return (o, t) => (d(), b(an, { class: "d-card" }, {
|
|
1868
|
+
default: E(() => [
|
|
1869
|
+
_("div", rn, [
|
|
1870
|
+
_("h5", ln, [
|
|
1871
|
+
L(o.$slots, "title")
|
|
1872
1872
|
])
|
|
1873
1873
|
]),
|
|
1874
|
-
_("div", ln, [
|
|
1875
|
-
C(o.$slots, "default")
|
|
1876
|
-
]),
|
|
1877
1874
|
_("div", dn, [
|
|
1878
|
-
|
|
1875
|
+
L(o.$slots, "default")
|
|
1876
|
+
]),
|
|
1877
|
+
_("div", cn, [
|
|
1878
|
+
L(o.$slots, "footer")
|
|
1879
1879
|
])
|
|
1880
1880
|
]),
|
|
1881
1881
|
_: 3
|
|
1882
1882
|
}));
|
|
1883
1883
|
}
|
|
1884
|
-
},
|
|
1885
|
-
class
|
|
1884
|
+
}, un = /* @__PURE__ */ new Map();
|
|
1885
|
+
class pn {
|
|
1886
1886
|
constructor(o, t, n) {
|
|
1887
1887
|
this.remaining = t, this.callback = o, this.notifyItem = n, this.resume();
|
|
1888
1888
|
}
|
|
@@ -1893,7 +1893,7 @@ class un {
|
|
|
1893
1893
|
this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
const Ee = "[-+]?[0-9]*.?[0-9]+",
|
|
1896
|
+
const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
1897
1897
|
{
|
|
1898
1898
|
name: "px",
|
|
1899
1899
|
regexp: new RegExp(`^${Ee}px$`)
|
|
@@ -1910,14 +1910,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
1910
1910
|
name: "px",
|
|
1911
1911
|
regexp: new RegExp(`^${Ee}$`)
|
|
1912
1912
|
}
|
|
1913
|
-
],
|
|
1913
|
+
], fn = (e) => {
|
|
1914
1914
|
if (e === "auto")
|
|
1915
1915
|
return {
|
|
1916
1916
|
type: e,
|
|
1917
1917
|
value: 0
|
|
1918
1918
|
};
|
|
1919
|
-
for (let o = 0; o <
|
|
1920
|
-
const t =
|
|
1919
|
+
for (let o = 0; o < it.length; o++) {
|
|
1920
|
+
const t = it[o];
|
|
1921
1921
|
if (t.regexp.test(e))
|
|
1922
1922
|
return {
|
|
1923
1923
|
type: t.name,
|
|
@@ -1928,23 +1928,23 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
1928
1928
|
type: "",
|
|
1929
1929
|
value: e
|
|
1930
1930
|
};
|
|
1931
|
-
},
|
|
1931
|
+
}, mn = (e) => {
|
|
1932
1932
|
switch (typeof e) {
|
|
1933
1933
|
case "number":
|
|
1934
1934
|
return { type: "px", value: e };
|
|
1935
1935
|
case "string":
|
|
1936
|
-
return
|
|
1936
|
+
return fn(e);
|
|
1937
1937
|
default:
|
|
1938
1938
|
return { type: "", value: e };
|
|
1939
1939
|
}
|
|
1940
|
-
},
|
|
1940
|
+
}, rt = {
|
|
1941
1941
|
x: /* @__PURE__ */ new Set(["left", "center", "right"]),
|
|
1942
1942
|
y: /* @__PURE__ */ new Set(["top", "bottom"])
|
|
1943
|
-
},
|
|
1944
|
-
typeof e == "string" && (e =
|
|
1943
|
+
}, hn = ((e) => () => e++)(0), gn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), vn = (e) => {
|
|
1944
|
+
typeof e == "string" && (e = gn(e));
|
|
1945
1945
|
let o = null, t = null;
|
|
1946
1946
|
return e.forEach((n) => {
|
|
1947
|
-
|
|
1947
|
+
rt.y.has(n) && (t = n), rt.x.has(n) && (o = n);
|
|
1948
1948
|
}), { x: o, y: t };
|
|
1949
1949
|
}, Be = {
|
|
1950
1950
|
position: ["top", "right"],
|
|
@@ -1959,7 +1959,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
1959
1959
|
opacity: [0, 1]
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
},
|
|
1962
|
+
}, yn = {
|
|
1963
1963
|
__name: "VelocityGroup",
|
|
1964
1964
|
emits: ["enter", "leave", "after-leave"],
|
|
1965
1965
|
setup(e, { emit: o }) {
|
|
@@ -1970,20 +1970,20 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
1970
1970
|
}, s = () => {
|
|
1971
1971
|
o("after-leave");
|
|
1972
1972
|
};
|
|
1973
|
-
return (a, r) => (d(), b(
|
|
1973
|
+
return (a, r) => (d(), b(yt, {
|
|
1974
1974
|
tag: "span",
|
|
1975
1975
|
css: !1,
|
|
1976
1976
|
onEnter: t,
|
|
1977
1977
|
onLeave: n,
|
|
1978
1978
|
onAfterLeave: s
|
|
1979
1979
|
}, {
|
|
1980
|
-
default:
|
|
1981
|
-
|
|
1980
|
+
default: E(() => [
|
|
1981
|
+
L(a.$slots, "default")
|
|
1982
1982
|
]),
|
|
1983
1983
|
_: 3
|
|
1984
1984
|
}));
|
|
1985
1985
|
}
|
|
1986
|
-
},
|
|
1986
|
+
}, _n = /* @__PURE__ */ Object.assign({
|
|
1987
1987
|
inheritAttrs: !1
|
|
1988
1988
|
}, {
|
|
1989
1989
|
__name: "CssGroup",
|
|
@@ -1992,20 +1992,20 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
1992
1992
|
},
|
|
1993
1993
|
setup(e) {
|
|
1994
1994
|
const o = e;
|
|
1995
|
-
return (t, n) => (d(), b(
|
|
1995
|
+
return (t, n) => (d(), b(yt, {
|
|
1996
1996
|
tag: "span",
|
|
1997
1997
|
name: o.name
|
|
1998
1998
|
}, {
|
|
1999
|
-
default:
|
|
2000
|
-
|
|
1999
|
+
default: E(() => [
|
|
2000
|
+
L(t.$slots, "default")
|
|
2001
2001
|
]),
|
|
2002
2002
|
_: 3
|
|
2003
2003
|
}, 8, ["name"]));
|
|
2004
2004
|
}
|
|
2005
|
-
}),
|
|
2005
|
+
}), bn = ["data-id"], xn = ["onClick"], $n = ["innerHTML"], kn = ["innerHTML"], wn = {
|
|
2006
2006
|
key: 0,
|
|
2007
2007
|
class: "d-notification-title"
|
|
2008
|
-
},
|
|
2008
|
+
}, Sn = { class: "notification-content" }, Ns = {
|
|
2009
2009
|
__name: "DNotificationProvider",
|
|
2010
2010
|
props: {
|
|
2011
2011
|
group: {
|
|
@@ -2078,12 +2078,12 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2078
2078
|
const t = e, n = {
|
|
2079
2079
|
IDLE: 0,
|
|
2080
2080
|
DESTROYED: 2
|
|
2081
|
-
}, s =
|
|
2082
|
-
const { x: p, y:
|
|
2083
|
-
width:
|
|
2081
|
+
}, s = T([]), a = T(null), r = T(un.get("velocity")), l = m(() => t.animationType === "velocity"), i = m(() => l.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(t.width)), h = m(() => {
|
|
2082
|
+
const { x: p, y: F } = vn(t.position), C = u.value.value, G = u.value.type, ne = {
|
|
2083
|
+
width: C + G
|
|
2084
2084
|
};
|
|
2085
|
-
return
|
|
2086
|
-
}), x = m(() => "bottom" in h.value),
|
|
2085
|
+
return F && (ne[F] = "0px"), p && (p === "center" ? ne.left = `calc(50% - ${+C / 2}${G})` : ne[p] = "0px"), ne;
|
|
2086
|
+
}), x = m(() => "bottom" in h.value), S = (p) => {
|
|
2087
2087
|
o("click", p), t.closeOnClick && M(p);
|
|
2088
2088
|
}, N = () => {
|
|
2089
2089
|
var p;
|
|
@@ -2091,118 +2091,118 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2091
2091
|
}, $ = () => {
|
|
2092
2092
|
var p;
|
|
2093
2093
|
t.pauseOnHover && ((p = a.value) == null || p.resume());
|
|
2094
|
-
},
|
|
2094
|
+
}, A = (p) => {
|
|
2095
2095
|
if (p.group || (p.group = ""), p.data || (p.data = {}), t.group !== p.group)
|
|
2096
2096
|
return;
|
|
2097
2097
|
if (p.clean || p.clear) {
|
|
2098
|
-
|
|
2098
|
+
R();
|
|
2099
2099
|
return;
|
|
2100
2100
|
}
|
|
2101
|
-
const
|
|
2102
|
-
id: be ||
|
|
2101
|
+
const F = typeof p.duration == "number" ? p.duration : t.duration, C = typeof p.speed == "number" ? p.speed : t.speed, G = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : t.ignoreDuplicates, { title: ne, text: ve, type: ye, data: _e, id: be } = p, Q = {
|
|
2102
|
+
id: be || hn(),
|
|
2103
2103
|
title: ne,
|
|
2104
2104
|
text: ve,
|
|
2105
2105
|
type: ye,
|
|
2106
2106
|
state: n.IDLE,
|
|
2107
|
-
speed:
|
|
2108
|
-
length:
|
|
2107
|
+
speed: C,
|
|
2108
|
+
length: F + 2 * C,
|
|
2109
2109
|
data: _e
|
|
2110
2110
|
};
|
|
2111
|
-
|
|
2111
|
+
F >= 0 && (a.value = new pn(() => M(Q), Q.length, Q));
|
|
2112
2112
|
const xe = t.reverse ? !x.value : x.value;
|
|
2113
2113
|
let le = -1;
|
|
2114
2114
|
const $e = c.value.some((he) => he.title === p.title && he.text === p.text);
|
|
2115
2115
|
(!G || !$e) && (xe ? (s.value.push(Q), o("start", Q), c.value.length > t.max && (le = 0)) : (s.value.unshift(Q), o("start", Q), c.value.length > t.max && (le = c.value.length - 1)), le !== -1 && M(c.value[le]));
|
|
2116
|
-
},
|
|
2116
|
+
}, W = (p) => {
|
|
2117
2117
|
g(p);
|
|
2118
|
-
},
|
|
2118
|
+
}, w = (p) => [
|
|
2119
2119
|
"d-notification-template",
|
|
2120
2120
|
t.classes,
|
|
2121
2121
|
p.type || ""
|
|
2122
|
-
],
|
|
2123
|
-
clearTimeout(p.timer), p.state = n.DESTROYED,
|
|
2122
|
+
], I = (p) => l.value ? void 0 : { transition: `all ${p.speed}ms` }, M = (p) => {
|
|
2123
|
+
clearTimeout(p.timer), p.state = n.DESTROYED, z(), o("destroy", p);
|
|
2124
2124
|
}, g = (p) => {
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2127
|
-
},
|
|
2125
|
+
const F = s.value.find((C) => C.id === p);
|
|
2126
|
+
F && M(F);
|
|
2127
|
+
}, R = () => {
|
|
2128
2128
|
c.value.forEach(M);
|
|
2129
|
-
}, P = (p,
|
|
2129
|
+
}, P = (p, F) => {
|
|
2130
2130
|
var G;
|
|
2131
|
-
const
|
|
2132
|
-
return typeof
|
|
2133
|
-
},
|
|
2131
|
+
const C = (G = t.animation) == null ? void 0 : G[p];
|
|
2132
|
+
return typeof C == "function" ? C(F) : C;
|
|
2133
|
+
}, V = (p, F) => {
|
|
2134
2134
|
if (!l.value)
|
|
2135
2135
|
return;
|
|
2136
|
-
const
|
|
2137
|
-
r.value(p,
|
|
2136
|
+
const C = P("enter", p);
|
|
2137
|
+
r.value(p, C, {
|
|
2138
2138
|
duration: t.speed,
|
|
2139
|
-
complete:
|
|
2139
|
+
complete: F
|
|
2140
2140
|
});
|
|
2141
|
-
}, y = (p,
|
|
2141
|
+
}, y = (p, F) => {
|
|
2142
2142
|
if (!l.value)
|
|
2143
2143
|
return;
|
|
2144
|
-
const
|
|
2145
|
-
r.value(p,
|
|
2144
|
+
const C = P("leave", p);
|
|
2145
|
+
r.value(p, C, {
|
|
2146
2146
|
duration: t.speed,
|
|
2147
|
-
complete:
|
|
2147
|
+
complete: F
|
|
2148
2148
|
});
|
|
2149
2149
|
};
|
|
2150
|
-
function
|
|
2150
|
+
function z() {
|
|
2151
2151
|
s.value = s.value.filter((p) => p.state !== n.DESTROYED);
|
|
2152
2152
|
}
|
|
2153
2153
|
return me(() => {
|
|
2154
|
-
q.on("notification-add",
|
|
2155
|
-
}), (p,
|
|
2154
|
+
q.on("notification-add", A), q.on("notification-close", W);
|
|
2155
|
+
}), (p, F) => (d(), f("div", {
|
|
2156
2156
|
class: "d-notification-group",
|
|
2157
2157
|
style: H(h.value)
|
|
2158
2158
|
}, [
|
|
2159
2159
|
(d(), b(Y(i.value), {
|
|
2160
2160
|
name: e.animationName,
|
|
2161
|
-
onEnter:
|
|
2161
|
+
onEnter: V,
|
|
2162
2162
|
onLeave: y,
|
|
2163
|
-
onAfterLeave:
|
|
2163
|
+
onAfterLeave: z
|
|
2164
2164
|
}, {
|
|
2165
|
-
default:
|
|
2166
|
-
(d(!0), f(ie, null, ge(c.value, (
|
|
2167
|
-
key:
|
|
2165
|
+
default: E(() => [
|
|
2166
|
+
(d(!0), f(ie, null, ge(c.value, (C) => (d(), f("div", {
|
|
2167
|
+
key: C.id,
|
|
2168
2168
|
class: "d-notification-wrapper",
|
|
2169
|
-
style: H(
|
|
2170
|
-
"data-id":
|
|
2169
|
+
style: H(I(C)),
|
|
2170
|
+
"data-id": C.id,
|
|
2171
2171
|
onMouseenter: N,
|
|
2172
2172
|
onMouseleave: $
|
|
2173
2173
|
}, [
|
|
2174
|
-
|
|
2175
|
-
class:
|
|
2176
|
-
item:
|
|
2177
|
-
close: () => M(
|
|
2174
|
+
L(p.$slots, "body", {
|
|
2175
|
+
class: D([e.classes, C.type]),
|
|
2176
|
+
item: C,
|
|
2177
|
+
close: () => M(C)
|
|
2178
2178
|
}, () => [
|
|
2179
2179
|
_("div", {
|
|
2180
|
-
class:
|
|
2181
|
-
onClick: (G) =>
|
|
2180
|
+
class: D(w(C)),
|
|
2181
|
+
onClick: (G) => S(C)
|
|
2182
2182
|
}, [
|
|
2183
2183
|
e.dangerouslySetInnerHtml ? (d(), f(ie, { key: 0 }, [
|
|
2184
|
-
|
|
2184
|
+
C.title ? (d(), f("div", {
|
|
2185
2185
|
key: 0,
|
|
2186
2186
|
class: "d-notification-title",
|
|
2187
|
-
innerHTML:
|
|
2188
|
-
}, null, 8,
|
|
2187
|
+
innerHTML: C.timer
|
|
2188
|
+
}, null, 8, $n)) : k("", !0),
|
|
2189
2189
|
_("div", {
|
|
2190
2190
|
class: "notification-content",
|
|
2191
|
-
innerHTML:
|
|
2192
|
-
}, null, 8,
|
|
2191
|
+
innerHTML: C.text
|
|
2192
|
+
}, null, 8, kn)
|
|
2193
2193
|
], 64)) : (d(), f(ie, { key: 1 }, [
|
|
2194
|
-
|
|
2195
|
-
_("div",
|
|
2194
|
+
C.title ? (d(), f("div", wn, O(C.title), 1)) : k("", !0),
|
|
2195
|
+
_("div", Sn, O(C.text), 1)
|
|
2196
2196
|
], 64))
|
|
2197
|
-
], 10,
|
|
2197
|
+
], 10, xn)
|
|
2198
2198
|
])
|
|
2199
|
-
], 44,
|
|
2199
|
+
], 44, bn))), 128))
|
|
2200
2200
|
]),
|
|
2201
2201
|
_: 3
|
|
2202
2202
|
}, 40, ["name"]))
|
|
2203
2203
|
], 4));
|
|
2204
2204
|
}
|
|
2205
|
-
},
|
|
2205
|
+
}, Dn = { class: "d-info-progress-icon-container" }, Tn = { class: "d-info-progress-icon" }, Cn = { class: "d-info-progress-data-container" }, Ln = ["innerHTML"], Rs = {
|
|
2206
2206
|
__name: "DInfoProgress",
|
|
2207
2207
|
props: {
|
|
2208
2208
|
style: [String, Object],
|
|
@@ -2215,14 +2215,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2215
2215
|
setup(e, { emit: o }) {
|
|
2216
2216
|
const t = e, n = m(() => t.icon ? te.getters.getIcon(t.icon) : null);
|
|
2217
2217
|
return (s, a) => (d(), f("div", {
|
|
2218
|
-
class:
|
|
2218
|
+
class: D(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
|
|
2219
2219
|
style: H(t.style),
|
|
2220
2220
|
onClick: a[0] || (a[0] = (r) => {
|
|
2221
2221
|
o("click", r);
|
|
2222
2222
|
})
|
|
2223
2223
|
}, [
|
|
2224
|
-
_("div",
|
|
2225
|
-
_("div",
|
|
2224
|
+
_("div", Dn, [
|
|
2225
|
+
_("div", Tn, [
|
|
2226
2226
|
t.icon ? (d(), b(Y(de), {
|
|
2227
2227
|
key: 0,
|
|
2228
2228
|
component: n.value,
|
|
@@ -2231,7 +2231,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2231
2231
|
}, null, 8, ["component"])) : k("", !0)
|
|
2232
2232
|
])
|
|
2233
2233
|
]),
|
|
2234
|
-
_("div",
|
|
2234
|
+
_("div", Cn, [
|
|
2235
2235
|
_("div", {
|
|
2236
2236
|
class: "d-info-progress-line",
|
|
2237
2237
|
style: H("width: " + t.progress + "%;")
|
|
@@ -2239,11 +2239,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2239
2239
|
_("div", {
|
|
2240
2240
|
class: "d-info-progress-label",
|
|
2241
2241
|
innerHTML: e.label
|
|
2242
|
-
}, null, 8,
|
|
2242
|
+
}, null, 8, Ln)
|
|
2243
2243
|
])
|
|
2244
2244
|
], 6));
|
|
2245
2245
|
}
|
|
2246
|
-
},
|
|
2246
|
+
}, In = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Bn = ["for"], Os = {
|
|
2247
2247
|
__name: "DCheckbox",
|
|
2248
2248
|
props: {
|
|
2249
2249
|
label: String,
|
|
@@ -2257,44 +2257,44 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", at = [
|
|
|
2257
2257
|
},
|
|
2258
2258
|
emits: ["update:modelValue"],
|
|
2259
2259
|
setup(e, { emit: o }) {
|
|
2260
|
-
const t = e, s =
|
|
2260
|
+
const t = e, s = gt().uid, a = m({
|
|
2261
2261
|
get: () => t.modelValue,
|
|
2262
2262
|
set: (r) => {
|
|
2263
2263
|
o("update:modelValue", r);
|
|
2264
2264
|
}
|
|
2265
2265
|
});
|
|
2266
|
-
return (r, l) => (d(), f("div",
|
|
2266
|
+
return (r, l) => (d(), f("div", In, [
|
|
2267
2267
|
J(_("input", {
|
|
2268
2268
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
2269
|
-
id: `i-${
|
|
2269
|
+
id: `i-${B(s)}`,
|
|
2270
2270
|
type: "checkbox",
|
|
2271
2271
|
checked: t.checked,
|
|
2272
2272
|
disabled: t.disabled,
|
|
2273
2273
|
onChange: l[1] || (l[1] = (...i) => t.change && t.change(...i))
|
|
2274
|
-
}, null, 40,
|
|
2275
|
-
[
|
|
2274
|
+
}, null, 40, En), [
|
|
2275
|
+
[Nt, a.value]
|
|
2276
2276
|
]),
|
|
2277
2277
|
_("label", {
|
|
2278
|
-
for: `i-${
|
|
2279
|
-
},
|
|
2278
|
+
for: `i-${B(s)}`
|
|
2279
|
+
}, O(t.label), 9, Bn)
|
|
2280
2280
|
]));
|
|
2281
2281
|
}
|
|
2282
2282
|
};
|
|
2283
|
-
async function Bn(e, o) {
|
|
2284
|
-
return await $t(Qo, { title: e, message: o });
|
|
2285
|
-
}
|
|
2286
2283
|
async function Mn(e, o) {
|
|
2287
|
-
return await
|
|
2284
|
+
return await kt(en, { title: e, message: o });
|
|
2288
2285
|
}
|
|
2289
|
-
|
|
2286
|
+
async function Nn(e, o) {
|
|
2287
|
+
return await kt(Jo, { title: e, message: o });
|
|
2288
|
+
}
|
|
2289
|
+
const As = {
|
|
2290
2290
|
__name: "DDialogProvider",
|
|
2291
2291
|
setup(e) {
|
|
2292
|
-
return window.alert =
|
|
2292
|
+
return window.alert = Nn, window.confirm = Mn, (o, t) => (d(), b(B(Zo)));
|
|
2293
2293
|
}
|
|
2294
|
-
},
|
|
2294
|
+
}, Rn = { class: "d-select" }, On = {
|
|
2295
2295
|
key: 0,
|
|
2296
2296
|
class: "label"
|
|
2297
|
-
},
|
|
2297
|
+
}, An = ["value", "selected", "disabled"], Hs = {
|
|
2298
2298
|
__name: "DSelect",
|
|
2299
2299
|
props: {
|
|
2300
2300
|
label: String,
|
|
@@ -2317,11 +2317,11 @@ const Os = {
|
|
|
2317
2317
|
s.value = t.options[a].value;
|
|
2318
2318
|
break;
|
|
2319
2319
|
}
|
|
2320
|
-
return (a, r) => (d(), f("div",
|
|
2321
|
-
t.label ? (d(), f("div",
|
|
2320
|
+
return (a, r) => (d(), f("div", Rn, [
|
|
2321
|
+
t.label ? (d(), f("div", On, O(t.label), 1)) : k("", !0),
|
|
2322
2322
|
J(_("select", {
|
|
2323
2323
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => s.value = l),
|
|
2324
|
-
class:
|
|
2324
|
+
class: D(n.value),
|
|
2325
2325
|
style: H(t.size === "wide" ? "width:100%" : "")
|
|
2326
2326
|
}, [
|
|
2327
2327
|
(d(!0), f(ie, null, ge(t.options, (l, i) => (d(), f("option", {
|
|
@@ -2329,13 +2329,13 @@ const Os = {
|
|
|
2329
2329
|
value: l.value,
|
|
2330
2330
|
selected: l.selected,
|
|
2331
2331
|
disabled: l.disabled
|
|
2332
|
-
},
|
|
2332
|
+
}, O(l.label), 9, An))), 128))
|
|
2333
2333
|
], 6), [
|
|
2334
|
-
[
|
|
2334
|
+
[Rt, s.value]
|
|
2335
2335
|
])
|
|
2336
2336
|
]));
|
|
2337
2337
|
}
|
|
2338
|
-
},
|
|
2338
|
+
}, Hn = ["title"], Vn = ["title"], zn = {
|
|
2339
2339
|
__name: "DTabLabel",
|
|
2340
2340
|
props: {
|
|
2341
2341
|
tab: Object
|
|
@@ -2345,41 +2345,41 @@ const Os = {
|
|
|
2345
2345
|
return (t, n) => o.tab.label ? (d(), f("span", {
|
|
2346
2346
|
key: 0,
|
|
2347
2347
|
title: o.tab.title ? o.tab.title : ""
|
|
2348
|
-
},
|
|
2348
|
+
}, O(o.tab.label), 9, Hn)) : o.tab.icon ? (d(), f("span", {
|
|
2349
2349
|
key: 1,
|
|
2350
2350
|
title: o.tab.title ? o.tab.title : ""
|
|
2351
2351
|
}, [
|
|
2352
|
-
oe(
|
|
2352
|
+
oe(B(de), {
|
|
2353
2353
|
component: o.tab.icon
|
|
2354
2354
|
}, null, 8, ["component"])
|
|
2355
|
-
], 8,
|
|
2355
|
+
], 8, Vn)) : k("", !0);
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
|
-
const
|
|
2358
|
+
const Fn = { class: "d-tabs" }, Wn = {
|
|
2359
2359
|
__name: "DTabs",
|
|
2360
2360
|
props: {
|
|
2361
2361
|
tabs: Array
|
|
2362
2362
|
},
|
|
2363
2363
|
setup(e) {
|
|
2364
|
-
const t =
|
|
2364
|
+
const t = Ot(e, "tabs"), n = T(0), s = (a) => {
|
|
2365
2365
|
n.value = a;
|
|
2366
2366
|
};
|
|
2367
2367
|
return (a, r) => (d(), f(ie, null, [
|
|
2368
|
-
_("div",
|
|
2369
|
-
(d(!0), f(ie, null, ge(t.value, (l, i) => (d(), b(
|
|
2368
|
+
_("div", Fn, [
|
|
2369
|
+
(d(!0), f(ie, null, ge(t.value, (l, i) => (d(), b(zn, {
|
|
2370
2370
|
index: i,
|
|
2371
2371
|
tab: l,
|
|
2372
|
-
class:
|
|
2372
|
+
class: D(["d-tab-title", i === n.value ? "active" : ""]),
|
|
2373
2373
|
onClick: (c) => s(i)
|
|
2374
2374
|
}, null, 8, ["index", "tab", "class", "onClick"]))), 256))
|
|
2375
2375
|
]),
|
|
2376
|
-
(d(), b(
|
|
2376
|
+
(d(), b(At, null, [
|
|
2377
2377
|
(d(), b(Y(t.value[n.value].component)))
|
|
2378
2378
|
], 1024))
|
|
2379
2379
|
], 64));
|
|
2380
2380
|
}
|
|
2381
|
-
},
|
|
2382
|
-
const
|
|
2381
|
+
}, Vs = /* @__PURE__ */ re(Wn, [["__scopeId", "data-v-c98761cd"]]);
|
|
2382
|
+
const Pn = { class: "d-grid" }, jn = {
|
|
2383
2383
|
__name: "DGrid",
|
|
2384
2384
|
props: {
|
|
2385
2385
|
gap: {
|
|
@@ -2407,15 +2407,15 @@ const Wn = { class: "d-grid" }, Pn = {
|
|
|
2407
2407
|
"09eba33c": i[5],
|
|
2408
2408
|
"898eb2ac": o.gap
|
|
2409
2409
|
}));
|
|
2410
|
-
const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: r, colXxl: l } =
|
|
2410
|
+
const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: r, colXxl: l } = Ht(o), i = [t.value, n.value, s.value, a.value, r.value, l.value];
|
|
2411
2411
|
let c = null;
|
|
2412
2412
|
for (let u = 0; u < i.length; u++)
|
|
2413
2413
|
c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
|
|
2414
|
-
return (u, h) => (d(), f("div",
|
|
2415
|
-
|
|
2414
|
+
return (u, h) => (d(), f("div", Pn, [
|
|
2415
|
+
L(u.$slots, "default", {}, void 0, !0)
|
|
2416
2416
|
]));
|
|
2417
2417
|
}
|
|
2418
|
-
},
|
|
2418
|
+
}, zs = /* @__PURE__ */ re(jn, [["__scopeId", "data-v-b45e8130"]]), Xn = ["src", "alt", "title"], Fs = {
|
|
2419
2419
|
__name: "DImage",
|
|
2420
2420
|
props: {
|
|
2421
2421
|
src: String,
|
|
@@ -2427,7 +2427,7 @@ const Wn = { class: "d-grid" }, Pn = {
|
|
|
2427
2427
|
radius: String
|
|
2428
2428
|
},
|
|
2429
2429
|
setup(e) {
|
|
2430
|
-
const o = e, t =
|
|
2430
|
+
const o = e, t = T(null), n = new Image();
|
|
2431
2431
|
return n.onload = () => {
|
|
2432
2432
|
t.value = n.src;
|
|
2433
2433
|
}, n.onerror = () => {
|
|
@@ -2440,13 +2440,13 @@ const Wn = { class: "d-grid" }, Pn = {
|
|
|
2440
2440
|
alt: o.alt,
|
|
2441
2441
|
title: o.title,
|
|
2442
2442
|
style: H({ width: o.width, height: o.height, borderRadius: o.radius })
|
|
2443
|
-
}, null, 12,
|
|
2443
|
+
}, null, 12, Xn)) : k("", !0);
|
|
2444
2444
|
}
|
|
2445
2445
|
};
|
|
2446
|
-
const
|
|
2446
|
+
const Yn = { class: "d-textarea" }, Un = {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: "label"
|
|
2449
|
-
},
|
|
2449
|
+
}, qn = ["rows", "cols", "placeholder"], Gn = {
|
|
2450
2450
|
__name: "DTextarea",
|
|
2451
2451
|
props: {
|
|
2452
2452
|
label: String,
|
|
@@ -2466,7 +2466,7 @@ const Xn = { class: "d-textarea" }, Yn = {
|
|
|
2466
2466
|
},
|
|
2467
2467
|
emits: ["update:modelValue"],
|
|
2468
2468
|
setup(e, { expose: o, emit: t }) {
|
|
2469
|
-
const n = e, s =
|
|
2469
|
+
const n = e, s = T(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), r = m({
|
|
2470
2470
|
get: () => n.modelValue,
|
|
2471
2471
|
set: (i) => {
|
|
2472
2472
|
t("update:modelValue", i);
|
|
@@ -2480,8 +2480,8 @@ const Xn = { class: "d-textarea" }, Yn = {
|
|
|
2480
2480
|
};
|
|
2481
2481
|
return o({
|
|
2482
2482
|
focus: l
|
|
2483
|
-
}), (i, c) => (d(), f("div",
|
|
2484
|
-
n.label ? (d(), f("div",
|
|
2483
|
+
}), (i, c) => (d(), f("div", Yn, [
|
|
2484
|
+
n.label ? (d(), f("div", Un, O(n.label), 1)) : k("", !0),
|
|
2485
2485
|
J(_("textarea", {
|
|
2486
2486
|
ref_key: "inputRef",
|
|
2487
2487
|
ref: s,
|
|
@@ -2489,15 +2489,15 @@ const Xn = { class: "d-textarea" }, Yn = {
|
|
|
2489
2489
|
rows: n.rows,
|
|
2490
2490
|
cols: n.cols,
|
|
2491
2491
|
placeholder: n.placeholder,
|
|
2492
|
-
class:
|
|
2492
|
+
class: D(a.value),
|
|
2493
2493
|
style: { width: "100%" }
|
|
2494
|
-
}, null, 10,
|
|
2495
|
-
[
|
|
2494
|
+
}, null, 10, qn), [
|
|
2495
|
+
[Vt, r.value]
|
|
2496
2496
|
])
|
|
2497
2497
|
]));
|
|
2498
2498
|
}
|
|
2499
|
-
},
|
|
2500
|
-
class
|
|
2499
|
+
}, Ws = /* @__PURE__ */ re(Gn, [["__scopeId", "data-v-0e805d5d"]]);
|
|
2500
|
+
class Ps {
|
|
2501
2501
|
constructor(o) {
|
|
2502
2502
|
this.fields = o;
|
|
2503
2503
|
}
|
|
@@ -2508,7 +2508,7 @@ class Ws {
|
|
|
2508
2508
|
return !o;
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
|
-
class
|
|
2511
|
+
class Zn {
|
|
2512
2512
|
validate(o, t = "https") {
|
|
2513
2513
|
return this._isValidURL(o) || (o = t + "://" + o), this._isValidURL(o);
|
|
2514
2514
|
}
|
|
@@ -2529,8 +2529,8 @@ class Gn {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
const
|
|
2533
|
-
class
|
|
2532
|
+
const Kn = new Zn();
|
|
2533
|
+
class Jn {
|
|
2534
2534
|
validate(o = "") {
|
|
2535
2535
|
return o !== "";
|
|
2536
2536
|
}
|
|
@@ -2538,8 +2538,8 @@ class Kn {
|
|
|
2538
2538
|
return o;
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
const
|
|
2542
|
-
class
|
|
2541
|
+
const Qn = new Jn();
|
|
2542
|
+
class es {
|
|
2543
2543
|
validate(o = "", t = 0) {
|
|
2544
2544
|
return o.length >= t;
|
|
2545
2545
|
}
|
|
@@ -2547,8 +2547,8 @@ class Qn {
|
|
|
2547
2547
|
return o;
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
|
-
const
|
|
2551
|
-
class
|
|
2550
|
+
const ts = new es();
|
|
2551
|
+
class os {
|
|
2552
2552
|
validate(o = "", t = 0) {
|
|
2553
2553
|
return o.length <= t;
|
|
2554
2554
|
}
|
|
@@ -2556,8 +2556,8 @@ class ts {
|
|
|
2556
2556
|
return o;
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
const
|
|
2560
|
-
class
|
|
2559
|
+
const ns = new os();
|
|
2560
|
+
class ss {
|
|
2561
2561
|
validate(o) {
|
|
2562
2562
|
return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(o);
|
|
2563
2563
|
}
|
|
@@ -2565,8 +2565,8 @@ class ns {
|
|
|
2565
2565
|
return o;
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
const
|
|
2569
|
-
class
|
|
2568
|
+
const as = new ss();
|
|
2569
|
+
class is {
|
|
2570
2570
|
validate(o) {
|
|
2571
2571
|
return !isNaN(parseFloat(o)) && !isNaN(o - 0);
|
|
2572
2572
|
}
|
|
@@ -2574,55 +2574,55 @@ class as {
|
|
|
2574
2574
|
return o;
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
|
-
const
|
|
2578
|
-
RulesUrl:
|
|
2579
|
-
RulesRequired:
|
|
2580
|
-
RulesMin:
|
|
2581
|
-
RulesMax:
|
|
2582
|
-
RulesEmail:
|
|
2583
|
-
RulesNumber:
|
|
2577
|
+
const rs = new is(), U = {
|
|
2578
|
+
RulesUrl: Kn,
|
|
2579
|
+
RulesRequired: Qn,
|
|
2580
|
+
RulesMin: ts,
|
|
2581
|
+
RulesMax: ns,
|
|
2582
|
+
RulesEmail: as,
|
|
2583
|
+
RulesNumber: rs
|
|
2584
2584
|
};
|
|
2585
|
-
class
|
|
2585
|
+
class ls {
|
|
2586
2586
|
validate(o, t) {
|
|
2587
|
-
var s, a, r, l, i, c, u, h, x,
|
|
2587
|
+
var s, a, r, l, i, c, u, h, x, S, N, $, A, W;
|
|
2588
2588
|
let n = "";
|
|
2589
2589
|
if (t) {
|
|
2590
|
-
let
|
|
2591
|
-
for (let
|
|
2592
|
-
if (!
|
|
2593
|
-
switch (
|
|
2590
|
+
let w = !1;
|
|
2591
|
+
for (let I in t)
|
|
2592
|
+
if (!w)
|
|
2593
|
+
switch (I) {
|
|
2594
2594
|
case "url":
|
|
2595
|
-
n = U.RulesUrl.validate(o, "https") || o.length === 0 ? "" : U.RulesUrl.message("url", (s = t[
|
|
2595
|
+
n = U.RulesUrl.validate(o, "https") || o.length === 0 ? "" : U.RulesUrl.message("url", (s = t[I]) != null && s.message ? (a = t[I]) == null ? void 0 : a.message : "url_incorrect"), w = n !== "";
|
|
2596
2596
|
break;
|
|
2597
2597
|
case "required":
|
|
2598
|
-
n = U.RulesRequired.validate(o) ? "" : U.RulesRequired.message((r = t[
|
|
2598
|
+
n = U.RulesRequired.validate(o) ? "" : U.RulesRequired.message((r = t[I]) != null && r.message ? (l = t[I]) == null ? void 0 : l.message : "required"), w = n !== "";
|
|
2599
2599
|
break;
|
|
2600
2600
|
case "min":
|
|
2601
|
-
n = U.RulesMin.validate(o, (i = t[
|
|
2601
|
+
n = U.RulesMin.validate(o, (i = t[I]) == null ? void 0 : i.value) ? "" : U.RulesMin.message((c = t[I]) != null && c.message ? (u = t[I]) == null ? void 0 : u.message : "very_small"), w = n !== "";
|
|
2602
2602
|
break;
|
|
2603
2603
|
case "max":
|
|
2604
|
-
n = U.RulesMax.validate(o, (h = t[
|
|
2604
|
+
n = U.RulesMax.validate(o, (h = t[I]) == null ? void 0 : h.value) ? "" : U.RulesMax.message((x = t[I]) != null && x.message ? (S = t[I]) == null ? void 0 : S.message : "vary_large"), w = n !== "";
|
|
2605
2605
|
break;
|
|
2606
2606
|
case "email":
|
|
2607
|
-
n = U.RulesEmail.validate(o) ? "" : U.RulesMax.message((N = t[
|
|
2607
|
+
n = U.RulesEmail.validate(o) ? "" : U.RulesMax.message((N = t[I]) != null && N.message ? ($ = t[I]) == null ? void 0 : $.message : "email_incorrect"), w = n !== "";
|
|
2608
2608
|
break;
|
|
2609
2609
|
case "number":
|
|
2610
2610
|
n = U.RulesNumber.validate(o) ? "" : U.RulesNumber.message(
|
|
2611
|
-
(
|
|
2612
|
-
),
|
|
2611
|
+
(A = t[I]) != null && A.message ? (W = t[I]) == null ? void 0 : W.message : "number_incorrect"
|
|
2612
|
+
), w = n !== "";
|
|
2613
2613
|
break;
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
2616
|
return n;
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
const
|
|
2619
|
+
const ds = new ls(), cs = { style: { display: "flex", "flex-direction": "column" } }, us = {
|
|
2620
2620
|
key: 0,
|
|
2621
2621
|
class: "d-label"
|
|
2622
|
-
},
|
|
2622
|
+
}, ps = {
|
|
2623
2623
|
key: 0,
|
|
2624
2624
|
class: "text-red"
|
|
2625
|
-
},
|
|
2625
|
+
}, fs = { style: { display: "flex", "flex-direction": "row" } }, ms = { style: { flex: "1", position: "relative" } }, hs = /* @__PURE__ */ _("svg", {
|
|
2626
2626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2627
2627
|
viewBox: "0 0 24 24"
|
|
2628
2628
|
}, [
|
|
@@ -2630,9 +2630,9 @@ const ls = new rs(), ds = { style: { display: "flex", "flex-direction": "column"
|
|
|
2630
2630
|
d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
|
|
2631
2631
|
fill: "currentColor"
|
|
2632
2632
|
})
|
|
2633
|
-
], -1),
|
|
2634
|
-
|
|
2635
|
-
],
|
|
2633
|
+
], -1), gs = [
|
|
2634
|
+
hs
|
|
2635
|
+
], vs = ["id", "type", "placeholder", "disabled"], ys = /* @__PURE__ */ _("svg", {
|
|
2636
2636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2637
2637
|
viewBox: "0 0 24 24"
|
|
2638
2638
|
}, [
|
|
@@ -2640,15 +2640,15 @@ const ls = new rs(), ds = { style: { display: "flex", "flex-direction": "column"
|
|
|
2640
2640
|
d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
|
|
2641
2641
|
fill: "currentColor"
|
|
2642
2642
|
})
|
|
2643
|
-
], -1),
|
|
2644
|
-
|
|
2645
|
-
],
|
|
2643
|
+
], -1), _s = [
|
|
2644
|
+
ys
|
|
2645
|
+
], bs = {
|
|
2646
2646
|
key: 1,
|
|
2647
2647
|
class: "d-help"
|
|
2648
|
-
},
|
|
2648
|
+
}, xs = {
|
|
2649
2649
|
key: 2,
|
|
2650
2650
|
class: "d-error text-red"
|
|
2651
|
-
},
|
|
2651
|
+
}, js = {
|
|
2652
2652
|
__name: "DInputString",
|
|
2653
2653
|
props: {
|
|
2654
2654
|
form: Object,
|
|
@@ -2670,71 +2670,73 @@ const ls = new rs(), ds = { style: { display: "flex", "flex-direction": "column"
|
|
|
2670
2670
|
focus: Boolean,
|
|
2671
2671
|
disabled: Boolean
|
|
2672
2672
|
},
|
|
2673
|
-
emits: ["update:modelValue", "input"],
|
|
2673
|
+
emits: ["update:modelValue", "input", "blur"],
|
|
2674
2674
|
setup(e, { expose: o, emit: t }) {
|
|
2675
|
-
const n = e, s =
|
|
2675
|
+
const n = e, s = T(n.error), a = zt(), r = T(!1), l = T(null);
|
|
2676
2676
|
//!props.form ? ref(null) : props.form.fields[props.name].ref
|
|
2677
2677
|
const i = m({
|
|
2678
2678
|
get: () => n.modelValue,
|
|
2679
2679
|
//props.form?.fields[props.name].model.value,
|
|
2680
|
-
set: (
|
|
2681
|
-
t("update:modelValue",
|
|
2680
|
+
set: (w) => {
|
|
2681
|
+
t("update:modelValue", w);
|
|
2682
2682
|
}
|
|
2683
|
-
}), c = m(() => n.type === "password" ? "password" : "text"), u = m(() => n.scale), h = (
|
|
2684
|
-
t("input",
|
|
2683
|
+
}), c = m(() => n.type === "password" ? "password" : "text"), u = m(() => n.scale), h = (w) => {
|
|
2684
|
+
t("input", w), x();
|
|
2685
2685
|
}, x = () => {
|
|
2686
|
-
if (!(!n.form.fields || !n.form.fields[n.name].rules))
|
|
2687
|
-
return s.value =
|
|
2686
|
+
if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
|
|
2687
|
+
return s.value = ds.validate(i.value, n.form.fields[n.name].rules), !!s.value;
|
|
2688
2688
|
};
|
|
2689
2689
|
me(() => {
|
|
2690
|
-
|
|
2690
|
+
S();
|
|
2691
2691
|
});
|
|
2692
|
-
const
|
|
2693
|
-
var
|
|
2694
|
-
(
|
|
2692
|
+
const S = () => {
|
|
2693
|
+
var w;
|
|
2694
|
+
(w = l.value) == null || w.focus();
|
|
2695
2695
|
}, N = () => {
|
|
2696
2696
|
i.value = "";
|
|
2697
|
-
}, $ = (
|
|
2698
|
-
r.value =
|
|
2697
|
+
}, $ = (w) => {
|
|
2698
|
+
r.value = w;
|
|
2699
|
+
}, A = (w) => {
|
|
2700
|
+
s.value = w;
|
|
2701
|
+
}, W = (w) => {
|
|
2702
|
+
t("blue", w);
|
|
2699
2703
|
};
|
|
2700
2704
|
return o({
|
|
2701
|
-
focus:
|
|
2702
|
-
setError:
|
|
2703
|
-
s.value = R;
|
|
2704
|
-
},
|
|
2705
|
+
focus: S,
|
|
2706
|
+
setError: A,
|
|
2705
2707
|
validate: x
|
|
2706
|
-
}), (
|
|
2707
|
-
var
|
|
2708
|
+
}), (w, I) => {
|
|
2709
|
+
var M, g, R, P, V, y, z, p, F, C, G, ne, ve, ye, _e, be, Q, xe, le, $e, Le, he, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt;
|
|
2708
2710
|
return d(), f("div", {
|
|
2709
|
-
class:
|
|
2711
|
+
class: D(["d-input-string", u.value])
|
|
2710
2712
|
}, [
|
|
2711
|
-
_("div",
|
|
2712
|
-
n.label ? (d(), f("div",
|
|
2713
|
-
K(
|
|
2714
|
-
(
|
|
2713
|
+
_("div", cs, [
|
|
2714
|
+
n.label ? (d(), f("div", us, [
|
|
2715
|
+
K(O(n.label), 1),
|
|
2716
|
+
(M = n.form) != null && M.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", ps, "*")) : k("", !0)
|
|
2715
2717
|
])) : k("", !0),
|
|
2716
|
-
_("div",
|
|
2717
|
-
(
|
|
2718
|
+
_("div", fs, [
|
|
2719
|
+
(R = (g = n.pre) == null ? void 0 : g.outside) != null && R.component ? (d(), f("div", {
|
|
2718
2720
|
key: 0,
|
|
2719
|
-
class:
|
|
2721
|
+
class: D(["d-pre", n.disabled ? "disabled" : ""])
|
|
2720
2722
|
}, [
|
|
2721
|
-
(d(), b(Y((
|
|
2722
|
-
], 2)) : (
|
|
2723
|
+
(d(), b(Y((V = (P = n.pre) == null ? void 0 : P.outside) == null ? void 0 : V.component)))
|
|
2724
|
+
], 2)) : (z = (y = n.pre) == null ? void 0 : y.outside) != null && z.text ? (d(), f("div", {
|
|
2723
2725
|
key: 1,
|
|
2724
|
-
class:
|
|
2726
|
+
class: D(["d-pre", n.disabled ? "disabled" : ""])
|
|
2725
2727
|
}, [
|
|
2726
2728
|
_("div", {
|
|
2727
|
-
class:
|
|
2728
|
-
},
|
|
2729
|
+
class: D(["d-text", r.value ? "focused" : ""])
|
|
2730
|
+
}, O((F = (p = n.pre) == null ? void 0 : p.outside) == null ? void 0 : F.text), 3)
|
|
2729
2731
|
], 2)) : k("", !0),
|
|
2730
|
-
_("div",
|
|
2731
|
-
(
|
|
2732
|
+
_("div", ms, [
|
|
2733
|
+
(G = (C = n.pre) == null ? void 0 : C.inside) != null && G.action && ((ve = (ne = n.pre) == null ? void 0 : ne.inside) == null ? void 0 : ve.action) === "clear" && ((ye = i.value) == null ? void 0 : ye.length) > 0 ? (d(), f("div", {
|
|
2732
2734
|
key: 0,
|
|
2733
2735
|
class: "d-pre-inside-button",
|
|
2734
2736
|
onClick: N
|
|
2735
|
-
},
|
|
2737
|
+
}, gs)) : k("", !0),
|
|
2736
2738
|
J(_("input", {
|
|
2737
|
-
id:
|
|
2739
|
+
id: B(a),
|
|
2738
2740
|
ref_key: "inputRef",
|
|
2739
2741
|
ref: l,
|
|
2740
2742
|
"onUpdate:modelValue": I[0] || (I[0] = (Ie) => i.value = Ie),
|
|
@@ -2743,40 +2745,41 @@ const ls = new rs(), ds = { style: { display: "flex", "flex-direction": "column"
|
|
|
2743
2745
|
placeholder: n.placeholder,
|
|
2744
2746
|
onInput: h,
|
|
2745
2747
|
onFocus: I[1] || (I[1] = (Ie) => $(!0)),
|
|
2748
|
+
onBlur: W,
|
|
2746
2749
|
onFocusout: I[2] || (I[2] = (Ie) => $(!1)),
|
|
2747
|
-
class:
|
|
2748
|
-
(
|
|
2749
|
-
(
|
|
2750
|
-
(
|
|
2751
|
-
(
|
|
2750
|
+
class: D([
|
|
2751
|
+
(be = (_e = n.pre) == null ? void 0 : _e.outside) != null && be.component || (xe = (Q = n.pre) == null ? void 0 : Q.outside) != null && xe.text ? "has-pre" : "",
|
|
2752
|
+
($e = (le = n.post) == null ? void 0 : le.outside) != null && $e.component || (he = (Le = n.post) == null ? void 0 : Le.outside) != null && he.text ? "has-post" : "",
|
|
2753
|
+
(We = (Fe = n.pre) == null ? void 0 : Fe.inside) != null && We.action ? "has-pre-inside-button" : "",
|
|
2754
|
+
(je = (Pe = n.post) == null ? void 0 : Pe.inside) != null && je.action ? "has-post-inside-button" : "",
|
|
2752
2755
|
r.value ? "focused" : ""
|
|
2753
2756
|
]),
|
|
2754
2757
|
disabled: n.disabled
|
|
2755
|
-
}, null, 42,
|
|
2758
|
+
}, null, 42, vs), [
|
|
2756
2759
|
[De, i.value]
|
|
2757
2760
|
]),
|
|
2758
|
-
(
|
|
2761
|
+
(Ye = (Xe = n.post) == null ? void 0 : Xe.inside) != null && Ye.action && ((qe = (Ue = n.post) == null ? void 0 : Ue.inside) == null ? void 0 : qe.action) === "clear" && ((Ge = i.value) == null ? void 0 : Ge.length) > 0 ? (d(), f("div", {
|
|
2759
2762
|
key: 1,
|
|
2760
2763
|
class: "d-post-inside-button",
|
|
2761
2764
|
onClick: N
|
|
2762
|
-
},
|
|
2765
|
+
}, _s)) : k("", !0)
|
|
2763
2766
|
]),
|
|
2764
|
-
(
|
|
2767
|
+
(Ke = (Ze = n.post) == null ? void 0 : Ze.outside) != null && Ke.component ? (d(), f("div", {
|
|
2765
2768
|
key: 2,
|
|
2766
|
-
class:
|
|
2769
|
+
class: D(["d-post", n.disabled ? "disabled" : ""])
|
|
2767
2770
|
}, [
|
|
2768
|
-
(d(), b(Y((
|
|
2769
|
-
], 2)) : (
|
|
2771
|
+
(d(), b(Y((Qe = (Je = n.post) == null ? void 0 : Je.outside) == null ? void 0 : Qe.component)))
|
|
2772
|
+
], 2)) : (tt = (et = n.post) == null ? void 0 : et.outside) != null && tt.text ? (d(), f("div", {
|
|
2770
2773
|
key: 3,
|
|
2771
|
-
class:
|
|
2774
|
+
class: D(["d-post", n.disabled ? "disabled" : ""])
|
|
2772
2775
|
}, [
|
|
2773
2776
|
_("div", {
|
|
2774
|
-
class:
|
|
2775
|
-
},
|
|
2777
|
+
class: D(["d-text", r.value ? "focused" : ""])
|
|
2778
|
+
}, O((nt = (ot = n.post) == null ? void 0 : ot.outside) == null ? void 0 : nt.text), 3)
|
|
2776
2779
|
], 2)) : k("", !0)
|
|
2777
2780
|
]),
|
|
2778
|
-
n.help ? (d(), f("div",
|
|
2779
|
-
s.value ? (d(), f("div",
|
|
2781
|
+
n.help ? (d(), f("div", bs, O(n.help), 1)) : k("", !0),
|
|
2782
|
+
s.value ? (d(), f("div", xs, O(s.value), 1)) : k("", !0)
|
|
2780
2783
|
])
|
|
2781
2784
|
], 2);
|
|
2782
2785
|
};
|
|
@@ -2800,13 +2803,13 @@ const ls = new rs(), ds = { style: { display: "flex", "flex-direction": "column"
|
|
|
2800
2803
|
e.hasOwnProperty(o) && (fe.state[o] = e[o]);
|
|
2801
2804
|
}
|
|
2802
2805
|
}
|
|
2803
|
-
},
|
|
2806
|
+
}, wt = (e) => {
|
|
2804
2807
|
typeof e == "string" && (e = { title: "", text: e }), typeof e == "object" && q.emit("notification-add", e);
|
|
2805
2808
|
};
|
|
2806
|
-
|
|
2809
|
+
wt.close = (e) => {
|
|
2807
2810
|
q.emit("notification-close", e);
|
|
2808
2811
|
};
|
|
2809
|
-
const
|
|
2812
|
+
const Xs = () => ({ notify: wt }), Ys = {
|
|
2810
2813
|
mounted: function(e, o) {
|
|
2811
2814
|
e.clickOutsideEvent = function(t) {
|
|
2812
2815
|
e === t.target || e.contains(t.target) || o.value(t, e);
|
|
@@ -2815,7 +2818,7 @@ const js = () => ({ notify: kt }), Xs = {
|
|
|
2815
2818
|
unmounted: function(e) {
|
|
2816
2819
|
document.removeEventListener("click", e.clickOutsideEvent);
|
|
2817
2820
|
}
|
|
2818
|
-
},
|
|
2821
|
+
}, Us = {
|
|
2819
2822
|
beforeMount(e, o) {
|
|
2820
2823
|
e._keydownCallback = (t) => {
|
|
2821
2824
|
t.key === o.arg && o.value();
|
|
@@ -2824,18 +2827,18 @@ const js = () => ({ notify: kt }), Xs = {
|
|
|
2824
2827
|
unmounted(e, o) {
|
|
2825
2828
|
document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
|
|
2826
2829
|
}
|
|
2827
|
-
},
|
|
2830
|
+
}, qs = {
|
|
2828
2831
|
beforeMount(e) {
|
|
2829
2832
|
e.focus();
|
|
2830
2833
|
}
|
|
2831
2834
|
};
|
|
2832
|
-
function
|
|
2835
|
+
function St(e) {
|
|
2833
2836
|
return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
|
|
2834
2837
|
}
|
|
2835
|
-
function
|
|
2838
|
+
function Dt(e) {
|
|
2836
2839
|
return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
|
|
2837
2840
|
}
|
|
2838
|
-
var
|
|
2841
|
+
var $s = function() {
|
|
2839
2842
|
var e = !1;
|
|
2840
2843
|
try {
|
|
2841
2844
|
var o = Object.defineProperty({}, "passive", {
|
|
@@ -2847,7 +2850,7 @@ var xs = function() {
|
|
|
2847
2850
|
} catch {
|
|
2848
2851
|
}
|
|
2849
2852
|
return e;
|
|
2850
|
-
}(),
|
|
2853
|
+
}(), ks = {
|
|
2851
2854
|
disableClick: !1,
|
|
2852
2855
|
tapTolerance: 10,
|
|
2853
2856
|
// px
|
|
@@ -2865,12 +2868,12 @@ var xs = function() {
|
|
|
2865
2868
|
};
|
|
2866
2869
|
function ke(e) {
|
|
2867
2870
|
var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
|
|
2868
|
-
t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || (
|
|
2871
|
+
t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || (Tt(this), o.touchStarted = !0, o.touchMoved = !1, o.swipeOutBounded = !1, o.startX = St(e), o.startY = Dt(e), o.currentX = 0, o.currentY = 0, o.touchStartTime = e.timeStamp, o.hasSwipe = Z(this, "swipe") || Z(this, "swipe.left") || Z(this, "swipe.right") || Z(this, "swipe.top") || Z(this, "swipe.bottom"), Z(this, "hold") && (o.touchHoldTimer = setTimeout(function() {
|
|
2869
2872
|
o.touchHoldTimer = null, ee(e, s, "hold");
|
|
2870
2873
|
}, o.options.touchHoldTolerance)), ee(e, this, "press")));
|
|
2871
2874
|
}
|
|
2872
2875
|
function we(e) {
|
|
2873
|
-
var o = this.$$touchObj, t =
|
|
2876
|
+
var o = this.$$touchObj, t = St(e), n = Dt(e), s = o.currentX != t || o.currentY != n;
|
|
2874
2877
|
if (o.currentX = t, o.currentY = n, o.touchMoved) {
|
|
2875
2878
|
if (o.hasSwipe && !o.swipeOutBounded) {
|
|
2876
2879
|
var r = o.options.swipeTolerance;
|
|
@@ -2889,7 +2892,7 @@ function we(e) {
|
|
|
2889
2892
|
(o.touchDragTime == null || l > o.touchDragTime + i) && (o.touchDragTime = l, ee(e, this, "drag"));
|
|
2890
2893
|
}
|
|
2891
2894
|
}
|
|
2892
|
-
function
|
|
2895
|
+
function lt() {
|
|
2893
2896
|
var e = this.$$touchObj;
|
|
2894
2897
|
ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
|
|
2895
2898
|
}
|
|
@@ -2911,10 +2914,10 @@ function Se(e) {
|
|
|
2911
2914
|
} else
|
|
2912
2915
|
ee(e, this, "tap");
|
|
2913
2916
|
}
|
|
2914
|
-
function lt() {
|
|
2915
|
-
Dt(this);
|
|
2916
|
-
}
|
|
2917
2917
|
function dt() {
|
|
2918
|
+
Tt(this);
|
|
2919
|
+
}
|
|
2920
|
+
function ct() {
|
|
2918
2921
|
Ve(this);
|
|
2919
2922
|
}
|
|
2920
2923
|
function Z(e, o) {
|
|
@@ -2930,7 +2933,7 @@ function ee(e, o, t, n) {
|
|
|
2930
2933
|
l.modifiers.stop && e.stopPropagation(), l.modifiers.prevent && e.preventDefault(), !(l.modifiers.self && e.target !== e.currentTarget) && typeof l.value == "function" && (n ? l.value(n, e) : l.value(e));
|
|
2931
2934
|
}
|
|
2932
2935
|
}
|
|
2933
|
-
function
|
|
2936
|
+
function Tt(e) {
|
|
2934
2937
|
var o = e.$$touchObj.options.touchClass;
|
|
2935
2938
|
o && e.classList.add(o);
|
|
2936
2939
|
}
|
|
@@ -2941,7 +2944,7 @@ function Ve(e) {
|
|
|
2941
2944
|
function ze(e) {
|
|
2942
2945
|
e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
|
|
2943
2946
|
}
|
|
2944
|
-
function
|
|
2947
|
+
function ws(e, o) {
|
|
2945
2948
|
var t = e.$$touchObj || {
|
|
2946
2949
|
// an object contains all callbacks registered,
|
|
2947
2950
|
// key is event name, value is an array
|
|
@@ -2949,14 +2952,14 @@ function ks(e, o) {
|
|
|
2949
2952
|
// prevent bind twice, set to true when event bound
|
|
2950
2953
|
hasBindTouchEvents: !1,
|
|
2951
2954
|
// default options, would be override by v-touch-options
|
|
2952
|
-
options:
|
|
2955
|
+
options: ks
|
|
2953
2956
|
};
|
|
2954
2957
|
return o && (t.options = Object.assign({}, t.options, o)), e.$$touchObj = t, e.$$touchObj;
|
|
2955
2958
|
}
|
|
2956
|
-
const
|
|
2959
|
+
const Gs = {
|
|
2957
2960
|
beforeMount: function(e, o) {
|
|
2958
|
-
const t =
|
|
2959
|
-
let n =
|
|
2961
|
+
const t = ws(e);
|
|
2962
|
+
let n = $s ? { passive: !0 } : !1;
|
|
2960
2963
|
const s = o.arg || "tap";
|
|
2961
2964
|
switch (s) {
|
|
2962
2965
|
case "swipe":
|
|
@@ -2976,65 +2979,65 @@ const qs = {
|
|
|
2976
2979
|
default:
|
|
2977
2980
|
t.callbacks[s] = t.callbacks[s] || [], t.callbacks[s].push(o);
|
|
2978
2981
|
}
|
|
2979
|
-
t.hasBindTouchEvents || (e.addEventListener("touchstart", ke, n), e.addEventListener("touchmove", we, n), e.addEventListener("touchcancel",
|
|
2982
|
+
t.hasBindTouchEvents || (e.addEventListener("touchstart", ke, n), e.addEventListener("touchmove", we, n), e.addEventListener("touchcancel", lt), e.addEventListener("touchend", Se), t.options.disableClick || (e.addEventListener("mousedown", ke), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Se), e.addEventListener("mouseenter", dt), e.addEventListener("mouseleave", ct)), t.hasBindTouchEvents = !0);
|
|
2980
2983
|
},
|
|
2981
2984
|
unmounted: function(e) {
|
|
2982
|
-
e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel",
|
|
2985
|
+
e.removeEventListener("touchstart", ke), e.removeEventListener("touchmove", we), e.removeEventListener("touchcancel", lt), e.removeEventListener("touchend", Se), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", ke), e.removeEventListener("mousemove", we), e.removeEventListener("mouseup", Se), e.removeEventListener("mouseenter", dt), e.removeEventListener("mouseleave", ct)), delete e.$$touchObj;
|
|
2983
2986
|
}
|
|
2984
2987
|
};
|
|
2985
2988
|
export {
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
+
Ts as DAccordion,
|
|
2990
|
+
Jo as DAlertDialog,
|
|
2991
|
+
co as DBadge,
|
|
2989
2992
|
ae as DButton,
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
+
Ms as DCard,
|
|
2994
|
+
Os as DCheckbox,
|
|
2995
|
+
uo as DCollapse,
|
|
2993
2996
|
fe as DComponentStore,
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
2997
|
+
Ls as DConfigProvider,
|
|
2998
|
+
en as DConfirmDialog,
|
|
2999
|
+
Io as DContextMenu,
|
|
3000
|
+
As as DDialogProvider,
|
|
3001
|
+
at as DDrag,
|
|
3002
|
+
Lo as DDrop,
|
|
3003
|
+
Bs as DDropdown,
|
|
3004
|
+
Ps as DForm,
|
|
3002
3005
|
pe as DGlobalStore,
|
|
3003
|
-
|
|
3006
|
+
zs as DGrid,
|
|
3004
3007
|
de as DIcon,
|
|
3005
3008
|
te as DIconStore,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3009
|
+
Fs as DImage,
|
|
3010
|
+
Rs as DInfoProgress,
|
|
3011
|
+
Ds as DInput,
|
|
3012
|
+
js as DInputString,
|
|
3013
|
+
Cs as DLayoutAdmin,
|
|
3014
|
+
Oo as DLayoutContent,
|
|
3015
|
+
No as DLayoutFooter,
|
|
3016
|
+
Bo as DLayoutHeader,
|
|
3017
|
+
Ro as DLayoutSidebar,
|
|
3018
|
+
Mo as DLayoutTab,
|
|
3019
|
+
bt as DMenu,
|
|
3020
|
+
$t as DModal,
|
|
3021
|
+
Ns as DNotificationProvider,
|
|
3022
|
+
an as DPanel,
|
|
3023
|
+
Es as DScroll,
|
|
3024
|
+
Is as DScrollProvider,
|
|
3025
|
+
Hs as DSelect,
|
|
3026
|
+
Vs as DTabs,
|
|
3027
|
+
Ws as DTextarea,
|
|
3025
3028
|
Te as DTransferStore,
|
|
3026
|
-
|
|
3027
|
-
|
|
3029
|
+
xt as DTree,
|
|
3030
|
+
To as DTreeItem,
|
|
3028
3031
|
v as DTreeStore,
|
|
3029
3032
|
U as Rules,
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
+
Nn as alert,
|
|
3034
|
+
Ys as clickOutside,
|
|
3035
|
+
Mn as confirm,
|
|
3033
3036
|
q as emitter,
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3037
|
+
Co as eventsBus,
|
|
3038
|
+
qs as focus,
|
|
3039
|
+
Us as keydown,
|
|
3040
|
+
wt as notify,
|
|
3041
|
+
Gs as touch,
|
|
3042
|
+
Xs as useNotification
|
|
3040
3043
|
};
|