sprintify-ui 0.0.55 → 0.0.56

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.
@@ -1,5 +1,5 @@
1
1
  import kl from "axios";
2
- import { defineComponent as K, inject as be, resolveComponent as Se, openBlock as b, createBlock as ee, withCtx as H, createElementVNode as v, normalizeClass as R, withModifiers as He, renderSlot as Y, createElementBlock as L, createCommentVNode as Q, toDisplayString as W, h as Ee, unref as h, computed as A, ref as N, watch as Ae, Teleport as Pt, createVNode as z, Transition as Ge, TransitionGroup as Rr, Fragment as fe, renderList as ve, normalizeStyle as Pe, onMounted as ge, withDirectives as qe, vShow as lt, normalizeProps as Je, guardReactiveProps as Ze, mergeProps as at, resolveDynamicComponent as Vt, createTextVNode as We, onBeforeUnmount as cn, cloneVNode as Sl, provide as pe, watchEffect as Ue, nextTick as Re, onUnmounted as nt, reactive as $l, isRef as Mt, withKeys as En, vModelText as An, useSlots as Bl, createStaticVNode as Ur, getCurrentInstance as _l, pushScopeId as Cl, popScopeId as Il, createSlots as El, vModelSelect as kn, readonly as rn } from "vue";
2
+ import { defineComponent as K, inject as be, resolveComponent as Se, openBlock as b, createBlock as ee, withCtx as H, createElementVNode as v, normalizeClass as R, withModifiers as He, renderSlot as Y, createElementBlock as L, createCommentVNode as Q, toDisplayString as W, h as Ee, unref as h, computed as A, ref as N, watch as Ae, Teleport as Pt, createVNode as z, Transition as Ge, TransitionGroup as Rr, Fragment as fe, renderList as ve, normalizeStyle as Pe, onMounted as ge, withDirectives as Re, vShow as lt, normalizeProps as Je, guardReactiveProps as Ze, mergeProps as at, resolveDynamicComponent as Vt, createTextVNode as We, onBeforeUnmount as cn, cloneVNode as Sl, provide as pe, watchEffect as Ue, nextTick as Ve, onUnmounted as nt, reactive as $l, isRef as Mt, withKeys as En, vModelText as An, useSlots as Bl, createStaticVNode as Ur, getCurrentInstance as _l, pushScopeId as Cl, popScopeId as Il, createSlots as El, vModelSelect as kn, readonly as rn } from "vue";
3
3
  import { useI18n as et, createI18n as Al } from "vue-i18n";
4
4
  import { defineStore as Zn } from "pinia";
5
5
  import br from "qs";
@@ -106,7 +106,7 @@ const Nl = ["active", "href", "aria-current", "onClick"], ql = ["href"], Xn = /*
106
106
  return this.color == "info" ? "text-blue-400" : this.color == "success" ? "text-green-500" : this.color == "warning" ? "text-yellow-500" : this.color == "danger" ? "text-red-500" : "text-white";
107
107
  }
108
108
  }
109
- }), Ve = (e, r) => {
109
+ }), Ne = (e, r) => {
110
110
  const n = e.__vccOpts || e;
111
111
  for (const [l, o] of r)
112
112
  n[l] = o;
@@ -153,7 +153,7 @@ function zl(e, r, n, l, o, a) {
153
153
  ])
154
154
  ], 2);
155
155
  }
156
- const er = /* @__PURE__ */ Ve(Rl, [["render", zl]]), Tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, mn = (e, r, n, l = "") => {
156
+ const er = /* @__PURE__ */ Ne(Rl, [["render", zl]]), Tt = /^[a-z0-9]+(-[a-z0-9]+)*$/, mn = (e, r, n, l = "") => {
157
157
  const o = e.split(":");
158
158
  if (e.slice(0, 1) === "@") {
159
159
  if (o.length < 2 || o.length > 3)
@@ -1586,7 +1586,7 @@ var Qa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1586
1586
  }), o.d(l, "addLockableTarget", function() {
1587
1587
  return Ce;
1588
1588
  }), o.d(l, "addLockableSelector", function() {
1589
- return Ne;
1589
+ return qe;
1590
1590
  }), o.d(l, "setFillGapMethod", function() {
1591
1591
  return le;
1592
1592
  }), o.d(l, "addFillGapTarget", function() {
@@ -1701,7 +1701,7 @@ var Qa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1701
1701
  });
1702
1702
  }), j() || k();
1703
1703
  }
1704
- }, Ne = function(_) {
1704
+ }, qe = function(_) {
1705
1705
  if (_) {
1706
1706
  var Z = a(_);
1707
1707
  Z.map(function(oe) {
@@ -1917,7 +1917,7 @@ Available fill gap methods: `).concat(Z, "."));
1917
1917
  removeScrollableSelector: Be,
1918
1918
  addScrollableTarget: ue,
1919
1919
  removeScrollableTarget: se,
1920
- addLockableSelector: Ne,
1920
+ addLockableSelector: qe,
1921
1921
  addLockableTarget: Ce,
1922
1922
  addFillGapSelector: je,
1923
1923
  removeFillGapSelector: V,
@@ -2389,7 +2389,7 @@ const us = { class: "relative" }, cs = { class: "relative" }, ds = ["value", "pl
2389
2389
  ])) : Q("", !0)
2390
2390
  ]),
2391
2391
  v("div", ps, [
2392
- qe(v("div", hs, [
2392
+ Re(v("div", hs, [
2393
2393
  v("div", {
2394
2394
  ref_key: "dropdown",
2395
2395
  ref: y,
@@ -2968,7 +2968,7 @@ function Gs(e, r, n, l, o, a) {
2968
2968
  _: 3
2969
2969
  }, 512);
2970
2970
  }
2971
- const Ws = /* @__PURE__ */ Ve(Us, [["render", Gs]]), Qs = ["type", "disabled", "onClick"], Ys = /* @__PURE__ */ K({
2971
+ const Ws = /* @__PURE__ */ Ne(Us, [["render", Gs]]), Qs = ["type", "disabled", "onClick"], Ys = /* @__PURE__ */ K({
2972
2972
  __name: "BaseButtonGroup",
2973
2973
  props: {
2974
2974
  modelValue: {
@@ -3138,7 +3138,7 @@ function Xs(e, r, n, l, o, a) {
3138
3138
  ], 2)
3139
3139
  ]);
3140
3140
  }
3141
- const ir = /* @__PURE__ */ Ve(Js, [["render", Xs]]), ei = {
3141
+ const ir = /* @__PURE__ */ Ne(Js, [["render", Xs]]), ei = {
3142
3142
  key: 1,
3143
3143
  class: "text-red-600"
3144
3144
  }, ti = /* @__PURE__ */ K({
@@ -3235,7 +3235,7 @@ const ir = /* @__PURE__ */ Ve(Js, [["render", Xs]]), ei = {
3235
3235
  "leave-to-class": "transform scale-90 opacity-0"
3236
3236
  }, {
3237
3237
  default: H(() => [
3238
- qe(v("div", ni, [
3238
+ Re(v("div", ni, [
3239
3239
  v("div", ri, [
3240
3240
  h(l) ? (b(), L("div", oi, [
3241
3241
  z(I, {
@@ -3292,7 +3292,7 @@ function ii(e, r, n, l, o, a) {
3292
3292
  Y(e.$slots, "default")
3293
3293
  ], 2);
3294
3294
  }
3295
- const vo = /* @__PURE__ */ Ve(si, [["render", ii]]), Nt = /* @__PURE__ */ K({
3295
+ const vo = /* @__PURE__ */ Ne(si, [["render", ii]]), Nt = /* @__PURE__ */ K({
3296
3296
  __name: "BaseCounter",
3297
3297
  props: {
3298
3298
  count: {
@@ -3600,14 +3600,14 @@ Use "options.replacer" or "options.ignoreUnknown"
3600
3600
  return P;
3601
3601
  }
3602
3602
  function E(c, k, B, F) {
3603
- return w._charsWritten = Ne(function(P) {
3603
+ return w._charsWritten = qe(function(P) {
3604
3604
  for (var G = [], ae = 0; ae < P.length; ae++)
3605
3605
  G.push(255 & P.charCodeAt(ae));
3606
3606
  return G;
3607
3607
  }(k), c, B, F);
3608
3608
  }
3609
3609
  function t(c, k, B, F) {
3610
- return w._charsWritten = Ne(function(P) {
3610
+ return w._charsWritten = qe(function(P) {
3611
3611
  for (var G, ae, ye = [], $e = 0; $e < P.length; $e++)
3612
3612
  ae = P.charCodeAt($e), G = ae >> 8, ae = ae % 256, ye.push(ae), ye.push(G);
3613
3613
  return ye;
@@ -3756,14 +3756,14 @@ list should be an Array.`), c.length === 0)
3756
3756
  break;
3757
3757
  case "utf8":
3758
3758
  case "utf-8":
3759
- G = this, ae = k, ye = B, P = w._charsWritten = Ne(Be(c), G, ae, ye);
3759
+ G = this, ae = k, ye = B, P = w._charsWritten = qe(Be(c), G, ae, ye);
3760
3760
  break;
3761
3761
  case "ascii":
3762
3762
  case "binary":
3763
3763
  P = E(this, c, k, B);
3764
3764
  break;
3765
3765
  case "base64":
3766
- G = this, ae = k, ye = B, P = w._charsWritten = Ne(Ce(c), G, ae, ye);
3766
+ G = this, ae = k, ye = B, P = w._charsWritten = qe(Ce(c), G, ae, ye);
3767
3767
  break;
3768
3768
  case "ucs2":
3769
3769
  case "ucs-2":
@@ -3952,7 +3952,7 @@ list should be an Array.`), c.length === 0)
3952
3952
  function Ce(c) {
3953
3953
  return S.toByteArray(c);
3954
3954
  }
3955
- function Ne(c, k, B, F) {
3955
+ function qe(c, k, B, F) {
3956
3956
  for (var P = 0; P < F && !(P + B >= k.length || P >= c.length); P++)
3957
3957
  k[P + B] = c[P];
3958
3958
  return P;
@@ -4385,7 +4385,7 @@ function dr(e, r = 0) {
4385
4385
  }
4386
4386
  function $o(e) {
4387
4387
  let r = pt(e);
4388
- Re(() => {
4388
+ Ve(() => {
4389
4389
  r && !dr(r.activeElement, 0) && $t(e);
4390
4390
  });
4391
4391
  }
@@ -4801,7 +4801,7 @@ let Gt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ni = K({ name: "Dialog", inheri
4801
4801
  var $, u, m;
4802
4802
  return [...Array.from((u = ($ = T.value) == null ? void 0 : $.querySelectorAll("body > *, [data-headlessui-portal]")) != null ? u : []).filter((d) => !(!(d instanceof HTMLElement) || d.contains(we(I)) || x.panelRef.value && d.contains(x.panelRef.value))), (m = x.panelRef.value) != null ? m : g.value];
4803
4803
  }, ($, u) => {
4804
- x.close(), Re(() => u == null ? void 0 : u.focus());
4804
+ x.close(), Ve(() => u == null ? void 0 : u.focus());
4805
4805
  }, A(() => S.value === 0 && !w.value)), Co((a = T.value) == null ? void 0 : a.defaultView, "keydown", ($) => {
4806
4806
  $.defaultPrevented || $.key === Le.Escape && S.value === 0 && (w.value || ($.preventDefault(), $.stopPropagation(), x.close()));
4807
4807
  }), Ue(($) => {
@@ -4934,13 +4934,13 @@ let Hi = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
4934
4934
  case Le.Space:
4935
4935
  case Le.Enter:
4936
4936
  case Le.ArrowDown:
4937
- y.preventDefault(), y.stopPropagation(), o.openMenu(), Re(() => {
4937
+ y.preventDefault(), y.stopPropagation(), o.openMenu(), Ve(() => {
4938
4938
  var g;
4939
4939
  (g = we(o.itemsRef)) == null || g.focus({ preventScroll: !0 }), o.goToItem(Ke.First);
4940
4940
  });
4941
4941
  break;
4942
4942
  case Le.ArrowUp:
4943
- y.preventDefault(), y.stopPropagation(), o.openMenu(), Re(() => {
4943
+ y.preventDefault(), y.stopPropagation(), o.openMenu(), Ve(() => {
4944
4944
  var g;
4945
4945
  (g = we(o.itemsRef)) == null || g.focus({ preventScroll: !0 }), o.goToItem(Ke.Last);
4946
4946
  });
@@ -4955,7 +4955,7 @@ let Hi = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
4955
4955
  }
4956
4956
  }
4957
4957
  function p(y) {
4958
- e.disabled || (o.menuState.value === 0 ? (o.closeMenu(), Re(() => {
4958
+ e.disabled || (o.menuState.value === 0 ? (o.closeMenu(), Ve(() => {
4959
4959
  var g;
4960
4960
  return (g = we(o.buttonRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
4961
4961
  })) : (y.preventDefault(), o.openMenu(), zi(() => {
@@ -5000,13 +5000,13 @@ let Hi = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
5000
5000
  case Le.PageDown:
5001
5001
  return g.preventDefault(), g.stopPropagation(), o.goToItem(Ke.Last);
5002
5002
  case Le.Escape:
5003
- g.preventDefault(), g.stopPropagation(), o.closeMenu(), Re(() => {
5003
+ g.preventDefault(), g.stopPropagation(), o.closeMenu(), Ve(() => {
5004
5004
  var T;
5005
5005
  return (T = we(o.buttonRef)) == null ? void 0 : T.focus({ preventScroll: !0 });
5006
5006
  });
5007
5007
  break;
5008
5008
  case Le.Tab:
5009
- g.preventDefault(), g.stopPropagation(), o.closeMenu(), Re(() => xi(we(o.buttonRef), g.shiftKey ? wt.Previous : wt.Next));
5009
+ g.preventDefault(), g.stopPropagation(), o.closeMenu(), Ve(() => xi(we(o.buttonRef), g.shiftKey ? wt.Previous : wt.Next));
5010
5010
  break;
5011
5011
  default:
5012
5012
  g.key.length === 1 && (o.search(g.key), s.value = setTimeout(() => o.clearSearch(), 350));
@@ -5035,7 +5035,7 @@ let Hi = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
5035
5035
  let M = (S = (T = we(s)) == null ? void 0 : T.textContent) == null ? void 0 : S.toLowerCase().trim();
5036
5036
  M !== void 0 && (p.value.textValue = M);
5037
5037
  }), ge(() => o.registerItem(a, p)), nt(() => o.unregisterItem(a)), Ue(() => {
5038
- o.menuState.value === 0 && (!i.value || o.activationTrigger.value !== 0 && Re(() => {
5038
+ o.menuState.value === 0 && (!i.value || o.activationTrigger.value !== 0 && Ve(() => {
5039
5039
  var T, S;
5040
5040
  return (S = (T = we(s)) == null ? void 0 : T.scrollIntoView) == null ? void 0 : S.call(T, { block: "nearest" });
5041
5041
  }));
@@ -5515,7 +5515,7 @@ const au = { class: "flex items-center" }, su = {
5515
5515
  $.preventDefault(), E();
5516
5516
  }
5517
5517
  function E() {
5518
- U(l.value), Re(() => {
5518
+ U(l.value), Ve(() => {
5519
5519
  l.value = null;
5520
5520
  });
5521
5521
  }
@@ -5526,7 +5526,7 @@ const au = { class: "flex items-center" }, su = {
5526
5526
  $.preventDefault(), D();
5527
5527
  }
5528
5528
  function D() {
5529
- U(o.value), x(o.value) || Re(() => {
5529
+ U(o.value), x(o.value) || Ve(() => {
5530
5530
  o.value = n.modelValue;
5531
5531
  });
5532
5532
  }
@@ -5538,7 +5538,7 @@ const au = { class: "flex items-center" }, su = {
5538
5538
  }
5539
5539
  return ($, u) => {
5540
5540
  const m = Se("BaseIcon");
5541
- return qe((b(), L("nav", {
5541
+ return Re((b(), L("nav", {
5542
5542
  ref_key: "paginationNode",
5543
5543
  ref: i,
5544
5544
  class: "flex items-start border-t border-slate-200"
@@ -5573,7 +5573,7 @@ const au = { class: "flex items-center" }, su = {
5573
5573
  ], 2),
5574
5574
  h(f) ? (b(), L("div", mu, [
5575
5575
  v("span", pu, W($.$t("sui.page")), 1),
5576
- qe(v("input", {
5576
+ Re(v("input", {
5577
5577
  "onUpdate:modelValue": u[1] || (u[1] = (d) => Mt(o) ? o.value = d : null),
5578
5578
  type: "number",
5579
5579
  min: 1,
@@ -5603,7 +5603,7 @@ const au = { class: "flex items-center" }, su = {
5603
5603
  ]),
5604
5604
  h(f) ? Q("", !0) : (b(), L("div", bu, [
5605
5605
  v("span", wu, W($.$t("sui.go_to_page")), 1),
5606
- qe(v("input", {
5606
+ Re(v("input", {
5607
5607
  "onUpdate:modelValue": u[4] || (u[4] = (d) => Mt(l) ? l.value = d : null),
5608
5608
  type: "number",
5609
5609
  min: 1,
@@ -5729,7 +5729,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
5729
5729
  "leave-active-class": "duration-200"
5730
5730
  }, {
5731
5731
  default: H(() => [
5732
- qe(v("div", null, [
5732
+ Re(v("div", null, [
5733
5733
  v("div", {
5734
5734
  ref_key: "allow",
5735
5735
  ref: l,
@@ -5748,7 +5748,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
5748
5748
  "leave-to-class": "opacity-0"
5749
5749
  }, {
5750
5750
  default: H(() => [
5751
- qe(v("div", {
5751
+ Re(v("div", {
5752
5752
  class: R([e.backdropClass, "fixed inset-0 transition-opacity"]),
5753
5753
  onClick: p[0] || (p[0] = (y) => e.closeOnOutsideClick ? h(o).close() : h(o).refuseAnimation())
5754
5754
  }, null, 2), [
@@ -5767,7 +5767,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
5767
5767
  "leave-to-class": "translate-x-20 opacity-0"
5768
5768
  }, {
5769
5769
  default: H(() => [
5770
- qe(v("div", {
5770
+ Re(v("div", {
5771
5771
  style: Pe({
5772
5772
  maxWidth: h(s)
5773
5773
  }),
@@ -5878,7 +5878,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
5878
5878
  }), Ae(
5879
5879
  () => O.value,
5880
5880
  () => {
5881
- Re(() => {
5881
+ Ve(() => {
5882
5882
  $();
5883
5883
  });
5884
5884
  }
@@ -5968,7 +5968,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
5968
5968
  per_page: ce.value.per_page,
5969
5969
  total: ce.value.total
5970
5970
  };
5971
- }), Ne = A(() => E.value.page && parseInt(E.value.page + "") ? parseInt(E.value.page + "") : 1), le = A(() => Ce.value.last_page), de = A(() => {
5971
+ }), qe = A(() => E.value.page && parseInt(E.value.page + "") ? parseInt(E.value.page + "") : 1), le = A(() => Ce.value.last_page), de = A(() => {
5972
5972
  var F, P;
5973
5973
  return (P = (F = E.value.sort) == null ? void 0 : F.trim().replace(/^(-)/, "")) != null ? P : "";
5974
5974
  }), me = A(() => E.value.sort && E.value.sort.length && E.value.sort[0] == "-" ? "desc" : "asc"), je = A(() => {
@@ -6013,7 +6013,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
6013
6013
  icon: "heroicons:magnifying-glass"
6014
6014
  })
6015
6015
  ]),
6016
- qe(v("input", {
6016
+ Re(v("input", {
6017
6017
  ref_key: "searchInput",
6018
6018
  ref: a,
6019
6019
  "onUpdate:modelValue": P[0] || (P[0] = (ae) => Mt(S) ? S.value = ae : null),
@@ -6074,7 +6074,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
6074
6074
  loading: h(g),
6075
6075
  error: h(I),
6076
6076
  firstLoad: h(y),
6077
- page: h(Ne),
6077
+ page: h(qe),
6078
6078
  sortField: h(de),
6079
6079
  sortDirection: h(me),
6080
6080
  onSortChange: te,
@@ -6091,7 +6091,7 @@ const Iu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Eu = { class: "min
6091
6091
  ]),
6092
6092
  v("div", Vu, [
6093
6093
  z(Ro, {
6094
- "model-value": h(Ne),
6094
+ "model-value": h(qe),
6095
6095
  "last-page": h(le),
6096
6096
  "onUpdate:modelValue": J
6097
6097
  }, null, 8, ["model-value", "last-page"])
@@ -6223,7 +6223,7 @@ const Wu = {
6223
6223
  function Ju(e, r, n, l, o, a) {
6224
6224
  return b(), L("svg", Wu, Yu);
6225
6225
  }
6226
- const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Cl("data-v-756da018"), e = e(), Il(), e), Xu = { class: "relative w-full overflow-hidden" }, ec = { class: "flex flex-col" }, tc = { class: "inline-block min-w-full align-middle" }, nc = { class: "relative min-h-[300px]" }, rc = { class: "min-w-full border-separate border-spacing-0" }, oc = {
6226
+ const Wo = /* @__PURE__ */ Ne(Gu, [["render", Ju], ["__scopeId", "data-v-945515f9"]]), Zu = (e) => (Cl("data-v-756da018"), e = e(), Il(), e), Xu = { class: "relative w-full overflow-hidden" }, ec = { class: "flex flex-col" }, tc = { class: "inline-block min-w-full align-middle" }, nc = { class: "relative min-h-[300px]" }, rc = { class: "min-w-full border-separate border-spacing-0" }, oc = {
6227
6227
  key: 0,
6228
6228
  class: "th"
6229
6229
  }, lc = {
@@ -6346,7 +6346,7 @@ const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6346
6346
  Be();
6347
6347
  }
6348
6348
  ), ge(() => {
6349
- Re(() => {
6349
+ Ve(() => {
6350
6350
  Be();
6351
6351
  });
6352
6352
  });
@@ -6428,14 +6428,14 @@ const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6428
6428
  function Ce(V) {
6429
6429
  y.value.push(V);
6430
6430
  const c = I.value;
6431
- c && c.children && Re(() => {
6431
+ c && c.children && Ve(() => {
6432
6432
  const k = y.value.map((F) => `[data-id="${F.newKey}"]`).join(","), B = Array.from(c.querySelectorAll(k)).map(
6433
6433
  (F) => F.getAttribute("data-id")
6434
6434
  );
6435
6435
  y.value = y.value.sort((F, P) => B.indexOf(`${F.newKey}`) - B.indexOf(`${P.newKey}`));
6436
6436
  });
6437
6437
  }
6438
- function Ne(V) {
6438
+ function qe(V) {
6439
6439
  y.value = y.value.filter(
6440
6440
  (c) => c.newKey !== V.newKey
6441
6441
  );
@@ -6450,7 +6450,7 @@ const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6450
6450
  function je() {
6451
6451
  return g.value++;
6452
6452
  }
6453
- return pe("addColumn", Ce), pe("removeColumn", Ne), pe("nextSequence", je), r({
6453
+ return pe("addColumn", Ce), pe("removeColumn", qe), pe("nextSequence", je), r({
6454
6454
  newColumns: E
6455
6455
  }), (V, c) => {
6456
6456
  const k = Se("BaseIcon");
@@ -6504,7 +6504,7 @@ const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6504
6504
  }])
6505
6505
  }, [
6506
6506
  v("span", uc, W(B.label), 1),
6507
- qe(v("span", null, [
6507
+ Re(v("span", null, [
6508
6508
  z(k, {
6509
6509
  icon: "mdi:chevron-down",
6510
6510
  class: R(["h-5 w-5 duration-300", {
@@ -6700,7 +6700,7 @@ const Wo = /* @__PURE__ */ Ve(Gu, [["render", Ju], ["__scopeId", "data-v-945515f
6700
6700
  };
6701
6701
  }
6702
6702
  });
6703
- const Qo = /* @__PURE__ */ Ve(Ic, [["__scopeId", "data-v-756da018"]]), Yo = K({
6703
+ const Qo = /* @__PURE__ */ Ne(Ic, [["__scopeId", "data-v-756da018"]]), Yo = K({
6704
6704
  name: "BaseTableColumn",
6705
6705
  props: {
6706
6706
  label: {
@@ -6847,7 +6847,7 @@ const Qo = /* @__PURE__ */ Ve(Ic, [["__scopeId", "data-v-756da018"]]), Yo = K({
6847
6847
  function Fc(e, r) {
6848
6848
  return b(), L("svg", Mc, jc);
6849
6849
  }
6850
- const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify-end text-right" }, Vc = { class: "btn btn-white bg-transparent p-2" }, Nc = ["disabled", "onClick"], qc = {
6850
+ const Dc = /* @__PURE__ */ Ne(Lc, [["render", Fc]]), Pc = { class: "flex justify-end text-right" }, Vc = { class: "btn btn-white bg-transparent p-2" }, Nc = ["disabled", "onClick"], qc = {
6851
6851
  key: 0,
6852
6852
  class: "flex items-center justify-center py-16"
6853
6853
  }, Rc = { class: "flex flex-col items-center justify-center" }, Uc = { class: "mt-3 text-center text-sm text-slate-600" }, zc = {
@@ -7402,7 +7402,7 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
7402
7402
  return (S, M) => (b(), L("div", null, [
7403
7403
  v("div", td, [
7404
7404
  v("div", nd, [
7405
- qe(v("select", {
7405
+ Re(v("select", {
7406
7406
  "onUpdate:modelValue": M[0] || (M[0] = (w) => h(f).year = w),
7407
7407
  disabled: e.disabled,
7408
7408
  required: e.required,
@@ -7426,7 +7426,7 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
7426
7426
  ])
7427
7427
  ]),
7428
7428
  v("div", ad, [
7429
- qe(v("select", {
7429
+ Re(v("select", {
7430
7430
  "onUpdate:modelValue": M[2] || (M[2] = (w) => h(f).month = w),
7431
7431
  disabled: e.disabled,
7432
7432
  required: e.required,
@@ -7450,7 +7450,7 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
7450
7450
  ])
7451
7451
  ]),
7452
7452
  v("div", cd, [
7453
- qe(v("select", {
7453
+ Re(v("select", {
7454
7454
  "onUpdate:modelValue": M[4] || (M[4] = (w) => h(f).day = w),
7455
7455
  disabled: h(T),
7456
7456
  required: e.required,
@@ -7535,7 +7535,7 @@ function Sd(e, r) {
7535
7535
  Y(e.$slots, "default")
7536
7536
  ]);
7537
7537
  }
7538
- const $d = /* @__PURE__ */ Ve(xd, [["render", Sd]]), Bd = K({
7538
+ const $d = /* @__PURE__ */ Ne(xd, [["render", Sd]]), Bd = K({
7539
7539
  props: {
7540
7540
  required: {
7541
7541
  default: !1,
@@ -7562,7 +7562,7 @@ function Cd(e, r, n, l, o, a) {
7562
7562
  e.required ? (b(), L("span", _d, " *")) : Q("", !0)
7563
7563
  ], 2);
7564
7564
  }
7565
- const Jo = /* @__PURE__ */ Ve(Bd, [["render", Cd]]), Id = ["data-name"], Zo = /* @__PURE__ */ K({
7565
+ const Jo = /* @__PURE__ */ Ne(Bd, [["render", Cd]]), Id = ["data-name"], Zo = /* @__PURE__ */ K({
7566
7566
  __name: "BaseField",
7567
7567
  props: {
7568
7568
  name: {
@@ -8059,7 +8059,7 @@ function Dd(e, r, n, l, o, a) {
8059
8059
  }, null, 40, Fd)
8060
8060
  ], 64);
8061
8061
  }
8062
- const Xo = /* @__PURE__ */ Ve(Od, [["render", Dd]]), Pd = {}, Vd = {
8062
+ const Xo = /* @__PURE__ */ Ne(Od, [["render", Dd]]), Pd = {}, Vd = {
8063
8063
  class: "animate-spin",
8064
8064
  viewBox: "0 0 24 24"
8065
8065
  }, Nd = /* @__PURE__ */ v("path", {
@@ -8071,7 +8071,7 @@ const Xo = /* @__PURE__ */ Ve(Od, [["render", Dd]]), Pd = {}, Vd = {
8071
8071
  function Rd(e, r) {
8072
8072
  return b(), L("svg", Vd, qd);
8073
8073
  }
8074
- const Ud = /* @__PURE__ */ Ve(Pd, [["render", Rd]]), zd = {
8074
+ const Ud = /* @__PURE__ */ Ne(Pd, [["render", Rd]]), zd = {
8075
8075
  key: 0,
8076
8076
  class: "absolute inset-0 flex h-full w-full items-center justify-center"
8077
8077
  }, el = /* @__PURE__ */ K({
@@ -8666,7 +8666,7 @@ const Jd = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
8666
8666
  }, se = () => {
8667
8667
  Be("");
8668
8668
  }, ce = () => {
8669
- Re(() => {
8669
+ Ve(() => {
8670
8670
  I.value = Math.max(
8671
8671
  0,
8672
8672
  Math.min(I.value, O.value.length - 1)
@@ -8675,17 +8675,17 @@ const Jd = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
8675
8675
  }, Be = (le) => {
8676
8676
  p.value = le, r("typing", le);
8677
8677
  }, Ce = N(null);
8678
- function Ne() {
8678
+ function qe() {
8679
8679
  var de, me;
8680
8680
  const le = (me = (de = Ce.value) == null ? void 0 : de.querySelectorAll("button, a")) != null ? me : [];
8681
8681
  D(le);
8682
8682
  }
8683
8683
  return ge(() => {
8684
- Ne();
8684
+ qe();
8685
8685
  }), dn(
8686
8686
  Ce,
8687
8687
  () => {
8688
- Ne();
8688
+ qe();
8689
8689
  },
8690
8690
  { attributes: !1, childList: !0 }
8691
8691
  ), (le, de) => (b(), L("div", null, [
@@ -8732,7 +8732,7 @@ const Jd = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
8732
8732
  ])
8733
8733
  ], 2),
8734
8734
  v("div", of, [
8735
- qe(v("div", lf, [
8735
+ Re(v("div", lf, [
8736
8736
  v("div", {
8737
8737
  ref_key: "dropdown",
8738
8738
  ref: g,
@@ -9350,7 +9350,7 @@ const Jd = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
9350
9350
  "leave-active-class": "duration-200"
9351
9351
  }, {
9352
9352
  default: H(() => [
9353
- qe(v("div", null, [
9353
+ Re(v("div", null, [
9354
9354
  v("div", {
9355
9355
  ref_key: "allow",
9356
9356
  ref: l,
@@ -9624,7 +9624,7 @@ function Gf(e, r, n, l, o, a) {
9624
9624
  ])
9625
9625
  ], 2);
9626
9626
  }
9627
- const Wf = /* @__PURE__ */ Ve(Rf, [["render", Gf]]), Qf = ["value", "type", "name", "disabled", "placeholder", "required"], Yf = { class: "flex shrink-0 pl-3" }, Jf = ["disabled"], Zf = /* @__PURE__ */ K({
9627
+ const Wf = /* @__PURE__ */ Ne(Rf, [["render", Gf]]), Qf = ["value", "type", "name", "disabled", "placeholder", "required"], Yf = { class: "flex shrink-0 pl-3" }, Jf = ["disabled"], Zf = /* @__PURE__ */ K({
9628
9628
  __name: "BasePassword",
9629
9629
  props: {
9630
9630
  modelValue: {
@@ -9766,7 +9766,7 @@ function om(e, r, n, l, o, a) {
9766
9766
  }, W(Math.round(e.progress * 100)) + "% ", 13, rm)
9767
9767
  ], 8, em);
9768
9768
  }
9769
- const lm = /* @__PURE__ */ Ve(Xf, [["render", om], ["__scopeId", "data-v-e5ae83e3"]]), am = { class: "space-y-3" }, sm = ["for"], im = ["id", "name", "checked", "required", "disabled", "value", "onInput"], um = { class: "text-sm" }, cm = /* @__PURE__ */ K({
9769
+ const lm = /* @__PURE__ */ Ne(Xf, [["render", om], ["__scopeId", "data-v-e5ae83e3"]]), am = { class: "space-y-3" }, sm = ["for"], im = ["id", "name", "checked", "required", "disabled", "value", "onInput"], um = { class: "text-sm" }, cm = /* @__PURE__ */ K({
9770
9770
  __name: "BaseRadioGroup",
9771
9771
  props: {
9772
9772
  modelValue: {
@@ -9872,7 +9872,7 @@ const lm = /* @__PURE__ */ Ve(Xf, [["render", om], ["__scopeId", "data-v-e5ae83e
9872
9872
  s(), dn(
9873
9873
  n.value,
9874
9874
  () => {
9875
- l.value = !1, Re(() => {
9875
+ l.value = !1, Ve(() => {
9876
9876
  s();
9877
9877
  });
9878
9878
  },
@@ -9954,7 +9954,11 @@ const lm = /* @__PURE__ */ Ve(Xf, [["render", om], ["__scopeId", "data-v-e5ae83e
9954
9954
  }
9955
9955
  Ae(
9956
9956
  () => n.modelValue,
9957
- () => M()
9957
+ () => {
9958
+ Ve(() => {
9959
+ M();
9960
+ });
9961
+ }
9958
9962
  ), ge(() => {
9959
9963
  M();
9960
9964
  });
@@ -10085,7 +10089,7 @@ function _m(e, r) {
10085
10089
  ])
10086
10090
  ]);
10087
10091
  }
10088
- const Cm = /* @__PURE__ */ Ve(xm, [["render", _m]]), Im = ["href", "disabled", "onClick"], Em = /* @__PURE__ */ K({
10092
+ const Cm = /* @__PURE__ */ Ne(xm, [["render", _m]]), Im = ["href", "disabled", "onClick"], Em = /* @__PURE__ */ K({
10089
10093
  __name: "BaseSideNavigationItem",
10090
10094
  props: {
10091
10095
  to: {
@@ -10203,7 +10207,7 @@ function Fm(e, r, n, l, o, a) {
10203
10207
  ])
10204
10208
  ], 2);
10205
10209
  }
10206
- const Dm = /* @__PURE__ */ Ve(Am, [["render", Fm]]), Pm = { class: "inline-flex items-center space-x-3" }, Vm = /* @__PURE__ */ K({
10210
+ const Dm = /* @__PURE__ */ Ne(Am, [["render", Fm]]), Pm = { class: "inline-flex items-center space-x-3" }, Vm = /* @__PURE__ */ K({
10207
10211
  __name: "BaseSwitch",
10208
10212
  props: {
10209
10213
  modelValue: {
@@ -10358,7 +10362,7 @@ function Wm(e, r) {
10358
10362
  ])
10359
10363
  ]);
10360
10364
  }
10361
- const Qm = /* @__PURE__ */ Ve(Um, [["render", Wm]]), Ym = { role: "presentation" }, Jm = ["href", "onClick"], Zm = { class: "whitespace-nowrap" }, Xm = /* @__PURE__ */ K({
10365
+ const Qm = /* @__PURE__ */ Ne(Um, [["render", Wm]]), Ym = { role: "presentation" }, Jm = ["href", "onClick"], Zm = { class: "whitespace-nowrap" }, Xm = /* @__PURE__ */ K({
10362
10366
  __name: "BaseTabItem",
10363
10367
  props: {
10364
10368
  to: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -127,7 +127,14 @@ function validModelValue(): boolean {
127
127
  */
128
128
  watch(
129
129
  () => props.modelValue,
130
- () => validateAndFixModelVale()
130
+ () => {
131
+ // Let the select re-render before validating
132
+ // The validation depends on the select options,
133
+ // which needs to be rendered first
134
+ nextTick(() => {
135
+ validateAndFixModelVale();
136
+ });
137
+ }
131
138
  );
132
139
 
133
140
  /**