@quidgest/ui 0.14.6 → 0.14.8

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 (126) hide show
  1. package/dist/ui.css +1 -6
  2. package/dist/ui.esm.js +1202 -1060
  3. package/dist/ui.js +43 -6
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +186 -174
  6. package/dist/ui.scss +2 -6
  7. package/esm/components/QAccordion/QAccordion.d.ts +7 -6
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.d.ts +3 -2
  10. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  11. package/esm/components/QBadge/QBadge.vue.js +11 -11
  12. package/esm/components/QButton/QButton.d.ts +3 -2
  13. package/esm/components/QButton/QButton.d.ts.map +1 -1
  14. package/esm/components/QButton/QButton.vue.js +14 -14
  15. package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
  16. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  17. package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
  18. package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
  19. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  20. package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
  21. package/esm/components/QCard/QCard.d.ts +2 -1
  22. package/esm/components/QCard/QCard.d.ts.map +1 -1
  23. package/esm/components/QCard/QCard.vue.js +30 -30
  24. package/esm/components/QCheckbox/QCheckbox.d.ts +21 -5
  25. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  26. package/esm/components/QCheckbox/QCheckbox.vue.js +62 -45
  27. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +21 -0
  28. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -0
  29. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -0
  30. package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +4 -0
  31. package/esm/components/QCheckbox/types.d.ts +7 -5
  32. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  33. package/esm/components/QCollapsible/QCollapsible.d.ts +6 -5
  34. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  35. package/esm/components/QCollapsible/QCollapsible.vue.js +25 -25
  36. package/esm/components/QCombobox/QCombobox.d.ts +31 -30
  37. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  38. package/esm/components/QCombobox/QCombobox.vue.js +80 -80
  39. package/esm/components/QDialog/QDialog.d.ts +6 -5
  40. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  41. package/esm/components/QDialog/QDialog.vue.js +7 -7
  42. package/esm/components/QField/QField.d.ts +2 -1
  43. package/esm/components/QField/QField.d.ts.map +1 -1
  44. package/esm/components/QField/QField.vue.js +9 -9
  45. package/esm/components/QIcon/InlineSvg.d.ts +1 -1
  46. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  47. package/esm/components/QIcon/QIcon.vue.js +9 -9
  48. package/esm/components/QIcon/QIconFont.d.ts +1 -1
  49. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  50. package/esm/components/QIcon/QIconFont.vue.js +5 -5
  51. package/esm/components/QIcon/QIconImg.d.ts +1 -1
  52. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  53. package/esm/components/QIcon/QIconImg.vue.js +5 -5
  54. package/esm/components/QIcon/QIconSvg.d.ts +2 -2
  55. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  56. package/esm/components/QIcon/QIconSvg.vue.js +17 -17
  57. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
  58. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  59. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  60. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
  61. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  62. package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
  63. package/esm/components/QList/QList.d.ts +6 -5
  64. package/esm/components/QList/QList.d.ts.map +1 -1
  65. package/esm/components/QList/QList.vue.js +1 -1
  66. package/esm/components/QList/QListItem.d.ts +3 -2
  67. package/esm/components/QList/QListItem.d.ts.map +1 -1
  68. package/esm/components/QList/QListItem.vue.js +18 -18
  69. package/esm/components/QList/QListItemGroup.d.ts +3 -2
  70. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  71. package/esm/components/QOverlay/QOverlay.d.ts +6 -5
  72. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  73. package/esm/components/QOverlay/QOverlay.vue.js +148 -138
  74. package/esm/components/QPopover/QPopover.d.ts +6 -5
  75. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  76. package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
  77. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  78. package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
  79. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
  80. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  81. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
  82. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  83. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
  84. package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
  85. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  86. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
  87. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
  88. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
  89. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
  90. package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
  91. package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
  92. package/esm/components/QRemoveScrollBar/constants.js +8 -0
  93. package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
  94. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
  95. package/esm/components/QRemoveScrollBar/index.js +6 -0
  96. package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
  97. package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
  98. package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
  99. package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
  100. package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
  101. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
  102. package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
  103. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
  104. package/esm/components/QSelect/QSelect.d.ts +11 -10
  105. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  106. package/esm/components/QSelect/QSelect.vue.js +33 -33
  107. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
  108. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  109. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
  110. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
  111. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  112. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
  113. package/esm/components/QTextField/QTextField.d.ts +6 -5
  114. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  115. package/esm/components/QTextField/QTextField.vue.js +15 -15
  116. package/esm/components/QThemeProvider/QThemeProvider.d.ts +3 -2
  117. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  118. package/esm/components/QTooltip/QTooltip.d.ts +6 -5
  119. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  120. package/esm/components/QTooltip/QTooltip.vue.js +15 -15
  121. package/esm/composables/defaults.js +5 -5
  122. package/esm/composables/group.js +8 -8
  123. package/esm/composables/overlay.js +11 -11
  124. package/esm/framework.js +2 -2
  125. package/esm/utils/color.js +6 -6
  126. package/package.json +31 -30
@@ -1,15 +1,15 @@
1
- import { defineComponent as l, computed as n, openBlock as t, createElementBlock as a, normalizeClass as r, normalizeStyle as c } from "vue";
2
- const m = /* @__PURE__ */ l({
1
+ import { defineComponent as l, computed as o, openBlock as t, createElementBlock as a, normalizeClass as r, normalizeStyle as c } from "vue";
2
+ const u = /* @__PURE__ */ l({
3
3
  __name: "QSpinnerLoader",
4
4
  props: {
5
5
  size: { default: 48 },
6
6
  class: { default: void 0 }
7
7
  },
8
- setup(o) {
9
- const e = o, s = n(() => ({
8
+ setup(n) {
9
+ const e = n, s = o(() => ({
10
10
  "font-size": e.size !== 48 ? `${e.size}px` : void 0
11
11
  }));
12
- return (i, p) => (t(), a(
12
+ return (i, d) => (t(), a(
13
13
  "div",
14
14
  {
15
15
  class: r(["q-spinner-loader", e.class]),
@@ -22,5 +22,5 @@ const m = /* @__PURE__ */ l({
22
22
  }
23
23
  });
24
24
  export {
25
- m as default
25
+ u as default
26
26
  };
@@ -1,9 +1,10 @@
1
1
  import { QTextFieldProps } from './types';
2
- declare let __VLS_typeProps: QTextFieldProps;
2
+ type __VLS_Props = QTextFieldProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: string;
5
- } & typeof __VLS_typeProps;
5
+ } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: {
8
9
  "label.prepend"?(_: {}): any;
9
10
  "label.append"?(_: {}): any;
@@ -88,16 +89,16 @@ declare function __VLS_template(): {
88
89
  }) | null;
89
90
  inputRef: HTMLInputElement;
90
91
  };
91
- attrs: Partial<{}>;
92
+ rootEl: any;
92
93
  };
93
94
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
94
95
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
95
96
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
96
97
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
97
98
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
98
- "update:modelValue": (modelValue: string) => any;
99
+ "update:modelValue": (value: string) => any;
99
100
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
100
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
101
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
101
102
  }>, {
102
103
  size: import('../QField').QFieldSize;
103
104
  class: string | unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAgGC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ/C,QAAA,IAAI,eAAe,EAAG,eAAe,CAAC;AAqDtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;;iCA2Ec,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA+D+phB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;WApDvyhB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AA8CA;AAgGC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ/C,KAAK,WAAW,GAAG,eAAe,CAAC;AAsDnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;iCAdb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiEu9gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAlD5mhB;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as b, mergeModels as v, useModel as h, ref as f, computed as u, openBlock as q, createBlock as $, unref as o, normalizeClass as k, createSlots as g, withCtx as d, renderSlot as a, withDirectives as x, createElementVNode as R, mergeProps as z, vModelDynamic as B } from "vue";
1
+ import { defineComponent as b, mergeModels as h, useModel as q, ref as f, computed as u, openBlock as $, createBlock as k, unref as n, normalizeClass as g, createSlots as v, withCtx as d, renderSlot as a, withDirectives as x, createElementVNode as R, mergeProps as z, vModelDynamic as B } from "vue";
2
2
  import { QField as V } from "../QField/index.js";
3
3
  import { useId as M } from "../../composables/uid.js";
4
4
  const C = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], L = /* @__PURE__ */ b({
5
5
  inheritAttrs: !1,
6
6
  __name: "QTextField",
7
- props: /* @__PURE__ */ v({
7
+ props: /* @__PURE__ */ h({
8
8
  id: { default: void 0 },
9
9
  placeholder: { default: "" },
10
10
  label: { default: "" },
@@ -21,27 +21,27 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
21
21
  modelModifiers: {}
22
22
  }),
23
23
  emits: ["update:modelValue"],
24
- setup(r, { expose: m }) {
25
- const e = r, t = h(r, "modelValue"), s = M(e.id), i = f(null), n = f(null), y = u(
24
+ setup(o, { expose: m }) {
25
+ const e = o, r = q(o, "modelValue"), t = M(e.id), s = f(null), i = f(null), y = u(
26
26
  () => e.readonly || e.disabled ? "" : e.placeholder
27
27
  );
28
28
  return m({
29
29
  fieldRef: u(() => {
30
30
  var l;
31
- return (l = i.value) == null ? void 0 : l.fieldRef;
31
+ return (l = s.value) == null ? void 0 : l.fieldRef;
32
32
  }),
33
- inputRef: n
34
- }), (l, p) => (q(), $(o(V), {
33
+ inputRef: i
34
+ }), (l, p) => ($(), k(n(V), {
35
35
  ref_key: "fieldRef",
36
- ref: i,
37
- class: k(["q-text-field", e.class]),
38
- for: o(s),
36
+ ref: s,
37
+ class: g(["q-text-field", e.class]),
38
+ for: n(t),
39
39
  label: e.label,
40
40
  size: e.size,
41
41
  readonly: e.readonly,
42
42
  disabled: e.disabled,
43
43
  required: e.required
44
- }, g({
44
+ }, v({
45
45
  "label.prepend": d(() => [
46
46
  a(l.$slots, "label.prepend")
47
47
  ]),
@@ -50,10 +50,10 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
50
50
  ]),
51
51
  default: d(() => [
52
52
  x(R("input", z({
53
- "onUpdate:modelValue": p[0] || (p[0] = (c) => t.value = c),
53
+ id: n(t),
54
54
  ref_key: "inputRef",
55
- ref: n,
56
- id: o(s),
55
+ ref: i,
56
+ "onUpdate:modelValue": p[0] || (p[0] = (c) => r.value = c),
57
57
  class: "q-text-field__input",
58
58
  type: e.type,
59
59
  role: e.role,
@@ -63,7 +63,7 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
63
63
  disabled: e.disabled,
64
64
  maxlength: e.maxLength
65
65
  }, l.$attrs), null, 16, C), [
66
- [B, t.value]
66
+ [B, r.value]
67
67
  ])
68
68
  ]),
69
69
  _: 2
@@ -1,13 +1,14 @@
1
1
  import { QThemeProviderProps } from './types';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
7
- attrs: Partial<{}>;
8
+ rootEl: HTMLDivElement;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<QThemeProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QThemeProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_component: import('vue').DefineComponent<QThemeProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QThemeProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
13
  export default _default;
13
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAeC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAWnD,iBAAS,cAAc;;yBA2BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kTAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,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":"AAKA;AAeC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAYnD,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,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;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { QTooltipProps } from './types';
2
- declare let __VLS_typeProps: QTooltipProps;
2
+ type __VLS_Props = QTooltipProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: boolean;
5
- } & typeof __VLS_typeProps;
5
+ } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: {
8
9
  anchor?(_: {
9
10
  props: {
@@ -13,13 +14,13 @@ declare function __VLS_template(): {
13
14
  default?(_: {}): any;
14
15
  };
15
16
  refs: {};
16
- attrs: Partial<{}>;
17
+ rootEl: any;
17
18
  };
18
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- "update:modelValue": (modelValue: boolean) => any;
21
+ "update:modelValue": (value: boolean) => any;
21
22
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
- "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
24
  }>, {
24
25
  class: string | unknown[];
25
26
  html: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAuEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7C,QAAA,IAAI,eAAe,EAAG,aAAa,CAAC;AAsCpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;;;;;;YAoDK,GAAG;yBACF,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAkCA;AAuEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7C,KAAK,WAAW,GAAG,aAAa,CAAC;AAuCjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;;;;;YATtB,GAAG;yBACF,GAAG;;;;EAa/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, mergeModels as p, useModel as m, openBlock as a, createElementBlock as o, Fragment as d, renderSlot as i, unref as t, createVNode as u, normalizeClass as f, withCtx as h, createBlock as y, normalizeProps as g, mergeProps as v, createCommentVNode as B, createTextVNode as b, toDisplayString as k } from "vue";
1
+ import { defineComponent as s, mergeModels as p, useModel as u, openBlock as a, createElementBlock as l, Fragment as d, renderSlot as i, unref as t, createVNode as m, normalizeClass as f, withCtx as h, createBlock as y, normalizeProps as g, mergeProps as B, createCommentVNode as b, createTextVNode as v, toDisplayString as k } from "vue";
2
2
  import { QOverlay as V } from "../QOverlay/index.js";
3
3
  import { QIcon as w } from "../QIcon/index.js";
4
4
  import { useId as x } from "../../composables/uid.js";
@@ -24,21 +24,21 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
24
24
  modelModifiers: {}
25
25
  }),
26
26
  emits: ["update:modelValue"],
27
- setup(l) {
28
- const e = l, c = m(l, "modelValue"), r = x(e.id);
29
- return (n, _) => (a(), o(
27
+ setup(o) {
28
+ const e = o, c = u(o, "modelValue"), n = x(e.id);
29
+ return (r, _) => (a(), l(
30
30
  d,
31
31
  null,
32
32
  [
33
- i(n.$slots, "anchor", {
34
- props: { "aria-describedby": t(r) }
33
+ i(r.$slots, "anchor", {
34
+ props: { "aria-describedby": t(n) }
35
35
  }),
36
- u(t(V), {
36
+ m(t(V), {
37
+ id: t(n),
37
38
  "model-value": c.value,
38
39
  anchor: e.anchor,
39
40
  role: "tooltip",
40
41
  "non-modal": "",
41
- id: t(r),
42
42
  appearance: e.appearance,
43
43
  arrow: e.arrow,
44
44
  attach: e.attach,
@@ -50,22 +50,22 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
50
50
  trigger: e.trigger
51
51
  }, {
52
52
  default: h(() => [
53
- i(n.$slots, "default", {}, () => [
53
+ i(r.$slots, "default", {}, () => [
54
54
  e.icon ? (a(), y(
55
55
  t(w),
56
- g(v({ key: 0 }, e.icon)),
56
+ g(B({ key: 0 }, e.icon)),
57
57
  null,
58
58
  16
59
59
  /* FULL_PROPS */
60
- )) : B("v-if", !0),
61
- e.html ? (a(), o("span", {
60
+ )) : b("v-if", !0),
61
+ e.html ? (a(), l("span", {
62
62
  key: 1,
63
63
  innerHTML: e.text
64
- }, null, 8, M)) : (a(), o(
64
+ }, null, 8, M)) : (a(), l(
65
65
  d,
66
66
  { key: 2 },
67
67
  [
68
- b(
68
+ v(
69
69
  k(e.text),
70
70
  1
71
71
  /* TEXT */
@@ -78,7 +78,7 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
78
78
  ]),
79
79
  _: 3
80
80
  /* FORWARDED */
81
- }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
81
+ }, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
82
82
  ],
83
83
  64
84
84
  /* STABLE_FRAGMENT */
@@ -1,20 +1,20 @@
1
1
  import { isEmpty as s } from "../utils/isEmpty.js";
2
- import { merge as a } from "../utils/merge.js";
3
- import { getCurrentInstance as m, computed as f, ref as d, provide as p, inject as v } from "vue";
2
+ import { merge as f } from "../utils/merge.js";
3
+ import { getCurrentInstance as d, computed as a, ref as m, provide as p, inject as v } from "vue";
4
4
  const i = "q-defaults";
5
5
  function E() {
6
6
  var r, u;
7
- const e = m();
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
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));
13
+ return a(() => f(o, c));
14
14
  }
15
15
  function I(e) {
16
16
  if (s(e)) return;
17
- const t = l(), n = d(e), o = f(() => s(n.value) ? t.value : a(t.value, n.value));
17
+ const t = l(), n = m(e), o = a(() => s(n.value) ? t.value : f(t.value, n.value));
18
18
  p(i, o);
19
19
  }
20
20
  function l() {
@@ -1,15 +1,15 @@
1
- import { ref as c, computed as t, watch as o, provide as s, inject as n } from "vue";
1
+ import { ref as c, computed as t, watch as n, provide as s, inject as f } from "vue";
2
2
  const i = "q-group";
3
3
  function p(u) {
4
- var v, l;
4
+ var l, v;
5
5
  const e = {
6
- active: c(((v = u.active) == null ? void 0 : v.value) ?? ((l = u.multiple) == null ? void 0 : l.value) ? [] : null),
6
+ active: c(((l = u.active) == null ? void 0 : l.value) ?? ((v = u.multiple) == null ? void 0 : v.value) ? [] : null),
7
7
  multiple: t(() => {
8
8
  var a;
9
9
  return ((a = u.multiple) == null ? void 0 : a.value) || !1;
10
10
  })
11
11
  };
12
- return o(
12
+ return n(
13
13
  () => e.multiple.value,
14
14
  (a) => {
15
15
  a && e.active.value ? e.active.value = [e.active.value] : a ? e.active.value = [] : Array.isArray(e.active.value) && e.active.value.length === 1 ? e.active.value = e.active.value[0] : e.active.value = null;
@@ -17,15 +17,15 @@ function p(u) {
17
17
  ), s(i, e), e;
18
18
  }
19
19
  function g(u) {
20
- const e = n(i, void 0);
20
+ const e = f(i, void 0);
21
21
  if (!e) return;
22
- const v = t(() => {
22
+ const l = t(() => {
23
23
  var a;
24
24
  return Array.isArray(e.active.value) ? (a = e.active.value) == null ? void 0 : a.includes(u) : e.active.value === u;
25
25
  });
26
- return { isActive: v, toggle: () => {
26
+ return { isActive: l, toggle: () => {
27
27
  var a;
28
- Array.isArray(e.active.value) ? v.value ? e.active.value = (a = e.active.value) == null ? void 0 : a.filter((r) => r !== u) : e.active.value.push(u) : e.active.value = u;
28
+ Array.isArray(e.active.value) ? l.value ? e.active.value = (a = e.active.value) == null ? void 0 : a.filter((r) => r !== u) : e.active.value.push(u) : e.active.value = u;
29
29
  } };
30
30
  }
31
31
  export {
@@ -1,10 +1,10 @@
1
1
  function M(t, i, n, e) {
2
- const d = (e == null ? void 0 : e.offset) ?? 0, o = (e == null ? void 0 : e.placement) ?? "bottom", g = t.getBoundingClientRect(), s = i.getBoundingClientRect(), u = n == null ? void 0 : n.getBoundingClientRect(), r = b(g, s, o, d), h = k(g, s, r), f = C(h, r, d), m = p(f, s, r);
2
+ const d = (e == null ? void 0 : e.offset) ?? 0, o = (e == null ? void 0 : e.placement) ?? "bottom", u = t.getBoundingClientRect(), s = i.getBoundingClientRect(), g = n == null ? void 0 : n.getBoundingClientRect(), r = b(u, s, o, d), h = k(u, s, r), f = C(h, r, d), m = p(f, s, r);
3
3
  let a;
4
4
  if (e != null && e.arrow) {
5
- if (!u)
5
+ if (!g)
6
6
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
7
- a = A(m, g, s, u, r);
7
+ a = A(m, u, s, g, r);
8
8
  }
9
9
  return { overlayCoords: m, arrowCoords: a, placement: r };
10
10
  }
@@ -16,13 +16,13 @@ function b(t, i, n, e) {
16
16
  bottom: "top",
17
17
  left: "right",
18
18
  right: "left"
19
- }[o], u = c(
19
+ }[o], g = c(
20
20
  t,
21
21
  i,
22
22
  s,
23
23
  e
24
24
  );
25
- if (x(u))
25
+ if (x(g))
26
26
  return n;
27
27
  const r = O(n);
28
28
  return r ? `${s}-${r}` : s;
@@ -30,7 +30,7 @@ function b(t, i, n, e) {
30
30
  return n;
31
31
  }
32
32
  function p(t, i, n) {
33
- const e = l(n), d = (g, s, u) => Math.min(Math.max(g, s), u), o = { ...t };
33
+ const e = l(n), d = (u, s, g) => Math.min(Math.max(u, s), g), o = { ...t };
34
34
  return e === "x" ? o.x = d(t.x, 8, window.innerWidth - i.width - 8) : o.y = d(t.y, 8, window.innerHeight - i.height - 8), o;
35
35
  }
36
36
  function C(t, i, n) {
@@ -42,13 +42,13 @@ function C(t, i, n) {
42
42
  }
43
43
  function A(t, i, n, e, d) {
44
44
  if (l(d) === "y") {
45
- const g = i.top + i.height / 2, s = t.y + n.height / 2, u = s - g, r = n.height / 2 - u - e.height / 2 + 2;
45
+ const u = i.top + i.height / 2, s = t.y + n.height / 2, g = s - u, r = n.height / 2 - g - e.height / 2 + 2;
46
46
  if (r > 0 && r < n.height - e.height)
47
47
  return {
48
48
  y: r
49
49
  };
50
50
  } else {
51
- const g = i.left + i.width / 2, s = t.x + n.width / 2, u = s - g, r = n.width / 2 - u - e.width / 2 + 2;
51
+ const u = i.left + i.width / 2, s = t.x + n.width / 2, g = s - u, r = n.width / 2 - g - e.width / 2 + 2;
52
52
  if (r > 0 && r < n.width - e.width)
53
53
  return {
54
54
  x: r
@@ -56,7 +56,7 @@ function A(t, i, n, e, d) {
56
56
  }
57
57
  }
58
58
  function k(t, i, n) {
59
- const [e, d] = n.split("-"), o = t.x + t.width / 2 - i.width / 2, g = t.y + t.height / 2 - i.height / 2;
59
+ const [e, d] = n.split("-"), o = t.x + t.width / 2 - i.width / 2, u = t.y + t.height / 2 - i.height / 2;
60
60
  let s;
61
61
  switch (e) {
62
62
  case "top":
@@ -66,10 +66,10 @@ function k(t, i, n) {
66
66
  s = { x: o, y: t.y + t.height };
67
67
  break;
68
68
  case "left":
69
- s = { x: t.x - i.width, y: g };
69
+ s = { x: t.x - i.width, y: u };
70
70
  break;
71
71
  case "right":
72
- s = { x: t.x + t.width, y: g };
72
+ s = { x: t.x + t.width, y: u };
73
73
  break;
74
74
  default:
75
75
  throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
package/esm/framework.js CHANGED
@@ -3,7 +3,7 @@ import { THEME_SYMBOL as i } from "./composables/theme.js";
3
3
  import { defaultLightColorScheme as a, defaultDarkColorScheme as h } from "./templates/theme.js";
4
4
  import { ref as n, watch as f } from "vue";
5
5
  import { generateRootStyle as d } from "./utils/theme.js";
6
- function E(m = {}) {
6
+ function v(m = {}) {
7
7
  return { install: (o) => {
8
8
  const t = m.components || {};
9
9
  for (const l in t)
@@ -43,5 +43,5 @@ function p(m) {
43
43
  s.className = t.join(" "), s.classList.add(`q-theme--${m}`);
44
44
  }
45
45
  export {
46
- E as createFramework
46
+ v as createFramework
47
47
  };
@@ -1,7 +1,7 @@
1
- function o(t) {
1
+ function u(t) {
2
2
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
3
3
  }
4
- function u(t) {
4
+ function o(t) {
5
5
  const n = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
6
6
  if (n) {
7
7
  const s = parseInt(n[1], 10), e = parseInt(n[2], 10), r = parseInt(n[3], 10);
@@ -9,12 +9,12 @@ function u(t) {
9
9
  }
10
10
  }
11
11
  function d(t) {
12
- if (o(t)) {
12
+ if (u(t)) {
13
13
  t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
14
14
  const n = parseInt(t.slice(1, 3), 16), s = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
15
15
  return { r: n, g: s, b: e };
16
16
  } else {
17
- const n = u(t);
17
+ const n = o(t);
18
18
  if (n) return n;
19
19
  }
20
20
  throw new Error("Invalid color format");
@@ -51,8 +51,8 @@ function g(t) {
51
51
  }
52
52
  export {
53
53
  g as getContrastingColor,
54
- o as isValidHex,
54
+ u as isValidHex,
55
55
  d as parseColor,
56
56
  b as rgbToHsl,
57
- u as tryParseRgb
57
+ o as tryParseRgb
58
58
  };
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.14.6",
4
+ "version": "0.14.8",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",
@@ -45,52 +45,53 @@
45
45
  "./*": "./*"
46
46
  },
47
47
  "devDependencies": {
48
- "@fortawesome/fontawesome-free": "^6.7.1",
49
- "@rollup/plugin-node-resolve": "^15.3.0",
48
+ "@fortawesome/fontawesome-free": "^6.7.2",
49
+ "@rollup/plugin-node-resolve": "^16.0.0",
50
50
  "@rollup/plugin-terser": "^0.4.4",
51
- "@storybook/addon-essentials": "^8.4.6",
52
- "@storybook/addon-interactions": "^8.4.6",
53
- "@storybook/addon-links": "^8.4.6",
54
- "@storybook/blocks": "^8.4.6",
55
- "@storybook/manager-api": "^8.4.6",
56
- "@storybook/test": "^8.4.6",
57
- "@storybook/theming": "^8.4.6",
58
- "@storybook/vue3": "^8.4.6",
59
- "@storybook/vue3-vite": "^8.4.6",
51
+ "@storybook/addon-essentials": "^8.4.7",
52
+ "@storybook/addon-interactions": "^8.4.7",
53
+ "@storybook/addon-links": "^8.4.7",
54
+ "@storybook/blocks": "^8.4.7",
55
+ "@storybook/manager-api": "^8.4.7",
56
+ "@storybook/test": "^8.4.7",
57
+ "@storybook/theming": "^8.4.7",
58
+ "@storybook/vue3": "^8.4.7",
59
+ "@storybook/vue3-vite": "^8.4.7",
60
60
  "@tsconfig/node20": "^20.1.4",
61
- "@types/node": "^22.10.1",
62
- "@typescript-eslint/eslint-plugin": "^7.18.0",
63
- "@typescript-eslint/parser": "^7.18.0",
61
+ "@types/node": "^22.10.5",
62
+ "@typescript-eslint/eslint-plugin": "^8.19.0",
63
+ "@typescript-eslint/parser": "^8.19.0",
64
64
  "@vitejs/plugin-vue": "^5.2.1",
65
65
  "@vitest/coverage-v8": "^2.1.8",
66
+ "@vitest/eslint-plugin": "^1.1.24",
66
67
  "@vitest/ui": "^2.1.8",
67
- "@vue/eslint-config-typescript": "^12.0.0",
68
+ "@vue/eslint-config-prettier": "^10.1.0",
69
+ "@vue/eslint-config-typescript": "^14.2.0",
68
70
  "@vue/test-utils": "^2.4.6",
69
71
  "@vue/tsconfig": "^0.7.0",
70
72
  "acorn-walk": "^8.3.4",
71
73
  "autoprefixer": "^10.4.20",
72
74
  "cssnano": "^7.0.6",
73
- "eslint": "^8.57.1",
74
- "eslint-config-prettier": "^9.1.0",
75
+ "eslint": "^9.17.0",
75
76
  "eslint-plugin-prettier": "^5.2.1",
76
- "eslint-plugin-storybook": "^0.11.1",
77
+ "eslint-plugin-storybook": "^0.11.2",
77
78
  "eslint-plugin-vue": "^9.32.0",
78
- "happy-dom": "^15.11.7",
79
+ "happy-dom": "^16.3.0",
79
80
  "husky": "^9.1.7",
80
- "lint-staged": "^15.2.10",
81
+ "lint-staged": "^15.3.0",
81
82
  "postcss": "^8.4.49",
82
- "prettier": "^3.4.1",
83
+ "prettier": "^3.4.2",
83
84
  "rimraf": "^6.0.1",
84
- "sass": "^1.81.1",
85
- "storybook": "^8.4.6",
86
- "stylelint": "^16.11.0",
85
+ "sass": "^1.83.1",
86
+ "storybook": "^8.4.7",
87
+ "stylelint": "^16.12.0",
87
88
  "stylelint-config-sass-guidelines": "^12.1.0",
88
89
  "typescript": "~5.6.3",
89
- "vite": "^6.0.2",
90
- "vite-plugin-dts": "^4.3.0",
90
+ "vite": "^6.0.7",
91
+ "vite-plugin-dts": "^4.4.0",
91
92
  "vitest": "^2.1.8",
92
93
  "vue-eslint-parser": "^9.4.3",
93
- "vue-tsc": "^2.1.10"
94
+ "vue-tsc": "^2.2.0"
94
95
  },
95
96
  "peerDependencies": {
96
97
  "vue": "^3.4.15"
@@ -104,8 +105,8 @@
104
105
  "type-check": "vue-tsc --noEmit -p tsconfig.dev.json --composite false",
105
106
  "format": "prettier . --check",
106
107
  "format:fix": "prettier . --write",
107
- "lint": "eslint --max-warnings 0 --ext .js,.ts,.vue .",
108
- "lint:fix": "eslint src --ext .ts,.vue --fix",
108
+ "lint": "eslint --max-warnings 0 .",
109
+ "lint:fix": "eslint . --fix",
109
110
  "lint:style": "stylelint \"**/*.scss\"",
110
111
  "test": "vitest",
111
112
  "test:coverage": "vitest run --coverage",