@quidgest/ui 0.16.16 → 0.16.18

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/ui.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var $o = Object.defineProperty;
2
2
  var xo = (t, e, a) => e in t ? $o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
3
  var be = (t, e, a) => xo(t, typeof e != "symbol" ? e + "" : e, a);
4
- import { getCurrentInstance as _l, computed as k, ref as K, provide as kl, inject as Ha, unref as u, isRef as dn, watch as Pe, defineComponent as pe, mergeModels as Se, toRef as Fe, useModel as Ve, createElementBlock as D, openBlock as m, normalizeClass as ie, renderSlot as C, normalizeStyle as Ke, withModifiers as ht, createCommentVNode as L, createElementVNode as ee, createVNode as ge, createTextVNode as Je, toDisplayString as De, useAttrs as $l, createBlock as re, resolveDynamicComponent as ea, withCtx as H, Fragment as we, h as cn, mergeProps as Te, withKeys as fn, normalizeProps as Ee, guardReactiveProps as Qe, useSlots as Qt, useTemplateRef as Ua, createSlots as Ye, withDirectives as Ft, vModelDynamic as Do, vModelText as xl, renderList as Ne, useId as To, onMounted as et, onUnmounted as xt, readonly as Mo, customRef as Ao, getCurrentScope as Vr, onScopeDispose as Dl, shallowRef as ll, nextTick as je, toValue as kn, reactive as Gt, onBeforeUnmount as Co, Teleport as Fr, Transition as Yt, render as tr, onBeforeUpdate as Po, vShow as un, resolveComponent as qo, vModelCheckbox as So, toHandlers as Oo, TransitionGroup as Io } from "vue";
4
+ import { getCurrentInstance as _l, computed as k, ref as K, provide as kl, inject as Ha, unref as u, isRef as dn, watch as Pe, defineComponent as pe, mergeModels as Se, toRef as Fe, useModel as Ve, createElementBlock as D, openBlock as m, normalizeClass as ie, renderSlot as C, normalizeStyle as Ke, withModifiers as pt, createCommentVNode as L, createElementVNode as ee, createVNode as ge, createTextVNode as Je, toDisplayString as De, useAttrs as $l, createBlock as re, resolveDynamicComponent as ea, withCtx as H, Fragment as we, h as cn, mergeProps as Te, withKeys as fn, normalizeProps as Ee, guardReactiveProps as Qe, useSlots as Qt, useTemplateRef as Ua, createSlots as Ye, withDirectives as Ft, vModelDynamic as Do, vModelText as xl, renderList as Ne, useId as To, onMounted as et, onUnmounted as xt, readonly as Mo, customRef as Ao, getCurrentScope as Vr, onScopeDispose as Dl, shallowRef as ll, nextTick as je, toValue as kn, reactive as Gt, onBeforeUnmount as Co, Teleport as Fr, Transition as Yt, render as tr, onBeforeUpdate as Po, vShow as un, resolveComponent as qo, vModelCheckbox as So, toHandlers as Oo, TransitionGroup as Io } from "vue";
5
5
  /*!
6
- * Quidgest UI v0.16.16
6
+ * Quidgest UI v0.16.18
7
7
  * (c) 2025 Quidgest - Consultores de Gestão, S.A.
8
8
  * Released under the MIT License.
9
9
  */
@@ -44,42 +44,42 @@ const rl = {
44
44
  onInfo: "#fff",
45
45
  onNeutral: "#fff"
46
46
  }, Yr = {
47
- primary: "#008ad2",
48
- primaryLight: "#006398",
49
- primaryDark: "#cde5ff",
50
- secondary: "#003552",
51
- secondaryLight: "#001425",
52
- secondaryDark: "#e6eef3",
53
- highlight: "#ff8241",
54
- highlightLight: "#cc4700",
55
- highlightDark: "#ffe4d6",
56
- info: "#17a2b8",
57
- infoLight: "#11798a",
58
- infoDark: "#bceff7",
59
- success: "#28a745",
60
- successLight: "#1e7d34",
61
- successDark: "#c2f0cd",
62
- warning: "#ffa900",
63
- warningLight: "#bf7f00",
64
- warningDark: "#ffeabf",
65
- danger: "#b71c1c",
66
- dangerLight: "#891515",
67
- dangerDark: "#f7cccc",
68
- background: "#202428",
69
- container: "#202428",
70
- neutral: "#9299a0",
71
- neutralLight: "#40474f",
72
- neutralDark: "#c4c5ca",
73
- onBackground: "#fff",
74
- onPrimary: "#fff",
75
- onSecondary: "#fff",
76
- onHighlight: "#fff",
77
- onSuccess: "#fff",
78
- onWarning: "#fff",
79
- onDanger: "#fff",
80
- onInfo: "#fff",
81
- onNeutral: "#fff"
82
- }, Dg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
+ primary: "#4da6e0",
48
+ primaryLight: "#2d8bc7",
49
+ primaryDark: "#87c4e8",
50
+ secondary: "#4a6b82",
51
+ secondaryLight: "#2c4a5e",
52
+ secondaryDark: "#6b8ca3",
53
+ highlight: "#ff9966",
54
+ highlightLight: "#e67344",
55
+ highlightDark: "#ffb088",
56
+ info: "#3bb5d1",
57
+ infoLight: "#2a9bb8",
58
+ infoDark: "#66c7dd",
59
+ success: "#4caf50",
60
+ successLight: "#388e3c",
61
+ successDark: "#81c784",
62
+ warning: "#ffb74d",
63
+ warningLight: "#e67e22",
64
+ warningDark: "#ffcc80",
65
+ danger: "#e57373",
66
+ dangerLight: "#c62828",
67
+ dangerDark: "#ef9a9a",
68
+ background: "#121212",
69
+ container: "#1e1e1e",
70
+ neutral: "#9e9e9e",
71
+ neutralLight: "#666666",
72
+ neutralDark: "#d0d0d0",
73
+ onBackground: "#ffffff",
74
+ onPrimary: "#ffffff",
75
+ onSecondary: "#ffffff",
76
+ onHighlight: "#ffffff",
77
+ onSuccess: "#ffffff",
78
+ onWarning: "#000000",
79
+ onDanger: "#ffffff",
80
+ onInfo: "#ffffff",
81
+ onNeutral: "#000000"
82
+ }, xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83
83
  __proto__: null,
84
84
  defaultDarkColorScheme: Yr,
85
85
  defaultLightColorScheme: rl
@@ -485,7 +485,7 @@ const Go = ["id", "disabled"], Zo = {
485
485
  class: ie(i.value),
486
486
  disabled: l.value,
487
487
  style: Ke(f.value),
488
- onClick: ht(r, ["stop", "prevent"])
488
+ onClick: pt(r, ["stop", "prevent"])
489
489
  }, [
490
490
  a.loading ? (m(), D("div", Zo, [
491
491
  ge(u(ja))
@@ -1035,7 +1035,7 @@ const Ai = /* @__PURE__ */ pe({
1035
1035
  role: r.value ? "button" : "presentation",
1036
1036
  style: Ke(f.value),
1037
1037
  tabindex: r.value ? 0 : void 0,
1038
- onKeydown: fn(ht(p, ["stop", "prevent"]), ["enter"])
1038
+ onKeydown: fn(pt(p, ["stop", "prevent"]), ["enter"])
1039
1039
  }, [
1040
1040
  a.variant === "tonal" ? (m(), D("div", Ii)) : L("", !0),
1041
1041
  ee("div", Ei, [
@@ -1174,7 +1174,7 @@ const Ai = /* @__PURE__ */ pe({
1174
1174
  }), (o, i) => (m(), D("div", {
1175
1175
  class: ie(r.value)
1176
1176
  }, [
1177
- e.labelPlacement !== "right" ? (m(), re(u(ol), {
1177
+ e.label && e.labelPlacement !== "right" ? (m(), re(u(ol), {
1178
1178
  key: 0,
1179
1179
  for: u(n),
1180
1180
  label: e.label,
@@ -1206,16 +1206,16 @@ const Ai = /* @__PURE__ */ pe({
1206
1206
  class: "q-checkbox__input",
1207
1207
  "aria-checked": e.indeterminate ? "mixed" : a.value,
1208
1208
  disabled: e.disabled || e.readonly,
1209
- onClick: ht(s, ["prevent"]),
1209
+ onClick: pt(s, ["prevent"]),
1210
1210
  onKeydown: [
1211
- fn(ht(s, ["prevent"]), ["space"]),
1212
- i[0] || (i[0] = fn(ht(() => {
1211
+ fn(pt(s, ["prevent"]), ["space"]),
1212
+ i[0] || (i[0] = fn(pt(() => {
1213
1213
  }, ["prevent"]), ["enter"]))
1214
1214
  ]
1215
1215
  }, [
1216
1216
  a.value || o.indeterminate ? (m(), re(u(Ue), Te({ key: 0 }, a.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : L("", !0)
1217
1217
  ], 40, Qi),
1218
- e.labelPlacement === "right" ? (m(), re(u(ol), {
1218
+ e.label && e.labelPlacement === "right" ? (m(), re(u(ol), {
1219
1219
  key: 1,
1220
1220
  for: u(n),
1221
1221
  label: e.label,
@@ -1899,7 +1899,7 @@ const Ai = /* @__PURE__ */ pe({
1899
1899
  "aria-label": a.label,
1900
1900
  "aria-selected": a.disabled ? void 0 : l.value,
1901
1901
  onKeydown: i,
1902
- onClick: ht(o, ["stop", "prevent"])
1902
+ onClick: pt(o, ["stop", "prevent"])
1903
1903
  }, [
1904
1904
  C(f.$slots, "prepend"),
1905
1905
  ee("div", hu, [
@@ -3594,7 +3594,7 @@ const Rd = ["id"], Ld = ["role"], Bd = /* @__PURE__ */ pe({
3594
3594
  borderless: "",
3595
3595
  tabindex: "-1",
3596
3596
  disabled: n.disabled,
3597
- onMousedown: ht(S, ["stop", "prevent"])
3597
+ onMousedown: pt(S, ["stop", "prevent"])
3598
3598
  }, {
3599
3599
  default: H(() => [
3600
3600
  ge(u(pn), {
@@ -6921,10 +6921,10 @@ Ql.compatConfig = {
6921
6921
  };
6922
6922
  const _t = (t, e) => e ? new Date(t.toLocaleString("en-US", { timeZone: e })) : new Date(t), Wl = (t, e, a) => ml(t, e, a) || oe(), Zf = (t, e, a) => {
6923
6923
  const n = e.dateInTz ? _t(new Date(t), e.dateInTz) : oe(t);
6924
- return a ? pt(n, !0) : n;
6924
+ return a ? mt(n, !0) : n;
6925
6925
  }, ml = (t, e, a) => {
6926
6926
  if (!t) return null;
6927
- const n = a ? pt(oe(t), !0) : oe(t);
6927
+ const n = a ? mt(oe(t), !0) : oe(t);
6928
6928
  return e ? e.exactMatch ? Zf(t, e, a) : _t(n, e.timezone) : n;
6929
6929
  }, Jf = (t) => {
6930
6930
  const e = new Date(t.getFullYear(), 0, 1).getTimezoneOffset();
@@ -6934,7 +6934,7 @@ const _t = (t, e) => e ? new Date(t.toLocaleString("en-US", { timeZone: e })) :
6934
6934
  const a = /* @__PURE__ */ new Date(), n = new Date(a.toLocaleString("en-US", { timeZone: "UTC" })), l = new Date(a.toLocaleString("en-US", { timeZone: t })), r = (Jf(e ?? l) ? l : e ?? l).getTimezoneOffset() / 60;
6935
6935
  return (+n - +l) / (1e3 * 60 * 60) - r;
6936
6936
  };
6937
- var Tt = /* @__PURE__ */ ((t) => (t.month = "month", t.year = "year", t))(Tt || {}), Mt = /* @__PURE__ */ ((t) => (t.top = "top", t.bottom = "bottom", t))(Mt || {}), oa = /* @__PURE__ */ ((t) => (t.header = "header", t.calendar = "calendar", t.timePicker = "timePicker", t))(oa || {}), vt = /* @__PURE__ */ ((t) => (t.month = "month", t.year = "year", t.calendar = "calendar", t.time = "time", t.minutes = "minutes", t.hours = "hours", t.seconds = "seconds", t))(vt || {});
6937
+ var Tt = /* @__PURE__ */ ((t) => (t.month = "month", t.year = "year", t))(Tt || {}), Mt = /* @__PURE__ */ ((t) => (t.top = "top", t.bottom = "bottom", t))(Mt || {}), oa = /* @__PURE__ */ ((t) => (t.header = "header", t.calendar = "calendar", t.timePicker = "timePicker", t))(oa || {}), ht = /* @__PURE__ */ ((t) => (t.month = "month", t.year = "year", t.calendar = "calendar", t.time = "time", t.minutes = "minutes", t.hours = "hours", t.seconds = "seconds", t))(ht || {});
6938
6938
  const tp = ["timestamp", "date", "iso"];
6939
6939
  var bt = /* @__PURE__ */ ((t) => (t.up = "up", t.down = "down", t.left = "left", t.right = "right", t))(bt || {}), Ze = /* @__PURE__ */ ((t) => (t.arrowUp = "ArrowUp", t.arrowDown = "ArrowDown", t.arrowLeft = "ArrowLeft", t.arrowRight = "ArrowRight", t.enter = "Enter", t.space = " ", t.esc = "Escape", t.tab = "Tab", t.home = "Home", t.end = "End", t.pageUp = "PageUp", t.pageDown = "PageDown", t))(Ze || {}), _a = /* @__PURE__ */ ((t) => (t.MONTH_AND_YEAR = "MM-yyyy", t.YEAR = "yyyy", t.DATE = "dd-MM-yyyy", t))(_a || {});
6940
6940
  function xr(t) {
@@ -7080,15 +7080,15 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7080
7080
  t.getUTCSeconds()
7081
7081
  );
7082
7082
  return new Date(n).toISOString();
7083
- }, pt = (t, e) => {
7083
+ }, mt = (t, e) => {
7084
7084
  const a = oe(JSON.parse(JSON.stringify(t))), n = Xe(a, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
7085
7085
  return e ? nc(n) : n;
7086
7086
  }, Kt = (t, e, a, n) => {
7087
7087
  let l = t ? oe(t) : oe();
7088
7088
  return (e || e === 0) && (l = Xf(l, +e)), (a || a === 0) && (l = Kf(l, +a)), (n || n === 0) && (l = Es(l, +n)), Is(l, 0);
7089
- }, nt = (t, e) => !t || !e ? !1 : xa(pt(t), pt(e)), Be = (t, e) => !t || !e ? !1 : wa(pt(t), pt(e)), st = (t, e) => !t || !e ? !1 : ca(pt(t), pt(e)), Wa = (t, e, a) => t != null && t[0] && t != null && t[1] ? st(a, t[0]) && nt(a, t[1]) : t != null && t[0] && e ? st(a, t[0]) && nt(a, e) || nt(a, t[0]) && st(a, e) : !1, At = (t) => {
7089
+ }, nt = (t, e) => !t || !e ? !1 : xa(mt(t), mt(e)), Be = (t, e) => !t || !e ? !1 : wa(mt(t), mt(e)), st = (t, e) => !t || !e ? !1 : ca(mt(t), mt(e)), Wa = (t, e, a) => t != null && t[0] && t != null && t[1] ? st(a, t[0]) && nt(a, t[1]) : t != null && t[0] && e ? st(a, t[0]) && nt(a, e) || nt(a, t[0]) && st(a, e) : !1, At = (t) => {
7090
7090
  const e = Xe(new Date(t), { date: 1 });
7091
- return pt(e);
7091
+ return mt(e);
7092
7092
  }, jn = (t, e, a) => e && (a || a === 0) ? Object.fromEntries(
7093
7093
  ["hours", "minutes", "seconds"].map((n) => n === e ? [n, a] : [n, isNaN(+t[n]) ? void 0 : +t[n]])
7094
7094
  ) : {
@@ -7176,7 +7176,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7176
7176
  }
7177
7177
  return !0;
7178
7178
  }, Xs = (t, e, a) => typeof t == "function" ? t({ month: e, year: a }) : !!t.months.find((n) => n.month === e && n.year === a), Xl = (t, e) => typeof t == "function" ? t(e) : t.years.includes(e), yl = (t) => `dp-${Lt(t, "yyyy-MM-dd")}`, Cr = (t, e) => {
7179
- const a = Ss(pt(e), t), n = $t(pt(e), t);
7179
+ const a = Ss(mt(e), t), n = $t(mt(e), t);
7180
7180
  return { before: a, after: n };
7181
7181
  }, La = Gt({
7182
7182
  menuFocused: !1,
@@ -7203,21 +7203,21 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7203
7203
  1: []
7204
7204
  },
7205
7205
  monthPicker: []
7206
- }), Zn = K(null), rn = K(!1), Jn = K(!1), el = K(!1), tl = K(!1), mt = K(0), rt = K(0), aa = () => {
7206
+ }), Zn = K(null), rn = K(!1), Jn = K(!1), el = K(!1), tl = K(!1), vt = K(0), rt = K(0), aa = () => {
7207
7207
  const t = k(() => rn.value ? [...Ge.selectionGrid, Ge.actionRow].filter((d) => d.length) : Jn.value ? [
7208
7208
  ...Ge.timePicker[0],
7209
7209
  ...Ge.timePicker[1],
7210
7210
  tl.value ? [] : [Zn.value],
7211
7211
  Ge.actionRow
7212
7212
  ].filter((d) => d.length) : el.value ? [...Ge.monthPicker, Ge.actionRow] : [Ge.monthYear, ...Ge.calendar, Ge.time, Ge.actionRow].filter((d) => d.length)), e = (d) => {
7213
- mt.value = d ? mt.value + 1 : mt.value - 1;
7213
+ vt.value = d ? vt.value + 1 : vt.value - 1;
7214
7214
  let v = null;
7215
- t.value[rt.value] && (v = t.value[rt.value][mt.value]), !v && t.value[rt.value + (d ? 1 : -1)] ? (rt.value = rt.value + (d ? 1 : -1), mt.value = d ? 0 : t.value[rt.value].length - 1) : v || (mt.value = d ? mt.value - 1 : mt.value + 1);
7215
+ t.value[rt.value] && (v = t.value[rt.value][vt.value]), !v && t.value[rt.value + (d ? 1 : -1)] ? (rt.value = rt.value + (d ? 1 : -1), vt.value = d ? 0 : t.value[rt.value].length - 1) : v || (vt.value = d ? vt.value - 1 : vt.value + 1);
7216
7216
  }, a = (d) => {
7217
- rt.value === 0 && !d || rt.value === t.value.length && d || (rt.value = d ? rt.value + 1 : rt.value - 1, t.value[rt.value] ? t.value[rt.value] && !t.value[rt.value][mt.value] && mt.value !== 0 && (mt.value = t.value[rt.value].length - 1) : rt.value = d ? rt.value - 1 : rt.value + 1);
7217
+ rt.value === 0 && !d || rt.value === t.value.length && d || (rt.value = d ? rt.value + 1 : rt.value - 1, t.value[rt.value] ? t.value[rt.value] && !t.value[rt.value][vt.value] && vt.value !== 0 && (vt.value = t.value[rt.value].length - 1) : rt.value = d ? rt.value - 1 : rt.value + 1);
7218
7218
  }, n = (d) => {
7219
7219
  let v = null;
7220
- t.value[rt.value] && (v = t.value[rt.value][mt.value]), v ? v.focus({ preventScroll: !rn.value }) : mt.value = d ? mt.value - 1 : mt.value + 1;
7220
+ t.value[rt.value] && (v = t.value[rt.value][vt.value]), v ? v.focus({ preventScroll: !rn.value }) : vt.value = d ? vt.value - 1 : vt.value + 1;
7221
7221
  }, l = () => {
7222
7222
  e(!0), n(!0);
7223
7223
  }, r = () => {
@@ -7231,7 +7231,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7231
7231
  }, f = (d, v) => {
7232
7232
  Ge[v] = d;
7233
7233
  }, p = () => {
7234
- mt.value = 0, rt.value = 0;
7234
+ vt.value = 0, rt.value = 0;
7235
7235
  };
7236
7236
  return {
7237
7237
  buildMatrix: i,
@@ -7988,7 +7988,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7988
7988
  "aria-label": A.overlayLabel,
7989
7989
  tabindex: A.useRelative ? void 0 : "0",
7990
7990
  onKeydown: te,
7991
- onClick: P[0] || (P[0] = ht(() => {
7991
+ onClick: P[0] || (P[0] = pt(() => {
7992
7992
  }, ["prevent"]))
7993
7993
  }, [
7994
7994
  ee("div", {
@@ -8016,7 +8016,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8016
8016
  "aria-disabled": c.disabled || void 0,
8017
8017
  tabindex: "0",
8018
8018
  "data-test-id": c.text,
8019
- onClick: ht((de) => se(c), ["prevent"]),
8019
+ onClick: pt((de) => se(c), ["prevent"]),
8020
8020
  onKeydown: (de) => u(wt)(de, () => se(c), !0),
8021
8021
  onMouseover: (de) => G(c.value)
8022
8022
  }, [
@@ -8325,7 +8325,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8325
8325
  U(se, F);
8326
8326
  }
8327
8327
  }, S = (F, ne = !1, se) => {
8328
- ne || p("reset-flow"), se !== void 0 ? v.value[F] = se : v.value[F] = !v.value[F], v.value[F] ? p("overlay-toggle", { open: !0, overlay: vt.year }) : (p("overlay-closed"), p("overlay-toggle", { open: !1, overlay: vt.year }));
8328
+ ne || p("reset-flow"), se !== void 0 ? v.value[F] = se : v.value[F] = !v.value[F], v.value[F] ? p("overlay-toggle", { open: !0, overlay: ht.year }) : (p("overlay-closed"), p("overlay-toggle", { open: !1, overlay: ht.year }));
8329
8329
  };
8330
8330
  return {
8331
8331
  isDisabled: h,
@@ -8592,7 +8592,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8592
8592
  selectYear: (x) => {
8593
8593
  var T;
8594
8594
  if (e("update-month-year", { instance: 0, year: x }), s.value.enabled)
8595
- return n.value ? Array.isArray(n.value) && (((T = n.value) == null ? void 0 : T.map(($) => Ce($))).includes(x) ? n.value = n.value.filter(($) => Ce($) !== x) : n.value.push(Rt(pt(oe()), x))) : n.value = [Rt(pt(za(oe())), x)], e("auto-apply", !0);
8595
+ return n.value ? Array.isArray(n.value) && (((T = n.value) == null ? void 0 : T.map(($) => Ce($))).includes(x) ? n.value = n.value.filter(($) => Ce($) !== x) : n.value.push(Rt(mt(oe()), x))) : n.value = [Rt(mt(za(oe())), x)], e("auto-apply", !0);
8596
8596
  i.value.enabled ? (n.value = Gl(n, M(x), e), je().then(() => {
8597
8597
  qn(n.value, e, t.autoApply, t.modelAuto);
8598
8598
  })) : (n.value = M(x), e("auto-apply"));
@@ -9009,7 +9009,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9009
9009
  B.push(Q(0));
9010
9010
  return B;
9011
9011
  }), S = (B, te = !1, z = "") => {
9012
- te || n("reset-flow"), Y.value = B, n(B ? "overlay-opened" : "overlay-closed", vt.time), l.arrowNavigation && s(B), je(() => {
9012
+ te || n("reset-flow"), Y.value = B, n(B ? "overlay-opened" : "overlay-closed", ht.time), l.arrowNavigation && s(B), je(() => {
9013
9013
  z !== "" && T.value[0] && T.value[0].openChildCmp(z);
9014
9014
  });
9015
9015
  }, F = k(() => ({
@@ -9396,9 +9396,9 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9396
9396
  })), b = (P, V, X) => {
9397
9397
  X !== void 0 ? P.value = X : P.value = !P.value, P.value ? (Q.value = !0, n("overlay-opened", V)) : (Q.value = !1, n("overlay-closed", V));
9398
9398
  }, I = (P = !1, V) => {
9399
- B(P), b(U, vt.month, V);
9399
+ B(P), b(U, ht.month, V);
9400
9400
  }, G = (P = !1, V) => {
9401
- B(P), b(Y, vt.year, V);
9401
+ B(P), b(Y, ht.year, V);
9402
9402
  }, B = (P) => {
9403
9403
  P || n("reset-flow");
9404
9404
  }, te = (P, V) => {
@@ -9646,8 +9646,8 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9646
9646
  });
9647
9647
  const S = (Z) => Z ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", F = (Z, qe) => {
9648
9648
  if (l.transitions) {
9649
- const ae = pt(Vt(oe(), l.month, l.year));
9650
- T.value = st(pt(Vt(oe(), Z, qe)), ae) ? s.value[S(!0)] : s.value[S(!1)], x.value = !1, je(() => {
9649
+ const ae = mt(Vt(oe(), l.month, l.year));
9650
+ T.value = st(mt(Vt(oe(), Z, qe)), ae) ? s.value[S(!0)] : s.value[S(!1)], x.value = !1, je(() => {
9651
9651
  x.value = !0;
9652
9652
  });
9653
9653
  }
@@ -9779,7 +9779,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9779
9779
  "aria-label": (me = (ye = u(i)) == null ? void 0 : ye.day) == null ? void 0 : me.call(ye, g),
9780
9780
  tabindex: !g.current && Z.hideOffsetDates ? void 0 : 0,
9781
9781
  "data-test-id": u(yl)(g.value),
9782
- onClick: ht((Ie) => R(Ie, g), ["prevent"]),
9782
+ onClick: pt((Ie) => R(Ie, g), ["prevent"]),
9783
9783
  onTouchend: (Ie) => R(Ie, g, !1),
9784
9784
  onKeydown: (Ie) => u(wt)(Ie, () => Z.$emit("select-date", g)),
9785
9785
  onMouseenter: (Ie) => G(g, ve, fe),
@@ -9999,7 +9999,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9999
9999
  const Me = [], J = new Date(ce, W), he = new Date(ce, W + 1, 0), ke = t.weekStart, Ot = Pt(J, { weekStartsOn: ke }), Dt = (ma) => {
10000
10000
  const Sa = Re(ma, W);
10001
10001
  if (Me.push({ days: Sa }), !Me[Me.length - 1].days.some(
10002
- (Wt) => Be(pt(Wt.value), pt(he))
10002
+ (Wt) => Be(mt(Wt.value), mt(he))
10003
10003
  )) {
10004
10004
  const Wt = $t(ma, 7);
10005
10005
  Dt(Wt);
@@ -10056,7 +10056,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10056
10056
  var Me;
10057
10057
  b(W, ce.month, ce.year, !0), v.value.count && !v.value.solo && Oe(W), e("update-month-year", { instance: W, month: ce.month, year: ce.year }), a(v.value.solo ? W : void 0);
10058
10058
  const J = (Me = t.flow) != null && Me.length ? t.flow[t.flowStep] : void 0;
10059
- !ce.fromNav && (J === vt.month || J === vt.year) && n();
10059
+ !ce.fromNav && (J === ht.month || J === ht.year) && n();
10060
10060
  }, Rn = (W, ce) => {
10061
10061
  Zs({
10062
10062
  value: W,
@@ -10210,7 +10210,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10210
10210
  }, Oe = (ae) => {
10211
10211
  $(0, { month: s.value(0), year: o.value(0) + (ae ? 1 : -1), fromNav: !0 });
10212
10212
  }, Z = (ae, ve) => {
10213
- ae === vt.time && n(`time-picker-${ve ? "open" : "close"}`), n("overlay-toggle", { open: ve, overlay: ae });
10213
+ ae === ht.time && n(`time-picker-${ve ? "open" : "close"}`), n("overlay-toggle", { open: ve, overlay: ae });
10214
10214
  }, qe = (ae) => {
10215
10215
  n("overlay-toggle", { open: !1, overlay: ae }), n("focus-menu");
10216
10216
  };
@@ -10756,7 +10756,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10756
10756
  class: ie(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": t.collapse }]),
10757
10757
  "data-test-id": xe.testId ?? void 0,
10758
10758
  "data-dp-mobile": u(w),
10759
- onClick: ht((ut) => g(xe.value, xe.noTz), ["prevent"]),
10759
+ onClick: pt((ut) => g(xe.value, xe.noTz), ["prevent"]),
10760
10760
  onKeydown: (ut) => u(wt)(ut, () => g(xe.value, xe.noTz), !0)
10761
10761
  }, De(xe.label), 47, Nm))
10762
10762
  ], 64))), 128))
@@ -11327,9 +11327,9 @@ const Ym = ({
11327
11327
  var _, w;
11328
11328
  t.flow[n.value] === d && a.value && ((w = (_ = a.value)[v]) == null || w.call(_, ...h));
11329
11329
  }, p = (d = 0) => {
11330
- d && (n.value += d), f(vt.month, "toggleMonthPicker", !0), f(vt.year, "toggleYearPicker", !0), f(vt.calendar, "toggleTimePicker", !1, !0), f(vt.time, "toggleTimePicker", !0, !0);
11330
+ d && (n.value += d), f(ht.month, "toggleMonthPicker", !0), f(ht.year, "toggleYearPicker", !0), f(ht.calendar, "toggleTimePicker", !1, !0), f(ht.time, "toggleTimePicker", !0, !0);
11331
11331
  const v = t.flow[n.value];
11332
- (v === vt.hours || v === vt.minutes || v === vt.seconds) && f(v, "toggleTimePicker", !0, !0, v);
11332
+ (v === ht.hours || v === ht.minutes || v === ht.seconds) && f(v, "toggleTimePicker", !0, !0, v);
11333
11333
  };
11334
11334
  return { childMount: s, updateFlowStep: o, resetFlow: i, handleFlow: p, flowStep: n };
11335
11335
  }, Um = {
@@ -11529,7 +11529,7 @@ const Ym = ({
11529
11529
  class: "dp--clear-btn",
11530
11530
  type: "button",
11531
11531
  onKeydown: A[4] || (A[4] = (le) => u(wt)(le, () => q(le), !0, te)),
11532
- onClick: A[5] || (A[5] = ht((le) => q(le), ["prevent"]))
11532
+ onClick: A[5] || (A[5] = pt((le) => q(le), ["prevent"]))
11533
11533
  }, [
11534
11534
  ge(u(Ls), {
11535
11535
  class: "dp__input_icons",
@@ -12920,7 +12920,7 @@ const Mv = ["value", "placeholder", "disabled", "readonly", "required", "onInput
12920
12920
  class: "q-dropdown-menu__body",
12921
12921
  "data-testid": "dropdown-content",
12922
12922
  tabindex: "-1",
12923
- onKeydown: ht(v, ["stop"])
12923
+ onKeydown: pt(v, ["stop"])
12924
12924
  }, [
12925
12925
  ge(u(An), {
12926
12926
  ref: "qListRef",
@@ -13961,13 +13961,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
13961
13961
  }, [
13962
13962
  ee("td", {
13963
13963
  class: ie(s.value),
13964
- onClick: ht(f, ["prevent", "stop"])
13964
+ onClick: pt(f, ["prevent", "stop"])
13965
13965
  }, [
13966
13966
  ee("div", null, De(a.field.label), 1)
13967
13967
  ], 2),
13968
13968
  ee("td", {
13969
13969
  class: "q-property-list__cell",
13970
- onClick: ht(f, ["prevent", "stop"])
13970
+ onClick: pt(f, ["prevent", "stop"])
13971
13971
  }, [
13972
13972
  C(d.$slots, "default", {}, () => [
13973
13973
  a.field.component ? (m(), D("div", ny, [
@@ -14415,7 +14415,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14415
14415
  class: "q-select__body",
14416
14416
  tabindex: "-1",
14417
14417
  onFocusout: w,
14418
- onKeydown: ht($, ["stop"])
14418
+ onKeydown: pt($, ["stop"])
14419
14419
  }, [
14420
14420
  C(S.$slots, "body.prepend"),
14421
14421
  a.loading ? (m(), D("div", Ay, [
@@ -14791,13 +14791,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14791
14791
  ee("div", { class: "q-skeleton-loader__bone" }, null, -1)
14792
14792
  ]), 14, zy));
14793
14793
  }
14794
- }), Wy = _e(Qy), Hy = { class: "q-switch__container" }, Uy = ["id", "aria-checked", "disabled"], jy = { class: "q-switch__labels" }, Xy = {
14794
+ }), Wy = _e(Qy), Hy = ["id", "aria-checked", "disabled"], Uy = { class: "q-switch__labels" }, jy = {
14795
14795
  class: "q-switch__label q-switch__label--off",
14796
14796
  "aria-hidden": "true"
14797
- }, Ky = {
14797
+ }, Xy = {
14798
14798
  class: "q-switch__label q-switch__label--on",
14799
14799
  "aria-hidden": "true"
14800
- }, Gy = /* @__PURE__ */ pe({
14800
+ }, Ky = /* @__PURE__ */ pe({
14801
14801
  inheritAttrs: !1,
14802
14802
  __name: "QSwitch",
14803
14803
  props: /* @__PURE__ */ Se({
@@ -14840,7 +14840,11 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14840
14840
  "--q-switch-on-unchecked-background": (v = s.value) == null ? void 0 : v.onMainColor
14841
14841
  };
14842
14842
  });
14843
- return (f, p) => (m(), D("div", Hy, [
14843
+ return (f, p) => (m(), D("div", {
14844
+ class: "q-switch__container",
14845
+ onClick: p[1] || (p[1] = pt(() => {
14846
+ }, ["stop"]))
14847
+ }, [
14844
14848
  e.label ? (m(), re(u(Zt), {
14845
14849
  key: 0,
14846
14850
  for: u(l),
@@ -14863,16 +14867,16 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14863
14867
  role: "switch",
14864
14868
  "aria-checked": a.value,
14865
14869
  disabled: e.disabled
14866
- }, f.$attrs, { onInput: n }), null, 16, Uy), [
14870
+ }, f.$attrs, { onInput: n }), null, 16, Hy), [
14867
14871
  [So, a.value]
14868
14872
  ]),
14869
- ee("div", jy, [
14870
- ee("span", Xy, [
14873
+ ee("div", Uy, [
14874
+ ee("span", jy, [
14871
14875
  e.showStateLabels ? (m(), D(we, { key: 0 }, [
14872
14876
  Je(De(e.falseLabel), 1)
14873
14877
  ], 64)) : L("", !0)
14874
14878
  ]),
14875
- ee("span", Ky, [
14879
+ ee("span", Xy, [
14876
14880
  e.showStateLabels ? (m(), D(we, { key: 0 }, [
14877
14881
  Je(De(e.trueLabel), 1)
14878
14882
  ], 64)) : L("", !0)
@@ -14881,7 +14885,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14881
14885
  ], 6)
14882
14886
  ]));
14883
14887
  }
14884
- }), Zy = _e(Gy), Jy = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], eg = /* @__PURE__ */ pe({
14888
+ }), Gy = _e(Ky), Zy = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Jy = /* @__PURE__ */ pe({
14885
14889
  inheritAttrs: !1,
14886
14890
  __name: "QTextArea",
14887
14891
  props: /* @__PURE__ */ Se({
@@ -14952,7 +14956,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14952
14956
  cols: e.cols,
14953
14957
  resize: e.resize,
14954
14958
  wrap: e.wrap
14955
- }, f.$attrs, Oo(s.value, !0)), null, 16, Jy), [
14959
+ }, f.$attrs, Oo(s.value, !0)), null, 16, Zy), [
14956
14960
  [xl, n.value]
14957
14961
  ])
14958
14962
  ]),
@@ -14981,7 +14985,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14981
14985
  } : void 0
14982
14986
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
14983
14987
  }
14984
- }), tg = _e(eg), ag = ["id"], ng = /* @__PURE__ */ pe({
14988
+ }), eg = _e(Jy), tg = ["id"], ag = /* @__PURE__ */ pe({
14985
14989
  __name: "QThemeProvider",
14986
14990
  props: {
14987
14991
  id: {},
@@ -14995,13 +14999,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14995
14999
  class: ie(["q-theme-provider", u(n), e.class])
14996
15000
  }, [
14997
15001
  C(l.$slots, "default")
14998
- ], 10, ag));
15002
+ ], 10, tg));
14999
15003
  }
15000
- }), lg = _e(ng), rg = {
15004
+ }), ng = _e(ag), lg = {
15001
15005
  close: {
15002
15006
  icon: "close"
15003
15007
  }
15004
- }, sg = { class: "q-toast__title" }, og = /* @__PURE__ */ pe({
15008
+ }, rg = { class: "q-toast__title" }, sg = /* @__PURE__ */ pe({
15005
15009
  __name: "QToast",
15006
15010
  props: {
15007
15011
  id: {},
@@ -15009,7 +15013,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15009
15013
  block: { type: Boolean },
15010
15014
  color: { default: "info" },
15011
15015
  elevation: { default: "medium" },
15012
- icons: { default: () => rg },
15016
+ icons: { default: () => lg },
15013
15017
  text: {},
15014
15018
  timeout: { default: 5e3 },
15015
15019
  title: {},
@@ -15128,7 +15132,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15128
15132
  default: H(() => [
15129
15133
  ge(u(Ba), null, {
15130
15134
  default: H(() => [
15131
- ee("div", sg, [
15135
+ ee("div", rg, [
15132
15136
  w.$slots["title.prepend"] ? C(w.$slots, "title.prepend", { key: 0 }) : L("", !0),
15133
15137
  ee("h4", null, De(a.title), 1),
15134
15138
  w.$slots["title.append"] ? C(w.$slots, "title.append", { key: 1 }) : L("", !0)
@@ -15165,7 +15169,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15165
15169
  } : void 0
15166
15170
  ]), 1032, ["id", "elevation", "width", "class", "style"]));
15167
15171
  }
15168
- }), ig = /* @__PURE__ */ pe({
15172
+ }), og = /* @__PURE__ */ pe({
15169
15173
  __name: "QToaster",
15170
15174
  props: {
15171
15175
  id: {},
@@ -15199,7 +15203,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15199
15203
  _: 1
15200
15204
  }, 8, ["id", "class", "data-placement"]));
15201
15205
  }
15202
- }), _o = _e(og), ug = _e(ig), dg = /* @__PURE__ */ pe({
15206
+ }), _o = _e(sg), ig = _e(og), ug = /* @__PURE__ */ pe({
15203
15207
  __name: "QToggleGroup",
15204
15208
  props: /* @__PURE__ */ Se({
15205
15209
  id: {},
@@ -15238,7 +15242,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15238
15242
  _: 3
15239
15243
  }, 8, ["id", "class", "elevated"]));
15240
15244
  }
15241
- }), cg = /* @__PURE__ */ pe({
15245
+ }), dg = /* @__PURE__ */ pe({
15242
15246
  __name: "QToggleGroupItem",
15243
15247
  props: {
15244
15248
  id: {},
@@ -15273,7 +15277,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15273
15277
  _: 3
15274
15278
  }, 16, ["model-value", "onUpdate:modelValue"]));
15275
15279
  }
15276
- }), fg = _e(dg), pg = _e(cg), mg = { class: "q-tooltip__content" }, vg = ["innerHTML"], hg = /* @__PURE__ */ pe({
15280
+ }), cg = _e(ug), fg = _e(dg), pg = { class: "q-tooltip__content" }, mg = ["innerHTML"], vg = /* @__PURE__ */ pe({
15277
15281
  __name: "QTooltip",
15278
15282
  props: /* @__PURE__ */ Se({
15279
15283
  id: {},
@@ -15339,13 +15343,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15339
15343
  onLeave: s
15340
15344
  }, {
15341
15345
  default: H(() => [
15342
- ee("div", mg, [
15346
+ ee("div", pg, [
15343
15347
  C(f.$slots, "default", {}, () => [
15344
15348
  e.icon ? (m(), re(u(Ue), Ee(Te({ key: 0 }, e.icon)), null, 16)) : L("", !0),
15345
15349
  e.html ? (m(), D("span", {
15346
15350
  key: 1,
15347
15351
  innerHTML: e.text
15348
- }, null, 8, vg)) : (m(), D(we, { key: 2 }, [
15352
+ }, null, 8, mg)) : (m(), D(we, { key: 2 }, [
15349
15353
  Je(De(e.text), 1)
15350
15354
  ], 64))
15351
15355
  ])
@@ -15355,7 +15359,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15355
15359
  }, 8, ["id", "modelValue", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
15356
15360
  ], 64));
15357
15361
  }
15358
- }), yg = _e(hg), gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15362
+ }), hg = _e(vg), yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15359
15363
  __proto__: null,
15360
15364
  QAccordion: Ci,
15361
15365
  QAccordionItem: Pi,
@@ -15406,29 +15410,29 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15406
15410
  QSkeletonLoader: Wy,
15407
15411
  QSpacer: Dh,
15408
15412
  QSpinnerLoader: ja,
15409
- QSwitch: Zy,
15410
- QTextArea: tg,
15413
+ QSwitch: Gy,
15414
+ QTextArea: eg,
15411
15415
  QTextField: Ka,
15412
- QThemeProvider: lg,
15416
+ QThemeProvider: ng,
15413
15417
  QToast: _o,
15414
- QToaster: ug,
15418
+ QToaster: ig,
15415
15419
  QToggle: er,
15416
- QToggleGroup: fg,
15417
- QToggleGroupItem: pg,
15418
- QTooltip: yg
15420
+ QToggleGroup: cg,
15421
+ QToggleGroupItem: fg,
15422
+ QTooltip: hg
15419
15423
  }, Symbol.toStringTag, { value: "Module" }));
15420
- function bg(t = {}) {
15424
+ function gg(t = {}) {
15421
15425
  return { install: (a) => {
15422
15426
  const n = t.components || {};
15423
15427
  for (const s in n)
15424
15428
  a.component(s, n[s]);
15425
15429
  const l = t.defaults || {};
15426
- a.provide(Ml, K(l)), wg(a, t.themes);
15430
+ a.provide(Ml, K(l)), bg(a, t.themes);
15427
15431
  const r = xu();
15428
- a.provide(ls, r), _g(a);
15432
+ a.provide(ls, r), wg(a);
15429
15433
  } };
15430
15434
  }
15431
- function wg(t, e) {
15435
+ function bg(t, e) {
15432
15436
  const a = [];
15433
15437
  let n;
15434
15438
  if (!e)
@@ -15448,23 +15452,23 @@ function wg(t, e) {
15448
15452
  }
15449
15453
  if (n) {
15450
15454
  const l = K(n), r = Xr(l, a);
15451
- jo(a), Pe(r.name, kg, { immediate: !0 }), t.provide(Pl, r);
15455
+ jo(a), Pe(r.name, _g, { immediate: !0 }), t.provide(Pl, r);
15452
15456
  }
15453
15457
  }
15454
- function _g(t) {
15458
+ function wg(t) {
15455
15459
  const e = ov();
15456
15460
  t.provide(lo, e);
15457
15461
  }
15458
- function kg(t) {
15462
+ function _g(t) {
15459
15463
  const e = document.documentElement, n = Array.from(e.classList).filter((l) => !l.startsWith("q-theme"));
15460
15464
  e.className = n.join(" "), e.classList.add(`q-theme--${t}`);
15461
15465
  }
15462
- const Tg = (t = {}) => bg({ components: gg, ...t });
15466
+ const Dg = (t = {}) => gg({ components: yg, ...t });
15463
15467
  export {
15464
- gg as components,
15465
- Tg as createFramework,
15468
+ yg as components,
15469
+ Dg as createFramework,
15466
15470
  Xo as provideTheme,
15467
- Dg as templates,
15471
+ xg as templates,
15468
15472
  rv as useDialog,
15469
15473
  Xa as useTheme,
15470
15474
  sv as useToast