doph-js 0.2.92 → 0.2.94
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 +1215 -1190
- package/dist/dophJs.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as
|
|
1
|
+
import { useSlots as Ce, computed as h, h as st, openBlock as d, createBlock as b, unref as E, ref as T, createElementBlock as m, Fragment as le, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as z, resolveDynamicComponent as U, createStaticVNode as ut, onMounted as me, toDisplayString as O, withDirectives as oe, createElementVNode as _, vModelDynamic as De, withCtx as B, createTextVNode as K, Transition as Ne, withModifiers as j, resolveComponent as Ct, resolveDirective as Re, normalizeProps as pt, guardReactiveProps as ft, createVNode as J, 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 re = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -7,79 +7,79 @@ const re = {
|
|
|
7
7
|
color: String,
|
|
8
8
|
className: String
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
const { className: r } =
|
|
10
|
+
setup(t) {
|
|
11
|
+
const e = t, o = Ce(), n = h(() => {
|
|
12
|
+
const { className: r } = e;
|
|
13
13
|
return r === void 0 ? "icon" : ["icon", r].join(" ");
|
|
14
|
-
}),
|
|
15
|
-
const { color: r } =
|
|
14
|
+
}), s = h(() => {
|
|
15
|
+
const { color: r } = e;
|
|
16
16
|
return r === void 0 ? null : r;
|
|
17
|
-
}), a =
|
|
18
|
-
const r =
|
|
17
|
+
}), a = h(() => {
|
|
18
|
+
const r = e.size ?? null;
|
|
19
19
|
if (r !== void 0)
|
|
20
20
|
return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
|
|
21
|
-
}), l =
|
|
21
|
+
}), l = h(() => st(
|
|
22
22
|
"i",
|
|
23
23
|
{
|
|
24
|
-
class:
|
|
24
|
+
class: n.value,
|
|
25
25
|
style: {
|
|
26
|
-
color:
|
|
26
|
+
color: s.value,
|
|
27
27
|
fontSize: a.value
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
e.component ? st(e.component) : o
|
|
31
31
|
));
|
|
32
|
-
return (r, i) => (d(), b(
|
|
32
|
+
return (r, i) => (d(), b(E(l)));
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, te = {
|
|
35
35
|
state: {},
|
|
36
36
|
getters: {
|
|
37
|
-
getIcon(
|
|
38
|
-
return
|
|
37
|
+
getIcon(t) {
|
|
38
|
+
return te.state[t];
|
|
39
39
|
},
|
|
40
40
|
getIcons() {
|
|
41
|
-
return
|
|
41
|
+
return te.state;
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
mutations: {
|
|
45
|
-
addIcon(
|
|
46
|
-
|
|
45
|
+
addIcon(t, e) {
|
|
46
|
+
te.state.name = e;
|
|
47
47
|
},
|
|
48
|
-
addIcons(
|
|
49
|
-
for (const
|
|
50
|
-
|
|
48
|
+
addIcons(t) {
|
|
49
|
+
for (const e in t)
|
|
50
|
+
t.hasOwnProperty(e) && (te.state[e] = t[e]);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
function _t(
|
|
55
|
-
const
|
|
56
|
-
let o =
|
|
54
|
+
function _t(t) {
|
|
55
|
+
const e = t.value.getBoundingClientRect();
|
|
56
|
+
let o = t.value, n = 0, s = 0;
|
|
57
57
|
for (; o && !isNaN(o.offsetLeft) && !isNaN(o.offsetTop); )
|
|
58
|
-
|
|
59
|
-
return { top:
|
|
58
|
+
n += o.offsetLeft - o.scrollLeft, s += o.offsetTop - o.scrollTop, o = o.offsetParent;
|
|
59
|
+
return { top: s, left: n, x: e.x, y: e.y, width: e.width, height: e.height };
|
|
60
60
|
}
|
|
61
61
|
function zt() {
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function t(s) {
|
|
63
|
+
return s * Math.random() | 0;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function e() {
|
|
66
|
+
return t(16).toString(16);
|
|
67
67
|
}
|
|
68
|
-
function o(
|
|
68
|
+
function o(s) {
|
|
69
69
|
let a = "";
|
|
70
|
-
for (let l = 0; l <
|
|
71
|
-
a +=
|
|
70
|
+
for (let l = 0; l < s; ++l)
|
|
71
|
+
a += e();
|
|
72
72
|
return a;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return (
|
|
74
|
+
function n() {
|
|
75
|
+
return (t(16) & 3 | 8).toString(16);
|
|
76
76
|
}
|
|
77
|
-
return o(8) + "-" + o(4) + "-4" + o(3) + "-" +
|
|
77
|
+
return o(8) + "-" + o(4) + "-4" + o(3) + "-" + n() + o(3) + "-" + o(12);
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
const o =
|
|
81
|
-
for (const [
|
|
82
|
-
o[
|
|
79
|
+
const ne = (t, e) => {
|
|
80
|
+
const o = t.__vccOpts || t;
|
|
81
|
+
for (const [n, s] of e)
|
|
82
|
+
o[n] = s;
|
|
83
83
|
return o;
|
|
84
84
|
}, Ft = {
|
|
85
85
|
key: 0,
|
|
@@ -119,51 +119,51 @@ const se = (e, t) => {
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
emits: ["click", "contextmenu"],
|
|
122
|
-
setup(
|
|
123
|
-
const
|
|
122
|
+
setup(t, { expose: e, emit: o }) {
|
|
123
|
+
const n = t, s = Ce(), a = T(null), l = h(() => n.icon ? te.getters.getIcon(n.icon) : null), r = ($) => {
|
|
124
124
|
o("click", $);
|
|
125
125
|
}, i = ($) => {
|
|
126
126
|
o("contextmenu", $);
|
|
127
|
-
}, c =
|
|
128
|
-
const $ =
|
|
129
|
-
return
|
|
127
|
+
}, c = h(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = h(() => n.disabled ? "disabled" : ""), g = ($) => !!s[$], x = h(() => g("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = h(() => {
|
|
128
|
+
const $ = n.outline ? "-outline" : "";
|
|
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
|
-
return
|
|
131
|
+
return e({
|
|
132
132
|
elementSize: () => _t(a)
|
|
133
|
-
}), ($, H) => (d(),
|
|
134
|
-
l.value ? k("", !0) : (d(),
|
|
133
|
+
}), ($, H) => (d(), m(le, null, [
|
|
134
|
+
l.value ? k("", !0) : (d(), m("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
ref_key: "el",
|
|
137
137
|
ref: a,
|
|
138
138
|
onClick: r,
|
|
139
139
|
onContextmenu: i,
|
|
140
|
-
class: D(["button", [
|
|
140
|
+
class: D(["button", [n.class, c.value, C.value, u.value].join(" ")])
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
L($.$slots, "default", {}, void 0, !0),
|
|
143
|
+
n.loading ? (d(), m("svg", Ft, Pt)) : k("", !0)
|
|
144
144
|
], 34)),
|
|
145
|
-
l.value ? (d(),
|
|
145
|
+
l.value ? (d(), m("div", {
|
|
146
146
|
key: 1,
|
|
147
147
|
ref_key: "el",
|
|
148
148
|
ref: a,
|
|
149
149
|
onClick: r,
|
|
150
150
|
onContextmenu: i,
|
|
151
|
-
class: D(["button button-ext", [
|
|
152
|
-
style:
|
|
151
|
+
class: D(["button button-ext", [n.class, c.value, x.value, C.value, u.value].join(" ")]),
|
|
152
|
+
style: z(n.style)
|
|
153
153
|
}, [
|
|
154
|
-
|
|
154
|
+
n.icon ? (d(), b(U(re), {
|
|
155
155
|
key: 0,
|
|
156
156
|
component: l.value,
|
|
157
157
|
color: "inherit"
|
|
158
158
|
}, null, 8, ["component"])) : k("", !0),
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
E(s).default ? (d(), m("div", jt, [
|
|
160
|
+
L($.$slots, "default", {}, void 0, !0)
|
|
161
161
|
])) : k("", !0),
|
|
162
|
-
|
|
162
|
+
n.loading ? (d(), m("svg", Xt, Ut)) : k("", !0)
|
|
163
163
|
], 38)) : k("", !0)
|
|
164
164
|
], 64));
|
|
165
165
|
}
|
|
166
|
-
}, ie = /* @__PURE__ */
|
|
166
|
+
}, ie = /* @__PURE__ */ ne(qt, [["__scopeId", "data-v-e5cd6ccd"]]);
|
|
167
167
|
const Gt = {
|
|
168
168
|
key: 0,
|
|
169
169
|
class: "d-input"
|
|
@@ -177,11 +177,11 @@ const Gt = {
|
|
|
177
177
|
}, Qt = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "label"
|
|
180
|
-
}, eo = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, to = { style: { flex: "1" } }, oo = ["type", "placeholder"],
|
|
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" } }, lo = ["type", "placeholder"], ro = {
|
|
@@ -198,98 +198,98 @@ const Gt = {
|
|
|
198
198
|
focus: Boolean
|
|
199
199
|
},
|
|
200
200
|
emits: ["update:modelValue"],
|
|
201
|
-
setup(
|
|
202
|
-
const
|
|
203
|
-
get: () =>
|
|
201
|
+
setup(t, { expose: e, emit: o }) {
|
|
202
|
+
const n = t, s = T(null), a = h(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = h({
|
|
203
|
+
get: () => n.modelValue,
|
|
204
204
|
set: (i) => {
|
|
205
205
|
o("update:modelValue", i);
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
me(() => {
|
|
209
|
-
|
|
209
|
+
n.focus && r();
|
|
210
210
|
});
|
|
211
211
|
const r = () => {
|
|
212
|
-
|
|
212
|
+
s.value.focus();
|
|
213
213
|
};
|
|
214
|
-
return
|
|
214
|
+
return e({
|
|
215
215
|
focus: r
|
|
216
|
-
}), (i, c) => !
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
}), (i, c) => !n.post && !n.pre ? (d(), m("div", Gt, [
|
|
217
|
+
n.label ? (d(), m("div", Zt, O(n.label), 1)) : k("", !0),
|
|
218
|
+
oe(_("input", {
|
|
219
219
|
ref_key: "inputRef",
|
|
220
|
-
ref:
|
|
220
|
+
ref: s,
|
|
221
221
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
|
|
222
|
-
type:
|
|
222
|
+
type: n.password ? "password" : "text",
|
|
223
223
|
class: D(a.value),
|
|
224
|
-
placeholder:
|
|
224
|
+
placeholder: n.placeholder,
|
|
225
225
|
style: { width: "100%" }
|
|
226
226
|
}, null, 10, Kt), [
|
|
227
227
|
[De, l.value]
|
|
228
228
|
])
|
|
229
|
-
])) :
|
|
230
|
-
|
|
229
|
+
])) : n.post && n.post.click && !n.pre ? (d(), m("div", Jt, [
|
|
230
|
+
n.label ? (d(), m("div", Qt, O(n.label), 1)) : k("", !0),
|
|
231
231
|
_("div", eo, [
|
|
232
232
|
_("div", to, [
|
|
233
|
-
|
|
233
|
+
oe(_("input", {
|
|
234
234
|
ref_key: "inputRef",
|
|
235
|
-
ref:
|
|
235
|
+
ref: s,
|
|
236
236
|
class: D(["d-input-post-field", a.value]),
|
|
237
237
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
|
|
238
|
-
type:
|
|
239
|
-
placeholder:
|
|
238
|
+
type: n.password ? "password" : "text",
|
|
239
|
+
placeholder: n.placeholder,
|
|
240
240
|
style: { width: "100%" }
|
|
241
241
|
}, null, 10, oo), [
|
|
242
242
|
[De, l.value]
|
|
243
243
|
])
|
|
244
244
|
]),
|
|
245
|
-
|
|
245
|
+
n.post.label ? (d(), b(ie, {
|
|
246
246
|
key: 0,
|
|
247
|
-
scale:
|
|
248
|
-
class: D(["d-input-post-button",
|
|
249
|
-
onClick:
|
|
250
|
-
icon:
|
|
247
|
+
scale: n.scale,
|
|
248
|
+
class: D(["d-input-post-button", n.post.class]),
|
|
249
|
+
onClick: n.post.click,
|
|
250
|
+
icon: n.post.icon
|
|
251
251
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
K(O(
|
|
252
|
+
default: B(() => [
|
|
253
|
+
K(O(n.post.label), 1)
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
256
|
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ie, {
|
|
257
257
|
key: 1,
|
|
258
|
-
scale:
|
|
259
|
-
class: D(["d-input-post-button",
|
|
260
|
-
onClick:
|
|
261
|
-
icon:
|
|
258
|
+
scale: n.scale,
|
|
259
|
+
class: D(["d-input-post-button", n.post.class]),
|
|
260
|
+
onClick: n.post.click,
|
|
261
|
+
icon: n.post.icon
|
|
262
262
|
}, null, 8, ["scale", "onClick", "icon", "class"]))
|
|
263
263
|
])
|
|
264
|
-
])) : !
|
|
265
|
-
|
|
264
|
+
])) : !n.post && n.pre && n.pre.click ? (d(), m("div", no, [
|
|
265
|
+
n.label ? (d(), m("div", so, O(n.label), 1)) : k("", !0),
|
|
266
266
|
_("div", ao, [
|
|
267
|
-
|
|
267
|
+
n.pre.label ? (d(), b(ie, {
|
|
268
268
|
key: 0,
|
|
269
|
-
scale:
|
|
270
|
-
class: D(["d-input-pre-button",
|
|
271
|
-
onClick:
|
|
272
|
-
icon:
|
|
269
|
+
scale: n.scale,
|
|
270
|
+
class: D(["d-input-pre-button", n.pre.class]),
|
|
271
|
+
onClick: n.pre.click,
|
|
272
|
+
icon: n.pre.icon
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
K(O(
|
|
274
|
+
default: B(() => [
|
|
275
|
+
K(O(n.pre.label), 1)
|
|
276
276
|
]),
|
|
277
277
|
_: 1
|
|
278
278
|
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(ie, {
|
|
279
279
|
key: 1,
|
|
280
|
-
scale:
|
|
281
|
-
class: D(["d-input-pre-button",
|
|
282
|
-
onClick:
|
|
283
|
-
icon:
|
|
280
|
+
scale: n.scale,
|
|
281
|
+
class: D(["d-input-pre-button", n.pre.class]),
|
|
282
|
+
onClick: n.pre.click,
|
|
283
|
+
icon: n.pre.icon
|
|
284
284
|
}, null, 8, ["scale", "onClick", "icon", "class"])),
|
|
285
285
|
_("div", io, [
|
|
286
|
-
|
|
286
|
+
oe(_("input", {
|
|
287
287
|
ref_key: "inputRef",
|
|
288
|
-
ref:
|
|
288
|
+
ref: s,
|
|
289
289
|
class: D(["d-input-pre-field", a.value]),
|
|
290
290
|
"onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
|
|
291
|
-
type:
|
|
292
|
-
placeholder:
|
|
291
|
+
type: n.password ? "password" : "text",
|
|
292
|
+
placeholder: n.placeholder,
|
|
293
293
|
style: { width: "100%" }
|
|
294
294
|
}, null, 10, lo), [
|
|
295
295
|
[De, l.value]
|
|
@@ -298,7 +298,7 @@ const Gt = {
|
|
|
298
298
|
])
|
|
299
299
|
])) : k("", !0);
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, Es = /* @__PURE__ */ ne(ro, [["__scopeId", "data-v-a972038a"]]), co = {
|
|
302
302
|
__name: "DBadge",
|
|
303
303
|
props: {
|
|
304
304
|
scale: String,
|
|
@@ -309,15 +309,15 @@ const Gt = {
|
|
|
309
309
|
default: !1
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
|
-
setup(
|
|
313
|
-
const
|
|
314
|
-
const
|
|
315
|
-
return
|
|
312
|
+
setup(t) {
|
|
313
|
+
const e = t, o = h(() => e.scale === "large" ? "badge-lg" : e.scale === "small" ? "badge-sm" : ""), n = h(() => {
|
|
314
|
+
const s = e.stress ? "-stress" : "";
|
|
315
|
+
return e.type === "primary" ? `badge${s}-blue` : e.type === "success" ? `badge${s}-green` : e.type === "error" ? `badge${s}-red` : e.type === "warning" ? `badge${s}-orange` : e.type === "wait" ? `badge${s}-violet` : e.stress ? `badge${s}-gray` : "";
|
|
316
316
|
});
|
|
317
|
-
return (
|
|
318
|
-
class: D(["badge", [
|
|
317
|
+
return (s, a) => (d(), m("div", {
|
|
318
|
+
class: D(["badge", [e.class, o.value, n.value].join(" ")])
|
|
319
319
|
}, [
|
|
320
|
-
|
|
320
|
+
L(s.$slots, "default")
|
|
321
321
|
], 2));
|
|
322
322
|
}
|
|
323
323
|
}, ae = "0px", uo = {
|
|
@@ -344,8 +344,8 @@ const Gt = {
|
|
|
344
344
|
default: 1
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
|
-
setup(
|
|
348
|
-
const
|
|
347
|
+
setup(t) {
|
|
348
|
+
const e = t, o = (i) => ({
|
|
349
349
|
height: i == null ? void 0 : i.style.height,
|
|
350
350
|
width: i == null ? void 0 : i.style.width,
|
|
351
351
|
position: i == null ? void 0 : i.style.position,
|
|
@@ -357,20 +357,20 @@ const Gt = {
|
|
|
357
357
|
borderBottomWidth: i == null ? void 0 : i.style.borderBottomWidth,
|
|
358
358
|
marginTop: i == null ? void 0 : i.style.marginTop,
|
|
359
359
|
marginBottom: i == null ? void 0 : i.style.marginBottom
|
|
360
|
-
}),
|
|
360
|
+
}), n = (i, c) => {
|
|
361
361
|
const { width: u } = getComputedStyle(i);
|
|
362
362
|
i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
|
|
363
|
-
let { height:
|
|
364
|
-
return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = ae, i.style.overflow = "hidden", c.height && c.height !== ae ? c.height :
|
|
365
|
-
},
|
|
366
|
-
const
|
|
367
|
-
i.style.height = c.height,
|
|
363
|
+
let { height: g } = getComputedStyle(i);
|
|
364
|
+
return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = ae, i.style.overflow = "hidden", c.height && c.height !== ae ? c.height : g;
|
|
365
|
+
}, s = (i, c, u, g, x) => {
|
|
366
|
+
const C = i.animate(g, x);
|
|
367
|
+
i.style.height = c.height, C.onfinish = () => {
|
|
368
368
|
i.style.overflow = c.overflow, u();
|
|
369
369
|
};
|
|
370
370
|
}, a = (i, c) => [
|
|
371
371
|
{
|
|
372
372
|
height: ae,
|
|
373
|
-
opacity:
|
|
373
|
+
opacity: e.opacityClosed,
|
|
374
374
|
paddingTop: ae,
|
|
375
375
|
paddingBottom: ae,
|
|
376
376
|
borderTopWidth: ae,
|
|
@@ -380,7 +380,7 @@ const Gt = {
|
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
height: i,
|
|
383
|
-
opacity:
|
|
383
|
+
opacity: e.opacityOpened,
|
|
384
384
|
paddingTop: c.paddingTop,
|
|
385
385
|
paddingBottom: c.paddingBottom,
|
|
386
386
|
borderTopWidth: c.borderTopWidth,
|
|
@@ -389,28 +389,28 @@ const Gt = {
|
|
|
389
389
|
marginBottom: c.marginBottom
|
|
390
390
|
}
|
|
391
391
|
], l = (i, c) => {
|
|
392
|
-
const u = i,
|
|
393
|
-
|
|
392
|
+
const u = i, g = o(u), x = n(u, g), C = a(x, g), R = { duration: e.duration, easing: e.easingEnter };
|
|
393
|
+
s(u, g, c, C, R);
|
|
394
394
|
}, r = (i, c) => {
|
|
395
|
-
const u = i,
|
|
395
|
+
const u = i, g = o(u), { height: x } = getComputedStyle(u);
|
|
396
396
|
u.style.height = x, u.style.overflow = "hidden";
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const C = a(x, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
|
|
398
|
+
s(u, g, c, C, R);
|
|
399
399
|
};
|
|
400
400
|
return (i, c) => (d(), b(Ne, {
|
|
401
401
|
css: !1,
|
|
402
402
|
onEnter: l,
|
|
403
403
|
onLeave: r
|
|
404
404
|
}, {
|
|
405
|
-
default:
|
|
406
|
-
|
|
405
|
+
default: B(() => [
|
|
406
|
+
L(i.$slots, "default")
|
|
407
407
|
]),
|
|
408
408
|
_: 3
|
|
409
409
|
}));
|
|
410
410
|
}
|
|
411
411
|
}, Te = {
|
|
412
412
|
data: void 0
|
|
413
|
-
}, He = (
|
|
413
|
+
}, He = (t) => t.reduce((e, o) => (e[o] = o) && e, {}), X = He([
|
|
414
414
|
"drag",
|
|
415
415
|
"dragend",
|
|
416
416
|
"dragenter",
|
|
@@ -433,58 +433,58 @@ const Gt = {
|
|
|
433
433
|
props: {
|
|
434
434
|
draggable: { type: Boolean, default: !0 },
|
|
435
435
|
transferData: {},
|
|
436
|
-
dropEffect: { validator: (
|
|
437
|
-
effectAllowed: { validator: (
|
|
436
|
+
dropEffect: { validator: (t) => t in po },
|
|
437
|
+
effectAllowed: { validator: (t) => t in fo },
|
|
438
438
|
image: String,
|
|
439
439
|
imageXOffset: { type: Number, default: 0 },
|
|
440
440
|
imageYOffset: { type: Number, default: 0 },
|
|
441
441
|
hideImageHtml: { type: Boolean, default: !1 },
|
|
442
442
|
tag: { type: String, default: "div" }
|
|
443
443
|
},
|
|
444
|
-
setup(
|
|
445
|
-
const
|
|
444
|
+
setup(t) {
|
|
445
|
+
const e = t, o = Ce(), n = T(!1), s = h(() => n && e.transferData), a = h(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
|
|
446
446
|
const c = i.dataTransfer;
|
|
447
|
-
if ([X.dragenter, X.dragover].includes(r) &&
|
|
448
|
-
if (
|
|
447
|
+
if ([X.dragenter, X.dragover].includes(r) && e.dropEffect && (c.dropEffect = e.dropEffect), r === X.dragstart) {
|
|
448
|
+
if (e.effectAllowed && (c.effectAllowed = e.effectAllowed), e.image || o.image) {
|
|
449
449
|
let u;
|
|
450
|
-
|
|
450
|
+
e.image ? (u = new Image(), u.src = e.image) : o.image && (u = o.image[0].elm), c.setDragImage && c.setDragImage(u, e.imageXOffset, e.imageYOffset);
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
e.transferData !== void 0 && (Te.data = e.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
-
return (r, i) => (d(), b(
|
|
456
|
-
draggable:
|
|
457
|
-
onDrag: i[0] || (i[0] = (c) => l(
|
|
458
|
-
onDragstart: i[1] || (i[1] = j((c) => l(
|
|
459
|
-
onDragenter: i[2] || (i[2] = (c) => l(
|
|
460
|
-
onDragleave: i[3] || (i[3] = (c) => l(
|
|
461
|
-
onDragend: i[4] || (i[4] = (c) => l(
|
|
455
|
+
return (r, i) => (d(), b(U(t.tag), {
|
|
456
|
+
draggable: e.draggable,
|
|
457
|
+
onDrag: i[0] || (i[0] = (c) => l(E(X).drag, c)),
|
|
458
|
+
onDragstart: i[1] || (i[1] = j((c) => l(E(X).dragstart, c), ["stop"])),
|
|
459
|
+
onDragenter: i[2] || (i[2] = (c) => l(E(X).dragenter, c)),
|
|
460
|
+
onDragleave: i[3] || (i[3] = (c) => l(E(X).dragleave, c)),
|
|
461
|
+
onDragend: i[4] || (i[4] = (c) => l(E(X).dragend, c))
|
|
462
462
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
default: B(() => [
|
|
464
|
+
L(r.$slots, "default", { transferData: s.value }),
|
|
465
|
+
t.hideImageHtml ? (d(), m("div", {
|
|
466
466
|
key: 0,
|
|
467
|
-
style:
|
|
467
|
+
style: z(a.value)
|
|
468
468
|
}, [
|
|
469
|
-
|
|
470
|
-
], 4)) :
|
|
469
|
+
L(r.$slots, "image", { transferData: s.value })
|
|
470
|
+
], 4)) : L(r.$slots, "image", {
|
|
471
471
|
key: 1,
|
|
472
|
-
transferData:
|
|
472
|
+
transferData: s.value
|
|
473
473
|
})
|
|
474
474
|
]),
|
|
475
475
|
_: 3
|
|
476
476
|
}, 40, ["draggable"]));
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
const mo = (
|
|
479
|
+
const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
|
|
480
480
|
key: 0,
|
|
481
481
|
style: { display: "none" }
|
|
482
482
|
}, go = { key: 1 }, vo = /* @__PURE__ */ mo(() => /* @__PURE__ */ _("div", { class: "tree-divider" }, null, -1)), yo = [
|
|
483
483
|
vo
|
|
484
|
-
], _o = { key: 2 }, bo = { class: "tree-divider-header" }, xo = { class: "item-title" },
|
|
484
|
+
], _o = { key: 2 }, bo = { class: "tree-divider-header" }, xo = { class: "item-title" }, ko = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "tree-divider"
|
|
487
|
-
},
|
|
487
|
+
}, $o = { 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 = {
|
|
@@ -496,78 +496,84 @@ const mo = (e) => (Ct("data-v-d0deedc5"), e = e(), It(), e), ho = {
|
|
|
496
496
|
search: String,
|
|
497
497
|
component: Object
|
|
498
498
|
},
|
|
499
|
-
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
|
|
500
|
-
setup(
|
|
501
|
-
const o =
|
|
502
|
-
|
|
503
|
-
}, u = (
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
}, x = (
|
|
508
|
-
|
|
509
|
-
},
|
|
499
|
+
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext", "nodedoubleclick", "nodefoldericonclick"],
|
|
500
|
+
setup(t, { emit: e }) {
|
|
501
|
+
const o = t, n = T(null), s = T(!1), a = T(!1), l = T(!1), r = h(() => o.model.children && o.model.children.length), i = h(() => (v.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (N) => {
|
|
502
|
+
e("nodeclick", { event: N, model: o.model });
|
|
503
|
+
}, u = (N) => {
|
|
504
|
+
e("nodefoldericonclick", { event: N, model: o.model });
|
|
505
|
+
}, g = (N) => {
|
|
506
|
+
e("nodefoldericonclick", N);
|
|
507
|
+
}, x = (N) => {
|
|
508
|
+
e("nodeclick", N);
|
|
509
|
+
}, C = (N) => {
|
|
510
|
+
e("nodedoubleclick", N);
|
|
511
|
+
}, R = (N) => {
|
|
512
|
+
e("nodedrop", N);
|
|
513
|
+
}, $ = (N) => {
|
|
514
|
+
e("nodecontext", N);
|
|
515
|
+
}, H = h(() => [
|
|
510
516
|
v.actions.isItemSelected(o.treeId, o.model.id) ? "selected" : "",
|
|
511
|
-
|
|
517
|
+
s.value ? "node-over " : "",
|
|
512
518
|
a.value ? "node-top " : "",
|
|
513
519
|
l.value ? "node-bottom " : ""
|
|
514
|
-
]),
|
|
515
|
-
var
|
|
516
|
-
let
|
|
517
|
-
if (
|
|
518
|
-
return
|
|
519
|
-
if (
|
|
520
|
-
return
|
|
521
|
-
if (!v.state.trees[o.treeId].transfer &&
|
|
520
|
+
]), Y = h(() => o.search ? !1 : o.model.draggable === !0), M = (N) => {
|
|
521
|
+
var P;
|
|
522
|
+
let w = Te.data;
|
|
523
|
+
if (w === void 0 || w.model === void 0)
|
|
524
|
+
return s.value = !1, !1;
|
|
525
|
+
if (w.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, w.model.id) || v.actions.isParentOfChild(o.treeId, o.items, w.model.id, o.model.id))
|
|
526
|
+
return s.value = !1, a.value = !1, l.value = !1, !1;
|
|
527
|
+
if (!v.state.trees[o.treeId].transfer && w.id !== o.treeId || !v.state.trees[o.treeId].dropInside && !l.value && !a.value)
|
|
522
528
|
return !1;
|
|
523
|
-
let
|
|
524
|
-
a.value ?
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
let
|
|
529
|
+
let V = "";
|
|
530
|
+
a.value ? V = "before" : l.value ? V = "after" : V = "inside", e("nodedrop", { e: N, model: o.model, place: V }), v.actions.moveTreeNode(w.id, o.treeId, o.items, w.model.id, o.model.id, V, (P = w.model) == null ? void 0 : P.transfer), s.value = !1, a.value = !1, l.value = !1;
|
|
531
|
+
}, I = (N) => {
|
|
532
|
+
e("nodedragover", { e: N, model: o.model });
|
|
533
|
+
let w = Te.data;
|
|
528
534
|
if (!o.model.droppable)
|
|
529
535
|
return !1;
|
|
530
|
-
if (
|
|
531
|
-
return
|
|
532
|
-
if (
|
|
536
|
+
if (w === void 0 || w.model === void 0)
|
|
537
|
+
return s.value = !0, !1;
|
|
538
|
+
if (w.model.id === o.model.id || v.actions.isChildOfParent(o.treeId, o.items, o.model.id, w.model.id) || v.actions.isParentOfChild(o.treeId, o.items, w.model.id, o.model.id))
|
|
533
539
|
return !1;
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
},
|
|
537
|
-
|
|
538
|
-
},
|
|
540
|
+
const V = N.y, P = n.value.getBoundingClientRect().top, f = n.value.getBoundingClientRect().height, p = f / 3;
|
|
541
|
+
V > P && V <= P + p ? (s.value = !1, a.value = !0, l.value = !1) : V < P + f && V >= P + f - p ? (s.value = !1, a.value = !1, l.value = !0) : (s.value = v.state.trees[o.treeId].dropInside, a.value = !1, l.value = !1);
|
|
542
|
+
}, F = () => {
|
|
543
|
+
s.value = !1, a.value = !1, l.value = !1;
|
|
544
|
+
}, S = h(() => o.model.title.startsWith("-")), W = h(() => {
|
|
539
545
|
if (o.model.title.startsWith("-")) {
|
|
540
|
-
let [
|
|
541
|
-
return
|
|
546
|
+
let [N, ...w] = o.model.title.split(" ");
|
|
547
|
+
return w = w.join(" "), w;
|
|
542
548
|
}
|
|
543
549
|
return null;
|
|
544
550
|
});
|
|
545
|
-
return (
|
|
546
|
-
const
|
|
547
|
-
return
|
|
548
|
-
_("div", bo, O(
|
|
551
|
+
return (N, w) => {
|
|
552
|
+
const V = Ct("d-tree-item", !0), P = Re("touch");
|
|
553
|
+
return E(v).actions.beforeItem(o.treeId, t.model) ? S.value && !W.value ? (d(), m("li", go, yo)) : S.value && W.value ? (d(), m("li", _o, [
|
|
554
|
+
_("div", bo, O(E(v).actions.renderTitle(o.treeId, W.value)), 1)
|
|
549
555
|
])) : o.model.component ? (d(), b(at, {
|
|
550
556
|
key: 3,
|
|
551
557
|
tag: "li",
|
|
552
558
|
class: "tree-item-component",
|
|
553
559
|
"transfer-data": { id: o.treeId, model: o.model },
|
|
554
|
-
draggable:
|
|
555
|
-
onDrop: j(
|
|
556
|
-
onDragenter:
|
|
560
|
+
draggable: Y.value,
|
|
561
|
+
onDrop: j(M, ["stop"]),
|
|
562
|
+
onDragenter: w[1] || (w[1] = j(() => {
|
|
557
563
|
}, ["prevent"])),
|
|
558
|
-
onDragover: j(
|
|
559
|
-
onDragleave: j(
|
|
564
|
+
onDragover: j(I, ["prevent", "stop"]),
|
|
565
|
+
onDragleave: j(F, ["prevent"])
|
|
560
566
|
}, {
|
|
561
|
-
default:
|
|
562
|
-
|
|
567
|
+
default: B(() => [
|
|
568
|
+
oe((d(), m("div", {
|
|
563
569
|
ref_key: "node",
|
|
564
|
-
ref:
|
|
565
|
-
class: D(
|
|
566
|
-
onContextmenu:
|
|
570
|
+
ref: n,
|
|
571
|
+
class: D(H.value),
|
|
572
|
+
onContextmenu: w[0] || (w[0] = j((f) => e("nodecontext", { e: f, model: o.model }), ["prevent"]))
|
|
567
573
|
}, [
|
|
568
|
-
(d(), b(
|
|
574
|
+
(d(), b(U(E(fe).getters.getComponent(o.model.component).component), pt(ft(E(fe).getters.getComponent(o.model.component).props)), null, 16))
|
|
569
575
|
], 34)), [
|
|
570
|
-
[
|
|
576
|
+
[P, c, "press"]
|
|
571
577
|
])
|
|
572
578
|
]),
|
|
573
579
|
_: 1
|
|
@@ -576,82 +582,86 @@ const mo = (e) => (Ct("data-v-d0deedc5"), e = e(), It(), e), ho = {
|
|
|
576
582
|
tag: "li",
|
|
577
583
|
class: "tree-item",
|
|
578
584
|
"transfer-data": { id: o.treeId, model: o.model },
|
|
579
|
-
draggable:
|
|
580
|
-
onDrop: j(
|
|
581
|
-
onDragenter:
|
|
585
|
+
draggable: Y.value,
|
|
586
|
+
onDrop: j(M, ["stop"]),
|
|
587
|
+
onDragenter: w[4] || (w[4] = j(() => {
|
|
582
588
|
}, ["prevent"])),
|
|
583
|
-
onDragover: j(
|
|
584
|
-
onDragleave: j(
|
|
589
|
+
onDragover: j(I, ["prevent", "stop"]),
|
|
590
|
+
onDragleave: j(F, ["prevent"])
|
|
585
591
|
}, {
|
|
586
|
-
default:
|
|
587
|
-
var
|
|
592
|
+
default: B(() => {
|
|
593
|
+
var f, p;
|
|
588
594
|
return [
|
|
589
|
-
|
|
595
|
+
_("div", {
|
|
590
596
|
ref_key: "node",
|
|
591
|
-
ref:
|
|
592
|
-
class: D(
|
|
593
|
-
|
|
597
|
+
ref: n,
|
|
598
|
+
class: D(H.value),
|
|
599
|
+
onPointerdownCapture: c,
|
|
600
|
+
onDblclick: w[2] || (w[2] = j((y) => e("nodedoubleclick", { e: y, model: o.model }), ["prevent"])),
|
|
601
|
+
onContextmenu: w[3] || (w[3] = j((y) => e("nodecontext", { e: y, model: o.model }), ["prevent"]))
|
|
594
602
|
}, [
|
|
595
603
|
_("div", null, [
|
|
596
|
-
o.model.icons && o.model.icons.pre && r.value && !o.search && !
|
|
604
|
+
o.model.icons && o.model.icons.pre && r.value && !o.search && !S.value ? (d(), b(U(re), {
|
|
597
605
|
key: 0,
|
|
598
|
-
component:
|
|
606
|
+
component: E(te).getters.getIcon(o.model.icons.pre.component),
|
|
599
607
|
size: 18,
|
|
600
608
|
color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
|
|
601
|
-
class: D(i.value ? "tree-open-pre" : "")
|
|
602
|
-
|
|
603
|
-
|
|
609
|
+
class: D(i.value ? "tree-open-pre" : ""),
|
|
610
|
+
onPointerdownCapture: u
|
|
611
|
+
}, null, 40, ["component", "color", "class"])) : k("", !0),
|
|
612
|
+
o.model.icons && o.model.icons.pre && !r.value && !o.search && !S.value ? (d(), b(U(re), {
|
|
604
613
|
key: 1,
|
|
605
|
-
component:
|
|
614
|
+
component: E(te).getters.getIcon(o.model.icons.pre.component),
|
|
606
615
|
size: 18,
|
|
607
616
|
color: "rgba(0,0,0,0)",
|
|
608
617
|
class: D(i.value ? "tree-open-pre" : "")
|
|
609
618
|
}, null, 8, ["component", "class"])) : k("", !0),
|
|
610
|
-
o.model.icons && o.model.icons.icon && !
|
|
619
|
+
o.model.icons && o.model.icons.icon && !S.value ? (d(), b(U(re), {
|
|
611
620
|
key: 2,
|
|
612
|
-
component:
|
|
621
|
+
component: E(te).getters.getIcon(o.model.icons.icon.component),
|
|
613
622
|
color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
|
|
614
623
|
size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
|
|
615
624
|
className: o.model.icons.icon.class ? o.model.icons.icon.class : null
|
|
616
625
|
}, null, 8, ["component", "color", "size", "className"])) : k("", !0),
|
|
617
626
|
_("div", xo, [
|
|
618
|
-
|
|
619
|
-
|
|
627
|
+
S.value ? (d(), m("div", ko)) : k("", !0),
|
|
628
|
+
S.value ? k("", !0) : (d(), m("div", $o, O(E(v).actions.renderTitle(o.treeId, o.model.title)), 1))
|
|
620
629
|
])
|
|
621
630
|
]),
|
|
622
631
|
_("div", wo, [
|
|
623
|
-
((
|
|
632
|
+
((f = o.model.badge) == null ? void 0 : f.value) !== void 0 && !S.value ? (d(), b(U(co), {
|
|
624
633
|
key: 0,
|
|
625
|
-
class: D([(
|
|
634
|
+
class: D([(p = o.model.badge) == null ? void 0 : p.class, "badge-sm"])
|
|
626
635
|
}, {
|
|
627
|
-
default:
|
|
636
|
+
default: B(() => [
|
|
628
637
|
K(O(o.model.badge.value), 1)
|
|
629
638
|
]),
|
|
630
639
|
_: 1
|
|
631
640
|
}, 8, ["class"])) : k("", !0),
|
|
632
|
-
o.model.icons && o.model.icons.post && r.value && !o.search && !
|
|
641
|
+
o.model.icons && o.model.icons.post && r.value && !o.search && !S.value ? (d(), b(U(re), {
|
|
633
642
|
key: 1,
|
|
634
|
-
component:
|
|
643
|
+
component: E(te).getters.getIcon(o.model.icons.post.component),
|
|
635
644
|
size: 20,
|
|
636
645
|
color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
|
|
637
|
-
class: D(i.value ? "tree-open-post" : "")
|
|
638
|
-
|
|
646
|
+
class: D(i.value ? "tree-open-post" : ""),
|
|
647
|
+
onPointerdownCapture: u
|
|
648
|
+
}, null, 40, ["component", "color", "class"])) : k("", !0)
|
|
639
649
|
])
|
|
640
|
-
], 34)
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
key: F.id,
|
|
648
|
-
model: F,
|
|
650
|
+
], 34),
|
|
651
|
+
J(uo, null, {
|
|
652
|
+
default: B(() => [
|
|
653
|
+
r.value && i.value && !o.search ? (d(), m("ul", So, [
|
|
654
|
+
(d(!0), m(le, null, ge(t.model.children, (y) => (d(), b(V, {
|
|
655
|
+
key: y.id,
|
|
656
|
+
model: y,
|
|
649
657
|
treeId: o.treeId,
|
|
650
658
|
items: o.items,
|
|
651
659
|
search: o.search,
|
|
652
|
-
onNodeclick:
|
|
653
|
-
|
|
654
|
-
|
|
660
|
+
onNodeclick: x,
|
|
661
|
+
onNodedoubleclick: C,
|
|
662
|
+
onNodedrop: R,
|
|
663
|
+
onNodecontext: $,
|
|
664
|
+
onNodefoldericonclick: g
|
|
655
665
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128))
|
|
656
666
|
])) : k("", !0)
|
|
657
667
|
]),
|
|
@@ -660,25 +670,25 @@ const mo = (e) => (Ct("data-v-d0deedc5"), e = e(), It(), e), ho = {
|
|
|
660
670
|
];
|
|
661
671
|
}),
|
|
662
672
|
_: 1
|
|
663
|
-
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(),
|
|
673
|
+
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), m("li", ho));
|
|
664
674
|
};
|
|
665
675
|
}
|
|
666
|
-
}, To = /* @__PURE__ */
|
|
667
|
-
function
|
|
668
|
-
return
|
|
676
|
+
}, To = /* @__PURE__ */ ne(Do, [["__scopeId", "data-v-9da49c73"]]);
|
|
677
|
+
function Co(t) {
|
|
678
|
+
return t = t || /* @__PURE__ */ new Map(), {
|
|
669
679
|
/**
|
|
670
680
|
* A Map of event names to registered handler functions.
|
|
671
681
|
*/
|
|
672
|
-
all:
|
|
682
|
+
all: t,
|
|
673
683
|
/**
|
|
674
684
|
* Register an event handler for the given type.
|
|
675
685
|
* @param {string|symbol} type Type of event to listen for, or `'*'` for all events
|
|
676
686
|
* @param {Function} handler Function to call in response to given event
|
|
677
687
|
* @memberOf eventsBus
|
|
678
688
|
*/
|
|
679
|
-
on(
|
|
680
|
-
const
|
|
681
|
-
|
|
689
|
+
on(e, o) {
|
|
690
|
+
const n = t.get(e);
|
|
691
|
+
n ? n.push(o) : t.set(e, [o]);
|
|
682
692
|
},
|
|
683
693
|
/**
|
|
684
694
|
* Remove an event handler for the given type.
|
|
@@ -687,9 +697,9 @@ function Lo(e) {
|
|
|
687
697
|
* @param {Function} [handler] Handler function to remove
|
|
688
698
|
* @memberOf eventsBus
|
|
689
699
|
*/
|
|
690
|
-
off(
|
|
691
|
-
const
|
|
692
|
-
|
|
700
|
+
off(e, o) {
|
|
701
|
+
const n = t.get(e);
|
|
702
|
+
n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : t.set(e, []));
|
|
693
703
|
},
|
|
694
704
|
/**
|
|
695
705
|
* Invoke all handlers for the given type.
|
|
@@ -701,144 +711,144 @@ function Lo(e) {
|
|
|
701
711
|
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
|
|
702
712
|
* @memberOf eventsBus
|
|
703
713
|
*/
|
|
704
|
-
emit(
|
|
705
|
-
let
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}),
|
|
709
|
-
|
|
714
|
+
emit(e, o) {
|
|
715
|
+
let n = t.get(e);
|
|
716
|
+
n && n.slice().map((s) => {
|
|
717
|
+
s(o);
|
|
718
|
+
}), n = t.get("*"), n && n.slice().map((s) => {
|
|
719
|
+
s(e, o);
|
|
710
720
|
});
|
|
711
721
|
}
|
|
712
722
|
};
|
|
713
723
|
}
|
|
714
|
-
const
|
|
724
|
+
const q = Co(), v = {
|
|
715
725
|
state: Oe({
|
|
716
726
|
trees: {}
|
|
717
727
|
}),
|
|
718
728
|
getters: {
|
|
719
|
-
getItems(
|
|
720
|
-
return v.state.trees[
|
|
729
|
+
getItems(t) {
|
|
730
|
+
return v.state.trees[t].items;
|
|
721
731
|
},
|
|
722
|
-
getItemsSelect(
|
|
723
|
-
return v.state.trees[
|
|
732
|
+
getItemsSelect(t) {
|
|
733
|
+
return v.state.trees[t].selected;
|
|
724
734
|
},
|
|
725
735
|
// data - ноды, dataId - ID ноды родителя data
|
|
726
|
-
getParentId(
|
|
727
|
-
return o &&
|
|
736
|
+
getParentId(t, e, o, n = "id", s = "children", a = {}) {
|
|
737
|
+
return o && t && (t.find((l) => l[n] === o ? (a.found = e, l) : v.getters.getParentId(l[s], l.id, o, n, s, a)), a.found) ? a.found : !1;
|
|
728
738
|
}
|
|
729
739
|
},
|
|
730
740
|
mutations: {
|
|
731
|
-
setTreeItems(
|
|
732
|
-
v.state.trees[
|
|
741
|
+
setTreeItems(t, e) {
|
|
742
|
+
v.state.trees[t].items = e;
|
|
733
743
|
},
|
|
734
|
-
setItemSelect(
|
|
735
|
-
v.state.trees[
|
|
736
|
-
return o !==
|
|
737
|
-
}) : v.state.trees[
|
|
744
|
+
setItemSelect(t, e) {
|
|
745
|
+
v.state.trees[t].noSelect || (v.state.trees[t].multiSelect ? v.state.trees[t].selected.includes(e.id) ? v.state.trees[t].selected = v.state.trees[t].selected.filter(function(o) {
|
|
746
|
+
return o !== e.id;
|
|
747
|
+
}) : v.state.trees[t].selected = [...v.state.trees[t].selected, e.id] : v.state.trees[t].selected = [e.id]);
|
|
738
748
|
}
|
|
739
749
|
},
|
|
740
750
|
actions: {
|
|
741
|
-
initTreeStore(
|
|
742
|
-
v.state.trees[
|
|
751
|
+
initTreeStore(t, e, o, n, s, a, l, r = !0) {
|
|
752
|
+
v.state.trees[t] = [], v.state.trees[t].selected = [], v.state.trees[t].noSelect = e, v.state.trees[t].multiSelect = o, v.state.trees[t].expanded = n, v.state.trees[t].transfer = s, v.state.trees[t].renderTitle = a, v.state.trees[t].beforeItem = l, v.state.trees[t].dropInside = r;
|
|
743
753
|
},
|
|
744
|
-
renderTitle(
|
|
745
|
-
return v.state.trees[
|
|
754
|
+
renderTitle(t, e) {
|
|
755
|
+
return v.state.trees[t].renderTitle ? v.state.trees[t].renderTitle(e) : e;
|
|
746
756
|
},
|
|
747
|
-
beforeItem(
|
|
748
|
-
return v.state.trees[
|
|
757
|
+
beforeItem(t, e) {
|
|
758
|
+
return v.state.trees[t].beforeItem ? v.state.trees[t].beforeItem(e) : !0;
|
|
749
759
|
},
|
|
750
|
-
isItemSelected(
|
|
751
|
-
return v.state.trees[
|
|
760
|
+
isItemSelected(t, e) {
|
|
761
|
+
return v.state.trees[t].selected.includes(e);
|
|
752
762
|
},
|
|
753
|
-
toggleItem(
|
|
754
|
-
|
|
763
|
+
toggleItem(t, e) {
|
|
764
|
+
e.expanded = e.expanded === void 0 || !e.expanded, e.children && e.children.length && (e.expanded ? q.emit(`expand-${t}`, { id: t, model: e }) : q.emit(`collapse-${t}`, { id: t, model: e }));
|
|
755
765
|
},
|
|
756
|
-
isTreeExpanded(
|
|
757
|
-
return v.state.trees[
|
|
766
|
+
isTreeExpanded(t) {
|
|
767
|
+
return v.state.trees[t].expanded;
|
|
758
768
|
},
|
|
759
|
-
isChildOfParent(
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
for (let a = 0; a <
|
|
763
|
-
if (
|
|
769
|
+
isChildOfParent(t, e, o, n) {
|
|
770
|
+
const s = v.actions.deepSearch(e, o);
|
|
771
|
+
if (s && s.children) {
|
|
772
|
+
for (let a = 0; a < s.children.length; a++)
|
|
773
|
+
if (s.children[a].id === n)
|
|
764
774
|
return !0;
|
|
765
775
|
}
|
|
766
776
|
return !1;
|
|
767
777
|
},
|
|
768
778
|
// Является ли нода родителем указанного потомка
|
|
769
|
-
isParentOfChild(
|
|
770
|
-
const
|
|
771
|
-
return !!(
|
|
772
|
-
},
|
|
773
|
-
deepSearch(
|
|
774
|
-
return
|
|
775
|
-
},
|
|
776
|
-
deepSearchByTitle(
|
|
777
|
-
if (
|
|
778
|
-
const l = new RegExp(
|
|
779
|
-
a[o].toString().toLowerCase().match(l) !== null &&
|
|
780
|
-
}),
|
|
781
|
-
for (let a = 0; a <
|
|
779
|
+
isParentOfChild(t, e, o, n) {
|
|
780
|
+
const s = v.actions.deepSearch(e, o);
|
|
781
|
+
return !!(s && s.children && v.actions.deepSearch(s.children, n));
|
|
782
|
+
},
|
|
783
|
+
deepSearch(t, e, o = "id", n = "children", s = {}) {
|
|
784
|
+
return e && t && (t.find((a) => a[o] === e ? (s.found = a, a) : v.actions.deepSearch(a[n], e, o, n, s)), s.found) ? s.found : !1;
|
|
785
|
+
},
|
|
786
|
+
deepSearchByTitle(t, e, o = "title", n = "children", s = []) {
|
|
787
|
+
if (e && t && (t.find((a) => {
|
|
788
|
+
const l = new RegExp(e, "gi");
|
|
789
|
+
a[o].toString().toLowerCase().match(l) !== null && s.push(a), v.actions.deepSearchByTitle(a[n], e, o, n, s);
|
|
790
|
+
}), s)) {
|
|
791
|
+
for (let a = 0; a < s.length; a++)
|
|
782
792
|
;
|
|
783
|
-
return
|
|
793
|
+
return s;
|
|
784
794
|
}
|
|
785
|
-
return
|
|
795
|
+
return s;
|
|
786
796
|
},
|
|
787
|
-
moveTreeNode(
|
|
797
|
+
moveTreeNode(t, e, o, n, s, a, l = !0) {
|
|
788
798
|
if (l) {
|
|
789
|
-
const r = v.actions.deleteTreeNode(o,
|
|
790
|
-
v.actions.insertTreeNode(o,
|
|
799
|
+
const r = v.actions.deleteTreeNode(o, n);
|
|
800
|
+
v.actions.insertTreeNode(o, s, r, a), q.emit(`move-${e}`, { fromTreeId: t, toTreeId: e, moved: r == null ? void 0 : r.id, target: s, position: a });
|
|
791
801
|
} else
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
insertTreeNode(
|
|
795
|
-
if (
|
|
796
|
-
for (let
|
|
797
|
-
if (
|
|
798
|
-
let l =
|
|
799
|
-
return
|
|
802
|
+
q.emit(`move-${e}`, { fromTreeId: t, toTreeId: e, moved: n, target: s, position: a });
|
|
803
|
+
},
|
|
804
|
+
insertTreeNode(t, e, o, n) {
|
|
805
|
+
if (t)
|
|
806
|
+
for (let s = 0; s < t.length; s++) {
|
|
807
|
+
if (t[s].id === e) {
|
|
808
|
+
let l = s;
|
|
809
|
+
return n === "after" ? (l++, t.splice(l, 0, o)) : n === "before" ? t.splice(l, 0, o) : n === "inside" && (Object.hasOwn(t[s], "children") || (t[s].children = [], t[s].opened = !0), t[s].children.splice(0, 0, o)), t[s];
|
|
800
810
|
}
|
|
801
|
-
const a = this.insertTreeNode(
|
|
811
|
+
const a = this.insertTreeNode(t[s].children, e, o, n);
|
|
802
812
|
if (a)
|
|
803
813
|
return a;
|
|
804
814
|
}
|
|
805
815
|
},
|
|
806
|
-
deleteTreeNode(
|
|
807
|
-
if (
|
|
808
|
-
for (let o = 0; o <
|
|
809
|
-
if (
|
|
810
|
-
const
|
|
811
|
-
return
|
|
816
|
+
deleteTreeNode(t, e) {
|
|
817
|
+
if (t)
|
|
818
|
+
for (let o = 0; o < t.length; o++) {
|
|
819
|
+
if (t[o].id === e) {
|
|
820
|
+
const s = t[o];
|
|
821
|
+
return t.splice(o, 1), s;
|
|
812
822
|
}
|
|
813
|
-
const
|
|
814
|
-
if (
|
|
815
|
-
return
|
|
823
|
+
const n = v.actions.deleteTreeNode(t[o].children, e);
|
|
824
|
+
if (n)
|
|
825
|
+
return n;
|
|
816
826
|
}
|
|
817
827
|
}
|
|
818
828
|
}
|
|
819
|
-
},
|
|
829
|
+
}, Lo = {
|
|
820
830
|
__name: "DDrop",
|
|
821
831
|
props: {
|
|
822
832
|
tag: { type: String, default: "div" }
|
|
823
833
|
},
|
|
824
834
|
emits: Object.keys(X),
|
|
825
|
-
setup(
|
|
826
|
-
let
|
|
827
|
-
const
|
|
828
|
-
|
|
835
|
+
setup(t, { expose: e, emit: o }) {
|
|
836
|
+
let n = Oe({});
|
|
837
|
+
const s = T("false"), a = T(null), l = /* @__PURE__ */ new Set(), r = h(() => s.value && n), i = (u, g) => {
|
|
838
|
+
n = Te.data, o(u, g, n), u === X.dragenter && (l.size || g.target === a.value) && l.add(g.target), u === X.dragleave && l.delete(g.target), u === X.drop && l.clear(), s.value = !!l.size;
|
|
829
839
|
};
|
|
830
|
-
return
|
|
840
|
+
return e({
|
|
831
841
|
elementSize: () => _t(a)
|
|
832
|
-
}), (u,
|
|
842
|
+
}), (u, g) => (d(), b(U(t.tag), {
|
|
833
843
|
ref_key: "el",
|
|
834
844
|
ref: a,
|
|
835
|
-
onDragenter:
|
|
836
|
-
onDragleave:
|
|
837
|
-
onDragover:
|
|
838
|
-
onDrop:
|
|
845
|
+
onDragenter: g[0] || (g[0] = (x) => i(E(X).dragenter, x)),
|
|
846
|
+
onDragleave: g[1] || (g[1] = (x) => i(E(X).dragleave, x)),
|
|
847
|
+
onDragover: g[2] || (g[2] = j((x) => i(E(X).dragover, x), ["prevent"])),
|
|
848
|
+
onDrop: g[3] || (g[3] = j((x) => i(E(X).drop, x), ["prevent"]))
|
|
839
849
|
}, {
|
|
840
|
-
default:
|
|
841
|
-
|
|
850
|
+
default: B(() => [
|
|
851
|
+
L(u.$slots, "default", { transferData: r.value })
|
|
842
852
|
]),
|
|
843
853
|
_: 3
|
|
844
854
|
}, 544));
|
|
@@ -861,43 +871,43 @@ const U = Lo(), v = {
|
|
|
861
871
|
}
|
|
862
872
|
},
|
|
863
873
|
emits: ["select"],
|
|
864
|
-
setup(
|
|
865
|
-
const
|
|
866
|
-
let
|
|
874
|
+
setup(t, { expose: e, emit: o }) {
|
|
875
|
+
const n = t;
|
|
876
|
+
let s = T(null), a = T(!1);
|
|
867
877
|
const l = () => {
|
|
868
|
-
|
|
878
|
+
q.emit("menu-show-request"), a.value = !0;
|
|
869
879
|
}, r = () => {
|
|
870
880
|
var x;
|
|
871
|
-
(x =
|
|
881
|
+
(x = s.value) == null || x.collapseAll(), a.value = !1;
|
|
872
882
|
}, i = () => a.value;
|
|
873
|
-
|
|
883
|
+
q.on("menu-show-request", () => {
|
|
874
884
|
r();
|
|
875
|
-
}),
|
|
885
|
+
}), e({
|
|
876
886
|
show: l,
|
|
877
887
|
hide: r,
|
|
878
|
-
elementSize: () =>
|
|
888
|
+
elementSize: () => s.value.elementSize(),
|
|
879
889
|
isShowed: i,
|
|
880
|
-
itemsCount: () =>
|
|
890
|
+
itemsCount: () => s.value.itemsCount()
|
|
881
891
|
});
|
|
882
|
-
const
|
|
892
|
+
const g = (x) => {
|
|
883
893
|
o("select", x), x.model.children || r();
|
|
884
894
|
};
|
|
885
|
-
return (x,
|
|
886
|
-
const
|
|
895
|
+
return (x, C) => {
|
|
896
|
+
const R = Re("click-outside");
|
|
887
897
|
return d(), b(mt, { to: "body" }, [
|
|
888
|
-
|
|
898
|
+
E(a) ? oe((d(), b(xt, {
|
|
889
899
|
key: 0,
|
|
890
900
|
ref_key: "treeRef",
|
|
891
|
-
ref:
|
|
892
|
-
items:
|
|
893
|
-
"no-select":
|
|
894
|
-
class: D(
|
|
895
|
-
style:
|
|
896
|
-
onSelect:
|
|
897
|
-
"render-title":
|
|
898
|
-
"before-item":
|
|
901
|
+
ref: s,
|
|
902
|
+
items: n.items,
|
|
903
|
+
"no-select": n.noSelect,
|
|
904
|
+
class: D(n.class),
|
|
905
|
+
style: z(n.style),
|
|
906
|
+
onSelect: g,
|
|
907
|
+
"render-title": n.renderItemTitle,
|
|
908
|
+
"before-item": n.beforeItem
|
|
899
909
|
}, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
|
|
900
|
-
[
|
|
910
|
+
[R, () => r()]
|
|
901
911
|
]) : k("", !0)
|
|
902
912
|
]);
|
|
903
913
|
};
|
|
@@ -910,30 +920,30 @@ const U = Lo(), v = {
|
|
|
910
920
|
beforeItem: Function
|
|
911
921
|
},
|
|
912
922
|
emits: ["select"],
|
|
913
|
-
setup(
|
|
914
|
-
const
|
|
923
|
+
setup(t, { expose: e, emit: o }) {
|
|
924
|
+
const n = t, s = T(null), a = T(0), l = T(0), r = h(() => ({
|
|
915
925
|
left: a.value + "px",
|
|
916
926
|
top: l.value + "px"
|
|
917
927
|
})), i = (u) => {
|
|
918
|
-
|
|
919
|
-
const
|
|
920
|
-
a.value = x - u.pageX <
|
|
928
|
+
s.value.show(), ht(() => {
|
|
929
|
+
const g = s.value.elementSize(), x = window.innerWidth, C = window.innerHeight;
|
|
930
|
+
a.value = x - u.pageX < g.width ? u.pageX - g.width : u.pageX, l.value = C - u.pageY < g.height ? u.pageY - g.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
|
|
921
931
|
});
|
|
922
932
|
}, c = (u) => {
|
|
923
933
|
o("select", u);
|
|
924
934
|
};
|
|
925
|
-
return
|
|
935
|
+
return e({
|
|
926
936
|
show: i
|
|
927
|
-
}), (u,
|
|
937
|
+
}), (u, g) => (d(), b(bt, {
|
|
928
938
|
ref_key: "dMenuRef",
|
|
929
|
-
ref:
|
|
939
|
+
ref: s,
|
|
930
940
|
onSelect: c,
|
|
931
|
-
items:
|
|
932
|
-
style:
|
|
941
|
+
items: n.items,
|
|
942
|
+
style: z(r.value),
|
|
933
943
|
class: "context-menu",
|
|
934
944
|
"no-select": !0,
|
|
935
|
-
"render-item-title":
|
|
936
|
-
"before-item":
|
|
945
|
+
"render-item-title": n.renderItemTitle,
|
|
946
|
+
"before-item": n.beforeItem
|
|
937
947
|
}, null, 8, ["items", "style", "render-item-title", "before-item"]));
|
|
938
948
|
}
|
|
939
949
|
}, xt = {
|
|
@@ -957,6 +967,11 @@ const U = Lo(), v = {
|
|
|
957
967
|
type: Boolean,
|
|
958
968
|
default: !0
|
|
959
969
|
},
|
|
970
|
+
doubleClickExpand: {
|
|
971
|
+
// открывать ноды по двойному клику
|
|
972
|
+
type: Boolean,
|
|
973
|
+
default: !1
|
|
974
|
+
},
|
|
960
975
|
renderTitle: Function,
|
|
961
976
|
// генерация заголовка (постобработка)
|
|
962
977
|
beforeItem: Function,
|
|
@@ -977,83 +992,93 @@ const U = Lo(), v = {
|
|
|
977
992
|
default: () => !0
|
|
978
993
|
}
|
|
979
994
|
},
|
|
980
|
-
emits: ["select", "collapse", "expand", "move", "over", "drop"],
|
|
981
|
-
setup(
|
|
982
|
-
const
|
|
983
|
-
v.actions.initTreeStore(r,
|
|
984
|
-
const i = (
|
|
985
|
-
console.log(
|
|
995
|
+
emits: ["select", "collapse", "expand", "move", "over", "drop", "doubleclick", "foldericonclick"],
|
|
996
|
+
setup(t, { expose: e, emit: o }) {
|
|
997
|
+
const n = t, s = T(null), a = T(!1), l = T(null), r = gt().uid;
|
|
998
|
+
v.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem, n.dropInside);
|
|
999
|
+
const i = (p, y) => {
|
|
1000
|
+
console.log(p, y);
|
|
986
1001
|
};
|
|
987
|
-
|
|
988
|
-
o("expand",
|
|
989
|
-
}),
|
|
990
|
-
o("collapse",
|
|
991
|
-
}),
|
|
992
|
-
o("move",
|
|
1002
|
+
q.on(`expand-${r}`, (p) => {
|
|
1003
|
+
o("expand", p);
|
|
1004
|
+
}), q.on(`collapse-${r}`, (p) => {
|
|
1005
|
+
o("collapse", p);
|
|
1006
|
+
}), q.on(`move-${r}`, (p) => {
|
|
1007
|
+
o("move", p);
|
|
993
1008
|
});
|
|
994
|
-
const c =
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}, M = (
|
|
1011
|
-
let
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1009
|
+
const c = h(() => n.search ? v.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (p) => {
|
|
1010
|
+
for (let y = 0; y < n.items.length; y++)
|
|
1011
|
+
n.items[y].id === p && v.actions.toggleItem(r, n.items[y]), n.items[y].expanded = !0;
|
|
1012
|
+
}, g = (p = null) => {
|
|
1013
|
+
v.mutations.setItemSelect(r, p.model), n.doubleClickExpand || v.actions.toggleItem(r, p.model), o("select", p);
|
|
1014
|
+
}, x = (p = null) => {
|
|
1015
|
+
n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("doubleclick", p);
|
|
1016
|
+
}, C = (p = null) => {
|
|
1017
|
+
n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("foldericonclick", p);
|
|
1018
|
+
}, R = (p = null) => {
|
|
1019
|
+
o("over", p);
|
|
1020
|
+
}, $ = (p = null) => {
|
|
1021
|
+
o("drop", p);
|
|
1022
|
+
}, H = () => s.value.elementSize(), Y = () => {
|
|
1023
|
+
for (let p = 0; p < n.items.length; p++)
|
|
1024
|
+
n.items[p].expanded = !0;
|
|
1025
|
+
}, M = () => {
|
|
1026
|
+
for (let p = 0; p < n.items.length; p++)
|
|
1027
|
+
n.items[p].expanded = !1;
|
|
1028
|
+
}, I = () => r, F = (p) => v.actions.deepSearch(n.items, p), S = (p) => {
|
|
1029
|
+
F(p) && v.mutations.setItemSelect(r, F(p));
|
|
1030
|
+
}, W = (p) => {
|
|
1031
|
+
n.contextClick({ e: p.e, model: p.model, target: l.value });
|
|
1032
|
+
}, N = (p) => n.contextBeforeClick({ model: p, target: l.value }), w = h(() => n.context), V = (p) => (w.value && (l.value = p.model, a.value.show(p.e)), !1), P = () => f(c.value), f = (p) => {
|
|
1033
|
+
let y = 0;
|
|
1034
|
+
for (let A = 0; A < p.length; A++)
|
|
1035
|
+
y += v.actions.beforeItem(r, p[A]) ? 1 : 0, p[A].children && p[A].children.length > 0 && (y += f(p[A].children));
|
|
1036
|
+
return y;
|
|
1015
1037
|
};
|
|
1016
|
-
return
|
|
1017
|
-
elementSize:
|
|
1018
|
-
expandAll:
|
|
1019
|
-
collapseAll:
|
|
1020
|
-
getId:
|
|
1021
|
-
getNode:
|
|
1022
|
-
selectNode:
|
|
1023
|
-
itemsCount:
|
|
1024
|
-
|
|
1038
|
+
return e({
|
|
1039
|
+
elementSize: H,
|
|
1040
|
+
expandAll: Y,
|
|
1041
|
+
collapseAll: M,
|
|
1042
|
+
getId: I,
|
|
1043
|
+
getNode: F,
|
|
1044
|
+
selectNode: S,
|
|
1045
|
+
itemsCount: P,
|
|
1046
|
+
expandItem: u
|
|
1047
|
+
}), (p, y) => (d(), b(Lo, {
|
|
1025
1048
|
ref_key: "treeRef",
|
|
1026
|
-
ref:
|
|
1049
|
+
ref: s,
|
|
1027
1050
|
class: "tree",
|
|
1028
1051
|
tag: "ul",
|
|
1029
1052
|
onDrop: j(i, ["stop"])
|
|
1030
1053
|
}, {
|
|
1031
|
-
default:
|
|
1032
|
-
(d(!0),
|
|
1033
|
-
key:
|
|
1034
|
-
model:
|
|
1035
|
-
treeId:
|
|
1036
|
-
items:
|
|
1037
|
-
search:
|
|
1038
|
-
onNodeclick:
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1054
|
+
default: B(() => [
|
|
1055
|
+
(d(!0), m(le, null, ge(c.value, (A) => (d(), b(To, {
|
|
1056
|
+
key: A.id,
|
|
1057
|
+
model: A,
|
|
1058
|
+
treeId: E(r),
|
|
1059
|
+
items: n.items,
|
|
1060
|
+
search: n.search,
|
|
1061
|
+
onNodeclick: g,
|
|
1062
|
+
onNodedoubleclick: x,
|
|
1063
|
+
onNodedragover: R,
|
|
1064
|
+
onNodedrop: $,
|
|
1065
|
+
onNodecontext: V,
|
|
1066
|
+
onNodefoldericonclick: C
|
|
1042
1067
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128)),
|
|
1043
|
-
|
|
1068
|
+
w.value ? (d(), b(Io, {
|
|
1044
1069
|
key: 0,
|
|
1045
1070
|
ref_key: "contextTreeRef",
|
|
1046
1071
|
ref: a,
|
|
1047
|
-
items:
|
|
1048
|
-
onSelect:
|
|
1049
|
-
"before-item":
|
|
1072
|
+
items: w.value,
|
|
1073
|
+
onSelect: W,
|
|
1074
|
+
"before-item": N
|
|
1050
1075
|
}, null, 8, ["items"])) : k("", !0)
|
|
1051
1076
|
]),
|
|
1052
1077
|
_: 1
|
|
1053
1078
|
}, 8, ["onDrop"]));
|
|
1054
1079
|
}
|
|
1055
1080
|
};
|
|
1056
|
-
const
|
|
1081
|
+
const Eo = {
|
|
1057
1082
|
__name: "DAccordion",
|
|
1058
1083
|
props: {
|
|
1059
1084
|
items: Array,
|
|
@@ -1065,20 +1090,20 @@ const Bo = {
|
|
|
1065
1090
|
}
|
|
1066
1091
|
},
|
|
1067
1092
|
emits: ["move"],
|
|
1068
|
-
setup(
|
|
1069
|
-
const o =
|
|
1070
|
-
|
|
1093
|
+
setup(t, { emit: e }) {
|
|
1094
|
+
const o = t, n = (s) => {
|
|
1095
|
+
e("move", s);
|
|
1071
1096
|
};
|
|
1072
|
-
return (
|
|
1097
|
+
return (s, a) => (d(), b(xt, {
|
|
1073
1098
|
class: "accordion",
|
|
1074
1099
|
items: o.items,
|
|
1075
1100
|
"no-select": o.noSelect,
|
|
1076
1101
|
"render-title": o.renderTitle,
|
|
1077
1102
|
"drop-inside": !1,
|
|
1078
|
-
onMove:
|
|
1103
|
+
onMove: n
|
|
1079
1104
|
}, null, 8, ["items", "no-select", "render-title"]));
|
|
1080
1105
|
}
|
|
1081
|
-
},
|
|
1106
|
+
}, Bs = /* @__PURE__ */ ne(Eo, [["__scopeId", "data-v-a724c500"]]), Bo = {
|
|
1082
1107
|
__name: "DLayoutHeader",
|
|
1083
1108
|
props: {
|
|
1084
1109
|
fixed: {
|
|
@@ -1111,16 +1136,16 @@ const Bo = {
|
|
|
1111
1136
|
},
|
|
1112
1137
|
useMinWidthLayout: Boolean
|
|
1113
1138
|
},
|
|
1114
|
-
setup(
|
|
1115
|
-
const
|
|
1116
|
-
const { fixed:
|
|
1117
|
-
return `position:${u};z-index:${
|
|
1139
|
+
setup(t) {
|
|
1140
|
+
const e = t, o = h(() => {
|
|
1141
|
+
const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = e, u = n ? "fixed" : "static", g = e.useMinWidthLayout ? `min-width:${a}px;` : "";
|
|
1142
|
+
return `position:${u};z-index:${s};${g}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1118
1143
|
});
|
|
1119
|
-
return (
|
|
1144
|
+
return (n, s) => (d(), m("header", {
|
|
1120
1145
|
class: "d-layout-header",
|
|
1121
|
-
style:
|
|
1146
|
+
style: z(o.value)
|
|
1122
1147
|
}, [
|
|
1123
|
-
|
|
1148
|
+
L(n.$slots, "default")
|
|
1124
1149
|
], 4));
|
|
1125
1150
|
}
|
|
1126
1151
|
}, Mo = {
|
|
@@ -1160,16 +1185,16 @@ const Bo = {
|
|
|
1160
1185
|
},
|
|
1161
1186
|
useMinWidthLayout: Boolean
|
|
1162
1187
|
},
|
|
1163
|
-
setup(
|
|
1164
|
-
const
|
|
1165
|
-
const { fixed:
|
|
1166
|
-
return `position:${
|
|
1188
|
+
setup(t) {
|
|
1189
|
+
const e = t, o = h(() => {
|
|
1190
|
+
const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = e, g = n ? "fixed" : "static", x = e.useMinWidthLayout ? `min-width: ${l}px;` : "";
|
|
1191
|
+
return `position:${g};top:${s}px;z-index:${a};${x}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
|
|
1167
1192
|
});
|
|
1168
|
-
return (
|
|
1193
|
+
return (n, s) => (d(), m("div", {
|
|
1169
1194
|
class: "d-layout-tab",
|
|
1170
|
-
style:
|
|
1195
|
+
style: z(o.value)
|
|
1171
1196
|
}, [
|
|
1172
|
-
|
|
1197
|
+
L(n.$slots, "default")
|
|
1173
1198
|
], 4));
|
|
1174
1199
|
}
|
|
1175
1200
|
}, No = {
|
|
@@ -1205,16 +1230,16 @@ const Bo = {
|
|
|
1205
1230
|
},
|
|
1206
1231
|
useMinWidthLayout: Boolean
|
|
1207
1232
|
},
|
|
1208
|
-
setup(
|
|
1209
|
-
const
|
|
1210
|
-
const { fixed:
|
|
1211
|
-
return `position:${u};z-index:${
|
|
1233
|
+
setup(t) {
|
|
1234
|
+
const e = t, o = h(() => {
|
|
1235
|
+
const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = e, u = n ? "fixed" : "static", g = e.useMinWidthLayout ? `min-width:${a}px;` : "";
|
|
1236
|
+
return `position:${u};z-index:${s};${g}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1212
1237
|
});
|
|
1213
|
-
return (
|
|
1238
|
+
return (n, s) => (d(), m("footer", {
|
|
1214
1239
|
class: "d-layout-footer",
|
|
1215
|
-
style:
|
|
1240
|
+
style: z(o.value)
|
|
1216
1241
|
}, [
|
|
1217
|
-
|
|
1242
|
+
L(n.$slots, "default")
|
|
1218
1243
|
], 4));
|
|
1219
1244
|
}
|
|
1220
1245
|
}, Ro = {
|
|
@@ -1245,16 +1270,16 @@ const Bo = {
|
|
|
1245
1270
|
default: !1
|
|
1246
1271
|
}
|
|
1247
1272
|
},
|
|
1248
|
-
setup(
|
|
1249
|
-
const
|
|
1250
|
-
const { zIndex:
|
|
1251
|
-
return `z-index:${
|
|
1273
|
+
setup(t) {
|
|
1274
|
+
const e = t, o = h(() => {
|
|
1275
|
+
const { zIndex: n, width: s, paddingTop: a, transitionDuration: l, transitionTimingFunction: r } = e;
|
|
1276
|
+
return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${r};`;
|
|
1252
1277
|
});
|
|
1253
|
-
return (
|
|
1278
|
+
return (n, s) => (d(), m("aside", {
|
|
1254
1279
|
class: "d-layout-sidebar",
|
|
1255
|
-
style:
|
|
1280
|
+
style: z(o.value)
|
|
1256
1281
|
}, [
|
|
1257
|
-
|
|
1282
|
+
L(n.$slots, "default")
|
|
1258
1283
|
], 4));
|
|
1259
1284
|
}
|
|
1260
1285
|
}, Oo = {
|
|
@@ -1282,29 +1307,29 @@ const Bo = {
|
|
|
1282
1307
|
default: "ease-in-out"
|
|
1283
1308
|
}
|
|
1284
1309
|
},
|
|
1285
|
-
setup(
|
|
1286
|
-
const
|
|
1287
|
-
const { paddingTop:
|
|
1288
|
-
return `padding-top:${
|
|
1310
|
+
setup(t) {
|
|
1311
|
+
const e = t, o = h(() => {
|
|
1312
|
+
const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: l, transitionTimingFunction: r } = e, i = `overflow:${e.overflowHidden ? "hidden" : "visible"};`;
|
|
1313
|
+
return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
|
|
1289
1314
|
});
|
|
1290
|
-
return (
|
|
1291
|
-
style:
|
|
1315
|
+
return (n, s) => (d(), m("main", {
|
|
1316
|
+
style: z(o.value),
|
|
1292
1317
|
class: "d-layout-content"
|
|
1293
1318
|
}, [
|
|
1294
|
-
|
|
1319
|
+
L(n.$slots, "default")
|
|
1295
1320
|
], 4));
|
|
1296
1321
|
}
|
|
1297
1322
|
};
|
|
1298
|
-
function Ao(
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
function
|
|
1302
|
-
|
|
1323
|
+
function Ao(t) {
|
|
1324
|
+
const e = T(0), o = h(() => `transform: translateX(${-e.value}px);`);
|
|
1325
|
+
let n = !1;
|
|
1326
|
+
function s(u) {
|
|
1327
|
+
e.value = u;
|
|
1303
1328
|
}
|
|
1304
1329
|
function a() {
|
|
1305
1330
|
var u;
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1331
|
+
const g = ((u = document.scrollingElement) === null || u === void 0 ? void 0 : u.scrollLeft) || 0;
|
|
1332
|
+
s(g);
|
|
1308
1333
|
}
|
|
1309
1334
|
function l() {
|
|
1310
1335
|
a();
|
|
@@ -1313,18 +1338,18 @@ function Ao(e) {
|
|
|
1313
1338
|
document.addEventListener("scroll", a);
|
|
1314
1339
|
}
|
|
1315
1340
|
function i() {
|
|
1316
|
-
|
|
1341
|
+
n && document.removeEventListener("scroll", a);
|
|
1317
1342
|
}
|
|
1318
1343
|
function c() {
|
|
1319
|
-
l(), r(),
|
|
1344
|
+
l(), r(), n = !0;
|
|
1320
1345
|
}
|
|
1321
|
-
return vt(
|
|
1346
|
+
return vt(t, (u) => {
|
|
1322
1347
|
u ? c() : i();
|
|
1323
|
-
}, { immediate: !0 }),
|
|
1348
|
+
}, { immediate: !0 }), Et(() => {
|
|
1324
1349
|
i();
|
|
1325
1350
|
}), o;
|
|
1326
1351
|
}
|
|
1327
|
-
const Ho = 1001, Vo = 999, zo = 998,
|
|
1352
|
+
const Ho = 1001, Vo = 999, zo = 998, Ms = {
|
|
1328
1353
|
__name: "DLayoutAdmin",
|
|
1329
1354
|
props: {
|
|
1330
1355
|
mode: {
|
|
@@ -1414,104 +1439,104 @@ const Ho = 1001, Vo = 999, zo = 998, Mn = {
|
|
|
1414
1439
|
}
|
|
1415
1440
|
},
|
|
1416
1441
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1417
|
-
setup(
|
|
1418
|
-
const o =
|
|
1419
|
-
const { transitionDuration:
|
|
1442
|
+
setup(t, { emit: e }) {
|
|
1443
|
+
const o = t, n = h(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), s = h(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ao(s), l = h(() => o.fixedHeaderAndTab ? a.value : ""), r = h(() => o.fixedFooter ? a.value : ""), i = h(() => {
|
|
1444
|
+
const { transitionDuration: S, transitionTimingFunction: W } = o;
|
|
1420
1445
|
return {
|
|
1421
|
-
transitionDuration:
|
|
1422
|
-
transitionTimingFunction:
|
|
1446
|
+
transitionDuration: S,
|
|
1447
|
+
transitionTimingFunction: W
|
|
1423
1448
|
};
|
|
1424
|
-
}), c =
|
|
1449
|
+
}), c = h(() => o.mode === "vertical"), u = h(() => o.isMobile || c.value ? 1003 : 1e3), g = h({
|
|
1425
1450
|
get() {
|
|
1426
1451
|
return o.sidebarCollapse;
|
|
1427
1452
|
},
|
|
1428
|
-
set(
|
|
1429
|
-
|
|
1453
|
+
set(S) {
|
|
1454
|
+
e("update:sidebar-collapse", S);
|
|
1430
1455
|
}
|
|
1431
1456
|
});
|
|
1432
1457
|
function x() {
|
|
1433
|
-
|
|
1458
|
+
e("sidebar-mask-click");
|
|
1434
1459
|
}
|
|
1435
|
-
const
|
|
1436
|
-
const { transitionDuration:
|
|
1437
|
-
return `background-color:${o.maskBg};transition-duration:${
|
|
1438
|
-
}), $ =
|
|
1439
|
-
const { sidebarWidth:
|
|
1440
|
-
return o.sidebarVisible ?
|
|
1441
|
-
}), H =
|
|
1460
|
+
const C = h(() => o.isMobile && !g.value), R = h(() => {
|
|
1461
|
+
const { transitionDuration: S, transitionTimingFunction: W } = o;
|
|
1462
|
+
return `background-color:${o.maskBg};transition-duration:${S}ms;transition-timing-function:${W};`;
|
|
1463
|
+
}), $ = h(() => {
|
|
1464
|
+
const { sidebarWidth: S, sidebarCollapsedWidth: W } = o, N = o.isMobile ? 0 : W, w = g.value ? N : S;
|
|
1465
|
+
return o.sidebarVisible ? w : 0;
|
|
1466
|
+
}), H = h(() => o.isMobile ? 0 : $.value), Y = h(() => c.value ? H.value : 0), M = h(
|
|
1442
1467
|
() => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
|
|
1443
|
-
), I =
|
|
1444
|
-
let
|
|
1445
|
-
return o.fixedHeaderAndTab && (o.headerVisible && (
|
|
1446
|
-
}),
|
|
1447
|
-
return (
|
|
1468
|
+
), I = h(() => {
|
|
1469
|
+
let S = 0;
|
|
1470
|
+
return o.fixedHeaderAndTab && (o.headerVisible && (S += o.headerHeight), o.tabVisible && (S += o.tabHeight)), S;
|
|
1471
|
+
}), F = h(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
|
|
1472
|
+
return (S, W) => (d(), m("div", {
|
|
1448
1473
|
class: "d-layout",
|
|
1449
|
-
style:
|
|
1474
|
+
style: z(n.value)
|
|
1450
1475
|
}, [
|
|
1451
|
-
|
|
1452
|
-
fixed:
|
|
1476
|
+
t.headerVisible ? (d(), b(Bo, ue({ key: 0 }, i.value, {
|
|
1477
|
+
fixed: t.fixedHeaderAndTab,
|
|
1453
1478
|
"z-index": Ho,
|
|
1454
|
-
"min-width":
|
|
1455
|
-
height:
|
|
1456
|
-
"padding-left":
|
|
1479
|
+
"min-width": t.minWidth,
|
|
1480
|
+
height: t.headerHeight,
|
|
1481
|
+
"padding-left": Y.value,
|
|
1457
1482
|
style: l.value
|
|
1458
1483
|
}), {
|
|
1459
|
-
default:
|
|
1460
|
-
|
|
1484
|
+
default: B(() => [
|
|
1485
|
+
L(S.$slots, "header")
|
|
1461
1486
|
]),
|
|
1462
1487
|
_: 3
|
|
1463
1488
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
|
|
1464
|
-
|
|
1465
|
-
fixed:
|
|
1489
|
+
t.tabVisible ? (d(), b(Mo, ue({ key: 1 }, i.value, {
|
|
1490
|
+
fixed: t.fixedHeaderAndTab,
|
|
1466
1491
|
"z-index": Vo,
|
|
1467
|
-
"min-width":
|
|
1468
|
-
top:
|
|
1469
|
-
height:
|
|
1492
|
+
"min-width": t.minWidth,
|
|
1493
|
+
top: t.headerHeight,
|
|
1494
|
+
height: t.tabHeight,
|
|
1470
1495
|
"padding-left": H.value,
|
|
1471
1496
|
style: l.value
|
|
1472
1497
|
}), {
|
|
1473
|
-
default:
|
|
1474
|
-
|
|
1498
|
+
default: B(() => [
|
|
1499
|
+
L(S.$slots, "tab")
|
|
1475
1500
|
]),
|
|
1476
1501
|
_: 3
|
|
1477
1502
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
|
|
1478
|
-
|
|
1503
|
+
t.sidebarVisible ? (d(), b(Ro, ue({ key: 2 }, i.value, {
|
|
1479
1504
|
"z-index": u.value,
|
|
1480
1505
|
width: $.value,
|
|
1481
|
-
"padding-top":
|
|
1506
|
+
"padding-top": M.value
|
|
1482
1507
|
}), {
|
|
1483
|
-
default:
|
|
1484
|
-
|
|
1508
|
+
default: B(() => [
|
|
1509
|
+
L(S.$slots, "sidebar")
|
|
1485
1510
|
]),
|
|
1486
1511
|
_: 3
|
|
1487
1512
|
}, 16, ["z-index", "width", "padding-top"])) : k("", !0),
|
|
1488
|
-
|
|
1513
|
+
C.value ? (d(), m("div", {
|
|
1489
1514
|
key: 3,
|
|
1490
1515
|
class: "d-layout-sidebar-mask",
|
|
1491
|
-
style:
|
|
1516
|
+
style: z(R.value),
|
|
1492
1517
|
onClick: x
|
|
1493
1518
|
}, null, 4)) : k("", !0),
|
|
1494
|
-
|
|
1519
|
+
J(Oo, ue(i.value, {
|
|
1495
1520
|
"padding-top": I.value,
|
|
1496
|
-
"padding-bottom":
|
|
1521
|
+
"padding-bottom": F.value,
|
|
1497
1522
|
"padding-left": H.value,
|
|
1498
|
-
"overflow-hidden":
|
|
1523
|
+
"overflow-hidden": t.addMainOverflowHidden
|
|
1499
1524
|
}), {
|
|
1500
|
-
default:
|
|
1501
|
-
|
|
1525
|
+
default: B(() => [
|
|
1526
|
+
L(S.$slots, "default")
|
|
1502
1527
|
]),
|
|
1503
1528
|
_: 3
|
|
1504
1529
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
1505
|
-
|
|
1506
|
-
fixed:
|
|
1530
|
+
t.footerVisible ? (d(), b(No, ue({ key: 4 }, i.value, {
|
|
1531
|
+
fixed: t.fixedFooter,
|
|
1507
1532
|
"z-index": zo,
|
|
1508
|
-
"min-width":
|
|
1509
|
-
height:
|
|
1533
|
+
"min-width": t.minWidth,
|
|
1534
|
+
height: t.footerHeight,
|
|
1510
1535
|
"padding-left": H.value,
|
|
1511
1536
|
style: r.value
|
|
1512
1537
|
}), {
|
|
1513
|
-
default:
|
|
1514
|
-
|
|
1538
|
+
default: B(() => [
|
|
1539
|
+
L(S.$slots, "footer")
|
|
1515
1540
|
]),
|
|
1516
1541
|
_: 3
|
|
1517
1542
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
|
|
@@ -1527,8 +1552,8 @@ const Ho = 1001, Vo = 999, zo = 998, Mn = {
|
|
|
1527
1552
|
}
|
|
1528
1553
|
},
|
|
1529
1554
|
mutations: {
|
|
1530
|
-
setTheme(
|
|
1531
|
-
pe.state.theme =
|
|
1555
|
+
setTheme(t) {
|
|
1556
|
+
pe.state.theme = t, document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(t);
|
|
1532
1557
|
}
|
|
1533
1558
|
},
|
|
1534
1559
|
actions: {
|
|
@@ -1536,7 +1561,7 @@ const Ho = 1001, Vo = 999, zo = 998, Mn = {
|
|
|
1536
1561
|
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);
|
|
1537
1562
|
}
|
|
1538
1563
|
}
|
|
1539
|
-
},
|
|
1564
|
+
}, Ns = {
|
|
1540
1565
|
__name: "DConfigProvider",
|
|
1541
1566
|
props: {
|
|
1542
1567
|
theme: {
|
|
@@ -1544,12 +1569,12 @@ const Ho = 1001, Vo = 999, zo = 998, Mn = {
|
|
|
1544
1569
|
default: "dark"
|
|
1545
1570
|
}
|
|
1546
1571
|
},
|
|
1547
|
-
setup(
|
|
1548
|
-
const
|
|
1549
|
-
return pe.mutations.setTheme(
|
|
1572
|
+
setup(t) {
|
|
1573
|
+
const e = t;
|
|
1574
|
+
return pe.mutations.setTheme(e.theme), (o, n) => L(o.$slots, "default");
|
|
1550
1575
|
}
|
|
1551
1576
|
};
|
|
1552
|
-
const
|
|
1577
|
+
const Rs = {
|
|
1553
1578
|
__name: "DScrollProvider",
|
|
1554
1579
|
props: {
|
|
1555
1580
|
xHide: {
|
|
@@ -1561,19 +1586,19 @@ const Rn = {
|
|
|
1561
1586
|
default: !1
|
|
1562
1587
|
}
|
|
1563
1588
|
},
|
|
1564
|
-
setup(
|
|
1565
|
-
const
|
|
1589
|
+
setup(t) {
|
|
1590
|
+
const e = t;
|
|
1566
1591
|
Ae((a) => ({
|
|
1567
1592
|
e35a6f9a: o.value,
|
|
1568
|
-
e35a6f98:
|
|
1593
|
+
e35a6f98: n.value
|
|
1569
1594
|
}));
|
|
1570
|
-
const o =
|
|
1595
|
+
const o = h(() => e.xHide ? "hidden" : "visible"), n = h(() => e.yHide ? "hidden" : "visible"), s = (a) => {
|
|
1571
1596
|
document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
|
|
1572
1597
|
};
|
|
1573
1598
|
return me(() => {
|
|
1574
|
-
|
|
1575
|
-
}), (a, l) => (d(),
|
|
1576
|
-
|
|
1599
|
+
s("colored-scroller");
|
|
1600
|
+
}), (a, l) => (d(), m("div", null, [
|
|
1601
|
+
L(a.$slots, "default")
|
|
1577
1602
|
]));
|
|
1578
1603
|
}
|
|
1579
1604
|
};
|
|
@@ -1593,20 +1618,20 @@ const Fo = {
|
|
|
1593
1618
|
default: !1
|
|
1594
1619
|
}
|
|
1595
1620
|
},
|
|
1596
|
-
setup(
|
|
1597
|
-
const
|
|
1598
|
-
Ae((
|
|
1621
|
+
setup(t) {
|
|
1622
|
+
const e = t;
|
|
1623
|
+
Ae((s) => ({
|
|
1599
1624
|
c07fa29a: o.value,
|
|
1600
|
-
c07fa298:
|
|
1625
|
+
c07fa298: n.value
|
|
1601
1626
|
}));
|
|
1602
|
-
const o =
|
|
1603
|
-
return (
|
|
1604
|
-
class: D(
|
|
1627
|
+
const o = h(() => e.xHide ? "hidden" : "visible"), n = h(() => e.yHide ? "hidden" : "visible");
|
|
1628
|
+
return (s, a) => (d(), m("div", {
|
|
1629
|
+
class: D(e.autoHide ? "d-scroll-hide" : "d-scroll")
|
|
1605
1630
|
}, [
|
|
1606
|
-
|
|
1631
|
+
L(s.$slots, "default", {}, void 0, !0)
|
|
1607
1632
|
], 2));
|
|
1608
1633
|
}
|
|
1609
|
-
},
|
|
1634
|
+
}, Os = /* @__PURE__ */ ne(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" }, kt = {
|
|
1610
1635
|
__name: "DModal",
|
|
1611
1636
|
props: {
|
|
1612
1637
|
show: Boolean,
|
|
@@ -1616,43 +1641,43 @@ const Fo = {
|
|
|
1616
1641
|
// максимальная ширина диалога 500px, 100% и т.п.
|
|
1617
1642
|
},
|
|
1618
1643
|
emits: ["open", "close"],
|
|
1619
|
-
setup(
|
|
1620
|
-
const
|
|
1621
|
-
a.value =
|
|
1644
|
+
setup(t, { expose: e, emit: o }) {
|
|
1645
|
+
const n = t, s = T(null), a = T(!1);
|
|
1646
|
+
a.value = n == null ? void 0 : n.show;
|
|
1622
1647
|
const l = () => {
|
|
1623
|
-
a.value = !0, o("open",
|
|
1648
|
+
a.value = !0, o("open", s);
|
|
1624
1649
|
}, r = () => {
|
|
1625
|
-
a.value = !1, o("close",
|
|
1650
|
+
a.value = !1, o("close", s);
|
|
1626
1651
|
};
|
|
1627
|
-
return
|
|
1652
|
+
return e({
|
|
1628
1653
|
show: l,
|
|
1629
1654
|
hide: r
|
|
1630
1655
|
}), (i, c) => {
|
|
1631
1656
|
const u = Re("keydown");
|
|
1632
1657
|
return d(), b(mt, { to: "body" }, [
|
|
1633
|
-
|
|
1634
|
-
default:
|
|
1635
|
-
a.value ?
|
|
1658
|
+
J(Ne, { name: "fade" }, {
|
|
1659
|
+
default: B(() => [
|
|
1660
|
+
a.value ? oe((d(), m("div", {
|
|
1636
1661
|
key: 0,
|
|
1637
1662
|
ref_key: "modalRef",
|
|
1638
|
-
ref:
|
|
1663
|
+
ref: s,
|
|
1639
1664
|
class: "modal"
|
|
1640
1665
|
}, [
|
|
1641
1666
|
_("div", {
|
|
1642
1667
|
class: "modal-dialog",
|
|
1643
|
-
style:
|
|
1668
|
+
style: z({ width: n.width, maxWidth: n.maxWidth })
|
|
1644
1669
|
}, [
|
|
1645
1670
|
_("div", Wo, [
|
|
1646
1671
|
_("div", Po, [
|
|
1647
1672
|
_("h5", jo, [
|
|
1648
|
-
|
|
1673
|
+
L(i.$slots, "modal-title")
|
|
1649
1674
|
])
|
|
1650
1675
|
]),
|
|
1651
1676
|
_("div", Xo, [
|
|
1652
|
-
|
|
1677
|
+
L(i.$slots, "default")
|
|
1653
1678
|
]),
|
|
1654
1679
|
_("div", Yo, [
|
|
1655
|
-
|
|
1680
|
+
L(i.$slots, "modal-footer")
|
|
1656
1681
|
])
|
|
1657
1682
|
])
|
|
1658
1683
|
], 4)
|
|
@@ -1665,24 +1690,24 @@ const Fo = {
|
|
|
1665
1690
|
]);
|
|
1666
1691
|
};
|
|
1667
1692
|
}
|
|
1668
|
-
}, ce =
|
|
1669
|
-
function Me(
|
|
1670
|
-
|
|
1693
|
+
}, ce = Bt();
|
|
1694
|
+
function Me(t) {
|
|
1695
|
+
t === void 0 && (t = ce.value.comp.returnValue()), ce.value.resolve(t), ce.value = null;
|
|
1671
1696
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return new Promise((
|
|
1697
|
+
function $t(t, e, o = "default") {
|
|
1698
|
+
return new Promise((n) => {
|
|
1674
1699
|
ce.value = {
|
|
1675
|
-
dialog:
|
|
1676
|
-
props:
|
|
1700
|
+
dialog: t,
|
|
1701
|
+
props: e,
|
|
1677
1702
|
wrapper: o,
|
|
1678
|
-
resolve:
|
|
1703
|
+
resolve: n
|
|
1679
1704
|
};
|
|
1680
1705
|
});
|
|
1681
1706
|
}
|
|
1682
|
-
var Uo = (
|
|
1683
|
-
const o =
|
|
1684
|
-
for (const [
|
|
1685
|
-
o[
|
|
1707
|
+
var Uo = (t, e) => {
|
|
1708
|
+
const o = t.__vccOpts || t;
|
|
1709
|
+
for (const [n, s] of e)
|
|
1710
|
+
o[n] = s;
|
|
1686
1711
|
return o;
|
|
1687
1712
|
};
|
|
1688
1713
|
const qo = Mt({
|
|
@@ -1696,19 +1721,19 @@ const qo = Mt({
|
|
|
1696
1721
|
transitionAttrs: Object
|
|
1697
1722
|
},
|
|
1698
1723
|
setup() {
|
|
1699
|
-
const
|
|
1700
|
-
return vt(
|
|
1701
|
-
ce.value && (ce.value.comp =
|
|
1724
|
+
const t = T();
|
|
1725
|
+
return vt(t, () => {
|
|
1726
|
+
ce.value && (ce.value.comp = t.value);
|
|
1702
1727
|
}), {
|
|
1703
1728
|
dialogRef: ce,
|
|
1704
|
-
dialogInstance:
|
|
1729
|
+
dialogInstance: t
|
|
1705
1730
|
};
|
|
1706
1731
|
}
|
|
1707
1732
|
});
|
|
1708
|
-
function Go(
|
|
1709
|
-
return d(), b(Ne, pt(ft(
|
|
1710
|
-
default:
|
|
1711
|
-
|
|
1733
|
+
function Go(t, e, o, n, s, a) {
|
|
1734
|
+
return d(), b(Ne, pt(ft(t.transitionAttrs)), {
|
|
1735
|
+
default: B(() => [
|
|
1736
|
+
t.dialogRef && t.dialogRef.wrapper === t.name ? (d(), b(U(t.dialogRef.dialog), ue({ key: 0 }, t.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
|
|
1712
1737
|
]),
|
|
1713
1738
|
_: 1
|
|
1714
1739
|
}, 16);
|
|
@@ -1720,24 +1745,24 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1720
1745
|
title: String,
|
|
1721
1746
|
message: String
|
|
1722
1747
|
},
|
|
1723
|
-
setup(
|
|
1724
|
-
const o =
|
|
1725
|
-
return
|
|
1748
|
+
setup(t, { expose: e }) {
|
|
1749
|
+
const o = t;
|
|
1750
|
+
return e({
|
|
1726
1751
|
returnValue: () => !0
|
|
1727
|
-
}), (
|
|
1728
|
-
|
|
1729
|
-
"modal-title":
|
|
1752
|
+
}), (s, a) => (d(), m("div", null, [
|
|
1753
|
+
J(kt, { show: !0 }, {
|
|
1754
|
+
"modal-title": B(() => [
|
|
1730
1755
|
K(O(o.title), 1)
|
|
1731
1756
|
]),
|
|
1732
|
-
default:
|
|
1757
|
+
default: B(() => [
|
|
1733
1758
|
K(O(o.message), 1)
|
|
1734
1759
|
]),
|
|
1735
|
-
"modal-footer":
|
|
1760
|
+
"modal-footer": B(() => [
|
|
1736
1761
|
_("div", Ko, [
|
|
1737
|
-
|
|
1738
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
1762
|
+
J(ie, {
|
|
1763
|
+
onClick: a[0] || (a[0] = (l) => E(Me)())
|
|
1739
1764
|
}, {
|
|
1740
|
-
default:
|
|
1765
|
+
default: B(() => [
|
|
1741
1766
|
K("Закрыть")
|
|
1742
1767
|
]),
|
|
1743
1768
|
_: 1
|
|
@@ -1748,39 +1773,39 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1748
1773
|
})
|
|
1749
1774
|
]));
|
|
1750
1775
|
}
|
|
1751
|
-
}, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } },
|
|
1776
|
+
}, Qo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, en = {
|
|
1752
1777
|
__name: "DConfirmDialog",
|
|
1753
1778
|
props: {
|
|
1754
1779
|
title: String,
|
|
1755
1780
|
message: String
|
|
1756
1781
|
},
|
|
1757
|
-
setup(
|
|
1758
|
-
const o =
|
|
1759
|
-
return
|
|
1782
|
+
setup(t, { expose: e }) {
|
|
1783
|
+
const o = t;
|
|
1784
|
+
return e({
|
|
1760
1785
|
returnValue: () => !0
|
|
1761
|
-
}), (
|
|
1762
|
-
|
|
1763
|
-
"modal-title":
|
|
1786
|
+
}), (s, a) => (d(), m("div", null, [
|
|
1787
|
+
J(kt, { show: !0 }, {
|
|
1788
|
+
"modal-title": B(() => [
|
|
1764
1789
|
K(O(o.title), 1)
|
|
1765
1790
|
]),
|
|
1766
|
-
default:
|
|
1791
|
+
default: B(() => [
|
|
1767
1792
|
K(O(o.message), 1)
|
|
1768
1793
|
]),
|
|
1769
|
-
"modal-footer":
|
|
1794
|
+
"modal-footer": B(() => [
|
|
1770
1795
|
_("div", Qo, [
|
|
1771
|
-
|
|
1772
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
1796
|
+
J(ie, {
|
|
1797
|
+
onClick: a[0] || (a[0] = (l) => E(Me)())
|
|
1773
1798
|
}, {
|
|
1774
|
-
default:
|
|
1799
|
+
default: B(() => [
|
|
1775
1800
|
K("Да")
|
|
1776
1801
|
]),
|
|
1777
1802
|
_: 1
|
|
1778
1803
|
}),
|
|
1779
|
-
|
|
1804
|
+
J(ie, {
|
|
1780
1805
|
class: "button-red",
|
|
1781
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
1806
|
+
onClick: a[1] || (a[1] = (l) => E(Me)(!1))
|
|
1782
1807
|
}, {
|
|
1783
|
-
default:
|
|
1808
|
+
default: B(() => [
|
|
1784
1809
|
K("Нет")
|
|
1785
1810
|
]),
|
|
1786
1811
|
_: 1
|
|
@@ -1791,7 +1816,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1791
1816
|
})
|
|
1792
1817
|
]));
|
|
1793
1818
|
}
|
|
1794
|
-
},
|
|
1819
|
+
}, tn = { class: "dropdown" }, As = {
|
|
1795
1820
|
__name: "DDropdown",
|
|
1796
1821
|
props: {
|
|
1797
1822
|
class: String,
|
|
@@ -1810,90 +1835,90 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1810
1835
|
}
|
|
1811
1836
|
},
|
|
1812
1837
|
emits: ["select", "click"],
|
|
1813
|
-
setup(
|
|
1814
|
-
const
|
|
1815
|
-
if (o("click",
|
|
1838
|
+
setup(t, { expose: e, emit: o }) {
|
|
1839
|
+
const n = t, s = Ce(), a = T(null), l = T(null), r = T(0), i = T(0), c = (C) => {
|
|
1840
|
+
if (o("click", C), a.value.isShowed()) {
|
|
1816
1841
|
a.value.hide();
|
|
1817
1842
|
return;
|
|
1818
1843
|
}
|
|
1819
1844
|
a.value.show(), ht(() => {
|
|
1820
|
-
const
|
|
1821
|
-
r.value = H - ($.x + $.width) <
|
|
1845
|
+
const R = a.value.elementSize(), $ = l.value.elementSize(), H = window.innerWidth, Y = window.innerHeight;
|
|
1846
|
+
r.value = H - ($.x + $.width) < R.width ? $.left - R.width + $.width : $.left, i.value = Y - ($.y + $.height) < R.height ? $.top - R.height - 5 : $.height + $.top + 5;
|
|
1822
1847
|
});
|
|
1823
|
-
}, u = (
|
|
1824
|
-
o("select",
|
|
1825
|
-
},
|
|
1826
|
-
|
|
1848
|
+
}, u = (C) => {
|
|
1849
|
+
o("select", C);
|
|
1850
|
+
}, g = h(() => ({ left: r.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
|
|
1851
|
+
e({
|
|
1827
1852
|
show: c
|
|
1828
1853
|
});
|
|
1829
|
-
const x = (
|
|
1830
|
-
return (
|
|
1854
|
+
const x = (C) => !!s[C];
|
|
1855
|
+
return (C, R) => (d(), m("div", tn, [
|
|
1831
1856
|
x("default") ? (d(), b(ie, {
|
|
1832
1857
|
key: 0,
|
|
1833
1858
|
ref_key: "buttonRef",
|
|
1834
1859
|
ref: l,
|
|
1835
|
-
class: D(
|
|
1836
|
-
icon:
|
|
1860
|
+
class: D(n.class),
|
|
1861
|
+
icon: n.icon,
|
|
1837
1862
|
onClick: j(c, ["stop", "prevent"]),
|
|
1838
|
-
type:
|
|
1863
|
+
type: n.type
|
|
1839
1864
|
}, {
|
|
1840
|
-
default:
|
|
1841
|
-
C
|
|
1865
|
+
default: B(() => [
|
|
1866
|
+
L(C.$slots, "default")
|
|
1842
1867
|
]),
|
|
1843
1868
|
_: 3
|
|
1844
1869
|
}, 8, ["class", "icon", "onClick", "type"])) : (d(), b(ie, {
|
|
1845
1870
|
key: 1,
|
|
1846
1871
|
ref_key: "buttonRef",
|
|
1847
1872
|
ref: l,
|
|
1848
|
-
class: D(
|
|
1849
|
-
icon:
|
|
1873
|
+
class: D(n.class),
|
|
1874
|
+
icon: n.icon,
|
|
1850
1875
|
onClick: j(c, ["stop", "prevent"]),
|
|
1851
|
-
type:
|
|
1876
|
+
type: n.type
|
|
1852
1877
|
}, null, 8, ["class", "icon", "onClick", "type"])),
|
|
1853
|
-
|
|
1878
|
+
J(bt, {
|
|
1854
1879
|
ref_key: "dMenuRef",
|
|
1855
1880
|
ref: a,
|
|
1856
|
-
items:
|
|
1881
|
+
items: n.items,
|
|
1857
1882
|
class: "dropdown-menu",
|
|
1858
|
-
style:
|
|
1883
|
+
style: z(g.value),
|
|
1859
1884
|
"no-select": !0,
|
|
1860
1885
|
onSelect: u,
|
|
1861
|
-
"render-item-title":
|
|
1862
|
-
"before-item":
|
|
1863
|
-
"body-as-parent":
|
|
1886
|
+
"render-item-title": n.renderItemTitle,
|
|
1887
|
+
"before-item": n.beforeItem,
|
|
1888
|
+
"body-as-parent": n.bodyAsParent
|
|
1864
1889
|
}, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
|
|
1865
1890
|
]));
|
|
1866
1891
|
}
|
|
1867
|
-
},
|
|
1868
|
-
function
|
|
1869
|
-
return d(),
|
|
1870
|
-
|
|
1892
|
+
}, on = {}, nn = { class: "d-panel" };
|
|
1893
|
+
function sn(t, e) {
|
|
1894
|
+
return d(), m("div", nn, [
|
|
1895
|
+
L(t.$slots, "default")
|
|
1871
1896
|
]);
|
|
1872
1897
|
}
|
|
1873
|
-
const
|
|
1898
|
+
const an = /* @__PURE__ */ ne(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Hs = {
|
|
1874
1899
|
__name: "DCard",
|
|
1875
|
-
setup(
|
|
1876
|
-
return (
|
|
1877
|
-
default:
|
|
1878
|
-
_("div",
|
|
1879
|
-
_("h5",
|
|
1880
|
-
|
|
1900
|
+
setup(t) {
|
|
1901
|
+
return (e, o) => (d(), b(an, { class: "d-card" }, {
|
|
1902
|
+
default: B(() => [
|
|
1903
|
+
_("div", ln, [
|
|
1904
|
+
_("h5", rn, [
|
|
1905
|
+
L(e.$slots, "title")
|
|
1881
1906
|
])
|
|
1882
1907
|
]),
|
|
1883
|
-
_("div",
|
|
1884
|
-
|
|
1908
|
+
_("div", dn, [
|
|
1909
|
+
L(e.$slots, "default")
|
|
1885
1910
|
]),
|
|
1886
|
-
_("div",
|
|
1887
|
-
|
|
1911
|
+
_("div", cn, [
|
|
1912
|
+
L(e.$slots, "footer")
|
|
1888
1913
|
])
|
|
1889
1914
|
]),
|
|
1890
1915
|
_: 3
|
|
1891
1916
|
}));
|
|
1892
1917
|
}
|
|
1893
|
-
},
|
|
1894
|
-
class
|
|
1895
|
-
constructor(
|
|
1896
|
-
this.remaining = o, this.callback =
|
|
1918
|
+
}, un = /* @__PURE__ */ new Map();
|
|
1919
|
+
class pn {
|
|
1920
|
+
constructor(e, o, n) {
|
|
1921
|
+
this.remaining = o, this.callback = e, this.notifyItem = n, this.resume();
|
|
1897
1922
|
}
|
|
1898
1923
|
pause() {
|
|
1899
1924
|
clearTimeout(this.notifyItem.timer), this.remaining -= Date.now() - this.start;
|
|
@@ -1902,14 +1927,14 @@ class us {
|
|
|
1902
1927
|
this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
|
|
1903
1928
|
}
|
|
1904
1929
|
}
|
|
1905
|
-
const
|
|
1930
|
+
const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
1906
1931
|
{
|
|
1907
1932
|
name: "px",
|
|
1908
|
-
regexp: new RegExp(`^${
|
|
1933
|
+
regexp: new RegExp(`^${Ee}px$`)
|
|
1909
1934
|
},
|
|
1910
1935
|
{
|
|
1911
1936
|
name: "%",
|
|
1912
|
-
regexp: new RegExp(`^${
|
|
1937
|
+
regexp: new RegExp(`^${Ee}%$`)
|
|
1913
1938
|
},
|
|
1914
1939
|
/**
|
|
1915
1940
|
* Fallback option
|
|
@@ -1917,50 +1942,50 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
1917
1942
|
*/
|
|
1918
1943
|
{
|
|
1919
1944
|
name: "px",
|
|
1920
|
-
regexp: new RegExp(`^${
|
|
1945
|
+
regexp: new RegExp(`^${Ee}$`)
|
|
1921
1946
|
}
|
|
1922
|
-
],
|
|
1923
|
-
if (
|
|
1947
|
+
], fn = (t) => {
|
|
1948
|
+
if (t === "auto")
|
|
1924
1949
|
return {
|
|
1925
|
-
type:
|
|
1950
|
+
type: t,
|
|
1926
1951
|
value: 0
|
|
1927
1952
|
};
|
|
1928
|
-
for (let
|
|
1929
|
-
const o = it[
|
|
1930
|
-
if (o.regexp.test(
|
|
1953
|
+
for (let e = 0; e < it.length; e++) {
|
|
1954
|
+
const o = it[e];
|
|
1955
|
+
if (o.regexp.test(t))
|
|
1931
1956
|
return {
|
|
1932
1957
|
type: o.name,
|
|
1933
|
-
value: parseFloat(
|
|
1958
|
+
value: parseFloat(t)
|
|
1934
1959
|
};
|
|
1935
1960
|
}
|
|
1936
1961
|
return {
|
|
1937
1962
|
type: "",
|
|
1938
|
-
value:
|
|
1963
|
+
value: t
|
|
1939
1964
|
};
|
|
1940
|
-
},
|
|
1941
|
-
switch (typeof
|
|
1965
|
+
}, mn = (t) => {
|
|
1966
|
+
switch (typeof t) {
|
|
1942
1967
|
case "number":
|
|
1943
|
-
return { type: "px", value:
|
|
1968
|
+
return { type: "px", value: t };
|
|
1944
1969
|
case "string":
|
|
1945
|
-
return
|
|
1970
|
+
return fn(t);
|
|
1946
1971
|
default:
|
|
1947
|
-
return { type: "", value:
|
|
1972
|
+
return { type: "", value: t };
|
|
1948
1973
|
}
|
|
1949
1974
|
}, lt = {
|
|
1950
1975
|
x: /* @__PURE__ */ new Set(["left", "center", "right"]),
|
|
1951
1976
|
y: /* @__PURE__ */ new Set(["top", "bottom"])
|
|
1952
|
-
},
|
|
1953
|
-
typeof
|
|
1954
|
-
let
|
|
1955
|
-
return
|
|
1956
|
-
lt.y.has(
|
|
1957
|
-
}), { x:
|
|
1958
|
-
},
|
|
1977
|
+
}, hn = ((t) => () => t++)(0), gn = (t) => typeof t != "string" ? [] : t.split(/\s+/gi).filter(Boolean), vn = (t) => {
|
|
1978
|
+
typeof t == "string" && (t = gn(t));
|
|
1979
|
+
let e = null, o = null;
|
|
1980
|
+
return t.forEach((n) => {
|
|
1981
|
+
lt.y.has(n) && (o = n), lt.x.has(n) && (e = n);
|
|
1982
|
+
}), { x: e, y: o };
|
|
1983
|
+
}, Be = {
|
|
1959
1984
|
position: ["top", "right"],
|
|
1960
1985
|
cssAnimation: "fade",
|
|
1961
1986
|
velocityAnimation: {
|
|
1962
|
-
enter: (
|
|
1963
|
-
height: [
|
|
1987
|
+
enter: (t) => ({
|
|
1988
|
+
height: [t.clientHeight, 0],
|
|
1964
1989
|
opacity: [1, 0]
|
|
1965
1990
|
}),
|
|
1966
1991
|
leave: {
|
|
@@ -1968,53 +1993,53 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
1968
1993
|
opacity: [0, 1]
|
|
1969
1994
|
}
|
|
1970
1995
|
}
|
|
1971
|
-
},
|
|
1996
|
+
}, yn = {
|
|
1972
1997
|
__name: "VelocityGroup",
|
|
1973
1998
|
emits: ["enter", "leave", "after-leave"],
|
|
1974
|
-
setup(
|
|
1999
|
+
setup(t, { emit: e }) {
|
|
1975
2000
|
const o = (a, l) => {
|
|
1976
|
-
|
|
1977
|
-
},
|
|
1978
|
-
|
|
1979
|
-
},
|
|
1980
|
-
|
|
2001
|
+
e("enter", a, l);
|
|
2002
|
+
}, n = (a, l) => {
|
|
2003
|
+
e("leave", a, l);
|
|
2004
|
+
}, s = () => {
|
|
2005
|
+
e("after-leave");
|
|
1981
2006
|
};
|
|
1982
2007
|
return (a, l) => (d(), b(yt, {
|
|
1983
2008
|
tag: "span",
|
|
1984
2009
|
css: !1,
|
|
1985
2010
|
onEnter: o,
|
|
1986
|
-
onLeave:
|
|
1987
|
-
onAfterLeave:
|
|
2011
|
+
onLeave: n,
|
|
2012
|
+
onAfterLeave: s
|
|
1988
2013
|
}, {
|
|
1989
|
-
default:
|
|
1990
|
-
|
|
2014
|
+
default: B(() => [
|
|
2015
|
+
L(a.$slots, "default")
|
|
1991
2016
|
]),
|
|
1992
2017
|
_: 3
|
|
1993
2018
|
}));
|
|
1994
2019
|
}
|
|
1995
|
-
},
|
|
2020
|
+
}, _n = /* @__PURE__ */ Object.assign({
|
|
1996
2021
|
inheritAttrs: !1
|
|
1997
2022
|
}, {
|
|
1998
2023
|
__name: "CssGroup",
|
|
1999
2024
|
props: {
|
|
2000
2025
|
name: String
|
|
2001
2026
|
},
|
|
2002
|
-
setup(
|
|
2003
|
-
const
|
|
2004
|
-
return (o,
|
|
2027
|
+
setup(t) {
|
|
2028
|
+
const e = t;
|
|
2029
|
+
return (o, n) => (d(), b(yt, {
|
|
2005
2030
|
tag: "span",
|
|
2006
|
-
name:
|
|
2031
|
+
name: e.name
|
|
2007
2032
|
}, {
|
|
2008
|
-
default:
|
|
2009
|
-
|
|
2033
|
+
default: B(() => [
|
|
2034
|
+
L(o.$slots, "default")
|
|
2010
2035
|
]),
|
|
2011
2036
|
_: 3
|
|
2012
2037
|
}, 8, ["name"]));
|
|
2013
2038
|
}
|
|
2014
|
-
}),
|
|
2039
|
+
}), bn = ["data-id"], xn = ["onClick"], kn = ["innerHTML"], $n = ["innerHTML"], wn = {
|
|
2015
2040
|
key: 0,
|
|
2016
2041
|
class: "d-notification-title"
|
|
2017
|
-
},
|
|
2042
|
+
}, Sn = { class: "notification-content" }, Vs = {
|
|
2018
2043
|
__name: "DNotificationProvider",
|
|
2019
2044
|
props: {
|
|
2020
2045
|
group: {
|
|
@@ -2031,7 +2056,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2031
2056
|
},
|
|
2032
2057
|
position: {
|
|
2033
2058
|
type: [String, Array, null],
|
|
2034
|
-
default:
|
|
2059
|
+
default: Be.position
|
|
2035
2060
|
},
|
|
2036
2061
|
classes: {
|
|
2037
2062
|
type: String,
|
|
@@ -2043,11 +2068,11 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2043
2068
|
},
|
|
2044
2069
|
animation: {
|
|
2045
2070
|
type: [String, Object],
|
|
2046
|
-
default:
|
|
2071
|
+
default: Be.velocityAnimation
|
|
2047
2072
|
},
|
|
2048
2073
|
animationName: {
|
|
2049
2074
|
type: String,
|
|
2050
|
-
default:
|
|
2075
|
+
default: Be.cssAnimation
|
|
2051
2076
|
},
|
|
2052
2077
|
speed: {
|
|
2053
2078
|
type: Number,
|
|
@@ -2083,18 +2108,18 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2083
2108
|
}
|
|
2084
2109
|
},
|
|
2085
2110
|
emits: ["click", "destroy", "start"],
|
|
2086
|
-
setup(
|
|
2087
|
-
const o =
|
|
2111
|
+
setup(t, { emit: e }) {
|
|
2112
|
+
const o = t, n = {
|
|
2088
2113
|
IDLE: 0,
|
|
2089
2114
|
DESTROYED: 2
|
|
2090
|
-
},
|
|
2091
|
-
const { x: f, y:
|
|
2092
|
-
width:
|
|
2115
|
+
}, s = T([]), a = T(null), l = T(un.get("velocity")), r = h(() => o.animationType === "velocity"), i = h(() => r.value ? yn : _n), c = h(() => s.value.filter((f) => f.state !== n.DESTROYED)), u = h(() => mn(o.width)), g = h(() => {
|
|
2116
|
+
const { x: f, y: p } = vn(o.position), y = u.value.value, A = u.value.type, se = {
|
|
2117
|
+
width: y + A
|
|
2093
2118
|
};
|
|
2094
|
-
return
|
|
2095
|
-
}), x =
|
|
2096
|
-
|
|
2097
|
-
},
|
|
2119
|
+
return p && (se[p] = "0px"), f && (f === "center" ? se.left = `calc(50% - ${+y / 2}${A})` : se[f] = "0px"), se;
|
|
2120
|
+
}), x = h(() => "bottom" in g.value), C = (f) => {
|
|
2121
|
+
e("click", f), o.closeOnClick && F(f);
|
|
2122
|
+
}, R = () => {
|
|
2098
2123
|
var f;
|
|
2099
2124
|
o.pauseOnHover && ((f = a.value) == null || f.pause());
|
|
2100
2125
|
}, $ = () => {
|
|
@@ -2104,114 +2129,114 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2104
2129
|
if (f.group || (f.group = ""), f.data || (f.data = {}), o.group !== f.group)
|
|
2105
2130
|
return;
|
|
2106
2131
|
if (f.clean || f.clear) {
|
|
2107
|
-
|
|
2132
|
+
W();
|
|
2108
2133
|
return;
|
|
2109
2134
|
}
|
|
2110
|
-
const
|
|
2111
|
-
id: be ||
|
|
2112
|
-
title:
|
|
2135
|
+
const p = typeof f.duration == "number" ? f.duration : o.duration, y = typeof f.speed == "number" ? f.speed : o.speed, A = typeof f.ignoreDuplicates == "boolean" ? f.ignoreDuplicates : o.ignoreDuplicates, { title: se, text: ve, type: ye, data: _e, id: be } = f, Q = {
|
|
2136
|
+
id: be || hn(),
|
|
2137
|
+
title: se,
|
|
2113
2138
|
text: ve,
|
|
2114
2139
|
type: ye,
|
|
2115
|
-
state:
|
|
2116
|
-
speed:
|
|
2117
|
-
length:
|
|
2140
|
+
state: n.IDLE,
|
|
2141
|
+
speed: y,
|
|
2142
|
+
length: p + 2 * y,
|
|
2118
2143
|
data: _e
|
|
2119
2144
|
};
|
|
2120
|
-
|
|
2145
|
+
p >= 0 && (a.value = new pn(() => F(Q), Q.length, Q));
|
|
2121
2146
|
const xe = o.reverse ? !x.value : x.value;
|
|
2122
2147
|
let de = -1;
|
|
2123
|
-
const
|
|
2124
|
-
(!
|
|
2125
|
-
},
|
|
2126
|
-
|
|
2127
|
-
},
|
|
2148
|
+
const ke = c.value.some((he) => he.title === f.title && he.text === f.text);
|
|
2149
|
+
(!A || !ke) && (xe ? (s.value.push(Q), e("start", Q), c.value.length > o.max && (de = 0)) : (s.value.unshift(Q), e("start", Q), c.value.length > o.max && (de = c.value.length - 1)), de !== -1 && F(c.value[de]));
|
|
2150
|
+
}, Y = (f) => {
|
|
2151
|
+
S(f);
|
|
2152
|
+
}, M = (f) => [
|
|
2128
2153
|
"d-notification-template",
|
|
2129
2154
|
o.classes,
|
|
2130
2155
|
f.type || ""
|
|
2131
|
-
], I = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` },
|
|
2132
|
-
clearTimeout(f.timer), f.state =
|
|
2133
|
-
},
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2136
|
-
},
|
|
2137
|
-
c.value.forEach(
|
|
2138
|
-
},
|
|
2139
|
-
var
|
|
2140
|
-
const
|
|
2141
|
-
return typeof
|
|
2142
|
-
},
|
|
2156
|
+
], I = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` }, F = (f) => {
|
|
2157
|
+
clearTimeout(f.timer), f.state = n.DESTROYED, P(), e("destroy", f);
|
|
2158
|
+
}, S = (f) => {
|
|
2159
|
+
const p = s.value.find((y) => y.id === f);
|
|
2160
|
+
p && F(p);
|
|
2161
|
+
}, W = () => {
|
|
2162
|
+
c.value.forEach(F);
|
|
2163
|
+
}, N = (f, p) => {
|
|
2164
|
+
var A;
|
|
2165
|
+
const y = (A = o.animation) == null ? void 0 : A[f];
|
|
2166
|
+
return typeof y == "function" ? y(p) : y;
|
|
2167
|
+
}, w = (f, p) => {
|
|
2143
2168
|
if (!r.value)
|
|
2144
2169
|
return;
|
|
2145
|
-
const
|
|
2146
|
-
l.value(f,
|
|
2170
|
+
const y = N("enter", f);
|
|
2171
|
+
l.value(f, y, {
|
|
2147
2172
|
duration: o.speed,
|
|
2148
|
-
complete:
|
|
2173
|
+
complete: p
|
|
2149
2174
|
});
|
|
2150
|
-
},
|
|
2175
|
+
}, V = (f, p) => {
|
|
2151
2176
|
if (!r.value)
|
|
2152
2177
|
return;
|
|
2153
|
-
const
|
|
2154
|
-
l.value(f,
|
|
2178
|
+
const y = N("leave", f);
|
|
2179
|
+
l.value(f, y, {
|
|
2155
2180
|
duration: o.speed,
|
|
2156
|
-
complete:
|
|
2181
|
+
complete: p
|
|
2157
2182
|
});
|
|
2158
2183
|
};
|
|
2159
|
-
function
|
|
2160
|
-
|
|
2184
|
+
function P() {
|
|
2185
|
+
s.value = s.value.filter((f) => f.state !== n.DESTROYED);
|
|
2161
2186
|
}
|
|
2162
2187
|
return me(() => {
|
|
2163
|
-
|
|
2164
|
-
}), (f,
|
|
2188
|
+
q.on("notification-add", H), q.on("notification-close", Y);
|
|
2189
|
+
}), (f, p) => (d(), m("div", {
|
|
2165
2190
|
class: "d-notification-group",
|
|
2166
|
-
style:
|
|
2191
|
+
style: z(g.value)
|
|
2167
2192
|
}, [
|
|
2168
|
-
(d(), b(
|
|
2169
|
-
name:
|
|
2170
|
-
onEnter:
|
|
2171
|
-
onLeave:
|
|
2172
|
-
onAfterLeave:
|
|
2193
|
+
(d(), b(U(i.value), {
|
|
2194
|
+
name: t.animationName,
|
|
2195
|
+
onEnter: w,
|
|
2196
|
+
onLeave: V,
|
|
2197
|
+
onAfterLeave: P
|
|
2173
2198
|
}, {
|
|
2174
|
-
default:
|
|
2175
|
-
(d(!0),
|
|
2176
|
-
key:
|
|
2199
|
+
default: B(() => [
|
|
2200
|
+
(d(!0), m(le, null, ge(c.value, (y) => (d(), m("div", {
|
|
2201
|
+
key: y.id,
|
|
2177
2202
|
class: "d-notification-wrapper",
|
|
2178
|
-
style:
|
|
2179
|
-
"data-id":
|
|
2180
|
-
onMouseenter:
|
|
2203
|
+
style: z(I(y)),
|
|
2204
|
+
"data-id": y.id,
|
|
2205
|
+
onMouseenter: R,
|
|
2181
2206
|
onMouseleave: $
|
|
2182
2207
|
}, [
|
|
2183
|
-
|
|
2184
|
-
class: D([
|
|
2185
|
-
item:
|
|
2186
|
-
close: () =>
|
|
2208
|
+
L(f.$slots, "body", {
|
|
2209
|
+
class: D([t.classes, y.type]),
|
|
2210
|
+
item: y,
|
|
2211
|
+
close: () => F(y)
|
|
2187
2212
|
}, () => [
|
|
2188
2213
|
_("div", {
|
|
2189
|
-
class: D(
|
|
2190
|
-
onClick: (
|
|
2214
|
+
class: D(M(y)),
|
|
2215
|
+
onClick: (A) => C(y)
|
|
2191
2216
|
}, [
|
|
2192
|
-
|
|
2193
|
-
|
|
2217
|
+
t.dangerouslySetInnerHtml ? (d(), m(le, { key: 0 }, [
|
|
2218
|
+
y.title ? (d(), m("div", {
|
|
2194
2219
|
key: 0,
|
|
2195
2220
|
class: "d-notification-title",
|
|
2196
|
-
innerHTML:
|
|
2197
|
-
}, null, 8,
|
|
2221
|
+
innerHTML: y.timer
|
|
2222
|
+
}, null, 8, kn)) : k("", !0),
|
|
2198
2223
|
_("div", {
|
|
2199
2224
|
class: "notification-content",
|
|
2200
|
-
innerHTML:
|
|
2201
|
-
}, null, 8, $
|
|
2202
|
-
], 64)) : (d(),
|
|
2203
|
-
|
|
2204
|
-
_("div",
|
|
2225
|
+
innerHTML: y.text
|
|
2226
|
+
}, null, 8, $n)
|
|
2227
|
+
], 64)) : (d(), m(le, { key: 1 }, [
|
|
2228
|
+
y.title ? (d(), m("div", wn, O(y.title), 1)) : k("", !0),
|
|
2229
|
+
_("div", Sn, O(y.text), 1)
|
|
2205
2230
|
], 64))
|
|
2206
|
-
], 10,
|
|
2231
|
+
], 10, xn)
|
|
2207
2232
|
])
|
|
2208
|
-
], 44,
|
|
2233
|
+
], 44, bn))), 128))
|
|
2209
2234
|
]),
|
|
2210
2235
|
_: 3
|
|
2211
2236
|
}, 40, ["name"]))
|
|
2212
2237
|
], 4));
|
|
2213
2238
|
}
|
|
2214
|
-
},
|
|
2239
|
+
}, Dn = { class: "d-info-progress-icon-container" }, Tn = { class: "d-info-progress-icon" }, Cn = { class: "d-info-progress-data-container" }, Ln = ["innerHTML"], zs = {
|
|
2215
2240
|
__name: "DInfoProgress",
|
|
2216
2241
|
props: {
|
|
2217
2242
|
style: [String, Object],
|
|
@@ -2221,38 +2246,38 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2221
2246
|
type: String
|
|
2222
2247
|
},
|
|
2223
2248
|
emits: ["click"],
|
|
2224
|
-
setup(
|
|
2225
|
-
const o =
|
|
2226
|
-
return (
|
|
2249
|
+
setup(t, { emit: e }) {
|
|
2250
|
+
const o = t, n = h(() => o.icon ? te.getters.getIcon(o.icon) : null);
|
|
2251
|
+
return (s, a) => (d(), m("div", {
|
|
2227
2252
|
class: D(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
|
|
2228
|
-
style:
|
|
2253
|
+
style: z(o.style),
|
|
2229
2254
|
onClick: a[0] || (a[0] = (l) => {
|
|
2230
|
-
|
|
2255
|
+
e("click", l);
|
|
2231
2256
|
})
|
|
2232
2257
|
}, [
|
|
2233
|
-
_("div",
|
|
2234
|
-
_("div",
|
|
2235
|
-
o.icon ? (d(), b(
|
|
2258
|
+
_("div", Dn, [
|
|
2259
|
+
_("div", Tn, [
|
|
2260
|
+
o.icon ? (d(), b(U(re), {
|
|
2236
2261
|
key: 0,
|
|
2237
|
-
component:
|
|
2262
|
+
component: n.value,
|
|
2238
2263
|
color: "inherit",
|
|
2239
2264
|
size: 17
|
|
2240
2265
|
}, null, 8, ["component"])) : k("", !0)
|
|
2241
2266
|
])
|
|
2242
2267
|
]),
|
|
2243
|
-
_("div",
|
|
2268
|
+
_("div", Cn, [
|
|
2244
2269
|
_("div", {
|
|
2245
2270
|
class: "d-info-progress-line",
|
|
2246
|
-
style:
|
|
2271
|
+
style: z("width: " + o.progress + "%;")
|
|
2247
2272
|
}, null, 4),
|
|
2248
2273
|
_("div", {
|
|
2249
2274
|
class: "d-info-progress-label",
|
|
2250
|
-
innerHTML:
|
|
2251
|
-
}, null, 8,
|
|
2275
|
+
innerHTML: t.label
|
|
2276
|
+
}, null, 8, Ln)
|
|
2252
2277
|
])
|
|
2253
2278
|
], 6));
|
|
2254
2279
|
}
|
|
2255
|
-
},
|
|
2280
|
+
}, In = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Bn = ["for"], Fs = {
|
|
2256
2281
|
__name: "DCheckbox",
|
|
2257
2282
|
props: {
|
|
2258
2283
|
label: String,
|
|
@@ -2265,45 +2290,45 @@ const Be = "[-+]?[0-9]*.?[0-9]+", it = [
|
|
|
2265
2290
|
checked: Boolean
|
|
2266
2291
|
},
|
|
2267
2292
|
emits: ["update:modelValue"],
|
|
2268
|
-
setup(
|
|
2269
|
-
const o =
|
|
2293
|
+
setup(t, { emit: e }) {
|
|
2294
|
+
const o = t, s = gt().uid, a = h({
|
|
2270
2295
|
get: () => o.modelValue,
|
|
2271
2296
|
set: (l) => {
|
|
2272
|
-
|
|
2297
|
+
e("update:modelValue", l);
|
|
2273
2298
|
}
|
|
2274
2299
|
});
|
|
2275
|
-
return (l, r) => (d(),
|
|
2276
|
-
|
|
2300
|
+
return (l, r) => (d(), m("div", In, [
|
|
2301
|
+
oe(_("input", {
|
|
2277
2302
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
|
|
2278
|
-
id: `i-${
|
|
2303
|
+
id: `i-${E(s)}`,
|
|
2279
2304
|
type: "checkbox",
|
|
2280
2305
|
checked: o.checked,
|
|
2281
2306
|
disabled: o.disabled,
|
|
2282
2307
|
onChange: r[1] || (r[1] = (...i) => o.change && o.change(...i))
|
|
2283
|
-
}, null, 40,
|
|
2308
|
+
}, null, 40, En), [
|
|
2284
2309
|
[Nt, a.value]
|
|
2285
2310
|
]),
|
|
2286
2311
|
_("label", {
|
|
2287
|
-
for: `i-${
|
|
2288
|
-
}, O(o.label), 9,
|
|
2312
|
+
for: `i-${E(s)}`
|
|
2313
|
+
}, O(o.label), 9, Bn)
|
|
2289
2314
|
]));
|
|
2290
2315
|
}
|
|
2291
2316
|
};
|
|
2292
|
-
async function
|
|
2293
|
-
return await
|
|
2317
|
+
async function Mn(t, e) {
|
|
2318
|
+
return await $t(en, { title: t, message: e });
|
|
2294
2319
|
}
|
|
2295
|
-
async function
|
|
2296
|
-
return await
|
|
2320
|
+
async function Nn(t, e) {
|
|
2321
|
+
return await $t(Jo, { title: t, message: e });
|
|
2297
2322
|
}
|
|
2298
|
-
const
|
|
2323
|
+
const Ws = {
|
|
2299
2324
|
__name: "DDialogProvider",
|
|
2300
|
-
setup(
|
|
2301
|
-
return window.alert =
|
|
2325
|
+
setup(t) {
|
|
2326
|
+
return window.alert = Nn, window.confirm = Mn, (e, o) => (d(), b(E(Zo)));
|
|
2302
2327
|
}
|
|
2303
|
-
},
|
|
2328
|
+
}, Rn = { class: "d-select" }, On = {
|
|
2304
2329
|
key: 0,
|
|
2305
2330
|
class: "label"
|
|
2306
|
-
},
|
|
2331
|
+
}, An = ["disabled"], Hn = ["value", "selected", "disabled"], Ps = {
|
|
2307
2332
|
__name: "DSelect",
|
|
2308
2333
|
props: {
|
|
2309
2334
|
label: String,
|
|
@@ -2318,94 +2343,94 @@ const Wn = {
|
|
|
2318
2343
|
}
|
|
2319
2344
|
},
|
|
2320
2345
|
emits: ["update:modelValue"],
|
|
2321
|
-
setup(
|
|
2322
|
-
const o =
|
|
2346
|
+
setup(t, { emit: e }) {
|
|
2347
|
+
const o = t, n = h(() => o.scale ? "d-select-" + o.scale : ""), s = h({
|
|
2323
2348
|
get: () => o.modelValue,
|
|
2324
2349
|
set: (a) => {
|
|
2325
|
-
|
|
2350
|
+
e("update:modelValue", a);
|
|
2326
2351
|
}
|
|
2327
2352
|
});
|
|
2328
2353
|
for (let a = 0; a < o.options.length; a++)
|
|
2329
2354
|
if (o.options[a].selected) {
|
|
2330
|
-
|
|
2355
|
+
s.value = o.options[a].value;
|
|
2331
2356
|
break;
|
|
2332
2357
|
}
|
|
2333
|
-
return (a, l) => (d(),
|
|
2334
|
-
o.label ? (d(),
|
|
2335
|
-
|
|
2336
|
-
"onUpdate:modelValue": l[0] || (l[0] = (r) =>
|
|
2337
|
-
class: D(
|
|
2338
|
-
style:
|
|
2358
|
+
return (a, l) => (d(), m("div", Rn, [
|
|
2359
|
+
o.label ? (d(), m("div", On, O(o.label), 1)) : k("", !0),
|
|
2360
|
+
oe(_("select", {
|
|
2361
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
|
|
2362
|
+
class: D(n.value),
|
|
2363
|
+
style: z(o.size === "wide" ? "width:100%" : ""),
|
|
2339
2364
|
disabled: o.disabled
|
|
2340
2365
|
}, [
|
|
2341
|
-
(d(!0),
|
|
2366
|
+
(d(!0), m(le, null, ge(o.options, (r, i) => (d(), m("option", {
|
|
2342
2367
|
key: i,
|
|
2343
2368
|
value: r.value,
|
|
2344
2369
|
selected: r.selected,
|
|
2345
2370
|
disabled: r.disabled
|
|
2346
|
-
}, O(r.label), 9,
|
|
2347
|
-
], 14,
|
|
2348
|
-
[Rt,
|
|
2371
|
+
}, O(r.label), 9, Hn))), 128))
|
|
2372
|
+
], 14, An), [
|
|
2373
|
+
[Rt, s.value]
|
|
2349
2374
|
])
|
|
2350
2375
|
]));
|
|
2351
2376
|
}
|
|
2352
2377
|
};
|
|
2353
|
-
const
|
|
2378
|
+
const Vn = ["title"], zn = { class: "tab-icon" }, Fn = { class: "tab-label" }, Wn = ["title"], Pn = ["title"], jn = {
|
|
2354
2379
|
__name: "DTabLabel",
|
|
2355
2380
|
props: {
|
|
2356
2381
|
tab: Object
|
|
2357
2382
|
},
|
|
2358
|
-
setup(
|
|
2359
|
-
const
|
|
2360
|
-
return (o,
|
|
2383
|
+
setup(t) {
|
|
2384
|
+
const e = t;
|
|
2385
|
+
return (o, n) => e.tab.label && e.tab.icon ? (d(), m("span", {
|
|
2361
2386
|
key: 0,
|
|
2362
|
-
title:
|
|
2387
|
+
title: e.tab.title ? e.tab.title : "",
|
|
2363
2388
|
style: { display: "flex", "flex-direction": "column" }
|
|
2364
2389
|
}, [
|
|
2365
|
-
_("div",
|
|
2366
|
-
|
|
2367
|
-
component:
|
|
2390
|
+
_("div", zn, [
|
|
2391
|
+
J(E(re), {
|
|
2392
|
+
component: e.tab.icon
|
|
2368
2393
|
}, null, 8, ["component"])
|
|
2369
2394
|
]),
|
|
2370
|
-
_("div",
|
|
2371
|
-
], 8,
|
|
2395
|
+
_("div", Fn, O(e.tab.label), 1)
|
|
2396
|
+
], 8, Vn)) : e.tab.label ? (d(), m("span", {
|
|
2372
2397
|
key: 1,
|
|
2373
|
-
title:
|
|
2374
|
-
}, O(
|
|
2398
|
+
title: e.tab.title ? e.tab.title : ""
|
|
2399
|
+
}, O(e.tab.label), 9, Wn)) : e.tab.icon ? (d(), m("span", {
|
|
2375
2400
|
key: 2,
|
|
2376
|
-
title:
|
|
2401
|
+
title: e.tab.title ? e.tab.title : ""
|
|
2377
2402
|
}, [
|
|
2378
|
-
|
|
2379
|
-
component:
|
|
2403
|
+
J(E(re), {
|
|
2404
|
+
component: e.tab.icon
|
|
2380
2405
|
}, null, 8, ["component"])
|
|
2381
|
-
], 8,
|
|
2406
|
+
], 8, Pn)) : k("", !0);
|
|
2382
2407
|
}
|
|
2383
|
-
},
|
|
2384
|
-
const
|
|
2408
|
+
}, Xn = /* @__PURE__ */ ne(jn, [["__scopeId", "data-v-9262b225"]]);
|
|
2409
|
+
const Yn = { class: "d-tabs" }, Un = {
|
|
2385
2410
|
__name: "DTabs",
|
|
2386
2411
|
props: {
|
|
2387
2412
|
tabs: Array
|
|
2388
2413
|
},
|
|
2389
|
-
setup(
|
|
2390
|
-
const o = Ot(
|
|
2391
|
-
|
|
2414
|
+
setup(t) {
|
|
2415
|
+
const o = Ot(t, "tabs"), n = T(0), s = (a) => {
|
|
2416
|
+
n.value = a;
|
|
2392
2417
|
};
|
|
2393
|
-
return (a, l) => (d(),
|
|
2394
|
-
_("div",
|
|
2395
|
-
(d(!0),
|
|
2418
|
+
return (a, l) => (d(), m(le, null, [
|
|
2419
|
+
_("div", Yn, [
|
|
2420
|
+
(d(!0), m(le, null, ge(o.value, (r, i) => (d(), b(Xn, {
|
|
2396
2421
|
index: i,
|
|
2397
2422
|
tab: r,
|
|
2398
|
-
class: D(["d-tab-title", i ===
|
|
2399
|
-
onClick: (c) =>
|
|
2423
|
+
class: D(["d-tab-title", i === n.value ? "active" : ""]),
|
|
2424
|
+
onClick: (c) => s(i)
|
|
2400
2425
|
}, null, 8, ["index", "tab", "class", "onClick"]))), 256))
|
|
2401
2426
|
]),
|
|
2402
2427
|
(d(), b(At, null, [
|
|
2403
|
-
(d(), b(
|
|
2428
|
+
(d(), b(U(o.value[n.value].component)))
|
|
2404
2429
|
], 1024))
|
|
2405
2430
|
], 64));
|
|
2406
2431
|
}
|
|
2407
|
-
},
|
|
2408
|
-
const
|
|
2432
|
+
}, js = /* @__PURE__ */ ne(Un, [["__scopeId", "data-v-5459fcb7"]]);
|
|
2433
|
+
const qn = { class: "d-grid" }, Gn = {
|
|
2409
2434
|
__name: "DGrid",
|
|
2410
2435
|
props: {
|
|
2411
2436
|
gap: {
|
|
@@ -2422,8 +2447,8 @@ const Us = { class: "d-grid" }, qs = {
|
|
|
2422
2447
|
colXl: String,
|
|
2423
2448
|
colXxl: String
|
|
2424
2449
|
},
|
|
2425
|
-
setup(
|
|
2426
|
-
const
|
|
2450
|
+
setup(t) {
|
|
2451
|
+
const e = t;
|
|
2427
2452
|
Ae((u) => ({
|
|
2428
2453
|
"09eba472": i[0],
|
|
2429
2454
|
"09eba434": i[1],
|
|
@@ -2431,17 +2456,17 @@ const Us = { class: "d-grid" }, qs = {
|
|
|
2431
2456
|
"09eba3b8": i[3],
|
|
2432
2457
|
"09eba37a": i[4],
|
|
2433
2458
|
"09eba33c": i[5],
|
|
2434
|
-
"898eb2ac":
|
|
2459
|
+
"898eb2ac": e.gap
|
|
2435
2460
|
}));
|
|
2436
|
-
const { colXs: o, colSm:
|
|
2461
|
+
const { colXs: o, colSm: n, colMd: s, colLg: a, colXl: l, colXxl: r } = Ht(e), i = [o.value, n.value, s.value, a.value, l.value, r.value];
|
|
2437
2462
|
let c = null;
|
|
2438
2463
|
for (let u = 0; u < i.length; u++)
|
|
2439
2464
|
c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
|
|
2440
|
-
return (u,
|
|
2441
|
-
|
|
2465
|
+
return (u, g) => (d(), m("div", qn, [
|
|
2466
|
+
L(u.$slots, "default", {}, void 0, !0)
|
|
2442
2467
|
]));
|
|
2443
2468
|
}
|
|
2444
|
-
},
|
|
2469
|
+
}, Xs = /* @__PURE__ */ ne(Gn, [["__scopeId", "data-v-b45e8130"]]), Zn = ["src", "alt", "title"], Ys = {
|
|
2445
2470
|
__name: "DImage",
|
|
2446
2471
|
props: {
|
|
2447
2472
|
src: String,
|
|
@@ -2452,27 +2477,27 @@ const Us = { class: "d-grid" }, qs = {
|
|
|
2452
2477
|
height: String,
|
|
2453
2478
|
radius: String
|
|
2454
2479
|
},
|
|
2455
|
-
setup(
|
|
2456
|
-
const
|
|
2457
|
-
return
|
|
2458
|
-
o.value =
|
|
2459
|
-
},
|
|
2460
|
-
o.value =
|
|
2480
|
+
setup(t) {
|
|
2481
|
+
const e = t, o = T(null), n = new Image();
|
|
2482
|
+
return n.onload = () => {
|
|
2483
|
+
o.value = n.src;
|
|
2484
|
+
}, n.onerror = () => {
|
|
2485
|
+
o.value = e.srcFail;
|
|
2461
2486
|
}, me(() => {
|
|
2462
|
-
|
|
2463
|
-
}), (
|
|
2487
|
+
n.src = e.src;
|
|
2488
|
+
}), (s, a) => o.value ? (d(), m("img", {
|
|
2464
2489
|
key: 0,
|
|
2465
2490
|
src: o.value,
|
|
2466
|
-
alt:
|
|
2467
|
-
title:
|
|
2468
|
-
style:
|
|
2469
|
-
}, null, 12,
|
|
2491
|
+
alt: e.alt,
|
|
2492
|
+
title: e.title,
|
|
2493
|
+
style: z({ width: e.width, height: e.height, borderRadius: e.radius })
|
|
2494
|
+
}, null, 12, Zn)) : k("", !0);
|
|
2470
2495
|
}
|
|
2471
2496
|
};
|
|
2472
|
-
const
|
|
2497
|
+
const Kn = { class: "d-textarea" }, Jn = {
|
|
2473
2498
|
key: 0,
|
|
2474
2499
|
class: "label"
|
|
2475
|
-
},
|
|
2500
|
+
}, Qn = ["rows", "cols", "placeholder"], es = {
|
|
2476
2501
|
__name: "DTextarea",
|
|
2477
2502
|
props: {
|
|
2478
2503
|
label: String,
|
|
@@ -2491,164 +2516,164 @@ const Zs = { class: "d-textarea" }, Ks = {
|
|
|
2491
2516
|
focus: Boolean
|
|
2492
2517
|
},
|
|
2493
2518
|
emits: ["update:modelValue"],
|
|
2494
|
-
setup(
|
|
2495
|
-
const
|
|
2496
|
-
get: () =>
|
|
2519
|
+
setup(t, { expose: e, emit: o }) {
|
|
2520
|
+
const n = t, s = T(null), a = h(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = h({
|
|
2521
|
+
get: () => n.modelValue,
|
|
2497
2522
|
set: (i) => {
|
|
2498
2523
|
o("update:modelValue", i);
|
|
2499
2524
|
}
|
|
2500
2525
|
});
|
|
2501
2526
|
me(() => {
|
|
2502
|
-
|
|
2527
|
+
n.focus && r();
|
|
2503
2528
|
});
|
|
2504
2529
|
const r = () => {
|
|
2505
|
-
|
|
2530
|
+
s.value.focus();
|
|
2506
2531
|
};
|
|
2507
|
-
return
|
|
2532
|
+
return e({
|
|
2508
2533
|
focus: r
|
|
2509
|
-
}), (i, c) => (d(),
|
|
2510
|
-
|
|
2511
|
-
|
|
2534
|
+
}), (i, c) => (d(), m("div", Kn, [
|
|
2535
|
+
n.label ? (d(), m("div", Jn, O(n.label), 1)) : k("", !0),
|
|
2536
|
+
oe(_("textarea", {
|
|
2512
2537
|
ref_key: "inputRef",
|
|
2513
|
-
ref:
|
|
2538
|
+
ref: s,
|
|
2514
2539
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
|
|
2515
|
-
rows:
|
|
2516
|
-
cols:
|
|
2517
|
-
placeholder:
|
|
2540
|
+
rows: n.rows,
|
|
2541
|
+
cols: n.cols,
|
|
2542
|
+
placeholder: n.placeholder,
|
|
2518
2543
|
class: D(a.value),
|
|
2519
2544
|
style: { width: "100%" }
|
|
2520
|
-
}, null, 10,
|
|
2545
|
+
}, null, 10, Qn), [
|
|
2521
2546
|
[Vt, l.value]
|
|
2522
2547
|
])
|
|
2523
2548
|
]));
|
|
2524
2549
|
}
|
|
2525
|
-
},
|
|
2526
|
-
class
|
|
2527
|
-
constructor(
|
|
2528
|
-
this.fields =
|
|
2550
|
+
}, Us = /* @__PURE__ */ ne(es, [["__scopeId", "data-v-0e805d5d"]]);
|
|
2551
|
+
class qs {
|
|
2552
|
+
constructor(e) {
|
|
2553
|
+
this.fields = e;
|
|
2529
2554
|
}
|
|
2530
2555
|
validate() {
|
|
2531
|
-
let
|
|
2556
|
+
let e = !1;
|
|
2532
2557
|
for (let o in this.fields)
|
|
2533
|
-
this.fields[o].ref.value.validate() === !0 && (
|
|
2534
|
-
return !
|
|
2558
|
+
this.fields[o].ref.value.validate() === !0 && (e = !0);
|
|
2559
|
+
return !e;
|
|
2535
2560
|
}
|
|
2536
2561
|
}
|
|
2537
|
-
class
|
|
2538
|
-
validate(
|
|
2539
|
-
return this._isValidURL(
|
|
2562
|
+
class ts {
|
|
2563
|
+
validate(e, o = "https") {
|
|
2564
|
+
return this._isValidURL(e) || (e = o + "://" + e), this._isValidURL(e);
|
|
2540
2565
|
}
|
|
2541
|
-
message(
|
|
2542
|
-
let
|
|
2543
|
-
switch (
|
|
2566
|
+
message(e, o) {
|
|
2567
|
+
let n = "";
|
|
2568
|
+
switch (e) {
|
|
2544
2569
|
case "url":
|
|
2545
|
-
|
|
2570
|
+
n = o;
|
|
2546
2571
|
break;
|
|
2547
2572
|
}
|
|
2548
|
-
return
|
|
2573
|
+
return n;
|
|
2549
2574
|
}
|
|
2550
|
-
_isValidURL(
|
|
2575
|
+
_isValidURL(e) {
|
|
2551
2576
|
try {
|
|
2552
|
-
return new URL(
|
|
2577
|
+
return new URL(e), !0;
|
|
2553
2578
|
} catch {
|
|
2554
2579
|
return !1;
|
|
2555
2580
|
}
|
|
2556
2581
|
}
|
|
2557
2582
|
}
|
|
2558
|
-
const
|
|
2559
|
-
class
|
|
2560
|
-
validate(
|
|
2561
|
-
return
|
|
2583
|
+
const os = new ts();
|
|
2584
|
+
class ns {
|
|
2585
|
+
validate(e = "") {
|
|
2586
|
+
return e !== "";
|
|
2562
2587
|
}
|
|
2563
|
-
message(
|
|
2564
|
-
return
|
|
2588
|
+
message(e) {
|
|
2589
|
+
return e;
|
|
2565
2590
|
}
|
|
2566
2591
|
}
|
|
2567
|
-
const
|
|
2568
|
-
class
|
|
2569
|
-
validate(
|
|
2570
|
-
return
|
|
2592
|
+
const ss = new ns();
|
|
2593
|
+
class as {
|
|
2594
|
+
validate(e = "", o = 0) {
|
|
2595
|
+
return e.length >= o;
|
|
2571
2596
|
}
|
|
2572
|
-
message(
|
|
2573
|
-
return
|
|
2597
|
+
message(e) {
|
|
2598
|
+
return e;
|
|
2574
2599
|
}
|
|
2575
2600
|
}
|
|
2576
|
-
const
|
|
2577
|
-
class
|
|
2578
|
-
validate(
|
|
2579
|
-
return
|
|
2601
|
+
const is = new as();
|
|
2602
|
+
class ls {
|
|
2603
|
+
validate(e = "", o = 0) {
|
|
2604
|
+
return e.length <= o;
|
|
2580
2605
|
}
|
|
2581
|
-
message(
|
|
2582
|
-
return
|
|
2606
|
+
message(e) {
|
|
2607
|
+
return e;
|
|
2583
2608
|
}
|
|
2584
2609
|
}
|
|
2585
|
-
const
|
|
2586
|
-
class
|
|
2587
|
-
validate(
|
|
2588
|
-
return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(
|
|
2610
|
+
const rs = new ls();
|
|
2611
|
+
class ds {
|
|
2612
|
+
validate(e) {
|
|
2613
|
+
return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(e);
|
|
2589
2614
|
}
|
|
2590
|
-
message(
|
|
2591
|
-
return
|
|
2615
|
+
message(e) {
|
|
2616
|
+
return e;
|
|
2592
2617
|
}
|
|
2593
2618
|
}
|
|
2594
|
-
const
|
|
2595
|
-
class
|
|
2596
|
-
validate(
|
|
2597
|
-
return !isNaN(parseFloat(
|
|
2619
|
+
const cs = new ds();
|
|
2620
|
+
class us {
|
|
2621
|
+
validate(e) {
|
|
2622
|
+
return !isNaN(parseFloat(e)) && !isNaN(e - 0);
|
|
2598
2623
|
}
|
|
2599
|
-
message(
|
|
2600
|
-
return
|
|
2624
|
+
message(e) {
|
|
2625
|
+
return e;
|
|
2601
2626
|
}
|
|
2602
2627
|
}
|
|
2603
|
-
const
|
|
2604
|
-
RulesUrl:
|
|
2605
|
-
RulesRequired:
|
|
2606
|
-
RulesMin:
|
|
2607
|
-
RulesMax:
|
|
2608
|
-
RulesEmail:
|
|
2609
|
-
RulesNumber:
|
|
2628
|
+
const ps = new us(), G = {
|
|
2629
|
+
RulesUrl: os,
|
|
2630
|
+
RulesRequired: ss,
|
|
2631
|
+
RulesMin: is,
|
|
2632
|
+
RulesMax: rs,
|
|
2633
|
+
RulesEmail: cs,
|
|
2634
|
+
RulesNumber: ps
|
|
2610
2635
|
};
|
|
2611
|
-
class
|
|
2612
|
-
validate(
|
|
2613
|
-
var
|
|
2614
|
-
let
|
|
2636
|
+
class fs {
|
|
2637
|
+
validate(e, o) {
|
|
2638
|
+
var s, a, l, r, i, c, u, g, x, C, R, $, H, Y;
|
|
2639
|
+
let n = "";
|
|
2615
2640
|
if (o) {
|
|
2616
|
-
let
|
|
2641
|
+
let M = !1;
|
|
2617
2642
|
for (let I in o)
|
|
2618
|
-
if (!
|
|
2643
|
+
if (!M)
|
|
2619
2644
|
switch (I) {
|
|
2620
2645
|
case "url":
|
|
2621
|
-
|
|
2646
|
+
n = G.RulesUrl.validate(e, "https") || e.length === 0 ? "" : G.RulesUrl.message("url", (s = o[I]) != null && s.message ? (a = o[I]) == null ? void 0 : a.message : "url_incorrect"), M = n !== "";
|
|
2622
2647
|
break;
|
|
2623
2648
|
case "required":
|
|
2624
|
-
|
|
2649
|
+
n = G.RulesRequired.validate(e) ? "" : G.RulesRequired.message((l = o[I]) != null && l.message ? (r = o[I]) == null ? void 0 : r.message : "required"), M = n !== "";
|
|
2625
2650
|
break;
|
|
2626
2651
|
case "min":
|
|
2627
|
-
|
|
2652
|
+
n = G.RulesMin.validate(e, (i = o[I]) == null ? void 0 : i.value) ? "" : G.RulesMin.message((c = o[I]) != null && c.message ? (u = o[I]) == null ? void 0 : u.message : "very_small"), M = n !== "";
|
|
2628
2653
|
break;
|
|
2629
2654
|
case "max":
|
|
2630
|
-
|
|
2655
|
+
n = G.RulesMax.validate(e, (g = o[I]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((x = o[I]) != null && x.message ? (C = o[I]) == null ? void 0 : C.message : "vary_large"), M = n !== "";
|
|
2631
2656
|
break;
|
|
2632
2657
|
case "email":
|
|
2633
|
-
|
|
2658
|
+
n = G.RulesEmail.validate(e) ? "" : G.RulesMax.message((R = o[I]) != null && R.message ? ($ = o[I]) == null ? void 0 : $.message : "email_incorrect"), M = n !== "";
|
|
2634
2659
|
break;
|
|
2635
2660
|
case "number":
|
|
2636
|
-
|
|
2637
|
-
(H = o[I]) != null && H.message ? (
|
|
2638
|
-
),
|
|
2661
|
+
n = G.RulesNumber.validate(e) ? "" : G.RulesNumber.message(
|
|
2662
|
+
(H = o[I]) != null && H.message ? (Y = o[I]) == null ? void 0 : Y.message : "number_incorrect"
|
|
2663
|
+
), M = n !== "";
|
|
2639
2664
|
break;
|
|
2640
2665
|
}
|
|
2641
2666
|
}
|
|
2642
|
-
return
|
|
2667
|
+
return n;
|
|
2643
2668
|
}
|
|
2644
2669
|
}
|
|
2645
|
-
const
|
|
2670
|
+
const ms = new fs(), hs = { style: { display: "flex", "flex-direction": "column" } }, gs = {
|
|
2646
2671
|
key: 0,
|
|
2647
2672
|
class: "d-label"
|
|
2648
|
-
},
|
|
2673
|
+
}, vs = {
|
|
2649
2674
|
key: 0,
|
|
2650
2675
|
class: "text-red"
|
|
2651
|
-
},
|
|
2676
|
+
}, ys = { style: { display: "flex", "flex-direction": "row" } }, _s = { style: { flex: "1", position: "relative" } }, bs = /* @__PURE__ */ _("svg", {
|
|
2652
2677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2653
2678
|
viewBox: "0 0 24 24"
|
|
2654
2679
|
}, [
|
|
@@ -2656,9 +2681,9 @@ const mn = new fn(), hn = { style: { display: "flex", "flex-direction": "column"
|
|
|
2656
2681
|
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",
|
|
2657
2682
|
fill: "currentColor"
|
|
2658
2683
|
})
|
|
2659
|
-
], -1),
|
|
2660
|
-
|
|
2661
|
-
],
|
|
2684
|
+
], -1), xs = [
|
|
2685
|
+
bs
|
|
2686
|
+
], ks = ["id", "type", "placeholder", "disabled"], $s = /* @__PURE__ */ _("svg", {
|
|
2662
2687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2663
2688
|
viewBox: "0 0 24 24"
|
|
2664
2689
|
}, [
|
|
@@ -2666,15 +2691,15 @@ const mn = new fn(), hn = { style: { display: "flex", "flex-direction": "column"
|
|
|
2666
2691
|
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",
|
|
2667
2692
|
fill: "currentColor"
|
|
2668
2693
|
})
|
|
2669
|
-
], -1),
|
|
2670
|
-
|
|
2671
|
-
],
|
|
2694
|
+
], -1), ws = [
|
|
2695
|
+
$s
|
|
2696
|
+
], Ss = {
|
|
2672
2697
|
key: 1,
|
|
2673
2698
|
class: "d-help"
|
|
2674
|
-
},
|
|
2699
|
+
}, Ds = {
|
|
2675
2700
|
key: 2,
|
|
2676
2701
|
class: "d-error text-red"
|
|
2677
|
-
},
|
|
2702
|
+
}, Gs = {
|
|
2678
2703
|
__name: "DInputString",
|
|
2679
2704
|
props: {
|
|
2680
2705
|
form: Object,
|
|
@@ -2697,115 +2722,115 @@ const mn = new fn(), hn = { style: { display: "flex", "flex-direction": "column"
|
|
|
2697
2722
|
disabled: Boolean
|
|
2698
2723
|
},
|
|
2699
2724
|
emits: ["update:modelValue", "input", "blur"],
|
|
2700
|
-
setup(
|
|
2701
|
-
const
|
|
2725
|
+
setup(t, { expose: e, emit: o }) {
|
|
2726
|
+
const n = t, s = T(n.error), a = zt(), l = T(!1), r = T(null);
|
|
2702
2727
|
//!props.form ? ref(null) : props.form.fields[props.name].ref
|
|
2703
|
-
const i =
|
|
2704
|
-
get: () =>
|
|
2728
|
+
const i = h({
|
|
2729
|
+
get: () => n.modelValue,
|
|
2705
2730
|
//props.form?.fields[props.name].model.value,
|
|
2706
|
-
set: (
|
|
2707
|
-
o("update:modelValue",
|
|
2731
|
+
set: (M) => {
|
|
2732
|
+
o("update:modelValue", M);
|
|
2708
2733
|
}
|
|
2709
|
-
}), c =
|
|
2710
|
-
o("input",
|
|
2734
|
+
}), c = h(() => n.type === "password" ? "password" : "text"), u = h(() => n.scale), g = (M) => {
|
|
2735
|
+
o("input", M), x();
|
|
2711
2736
|
}, x = () => {
|
|
2712
|
-
if (!(!
|
|
2713
|
-
return
|
|
2737
|
+
if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
|
|
2738
|
+
return s.value = ms.validate(i.value, n.form.fields[n.name].rules), !!s.value;
|
|
2714
2739
|
};
|
|
2715
2740
|
me(() => {
|
|
2716
|
-
|
|
2741
|
+
C();
|
|
2717
2742
|
});
|
|
2718
|
-
const
|
|
2719
|
-
var
|
|
2720
|
-
(
|
|
2721
|
-
},
|
|
2743
|
+
const C = () => {
|
|
2744
|
+
var M;
|
|
2745
|
+
(M = r.value) == null || M.focus();
|
|
2746
|
+
}, R = () => {
|
|
2722
2747
|
i.value = "";
|
|
2723
|
-
}, $ = (
|
|
2724
|
-
l.value =
|
|
2725
|
-
}, H = (
|
|
2726
|
-
|
|
2727
|
-
},
|
|
2728
|
-
o("blur",
|
|
2748
|
+
}, $ = (M) => {
|
|
2749
|
+
l.value = M;
|
|
2750
|
+
}, H = (M) => {
|
|
2751
|
+
s.value = M;
|
|
2752
|
+
}, Y = (M) => {
|
|
2753
|
+
o("blur", M);
|
|
2729
2754
|
};
|
|
2730
|
-
return
|
|
2731
|
-
focus:
|
|
2755
|
+
return e({
|
|
2756
|
+
focus: C,
|
|
2732
2757
|
setError: H,
|
|
2733
2758
|
validate: x
|
|
2734
|
-
}), (
|
|
2735
|
-
var
|
|
2736
|
-
return d(),
|
|
2759
|
+
}), (M, I) => {
|
|
2760
|
+
var F, S, W, N, w, V, P, f, p, y, A, se, ve, ye, _e, be, Q, xe, de, ke, Le, he, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt;
|
|
2761
|
+
return d(), m("div", {
|
|
2737
2762
|
class: D(["d-input-string", u.value])
|
|
2738
2763
|
}, [
|
|
2739
|
-
_("div",
|
|
2740
|
-
|
|
2741
|
-
K(O(
|
|
2742
|
-
(
|
|
2764
|
+
_("div", hs, [
|
|
2765
|
+
n.label ? (d(), m("div", gs, [
|
|
2766
|
+
K(O(n.label), 1),
|
|
2767
|
+
(F = n.form) != null && F.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), m("span", vs, "*")) : k("", !0)
|
|
2743
2768
|
])) : k("", !0),
|
|
2744
|
-
_("div",
|
|
2745
|
-
(
|
|
2769
|
+
_("div", ys, [
|
|
2770
|
+
(W = (S = n.pre) == null ? void 0 : S.outside) != null && W.component ? (d(), m("div", {
|
|
2746
2771
|
key: 0,
|
|
2747
|
-
class: D(["d-pre",
|
|
2772
|
+
class: D(["d-pre", n.disabled ? "disabled" : ""])
|
|
2748
2773
|
}, [
|
|
2749
|
-
(d(), b(
|
|
2750
|
-
], 2)) : (
|
|
2774
|
+
(d(), b(U((w = (N = n.pre) == null ? void 0 : N.outside) == null ? void 0 : w.component)))
|
|
2775
|
+
], 2)) : (P = (V = n.pre) == null ? void 0 : V.outside) != null && P.text ? (d(), m("div", {
|
|
2751
2776
|
key: 1,
|
|
2752
|
-
class: D(["d-pre",
|
|
2777
|
+
class: D(["d-pre", n.disabled ? "disabled" : ""])
|
|
2753
2778
|
}, [
|
|
2754
2779
|
_("div", {
|
|
2755
2780
|
class: D(["d-text", l.value ? "focused" : ""])
|
|
2756
|
-
}, O((
|
|
2781
|
+
}, O((p = (f = n.pre) == null ? void 0 : f.outside) == null ? void 0 : p.text), 3)
|
|
2757
2782
|
], 2)) : k("", !0),
|
|
2758
|
-
_("div",
|
|
2759
|
-
(
|
|
2783
|
+
_("div", _s, [
|
|
2784
|
+
(A = (y = n.pre) == null ? void 0 : y.inside) != null && A.action && ((ve = (se = n.pre) == null ? void 0 : se.inside) == null ? void 0 : ve.action) === "clear" && ((ye = i.value) == null ? void 0 : ye.length) > 0 ? (d(), m("div", {
|
|
2760
2785
|
key: 0,
|
|
2761
2786
|
class: "d-pre-inside-button",
|
|
2762
|
-
onClick:
|
|
2763
|
-
},
|
|
2764
|
-
|
|
2765
|
-
id:
|
|
2787
|
+
onClick: R
|
|
2788
|
+
}, xs)) : k("", !0),
|
|
2789
|
+
oe(_("input", {
|
|
2790
|
+
id: E(a),
|
|
2766
2791
|
ref_key: "inputRef",
|
|
2767
2792
|
ref: r,
|
|
2768
2793
|
"onUpdate:modelValue": I[0] || (I[0] = (Ie) => i.value = Ie),
|
|
2769
2794
|
style: { width: "100%" },
|
|
2770
2795
|
type: c.value,
|
|
2771
|
-
placeholder:
|
|
2772
|
-
onInput:
|
|
2796
|
+
placeholder: n.placeholder,
|
|
2797
|
+
onInput: g,
|
|
2773
2798
|
onFocus: I[1] || (I[1] = (Ie) => $(!0)),
|
|
2774
|
-
onBlur:
|
|
2799
|
+
onBlur: Y,
|
|
2775
2800
|
onFocusout: I[2] || (I[2] = (Ie) => $(!1)),
|
|
2776
2801
|
class: D([
|
|
2777
|
-
(be = (_e =
|
|
2778
|
-
(
|
|
2779
|
-
(We = (Fe =
|
|
2780
|
-
(je = (Pe =
|
|
2802
|
+
(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" : "",
|
|
2803
|
+
(ke = (de = n.post) == null ? void 0 : de.outside) != null && ke.component || (he = (Le = n.post) == null ? void 0 : Le.outside) != null && he.text ? "has-post" : "",
|
|
2804
|
+
(We = (Fe = n.pre) == null ? void 0 : Fe.inside) != null && We.action ? "has-pre-inside-button" : "",
|
|
2805
|
+
(je = (Pe = n.post) == null ? void 0 : Pe.inside) != null && je.action ? "has-post-inside-button" : "",
|
|
2781
2806
|
l.value ? "focused" : ""
|
|
2782
2807
|
]),
|
|
2783
|
-
disabled:
|
|
2784
|
-
}, null, 42,
|
|
2808
|
+
disabled: n.disabled
|
|
2809
|
+
}, null, 42, ks), [
|
|
2785
2810
|
[De, i.value]
|
|
2786
2811
|
]),
|
|
2787
|
-
(Ye = (Xe =
|
|
2812
|
+
(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(), m("div", {
|
|
2788
2813
|
key: 1,
|
|
2789
2814
|
class: "d-post-inside-button",
|
|
2790
|
-
onClick:
|
|
2791
|
-
},
|
|
2815
|
+
onClick: R
|
|
2816
|
+
}, ws)) : k("", !0)
|
|
2792
2817
|
]),
|
|
2793
|
-
(Ke = (Ze =
|
|
2818
|
+
(Ke = (Ze = n.post) == null ? void 0 : Ze.outside) != null && Ke.component ? (d(), m("div", {
|
|
2794
2819
|
key: 2,
|
|
2795
|
-
class: D(["d-post",
|
|
2820
|
+
class: D(["d-post", n.disabled ? "disabled" : ""])
|
|
2796
2821
|
}, [
|
|
2797
|
-
(d(), b(
|
|
2798
|
-
], 2)) : (tt = (et =
|
|
2822
|
+
(d(), b(U((Qe = (Je = n.post) == null ? void 0 : Je.outside) == null ? void 0 : Qe.component)))
|
|
2823
|
+
], 2)) : (tt = (et = n.post) == null ? void 0 : et.outside) != null && tt.text ? (d(), m("div", {
|
|
2799
2824
|
key: 3,
|
|
2800
|
-
class: D(["d-post",
|
|
2825
|
+
class: D(["d-post", n.disabled ? "disabled" : ""])
|
|
2801
2826
|
}, [
|
|
2802
2827
|
_("div", {
|
|
2803
2828
|
class: D(["d-text", l.value ? "focused" : ""])
|
|
2804
|
-
}, O((
|
|
2829
|
+
}, O((nt = (ot = n.post) == null ? void 0 : ot.outside) == null ? void 0 : nt.text), 3)
|
|
2805
2830
|
], 2)) : k("", !0)
|
|
2806
2831
|
]),
|
|
2807
|
-
|
|
2808
|
-
|
|
2832
|
+
n.help ? (d(), m("div", Ss, O(n.help), 1)) : k("", !0),
|
|
2833
|
+
s.value ? (d(), m("div", Ds, O(s.value), 1)) : k("", !0)
|
|
2809
2834
|
])
|
|
2810
2835
|
], 2);
|
|
2811
2836
|
};
|
|
@@ -2813,70 +2838,70 @@ const mn = new fn(), hn = { style: { display: "flex", "flex-direction": "column"
|
|
|
2813
2838
|
}, fe = {
|
|
2814
2839
|
state: {},
|
|
2815
2840
|
getters: {
|
|
2816
|
-
getComponent(
|
|
2817
|
-
return fe.state[
|
|
2841
|
+
getComponent(t) {
|
|
2842
|
+
return fe.state[t];
|
|
2818
2843
|
},
|
|
2819
2844
|
getComponents() {
|
|
2820
2845
|
return fe.state;
|
|
2821
2846
|
}
|
|
2822
2847
|
},
|
|
2823
2848
|
mutations: {
|
|
2824
|
-
addComponent(
|
|
2825
|
-
fe.state.name =
|
|
2849
|
+
addComponent(t, e) {
|
|
2850
|
+
fe.state.name = e;
|
|
2826
2851
|
},
|
|
2827
|
-
addComponents(
|
|
2828
|
-
for (const
|
|
2829
|
-
|
|
2852
|
+
addComponents(t) {
|
|
2853
|
+
for (const e in t)
|
|
2854
|
+
t.hasOwnProperty(e) && (fe.state[e] = t[e]);
|
|
2830
2855
|
}
|
|
2831
2856
|
}
|
|
2832
|
-
}, wt = (
|
|
2833
|
-
typeof
|
|
2857
|
+
}, wt = (t) => {
|
|
2858
|
+
typeof t == "string" && (t = { title: "", text: t }), typeof t == "object" && q.emit("notification-add", t);
|
|
2834
2859
|
};
|
|
2835
|
-
wt.close = (
|
|
2836
|
-
|
|
2860
|
+
wt.close = (t) => {
|
|
2861
|
+
q.emit("notification-close", t);
|
|
2837
2862
|
};
|
|
2838
|
-
const
|
|
2839
|
-
mounted: function(
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
}, document.addEventListener("click",
|
|
2863
|
+
const Zs = () => ({ notify: wt }), Ks = {
|
|
2864
|
+
mounted: function(t, e) {
|
|
2865
|
+
t.clickOutsideEvent = function(o) {
|
|
2866
|
+
t === o.target || t.contains(o.target) || e.value(o, t);
|
|
2867
|
+
}, document.addEventListener("click", t.clickOutsideEvent);
|
|
2843
2868
|
},
|
|
2844
|
-
unmounted: function(
|
|
2845
|
-
document.removeEventListener("click",
|
|
2846
|
-
}
|
|
2847
|
-
},
|
|
2848
|
-
beforeMount(
|
|
2849
|
-
|
|
2850
|
-
o.key ===
|
|
2851
|
-
}, document.addEventListener("keydown",
|
|
2869
|
+
unmounted: function(t) {
|
|
2870
|
+
document.removeEventListener("click", t.clickOutsideEvent);
|
|
2871
|
+
}
|
|
2872
|
+
}, Js = {
|
|
2873
|
+
beforeMount(t, e) {
|
|
2874
|
+
t._keydownCallback = (o) => {
|
|
2875
|
+
o.key === e.arg && e.value();
|
|
2876
|
+
}, document.addEventListener("keydown", t._keydownCallback);
|
|
2852
2877
|
},
|
|
2853
|
-
unmounted(
|
|
2854
|
-
document.removeEventListener("keydown",
|
|
2878
|
+
unmounted(t, e) {
|
|
2879
|
+
document.removeEventListener("keydown", t._keydownCallback), delete t._keydownCallback;
|
|
2855
2880
|
}
|
|
2856
|
-
},
|
|
2857
|
-
beforeMount(
|
|
2858
|
-
|
|
2881
|
+
}, Qs = {
|
|
2882
|
+
beforeMount(t) {
|
|
2883
|
+
t.focus();
|
|
2859
2884
|
}
|
|
2860
2885
|
};
|
|
2861
|
-
function St(
|
|
2862
|
-
return
|
|
2886
|
+
function St(t) {
|
|
2887
|
+
return t.type.indexOf("mouse") !== -1 ? t.clientX : t.touches[0].clientX;
|
|
2863
2888
|
}
|
|
2864
|
-
function Dt(
|
|
2865
|
-
return
|
|
2889
|
+
function Dt(t) {
|
|
2890
|
+
return t.type.indexOf("mouse") !== -1 ? t.clientY : t.touches[0].clientY;
|
|
2866
2891
|
}
|
|
2867
|
-
var
|
|
2868
|
-
var
|
|
2892
|
+
var Ts = function() {
|
|
2893
|
+
var t = !1;
|
|
2869
2894
|
try {
|
|
2870
|
-
var
|
|
2895
|
+
var e = Object.defineProperty({}, "passive", {
|
|
2871
2896
|
get: function() {
|
|
2872
|
-
|
|
2897
|
+
t = !0;
|
|
2873
2898
|
}
|
|
2874
2899
|
});
|
|
2875
|
-
window.addEventListener("test", null,
|
|
2900
|
+
window.addEventListener("test", null, e);
|
|
2876
2901
|
} catch {
|
|
2877
2902
|
}
|
|
2878
|
-
return
|
|
2879
|
-
}(),
|
|
2903
|
+
return t;
|
|
2904
|
+
}(), Cs = {
|
|
2880
2905
|
disableClick: !1,
|
|
2881
2906
|
tapTolerance: 10,
|
|
2882
2907
|
// px
|
|
@@ -2892,53 +2917,53 @@ var Tn = function() {
|
|
|
2892
2917
|
rollOverFrequency: 100
|
|
2893
2918
|
// ms
|
|
2894
2919
|
};
|
|
2895
|
-
function
|
|
2896
|
-
var
|
|
2897
|
-
o && (
|
|
2898
|
-
|
|
2899
|
-
},
|
|
2920
|
+
function $e(t) {
|
|
2921
|
+
var e = this.$$touchObj, o = t.type.indexOf("touch") >= 0, n = t.type.indexOf("mouse") >= 0, s = this;
|
|
2922
|
+
o && (e.lastTouchStartTime = t.timeStamp), !(n && e.lastTouchStartTime && t.timeStamp - e.lastTouchStartTime < 350) && (e.touchStarted || (Tt(this), e.touchStarted = !0, e.touchMoved = !1, e.swipeOutBounded = !1, e.startX = St(t), e.startY = Dt(t), e.currentX = 0, e.currentY = 0, e.touchStartTime = t.timeStamp, e.hasSwipe = Z(this, "swipe") || Z(this, "swipe.left") || Z(this, "swipe.right") || Z(this, "swipe.top") || Z(this, "swipe.bottom"), Z(this, "hold") && (e.touchHoldTimer = setTimeout(function() {
|
|
2923
|
+
e.touchHoldTimer = null, ee(t, s, "hold");
|
|
2924
|
+
}, e.options.touchHoldTolerance)), ee(t, this, "press")));
|
|
2900
2925
|
}
|
|
2901
|
-
function we(
|
|
2902
|
-
var
|
|
2903
|
-
if (
|
|
2904
|
-
if (
|
|
2905
|
-
var l =
|
|
2906
|
-
|
|
2926
|
+
function we(t) {
|
|
2927
|
+
var e = this.$$touchObj, o = St(t), n = Dt(t), s = e.currentX !== o || e.currentY !== n;
|
|
2928
|
+
if (e.currentX = o, e.currentY = n, e.touchMoved) {
|
|
2929
|
+
if (e.hasSwipe && !e.swipeOutBounded) {
|
|
2930
|
+
var l = e.options.swipeTolerance;
|
|
2931
|
+
e.swipeOutBounded = Math.abs(e.startX - e.currentX) > l && Math.abs(e.startY - e.currentY) > l;
|
|
2907
2932
|
}
|
|
2908
2933
|
} else {
|
|
2909
|
-
var a =
|
|
2910
|
-
|
|
2934
|
+
var a = e.options.tapTolerance;
|
|
2935
|
+
e.touchMoved = Math.abs(e.startX - e.currentX) > a || Math.abs(e.startY - e.currentY) > a, e.touchMoved && (ze(e), ee(t, this, "drag.once"));
|
|
2911
2936
|
}
|
|
2912
|
-
if (Z(this, "rollover") &&
|
|
2913
|
-
var r =
|
|
2914
|
-
(
|
|
2937
|
+
if (Z(this, "rollover") && s) {
|
|
2938
|
+
var r = t.timeStamp, i = e.options.rollOverFrequency;
|
|
2939
|
+
(e.touchRollTime == null || r > e.touchRollTime + i) && (e.touchRollTime = r, ee(t, this, "rollover"));
|
|
2915
2940
|
}
|
|
2916
|
-
if (Z(this, "drag") &&
|
|
2917
|
-
var r =
|
|
2918
|
-
(
|
|
2941
|
+
if (Z(this, "drag") && e.touchStarted && e.touchMoved && s) {
|
|
2942
|
+
var r = t.timeStamp, i = e.options.dragFrequency;
|
|
2943
|
+
(e.touchDragTime == null || r > e.touchDragTime + i) && (e.touchDragTime = r, ee(t, this, "drag"));
|
|
2919
2944
|
}
|
|
2920
2945
|
}
|
|
2921
2946
|
function rt() {
|
|
2922
|
-
var
|
|
2923
|
-
ze(
|
|
2947
|
+
var t = this.$$touchObj;
|
|
2948
|
+
ze(t), Ve(this), t.touchStarted = t.touchMoved = !1, t.startX = t.startY = 0;
|
|
2924
2949
|
}
|
|
2925
|
-
function Se(
|
|
2926
|
-
var
|
|
2927
|
-
o && (
|
|
2928
|
-
var
|
|
2929
|
-
if (ze(
|
|
2930
|
-
if (
|
|
2931
|
-
if (
|
|
2932
|
-
var a =
|
|
2933
|
-
(r > a || i > a) && (r > a ? l =
|
|
2950
|
+
function Se(t) {
|
|
2951
|
+
var e = this.$$touchObj, o = t.type.indexOf("touch") >= 0, n = t.type.indexOf("mouse") >= 0;
|
|
2952
|
+
o && (e.lastTouchEndTime = t.timeStamp);
|
|
2953
|
+
var s = o && !e.touchHoldTimer;
|
|
2954
|
+
if (ze(e), e.touchStarted = !1, Ve(this), !(n && e.lastTouchEndTime && t.timeStamp - e.lastTouchEndTime < 350))
|
|
2955
|
+
if (ee(t, this, "release"), e.touchMoved) {
|
|
2956
|
+
if (e.hasSwipe && !e.swipeOutBounded) {
|
|
2957
|
+
var a = e.options.swipeTolerance, l, r = Math.abs(e.startY - e.currentY), i = Math.abs(e.startX - e.currentX);
|
|
2958
|
+
(r > a || i > a) && (r > a ? l = e.startY > e.currentY ? "top" : "bottom" : l = e.startX > e.currentX ? "left" : "right", Z(this, "swipe." + l) ? ee(t, this, "swipe." + l, l) : ee(t, this, "swipe", l));
|
|
2934
2959
|
}
|
|
2935
|
-
} else if (Z(this, "longtap") &&
|
|
2936
|
-
|
|
2937
|
-
else if (Z(this, "hold") &&
|
|
2938
|
-
|
|
2960
|
+
} else if (Z(this, "longtap") && t.timeStamp - e.touchStartTime > e.options.longTapTimeInterval)
|
|
2961
|
+
t.cancelable && t.preventDefault(), ee(t, this, "longtap");
|
|
2962
|
+
else if (Z(this, "hold") && s) {
|
|
2963
|
+
t.cancelable && t.preventDefault();
|
|
2939
2964
|
return;
|
|
2940
2965
|
} else
|
|
2941
|
-
|
|
2966
|
+
ee(t, this, "tap");
|
|
2942
2967
|
}
|
|
2943
2968
|
function dt() {
|
|
2944
2969
|
Tt(this);
|
|
@@ -2946,124 +2971,124 @@ function dt() {
|
|
|
2946
2971
|
function ct() {
|
|
2947
2972
|
Ve(this);
|
|
2948
2973
|
}
|
|
2949
|
-
function Z(
|
|
2950
|
-
var o =
|
|
2974
|
+
function Z(t, e) {
|
|
2975
|
+
var o = t.$$touchObj.callbacks[e];
|
|
2951
2976
|
return o != null && o.length > 0;
|
|
2952
2977
|
}
|
|
2953
|
-
function
|
|
2954
|
-
var
|
|
2978
|
+
function ee(t, e, o, n) {
|
|
2979
|
+
var s = e.$$touchObj, a = s.callbacks[o];
|
|
2955
2980
|
if (a == null || a.length === 0)
|
|
2956
2981
|
return null;
|
|
2957
2982
|
for (var l = 0; l < a.length; l++) {
|
|
2958
2983
|
var r = a[l];
|
|
2959
|
-
r.modifiers.stop &&
|
|
2984
|
+
r.modifiers.stop && t.stopPropagation(), r.modifiers.prevent && t.preventDefault(), !(r.modifiers.self && t.target !== t.currentTarget) && typeof r.value == "function" && (n ? r.value(n, t) : r.value(t));
|
|
2960
2985
|
}
|
|
2961
2986
|
}
|
|
2962
|
-
function Tt(
|
|
2963
|
-
var
|
|
2964
|
-
|
|
2987
|
+
function Tt(t) {
|
|
2988
|
+
var e = t.$$touchObj.options.touchClass;
|
|
2989
|
+
e && t.classList.add(e);
|
|
2965
2990
|
}
|
|
2966
|
-
function Ve(
|
|
2967
|
-
var
|
|
2968
|
-
|
|
2991
|
+
function Ve(t) {
|
|
2992
|
+
var e = t.$$touchObj.options.touchClass;
|
|
2993
|
+
e && t.classList.remove(e);
|
|
2969
2994
|
}
|
|
2970
|
-
function ze(
|
|
2971
|
-
|
|
2995
|
+
function ze(t) {
|
|
2996
|
+
t.touchHoldTimer && (clearTimeout(t.touchHoldTimer), t.touchHoldTimer = null);
|
|
2972
2997
|
}
|
|
2973
|
-
function
|
|
2974
|
-
var o =
|
|
2998
|
+
function Ls(t, e) {
|
|
2999
|
+
var o = t.$$touchObj || {
|
|
2975
3000
|
// an object contains all callbacks registered,
|
|
2976
3001
|
// key is event name, value is an array
|
|
2977
3002
|
callbacks: {},
|
|
2978
3003
|
// prevent bind twice, set to true when event bound
|
|
2979
3004
|
hasBindTouchEvents: !1,
|
|
2980
3005
|
// default options, would be override by v-touch-options
|
|
2981
|
-
options:
|
|
3006
|
+
options: Cs
|
|
2982
3007
|
};
|
|
2983
|
-
return
|
|
3008
|
+
return e && (o.options = Object.assign({}, o.options, e)), t.$$touchObj = o, t.$$touchObj;
|
|
2984
3009
|
}
|
|
2985
3010
|
const ea = {
|
|
2986
|
-
beforeMount: function(
|
|
2987
|
-
const o =
|
|
2988
|
-
let
|
|
2989
|
-
const
|
|
2990
|
-
switch (
|
|
3011
|
+
beforeMount: function(t, e) {
|
|
3012
|
+
const o = Ls(t);
|
|
3013
|
+
let n = Ts ? { passive: !0 } : !1;
|
|
3014
|
+
const s = e.arg || "tap";
|
|
3015
|
+
switch (s) {
|
|
2991
3016
|
case "swipe":
|
|
2992
|
-
let a =
|
|
3017
|
+
let a = e.modifiers;
|
|
2993
3018
|
if (a.left || a.right || a.top || a.bottom) {
|
|
2994
|
-
for (let l in
|
|
3019
|
+
for (let l in e.modifiers)
|
|
2995
3020
|
if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
|
|
2996
3021
|
let r = "swipe." + l;
|
|
2997
|
-
o.callbacks[r] = o.callbacks[r] || [], o.callbacks[r].push(
|
|
3022
|
+
o.callbacks[r] = o.callbacks[r] || [], o.callbacks[r].push(e);
|
|
2998
3023
|
}
|
|
2999
3024
|
} else
|
|
3000
|
-
o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(
|
|
3025
|
+
o.callbacks.swipe = o.callbacks.swipe || [], o.callbacks.swipe.push(e);
|
|
3001
3026
|
break;
|
|
3002
3027
|
case "press":
|
|
3003
3028
|
case "drag":
|
|
3004
|
-
|
|
3029
|
+
e.modifiers.disablePassive && (n = !1);
|
|
3005
3030
|
default:
|
|
3006
|
-
o.callbacks[
|
|
3031
|
+
o.callbacks[s] = o.callbacks[s] || [], o.callbacks[s].push(e);
|
|
3007
3032
|
}
|
|
3008
|
-
o.hasBindTouchEvents || (
|
|
3033
|
+
o.hasBindTouchEvents || (t.addEventListener("touchstart", $e, n), t.addEventListener("touchmove", we, n), t.addEventListener("touchcancel", rt), t.addEventListener("touchend", Se), o.options.disableClick || (t.addEventListener("mousedown", $e), t.addEventListener("mousemove", we), t.addEventListener("mouseup", Se), t.addEventListener("mouseenter", dt), t.addEventListener("mouseleave", ct)), o.hasBindTouchEvents = !0);
|
|
3009
3034
|
},
|
|
3010
|
-
unmounted: function(
|
|
3011
|
-
|
|
3035
|
+
unmounted: function(t) {
|
|
3036
|
+
t.removeEventListener("touchstart", $e), t.removeEventListener("touchmove", we), t.removeEventListener("touchcancel", rt), t.removeEventListener("touchend", Se), t.$$touchObj && !t.$$touchObj.options.disableClick && (t.removeEventListener("mousedown", $e), t.removeEventListener("mousemove", we), t.removeEventListener("mouseup", Se), t.removeEventListener("mouseenter", dt), t.removeEventListener("mouseleave", ct)), delete t.$$touchObj;
|
|
3012
3037
|
}
|
|
3013
3038
|
};
|
|
3014
3039
|
export {
|
|
3015
|
-
|
|
3040
|
+
Bs as DAccordion,
|
|
3016
3041
|
Jo as DAlertDialog,
|
|
3017
3042
|
co as DBadge,
|
|
3018
3043
|
ie as DButton,
|
|
3019
|
-
|
|
3020
|
-
|
|
3044
|
+
Hs as DCard,
|
|
3045
|
+
Fs as DCheckbox,
|
|
3021
3046
|
uo as DCollapse,
|
|
3022
3047
|
fe as DComponentStore,
|
|
3023
|
-
|
|
3024
|
-
|
|
3048
|
+
Ns as DConfigProvider,
|
|
3049
|
+
en as DConfirmDialog,
|
|
3025
3050
|
Io as DContextMenu,
|
|
3026
|
-
|
|
3051
|
+
Ws as DDialogProvider,
|
|
3027
3052
|
at as DDrag,
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3053
|
+
Lo as DDrop,
|
|
3054
|
+
As as DDropdown,
|
|
3055
|
+
qs as DForm,
|
|
3031
3056
|
pe as DGlobalStore,
|
|
3032
|
-
|
|
3057
|
+
Xs as DGrid,
|
|
3033
3058
|
re as DIcon,
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3059
|
+
te as DIconStore,
|
|
3060
|
+
Ys as DImage,
|
|
3061
|
+
zs as DInfoProgress,
|
|
3062
|
+
Es as DInput,
|
|
3063
|
+
Gs as DInputString,
|
|
3064
|
+
Ms as DLayoutAdmin,
|
|
3040
3065
|
Oo as DLayoutContent,
|
|
3041
3066
|
No as DLayoutFooter,
|
|
3042
|
-
|
|
3067
|
+
Bo as DLayoutHeader,
|
|
3043
3068
|
Ro as DLayoutSidebar,
|
|
3044
3069
|
Mo as DLayoutTab,
|
|
3045
3070
|
bt as DMenu,
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3071
|
+
kt as DModal,
|
|
3072
|
+
Vs as DNotificationProvider,
|
|
3073
|
+
an as DPanel,
|
|
3074
|
+
Os as DScroll,
|
|
3075
|
+
Rs as DScrollProvider,
|
|
3076
|
+
Ps as DSelect,
|
|
3077
|
+
js as DTabs,
|
|
3078
|
+
Us as DTextarea,
|
|
3054
3079
|
Te as DTransferStore,
|
|
3055
3080
|
xt as DTree,
|
|
3056
3081
|
To as DTreeItem,
|
|
3057
3082
|
v as DTreeStore,
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3083
|
+
G as Rules,
|
|
3084
|
+
Nn as alert,
|
|
3085
|
+
Ks as clickOutside,
|
|
3086
|
+
Mn as confirm,
|
|
3087
|
+
q as emitter,
|
|
3088
|
+
Co as eventsBus,
|
|
3089
|
+
Qs as focus,
|
|
3090
|
+
Js as keydown,
|
|
3066
3091
|
wt as notify,
|
|
3067
3092
|
ea as touch,
|
|
3068
|
-
|
|
3093
|
+
Zs as useNotification
|
|
3069
3094
|
};
|