doph-js 0.3.8 → 0.3.9

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 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";
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 b, 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: {
@@ -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[$], b = h(() => g("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), T = h(() => {
127
+ }, c = h(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = h(() => n.disabled ? "disabled" : ""), g = ($) => !!s[$], _ = 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
  });
@@ -148,7 +148,7 @@ const se = (t, e) => {
148
148
  ref: a,
149
149
  onClick: r,
150
150
  onContextmenu: i,
151
- class: S(["button button-ext", [n.class, c.value, b.value, T.value, u.value].join(" ")]),
151
+ class: S(["button button-ext", [n.class, c.value, _.value, T.value, u.value].join(" ")]),
152
152
  style: z(n.style)
153
153
  }, [
154
154
  n.icon ? (d(), x(U(re), {
@@ -215,7 +215,7 @@ const Zt = {
215
215
  focus: r
216
216
  }), (i, c) => !n.post && !n.pre ? (d(), f("div", Zt, [
217
217
  n.label ? (d(), f("div", Kt, O(n.label), 1)) : k("", !0),
218
- Z(_("input", {
218
+ Z(b("input", {
219
219
  ref_key: "inputRef",
220
220
  ref: s,
221
221
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
@@ -228,9 +228,9 @@ const Zt = {
228
228
  ])
229
229
  ])) : n.post && n.post.click && !n.pre ? (d(), f("div", Qt, [
230
230
  n.label ? (d(), f("div", eo, O(n.label), 1)) : k("", !0),
231
- _("div", to, [
232
- _("div", oo, [
233
- Z(_("input", {
231
+ b("div", to, [
232
+ b("div", oo, [
233
+ Z(b("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: s,
236
236
  class: S(["d-input-post-field", a.value]),
@@ -263,7 +263,7 @@ const Zt = {
263
263
  ])
264
264
  ])) : !n.post && n.pre && n.pre.click ? (d(), f("div", so, [
265
265
  n.label ? (d(), f("div", ao, O(n.label), 1)) : k("", !0),
266
- _("div", io, [
266
+ b("div", io, [
267
267
  n.pre.label ? (d(), x(le, {
268
268
  key: 0,
269
269
  scale: n.scale,
@@ -282,8 +282,8 @@ const Zt = {
282
282
  onClick: n.pre.click,
283
283
  icon: n.pre.icon
284
284
  }, null, 8, ["scale", "onClick", "icon", "class"])),
285
- _("div", lo, [
286
- Z(_("input", {
285
+ b("div", lo, [
286
+ Z(b("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: s,
289
289
  class: S(["d-input-pre-field", a.value]),
@@ -298,7 +298,7 @@ const Zt = {
298
298
  ])
299
299
  ])) : k("", !0);
300
300
  }
301
- }, Ns = /* @__PURE__ */ se(co, [["__scopeId", "data-v-a972038a"]]), uo = {
301
+ }, Ms = /* @__PURE__ */ se(co, [["__scopeId", "data-v-a972038a"]]), uo = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -362,8 +362,8 @@ const Zt = {
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, b) => {
366
- const T = i.animate(g, b);
365
+ }, s = (i, c, u, g, _) => {
366
+ const T = i.animate(g, _);
367
367
  i.style.height = c.height, T.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
@@ -389,12 +389,12 @@ 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), T = a(b, g), R = { duration: e.duration, easing: e.easingEnter };
392
+ const u = i, g = o(u), _ = n(u, g), T = a(_, g), R = { duration: e.duration, easing: e.easingEnter };
393
393
  s(u, g, c, T, R);
394
394
  }, r = (i, c) => {
395
- const u = i, g = o(u), { height: b } = getComputedStyle(u);
396
- u.style.height = b, u.style.overflow = "hidden";
397
- const T = a(b, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
395
+ const u = i, g = o(u), { height: _ } = getComputedStyle(u);
396
+ u.style.height = _, u.style.overflow = "hidden";
397
+ const T = a(_, g).reverse(), R = { duration: e.duration, easing: e.easingLeave };
398
398
  s(u, g, c, T, R);
399
399
  };
400
400
  return (i, c) => (d(), x(Ne, {
@@ -479,7 +479,7 @@ const Zt = {
479
479
  const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
480
480
  key: 0,
481
481
  style: { display: "none" }
482
- }, vo = { key: 1 }, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ _("div", { class: "tree-divider" }, null, -1)), _o = [
482
+ }, vo = { key: 1 }, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ b("div", { class: "tree-divider" }, null, -1)), _o = [
483
483
  yo
484
484
  ], bo = { key: 2 }, xo = { class: "tree-divider-header" }, ko = { class: "item-title" }, $o = {
485
485
  key: 0,
@@ -504,7 +504,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
504
504
  e("nodefoldericonclick", { event: N, model: o.model });
505
505
  }, g = (N) => {
506
506
  e("nodefoldericonclick", N);
507
- }, b = (N) => {
507
+ }, _ = (N) => {
508
508
  e("nodeclick", N);
509
509
  }, T = (N) => {
510
510
  e("nodedoubleclick", N);
@@ -551,7 +551,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
551
551
  return (N, w) => {
552
552
  const H = Lt("d-tree-item", !0), P = Re("touch");
553
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
- _("div", xo, O(L(v).actions.renderTitle(o.treeId, W.value)), 1)
554
+ b("div", xo, O(L(v).actions.renderTitle(o.treeId, W.value)), 1)
555
555
  ])) : o.model.component ? (d(), x(it, {
556
556
  key: 3,
557
557
  tag: "li",
@@ -592,7 +592,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
592
592
  default: E(() => {
593
593
  var m, p;
594
594
  return [
595
- _("div", {
595
+ b("div", {
596
596
  ref_key: "node",
597
597
  ref: n,
598
598
  class: S(A.value),
@@ -600,7 +600,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
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
- _("div", null, [
603
+ b("div", null, [
604
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),
@@ -623,12 +623,12 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
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
- _("div", ko, [
626
+ b("div", ko, [
627
627
  C.value ? (d(), f("div", $o)) : k("", !0),
628
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
- _("div", So, [
631
+ b("div", So, [
632
632
  ((m = o.model.badge) == null ? void 0 : m.value) !== void 0 && !C.value ? (d(), x(U(uo), {
633
633
  key: 0,
634
634
  class: S([(p = o.model.badge) == null ? void 0 : p.class, "badge-sm"])
@@ -657,7 +657,7 @@ const ho = (t) => (It("data-v-9da49c73"), t = t(), Bt(), t), go = {
657
657
  treeId: o.treeId,
658
658
  items: o.items,
659
659
  search: o.search,
660
- onNodeclick: b,
660
+ onNodeclick: _,
661
661
  onNodedoubleclick: T,
662
662
  onNodedrop: R,
663
663
  onNodecontext: $,
@@ -842,10 +842,10 @@ const q = Lo(), v = {
842
842
  }), (u, g) => (d(), x(U(t.tag), {
843
843
  ref_key: "el",
844
844
  ref: a,
845
- onDragenter: g[0] || (g[0] = (b) => i(L(X).dragenter, b)),
846
- onDragleave: g[1] || (g[1] = (b) => i(L(X).dragleave, b)),
847
- onDragover: g[2] || (g[2] = j((b) => i(L(X).dragover, b), ["prevent"])),
848
- onDrop: g[3] || (g[3] = j((b) => i(L(X).drop, b), ["prevent"]))
845
+ onDragenter: g[0] || (g[0] = (_) => i(L(X).dragenter, _)),
846
+ onDragleave: g[1] || (g[1] = (_) => i(L(X).dragleave, _)),
847
+ onDragover: g[2] || (g[2] = j((_) => i(L(X).dragover, _), ["prevent"])),
848
+ onDrop: g[3] || (g[3] = j((_) => i(L(X).drop, _), ["prevent"]))
849
849
  }, {
850
850
  default: E(() => [
851
851
  I(u.$slots, "default", { transferData: r.value })
@@ -877,8 +877,8 @@ const q = Lo(), v = {
877
877
  const l = () => {
878
878
  q.emit("menu-show-request"), a.value = !0;
879
879
  }, r = () => {
880
- var b;
881
- (b = s.value) == null || b.collapseAll(), a.value = !1;
880
+ var _;
881
+ (_ = s.value) == null || _.collapseAll(), a.value = !1;
882
882
  }, i = () => a.value;
883
883
  q.on("menu-show-request", () => {
884
884
  r();
@@ -889,10 +889,10 @@ const q = Lo(), v = {
889
889
  isShowed: i,
890
890
  itemsCount: () => s.value.itemsCount()
891
891
  });
892
- const g = (b) => {
893
- o("select", b), b.model.children || r();
892
+ const g = (_) => {
893
+ o("select", _), _.model.children || r();
894
894
  };
895
- return (b, T) => {
895
+ return (_, T) => {
896
896
  const R = Re("click-outside");
897
897
  return d(), x(ht, { to: "body" }, [
898
898
  L(a) ? Z((d(), x(kt, {
@@ -926,8 +926,8 @@ const q = Lo(), v = {
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, 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();
929
+ const g = s.value.elementSize(), _ = window.innerWidth, T = window.innerHeight;
930
+ a.value = _ - 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);
@@ -1011,7 +1011,7 @@ const q = Lo(), 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
  v.mutations.setItemSelect(r, p.model), n.doubleClickExpand || v.actions.toggleItem(r, p.model), o("select", p);
1014
- }, b = (p = null) => {
1014
+ }, _ = (p = null) => {
1015
1015
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("doubleclick", p);
1016
1016
  }, T = (p = null) => {
1017
1017
  n.doubleClickExpand && v.actions.toggleItem(r, p.model), o("foldericonclick", p);
@@ -1059,7 +1059,7 @@ const q = Lo(), v = {
1059
1059
  items: n.items,
1060
1060
  search: n.search,
1061
1061
  onNodeclick: g,
1062
- onNodedoubleclick: b,
1062
+ onNodedoubleclick: _,
1063
1063
  onNodedragover: R,
1064
1064
  onNodedrop: $,
1065
1065
  onNodecontext: H,
@@ -1103,7 +1103,7 @@ const Eo = {
1103
1103
  onMove: n
1104
1104
  }, null, 8, ["items", "no-select", "render-title"]));
1105
1105
  }
1106
- }, Rs = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-a724c500"]]), Mo = {
1106
+ }, Ns = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-a724c500"]]), Mo = {
1107
1107
  __name: "DLayoutHeader",
1108
1108
  props: {
1109
1109
  fixed: {
@@ -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", 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};`;
1190
+ const { fixed: n, top: s, zIndex: a, minWidth: l, height: r, paddingLeft: i, transitionDuration: c, transitionTimingFunction: u } = e, g = n ? "fixed" : "static", _ = e.useMinWidthLayout ? `min-width: ${l}px;` : "";
1191
+ return `position:${g};top:${s}px;z-index:${a};${_}height:${r}px;padding-left:${i}px;transition-duration:${c}ms;transition-timing-function:${u};`;
1192
1192
  });
1193
1193
  return (n, s) => (d(), f("div", {
1194
1194
  class: "d-layout-tab",
@@ -1349,7 +1349,7 @@ function Ao(t) {
1349
1349
  i();
1350
1350
  }), o;
1351
1351
  }
1352
- const Ho = 1001, zo = 999, Fo = 998, Os = {
1352
+ const Ho = 1001, zo = 999, Fo = 998, Rs = {
1353
1353
  __name: "DLayoutAdmin",
1354
1354
  props: {
1355
1355
  mode: {
@@ -1454,7 +1454,7 @@ const Ho = 1001, zo = 999, Fo = 998, Os = {
1454
1454
  e("update:sidebar-collapse", C);
1455
1455
  }
1456
1456
  });
1457
- function b() {
1457
+ function _() {
1458
1458
  e("sidebar-mask-click");
1459
1459
  }
1460
1460
  const T = h(() => o.isMobile && !g.value), R = h(() => {
@@ -1514,7 +1514,7 @@ const Ho = 1001, zo = 999, Fo = 998, Os = {
1514
1514
  key: 3,
1515
1515
  class: "d-layout-sidebar-mask",
1516
1516
  style: z(R.value),
1517
- onClick: b
1517
+ onClick: _
1518
1518
  }, null, 4)) : k("", !0),
1519
1519
  Q(Vo, ue(i.value, {
1520
1520
  "padding-top": B.value,
@@ -1561,7 +1561,7 @@ const Ho = 1001, zo = 999, Fo = 998, Os = {
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
- }, Vs = {
1564
+ }, Os = {
1565
1565
  __name: "DConfigProvider",
1566
1566
  props: {
1567
1567
  theme: {
@@ -1574,7 +1574,7 @@ const Ho = 1001, zo = 999, Fo = 998, Os = {
1574
1574
  return pe.mutations.setTheme(e.theme), (o, n) => I(o.$slots, "default");
1575
1575
  }
1576
1576
  };
1577
- const As = {
1577
+ const Vs = {
1578
1578
  __name: "DScrollProvider",
1579
1579
  props: {
1580
1580
  xHide: {
@@ -1631,7 +1631,7 @@ const Wo = {
1631
1631
  I(s.$slots, "default", {}, void 0, !0)
1632
1632
  ], 2));
1633
1633
  }
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 = {
1634
+ }, As = /* @__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,
@@ -1663,20 +1663,20 @@ const Wo = {
1663
1663
  ref: s,
1664
1664
  class: "modal"
1665
1665
  }, [
1666
- _("div", {
1666
+ b("div", {
1667
1667
  class: "modal-dialog",
1668
1668
  style: z({ width: n.width, maxWidth: n.maxWidth })
1669
1669
  }, [
1670
- _("div", Po, [
1671
- _("div", jo, [
1672
- _("h5", Xo, [
1670
+ b("div", Po, [
1671
+ b("div", jo, [
1672
+ b("h5", Xo, [
1673
1673
  I(i.$slots, "modal-title")
1674
1674
  ])
1675
1675
  ]),
1676
- _("div", Yo, [
1676
+ b("div", Yo, [
1677
1677
  I(i.$slots, "default")
1678
1678
  ]),
1679
- _("div", Uo, [
1679
+ b("div", Uo, [
1680
1680
  I(i.$slots, "modal-footer")
1681
1681
  ])
1682
1682
  ])
@@ -1758,7 +1758,7 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1758
1758
  J(O(o.message), 1)
1759
1759
  ]),
1760
1760
  "modal-footer": E(() => [
1761
- _("div", Jo, [
1761
+ b("div", Jo, [
1762
1762
  Q(le, {
1763
1763
  onClick: a[0] || (a[0] = (l) => L(Me)())
1764
1764
  }, {
@@ -1792,7 +1792,7 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1792
1792
  J(O(o.message), 1)
1793
1793
  ]),
1794
1794
  "modal-footer": E(() => [
1795
- _("div", en, [
1795
+ b("div", en, [
1796
1796
  Q(le, {
1797
1797
  onClick: a[0] || (a[0] = (l) => L(Me)())
1798
1798
  }, {
@@ -1816,7 +1816,7 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1816
1816
  })
1817
1817
  ]));
1818
1818
  }
1819
- }, on = { class: "dropdown" }, zs = {
1819
+ }, on = { class: "dropdown" }, Hs = {
1820
1820
  __name: "DDropdown",
1821
1821
  props: {
1822
1822
  class: String,
@@ -1851,9 +1851,9 @@ const Jo = { style: { display: "flex", "flex-direction": "row", "justify-content
1851
1851
  e({
1852
1852
  show: c
1853
1853
  });
1854
- const b = (T) => !!s[T];
1854
+ const _ = (T) => !!s[T];
1855
1855
  return (T, R) => (d(), f("div", on, [
1856
- b("default") ? (d(), x(le, {
1856
+ _("default") ? (d(), x(le, {
1857
1857
  key: 0,
1858
1858
  ref_key: "buttonRef",
1859
1859
  ref: l,
@@ -1895,28 +1895,32 @@ 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" }, Fs = {
1898
+ const ln = /* @__PURE__ */ se(nn, [["render", an]]), rn = {
1899
+ key: 0,
1900
+ class: "card-header"
1901
+ }, dn = { class: "card-body" }, cn = {
1902
+ key: 1,
1903
+ class: "card-footer"
1904
+ }, zs = {
1899
1905
  __name: "DCard",
1900
1906
  setup(t) {
1901
1907
  return (e, o) => (d(), x(ln, { class: "d-card" }, {
1902
1908
  default: E(() => [
1903
- _("div", rn, [
1904
- _("h5", dn, [
1905
- I(e.$slots, "title")
1906
- ])
1907
- ]),
1908
- _("div", cn, [
1909
+ e.$slots.header ? (d(), f("div", rn, [
1910
+ I(e.$slots, "header")
1911
+ ])) : k("", !0),
1912
+ b("div", dn, [
1909
1913
  I(e.$slots, "default")
1910
1914
  ]),
1911
- _("div", un, [
1915
+ e.$slots.footer ? (d(), f("div", cn, [
1912
1916
  I(e.$slots, "footer")
1913
- ])
1917
+ ])) : k("", !0)
1914
1918
  ]),
1915
1919
  _: 3
1916
1920
  }));
1917
1921
  }
1918
- }, pn = /* @__PURE__ */ new Map();
1919
- class fn {
1922
+ }, un = /* @__PURE__ */ new Map();
1923
+ class pn {
1920
1924
  constructor(e, o, n) {
1921
1925
  this.remaining = o, this.callback = e, this.notifyItem = n, this.resume();
1922
1926
  }
@@ -1944,7 +1948,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
1944
1948
  name: "px",
1945
1949
  regexp: new RegExp(`^${Be}$`)
1946
1950
  }
1947
- ], mn = (t) => {
1951
+ ], fn = (t) => {
1948
1952
  if (t === "auto")
1949
1953
  return {
1950
1954
  type: t,
@@ -1962,20 +1966,20 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
1962
1966
  type: "",
1963
1967
  value: t
1964
1968
  };
1965
- }, hn = (t) => {
1969
+ }, mn = (t) => {
1966
1970
  switch (typeof t) {
1967
1971
  case "number":
1968
1972
  return { type: "px", value: t };
1969
1973
  case "string":
1970
- return mn(t);
1974
+ return fn(t);
1971
1975
  default:
1972
1976
  return { type: "", value: t };
1973
1977
  }
1974
1978
  }, rt = {
1975
1979
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1976
1980
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1977
- }, gn = ((t) => () => t++)(0), vn = (t) => typeof t != "string" ? [] : t.split(/\s+/gi).filter(Boolean), yn = (t) => {
1978
- typeof t == "string" && (t = vn(t));
1981
+ }, hn = ((t) => () => t++)(0), gn = (t) => typeof t != "string" ? [] : t.split(/\s+/gi).filter(Boolean), vn = (t) => {
1982
+ typeof t == "string" && (t = gn(t));
1979
1983
  let e = null, o = null;
1980
1984
  return t.forEach((n) => {
1981
1985
  rt.y.has(n) && (o = n), rt.x.has(n) && (e = n);
@@ -1993,7 +1997,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
1993
1997
  opacity: [0, 1]
1994
1998
  }
1995
1999
  }
1996
- }, _n = {
2000
+ }, yn = {
1997
2001
  __name: "VelocityGroup",
1998
2002
  emits: ["enter", "leave", "after-leave"],
1999
2003
  setup(t, { emit: e }) {
@@ -2017,7 +2021,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2017
2021
  _: 3
2018
2022
  }));
2019
2023
  }
2020
- }, bn = /* @__PURE__ */ Object.assign({
2024
+ }, _n = /* @__PURE__ */ Object.assign({
2021
2025
  inheritAttrs: !1
2022
2026
  }, {
2023
2027
  __name: "CssGroup",
@@ -2036,10 +2040,10 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2036
2040
  _: 3
2037
2041
  }, 8, ["name"]));
2038
2042
  }
2039
- }), xn = ["data-id"], kn = ["onClick"], $n = ["innerHTML"], wn = ["innerHTML"], Sn = {
2043
+ }), bn = ["data-id"], xn = ["onClick"], kn = ["innerHTML"], $n = ["innerHTML"], wn = {
2040
2044
  key: 0,
2041
2045
  class: "d-notification-title"
2042
- }, Dn = { class: "notification-content" }, Ws = {
2046
+ }, Sn = { class: "notification-content" }, Fs = {
2043
2047
  __name: "DNotificationProvider",
2044
2048
  props: {
2045
2049
  group: {
@@ -2112,12 +2116,12 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2112
2116
  const o = t, n = {
2113
2117
  IDLE: 0,
2114
2118
  DESTROYED: 2
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
- const { x: m, y: p } = yn(o.position), y = u.value.value, V = u.value.type, ae = {
2119
+ }, s = D([]), a = D(null), l = D(un.get("velocity")), r = h(() => o.animationType === "velocity"), i = h(() => r.value ? yn : _n), c = h(() => s.value.filter((m) => m.state !== n.DESTROYED)), u = h(() => mn(o.width)), g = h(() => {
2120
+ const { x: m, y: p } = vn(o.position), y = u.value.value, V = u.value.type, ae = {
2117
2121
  width: y + V
2118
2122
  };
2119
2123
  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), T = (m) => {
2124
+ }), _ = h(() => "bottom" in g.value), T = (m) => {
2121
2125
  e("click", m), o.closeOnClick && F(m);
2122
2126
  }, R = () => {
2123
2127
  var m;
@@ -2133,7 +2137,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2133
2137
  return;
2134
2138
  }
2135
2139
  const p = typeof m.duration == "number" ? m.duration : o.duration, y = typeof m.speed == "number" ? m.speed : o.speed, V = typeof m.ignoreDuplicates == "boolean" ? m.ignoreDuplicates : o.ignoreDuplicates, { title: ae, text: ve, type: ye, data: _e, id: be } = m, ee = {
2136
- id: be || gn(),
2140
+ id: be || hn(),
2137
2141
  title: ae,
2138
2142
  text: ve,
2139
2143
  type: ye,
@@ -2142,8 +2146,8 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2142
2146
  length: p + 2 * y,
2143
2147
  data: _e
2144
2148
  };
2145
- p >= 0 && (a.value = new fn(() => F(ee), ee.length, ee));
2146
- const xe = o.reverse ? !b.value : b.value;
2149
+ p >= 0 && (a.value = new pn(() => F(ee), ee.length, ee));
2150
+ const xe = o.reverse ? !_.value : _.value;
2147
2151
  let de = -1;
2148
2152
  const ke = c.value.some((ge) => ge.title === m.title && ge.text === m.text);
2149
2153
  (!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]));
@@ -2210,7 +2214,7 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2210
2214
  item: y,
2211
2215
  close: () => F(y)
2212
2216
  }, () => [
2213
- _("div", {
2217
+ b("div", {
2214
2218
  class: S(M(y)),
2215
2219
  onClick: (V) => T(y)
2216
2220
  }, [
@@ -2219,24 +2223,24 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2219
2223
  key: 0,
2220
2224
  class: "d-notification-title",
2221
2225
  innerHTML: y.timer
2222
- }, null, 8, $n)) : k("", !0),
2223
- _("div", {
2226
+ }, null, 8, kn)) : k("", !0),
2227
+ b("div", {
2224
2228
  class: "notification-content",
2225
2229
  innerHTML: y.text
2226
- }, null, 8, wn)
2230
+ }, null, 8, $n)
2227
2231
  ], 64)) : (d(), f(ne, { key: 1 }, [
2228
- y.title ? (d(), f("div", Sn, O(y.title), 1)) : k("", !0),
2229
- _("div", Dn, O(y.text), 1)
2232
+ y.title ? (d(), f("div", wn, O(y.title), 1)) : k("", !0),
2233
+ b("div", Sn, O(y.text), 1)
2230
2234
  ], 64))
2231
- ], 10, kn)
2235
+ ], 10, xn)
2232
2236
  ])
2233
- ], 44, xn))), 128))
2237
+ ], 44, bn))), 128))
2234
2238
  ]),
2235
2239
  _: 3
2236
2240
  }, 40, ["name"]))
2237
2241
  ], 4));
2238
2242
  }
2239
- }, Tn = { class: "d-info-progress-icon-container" }, Cn = { class: "d-info-progress-icon" }, Ln = { class: "d-info-progress-data-container" }, In = ["innerHTML"], Ps = {
2243
+ }, Dn = { class: "d-info-progress-icon-container" }, Tn = { class: "d-info-progress-icon" }, Cn = { class: "d-info-progress-data-container" }, Ln = ["innerHTML"], Ws = {
2240
2244
  __name: "DInfoProgress",
2241
2245
  props: {
2242
2246
  style: [String, Object],
@@ -2255,8 +2259,8 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2255
2259
  e("click", l);
2256
2260
  })
2257
2261
  }, [
2258
- _("div", Tn, [
2259
- _("div", Cn, [
2262
+ b("div", Dn, [
2263
+ b("div", Tn, [
2260
2264
  o.icon ? (d(), x(U(re), {
2261
2265
  key: 0,
2262
2266
  component: n.value,
@@ -2265,19 +2269,19 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2265
2269
  }, null, 8, ["component"])) : k("", !0)
2266
2270
  ])
2267
2271
  ]),
2268
- _("div", Ln, [
2269
- _("div", {
2272
+ b("div", Cn, [
2273
+ b("div", {
2270
2274
  class: "d-info-progress-line",
2271
2275
  style: z("width: " + o.progress + "%;")
2272
2276
  }, null, 4),
2273
- _("div", {
2277
+ b("div", {
2274
2278
  class: "d-info-progress-label",
2275
2279
  innerHTML: t.label
2276
- }, null, 8, In)
2280
+ }, null, 8, Ln)
2277
2281
  ])
2278
2282
  ], 6));
2279
2283
  }
2280
- }, Bn = { class: "d-checkbox" }, En = ["id", "checked", "disabled"], Mn = ["for"], js = {
2284
+ }, In = { class: "d-checkbox" }, Bn = ["id", "checked", "disabled"], En = ["for"], Ps = {
2281
2285
  __name: "DCheckbox",
2282
2286
  props: {
2283
2287
  label: String,
@@ -2297,38 +2301,38 @@ const Be = "[-+]?[0-9]*.?[0-9]+", lt = [
2297
2301
  e("update:modelValue", l);
2298
2302
  }
2299
2303
  });
2300
- return (l, r) => (d(), f("div", Bn, [
2301
- Z(_("input", {
2304
+ return (l, r) => (d(), f("div", In, [
2305
+ Z(b("input", {
2302
2306
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2303
2307
  id: `i-${L(s)}`,
2304
2308
  type: "checkbox",
2305
2309
  checked: o.checked,
2306
2310
  disabled: o.disabled,
2307
2311
  onChange: r[1] || (r[1] = (...i) => o.change && o.change(...i))
2308
- }, null, 40, En), [
2312
+ }, null, 40, Bn), [
2309
2313
  [_t, a.value]
2310
2314
  ]),
2311
- _("label", {
2315
+ b("label", {
2312
2316
  for: `i-${L(s)}`
2313
- }, O(o.label), 9, Mn)
2317
+ }, O(o.label), 9, En)
2314
2318
  ]));
2315
2319
  }
2316
2320
  };
2317
- async function Nn(t, e) {
2321
+ async function Mn(t, e) {
2318
2322
  return await wt(tn, { title: t, message: e });
2319
2323
  }
2320
- async function Rn(t, e) {
2324
+ async function Nn(t, e) {
2321
2325
  return await wt(Qo, { title: t, message: e });
2322
2326
  }
2323
- const Xs = {
2327
+ const js = {
2324
2328
  __name: "DDialogProvider",
2325
2329
  setup(t) {
2326
- return window.alert = Rn, window.confirm = Nn, (e, o) => (d(), x(L(Ko)));
2330
+ return window.alert = Nn, window.confirm = Mn, (e, o) => (d(), x(L(Ko)));
2327
2331
  }
2328
- }, On = { class: "d-select" }, Vn = {
2332
+ }, Rn = { class: "d-select" }, On = {
2329
2333
  key: 0,
2330
2334
  class: "label"
2331
- }, An = ["disabled"], Hn = ["value", "selected", "disabled"], Ys = {
2335
+ }, Vn = ["disabled"], An = ["value", "selected", "disabled"], Xs = {
2332
2336
  __name: "DSelect",
2333
2337
  props: {
2334
2338
  label: String,
@@ -2355,9 +2359,9 @@ const Xs = {
2355
2359
  s.value = o.options[a].value;
2356
2360
  break;
2357
2361
  }
2358
- return (a, l) => (d(), f("div", On, [
2359
- o.label ? (d(), f("div", Vn, O(o.label), 1)) : k("", !0),
2360
- Z(_("select", {
2362
+ return (a, l) => (d(), f("div", Rn, [
2363
+ o.label ? (d(), f("div", On, O(o.label), 1)) : k("", !0),
2364
+ Z(b("select", {
2361
2365
  "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2362
2366
  class: S(n.value),
2363
2367
  style: z(o.size === "wide" ? "width:100%" : ""),
@@ -2368,14 +2372,14 @@ const Xs = {
2368
2372
  value: r.value,
2369
2373
  selected: r.selected,
2370
2374
  disabled: r.disabled
2371
- }, O(r.label), 9, Hn))), 128))
2372
- ], 14, An), [
2375
+ }, O(r.label), 9, An))), 128))
2376
+ ], 14, Vn), [
2373
2377
  [Rt, s.value]
2374
2378
  ])
2375
2379
  ]));
2376
2380
  }
2377
2381
  };
2378
- const zn = ["title"], Fn = { class: "tab-icon" }, Wn = { class: "tab-label" }, Pn = ["title"], jn = ["title"], Xn = {
2382
+ const Hn = ["title"], zn = { class: "tab-icon" }, Fn = { class: "tab-label" }, Wn = ["title"], Pn = ["title"], jn = {
2379
2383
  __name: "DTabLabel",
2380
2384
  props: {
2381
2385
  tab: Object
@@ -2387,26 +2391,26 @@ const zn = ["title"], Fn = { class: "tab-icon" }, Wn = { class: "tab-label" }, P
2387
2391
  title: e.tab.title ? e.tab.title : "",
2388
2392
  style: { display: "flex", "flex-direction": "column" }
2389
2393
  }, [
2390
- _("div", Fn, [
2394
+ b("div", zn, [
2391
2395
  Q(L(re), {
2392
2396
  component: e.tab.icon
2393
2397
  }, null, 8, ["component"])
2394
2398
  ]),
2395
- _("div", Wn, O(e.tab.label), 1)
2396
- ], 8, zn)) : e.tab.label ? (d(), f("span", {
2399
+ b("div", Fn, O(e.tab.label), 1)
2400
+ ], 8, Hn)) : e.tab.label ? (d(), f("span", {
2397
2401
  key: 1,
2398
2402
  title: e.tab.title ? e.tab.title : ""
2399
- }, O(e.tab.label), 9, Pn)) : e.tab.icon ? (d(), f("span", {
2403
+ }, O(e.tab.label), 9, Wn)) : e.tab.icon ? (d(), f("span", {
2400
2404
  key: 2,
2401
2405
  title: e.tab.title ? e.tab.title : ""
2402
2406
  }, [
2403
2407
  Q(L(re), {
2404
2408
  component: e.tab.icon
2405
2409
  }, null, 8, ["component"])
2406
- ], 8, jn)) : k("", !0);
2410
+ ], 8, Pn)) : k("", !0);
2407
2411
  }
2408
- }, Yn = /* @__PURE__ */ se(Xn, [["__scopeId", "data-v-9262b225"]]);
2409
- const Un = { class: "d-tabs" }, qn = {
2412
+ }, Xn = /* @__PURE__ */ se(jn, [["__scopeId", "data-v-9262b225"]]);
2413
+ const Yn = { class: "d-tabs" }, Un = {
2410
2414
  __name: "DTabs",
2411
2415
  props: {
2412
2416
  tabs: Array
@@ -2420,28 +2424,28 @@ const Un = { class: "d-tabs" }, qn = {
2420
2424
  return e({
2421
2425
  refs: () => s.value
2422
2426
  }), (c, u) => (d(), f(ne, null, [
2423
- _("div", Un, [
2424
- (d(!0), f(ne, null, me(n.value, (g, b) => (d(), x(Yn, {
2425
- index: b,
2427
+ b("div", Yn, [
2428
+ (d(!0), f(ne, null, me(n.value, (g, _) => (d(), x(Xn, {
2429
+ index: _,
2426
2430
  tab: g,
2427
- class: S(["d-tab-title", b === a.value ? "active" : ""]),
2428
- onClick: (T) => l(b)
2431
+ class: S(["d-tab-title", _ === a.value ? "active" : ""]),
2432
+ onClick: (T) => l(_)
2429
2433
  }, null, 8, ["index", "tab", "class", "onClick"]))), 256))
2430
2434
  ]),
2431
2435
  (d(), x(Vt, null, [
2432
- (d(!0), f(ne, null, me(n.value, (g, b) => (d(), f("div", null, [
2436
+ (d(!0), f(ne, null, me(n.value, (g, _) => (d(), f("div", null, [
2433
2437
  Z((d(), x(U(g.component), {
2434
2438
  ref_for: !0,
2435
2439
  ref: r
2436
2440
  }, null, 512)), [
2437
- [At, b === a.value]
2441
+ [At, _ === a.value]
2438
2442
  ])
2439
2443
  ]))), 256))
2440
2444
  ], 1024))
2441
2445
  ], 64));
2442
2446
  }
2443
- }, Us = /* @__PURE__ */ se(qn, [["__scopeId", "data-v-4b44471a"]]);
2444
- const Gn = { class: "d-grid" }, Zn = {
2447
+ }, Ys = /* @__PURE__ */ se(Un, [["__scopeId", "data-v-4b44471a"]]);
2448
+ const qn = { class: "d-grid" }, Gn = {
2445
2449
  __name: "DGrid",
2446
2450
  props: {
2447
2451
  gap: {
@@ -2473,11 +2477,11 @@ const Gn = { class: "d-grid" }, Zn = {
2473
2477
  let c = null;
2474
2478
  for (let u = 0; u < i.length; u++)
2475
2479
  c || (c = i[0]), u > 0 && (i[u] ? c = i[u] : i[u] = c);
2476
- return (u, g) => (d(), f("div", Gn, [
2480
+ return (u, g) => (d(), f("div", qn, [
2477
2481
  I(u.$slots, "default", {}, void 0, !0)
2478
2482
  ]));
2479
2483
  }
2480
- }, qs = /* @__PURE__ */ se(Zn, [["__scopeId", "data-v-b45e8130"]]), Kn = ["src", "alt", "title"], Gs = {
2484
+ }, Us = /* @__PURE__ */ se(Gn, [["__scopeId", "data-v-b45e8130"]]), Zn = ["src", "alt", "title"], qs = {
2481
2485
  __name: "DImage",
2482
2486
  props: {
2483
2487
  src: String,
@@ -2502,13 +2506,13 @@ const Gn = { class: "d-grid" }, Zn = {
2502
2506
  alt: e.alt,
2503
2507
  title: e.title,
2504
2508
  style: z({ width: e.width, height: e.height, borderRadius: e.radius })
2505
- }, null, 12, Kn)) : k("", !0);
2509
+ }, null, 12, Zn)) : k("", !0);
2506
2510
  }
2507
2511
  };
2508
- const Jn = { class: "d-textarea" }, Qn = {
2512
+ const Kn = { class: "d-textarea" }, Jn = {
2509
2513
  key: 0,
2510
2514
  class: "label"
2511
- }, es = ["rows", "cols", "placeholder"], ts = {
2515
+ }, Qn = ["rows", "cols", "placeholder"], es = {
2512
2516
  __name: "DTextarea",
2513
2517
  props: {
2514
2518
  label: String,
@@ -2542,9 +2546,9 @@ const Jn = { class: "d-textarea" }, Qn = {
2542
2546
  };
2543
2547
  return e({
2544
2548
  focus: r
2545
- }), (i, c) => (d(), f("div", Jn, [
2546
- n.label ? (d(), f("div", Qn, O(n.label), 1)) : k("", !0),
2547
- Z(_("textarea", {
2549
+ }), (i, c) => (d(), f("div", Kn, [
2550
+ n.label ? (d(), f("div", Jn, O(n.label), 1)) : k("", !0),
2551
+ Z(b("textarea", {
2548
2552
  ref_key: "inputRef",
2549
2553
  ref: s,
2550
2554
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
@@ -2553,12 +2557,12 @@ const Jn = { class: "d-textarea" }, Qn = {
2553
2557
  placeholder: n.placeholder,
2554
2558
  class: S(a.value),
2555
2559
  style: { width: "100%" }
2556
- }, null, 10, es), [
2560
+ }, null, 10, Qn), [
2557
2561
  [zt, l.value]
2558
2562
  ])
2559
2563
  ]));
2560
2564
  }
2561
- }, Zs = /* @__PURE__ */ se(ts, [["__scopeId", "data-v-0e805d5d"]]), os = ["id", "checked", "disabled"], ns = ["for"], Ks = {
2565
+ }, Gs = /* @__PURE__ */ se(es, [["__scopeId", "data-v-0e805d5d"]]), ts = ["id", "checked", "disabled"], os = ["for"], Zs = {
2562
2566
  __name: "DSwitcher",
2563
2567
  props: {
2564
2568
  modelValue: Boolean,
@@ -2584,24 +2588,24 @@ const Jn = { class: "d-textarea" }, Qn = {
2584
2588
  return (l, r) => (d(), f("div", {
2585
2589
  class: S(["d-switcher", o.type])
2586
2590
  }, [
2587
- Z(_("input", {
2591
+ Z(b("input", {
2588
2592
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2589
2593
  id: `i-${L(s)}`,
2590
2594
  type: "checkbox",
2591
2595
  checked: o.checked,
2592
2596
  disabled: o.disabled,
2593
2597
  onChange: r[1] || (r[1] = (i) => e("change", i))
2594
- }, null, 40, os), [
2598
+ }, null, 40, ts), [
2595
2599
  [_t, a.value]
2596
2600
  ]),
2597
- _("label", {
2601
+ b("label", {
2598
2602
  for: `i-${L(s)}`,
2599
2603
  class: S(o.type)
2600
- }, "Toggle", 10, ns)
2604
+ }, "Toggle", 10, os)
2601
2605
  ], 2));
2602
2606
  }
2603
2607
  };
2604
- class Js {
2608
+ class Ks {
2605
2609
  constructor(e) {
2606
2610
  this.fields = e;
2607
2611
  }
@@ -2612,7 +2616,7 @@ class Js {
2612
2616
  return !e;
2613
2617
  }
2614
2618
  }
2615
- class ss {
2619
+ class ns {
2616
2620
  validate(e, o = "https") {
2617
2621
  return this._isValidURL(e) || (e = o + "://" + e), this._isValidURL(e);
2618
2622
  }
@@ -2633,8 +2637,8 @@ class ss {
2633
2637
  }
2634
2638
  }
2635
2639
  }
2636
- const as = new ss();
2637
- class is {
2640
+ const ss = new ns();
2641
+ class as {
2638
2642
  validate(e = "") {
2639
2643
  return e !== "";
2640
2644
  }
@@ -2642,8 +2646,8 @@ class is {
2642
2646
  return e;
2643
2647
  }
2644
2648
  }
2645
- const ls = new is();
2646
- class rs {
2649
+ const is = new as();
2650
+ class ls {
2647
2651
  validate(e = "", o = 0) {
2648
2652
  return e.length >= o;
2649
2653
  }
@@ -2651,8 +2655,8 @@ class rs {
2651
2655
  return e;
2652
2656
  }
2653
2657
  }
2654
- const ds = new rs();
2655
- class cs {
2658
+ const rs = new ls();
2659
+ class ds {
2656
2660
  validate(e = "", o = 0) {
2657
2661
  return e.length <= o;
2658
2662
  }
@@ -2660,8 +2664,8 @@ class cs {
2660
2664
  return e;
2661
2665
  }
2662
2666
  }
2663
- const us = new cs();
2664
- class ps {
2667
+ const cs = new ds();
2668
+ class us {
2665
2669
  validate(e) {
2666
2670
  return /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(e);
2667
2671
  }
@@ -2669,8 +2673,8 @@ class ps {
2669
2673
  return e;
2670
2674
  }
2671
2675
  }
2672
- const fs = new ps();
2673
- class ms {
2676
+ const ps = new us();
2677
+ class fs {
2674
2678
  validate(e) {
2675
2679
  return !isNaN(parseFloat(e)) && !isNaN(e - 0);
2676
2680
  }
@@ -2678,17 +2682,17 @@ class ms {
2678
2682
  return e;
2679
2683
  }
2680
2684
  }
2681
- const hs = new ms(), G = {
2682
- RulesUrl: as,
2683
- RulesRequired: ls,
2684
- RulesMin: ds,
2685
- RulesMax: us,
2686
- RulesEmail: fs,
2687
- RulesNumber: hs
2685
+ const ms = new fs(), G = {
2686
+ RulesUrl: ss,
2687
+ RulesRequired: is,
2688
+ RulesMin: rs,
2689
+ RulesMax: cs,
2690
+ RulesEmail: ps,
2691
+ RulesNumber: ms
2688
2692
  };
2689
- class gs {
2693
+ class hs {
2690
2694
  validate(e, o) {
2691
- var s, a, l, r, i, c, u, g, b, T, R, $, A, Y;
2695
+ var s, a, l, r, i, c, u, g, _, T, R, $, A, Y;
2692
2696
  let n = "";
2693
2697
  if (o) {
2694
2698
  let M = !1;
@@ -2705,7 +2709,7 @@ class gs {
2705
2709
  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 !== "";
2706
2710
  break;
2707
2711
  case "max":
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 !== "";
2712
+ n = G.RulesMax.validate(e, (g = o[B]) == null ? void 0 : g.value) ? "" : G.RulesMax.message((_ = o[B]) != null && _.message ? (T = o[B]) == null ? void 0 : T.message : "vary_large"), M = n !== "";
2709
2713
  break;
2710
2714
  case "email":
2711
2715
  n = G.RulesEmail.validate(e) ? "" : G.RulesMax.message((R = o[B]) != null && R.message ? ($ = o[B]) == null ? void 0 : $.message : "email_incorrect"), M = n !== "";
@@ -2720,39 +2724,39 @@ class gs {
2720
2724
  return n;
2721
2725
  }
2722
2726
  }
2723
- const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column" } }, _s = {
2727
+ const gs = new hs(), vs = { style: { display: "flex", "flex-direction": "column" } }, ys = {
2724
2728
  key: 0,
2725
2729
  class: "d-label"
2726
- }, bs = {
2730
+ }, _s = {
2727
2731
  key: 0,
2728
2732
  class: "text-red"
2729
- }, xs = { style: { display: "flex", "flex-direction": "row" } }, ks = { style: { flex: "1", position: "relative" } }, $s = /* @__PURE__ */ _("svg", {
2733
+ }, bs = { style: { display: "flex", "flex-direction": "row" } }, xs = { style: { flex: "1", position: "relative" } }, ks = /* @__PURE__ */ b("svg", {
2730
2734
  xmlns: "http://www.w3.org/2000/svg",
2731
2735
  viewBox: "0 0 24 24"
2732
2736
  }, [
2733
- /* @__PURE__ */ _("path", {
2737
+ /* @__PURE__ */ b("path", {
2734
2738
  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",
2735
2739
  fill: "currentColor"
2736
2740
  })
2737
- ], -1), ws = [
2738
- $s
2739
- ], Ss = ["id", "type", "placeholder", "disabled"], Ds = /* @__PURE__ */ _("svg", {
2741
+ ], -1), $s = [
2742
+ ks
2743
+ ], ws = ["id", "type", "placeholder", "disabled"], Ss = /* @__PURE__ */ b("svg", {
2740
2744
  xmlns: "http://www.w3.org/2000/svg",
2741
2745
  viewBox: "0 0 24 24"
2742
2746
  }, [
2743
- /* @__PURE__ */ _("path", {
2747
+ /* @__PURE__ */ b("path", {
2744
2748
  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",
2745
2749
  fill: "currentColor"
2746
2750
  })
2747
- ], -1), Ts = [
2748
- Ds
2749
- ], Cs = {
2751
+ ], -1), Ds = [
2752
+ Ss
2753
+ ], Ts = {
2750
2754
  key: 1,
2751
2755
  class: "d-help"
2752
- }, Ls = {
2756
+ }, Cs = {
2753
2757
  key: 2,
2754
2758
  class: "d-error text-red"
2755
- }, Qs = {
2759
+ }, Js = {
2756
2760
  __name: "DInputString",
2757
2761
  props: {
2758
2762
  form: Object,
@@ -2785,10 +2789,10 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2785
2789
  o("update:modelValue", M);
2786
2790
  }
2787
2791
  }), c = h(() => n.type === "password" ? "password" : "text"), u = h(() => n.scale), g = (M) => {
2788
- o("input", M), b();
2789
- }, b = () => {
2792
+ o("input", M), _();
2793
+ }, _ = () => {
2790
2794
  if (!(!n.form || !n.form.fields || !n.form.fields[n.name].rules))
2791
- return s.value = vs.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2795
+ return s.value = gs.validate(i.value, n.form.fields[n.name].rules), !!s.value;
2792
2796
  };
2793
2797
  he(() => {
2794
2798
  T();
@@ -2808,18 +2812,18 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2808
2812
  return e({
2809
2813
  focus: T,
2810
2814
  setError: A,
2811
- validate: b
2815
+ validate: _
2812
2816
  }), (M, B) => {
2813
2817
  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;
2814
2818
  return d(), f("div", {
2815
2819
  class: S(["d-input-string", u.value])
2816
2820
  }, [
2817
- _("div", ys, [
2818
- n.label ? (d(), f("div", _s, [
2821
+ b("div", vs, [
2822
+ n.label ? (d(), f("div", ys, [
2819
2823
  J(O(n.label), 1),
2820
- (F = n.form) != null && F.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", bs, "*")) : k("", !0)
2824
+ (F = n.form) != null && F.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", _s, "*")) : k("", !0)
2821
2825
  ])) : k("", !0),
2822
- _("div", xs, [
2826
+ b("div", bs, [
2823
2827
  (W = (C = n.pre) == null ? void 0 : C.outside) != null && W.component ? (d(), f("div", {
2824
2828
  key: 0,
2825
2829
  class: S(["d-pre", n.disabled ? "disabled" : ""])
@@ -2829,17 +2833,17 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2829
2833
  key: 1,
2830
2834
  class: S(["d-pre", n.disabled ? "disabled" : ""])
2831
2835
  }, [
2832
- _("div", {
2836
+ b("div", {
2833
2837
  class: S(["d-text", l.value ? "focused" : ""])
2834
2838
  }, O((p = (m = n.pre) == null ? void 0 : m.outside) == null ? void 0 : p.text), 3)
2835
2839
  ], 2)) : k("", !0),
2836
- _("div", ks, [
2840
+ b("div", xs, [
2837
2841
  (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", {
2838
2842
  key: 0,
2839
2843
  class: "d-pre-inside-button",
2840
2844
  onClick: R
2841
- }, ws)) : k("", !0),
2842
- Z(_("input", {
2845
+ }, $s)) : k("", !0),
2846
+ Z(b("input", {
2843
2847
  id: L(a),
2844
2848
  ref_key: "inputRef",
2845
2849
  ref: r,
@@ -2859,14 +2863,14 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2859
2863
  l.value ? "focused" : ""
2860
2864
  ]),
2861
2865
  disabled: n.disabled
2862
- }, null, 42, Ss), [
2866
+ }, null, 42, ws), [
2863
2867
  [De, i.value]
2864
2868
  ]),
2865
2869
  (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", {
2866
2870
  key: 1,
2867
2871
  class: "d-post-inside-button",
2868
2872
  onClick: R
2869
- }, Ts)) : k("", !0)
2873
+ }, Ds)) : k("", !0)
2870
2874
  ]),
2871
2875
  (Je = (Ke = n.post) == null ? void 0 : Ke.outside) != null && Je.component ? (d(), f("div", {
2872
2876
  key: 2,
@@ -2877,13 +2881,13 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2877
2881
  key: 3,
2878
2882
  class: S(["d-post", n.disabled ? "disabled" : ""])
2879
2883
  }, [
2880
- _("div", {
2884
+ b("div", {
2881
2885
  class: S(["d-text", l.value ? "focused" : ""])
2882
2886
  }, O((st = (nt = n.post) == null ? void 0 : nt.outside) == null ? void 0 : st.text), 3)
2883
2887
  ], 2)) : k("", !0)
2884
2888
  ]),
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)
2889
+ n.help ? (d(), f("div", Ts, O(n.help), 1)) : k("", !0),
2890
+ s.value ? (d(), f("div", Cs, O(s.value), 1)) : k("", !0)
2887
2891
  ])
2888
2892
  ], 2);
2889
2893
  };
@@ -2913,7 +2917,7 @@ const vs = new gs(), ys = { style: { display: "flex", "flex-direction": "column"
2913
2917
  St.close = (t) => {
2914
2918
  q.emit("notification-close", t);
2915
2919
  };
2916
- const ea = () => ({ notify: St }), ta = {
2920
+ const Qs = () => ({ notify: St }), ea = {
2917
2921
  mounted: function(t, e) {
2918
2922
  t.clickOutsideEvent = function(o) {
2919
2923
  t === o.target || t.contains(o.target) || e.value(o, t);
@@ -2922,7 +2926,7 @@ const ea = () => ({ notify: St }), ta = {
2922
2926
  unmounted: function(t) {
2923
2927
  document.removeEventListener("click", t.clickOutsideEvent);
2924
2928
  }
2925
- }, oa = {
2929
+ }, ta = {
2926
2930
  beforeMount(t, e) {
2927
2931
  t._keydownCallback = (o) => {
2928
2932
  o.key === e.arg && e.value();
@@ -2931,7 +2935,7 @@ const ea = () => ({ notify: St }), ta = {
2931
2935
  unmounted(t, e) {
2932
2936
  document.removeEventListener("keydown", t._keydownCallback), delete t._keydownCallback;
2933
2937
  }
2934
- }, na = {
2938
+ }, oa = {
2935
2939
  beforeMount(t) {
2936
2940
  t.focus();
2937
2941
  }
@@ -2942,7 +2946,7 @@ function Dt(t) {
2942
2946
  function Tt(t) {
2943
2947
  return t.type.indexOf("mouse") !== -1 ? t.clientY : t.touches[0].clientY;
2944
2948
  }
2945
- var Is = function() {
2949
+ var Ls = function() {
2946
2950
  var t = !1;
2947
2951
  try {
2948
2952
  var e = Object.defineProperty({}, "passive", {
@@ -2954,7 +2958,7 @@ var Is = function() {
2954
2958
  } catch {
2955
2959
  }
2956
2960
  return t;
2957
- }(), Bs = {
2961
+ }(), Is = {
2958
2962
  disableClick: !1,
2959
2963
  tapTolerance: 10,
2960
2964
  // px
@@ -3048,7 +3052,7 @@ function ze(t) {
3048
3052
  function Fe(t) {
3049
3053
  t.touchHoldTimer && (clearTimeout(t.touchHoldTimer), t.touchHoldTimer = null);
3050
3054
  }
3051
- function Es(t, e) {
3055
+ function Bs(t, e) {
3052
3056
  var o = t.$$touchObj || {
3053
3057
  // an object contains all callbacks registered,
3054
3058
  // key is event name, value is an array
@@ -3056,14 +3060,14 @@ function Es(t, e) {
3056
3060
  // prevent bind twice, set to true when event bound
3057
3061
  hasBindTouchEvents: !1,
3058
3062
  // default options, would be override by v-touch-options
3059
- options: Bs
3063
+ options: Is
3060
3064
  };
3061
3065
  return e && (o.options = Object.assign({}, o.options, e)), t.$$touchObj = o, t.$$touchObj;
3062
3066
  }
3063
- const sa = {
3067
+ const na = {
3064
3068
  beforeMount: function(t, e) {
3065
- const o = Es(t);
3066
- let n = Is ? { passive: !0 } : !1;
3069
+ const o = Bs(t);
3070
+ let n = Ls ? { passive: !0 } : !1;
3067
3071
  const s = e.arg || "tap";
3068
3072
  switch (s) {
3069
3073
  case "swipe":
@@ -3090,31 +3094,31 @@ const sa = {
3090
3094
  }
3091
3095
  };
3092
3096
  export {
3093
- Rs as DAccordion,
3097
+ Ns as DAccordion,
3094
3098
  Qo as DAlertDialog,
3095
3099
  uo as DBadge,
3096
3100
  le as DButton,
3097
- Fs as DCard,
3098
- js as DCheckbox,
3101
+ zs as DCard,
3102
+ Ps as DCheckbox,
3099
3103
  po as DCollapse,
3100
3104
  fe as DComponentStore,
3101
- Vs as DConfigProvider,
3105
+ Os as DConfigProvider,
3102
3106
  tn as DConfirmDialog,
3103
3107
  Bo as DContextMenu,
3104
- Xs as DDialogProvider,
3108
+ js as DDialogProvider,
3105
3109
  it as DDrag,
3106
3110
  Io as DDrop,
3107
- zs as DDropdown,
3108
- Js as DForm,
3111
+ Hs as DDropdown,
3112
+ Ks as DForm,
3109
3113
  pe as DGlobalStore,
3110
- qs as DGrid,
3114
+ Us as DGrid,
3111
3115
  re as DIcon,
3112
3116
  oe as DIconStore,
3113
- Gs as DImage,
3114
- Ps as DInfoProgress,
3115
- Ns as DInput,
3116
- Qs as DInputString,
3117
- Os as DLayoutAdmin,
3117
+ qs as DImage,
3118
+ Ws as DInfoProgress,
3119
+ Ms as DInput,
3120
+ Js as DInputString,
3121
+ Rs as DLayoutAdmin,
3118
3122
  Vo as DLayoutContent,
3119
3123
  Ro as DLayoutFooter,
3120
3124
  Mo as DLayoutHeader,
@@ -3122,27 +3126,27 @@ export {
3122
3126
  No as DLayoutTab,
3123
3127
  xt as DMenu,
3124
3128
  $t as DModal,
3125
- Ws as DNotificationProvider,
3129
+ Fs as DNotificationProvider,
3126
3130
  ln as DPanel,
3127
- Hs as DScroll,
3128
- As as DScrollProvider,
3129
- Ys as DSelect,
3130
- Ks as DSwitcher,
3131
- Us as DTabs,
3132
- Zs as DTextarea,
3131
+ As as DScroll,
3132
+ Vs as DScrollProvider,
3133
+ Xs as DSelect,
3134
+ Zs as DSwitcher,
3135
+ Ys as DTabs,
3136
+ Gs as DTextarea,
3133
3137
  Te as DTransferStore,
3134
3138
  kt as DTree,
3135
3139
  Co as DTreeItem,
3136
3140
  v as DTreeStore,
3137
3141
  G as Rules,
3138
- Rn as alert,
3139
- ta as clickOutside,
3140
- Nn as confirm,
3142
+ Nn as alert,
3143
+ ea as clickOutside,
3144
+ Mn as confirm,
3141
3145
  q as emitter,
3142
3146
  Lo as eventsBus,
3143
- na as focus,
3144
- oa as keydown,
3147
+ oa as focus,
3148
+ ta as keydown,
3145
3149
  St as notify,
3146
- sa as touch,
3147
- ea as useNotification
3150
+ na as touch,
3151
+ Qs as useNotification
3148
3152
  };