doph-js 0.0.43 → 0.0.44
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 +135 -132
- 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 Q, computed as p, h as X, openBlock as f, createBlock as v, unref as h, createElementBlock as x, Fragment as G, normalizeClass as
|
|
1
|
+
import { useSlots as Q, computed as p, h as X, openBlock as f, createBlock as v, unref as h, createElementBlock as x, Fragment as G, normalizeClass as k, renderSlot as y, createCommentVNode as T, createVNode as K, createElementVNode as C, toDisplayString as U, withDirectives as oe, normalizeStyle as L, vModelText as ie, Transition as se, withCtx as B, ref as z, resolveDynamicComponent as E, withModifiers as H, resolveComponent as ae, createTextVNode as re, renderList as ee, reactive as j, getCurrentInstance as de, watch as le, onUnmounted as ue, mergeProps as P } from "vue";
|
|
2
2
|
const R = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -8,12 +8,12 @@ const R = {
|
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
10
|
const n = t, e = Q(), o = p(() => {
|
|
11
|
-
const { color:
|
|
12
|
-
return
|
|
11
|
+
const { color: a } = n;
|
|
12
|
+
return a === void 0 ? null : a;
|
|
13
13
|
}), i = p(() => {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
return typeof
|
|
14
|
+
const a = n.size ?? null;
|
|
15
|
+
if (a !== void 0)
|
|
16
|
+
return typeof a == "number" || /^\d+$/.test(a) ? `${a}px` : a;
|
|
17
17
|
}), r = X(
|
|
18
18
|
"i",
|
|
19
19
|
{
|
|
@@ -25,7 +25,7 @@ const R = {
|
|
|
25
25
|
},
|
|
26
26
|
n.component ? X(n.component) : e
|
|
27
27
|
);
|
|
28
|
-
return (
|
|
28
|
+
return (a, c) => (f(), v(h(r)));
|
|
29
29
|
}
|
|
30
30
|
}, Ve = {
|
|
31
31
|
__name: "DButton",
|
|
@@ -44,18 +44,18 @@ const R = {
|
|
|
44
44
|
const i = (r) => {
|
|
45
45
|
n("click", r);
|
|
46
46
|
};
|
|
47
|
-
return (r,
|
|
47
|
+
return (r, a) => (f(), x(G, null, [
|
|
48
48
|
h(o) ? T("", !0) : (f(), x("div", {
|
|
49
49
|
key: 0,
|
|
50
50
|
onClick: i,
|
|
51
|
-
class:
|
|
51
|
+
class: k(["button", e.class])
|
|
52
52
|
}, [
|
|
53
53
|
y(r.$slots, "default")
|
|
54
54
|
], 2)),
|
|
55
55
|
h(o) ? (f(), x("div", {
|
|
56
56
|
key: 1,
|
|
57
57
|
onClick: i,
|
|
58
|
-
class:
|
|
58
|
+
class: k(["button button-ext", e.class])
|
|
59
59
|
}, [
|
|
60
60
|
K(h(o)),
|
|
61
61
|
C("div", null, [
|
|
@@ -76,29 +76,32 @@ const q = (t, n) => {
|
|
|
76
76
|
label: String,
|
|
77
77
|
placeholder: String,
|
|
78
78
|
size: String,
|
|
79
|
+
font: String,
|
|
80
|
+
// small, big
|
|
79
81
|
modelValue: String
|
|
80
82
|
},
|
|
81
83
|
emits: ["update:modelValue"],
|
|
82
84
|
setup(t, { emit: n }) {
|
|
83
|
-
const e = t, o = p({
|
|
85
|
+
const e = t, o = p(() => e.font === "small" ? "d-input-small" : e.font === "big" ? "d-input-big" : ""), i = p({
|
|
84
86
|
get: () => e.modelValue,
|
|
85
|
-
set: (
|
|
86
|
-
n("update:modelValue",
|
|
87
|
+
set: (r) => {
|
|
88
|
+
n("update:modelValue", r);
|
|
87
89
|
}
|
|
88
90
|
});
|
|
89
|
-
return (
|
|
91
|
+
return (r, a) => (f(), x("div", ce, [
|
|
90
92
|
C("div", fe, U(e.label), 1),
|
|
91
93
|
oe(C("input", {
|
|
92
|
-
"onUpdate:modelValue":
|
|
94
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => i.value = c),
|
|
93
95
|
type: "text",
|
|
96
|
+
class: k(o.value),
|
|
94
97
|
placeholder: e.placeholder,
|
|
95
|
-
style:
|
|
96
|
-
}, null,
|
|
97
|
-
[ie,
|
|
98
|
+
style: L(e.size === "wide" ? "width:100%" : "")
|
|
99
|
+
}, null, 14, pe), [
|
|
100
|
+
[ie, i.value]
|
|
98
101
|
])
|
|
99
102
|
]));
|
|
100
103
|
}
|
|
101
|
-
}, Ae = /* @__PURE__ */ q(me, [["__scopeId", "data-v-
|
|
104
|
+
}, Ae = /* @__PURE__ */ q(me, [["__scopeId", "data-v-11679fd8"]]), F = {
|
|
102
105
|
state: {},
|
|
103
106
|
getters: {
|
|
104
107
|
getIcon(t) {
|
|
@@ -125,7 +128,7 @@ const q = (t, n) => {
|
|
|
125
128
|
setup(t) {
|
|
126
129
|
const n = t;
|
|
127
130
|
return (e, o) => (f(), x("div", {
|
|
128
|
-
class:
|
|
131
|
+
class: k(["badge", n.class])
|
|
129
132
|
}, [
|
|
130
133
|
y(e.$slots, "default")
|
|
131
134
|
], 2));
|
|
@@ -155,29 +158,29 @@ const q = (t, n) => {
|
|
|
155
158
|
}
|
|
156
159
|
},
|
|
157
160
|
setup(t) {
|
|
158
|
-
const n = t, e = (
|
|
159
|
-
height:
|
|
160
|
-
width:
|
|
161
|
-
position:
|
|
162
|
-
visibility:
|
|
163
|
-
overflow:
|
|
164
|
-
paddingTop:
|
|
165
|
-
paddingBottom:
|
|
166
|
-
borderTopWidth:
|
|
167
|
-
borderBottomWidth:
|
|
168
|
-
marginTop:
|
|
169
|
-
marginBottom:
|
|
170
|
-
}), o = (
|
|
171
|
-
const { width: l } = getComputedStyle(
|
|
172
|
-
|
|
173
|
-
let { height: m } = getComputedStyle(
|
|
174
|
-
return
|
|
175
|
-
}, i = (
|
|
176
|
-
const N =
|
|
177
|
-
|
|
178
|
-
|
|
161
|
+
const n = t, e = (s) => ({
|
|
162
|
+
height: s.style.height,
|
|
163
|
+
width: s.style.width,
|
|
164
|
+
position: s.style.position,
|
|
165
|
+
visibility: s.style.visibility,
|
|
166
|
+
overflow: s.style.overflow,
|
|
167
|
+
paddingTop: s.style.paddingTop,
|
|
168
|
+
paddingBottom: s.style.paddingBottom,
|
|
169
|
+
borderTopWidth: s.style.borderTopWidth,
|
|
170
|
+
borderBottomWidth: s.style.borderBottomWidth,
|
|
171
|
+
marginTop: s.style.marginTop,
|
|
172
|
+
marginBottom: s.style.marginBottom
|
|
173
|
+
}), o = (s, d) => {
|
|
174
|
+
const { width: l } = getComputedStyle(s);
|
|
175
|
+
s.style.width = l, s.style.position = "absolute", s.style.visibility = "hidden", s.style.height = "";
|
|
176
|
+
let { height: m } = getComputedStyle(s);
|
|
177
|
+
return s.style.width = d.width, s.style.position = d.position, s.style.visibility = d.visibility, s.style.height = I, s.style.overflow = "hidden", d.height && d.height !== I ? d.height : m;
|
|
178
|
+
}, i = (s, d, l, m, $) => {
|
|
179
|
+
const N = s.animate(m, $);
|
|
180
|
+
s.style.height = d.height, N.onfinish = () => {
|
|
181
|
+
s.style.overflow = d.overflow, l();
|
|
179
182
|
};
|
|
180
|
-
}, r = (
|
|
183
|
+
}, r = (s, d) => [
|
|
181
184
|
{
|
|
182
185
|
height: I,
|
|
183
186
|
opacity: n.opacityClosed,
|
|
@@ -189,7 +192,7 @@ const q = (t, n) => {
|
|
|
189
192
|
marginBottom: I
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
|
-
height:
|
|
195
|
+
height: s,
|
|
193
196
|
opacity: n.opacityOpened,
|
|
194
197
|
paddingTop: d.paddingTop,
|
|
195
198
|
paddingBottom: d.paddingBottom,
|
|
@@ -198,22 +201,22 @@ const q = (t, n) => {
|
|
|
198
201
|
marginTop: d.marginTop,
|
|
199
202
|
marginBottom: d.marginBottom
|
|
200
203
|
}
|
|
201
|
-
],
|
|
202
|
-
const l =
|
|
204
|
+
], a = (s, d) => {
|
|
205
|
+
const l = s, m = e(l), $ = o(l, m), N = r($, m), M = { duration: n.duration, easing: n.easingEnter };
|
|
203
206
|
i(l, m, d, N, M);
|
|
204
|
-
}, c = (
|
|
205
|
-
const l =
|
|
207
|
+
}, c = (s, d) => {
|
|
208
|
+
const l = s, m = e(l), { height: $ } = getComputedStyle(l);
|
|
206
209
|
l.style.height = $, l.style.overflow = "hidden";
|
|
207
210
|
const N = r($, m).reverse(), M = { duration: n.duration, easing: n.easingLeave };
|
|
208
211
|
i(l, m, d, N, M);
|
|
209
212
|
};
|
|
210
|
-
return (
|
|
213
|
+
return (s, d) => (f(), v(se, {
|
|
211
214
|
css: !1,
|
|
212
|
-
onEnter:
|
|
215
|
+
onEnter: a,
|
|
213
216
|
onLeave: c
|
|
214
217
|
}, {
|
|
215
218
|
default: B(() => [
|
|
216
|
-
y(
|
|
219
|
+
y(s.$slots, "default")
|
|
217
220
|
]),
|
|
218
221
|
_: 3
|
|
219
222
|
}));
|
|
@@ -252,29 +255,29 @@ const q = (t, n) => {
|
|
|
252
255
|
tag: { type: String, default: "div" }
|
|
253
256
|
},
|
|
254
257
|
setup(t) {
|
|
255
|
-
const n = t, e = Q(), o = z(!1), i = p(() => o && n.transferData), r = p(() => ({ position: "fixed", top: "-1000px" })),
|
|
256
|
-
const d =
|
|
258
|
+
const n = t, e = Q(), o = z(!1), i = p(() => o && n.transferData), r = p(() => ({ position: "fixed", top: "-1000px" })), a = (c, s) => {
|
|
259
|
+
const d = s.dataTransfer;
|
|
257
260
|
if ([b.dragenter, b.dragover].includes(c) && n.dropEffect && (d.dropEffect = n.dropEffect), c === b.dragstart) {
|
|
258
261
|
if (n.effectAllowed && (d.effectAllowed = n.effectAllowed), n.image || e.image) {
|
|
259
262
|
let l;
|
|
260
263
|
n.image ? (l = new Image(), l.src = n.image) : e.image && (l = e.image[0].elm), d.setDragImage && d.setDragImage(l, n.imageXOffset, n.imageYOffset);
|
|
261
264
|
}
|
|
262
|
-
n.transferData !== void 0 && (Z.data = n.transferData,
|
|
265
|
+
n.transferData !== void 0 && (Z.data = n.transferData, s.dataTransfer.setData("text", "")), o.value = !0;
|
|
263
266
|
}
|
|
264
267
|
};
|
|
265
|
-
return (c,
|
|
268
|
+
return (c, s) => (f(), v(E(t.tag), {
|
|
266
269
|
draggable: n.draggable,
|
|
267
|
-
onDrag:
|
|
268
|
-
onDragstart:
|
|
269
|
-
onDragenter:
|
|
270
|
-
onDragleave:
|
|
271
|
-
onDragend:
|
|
270
|
+
onDrag: s[0] || (s[0] = (d) => a(h(b).drag, d)),
|
|
271
|
+
onDragstart: s[1] || (s[1] = H((d) => a(h(b).dragstart, d), ["stop"])),
|
|
272
|
+
onDragenter: s[2] || (s[2] = (d) => a(h(b).dragenter, d)),
|
|
273
|
+
onDragleave: s[3] || (s[3] = (d) => a(h(b).dragleave, d)),
|
|
274
|
+
onDragend: s[4] || (s[4] = (d) => a(h(b).dragend, d))
|
|
272
275
|
}, {
|
|
273
276
|
default: B(() => [
|
|
274
277
|
y(c.$slots, "default", { transferData: i.value }),
|
|
275
278
|
t.hideImageHtml ? (f(), x("div", {
|
|
276
279
|
key: 0,
|
|
277
|
-
style:
|
|
280
|
+
style: L(r.value)
|
|
278
281
|
}, [
|
|
279
282
|
y(c.$slots, "image", { transferData: i.value })
|
|
280
283
|
], 4)) : y(c.$slots, "image", {
|
|
@@ -298,29 +301,29 @@ const xe = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
|
|
|
298
301
|
},
|
|
299
302
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
|
|
300
303
|
setup(t, { emit: n }) {
|
|
301
|
-
const e = t, o = z(null), i = z(!1), r = z(!1),
|
|
304
|
+
const e = t, o = z(null), i = z(!1), r = z(!1), a = z(!1), c = p(() => e.model.children && e.model.children.length), s = p(() => (u.actions.isTreeExpanded(e.treeId) && (e.model.expanded = e.model.expanded === void 0 ? !0 : e.model.expanded), e.model.expanded)), d = (S) => {
|
|
302
305
|
n("nodeclick", { event: S, model: e.model });
|
|
303
306
|
}, l = (S) => {
|
|
304
307
|
n("nodeclick", S);
|
|
305
|
-
}, m = p(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (r.value ? "node-top " : "") + (
|
|
308
|
+
}, m = p(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (r.value ? "node-top " : "") + (a.value ? "node-bottom " : "")), $ = p(() => e.model.draggable === !0), N = (S) => {
|
|
306
309
|
let D = Z.data;
|
|
307
310
|
if (D.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, D.model.id) || u.actions.isParentOfChild(e.treeId, e.items, D.model.id, e.model.id))
|
|
308
|
-
return i.value = !1, r.value = !1,
|
|
311
|
+
return i.value = !1, r.value = !1, a.value = !1, !1;
|
|
309
312
|
if (!u.state.trees[e.treeId].transfer && D.id !== e.treeId)
|
|
310
313
|
return !1;
|
|
311
314
|
let _ = "";
|
|
312
|
-
r.value ? _ = "before" :
|
|
315
|
+
r.value ? _ = "before" : a.value ? _ = "after" : _ = "inside", u.actions.moveTreeNode(D.id, e.treeId, e.items, D.model.id, e.model.id, _), i.value = !1, r.value = !1, a.value = !1;
|
|
313
316
|
}, M = (S) => {
|
|
314
317
|
let D = Z.data;
|
|
315
318
|
if (D.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, D.model.id) || u.actions.isParentOfChild(e.treeId, e.items, D.model.id, e.model.id))
|
|
316
319
|
return !1;
|
|
317
|
-
const _ = S.y, w = o.value.getBoundingClientRect().top,
|
|
318
|
-
_ > w && _ <= w + g ? (i.value = !1, r.value = !0,
|
|
320
|
+
const _ = S.y, w = o.value.getBoundingClientRect().top, W = o.value.getBoundingClientRect().height, g = W / 3;
|
|
321
|
+
_ > w && _ <= w + g ? (i.value = !1, r.value = !0, a.value = !1) : _ < w + W && _ >= w + W - g ? (i.value = !1, r.value = !1, a.value = !0) : (i.value = !0, r.value = !1, a.value = !1);
|
|
319
322
|
}, Y = () => {
|
|
320
|
-
i.value = !1, r.value = !1,
|
|
323
|
+
i.value = !1, r.value = !1, a.value = !1;
|
|
321
324
|
};
|
|
322
325
|
return (S, D) => {
|
|
323
|
-
const _ =
|
|
326
|
+
const _ = ae("d-tree-item", !0);
|
|
324
327
|
return f(), v(be, {
|
|
325
328
|
tag: "li",
|
|
326
329
|
class: "tree-item",
|
|
@@ -333,12 +336,12 @@ const xe = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
|
|
|
333
336
|
onDragleave: H(Y, ["prevent"])
|
|
334
337
|
}, {
|
|
335
338
|
default: B(() => {
|
|
336
|
-
var w,
|
|
339
|
+
var w, W;
|
|
337
340
|
return [
|
|
338
341
|
C("div", {
|
|
339
342
|
ref_key: "node",
|
|
340
343
|
ref: o,
|
|
341
|
-
class:
|
|
344
|
+
class: k(m.value),
|
|
342
345
|
onClick: d
|
|
343
346
|
}, [
|
|
344
347
|
C("div", null, [
|
|
@@ -347,14 +350,14 @@ const xe = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
|
|
|
347
350
|
component: h(F).getters.getIcon(e.model.icons.pre.component),
|
|
348
351
|
size: 18,
|
|
349
352
|
color: e.model.icons.pre.color ? e.model.icons.pre.color : "inherit",
|
|
350
|
-
class:
|
|
353
|
+
class: k(s.value ? "tree-open-pre" : "")
|
|
351
354
|
}, null, 8, ["component", "color", "class"])) : T("", !0),
|
|
352
355
|
e.model.icons && e.model.icons.pre && !c.value ? (f(), v(E(R), {
|
|
353
356
|
key: 1,
|
|
354
357
|
component: h(F).getters.getIcon(e.model.icons.pre.component),
|
|
355
358
|
size: 18,
|
|
356
359
|
color: "rgba(0,0,0,0)",
|
|
357
|
-
class:
|
|
360
|
+
class: k(s.value ? "tree-open-pre" : "")
|
|
358
361
|
}, null, 8, ["component", "class"])) : T("", !0),
|
|
359
362
|
e.model.icons && e.model.icons.icon ? (f(), v(E(R), {
|
|
360
363
|
key: 2,
|
|
@@ -368,7 +371,7 @@ const xe = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
|
|
|
368
371
|
C("div", De, [
|
|
369
372
|
((w = e.model.badge) == null ? void 0 : w.value) !== void 0 ? (f(), v(E(ge), {
|
|
370
373
|
key: 0,
|
|
371
|
-
class:
|
|
374
|
+
class: k([(W = e.model.badge) == null ? void 0 : W.class, "badge-sm"])
|
|
372
375
|
}, {
|
|
373
376
|
default: B(() => [
|
|
374
377
|
re(U(e.model.badge.value), 1)
|
|
@@ -380,13 +383,13 @@ const xe = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
|
|
|
380
383
|
component: h(F).getters.getIcon(e.model.icons.post.component),
|
|
381
384
|
size: 20,
|
|
382
385
|
color: e.model.icons.post.color ? e.model.icons.post.color : "inherit",
|
|
383
|
-
class:
|
|
386
|
+
class: k(s.value ? "tree-open-post" : "")
|
|
384
387
|
}, null, 8, ["component", "color", "class"])) : T("", !0)
|
|
385
388
|
])
|
|
386
389
|
], 2),
|
|
387
390
|
K(he, null, {
|
|
388
391
|
default: B(() => [
|
|
389
|
-
c.value &&
|
|
392
|
+
c.value && s.value ? (f(), x("ul", _e, [
|
|
390
393
|
(f(!0), x(G, null, ee(t.model.children, (g) => (f(), v(_, {
|
|
391
394
|
class: "tree-item",
|
|
392
395
|
key: g.id,
|
|
@@ -466,7 +469,7 @@ const V = Se(), u = {
|
|
|
466
469
|
},
|
|
467
470
|
// data - ноды, dataId - ID ноды родителя data
|
|
468
471
|
getParentId(t, n, e, o = "id", i = "children", r = {}) {
|
|
469
|
-
return e && t && (t.find((
|
|
472
|
+
return e && t && (t.find((a) => a[o] === e ? (r.found = n, a) : u.getters.getParentId(a[i], a.id, e, o, i, r)), r.found) ? r.found : !1;
|
|
470
473
|
}
|
|
471
474
|
},
|
|
472
475
|
mutations: {
|
|
@@ -514,15 +517,15 @@ const V = Se(), u = {
|
|
|
514
517
|
return n && t && (t.find((r) => r[e] === n ? (i.found = r, r) : u.actions.deepSearch(r[o], n, e, o, i)), i.found) ? i.found : !1;
|
|
515
518
|
},
|
|
516
519
|
moveTreeNode(t, n, e, o, i, r) {
|
|
517
|
-
const
|
|
518
|
-
u.actions.insertTreeNode(e, i,
|
|
520
|
+
const a = u.actions.deleteTreeNode(e, o);
|
|
521
|
+
u.actions.insertTreeNode(e, i, a, r), V.emit(`move-${n}`, { fromTreeId: t, toTreeId: n, moved: a.id, target: i, position: r });
|
|
519
522
|
},
|
|
520
523
|
insertTreeNode(t, n, e, o) {
|
|
521
524
|
if (t)
|
|
522
525
|
for (let i = 0; i < t.length; i++) {
|
|
523
526
|
if (t[i].id === n) {
|
|
524
|
-
let
|
|
525
|
-
return o === "after" ? (
|
|
527
|
+
let a = i;
|
|
528
|
+
return o === "after" ? (a++, t.splice(a, 0, e)) : o === "before" ? t.splice(a, 0, e) : o === "inside" && (Object.hasOwn(t[i], "children") || (t[i].children = [], t[i].opened = !0), t[i].children.splice(0, 0, e)), t[i];
|
|
526
529
|
}
|
|
527
530
|
const r = this.insertTreeNode(t[i].children, n, e, o);
|
|
528
531
|
if (r)
|
|
@@ -550,10 +553,10 @@ const V = Se(), u = {
|
|
|
550
553
|
emits: Object.keys(b),
|
|
551
554
|
setup(t, { emit: n }) {
|
|
552
555
|
let e = j({});
|
|
553
|
-
const o = z("false"), i = z(null), r = /* @__PURE__ */ new Set(),
|
|
554
|
-
e = Z.data, n(
|
|
556
|
+
const o = z("false"), i = z(null), r = /* @__PURE__ */ new Set(), a = p(() => o.value && e), c = (s, d) => {
|
|
557
|
+
e = Z.data, n(s, d, e), s === b.dragenter && (r.size || d.target === i.value) && r.add(d.target), s === b.dragleave && r.delete(d.target), s === b.drop && r.clear(), o.value = !!r.size;
|
|
555
558
|
};
|
|
556
|
-
return (
|
|
559
|
+
return (s, d) => (f(), v(E(t.tag), {
|
|
557
560
|
ref_key: "el",
|
|
558
561
|
ref: i,
|
|
559
562
|
onDragenter: d[0] || (d[0] = (l) => c(h(b).dragenter, l)),
|
|
@@ -562,7 +565,7 @@ const V = Se(), u = {
|
|
|
562
565
|
onDrop: d[3] || (d[3] = H((l) => c(h(b).drop, l), ["prevent"]))
|
|
563
566
|
}, {
|
|
564
567
|
default: B(() => [
|
|
565
|
-
y(
|
|
568
|
+
y(s.$slots, "default", { transferData: a.value })
|
|
566
569
|
]),
|
|
567
570
|
_: 3
|
|
568
571
|
}, 544));
|
|
@@ -587,30 +590,30 @@ const V = Se(), u = {
|
|
|
587
590
|
setup(t, { emit: n }) {
|
|
588
591
|
const e = t, o = de().uid;
|
|
589
592
|
u.actions.initTreeStore(o, e.noSelect, e.multiSelect, e.expanded, e.transfer, e.renderTitle);
|
|
590
|
-
const i = (
|
|
591
|
-
console.log(
|
|
593
|
+
const i = (a, c) => {
|
|
594
|
+
console.log(a, c);
|
|
592
595
|
};
|
|
593
|
-
V.on(`select-${o}`, (
|
|
594
|
-
n("select",
|
|
595
|
-
}), V.on(`expand-${o}`, (
|
|
596
|
-
n("expand",
|
|
597
|
-
}), V.on(`collapse-${o}`, (
|
|
598
|
-
n("collapse",
|
|
599
|
-
}), V.on(`move-${o}`, (
|
|
600
|
-
n("move",
|
|
596
|
+
V.on(`select-${o}`, (a) => {
|
|
597
|
+
n("select", a);
|
|
598
|
+
}), V.on(`expand-${o}`, (a) => {
|
|
599
|
+
n("expand", a);
|
|
600
|
+
}), V.on(`collapse-${o}`, (a) => {
|
|
601
|
+
n("collapse", a);
|
|
602
|
+
}), V.on(`move-${o}`, (a) => {
|
|
603
|
+
n("move", a);
|
|
601
604
|
});
|
|
602
|
-
const r = (
|
|
603
|
-
console.log(
|
|
605
|
+
const r = (a = null) => {
|
|
606
|
+
console.log(a), u.mutations.setItemSelect(o, a.model), u.actions.toggleItem(o, e.items, a.model.id);
|
|
604
607
|
};
|
|
605
|
-
return (
|
|
608
|
+
return (a, c) => (f(), v(Be, {
|
|
606
609
|
class: "tree",
|
|
607
610
|
tag: "ul",
|
|
608
611
|
onDrop: H(i, ["stop"])
|
|
609
612
|
}, {
|
|
610
613
|
default: B(() => [
|
|
611
|
-
(f(!0), x(G, null, ee(e.items, (
|
|
612
|
-
key:
|
|
613
|
-
model:
|
|
614
|
+
(f(!0), x(G, null, ee(e.items, (s) => (f(), v($e, {
|
|
615
|
+
key: s.id,
|
|
616
|
+
model: s,
|
|
614
617
|
treeId: h(o),
|
|
615
618
|
items: e.items,
|
|
616
619
|
onNodeclick: r
|
|
@@ -668,12 +671,12 @@ const we = {
|
|
|
668
671
|
},
|
|
669
672
|
setup(t) {
|
|
670
673
|
const n = t, e = p(() => {
|
|
671
|
-
const { fixed: o, zIndex: i, minWidth: r, height:
|
|
672
|
-
return `position:${l};z-index:${i};${m}height:${
|
|
674
|
+
const { fixed: o, zIndex: i, minWidth: r, height: a, paddingLeft: c, transitionDuration: s, transitionTimingFunction: d } = n, l = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
675
|
+
return `position:${l};z-index:${i};${m}height:${a}px;padding-left:${c}px;transition-duration:${s}ms;transition-timing-function:${d};`;
|
|
673
676
|
});
|
|
674
677
|
return (o, i) => (f(), x("header", {
|
|
675
678
|
class: "d-layout-header",
|
|
676
|
-
style:
|
|
679
|
+
style: L(e.value)
|
|
677
680
|
}, [
|
|
678
681
|
y(o.$slots, "default")
|
|
679
682
|
], 4));
|
|
@@ -717,12 +720,12 @@ const we = {
|
|
|
717
720
|
},
|
|
718
721
|
setup(t) {
|
|
719
722
|
const n = t, e = p(() => {
|
|
720
|
-
const { fixed: o, top: i, zIndex: r, minWidth:
|
|
721
|
-
return `position:${m};top:${i}px;z-index:${r};${$}height:${c}px;padding-left:${
|
|
723
|
+
const { fixed: o, top: i, zIndex: r, minWidth: a, height: c, paddingLeft: s, transitionDuration: d, transitionTimingFunction: l } = n, m = o ? "fixed" : "static", $ = n.useMinWidthLayout ? `min-width: ${a}px;` : "";
|
|
724
|
+
return `position:${m};top:${i}px;z-index:${r};${$}height:${c}px;padding-left:${s}px;transition-duration:${d}ms;transition-timing-function:${l};`;
|
|
722
725
|
});
|
|
723
726
|
return (o, i) => (f(), x("div", {
|
|
724
727
|
class: "d-layout-tab",
|
|
725
|
-
style:
|
|
728
|
+
style: L(e.value)
|
|
726
729
|
}, [
|
|
727
730
|
y(o.$slots, "default")
|
|
728
731
|
], 4));
|
|
@@ -762,12 +765,12 @@ const we = {
|
|
|
762
765
|
},
|
|
763
766
|
setup(t) {
|
|
764
767
|
const n = t, e = p(() => {
|
|
765
|
-
const { fixed: o, zIndex: i, minWidth: r, height:
|
|
766
|
-
return `position:${l};z-index:${i};${m}height:${
|
|
768
|
+
const { fixed: o, zIndex: i, minWidth: r, height: a, paddingLeft: c, transitionDuration: s, transitionTimingFunction: d } = n, l = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
769
|
+
return `position:${l};z-index:${i};${m}height:${a}px;padding-left:${c}px;transition-duration:${s}ms;transition-timing-function:${d};`;
|
|
767
770
|
});
|
|
768
771
|
return (o, i) => (f(), x("footer", {
|
|
769
772
|
class: "d-layout-footer",
|
|
770
|
-
style:
|
|
773
|
+
style: L(e.value)
|
|
771
774
|
}, [
|
|
772
775
|
y(o.$slots, "default")
|
|
773
776
|
], 4));
|
|
@@ -802,12 +805,12 @@ const we = {
|
|
|
802
805
|
},
|
|
803
806
|
setup(t) {
|
|
804
807
|
const n = t, e = p(() => {
|
|
805
|
-
const { zIndex: o, width: i, paddingTop: r, transitionDuration:
|
|
806
|
-
return `z-index:${o};width:${i}px;padding-top:${r}px;transition-duration:${
|
|
808
|
+
const { zIndex: o, width: i, paddingTop: r, transitionDuration: a, transitionTimingFunction: c } = n;
|
|
809
|
+
return `z-index:${o};width:${i}px;padding-top:${r}px;transition-duration:${a}ms;transition-timing-function:${c};`;
|
|
807
810
|
});
|
|
808
811
|
return (o, i) => (f(), x("aside", {
|
|
809
812
|
class: "d-layout-sidebar",
|
|
810
|
-
style:
|
|
813
|
+
style: L(e.value)
|
|
811
814
|
}, [
|
|
812
815
|
y(o.$slots, "default")
|
|
813
816
|
], 4));
|
|
@@ -839,11 +842,11 @@ const we = {
|
|
|
839
842
|
},
|
|
840
843
|
setup(t) {
|
|
841
844
|
const n = t, e = p(() => {
|
|
842
|
-
const { paddingTop: o, paddingBottom: i, paddingLeft: r, transitionDuration:
|
|
843
|
-
return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${r}px;${
|
|
845
|
+
const { paddingTop: o, paddingBottom: i, paddingLeft: r, transitionDuration: a, transitionTimingFunction: c } = n, s = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
|
|
846
|
+
return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${r}px;${s}transition-duration:${a}ms;transition-timing-function:${c};`;
|
|
844
847
|
});
|
|
845
848
|
return (o, i) => (f(), x("main", {
|
|
846
|
-
style:
|
|
849
|
+
style: L(e.value),
|
|
847
850
|
class: "d-layout-content"
|
|
848
851
|
}, [
|
|
849
852
|
y(o.$slots, "default")
|
|
@@ -861,22 +864,22 @@ function ze(t) {
|
|
|
861
864
|
const m = ((l = document.scrollingElement) === null || l === void 0 ? void 0 : l.scrollLeft) || 0;
|
|
862
865
|
i(m);
|
|
863
866
|
}
|
|
864
|
-
function
|
|
867
|
+
function a() {
|
|
865
868
|
r();
|
|
866
869
|
}
|
|
867
870
|
function c() {
|
|
868
871
|
document.addEventListener("scroll", r);
|
|
869
872
|
}
|
|
870
|
-
function
|
|
873
|
+
function s() {
|
|
871
874
|
o && document.removeEventListener("scroll", r);
|
|
872
875
|
}
|
|
873
876
|
function d() {
|
|
874
|
-
|
|
877
|
+
a(), c(), o = !0;
|
|
875
878
|
}
|
|
876
879
|
return le(t, (l) => {
|
|
877
|
-
l ? d() :
|
|
880
|
+
l ? d() : s();
|
|
878
881
|
}, { immediate: !0 }), ue(() => {
|
|
879
|
-
|
|
882
|
+
s();
|
|
880
883
|
}), e;
|
|
881
884
|
}
|
|
882
885
|
const He = 1001, Fe = 999, Me = 998, Pe = {
|
|
@@ -970,7 +973,7 @@ const He = 1001, Fe = 999, Me = 998, Pe = {
|
|
|
970
973
|
},
|
|
971
974
|
emits: ["update:sidebar-collapse"],
|
|
972
975
|
setup(t, { emit: n }) {
|
|
973
|
-
const e = t, o = p(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = p(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), r = ze(i),
|
|
976
|
+
const e = t, o = p(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = p(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), r = ze(i), a = p(() => e.fixedHeaderAndTab ? r.value : ""), c = p(() => e.fixedFooter ? r.value : ""), s = p(() => {
|
|
974
977
|
const { transitionDuration: g, transitionTimingFunction: A } = e;
|
|
975
978
|
return {
|
|
976
979
|
transitionDuration: g,
|
|
@@ -998,39 +1001,39 @@ const He = 1001, Fe = 999, Me = 998, Pe = {
|
|
|
998
1001
|
), w = p(() => {
|
|
999
1002
|
let g = 0;
|
|
1000
1003
|
return e.fixedHeaderAndTab && (e.headerVisible && (g += e.headerHeight), e.tabVisible && (g += e.tabHeight)), g;
|
|
1001
|
-
}),
|
|
1004
|
+
}), W = p(() => e.fixedFooter && e.footerVisible ? e.footerHeight : 0);
|
|
1002
1005
|
return (g, A) => (f(), x("div", {
|
|
1003
1006
|
class: "d-layout",
|
|
1004
|
-
style:
|
|
1007
|
+
style: L(o.value)
|
|
1005
1008
|
}, [
|
|
1006
|
-
t.headerVisible ? (f(), v(Ie, P({ key: 0 },
|
|
1009
|
+
t.headerVisible ? (f(), v(Ie, P({ key: 0 }, s.value, {
|
|
1007
1010
|
fixed: t.fixedHeaderAndTab,
|
|
1008
1011
|
"z-index": He,
|
|
1009
1012
|
"min-width": t.minWidth,
|
|
1010
1013
|
height: t.headerHeight,
|
|
1011
1014
|
"padding-left": D.value,
|
|
1012
|
-
style:
|
|
1015
|
+
style: a.value
|
|
1013
1016
|
}), {
|
|
1014
1017
|
default: B(() => [
|
|
1015
1018
|
y(g.$slots, "header")
|
|
1016
1019
|
]),
|
|
1017
1020
|
_: 3
|
|
1018
1021
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : T("", !0),
|
|
1019
|
-
t.tabVisible ? (f(), v(ke, P({ key: 1 },
|
|
1022
|
+
t.tabVisible ? (f(), v(ke, P({ key: 1 }, s.value, {
|
|
1020
1023
|
fixed: t.fixedHeaderAndTab,
|
|
1021
1024
|
"z-index": Fe,
|
|
1022
1025
|
"min-width": t.minWidth,
|
|
1023
1026
|
top: t.headerHeight,
|
|
1024
1027
|
height: t.tabHeight,
|
|
1025
1028
|
"padding-left": S.value,
|
|
1026
|
-
style:
|
|
1029
|
+
style: a.value
|
|
1027
1030
|
}), {
|
|
1028
1031
|
default: B(() => [
|
|
1029
1032
|
y(g.$slots, "tab")
|
|
1030
1033
|
]),
|
|
1031
1034
|
_: 3
|
|
1032
1035
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : T("", !0),
|
|
1033
|
-
t.sidebarVisible ? (f(), v(We, P({ key: 2 },
|
|
1036
|
+
t.sidebarVisible ? (f(), v(We, P({ key: 2 }, s.value, {
|
|
1034
1037
|
"z-index": l.value,
|
|
1035
1038
|
width: Y.value,
|
|
1036
1039
|
"padding-top": _.value
|
|
@@ -1043,12 +1046,12 @@ const He = 1001, Fe = 999, Me = 998, Pe = {
|
|
|
1043
1046
|
N.value ? (f(), x("div", {
|
|
1044
1047
|
key: 3,
|
|
1045
1048
|
class: "d-layout-sidebar-mask",
|
|
1046
|
-
style:
|
|
1049
|
+
style: L(M.value),
|
|
1047
1050
|
onClick: $
|
|
1048
1051
|
}, null, 4)) : T("", !0),
|
|
1049
|
-
K(Ce, P(
|
|
1052
|
+
K(Ce, P(s.value, {
|
|
1050
1053
|
"padding-top": w.value,
|
|
1051
|
-
"padding-bottom":
|
|
1054
|
+
"padding-bottom": W.value,
|
|
1052
1055
|
"padding-left": S.value,
|
|
1053
1056
|
"overflow-hidden": t.addMainOverflowHidden
|
|
1054
1057
|
}), {
|
|
@@ -1057,7 +1060,7 @@ const He = 1001, Fe = 999, Me = 998, Pe = {
|
|
|
1057
1060
|
]),
|
|
1058
1061
|
_: 3
|
|
1059
1062
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
1060
|
-
t.footerVisible ? (f(), v(Le, P({ key: 4 },
|
|
1063
|
+
t.footerVisible ? (f(), v(Le, P({ key: 4 }, s.value, {
|
|
1061
1064
|
fixed: t.fixedFooter,
|
|
1062
1065
|
"z-index": Me,
|
|
1063
1066
|
"min-width": t.minWidth,
|
package/dist/dophJs.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.DophJs={},p.Vue))})(this,function(p,e){"use strict";const fe="",pe="",ue="",ge="",C={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String},setup(o){const n=o,t=e.useSlots(),i=e.computed(()=>{const{color:s}=n;return s===void 0?null:s}),r=e.computed(()=>{const s=n.size??null;if(s!==void 0)return typeof s=="number"||/^\d+$/.test(s)?`${s}px`:s}),l=e.h("i",{class:"icon",style:{color:i.value,fontSize:r.value}},n.component?e.h(n.component):t);return(s,f)=>(e.openBlock(),e.createBlock(e.unref(l)))}},X={__name:"DButton",props:{class:String,icon:Object},emits:["click"],setup(o,{emit:n}){const t=o;let i=null;t.icon&&(i=e.h(C,{component:t.icon,color:"inherit"}));const r=l=>{n("click",l)};return(l,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(i)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:r,class:e.normalizeClass(["button",t.class])},[e.renderSlot(l.$slots,"default")],2)),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:r,class:e.normalizeClass(["button button-ext",t.class])},[e.createVNode(e.unref(i)),e.createElementVNode("div",null,[e.renderSlot(l.$slots,"default")])],2)):e.createCommentVNode("",!0)],64))}},he="",E=(o,n)=>{const t=o.__vccOpts||o;for(const[i,r]of n)t[i]=r;return t},j={class:"d-input"},G={class:"label"},U=["placeholder"],q=E({__name:"DInput",props:{label:String,placeholder:String,size:String,modelValue:String},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,i=e.computed({get:()=>t.modelValue,set:r=>{n("update:modelValue",r)}});return(r,l)=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",G,e.toDisplayString(t.label),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=s=>i.value=s),type:"text",placeholder:t.placeholder,style:e.normalizeStyle(t.size==="wide"?"width:100%":"")},null,12,U),[[e.vModelText,i.value]])]))}},[["__scopeId","data-v-5d2cb864"]]),D={state:{},getters:{getIcon(o){return D.state[o]},getIcons(){return D.state}},mutations:{addIcon(o,n){D.state.name=n},addIcons(o){for(const n in o)o.hasOwnProperty(n)&&(D.state[n]=o[n])}}},W={__name:"DBadge",props:{class:String},setup(o){const n=o;return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["badge",n.class])},[e.renderSlot(t.$slots,"default")],2))}},S="0px",M={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(o){const n=o,t=a=>({height:a.style.height,width:a.style.width,position:a.style.position,visibility:a.style.visibility,overflow:a.style.overflow,paddingTop:a.style.paddingTop,paddingBottom:a.style.paddingBottom,borderTopWidth:a.style.borderTopWidth,borderBottomWidth:a.style.borderBottomWidth,marginTop:a.style.marginTop,marginBottom:a.style.marginBottom}),i=(a,d)=>{const{width:m}=getComputedStyle(a);a.style.width=m,a.style.position="absolute",a.style.visibility="hidden",a.style.height="";let{height:u}=getComputedStyle(a);return a.style.width=d.width,a.style.position=d.position,a.style.visibility=d.visibility,a.style.height=S,a.style.overflow="hidden",d.height&&d.height!==S?d.height:u},r=(a,d,m,u,B)=>{const _=a.animate(u,B);a.style.height=d.height,_.onfinish=()=>{a.style.overflow=d.overflow,m()}},l=(a,d)=>[{height:S,opacity:n.opacityClosed,paddingTop:S,paddingBottom:S,borderTopWidth:S,borderBottomWidth:S,marginTop:S,marginBottom:S},{height:a,opacity:n.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],s=(a,d)=>{const m=a,u=t(m),B=i(m,u),_=l(B,u),w={duration:n.duration,easing:n.easingEnter};r(m,u,d,_,w)},f=(a,d)=>{const m=a,u=t(m),{height:B}=getComputedStyle(m);m.style.height=B,m.style.overflow="hidden";const _=l(B,u).reverse(),w={duration:n.duration,easing:n.easingLeave};r(m,u,d,_,w)};return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{css:!1,onEnter:s,onLeave:f},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3}))}},L={data:void 0},V=o=>o.reduce((n,t)=>(n[t]=t)&&n,{}),h=V(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),J=V(["copy","move","link","none"]),K=V(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),Q={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:o=>o in J},effectAllowed:{validator:o=>o in K},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(o){const n=o,t=e.useSlots(),i=e.ref(!1),r=e.computed(()=>i&&n.transferData),l=e.computed(()=>({position:"fixed",top:"-1000px"})),s=(f,a)=>{const d=a.dataTransfer;if([h.dragenter,h.dragover].includes(f)&&n.dropEffect&&(d.dropEffect=n.dropEffect),f===h.dragstart){if(n.effectAllowed&&(d.effectAllowed=n.effectAllowed),n.image||t.image){let m;n.image?(m=new Image,m.src=n.image):t.image&&(m=t.image[0].elm),d.setDragImage&&d.setDragImage(m,n.imageXOffset,n.imageYOffset)}n.transferData!==void 0&&(L.data=n.transferData,a.dataTransfer.setData("text","")),i.value=!0}};return(f,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{draggable:n.draggable,onDrag:a[0]||(a[0]=d=>s(e.unref(h).drag,d)),onDragstart:a[1]||(a[1]=e.withModifiers(d=>s(e.unref(h).dragstart,d),["stop"])),onDragenter:a[2]||(a[2]=d=>s(e.unref(h).dragenter,d)),onDragleave:a[3]||(a[3]=d=>s(e.unref(h).dragleave,d)),onDragend:a[4]||(a[4]=d=>s(e.unref(h).dragend,d))},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{transferData:r.value}),o.hideImageHtml?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.value)},[e.renderSlot(f.$slots,"image",{transferData:r.value})],4)):e.renderSlot(f.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},be="",v={class:"item-title"},ee={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},te={key:0,class:"sub-menu"},F=E({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(o,{emit:n}){const t=o,i=e.ref(null),r=e.ref(!1),l=e.ref(!1),s=e.ref(!1),f=e.computed(()=>t.model.children&&t.model.children.length),a=e.computed(()=>(c.actions.isTreeExpanded(t.treeId)&&(t.model.expanded=t.model.expanded===void 0?!0:t.model.expanded),t.model.expanded)),d=k=>{n("nodeclick",{event:k,model:t.model})},m=k=>{n("nodeclick",k)},u=e.computed(()=>(c.actions.isItemSelected(t.treeId,t.model.id)?"selected":"")+(r.value?"node-over ":"")+(l.value?"node-top ":"")+(s.value?"node-bottom ":"")),B=e.computed(()=>t.model.draggable===!0),_=k=>{let y=L.data;if(y.model.id===t.model.id||c.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||c.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return r.value=!1,l.value=!1,s.value=!1,!1;if(!c.state.trees[t.treeId].transfer&&y.id!==t.treeId)return!1;let b="";l.value?b="before":s.value?b="after":b="inside",c.actions.moveTreeNode(y.id,t.treeId,t.items,y.model.id,t.model.id,b),r.value=!1,l.value=!1,s.value=!1},w=k=>{let y=L.data;if(y.model.id===t.model.id||c.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||c.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return!1;const b=k.y,x=i.value.getBoundingClientRect().top,$=i.value.getBoundingClientRect().height,g=$/3;b>x&&b<=x+g?(r.value=!1,l.value=!0,s.value=!1):b<x+$&&b>=x+$-g?(r.value=!1,l.value=!1,s.value=!0):(r.value=!0,l.value=!1,s.value=!1)},z=()=>{r.value=!1,l.value=!1,s.value=!1};return(k,y)=>{const b=e.resolveComponent("d-tree-item",!0);return e.openBlock(),e.createBlock(Q,{tag:"li",class:"tree-item","transfer-data":{id:t.treeId,model:t.model},draggable:B.value,onDrop:e.withModifiers(_,["stop"]),onDragenter:y[0]||(y[0]=e.withModifiers(()=>{},["prevent"])),onDragover:e.withModifiers(w,["prevent","stop"]),onDragleave:e.withModifiers(z,["prevent"])},{default:e.withCtx(()=>{var x,$;return[e.createElementVNode("div",{ref_key:"node",ref:i,class:e.normalizeClass(u.value),onClick:d},[e.createElementVNode("div",null,[t.model.icons&&t.model.icons.pre&&f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C),{key:0,component:e.unref(D).getters.getIcon(t.model.icons.pre.component),size:18,color:t.model.icons.pre.color?t.model.icons.pre.color:"inherit",class:e.normalizeClass(a.value?"tree-open-pre":"")},null,8,["component","color","class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.pre&&!f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C),{key:1,component:e.unref(D).getters.getIcon(t.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:e.normalizeClass(a.value?"tree-open-pre":"")},null,8,["component","class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C),{key:2,component:e.unref(D).getters.getIcon(t.model.icons.icon.component),color:t.model.icons.icon.color?t.model.icons.icon.color:"inherit"},null,8,["component","color"])):e.createCommentVNode("",!0),e.createElementVNode("div",v,[e.createElementVNode("div",null,e.toDisplayString(e.unref(c).actions.renderTitle(t.treeId,t.model.title)),1)])]),e.createElementVNode("div",ee,[((x=t.model.badge)==null?void 0:x.value)!==void 0?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W),{key:0,class:e.normalizeClass([($=t.model.badge)==null?void 0:$.class,"badge-sm"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.model.badge.value),1)]),_:1},8,["class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.post&&f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C),{key:1,component:e.unref(D).getters.getIcon(t.model.icons.post.component),size:20,color:t.model.icons.post.color?t.model.icons.post.color:"inherit",class:e.normalizeClass(a.value?"tree-open-post":"")},null,8,["component","color","class"])):e.createCommentVNode("",!0)])],2),e.createVNode(M,null,{default:e.withCtx(()=>[f.value&&a.value?(e.openBlock(),e.createElementBlock("ul",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.model.children,g=>(e.openBlock(),e.createBlock(b,{class:"tree-item",key:g.id,model:g,treeId:t.treeId,items:t.items,onNodeclick:m},null,8,["model","treeId","items"]))),128))])):e.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])}}},[["__scopeId","data-v-4c84dfd5"]]);function H(o){return o=o||new Map,{all:o,on(n,t){const i=o.get(n);i?i.push(t):o.set(n,[t])},off(n,t){const i=o.get(n);i&&(t?i.splice(i.indexOf(t)>>>0,1):o.set(n,[]))},emit(n,t){let i=o.get(n);i&&i.slice().map(r=>{r(t)}),i=o.get("*"),i&&i.slice().map(r=>{r(n,t)})}}}const T=H(),c={state:e.reactive({trees:{}}),getters:{getItems(o){return c.state.trees[o].items},getItemsSelect(o){return c.state.trees[o].selected},getParentId(o,n,t,i="id",r="children",l={}){return t&&o&&(o.find(s=>s[i]===t?(l.found=n,s):c.getters.getParentId(s[r],s.id,t,i,r,l)),l.found)?l.found:!1}},mutations:{setTreeItems(o,n){c.state.trees[o].items=n},setItemSelect(o,n){c.state.trees[o].noSelect||(c.state.trees[o].multiSelect?c.state.trees[o].selected.includes(n.id)?c.state.trees[o].selected=c.state.trees[o].selected.filter(function(t){return t!==n.id}):c.state.trees[o].selected=[...c.state.trees[o].selected,n.id]:c.state.trees[o].selected=[n.id])}},actions:{initTreeStore(o,n,t,i,r,l){c.state.trees[o]=[],c.state.trees[o].selected=[],c.state.trees[o].noSelect=n,c.state.trees[o].multiSelect=t,c.state.trees[o].expanded=i,c.state.trees[o].transfer=r,c.state.trees[o].renderTitle=l},renderTitle(o,n){return c.state.trees[o].renderTitle?c.state.trees[o].renderTitle(n):n},isItemSelected(o,n){return c.state.trees[o].selected.includes(n)},toggleItem(o,n,t){const i=c.actions.deepSearch(n,t);i.expanded=i.expanded===void 0||!i.expanded,i.children&&i.children.length&&(i.expanded?T.emit(`expand-${o}`,{id:o,model:i}):T.emit(`collapse-${o}`,{id:o,model:i}))},isTreeExpanded(o){return c.state.trees[o].expanded},isChildOfParent(o,n,t,i){const r=c.actions.deepSearch(n,t);if(r&&r.children){for(let l=0;l<r.children.length;l++)if(r.children[l].id===i)return!0}return!1},isParentOfChild(o,n,t,i){const r=c.actions.deepSearch(n,t);return!!(r&&r.children&&c.actions.deepSearch(r.children,i))},deepSearch(o,n,t="id",i="children",r={}){return n&&o&&(o.find(l=>l[t]===n?(r.found=l,l):c.actions.deepSearch(l[i],n,t,i,r)),r.found)?r.found:!1},moveTreeNode(o,n,t,i,r,l){const s=c.actions.deleteTreeNode(t,i);c.actions.insertTreeNode(t,r,s,l),T.emit(`move-${n}`,{fromTreeId:o,toTreeId:n,moved:s.id,target:r,position:l})},insertTreeNode(o,n,t,i){if(o)for(let r=0;r<o.length;r++){if(o[r].id===n){let s=r;return i==="after"?(s++,o.splice(s,0,t)):i==="before"?o.splice(s,0,t):i==="inside"&&(Object.hasOwn(o[r],"children")||(o[r].children=[],o[r].opened=!0),o[r].children.splice(0,0,t)),o[r]}const l=this.insertTreeNode(o[r].children,n,t,i);if(l)return l}},deleteTreeNode(o,n){if(o)for(let t=0;t<o.length;t++){if(o[t].id===n){const r=o[t];return o.splice(t,1),r}const i=c.actions.deleteTreeNode(o[t].children,n);if(i)return i}}}},oe={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(h),setup(o,{emit:n}){let t=e.reactive({});const i=e.ref("false"),r=e.ref(null),l=new Set,s=e.computed(()=>i.value&&t),f=(a,d)=>{t=L.data,n(a,d,t),a===h.dragenter&&(l.size||d.target===r.value)&&l.add(d.target),a===h.dragleave&&l.delete(d.target),a===h.drop&&l.clear(),i.value=!!l.size};return(a,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{ref_key:"el",ref:r,onDragenter:d[0]||(d[0]=m=>f(e.unref(h).dragenter,m)),onDragleave:d[1]||(d[1]=m=>f(e.unref(h).dragleave,m)),onDragover:d[2]||(d[2]=e.withModifiers(m=>f(e.unref(h).dragover,m),["prevent"])),onDrop:d[3]||(d[3]=e.withModifiers(m=>f(e.unref(h).drop,m),["prevent"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{transferData:s.value})]),_:3},544))}},P={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function},emits:["select","collapse","expand","move"],setup(o,{emit:n}){const t=o,i=e.getCurrentInstance().uid;c.actions.initTreeStore(i,t.noSelect,t.multiSelect,t.expanded,t.transfer,t.renderTitle);const r=(s,f)=>{console.log(s,f)};T.on(`select-${i}`,s=>{n("select",s)}),T.on(`expand-${i}`,s=>{n("expand",s)}),T.on(`collapse-${i}`,s=>{n("collapse",s)}),T.on(`move-${i}`,s=>{n("move",s)});const l=(s=null)=>{console.log(s),c.mutations.setItemSelect(i,s.model),c.actions.toggleItem(i,t.items,s.model.id)};return(s,f)=>(e.openBlock(),e.createBlock(oe,{class:"tree",tag:"ul",onDrop:e.withModifiers(r,["stop"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,a=>(e.openBlock(),e.createBlock(F,{key:a.id,model:a,treeId:e.unref(i),items:t.items,onNodeclick:l},null,8,["model","treeId","items"]))),128))]),_:1},8,["onDrop"]))}},ke="",ne=E({__name:"DAccordion",props:{items:Array},setup(o){const n=o;return(t,i)=>(e.openBlock(),e.createBlock(P,{class:"accordion",items:n.items,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-4c920528"]]),A={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,zIndex:r,minWidth:l,height:s,paddingLeft:f,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${l}px;`:"";return`position:${m};z-index:${r};${u}height:${s}px;padding-left:${f}px;transition-duration:${a}ms;transition-timing-function:${d};`});return(i,r)=>(e.openBlock(),e.createElementBlock("header",{class:"d-layout-header",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},O={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,top:r,zIndex:l,minWidth:s,height:f,paddingLeft:a,transitionDuration:d,transitionTimingFunction:m}=n,u=i?"fixed":"static",B=n.useMinWidthLayout?`min-width: ${s}px;`:"";return`position:${u};top:${r}px;z-index:${l};${B}height:${f}px;padding-left:${a}px;transition-duration:${d}ms;transition-timing-function:${m};`});return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"d-layout-tab",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},R={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,zIndex:r,minWidth:l,height:s,paddingLeft:f,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${l}px;`:"";return`position:${m};z-index:${r};${u}height:${s}px;padding-left:${f}px;transition-duration:${a}ms;transition-timing-function:${d};`});return(i,r)=>(e.openBlock(),e.createElementBlock("footer",{class:"d-layout-footer",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},Y={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(o){const n=o,t=e.computed(()=>{const{zIndex:i,width:r,paddingTop:l,transitionDuration:s,transitionTimingFunction:f}=n;return`z-index:${i};width:${r}px;padding-top:${l}px;transition-duration:${s}ms;transition-timing-function:${f};`});return(i,r)=>(e.openBlock(),e.createElementBlock("aside",{class:"d-layout-sidebar",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},Z={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(o){const n=o,t=e.computed(()=>{const{paddingTop:i,paddingBottom:r,paddingLeft:l,transitionDuration:s,transitionTimingFunction:f}=n,a=`overflow:${n.overflowHidden?"hidden":"visible"};`;return`padding-top:${i}px;padding-bottom:${r}px;padding-left:${l}px;${a}transition-duration:${s}ms;transition-timing-function:${f};`});return(i,r)=>(e.openBlock(),e.createElementBlock("main",{style:e.normalizeStyle(t.value),class:"d-layout-content"},[e.renderSlot(i.$slots,"default")],4))}};function ie(o){const n=e.ref(0),t=e.computed(()=>`transform: translateX(${-n.value}px);`);let i=!1;function r(m){n.value=m}function l(){var m;const u=((m=document.scrollingElement)===null||m===void 0?void 0:m.scrollLeft)||0;r(u)}function s(){l()}function f(){document.addEventListener("scroll",l)}function a(){i&&document.removeEventListener("scroll",l)}function d(){s(),f(),i=!0}return e.watch(o,m=>{m?d():a()},{immediate:!0}),e.onUnmounted(()=>{a()}),t}const re=1001,ae=999,se=998,le={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse"],setup(o,{emit:n}){const t=o,i=e.computed(()=>t.useMinWidthLayout?`min-width:${t.minWidth}px;`:""),r=e.computed(()=>t.useMinWidthLayout&&(t.fixedHeaderAndTab||t.fixedFooter)),l=ie(r),s=e.computed(()=>t.fixedHeaderAndTab?l.value:""),f=e.computed(()=>t.fixedFooter?l.value:""),a=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return{transitionDuration:g,transitionTimingFunction:I}}),d=e.computed(()=>t.mode==="vertical"),m=e.computed(()=>t.isMobile||d.value?1003:1e3),u=e.computed({get(){return t.sidebarCollapse},set(g){n("update:sidebar-collapse",g)}});function B(){u.value=!0}const _=e.computed(()=>t.isMobile&&!u.value),w=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return`background-color:${t.maskBg};transition-duration:${g}ms;transition-timing-function:${I};`}),z=e.computed(()=>{const{sidebarWidth:g,sidebarCollapsedWidth:I}=t,ce=t.isMobile?0:I,me=u.value?ce:g;return t.sidebarVisible?me:0}),k=e.computed(()=>t.isMobile?0:z.value),y=e.computed(()=>d.value?k.value:0),b=e.computed(()=>!t.isMobile&&!d.value&&t.headerVisible?t.headerHeight:0),x=e.computed(()=>{let g=0;return t.fixedHeaderAndTab&&(t.headerVisible&&(g+=t.headerHeight),t.tabVisible&&(g+=t.tabHeight)),g}),$=e.computed(()=>t.fixedFooter&&t.footerVisible?t.footerHeight:0);return(g,I)=>(e.openBlock(),e.createElementBlock("div",{class:"d-layout",style:e.normalizeStyle(i.value)},[o.headerVisible?(e.openBlock(),e.createBlock(A,e.mergeProps({key:0},a.value,{fixed:o.fixedHeaderAndTab,"z-index":re,"min-width":o.minWidth,height:o.headerHeight,"padding-left":y.value,style:s.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):e.createCommentVNode("",!0),o.tabVisible?(e.openBlock(),e.createBlock(O,e.mergeProps({key:1},a.value,{fixed:o.fixedHeaderAndTab,"z-index":ae,"min-width":o.minWidth,top:o.headerHeight,height:o.tabHeight,"padding-left":k.value,style:s.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):e.createCommentVNode("",!0),o.sidebarVisible?(e.openBlock(),e.createBlock(Y,e.mergeProps({key:2},a.value,{"z-index":m.value,width:z.value,"padding-top":b.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:e.normalizeStyle(w.value),onClick:B},null,4)):e.createCommentVNode("",!0),e.createVNode(Z,e.mergeProps(a.value,{"padding-top":x.value,"padding-bottom":$.value,"padding-left":k.value,"overflow-hidden":o.addMainOverflowHidden}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),o.footerVisible?(e.openBlock(),e.createBlock(R,e.mergeProps({key:4},a.value,{fixed:o.fixedFooter,"z-index":se,"min-width":o.minWidth,height:o.footerHeight,"padding-left":k.value,style:f.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):e.createCommentVNode("",!0)],4))}},N={state:e.reactive({theme:"dark"}),getters:{theme(){return N.state.theme}},mutations:{setTheme(o){N.state.theme=o,document.documentElement.setAttribute("class",o)}},actions:{toggleTheme(){N.state.theme=N.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",N.state.theme)}}},de={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(o){const n=o;return N.mutations.setTheme(n.theme),(t,i)=>e.renderSlot(t.$slots,"default")}};p.DAccordion=ne,p.DBadge=W,p.DButton=X,p.DCollapse=M,p.DConfigProvider=de,p.DGlobalStore=N,p.DIcon=C,p.DIconStore=D,p.DInput=q,p.DLayoutAdmin=le,p.DLayoutContent=Z,p.DLayoutFooter=R,p.DLayoutHeader=A,p.DLayoutSidebar=Y,p.DLayoutTab=O,p.DTransferStore=L,p.DTree=P,p.DTreeItem=F,p.DTreeStore=c,p.emitter=T,p.eventsBus=H,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.DophJs={},p.Vue))})(this,function(p,e){"use strict";const fe="",pe="",ue="",ge="",w={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String},setup(o){const n=o,t=e.useSlots(),i=e.computed(()=>{const{color:s}=n;return s===void 0?null:s}),r=e.computed(()=>{const s=n.size??null;if(s!==void 0)return typeof s=="number"||/^\d+$/.test(s)?`${s}px`:s}),l=e.h("i",{class:"icon",style:{color:i.value,fontSize:r.value}},n.component?e.h(n.component):t);return(s,f)=>(e.openBlock(),e.createBlock(e.unref(l)))}},X={__name:"DButton",props:{class:String,icon:Object},emits:["click"],setup(o,{emit:n}){const t=o;let i=null;t.icon&&(i=e.h(w,{component:t.icon,color:"inherit"}));const r=l=>{n("click",l)};return(l,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(i)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:r,class:e.normalizeClass(["button",t.class])},[e.renderSlot(l.$slots,"default")],2)),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:r,class:e.normalizeClass(["button button-ext",t.class])},[e.createVNode(e.unref(i)),e.createElementVNode("div",null,[e.renderSlot(l.$slots,"default")])],2)):e.createCommentVNode("",!0)],64))}},he="",E=(o,n)=>{const t=o.__vccOpts||o;for(const[i,r]of n)t[i]=r;return t},j={class:"d-input"},G={class:"label"},U=["placeholder"],q=E({__name:"DInput",props:{label:String,placeholder:String,size:String,font:String,modelValue:String},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,i=e.computed(()=>t.font==="small"?"d-input-small":t.font==="big"?"d-input-big":""),r=e.computed({get:()=>t.modelValue,set:l=>{n("update:modelValue",l)}});return(l,s)=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",G,e.toDisplayString(t.label),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=f=>r.value=f),type:"text",class:e.normalizeClass(i.value),placeholder:t.placeholder,style:e.normalizeStyle(t.size==="wide"?"width:100%":"")},null,14,U),[[e.vModelText,r.value]])]))}},[["__scopeId","data-v-11679fd8"]]),D={state:{},getters:{getIcon(o){return D.state[o]},getIcons(){return D.state}},mutations:{addIcon(o,n){D.state.name=n},addIcons(o){for(const n in o)o.hasOwnProperty(n)&&(D.state[n]=o[n])}}},W={__name:"DBadge",props:{class:String},setup(o){const n=o;return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["badge",n.class])},[e.renderSlot(t.$slots,"default")],2))}},S="0px",M={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(o){const n=o,t=a=>({height:a.style.height,width:a.style.width,position:a.style.position,visibility:a.style.visibility,overflow:a.style.overflow,paddingTop:a.style.paddingTop,paddingBottom:a.style.paddingBottom,borderTopWidth:a.style.borderTopWidth,borderBottomWidth:a.style.borderBottomWidth,marginTop:a.style.marginTop,marginBottom:a.style.marginBottom}),i=(a,d)=>{const{width:m}=getComputedStyle(a);a.style.width=m,a.style.position="absolute",a.style.visibility="hidden",a.style.height="";let{height:u}=getComputedStyle(a);return a.style.width=d.width,a.style.position=d.position,a.style.visibility=d.visibility,a.style.height=S,a.style.overflow="hidden",d.height&&d.height!==S?d.height:u},r=(a,d,m,u,B)=>{const _=a.animate(u,B);a.style.height=d.height,_.onfinish=()=>{a.style.overflow=d.overflow,m()}},l=(a,d)=>[{height:S,opacity:n.opacityClosed,paddingTop:S,paddingBottom:S,borderTopWidth:S,borderBottomWidth:S,marginTop:S,marginBottom:S},{height:a,opacity:n.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],s=(a,d)=>{const m=a,u=t(m),B=i(m,u),_=l(B,u),C={duration:n.duration,easing:n.easingEnter};r(m,u,d,_,C)},f=(a,d)=>{const m=a,u=t(m),{height:B}=getComputedStyle(m);m.style.height=B,m.style.overflow="hidden";const _=l(B,u).reverse(),C={duration:n.duration,easing:n.easingLeave};r(m,u,d,_,C)};return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{css:!1,onEnter:s,onLeave:f},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3}))}},L={data:void 0},V=o=>o.reduce((n,t)=>(n[t]=t)&&n,{}),h=V(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),J=V(["copy","move","link","none"]),K=V(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),Q={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:o=>o in J},effectAllowed:{validator:o=>o in K},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(o){const n=o,t=e.useSlots(),i=e.ref(!1),r=e.computed(()=>i&&n.transferData),l=e.computed(()=>({position:"fixed",top:"-1000px"})),s=(f,a)=>{const d=a.dataTransfer;if([h.dragenter,h.dragover].includes(f)&&n.dropEffect&&(d.dropEffect=n.dropEffect),f===h.dragstart){if(n.effectAllowed&&(d.effectAllowed=n.effectAllowed),n.image||t.image){let m;n.image?(m=new Image,m.src=n.image):t.image&&(m=t.image[0].elm),d.setDragImage&&d.setDragImage(m,n.imageXOffset,n.imageYOffset)}n.transferData!==void 0&&(L.data=n.transferData,a.dataTransfer.setData("text","")),i.value=!0}};return(f,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{draggable:n.draggable,onDrag:a[0]||(a[0]=d=>s(e.unref(h).drag,d)),onDragstart:a[1]||(a[1]=e.withModifiers(d=>s(e.unref(h).dragstart,d),["stop"])),onDragenter:a[2]||(a[2]=d=>s(e.unref(h).dragenter,d)),onDragleave:a[3]||(a[3]=d=>s(e.unref(h).dragleave,d)),onDragend:a[4]||(a[4]=d=>s(e.unref(h).dragend,d))},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{transferData:r.value}),o.hideImageHtml?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.value)},[e.renderSlot(f.$slots,"image",{transferData:r.value})],4)):e.renderSlot(f.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},be="",v={class:"item-title"},ee={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},te={key:0,class:"sub-menu"},F=E({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(o,{emit:n}){const t=o,i=e.ref(null),r=e.ref(!1),l=e.ref(!1),s=e.ref(!1),f=e.computed(()=>t.model.children&&t.model.children.length),a=e.computed(()=>(c.actions.isTreeExpanded(t.treeId)&&(t.model.expanded=t.model.expanded===void 0?!0:t.model.expanded),t.model.expanded)),d=k=>{n("nodeclick",{event:k,model:t.model})},m=k=>{n("nodeclick",k)},u=e.computed(()=>(c.actions.isItemSelected(t.treeId,t.model.id)?"selected":"")+(r.value?"node-over ":"")+(l.value?"node-top ":"")+(s.value?"node-bottom ":"")),B=e.computed(()=>t.model.draggable===!0),_=k=>{let y=L.data;if(y.model.id===t.model.id||c.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||c.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return r.value=!1,l.value=!1,s.value=!1,!1;if(!c.state.trees[t.treeId].transfer&&y.id!==t.treeId)return!1;let b="";l.value?b="before":s.value?b="after":b="inside",c.actions.moveTreeNode(y.id,t.treeId,t.items,y.model.id,t.model.id,b),r.value=!1,l.value=!1,s.value=!1},C=k=>{let y=L.data;if(y.model.id===t.model.id||c.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||c.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return!1;const b=k.y,x=i.value.getBoundingClientRect().top,$=i.value.getBoundingClientRect().height,g=$/3;b>x&&b<=x+g?(r.value=!1,l.value=!0,s.value=!1):b<x+$&&b>=x+$-g?(r.value=!1,l.value=!1,s.value=!0):(r.value=!0,l.value=!1,s.value=!1)},z=()=>{r.value=!1,l.value=!1,s.value=!1};return(k,y)=>{const b=e.resolveComponent("d-tree-item",!0);return e.openBlock(),e.createBlock(Q,{tag:"li",class:"tree-item","transfer-data":{id:t.treeId,model:t.model},draggable:B.value,onDrop:e.withModifiers(_,["stop"]),onDragenter:y[0]||(y[0]=e.withModifiers(()=>{},["prevent"])),onDragover:e.withModifiers(C,["prevent","stop"]),onDragleave:e.withModifiers(z,["prevent"])},{default:e.withCtx(()=>{var x,$;return[e.createElementVNode("div",{ref_key:"node",ref:i,class:e.normalizeClass(u.value),onClick:d},[e.createElementVNode("div",null,[t.model.icons&&t.model.icons.pre&&f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:0,component:e.unref(D).getters.getIcon(t.model.icons.pre.component),size:18,color:t.model.icons.pre.color?t.model.icons.pre.color:"inherit",class:e.normalizeClass(a.value?"tree-open-pre":"")},null,8,["component","color","class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.pre&&!f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(D).getters.getIcon(t.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:e.normalizeClass(a.value?"tree-open-pre":"")},null,8,["component","class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:2,component:e.unref(D).getters.getIcon(t.model.icons.icon.component),color:t.model.icons.icon.color?t.model.icons.icon.color:"inherit"},null,8,["component","color"])):e.createCommentVNode("",!0),e.createElementVNode("div",v,[e.createElementVNode("div",null,e.toDisplayString(e.unref(c).actions.renderTitle(t.treeId,t.model.title)),1)])]),e.createElementVNode("div",ee,[((x=t.model.badge)==null?void 0:x.value)!==void 0?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W),{key:0,class:e.normalizeClass([($=t.model.badge)==null?void 0:$.class,"badge-sm"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.model.badge.value),1)]),_:1},8,["class"])):e.createCommentVNode("",!0),t.model.icons&&t.model.icons.post&&f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(D).getters.getIcon(t.model.icons.post.component),size:20,color:t.model.icons.post.color?t.model.icons.post.color:"inherit",class:e.normalizeClass(a.value?"tree-open-post":"")},null,8,["component","color","class"])):e.createCommentVNode("",!0)])],2),e.createVNode(M,null,{default:e.withCtx(()=>[f.value&&a.value?(e.openBlock(),e.createElementBlock("ul",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.model.children,g=>(e.openBlock(),e.createBlock(b,{class:"tree-item",key:g.id,model:g,treeId:t.treeId,items:t.items,onNodeclick:m},null,8,["model","treeId","items"]))),128))])):e.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])}}},[["__scopeId","data-v-4c84dfd5"]]);function H(o){return o=o||new Map,{all:o,on(n,t){const i=o.get(n);i?i.push(t):o.set(n,[t])},off(n,t){const i=o.get(n);i&&(t?i.splice(i.indexOf(t)>>>0,1):o.set(n,[]))},emit(n,t){let i=o.get(n);i&&i.slice().map(r=>{r(t)}),i=o.get("*"),i&&i.slice().map(r=>{r(n,t)})}}}const T=H(),c={state:e.reactive({trees:{}}),getters:{getItems(o){return c.state.trees[o].items},getItemsSelect(o){return c.state.trees[o].selected},getParentId(o,n,t,i="id",r="children",l={}){return t&&o&&(o.find(s=>s[i]===t?(l.found=n,s):c.getters.getParentId(s[r],s.id,t,i,r,l)),l.found)?l.found:!1}},mutations:{setTreeItems(o,n){c.state.trees[o].items=n},setItemSelect(o,n){c.state.trees[o].noSelect||(c.state.trees[o].multiSelect?c.state.trees[o].selected.includes(n.id)?c.state.trees[o].selected=c.state.trees[o].selected.filter(function(t){return t!==n.id}):c.state.trees[o].selected=[...c.state.trees[o].selected,n.id]:c.state.trees[o].selected=[n.id])}},actions:{initTreeStore(o,n,t,i,r,l){c.state.trees[o]=[],c.state.trees[o].selected=[],c.state.trees[o].noSelect=n,c.state.trees[o].multiSelect=t,c.state.trees[o].expanded=i,c.state.trees[o].transfer=r,c.state.trees[o].renderTitle=l},renderTitle(o,n){return c.state.trees[o].renderTitle?c.state.trees[o].renderTitle(n):n},isItemSelected(o,n){return c.state.trees[o].selected.includes(n)},toggleItem(o,n,t){const i=c.actions.deepSearch(n,t);i.expanded=i.expanded===void 0||!i.expanded,i.children&&i.children.length&&(i.expanded?T.emit(`expand-${o}`,{id:o,model:i}):T.emit(`collapse-${o}`,{id:o,model:i}))},isTreeExpanded(o){return c.state.trees[o].expanded},isChildOfParent(o,n,t,i){const r=c.actions.deepSearch(n,t);if(r&&r.children){for(let l=0;l<r.children.length;l++)if(r.children[l].id===i)return!0}return!1},isParentOfChild(o,n,t,i){const r=c.actions.deepSearch(n,t);return!!(r&&r.children&&c.actions.deepSearch(r.children,i))},deepSearch(o,n,t="id",i="children",r={}){return n&&o&&(o.find(l=>l[t]===n?(r.found=l,l):c.actions.deepSearch(l[i],n,t,i,r)),r.found)?r.found:!1},moveTreeNode(o,n,t,i,r,l){const s=c.actions.deleteTreeNode(t,i);c.actions.insertTreeNode(t,r,s,l),T.emit(`move-${n}`,{fromTreeId:o,toTreeId:n,moved:s.id,target:r,position:l})},insertTreeNode(o,n,t,i){if(o)for(let r=0;r<o.length;r++){if(o[r].id===n){let s=r;return i==="after"?(s++,o.splice(s,0,t)):i==="before"?o.splice(s,0,t):i==="inside"&&(Object.hasOwn(o[r],"children")||(o[r].children=[],o[r].opened=!0),o[r].children.splice(0,0,t)),o[r]}const l=this.insertTreeNode(o[r].children,n,t,i);if(l)return l}},deleteTreeNode(o,n){if(o)for(let t=0;t<o.length;t++){if(o[t].id===n){const r=o[t];return o.splice(t,1),r}const i=c.actions.deleteTreeNode(o[t].children,n);if(i)return i}}}},oe={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(h),setup(o,{emit:n}){let t=e.reactive({});const i=e.ref("false"),r=e.ref(null),l=new Set,s=e.computed(()=>i.value&&t),f=(a,d)=>{t=L.data,n(a,d,t),a===h.dragenter&&(l.size||d.target===r.value)&&l.add(d.target),a===h.dragleave&&l.delete(d.target),a===h.drop&&l.clear(),i.value=!!l.size};return(a,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{ref_key:"el",ref:r,onDragenter:d[0]||(d[0]=m=>f(e.unref(h).dragenter,m)),onDragleave:d[1]||(d[1]=m=>f(e.unref(h).dragleave,m)),onDragover:d[2]||(d[2]=e.withModifiers(m=>f(e.unref(h).dragover,m),["prevent"])),onDrop:d[3]||(d[3]=e.withModifiers(m=>f(e.unref(h).drop,m),["prevent"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{transferData:s.value})]),_:3},544))}},P={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function},emits:["select","collapse","expand","move"],setup(o,{emit:n}){const t=o,i=e.getCurrentInstance().uid;c.actions.initTreeStore(i,t.noSelect,t.multiSelect,t.expanded,t.transfer,t.renderTitle);const r=(s,f)=>{console.log(s,f)};T.on(`select-${i}`,s=>{n("select",s)}),T.on(`expand-${i}`,s=>{n("expand",s)}),T.on(`collapse-${i}`,s=>{n("collapse",s)}),T.on(`move-${i}`,s=>{n("move",s)});const l=(s=null)=>{console.log(s),c.mutations.setItemSelect(i,s.model),c.actions.toggleItem(i,t.items,s.model.id)};return(s,f)=>(e.openBlock(),e.createBlock(oe,{class:"tree",tag:"ul",onDrop:e.withModifiers(r,["stop"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,a=>(e.openBlock(),e.createBlock(F,{key:a.id,model:a,treeId:e.unref(i),items:t.items,onNodeclick:l},null,8,["model","treeId","items"]))),128))]),_:1},8,["onDrop"]))}},ke="",ne=E({__name:"DAccordion",props:{items:Array},setup(o){const n=o;return(t,i)=>(e.openBlock(),e.createBlock(P,{class:"accordion",items:n.items,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-4c920528"]]),A={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,zIndex:r,minWidth:l,height:s,paddingLeft:f,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${l}px;`:"";return`position:${m};z-index:${r};${u}height:${s}px;padding-left:${f}px;transition-duration:${a}ms;transition-timing-function:${d};`});return(i,r)=>(e.openBlock(),e.createElementBlock("header",{class:"d-layout-header",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},O={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,top:r,zIndex:l,minWidth:s,height:f,paddingLeft:a,transitionDuration:d,transitionTimingFunction:m}=n,u=i?"fixed":"static",B=n.useMinWidthLayout?`min-width: ${s}px;`:"";return`position:${u};top:${r}px;z-index:${l};${B}height:${f}px;padding-left:${a}px;transition-duration:${d}ms;transition-timing-function:${m};`});return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"d-layout-tab",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},R={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(o){const n=o,t=e.computed(()=>{const{fixed:i,zIndex:r,minWidth:l,height:s,paddingLeft:f,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${l}px;`:"";return`position:${m};z-index:${r};${u}height:${s}px;padding-left:${f}px;transition-duration:${a}ms;transition-timing-function:${d};`});return(i,r)=>(e.openBlock(),e.createElementBlock("footer",{class:"d-layout-footer",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},Y={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(o){const n=o,t=e.computed(()=>{const{zIndex:i,width:r,paddingTop:l,transitionDuration:s,transitionTimingFunction:f}=n;return`z-index:${i};width:${r}px;padding-top:${l}px;transition-duration:${s}ms;transition-timing-function:${f};`});return(i,r)=>(e.openBlock(),e.createElementBlock("aside",{class:"d-layout-sidebar",style:e.normalizeStyle(t.value)},[e.renderSlot(i.$slots,"default")],4))}},Z={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(o){const n=o,t=e.computed(()=>{const{paddingTop:i,paddingBottom:r,paddingLeft:l,transitionDuration:s,transitionTimingFunction:f}=n,a=`overflow:${n.overflowHidden?"hidden":"visible"};`;return`padding-top:${i}px;padding-bottom:${r}px;padding-left:${l}px;${a}transition-duration:${s}ms;transition-timing-function:${f};`});return(i,r)=>(e.openBlock(),e.createElementBlock("main",{style:e.normalizeStyle(t.value),class:"d-layout-content"},[e.renderSlot(i.$slots,"default")],4))}};function ie(o){const n=e.ref(0),t=e.computed(()=>`transform: translateX(${-n.value}px);`);let i=!1;function r(m){n.value=m}function l(){var m;const u=((m=document.scrollingElement)===null||m===void 0?void 0:m.scrollLeft)||0;r(u)}function s(){l()}function f(){document.addEventListener("scroll",l)}function a(){i&&document.removeEventListener("scroll",l)}function d(){s(),f(),i=!0}return e.watch(o,m=>{m?d():a()},{immediate:!0}),e.onUnmounted(()=>{a()}),t}const re=1001,ae=999,se=998,le={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse"],setup(o,{emit:n}){const t=o,i=e.computed(()=>t.useMinWidthLayout?`min-width:${t.minWidth}px;`:""),r=e.computed(()=>t.useMinWidthLayout&&(t.fixedHeaderAndTab||t.fixedFooter)),l=ie(r),s=e.computed(()=>t.fixedHeaderAndTab?l.value:""),f=e.computed(()=>t.fixedFooter?l.value:""),a=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return{transitionDuration:g,transitionTimingFunction:I}}),d=e.computed(()=>t.mode==="vertical"),m=e.computed(()=>t.isMobile||d.value?1003:1e3),u=e.computed({get(){return t.sidebarCollapse},set(g){n("update:sidebar-collapse",g)}});function B(){u.value=!0}const _=e.computed(()=>t.isMobile&&!u.value),C=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return`background-color:${t.maskBg};transition-duration:${g}ms;transition-timing-function:${I};`}),z=e.computed(()=>{const{sidebarWidth:g,sidebarCollapsedWidth:I}=t,ce=t.isMobile?0:I,me=u.value?ce:g;return t.sidebarVisible?me:0}),k=e.computed(()=>t.isMobile?0:z.value),y=e.computed(()=>d.value?k.value:0),b=e.computed(()=>!t.isMobile&&!d.value&&t.headerVisible?t.headerHeight:0),x=e.computed(()=>{let g=0;return t.fixedHeaderAndTab&&(t.headerVisible&&(g+=t.headerHeight),t.tabVisible&&(g+=t.tabHeight)),g}),$=e.computed(()=>t.fixedFooter&&t.footerVisible?t.footerHeight:0);return(g,I)=>(e.openBlock(),e.createElementBlock("div",{class:"d-layout",style:e.normalizeStyle(i.value)},[o.headerVisible?(e.openBlock(),e.createBlock(A,e.mergeProps({key:0},a.value,{fixed:o.fixedHeaderAndTab,"z-index":re,"min-width":o.minWidth,height:o.headerHeight,"padding-left":y.value,style:s.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):e.createCommentVNode("",!0),o.tabVisible?(e.openBlock(),e.createBlock(O,e.mergeProps({key:1},a.value,{fixed:o.fixedHeaderAndTab,"z-index":ae,"min-width":o.minWidth,top:o.headerHeight,height:o.tabHeight,"padding-left":k.value,style:s.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):e.createCommentVNode("",!0),o.sidebarVisible?(e.openBlock(),e.createBlock(Y,e.mergeProps({key:2},a.value,{"z-index":m.value,width:z.value,"padding-top":b.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:e.normalizeStyle(C.value),onClick:B},null,4)):e.createCommentVNode("",!0),e.createVNode(Z,e.mergeProps(a.value,{"padding-top":x.value,"padding-bottom":$.value,"padding-left":k.value,"overflow-hidden":o.addMainOverflowHidden}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),o.footerVisible?(e.openBlock(),e.createBlock(R,e.mergeProps({key:4},a.value,{fixed:o.fixedFooter,"z-index":se,"min-width":o.minWidth,height:o.footerHeight,"padding-left":k.value,style:f.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):e.createCommentVNode("",!0)],4))}},N={state:e.reactive({theme:"dark"}),getters:{theme(){return N.state.theme}},mutations:{setTheme(o){N.state.theme=o,document.documentElement.setAttribute("class",o)}},actions:{toggleTheme(){N.state.theme=N.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",N.state.theme)}}},de={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(o){const n=o;return N.mutations.setTheme(n.theme),(t,i)=>e.renderSlot(t.$slots,"default")}};p.DAccordion=ne,p.DBadge=W,p.DButton=X,p.DCollapse=M,p.DConfigProvider=de,p.DGlobalStore=N,p.DIcon=w,p.DIconStore=D,p.DInput=q,p.DLayoutAdmin=le,p.DLayoutContent=Z,p.DLayoutFooter=R,p.DLayoutHeader=A,p.DLayoutSidebar=Y,p.DLayoutTab=O,p.DTransferStore=L,p.DTree=P,p.DTreeItem=F,p.DTreeStore=c,p.emitter=T,p.eventsBus=H,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.button{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-block;padding:.4rem .8rem;border-radius:5px;transition:all .2s;font-weight:400;margin:.25rem .125rem}.button.button-sm{font-size:.8em}.button.button-lg{font-size:1.3em}.button.button-ext{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;height:100%;gap:5px}.button.button-ext .icon{display:inline-flex!important;flex-direction:row;justify-content:center;align-items:center}.label{margin-bottom:5px;font-size:.9em;opacity:.7}.d-input,.d-select,.d-checkbox{margin-bottom:15px}.d-input input,select{font-size:1.1em;border-style:solid;border-width:1px;border-radius:5px;padding:5px 10px}.d-checkbox input[type=checkbox]{position:absolute;z-index:-1;opacity:0}.d-checkbox input[type=checkbox]+label{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none}.d-checkbox input[type=checkbox]+label:before{content:"";display:inline-block;width:1em;height:1em;flex-shrink:0;flex-grow:0;border-radius:.25em;margin-right:.5em;background-repeat:no-repeat;background-position:center center;background-size:50% 50%;transition:all .2s}.d-checkbox input[type=checkbox]:checked+label:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");background-size:10px}.icon{line-height:1em;text-align:center;display:inline-block;position:relative;fill:currentColor;transform:translateZ(0)}.icon svg{width:1em;height:1em}.accordion{-webkit-user-select:none;user-select:none}.accordion .accordion-item,.accordion .accordion-sub{cursor:pointer;padding:.25rem .125rem}.badge{display:inline-block;padding:3px 4px;margin:.25rem .125rem;border-radius:5px;line-height:1}.badge.badge-sm{font-size:.8em;padding:2px 3px}.tree{padding-left:0;-webkit-user-select:none;user-select:none;list-style:none;margin:0}.tree.accordion .tree-item ul{padding-left:0}.tree .tree-item{cursor:pointer;line-height:1.5;overflow:hidden;position:relative}.tree .tree-item>div{padding:3px 5px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-radius:5px}.tree .tree-item>div.selected{transition:all 50ms}.tree .tree-item>div>div{display:flex;flex-direction:row;justify-content:start;align-items:center;gap:3px}.tree .tree-item>div .icon{display:inline-flex!important;flex-direction:row;justify-content:center;align-items:center;transition:all .2s}.tree .tree-item>div .tree-open-post{transform:rotate(-90deg)}.tree .tree-item>div .tree-open-pre{transform:rotate(90deg)}.tree .tree-item ul{padding-left:20px;list-style:none}.tree .item-title{display:table;table-layout:fixed;width:100%}.tree .item-title>div{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tree.tree-compact{font-size:.9em}.tree.tree-compact .tree-item{line-height:1}.tree.tree-compact .tree-item>div{padding:1px 3px}.d-layout{display:flex;flex-direction:column;width:100%;height:100%}.d-layout .d-layout-header{left:0;top:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-content{flex-grow:1;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-footer{left:0;bottom:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-sidebar{position:fixed;left:0;top:0;box-sizing:border-box;width:100%;height:100%;transition-property:all;overflow-y:hidden}.d-layout .d-layout-sidebar-mask{position:fixed;left:0;top:0;z-index:1002;width:100%;height:100%;transition-property:background-color}.d-layout .d-layout-tab{left:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.light .button{background-color:#ccc9;color:gray}.light .button:hover{color:#666;background-color:#cccc}.light .button.button-blue{background-color:#51c0e799;color:#43565c}.light .button.button-blue:hover{color:#2d3a3f;background-color:#51c0e7cc}.light .button.button-green{background-color:#90d76099;color:#4f4f4f}.light .button.button-green:hover{color:#363636;background-color:#90d760cc}.light .button.button-red{background-color:#ff929299;color:#ae4a4a}.light .button.button-red:hover{background-color:#ff9292cc;color:#8a3b3b}.light .button.button-orange{background-color:#ffc45899;color:#856a39}.light .button.button-orange:hover{background-color:#ffc458cc;color:#614e2a}.light .button.button-violet{background-color:#c2a7ff99;color:#7456b7}.light .button.button-violet:hover{background-color:#c2a7ffcc;color:#5c4199}.light .button.button-outline{outline:solid 1px rgba(204,204,204,.6);color:gray;background-color:transparent}.light .button.button-outline:hover{color:gray;background-color:#cccc}.light .button.button-outline-blue{outline:solid 1px rgba(81,192,231,.6);background-color:transparent;color:#136c8c99}.light .button.button-outline-blue:hover{color:#43565c;background-color:#51c0e7cc}.light .button.button-outline-green{outline:solid 1px rgba(144,215,96,.6);background-color:transparent;color:#467e2099}.light .button.button-outline-green:hover{color:#4f4f4f;background-color:#90d760cc}.light .button.button-outline-red{outline:solid 1px rgba(255,146,146,.6);background-color:transparent;color:#f8000099}.light .button.button-outline-red:hover{color:#ae4a4a;background-color:#ff9292cc}.light .button.button-outline-orange{outline:solid 1px rgba(255,196,88,.6);background-color:transparent;color:#be7b0099}.light .button.button-outline-orange:hover{color:#856a39;background-color:#ffc458cc}.light .button.button-outline-violet{outline:solid 1px rgba(194,167,255,.6);background-color:transparent;color:#580eff99}.light .button.button-outline-violet:hover{color:#7456b7;background-color:#c2a7ffcc}.dark .button{background-color:#ffffff1a;color:#e5e5e5}.dark .button:hover{color:#fff;background-color:#fff3}.dark .button.button-blue{background-color:#1685ac}.dark .button.button-blue:hover{background-color:#1685accc}.dark .button.button-green{background-color:#5d9d31}.dark .button.button-green:hover{background-color:#5d9d31cc}.dark .button.button-red{background-color:#c33737}.dark .button.button-red:hover{background-color:#c33737cc}.dark .button.button-orange{background-color:#d59622}.dark .button.button-orange:hover{background-color:#d59622cc}.dark .button.button-violet{background-color:#7750d2}.dark .button.button-violet:hover{background-color:#7750d2cc}.dark .button.button-outline{outline:solid 1px #555555;color:#a2a2a2;background-color:transparent}.dark .button.button-outline:hover{color:#fff;background-color:#555}.dark .button.button-outline-blue{outline:solid 1px #1685ac;background-color:transparent;color:#1ca8d9}.dark .button.button-outline-blue:hover{color:#fff;background-color:#1685ac}.dark .button.button-outline-green{outline:solid 1px #5d9d31;background-color:transparent;color:#74c33e}.dark .button.button-outline-green:hover{color:#fff;background-color:#5d9d31}.dark .button.button-outline-red{outline:solid 1px #c33737;background-color:transparent;color:#d15c5c}.dark .button.button-outline-red:hover{color:#fff;background-color:#c33737}.dark .button.button-outline-orange{outline:solid 1px #d59622;background-color:transparent;color:#e2ac48}.dark .button.button-outline-orange:hover{color:#fff;background-color:#d59622}.dark .button.button-outline-violet{outline:solid 1px #7750d2;background-color:transparent;color:#9779dc}.dark .button.button-outline-violet:hover{color:#fff;background-color:#7750d2}.badge{background-color:#ccc9;color:gray}.badge.badge-blue{background-color:#51c0e799;color:#43565c}.badge.badge-green{background-color:#90d76099;color:#4f4f4f}.badge.badge-red{background-color:#ff929299;color:#ae4a4a}.badge.badge-orange{background-color:#ffc45899;color:#856a39}.badge.badge-violet{background-color:#c2a7ff99;color:#7456b7}.badge.badge-stress-gray{color:#fff;background-color:#80808099}.badge.badge-stress-blue{color:#fff;background-color:#136c8c99}.badge.badge-stress-green{color:#fff;background-color:#467e2099}.badge.badge-stress-red{color:#fff;background-color:#f8000099}.badge.badge-stress-orange{color:#fff;background-color:#be7b0099}.badge.badge-stress-violet{color:#fff;background-color:#580eff99}.dark .badge{background-color:#555;color:#e5e5e5}.dark .badge.badge-blue{background-color:#1685ac}.dark .badge.badge-green{background-color:#5d9d31}.dark .badge.badge-red{background-color:#c33737}.dark .badge.badge-orange{background-color:#d59622}.dark .badge.badge-violet{background-color:#7750d2}.dark .badge.badge-stress-gray{color:#888;background-color:#090909}.dark .badge.badge-stress-blue{color:#41bce7;background-color:#051c24}.dark .badge.badge-stress-green{color:#90cf65;background-color:#18280d}.dark .badge.badge-stress-red{color:#dc8484;background-color:#4c1515}.dark .badge.badge-stress-orange{color:#e9c074;background-color:#51390d}.dark .badge.badge-stress-violet{color:#b6a1e7;background-color:#341c6d}.tree .tree-item>div.selected{background-color:#0000001a}.tree .tree-item>div:hover{background-color:#0000001a}.dark .tree .tree-item>div.selected{background-color:#ffffff1a}.dark .tree .tree-item>div:hover{background-color:#ffffff1a}.dark{background-color:#34383e;color:#ccc}.light{background-color:#fff;color:#333}.d-input input,.d-select select{color:#ccc;background-color:#262626;border-color:#fff3}.d-input input:focus,.d-select select:focus{outline:none!important;border-color:#fff6}.d-checkbox input[type=checkbox]+label:before{border:1px solid rgba(255,255,255,.2)}.d-checkbox input[type=checkbox]:checked+label:before{border-color:#666;background-color:#666}.d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#fff6}.d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#fff6}.d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#fff6}.d-checkbox input[type=checkbox]:disabled+label:before{background-color:#e9ecef}.light .icon{color:#333}.dark .icon{color:#ccc}.styled-scrollbars{scrollbar-width:thin;scrollbar-color:blue orange}.styled-scrollbars::-webkit-scrollbar{height:6px;width:6px}.styled-scrollbars::-webkit-scrollbar-track{background:orange}.styled-scrollbars::-webkit-scrollbar-thumb{background-color:#00f;border-radius:3px;border:0}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e5e5e5}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f0f0}.light .d-layout .d-layout-tab{background-color:#fafafa}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#494c52}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#3e4248}.dark .d-layout .d-layout-tab{background-color:#2f3238}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-5d2cb864],[data-v-5d2cb864]:after,[data-v-5d2cb864]:before{box-sizing:border-box}.node-top[data-v-4c84dfd5]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-4c84dfd5]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-4c84dfd5]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-4c920528]{padding-left:0!important}
|
|
1
|
+
@charset "UTF-8";.button{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-block;padding:.4rem .8rem;border-radius:5px;transition:all .2s;font-weight:400;margin:.25rem .125rem}.button.button-sm{font-size:.8em}.button.button-lg{font-size:1.3em}.button.button-ext{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;height:100%;gap:5px}.button.button-ext .icon{display:inline-flex!important;flex-direction:row;justify-content:center;align-items:center}.label{margin-bottom:5px;font-size:.9em;opacity:.7}.d-input .d-input-small{font-size:.8em}.d-input .d-input-big{font-size:1.2em}.d-input,.d-select,.d-checkbox{margin-bottom:15px}.d-input input,select{font-size:1.1em;border-style:solid;border-width:1px;border-radius:5px;padding:5px 7px}.d-checkbox input[type=checkbox]{position:absolute;z-index:-1;opacity:0}.d-checkbox input[type=checkbox]+label{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none}.d-checkbox input[type=checkbox]+label:before{content:"";display:inline-block;width:1em;height:1em;flex-shrink:0;flex-grow:0;border-radius:.25em;margin-right:.5em;background-repeat:no-repeat;background-position:center center;background-size:50% 50%;transition:all .2s}.d-checkbox input[type=checkbox]:checked+label:before{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");background-size:10px}.icon{line-height:1em;text-align:center;display:inline-block;position:relative;fill:currentColor;transform:translateZ(0)}.icon svg{width:1em;height:1em}.accordion{-webkit-user-select:none;user-select:none}.accordion .accordion-item,.accordion .accordion-sub{cursor:pointer;padding:.25rem .125rem}.badge{display:inline-block;padding:3px 4px;margin:.25rem .125rem;border-radius:5px;line-height:1}.badge.badge-sm{font-size:.8em;padding:2px 3px}.tree{padding-left:0;-webkit-user-select:none;user-select:none;list-style:none;margin:0}.tree.accordion .tree-item ul{padding-left:0}.tree .tree-item{cursor:pointer;line-height:1.5;overflow:hidden;position:relative}.tree .tree-item>div{padding:3px 5px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-radius:5px}.tree .tree-item>div.selected{transition:all 50ms}.tree .tree-item>div>div{display:flex;flex-direction:row;justify-content:start;align-items:center;gap:3px}.tree .tree-item>div .icon{display:inline-flex!important;flex-direction:row;justify-content:center;align-items:center;transition:all .2s}.tree .tree-item>div .tree-open-post{transform:rotate(-90deg)}.tree .tree-item>div .tree-open-pre{transform:rotate(90deg)}.tree .tree-item ul{padding-left:20px;list-style:none}.tree .item-title{display:table;table-layout:fixed;width:100%}.tree .item-title>div{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tree.tree-compact{font-size:.9em}.tree.tree-compact .tree-item{line-height:1}.tree.tree-compact .tree-item>div{padding:1px 3px}.d-layout{display:flex;flex-direction:column;width:100%;height:100%}.d-layout .d-layout-header{left:0;top:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-content{flex-grow:1;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-footer{left:0;bottom:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.d-layout .d-layout-sidebar{position:fixed;left:0;top:0;box-sizing:border-box;width:100%;height:100%;transition-property:all;overflow-y:hidden}.d-layout .d-layout-sidebar-mask{position:fixed;left:0;top:0;z-index:1002;width:100%;height:100%;transition-property:background-color}.d-layout .d-layout-tab{left:0;flex-shrink:0;box-sizing:border-box;width:100%;transition-property:padding-left}.light .button{background-color:#ccc9;color:gray}.light .button:hover{color:#666;background-color:#cccc}.light .button.button-blue{background-color:#51c0e799;color:#43565c}.light .button.button-blue:hover{color:#2d3a3f;background-color:#51c0e7cc}.light .button.button-green{background-color:#90d76099;color:#4f4f4f}.light .button.button-green:hover{color:#363636;background-color:#90d760cc}.light .button.button-red{background-color:#ff929299;color:#ae4a4a}.light .button.button-red:hover{background-color:#ff9292cc;color:#8a3b3b}.light .button.button-orange{background-color:#ffc45899;color:#856a39}.light .button.button-orange:hover{background-color:#ffc458cc;color:#614e2a}.light .button.button-violet{background-color:#c2a7ff99;color:#7456b7}.light .button.button-violet:hover{background-color:#c2a7ffcc;color:#5c4199}.light .button.button-outline{outline:solid 1px rgba(204,204,204,.6);color:gray;background-color:transparent}.light .button.button-outline:hover{color:gray;background-color:#cccc}.light .button.button-outline-blue{outline:solid 1px rgba(81,192,231,.6);background-color:transparent;color:#136c8c99}.light .button.button-outline-blue:hover{color:#43565c;background-color:#51c0e7cc}.light .button.button-outline-green{outline:solid 1px rgba(144,215,96,.6);background-color:transparent;color:#467e2099}.light .button.button-outline-green:hover{color:#4f4f4f;background-color:#90d760cc}.light .button.button-outline-red{outline:solid 1px rgba(255,146,146,.6);background-color:transparent;color:#f8000099}.light .button.button-outline-red:hover{color:#ae4a4a;background-color:#ff9292cc}.light .button.button-outline-orange{outline:solid 1px rgba(255,196,88,.6);background-color:transparent;color:#be7b0099}.light .button.button-outline-orange:hover{color:#856a39;background-color:#ffc458cc}.light .button.button-outline-violet{outline:solid 1px rgba(194,167,255,.6);background-color:transparent;color:#580eff99}.light .button.button-outline-violet:hover{color:#7456b7;background-color:#c2a7ffcc}.dark .button{background-color:#ffffff1a;color:#e5e5e5}.dark .button:hover{color:#fff;background-color:#fff3}.dark .button.button-blue{background-color:#1685ac}.dark .button.button-blue:hover{background-color:#1685accc}.dark .button.button-green{background-color:#5d9d31}.dark .button.button-green:hover{background-color:#5d9d31cc}.dark .button.button-red{background-color:#c33737}.dark .button.button-red:hover{background-color:#c33737cc}.dark .button.button-orange{background-color:#d59622}.dark .button.button-orange:hover{background-color:#d59622cc}.dark .button.button-violet{background-color:#7750d2}.dark .button.button-violet:hover{background-color:#7750d2cc}.dark .button.button-outline{outline:solid 1px #555555;color:#a2a2a2;background-color:transparent}.dark .button.button-outline:hover{color:#fff;background-color:#555}.dark .button.button-outline-blue{outline:solid 1px #1685ac;background-color:transparent;color:#1ca8d9}.dark .button.button-outline-blue:hover{color:#fff;background-color:#1685ac}.dark .button.button-outline-green{outline:solid 1px #5d9d31;background-color:transparent;color:#74c33e}.dark .button.button-outline-green:hover{color:#fff;background-color:#5d9d31}.dark .button.button-outline-red{outline:solid 1px #c33737;background-color:transparent;color:#d15c5c}.dark .button.button-outline-red:hover{color:#fff;background-color:#c33737}.dark .button.button-outline-orange{outline:solid 1px #d59622;background-color:transparent;color:#e2ac48}.dark .button.button-outline-orange:hover{color:#fff;background-color:#d59622}.dark .button.button-outline-violet{outline:solid 1px #7750d2;background-color:transparent;color:#9779dc}.dark .button.button-outline-violet:hover{color:#fff;background-color:#7750d2}.badge{background-color:#ccc9;color:gray}.badge.badge-blue{background-color:#51c0e799;color:#43565c}.badge.badge-green{background-color:#90d76099;color:#4f4f4f}.badge.badge-red{background-color:#ff929299;color:#ae4a4a}.badge.badge-orange{background-color:#ffc45899;color:#856a39}.badge.badge-violet{background-color:#c2a7ff99;color:#7456b7}.badge.badge-stress-gray{color:#fff;background-color:#80808099}.badge.badge-stress-blue{color:#fff;background-color:#136c8c99}.badge.badge-stress-green{color:#fff;background-color:#467e2099}.badge.badge-stress-red{color:#fff;background-color:#f8000099}.badge.badge-stress-orange{color:#fff;background-color:#be7b0099}.badge.badge-stress-violet{color:#fff;background-color:#580eff99}.dark .badge{background-color:#555;color:#e5e5e5}.dark .badge.badge-blue{background-color:#1685ac}.dark .badge.badge-green{background-color:#5d9d31}.dark .badge.badge-red{background-color:#c33737}.dark .badge.badge-orange{background-color:#d59622}.dark .badge.badge-violet{background-color:#7750d2}.dark .badge.badge-stress-gray{color:#888;background-color:#090909}.dark .badge.badge-stress-blue{color:#41bce7;background-color:#051c24}.dark .badge.badge-stress-green{color:#90cf65;background-color:#18280d}.dark .badge.badge-stress-red{color:#dc8484;background-color:#4c1515}.dark .badge.badge-stress-orange{color:#e9c074;background-color:#51390d}.dark .badge.badge-stress-violet{color:#b6a1e7;background-color:#341c6d}.tree .tree-item>div.selected{background-color:#0000001a}.tree .tree-item>div:hover{background-color:#0000001a}.dark .tree .tree-item>div.selected{background-color:#ffffff1a}.dark .tree .tree-item>div:hover{background-color:#ffffff1a}.dark{background-color:#34383e;color:#ccc}.light{background-color:#fff;color:#333}.d-input input,.d-select select{color:#ccc;background-color:#262626;border-color:#fff3}.d-input input:focus,.d-select select:focus{outline:none!important;border-color:#fff6}.d-checkbox input[type=checkbox]+label:before{border:1px solid rgba(255,255,255,.2)}.d-checkbox input[type=checkbox]:checked+label:before{border-color:#666;background-color:#666}.d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#fff6}.d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#fff6}.d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#fff6}.d-checkbox input[type=checkbox]:disabled+label:before{background-color:#e9ecef}.light .icon{color:#333}.dark .icon{color:#ccc}.styled-scrollbars{scrollbar-width:thin;scrollbar-color:blue orange}.styled-scrollbars::-webkit-scrollbar{height:6px;width:6px}.styled-scrollbars::-webkit-scrollbar-track{background:orange}.styled-scrollbars::-webkit-scrollbar-thumb{background-color:#00f;border-radius:3px;border:0}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e5e5e5}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f0f0}.light .d-layout .d-layout-tab{background-color:#fafafa}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#494c52}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#3e4248}.dark .d-layout .d-layout-tab{background-color:#2f3238}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-11679fd8],[data-v-11679fd8]:after,[data-v-11679fd8]:before{box-sizing:border-box}.node-top[data-v-4c84dfd5]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-4c84dfd5]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-4c84dfd5]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-4c920528]{padding-left:0!important}
|