@autoafleveren/ui 0.14.2 → 0.14.3

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/icons.js CHANGED
@@ -1,8 +1,8 @@
1
- import { shallowRef as Ot, ref as ne, openBlock as d, createElementBlock as h, createElementVNode as c, reactive as O1, defineComponent as tt, useSlots as t2, toRef as Q1, onMounted as jt, onUnmounted as s3, watch as yt, computed as Y, normalizeClass as xe, createVNode as c1, mergeProps as et, unref as H, isRef as Q2, createSlots as St, renderList as it, withCtx as De, renderSlot as ie, normalizeProps as Je, guardReactiveProps as Et, createBlock as Ie, resolveDynamicComponent as u5, Teleport as c0, createCommentVNode as z, withKeys as Te, withModifiers as xt, Transition as E1, Fragment as Ze, normalizeStyle as qt, createTextVNode as Rt, toDisplayString as Qe, nextTick as u1, withDirectives as p2, vShow as f2, onBeforeUpdate as d0, getCurrentScope as h0, onScopeDispose as p0, useCssVars as $1, toRefs as f0, provide as D3, pushScopeId as j1, popScopeId as R1, inject as Z1, onBeforeUnmount as v0, createStaticVNode as kt } from "vue";
1
+ import { shallowRef as St, ref as ne, openBlock as d, createElementBlock as h, createElementVNode as c, reactive as O1, defineComponent as tt, useSlots as t2, toRef as Q1, onMounted as jt, onUnmounted as s3, watch as yt, computed as Y, normalizeClass as xe, createVNode as c1, mergeProps as et, unref as H, isRef as Q2, createSlots as Dt, renderList as it, withCtx as De, renderSlot as ie, normalizeProps as Je, guardReactiveProps as Et, createBlock as Ie, resolveDynamicComponent as u5, Teleport as c0, createCommentVNode as z, withKeys as Te, withModifiers as xt, Transition as E1, Fragment as Ze, normalizeStyle as qt, createTextVNode as Rt, toDisplayString as Qe, nextTick as u1, withDirectives as p2, vShow as f2, onBeforeUpdate as d0, getCurrentScope as h0, onScopeDispose as p0, useCssVars as $1, toRefs as f0, provide as D3, pushScopeId as j1, popScopeId as R1, inject as Z1, onBeforeUnmount as v0, createStaticVNode as kt } from "vue";
2
2
  import "vue-router";
3
3
  import "@headlessui/vue";
4
4
  import "@vueuse/core";
5
- Ot([]), Ot(!1), Ot(!1), Ot(!1), Ot("a"), Ot(null), Ot(null), Ot(), Ot("?");
5
+ St([]), St(!1), St(!1), St(!1), St("a"), St(null), St(null), St(), St("?");
6
6
  function u2(e, t = !1) {
7
7
  const r = parseInt(e.slice(1, 3), 16), n = parseInt(e.slice(3, 5), 16), a = parseInt(e.slice(5, 7), 16);
8
8
  return t ? `${r} ${n} ${a}` : [r, n, a];
@@ -3799,7 +3799,7 @@ const Y3 = (e, t, r, n, a) => {
3799
3799
  }, Ft = (e, t, r, n) => {
3800
3800
  let a = e ? G(e) : G();
3801
3801
  return (t || t === 0) && (a = Z5(a, +t)), (r || r === 0) && (a = A5(a, +r)), (n || n === 0) && (a = T5(a, +n)), f3(a, 0);
3802
- }, Ht = (e, t) => !e || !t ? !1 : e2(Yt(e), Yt(t)), Xe = (e, t) => !e || !t ? !1 : H1(Yt(e), Yt(t)), It = (e, t) => !e || !t ? !1 : K1(Yt(e), Yt(t)), D5 = (e, t, r) => e && e[0] && e[1] ? It(r, e[0]) && Ht(r, e[1]) : e && e[0] && t ? It(r, e[0]) && Ht(r, t) || Ht(r, e[0]) && It(r, t) : !1, z1 = (e) => {
3802
+ }, Ht = (e, t) => !e || !t ? !1 : e2(Yt(e), Yt(t)), Xe = (e, t) => !e || !t ? !1 : H1(Yt(e), Yt(t)), Lt = (e, t) => !e || !t ? !1 : K1(Yt(e), Yt(t)), D5 = (e, t, r) => e && e[0] && e[1] ? Lt(r, e[0]) && Ht(r, e[1]) : e && e[0] && t ? Lt(r, e[0]) && Ht(r, t) || Ht(r, e[0]) && Lt(r, t) : !1, z1 = (e) => {
3803
3803
  const t = wt(new Date(e), { date: 1 });
3804
3804
  return Yt(t);
3805
3805
  }, j2 = (e, t, r) => t && (r || r === 0) ? Object.fromEntries(
@@ -4006,7 +4006,7 @@ function _4(e) {
4006
4006
  }
4007
4007
  var M4 = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;
4008
4008
  const B5 = M4;
4009
- var F2 = 36e5, G3 = 6e4, V4 = 2, Dt = {
4009
+ var F2 = 36e5, G3 = 6e4, V4 = 2, It = {
4010
4010
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
4011
4011
  datePattern: /^([0-9W+-]+)(.*)/,
4012
4012
  plainTime: /:/,
@@ -4072,23 +4072,23 @@ function i3(e, t) {
4072
4072
  return /* @__PURE__ */ new Date(NaN);
4073
4073
  }
4074
4074
  function H4(e) {
4075
- var t = {}, r = Dt.dateTimePattern.exec(e), n;
4076
- if (r ? (t.date = r[1], n = r[3]) : (r = Dt.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
4077
- var a = Dt.timeZone.exec(n);
4075
+ var t = {}, r = It.dateTimePattern.exec(e), n;
4076
+ if (r ? (t.date = r[1], n = r[3]) : (r = It.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
4077
+ var a = It.timeZone.exec(n);
4078
4078
  a ? (t.time = n.replace(a[1], ""), t.timeZone = a[1].trim()) : t.time = n;
4079
4079
  }
4080
4080
  return t;
4081
4081
  }
4082
4082
  function x4(e, t) {
4083
- var r = Dt.YYY[t], n = Dt.YYYYY[t], a;
4084
- if (a = Dt.YYYY.exec(e) || n.exec(e), a) {
4083
+ var r = It.YYY[t], n = It.YYYYY[t], a;
4084
+ if (a = It.YYYY.exec(e) || n.exec(e), a) {
4085
4085
  var o = a[1];
4086
4086
  return {
4087
4087
  year: parseInt(o, 10),
4088
4088
  restDateString: e.slice(o.length)
4089
4089
  };
4090
4090
  }
4091
- if (a = Dt.YY.exec(e) || r.exec(e), a) {
4091
+ if (a = It.YY.exec(e) || r.exec(e), a) {
4092
4092
  var i = a[1];
4093
4093
  return {
4094
4094
  year: parseInt(i, 10) * 100,
@@ -4105,21 +4105,21 @@ function b4(e, t) {
4105
4105
  var r, n, a, o;
4106
4106
  if (e.length === 0)
4107
4107
  return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
4108
- if (r = Dt.MM.exec(e), r)
4108
+ if (r = It.MM.exec(e), r)
4109
4109
  return n = /* @__PURE__ */ new Date(0), a = parseInt(r[1], 10) - 1, Q3(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
4110
- if (r = Dt.DDD.exec(e), r) {
4110
+ if (r = It.DDD.exec(e), r) {
4111
4111
  n = /* @__PURE__ */ new Date(0);
4112
4112
  var i = parseInt(r[1], 10);
4113
4113
  return $4(t, i) ? (n.setUTCFullYear(t, 0, i), n) : /* @__PURE__ */ new Date(NaN);
4114
4114
  }
4115
- if (r = Dt.MMDD.exec(e), r) {
4115
+ if (r = It.MMDD.exec(e), r) {
4116
4116
  n = /* @__PURE__ */ new Date(0), a = parseInt(r[1], 10) - 1;
4117
4117
  var p = parseInt(r[2], 10);
4118
4118
  return Q3(t, a, p) ? (n.setUTCFullYear(t, a, p), n) : /* @__PURE__ */ new Date(NaN);
4119
4119
  }
4120
- if (r = Dt.Www.exec(e), r)
4120
+ if (r = It.Www.exec(e), r)
4121
4121
  return o = parseInt(r[1], 10) - 1, K3(t, o) ? J3(t, o) : /* @__PURE__ */ new Date(NaN);
4122
- if (r = Dt.WwwD.exec(e), r) {
4122
+ if (r = It.WwwD.exec(e), r) {
4123
4123
  o = parseInt(r[1], 10) - 1;
4124
4124
  var v = parseInt(r[2], 10) - 1;
4125
4125
  return K3(t, o, v) ? J3(t, o, v) : /* @__PURE__ */ new Date(NaN);
@@ -4128,11 +4128,11 @@ function b4(e, t) {
4128
4128
  }
4129
4129
  function Z4(e) {
4130
4130
  var t, r, n;
4131
- if (t = Dt.HH.exec(e), t)
4131
+ if (t = It.HH.exec(e), t)
4132
4132
  return r = parseFloat(t[1].replace(",", ".")), Y2(r) ? r % 24 * F2 : NaN;
4133
- if (t = Dt.HHMM.exec(e), t)
4133
+ if (t = It.HHMM.exec(e), t)
4134
4134
  return r = parseInt(t[1], 10), n = parseFloat(t[2].replace(",", ".")), Y2(r, n) ? r % 24 * F2 + n * G3 : NaN;
4135
- if (t = Dt.HHMMSS.exec(e), t) {
4135
+ if (t = It.HHMMSS.exec(e), t) {
4136
4136
  r = parseInt(t[1], 10), n = parseInt(t[2], 10);
4137
4137
  var a = parseFloat(t[3].replace(",", "."));
4138
4138
  return Y2(r, n, a) ? r % 24 * F2 + n * G3 + a * 1e3 : NaN;
@@ -4358,7 +4358,7 @@ const O4 = (e, t, r) => {
4358
4358
  )) : !1;
4359
4359
  }, _ = (x) => {
4360
4360
  var w;
4361
- const C = e.maxDate ? It(p(x), p(G(e.maxDate))) : !1, $ = e.minDate ? Ht(p(x), p(G(e.minDate))) : !1, se = R(
4361
+ const C = e.maxDate ? Lt(p(x), p(G(e.maxDate))) : !1, $ = e.minDate ? Ht(p(x), p(G(e.minDate))) : !1, se = R(
4362
4362
  x,
4363
4363
  (w = e.arrMapValues) != null && w.disabledDates ? e.arrMapValues.disabledDates : e.disabledDates
4364
4364
  ), be = r.value.filters.months.map((We) => +We).includes(Ke(x)), Me = e.disabledWeekDays.length ? e.disabledWeekDays.some((We) => +We === Br(x)) : !1, Ge = b(x), Ne = rt(x), ge = Ne < +e.yearRange[0] || Ne > +e.yearRange[1];
@@ -4443,15 +4443,15 @@ const O4 = (e, t, r) => {
4443
4443
  const Ne = 6 - C.length, ge = ($.getDay() + 7 - be) % 7, We = 6 - (se.getDay() + 7 - be) % 7, [vt, lt] = S(ge, We);
4444
4444
  for (let _t = 1; _t <= Ne; _t++)
4445
4445
  if (lt ? !!(_t % 2) == vt : vt) {
4446
- const Lt = C[0].days[0], bt = P(l1(Lt.value, -7), Ke($));
4446
+ const Bt = C[0].days[0], bt = P(l1(Bt.value, -7), Ke($));
4447
4447
  C.unshift({ days: bt });
4448
4448
  } else {
4449
- const Lt = C[C.length - 1], bt = Lt.days[Lt.days.length - 1], Bt = P(l1(bt.value, 1), Ke($));
4450
- C.push({ days: Bt });
4449
+ const Bt = C[C.length - 1], bt = Bt.days[Bt.days.length - 1], Nt = P(l1(bt.value, 1), Ke($));
4450
+ C.push({ days: Nt });
4451
4451
  }
4452
4452
  }
4453
4453
  return C;
4454
- }, X = (x, w, C) => [wt(G(x), { date: 1 }), wt(G(), { month: w, year: C, date: 1 })], ee = (x, w) => Ht(...X(e.minDate, x, w)) || Xe(...X(e.minDate, x, w)), U = (x, w) => It(...X(e.maxDate, x, w)) || Xe(...X(e.maxDate, x, w)), D = (x, w, C) => {
4454
+ }, X = (x, w, C) => [wt(G(x), { date: 1 }), wt(G(), { month: w, year: C, date: 1 })], ee = (x, w) => Ht(...X(e.minDate, x, w)) || Xe(...X(e.minDate, x, w)), U = (x, w) => Lt(...X(e.maxDate, x, w)) || Xe(...X(e.maxDate, x, w)), D = (x, w, C) => {
4455
4455
  let $ = !1;
4456
4456
  return e.maxDate && C && U(x, w) && ($ = !0), e.minDate && !C && ee(x, w) && ($ = !0), $;
4457
4457
  }, g = (x, w, C, $) => {
@@ -4697,7 +4697,7 @@ const O4 = (e, t, r) => {
4697
4697
  else
4698
4698
  m.value = [V];
4699
4699
  }, x = (V, E) => {
4700
- const pe = It(V, E) ? E : V, Ce = It(E, V) ? E : V;
4700
+ const pe = Lt(V, E) ? E : V, Ce = Lt(E, V) ? E : V;
4701
4701
  return B3({ start: pe, end: Ce });
4702
4702
  }, w = (V, E = 0) => {
4703
4703
  if (Array.isArray(m.value) && m.value[E]) {
@@ -4710,7 +4710,7 @@ const O4 = (e, t, r) => {
4710
4710
  return mt <= +e.maxRange;
4711
4711
  }
4712
4712
  return !0;
4713
- }, C = (V) => Array.isArray(m.value) && m.value.length === 2 ? e.fixedStart && (It(V, m.value[0]) || Xe(V, m.value[0])) ? [m.value[0], V] : e.fixedEnd && (Ht(V, m.value[1]) || Xe(V, m.value[1])) ? [V, m.value[1]] : (t("invalid-fixed-range", V), m.value) : [], $ = () => {
4713
+ }, C = (V) => Array.isArray(m.value) && m.value.length === 2 ? e.fixedStart && (Lt(V, m.value[0]) || Xe(V, m.value[0])) ? [m.value[0], V] : e.fixedEnd && (Ht(V, m.value[1]) || Xe(V, m.value[1])) ? [V, m.value[1]] : (t("invalid-fixed-range", V), m.value) : [], $ = () => {
4714
4714
  e.autoApply && B.value && t("auto-apply", e.partialFlow);
4715
4715
  }, se = () => {
4716
4716
  e.autoApply && t("select-date");
@@ -4737,12 +4737,12 @@ const O4 = (e, t, r) => {
4737
4737
  Z.minutes[V],
4738
4738
  ee(V !== 1)
4739
4739
  );
4740
- }, Lt = () => {
4740
+ }, Bt = () => {
4741
4741
  var V, E;
4742
4742
  M.value[0] && M.value[1] && +((V = M.value) == null ? void 0 : V[0]) > +((E = M.value) == null ? void 0 : E[1]) && (M.value.reverse(), t("range-start", M.value[0]), t("range-end", M.value[1]));
4743
4743
  }, bt = () => {
4744
- M.value.length && (M.value[0] && !M.value[1] ? _t(0) : (_t(0), _t(1), r()), Lt(), m.value = M.value.slice(), M.value[0] && M.value[1] && e.autoApply && t("auto-apply"), M.value[0] && !M.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
4745
- }, Bt = (V, E = !1) => {
4744
+ M.value.length && (M.value[0] && !M.value[1] ? _t(0) : (_t(0), _t(1), r()), Bt(), m.value = M.value.slice(), M.value[0] && M.value[1] && e.autoApply && t("auto-apply"), M.value[0] && !M.value[1] && e.modelAuto && e.autoApply && t("auto-apply"));
4745
+ }, Nt = (V, E = !1) => {
4746
4746
  if (!(i(V.value) || !V.current && e.hideOffsetDates)) {
4747
4747
  if (e.weekPicker)
4748
4748
  return Me(V);
@@ -4822,7 +4822,7 @@ const O4 = (e, t, r) => {
4822
4822
  isDisabled: i,
4823
4823
  updateTime: Xt,
4824
4824
  getWeekNum: Zt,
4825
- selectDate: Bt,
4825
+ selectDate: Nt,
4826
4826
  updateMonthYear: Pe,
4827
4827
  handleScroll: w1,
4828
4828
  getMarker: (V) => e.markers.find((E) => Xe(p(V.value), p(E.date))),
@@ -5446,11 +5446,11 @@ const ni = (e, t, r, n) => {
5446
5446
  const W = G(z1(O));
5447
5447
  if (r.minDate && r.maxDate) {
5448
5448
  const te = G(z1(r.minDate)), oe = G(z1(r.maxDate));
5449
- return It(W, te) && Ht(W, oe) || Xe(W, te) || Xe(W, oe);
5449
+ return Lt(W, te) && Ht(W, oe) || Xe(W, te) || Xe(W, oe);
5450
5450
  }
5451
5451
  if (r.minDate) {
5452
5452
  const te = G(z1(r.minDate));
5453
- J = It(W, te) || Xe(W, te);
5453
+ J = Lt(W, te) || Xe(W, te);
5454
5454
  }
5455
5455
  if (r.maxDate) {
5456
5456
  const te = G(z1(r.maxDate));
@@ -5578,7 +5578,7 @@ const ni = (e, t, r, n) => {
5578
5578
  const R = (D) => D ? n.vertical ? "vNext" : "next" : n.vertical ? "vPrevious" : "previous", B = (D, g) => {
5579
5579
  if (n.transitions) {
5580
5580
  const I = Yt(o(G(), n.month, n.year));
5581
- m.value = It(Yt(o(G(), D, g)), I) ? i.value.transitions[R(!0)] : i.value.transitions[R(!1)], _.value = !1, u1(() => {
5581
+ m.value = Lt(Yt(o(G(), D, g)), I) ? i.value.transitions[R(!0)] : i.value.transitions[R(!1)], _.value = !1, u1(() => {
5582
5582
  _.value = !0;
5583
5583
  });
5584
5584
  }
@@ -6068,7 +6068,7 @@ const ni = (e, t, r, n) => {
6068
6068
  "header-refs": [],
6069
6069
  "onUpdate:modelValue": p[3] || (p[3] = (v) => i.$emit("update:model-value", v)),
6070
6070
  onToggle: p[4] || (p[4] = (v) => i.$emit("toggle"))
6071
- }), St({
6071
+ }), Dt({
6072
6072
  "button-icon": De(() => [
6073
6073
  i.$slots["calendar-icon"] ? ie(i.$slots, "calendar-icon", { key: 0 }) : z("", !0),
6074
6074
  i.$slots["calendar-icon"] ? z("", !0) : (d(), Ie(H(V2), { key: 1 }))
@@ -6221,7 +6221,7 @@ const ni = (e, t, r, n) => {
6221
6221
  }, J.value("month"), {
6222
6222
  onToggle: I,
6223
6223
  onSetRef: $[3] || ($[3] = (ge) => w(ge, 1))
6224
- }), St({
6224
+ }), Dt({
6225
6225
  default: De(() => [
6226
6226
  C.$slots.month ? ie(C.$slots, "month", Je(et({ key: 0 }, K.value))) : z("", !0),
6227
6227
  C.$slots.month ? z("", !0) : (d(), h(Ze, { key: 1 }, [
@@ -6273,7 +6273,7 @@ const ni = (e, t, r, n) => {
6273
6273
  }, J.value("year"), {
6274
6274
  onToggle: re,
6275
6275
  onSetRef: $[5] || ($[5] = (ge) => w(ge, 2))
6276
- }), St({
6276
+ }), Dt({
6277
6277
  default: De(() => [
6278
6278
  C.$slots.year ? ie(C.$slots, "year", {
6279
6279
  key: 0,
@@ -6356,7 +6356,7 @@ const ni = (e, t, r, n) => {
6356
6356
  "onUpdate:modelValue": $[17] || ($[17] = (ge) => R.value = ge),
6357
6357
  onToggle: I,
6358
6358
  onSelected: $[18] || ($[18] = (ge) => C.$emit("overlay-closed"))
6359
- }), St({
6359
+ }), Dt({
6360
6360
  header: De(() => {
6361
6361
  var ge, We, vt;
6362
6362
  return [
@@ -6424,7 +6424,7 @@ const ni = (e, t, r, n) => {
6424
6424
  "onUpdate:modelValue": $[15] || ($[15] = (lt) => B.value = lt),
6425
6425
  onToggle: re,
6426
6426
  onSelected: $[16] || ($[16] = (lt) => C.$emit("overlay-closed"))
6427
- }), St({
6427
+ }), Dt({
6428
6428
  "button-icon": De(() => [
6429
6429
  C.$slots["calendar-icon"] ? ie(C.$slots, "calendar-icon", { key: 0 }) : z("", !0),
6430
6430
  C.$slots["calendar-icon"] ? z("", !0) : (d(), Ie(H(V2), { key: 1 }))
@@ -6469,7 +6469,7 @@ const ni = (e, t, r, n) => {
6469
6469
  "year-picker": "",
6470
6470
  onToggle: re,
6471
6471
  onSelected: $[20] || ($[20] = (ge) => C.$emit("overlay-closed"))
6472
- }), St({ _: 2 }, [
6472
+ }), Dt({ _: 2 }, [
6473
6473
  C.$slots["year-overlay-value"] ? {
6474
6474
  name: "item",
6475
6475
  fn: De(({ item: ge }) => [
@@ -6710,7 +6710,7 @@ const ni = (e, t, r, n) => {
6710
6710
  onToggle: (w) => A(q.type),
6711
6711
  onResetFlow: I[0] || (I[0] = (w) => g.$emit("reset-flow")),
6712
6712
  type: q.type
6713
- }, St({
6713
+ }, Dt({
6714
6714
  "button-icon": De(() => [
6715
6715
  g.$slots["clock-icon"] ? ie(g.$slots, "clock-icon", { key: 0 }) : z("", !0),
6716
6716
  g.$slots["clock-icon"] ? z("", !0) : (d(), Ie(H($5), { key: 1 }))
@@ -6863,7 +6863,7 @@ const ni = (e, t, r, n) => {
6863
6863
  onMounted: ve,
6864
6864
  onOverlayClosed: ve,
6865
6865
  onAmPmChange: P[3] || (P[3] = (U) => A.$emit("am-pm-change", U))
6866
- }), St({ _: 2 }, [
6866
+ }), Dt({ _: 2 }, [
6867
6867
  it(H(O), (U, D) => ({
6868
6868
  name: U,
6869
6869
  fn: De((g) => [
@@ -6907,13 +6907,13 @@ const ni = (e, t, r, n) => {
6907
6907
  !g.current && t.hideOffsetDates || (i.value = g.value);
6908
6908
  }, y = () => {
6909
6909
  i.value = null;
6910
- }, b = (g) => Array.isArray(e.value) && t.range && e.value[0] && i.value ? g ? It(i.value, e.value[0]) : Ht(i.value, e.value[0]) : !0, _ = (g, I) => {
6910
+ }, b = (g) => Array.isArray(e.value) && t.range && e.value[0] && i.value ? g ? Lt(i.value, e.value[0]) : Ht(i.value, e.value[0]) : !0, _ = (g, I) => {
6911
6911
  const re = () => e.value ? I ? e.value[0] || null : e.value[1] : null, q = e.value && Array.isArray(e.value) ? re() : null;
6912
6912
  return Xe(G(g.value), q);
6913
6913
  }, m = (g) => {
6914
6914
  const I = Array.isArray(e.value) ? e.value[0] : null;
6915
6915
  return g ? !Ht(i.value || null, I) : !0;
6916
- }, M = (g, I = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !g.current ? !1 : Xe(G(g.value), e.value[I ? 0 : 1]) : t.range ? _(g, I) && m(I) || Xe(g.value, Array.isArray(e.value) ? e.value[0] : null) && b(I) : !1, N = (g, I, re) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? g ? !1 : re ? It(e.value[0], I.value) : Ht(e.value[0], I.value) : !1, T = (g) => !e.value || t.hideOffsetDates && !g.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Xe(g.value, e.value[0] ? e.value[0] : p.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((I) => Xe(I, g.value)) : Xe(g.value, e.value ? e.value : p.value), Z = (g) => {
6916
+ }, M = (g, I = !0) => (t.range || t.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? t.hideOffsetDates && !g.current ? !1 : Xe(G(g.value), e.value[I ? 0 : 1]) : t.range ? _(g, I) && m(I) || Xe(g.value, Array.isArray(e.value) ? e.value[0] : null) && b(I) : !1, N = (g, I, re) => Array.isArray(e.value) && e.value[0] && e.value.length === 1 ? g ? !1 : re ? Lt(e.value[0], I.value) : Ht(e.value[0], I.value) : !1, T = (g) => !e.value || t.hideOffsetDates && !g.current ? !1 : t.range ? t.modelAuto && Array.isArray(e.value) ? Xe(g.value, e.value[0] ? e.value[0] : p.value) : !1 : t.multiDates && Array.isArray(e.value) ? e.value.some((I) => Xe(I, g.value)) : Xe(g.value, e.value ? e.value : p.value), Z = (g) => {
6917
6917
  if (t.autoRange || t.weekPicker) {
6918
6918
  if (i.value) {
6919
6919
  if (t.hideOffsetDates && !g.current)
@@ -6931,7 +6931,7 @@ const ni = (e, t, r, n) => {
6931
6931
  if (t.hideOffsetDates && !g.current)
6932
6932
  return !1;
6933
6933
  const re = a(G(i.value));
6934
- return t.weekPicker ? It(g.value, re[0]) && Ht(g.value, re[1]) : It(g.value, i.value) && Ht(g.value, I);
6934
+ return t.weekPicker ? Lt(g.value, re[0]) && Ht(g.value, re[1]) : Lt(g.value, i.value) && Ht(g.value, I);
6935
6935
  }
6936
6936
  return !1;
6937
6937
  }
@@ -7053,7 +7053,7 @@ const ni = (e, t, r, n) => {
7053
7053
  }), M = ne([]), N = ne([]), T = ne(null), Z = ne(null), L = ne(0), R = ne(!1), B = ne(0);
7054
7054
  jt(() => {
7055
7055
  var j;
7056
- R.value = !0, !((j = n.presetRanges) != null && j.length) && !b["left-sidebar"] && !b["right-sidebar"] && (Bt(), window.addEventListener("resize", Bt));
7056
+ R.value = !0, !((j = n.presetRanges) != null && j.length) && !b["left-sidebar"] && !b["right-sidebar"] && (Nt(), window.addEventListener("resize", Nt));
7057
7057
  const le = st(Z);
7058
7058
  if (le && !n.textInput && !n.inline && (o(!0), oe()), le) {
7059
7059
  const je = (Re) => {
@@ -7062,7 +7062,7 @@ const ni = (e, t, r, n) => {
7062
7062
  le.addEventListener("pointerdown", je), le.addEventListener("mousedown", je);
7063
7063
  }
7064
7064
  }), s3(() => {
7065
- window.removeEventListener("resize", Bt);
7065
+ window.removeEventListener("resize", Nt);
7066
7066
  });
7067
7067
  const { arrowRight: Q, arrowLeft: O, arrowDown: J, arrowUp: W } = p1(), te = (j) => {
7068
7068
  j || j === 0 ? N.value[j].triggerTransition(
@@ -7118,7 +7118,7 @@ const ni = (e, t, r, n) => {
7118
7118
  },
7119
7119
  { deep: !0 }
7120
7120
  );
7121
- const ge = x1(b, "calendar"), We = x1(b, "action"), vt = x1(b, "timePicker"), lt = x1(b, "monthYear"), _t = Y(() => n.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), Lt = Y(() => E4(n.yearRange, n.reverseYears)), bt = Y(() => j4(n.formatLocale, n.locale, n.monthNameFormat)), Bt = () => {
7121
+ const ge = x1(b, "calendar"), We = x1(b, "action"), vt = x1(b, "timePicker"), lt = x1(b, "monthYear"), _t = Y(() => n.openOnTop ? "dp__arrow_bottom" : "dp__arrow_top"), Bt = Y(() => E4(n.yearRange, n.reverseYears)), bt = Y(() => j4(n.formatLocale, n.locale, n.monthNameFormat)), Nt = () => {
7122
7122
  const j = st(_);
7123
7123
  j && (L.value = j.getBoundingClientRect().width);
7124
7124
  }, Zt = Y(() => (j) => v(K.value(j), X.value(j))), he = Y(
@@ -7273,7 +7273,7 @@ const ni = (e, t, r, n) => {
7273
7273
  Se && (M.value[Tt] = Se);
7274
7274
  },
7275
7275
  months: bt.value,
7276
- years: Lt.value,
7276
+ years: Bt.value,
7277
7277
  month: H(K)(de),
7278
7278
  year: H(X)(de),
7279
7279
  instance: de,
@@ -7284,7 +7284,7 @@ const ni = (e, t, r, n) => {
7284
7284
  onUpdateMonthYear: (Se) => H(D)(de, Se),
7285
7285
  onMonthYearSelect: H(re),
7286
7286
  onOverlayClosed: oe
7287
- }), St({ _: 2 }, [
7287
+ }), Dt({ _: 2 }, [
7288
7288
  it(H(lt), (Se, C1) => ({
7289
7289
  name: Se,
7290
7290
  fn: De((d1) => [
@@ -7313,7 +7313,7 @@ const ni = (e, t, r, n) => {
7313
7313
  onResetFlow: A,
7314
7314
  onTooltipOpen: le[3] || (le[3] = (Se) => j.$emit("tooltip-open", Se)),
7315
7315
  onTooltipClose: le[4] || (le[4] = (Se) => j.$emit("tooltip-close", Se))
7316
- }), St({ _: 2 }, [
7316
+ }), Dt({ _: 2 }, [
7317
7317
  it(H(ge), (Se, C1) => ({
7318
7318
  name: Se,
7319
7319
  fn: De((d1) => [
@@ -7342,7 +7342,7 @@ const ni = (e, t, r, n) => {
7342
7342
  onOverlayClosed: mt,
7343
7343
  onOverlayOpened: le[9] || (le[9] = (de) => j.$emit("time-picker-open", de)),
7344
7344
  onAmPmChange: le[10] || (le[10] = (de) => j.$emit("am-pm-change", de))
7345
- }), St({ _: 2 }, [
7345
+ }), Dt({ _: 2 }, [
7346
7346
  it(H(vt), (de, Tt) => ({
7347
7347
  name: de,
7348
7348
  fn: De((Se) => [
@@ -7373,7 +7373,7 @@ const ni = (e, t, r, n) => {
7373
7373
  onSelectDate: le[12] || (le[12] = (de) => j.$emit("select-date")),
7374
7374
  onInvalidSelect: le[13] || (le[13] = (de) => j.$emit("invalid-select")),
7375
7375
  onSelectNow: H($)
7376
- }), St({ _: 2 }, [
7376
+ }), Dt({ _: 2 }, [
7377
7377
  it(H(We), (de, Tt) => ({
7378
7378
  name: de,
7379
7379
  fn: De((Se) => [
@@ -7514,14 +7514,14 @@ const ni = (e, t, r, n) => {
7514
7514
  S.value = he;
7515
7515
  }, _t = () => {
7516
7516
  n.textInput && (b.value = !0, ee()), r("focus");
7517
- }, Lt = () => {
7517
+ }, Bt = () => {
7518
7518
  n.textInput && (b.value = !1, K(n.modelValue)), r("blur");
7519
7519
  }, bt = (he) => {
7520
7520
  v.value && v.value.updateMonthYear(0, {
7521
7521
  month: t5(he.month),
7522
7522
  year: t5(he.year)
7523
7523
  });
7524
- }, Bt = (he) => {
7524
+ }, Nt = (he) => {
7525
7525
  K(he || n.modelValue);
7526
7526
  }, Zt = (he, ke) => {
7527
7527
  var Ve;
@@ -7542,7 +7542,7 @@ const ni = (e, t, r, n) => {
7542
7542
  updateInternalModelValue: lt,
7543
7543
  // modify internal modelValue
7544
7544
  setMonthYear: bt,
7545
- parseModel: Bt,
7545
+ parseModel: Nt,
7546
7546
  switchView: Zt
7547
7547
  }), (he, ke) => (d(), h("div", {
7548
7548
  class: xe(D.value),
@@ -7564,9 +7564,9 @@ const ni = (e, t, r, n) => {
7564
7564
  onToggle: vt,
7565
7565
  onClose: Ne,
7566
7566
  onFocus: _t,
7567
- onBlur: Lt,
7567
+ onBlur: Bt,
7568
7568
  onRealBlur: ke[1] || (ke[1] = (Ve) => b.value = !1)
7569
- }), St({ _: 2 }, [
7569
+ }), Dt({ _: 2 }, [
7570
7570
  it(H(O), (Ve, zt) => ({
7571
7571
  name: Ve,
7572
7572
  fn: De((Pe) => [
@@ -7603,7 +7603,7 @@ const ni = (e, t, r, n) => {
7603
7603
  onAmPmChange: ke[11] || (ke[11] = (Ve) => he.$emit("am-pm-change", Ve)),
7604
7604
  onRangeStart: ke[12] || (ke[12] = (Ve) => he.$emit("range-start", Ve)),
7605
7605
  onRangeEnd: ke[13] || (ke[13] = (Ve) => he.$emit("range-end", Ve))
7606
- }), St({ _: 2 }, [
7606
+ }), Dt({ _: 2 }, [
7607
7607
  it(H(Q), (Ve, zt) => ({
7608
7608
  name: Ve,
7609
7609
  fn: De((Pe) => [
@@ -8595,10 +8595,10 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8595
8595
  serverOptionsComputed: vt,
8596
8596
  updateServerOptionsPage: lt,
8597
8597
  updateServerOptionsSort: _t,
8598
- updateServerOptionsRowsPerPage: Lt
8598
+ updateServerOptionsRowsPerPage: Bt
8599
8599
  } = ll(P, J, r), {
8600
8600
  clientSortOptions: bt,
8601
- headerColumns: Bt,
8601
+ headerColumns: Nt,
8602
8602
  headersForRender: Zt,
8603
8603
  updateSortField: he,
8604
8604
  isMultiSorting: ke,
@@ -8637,24 +8637,24 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8637
8637
  fixedColumnsInfos: b2
8638
8638
  } = nl(Zt), {
8639
8639
  clickRow: y1
8640
- } = el(o, ge, S, r), Z2 = (ye, Nt) => {
8641
- re.value && Nt.preventDefault(), r("contextmenuRow", ye, Nt);
8640
+ } = el(o, ge, S, r), Z2 = (ye, Ot) => {
8641
+ re.value && Ot.preventDefault(), r("contextmenuRow", ye, Ot);
8642
8642
  }, r2 = (ye) => {
8643
- var Nt;
8644
- const me = (Nt = ye.width) != null ? Nt : C1.value.length ? 100 : null;
8643
+ var Ot;
8644
+ const me = (Ot = ye.width) != null ? Ot : C1.value.length ? 100 : null;
8645
8645
  if (me)
8646
8646
  return `width: ${me}px; min-width: ${me}px;`;
8647
- }, a2 = (ye, Nt = "th") => {
8647
+ }, a2 = (ye, Ot = "th") => {
8648
8648
  if (!C1.value.length)
8649
8649
  return;
8650
8650
  const me = b2.value.find((ft) => ft.value === ye);
8651
8651
  if (me)
8652
- return `left: ${me.distance}px;z-index: ${Nt === "th" ? 3 : 1};position: sticky;`;
8652
+ return `left: ${me.distance}px;z-index: ${Ot === "th" ? 3 : 1};position: sticky;`;
8653
8653
  };
8654
- return yt(Q, (ye, Nt) => {
8655
- vt.value && ye === !1 && Nt === !0 && (At(vt.value.page), Se());
8654
+ return yt(Q, (ye, Ot) => {
8655
+ vt.value && ye === !1 && Ot === !0 && (At(vt.value.page), Se());
8656
8656
  }), yt(Pe, (ye) => {
8657
- We.value ? Lt(ye) : mt(1);
8657
+ We.value ? Bt(ye) : mt(1);
8658
8658
  }), yt([ve, b], () => {
8659
8659
  We.value || mt(1);
8660
8660
  }), yt([Mt, bt, oe, ve, b], () => {
@@ -8677,7 +8677,7 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8677
8677
  rowsPerPageOptions: zt,
8678
8678
  rowsPerPageActiveOption: Pe,
8679
8679
  updateRowsPerPageActiveOption: m1
8680
- }), (ye, Nt) => (d(), h("div", {
8680
+ }), (ye, Ot) => (d(), h("div", {
8681
8681
  ref_key: "dataTable",
8682
8682
  ref: Me,
8683
8683
  class: xe(["vue3-easy-data-table", [ye.tableClassName]])
@@ -8736,7 +8736,7 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8736
8736
  ], 14, pl))), 128))
8737
8737
  ])
8738
8738
  ], 2)) : z("", !0),
8739
- H(be) ? ie(ye.$slots, "body", Je(et({ key: 2 }, H(Re))), void 0, !0) : H(Bt).length ? (d(), h("tbody", {
8739
+ H(be) ? ie(ye.$slots, "body", Je(et({ key: 2 }, H(Re))), void 0, !0) : H(Nt).length ? (d(), h("tbody", {
8740
8740
  key: 3,
8741
8741
  class: xe(["vue3-easy-data-table__body", { "row-alternation": ye.alternating }])
8742
8742
  }, [
@@ -8768,7 +8768,7 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8768
8768
  Z2(me, at);
8769
8769
  }
8770
8770
  }, [
8771
- (d(!0), h(Ze, null, it(H(Bt), (at, i2) => (d(), h("td", {
8771
+ (d(!0), h(Ze, null, it(H(Nt), (at, i2) => (d(), h("td", {
8772
8772
  key: i2,
8773
8773
  style: qt(a2(at, "td")),
8774
8774
  class: xe([{
@@ -8840,7 +8840,7 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8840
8840
  Rt(Qe(ye.rowsPerPageMessage) + " ", 1),
8841
8841
  c1(Po, {
8842
8842
  modelValue: H(Pe),
8843
- "onUpdate:modelValue": Nt[0] || (Nt[0] = (me) => Q2(Pe) ? Pe.value = me : null),
8843
+ "onUpdate:modelValue": Ot[0] || (Ot[0] = (me) => Q2(Pe) ? Pe.value = me : null),
8844
8844
  "rows-items": H(zt)
8845
8845
  }, null, 8, ["modelValue", "rows-items"])
8846
8846
  ])),
@@ -8858,7 +8858,7 @@ const dl = (e) => (j1("data-v-32683533"), e = e(), R1(), e), hl = ["id"], pl = [
8858
8858
  "is-last-page": H(E),
8859
8859
  onClickNextPage: H(Ce),
8860
8860
  onClickPrevPage: H(Ye)
8861
- }, St({ _: 2 }, [
8861
+ }, Dt({ _: 2 }, [
8862
8862
  ye.buttonsPagination ? {
8863
8863
  name: "buttonsPagination",
8864
8864
  fn: De(() => [
@@ -8879,7 +8879,7 @@ var bl = /* @__PURE__ */ v1(xl, [["__scopeId", "data-v-32683533"]]);
8879
8879
  typeof window < "u" && window.Vue && window.Vue.createApp({}).component("Vue3EasyDataTable", bl);
8880
8880
  ne([]);
8881
8881
  ne([]);
8882
- Ot([]), Ot([]), Ot(!1), Ot(), Ot(":selection selected");
8882
+ St([]), St([]), St([]), St(!1), St(), St(":selection selected");
8883
8883
  var Zl = { exports: {} };
8884
8884
  /*!
8885
8885
  * Pusher JavaScript Library v8.4.0-rc2
@@ -9463,7 +9463,7 @@ var Zl = { exports: {} };
9463
9463
  (l && l(f, k, u, s) || f) && (s[k] = f);
9464
9464
  }), s;
9465
9465
  }
9466
- function Lt(u) {
9466
+ function Bt(u) {
9467
9467
  var l = [];
9468
9468
  return Me(u, function(s, f) {
9469
9469
  l.push([f, s]);
@@ -9475,7 +9475,7 @@ var Zl = { exports: {} };
9475
9475
  return !0;
9476
9476
  return !1;
9477
9477
  }
9478
- function Bt(u, l) {
9478
+ function Nt(u, l) {
9479
9479
  for (var s = 0; s < u.length; s++)
9480
9480
  if (!l(u[s], s, u))
9481
9481
  return !1;
@@ -9489,7 +9489,7 @@ var Zl = { exports: {} };
9489
9489
  function he(u) {
9490
9490
  var l = _t(u, function(f) {
9491
9491
  return f !== void 0;
9492
- }), s = We(Lt(Zt(l)), C.method("join", "=")).join("&");
9492
+ }), s = We(Bt(Zt(l)), C.method("join", "=")).join("&");
9493
9493
  return s;
9494
9494
  }
9495
9495
  function ke(u) {
@@ -9862,7 +9862,7 @@ var Zl = { exports: {} };
9862
9862
  }
9863
9863
  }, a2 = new je($({}, de, r2)), ye = new je($({}, Tt, r2));
9864
9864
  y1.xdr_streaming = a2, y1.xdr_polling = ye, y1.sockjs = Z2;
9865
- var Nt = y1;
9865
+ var Ot = y1;
9866
9866
  class me extends j {
9867
9867
  constructor() {
9868
9868
  super();
@@ -10649,7 +10649,7 @@ var Zl = { exports: {} };
10649
10649
  };
10650
10650
  }
10651
10651
  function tn(u) {
10652
- return Bt(u, function(l) {
10652
+ return Nt(u, function(l) {
10653
10653
  return !!l.error;
10654
10654
  });
10655
10655
  }
@@ -11072,7 +11072,7 @@ var Zl = { exports: {} };
11072
11072
  ScriptReceivers: i,
11073
11073
  DependenciesReceivers: b,
11074
11074
  getDefaultStrategy: un,
11075
- Transports: Nt,
11075
+ Transports: Ot,
11076
11076
  transportConnectionInitializer: cn,
11077
11077
  HTTPFactory: An,
11078
11078
  TimelineTransport: Mt,
@@ -11620,7 +11620,7 @@ function Al(e) {
11620
11620
  } };
11621
11621
  }
11622
11622
  ne([]), Al();
11623
- ne([]), ne([]);
11623
+ ne([]), ne([]), ne();
11624
11624
  const Tl = {
11625
11625
  width: "224",
11626
11626
  height: "377",
@@ -3,11 +3,13 @@ import type { OnResetSelection } from './index.d';
3
3
  export declare function useActionBar(): {
4
4
  resetSelection: () => void;
5
5
  setSelection: (selection: number[]) => void;
6
+ setTableSelection: (selection: unknown[]) => void;
6
7
  setSelectionText: (selectionText: string) => void;
7
8
  setActions: (actions: Action[]) => void;
8
9
  open: () => void;
9
10
  close: () => void;
10
11
  selection: import("vue").ShallowRef<number[]>;
12
+ tableSelection: import("vue").ShallowRef<unknown[]>;
11
13
  actions: import("vue").ShallowRef<Action[]>;
12
14
  isOpen: import("vue").ShallowRef<boolean>;
13
15
  onResetSelection: import("vue").ShallowRef<OnResetSelection | undefined>;
@@ -4,6 +4,7 @@ interface UseContextMenu<T> {
4
4
  setShortcuts: (shortcuts: Shortcut[]) => void;
5
5
  open: (item: T, event: PointerEvent) => Promise<unknown>;
6
6
  close: () => Promise<void>;
7
+ closeAll: () => void;
7
8
  shortcuts: Ref<Shortcut[]>;
8
9
  instance: Ref<ContextMenuInstance | undefined>;
9
10
  instances: Ref<ContextMenuInstance[]>;