@quidgest/ui 0.16.23 → 0.16.25

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 (52) hide show
  1. package/dist/manifest/components.json +1 -0
  2. package/dist/ui.css +10 -23
  3. package/dist/ui.esm.js +2444 -2401
  4. package/dist/ui.js +18 -17
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +734 -727
  7. package/dist/ui.scss +11 -26
  8. package/esm/components/QAccordion/QAccordionItem.vue.js +3 -3
  9. package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts +19 -0
  10. package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts.map +1 -0
  11. package/esm/components/QDefaultsProvider/QDefaultsProvider.vue.js +16 -0
  12. package/esm/components/QDefaultsProvider/QDefaultsProvider.vue2.js +4 -0
  13. package/esm/components/QDefaultsProvider/index.d.ts +19 -0
  14. package/esm/components/QDefaultsProvider/index.d.ts.map +1 -0
  15. package/esm/components/QDefaultsProvider/index.js +6 -0
  16. package/esm/components/QDefaultsProvider/types.d.ts +13 -0
  17. package/esm/components/QDefaultsProvider/types.d.ts.map +1 -0
  18. package/esm/components/QFileUpload/QFileUpload.vue.js +45 -45
  19. package/esm/components/QList/QListItem.d.ts.map +1 -1
  20. package/esm/components/QRadioGroup/QRadioButton.vue.js +12 -12
  21. package/esm/components/QRadioGroup/QRadioGroup.vue.js +11 -11
  22. package/esm/components/QTextArea/QTextArea.vue.js +10 -10
  23. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  24. package/esm/components/QTextField/QTextField.vue.js +15 -15
  25. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  26. package/esm/components/QThemeProvider/QThemeProvider.vue.js +29 -11
  27. package/esm/components/QThemeProvider/types.d.ts +2 -1
  28. package/esm/components/QThemeProvider/types.d.ts.map +1 -1
  29. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
  30. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +10 -10
  31. package/esm/components/QTooltip/QTooltip.vue.js +23 -23
  32. package/esm/components/index.d.ts +1 -0
  33. package/esm/components/index.d.ts.map +1 -1
  34. package/esm/components/index.js +88 -86
  35. package/esm/composables/defaults.d.ts +2 -2
  36. package/esm/composables/defaults.d.ts.map +1 -1
  37. package/esm/composables/defaults.js +12 -12
  38. package/esm/composables/theme.d.ts +19 -8
  39. package/esm/composables/theme.d.ts.map +1 -1
  40. package/esm/composables/theme.js +15 -11
  41. package/esm/composables/uid.d.ts +2 -2
  42. package/esm/composables/uid.d.ts.map +1 -1
  43. package/esm/composables/uid.js +6 -5
  44. package/esm/composables/useDialog/index.d.ts.map +1 -1
  45. package/esm/composables/useDialog/index.js +11 -11
  46. package/esm/composables/useToast/index.js +6 -6
  47. package/esm/framework.js +45 -36
  48. package/esm/index.d.ts +1 -0
  49. package/esm/utils/theme.d.ts +27 -6
  50. package/esm/utils/theme.d.ts.map +1 -1
  51. package/esm/utils/theme.js +39 -37
  52. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, mergeModels as y, useModel as R, computed as n, watch as V, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as z, createSlots as M, withCtx as a, withDirectives as w, createElementVNode as L, mergeProps as Q, vModelDynamic as D, renderSlot as o, createCommentVNode as F } from "vue";
2
- import { QField as N } from "../QField/index.js";
3
- import { QClearButton as S } from "../__internal__/QClearButton/index.js";
4
- import { useId as _ } from "../../composables/uid.js";
5
- const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], U = /* @__PURE__ */ C({
1
+ import { defineComponent as C, mergeModels as y, useModel as R, computed as n, watch as V, toRef as z, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as M, createSlots as w, withCtx as a, withDirectives as L, createElementVNode as Q, mergeProps as D, vModelDynamic as F, renderSlot as o, createCommentVNode as N } from "vue";
2
+ import { QField as S } from "../QField/index.js";
3
+ import { QClearButton as _ } from "../__internal__/QClearButton/index.js";
4
+ import { useId as A } from "../../composables/uid.js";
5
+ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], j = /* @__PURE__ */ C({
6
6
  inheritAttrs: !1,
7
7
  __name: "QTextField",
8
8
  props: /* @__PURE__ */ y({
@@ -34,7 +34,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
34
34
  }
35
35
  });
36
36
  V(t, (l) => s.value = l, { immediate: !0 });
37
- const p = _(e.id), u = b(null), f = b(null), g = n(
37
+ const p = A(z(e, "id")), u = b(null), f = b(null), g = n(
38
38
  () => e.readonly || e.disabled ? void 0 : e.placeholder
39
39
  ), m = n(() => e.clearable && !e.readonly && !e.disabled), c = n(() => m.value && t.value);
40
40
  function B(l) {
@@ -46,10 +46,10 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
46
46
  return (l = u.value) == null ? void 0 : l.fieldRef;
47
47
  }),
48
48
  inputRef: f
49
- }), (l, d) => (v(), h(r(N), {
49
+ }), (l, d) => (v(), h(r(S), {
50
50
  ref_key: "fieldRef",
51
51
  ref: u,
52
- class: z(["q-text-field", e.class]),
52
+ class: M(["q-text-field", e.class]),
53
53
  for: r(p),
54
54
  label: e.label,
55
55
  size: e.size,
@@ -57,7 +57,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
57
57
  disabled: e.disabled,
58
58
  required: e.required,
59
59
  invalid: e.invalid
60
- }, M({
60
+ }, w({
61
61
  "label.prepend": a(() => [
62
62
  o(l.$slots, "label.prepend")
63
63
  ]),
@@ -65,7 +65,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
65
65
  o(l.$slots, "label.append")
66
66
  ]),
67
67
  default: a(() => [
68
- w(L("input", Q({
68
+ L(Q("input", D({
69
69
  id: r(p),
70
70
  ref_key: "inputRef",
71
71
  ref: f,
@@ -77,8 +77,8 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
77
77
  placeholder: g.value,
78
78
  readonly: e.readonly,
79
79
  disabled: e.disabled
80
- }, l.$attrs), null, 16, A), [
81
- [D, s.value]
80
+ }, l.$attrs), null, 16, E), [
81
+ [F, s.value]
82
82
  ])
83
83
  ]),
84
84
  _: 2
@@ -95,12 +95,12 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
95
95
  name: "append",
96
96
  fn: a(() => [
97
97
  o(l.$slots, "append"),
98
- c.value ? (v(), h(r(S), {
98
+ c.value ? (v(), h(r(_), {
99
99
  key: 0,
100
100
  "data-testid": "q-text-field__clear-button",
101
101
  texts: e.texts,
102
102
  onClick: B
103
- }, null, 8, ["texts"])) : F("v-if", !0)
103
+ }, null, 8, ["texts"])) : N("v-if", !0)
104
104
  ]),
105
105
  key: "1"
106
106
  } : void 0,
@@ -115,5 +115,5 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
115
115
  }
116
116
  });
117
117
  export {
118
- U as default
118
+ j as default
119
119
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;AA2BC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAiBnD,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6TAOnB,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":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;AAmEC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAyDnD,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6TAOnB,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,22 +1,40 @@
1
- import { defineComponent as n, toRef as m, createElementBlock as c, openBlock as a, normalizeClass as i, unref as l, renderSlot as d } from "vue";
2
- import { provideTheme as p } from "../../composables/theme.js";
3
- const f = ["id"], v = /* @__PURE__ */ n({
1
+ import { defineComponent as i, toRef as m, watchEffect as u, onBeforeUnmount as h, createElementBlock as p, openBlock as f, normalizeClass as v, unref as d, renderSlot as y } from "vue";
2
+ import { useId as C } from "../../composables/uid.js";
3
+ import { provideTheme as _ } from "../../composables/theme.js";
4
+ const q = ["id"], N = /* @__PURE__ */ i({
4
5
  __name: "QThemeProvider",
5
6
  props: {
6
7
  id: {},
7
8
  class: {},
8
9
  theme: {}
9
10
  },
10
- setup(o) {
11
- const e = o, s = m(e, "theme"), { class: t } = p(s);
12
- return (r, h) => (a(), c("div", {
13
- id: e.id,
14
- class: i(["q-theme-provider", l(t), e.class])
11
+ setup(a) {
12
+ const o = a, {
13
+ class: c,
14
+ css: r,
15
+ name: n
16
+ } = _(m(o, "theme")), l = C(m(o, "id"));
17
+ let e = null, s = null;
18
+ return u(() => {
19
+ if (r.value) {
20
+ const t = `q-theme-${n.value}`;
21
+ s = t, e = document.getElementById(t), e || (e = document.createElement("style"), e.id = t, document.head.appendChild(e)), e.textContent = r.value;
22
+ }
23
+ }), h(() => {
24
+ if (!e || !s) return;
25
+ !Array.from(
26
+ document.querySelectorAll(
27
+ `.q-theme-provider.q-theme--${n.value}:not(#${l.value})`
28
+ )
29
+ ).length && e.parentNode && e.parentNode.removeChild(e);
30
+ }), (t, E) => (f(), p("div", {
31
+ id: d(l),
32
+ class: v(["q-theme-provider", d(c), o.class])
15
33
  }, [
16
- d(r.$slots, "default")
17
- ], 10, f));
34
+ y(t.$slots, "default")
35
+ ], 10, q));
18
36
  }
19
37
  });
20
38
  export {
21
- v as default
39
+ N as default
22
40
  };
@@ -1,8 +1,9 @@
1
+ import { ThemeDefinition } from '../../composables/theme';
1
2
  import { QBaseComponentProps } from '../../types/component';
2
3
  export type QThemeProviderProps = QBaseComponentProps & {
3
4
  /**
4
5
  * The theme to apply to the descendant components.
5
6
  */
6
- theme: string;
7
+ theme: string | ThemeDefinition;
7
8
  };
8
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACb,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,eAAe,CAAA;CAC/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAgBrD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,oUAOnB,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":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;AA4CC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAmBrD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,oUAOnB,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,8 +1,8 @@
1
- import { defineComponent as n, createBlock as p, openBlock as s, unref as o, mergeProps as i, withCtx as u, renderSlot as m } from "vue";
2
- import { QToggle as d } from "../QToggle/index.js";
3
- import { useGroupItem as c } from "../../composables/useGroup/index.js";
4
- import { useId as g } from "../../composables/uid.js";
5
- const h = /* @__PURE__ */ n({
1
+ import { defineComponent as n, toRef as p, createBlock as s, openBlock as i, unref as o, mergeProps as u, withCtx as m, renderSlot as d } from "vue";
2
+ import { QToggle as c } from "../QToggle/index.js";
3
+ import { useGroupItem as g } from "../../composables/useGroup/index.js";
4
+ import { useId as f } from "../../composables/uid.js";
5
+ const b = /* @__PURE__ */ n({
6
6
  __name: "QToggleGroupItem",
7
7
  props: {
8
8
  id: {},
@@ -21,18 +21,18 @@ const h = /* @__PURE__ */ n({
21
21
  value: {}
22
22
  },
23
23
  setup(l) {
24
- const t = l, r = g(t.value), e = c(r);
24
+ const t = l, r = f(p(t, "value")), e = g(r);
25
25
  if (!e)
26
26
  throw new Error(
27
27
  "QToggleGroupItem: Failed to retrieve group item. Ensure the component is used within a QToggleGroup context."
28
28
  );
29
- return (a, f) => (s(), p(o(d), i({
29
+ return (a, v) => (i(), s(o(c), u({
30
30
  "model-value": o(e).isActive.value
31
31
  }, t, {
32
32
  "onUpdate:modelValue": o(e).toggle
33
33
  }), {
34
- default: u(() => [
35
- m(a.$slots, "default")
34
+ default: m(() => [
35
+ d(a.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  /* FORWARDED */
@@ -40,5 +40,5 @@ const h = /* @__PURE__ */ n({
40
40
  }
41
41
  });
42
42
  export {
43
- h as default
43
+ b as default
44
44
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as b, mergeModels as g, useModel as v, onUnmounted as V, watch as B, createElementBlock as d, openBlock as a, Fragment as u, renderSlot as p, createVNode as _, unref as n, normalizeClass as k, withCtx as w, createElementVNode as A, createBlock as x, createCommentVNode as C, normalizeProps as E, mergeProps as M, createTextVNode as N, toDisplayString as T } from "vue";
2
- import { QIcon as D } from "../QIcon/index.js";
3
- import { QOverlay as L } from "../QOverlay/index.js";
4
- import { useId as Q } from "../../composables/uid.js";
5
- import { getElement as q } from "../../utils/getElement.js";
6
- const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ */ b({
1
+ import { defineComponent as b, mergeModels as g, useModel as v, toRef as V, onUnmounted as B, watch as _, createElementBlock as d, openBlock as a, Fragment as u, renderSlot as p, createVNode as k, unref as n, normalizeClass as w, withCtx as A, createElementVNode as x, createBlock as C, createCommentVNode as E, normalizeProps as M, mergeProps as N, createTextVNode as T, toDisplayString as D } from "vue";
2
+ import { QIcon as L } from "../QIcon/index.js";
3
+ import { QOverlay as Q } from "../QOverlay/index.js";
4
+ import { useId as q } from "../../composables/uid.js";
5
+ import { getElement as z } from "../../utils/getElement.js";
6
+ const H = { class: "q-tooltip__content" }, I = ["innerHTML"], O = /* @__PURE__ */ b({
7
7
  __name: "QTooltip",
8
8
  props: /* @__PURE__ */ g({
9
9
  id: {},
@@ -26,13 +26,13 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
26
26
  }),
27
27
  emits: ["update:modelValue"],
28
28
  setup(c) {
29
- const e = c, r = v(c, "modelValue"), l = Q(e.id);
29
+ const e = c, r = v(c, "modelValue"), l = q(V(e, "id"));
30
30
  function s() {
31
- return e.anchor ? q(e.anchor) : void 0;
31
+ return e.anchor ? z(e.anchor) : void 0;
32
32
  }
33
33
  function m() {
34
34
  var t;
35
- (t = s()) == null || t.setAttribute("aria-describedby", l);
35
+ (t = s()) == null || t.setAttribute("aria-describedby", l.value);
36
36
  }
37
37
  function i() {
38
38
  var t;
@@ -41,18 +41,18 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
41
41
  function f() {
42
42
  e.anchor && i();
43
43
  }
44
- V(f);
44
+ B(f);
45
45
  function h(t, o) {
46
46
  o && i(), t && r && m();
47
47
  }
48
- return B(() => e.anchor, h), (t, o) => (a(), d(
48
+ return _(() => e.anchor, h), (t, o) => (a(), d(
49
49
  u,
50
50
  null,
51
51
  [
52
52
  p(t.$slots, "anchor", {
53
53
  props: { "aria-describedby": n(l) }
54
54
  }),
55
- _(n(L), {
55
+ k(n(Q), {
56
56
  id: n(l),
57
57
  modelValue: r.value,
58
58
  "onUpdate:modelValue": o[0] || (o[0] = (y) => r.value = y),
@@ -63,7 +63,7 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
63
63
  arrow: e.arrow,
64
64
  attach: e.attach,
65
65
  inline: e.inline,
66
- class: k(["q-tooltip", e.class]),
66
+ class: w(["q-tooltip", e.class]),
67
67
  delay: e.delay,
68
68
  disabled: e.disabled,
69
69
  placement: e.placement,
@@ -71,25 +71,25 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
71
71
  onEnter: m,
72
72
  onLeave: i
73
73
  }, {
74
- default: w(() => [
75
- A("div", z, [
74
+ default: A(() => [
75
+ x("div", H, [
76
76
  p(t.$slots, "default", {}, () => [
77
- e.icon ? (a(), x(
78
- n(D),
79
- E(M({ key: 0 }, e.icon)),
77
+ e.icon ? (a(), C(
78
+ n(L),
79
+ M(N({ key: 0 }, e.icon)),
80
80
  null,
81
81
  16
82
82
  /* FULL_PROPS */
83
- )) : C("v-if", !0),
83
+ )) : E("v-if", !0),
84
84
  e.html ? (a(), d("span", {
85
85
  key: 1,
86
86
  innerHTML: e.text
87
- }, null, 8, H)) : (a(), d(
87
+ }, null, 8, I)) : (a(), d(
88
88
  u,
89
89
  { key: 2 },
90
90
  [
91
- N(
92
- T(e.text),
91
+ T(
92
+ D(e.text),
93
93
  1
94
94
  /* TEXT */
95
95
  )
@@ -110,5 +110,5 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
110
110
  }
111
111
  });
112
112
  export {
113
- F as default
113
+ O as default
114
114
  };
@@ -11,6 +11,7 @@ export * from './QCollapsible';
11
11
  export * from './QColorPicker';
12
12
  export * from './QCombobox';
13
13
  export * from './QDateTimePicker';
14
+ export * from './QDefaultsProvider';
14
15
  export * from './QDialog';
15
16
  export * from './QDismissibleLayer';
16
17
  export * from './QDivider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
@@ -4,44 +4,45 @@ import { QBadge as x } from "./QBadge/index.js";
4
4
  import { QBadgeIndicator as i } from "./QBadgeIndicator/index.js";
5
5
  import { QButton as l } from "./QButton/index.js";
6
6
  import { QButtonGroup as n } from "./QButtonGroup/index.js";
7
- import { QCard as s } from "./QCard/index.js";
7
+ import { QCard as c } from "./QCard/index.js";
8
8
  import { QCarousel as L } from "./QCarousel/index.js";
9
- import { QCheckbox as I, QCheckboxLabel as P } from "./QCheckbox/index.js";
9
+ import { QCheckbox as P, QCheckboxLabel as I } from "./QCheckbox/index.js";
10
10
  import { QCollapsible as b } from "./QCollapsible/index.js";
11
11
  import { QColorPicker as v } from "./QColorPicker/index.js";
12
- import { QCombobox as S } from "./QCombobox/index.js";
13
- import { QDateTimePicker as D } from "./QDateTimePicker/index.js";
14
- import { QDialog as k, QDialogProvider as w } from "./QDialog/index.js";
15
- import { QDismissibleLayer as h } from "./QDismissibleLayer/index.js";
16
- import { QDivider as R } from "./QDivider/index.js";
17
- import { QDropdownMenu as O } from "./QDropdownMenu/index.js";
18
- import { QField as j } from "./QField/index.js";
19
- import { QFileUpload as z } from "./QFileUpload/index.js";
20
- import { QFocusTrap as H } from "./QFocusTrap/index.js";
21
- import { QCol as K, QContainer as N, QRow as V, QSpacer as W } from "./QGrid/index.js";
22
- import { QIcon as Y, QIconFont as Z, QIconImg as _, QIconSvg as $ } from "./QIcon/index.js";
23
- import { QInputGroup as ro } from "./QInputGroup/index.js";
24
- import { QLabel as to } from "./QLabel/index.js";
25
- import { QLineLoader as Qo } from "./QLineLoader/index.js";
26
- import { QList as xo, QListItem as fo, QListItemGroup as io } from "./QList/index.js";
27
- import { QMeter as lo } from "./QMeter/index.js";
28
- import { QOverlay as co } from "./QOverlay/index.js";
29
- import { QPasswordField as uo } from "./QPasswordField/index.js";
30
- import { QPopover as go } from "./QPopover/index.js";
31
- import { QPropertyList as Po, QPropertyListGroup as To, QPropertyListPanel as bo, QPropertyListRow as Co } from "./QPropertyList/index.js";
32
- import { QRadioButton as Go, QRadioGroup as So } from "./QRadioGroup/index.js";
33
- import { QSelect as Do } from "./QSelect/index.js";
34
- import { QSidebar as ko } from "./QSidebar/index.js";
35
- import { QSkeletonLoader as Bo } from "./QSkeletonLoader/index.js";
36
- import { QSpinnerLoader as Ao } from "./QSpinnerLoader/index.js";
37
- import { QSwitch as Mo } from "./QSwitch/index.js";
38
- import { QTextArea as Uo } from "./QTextArea/index.js";
39
- import { QTextField as qo } from "./QTextField/index.js";
40
- import { QThemeProvider as Eo } from "./QThemeProvider/index.js";
41
- import { QToast as Jo, QToaster as Ko } from "./QToast/index.js";
42
- import { QToggle as Vo } from "./QToggle/index.js";
43
- import { QToggleGroup as Xo, QToggleGroupItem as Yo } from "./QToggleGroup/index.js";
44
- import { QTooltip as _o } from "./QTooltip/index.js";
12
+ import { QCombobox as G } from "./QCombobox/index.js";
13
+ import { QDateTimePicker as y } from "./QDateTimePicker/index.js";
14
+ import { QDefaultsProvider as k } from "./QDefaultsProvider/index.js";
15
+ import { QDialog as B, QDialogProvider as h } from "./QDialog/index.js";
16
+ import { QDismissibleLayer as R } from "./QDismissibleLayer/index.js";
17
+ import { QDivider as O } from "./QDivider/index.js";
18
+ import { QDropdownMenu as j } from "./QDropdownMenu/index.js";
19
+ import { QField as z } from "./QField/index.js";
20
+ import { QFileUpload as H } from "./QFileUpload/index.js";
21
+ import { QFocusTrap as K } from "./QFocusTrap/index.js";
22
+ import { QCol as V, QContainer as W, QRow as X, QSpacer as Y } from "./QGrid/index.js";
23
+ import { QIcon as _, QIconFont as $, QIconImg as oo, QIconSvg as ro } from "./QIcon/index.js";
24
+ import { QInputGroup as to } from "./QInputGroup/index.js";
25
+ import { QLabel as Qo } from "./QLabel/index.js";
26
+ import { QLineLoader as xo } from "./QLineLoader/index.js";
27
+ import { QList as io, QListItem as ao, QListItemGroup as lo } from "./QList/index.js";
28
+ import { QMeter as so } from "./QMeter/index.js";
29
+ import { QOverlay as uo } from "./QOverlay/index.js";
30
+ import { QPasswordField as go } from "./QPasswordField/index.js";
31
+ import { QPopover as Io } from "./QPopover/index.js";
32
+ import { QPropertyList as bo, QPropertyListGroup as Co, QPropertyListPanel as vo, QPropertyListRow as Do } from "./QPropertyList/index.js";
33
+ import { QRadioButton as So, QRadioGroup as yo } from "./QRadioGroup/index.js";
34
+ import { QSelect as ko } from "./QSelect/index.js";
35
+ import { QSidebar as Bo } from "./QSidebar/index.js";
36
+ import { QSkeletonLoader as Ao } from "./QSkeletonLoader/index.js";
37
+ import { QSpinnerLoader as Mo } from "./QSpinnerLoader/index.js";
38
+ import { QSwitch as Uo } from "./QSwitch/index.js";
39
+ import { QTextArea as qo } from "./QTextArea/index.js";
40
+ import { QTextField as Eo } from "./QTextField/index.js";
41
+ import { QThemeProvider as Jo } from "./QThemeProvider/index.js";
42
+ import { QToast as No, QToaster as Vo } from "./QToast/index.js";
43
+ import { QToggle as Xo } from "./QToggle/index.js";
44
+ import { QToggleGroup as Zo, QToggleGroupItem as _o } from "./QToggleGroup/index.js";
45
+ import { QTooltip as or } from "./QTooltip/index.js";
45
46
  export {
46
47
  e as QAccordion,
47
48
  t as QAccordionItem,
@@ -50,58 +51,59 @@ export {
50
51
  i as QBadgeIndicator,
51
52
  l as QButton,
52
53
  n as QButtonGroup,
53
- s as QCard,
54
+ c as QCard,
54
55
  L as QCarousel,
55
- I as QCheckbox,
56
- P as QCheckboxLabel,
57
- K as QCol,
56
+ P as QCheckbox,
57
+ I as QCheckboxLabel,
58
+ V as QCol,
58
59
  b as QCollapsible,
59
60
  v as QColorPicker,
60
- S as QCombobox,
61
- N as QContainer,
62
- D as QDateTimePicker,
63
- k as QDialog,
64
- w as QDialogProvider,
65
- h as QDismissibleLayer,
66
- R as QDivider,
67
- O as QDropdownMenu,
68
- j as QField,
69
- z as QFileUpload,
70
- H as QFocusTrap,
71
- Y as QIcon,
72
- Z as QIconFont,
73
- _ as QIconImg,
74
- $ as QIconSvg,
75
- ro as QInputGroup,
76
- to as QLabel,
77
- Qo as QLineLoader,
78
- xo as QList,
79
- fo as QListItem,
80
- io as QListItemGroup,
81
- lo as QMeter,
82
- co as QOverlay,
83
- uo as QPasswordField,
84
- go as QPopover,
85
- Po as QPropertyList,
86
- To as QPropertyListGroup,
87
- bo as QPropertyListPanel,
88
- Co as QPropertyListRow,
89
- Go as QRadioButton,
90
- So as QRadioGroup,
91
- V as QRow,
92
- Do as QSelect,
93
- ko as QSidebar,
94
- Bo as QSkeletonLoader,
95
- W as QSpacer,
96
- Ao as QSpinnerLoader,
97
- Mo as QSwitch,
98
- Uo as QTextArea,
99
- qo as QTextField,
100
- Eo as QThemeProvider,
101
- Jo as QToast,
102
- Ko as QToaster,
103
- Vo as QToggle,
104
- Xo as QToggleGroup,
105
- Yo as QToggleGroupItem,
106
- _o as QTooltip
61
+ G as QCombobox,
62
+ W as QContainer,
63
+ y as QDateTimePicker,
64
+ k as QDefaultsProvider,
65
+ B as QDialog,
66
+ h as QDialogProvider,
67
+ R as QDismissibleLayer,
68
+ O as QDivider,
69
+ j as QDropdownMenu,
70
+ z as QField,
71
+ H as QFileUpload,
72
+ K as QFocusTrap,
73
+ _ as QIcon,
74
+ $ as QIconFont,
75
+ oo as QIconImg,
76
+ ro as QIconSvg,
77
+ to as QInputGroup,
78
+ Qo as QLabel,
79
+ xo as QLineLoader,
80
+ io as QList,
81
+ ao as QListItem,
82
+ lo as QListItemGroup,
83
+ so as QMeter,
84
+ uo as QOverlay,
85
+ go as QPasswordField,
86
+ Io as QPopover,
87
+ bo as QPropertyList,
88
+ Co as QPropertyListGroup,
89
+ vo as QPropertyListPanel,
90
+ Do as QPropertyListRow,
91
+ So as QRadioButton,
92
+ yo as QRadioGroup,
93
+ X as QRow,
94
+ ko as QSelect,
95
+ Bo as QSidebar,
96
+ Ao as QSkeletonLoader,
97
+ Y as QSpacer,
98
+ Mo as QSpinnerLoader,
99
+ Uo as QSwitch,
100
+ qo as QTextArea,
101
+ Eo as QTextField,
102
+ Jo as QThemeProvider,
103
+ No as QToast,
104
+ Vo as QToaster,
105
+ Xo as QToggle,
106
+ Zo as QToggleGroup,
107
+ _o as QToggleGroupItem,
108
+ or as QTooltip
107
109
  };
@@ -1,4 +1,4 @@
1
- import { ComputedRef } from 'vue';
1
+ import { ComputedRef, MaybeRefOrGetter } from 'vue';
2
2
  export declare const DEFAULTS_SYMBOL = "q-defaults";
3
3
  export type Defaults = Record<string | symbol, ComponentDefaults>;
4
4
  export type ComponentDefaults = Record<string | symbol, unknown>;
@@ -10,7 +10,7 @@ export declare function useDefaults(): ComputedRef<ComponentDefaults | undefined
10
10
  *
11
11
  * @param defaults - The default values to be provided or updated.
12
12
  */
13
- export declare function provideDefaults(defaults: Defaults): void;
13
+ export declare function provideDefaults(defaults: MaybeRefOrGetter<Defaults>): void;
14
14
  /**
15
15
  * Function to inject default values using the Vue.js `inject` function.
16
16
  * It retrieves the default values from the specified symbol and ensures
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAOtC,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEhE,wBAAgB,WAAW,IAAI,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAgBxE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAYxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,CAMtD"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEhE,wBAAgB,WAAW,IAAI,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAgBxE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAY1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,CAMtD"}
@@ -1,30 +1,30 @@
1
- import { getCurrentInstance as d, computed as f, ref as m, provide as p, inject as v } from "vue";
1
+ import { getCurrentInstance as d, computed as a, ref as m, toValue as p, provide as v, inject as D } from "vue";
2
2
  import { isEmpty as s } from "../utils/isEmpty.js";
3
- import { merge as a } from "../utils/merge.js";
3
+ import { merge as f } from "../utils/merge.js";
4
4
  const i = "q-defaults";
5
- function E() {
6
- var r, u;
5
+ function I() {
6
+ var u, r;
7
7
  const e = d();
8
8
  if (!e)
9
9
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
10
10
  const t = e.type.name ?? e.type.__name;
11
11
  if (!t) throw new Error("[Quidgest UI] Could not determine component name");
12
- const n = l(), o = (r = n.value) == null ? void 0 : r.Global, c = (u = n.value) == null ? void 0 : u[t];
13
- return f(() => a(o, c));
12
+ const n = l(), o = (u = n.value) == null ? void 0 : u.Global, c = (r = n.value) == null ? void 0 : r[t];
13
+ return a(() => f(o, c));
14
14
  }
15
- function I(e) {
15
+ function U(e) {
16
16
  if (s(e)) return;
17
- const t = l(), n = m(e), o = f(() => s(n.value) ? t.value : a(t.value, n.value));
18
- p(i, o);
17
+ const t = l(), n = m(p(e)), o = a(() => s(n.value) ? t.value : f(t.value, n.value));
18
+ v(i, o);
19
19
  }
20
20
  function l() {
21
- const e = v(i, void 0);
21
+ const e = D(i, void 0);
22
22
  if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
23
23
  return e;
24
24
  }
25
25
  export {
26
26
  i as DEFAULTS_SYMBOL,
27
27
  l as injectDefaults,
28
- I as provideDefaults,
29
- E as useDefaults
28
+ U as provideDefaults,
29
+ I as useDefaults
30
30
  };