doph-js 0.2.29 → 0.2.31

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 De, computed as m, h as ot, openBlock as d, createBlock as x, unref as M, ref as w, createElementBlock as f, Fragment as ie, normalizeClass as D, renderSlot as L, createCommentVNode as k, normalizeStyle as z, resolveDynamicComponent as X, createStaticVNode as rt, onMounted as fe, toDisplayString as H, withDirectives as te, createElementVNode as _, vModelDynamic as Se, withCtx as I, createTextVNode as K, Transition as Ne, withModifiers as Z, resolveComponent as kt, resolveDirective as Re, createVNode as le, renderList as he, pushScopeId as wt, popScopeId as St, reactive as Oe, Teleport as dt, nextTick as ct, getCurrentInstance as ut, watch as pt, onUnmounted as Tt, mergeProps as ce, useCssVars as Le, shallowRef as Dt, defineComponent as Lt, normalizeProps as Ct, guardReactiveProps as It, TransitionGroup as ft, vModelCheckbox as Et, vModelSelect as Bt, toRef as Mt, KeepAlive as Nt, toRefs as Rt, vModelText as Ot } from "vue";
1
+ import { useSlots as De, computed as m, h as nt, openBlock as d, createBlock as x, unref as M, ref as S, createElementBlock as f, Fragment as ae, normalizeClass as w, renderSlot as L, createCommentVNode as $, normalizeStyle as H, resolveDynamicComponent as X, createStaticVNode as dt, onMounted as fe, toDisplayString as A, withDirectives as J, createElementVNode as _, vModelDynamic as Se, withCtx as I, createTextVNode as K, Transition as Ne, withModifiers as Z, resolveComponent as kt, resolveDirective as Re, createVNode as ie, renderList as he, pushScopeId as wt, popScopeId as St, reactive as Oe, Teleport as ct, nextTick as ut, getCurrentInstance as pt, watch as ft, onUnmounted as Tt, mergeProps as ce, useCssVars as Ae, shallowRef as Dt, defineComponent as Lt, normalizeProps as Ct, guardReactiveProps as It, TransitionGroup as mt, vModelCheckbox as Et, vModelSelect as Bt, toRef as Mt, KeepAlive as Nt, toRefs as Rt, vModelText as Ot } from "vue";
2
2
  const pe = {
3
3
  __name: "DIcon",
4
4
  props: {
@@ -18,7 +18,7 @@ const pe = {
18
18
  const r = o.size ?? null;
19
19
  if (r !== void 0)
20
20
  return typeof r == "number" || /^\d+$/.test(r) ? `${r}px` : r;
21
- }), l = m(() => ot(
21
+ }), l = m(() => nt(
22
22
  "i",
23
23
  {
24
24
  class: n.value,
@@ -27,38 +27,38 @@ const pe = {
27
27
  fontSize: a.value
28
28
  }
29
29
  },
30
- o.component ? ot(o.component) : t
30
+ o.component ? nt(o.component) : t
31
31
  ));
32
32
  return (r, i) => (d(), x(M(l)));
33
33
  }
34
- }, ee = {
34
+ }, te = {
35
35
  state: {},
36
36
  getters: {
37
37
  getIcon(e) {
38
- return ee.state[e];
38
+ return te.state[e];
39
39
  },
40
40
  getIcons() {
41
- return ee.state;
41
+ return te.state;
42
42
  }
43
43
  },
44
44
  mutations: {
45
45
  addIcon(e, o) {
46
- ee.state.name = o;
46
+ te.state.name = o;
47
47
  },
48
48
  addIcons(e) {
49
49
  for (const o in e)
50
- e.hasOwnProperty(o) && (ee.state[o] = e[o]);
50
+ e.hasOwnProperty(o) && (te.state[o] = e[o]);
51
51
  }
52
52
  }
53
53
  };
54
- function mt(e) {
54
+ function ht(e) {
55
55
  const o = e.value.getBoundingClientRect();
56
56
  let t = e.value, n = 0, s = 0;
57
57
  for (; t && !isNaN(t.offsetLeft) && !isNaN(t.offsetTop); )
58
58
  n += t.offsetLeft - t.scrollLeft, s += t.offsetTop - t.scrollTop, t = t.offsetParent;
59
59
  return { top: s, left: n, x: o.x, y: o.y, width: o.width, height: o.height };
60
60
  }
61
- function Ht() {
61
+ function At() {
62
62
  function e(s) {
63
63
  return s * Math.random() | 0;
64
64
  }
@@ -76,24 +76,24 @@ function Ht() {
76
76
  }
77
77
  return t(8) + "-" + t(4) + "-4" + t(3) + "-" + n() + t(3) + "-" + t(12);
78
78
  }
79
- const oe = (e, o) => {
79
+ const le = (e, o) => {
80
80
  const t = e.__vccOpts || e;
81
81
  for (const [n, s] of o)
82
82
  t[n] = s;
83
83
  return t;
84
- }, Vt = {
84
+ }, Ht = {
85
85
  key: 0,
86
86
  class: "loading-svg rotating",
87
87
  xmlns: "http://www.w3.org/2000/svg",
88
88
  viewBox: "0 0 24 24"
89
- }, At = /* @__PURE__ */ rt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), zt = [
90
- At
89
+ }, Vt = /* @__PURE__ */ dt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), zt = [
90
+ Vt
91
91
  ], Ft = { key: 1 }, Wt = {
92
92
  key: 2,
93
93
  class: "loading-svg rotating",
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  viewBox: "0 0 24 24"
96
- }, Pt = /* @__PURE__ */ rt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), jt = [
96
+ }, Pt = /* @__PURE__ */ dt('<g fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-e5cd6ccd><path d="M8.56 3.69a9 9 0 0 0-2.92 1.95" data-v-e5cd6ccd></path><path d="M3.69 8.56A9 9 0 0 0 3 12" data-v-e5cd6ccd></path><path d="M3.69 15.44a9 9 0 0 0 1.95 2.92" data-v-e5cd6ccd></path><path d="M8.56 20.31A9 9 0 0 0 12 21" data-v-e5cd6ccd></path><path d="M15.44 20.31a9 9 0 0 0 2.92-1.95" data-v-e5cd6ccd></path><path d="M20.31 15.44A9 9 0 0 0 21 12" data-v-e5cd6ccd></path><path d="M20.31 8.56a9 9 0 0 0-1.95-2.92" data-v-e5cd6ccd></path><path d="M15.44 3.69A9 9 0 0 0 12 3" data-v-e5cd6ccd></path></g>', 1), jt = [
97
97
  Pt
98
98
  ], Xt = {
99
99
  __name: "DButton",
@@ -120,27 +120,27 @@ const oe = (e, o) => {
120
120
  },
121
121
  emits: ["click", "contextmenu"],
122
122
  setup(e, { expose: o, emit: t }) {
123
- const n = e, s = De(), a = w(null), l = m(() => n.icon ? ee.getters.getIcon(n.icon) : null), r = ($) => {
124
- t("click", $);
125
- }, i = ($) => {
126
- t("contextmenu", $);
127
- }, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = ($) => !!s[$], b = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), S = m(() => {
128
- const $ = n.outline ? "-outline" : "";
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${$}` : "";
123
+ const n = e, s = De(), a = S(null), l = m(() => n.icon ? te.getters.getIcon(n.icon) : null), r = (k) => {
124
+ t("click", k);
125
+ }, i = (k) => {
126
+ t("contextmenu", k);
127
+ }, c = m(() => n.scale === "large" ? "button-lg" : n.scale === "small" ? "button-sm" : ""), u = m(() => n.disabled ? "disabled" : ""), h = (k) => !!s[k], b = m(() => h("default") ? "" : n.scale === "large" ? "d-button-lg-icon" : n.scale === "small" ? "d-button-sm-icon" : "d-button-icon"), T = m(() => {
128
+ const k = n.outline ? "-outline" : "";
129
+ return n.type === "primary" ? `button${k}-blue` : n.type === "success" ? `button${k}-green` : n.type === "error" ? `button${k}-red` : n.type === "warning" ? `button${k}-orange` : n.type === "wait" ? `button${k}-violet` : n.outline ? `button${k}` : "";
130
130
  });
131
131
  return o({
132
- elementSize: () => mt(a)
133
- }), ($, F) => (d(), f(ie, null, [
134
- l.value ? k("", !0) : (d(), f("div", {
132
+ elementSize: () => ht(a)
133
+ }), (k, F) => (d(), f(ae, null, [
134
+ l.value ? $("", !0) : (d(), f("div", {
135
135
  key: 0,
136
136
  ref_key: "el",
137
137
  ref: a,
138
138
  onClick: r,
139
139
  onContextmenu: i,
140
- class: D(["button", [n.class, c.value, S.value, u.value].join(" ")])
140
+ class: w(["button", [n.class, c.value, T.value, u.value].join(" ")])
141
141
  }, [
142
- L($.$slots, "default", {}, void 0, !0),
143
- n.loading ? (d(), f("svg", Vt, zt)) : k("", !0)
142
+ L(k.$slots, "default", {}, void 0, !0),
143
+ n.loading ? (d(), f("svg", Ht, zt)) : $("", !0)
144
144
  ], 34)),
145
145
  l.value ? (d(), f("div", {
146
146
  key: 1,
@@ -148,22 +148,22 @@ const oe = (e, o) => {
148
148
  ref: a,
149
149
  onClick: r,
150
150
  onContextmenu: i,
151
- class: D(["button button-ext", [n.class, c.value, b.value, S.value, u.value].join(" ")]),
152
- style: z(n.style)
151
+ class: w(["button button-ext", [n.class, c.value, b.value, T.value, u.value].join(" ")]),
152
+ style: H(n.style)
153
153
  }, [
154
154
  n.icon ? (d(), x(X(pe), {
155
155
  key: 0,
156
156
  component: l.value,
157
157
  color: "inherit"
158
- }, null, 8, ["component"])) : k("", !0),
158
+ }, null, 8, ["component"])) : $("", !0),
159
159
  M(s).default ? (d(), f("div", Ft, [
160
- L($.$slots, "default", {}, void 0, !0)
161
- ])) : k("", !0),
162
- n.loading ? (d(), f("svg", Wt, jt)) : k("", !0)
163
- ], 38)) : k("", !0)
160
+ L(k.$slots, "default", {}, void 0, !0)
161
+ ])) : $("", !0),
162
+ n.loading ? (d(), f("svg", Wt, jt)) : $("", !0)
163
+ ], 38)) : $("", !0)
164
164
  ], 64));
165
165
  }
166
- }, ae = /* @__PURE__ */ oe(Xt, [["__scopeId", "data-v-e5cd6ccd"]]);
166
+ }, se = /* @__PURE__ */ le(Xt, [["__scopeId", "data-v-e5cd6ccd"]]);
167
167
  const Yt = {
168
168
  key: 0,
169
169
  class: "d-input"
@@ -199,7 +199,7 @@ const Yt = {
199
199
  },
200
200
  emits: ["update:modelValue"],
201
201
  setup(e, { expose: o, emit: t }) {
202
- const n = e, s = w(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = m({
202
+ const n = e, s = S(null), a = m(() => n.scale === "small" ? "d-input-small" : n.scale === "large" ? "d-input-large" : ""), l = m({
203
203
  get: () => n.modelValue,
204
204
  set: (i) => {
205
205
  t("update:modelValue", i);
@@ -214,26 +214,26 @@ const Yt = {
214
214
  return o({
215
215
  focus: r
216
216
  }), (i, c) => !n.post && !n.pre ? (d(), f("div", Yt, [
217
- n.label ? (d(), f("div", Ut, H(n.label), 1)) : k("", !0),
218
- te(_("input", {
217
+ n.label ? (d(), f("div", Ut, A(n.label), 1)) : $("", !0),
218
+ J(_("input", {
219
219
  ref_key: "inputRef",
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: D(a.value),
223
+ class: w(a.value),
224
224
  placeholder: n.placeholder,
225
225
  style: { width: "100%" }
226
226
  }, null, 10, qt), [
227
227
  [Se, l.value]
228
228
  ])
229
229
  ])) : n.post && n.post.click && !n.pre ? (d(), f("div", Gt, [
230
- n.label ? (d(), f("div", Zt, H(n.label), 1)) : k("", !0),
230
+ n.label ? (d(), f("div", Zt, A(n.label), 1)) : $("", !0),
231
231
  _("div", Kt, [
232
232
  _("div", Jt, [
233
- te(_("input", {
233
+ J(_("input", {
234
234
  ref_key: "inputRef",
235
235
  ref: s,
236
- class: D(["d-input-post-field", a.value]),
236
+ class: w(["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,
@@ -242,51 +242,51 @@ const Yt = {
242
242
  [Se, l.value]
243
243
  ])
244
244
  ]),
245
- n.post.label ? (d(), x(ae, {
245
+ n.post.label ? (d(), x(se, {
246
246
  key: 0,
247
247
  scale: n.scale,
248
- class: D(["d-input-post-button", n.post.class]),
248
+ class: w(["d-input-post-button", n.post.class]),
249
249
  onClick: n.post.click,
250
250
  icon: n.post.icon
251
251
  }, {
252
252
  default: I(() => [
253
- K(H(n.post.label), 1)
253
+ K(A(n.post.label), 1)
254
254
  ]),
255
255
  _: 1
256
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
256
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(se, {
257
257
  key: 1,
258
258
  scale: n.scale,
259
- class: D(["d-input-post-button", n.post.class]),
259
+ class: w(["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"]))
263
263
  ])
264
264
  ])) : !n.post && n.pre && n.pre.click ? (d(), f("div", eo, [
265
- n.label ? (d(), f("div", to, H(n.label), 1)) : k("", !0),
265
+ n.label ? (d(), f("div", to, A(n.label), 1)) : $("", !0),
266
266
  _("div", oo, [
267
- n.pre.label ? (d(), x(ae, {
267
+ n.pre.label ? (d(), x(se, {
268
268
  key: 0,
269
269
  scale: n.scale,
270
- class: D(["d-input-pre-button", n.pre.class]),
270
+ class: w(["d-input-pre-button", n.pre.class]),
271
271
  onClick: n.pre.click,
272
272
  icon: n.pre.icon
273
273
  }, {
274
274
  default: I(() => [
275
- K(H(n.pre.label), 1)
275
+ K(A(n.pre.label), 1)
276
276
  ]),
277
277
  _: 1
278
- }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(ae, {
278
+ }, 8, ["scale", "onClick", "icon", "class"])) : (d(), x(se, {
279
279
  key: 1,
280
280
  scale: n.scale,
281
- class: D(["d-input-pre-button", n.pre.class]),
281
+ class: w(["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"])),
285
285
  _("div", no, [
286
- te(_("input", {
286
+ J(_("input", {
287
287
  ref_key: "inputRef",
288
288
  ref: s,
289
- class: D(["d-input-pre-field", a.value]),
289
+ class: w(["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,
@@ -296,9 +296,9 @@ const Yt = {
296
296
  ])
297
297
  ])
298
298
  ])
299
- ])) : k("", !0);
299
+ ])) : $("", !0);
300
300
  }
301
- }, ws = /* @__PURE__ */ oe(ao, [["__scopeId", "data-v-a972038a"]]), io = {
301
+ }, ws = /* @__PURE__ */ le(ao, [["__scopeId", "data-v-a972038a"]]), io = {
302
302
  __name: "DBadge",
303
303
  props: {
304
304
  scale: String,
@@ -315,12 +315,12 @@ const Yt = {
315
315
  return o.type === "primary" ? `badge${s}-blue` : o.type === "success" ? `badge${s}-green` : o.type === "error" ? `badge${s}-red` : o.type === "warning" ? `badge${s}-orange` : o.type === "wait" ? `badge${s}-violet` : o.stress ? `badge${s}-gray` : "";
316
316
  });
317
317
  return (s, a) => (d(), f("div", {
318
- class: D(["badge", [o.class, t.value, n.value].join(" ")])
318
+ class: w(["badge", [o.class, t.value, n.value].join(" ")])
319
319
  }, [
320
320
  L(s.$slots, "default")
321
321
  ], 2));
322
322
  }
323
- }, se = "0px", lo = {
323
+ }, ne = "0px", lo = {
324
324
  __name: "DCollapse",
325
325
  props: {
326
326
  duration: {
@@ -361,22 +361,22 @@ const Yt = {
361
361
  const { width: u } = getComputedStyle(i);
362
362
  i.style.width = u, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
363
363
  let { height: h } = getComputedStyle(i);
364
- return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = se, i.style.overflow = "hidden", c.height && c.height !== se ? c.height : h;
364
+ return i.style.width = c.width, i.style.position = c.position, i.style.visibility = c.visibility, i.style.height = ne, i.style.overflow = "hidden", c.height && c.height !== ne ? c.height : h;
365
365
  }, s = (i, c, u, h, b) => {
366
- const S = i.animate(h, b);
367
- i.style.height = c.height, S.onfinish = () => {
366
+ const T = i.animate(h, b);
367
+ i.style.height = c.height, T.onfinish = () => {
368
368
  i.style.overflow = c.overflow, u();
369
369
  };
370
370
  }, a = (i, c) => [
371
371
  {
372
- height: se,
372
+ height: ne,
373
373
  opacity: o.opacityClosed,
374
- paddingTop: se,
375
- paddingBottom: se,
376
- borderTopWidth: se,
377
- borderBottomWidth: se,
378
- marginTop: se,
379
- marginBottom: se
374
+ paddingTop: ne,
375
+ paddingBottom: ne,
376
+ borderTopWidth: ne,
377
+ borderBottomWidth: ne,
378
+ marginTop: ne,
379
+ marginBottom: ne
380
380
  },
381
381
  {
382
382
  height: i,
@@ -389,13 +389,13 @@ const Yt = {
389
389
  marginBottom: c.marginBottom
390
390
  }
391
391
  ], l = (i, c) => {
392
- const u = i, h = t(u), b = n(u, h), S = a(b, h), N = { duration: o.duration, easing: o.easingEnter };
393
- s(u, h, c, S, N);
392
+ const u = i, h = t(u), b = n(u, h), T = a(b, h), N = { duration: o.duration, easing: o.easingEnter };
393
+ s(u, h, c, T, N);
394
394
  }, r = (i, c) => {
395
395
  const u = i, h = t(u), { height: b } = getComputedStyle(u);
396
396
  u.style.height = b, u.style.overflow = "hidden";
397
- const S = a(b, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
398
- s(u, h, c, S, N);
397
+ const T = a(b, h).reverse(), N = { duration: o.duration, easing: o.easingLeave };
398
+ s(u, h, c, T, N);
399
399
  };
400
400
  return (i, c) => (d(), x(Ne, {
401
401
  css: !1,
@@ -442,7 +442,7 @@ const Yt = {
442
442
  tag: { type: String, default: "div" }
443
443
  },
444
444
  setup(e) {
445
- const o = e, t = De(), n = w(!1), s = m(() => n && o.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
445
+ const o = e, t = De(), n = S(!1), s = m(() => n && o.transferData), a = m(() => ({ position: "fixed", top: "-1000px" })), l = (r, i) => {
446
446
  const c = i.dataTransfer;
447
447
  if ([j.dragenter, j.dragover].includes(r) && o.dropEffect && (c.dropEffect = o.dropEffect), r === j.dragstart) {
448
448
  if (o.effectAllowed && (c.effectAllowed = o.effectAllowed), o.image || t.image) {
@@ -464,7 +464,7 @@ const Yt = {
464
464
  L(r.$slots, "default", { transferData: s.value }),
465
465
  e.hideImageHtml ? (d(), f("div", {
466
466
  key: 0,
467
- style: z(a.value)
467
+ style: H(a.value)
468
468
  }, [
469
469
  L(r.$slots, "image", { transferData: s.value })
470
470
  ], 4)) : L(r.$slots, "image", {
@@ -497,7 +497,7 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
497
497
  },
498
498
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
499
499
  setup(e, { emit: o }) {
500
- const t = e, n = w(null), s = w(!1), a = w(!1), l = w(!1), r = m(() => t.model.children && t.model.children.length), i = m(() => (v.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (B) => {
500
+ const t = e, n = S(null), s = S(!1), a = S(!1), l = S(!1), r = m(() => t.model.children && t.model.children.length), i = m(() => (v.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), c = (B) => {
501
501
  o("nodeclick", { event: B, model: t.model });
502
502
  }, u = (B) => {
503
503
  o("nodeclick", B);
@@ -505,7 +505,7 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
505
505
  o("nodedrop", B);
506
506
  }, b = (B) => {
507
507
  o("nodecontext", B);
508
- }, S = m(() => (v.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), N = m(() => t.search ? !1 : t.model.draggable === !0), $ = (B) => {
508
+ }, T = m(() => (v.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), N = m(() => t.search ? !1 : t.model.draggable === !0), k = (B) => {
509
509
  o("nodedrop", { e: B, model: t.model });
510
510
  let y = Te.data;
511
511
  if (y === void 0 || y.model === void 0)
@@ -537,14 +537,14 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
537
537
  return (B, y) => {
538
538
  const O = kt("d-tree-item", !0), W = Re("touch");
539
539
  return M(v).actions.beforeItem(t.treeId, e.model) ? C.value && !E.value ? (d(), f("li", mo, go)) : C.value && E.value ? (d(), f("li", vo, [
540
- _("div", yo, H(M(v).actions.renderTitle(t.treeId, E.value)), 1)
540
+ _("div", yo, A(M(v).actions.renderTitle(t.treeId, E.value)), 1)
541
541
  ])) : (d(), x(uo, {
542
542
  key: 3,
543
543
  tag: "li",
544
544
  class: "tree-item",
545
545
  "transfer-data": { id: t.treeId, model: t.model },
546
546
  draggable: N.value,
547
- onDrop: Z($, ["stop"]),
547
+ onDrop: Z(k, ["stop"]),
548
548
  onDragenter: y[1] || (y[1] = Z(() => {
549
549
  }, ["prevent"])),
550
550
  onDragover: Z(F, ["prevent", "stop"]),
@@ -553,64 +553,64 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
553
553
  default: I(() => {
554
554
  var P, g;
555
555
  return [
556
- te((d(), f("div", {
556
+ J((d(), f("div", {
557
557
  ref_key: "node",
558
558
  ref: n,
559
- class: D(S.value),
559
+ class: w(T.value),
560
560
  onContextmenu: y[0] || (y[0] = Z((V) => o("nodecontext", { e: V, model: t.model }), ["prevent"]))
561
561
  }, [
562
562
  _("div", null, [
563
563
  t.model.icons && t.model.icons.pre && r.value && !t.search && !C.value ? (d(), x(X(pe), {
564
564
  key: 0,
565
- component: M(ee).getters.getIcon(t.model.icons.pre.component),
565
+ component: M(te).getters.getIcon(t.model.icons.pre.component),
566
566
  size: 18,
567
567
  color: t.model.icons.pre.color ? t.model.icons.pre.color : "inherit",
568
- class: D(i.value ? "tree-open-pre" : "")
569
- }, null, 8, ["component", "color", "class"])) : k("", !0),
568
+ class: w(i.value ? "tree-open-pre" : "")
569
+ }, null, 8, ["component", "color", "class"])) : $("", !0),
570
570
  t.model.icons && t.model.icons.pre && !r.value && !t.search && !C.value ? (d(), x(X(pe), {
571
571
  key: 1,
572
- component: M(ee).getters.getIcon(t.model.icons.pre.component),
572
+ component: M(te).getters.getIcon(t.model.icons.pre.component),
573
573
  size: 18,
574
574
  color: "rgba(0,0,0,0)",
575
- class: D(i.value ? "tree-open-pre" : "")
576
- }, null, 8, ["component", "class"])) : k("", !0),
575
+ class: w(i.value ? "tree-open-pre" : "")
576
+ }, null, 8, ["component", "class"])) : $("", !0),
577
577
  t.model.icons && t.model.icons.icon && !C.value ? (d(), x(X(pe), {
578
578
  key: 2,
579
- component: M(ee).getters.getIcon(t.model.icons.icon.component),
579
+ component: M(te).getters.getIcon(t.model.icons.icon.component),
580
580
  color: t.model.icons.icon.color ? t.model.icons.icon.color : "inherit",
581
581
  size: t.model.icons.icon.size ? t.model.icons.icon.size : null,
582
582
  className: t.model.icons.icon.class ? t.model.icons.icon.class : null
583
- }, null, 8, ["component", "color", "size", "className"])) : k("", !0),
583
+ }, null, 8, ["component", "color", "size", "className"])) : $("", !0),
584
584
  _("div", _o, [
585
- C.value ? (d(), f("div", bo)) : k("", !0),
586
- C.value ? k("", !0) : (d(), f("div", xo, H(M(v).actions.renderTitle(t.treeId, t.model.title)), 1))
585
+ C.value ? (d(), f("div", bo)) : $("", !0),
586
+ C.value ? $("", !0) : (d(), f("div", xo, A(M(v).actions.renderTitle(t.treeId, t.model.title)), 1))
587
587
  ])
588
588
  ]),
589
589
  _("div", $o, [
590
590
  ((P = t.model.badge) == null ? void 0 : P.value) !== void 0 && !C.value ? (d(), x(X(io), {
591
591
  key: 0,
592
- class: D([(g = t.model.badge) == null ? void 0 : g.class, "badge-sm"])
592
+ class: w([(g = t.model.badge) == null ? void 0 : g.class, "badge-sm"])
593
593
  }, {
594
594
  default: I(() => [
595
- K(H(t.model.badge.value), 1)
595
+ K(A(t.model.badge.value), 1)
596
596
  ]),
597
597
  _: 1
598
- }, 8, ["class"])) : k("", !0),
598
+ }, 8, ["class"])) : $("", !0),
599
599
  t.model.icons && t.model.icons.post && r.value && !t.search && !C.value ? (d(), x(X(pe), {
600
600
  key: 1,
601
- component: M(ee).getters.getIcon(t.model.icons.post.component),
601
+ component: M(te).getters.getIcon(t.model.icons.post.component),
602
602
  size: 20,
603
603
  color: t.model.icons.post.color ? t.model.icons.post.color : "inherit",
604
- class: D(i.value ? "tree-open-post" : "")
605
- }, null, 8, ["component", "color", "class"])) : k("", !0)
604
+ class: w(i.value ? "tree-open-post" : "")
605
+ }, null, 8, ["component", "color", "class"])) : $("", !0)
606
606
  ])
607
607
  ], 34)), [
608
608
  [W, c]
609
609
  ]),
610
- le(lo, null, {
610
+ ie(lo, null, {
611
611
  default: I(() => [
612
612
  r.value && i.value && !t.search ? (d(), f("ul", ko, [
613
- (d(!0), f(ie, null, he(e.model.children, (V) => (d(), x(O, {
613
+ (d(!0), f(ae, null, he(e.model.children, (V) => (d(), x(O, {
614
614
  class: "tree-item",
615
615
  key: V.id,
616
616
  model: V,
@@ -621,7 +621,7 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
621
621
  onNodedrop: h,
622
622
  onNodecontext: b
623
623
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
624
- ])) : k("", !0)
624
+ ])) : $("", !0)
625
625
  ]),
626
626
  _: 1
627
627
  })
@@ -631,7 +631,7 @@ const po = (e) => (wt("data-v-d8c92d5e"), e = e(), St(), e), fo = {
631
631
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (d(), f("li", fo));
632
632
  };
633
633
  }
634
- }, So = /* @__PURE__ */ oe(wo, [["__scopeId", "data-v-d8c92d5e"]]);
634
+ }, So = /* @__PURE__ */ le(wo, [["__scopeId", "data-v-d8c92d5e"]]);
635
635
  function To(e) {
636
636
  return e = e || /* @__PURE__ */ new Map(), {
637
637
  /**
@@ -789,11 +789,11 @@ const U = To(), v = {
789
789
  emits: Object.keys(j),
790
790
  setup(e, { expose: o, emit: t }) {
791
791
  let n = Oe({});
792
- const s = w("false"), a = w(null), l = /* @__PURE__ */ new Set(), r = m(() => s.value && n), i = (u, h) => {
792
+ const s = S("false"), a = S(null), l = /* @__PURE__ */ new Set(), r = m(() => s.value && n), i = (u, h) => {
793
793
  n = Te.data, t(u, h, n), u === j.dragenter && (l.size || h.target === a.value) && l.add(h.target), u === j.dragleave && l.delete(h.target), u === j.drop && l.clear(), s.value = !!l.size;
794
794
  };
795
795
  return o({
796
- elementSize: () => mt(a)
796
+ elementSize: () => ht(a)
797
797
  }), (u, h) => (d(), x(X(e.tag), {
798
798
  ref_key: "el",
799
799
  ref: a,
@@ -808,7 +808,7 @@ const U = To(), v = {
808
808
  _: 3
809
809
  }, 544));
810
810
  }
811
- }, ht = {
811
+ }, Lo = { key: 0 }, Co = { key: 1 }, gt = {
812
812
  __name: "DMenu",
813
813
  props: {
814
814
  class: String,
@@ -819,12 +819,16 @@ const U = To(), v = {
819
819
  default: !0
820
820
  },
821
821
  renderItemTitle: Function,
822
- beforeItem: Function
822
+ beforeItem: Function,
823
+ bodyAsParent: {
824
+ type: Boolean,
825
+ default: !0
826
+ }
823
827
  },
824
828
  emits: ["select"],
825
829
  setup(e, { expose: o, emit: t }) {
826
830
  const n = e;
827
- let s = w(null), a = w(!1);
831
+ let s = S(null), a = S(!1);
828
832
  const l = () => {
829
833
  U.emit("menu-show-request"), a.value = !0;
830
834
  }, r = () => {
@@ -843,27 +847,44 @@ const U = To(), v = {
843
847
  const h = (b) => {
844
848
  t("select", b), b.model.children || r();
845
849
  };
846
- return (b, S) => {
850
+ return (b, T) => {
847
851
  const N = Re("click-outside");
848
- return d(), x(dt, { to: "body" }, [
849
- M(a) ? te((d(), x(gt, {
852
+ return n.bodyAsParent ? (d(), f("div", Lo, [
853
+ (d(), x(ct, { to: "body" }, [
854
+ M(a) ? J((d(), x(Be, {
855
+ key: 0,
856
+ ref_key: "treeRef",
857
+ ref: s,
858
+ items: n.items,
859
+ "no-select": n.noSelect,
860
+ class: w(n.class),
861
+ style: H(n.style),
862
+ onSelect: h,
863
+ "render-title": n.renderItemTitle,
864
+ "before-item": n.beforeItem
865
+ }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
866
+ [N, () => r()]
867
+ ]) : $("", !0)
868
+ ]))
869
+ ])) : (d(), f("div", Co, [
870
+ M(a) ? J((d(), x(Be, {
850
871
  key: 0,
851
872
  ref_key: "treeRef",
852
873
  ref: s,
853
874
  items: n.items,
854
875
  "no-select": n.noSelect,
855
- class: D(n.class),
856
- style: z(n.style),
876
+ class: w(n.class),
877
+ style: H(n.style),
857
878
  onSelect: h,
858
879
  "render-title": n.renderItemTitle,
859
880
  "before-item": n.beforeItem
860
881
  }, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
861
882
  [N, () => r()]
862
- ]) : k("", !0)
863
- ]);
883
+ ]) : $("", !0)
884
+ ]));
864
885
  };
865
886
  }
866
- }, Lo = {
887
+ }, Io = {
867
888
  __name: "DContextMenu",
868
889
  props: {
869
890
  items: Array,
@@ -872,32 +893,32 @@ const U = To(), v = {
872
893
  },
873
894
  emits: ["select"],
874
895
  setup(e, { expose: o, emit: t }) {
875
- const n = e, s = w(null), a = w(0), l = w(0), r = m(() => ({
896
+ const n = e, s = S(null), a = S(0), l = S(0), r = m(() => ({
876
897
  left: a.value + "px",
877
898
  top: l.value + "px"
878
899
  })), i = (u) => {
879
- s.value.show(), ct(() => {
880
- const h = s.value.elementSize(), b = window.innerWidth, S = window.innerHeight;
881
- a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, l.value = S - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
900
+ s.value.show(), ut(() => {
901
+ const h = s.value.elementSize(), b = window.innerWidth, T = window.innerHeight;
902
+ a.value = b - u.pageX < h.width ? u.pageX - h.width : u.pageX, l.value = T - u.pageY < h.height ? u.pageY - h.height : u.pageY, s.value.itemsCount() === 0 && s.value.hide();
882
903
  });
883
904
  }, c = (u) => {
884
905
  t("select", u);
885
906
  };
886
907
  return o({
887
908
  show: i
888
- }), (u, h) => (d(), x(ht, {
909
+ }), (u, h) => (d(), x(gt, {
889
910
  ref_key: "dMenuRef",
890
911
  ref: s,
891
912
  onSelect: c,
892
913
  items: n.items,
893
- style: z(r.value),
914
+ style: H(r.value),
894
915
  class: "context-menu",
895
916
  "no-select": !0,
896
917
  "render-item-title": n.renderItemTitle,
897
918
  "before-item": n.beforeItem
898
919
  }, null, 8, ["items", "style", "render-item-title", "before-item"]));
899
920
  }
900
- }, gt = {
921
+ }, Be = {
901
922
  __name: "DTree",
902
923
  props: {
903
924
  items: Array,
@@ -932,7 +953,7 @@ const U = To(), v = {
932
953
  },
933
954
  emits: ["select", "collapse", "expand", "move", "over", "drop"],
934
955
  setup(e, { expose: o, emit: t }) {
935
- const n = e, s = w(null), a = w(!1), l = w(null), r = ut().uid;
956
+ const n = e, s = S(null), a = S(!1), l = S(null), r = pt().uid;
936
957
  v.actions.initTreeStore(r, n.noSelect, n.multiSelect, n.expanded, n.transfer, n.renderTitle, n.beforeItem);
937
958
  const i = (g, V) => {
938
959
  console.log(g, V);
@@ -950,10 +971,10 @@ const U = To(), v = {
950
971
  t("over", g);
951
972
  }, b = (g = null) => {
952
973
  t("drop", g);
953
- }, S = () => s.value.elementSize(), N = () => {
974
+ }, T = () => s.value.elementSize(), N = () => {
954
975
  for (let g = 0; g < n.items.length; g++)
955
976
  n.items[g].expanded = !0;
956
- }, $ = () => {
977
+ }, k = () => {
957
978
  for (let g = 0; g < n.items.length; g++)
958
979
  n.items[g].expanded = !1;
959
980
  }, F = () => r, R = (g) => v.actions.deepSearch(n.items, g), C = (g) => {
@@ -967,9 +988,9 @@ const U = To(), v = {
967
988
  return V;
968
989
  };
969
990
  return o({
970
- elementSize: S,
991
+ elementSize: T,
971
992
  expandAll: N,
972
- collapseAll: $,
993
+ collapseAll: k,
973
994
  getId: F,
974
995
  getNode: R,
975
996
  selectNode: C,
@@ -982,7 +1003,7 @@ const U = To(), v = {
982
1003
  onDrop: Z(i, ["stop"])
983
1004
  }, {
984
1005
  default: I(() => [
985
- (d(!0), f(ie, null, he(c.value, (p) => (d(), x(So, {
1006
+ (d(!0), f(ae, null, he(c.value, (p) => (d(), x(So, {
986
1007
  key: p.id,
987
1008
  model: p,
988
1009
  treeId: M(r),
@@ -993,20 +1014,20 @@ const U = To(), v = {
993
1014
  onNodedrop: b,
994
1015
  onNodecontext: O
995
1016
  }, null, 8, ["model", "treeId", "items", "search"]))), 128)),
996
- y.value ? (d(), x(Lo, {
1017
+ y.value ? (d(), x(Io, {
997
1018
  key: 0,
998
1019
  ref_key: "contextTreeRef",
999
1020
  ref: a,
1000
1021
  items: y.value,
1001
1022
  onSelect: E,
1002
1023
  "before-item": B
1003
- }, null, 8, ["items"])) : k("", !0)
1024
+ }, null, 8, ["items"])) : $("", !0)
1004
1025
  ]),
1005
1026
  _: 1
1006
1027
  }, 8, ["onDrop"]));
1007
1028
  }
1008
1029
  };
1009
- const Co = {
1030
+ const Eo = {
1010
1031
  __name: "DAccordion",
1011
1032
  props: {
1012
1033
  items: Array,
@@ -1019,14 +1040,14 @@ const Co = {
1019
1040
  },
1020
1041
  setup(e) {
1021
1042
  const o = e;
1022
- return (t, n) => (d(), x(gt, {
1043
+ return (t, n) => (d(), x(Be, {
1023
1044
  class: "accordion",
1024
1045
  items: o.items,
1025
1046
  "no-select": o.noSelect,
1026
1047
  "render-title": o.renderTitle
1027
1048
  }, null, 8, ["items", "no-select", "render-title"]));
1028
1049
  }
1029
- }, Ss = /* @__PURE__ */ oe(Co, [["__scopeId", "data-v-642edace"]]), Io = {
1050
+ }, Ss = /* @__PURE__ */ le(Eo, [["__scopeId", "data-v-642edace"]]), Bo = {
1030
1051
  __name: "DLayoutHeader",
1031
1052
  props: {
1032
1053
  fixed: {
@@ -1066,12 +1087,12 @@ const Co = {
1066
1087
  });
1067
1088
  return (n, s) => (d(), f("header", {
1068
1089
  class: "d-layout-header",
1069
- style: z(t.value)
1090
+ style: H(t.value)
1070
1091
  }, [
1071
1092
  L(n.$slots, "default")
1072
1093
  ], 4));
1073
1094
  }
1074
- }, Eo = {
1095
+ }, Mo = {
1075
1096
  __name: "DLayoutTab",
1076
1097
  props: {
1077
1098
  fixed: {
@@ -1115,12 +1136,12 @@ const Co = {
1115
1136
  });
1116
1137
  return (n, s) => (d(), f("div", {
1117
1138
  class: "d-layout-tab",
1118
- style: z(t.value)
1139
+ style: H(t.value)
1119
1140
  }, [
1120
1141
  L(n.$slots, "default")
1121
1142
  ], 4));
1122
1143
  }
1123
- }, Bo = {
1144
+ }, No = {
1124
1145
  __name: "DLayoutFooter",
1125
1146
  props: {
1126
1147
  fixed: {
@@ -1160,12 +1181,12 @@ const Co = {
1160
1181
  });
1161
1182
  return (n, s) => (d(), f("footer", {
1162
1183
  class: "d-layout-footer",
1163
- style: z(t.value)
1184
+ style: H(t.value)
1164
1185
  }, [
1165
1186
  L(n.$slots, "default")
1166
1187
  ], 4));
1167
1188
  }
1168
- }, Mo = {
1189
+ }, Ro = {
1169
1190
  __name: "DLayoutSidebar",
1170
1191
  props: {
1171
1192
  zIndex: {
@@ -1200,12 +1221,12 @@ const Co = {
1200
1221
  });
1201
1222
  return (n, s) => (d(), f("aside", {
1202
1223
  class: "d-layout-sidebar",
1203
- style: z(t.value)
1224
+ style: H(t.value)
1204
1225
  }, [
1205
1226
  L(n.$slots, "default")
1206
1227
  ], 4));
1207
1228
  }
1208
- }, No = {
1229
+ }, Oo = {
1209
1230
  __name: "DLayoutContent",
1210
1231
  props: {
1211
1232
  paddingTop: {
@@ -1236,15 +1257,15 @@ const Co = {
1236
1257
  return `padding-top:${n}px;padding-bottom:${s}px;padding-left:${a}px;${i}transition-duration:${l}ms;transition-timing-function:${r};`;
1237
1258
  });
1238
1259
  return (n, s) => (d(), f("main", {
1239
- style: z(t.value),
1260
+ style: H(t.value),
1240
1261
  class: "d-layout-content"
1241
1262
  }, [
1242
1263
  L(n.$slots, "default")
1243
1264
  ], 4));
1244
1265
  }
1245
1266
  };
1246
- function Ro(e) {
1247
- const o = w(0), t = m(() => `transform: translateX(${-o.value}px);`);
1267
+ function Ao(e) {
1268
+ const o = S(0), t = m(() => `transform: translateX(${-o.value}px);`);
1248
1269
  let n = !1;
1249
1270
  function s(u) {
1250
1271
  o.value = u;
@@ -1266,13 +1287,13 @@ function Ro(e) {
1266
1287
  function c() {
1267
1288
  l(), r(), n = !0;
1268
1289
  }
1269
- return pt(e, (u) => {
1290
+ return ft(e, (u) => {
1270
1291
  u ? c() : i();
1271
1292
  }, { immediate: !0 }), Tt(() => {
1272
1293
  i();
1273
1294
  }), t;
1274
1295
  }
1275
- const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1296
+ const Ho = 1001, Vo = 999, zo = 998, Ts = {
1276
1297
  __name: "DLayoutAdmin",
1277
1298
  props: {
1278
1299
  mode: {
@@ -1363,7 +1384,7 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1363
1384
  },
1364
1385
  emits: ["update:sidebar-collapse", "sidebar-mask-click"],
1365
1386
  setup(e, { emit: o }) {
1366
- const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = Ro(s), l = m(() => t.fixedHeaderAndTab ? a.value : ""), r = m(() => t.fixedFooter ? a.value : ""), i = m(() => {
1387
+ const t = e, n = m(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = m(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), a = Ao(s), l = m(() => t.fixedHeaderAndTab ? a.value : ""), r = m(() => t.fixedFooter ? a.value : ""), i = m(() => {
1367
1388
  const { transitionDuration: y, transitionTimingFunction: O } = t;
1368
1389
  return {
1369
1390
  transitionDuration: y,
@@ -1380,13 +1401,13 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1380
1401
  function b() {
1381
1402
  o("sidebar-mask-click");
1382
1403
  }
1383
- const S = m(() => t.isMobile && !h.value), N = m(() => {
1404
+ const T = m(() => t.isMobile && !h.value), N = m(() => {
1384
1405
  const { transitionDuration: y, transitionTimingFunction: O } = t;
1385
1406
  return `background-color:${t.maskBg};transition-duration:${y}ms;transition-timing-function:${O};`;
1386
- }), $ = m(() => {
1407
+ }), k = m(() => {
1387
1408
  const { sidebarWidth: y, sidebarCollapsedWidth: O } = t, W = t.isMobile ? 0 : O, P = h.value ? W : y;
1388
1409
  return t.sidebarVisible ? P : 0;
1389
- }), F = m(() => t.isMobile ? 0 : $.value), R = m(() => c.value ? F.value : 0), C = m(
1410
+ }), F = m(() => t.isMobile ? 0 : k.value), R = m(() => c.value ? F.value : 0), C = m(
1390
1411
  () => !t.isMobile && !c.value && t.headerVisible ? t.headerHeight : 0
1391
1412
  ), E = m(() => {
1392
1413
  let y = 0;
@@ -1394,11 +1415,11 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1394
1415
  }), B = m(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
1395
1416
  return (y, O) => (d(), f("div", {
1396
1417
  class: "d-layout",
1397
- style: z(n.value)
1418
+ style: H(n.value)
1398
1419
  }, [
1399
- e.headerVisible ? (d(), x(Io, ce({ key: 0 }, i.value, {
1420
+ e.headerVisible ? (d(), x(Bo, ce({ key: 0 }, i.value, {
1400
1421
  fixed: e.fixedHeaderAndTab,
1401
- "z-index": Oo,
1422
+ "z-index": Ho,
1402
1423
  "min-width": e.minWidth,
1403
1424
  height: e.headerHeight,
1404
1425
  "padding-left": R.value,
@@ -1408,10 +1429,10 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1408
1429
  L(y.$slots, "header")
1409
1430
  ]),
1410
1431
  _: 3
1411
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0),
1412
- e.tabVisible ? (d(), x(Eo, ce({ key: 1 }, i.value, {
1432
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0),
1433
+ e.tabVisible ? (d(), x(Mo, ce({ key: 1 }, i.value, {
1413
1434
  fixed: e.fixedHeaderAndTab,
1414
- "z-index": Ho,
1435
+ "z-index": Vo,
1415
1436
  "min-width": e.minWidth,
1416
1437
  top: e.headerHeight,
1417
1438
  height: e.tabHeight,
@@ -1422,24 +1443,24 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1422
1443
  L(y.$slots, "tab")
1423
1444
  ]),
1424
1445
  _: 3
1425
- }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : k("", !0),
1426
- e.sidebarVisible ? (d(), x(Mo, ce({ key: 2 }, i.value, {
1446
+ }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : $("", !0),
1447
+ e.sidebarVisible ? (d(), x(Ro, ce({ key: 2 }, i.value, {
1427
1448
  "z-index": u.value,
1428
- width: $.value,
1449
+ width: k.value,
1429
1450
  "padding-top": C.value
1430
1451
  }), {
1431
1452
  default: I(() => [
1432
1453
  L(y.$slots, "sidebar")
1433
1454
  ]),
1434
1455
  _: 3
1435
- }, 16, ["z-index", "width", "padding-top"])) : k("", !0),
1436
- S.value ? (d(), f("div", {
1456
+ }, 16, ["z-index", "width", "padding-top"])) : $("", !0),
1457
+ T.value ? (d(), f("div", {
1437
1458
  key: 3,
1438
1459
  class: "d-layout-sidebar-mask",
1439
- style: z(N.value),
1460
+ style: H(N.value),
1440
1461
  onClick: b
1441
- }, null, 4)) : k("", !0),
1442
- le(No, ce(i.value, {
1462
+ }, null, 4)) : $("", !0),
1463
+ ie(Oo, ce(i.value, {
1443
1464
  "padding-top": E.value,
1444
1465
  "padding-bottom": B.value,
1445
1466
  "padding-left": F.value,
@@ -1450,9 +1471,9 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1450
1471
  ]),
1451
1472
  _: 3
1452
1473
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1453
- e.footerVisible ? (d(), x(Bo, ce({ key: 4 }, i.value, {
1474
+ e.footerVisible ? (d(), x(No, ce({ key: 4 }, i.value, {
1454
1475
  fixed: e.fixedFooter,
1455
- "z-index": Vo,
1476
+ "z-index": zo,
1456
1477
  "min-width": e.minWidth,
1457
1478
  height: e.footerHeight,
1458
1479
  "padding-left": F.value,
@@ -1462,7 +1483,7 @@ const Oo = 1001, Ho = 999, Vo = 998, Ts = {
1462
1483
  L(y.$slots, "footer")
1463
1484
  ]),
1464
1485
  _: 3
1465
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : k("", !0)
1486
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : $("", !0)
1466
1487
  ], 4));
1467
1488
  }
1468
1489
  }, ue = {
@@ -1511,7 +1532,7 @@ const Ls = {
1511
1532
  },
1512
1533
  setup(e) {
1513
1534
  const o = e;
1514
- Le((a) => ({
1535
+ Ae((a) => ({
1515
1536
  e35a6f9a: t.value,
1516
1537
  e35a6f98: n.value
1517
1538
  }));
@@ -1525,7 +1546,7 @@ const Ls = {
1525
1546
  ]));
1526
1547
  }
1527
1548
  };
1528
- const Ao = {
1549
+ const Fo = {
1529
1550
  __name: "DScroll",
1530
1551
  props: {
1531
1552
  autoHide: {
@@ -1543,19 +1564,18 @@ const Ao = {
1543
1564
  },
1544
1565
  setup(e) {
1545
1566
  const o = e;
1546
- Le((s) => ({
1567
+ Ae((s) => ({
1547
1568
  c07fa29a: t.value,
1548
1569
  c07fa298: n.value
1549
1570
  }));
1550
1571
  const t = m(() => o.xHide ? "hidden" : "visible"), n = m(() => o.yHide ? "hidden" : "visible");
1551
1572
  return (s, a) => (d(), f("div", {
1552
- class: D(o.autoHide ? "d-scroll-hide" : "d-scroll")
1573
+ class: w(o.autoHide ? "d-scroll-hide" : "d-scroll")
1553
1574
  }, [
1554
1575
  L(s.$slots, "default", {}, void 0, !0)
1555
1576
  ], 2));
1556
1577
  }
1557
- }, Cs = /* @__PURE__ */ oe(Ao, [["__scopeId", "data-v-d50b3609"]]);
1558
- const zo = { class: "modal-dialog" }, Fo = { class: "modal-content" }, Wo = { class: "modal-header" }, Po = { class: "modal-title" }, jo = { class: "modal-body" }, Xo = { class: "modal-footer" }, Yo = {
1578
+ }, Cs = /* @__PURE__ */ le(Fo, [["__scopeId", "data-v-d50b3609"]]), Wo = { class: "modal-content" }, Po = { class: "modal-header" }, jo = { class: "modal-title" }, Xo = { class: "modal-body" }, Yo = { class: "modal-footer" }, vt = {
1559
1579
  __name: "DModal",
1560
1580
  props: {
1561
1581
  show: Boolean,
@@ -1566,12 +1586,7 @@ const zo = { class: "modal-dialog" }, Fo = { class: "modal-content" }, Wo = { cl
1566
1586
  },
1567
1587
  emits: ["open", "close"],
1568
1588
  setup(e, { expose: o, emit: t }) {
1569
- const n = e;
1570
- Le((i) => ({
1571
- b0f85cb8: n.width,
1572
- "4f75be24": n.maxWidth
1573
- }));
1574
- const s = w(null), a = w(!1);
1589
+ const n = e, s = S(null), a = S(!1);
1575
1590
  a.value = n == null ? void 0 : n.show;
1576
1591
  const l = () => {
1577
1592
  a.value = !0, t("open", s);
@@ -1583,40 +1598,43 @@ const zo = { class: "modal-dialog" }, Fo = { class: "modal-content" }, Wo = { cl
1583
1598
  hide: r
1584
1599
  }), (i, c) => {
1585
1600
  const u = Re("keydown");
1586
- return d(), x(dt, { to: "body" }, [
1587
- le(Ne, { name: "fade" }, {
1601
+ return d(), x(ct, { to: "body" }, [
1602
+ ie(Ne, { name: "fade" }, {
1588
1603
  default: I(() => [
1589
- a.value ? te((d(), f("div", {
1604
+ a.value ? J((d(), f("div", {
1590
1605
  key: 0,
1591
1606
  ref_key: "modalRef",
1592
1607
  ref: s,
1593
1608
  class: "modal"
1594
1609
  }, [
1595
- _("div", zo, [
1596
- _("div", Fo, [
1597
- _("div", Wo, [
1598
- _("h5", Po, [
1599
- L(i.$slots, "modal-title", {}, void 0, !0)
1610
+ _("div", {
1611
+ class: "modal-dialog",
1612
+ style: H({ width: n.width, maxWidth: n.maxWidth })
1613
+ }, [
1614
+ _("div", Wo, [
1615
+ _("div", Po, [
1616
+ _("h5", jo, [
1617
+ L(i.$slots, "modal-title")
1600
1618
  ])
1601
1619
  ]),
1602
- _("div", jo, [
1603
- L(i.$slots, "default", {}, void 0, !0)
1604
- ]),
1605
1620
  _("div", Xo, [
1606
- L(i.$slots, "modal-footer", {}, void 0, !0)
1621
+ L(i.$slots, "default")
1622
+ ]),
1623
+ _("div", Yo, [
1624
+ L(i.$slots, "modal-footer")
1607
1625
  ])
1608
1626
  ])
1609
- ])
1627
+ ], 4)
1610
1628
  ])), [
1611
1629
  [u, r, "Escape"]
1612
- ]) : k("", !0)
1630
+ ]) : $("", !0)
1613
1631
  ]),
1614
1632
  _: 3
1615
1633
  })
1616
1634
  ]);
1617
1635
  };
1618
1636
  }
1619
- }, vt = /* @__PURE__ */ oe(Yo, [["__scopeId", "data-v-4646bc8a"]]), de = Dt();
1637
+ }, de = Dt();
1620
1638
  function Me(e) {
1621
1639
  e === void 0 && (e = de.value.comp.returnValue()), de.value.resolve(e), de.value = null;
1622
1640
  }
@@ -1647,8 +1665,8 @@ const qo = Lt({
1647
1665
  transitionAttrs: Object
1648
1666
  },
1649
1667
  setup() {
1650
- const e = w();
1651
- return pt(e, () => {
1668
+ const e = S();
1669
+ return ft(e, () => {
1652
1670
  de.value && (de.value.comp = e.value);
1653
1671
  }), {
1654
1672
  dialogRef: de,
@@ -1659,7 +1677,7 @@ const qo = Lt({
1659
1677
  function Go(e, o, t, n, s, a) {
1660
1678
  return d(), x(Ne, Ct(It(e.transitionAttrs)), {
1661
1679
  default: I(() => [
1662
- e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ce({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : k("", !0)
1680
+ e.dialogRef && e.dialogRef.wrapper === e.name ? (d(), x(X(e.dialogRef.dialog), ce({ key: 0 }, e.dialogRef.props, { ref: "dialogInstance" }), null, 16)) : $("", !0)
1663
1681
  ]),
1664
1682
  _: 1
1665
1683
  }, 16);
@@ -1676,16 +1694,16 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1676
1694
  return o({
1677
1695
  returnValue: () => !0
1678
1696
  }), (s, a) => (d(), f("div", null, [
1679
- le(vt, { show: !0 }, {
1697
+ ie(vt, { show: !0 }, {
1680
1698
  "modal-title": I(() => [
1681
- K(H(t.title), 1)
1699
+ K(A(t.title), 1)
1682
1700
  ]),
1683
1701
  default: I(() => [
1684
- K(H(t.message), 1)
1702
+ K(A(t.message), 1)
1685
1703
  ]),
1686
1704
  "modal-footer": I(() => [
1687
1705
  _("div", Ko, [
1688
- le(ae, {
1706
+ ie(se, {
1689
1707
  onClick: a[0] || (a[0] = (l) => M(Me)())
1690
1708
  }, {
1691
1709
  default: I(() => [
@@ -1710,16 +1728,16 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1710
1728
  return o({
1711
1729
  returnValue: () => !0
1712
1730
  }), (s, a) => (d(), f("div", null, [
1713
- le(vt, { show: !0 }, {
1731
+ ie(vt, { show: !0 }, {
1714
1732
  "modal-title": I(() => [
1715
- K(H(t.title), 1)
1733
+ K(A(t.title), 1)
1716
1734
  ]),
1717
1735
  default: I(() => [
1718
- K(H(t.message), 1)
1736
+ K(A(t.message), 1)
1719
1737
  ]),
1720
1738
  "modal-footer": I(() => [
1721
1739
  _("div", Qo, [
1722
- le(ae, {
1740
+ ie(se, {
1723
1741
  onClick: a[0] || (a[0] = (l) => M(Me)())
1724
1742
  }, {
1725
1743
  default: I(() => [
@@ -1727,7 +1745,7 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1727
1745
  ]),
1728
1746
  _: 1
1729
1747
  }),
1730
- le(ae, {
1748
+ ie(se, {
1731
1749
  class: "button-red",
1732
1750
  onClick: a[1] || (a[1] = (l) => M(Me)(!1))
1733
1751
  }, {
@@ -1754,60 +1772,65 @@ const Ko = { style: { display: "flex", "flex-direction": "row", "justify-content
1754
1772
  menuStyle: Object,
1755
1773
  renderItemTitle: Function,
1756
1774
  beforeItem: Function,
1757
- type: String
1775
+ type: String,
1776
+ bodyAsParent: {
1777
+ type: Boolean,
1778
+ default: !0
1779
+ }
1758
1780
  },
1759
1781
  emits: ["select", "click"],
1760
1782
  setup(e, { expose: o, emit: t }) {
1761
- const n = e, s = De(), a = w(null), l = w(null), r = w(0), i = w(0), c = (S) => {
1762
- if (t("click", S), a.value.isShowed()) {
1783
+ const n = e, s = De(), a = S(null), l = S(null), r = S(0), i = S(0), c = (T) => {
1784
+ if (t("click", T), a.value.isShowed()) {
1763
1785
  a.value.hide();
1764
1786
  return;
1765
1787
  }
1766
- a.value.show(), ct(() => {
1767
- const N = a.value.elementSize(), $ = l.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1768
- r.value = F - ($.x + $.width) < N.width ? $.left - N.width + $.width : $.left, i.value = R - ($.y + $.height) < N.height ? $.top - N.height - 5 : $.height + $.top + 5;
1788
+ a.value.show(), ut(() => {
1789
+ const N = a.value.elementSize(), k = l.value.elementSize(), F = window.innerWidth, R = window.innerHeight;
1790
+ r.value = F - (k.x + k.width) < N.width ? k.left - N.width + k.width : k.left, i.value = R - (k.y + k.height) < N.height ? k.top - N.height - 5 : k.height + k.top + 5;
1769
1791
  });
1770
- }, u = (S) => {
1771
- t("select", S);
1772
- }, h = m(() => ({ left: r.value + "px", top: i.value + "px", ...n.menuStyle }));
1792
+ }, u = (T) => {
1793
+ t("select", T);
1794
+ }, h = m(() => (console.log(r.value, i.value), { left: r.value + "px", top: i.value + "px", ...n.menuStyle }));
1773
1795
  o({
1774
1796
  show: c
1775
1797
  });
1776
- const b = (S) => !!s[S];
1777
- return (S, N) => (d(), f("div", tn, [
1778
- b("default") ? (d(), x(ae, {
1798
+ const b = (T) => !!s[T];
1799
+ return (T, N) => (d(), f("div", tn, [
1800
+ b("default") ? (d(), x(se, {
1779
1801
  key: 0,
1780
1802
  ref_key: "buttonRef",
1781
1803
  ref: l,
1782
- class: D(n.class),
1804
+ class: w(n.class),
1783
1805
  icon: n.icon,
1784
1806
  onClick: Z(c, ["stop", "prevent"]),
1785
1807
  type: n.type
1786
1808
  }, {
1787
1809
  default: I(() => [
1788
- L(S.$slots, "default")
1810
+ L(T.$slots, "default")
1789
1811
  ]),
1790
1812
  _: 3
1791
- }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(ae, {
1813
+ }, 8, ["class", "icon", "onClick", "type"])) : (d(), x(se, {
1792
1814
  key: 1,
1793
1815
  ref_key: "buttonRef",
1794
1816
  ref: l,
1795
- class: D(n.class),
1817
+ class: w(n.class),
1796
1818
  icon: n.icon,
1797
1819
  onClick: Z(c, ["stop", "prevent"]),
1798
1820
  type: n.type
1799
1821
  }, null, 8, ["class", "icon", "onClick", "type"])),
1800
- le(ht, {
1822
+ ie(gt, {
1801
1823
  ref_key: "dMenuRef",
1802
1824
  ref: a,
1803
1825
  items: n.items,
1804
1826
  class: "dropdown-menu",
1805
- style: z(h.value),
1827
+ style: H(h.value),
1806
1828
  "no-select": !0,
1807
1829
  onSelect: u,
1808
1830
  "render-item-title": n.renderItemTitle,
1809
- "before-item": n.beforeItem
1810
- }, null, 8, ["items", "style", "render-item-title", "before-item"])
1831
+ "before-item": n.beforeItem,
1832
+ "body-as-parent": n.bodyAsParent
1833
+ }, null, 8, ["items", "style", "render-item-title", "before-item", "body-as-parent"])
1811
1834
  ]));
1812
1835
  }
1813
1836
  }, on = {}, nn = { class: "d-panel" };
@@ -1816,7 +1839,7 @@ function sn(e, o) {
1816
1839
  L(e.$slots, "default")
1817
1840
  ]);
1818
1841
  }
1819
- const an = /* @__PURE__ */ oe(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Es = {
1842
+ const an = /* @__PURE__ */ le(on, [["render", sn]]), ln = { class: "card-header" }, rn = { class: "modal-title" }, dn = { class: "card-body" }, cn = { class: "card-footer" }, Es = {
1820
1843
  __name: "DCard",
1821
1844
  setup(e) {
1822
1845
  return (o, t) => (d(), x(an, { class: "d-card" }, {
@@ -1848,14 +1871,14 @@ class pn {
1848
1871
  this.start = Date.now(), clearTimeout(this.notifyItem.timer), this.notifyItem.timer = setTimeout(this.callback, this.remaining);
1849
1872
  }
1850
1873
  }
1851
- const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1874
+ const Ie = "[-+]?[0-9]*.?[0-9]+", st = [
1852
1875
  {
1853
1876
  name: "px",
1854
- regexp: new RegExp(`^${Ee}px$`)
1877
+ regexp: new RegExp(`^${Ie}px$`)
1855
1878
  },
1856
1879
  {
1857
1880
  name: "%",
1858
- regexp: new RegExp(`^${Ee}%$`)
1881
+ regexp: new RegExp(`^${Ie}%$`)
1859
1882
  },
1860
1883
  /**
1861
1884
  * Fallback option
@@ -1863,7 +1886,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1863
1886
  */
1864
1887
  {
1865
1888
  name: "px",
1866
- regexp: new RegExp(`^${Ee}$`)
1889
+ regexp: new RegExp(`^${Ie}$`)
1867
1890
  }
1868
1891
  ], fn = (e) => {
1869
1892
  if (e === "auto")
@@ -1871,8 +1894,8 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1871
1894
  type: e,
1872
1895
  value: 0
1873
1896
  };
1874
- for (let o = 0; o < nt.length; o++) {
1875
- const t = nt[o];
1897
+ for (let o = 0; o < st.length; o++) {
1898
+ const t = st[o];
1876
1899
  if (t.regexp.test(e))
1877
1900
  return {
1878
1901
  type: t.name,
@@ -1892,16 +1915,16 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1892
1915
  default:
1893
1916
  return { type: "", value: e };
1894
1917
  }
1895
- }, st = {
1918
+ }, at = {
1896
1919
  x: /* @__PURE__ */ new Set(["left", "center", "right"]),
1897
1920
  y: /* @__PURE__ */ new Set(["top", "bottom"])
1898
1921
  }, hn = ((e) => () => e++)(0), gn = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), vn = (e) => {
1899
1922
  typeof e == "string" && (e = gn(e));
1900
1923
  let o = null, t = null;
1901
1924
  return e.forEach((n) => {
1902
- st.y.has(n) && (t = n), st.x.has(n) && (o = n);
1925
+ at.y.has(n) && (t = n), at.x.has(n) && (o = n);
1903
1926
  }), { x: o, y: t };
1904
- }, Be = {
1927
+ }, Ee = {
1905
1928
  position: ["top", "right"],
1906
1929
  cssAnimation: "fade",
1907
1930
  velocityAnimation: {
@@ -1925,7 +1948,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1925
1948
  }, s = () => {
1926
1949
  o("after-leave");
1927
1950
  };
1928
- return (a, l) => (d(), x(ft, {
1951
+ return (a, l) => (d(), x(mt, {
1929
1952
  tag: "span",
1930
1953
  css: !1,
1931
1954
  onEnter: t,
@@ -1947,7 +1970,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1947
1970
  },
1948
1971
  setup(e) {
1949
1972
  const o = e;
1950
- return (t, n) => (d(), x(ft, {
1973
+ return (t, n) => (d(), x(mt, {
1951
1974
  tag: "span",
1952
1975
  name: o.name
1953
1976
  }, {
@@ -1977,7 +2000,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1977
2000
  },
1978
2001
  position: {
1979
2002
  type: [String, Array, null],
1980
- default: Be.position
2003
+ default: Ee.position
1981
2004
  },
1982
2005
  classes: {
1983
2006
  type: String,
@@ -1989,11 +2012,11 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
1989
2012
  },
1990
2013
  animation: {
1991
2014
  type: [String, Object],
1992
- default: Be.velocityAnimation
2015
+ default: Ee.velocityAnimation
1993
2016
  },
1994
2017
  animationName: {
1995
2018
  type: String,
1996
- default: Be.cssAnimation
2019
+ default: Ee.cssAnimation
1997
2020
  },
1998
2021
  speed: {
1999
2022
  type: Number,
@@ -2033,17 +2056,17 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2033
2056
  const t = e, n = {
2034
2057
  IDLE: 0,
2035
2058
  DESTROYED: 2
2036
- }, s = w([]), a = w(null), l = w(un.get("velocity")), r = m(() => t.animationType === "velocity"), i = m(() => r.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(t.width)), h = m(() => {
2037
- const { x: p, y: A } = vn(t.position), T = u.value.value, q = u.value.type, ne = {
2038
- width: T + q
2059
+ }, s = S([]), a = S(null), l = S(un.get("velocity")), r = m(() => t.animationType === "velocity"), i = m(() => r.value ? yn : _n), c = m(() => s.value.filter((p) => p.state !== n.DESTROYED)), u = m(() => mn(t.width)), h = m(() => {
2060
+ const { x: p, y: z } = vn(t.position), D = u.value.value, q = u.value.type, oe = {
2061
+ width: D + q
2039
2062
  };
2040
- return A && (ne[A] = "0px"), p && (p === "center" ? ne.left = `calc(50% - ${+T / 2}${q})` : ne[p] = "0px"), ne;
2041
- }), b = m(() => "bottom" in h.value), S = (p) => {
2063
+ return z && (oe[z] = "0px"), p && (p === "center" ? oe.left = `calc(50% - ${+D / 2}${q})` : oe[p] = "0px"), oe;
2064
+ }), b = m(() => "bottom" in h.value), T = (p) => {
2042
2065
  o("click", p), t.closeOnClick && B(p);
2043
2066
  }, N = () => {
2044
2067
  var p;
2045
2068
  t.pauseOnHover && ((p = a.value) == null || p.pause());
2046
- }, $ = () => {
2069
+ }, k = () => {
2047
2070
  var p;
2048
2071
  t.pauseOnHover && ((p = a.value) == null || p.resume());
2049
2072
  }, F = (p) => {
@@ -2053,21 +2076,21 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2053
2076
  O();
2054
2077
  return;
2055
2078
  }
2056
- const A = typeof p.duration == "number" ? p.duration : t.duration, T = typeof p.speed == "number" ? p.speed : t.speed, q = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : t.ignoreDuplicates, { title: ne, text: ge, type: ve, data: ye, id: _e } = p, J = {
2079
+ const z = typeof p.duration == "number" ? p.duration : t.duration, D = typeof p.speed == "number" ? p.speed : t.speed, q = typeof p.ignoreDuplicates == "boolean" ? p.ignoreDuplicates : t.ignoreDuplicates, { title: oe, text: ge, type: ve, data: ye, id: _e } = p, Q = {
2057
2080
  id: _e || hn(),
2058
- title: ne,
2081
+ title: oe,
2059
2082
  text: ge,
2060
2083
  type: ve,
2061
2084
  state: n.IDLE,
2062
- speed: T,
2063
- length: A + 2 * T,
2085
+ speed: D,
2086
+ length: z + 2 * D,
2064
2087
  data: ye
2065
2088
  };
2066
- A >= 0 && (a.value = new pn(() => B(J), J.length, J));
2089
+ z >= 0 && (a.value = new pn(() => B(Q), Q.length, Q));
2067
2090
  const be = t.reverse ? !b.value : b.value;
2068
2091
  let re = -1;
2069
2092
  const xe = c.value.some((me) => me.title === p.title && me.text === p.text);
2070
- (!q || !xe) && (be ? (s.value.push(J), o("start", J), c.value.length > t.max && (re = 0)) : (s.value.unshift(J), o("start", J), c.value.length > t.max && (re = c.value.length - 1)), re !== -1 && B(c.value[re]));
2093
+ (!q || !xe) && (be ? (s.value.push(Q), o("start", Q), c.value.length > t.max && (re = 0)) : (s.value.unshift(Q), o("start", Q), c.value.length > t.max && (re = c.value.length - 1)), re !== -1 && B(c.value[re]));
2071
2094
  }, R = (p) => {
2072
2095
  y(p);
2073
2096
  }, C = (p) => [
@@ -2077,29 +2100,29 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2077
2100
  ], E = (p) => r.value ? void 0 : { transition: `all ${p.speed}ms` }, B = (p) => {
2078
2101
  clearTimeout(p.timer), p.state = n.DESTROYED, V(), o("destroy", p);
2079
2102
  }, y = (p) => {
2080
- const A = s.value.find((T) => T.id === p);
2081
- A && B(A);
2103
+ const z = s.value.find((D) => D.id === p);
2104
+ z && B(z);
2082
2105
  }, O = () => {
2083
2106
  c.value.forEach(B);
2084
- }, W = (p, A) => {
2107
+ }, W = (p, z) => {
2085
2108
  var q;
2086
- const T = (q = t.animation) == null ? void 0 : q[p];
2087
- return typeof T == "function" ? T(A) : T;
2088
- }, P = (p, A) => {
2109
+ const D = (q = t.animation) == null ? void 0 : q[p];
2110
+ return typeof D == "function" ? D(z) : D;
2111
+ }, P = (p, z) => {
2089
2112
  if (!r.value)
2090
2113
  return;
2091
- const T = W("enter", p);
2092
- l.value(p, T, {
2114
+ const D = W("enter", p);
2115
+ l.value(p, D, {
2093
2116
  duration: t.speed,
2094
- complete: A
2117
+ complete: z
2095
2118
  });
2096
- }, g = (p, A) => {
2119
+ }, g = (p, z) => {
2097
2120
  if (!r.value)
2098
2121
  return;
2099
- const T = W("leave", p);
2100
- l.value(p, T, {
2122
+ const D = W("leave", p);
2123
+ l.value(p, D, {
2101
2124
  duration: t.speed,
2102
- complete: A
2125
+ complete: z
2103
2126
  });
2104
2127
  };
2105
2128
  function V() {
@@ -2107,9 +2130,9 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2107
2130
  }
2108
2131
  return fe(() => {
2109
2132
  U.on("notification-add", F), U.on("notification-close", R);
2110
- }), (p, A) => (d(), f("div", {
2133
+ }), (p, z) => (d(), f("div", {
2111
2134
  class: "d-notification-group",
2112
- style: z(h.value)
2135
+ style: H(h.value)
2113
2136
  }, [
2114
2137
  (d(), x(X(i.value), {
2115
2138
  name: e.animationName,
@@ -2118,36 +2141,36 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2118
2141
  onAfterLeave: V
2119
2142
  }, {
2120
2143
  default: I(() => [
2121
- (d(!0), f(ie, null, he(c.value, (T) => (d(), f("div", {
2122
- key: T.id,
2144
+ (d(!0), f(ae, null, he(c.value, (D) => (d(), f("div", {
2145
+ key: D.id,
2123
2146
  class: "d-notification-wrapper",
2124
- style: z(E(T)),
2125
- "data-id": T.id,
2147
+ style: H(E(D)),
2148
+ "data-id": D.id,
2126
2149
  onMouseenter: N,
2127
- onMouseleave: $
2150
+ onMouseleave: k
2128
2151
  }, [
2129
2152
  L(p.$slots, "body", {
2130
- class: D([e.classes, T.type]),
2131
- item: T,
2132
- close: () => B(T)
2153
+ class: w([e.classes, D.type]),
2154
+ item: D,
2155
+ close: () => B(D)
2133
2156
  }, () => [
2134
2157
  _("div", {
2135
- class: D(C(T)),
2136
- onClick: (q) => S(T)
2158
+ class: w(C(D)),
2159
+ onClick: (q) => T(D)
2137
2160
  }, [
2138
- e.dangerouslySetInnerHtml ? (d(), f(ie, { key: 0 }, [
2139
- T.title ? (d(), f("div", {
2161
+ e.dangerouslySetInnerHtml ? (d(), f(ae, { key: 0 }, [
2162
+ D.title ? (d(), f("div", {
2140
2163
  key: 0,
2141
2164
  class: "d-notification-title",
2142
- innerHTML: T.timer
2143
- }, null, 8, $n)) : k("", !0),
2165
+ innerHTML: D.timer
2166
+ }, null, 8, $n)) : $("", !0),
2144
2167
  _("div", {
2145
2168
  class: "notification-content",
2146
- innerHTML: T.text
2169
+ innerHTML: D.text
2147
2170
  }, null, 8, kn)
2148
- ], 64)) : (d(), f(ie, { key: 1 }, [
2149
- T.title ? (d(), f("div", wn, H(T.title), 1)) : k("", !0),
2150
- _("div", Sn, H(T.text), 1)
2171
+ ], 64)) : (d(), f(ae, { key: 1 }, [
2172
+ D.title ? (d(), f("div", wn, A(D.title), 1)) : $("", !0),
2173
+ _("div", Sn, A(D.text), 1)
2151
2174
  ], 64))
2152
2175
  ], 10, xn)
2153
2176
  ])
@@ -2168,10 +2191,10 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2168
2191
  },
2169
2192
  emits: ["click"],
2170
2193
  setup(e, { emit: o }) {
2171
- const t = e, n = m(() => t.icon ? ee.getters.getIcon(t.icon) : null);
2194
+ const t = e, n = m(() => t.icon ? te.getters.getIcon(t.icon) : null);
2172
2195
  return (s, a) => (d(), f("div", {
2173
- class: D(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2174
- style: z(t.style),
2196
+ class: w(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
2197
+ style: H(t.style),
2175
2198
  onClick: a[0] || (a[0] = (l) => {
2176
2199
  o("click", l);
2177
2200
  })
@@ -2183,13 +2206,13 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2183
2206
  component: n.value,
2184
2207
  color: "inherit",
2185
2208
  size: 17
2186
- }, null, 8, ["component"])) : k("", !0)
2209
+ }, null, 8, ["component"])) : $("", !0)
2187
2210
  ])
2188
2211
  ]),
2189
2212
  _("div", Ln, [
2190
2213
  _("div", {
2191
2214
  class: "d-info-progress-line",
2192
- style: z("width: " + t.progress + "%;")
2215
+ style: H("width: " + t.progress + "%;")
2193
2216
  }, null, 4),
2194
2217
  _("div", {
2195
2218
  class: "d-info-progress-label",
@@ -2212,14 +2235,14 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2212
2235
  },
2213
2236
  emits: ["update:modelValue"],
2214
2237
  setup(e, { emit: o }) {
2215
- const t = e, s = ut().uid, a = m({
2238
+ const t = e, s = pt().uid, a = m({
2216
2239
  get: () => t.modelValue,
2217
2240
  set: (l) => {
2218
2241
  o("update:modelValue", l);
2219
2242
  }
2220
2243
  });
2221
2244
  return (l, r) => (d(), f("div", In, [
2222
- te(_("input", {
2245
+ J(_("input", {
2223
2246
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
2224
2247
  id: `i-${M(s)}`,
2225
2248
  type: "checkbox",
@@ -2231,7 +2254,7 @@ const Ee = "[-+]?[0-9]*.?[0-9]+", nt = [
2231
2254
  ]),
2232
2255
  _("label", {
2233
2256
  for: `i-${M(s)}`
2234
- }, H(t.label), 9, Bn)
2257
+ }, A(t.label), 9, Bn)
2235
2258
  ]));
2236
2259
  }
2237
2260
  };
@@ -2249,7 +2272,7 @@ const Rs = {
2249
2272
  }, Rn = { class: "d-select" }, On = {
2250
2273
  key: 0,
2251
2274
  class: "label"
2252
- }, Hn = ["value", "selected", "disabled"], Os = {
2275
+ }, An = ["value", "selected", "disabled"], Os = {
2253
2276
  __name: "DSelect",
2254
2277
  props: {
2255
2278
  label: String,
@@ -2273,47 +2296,47 @@ const Rs = {
2273
2296
  break;
2274
2297
  }
2275
2298
  return (a, l) => (d(), f("div", Rn, [
2276
- t.label ? (d(), f("div", On, H(t.label), 1)) : k("", !0),
2277
- te(_("select", {
2299
+ t.label ? (d(), f("div", On, A(t.label), 1)) : $("", !0),
2300
+ J(_("select", {
2278
2301
  "onUpdate:modelValue": l[0] || (l[0] = (r) => s.value = r),
2279
- class: D(n.value),
2280
- style: z(t.size === "wide" ? "width:100%" : "")
2302
+ class: w(n.value),
2303
+ style: H(t.size === "wide" ? "width:100%" : "")
2281
2304
  }, [
2282
- (d(!0), f(ie, null, he(t.options, (r, i) => (d(), f("option", {
2305
+ (d(!0), f(ae, null, he(t.options, (r, i) => (d(), f("option", {
2283
2306
  key: i,
2284
2307
  value: r.value,
2285
2308
  selected: r.selected,
2286
2309
  disabled: r.disabled
2287
- }, H(r.label), 9, Hn))), 128))
2310
+ }, A(r.label), 9, An))), 128))
2288
2311
  ], 6), [
2289
2312
  [Bt, s.value]
2290
2313
  ])
2291
2314
  ]));
2292
2315
  }
2293
2316
  };
2294
- const Vn = { class: "d-tabs" }, An = ["onClick"], zn = {
2317
+ const Hn = { class: "d-tabs" }, Vn = ["onClick"], zn = {
2295
2318
  __name: "DTabs",
2296
2319
  props: {
2297
2320
  tabs: Array
2298
2321
  },
2299
2322
  setup(e) {
2300
- const t = Mt(e, "tabs"), n = w(0), s = (a) => {
2323
+ const t = Mt(e, "tabs"), n = S(0), s = (a) => {
2301
2324
  n.value = a;
2302
2325
  };
2303
- return (a, l) => (d(), f(ie, null, [
2304
- _("div", Vn, [
2305
- (d(!0), f(ie, null, he(t.value, (r, i) => (d(), f("div", {
2326
+ return (a, l) => (d(), f(ae, null, [
2327
+ _("div", Hn, [
2328
+ (d(!0), f(ae, null, he(t.value, (r, i) => (d(), f("div", {
2306
2329
  key: i,
2307
- class: D([i === n.value ? "active" : "", "d-tab-title"]),
2330
+ class: w([i === n.value ? "active" : "", "d-tab-title"]),
2308
2331
  onClick: (c) => s(i)
2309
- }, H(r.label), 11, An))), 128))
2332
+ }, A(r.label), 11, Vn))), 128))
2310
2333
  ]),
2311
2334
  (d(), x(Nt, null, [
2312
2335
  (d(), x(X(t.value[n.value].component)))
2313
2336
  ], 1024))
2314
2337
  ], 64));
2315
2338
  }
2316
- }, Hs = /* @__PURE__ */ oe(zn, [["__scopeId", "data-v-89cd9234"]]);
2339
+ }, As = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-89cd9234"]]);
2317
2340
  const Fn = { class: "d-grid" }, Wn = {
2318
2341
  __name: "DGrid",
2319
2342
  props: {
@@ -2333,7 +2356,7 @@ const Fn = { class: "d-grid" }, Wn = {
2333
2356
  },
2334
2357
  setup(e) {
2335
2358
  const o = e;
2336
- Le((u) => ({
2359
+ Ae((u) => ({
2337
2360
  "09eba472": i[0],
2338
2361
  "09eba434": i[1],
2339
2362
  "09eba3f6": i[2],
@@ -2350,7 +2373,7 @@ const Fn = { class: "d-grid" }, Wn = {
2350
2373
  L(u.$slots, "default", {}, void 0, !0)
2351
2374
  ]));
2352
2375
  }
2353
- }, Vs = /* @__PURE__ */ oe(Wn, [["__scopeId", "data-v-b45e8130"]]), Pn = ["src", "alt", "title"], As = {
2376
+ }, Hs = /* @__PURE__ */ le(Wn, [["__scopeId", "data-v-b45e8130"]]), Pn = ["src", "alt", "title"], Vs = {
2354
2377
  __name: "DImage",
2355
2378
  props: {
2356
2379
  src: String,
@@ -2362,7 +2385,7 @@ const Fn = { class: "d-grid" }, Wn = {
2362
2385
  radius: String
2363
2386
  },
2364
2387
  setup(e) {
2365
- const o = e, t = w(null), n = new Image();
2388
+ const o = e, t = S(null), n = new Image();
2366
2389
  return n.onload = () => {
2367
2390
  t.value = n.src;
2368
2391
  }, n.onerror = () => {
@@ -2374,8 +2397,8 @@ const Fn = { class: "d-grid" }, Wn = {
2374
2397
  src: t.value,
2375
2398
  alt: o.alt,
2376
2399
  title: o.title,
2377
- style: z({ width: o.width, height: o.height, borderRadius: o.radius })
2378
- }, null, 12, Pn)) : k("", !0);
2400
+ style: H({ width: o.width, height: o.height, borderRadius: o.radius })
2401
+ }, null, 12, Pn)) : $("", !0);
2379
2402
  }
2380
2403
  };
2381
2404
  const jn = { class: "d-textarea" }, Xn = {
@@ -2401,7 +2424,7 @@ const jn = { class: "d-textarea" }, Xn = {
2401
2424
  },
2402
2425
  emits: ["update:modelValue"],
2403
2426
  setup(e, { expose: o, emit: t }) {
2404
- const n = e, s = w(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = m({
2427
+ const n = e, s = S(null), a = m(() => n.scale === "small" ? "d-textarea-small" : n.scale === "large" ? "d-textarea-large" : ""), l = m({
2405
2428
  get: () => n.modelValue,
2406
2429
  set: (i) => {
2407
2430
  t("update:modelValue", i);
@@ -2416,22 +2439,22 @@ const jn = { class: "d-textarea" }, Xn = {
2416
2439
  return o({
2417
2440
  focus: r
2418
2441
  }), (i, c) => (d(), f("div", jn, [
2419
- n.label ? (d(), f("div", Xn, H(n.label), 1)) : k("", !0),
2420
- te(_("textarea", {
2442
+ n.label ? (d(), f("div", Xn, A(n.label), 1)) : $("", !0),
2443
+ J(_("textarea", {
2421
2444
  ref_key: "inputRef",
2422
2445
  ref: s,
2423
2446
  "onUpdate:modelValue": c[0] || (c[0] = (u) => l.value = u),
2424
2447
  rows: n.rows,
2425
2448
  cols: n.cols,
2426
2449
  placeholder: n.placeholder,
2427
- class: D(a.value),
2450
+ class: w(a.value),
2428
2451
  style: { width: "100%" }
2429
2452
  }, null, 10, Yn), [
2430
2453
  [Ot, l.value]
2431
2454
  ])
2432
2455
  ]));
2433
2456
  }
2434
- }, zs = /* @__PURE__ */ oe(Un, [["__scopeId", "data-v-0e805d5d"]]);
2457
+ }, zs = /* @__PURE__ */ le(Un, [["__scopeId", "data-v-0e805d5d"]]);
2435
2458
  class Fs {
2436
2459
  constructor(o) {
2437
2460
  this.fields = o;
@@ -2519,7 +2542,7 @@ const as = new ss(), Y = {
2519
2542
  };
2520
2543
  class is {
2521
2544
  validate(o, t) {
2522
- var s, a, l, r, i, c, u, h, b, S, N, $, F, R;
2545
+ var s, a, l, r, i, c, u, h, b, T, N, k, F, R;
2523
2546
  let n = "";
2524
2547
  if (t) {
2525
2548
  let C = !1;
@@ -2536,10 +2559,10 @@ class is {
2536
2559
  n = Y.RulesMin.validate(o, (i = t[E]) == null ? void 0 : i.value) ? "" : Y.RulesMin.message((c = t[E]) != null && c.message ? (u = t[E]) == null ? void 0 : u.message : "very_small"), C = n !== "";
2537
2560
  break;
2538
2561
  case "max":
2539
- n = Y.RulesMax.validate(o, (h = t[E]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = t[E]) != null && b.message ? (S = t[E]) == null ? void 0 : S.message : "vary_large"), C = n !== "";
2562
+ n = Y.RulesMax.validate(o, (h = t[E]) == null ? void 0 : h.value) ? "" : Y.RulesMax.message((b = t[E]) != null && b.message ? (T = t[E]) == null ? void 0 : T.message : "vary_large"), C = n !== "";
2540
2563
  break;
2541
2564
  case "email":
2542
- n = Y.RulesEmail.validate(o) ? "" : Y.RulesMax.message((N = t[E]) != null && N.message ? ($ = t[E]) == null ? void 0 : $.message : "email_incorrect"), C = n !== "";
2565
+ n = Y.RulesEmail.validate(o) ? "" : Y.RulesMax.message((N = t[E]) != null && N.message ? (k = t[E]) == null ? void 0 : k.message : "email_incorrect"), C = n !== "";
2543
2566
  break;
2544
2567
  case "number":
2545
2568
  n = Y.RulesNumber.validate(o) ? "" : Y.RulesNumber.message(
@@ -2607,7 +2630,7 @@ const ls = new is(), rs = { style: { display: "flex", "flex-direction": "column"
2607
2630
  },
2608
2631
  emits: ["update:modelValue", "input"],
2609
2632
  setup(e, { expose: o, emit: t }) {
2610
- const n = e, s = w(n.error), a = Ht(), l = w(!1), r = w(null);
2633
+ const n = e, s = S(n.error), a = At(), l = S(!1), r = S(null);
2611
2634
  //!props.form ? ref(null) : props.form.fields[props.name].ref
2612
2635
  const i = m({
2613
2636
  get: () => n.modelValue,
@@ -2619,96 +2642,96 @@ const ls = new is(), rs = { style: { display: "flex", "flex-direction": "column"
2619
2642
  t("input", R), b();
2620
2643
  }, b = () => (s.value = ls.validate(i.value, n.form.fields[n.name].rules), !!s.value);
2621
2644
  fe(() => {
2622
- S();
2645
+ T();
2623
2646
  });
2624
- const S = () => {
2647
+ const T = () => {
2625
2648
  var R;
2626
2649
  (R = r.value) == null || R.focus();
2627
2650
  }, N = () => {
2628
2651
  i.value = "";
2629
- }, $ = (R) => {
2652
+ }, k = (R) => {
2630
2653
  l.value = R;
2631
2654
  };
2632
2655
  return o({
2633
- focus: S,
2656
+ focus: T,
2634
2657
  setError: (R) => {
2635
2658
  s.value = R;
2636
2659
  },
2637
2660
  validate: b
2638
2661
  }), (R, C) => {
2639
- var E, B, y, O, W, P, g, V, p, A, T, q, ne, ge, ve, ye, _e, J, be, re, xe, Ce, me, ze, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt;
2662
+ var E, B, y, O, W, P, g, V, p, z, D, q, oe, ge, ve, ye, _e, Q, be, re, xe, Le, me, Fe, We, Pe, je, Xe, Ye, Ue, qe, Ge, Ze, Ke, Je, Qe, et, tt, ot;
2640
2663
  return d(), f("div", {
2641
- class: D(["d-input-string", u.value])
2664
+ class: w(["d-input-string", u.value])
2642
2665
  }, [
2643
2666
  _("div", rs, [
2644
2667
  n.label ? (d(), f("div", ds, [
2645
- K(H(n.label), 1),
2646
- (E = n.form) != null && E.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", cs, "*")) : k("", !0)
2647
- ])) : k("", !0),
2668
+ K(A(n.label), 1),
2669
+ (E = n.form) != null && E.fields[n.name].rules && n.form.fields[n.name].rules.hasOwnProperty("required") ? (d(), f("span", cs, "*")) : $("", !0)
2670
+ ])) : $("", !0),
2648
2671
  _("div", us, [
2649
2672
  (y = (B = n.pre) == null ? void 0 : B.outside) != null && y.component ? (d(), f("div", {
2650
2673
  key: 0,
2651
- class: D(["d-pre", n.disabled ? "disabled" : ""])
2674
+ class: w(["d-pre", n.disabled ? "disabled" : ""])
2652
2675
  }, [
2653
2676
  (d(), x(X((W = (O = n.pre) == null ? void 0 : O.outside) == null ? void 0 : W.component)))
2654
2677
  ], 2)) : (g = (P = n.pre) == null ? void 0 : P.outside) != null && g.text ? (d(), f("div", {
2655
2678
  key: 1,
2656
- class: D(["d-pre", n.disabled ? "disabled" : ""])
2679
+ class: w(["d-pre", n.disabled ? "disabled" : ""])
2657
2680
  }, [
2658
2681
  _("div", {
2659
- class: D(["d-text", l.value ? "focused" : ""])
2660
- }, H((p = (V = n.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2661
- ], 2)) : k("", !0),
2682
+ class: w(["d-text", l.value ? "focused" : ""])
2683
+ }, A((p = (V = n.pre) == null ? void 0 : V.outside) == null ? void 0 : p.text), 3)
2684
+ ], 2)) : $("", !0),
2662
2685
  _("div", ps, [
2663
- (T = (A = n.pre) == null ? void 0 : A.inside) != null && T.action && ((ne = (q = n.pre) == null ? void 0 : q.inside) == null ? void 0 : ne.action) === "clear" && ((ge = i.value) == null ? void 0 : ge.length) > 0 ? (d(), f("div", {
2686
+ (D = (z = n.pre) == null ? void 0 : z.inside) != null && D.action && ((oe = (q = n.pre) == null ? void 0 : q.inside) == null ? void 0 : oe.action) === "clear" && ((ge = i.value) == null ? void 0 : ge.length) > 0 ? (d(), f("div", {
2664
2687
  key: 0,
2665
2688
  class: "d-pre-inside-button",
2666
2689
  onClick: N
2667
- }, ms)) : k("", !0),
2668
- te(_("input", {
2690
+ }, ms)) : $("", !0),
2691
+ J(_("input", {
2669
2692
  id: M(a),
2670
2693
  ref_key: "inputRef",
2671
2694
  ref: r,
2672
- "onUpdate:modelValue": C[0] || (C[0] = (Ie) => i.value = Ie),
2695
+ "onUpdate:modelValue": C[0] || (C[0] = (Ce) => i.value = Ce),
2673
2696
  style: { width: "100%" },
2674
2697
  type: c.value,
2675
2698
  placeholder: n.placeholder,
2676
2699
  onInput: h,
2677
- onFocus: C[1] || (C[1] = (Ie) => $(!0)),
2678
- onFocusout: C[2] || (C[2] = (Ie) => $(!1)),
2679
- class: D([
2680
- (ye = (ve = n.pre) == null ? void 0 : ve.outside) != null && ye.component || (J = (_e = n.pre) == null ? void 0 : _e.outside) != null && J.text ? "has-pre" : "",
2681
- (re = (be = n.post) == null ? void 0 : be.outside) != null && re.component || (Ce = (xe = n.post) == null ? void 0 : xe.outside) != null && Ce.text ? "has-post" : "",
2682
- (ze = (me = n.pre) == null ? void 0 : me.inside) != null && ze.action ? "has-pre-inside-button" : "",
2683
- (We = (Fe = n.post) == null ? void 0 : Fe.inside) != null && We.action ? "has-post-inside-button" : "",
2700
+ onFocus: C[1] || (C[1] = (Ce) => k(!0)),
2701
+ onFocusout: C[2] || (C[2] = (Ce) => k(!1)),
2702
+ class: w([
2703
+ (ye = (ve = n.pre) == null ? void 0 : ve.outside) != null && ye.component || (Q = (_e = n.pre) == null ? void 0 : _e.outside) != null && Q.text ? "has-pre" : "",
2704
+ (re = (be = n.post) == null ? void 0 : be.outside) != null && re.component || (Le = (xe = n.post) == null ? void 0 : xe.outside) != null && Le.text ? "has-post" : "",
2705
+ (Fe = (me = n.pre) == null ? void 0 : me.inside) != null && Fe.action ? "has-pre-inside-button" : "",
2706
+ (Pe = (We = n.post) == null ? void 0 : We.inside) != null && Pe.action ? "has-post-inside-button" : "",
2684
2707
  l.value ? "focused" : ""
2685
2708
  ]),
2686
2709
  disabled: n.disabled
2687
2710
  }, null, 42, hs), [
2688
2711
  [Se, i.value]
2689
2712
  ]),
2690
- (je = (Pe = n.post) == null ? void 0 : Pe.inside) != null && je.action && ((Ye = (Xe = n.post) == null ? void 0 : Xe.inside) == null ? void 0 : Ye.action) === "clear" && ((Ue = i.value) == null ? void 0 : Ue.length) > 0 ? (d(), f("div", {
2713
+ (Xe = (je = n.post) == null ? void 0 : je.inside) != null && Xe.action && ((Ue = (Ye = n.post) == null ? void 0 : Ye.inside) == null ? void 0 : Ue.action) === "clear" && ((qe = i.value) == null ? void 0 : qe.length) > 0 ? (d(), f("div", {
2691
2714
  key: 1,
2692
2715
  class: "d-post-inside-button",
2693
2716
  onClick: N
2694
- }, vs)) : k("", !0)
2717
+ }, vs)) : $("", !0)
2695
2718
  ]),
2696
- (Ge = (qe = n.post) == null ? void 0 : qe.outside) != null && Ge.component ? (d(), f("div", {
2719
+ (Ze = (Ge = n.post) == null ? void 0 : Ge.outside) != null && Ze.component ? (d(), f("div", {
2697
2720
  key: 2,
2698
- class: D(["d-post", n.disabled ? "disabled" : ""])
2721
+ class: w(["d-post", n.disabled ? "disabled" : ""])
2699
2722
  }, [
2700
- (d(), x(X((Ke = (Ze = n.post) == null ? void 0 : Ze.outside) == null ? void 0 : Ke.component)))
2701
- ], 2)) : (Qe = (Je = n.post) == null ? void 0 : Je.outside) != null && Qe.text ? (d(), f("div", {
2723
+ (d(), x(X((Je = (Ke = n.post) == null ? void 0 : Ke.outside) == null ? void 0 : Je.component)))
2724
+ ], 2)) : (et = (Qe = n.post) == null ? void 0 : Qe.outside) != null && et.text ? (d(), f("div", {
2702
2725
  key: 3,
2703
- class: D(["d-post", n.disabled ? "disabled" : ""])
2726
+ class: w(["d-post", n.disabled ? "disabled" : ""])
2704
2727
  }, [
2705
2728
  _("div", {
2706
- class: D(["d-text", l.value ? "focused" : ""])
2707
- }, H((tt = (et = n.post) == null ? void 0 : et.outside) == null ? void 0 : tt.text), 3)
2708
- ], 2)) : k("", !0)
2729
+ class: w(["d-text", l.value ? "focused" : ""])
2730
+ }, A((ot = (tt = n.post) == null ? void 0 : tt.outside) == null ? void 0 : ot.text), 3)
2731
+ ], 2)) : $("", !0)
2709
2732
  ]),
2710
- n.help ? (d(), f("div", ys, H(n.help), 1)) : k("", !0),
2711
- s.value ? (d(), f("div", _s, H(s.value), 1)) : k("", !0)
2733
+ n.help ? (d(), f("div", ys, A(n.help), 1)) : $("", !0),
2734
+ s.value ? (d(), f("div", _s, A(s.value), 1)) : $("", !0)
2712
2735
  ])
2713
2736
  ], 2);
2714
2737
  };
@@ -2779,8 +2802,8 @@ var bs = function() {
2779
2802
  function $e(e) {
2780
2803
  var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0, s = this;
2781
2804
  t && (o.lastTouchStartTime = e.timeStamp), !(n && o.lastTouchStartTime && e.timeStamp - o.lastTouchStartTime < 350) && (o.touchStarted || ($t(this), o.touchStarted = !0, o.touchMoved = !1, o.swipeOutBounded = !1, o.startX = bt(e), o.startY = xt(e), o.currentX = 0, o.currentY = 0, o.touchStartTime = e.timeStamp, o.hasSwipe = G(this, "swipe") || G(this, "swipe.left") || G(this, "swipe.right") || G(this, "swipe.top") || G(this, "swipe.bottom"), G(this, "hold") && (o.touchHoldTimer = setTimeout(function() {
2782
- o.touchHoldTimer = null, Q(e, s, "hold");
2783
- }, o.options.touchHoldTolerance)), Q(e, this, "press")));
2805
+ o.touchHoldTimer = null, ee(e, s, "hold");
2806
+ }, o.options.touchHoldTolerance)), ee(e, this, "press")));
2784
2807
  }
2785
2808
  function ke(e) {
2786
2809
  var o = this.$$touchObj, t = bt(e), n = xt(e), s = o.currentX != t || o.currentY != n;
@@ -2791,50 +2814,50 @@ function ke(e) {
2791
2814
  }
2792
2815
  } else {
2793
2816
  var a = o.options.tapTolerance;
2794
- o.touchMoved = Math.abs(o.startX - o.currentX) > a || Math.abs(o.startY - o.currentY) > a, o.touchMoved && (Ae(o), Q(e, this, "drag.once"));
2817
+ o.touchMoved = Math.abs(o.startX - o.currentX) > a || Math.abs(o.startY - o.currentY) > a, o.touchMoved && (ze(o), ee(e, this, "drag.once"));
2795
2818
  }
2796
2819
  if (G(this, "rollover") && s) {
2797
2820
  var r = e.timeStamp, i = o.options.rollOverFrequency;
2798
- (o.touchRollTime == null || r > o.touchRollTime + i) && (o.touchRollTime = r, Q(e, this, "rollover"));
2821
+ (o.touchRollTime == null || r > o.touchRollTime + i) && (o.touchRollTime = r, ee(e, this, "rollover"));
2799
2822
  }
2800
2823
  if (G(this, "drag") && o.touchStarted && o.touchMoved && s) {
2801
2824
  var r = e.timeStamp, i = o.options.dragFrequency;
2802
- (o.touchDragTime == null || r > o.touchDragTime + i) && (o.touchDragTime = r, Q(e, this, "drag"));
2825
+ (o.touchDragTime == null || r > o.touchDragTime + i) && (o.touchDragTime = r, ee(e, this, "drag"));
2803
2826
  }
2804
2827
  }
2805
- function at() {
2828
+ function it() {
2806
2829
  var e = this.$$touchObj;
2807
- Ae(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2830
+ ze(e), Ve(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
2808
2831
  }
2809
2832
  function we(e) {
2810
2833
  var o = this.$$touchObj, t = e.type.indexOf("touch") >= 0, n = e.type.indexOf("mouse") >= 0;
2811
2834
  t && (o.lastTouchEndTime = e.timeStamp);
2812
2835
  var s = t && !o.touchHoldTimer;
2813
- if (Ae(o), o.touchStarted = !1, Ve(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2814
- if (Q(e, this, "release"), o.touchMoved) {
2836
+ if (ze(o), o.touchStarted = !1, Ve(this), !(n && o.lastTouchEndTime && e.timeStamp - o.lastTouchEndTime < 350))
2837
+ if (ee(e, this, "release"), o.touchMoved) {
2815
2838
  if (o.hasSwipe && !o.swipeOutBounded) {
2816
2839
  var a = o.options.swipeTolerance, l, r = Math.abs(o.startY - o.currentY), i = Math.abs(o.startX - o.currentX);
2817
- (r > a || i > a) && (r > a ? l = o.startY > o.currentY ? "top" : "bottom" : l = o.startX > o.currentX ? "left" : "right", G(this, "swipe." + l) ? Q(e, this, "swipe." + l, l) : Q(e, this, "swipe", l));
2840
+ (r > a || i > a) && (r > a ? l = o.startY > o.currentY ? "top" : "bottom" : l = o.startX > o.currentX ? "left" : "right", G(this, "swipe." + l) ? ee(e, this, "swipe." + l, l) : ee(e, this, "swipe", l));
2818
2841
  }
2819
2842
  } else if (G(this, "longtap") && e.timeStamp - o.touchStartTime > o.options.longTapTimeInterval)
2820
- e.cancelable && e.preventDefault(), Q(e, this, "longtap");
2843
+ e.cancelable && e.preventDefault(), ee(e, this, "longtap");
2821
2844
  else if (G(this, "hold") && s) {
2822
2845
  e.cancelable && e.preventDefault();
2823
2846
  return;
2824
2847
  } else
2825
- Q(e, this, "tap");
2848
+ ee(e, this, "tap");
2826
2849
  }
2827
- function it() {
2850
+ function lt() {
2828
2851
  $t(this);
2829
2852
  }
2830
- function lt() {
2853
+ function rt() {
2831
2854
  Ve(this);
2832
2855
  }
2833
2856
  function G(e, o) {
2834
2857
  var t = e.$$touchObj.callbacks[o];
2835
2858
  return t != null && t.length > 0;
2836
2859
  }
2837
- function Q(e, o, t, n) {
2860
+ function ee(e, o, t, n) {
2838
2861
  var s = o.$$touchObj, a = s.callbacks[t];
2839
2862
  if (a == null || a.length === 0)
2840
2863
  return null;
@@ -2851,7 +2874,7 @@ function Ve(e) {
2851
2874
  var o = e.$$touchObj.options.touchClass;
2852
2875
  o && e.classList.remove(o);
2853
2876
  }
2854
- function Ae(e) {
2877
+ function ze(e) {
2855
2878
  e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
2856
2879
  }
2857
2880
  function $s(e, o) {
@@ -2889,53 +2912,53 @@ const Us = {
2889
2912
  default:
2890
2913
  t.callbacks[s] = t.callbacks[s] || [], t.callbacks[s].push(o);
2891
2914
  }
2892
- t.hasBindTouchEvents || (e.addEventListener("touchstart", $e, n), e.addEventListener("touchmove", ke, n), e.addEventListener("touchcancel", at), e.addEventListener("touchend", we), t.options.disableClick || (e.addEventListener("mousedown", $e), e.addEventListener("mousemove", ke), e.addEventListener("mouseup", we), e.addEventListener("mouseenter", it), e.addEventListener("mouseleave", lt)), t.hasBindTouchEvents = !0);
2915
+ t.hasBindTouchEvents || (e.addEventListener("touchstart", $e, n), e.addEventListener("touchmove", ke, n), e.addEventListener("touchcancel", it), e.addEventListener("touchend", we), t.options.disableClick || (e.addEventListener("mousedown", $e), e.addEventListener("mousemove", ke), e.addEventListener("mouseup", we), e.addEventListener("mouseenter", lt), e.addEventListener("mouseleave", rt)), t.hasBindTouchEvents = !0);
2893
2916
  },
2894
2917
  unmounted: function(e) {
2895
- e.removeEventListener("touchstart", $e), e.removeEventListener("touchmove", ke), e.removeEventListener("touchcancel", at), e.removeEventListener("touchend", we), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", $e), e.removeEventListener("mousemove", ke), e.removeEventListener("mouseup", we), e.removeEventListener("mouseenter", it), e.removeEventListener("mouseleave", lt)), delete e.$$touchObj;
2918
+ e.removeEventListener("touchstart", $e), e.removeEventListener("touchmove", ke), e.removeEventListener("touchcancel", it), e.removeEventListener("touchend", we), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", $e), e.removeEventListener("mousemove", ke), e.removeEventListener("mouseup", we), e.removeEventListener("mouseenter", lt), e.removeEventListener("mouseleave", rt)), delete e.$$touchObj;
2896
2919
  }
2897
2920
  };
2898
2921
  export {
2899
2922
  Ss as DAccordion,
2900
2923
  Jo as DAlertDialog,
2901
2924
  io as DBadge,
2902
- ae as DButton,
2925
+ se as DButton,
2903
2926
  Es as DCard,
2904
2927
  Ns as DCheckbox,
2905
2928
  lo as DCollapse,
2906
2929
  Ds as DConfigProvider,
2907
2930
  en as DConfirmDialog,
2908
- Lo as DContextMenu,
2931
+ Io as DContextMenu,
2909
2932
  Rs as DDialogProvider,
2910
2933
  uo as DDrag,
2911
2934
  Do as DDrop,
2912
2935
  Is as DDropdown,
2913
2936
  Fs as DForm,
2914
2937
  ue as DGlobalStore,
2915
- Vs as DGrid,
2938
+ Hs as DGrid,
2916
2939
  pe as DIcon,
2917
- ee as DIconStore,
2918
- As as DImage,
2940
+ te as DIconStore,
2941
+ Vs as DImage,
2919
2942
  Ms as DInfoProgress,
2920
2943
  ws as DInput,
2921
2944
  Ws as DInputString,
2922
2945
  Ts as DLayoutAdmin,
2923
- No as DLayoutContent,
2924
- Bo as DLayoutFooter,
2925
- Io as DLayoutHeader,
2926
- Mo as DLayoutSidebar,
2927
- Eo as DLayoutTab,
2928
- ht as DMenu,
2946
+ Oo as DLayoutContent,
2947
+ No as DLayoutFooter,
2948
+ Bo as DLayoutHeader,
2949
+ Ro as DLayoutSidebar,
2950
+ Mo as DLayoutTab,
2951
+ gt as DMenu,
2929
2952
  vt as DModal,
2930
2953
  Bs as DNotificationProvider,
2931
2954
  an as DPanel,
2932
2955
  Cs as DScroll,
2933
2956
  Ls as DScrollProvider,
2934
2957
  Os as DSelect,
2935
- Hs as DTabs,
2958
+ As as DTabs,
2936
2959
  zs as DTextarea,
2937
2960
  Te as DTransferStore,
2938
- gt as DTree,
2961
+ Be as DTree,
2939
2962
  So as DTreeItem,
2940
2963
  v as DTreeStore,
2941
2964
  Y as Rules,