@qikdev/vue-ui 0.2.85 → 0.2.87

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/lib.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
- import { defineComponent as ki, ref as Kt, toRefs as oa, onMounted as ua, onBeforeUnmount as So, watch as xi, computed as ai, openBlock as o, createElementBlock as d, renderSlot as q, createCommentVNode as _, useSlots as Oo, reactive as kr, provide as Fr, resolveComponent as y, normalizeClass as P, Fragment as S, unref as jn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as b, withModifiers as W, createTextVNode as O, createElementVNode as w, h as li, resolveDynamicComponent as Ft, mergeProps as wi, toHandlers as da, withDirectives as K, vModelSelect as xt, pushScopeId as st, popScopeId as at, normalizeStyle as wt, Teleport as To, vModelText as pe, withKeys as ge, TransitionGroup as Eo, nextTick as ca, vModelDynamic as Rn, vShow as qi } from "vue";
2
+ import { defineComponent as ki, ref as Kt, toRefs as oa, onMounted as ua, onBeforeUnmount as So, watch as xi, computed as ai, openBlock as o, createElementBlock as d, renderSlot as q, createCommentVNode as _, useSlots as Oo, reactive as kr, provide as Fr, resolveComponent as y, normalizeClass as P, Fragment as S, unref as jn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as b, withModifiers as W, createTextVNode as O, createElementVNode as w, h as li, resolveDynamicComponent as xt, mergeProps as wi, toHandlers as da, withDirectives as K, vModelSelect as wt, pushScopeId as st, popScopeId as at, normalizeStyle as St, Teleport as To, vModelText as pe, withKeys as ge, TransitionGroup as Eo, nextTick as ca, vModelDynamic as Rn, vShow as qi } from "vue";
3
3
  import { EventDispatcher as Co } from "@qikdev/sdk";
4
- const Vo = "0.2.85", lr = {
4
+ const Vo = "0.2.87", lr = {
5
5
  STRIPE_NOT_LOADED: "Stripe v3 library is not loaded",
6
6
  INSTANCE_NOT_DEFINED: "Instance object is not defined. Make sure you initialized Stripe before creating elements",
7
7
  ELEMENTS_NOT_DEFINED: "Elements object is not defined. You can't create stripe element without it",
@@ -1065,7 +1065,7 @@ const I = "numeric", Xe = "short", Be = "long", oi = {
1065
1065
  function Y(e) {
1066
1066
  return typeof e > "u";
1067
1067
  }
1068
- function It(e) {
1068
+ function Ft(e) {
1069
1069
  return typeof e == "number";
1070
1070
  }
1071
1071
  function Er(e) {
@@ -1115,7 +1115,7 @@ function _t(e) {
1115
1115
  if (!(Y(e) || e === null || e === ""))
1116
1116
  return parseInt(e, 10);
1117
1117
  }
1118
- function Tt(e) {
1118
+ function Et(e) {
1119
1119
  if (!(Y(e) || e === null || e === ""))
1120
1120
  return parseFloat(e);
1121
1121
  }
@@ -1923,7 +1923,7 @@ function vt(e, t) {
1923
1923
  const n = e.toLowerCase();
1924
1924
  return n === "local" || n === "system" ? t : n === "utc" || n === "gmt" ? Fe.utcInstance : Fe.parseSpecifier(n) || ut.create(e);
1925
1925
  } else
1926
- return It(e) ? Fe.instance(e) : typeof e == "object" && e.offset && typeof e.offset == "number" ? e : new mh(e);
1926
+ return Ft(e) ? Fe.instance(e) : typeof e == "object" && e.offset && typeof e.offset == "number" ? e : new mh(e);
1927
1927
  }
1928
1928
  let as = () => Date.now(), ls = "system", os = null, us = null, ds = null, cs;
1929
1929
  class ve {
@@ -2314,13 +2314,13 @@ function $h(e) {
2314
2314
  const [t, n, i, s, r, a, l, u, c] = e, f = t[0] === "-", p = u && u[0] === "-", g = (v, x = !1) => v !== void 0 && (x || v && f) ? -v : v;
2315
2315
  return [
2316
2316
  {
2317
- years: g(Tt(n)),
2318
- months: g(Tt(i)),
2319
- weeks: g(Tt(s)),
2320
- days: g(Tt(r)),
2321
- hours: g(Tt(a)),
2322
- minutes: g(Tt(l)),
2323
- seconds: g(Tt(u), u === "-0"),
2317
+ years: g(Et(n)),
2318
+ months: g(Et(i)),
2319
+ weeks: g(Et(s)),
2320
+ days: g(Et(r)),
2321
+ hours: g(Et(a)),
2322
+ minutes: g(Et(l)),
2323
+ seconds: g(Et(u), u === "-0"),
2324
2324
  milliseconds: g(Ei(c), p)
2325
2325
  }
2326
2326
  ];
@@ -2509,7 +2509,7 @@ const up = "Invalid Duration", rl = {
2509
2509
  milliseconds: Bt * 24 * 60 * 60 * 1e3
2510
2510
  },
2511
2511
  ...rl
2512
- }, At = [
2512
+ }, Mt = [
2513
2513
  "years",
2514
2514
  "quarters",
2515
2515
  "months",
@@ -2519,8 +2519,8 @@ const up = "Invalid Duration", rl = {
2519
2519
  "minutes",
2520
2520
  "seconds",
2521
2521
  "milliseconds"
2522
- ], fp = At.slice(0).reverse();
2523
- function Et(e, t, n = !1) {
2522
+ ], fp = Mt.slice(0).reverse();
2523
+ function Ct(e, t, n = !1) {
2524
2524
  const i = {
2525
2525
  values: n ? t.values : { ...e.values, ...t.values || {} },
2526
2526
  loc: e.loc.clone(t.loc),
@@ -2599,7 +2599,7 @@ class X {
2599
2599
  * @return {Duration}
2600
2600
  */
2601
2601
  static fromDurationLike(t) {
2602
- if (It(t))
2602
+ if (Ft(t))
2603
2603
  return X.fromMillis(t);
2604
2604
  if (X.isDuration(t))
2605
2605
  return t;
@@ -2752,7 +2752,7 @@ class X {
2752
2752
  * ```
2753
2753
  */
2754
2754
  toHuman(t = {}) {
2755
- const n = At.map((i) => {
2755
+ const n = Mt.map((i) => {
2756
2756
  const s = this.values[i];
2757
2757
  return Y(s) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...t, unit: i.slice(0, -1) }).format(s);
2758
2758
  }).filter((i) => i);
@@ -2854,9 +2854,9 @@ class X {
2854
2854
  if (!this.isValid)
2855
2855
  return this;
2856
2856
  const n = X.fromDurationLike(t), i = {};
2857
- for (const s of At)
2857
+ for (const s of Mt)
2858
2858
  (Jt(n.values, s) || Jt(this.values, s)) && (i[s] = n.get(s) + this.get(s));
2859
- return Et(this, { values: i }, !0);
2859
+ return Ct(this, { values: i }, !0);
2860
2860
  }
2861
2861
  /**
2862
2862
  * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
@@ -2882,7 +2882,7 @@ class X {
2882
2882
  const n = {};
2883
2883
  for (const i of Object.keys(this.values))
2884
2884
  n[i] = za(t(this.values[i], i));
2885
- return Et(this, { values: n }, !0);
2885
+ return Ct(this, { values: n }, !0);
2886
2886
  }
2887
2887
  /**
2888
2888
  * Get the value of unit.
@@ -2906,7 +2906,7 @@ class X {
2906
2906
  if (!this.isValid)
2907
2907
  return this;
2908
2908
  const n = { ...this.values, ...cr(t, X.normalizeUnit) };
2909
- return Et(this, { values: n });
2909
+ return Ct(this, { values: n });
2910
2910
  }
2911
2911
  /**
2912
2912
  * "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
@@ -2915,7 +2915,7 @@ class X {
2915
2915
  */
2916
2916
  reconfigure({ locale: t, numberingSystem: n, conversionAccuracy: i } = {}) {
2917
2917
  const s = this.loc.clone({ locale: t, numberingSystem: n }), r = { loc: s };
2918
- return i && (r.conversionAccuracy = i), Et(this, r);
2918
+ return i && (r.conversionAccuracy = i), Ct(this, r);
2919
2919
  }
2920
2920
  /**
2921
2921
  * Return the length of the duration in the specified unit.
@@ -2938,7 +2938,7 @@ class X {
2938
2938
  if (!this.isValid)
2939
2939
  return this;
2940
2940
  const t = this.toObject();
2941
- return hp(this.matrix, t), Et(this, { values: t }, !0);
2941
+ return hp(this.matrix, t), Ct(this, { values: t }, !0);
2942
2942
  }
2943
2943
  /**
2944
2944
  * Convert this Duration into its representation in a different set of units.
@@ -2953,22 +2953,22 @@ class X {
2953
2953
  t = t.map((a) => X.normalizeUnit(a));
2954
2954
  const n = {}, i = {}, s = this.toObject();
2955
2955
  let r;
2956
- for (const a of At)
2956
+ for (const a of Mt)
2957
2957
  if (t.indexOf(a) >= 0) {
2958
2958
  r = a;
2959
2959
  let l = 0;
2960
2960
  for (const c in i)
2961
2961
  l += this.matrix[c][a] * i[c], i[c] = 0;
2962
- It(s[a]) && (l += s[a]);
2962
+ Ft(s[a]) && (l += s[a]);
2963
2963
  const u = Math.trunc(l);
2964
2964
  n[a] = u, i[a] = (l * 1e3 - u * 1e3) / 1e3;
2965
2965
  for (const c in s)
2966
- At.indexOf(c) > At.indexOf(a) && il(this.matrix, s, c, n, a);
2966
+ Mt.indexOf(c) > Mt.indexOf(a) && il(this.matrix, s, c, n, a);
2967
2967
  } else
2968
- It(s[a]) && (i[a] = s[a]);
2968
+ Ft(s[a]) && (i[a] = s[a]);
2969
2969
  for (const a in i)
2970
2970
  i[a] !== 0 && (n[r] += a === r ? i[a] : i[a] / this.matrix[r][a]);
2971
- return Et(this, { values: n }, !0).normalize();
2971
+ return Ct(this, { values: n }, !0).normalize();
2972
2972
  }
2973
2973
  /**
2974
2974
  * Return the negative of this Duration.
@@ -2981,7 +2981,7 @@ class X {
2981
2981
  const t = {};
2982
2982
  for (const n of Object.keys(this.values))
2983
2983
  t[n] = this.values[n] === 0 ? 0 : -this.values[n];
2984
- return Et(this, { values: t }, !0);
2984
+ return Ct(this, { values: t }, !0);
2985
2985
  }
2986
2986
  /**
2987
2987
  * Get the years.
@@ -3080,7 +3080,7 @@ class X {
3080
3080
  function n(i, s) {
3081
3081
  return i === void 0 || i === 0 ? s === void 0 || s === 0 : i === s;
3082
3082
  }
3083
- for (const i of At)
3083
+ for (const i of Mt)
3084
3084
  if (!n(this.values[i], t.values[i]))
3085
3085
  return !1;
3086
3086
  return !0;
@@ -4374,7 +4374,7 @@ class R {
4374
4374
  * @return {DateTime}
4375
4375
  */
4376
4376
  static fromMillis(t, n = {}) {
4377
- if (It(t))
4377
+ if (Ft(t))
4378
4378
  return t < -bs || t > bs ? R.invalid("Timestamp out of range") : new R({
4379
4379
  ts: t,
4380
4380
  zone: vt(n.zone, ve.defaultZone),
@@ -4395,7 +4395,7 @@ class R {
4395
4395
  * @return {DateTime}
4396
4396
  */
4397
4397
  static fromSeconds(t, n = {}) {
4398
- if (It(t))
4398
+ if (Ft(t))
4399
4399
  return new R({
4400
4400
  ts: t * 1e3,
4401
4401
  zone: vt(n.zone, ve.defaultZone),
@@ -5635,7 +5635,7 @@ class R {
5635
5635
  function hn(e) {
5636
5636
  if (R.isDateTime(e))
5637
5637
  return e;
5638
- if (e && e.valueOf && It(e.valueOf()))
5638
+ if (e && e.valueOf && Ft(e.valueOf()))
5639
5639
  return R.fromJSDate(e);
5640
5640
  if (e && typeof e == "object")
5641
5641
  return R.fromObject(e);
@@ -6032,7 +6032,7 @@ const my = {
6032
6032
  }, py = { class: "value" }, yy = { class: "value" };
6033
6033
  function _y(e, t, n, i, s, r) {
6034
6034
  const a = y("value-renderer");
6035
- return s.component ? (o(), k(Ft(s.component), {
6035
+ return s.component ? (o(), k(xt(s.component), {
6036
6036
  key: 0,
6037
6037
  column: n.column,
6038
6038
  row: n.row,
@@ -7055,7 +7055,7 @@ function t_(e, t, n, i, s, r) {
7055
7055
  value: f.value
7056
7056
  }, b(f.title), 9, Ky))), 256))
7057
7057
  ], 544), [
7058
- [xt, s.candidate]
7058
+ [wt, s.candidate]
7059
7059
  ])
7060
7060
  ], 64)) : _("", !0)
7061
7061
  ], 64)) : (o(), d(S, { key: 1 }, [
@@ -7086,7 +7086,7 @@ function t_(e, t, n, i, s, r) {
7086
7086
  value: f.value
7087
7087
  }, b(f.title), 9, e_))), 256))
7088
7088
  ], 40, Yy), [
7089
- [xt, e.model]
7089
+ [wt, e.model]
7090
7090
  ])
7091
7091
  ], 64))
7092
7092
  ]))
@@ -7456,13 +7456,13 @@ const __ = {
7456
7456
  }, g_ = { class: "ux-btn-text" };
7457
7457
  function v_(e, t, n, i, s, r) {
7458
7458
  const a = y("spinner");
7459
- return o(), k(Ft(r.element), {
7459
+ return o(), k(xt(r.element), {
7460
7460
  active: n.active,
7461
7461
  loading: n.loading,
7462
7462
  to: n.to,
7463
7463
  href: n.href,
7464
7464
  target: n.target,
7465
- style: wt(r.style),
7465
+ style: St(r.style),
7466
7466
  class: P([r.classes, "ux-btn"]),
7467
7467
  disabled: n.disabled
7468
7468
  }, {
@@ -7595,7 +7595,7 @@ const T_ = {
7595
7595
  }
7596
7596
  };
7597
7597
  function E_(e, t, n, i, s, r) {
7598
- return o(), k(Ft(r.element), {
7598
+ return o(), k(xt(r.element), {
7599
7599
  onClick: r.clicked,
7600
7600
  to: n.to,
7601
7601
  href: r.actualHref,
@@ -7635,7 +7635,7 @@ const V_ = {
7635
7635
  }
7636
7636
  };
7637
7637
  function A_(e, t, n, i, s, r) {
7638
- return o(), k(Ft(r.element), {
7638
+ return o(), k(xt(r.element), {
7639
7639
  class: P(["ux-icon fa", r.classes])
7640
7640
  }, null, 8, ["class"]);
7641
7641
  }
@@ -7772,12 +7772,12 @@ function F_(e, t, n, i, s, r) {
7772
7772
  s.isExpanded ? (o(), d("div", {
7773
7773
  key: 0,
7774
7774
  class: "ux-menu-outer",
7775
- style: wt(s.outerStyle)
7775
+ style: St(s.outerStyle)
7776
7776
  }, [
7777
7777
  w("div", {
7778
7778
  class: "ux-menu-panel",
7779
7779
  ref: "menu",
7780
- style: wt(s.innerStyle)
7780
+ style: St(s.innerStyle)
7781
7781
  }, [
7782
7782
  q(e.$slots, "default", {}, void 0, !0)
7783
7783
  ], 4)
@@ -7965,10 +7965,12 @@ const P_ = {
7965
7965
  this.$sdk.auth.ensureValidToken();
7966
7966
  },
7967
7967
  mounted() {
7968
- this.$refs.img.addEventListener("error", this.imageLoadError);
7968
+ const e = this.$refs.img;
7969
+ e && e.addEventListener("error", this.imageLoadError);
7969
7970
  },
7970
7971
  beforeUnmount() {
7971
- this.$refs.img.removeEventListener("error", this.imageLoadError);
7972
+ const e = this.$refs.img;
7973
+ e && e.removeEventListener("error", this.imageLoadError);
7972
7974
  },
7973
7975
  methods: {
7974
7976
  imageLoadError: en(function(e) {
@@ -8050,7 +8052,7 @@ const P_ = {
8050
8052
  function R_(e, t, n, i, s, r) {
8051
8053
  return o(), d("div", {
8052
8054
  class: P(["ux-image", r.className]),
8053
- style: wt(r.style)
8055
+ style: St(r.style)
8054
8056
  }, [
8055
8057
  n.svg ? (o(), d("object", {
8056
8058
  key: 0,
@@ -8061,12 +8063,12 @@ function R_(e, t, n, i, s, r) {
8061
8063
  key: 1,
8062
8064
  ref: "img",
8063
8065
  alt: r.altText,
8064
- style: wt(r.imageStyle),
8066
+ style: St(r.imageStyle),
8065
8067
  src: r.src
8066
8068
  }, null, 12, j_))
8067
8069
  ], 6);
8068
8070
  }
8069
- const B_ = /* @__PURE__ */ E(P_, [["render", R_], ["__scopeId", "data-v-1e45450d"]]);
8071
+ const B_ = /* @__PURE__ */ E(P_, [["render", R_], ["__scopeId", "data-v-258037a0"]]);
8070
8072
  const z_ = {
8071
8073
  props: {
8072
8074
  item: {
@@ -8184,7 +8186,7 @@ const z_ = {
8184
8186
  function W_(e, t, n, i, s, r) {
8185
8187
  return o(), d("div", {
8186
8188
  class: P(["ux-video", r.className]),
8187
- style: wt(r.style)
8189
+ style: St(r.style)
8188
8190
  }, [
8189
8191
  w("div", H_, [
8190
8192
  w("video", {
@@ -8231,7 +8233,7 @@ function Q_(e, t, n, i, s, r) {
8231
8233
  X_,
8232
8234
  w("div", {
8233
8235
  class: "ux-progress-fg",
8234
- style: wt(r.barStyle)
8236
+ style: St(r.barStyle)
8235
8237
  }, null, 4)
8236
8238
  ]);
8237
8239
  }
@@ -8265,7 +8267,7 @@ const sg = {
8265
8267
  }
8266
8268
  };
8267
8269
  function ag(e, t, n, i, s, r) {
8268
- return o(), k(Ft(r.element), {
8270
+ return o(), k(xt(r.element), {
8269
8271
  class: "ux-list-item",
8270
8272
  to: n.to,
8271
8273
  href: n.href,
@@ -8551,7 +8553,7 @@ function Eg(e, t, n, i, s, r) {
8551
8553
  value: p.value
8552
8554
  }, b(p.title), 9, Sg))), 256))
8553
8555
  ], 512), [
8554
- [xt, e.model.countryCode]
8556
+ [wt, e.model.countryCode]
8555
8557
  ])
8556
8558
  ]),
8557
8559
  _: 1
@@ -9142,7 +9144,7 @@ function Pg(e, t, n, i, s, r) {
9142
9144
  value: l.value
9143
9145
  }, b(l.title), 9, Lg))), 256))
9144
9146
  ], 40, $g), [
9145
- [xt, e.model]
9147
+ [wt, e.model]
9146
9148
  ])
9147
9149
  ], 2);
9148
9150
  }
@@ -9662,7 +9664,7 @@ var tv = ["evt"], Ne = function(t, n) {
9662
9664
  parentEl: fe,
9663
9665
  ghostEl: H,
9664
9666
  rootEl: de,
9665
- nextEl: Mt,
9667
+ nextEl: It,
9666
9668
  lastDownEl: rr,
9667
9669
  cloneEl: me,
9668
9670
  cloneHidden: bt,
@@ -9703,7 +9705,7 @@ function Ie(e) {
9703
9705
  newDraggableIndex: gt
9704
9706
  }, e));
9705
9707
  }
9706
- var M, fe, H, de, Mt, rr, me, bt, Wt, je, On, gt, Zn, we, qt = !1, hr = !1, pr = [], Ct, Ye, Gr, Wr, Ps, Us, vn, Ht, Tn, En = !1, Yn = !1, ir, Ce, Kr = [], yi = !1, yr = [], Ar = typeof document < "u", Jn = Ol, js = Dn || ft ? "cssFloat" : "float", nv = Ar && !Gg && !Ol && "draggable" in document.createElement("div"), Ml = function() {
9708
+ var M, fe, H, de, It, rr, me, bt, Wt, je, On, gt, Zn, we, qt = !1, hr = !1, pr = [], Vt, Ye, Gr, Wr, Ps, Us, vn, Ht, Tn, En = !1, Yn = !1, ir, Ce, Kr = [], yi = !1, yr = [], Ar = typeof document < "u", Jn = Ol, js = Dn || ft ? "cssFloat" : "float", nv = Ar && !Gg && !Ol && "draggable" in document.createElement("div"), Ml = function() {
9707
9709
  if (Ar) {
9708
9710
  if (ft)
9709
9711
  return !1;
@@ -9763,7 +9765,7 @@ Ar && document.addEventListener("click", function(e) {
9763
9765
  if (hr)
9764
9766
  return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), hr = !1, !1;
9765
9767
  }, !0);
9766
- var Vt = function(t) {
9768
+ var At = function(t) {
9767
9769
  if (M) {
9768
9770
  t = t.touches ? t.touches[0] : t;
9769
9771
  var n = iv(t.clientX, t.clientY);
@@ -9885,11 +9887,11 @@ j.prototype = /** @lends Sortable.prototype */
9885
9887
  var s = this, r = s.el, a = s.options, l = r.ownerDocument, u;
9886
9888
  if (i && !M && i.parentNode === r) {
9887
9889
  var c = be(i);
9888
- if (de = r, M = i, fe = M.parentNode, Mt = M.nextSibling, rr = i, Zn = a.group, j.dragged = M, Ct = {
9890
+ if (de = r, M = i, fe = M.parentNode, It = M.nextSibling, rr = i, Zn = a.group, j.dragged = M, Vt = {
9889
9891
  target: M,
9890
9892
  clientX: (n || t).clientX,
9891
9893
  clientY: (n || t).clientY
9892
- }, Ps = Ct.clientX - c.left, Us = Ct.clientY - c.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, M.style["will-change"] = "all", u = function() {
9894
+ }, Ps = Vt.clientX - c.left, Us = Vt.clientY - c.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, M.style["will-change"] = "all", u = function() {
9893
9895
  if (Ne("delayEnded", s, {
9894
9896
  evt: t
9895
9897
  }), j.eventCanceled) {
@@ -9903,7 +9905,7 @@ j.prototype = /** @lends Sortable.prototype */
9903
9905
  }), Ue(M, a.chosenClass, !0);
9904
9906
  }, a.ignore.split(",").forEach(function(f) {
9905
9907
  El(M, f.trim(), Zr);
9906
- }), te(l, "dragover", Vt), te(l, "mousemove", Vt), te(l, "touchmove", Vt), te(l, "mouseup", s._onDrop), te(l, "touchend", s._onDrop), te(l, "touchcancel", s._onDrop), Ds && this.nativeDraggable && (this.options.touchStartThreshold = 4, M.draggable = !0), Ne("delayStart", this, {
9908
+ }), te(l, "dragover", At), te(l, "mousemove", At), te(l, "touchmove", At), te(l, "mouseup", s._onDrop), te(l, "touchend", s._onDrop), te(l, "touchcancel", s._onDrop), Ds && this.nativeDraggable && (this.options.touchStartThreshold = 4, M.draggable = !0), Ne("delayStart", this, {
9907
9909
  evt: t
9908
9910
  }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Dn || ft))) {
9909
9911
  if (j.eventCanceled) {
@@ -9972,8 +9974,8 @@ j.prototype = /** @lends Sortable.prototype */
9972
9974
  }
9973
9975
  },
9974
9976
  _onTouchMove: function(t) {
9975
- if (Ct) {
9976
- var n = this.options, i = n.fallbackTolerance, s = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = H && Yt(H, !0), l = H && a && a.a, u = H && a && a.d, c = Jn && Ce && Ls(Ce), f = (r.clientX - Ct.clientX + s.x) / (l || 1) + (c ? c[0] - Kr[0] : 0) / (l || 1), p = (r.clientY - Ct.clientY + s.y) / (u || 1) + (c ? c[1] - Kr[1] : 0) / (u || 1);
9977
+ if (Vt) {
9978
+ var n = this.options, i = n.fallbackTolerance, s = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = H && Yt(H, !0), l = H && a && a.a, u = H && a && a.d, c = Jn && Ce && Ls(Ce), f = (r.clientX - Vt.clientX + s.x) / (l || 1) + (c ? c[0] - Kr[0] : 0) / (l || 1), p = (r.clientY - Vt.clientY + s.y) / (u || 1) + (c ? c[1] - Kr[1] : 0) / (u || 1);
9977
9979
  if (!j.active && !qt) {
9978
9980
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
9979
9981
  return;
@@ -10051,7 +10053,7 @@ j.prototype = /** @lends Sortable.prototype */
10051
10053
  insertion: Qe
10052
10054
  }), Qe && (f ? c._hideClone() : c._showClone(x), x !== g && (Ue(M, we ? we.options.ghostClass : c.options.ghostClass, !1), Ue(M, l.ghostClass, !0)), we !== x && x !== j.active ? we = x : x === j.active && we && (we = null), g === x && (x._ignoreWhileAnimating = i), x.animateAll(function() {
10053
10055
  A("dragOverAnimationComplete"), x._ignoreWhileAnimating = null;
10054
- }), x !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (i === M && !M.animated || i === n && !i.animated) && (Ht = null), !l.dragoverBubble && !t.rootEl && i !== document && (M.parentNode[Re]._isOutsideThisEl(t.target), !Qe && Vt(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), T = !0;
10056
+ }), x !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (i === M && !M.animated || i === n && !i.animated) && (Ht = null), !l.dragoverBubble && !t.rootEl && i !== document && (M.parentNode[Re]._isOutsideThisEl(t.target), !Qe && At(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), T = !0;
10055
10057
  }
10056
10058
  function re() {
10057
10059
  je = He(M), gt = He(M, l.draggable), Ie({
@@ -10071,7 +10073,7 @@ j.prototype = /** @lends Sortable.prototype */
10071
10073
  if (v = this._getDirection(t, i) === "vertical", s = be(M), A("dragOverValid"), j.eventCanceled)
10072
10074
  return T;
10073
10075
  if (a)
10074
- return fe = de, G(), this._hideClone(), A("revert"), j.eventCanceled || (Mt ? de.insertBefore(M, Mt) : de.appendChild(M)), Q(!0);
10076
+ return fe = de, G(), this._hideClone(), A("revert"), j.eventCanceled || (It ? de.insertBefore(M, It) : de.appendChild(M)), Q(!0);
10075
10077
  var le = Ni(n, l.draggable);
10076
10078
  if (!le || uv(t, v, this) && !le.animated) {
10077
10079
  if (le === M)
@@ -10111,7 +10113,7 @@ j.prototype = /** @lends Sortable.prototype */
10111
10113
  },
10112
10114
  _ignoreWhileAnimating: null,
10113
10115
  _offMoveEvents: function() {
10114
- J(document, "mousemove", this._onTouchMove), J(document, "touchmove", this._onTouchMove), J(document, "pointermove", this._onTouchMove), J(document, "dragover", Vt), J(document, "mousemove", Vt), J(document, "touchmove", Vt);
10116
+ J(document, "mousemove", this._onTouchMove), J(document, "touchmove", this._onTouchMove), J(document, "pointermove", this._onTouchMove), J(document, "dragover", At), J(document, "mousemove", At), J(document, "touchmove", At);
10115
10117
  },
10116
10118
  _offUpEvents: function() {
10117
10119
  var t = this.el.ownerDocument;
@@ -10172,7 +10174,7 @@ j.prototype = /** @lends Sortable.prototype */
10172
10174
  }), this.save()))), this._nulling();
10173
10175
  },
10174
10176
  _nulling: function() {
10175
- Ne("nulling", this), de = M = fe = H = Mt = me = rr = bt = Ct = Ye = vn = je = gt = Wt = On = Ht = Tn = we = Zn = j.dragged = j.ghost = j.clone = j.active = null, yr.forEach(function(t) {
10177
+ Ne("nulling", this), de = M = fe = H = It = me = rr = bt = Vt = Ye = vn = je = gt = Wt = On = Ht = Tn = we = Zn = j.dragged = j.ghost = j.clone = j.active = null, yr.forEach(function(t) {
10176
10178
  t.checked = !0;
10177
10179
  }), yr.length = Gr = Wr = 0;
10178
10180
  },
@@ -10267,7 +10269,7 @@ j.prototype = /** @lends Sortable.prototype */
10267
10269
  if (bt) {
10268
10270
  if (Ne("showClone", this), j.eventCanceled)
10269
10271
  return;
10270
- M.parentNode == de && !this.options.group.revertClone ? de.insertBefore(me, M) : Mt ? de.insertBefore(me, Mt) : de.appendChild(me), this.options.group.revertClone && this.animate(M, me), U(me, "display", ""), bt = !1;
10272
+ M.parentNode == de && !this.options.group.revertClone ? de.insertBefore(me, M) : It ? de.insertBefore(me, It) : de.appendChild(me), this.options.group.revertClone && this.animate(M, me), U(me, "display", ""), bt = !1;
10271
10273
  }
10272
10274
  }
10273
10275
  };
@@ -11359,7 +11361,7 @@ function Xv(e, t, n, i, s, r) {
11359
11361
  value: l.value
11360
11362
  }, b(l.title), 9, Jv))), 256))
11361
11363
  ], 40, Zv), [
11362
- [xt, e.model]
11364
+ [wt, e.model]
11363
11365
  ])
11364
11366
  ], 2);
11365
11367
  }
@@ -12006,7 +12008,7 @@ function Eb(e, t, n, i, s, r) {
12006
12008
  value: l.value
12007
12009
  }, b(l.title), 9, Tb))), 256))
12008
12010
  ], 40, Sb), [
12009
- [xt, e.model]
12011
+ [wt, e.model]
12010
12012
  ])
12011
12013
  ], 2);
12012
12014
  }
@@ -16028,13 +16030,13 @@ var gr = {}, bx = {
16028
16030
  }
16029
16031
  return !1;
16030
16032
  }, go = function() {
16031
- var V, L, Z, ie, Ot, We, pt, Rt, Hi;
16033
+ var V, L, Z, ie, Tt, We, pt, Rt, Hi;
16032
16034
  if (We = Pn(), L = ji(), !L)
16033
16035
  return We;
16034
- for (Ot = { value: L, prec: Qe(L) }, pt = Pn(), pt || z("Expected expression after " + L, C), ie = [We, Ot, pt]; (L = ji()) && (Z = Qe(L), Z !== 0); ) {
16035
- for (Ot = { value: L, prec: Z }, Hi = L; ie.length > 2 && Z <= ie[ie.length - 2].prec; )
16036
+ for (Tt = { value: L, prec: Qe(L) }, pt = Pn(), pt || z("Expected expression after " + L, C), ie = [We, Tt, pt]; (L = ji()) && (Z = Qe(L), Z !== 0); ) {
16037
+ for (Tt = { value: L, prec: Z }, Hi = L; ie.length > 2 && Z <= ie[ie.length - 2].prec; )
16036
16038
  pt = ie.pop(), L = ie.pop().value, We = ie.pop(), V = F(L, We, pt), ie.push(V);
16037
- V = Pn(), V || z("Expected expression after " + Hi, C), ie.push(Ot, V);
16039
+ V = Pn(), V || z("Expected expression after " + Hi, C), ie.push(Tt, V);
16038
16040
  }
16039
16041
  for (Rt = ie.length - 1, V = ie[Rt]; Rt > 1; )
16040
16042
  V = F(ie[Rt - 1].value, ie[Rt - 2], V), Rt -= 2;
@@ -16123,9 +16125,9 @@ var gr = {}, bx = {
16123
16125
  name: Z
16124
16126
  };
16125
16127
  }, Bi = function(V) {
16126
- for (var L, Z = [], ie, Ot = !1, We = 0; C < un; )
16128
+ for (var L, Z = [], ie, Tt = !1, We = 0; C < un; )
16127
16129
  if (tt(), L = ue(C), L === V) {
16128
- Ot = !0, C++, V === re && We && We >= Z.length && z("Unexpected token " + String.fromCharCode(V), C);
16130
+ Tt = !0, C++, V === re && We && We >= Z.length && z("Unexpected token " + String.fromCharCode(V), C);
16129
16131
  break;
16130
16132
  } else if (L === T) {
16131
16133
  if (C++, We++, We !== Z.length) {
@@ -16137,7 +16139,7 @@ var gr = {}, bx = {
16137
16139
  }
16138
16140
  } else
16139
16141
  ie = jt(), (!ie || ie.type === i) && z("Expected comma", C), Z.push(ie);
16140
- return Ot || z("Expected " + String.fromCharCode(V), C), Z;
16142
+ return Tt || z("Expected " + String.fromCharCode(V), C), Z;
16141
16143
  }, ko = function() {
16142
16144
  var V, L;
16143
16145
  for (V = ue(C), V === Q ? L = xo() : L = Ri(), tt(), V = ue(C); V === x || V === le || V === Q; )
@@ -16454,7 +16456,7 @@ function RS(e, t, n, i) {
16454
16456
  return n < 0 && (n = jS(s + n, 0)), LS(e) ? n <= s && e.indexOf(t, n) > -1 : !!s && $S(e, t, n) > -1;
16455
16457
  }
16456
16458
  var BS = RS;
16457
- const St = {};
16459
+ const Ot = {};
16458
16460
  function zS(e, t, n, i) {
16459
16461
  return e ? Array.isArray(e) ? e.filter(function(s) {
16460
16462
  const r = or(s, t);
@@ -16498,7 +16500,7 @@ function qS(e, t, n, i, s) {
16498
16500
  }, []);
16499
16501
  return s.unique && (r = [...new Set(r)]), s.flat && (r = r.flat()), r;
16500
16502
  }
16501
- St.evaluateExpression = function(e, t) {
16503
+ Ot.evaluateExpression = function(e, t) {
16502
16504
  if (typeof e == "function")
16503
16505
  return e(t);
16504
16506
  const n = {
@@ -16664,7 +16666,7 @@ const GS = Array.from({ length: 6 }, (e, t) => new Date().getFullYear() + t).map
16664
16666
  activeModifiers() {
16665
16667
  const e = this, t = this.expressionsContext;
16666
16668
  return e.modifiers.filter(function(n) {
16667
- return n.condition ? St.evaluateExpression(n.condition, t) : !0;
16669
+ return n.condition ? Ot.evaluateExpression(n.condition, t) : !0;
16668
16670
  });
16669
16671
  },
16670
16672
  calculations() {
@@ -16672,7 +16674,7 @@ const GS = Array.from({ length: 6 }, (e, t) => new Date().getFullYear() + t).map
16672
16674
  let t = [], n = 0;
16673
16675
  e.baseAmount && (n += e.baseAmount), e.activeModifiers.forEach(function(s, r) {
16674
16676
  const a = Object.assign({}, e.expressionsContext, { total: n }), l = n;
16675
- let u = St.evaluateExpression(s.expression, a);
16677
+ let u = Ot.evaluateExpression(s.expression, a);
16676
16678
  u = parseInt(u || 0);
16677
16679
  const c = e.$sdk.utils.formatCurrency(u, e.currency);
16678
16680
  let f = "";
@@ -17049,7 +17051,7 @@ function h2(e, t, n, i, s, r) {
17049
17051
  value: l.value
17050
17052
  }, b(l.title), 9, m2))), 256))
17051
17053
  ], 40, c2), [
17052
- [xt, e.model]
17054
+ [wt, e.model]
17053
17055
  ])
17054
17056
  ], 2);
17055
17057
  }
@@ -17172,7 +17174,7 @@ function O2(e, t, n, i, s, r) {
17172
17174
  value: l.value
17173
17175
  }, b(l.title), 9, S2))), 256))
17174
17176
  ], 40, x2), [
17175
- [xt, e.model]
17177
+ [wt, e.model]
17176
17178
  ])
17177
17179
  ], 2);
17178
17180
  }
@@ -17301,7 +17303,7 @@ function Pe(e) {
17301
17303
  if (!n)
17302
17304
  return;
17303
17305
  let i = t.expressionsContext;
17304
- return St.evaluateExpression(n, i);
17306
+ return Ot.evaluateExpression(n, i);
17305
17307
  };
17306
17308
  }
17307
17309
  const C2 = {
@@ -17545,7 +17547,7 @@ const C2 = {
17545
17547
  if (!this.expressions)
17546
17548
  return;
17547
17549
  let e = this.expressions.show, t = this.expressions.hide, n = this.expressionsContext, i;
17548
- return e ? i = !St.evaluateExpression(e, n) : t && (i = St.evaluateExpression(t, n)), i;
17550
+ return e ? i = !Ot.evaluateExpression(e, n) : t && (i = Ot.evaluateExpression(t, n)), i;
17549
17551
  },
17550
17552
  getExpressionTitle: Pe("title"),
17551
17553
  getExpressionRequired: Pe("required"),
@@ -19113,9 +19115,9 @@ const dT = {
19113
19115
  return;
19114
19116
  let e = this.expressions.show, t = this.expressions.hide, n = this.expressionsContext;
19115
19117
  if (e)
19116
- return !St.evaluateExpression(e, n);
19118
+ return !Ot.evaluateExpression(e, n);
19117
19119
  if (t)
19118
- return St.evaluateExpression(t, n);
19120
+ return Ot.evaluateExpression(t, n);
19119
19121
  },
19120
19122
  expressions() {
19121
19123
  return this.field.expressions;
@@ -20355,7 +20357,7 @@ const LT = {
20355
20357
  actualOptions: this.options
20356
20358
  };
20357
20359
  }
20358
- }, _o = (e) => (st("data-v-9c5677ad"), e = e(), at(), e), PT = { class: "footer" }, UT = /* @__PURE__ */ _o(() => /* @__PURE__ */ w("p", null, null, -1)), jT = { key: 0 }, RT = /* @__PURE__ */ _o(() => /* @__PURE__ */ w("p", null, null, -1));
20360
+ }, _o = (e) => (st("data-v-a7d8cd80"), e = e(), at(), e), PT = { class: "footer" }, UT = /* @__PURE__ */ _o(() => /* @__PURE__ */ w("p", null, null, -1)), jT = { key: 0 }, RT = /* @__PURE__ */ _o(() => /* @__PURE__ */ w("p", null, null, -1));
20359
20361
  function BT(e, t, n, i, s, r) {
20360
20362
  const a = y("ux-icon"), l = y("ux-panel-body"), u = y("ux-panel"), c = y("flex-column"), f = y("ux-button"), p = y("ux-list-item"), g = y("ux-list"), v = y("ux-menu"), x = y("native-table"), T = y("pager"), A = y("flex-footer"), G = y("flex-row"), Q = y("search"), re = y("ux-field"), le = y("filter-builder"), oe = y("flex-body"), B = y("spinner");
20361
20363
  return r.actualDefinition ? (o(), k(c, {
@@ -20401,7 +20403,7 @@ function BT(e, t, n, i, s, r) {
20401
20403
  _: 1
20402
20404
  })) : r.items.length ? (o(), k(c, { key: 1 }, {
20403
20405
  default: h(() => [
20404
- r.viewMode && r.viewMode.component ? (o(), k(Ft(r.viewMode.component), {
20406
+ r.viewMode && r.viewMode.component ? (o(), k(xt(r.viewMode.component), {
20405
20407
  key: 0,
20406
20408
  onReload: r.debounceReload,
20407
20409
  cacheKey: r.viewModeCacheKey,
@@ -20470,26 +20472,38 @@ function BT(e, t, n, i, s, r) {
20470
20472
  key: 3,
20471
20473
  class: "empty",
20472
20474
  center: ""
20473
- })) : (o(), k(c, {
20474
- key: 2,
20475
- class: "empty",
20476
- center: ""
20477
- }, {
20478
- default: h(() => [
20479
- m(u, null, {
20480
- default: h(() => [
20481
- m(l, null, {
20482
- default: h(() => [
20483
- w("div", null, "No " + b(r.plural) + " found.", 1)
20484
- ]),
20485
- _: 1
20486
- })
20487
- ]),
20488
- _: 1
20489
- })
20490
- ]),
20491
- _: 1
20492
- }))
20475
+ })) : (o(), d(S, { key: 2 }, [
20476
+ r.viewMode && r.viewMode.component && r.viewMode.customEmpty ? (o(), k(xt(r.viewMode.component), {
20477
+ key: 0,
20478
+ onReload: r.debounceReload,
20479
+ cacheKey: r.viewModeCacheKey,
20480
+ definition: r.actualDefinition,
20481
+ selection: s.manager.items,
20482
+ items: r.items,
20483
+ "onClick:actions": r.actionsClicked,
20484
+ "onSelect:item:toggle": r.rowToggled,
20485
+ "onClick:item": r.rowClicked
20486
+ }, null, 40, ["onReload", "cacheKey", "definition", "selection", "items", "onClick:actions", "onSelect:item:toggle", "onClick:item"])) : (o(), k(c, {
20487
+ key: 1,
20488
+ class: "empty",
20489
+ center: ""
20490
+ }, {
20491
+ default: h(() => [
20492
+ m(u, null, {
20493
+ default: h(() => [
20494
+ m(l, null, {
20495
+ default: h(() => [
20496
+ w("div", null, "No " + b(r.plural) + " found.", 1)
20497
+ ]),
20498
+ _: 1
20499
+ })
20500
+ ]),
20501
+ _: 1
20502
+ })
20503
+ ]),
20504
+ _: 1
20505
+ }))
20506
+ ], 64))
20493
20507
  ], 64)) : _("", !0)
20494
20508
  ]),
20495
20509
  _: 3
@@ -20564,7 +20578,7 @@ function BT(e, t, n, i, s, r) {
20564
20578
  _: 3
20565
20579
  })) : _("", !0);
20566
20580
  }
20567
- const zT = /* @__PURE__ */ E(LT, [["render", BT], ["__scopeId", "data-v-9c5677ad"]]), Ln = {
20581
+ const zT = /* @__PURE__ */ E(LT, [["render", BT], ["__scopeId", "data-v-a7d8cd80"]]), Ln = {
20568
20582
  props: {
20569
20583
  options: {
20570
20584
  type: Object,
@@ -20624,9 +20638,9 @@ function GT(e, t, n, i, s, r) {
20624
20638
  }),
20625
20639
  w("div", {
20626
20640
  class: "modal-content",
20627
- style: wt(r.style)
20641
+ style: St(r.style)
20628
20642
  }, [
20629
- (o(), k(Ft(n.modal.component), wi({
20643
+ (o(), k(xt(n.modal.component), wi({
20630
20644
  options: n.modal.options
20631
20645
  }, r.componentProps, {
20632
20646
  onClose: r.close,