doph-js 0.0.49 → 0.0.51

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,31 +1,35 @@
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";
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 N, 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: {
5
5
  component: [Object, String],
6
6
  size: [Number, String],
7
- color: String
7
+ color: String,
8
+ className: String
8
9
  },
9
10
  setup(t) {
10
11
  const n = t, e = U(), o = f(() => {
11
- const { color: r } = n;
12
- return r === void 0 ? null : r;
12
+ const { className: d } = n;
13
+ return d === void 0 ? "icon" : ["icon", d].join(" ");
13
14
  }), i = f(() => {
14
- const r = n.size ?? null;
15
- if (r !== void 0)
16
- return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
17
- }), a = f(() => Q(
15
+ const { color: d } = n;
16
+ return d === void 0 ? null : d;
17
+ }), a = f(() => {
18
+ const d = n.size ?? null;
19
+ if (d !== void 0)
20
+ return typeof d == "number" || /^\d+$/.test(d) ? `${d}px` : d;
21
+ }), l = f(() => Q(
18
22
  "i",
19
23
  {
20
- class: "icon",
24
+ class: o.value,
21
25
  style: {
22
- color: o.value,
23
- fontSize: i.value
26
+ color: i.value,
27
+ fontSize: a.value
24
28
  }
25
29
  },
26
30
  n.component ? Q(n.component) : e
27
31
  ));
28
- return (r, l) => (p(), h(v(a)));
32
+ return (d, s) => (p(), h(v(l)));
29
33
  }
30
34
  }, L = {
31
35
  state: {},
@@ -54,16 +58,16 @@ const R = {
54
58
  },
55
59
  emits: ["click"],
56
60
  setup(t, { emit: n }) {
57
- const e = t, o = U(), i = f(() => e.icon ? L.getters.getIcon(e.icon) : null), a = (r) => {
58
- n("click", r);
61
+ const e = t, o = U(), i = f(() => e.icon ? L.getters.getIcon(e.icon) : null), a = (l) => {
62
+ n("click", l);
59
63
  };
60
- return (r, l) => (p(), b(G, null, [
64
+ return (l, d) => (p(), b(G, null, [
61
65
  i.value ? D("", !0) : (p(), b("div", {
62
66
  key: 0,
63
67
  onClick: a,
64
68
  class: k(["button", e.class])
65
69
  }, [
66
- y(r.$slots, "default")
70
+ y(l.$slots, "default")
67
71
  ], 2)),
68
72
  i.value ? (p(), b("div", {
69
73
  key: 1,
@@ -76,7 +80,7 @@ const R = {
76
80
  color: "inherit"
77
81
  }, null, 8, ["component"])) : D("", !0),
78
82
  v(o).default ? (p(), b("div", ce, [
79
- y(r.$slots, "default")
83
+ y(l.$slots, "default")
80
84
  ])) : D("", !0)
81
85
  ], 2)) : D("", !0)
82
86
  ], 64));
@@ -105,10 +109,10 @@ const q = (t, n) => {
105
109
  n("update:modelValue", a);
106
110
  }
107
111
  });
108
- return (a, r) => (p(), b("div", fe, [
112
+ return (a, l) => (p(), b("div", fe, [
109
113
  E("div", pe, X(e.label), 1),
110
114
  oe(E("input", {
111
- "onUpdate:modelValue": r[0] || (r[0] = (l) => i.value = l),
115
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
112
116
  type: "text",
113
117
  class: k(o.value),
114
118
  placeholder: e.placeholder,
@@ -168,17 +172,17 @@ const q = (t, n) => {
168
172
  borderBottomWidth: s.style.borderBottomWidth,
169
173
  marginTop: s.style.marginTop,
170
174
  marginBottom: s.style.marginBottom
171
- }), o = (s, d) => {
175
+ }), o = (s, r) => {
172
176
  const { width: c } = getComputedStyle(s);
173
177
  s.style.width = c, s.style.position = "absolute", s.style.visibility = "hidden", s.style.height = "";
174
178
  let { height: m } = getComputedStyle(s);
175
- return s.style.width = d.width, s.style.position = d.position, s.style.visibility = d.visibility, s.style.height = I, s.style.overflow = "hidden", d.height && d.height !== I ? d.height : m;
176
- }, i = (s, d, c, m, $) => {
177
- const N = s.animate(m, $);
178
- s.style.height = d.height, N.onfinish = () => {
179
- s.style.overflow = d.overflow, c();
179
+ return s.style.width = r.width, s.style.position = r.position, s.style.visibility = r.visibility, s.style.height = I, s.style.overflow = "hidden", r.height && r.height !== I ? r.height : m;
180
+ }, i = (s, r, c, m, $) => {
181
+ const B = s.animate(m, $);
182
+ s.style.height = r.height, B.onfinish = () => {
183
+ s.style.overflow = r.overflow, c();
180
184
  };
181
- }, a = (s, d) => [
185
+ }, a = (s, r) => [
182
186
  {
183
187
  height: I,
184
188
  opacity: n.opacityClosed,
@@ -192,28 +196,28 @@ const q = (t, n) => {
192
196
  {
193
197
  height: s,
194
198
  opacity: n.opacityOpened,
195
- paddingTop: d.paddingTop,
196
- paddingBottom: d.paddingBottom,
197
- borderTopWidth: d.borderTopWidth,
198
- borderBottomWidth: d.borderBottomWidth,
199
- marginTop: d.marginTop,
200
- marginBottom: d.marginBottom
199
+ paddingTop: r.paddingTop,
200
+ paddingBottom: r.paddingBottom,
201
+ borderTopWidth: r.borderTopWidth,
202
+ borderBottomWidth: r.borderBottomWidth,
203
+ marginTop: r.marginTop,
204
+ marginBottom: r.marginBottom
201
205
  }
202
- ], r = (s, d) => {
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);
205
- }, l = (s, d) => {
206
+ ], l = (s, r) => {
207
+ const c = s, m = e(c), $ = o(c, m), B = a($, m), M = { duration: n.duration, easing: n.easingEnter };
208
+ i(c, m, r, B, M);
209
+ }, d = (s, r) => {
206
210
  const c = s, m = e(c), { height: $ } = getComputedStyle(c);
207
211
  c.style.height = $, c.style.overflow = "hidden";
208
- const N = a($, m).reverse(), M = { duration: n.duration, easing: n.easingLeave };
209
- i(c, m, d, N, M);
212
+ const B = a($, m).reverse(), M = { duration: n.duration, easing: n.easingLeave };
213
+ i(c, m, r, B, M);
210
214
  };
211
- return (s, d) => (p(), h(se, {
215
+ return (s, r) => (p(), h(se, {
212
216
  css: !1,
213
- onEnter: r,
214
- onLeave: l
217
+ onEnter: l,
218
+ onLeave: d
215
219
  }, {
216
- default: B(() => [
220
+ default: N(() => [
217
221
  y(s.$slots, "default")
218
222
  ]),
219
223
  _: 3
@@ -253,32 +257,32 @@ const q = (t, n) => {
253
257
  tag: { type: String, default: "div" }
254
258
  },
255
259
  setup(t) {
256
- const n = t, e = U(), o = H(!1), i = f(() => o && n.transferData), a = f(() => ({ position: "fixed", top: "-1000px" })), r = (l, s) => {
257
- const d = s.dataTransfer;
258
- if ([x.dragenter, x.dragover].includes(l) && n.dropEffect && (d.dropEffect = n.dropEffect), l === x.dragstart) {
259
- if (n.effectAllowed && (d.effectAllowed = n.effectAllowed), n.image || e.image) {
260
+ const n = t, e = U(), o = H(!1), i = f(() => o && n.transferData), a = f(() => ({ position: "fixed", top: "-1000px" })), l = (d, s) => {
261
+ const r = s.dataTransfer;
262
+ if ([x.dragenter, x.dragover].includes(d) && n.dropEffect && (r.dropEffect = n.dropEffect), d === x.dragstart) {
263
+ if (n.effectAllowed && (r.effectAllowed = n.effectAllowed), n.image || e.image) {
260
264
  let c;
261
- n.image ? (c = new Image(), c.src = n.image) : e.image && (c = e.image[0].elm), d.setDragImage && d.setDragImage(c, n.imageXOffset, n.imageYOffset);
265
+ n.image ? (c = new Image(), c.src = n.image) : e.image && (c = e.image[0].elm), r.setDragImage && r.setDragImage(c, n.imageXOffset, n.imageYOffset);
262
266
  }
263
267
  n.transferData !== void 0 && (Z.data = n.transferData, s.dataTransfer.setData("text", "")), o.value = !0;
264
268
  }
265
269
  };
266
- return (l, s) => (p(), h(z(t.tag), {
270
+ return (d, s) => (p(), h(z(t.tag), {
267
271
  draggable: n.draggable,
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))
272
+ onDrag: s[0] || (s[0] = (r) => l(v(x).drag, r)),
273
+ onDragstart: s[1] || (s[1] = F((r) => l(v(x).dragstart, r), ["stop"])),
274
+ onDragenter: s[2] || (s[2] = (r) => l(v(x).dragenter, r)),
275
+ onDragleave: s[3] || (s[3] = (r) => l(v(x).dragleave, r)),
276
+ onDragend: s[4] || (s[4] = (r) => l(v(x).dragend, r))
273
277
  }, {
274
- default: B(() => [
275
- y(l.$slots, "default", { transferData: i.value }),
278
+ default: N(() => [
279
+ y(d.$slots, "default", { transferData: i.value }),
276
280
  t.hideImageHtml ? (p(), b("div", {
277
281
  key: 0,
278
282
  style: W(a.value)
279
283
  }, [
280
- y(l.$slots, "image", { transferData: i.value })
281
- ], 4)) : y(l.$slots, "image", {
284
+ y(d.$slots, "image", { transferData: i.value })
285
+ ], 4)) : y(d.$slots, "image", {
282
286
  key: 1,
283
287
  transferData: i.value
284
288
  })
@@ -300,26 +304,26 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
300
304
  },
301
305
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
302
306
  setup(t, { emit: n }) {
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) => {
307
+ const e = t, o = H(null), i = H(!1), a = H(!1), l = H(!1), d = 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)), r = (S) => {
304
308
  n("nodeclick", { event: S, model: e.model });
305
309
  }, c = (S) => {
306
310
  n("nodeclick", 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) => {
311
+ }, m = f(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), $ = f(() => e.search ? !1 : e.model.draggable === !0), B = (S) => {
308
312
  let _ = Z.data;
309
313
  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))
310
- return i.value = !1, a.value = !1, r.value = !1, !1;
314
+ return i.value = !1, a.value = !1, l.value = !1, !1;
311
315
  if (!u.state.trees[e.treeId].transfer && _.id !== e.treeId)
312
316
  return !1;
313
317
  let T = "";
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;
318
+ a.value ? T = "before" : l.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, l.value = !1;
315
319
  }, M = (S) => {
316
320
  let _ = Z.data;
317
321
  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))
318
322
  return !1;
319
323
  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);
324
+ T > w && T <= w + g ? (i.value = !1, a.value = !0, l.value = !1) : T < w + C && T >= w + C - g ? (i.value = !1, a.value = !1, l.value = !0) : (i.value = !0, a.value = !1, l.value = !1);
321
325
  }, Y = () => {
322
- i.value = !1, a.value = !1, r.value = !1;
326
+ i.value = !1, a.value = !1, l.value = !1;
323
327
  };
324
328
  return (S, _) => {
325
329
  const T = ae("d-tree-item", !0);
@@ -328,30 +332,30 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
328
332
  class: "tree-item",
329
333
  "transfer-data": { id: e.treeId, model: e.model },
330
334
  draggable: $.value,
331
- onDrop: F(N, ["stop"]),
335
+ onDrop: F(B, ["stop"]),
332
336
  onDragenter: _[0] || (_[0] = F(() => {
333
337
  }, ["prevent"])),
334
338
  onDragover: F(M, ["prevent", "stop"]),
335
339
  onDragleave: F(Y, ["prevent"])
336
340
  }, {
337
- default: B(() => {
341
+ default: N(() => {
338
342
  var w, C;
339
343
  return [
340
344
  E("div", {
341
345
  ref_key: "node",
342
346
  ref: o,
343
347
  class: k(m.value),
344
- onClick: d
348
+ onClick: r
345
349
  }, [
346
350
  E("div", null, [
347
- e.model.icons && e.model.icons.pre && l.value && !e.search ? (p(), h(z(R), {
351
+ e.model.icons && e.model.icons.pre && d.value && !e.search ? (p(), h(z(R), {
348
352
  key: 0,
349
353
  component: v(L).getters.getIcon(e.model.icons.pre.component),
350
354
  size: 18,
351
355
  color: e.model.icons.pre.color ? e.model.icons.pre.color : "inherit",
352
356
  class: k(s.value ? "tree-open-pre" : "")
353
357
  }, null, 8, ["component", "color", "class"])) : D("", !0),
354
- e.model.icons && e.model.icons.pre && !l.value && !e.search ? (p(), h(z(R), {
358
+ e.model.icons && e.model.icons.pre && !d.value && !e.search ? (p(), h(z(R), {
355
359
  key: 1,
356
360
  component: v(L).getters.getIcon(e.model.icons.pre.component),
357
361
  size: 18,
@@ -361,8 +365,10 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
361
365
  e.model.icons && e.model.icons.icon ? (p(), h(z(R), {
362
366
  key: 2,
363
367
  component: v(L).getters.getIcon(e.model.icons.icon.component),
364
- color: e.model.icons.icon.color ? e.model.icons.icon.color : "inherit"
365
- }, null, 8, ["component", "color"])) : D("", !0),
368
+ color: e.model.icons.icon.color ? e.model.icons.icon.color : "inherit",
369
+ size: e.model.icons.icon.size ? e.model.icons.icon.size : null,
370
+ className: e.model.icons.icon.class ? e.model.icons.icon.class : null
371
+ }, null, 8, ["component", "color", "size", "className"])) : D("", !0),
366
372
  E("div", _e, [
367
373
  E("div", null, X(v(u).actions.renderTitle(e.treeId, e.model.title)), 1)
368
374
  ])
@@ -372,12 +378,12 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
372
378
  key: 0,
373
379
  class: k([(C = e.model.badge) == null ? void 0 : C.class, "badge-sm"])
374
380
  }, {
375
- default: B(() => [
381
+ default: N(() => [
376
382
  re(X(e.model.badge.value), 1)
377
383
  ]),
378
384
  _: 1
379
385
  }, 8, ["class"])) : D("", !0),
380
- e.model.icons && e.model.icons.post && l.value && !e.search ? (p(), h(z(R), {
386
+ e.model.icons && e.model.icons.post && d.value && !e.search ? (p(), h(z(R), {
381
387
  key: 1,
382
388
  component: v(L).getters.getIcon(e.model.icons.post.component),
383
389
  size: 20,
@@ -387,8 +393,8 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
387
393
  ])
388
394
  ], 2),
389
395
  j(ye, null, {
390
- default: B(() => [
391
- l.value && s.value && !e.search ? (p(), b("ul", Te, [
396
+ default: N(() => [
397
+ d.value && s.value && !e.search ? (p(), b("ul", Te, [
392
398
  (p(!0), b(G, null, ee(t.model.children, (g) => (p(), h(T, {
393
399
  class: "tree-item",
394
400
  key: g.id,
@@ -408,8 +414,8 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
408
414
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]);
409
415
  };
410
416
  }
411
- }, Se = /* @__PURE__ */ q($e, [["__scopeId", "data-v-f4157b53"]]);
412
- function Be(t) {
417
+ }, Se = /* @__PURE__ */ q($e, [["__scopeId", "data-v-00a53150"]]);
418
+ function Ne(t) {
413
419
  return t = t || /* @__PURE__ */ new Map(), {
414
420
  /**
415
421
  * A Map of event names to registered handler functions.
@@ -456,7 +462,7 @@ function Be(t) {
456
462
  }
457
463
  };
458
464
  }
459
- const V = Be(), u = {
465
+ const V = Ne(), u = {
460
466
  state: K({
461
467
  trees: {}
462
468
  }),
@@ -469,7 +475,7 @@ const V = Be(), u = {
469
475
  },
470
476
  // data - ноды, dataId - ID ноды родителя data
471
477
  getParentId(t, n, e, o = "id", i = "children", a = {}) {
472
- return e && t && (t.find((r) => r[o] === e ? (a.found = n, r) : u.getters.getParentId(r[i], r.id, e, o, i, a)), a.found) ? a.found : !1;
478
+ return e && t && (t.find((l) => l[o] === e ? (a.found = n, l) : u.getters.getParentId(l[i], l.id, e, o, i, a)), a.found) ? a.found : !1;
473
479
  }
474
480
  },
475
481
  mutations: {
@@ -518,8 +524,8 @@ const V = Be(), u = {
518
524
  },
519
525
  deepSearchByTitle(t, n, e = "title", o = "children", i = []) {
520
526
  if (n && t && (t.find((a) => {
521
- const r = new RegExp(n, "gi");
522
- a[e].toString().toLowerCase().match(r) !== null && i.push(a), u.actions.deepSearchByTitle(a[o], n, e, o, i);
527
+ const l = new RegExp(n, "gi");
528
+ a[e].toString().toLowerCase().match(l) !== null && i.push(a), u.actions.deepSearchByTitle(a[o], n, e, o, i);
523
529
  }), i)) {
524
530
  for (let a = 0; a < i.length; a++)
525
531
  ;
@@ -528,15 +534,15 @@ const V = Be(), u = {
528
534
  return i;
529
535
  },
530
536
  moveTreeNode(t, n, e, o, i, a) {
531
- const r = u.actions.deleteTreeNode(e, o);
532
- u.actions.insertTreeNode(e, i, r, a), V.emit(`move-${n}`, { fromTreeId: t, toTreeId: n, moved: r.id, target: i, position: a });
537
+ const l = u.actions.deleteTreeNode(e, o);
538
+ u.actions.insertTreeNode(e, i, l, a), V.emit(`move-${n}`, { fromTreeId: t, toTreeId: n, moved: l.id, target: i, position: a });
533
539
  },
534
540
  insertTreeNode(t, n, e, o) {
535
541
  if (t)
536
542
  for (let i = 0; i < t.length; i++) {
537
543
  if (t[i].id === n) {
538
- let r = i;
539
- return o === "after" ? (r++, t.splice(r, 0, e)) : o === "before" ? t.splice(r, 0, e) : o === "inside" && (Object.hasOwn(t[i], "children") || (t[i].children = [], t[i].opened = !0), t[i].children.splice(0, 0, e)), t[i];
544
+ let l = i;
545
+ return o === "after" ? (l++, t.splice(l, 0, e)) : o === "before" ? t.splice(l, 0, e) : o === "inside" && (Object.hasOwn(t[i], "children") || (t[i].children = [], t[i].opened = !0), t[i].children.splice(0, 0, e)), t[i];
540
546
  }
541
547
  const a = this.insertTreeNode(t[i].children, n, e, o);
542
548
  if (a)
@@ -556,7 +562,7 @@ const V = Be(), u = {
556
562
  }
557
563
  }
558
564
  }
559
- }, Ne = {
565
+ }, Be = {
560
566
  __name: "DDrop",
561
567
  props: {
562
568
  tag: { type: String, default: "div" }
@@ -564,19 +570,19 @@ const V = Be(), u = {
564
570
  emits: Object.keys(x),
565
571
  setup(t, { emit: n }) {
566
572
  let e = K({});
567
- const o = H("false"), i = H(null), a = /* @__PURE__ */ new Set(), r = f(() => o.value && e), l = (s, d) => {
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;
573
+ const o = H("false"), i = H(null), a = /* @__PURE__ */ new Set(), l = f(() => o.value && e), d = (s, r) => {
574
+ e = Z.data, n(s, r, e), s === x.dragenter && (a.size || r.target === i.value) && a.add(r.target), s === x.dragleave && a.delete(r.target), s === x.drop && a.clear(), o.value = !!a.size;
569
575
  };
570
- return (s, d) => (p(), h(z(t.tag), {
576
+ return (s, r) => (p(), h(z(t.tag), {
571
577
  ref_key: "el",
572
578
  ref: i,
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
+ onDragenter: r[0] || (r[0] = (c) => d(v(x).dragenter, c)),
580
+ onDragleave: r[1] || (r[1] = (c) => d(v(x).dragleave, c)),
581
+ onDragover: r[2] || (r[2] = F((c) => d(v(x).dragover, c), ["prevent"])),
582
+ onDrop: r[3] || (r[3] = F((c) => d(v(x).drop, c), ["prevent"]))
577
583
  }, {
578
- default: B(() => [
579
- y(s.$slots, "default", { transferData: r.value })
584
+ default: N(() => [
585
+ y(s.$slots, "default", { transferData: l.value })
580
586
  ]),
581
587
  _: 3
582
588
  }, 544));
@@ -603,34 +609,34 @@ const V = Be(), u = {
603
609
  setup(t, { emit: n }) {
604
610
  const e = t, o = de().uid;
605
611
  u.actions.initTreeStore(o, e.noSelect, e.multiSelect, e.expanded, e.transfer, e.renderTitle);
606
- const i = (l, s) => {
607
- console.log(l, s);
612
+ const i = (d, s) => {
613
+ console.log(d, s);
608
614
  };
609
- V.on(`select-${o}`, (l) => {
610
- n("select", l);
611
- }), V.on(`expand-${o}`, (l) => {
612
- n("expand", l);
613
- }), V.on(`collapse-${o}`, (l) => {
614
- n("collapse", l);
615
- }), V.on(`move-${o}`, (l) => {
616
- n("move", l);
615
+ V.on(`select-${o}`, (d) => {
616
+ n("select", d);
617
+ }), V.on(`expand-${o}`, (d) => {
618
+ n("expand", d);
619
+ }), V.on(`collapse-${o}`, (d) => {
620
+ n("collapse", d);
621
+ }), V.on(`move-${o}`, (d) => {
622
+ n("move", d);
617
623
  });
618
- const a = f(() => e.search ? u.actions.deepSearchByTitle(e.items, e.search) : e.items), r = (l = null) => {
619
- u.mutations.setItemSelect(o, l.model), u.actions.toggleItem(o, e.items, l.model.id);
624
+ const a = f(() => e.search ? u.actions.deepSearchByTitle(e.items, e.search) : e.items), l = (d = null) => {
625
+ u.mutations.setItemSelect(o, d.model), u.actions.toggleItem(o, e.items, d.model.id);
620
626
  };
621
- return (l, s) => (p(), h(Ne, {
627
+ return (d, s) => (p(), h(Be, {
622
628
  class: "tree",
623
629
  tag: "ul",
624
630
  onDrop: F(i, ["stop"])
625
631
  }, {
626
- default: B(() => [
627
- (p(!0), b(G, null, ee(a.value, (d) => (p(), h(Se, {
628
- key: d.id,
629
- model: d,
632
+ default: N(() => [
633
+ (p(!0), b(G, null, ee(a.value, (r) => (p(), h(Se, {
634
+ key: r.id,
635
+ model: r,
630
636
  treeId: v(o),
631
637
  items: e.items,
632
638
  search: e.search,
633
- onNodeclick: r
639
+ onNodeclick: l
634
640
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
635
641
  ]),
636
642
  _: 1
@@ -685,8 +691,8 @@ const Ie = {
685
691
  },
686
692
  setup(t) {
687
693
  const n = t, e = f(() => {
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;` : "";
689
- return `position:${c};z-index:${i};${m}height:${r}px;padding-left:${l}px;transition-duration:${s}ms;transition-timing-function:${d};`;
694
+ const { fixed: o, zIndex: i, minWidth: a, height: l, paddingLeft: d, transitionDuration: s, transitionTimingFunction: r } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
695
+ return `position:${c};z-index:${i};${m}height:${l}px;padding-left:${d}px;transition-duration:${s}ms;transition-timing-function:${r};`;
690
696
  });
691
697
  return (o, i) => (p(), b("header", {
692
698
  class: "d-layout-header",
@@ -734,8 +740,8 @@ const Ie = {
734
740
  },
735
741
  setup(t) {
736
742
  const n = t, e = f(() => {
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;` : "";
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};`;
743
+ const { fixed: o, top: i, zIndex: a, minWidth: l, height: d, paddingLeft: s, transitionDuration: r, transitionTimingFunction: c } = n, m = o ? "fixed" : "static", $ = n.useMinWidthLayout ? `min-width: ${l}px;` : "";
744
+ return `position:${m};top:${i}px;z-index:${a};${$}height:${d}px;padding-left:${s}px;transition-duration:${r}ms;transition-timing-function:${c};`;
739
745
  });
740
746
  return (o, i) => (p(), b("div", {
741
747
  class: "d-layout-tab",
@@ -779,8 +785,8 @@ const Ie = {
779
785
  },
780
786
  setup(t) {
781
787
  const n = t, e = f(() => {
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;` : "";
783
- return `position:${c};z-index:${i};${m}height:${r}px;padding-left:${l}px;transition-duration:${s}ms;transition-timing-function:${d};`;
788
+ const { fixed: o, zIndex: i, minWidth: a, height: l, paddingLeft: d, transitionDuration: s, transitionTimingFunction: r } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
789
+ return `position:${c};z-index:${i};${m}height:${l}px;padding-left:${d}px;transition-duration:${s}ms;transition-timing-function:${r};`;
784
790
  });
785
791
  return (o, i) => (p(), b("footer", {
786
792
  class: "d-layout-footer",
@@ -819,8 +825,8 @@ const Ie = {
819
825
  },
820
826
  setup(t) {
821
827
  const n = t, e = f(() => {
822
- const { zIndex: o, width: i, paddingTop: a, transitionDuration: r, transitionTimingFunction: l } = n;
823
- return `z-index:${o};width:${i}px;padding-top:${a}px;transition-duration:${r}ms;transition-timing-function:${l};`;
828
+ const { zIndex: o, width: i, paddingTop: a, transitionDuration: l, transitionTimingFunction: d } = n;
829
+ return `z-index:${o};width:${i}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${d};`;
824
830
  });
825
831
  return (o, i) => (p(), b("aside", {
826
832
  class: "d-layout-sidebar",
@@ -856,8 +862,8 @@ const Ie = {
856
862
  },
857
863
  setup(t) {
858
864
  const n = t, e = f(() => {
859
- const { paddingTop: o, paddingBottom: i, paddingLeft: a, transitionDuration: r, transitionTimingFunction: l } = n, s = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
860
- return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${a}px;${s}transition-duration:${r}ms;transition-timing-function:${l};`;
865
+ const { paddingTop: o, paddingBottom: i, paddingLeft: a, transitionDuration: l, transitionTimingFunction: d } = n, s = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
866
+ return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${a}px;${s}transition-duration:${l}ms;transition-timing-function:${d};`;
861
867
  });
862
868
  return (o, i) => (p(), b("main", {
863
869
  style: W(e.value),
@@ -878,20 +884,20 @@ function He(t) {
878
884
  const m = ((c = document.scrollingElement) === null || c === void 0 ? void 0 : c.scrollLeft) || 0;
879
885
  i(m);
880
886
  }
881
- function r() {
887
+ function l() {
882
888
  a();
883
889
  }
884
- function l() {
890
+ function d() {
885
891
  document.addEventListener("scroll", a);
886
892
  }
887
893
  function s() {
888
894
  o && document.removeEventListener("scroll", a);
889
895
  }
890
- function d() {
891
- r(), l(), o = !0;
896
+ function r() {
897
+ l(), d(), o = !0;
892
898
  }
893
899
  return le(t, (c) => {
894
- c ? d() : s();
900
+ c ? r() : s();
895
901
  }, { immediate: !0 }), ue(() => {
896
902
  s();
897
903
  }), e;
@@ -987,13 +993,13 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
987
993
  },
988
994
  emits: ["update:sidebar-collapse"],
989
995
  setup(t, { emit: n }) {
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(() => {
996
+ const e = t, o = f(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = f(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), a = He(i), l = f(() => e.fixedHeaderAndTab ? a.value : ""), d = f(() => e.fixedFooter ? a.value : ""), s = f(() => {
991
997
  const { transitionDuration: g, transitionTimingFunction: A } = e;
992
998
  return {
993
999
  transitionDuration: g,
994
1000
  transitionTimingFunction: A
995
1001
  };
996
- }), d = f(() => e.mode === "vertical"), c = f(() => e.isMobile || d.value ? 1003 : 1e3), m = f({
1002
+ }), r = f(() => e.mode === "vertical"), c = f(() => e.isMobile || r.value ? 1003 : 1e3), m = f({
997
1003
  get() {
998
1004
  return e.sidebarCollapse;
999
1005
  },
@@ -1004,14 +1010,14 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1004
1010
  function $() {
1005
1011
  m.value = !0;
1006
1012
  }
1007
- const N = f(() => e.isMobile && !m.value), M = f(() => {
1013
+ const B = f(() => e.isMobile && !m.value), M = f(() => {
1008
1014
  const { transitionDuration: g, transitionTimingFunction: A } = e;
1009
1015
  return `background-color:${e.maskBg};transition-duration:${g}ms;transition-timing-function:${A};`;
1010
1016
  }), Y = f(() => {
1011
1017
  const { sidebarWidth: g, sidebarCollapsedWidth: A } = e, te = e.isMobile ? 0 : A, ne = m.value ? te : g;
1012
1018
  return e.sidebarVisible ? ne : 0;
1013
- }), S = f(() => e.isMobile ? 0 : Y.value), _ = f(() => d.value ? S.value : 0), T = f(
1014
- () => !e.isMobile && !d.value && e.headerVisible ? e.headerHeight : 0
1019
+ }), S = f(() => e.isMobile ? 0 : Y.value), _ = f(() => r.value ? S.value : 0), T = f(
1020
+ () => !e.isMobile && !r.value && e.headerVisible ? e.headerHeight : 0
1015
1021
  ), w = f(() => {
1016
1022
  let g = 0;
1017
1023
  return e.fixedHeaderAndTab && (e.headerVisible && (g += e.headerHeight), e.tabVisible && (g += e.tabHeight)), g;
@@ -1026,9 +1032,9 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1026
1032
  "min-width": t.minWidth,
1027
1033
  height: t.headerHeight,
1028
1034
  "padding-left": _.value,
1029
- style: r.value
1035
+ style: l.value
1030
1036
  }), {
1031
- default: B(() => [
1037
+ default: N(() => [
1032
1038
  y(g.$slots, "header")
1033
1039
  ]),
1034
1040
  _: 3
@@ -1040,9 +1046,9 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1040
1046
  top: t.headerHeight,
1041
1047
  height: t.tabHeight,
1042
1048
  "padding-left": S.value,
1043
- style: r.value
1049
+ style: l.value
1044
1050
  }), {
1045
- default: B(() => [
1051
+ default: N(() => [
1046
1052
  y(g.$slots, "tab")
1047
1053
  ]),
1048
1054
  _: 3
@@ -1052,12 +1058,12 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1052
1058
  width: Y.value,
1053
1059
  "padding-top": T.value
1054
1060
  }), {
1055
- default: B(() => [
1061
+ default: N(() => [
1056
1062
  y(g.$slots, "sidebar")
1057
1063
  ]),
1058
1064
  _: 3
1059
1065
  }, 16, ["z-index", "width", "padding-top"])) : D("", !0),
1060
- N.value ? (p(), b("div", {
1066
+ B.value ? (p(), b("div", {
1061
1067
  key: 3,
1062
1068
  class: "d-layout-sidebar-mask",
1063
1069
  style: W(M.value),
@@ -1069,7 +1075,7 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1069
1075
  "padding-left": S.value,
1070
1076
  "overflow-hidden": t.addMainOverflowHidden
1071
1077
  }), {
1072
- default: B(() => [
1078
+ default: N(() => [
1073
1079
  y(g.$slots, "default")
1074
1080
  ]),
1075
1081
  _: 3
@@ -1080,9 +1086,9 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1080
1086
  "min-width": t.minWidth,
1081
1087
  height: t.footerHeight,
1082
1088
  "padding-left": S.value,
1083
- style: l.value
1089
+ style: d.value
1084
1090
  }), {
1085
- default: B(() => [
1091
+ default: N(() => [
1086
1092
  y(g.$slots, "footer")
1087
1093
  ]),
1088
1094
  _: 3
@@ -1142,5 +1148,5 @@ export {
1142
1148
  Se as DTreeItem,
1143
1149
  u as DTreeStore,
1144
1150
  V as emitter,
1145
- Be as eventsBus
1151
+ Ne as eventsBus
1146
1152
  };
@@ -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.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"})});
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,className:String},setup(o){const n=o,t=e.useSlots(),i=e.computed(()=>{const{className:d}=n;return d===void 0?"icon":["icon",d].join(" ")}),r=e.computed(()=>{const{color:d}=n;return d===void 0?null:d}),s=e.computed(()=>{const d=n.size??null;if(d!==void 0)return typeof d=="number"||/^\d+$/.test(d)?`${d}px`:d}),c=e.computed(()=>e.h("i",{class:i.value,style:{color:r.value,fontSize:s.value}},n.component?e.h(n.component):t));return(d,a)=>(e.openBlock(),e.createBlock(e.unref(c)))}},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=c=>{n("click",c)};return(c,d)=>(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(c.$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(c.$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,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,e.toDisplayString(t.label),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>r.value=d),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,l)=>{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=l.width,a.style.position=l.position,a.style.visibility=l.visibility,a.style.height=D,a.style.overflow="hidden",l.height&&l.height!==D?l.height:u},r=(a,l,f,u,B)=>{const _=a.animate(u,B);a.style.height=l.height,_.onfinish=()=>{a.style.overflow=l.overflow,f()}},s=(a,l)=>[{height:D,opacity:n.opacityClosed,paddingTop:D,paddingBottom:D,borderTopWidth:D,borderBottomWidth:D,marginTop:D,marginBottom:D},{height:a,opacity:n.opacityOpened,paddingTop:l.paddingTop,paddingBottom:l.paddingBottom,borderTopWidth:l.borderTopWidth,borderBottomWidth:l.borderBottomWidth,marginTop:l.marginTop,marginBottom:l.marginBottom}],c=(a,l)=>{const f=a,u=t(f),B=i(f,u),_=s(B,u),C={duration:n.duration,easing:n.easingEnter};r(f,u,l,_,C)},d=(a,l)=>{const f=a,u=t(f),{height:B}=getComputedStyle(f);f.style.height=B,f.style.overflow="hidden";const _=s(B,u).reverse(),C={duration:n.duration,easing:n.easingLeave};r(f,u,l,_,C)};return(a,l)=>(e.openBlock(),e.createBlock(e.Transition,{css:!1,onEnter:c,onLeave:d},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3}))}},z={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"})),c=(d,a)=>{const l=a.dataTransfer;if([h.dragenter,h.dragover].includes(d)&&n.dropEffect&&(l.dropEffect=n.dropEffect),d===h.dragstart){if(n.effectAllowed&&(l.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),l.setDragImage&&l.setDragImage(f,n.imageXOffset,n.imageYOffset)}n.transferData!==void 0&&(z.data=n.transferData,a.dataTransfer.setData("text","")),i.value=!0}};return(d,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{draggable:n.draggable,onDrag:a[0]||(a[0]=l=>c(e.unref(h).drag,l)),onDragstart:a[1]||(a[1]=e.withModifiers(l=>c(e.unref(h).dragstart,l),["stop"])),onDragenter:a[2]||(a[2]=l=>c(e.unref(h).dragenter,l)),onDragleave:a[3]||(a[3]=l=>c(e.unref(h).dragleave,l)),onDragend:a[4]||(a[4]=l=>c(e.unref(h).dragend,l))},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{transferData:r.value}),o.hideImageHtml?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(s.value)},[e.renderSlot(d.$slots,"image",{transferData:r.value})],4)):e.renderSlot(d.$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),c=e.ref(!1),d=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)),l=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 ":"")+(c.value?"node-bottom ":"")),B=e.computed(()=>t.search?!1:t.model.draggable===!0),_=k=>{let y=z.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,c.value=!1,!1;if(!m.state.trees[t.treeId].transfer&&y.id!==t.treeId)return!1;let b="";s.value?b="before":c.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,c.value=!1},C=k=>{let y=z.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,c.value=!1):b<T+$&&b>=T+$-g?(r.value=!1,s.value=!1,c.value=!0):(r.value=!0,s.value=!1,c.value=!1)},L=()=>{r.value=!1,s.value=!1,c.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(L,["prevent"])},{default:e.withCtx(()=>{var T,$;return[e.createElementVNode("div",{ref_key:"node",ref:i,class:e.normalizeClass(u.value),onClick:l},[e.createElementVNode("div",null,[t.model.icons&&t.model.icons.pre&&d.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&&!d.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",size:t.model.icons.icon.size?t.model.icons.icon.size:null,className:t.model.icons.icon.class?t.model.icons.icon.class:null},null,8,["component","color","size","className"])):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&&d.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(()=>[d.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-00a53150"]]);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(c=>c[i]===t?(s.found=n,c):m.getters.getParentId(c[r],c.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 c=new RegExp(n,"gi");s[t].toString().toLowerCase().match(c)!==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 c=m.actions.deleteTreeNode(t,i);m.actions.insertTreeNode(t,r,c,s),x.emit(`move-${n}`,{fromTreeId:o,toTreeId:n,moved:c.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 c=r;return i==="after"?(c++,o.splice(c,0,t)):i==="before"?o.splice(c,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,c=e.computed(()=>i.value&&t),d=(a,l)=>{t=z.data,n(a,l,t),a===h.dragenter&&(s.size||l.target===r.value)&&s.add(l.target),a===h.dragleave&&s.delete(l.target),a===h.drop&&s.clear(),i.value=!!s.size};return(a,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{ref_key:"el",ref:r,onDragenter:l[0]||(l[0]=f=>d(e.unref(h).dragenter,f)),onDragleave:l[1]||(l[1]=f=>d(e.unref(h).dragleave,f)),onDragover:l[2]||(l[2]=e.withModifiers(f=>d(e.unref(h).dragover,f),["prevent"])),onDrop:l[3]||(l[3]=e.withModifiers(f=>d(e.unref(h).drop,f),["prevent"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{transferData:c.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=(d,a)=>{console.log(d,a)};x.on(`select-${i}`,d=>{n("select",d)}),x.on(`expand-${i}`,d=>{n("expand",d)}),x.on(`collapse-${i}`,d=>{n("collapse",d)}),x.on(`move-${i}`,d=>{n("move",d)});const s=e.computed(()=>t.search?m.actions.deepSearchByTitle(t.items,t.search):t.items),c=(d=null)=>{m.mutations.setItemSelect(i,d.model),m.actions.toggleItem(i,t.items,d.model.id)};return(d,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,l=>(e.openBlock(),e.createBlock(F,{key:l.id,model:l,treeId:e.unref(i),items:t.items,search:t.search,onNodeclick:c},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:c,paddingLeft:d,transitionDuration:a,transitionTimingFunction:l}=n,f=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${f};z-index:${r};${u}height:${c}px;padding-left:${d}px;transition-duration:${a}ms;transition-timing-function:${l};`});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:c,height:d,paddingLeft:a,transitionDuration:l,transitionTimingFunction:f}=n,u=i?"fixed":"static",B=n.useMinWidthLayout?`min-width: ${c}px;`:"";return`position:${u};top:${r}px;z-index:${s};${B}height:${d}px;padding-left:${a}px;transition-duration:${l}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:c,paddingLeft:d,transitionDuration:a,transitionTimingFunction:l}=n,f=i?"fixed":"static",u=n.useMinWidthLayout?`min-width:${s}px;`:"";return`position:${f};z-index:${r};${u}height:${c}px;padding-left:${d}px;transition-duration:${a}ms;transition-timing-function:${l};`});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:c,transitionTimingFunction:d}=n;return`z-index:${i};width:${r}px;padding-top:${s}px;transition-duration:${c}ms;transition-timing-function:${d};`});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:c,transitionTimingFunction:d}=n,a=`overflow:${n.overflowHidden?"hidden":"visible"};`;return`padding-top:${i}px;padding-bottom:${r}px;padding-left:${s}px;${a}transition-duration:${c}ms;transition-timing-function:${d};`});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 c(){s()}function d(){document.addEventListener("scroll",s)}function a(){i&&document.removeEventListener("scroll",s)}function l(){c(),d(),i=!0}return e.watch(o,f=>{f?l():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),c=e.computed(()=>t.fixedHeaderAndTab?s.value:""),d=e.computed(()=>t.fixedFooter?s.value:""),a=e.computed(()=>{const{transitionDuration:g,transitionTimingFunction:I}=t;return{transitionDuration:g,transitionTimingFunction:I}}),l=e.computed(()=>t.mode==="vertical"),f=e.computed(()=>t.isMobile||l.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};`}),L=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:L.value),y=e.computed(()=>l.value?k.value:0),b=e.computed(()=>!t.isMobile&&!l.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:c.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:c.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:L.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:d.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=z,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-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}
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-00a53150]{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-00a53150]{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-00a53150]{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.49",
3
+ "version": "0.0.51",
4
4
  "description": "Simple Vue3 component library",
5
5
  "author": "Error202",
6
6
  "license": "MIT",