@quidgest/ui 0.14.10 → 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 (245) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +95 -39
  3. package/dist/ui.esm.js +1931 -1578
  4. package/dist/ui.js +29 -29
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +181 -158
  7. package/dist/ui.scss +83 -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 +686 -81
  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 +16 -0
  80. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -0
  81. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +38 -0
  82. package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +4 -0
  83. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +369 -0
  84. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -0
  85. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +153 -0
  86. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +4 -0
  87. package/esm/components/QDropdownMenu/index.d.ts +14 -0
  88. package/esm/components/QDropdownMenu/index.d.ts.map +1 -0
  89. package/esm/components/QDropdownMenu/index.js +6 -0
  90. package/esm/components/QDropdownMenu/types.d.ts +96 -0
  91. package/esm/components/QDropdownMenu/types.d.ts.map +1 -0
  92. package/esm/components/QDropdownMenu/types.js +8 -0
  93. package/esm/components/QField/QField.d.ts +5 -7
  94. package/esm/components/QField/QField.d.ts.map +1 -1
  95. package/esm/components/QField/QField.vue.js +25 -25
  96. package/esm/components/QField/index.d.ts +37 -2
  97. package/esm/components/QField/index.d.ts.map +1 -1
  98. package/esm/components/QIcon/QIcon.d.ts +0 -2
  99. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  100. package/esm/components/QIcon/QIcon.vue.js +8 -8
  101. package/esm/components/QIcon/QIconFont.d.ts +0 -3
  102. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  103. package/esm/components/QIcon/QIconFont.vue.js +10 -10
  104. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  105. package/esm/components/QIcon/QIconImg.vue.js +4 -4
  106. package/esm/components/QIcon/QIconSvg.d.ts +0 -2
  107. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  108. package/esm/components/QIcon/QIconSvg.vue.js +10 -10
  109. package/esm/components/QIcon/index.d.ts +16 -8
  110. package/esm/components/QIcon/index.d.ts.map +1 -1
  111. package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
  112. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  113. package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
  114. package/esm/components/QInputGroup/index.d.ts +26 -2
  115. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  116. package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
  117. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  118. package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
  119. package/esm/components/QLineLoader/index.d.ts +1 -2
  120. package/esm/components/QLineLoader/index.d.ts.map +1 -1
  121. package/esm/components/QList/QList.d.ts +138 -3
  122. package/esm/components/QList/QList.d.ts.map +1 -1
  123. package/esm/components/QList/QList.vue.js +117 -99
  124. package/esm/components/QList/QListItem.d.ts +2 -2
  125. package/esm/components/QList/QListItem.d.ts.map +1 -1
  126. package/esm/components/QList/QListItem.vue.js +39 -37
  127. package/esm/components/QList/QListItemGroup.d.ts +1 -3
  128. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  129. package/esm/components/QList/QListItemGroup.vue.js +6 -6
  130. package/esm/components/QList/index.d.ts +189 -6
  131. package/esm/components/QList/index.d.ts.map +1 -1
  132. package/esm/components/QList/types.d.ts +8 -10
  133. package/esm/components/QList/types.d.ts.map +1 -1
  134. package/esm/components/QOverlay/QOverlay.d.ts +5 -4
  135. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  136. package/esm/components/QOverlay/QOverlay.vue.js +151 -136
  137. package/esm/components/QOverlay/index.d.ts +78 -2
  138. package/esm/components/QOverlay/index.d.ts.map +1 -1
  139. package/esm/components/QOverlay/types.d.ts +4 -0
  140. package/esm/components/QOverlay/types.d.ts.map +1 -1
  141. package/esm/components/QPopover/QPopover.d.ts +0 -1
  142. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  143. package/esm/components/QPopover/QPopover.vue.js +6 -6
  144. package/esm/components/QPopover/index.d.ts +49 -2
  145. package/esm/components/QPopover/index.d.ts.map +1 -1
  146. package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
  147. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  148. package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
  149. package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
  150. package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
  151. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
  152. package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
  153. package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
  154. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
  155. package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
  156. package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
  157. package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
  158. package/esm/components/QPropertyList/index.d.ts +117 -8
  159. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  160. package/esm/components/QPropertyList/types.d.ts +8 -4
  161. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  162. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
  163. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
  164. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
  165. package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
  166. package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
  167. package/esm/components/QSelect/QSelect.d.ts +313 -28
  168. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  169. package/esm/components/QSelect/QSelect.vue.js +112 -129
  170. package/esm/components/QSelect/index.d.ts +314 -2
  171. package/esm/components/QSelect/index.d.ts.map +1 -1
  172. package/esm/components/QSelect/types.d.ts +13 -5
  173. package/esm/components/QSelect/types.d.ts.map +1 -1
  174. package/esm/components/QSelect/types.js +9 -11
  175. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
  176. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  177. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
  178. package/esm/components/QSkeletonLoader/index.d.ts +1 -2
  179. package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
  180. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
  181. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  182. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
  183. package/esm/components/QSpinnerLoader/index.d.ts +3 -2
  184. package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
  185. package/esm/components/QTextField/QTextField.d.ts +79 -22
  186. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  187. package/esm/components/QTextField/QTextField.vue.js +18 -18
  188. package/esm/components/QTextField/index.d.ts +122 -2
  189. package/esm/components/QTextField/index.d.ts.map +1 -1
  190. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  191. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
  192. package/esm/components/QThemeProvider/index.d.ts +17 -2
  193. package/esm/components/QThemeProvider/index.d.ts.map +1 -1
  194. package/esm/components/QThemeProvider/types.d.ts +1 -1
  195. package/esm/components/QTooltip/QTooltip.d.ts +0 -4
  196. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  197. package/esm/components/QTooltip/QTooltip.vue.js +17 -17
  198. package/esm/components/QTooltip/index.d.ts +62 -2
  199. package/esm/components/QTooltip/index.d.ts.map +1 -1
  200. package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
  201. package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
  202. package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
  203. package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
  204. package/esm/components/__internal__/QChevron/index.d.ts +13 -0
  205. package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
  206. package/esm/components/__internal__/QChevron/index.js +6 -0
  207. package/esm/components/__internal__/QChevron/types.d.ts +16 -0
  208. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
  209. package/esm/components/__internal__/QChevron/types.js +8 -0
  210. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
  211. package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
  212. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
  213. package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
  214. package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
  215. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
  216. package/esm/components/__internal__/QClearButton/index.js +6 -0
  217. package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
  218. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
  219. package/esm/components/__internal__/QClearButton/types.js +11 -0
  220. package/esm/components/index.d.ts +2 -0
  221. package/esm/components/index.d.ts.map +1 -1
  222. package/esm/components/index.js +48 -44
  223. package/esm/composables/group.js +5 -5
  224. package/esm/composables/overlay.d.ts +4 -0
  225. package/esm/composables/overlay.d.ts.map +1 -1
  226. package/esm/composables/overlay.js +69 -62
  227. package/esm/composables/theme.d.ts +54 -6
  228. package/esm/composables/theme.d.ts.map +1 -1
  229. package/esm/composables/theme.js +10 -12
  230. package/esm/framework.d.ts +17 -20
  231. package/esm/framework.d.ts.map +1 -1
  232. package/esm/framework.js +22 -25
  233. package/esm/index.d.ts +2 -0
  234. package/esm/templates/theme.js +16 -16
  235. package/esm/utils/color.d.ts +2 -1
  236. package/esm/utils/color.d.ts.map +1 -1
  237. package/esm/utils/color.js +19 -19
  238. package/esm/utils/setupPropsProxy.d.ts +22 -9
  239. package/esm/utils/setupPropsProxy.d.ts.map +1 -1
  240. package/esm/utils/setupPropsProxy.js +22 -22
  241. package/esm/utils/theme.d.ts +13 -1
  242. package/esm/utils/theme.d.ts.map +1 -1
  243. package/esm/utils/theme.js +40 -24
  244. package/package.json +19 -54
  245. /package/{LICENSE.md → LICENSE} +0 -0
@@ -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,8 +6,10 @@ 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';
12
+ export * from './QDropdownMenu';
11
13
  export * from './QField';
12
14
  export * from './QIcon';
13
15
  export * from './QInputGroup';
@@ -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,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"}
@@ -4,24 +4,26 @@ import { QButton as m } from "./QButton/index.js";
4
4
  import { QButtonGroup as f } from "./QButtonGroup/index.js";
5
5
  import { QButtonToggle as n } from "./QButtonToggle/index.js";
6
6
  import { QCard as L } from "./QCard/index.js";
7
- import { QCheckbox as d } from "./QCheckbox/index.js";
8
- import { QCollapsible as s } from "./QCollapsible/index.js";
9
- import { QCombobox as I } from "./QCombobox/index.js";
10
- import { QDialog as g } from "./QDialog/index.js";
11
- import { QField as b } from "./QField/index.js";
12
- import { QIcon as B, QIconFont as C, QIconImg as G, QIconSvg as S } from "./QIcon/index.js";
13
- import { QInputGroup as F } from "./QInputGroup/index.js";
14
- import { QLineLoader as k } from "./QLineLoader/index.js";
15
- import { QList as A, QListItem as D, QListItemGroup as O } from "./QList/index.js";
16
- import { QOverlay as j } from "./QOverlay/index.js";
17
- import { QPopover as z } from "./QPopover/index.js";
18
- import { QPropertyList as H, QPropertyListGroup as J, QPropertyListPanel as K, QPropertyListRow as M } from "./QPropertyList/index.js";
19
- import { QSelect as U } from "./QSelect/index.js";
20
- import { QSkeletonLoader as W } from "./QSkeletonLoader/index.js";
21
- import { QSpinnerLoader as Y } from "./QSpinnerLoader/index.js";
22
- import { QTextField as _ } from "./QTextField/index.js";
23
- import { QThemeProvider as oo } from "./QThemeProvider/index.js";
24
- import { QTooltip as eo } from "./QTooltip/index.js";
7
+ import { QCheckbox as a } from "./QCheckbox/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";
25
27
  export {
26
28
  e as QAccordion,
27
29
  p as QBadge,
@@ -29,30 +31,32 @@ export {
29
31
  f as QButtonGroup,
30
32
  n as QButtonToggle,
31
33
  L as QCard,
32
- d as QCheckbox,
33
- s as QCollapsible,
34
- I as QCombobox,
35
- g as QDialog,
36
- b as QField,
37
- B as QIcon,
38
- C as QIconFont,
39
- G as QIconImg,
40
- S as QIconSvg,
41
- F as QInputGroup,
42
- k as QLineLoader,
43
- A as QList,
44
- D as QListItem,
45
- O as QListItemGroup,
46
- j as QOverlay,
47
- z as QPopover,
48
- H as QPropertyList,
49
- J as QPropertyListGroup,
50
- K as QPropertyListPanel,
51
- M as QPropertyListRow,
52
- U as QSelect,
53
- W as QSkeletonLoader,
54
- Y as QSpinnerLoader,
55
- _ as QTextField,
56
- oo as QThemeProvider,
57
- eo as QTooltip
34
+ a as QCheckbox,
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
58
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;
@@ -43,6 +43,10 @@ export type ComputePositionOptions = {
43
43
  * The offset to fine-tune the positioning of the overlay relative to the anchor element.
44
44
  */
45
45
  offset?: number;
46
+ /**
47
+ * The offset to fine-tune the positioning of the overlay relative to the anchor element (opposite to main axis).
48
+ */
49
+ crossOffset?: number;
46
50
  /**
47
51
  * Whether to compute the position of the overlay arrow.
48
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/composables/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;CACpB;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CA8BvB;AAmPD,gBAAgB;AAEhB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAGtD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAE7D"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/composables/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;CACpB;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CAkCvB;AAmQD,gBAAgB;AAEhB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAGtD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAE7D"}
@@ -1,130 +1,137 @@
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", 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
- let a;
1
+ function $(t, i, n, e) {
2
+ const o = (e == null ? void 0 : e.offset) ?? 0, r = (e == null ? void 0 : e.crossOffset) ?? 0, g = (e == null ? void 0 : e.placement) ?? "bottom", s = t.getBoundingClientRect(), u = i.getBoundingClientRect(), d = n == null ? void 0 : n.getBoundingClientRect(), h = C(s, u, g, o), l = I(s, u, h), b = y(l, h, o), p = O(b, h, r), c = A(p, u, h);
3
+ let w;
4
4
  if (e != null && e.arrow) {
5
- if (!g)
5
+ if (!d)
6
6
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
7
- a = A(m, u, s, g, r);
7
+ w = k(c, s, u, d, h);
8
8
  }
9
- return { overlayCoords: m, arrowCoords: a, placement: r };
9
+ return { overlayCoords: c, arrowCoords: w, placement: h };
10
10
  }
11
- function b(t, i, n, e) {
12
- const d = c(t, i, n, e);
13
- if (x(d)) {
14
- const o = w(n), s = {
11
+ function C(t, i, n, e) {
12
+ const o = a(t, i, n, e);
13
+ if (x(o)) {
14
+ const r = f(n), s = {
15
15
  top: "bottom",
16
16
  bottom: "top",
17
17
  left: "right",
18
18
  right: "left"
19
- }[o], g = c(
19
+ }[r], u = a(
20
20
  t,
21
21
  i,
22
22
  s,
23
23
  e
24
24
  );
25
- if (x(g))
25
+ if (x(u))
26
26
  return n;
27
- const r = O(n);
28
- return r ? `${s}-${r}` : s;
27
+ const d = S(n);
28
+ return d ? `${s}-${d}` : s;
29
29
  }
30
30
  return n;
31
31
  }
32
- function p(t, i, n) {
33
- const e = l(n), d = (u, s, g) => Math.min(Math.max(u, s), g), o = { ...t };
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;
32
+ function A(t, i, n) {
33
+ const e = m(n), o = (g, s, u) => Math.min(Math.max(g, s), u), r = { ...t };
34
+ return e === "x" ? r.x = o(t.x, 8, window.innerWidth - i.width - 8) : r.y = o(t.y, 8, window.innerHeight - i.height - 8), r;
35
35
  }
36
- function C(t, i, n) {
37
- const e = w(i);
36
+ function y(t, i, n) {
37
+ const e = f(i);
38
38
  return {
39
39
  x: t.x + (e === "left" ? -n : e === "right" ? n : 0),
40
40
  y: t.y + (e === "top" ? -n : e === "bottom" ? n : 0)
41
41
  };
42
42
  }
43
- function A(t, i, n, e, d) {
44
- if (l(d) === "y") {
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
- if (r > 0 && r < n.height - e.height)
43
+ function O(t, i, n) {
44
+ const e = f(i);
45
+ return {
46
+ x: t.x + (e === "top" || e === "bottom" ? n : 0),
47
+ y: t.y + (e === "right" || e === "left" ? n : 0)
48
+ };
49
+ }
50
+ function k(t, i, n, e, o) {
51
+ if (m(o) === "y") {
52
+ const g = i.top + i.height / 2, s = t.y + n.height / 2, u = s - g, d = n.height / 2 - u - e.height / 2 + 2;
53
+ if (d > 0 && d < n.height - e.height)
47
54
  return {
48
- y: r
55
+ y: d
49
56
  };
50
57
  } else {
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
- if (r > 0 && r < n.width - e.width)
58
+ const g = i.left + i.width / 2, s = t.x + n.width / 2, u = s - g, d = n.width / 2 - u - e.width / 2 + 2;
59
+ if (d > 0 && d < n.width - e.width)
53
60
  return {
54
- x: r
61
+ x: d
55
62
  };
56
63
  }
57
64
  }
58
- function k(t, i, n) {
59
- const [e, d] = n.split("-"), o = t.x + t.width / 2 - i.width / 2, u = t.y + t.height / 2 - i.height / 2;
65
+ function I(t, i, n) {
66
+ const [e, o] = n.split("-"), r = t.x + t.width / 2 - i.width / 2, g = t.y + t.height / 2 - i.height / 2;
60
67
  let s;
61
68
  switch (e) {
62
69
  case "top":
63
- s = { x: o, y: t.y - i.height };
70
+ s = { x: r, y: t.y - i.height };
64
71
  break;
65
72
  case "bottom":
66
- s = { x: o, y: t.y + t.height };
73
+ s = { x: r, y: t.y + t.height };
67
74
  break;
68
75
  case "left":
69
- s = { x: t.x - i.width, y: u };
76
+ s = { x: t.x - i.width, y: g };
70
77
  break;
71
78
  case "right":
72
- s = { x: t.x + t.width, y: u };
79
+ s = { x: t.x + t.width, y: g };
73
80
  break;
74
81
  default:
75
82
  throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
76
83
  }
77
- if (!d)
84
+ if (!o)
78
85
  return s;
79
- const r = l(n) === "y" ? "height" : "width", h = l(n), f = t[r] / 2 - i[r] / 2;
80
- switch (d) {
86
+ const d = m(n) === "y" ? "height" : "width", h = m(n), l = t[d] / 2 - i[d] / 2;
87
+ switch (o) {
81
88
  case "start":
82
- s[h] -= f;
89
+ s[h] -= l;
83
90
  break;
84
91
  case "end":
85
- s[h] += f;
92
+ s[h] += l;
86
93
  break;
87
94
  default:
88
- throw new Error(`[Quidgest UI] Invalid alignment value: ${d}`);
95
+ throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
89
96
  }
90
97
  return s;
91
98
  }
92
- function c(t, i, n, e) {
93
- const d = w(n);
94
- let o = 0;
95
- switch (d) {
99
+ function a(t, i, n, e) {
100
+ const o = f(n);
101
+ let r = 0;
102
+ switch (o) {
96
103
  case "top":
97
- o = t.top - (i.height + e);
104
+ r = t.top - (i.height + e);
98
105
  break;
99
106
  case "bottom":
100
- o = window.innerHeight - t.bottom - (i.height + e);
107
+ r = window.innerHeight - t.bottom - (i.height + e);
101
108
  break;
102
109
  case "left":
103
- o = t.left - (i.width + e);
110
+ r = t.left - (i.width + e);
104
111
  break;
105
112
  case "right":
106
- o = window.innerWidth - t.right - (i.width + e);
113
+ r = window.innerWidth - t.right - (i.width + e);
107
114
  break;
108
115
  default:
109
- throw new Error(`[Quidgest UI] Invalid side value: ${d}`);
116
+ throw new Error(`[Quidgest UI] Invalid side value: ${o}`);
110
117
  }
111
- return o;
118
+ return r;
112
119
  }
113
- function y(t) {
120
+ function M(t) {
114
121
  return t === "x" ? "y" : "x";
115
122
  }
116
- function I(t) {
117
- const i = w(t);
123
+ function P(t) {
124
+ const i = f(t);
118
125
  return ["left", "right"].includes(i) ? "x" : "y";
119
126
  }
120
- function l(t) {
121
- return y(I(t));
127
+ function m(t) {
128
+ return M(P(t));
122
129
  }
123
- function w(t) {
130
+ function f(t) {
124
131
  const [i] = t.split("-");
125
132
  return i;
126
133
  }
127
- function O(t) {
134
+ function S(t) {
128
135
  const [, i] = t.split("-");
129
136
  return i;
130
137
  }
@@ -132,11 +139,11 @@ function x(t) {
132
139
  return t < 0;
133
140
  }
134
141
  export {
135
- M as computePosition,
136
- l as getAlignmentAxis,
137
- O as getAlignmentFromPlacement,
138
- I as getMainAxis,
139
- y as getOppositeAxis,
140
- w as getSideFromPlacement,
142
+ $ as computePosition,
143
+ m as getAlignmentAxis,
144
+ S as getAlignmentFromPlacement,
145
+ P as getMainAxis,
146
+ M as getOppositeAxis,
147
+ f as getSideFromPlacement,
141
148
  x as isOutOfBounds
142
149
  };