doph-js 0.2.98 → 0.2.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dophJs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSlots as Ce, computed as h, h as st, openBlock as d, createBlock as b, unref as E, ref as T, createElementBlock as m, Fragment as oe, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as z, resolveDynamicComponent as U, createStaticVNode as ut, onMounted as he, toDisplayString as O, withDirectives as ne, createElementVNode as _, vModelDynamic as De, withCtx as B, createTextVNode as K, Transition as Ne, withModifiers as j, resolveComponent as Ct, resolveDirective as Re, normalizeProps as pt, guardReactiveProps as ft, createVNode as J, renderList as me, pushScopeId as Lt, popScopeId as It, reactive as Oe, Teleport as mt, nextTick as ht, getCurrentInstance as gt, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as Ae, shallowRef as Bt, defineComponent as Mt, TransitionGroup as yt, vModelCheckbox as Nt, vModelSelect as Rt, toRef as Ot, KeepAlive as At, toRefs as Ht, vModelText as Vt } from "vue";
1
+ import { useSlots as Ce, computed as h, h as Me, openBlock as d, createBlock as x, unref as I, ref as T, createElementBlock as m, Fragment as oe, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as z, resolveDynamicComponent as U, createStaticVNode as ut, onMounted as he, toDisplayString as O, withDirectives as ne, createElementVNode as _, vModelDynamic as De, withCtx as B, createTextVNode as K, Transition as Re, withModifiers as j, resolveComponent as Ct, resolveDirective as Oe, normalizeProps as pt, guardReactiveProps as ft, createVNode as J, renderList as me, pushScopeId as Lt, popScopeId as It, reactive as Ae, Teleport as mt, nextTick as ht, getCurrentInstance as gt, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as He, shallowRef as Bt, defineComponent as Mt, TransitionGroup as yt, vModelCheckbox as Nt, vModelSelect as Rt, toRef as Ot, KeepAlive as At, toRefs as Ht, vModelText as Vt } from "vue";
2
2
  const re = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -18,7 +18,7 @@ const re = {
18
18
  const r = e.size ?? null;
19
19
  if (r !== void 0)
20
20
  return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
21
- }), l = h(() => st(
21
+ }), l = h(() => Me(
22
22
  "i",
23
23
  {
24
24
  class: n.value,
@@ -27,9 +27,9 @@ const re = {
27
27
  fontSize: a.value
28
28
  }
29
29
  },
30
- e.component ? st(e.component) : o
30
+ e.component ? Me(e.component) : o
31
31
  ));
32
- return (r, i) => (d(), b(E(l)));
32
+ return (r, i) => (d(), x(I(l)));
33
33
  }
34
34
  }, te = {
35
35
  state: {},
@@ -124,7 +124,7 @@ const se = (t, e) => {
124
124
  o("click", $);
125
125
  }, i = ($) => {
126
126
  o("contextmenu", $);
127
- }, c = h(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = h(() => n.disabled ? "disabled" : ""), g = ($) => !!s[$], x = h(() => g("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = h(() => {
127
+ }, c = h(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = h(() => n.disabled ? "disabled" : ""), g = ($) => !!s[$], b = h(() => g("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), C = h(() => {
128
128
  const $ = n.outline ? "-outline" : "";
129
129
  return n.type === "primary" ? `button${$}-blue` : n.type === "success" ? `button${$}-green` : n.type === "error" ? `button${$}-red` : n.type === "warning" ? `button${$}-orange` : n.type === "wait" ? `button${$}-violet` : n.outline ? `button${$}` : "";
130
130
  });
@@ -148,15 +148,15 @@ const se = (t, e) => {
148
148
  ref: a,
149
149
  onClick: r,
150
150
  onContextmenu: i,
151
- class: D(["button button-ext", [n.class, c.value, x.value, C.value, u.value].join(" ")]),
151
+ class: D(["button button-ext", [n.class, c.value, b.value, C.value, u.value].join(" ")]),
152
152
  style: z(n.style)
153
153
  }, [
154
- n.icon ? (d(), b(U(re), {
154
+ n.icon ? (d(), x(U(re), {
155
155
  key: 0,
156
156
  component: l.value,
157
157
  color: "inherit"
158
158
  }, null, 8, ["component"])) : k("", !0),
159
- E(s).default ? (d(), m("div", jt, [
159
+ I(s).default ? (d(), m("div", jt, [
160
160
  L($.$slots, "default", {}, void 0, !0)
161
161
  ])) : k("", !0),
162
162
  n.loading ? (d(), m("svg", Xt, Ut)) : k("", !0)
@@ -242,7 +242,7 @@ const Gt = {
242
242
  [De, l.value]
243
243
  ])
244
244
  ]),
245
- n.post.label ? (d(), b(le, {
245
+ n.post.label ? (d(), x(le, {
246
246
  key: 0,
247
247
  scale: n.scale,
248
248
  class: D(["d-input-post-button", n.post.class]),
@@ -253,7 +253,7 @@ const Gt = {
253
253
  K(O(n.post.label), 1)
254
254
  ]),
255
255
  _: 1
256
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(le, {
256
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(le, {
257
257
  key: 1,
258
258
  scale: n.scale,
259
259
  class: D(["d-input-post-button", n.post.class]),
@@ -264,7 +264,7 @@ const Gt = {
264
264
  ])) : !n.post && n.pre && n.pre.click ? (d(), m("div", no, [
265
265
  n.label ? (d(), m("div", so, O(n.label), 1)) : k("", !0),
266
266
  _("div", ao, [
267
- n.pre.label ? (d(), b(le, {
267
+ n.pre.label ? (d(), x(le, {
268
268
  key: 0,
269
269
  scale: n.scale,
270
270
  class: D(["d-input-pre-button", n.pre.class]),
@@ -275,7 +275,7 @@ const Gt = {
275
275
  K(O(n.pre.label), 1)
276
276
  ]),
277
277
  _: 1
278
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), b(le, {
278
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(le, {
279
279
  key: 1,
280
280
  scale: n.scale,
281
281
  class: D(["d-input-pre-button", n.pre.class]),
@@ -362,8 +362,8 @@ const Gt = {
362
362
  i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
363
363
  let { height: g } = getComputedStyle(i);
364
364
  return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = ie, i.style.overflow = "hidden", c.height && c.height !== ie ? c.height : g;
365
- }, s = (i, c, u, g, x) => {
366
- const C = i.animate(g, x);
365
+ }, s = (i, c, u, g, b) => {
366
+ const C = i.animate(g, b);
367
367
  i.style.height = c.height, C.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
@@ -389,15 +389,15 @@ const Gt = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
391
  ], l = (i, c) => {
392
- const u = i, g = o(u), x = n(u, g), C = a(x, g), R = { duration: e.duration, easing: e.easingEnter };
392
+ const u = i, g = o(u), b = n(u, g), C = a(b, g), R = { duration: e.duration, easing: e.easingEnter };
393
393
  s(u, g, c, C, R);
394
394
  }, r = (i, c) => {
395
- const u = i, g = o(u), { height: x } = getComputedStyle(u);
396
- u.style.height = x, u.style.overflow = "hidden";
397
- const C = a(x, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
395
+ const u = i, g = o(u), { height: b } = getComputedStyle(u);
396
+ u.style.height = b, u.style.overflow = "hidden";
397
+ const C = a(b, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
398
398
  s(u, g, c, C, R);
399
399
  };
400
- return (i, c) => (d(), b(Ne, {
400
+ return (i, c) => (d(), x(Re, {
401
401
  css: !1,
402
402
  onEnter: l,
403
403
  onLeave: r
@@ -410,7 +410,7 @@ const Gt = {
410
410
  }
411
411
  }, Te = {
412
412
  data: void 0
413
- }, He = (t) => t.reduce((e, o) => (e[o] = o) && e, {}), X = He([
413
+ }, Ve = (t) => t.reduce((e, o) => (e[o] = o) && e, {}), X = Ve([
414
414
  "drag",
415
415
  "dragend",
416
416
  "dragenter",
@@ -418,7 +418,7 @@ const Gt = {
418
418
  "dragstart",
419
419
  "dragover",
420
420
  "drop"
421
- ]), po = He(["copy", "move", "link", "none"]), fo = He([
421
+ ]), po = Ve(["copy", "move", "link", "none"]), fo = Ve([
422
422
  "none",
423
423
  "copy",
424
424
  "copyLink",
@@ -452,13 +452,13 @@ const Gt = {
452
452
  e.transferData !== void 0 && (Te.data = e.transferData, i.dataTransfer.setData("text", "")), n.value = !0;
453
453
  }
454
454
  };
455
- return (r, i) => (d(), b(U(t.tag), {
455
+ return (r, i) => (d(), x(U(t.tag), {
456
456
  draggable: e.draggable,
457
- onDrag: i[0] || (i[0] = (c) => l(E(X).drag, c)),
458
- onDragstart: i[1] || (i[1] = j((c) => l(E(X).dragstart, c), ["stop"])),
459
- onDragenter: i[2] || (i[2] = (c) => l(E(X).dragenter, c)),
460
- onDragleave: i[3] || (i[3] = (c) => l(E(X).dragleave, c)),
461
- onDragend: i[4] || (i[4] = (c) => l(E(X).dragend, c))
457
+ onDrag: i[0] || (i[0] = (c) => l(I(X).drag, c)),
458
+ onDragstart: i[1] || (i[1] = j((c) => l(I(X).dragstart, c), ["stop"])),
459
+ onDragenter: i[2] || (i[2] = (c) => l(I(X).dragenter, c)),
460
+ onDragleave: i[3] || (i[3] = (c) => l(I(X).dragleave, c)),
461
+ onDragend: i[4] || (i[4] = (c) => l(I(X).dragend, c))
462
462
  }, {
463
463
  default: B(() => [
464
464
  L(r.$slots, "default", { transferData: s.value }),
@@ -504,7 +504,7 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
504
504
  e("nodefoldericonclick", { event: N, model: o.model });
505
505
  }, g = (N) => {
506
506
  e("nodefoldericonclick", N);
507
- }, x = (N) => {
507
+ }, b = (N) => {
508
508
  e("nodeclick", N);
509
509
  }, C = (N) => {
510
510
  e("nodedoubleclick", N);
@@ -528,7 +528,7 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
528
528
  return !1;
529
529
  let V = "";
530
530
  a.value ? V = "before" : l.value ? V = "after" : V = "inside", e("nodedrop", { e: N, model: o.model, place: V }), v.actions.moveTreeNode(w.id, o.treeId, o.items, w.model.id, o.model.id, V, (P = w.model) == null ? void 0 : P.transfer), s.value = !1, a.value = !1, l.value = !1;
531
- }, I = (N) => {
531
+ }, E = (N) => {
532
532
  e("nodedragover", { e: N, model: o.model });
533
533
  let w = Te.data;
534
534
  if (!o.model.droppable)
@@ -549,10 +549,10 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
549
549
  return null;
550
550
  });
551
551
  return (N, w) => {
552
- const V = Ct("d-tree-item", !0), P = Re("touch");
553
- return E(v).actions.beforeItem(o.treeId, t.model) ? S.value && !W.value ? (d(), m("li", go, yo)) : S.value && W.value ? (d(), m("li", _o, [
554
- _("div", bo, O(E(v).actions.renderTitle(o.treeId, W.value)), 1)
555
- ])) : o.model.component ? (d(), b(at, {
552
+ const V = Ct("d-tree-item", !0), P = Oe("touch");
553
+ return I(v).actions.beforeItem(o.treeId, t.model) ? S.value && !W.value ? (d(), m("li", go, yo)) : S.value && W.value ? (d(), m("li", _o, [
554
+ _("div", bo, O(I(v).actions.renderTitle(o.treeId, W.value)), 1)
555
+ ])) : o.model.component ? (d(), x(at, {
556
556
  key: 3,
557
557
  tag: "li",
558
558
  class: "tree-item-component",
@@ -561,7 +561,7 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
561
561
  onDrop: j(M, ["stop"]),
562
562
  onDragenter: w[1] || (w[1] = j(() => {
563
563
  }, ["prevent"])),
564
- onDragover: j(I, ["prevent", "stop"]),
564
+ onDragover: j(E, ["prevent", "stop"]),
565
565
  onDragleave: j(F, ["prevent"])
566
566
  }, {
567
567
  default: B(() => [
@@ -571,13 +571,13 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
571
571
  class: D(H.value),
572
572
  onContextmenu: w[0] || (w[0] = j((f) => e("nodecontext", { e: f, model: o.model }), ["prevent"]))
573
573
  }, [
574
- (d(), b(U(E(fe).getters.getComponent(o.model.component).component), pt(ft(E(fe).getters.getComponent(o.model.component).props)), null, 16))
574
+ (d(), x(U(I(fe).getters.getComponent(o.model.component).component), pt(ft(I(fe).getters.getComponent(o.model.component).props)), null, 16))
575
575
  ], 34)), [
576
576
  [P, c, "press"]
577
577
  ])
578
578
  ]),
579
579
  _: 1
580
- }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), b(at, {
580
+ }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), x(at, {
581
581
  key: 4,
582
582
  tag: "li",
583
583
  class: "tree-item",
@@ -586,7 +586,7 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
586
586
  onDrop: j(M, ["stop"]),
587
587
  onDragenter: w[4] || (w[4] = j(() => {
588
588
  }, ["prevent"])),
589
- onDragover: j(I, ["prevent", "stop"]),
589
+ onDragover: j(E, ["prevent", "stop"]),
590
590
  onDragleave: j(F, ["prevent"])
591
591
  }, {
592
592
  default: B(() => {
@@ -601,35 +601,35 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
601
601
  onContextmenu: w[3] || (w[3] = j((y) => e("nodecontext", { e: y, model: o.model }), ["prevent"]))
602
602
  }, [
603
603
  _("div", null, [
604
- o.model.icons && o.model.icons.pre && r.value && !o.search && !S.value ? (d(), b(U(re), {
604
+ o.model.icons && o.model.icons.pre && r.value && !o.search && !S.value ? (d(), x(U(re), {
605
605
  key: 0,
606
- component: E(te).getters.getIcon(o.model.icons.pre.component),
606
+ component: I(te).getters.getIcon(o.model.icons.pre.component),
607
607
  size: 18,
608
608
  color: o.model.icons.pre.color ? o.model.icons.pre.color : "inherit",
609
609
  class: D(i.value ? "tree-open-pre" : ""),
610
610
  onPointerdownCapture: u
611
611
  }, null, 40, ["component", "color", "class"])) : k("", !0),
612
- o.model.icons && o.model.icons.pre && !r.value && !o.search && !S.value ? (d(), b(U(re), {
612
+ o.model.icons && o.model.icons.pre && !r.value && !o.search && !S.value ? (d(), x(U(re), {
613
613
  key: 1,
614
- component: E(te).getters.getIcon(o.model.icons.pre.component),
614
+ component: I(te).getters.getIcon(o.model.icons.pre.component),
615
615
  size: 18,
616
616
  color: "rgba(0,0,0,0)",
617
617
  class: D(i.value ? "tree-open-pre" : "")
618
618
  }, null, 8, ["component", "class"])) : k("", !0),
619
- o.model.icons && o.model.icons.icon && !S.value ? (d(), b(U(re), {
619
+ o.model.icons && o.model.icons.icon && !S.value ? (d(), x(U(re), {
620
620
  key: 2,
621
- component: E(te).getters.getIcon(o.model.icons.icon.component),
621
+ component: I(te).getters.getIcon(o.model.icons.icon.component),
622
622
  color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
623
623
  size: o.model.icons.icon.size ? o.model.icons.icon.size : null,
624
624
  className: o.model.icons.icon.class ? o.model.icons.icon.class : null
625
625
  }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
626
626
  _("div", xo, [
627
627
  S.value ? (d(), m("div", ko)) : k("", !0),
628
- S.value ? k("", !0) : (d(), m("div", $o, O(E(v).actions.renderTitle(o.treeId, o.model.title)), 1))
628
+ S.value ? k("", !0) : (d(), m("div", $o, O(I(v).actions.renderTitle(o.treeId, o.model.title)), 1))
629
629
  ])
630
630
  ]),
631
631
  _("div", wo, [
632
- ((f = o.model.badge) == null ? void 0 : f.value) !== void 0 && !S.value ? (d(), b(U(co), {
632
+ ((f = o.model.badge) == null ? void 0 : f.value) !== void 0 && !S.value ? (d(), x(U(co), {
633
633
  key: 0,
634
634
  class: D([(p = o.model.badge) == null ? void 0 : p.class, "badge-sm"])
635
635
  }, {
@@ -638,9 +638,9 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
638
638
  ]),
639
639
  _: 1
640
640
  }, 8, ["class"])) : k("", !0),
641
- o.model.icons && o.model.icons.post && r.value && !o.search && !S.value ? (d(), b(U(re), {
641
+ o.model.icons && o.model.icons.post && r.value && !o.search && !S.value ? (d(), x(U(re), {
642
642
  key: 1,
643
- component: E(te).getters.getIcon(o.model.icons.post.component),
643
+ component: I(te).getters.getIcon(o.model.icons.post.component),
644
644
  size: 20,
645
645
  color: o.model.icons.post.color ? o.model.icons.post.color : "inherit",
646
646
  class: D(i.value ? "tree-open-post" : ""),
@@ -651,13 +651,13 @@ const mo = (t) => (Lt("data-v-9da49c73"), t = t(), It(), t), ho = {
651
651
  J(uo, null, {
652
652
  default: B(() => [
653
653
  r.value && i.value && !o.search ? (d(), m("ul", So, [
654
- (d(!0), m(oe, null, me(t.model.children, (y) => (d(), b(V, {
654
+ (d(!0), m(oe, null, me(t.model.children, (y) => (d(), x(V, {
655
655
  key: y.id,
656
656
  model: y,
657
657
  treeId: o.treeId,
658
658
  items: o.items,
659
659
  search: o.search,
660
- onNodeclick: x,
660
+ onNodeclick: b,
661
661
  onNodedoubleclick: C,
662
662
  onNodedrop: R,
663
663
  onNodecontext: $,
@@ -722,7 +722,7 @@ function Co(t) {
722
722
  };
723
723
  }
724
724
  const q = Co(), v = {
725
- state: Oe({
725
+ state: Ae({
726
726
  trees: {}
727
727
  }),
728
728
  getters: {
@@ -833,19 +833,19 @@ const q = Co(), v = {
833
833
  },
834
834
  emits: Object.keys(X),
835
835
  setup(t, { expose: e, emit: o }) {
836
- let n = Oe({});
836
+ let n = Ae({});
837
837
  const s = T("false"), a = T(null), l = /* @__PURE__ */ new Set(), r = h(() => s.value && n), i = (u, g) => {
838
838
  n = Te.data, o(u, g, n), u === X.dragenter && (l.size || g.target === a.value) && l.add(g.target), u === X.dragleave && l.delete(g.target), u === X.drop && l.clear(), s.value = !!l.size;
839
839
  };
840
840
  return e({
841
841
  elementSize: () => _t(a)
842
- }), (u, g) => (d(), b(U(t.tag), {
842
+ }), (u, g) => (d(), x(U(t.tag), {
843
843
  ref_key: "el",
844
844
  ref: a,
845
- onDragenter: g[0] || (g[0] = (x) => i(E(X).dragenter, x)),
846
- onDragleave: g[1] || (g[1] = (x) => i(E(X).dragleave, x)),
847
- onDragover: g[2] || (g[2] = j((x) => i(E(X).dragover, x), ["prevent"])),
848
- onDrop: g[3] || (g[3] = j((x) => i(E(X).drop, x), ["prevent"]))
845
+ onDragenter: g[0] || (g[0] = (b) => i(I(X).dragenter, b)),
846
+ onDragleave: g[1] || (g[1] = (b) => i(I(X).dragleave, b)),
847
+ onDragover: g[2] || (g[2] = j((b) => i(I(X).dragover, b), ["prevent"])),
848
+ onDrop: g[3] || (g[3] = j((b) => i(I(X).drop, b), ["prevent"]))
849
849
  }, {
850
850
  default: B(() => [
851
851
  L(u.$slots, "default", { transferData: r.value })
@@ -877,8 +877,8 @@ const q = Co(), v = {
877
877
  const l = () => {
878
878
  q.emit("menu-show-request"), a.value = !0;
879
879
  }, r = () => {
880
- var x;
881
- (x = s.value) == null || x.collapseAll(), a.value = !1;
880
+ var b;
881
+ (b = s.value) == null || b.collapseAll(), a.value = !1;
882
882
  }, i = () => a.value;
883
883
  q.on("menu-show-request", () => {
884
884
  r();
@@ -889,13 +889,13 @@ const q = Co(), v = {
889
889
  isShowed: i,
890
890
  itemsCount: () => s.value.itemsCount()
891
891
  });
892
- const g = (x) => {
893
- o("select", x), x.model.children || r();
892
+ const g = (b) => {
893
+ o("select", b), b.model.children || r();
894
894
  };
895
- return (x, C) => {
896
- const R = Re("click-outside");
897
- return d(), b(mt, { to: "body" }, [
898
- E(a) ? ne((d(), b(xt, {
895
+ return (b, C) => {
896
+ const R = Oe("click-outside");
897
+ return d(), x(mt, { to: "body" }, [
898
+ I(a) ? ne((d(), x(xt, {
899
899
  key: 0,
900
900
  ref_key: "treeRef",
901
901
  ref: s,
@@ -926,15 +926,15 @@ const q = Co(), v = {
926
926
  top: l.value + "px"
927
927
  })), i = (u) => {
928
928
  s.value.show(), ht(() => {
929
- const g = s.value.elementSize(), x = window.innerWidth, C = window.innerHeight;
930
- a.value = x - u.pageX < g.width ? u.pageX - g.width : u.pageX, l.value = C - u.pageY < g.height ? u.pageY - g.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
929
+ const g = s.value.elementSize(), b = window.innerWidth, C = window.innerHeight;
930
+ a.value = b - u.pageX < g.width ? u.pageX - g.width : u.pageX, l.value = C - u.pageY < g.height ? u.pageY - g.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
931
931
  });
932
932
  }, c = (u) => {
933
933
  o("select", u);
934
934
  };
935
935
  return e({
936
936
  show: i
937
- }), (u, g) => (d(), b(bt, {
937
+ }), (u, g) => (d(), x(bt, {
938
938
  ref_key: "dMenuRef",
939
939
  ref: s,
940
940
  onSelect: c,
@@ -1011,7 +1011,7 @@ const q = Co(), v = {
1011
1011
  n.items[y].id === p && v.actions.toggleItem(r, n.items[y]), n.items[y].expanded = !0;
1012
1012
  }, g = (p = null) => {
1013
1013
  console.log(p.model), v.mutations.setItemSelect(r, p.model), n.doubleClickExpand || v.actions.toggleItem(r, p.model), o("select", p);
1014
- }, x = (p = null) => {
1014
+ }, b = (p = null) => {
1015
1015
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("doubleclick", p);
1016
1016
  }, C = (p = null) => {
1017
1017
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("foldericonclick", p);
@@ -1025,7 +1025,7 @@ const q = Co(), v = {
1025
1025
  }, M = () => {
1026
1026
  for (let p = 0; p < n.items.length; p++)
1027
1027
  n.items[p].expanded = !1;
1028
- }, I = () => r, F = (p) => v.actions.deepSearch(n.items, p), S = (p) => {
1028
+ }, E = () => r, F = (p) => v.actions.deepSearch(n.items, p), S = (p) => {
1029
1029
  F(p) && v.mutations.setItemSelect(r, F(p));
1030
1030
  }, W = (p) => {
1031
1031
  n.contextClick({ e: p.e, model: p.model, target: l.value });
@@ -1039,12 +1039,12 @@ const q = Co(), v = {
1039
1039
  elementSize: H,
1040
1040
  expandAll: Y,
1041
1041
  collapseAll: M,
1042
- getId: I,
1042
+ getId: E,
1043
1043
  getNode: F,
1044
1044
  selectNode: S,
1045
1045
  itemsCount: P,
1046
1046
  expandNode: u
1047
- }), (p, y) => (d(), b(Lo, {
1047
+ }), (p, y) => (d(), x(Lo, {
1048
1048
  ref_key: "treeRef",
1049
1049
  ref: s,
1050
1050
  class: "tree",
@@ -1052,20 +1052,20 @@ const q = Co(), v = {
1052
1052
  onDrop: j(i, ["stop"])
1053
1053
  }, {
1054
1054
  default: B(() => [
1055
- (d(!0), m(oe, null, me(c.value, (A) => (d(), b(To, {
1055
+ (d(!0), m(oe, null, me(c.value, (A) => (d(), x(To, {
1056
1056
  key: A.id,
1057
1057
  model: A,
1058
- treeId: E(r),
1058
+ treeId: I(r),
1059
1059
  items: n.items,
1060
1060
  search: n.search,
1061
1061
  onNodeclick: g,
1062
- onNodedoubleclick: x,
1062
+ onNodedoubleclick: b,
1063
1063
  onNodedragover: R,
1064
1064
  onNodedrop: $,
1065
1065
  onNodecontext: V,
1066
1066
  onNodefoldericonclick: C
1067
1067
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
1068
- w.value ? (d(), b(Io, {
1068
+ w.value ? (d(), x(Io, {
1069
1069
  key: 0,
1070
1070
  ref_key: "contextTreeRef",
1071
1071
  ref: a,
@@ -1094,7 +1094,7 @@ const Eo = {
1094
1094
  const o = t, n = (s) => {
1095
1095
  e("move", s);
1096
1096
  };
1097
- return (s, a) => (d(), b(xt, {
1097
+ return (s, a) => (d(), x(xt, {
1098
1098
  class: "accordion",
1099
1099
  items: o.items,
1100
1100
  "no-select": o.noSelect,
@@ -1187,8 +1187,8 @@ const Eo = {
1187
1187
  },
1188
1188
  setup(t) {
1189
1189
  const e = t, o = h(() => {
1190
- const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = e, g = n ? "fixed" : "static", x = e.useMinWidthLayout ? `min-width: ${l}px;` : "";
1191
- return `position:${g};top:${s}px;z-index:${a};${x}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1190
+ const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = e, g = n ? "fixed" : "static", b = e.useMinWidthLayout ? `min-width: ${l}px;` : "";
1191
+ return `position:${g};top:${s}px;z-index:${a};${b}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1192
1192
  });
1193
1193
  return (n, s) => (d(), m("div", {
1194
1194
  class: "d-layout-tab",
@@ -1454,7 +1454,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1454
1454
  e("update:sidebar-collapse", S);
1455
1455
  }
1456
1456
  });
1457
- function x() {
1457
+ function b() {
1458
1458
  e("sidebar-mask-click");
1459
1459
  }
1460
1460
  const C = h(() => o.isMobile && !g.value), R = h(() => {
@@ -1465,7 +1465,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1465
1465
  return o.sidebarVisible ? w : 0;
1466
1466
  }), H = h(() => o.isMobile ? 0 : $.value), Y = h(() => c.value ? H.value : 0), M = h(
1467
1467
  () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1468
- ), I = h(() => {
1468
+ ), E = h(() => {
1469
1469
  let S = 0;
1470
1470
  return o.fixedHeaderAndTab && (o.headerVisible && (S += o.headerHeight), o.tabVisible && (S += o.tabHeight)), S;
1471
1471
  }), F = h(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
@@ -1473,7 +1473,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1473
1473
  class: "d-layout",
1474
1474
  style: z(n.value)
1475
1475
  }, [
1476
- t.headerVisible ? (d(), b(Bo, ue({ key: 0 }, i.value, {
1476
+ t.headerVisible ? (d(), x(Bo, ue({ key: 0 }, i.value, {
1477
1477
  fixed: t.fixedHeaderAndTab,
1478
1478
  "z-index": Ho,
1479
1479
  "min-width": t.minWidth,
@@ -1486,7 +1486,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1486
1486
  ]),
1487
1487
  _: 3
1488
1488
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1489
- t.tabVisible ? (d(), b(Mo, ue({ key: 1 }, i.value, {
1489
+ t.tabVisible ? (d(), x(Mo, ue({ key: 1 }, i.value, {
1490
1490
  fixed: t.fixedHeaderAndTab,
1491
1491
  "z-index": Vo,
1492
1492
  "min-width": t.minWidth,
@@ -1500,7 +1500,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1500
1500
  ]),
1501
1501
  _: 3
1502
1502
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1503
- t.sidebarVisible ? (d(), b(Ro, ue({ key: 2 }, i.value, {
1503
+ t.sidebarVisible ? (d(), x(Ro, ue({ key: 2 }, i.value, {
1504
1504
  "z-index": u.value,
1505
1505
  width: $.value,
1506
1506
  "padding-top": M.value
@@ -1514,10 +1514,10 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1514
1514
  key: 3,
1515
1515
  class: "d-layout-sidebar-mask",
1516
1516
  style: z(R.value),
1517
- onClick: x
1517
+ onClick: b
1518
1518
  }, null, 4)) : k("", !0),
1519
1519
  J(Oo, ue(i.value, {
1520
- "padding-top": I.value,
1520
+ "padding-top": E.value,
1521
1521
  "padding-bottom": F.value,
1522
1522
  "padding-left": H.value,
1523
1523
  "overflow-hidden": t.addMainOverflowHidden
@@ -1527,7 +1527,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1527
1527
  ]),
1528
1528
  _: 3
1529
1529
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1530
- t.footerVisible ? (d(), b(No, ue({ key: 4 }, i.value, {
1530
+ t.footerVisible ? (d(), x(No, ue({ key: 4 }, i.value, {
1531
1531
  fixed: t.fixedFooter,
1532
1532
  "z-index": zo,
1533
1533
  "min-width": t.minWidth,
@@ -1543,7 +1543,7 @@ const Ho = 1001, Vo = 999, zo = 998, Ms = {
1543
1543
  ], 4));
1544
1544
  }
1545
1545
  }, pe = {
1546
- state: Oe({
1546
+ state: Ae({
1547
1547
  theme: "dark"
1548
1548
  }),
1549
1549
  getters: {
@@ -1588,7 +1588,7 @@ const Rs = {
1588
1588
  },
1589
1589
  setup(t) {
1590
1590
  const e = t;
1591
- Ae((a) => ({
1591
+ He((a) => ({
1592
1592
  e35a6f9a: o.value,
1593
1593
  e35a6f98: n.value
1594
1594
  }));
@@ -1620,7 +1620,7 @@ const Fo = {
1620
1620
  },
1621
1621
  setup(t) {
1622
1622
  const e = t;
1623
- Ae((s) => ({
1623
+ He((s) => ({
1624
1624
  c07fa29a: o.value,
1625
1625
  c07fa298: n.value
1626
1626
  }));
@@ -1653,9 +1653,9 @@ const Fo = {
1653
1653
  show: l,
1654
1654
  hide: r
1655
1655
  }), (i, c) => {
1656
- const u = Re("keydown");
1657
- return d(), b(mt, { to: "body" }, [
1658
- J(Ne, { name: "fade" }, {
1656
+ const u = Oe("keydown");
1657
+ return d(), x(mt, { to: "body" }, [
1658
+ J(Re, { name: "fade" }, {
1659
1659
  default: B(() => [
1660
1660
  a.value ? ne((d(), m("div", {
1661
1661
  key: 0,
@@ -1691,7 +1691,7 @@ const Fo = {
1691
1691
  };
1692
1692
  }
1693
1693
  }, ce = Bt();
1694
- function Me(t) {
1694
+ function Ne(t) {
1695
1695
  t === void 0 && (t = ce.value.comp.returnValue()), ce.value.resolve(t), ce.value = null;
1696
1696
  }
1697
1697
  function $t(t, e, o = "default") {
@@ -1731,9 +1731,9 @@ const qo = Mt({
1731
1731
  }
1732
1732
  });
1733
1733
  function Go(t, e, o, n, s, a) {
1734
- return d(), b(Ne, pt(ft(t.transitionAttrs)), {
1734
+ return d(), x(Re, pt(ft(t.transitionAttrs)), {
1735
1735
  default: B(() => [
1736
- t.dialogRef && t.dialogRef.wrapper === t.name ? (d(), b(U(t.dialogRef.dialog), ue({ key: 0 }, t.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1736
+ t.dialogRef && t.dialogRef.wrapper === t.name ? (d(), x(U(t.dialogRef.dialog), ue({ key: 0 }, t.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1737
1737
  ]),
1738
1738
  _: 1
1739
1739
  }, 16);
@@ -1760,7 +1760,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1760
1760
  "modal-footer": B(() => [
1761
1761
  _("div", Ko, [
1762
1762
  J(le, {
1763
- onClick: a[0] || (a[0] = (l) => E(Me)())
1763
+ onClick: a[0] || (a[0] = (l) => I(Ne)())
1764
1764
  }, {
1765
1765
  default: B(() => [
1766
1766
  K("Закрыть")
@@ -1794,7 +1794,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1794
1794
  "modal-footer": B(() => [
1795
1795
  _("div", Qo, [
1796
1796
  J(le, {
1797
- onClick: a[0] || (a[0] = (l) => E(Me)())
1797
+ onClick: a[0] || (a[0] = (l) => I(Ne)())
1798
1798
  }, {
1799
1799
  default: B(() => [
1800
1800
  K("Да")
@@ -1803,7 +1803,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1803
1803
  }),
1804
1804
  J(le, {
1805
1805
  class: "button-red",
1806
- onClick: a[1] || (a[1] = (l) => E(Me)(!1))
1806
+ onClick: a[1] || (a[1] = (l) => I(Ne)(!1))
1807
1807
  }, {
1808
1808
  default: B(() => [
1809
1809
  K("Нет")
@@ -1851,9 +1851,9 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1851
1851
  e({
1852
1852
  show: c
1853
1853
  });
1854
- const x = (C) => !!s[C];
1854
+ const b = (C) => !!s[C];
1855
1855
  return (C, R) => (d(), m("div", tn, [
1856
- x("default") ? (d(), b(le, {
1856
+ b("default") ? (d(), x(le, {
1857
1857
  key: 0,
1858
1858
  ref_key: "buttonRef",
1859
1859
  ref: l,
@@ -1866,7 +1866,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1866
1866
  L(C.$slots, "default")
1867
1867
  ]),
1868
1868
  _: 3
1869
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), b(le, {
1869
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(le, {
1870
1870
  key: 1,
1871
1871
  ref_key: "buttonRef",
1872
1872
  ref: l,
@@ -1898,7 +1898,7 @@ function sn(t, e) {
1898
1898
  const an = /* @__PURE__ */ se(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Hs = {
1899
1899
  __name: "DCard",
1900
1900
  setup(t) {
1901
- return (e, o) => (d(), b(an, { class: "d-card" }, {
1901
+ return (e, o) => (d(), x(an, { class: "d-card" }, {
1902
1902
  default: B(() => [
1903
1903
  _("div", ln, [
1904
1904
  _("h5", rn, [
@@ -2004,7 +2004,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2004
2004
  }, s = () => {
2005
2005
  e("after-leave");
2006
2006
  };
2007
- return (a, l) => (d(), b(yt, {
2007
+ return (a, l) => (d(), x(yt, {
2008
2008
  tag: "span",
2009
2009
  css: !1,
2010
2010
  onEnter: o,
@@ -2026,7 +2026,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2026
2026
  },
2027
2027
  setup(t) {
2028
2028
  const e = t;
2029
- return (o, n) => (d(), b(yt, {
2029
+ return (o, n) => (d(), x(yt, {
2030
2030
  tag: "span",
2031
2031
  name: e.name
2032
2032
  }, {
@@ -2117,7 +2117,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2117
2117
  width: y + A
2118
2118
  };
2119
2119
  return p && (ae[p] = "0px"), f && (f === "center" ? ae.left = `calc(50% - ${+y / 2}${A})` : ae[f] = "0px"), ae;
2120
- }), x = h(() => "bottom" in g.value), C = (f) => {
2120
+ }), b = h(() => "bottom" in g.value), C = (f) => {
2121
2121
  e("click", f), o.closeOnClick && F(f);
2122
2122
  }, R = () => {
2123
2123
  var f;
@@ -2143,7 +2143,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2143
2143
  data: _e
2144
2144
  };
2145
2145
  p >= 0 && (a.value = new pn(() => F(Q), Q.length, Q));
2146
- const xe = o.reverse ? !x.value : x.value;
2146
+ const xe = o.reverse ? !b.value : b.value;
2147
2147
  let de = -1;
2148
2148
  const ke = c.value.some((ge) => ge.title === f.title && ge.text === f.text);
2149
2149
  (!A || !ke) && (xe ? (s.value.push(Q), e("start", Q), c.value.length > o.max && (de = 0)) : (s.value.unshift(Q), e("start", Q), c.value.length > o.max && (de = c.value.length - 1)), de !== -1 && F(c.value[de]));
@@ -2153,7 +2153,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2153
2153
  "d-notification-template",
2154
2154
  o.classes,
2155
2155
  f.type || ""
2156
- ], I = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` }, F = (f) => {
2156
+ ], E = (f) => r.value ? void 0 : { transition: `all ${f.speed}ms` }, F = (f) => {
2157
2157
  clearTimeout(f.timer), f.state = n.DESTROYED, P(), e("destroy", f);
2158
2158
  }, S = (f) => {
2159
2159
  const p = s.value.find((y) => y.id === f);
@@ -2190,7 +2190,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2190
2190
  class: "d-notification-group",
2191
2191
  style: z(g.value)
2192
2192
  }, [
2193
- (d(), b(U(i.value), {
2193
+ (d(), x(U(i.value), {
2194
2194
  name: t.animationName,
2195
2195
  onEnter: w,
2196
2196
  onLeave: V,
@@ -2200,7 +2200,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2200
2200
  (d(!0), m(oe, null, me(c.value, (y) => (d(), m("div", {
2201
2201
  key: y.id,
2202
2202
  class: "d-notification-wrapper",
2203
- style: z(I(y)),
2203
+ style: z(E(y)),
2204
2204
  "data-id": y.id,
2205
2205
  onMouseenter: R,
2206
2206
  onMouseleave: $
@@ -2257,7 +2257,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2257
2257
  }, [
2258
2258
  _("div", Dn, [
2259
2259
  _("div", Tn, [
2260
- o.icon ? (d(), b(U(re), {
2260
+ o.icon ? (d(), x(U(re), {
2261
2261
  key: 0,
2262
2262
  component: n.value,
2263
2263
  color: "inherit",
@@ -2300,7 +2300,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2300
2300
  return (l, r) => (d(), m("div", In, [
2301
2301
  ne(_("input", {
2302
2302
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2303
- id: `i-${E(s)}`,
2303
+ id: `i-${I(s)}`,
2304
2304
  type: "checkbox",
2305
2305
  checked: o.checked,
2306
2306
  disabled: o.disabled,
@@ -2309,7 +2309,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", it = [
2309
2309
  [Nt, a.value]
2310
2310
  ]),
2311
2311
  _("label", {
2312
- for: `i-${E(s)}`
2312
+ for: `i-${I(s)}`
2313
2313
  }, O(o.label), 9, Bn)
2314
2314
  ]));
2315
2315
  }
@@ -2323,7 +2323,7 @@ async function Nn(t, e) {
2323
2323
  const Ws = {
2324
2324
  __name: "DDialogProvider",
2325
2325
  setup(t) {
2326
- return window.alert = Nn, window.confirm = Mn, (e, o) => (d(), b(E(Zo)));
2326
+ return window.alert = Nn, window.confirm = Mn, (e, o) => (d(), x(I(Zo)));
2327
2327
  }
2328
2328
  }, Rn = { class: "d-select" }, On = {
2329
2329
  key: 0,
@@ -2388,7 +2388,7 @@ const Vn = ["title"], zn = { class: "tab-icon" }, Fn = { class: "tab-label" }, W
2388
2388
  style: { display: "flex", "flex-direction": "column" }
2389
2389
  }, [
2390
2390
  _("div", zn, [
2391
- J(E(re), {
2391
+ J(I(re), {
2392
2392
  component: e.tab.icon
2393
2393
  }, null, 8, ["component"])
2394
2394
  ]),
@@ -2400,7 +2400,7 @@ const Vn = ["title"], zn = { class: "tab-icon" }, Fn = { class: "tab-label" }, W
2400
2400
  key: 2,
2401
2401
  title: e.tab.title ? e.tab.title : ""
2402
2402
  }, [
2403
- J(E(re), {
2403
+ J(I(re), {
2404
2404
  component: e.tab.icon
2405
2405
  }, null, 8, ["component"])
2406
2406
  ], 8, Pn)) : k("", !0);
@@ -2412,30 +2412,32 @@ const Yn = { class: "d-tabs" }, Un = {
2412
2412
  tabs: Array
2413
2413
  },
2414
2414
  setup(t, { expose: e }) {
2415
- const n = Ot(t, "tabs"), s = T(0), a = (r) => {
2416
- s.value = r;
2417
- }, l = () => n.value;
2418
- for (let r = 0; r < n.value.length; r++)
2419
- ;
2415
+ const n = Ot(t, "tabs"), s = T(0), a = (i) => {
2416
+ s.value = i;
2417
+ };
2418
+ let l = [];
2419
+ const r = () => l;
2420
+ for (let i = 0; i < n.value.length; i++)
2421
+ l.push(Me(n.value[i].component));
2420
2422
  return e({
2421
- refs: l
2422
- }), (r, i) => (d(), m(oe, null, [
2423
+ refs: r
2424
+ }), (i, c) => (d(), m(oe, null, [
2423
2425
  _("div", Yn, [
2424
- (d(!0), m(oe, null, me(n.value, (c, u) => (d(), b(Xn, {
2425
- index: u,
2426
- tab: c,
2427
- class: D(["d-tab-title", u === s.value ? "active" : ""]),
2428
- onClick: (g) => a(u)
2426
+ (d(!0), m(oe, null, me(n.value, (u, g) => (d(), x(Xn, {
2427
+ index: g,
2428
+ tab: u,
2429
+ class: D(["d-tab-title", g === s.value ? "active" : ""]),
2430
+ onClick: (b) => a(g)
2429
2431
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2430
2432
  ]),
2431
- (d(), b(At, null, [
2432
- (d(!0), m(oe, null, me(n.value, (c, u) => (d(), m("div", null, [
2433
- u === s.value ? (d(), b(U(c.component), { key: 0 })) : k("", !0)
2433
+ (d(), x(At, null, [
2434
+ (d(!0), m(oe, null, me(I(l), (u, g) => (d(), m("div", null, [
2435
+ g === s.value ? (d(), x(U(u), { key: 0 })) : k("", !0)
2434
2436
  ]))), 256))
2435
2437
  ], 1024))
2436
2438
  ], 64));
2437
2439
  }
2438
- }, js = /* @__PURE__ */ se(Un, [["__scopeId", "data-v-ad21ee8e"]]);
2440
+ }, js = /* @__PURE__ */ se(Un, [["__scopeId", "data-v-297f2485"]]);
2439
2441
  const qn = { class: "d-grid" }, Gn = {
2440
2442
  __name: "DGrid",
2441
2443
  props: {
@@ -2455,7 +2457,7 @@ const qn = { class: "d-grid" }, Gn = {
2455
2457
  },
2456
2458
  setup(t) {
2457
2459
  const e = t;
2458
- Ae((u) => ({
2460
+ He((u) => ({
2459
2461
  "09eba472": i[0],
2460
2462
  "09eba434": i[1],
2461
2463
  "09eba3f6": i[2],
@@ -2641,31 +2643,31 @@ const ps = new us(), G = {
2641
2643
  };
2642
2644
  class fs {
2643
2645
  validate(e, o) {
2644
- var s, a, l, r, i, c, u, g, x, C, R, $, H, Y;
2646
+ var s, a, l, r, i, c, u, g, b, C, R, $, H, Y;
2645
2647
  let n = "";
2646
2648
  if (o) {
2647
2649
  let M = !1;
2648
- for (let I in o)
2650
+ for (let E in o)
2649
2651
  if (!M)
2650
- switch (I) {
2652
+ switch (E) {
2651
2653
  case "url":
2652
- n = G.RulesUrl.validate(e, "https") || e.length === 0 ? "" : G.RulesUrl.message("url", (s = o[I]) != null && s.message ? (a = o[I]) == null ? void 0 : a.message : "url_incorrect"), M = n !== "";
2654
+ n = G.RulesUrl.validate(e, "https") || e.length === 0 ? "" : G.RulesUrl.message("url", (s = o[E]) != null && s.message ? (a = o[E]) == null ? void 0 : a.message : "url_incorrect"), M = n !== "";
2653
2655
  break;
2654
2656
  case "required":
2655
- n = G.RulesRequired.validate(e) ? "" : G.RulesRequired.message((l = o[I]) != null && l.message ? (r = o[I]) == null ? void 0 : r.message : "required"), M = n !== "";
2657
+ n = G.RulesRequired.validate(e) ? "" : G.RulesRequired.message((l = o[E]) != null && l.message ? (r = o[E]) == null ? void 0 : r.message : "required"), M = n !== "";
2656
2658
  break;
2657
2659
  case "min":
2658
- n = G.RulesMin.validate(e, (i = o[I]) == null ? void 0 : i.value) ? "" : G.RulesMin.message((c = o[I]) != null && c.message ? (u = o[I]) == null ? void 0 : u.message : "very_small"), M = n !== "";
2660
+ n = G.RulesMin.validate(e, (i = o[E]) == null ? void 0 : i.value) ? "" : G.RulesMin.message((c = o[E]) != null && c.message ? (u = o[E]) == null ? void 0 : u.message : "very_small"), M = n !== "";
2659
2661
  break;
2660
2662
  case "max":
2661
- n = G.RulesMax.validate(e, (g = o[I]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((x = o[I]) != null && x.message ? (C = o[I]) == null ? void 0 : C.message : "vary_large"), M = n !== "";
2663
+ n = G.RulesMax.validate(e, (g = o[E]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((b = o[E]) != null && b.message ? (C = o[E]) == null ? void 0 : C.message : "vary_large"), M = n !== "";
2662
2664
  break;
2663
2665
  case "email":
2664
- n = G.RulesEmail.validate(e) ? "" : G.RulesMax.message((R = o[I]) != null && R.message ? ($ = o[I]) == null ? void 0 : $.message : "email_incorrect"), M = n !== "";
2666
+ n = G.RulesEmail.validate(e) ? "" : G.RulesMax.message((R = o[E]) != null && R.message ? ($ = o[E]) == null ? void 0 : $.message : "email_incorrect"), M = n !== "";
2665
2667
  break;
2666
2668
  case "number":
2667
2669
  n = G.RulesNumber.validate(e) ? "" : G.RulesNumber.message(
2668
- (H = o[I]) != null && H.message ? (Y = o[I]) == null ? void 0 : Y.message : "number_incorrect"
2670
+ (H = o[E]) != null && H.message ? (Y = o[E]) == null ? void 0 : Y.message : "number_incorrect"
2669
2671
  ), M = n !== "";
2670
2672
  break;
2671
2673
  }
@@ -2738,8 +2740,8 @@ const ms = new fs(), hs = { style: { display: "flex", "flex-direction": "column"
2738
2740
  o("update:modelValue", M);
2739
2741
  }
2740
2742
  }), c = h(() => n.type === "password" ? "password" : "text"), u = h(() => n.scale), g = (M) => {
2741
- o("input", M), x();
2742
- }, x = () => {
2743
+ o("input", M), b();
2744
+ }, b = () => {
2743
2745
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2744
2746
  return s.value = ms.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2745
2747
  };
@@ -2761,9 +2763,9 @@ const ms = new fs(), hs = { style: { display: "flex", "flex-direction": "column"
2761
2763
  return e({
2762
2764
  focus: C,
2763
2765
  setError: H,
2764
- validate: x
2765
- }), (M, I) => {
2766
- var F, S, W, N, w, V, P, f, p, y, A, ae, ve, ye, _e, be, Q, xe, de, ke, Le, ge, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt;
2766
+ validate: b
2767
+ }), (M, E) => {
2768
+ var F, S, W, N, w, V, P, f, p, y, A, ae, ve, ye, _e, be, Q, xe, de, ke, Le, ge, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt, st;
2767
2769
  return d(), m("div", {
2768
2770
  class: D(["d-input-string", u.value])
2769
2771
  }, [
@@ -2777,7 +2779,7 @@ const ms = new fs(), hs = { style: { display: "flex", "flex-direction": "column"
2777
2779
  key: 0,
2778
2780
  class: D(["d-pre", n.disabled ? "disabled" : ""])
2779
2781
  }, [
2780
- (d(), b(U((w = (N = n.pre) == null ? void 0 : N.outside) == null ? void 0 : w.component)))
2782
+ (d(), x(U((w = (N = n.pre) == null ? void 0 : N.outside) == null ? void 0 : w.component)))
2781
2783
  ], 2)) : (P = (V = n.pre) == null ? void 0 : V.outside) != null && P.text ? (d(), m("div", {
2782
2784
  key: 1,
2783
2785
  class: D(["d-pre", n.disabled ? "disabled" : ""])
@@ -2793,46 +2795,46 @@ const ms = new fs(), hs = { style: { display: "flex", "flex-direction": "column"
2793
2795
  onClick: R
2794
2796
  }, xs)) : k("", !0),
2795
2797
  ne(_("input", {
2796
- id: E(a),
2798
+ id: I(a),
2797
2799
  ref_key: "inputRef",
2798
2800
  ref: r,
2799
- "onUpdate:modelValue": I[0] || (I[0] = (Ie) => i.value = Ie),
2801
+ "onUpdate:modelValue": E[0] || (E[0] = (Ie) => i.value = Ie),
2800
2802
  style: { width: "100%" },
2801
2803
  type: c.value,
2802
2804
  placeholder: n.placeholder,
2803
2805
  onInput: g,
2804
- onFocus: I[1] || (I[1] = (Ie) => $(!0)),
2806
+ onFocus: E[1] || (E[1] = (Ie) => $(!0)),
2805
2807
  onBlur: Y,
2806
- onFocusout: I[2] || (I[2] = (Ie) => $(!1)),
2808
+ onFocusout: E[2] || (E[2] = (Ie) => $(!1)),
2807
2809
  class: D([
2808
2810
  (be = (_e = n.pre) == null ? void 0 : _e.outside) != null && be.component || (xe = (Q = n.pre) == null ? void 0 : Q.outside) != null && xe.text ? "has-pre" : "",
2809
2811
  (ke = (de = n.post) == null ? void 0 : de.outside) != null && ke.component || (ge = (Le = n.post) == null ? void 0 : Le.outside) != null && ge.text ? "has-post" : "",
2810
- (We = (Fe = n.pre) == null ? void 0 : Fe.inside) != null && We.action ? "has-pre-inside-button" : "",
2811
- (je = (Pe = n.post) == null ? void 0 : Pe.inside) != null && je.action ? "has-post-inside-button" : "",
2812
+ (Pe = (We = n.pre) == null ? void 0 : We.inside) != null && Pe.action ? "has-pre-inside-button" : "",
2813
+ (Xe = (je = n.post) == null ? void 0 : je.inside) != null && Xe.action ? "has-post-inside-button" : "",
2812
2814
  l.value ? "focused" : ""
2813
2815
  ]),
2814
2816
  disabled: n.disabled
2815
2817
  }, null, 42, ks), [
2816
2818
  [De, i.value]
2817
2819
  ]),
2818
- (Ye = (Xe = n.post) == null ? void 0 : Xe.inside) != null && Ye.action && ((qe = (Ue = n.post) == null ? void 0 : Ue.inside) == null ? void 0 : qe.action) === "clear" && ((Ge = i.value) == null ? void 0 : Ge.length) > 0 ? (d(), m("div", {
2820
+ (Ue = (Ye = n.post) == null ? void 0 : Ye.inside) != null && Ue.action && ((Ge = (qe = n.post) == null ? void 0 : qe.inside) == null ? void 0 : Ge.action) === "clear" && ((Ze = i.value) == null ? void 0 : Ze.length) > 0 ? (d(), m("div", {
2819
2821
  key: 1,
2820
2822
  class: "d-post-inside-button",
2821
2823
  onClick: R
2822
2824
  }, ws)) : k("", !0)
2823
2825
  ]),
2824
- (Ke = (Ze = n.post) == null ? void 0 : Ze.outside) != null && Ke.component ? (d(), m("div", {
2826
+ (Je = (Ke = n.post) == null ? void 0 : Ke.outside) != null && Je.component ? (d(), m("div", {
2825
2827
  key: 2,
2826
2828
  class: D(["d-post", n.disabled ? "disabled" : ""])
2827
2829
  }, [
2828
- (d(), b(U((Qe = (Je = n.post) == null ? void 0 : Je.outside) == null ? void 0 : Qe.component)))
2829
- ], 2)) : (tt = (et = n.post) == null ? void 0 : et.outside) != null && tt.text ? (d(), m("div", {
2830
+ (d(), x(U((et = (Qe = n.post) == null ? void 0 : Qe.outside) == null ? void 0 : et.component)))
2831
+ ], 2)) : (ot = (tt = n.post) == null ? void 0 : tt.outside) != null && ot.text ? (d(), m("div", {
2830
2832
  key: 3,
2831
2833
  class: D(["d-post", n.disabled ? "disabled" : ""])
2832
2834
  }, [
2833
2835
  _("div", {
2834
2836
  class: D(["d-text", l.value ? "focused" : ""])
2835
- }, O((nt = (ot = n.post) == null ? void 0 : ot.outside) == null ? void 0 : nt.text), 3)
2837
+ }, O((st = (nt = n.post) == null ? void 0 : nt.outside) == null ? void 0 : st.text), 3)
2836
2838
  ], 2)) : k("", !0)
2837
2839
  ]),
2838
2840
  n.help ? (d(), m("div", Ss, O(n.help), 1)) : k("", !0),
@@ -2938,7 +2940,7 @@ function we(t) {
2938
2940
  }
2939
2941
  } else {
2940
2942
  var a = e.options.tapTolerance;
2941
- e.touchMoved = Math.abs(e.startX - e.currentX) > a || Math.abs(e.startY - e.currentY) > a, e.touchMoved && (ze(e), ee(t, this, "drag.once"));
2943
+ e.touchMoved = Math.abs(e.startX - e.currentX) > a || Math.abs(e.startY - e.currentY) > a, e.touchMoved && (Fe(e), ee(t, this, "drag.once"));
2942
2944
  }
2943
2945
  if (Z(this, "rollover") && s) {
2944
2946
  var r = t.timeStamp, i = e.options.rollOverFrequency;
@@ -2951,13 +2953,13 @@ function we(t) {
2951
2953
  }
2952
2954
  function rt() {
2953
2955
  var t = this.$$touchObj;
2954
- ze(t), Ve(this), t.touchStarted = t.touchMoved = !1, t.startX = t.startY = 0;
2956
+ Fe(t), ze(this), t.touchStarted = t.touchMoved = !1, t.startX = t.startY = 0;
2955
2957
  }
2956
2958
  function Se(t) {
2957
2959
  var e = this.$$touchObj, o = t.type.indexOf("touch") >= 0, n = t.type.indexOf("mouse") >= 0;
2958
2960
  o && (e.lastTouchEndTime = t.timeStamp);
2959
2961
  var s = o && !e.touchHoldTimer;
2960
- if (ze(e), e.touchStarted = !1, Ve(this), !(n && e.lastTouchEndTime && t.timeStamp - e.lastTouchEndTime < 350))
2962
+ if (Fe(e), e.touchStarted = !1, ze(this), !(n && e.lastTouchEndTime && t.timeStamp - e.lastTouchEndTime < 350))
2961
2963
  if (ee(t, this, "release"), e.touchMoved) {
2962
2964
  if (e.hasSwipe && !e.swipeOutBounded) {
2963
2965
  var a = e.options.swipeTolerance, l, r = Math.abs(e.startY - e.currentY), i = Math.abs(e.startX - e.currentX);
@@ -2975,7 +2977,7 @@ function dt() {
2975
2977
  Tt(this);
2976
2978
  }
2977
2979
  function ct() {
2978
- Ve(this);
2980
+ ze(this);
2979
2981
  }
2980
2982
  function Z(t, e) {
2981
2983
  var o = t.$$touchObj.callbacks[e];
@@ -2994,11 +2996,11 @@ function Tt(t) {
2994
2996
  var e = t.$$touchObj.options.touchClass;
2995
2997
  e && t.classList.add(e);
2996
2998
  }
2997
- function Ve(t) {
2999
+ function ze(t) {
2998
3000
  var e = t.$$touchObj.options.touchClass;
2999
3001
  e && t.classList.remove(e);
3000
3002
  }
3001
- function ze(t) {
3003
+ function Fe(t) {
3002
3004
  t.touchHoldTimer && (clearTimeout(t.touchHoldTimer), t.touchHoldTimer = null);
3003
3005
  }
3004
3006
  function Ls(t, e) {