abl-ui 0.4.71 → 0.4.73

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/lib/abl-ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as r, createElementBlock as u, normalizeStyle as N, renderSlot as R, createElementVNode as c, normalizeClass as V, createTextVNode as ee, toDisplayString as H, createCommentVNode as M, createStaticVNode as Lt, ref as _, onMounted as Se, unref as oe, Fragment as Y, renderList as ae, createVNode as de, useSlots as Te, provide as we, watch as ne, withDirectives as Z, vShow as te, defineComponent as At, toRefs as De, computed as D, inject as Ve, reactive as Re, createBlock as se, TransitionGroup as nl, withCtx as ie, resolveDynamicComponent as rt, pushScopeId as he, popScopeId as ge, createApp as ol, getCurrentInstance as Ge, onBeforeUnmount as Je, onUpdated as ct, onBeforeMount as zt, Teleport as Ze, Transition as xe, withModifiers as J, watchEffect as ut, nextTick as be, mergeProps as _e, useAttrs as sl, createSlots as il, vModelDynamic as rl, normalizeProps as gt, withKeys as It, vModelText as Rt, toRaw as yt, onUnmounted as cl } from "vue";
1
+ import { openBlock as r, createElementBlock as u, normalizeStyle as N, renderSlot as R, createElementVNode as c, normalizeClass as V, createTextVNode as ee, toDisplayString as H, createCommentVNode as M, createStaticVNode as Lt, computed as T, ref as _, onMounted as Se, unref as oe, Fragment as Y, renderList as ae, createVNode as de, useSlots as Te, provide as we, watch as ne, withDirectives as Z, vShow as te, defineComponent as At, toRefs as De, inject as Ve, reactive as Re, createBlock as se, TransitionGroup as nl, withCtx as ie, resolveDynamicComponent as rt, pushScopeId as he, popScopeId as ge, createApp as ol, getCurrentInstance as Ge, onBeforeUnmount as Je, onUpdated as ct, onBeforeMount as zt, Teleport as Ze, Transition as xe, withModifiers as J, watchEffect as ut, nextTick as be, mergeProps as _e, useAttrs as sl, createSlots as il, vModelDynamic as rl, normalizeProps as gt, withKeys as It, vModelText as Rt, toRaw as yt, onUnmounted as cl } from "vue";
2
2
  const Q = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
4
  for (const [l, n] of a)
@@ -80,9 +80,9 @@ const gl = { class: "abl-table" }, yl = ["id"], bl = { class: "table-thead" }, _
80
80
  }
81
81
  },
82
82
  setup(e, { emit: a }) {
83
- const t = e, l = {
83
+ const t = e, l = T(() => ({
84
84
  maxHeight: t.height ? t.height + "px" : ""
85
- };
85
+ }));
86
86
  function n() {
87
87
  return Date.now().toString(36) + Math.random().toString(36).substring(2);
88
88
  }
@@ -144,7 +144,7 @@ const gl = { class: "abl-table" }, yl = ["id"], bl = { class: "table-thead" }, _
144
144
  ], 4)
145
145
  ], 8, yl),
146
146
  c("div", {
147
- style: l,
147
+ style: N(l.value),
148
148
  class: "table__body",
149
149
  id: "tableBody" + oe(o),
150
150
  onScroll: i
@@ -174,7 +174,7 @@ const gl = { class: "abl-table" }, yl = ["id"], bl = { class: "table-thead" }, _
174
174
  ], 2))), 128))
175
175
  ])) : M("", !0)
176
176
  ])
177
- ], 40, _l),
177
+ ], 44, _l),
178
178
  t.data.length == 0 ? (r(), u("div", {
179
179
  key: 0,
180
180
  class: "no-data-td",
@@ -193,7 +193,7 @@ const gl = { class: "abl-table" }, yl = ["id"], bl = { class: "table-thead" }, _
193
193
  ])
194
194
  ]));
195
195
  }
196
- }, Bl = /* @__PURE__ */ Q(Cl, [["__scopeId", "data-v-7cdb807f"]]);
196
+ }, Bl = /* @__PURE__ */ Q(Cl, [["__scopeId", "data-v-1b22a5be"]]);
197
197
  const Vl = { class: "abl-tabs" }, Ll = {
198
198
  class: "tabs-header-wrap",
199
199
  id: "tabs-header-wrap"
@@ -391,7 +391,7 @@ const Vl = { class: "abl-tabs" }, Ll = {
391
391
  setup(e, { emit: a }) {
392
392
  const t = e, l = a, n = () => {
393
393
  t.disabled || (t.modelValue === t.activeValue ? (l("update:modelValue", t.inactiveValue), l("change", t.inactiveValue)) : t.modelValue === t.inactiveValue ? (l("update:modelValue", t.activeValue), l("change", t.activeValue)) : (l("update:modelValue", !t.modelValue), l("change", !t.modelValue)));
394
- }, { disabled: o, size: s } = De(t), i = D(() => ({
394
+ }, { disabled: o, size: s } = De(t), i = T(() => ({
395
395
  "abl-switch-checked": t.modelValue == t.activeValue,
396
396
  "abl-switch-disabled": o.value,
397
397
  [`abl-switch-${s.value}`]: s.value
@@ -436,13 +436,13 @@ const Pl = {
436
436
  },
437
437
  emits: ["update:modelValue", "change"],
438
438
  setup(e, { emit: a }) {
439
- const t = e, l = a, n = Ve("radioGroupKey", void 0), o = D(() => !!n), s = D(
439
+ const t = e, l = a, n = Ve("radioGroupKey", void 0), o = T(() => !!n), s = T(
440
440
  () => o.value ? n.modelValue : t.modelValue
441
- ), i = D(
441
+ ), i = T(
442
442
  () => t.disabled ? t.disabled : n == null ? void 0 : n.disabled
443
- ), d = D(() => t.size ? t.size : n == null ? void 0 : n.size), p = () => {
443
+ ), d = T(() => t.size ? t.size : n == null ? void 0 : n.size), p = () => {
444
444
  i.value || (o.value ? n.changeEvent(t.value) : (l("update:modelValue", t.value), l("change", t.value)));
445
- }, m = D(() => ({
445
+ }, m = T(() => ({
446
446
  "is-checked": s.value === t.value,
447
447
  "is-disabled": i.value,
448
448
  [`abl-radio-${d.value}`]: d.value
@@ -627,7 +627,7 @@ const Fe = (e) => (he("data-v-278b4efc"), e = e(), ge(), e), Wl = ["onMouseenter
627
627
  },
628
628
  emits: ["click", "close"],
629
629
  setup(e, { expose: a, emit: t }) {
630
- const l = e, n = _(), o = _([]), s = _([]), i = _([]), d = _(null), p = t, m = _(), v = D(() => o.value.every((b) => !b));
630
+ const l = e, n = _(), o = _([]), s = _([]), i = _([]), d = _(null), p = t, m = _(), v = T(() => o.value.every((b) => !b));
631
631
  ne(v, (b, S) => {
632
632
  !S && b && (n.value = nt(() => {
633
633
  i.value = [], o.value = [];
@@ -842,10 +842,10 @@ const ra = (e) => (he("data-v-ecdb2390"), e = e(), ge(), e), ca = { class: "abl-
842
842
  o.modelValue ? s() : i();
843
843
  }), zt(() => {
844
844
  o.modelValue && s();
845
- }), D(() => o.disabled || o.appendTo === "self");
846
- const d = D(() => [
845
+ }), T(() => o.disabled || o.appendTo === "self");
846
+ const d = T(() => [
847
847
  o.direction == "left" ? { top: 0, left: 0, width: o.width, height: "100%", zIndex: o.zIndex + 2 } : o.direction == "top" ? { top: 0, left: 0, width: "100%", height: o.height, zIndex: o.zIndex + 2 } : o.direction == "right" ? { top: 0, right: 0, width: o.width, height: "100%", zIndex: o.zIndex + 2 } : o.direction == "bottom" ? { bottom: 0, left: 0, width: "100%", height: o.height, zIndex: o.zIndex + 2 } : {}
848
- ]), p = D(() => `slide-${o.direction}`), m = () => {
848
+ ]), p = T(() => `slide-${o.direction}`), m = () => {
849
849
  o.maskClosable && v();
850
850
  }, v = () => {
851
851
  typeof o.beforeClose == "function" ? o.beforeClose() : (t("update:modelValue", !1), t("close"));
@@ -958,7 +958,7 @@ const ba = {
958
958
  }
959
959
  },
960
960
  setup(e) {
961
- const a = e, t = D(() => ({
961
+ const a = e, t = T(() => ({
962
962
  [`abl-button-${a.type}`]: a.type,
963
963
  "is-dashed": a.dashed,
964
964
  "is-round": a.round,
@@ -1025,11 +1025,11 @@ const $a = {
1025
1025
  },
1026
1026
  emits: ["update:modelValue", "change"],
1027
1027
  setup(e, { emit: a }) {
1028
- const t = e, l = a, n = Ve("checkboxGroupKey", void 0), o = D(() => !!n), s = D(
1028
+ const t = e, l = a, n = Ve("checkboxGroupKey", void 0), o = T(() => !!n), s = T(
1029
1029
  () => o.value ? d.value.indexOf(t.value) > -1 && !t.indeterminate : d.value && !t.indeterminate || t.checked
1030
- ), i = D(() => t.disabled || (n == null ? void 0 : n.disabled)), d = D(
1030
+ ), i = T(() => t.disabled || (n == null ? void 0 : n.disabled)), d = T(
1031
1031
  () => o.value ? n.modelValue : t.modelValue
1032
- ), p = D(() => ({
1032
+ ), p = T(() => ({
1033
1033
  "is-checked": s.value,
1034
1034
  "is-disabled": i.value,
1035
1035
  "is-indeterminate": t.indeterminate,
@@ -1175,7 +1175,7 @@ const Ca = { class: "abl-dialog__header" }, Ba = { class: "abl-dialog__title" },
1175
1175
  }, m = (f) => {
1176
1176
  var y;
1177
1177
  l.maskClosable && ((y = n.value) != null && y.contains(f.target) || p()), d("onOverlayClick");
1178
- }, v = D(() => ({
1178
+ }, v = T(() => ({
1179
1179
  "is-align-center": l.alignCenter
1180
1180
  }));
1181
1181
  return (f, y) => (r(), se(Ze, { to: "body" }, [
@@ -2176,7 +2176,7 @@ const vn = ["data-side"], Yt = {
2176
2176
  }
2177
2177
  },
2178
2178
  setup(e, { expose: a }) {
2179
- const t = _(!1), l = e, n = _(), o = D(() => {
2179
+ const t = _(!1), l = e, n = _(), o = T(() => {
2180
2180
  let z = l.showArrow ? 10 : 5;
2181
2181
  const X = [un(), dn(), Ha(z)];
2182
2182
  return l.showArrow && X.push(fn({ element: n.value })), X;
@@ -2218,7 +2218,7 @@ const vn = ["data-side"], Yt = {
2218
2218
  }, 0);
2219
2219
  }, b = () => {
2220
2220
  A(), document.removeEventListener("mousedown", b);
2221
- }, S = D(() => s.value.split("-")[0]), W = D(() => ({ left: f.value + "px", top: y.value + "px", zIndex: l.zIndex, width: p.value })), j = D(() => {
2221
+ }, S = T(() => s.value.split("-")[0]), W = T(() => ({ left: f.value + "px", top: y.value + "px", zIndex: l.zIndex, width: p.value })), j = T(() => {
2222
2222
  if (!l.showArrow)
2223
2223
  return {};
2224
2224
  const { arrow: z } = oe(h);
@@ -2395,7 +2395,7 @@ const vn = ["data-side"], Yt = {
2395
2395
  type: String,
2396
2396
  default: ""
2397
2397
  }
2398
- }, s = sl(), i = _(), d = (y, h) => h.reduce((w, k) => (w[k] = y[k], w), {}), p = D(() => ({ ...s, ...d(t, Object.keys(o)) }));
2398
+ }, s = sl(), i = _(), d = (y, h) => h.reduce((w, k) => (w[k] = y[k], w), {}), p = T(() => ({ ...s, ...d(t, Object.keys(o)) }));
2399
2399
  function m() {
2400
2400
  i.value.update();
2401
2401
  }
@@ -2672,7 +2672,7 @@ const zn = { class: "abl-collapse__title" }, In = { key: 0 }, Rn = { class: "ico
2672
2672
  setup(e, { emit: a }) {
2673
2673
  const t = _(), l = e, n = Ve("getChildIndex"), o = n == null ? void 0 : n();
2674
2674
  _(null);
2675
- const s = Ve("CollapseKey", void 0), i = D(() => s.modelValue), d = D(() => s.iconType), p = D(() => Array.isArray(i.value) ? i.value.includes(l.name) : i.value === l.name), m = _(p.value ? "auto" : "0px"), v = () => {
2675
+ const s = Ve("CollapseKey", void 0), i = T(() => s.modelValue), d = T(() => s.iconType), p = T(() => Array.isArray(i.value) ? i.value.includes(l.name) : i.value === l.name), m = _(p.value ? "auto" : "0px"), v = () => {
2676
2676
  if (p.value)
2677
2677
  if (Array.isArray(i.value)) {
2678
2678
  const h = i.value.filter((w) => w !== l.name);
@@ -2782,7 +2782,7 @@ const En = { class: "abl-progress-text" }, On = {
2782
2782
  }
2783
2783
  },
2784
2784
  setup(e) {
2785
- const a = e, t = D(() => typeof a.width == "number" ? a.width + "px" : a.width), l = D(() => typeof a.strokeColor == "string" ? a.strokeColor : `linear-gradient(to ${a.strokeColor.direction || "right"}, ${a.strokeColor["0%"] || a.strokeColor.from}, ${a.strokeColor["100%"] || a.strokeColor.to})`), n = D(() => a.format(`${a.percent > 100 ? 100 : a.percent}`));
2785
+ const a = e, t = T(() => typeof a.width == "number" ? a.width + "px" : a.width), l = T(() => typeof a.strokeColor == "string" ? a.strokeColor : `linear-gradient(to ${a.strokeColor.direction || "right"}, ${a.strokeColor["0%"] || a.strokeColor.from}, ${a.strokeColor["100%"] || a.strokeColor.to})`), n = T(() => a.format(`${a.percent > 100 ? 100 : a.percent}`));
2786
2786
  return (o, s) => (r(), u("div", {
2787
2787
  class: "abl-progress-line",
2788
2788
  style: N(`width: ${t.value};`)
@@ -2992,7 +2992,7 @@ const Kn = /* @__PURE__ */ c("div", {
2992
2992
  },
2993
2993
  emits: ["update:modelValue"],
2994
2994
  setup(e, { emit: a }) {
2995
- const t = Ge(), l = e, n = D(() => l.previewSrcList.length), o = _(Array(n.value).fill(!1)), s = _(l.initialIndex), i = _(1), d = _(0), p = _(0), m = _(0), v = _(0), f = _(0), y = a, h = (F) => {
2995
+ const t = Ge(), l = e, n = T(() => l.previewSrcList.length), o = _(Array(n.value).fill(!1)), s = _(l.initialIndex), i = _(1), d = _(0), p = _(0), m = _(0), v = _(0), f = _(0), y = a, h = (F) => {
2996
2996
  t && (t.appContext.config.globalProperties.$lockCount = F || 0);
2997
2997
  }, w = () => {
2998
2998
  document.body.style.overflow = "hidden", document.body.style.touchAction = "none";
@@ -3043,9 +3043,9 @@ const Kn = /* @__PURE__ */ c("div", {
3043
3043
  const U = F.target, { top: z, left: X, right: E, bottom: P } = U.getBoundingClientRect(), K = document.documentElement.clientWidth, le = document.documentElement.clientHeight;
3044
3044
  d.value = F.clientX, p.value = F.clientY;
3045
3045
  const C = m.value, q = v.value;
3046
- document.onmousemove = (T) => {
3047
- m.value = C + T.clientX - d.value, v.value = q + T.clientY - p.value;
3048
- }, document.onmouseup = (T) => {
3046
+ document.onmousemove = (D) => {
3047
+ m.value = C + D.clientX - d.value, v.value = q + D.clientY - p.value;
3048
+ }, document.onmouseup = (D) => {
3049
3049
  m.value > C + K - E && (m.value = C + K - E), m.value < C - X && (m.value = C - X), v.value > q + le - P && (v.value = q + le - P), v.value < q - z && (v.value = q - z), document.onmousemove = null;
3050
3050
  };
3051
3051
  }, W = (F) => {
@@ -3236,7 +3236,7 @@ const _o = { class: "abl-image-wrap" }, wo = ["src"], xo = ["src"], el = {
3236
3236
  }, i = () => {
3237
3237
  var m;
3238
3238
  ((m = t.previewSrcList) == null ? void 0 : m.length) > 0 && (n.value = !0);
3239
- }, d = D(() => {
3239
+ }, d = T(() => {
3240
3240
  const { previewSrcList: m, initialIndex: v } = t;
3241
3241
  let f = v;
3242
3242
  return v > m.length - 1 && (f = 0), f;
@@ -3352,7 +3352,7 @@ const $o = {
3352
3352
  const a = e, t = (n) => {
3353
3353
  const { rowWidth: o } = a;
3354
3354
  return o === St && n === +a.row - 1 ? So : Array.isArray(o) ? o[n] : o;
3355
- }, l = D(() => Array(+a.row).fill(""));
3355
+ }, l = T(() => Array(+a.row).fill(""));
3356
3356
  return (n, o) => {
3357
3357
  var s;
3358
3358
  return r(), u("div", {
@@ -3765,7 +3765,7 @@ const es = {
3765
3765
  },
3766
3766
  emits: ["update:modelValue", "focus", "blur", "clear"],
3767
3767
  setup(e, { expose: a, emit: t }) {
3768
- const l = e, n = t, o = _(), s = _(l.autofocus), i = _(!0), d = _(l.type), p = _(!1), m = D({
3768
+ const l = e, n = t, o = _(), s = _(l.autofocus), i = _(!0), d = _(l.type), p = _(!1), m = T({
3769
3769
  get: () => l.modelValue,
3770
3770
  set: (g) => {
3771
3771
  n("update:modelValue", g);
@@ -4280,50 +4280,50 @@ const Ps = { class: "abl-select-warpper-content" }, Ts = { class: "abl-select-ha
4280
4280
  },
4281
4281
  emits: ["update:modelValue", "change"],
4282
4282
  setup(e, { emit: a }) {
4283
- const t = Ge(), l = Te(), n = D(() => !!(t != null && t.slots.ablname)), o = D(() => !!(t != null && t.slots.abloption)), s = e;
4283
+ const t = Ge(), l = Te(), n = T(() => !!(t != null && t.slots.ablname)), o = T(() => !!(t != null && t.slots.abloption)), s = e;
4284
4284
  let i = s != null && s.options ? s == null ? void 0 : s.options : [];
4285
4285
  const d = a, p = Re({
4286
4286
  effect: "light",
4287
4287
  pure: !0,
4288
4288
  trigger: "click",
4289
4289
  transitionName: "abl-select-menu"
4290
- }), m = _(""), v = _(), f = _(null), y = _(""), h = _(), w = _(s.modelValue), k = _(!1), $ = D(() => {
4290
+ }), m = _(""), v = _(), f = _(null), y = _(""), h = _(), w = _(s.modelValue), k = _(!1), $ = T(() => {
4291
4291
  var P;
4292
4292
  return { width: (((P = v.value) == null ? void 0 : P.getBoundingClientRect().width) || 0) + "px" };
4293
4293
  }), g = Re({
4294
4294
  list: s == null ? void 0 : s.options
4295
4295
  }), B = _(!1), I = _(
4296
4296
  s.search && y.value === "focus" && B.value
4297
- ), A = D(() => s.disabled), O = _(""), x = _([]), L = () => (l == null ? void 0 : l.default) && (l == null ? void 0 : l.default()) || [], b = () => {
4297
+ ), A = T(() => s.disabled), O = _(""), x = _([]), L = () => (l == null ? void 0 : l.default) && (l == null ? void 0 : l.default()) || [], b = () => {
4298
4298
  var E;
4299
4299
  try {
4300
4300
  l.default && (g.list = [], (E = l.default()) == null || E.map((P) => {
4301
4301
  var K;
4302
4302
  if (P.props) {
4303
- const { value: le, name: C, img: q, iconColor: T } = P.props;
4303
+ const { value: le, name: C, img: q, iconColor: D } = P.props;
4304
4304
  g.list.push({
4305
4305
  value: le,
4306
4306
  name: C,
4307
4307
  img: q,
4308
- iconColor: T
4308
+ iconColor: D
4309
4309
  }), w.value === le && x.value.push({
4310
4310
  value: le,
4311
4311
  name: C,
4312
4312
  img: q,
4313
- iconColor: T
4313
+ iconColor: D
4314
4314
  });
4315
4315
  } else
4316
4316
  ((K = P == null ? void 0 : P.children) == null ? void 0 : K.length) > 0 && P.children.map((le) => {
4317
- const { value: C, name: q, img: T, iconColor: G } = le.props;
4317
+ const { value: C, name: q, img: D, iconColor: G } = le.props;
4318
4318
  g.list.push({
4319
4319
  value: C,
4320
4320
  name: q,
4321
- img: T,
4321
+ img: D,
4322
4322
  iconColor: G
4323
4323
  }), w.value === C && (x.value.splice(0, x.value.length), x.value.push({
4324
4324
  value: C,
4325
4325
  name: q,
4326
- img: T,
4326
+ img: D,
4327
4327
  iconColor: G
4328
4328
  }));
4329
4329
  });
@@ -4576,7 +4576,7 @@ const Ks = {
4576
4576
  }
4577
4577
  },
4578
4578
  setup(e) {
4579
- const a = e, t = _(a.col), l = _(), n = _(), o = _(), s = _(), i = _([]), d = D(() => i.value.length);
4579
+ const a = e, t = _(a.col), l = _(), n = _(), o = _(), s = _(), i = _([]), d = T(() => i.value.length);
4580
4580
  ut(() => {
4581
4581
  l.value && (a.bordered ? n.value = Array.from(l.value.children).filter((f) => f.className === "abl-desc-item-bordered") : n.value = Array.from(l.value.children).filter((f) => f.className === "abl-desc-item"));
4582
4582
  }, { flush: "post" }), ne(n, (f) => {
@@ -4793,7 +4793,7 @@ const Vt = (e) => {
4793
4793
  height: 0
4794
4794
  };
4795
4795
  };
4796
- const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4796
+ const al = (e) => (he("data-v-f4c52821"), e = e(), ge(), e), pi = {
4797
4797
  key: 0,
4798
4798
  class: "abl-range-min"
4799
4799
  }, vi = {
@@ -4865,10 +4865,10 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4865
4865
  let o, s;
4866
4866
  const i = _(), d = _(), p = di();
4867
4867
  _(), _(), _([]);
4868
- const m = D(() => {
4869
- const { marks: C, max: q, min: T } = t;
4870
- return Object.keys(C).map(parseFloat).sort((re, pe) => re - pe).filter((re) => re >= +T && re <= +q);
4871
- }), v = D(() => Number(t.max) - Number(t.min)), f = _([]), y = _(), h = D(() => {
4868
+ const m = T(() => {
4869
+ const { marks: C, max: q, min: D } = t;
4870
+ return Object.keys(C).map(parseFloat).sort((re, pe) => re - pe).filter((re) => re >= +D && re <= +q);
4871
+ }), v = T(() => Number(t.max) - Number(t.min)), f = _([]), y = _(), h = T(() => {
4872
4872
  const C = "abl-range";
4873
4873
  return {
4874
4874
  [C]: !0,
@@ -4876,15 +4876,15 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4876
4876
  [`${C}-vertical`]: t.vertical,
4877
4877
  [`${C}-show-number`]: !t.hiddenRange
4878
4878
  };
4879
- }), w = D(() => {
4879
+ }), w = T(() => {
4880
4880
  const C = "abl-range-container";
4881
4881
  return {
4882
4882
  [C]: !0,
4883
4883
  [`${C}-vertical`]: t.vertical
4884
4884
  };
4885
- }), k = D(() => ({
4885
+ }), k = T(() => ({
4886
4886
  background: t.inactiveColor
4887
- })), $ = D(() => ({
4887
+ })), $ = T(() => ({
4888
4888
  borderColor: t.buttonColor
4889
4889
  })), g = _(!1), B = (C) => !!t.range && Array.isArray(C), I = () => {
4890
4890
  const { modelValue: C, min: q } = t;
@@ -4892,7 +4892,7 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4892
4892
  }, A = () => {
4893
4893
  const { modelValue: C, min: q } = t;
4894
4894
  return B(C) ? `${(C[0] - Number(q)) * 100 / v.value}%` : "0%";
4895
- }, O = D(() => t.vertical ? {
4895
+ }, O = T(() => t.vertical ? {
4896
4896
  height: I(),
4897
4897
  top: A(),
4898
4898
  background: t.activeColor,
@@ -4903,29 +4903,29 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4903
4903
  background: t.activeColor,
4904
4904
  transition: d.value ? "none" : void 0
4905
4905
  }), x = (C) => {
4906
- const q = "abl-range-mark", { modelValue: T, max: G, min: ue } = t;
4906
+ const q = "abl-range-mark", { modelValue: D, max: G, min: ue } = t;
4907
4907
  let re = Number(ue), pe = Number(G);
4908
4908
  if (t.range) {
4909
- const [ze, Oe] = T;
4909
+ const [ze, Oe] = D;
4910
4910
  re = ze, pe = Oe;
4911
4911
  } else
4912
- pe = T;
4912
+ pe = D;
4913
4913
  let Ee = C <= +pe && C >= re;
4914
4914
  return {
4915
4915
  [`${q}-text`]: !0,
4916
4916
  [`${q}-text-active`]: Ee
4917
4917
  };
4918
4918
  }, L = (C) => {
4919
- const { min: q, vertical: T } = t;
4919
+ const { min: q, vertical: D } = t;
4920
4920
  let G = {
4921
4921
  left: `${(C - Number(q)) / v.value * 100}%`
4922
4922
  };
4923
- return T && (G = {
4923
+ return D && (G = {
4924
4924
  top: `${(C - Number(q)) / v.value * 100}%`
4925
4925
  }), G;
4926
4926
  }, b = (C) => {
4927
- const { modelValue: q, max: T, min: G } = t;
4928
- let ue = Number(G), re = Number(T);
4927
+ const { modelValue: q, max: D, min: G } = t;
4928
+ let ue = Number(G), re = Number(D);
4929
4929
  if (t.range) {
4930
4930
  const [ze, Oe] = q;
4931
4931
  ue = ze, re = Oe;
@@ -4934,20 +4934,20 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4934
4934
  background: C <= re && C >= ue ? t.activeColor : t.inactiveColor
4935
4935
  };
4936
4936
  }, S = (C) => {
4937
- const { min: q, max: T, step: G } = t;
4938
- return C = Math.max(+q, Math.min(C, +T)), Math.round(C / +G) * +G;
4937
+ const { min: q, max: D, step: G } = t;
4938
+ return C = Math.max(+q, Math.min(C, +D)), Math.round(C / +G) * +G;
4939
4939
  }, W = (C, q) => JSON.stringify(C) === JSON.stringify(q), j = (C) => C[0] > C[1] ? C.slice(0).reverse() : C, F = (C, q) => {
4940
4940
  B(C) ? C = j(C).map(S) : C = S(C), W(C, t.modelValue) || l("update:modelValue", C), q && !W(C, o) && l("change", C);
4941
4941
  }, U = (C) => {
4942
4942
  if (t.disabled || d.value === "draging")
4943
4943
  return;
4944
4944
  g.value = !0;
4945
- const { min: q, modelValue: T } = t, G = Vt(i);
4945
+ const { min: q, modelValue: D } = t, G = Vt(i);
4946
4946
  let ue = C.clientX - G.left, re = G.width;
4947
4947
  t.vertical && (ue = C.clientY - G.top, re = G.height);
4948
4948
  const pe = Number(q) + ue / re * v.value;
4949
- if (B(T)) {
4950
- const [Ee, ze] = T, Oe = (Ee + ze) / 2;
4949
+ if (B(D)) {
4950
+ const [Ee, ze] = D, Oe = (Ee + ze) / 2;
4951
4951
  pe <= Oe ? (n.value = 0, F([pe, ze], !0)) : (n.value = 1, F([Ee, pe], !0));
4952
4952
  } else
4953
4953
  F(pe, !0);
@@ -4963,8 +4963,8 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4963
4963
  return;
4964
4964
  d.value === "start" && l("dragStart"), p.move(C), d.value = "draging", C.type.startsWith("touch") && (g.value = !0);
4965
4965
  const q = Vt(i);
4966
- let T = p.deltaX.value, G = q.width, ue = T / G * v.value;
4967
- t.vertical && (T = p.deltaY.value, G = q.height, ue = T / G * v.value), B(o) ? s[n.value] = o[n.value] + ue : s = o + ue, F(s);
4966
+ let D = p.deltaX.value, G = q.width, ue = D / G * v.value;
4967
+ t.vertical && (D = p.deltaY.value, G = q.height, ue = D / G * v.value), B(o) ? s[n.value] = o[n.value] + ue : s = o + ue, F(s);
4968
4968
  }, P = (C) => {
4969
4969
  t.disabled || d.value === "draging" && (F(s, !0), l("dragEnd"), window.removeEventListener("mousemove", E), window.removeEventListener("touchmove", E), window.removeEventListener("mouseup", P), window.removeEventListener("touchend", P), C.type.startsWith("touch") && (g.value = !1), setTimeout(() => {
4970
4970
  d.value = "";
@@ -4984,15 +4984,15 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
4984
4984
  onClick: J(U, ["stop"])
4985
4985
  }, [
4986
4986
  m.value.length > 0 ? (r(), u("div", vi, [
4987
- (r(!0), u(Y, null, ae(m.value, (T) => (r(), u("span", {
4988
- key: T,
4989
- class: V(x(T)),
4990
- style: N(L(T))
4987
+ (r(!0), u(Y, null, ae(m.value, (D) => (r(), u("span", {
4988
+ key: D,
4989
+ class: V(x(D)),
4990
+ style: N(L(D))
4991
4991
  }, [
4992
- ee(H(T) + " ", 1),
4992
+ ee(H(D) + " ", 1),
4993
4993
  c("span", {
4994
4994
  class: "abl-range-tick",
4995
- style: N(b(T))
4995
+ style: N(b(D))
4996
4996
  }, null, 4)
4997
4997
  ], 6))), 128))
4998
4998
  ])) : M("", !0),
@@ -5000,24 +5000,24 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
5000
5000
  class: "abl-range-bar",
5001
5001
  style: N(O.value)
5002
5002
  }, [
5003
- e.range ? (r(), u(Y, { key: 0 }, ae([0, 1], (T) => c("div", {
5004
- key: T,
5003
+ e.range ? (r(), u(Y, { key: 0 }, ae([0, 1], (D) => c("div", {
5004
+ key: D,
5005
5005
  role: "slider",
5006
- class: V({ "abl-range-button-wrapper-left": T == 0, "abl-range-button-wrapper-right": T == 1 }),
5006
+ class: V({ "abl-range-button-wrapper-left": D == 0, "abl-range-button-wrapper-right": D == 1 }),
5007
5007
  tabindex: e.disabled ? -1 : 0,
5008
5008
  "aria-valuemin": +e.min,
5009
- "aria-valuenow": le(T),
5009
+ "aria-valuenow": le(D),
5010
5010
  "aria-valuemax": +e.max,
5011
5011
  "aria-orientation": "horizontal",
5012
5012
  ref_for: !0,
5013
5013
  ref: (G) => {
5014
- f.value[T] = G;
5014
+ f.value[D] = G;
5015
5015
  },
5016
5016
  onTouchstartPassive: (G) => {
5017
- typeof T == "number" && (n.value = T), K(G);
5017
+ typeof D == "number" && (n.value = D), K(G);
5018
5018
  },
5019
5019
  onMousedown: (G) => {
5020
- typeof T == "number" && (n.value = T), K(G);
5020
+ typeof D == "number" && (n.value = D), K(G);
5021
5021
  }
5022
5022
  }, [
5023
5023
  C.$slots.button ? R(C.$slots, "button", { key: 0 }, void 0, !0) : (r(), u("div", {
@@ -5027,9 +5027,9 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
5027
5027
  }, [
5028
5028
  e.showTooltip ? (r(), u("div", {
5029
5029
  key: 0,
5030
- class: V(["abl-handle-tooltip", [{ "display-tooltip": n.value === T && g.value }]])
5030
+ class: V(["abl-handle-tooltip", [{ "display-tooltip": n.value === D && g.value }]])
5031
5031
  }, [
5032
- ee(H(le(T)) + " ", 1),
5032
+ ee(H(le(D)) + " ", 1),
5033
5033
  hi
5034
5034
  ], 2)) : M("", !0)
5035
5035
  ], 4))
@@ -5044,11 +5044,11 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
5044
5044
  ref_key: "buttonRef",
5045
5045
  ref: y,
5046
5046
  "aria-orientation": "horizontal",
5047
- onTouchstart: q[0] || (q[0] = (T) => {
5048
- K(T);
5047
+ onTouchstart: q[0] || (q[0] = (D) => {
5048
+ K(D);
5049
5049
  }),
5050
- onMousedown: q[1] || (q[1] = (T) => {
5051
- K(T);
5050
+ onMousedown: q[1] || (q[1] = (D) => {
5051
+ K(D);
5052
5052
  })
5053
5053
  }, [
5054
5054
  C.$slots.button ? R(C.$slots, "button", { key: 0 }, void 0, !0) : (r(), u("div", {
@@ -5056,12 +5056,13 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
5056
5056
  class: "abl-range-button",
5057
5057
  style: N($.value)
5058
5058
  }, [
5059
- c("div", {
5059
+ e.showTooltip ? (r(), u("div", {
5060
+ key: 0,
5060
5061
  class: V(["abl-handle-tooltip", [{ "display-tooltip": g.value }]])
5061
5062
  }, [
5062
5063
  ee(H(le()) + " ", 1),
5063
5064
  yi
5064
- ], 2)
5065
+ ], 2)) : M("", !0)
5065
5066
  ], 4))
5066
5067
  ], 40, gi))
5067
5068
  ], 4)
@@ -5069,7 +5070,7 @@ const al = (e) => (he("data-v-f9f5ec36"), e = e(), ge(), e), pi = {
5069
5070
  e.hiddenRange ? M("", !0) : (r(), u("div", bi, H(+e.max), 1))
5070
5071
  ], 2));
5071
5072
  }
5072
- }, wi = /* @__PURE__ */ Q(_i, [["__scopeId", "data-v-f9f5ec36"]]);
5073
+ }, wi = /* @__PURE__ */ Q(_i, [["__scopeId", "data-v-f4c52821"]]);
5073
5074
  const xi = { class: "abl-pagination-wrap" }, $i = {
5074
5075
  key: 0,
5075
5076
  class: "mr8"
@@ -5133,12 +5134,17 @@ const xi = { class: "abl-pagination-wrap" }, $i = {
5133
5134
  },
5134
5135
  emits: ["change", "jump", "update:current"],
5135
5136
  setup(e, { emit: a }) {
5136
- const t = e, l = Te(), n = _(t.current), o = _(!1), s = _(!1), i = D(() => Math.ceil(t.total / t.pageSize)), d = D(() => m(n.value).filter(
5137
+ const t = e, l = Te(), n = _(t.current), o = _(!1), s = _(!1), i = T(() => Math.ceil(t.total / t.pageSize)), d = T(() => m(n.value).filter(
5137
5138
  (h) => h !== 1 && h !== i.value
5138
5139
  )), p = a;
5139
5140
  ne(n, (h) => {
5140
5141
  p("update:current", h), p("change", h, t.pageSize);
5141
- });
5142
+ }), ne(
5143
+ () => t.current,
5144
+ (h) => {
5145
+ n.value = h;
5146
+ }
5147
+ );
5142
5148
  const m = (h) => {
5143
5149
  var w = [], k = Math.floor(t.pagerCount / 2), $ = {
5144
5150
  start: h - k,
@@ -5256,7 +5262,7 @@ const Mi = { class: "abl-search" }, Ni = { class: "abl-search__wrapper" }, Ei =
5256
5262
  },
5257
5263
  emits: ["search", "cancel"],
5258
5264
  setup(e, { emit: a }) {
5259
- const t = a, l = e, n = D({
5265
+ const t = a, l = e, n = T({
5260
5266
  get: () => l.modelValue,
5261
5267
  set: (d) => {
5262
5268
  t("update:modelValue", d);
@@ -5378,9 +5384,9 @@ const Gi = {
5378
5384
  }
5379
5385
  },
5380
5386
  setup(e) {
5381
- const a = e, t = _(!1), l = D(() => ({
5387
+ const a = e, t = _(!1), l = T(() => ({
5382
5388
  color: a.fontColor
5383
- })), n = D(() => {
5389
+ })), n = T(() => {
5384
5390
  let o = "";
5385
5391
  return t.value && (o = "timeline-others"), a.hollow && (o = "hollow"), o;
5386
5392
  });