sprintify-ui 0.0.70 → 0.0.71

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 Sl from "axios";
2
- import { defineComponent as K, inject as be, resolveComponent as Se, openBlock as w, createBlock as ee, withCtx as H, createElementVNode as v, normalizeClass as q, withModifiers as Ue, renderSlot as Q, createElementBlock as A, createCommentVNode as W, toDisplayString as G, h as Ee, unref as h, computed as I, ref as V, watch as Le, Teleport as Pt, createVNode as U, Transition as We, TransitionGroup as Ur, Fragment as fe, renderList as ve, normalizeStyle as je, onMounted as ye, withDirectives as qe, vShow as lt, normalizeProps as Je, guardReactiveProps as Ze, mergeProps as at, resolveDynamicComponent as Vt, createTextVNode as ze, onBeforeUnmount as fn, cloneVNode as $l, provide as pe, watchEffect as He, nextTick as Re, onUnmounted as nt, reactive as Bl, isRef as Mt, withKeys as An, vModelText as Tn, useSlots as Cl, createStaticVNode as zr, getCurrentInstance as _l, pushScopeId as Il, popScopeId as El, createSlots as Al, vModelSelect as Sn, readonly as on } from "vue";
2
+ import { defineComponent as K, inject as be, resolveComponent as Se, openBlock as w, createBlock as ee, withCtx as H, createElementVNode as v, normalizeClass as q, withModifiers as Ue, renderSlot as Q, createElementBlock as A, createCommentVNode as W, toDisplayString as G, h as Ee, unref as h, computed as I, ref as V, watch as Ae, Teleport as Pt, createVNode as U, Transition as We, TransitionGroup as Ur, Fragment as fe, renderList as ve, normalizeStyle as je, onMounted as ye, withDirectives as qe, vShow as lt, normalizeProps as Je, guardReactiveProps as Ze, mergeProps as at, resolveDynamicComponent as Vt, createTextVNode as ze, onBeforeUnmount as fn, cloneVNode as $l, provide as pe, watchEffect as He, nextTick as Re, onUnmounted as nt, reactive as Bl, isRef as Mt, withKeys as An, vModelText as Tn, useSlots as Cl, createStaticVNode as zr, getCurrentInstance as _l, pushScopeId as Il, popScopeId as El, createSlots as Al, vModelSelect as Sn, readonly as on } from "vue";
3
3
  import { useI18n as et, createI18n as Tl } from "vue-i18n";
4
4
  import { defineStore as Xn } from "pinia";
5
5
  import br from "qs";
@@ -1748,7 +1748,7 @@ Available fill gap methods: `).concat(J, "."));
1748
1748
  J.map(function(oe) {
1749
1749
  m.fillGapSelectors = m.fillGapSelectors.filter(function(ie) {
1750
1750
  return ie !== oe;
1751
- }), m.scroll || Ae(oe);
1751
+ }), m.scroll || Te(oe);
1752
1752
  });
1753
1753
  }
1754
1754
  }, u = function() {
@@ -1782,7 +1782,7 @@ Available fill gap methods: `).concat(J, "."));
1782
1782
  });
1783
1783
  }, $e = function() {
1784
1784
  m.fillGapSelectors.map(function(B) {
1785
- Ae(B);
1785
+ Te(B);
1786
1786
  });
1787
1787
  }, De = function(B) {
1788
1788
  var J = document.querySelectorAll(B), oe = m.lockableSelectors.indexOf(B) !== -1;
@@ -1813,7 +1813,7 @@ Available fill gap methods: `).concat(J, "."));
1813
1813
  B.style.paddingRight = "".concat(ut + oe, "px");
1814
1814
  }
1815
1815
  }
1816
- }, Ae = function(B) {
1816
+ }, Te = function(B) {
1817
1817
  var J = document.querySelectorAll(B);
1818
1818
  p(J, function(oe) {
1819
1819
  ke(oe);
@@ -1960,7 +1960,7 @@ const Ja = {
1960
1960
  i.value[d.id] = "animate-shake";
1961
1961
  });
1962
1962
  }
1963
- return Le(
1963
+ return Ae(
1964
1964
  () => l.value.length,
1965
1965
  () => {
1966
1966
  l.value.length == 0 ? fo() : co();
@@ -2268,7 +2268,7 @@ const cs = { class: "relative" }, ds = { class: "relative" }, fs = ["value", "pl
2268
2268
  var N;
2269
2269
  return (N = y.value[Math.min(p.value, y.value.length - 1)]) != null ? N : null;
2270
2270
  });
2271
- Le(
2271
+ Ae(
2272
2272
  () => S.value,
2273
2273
  () => {
2274
2274
  var N;
@@ -2789,13 +2789,13 @@ const cs = { class: "relative" }, ds = { class: "relative" }, fs = ["value", "pl
2789
2789
  emits: ["update:modelValue"],
2790
2790
  setup(e, { emit: r }) {
2791
2791
  const n = e, l = xe.http, o = V(n.currentModel);
2792
- Le(
2792
+ Ae(
2793
2793
  () => n.currentModel,
2794
2794
  (s, i) => {
2795
2795
  o.value = s;
2796
2796
  },
2797
2797
  { deep: !0 }
2798
- ), Le(
2798
+ ), Ae(
2799
2799
  () => n.modelValue,
2800
2800
  (s, i) => {
2801
2801
  if (s != i && n.showRouteUrl != null) {
@@ -3754,13 +3754,13 @@ list should be an Array.`), u.length === 0)
3754
3754
  var D, R, ae, he, $e = this.length - b;
3755
3755
  switch ((!_ || $e < (_ = Number(_))) && (_ = $e), O = String(O || "utf8").toLowerCase()) {
3756
3756
  case "hex":
3757
- D = function(De, Ie, Ae, ke) {
3758
- Ae = Number(Ae) || 0;
3759
- var Ce = De.length - Ae;
3757
+ D = function(De, Ie, Te, ke) {
3758
+ Te = Number(Te) || 0;
3759
+ var Ce = De.length - Te;
3760
3760
  (!ke || Ce < (ke = Number(ke))) && (ke = Ce), X((Ce = Ie.length) % 2 == 0, "Invalid hex string"), Ce / 2 < ke && (ke = Ce / 2);
3761
3761
  for (var it = 0; it < ke; it++) {
3762
3762
  var Ut = parseInt(Ie.substr(2 * it, 2), 16);
3763
- X(!isNaN(Ut), "Invalid hex string"), De[Ae + it] = Ut;
3763
+ X(!isNaN(Ut), "Invalid hex string"), De[Te + it] = Ut;
3764
3764
  }
3765
3765
  return y._charsWritten = 2 * it, it;
3766
3766
  }(this, u, b, _);
@@ -3793,8 +3793,8 @@ list should be an Array.`), u.length === 0)
3793
3793
  switch (u) {
3794
3794
  case "hex":
3795
3795
  O = function($e, De, Ie) {
3796
- var Ae = $e.length;
3797
- (!De || De < 0) && (De = 0), (!Ie || Ie < 0 || Ae < Ie) && (Ie = Ae);
3796
+ var Te = $e.length;
3797
+ (!De || De < 0) && (De = 0), (!Ie || Ie < 0 || Te < Ie) && (Ie = Te);
3798
3798
  for (var ke = "", Ce = De; Ce < Ie; Ce++)
3799
3799
  ke += ce($e[Ce]);
3800
3800
  return ke;
@@ -3803,11 +3803,11 @@ list should be an Array.`), u.length === 0)
3803
3803
  case "utf8":
3804
3804
  case "utf-8":
3805
3805
  O = function($e, De, Ie) {
3806
- var Ae = "", ke = "";
3806
+ var Te = "", ke = "";
3807
3807
  Ie = Math.min($e.length, Ie);
3808
3808
  for (var Ce = De; Ce < Ie; Ce++)
3809
- $e[Ce] <= 127 ? (Ae += le(ke) + String.fromCharCode($e[Ce]), ke = "") : ke += "%" + $e[Ce].toString(16);
3810
- return Ae + le(ke);
3809
+ $e[Ce] <= 127 ? (Te += le(ke) + String.fromCharCode($e[Ce]), ke = "") : ke += "%" + $e[Ce].toString(16);
3810
+ return Te + le(ke);
3811
3811
  }(he, b, _);
3812
3812
  break;
3813
3813
  case "ascii":
@@ -3822,8 +3822,8 @@ list should be an Array.`), u.length === 0)
3822
3822
  case "utf16le":
3823
3823
  case "utf-16le":
3824
3824
  O = function($e, De, Ie) {
3825
- for (var Ae = $e.slice(De, Ie), ke = "", Ce = 0; Ce < Ae.length; Ce += 2)
3826
- ke += String.fromCharCode(Ae[Ce] + 256 * Ae[Ce + 1]);
3825
+ for (var Te = $e.slice(De, Ie), ke = "", Ce = 0; Ce < Te.length; Ce += 2)
3826
+ ke += String.fromCharCode(Te[Ce] + 256 * Te[Ce + 1]);
3827
3827
  return ke;
3828
3828
  }(he, b, _);
3829
3829
  break;
@@ -4284,7 +4284,7 @@ function pi() {
4284
4284
  function Ye() {
4285
4285
  return pi();
4286
4286
  }
4287
- var Te = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Te || {});
4287
+ var Le = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Le || {});
4288
4288
  function hi(e) {
4289
4289
  throw new Error("Unexpected object: " + e);
4290
4290
  }
@@ -4563,7 +4563,7 @@ function Ii({ ownerDocument: e }, r) {
4563
4563
  !n.value || ($t(n.value), n.value = null);
4564
4564
  }
4565
4565
  ye(() => {
4566
- Le(r, (a, s) => {
4566
+ Ae(r, (a, s) => {
4567
4567
  a !== s && (a ? l() : o());
4568
4568
  }, { immediate: !0 });
4569
4569
  }), nt(o);
@@ -4571,7 +4571,7 @@ function Ii({ ownerDocument: e }, r) {
4571
4571
  function Ei({ ownerDocument: e, container: r, initialFocus: n }, l) {
4572
4572
  let o = V(null), a = V(!1);
4573
4573
  return ye(() => a.value = !0), nt(() => a.value = !1), ye(() => {
4574
- Le([r, n, l], (s, i) => {
4574
+ Ae([r, n, l], (s, i) => {
4575
4575
  if (s.every((d, x) => (i == null ? void 0 : i[x]) === d) || !l.value)
4576
4576
  return;
4577
4577
  let p = we(r);
@@ -4713,7 +4713,7 @@ function Di({ type: e, enabled: r, element: n, onUpdate: l }) {
4713
4713
  l == null || l(...s), o(...s);
4714
4714
  }
4715
4715
  ye(() => {
4716
- Le(r, (s, i) => {
4716
+ Ae(r, (s, i) => {
4717
4717
  s ? a(0, e, n) : i === !0 && a(1, e, n);
4718
4718
  }, { immediate: !0, flush: "sync" });
4719
4719
  }), nt(() => {
@@ -4814,7 +4814,7 @@ let Wt = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", qi = K({ name: "Dialog", inheri
4814
4814
  }, ($, c) => {
4815
4815
  k.close(), Re(() => c == null ? void 0 : c.focus());
4816
4816
  }, I(() => S.value === 0 && !y.value)), Io((a = L.value) == null ? void 0 : a.defaultView, "keydown", ($) => {
4817
- $.defaultPrevented || $.key === Te.Escape && S.value === 0 && (y.value || ($.preventDefault(), $.stopPropagation(), k.close()));
4817
+ $.defaultPrevented || $.key === Le.Escape && S.value === 0 && (y.value || ($.preventDefault(), $.stopPropagation(), k.close()));
4818
4818
  }), He(($) => {
4819
4819
  var c;
4820
4820
  if (S.value !== 0 || T)
@@ -4942,15 +4942,15 @@ let Ki = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
4942
4942
  l({ el: o.buttonRef, $el: o.buttonRef });
4943
4943
  function s(x) {
4944
4944
  switch (x.key) {
4945
- case Te.Space:
4946
- case Te.Enter:
4947
- case Te.ArrowDown:
4945
+ case Le.Space:
4946
+ case Le.Enter:
4947
+ case Le.ArrowDown:
4948
4948
  x.preventDefault(), x.stopPropagation(), o.openMenu(), Re(() => {
4949
4949
  var g;
4950
4950
  (g = we(o.itemsRef)) == null || g.focus({ preventScroll: !0 }), o.goToItem(Ge.First);
4951
4951
  });
4952
4952
  break;
4953
- case Te.ArrowUp:
4953
+ case Le.ArrowUp:
4954
4954
  x.preventDefault(), x.stopPropagation(), o.openMenu(), Re(() => {
4955
4955
  var g;
4956
4956
  (g = we(o.itemsRef)) == null || g.focus({ preventScroll: !0 }), o.goToItem(Ge.Last);
@@ -4960,7 +4960,7 @@ let Ki = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
4960
4960
  }
4961
4961
  function i(x) {
4962
4962
  switch (x.key) {
4963
- case Te.Space:
4963
+ case Le.Space:
4964
4964
  x.preventDefault();
4965
4965
  break;
4966
4966
  }
@@ -4990,33 +4990,33 @@ let Ki = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
4990
4990
  function i(g) {
4991
4991
  var E;
4992
4992
  switch (s.value && clearTimeout(s.value), g.key) {
4993
- case Te.Space:
4993
+ case Le.Space:
4994
4994
  if (o.searchQuery.value !== "")
4995
4995
  return g.preventDefault(), g.stopPropagation(), o.search(g.key);
4996
- case Te.Enter:
4996
+ case Le.Enter:
4997
4997
  if (g.preventDefault(), g.stopPropagation(), o.activeItemIndex.value !== null) {
4998
4998
  let L = o.items.value[o.activeItemIndex.value];
4999
4999
  (E = we(L.dataRef.domRef)) == null || E.click();
5000
5000
  }
5001
5001
  o.closeMenu(), Bo(we(o.buttonRef));
5002
5002
  break;
5003
- case Te.ArrowDown:
5003
+ case Le.ArrowDown:
5004
5004
  return g.preventDefault(), g.stopPropagation(), o.goToItem(Ge.Next);
5005
- case Te.ArrowUp:
5005
+ case Le.ArrowUp:
5006
5006
  return g.preventDefault(), g.stopPropagation(), o.goToItem(Ge.Previous);
5007
- case Te.Home:
5008
- case Te.PageUp:
5007
+ case Le.Home:
5008
+ case Le.PageUp:
5009
5009
  return g.preventDefault(), g.stopPropagation(), o.goToItem(Ge.First);
5010
- case Te.End:
5011
- case Te.PageDown:
5010
+ case Le.End:
5011
+ case Le.PageDown:
5012
5012
  return g.preventDefault(), g.stopPropagation(), o.goToItem(Ge.Last);
5013
- case Te.Escape:
5013
+ case Le.Escape:
5014
5014
  g.preventDefault(), g.stopPropagation(), o.closeMenu(), Re(() => {
5015
5015
  var L;
5016
5016
  return (L = we(o.buttonRef)) == null ? void 0 : L.focus({ preventScroll: !0 });
5017
5017
  });
5018
5018
  break;
5019
- case Te.Tab:
5019
+ case Le.Tab:
5020
5020
  g.preventDefault(), g.stopPropagation(), o.closeMenu(), Re(() => ki(we(o.buttonRef), g.shiftKey ? wt.Previous : wt.Next));
5021
5021
  break;
5022
5022
  default:
@@ -5026,7 +5026,7 @@ let Ki = K({ name: "Menu", props: { as: { type: [Object, String], default: "temp
5026
5026
  }
5027
5027
  function p(g) {
5028
5028
  switch (g.key) {
5029
- case Te.Space:
5029
+ case Le.Space:
5030
5030
  g.preventDefault();
5031
5031
  break;
5032
5032
  }
@@ -5112,7 +5112,7 @@ let Yi = K({ name: "Label", props: { as: { type: [Object, String], default: "lab
5112
5112
  y.preventDefault(), d();
5113
5113
  }
5114
5114
  function S(y) {
5115
- y.key === Te.Space ? (y.preventDefault(), d()) : y.key === Te.Enter && Si(y.currentTarget);
5115
+ y.key === Le.Space ? (y.preventDefault(), d()) : y.key === Le.Enter && Si(y.currentTarget);
5116
5116
  }
5117
5117
  function M(y) {
5118
5118
  y.preventDefault();
@@ -5233,7 +5233,7 @@ let qo = _t.RenderStrategy, tn = K({ props: { as: { type: [Object, String], defa
5233
5233
  })));
5234
5234
  }
5235
5235
  return ye(() => {
5236
- Le([p], (c, m, f) => {
5236
+ Ae([p], (c, m, f) => {
5237
5237
  $(f), E.value = !1;
5238
5238
  }, { immediate: !0 });
5239
5239
  }), pe(pr, M), xo(I(() => Qe(s.value, { visible: tt.Open, hidden: tt.Closed }))), () => {
@@ -5472,7 +5472,7 @@ const su = { class: "flex items-center" }, iu = {
5472
5472
  emits: ["update:model-value"],
5473
5473
  setup(e, { emit: r }) {
5474
5474
  const n = e, l = V(null), o = V(n.modelValue);
5475
- Le(
5475
+ Ae(
5476
5476
  () => n.modelValue,
5477
5477
  ($) => {
5478
5478
  o.value = $;
@@ -5655,7 +5655,7 @@ function hr(e) {
5655
5655
  }
5656
5656
  function zo(e, r, n) {
5657
5657
  const l = V(!1);
5658
- Le(
5658
+ Ae(
5659
5659
  () => e.value,
5660
5660
  () => {
5661
5661
  o();
@@ -5886,7 +5886,7 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
5886
5886
  childList: !0
5887
5887
  }), ye(() => {
5888
5888
  $();
5889
- }), Le(
5889
+ }), Ae(
5890
5890
  () => j.value,
5891
5891
  () => {
5892
5892
  Re(() => {
@@ -5938,11 +5938,16 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
5938
5938
  const D = Pe(T.value);
5939
5939
  D.page = 1, D.search = S.value, C(D);
5940
5940
  }, 350);
5941
- Le(
5941
+ Ae(
5942
5942
  () => s.query,
5943
5943
  () => {
5944
5944
  ue();
5945
5945
  }
5946
+ ), Ae(
5947
+ () => n.urlQuery,
5948
+ () => {
5949
+ se();
5950
+ }
5946
5951
  );
5947
5952
  function Z() {
5948
5953
  return xe.parseQueryString(window.location.search.replace(/^(\?)/, ""));
@@ -5954,8 +5959,8 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
5954
5959
  R != y && (y = R, T.value = D, a.value && a.value !== document.activeElement && u(), se());
5955
5960
  }
5956
5961
  function se(O = !1) {
5957
- var Ae;
5958
- const D = re.value.split(/[?#]/), R = D[0], ae = (Ae = D[1]) != null ? Ae : null, he = xe.parseQueryString(ae), $e = wr(
5962
+ var Te;
5963
+ const D = re.value.split(/[?#]/), R = D[0], ae = (Te = D[1]) != null ? Te : null, he = xe.parseQueryString(ae), $e = wr(
5959
5964
  Pe(T.value),
5960
5965
  Pe(n.urlQuery),
5961
5966
  Pe(he)
@@ -6340,18 +6345,18 @@ const Qo = /* @__PURE__ */ Ve(Wu, [["render", Zu], ["__scopeId", "data-v-945515f
6340
6345
  let u = t.value.length;
6341
6346
  return u += l.checkable ? 1 : 0, u += l.detailed ? 1 : 0, u;
6342
6347
  }), P = I(() => l.detailed);
6343
- Le(
6348
+ Ae(
6344
6349
  () => l.checkedRows,
6345
6350
  (u) => {
6346
6351
  s.value = [...u];
6347
6352
  },
6348
6353
  { deep: !0 }
6349
- ), Le(
6354
+ ), Ae(
6350
6355
  () => l.sortField,
6351
6356
  () => {
6352
6357
  Be();
6353
6358
  }
6354
- ), Le(
6359
+ ), Ae(
6355
6360
  () => l.sortDirection,
6356
6361
  () => {
6357
6362
  Be();
@@ -6988,7 +6993,7 @@ const Pc = /* @__PURE__ */ Ve(Mc, [["render", Dc]]), Vc = { class: "flex justify
6988
6993
  localStorage.getItem(t) + ""
6989
6994
  );
6990
6995
  j && Xe(j) && j.length > 0 && (y.value = j);
6991
- const P = Le(
6996
+ const P = Ae(
6992
6997
  () => p.value,
6993
6998
  () => {
6994
6999
  p.value && p.value.newColumns.length && y.value.length == 0 && (y.value = p.value.newColumns.filter((c) => !c.optional).map((c) => c.newKey), P());
@@ -7237,7 +7242,7 @@ const Pc = /* @__PURE__ */ Ve(Mc, [["render", Dc]]), Vc = { class: "flex justify
7237
7242
  var S;
7238
7243
  return n.modelValue && (S = ot.fromISO(n.modelValue, { zone: "utc" }).toISODate()) != null ? S : null;
7239
7244
  });
7240
- Le(
7245
+ Ae(
7241
7246
  () => x.value,
7242
7247
  () => {
7243
7248
  n.modelValue !== x.value && o(x.value);
@@ -7388,7 +7393,7 @@ const Pc = /* @__PURE__ */ Ve(Mc, [["render", Dc]]), Vc = { class: "flex justify
7388
7393
  month: null,
7389
7394
  day: null
7390
7395
  });
7391
- Le(
7396
+ Ae(
7392
7397
  () => n.modelValue,
7393
7398
  () => {
7394
7399
  if (n.modelValue) {
@@ -8119,7 +8124,7 @@ const zd = /* @__PURE__ */ Ve(Vd, [["render", Ud]]), Hd = {
8119
8124
  const r = e;
8120
8125
  let n = null;
8121
8126
  const l = V(!1);
8122
- return Le(
8127
+ return Ae(
8123
8128
  () => r.modelValue,
8124
8129
  (o) => {
8125
8130
  o ? n = setTimeout(() => {
@@ -8960,7 +8965,7 @@ const Zd = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
8960
8965
  emits: ["update:modelValue"],
8961
8966
  setup(e, { emit: r }) {
8962
8967
  const n = e, l = V(n.currentModels);
8963
- Le(
8968
+ Ae(
8964
8969
  () => n.currentModels,
8965
8970
  (a, s) => {
8966
8971
  l.value = a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -18,7 +18,7 @@ export default {
18
18
  };
19
19
 
20
20
  const template = `
21
- <BaseDataIterator v-bind="args">
21
+ <BaseDataIterator v-bind="args" :url-query="urlQuery">
22
22
  <template #default="{ items, loading }">
23
23
  <div class="relative">
24
24
  <div class="space-y-1.5">
@@ -106,7 +106,15 @@ const Template = (args) => ({
106
106
  BaseSelect,
107
107
  },
108
108
  setup() {
109
- return { args };
109
+ const urlQuery = ref({});
110
+
111
+ setTimeout(() => {
112
+ urlQuery.value = {
113
+ type: 'video',
114
+ };
115
+ }, 3000);
116
+
117
+ return { args, urlQuery };
110
118
  },
111
119
  template: template,
112
120
  });
@@ -471,6 +471,13 @@ watch(
471
471
  }
472
472
  );
473
473
 
474
+ watch(
475
+ () => props.urlQuery,
476
+ () => {
477
+ fetch();
478
+ }
479
+ );
480
+
474
481
  function getRouteQuery() {
475
482
  return config.parseQueryString(window.location.search.replace(/^(\?)/, ''));
476
483
  }