@quidgest/ui 0.17.2 → 0.17.3

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 (330) hide show
  1. package/dist/json/api.json +1 -1
  2. package/dist/ui.esm.js +980 -9022
  3. package/dist/ui.js +971 -45
  4. package/dist/ui.min.js +792 -875
  5. package/dist/ui.scss +1 -1
  6. package/esm/_virtual/_plugin-vue_export-helper.js +7 -8
  7. package/esm/_virtual/_rolldown/runtime.js +11 -0
  8. package/esm/components/QAccordion/QAccordion.vue.js +45 -43
  9. package/esm/components/QAccordion/QAccordion2.vue.js +5 -0
  10. package/esm/components/QAccordion/QAccordionItem.vue.js +33 -39
  11. package/esm/components/QAccordion/QAccordionItem2.vue.js +5 -0
  12. package/esm/components/QAccordion/index.js +7 -8
  13. package/esm/components/QAvatar/QAvatar.vue.js +41 -48
  14. package/esm/components/QAvatar/QAvatar2.vue.js +5 -0
  15. package/esm/components/QAvatar/index.js +6 -6
  16. package/esm/components/QBadge/QBadge.vue.js +98 -142
  17. package/esm/components/QBadge/QBadge2.vue.js +5 -0
  18. package/esm/components/QBadge/constants.js +4 -11
  19. package/esm/components/QBadge/index.js +6 -6
  20. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +38 -49
  21. package/esm/components/QBadgeIndicator/QBadgeIndicator2.vue.js +5 -0
  22. package/esm/components/QBadgeIndicator/index.js +6 -6
  23. package/esm/components/QButton/QButton.vue.js +73 -84
  24. package/esm/components/QButton/QButton2.vue.js +5 -0
  25. package/esm/components/QButton/index.js +6 -6
  26. package/esm/components/QButtonGroup/QButtonGroup.vue.js +33 -37
  27. package/esm/components/QButtonGroup/QButtonGroup2.vue.js +5 -0
  28. package/esm/components/QButtonGroup/index.js +6 -6
  29. package/esm/components/QCard/QCard.vue.js +91 -133
  30. package/esm/components/QCard/QCard2.vue.js +5 -0
  31. package/esm/components/QCard/index.js +6 -6
  32. package/esm/components/QCarousel/QCarousel.vue.js +247 -354
  33. package/esm/components/QCarousel/QCarousel2.vue.js +5 -0
  34. package/esm/components/QCarousel/constants.js +10 -15
  35. package/esm/components/QCarousel/index.js +6 -6
  36. package/esm/components/QCheckbox/QCheckbox.vue.js +133 -143
  37. package/esm/components/QCheckbox/QCheckbox2.vue.js +5 -0
  38. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -32
  39. package/esm/components/QCheckbox/QCheckboxLabel2.vue.js +5 -0
  40. package/esm/components/QCheckbox/constants.js +6 -10
  41. package/esm/components/QCheckbox/index.js +7 -8
  42. package/esm/components/QCollapsible/QCollapsible.vue.js +90 -136
  43. package/esm/components/QCollapsible/QCollapsible2.vue.js +5 -0
  44. package/esm/components/QCollapsible/constants.js +5 -7
  45. package/esm/components/QCollapsible/index.js +6 -6
  46. package/esm/components/QColorPicker/QColorPicker.vue.js +96 -100
  47. package/esm/components/QColorPicker/QColorPicker2.vue.js +5 -0
  48. package/esm/components/QColorPicker/constants.js +4 -6
  49. package/esm/components/QColorPicker/index.js +6 -6
  50. package/esm/components/QCombobox/QCombobox.vue.js +316 -364
  51. package/esm/components/QCombobox/QCombobox2.vue.js +5 -0
  52. package/esm/components/QCombobox/constants.js +12 -13
  53. package/esm/components/QCombobox/index.js +6 -6
  54. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  55. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1119 -1449
  56. package/esm/components/QDateTimePicker/QDateTimePicker2.vue.js +5 -0
  57. package/esm/components/QDateTimePicker/constants.js +72 -91
  58. package/esm/components/QDateTimePicker/index.js +6 -6
  59. package/esm/components/QDefaultsProvider/QDefaultsProvider.vue.js +15 -15
  60. package/esm/components/QDefaultsProvider/QDefaultsProvider2.vue.js +5 -0
  61. package/esm/components/QDefaultsProvider/index.js +6 -6
  62. package/esm/components/QDialog/QDialog.vue.js +175 -226
  63. package/esm/components/QDialog/QDialog2.vue.js +5 -0
  64. package/esm/components/QDialog/QDialogProvider.vue.js +26 -35
  65. package/esm/components/QDialog/QDialogProvider2.vue.js +5 -0
  66. package/esm/components/QDialog/constants.js +11 -23
  67. package/esm/components/QDialog/index.js +7 -8
  68. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +63 -69
  69. package/esm/components/QDismissibleLayer/QDismissibleLayer2.vue.js +5 -0
  70. package/esm/components/QDismissibleLayer/index.js +6 -6
  71. package/esm/components/QDivider/QDivider.vue.js +39 -62
  72. package/esm/components/QDivider/QDivider2.vue.js +5 -0
  73. package/esm/components/QDivider/index.js +6 -6
  74. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +54 -64
  75. package/esm/components/QDropdownMenu/QDropdownMenu2.vue.js +5 -0
  76. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +196 -215
  77. package/esm/components/QDropdownMenu/QDropdownMenuContent2.vue.js +5 -0
  78. package/esm/components/QDropdownMenu/constants.js +4 -8
  79. package/esm/components/QDropdownMenu/index.js +6 -6
  80. package/esm/components/QField/QField.vue.js +74 -90
  81. package/esm/components/QField/QField2.vue.js +5 -0
  82. package/esm/components/QField/index.js +6 -6
  83. package/esm/components/QFileUpload/QFileUpload.vue.js +156 -241
  84. package/esm/components/QFileUpload/QFileUpload2.vue.js +5 -0
  85. package/esm/components/QFileUpload/constants.js +16 -27
  86. package/esm/components/QFileUpload/index.js +6 -6
  87. package/esm/components/QFocusWrap/QFocusWrap.vue.js +89 -118
  88. package/esm/components/QFocusWrap/QFocusWrap2.vue.js +5 -0
  89. package/esm/components/QFocusWrap/index.js +6 -6
  90. package/esm/components/QGrid/QCol.vue.js +33 -48
  91. package/esm/components/QGrid/QCol2.vue.js +5 -0
  92. package/esm/components/QGrid/QContainer.vue.js +11 -23
  93. package/esm/components/QGrid/QContainer2.vue.js +5 -0
  94. package/esm/components/QGrid/QRow.vue.js +24 -35
  95. package/esm/components/QGrid/QRow2.vue.js +5 -0
  96. package/esm/components/QGrid/QSpacer.vue.js +9 -9
  97. package/esm/components/QGrid/index.js +9 -12
  98. package/esm/components/QGroupBox/QGroupBox.vue.js +32 -43
  99. package/esm/components/QGroupBox/QGroupBox2.vue.js +5 -0
  100. package/esm/components/QGroupBox/index.js +6 -6
  101. package/esm/components/QIcon/InlineSvg.js +92 -129
  102. package/esm/components/QIcon/QIcon.vue.js +40 -42
  103. package/esm/components/QIcon/QIcon2.vue.js +5 -0
  104. package/esm/components/QIcon/QIconFont.vue.js +26 -20
  105. package/esm/components/QIcon/QIconFont2.vue.js +5 -0
  106. package/esm/components/QIcon/QIconImg.vue.js +23 -19
  107. package/esm/components/QIcon/QIconImg2.vue.js +5 -0
  108. package/esm/components/QIcon/QIconSvg.vue.js +40 -31
  109. package/esm/components/QIcon/QIconSvg2.vue.js +5 -0
  110. package/esm/components/QIcon/index.js +9 -12
  111. package/esm/components/QInputGroup/QInputGroup.vue.js +62 -89
  112. package/esm/components/QInputGroup/QInputGroup2.vue.js +5 -0
  113. package/esm/components/QInputGroup/index.js +6 -6
  114. package/esm/components/QLabel/QLabel.vue.js +33 -43
  115. package/esm/components/QLabel/QLabel2.vue.js +5 -0
  116. package/esm/components/QLabel/index.js +6 -6
  117. package/esm/components/QLineLoader/QLineLoader.vue.js +26 -26
  118. package/esm/components/QLineLoader/QLineLoader2.vue.js +5 -0
  119. package/esm/components/QLineLoader/index.js +6 -6
  120. package/esm/components/QList/QList.vue.js +229 -241
  121. package/esm/components/QList/QList2.vue.js +5 -0
  122. package/esm/components/QList/QListItem.vue.js +84 -118
  123. package/esm/components/QList/QListItem2.vue.js +5 -0
  124. package/esm/components/QList/QListItemGroup.vue.js +25 -28
  125. package/esm/components/QList/QListItemGroup2.vue.js +5 -0
  126. package/esm/components/QList/constants.js +6 -10
  127. package/esm/components/QList/index.js +8 -10
  128. package/esm/components/QMeter/QMeter.vue.js +39 -61
  129. package/esm/components/QMeter/QMeter2.vue.js +5 -0
  130. package/esm/components/QMeter/index.js +6 -6
  131. package/esm/components/QOverlay/QOverlay.vue.js +282 -322
  132. package/esm/components/QOverlay/QOverlay2.vue.js +5 -0
  133. package/esm/components/QOverlay/index.js +6 -6
  134. package/esm/components/QPasswordField/QPasswordField.vue.js +142 -163
  135. package/esm/components/QPasswordField/QPasswordField2.vue.js +5 -0
  136. package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +11 -27
  137. package/esm/components/QPasswordField/QPasswordFieldMessages2.vue.js +5 -0
  138. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +82 -103
  139. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay2.vue.js +5 -0
  140. package/esm/components/QPasswordField/constants.js +6 -10
  141. package/esm/components/QPasswordField/index.js +6 -6
  142. package/esm/components/QPopover/QPopover.vue.js +74 -95
  143. package/esm/components/QPopover/QPopover2.vue.js +5 -0
  144. package/esm/components/QPopover/index.js +6 -6
  145. package/esm/components/QPropertyList/QPropertyList.vue.js +109 -154
  146. package/esm/components/QPropertyList/QPropertyList2.vue.js +5 -0
  147. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +46 -68
  148. package/esm/components/QPropertyList/QPropertyListGroup2.vue.js +5 -0
  149. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +24 -47
  150. package/esm/components/QPropertyList/QPropertyListPanel2.vue.js +5 -0
  151. package/esm/components/QPropertyList/QPropertyListRow.vue.js +60 -80
  152. package/esm/components/QPropertyList/QPropertyListRow2.vue.js +5 -0
  153. package/esm/components/QPropertyList/constants.js +6 -13
  154. package/esm/components/QPropertyList/index.js +9 -12
  155. package/esm/components/QRadioGroup/QRadioButton.vue.js +99 -96
  156. package/esm/components/QRadioGroup/QRadioButton2.vue.js +5 -0
  157. package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -87
  158. package/esm/components/QRadioGroup/QRadioGroup2.vue.js +5 -0
  159. package/esm/components/QRadioGroup/index.js +7 -8
  160. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +49 -51
  161. package/esm/components/QRemoveScrollBar/QRemoveScrollBar2.vue.js +5 -0
  162. package/esm/components/QRemoveScrollBar/constants.js +4 -8
  163. package/esm/components/QRemoveScrollBar/index.js +6 -6
  164. package/esm/components/QRemoveScrollBar/utils/gap.js +24 -22
  165. package/esm/components/QRemoveScrollBar/utils/stylesheet.js +19 -20
  166. package/esm/components/QSelect/QSelect.vue.js +399 -583
  167. package/esm/components/QSelect/QSelect2.vue.js +5 -0
  168. package/esm/components/QSelect/constants.js +14 -15
  169. package/esm/components/QSelect/index.js +6 -6
  170. package/esm/components/QSidebar/QSidebar.vue.js +133 -157
  171. package/esm/components/QSidebar/QSidebar2.vue.js +5 -0
  172. package/esm/components/QSidebar/QSidebarAnchor.vue.js +79 -110
  173. package/esm/components/QSidebar/QSidebarAnchor2.vue.js +5 -0
  174. package/esm/components/QSidebar/QSidebarPanel.vue.js +68 -88
  175. package/esm/components/QSidebar/QSidebarPanel2.vue.js +5 -0
  176. package/esm/components/QSidebar/index.js +6 -6
  177. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +28 -35
  178. package/esm/components/QSkeletonLoader/QSkeletonLoader2.vue.js +5 -0
  179. package/esm/components/QSkeletonLoader/index.js +6 -6
  180. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +19 -21
  181. package/esm/components/QSpinnerLoader/QSpinnerLoader2.vue.js +5 -0
  182. package/esm/components/QSpinnerLoader/index.js +6 -6
  183. package/esm/components/QSwitch/QSwitch.vue.js +83 -124
  184. package/esm/components/QSwitch/QSwitch2.vue.js +5 -0
  185. package/esm/components/QSwitch/index.js +6 -6
  186. package/esm/components/QTextArea/QTextArea.vue.js +113 -110
  187. package/esm/components/QTextArea/QTextArea2.vue.js +5 -0
  188. package/esm/components/QTextArea/index.js +6 -6
  189. package/esm/components/QTextField/QTextField.vue.js +115 -118
  190. package/esm/components/QTextField/QTextField2.vue.js +5 -0
  191. package/esm/components/QTextField/index.js +7 -6
  192. package/esm/components/QTextField/types.js +5 -7
  193. package/esm/components/QThemeProvider/QThemeProvider.vue.js +31 -33
  194. package/esm/components/QThemeProvider/QThemeProvider2.vue.js +5 -0
  195. package/esm/components/QThemeProvider/index.js +6 -6
  196. package/esm/components/QToast/QToast.vue.js +140 -213
  197. package/esm/components/QToast/QToast2.vue.js +5 -0
  198. package/esm/components/QToast/QToaster.vue.js +38 -47
  199. package/esm/components/QToast/QToaster2.vue.js +5 -0
  200. package/esm/components/QToast/constants.js +4 -8
  201. package/esm/components/QToast/index.js +7 -8
  202. package/esm/components/QToggle/QToggle.vue.js +39 -42
  203. package/esm/components/QToggle/QToggle2.vue.js +5 -0
  204. package/esm/components/QToggle/index.js +6 -6
  205. package/esm/components/QToggleGroup/QToggleGroup.vue.js +55 -49
  206. package/esm/components/QToggleGroup/QToggleGroup2.vue.js +5 -0
  207. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +33 -43
  208. package/esm/components/QToggleGroup/QToggleGroupItem2.vue.js +5 -0
  209. package/esm/components/QToggleGroup/index.js +7 -8
  210. package/esm/components/QTooltip/QTooltip.vue.js +93 -113
  211. package/esm/components/QTooltip/QTooltip2.vue.js +5 -0
  212. package/esm/components/QTooltip/index.js +6 -6
  213. package/esm/components/__internal__/QChevron/QChevron.vue.js +28 -30
  214. package/esm/components/__internal__/QChevron/QChevron2.vue.js +5 -0
  215. package/esm/components/__internal__/QChevron/constants.js +4 -8
  216. package/esm/components/__internal__/QChevron/index.js +6 -6
  217. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -44
  218. package/esm/components/__internal__/QClearButton/QClearButton2.vue.js +5 -0
  219. package/esm/components/__internal__/QClearButton/constants.js +4 -11
  220. package/esm/components/__internal__/QClearButton/index.js +6 -6
  221. package/esm/components/index.js +117 -113
  222. package/esm/composables/defaults.js +22 -27
  223. package/esm/composables/overlay.js +125 -135
  224. package/esm/composables/theme.js +13 -20
  225. package/esm/composables/uid.js +7 -8
  226. package/esm/composables/useColor/index.js +41 -42
  227. package/esm/composables/useDialog/index.js +28 -27
  228. package/esm/composables/useDismissibleLayerStack/index.js +31 -30
  229. package/esm/composables/useDropZone/index.js +43 -61
  230. package/esm/composables/useGroup/index.js +33 -39
  231. package/esm/composables/useInputMask/index.d.ts.map +1 -1
  232. package/esm/composables/useInputMask/index.js +384 -396
  233. package/esm/composables/useTextareaAutosize/index.js +18 -21
  234. package/esm/composables/useToast/index.js +30 -32
  235. package/esm/composables/useToast/types.js +4 -4
  236. package/esm/framework.js +56 -59
  237. package/esm/index.js +14 -18
  238. package/esm/symbols/dismissibleLayer.js +4 -4
  239. package/esm/templates/index.js +9 -5
  240. package/esm/templates/theme.js +109 -110
  241. package/esm/utils/color/contrast.js +10 -11
  242. package/esm/utils/color/conversion.js +44 -54
  243. package/esm/utils/color/manipulate.js +14 -19
  244. package/esm/utils/color/merge.js +43 -48
  245. package/esm/utils/color/parse.js +23 -23
  246. package/esm/utils/date.js +456 -463
  247. package/esm/utils/download.js +14 -15
  248. package/esm/utils/getElement.js +5 -5
  249. package/esm/utils/index.js +48 -44
  250. package/esm/utils/isEmpty.js +5 -5
  251. package/esm/utils/isObject.js +5 -5
  252. package/esm/utils/merge.js +12 -16
  253. package/esm/utils/setupPropsProxy.js +21 -28
  254. package/esm/utils/string.js +7 -7
  255. package/esm/utils/theme.js +41 -57
  256. package/esm/vendors/uuid/dist/native.js +3 -4
  257. package/esm/vendors/uuid/dist/rng.js +10 -12
  258. package/esm/vendors/uuid/dist/stringify.js +7 -8
  259. package/esm/vendors/uuid/dist/v4.js +18 -15
  260. package/package.json +12 -12
  261. package/esm/components/QAccordion/QAccordion.vue2.js +0 -4
  262. package/esm/components/QAccordion/QAccordionItem.vue2.js +0 -4
  263. package/esm/components/QAvatar/QAvatar.vue2.js +0 -4
  264. package/esm/components/QBadge/QBadge.vue2.js +0 -4
  265. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +0 -4
  266. package/esm/components/QButton/QButton.vue2.js +0 -4
  267. package/esm/components/QButtonGroup/QButtonGroup.vue2.js +0 -4
  268. package/esm/components/QCard/QCard.vue2.js +0 -4
  269. package/esm/components/QCarousel/QCarousel.vue2.js +0 -4
  270. package/esm/components/QCheckbox/QCheckbox.vue2.js +0 -4
  271. package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +0 -4
  272. package/esm/components/QCollapsible/QCollapsible.vue2.js +0 -4
  273. package/esm/components/QColorPicker/QColorPicker.vue2.js +0 -4
  274. package/esm/components/QCombobox/QCombobox.vue2.js +0 -4
  275. package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +0 -4
  276. package/esm/components/QDefaultsProvider/QDefaultsProvider.vue2.js +0 -4
  277. package/esm/components/QDialog/QDialog.vue2.js +0 -4
  278. package/esm/components/QDialog/QDialogProvider.vue2.js +0 -4
  279. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +0 -4
  280. package/esm/components/QDivider/QDivider.vue2.js +0 -4
  281. package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +0 -4
  282. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +0 -4
  283. package/esm/components/QField/QField.vue2.js +0 -4
  284. package/esm/components/QFileUpload/QFileUpload.vue2.js +0 -4
  285. package/esm/components/QFocusWrap/QFocusWrap.vue2.js +0 -4
  286. package/esm/components/QGrid/QCol.vue2.js +0 -4
  287. package/esm/components/QGrid/QContainer.vue2.js +0 -4
  288. package/esm/components/QGrid/QRow.vue2.js +0 -4
  289. package/esm/components/QGroupBox/QGroupBox.vue2.js +0 -4
  290. package/esm/components/QIcon/QIcon.vue2.js +0 -4
  291. package/esm/components/QIcon/QIconFont.vue2.js +0 -4
  292. package/esm/components/QIcon/QIconImg.vue2.js +0 -4
  293. package/esm/components/QIcon/QIconSvg.vue2.js +0 -4
  294. package/esm/components/QInputGroup/QInputGroup.vue2.js +0 -4
  295. package/esm/components/QLabel/QLabel.vue2.js +0 -4
  296. package/esm/components/QLineLoader/QLineLoader.vue2.js +0 -4
  297. package/esm/components/QList/QList.vue2.js +0 -4
  298. package/esm/components/QList/QListItem.vue2.js +0 -4
  299. package/esm/components/QList/QListItemGroup.vue2.js +0 -4
  300. package/esm/components/QMeter/QMeter.vue2.js +0 -4
  301. package/esm/components/QOverlay/QOverlay.vue2.js +0 -4
  302. package/esm/components/QPasswordField/QPasswordField.vue2.js +0 -4
  303. package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +0 -4
  304. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +0 -4
  305. package/esm/components/QPopover/QPopover.vue2.js +0 -4
  306. package/esm/components/QPropertyList/QPropertyList.vue2.js +0 -4
  307. package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +0 -4
  308. package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +0 -4
  309. package/esm/components/QPropertyList/QPropertyListRow.vue2.js +0 -4
  310. package/esm/components/QRadioGroup/QRadioButton.vue2.js +0 -4
  311. package/esm/components/QRadioGroup/QRadioGroup.vue2.js +0 -4
  312. package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +0 -4
  313. package/esm/components/QSelect/QSelect.vue2.js +0 -4
  314. package/esm/components/QSidebar/QSidebar.vue2.js +0 -4
  315. package/esm/components/QSidebar/QSidebarAnchor.vue2.js +0 -4
  316. package/esm/components/QSidebar/QSidebarPanel.vue2.js +0 -4
  317. package/esm/components/QSkeletonLoader/QSkeletonLoader.vue2.js +0 -4
  318. package/esm/components/QSpinnerLoader/QSpinnerLoader.vue2.js +0 -4
  319. package/esm/components/QSwitch/QSwitch.vue2.js +0 -4
  320. package/esm/components/QTextArea/QTextArea.vue2.js +0 -4
  321. package/esm/components/QTextField/QTextField.vue2.js +0 -4
  322. package/esm/components/QThemeProvider/QThemeProvider.vue2.js +0 -4
  323. package/esm/components/QToast/QToast.vue2.js +0 -4
  324. package/esm/components/QToast/QToaster.vue2.js +0 -4
  325. package/esm/components/QToggle/QToggle.vue2.js +0 -4
  326. package/esm/components/QToggleGroup/QToggleGroup.vue2.js +0 -4
  327. package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +0 -4
  328. package/esm/components/QTooltip/QTooltip.vue2.js +0 -4
  329. package/esm/components/__internal__/QChevron/QChevron.vue2.js +0 -4
  330. package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +0 -4
@@ -1,11 +1,4 @@
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
- };
1
+ //#region src/components/__internal__/QClearButton/constants.ts
2
+ var e = { clearValue: "Clear value" }, t = { clear: { icon: "close" } };
3
+ //#endregion
4
+ export { t as DEFAULT_ICONS, e as DEFAULT_TEXTS };
@@ -1,6 +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
- };
1
+ import { setupPropsProxy as e } from "../../../utils/setupPropsProxy.js";
2
+ import t from "./QClearButton2.vue.js";
3
+ //#region src/components/__internal__/QClearButton/index.ts
4
+ var n = e(t);
5
+ //#endregion
6
+ export { n as QClearButton };
@@ -1,113 +1,117 @@
1
- import { QAccordion as e, QAccordionItem as t } from "./QAccordion/index.js";
2
- import { QAvatar as Q } from "./QAvatar/index.js";
3
- import { QBadge as x } from "./QBadge/index.js";
4
- import { QBadgeIndicator as i } from "./QBadgeIndicator/index.js";
5
- import { QButton as l } from "./QButton/index.js";
6
- import { QButtonGroup as n } from "./QButtonGroup/index.js";
7
- import { QCard as c } from "./QCard/index.js";
8
- import { QCarousel as L } from "./QCarousel/index.js";
9
- import { QCheckbox as g, QCheckboxLabel as P } from "./QCheckbox/index.js";
10
- import { QCollapsible as b } from "./QCollapsible/index.js";
11
- import { QColorPicker as v } from "./QColorPicker/index.js";
12
- import { QCombobox as G } from "./QCombobox/index.js";
13
- import { QDateTimePicker as F } from "./QDateTimePicker/index.js";
14
- import { QDefaultsProvider as B } from "./QDefaultsProvider/index.js";
15
- import { QDialog as w, QDialogProvider as A } from "./QDialog/index.js";
16
- import { QDismissibleLayer as R } from "./QDismissibleLayer/index.js";
17
- import { QDivider as M } from "./QDivider/index.js";
18
- import { QDropdownMenu as O } from "./QDropdownMenu/index.js";
19
- import { QField as X } from "./QField/index.js";
20
- import { QFileUpload as j } from "./QFileUpload/index.js";
21
- import { QFocusWrap as z } from "./QFocusWrap/index.js";
22
- import { QCol as J, QContainer as K, QRow as N, QSpacer as V } from "./QGrid/index.js";
23
- import { QGroupBox as Z } from "./QGroupBox/index.js";
24
- import { QIcon as oo, QIconFont as ro, QIconImg as eo, QIconSvg as to } from "./QIcon/index.js";
25
- import { QInputGroup as Qo } from "./QInputGroup/index.js";
26
- import { QLabel as xo } from "./QLabel/index.js";
27
- import { QLineLoader as io } from "./QLineLoader/index.js";
28
- import { QList as lo, QListItem as no, QListItemGroup as so } from "./QList/index.js";
29
- import { QMeter as uo } from "./QMeter/index.js";
30
- import { QOverlay as To } from "./QOverlay/index.js";
31
- import { QPasswordField as Po } from "./QPasswordField/index.js";
32
- import { QPopover as bo } from "./QPopover/index.js";
33
- import { QPropertyList as vo, QPropertyListGroup as Do, QPropertyListPanel as Go, QPropertyListRow as So } from "./QPropertyList/index.js";
34
- import { QRadioButton as yo, QRadioGroup as Bo } from "./QRadioGroup/index.js";
35
- import { QSelect as wo } from "./QSelect/index.js";
36
- import { QSidebar as ho } from "./QSidebar/index.js";
37
- import { QSkeletonLoader as Eo } from "./QSkeletonLoader/index.js";
38
- import { QSpinnerLoader as Uo } from "./QSpinnerLoader/index.js";
39
- import { QSwitch as Wo } from "./QSwitch/index.js";
40
- import { QTextArea as _o } from "./QTextArea/index.js";
41
- import { QTextField as qo } from "./QTextField/index.js";
42
- import { QThemeProvider as Ho } from "./QThemeProvider/index.js";
43
- import { QToast as Ko, QToaster as No } from "./QToast/index.js";
44
- import { QToggle as Yo } from "./QToggle/index.js";
45
- import { QToggleGroup as $o, QToggleGroupItem as or } from "./QToggleGroup/index.js";
46
- import { QTooltip as er } from "./QTooltip/index.js";
47
- import { DEFAULT_TEXTS as pr } from "./QTextField/types.js";
48
- export {
49
- pr as DEFAULT_TEXTS,
50
- e as QAccordion,
51
- t as QAccordionItem,
52
- Q as QAvatar,
53
- x as QBadge,
54
- i as QBadgeIndicator,
55
- l as QButton,
56
- n as QButtonGroup,
57
- c as QCard,
58
- L as QCarousel,
59
- g as QCheckbox,
60
- P as QCheckboxLabel,
61
- J as QCol,
62
- b as QCollapsible,
63
- v as QColorPicker,
64
- G as QCombobox,
65
- K as QContainer,
66
- F as QDateTimePicker,
67
- B as QDefaultsProvider,
68
- w as QDialog,
69
- A as QDialogProvider,
70
- R as QDismissibleLayer,
71
- M as QDivider,
72
- O as QDropdownMenu,
73
- X as QField,
74
- j as QFileUpload,
75
- z as QFocusWrap,
76
- Z as QGroupBox,
77
- oo as QIcon,
78
- ro as QIconFont,
79
- eo as QIconImg,
80
- to as QIconSvg,
81
- Qo as QInputGroup,
82
- xo as QLabel,
83
- io as QLineLoader,
84
- lo as QList,
85
- no as QListItem,
86
- so as QListItemGroup,
87
- uo as QMeter,
88
- To as QOverlay,
89
- Po as QPasswordField,
90
- bo as QPopover,
91
- vo as QPropertyList,
92
- Do as QPropertyListGroup,
93
- Go as QPropertyListPanel,
94
- So as QPropertyListRow,
95
- yo as QRadioButton,
96
- Bo as QRadioGroup,
97
- N as QRow,
98
- wo as QSelect,
99
- ho as QSidebar,
100
- Eo as QSkeletonLoader,
101
- V as QSpacer,
102
- Uo as QSpinnerLoader,
103
- Wo as QSwitch,
104
- _o as QTextArea,
105
- qo as QTextField,
106
- Ho as QThemeProvider,
107
- Ko as QToast,
108
- No as QToaster,
109
- Yo as QToggle,
110
- $o as QToggleGroup,
111
- or as QToggleGroupItem,
112
- er as QTooltip
113
- };
1
+ import { __exportAll as ee } from "../_virtual/_rolldown/runtime.js";
2
+ import { QSpinnerLoader as e } from "./QSpinnerLoader/index.js";
3
+ import { QButton as t } from "./QButton/index.js";
4
+ import { QCard as n } from "./QCard/index.js";
5
+ import { QIcon as r, QIconFont as i, QIconImg as a, QIconSvg as o } from "./QIcon/index.js";
6
+ import { QCollapsible as s } from "./QCollapsible/index.js";
7
+ import { QAccordion as c, QAccordionItem as l } from "./QAccordion/index.js";
8
+ import { QAvatar as u } from "./QAvatar/index.js";
9
+ import { QButtonGroup as d } from "./QButtonGroup/index.js";
10
+ import { QBadge as f } from "./QBadge/index.js";
11
+ import { QBadgeIndicator as p } from "./QBadgeIndicator/index.js";
12
+ import { QSkeletonLoader as m } from "./QSkeletonLoader/index.js";
13
+ import { QCarousel as h } from "./QCarousel/index.js";
14
+ import { QLabel as g } from "./QLabel/index.js";
15
+ import { QCheckbox as _, QCheckboxLabel as v } from "./QCheckbox/index.js";
16
+ import { QField as y } from "./QField/index.js";
17
+ import { DEFAULT_TEXTS as b } from "./QTextField/types.js";
18
+ import { QTextField as x } from "./QTextField/index.js";
19
+ import { QColorPicker as S } from "./QColorPicker/index.js";
20
+ import { QList as C, QListItem as w, QListItemGroup as T } from "./QList/index.js";
21
+ import { QDismissibleLayer as E } from "./QDismissibleLayer/index.js";
22
+ import { QFocusWrap as D } from "./QFocusWrap/index.js";
23
+ import { QOverlay as O } from "./QOverlay/index.js";
24
+ import { QCombobox as k } from "./QCombobox/index.js";
25
+ import { QSwitch as A } from "./QSwitch/index.js";
26
+ import { QDateTimePicker as j } from "./QDateTimePicker/index.js";
27
+ import { QDefaultsProvider as M } from "./QDefaultsProvider/index.js";
28
+ import { QDialog as N, QDialogProvider as P } from "./QDialog/index.js";
29
+ import { QDivider as F } from "./QDivider/index.js";
30
+ import { QDropdownMenu as te } from "./QDropdownMenu/index.js";
31
+ import { QFileUpload as I } from "./QFileUpload/index.js";
32
+ import { QCol as L, QContainer as R, QRow as z, QSpacer as B } from "./QGrid/index.js";
33
+ import { QGroupBox as V } from "./QGroupBox/index.js";
34
+ import { QInputGroup as H } from "./QInputGroup/index.js";
35
+ import { QLineLoader as U } from "./QLineLoader/index.js";
36
+ import { QMeter as W } from "./QMeter/index.js";
37
+ import { QPasswordField as G } from "./QPasswordField/index.js";
38
+ import { QPopover as K } from "./QPopover/index.js";
39
+ import { QPropertyList as q, QPropertyListGroup as J, QPropertyListPanel as Y, QPropertyListRow as X } from "./QPropertyList/index.js";
40
+ import { QRadioButton as Z, QRadioGroup as Q } from "./QRadioGroup/index.js";
41
+ import { QSelect as $ } from "./QSelect/index.js";
42
+ import { QToggle as ne } from "./QToggle/index.js";
43
+ import { QSidebar as re } from "./QSidebar/index.js";
44
+ import { QTextArea as ie } from "./QTextArea/index.js";
45
+ import { QThemeProvider as ae } from "./QThemeProvider/index.js";
46
+ import { QToast as oe, QToaster as se } from "./QToast/index.js";
47
+ import { QToggleGroup as ce, QToggleGroupItem as le } from "./QToggleGroup/index.js";
48
+ import { QTooltip as ue } from "./QTooltip/index.js";
49
+ //#region src/components/index.ts
50
+ var de = /* @__PURE__ */ ee({
51
+ DEFAULT_TEXTS: () => b,
52
+ QAccordion: () => c,
53
+ QAccordionItem: () => l,
54
+ QAvatar: () => u,
55
+ QBadge: () => f,
56
+ QBadgeIndicator: () => p,
57
+ QButton: () => t,
58
+ QButtonGroup: () => d,
59
+ QCard: () => n,
60
+ QCarousel: () => h,
61
+ QCheckbox: () => _,
62
+ QCheckboxLabel: () => v,
63
+ QCol: () => L,
64
+ QCollapsible: () => s,
65
+ QColorPicker: () => S,
66
+ QCombobox: () => k,
67
+ QContainer: () => R,
68
+ QDateTimePicker: () => j,
69
+ QDefaultsProvider: () => M,
70
+ QDialog: () => N,
71
+ QDialogProvider: () => P,
72
+ QDismissibleLayer: () => E,
73
+ QDivider: () => F,
74
+ QDropdownMenu: () => te,
75
+ QField: () => y,
76
+ QFileUpload: () => I,
77
+ QFocusWrap: () => D,
78
+ QGroupBox: () => V,
79
+ QIcon: () => r,
80
+ QIconFont: () => i,
81
+ QIconImg: () => a,
82
+ QIconSvg: () => o,
83
+ QInputGroup: () => H,
84
+ QLabel: () => g,
85
+ QLineLoader: () => U,
86
+ QList: () => C,
87
+ QListItem: () => w,
88
+ QListItemGroup: () => T,
89
+ QMeter: () => W,
90
+ QOverlay: () => O,
91
+ QPasswordField: () => G,
92
+ QPopover: () => K,
93
+ QPropertyList: () => q,
94
+ QPropertyListGroup: () => J,
95
+ QPropertyListPanel: () => Y,
96
+ QPropertyListRow: () => X,
97
+ QRadioButton: () => Z,
98
+ QRadioGroup: () => Q,
99
+ QRow: () => z,
100
+ QSelect: () => $,
101
+ QSidebar: () => re,
102
+ QSkeletonLoader: () => m,
103
+ QSpacer: () => B,
104
+ QSpinnerLoader: () => e,
105
+ QSwitch: () => A,
106
+ QTextArea: () => ie,
107
+ QTextField: () => x,
108
+ QThemeProvider: () => ae,
109
+ QToast: () => oe,
110
+ QToaster: () => se,
111
+ QToggle: () => ne,
112
+ QToggleGroup: () => ce,
113
+ QToggleGroupItem: () => le,
114
+ QTooltip: () => ue
115
+ });
116
+ //#endregion
117
+ export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, L as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, R as QContainer, j as QDateTimePicker, M as QDefaultsProvider, N as QDialog, P as QDialogProvider, E as QDismissibleLayer, F as QDivider, te as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, V as QGroupBox, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, H as QInputGroup, g as QLabel, U as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, W as QMeter, O as QOverlay, G as QPasswordField, K as QPopover, q as QPropertyList, J as QPropertyListGroup, Y as QPropertyListPanel, X as QPropertyListRow, Z as QRadioButton, Q as QRadioGroup, z as QRow, $ as QSelect, re as QSidebar, m as QSkeletonLoader, B as QSpacer, e as QSpinnerLoader, A as QSwitch, ie as QTextArea, x as QTextField, ae as QThemeProvider, oe as QToast, se as QToaster, ne as QToggle, ce as QToggleGroup, le as QToggleGroupItem, ue as QTooltip, de as components_exports };
@@ -1,30 +1,25 @@
1
- import { getCurrentInstance as d, computed as a, ref as m, toValue as p, provide as v, inject as D } from "vue";
2
- import { isEmpty as s } from "../utils/isEmpty.js";
3
- import { merge as f } from "../utils/merge.js";
4
- const i = "q-defaults";
5
- function I() {
6
- var u, r;
7
- const e = d();
8
- if (!e)
9
- throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
10
- const t = e.type.name ?? e.type.__name;
11
- if (!t) throw new Error("[Quidgest UI] Could not determine component name");
12
- const n = l(), o = (u = n.value) == null ? void 0 : u.Global, c = (r = n.value) == null ? void 0 : r[t];
13
- return a(() => f(o, c));
1
+ import { isEmpty as e } from "../utils/isEmpty.js";
2
+ import { merge as t } from "../utils/merge.js";
3
+ import { computed as n, getCurrentInstance as r, inject as i, provide as a, ref as o, toValue as s } from "vue";
4
+ //#region src/composables/defaults.ts
5
+ var c = "q-defaults";
6
+ function l() {
7
+ let e = r();
8
+ if (!e) throw Error("[Quidgest UI] useDefaults must be called from inside a setup function");
9
+ let i = e.type.name ?? e.type.__name;
10
+ if (!i) throw Error("[Quidgest UI] Could not determine component name");
11
+ let a = d(), o = a.value?.Global, s = a.value?.[i];
12
+ return n(() => t(o, s));
14
13
  }
15
- function U(e) {
16
- if (s(e)) return;
17
- const t = l(), n = m(p(e)), o = a(() => s(n.value) ? t.value : f(t.value, n.value));
18
- v(i, o);
14
+ function u(r) {
15
+ if (e(r)) return;
16
+ let i = d(), l = o(s(r));
17
+ a(c, n(() => e(l.value) ? i.value : t(i.value, l.value)));
19
18
  }
20
- function l() {
21
- const e = D(i, void 0);
22
- if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
23
- return e;
19
+ function d() {
20
+ let e = i(c, void 0);
21
+ if (!e) throw Error("[Quidgest UI] Could not find defaults instance");
22
+ return e;
24
23
  }
25
- export {
26
- i as DEFAULTS_SYMBOL,
27
- l as injectDefaults,
28
- U as provideDefaults,
29
- I as useDefaults
30
- };
24
+ //#endregion
25
+ export { c as DEFAULTS_SYMBOL, d as injectDefaults, u as provideDefaults, l as useDefaults };
@@ -1,149 +1,139 @@
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
- if (e != null && e.arrow) {
5
- if (!d)
6
- throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
7
- w = k(c, s, u, d, h);
8
- }
9
- return { overlayCoords: c, arrowCoords: w, placement: h };
1
+ //#region src/composables/overlay.ts
2
+ var e = 8;
3
+ function t(e, t, c, l) {
4
+ let u = l?.offset ?? 0, d = l?.crossOffset ?? 0, f = l?.placement ?? "bottom", p = e.getBoundingClientRect(), m = t.getBoundingClientRect(), h = c?.getBoundingClientRect(), g = n(p, m, f, u), _ = r(a(i(s(p, m, g), g, u), g, d), m, g), v;
5
+ if (l?.arrow) {
6
+ if (!h) throw Error("[Quidgest UI] The arrow element must exist to compute its position");
7
+ v = o(_, p, m, h, g);
8
+ }
9
+ return {
10
+ overlayCoords: _,
11
+ arrowCoords: v,
12
+ placement: g
13
+ };
10
14
  }
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
- top: "bottom",
16
- bottom: "top",
17
- left: "right",
18
- right: "left"
19
- }[r], u = a(
20
- t,
21
- i,
22
- s,
23
- e
24
- );
25
- if (x(u))
26
- return n;
27
- const d = S(n);
28
- return d ? `${s}-${d}` : s;
29
- }
30
- return n;
15
+ function n(e, t, n, r) {
16
+ if (m(c(e, t, n, r))) {
17
+ let i = {
18
+ top: "bottom",
19
+ bottom: "top",
20
+ left: "right",
21
+ right: "left"
22
+ }[f(n)];
23
+ if (m(c(e, t, i, r))) return n;
24
+ let a = p(n);
25
+ return a ? `${i}-${a}` : i;
26
+ }
27
+ return n;
31
28
  }
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;
29
+ function r(t, n, r) {
30
+ let i = d(r), a = (e, t, n) => Math.min(Math.max(e, t), n), o = { ...t };
31
+ return i === "x" ? o.x = a(t.x, e, window.innerWidth - n.width - e) : o.y = a(t.y, e, window.innerHeight - n.height - e), o;
35
32
  }
36
- function y(t, i, n) {
37
- const e = f(i);
38
- return {
39
- x: t.x + (e === "left" ? -n : e === "right" ? n : 0),
40
- y: t.y + (e === "top" ? -n : e === "bottom" ? n : 0)
41
- };
33
+ function i(e, t, n) {
34
+ let r = f(t);
35
+ return {
36
+ x: e.x + (r === "left" ? -n : r === "right" ? n : 0),
37
+ y: e.y + (r === "top" ? -n : r === "bottom" ? n : 0)
38
+ };
42
39
  }
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
- };
40
+ function a(e, t, n) {
41
+ let r = f(t);
42
+ return {
43
+ x: e.x + (r === "top" || r === "bottom" ? n : 0),
44
+ y: e.y + (r === "right" || r === "left" ? n : 0)
45
+ };
49
46
  }
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)
54
- return {
55
- y: d
56
- };
57
- } else {
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)
60
- return {
61
- x: d
62
- };
63
- }
47
+ function o(e, t, n, r, i) {
48
+ if (d(i) === "y") {
49
+ let i = t.top + t.height / 2, a = e.y + n.height / 2 - i, o = n.height / 2 - a - r.height / 2 + 2;
50
+ if (o > 0 && o < n.height - r.height) return { y: o };
51
+ } else {
52
+ let i = t.left + t.width / 2, a = e.x + n.width / 2 - i, o = n.width / 2 - a - r.width / 2 + 2;
53
+ if (o > 0 && o < n.width - r.width) return { x: o };
54
+ }
64
55
  }
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;
67
- let s;
68
- switch (e) {
69
- case "top":
70
- s = { x: r, y: t.y - i.height };
71
- break;
72
- case "bottom":
73
- s = { x: r, y: t.y + t.height };
74
- break;
75
- case "left":
76
- s = { x: t.x - i.width, y: g };
77
- break;
78
- case "right":
79
- s = { x: t.x + t.width, y: g };
80
- break;
81
- default:
82
- throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
83
- }
84
- if (!o)
85
- return s;
86
- const d = m(n) === "y" ? "height" : "width", h = m(n), l = t[d] / 2 - i[d] / 2;
87
- switch (o) {
88
- case "start":
89
- s[h] -= l;
90
- break;
91
- case "end":
92
- s[h] += l;
93
- break;
94
- default:
95
- throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
96
- }
97
- return s;
56
+ function s(e, t, n) {
57
+ let [r, i] = n.split("-"), a = e.x + e.width / 2 - t.width / 2, o = e.y + e.height / 2 - t.height / 2, s;
58
+ switch (r) {
59
+ case "top":
60
+ s = {
61
+ x: a,
62
+ y: e.y - t.height
63
+ };
64
+ break;
65
+ case "bottom":
66
+ s = {
67
+ x: a,
68
+ y: e.y + e.height
69
+ };
70
+ break;
71
+ case "left":
72
+ s = {
73
+ x: e.x - t.width,
74
+ y: o
75
+ };
76
+ break;
77
+ case "right":
78
+ s = {
79
+ x: e.x + e.width,
80
+ y: o
81
+ };
82
+ break;
83
+ default: throw Error(`[Quidgest UI] Invalid placement value: ${n}`);
84
+ }
85
+ if (!i) return s;
86
+ let c = d(n) === "y" ? "height" : "width", l = d(n), u = e[c] / 2 - t[c] / 2;
87
+ switch (i) {
88
+ case "start":
89
+ s[l] -= u;
90
+ break;
91
+ case "end":
92
+ s[l] += u;
93
+ break;
94
+ default: throw Error(`[Quidgest UI] Invalid alignment value: ${i}`);
95
+ }
96
+ return s;
98
97
  }
99
- function a(t, i, n, e) {
100
- const o = f(n);
101
- let r = 0;
102
- switch (o) {
103
- case "top":
104
- r = t.top - (i.height + e);
105
- break;
106
- case "bottom":
107
- r = window.innerHeight - t.bottom - (i.height + e);
108
- break;
109
- case "left":
110
- r = t.left - (i.width + e);
111
- break;
112
- case "right":
113
- r = window.innerWidth - t.right - (i.width + e);
114
- break;
115
- default:
116
- throw new Error(`[Quidgest UI] Invalid side value: ${o}`);
117
- }
118
- return r;
98
+ function c(e, t, n, r) {
99
+ let i = f(n), a = 0;
100
+ switch (i) {
101
+ case "top":
102
+ a = e.top - (t.height + r);
103
+ break;
104
+ case "bottom":
105
+ a = window.innerHeight - e.bottom - (t.height + r);
106
+ break;
107
+ case "left":
108
+ a = e.left - (t.width + r);
109
+ break;
110
+ case "right":
111
+ a = window.innerWidth - e.right - (t.width + r);
112
+ break;
113
+ default: throw Error(`[Quidgest UI] Invalid side value: ${i}`);
114
+ }
115
+ return a;
119
116
  }
120
- function M(t) {
121
- return t === "x" ? "y" : "x";
117
+ function l(e) {
118
+ return e === "x" ? "y" : "x";
122
119
  }
123
- function P(t) {
124
- const i = f(t);
125
- return ["left", "right"].includes(i) ? "x" : "y";
120
+ function u(e) {
121
+ let t = f(e);
122
+ return ["left", "right"].includes(t) ? "x" : "y";
126
123
  }
127
- function m(t) {
128
- return M(P(t));
124
+ function d(e) {
125
+ return l(u(e));
129
126
  }
130
- function f(t) {
131
- const [i] = t.split("-");
132
- return i;
127
+ function f(e) {
128
+ let [t] = e.split("-");
129
+ return t;
133
130
  }
134
- function S(t) {
135
- const [, i] = t.split("-");
136
- return i;
131
+ function p(e) {
132
+ let [, t] = e.split("-");
133
+ return t;
137
134
  }
138
- function x(t) {
139
- return t < 0;
135
+ function m(e) {
136
+ return e < 0;
140
137
  }
141
- export {
142
- $ as computePosition,
143
- m as getAlignmentAxis,
144
- S as getAlignmentFromPlacement,
145
- P as getMainAxis,
146
- M as getOppositeAxis,
147
- f as getSideFromPlacement,
148
- x as isOutOfBounds
149
- };
138
+ //#endregion
139
+ export { t as computePosition, d as getAlignmentAxis, p as getAlignmentFromPlacement, u as getMainAxis, l as getOppositeAxis, f as getSideFromPlacement, m as isOutOfBounds };