@quidgest/ui 0.14.11 → 0.14.12

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 (234) hide show
  1. package/dist/manifest/components.json +1 -0
  2. package/dist/ui.css +74 -39
  3. package/dist/ui.esm.js +1731 -1578
  4. package/dist/ui.js +24 -24
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +170 -163
  7. package/dist/ui.scss +61 -40
  8. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  9. package/esm/components/QAccordion/QAccordion.vue.js +2 -2
  10. package/esm/components/QAccordion/index.d.ts +33 -2
  11. package/esm/components/QAccordion/index.d.ts.map +1 -1
  12. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  13. package/esm/components/QBadge/QBadge.vue.js +7 -7
  14. package/esm/components/QBadge/index.d.ts +39 -2
  15. package/esm/components/QBadge/index.d.ts.map +1 -1
  16. package/esm/components/QBadge/types.d.ts.map +1 -1
  17. package/esm/components/QButton/QButton.d.ts +0 -2
  18. package/esm/components/QButton/QButton.d.ts.map +1 -1
  19. package/esm/components/QButton/QButton.vue.js +18 -18
  20. package/esm/components/QButton/index.d.ts +36 -2
  21. package/esm/components/QButton/index.d.ts.map +1 -1
  22. package/esm/components/QButtonGroup/QButtonGroup.d.ts +1 -3
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/QButtonGroup.vue.js +7 -7
  25. package/esm/components/QButtonGroup/index.d.ts +17 -2
  26. package/esm/components/QButtonGroup/index.d.ts.map +1 -1
  27. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  28. package/esm/components/QButtonToggle/QButtonToggle.vue.js +1 -1
  29. package/esm/components/QButtonToggle/index.d.ts +31 -2
  30. package/esm/components/QButtonToggle/index.d.ts.map +1 -1
  31. package/esm/components/QCard/QCard.d.ts +4 -9
  32. package/esm/components/QCard/QCard.d.ts.map +1 -1
  33. package/esm/components/QCard/QCard.vue.js +34 -34
  34. package/esm/components/QCard/index.d.ts +34 -2
  35. package/esm/components/QCard/index.d.ts.map +1 -1
  36. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -3
  37. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  38. package/esm/components/QCheckbox/QCheckbox.vue.js +19 -19
  39. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +1 -3
  40. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
  41. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -7
  42. package/esm/components/QCheckbox/index.d.ts +79 -2
  43. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  44. package/esm/components/QCheckbox/types.d.ts +8 -4
  45. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  46. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -3
  47. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  48. package/esm/components/QCollapsible/QCollapsible.vue.js +54 -60
  49. package/esm/components/QCollapsible/index.d.ts +47 -2
  50. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  51. package/esm/components/QCollapsible/types.d.ts +5 -4
  52. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  53. package/esm/components/QCollapsible/types.js +4 -5
  54. package/esm/components/QColorPicker/QColorPicker.d.ts +34 -0
  55. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -0
  56. package/esm/components/QColorPicker/QColorPicker.vue.js +97 -0
  57. package/esm/components/QColorPicker/QColorPicker.vue2.js +4 -0
  58. package/esm/components/QColorPicker/index.d.ts +48 -0
  59. package/esm/components/QColorPicker/index.d.ts.map +1 -0
  60. package/esm/components/QColorPicker/index.js +6 -0
  61. package/esm/components/QColorPicker/types.d.ts +44 -0
  62. package/esm/components/QColorPicker/types.d.ts.map +1 -0
  63. package/esm/components/QColorPicker/types.js +6 -0
  64. package/esm/components/QCombobox/QCombobox.d.ts +682 -82
  65. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  66. package/esm/components/QCombobox/QCombobox.vue.js +156 -174
  67. package/esm/components/QCombobox/index.d.ts +1395 -2
  68. package/esm/components/QCombobox/index.d.ts.map +1 -1
  69. package/esm/components/QCombobox/types.d.ts +14 -6
  70. package/esm/components/QCombobox/types.d.ts.map +1 -1
  71. package/esm/components/QCombobox/types.js +9 -11
  72. package/esm/components/QDialog/QDialog.d.ts +3 -7
  73. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  74. package/esm/components/QDialog/QDialog.vue.js +33 -33
  75. package/esm/components/QDialog/index.d.ts +56 -2
  76. package/esm/components/QDialog/index.d.ts.map +1 -1
  77. package/esm/components/QDialog/types.d.ts +5 -3
  78. package/esm/components/QDialog/types.d.ts.map +1 -1
  79. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  80. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +2 -2
  81. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +232 -11
  82. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  83. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +5 -5
  84. package/esm/components/QDropdownMenu/index.d.ts +12 -2
  85. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  86. package/esm/components/QDropdownMenu/types.d.ts +5 -4
  87. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  88. package/esm/components/QField/QField.d.ts +5 -7
  89. package/esm/components/QField/QField.d.ts.map +1 -1
  90. package/esm/components/QField/QField.vue.js +25 -25
  91. package/esm/components/QField/index.d.ts +37 -2
  92. package/esm/components/QField/index.d.ts.map +1 -1
  93. package/esm/components/QIcon/QIcon.d.ts +0 -2
  94. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  95. package/esm/components/QIcon/QIcon.vue.js +8 -8
  96. package/esm/components/QIcon/QIconFont.d.ts +0 -3
  97. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  98. package/esm/components/QIcon/QIconFont.vue.js +10 -10
  99. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  100. package/esm/components/QIcon/QIconImg.vue.js +4 -4
  101. package/esm/components/QIcon/QIconSvg.d.ts +0 -2
  102. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  103. package/esm/components/QIcon/QIconSvg.vue.js +10 -10
  104. package/esm/components/QIcon/index.d.ts +16 -8
  105. package/esm/components/QIcon/index.d.ts.map +1 -1
  106. package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
  107. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  108. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  109. package/esm/components/QInputGroup/index.d.ts +26 -2
  110. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  111. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
  112. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  113. package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
  114. package/esm/components/QLineLoader/index.d.ts +1 -2
  115. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  116. package/esm/components/QList/QList.d.ts +70 -9
  117. package/esm/components/QList/QList.d.ts.map +1 -1
  118. package/esm/components/QList/QList.vue.js +21 -21
  119. package/esm/components/QList/QListItem.d.ts +0 -2
  120. package/esm/components/QList/QListItem.d.ts.map +1 -1
  121. package/esm/components/QList/QListItem.vue.js +20 -20
  122. package/esm/components/QList/QListItemGroup.d.ts +1 -3
  123. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  124. package/esm/components/QList/QListItemGroup.vue.js +6 -6
  125. package/esm/components/QList/index.d.ts +189 -6
  126. package/esm/components/QList/index.d.ts.map +1 -1
  127. package/esm/components/QList/types.d.ts +8 -3
  128. package/esm/components/QList/types.d.ts.map +1 -1
  129. package/esm/components/QOverlay/QOverlay.d.ts +4 -4
  130. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  131. package/esm/components/QOverlay/QOverlay.vue.js +125 -115
  132. package/esm/components/QOverlay/index.d.ts +78 -2
  133. package/esm/components/QOverlay/index.d.ts.map +1 -1
  134. package/esm/components/QPopover/QPopover.d.ts +0 -1
  135. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  136. package/esm/components/QPopover/QPopover.vue.js +6 -6
  137. package/esm/components/QPopover/index.d.ts +49 -2
  138. package/esm/components/QPopover/index.d.ts.map +1 -1
  139. package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
  140. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  141. package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
  142. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
  143. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  144. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
  145. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
  146. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  147. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
  148. package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
  149. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  150. package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
  151. package/esm/components/QPropertyList/index.d.ts +117 -8
  152. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  153. package/esm/components/QPropertyList/types.d.ts +8 -4
  154. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  155. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
  156. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  157. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
  158. package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
  159. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
  160. package/esm/components/QSelect/QSelect.d.ts +309 -29
  161. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  162. package/esm/components/QSelect/QSelect.vue.js +112 -129
  163. package/esm/components/QSelect/index.d.ts +314 -2
  164. package/esm/components/QSelect/index.d.ts.map +1 -1
  165. package/esm/components/QSelect/types.d.ts +13 -5
  166. package/esm/components/QSelect/types.d.ts.map +1 -1
  167. package/esm/components/QSelect/types.js +9 -11
  168. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
  169. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  170. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
  171. package/esm/components/QSkeletonLoader/index.d.ts +1 -2
  172. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  173. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
  174. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  175. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
  176. package/esm/components/QSpinnerLoader/index.d.ts +3 -2
  177. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  178. package/esm/components/QTextField/QTextField.d.ts +79 -22
  179. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  180. package/esm/components/QTextField/QTextField.vue.js +18 -18
  181. package/esm/components/QTextField/index.d.ts +122 -2
  182. package/esm/components/QTextField/index.d.ts.map +1 -1
  183. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  184. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
  185. package/esm/components/QThemeProvider/index.d.ts +17 -2
  186. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  187. package/esm/components/QThemeProvider/types.d.ts +1 -1
  188. package/esm/components/QTooltip/QTooltip.d.ts +0 -4
  189. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  190. package/esm/components/QTooltip/QTooltip.vue.js +17 -17
  191. package/esm/components/QTooltip/index.d.ts +62 -2
  192. package/esm/components/QTooltip/index.d.ts.map +1 -1
  193. package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
  194. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
  195. package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
  196. package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
  197. package/esm/components/__internal__/QChevron/index.d.ts +13 -0
  198. package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
  199. package/esm/components/__internal__/QChevron/index.js +6 -0
  200. package/esm/components/__internal__/QChevron/types.d.ts +16 -0
  201. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
  202. package/esm/components/__internal__/QChevron/types.js +8 -0
  203. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
  204. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
  205. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
  206. package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
  207. package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
  208. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
  209. package/esm/components/__internal__/QClearButton/index.js +6 -0
  210. package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
  211. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
  212. package/esm/components/__internal__/QClearButton/types.js +11 -0
  213. package/esm/components/index.d.ts +1 -0
  214. package/esm/components/index.d.ts.map +1 -1
  215. package/esm/components/index.js +48 -46
  216. package/esm/composables/group.js +5 -5
  217. package/esm/composables/theme.d.ts +54 -6
  218. package/esm/composables/theme.d.ts.map +1 -1
  219. package/esm/composables/theme.js +10 -12
  220. package/esm/framework.d.ts +17 -20
  221. package/esm/framework.d.ts.map +1 -1
  222. package/esm/framework.js +22 -25
  223. package/esm/index.d.ts +1 -0
  224. package/esm/templates/theme.js +16 -16
  225. package/esm/utils/color.d.ts +2 -1
  226. package/esm/utils/color.d.ts.map +1 -1
  227. package/esm/utils/color.js +19 -19
  228. package/esm/utils/setupPropsProxy.d.ts +22 -9
  229. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  230. package/esm/utils/setupPropsProxy.js +22 -22
  231. package/esm/utils/theme.d.ts +13 -1
  232. package/esm/utils/theme.d.ts.map +1 -1
  233. package/esm/utils/theme.js +40 -24
  234. package/package.json +18 -22
@@ -0,0 +1,23 @@
1
+ import { defineComponent as r, mergeModels as l, useModel as s, createBlock as c, openBlock as t, unref as a, mergeProps as m } from "vue";
2
+ import { DEFAULT_ICONS as d } from "./types.js";
3
+ import { QIcon as p } from "../../QIcon/index.js";
4
+ const _ = /* @__PURE__ */ r({
5
+ __name: "QChevron",
6
+ props: /* @__PURE__ */ l({
7
+ class: {},
8
+ icons: { default: () => d }
9
+ }, {
10
+ modelValue: { type: Boolean },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(e) {
15
+ const o = e, n = s(e, "modelValue");
16
+ return (u, i) => (t(), c(a(p), m({
17
+ class: ["q-chevron", { "q-chevron--expanded": n.value }]
18
+ }, o.icons.chevron), null, 16, ["class"]));
19
+ }
20
+ });
21
+ export {
22
+ _ as default
23
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QChevron.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,13 @@
1
+ declare const QChevron: import('vue').DefineComponent<{
2
+ modelValue?: boolean;
3
+ } & import('./types').QChevronProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ "update:modelValue": (value: boolean) => any;
5
+ }, string, import('vue').PublicProps, Readonly<{
6
+ modelValue?: boolean;
7
+ } & import('./types').QChevronProps> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
9
+ }>, {
10
+ icons: typeof import('./types').DEFAULT_ICONS;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export { QChevron };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QChevron.vue.js";
2
+ import { setupPropsProxy as r } from "../../../utils/setupPropsProxy.js";
3
+ const t = r(o);
4
+ export {
5
+ t as QChevron
6
+ };
@@ -0,0 +1,16 @@
1
+ export type QChevronProps = {
2
+ /**
3
+ * Custom set of classes to apply to the component.
4
+ */
5
+ class?: string | unknown[];
6
+ /**
7
+ * Custom icon configurations.
8
+ */
9
+ icons?: typeof DEFAULT_ICONS;
10
+ };
11
+ export declare const DEFAULT_ICONS: {
12
+ chevron: {
13
+ icon: string;
14
+ };
15
+ };
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
@@ -0,0 +1,8 @@
1
+ const o = {
2
+ chevron: {
3
+ icon: "chevron-down"
4
+ }
5
+ };
6
+ export {
7
+ o as DEFAULT_ICONS
8
+ };
@@ -0,0 +1,11 @@
1
+ import { DEFAULT_ICONS, DEFAULT_TEXTS, QClearButtonProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<QClearButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (event: Event) => any;
4
+ }, string, import('vue').PublicProps, Readonly<QClearButtonProps> & Readonly<{
5
+ onClick?: ((event: Event) => any) | undefined;
6
+ }>, {
7
+ icons: typeof DEFAULT_ICONS;
8
+ texts: typeof DEFAULT_TEXTS;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
10
+ export default _default;
11
+ //# sourceMappingURL=QClearButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QClearButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/QClearButton.vue"],"names":[],"mappings":"AAWA;AAsCC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;AAgGjD,wBASG"}
@@ -0,0 +1,39 @@
1
+ import { defineComponent as n, createBlock as s, openBlock as i, unref as o, withCtx as m, createVNode as p, normalizeProps as u, guardReactiveProps as f } from "vue";
2
+ import { DEFAULT_TEXTS as d, DEFAULT_ICONS as _ } from "./types.js";
3
+ import { QButton as b } from "../../QButton/index.js";
4
+ import { QIcon as x } from "../../QIcon/index.js";
5
+ const Q = /* @__PURE__ */ n({
6
+ __name: "QClearButton",
7
+ props: {
8
+ class: {},
9
+ icons: { default: () => _ },
10
+ texts: { default: () => d }
11
+ },
12
+ emits: ["click"],
13
+ setup(r, { emit: a }) {
14
+ const e = r, c = a, l = (t) => c("click", t);
15
+ return (t, k) => (i(), s(o(b), {
16
+ class: "q-clear-btn",
17
+ "aria-label": e.texts.clearValue,
18
+ "b-style": "plain",
19
+ borderless: "",
20
+ tabindex: "-1",
21
+ onClick: l
22
+ }, {
23
+ default: m(() => [
24
+ p(
25
+ o(x),
26
+ u(f(e.icons.clear)),
27
+ null,
28
+ 16
29
+ /* FULL_PROPS */
30
+ )
31
+ ]),
32
+ _: 1
33
+ /* STABLE */
34
+ }, 8, ["aria-label"]));
35
+ }
36
+ });
37
+ export {
38
+ Q as default
39
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QClearButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,12 @@
1
+ import { QClearButtonProps } from './types';
2
+ declare const QClearButton: import('vue').DefineComponent<QClearButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ click: (event: Event) => any;
4
+ }, string, import('vue').PublicProps, Readonly<QClearButtonProps> & Readonly<{
5
+ onClick?: ((event: Event) => any) | undefined;
6
+ }>, {
7
+ icons: typeof import('./types').DEFAULT_ICONS;
8
+ texts: typeof import('./types').DEFAULT_TEXTS;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
10
+ export { QClearButton };
11
+ export type { QClearButtonProps };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,QAAA,MAAM,YAAY;;;;;;;2FAAiC,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QClearButton.vue.js";
2
+ import { setupPropsProxy as r } from "../../../utils/setupPropsProxy.js";
3
+ const p = r(o);
4
+ export {
5
+ p as QClearButton
6
+ };
@@ -0,0 +1,23 @@
1
+ export type QClearButtonProps = {
2
+ /**
3
+ * Custom set of classes to apply to the component.
4
+ */
5
+ class?: string | unknown[];
6
+ /**
7
+ * Custom icon configurations.
8
+ */
9
+ icons?: typeof DEFAULT_ICONS;
10
+ /**
11
+ * Custom text configurations.
12
+ */
13
+ texts?: typeof DEFAULT_TEXTS;
14
+ };
15
+ export declare const DEFAULT_TEXTS: {
16
+ clearValue: string;
17
+ };
18
+ export declare const DEFAULT_ICONS: {
19
+ clear: {
20
+ icon: string;
21
+ };
22
+ };
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ clearValue: "Clear value"
3
+ }, c = {
4
+ clear: {
5
+ icon: "close"
6
+ }
7
+ };
8
+ export {
9
+ c as DEFAULT_ICONS,
10
+ e as DEFAULT_TEXTS
11
+ };
@@ -6,6 +6,7 @@ export * from './QButtonToggle';
6
6
  export * from './QCard';
7
7
  export * from './QCheckbox';
8
8
  export * from './QCollapsible';
9
+ export * from './QColorPicker';
9
10
  export * from './QCombobox';
10
11
  export * from './QDialog';
11
12
  export * from './QDropdownMenu';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -2,59 +2,61 @@ import { QAccordion as e } from "./QAccordion/index.js";
2
2
  import { QBadge as p } from "./QBadge/index.js";
3
3
  import { QButton as m } from "./QButton/index.js";
4
4
  import { QButtonGroup as f } from "./QButtonGroup/index.js";
5
- import { QButtonToggle as i } from "./QButtonToggle/index.js";
5
+ import { QButtonToggle as n } from "./QButtonToggle/index.js";
6
6
  import { QCard as L } from "./QCard/index.js";
7
7
  import { QCheckbox as a } from "./QCheckbox/index.js";
8
- import { QCollapsible as c } from "./QCollapsible/index.js";
9
- import { QCombobox as I } from "./QCombobox/index.js";
10
- import { QDialog as g } from "./QDialog/index.js";
11
- import { QDropdownMenu as b } from "./QDropdownMenu/index.js";
12
- import { QField as B } from "./QField/index.js";
13
- import { QIcon as G, QIconFont as S, QIconImg as T, QIconSvg as F } from "./QIcon/index.js";
14
- import { QInputGroup as k } from "./QInputGroup/index.js";
15
- import { QLineLoader as D } from "./QLineLoader/index.js";
16
- import { QList as M, QListItem as O, QListItemGroup as R } from "./QList/index.js";
17
- import { QOverlay as q } from "./QOverlay/index.js";
18
- import { QPopover as E } from "./QPopover/index.js";
19
- import { QPropertyList as J, QPropertyListGroup as K, QPropertyListPanel as N, QPropertyListRow as U } from "./QPropertyList/index.js";
20
- import { QSelect as W } from "./QSelect/index.js";
21
- import { QSkeletonLoader as Y } from "./QSkeletonLoader/index.js";
22
- import { QSpinnerLoader as _ } from "./QSpinnerLoader/index.js";
23
- import { QTextField as oo } from "./QTextField/index.js";
24
- import { QThemeProvider as eo } from "./QThemeProvider/index.js";
25
- import { QTooltip as po } from "./QTooltip/index.js";
8
+ import { QCollapsible as u } from "./QCollapsible/index.js";
9
+ import { QColorPicker as I } from "./QColorPicker/index.js";
10
+ import { QCombobox as g } from "./QCombobox/index.js";
11
+ import { QDialog as C } from "./QDialog/index.js";
12
+ import { QDropdownMenu as v } from "./QDropdownMenu/index.js";
13
+ import { QField as G } from "./QField/index.js";
14
+ import { QIcon as T, QIconFont as k, QIconImg as F, QIconSvg as h } from "./QIcon/index.js";
15
+ import { QInputGroup as D } from "./QInputGroup/index.js";
16
+ import { QLineLoader as M } from "./QLineLoader/index.js";
17
+ import { QList as R, QListItem as j, QListItemGroup as q } from "./QList/index.js";
18
+ import { QOverlay as E } from "./QOverlay/index.js";
19
+ import { QPopover as J } from "./QPopover/index.js";
20
+ import { QPropertyList as N, QPropertyListGroup as U, QPropertyListPanel as V, QPropertyListRow as W } from "./QPropertyList/index.js";
21
+ import { QSelect as Y } from "./QSelect/index.js";
22
+ import { QSkeletonLoader as _ } from "./QSkeletonLoader/index.js";
23
+ import { QSpinnerLoader as oo } from "./QSpinnerLoader/index.js";
24
+ import { QTextField as eo } from "./QTextField/index.js";
25
+ import { QThemeProvider as po } from "./QThemeProvider/index.js";
26
+ import { QTooltip as mo } from "./QTooltip/index.js";
26
27
  export {
27
28
  e as QAccordion,
28
29
  p as QBadge,
29
30
  m as QButton,
30
31
  f as QButtonGroup,
31
- i as QButtonToggle,
32
+ n as QButtonToggle,
32
33
  L as QCard,
33
34
  a as QCheckbox,
34
- c as QCollapsible,
35
- I as QCombobox,
36
- g as QDialog,
37
- b as QDropdownMenu,
38
- B as QField,
39
- G as QIcon,
40
- S as QIconFont,
41
- T as QIconImg,
42
- F as QIconSvg,
43
- k as QInputGroup,
44
- D as QLineLoader,
45
- M as QList,
46
- O as QListItem,
47
- R as QListItemGroup,
48
- q as QOverlay,
49
- E as QPopover,
50
- J as QPropertyList,
51
- K as QPropertyListGroup,
52
- N as QPropertyListPanel,
53
- U as QPropertyListRow,
54
- W as QSelect,
55
- Y as QSkeletonLoader,
56
- _ as QSpinnerLoader,
57
- oo as QTextField,
58
- eo as QThemeProvider,
59
- po as QTooltip
35
+ u as QCollapsible,
36
+ I as QColorPicker,
37
+ g as QCombobox,
38
+ C as QDialog,
39
+ v as QDropdownMenu,
40
+ G as QField,
41
+ T as QIcon,
42
+ k as QIconFont,
43
+ F as QIconImg,
44
+ h as QIconSvg,
45
+ D as QInputGroup,
46
+ M as QLineLoader,
47
+ R as QList,
48
+ j as QListItem,
49
+ q as QListItemGroup,
50
+ E as QOverlay,
51
+ J as QPopover,
52
+ N as QPropertyList,
53
+ U as QPropertyListGroup,
54
+ V as QPropertyListPanel,
55
+ W as QPropertyListRow,
56
+ Y as QSelect,
57
+ _ as QSkeletonLoader,
58
+ oo as QSpinnerLoader,
59
+ eo as QTextField,
60
+ po as QThemeProvider,
61
+ mo as QTooltip
60
62
  };
@@ -1,23 +1,23 @@
1
- import { ref as c, computed as t, watch as n, provide as s, inject as f } from "vue";
1
+ import { inject as c, computed as t, ref as n, watch as s, provide as f } from "vue";
2
2
  const i = "q-group";
3
3
  function p(u) {
4
4
  var l, v;
5
5
  const e = {
6
- active: c(((l = u.active) == null ? void 0 : l.value) ?? ((v = u.multiple) == null ? void 0 : v.value) ? [] : null),
6
+ active: n(((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 n(
12
+ return s(
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;
16
16
  }
17
- ), s(i, e), e;
17
+ ), f(i, e), e;
18
18
  }
19
19
  function g(u) {
20
- const e = f(i, void 0);
20
+ const e = c(i, void 0);
21
21
  if (!e) return;
22
22
  const l = t(() => {
23
23
  var a;
@@ -1,5 +1,50 @@
1
- import { ThemeInstance } from '../framework';
2
- export declare const THEME_SYMBOL = "q-theme";
1
+ import { ComputedRef, DeepReadonly, InjectionKey, Ref } from 'vue';
2
+ import { ColorScheme } from '../utils/color';
3
+ export declare const ThemeSymbol: InjectionKey<ThemeInstance>;
4
+ /**
5
+ * Represents the two available theme modes for the application: light and dark.
6
+ */
7
+ export type ThemeMode = 'light' | 'dark';
8
+ /**
9
+ * Represents the theme configuration for the application, including the default theme
10
+ * and a list of available themes with customizable color schemes.
11
+ */
12
+ export type AppThemes = {
13
+ /** The name of the default theme to be applied initially. */
14
+ defaultTheme: string;
15
+ /** An array of theme definitions available for the application. */
16
+ themes: Array<{
17
+ /** The name of the theme. */
18
+ name: string;
19
+ /** The mode of the theme (e.g., light or dark). */
20
+ mode: ThemeMode;
21
+ /** An optional object to customize the color scheme of the theme. */
22
+ colors?: Partial<ColorScheme>;
23
+ }>;
24
+ };
25
+ /**
26
+ * Defines the structure of a theme, including its name, mode, and color scheme.
27
+ */
28
+ export type ThemeDefinition = {
29
+ /** The unique name of the theme. */
30
+ name: string;
31
+ /** The mode of the theme (e.g., light or dark). */
32
+ mode: ThemeMode;
33
+ /** The color scheme associated with the theme. */
34
+ scheme: ColorScheme;
35
+ };
36
+ /**
37
+ * Represents an instance of a theme, containing reactive properties for
38
+ * managing theme state and accessing theme definitions.
39
+ */
40
+ export type ThemeInstance = {
41
+ /** The reactive reference to the active theme's name. */
42
+ readonly name: Ref<string>;
43
+ /** A computed reference to the current theme definition. */
44
+ readonly current: DeepReadonly<ComputedRef<ThemeDefinition>>;
45
+ /** An array of available theme definitions. */
46
+ readonly themes: DeepReadonly<ThemeDefinition[]>;
47
+ };
3
48
  /**
4
49
  * Custom hook for accessing the theme configuration in context.
5
50
  *
@@ -7,11 +52,14 @@ export declare const THEME_SYMBOL = "q-theme";
7
52
  */
8
53
  export declare function useTheme(): ThemeInstance;
9
54
  /**
10
- * Provides a theme with the specified name using the current theme configuration.
55
+ * Provides and manages a theme instance based on the specified theme name.
56
+ *
57
+ * This function retrieves the available themes from the current theme context,
58
+ * creates a new theme instance, and provides it to the Vue dependency injection system.
11
59
  *
12
- * @param name - The name of the theme to provide.
60
+ * @param name - A reactive reference (`Ref<string>`) representing the name of the theme to activate.
13
61
  *
14
- * @returns The active theme.
62
+ * @returns The newly created and provided `ThemeInstance`.
15
63
  */
16
- export declare function provideTheme(name: string): ThemeInstance;
64
+ export declare function provideTheme(name: Ref<string>): ThemeInstance;
17
65
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,eAAO,MAAM,YAAY,YAAY,CAAA;AAErC;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,iBAWxC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;CAChD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
@@ -1,20 +1,18 @@
1
- import { inject as r, ref as m, provide as h } from "vue";
2
- const n = "q-theme";
3
- function i() {
4
- const e = r(n);
1
+ import { createThemeInstance as r } from "../utils/theme.js";
2
+ import { inject as c, provide as h } from "vue";
3
+ const n = Symbol.for("q-theme");
4
+ function s() {
5
+ const e = c(n);
5
6
  if (!e)
6
7
  throw new Error("[Quidgest UI] Could not find theme instance");
7
8
  return e;
8
9
  }
9
- function s(e) {
10
- const o = i(), t = {
11
- activeTheme: m(e),
12
- themes: o.themes
13
- };
10
+ function u(e) {
11
+ const o = s(), m = o.themes, t = r(e, m);
14
12
  return h(n, t), t;
15
13
  }
16
14
  export {
17
- n as THEME_SYMBOL,
18
- s as provideTheme,
19
- i as useTheme
15
+ n as ThemeSymbol,
16
+ u as provideTheme,
17
+ s as useTheme
20
18
  };
@@ -1,28 +1,25 @@
1
1
  import { Defaults } from './composables/defaults';
2
- import { Component, Plugin, Ref } from 'vue';
3
- import { ColorScheme } from './utils/color';
2
+ import { AppThemes } from './composables/theme';
3
+ import { Component, Plugin } from 'vue';
4
+ /**
5
+ * Configuration options for the Quidgest UI framework plugin.
6
+ */
4
7
  export type FrameworkConfig = {
8
+ /** An optional record of components to be registered globally in the application. */
5
9
  components?: Record<string, Component>;
10
+ /** An optional configuration for the available themes and the default theme. */
6
11
  themes?: AppThemes;
12
+ /** An optional object containing global default values for the application. */
7
13
  defaults?: Defaults;
8
14
  };
9
- export type ThemeMode = 'light' | 'dark';
10
- export type AppThemes = {
11
- defaultTheme: string;
12
- themes: Array<{
13
- name: string;
14
- mode: ThemeMode;
15
- colors?: Partial<ColorScheme>;
16
- }>;
17
- };
18
- export type ThemeDefinition = {
19
- name: string;
20
- mode: ThemeMode;
21
- scheme: ColorScheme;
22
- };
23
- export type ThemeInstance = {
24
- activeTheme: Ref<string>;
25
- themes: ThemeDefinition[];
26
- };
15
+ /**
16
+ * Creates the Quidgest UI framework plugin that installs components, sets up global defaults,
17
+ * and configures themes based on the provided configuration.
18
+ *
19
+ * @param config - The framework configuration, including components, defaults, and themes.
20
+ * Defaults to an empty object if no configuration is provided.
21
+ *
22
+ * @returns A Vue plugin (`Plugin`) with an `install` function to set up the framework.
23
+ */
27
24
  export declare function createFramework(config?: FrameworkConfig): Plugin;
28
25
  //# sourceMappingURL=framework.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,MAAM,MAAM,eAAe,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACtC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC,MAAM,MAAM,SAAS,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,SAAS,CAAA;QACf,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC3B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,MAAM,EAAE,eAAe,EAAE,CAAA;CACzB,CAAA;AAED,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiBpE"}
1
+ {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAMjD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiBpE"}
package/esm/framework.js CHANGED
@@ -1,47 +1,44 @@
1
1
  import { DEFAULTS_SYMBOL as c } from "./composables/defaults.js";
2
- import { THEME_SYMBOL as i } from "./composables/theme.js";
3
- import { defaultLightColorScheme as a, defaultDarkColorScheme as h } from "./templates/theme.js";
4
- import { ref as n, watch as f } from "vue";
5
- import { generateRootStyle as d } from "./utils/theme.js";
6
- function v(m = {}) {
2
+ import { ThemeSymbol as h } from "./composables/theme.js";
3
+ import { defaultLightColorScheme as l, defaultDarkColorScheme as i } from "./templates/theme.js";
4
+ import { ref as a, watch as f } from "vue";
5
+ import { createThemeInstance as d, generateRootStyle as u } from "./utils/theme.js";
6
+ function D(s = {}) {
7
7
  return { install: (o) => {
8
- const t = m.components || {};
9
- for (const l in t)
10
- o.component(l, t[l]);
11
- const e = m.defaults || {};
12
- o.provide(c, n(e)), u(o, m.themes);
8
+ const t = s.components || {};
9
+ for (const n in t)
10
+ o.component(n, t[n]);
11
+ const e = s.defaults || {};
12
+ o.provide(c, a(e)), p(o, s.themes);
13
13
  } };
14
14
  }
15
- function u(m, s) {
15
+ function p(s, m) {
16
16
  const o = [];
17
17
  let t;
18
- if (!s)
18
+ if (!m)
19
19
  t = "default", o.push({
20
20
  name: t,
21
21
  mode: "light",
22
- scheme: a
22
+ scheme: l
23
23
  });
24
24
  else
25
- for (const e of s.themes) {
26
- const r = { ...e.mode === "light" ? a : h, ...e.colors };
25
+ for (const e of m.themes) {
26
+ const r = { ...e.mode === "light" ? l : i, ...e.colors };
27
27
  o.push({
28
28
  name: e.name,
29
29
  mode: e.mode,
30
30
  scheme: r
31
- }), e.name === s.defaultTheme && (t = e.name);
31
+ }), e.name === m.defaultTheme && (t = e.name);
32
32
  }
33
33
  if (t) {
34
- const e = {
35
- activeTheme: n(t),
36
- themes: o
37
- };
38
- d(o), f(e.activeTheme, p, { immediate: !0 }), m.provide(i, e);
34
+ const e = a(t), n = d(e, o);
35
+ u(o), f(n.name, S, { immediate: !0 }), s.provide(h, n);
39
36
  }
40
37
  }
41
- function p(m) {
42
- const s = document.documentElement, t = Array.from(s.classList).filter((e) => !e.startsWith("q-theme"));
43
- s.className = t.join(" "), s.classList.add(`q-theme--${m}`);
38
+ function S(s) {
39
+ const m = document.documentElement, t = Array.from(m.classList).filter((e) => !e.startsWith("q-theme"));
40
+ m.className = t.join(" "), m.classList.add(`q-theme--${s}`);
44
41
  }
45
42
  export {
46
- v as createFramework
43
+ D as createFramework
47
44
  };
package/esm/index.d.ts CHANGED
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
15
15
  QCard: typeof import('@quidgest/ui/components')['QCard']
16
16
  QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
17
17
  QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
18
+ QColorPicker: typeof import('@quidgest/ui/components')['QColorPicker']
18
19
  QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
19
20
  QDialog: typeof import('@quidgest/ui/components')['QDialog']
20
21
  QDropdownMenu: typeof import('@quidgest/ui/components')['QDropdownMenu']