@quidgest/ui 0.16.17 → 0.16.19

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.17
6
+ * Quidgest UI v0.16.19
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, [
@@ -1188,7 +1188,7 @@ const Ai = /* @__PURE__ */ pe({
1188
1188
  key: "0"
1189
1189
  } : void 0
1190
1190
  ]), 1032, ["for", "label", "required"])) : L("", !0),
1191
- ee("input", Te({
1191
+ ee("input", {
1192
1192
  ref: "inputEl",
1193
1193
  type: "checkbox",
1194
1194
  class: "q-checkbox__native-input",
@@ -1198,23 +1198,25 @@ const Ai = /* @__PURE__ */ pe({
1198
1198
  "aria-readonly": e.readonly,
1199
1199
  tabindex: "-1",
1200
1200
  "aria-hidden": "true"
1201
- }, o.$attrs), null, 16, zi),
1202
- ee("button", {
1201
+ }, null, 8, zi),
1202
+ ee("button", Te({
1203
1203
  id: u(n),
1204
1204
  role: "checkbox",
1205
1205
  type: "button",
1206
1206
  class: "q-checkbox__input",
1207
+ "data-testid": "checkbox-button",
1207
1208
  "aria-checked": e.indeterminate ? "mixed" : a.value,
1208
- disabled: e.disabled || e.readonly,
1209
- onClick: ht(s, ["prevent"]),
1209
+ disabled: e.disabled || e.readonly
1210
+ }, o.$attrs, {
1211
+ onClick: pt(s, ["prevent"]),
1210
1212
  onKeydown: [
1211
- fn(ht(s, ["prevent"]), ["space"]),
1212
- i[0] || (i[0] = fn(ht(() => {
1213
+ fn(pt(s, ["prevent"]), ["space"]),
1214
+ i[0] || (i[0] = fn(pt(() => {
1213
1215
  }, ["prevent"]), ["enter"]))
1214
1216
  ]
1215
- }, [
1217
+ }), [
1216
1218
  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
- ], 40, Qi),
1219
+ ], 16, Qi),
1218
1220
  e.label && e.labelPlacement === "right" ? (m(), re(u(ol), {
1219
1221
  key: 1,
1220
1222
  for: u(n),
@@ -1899,7 +1901,7 @@ const Ai = /* @__PURE__ */ pe({
1899
1901
  "aria-label": a.label,
1900
1902
  "aria-selected": a.disabled ? void 0 : l.value,
1901
1903
  onKeydown: i,
1902
- onClick: ht(o, ["stop", "prevent"])
1904
+ onClick: pt(o, ["stop", "prevent"])
1903
1905
  }, [
1904
1906
  C(f.$slots, "prepend"),
1905
1907
  ee("div", hu, [
@@ -3594,7 +3596,7 @@ const Rd = ["id"], Ld = ["role"], Bd = /* @__PURE__ */ pe({
3594
3596
  borderless: "",
3595
3597
  tabindex: "-1",
3596
3598
  disabled: n.disabled,
3597
- onMousedown: ht(S, ["stop", "prevent"])
3599
+ onMousedown: pt(S, ["stop", "prevent"])
3598
3600
  }, {
3599
3601
  default: H(() => [
3600
3602
  ge(u(pn), {
@@ -6921,10 +6923,10 @@ Ql.compatConfig = {
6921
6923
  };
6922
6924
  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
6925
  const n = e.dateInTz ? _t(new Date(t), e.dateInTz) : oe(t);
6924
- return a ? pt(n, !0) : n;
6926
+ return a ? mt(n, !0) : n;
6925
6927
  }, ml = (t, e, a) => {
6926
6928
  if (!t) return null;
6927
- const n = a ? pt(oe(t), !0) : oe(t);
6929
+ const n = a ? mt(oe(t), !0) : oe(t);
6928
6930
  return e ? e.exactMatch ? Zf(t, e, a) : _t(n, e.timezone) : n;
6929
6931
  }, Jf = (t) => {
6930
6932
  const e = new Date(t.getFullYear(), 0, 1).getTimezoneOffset();
@@ -6934,7 +6936,7 @@ const _t = (t, e) => e ? new Date(t.toLocaleString("en-US", { timeZone: e })) :
6934
6936
  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
6937
  return (+n - +l) / (1e3 * 60 * 60) - r;
6936
6938
  };
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 || {});
6939
+ 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
6940
  const tp = ["timestamp", "date", "iso"];
6939
6941
  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
6942
  function xr(t) {
@@ -7080,15 +7082,15 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7080
7082
  t.getUTCSeconds()
7081
7083
  );
7082
7084
  return new Date(n).toISOString();
7083
- }, pt = (t, e) => {
7085
+ }, mt = (t, e) => {
7084
7086
  const a = oe(JSON.parse(JSON.stringify(t))), n = Xe(a, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
7085
7087
  return e ? nc(n) : n;
7086
7088
  }, Kt = (t, e, a, n) => {
7087
7089
  let l = t ? oe(t) : oe();
7088
7090
  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) => {
7091
+ }, 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
7092
  const e = Xe(new Date(t), { date: 1 });
7091
- return pt(e);
7093
+ return mt(e);
7092
7094
  }, jn = (t, e, a) => e && (a || a === 0) ? Object.fromEntries(
7093
7095
  ["hours", "minutes", "seconds"].map((n) => n === e ? [n, a] : [n, isNaN(+t[n]) ? void 0 : +t[n]])
7094
7096
  ) : {
@@ -7176,7 +7178,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7176
7178
  }
7177
7179
  return !0;
7178
7180
  }, 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);
7181
+ const a = Ss(mt(e), t), n = $t(mt(e), t);
7180
7182
  return { before: a, after: n };
7181
7183
  }, La = Gt({
7182
7184
  menuFocused: !1,
@@ -7203,21 +7205,21 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7203
7205
  1: []
7204
7206
  },
7205
7207
  monthPicker: []
7206
- }), Zn = K(null), rn = K(!1), Jn = K(!1), el = K(!1), tl = K(!1), mt = K(0), rt = K(0), aa = () => {
7208
+ }), Zn = K(null), rn = K(!1), Jn = K(!1), el = K(!1), tl = K(!1), vt = K(0), rt = K(0), aa = () => {
7207
7209
  const t = k(() => rn.value ? [...Ge.selectionGrid, Ge.actionRow].filter((d) => d.length) : Jn.value ? [
7208
7210
  ...Ge.timePicker[0],
7209
7211
  ...Ge.timePicker[1],
7210
7212
  tl.value ? [] : [Zn.value],
7211
7213
  Ge.actionRow
7212
7214
  ].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;
7215
+ vt.value = d ? vt.value + 1 : vt.value - 1;
7214
7216
  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);
7217
+ 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
7218
  }, 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);
7219
+ 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
7220
  }, n = (d) => {
7219
7221
  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;
7222
+ 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
7223
  }, l = () => {
7222
7224
  e(!0), n(!0);
7223
7225
  }, r = () => {
@@ -7231,7 +7233,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7231
7233
  }, f = (d, v) => {
7232
7234
  Ge[v] = d;
7233
7235
  }, p = () => {
7234
- mt.value = 0, rt.value = 0;
7236
+ vt.value = 0, rt.value = 0;
7235
7237
  };
7236
7238
  return {
7237
7239
  buildMatrix: i,
@@ -7988,7 +7990,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
7988
7990
  "aria-label": A.overlayLabel,
7989
7991
  tabindex: A.useRelative ? void 0 : "0",
7990
7992
  onKeydown: te,
7991
- onClick: P[0] || (P[0] = ht(() => {
7993
+ onClick: P[0] || (P[0] = pt(() => {
7992
7994
  }, ["prevent"]))
7993
7995
  }, [
7994
7996
  ee("div", {
@@ -8016,7 +8018,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8016
8018
  "aria-disabled": c.disabled || void 0,
8017
8019
  tabindex: "0",
8018
8020
  "data-test-id": c.text,
8019
- onClick: ht((de) => se(c), ["prevent"]),
8021
+ onClick: pt((de) => se(c), ["prevent"]),
8020
8022
  onKeydown: (de) => u(wt)(de, () => se(c), !0),
8021
8023
  onMouseover: (de) => G(c.value)
8022
8024
  }, [
@@ -8325,7 +8327,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8325
8327
  U(se, F);
8326
8328
  }
8327
8329
  }, 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 }));
8330
+ 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
8331
  };
8330
8332
  return {
8331
8333
  isDisabled: h,
@@ -8592,7 +8594,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
8592
8594
  selectYear: (x) => {
8593
8595
  var T;
8594
8596
  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);
8597
+ 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
8598
  i.value.enabled ? (n.value = Gl(n, M(x), e), je().then(() => {
8597
8599
  qn(n.value, e, t.autoApply, t.modelAuto);
8598
8600
  })) : (n.value = M(x), e("auto-apply"));
@@ -9009,7 +9011,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9009
9011
  B.push(Q(0));
9010
9012
  return B;
9011
9013
  }), 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(() => {
9014
+ te || n("reset-flow"), Y.value = B, n(B ? "overlay-opened" : "overlay-closed", ht.time), l.arrowNavigation && s(B), je(() => {
9013
9015
  z !== "" && T.value[0] && T.value[0].openChildCmp(z);
9014
9016
  });
9015
9017
  }, F = k(() => ({
@@ -9396,9 +9398,9 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9396
9398
  })), b = (P, V, X) => {
9397
9399
  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
9400
  }, I = (P = !1, V) => {
9399
- B(P), b(U, vt.month, V);
9401
+ B(P), b(U, ht.month, V);
9400
9402
  }, G = (P = !1, V) => {
9401
- B(P), b(Y, vt.year, V);
9403
+ B(P), b(Y, ht.year, V);
9402
9404
  }, B = (P) => {
9403
9405
  P || n("reset-flow");
9404
9406
  }, te = (P, V) => {
@@ -9646,8 +9648,8 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9646
9648
  });
9647
9649
  const S = (Z) => Z ? l.vertical ? "vNext" : "next" : l.vertical ? "vPrevious" : "previous", F = (Z, qe) => {
9648
9650
  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(() => {
9651
+ const ae = mt(Vt(oe(), l.month, l.year));
9652
+ T.value = st(mt(Vt(oe(), Z, qe)), ae) ? s.value[S(!0)] : s.value[S(!1)], x.value = !1, je(() => {
9651
9653
  x.value = !0;
9652
9654
  });
9653
9655
  }
@@ -9779,7 +9781,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9779
9781
  "aria-label": (me = (ye = u(i)) == null ? void 0 : ye.day) == null ? void 0 : me.call(ye, g),
9780
9782
  tabindex: !g.current && Z.hideOffsetDates ? void 0 : 0,
9781
9783
  "data-test-id": u(yl)(g.value),
9782
- onClick: ht((Ie) => R(Ie, g), ["prevent"]),
9784
+ onClick: pt((Ie) => R(Ie, g), ["prevent"]),
9783
9785
  onTouchend: (Ie) => R(Ie, g, !1),
9784
9786
  onKeydown: (Ie) => u(wt)(Ie, () => Z.$emit("select-date", g)),
9785
9787
  onMouseenter: (Ie) => G(g, ve, fe),
@@ -9999,7 +10001,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
9999
10001
  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
10002
  const Sa = Re(ma, W);
10001
10003
  if (Me.push({ days: Sa }), !Me[Me.length - 1].days.some(
10002
- (Wt) => Be(pt(Wt.value), pt(he))
10004
+ (Wt) => Be(mt(Wt.value), mt(he))
10003
10005
  )) {
10004
10006
  const Wt = $t(ma, 7);
10005
10007
  Dt(Wt);
@@ -10056,7 +10058,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10056
10058
  var Me;
10057
10059
  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
10060
  const J = (Me = t.flow) != null && Me.length ? t.flow[t.flowStep] : void 0;
10059
- !ce.fromNav && (J === vt.month || J === vt.year) && n();
10061
+ !ce.fromNav && (J === ht.month || J === ht.year) && n();
10060
10062
  }, Rn = (W, ce) => {
10061
10063
  Zs({
10062
10064
  value: W,
@@ -10210,7 +10212,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10210
10212
  }, Oe = (ae) => {
10211
10213
  $(0, { month: s.value(0), year: o.value(0) + (ae ? 1 : -1), fromNav: !0 });
10212
10214
  }, Z = (ae, ve) => {
10213
- ae === vt.time && n(`time-picker-${ve ? "open" : "close"}`), n("overlay-toggle", { open: ve, overlay: ae });
10215
+ ae === ht.time && n(`time-picker-${ve ? "open" : "close"}`), n("overlay-toggle", { open: ve, overlay: ae });
10214
10216
  }, qe = (ae) => {
10215
10217
  n("overlay-toggle", { open: !1, overlay: ae }), n("focus-menu");
10216
10218
  };
@@ -10756,7 +10758,7 @@ const vl = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
10756
10758
  class: ie(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": t.collapse }]),
10757
10759
  "data-test-id": xe.testId ?? void 0,
10758
10760
  "data-dp-mobile": u(w),
10759
- onClick: ht((ut) => g(xe.value, xe.noTz), ["prevent"]),
10761
+ onClick: pt((ut) => g(xe.value, xe.noTz), ["prevent"]),
10760
10762
  onKeydown: (ut) => u(wt)(ut, () => g(xe.value, xe.noTz), !0)
10761
10763
  }, De(xe.label), 47, Nm))
10762
10764
  ], 64))), 128))
@@ -11327,9 +11329,9 @@ const Ym = ({
11327
11329
  var _, w;
11328
11330
  t.flow[n.value] === d && a.value && ((w = (_ = a.value)[v]) == null || w.call(_, ...h));
11329
11331
  }, 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);
11332
+ 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
11333
  const v = t.flow[n.value];
11332
- (v === vt.hours || v === vt.minutes || v === vt.seconds) && f(v, "toggleTimePicker", !0, !0, v);
11334
+ (v === ht.hours || v === ht.minutes || v === ht.seconds) && f(v, "toggleTimePicker", !0, !0, v);
11333
11335
  };
11334
11336
  return { childMount: s, updateFlowStep: o, resetFlow: i, handleFlow: p, flowStep: n };
11335
11337
  }, Um = {
@@ -11529,7 +11531,7 @@ const Ym = ({
11529
11531
  class: "dp--clear-btn",
11530
11532
  type: "button",
11531
11533
  onKeydown: A[4] || (A[4] = (le) => u(wt)(le, () => q(le), !0, te)),
11532
- onClick: A[5] || (A[5] = ht((le) => q(le), ["prevent"]))
11534
+ onClick: A[5] || (A[5] = pt((le) => q(le), ["prevent"]))
11533
11535
  }, [
11534
11536
  ge(u(Ls), {
11535
11537
  class: "dp__input_icons",
@@ -12920,7 +12922,7 @@ const Mv = ["value", "placeholder", "disabled", "readonly", "required", "onInput
12920
12922
  class: "q-dropdown-menu__body",
12921
12923
  "data-testid": "dropdown-content",
12922
12924
  tabindex: "-1",
12923
- onKeydown: ht(v, ["stop"])
12925
+ onKeydown: pt(v, ["stop"])
12924
12926
  }, [
12925
12927
  ge(u(An), {
12926
12928
  ref: "qListRef",
@@ -13961,13 +13963,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
13961
13963
  }, [
13962
13964
  ee("td", {
13963
13965
  class: ie(s.value),
13964
- onClick: ht(f, ["prevent", "stop"])
13966
+ onClick: pt(f, ["prevent", "stop"])
13965
13967
  }, [
13966
13968
  ee("div", null, De(a.field.label), 1)
13967
13969
  ], 2),
13968
13970
  ee("td", {
13969
13971
  class: "q-property-list__cell",
13970
- onClick: ht(f, ["prevent", "stop"])
13972
+ onClick: pt(f, ["prevent", "stop"])
13971
13973
  }, [
13972
13974
  C(d.$slots, "default", {}, () => [
13973
13975
  a.field.component ? (m(), D("div", ny, [
@@ -14415,7 +14417,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14415
14417
  class: "q-select__body",
14416
14418
  tabindex: "-1",
14417
14419
  onFocusout: w,
14418
- onKeydown: ht($, ["stop"])
14420
+ onKeydown: pt($, ["stop"])
14419
14421
  }, [
14420
14422
  C(S.$slots, "body.prepend"),
14421
14423
  a.loading ? (m(), D("div", Ay, [
@@ -14791,13 +14793,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14791
14793
  ee("div", { class: "q-skeleton-loader__bone" }, null, -1)
14792
14794
  ]), 14, zy));
14793
14795
  }
14794
- }), Wy = _e(Qy), Hy = { class: "q-switch__container" }, Uy = ["id", "aria-checked", "disabled"], jy = { class: "q-switch__labels" }, Xy = {
14796
+ }), Wy = _e(Qy), Hy = ["id", "aria-checked", "disabled"], Uy = { class: "q-switch__labels" }, jy = {
14795
14797
  class: "q-switch__label q-switch__label--off",
14796
14798
  "aria-hidden": "true"
14797
- }, Ky = {
14799
+ }, Xy = {
14798
14800
  class: "q-switch__label q-switch__label--on",
14799
14801
  "aria-hidden": "true"
14800
- }, Gy = /* @__PURE__ */ pe({
14802
+ }, Ky = /* @__PURE__ */ pe({
14801
14803
  inheritAttrs: !1,
14802
14804
  __name: "QSwitch",
14803
14805
  props: /* @__PURE__ */ Se({
@@ -14840,7 +14842,11 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14840
14842
  "--q-switch-on-unchecked-background": (v = s.value) == null ? void 0 : v.onMainColor
14841
14843
  };
14842
14844
  });
14843
- return (f, p) => (m(), D("div", Hy, [
14845
+ return (f, p) => (m(), D("div", {
14846
+ class: "q-switch__container",
14847
+ onClick: p[1] || (p[1] = pt(() => {
14848
+ }, ["stop"]))
14849
+ }, [
14844
14850
  e.label ? (m(), re(u(Zt), {
14845
14851
  key: 0,
14846
14852
  for: u(l),
@@ -14863,16 +14869,16 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14863
14869
  role: "switch",
14864
14870
  "aria-checked": a.value,
14865
14871
  disabled: e.disabled
14866
- }, f.$attrs, { onInput: n }), null, 16, Uy), [
14872
+ }, f.$attrs, { onInput: n }), null, 16, Hy), [
14867
14873
  [So, a.value]
14868
14874
  ]),
14869
- ee("div", jy, [
14870
- ee("span", Xy, [
14875
+ ee("div", Uy, [
14876
+ ee("span", jy, [
14871
14877
  e.showStateLabels ? (m(), D(we, { key: 0 }, [
14872
14878
  Je(De(e.falseLabel), 1)
14873
14879
  ], 64)) : L("", !0)
14874
14880
  ]),
14875
- ee("span", Ky, [
14881
+ ee("span", Xy, [
14876
14882
  e.showStateLabels ? (m(), D(we, { key: 0 }, [
14877
14883
  Je(De(e.trueLabel), 1)
14878
14884
  ], 64)) : L("", !0)
@@ -14881,7 +14887,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14881
14887
  ], 6)
14882
14888
  ]));
14883
14889
  }
14884
- }), Zy = _e(Gy), Jy = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], eg = /* @__PURE__ */ pe({
14890
+ }), Gy = _e(Ky), Zy = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Jy = /* @__PURE__ */ pe({
14885
14891
  inheritAttrs: !1,
14886
14892
  __name: "QTextArea",
14887
14893
  props: /* @__PURE__ */ Se({
@@ -14952,7 +14958,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14952
14958
  cols: e.cols,
14953
14959
  resize: e.resize,
14954
14960
  wrap: e.wrap
14955
- }, f.$attrs, Oo(s.value, !0)), null, 16, Jy), [
14961
+ }, f.$attrs, Oo(s.value, !0)), null, 16, Zy), [
14956
14962
  [xl, n.value]
14957
14963
  ])
14958
14964
  ]),
@@ -14981,7 +14987,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14981
14987
  } : void 0
14982
14988
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
14983
14989
  }
14984
- }), tg = _e(eg), ag = ["id"], ng = /* @__PURE__ */ pe({
14990
+ }), eg = _e(Jy), tg = ["id"], ag = /* @__PURE__ */ pe({
14985
14991
  __name: "QThemeProvider",
14986
14992
  props: {
14987
14993
  id: {},
@@ -14995,13 +15001,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
14995
15001
  class: ie(["q-theme-provider", u(n), e.class])
14996
15002
  }, [
14997
15003
  C(l.$slots, "default")
14998
- ], 10, ag));
15004
+ ], 10, tg));
14999
15005
  }
15000
- }), lg = _e(ng), rg = {
15006
+ }), ng = _e(ag), lg = {
15001
15007
  close: {
15002
15008
  icon: "close"
15003
15009
  }
15004
- }, sg = { class: "q-toast__title" }, og = /* @__PURE__ */ pe({
15010
+ }, rg = { class: "q-toast__title" }, sg = /* @__PURE__ */ pe({
15005
15011
  __name: "QToast",
15006
15012
  props: {
15007
15013
  id: {},
@@ -15009,7 +15015,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15009
15015
  block: { type: Boolean },
15010
15016
  color: { default: "info" },
15011
15017
  elevation: { default: "medium" },
15012
- icons: { default: () => rg },
15018
+ icons: { default: () => lg },
15013
15019
  text: {},
15014
15020
  timeout: { default: 5e3 },
15015
15021
  title: {},
@@ -15128,7 +15134,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15128
15134
  default: H(() => [
15129
15135
  ge(u(Ba), null, {
15130
15136
  default: H(() => [
15131
- ee("div", sg, [
15137
+ ee("div", rg, [
15132
15138
  w.$slots["title.prepend"] ? C(w.$slots, "title.prepend", { key: 0 }) : L("", !0),
15133
15139
  ee("h4", null, De(a.title), 1),
15134
15140
  w.$slots["title.append"] ? C(w.$slots, "title.append", { key: 1 }) : L("", !0)
@@ -15165,7 +15171,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15165
15171
  } : void 0
15166
15172
  ]), 1032, ["id", "elevation", "width", "class", "style"]));
15167
15173
  }
15168
- }), ig = /* @__PURE__ */ pe({
15174
+ }), og = /* @__PURE__ */ pe({
15169
15175
  __name: "QToaster",
15170
15176
  props: {
15171
15177
  id: {},
@@ -15199,7 +15205,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15199
15205
  _: 1
15200
15206
  }, 8, ["id", "class", "data-placement"]));
15201
15207
  }
15202
- }), _o = _e(og), ug = _e(ig), dg = /* @__PURE__ */ pe({
15208
+ }), _o = _e(sg), ig = _e(og), ug = /* @__PURE__ */ pe({
15203
15209
  __name: "QToggleGroup",
15204
15210
  props: /* @__PURE__ */ Se({
15205
15211
  id: {},
@@ -15238,7 +15244,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15238
15244
  _: 3
15239
15245
  }, 8, ["id", "class", "elevated"]));
15240
15246
  }
15241
- }), cg = /* @__PURE__ */ pe({
15247
+ }), dg = /* @__PURE__ */ pe({
15242
15248
  __name: "QToggleGroupItem",
15243
15249
  props: {
15244
15250
  id: {},
@@ -15273,7 +15279,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15273
15279
  _: 3
15274
15280
  }, 16, ["model-value", "onUpdate:modelValue"]));
15275
15281
  }
15276
- }), fg = _e(dg), pg = _e(cg), mg = { class: "q-tooltip__content" }, vg = ["innerHTML"], hg = /* @__PURE__ */ pe({
15282
+ }), cg = _e(ug), fg = _e(dg), pg = { class: "q-tooltip__content" }, mg = ["innerHTML"], vg = /* @__PURE__ */ pe({
15277
15283
  __name: "QTooltip",
15278
15284
  props: /* @__PURE__ */ Se({
15279
15285
  id: {},
@@ -15339,13 +15345,13 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15339
15345
  onLeave: s
15340
15346
  }, {
15341
15347
  default: H(() => [
15342
- ee("div", mg, [
15348
+ ee("div", pg, [
15343
15349
  C(f.$slots, "default", {}, () => [
15344
15350
  e.icon ? (m(), re(u(Ue), Ee(Te({ key: 0 }, e.icon)), null, 16)) : L("", !0),
15345
15351
  e.html ? (m(), D("span", {
15346
15352
  key: 1,
15347
15353
  innerHTML: e.text
15348
- }, null, 8, vg)) : (m(), D(we, { key: 2 }, [
15354
+ }, null, 8, mg)) : (m(), D(we, { key: 2 }, [
15349
15355
  Je(De(e.text), 1)
15350
15356
  ], 64))
15351
15357
  ])
@@ -15355,7 +15361,7 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15355
15361
  }, 8, ["id", "modelValue", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
15356
15362
  ], 64));
15357
15363
  }
15358
- }), yg = _e(hg), gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15364
+ }), hg = _e(vg), yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15359
15365
  __proto__: null,
15360
15366
  QAccordion: Ci,
15361
15367
  QAccordionItem: Pi,
@@ -15406,29 +15412,29 @@ const xh = /* @__PURE__ */ wh(_h, [["render", $h]]), Ba = _e(yh), bl = _e(gh), w
15406
15412
  QSkeletonLoader: Wy,
15407
15413
  QSpacer: Dh,
15408
15414
  QSpinnerLoader: ja,
15409
- QSwitch: Zy,
15410
- QTextArea: tg,
15415
+ QSwitch: Gy,
15416
+ QTextArea: eg,
15411
15417
  QTextField: Ka,
15412
- QThemeProvider: lg,
15418
+ QThemeProvider: ng,
15413
15419
  QToast: _o,
15414
- QToaster: ug,
15420
+ QToaster: ig,
15415
15421
  QToggle: er,
15416
- QToggleGroup: fg,
15417
- QToggleGroupItem: pg,
15418
- QTooltip: yg
15422
+ QToggleGroup: cg,
15423
+ QToggleGroupItem: fg,
15424
+ QTooltip: hg
15419
15425
  }, Symbol.toStringTag, { value: "Module" }));
15420
- function bg(t = {}) {
15426
+ function gg(t = {}) {
15421
15427
  return { install: (a) => {
15422
15428
  const n = t.components || {};
15423
15429
  for (const s in n)
15424
15430
  a.component(s, n[s]);
15425
15431
  const l = t.defaults || {};
15426
- a.provide(Ml, K(l)), wg(a, t.themes);
15432
+ a.provide(Ml, K(l)), bg(a, t.themes);
15427
15433
  const r = xu();
15428
- a.provide(ls, r), _g(a);
15434
+ a.provide(ls, r), wg(a);
15429
15435
  } };
15430
15436
  }
15431
- function wg(t, e) {
15437
+ function bg(t, e) {
15432
15438
  const a = [];
15433
15439
  let n;
15434
15440
  if (!e)
@@ -15448,23 +15454,23 @@ function wg(t, e) {
15448
15454
  }
15449
15455
  if (n) {
15450
15456
  const l = K(n), r = Xr(l, a);
15451
- jo(a), Pe(r.name, kg, { immediate: !0 }), t.provide(Pl, r);
15457
+ jo(a), Pe(r.name, _g, { immediate: !0 }), t.provide(Pl, r);
15452
15458
  }
15453
15459
  }
15454
- function _g(t) {
15460
+ function wg(t) {
15455
15461
  const e = ov();
15456
15462
  t.provide(lo, e);
15457
15463
  }
15458
- function kg(t) {
15464
+ function _g(t) {
15459
15465
  const e = document.documentElement, n = Array.from(e.classList).filter((l) => !l.startsWith("q-theme"));
15460
15466
  e.className = n.join(" "), e.classList.add(`q-theme--${t}`);
15461
15467
  }
15462
- const Tg = (t = {}) => bg({ components: gg, ...t });
15468
+ const Dg = (t = {}) => gg({ components: yg, ...t });
15463
15469
  export {
15464
- gg as components,
15465
- Tg as createFramework,
15470
+ yg as components,
15471
+ Dg as createFramework,
15466
15472
  Xo as provideTheme,
15467
- Dg as templates,
15473
+ xg as templates,
15468
15474
  rv as useDialog,
15469
15475
  Xa as useTheme,
15470
15476
  sv as useToast