doph-js 0.0.47 → 0.0.49

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { useSlots as G, computed as p, h as X, openBlock as f, createBlock as v, unref as h, createElementBlock as b, Fragment as K, normalizeClass as k, renderSlot as y, createCommentVNode as D, createVNode as q, createElementVNode as M, toDisplayString as U, withDirectives as oe, normalizeStyle as L, vModelText as ie, Transition as se, withCtx as B, ref as C, resolveDynamicComponent as E, withModifiers as z, resolveComponent as ae, createTextVNode as re, renderList as ee, reactive as J, getCurrentInstance as de, watch as le, onUnmounted as ue, mergeProps as O } from "vue";
1
+ import { useSlots as U, computed as f, h as Q, openBlock as p, createBlock as h, unref as v, createElementBlock as b, Fragment as G, normalizeClass as k, renderSlot as y, createCommentVNode as D, resolveDynamicComponent as z, createElementVNode as E, toDisplayString as X, withDirectives as oe, normalizeStyle as W, vModelText as ie, Transition as se, withCtx as B, ref as H, withModifiers as F, resolveComponent as ae, createTextVNode as re, createVNode as j, renderList as ee, reactive as K, getCurrentInstance as de, watch as le, onUnmounted as ue, mergeProps as O } from "vue";
2
2
  const R = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -7,14 +7,14 @@ const R = {
7
7
  color: String
8
8
  },
9
9
  setup(t) {
10
- const n = t, e = G(), o = p(() => {
10
+ const n = t, e = U(), o = f(() => {
11
11
  const { color: r } = n;
12
12
  return r === void 0 ? null : r;
13
- }), i = p(() => {
13
+ }), i = f(() => {
14
14
  const r = n.size ?? null;
15
15
  if (r !== void 0)
16
16
  return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
17
- }), a = X(
17
+ }), a = f(() => Q(
18
18
  "i",
19
19
  {
20
20
  class: "icon",
@@ -23,49 +23,66 @@ const R = {
23
23
  fontSize: i.value
24
24
  }
25
25
  },
26
- n.component ? X(n.component) : e
27
- );
28
- return (r, l) => (f(), v(h(a)));
26
+ n.component ? Q(n.component) : e
27
+ ));
28
+ return (r, l) => (p(), h(v(a)));
29
29
  }
30
- }, ce = { key: 0 }, Ae = {
30
+ }, L = {
31
+ state: {},
32
+ getters: {
33
+ getIcon(t) {
34
+ return L.state[t];
35
+ },
36
+ getIcons() {
37
+ return L.state;
38
+ }
39
+ },
40
+ mutations: {
41
+ addIcon(t, n) {
42
+ L.state.name = n;
43
+ },
44
+ addIcons(t) {
45
+ for (const n in t)
46
+ t.hasOwnProperty(n) && (L.state[n] = t[n]);
47
+ }
48
+ }
49
+ }, ce = { key: 1 }, Ae = {
31
50
  __name: "DButton",
32
51
  props: {
33
52
  class: String,
34
- icon: Object
53
+ icon: String
35
54
  },
36
55
  emits: ["click"],
37
56
  setup(t, { emit: n }) {
38
- const e = t, o = G();
39
- let i = null;
40
- e.icon && (i = X(R, {
41
- component: e.icon,
42
- color: "inherit"
43
- }));
44
- const a = (r) => {
57
+ const e = t, o = U(), i = f(() => e.icon ? L.getters.getIcon(e.icon) : null), a = (r) => {
45
58
  n("click", r);
46
59
  };
47
- return (r, l) => (f(), b(K, null, [
48
- h(i) ? D("", !0) : (f(), b("div", {
60
+ return (r, l) => (p(), b(G, null, [
61
+ i.value ? D("", !0) : (p(), b("div", {
49
62
  key: 0,
50
63
  onClick: a,
51
64
  class: k(["button", e.class])
52
65
  }, [
53
66
  y(r.$slots, "default")
54
67
  ], 2)),
55
- h(i) ? (f(), b("div", {
68
+ i.value ? (p(), b("div", {
56
69
  key: 1,
57
70
  onClick: a,
58
71
  class: k(["button button-ext", e.class])
59
72
  }, [
60
- q(h(i)),
61
- h(o).default ? (f(), b("div", ce, [
73
+ e.icon ? (p(), h(z(R), {
74
+ key: 0,
75
+ component: i.value,
76
+ color: "inherit"
77
+ }, null, 8, ["component"])) : D("", !0),
78
+ v(o).default ? (p(), b("div", ce, [
62
79
  y(r.$slots, "default")
63
80
  ])) : D("", !0)
64
81
  ], 2)) : D("", !0)
65
82
  ], 64));
66
83
  }
67
84
  };
68
- const Q = (t, n) => {
85
+ const q = (t, n) => {
69
86
  const e = t.__vccOpts || t;
70
87
  for (const [o, i] of n)
71
88
  e[o] = i;
@@ -82,52 +99,33 @@ const Q = (t, n) => {
82
99
  },
83
100
  emits: ["update:modelValue"],
84
101
  setup(t, { emit: n }) {
85
- const e = t, o = p(() => e.font === "small" ? "d-input-small" : e.font === "big" ? "d-input-big" : ""), i = p({
102
+ const e = t, o = f(() => e.font === "small" ? "d-input-small" : e.font === "big" ? "d-input-big" : ""), i = f({
86
103
  get: () => e.modelValue,
87
104
  set: (a) => {
88
105
  n("update:modelValue", a);
89
106
  }
90
107
  });
91
- return (a, r) => (f(), b("div", fe, [
92
- M("div", pe, U(e.label), 1),
93
- oe(M("input", {
108
+ return (a, r) => (p(), b("div", fe, [
109
+ E("div", pe, X(e.label), 1),
110
+ oe(E("input", {
94
111
  "onUpdate:modelValue": r[0] || (r[0] = (l) => i.value = l),
95
112
  type: "text",
96
113
  class: k(o.value),
97
114
  placeholder: e.placeholder,
98
- style: L(e.size === "wide" ? "width:100%" : "")
115
+ style: W(e.size === "wide" ? "width:100%" : "")
99
116
  }, null, 14, me), [
100
117
  [ie, i.value]
101
118
  ])
102
119
  ]));
103
120
  }
104
- }, Pe = /* @__PURE__ */ Q(ge, [["__scopeId", "data-v-11679fd8"]]), H = {
105
- state: {},
106
- getters: {
107
- getIcon(t) {
108
- return H.state[t];
109
- },
110
- getIcons() {
111
- return H.state;
112
- }
113
- },
114
- mutations: {
115
- addIcon(t, n) {
116
- H.state.name = n;
117
- },
118
- addIcons(t) {
119
- for (const n in t)
120
- t.hasOwnProperty(n) && (H.state[n] = t[n]);
121
- }
122
- }
123
- }, he = {
121
+ }, Pe = /* @__PURE__ */ q(ge, [["__scopeId", "data-v-11679fd8"]]), he = {
124
122
  __name: "DBadge",
125
123
  props: {
126
124
  class: String
127
125
  },
128
126
  setup(t) {
129
127
  const n = t;
130
- return (e, o) => (f(), b("div", {
128
+ return (e, o) => (p(), b("div", {
131
129
  class: k(["badge", n.class])
132
130
  }, [
133
131
  y(e.$slots, "default")
@@ -202,15 +200,15 @@ const Q = (t, n) => {
202
200
  marginBottom: d.marginBottom
203
201
  }
204
202
  ], r = (s, d) => {
205
- const c = s, m = e(c), $ = o(c, m), N = a($, m), F = { duration: n.duration, easing: n.easingEnter };
206
- i(c, m, d, N, F);
203
+ const c = s, m = e(c), $ = o(c, m), N = a($, m), M = { duration: n.duration, easing: n.easingEnter };
204
+ i(c, m, d, N, M);
207
205
  }, l = (s, d) => {
208
206
  const c = s, m = e(c), { height: $ } = getComputedStyle(c);
209
207
  c.style.height = $, c.style.overflow = "hidden";
210
- const N = a($, m).reverse(), F = { duration: n.duration, easing: n.easingLeave };
211
- i(c, m, d, N, F);
208
+ const N = a($, m).reverse(), M = { duration: n.duration, easing: n.easingLeave };
209
+ i(c, m, d, N, M);
212
210
  };
213
- return (s, d) => (f(), v(se, {
211
+ return (s, d) => (p(), h(se, {
214
212
  css: !1,
215
213
  onEnter: r,
216
214
  onLeave: l
@@ -223,7 +221,7 @@ const Q = (t, n) => {
223
221
  }
224
222
  }, Z = {
225
223
  data: void 0
226
- }, j = (t) => t.reduce((n, e) => (n[e] = e) && n, {}), x = j([
224
+ }, J = (t) => t.reduce((n, e) => (n[e] = e) && n, {}), x = J([
227
225
  "drag",
228
226
  "dragend",
229
227
  "dragenter",
@@ -231,7 +229,7 @@ const Q = (t, n) => {
231
229
  "dragstart",
232
230
  "dragover",
233
231
  "drop"
234
- ]), ve = j(["copy", "move", "link", "none"]), be = j([
232
+ ]), ve = J(["copy", "move", "link", "none"]), be = J([
235
233
  "none",
236
234
  "copy",
237
235
  "copyLink",
@@ -255,7 +253,7 @@ const Q = (t, n) => {
255
253
  tag: { type: String, default: "div" }
256
254
  },
257
255
  setup(t) {
258
- const n = t, e = G(), o = C(!1), i = p(() => o && n.transferData), a = p(() => ({ position: "fixed", top: "-1000px" })), r = (l, s) => {
256
+ const n = t, e = U(), o = H(!1), i = f(() => o && n.transferData), a = f(() => ({ position: "fixed", top: "-1000px" })), r = (l, s) => {
259
257
  const d = s.dataTransfer;
260
258
  if ([x.dragenter, x.dragover].includes(l) && n.dropEffect && (d.dropEffect = n.dropEffect), l === x.dragstart) {
261
259
  if (n.effectAllowed && (d.effectAllowed = n.effectAllowed), n.image || e.image) {
@@ -265,19 +263,19 @@ const Q = (t, n) => {
265
263
  n.transferData !== void 0 && (Z.data = n.transferData, s.dataTransfer.setData("text", "")), o.value = !0;
266
264
  }
267
265
  };
268
- return (l, s) => (f(), v(E(t.tag), {
266
+ return (l, s) => (p(), h(z(t.tag), {
269
267
  draggable: n.draggable,
270
- onDrag: s[0] || (s[0] = (d) => r(h(x).drag, d)),
271
- onDragstart: s[1] || (s[1] = z((d) => r(h(x).dragstart, d), ["stop"])),
272
- onDragenter: s[2] || (s[2] = (d) => r(h(x).dragenter, d)),
273
- onDragleave: s[3] || (s[3] = (d) => r(h(x).dragleave, d)),
274
- onDragend: s[4] || (s[4] = (d) => r(h(x).dragend, d))
268
+ onDrag: s[0] || (s[0] = (d) => r(v(x).drag, d)),
269
+ onDragstart: s[1] || (s[1] = F((d) => r(v(x).dragstart, d), ["stop"])),
270
+ onDragenter: s[2] || (s[2] = (d) => r(v(x).dragenter, d)),
271
+ onDragleave: s[3] || (s[3] = (d) => r(v(x).dragleave, d)),
272
+ onDragend: s[4] || (s[4] = (d) => r(v(x).dragend, d))
275
273
  }, {
276
274
  default: B(() => [
277
275
  y(l.$slots, "default", { transferData: i.value }),
278
- t.hideImageHtml ? (f(), b("div", {
276
+ t.hideImageHtml ? (p(), b("div", {
279
277
  key: 0,
280
- style: L(a.value)
278
+ style: W(a.value)
281
279
  }, [
282
280
  y(l.$slots, "image", { transferData: i.value })
283
281
  ], 4)) : y(l.$slots, "image", {
@@ -302,11 +300,11 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
302
300
  },
303
301
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
304
302
  setup(t, { emit: n }) {
305
- const e = t, o = C(null), i = C(!1), a = C(!1), r = C(!1), l = 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) => {
303
+ const e = t, o = H(null), i = H(!1), a = H(!1), r = H(!1), l = f(() => e.model.children && e.model.children.length), s = f(() => (u.actions.isTreeExpanded(e.treeId) && (e.model.expanded = e.model.expanded === void 0 ? !0 : e.model.expanded), e.model.expanded)), d = (S) => {
306
304
  n("nodeclick", { event: S, model: e.model });
307
305
  }, c = (S) => {
308
306
  n("nodeclick", S);
309
- }, m = p(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (a.value ? "node-top " : "") + (r.value ? "node-bottom " : "")), $ = p(() => e.search ? !1 : e.model.draggable === !0), N = (S) => {
307
+ }, m = f(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (a.value ? "node-top " : "") + (r.value ? "node-bottom " : "")), $ = f(() => e.search ? !1 : e.model.draggable === !0), N = (S) => {
310
308
  let _ = Z.data;
311
309
  if (_.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, _.model.id) || u.actions.isParentOfChild(e.treeId, e.items, _.model.id, e.model.id))
312
310
  return i.value = !1, a.value = !1, r.value = !1, !1;
@@ -314,84 +312,84 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
314
312
  return !1;
315
313
  let T = "";
316
314
  a.value ? T = "before" : r.value ? T = "after" : T = "inside", u.actions.moveTreeNode(_.id, e.treeId, e.items, _.model.id, e.model.id, T), i.value = !1, a.value = !1, r.value = !1;
317
- }, F = (S) => {
315
+ }, M = (S) => {
318
316
  let _ = Z.data;
319
317
  if (_.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, _.model.id) || u.actions.isParentOfChild(e.treeId, e.items, _.model.id, e.model.id))
320
318
  return !1;
321
- const T = S.y, w = o.value.getBoundingClientRect().top, W = o.value.getBoundingClientRect().height, g = W / 3;
322
- T > w && T <= w + g ? (i.value = !1, a.value = !0, r.value = !1) : T < w + W && T >= w + W - g ? (i.value = !1, a.value = !1, r.value = !0) : (i.value = !0, a.value = !1, r.value = !1);
319
+ const T = S.y, w = o.value.getBoundingClientRect().top, C = o.value.getBoundingClientRect().height, g = C / 3;
320
+ T > w && T <= w + g ? (i.value = !1, a.value = !0, r.value = !1) : T < w + C && T >= w + C - g ? (i.value = !1, a.value = !1, r.value = !0) : (i.value = !0, a.value = !1, r.value = !1);
323
321
  }, Y = () => {
324
322
  i.value = !1, a.value = !1, r.value = !1;
325
323
  };
326
324
  return (S, _) => {
327
325
  const T = ae("d-tree-item", !0);
328
- return f(), v(xe, {
326
+ return p(), h(xe, {
329
327
  tag: "li",
330
328
  class: "tree-item",
331
329
  "transfer-data": { id: e.treeId, model: e.model },
332
330
  draggable: $.value,
333
- onDrop: z(N, ["stop"]),
334
- onDragenter: _[0] || (_[0] = z(() => {
331
+ onDrop: F(N, ["stop"]),
332
+ onDragenter: _[0] || (_[0] = F(() => {
335
333
  }, ["prevent"])),
336
- onDragover: z(F, ["prevent", "stop"]),
337
- onDragleave: z(Y, ["prevent"])
334
+ onDragover: F(M, ["prevent", "stop"]),
335
+ onDragleave: F(Y, ["prevent"])
338
336
  }, {
339
337
  default: B(() => {
340
- var w, W;
338
+ var w, C;
341
339
  return [
342
- M("div", {
340
+ E("div", {
343
341
  ref_key: "node",
344
342
  ref: o,
345
343
  class: k(m.value),
346
344
  onClick: d
347
345
  }, [
348
- M("div", null, [
349
- e.model.icons && e.model.icons.pre && l.value && !e.search ? (f(), v(E(R), {
346
+ E("div", null, [
347
+ e.model.icons && e.model.icons.pre && l.value && !e.search ? (p(), h(z(R), {
350
348
  key: 0,
351
- component: h(H).getters.getIcon(e.model.icons.pre.component),
349
+ component: v(L).getters.getIcon(e.model.icons.pre.component),
352
350
  size: 18,
353
351
  color: e.model.icons.pre.color ? e.model.icons.pre.color : "inherit",
354
352
  class: k(s.value ? "tree-open-pre" : "")
355
353
  }, null, 8, ["component", "color", "class"])) : D("", !0),
356
- e.model.icons && e.model.icons.pre && !l.value && !e.search ? (f(), v(E(R), {
354
+ e.model.icons && e.model.icons.pre && !l.value && !e.search ? (p(), h(z(R), {
357
355
  key: 1,
358
- component: h(H).getters.getIcon(e.model.icons.pre.component),
356
+ component: v(L).getters.getIcon(e.model.icons.pre.component),
359
357
  size: 18,
360
358
  color: "rgba(0,0,0,0)",
361
359
  class: k(s.value ? "tree-open-pre" : "")
362
360
  }, null, 8, ["component", "class"])) : D("", !0),
363
- e.model.icons && e.model.icons.icon ? (f(), v(E(R), {
361
+ e.model.icons && e.model.icons.icon ? (p(), h(z(R), {
364
362
  key: 2,
365
- component: h(H).getters.getIcon(e.model.icons.icon.component),
363
+ component: v(L).getters.getIcon(e.model.icons.icon.component),
366
364
  color: e.model.icons.icon.color ? e.model.icons.icon.color : "inherit"
367
365
  }, null, 8, ["component", "color"])) : D("", !0),
368
- M("div", _e, [
369
- M("div", null, U(h(u).actions.renderTitle(e.treeId, e.model.title)), 1)
366
+ E("div", _e, [
367
+ E("div", null, X(v(u).actions.renderTitle(e.treeId, e.model.title)), 1)
370
368
  ])
371
369
  ]),
372
- M("div", De, [
373
- ((w = e.model.badge) == null ? void 0 : w.value) !== void 0 ? (f(), v(E(he), {
370
+ E("div", De, [
371
+ ((w = e.model.badge) == null ? void 0 : w.value) !== void 0 ? (p(), h(z(he), {
374
372
  key: 0,
375
- class: k([(W = e.model.badge) == null ? void 0 : W.class, "badge-sm"])
373
+ class: k([(C = e.model.badge) == null ? void 0 : C.class, "badge-sm"])
376
374
  }, {
377
375
  default: B(() => [
378
- re(U(e.model.badge.value), 1)
376
+ re(X(e.model.badge.value), 1)
379
377
  ]),
380
378
  _: 1
381
379
  }, 8, ["class"])) : D("", !0),
382
- e.model.icons && e.model.icons.post && l.value && !e.search ? (f(), v(E(R), {
380
+ e.model.icons && e.model.icons.post && l.value && !e.search ? (p(), h(z(R), {
383
381
  key: 1,
384
- component: h(H).getters.getIcon(e.model.icons.post.component),
382
+ component: v(L).getters.getIcon(e.model.icons.post.component),
385
383
  size: 20,
386
384
  color: e.model.icons.post.color ? e.model.icons.post.color : "inherit",
387
385
  class: k(s.value ? "tree-open-post" : "")
388
386
  }, null, 8, ["component", "color", "class"])) : D("", !0)
389
387
  ])
390
388
  ], 2),
391
- q(ye, null, {
389
+ j(ye, null, {
392
390
  default: B(() => [
393
- l.value && s.value && !e.search ? (f(), b("ul", Te, [
394
- (f(!0), b(K, null, ee(t.model.children, (g) => (f(), v(T, {
391
+ l.value && s.value && !e.search ? (p(), b("ul", Te, [
392
+ (p(!0), b(G, null, ee(t.model.children, (g) => (p(), h(T, {
395
393
  class: "tree-item",
396
394
  key: g.id,
397
395
  model: g,
@@ -410,7 +408,7 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
410
408
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]);
411
409
  };
412
410
  }
413
- }, Se = /* @__PURE__ */ Q($e, [["__scopeId", "data-v-f4157b53"]]);
411
+ }, Se = /* @__PURE__ */ q($e, [["__scopeId", "data-v-f4157b53"]]);
414
412
  function Be(t) {
415
413
  return t = t || /* @__PURE__ */ new Map(), {
416
414
  /**
@@ -459,7 +457,7 @@ function Be(t) {
459
457
  };
460
458
  }
461
459
  const V = Be(), u = {
462
- state: J({
460
+ state: K({
463
461
  trees: {}
464
462
  }),
465
463
  getters: {
@@ -565,17 +563,17 @@ const V = Be(), u = {
565
563
  },
566
564
  emits: Object.keys(x),
567
565
  setup(t, { emit: n }) {
568
- let e = J({});
569
- const o = C("false"), i = C(null), a = /* @__PURE__ */ new Set(), r = p(() => o.value && e), l = (s, d) => {
566
+ let e = K({});
567
+ const o = H("false"), i = H(null), a = /* @__PURE__ */ new Set(), r = f(() => o.value && e), l = (s, d) => {
570
568
  e = Z.data, n(s, d, e), s === x.dragenter && (a.size || d.target === i.value) && a.add(d.target), s === x.dragleave && a.delete(d.target), s === x.drop && a.clear(), o.value = !!a.size;
571
569
  };
572
- return (s, d) => (f(), v(E(t.tag), {
570
+ return (s, d) => (p(), h(z(t.tag), {
573
571
  ref_key: "el",
574
572
  ref: i,
575
- onDragenter: d[0] || (d[0] = (c) => l(h(x).dragenter, c)),
576
- onDragleave: d[1] || (d[1] = (c) => l(h(x).dragleave, c)),
577
- onDragover: d[2] || (d[2] = z((c) => l(h(x).dragover, c), ["prevent"])),
578
- onDrop: d[3] || (d[3] = z((c) => l(h(x).drop, c), ["prevent"]))
573
+ onDragenter: d[0] || (d[0] = (c) => l(v(x).dragenter, c)),
574
+ onDragleave: d[1] || (d[1] = (c) => l(v(x).dragleave, c)),
575
+ onDragover: d[2] || (d[2] = F((c) => l(v(x).dragover, c), ["prevent"])),
576
+ onDrop: d[3] || (d[3] = F((c) => l(v(x).drop, c), ["prevent"]))
579
577
  }, {
580
578
  default: B(() => [
581
579
  y(s.$slots, "default", { transferData: r.value })
@@ -617,19 +615,19 @@ const V = Be(), u = {
617
615
  }), V.on(`move-${o}`, (l) => {
618
616
  n("move", l);
619
617
  });
620
- const a = p(() => e.search ? u.actions.deepSearchByTitle(e.items, e.search) : e.items), r = (l = null) => {
618
+ const a = f(() => e.search ? u.actions.deepSearchByTitle(e.items, e.search) : e.items), r = (l = null) => {
621
619
  u.mutations.setItemSelect(o, l.model), u.actions.toggleItem(o, e.items, l.model.id);
622
620
  };
623
- return (l, s) => (f(), v(Ne, {
621
+ return (l, s) => (p(), h(Ne, {
624
622
  class: "tree",
625
623
  tag: "ul",
626
- onDrop: z(i, ["stop"])
624
+ onDrop: F(i, ["stop"])
627
625
  }, {
628
626
  default: B(() => [
629
- (f(!0), b(K, null, ee(a.value, (d) => (f(), v(Se, {
627
+ (p(!0), b(G, null, ee(a.value, (d) => (p(), h(Se, {
630
628
  key: d.id,
631
629
  model: d,
632
- treeId: h(o),
630
+ treeId: v(o),
633
631
  items: e.items,
634
632
  search: e.search,
635
633
  onNodeclick: r
@@ -646,13 +644,13 @@ const Ie = {
646
644
  },
647
645
  setup(t) {
648
646
  const n = t;
649
- return (e, o) => (f(), v(we, {
647
+ return (e, o) => (p(), h(we, {
650
648
  class: "accordion",
651
649
  items: n.items,
652
650
  "no-select": !0
653
651
  }, null, 8, ["items"]));
654
652
  }
655
- }, Oe = /* @__PURE__ */ Q(Ie, [["__scopeId", "data-v-4c920528"]]), ke = {
653
+ }, Oe = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-4c920528"]]), ke = {
656
654
  __name: "DLayoutHeader",
657
655
  props: {
658
656
  fixed: {
@@ -686,13 +684,13 @@ const Ie = {
686
684
  useMinWidthLayout: Boolean
687
685
  },
688
686
  setup(t) {
689
- const n = t, e = p(() => {
687
+ const n = t, e = f(() => {
690
688
  const { fixed: o, zIndex: i, minWidth: a, height: r, paddingLeft: l, transitionDuration: s, transitionTimingFunction: d } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
691
689
  return `position:${c};z-index:${i};${m}height:${r}px;padding-left:${l}px;transition-duration:${s}ms;transition-timing-function:${d};`;
692
690
  });
693
- return (o, i) => (f(), b("header", {
691
+ return (o, i) => (p(), b("header", {
694
692
  class: "d-layout-header",
695
- style: L(e.value)
693
+ style: W(e.value)
696
694
  }, [
697
695
  y(o.$slots, "default")
698
696
  ], 4));
@@ -735,13 +733,13 @@ const Ie = {
735
733
  useMinWidthLayout: Boolean
736
734
  },
737
735
  setup(t) {
738
- const n = t, e = p(() => {
736
+ const n = t, e = f(() => {
739
737
  const { fixed: o, top: i, zIndex: a, minWidth: r, height: l, paddingLeft: s, transitionDuration: d, transitionTimingFunction: c } = n, m = o ? "fixed" : "static", $ = n.useMinWidthLayout ? `min-width: ${r}px;` : "";
740
738
  return `position:${m};top:${i}px;z-index:${a};${$}height:${l}px;padding-left:${s}px;transition-duration:${d}ms;transition-timing-function:${c};`;
741
739
  });
742
- return (o, i) => (f(), b("div", {
740
+ return (o, i) => (p(), b("div", {
743
741
  class: "d-layout-tab",
744
- style: L(e.value)
742
+ style: W(e.value)
745
743
  }, [
746
744
  y(o.$slots, "default")
747
745
  ], 4));
@@ -780,13 +778,13 @@ const Ie = {
780
778
  useMinWidthLayout: Boolean
781
779
  },
782
780
  setup(t) {
783
- const n = t, e = p(() => {
781
+ const n = t, e = f(() => {
784
782
  const { fixed: o, zIndex: i, minWidth: a, height: r, paddingLeft: l, transitionDuration: s, transitionTimingFunction: d } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
785
783
  return `position:${c};z-index:${i};${m}height:${r}px;padding-left:${l}px;transition-duration:${s}ms;transition-timing-function:${d};`;
786
784
  });
787
- return (o, i) => (f(), b("footer", {
785
+ return (o, i) => (p(), b("footer", {
788
786
  class: "d-layout-footer",
789
- style: L(e.value)
787
+ style: W(e.value)
790
788
  }, [
791
789
  y(o.$slots, "default")
792
790
  ], 4));
@@ -820,13 +818,13 @@ const Ie = {
820
818
  }
821
819
  },
822
820
  setup(t) {
823
- const n = t, e = p(() => {
821
+ const n = t, e = f(() => {
824
822
  const { zIndex: o, width: i, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = n;
825
823
  return `z-index:${o};width:${i}px;padding-top:${a}px;transition-duration:${r}ms;transition-timing-function:${l};`;
826
824
  });
827
- return (o, i) => (f(), b("aside", {
825
+ return (o, i) => (p(), b("aside", {
828
826
  class: "d-layout-sidebar",
829
- style: L(e.value)
827
+ style: W(e.value)
830
828
  }, [
831
829
  y(o.$slots, "default")
832
830
  ], 4));
@@ -857,12 +855,12 @@ const Ie = {
857
855
  }
858
856
  },
859
857
  setup(t) {
860
- const n = t, e = p(() => {
858
+ const n = t, e = f(() => {
861
859
  const { paddingTop: o, paddingBottom: i, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = n, s = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
862
860
  return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${a}px;${s}transition-duration:${r}ms;transition-timing-function:${l};`;
863
861
  });
864
- return (o, i) => (f(), b("main", {
865
- style: L(e.value),
862
+ return (o, i) => (p(), b("main", {
863
+ style: W(e.value),
866
864
  class: "d-layout-content"
867
865
  }, [
868
866
  y(o.$slots, "default")
@@ -870,7 +868,7 @@ const Ie = {
870
868
  }
871
869
  };
872
870
  function He(t) {
873
- const n = C(0), e = p(() => `transform: translateX(${-n.value}px);`);
871
+ const n = H(0), e = f(() => `transform: translateX(${-n.value}px);`);
874
872
  let o = !1;
875
873
  function i(c) {
876
874
  n.value = c;
@@ -989,13 +987,13 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
989
987
  },
990
988
  emits: ["update:sidebar-collapse"],
991
989
  setup(t, { emit: n }) {
992
- const e = t, o = p(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = p(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), a = He(i), r = p(() => e.fixedHeaderAndTab ? a.value : ""), l = p(() => e.fixedFooter ? a.value : ""), s = p(() => {
990
+ const e = t, o = f(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = f(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), a = He(i), r = f(() => e.fixedHeaderAndTab ? a.value : ""), l = f(() => e.fixedFooter ? a.value : ""), s = f(() => {
993
991
  const { transitionDuration: g, transitionTimingFunction: A } = e;
994
992
  return {
995
993
  transitionDuration: g,
996
994
  transitionTimingFunction: A
997
995
  };
998
- }), d = p(() => e.mode === "vertical"), c = p(() => e.isMobile || d.value ? 1003 : 1e3), m = p({
996
+ }), d = f(() => e.mode === "vertical"), c = f(() => e.isMobile || d.value ? 1003 : 1e3), m = f({
999
997
  get() {
1000
998
  return e.sidebarCollapse;
1001
999
  },
@@ -1006,23 +1004,23 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1006
1004
  function $() {
1007
1005
  m.value = !0;
1008
1006
  }
1009
- const N = p(() => e.isMobile && !m.value), F = p(() => {
1007
+ const N = f(() => e.isMobile && !m.value), M = f(() => {
1010
1008
  const { transitionDuration: g, transitionTimingFunction: A } = e;
1011
1009
  return `background-color:${e.maskBg};transition-duration:${g}ms;transition-timing-function:${A};`;
1012
- }), Y = p(() => {
1010
+ }), Y = f(() => {
1013
1011
  const { sidebarWidth: g, sidebarCollapsedWidth: A } = e, te = e.isMobile ? 0 : A, ne = m.value ? te : g;
1014
1012
  return e.sidebarVisible ? ne : 0;
1015
- }), S = p(() => e.isMobile ? 0 : Y.value), _ = p(() => d.value ? S.value : 0), T = p(
1013
+ }), S = f(() => e.isMobile ? 0 : Y.value), _ = f(() => d.value ? S.value : 0), T = f(
1016
1014
  () => !e.isMobile && !d.value && e.headerVisible ? e.headerHeight : 0
1017
- ), w = p(() => {
1015
+ ), w = f(() => {
1018
1016
  let g = 0;
1019
1017
  return e.fixedHeaderAndTab && (e.headerVisible && (g += e.headerHeight), e.tabVisible && (g += e.tabHeight)), g;
1020
- }), W = p(() => e.fixedFooter && e.footerVisible ? e.footerHeight : 0);
1021
- return (g, A) => (f(), b("div", {
1018
+ }), C = f(() => e.fixedFooter && e.footerVisible ? e.footerHeight : 0);
1019
+ return (g, A) => (p(), b("div", {
1022
1020
  class: "d-layout",
1023
- style: L(o.value)
1021
+ style: W(o.value)
1024
1022
  }, [
1025
- t.headerVisible ? (f(), v(ke, O({ key: 0 }, s.value, {
1023
+ t.headerVisible ? (p(), h(ke, O({ key: 0 }, s.value, {
1026
1024
  fixed: t.fixedHeaderAndTab,
1027
1025
  "z-index": Fe,
1028
1026
  "min-width": t.minWidth,
@@ -1035,7 +1033,7 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1035
1033
  ]),
1036
1034
  _: 3
1037
1035
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : D("", !0),
1038
- t.tabVisible ? (f(), v(Le, O({ key: 1 }, s.value, {
1036
+ t.tabVisible ? (p(), h(Le, O({ key: 1 }, s.value, {
1039
1037
  fixed: t.fixedHeaderAndTab,
1040
1038
  "z-index": Me,
1041
1039
  "min-width": t.minWidth,
@@ -1049,7 +1047,7 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1049
1047
  ]),
1050
1048
  _: 3
1051
1049
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : D("", !0),
1052
- t.sidebarVisible ? (f(), v(Ce, O({ key: 2 }, s.value, {
1050
+ t.sidebarVisible ? (p(), h(Ce, O({ key: 2 }, s.value, {
1053
1051
  "z-index": c.value,
1054
1052
  width: Y.value,
1055
1053
  "padding-top": T.value
@@ -1059,15 +1057,15 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1059
1057
  ]),
1060
1058
  _: 3
1061
1059
  }, 16, ["z-index", "width", "padding-top"])) : D("", !0),
1062
- N.value ? (f(), b("div", {
1060
+ N.value ? (p(), b("div", {
1063
1061
  key: 3,
1064
1062
  class: "d-layout-sidebar-mask",
1065
- style: L(F.value),
1063
+ style: W(M.value),
1066
1064
  onClick: $
1067
1065
  }, null, 4)) : D("", !0),
1068
- q(ze, O(s.value, {
1066
+ j(ze, O(s.value, {
1069
1067
  "padding-top": w.value,
1070
- "padding-bottom": W.value,
1068
+ "padding-bottom": C.value,
1071
1069
  "padding-left": S.value,
1072
1070
  "overflow-hidden": t.addMainOverflowHidden
1073
1071
  }), {
@@ -1076,7 +1074,7 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1076
1074
  ]),
1077
1075
  _: 3
1078
1076
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1079
- t.footerVisible ? (f(), v(We, O({ key: 4 }, s.value, {
1077
+ t.footerVisible ? (p(), h(We, O({ key: 4 }, s.value, {
1080
1078
  fixed: t.fixedFooter,
1081
1079
  "z-index": Ee,
1082
1080
  "min-width": t.minWidth,
@@ -1092,7 +1090,7 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1092
1090
  ], 4));
1093
1091
  }
1094
1092
  }, P = {
1095
- state: J({
1093
+ state: K({
1096
1094
  theme: "dark"
1097
1095
  }),
1098
1096
  getters: {
@@ -1131,7 +1129,7 @@ export {
1131
1129
  Ye as DConfigProvider,
1132
1130
  P as DGlobalStore,
1133
1131
  R as DIcon,
1134
- H as DIconStore,
1132
+ L as DIconStore,
1135
1133
  Pe as DInput,
1136
1134
  Re as DLayoutAdmin,
1137
1135
  ze as DLayoutContent,
@@ -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 pe="",ue="",ge="",he="",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:l}=n;return l===void 0?null:l}),r=e.computed(()=>{const l=n.size??null;if(l!==void 0)return typeof l=="number"||/^\d+$/.test(l)?`${l}px`:l}),s=e.h("i",{class:"icon",style:{color:i.value,fontSize:r.value}},n.component?e.h(n.component):t);return(l,c)=>(e.openBlock(),e.createBlock(e.unref(s)))}},X={key:0},G={__name:"DButton",props:{class:String,icon:Object},emits:["click"],setup(o,{emit:n}){const t=o,i=e.useSlots();let r=null;t.icon&&(r=e.h(w,{component:t.icon,color:"inherit"}));const s=l=>{n("click",l)};return(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s,class:e.normalizeClass(["button",t.class])},[e.renderSlot(l.$slots,"default")],2)),e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:s,class:e.normalizeClass(["button button-ext",t.class])},[e.createVNode(e.unref(r)),e.unref(i).default?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(l.$slots,"default")])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}},ye="",E=(o,n)=>{const t=o.__vccOpts||o;for(const[i,r]of n)t[i]=r;return t},U={class:"d-input"},q={class:"label"},J=["placeholder"],K=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:s=>{n("update:modelValue",s)}});return(s,l)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,e.toDisplayString(t.label),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),type:"text",class:e.normalizeClass(i.value),placeholder:t.placeholder,style:e.normalizeStyle(t.size==="wide"?"width:100%":"")},null,14,J),[[e.vModelText,r.value]])]))}},[["__scopeId","data-v-11679fd8"]]),S={state:{},getters:{getIcon(o){return S.state[o]},getIcons(){return S.state}},mutations:{addIcon(o,n){S.state.name=n},addIcons(o){for(const n in o)o.hasOwnProperty(n)&&(S.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))}},D="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=D,a.style.overflow="hidden",d.height&&d.height!==D?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()}},s=(a,d)=>[{height:D,opacity:n.opacityClosed,paddingTop:D,paddingBottom:D,borderTopWidth:D,borderBottomWidth:D,marginTop:D,marginBottom:D},{height:a,opacity:n.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],l=(a,d)=>{const m=a,u=t(m),B=i(m,u),_=s(B,u),C={duration:n.duration,easing:n.easingEnter};r(m,u,d,_,C)},c=(a,d)=>{const m=a,u=t(m),{height:B}=getComputedStyle(m);m.style.height=B,m.style.overflow="hidden";const _=s(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:l,onLeave:c},{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"]),Q=V(["copy","move","link","none"]),j=V(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),v={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:o=>o in Q},effectAllowed:{validator:o=>o in j},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),s=e.computed(()=>({position:"fixed",top:"-1000px"})),l=(c,a)=>{const d=a.dataTransfer;if([h.dragenter,h.dragover].includes(c)&&n.dropEffect&&(d.dropEffect=n.dropEffect),c===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(c,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{draggable:n.draggable,onDrag:a[0]||(a[0]=d=>l(e.unref(h).drag,d)),onDragstart:a[1]||(a[1]=e.withModifiers(d=>l(e.unref(h).dragstart,d),["stop"])),onDragenter:a[2]||(a[2]=d=>l(e.unref(h).dragenter,d)),onDragleave:a[3]||(a[3]=d=>l(e.unref(h).dragleave,d)),onDragend:a[4]||(a[4]=d=>l(e.unref(h).dragend,d))},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{transferData:r.value}),o.hideImageHtml?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(s.value)},[e.renderSlot(c.$slots,"image",{transferData:r.value})],4)):e.renderSlot(c.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},Be="",ee={class:"item-title"},te={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},oe={key:0,class:"sub-menu"},F=E({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(o,{emit:n}){const t=o,i=e.ref(null),r=e.ref(!1),s=e.ref(!1),l=e.ref(!1),c=e.computed(()=>t.model.children&&t.model.children.length),a=e.computed(()=>(f.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(()=>(f.actions.isItemSelected(t.treeId,t.model.id)?"selected":"")+(r.value?"node-over ":"")+(s.value?"node-top ":"")+(l.value?"node-bottom ":"")),B=e.computed(()=>t.search?!1:t.model.draggable===!0),_=k=>{let y=L.data;if(y.model.id===t.model.id||f.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||f.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return r.value=!1,s.value=!1,l.value=!1,!1;if(!f.state.trees[t.treeId].transfer&&y.id!==t.treeId)return!1;let b="";s.value?b="before":l.value?b="after":b="inside",f.actions.moveTreeNode(y.id,t.treeId,t.items,y.model.id,t.model.id,b),r.value=!1,s.value=!1,l.value=!1},C=k=>{let y=L.data;if(y.model.id===t.model.id||f.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||f.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return!1;const b=k.y,T=i.value.getBoundingClientRect().top,$=i.value.getBoundingClientRect().height,g=$/3;b>T&&b<=T+g?(r.value=!1,s.value=!0,l.value=!1):b<T+$&&b>=T+$-g?(r.value=!1,s.value=!1,l.value=!0):(r.value=!0,s.value=!1,l.value=!1)},z=()=>{r.value=!1,s.value=!1,l.value=!1};return(k,y)=>{const b=e.resolveComponent("d-tree-item",!0);return e.openBlock(),e.createBlock(v,{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 T,$;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&&c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:0,component:e.unref(S).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&&!c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(S).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(S).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",ee,[e.createElementVNode("div",null,e.toDisplayString(e.unref(f).actions.renderTitle(t.treeId,t.model.title)),1)])]),e.createElementVNode("div",te,[((T=t.model.badge)==null?void 0:T.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&&c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(S).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(()=>[c.value&&a.value&&!t.search?(e.openBlock(),e.createElementBlock("ul",oe,[(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,search:t.search,onNodeclick:m},null,8,["model","treeId","items","search"]))),128))])):e.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])}}},[["__scopeId","data-v-f4157b53"]]);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 x=H(),f={state:e.reactive({trees:{}}),getters:{getItems(o){return f.state.trees[o].items},getItemsSelect(o){return f.state.trees[o].selected},getParentId(o,n,t,i="id",r="children",s={}){return t&&o&&(o.find(l=>l[i]===t?(s.found=n,l):f.getters.getParentId(l[r],l.id,t,i,r,s)),s.found)?s.found:!1}},mutations:{setTreeItems(o,n){f.state.trees[o].items=n},setItemSelect(o,n){f.state.trees[o].noSelect||(f.state.trees[o].multiSelect?f.state.trees[o].selected.includes(n.id)?f.state.trees[o].selected=f.state.trees[o].selected.filter(function(t){return t!==n.id}):f.state.trees[o].selected=[...f.state.trees[o].selected,n.id]:f.state.trees[o].selected=[n.id])}},actions:{initTreeStore(o,n,t,i,r,s){f.state.trees[o]=[],f.state.trees[o].selected=[],f.state.trees[o].noSelect=n,f.state.trees[o].multiSelect=t,f.state.trees[o].expanded=i,f.state.trees[o].transfer=r,f.state.trees[o].renderTitle=s},renderTitle(o,n){return f.state.trees[o].renderTitle?f.state.trees[o].renderTitle(n):n},isItemSelected(o,n){return f.state.trees[o].selected.includes(n)},toggleItem(o,n,t){const i=f.actions.deepSearch(n,t);i.expanded=i.expanded===void 0||!i.expanded,i.children&&i.children.length&&(i.expanded?x.emit(`expand-${o}`,{id:o,model:i}):x.emit(`collapse-${o}`,{id:o,model:i}))},isTreeExpanded(o){return f.state.trees[o].expanded},isChildOfParent(o,n,t,i){const r=f.actions.deepSearch(n,t);if(r&&r.children){for(let s=0;s<r.children.length;s++)if(r.children[s].id===i)return!0}return!1},isParentOfChild(o,n,t,i){const r=f.actions.deepSearch(n,t);return!!(r&&r.children&&f.actions.deepSearch(r.children,i))},deepSearch(o,n,t="id",i="children",r={}){return n&&o&&(o.find(s=>s[t]===n?(r.found=s,s):f.actions.deepSearch(s[i],n,t,i,r)),r.found)?r.found:!1},deepSearchByTitle(o,n,t="title",i="children",r=[]){if(n&&o&&(o.find(s=>{const l=new RegExp(n,"gi");s[t].toString().toLowerCase().match(l)!==null&&r.push(s),f.actions.deepSearchByTitle(s[i],n,t,i,r)}),r)){for(let s=0;s<r.length;s++);return r}return r},moveTreeNode(o,n,t,i,r,s){const l=f.actions.deleteTreeNode(t,i);f.actions.insertTreeNode(t,r,l,s),x.emit(`move-${n}`,{fromTreeId:o,toTreeId:n,moved:l.id,target:r,position:s})},insertTreeNode(o,n,t,i){if(o)for(let r=0;r<o.length;r++){if(o[r].id===n){let l=r;return i==="after"?(l++,o.splice(l,0,t)):i==="before"?o.splice(l,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 s=this.insertTreeNode(o[r].children,n,t,i);if(s)return s}},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=f.actions.deleteTreeNode(o[t].children,n);if(i)return i}}}},ne={__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),s=new Set,l=e.computed(()=>i.value&&t),c=(a,d)=>{t=L.data,n(a,d,t),a===h.dragenter&&(s.size||d.target===r.value)&&s.add(d.target),a===h.dragleave&&s.delete(d.target),a===h.drop&&s.clear(),i.value=!!s.size};return(a,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{ref_key:"el",ref:r,onDragenter:d[0]||(d[0]=m=>c(e.unref(h).dragenter,m)),onDragleave:d[1]||(d[1]=m=>c(e.unref(h).dragleave,m)),onDragover:d[2]||(d[2]=e.withModifiers(m=>c(e.unref(h).dragover,m),["prevent"])),onDrop:d[3]||(d[3]=e.withModifiers(m=>c(e.unref(h).drop,m),["prevent"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{transferData:l.value})]),_:3},544))}},P={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,search:String},emits:["select","collapse","expand","move"],setup(o,{emit:n}){const t=o,i=e.getCurrentInstance().uid;f.actions.initTreeStore(i,t.noSelect,t.multiSelect,t.expanded,t.transfer,t.renderTitle);const r=(c,a)=>{console.log(c,a)};x.on(`select-${i}`,c=>{n("select",c)}),x.on(`expand-${i}`,c=>{n("expand",c)}),x.on(`collapse-${i}`,c=>{n("collapse",c)}),x.on(`move-${i}`,c=>{n("move",c)});const s=e.computed(()=>t.search?f.actions.deepSearchByTitle(t.items,t.search):t.items),l=(c=null)=>{f.mutations.setItemSelect(i,c.model),f.actions.toggleItem(i,t.items,c.model.id)};return(c,a)=>(e.openBlock(),e.createBlock(ne,{class:"tree",tag:"ul",onDrop:e.withModifiers(r,["stop"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,d=>(e.openBlock(),e.createBlock(F,{key:d.id,model:d,treeId:e.unref(i),items:t.items,search:t.search,onNodeclick:l},null,8,["model","treeId","items","search"]))),128))]),_:1},8,["onDrop"]))}},Se="",ie=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:s,height:l,paddingLeft:c,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${m};z-index:${r};${u}height:${l}px;padding-left:${c}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:s,minWidth:l,height:c,paddingLeft:a,transitionDuration:d,transitionTimingFunction:m}=n,u=i?"fixed":"static",B=n.useMinWidthLayout?`min-width: ${l}px;`:"";return`position:${u};top:${r}px;z-index:${s};${B}height:${c}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:s,height:l,paddingLeft:c,transitionDuration:a,transitionTimingFunction:d}=n,m=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${m};z-index:${r};${u}height:${l}px;padding-left:${c}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:s,transitionDuration:l,transitionTimingFunction:c}=n;return`z-index:${i};width:${r}px;padding-top:${s}px;transition-duration:${l}ms;transition-timing-function:${c};`});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:s,transitionDuration:l,transitionTimingFunction:c}=n,a=`overflow:${n.overflowHidden?"hidden":"visible"};`;return`padding-top:${i}px;padding-bottom:${r}px;padding-left:${s}px;${a}transition-duration:${l}ms;transition-timing-function:${c};`});return(i,r)=>(e.openBlock(),e.createElementBlock("main",{style:e.normalizeStyle(t.value),class:"d-layout-content"},[e.renderSlot(i.$slots,"default")],4))}};function re(o){const n=e.ref(0),t=e.computed(()=>`transform: translateX(${-n.value}px);`);let i=!1;function r(m){n.value=m}function s(){var m;const u=((m=document.scrollingElement)===null||m===void 0?void 0:m.scrollLeft)||0;r(u)}function l(){s()}function c(){document.addEventListener("scroll",s)}function a(){i&&document.removeEventListener("scroll",s)}function d(){l(),c(),i=!0}return e.watch(o,m=>{m?d():a()},{immediate:!0}),e.onUnmounted(()=>{a()}),t}const ae=1001,se=999,le=998,de={__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)),s=re(r),l=e.computed(()=>t.fixedHeaderAndTab?s.value:""),c=e.computed(()=>t.fixedFooter?s.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,fe=t.isMobile?0:I,me=u.value?fe: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),T=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":ae,"min-width":o.minWidth,height:o.headerHeight,"padding-left":y.value,style:l.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":se,"min-width":o.minWidth,top:o.headerHeight,height:o.tabHeight,"padding-left":k.value,style:l.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":T.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":le,"min-width":o.minWidth,height:o.footerHeight,"padding-left":k.value,style:c.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)}}},ce={__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=ie,p.DBadge=W,p.DButton=G,p.DCollapse=M,p.DConfigProvider=ce,p.DGlobalStore=N,p.DIcon=w,p.DIconStore=S,p.DInput=K,p.DLayoutAdmin=de,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=f,p.emitter=x,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 pe="",ue="",ge="",he="",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:l}=n;return l===void 0?null:l}),r=e.computed(()=>{const l=n.size??null;if(l!==void 0)return typeof l=="number"||/^\d+$/.test(l)?`${l}px`:l}),s=e.computed(()=>e.h("i",{class:"icon",style:{color:i.value,fontSize:r.value}},n.component?e.h(n.component):t));return(l,c)=>(e.openBlock(),e.createBlock(e.unref(s)))}},S={state:{},getters:{getIcon(o){return S.state[o]},getIcons(){return S.state}},mutations:{addIcon(o,n){S.state.name=n},addIcons(o){for(const n in o)o.hasOwnProperty(n)&&(S.state[n]=o[n])}}},X={key:1},G={__name:"DButton",props:{class:String,icon:String},emits:["click"],setup(o,{emit:n}){const t=o,i=e.useSlots(),r=e.computed(()=>t.icon?S.getters.getIcon(t.icon):null),s=l=>{n("click",l)};return(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s,class:e.normalizeClass(["button",t.class])},[e.renderSlot(l.$slots,"default")],2)),r.value?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:s,class:e.normalizeClass(["button button-ext",t.class])},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:0,component:r.value,color:"inherit"},null,8,["component"])):e.createCommentVNode("",!0),e.unref(i).default?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(l.$slots,"default")])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64))}},ye="",E=(o,n)=>{const t=o.__vccOpts||o;for(const[i,r]of n)t[i]=r;return t},U={class:"d-input"},q={class:"label"},J=["placeholder"],K=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:s=>{n("update:modelValue",s)}});return(s,l)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,e.toDisplayString(t.label),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),type:"text",class:e.normalizeClass(i.value),placeholder:t.placeholder,style:e.normalizeStyle(t.size==="wide"?"width:100%":"")},null,14,J),[[e.vModelText,r.value]])]))}},[["__scopeId","data-v-11679fd8"]]),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))}},D="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:f}=getComputedStyle(a);a.style.width=f,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=D,a.style.overflow="hidden",d.height&&d.height!==D?d.height:u},r=(a,d,f,u,B)=>{const _=a.animate(u,B);a.style.height=d.height,_.onfinish=()=>{a.style.overflow=d.overflow,f()}},s=(a,d)=>[{height:D,opacity:n.opacityClosed,paddingTop:D,paddingBottom:D,borderTopWidth:D,borderBottomWidth:D,marginTop:D,marginBottom:D},{height:a,opacity:n.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],l=(a,d)=>{const f=a,u=t(f),B=i(f,u),_=s(B,u),N={duration:n.duration,easing:n.easingEnter};r(f,u,d,_,N)},c=(a,d)=>{const f=a,u=t(f),{height:B}=getComputedStyle(f);f.style.height=B,f.style.overflow="hidden";const _=s(B,u).reverse(),N={duration:n.duration,easing:n.easingLeave};r(f,u,d,_,N)};return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{css:!1,onEnter:l,onLeave:c},{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"]),Q=V(["copy","move","link","none"]),j=V(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),v={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:o=>o in Q},effectAllowed:{validator:o=>o in j},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),s=e.computed(()=>({position:"fixed",top:"-1000px"})),l=(c,a)=>{const d=a.dataTransfer;if([h.dragenter,h.dragover].includes(c)&&n.dropEffect&&(d.dropEffect=n.dropEffect),c===h.dragstart){if(n.effectAllowed&&(d.effectAllowed=n.effectAllowed),n.image||t.image){let f;n.image?(f=new Image,f.src=n.image):t.image&&(f=t.image[0].elm),d.setDragImage&&d.setDragImage(f,n.imageXOffset,n.imageYOffset)}n.transferData!==void 0&&(L.data=n.transferData,a.dataTransfer.setData("text","")),i.value=!0}};return(c,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{draggable:n.draggable,onDrag:a[0]||(a[0]=d=>l(e.unref(h).drag,d)),onDragstart:a[1]||(a[1]=e.withModifiers(d=>l(e.unref(h).dragstart,d),["stop"])),onDragenter:a[2]||(a[2]=d=>l(e.unref(h).dragenter,d)),onDragleave:a[3]||(a[3]=d=>l(e.unref(h).dragleave,d)),onDragend:a[4]||(a[4]=d=>l(e.unref(h).dragend,d))},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{transferData:r.value}),o.hideImageHtml?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(s.value)},[e.renderSlot(c.$slots,"image",{transferData:r.value})],4)):e.renderSlot(c.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},Be="",ee={class:"item-title"},te={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},oe={key:0,class:"sub-menu"},F=E({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(o,{emit:n}){const t=o,i=e.ref(null),r=e.ref(!1),s=e.ref(!1),l=e.ref(!1),c=e.computed(()=>t.model.children&&t.model.children.length),a=e.computed(()=>(m.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})},f=k=>{n("nodeclick",k)},u=e.computed(()=>(m.actions.isItemSelected(t.treeId,t.model.id)?"selected":"")+(r.value?"node-over ":"")+(s.value?"node-top ":"")+(l.value?"node-bottom ":"")),B=e.computed(()=>t.search?!1:t.model.draggable===!0),_=k=>{let y=L.data;if(y.model.id===t.model.id||m.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||m.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return r.value=!1,s.value=!1,l.value=!1,!1;if(!m.state.trees[t.treeId].transfer&&y.id!==t.treeId)return!1;let b="";s.value?b="before":l.value?b="after":b="inside",m.actions.moveTreeNode(y.id,t.treeId,t.items,y.model.id,t.model.id,b),r.value=!1,s.value=!1,l.value=!1},N=k=>{let y=L.data;if(y.model.id===t.model.id||m.actions.isChildOfParent(t.treeId,t.items,t.model.id,y.model.id)||m.actions.isParentOfChild(t.treeId,t.items,y.model.id,t.model.id))return!1;const b=k.y,T=i.value.getBoundingClientRect().top,$=i.value.getBoundingClientRect().height,g=$/3;b>T&&b<=T+g?(r.value=!1,s.value=!0,l.value=!1):b<T+$&&b>=T+$-g?(r.value=!1,s.value=!1,l.value=!0):(r.value=!0,s.value=!1,l.value=!1)},z=()=>{r.value=!1,s.value=!1,l.value=!1};return(k,y)=>{const b=e.resolveComponent("d-tree-item",!0);return e.openBlock(),e.createBlock(v,{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(N,["prevent","stop"]),onDragleave:e.withModifiers(z,["prevent"])},{default:e.withCtx(()=>{var T,$;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&&c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:0,component:e.unref(S).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&&!c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(S).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(S).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",ee,[e.createElementVNode("div",null,e.toDisplayString(e.unref(m).actions.renderTitle(t.treeId,t.model.title)),1)])]),e.createElementVNode("div",te,[((T=t.model.badge)==null?void 0:T.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&&c.value&&!t.search?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w),{key:1,component:e.unref(S).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(()=>[c.value&&a.value&&!t.search?(e.openBlock(),e.createElementBlock("ul",oe,[(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,search:t.search,onNodeclick:f},null,8,["model","treeId","items","search"]))),128))])):e.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])}}},[["__scopeId","data-v-f4157b53"]]);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 x=H(),m={state:e.reactive({trees:{}}),getters:{getItems(o){return m.state.trees[o].items},getItemsSelect(o){return m.state.trees[o].selected},getParentId(o,n,t,i="id",r="children",s={}){return t&&o&&(o.find(l=>l[i]===t?(s.found=n,l):m.getters.getParentId(l[r],l.id,t,i,r,s)),s.found)?s.found:!1}},mutations:{setTreeItems(o,n){m.state.trees[o].items=n},setItemSelect(o,n){m.state.trees[o].noSelect||(m.state.trees[o].multiSelect?m.state.trees[o].selected.includes(n.id)?m.state.trees[o].selected=m.state.trees[o].selected.filter(function(t){return t!==n.id}):m.state.trees[o].selected=[...m.state.trees[o].selected,n.id]:m.state.trees[o].selected=[n.id])}},actions:{initTreeStore(o,n,t,i,r,s){m.state.trees[o]=[],m.state.trees[o].selected=[],m.state.trees[o].noSelect=n,m.state.trees[o].multiSelect=t,m.state.trees[o].expanded=i,m.state.trees[o].transfer=r,m.state.trees[o].renderTitle=s},renderTitle(o,n){return m.state.trees[o].renderTitle?m.state.trees[o].renderTitle(n):n},isItemSelected(o,n){return m.state.trees[o].selected.includes(n)},toggleItem(o,n,t){const i=m.actions.deepSearch(n,t);i.expanded=i.expanded===void 0||!i.expanded,i.children&&i.children.length&&(i.expanded?x.emit(`expand-${o}`,{id:o,model:i}):x.emit(`collapse-${o}`,{id:o,model:i}))},isTreeExpanded(o){return m.state.trees[o].expanded},isChildOfParent(o,n,t,i){const r=m.actions.deepSearch(n,t);if(r&&r.children){for(let s=0;s<r.children.length;s++)if(r.children[s].id===i)return!0}return!1},isParentOfChild(o,n,t,i){const r=m.actions.deepSearch(n,t);return!!(r&&r.children&&m.actions.deepSearch(r.children,i))},deepSearch(o,n,t="id",i="children",r={}){return n&&o&&(o.find(s=>s[t]===n?(r.found=s,s):m.actions.deepSearch(s[i],n,t,i,r)),r.found)?r.found:!1},deepSearchByTitle(o,n,t="title",i="children",r=[]){if(n&&o&&(o.find(s=>{const l=new RegExp(n,"gi");s[t].toString().toLowerCase().match(l)!==null&&r.push(s),m.actions.deepSearchByTitle(s[i],n,t,i,r)}),r)){for(let s=0;s<r.length;s++);return r}return r},moveTreeNode(o,n,t,i,r,s){const l=m.actions.deleteTreeNode(t,i);m.actions.insertTreeNode(t,r,l,s),x.emit(`move-${n}`,{fromTreeId:o,toTreeId:n,moved:l.id,target:r,position:s})},insertTreeNode(o,n,t,i){if(o)for(let r=0;r<o.length;r++){if(o[r].id===n){let l=r;return i==="after"?(l++,o.splice(l,0,t)):i==="before"?o.splice(l,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 s=this.insertTreeNode(o[r].children,n,t,i);if(s)return s}},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=m.actions.deleteTreeNode(o[t].children,n);if(i)return i}}}},ne={__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),s=new Set,l=e.computed(()=>i.value&&t),c=(a,d)=>{t=L.data,n(a,d,t),a===h.dragenter&&(s.size||d.target===r.value)&&s.add(d.target),a===h.dragleave&&s.delete(d.target),a===h.drop&&s.clear(),i.value=!!s.size};return(a,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{ref_key:"el",ref:r,onDragenter:d[0]||(d[0]=f=>c(e.unref(h).dragenter,f)),onDragleave:d[1]||(d[1]=f=>c(e.unref(h).dragleave,f)),onDragover:d[2]||(d[2]=e.withModifiers(f=>c(e.unref(h).dragover,f),["prevent"])),onDrop:d[3]||(d[3]=e.withModifiers(f=>c(e.unref(h).drop,f),["prevent"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{transferData:l.value})]),_:3},544))}},P={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,search:String},emits:["select","collapse","expand","move"],setup(o,{emit:n}){const t=o,i=e.getCurrentInstance().uid;m.actions.initTreeStore(i,t.noSelect,t.multiSelect,t.expanded,t.transfer,t.renderTitle);const r=(c,a)=>{console.log(c,a)};x.on(`select-${i}`,c=>{n("select",c)}),x.on(`expand-${i}`,c=>{n("expand",c)}),x.on(`collapse-${i}`,c=>{n("collapse",c)}),x.on(`move-${i}`,c=>{n("move",c)});const s=e.computed(()=>t.search?m.actions.deepSearchByTitle(t.items,t.search):t.items),l=(c=null)=>{m.mutations.setItemSelect(i,c.model),m.actions.toggleItem(i,t.items,c.model.id)};return(c,a)=>(e.openBlock(),e.createBlock(ne,{class:"tree",tag:"ul",onDrop:e.withModifiers(r,["stop"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,d=>(e.openBlock(),e.createBlock(F,{key:d.id,model:d,treeId:e.unref(i),items:t.items,search:t.search,onNodeclick:l},null,8,["model","treeId","items","search"]))),128))]),_:1},8,["onDrop"]))}},Se="",ie=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:s,height:l,paddingLeft:c,transitionDuration:a,transitionTimingFunction:d}=n,f=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${c}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:s,minWidth:l,height:c,paddingLeft:a,transitionDuration:d,transitionTimingFunction:f}=n,u=i?"fixed":"static",B=n.useMinWidthLayout?`min-width: ${l}px;`:"";return`position:${u};top:${r}px;z-index:${s};${B}height:${c}px;padding-left:${a}px;transition-duration:${d}ms;transition-timing-function:${f};`});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:s,height:l,paddingLeft:c,transitionDuration:a,transitionTimingFunction:d}=n,f=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${c}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:s,transitionDuration:l,transitionTimingFunction:c}=n;return`z-index:${i};width:${r}px;padding-top:${s}px;transition-duration:${l}ms;transition-timing-function:${c};`});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:s,transitionDuration:l,transitionTimingFunction:c}=n,a=`overflow:${n.overflowHidden?"hidden":"visible"};`;return`padding-top:${i}px;padding-bottom:${r}px;padding-left:${s}px;${a}transition-duration:${l}ms;transition-timing-function:${c};`});return(i,r)=>(e.openBlock(),e.createElementBlock("main",{style:e.normalizeStyle(t.value),class:"d-layout-content"},[e.renderSlot(i.$slots,"default")],4))}};function re(o){const n=e.ref(0),t=e.computed(()=>`transform: translateX(${-n.value}px);`);let i=!1;function r(f){n.value=f}function s(){var f;const u=((f=document.scrollingElement)===null||f===void 0?void 0:f.scrollLeft)||0;r(u)}function l(){s()}function c(){document.addEventListener("scroll",s)}function a(){i&&document.removeEventListener("scroll",s)}function d(){l(),c(),i=!0}return e.watch(o,f=>{f?d():a()},{immediate:!0}),e.onUnmounted(()=>{a()}),t}const ae=1001,se=999,le=998,de={__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)),s=re(r),l=e.computed(()=>t.fixedHeaderAndTab?s.value:""),c=e.computed(()=>t.fixedFooter?s.value:""),a=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return{transitionDuration:g,transitionTimingFunction:I}}),d=e.computed(()=>t.mode==="vertical"),f=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),N=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,me=t.isMobile?0:I,fe=u.value?me:g;return t.sidebarVisible?fe: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),T=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":ae,"min-width":o.minWidth,height:o.headerHeight,"padding-left":y.value,style:l.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":se,"min-width":o.minWidth,top:o.headerHeight,height:o.tabHeight,"padding-left":k.value,style:l.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":f.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(N.value),onClick:B},null,4)):e.createCommentVNode("",!0),e.createVNode(Z,e.mergeProps(a.value,{"padding-top":T.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":le,"min-width":o.minWidth,height:o.footerHeight,"padding-left":k.value,style:c.value}),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):e.createCommentVNode("",!0)],4))}},C={state:e.reactive({theme:"dark"}),getters:{theme(){return C.state.theme}},mutations:{setTheme(o){C.state.theme=o,document.documentElement.setAttribute("class",o)}},actions:{toggleTheme(){C.state.theme=C.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",C.state.theme)}}},ce={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(o){const n=o;return C.mutations.setTheme(n.theme),(t,i)=>e.renderSlot(t.$slots,"default")}};p.DAccordion=ie,p.DBadge=W,p.DButton=G,p.DCollapse=M,p.DConfigProvider=ce,p.DGlobalStore=C,p.DIcon=w,p.DIconStore=S,p.DInput=K,p.DLayoutAdmin=de,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=m,p.emitter=x,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;height:auto}.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;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-f4157b53]{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-f4157b53]{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-f4157b53]{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;height:auto}.button.button-sm{font-size:.8em}.button.button-lg{font-size:1.3em}.button.button-text{padding:0;background:rgba(255,255,255,0)!important;border:0}.button.button-ext{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;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-f4157b53]{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-f4157b53]{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-f4157b53]{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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doph-js",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "Simple Vue3 component library",
5
5
  "author": "Error202",
6
6
  "license": "MIT",