@nhdropshipping/y-components 1.0.7 → 1.0.8

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
@@ -30,12 +30,12 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
30
30
  emits: ["click", "group-click"],
31
31
  setup(t, { emit: w }) {
32
32
  const e = t, l = w;
33
- function v(k) {
33
+ function v(b) {
34
34
  if (e.disabled || e.loading) {
35
- k.preventDefault(), k.stopPropagation();
35
+ b.preventDefault(), b.stopPropagation();
36
36
  return;
37
37
  }
38
- l("click", k);
38
+ l("click", b);
39
39
  }
40
40
  const a = W(() => {
41
41
  switch (e.groupPosition) {
@@ -49,14 +49,14 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
49
49
  return "group-pos-single";
50
50
  }
51
51
  }), $ = W(() => Array.isArray(e.groupItems) && e.groupItems.length > 0);
52
- function B(k, I) {
53
- if (e.disabled || e.loading || k.disabled || k.loading) {
52
+ function B(b, I) {
53
+ if (e.disabled || e.loading || b.disabled || b.loading) {
54
54
  I.preventDefault(), I.stopPropagation();
55
55
  return;
56
56
  }
57
- l("group-click", k.value, I);
57
+ l("group-click", b.value, I);
58
58
  }
59
- return (k, I) => $.value ? (s(), u("div", ct, [
59
+ return (b, I) => $.value ? (s(), u("div", ct, [
60
60
  (s(!0), u(re, null, fe(t.groupItems, (p, g) => {
61
61
  var d;
62
62
  return s(), u("button", {
@@ -109,7 +109,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
109
109
  onClick: v
110
110
  }, [
111
111
  n("span", ut, [
112
- ue(k.$slots, "default", {}, void 0, !0)
112
+ ue(b.$slots, "default", {}, void 0, !0)
113
113
  ])
114
114
  ], 10, rt));
115
115
  }
@@ -207,7 +207,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
207
207
  },
208
208
  emits: ["edit", "select", "update:selectedItems", "page-change", "page-size-change"],
209
209
  setup(t, { emit: w }) {
210
- const e = t, l = w, v = V(e.currentPage || 1), a = V(e.pageSize), $ = V([]), B = V("none"), k = V(), I = V(), p = V(), g = V(), d = V([]), L = V(), O = V({
210
+ const e = t, l = w, v = V(e.currentPage || 1), a = V(e.pageSize), $ = V([]), B = V("none"), b = V(), I = V(), p = V(), g = V(), d = V([]), L = V(), O = V({
211
211
  show: !1,
212
212
  thumbHeight: 40,
213
213
  thumbTop: 0
@@ -324,7 +324,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
324
324
  }), le(() => e.data, () => {
325
325
  e.total || (v.value = 1);
326
326
  }, { deep: !0 });
327
- function b(D) {
327
+ function k(D) {
328
328
  v.value = D, l("page-change", D);
329
329
  }
330
330
  function i(D) {
@@ -338,8 +338,8 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
338
338
  a.value !== M && (a.value = M);
339
339
  });
340
340
  function m() {
341
- k.value && de(() => {
342
- const D = k.value.getBoundingClientRect(), M = window.innerHeight, R = D.top, _ = k.value.querySelector(".table-header"), P = _ ? _.offsetHeight : 40, U = k.value.querySelector(".ypagination"), ae = U ? U.offsetHeight : 60, o = k.value.querySelector(".bulk-bar"), c = o ? o.offsetHeight : 0, S = P + ae + c + 20, F = M - R - S, ne = Math.max(200, F), ie = k.value.querySelector(".table-body-wrap .table");
341
+ b.value && de(() => {
342
+ const D = b.value.getBoundingClientRect(), M = window.innerHeight, R = D.top, _ = b.value.querySelector(".table-header"), P = _ ? _.offsetHeight : 40, U = b.value.querySelector(".ypagination"), ae = U ? U.offsetHeight : 60, o = b.value.querySelector(".bulk-bar"), c = o ? o.offsetHeight : 0, S = P + ae + c + 20, F = M - R - S, ne = Math.max(200, F), ie = b.value.querySelector(".table-body-wrap .table");
343
343
  ie && (ie.offsetHeight > F ? B.value = `${ne}px` : B.value = "none");
344
344
  });
345
345
  }
@@ -461,7 +461,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
461
461
  return s(), u("div", {
462
462
  class: "ytable-container",
463
463
  ref_key: "tableContainer",
464
- ref: k
464
+ ref: b
465
465
  }, [
466
466
  ce(ke, { name: "bulk-slide" }, {
467
467
  default: ve(() => [
@@ -579,7 +579,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
579
579
  "onUpdate:pageSize": M[1] || (M[1] = (_) => a.value = _),
580
580
  loading: e.loading,
581
581
  "page-size-options": t.pageSizeOptions,
582
- onPageChange: b,
582
+ onPageChange: k,
583
583
  onPageSizeChange: i
584
584
  }, null, 8, ["current-page", "page-size", "loading", "page-size-options"])) : A("", !0)
585
585
  ])
@@ -605,7 +605,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
605
605
  },
606
606
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
607
607
  setup(t, { emit: w }) {
608
- const e = t, l = w, v = V(!1), a = V(-1), $ = V(), B = V(), k = V(), I = V(), p = V(!1), g = V(), d = V(""), L = W(() => e.options.find((i) => H(i) === e.modelValue) || null), O = W(() => L.value ? E(L.value) : ""), Q = W(() => {
608
+ const e = t, l = w, v = V(!1), a = V(-1), $ = V(), B = V(), b = V(), I = V(), p = V(!1), g = V(), d = V(""), L = W(() => e.options.find((i) => H(i) === e.modelValue) || null), O = W(() => L.value ? E(L.value) : ""), Q = W(() => {
609
609
  if (!e.filterable) return e.options;
610
610
  const i = d.value.trim().toLowerCase();
611
611
  return i ? e.options.filter((m) => {
@@ -616,7 +616,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
616
616
  var N;
617
617
  const i = { position: "fixed", zIndex: "4000" }, m = B.value;
618
618
  if (!m) return i;
619
- const T = m.getBoundingClientRect(), j = ((N = k.value) == null ? void 0 : N.getBoundingClientRect().width) || T.width;
619
+ const T = m.getBoundingClientRect(), j = ((N = b.value) == null ? void 0 : N.getBoundingClientRect().width) || T.width;
620
620
  return i.left = `${T.left}px`, i.width = `${j}px`, p.value ? (i.bottom = `${window.innerHeight - T.top + 4}px`, i.top = "auto") : i.top = `${T.bottom + 4}px`, i;
621
621
  });
622
622
  function C() {
@@ -693,23 +693,23 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
693
693
  }
694
694
  function x(i) {
695
695
  const m = i.target;
696
- (!k.value || !k.value.contains(m)) && J();
696
+ (!b.value || !b.value.contains(m)) && J();
697
697
  }
698
698
  le(() => e.modelValue, () => {
699
699
  a.value = -1;
700
700
  });
701
- function b() {
701
+ function k() {
702
702
  v.value && C();
703
703
  }
704
704
  return _e(() => {
705
- document.addEventListener("click", x), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
705
+ document.addEventListener("click", x), window.addEventListener("resize", k), window.addEventListener("scroll", k, !0);
706
706
  }), Ee(() => {
707
- document.removeEventListener("click", x), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
707
+ document.removeEventListener("click", x), window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
708
708
  }), (i, m) => (s(), u("div", {
709
709
  class: z(["yselect", { "yselect--disabled": t.disabled, [`yselect--${t.size}`]: !0 }]),
710
710
  style: ye({ width: t.width }),
711
711
  ref_key: "selectContainer",
712
- ref: k
712
+ ref: b
713
713
  }, [
714
714
  n("div", {
715
715
  ref_key: "triggerElement",
@@ -890,7 +890,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
890
890
  function B(p) {
891
891
  e.loading || p >= 1 && p !== e.currentPage && ($.value = p);
892
892
  }
893
- function k(p) {
893
+ function b(p) {
894
894
  e.loading || (v.value = p, l("update:pageSize", p), l("page-size-change", p), $.value = 1);
895
895
  }
896
896
  function I(p) {
@@ -935,7 +935,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
935
935
  width: "105px",
936
936
  clearable: !1,
937
937
  disabled: t.loading,
938
- onChange: k
938
+ onChange: b
939
939
  }, null, 8, ["modelValue", "options", "disabled"])
940
940
  ])
941
941
  ])
@@ -1119,13 +1119,13 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1119
1119
  return g.width = typeof e.width == "number" ? `${e.width}px` : String(e.width), g.margin = "0 auto", g.top = e.top, g;
1120
1120
  });
1121
1121
  function B() {
1122
- e.maskClosable && k();
1122
+ e.maskClosable && b();
1123
1123
  }
1124
- function k() {
1124
+ function b() {
1125
1125
  v.value && (v.value = !1, l("close"));
1126
1126
  }
1127
1127
  function I() {
1128
- e.closable && k();
1128
+ e.closable && b();
1129
1129
  }
1130
1130
  function p(g) {
1131
1131
  g.key === "Escape" && I();
@@ -1170,7 +1170,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1170
1170
  type: "button",
1171
1171
  class: "y-dialog-close",
1172
1172
  "aria-label": "Close",
1173
- onClick: k
1173
+ onClick: b
1174
1174
  }, " ✕ ")) : A("", !0)
1175
1175
  ])) : A("", !0),
1176
1176
  n("div", cn, [
@@ -1210,10 +1210,10 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1210
1210
  },
1211
1211
  emits: ["update:modelValue", "show", "hide", "before-show", "before-hide"],
1212
1212
  setup(t, { expose: w, emit: e }) {
1213
- const l = t, v = e, a = V(), $ = V(), B = V(), k = V(!1), I = V(), p = V(), g = V({});
1213
+ const l = t, v = e, a = V(), $ = V(), B = V(), b = V(!1), I = V(), p = V(), g = V({});
1214
1214
  let d = null, L = null;
1215
1215
  const O = W(() => {
1216
- if (!k.value || !I.value) return {};
1216
+ if (!b.value || !I.value) return {};
1217
1217
  const r = {};
1218
1218
  l.width !== "auto" && (r.width = typeof l.width == "number" ? `${l.width}px` : l.width), l.maxWidth && (r.maxWidth = typeof l.maxWidth == "number" ? `${l.maxWidth}px` : l.maxWidth);
1219
1219
  const { top: f, left: h } = Y();
@@ -1228,17 +1228,17 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1228
1228
  function Y() {
1229
1229
  var N, ee;
1230
1230
  if (!I.value) return { top: 0, left: 0 };
1231
- const { width: r, height: f, top: h, left: y } = I.value, x = ((N = B.value) == null ? void 0 : N.offsetWidth) || 200, b = ((ee = B.value) == null ? void 0 : ee.offsetHeight) || 100;
1231
+ const { width: r, height: f, top: h, left: y } = I.value, x = ((N = B.value) == null ? void 0 : N.offsetWidth) || 200, k = ((ee = B.value) == null ? void 0 : ee.offsetHeight) || 100;
1232
1232
  let i = 0, m = 0;
1233
1233
  switch (l.placement) {
1234
1234
  case "top":
1235
- i = h - b - l.offset, m = y + (r - x) / 2;
1235
+ i = h - k - l.offset, m = y + (r - x) / 2;
1236
1236
  break;
1237
1237
  case "top-start":
1238
- i = h - b - l.offset, m = y;
1238
+ i = h - k - l.offset, m = y;
1239
1239
  break;
1240
1240
  case "top-end":
1241
- i = h - b - l.offset, m = y + r - x;
1241
+ i = h - k - l.offset, m = y + r - x;
1242
1242
  break;
1243
1243
  case "bottom":
1244
1244
  i = h + f + l.offset, m = y + (r - x) / 2;
@@ -1250,46 +1250,46 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1250
1250
  i = h + f + l.offset, m = y + r - x;
1251
1251
  break;
1252
1252
  case "left":
1253
- i = h + (f - b) / 2, m = y - x - l.offset;
1253
+ i = h + (f - k) / 2, m = y - x - l.offset;
1254
1254
  break;
1255
1255
  case "left-start":
1256
1256
  i = h, m = y - x - l.offset;
1257
1257
  break;
1258
1258
  case "left-end":
1259
- i = h + f - b, m = y - x - l.offset;
1259
+ i = h + f - k, m = y - x - l.offset;
1260
1260
  break;
1261
1261
  case "right":
1262
- i = h + (f - b) / 2, m = y + r + l.offset;
1262
+ i = h + (f - k) / 2, m = y + r + l.offset;
1263
1263
  break;
1264
1264
  case "right-start":
1265
1265
  i = h, m = y + r + l.offset;
1266
1266
  break;
1267
1267
  case "right-end":
1268
- i = h + f - b, m = y + r + l.offset;
1268
+ i = h + f - k, m = y + r + l.offset;
1269
1269
  break;
1270
1270
  }
1271
1271
  const T = window.innerWidth, j = window.innerHeight;
1272
- return m < 8 && (m = 8), m + x > T - 8 && (m = T - x - 8), i < 8 && (i = 8), i + b > j - 8 && (i = j - b - 8), { top: i, left: m };
1272
+ return m < 8 && (m = 8), m + x > T - 8 && (m = T - x - 8), i < 8 && (i = 8), i + k > j - 8 && (i = j - k - 8), { top: i, left: m };
1273
1273
  }
1274
1274
  function C() {
1275
- l.disabled || k.value || (q(), l.openDelay > 0 ? d = setTimeout(() => {
1275
+ l.disabled || b.value || (q(), l.openDelay > 0 ? d = setTimeout(() => {
1276
1276
  H();
1277
1277
  }, l.openDelay) : H());
1278
1278
  }
1279
1279
  function H() {
1280
- v("before-show"), k.value = !0, v("update:modelValue", !0), v("show"), de(() => {
1280
+ v("before-show"), b.value = !0, v("update:modelValue", !0), v("show"), de(() => {
1281
1281
  de(() => {
1282
1282
  te();
1283
1283
  });
1284
1284
  });
1285
1285
  }
1286
1286
  function E() {
1287
- k.value && (q(), l.closeDelay > 0 ? L = setTimeout(() => {
1287
+ b.value && (q(), l.closeDelay > 0 ? L = setTimeout(() => {
1288
1288
  K();
1289
1289
  }, l.closeDelay) : K());
1290
1290
  }
1291
1291
  function K() {
1292
- v("before-hide"), k.value = !1, v("update:modelValue", !1), v("hide");
1292
+ v("before-hide"), b.value = !1, v("update:modelValue", !1), v("hide");
1293
1293
  }
1294
1294
  function q() {
1295
1295
  d && (clearTimeout(d), d = null), L && (clearTimeout(L), L = null);
@@ -1308,30 +1308,30 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1308
1308
  const h = {};
1309
1309
  if (l.placement.startsWith("top")) {
1310
1310
  h.bottom = "-6px";
1311
- const y = r.left + r.width / 2, x = f.left, b = y - x;
1312
- h.left = `${Math.max(12, Math.min(b, f.width - 12))}px`;
1311
+ const y = r.left + r.width / 2, x = f.left, k = y - x;
1312
+ h.left = `${Math.max(12, Math.min(k, f.width - 12))}px`;
1313
1313
  } else if (l.placement.startsWith("bottom")) {
1314
1314
  h.top = "-6px";
1315
- const y = r.left + r.width / 2, x = f.left, b = y - x;
1316
- h.left = `${Math.max(12, Math.min(b, f.width - 12))}px`;
1315
+ const y = r.left + r.width / 2, x = f.left, k = y - x;
1316
+ h.left = `${Math.max(12, Math.min(k, f.width - 12))}px`;
1317
1317
  } else if (l.placement.startsWith("left")) {
1318
1318
  h.right = "-6px";
1319
- const y = r.top + r.height / 2, x = f.top, b = y - x;
1320
- h.top = `${Math.max(12, Math.min(b, f.height - 12))}px`;
1319
+ const y = r.top + r.height / 2, x = f.top, k = y - x;
1320
+ h.top = `${Math.max(12, Math.min(k, f.height - 12))}px`;
1321
1321
  } else if (l.placement.startsWith("right")) {
1322
1322
  h.left = "-6px";
1323
- const y = r.top + r.height / 2, x = f.top, b = y - x;
1324
- h.top = `${Math.max(12, Math.min(b, f.height - 12))}px`;
1323
+ const y = r.top + r.height / 2, x = f.top, k = y - x;
1324
+ h.top = `${Math.max(12, Math.min(k, f.height - 12))}px`;
1325
1325
  }
1326
1326
  g.value = h;
1327
1327
  }
1328
1328
  function te() {
1329
- $.value && (I.value = $.value.getBoundingClientRect(), B.value && (p.value = B.value.getBoundingClientRect(), G(), k.value && requestAnimationFrame(() => {
1329
+ $.value && (I.value = $.value.getBoundingClientRect(), B.value && (p.value = B.value.getBoundingClientRect(), G(), b.value && requestAnimationFrame(() => {
1330
1330
  B.value && (p.value = B.value.getBoundingClientRect(), G());
1331
1331
  })));
1332
1332
  }
1333
1333
  function se() {
1334
- l.disabled || l.trigger === "click" && (k.value ? E() : C());
1334
+ l.disabled || l.trigger === "click" && (b.value ? E() : C());
1335
1335
  }
1336
1336
  function J() {
1337
1337
  l.disabled || l.trigger !== "hover" || (q(), C());
@@ -1340,13 +1340,13 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1340
1340
  l.disabled || l.trigger !== "hover" || E();
1341
1341
  }
1342
1342
  function ge(r) {
1343
- if (!l.closeOnClickOutside || !k.value) return;
1343
+ if (!l.closeOnClickOutside || !b.value) return;
1344
1344
  const f = r.target;
1345
1345
  a.value && !a.value.contains(f) && B.value && !B.value.contains(f) && E();
1346
1346
  }
1347
1347
  return le(() => l.modelValue, (r) => {
1348
- r !== k.value && (r ? C() : E());
1349
- }), le(k, (r) => {
1348
+ r !== b.value && (r ? C() : E());
1349
+ }), le(b, (r) => {
1350
1350
  r ? (document.addEventListener("click", ge), window.addEventListener("resize", te), window.addEventListener("scroll", te, !0)) : (document.removeEventListener("click", ge), window.removeEventListener("resize", te), window.removeEventListener("scroll", te, !0));
1351
1351
  }), _e(() => {
1352
1352
  l.modelValue && C();
@@ -1373,7 +1373,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1373
1373
  (s(), Le(Re, { to: "body" }, [
1374
1374
  ce(ke, { name: "ypopover-fade" }, {
1375
1375
  default: ve(() => [
1376
- k.value ? (s(), u("div", {
1376
+ b.value ? (s(), u("div", {
1377
1377
  key: 0,
1378
1378
  ref_key: "contentRef",
1379
1379
  ref: B,
@@ -1463,7 +1463,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1463
1463
  },
1464
1464
  emits: ["update:modelValue", "change"],
1465
1465
  setup(t, { emit: w }) {
1466
- const e = t, l = w, v = V(!1), a = V(-1), $ = V(-1), B = V(null), k = V(), I = V(), p = V({
1466
+ const e = t, l = w, v = V(!1), a = V(-1), $ = V(-1), B = V(null), b = V(), I = V(), p = V({
1467
1467
  top: !0,
1468
1468
  left: !0
1469
1469
  }), g = V({
@@ -1589,8 +1589,8 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1589
1589
  const c = G(o);
1590
1590
  l("update:modelValue", c), l("change", c);
1591
1591
  }, f = () => {
1592
- if (!k.value || !I.value) return;
1593
- const o = k.value.getBoundingClientRect(), c = I.value.getBoundingClientRect(), S = window.innerWidth, oe = window.innerHeight - o.bottom, ne = o.top, ie = c.height || 400;
1592
+ if (!b.value || !I.value) return;
1593
+ const o = b.value.getBoundingClientRect(), c = I.value.getBoundingClientRect(), S = window.innerWidth, oe = window.innerHeight - o.bottom, ne = o.top, ie = c.height || 400;
1594
1594
  oe < ie && ne > ie ? p.value.top = !1 : p.value.top = !0;
1595
1595
  const xe = S - o.left, Pe = c.width || 640;
1596
1596
  xe < Pe ? p.value.left = !1 : p.value.left = !0;
@@ -1608,15 +1608,15 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1608
1608
  });
1609
1609
  }
1610
1610
  }, y = (o) => {
1611
- const c = o.target, S = k.value, F = I.value;
1611
+ const c = o.target, S = b.value, F = I.value;
1612
1612
  S && F && !S.contains(c) && !F.contains(c) && (v.value = !1, a.value = -1);
1613
1613
  }, x = (o) => {
1614
1614
  o.key === "Enter" || o.key === " " ? (o.preventDefault(), h()) : o.key === "ArrowDown" && (o.preventDefault(), v.value = !0, de(() => {
1615
1615
  f(), j();
1616
1616
  }));
1617
- }, b = (o) => {
1617
+ }, k = (o) => {
1618
1618
  var c;
1619
- o.key === "Escape" && (v.value = !1, a.value = -1, (c = k.value) == null || c.focus());
1619
+ o.key === "Escape" && (v.value = !1, a.value = -1, (c = b.value) == null || c.focus());
1620
1620
  }, i = (o, c) => {
1621
1621
  o.key === "ArrowDown" ? (o.preventDefault(), a.value = Math.min(c + 1, e.shortcuts.length - 1), N(a.value)) : o.key === "ArrowUp" ? (o.preventDefault(), a.value = Math.max(c - 1, 0), N(a.value)) : (o.key === "Enter" || o.key === " ") && (o.preventDefault(), ee(e.shortcuts[c]));
1622
1622
  }, m = (o) => {
@@ -1740,7 +1740,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1740
1740
  n("div", gn, [
1741
1741
  n("div", {
1742
1742
  ref_key: "trigger",
1743
- ref: k,
1743
+ ref: b,
1744
1744
  onClick: h,
1745
1745
  onKeydown: x,
1746
1746
  class: z(["nh-time-trigger", { "is-focus": v.value, "has-value": R.value }]),
@@ -1804,7 +1804,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
1804
1804
  ref_key: "dropdown",
1805
1805
  ref: I,
1806
1806
  class: z(M.value),
1807
- onKeydown: b
1807
+ onKeydown: k
1808
1808
  }, [
1809
1809
  n("div", bn, [
1810
1810
  c[7] || (c[7] = n("div", { class: "nh-time-shortcuts-title" }, "快捷选项", -1)),
@@ -2022,18 +2022,18 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2022
2022
  emits: ["update:modelValue", "change", "focus", "blur"],
2023
2023
  setup(t, { emit: w }) {
2024
2024
  const e = t, l = w, v = V(), a = W(() => e.modelValue === e.trueValue), $ = W(() => {
2025
- const k = {};
2026
- return k.background = a.value ? e.activeColor : e.inactiveColor, k;
2025
+ const b = {};
2026
+ return b.background = a.value ? e.activeColor : e.inactiveColor, b;
2027
2027
  });
2028
2028
  function B() {
2029
2029
  if (e.disabled || e.loading) return;
2030
- const k = a.value ? e.falseValue : e.trueValue;
2031
- l("update:modelValue", k), l("change", k);
2030
+ const b = a.value ? e.falseValue : e.trueValue;
2031
+ l("update:modelValue", b), l("change", b);
2032
2032
  }
2033
2033
  return _e(() => {
2034
- const k = v.value;
2035
- k && (k.addEventListener("focus", (I) => l("focus", I)), k.addEventListener("blur", (I) => l("blur", I)));
2036
- }), (k, I) => (s(), u("button", {
2034
+ const b = v.value;
2035
+ b && (b.addEventListener("focus", (I) => l("focus", I)), b.addEventListener("blur", (I) => l("blur", I)));
2036
+ }), (b, I) => (s(), u("button", {
2037
2037
  ref_key: "rootEl",
2038
2038
  ref: v,
2039
2039
  class: z(["yswitch", [
@@ -2077,7 +2077,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2077
2077
  },
2078
2078
  emits: ["load", "error", "preview"],
2079
2079
  setup(t, { expose: w, emit: e }) {
2080
- const l = t, v = e, a = V(), $ = V(), B = V(), k = V(!1), I = V(!1), p = V(!1), g = V(!1), d = V(!1), L = V("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPCEtLSDog4zmma8gLS0+CiAgPHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNGM0Y0RjYiLz4KICAKICA8IS0tIOWbvueJh+WbvuaghyAtLT4KICA8cmVjdCB4PSI1MCIgeT0iNDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iODAiIHJ4PSI0IiBmaWxsPSIjRDFENURCIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIvPgogIAogIDwhLS0g5Zu+54mH5YaF6YOo6KOF6aWwIC0tPgogIDxjaXJjbGUgY3g9IjgwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiM5Q0EzQUYiLz4KICA8cGF0aCBkPSJNNjAgMTAwIEw5MCA4NSBMMTIwIDk1IEwxNDAgODAiIHN0cm9rZT0iIzlDQTNBRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICAKICA8IS0tIOaWh+WtlyAtLT4KICA8dGV4dCB4PSIxMDAiIHk9IjE2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzZCNzI4MCIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIj4KICAgIEltYWdlIG5vdCBhdmFpbGFibGUKICA8L3RleHQ+Cjwvc3ZnPiA="), O = V(""), Q = V(1), Y = V(!1), C = V({
2080
+ const l = t, v = e, a = V(), $ = V(), B = V(), b = V(!1), I = V(!1), p = V(!1), g = V(!1), d = V(!1), L = V("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPCEtLSDog4zmma8gLS0+CiAgPHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNGM0Y0RjYiLz4KICAKICA8IS0tIOWbvueJh+WbvuaghyAtLT4KICA8cmVjdCB4PSI1MCIgeT0iNDAiIHdpZHRoPSIxMDAiIGhlaWdodD0iODAiIHJ4PSI0IiBmaWxsPSIjRDFENURCIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIvPgogIAogIDwhLS0g5Zu+54mH5YaF6YOo6KOF6aWwIC0tPgogIDxjaXJjbGUgY3g9IjgwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiM5Q0EzQUYiLz4KICA8cGF0aCBkPSJNNjAgMTAwIEw5MCA4NSBMMTIwIDk1IEwxNDAgODAiIHN0cm9rZT0iIzlDQTNBRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICAKICA8IS0tIOaWh+WtlyAtLT4KICA8dGV4dCB4PSIxMDAiIHk9IjE2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzZCNzI4MCIgZm9udC1mYW1pbHk9IkFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIj4KICAgIEltYWdlIG5vdCBhdmFpbGFibGUKICA8L3RleHQ+Cjwvc3ZnPiA="), O = V(""), Q = V(1), Y = V(!1), C = V({
2081
2081
  overflow: "",
2082
2082
  paddingRight: ""
2083
2083
  }), H = W(() => [
@@ -2133,11 +2133,11 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2133
2133
  }
2134
2134
  ), f.observe(a.value));
2135
2135
  }, y = (N) => {
2136
- k.value = !0, I.value = !1, p.value = !1, v("load", N);
2136
+ b.value = !0, I.value = !1, p.value = !1, v("load", N);
2137
2137
  }, x = (N) => {
2138
- p.value = !0, I.value = !1, k.value = !1, v("error", N);
2139
- }, b = () => {
2140
- p.value = !1, I.value = !0, k.value = !1, de(() => {
2138
+ p.value = !0, I.value = !1, b.value = !1, v("error", N);
2139
+ }, k = () => {
2140
+ p.value = !1, I.value = !0, b.value = !1, de(() => {
2141
2141
  $.value && ($.value.src = l.src);
2142
2142
  });
2143
2143
  }, i = () => {
@@ -2165,18 +2165,18 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2165
2165
  }), Ee(() => {
2166
2166
  f && f.disconnect(), d.value && r();
2167
2167
  }), le(() => L.value, () => {
2168
- l.src && g.value && (I.value = !0, p.value = !1, k.value = !1);
2168
+ l.src && g.value && (I.value = !0, p.value = !1, b.value = !1);
2169
2169
  }), le(() => l.src, (N) => {
2170
2170
  L.value = N || "";
2171
2171
  }), w({
2172
- retryLoad: b,
2172
+ retryLoad: k,
2173
2173
  closePreview: m
2174
2174
  }), (N, ee) => (s(), u("div", {
2175
2175
  ref_key: "containerRef",
2176
2176
  ref: a,
2177
2177
  class: z(["relative inline-block", H.value])
2178
2178
  }, [
2179
- !k.value && !p.value && !g.value ? (s(), u("div", {
2179
+ !b.value && !p.value && !g.value ? (s(), u("div", {
2180
2180
  key: 0,
2181
2181
  class: z(["bg-gray-200 animate-pulse rounded", E.value])
2182
2182
  }, [...ee[1] || (ee[1] = [
@@ -2207,7 +2207,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2207
2207
  p.value ? (s(), u("div", {
2208
2208
  key: 2,
2209
2209
  class: z(["bg-gray-100 rounded flex items-center justify-center", q.value]),
2210
- onClick: b
2210
+ onClick: k
2211
2211
  }, [
2212
2212
  n("img", {
2213
2213
  src: "https://img.nihaojewelry.com/media/2025/6/27/1938511770352222208.png",
@@ -2226,7 +2226,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2226
2226
  onClick: i,
2227
2227
  style: ye(G.value)
2228
2228
  }, null, 46, tl), [
2229
- [He, k.value && !p.value]
2229
+ [He, b.value && !p.value]
2230
2230
  ]),
2231
2231
  Y.value ? (s(), Le(Re, {
2232
2232
  key: 3,
@@ -2274,13 +2274,13 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2274
2274
  let v = null;
2275
2275
  const a = W(() => `y-dropdown__menu--${w.placement}`), $ = () => {
2276
2276
  console.log("显示下拉菜单", e.value), !w.disabled && (v && (clearTimeout(v), v = null), e.value = !0, console.log("设置 visible 为 true", e.value), de(() => {
2277
- k();
2277
+ b();
2278
2278
  }));
2279
2279
  }, B = () => {
2280
2280
  console.log("隐藏下拉菜单"), v = setTimeout(() => {
2281
2281
  e.value = !1, console.log("设置 visible 为 false", e.value);
2282
2282
  }, 150);
2283
- }, k = () => {
2283
+ }, b = () => {
2284
2284
  if (!l.value) return;
2285
2285
  const g = l.value.querySelector(".y-dropdown__trigger"), d = l.value.querySelector(".y-dropdown__menu");
2286
2286
  if (!g || !d) return;
@@ -2314,7 +2314,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2314
2314
  }, I = (g) => {
2315
2315
  w.trigger === "click" && l.value && !l.value.contains(g.target) && (e.value = !1);
2316
2316
  }, p = () => {
2317
- e.value && k();
2317
+ e.value && b();
2318
2318
  };
2319
2319
  return _e(() => {
2320
2320
  w.trigger === "click" && document.addEventListener("click", I), window.addEventListener("resize", p), window.addEventListener("scroll", p);
@@ -2381,7 +2381,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2381
2381
  const e = t, l = w, v = W({
2382
2382
  get: () => e.modelValue,
2383
2383
  set: (L) => l("update:modelValue", L)
2384
- }), a = V(null), $ = W(() => e.placement === "right" ? "drawer-slide-right" : "drawer-slide-bottom"), B = W(() => e.placement === "right" ? "rounded-left" : "rounded-top"), k = W(() => {
2384
+ }), a = V(null), $ = W(() => e.placement === "right" ? "drawer-slide-right" : "drawer-slide-bottom"), B = W(() => e.placement === "right" ? "rounded-left" : "rounded-top"), b = W(() => {
2385
2385
  const L = {};
2386
2386
  return e.placement === "right" ? (L.width = typeof e.width == "number" ? `${e.width}px` : String(e.width), L.height = "100%", L.right = "0", L.top = "0") : (L.height = typeof e.height == "number" ? `${e.height}px` : String(e.height), L.width = "100%", L.bottom = "0", L.left = "0"), L;
2387
2387
  });
@@ -2427,7 +2427,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2427
2427
  `is-${t.placement}`,
2428
2428
  B.value
2429
2429
  ]]),
2430
- style: ye(k.value),
2430
+ style: ye(b.value),
2431
2431
  onKeydown: be(Z(g, ["prevent", "stop"]), ["esc"]),
2432
2432
  tabindex: "-1"
2433
2433
  }, [
@@ -2603,7 +2603,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2603
2603
  });
2604
2604
  nt("treeStore", a);
2605
2605
  const $ = lt(), B = W(() => e.restrictAutoExpandFromLevel && e.restrictAutoExpandFromLevel > 0 ? e.restrictAutoExpandFromLevel : void 0);
2606
- function k(r) {
2606
+ function b(r) {
2607
2607
  return r[e.nodeKey] || r.id || Math.random();
2608
2608
  }
2609
2609
  function I(r) {
@@ -2616,8 +2616,8 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2616
2616
  }
2617
2617
  function g(r, f) {
2618
2618
  var i;
2619
- const h = e.deptIconUrl || ao, y = e.personIconUrl || io, x = e.buttonIconUrl || "", b = e.childStyleIconUrl || "";
2620
- return f && b && Q(r, f) ? b : (i = r == null ? void 0 : r.data) != null && i.isButton && x ? x : p(r) ? y : h;
2619
+ const h = e.deptIconUrl || ao, y = e.personIconUrl || io, x = e.buttonIconUrl || "", k = e.childStyleIconUrl || "";
2620
+ return f && k && Q(r, f) ? k : (i = r == null ? void 0 : r.data) != null && i.isButton && x ? x : p(r) ? y : h;
2621
2621
  }
2622
2622
  function d(r) {
2623
2623
  var h;
@@ -2633,9 +2633,9 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2633
2633
  return h;
2634
2634
  const y = L(r);
2635
2635
  for (const x of y) {
2636
- const b = O(x, f, h + 1);
2637
- if (b > 0)
2638
- return b;
2636
+ const k = O(x, f, h + 1);
2637
+ if (k > 0)
2638
+ return k;
2639
2639
  }
2640
2640
  return 0;
2641
2641
  }
@@ -2643,25 +2643,25 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2643
2643
  return !e.childStyleLevel || e.childStyleLevel < 1 ? !1 : O(f, r) === e.childStyleLevel;
2644
2644
  }
2645
2645
  function Y(r) {
2646
- const f = k(r);
2646
+ const f = b(r);
2647
2647
  return a.value.expandedKeys.has(f);
2648
2648
  }
2649
2649
  function C(r) {
2650
- const f = k(r);
2650
+ const f = b(r);
2651
2651
  if (a.value.checkedKeys.has(f)) {
2652
2652
  if (d(r)) {
2653
- const y = L(r), x = y.filter((i) => C(i)), b = y.filter(
2653
+ const y = L(r), x = y.filter((i) => C(i)), k = y.filter(
2654
2654
  (i) => H(i)
2655
2655
  );
2656
- return x.length === y.length && b.length === 0;
2656
+ return x.length === y.length && k.length === 0;
2657
2657
  }
2658
2658
  return !0;
2659
2659
  }
2660
2660
  if (d(r)) {
2661
2661
  const y = L(r);
2662
2662
  return y.some(
2663
- (b) => H(b)
2664
- ) ? !1 : y.length > 0 && y.every((b) => C(b));
2663
+ (k) => H(k)
2664
+ ) ? !1 : y.length > 0 && y.every((k) => C(k));
2665
2665
  }
2666
2666
  return !1;
2667
2667
  }
@@ -2673,20 +2673,20 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2673
2673
  return h.length === f.length ? !1 : h.length > 0 || y.length > 0;
2674
2674
  }
2675
2675
  function E(r) {
2676
- const f = k(r);
2676
+ const f = b(r);
2677
2677
  return a.value.currentKey === f;
2678
2678
  }
2679
2679
  function K(r) {
2680
2680
  if (e.disabled) return;
2681
- const f = k(r), y = !a.value.checkedKeys.has(f), x = new Set(a.value.expandedKeys);
2681
+ const f = b(r), y = !a.value.checkedKeys.has(f), x = new Set(a.value.expandedKeys);
2682
2682
  y ? a.value.checkedKeys.add(f) : a.value.checkedKeys.delete(f);
2683
- function b(i, m) {
2683
+ function k(i, m) {
2684
2684
  i.forEach((T) => {
2685
- const j = k(T);
2686
- m ? a.value.checkedKeys.add(j) : a.value.checkedKeys.delete(j), d(T) && b(L(T), m);
2685
+ const j = b(T);
2686
+ m ? a.value.checkedKeys.add(j) : a.value.checkedKeys.delete(j), d(T) && k(L(T), m);
2687
2687
  });
2688
2688
  }
2689
- b(L(r), y), y && q(), te(), a.value.expandedKeys = x, l("check-change", r, y, !1), l("check", r, y, !1), l("checked-keys-change", Array.from(a.value.checkedKeys));
2689
+ k(L(r), y), y && q(), te(), a.value.expandedKeys = x, l("check-change", r, y, !1), l("check", r, y, !1), l("checked-keys-change", Array.from(a.value.checkedKeys));
2690
2690
  }
2691
2691
  function q(r) {
2692
2692
  B.value && console.log(
@@ -2694,7 +2694,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2694
2694
  );
2695
2695
  }
2696
2696
  function G(r) {
2697
- const f = k(r);
2697
+ const f = b(r);
2698
2698
  a.value.expandedKeys.has(f) ? (a.value.expandedKeys.delete(f), l("node-collapse", r, r, null)) : (a.value.expandedKeys.add(f), l("node-expand", r, r, null));
2699
2699
  }
2700
2700
  function te() {
@@ -2707,10 +2707,10 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2707
2707
  f(v.value);
2708
2708
  function h(y) {
2709
2709
  if (d(y)) {
2710
- const x = L(y), b = k(y), i = x.filter((T) => C(T)), m = x.filter(
2710
+ const x = L(y), k = b(y), i = x.filter((T) => C(T)), m = x.filter(
2711
2711
  (T) => H(T)
2712
2712
  );
2713
- i.length === x.length && m.length === 0 || i.length > 0 || m.length > 0 ? a.value.checkedKeys.add(b) : a.value.checkedKeys.delete(b);
2713
+ i.length === x.length && m.length === 0 || i.length > 0 || m.length > 0 ? a.value.checkedKeys.add(k) : a.value.checkedKeys.delete(k);
2714
2714
  }
2715
2715
  }
2716
2716
  for (let y = r.length - 1; y >= 0; y--)
@@ -2723,11 +2723,15 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2723
2723
  l("child-node-click", r, f, h);
2724
2724
  return;
2725
2725
  }
2726
- if (!!!($.onNodeClick || $["onNode-click"]) && d(r)) {
2726
+ if (!!($.onNodeClick || $["onNode-click"])) {
2727
+ a.value.currentNode = r, a.value.currentKey = b(r), e.showCheckbox && K(r), l("node-click", r, f, h);
2728
+ return;
2729
+ }
2730
+ if (e.expandOnClickNode && d(r)) {
2727
2731
  G(r);
2728
2732
  return;
2729
2733
  }
2730
- a.value.currentNode = r, a.value.currentKey = k(r), e.showCheckbox && K(r), l("node-click", r, f, h);
2734
+ d(r) || (a.value.currentNode = r, a.value.currentKey = b(r), e.showCheckbox && K(r));
2731
2735
  }
2732
2736
  function J(r, f, h, y) {
2733
2737
  e.disabled || l("node-contextmenu", r, f, h, y);
@@ -2740,7 +2744,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2740
2744
  if (f) {
2741
2745
  let h = function(i, m, T = 1) {
2742
2746
  for (const j of m) {
2743
- if (k(j) === i) return T;
2747
+ if (b(j) === i) return T;
2744
2748
  if (d(j)) {
2745
2749
  const N = h(i, L(j), T + 1);
2746
2750
  if (N > 0) return N;
@@ -2749,16 +2753,16 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2749
2753
  return 0;
2750
2754
  }, y = function(i, m, T) {
2751
2755
  i.forEach((j) => {
2752
- m < T && d(j) ? (b.add(k(j)), y(L(j), m + 1, T)) : m < T && d(j);
2756
+ m < T && d(j) ? (k.add(b(j)), y(L(j), m + 1, T)) : m < T && d(j);
2753
2757
  });
2754
2758
  };
2755
2759
  const x = (r || []).filter((i) => {
2756
2760
  const m = h(i, v.value, 1);
2757
2761
  return m > 0 && m < f;
2758
- }), b = new Set(x);
2762
+ }), k = new Set(x);
2759
2763
  y(v.value, 1, f), a.value.expandedKeys.forEach((i) => {
2760
- h(i, v.value, 1) >= f && b.add(i);
2761
- }), a.value.expandedKeys = b;
2764
+ h(i, v.value, 1) >= f && k.add(i);
2765
+ }), a.value.expandedKeys = k;
2762
2766
  } else
2763
2767
  a.value.expandedKeys = new Set(r);
2764
2768
  }
@@ -2768,14 +2772,14 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2768
2772
  function he() {
2769
2773
  if (e.defaultExpandAll) {
2770
2774
  let r = function(y, x = 1) {
2771
- y.forEach((b) => {
2772
- if (!d(b)) return;
2773
- const i = L(b);
2775
+ y.forEach((k) => {
2776
+ if (!d(k)) return;
2777
+ const i = L(k);
2774
2778
  if (h) {
2775
2779
  if (x >= h) return;
2776
- x + 1 === h || f.add(k(b)), r(i, x + 1);
2780
+ x + 1 === h || f.add(b(k)), r(i, x + 1);
2777
2781
  } else
2778
- f.add(k(b)), r(i, x + 1);
2782
+ f.add(b(k)), r(i, x + 1);
2779
2783
  });
2780
2784
  };
2781
2785
  const f = /* @__PURE__ */ new Set(), h = B.value;
@@ -2784,10 +2788,10 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2784
2788
  }
2785
2789
  function ge() {
2786
2790
  if (e.defaultCheckedKeys && e.defaultCheckedKeys.length > 0) {
2787
- let r = function(x, b = []) {
2791
+ let r = function(x, k = []) {
2788
2792
  x.forEach((i) => {
2789
- const m = k(i), T = [...b, m];
2790
- f.has(m) && b.forEach((j) => h.add(j)), d(i) && r(L(i), T);
2793
+ const m = b(i), T = [...k, m];
2794
+ f.has(m) && k.forEach((j) => h.add(j)), d(i) && r(L(i), T);
2791
2795
  });
2792
2796
  };
2793
2797
  const f = new Set(e.defaultCheckedKeys), h = /* @__PURE__ */ new Set();
@@ -2819,7 +2823,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2819
2823
  }, [
2820
2824
  n("div", pl, [
2821
2825
  (s(!0), u(re, null, fe(v.value, (h) => (s(), u("div", {
2822
- key: k(h),
2826
+ key: b(h),
2823
2827
  class: z(["ytree-node", { "ytree-node--current": E(h) }])
2824
2828
  }, [
2825
2829
  n("div", {
@@ -2899,7 +2903,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2899
2903
  default: ve(() => [
2900
2904
  d(h) && Y(h) ? (s(), u("div", Dl, [
2901
2905
  (s(!0), u(re, null, fe(L(h), (y) => (s(), u("div", {
2902
- key: k(y),
2906
+ key: b(y),
2903
2907
  class: z(["ytree-node", { "ytree-node--current": E(y) }])
2904
2908
  }, [
2905
2909
  n("div", {
@@ -2979,7 +2983,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2979
2983
  default: ve(() => [
2980
2984
  d(y) && Y(y) ? (s(), u("div", Tl, [
2981
2985
  (s(!0), u(re, null, fe(L(y), (x) => (s(), u("div", {
2982
- key: k(x),
2986
+ key: b(x),
2983
2987
  class: z(["ytree-node", {
2984
2988
  "ytree-node--current": E(x)
2985
2989
  }])
@@ -2988,9 +2992,9 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2988
2992
  class: z(["ytree-node__content", { "is-child-style": Q(x, h) }]),
2989
2993
  style: { paddingLeft: "38px" },
2990
2994
  "data-level": O(h, x),
2991
- onClick: (b) => se(x, x, null, h),
2992
- onContextmenu: (b) => J(
2993
- b,
2995
+ onClick: (k) => se(x, x, null, h),
2996
+ onContextmenu: (k) => J(
2997
+ k,
2994
2998
  x,
2995
2999
  x,
2996
3000
  null
@@ -2999,7 +3003,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
2999
3003
  d(x) ? (s(), u("span", {
3000
3004
  key: 0,
3001
3005
  class: z(["ytree-node__expand-icon", { "is-expanded": Y(x) }]),
3002
- onClick: Z((b) => G(x), ["stop"])
3006
+ onClick: Z((k) => G(x), ["stop"])
3003
3007
  }, [...f[6] || (f[6] = [
3004
3008
  n("svg", {
3005
3009
  width: "12",
@@ -3022,7 +3026,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3022
3026
  "is-checked": C(x),
3023
3027
  "is-indeterminate": H(x)
3024
3028
  }]),
3025
- onClick: Z((b) => K(x), ["stop"])
3029
+ onClick: Z((k) => K(x), ["stop"])
3026
3030
  }, [
3027
3031
  C(x) ? (s(), u("svg", Vl, [...f[7] || (f[7] = [
3028
3032
  n("path", {
@@ -3065,37 +3069,37 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3065
3069
  ce(ke, { name: "ytree-node" }, {
3066
3070
  default: ve(() => [
3067
3071
  d(x) && Y(x) ? (s(), u("div", Nl, [
3068
- (s(!0), u(re, null, fe(L(x), (b) => (s(), u("div", {
3069
- key: k(b),
3072
+ (s(!0), u(re, null, fe(L(x), (k) => (s(), u("div", {
3073
+ key: b(k),
3070
3074
  class: z(["ytree-node", {
3071
- "ytree-node--current": E(b)
3075
+ "ytree-node--current": E(k)
3072
3076
  }])
3073
3077
  }, [
3074
3078
  n("div", {
3075
- class: z(["ytree-node__content", { "is-child-style": Q(b, h) }]),
3079
+ class: z(["ytree-node__content", { "is-child-style": Q(k, h) }]),
3076
3080
  style: {
3077
3081
  paddingLeft: "54px"
3078
3082
  },
3079
- "data-level": O(h, b),
3083
+ "data-level": O(h, k),
3080
3084
  onClick: (i) => se(
3081
- b,
3082
- b,
3085
+ k,
3086
+ k,
3083
3087
  null,
3084
3088
  h
3085
3089
  ),
3086
3090
  onContextmenu: (i) => J(
3087
3091
  i,
3088
- b,
3089
- b,
3092
+ k,
3093
+ k,
3090
3094
  null
3091
3095
  )
3092
3096
  }, [
3093
- d(b) ? (s(), u("span", {
3097
+ d(k) ? (s(), u("span", {
3094
3098
  key: 0,
3095
3099
  class: z(["ytree-node__expand-icon", {
3096
- "is-expanded": Y(b)
3100
+ "is-expanded": Y(k)
3097
3101
  }]),
3098
- onClick: Z((i) => G(b), ["stop"])
3102
+ onClick: Z((i) => G(k), ["stop"])
3099
3103
  }, [...f[9] || (f[9] = [
3100
3104
  n("svg", {
3101
3105
  width: "12",
@@ -3115,12 +3119,12 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3115
3119
  t.showCheckbox ? (s(), u("span", {
3116
3120
  key: 2,
3117
3121
  class: z(["ytree-node__checkbox", {
3118
- "is-checked": C(b),
3119
- "is-indeterminate": H(b)
3122
+ "is-checked": C(k),
3123
+ "is-indeterminate": H(k)
3120
3124
  }]),
3121
- onClick: Z((i) => K(b), ["stop"])
3125
+ onClick: Z((i) => K(k), ["stop"])
3122
3126
  }, [
3123
- C(b) ? (s(), u("svg", ql, [...f[10] || (f[10] = [
3127
+ C(k) ? (s(), u("svg", ql, [...f[10] || (f[10] = [
3124
3128
  n("path", {
3125
3129
  d: "M2 6L4.5 8.5L10 3",
3126
3130
  stroke: "currentColor",
@@ -3128,7 +3132,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3128
3132
  "stroke-linecap": "round",
3129
3133
  "stroke-linejoin": "round"
3130
3134
  }, null, -1)
3131
- ])])) : H(b) ? (s(), u("svg", Ul, [...f[11] || (f[11] = [
3135
+ ])])) : H(k) ? (s(), u("svg", Ul, [...f[11] || (f[11] = [
3132
3136
  n("path", {
3133
3137
  d: "M2 6L10 6",
3134
3138
  stroke: "currentColor",
@@ -3143,30 +3147,30 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3143
3147
  }, null, 2)) : A("", !0),
3144
3148
  n("img", {
3145
3149
  class: "ytree-node__avatar",
3146
- src: g(b, h),
3147
- alt: p(b) ? "person" : "dept"
3150
+ src: g(k, h),
3151
+ alt: p(k) ? "person" : "dept"
3148
3152
  }, null, 8, Zl),
3149
3153
  n("span", {
3150
3154
  class: z(["ytree-node__label", {
3151
- "is-employee": p(b)
3155
+ "is-employee": p(k)
3152
3156
  }])
3153
- }, X(I(b)), 3),
3157
+ }, X(I(k)), 3),
3154
3158
  n("div", Ql, [
3155
3159
  ue(r.$slots, "node-content", {
3156
- node: b,
3157
- isCurrent: E(b),
3158
- isExpanded: Y(b),
3159
- hasChildren: d(b)
3160
+ node: k,
3161
+ isCurrent: E(k),
3162
+ isExpanded: Y(k),
3163
+ hasChildren: d(k)
3160
3164
  }, void 0, !0)
3161
3165
  ])
3162
3166
  ], 42, Pl),
3163
3167
  ce(ke, { name: "ytree-node" }, {
3164
3168
  default: ve(() => [
3165
- d(b) && Y(b) ? (s(), u("div", Jl, [
3169
+ d(k) && Y(k) ? (s(), u("div", Jl, [
3166
3170
  (s(!0), u(re, null, fe(L(
3167
- b
3171
+ k
3168
3172
  ), (i) => (s(), u("div", {
3169
- key: k(i),
3173
+ key: b(i),
3170
3174
  class: z(["ytree-node", {
3171
3175
  "ytree-node--current": E(i)
3172
3176
  }])
@@ -3288,7 +3292,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3288
3292
  ])
3289
3293
  ], 2));
3290
3294
  }
3291
- }), uo = /* @__PURE__ */ we(ro, [["__scopeId", "data-v-d0bfb3bf"]]), co = { class: "query-encapsulation" }, fo = { class: "query-encapsulation__container" }, vo = { class: "query-encapsulation__content" }, ho = { class: "query-encapsulation__fields" }, po = { class: "query-encapsulation__field-wrapper" }, yo = { class: "query-encapsulation__field-label" }, go = {
3295
+ }), uo = /* @__PURE__ */ we(ro, [["__scopeId", "data-v-ed137ef3"]]), co = { class: "query-encapsulation" }, fo = { class: "query-encapsulation__container" }, vo = { class: "query-encapsulation__content" }, ho = { class: "query-encapsulation__fields" }, po = { class: "query-encapsulation__field-wrapper" }, yo = { class: "query-encapsulation__field-label" }, go = {
3292
3296
  key: 0,
3293
3297
  class: "query-encapsulation__toggle"
3294
3298
  }, mo = { class: "query-encapsulation__actions" }, wo = { class: "query-encapsulation__actions-group" }, bo = /* @__PURE__ */ me({
@@ -3301,7 +3305,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3301
3305
  },
3302
3306
  emits: ["update:modelValue", "search", "reset", "field-change"],
3303
3307
  setup(t, { emit: w }) {
3304
- const e = t, l = w, v = V(!1), a = ot({}), $ = W(() => e.fields.filter((C) => !C.hidden)), B = W(() => v.value ? $.value : $.value.slice(0, e.maxVisibleFields)), k = W(() => $.value.length > e.maxVisibleFields);
3308
+ const e = t, l = w, v = V(!1), a = ot({}), $ = W(() => e.fields.filter((C) => !C.hidden)), B = W(() => v.value ? $.value : $.value.slice(0, e.maxVisibleFields)), b = W(() => $.value.length > e.maxVisibleFields);
3305
3309
  function I(C) {
3306
3310
  switch (C) {
3307
3311
  case "select":
@@ -3402,7 +3406,7 @@ const rt = ["type", "disabled", "aria-busy", "aria-disabled"], ut = { class: "co
3402
3406
  ]),
3403
3407
  _: 1
3404
3408
  }),
3405
- k.value ? (s(), u("div", go, [
3409
+ b.value ? (s(), u("div", go, [
3406
3410
  ce(Ae, {
3407
3411
  variant: "secondary",
3408
3412
  size: "small",
@@ -3596,8 +3600,8 @@ function We(t) {
3596
3600
  return Me.push({ id: w, el: e, vm: l, height: v, leaving: !1 }), Ne(), requestAnimationFrame(() => {
3597
3601
  const $ = e.firstElementChild;
3598
3602
  if (!$) return;
3599
- const B = $.offsetHeight || v || 0, k = Me.find((I) => I.id === w);
3600
- k && (k.height = B, Ne());
3603
+ const B = $.offsetHeight || v || 0, b = Me.find((I) => I.id === w);
3604
+ b && (b.height = B, Ne());
3601
3605
  }), { close: () => qe(w) };
3602
3606
  }
3603
3607
  const Fe = {