@nhdropshipping/y-components 1.0.63 → 1.0.64

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/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as be, computed as j, createElementBlock as r, openBlock as a, normalizeClass as E, createElementVNode as l, renderSlot as ce, Fragment as ge, renderList as we, createCommentVNode as A, toDisplayString as le, ref as B, watch as ae, normalizeStyle as fe, withKeys as _e, provide as nt, nextTick as de, onMounted as Ee, onUnmounted as Te, resolveComponent as Ue, createVNode as ve, Transition as Se, withCtx as ye, createTextVNode as Le, createBlock as Ae, withModifiers as X, withDirectives as He, vModelText as xt, Teleport as Ze, vShow as Re, reactive as $t, onBeforeUnmount as gt, TransitionGroup as Ct, resolveDynamicComponent as Dt, mergeProps as _t, toHandlers as St, render as yt, inject as ut } from "vue";
1
+ import { defineComponent as ke, computed as j, createElementBlock as r, openBlock as a, normalizeClass as E, createElementVNode as l, renderSlot as ce, Fragment as ge, renderList as we, createCommentVNode as A, toDisplayString as le, ref as B, watch as ae, normalizeStyle as fe, withKeys as _e, provide as nt, nextTick as de, onMounted as Ee, onUnmounted as Te, resolveComponent as Ue, createVNode as ve, Transition as Se, withCtx as ye, createTextVNode as Le, createBlock as Ae, withModifiers as X, withDirectives as He, vModelText as xt, Teleport as Ze, vShow as Re, reactive as $t, onBeforeUnmount as gt, TransitionGroup as Ct, resolveDynamicComponent as Dt, mergeProps as _t, toHandlers as St, render as yt, inject as ut } from "vue";
2
2
  const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "content" }, It = {
3
3
  key: 1,
4
4
  class: "y-btn-group",
@@ -15,7 +15,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
15
15
  viewBox: "0 0 20 20",
16
16
  fill: "currentColor",
17
17
  "aria-hidden": "true"
18
- }, zt = { key: 2 }, Kt = /* @__PURE__ */ be({
18
+ }, zt = { key: 2 }, Kt = /* @__PURE__ */ ke({
19
19
  __name: "ybutton",
20
20
  props: {
21
21
  htmlType: { default: "button" },
@@ -28,8 +28,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
28
28
  groupItems: { default: void 0 }
29
29
  },
30
30
  emits: ["click", "group-click"],
31
- setup(t, { emit: k }) {
32
- const e = t, n = k;
31
+ setup(t, { emit: b }) {
32
+ const e = t, n = b;
33
33
  function m(x) {
34
34
  if (e.disabled || e.loading) {
35
35
  x.preventDefault(), x.stopPropagation();
@@ -113,12 +113,12 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
113
113
  ])
114
114
  ], 10, Mt));
115
115
  }
116
- }), xe = (t, k) => {
116
+ }), xe = (t, b) => {
117
117
  const e = t.__vccOpts || t;
118
- for (const [n, m] of k)
118
+ for (const [n, m] of b)
119
119
  e[n] = m;
120
120
  return e;
121
- }, lt = /* @__PURE__ */ xe(Kt, [["__scopeId", "data-v-53157673"]]), Rt = ["id", "name", "type", "placeholder", "autocomplete", "inputmode", "min", "max", "disabled", "required", "value"], At = /* @__PURE__ */ be({
121
+ }, lt = /* @__PURE__ */ xe(Kt, [["__scopeId", "data-v-53157673"]]), Rt = ["id", "name", "type", "placeholder", "autocomplete", "inputmode", "min", "max", "disabled", "required", "value"], At = /* @__PURE__ */ ke({
122
122
  __name: "yinput",
123
123
  props: {
124
124
  modelValue: { default: "" },
@@ -138,8 +138,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
138
138
  clearOnFocus: { type: Boolean, default: !1 }
139
139
  },
140
140
  emits: ["update:modelValue", "enter", "paste"],
141
- setup(t, { emit: k }) {
142
- const e = t, n = k, m = B(null), c = B(""), v = B(!1), _ = B(!1), x = B(e.placeholder || "");
141
+ setup(t, { emit: b }) {
142
+ const e = t, n = b, m = B(null), c = B(""), v = B(!1), _ = B(!1), x = B(e.placeholder || "");
143
143
  ae(() => e.placeholder, (z) => {
144
144
  _.value || (x.value = z || "");
145
145
  });
@@ -242,7 +242,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
242
242
  }, an = ["onClick"], sn = {
243
243
  key: 0,
244
244
  class: "col-expand"
245
- }, rn = ["onClick"], un = ["value", "checked", "disabled", "onChange"], dn = ["colspan"], cn = /* @__PURE__ */ be({
245
+ }, rn = ["onClick"], un = ["value", "checked", "disabled", "onChange"], dn = ["colspan"], cn = /* @__PURE__ */ ke({
246
246
  __name: "ytable",
247
247
  props: {
248
248
  data: {},
@@ -272,8 +272,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
272
272
  requireDeselectBeforeSelect: { type: Boolean, default: !0 }
273
273
  },
274
274
  emits: ["edit", "select", "update:selectedItems", "page-change", "page-size-change", "row-click"],
275
- setup(t, { emit: k }) {
276
- const e = t, n = k, m = B(e.currentPage || 1), c = B(e.pageSize), v = B(e.selectedItems || []), _ = B([]), x = B(/* @__PURE__ */ new Set()), T = B("none"), $ = B(), w = B(), d = B(), C = B(), z = B([]), F = B({}), W = B(/* @__PURE__ */ new Set()), P = j(() => W.value.size > 0), Z = j(() => {
275
+ setup(t, { emit: b }) {
276
+ const e = t, n = b, m = B(e.currentPage || 1), c = B(e.pageSize), v = B(e.selectedItems || []), _ = B([]), x = B(/* @__PURE__ */ new Set()), T = B("none"), $ = B(), w = B(), d = B(), C = B(), z = B([]), F = B({}), W = B(/* @__PURE__ */ new Set()), P = j(() => W.value.size > 0), Z = j(() => {
277
277
  if (N.value, W.value.size === 0) return !1;
278
278
  let s = 0;
279
279
  return W.value.forEach((p) => {
@@ -341,7 +341,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
341
341
  const f = j(() => {
342
342
  let s = e.columns.length;
343
343
  return e.selectable && (s += 1), e.expandable && (s += 1), s;
344
- }), b = j(() => {
344
+ }), k = j(() => {
345
345
  if (!e.searchKeyword || !e.searchFields.length)
346
346
  return e.data;
347
347
  const s = e.searchKeyword.toLowerCase();
@@ -349,7 +349,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
349
349
  const L = Pe(p, D);
350
350
  return String(L).toLowerCase().includes(s);
351
351
  }));
352
- }), S = j(() => (e.pagination, b.value)), R = j(() => {
352
+ }), S = j(() => (e.pagination, k.value)), R = j(() => {
353
353
  if (!e.selectable) return !1;
354
354
  const s = S.value.map((p, D) => ({ key: Ce(p, D), item: p, index: D })).filter(({ item: p, index: D }) => !Ve(p, D)).map(({ key: p }) => p);
355
355
  return s.length > 0 && s.every((p) => v.value.includes(p));
@@ -498,19 +498,19 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
498
498
  const rt = $.value.querySelector(".ypagination");
499
499
  V = rt ? rt.offsetHeight : 60;
500
500
  }
501
- const J = $.value.querySelector(".bulk-bar"), De = J ? J.offsetHeight : 0, et = M + V + De + 20, tt = p - D - et, bt = Math.max(200, tt), vt = $.value.querySelector(".table-body-wrap .table");
502
- vt && (vt.offsetHeight > tt ? T.value = `${bt}px` : T.value = "none");
501
+ const J = $.value.querySelector(".bulk-bar"), De = J ? J.offsetHeight : 0, et = M + V + De + 20, tt = p - D - et, kt = Math.max(200, tt), vt = $.value.querySelector(".table-body-wrap .table");
502
+ vt && (vt.offsetHeight > tt ? T.value = `${kt}px` : T.value = "none");
503
503
  });
504
504
  }
505
- let ke = !1;
505
+ let be = !1;
506
506
  function Be() {
507
- !w.value || !d.value || ke || w.value.scrollLeft !== d.value.scrollLeft && (ke = !0, w.value.scrollLeft = d.value.scrollLeft, requestAnimationFrame(() => {
508
- ke = !1;
507
+ !w.value || !d.value || be || w.value.scrollLeft !== d.value.scrollLeft && (be = !0, w.value.scrollLeft = d.value.scrollLeft, requestAnimationFrame(() => {
508
+ be = !1;
509
509
  }));
510
510
  }
511
511
  function Xe() {
512
- !w.value || !d.value || ke || d.value.scrollLeft !== w.value.scrollLeft && (ke = !0, d.value.scrollLeft = w.value.scrollLeft, requestAnimationFrame(() => {
513
- ke = !1;
512
+ !w.value || !d.value || be || d.value.scrollLeft !== w.value.scrollLeft && (be = !0, d.value.scrollLeft = w.value.scrollLeft, requestAnimationFrame(() => {
513
+ be = !1;
514
514
  }));
515
515
  }
516
516
  function je() {
@@ -844,7 +844,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
844
844
  ], 512);
845
845
  };
846
846
  }
847
- }), fn = /* @__PURE__ */ xe(cn, [["__scopeId", "data-v-4fd4d4c7"]]), vn = ["onKeydown", "aria-expanded"], hn = ["src"], pn = ["placeholder", "onKeydown"], gn = ["onClick", "onMouseenter"], yn = ["src"], mn = /* @__PURE__ */ be({
847
+ }), fn = /* @__PURE__ */ xe(cn, [["__scopeId", "data-v-bf652494"]]), vn = ["onKeydown", "aria-expanded"], hn = ["src"], pn = ["placeholder", "onKeydown"], gn = ["onClick", "onMouseenter"], yn = ["src"], mn = /* @__PURE__ */ ke({
848
848
  __name: "yselect",
849
849
  props: {
850
850
  modelValue: {},
@@ -862,8 +862,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
862
862
  width: { default: "200px" }
863
863
  },
864
864
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
865
- setup(t, { emit: k }) {
866
- const e = t, n = k, m = B(!1), c = B(-1), v = B(), _ = B(), x = B(), T = B(), $ = B(!1), w = B(), d = B(""), C = j(() => e.options.find((o) => Z(o) === e.modelValue) || null), z = j(() => C.value ? te(C.value) : ""), F = j(() => {
865
+ setup(t, { emit: b }) {
866
+ const e = t, n = b, m = B(!1), c = B(-1), v = B(), _ = B(), x = B(), T = B(), $ = B(!1), w = B(), d = B(""), C = j(() => e.options.find((o) => Z(o) === e.modelValue) || null), z = j(() => C.value ? te(C.value) : ""), F = j(() => {
867
867
  if (!e.filterable) return e.options;
868
868
  const o = d.value.trim().toLowerCase();
869
869
  return o ? e.options.filter((i) => {
@@ -874,14 +874,14 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
874
874
  var S;
875
875
  const o = { position: "fixed", zIndex: "4000" }, i = _.value;
876
876
  if (!i) return o;
877
- const f = i.getBoundingClientRect(), b = ((S = x.value) == null ? void 0 : S.getBoundingClientRect().width) || f.width;
878
- return o.left = `${f.left}px`, o.width = `${b}px`, $.value ? (o.bottom = `${window.innerHeight - f.top + 4}px`, o.top = "auto") : o.top = `${f.bottom + 4}px`, o;
877
+ const f = i.getBoundingClientRect(), k = ((S = x.value) == null ? void 0 : S.getBoundingClientRect().width) || f.width;
878
+ return o.left = `${f.left}px`, o.width = `${k}px`, $.value ? (o.bottom = `${window.innerHeight - f.top + 4}px`, o.top = "auto") : o.top = `${f.bottom + 4}px`, o;
879
879
  });
880
880
  function P() {
881
881
  !m.value || !_.value || de(() => {
882
882
  const o = _.value;
883
883
  if (!o) return;
884
- const i = o.getBoundingClientRect(), f = window.innerHeight, b = 200, S = i.bottom + b + 4, R = i.top - b - 4, O = S <= f - 20, ne = R >= 20;
884
+ const i = o.getBoundingClientRect(), f = window.innerHeight, k = 200, S = i.bottom + k + 4, R = i.top - k - 4, O = S <= f - 20, ne = R >= 20;
885
885
  $.value = !O && ne;
886
886
  });
887
887
  }
@@ -929,10 +929,10 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
929
929
  let i = c.value;
930
930
  const f = F.value.length;
931
931
  i === -1 ? i = o > 0 ? 0 : f - 1 : i = (i + o + f) % f;
932
- let b = 0;
933
- for (; b < f && he(F.value[i]); )
934
- i = (i + o + f) % f, b++;
935
- c.value = b >= f ? -1 : i, ee();
932
+ let k = 0;
933
+ for (; k < f && he(F.value[i]); )
934
+ i = (i + o + f) % f, k++;
935
+ c.value = k >= f ? -1 : i, ee();
936
936
  }
937
937
  function pe() {
938
938
  if (c.value < 0) return;
@@ -1091,20 +1091,20 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1091
1091
  ref_key: "optionsContainer",
1092
1092
  ref: v
1093
1093
  }, [
1094
- (a(!0), r(ge, null, we(F.value, (f, b) => (a(), r("div", {
1095
- key: se(f, b),
1094
+ (a(!0), r(ge, null, we(F.value, (f, k) => (a(), r("div", {
1095
+ key: se(f, k),
1096
1096
  class: E(["yselect__option", {
1097
1097
  "yselect__option--selected": G(f),
1098
1098
  "yselect__option--disabled": he(f),
1099
- "yselect__option--hover": c.value === b
1099
+ "yselect__option--hover": c.value === k
1100
1100
  }]),
1101
1101
  onClick: (S) => Y(f),
1102
- onMouseenter: (S) => c.value = b,
1102
+ onMouseenter: (S) => c.value = k,
1103
1103
  onMouseleave: i[5] || (i[5] = (S) => c.value = -1)
1104
1104
  }, [
1105
1105
  ce(o.$slots, "option", {
1106
1106
  option: f,
1107
- index: b,
1107
+ index: k,
1108
1108
  selected: G(f)
1109
1109
  }, () => [
1110
1110
  f != null && f.flagImg ? (a(), r("img", {
@@ -1124,7 +1124,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1124
1124
  })
1125
1125
  ], 6));
1126
1126
  }
1127
- }), wt = /* @__PURE__ */ xe(mn, [["__scopeId", "data-v-6cd47cb7"]]), wn = { class: "ypagination" }, kn = { class: "page-actions" }, bn = { class: "page-size-select" }, xn = /* @__PURE__ */ be({
1127
+ }), wt = /* @__PURE__ */ xe(mn, [["__scopeId", "data-v-6cd47cb7"]]), wn = { class: "ypagination" }, bn = { class: "page-actions" }, kn = { class: "page-size-select" }, xn = /* @__PURE__ */ ke({
1128
1128
  __name: "ypagination",
1129
1129
  props: {
1130
1130
  currentPage: {},
@@ -1139,8 +1139,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1139
1139
  disableNext: { type: Boolean, default: !1 }
1140
1140
  },
1141
1141
  emits: ["update:currentPage", "update:pageSize", "page-change", "page-size-change"],
1142
- setup(t, { emit: k }) {
1143
- const e = t, n = k, m = B(e.pageSize), c = j(() => e.pageSizeOptions), v = j({
1142
+ setup(t, { emit: b }) {
1143
+ const e = t, n = b, m = B(e.pageSize), c = j(() => e.pageSizeOptions), v = j({
1144
1144
  get: () => e.currentPage,
1145
1145
  set: ($) => {
1146
1146
  n("update:currentPage", $), n("page-change", $);
@@ -1163,7 +1163,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1163
1163
  ), ($, w) => {
1164
1164
  const d = Ue("YButton"), C = Ue("YSelect");
1165
1165
  return a(), r("div", wn, [
1166
- l("div", kn, [
1166
+ l("div", bn, [
1167
1167
  ve(d, {
1168
1168
  size: "small",
1169
1169
  variant: "secondary",
@@ -1185,7 +1185,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1185
1185
  ],
1186
1186
  onGroupClick: T
1187
1187
  }, null, 8, ["groupItems"]),
1188
- l("div", bn, [
1188
+ l("div", kn, [
1189
1189
  ve(C, {
1190
1190
  modelValue: m.value,
1191
1191
  "onUpdate:modelValue": w[1] || (w[1] = (z) => m.value = z),
@@ -1244,7 +1244,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1244
1244
  class: "icon",
1245
1245
  viewBox: "0 0 20 20",
1246
1246
  fill: "currentColor"
1247
- }, zn = { class: "y-badge__label" }, Kn = /* @__PURE__ */ be({
1247
+ }, zn = { class: "y-badge__label" }, Kn = /* @__PURE__ */ ke({
1248
1248
  __name: "ybadge",
1249
1249
  props: {
1250
1250
  tone: { default: "default" },
@@ -1256,8 +1256,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1256
1256
  label: { default: "" }
1257
1257
  },
1258
1258
  setup(t) {
1259
- const k = t, e = j(() => k.tone || "default"), n = j(() => {
1260
- const m = (k.label || "").trim(), c = k.tone, v = k.progress;
1259
+ const b = t, e = j(() => b.tone || "default"), n = j(() => {
1260
+ const m = (b.label || "").trim(), c = b.tone, v = b.progress;
1261
1261
  if (v) {
1262
1262
  const _ = {
1263
1263
  incomplete: "未完成",
@@ -1355,7 +1355,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1355
1355
  }, Fn = { class: "y-dialog-title" }, Pn = { class: "y-dialog-body" }, Nn = {
1356
1356
  key: 1,
1357
1357
  class: "y-dialog-footer"
1358
- }, Yn = /* @__PURE__ */ be({
1358
+ }, Yn = /* @__PURE__ */ ke({
1359
1359
  __name: "ydialog",
1360
1360
  props: {
1361
1361
  modelValue: { type: Boolean, default: !1 },
@@ -1369,8 +1369,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1369
1369
  center: { type: Boolean, default: !1 }
1370
1370
  },
1371
1371
  emits: ["update:modelValue", "open", "close"],
1372
- setup(t, { emit: k }) {
1373
- const e = t, n = k, m = j({
1372
+ setup(t, { emit: b }) {
1373
+ const e = t, n = b, m = j({
1374
1374
  get: () => e.modelValue,
1375
1375
  set: (w) => n("update:modelValue", w)
1376
1376
  }), c = B(null), v = j(() => {
@@ -1449,7 +1449,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1449
1449
  ])
1450
1450
  ]));
1451
1451
  }
1452
- }), jn = /* @__PURE__ */ xe(Yn, [["__scopeId", "data-v-a7acc6dc"]]), On = { class: "ypopover__inner" }, qn = /* @__PURE__ */ be({
1452
+ }), jn = /* @__PURE__ */ xe(Yn, [["__scopeId", "data-v-a7acc6dc"]]), On = { class: "ypopover__inner" }, qn = /* @__PURE__ */ ke({
1453
1453
  __name: "ypopover",
1454
1454
  props: {
1455
1455
  trigger: { default: "click" },
@@ -1468,7 +1468,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1468
1468
  modelValue: { type: Boolean, default: !1 }
1469
1469
  },
1470
1470
  emits: ["update:modelValue", "show", "hide", "before-show", "before-hide"],
1471
- setup(t, { expose: k, emit: e }) {
1471
+ setup(t, { expose: b, emit: e }) {
1472
1472
  const n = t, m = e, c = B(), v = B(), _ = B(), x = B(!1), T = B(), $ = B(), w = B({});
1473
1473
  let d = null, C = null;
1474
1474
  const z = j(() => {
@@ -1488,47 +1488,47 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1488
1488
  var O, ne;
1489
1489
  if (!T.value) return { top: 0, left: 0 };
1490
1490
  const { width: q, height: ee, top: g, left: h } = T.value, o = ((O = _.value) == null ? void 0 : O.offsetWidth) || 200, i = ((ne = _.value) == null ? void 0 : ne.offsetHeight) || 100;
1491
- let f = 0, b = 0;
1491
+ let f = 0, k = 0;
1492
1492
  switch (n.placement) {
1493
1493
  case "top":
1494
- f = g - i - n.offset, b = h + (q - o) / 2;
1494
+ f = g - i - n.offset, k = h + (q - o) / 2;
1495
1495
  break;
1496
1496
  case "top-start":
1497
- f = g - i - n.offset, b = h;
1497
+ f = g - i - n.offset, k = h;
1498
1498
  break;
1499
1499
  case "top-end":
1500
- f = g - i - n.offset, b = h + q - o;
1500
+ f = g - i - n.offset, k = h + q - o;
1501
1501
  break;
1502
1502
  case "bottom":
1503
- f = g + ee + n.offset, b = h + (q - o) / 2;
1503
+ f = g + ee + n.offset, k = h + (q - o) / 2;
1504
1504
  break;
1505
1505
  case "bottom-start":
1506
- f = g + ee + n.offset, b = h;
1506
+ f = g + ee + n.offset, k = h;
1507
1507
  break;
1508
1508
  case "bottom-end":
1509
- f = g + ee + n.offset, b = h + q - o;
1509
+ f = g + ee + n.offset, k = h + q - o;
1510
1510
  break;
1511
1511
  case "left":
1512
- f = g + (ee - i) / 2, b = h - o - n.offset;
1512
+ f = g + (ee - i) / 2, k = h - o - n.offset;
1513
1513
  break;
1514
1514
  case "left-start":
1515
- f = g, b = h - o - n.offset;
1515
+ f = g, k = h - o - n.offset;
1516
1516
  break;
1517
1517
  case "left-end":
1518
- f = g + ee - i, b = h - o - n.offset;
1518
+ f = g + ee - i, k = h - o - n.offset;
1519
1519
  break;
1520
1520
  case "right":
1521
- f = g + (ee - i) / 2, b = h + q + n.offset;
1521
+ f = g + (ee - i) / 2, k = h + q + n.offset;
1522
1522
  break;
1523
1523
  case "right-start":
1524
- f = g, b = h + q + n.offset;
1524
+ f = g, k = h + q + n.offset;
1525
1525
  break;
1526
1526
  case "right-end":
1527
- f = g + ee - i, b = h + q + n.offset;
1527
+ f = g + ee - i, k = h + q + n.offset;
1528
1528
  break;
1529
1529
  }
1530
1530
  const S = window.innerWidth, R = window.innerHeight;
1531
- return b < 8 && (b = 8), b + o > S - 8 && (b = S - o - 8), f < 8 && (f = 8), f + i > R - 8 && (f = R - i - 8), { top: f, left: b };
1531
+ return k < 8 && (k = 8), k + o > S - 8 && (k = S - o - 8), f < 8 && (f = 8), f + i > R - 8 && (f = R - i - 8), { top: f, left: k };
1532
1532
  }
1533
1533
  function P() {
1534
1534
  n.disabled || x.value || (G(), n.openDelay > 0 ? d = setTimeout(() => {
@@ -1623,7 +1623,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1623
1623
  n.modelValue && P();
1624
1624
  }), Te(() => {
1625
1625
  G(), document.removeEventListener("click", pe), window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
1626
- }), k({
1626
+ }), b({
1627
1627
  show: P,
1628
1628
  hide: te,
1629
1629
  updatePosition: H
@@ -1685,7 +1685,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1685
1685
  }, sl = {
1686
1686
  key: 2,
1687
1687
  class: "status-text status-complete"
1688
- }, il = { class: "nh-time-pickers" }, rl = { class: "nh-time-picker" }, ul = { class: "nh-date-picker" }, dl = { class: "nh-date-picker-header" }, cl = { class: "nh-date-picker-header-label" }, fl = { class: "nh-date-picker-content" }, vl = { class: "nh-date-table" }, hl = ["onClick"], pl = { class: "nh-date-table-cell" }, gl = { key: 0 }, yl = { class: "nh-time-picker" }, ml = { class: "nh-date-picker" }, wl = { class: "nh-date-picker-header" }, kl = { class: "nh-date-picker-header-label" }, bl = { class: "nh-date-picker-content" }, xl = { class: "nh-date-table" }, $l = ["onClick"], Cl = { class: "nh-date-table-cell" }, Dl = { key: 0 }, _l = { class: "nh-time-actions" }, Sl = /* @__PURE__ */ be({
1688
+ }, il = { class: "nh-time-pickers" }, rl = { class: "nh-time-picker" }, ul = { class: "nh-date-picker" }, dl = { class: "nh-date-picker-header" }, cl = { class: "nh-date-picker-header-label" }, fl = { class: "nh-date-picker-content" }, vl = { class: "nh-date-table" }, hl = ["onClick"], pl = { class: "nh-date-table-cell" }, gl = { key: 0 }, yl = { class: "nh-time-picker" }, ml = { class: "nh-date-picker" }, wl = { class: "nh-date-picker-header" }, bl = { class: "nh-date-picker-header-label" }, kl = { class: "nh-date-picker-content" }, xl = { class: "nh-date-table" }, $l = ["onClick"], Cl = { class: "nh-date-table-cell" }, Dl = { key: 0 }, _l = { class: "nh-time-actions" }, Sl = /* @__PURE__ */ ke({
1689
1689
  __name: "ytime",
1690
1690
  props: {
1691
1691
  modelValue: { default: () => ({ startDate: null, endDate: null }) },
@@ -1694,8 +1694,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1694
1694
  {
1695
1695
  label: "今天",
1696
1696
  getValue: () => {
1697
- const t = /* @__PURE__ */ new Date(), k = new Date(t.getFullYear(), t.getMonth(), t.getDate()), e = new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, 59);
1698
- return { startDate: k, endDate: e };
1697
+ const t = /* @__PURE__ */ new Date(), b = new Date(t.getFullYear(), t.getMonth(), t.getDate()), e = new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, 59);
1698
+ return { startDate: b, endDate: e };
1699
1699
  }
1700
1700
  },
1701
1701
  {
@@ -1703,29 +1703,29 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1703
1703
  getValue: () => {
1704
1704
  const t = /* @__PURE__ */ new Date();
1705
1705
  t.setDate(t.getDate() - 1);
1706
- const k = new Date(t.getFullYear(), t.getMonth(), t.getDate()), e = new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, 59);
1707
- return { startDate: k, endDate: e };
1706
+ const b = new Date(t.getFullYear(), t.getMonth(), t.getDate()), e = new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, 59);
1707
+ return { startDate: b, endDate: e };
1708
1708
  }
1709
1709
  },
1710
1710
  {
1711
1711
  label: "近7天",
1712
1712
  getValue: () => {
1713
- const t = /* @__PURE__ */ new Date(), k = /* @__PURE__ */ new Date();
1714
- return k.setDate(k.getDate() - 6), k.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: k, endDate: t };
1713
+ const t = /* @__PURE__ */ new Date(), b = /* @__PURE__ */ new Date();
1714
+ return b.setDate(b.getDate() - 6), b.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: b, endDate: t };
1715
1715
  }
1716
1716
  },
1717
1717
  {
1718
1718
  label: "近30天",
1719
1719
  getValue: () => {
1720
- const t = /* @__PURE__ */ new Date(), k = /* @__PURE__ */ new Date();
1721
- return k.setDate(k.getDate() - 29), k.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: k, endDate: t };
1720
+ const t = /* @__PURE__ */ new Date(), b = /* @__PURE__ */ new Date();
1721
+ return b.setDate(b.getDate() - 29), b.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: b, endDate: t };
1722
1722
  }
1723
1723
  },
1724
1724
  {
1725
1725
  label: "近3个月",
1726
1726
  getValue: () => {
1727
- const t = /* @__PURE__ */ new Date(), k = /* @__PURE__ */ new Date();
1728
- return k.setMonth(k.getMonth() - 3), k.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: k, endDate: t };
1727
+ const t = /* @__PURE__ */ new Date(), b = /* @__PURE__ */ new Date();
1728
+ return b.setMonth(b.getMonth() - 3), b.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), { startDate: b, endDate: t };
1729
1729
  }
1730
1730
  }
1731
1731
  ] },
@@ -1735,8 +1735,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1735
1735
  size: { default: "small" }
1736
1736
  },
1737
1737
  emits: ["update:modelValue", "change"],
1738
- setup(t, { emit: k }) {
1739
- const e = t, n = k, m = B(!1), c = B(-1), v = B(-1), _ = B(null), x = B(), T = B(), $ = B({
1738
+ setup(t, { emit: b }) {
1739
+ const e = t, n = b, m = B(!1), c = B(-1), v = B(-1), _ = B(null), x = B(), T = B(), $ = B({
1740
1740
  top: !0,
1741
1741
  left: !0
1742
1742
  }), w = B({
@@ -1803,25 +1803,25 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1803
1803
  U.startDate.getFullYear(),
1804
1804
  U.startDate.getMonth(),
1805
1805
  U.startDate.getDate()
1806
- ), ke = new Date(
1806
+ ), be = new Date(
1807
1807
  U.endDate.getFullYear(),
1808
1808
  U.endDate.getMonth(),
1809
1809
  U.endDate.getDate()
1810
1810
  );
1811
- if (ie.getTime() === ue.getTime() && re.getTime() === ke.getTime())
1811
+ if (ie.getTime() === ue.getTime() && re.getTime() === be.getTime())
1812
1812
  return I;
1813
1813
  }
1814
1814
  }
1815
1815
  return -1;
1816
1816
  }, oe = (u, y) => {
1817
- const I = new Date(u, y, 1), U = new Date(u, y + 1, 0), ie = I.getDay(), re = U.getDate(), ue = [], ke = /* @__PURE__ */ new Date(), Be = ie === 0 ? 6 : ie - 1, Xe = new Date(u, y, 0);
1817
+ const I = new Date(u, y, 1), U = new Date(u, y + 1, 0), ie = I.getDay(), re = U.getDate(), ue = [], be = /* @__PURE__ */ new Date(), Be = ie === 0 ? 6 : ie - 1, Xe = new Date(u, y, 0);
1818
1818
  for (let me = Be - 1; me >= 0; me--) {
1819
1819
  const Ie = new Date(u, y - 1, Xe.getDate() - me);
1820
1820
  ue.push({
1821
1821
  date: Ie,
1822
1822
  day: Ie.getDate(),
1823
1823
  isCurrentMonth: !1,
1824
- isToday: N(Ie, ke),
1824
+ isToday: N(Ie, be),
1825
1825
  isSelected: !1,
1826
1826
  isInRange: !1,
1827
1827
  isDisabled: !0
@@ -1834,7 +1834,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1834
1834
  date: Ie,
1835
1835
  day: me,
1836
1836
  isCurrentMonth: !0,
1837
- isToday: N(Ie, ke),
1837
+ isToday: N(Ie, be),
1838
1838
  isSelected: !1,
1839
1839
  isInRange: !1,
1840
1840
  isDisabled: !1
@@ -1847,7 +1847,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1847
1847
  date: Ie,
1848
1848
  day: me,
1849
1849
  isCurrentMonth: !1,
1850
- isToday: N(Ie, ke),
1850
+ isToday: N(Ie, be),
1851
1851
  isSelected: !1,
1852
1852
  isInRange: !1,
1853
1853
  isDisabled: !0
@@ -1865,8 +1865,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1865
1865
  if (!x.value || !T.value) return;
1866
1866
  const u = x.value.getBoundingClientRect(), y = T.value.getBoundingClientRect(), I = window.innerWidth, ie = window.innerHeight - u.bottom, re = u.top, ue = y.height || 400;
1867
1867
  ie < ue && re > ue ? $.value.top = !1 : $.value.top = !0;
1868
- const ke = I - u.left, Be = y.width || 640;
1869
- ke < Be ? $.value.left = !1 : $.value.left = !0;
1868
+ const be = I - u.left, Be = y.width || 640;
1869
+ be < Be ? $.value.left = !1 : $.value.left = !0;
1870
1870
  }, q = () => {
1871
1871
  if (m.value = !m.value, m.value) {
1872
1872
  const u = G(e.modelValue);
@@ -1885,7 +1885,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1885
1885
  I && U && !I.contains(y) && !U.contains(y) && (m.value = !1, c.value = -1);
1886
1886
  }, g = (u) => {
1887
1887
  u.key === "Enter" || u.key === " " ? (u.preventDefault(), q()) : u.key === "ArrowDown" && (u.preventDefault(), m.value = !0, de(() => {
1888
- pe(), b();
1888
+ pe(), k();
1889
1889
  }));
1890
1890
  }, h = (u) => {
1891
1891
  var y;
@@ -1896,7 +1896,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1896
1896
  c.value = u;
1897
1897
  }, f = () => {
1898
1898
  c.value = -1;
1899
- }, b = () => {
1899
+ }, k = () => {
1900
1900
  c.value = 0, S(0);
1901
1901
  }, S = (u) => {
1902
1902
  if (T.value) {
@@ -1945,8 +1945,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
1945
1945
  if (!u || !u.startDate || !u.endDate)
1946
1946
  return "";
1947
1947
  const y = (ie) => {
1948
- const re = String(ie.getFullYear()), ue = String(ie.getMonth() + 1).padStart(2, "0"), ke = String(ie.getDate()).padStart(2, "0");
1949
- return `${re}/${ue}/${ke}`;
1948
+ const re = String(ie.getFullYear()), ue = String(ie.getMonth() + 1).padStart(2, "0"), be = String(ie.getDate()).padStart(2, "0");
1949
+ return `${re}/${ue}/${be}`;
1950
1950
  }, I = y(u.startDate), U = y(u.endDate);
1951
1951
  return !e.includeTime && I === U ? I : `${I} - ${U}`;
1952
1952
  }), st = j(() => [
@@ -2161,7 +2161,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2161
2161
  (a(!0), r(ge, null, we(U, (re, ue) => (a(), r("td", {
2162
2162
  key: `start-day-${ie}-${ue}`,
2163
2163
  class: E(ne(re)),
2164
- onClick: (ke) => O(re, "start")
2164
+ onClick: (be) => O(re, "start")
2165
2165
  }, [
2166
2166
  l("div", pl, [
2167
2167
  re ? (a(), r("span", gl, le(re.day), 1)) : A("", !0)
@@ -2192,7 +2192,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2192
2192
  })
2193
2193
  ], -1)
2194
2194
  ])]),
2195
- l("span", kl, le(H(d.value.year, d.value.month)), 1),
2195
+ l("span", bl, le(H(d.value.year, d.value.month)), 1),
2196
2196
  l("button", {
2197
2197
  onClick: y[3] || (y[3] = (U) => Ne("end", 1)),
2198
2198
  class: "nh-date-picker-btn nh-date-picker-next-btn",
@@ -2210,7 +2210,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2210
2210
  ], -1)
2211
2211
  ])])
2212
2212
  ]),
2213
- l("div", bl, [
2213
+ l("div", kl, [
2214
2214
  l("table", xl, [
2215
2215
  l("thead", null, [
2216
2216
  l("tr", null, [
@@ -2227,7 +2227,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2227
2227
  (a(!0), r(ge, null, we(U, (re, ue) => (a(), r("td", {
2228
2228
  key: `end-day-${ie}-${ue}`,
2229
2229
  class: E(ne(re)),
2230
- onClick: (ke) => O(re, "end")
2230
+ onClick: (be) => O(re, "end")
2231
2231
  }, [
2232
2232
  l("div", Cl, [
2233
2233
  re ? (a(), r("span", Dl, le(re.day), 1)) : A("", !0)
@@ -2273,11 +2273,11 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2273
2273
  ], 2);
2274
2274
  };
2275
2275
  }
2276
- }), kt = /* @__PURE__ */ xe(Sl, [["__scopeId", "data-v-e5ef63b1"]]), Ml = ["aria-checked", "aria-disabled", "disabled", "onKeydown"], Ll = { class: "yswitch__thumb" }, Il = {
2276
+ }), bt = /* @__PURE__ */ xe(Sl, [["__scopeId", "data-v-e5ef63b1"]]), Ml = ["aria-checked", "aria-disabled", "disabled", "onKeydown"], Ll = { class: "yswitch__thumb" }, Il = {
2277
2277
  key: 0,
2278
2278
  class: "yswitch__spinner",
2279
2279
  "aria-hidden": "true"
2280
- }, El = /* @__PURE__ */ be({
2280
+ }, El = /* @__PURE__ */ ke({
2281
2281
  __name: "yswitch",
2282
2282
  props: {
2283
2283
  modelValue: { default: !1 },
@@ -2293,8 +2293,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2293
2293
  showText: { type: Boolean, default: !1 }
2294
2294
  },
2295
2295
  emits: ["update:modelValue", "change", "focus", "blur"],
2296
- setup(t, { emit: k }) {
2297
- const e = t, n = k, m = B(), c = j(() => e.modelValue === e.trueValue), v = j(() => {
2296
+ setup(t, { emit: b }) {
2297
+ const e = t, n = b, m = B(), c = j(() => e.modelValue === e.trueValue), v = j(() => {
2298
2298
  const x = {};
2299
2299
  return x.background = c.value ? e.activeColor : e.inactiveColor, x;
2300
2300
  });
@@ -2334,7 +2334,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2334
2334
  }, le(c.value ? t.activeText : t.inactiveText), 3)) : A("", !0)
2335
2335
  ], 46, Ml));
2336
2336
  }
2337
- }), Bl = /* @__PURE__ */ xe(El, [["__scopeId", "data-v-0b157fc4"]]), Tl = ["src", "alt"], Hl = ["src", "alt"], zl = /* @__PURE__ */ be({
2337
+ }), Bl = /* @__PURE__ */ xe(El, [["__scopeId", "data-v-0b157fc4"]]), Tl = ["src", "alt"], Hl = ["src", "alt"], zl = /* @__PURE__ */ ke({
2338
2338
  __name: "yimage",
2339
2339
  props: {
2340
2340
  src: {},
@@ -2349,7 +2349,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2349
2349
  previewSrcList: {}
2350
2350
  },
2351
2351
  emits: ["load", "error", "preview"],
2352
- setup(t, { expose: k, emit: e }) {
2352
+ setup(t, { expose: b, emit: e }) {
2353
2353
  const n = t, m = e, c = B(), v = B(), _ = B(), x = B(!1), T = B(!1), $ = B(!1), w = B(!1), d = B(!1), C = B("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPCEtLSDog4zmma8gLS0+CiAgPHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNGM0Y0RjYiLz4KICAKICA8IS0tIOWbvueJh+WbvuaghyAtLT4KICA8cmVjdCB4PSI1MCIgeT0iNDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iODAiIHJ4PSI0IiBmaWxsPSIjRDFENURCIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIvPgogIAogIDwhLS0g5Zu+54mH5YaF6YOo6KOF6aWwIC0tPgogIDxjaXJjbGUgY3g9IjgwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiM5Q0EzQUYiLz4KICA8cGF0aCBkPSJNNjAgMTAwIEw5MCA4NSBMMTIwIDk1IEwxNDAgODAiIHN0cm9rZT0iIzlDQTNBRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICAKICA8IS0tIOaWh+WtlyAtLT4KICA8dGV4dCB4PSIxMDAiIHk9IjE2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzZCNzI4MCIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIj4KICAgIEltYWdlIG5vdCBhdmFpbGFibGUKICA8L3RleHQ+Cjwvc3ZnPiA="), z = B(""), F = B(1), W = B(!1), P = B({
2354
2354
  overflow: "",
2355
2355
  paddingRight: ""
@@ -2449,7 +2449,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2449
2449
  d.value = !1, setTimeout(() => {
2450
2450
  oe();
2451
2451
  }, 300);
2452
- }, b = (R) => {
2452
+ }, k = (R) => {
2453
2453
  const O = R.deltaY < 0 ? 1 : -1;
2454
2454
  let $e = F.value + O * 0.1;
2455
2455
  $e = Math.max(0.5, Math.min(2, $e)), F.value = $e;
@@ -2462,7 +2462,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2462
2462
  n.src && w.value && (T.value = !0, $.value = !1, x.value = !1);
2463
2463
  }), ae(() => n.src, (R) => {
2464
2464
  C.value = R || "";
2465
- }), k({
2465
+ }), b({
2466
2466
  retryLoad: g,
2467
2467
  closePreview: f
2468
2468
  }), (R, O) => (a(), r("div", {
@@ -2541,7 +2541,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2541
2541
  key: 0,
2542
2542
  class: "yimage-preview-mask",
2543
2543
  onClick: X(f, ["self"]),
2544
- onWheel: X(b, ["prevent"])
2544
+ onWheel: X(k, ["prevent"])
2545
2545
  }, [
2546
2546
  l("div", {
2547
2547
  class: E(["yimage-preview-content", { "is-active": d.value }])
@@ -2564,7 +2564,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2564
2564
  ])) : A("", !0)
2565
2565
  ], 2));
2566
2566
  }
2567
- }), Kl = /* @__PURE__ */ xe(zl, [["__scopeId", "data-v-00c771d6"]]), Rl = /* @__PURE__ */ be({
2567
+ }), Kl = /* @__PURE__ */ xe(zl, [["__scopeId", "data-v-00c771d6"]]), Rl = /* @__PURE__ */ ke({
2568
2568
  __name: "ydropdown",
2569
2569
  props: {
2570
2570
  trigger: { default: "hover" },
@@ -2573,18 +2573,18 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2573
2573
  menuWidth: { default: void 0 }
2574
2574
  },
2575
2575
  setup(t) {
2576
- const k = t, e = B(!1), n = B();
2576
+ const b = t, e = B(!1), n = B();
2577
2577
  let m = null;
2578
- const c = j(() => `y-dropdown__menu--${k.placement}`), v = j(() => {
2579
- if (!k.menuWidth) return {};
2580
- const d = typeof k.menuWidth == "number" ? `${k.menuWidth}px` : k.menuWidth;
2578
+ const c = j(() => `y-dropdown__menu--${b.placement}`), v = j(() => {
2579
+ if (!b.menuWidth) return {};
2580
+ const d = typeof b.menuWidth == "number" ? `${b.menuWidth}px` : b.menuWidth;
2581
2581
  return {
2582
2582
  width: d,
2583
2583
  minWidth: d,
2584
2584
  maxWidth: d
2585
2585
  };
2586
2586
  }), _ = () => {
2587
- console.log("显示下拉菜单", e.value), !k.disabled && (m && (clearTimeout(m), m = null), e.value = !0, console.log("设置 visible 为 true", e.value), de(() => {
2587
+ console.log("显示下拉菜单", e.value), !b.disabled && (m && (clearTimeout(m), m = null), e.value = !0, console.log("设置 visible 为 true", e.value), de(() => {
2588
2588
  T();
2589
2589
  }));
2590
2590
  }, x = () => {
@@ -2598,7 +2598,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2598
2598
  const z = d.getBoundingClientRect(), F = C.getBoundingClientRect(), W = window.innerWidth, P = window.innerHeight;
2599
2599
  C.style.top = "", C.style.left = "", C.style.right = "", C.style.bottom = "", C.style.transform = "";
2600
2600
  let Z = 0, te = 0;
2601
- switch (k.placement) {
2601
+ switch (b.placement) {
2602
2602
  case "bottom":
2603
2603
  Z = z.height + 4, te = 0;
2604
2604
  break;
@@ -2613,26 +2613,26 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2613
2613
  break;
2614
2614
  }
2615
2615
  let se = z.top + Z, G = z.left + te;
2616
- if (k.placement === "bottom" || k.placement === "top") {
2616
+ if (b.placement === "bottom" || b.placement === "top") {
2617
2617
  const he = F.width || 260;
2618
2618
  G + he > W - 10 && (G = W - he - 10), G < 10 && (G = 10);
2619
2619
  }
2620
- if (k.placement === "left" || k.placement === "right") {
2620
+ if (b.placement === "left" || b.placement === "right") {
2621
2621
  const he = F.height || 200;
2622
2622
  se + he > P - 10 && (se = P - he - 10), se < 10 && (se = 10);
2623
2623
  }
2624
2624
  C.style.top = `${se}px`, C.style.left = `${G}px`;
2625
2625
  }, $ = (d) => {
2626
- k.trigger === "click" && n.value && !n.value.contains(d.target) && (e.value = !1);
2626
+ b.trigger === "click" && n.value && !n.value.contains(d.target) && (e.value = !1);
2627
2627
  }, w = () => {
2628
2628
  e.value && T();
2629
2629
  };
2630
2630
  return Ee(() => {
2631
- k.trigger === "click" && document.addEventListener("click", $), window.addEventListener("resize", w), window.addEventListener("scroll", w);
2631
+ b.trigger === "click" && document.addEventListener("click", $), window.addEventListener("resize", w), window.addEventListener("scroll", w);
2632
2632
  }), Te(() => {
2633
- k.trigger === "click" && document.removeEventListener("click", $), m && clearTimeout(m), window.removeEventListener("resize", w), window.removeEventListener("scroll", w);
2633
+ b.trigger === "click" && document.removeEventListener("click", $), m && clearTimeout(m), window.removeEventListener("resize", w), window.removeEventListener("scroll", w);
2634
2634
  }), ae(
2635
- () => k.menuWidth,
2635
+ () => b.menuWidth,
2636
2636
  () => {
2637
2637
  e.value && de(() => {
2638
2638
  T();
@@ -2682,7 +2682,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2682
2682
  }, Pl = { class: "y-drawer-title" }, Nl = { class: "y-drawer-body" }, Yl = {
2683
2683
  key: 1,
2684
2684
  class: "y-drawer-footer"
2685
- }, jl = /* @__PURE__ */ be({
2685
+ }, jl = /* @__PURE__ */ ke({
2686
2686
  __name: "ydrawer",
2687
2687
  props: {
2688
2688
  modelValue: { type: Boolean, default: !1 },
@@ -2696,8 +2696,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2696
2696
  showHeader: { type: Boolean, default: !0 }
2697
2697
  },
2698
2698
  emits: ["update:modelValue", "open", "close"],
2699
- setup(t, { emit: k }) {
2700
- const e = t, n = k, m = j({
2699
+ setup(t, { emit: b }) {
2700
+ const e = t, n = b, m = j({
2701
2701
  get: () => e.modelValue,
2702
2702
  set: (C) => n("update:modelValue", C)
2703
2703
  }), c = B(null), v = j(() => e.placement === "right" ? "drawer-slide-right" : "drawer-slide-bottom"), _ = j(() => e.placement === "right" ? "rounded-left" : "rounded-top"), x = j(() => {
@@ -2828,7 +2828,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2828
2828
  height: "12",
2829
2829
  viewBox: "0 0 12 12",
2830
2830
  fill: "none"
2831
- }, wo = ["src", "alt"], ko = { class: "ytree-node__custom-content" }, bo = {
2831
+ }, wo = ["src", "alt"], bo = { class: "ytree-node__custom-content" }, ko = {
2832
2832
  key: 0,
2833
2833
  class: "ytree-node__children"
2834
2834
  }, xo = ["data-level", "onClick", "onContextmenu"], $o = ["onClick"], Co = {
@@ -2864,7 +2864,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2864
2864
  height: "12",
2865
2865
  viewBox: "0 0 12 12",
2866
2866
  fill: "none"
2867
- }, Ro = ["src", "alt"], Ao = { class: "ytree-node__custom-content" }, Wo = "https://image.nhdropshipping.com/fit-in/500x500/filters:format(webp)/media/2025/10/17/1979094146203385856/32.png", Vo = "https://image.nhdropshipping.com/fit-in/500x500/filters:format(webp)/media/2025/10/17/1979095296159907840/32.png", Fo = /* @__PURE__ */ be({
2867
+ }, Ro = ["src", "alt"], Ao = { class: "ytree-node__custom-content" }, Wo = "https://image.nhdropshipping.com/fit-in/500x500/filters:format(webp)/media/2025/10/17/1979094146203385856/32.png", Vo = "https://image.nhdropshipping.com/fit-in/500x500/filters:format(webp)/media/2025/10/17/1979095296159907840/32.png", Fo = /* @__PURE__ */ ke({
2868
2868
  __name: "ytree",
2869
2869
  props: {
2870
2870
  data: { default: () => [] },
@@ -2912,7 +2912,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2912
2912
  enableChildStyleCustomClick: { type: Boolean, default: !1 }
2913
2913
  },
2914
2914
  emits: ["node-click", "node-contextmenu", "check-change", "check", "current-change", "node-expand", "node-collapse", "node-drag-start", "node-drag-enter", "node-drag-leave", "node-drag-over", "node-drag-end", "node-drop", "checked-keys-change", "child-node-click"],
2915
- setup(t, { expose: k, emit: e }) {
2915
+ setup(t, { expose: b, emit: e }) {
2916
2916
  const n = t, m = e, c = j(() => (console.log("ytree 组件接收到的数据:", n.data), n.data || [])), v = B({
2917
2917
  currentNode: null,
2918
2918
  currentKey: null,
@@ -2936,8 +2936,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2936
2936
  }
2937
2937
  function w(g, h) {
2938
2938
  var S;
2939
- const o = n.deptIconUrl || Wo, i = n.personIconUrl || Vo, f = n.buttonIconUrl || "", b = n.childStyleIconUrl || "";
2940
- return h && b && F(g, h) ? b : (S = g == null ? void 0 : g.data) != null && S.isButton && f ? f : $(g) ? i : o;
2939
+ const o = n.deptIconUrl || Wo, i = n.personIconUrl || Vo, f = n.buttonIconUrl || "", k = n.childStyleIconUrl || "";
2940
+ return h && k && F(g, h) ? k : (S = g == null ? void 0 : g.data) != null && S.isButton && f ? f : $(g) ? i : o;
2941
2941
  }
2942
2942
  function d(g) {
2943
2943
  var o;
@@ -2953,9 +2953,9 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2953
2953
  return o;
2954
2954
  const i = C(g);
2955
2955
  for (const f of i) {
2956
- const b = z(f, h, o + 1);
2957
- if (b > 0)
2958
- return b;
2956
+ const k = z(f, h, o + 1);
2957
+ if (k > 0)
2958
+ return k;
2959
2959
  }
2960
2960
  return 0;
2961
2961
  }
@@ -2970,18 +2970,18 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
2970
2970
  const h = x(g);
2971
2971
  if (v.value.checkedKeys.has(h)) {
2972
2972
  if (d(g)) {
2973
- const i = C(g), f = i.filter((S) => P(S)), b = i.filter(
2973
+ const i = C(g), f = i.filter((S) => P(S)), k = i.filter(
2974
2974
  (S) => Z(S)
2975
2975
  );
2976
- return f.length === i.length && b.length === 0;
2976
+ return f.length === i.length && k.length === 0;
2977
2977
  }
2978
2978
  return !0;
2979
2979
  }
2980
2980
  if (d(g)) {
2981
2981
  const i = C(g);
2982
2982
  return i.some(
2983
- (b) => Z(b)
2984
- ) ? !1 : i.length > 0 && i.every((b) => P(b));
2983
+ (k) => Z(k)
2984
+ ) ? !1 : i.length > 0 && i.every((k) => P(k));
2985
2985
  }
2986
2986
  return !1;
2987
2987
  }
@@ -3004,13 +3004,13 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3004
3004
  if (n.disabled) return;
3005
3005
  const h = x(g), i = !v.value.checkedKeys.has(h), f = new Set(v.value.expandedKeys);
3006
3006
  i ? v.value.checkedKeys.add(h) : v.value.checkedKeys.delete(h);
3007
- function b(S, R) {
3007
+ function k(S, R) {
3008
3008
  S.forEach((O) => {
3009
3009
  const ne = x(O);
3010
- R ? v.value.checkedKeys.add(ne) : v.value.checkedKeys.delete(ne), d(O) && b(C(O), R);
3010
+ R ? v.value.checkedKeys.add(ne) : v.value.checkedKeys.delete(ne), d(O) && k(C(O), R);
3011
3011
  });
3012
3012
  }
3013
- b(C(g), i), i && he(), N(), v.value.expandedKeys = f, m("check-change", g, i, !1), m("check", g, i, !1), m("checked-keys-change", Array.from(v.value.checkedKeys));
3013
+ k(C(g), i), i && he(), N(), v.value.expandedKeys = f, m("check-change", g, i, !1), m("check", g, i, !1), m("checked-keys-change", Array.from(v.value.checkedKeys));
3014
3014
  }
3015
3015
  function he(g) {
3016
3016
  _.value && console.log(
@@ -3031,10 +3031,10 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3031
3031
  h(c.value);
3032
3032
  function o(i) {
3033
3033
  if (d(i)) {
3034
- const f = C(i), b = x(i), S = f.filter((O) => P(O)), R = f.filter(
3034
+ const f = C(i), k = x(i), S = f.filter((O) => P(O)), R = f.filter(
3035
3035
  (O) => Z(O)
3036
3036
  );
3037
- S.length === f.length && R.length === 0 || S.length > 0 || R.length > 0 ? v.value.checkedKeys.add(b) : v.value.checkedKeys.delete(b);
3037
+ S.length === f.length && R.length === 0 || S.length > 0 || R.length > 0 ? v.value.checkedKeys.add(k) : v.value.checkedKeys.delete(k);
3038
3038
  }
3039
3039
  }
3040
3040
  for (let i = g.length - 1; i >= 0; i--)
@@ -3073,16 +3073,16 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3073
3073
  return 0;
3074
3074
  }, i = function(S, R, O) {
3075
3075
  S.forEach((ne) => {
3076
- R < O && d(ne) ? (b.add(x(ne)), i(C(ne), R + 1, O)) : R < O && d(ne);
3076
+ R < O && d(ne) ? (k.add(x(ne)), i(C(ne), R + 1, O)) : R < O && d(ne);
3077
3077
  });
3078
3078
  };
3079
3079
  const f = (g || []).filter((S) => {
3080
3080
  const R = o(S, c.value, 1);
3081
3081
  return R > 0 && R < h;
3082
- }), b = new Set(f);
3082
+ }), k = new Set(f);
3083
3083
  i(c.value, 1, h), v.value.expandedKeys.forEach((S) => {
3084
- o(S, c.value, 1) >= h && b.add(S);
3085
- }), v.value.expandedKeys = b;
3084
+ o(S, c.value, 1) >= h && k.add(S);
3085
+ }), v.value.expandedKeys = k;
3086
3086
  } else
3087
3087
  v.value.expandedKeys = new Set(g);
3088
3088
  }
@@ -3092,14 +3092,14 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3092
3092
  function oe() {
3093
3093
  if (n.defaultExpandAll) {
3094
3094
  let g = function(i, f = 1) {
3095
- i.forEach((b) => {
3096
- if (!d(b)) return;
3097
- const S = C(b);
3095
+ i.forEach((k) => {
3096
+ if (!d(k)) return;
3097
+ const S = C(k);
3098
3098
  if (o) {
3099
3099
  if (f >= o) return;
3100
- f + 1 === o || h.add(x(b)), g(S, f + 1);
3100
+ f + 1 === o || h.add(x(k)), g(S, f + 1);
3101
3101
  } else
3102
- h.add(x(b)), g(S, f + 1);
3102
+ h.add(x(k)), g(S, f + 1);
3103
3103
  });
3104
3104
  };
3105
3105
  const h = /* @__PURE__ */ new Set(), o = _.value;
@@ -3108,10 +3108,10 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3108
3108
  }
3109
3109
  function Q() {
3110
3110
  if (n.defaultCheckedKeys && n.defaultCheckedKeys.length > 0) {
3111
- let g = function(f, b = []) {
3111
+ let g = function(f, k = []) {
3112
3112
  f.forEach((S) => {
3113
- const R = x(S), O = [...b, R];
3114
- h.has(R) && b.forEach((ne) => o.add(ne)), d(S) && g(C(S), O);
3113
+ const R = x(S), O = [...k, R];
3114
+ h.has(R) && k.forEach((ne) => o.add(ne)), d(S) && g(C(S), O);
3115
3115
  });
3116
3116
  };
3117
3117
  const h = new Set(n.defaultCheckedKeys), o = /* @__PURE__ */ new Set();
@@ -3135,12 +3135,12 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3135
3135
  );
3136
3136
  function pe(g) {
3137
3137
  try {
3138
- let h = function(f, b, S = []) {
3138
+ let h = function(f, k, S = []) {
3139
3139
  for (const R of f) {
3140
3140
  const O = x(R), ne = [...S, O];
3141
- if (O === b) return ne;
3141
+ if (O === k) return ne;
3142
3142
  if (d(R)) {
3143
- const $e = h(C(R), b, ne);
3143
+ const $e = h(C(R), k, ne);
3144
3144
  if ($e) return $e;
3145
3145
  }
3146
3146
  }
@@ -3151,8 +3151,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3151
3151
  v.value.highlightedKeys.clear();
3152
3152
  const i = new Set(v.value.expandedKeys);
3153
3153
  o.forEach((f) => {
3154
- const b = h(c.value, f);
3155
- b && b.length > 0 && (b.slice(0, -1).forEach((S) => i.add(S)), v.value.highlightedKeys.add(b[b.length - 1]));
3154
+ const k = h(c.value, f);
3155
+ k && k.length > 0 && (k.slice(0, -1).forEach((S) => i.add(S)), v.value.highlightedKeys.add(k[k.length - 1]));
3156
3156
  }), v.value.expandedKeys = i;
3157
3157
  } catch (h) {
3158
3158
  console.warn("highlightAndExpandByIds 执行失败", h);
@@ -3164,7 +3164,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3164
3164
  function ee() {
3165
3165
  v.value.currentNode = null, v.value.currentKey = null;
3166
3166
  }
3167
- return k({ highlightAndExpandByIds: pe, clearHighlights: q, clearCurrentNode: ee }), ae(
3167
+ return b({ highlightAndExpandByIds: pe, clearHighlights: q, clearCurrentNode: ee }), ae(
3168
3168
  () => n.defaultSelectedKeys,
3169
3169
  (g) => {
3170
3170
  g && (v.value.selectedKeys = new Set(g));
@@ -3345,9 +3345,9 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3345
3345
  class: E(["ytree-node__content", { "is-child-style": F(f, o) }]),
3346
3346
  style: { paddingLeft: "38px" },
3347
3347
  "data-level": z(o, f),
3348
- onClick: (b) => K(f, f, null, o),
3349
- onContextmenu: (b) => Y(
3350
- b,
3348
+ onClick: (k) => K(f, f, null, o),
3349
+ onContextmenu: (k) => Y(
3350
+ k,
3351
3351
  f,
3352
3352
  f,
3353
3353
  null
@@ -3356,7 +3356,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3356
3356
  d(f) ? (a(), r("span", {
3357
3357
  key: 0,
3358
3358
  class: E(["ytree-node__expand-icon", { "is-expanded": W(f) }]),
3359
- onClick: X((b) => H(f), ["stop"])
3359
+ onClick: X((k) => H(f), ["stop"])
3360
3360
  }, [...h[6] || (h[6] = [
3361
3361
  l("svg", {
3362
3362
  width: "12",
@@ -3379,7 +3379,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3379
3379
  "is-checked": P(f),
3380
3380
  "is-indeterminate": Z(f)
3381
3381
  }]),
3382
- onClick: X((b) => G(f), ["stop"])
3382
+ onClick: X((k) => G(f), ["stop"])
3383
3383
  }, [
3384
3384
  P(f) ? (a(), r("svg", yo, [...h[7] || (h[7] = [
3385
3385
  l("path", {
@@ -3410,7 +3410,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3410
3410
  l("span", {
3411
3411
  class: E(["ytree-node__label", { "is-employee": $(f) }])
3412
3412
  }, le(T(f)), 3),
3413
- l("div", ko, [
3413
+ l("div", bo, [
3414
3414
  ce(g.$slots, "node-content", {
3415
3415
  node: f,
3416
3416
  isCurrent: te(f),
@@ -3421,39 +3421,39 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3421
3421
  ], 42, vo),
3422
3422
  ve(Se, { name: "ytree-node" }, {
3423
3423
  default: ye(() => [
3424
- d(f) && W(f) ? (a(), r("div", bo, [
3425
- (a(!0), r(ge, null, we(C(f), (b) => (a(), r("div", {
3426
- key: x(b),
3424
+ d(f) && W(f) ? (a(), r("div", ko, [
3425
+ (a(!0), r(ge, null, we(C(f), (k) => (a(), r("div", {
3426
+ key: x(k),
3427
3427
  class: E(["ytree-node", {
3428
- "ytree-node--current": te(b),
3429
- "ytree-node--highlight": se(b)
3428
+ "ytree-node--current": te(k),
3429
+ "ytree-node--highlight": se(k)
3430
3430
  }])
3431
3431
  }, [
3432
3432
  l("div", {
3433
- class: E(["ytree-node__content", { "is-child-style": F(b, o) }]),
3433
+ class: E(["ytree-node__content", { "is-child-style": F(k, o) }]),
3434
3434
  style: {
3435
3435
  paddingLeft: "54px"
3436
3436
  },
3437
- "data-level": z(o, b),
3437
+ "data-level": z(o, k),
3438
3438
  onClick: (S) => K(
3439
- b,
3440
- b,
3439
+ k,
3440
+ k,
3441
3441
  null,
3442
3442
  o
3443
3443
  ),
3444
3444
  onContextmenu: (S) => Y(
3445
3445
  S,
3446
- b,
3447
- b,
3446
+ k,
3447
+ k,
3448
3448
  null
3449
3449
  )
3450
3450
  }, [
3451
- d(b) ? (a(), r("span", {
3451
+ d(k) ? (a(), r("span", {
3452
3452
  key: 0,
3453
3453
  class: E(["ytree-node__expand-icon", {
3454
- "is-expanded": W(b)
3454
+ "is-expanded": W(k)
3455
3455
  }]),
3456
- onClick: X((S) => H(b), ["stop"])
3456
+ onClick: X((S) => H(k), ["stop"])
3457
3457
  }, [...h[9] || (h[9] = [
3458
3458
  l("svg", {
3459
3459
  width: "12",
@@ -3473,12 +3473,12 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3473
3473
  t.showCheckbox ? (a(), r("span", {
3474
3474
  key: 2,
3475
3475
  class: E(["ytree-node__checkbox", {
3476
- "is-checked": P(b),
3477
- "is-indeterminate": Z(b)
3476
+ "is-checked": P(k),
3477
+ "is-indeterminate": Z(k)
3478
3478
  }]),
3479
- onClick: X((S) => G(b), ["stop"])
3479
+ onClick: X((S) => G(k), ["stop"])
3480
3480
  }, [
3481
- P(b) ? (a(), r("svg", _o, [...h[10] || (h[10] = [
3481
+ P(k) ? (a(), r("svg", _o, [...h[10] || (h[10] = [
3482
3482
  l("path", {
3483
3483
  d: "M2 6L4.5 8.5L10 3",
3484
3484
  stroke: "currentColor",
@@ -3486,7 +3486,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3486
3486
  "stroke-linecap": "round",
3487
3487
  "stroke-linejoin": "round"
3488
3488
  }, null, -1)
3489
- ])])) : Z(b) ? (a(), r("svg", So, [...h[11] || (h[11] = [
3489
+ ])])) : Z(k) ? (a(), r("svg", So, [...h[11] || (h[11] = [
3490
3490
  l("path", {
3491
3491
  d: "M2 6L10 6",
3492
3492
  stroke: "currentColor",
@@ -3501,28 +3501,28 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3501
3501
  }, null, 2)) : A("", !0),
3502
3502
  l("img", {
3503
3503
  class: "ytree-node__avatar",
3504
- src: w(b, o),
3505
- alt: $(b) ? "person" : "dept"
3504
+ src: w(k, o),
3505
+ alt: $(k) ? "person" : "dept"
3506
3506
  }, null, 8, Mo),
3507
3507
  l("span", {
3508
3508
  class: E(["ytree-node__label", {
3509
- "is-employee": $(b)
3509
+ "is-employee": $(k)
3510
3510
  }])
3511
- }, le(T(b)), 3),
3511
+ }, le(T(k)), 3),
3512
3512
  l("div", Lo, [
3513
3513
  ce(g.$slots, "node-content", {
3514
- node: b,
3515
- isCurrent: te(b),
3516
- isExpanded: W(b),
3517
- hasChildren: d(b)
3514
+ node: k,
3515
+ isCurrent: te(k),
3516
+ isExpanded: W(k),
3517
+ hasChildren: d(k)
3518
3518
  }, void 0, !0)
3519
3519
  ])
3520
3520
  ], 42, xo),
3521
3521
  ve(Se, { name: "ytree-node" }, {
3522
3522
  default: ye(() => [
3523
- d(b) && W(b) ? (a(), r("div", Io, [
3523
+ d(k) && W(k) ? (a(), r("div", Io, [
3524
3524
  (a(!0), r(ge, null, we(C(
3525
- b
3525
+ k
3526
3526
  ), (S) => (a(), r("div", {
3527
3527
  key: x(S),
3528
3528
  class: E(["ytree-node", {
@@ -3652,7 +3652,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3652
3652
  }, Zo = {
3653
3653
  key: 0,
3654
3654
  class: "query-encapsulation__toggle"
3655
- }, Qo = { class: "query-encapsulation__actions" }, Jo = { class: "query-encapsulation__actions-group" }, Xo = /* @__PURE__ */ be({
3655
+ }, Qo = { class: "query-encapsulation__actions" }, Jo = { class: "query-encapsulation__actions-group" }, Xo = /* @__PURE__ */ ke({
3656
3656
  __name: "QueryEncapsulation",
3657
3657
  props: {
3658
3658
  Iflabel: { type: Boolean, default: !0 },
@@ -3662,8 +3662,8 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3662
3662
  modelValue: { default: () => ({}) }
3663
3663
  },
3664
3664
  emits: ["update:modelValue", "search", "reset", "field-change"],
3665
- setup(t, { emit: k }) {
3666
- const e = t, n = k, m = B(!1), c = $t({}), v = ["select", "date", "daterange"];
3665
+ setup(t, { emit: b }) {
3666
+ const e = t, n = b, m = B(!1), c = $t({}), v = ["select", "date", "daterange"];
3667
3667
  let _;
3668
3668
  const x = j(() => e.fields.filter((H) => !H.hidden)), T = j(() => m.value ? x.value : x.value.slice(0, e.maxVisibleFields)), $ = j(() => x.value.length > e.maxVisibleFields);
3669
3669
  function w(H) {
@@ -3672,7 +3672,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3672
3672
  return wt;
3673
3673
  case "date":
3674
3674
  case "daterange":
3675
- return kt;
3675
+ return bt;
3676
3676
  case "input":
3677
3677
  default:
3678
3678
  return mt;
@@ -3869,7 +3869,7 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3869
3869
  height: "16",
3870
3870
  viewBox: "0 0 24 24",
3871
3871
  fill: "none"
3872
- }, la = ["textContent"], oa = /* @__PURE__ */ be({
3872
+ }, la = ["textContent"], oa = /* @__PURE__ */ ke({
3873
3873
  __name: "ymessageToast",
3874
3874
  props: {
3875
3875
  id: {},
@@ -3882,11 +3882,11 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3882
3882
  onClose: {}
3883
3883
  },
3884
3884
  setup(t) {
3885
- const k = t, e = B(!1);
3885
+ const b = t, e = B(!1);
3886
3886
  let n, m = 0, c = 0;
3887
3887
  Ee(() => {
3888
3888
  requestAnimationFrame(() => {
3889
- e.value = !0, k.duration && k.duration > 0 && v(k.duration);
3889
+ e.value = !0, b.duration && b.duration > 0 && v(b.duration);
3890
3890
  });
3891
3891
  }), gt(() => {
3892
3892
  _();
@@ -3898,21 +3898,21 @@ const Mt = ["type", "disabled", "aria-busy", "aria-disabled"], Lt = { class: "co
3898
3898
  n && (window.clearTimeout(n), n = void 0);
3899
3899
  }
3900
3900
  function x() {
3901
- if (n && k.duration && k.duration > 0) {
3901
+ if (n && b.duration && b.duration > 0) {
3902
3902
  _();
3903
3903
  const d = Date.now() - c;
3904
3904
  m = Math.max(0, m - d);
3905
3905
  }
3906
3906
  }
3907
3907
  function T() {
3908
- k.duration && k.duration > 0 && m > 0 && v(m);
3908
+ b.duration && b.duration > 0 && m > 0 && v(m);
3909
3909
  }
3910
3910
  function $() {
3911
3911
  e.value = !1;
3912
3912
  }
3913
3913
  function w() {
3914
3914
  var d;
3915
- (d = k.onClose) == null || d.call(k, k.id);
3915
+ (d = b.onClose) == null || d.call(b, b.id);
3916
3916
  }
3917
3917
  return (d, C) => (a(), Ae(Se, {
3918
3918
  name: "y-msg-fade",
@@ -3979,19 +3979,19 @@ let sa = 1;
3979
3979
  const ct = 12, Ke = [];
3980
3980
  function ia() {
3981
3981
  let t = 20;
3982
- return Ke.forEach((k) => {
3983
- t += k.height + ct;
3982
+ return Ke.forEach((b) => {
3983
+ t += b.height + ct;
3984
3984
  }), t;
3985
3985
  }
3986
3986
  function ht(t) {
3987
- const k = Ke.findIndex((c) => c.id === t);
3988
- if (k === -1) return;
3989
- const { el: e } = Ke[k], n = e.firstElementChild;
3987
+ const b = Ke.findIndex((c) => c.id === t);
3988
+ if (b === -1) return;
3989
+ const { el: e } = Ke[b], n = e.firstElementChild;
3990
3990
  if (n) {
3991
3991
  const c = window.getComputedStyle(n).top;
3992
3992
  n.style.top = c, n.classList.add("is-leaving"), n.style.willChange = "opacity, transform";
3993
3993
  }
3994
- Ke[k].leaving = !0, at(), setTimeout(() => {
3994
+ Ke[b].leaving = !0, at(), setTimeout(() => {
3995
3995
  yt(null, e), e.parentNode && e.parentNode.removeChild(e);
3996
3996
  const c = Ke.findIndex((v) => v.id === t);
3997
3997
  c !== -1 && Ke.splice(c, 1), at();
@@ -3999,54 +3999,54 @@ function ht(t) {
3999
3999
  }
4000
4000
  function dt(t) {
4001
4001
  var c;
4002
- const k = sa++, e = document.createElement("div");
4002
+ const b = sa++, e = document.createElement("div");
4003
4003
  document.body.appendChild(e);
4004
4004
  const n = ve(aa, {
4005
- id: k,
4005
+ id: b,
4006
4006
  type: t.type || "success",
4007
4007
  message: t.message,
4008
4008
  duration: t.duration ?? 2500,
4009
4009
  offset: ia(),
4010
- zIndex: 3e3 + k,
4010
+ zIndex: 3e3 + b,
4011
4011
  closable: t.closable ?? !1,
4012
4012
  onClose: (v) => ht(v)
4013
4013
  });
4014
4014
  yt(n, e);
4015
4015
  const m = ((c = e.firstElementChild) == null ? void 0 : c.offsetHeight) || 0;
4016
- return Ke.push({ id: k, el: e, vm: n, height: m, leaving: !1 }), at(), requestAnimationFrame(() => {
4016
+ return Ke.push({ id: b, el: e, vm: n, height: m, leaving: !1 }), at(), requestAnimationFrame(() => {
4017
4017
  const v = e.firstElementChild;
4018
4018
  if (!v) return;
4019
- const _ = v.offsetHeight || m || 0, x = Ke.find((T) => T.id === k);
4019
+ const _ = v.offsetHeight || m || 0, x = Ke.find((T) => T.id === b);
4020
4020
  x && (x.height = _, at());
4021
- }), { close: () => ht(k) };
4021
+ }), { close: () => ht(b) };
4022
4022
  }
4023
4023
  const ot = {
4024
- success(t, k) {
4025
- return dt({ ...typeof k == "number" ? { duration: k } : k || {}, type: "success", message: t });
4024
+ success(t, b) {
4025
+ return dt({ ...typeof b == "number" ? { duration: b } : b || {}, type: "success", message: t });
4026
4026
  },
4027
- warning(t, k) {
4028
- return dt({ ...typeof k == "number" ? { duration: k } : k || {}, type: "warning", message: t });
4027
+ warning(t, b) {
4028
+ return dt({ ...typeof b == "number" ? { duration: b } : b || {}, type: "warning", message: t });
4029
4029
  },
4030
- error(t, k) {
4031
- return dt({ ...typeof k == "number" ? { duration: k } : k || {}, type: "error", message: t });
4030
+ error(t, b) {
4031
+ return dt({ ...typeof b == "number" ? { duration: b } : b || {}, type: "error", message: t });
4032
4032
  }
4033
4033
  };
4034
4034
  typeof window < "u" && (window.YMessage = ot, typeof globalThis.YMessage > "u" && (globalThis.YMessage = ot));
4035
4035
  function at() {
4036
4036
  let t = 20;
4037
- Ke.forEach((k) => {
4038
- const e = k.el.firstElementChild;
4037
+ Ke.forEach((b) => {
4038
+ const e = b.el.firstElementChild;
4039
4039
  if (!e) return;
4040
4040
  const n = t;
4041
- if (e.style.transform = `translate(-50%, ${n}px)`, e.style.top || (e.style.top = "0px"), !k.leaving)
4042
- t += (e.offsetHeight || k.height) + ct;
4041
+ if (e.style.transform = `translate(-50%, ${n}px)`, e.style.top || (e.style.top = "0px"), !b.leaving)
4042
+ t += (e.offsetHeight || b.height) + ct;
4043
4043
  else {
4044
- const m = e.offsetHeight || k.height;
4044
+ const m = e.offsetHeight || b.height;
4045
4045
  t += m + ct;
4046
4046
  }
4047
4047
  });
4048
4048
  }
4049
- const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ be({
4049
+ const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ ke({
4050
4050
  __name: "hintTag",
4051
4051
  props: {
4052
4052
  content: { default: "" },
@@ -4056,7 +4056,7 @@ const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ b
4056
4056
  tooltip: { default: "" },
4057
4057
  borderColor: { default: "#00a8e8" }
4058
4058
  },
4059
- setup(t, { expose: k }) {
4059
+ setup(t, { expose: b }) {
4060
4060
  const n = B(t.defaultExpanded), m = () => {
4061
4061
  n.value = !n.value;
4062
4062
  }, c = () => {
@@ -4064,7 +4064,7 @@ const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ b
4064
4064
  }, v = () => {
4065
4065
  n.value || (n.value = !0);
4066
4066
  };
4067
- k({
4067
+ b({
4068
4068
  toggle: m,
4069
4069
  isExpanded: n,
4070
4070
  collapse: c,
@@ -4164,7 +4164,7 @@ const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ b
4164
4164
  YBadge: Rn,
4165
4165
  YDialog: jn,
4166
4166
  YPopover: Un,
4167
- YTime: kt,
4167
+ YTime: bt,
4168
4168
  YSwitch: Bl,
4169
4169
  YImage: Kl,
4170
4170
  YDropdown: Al,
@@ -4174,8 +4174,8 @@ const ra = { class: "hint-tag-content" }, ua = ["title"], da = /* @__PURE__ */ b
4174
4174
  HintTag: ca
4175
4175
  }, ha = {
4176
4176
  install(t) {
4177
- Object.keys(pt).forEach((k) => {
4178
- t.component(k, pt[k]);
4177
+ Object.keys(pt).forEach((b) => {
4178
+ t.component(b, pt[b]);
4179
4179
  }), t.config.globalProperties.$message = ot, typeof window < "u" && (window.YMessage = ot);
4180
4180
  }
4181
4181
  };
@@ -4194,7 +4194,7 @@ export {
4194
4194
  wt as YSelect,
4195
4195
  Bl as YSwitch,
4196
4196
  fn as YTable,
4197
- kt as YTime,
4197
+ bt as YTime,
4198
4198
  Po as YTree,
4199
4199
  ha as default
4200
4200
  };