doph-js 0.3.5 → 0.3.7

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 at, openBlock as d, createBlock as x, unref as L, ref as S, createElementBlock as f, Fragment as ne, normalizeClass as C, renderSlot as I, createCommentVNode as k, normalizeStyle as F, resolveDynamicComponent as U, createStaticVNode as pt, onMounted as he, toDisplayString as O, withDirectives as Z, createElementVNode as _, vModelDynamic as De, withCtx as E, createTextVNode as J, Transition as Ne, withModifiers as j, resolveComponent as Lt, resolveDirective as Re, normalizeProps as ft, guardReactiveProps as mt, createVNode as Q, renderList as me, pushScopeId as It, popScopeId as Bt, reactive as Oe, Teleport as ht, nextTick as gt, getCurrentInstance as Ve, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as Ae, shallowRef as Mt, defineComponent as Nt, TransitionGroup as yt, vModelCheckbox as _t, vModelSelect as Rt, toRef as Ot, KeepAlive as Vt, vShow as At, toRefs as Ht, vModelText as Ft } from "vue";
1
+ import { useSlots as Ce, computed as h, h as at, openBlock as d, createBlock as x, unref as L, ref as D, createElementBlock as f, Fragment as ne, normalizeClass as S, renderSlot as I, createCommentVNode as k, normalizeStyle as z, resolveDynamicComponent as U, createStaticVNode as pt, onMounted as he, toDisplayString as O, withDirectives as Z, createElementVNode as _, vModelDynamic as De, withCtx as E, createTextVNode as J, Transition as Ne, withModifiers as j, resolveComponent as Lt, resolveDirective as Re, normalizeProps as ft, guardReactiveProps as mt, createVNode as Q, renderList as me, pushScopeId as It, popScopeId as Bt, reactive as Oe, Teleport as ht, nextTick as gt, getCurrentInstance as Ve, watch as vt, onUnmounted as Et, mergeProps as ue, useCssVars as Ae, shallowRef as Mt, defineComponent as Nt, TransitionGroup as yt, vModelCheckbox as _t, vModelSelect as Rt, toRef as Ot, KeepAlive as Vt, vShow as At, toRefs as Ht, vModelText as zt } from "vue";
2
2
  const re = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -58,7 +58,7 @@ function bt(t) {
58
58
  n += o.offsetLeft - o.scrollLeft, s += o.offsetTop - o.scrollTop, o = o.offsetParent;
59
59
  return { top: s, left: n, x: e.x, y: e.y, width: e.width, height: e.height };
60
60
  }
61
- function zt() {
61
+ function Ft() {
62
62
  function t(s) {
63
63
  return s * Math.random() | 0;
64
64
  }
@@ -120,11 +120,11 @@ const se = (t, e) => {
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
122
  setup(t, { expose: e, emit: o }) {
123
- const n = t, s = Ce(), a = S(null), l = h(() => n.icon ? oe.getters.getIcon(n.icon) : null), r = ($) => {
123
+ const n = t, s = Ce(), a = D(null), l = h(() => n.icon ? oe.getters.getIcon(n.icon) : null), r = ($) => {
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[$], b = h(() => g("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), D = 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"), T = 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
  });
@@ -137,7 +137,7 @@ const se = (t, e) => {
137
137
  ref: a,
138
138
  onClick: r,
139
139
  onContextmenu: i,
140
- class: C(["button", [n.class, c.value, D.value, u.value].join(" ")])
140
+ class: S(["button", [n.class, c.value, T.value, u.value].join(" ")])
141
141
  }, [
142
142
  I($.$slots, "default", {}, void 0, !0),
143
143
  n.loading ? (d(), f("svg", Wt, jt)) : k("", !0)
@@ -148,8 +148,8 @@ const se = (t, e) => {
148
148
  ref: a,
149
149
  onClick: r,
150
150
  onContextmenu: i,
151
- class: C(["button button-ext", [n.class, c.value, b.value, D.value, u.value].join(" ")]),
152
- style: F(n.style)
151
+ class: S(["button button-ext", [n.class, c.value, b.value, T.value, u.value].join(" ")]),
152
+ style: z(n.style)
153
153
  }, [
154
154
  n.icon ? (d(), x(U(re), {
155
155
  key: 0,
@@ -199,7 +199,7 @@ const Zt = {
199
199
  },
200
200
  emits: ["update:modelValue"],
201
201
  setup(t, { expose: e, emit: o }) {
202
- const n = t, s = S(null), a = h(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = h({
202
+ const n = t, s = D(null), a = h(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = h({
203
203
  get: () => n.modelValue,
204
204
  set: (i) => {
205
205
  o("update:modelValue", i);
@@ -220,7 +220,7 @@ const Zt = {
220
220
  ref: s,
221
221
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
222
222
  type: n.password ? "password" : "text",
223
- class: C(a.value),
223
+ class: S(a.value),
224
224
  placeholder: n.placeholder,
225
225
  style: { width: "100%" }
226
226
  }, null, 10, Jt), [
@@ -233,7 +233,7 @@ const Zt = {
233
233
  Z(_("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: s,
236
- class: C(["d-input-post-field", a.value]),
236
+ class: S(["d-input-post-field", a.value]),
237
237
  "onUpdate:modelValue": c[1] || (c[1] = (u) => l.value = u),
238
238
  type: n.password ? "password" : "text",
239
239
  placeholder: n.placeholder,
@@ -245,7 +245,7 @@ const Zt = {
245
245
  n.post.label ? (d(), x(le, {
246
246
  key: 0,
247
247
  scale: n.scale,
248
- class: C(["d-input-post-button", n.post.class]),
248
+ class: S(["d-input-post-button", n.post.class]),
249
249
  onClick: n.post.click,
250
250
  icon: n.post.icon
251
251
  }, {
@@ -256,7 +256,7 @@ const Zt = {
256
256
  }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(le, {
257
257
  key: 1,
258
258
  scale: n.scale,
259
- class: C(["d-input-post-button", n.post.class]),
259
+ class: S(["d-input-post-button", n.post.class]),
260
260
  onClick: n.post.click,
261
261
  icon: n.post.icon
262
262
  }, null, 8, ["scale", "onClick", "icon", "class"]))
@@ -267,7 +267,7 @@ const Zt = {
267
267
  n.pre.label ? (d(), x(le, {
268
268
  key: 0,
269
269
  scale: n.scale,
270
- class: C(["d-input-pre-button", n.pre.class]),
270
+ class: S(["d-input-pre-button", n.pre.class]),
271
271
  onClick: n.pre.click,
272
272
  icon: n.pre.icon
273
273
  }, {
@@ -278,7 +278,7 @@ const Zt = {
278
278
  }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(le, {
279
279
  key: 1,
280
280
  scale: n.scale,
281
- class: C(["d-input-pre-button", n.pre.class]),
281
+ class: S(["d-input-pre-button", n.pre.class]),
282
282
  onClick: n.pre.click,
283
283
  icon: n.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
@@ -286,7 +286,7 @@ const Zt = {
286
286
  Z(_("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: s,
289
- class: C(["d-input-pre-field", a.value]),
289
+ class: S(["d-input-pre-field", a.value]),
290
290
  "onUpdate:modelValue": c[2] || (c[2] = (u) => l.value = u),
291
291
  type: n.password ? "password" : "text",
292
292
  placeholder: n.placeholder,
@@ -298,7 +298,7 @@ const Zt = {
298
298
  ])
299
299
  ])) : k("", !0);
300
300
  }
301
- }, Rs = /* @__PURE__ */ se(co, [["__scopeId", "data-v-a972038a"]]), uo = {
301
+ }, Ns = /* @__PURE__ */ se(co, [["__scopeId", "data-v-a972038a"]]), uo = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -315,7 +315,7 @@ const Zt = {
315
315
  return e.type === "primary" ? `badge${s}-blue` : e.type === "success" ? `badge${s}-green` : e.type === "error" ? `badge${s}-red` : e.type === "warning" ? `badge${s}-orange` : e.type === "wait" ? `badge${s}-violet` : e.stress ? `badge${s}-gray` : "";
316
316
  });
317
317
  return (s, a) => (d(), f("div", {
318
- class: C(["badge", [e.class, o.value, n.value].join(" ")])
318
+ class: S(["badge", [e.class, o.value, n.value].join(" ")])
319
319
  }, [
320
320
  I(s.$slots, "default")
321
321
  ], 2));
@@ -363,8 +363,8 @@ const Zt = {
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
365
  }, s = (i, c, u, g, b) => {
366
- const D = i.animate(g, b);
367
- i.style.height = c.height, D.onfinish = () => {
366
+ const T = i.animate(g, b);
367
+ i.style.height = c.height, T.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
370
370
  }, a = (i, c) => [
@@ -389,13 +389,13 @@ const Zt = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
391
  ], l = (i, c) => {
392
- const u = i, g = o(u), b = n(u, g), D = a(b, g), R = { duration: e.duration, easing: e.easingEnter };
393
- s(u, g, c, D, R);
392
+ const u = i, g = o(u), b = n(u, g), T = a(b, g), R = { duration: e.duration, easing: e.easingEnter };
393
+ s(u, g, c, T, R);
394
394
  }, r = (i, c) => {
395
395
  const u = i, g = o(u), { height: b } = getComputedStyle(u);
396
396
  u.style.height = b, u.style.overflow = "hidden";
397
- const D = a(b, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
398
- s(u, g, c, D, R);
397
+ const T = a(b, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
398
+ s(u, g, c, T, R);
399
399
  };
400
400
  return (i, c) => (d(), x(Ne, {
401
401
  css: !1,
@@ -442,7 +442,7 @@ const Zt = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(t) {
445
- const e = t, o = Ce(), n = S(!1), s = h(() => n && e.transferData), a = h(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
445
+ const e = t, o = Ce(), n = D(!1), s = h(() => n && e.transferData), a = h(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
446
446
  const c = i.dataTransfer;
447
447
  if ([X.dragenter, X.dragover].includes(r) && e.dropEffect && (c.dropEffect = e.dropEffect), r === X.dragstart) {
448
448
  if (e.effectAllowed && (c.effectAllowed = e.effectAllowed), e.image || o.image) {
@@ -464,7 +464,7 @@ const Zt = {
464
464
  I(r.$slots, "default", { transferData: s.value }),
465
465
  t.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
467
- style: F(a.value)
467
+ style: z(a.value)
468
468
  }, [
469
469
  I(r.$slots, "image", { transferData: s.value })
470
470
  ], 4)) : I(r.$slots, "image", {
@@ -498,7 +498,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
498
498
  },
499
499
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext", "nodedoubleclick", "nodefoldericonclick"],
500
500
  setup(t, { emit: e }) {
501
- const o = t, n = S(null), s = S(!1), a = S(!1), l = S(!1), r = h(() => o.model.children && o.model.children.length), i = h(() => (v.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (N) => {
501
+ const o = t, n = D(null), s = D(!1), a = D(!1), l = D(!1), r = h(() => o.model.children && o.model.children.length), i = h(() => (v.actions.isTreeExpanded(o.treeId) && (o.model.expanded = o.model.expanded === void 0 ? !0 : o.model.expanded), o.model.expanded)), c = (N) => {
502
502
  e("nodeclick", { event: N, model: o.model });
503
503
  }, u = (N) => {
504
504
  e("nodefoldericonclick", { event: N, model: o.model });
@@ -506,7 +506,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
506
506
  e("nodefoldericonclick", N);
507
507
  }, b = (N) => {
508
508
  e("nodeclick", N);
509
- }, D = (N) => {
509
+ }, T = (N) => {
510
510
  e("nodedoubleclick", N);
511
511
  }, R = (N) => {
512
512
  e("nodedrop", N);
@@ -539,9 +539,9 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
539
539
  return !1;
540
540
  const H = N.y, P = n.value.getBoundingClientRect().top, m = n.value.getBoundingClientRect().height, p = m / 3;
541
541
  H > P && H <= P + p ? (s.value = !1, a.value = !0, l.value = !1) : H < P + m && H >= P + m - p ? (s.value = !1, a.value = !1, l.value = !0) : (s.value = v.state.trees[o.treeId].dropInside, a.value = !1, l.value = !1);
542
- }, z = () => {
542
+ }, F = () => {
543
543
  s.value = !1, a.value = !1, l.value = !1;
544
- }, T = h(() => o.model.title.startsWith("-")), W = h(() => {
544
+ }, C = h(() => o.model.title.startsWith("-")), W = h(() => {
545
545
  if (o.model.title.startsWith("-")) {
546
546
  let [N, ...w] = o.model.title.split(" ");
547
547
  return w = w.join(" "), w;
@@ -550,7 +550,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
550
550
  });
551
551
  return (N, w) => {
552
552
  const H = Lt("d-tree-item", !0), P = Re("touch");
553
- return L(v).actions.beforeItem(o.treeId, t.model) ? T.value && !W.value ? (d(), f("li", vo, _o)) : T.value && W.value ? (d(), f("li", bo, [
553
+ return L(v).actions.beforeItem(o.treeId, t.model) ? C.value && !W.value ? (d(), f("li", vo, _o)) : C.value && W.value ? (d(), f("li", bo, [
554
554
  _("div", xo, O(L(v).actions.renderTitle(o.treeId, W.value)), 1)
555
555
  ])) : o.model.component ? (d(), x(it, {
556
556
  key: 3,
@@ -562,13 +562,13 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
562
562
  onDragenter: w[1] || (w[1] = j(() => {
563
563
  }, ["prevent"])),
564
564
  onDragover: j(B, ["prevent", "stop"]),
565
- onDragleave: j(z, ["prevent"])
565
+ onDragleave: j(F, ["prevent"])
566
566
  }, {
567
567
  default: E(() => [
568
568
  Z((d(), f("div", {
569
569
  ref_key: "node",
570
570
  ref: n,
571
- class: C(A.value),
571
+ class: S(A.value),
572
572
  onContextmenu: w[0] || (w[0] = j((m) => e("nodecontext", { e: m, model: o.model }), ["prevent"]))
573
573
  }, [
574
574
  (d(), x(U(L(fe).getters.getComponent(o.model.component).component), ft(mt(L(fe).getters.getComponent(o.model.component).props)), null, 16))
@@ -587,7 +587,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
587
587
  onDragenter: w[4] || (w[4] = j(() => {
588
588
  }, ["prevent"])),
589
589
  onDragover: j(B, ["prevent", "stop"]),
590
- onDragleave: j(z, ["prevent"])
590
+ onDragleave: j(F, ["prevent"])
591
591
  }, {
592
592
  default: E(() => {
593
593
  var m, p;
@@ -595,28 +595,28 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
595
595
  _("div", {
596
596
  ref_key: "node",
597
597
  ref: n,
598
- class: C(A.value),
598
+ class: S(A.value),
599
599
  onPointerdownCapture: c,
600
600
  onDblclick: w[2] || (w[2] = j((y) => e("nodedoubleclick", { e: y, model: o.model }), ["prevent"])),
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 && !T.value ? (d(), x(U(re), {
604
+ o.model.icons && o.model.icons.pre && r.value && !o.search && !C.value ? (d(), x(U(re), {
605
605
  key: 0,
606
606
  component: L(oe).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
- class: C(i.value ? "tree-open-pre" : ""),
609
+ class: S(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 && !T.value ? (d(), x(U(re), {
612
+ o.model.icons && o.model.icons.pre && !r.value && !o.search && !C.value ? (d(), x(U(re), {
613
613
  key: 1,
614
614
  component: L(oe).getters.getIcon(o.model.icons.pre.component),
615
615
  size: 18,
616
616
  color: "rgba(0,0,0,0)",
617
- class: C(i.value ? "tree-open-pre" : "")
617
+ class: S(i.value ? "tree-open-pre" : "")
618
618
  }, null, 8, ["component", "class"])) : k("", !0),
619
- o.model.icons && o.model.icons.icon && !T.value ? (d(), x(U(re), {
619
+ o.model.icons && o.model.icons.icon && !C.value ? (d(), x(U(re), {
620
620
  key: 2,
621
621
  component: L(oe).getters.getIcon(o.model.icons.icon.component),
622
622
  color: o.model.icons.icon.color ? o.model.icons.icon.color : "inherit",
@@ -624,26 +624,26 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
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", ko, [
627
- T.value ? (d(), f("div", $o)) : k("", !0),
628
- T.value ? k("", !0) : (d(), f("div", wo, O(L(v).actions.renderTitle(o.treeId, o.model.title)), 1))
627
+ C.value ? (d(), f("div", $o)) : k("", !0),
628
+ C.value ? k("", !0) : (d(), f("div", wo, O(L(v).actions.renderTitle(o.treeId, o.model.title)), 1))
629
629
  ])
630
630
  ]),
631
631
  _("div", So, [
632
- ((m = o.model.badge) == null ? void 0 : m.value) !== void 0 && !T.value ? (d(), x(U(uo), {
632
+ ((m = o.model.badge) == null ? void 0 : m.value) !== void 0 && !C.value ? (d(), x(U(uo), {
633
633
  key: 0,
634
- class: C([(p = o.model.badge) == null ? void 0 : p.class, "badge-sm"])
634
+ class: S([(p = o.model.badge) == null ? void 0 : p.class, "badge-sm"])
635
635
  }, {
636
636
  default: E(() => [
637
637
  J(O(o.model.badge.value), 1)
638
638
  ]),
639
639
  _: 1
640
640
  }, 8, ["class"])) : k("", !0),
641
- o.model.icons && o.model.icons.post && r.value && !o.search && !T.value ? (d(), x(U(re), {
641
+ o.model.icons && o.model.icons.post && r.value && !o.search && !C.value ? (d(), x(U(re), {
642
642
  key: 1,
643
643
  component: L(oe).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
- class: C(i.value ? "tree-open-post" : ""),
646
+ class: S(i.value ? "tree-open-post" : ""),
647
647
  onPointerdownCapture: u
648
648
  }, null, 40, ["component", "color", "class"])) : k("", !0)
649
649
  ])
@@ -658,7 +658,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
658
658
  items: o.items,
659
659
  search: o.search,
660
660
  onNodeclick: b,
661
- onNodedoubleclick: D,
661
+ onNodedoubleclick: T,
662
662
  onNodedrop: R,
663
663
  onNodecontext: $,
664
664
  onNodefoldericonclick: g
@@ -834,7 +834,7 @@ const q = Lo(), v = {
834
834
  emits: Object.keys(X),
835
835
  setup(t, { expose: e, emit: o }) {
836
836
  let n = Oe({});
837
- const s = S("false"), a = S(null), l = /* @__PURE__ */ new Set(), r = h(() => s.value && n), i = (u, g) => {
837
+ const s = D("false"), a = D(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({
@@ -873,7 +873,7 @@ const q = Lo(), v = {
873
873
  emits: ["select"],
874
874
  setup(t, { expose: e, emit: o }) {
875
875
  const n = t;
876
- let s = S(null), a = S(!1);
876
+ let s = D(null), a = D(!1);
877
877
  const l = () => {
878
878
  q.emit("menu-show-request"), a.value = !0;
879
879
  }, r = () => {
@@ -892,7 +892,7 @@ const q = Lo(), v = {
892
892
  const g = (b) => {
893
893
  o("select", b), b.model.children || r();
894
894
  };
895
- return (b, D) => {
895
+ return (b, T) => {
896
896
  const R = Re("click-outside");
897
897
  return d(), x(ht, { to: "body" }, [
898
898
  L(a) ? Z((d(), x(kt, {
@@ -901,8 +901,8 @@ const q = Lo(), v = {
901
901
  ref: s,
902
902
  items: n.items,
903
903
  "no-select": n.noSelect,
904
- class: C(n.class),
905
- style: F(n.style),
904
+ class: S(n.class),
905
+ style: z(n.style),
906
906
  onSelect: g,
907
907
  "render-title": n.renderItemTitle,
908
908
  "before-item": n.beforeItem
@@ -921,13 +921,13 @@ const q = Lo(), v = {
921
921
  },
922
922
  emits: ["select"],
923
923
  setup(t, { expose: e, emit: o }) {
924
- const n = t, s = S(null), a = S(0), l = S(0), r = h(() => ({
924
+ const n = t, s = D(null), a = D(0), l = D(0), r = h(() => ({
925
925
  left: a.value + "px",
926
926
  top: l.value + "px"
927
927
  })), i = (u) => {
928
928
  s.value.show(), gt(() => {
929
- const g = s.value.elementSize(), b = window.innerWidth, D = window.innerHeight;
930
- a.value = b - u.pageX < g.width ? u.pageX - g.width : u.pageX, l.value = D - 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, T = window.innerHeight;
930
+ a.value = b - u.pageX < g.width ? u.pageX - g.width : u.pageX, l.value = T - 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);
@@ -939,7 +939,7 @@ const q = Lo(), v = {
939
939
  ref: s,
940
940
  onSelect: c,
941
941
  items: n.items,
942
- style: F(r.value),
942
+ style: z(r.value),
943
943
  class: "context-menu",
944
944
  "no-select": !0,
945
945
  "render-item-title": n.renderItemTitle,
@@ -994,7 +994,7 @@ const q = Lo(), v = {
994
994
  },
995
995
  emits: ["select", "collapse", "expand", "move", "over", "drop", "doubleclick", "foldericonclick"],
996
996
  setup(t, { expose: e, emit: o }) {
997
- const n = t, s = S(null), a = S(!1), l = S(null), r = Ve().uid;
997
+ const n = t, s = D(null), a = D(!1), l = D(null), r = Ve().uid;
998
998
  v.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem, n.dropInside);
999
999
  const i = (p, y) => {
1000
1000
  console.log(p, y);
@@ -1013,7 +1013,7 @@ const q = Lo(), v = {
1013
1013
  v.mutations.setItemSelect(r, p.model), n.doubleClickExpand || v.actions.toggleItem(r, p.model), o("select", p);
1014
1014
  }, b = (p = null) => {
1015
1015
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("doubleclick", p);
1016
- }, D = (p = null) => {
1016
+ }, T = (p = null) => {
1017
1017
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("foldericonclick", p);
1018
1018
  }, R = (p = null) => {
1019
1019
  o("over", p);
@@ -1025,8 +1025,8 @@ const q = Lo(), v = {
1025
1025
  }, M = () => {
1026
1026
  for (let p = 0; p < n.items.length; p++)
1027
1027
  n.items[p].expanded = !1;
1028
- }, B = () => r, z = (p) => v.actions.deepSearch(n.items, p), T = (p) => {
1029
- z(p) && v.mutations.setItemSelect(r, z(p));
1028
+ }, B = () => r, F = (p) => v.actions.deepSearch(n.items, p), C = (p) => {
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 });
1032
1032
  }, N = (p) => n.contextBeforeClick({ model: p, target: l.value }), w = h(() => n.context), H = (p) => (w.value && (l.value = p.model, a.value.show(p.e)), !1), P = () => m(c.value), m = (p) => {
@@ -1040,8 +1040,8 @@ const q = Lo(), v = {
1040
1040
  expandAll: Y,
1041
1041
  collapseAll: M,
1042
1042
  getId: B,
1043
- getNode: z,
1044
- selectNode: T,
1043
+ getNode: F,
1044
+ selectNode: C,
1045
1045
  itemsCount: P,
1046
1046
  expandNode: u
1047
1047
  }), (p, y) => (d(), x(Io, {
@@ -1063,7 +1063,7 @@ const q = Lo(), v = {
1063
1063
  onNodedragover: R,
1064
1064
  onNodedrop: $,
1065
1065
  onNodecontext: H,
1066
- onNodefoldericonclick: D
1066
+ onNodefoldericonclick: T
1067
1067
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
1068
1068
  w.value ? (d(), x(Bo, {
1069
1069
  key: 0,
@@ -1103,7 +1103,7 @@ const Eo = {
1103
1103
  onMove: n
1104
1104
  }, null, 8, ["items", "no-select", "render-title"]));
1105
1105
  }
1106
- }, Os = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-a724c500"]]), Mo = {
1106
+ }, Rs = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-a724c500"]]), Mo = {
1107
1107
  __name: "DLayoutHeader",
1108
1108
  props: {
1109
1109
  fixed: {
@@ -1143,7 +1143,7 @@ const Eo = {
1143
1143
  });
1144
1144
  return (n, s) => (d(), f("header", {
1145
1145
  class: "d-layout-header",
1146
- style: F(o.value)
1146
+ style: z(o.value)
1147
1147
  }, [
1148
1148
  I(n.$slots, "default")
1149
1149
  ], 4));
@@ -1192,7 +1192,7 @@ const Eo = {
1192
1192
  });
1193
1193
  return (n, s) => (d(), f("div", {
1194
1194
  class: "d-layout-tab",
1195
- style: F(o.value)
1195
+ style: z(o.value)
1196
1196
  }, [
1197
1197
  I(n.$slots, "default")
1198
1198
  ], 4));
@@ -1237,7 +1237,7 @@ const Eo = {
1237
1237
  });
1238
1238
  return (n, s) => (d(), f("footer", {
1239
1239
  class: "d-layout-footer",
1240
- style: F(o.value)
1240
+ style: z(o.value)
1241
1241
  }, [
1242
1242
  I(n.$slots, "default")
1243
1243
  ], 4));
@@ -1277,7 +1277,7 @@ const Eo = {
1277
1277
  });
1278
1278
  return (n, s) => (d(), f("aside", {
1279
1279
  class: "d-layout-sidebar",
1280
- style: F(o.value)
1280
+ style: z(o.value)
1281
1281
  }, [
1282
1282
  I(n.$slots, "default")
1283
1283
  ], 4));
@@ -1313,7 +1313,7 @@ const Eo = {
1313
1313
  return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
1314
1314
  });
1315
1315
  return (n, s) => (d(), f("main", {
1316
- style: F(o.value),
1316
+ style: z(o.value),
1317
1317
  class: "d-layout-content"
1318
1318
  }, [
1319
1319
  I(n.$slots, "default")
@@ -1321,7 +1321,7 @@ const Eo = {
1321
1321
  }
1322
1322
  };
1323
1323
  function Ao(t) {
1324
- const e = S(0), o = h(() => `transform: translateX(${-e.value}px);`);
1324
+ const e = D(0), o = h(() => `transform: translateX(${-e.value}px);`);
1325
1325
  let n = !1;
1326
1326
  function s(u) {
1327
1327
  e.value = u;
@@ -1349,7 +1349,7 @@ function Ao(t) {
1349
1349
  i();
1350
1350
  }), o;
1351
1351
  }
1352
- const Ho = 1001, Fo = 999, zo = 998, Vs = {
1352
+ const Ho = 1001, zo = 999, Fo = 998, Os = {
1353
1353
  __name: "DLayoutAdmin",
1354
1354
  props: {
1355
1355
  mode: {
@@ -1441,37 +1441,37 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1441
1441
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1442
1442
  setup(t, { emit: e }) {
1443
1443
  const o = t, n = h(() => o.useMinWidthLayout ? `min-width:${o.minWidth}px;` : ""), s = h(() => o.useMinWidthLayout && (o.fixedHeaderAndTab || o.fixedFooter)), a = Ao(s), l = h(() => o.fixedHeaderAndTab ? a.value : ""), r = h(() => o.fixedFooter ? a.value : ""), i = h(() => {
1444
- const { transitionDuration: T, transitionTimingFunction: W } = o;
1444
+ const { transitionDuration: C, transitionTimingFunction: W } = o;
1445
1445
  return {
1446
- transitionDuration: T,
1446
+ transitionDuration: C,
1447
1447
  transitionTimingFunction: W
1448
1448
  };
1449
1449
  }), c = h(() => o.mode === "vertical"), u = h(() => o.isMobile || c.value ? 1003 : 1e3), g = h({
1450
1450
  get() {
1451
1451
  return o.sidebarCollapse;
1452
1452
  },
1453
- set(T) {
1454
- e("update:sidebar-collapse", T);
1453
+ set(C) {
1454
+ e("update:sidebar-collapse", C);
1455
1455
  }
1456
1456
  });
1457
1457
  function b() {
1458
1458
  e("sidebar-mask-click");
1459
1459
  }
1460
- const D = h(() => o.isMobile && !g.value), R = h(() => {
1461
- const { transitionDuration: T, transitionTimingFunction: W } = o;
1462
- return `background-color:${o.maskBg};transition-duration:${T}ms;transition-timing-function:${W};`;
1460
+ const T = h(() => o.isMobile && !g.value), R = h(() => {
1461
+ const { transitionDuration: C, transitionTimingFunction: W } = o;
1462
+ return `background-color:${o.maskBg};transition-duration:${C}ms;transition-timing-function:${W};`;
1463
1463
  }), $ = h(() => {
1464
- const { sidebarWidth: T, sidebarCollapsedWidth: W } = o, N = o.isMobile ? 0 : W, w = g.value ? N : T;
1464
+ const { sidebarWidth: C, sidebarCollapsedWidth: W } = o, N = o.isMobile ? 0 : W, w = g.value ? N : C;
1465
1465
  return o.sidebarVisible ? w : 0;
1466
1466
  }), A = h(() => o.isMobile ? 0 : $.value), Y = h(() => c.value ? A.value : 0), M = h(
1467
1467
  () => !o.isMobile && !c.value && o.headerVisible ? o.headerHeight : 0
1468
1468
  ), B = h(() => {
1469
- let T = 0;
1470
- return o.fixedHeaderAndTab && (o.headerVisible && (T += o.headerHeight), o.tabVisible && (T += o.tabHeight)), T;
1471
- }), z = h(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
1472
- return (T, W) => (d(), f("div", {
1469
+ let C = 0;
1470
+ return o.fixedHeaderAndTab && (o.headerVisible && (C += o.headerHeight), o.tabVisible && (C += o.tabHeight)), C;
1471
+ }), F = h(() => o.fixedFooter && o.footerVisible ? o.footerHeight : 0);
1472
+ return (C, W) => (d(), f("div", {
1473
1473
  class: "d-layout",
1474
- style: F(n.value)
1474
+ style: z(n.value)
1475
1475
  }, [
1476
1476
  t.headerVisible ? (d(), x(Mo, ue({ key: 0 }, i.value, {
1477
1477
  fixed: t.fixedHeaderAndTab,
@@ -1482,13 +1482,13 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1482
1482
  style: l.value
1483
1483
  }), {
1484
1484
  default: E(() => [
1485
- I(T.$slots, "header")
1485
+ I(C.$slots, "header")
1486
1486
  ]),
1487
1487
  _: 3
1488
1488
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1489
1489
  t.tabVisible ? (d(), x(No, ue({ key: 1 }, i.value, {
1490
1490
  fixed: t.fixedHeaderAndTab,
1491
- "z-index": Fo,
1491
+ "z-index": zo,
1492
1492
  "min-width": t.minWidth,
1493
1493
  top: t.headerHeight,
1494
1494
  height: t.tabHeight,
@@ -1496,7 +1496,7 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1496
1496
  style: l.value
1497
1497
  }), {
1498
1498
  default: E(() => [
1499
- I(T.$slots, "tab")
1499
+ I(C.$slots, "tab")
1500
1500
  ]),
1501
1501
  _: 3
1502
1502
  }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
@@ -1506,37 +1506,37 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1506
1506
  "padding-top": M.value
1507
1507
  }), {
1508
1508
  default: E(() => [
1509
- I(T.$slots, "sidebar")
1509
+ I(C.$slots, "sidebar")
1510
1510
  ]),
1511
1511
  _: 3
1512
1512
  }, 16, ["z-index", "width", "padding-top"])) : k("", !0),
1513
- D.value ? (d(), f("div", {
1513
+ T.value ? (d(), f("div", {
1514
1514
  key: 3,
1515
1515
  class: "d-layout-sidebar-mask",
1516
- style: F(R.value),
1516
+ style: z(R.value),
1517
1517
  onClick: b
1518
1518
  }, null, 4)) : k("", !0),
1519
1519
  Q(Vo, ue(i.value, {
1520
1520
  "padding-top": B.value,
1521
- "padding-bottom": z.value,
1521
+ "padding-bottom": F.value,
1522
1522
  "padding-left": A.value,
1523
1523
  "overflow-hidden": t.addMainOverflowHidden
1524
1524
  }), {
1525
1525
  default: E(() => [
1526
- I(T.$slots, "default")
1526
+ I(C.$slots, "default")
1527
1527
  ]),
1528
1528
  _: 3
1529
1529
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1530
1530
  t.footerVisible ? (d(), x(Ro, ue({ key: 4 }, i.value, {
1531
1531
  fixed: t.fixedFooter,
1532
- "z-index": zo,
1532
+ "z-index": Fo,
1533
1533
  "min-width": t.minWidth,
1534
1534
  height: t.footerHeight,
1535
1535
  "padding-left": A.value,
1536
1536
  style: r.value
1537
1537
  }), {
1538
1538
  default: E(() => [
1539
- I(T.$slots, "footer")
1539
+ I(C.$slots, "footer")
1540
1540
  ]),
1541
1541
  _: 3
1542
1542
  }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
@@ -1561,7 +1561,7 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1561
1561
  pe.state.theme = pe.state.theme === "dark" ? "light" : "dark", document.documentElement.classList.remove("dark"), document.documentElement.classList.remove("light"), document.documentElement.classList.add(pe.state.theme);
1562
1562
  }
1563
1563
  }
1564
- }, As = {
1564
+ }, Vs = {
1565
1565
  __name: "DConfigProvider",
1566
1566
  props: {
1567
1567
  theme: {
@@ -1574,7 +1574,7 @@ const Ho = 1001, Fo = 999, zo = 998, Vs = {
1574
1574
  return pe.mutations.setTheme(e.theme), (o, n) => I(o.$slots, "default");
1575
1575
  }
1576
1576
  };
1577
- const Hs = {
1577
+ const As = {
1578
1578
  __name: "DScrollProvider",
1579
1579
  props: {
1580
1580
  xHide: {
@@ -1626,12 +1626,12 @@ const Wo = {
1626
1626
  }));
1627
1627
  const o = h(() => e.xHide ? "hidden" : "visible"), n = h(() => e.yHide ? "hidden" : "visible");
1628
1628
  return (s, a) => (d(), f("div", {
1629
- class: C(e.autoHide ? "d-scroll-hide" : "d-scroll")
1629
+ class: S(e.autoHide ? "d-scroll-hide" : "d-scroll")
1630
1630
  }, [
1631
1631
  I(s.$slots, "default", {}, void 0, !0)
1632
1632
  ], 2));
1633
1633
  }
1634
- }, Fs = /* @__PURE__ */ se(Wo, [["__scopeId", "data-v-d50b3609"]]), Po = { class: "modal-content" }, jo = { class: "modal-header" }, Xo = { class: "modal-title" }, Yo = { class: "modal-body" }, Uo = { class: "modal-footer" }, $t = {
1634
+ }, Hs = /* @__PURE__ */ se(Wo, [["__scopeId", "data-v-d50b3609"]]), Po = { class: "modal-content" }, jo = { class: "modal-header" }, Xo = { class: "modal-title" }, Yo = { class: "modal-body" }, Uo = { class: "modal-footer" }, $t = {
1635
1635
  __name: "DModal",
1636
1636
  props: {
1637
1637
  show: Boolean,
@@ -1642,7 +1642,7 @@ const Wo = {
1642
1642
  },
1643
1643
  emits: ["open", "close"],
1644
1644
  setup(t, { expose: e, emit: o }) {
1645
- const n = t, s = S(null), a = S(!1);
1645
+ const n = t, s = D(null), a = D(!1);
1646
1646
  a.value = n == null ? void 0 : n.show;
1647
1647
  const l = () => {
1648
1648
  a.value = !0, o("open", s);
@@ -1665,7 +1665,7 @@ const Wo = {
1665
1665
  }, [
1666
1666
  _("div", {
1667
1667
  class: "modal-dialog",
1668
- style: F({ width: n.width, maxWidth: n.maxWidth })
1668
+ style: z({ width: n.width, maxWidth: n.maxWidth })
1669
1669
  }, [
1670
1670
  _("div", Po, [
1671
1671
  _("div", jo, [
@@ -1721,7 +1721,7 @@ const Go = Nt({
1721
1721
  transitionAttrs: Object
1722
1722
  },
1723
1723
  setup() {
1724
- const t = S();
1724
+ const t = D();
1725
1725
  return vt(t, () => {
1726
1726
  ce.value && (ce.value.comp = t.value);
1727
1727
  }), {
@@ -1836,8 +1836,8 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1836
1836
  },
1837
1837
  emits: ["select", "click"],
1838
1838
  setup(t, { expose: e, emit: o }) {
1839
- const n = t, s = Ce(), a = S(null), l = S(null), r = S(0), i = S(0), c = (D) => {
1840
- if (o("click", D), a.value.isShowed()) {
1839
+ const n = t, s = Ce(), a = D(null), l = D(null), r = D(0), i = D(0), c = (T) => {
1840
+ if (o("click", T), a.value.isShowed()) {
1841
1841
  a.value.hide();
1842
1842
  return;
1843
1843
  }
@@ -1845,32 +1845,32 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1845
1845
  const R = a.value.elementSize(), $ = l.value.elementSize(), A = window.innerWidth, Y = window.innerHeight;
1846
1846
  r.value = A - ($.x + $.width) < R.width ? $.left - R.width + $.width : $.left, i.value = Y - ($.y + $.height) < R.height ? $.top - R.height - 5 : $.height + $.top + 5;
1847
1847
  });
1848
- }, u = (D) => {
1849
- o("select", D);
1848
+ }, u = (T) => {
1849
+ o("select", T);
1850
1850
  }, g = h(() => ({ left: r.value + "px", top: i.value + "px", position: n.bodyAsParent ? "absolute" : "fixed", ...n.menuStyle }));
1851
1851
  e({
1852
1852
  show: c
1853
1853
  });
1854
- const b = (D) => !!s[D];
1855
- return (D, R) => (d(), f("div", on, [
1854
+ const b = (T) => !!s[T];
1855
+ return (T, R) => (d(), f("div", on, [
1856
1856
  b("default") ? (d(), x(le, {
1857
1857
  key: 0,
1858
1858
  ref_key: "buttonRef",
1859
1859
  ref: l,
1860
- class: C(n.class),
1860
+ class: S(n.class),
1861
1861
  icon: n.icon,
1862
1862
  onClick: j(c, ["stop", "prevent"]),
1863
1863
  type: n.type
1864
1864
  }, {
1865
1865
  default: E(() => [
1866
- I(D.$slots, "default")
1866
+ I(T.$slots, "default")
1867
1867
  ]),
1868
1868
  _: 3
1869
1869
  }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(le, {
1870
1870
  key: 1,
1871
1871
  ref_key: "buttonRef",
1872
1872
  ref: l,
1873
- class: C(n.class),
1873
+ class: S(n.class),
1874
1874
  icon: n.icon,
1875
1875
  onClick: j(c, ["stop", "prevent"]),
1876
1876
  type: n.type
@@ -1880,7 +1880,7 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1880
1880
  ref: a,
1881
1881
  items: n.items,
1882
1882
  class: "dropdown-menu",
1883
- style: F(g.value),
1883
+ style: z(g.value),
1884
1884
  "no-select": !0,
1885
1885
  onSelect: u,
1886
1886
  "render-item-title": n.renderItemTitle,
@@ -1895,7 +1895,7 @@ function an(t, e) {
1895
1895
  I(t.$slots, "default")
1896
1896
  ]);
1897
1897
  }
1898
- const ln = /* @__PURE__ */ se(nn, [["render", an]]), rn = { class: "card-header" }, dn = { class: "modal-title" }, cn = { class: "card-body" }, un = { class: "card-footer" }, Ws = {
1898
+ const ln = /* @__PURE__ */ se(nn, [["render", an]]), rn = { class: "card-header" }, dn = { class: "modal-title" }, cn = { class: "card-body" }, un = { class: "card-footer" }, Fs = {
1899
1899
  __name: "DCard",
1900
1900
  setup(t) {
1901
1901
  return (e, o) => (d(), x(ln, { class: "d-card" }, {
@@ -2039,7 +2039,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2039
2039
  }), xn = ["data-id"], kn = ["onClick"], $n = ["innerHTML"], wn = ["innerHTML"], Sn = {
2040
2040
  key: 0,
2041
2041
  class: "d-notification-title"
2042
- }, Dn = { class: "notification-content" }, Ps = {
2042
+ }, Dn = { class: "notification-content" }, Ws = {
2043
2043
  __name: "DNotificationProvider",
2044
2044
  props: {
2045
2045
  group: {
@@ -2112,13 +2112,13 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2112
2112
  const o = t, n = {
2113
2113
  IDLE: 0,
2114
2114
  DESTROYED: 2
2115
- }, s = S([]), a = S(null), l = S(pn.get("velocity")), r = h(() => o.animationType === "velocity"), i = h(() => r.value ? _n : bn), c = h(() => s.value.filter((m) => m.state !== n.DESTROYED)), u = h(() => hn(o.width)), g = h(() => {
2115
+ }, s = D([]), a = D(null), l = D(pn.get("velocity")), r = h(() => o.animationType === "velocity"), i = h(() => r.value ? _n : bn), c = h(() => s.value.filter((m) => m.state !== n.DESTROYED)), u = h(() => hn(o.width)), g = h(() => {
2116
2116
  const { x: m, y: p } = yn(o.position), y = u.value.value, V = u.value.type, ae = {
2117
2117
  width: y + V
2118
2118
  };
2119
2119
  return p && (ae[p] = "0px"), m && (m === "center" ? ae.left = `calc(50% - ${+y / 2}${V})` : ae[m] = "0px"), ae;
2120
- }), b = h(() => "bottom" in g.value), D = (m) => {
2121
- e("click", m), o.closeOnClick && z(m);
2120
+ }), b = h(() => "bottom" in g.value), T = (m) => {
2121
+ e("click", m), o.closeOnClick && F(m);
2122
2122
  }, R = () => {
2123
2123
  var m;
2124
2124
  o.pauseOnHover && ((m = a.value) == null || m.pause());
@@ -2142,24 +2142,24 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2142
2142
  length: p + 2 * y,
2143
2143
  data: _e
2144
2144
  };
2145
- p >= 0 && (a.value = new fn(() => z(ee), ee.length, ee));
2145
+ p >= 0 && (a.value = new fn(() => F(ee), ee.length, ee));
2146
2146
  const xe = o.reverse ? !b.value : b.value;
2147
2147
  let de = -1;
2148
2148
  const ke = c.value.some((ge) => ge.title === m.title && ge.text === m.text);
2149
- (!V || !ke) && (xe ? (s.value.push(ee), e("start", ee), c.value.length > o.max && (de = 0)) : (s.value.unshift(ee), e("start", ee), c.value.length > o.max && (de = c.value.length - 1)), de !== -1 && z(c.value[de]));
2149
+ (!V || !ke) && (xe ? (s.value.push(ee), e("start", ee), c.value.length > o.max && (de = 0)) : (s.value.unshift(ee), e("start", ee), c.value.length > o.max && (de = c.value.length - 1)), de !== -1 && F(c.value[de]));
2150
2150
  }, Y = (m) => {
2151
- T(m);
2151
+ C(m);
2152
2152
  }, M = (m) => [
2153
2153
  "d-notification-template",
2154
2154
  o.classes,
2155
2155
  m.type || ""
2156
- ], B = (m) => r.value ? void 0 : { transition: `all ${m.speed}ms` }, z = (m) => {
2156
+ ], B = (m) => r.value ? void 0 : { transition: `all ${m.speed}ms` }, F = (m) => {
2157
2157
  clearTimeout(m.timer), m.state = n.DESTROYED, P(), e("destroy", m);
2158
- }, T = (m) => {
2158
+ }, C = (m) => {
2159
2159
  const p = s.value.find((y) => y.id === m);
2160
- p && z(p);
2160
+ p && F(p);
2161
2161
  }, W = () => {
2162
- c.value.forEach(z);
2162
+ c.value.forEach(F);
2163
2163
  }, N = (m, p) => {
2164
2164
  var V;
2165
2165
  const y = (V = o.animation) == null ? void 0 : V[m];
@@ -2188,7 +2188,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2188
2188
  q.on("notification-add", A), q.on("notification-close", Y);
2189
2189
  }), (m, p) => (d(), f("div", {
2190
2190
  class: "d-notification-group",
2191
- style: F(g.value)
2191
+ style: z(g.value)
2192
2192
  }, [
2193
2193
  (d(), x(U(i.value), {
2194
2194
  name: t.animationName,
@@ -2200,19 +2200,19 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2200
2200
  (d(!0), f(ne, null, me(c.value, (y) => (d(), f("div", {
2201
2201
  key: y.id,
2202
2202
  class: "d-notification-wrapper",
2203
- style: F(B(y)),
2203
+ style: z(B(y)),
2204
2204
  "data-id": y.id,
2205
2205
  onMouseenter: R,
2206
2206
  onMouseleave: $
2207
2207
  }, [
2208
2208
  I(m.$slots, "body", {
2209
- class: C([t.classes, y.type]),
2209
+ class: S([t.classes, y.type]),
2210
2210
  item: y,
2211
- close: () => z(y)
2211
+ close: () => F(y)
2212
2212
  }, () => [
2213
2213
  _("div", {
2214
- class: C(M(y)),
2215
- onClick: (V) => D(y)
2214
+ class: S(M(y)),
2215
+ onClick: (V) => T(y)
2216
2216
  }, [
2217
2217
  t.dangerouslySetInnerHtml ? (d(), f(ne, { key: 0 }, [
2218
2218
  y.title ? (d(), f("div", {
@@ -2236,7 +2236,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2236
2236
  }, 40, ["name"]))
2237
2237
  ], 4));
2238
2238
  }
2239
- }, Tn = { class: "d-info-progress-icon-container" }, Cn = { class: "d-info-progress-icon" }, Ln = { class: "d-info-progress-data-container" }, In = ["innerHTML"], js = {
2239
+ }, Tn = { class: "d-info-progress-icon-container" }, Cn = { class: "d-info-progress-icon" }, Ln = { class: "d-info-progress-data-container" }, In = ["innerHTML"], Ps = {
2240
2240
  __name: "DInfoProgress",
2241
2241
  props: {
2242
2242
  style: [String, Object],
@@ -2249,8 +2249,8 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2249
2249
  setup(t, { emit: e }) {
2250
2250
  const o = t, n = h(() => o.icon ? oe.getters.getIcon(o.icon) : null);
2251
2251
  return (s, a) => (d(), f("div", {
2252
- class: C(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2253
- style: F(o.style),
2252
+ class: S(["d-info-progress", o.type ? `d-info-progress-${o.type}` : null]),
2253
+ style: z(o.style),
2254
2254
  onClick: a[0] || (a[0] = (l) => {
2255
2255
  e("click", l);
2256
2256
  })
@@ -2268,7 +2268,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2268
2268
  _("div", Ln, [
2269
2269
  _("div", {
2270
2270
  class: "d-info-progress-line",
2271
- style: F("width: " + o.progress + "%;")
2271
+ style: z("width: " + o.progress + "%;")
2272
2272
  }, null, 4),
2273
2273
  _("div", {
2274
2274
  class: "d-info-progress-label",
@@ -2277,7 +2277,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2277
2277
  ])
2278
2278
  ], 6));
2279
2279
  }
2280
- }, Bn = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Mn = ["for"], Xs = {
2280
+ }, Bn = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Mn = ["for"], js = {
2281
2281
  __name: "DCheckbox",
2282
2282
  props: {
2283
2283
  label: String,
@@ -2320,7 +2320,7 @@ async function Nn(t, e) {
2320
2320
  async function Rn(t, e) {
2321
2321
  return await wt(Qo, { title: t, message: e });
2322
2322
  }
2323
- const Ys = {
2323
+ const Xs = {
2324
2324
  __name: "DDialogProvider",
2325
2325
  setup(t) {
2326
2326
  return window.alert = Rn, window.confirm = Nn, (e, o) => (d(), x(L(Ko)));
@@ -2328,7 +2328,7 @@ const Ys = {
2328
2328
  }, On = { class: "d-select" }, Vn = {
2329
2329
  key: 0,
2330
2330
  class: "label"
2331
- }, An = ["disabled"], Hn = ["value", "selected", "disabled"], Us = {
2331
+ }, An = ["disabled"], Hn = ["value", "selected", "disabled"], Ys = {
2332
2332
  __name: "DSelect",
2333
2333
  props: {
2334
2334
  label: String,
@@ -2359,8 +2359,8 @@ const Ys = {
2359
2359
  o.label ? (d(), f("div", Vn, O(o.label), 1)) : k("", !0),
2360
2360
  Z(_("select", {
2361
2361
  "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2362
- class: C(n.value),
2363
- style: F(o.size === "wide" ? "width:100%" : ""),
2362
+ class: S(n.value),
2363
+ style: z(o.size === "wide" ? "width:100%" : ""),
2364
2364
  disabled: o.disabled
2365
2365
  }, [
2366
2366
  (d(!0), f(ne, null, me(o.options, (r, i) => (d(), f("option", {
@@ -2375,7 +2375,7 @@ const Ys = {
2375
2375
  ]));
2376
2376
  }
2377
2377
  };
2378
- const Fn = ["title"], zn = { class: "tab-icon" }, Wn = { class: "tab-label" }, Pn = ["title"], jn = ["title"], Xn = {
2378
+ const zn = ["title"], Fn = { class: "tab-icon" }, Wn = { class: "tab-label" }, Pn = ["title"], jn = ["title"], Xn = {
2379
2379
  __name: "DTabLabel",
2380
2380
  props: {
2381
2381
  tab: Object
@@ -2387,13 +2387,13 @@ const Fn = ["title"], zn = { class: "tab-icon" }, Wn = { class: "tab-label" }, P
2387
2387
  title: e.tab.title ? e.tab.title : "",
2388
2388
  style: { display: "flex", "flex-direction": "column" }
2389
2389
  }, [
2390
- _("div", zn, [
2390
+ _("div", Fn, [
2391
2391
  Q(L(re), {
2392
2392
  component: e.tab.icon
2393
2393
  }, null, 8, ["component"])
2394
2394
  ]),
2395
2395
  _("div", Wn, O(e.tab.label), 1)
2396
- ], 8, Fn)) : e.tab.label ? (d(), f("span", {
2396
+ ], 8, zn)) : e.tab.label ? (d(), f("span", {
2397
2397
  key: 1,
2398
2398
  title: e.tab.title ? e.tab.title : ""
2399
2399
  }, O(e.tab.label), 9, Pn)) : e.tab.icon ? (d(), f("span", {
@@ -2412,7 +2412,7 @@ const Un = { class: "d-tabs" }, qn = {
2412
2412
  tabs: Array
2413
2413
  },
2414
2414
  setup(t, { expose: e }) {
2415
- const n = Ot(t, "tabs"), s = S([]), a = S(0), l = (c) => {
2415
+ const n = Ot(t, "tabs"), s = D([]), a = D(0), l = (c) => {
2416
2416
  a.value = c;
2417
2417
  }, r = (c) => {
2418
2418
  c && !s.value.includes(c) && s.value.push(c);
@@ -2424,8 +2424,8 @@ const Un = { class: "d-tabs" }, qn = {
2424
2424
  (d(!0), f(ne, null, me(n.value, (g, b) => (d(), x(Yn, {
2425
2425
  index: b,
2426
2426
  tab: g,
2427
- class: C(["d-tab-title", b === a.value ? "active" : ""]),
2428
- onClick: (D) => l(b)
2427
+ class: S(["d-tab-title", b === a.value ? "active" : ""]),
2428
+ onClick: (T) => l(b)
2429
2429
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2430
2430
  ]),
2431
2431
  (d(), x(Vt, null, [
@@ -2440,7 +2440,7 @@ const Un = { class: "d-tabs" }, qn = {
2440
2440
  ], 1024))
2441
2441
  ], 64));
2442
2442
  }
2443
- }, qs = /* @__PURE__ */ se(qn, [["__scopeId", "data-v-4b44471a"]]);
2443
+ }, Us = /* @__PURE__ */ se(qn, [["__scopeId", "data-v-4b44471a"]]);
2444
2444
  const Gn = { class: "d-grid" }, Zn = {
2445
2445
  __name: "DGrid",
2446
2446
  props: {
@@ -2477,7 +2477,7 @@ const Gn = { class: "d-grid" }, Zn = {
2477
2477
  I(u.$slots, "default", {}, void 0, !0)
2478
2478
  ]));
2479
2479
  }
2480
- }, Gs = /* @__PURE__ */ se(Zn, [["__scopeId", "data-v-b45e8130"]]), Kn = ["src", "alt", "title"], Zs = {
2480
+ }, qs = /* @__PURE__ */ se(Zn, [["__scopeId", "data-v-b45e8130"]]), Kn = ["src", "alt", "title"], Gs = {
2481
2481
  __name: "DImage",
2482
2482
  props: {
2483
2483
  src: String,
@@ -2489,7 +2489,7 @@ const Gn = { class: "d-grid" }, Zn = {
2489
2489
  radius: String
2490
2490
  },
2491
2491
  setup(t) {
2492
- const e = t, o = S(null), n = new Image();
2492
+ const e = t, o = D(null), n = new Image();
2493
2493
  return n.onload = () => {
2494
2494
  o.value = n.src;
2495
2495
  }, n.onerror = () => {
@@ -2501,7 +2501,7 @@ const Gn = { class: "d-grid" }, Zn = {
2501
2501
  src: o.value,
2502
2502
  alt: e.alt,
2503
2503
  title: e.title,
2504
- style: F({ width: e.width, height: e.height, borderRadius: e.radius })
2504
+ style: z({ width: e.width, height: e.height, borderRadius: e.radius })
2505
2505
  }, null, 12, Kn)) : k("", !0);
2506
2506
  }
2507
2507
  };
@@ -2528,7 +2528,7 @@ const Jn = { class: "d-textarea" }, Qn = {
2528
2528
  },
2529
2529
  emits: ["update:modelValue"],
2530
2530
  setup(t, { expose: e, emit: o }) {
2531
- const n = t, s = S(null), a = h(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = h({
2531
+ const n = t, s = D(null), a = h(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = h({
2532
2532
  get: () => n.modelValue,
2533
2533
  set: (i) => {
2534
2534
  o("update:modelValue", i);
@@ -2551,25 +2551,29 @@ const Jn = { class: "d-textarea" }, Qn = {
2551
2551
  rows: n.rows,
2552
2552
  cols: n.cols,
2553
2553
  placeholder: n.placeholder,
2554
- class: C(a.value),
2554
+ class: S(a.value),
2555
2555
  style: { width: "100%" }
2556
2556
  }, null, 10, es), [
2557
- [Ft, l.value]
2557
+ [zt, l.value]
2558
2558
  ])
2559
2559
  ]));
2560
2560
  }
2561
- }, Ks = /* @__PURE__ */ se(ts, [["__scopeId", "data-v-0e805d5d"]]), os = { class: "d-switcher" }, ns = ["id", "checked", "disabled"], ss = ["for"], Js = {
2561
+ }, Zs = /* @__PURE__ */ se(ts, [["__scopeId", "data-v-0e805d5d"]]), os = ["id", "checked", "disabled"], ns = ["for"], Ks = {
2562
2562
  __name: "DSwitcher",
2563
2563
  props: {
2564
2564
  modelValue: Boolean,
2565
+ type: {
2566
+ type: String,
2567
+ default: "success"
2568
+ },
2565
2569
  disabled: {
2566
2570
  type: Boolean,
2567
2571
  default: !1
2568
2572
  },
2569
- change: Function,
2573
+ //change: Function,
2570
2574
  checked: Boolean
2571
2575
  },
2572
- emits: ["update:modelValue"],
2576
+ emits: ["update:modelValue", "change"],
2573
2577
  setup(t, { emit: e }) {
2574
2578
  const o = t, s = Ve().uid, a = h({
2575
2579
  get: () => o.modelValue,
@@ -2577,24 +2581,27 @@ const Jn = { class: "d-textarea" }, Qn = {
2577
2581
  e("update:modelValue", l);
2578
2582
  }
2579
2583
  });
2580
- return (l, r) => (d(), f("div", os, [
2584
+ return (l, r) => (d(), f("div", {
2585
+ class: S(["d-switcher", o.type])
2586
+ }, [
2581
2587
  Z(_("input", {
2582
2588
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2583
2589
  id: `i-${L(s)}`,
2584
2590
  type: "checkbox",
2585
2591
  checked: o.checked,
2586
2592
  disabled: o.disabled,
2587
- onChange: r[1] || (r[1] = (...i) => o.change && o.change(...i))
2588
- }, null, 40, ns), [
2593
+ onChange: r[1] || (r[1] = (i) => e.call("change", i))
2594
+ }, null, 40, os), [
2589
2595
  [_t, a.value]
2590
2596
  ]),
2591
2597
  _("label", {
2592
- for: `i-${L(s)}`
2593
- }, "Toggle", 8, ss)
2594
- ]));
2598
+ for: `i-${L(s)}`,
2599
+ class: S(o.type)
2600
+ }, "Toggle", 10, ns)
2601
+ ], 2));
2595
2602
  }
2596
2603
  };
2597
- class Qs {
2604
+ class Js {
2598
2605
  constructor(e) {
2599
2606
  this.fields = e;
2600
2607
  }
@@ -2605,7 +2612,7 @@ class Qs {
2605
2612
  return !e;
2606
2613
  }
2607
2614
  }
2608
- class as {
2615
+ class ss {
2609
2616
  validate(e, o = "https") {
2610
2617
  return this._isValidURL(e) || (e = o + "://" + e), this._isValidURL(e);
2611
2618
  }
@@ -2626,8 +2633,8 @@ class as {
2626
2633
  }
2627
2634
  }
2628
2635
  }
2629
- const is = new as();
2630
- class ls {
2636
+ const as = new ss();
2637
+ class is {
2631
2638
  validate(e = "") {
2632
2639
  return e !== "";
2633
2640
  }
@@ -2635,8 +2642,8 @@ class ls {
2635
2642
  return e;
2636
2643
  }
2637
2644
  }
2638
- const rs = new ls();
2639
- class ds {
2645
+ const ls = new is();
2646
+ class rs {
2640
2647
  validate(e = "", o = 0) {
2641
2648
  return e.length >= o;
2642
2649
  }
@@ -2644,8 +2651,8 @@ class ds {
2644
2651
  return e;
2645
2652
  }
2646
2653
  }
2647
- const cs = new ds();
2648
- class us {
2654
+ const ds = new rs();
2655
+ class cs {
2649
2656
  validate(e = "", o = 0) {
2650
2657
  return e.length <= o;
2651
2658
  }
@@ -2653,8 +2660,8 @@ class us {
2653
2660
  return e;
2654
2661
  }
2655
2662
  }
2656
- const ps = new us();
2657
- class fs {
2663
+ const us = new cs();
2664
+ class ps {
2658
2665
  validate(e) {
2659
2666
  return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(e);
2660
2667
  }
@@ -2662,8 +2669,8 @@ class fs {
2662
2669
  return e;
2663
2670
  }
2664
2671
  }
2665
- const ms = new fs();
2666
- class hs {
2672
+ const fs = new ps();
2673
+ class ms {
2667
2674
  validate(e) {
2668
2675
  return !isNaN(parseFloat(e)) && !isNaN(e - 0);
2669
2676
  }
@@ -2671,17 +2678,17 @@ class hs {
2671
2678
  return e;
2672
2679
  }
2673
2680
  }
2674
- const gs = new hs(), G = {
2675
- RulesUrl: is,
2676
- RulesRequired: rs,
2677
- RulesMin: cs,
2678
- RulesMax: ps,
2679
- RulesEmail: ms,
2680
- RulesNumber: gs
2681
+ const hs = new ms(), G = {
2682
+ RulesUrl: as,
2683
+ RulesRequired: ls,
2684
+ RulesMin: ds,
2685
+ RulesMax: us,
2686
+ RulesEmail: fs,
2687
+ RulesNumber: hs
2681
2688
  };
2682
- class vs {
2689
+ class gs {
2683
2690
  validate(e, o) {
2684
- var s, a, l, r, i, c, u, g, b, D, R, $, A, Y;
2691
+ var s, a, l, r, i, c, u, g, b, T, R, $, A, Y;
2685
2692
  let n = "";
2686
2693
  if (o) {
2687
2694
  let M = !1;
@@ -2698,7 +2705,7 @@ class vs {
2698
2705
  n = G.RulesMin.validate(e, (i = o[B]) == null ? void 0 : i.value) ? "" : G.RulesMin.message((c = o[B]) != null && c.message ? (u = o[B]) == null ? void 0 : u.message : "very_small"), M = n !== "";
2699
2706
  break;
2700
2707
  case "max":
2701
- n = G.RulesMax.validate(e, (g = o[B]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((b = o[B]) != null && b.message ? (D = o[B]) == null ? void 0 : D.message : "vary_large"), M = n !== "";
2708
+ n = G.RulesMax.validate(e, (g = o[B]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((b = o[B]) != null && b.message ? (T = o[B]) == null ? void 0 : T.message : "vary_large"), M = n !== "";
2702
2709
  break;
2703
2710
  case "email":
2704
2711
  n = G.RulesEmail.validate(e) ? "" : G.RulesMax.message((R = o[B]) != null && R.message ? ($ = o[B]) == null ? void 0 : $.message : "email_incorrect"), M = n !== "";
@@ -2713,13 +2720,13 @@ class vs {
2713
2720
  return n;
2714
2721
  }
2715
2722
  }
2716
- const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column" } }, bs = {
2723
+ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column" } }, _s = {
2717
2724
  key: 0,
2718
2725
  class: "d-label"
2719
- }, xs = {
2726
+ }, bs = {
2720
2727
  key: 0,
2721
2728
  class: "text-red"
2722
- }, ks = { style: { display: "flex", "flex-direction": "row" } }, $s = { style: { flex: "1", position: "relative" } }, ws = /* @__PURE__ */ _("svg", {
2729
+ }, xs = { style: { display: "flex", "flex-direction": "row" } }, ks = { style: { flex: "1", position: "relative" } }, $s = /* @__PURE__ */ _("svg", {
2723
2730
  xmlns: "http://www.w3.org/2000/svg",
2724
2731
  viewBox: "0 0 24 24"
2725
2732
  }, [
@@ -2727,9 +2734,9 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2727
2734
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2728
2735
  fill: "currentColor"
2729
2736
  })
2730
- ], -1), Ss = [
2731
- ws
2732
- ], Ds = ["id", "type", "placeholder", "disabled"], Ts = /* @__PURE__ */ _("svg", {
2737
+ ], -1), ws = [
2738
+ $s
2739
+ ], Ss = ["id", "type", "placeholder", "disabled"], Ds = /* @__PURE__ */ _("svg", {
2733
2740
  xmlns: "http://www.w3.org/2000/svg",
2734
2741
  viewBox: "0 0 24 24"
2735
2742
  }, [
@@ -2737,15 +2744,15 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2737
2744
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z",
2738
2745
  fill: "currentColor"
2739
2746
  })
2740
- ], -1), Cs = [
2741
- Ts
2742
- ], Ls = {
2747
+ ], -1), Ts = [
2748
+ Ds
2749
+ ], Cs = {
2743
2750
  key: 1,
2744
2751
  class: "d-help"
2745
- }, Is = {
2752
+ }, Ls = {
2746
2753
  key: 2,
2747
2754
  class: "d-error text-red"
2748
- }, ea = {
2755
+ }, Qs = {
2749
2756
  __name: "DInputString",
2750
2757
  props: {
2751
2758
  form: Object,
@@ -2769,7 +2776,7 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2769
2776
  },
2770
2777
  emits: ["update:modelValue", "input", "blur"],
2771
2778
  setup(t, { expose: e, emit: o }) {
2772
- const n = t, s = S(n.error), a = zt(), l = S(!1), r = S(null);
2779
+ const n = t, s = D(n.error), a = Ft(), l = D(!1), r = D(null);
2773
2780
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2774
2781
  const i = h({
2775
2782
  get: () => n.modelValue,
@@ -2781,12 +2788,12 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2781
2788
  o("input", M), b();
2782
2789
  }, b = () => {
2783
2790
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2784
- return s.value = ys.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2791
+ return s.value = vs.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2785
2792
  };
2786
2793
  he(() => {
2787
- D();
2794
+ T();
2788
2795
  });
2789
- const D = () => {
2796
+ const T = () => {
2790
2797
  var M;
2791
2798
  (M = r.value) == null || M.focus();
2792
2799
  }, R = () => {
@@ -2799,39 +2806,39 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2799
2806
  o("blur", M);
2800
2807
  };
2801
2808
  return e({
2802
- focus: D,
2809
+ focus: T,
2803
2810
  setError: A,
2804
2811
  validate: b
2805
2812
  }), (M, B) => {
2806
- var z, T, W, N, w, H, P, m, p, y, V, ae, ve, ye, _e, be, ee, xe, de, ke, Le, ge, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt, st;
2813
+ var F, C, W, N, w, H, P, m, p, y, V, ae, ve, ye, _e, be, ee, xe, de, ke, Le, ge, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot, nt, st;
2807
2814
  return d(), f("div", {
2808
- class: C(["d-input-string", u.value])
2815
+ class: S(["d-input-string", u.value])
2809
2816
  }, [
2810
- _("div", _s, [
2811
- n.label ? (d(), f("div", bs, [
2817
+ _("div", ys, [
2818
+ n.label ? (d(), f("div", _s, [
2812
2819
  J(O(n.label), 1),
2813
- (z = n.form) != null && z.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", xs, "*")) : k("", !0)
2820
+ (F = n.form) != null && F.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", bs, "*")) : k("", !0)
2814
2821
  ])) : k("", !0),
2815
- _("div", ks, [
2816
- (W = (T = n.pre) == null ? void 0 : T.outside) != null && W.component ? (d(), f("div", {
2822
+ _("div", xs, [
2823
+ (W = (C = n.pre) == null ? void 0 : C.outside) != null && W.component ? (d(), f("div", {
2817
2824
  key: 0,
2818
- class: C(["d-pre", n.disabled ? "disabled" : ""])
2825
+ class: S(["d-pre", n.disabled ? "disabled" : ""])
2819
2826
  }, [
2820
2827
  (d(), x(U((w = (N = n.pre) == null ? void 0 : N.outside) == null ? void 0 : w.component)))
2821
2828
  ], 2)) : (P = (H = n.pre) == null ? void 0 : H.outside) != null && P.text ? (d(), f("div", {
2822
2829
  key: 1,
2823
- class: C(["d-pre", n.disabled ? "disabled" : ""])
2830
+ class: S(["d-pre", n.disabled ? "disabled" : ""])
2824
2831
  }, [
2825
2832
  _("div", {
2826
- class: C(["d-text", l.value ? "focused" : ""])
2833
+ class: S(["d-text", l.value ? "focused" : ""])
2827
2834
  }, O((p = (m = n.pre) == null ? void 0 : m.outside) == null ? void 0 : p.text), 3)
2828
2835
  ], 2)) : k("", !0),
2829
- _("div", $s, [
2836
+ _("div", ks, [
2830
2837
  (V = (y = n.pre) == null ? void 0 : y.inside) != null && V.action && ((ve = (ae = n.pre) == null ? void 0 : ae.inside) == null ? void 0 : ve.action) === "clear" && ((ye = i.value) == null ? void 0 : ye.length) > 0 ? (d(), f("div", {
2831
2838
  key: 0,
2832
2839
  class: "d-pre-inside-button",
2833
2840
  onClick: R
2834
- }, Ss)) : k("", !0),
2841
+ }, ws)) : k("", !0),
2835
2842
  Z(_("input", {
2836
2843
  id: L(a),
2837
2844
  ref_key: "inputRef",
@@ -2844,7 +2851,7 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2844
2851
  onFocus: B[1] || (B[1] = (Ie) => $(!0)),
2845
2852
  onBlur: Y,
2846
2853
  onFocusout: B[2] || (B[2] = (Ie) => $(!1)),
2847
- class: C([
2854
+ class: S([
2848
2855
  (be = (_e = n.pre) == null ? void 0 : _e.outside) != null && be.component || (xe = (ee = n.pre) == null ? void 0 : ee.outside) != null && xe.text ? "has-pre" : "",
2849
2856
  (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" : "",
2850
2857
  (Pe = (We = n.pre) == null ? void 0 : We.inside) != null && Pe.action ? "has-pre-inside-button" : "",
@@ -2852,31 +2859,31 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2852
2859
  l.value ? "focused" : ""
2853
2860
  ]),
2854
2861
  disabled: n.disabled
2855
- }, null, 42, Ds), [
2862
+ }, null, 42, Ss), [
2856
2863
  [De, i.value]
2857
2864
  ]),
2858
2865
  (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(), f("div", {
2859
2866
  key: 1,
2860
2867
  class: "d-post-inside-button",
2861
2868
  onClick: R
2862
- }, Cs)) : k("", !0)
2869
+ }, Ts)) : k("", !0)
2863
2870
  ]),
2864
2871
  (Je = (Ke = n.post) == null ? void 0 : Ke.outside) != null && Je.component ? (d(), f("div", {
2865
2872
  key: 2,
2866
- class: C(["d-post", n.disabled ? "disabled" : ""])
2873
+ class: S(["d-post", n.disabled ? "disabled" : ""])
2867
2874
  }, [
2868
2875
  (d(), x(U((et = (Qe = n.post) == null ? void 0 : Qe.outside) == null ? void 0 : et.component)))
2869
2876
  ], 2)) : (ot = (tt = n.post) == null ? void 0 : tt.outside) != null && ot.text ? (d(), f("div", {
2870
2877
  key: 3,
2871
- class: C(["d-post", n.disabled ? "disabled" : ""])
2878
+ class: S(["d-post", n.disabled ? "disabled" : ""])
2872
2879
  }, [
2873
2880
  _("div", {
2874
- class: C(["d-text", l.value ? "focused" : ""])
2881
+ class: S(["d-text", l.value ? "focused" : ""])
2875
2882
  }, O((st = (nt = n.post) == null ? void 0 : nt.outside) == null ? void 0 : st.text), 3)
2876
2883
  ], 2)) : k("", !0)
2877
2884
  ]),
2878
- n.help ? (d(), f("div", Ls, O(n.help), 1)) : k("", !0),
2879
- s.value ? (d(), f("div", Is, O(s.value), 1)) : k("", !0)
2885
+ n.help ? (d(), f("div", Cs, O(n.help), 1)) : k("", !0),
2886
+ s.value ? (d(), f("div", Ls, O(s.value), 1)) : k("", !0)
2880
2887
  ])
2881
2888
  ], 2);
2882
2889
  };
@@ -2906,7 +2913,7 @@ const ys = new vs(), _s = { style: { display: "flex", "flex-direction": "column"
2906
2913
  St.close = (t) => {
2907
2914
  q.emit("notification-close", t);
2908
2915
  };
2909
- const ta = () => ({ notify: St }), oa = {
2916
+ const ea = () => ({ notify: St }), ta = {
2910
2917
  mounted: function(t, e) {
2911
2918
  t.clickOutsideEvent = function(o) {
2912
2919
  t === o.target || t.contains(o.target) || e.value(o, t);
@@ -2915,7 +2922,7 @@ const ta = () => ({ notify: St }), oa = {
2915
2922
  unmounted: function(t) {
2916
2923
  document.removeEventListener("click", t.clickOutsideEvent);
2917
2924
  }
2918
- }, na = {
2925
+ }, oa = {
2919
2926
  beforeMount(t, e) {
2920
2927
  t._keydownCallback = (o) => {
2921
2928
  o.key === e.arg && e.value();
@@ -2924,7 +2931,7 @@ const ta = () => ({ notify: St }), oa = {
2924
2931
  unmounted(t, e) {
2925
2932
  document.removeEventListener("keydown", t._keydownCallback), delete t._keydownCallback;
2926
2933
  }
2927
- }, sa = {
2934
+ }, na = {
2928
2935
  beforeMount(t) {
2929
2936
  t.focus();
2930
2937
  }
@@ -2935,7 +2942,7 @@ function Dt(t) {
2935
2942
  function Tt(t) {
2936
2943
  return t.type.indexOf("mouse") !== -1 ? t.clientY : t.touches[0].clientY;
2937
2944
  }
2938
- var Bs = function() {
2945
+ var Is = function() {
2939
2946
  var t = !1;
2940
2947
  try {
2941
2948
  var e = Object.defineProperty({}, "passive", {
@@ -2947,7 +2954,7 @@ var Bs = function() {
2947
2954
  } catch {
2948
2955
  }
2949
2956
  return t;
2950
- }(), Es = {
2957
+ }(), Bs = {
2951
2958
  disableClick: !1,
2952
2959
  tapTolerance: 10,
2953
2960
  // px
@@ -2978,7 +2985,7 @@ function we(t) {
2978
2985
  }
2979
2986
  } else {
2980
2987
  var a = e.options.tapTolerance;
2981
- e.touchMoved = Math.abs(e.startX - e.currentX) > a || Math.abs(e.startY - e.currentY) > a, e.touchMoved && (ze(e), te(t, this, "drag.once"));
2988
+ e.touchMoved = Math.abs(e.startX - e.currentX) > a || Math.abs(e.startY - e.currentY) > a, e.touchMoved && (Fe(e), te(t, this, "drag.once"));
2982
2989
  }
2983
2990
  if (K(this, "rollover") && s) {
2984
2991
  var r = t.timeStamp, i = e.options.rollOverFrequency;
@@ -2991,13 +2998,13 @@ function we(t) {
2991
2998
  }
2992
2999
  function dt() {
2993
3000
  var t = this.$$touchObj;
2994
- ze(t), Fe(this), t.touchStarted = t.touchMoved = !1, t.startX = t.startY = 0;
3001
+ Fe(t), ze(this), t.touchStarted = t.touchMoved = !1, t.startX = t.startY = 0;
2995
3002
  }
2996
3003
  function Se(t) {
2997
3004
  var e = this.$$touchObj, o = t.type.indexOf("touch") >= 0, n = t.type.indexOf("mouse") >= 0;
2998
3005
  o && (e.lastTouchEndTime = t.timeStamp);
2999
3006
  var s = o && !e.touchHoldTimer;
3000
- if (ze(e), e.touchStarted = !1, Fe(this), !(n && e.lastTouchEndTime && t.timeStamp - e.lastTouchEndTime < 350))
3007
+ if (Fe(e), e.touchStarted = !1, ze(this), !(n && e.lastTouchEndTime && t.timeStamp - e.lastTouchEndTime < 350))
3001
3008
  if (te(t, this, "release"), e.touchMoved) {
3002
3009
  if (e.hasSwipe && !e.swipeOutBounded) {
3003
3010
  var a = e.options.swipeTolerance, l, r = Math.abs(e.startY - e.currentY), i = Math.abs(e.startX - e.currentX);
@@ -3015,7 +3022,7 @@ function ct() {
3015
3022
  Ct(this);
3016
3023
  }
3017
3024
  function ut() {
3018
- Fe(this);
3025
+ ze(this);
3019
3026
  }
3020
3027
  function K(t, e) {
3021
3028
  var o = t.$$touchObj.callbacks[e];
@@ -3034,14 +3041,14 @@ function Ct(t) {
3034
3041
  var e = t.$$touchObj.options.touchClass;
3035
3042
  e && t.classList.add(e);
3036
3043
  }
3037
- function Fe(t) {
3044
+ function ze(t) {
3038
3045
  var e = t.$$touchObj.options.touchClass;
3039
3046
  e && t.classList.remove(e);
3040
3047
  }
3041
- function ze(t) {
3048
+ function Fe(t) {
3042
3049
  t.touchHoldTimer && (clearTimeout(t.touchHoldTimer), t.touchHoldTimer = null);
3043
3050
  }
3044
- function Ms(t, e) {
3051
+ function Es(t, e) {
3045
3052
  var o = t.$$touchObj || {
3046
3053
  // an object contains all callbacks registered,
3047
3054
  // key is event name, value is an array
@@ -3049,14 +3056,14 @@ function Ms(t, e) {
3049
3056
  // prevent bind twice, set to true when event bound
3050
3057
  hasBindTouchEvents: !1,
3051
3058
  // default options, would be override by v-touch-options
3052
- options: Es
3059
+ options: Bs
3053
3060
  };
3054
3061
  return e && (o.options = Object.assign({}, o.options, e)), t.$$touchObj = o, t.$$touchObj;
3055
3062
  }
3056
- const aa = {
3063
+ const sa = {
3057
3064
  beforeMount: function(t, e) {
3058
- const o = Ms(t);
3059
- let n = Bs ? { passive: !0 } : !1;
3065
+ const o = Es(t);
3066
+ let n = Is ? { passive: !0 } : !1;
3060
3067
  const s = e.arg || "tap";
3061
3068
  switch (s) {
3062
3069
  case "swipe":
@@ -3083,31 +3090,31 @@ const aa = {
3083
3090
  }
3084
3091
  };
3085
3092
  export {
3086
- Os as DAccordion,
3093
+ Rs as DAccordion,
3087
3094
  Qo as DAlertDialog,
3088
3095
  uo as DBadge,
3089
3096
  le as DButton,
3090
- Ws as DCard,
3091
- Xs as DCheckbox,
3097
+ Fs as DCard,
3098
+ js as DCheckbox,
3092
3099
  po as DCollapse,
3093
3100
  fe as DComponentStore,
3094
- As as DConfigProvider,
3101
+ Vs as DConfigProvider,
3095
3102
  tn as DConfirmDialog,
3096
3103
  Bo as DContextMenu,
3097
- Ys as DDialogProvider,
3104
+ Xs as DDialogProvider,
3098
3105
  it as DDrag,
3099
3106
  Io as DDrop,
3100
3107
  zs as DDropdown,
3101
- Qs as DForm,
3108
+ Js as DForm,
3102
3109
  pe as DGlobalStore,
3103
- Gs as DGrid,
3110
+ qs as DGrid,
3104
3111
  re as DIcon,
3105
3112
  oe as DIconStore,
3106
- Zs as DImage,
3107
- js as DInfoProgress,
3108
- Rs as DInput,
3109
- ea as DInputString,
3110
- Vs as DLayoutAdmin,
3113
+ Gs as DImage,
3114
+ Ps as DInfoProgress,
3115
+ Ns as DInput,
3116
+ Qs as DInputString,
3117
+ Os as DLayoutAdmin,
3111
3118
  Vo as DLayoutContent,
3112
3119
  Ro as DLayoutFooter,
3113
3120
  Mo as DLayoutHeader,
@@ -3115,27 +3122,27 @@ export {
3115
3122
  No as DLayoutTab,
3116
3123
  xt as DMenu,
3117
3124
  $t as DModal,
3118
- Ps as DNotificationProvider,
3125
+ Ws as DNotificationProvider,
3119
3126
  ln as DPanel,
3120
- Fs as DScroll,
3121
- Hs as DScrollProvider,
3122
- Us as DSelect,
3123
- Js as DSwitcher,
3124
- qs as DTabs,
3125
- Ks as DTextarea,
3127
+ Hs as DScroll,
3128
+ As as DScrollProvider,
3129
+ Ys as DSelect,
3130
+ Ks as DSwitcher,
3131
+ Us as DTabs,
3132
+ Zs as DTextarea,
3126
3133
  Te as DTransferStore,
3127
3134
  kt as DTree,
3128
3135
  Co as DTreeItem,
3129
3136
  v as DTreeStore,
3130
3137
  G as Rules,
3131
3138
  Rn as alert,
3132
- oa as clickOutside,
3139
+ ta as clickOutside,
3133
3140
  Nn as confirm,
3134
3141
  q as emitter,
3135
3142
  Lo as eventsBus,
3136
- sa as focus,
3137
- na as keydown,
3143
+ na as focus,
3144
+ oa as keydown,
3138
3145
  St as notify,
3139
- aa as touch,
3140
- ta as useNotification
3146
+ sa as touch,
3147
+ ea as useNotification
3141
3148
  };