@quidgest/ui 0.16.8 → 0.16.10

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.
Files changed (35) hide show
  1. package/dist/ui.esm.js +928 -927
  2. package/dist/ui.js +9 -9
  3. package/dist/ui.min.js +666 -664
  4. package/dist/ui.scss +1 -1
  5. package/esm/components/QCombobox/QCombobox.d.ts +20 -20
  6. package/esm/components/QCombobox/index.d.ts +35 -35
  7. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +24 -23
  8. package/esm/components/QDateTimePicker/index.d.ts +3 -0
  9. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  10. package/esm/components/QDateTimePicker/types.d.ts +4 -0
  11. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  12. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +2 -2
  13. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +17 -20
  14. package/esm/components/QDismissibleLayer/index.d.ts +1 -1
  15. package/esm/components/QField/QField.d.ts +3 -3
  16. package/esm/components/QField/QField.d.ts.map +1 -1
  17. package/esm/components/QField/QField.vue.js +16 -17
  18. package/esm/components/QField/index.d.ts +4 -4
  19. package/esm/components/QOverlay/index.d.ts +3 -3
  20. package/esm/components/QOverlay/types.d.ts +1 -1
  21. package/esm/components/QOverlay/types.d.ts.map +1 -1
  22. package/esm/components/QPasswordField/QPasswordField.d.ts +10 -10
  23. package/esm/components/QPasswordField/index.d.ts +5 -5
  24. package/esm/components/QSelect/QSelect.d.ts +6 -6
  25. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  26. package/esm/components/QSelect/QSelect.vue.js +17 -17
  27. package/esm/components/QSelect/index.d.ts +3 -3
  28. package/esm/components/QSidebar/QSidebar.vue.js +16 -13
  29. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  30. package/esm/components/QSidebar/QSidebarAnchor.vue.js +35 -34
  31. package/esm/components/QSidebar/types.d.ts +2 -2
  32. package/esm/components/QSidebar/types.d.ts.map +1 -1
  33. package/esm/components/QTextField/QTextField.d.ts +7 -7
  34. package/esm/components/QTextField/index.d.ts +6 -6
  35. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, mergeModels as D, useModel as K, ref as b, computed as k, watch as H, nextTick as X, createElementBlock as f, openBlock as t, Fragment as z, createVNode as g, unref as n, mergeProps as A, createSlots as j, withCtx as i, toDisplayString as F, createCommentVNode as h, createTextVNode as G, renderSlot as d, createBlock as _, normalizeProps as J, createElementVNode as W, withModifiers as Y } from "vue";
1
+ import { defineComponent as P, mergeModels as D, useModel as K, ref as b, computed as k, watch as H, nextTick as X, createElementBlock as f, openBlock as t, Fragment as R, createVNode as g, unref as n, mergeProps as z, createSlots as j, withCtx as i, toDisplayString as A, createCommentVNode as h, createTextVNode as G, renderSlot as d, createBlock as _, normalizeProps as J, createElementVNode as W, withModifiers as Y } from "vue";
2
2
  import { DEFAULT_TEXTS as Z, DEFAULT_ICONS as ee } from "./types.js";
3
3
  import { QButton as le } from "../QButton/index.js";
4
4
  import { QField as oe } from "../QField/index.js";
@@ -45,8 +45,8 @@ const de = {
45
45
  modelModifiers: {}
46
46
  }),
47
47
  emits: /* @__PURE__ */ D(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
48
- setup(q, { emit: O }) {
49
- const e = q, m = O, p = K(q, "modelValue"), o = b(!1), v = b(null), x = b(null), w = b(null), R = k(() => s.value === void 0), s = k(
48
+ setup(q, { emit: F }) {
49
+ const e = q, m = F, p = K(q, "modelValue"), o = b(!1), v = b(null), x = b(null), w = b(null), O = k(() => s.value === void 0), s = k(
50
50
  () => {
51
51
  var l;
52
52
  return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === p.value);
@@ -72,10 +72,10 @@ const de = {
72
72
  function y() {
73
73
  o.value && (m("before-hide"), o.value = !1);
74
74
  }
75
- function $() {
75
+ function C() {
76
76
  e.readonly || e.disabled || (o.value ? y() : L());
77
77
  }
78
- function C(l) {
78
+ function $(l) {
79
79
  !l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && L(), ["Escape", "Tab"].includes(l.key) && (o.value ? y() : V.value && l.key === "Escape" && E()), l.key === "Delete" && e.clearable && E());
80
80
  }
81
81
  function U() {
@@ -101,10 +101,10 @@ const de = {
101
101
  ), (l, a) => {
102
102
  var u, c;
103
103
  return t(), f(
104
- z,
104
+ R,
105
105
  null,
106
106
  [
107
- g(n(oe), A({
107
+ g(n(oe), z({
108
108
  id: e.id,
109
109
  ref_key: "triggerEl",
110
110
  ref: v,
@@ -128,8 +128,8 @@ const de = {
128
128
  size: e.size,
129
129
  invalid: e.invalid
130
130
  }, l.$attrs, {
131
- onClick: $,
132
- onKeydown: C
131
+ onClick: C,
132
+ onKeydown: $
133
133
  }), j({
134
134
  append: i(() => [
135
135
  d(l.$slots, "append"),
@@ -148,7 +148,7 @@ const de = {
148
148
  borderless: "",
149
149
  tabindex: "-1",
150
150
  disabled: e.disabled,
151
- onClick: $
151
+ onClick: C
152
152
  }, {
153
153
  default: i(() => [
154
154
  g(n(se), {
@@ -161,13 +161,13 @@ const de = {
161
161
  }, 8, ["aria-label", "disabled"]))
162
162
  ]),
163
163
  default: i(() => [
164
- R.value ? (t(), f("span", ue, [
164
+ O.value ? (t(), f("span", ue, [
165
165
  !e.readonly && !e.disabled ? (t(), f(
166
- z,
166
+ R,
167
167
  { key: 0 },
168
168
  [
169
169
  G(
170
- F(e.texts.placeholder),
170
+ A(e.texts.placeholder),
171
171
  1
172
172
  /* TEXT */
173
173
  )
@@ -178,7 +178,7 @@ const de = {
178
178
  ])) : (t(), f(
179
179
  "span",
180
180
  de,
181
- F(M.value),
181
+ A(M.value),
182
182
  1
183
183
  /* TEXT */
184
184
  ))
@@ -194,7 +194,7 @@ const de = {
194
194
  d(l.$slots, "prepend"),
195
195
  (r = s.value) != null && r.icon ? (t(), _(
196
196
  n(ae),
197
- J(A({ key: 0 }, (S = s.value) == null ? void 0 : S.icon)),
197
+ J(z({ key: 0 }, (S = s.value) == null ? void 0 : S.icon)),
198
198
  null,
199
199
  16
200
200
  /* FULL_PROPS */
@@ -220,7 +220,7 @@ const de = {
220
220
  width: "anchor",
221
221
  "scroll-lock": "",
222
222
  inline: e.inline,
223
- anchor: (c = v.value) == null ? void 0 : c.$el,
223
+ anchor: (c = v.value) == null ? void 0 : c.fieldRef,
224
224
  offset: 2,
225
225
  onEnter: U,
226
226
  onLeave: I
@@ -234,7 +234,7 @@ const de = {
234
234
  class: "q-select__body",
235
235
  tabindex: "-1",
236
236
  onFocusout: N,
237
- onKeydown: Y(C, ["stop"])
237
+ onKeydown: Y($, ["stop"])
238
238
  }, [
239
239
  d(l.$slots, "body.prepend"),
240
240
  e.loading ? (t(), f("div", fe, [
@@ -62,7 +62,7 @@ declare const QSelect: {
62
62
  $refs: {
63
63
  [x: string]: unknown;
64
64
  } & {
65
- fieldRef: HTMLDivElement;
65
+ field: HTMLDivElement;
66
66
  };
67
67
  $slots: Readonly<{
68
68
  [name: string]: import('vue').Slot<any> | undefined;
@@ -73,7 +73,7 @@ declare const QSelect: {
73
73
  $emit: (event: string, ...args: any[]) => void;
74
74
  $el: any;
75
75
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
76
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
76
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
77
77
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
78
78
  size: import('..').QFieldSize;
79
79
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -99,7 +99,7 @@ declare const QSelect: {
99
99
  } & Readonly<{
100
100
  size: import('..').QFieldSize;
101
101
  }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
102
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
102
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
103
103
  }> & {} & import('vue').ComponentCustomProperties & {} & {
104
104
  $slots: {
105
105
  'label.prepend'?(_: {}): any;
@@ -4,9 +4,9 @@ import F from "./QSidebarPanel.vue.js";
4
4
  const K = /* @__PURE__ */ P({
5
5
  __name: "QSidebar",
6
6
  props: /* @__PURE__ */ z({
7
+ panels: {},
7
8
  anchorWidth: { default: 50 },
8
9
  showLabels: { type: Boolean },
9
- panels: {},
10
10
  position: { default: "left" }
11
11
  }, {
12
12
  modelValue: {},
@@ -22,18 +22,21 @@ const K = /* @__PURE__ */ P({
22
22
  },
23
23
  { immediate: !0 }
24
24
  );
25
- const i = r(() => a.panels.find((e) => e.id === m.value)), h = r(() => !!i.value), t = b(), q = r(() => {
26
- if (t.value !== void 0)
27
- return h.value ? typeof t.value == "number" ? `${a.anchorWidth + t.value}px` : `calc(${a.anchorWidth}px + ${t.value})` : `${a.anchorWidth}px`;
25
+ const i = r(() => {
26
+ var e;
27
+ return (e = a.panels) == null ? void 0 : e.find((t) => t.id === m.value);
28
+ }), h = r(() => !!i.value), l = b(), q = r(() => {
29
+ if (l.value !== void 0)
30
+ return h.value ? typeof l.value == "number" ? `${a.anchorWidth + l.value}px` : `calc(${a.anchorWidth}px + ${l.value})` : `${a.anchorWidth}px`;
28
31
  }), C = r(() => {
29
- var e, l, d, v, p, c, $;
32
+ var e, t, d, v, p, c, $;
30
33
  return [
31
34
  "q-sidebar",
32
35
  `q-sidebar--${((e = i.value) == null ? void 0 : e.initialWidth) ?? "small"}`,
33
36
  `q-sidebar--${a.position}`,
34
37
  {
35
38
  "q-sidebar--expanded": h.value,
36
- [`q-sidebar--min-${(l = i.value) == null ? void 0 : l.minWidth}`]: ((d = i.value) == null ? void 0 : d.resizable) && ((v = i.value) == null ? void 0 : v.minWidth) !== void 0,
39
+ [`q-sidebar--min-${(t = i.value) == null ? void 0 : t.minWidth}`]: ((d = i.value) == null ? void 0 : d.resizable) && ((v = i.value) == null ? void 0 : v.minWidth) !== void 0,
37
40
  [`q-sidebar--max-${(p = i.value) == null ? void 0 : p.maxWidth}`]: ((c = i.value) == null ? void 0 : c.resizable) && (($ = i.value) == null ? void 0 : $.maxWidth) !== void 0
38
41
  }
39
42
  ];
@@ -42,10 +45,10 @@ const K = /* @__PURE__ */ P({
42
45
  u("resize:start");
43
46
  }
44
47
  function g(e) {
45
- t.value = e, u("resize", e);
48
+ l.value = e, u("resize", e);
46
49
  }
47
50
  function B() {
48
- u("resize:end", t.value);
51
+ u("resize:end", l.value);
49
52
  }
50
53
  function L(e) {
51
54
  u("click:item", e);
@@ -54,11 +57,11 @@ const K = /* @__PURE__ */ P({
54
57
  n.value || (m.value = void 0);
55
58
  }
56
59
  function M() {
57
- var l;
58
- const e = (l = i.value) == null ? void 0 : l.initialWidth;
59
- typeof e == "number" ? t.value = e : t.value = void 0;
60
+ var t;
61
+ const e = (t = i.value) == null ? void 0 : t.initialWidth;
62
+ typeof e == "number" ? l.value = e : l.value = void 0;
60
63
  }
61
- return W([() => a.anchorWidth, i], M, { immediate: !0, deep: !0 }), (e, l) => (w(), A(
64
+ return W([() => a.anchorWidth, i], M, { immediate: !0, deep: !0 }), (e, t) => (w(), A(
62
65
  "div",
63
66
  {
64
67
  class: I(C.value),
@@ -67,7 +70,7 @@ const K = /* @__PURE__ */ P({
67
70
  [
68
71
  k(D, {
69
72
  modelValue: n.value,
70
- "onUpdate:modelValue": l[0] || (l[0] = (d) => n.value = d),
73
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
71
74
  panels: a.panels,
72
75
  "anchor-width": a.anchorWidth,
73
76
  "show-labels": a.showLabels,
@@ -1 +1 @@
1
- {"version":3,"file":"QSidebarAnchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarAnchor.vue"],"names":[],"mappings":"AA8BA;AA+HC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAA;AAE1C,KAAK,WAAW,GAAG,mBAAmB,CAAC;AAmFxC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;;UAZoC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyD09e,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;EAxCxqf;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwB8hf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAfvqf,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QSidebarAnchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarAnchor.vue"],"names":[],"mappings":"AA8BA;AA+HC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAA;AAE1C,KAAK,WAAW,GAAG,mBAAmB,CAAC;AAmFxC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;;UAZoC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyD48e,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;EAxC1pf;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBghf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;kBAfzpf,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,28 +1,29 @@
1
- import { defineComponent as w, mergeModels as c, useModel as C, ref as d, watch as L, nextTick as q, createElementBlock as u, openBlock as s, normalizeStyle as f, createElementVNode as m, Fragment as I, renderList as V, createBlock as p, unref as h, withCtx as B, renderSlot as S, createCommentVNode as $, mergeProps as E } from "vue";
2
- import { QIcon as M } from "../QIcon/index.js";
3
- import { QToggle as Q } from "../QToggle/index.js";
4
- const T = { class: "q-sidebar__items" }, W = /* @__PURE__ */ w({
1
+ import { defineComponent as C, mergeModels as d, useModel as L, ref as u, watch as q, nextTick as I, createElementBlock as f, openBlock as s, normalizeStyle as m, createElementVNode as p, Fragment as V, renderList as B, createBlock as h, unref as v, withCtx as S, renderSlot as $, createCommentVNode as E, mergeProps as M } from "vue";
2
+ import { QIcon as Q } from "../QIcon/index.js";
3
+ import { QToggle as T } from "../QToggle/index.js";
4
+ const H = { class: "q-sidebar__items" }, Y = /* @__PURE__ */ C({
5
5
  __name: "QSidebarAnchor",
6
- props: /* @__PURE__ */ c({
6
+ props: /* @__PURE__ */ d({
7
+ panels: {},
7
8
  anchorWidth: {},
8
- showLabels: { type: Boolean },
9
- panels: {}
9
+ showLabels: { type: Boolean }
10
10
  }, {
11
11
  modelValue: {},
12
12
  modelModifiers: {}
13
13
  }),
14
- emits: /* @__PURE__ */ c(["click:item"], ["update:modelValue"]),
15
- setup(r, { emit: v }) {
16
- const i = r, _ = v, o = C(r, "modelValue"), a = d({
14
+ emits: /* @__PURE__ */ d(["click:item"], ["update:modelValue"]),
15
+ setup(r, { emit: _ }) {
16
+ const i = r, g = _, o = L(r, "modelValue"), a = u({
17
17
  height: "0",
18
18
  transform: "translateY(0)",
19
19
  opacity: "0",
20
20
  transition: "transform 0.3s ease, height 0.3s ease, opacity 0.2s ease"
21
- }), l = d([]);
22
- function g(e) {
23
- o.value = o.value === e ? void 0 : e, _("click:item", e);
21
+ }), l = u([]);
22
+ function b(e) {
23
+ o.value = o.value === e ? void 0 : e, g("click:item", e);
24
24
  }
25
- function b() {
25
+ function k() {
26
+ var c;
26
27
  if (!o.value) {
27
28
  a.value = {
28
29
  ...a.value,
@@ -31,41 +32,41 @@ const T = { class: "q-sidebar__items" }, W = /* @__PURE__ */ w({
31
32
  };
32
33
  return;
33
34
  }
34
- const e = i.panels.findIndex((x) => x.id === o.value);
35
+ const e = ((c = i.panels) == null ? void 0 : c.findIndex((w) => w.id === o.value)) ?? -1;
35
36
  if (e === -1 || !l.value[e])
36
37
  return;
37
38
  const n = l.value[e].$el || l.value[e];
38
39
  if (!n) return;
39
- const k = e === l.value.length - 1 ? n.offsetHeight : n.offsetHeight - 1, y = n.offsetTop;
40
+ const y = e === l.value.length - 1 ? n.offsetHeight : n.offsetHeight - 1, x = n.offsetTop;
40
41
  a.value = {
41
42
  ...a.value,
42
- height: `${k}px`,
43
- transform: `translateY(${y}px)`,
43
+ height: `${y}px`,
44
+ transform: `translateY(${x}px)`,
44
45
  opacity: "1"
45
46
  };
46
47
  }
47
- return L(o, () => q(b), { immediate: !0 }), (e, n) => (s(), u(
48
+ return q(o, () => I(k), { immediate: !0 }), (e, n) => (s(), f(
48
49
  "div",
49
50
  {
50
51
  class: "q-sidebar-anchor",
51
- style: f({ width: i.anchorWidth + "px" })
52
+ style: m({ width: i.anchorWidth + "px" })
52
53
  },
53
54
  [
54
- m("div", T, [
55
- m(
55
+ p("div", H, [
56
+ p(
56
57
  "div",
57
58
  {
58
59
  class: "q-sidebar__indicator",
59
- style: f(a.value)
60
+ style: m(a.value)
60
61
  },
61
62
  null,
62
63
  4
63
64
  /* STYLE */
64
65
  ),
65
- (s(!0), u(
66
- I,
66
+ (s(!0), f(
67
+ V,
67
68
  null,
68
- V(e.panels, (t) => (s(), p(h(Q), {
69
+ B(e.panels, (t) => (s(), h(v(T), {
69
70
  key: t.id,
70
71
  ref_for: !0,
71
72
  ref_key: "itemRefs",
@@ -76,20 +77,20 @@ const T = { class: "q-sidebar__items" }, W = /* @__PURE__ */ w({
76
77
  title: i.showLabels ? void 0 : t.title,
77
78
  "icon-pos": "top",
78
79
  class: "q-sidebar__item",
79
- onClick: () => g(t.id)
80
+ onClick: () => b(t.id)
80
81
  }, {
81
- default: B(() => [
82
- S(e.$slots, t.id, { item: t }, () => [
83
- t.icon ? (s(), p(
84
- h(M),
85
- E({
82
+ default: S(() => [
83
+ $(e.$slots, t.id, { item: t }, () => [
84
+ t.icon ? (s(), h(
85
+ v(Q),
86
+ M({
86
87
  key: 0,
87
88
  ref_for: !0
88
89
  }, t.icon),
89
90
  null,
90
91
  16
91
92
  /* FULL_PROPS */
92
- )) : $("v-if", !0)
93
+ )) : E("v-if", !0)
93
94
  ])
94
95
  ]),
95
96
  _: 2
@@ -106,5 +107,5 @@ const T = { class: "q-sidebar__items" }, W = /* @__PURE__ */ w({
106
107
  }
107
108
  });
108
109
  export {
109
- W as default
110
+ Y as default
110
111
  };
@@ -44,12 +44,12 @@ export type QSidebarPanelProps = Omit<QSidebarAnchorItemProps, 'id'> & {
44
44
  * Includes the width of the anchor section and panel configurations.
45
45
  */
46
46
  export type QSidebarAnchorProps = {
47
+ /** List of panels that can be anchored in the sidebar. */
48
+ panels?: QSidebarAnchorItemProps[];
47
49
  /** Width of the anchor section (in pixels). */
48
50
  anchorWidth?: number;
49
51
  /** Whether to display labels alongside icons in anchor items. */
50
52
  showLabels?: boolean;
51
- /** List of panels that can be anchored in the sidebar. */
52
- panels: QSidebarAnchorItemProps[];
53
53
  };
54
54
  /**
55
55
  * Complete set of props for the `QSidebar` component, combining anchor section props
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC;;GAEG;AACH,KAAK,2BAA2B,GAAG;IAClC,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IACnE,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yDAAyD;IACzD,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,GAAG;IACtE,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACjC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0DAA0D;IAC1D,MAAM,EAAE,uBAAuB,EAAE,CAAA;CACjC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC;;GAEG;AACH,KAAK,2BAA2B,GAAG;IAClC,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IACnE,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yDAAyD;IACzD,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,GAAG;IACtE,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACjC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;IAClC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA"}
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
33
33
  $refs: {
34
34
  [x: string]: unknown;
35
35
  } & {
36
- fieldRef: HTMLDivElement;
36
+ field: HTMLDivElement;
37
37
  };
38
38
  $slots: Readonly<{
39
39
  [name: string]: import('vue').Slot<any> | undefined;
@@ -44,7 +44,7 @@ declare function __VLS_template(): {
44
44
  $emit: (event: string, ...args: any[]) => void;
45
45
  $el: any;
46
46
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
47
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
47
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
48
48
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
49
49
  size: import('..').QFieldSize;
50
50
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -70,7 +70,7 @@ declare function __VLS_template(): {
70
70
  } & Readonly<{
71
71
  size: import('..').QFieldSize;
72
72
  }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
73
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
73
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
74
74
  }> & {} & import('vue').ComponentCustomProperties & {} & {
75
75
  $slots: {
76
76
  'label.prepend'?(_: {}): any;
@@ -88,7 +88,7 @@ declare function __VLS_template(): {
88
88
  };
89
89
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
90
90
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
91
- fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
91
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
92
92
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
93
93
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
94
94
  "update:modelValue": (value: string) => any;
@@ -120,7 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
120
120
  $refs: {
121
121
  [x: string]: unknown;
122
122
  } & {
123
- fieldRef: HTMLDivElement;
123
+ field: HTMLDivElement;
124
124
  };
125
125
  $slots: Readonly<{
126
126
  [name: string]: import('vue').Slot<any> | undefined;
@@ -131,7 +131,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
131
131
  $emit: (event: string, ...args: any[]) => void;
132
132
  $el: any;
133
133
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
134
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
134
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
135
135
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
136
136
  size: import('..').QFieldSize;
137
137
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -157,7 +157,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
157
157
  } & Readonly<{
158
158
  size: import('..').QFieldSize;
159
159
  }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
160
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
160
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
161
161
  }> & {} & import('vue').ComponentCustomProperties & {} & {
162
162
  $slots: {
163
163
  'label.prepend'?(_: {}): any;
@@ -22,7 +22,7 @@ declare const QTextField: {
22
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
23
  "onClick:clear"?: ((event: Event) => any) | undefined;
24
24
  }>, {
25
- fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
25
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
26
26
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
27
27
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
28
  "update:modelValue": (value: string) => any;
@@ -51,7 +51,7 @@ declare const QTextField: {
51
51
  $refs: {
52
52
  [x: string]: unknown;
53
53
  } & {
54
- fieldRef: HTMLDivElement;
54
+ field: HTMLDivElement;
55
55
  };
56
56
  $slots: Readonly<{
57
57
  [name: string]: import('vue').Slot<any> | undefined;
@@ -62,7 +62,7 @@ declare const QTextField: {
62
62
  $emit: (event: string, ...args: any[]) => void;
63
63
  $el: any;
64
64
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
65
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
65
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
66
66
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
67
67
  size: import('..').QFieldSize;
68
68
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -88,7 +88,7 @@ declare const QTextField: {
88
88
  } & Readonly<{
89
89
  size: import('..').QFieldSize;
90
90
  }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
91
- fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
91
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
92
92
  }> & {} & import('vue').ComponentCustomProperties & {} & {
93
93
  $slots: {
94
94
  'label.prepend'?(_: {}): any;
@@ -130,7 +130,7 @@ declare const QTextField: {
130
130
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
131
131
  "onClick:clear"?: ((event: Event) => any) | undefined;
132
132
  }>, {
133
- fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
133
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
134
134
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
135
135
  }, {}, {}, {}, {
136
136
  type: string;
@@ -160,7 +160,7 @@ declare const QTextField: {
160
160
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
161
161
  "onClick:clear"?: ((event: Event) => any) | undefined;
162
162
  }>, {
163
- fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
163
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
164
164
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
165
165
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
166
166
  "update:modelValue": (value: string) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.16.8",
4
+ "version": "0.16.10",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",