@finmars/ui 1.0.70 → 1.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,4 +1,4 @@
1
- import { Fragment as fe, reactive as Xn, computed as T, watchEffect as Rn, toRefs as H0, capitalize as G0, isVNode as ug, Comment as og, shallowRef as Ae, unref as Y, warn as Lu, getCurrentInstance as lg, ref as K, provide as Bt, inject as st, defineComponent as Be, camelize as W0, h as na, watch as ve, onScopeDispose as Lt, effectScope as ps, nextTick as rt, mergeProps as ie, isRef as Qn, onMounted as Vt, toRaw as gt, resolveDynamicComponent as Vu, toRef as me, readonly as gs, TransitionGroup as ys, Transition as sn, onBeforeUnmount as cn, createVNode as w, Teleport as Y0, withDirectives as Ue, vShow as On, resolveDirective as Hn, resolveComponent as K0, render as uu, onBeforeMount as ri, onUpdated as sg, Text as cg, onDeactivated as dg, cloneVNode as fg, createTextVNode as De, openBlock as j, createElementBlock as J, createBlock as de, createCommentVNode as le, withCtx as ne, renderSlot as ge, useAttrs as vg, createElementVNode as X, normalizeClass as $e, useCssVars as xr, toHandlers as rn, toDisplayString as ce, useSlots as bs, withKeys as _t, createSlots as ai, normalizeStyle as an, renderList as ze, withModifiers as Fe, onUnmounted as mg, normalizeProps as hg, guardReactiveProps as pg, toValue as $o } from "vue";
1
+ import { Fragment as fe, reactive as Xn, computed as T, watchEffect as Rn, toRefs as H0, capitalize as G0, isVNode as ug, Comment as og, shallowRef as Ae, unref as Y, warn as Lu, getCurrentInstance as lg, ref as K, provide as Bt, inject as st, defineComponent as Be, camelize as W0, h as na, watch as ve, onScopeDispose as Lt, effectScope as ps, nextTick as ot, mergeProps as ie, isRef as Qn, onMounted as Vt, toRaw as gt, resolveDynamicComponent as Vu, toRef as me, readonly as gs, TransitionGroup as ys, Transition as sn, onBeforeUnmount as cn, createVNode as w, Teleport as Y0, withDirectives as Ue, vShow as On, resolveDirective as Hn, resolveComponent as K0, render as uu, onBeforeMount as ri, onUpdated as sg, Text as cg, onDeactivated as dg, cloneVNode as fg, createTextVNode as De, openBlock as j, createElementBlock as J, createBlock as de, createCommentVNode as le, withCtx as ne, renderSlot as ge, useAttrs as vg, createElementVNode as X, normalizeClass as $e, useCssVars as xr, toHandlers as rn, toDisplayString as ce, useSlots as bs, withKeys as _t, createSlots as ai, normalizeStyle as an, renderList as ze, withModifiers as Fe, onUnmounted as mg, normalizeProps as hg, guardReactiveProps as pg, toValue as $o } from "vue";
2
2
  import { createVuetify as gg } from "vuetify";
3
3
  const lt = typeof window < "u", ws = lt && "IntersectionObserver" in window;
4
4
  function X0(e, t, n) {
@@ -1503,7 +1503,7 @@ function Cy(e, t, n) {
1503
1503
  contentBox: b
1504
1504
  };
1505
1505
  }
1506
- return ve(() => [a.value, i.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => v()), rt(() => {
1506
+ return ve(() => [a.value, i.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => v()), ot(() => {
1507
1507
  const m = v();
1508
1508
  if (!m) return;
1509
1509
  const {
@@ -1731,7 +1731,7 @@ function My(e, t) {
1731
1731
  });
1732
1732
  const I = yl();
1733
1733
  Rn(() => {
1734
- I.value && rt(() => {
1734
+ I.value && ot(() => {
1735
1735
  u.value = I.el;
1736
1736
  });
1737
1737
  });
@@ -1770,7 +1770,7 @@ function By(e, t, n) {
1770
1770
  const s = o(c);
1771
1771
  s && u(s);
1772
1772
  }
1773
- l && rt(() => i());
1773
+ l && ot(() => i());
1774
1774
  }, {
1775
1775
  immediate: !0
1776
1776
  }), ve(() => e.activatorProps, () => {
@@ -2016,7 +2016,7 @@ const Ru = ue({
2016
2016
  let Mo = !1;
2017
2017
  function Ry(e, t) {
2018
2018
  let n = !1, r, a;
2019
- lt && (rt(() => {
2019
+ lt && (ot(() => {
2020
2020
  window.addEventListener("popstate", i), r = e == null ? void 0 : e.beforeEach((u, o, l) => {
2021
2021
  Mo ? n ? t(l) : l() : setTimeout(() => n ? t(l) : l()), Mo = !0;
2022
2022
  }), a = e == null ? void 0 : e.afterEach(() => {
@@ -3009,7 +3009,7 @@ const n2 = ue({
3009
3009
  const D = new Image();
3010
3010
  D.src = v.value.lazySrc, g(D, null);
3011
3011
  }
3012
- v.value.src && rt(() => {
3012
+ v.value.src && ot(() => {
3013
3013
  var D;
3014
3014
  n("loadstart", ((D = c.value) == null ? void 0 : D.currentSrc) || v.value.src), setTimeout(() => {
3015
3015
  var M;
@@ -4032,7 +4032,7 @@ function p2(e, t) {
4032
4032
  var n;
4033
4033
  return (n = e.isActive) == null ? void 0 : n.value;
4034
4034
  }, (n) => {
4035
- e.isLink.value && n && t && rt(() => {
4035
+ e.isLink.value && n && t && ot(() => {
4036
4036
  t(!0);
4037
4037
  });
4038
4038
  }, {
@@ -4492,7 +4492,7 @@ const Ua = ye()({
4492
4492
  h.value && (h.value.checked = o.value);
4493
4493
  return;
4494
4494
  }
4495
- e.readonly && a && rt(() => a.forceUpdate()), o.value = A.target.checked;
4495
+ e.readonly && a && ot(() => a.forceUpdate()), o.value = A.target.checked;
4496
4496
  }
4497
4497
  return xe(() => {
4498
4498
  var $, P;
@@ -4790,7 +4790,7 @@ function A2(e) {
4790
4790
  (I = i.update) == null || I.call(i, b.value, f.value, c.value);
4791
4791
  });
4792
4792
  async function h() {
4793
- r.value = null, await rt(), await _();
4793
+ r.value = null, await ot(), await _();
4794
4794
  }
4795
4795
  async function _() {
4796
4796
  o.value = !0, s.value.lazy ? u.value = [] : await x(!s.value.eager);
@@ -7032,7 +7032,7 @@ const sb = ue({
7032
7032
  async function f(h) {
7033
7033
  var I, g, S;
7034
7034
  const _ = h.relatedTarget, x = h.target;
7035
- await rt(), r.value && _ !== x && ((I = l.value) != null && I.contentEl) && // We're the topmost menu
7035
+ await ot(), r.value && _ !== x && ((I = l.value) != null && I.contentEl) && // We're the topmost menu
7036
7036
  ((g = l.value) != null && g.globalTop) && // It isn't the document or the menu body
7037
7037
  ![document, l.value.contentEl].includes(x) && // It isn't inside the menu body
7038
7038
  !l.value.contentEl.contains(x) && ((S = La(l.value.contentEl)[0]) == null || S.focus());
@@ -7471,7 +7471,7 @@ const pb = ["color", "file", "time", "date", "datetime-local", "week", "month"],
7471
7471
  _(), r("click:control", C);
7472
7472
  }
7473
7473
  function g(C) {
7474
- C.stopPropagation(), _(), rt(() => {
7474
+ C.stopPropagation(), _(), ot(() => {
7475
7475
  i.value = null, kg(e["onClick:clear"], C);
7476
7476
  });
7477
7477
  }
@@ -7480,7 +7480,7 @@ const pb = ["color", "file", "time", "date", "datetime-local", "week", "month"],
7480
7480
  const A = C.target;
7481
7481
  if (i.value = A.value, (k = e.modelModifiers) != null && k.trim && ["text", "search", "password", "tel", "url"].includes(e.type)) {
7482
7482
  const R = [A.selectionStart, A.selectionEnd];
7483
- rt(() => {
7483
+ ot(() => {
7484
7484
  A.selectionStart = R[0], A.selectionEnd = R[1];
7485
7485
  });
7486
7486
  }
@@ -7669,7 +7669,7 @@ function xb(e, t) {
7669
7669
  h[z] = (h[z - 1] || 0) + I(z - 1);
7670
7670
  _.value = Math.max(_.value, performance.now() - B);
7671
7671
  }, _), S = ve(m, (B) => {
7672
- B && (S(), s = c.value.offsetTop, g.immediate(), V(), ~x && rt(() => {
7672
+ B && (S(), s = c.value.offsetTop, g.immediate(), V(), ~x && ot(() => {
7673
7673
  lt && window.requestAnimationFrame(() => {
7674
7674
  q(x), x = -1;
7675
7675
  });
@@ -8025,7 +8025,7 @@ const xm = ue({
8025
8025
  } else z && (d.value = [...d.value, G]);
8026
8026
  } else {
8027
8027
  const L = B !== !1;
8028
- d.value = L ? [G] : [], rt(() => {
8028
+ d.value = L ? [G] : [], ot(() => {
8029
8029
  l.value = !1;
8030
8030
  });
8031
8031
  }
@@ -8454,14 +8454,14 @@ const Pb = ue({
8454
8454
  e.clearOnSelect && (g.value = "");
8455
8455
  } else {
8456
8456
  const ke = se !== !1;
8457
- S.value = ke ? [re] : [], g.value = ke && !P.value ? re.title : "", rt(() => {
8457
+ S.value = ke ? [re] : [], g.value = ke && !P.value ? re.title : "", ot(() => {
8458
8458
  f.value = !1, u.value = !0;
8459
8459
  });
8460
8460
  }
8461
8461
  }
8462
8462
  return ve(i, (re, se) => {
8463
8463
  var ke;
8464
- re !== se && (re ? (Te.value = !0, g.value = e.multiple || P.value ? "" : String(((ke = S.value.at(-1)) == null ? void 0 : ke.props.title) ?? ""), u.value = !0, rt(() => Te.value = !1)) : (!e.multiple && g.value == null && (S.value = []), f.value = !1, S.value.some((Ce) => {
8464
+ re !== se && (re ? (Te.value = !0, g.value = e.multiple || P.value ? "" : String(((ke = S.value.at(-1)) == null ? void 0 : ke.props.title) ?? ""), u.value = !0, ot(() => Te.value = !1)) : (!e.multiple && g.value == null && (S.value = []), f.value = !1, S.value.some((Ce) => {
8465
8465
  let {
8466
8466
  title: Oe
8467
8467
  } = Ce;
@@ -8810,7 +8810,7 @@ const Pb = ue({
8810
8810
  }
8811
8811
  return ve(a, async (s) => {
8812
8812
  var f;
8813
- s || (await rt(), (f = u.value.activatorEl) == null || f.focus({
8813
+ s || (await ot(), (f = u.value.activatorEl) == null || f.focus({
8814
8814
  preventScroll: !0
8815
8815
  }));
8816
8816
  }), xe(() => {
@@ -9315,7 +9315,7 @@ const Pb = ue({
9315
9315
  l();
9316
9316
  }
9317
9317
  function f(m) {
9318
- u.value && rt(() => {
9318
+ u.value && ot(() => {
9319
9319
  !o.value || !u.value || !r || (r.transitionHeight.value = _e(m.clientHeight));
9320
9320
  });
9321
9321
  }
@@ -11350,7 +11350,7 @@ function $3(e, t) {
11350
11350
  function b(g) {
11351
11351
  s.value = g;
11352
11352
  const S = A3(g);
11353
- rt(() => {
11353
+ ot(() => {
11354
11354
  s.value = S, Se(s.value, r, !0).isValid() && f({ val: s.value }) && (l.value = s.value ?? "");
11355
11355
  });
11356
11356
  }
@@ -11684,7 +11684,7 @@ const No = /* @__PURE__ */ new WeakMap(), V3 = (e, t) => {
11684
11684
  ],
11685
11685
  setup(e, { emit: t }) {
11686
11686
  const n = e, r = t, a = bs(), i = K(), u = K(), o = K(!1), l = K(n.modelValue), c = T(() => ({
11687
- modelValue: n.modelValue,
11687
+ modelValue: l.value,
11688
11688
  color: n.color || "var(--color-fmTextField)",
11689
11689
  bgColor: n.bgColor || n.outlined ? "var(--backgroundColor-fmTextField-outlined)" : "var(--backgroundColor-fmTextField)",
11690
11690
  density: n.compact ? "compact" : "default",
@@ -11735,11 +11735,9 @@ const No = /* @__PURE__ */ new WeakMap(), V3 = (e, t) => {
11735
11735
  return Vt(() => {
11736
11736
  u.value = i.value.$el.querySelector("input"), r("init", { component: i.value, input: u.value });
11737
11737
  }), ve(
11738
- () => l.value,
11739
- () => {
11740
- rt(() => {
11741
- n.modelValue !== l.value && (l.value = n.modelValue, u.value.value = l.value);
11742
- });
11738
+ () => n.modelValue,
11739
+ (h) => {
11740
+ h !== l.value && (l.value = h);
11743
11741
  },
11744
11742
  { immediate: !0 }
11745
11743
  ), (h, _) => Ue((j(), de(Y(za), ie({
@@ -11800,7 +11798,7 @@ const No = /* @__PURE__ */ new WeakMap(), V3 = (e, t) => {
11800
11798
  [Y(D3), n.mask]
11801
11799
  ]);
11802
11800
  }
11803
- }, on = /* @__PURE__ */ Ie(N3, [["__scopeId", "data-v-14373b89"]]);
11801
+ }, on = /* @__PURE__ */ Ie(N3, [["__scopeId", "data-v-48264119"]]);
11804
11802
  var F3 = Object.prototype;
11805
11803
  function R3(e) {
11806
11804
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || F3;
@@ -11955,7 +11953,7 @@ function bw(e) {
11955
11953
  return t == gw || t == yw ? e.size : fw(e).length;
11956
11954
  }
11957
11955
  var ww = bw;
11958
- const ot = /* @__PURE__ */ dt(ww);
11956
+ const ut = /* @__PURE__ */ dt(ww);
11959
11957
  function Sw() {
11960
11958
  this.__data__ = [], this.size = 0;
11961
11959
  }
@@ -12893,7 +12891,7 @@ const Mk = { class: "fm-year-month-picker" }, Bk = { class: "fm-year-month-picke
12893
12891
  const { current: g, prev: S, next: C } = Pk(
12894
12892
  o.value.year,
12895
12893
  o.value.month
12896
- ), A = je(g), k = A[0], R = A[ot(A) - 1];
12894
+ ), A = je(g), k = A[0], R = A[ut(A) - 1];
12897
12895
  if ((R == null ? void 0 : R.day) !== 6) {
12898
12896
  let N = !1, $ = 0;
12899
12897
  for (; !N; ) {
@@ -12920,7 +12918,7 @@ const Mk = { class: "fm-year-month-picker" }, Bk = { class: "fm-year-month-picke
12920
12918
  }
12921
12919
  function _(g) {
12922
12920
  const S = h(g.dateISO);
12923
- if (ot(r.nonSelectableDates) === 0 && r.canWeekendsBeSelected)
12921
+ if (ut(r.nonSelectableDates) === 0 && r.canWeekendsBeSelected)
12924
12922
  return !S;
12925
12923
  const C = r.nonSelectableDates.includes(g.dateISO);
12926
12924
  return r.canWeekendsBeSelected ? C || !S : C || [0, 6].includes(g.day) || !S;
@@ -19618,7 +19616,7 @@ function() {
19618
19616
  }
19619
19617
  var v = u.join(r.delimiter), m = r.addQueryPrefix === !0 ? "?" : "";
19620
19618
  return r.charsetSentinel && (r.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), v.length > 0 ? m + v : "";
19621
- }, Qr = qp, as = Object.prototype.hasOwnProperty, hE = Array.isArray, ut = {
19619
+ }, Qr = qp, as = Object.prototype.hasOwnProperty, hE = Array.isArray, it = {
19622
19620
  allowDots: !1,
19623
19621
  allowEmptyArrays: !1,
19624
19622
  allowPrototypes: !1,
@@ -19655,10 +19653,10 @@ function() {
19655
19653
  for (l = 0; l < u.length; ++l)
19656
19654
  if (l !== o) {
19657
19655
  var s = u[l], f = s.indexOf("]="), d = f === -1 ? s.indexOf("=") : f + 1, v, m;
19658
- d === -1 ? (v = n.decoder(s, ut.decoder, c, "key"), m = n.strictNullHandling ? null : "") : (v = n.decoder(s.slice(0, d), ut.decoder, c, "key"), m = Qr.maybeMap(
19656
+ d === -1 ? (v = n.decoder(s, it.decoder, c, "key"), m = n.strictNullHandling ? null : "") : (v = n.decoder(s.slice(0, d), it.decoder, c, "key"), m = Qr.maybeMap(
19659
19657
  Wp(s.slice(d + 1), n),
19660
19658
  function(h) {
19661
- return n.decoder(h, ut.decoder, c, "value");
19659
+ return n.decoder(h, it.decoder, c, "value");
19662
19660
  }
19663
19661
  )), m && n.interpretNumericEntities && c === "iso-8859-1" && (m = pE(String(m))), s.indexOf("[]=") > -1 && (m = hE(m) ? [m] : m);
19664
19662
  var b = as.call(r, v);
@@ -19700,7 +19698,7 @@ function() {
19700
19698
  }
19701
19699
  }, xE = function(t) {
19702
19700
  if (!t)
19703
- return ut;
19701
+ return it;
19704
19702
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
19705
19703
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
19706
19704
  if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
@@ -19709,32 +19707,32 @@ function() {
19709
19707
  throw new TypeError("Decoder has to be a function.");
19710
19708
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
19711
19709
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
19712
- var n = typeof t.charset > "u" ? ut.charset : t.charset, r = typeof t.duplicates > "u" ? ut.duplicates : t.duplicates;
19710
+ var n = typeof t.charset > "u" ? it.charset : t.charset, r = typeof t.duplicates > "u" ? it.duplicates : t.duplicates;
19713
19711
  if (r !== "combine" && r !== "first" && r !== "last")
19714
19712
  throw new TypeError("The duplicates option must be either combine, first, or last");
19715
- var a = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : ut.allowDots : !!t.allowDots;
19713
+ var a = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : it.allowDots : !!t.allowDots;
19716
19714
  return {
19717
19715
  allowDots: a,
19718
- allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : ut.allowEmptyArrays,
19719
- allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : ut.allowPrototypes,
19720
- allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : ut.allowSparse,
19721
- arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : ut.arrayLimit,
19716
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : it.allowEmptyArrays,
19717
+ allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : it.allowPrototypes,
19718
+ allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : it.allowSparse,
19719
+ arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : it.arrayLimit,
19722
19720
  charset: n,
19723
- charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : ut.charsetSentinel,
19724
- comma: typeof t.comma == "boolean" ? t.comma : ut.comma,
19725
- decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : ut.decodeDotInKeys,
19726
- decoder: typeof t.decoder == "function" ? t.decoder : ut.decoder,
19727
- delimiter: typeof t.delimiter == "string" || Qr.isRegExp(t.delimiter) ? t.delimiter : ut.delimiter,
19721
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : it.charsetSentinel,
19722
+ comma: typeof t.comma == "boolean" ? t.comma : it.comma,
19723
+ decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : it.decodeDotInKeys,
19724
+ decoder: typeof t.decoder == "function" ? t.decoder : it.decoder,
19725
+ delimiter: typeof t.delimiter == "string" || Qr.isRegExp(t.delimiter) ? t.delimiter : it.delimiter,
19728
19726
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
19729
- depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : ut.depth,
19727
+ depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : it.depth,
19730
19728
  duplicates: r,
19731
19729
  ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
19732
- interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : ut.interpretNumericEntities,
19733
- parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : ut.parameterLimit,
19730
+ interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : it.interpretNumericEntities,
19731
+ parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : it.parameterLimit,
19734
19732
  parseArrays: t.parseArrays !== !1,
19735
- plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : ut.plainObjects,
19736
- strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : ut.strictDepth,
19737
- strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : ut.strictNullHandling
19733
+ plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : it.plainObjects,
19734
+ strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : it.strictDepth,
19735
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : it.strictNullHandling
19738
19736
  };
19739
19737
  }, CE = function(e, t) {
19740
19738
  var n = xE(t);
@@ -20533,10 +20531,10 @@ jc.write = function(e, t, n, r, a, i) {
20533
20531
  return 1;
20534
20532
  if (y >>>= 0, F >>>= 0, H >>>= 0, Z >>>= 0, this === p) return 0;
20535
20533
  let ae = Z - H, Le = F - y;
20536
- const at = Math.min(ae, Le), tt = this.slice(H, Z), it = p.slice(y, F);
20537
- for (let Xe = 0; Xe < at; ++Xe)
20538
- if (tt[Xe] !== it[Xe]) {
20539
- ae = tt[Xe], Le = it[Xe];
20534
+ const rt = Math.min(ae, Le), tt = this.slice(H, Z), at = p.slice(y, F);
20535
+ for (let Xe = 0; Xe < rt; ++Xe)
20536
+ if (tt[Xe] !== at[Xe]) {
20537
+ ae = tt[Xe], Le = at[Xe];
20540
20538
  break;
20541
20539
  }
20542
20540
  return ae < Le ? -1 : Le < ae ? 1 : 0;
@@ -20562,26 +20560,26 @@ jc.write = function(e, t, n, r, a, i) {
20562
20560
  return -1;
20563
20561
  Z = 2, ae /= 2, Le /= 2, y /= 2;
20564
20562
  }
20565
- function at(it, Xe) {
20566
- return Z === 1 ? it[Xe] : it.readUInt16BE(Xe * Z);
20563
+ function rt(at, Xe) {
20564
+ return Z === 1 ? at[Xe] : at.readUInt16BE(Xe * Z);
20567
20565
  }
20568
20566
  let tt;
20569
20567
  if (H) {
20570
- let it = -1;
20568
+ let at = -1;
20571
20569
  for (tt = y; tt < ae; tt++)
20572
- if (at(O, tt) === at(p, it === -1 ? 0 : tt - it)) {
20573
- if (it === -1 && (it = tt), tt - it + 1 === Le) return it * Z;
20570
+ if (rt(O, tt) === rt(p, at === -1 ? 0 : tt - at)) {
20571
+ if (at === -1 && (at = tt), tt - at + 1 === Le) return at * Z;
20574
20572
  } else
20575
- it !== -1 && (tt -= tt - it), it = -1;
20573
+ at !== -1 && (tt -= tt - at), at = -1;
20576
20574
  } else
20577
20575
  for (y + Le > ae && (y = ae - Le), tt = y; tt >= 0; tt--) {
20578
- let it = !0;
20576
+ let at = !0;
20579
20577
  for (let Xe = 0; Xe < Le; Xe++)
20580
- if (at(O, tt + Xe) !== at(p, Xe)) {
20581
- it = !1;
20578
+ if (rt(O, tt + Xe) !== rt(p, Xe)) {
20579
+ at = !1;
20582
20580
  break;
20583
20581
  }
20584
- if (it) return tt;
20582
+ if (at) return tt;
20585
20583
  }
20586
20584
  return -1;
20587
20585
  }
@@ -20673,19 +20671,19 @@ jc.write = function(e, t, n, r, a, i) {
20673
20671
  const Z = O[H];
20674
20672
  let ae = null, Le = Z > 239 ? 4 : Z > 223 ? 3 : Z > 191 ? 2 : 1;
20675
20673
  if (H + Le <= y) {
20676
- let at, tt, it, Xe;
20674
+ let rt, tt, at, Xe;
20677
20675
  switch (Le) {
20678
20676
  case 1:
20679
20677
  Z < 128 && (ae = Z);
20680
20678
  break;
20681
20679
  case 2:
20682
- at = O[H + 1], (at & 192) === 128 && (Xe = (Z & 31) << 6 | at & 63, Xe > 127 && (ae = Xe));
20680
+ rt = O[H + 1], (rt & 192) === 128 && (Xe = (Z & 31) << 6 | rt & 63, Xe > 127 && (ae = Xe));
20683
20681
  break;
20684
20682
  case 3:
20685
- at = O[H + 1], tt = O[H + 2], (at & 192) === 128 && (tt & 192) === 128 && (Xe = (Z & 15) << 12 | (at & 63) << 6 | tt & 63, Xe > 2047 && (Xe < 55296 || Xe > 57343) && (ae = Xe));
20683
+ rt = O[H + 1], tt = O[H + 2], (rt & 192) === 128 && (tt & 192) === 128 && (Xe = (Z & 15) << 12 | (rt & 63) << 6 | tt & 63, Xe > 2047 && (Xe < 55296 || Xe > 57343) && (ae = Xe));
20686
20684
  break;
20687
20685
  case 4:
20688
- at = O[H + 1], tt = O[H + 2], it = O[H + 3], (at & 192) === 128 && (tt & 192) === 128 && (it & 192) === 128 && (Xe = (Z & 15) << 18 | (at & 63) << 12 | (tt & 63) << 6 | it & 63, Xe > 65535 && Xe < 1114112 && (ae = Xe));
20686
+ rt = O[H + 1], tt = O[H + 2], at = O[H + 3], (rt & 192) === 128 && (tt & 192) === 128 && (at & 192) === 128 && (Xe = (Z & 15) << 18 | (rt & 63) << 12 | (tt & 63) << 6 | at & 63, Xe > 65535 && Xe < 1114112 && (ae = Xe));
20689
20687
  }
20690
20688
  }
20691
20689
  ae === null ? (ae = 65533, Le = 1) : ae > 65535 && (ae -= 65536, F.push(ae >>> 10 & 1023 | 55296), ae = 56320 | ae & 1023), F.push(ae), H += Le;
@@ -20880,8 +20878,8 @@ jc.write = function(e, t, n, r, a, i) {
20880
20878
  return oe(this, p, y, BigInt(0), BigInt("0xffffffffffffffff"));
20881
20879
  }), s.prototype.writeIntLE = function(p, y, F, H) {
20882
20880
  if (p = +p, y = y >>> 0, !H) {
20883
- const at = Math.pow(2, 8 * F - 1);
20884
- te(this, p, y, F, at - 1, -at);
20881
+ const rt = Math.pow(2, 8 * F - 1);
20882
+ te(this, p, y, F, rt - 1, -rt);
20885
20883
  }
20886
20884
  let Z = 0, ae = 1, Le = 0;
20887
20885
  for (this[y] = p & 255; ++Z < F && (ae *= 256); )
@@ -20889,8 +20887,8 @@ jc.write = function(e, t, n, r, a, i) {
20889
20887
  return y + F;
20890
20888
  }, s.prototype.writeIntBE = function(p, y, F, H) {
20891
20889
  if (p = +p, y = y >>> 0, !H) {
20892
- const at = Math.pow(2, 8 * F - 1);
20893
- te(this, p, y, F, at - 1, -at);
20890
+ const rt = Math.pow(2, 8 * F - 1);
20891
+ te(this, p, y, F, rt - 1, -rt);
20894
20892
  }
20895
20893
  let Z = F - 1, ae = 1, Le = 0;
20896
20894
  for (this[y + Z] = p & 255; --Z >= 0 && (ae *= 256); )
@@ -23675,7 +23673,7 @@ const E1 = {
23675
23673
  categories: v.value,
23676
23674
  "current-category": h.value,
23677
23675
  "selected-category-name": k.locals.selectedLabel,
23678
- "selected-count": k.multiple ? Y(ot)(u.value) : 0,
23676
+ "selected-count": k.multiple ? Y(ut)(u.value) : 0,
23679
23677
  "onSelect:category": R[1] || (R[1] = (N) => h.value = N)
23680
23678
  }, null, 8, ["categories", "current-category", "selected-category-name", "selected-count"])
23681
23679
  ]),
@@ -25126,14 +25124,14 @@ function aB(e, t) {
25126
25124
  f.value = 0, r.value && r.value.focus();
25127
25125
  return;
25128
25126
  }
25129
- f.value >= 0 && f.value < ot(d.value) - 1 && (f.value += 1);
25127
+ f.value >= 0 && f.value < ut(d.value) - 1 && (f.value += 1);
25130
25128
  }
25131
25129
  function R() {
25132
25130
  if (f.value === null) {
25133
- f.value = ot(d.value) - 1, r.value && r.value.focus();
25131
+ f.value = ut(d.value) - 1, r.value && r.value.focus();
25134
25132
  return;
25135
25133
  }
25136
- f.value > 0 && f.value < ot(d.value) && (f.value -= 1);
25134
+ f.value > 0 && f.value < ut(d.value) && (f.value -= 1);
25137
25135
  }
25138
25136
  function N() {
25139
25137
  i.value = !1, u.value = !1, f.value = null, a.value && a.value.blur();
@@ -26425,7 +26423,7 @@ const hV = /* @__PURE__ */ dt(mV), pV = { class: "fm-date-tree-item__title" }, g
26425
26423
  style: an(a.value),
26426
26424
  onClick: o[1] || (o[1] = Fe((l) => r("click", l), ["stop", "prevent"]))
26427
26425
  }, [
26428
- Y(ot)(u.item.children) > 0 ? (j(), de(ct, {
26426
+ Y(ut)(u.item.children) > 0 ? (j(), de(ct, {
26429
26427
  key: 0,
26430
26428
  icon: u.item.isOpened ? "mdi-menu-down" : "mdi-menu-right",
26431
26429
  color: "var(--on-surface-variant)",
@@ -26482,7 +26480,7 @@ function D0(e = [], t) {
26482
26480
  const n = e.reduce((r, a) => {
26483
26481
  const { year: i, month: u, date: o, hours: l, minutes: c, time: s } = U1(a);
26484
26482
  let f = j1({ tree: r, year: i });
26485
- f === -1 && (f = ot(r), r.push({
26483
+ f === -1 && (f = ut(r), r.push({
26486
26484
  title: `${i}`,
26487
26485
  value: i,
26488
26486
  level: 0,
@@ -26491,7 +26489,7 @@ function D0(e = [], t) {
26491
26489
  children: []
26492
26490
  }));
26493
26491
  let d = q1({ tree: r, month: u, yearIndex: f });
26494
- d === -1 && (d = ot(r[f].children), r[f].children.push({
26492
+ d === -1 && (d = ut(r[f].children), r[f].children.push({
26495
26493
  title: new Date(a).toLocaleDateString("default", { month: "long" }),
26496
26494
  value: u,
26497
26495
  level: 1,
@@ -26500,7 +26498,7 @@ function D0(e = [], t) {
26500
26498
  children: []
26501
26499
  }));
26502
26500
  let v = z1({ tree: r, date: o, yearIndex: f, monthIndex: d });
26503
- if (v === -1 && (v = ot(r[f].children[d].children), r[f].children[d].children.push({
26501
+ if (v === -1 && (v = ut(r[f].children[d].children), r[f].children[d].children.push({
26504
26502
  title: new Date(a).toLocaleDateString("default", { day: "2-digit" }),
26505
26503
  value: o,
26506
26504
  level: 2,
@@ -26548,8 +26546,8 @@ const yV = { class: "fm-date-tree" }, bV = { class: "fm-date-tree__header" }, wV
26548
26546
  const n = e, r = t, a = K(!1), i = K(!1), u = K(D0(n.data, n.includeTime)), o = K([]);
26549
26547
  function l() {
26550
26548
  a.value = !a.value, u.value.forEach((m) => {
26551
- m.isOpened = a.value, ot(m.children) && m.children.forEach((b) => {
26552
- b.isOpened = a.value, ot(b.children) && b.children.forEach((h) => {
26549
+ m.isOpened = a.value, ut(m.children) && m.children.forEach((b) => {
26550
+ b.isOpened = a.value, ut(b.children) && b.children.forEach((h) => {
26553
26551
  h.isOpened = a.value;
26554
26552
  });
26555
26553
  });
@@ -26560,7 +26558,7 @@ const yV = { class: "fm-date-tree" }, bV = { class: "fm-date-tree__header" }, wV
26560
26558
  Ut(u.value, `${m}.isOpened`, !b);
26561
26559
  }
26562
26560
  function s(m, b) {
26563
- if (ot(b) === 0)
26561
+ if (ut(b) === 0)
26564
26562
  return m;
26565
26563
  const h = ln(m, b, []).every(
26566
26564
  (I) => I.selectedStatus === "selected"
@@ -26570,13 +26568,13 @@ const yV = { class: "fm-date-tree" }, bV = { class: "fm-date-tree__header" }, wV
26570
26568
  return Ut(m, [...b.slice(0, -1), "selectedStatus"], x), s(m, b.slice(0, -2));
26571
26569
  }
26572
26570
  function f() {
26573
- if (!ot(u.value))
26571
+ if (!ut(u.value))
26574
26572
  return;
26575
26573
  let m = je(u.value);
26576
26574
  m.forEach((b) => {
26577
- b.selectedStatus = "unselected", ot(b.children) && b.children.forEach((h) => {
26578
- h.selectedStatus = "unselected", ot(h.children) && h.children.forEach((_) => {
26579
- _.selectedStatus = "unselected", ot(_.children) && _.children.forEach((x) => {
26575
+ b.selectedStatus = "unselected", ut(b.children) && b.children.forEach((h) => {
26576
+ h.selectedStatus = "unselected", ut(h.children) && h.children.forEach((_) => {
26577
+ _.selectedStatus = "unselected", ut(_.children) && _.children.forEach((x) => {
26580
26578
  x.selectedStatus = "unselected";
26581
26579
  });
26582
26580
  });
@@ -26625,7 +26623,7 @@ const yV = { class: "fm-date-tree" }, bV = { class: "fm-date-tree__header" }, wV
26625
26623
  const k = C.findIndex((R) => R === A);
26626
26624
  b && k !== -1 ? C.splice(k, 1) : !b && k === -1 && C.push(A);
26627
26625
  }
26628
- C.sort(), hV(o.value, C) || (o.value = C, r("update:modelValue", o.value), ot(n.data) !== ot(o.value) && i.value && (i.value = !1));
26626
+ C.sort(), hV(o.value, C) || (o.value = C, r("update:modelValue", o.value), ut(n.data) !== ut(o.value) && i.value && (i.value = !1));
26629
26627
  }
26630
26628
  return ve(
26631
26629
  () => n.modelValue,
@@ -26938,7 +26936,7 @@ const N0 = /* @__PURE__ */ dt(MV), BV = [
26938
26936
  return (f = s.title) == null ? void 0 : f.toLowerCase().includes(a.value.toLowerCase());
26939
26937
  }
26940
26938
  )
26941
- ), u = T(() => ot(n.options) === ot(n.selected) ? "all" : ot(n.selected) ? "indeterminate" : "none");
26939
+ ), u = T(() => ut(n.options) === ut(n.selected) ? "all" : ut(n.selected) ? "indeterminate" : "none");
26942
26940
  function o(s) {
26943
26941
  return n.selected.some((f) => f.value === s.value);
26944
26942
  }
@@ -27142,7 +27140,7 @@ const aD = { class: "fm-numeric-filter" }, iD = { class: "fm-numeric-filter__row
27142
27140
  const f = je(n.filter);
27143
27141
  if (c === "update") {
27144
27142
  const d = pl(s);
27145
- f.options.filter_values = d ? [Number(d)] : [], rt(() => {
27143
+ f.options.filter_values = d ? [Number(d)] : [], ot(() => {
27146
27144
  u.value = d;
27147
27145
  });
27148
27146
  }
@@ -27152,7 +27150,7 @@ const aD = { class: "fm-numeric-filter" }, iD = { class: "fm-numeric-filter__row
27152
27150
  f,
27153
27151
  ["options", "filter_values", "min_value"],
27154
27152
  d ? Number(d) : null
27155
- ), rt(() => {
27153
+ ), ot(() => {
27156
27154
  u.value.min_value = d;
27157
27155
  });
27158
27156
  }
@@ -27162,7 +27160,7 @@ const aD = { class: "fm-numeric-filter" }, iD = { class: "fm-numeric-filter__row
27162
27160
  f,
27163
27161
  ["options", "filter_values", "max_value"],
27164
27162
  d ? Number(d) : null
27165
- ), rt(() => {
27163
+ ), ot(() => {
27166
27164
  u.value.max_value = d;
27167
27165
  });
27168
27166
  }
@@ -28268,7 +28266,7 @@ const iR = ["id"], uR = {
28268
28266
  s.value && (f.value.left = A.clientX - f.value.shiftX - f.value.initialLeft, f.value.top = A.clientY - f.value.shiftY - f.value.initialTop);
28269
28267
  }
28270
28268
  return Vt(() => {
28271
- c.value && rt(() => {
28269
+ c.value && ot(() => {
28272
28270
  c.value.focus(), setTimeout(() => {
28273
28271
  const A = c.value.getBoundingClientRect();
28274
28272
  f.value.initialLeft = A.left, f.value.initialTop = A.top;
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@finmars/ui",
3
- "version": "1.0.70",
4
- "description": "",
3
+ "version": "1.0.71",
4
+ "description": "Finmars UI library for Vue 3 applications.",
5
5
  "scripts": {
6
6
  "dev": "vite dev --config vite.config.dev.js",
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "storybook": "storybook dev -p 6006 --no-open",
9
9
  "build-storybook": "node --max-old-space-size=4096 ./node_modules/.bin/storybook build",
10
10
  "clean": "rimraf ./dist",
11
- "copy:css": "cp ./src/assets/css/themes.css ./dist",
12
- "copy:fonts": "cp ./src/assets/css/fonts.css ./dist",
13
- "build": "npm run clean && vite build && npm run copy:fonts && npm run copy:css"
11
+ "copy:assets": "cp ./src/assets/css/themes.css ./dist && cp ./src/assets/css/fonts.css ./dist",
12
+ "build": "npm run clean && vite build && npm run copy:assets"
14
13
  },
15
14
  "files": [
16
15
  "dist/",
@@ -29,7 +28,12 @@
29
28
  "./dist/finmars-ui.css": "./dist/finmars-ui.css",
30
29
  "./dist/themes.css": "./dist/themes.css"
31
30
  },
32
- "keywords": [],
31
+ "keywords": [
32
+ "finmars",
33
+ "UI",
34
+ "Vue3",
35
+ "component-library"
36
+ ],
33
37
  "author": "Sergei Zhitenev",
34
38
  "license": "SEE LICENSE IN LICENSE.md",
35
39
  "devDependencies": {