doph-js 0.2.23 → 0.2.25
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 +617 -562
- package/dist/dophJs.umd.cjs +1 -1
- 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 _e, computed as p, h as Ee, openBlock as d, createBlock as _, unref as I, ref as T, createElementBlock as m, Fragment as te, normalizeClass as E, renderSlot as S, createCommentVNode as k, normalizeStyle as O, resolveDynamicComponent as P, createStaticVNode as Ae, onMounted as ue, toDisplayString as M, withDirectives as oe, createElementVNode as x, vModelText as ve, withCtx as D, createTextVNode as U, Transition as Se, withModifiers as q, resolveComponent as st, resolveDirective as Te, createVNode as ne, renderList as fe, pushScopeId as at, popScopeId as it, reactive as we, Teleport as Ve, nextTick as ze, getCurrentInstance as Re, watch as We, onUnmounted as lt, mergeProps as re, useCssVars as be, shallowRef as rt, defineComponent as dt, normalizeProps as ct, guardReactiveProps as ut, TransitionGroup as Fe, vModelCheckbox as ft, vModelSelect as pt, toRef as mt, KeepAlive as ht, toRefs as gt } from "vue";
|
|
2
2
|
const ce = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -8,13 +8,13 @@ const ce = {
|
|
|
8
8
|
className: String
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const o = e, t =
|
|
11
|
+
const o = e, t = _e(), n = p(() => {
|
|
12
12
|
const { className: r } = o;
|
|
13
13
|
return r === void 0 ? "icon" : ["icon", r].join(" ");
|
|
14
14
|
}), s = p(() => {
|
|
15
15
|
const { color: r } = o;
|
|
16
16
|
return r === void 0 ? null : r;
|
|
17
|
-
}),
|
|
17
|
+
}), a = p(() => {
|
|
18
18
|
const r = o.size ?? null;
|
|
19
19
|
if (r !== void 0)
|
|
20
20
|
return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
|
|
@@ -24,12 +24,12 @@ const ce = {
|
|
|
24
24
|
class: n.value,
|
|
25
25
|
style: {
|
|
26
26
|
color: s.value,
|
|
27
|
-
fontSize:
|
|
27
|
+
fontSize: a.value
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
o.component ? Ee(o.component) : t
|
|
31
31
|
));
|
|
32
|
-
return (r,
|
|
32
|
+
return (r, i) => (d(), _(I(l)));
|
|
33
33
|
}
|
|
34
34
|
}, Z = {
|
|
35
35
|
state: {},
|
|
@@ -58,7 +58,7 @@ function Pe(e) {
|
|
|
58
58
|
n += t.offsetLeft - t.scrollLeft, s += t.offsetTop - t.scrollTop, t = t.offsetParent;
|
|
59
59
|
return { top: s, left: n, x: o.x, y: o.y, width: o.width, height: o.height };
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const K = (e, o) => {
|
|
62
62
|
const t = e.__vccOpts || e;
|
|
63
63
|
for (const [n, s] of o)
|
|
64
64
|
t[n] = s;
|
|
@@ -102,34 +102,34 @@ const oe = (e, o) => {
|
|
|
102
102
|
},
|
|
103
103
|
emits: ["click", "contextmenu"],
|
|
104
104
|
setup(e, { expose: o, emit: t }) {
|
|
105
|
-
const n = e, s =
|
|
105
|
+
const n = e, s = _e(), a = T(null), l = p(() => n.icon ? Z.getters.getIcon(n.icon) : null), r = ($) => {
|
|
106
106
|
t("click", $);
|
|
107
|
-
},
|
|
107
|
+
}, i = ($) => {
|
|
108
108
|
t("contextmenu", $);
|
|
109
|
-
}, c = p(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = p(() => n.disabled ? "disabled" : ""),
|
|
109
|
+
}, c = p(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = p(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], b = p(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = p(() => {
|
|
110
110
|
const $ = n.outline ? "-outline" : "";
|
|
111
111
|
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${$}` : "";
|
|
112
112
|
});
|
|
113
113
|
return o({
|
|
114
|
-
elementSize: () => Pe(
|
|
115
|
-
}), ($,
|
|
116
|
-
l.value ?
|
|
114
|
+
elementSize: () => Pe(a)
|
|
115
|
+
}), ($, R) => (d(), m(te, null, [
|
|
116
|
+
l.value ? k("", !0) : (d(), m("div", {
|
|
117
117
|
key: 0,
|
|
118
118
|
ref_key: "el",
|
|
119
|
-
ref:
|
|
119
|
+
ref: a,
|
|
120
120
|
onClick: r,
|
|
121
|
-
onContextmenu:
|
|
121
|
+
onContextmenu: i,
|
|
122
122
|
class: E(["button", [n.class, c.value, C.value, u.value].join(" ")])
|
|
123
123
|
}, [
|
|
124
|
-
|
|
125
|
-
n.loading ? (d(),
|
|
124
|
+
S($.$slots, "default", {}, void 0, !0),
|
|
125
|
+
n.loading ? (d(), m("svg", vt, _t)) : k("", !0)
|
|
126
126
|
], 34)),
|
|
127
|
-
l.value ? (d(),
|
|
127
|
+
l.value ? (d(), m("div", {
|
|
128
128
|
key: 1,
|
|
129
129
|
ref_key: "el",
|
|
130
|
-
ref:
|
|
130
|
+
ref: a,
|
|
131
131
|
onClick: r,
|
|
132
|
-
onContextmenu:
|
|
132
|
+
onContextmenu: i,
|
|
133
133
|
class: E(["button button-ext", [n.class, c.value, b.value, C.value, u.value].join(" ")]),
|
|
134
134
|
style: O(n.style)
|
|
135
135
|
}, [
|
|
@@ -137,15 +137,15 @@ const oe = (e, o) => {
|
|
|
137
137
|
key: 0,
|
|
138
138
|
component: l.value,
|
|
139
139
|
color: "inherit"
|
|
140
|
-
}, null, 8, ["component"])) :
|
|
141
|
-
I(s).default ? (d(),
|
|
142
|
-
|
|
143
|
-
])) :
|
|
144
|
-
n.loading ? (d(),
|
|
145
|
-
], 38)) :
|
|
140
|
+
}, null, 8, ["component"])) : k("", !0),
|
|
141
|
+
I(s).default ? (d(), m("div", bt, [
|
|
142
|
+
S($.$slots, "default", {}, void 0, !0)
|
|
143
|
+
])) : k("", !0),
|
|
144
|
+
n.loading ? (d(), m("svg", xt, kt)) : k("", !0)
|
|
145
|
+
], 38)) : k("", !0)
|
|
146
146
|
], 64));
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, ee = /* @__PURE__ */ K(St, [["__scopeId", "data-v-e5cd6ccd"]]);
|
|
149
149
|
const Tt = {
|
|
150
150
|
key: 0,
|
|
151
151
|
class: "d-input"
|
|
@@ -159,14 +159,14 @@ const Tt = {
|
|
|
159
159
|
}, It = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "label"
|
|
162
|
-
}, Lt = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Et = { style: { flex: "1" } }, Bt = ["placeholder"],
|
|
162
|
+
}, Lt = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Et = { style: { flex: "1" } }, Bt = ["placeholder"], Nt = {
|
|
163
163
|
key: 2,
|
|
164
164
|
class: "d-input",
|
|
165
165
|
style: { display: "flex", "flex-direction": "column" }
|
|
166
|
-
},
|
|
166
|
+
}, Mt = {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: "label"
|
|
169
|
-
}, Ot = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Ht = { style: { flex: "1" } }, At = ["placeholder"],
|
|
169
|
+
}, Ot = { style: { display: "flex", "align-items": "flex-end", "justify-content": "flex-start" } }, Ht = { style: { flex: "1" } }, At = ["placeholder"], Vt = {
|
|
170
170
|
__name: "DInput",
|
|
171
171
|
props: {
|
|
172
172
|
label: String,
|
|
@@ -180,13 +180,13 @@ const Tt = {
|
|
|
180
180
|
},
|
|
181
181
|
emits: ["update:modelValue"],
|
|
182
182
|
setup(e, { expose: o, emit: t }) {
|
|
183
|
-
const n = e, s =
|
|
183
|
+
const n = e, s = T(null), a = p(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = p({
|
|
184
184
|
get: () => n.modelValue,
|
|
185
|
-
set: (
|
|
186
|
-
t("update:modelValue",
|
|
185
|
+
set: (i) => {
|
|
186
|
+
t("update:modelValue", i);
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
ue(() => {
|
|
190
190
|
n.focus && r();
|
|
191
191
|
});
|
|
192
192
|
const r = () => {
|
|
@@ -194,47 +194,47 @@ const Tt = {
|
|
|
194
194
|
};
|
|
195
195
|
return o({
|
|
196
196
|
focus: r
|
|
197
|
-
}), (
|
|
198
|
-
n.label ? (d(),
|
|
199
|
-
|
|
197
|
+
}), (i, c) => !n.post && !n.pre ? (d(), m("div", Tt, [
|
|
198
|
+
n.label ? (d(), m("div", wt, M(n.label), 1)) : k("", !0),
|
|
199
|
+
oe(x("input", {
|
|
200
200
|
ref_key: "inputRef",
|
|
201
201
|
ref: s,
|
|
202
202
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
|
|
203
203
|
type: "text",
|
|
204
|
-
class: E(
|
|
204
|
+
class: E(a.value),
|
|
205
205
|
placeholder: n.placeholder,
|
|
206
206
|
style: { width: "100%" }
|
|
207
207
|
}, null, 10, Dt), [
|
|
208
|
-
[
|
|
208
|
+
[ve, l.value]
|
|
209
209
|
])
|
|
210
|
-
])) : n.post && n.post.click && !n.pre ? (d(),
|
|
211
|
-
n.label ? (d(),
|
|
210
|
+
])) : n.post && n.post.click && !n.pre ? (d(), m("div", Ct, [
|
|
211
|
+
n.label ? (d(), m("div", It, M(n.label), 1)) : k("", !0),
|
|
212
212
|
x("div", Lt, [
|
|
213
213
|
x("div", Et, [
|
|
214
|
-
|
|
214
|
+
oe(x("input", {
|
|
215
215
|
ref_key: "inputRef",
|
|
216
216
|
ref: s,
|
|
217
|
-
class: E(["d-input-post-field",
|
|
217
|
+
class: E(["d-input-post-field", a.value]),
|
|
218
218
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
|
|
219
219
|
type: "text",
|
|
220
220
|
placeholder: n.placeholder,
|
|
221
221
|
style: { width: "100%" }
|
|
222
222
|
}, null, 10, Bt), [
|
|
223
|
-
[
|
|
223
|
+
[ve, l.value]
|
|
224
224
|
])
|
|
225
225
|
]),
|
|
226
|
-
n.post.label ? (d(), _(
|
|
226
|
+
n.post.label ? (d(), _(ee, {
|
|
227
227
|
key: 0,
|
|
228
228
|
scale: n.scale,
|
|
229
229
|
class: E(["d-input-post-button", n.post.class]),
|
|
230
230
|
onClick: n.post.click,
|
|
231
231
|
icon: n.post.icon
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
234
|
-
U(
|
|
233
|
+
default: D(() => [
|
|
234
|
+
U(M(n.post.label), 1)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
|
-
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(
|
|
237
|
+
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(ee, {
|
|
238
238
|
key: 1,
|
|
239
239
|
scale: n.scale,
|
|
240
240
|
class: E(["d-input-post-button", n.post.class]),
|
|
@@ -242,21 +242,21 @@ const Tt = {
|
|
|
242
242
|
icon: n.post.icon
|
|
243
243
|
}, null, 8, ["scale", "onClick", "icon", "class"]))
|
|
244
244
|
])
|
|
245
|
-
])) : !n.post && n.pre && n.pre.click ? (d(),
|
|
246
|
-
n.label ? (d(),
|
|
245
|
+
])) : !n.post && n.pre && n.pre.click ? (d(), m("div", Nt, [
|
|
246
|
+
n.label ? (d(), m("div", Mt, M(n.label), 1)) : k("", !0),
|
|
247
247
|
x("div", Ot, [
|
|
248
|
-
n.pre.label ? (d(), _(
|
|
248
|
+
n.pre.label ? (d(), _(ee, {
|
|
249
249
|
key: 0,
|
|
250
250
|
scale: n.scale,
|
|
251
251
|
class: E(["d-input-pre-button", n.pre.class]),
|
|
252
252
|
onClick: n.pre.click,
|
|
253
253
|
icon: n.pre.icon
|
|
254
254
|
}, {
|
|
255
|
-
default:
|
|
256
|
-
U(
|
|
255
|
+
default: D(() => [
|
|
256
|
+
U(M(n.pre.label), 1)
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
|
-
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(
|
|
259
|
+
}, 8, ["scale", "onClick", "icon", "class"])) : (d(), _(ee, {
|
|
260
260
|
key: 1,
|
|
261
261
|
scale: n.scale,
|
|
262
262
|
class: E(["d-input-pre-button", n.pre.class]),
|
|
@@ -264,22 +264,22 @@ const Tt = {
|
|
|
264
264
|
icon: n.pre.icon
|
|
265
265
|
}, null, 8, ["scale", "onClick", "icon", "class"])),
|
|
266
266
|
x("div", Ht, [
|
|
267
|
-
|
|
267
|
+
oe(x("input", {
|
|
268
268
|
ref_key: "inputRef",
|
|
269
269
|
ref: s,
|
|
270
|
-
class: E(["d-input-pre-field",
|
|
270
|
+
class: E(["d-input-pre-field", a.value]),
|
|
271
271
|
"onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
|
|
272
272
|
type: "text",
|
|
273
273
|
placeholder: n.placeholder,
|
|
274
274
|
style: { width: "100%" }
|
|
275
275
|
}, null, 10, At), [
|
|
276
|
-
[
|
|
276
|
+
[ve, l.value]
|
|
277
277
|
])
|
|
278
278
|
])
|
|
279
279
|
])
|
|
280
|
-
])) :
|
|
280
|
+
])) : k("", !0);
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, Bn = /* @__PURE__ */ K(Vt, [["__scopeId", "data-v-0b6b3cf1"]]), zt = {
|
|
283
283
|
__name: "DBadge",
|
|
284
284
|
props: {
|
|
285
285
|
scale: String,
|
|
@@ -295,13 +295,13 @@ const Tt = {
|
|
|
295
295
|
const s = o.stress ? "-stress" : "";
|
|
296
296
|
return o.type === "primary" ? `badge${s}-blue` : o.type === "success" ? `badge${s}-green` : o.type === "error" ? `badge${s}-red` : o.type === "warning" ? `badge${s}-orange` : o.type === "wait" ? `badge${s}-violet` : o.stress ? `badge${s}-gray` : "";
|
|
297
297
|
});
|
|
298
|
-
return (s,
|
|
298
|
+
return (s, a) => (d(), m("div", {
|
|
299
299
|
class: E(["badge", [o.class, t.value, n.value].join(" ")])
|
|
300
300
|
}, [
|
|
301
|
-
|
|
301
|
+
S(s.$slots, "default")
|
|
302
302
|
], 2));
|
|
303
303
|
}
|
|
304
|
-
},
|
|
304
|
+
}, Q = "0px", Rt = {
|
|
305
305
|
__name: "DCollapse",
|
|
306
306
|
props: {
|
|
307
307
|
duration: {
|
|
@@ -326,41 +326,41 @@ const Tt = {
|
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
328
|
setup(e) {
|
|
329
|
-
const o = e, t = (
|
|
330
|
-
height:
|
|
331
|
-
width:
|
|
332
|
-
position:
|
|
333
|
-
visibility:
|
|
334
|
-
overflow:
|
|
335
|
-
paddingTop:
|
|
336
|
-
paddingBottom:
|
|
337
|
-
borderTopWidth:
|
|
338
|
-
borderBottomWidth:
|
|
339
|
-
marginTop:
|
|
340
|
-
marginBottom:
|
|
341
|
-
}), n = (
|
|
342
|
-
const { width: u } = getComputedStyle(
|
|
343
|
-
|
|
344
|
-
let { height:
|
|
345
|
-
return
|
|
346
|
-
}, s = (
|
|
347
|
-
const C =
|
|
348
|
-
|
|
349
|
-
|
|
329
|
+
const o = e, t = (i) => ({
|
|
330
|
+
height: i.style.height,
|
|
331
|
+
width: i.style.width,
|
|
332
|
+
position: i.style.position,
|
|
333
|
+
visibility: i.style.visibility,
|
|
334
|
+
overflow: i.style.overflow,
|
|
335
|
+
paddingTop: i.style.paddingTop,
|
|
336
|
+
paddingBottom: i.style.paddingBottom,
|
|
337
|
+
borderTopWidth: i.style.borderTopWidth,
|
|
338
|
+
borderBottomWidth: i.style.borderBottomWidth,
|
|
339
|
+
marginTop: i.style.marginTop,
|
|
340
|
+
marginBottom: i.style.marginBottom
|
|
341
|
+
}), n = (i, c) => {
|
|
342
|
+
const { width: u } = getComputedStyle(i);
|
|
343
|
+
i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
|
|
344
|
+
let { height: h } = getComputedStyle(i);
|
|
345
|
+
return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = Q, i.style.overflow = "hidden", c.height && c.height !== Q ? c.height : h;
|
|
346
|
+
}, s = (i, c, u, h, b) => {
|
|
347
|
+
const C = i.animate(h, b);
|
|
348
|
+
i.style.height = c.height, C.onfinish = () => {
|
|
349
|
+
i.style.overflow = c.overflow, u();
|
|
350
350
|
};
|
|
351
|
-
},
|
|
351
|
+
}, a = (i, c) => [
|
|
352
352
|
{
|
|
353
|
-
height:
|
|
353
|
+
height: Q,
|
|
354
354
|
opacity: o.opacityClosed,
|
|
355
|
-
paddingTop:
|
|
356
|
-
paddingBottom:
|
|
357
|
-
borderTopWidth:
|
|
358
|
-
borderBottomWidth:
|
|
359
|
-
marginTop:
|
|
360
|
-
marginBottom:
|
|
355
|
+
paddingTop: Q,
|
|
356
|
+
paddingBottom: Q,
|
|
357
|
+
borderTopWidth: Q,
|
|
358
|
+
borderBottomWidth: Q,
|
|
359
|
+
marginTop: Q,
|
|
360
|
+
marginBottom: Q
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
|
-
height:
|
|
363
|
+
height: i,
|
|
364
364
|
opacity: o.opacityOpened,
|
|
365
365
|
paddingTop: c.paddingTop,
|
|
366
366
|
paddingBottom: c.paddingBottom,
|
|
@@ -369,27 +369,27 @@ const Tt = {
|
|
|
369
369
|
marginTop: c.marginTop,
|
|
370
370
|
marginBottom: c.marginBottom
|
|
371
371
|
}
|
|
372
|
-
], l = (
|
|
373
|
-
const u =
|
|
374
|
-
s(u,
|
|
375
|
-
}, r = (
|
|
376
|
-
const u =
|
|
372
|
+
], l = (i, c) => {
|
|
373
|
+
const u = i, h = t(u), b = n(u, h), C = a(b, h), N = { duration: o.duration, easing: o.easingEnter };
|
|
374
|
+
s(u, h, c, C, N);
|
|
375
|
+
}, r = (i, c) => {
|
|
376
|
+
const u = i, h = t(u), { height: b } = getComputedStyle(u);
|
|
377
377
|
u.style.height = b, u.style.overflow = "hidden";
|
|
378
|
-
const C =
|
|
379
|
-
s(u,
|
|
378
|
+
const C = a(b, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
|
|
379
|
+
s(u, h, c, C, N);
|
|
380
380
|
};
|
|
381
|
-
return (
|
|
381
|
+
return (i, c) => (d(), _(Se, {
|
|
382
382
|
css: !1,
|
|
383
383
|
onEnter: l,
|
|
384
384
|
onLeave: r
|
|
385
385
|
}, {
|
|
386
|
-
default:
|
|
387
|
-
|
|
386
|
+
default: D(() => [
|
|
387
|
+
S(i.$slots, "default")
|
|
388
388
|
]),
|
|
389
389
|
_: 3
|
|
390
390
|
}));
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, ye = {
|
|
393
393
|
data: void 0
|
|
394
394
|
}, De = (e) => e.reduce((o, t) => (o[t] = t) && o, {}), H = De([
|
|
395
395
|
"drag",
|
|
@@ -423,32 +423,32 @@ const Tt = {
|
|
|
423
423
|
tag: { type: String, default: "div" }
|
|
424
424
|
},
|
|
425
425
|
setup(e) {
|
|
426
|
-
const o = e, t =
|
|
427
|
-
const c =
|
|
426
|
+
const o = e, t = _e(), n = T(!1), s = p(() => n && o.transferData), a = p(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
|
|
427
|
+
const c = i.dataTransfer;
|
|
428
428
|
if ([H.dragenter, H.dragover].includes(r) && o.dropEffect && (c.dropEffect = o.dropEffect), r === H.dragstart) {
|
|
429
429
|
if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
|
|
430
430
|
let u;
|
|
431
431
|
o.image ? (u = new Image(), u.src = o.image) : t.image && (u = t.image[0].elm), c.setDragImage && c.setDragImage(u, o.imageXOffset, o.imageYOffset);
|
|
432
432
|
}
|
|
433
|
-
o.transferData !== void 0 && (
|
|
433
|
+
o.transferData !== void 0 && (ye.data = o.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
return (r,
|
|
436
|
+
return (r, i) => (d(), _(P(e.tag), {
|
|
437
437
|
draggable: o.draggable,
|
|
438
|
-
onDrag:
|
|
439
|
-
onDragstart:
|
|
440
|
-
onDragenter:
|
|
441
|
-
onDragleave:
|
|
442
|
-
onDragend:
|
|
438
|
+
onDrag: i[0] || (i[0] = (c) => l(I(H).drag, c)),
|
|
439
|
+
onDragstart: i[1] || (i[1] = q((c) => l(I(H).dragstart, c), ["stop"])),
|
|
440
|
+
onDragenter: i[2] || (i[2] = (c) => l(I(H).dragenter, c)),
|
|
441
|
+
onDragleave: i[3] || (i[3] = (c) => l(I(H).dragleave, c)),
|
|
442
|
+
onDragend: i[4] || (i[4] = (c) => l(I(H).dragend, c))
|
|
443
443
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
e.hideImageHtml ? (d(),
|
|
444
|
+
default: D(() => [
|
|
445
|
+
S(r.$slots, "default", { transferData: s.value }),
|
|
446
|
+
e.hideImageHtml ? (d(), m("div", {
|
|
447
447
|
key: 0,
|
|
448
|
-
style: O(
|
|
448
|
+
style: O(a.value)
|
|
449
449
|
}, [
|
|
450
|
-
|
|
451
|
-
], 4)) :
|
|
450
|
+
S(r.$slots, "image", { transferData: s.value })
|
|
451
|
+
], 4)) : S(r.$slots, "image", {
|
|
452
452
|
key: 1,
|
|
453
453
|
transferData: s.value
|
|
454
454
|
})
|
|
@@ -457,7 +457,7 @@ const Tt = {
|
|
|
457
457
|
}, 40, ["draggable"]));
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
const jt = (e) => (
|
|
460
|
+
const jt = (e) => (at("data-v-d8c92d5e"), e = e(), it(), e), Xt = {
|
|
461
461
|
key: 0,
|
|
462
462
|
style: { display: "none" }
|
|
463
463
|
}, Yt = { key: 1 }, qt = /* @__PURE__ */ jt(() => /* @__PURE__ */ x("div", { class: "tree-divider" }, null, -1)), Gt = [
|
|
@@ -478,37 +478,37 @@ const jt = (e) => (it("data-v-d8c92d5e"), e = e(), at(), e), Xt = {
|
|
|
478
478
|
},
|
|
479
479
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
|
|
480
480
|
setup(e, { emit: o }) {
|
|
481
|
-
const t = e, n =
|
|
481
|
+
const t = e, n = T(null), s = T(!1), a = T(!1), l = T(!1), r = p(() => t.model.children && t.model.children.length), i = p(() => (g.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (L) => {
|
|
482
482
|
o("nodeclick", { event: L, model: t.model });
|
|
483
483
|
}, u = (L) => {
|
|
484
484
|
o("nodeclick", L);
|
|
485
|
-
},
|
|
485
|
+
}, h = (L) => {
|
|
486
486
|
o("nodedrop", L);
|
|
487
487
|
}, b = (L) => {
|
|
488
488
|
o("nodecontext", L);
|
|
489
|
-
}, C = p(() => (g.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (
|
|
489
|
+
}, C = p(() => (g.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), N = p(() => t.search ? !1 : t.model.draggable === !0), $ = (L) => {
|
|
490
490
|
o("nodedrop", { e: L, model: t.model });
|
|
491
|
-
let y =
|
|
491
|
+
let y = ye.data;
|
|
492
492
|
if (y === void 0 || y.model === void 0)
|
|
493
493
|
return s.value = !1, !1;
|
|
494
494
|
if (y.model.id === t.model.id || g.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || g.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
|
|
495
|
-
return s.value = !1,
|
|
495
|
+
return s.value = !1, a.value = !1, l.value = !1, !1;
|
|
496
496
|
if (!g.state.trees[t.treeId].transfer && y.id !== t.treeId)
|
|
497
497
|
return !1;
|
|
498
498
|
let B = "";
|
|
499
|
-
|
|
500
|
-
},
|
|
499
|
+
a.value ? B = "before" : l.value ? B = "after" : B = "inside", g.actions.moveTreeNode(y.id, t.treeId, t.items, y.model.id, t.model.id, B), s.value = !1, a.value = !1, l.value = !1;
|
|
500
|
+
}, R = (L) => {
|
|
501
501
|
o("nodedragover", { e: L, model: t.model });
|
|
502
|
-
let y =
|
|
502
|
+
let y = ye.data;
|
|
503
503
|
if (y === void 0 || y.model === void 0)
|
|
504
504
|
return s.value = !0, !1;
|
|
505
505
|
if (y.model.id === t.model.id || g.actions.isChildOfParent(t.treeId, t.items, t.model.id, y.model.id) || g.actions.isParentOfChild(t.treeId, t.items, y.model.id, t.model.id))
|
|
506
506
|
return !1;
|
|
507
507
|
const B = L.y, W = n.value.getBoundingClientRect().top, F = n.value.getBoundingClientRect().height, v = F / 3;
|
|
508
|
-
B > W && B <= W + v ? (s.value = !1,
|
|
508
|
+
B > W && B <= W + v ? (s.value = !1, a.value = !0, l.value = !1) : B < W + F && B >= W + F - v ? (s.value = !1, a.value = !1, l.value = !0) : (s.value = !0, a.value = !1, l.value = !1);
|
|
509
509
|
}, X = () => {
|
|
510
|
-
s.value = !1,
|
|
511
|
-
}, A = p(() => t.model.title.startsWith("-")),
|
|
510
|
+
s.value = !1, a.value = !1, l.value = !1;
|
|
511
|
+
}, A = p(() => t.model.title.startsWith("-")), J = p(() => {
|
|
512
512
|
if (t.model.title.startsWith("-")) {
|
|
513
513
|
let [L, ...y] = t.model.title.split(" ");
|
|
514
514
|
return y = y.join(" "), y;
|
|
@@ -517,28 +517,28 @@ const jt = (e) => (it("data-v-d8c92d5e"), e = e(), at(), e), Xt = {
|
|
|
517
517
|
});
|
|
518
518
|
return (L, y) => {
|
|
519
519
|
const B = st("d-tree-item", !0), W = Te("touch");
|
|
520
|
-
return I(g).actions.beforeItem(t.treeId, e.model) ? A.value && !
|
|
521
|
-
x("div", Zt,
|
|
520
|
+
return I(g).actions.beforeItem(t.treeId, e.model) ? A.value && !J.value ? (d(), m("li", Yt, Gt)) : A.value && J.value ? (d(), m("li", Ut, [
|
|
521
|
+
x("div", Zt, M(I(g).actions.renderTitle(t.treeId, J.value)), 1)
|
|
522
522
|
])) : (d(), _(Pt, {
|
|
523
523
|
key: 3,
|
|
524
524
|
tag: "li",
|
|
525
525
|
class: "tree-item",
|
|
526
526
|
"transfer-data": { id: t.treeId, model: t.model },
|
|
527
|
-
draggable:
|
|
527
|
+
draggable: N.value,
|
|
528
528
|
onDrop: q($, ["stop"]),
|
|
529
529
|
onDragenter: y[1] || (y[1] = q(() => {
|
|
530
530
|
}, ["prevent"])),
|
|
531
|
-
onDragover: q(
|
|
531
|
+
onDragover: q(R, ["prevent", "stop"]),
|
|
532
532
|
onDragleave: q(X, ["prevent"])
|
|
533
533
|
}, {
|
|
534
|
-
default:
|
|
534
|
+
default: D(() => {
|
|
535
535
|
var F, v;
|
|
536
536
|
return [
|
|
537
|
-
|
|
537
|
+
oe((d(), m("div", {
|
|
538
538
|
ref_key: "node",
|
|
539
539
|
ref: n,
|
|
540
540
|
class: E(C.value),
|
|
541
|
-
onContextmenu: y[0] || (y[0] = q((
|
|
541
|
+
onContextmenu: y[0] || (y[0] = q((V) => o("nodecontext", { e: V, model: t.model }), ["prevent"]))
|
|
542
542
|
}, [
|
|
543
543
|
x("div", null, [
|
|
544
544
|
t.model.icons && t.model.icons.pre && r.value && !t.search && !A.value ? (d(), _(P(ce), {
|
|
@@ -546,73 +546,73 @@ const jt = (e) => (it("data-v-d8c92d5e"), e = e(), at(), e), Xt = {
|
|
|
546
546
|
component: I(Z).getters.getIcon(t.model.icons.pre.component),
|
|
547
547
|
size: 18,
|
|
548
548
|
color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
|
|
549
|
-
class: E(
|
|
550
|
-
}, null, 8, ["component", "color", "class"])) :
|
|
549
|
+
class: E(i.value ? "tree-open-pre" : "")
|
|
550
|
+
}, null, 8, ["component", "color", "class"])) : k("", !0),
|
|
551
551
|
t.model.icons && t.model.icons.pre && !r.value && !t.search && !A.value ? (d(), _(P(ce), {
|
|
552
552
|
key: 1,
|
|
553
553
|
component: I(Z).getters.getIcon(t.model.icons.pre.component),
|
|
554
554
|
size: 18,
|
|
555
555
|
color: "rgba(0,0,0,0)",
|
|
556
|
-
class: E(
|
|
557
|
-
}, null, 8, ["component", "class"])) :
|
|
556
|
+
class: E(i.value ? "tree-open-pre" : "")
|
|
557
|
+
}, null, 8, ["component", "class"])) : k("", !0),
|
|
558
558
|
t.model.icons && t.model.icons.icon && !A.value ? (d(), _(P(ce), {
|
|
559
559
|
key: 2,
|
|
560
560
|
component: I(Z).getters.getIcon(t.model.icons.icon.component),
|
|
561
561
|
color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
|
|
562
562
|
size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
|
|
563
563
|
className: t.model.icons.icon.class ? t.model.icons.icon.class : null
|
|
564
|
-
}, null, 8, ["component", "color", "size", "className"])) :
|
|
564
|
+
}, null, 8, ["component", "color", "size", "className"])) : k("", !0),
|
|
565
565
|
x("div", Kt, [
|
|
566
|
-
A.value ? (d(),
|
|
567
|
-
A.value ?
|
|
566
|
+
A.value ? (d(), m("div", Jt)) : k("", !0),
|
|
567
|
+
A.value ? k("", !0) : (d(), m("div", Qt, M(I(g).actions.renderTitle(t.treeId, t.model.title)), 1))
|
|
568
568
|
])
|
|
569
569
|
]),
|
|
570
570
|
x("div", eo, [
|
|
571
|
-
((F = t.model.badge) == null ? void 0 : F.value) !== void 0 && !A.value ? (d(), _(P(
|
|
571
|
+
((F = t.model.badge) == null ? void 0 : F.value) !== void 0 && !A.value ? (d(), _(P(zt), {
|
|
572
572
|
key: 0,
|
|
573
573
|
class: E([(v = t.model.badge) == null ? void 0 : v.class, "badge-sm"])
|
|
574
574
|
}, {
|
|
575
|
-
default:
|
|
576
|
-
U(
|
|
575
|
+
default: D(() => [
|
|
576
|
+
U(M(t.model.badge.value), 1)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
|
-
}, 8, ["class"])) :
|
|
579
|
+
}, 8, ["class"])) : k("", !0),
|
|
580
580
|
t.model.icons && t.model.icons.post && r.value && !t.search && !A.value ? (d(), _(P(ce), {
|
|
581
581
|
key: 1,
|
|
582
582
|
component: I(Z).getters.getIcon(t.model.icons.post.component),
|
|
583
583
|
size: 20,
|
|
584
584
|
color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
|
|
585
|
-
class: E(
|
|
586
|
-
}, null, 8, ["component", "color", "class"])) :
|
|
585
|
+
class: E(i.value ? "tree-open-post" : "")
|
|
586
|
+
}, null, 8, ["component", "color", "class"])) : k("", !0)
|
|
587
587
|
])
|
|
588
588
|
], 34)), [
|
|
589
589
|
[W, c]
|
|
590
590
|
]),
|
|
591
|
-
|
|
592
|
-
default:
|
|
593
|
-
r.value &&
|
|
594
|
-
(d(!0),
|
|
591
|
+
ne(Rt, null, {
|
|
592
|
+
default: D(() => [
|
|
593
|
+
r.value && i.value && !t.search ? (d(), m("ul", to, [
|
|
594
|
+
(d(!0), m(te, null, fe(e.model.children, (V) => (d(), _(B, {
|
|
595
595
|
class: "tree-item",
|
|
596
|
-
key:
|
|
597
|
-
model:
|
|
596
|
+
key: V.id,
|
|
597
|
+
model: V,
|
|
598
598
|
treeId: t.treeId,
|
|
599
599
|
items: t.items,
|
|
600
600
|
search: t.search,
|
|
601
601
|
onNodeclick: u,
|
|
602
|
-
onNodedrop:
|
|
602
|
+
onNodedrop: h,
|
|
603
603
|
onNodecontext: b
|
|
604
604
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128))
|
|
605
|
-
])) :
|
|
605
|
+
])) : k("", !0)
|
|
606
606
|
]),
|
|
607
607
|
_: 1
|
|
608
608
|
})
|
|
609
609
|
];
|
|
610
610
|
}),
|
|
611
611
|
_: 1
|
|
612
|
-
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(),
|
|
612
|
+
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), m("li", Xt));
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
|
-
}, no = /* @__PURE__ */
|
|
615
|
+
}, no = /* @__PURE__ */ K(oo, [["__scopeId", "data-v-d8c92d5e"]]);
|
|
616
616
|
function so(e) {
|
|
617
617
|
return e = e || /* @__PURE__ */ new Map(), {
|
|
618
618
|
/**
|
|
@@ -672,8 +672,8 @@ const j = so(), g = {
|
|
|
672
672
|
return g.state.trees[e].selected;
|
|
673
673
|
},
|
|
674
674
|
// data - ноды, dataId - ID ноды родителя data
|
|
675
|
-
getParentId(e, o, t, n = "id", s = "children",
|
|
676
|
-
return t && e && (e.find((l) => l[n] === t ? (
|
|
675
|
+
getParentId(e, o, t, n = "id", s = "children", a = {}) {
|
|
676
|
+
return t && e && (e.find((l) => l[n] === t ? (a.found = o, l) : g.getters.getParentId(l[s], l.id, t, n, s, a)), a.found) ? a.found : !1;
|
|
677
677
|
}
|
|
678
678
|
},
|
|
679
679
|
mutations: {
|
|
@@ -687,8 +687,8 @@ const j = so(), g = {
|
|
|
687
687
|
}
|
|
688
688
|
},
|
|
689
689
|
actions: {
|
|
690
|
-
initTreeStore(e, o, t, n, s,
|
|
691
|
-
g.state.trees[e] = [], g.state.trees[e].selected = [], g.state.trees[e].noSelect = o, g.state.trees[e].multiSelect = t, g.state.trees[e].expanded = n, g.state.trees[e].transfer = s, g.state.trees[e].renderTitle =
|
|
690
|
+
initTreeStore(e, o, t, n, s, a, l) {
|
|
691
|
+
g.state.trees[e] = [], g.state.trees[e].selected = [], g.state.trees[e].noSelect = o, g.state.trees[e].multiSelect = t, g.state.trees[e].expanded = n, g.state.trees[e].transfer = s, g.state.trees[e].renderTitle = a, g.state.trees[e].beforeItem = l;
|
|
692
692
|
},
|
|
693
693
|
renderTitle(e, o) {
|
|
694
694
|
return g.state.trees[e].renderTitle ? g.state.trees[e].renderTitle(o) : o;
|
|
@@ -708,8 +708,8 @@ const j = so(), g = {
|
|
|
708
708
|
isChildOfParent(e, o, t, n) {
|
|
709
709
|
const s = g.actions.deepSearch(o, t);
|
|
710
710
|
if (s && s.children) {
|
|
711
|
-
for (let
|
|
712
|
-
if (s.children[
|
|
711
|
+
for (let a = 0; a < s.children.length; a++)
|
|
712
|
+
if (s.children[a].id === n)
|
|
713
713
|
return !0;
|
|
714
714
|
}
|
|
715
715
|
return !1;
|
|
@@ -720,22 +720,22 @@ const j = so(), g = {
|
|
|
720
720
|
return !!(s && s.children && g.actions.deepSearch(s.children, n));
|
|
721
721
|
},
|
|
722
722
|
deepSearch(e, o, t = "id", n = "children", s = {}) {
|
|
723
|
-
return o && e && (e.find((
|
|
723
|
+
return o && e && (e.find((a) => a[t] === o ? (s.found = a, a) : g.actions.deepSearch(a[n], o, t, n, s)), s.found) ? s.found : !1;
|
|
724
724
|
},
|
|
725
725
|
deepSearchByTitle(e, o, t = "title", n = "children", s = []) {
|
|
726
|
-
if (o && e && (e.find((
|
|
726
|
+
if (o && e && (e.find((a) => {
|
|
727
727
|
const l = new RegExp(o, "gi");
|
|
728
|
-
|
|
728
|
+
a[t].toString().toLowerCase().match(l) !== null && s.push(a), g.actions.deepSearchByTitle(a[n], o, t, n, s);
|
|
729
729
|
}), s)) {
|
|
730
|
-
for (let
|
|
730
|
+
for (let a = 0; a < s.length; a++)
|
|
731
731
|
;
|
|
732
732
|
return s;
|
|
733
733
|
}
|
|
734
734
|
return s;
|
|
735
735
|
},
|
|
736
|
-
moveTreeNode(e, o, t, n, s,
|
|
736
|
+
moveTreeNode(e, o, t, n, s, a) {
|
|
737
737
|
const l = g.actions.deleteTreeNode(t, n);
|
|
738
|
-
g.actions.insertTreeNode(t, s, l,
|
|
738
|
+
g.actions.insertTreeNode(t, s, l, a), j.emit(`move-${o}`, { fromTreeId: e, toTreeId: o, moved: l.id, target: s, position: a });
|
|
739
739
|
},
|
|
740
740
|
insertTreeNode(e, o, t, n) {
|
|
741
741
|
if (e)
|
|
@@ -744,9 +744,9 @@ const j = so(), g = {
|
|
|
744
744
|
let l = s;
|
|
745
745
|
return n === "after" ? (l++, e.splice(l, 0, t)) : n === "before" ? e.splice(l, 0, t) : n === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, t)), e[s];
|
|
746
746
|
}
|
|
747
|
-
const
|
|
748
|
-
if (
|
|
749
|
-
return
|
|
747
|
+
const a = this.insertTreeNode(e[s].children, o, t, n);
|
|
748
|
+
if (a)
|
|
749
|
+
return a;
|
|
750
750
|
}
|
|
751
751
|
},
|
|
752
752
|
deleteTreeNode(e, o) {
|
|
@@ -762,7 +762,7 @@ const j = so(), g = {
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
},
|
|
765
|
+
}, ao = {
|
|
766
766
|
__name: "DDrop",
|
|
767
767
|
props: {
|
|
768
768
|
tag: { type: String, default: "div" }
|
|
@@ -770,21 +770,21 @@ const j = so(), g = {
|
|
|
770
770
|
emits: Object.keys(H),
|
|
771
771
|
setup(e, { expose: o, emit: t }) {
|
|
772
772
|
let n = we({});
|
|
773
|
-
const s =
|
|
774
|
-
n =
|
|
773
|
+
const s = T("false"), a = T(null), l = /* @__PURE__ */ new Set(), r = p(() => s.value && n), i = (u, h) => {
|
|
774
|
+
n = ye.data, t(u, h, n), u === H.dragenter && (l.size || h.target === a.value) && l.add(h.target), u === H.dragleave && l.delete(h.target), u === H.drop && l.clear(), s.value = !!l.size;
|
|
775
775
|
};
|
|
776
776
|
return o({
|
|
777
|
-
elementSize: () => Pe(
|
|
778
|
-
}), (u,
|
|
777
|
+
elementSize: () => Pe(a)
|
|
778
|
+
}), (u, h) => (d(), _(P(e.tag), {
|
|
779
779
|
ref_key: "el",
|
|
780
|
-
ref:
|
|
781
|
-
onDragenter:
|
|
782
|
-
onDragleave:
|
|
783
|
-
onDragover:
|
|
784
|
-
onDrop:
|
|
780
|
+
ref: a,
|
|
781
|
+
onDragenter: h[0] || (h[0] = (b) => i(I(H).dragenter, b)),
|
|
782
|
+
onDragleave: h[1] || (h[1] = (b) => i(I(H).dragleave, b)),
|
|
783
|
+
onDragover: h[2] || (h[2] = q((b) => i(I(H).dragover, b), ["prevent"])),
|
|
784
|
+
onDrop: h[3] || (h[3] = q((b) => i(I(H).drop, b), ["prevent"]))
|
|
785
785
|
}, {
|
|
786
|
-
default:
|
|
787
|
-
|
|
786
|
+
default: D(() => [
|
|
787
|
+
S(u.$slots, "default", { transferData: r.value })
|
|
788
788
|
]),
|
|
789
789
|
_: 3
|
|
790
790
|
}, 544));
|
|
@@ -805,29 +805,29 @@ const j = so(), g = {
|
|
|
805
805
|
emits: ["select"],
|
|
806
806
|
setup(e, { expose: o, emit: t }) {
|
|
807
807
|
const n = e;
|
|
808
|
-
let s =
|
|
808
|
+
let s = T(null), a = T(!1);
|
|
809
809
|
const l = () => {
|
|
810
|
-
j.emit("menu-show-request"),
|
|
810
|
+
j.emit("menu-show-request"), a.value = !0;
|
|
811
811
|
}, r = () => {
|
|
812
812
|
var b;
|
|
813
|
-
(b = s.value) == null || b.collapseAll(),
|
|
814
|
-
},
|
|
813
|
+
(b = s.value) == null || b.collapseAll(), a.value = !1;
|
|
814
|
+
}, i = () => a.value;
|
|
815
815
|
j.on("menu-show-request", () => {
|
|
816
816
|
r();
|
|
817
817
|
}), o({
|
|
818
818
|
show: l,
|
|
819
819
|
hide: r,
|
|
820
820
|
elementSize: () => s.value.elementSize(),
|
|
821
|
-
isShowed:
|
|
821
|
+
isShowed: i,
|
|
822
822
|
itemsCount: () => s.value.itemsCount()
|
|
823
823
|
});
|
|
824
|
-
const
|
|
824
|
+
const h = (b) => {
|
|
825
825
|
t("select", b), b.model.children || r();
|
|
826
826
|
};
|
|
827
827
|
return (b, C) => {
|
|
828
|
-
const
|
|
829
|
-
return d(), _(
|
|
830
|
-
I(
|
|
828
|
+
const N = Te("click-outside");
|
|
829
|
+
return d(), _(Ve, { to: "body" }, [
|
|
830
|
+
I(a) ? oe((d(), _(Xe, {
|
|
831
831
|
key: 0,
|
|
832
832
|
ref_key: "treeRef",
|
|
833
833
|
ref: s,
|
|
@@ -835,16 +835,16 @@ const j = so(), g = {
|
|
|
835
835
|
"no-select": n.noSelect,
|
|
836
836
|
class: E(n.class),
|
|
837
837
|
style: O(n.style),
|
|
838
|
-
onSelect:
|
|
838
|
+
onSelect: h,
|
|
839
839
|
"render-title": n.renderItemTitle,
|
|
840
840
|
"before-item": n.beforeItem
|
|
841
841
|
}, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
|
|
842
|
-
[
|
|
843
|
-
]) :
|
|
842
|
+
[N, () => r()]
|
|
843
|
+
]) : k("", !0)
|
|
844
844
|
]);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
},
|
|
847
|
+
}, io = {
|
|
848
848
|
__name: "DContextMenu",
|
|
849
849
|
props: {
|
|
850
850
|
items: Array,
|
|
@@ -853,20 +853,20 @@ const j = so(), g = {
|
|
|
853
853
|
},
|
|
854
854
|
emits: ["select"],
|
|
855
855
|
setup(e, { expose: o, emit: t }) {
|
|
856
|
-
const n = e, s =
|
|
857
|
-
left:
|
|
856
|
+
const n = e, s = T(null), a = T(0), l = T(0), r = p(() => ({
|
|
857
|
+
left: a.value + "px",
|
|
858
858
|
top: l.value + "px"
|
|
859
|
-
})),
|
|
860
|
-
s.value.show(),
|
|
861
|
-
const
|
|
862
|
-
|
|
859
|
+
})), i = (u) => {
|
|
860
|
+
s.value.show(), ze(() => {
|
|
861
|
+
const h = s.value.elementSize(), b = window.innerWidth, C = window.innerHeight;
|
|
862
|
+
a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, l.value = C - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
|
|
863
863
|
});
|
|
864
864
|
}, c = (u) => {
|
|
865
865
|
t("select", u);
|
|
866
866
|
};
|
|
867
867
|
return o({
|
|
868
|
-
show:
|
|
869
|
-
}), (u,
|
|
868
|
+
show: i
|
|
869
|
+
}), (u, h) => (d(), _(je, {
|
|
870
870
|
ref_key: "dMenuRef",
|
|
871
871
|
ref: s,
|
|
872
872
|
onSelect: c,
|
|
@@ -913,10 +913,10 @@ const j = so(), g = {
|
|
|
913
913
|
},
|
|
914
914
|
emits: ["select", "collapse", "expand", "move", "over", "drop"],
|
|
915
915
|
setup(e, { expose: o, emit: t }) {
|
|
916
|
-
const n = e, s =
|
|
916
|
+
const n = e, s = T(null), a = T(!1), l = T(null), r = Re().uid;
|
|
917
917
|
g.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
|
|
918
|
-
const
|
|
919
|
-
console.log(v,
|
|
918
|
+
const i = (v, V) => {
|
|
919
|
+
console.log(v, V);
|
|
920
920
|
};
|
|
921
921
|
j.on(`expand-${r}`, (v) => {
|
|
922
922
|
t("expand", v);
|
|
@@ -927,61 +927,61 @@ const j = so(), g = {
|
|
|
927
927
|
});
|
|
928
928
|
const c = p(() => n.search ? g.actions.deepSearchByTitle(n.items, n.search) : n.items), u = (v = null) => {
|
|
929
929
|
g.mutations.setItemSelect(r, v.model), g.actions.toggleItem(r, v.model), t("select", v);
|
|
930
|
-
},
|
|
930
|
+
}, h = (v = null) => {
|
|
931
931
|
t("over", v);
|
|
932
932
|
}, b = (v = null) => {
|
|
933
933
|
t("drop", v);
|
|
934
|
-
}, C = () => s.value.elementSize(),
|
|
934
|
+
}, C = () => s.value.elementSize(), N = () => {
|
|
935
935
|
for (let v = 0; v < n.items.length; v++)
|
|
936
936
|
n.items[v].expanded = !0;
|
|
937
937
|
}, $ = () => {
|
|
938
938
|
for (let v = 0; v < n.items.length; v++)
|
|
939
939
|
n.items[v].expanded = !1;
|
|
940
|
-
},
|
|
940
|
+
}, R = () => r, X = (v) => g.actions.deepSearch(n.items, v), A = (v) => {
|
|
941
941
|
X(v) && g.mutations.setItemSelect(r, X(v));
|
|
942
|
-
},
|
|
942
|
+
}, J = (v) => {
|
|
943
943
|
n.contextClick({ e: v.e, model: v.model, target: l.value });
|
|
944
|
-
}, L = (v) => n.contextBeforeClick({ model: v, target: l.value }), y = p(() => n.context), B = (v) => (y.value && (l.value = v.model,
|
|
945
|
-
let
|
|
944
|
+
}, L = (v) => n.contextBeforeClick({ model: v, target: l.value }), y = p(() => n.context), B = (v) => (y.value && (l.value = v.model, a.value.show(v.e)), !1), W = () => F(c.value), F = (v) => {
|
|
945
|
+
let V = 0;
|
|
946
946
|
for (let f = 0; f < v.length; f++)
|
|
947
|
-
|
|
948
|
-
return
|
|
947
|
+
V += g.actions.beforeItem(r, v[f]) ? 1 : 0, v[f].children && v[f].children.length > 0 && (V += F(v[f].children));
|
|
948
|
+
return V;
|
|
949
949
|
};
|
|
950
950
|
return o({
|
|
951
951
|
elementSize: C,
|
|
952
|
-
expandAll:
|
|
952
|
+
expandAll: N,
|
|
953
953
|
collapseAll: $,
|
|
954
|
-
getId:
|
|
954
|
+
getId: R,
|
|
955
955
|
getNode: X,
|
|
956
956
|
selectNode: A,
|
|
957
957
|
itemsCount: W
|
|
958
|
-
}), (v,
|
|
958
|
+
}), (v, V) => (d(), _(ao, {
|
|
959
959
|
ref_key: "treeRef",
|
|
960
960
|
ref: s,
|
|
961
961
|
class: "tree",
|
|
962
962
|
tag: "ul",
|
|
963
|
-
onDrop: q(
|
|
963
|
+
onDrop: q(i, ["stop"])
|
|
964
964
|
}, {
|
|
965
|
-
default:
|
|
966
|
-
(d(!0),
|
|
965
|
+
default: D(() => [
|
|
966
|
+
(d(!0), m(te, null, fe(c.value, (f) => (d(), _(no, {
|
|
967
967
|
key: f.id,
|
|
968
968
|
model: f,
|
|
969
969
|
treeId: I(r),
|
|
970
970
|
items: n.items,
|
|
971
971
|
search: n.search,
|
|
972
972
|
onNodeclick: u,
|
|
973
|
-
onNodedragover:
|
|
973
|
+
onNodedragover: h,
|
|
974
974
|
onNodedrop: b,
|
|
975
975
|
onNodecontext: B
|
|
976
976
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128)),
|
|
977
|
-
y.value ? (d(), _(
|
|
977
|
+
y.value ? (d(), _(io, {
|
|
978
978
|
key: 0,
|
|
979
979
|
ref_key: "contextTreeRef",
|
|
980
|
-
ref:
|
|
980
|
+
ref: a,
|
|
981
981
|
items: y.value,
|
|
982
|
-
onSelect:
|
|
982
|
+
onSelect: J,
|
|
983
983
|
"before-item": L
|
|
984
|
-
}, null, 8, ["items"])) :
|
|
984
|
+
}, null, 8, ["items"])) : k("", !0)
|
|
985
985
|
]),
|
|
986
986
|
_: 1
|
|
987
987
|
}, 8, ["onDrop"]));
|
|
@@ -1007,7 +1007,7 @@ const lo = {
|
|
|
1007
1007
|
"render-title": o.renderTitle
|
|
1008
1008
|
}, null, 8, ["items", "no-select", "render-title"]));
|
|
1009
1009
|
}
|
|
1010
|
-
},
|
|
1010
|
+
}, Nn = /* @__PURE__ */ K(lo, [["__scopeId", "data-v-642edace"]]), ro = {
|
|
1011
1011
|
__name: "DLayoutHeader",
|
|
1012
1012
|
props: {
|
|
1013
1013
|
fixed: {
|
|
@@ -1042,14 +1042,14 @@ const lo = {
|
|
|
1042
1042
|
},
|
|
1043
1043
|
setup(e) {
|
|
1044
1044
|
const o = e, t = p(() => {
|
|
1045
|
-
const { fixed: n, zIndex: s, minWidth:
|
|
1046
|
-
return `position:${u};z-index:${s};${
|
|
1045
|
+
const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
|
|
1046
|
+
return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1047
1047
|
});
|
|
1048
|
-
return (n, s) => (d(),
|
|
1048
|
+
return (n, s) => (d(), m("header", {
|
|
1049
1049
|
class: "d-layout-header",
|
|
1050
1050
|
style: O(t.value)
|
|
1051
1051
|
}, [
|
|
1052
|
-
|
|
1052
|
+
S(n.$slots, "default")
|
|
1053
1053
|
], 4));
|
|
1054
1054
|
}
|
|
1055
1055
|
}, co = {
|
|
@@ -1091,14 +1091,14 @@ const lo = {
|
|
|
1091
1091
|
},
|
|
1092
1092
|
setup(e) {
|
|
1093
1093
|
const o = e, t = p(() => {
|
|
1094
|
-
const { fixed: n, top: s, zIndex:
|
|
1095
|
-
return `position:${
|
|
1094
|
+
const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = o, h = n ? "fixed" : "static", b = o.useMinWidthLayout ? `min-width: ${l}px;` : "";
|
|
1095
|
+
return `position:${h};top:${s}px;z-index:${a};${b}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
|
|
1096
1096
|
});
|
|
1097
|
-
return (n, s) => (d(),
|
|
1097
|
+
return (n, s) => (d(), m("div", {
|
|
1098
1098
|
class: "d-layout-tab",
|
|
1099
1099
|
style: O(t.value)
|
|
1100
1100
|
}, [
|
|
1101
|
-
|
|
1101
|
+
S(n.$slots, "default")
|
|
1102
1102
|
], 4));
|
|
1103
1103
|
}
|
|
1104
1104
|
}, uo = {
|
|
@@ -1136,14 +1136,14 @@ const lo = {
|
|
|
1136
1136
|
},
|
|
1137
1137
|
setup(e) {
|
|
1138
1138
|
const o = e, t = p(() => {
|
|
1139
|
-
const { fixed: n, zIndex: s, minWidth:
|
|
1140
|
-
return `position:${u};z-index:${s};${
|
|
1139
|
+
const { fixed: n, zIndex: s, minWidth: a, height: l, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = o, u = n ? "fixed" : "static", h = o.useMinWidthLayout ? `min-width:${a}px;` : "";
|
|
1140
|
+
return `position:${u};z-index:${s};${h}height:${l}px;padding-left:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1141
1141
|
});
|
|
1142
|
-
return (n, s) => (d(),
|
|
1142
|
+
return (n, s) => (d(), m("footer", {
|
|
1143
1143
|
class: "d-layout-footer",
|
|
1144
1144
|
style: O(t.value)
|
|
1145
1145
|
}, [
|
|
1146
|
-
|
|
1146
|
+
S(n.$slots, "default")
|
|
1147
1147
|
], 4));
|
|
1148
1148
|
}
|
|
1149
1149
|
}, fo = {
|
|
@@ -1176,14 +1176,14 @@ const lo = {
|
|
|
1176
1176
|
},
|
|
1177
1177
|
setup(e) {
|
|
1178
1178
|
const o = e, t = p(() => {
|
|
1179
|
-
const { zIndex: n, width: s, paddingTop:
|
|
1180
|
-
return `z-index:${n};width:${s}px;padding-top:${
|
|
1179
|
+
const { zIndex: n, width: s, paddingTop: a, transitionDuration: l, transitionTimingFunction: r } = o;
|
|
1180
|
+
return `z-index:${n};width:${s}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${r};`;
|
|
1181
1181
|
});
|
|
1182
|
-
return (n, s) => (d(),
|
|
1182
|
+
return (n, s) => (d(), m("aside", {
|
|
1183
1183
|
class: "d-layout-sidebar",
|
|
1184
1184
|
style: O(t.value)
|
|
1185
1185
|
}, [
|
|
1186
|
-
|
|
1186
|
+
S(n.$slots, "default")
|
|
1187
1187
|
], 4));
|
|
1188
1188
|
}
|
|
1189
1189
|
}, po = {
|
|
@@ -1213,47 +1213,47 @@ const lo = {
|
|
|
1213
1213
|
},
|
|
1214
1214
|
setup(e) {
|
|
1215
1215
|
const o = e, t = p(() => {
|
|
1216
|
-
const { paddingTop: n, paddingBottom: s, paddingLeft:
|
|
1217
|
-
return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${
|
|
1216
|
+
const { paddingTop: n, paddingBottom: s, paddingLeft: a, transitionDuration: l, transitionTimingFunction: r } = o, i = `overflow:${o.overflowHidden ? "hidden" : "visible"};`;
|
|
1217
|
+
return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
|
|
1218
1218
|
});
|
|
1219
|
-
return (n, s) => (d(),
|
|
1219
|
+
return (n, s) => (d(), m("main", {
|
|
1220
1220
|
style: O(t.value),
|
|
1221
1221
|
class: "d-layout-content"
|
|
1222
1222
|
}, [
|
|
1223
|
-
|
|
1223
|
+
S(n.$slots, "default")
|
|
1224
1224
|
], 4));
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
1227
|
function mo(e) {
|
|
1228
|
-
const o =
|
|
1228
|
+
const o = T(0), t = p(() => `transform: translateX(${-o.value}px);`);
|
|
1229
1229
|
let n = !1;
|
|
1230
1230
|
function s(u) {
|
|
1231
1231
|
o.value = u;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function a() {
|
|
1234
1234
|
var u;
|
|
1235
|
-
const
|
|
1236
|
-
s(
|
|
1235
|
+
const h = ((u = document.scrollingElement) === null || u === void 0 ? void 0 : u.scrollLeft) || 0;
|
|
1236
|
+
s(h);
|
|
1237
1237
|
}
|
|
1238
1238
|
function l() {
|
|
1239
|
-
|
|
1239
|
+
a();
|
|
1240
1240
|
}
|
|
1241
1241
|
function r() {
|
|
1242
|
-
document.addEventListener("scroll",
|
|
1242
|
+
document.addEventListener("scroll", a);
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
n && document.removeEventListener("scroll",
|
|
1244
|
+
function i() {
|
|
1245
|
+
n && document.removeEventListener("scroll", a);
|
|
1246
1246
|
}
|
|
1247
1247
|
function c() {
|
|
1248
1248
|
l(), r(), n = !0;
|
|
1249
1249
|
}
|
|
1250
1250
|
return We(e, (u) => {
|
|
1251
|
-
u ? c() :
|
|
1251
|
+
u ? c() : i();
|
|
1252
1252
|
}, { immediate: !0 }), lt(() => {
|
|
1253
|
-
|
|
1253
|
+
i();
|
|
1254
1254
|
}), t;
|
|
1255
1255
|
}
|
|
1256
|
-
const ho = 1001, go = 999, vo = 998,
|
|
1256
|
+
const ho = 1001, go = 999, vo = 998, Mn = {
|
|
1257
1257
|
__name: "DLayoutAdmin",
|
|
1258
1258
|
props: {
|
|
1259
1259
|
mode: {
|
|
@@ -1344,13 +1344,13 @@ const ho = 1001, go = 999, vo = 998, Ln = {
|
|
|
1344
1344
|
},
|
|
1345
1345
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1346
1346
|
setup(e, { emit: o }) {
|
|
1347
|
-
const t = e, n = p(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = p(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)),
|
|
1347
|
+
const t = e, n = p(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = p(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = mo(s), l = p(() => t.fixedHeaderAndTab ? a.value : ""), r = p(() => t.fixedFooter ? a.value : ""), i = p(() => {
|
|
1348
1348
|
const { transitionDuration: y, transitionTimingFunction: B } = t;
|
|
1349
1349
|
return {
|
|
1350
1350
|
transitionDuration: y,
|
|
1351
1351
|
transitionTimingFunction: B
|
|
1352
1352
|
};
|
|
1353
|
-
}), c = p(() => t.mode === "vertical"), u = p(() => t.isMobile || c.value ? 1003 : 1e3),
|
|
1353
|
+
}), c = p(() => t.mode === "vertical"), u = p(() => t.isMobile || c.value ? 1003 : 1e3), h = p({
|
|
1354
1354
|
get() {
|
|
1355
1355
|
return t.sidebarCollapse;
|
|
1356
1356
|
},
|
|
@@ -1361,23 +1361,23 @@ const ho = 1001, go = 999, vo = 998, Ln = {
|
|
|
1361
1361
|
function b() {
|
|
1362
1362
|
o("sidebar-mask-click");
|
|
1363
1363
|
}
|
|
1364
|
-
const C = p(() => t.isMobile && !
|
|
1364
|
+
const C = p(() => t.isMobile && !h.value), N = p(() => {
|
|
1365
1365
|
const { transitionDuration: y, transitionTimingFunction: B } = t;
|
|
1366
1366
|
return `background-color:${t.maskBg};transition-duration:${y}ms;transition-timing-function:${B};`;
|
|
1367
1367
|
}), $ = p(() => {
|
|
1368
|
-
const { sidebarWidth: y, sidebarCollapsedWidth: B } = t, W = t.isMobile ? 0 : B, F =
|
|
1368
|
+
const { sidebarWidth: y, sidebarCollapsedWidth: B } = t, W = t.isMobile ? 0 : B, F = h.value ? W : y;
|
|
1369
1369
|
return t.sidebarVisible ? F : 0;
|
|
1370
|
-
}),
|
|
1370
|
+
}), R = p(() => t.isMobile ? 0 : $.value), X = p(() => c.value ? R.value : 0), A = p(
|
|
1371
1371
|
() => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
|
|
1372
|
-
),
|
|
1372
|
+
), J = p(() => {
|
|
1373
1373
|
let y = 0;
|
|
1374
1374
|
return t.fixedHeaderAndTab && (t.headerVisible && (y += t.headerHeight), t.tabVisible && (y += t.tabHeight)), y;
|
|
1375
1375
|
}), L = p(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
|
|
1376
|
-
return (y, B) => (d(),
|
|
1376
|
+
return (y, B) => (d(), m("div", {
|
|
1377
1377
|
class: "d-layout",
|
|
1378
1378
|
style: O(n.value)
|
|
1379
1379
|
}, [
|
|
1380
|
-
e.headerVisible ? (d(), _(ro, re({ key: 0 },
|
|
1380
|
+
e.headerVisible ? (d(), _(ro, re({ key: 0 }, i.value, {
|
|
1381
1381
|
fixed: e.fixedHeaderAndTab,
|
|
1382
1382
|
"z-index": ho,
|
|
1383
1383
|
"min-width": e.minWidth,
|
|
@@ -1385,65 +1385,65 @@ const ho = 1001, go = 999, vo = 998, Ln = {
|
|
|
1385
1385
|
"padding-left": X.value,
|
|
1386
1386
|
style: l.value
|
|
1387
1387
|
}), {
|
|
1388
|
-
default:
|
|
1389
|
-
|
|
1388
|
+
default: D(() => [
|
|
1389
|
+
S(y.$slots, "header")
|
|
1390
1390
|
]),
|
|
1391
1391
|
_: 3
|
|
1392
|
-
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) :
|
|
1393
|
-
e.tabVisible ? (d(), _(co, re({ key: 1 },
|
|
1392
|
+
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
|
|
1393
|
+
e.tabVisible ? (d(), _(co, re({ key: 1 }, i.value, {
|
|
1394
1394
|
fixed: e.fixedHeaderAndTab,
|
|
1395
1395
|
"z-index": go,
|
|
1396
1396
|
"min-width": e.minWidth,
|
|
1397
1397
|
top: e.headerHeight,
|
|
1398
1398
|
height: e.tabHeight,
|
|
1399
|
-
"padding-left":
|
|
1399
|
+
"padding-left": R.value,
|
|
1400
1400
|
style: l.value
|
|
1401
1401
|
}), {
|
|
1402
|
-
default:
|
|
1403
|
-
|
|
1402
|
+
default: D(() => [
|
|
1403
|
+
S(y.$slots, "tab")
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 3
|
|
1406
|
-
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) :
|
|
1407
|
-
e.sidebarVisible ? (d(), _(fo, re({ key: 2 },
|
|
1406
|
+
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
|
|
1407
|
+
e.sidebarVisible ? (d(), _(fo, re({ key: 2 }, i.value, {
|
|
1408
1408
|
"z-index": u.value,
|
|
1409
1409
|
width: $.value,
|
|
1410
1410
|
"padding-top": A.value
|
|
1411
1411
|
}), {
|
|
1412
|
-
default:
|
|
1413
|
-
|
|
1412
|
+
default: D(() => [
|
|
1413
|
+
S(y.$slots, "sidebar")
|
|
1414
1414
|
]),
|
|
1415
1415
|
_: 3
|
|
1416
|
-
}, 16, ["z-index", "width", "padding-top"])) :
|
|
1417
|
-
C.value ? (d(),
|
|
1416
|
+
}, 16, ["z-index", "width", "padding-top"])) : k("", !0),
|
|
1417
|
+
C.value ? (d(), m("div", {
|
|
1418
1418
|
key: 3,
|
|
1419
1419
|
class: "d-layout-sidebar-mask",
|
|
1420
|
-
style: O(
|
|
1420
|
+
style: O(N.value),
|
|
1421
1421
|
onClick: b
|
|
1422
|
-
}, null, 4)) :
|
|
1423
|
-
|
|
1424
|
-
"padding-top":
|
|
1422
|
+
}, null, 4)) : k("", !0),
|
|
1423
|
+
ne(po, re(i.value, {
|
|
1424
|
+
"padding-top": J.value,
|
|
1425
1425
|
"padding-bottom": L.value,
|
|
1426
|
-
"padding-left":
|
|
1426
|
+
"padding-left": R.value,
|
|
1427
1427
|
"overflow-hidden": e.addMainOverflowHidden
|
|
1428
1428
|
}), {
|
|
1429
|
-
default:
|
|
1430
|
-
|
|
1429
|
+
default: D(() => [
|
|
1430
|
+
S(y.$slots, "default")
|
|
1431
1431
|
]),
|
|
1432
1432
|
_: 3
|
|
1433
1433
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
1434
|
-
e.footerVisible ? (d(), _(uo, re({ key: 4 },
|
|
1434
|
+
e.footerVisible ? (d(), _(uo, re({ key: 4 }, i.value, {
|
|
1435
1435
|
fixed: e.fixedFooter,
|
|
1436
1436
|
"z-index": vo,
|
|
1437
1437
|
"min-width": e.minWidth,
|
|
1438
1438
|
height: e.footerHeight,
|
|
1439
|
-
"padding-left":
|
|
1439
|
+
"padding-left": R.value,
|
|
1440
1440
|
style: r.value
|
|
1441
1441
|
}), {
|
|
1442
|
-
default:
|
|
1443
|
-
|
|
1442
|
+
default: D(() => [
|
|
1443
|
+
S(y.$slots, "footer")
|
|
1444
1444
|
]),
|
|
1445
1445
|
_: 3
|
|
1446
|
-
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) :
|
|
1446
|
+
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
|
|
1447
1447
|
], 4));
|
|
1448
1448
|
}
|
|
1449
1449
|
}, de = {
|
|
@@ -1465,7 +1465,7 @@ const ho = 1001, go = 999, vo = 998, Ln = {
|
|
|
1465
1465
|
de.state.theme = de.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(de.state.theme);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
},
|
|
1468
|
+
}, On = {
|
|
1469
1469
|
__name: "DConfigProvider",
|
|
1470
1470
|
props: {
|
|
1471
1471
|
theme: {
|
|
@@ -1475,10 +1475,10 @@ const ho = 1001, go = 999, vo = 998, Ln = {
|
|
|
1475
1475
|
},
|
|
1476
1476
|
setup(e) {
|
|
1477
1477
|
const o = e;
|
|
1478
|
-
return de.mutations.setTheme(o.theme), (t, n) =>
|
|
1478
|
+
return de.mutations.setTheme(o.theme), (t, n) => S(t.$slots, "default");
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
const
|
|
1481
|
+
const Hn = {
|
|
1482
1482
|
__name: "DScrollProvider",
|
|
1483
1483
|
props: {
|
|
1484
1484
|
xHide: {
|
|
@@ -1492,17 +1492,17 @@ const Bn = {
|
|
|
1492
1492
|
},
|
|
1493
1493
|
setup(e) {
|
|
1494
1494
|
const o = e;
|
|
1495
|
-
|
|
1495
|
+
be((a) => ({
|
|
1496
1496
|
e35a6f9a: t.value,
|
|
1497
1497
|
e35a6f98: n.value
|
|
1498
1498
|
}));
|
|
1499
|
-
const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible"), s = (
|
|
1500
|
-
document.body.classList.add(
|
|
1499
|
+
const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible"), s = (a) => {
|
|
1500
|
+
document.body.classList.add(a), document.documentElement.classList.add(a), document.documentElement.classList.add("d-global-scroll");
|
|
1501
1501
|
};
|
|
1502
|
-
return
|
|
1502
|
+
return ue(() => {
|
|
1503
1503
|
s("colored-scroller");
|
|
1504
|
-
}), (
|
|
1505
|
-
|
|
1504
|
+
}), (a, l) => (d(), m("div", null, [
|
|
1505
|
+
S(a.$slots, "default")
|
|
1506
1506
|
]));
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
@@ -1524,18 +1524,18 @@ const yo = {
|
|
|
1524
1524
|
},
|
|
1525
1525
|
setup(e) {
|
|
1526
1526
|
const o = e;
|
|
1527
|
-
|
|
1527
|
+
be((s) => ({
|
|
1528
1528
|
c07fa29a: t.value,
|
|
1529
1529
|
c07fa298: n.value
|
|
1530
1530
|
}));
|
|
1531
1531
|
const t = p(() => o.xHide ? "hidden" : "visible"), n = p(() => o.yHide ? "hidden" : "visible");
|
|
1532
|
-
return (s,
|
|
1532
|
+
return (s, a) => (d(), m("div", {
|
|
1533
1533
|
class: E(o.autoHide ? "d-scroll-hide" : "d-scroll")
|
|
1534
1534
|
}, [
|
|
1535
|
-
|
|
1535
|
+
S(s.$slots, "default", {}, void 0, !0)
|
|
1536
1536
|
], 2));
|
|
1537
1537
|
}
|
|
1538
|
-
},
|
|
1538
|
+
}, An = /* @__PURE__ */ K(yo, [["__scopeId", "data-v-d50b3609"]]);
|
|
1539
1539
|
const _o = { class: "modal-dialog" }, bo = { class: "modal-content" }, xo = { class: "modal-header" }, $o = { class: "modal-title" }, ko = { class: "modal-body" }, So = { class: "modal-footer" }, To = {
|
|
1540
1540
|
__name: "DModal",
|
|
1541
1541
|
props: {
|
|
@@ -1546,25 +1546,25 @@ const _o = { class: "modal-dialog" }, bo = { class: "modal-content" }, xo = { cl
|
|
|
1546
1546
|
emits: ["open", "close"],
|
|
1547
1547
|
setup(e, { expose: o, emit: t }) {
|
|
1548
1548
|
const n = e;
|
|
1549
|
-
|
|
1549
|
+
be((i) => ({
|
|
1550
1550
|
"558e9e46": n.width
|
|
1551
1551
|
}));
|
|
1552
|
-
const s =
|
|
1553
|
-
|
|
1552
|
+
const s = T(null), a = T(!1);
|
|
1553
|
+
a.value = n == null ? void 0 : n.show;
|
|
1554
1554
|
const l = () => {
|
|
1555
|
-
|
|
1555
|
+
a.value = !0, t("open", s);
|
|
1556
1556
|
}, r = () => {
|
|
1557
|
-
|
|
1557
|
+
a.value = !1, t("close", s);
|
|
1558
1558
|
};
|
|
1559
1559
|
return o({
|
|
1560
1560
|
show: l,
|
|
1561
1561
|
hide: r
|
|
1562
|
-
}), (
|
|
1562
|
+
}), (i, c) => {
|
|
1563
1563
|
const u = Te("keydown");
|
|
1564
|
-
return d(), _(
|
|
1565
|
-
|
|
1566
|
-
default:
|
|
1567
|
-
|
|
1564
|
+
return d(), _(Ve, { to: "body" }, [
|
|
1565
|
+
ne(Se, { name: "fade" }, {
|
|
1566
|
+
default: D(() => [
|
|
1567
|
+
a.value ? oe((d(), m("div", {
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
ref_key: "modalRef",
|
|
1570
1570
|
ref: s,
|
|
@@ -1574,33 +1574,33 @@ const _o = { class: "modal-dialog" }, bo = { class: "modal-content" }, xo = { cl
|
|
|
1574
1574
|
x("div", bo, [
|
|
1575
1575
|
x("div", xo, [
|
|
1576
1576
|
x("h5", $o, [
|
|
1577
|
-
|
|
1577
|
+
S(i.$slots, "modal-title", {}, void 0, !0)
|
|
1578
1578
|
])
|
|
1579
1579
|
]),
|
|
1580
1580
|
x("div", ko, [
|
|
1581
|
-
|
|
1581
|
+
S(i.$slots, "default", {}, void 0, !0)
|
|
1582
1582
|
]),
|
|
1583
1583
|
x("div", So, [
|
|
1584
|
-
|
|
1584
|
+
S(i.$slots, "modal-footer", {}, void 0, !0)
|
|
1585
1585
|
])
|
|
1586
1586
|
])
|
|
1587
1587
|
])
|
|
1588
1588
|
])), [
|
|
1589
1589
|
[u, r, "Escape"]
|
|
1590
|
-
]) :
|
|
1590
|
+
]) : k("", !0)
|
|
1591
1591
|
]),
|
|
1592
1592
|
_: 3
|
|
1593
1593
|
})
|
|
1594
1594
|
]);
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
|
-
}, Ye = /* @__PURE__ */
|
|
1597
|
+
}, Ye = /* @__PURE__ */ K(To, [["__scopeId", "data-v-82cadd63"]]), ie = rt();
|
|
1598
1598
|
function ke(e) {
|
|
1599
|
-
e === void 0 && (e =
|
|
1599
|
+
e === void 0 && (e = ie.value.comp.returnValue()), ie.value.resolve(e), ie.value = null;
|
|
1600
1600
|
}
|
|
1601
1601
|
function qe(e, o, t = "default") {
|
|
1602
1602
|
return new Promise((n) => {
|
|
1603
|
-
|
|
1603
|
+
ie.value = {
|
|
1604
1604
|
dialog: e,
|
|
1605
1605
|
props: o,
|
|
1606
1606
|
wrapper: t,
|
|
@@ -1625,19 +1625,19 @@ const Do = dt({
|
|
|
1625
1625
|
transitionAttrs: Object
|
|
1626
1626
|
},
|
|
1627
1627
|
setup() {
|
|
1628
|
-
const e =
|
|
1628
|
+
const e = T();
|
|
1629
1629
|
return We(e, () => {
|
|
1630
|
-
|
|
1630
|
+
ie.value && (ie.value.comp = e.value);
|
|
1631
1631
|
}), {
|
|
1632
|
-
dialogRef:
|
|
1632
|
+
dialogRef: ie,
|
|
1633
1633
|
dialogInstance: e
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
});
|
|
1637
|
-
function Co(e, o, t, n, s,
|
|
1637
|
+
function Co(e, o, t, n, s, a) {
|
|
1638
1638
|
return d(), _(Se, ct(ut(e.transitionAttrs)), {
|
|
1639
|
-
default:
|
|
1640
|
-
e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), _(P(e.dialogRef.dialog), re({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) :
|
|
1639
|
+
default: D(() => [
|
|
1640
|
+
e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), _(P(e.dialogRef.dialog), re({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
|
|
1641
1641
|
]),
|
|
1642
1642
|
_: 1
|
|
1643
1643
|
}, 16);
|
|
@@ -1653,20 +1653,20 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1653
1653
|
const t = e;
|
|
1654
1654
|
return o({
|
|
1655
1655
|
returnValue: () => !0
|
|
1656
|
-
}), (s,
|
|
1657
|
-
|
|
1658
|
-
"modal-title":
|
|
1659
|
-
U(
|
|
1656
|
+
}), (s, a) => (d(), m("div", null, [
|
|
1657
|
+
ne(Ye, { show: !0 }, {
|
|
1658
|
+
"modal-title": D(() => [
|
|
1659
|
+
U(M(t.title), 1)
|
|
1660
1660
|
]),
|
|
1661
|
-
default:
|
|
1662
|
-
U(
|
|
1661
|
+
default: D(() => [
|
|
1662
|
+
U(M(t.message), 1)
|
|
1663
1663
|
]),
|
|
1664
|
-
"modal-footer":
|
|
1664
|
+
"modal-footer": D(() => [
|
|
1665
1665
|
x("div", Lo, [
|
|
1666
|
-
|
|
1667
|
-
onClick:
|
|
1666
|
+
ne(ee, {
|
|
1667
|
+
onClick: a[0] || (a[0] = (l) => I(ke)())
|
|
1668
1668
|
}, {
|
|
1669
|
-
default:
|
|
1669
|
+
default: D(() => [
|
|
1670
1670
|
U("Закрыть")
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
@@ -1677,7 +1677,7 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1677
1677
|
})
|
|
1678
1678
|
]));
|
|
1679
1679
|
}
|
|
1680
|
-
}, Bo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } },
|
|
1680
|
+
}, Bo = { style: { display: "flex", "flex-direction": "row", "justify-content": "center", gap: "5px" } }, No = {
|
|
1681
1681
|
__name: "DConfirmDialog",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
title: String,
|
|
@@ -1687,29 +1687,29 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1687
1687
|
const t = e;
|
|
1688
1688
|
return o({
|
|
1689
1689
|
returnValue: () => !0
|
|
1690
|
-
}), (s,
|
|
1691
|
-
|
|
1692
|
-
"modal-title":
|
|
1693
|
-
U(
|
|
1690
|
+
}), (s, a) => (d(), m("div", null, [
|
|
1691
|
+
ne(Ye, { show: !0 }, {
|
|
1692
|
+
"modal-title": D(() => [
|
|
1693
|
+
U(M(t.title), 1)
|
|
1694
1694
|
]),
|
|
1695
|
-
default:
|
|
1696
|
-
U(
|
|
1695
|
+
default: D(() => [
|
|
1696
|
+
U(M(t.message), 1)
|
|
1697
1697
|
]),
|
|
1698
|
-
"modal-footer":
|
|
1698
|
+
"modal-footer": D(() => [
|
|
1699
1699
|
x("div", Bo, [
|
|
1700
|
-
|
|
1701
|
-
onClick:
|
|
1700
|
+
ne(ee, {
|
|
1701
|
+
onClick: a[0] || (a[0] = (l) => I(ke)())
|
|
1702
1702
|
}, {
|
|
1703
|
-
default:
|
|
1703
|
+
default: D(() => [
|
|
1704
1704
|
U("Да")
|
|
1705
1705
|
]),
|
|
1706
1706
|
_: 1
|
|
1707
1707
|
}),
|
|
1708
|
-
|
|
1708
|
+
ne(ee, {
|
|
1709
1709
|
class: "button-red",
|
|
1710
|
-
onClick:
|
|
1710
|
+
onClick: a[1] || (a[1] = (l) => I(ke)(!1))
|
|
1711
1711
|
}, {
|
|
1712
|
-
default:
|
|
1712
|
+
default: D(() => [
|
|
1713
1713
|
U("Нет")
|
|
1714
1714
|
]),
|
|
1715
1715
|
_: 1
|
|
@@ -1720,7 +1720,7 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1720
1720
|
})
|
|
1721
1721
|
]));
|
|
1722
1722
|
}
|
|
1723
|
-
},
|
|
1723
|
+
}, Mo = { class: "dropdown" }, Vn = {
|
|
1724
1724
|
__name: "DDropdown",
|
|
1725
1725
|
props: {
|
|
1726
1726
|
class: String,
|
|
@@ -1736,24 +1736,24 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1736
1736
|
},
|
|
1737
1737
|
emits: ["select", "click"],
|
|
1738
1738
|
setup(e, { expose: o, emit: t }) {
|
|
1739
|
-
const n = e, s =
|
|
1740
|
-
if (t("click", C),
|
|
1741
|
-
|
|
1739
|
+
const n = e, s = _e(), a = T(null), l = T(null), r = T(0), i = T(0), c = (C) => {
|
|
1740
|
+
if (t("click", C), a.value.isShowed()) {
|
|
1741
|
+
a.value.hide();
|
|
1742
1742
|
return;
|
|
1743
1743
|
}
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1746
|
-
r.value =
|
|
1744
|
+
a.value.show(), ze(() => {
|
|
1745
|
+
const N = a.value.elementSize(), $ = l.value.elementSize(), R = window.innerWidth, X = window.innerHeight;
|
|
1746
|
+
r.value = R - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = X - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
|
|
1747
1747
|
});
|
|
1748
1748
|
}, u = (C) => {
|
|
1749
1749
|
t("select", C);
|
|
1750
|
-
},
|
|
1750
|
+
}, h = p(() => ({ left: r.value + "px", top: i.value + "px", ...n.menuStyle }));
|
|
1751
1751
|
o({
|
|
1752
1752
|
show: c
|
|
1753
1753
|
});
|
|
1754
1754
|
const b = (C) => !!s[C];
|
|
1755
|
-
return (C,
|
|
1756
|
-
b("default") ? (d(), _(
|
|
1755
|
+
return (C, N) => (d(), m("div", Mo, [
|
|
1756
|
+
b("default") ? (d(), _(ee, {
|
|
1757
1757
|
key: 0,
|
|
1758
1758
|
ref_key: "buttonRef",
|
|
1759
1759
|
ref: l,
|
|
@@ -1762,11 +1762,11 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1762
1762
|
onClick: q(c, ["stop", "prevent"]),
|
|
1763
1763
|
type: n.type
|
|
1764
1764
|
}, {
|
|
1765
|
-
default:
|
|
1766
|
-
|
|
1765
|
+
default: D(() => [
|
|
1766
|
+
S(C.$slots, "default")
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 3
|
|
1769
|
-
}, 8, ["class", "icon", "onClick", "type"])) : (d(), _(
|
|
1769
|
+
}, 8, ["class", "icon", "onClick", "type"])) : (d(), _(ee, {
|
|
1770
1770
|
key: 1,
|
|
1771
1771
|
ref_key: "buttonRef",
|
|
1772
1772
|
ref: l,
|
|
@@ -1775,12 +1775,12 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1775
1775
|
onClick: q(c, ["stop", "prevent"]),
|
|
1776
1776
|
type: n.type
|
|
1777
1777
|
}, null, 8, ["class", "icon", "onClick", "type"])),
|
|
1778
|
-
|
|
1778
|
+
ne(je, {
|
|
1779
1779
|
ref_key: "dMenuRef",
|
|
1780
|
-
ref:
|
|
1780
|
+
ref: a,
|
|
1781
1781
|
items: n.items,
|
|
1782
1782
|
class: "dropdown-menu",
|
|
1783
|
-
style: O(
|
|
1783
|
+
style: O(h.value),
|
|
1784
1784
|
"no-select": !0,
|
|
1785
1785
|
onSelect: u,
|
|
1786
1786
|
"render-item-title": n.renderItemTitle,
|
|
@@ -1790,25 +1790,25 @@ const Lo = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
1790
1790
|
}
|
|
1791
1791
|
}, Oo = {}, Ho = { class: "d-panel" };
|
|
1792
1792
|
function Ao(e, o) {
|
|
1793
|
-
return d(),
|
|
1794
|
-
|
|
1793
|
+
return d(), m("div", Ho, [
|
|
1794
|
+
S(e.$slots, "default")
|
|
1795
1795
|
]);
|
|
1796
1796
|
}
|
|
1797
|
-
const
|
|
1797
|
+
const Vo = /* @__PURE__ */ K(Oo, [["render", Ao]]), zo = { class: "card-header" }, Ro = { class: "modal-title" }, Wo = { class: "card-body" }, Fo = { class: "card-footer" }, zn = {
|
|
1798
1798
|
__name: "DCard",
|
|
1799
1799
|
setup(e) {
|
|
1800
|
-
return (o, t) => (d(), _(
|
|
1801
|
-
default:
|
|
1802
|
-
x("div",
|
|
1803
|
-
x("h5",
|
|
1804
|
-
|
|
1800
|
+
return (o, t) => (d(), _(Vo, { class: "d-card" }, {
|
|
1801
|
+
default: D(() => [
|
|
1802
|
+
x("div", zo, [
|
|
1803
|
+
x("h5", Ro, [
|
|
1804
|
+
S(o.$slots, "title")
|
|
1805
1805
|
])
|
|
1806
1806
|
]),
|
|
1807
1807
|
x("div", Wo, [
|
|
1808
|
-
|
|
1808
|
+
S(o.$slots, "default")
|
|
1809
1809
|
]),
|
|
1810
1810
|
x("div", Fo, [
|
|
1811
|
-
|
|
1811
|
+
S(o.$slots, "footer")
|
|
1812
1812
|
])
|
|
1813
1813
|
]),
|
|
1814
1814
|
_: 3
|
|
@@ -1870,14 +1870,14 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
1870
1870
|
default:
|
|
1871
1871
|
return { type: "", value: e };
|
|
1872
1872
|
}
|
|
1873
|
-
},
|
|
1873
|
+
}, Ne = {
|
|
1874
1874
|
x: /* @__PURE__ */ new Set(["left", "center", "right"]),
|
|
1875
1875
|
y: /* @__PURE__ */ new Set(["top", "bottom"])
|
|
1876
1876
|
}, qo = ((e) => () => e++)(0), Go = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Uo = (e) => {
|
|
1877
1877
|
typeof e == "string" && (e = Go(e));
|
|
1878
1878
|
let o = null, t = null;
|
|
1879
1879
|
return e.forEach((n) => {
|
|
1880
|
-
|
|
1880
|
+
Ne.y.has(n) && (t = n), Ne.x.has(n) && (o = n);
|
|
1881
1881
|
}), { x: o, y: t };
|
|
1882
1882
|
}, $e = {
|
|
1883
1883
|
position: ["top", "right"],
|
|
@@ -1896,22 +1896,22 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
1896
1896
|
__name: "VelocityGroup",
|
|
1897
1897
|
emits: ["enter", "leave", "after-leave"],
|
|
1898
1898
|
setup(e, { emit: o }) {
|
|
1899
|
-
const t = (
|
|
1900
|
-
o("enter",
|
|
1901
|
-
}, n = (
|
|
1902
|
-
o("leave",
|
|
1899
|
+
const t = (a, l) => {
|
|
1900
|
+
o("enter", a, l);
|
|
1901
|
+
}, n = (a, l) => {
|
|
1902
|
+
o("leave", a, l);
|
|
1903
1903
|
}, s = () => {
|
|
1904
1904
|
o("after-leave");
|
|
1905
1905
|
};
|
|
1906
|
-
return (
|
|
1906
|
+
return (a, l) => (d(), _(Fe, {
|
|
1907
1907
|
tag: "span",
|
|
1908
1908
|
css: !1,
|
|
1909
1909
|
onEnter: t,
|
|
1910
1910
|
onLeave: n,
|
|
1911
1911
|
onAfterLeave: s
|
|
1912
1912
|
}, {
|
|
1913
|
-
default:
|
|
1914
|
-
|
|
1913
|
+
default: D(() => [
|
|
1914
|
+
S(a.$slots, "default")
|
|
1915
1915
|
]),
|
|
1916
1916
|
_: 3
|
|
1917
1917
|
}));
|
|
@@ -1929,8 +1929,8 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
1929
1929
|
tag: "span",
|
|
1930
1930
|
name: o.name
|
|
1931
1931
|
}, {
|
|
1932
|
-
default:
|
|
1933
|
-
|
|
1932
|
+
default: D(() => [
|
|
1933
|
+
S(t.$slots, "default")
|
|
1934
1934
|
]),
|
|
1935
1935
|
_: 3
|
|
1936
1936
|
}, 8, ["name"]));
|
|
@@ -1938,7 +1938,7 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
1938
1938
|
}), Jo = ["data-id"], Qo = ["onClick"], en = ["innerHTML"], tn = ["innerHTML"], on = {
|
|
1939
1939
|
key: 0,
|
|
1940
1940
|
class: "d-notification-title"
|
|
1941
|
-
}, nn = { class: "notification-content" },
|
|
1941
|
+
}, nn = { class: "notification-content" }, Rn = {
|
|
1942
1942
|
__name: "DNotificationProvider",
|
|
1943
1943
|
props: {
|
|
1944
1944
|
group: {
|
|
@@ -2011,121 +2011,121 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2011
2011
|
const t = e, n = {
|
|
2012
2012
|
IDLE: 0,
|
|
2013
2013
|
DESTROYED: 2
|
|
2014
|
-
}, s =
|
|
2015
|
-
const { x: f, y:
|
|
2016
|
-
width:
|
|
2014
|
+
}, s = T([]), a = T(null), l = T(Po.get("velocity")), r = p(() => t.animationType === "velocity"), i = p(() => r.value ? Zo : Ko), c = p(() => s.value.filter((f) => f.state !== n.DESTROYED)), u = p(() => Yo(t.width)), h = p(() => {
|
|
2015
|
+
const { x: f, y: z } = Uo(t.position), w = u.value.value, se = u.value.type, le = {
|
|
2016
|
+
width: w + se
|
|
2017
2017
|
};
|
|
2018
|
-
return
|
|
2019
|
-
}), b = p(() => "bottom" in
|
|
2018
|
+
return z && (le[z] = "0px"), f && (f === "center" ? le.left = `calc(50% - ${+w / 2}${se})` : le[f] = "0px"), le;
|
|
2019
|
+
}), b = p(() => "bottom" in h.value), C = (f) => {
|
|
2020
2020
|
o("click", f), t.closeOnClick && L(f);
|
|
2021
|
-
},
|
|
2021
|
+
}, N = () => {
|
|
2022
2022
|
var f;
|
|
2023
|
-
t.pauseOnHover && ((f =
|
|
2023
|
+
t.pauseOnHover && ((f = a.value) == null || f.pause());
|
|
2024
2024
|
}, $ = () => {
|
|
2025
2025
|
var f;
|
|
2026
|
-
t.pauseOnHover && ((f =
|
|
2027
|
-
},
|
|
2026
|
+
t.pauseOnHover && ((f = a.value) == null || f.resume());
|
|
2027
|
+
}, R = (f) => {
|
|
2028
2028
|
if (f.group || (f.group = ""), f.data || (f.data = {}), t.group !== f.group)
|
|
2029
2029
|
return;
|
|
2030
2030
|
if (f.clean || f.clear) {
|
|
2031
2031
|
B();
|
|
2032
2032
|
return;
|
|
2033
2033
|
}
|
|
2034
|
-
const
|
|
2034
|
+
const z = typeof f.duration == "number" ? f.duration : t.duration, w = typeof f.speed == "number" ? f.speed : t.speed, se = typeof f.ignoreDuplicates == "boolean" ? f.ignoreDuplicates : t.ignoreDuplicates, { title: le, text: Je, type: Qe, data: et, id: tt } = f, ae = {
|
|
2035
2035
|
id: tt || qo(),
|
|
2036
2036
|
title: le,
|
|
2037
2037
|
text: Je,
|
|
2038
2038
|
type: Qe,
|
|
2039
2039
|
state: n.IDLE,
|
|
2040
|
-
speed:
|
|
2041
|
-
length:
|
|
2040
|
+
speed: w,
|
|
2041
|
+
length: z + 2 * w,
|
|
2042
2042
|
data: et
|
|
2043
2043
|
};
|
|
2044
|
-
|
|
2044
|
+
z >= 0 && (a.value = new jo(() => L(ae), ae.length, ae));
|
|
2045
2045
|
const ot = t.reverse ? !b.value : b.value;
|
|
2046
|
-
let
|
|
2046
|
+
let pe = -1;
|
|
2047
2047
|
const nt = c.value.some((Le) => Le.title === f.title && Le.text === f.text);
|
|
2048
|
-
(!
|
|
2048
|
+
(!se || !nt) && (ot ? (s.value.push(ae), o("start", ae), c.value.length > t.max && (pe = 0)) : (s.value.unshift(ae), o("start", ae), c.value.length > t.max && (pe = c.value.length - 1)), pe !== -1 && L(c.value[pe]));
|
|
2049
2049
|
}, X = (f) => {
|
|
2050
2050
|
y(f);
|
|
2051
2051
|
}, A = (f) => [
|
|
2052
2052
|
"d-notification-template",
|
|
2053
2053
|
t.classes,
|
|
2054
2054
|
f.type || ""
|
|
2055
|
-
],
|
|
2056
|
-
clearTimeout(f.timer), f.state = n.DESTROYED,
|
|
2055
|
+
], J = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` }, L = (f) => {
|
|
2056
|
+
clearTimeout(f.timer), f.state = n.DESTROYED, V(), o("destroy", f);
|
|
2057
2057
|
}, y = (f) => {
|
|
2058
|
-
const
|
|
2059
|
-
|
|
2058
|
+
const z = s.value.find((w) => w.id === f);
|
|
2059
|
+
z && L(z);
|
|
2060
2060
|
}, B = () => {
|
|
2061
2061
|
c.value.forEach(L);
|
|
2062
|
-
}, W = (f,
|
|
2063
|
-
var
|
|
2064
|
-
const
|
|
2065
|
-
return typeof
|
|
2066
|
-
}, F = (f,
|
|
2062
|
+
}, W = (f, z) => {
|
|
2063
|
+
var se;
|
|
2064
|
+
const w = (se = t.animation) == null ? void 0 : se[f];
|
|
2065
|
+
return typeof w == "function" ? w(z) : w;
|
|
2066
|
+
}, F = (f, z) => {
|
|
2067
2067
|
if (!r.value)
|
|
2068
2068
|
return;
|
|
2069
|
-
const
|
|
2070
|
-
l.value(f,
|
|
2069
|
+
const w = W("enter", f);
|
|
2070
|
+
l.value(f, w, {
|
|
2071
2071
|
duration: t.speed,
|
|
2072
|
-
complete:
|
|
2072
|
+
complete: z
|
|
2073
2073
|
});
|
|
2074
|
-
}, v = (f,
|
|
2074
|
+
}, v = (f, z) => {
|
|
2075
2075
|
if (!r.value)
|
|
2076
2076
|
return;
|
|
2077
|
-
const
|
|
2078
|
-
l.value(f,
|
|
2077
|
+
const w = W("leave", f);
|
|
2078
|
+
l.value(f, w, {
|
|
2079
2079
|
duration: t.speed,
|
|
2080
|
-
complete:
|
|
2080
|
+
complete: z
|
|
2081
2081
|
});
|
|
2082
2082
|
};
|
|
2083
|
-
function
|
|
2083
|
+
function V() {
|
|
2084
2084
|
s.value = s.value.filter((f) => f.state !== n.DESTROYED);
|
|
2085
2085
|
}
|
|
2086
|
-
return
|
|
2087
|
-
j.on("notification-add",
|
|
2088
|
-
}), (f,
|
|
2086
|
+
return ue(() => {
|
|
2087
|
+
j.on("notification-add", R), j.on("notification-close", X);
|
|
2088
|
+
}), (f, z) => (d(), m("div", {
|
|
2089
2089
|
class: "d-notification-group",
|
|
2090
|
-
style: O(
|
|
2090
|
+
style: O(h.value)
|
|
2091
2091
|
}, [
|
|
2092
|
-
(d(), _(P(
|
|
2092
|
+
(d(), _(P(i.value), {
|
|
2093
2093
|
name: e.animationName,
|
|
2094
2094
|
onEnter: F,
|
|
2095
2095
|
onLeave: v,
|
|
2096
|
-
onAfterLeave:
|
|
2096
|
+
onAfterLeave: V
|
|
2097
2097
|
}, {
|
|
2098
|
-
default:
|
|
2099
|
-
(d(!0),
|
|
2100
|
-
key:
|
|
2098
|
+
default: D(() => [
|
|
2099
|
+
(d(!0), m(te, null, fe(c.value, (w) => (d(), m("div", {
|
|
2100
|
+
key: w.id,
|
|
2101
2101
|
class: "d-notification-wrapper",
|
|
2102
|
-
style: O(
|
|
2103
|
-
"data-id":
|
|
2104
|
-
onMouseenter:
|
|
2102
|
+
style: O(J(w)),
|
|
2103
|
+
"data-id": w.id,
|
|
2104
|
+
onMouseenter: N,
|
|
2105
2105
|
onMouseleave: $
|
|
2106
2106
|
}, [
|
|
2107
|
-
|
|
2108
|
-
class: E([e.classes,
|
|
2109
|
-
item:
|
|
2110
|
-
close: () => L(
|
|
2107
|
+
S(f.$slots, "body", {
|
|
2108
|
+
class: E([e.classes, w.type]),
|
|
2109
|
+
item: w,
|
|
2110
|
+
close: () => L(w)
|
|
2111
2111
|
}, () => [
|
|
2112
2112
|
x("div", {
|
|
2113
|
-
class: E(A(
|
|
2114
|
-
onClick: (
|
|
2113
|
+
class: E(A(w)),
|
|
2114
|
+
onClick: (se) => C(w)
|
|
2115
2115
|
}, [
|
|
2116
|
-
e.dangerouslySetInnerHtml ? (d(),
|
|
2117
|
-
|
|
2116
|
+
e.dangerouslySetInnerHtml ? (d(), m(te, { key: 0 }, [
|
|
2117
|
+
w.title ? (d(), m("div", {
|
|
2118
2118
|
key: 0,
|
|
2119
2119
|
class: "d-notification-title",
|
|
2120
|
-
innerHTML:
|
|
2121
|
-
}, null, 8, en)) :
|
|
2120
|
+
innerHTML: w.timer
|
|
2121
|
+
}, null, 8, en)) : k("", !0),
|
|
2122
2122
|
x("div", {
|
|
2123
2123
|
class: "notification-content",
|
|
2124
|
-
innerHTML:
|
|
2124
|
+
innerHTML: w.text
|
|
2125
2125
|
}, null, 8, tn)
|
|
2126
|
-
], 64)) : (d(),
|
|
2127
|
-
|
|
2128
|
-
x("div", nn,
|
|
2126
|
+
], 64)) : (d(), m(te, { key: 1 }, [
|
|
2127
|
+
w.title ? (d(), m("div", on, M(w.title), 1)) : k("", !0),
|
|
2128
|
+
x("div", nn, M(w.text), 1)
|
|
2129
2129
|
], 64))
|
|
2130
2130
|
], 10, Qo)
|
|
2131
2131
|
])
|
|
@@ -2135,7 +2135,7 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2135
2135
|
}, 40, ["name"]))
|
|
2136
2136
|
], 4));
|
|
2137
2137
|
}
|
|
2138
|
-
}, sn = { class: "d-info-progress-icon-container" }, an = { class: "d-info-progress-icon" }, ln = { class: "d-info-progress-data-container" }, rn = ["innerHTML"],
|
|
2138
|
+
}, sn = { class: "d-info-progress-icon-container" }, an = { class: "d-info-progress-icon" }, ln = { class: "d-info-progress-data-container" }, rn = ["innerHTML"], Wn = {
|
|
2139
2139
|
__name: "DInfoProgress",
|
|
2140
2140
|
props: {
|
|
2141
2141
|
style: [String, Object],
|
|
@@ -2147,10 +2147,10 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2147
2147
|
emits: ["click"],
|
|
2148
2148
|
setup(e, { emit: o }) {
|
|
2149
2149
|
const t = e, n = p(() => t.icon ? Z.getters.getIcon(t.icon) : null);
|
|
2150
|
-
return (s,
|
|
2150
|
+
return (s, a) => (d(), m("div", {
|
|
2151
2151
|
class: E(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
|
|
2152
2152
|
style: O(t.style),
|
|
2153
|
-
onClick:
|
|
2153
|
+
onClick: a[0] || (a[0] = (l) => {
|
|
2154
2154
|
o("click", l);
|
|
2155
2155
|
})
|
|
2156
2156
|
}, [
|
|
@@ -2161,7 +2161,7 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2161
2161
|
component: n.value,
|
|
2162
2162
|
color: "inherit",
|
|
2163
2163
|
size: 17
|
|
2164
|
-
}, null, 8, ["component"])) :
|
|
2164
|
+
}, null, 8, ["component"])) : k("", !0)
|
|
2165
2165
|
])
|
|
2166
2166
|
]),
|
|
2167
2167
|
x("div", ln, [
|
|
@@ -2176,7 +2176,7 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2176
2176
|
])
|
|
2177
2177
|
], 6));
|
|
2178
2178
|
}
|
|
2179
|
-
}, dn = { class: "d-checkbox" }, cn = ["id", "checked", "disabled"], un = ["for"],
|
|
2179
|
+
}, dn = { class: "d-checkbox" }, cn = ["id", "checked", "disabled"], un = ["for"], Fn = {
|
|
2180
2180
|
__name: "DCheckbox",
|
|
2181
2181
|
props: {
|
|
2182
2182
|
label: String,
|
|
@@ -2190,36 +2190,36 @@ const xe = "[-+]?[0-9]*.?[0-9]+", Be = [
|
|
|
2190
2190
|
},
|
|
2191
2191
|
emits: ["update:modelValue"],
|
|
2192
2192
|
setup(e, { emit: o }) {
|
|
2193
|
-
const t = e, s =
|
|
2193
|
+
const t = e, s = Re().uid, a = p({
|
|
2194
2194
|
get: () => t.modelValue,
|
|
2195
2195
|
set: (l) => {
|
|
2196
2196
|
o("update:modelValue", l);
|
|
2197
2197
|
}
|
|
2198
2198
|
});
|
|
2199
|
-
return (l, r) => (d(),
|
|
2200
|
-
|
|
2201
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2199
|
+
return (l, r) => (d(), m("div", dn, [
|
|
2200
|
+
oe(x("input", {
|
|
2201
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
|
|
2202
2202
|
id: `i-${I(s)}`,
|
|
2203
2203
|
type: "checkbox",
|
|
2204
2204
|
checked: t.checked,
|
|
2205
2205
|
disabled: t.disabled,
|
|
2206
|
-
onChange: r[1] || (r[1] = (...
|
|
2206
|
+
onChange: r[1] || (r[1] = (...i) => t.change && t.change(...i))
|
|
2207
2207
|
}, null, 40, cn), [
|
|
2208
|
-
[ft,
|
|
2208
|
+
[ft, a.value]
|
|
2209
2209
|
]),
|
|
2210
2210
|
x("label", {
|
|
2211
2211
|
for: `i-${I(s)}`
|
|
2212
|
-
},
|
|
2212
|
+
}, M(t.label), 9, un)
|
|
2213
2213
|
]));
|
|
2214
2214
|
}
|
|
2215
2215
|
};
|
|
2216
2216
|
async function fn(e, o) {
|
|
2217
|
-
return await qe(
|
|
2217
|
+
return await qe(No, { title: e, message: o });
|
|
2218
2218
|
}
|
|
2219
2219
|
async function pn(e, o) {
|
|
2220
2220
|
return await qe(Eo, { title: e, message: o });
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2222
|
+
const Pn = {
|
|
2223
2223
|
__name: "DDialogProvider",
|
|
2224
2224
|
setup(e) {
|
|
2225
2225
|
return window.alert = pn, window.confirm = fn, (o, t) => (d(), _(I(Io)));
|
|
@@ -2227,7 +2227,7 @@ const Rn = {
|
|
|
2227
2227
|
}, mn = { class: "d-select" }, hn = {
|
|
2228
2228
|
key: 0,
|
|
2229
2229
|
class: "label"
|
|
2230
|
-
}, gn = ["value", "selected", "disabled"],
|
|
2230
|
+
}, gn = ["value", "selected", "disabled"], jn = {
|
|
2231
2231
|
__name: "DSelect",
|
|
2232
2232
|
props: {
|
|
2233
2233
|
label: String,
|
|
@@ -2241,28 +2241,28 @@ const Rn = {
|
|
|
2241
2241
|
setup(e, { emit: o }) {
|
|
2242
2242
|
const t = e, n = p(() => t.scale ? "d-select-" + t.scale : ""), s = p({
|
|
2243
2243
|
get: () => t.modelValue,
|
|
2244
|
-
set: (
|
|
2245
|
-
o("update:modelValue",
|
|
2244
|
+
set: (a) => {
|
|
2245
|
+
o("update:modelValue", a);
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
|
-
for (let
|
|
2249
|
-
if (t.options[
|
|
2250
|
-
s.value = t.options[
|
|
2248
|
+
for (let a = 0; a < t.options.length; a++)
|
|
2249
|
+
if (t.options[a].selected) {
|
|
2250
|
+
s.value = t.options[a].value;
|
|
2251
2251
|
break;
|
|
2252
2252
|
}
|
|
2253
|
-
return (
|
|
2254
|
-
t.label ? (d(),
|
|
2255
|
-
|
|
2253
|
+
return (a, l) => (d(), m("div", mn, [
|
|
2254
|
+
t.label ? (d(), m("div", hn, M(t.label), 1)) : k("", !0),
|
|
2255
|
+
oe(x("select", {
|
|
2256
2256
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
|
|
2257
2257
|
class: E(n.value),
|
|
2258
2258
|
style: O(t.size === "wide" ? "width:100%" : "")
|
|
2259
2259
|
}, [
|
|
2260
|
-
(d(!0),
|
|
2261
|
-
key:
|
|
2260
|
+
(d(!0), m(te, null, fe(t.options, (r, i) => (d(), m("option", {
|
|
2261
|
+
key: i,
|
|
2262
2262
|
value: r.value,
|
|
2263
2263
|
selected: r.selected,
|
|
2264
2264
|
disabled: r.disabled
|
|
2265
|
-
},
|
|
2265
|
+
}, M(r.label), 9, gn))), 128))
|
|
2266
2266
|
], 6), [
|
|
2267
2267
|
[pt, s.value]
|
|
2268
2268
|
])
|
|
@@ -2275,23 +2275,23 @@ const vn = { class: "d-tabs" }, yn = ["onClick"], _n = {
|
|
|
2275
2275
|
tabs: Array
|
|
2276
2276
|
},
|
|
2277
2277
|
setup(e) {
|
|
2278
|
-
const t = mt(e, "tabs"), n =
|
|
2279
|
-
n.value =
|
|
2278
|
+
const t = mt(e, "tabs"), n = T(0), s = (a) => {
|
|
2279
|
+
n.value = a;
|
|
2280
2280
|
};
|
|
2281
|
-
return (
|
|
2281
|
+
return (a, l) => (d(), m(te, null, [
|
|
2282
2282
|
x("div", vn, [
|
|
2283
|
-
(d(!0),
|
|
2284
|
-
key:
|
|
2285
|
-
class: E([
|
|
2286
|
-
onClick: (c) => s(
|
|
2287
|
-
},
|
|
2283
|
+
(d(!0), m(te, null, fe(t.value, (r, i) => (d(), m("div", {
|
|
2284
|
+
key: i,
|
|
2285
|
+
class: E([i === n.value ? "active" : "", "d-tab-title"]),
|
|
2286
|
+
onClick: (c) => s(i)
|
|
2287
|
+
}, M(r.label), 11, yn))), 128))
|
|
2288
2288
|
]),
|
|
2289
2289
|
(d(), _(ht, null, [
|
|
2290
2290
|
(d(), _(P(t.value[n.value].component)))
|
|
2291
2291
|
], 1024))
|
|
2292
2292
|
], 64));
|
|
2293
2293
|
}
|
|
2294
|
-
},
|
|
2294
|
+
}, Xn = /* @__PURE__ */ K(_n, [["__scopeId", "data-v-89cd9234"]]);
|
|
2295
2295
|
const bn = { class: "d-grid" }, xn = {
|
|
2296
2296
|
__name: "DGrid",
|
|
2297
2297
|
props: {
|
|
@@ -2311,24 +2311,24 @@ const bn = { class: "d-grid" }, xn = {
|
|
|
2311
2311
|
},
|
|
2312
2312
|
setup(e) {
|
|
2313
2313
|
const o = e;
|
|
2314
|
-
|
|
2315
|
-
"09eba472":
|
|
2316
|
-
"09eba434":
|
|
2317
|
-
"09eba3f6":
|
|
2318
|
-
"09eba3b8":
|
|
2319
|
-
"09eba37a":
|
|
2320
|
-
"09eba33c":
|
|
2314
|
+
be((u) => ({
|
|
2315
|
+
"09eba472": i[0],
|
|
2316
|
+
"09eba434": i[1],
|
|
2317
|
+
"09eba3f6": i[2],
|
|
2318
|
+
"09eba3b8": i[3],
|
|
2319
|
+
"09eba37a": i[4],
|
|
2320
|
+
"09eba33c": i[5],
|
|
2321
2321
|
"898eb2ac": o.gap
|
|
2322
2322
|
}));
|
|
2323
|
-
const { colXs: t, colSm: n, colMd: s, colLg:
|
|
2323
|
+
const { colXs: t, colSm: n, colMd: s, colLg: a, colXl: l, colXxl: r } = gt(o), i = [t.value, n.value, s.value, a.value, l.value, r.value];
|
|
2324
2324
|
let c = null;
|
|
2325
|
-
for (let u = 0; u <
|
|
2326
|
-
c || (c =
|
|
2327
|
-
return (u,
|
|
2328
|
-
|
|
2325
|
+
for (let u = 0; u < i.length; u++)
|
|
2326
|
+
c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
|
|
2327
|
+
return (u, h) => (d(), m("div", bn, [
|
|
2328
|
+
S(u.$slots, "default", {}, void 0, !0)
|
|
2329
2329
|
]));
|
|
2330
2330
|
}
|
|
2331
|
-
},
|
|
2331
|
+
}, Yn = /* @__PURE__ */ K(xn, [["__scopeId", "data-v-b45e8130"]]), $n = ["src", "alt", "title"], qn = {
|
|
2332
2332
|
__name: "DImage",
|
|
2333
2333
|
props: {
|
|
2334
2334
|
src: String,
|
|
@@ -2340,28 +2340,82 @@ const bn = { class: "d-grid" }, xn = {
|
|
|
2340
2340
|
radius: String
|
|
2341
2341
|
},
|
|
2342
2342
|
setup(e) {
|
|
2343
|
-
const o = e, t =
|
|
2343
|
+
const o = e, t = T(null), n = new Image();
|
|
2344
2344
|
return n.onload = () => {
|
|
2345
2345
|
t.value = n.src;
|
|
2346
2346
|
}, n.onerror = () => {
|
|
2347
2347
|
t.value = o.srcFail;
|
|
2348
|
-
},
|
|
2348
|
+
}, ue(() => {
|
|
2349
2349
|
n.src = o.src;
|
|
2350
|
-
}), (s,
|
|
2350
|
+
}), (s, a) => t.value ? (d(), m("img", {
|
|
2351
2351
|
key: 0,
|
|
2352
2352
|
src: t.value,
|
|
2353
2353
|
alt: o.alt,
|
|
2354
2354
|
title: o.title,
|
|
2355
2355
|
style: O({ width: o.width, height: o.height, borderRadius: o.radius })
|
|
2356
|
-
}, null, 12, $n)) :
|
|
2356
|
+
}, null, 12, $n)) : k("", !0);
|
|
2357
2357
|
}
|
|
2358
|
-
}
|
|
2358
|
+
};
|
|
2359
|
+
const kn = { class: "d-textarea" }, Sn = {
|
|
2360
|
+
key: 0,
|
|
2361
|
+
class: "label"
|
|
2362
|
+
}, Tn = ["rows", "cols", "placeholder"], wn = {
|
|
2363
|
+
__name: "DTextarea",
|
|
2364
|
+
props: {
|
|
2365
|
+
label: String,
|
|
2366
|
+
placeholder: String,
|
|
2367
|
+
scale: String,
|
|
2368
|
+
// small, large
|
|
2369
|
+
modelValue: String,
|
|
2370
|
+
rows: {
|
|
2371
|
+
type: Number,
|
|
2372
|
+
default: 3
|
|
2373
|
+
},
|
|
2374
|
+
cols: {
|
|
2375
|
+
type: Number,
|
|
2376
|
+
default: null
|
|
2377
|
+
},
|
|
2378
|
+
focus: Boolean
|
|
2379
|
+
},
|
|
2380
|
+
emits: ["update:modelValue"],
|
|
2381
|
+
setup(e, { expose: o, emit: t }) {
|
|
2382
|
+
const n = e, s = T(null), a = p(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = p({
|
|
2383
|
+
get: () => n.modelValue,
|
|
2384
|
+
set: (i) => {
|
|
2385
|
+
t("update:modelValue", i);
|
|
2386
|
+
}
|
|
2387
|
+
});
|
|
2388
|
+
ue(() => {
|
|
2389
|
+
n.focus && r();
|
|
2390
|
+
});
|
|
2391
|
+
const r = () => {
|
|
2392
|
+
s.value.focus();
|
|
2393
|
+
};
|
|
2394
|
+
return o({
|
|
2395
|
+
focus: r
|
|
2396
|
+
}), (i, c) => (d(), m("div", kn, [
|
|
2397
|
+
n.label ? (d(), m("div", Sn, M(n.label), 1)) : k("", !0),
|
|
2398
|
+
oe(x("textarea", {
|
|
2399
|
+
ref_key: "inputRef",
|
|
2400
|
+
ref: s,
|
|
2401
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
|
|
2402
|
+
rows: n.rows,
|
|
2403
|
+
cols: n.cols,
|
|
2404
|
+
placeholder: n.placeholder,
|
|
2405
|
+
class: E(a.value),
|
|
2406
|
+
style: { width: "100%" }
|
|
2407
|
+
}, null, 10, Tn), [
|
|
2408
|
+
[ve, l.value]
|
|
2409
|
+
])
|
|
2410
|
+
]));
|
|
2411
|
+
}
|
|
2412
|
+
}, Gn = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-0e805d5d"]]), Ge = (e) => {
|
|
2359
2413
|
typeof e == "string" && (e = { title: "", text: e }), typeof e == "object" && j.emit("notification-add", e);
|
|
2360
2414
|
};
|
|
2361
2415
|
Ge.close = (e) => {
|
|
2362
2416
|
j.emit("notification-close", e);
|
|
2363
2417
|
};
|
|
2364
|
-
const
|
|
2418
|
+
const Un = () => ({ notify: Ge }), Zn = {
|
|
2365
2419
|
mounted: function(e, o) {
|
|
2366
2420
|
e.clickOutsideEvent = function(t) {
|
|
2367
2421
|
e === t.target || e.contains(t.target) || o.value(t, e);
|
|
@@ -2370,7 +2424,7 @@ const jn = () => ({ notify: Ge }), Xn = {
|
|
|
2370
2424
|
unmounted: function(e) {
|
|
2371
2425
|
document.removeEventListener("click", e.clickOutsideEvent);
|
|
2372
2426
|
}
|
|
2373
|
-
},
|
|
2427
|
+
}, Kn = {
|
|
2374
2428
|
beforeMount(e, o) {
|
|
2375
2429
|
e._keydownCallback = (t) => {
|
|
2376
2430
|
t.key === o.arg && o.value();
|
|
@@ -2379,7 +2433,7 @@ const jn = () => ({ notify: Ge }), Xn = {
|
|
|
2379
2433
|
unmounted(e, o) {
|
|
2380
2434
|
document.removeEventListener("keydown", e._keydownCallback), delete e._keydownCallback;
|
|
2381
2435
|
}
|
|
2382
|
-
},
|
|
2436
|
+
}, Jn = {
|
|
2383
2437
|
beforeMount(e) {
|
|
2384
2438
|
e.focus();
|
|
2385
2439
|
}
|
|
@@ -2390,7 +2444,7 @@ function Ue(e) {
|
|
|
2390
2444
|
function Ze(e) {
|
|
2391
2445
|
return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
|
|
2392
2446
|
}
|
|
2393
|
-
var
|
|
2447
|
+
var Dn = function() {
|
|
2394
2448
|
var e = !1;
|
|
2395
2449
|
try {
|
|
2396
2450
|
var o = Object.defineProperty({}, "passive", {
|
|
@@ -2402,7 +2456,7 @@ var kn = function() {
|
|
|
2402
2456
|
} catch {
|
|
2403
2457
|
}
|
|
2404
2458
|
return e;
|
|
2405
|
-
}(),
|
|
2459
|
+
}(), Cn = {
|
|
2406
2460
|
disableClick: !1,
|
|
2407
2461
|
tapTolerance: 10,
|
|
2408
2462
|
// px
|
|
@@ -2418,13 +2472,13 @@ var kn = function() {
|
|
|
2418
2472
|
rollOverFrequency: 100
|
|
2419
2473
|
// ms
|
|
2420
2474
|
};
|
|
2421
|
-
function
|
|
2475
|
+
function me(e) {
|
|
2422
2476
|
var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
|
|
2423
2477
|
t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || (Ke(this), o.touchStarted = !0, o.touchMoved = !1, o.swipeOutBounded = !1, o.startX = Ue(e), o.startY = Ze(e), o.currentX = 0, o.currentY = 0, o.touchStartTime = e.timeStamp, o.hasSwipe = Y(this, "swipe") || Y(this, "swipe.left") || Y(this, "swipe.right") || Y(this, "swipe.top") || Y(this, "swipe.bottom"), Y(this, "hold") && (o.touchHoldTimer = setTimeout(function() {
|
|
2424
2478
|
o.touchHoldTimer = null, G(e, s, "hold");
|
|
2425
2479
|
}, o.options.touchHoldTolerance)), G(e, this, "press")));
|
|
2426
2480
|
}
|
|
2427
|
-
function
|
|
2481
|
+
function he(e) {
|
|
2428
2482
|
var o = this.$$touchObj, t = Ue(e), n = Ze(e), s = o.currentX != t || o.currentY != n;
|
|
2429
2483
|
if (o.currentX = t, o.currentY = n, o.touchMoved) {
|
|
2430
2484
|
if (o.hasSwipe && !o.swipeOutBounded) {
|
|
@@ -2432,31 +2486,31 @@ function me(e) {
|
|
|
2432
2486
|
o.swipeOutBounded = Math.abs(o.startX - o.currentX) > l && Math.abs(o.startY - o.currentY) > l;
|
|
2433
2487
|
}
|
|
2434
2488
|
} else {
|
|
2435
|
-
var
|
|
2436
|
-
o.touchMoved = Math.abs(o.startX - o.currentX) >
|
|
2489
|
+
var a = o.options.tapTolerance;
|
|
2490
|
+
o.touchMoved = Math.abs(o.startX - o.currentX) > a || Math.abs(o.startY - o.currentY) > a, o.touchMoved && (Ie(o), G(e, this, "drag.once"));
|
|
2437
2491
|
}
|
|
2438
2492
|
if (Y(this, "rollover") && s) {
|
|
2439
|
-
var r = e.timeStamp,
|
|
2440
|
-
(o.touchRollTime == null || r > o.touchRollTime +
|
|
2493
|
+
var r = e.timeStamp, i = o.options.rollOverFrequency;
|
|
2494
|
+
(o.touchRollTime == null || r > o.touchRollTime + i) && (o.touchRollTime = r, G(e, this, "rollover"));
|
|
2441
2495
|
}
|
|
2442
2496
|
if (Y(this, "drag") && o.touchStarted && o.touchMoved && s) {
|
|
2443
|
-
var r = e.timeStamp,
|
|
2444
|
-
(o.touchDragTime == null || r > o.touchDragTime +
|
|
2497
|
+
var r = e.timeStamp, i = o.options.dragFrequency;
|
|
2498
|
+
(o.touchDragTime == null || r > o.touchDragTime + i) && (o.touchDragTime = r, G(e, this, "drag"));
|
|
2445
2499
|
}
|
|
2446
2500
|
}
|
|
2447
|
-
function
|
|
2501
|
+
function Me() {
|
|
2448
2502
|
var e = this.$$touchObj;
|
|
2449
2503
|
Ie(e), Ce(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
|
|
2450
2504
|
}
|
|
2451
|
-
function
|
|
2505
|
+
function ge(e) {
|
|
2452
2506
|
var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
|
|
2453
2507
|
t && (o.lastTouchEndTime = e.timeStamp);
|
|
2454
2508
|
var s = t && !o.touchHoldTimer;
|
|
2455
2509
|
if (Ie(o), o.touchStarted = !1, Ce(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
|
|
2456
2510
|
if (G(e, this, "release"), o.touchMoved) {
|
|
2457
2511
|
if (o.hasSwipe && !o.swipeOutBounded) {
|
|
2458
|
-
var
|
|
2459
|
-
(r >
|
|
2512
|
+
var a = o.options.swipeTolerance, l, r = Math.abs(o.startY - o.currentY), i = Math.abs(o.startX - o.currentX);
|
|
2513
|
+
(r > a || i > a) && (r > a ? l = o.startY > o.currentY ? "top" : "bottom" : l = o.startX > o.currentX ? "left" : "right", Y(this, "swipe." + l) ? G(e, this, "swipe." + l, l) : G(e, this, "swipe", l));
|
|
2460
2514
|
}
|
|
2461
2515
|
} else if (Y(this, "longtap") && e.timeStamp - o.touchStartTime > o.options.longTapTimeInterval)
|
|
2462
2516
|
e.cancelable && e.preventDefault(), G(e, this, "longtap");
|
|
@@ -2477,11 +2531,11 @@ function Y(e, o) {
|
|
|
2477
2531
|
return t != null && t.length > 0;
|
|
2478
2532
|
}
|
|
2479
2533
|
function G(e, o, t, n) {
|
|
2480
|
-
var s = o.$$touchObj,
|
|
2481
|
-
if (
|
|
2534
|
+
var s = o.$$touchObj, a = s.callbacks[t];
|
|
2535
|
+
if (a == null || a.length === 0)
|
|
2482
2536
|
return null;
|
|
2483
|
-
for (var l = 0; l <
|
|
2484
|
-
var r =
|
|
2537
|
+
for (var l = 0; l < a.length; l++) {
|
|
2538
|
+
var r = a[l];
|
|
2485
2539
|
r.modifiers.stop && e.stopPropagation(), r.modifiers.prevent && e.preventDefault(), !(r.modifiers.self && e.target !== e.currentTarget) && typeof r.value == "function" && (n ? r.value(n, e) : r.value(e));
|
|
2486
2540
|
}
|
|
2487
2541
|
}
|
|
@@ -2496,7 +2550,7 @@ function Ce(e) {
|
|
|
2496
2550
|
function Ie(e) {
|
|
2497
2551
|
e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
|
|
2498
2552
|
}
|
|
2499
|
-
function
|
|
2553
|
+
function In(e, o) {
|
|
2500
2554
|
var t = e.$$touchObj || {
|
|
2501
2555
|
// an object contains all callbacks registered,
|
|
2502
2556
|
// key is event name, value is an array
|
|
@@ -2504,19 +2558,19 @@ function Tn(e, o) {
|
|
|
2504
2558
|
// prevent bind twice, set to true when event bound
|
|
2505
2559
|
hasBindTouchEvents: !1,
|
|
2506
2560
|
// default options, would be override by v-touch-options
|
|
2507
|
-
options:
|
|
2561
|
+
options: Cn
|
|
2508
2562
|
};
|
|
2509
2563
|
return o && (t.options = Object.assign({}, t.options, o)), e.$$touchObj = t, e.$$touchObj;
|
|
2510
2564
|
}
|
|
2511
|
-
const
|
|
2565
|
+
const Qn = {
|
|
2512
2566
|
beforeMount: function(e, o) {
|
|
2513
|
-
const t =
|
|
2514
|
-
let n =
|
|
2567
|
+
const t = In(e);
|
|
2568
|
+
let n = Dn ? { passive: !0 } : !1;
|
|
2515
2569
|
const s = o.arg || "tap";
|
|
2516
2570
|
switch (s) {
|
|
2517
2571
|
case "swipe":
|
|
2518
|
-
let
|
|
2519
|
-
if (
|
|
2572
|
+
let a = o.modifiers;
|
|
2573
|
+
if (a.left || a.right || a.top || a.bottom) {
|
|
2520
2574
|
for (let l in o.modifiers)
|
|
2521
2575
|
if (["left", "right", "top", "bottom"].indexOf(l) >= 0) {
|
|
2522
2576
|
let r = "swipe." + l;
|
|
@@ -2531,35 +2585,35 @@ const Gn = {
|
|
|
2531
2585
|
default:
|
|
2532
2586
|
t.callbacks[s] = t.callbacks[s] || [], t.callbacks[s].push(o);
|
|
2533
2587
|
}
|
|
2534
|
-
t.hasBindTouchEvents || (e.addEventListener("touchstart",
|
|
2588
|
+
t.hasBindTouchEvents || (e.addEventListener("touchstart", me, n), e.addEventListener("touchmove", he, n), e.addEventListener("touchcancel", Me), e.addEventListener("touchend", ge), t.options.disableClick || (e.addEventListener("mousedown", me), e.addEventListener("mousemove", he), e.addEventListener("mouseup", ge), e.addEventListener("mouseenter", Oe), e.addEventListener("mouseleave", He)), t.hasBindTouchEvents = !0);
|
|
2535
2589
|
},
|
|
2536
2590
|
unmounted: function(e) {
|
|
2537
|
-
e.removeEventListener("touchstart",
|
|
2591
|
+
e.removeEventListener("touchstart", me), e.removeEventListener("touchmove", he), e.removeEventListener("touchcancel", Me), e.removeEventListener("touchend", ge), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", me), e.removeEventListener("mousemove", he), e.removeEventListener("mouseup", ge), e.removeEventListener("mouseenter", Oe), e.removeEventListener("mouseleave", He)), delete e.$$touchObj;
|
|
2538
2592
|
}
|
|
2539
2593
|
};
|
|
2540
2594
|
export {
|
|
2541
|
-
|
|
2595
|
+
Nn as DAccordion,
|
|
2542
2596
|
Eo as DAlertDialog,
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2597
|
+
zt as DBadge,
|
|
2598
|
+
ee as DButton,
|
|
2599
|
+
zn as DCard,
|
|
2600
|
+
Fn as DCheckbox,
|
|
2601
|
+
Rt as DCollapse,
|
|
2602
|
+
On as DConfigProvider,
|
|
2603
|
+
No as DConfirmDialog,
|
|
2604
|
+
io as DContextMenu,
|
|
2605
|
+
Pn as DDialogProvider,
|
|
2552
2606
|
Pt as DDrag,
|
|
2553
|
-
|
|
2554
|
-
|
|
2607
|
+
ao as DDrop,
|
|
2608
|
+
Vn as DDropdown,
|
|
2555
2609
|
de as DGlobalStore,
|
|
2556
|
-
|
|
2610
|
+
Yn as DGrid,
|
|
2557
2611
|
ce as DIcon,
|
|
2558
2612
|
Z as DIconStore,
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2613
|
+
qn as DImage,
|
|
2614
|
+
Wn as DInfoProgress,
|
|
2615
|
+
Bn as DInput,
|
|
2616
|
+
Mn as DLayoutAdmin,
|
|
2563
2617
|
po as DLayoutContent,
|
|
2564
2618
|
uo as DLayoutFooter,
|
|
2565
2619
|
ro as DLayoutHeader,
|
|
@@ -2567,24 +2621,25 @@ export {
|
|
|
2567
2621
|
co as DLayoutTab,
|
|
2568
2622
|
je as DMenu,
|
|
2569
2623
|
Ye as DModal,
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2624
|
+
Rn as DNotificationProvider,
|
|
2625
|
+
Vo as DPanel,
|
|
2626
|
+
An as DScroll,
|
|
2627
|
+
Hn as DScrollProvider,
|
|
2628
|
+
jn as DSelect,
|
|
2629
|
+
Xn as DTabs,
|
|
2630
|
+
Gn as DTextarea,
|
|
2631
|
+
ye as DTransferStore,
|
|
2577
2632
|
Xe as DTree,
|
|
2578
2633
|
no as DTreeItem,
|
|
2579
2634
|
g as DTreeStore,
|
|
2580
2635
|
pn as alert,
|
|
2581
|
-
|
|
2636
|
+
Zn as clickOutside,
|
|
2582
2637
|
fn as confirm,
|
|
2583
2638
|
j as emitter,
|
|
2584
2639
|
so as eventsBus,
|
|
2585
|
-
|
|
2586
|
-
|
|
2640
|
+
Jn as focus,
|
|
2641
|
+
Kn as keydown,
|
|
2587
2642
|
Ge as notify,
|
|
2588
|
-
|
|
2589
|
-
|
|
2643
|
+
Qn as touch,
|
|
2644
|
+
Un as useNotification
|
|
2590
2645
|
};
|