sit-onyx 1.0.0-beta.99 → 1.0.0

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 (366) hide show
  1. package/README.md +1 -5
  2. package/dist/components/OnyxAccordion/OnyxAccordion.d.vue.ts +26 -0
  3. package/dist/components/OnyxAccordion/types.d.ts +45 -0
  4. package/dist/components/OnyxAccordionItem/OnyxAccordionItem.d.vue.ts +37 -0
  5. package/dist/components/OnyxAccordionItem/types.d.ts +17 -0
  6. package/dist/components/OnyxAlertModal/OnyxAlertModal.d.vue.ts +69 -0
  7. package/dist/components/OnyxAlertModal/types.d.ts +8 -0
  8. package/dist/components/OnyxAppLayout/OnyxAppLayout.d.vue.ts +50 -0
  9. package/dist/components/OnyxAppLayout/types.d.ts +3 -1
  10. package/dist/components/OnyxAvatar/OnyxAvatar.d.vue.ts +5 -0
  11. package/dist/components/OnyxAvatar/types.d.ts +16 -4
  12. package/dist/components/OnyxAvatarStack/{OnyxAvatarStack.vue.d.ts → OnyxAvatarStack.d.vue.ts} +1 -1
  13. package/dist/components/OnyxBadge/{OnyxBadge.vue.d.ts → OnyxBadge.d.vue.ts} +4 -4
  14. package/dist/components/OnyxBadge/types.d.ts +2 -2
  15. package/dist/components/{OnyxDialog/OnyxDialog.vue.d.ts → OnyxBasicDialog/OnyxBasicDialog.d.vue.ts} +12 -7
  16. package/dist/components/OnyxBasicDialog/types.d.ts +35 -0
  17. package/dist/components/OnyxBasicPopover/OnyxBasicPopover.d.vue.ts +64 -0
  18. package/dist/components/OnyxBasicPopover/types.d.ts +37 -0
  19. package/dist/components/OnyxBottomBar/OnyxBottomBar.d.vue.ts +36 -0
  20. package/dist/components/OnyxBottomBar/types.d.ts +7 -0
  21. package/dist/components/OnyxBreadcrumb/OnyxBreadcrumb.d.vue.ts +32 -0
  22. package/dist/components/OnyxBreadcrumb/types.d.ts +32 -0
  23. package/dist/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.d.vue.ts +33 -0
  24. package/dist/components/OnyxBreadcrumbItem/types.d.ts +15 -0
  25. package/dist/components/OnyxButton/ButtonOrLinkLayout.d.vue.ts +33 -0
  26. package/dist/components/OnyxButton/OnyxButton.d.vue.ts +26 -0
  27. package/dist/components/OnyxButton/types.d.ts +14 -4
  28. package/dist/components/{OnyxHeadline/OnyxHeadline.vue.d.ts → OnyxCard/OnyxCard.d.vue.ts} +6 -4
  29. package/dist/components/OnyxCard/types.d.ts +9 -0
  30. package/dist/components/OnyxCheckbox/{OnyxCheckbox.vue.d.ts → OnyxCheckbox.d.vue.ts} +7 -7
  31. package/dist/components/OnyxCheckbox/types.d.ts +3 -5
  32. package/dist/components/OnyxCheckboxGroup/{OnyxCheckboxGroup.vue.d.ts → OnyxCheckboxGroup.d.vue.ts} +7 -7
  33. package/dist/components/OnyxCheckboxGroup/types.d.ts +9 -20
  34. package/dist/components/OnyxDataGrid/OnyxDataGrid.d.vue.ts +16 -0
  35. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/{OnyxDataGridRenderer.vue.d.ts → OnyxDataGridRenderer.d.vue.ts} +6 -8
  36. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +34 -14
  37. package/dist/components/OnyxDataGrid/features/{HeaderCell.vue.d.ts → HeaderCell.d.vue.ts} +1 -1
  38. package/dist/components/OnyxDataGrid/features/all.d.ts +15 -2
  39. package/dist/components/OnyxDataGrid/features/base/base.d.ts +52 -0
  40. package/dist/components/OnyxDataGrid/features/base/types.d.ts +8 -0
  41. package/dist/components/OnyxDataGrid/features/filtering/filtering.d.ts +31 -0
  42. package/dist/components/OnyxDataGrid/features/filtering/types.d.ts +66 -0
  43. package/dist/components/OnyxDataGrid/features/hideColumns/hideColumns.d.ts +43 -0
  44. package/dist/components/OnyxDataGrid/features/hideColumns/types.d.ts +13 -0
  45. package/dist/components/OnyxDataGrid/features/index.d.ts +225 -15
  46. package/dist/components/OnyxDataGrid/features/pagination/pagination.d.ts +28 -0
  47. package/dist/components/OnyxDataGrid/features/pagination/types.d.ts +51 -0
  48. package/dist/components/OnyxDataGrid/features/renderer.d.ts +71 -0
  49. package/dist/components/OnyxDataGrid/features/resizing/resizing.d.ts +51 -0
  50. package/dist/components/OnyxDataGrid/features/resizing/types.d.ts +7 -0
  51. package/dist/components/OnyxDataGrid/features/selection/selection.d.ts +17 -0
  52. package/dist/components/OnyxDataGrid/features/selection/types.d.ts +39 -0
  53. package/dist/components/OnyxDataGrid/features/sorting/{SortAction.vue.d.ts → SortAction.d.vue.ts} +2 -2
  54. package/dist/components/OnyxDataGrid/features/sorting/defaults.d.ts +9 -0
  55. package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +34 -4
  56. package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +13 -18
  57. package/dist/components/OnyxDataGrid/features/stickyColumns/stickyColumns.d.ts +13 -0
  58. package/dist/components/OnyxDataGrid/features/stickyColumns/types.d.ts +14 -0
  59. package/dist/components/OnyxDataGrid/types.d.ts +79 -5
  60. package/dist/components/OnyxDataGrid/types.spec-d.d.ts +1 -0
  61. package/dist/components/OnyxDatePicker/OnyxDatePicker.d.vue.ts +20 -0
  62. package/dist/components/OnyxDatePicker/types.d.ts +3 -2
  63. package/dist/components/OnyxDialog/OnyxDialog.d.vue.ts +68 -0
  64. package/dist/components/OnyxDialog/types.d.ts +4 -24
  65. package/dist/components/OnyxEmpty/{OnyxEmpty.vue.d.ts → OnyxEmpty.d.vue.ts} +10 -2
  66. package/dist/components/OnyxErrorTooltip/{OnyxErrorTooltip.vue.d.ts → OnyxErrorTooltip.d.vue.ts} +7 -3
  67. package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.d.vue.ts +5 -0
  68. package/dist/components/OnyxExternalLinkIcon/types.d.ts +2 -5
  69. package/dist/components/OnyxFAB/OnyxFAB.d.vue.ts +34 -0
  70. package/dist/components/OnyxFAB/types.d.ts +13 -0
  71. package/dist/components/OnyxFABButton/OnyxFABButton.d.vue.ts +5 -0
  72. package/dist/components/OnyxFABButton/types.d.ts +22 -0
  73. package/dist/components/OnyxFABItem/OnyxFABItem.d.vue.ts +3 -0
  74. package/dist/components/OnyxFABItem/types.d.ts +17 -0
  75. package/dist/components/OnyxFileCard/OnyxFileCard.d.vue.ts +34 -0
  76. package/dist/components/OnyxFileCard/types.d.ts +49 -0
  77. package/dist/components/OnyxFileTypeIcon/OnyxFileTypeIcon.d.vue.ts +3 -0
  78. package/dist/components/OnyxFileTypeIcon/types.d.ts +13 -0
  79. package/dist/components/OnyxFileUpload/OnyxFileUpload.d.vue.ts +40 -0
  80. package/dist/components/OnyxFileUpload/types.d.ts +91 -0
  81. package/dist/components/OnyxFilterTag/OnyxFilterTag.d.vue.ts +10 -0
  82. package/dist/components/OnyxFilterTag/types.d.ts +8 -0
  83. package/dist/components/OnyxForm/OnyxForm.core.d.ts +46 -17
  84. package/dist/components/OnyxForm/{OnyxForm.vue.d.ts → OnyxForm.d.vue.ts} +4 -4
  85. package/dist/components/OnyxForm/types.d.ts +3 -3
  86. package/dist/components/OnyxFormElement/FormMessage.d.vue.ts +13 -0
  87. package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +2 -2
  88. package/dist/components/OnyxFormElement/OnyxFormElement.d.vue.ts +27 -0
  89. package/dist/components/OnyxFormElement/types.d.ts +22 -19
  90. package/dist/components/OnyxGlobalFAB/OnyxGlobalFAB.d.vue.ts +2 -0
  91. package/dist/components/OnyxGlobalFAB/useGlobalFAB.d.ts +56 -0
  92. package/dist/components/OnyxHeadline/OnyxHeadline.d.vue.ts +28 -0
  93. package/dist/components/OnyxHeadline/types.d.ts +18 -2
  94. package/dist/components/OnyxIcon/OnyxIcon.d.vue.ts +3 -0
  95. package/dist/components/OnyxIcon/types.d.ts +5 -1
  96. package/dist/components/OnyxIconButton/OnyxIconButton.d.vue.ts +27 -0
  97. package/dist/components/OnyxIconButton/types.d.ts +6 -6
  98. package/dist/components/OnyxImage/OnyxImage.d.vue.ts +6 -0
  99. package/dist/components/OnyxImage/types.d.ts +43 -0
  100. package/dist/components/OnyxInfoCard/OnyxInfoCard.d.vue.ts +42 -0
  101. package/dist/components/OnyxInfoCard/types.d.ts +21 -0
  102. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.d.vue.ts +12 -0
  103. package/dist/components/OnyxInfoTooltip/types.d.ts +2 -2
  104. package/dist/components/OnyxInput/OnyxInput.d.vue.ts +62 -0
  105. package/dist/components/OnyxInput/types.d.ts +5 -64
  106. package/dist/components/OnyxLink/{OnyxLink.vue.d.ts → OnyxLink.d.vue.ts} +4 -4
  107. package/dist/components/OnyxLink/types.d.ts +3 -10
  108. package/dist/components/OnyxListItem/{OnyxListItem.vue.d.ts → OnyxListItem.d.vue.ts} +4 -4
  109. package/dist/components/OnyxListItem/types.d.ts +2 -2
  110. package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.d.vue.ts +2 -0
  111. package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.d.vue.ts +2 -0
  112. package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.d.vue.ts +5 -0
  113. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.d.vue.ts +16 -0
  114. package/dist/components/OnyxMiniSearch/types.d.ts +5 -3
  115. package/dist/components/OnyxMobileNavButton/{OnyxMobileNavButton.vue.d.ts → OnyxMobileNavButton.d.vue.ts} +4 -4
  116. package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
  117. package/dist/components/{OnyxModalDialog/OnyxModalDialog.vue.d.ts → OnyxModal/OnyxModal.d.vue.ts} +17 -8
  118. package/dist/components/OnyxModal/types.d.ts +2 -0
  119. package/dist/components/OnyxMoreList/{OnyxMoreList.vue.d.ts → OnyxMoreList.d.vue.ts} +11 -6
  120. package/dist/components/OnyxMoreList/types.d.ts +12 -3
  121. package/dist/components/OnyxNavAppArea/{OnyxNavAppArea.vue.d.ts → OnyxNavAppArea.d.vue.ts} +5 -3
  122. package/dist/components/OnyxNavAppArea/types.d.ts +2 -1
  123. package/dist/components/OnyxNavBar/OnyxNavBar.d.vue.ts +44 -0
  124. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.d.vue.ts +12 -0
  125. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +3 -3
  126. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.d.vue.ts +8 -0
  127. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/types.d.ts +1 -1
  128. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/{OnyxFlyoutMenu.vue.d.ts → OnyxFlyoutMenu.d.vue.ts} +9 -12
  129. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +11 -7
  130. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.d.vue.ts +16 -0
  131. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/types.d.ts +11 -0
  132. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.d.vue.ts +427 -0
  133. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +13 -9
  134. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.d.vue.ts +185 -0
  135. package/dist/components/OnyxNavBar/modules/OnyxNavItem/types.d.ts +19 -2
  136. package/dist/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.d.vue.ts +41 -0
  137. package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.d.vue.ts +12 -0
  138. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/{OnyxUserMenu.vue.d.ts → OnyxUserMenu.d.vue.ts} +7 -7
  139. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/{UserMenuLayout.vue.d.ts → UserMenuLayout.d.vue.ts} +13 -13
  140. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +13 -7
  141. package/dist/components/OnyxNavBar/modules/index.d.ts +17 -17
  142. package/dist/components/OnyxNavBar/types.d.ts +53 -12
  143. package/dist/components/OnyxNotificationCard/OnyxNotificationCard.d.vue.ts +48 -0
  144. package/dist/components/OnyxNotificationCard/types.d.ts +25 -0
  145. package/dist/components/OnyxNotificationDot/OnyxNotificationDot.d.vue.ts +29 -0
  146. package/dist/components/OnyxNotificationDot/types.d.ts +11 -0
  147. package/dist/components/OnyxNotificationMessage/OnyxNotificationMessage.d.vue.ts +40 -0
  148. package/dist/components/OnyxNotificationMessage/types.d.ts +17 -0
  149. package/dist/components/OnyxNotifications/OnyxNotifications.d.vue.ts +2 -0
  150. package/dist/components/OnyxNotifications/useNotification.d.ts +60 -0
  151. package/dist/components/OnyxPageLayout/OnyxPageLayout.d.vue.ts +66 -0
  152. package/dist/components/OnyxPageLayout/types.d.ts +11 -8
  153. package/dist/components/OnyxPagination/OnyxPagination.d.vue.ts +10 -0
  154. package/dist/components/OnyxPagination/OnyxSelectPagination.d.vue.ts +9 -0
  155. package/dist/components/OnyxPagination/types.d.ts +6 -1
  156. package/dist/components/OnyxProgressItem/OnyxProgressItem.d.vue.ts +31 -0
  157. package/dist/components/OnyxProgressItem/types.d.ts +31 -0
  158. package/dist/components/OnyxProgressSteps/OnyxProgressSteps.d.vue.ts +41 -0
  159. package/dist/components/OnyxProgressSteps/types.d.ts +30 -0
  160. package/dist/components/OnyxRadioButton/{OnyxRadioButton.vue.d.ts → OnyxRadioButton.d.vue.ts} +7 -7
  161. package/dist/components/OnyxRadioButton/types.d.ts +2 -10
  162. package/dist/components/OnyxRadioGroup/{OnyxRadioGroup.vue.d.ts → OnyxRadioGroup.d.vue.ts} +9 -9
  163. package/dist/components/OnyxRadioGroup/types.d.ts +6 -19
  164. package/dist/components/OnyxResizeHandle/OnyxResizeHandle.d.vue.ts +16 -0
  165. package/dist/components/OnyxResizeHandle/types.d.ts +23 -0
  166. package/dist/components/OnyxRipple/OnyxRipple.d.vue.ts +6 -0
  167. package/dist/components/OnyxRouterLink/OnyxRouterLink.d.vue.ts +21 -0
  168. package/dist/components/OnyxRouterLink/types.d.ts +22 -0
  169. package/dist/components/OnyxSegmentedControl/OnyxSegmentedControl.d.vue.ts +17 -0
  170. package/dist/components/OnyxSegmentedControl/types.d.ts +28 -0
  171. package/dist/components/OnyxSegmentedControlElement/OnyxSegmentedControlElement.d.vue.ts +7 -0
  172. package/dist/components/OnyxSegmentedControlElement/types.d.ts +5 -0
  173. package/dist/components/OnyxSelect/{OnyxSelect.vue.d.ts → OnyxSelect.d.vue.ts} +13 -12
  174. package/dist/components/OnyxSelect/types.d.ts +34 -47
  175. package/dist/components/OnyxSelectDialog/OnyxSelectDialog.d.vue.ts +28 -0
  176. package/dist/components/OnyxSelectDialog/types.d.ts +30 -0
  177. package/dist/components/OnyxSelectInput/{OnyxSelectInput.vue.d.ts → OnyxSelectInput.d.vue.ts} +6 -8
  178. package/dist/components/OnyxSelectInput/types.d.ts +2 -24
  179. package/dist/components/OnyxSelectOption/{OnyxSelectOption.vue.d.ts → OnyxSelectOption.d.vue.ts} +5 -5
  180. package/dist/components/OnyxSelectOption/types.d.ts +2 -2
  181. package/dist/components/OnyxSeparator/OnyxSeparator.d.vue.ts +5 -0
  182. package/dist/components/OnyxSeparator/types.d.ts +7 -0
  183. package/dist/components/OnyxSidebar/OnyxSidebar.d.vue.ts +190 -0
  184. package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.d.vue.ts +28 -0
  185. package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/types.d.ts +9 -0
  186. package/dist/components/OnyxSidebar/modules/index.d.ts +2 -0
  187. package/dist/components/OnyxSidebar/types.d.ts +40 -0
  188. package/dist/components/OnyxSkeleton/OnyxSkeleton.d.vue.ts +2 -0
  189. package/dist/components/OnyxStepper/OnyxStepper.d.vue.ts +22 -0
  190. package/dist/components/OnyxStepper/types.d.ts +26 -32
  191. package/dist/components/OnyxSwitch/OnyxSwitch.d.vue.ts +22 -0
  192. package/dist/components/OnyxSwitch/types.d.ts +3 -29
  193. package/dist/components/OnyxSystemButton/OnyxSystemButton.d.vue.ts +8 -0
  194. package/dist/components/OnyxSystemButton/types.d.ts +2 -2
  195. package/dist/components/OnyxTab/{OnyxTab.vue.d.ts → OnyxTab.d.vue.ts} +4 -4
  196. package/dist/components/OnyxTab/types.d.ts +2 -2
  197. package/dist/components/OnyxTable/OnyxTable.d.vue.ts +24 -0
  198. package/dist/components/OnyxTable/types.d.ts +43 -1
  199. package/dist/components/OnyxTabs/{OnyxTabs.vue.d.ts → OnyxTabs.d.vue.ts} +4 -6
  200. package/dist/components/OnyxTabs/types.d.ts +6 -6
  201. package/dist/components/OnyxTag/OnyxTag.d.vue.ts +6 -0
  202. package/dist/components/OnyxTag/types.d.ts +25 -2
  203. package/dist/components/OnyxTextarea/OnyxTextarea.d.vue.ts +22 -0
  204. package/dist/components/OnyxTextarea/types.d.ts +2 -5
  205. package/dist/components/OnyxToast/OnyxToast.d.vue.ts +2 -0
  206. package/dist/components/OnyxToast/useToast.d.ts +2 -2
  207. package/dist/components/OnyxToastMessage/OnyxToastMessage.d.vue.ts +12 -0
  208. package/dist/components/OnyxToastMessage/types.d.ts +2 -2
  209. package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +1 -1
  210. package/dist/components/OnyxTooltip/{OnyxTooltip.vue.d.ts → OnyxTooltip.d.vue.ts} +22 -12
  211. package/dist/components/OnyxTooltip/types.d.ts +31 -15
  212. package/dist/components/OnyxVisuallyHidden/{OnyxVisuallyHidden.vue.d.ts → OnyxVisuallyHidden.d.vue.ts} +3 -3
  213. package/dist/components/examples/ComponentShowcase/ComponentShowcase.d.vue.ts +9 -0
  214. package/dist/components/illustrations/OnyxErrorSVG/OnyxErrorSVG.d.vue.ts +2 -0
  215. package/dist/components/illustrations/OnyxFileUploadSVG/OnyxFileUploadSVG.d.vue.ts +3 -0
  216. package/dist/components/illustrations/OnyxFileUploadSVG/types.d.ts +10 -0
  217. package/dist/components/illustrations/index.d.ts +3 -0
  218. package/dist/composables/animation.d.ts +5 -0
  219. package/dist/composables/checkAll.d.ts +3 -3
  220. package/dist/composables/density.d.ts +1 -1
  221. package/dist/composables/required.d.ts +6 -12
  222. package/dist/composables/scrollEnd.d.ts +2 -2
  223. package/dist/composables/themeTransition.d.ts +2 -2
  224. package/dist/composables/useAnchorPositionPolyfill.d.ts +20 -0
  225. package/dist/composables/useAutoFocus.d.ts +5 -0
  226. package/dist/composables/useCustomValidity.d.ts +21 -13
  227. package/dist/composables/useErrorClass.d.ts +2 -2
  228. package/dist/composables/useFileSize.d.ts +10 -0
  229. package/dist/composables/useIntersectionObserver.d.ts +25 -0
  230. package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
  231. package/dist/composables/useLenientMaxLengthValidation.d.ts +93 -0
  232. package/dist/composables/useLink.d.ts +29 -0
  233. package/dist/composables/useLink.spec-d.d.ts +1 -0
  234. package/dist/composables/useMoreList.d.ts +15 -7
  235. package/dist/composables/useOpenAlignment.d.ts +13 -0
  236. package/dist/composables/useOpenDirection.d.ts +5 -5
  237. package/dist/composables/useRelativeTimeFormat.d.ts +23 -0
  238. package/dist/composables/useResizeObserver.d.ts +6 -2
  239. package/dist/composables/useRipple.d.ts +5 -5
  240. package/dist/composables/useSkeletonState.d.ts +1 -1
  241. package/dist/composables/useTimer.d.ts +3 -3
  242. package/dist/composables/useVModel.d.ts +34 -0
  243. package/dist/composables/useVModel.spec-d.d.ts +1 -0
  244. package/dist/i18n/datetime-formats.d.ts +22 -0
  245. package/dist/i18n/index.d.ts +24 -12
  246. package/dist/i18n/locales/de-DE.json +96 -2
  247. package/dist/i18n/locales/en-US.json +94 -9
  248. package/{src/i18n/locales/en-US.json → dist/i18n/locales/en-US.json.d.ts} +98 -10
  249. package/dist/i18n/number-formats.d.ts +6 -0
  250. package/dist/index.d.ts +176 -106
  251. package/dist/index.esm-bundler.js +13471 -0
  252. package/dist/index.esm-bundler.js.map +1 -0
  253. package/dist/index.js +9574 -4712
  254. package/dist/style.css +1 -1
  255. package/dist/types/components.d.ts +7 -9
  256. package/dist/types/index.d.ts +7 -8
  257. package/dist/types/utils.d.ts +66 -1
  258. package/dist/types/utils.spec-d.d.ts +1 -0
  259. package/dist/utils/attrs.d.ts +35 -4
  260. package/dist/utils/breakpoints.d.ts +17 -0
  261. package/dist/utils/console.d.ts +11 -0
  262. package/dist/utils/dom.d.ts +5 -0
  263. package/dist/utils/feature.d.ts +15 -0
  264. package/dist/utils/file.d.ts +10 -0
  265. package/dist/utils/numbers.d.ts +29 -9
  266. package/dist/utils/objects.d.ts +18 -0
  267. package/dist/utils/plugin.d.ts +11 -2
  268. package/dist/utils/router.d.ts +9 -0
  269. package/dist/utils/storybook.d.ts +43 -2
  270. package/dist/utils/strings.d.ts +13 -0
  271. package/package.json +34 -24
  272. package/src/styles/breakpoints.scss +14 -10
  273. package/src/styles/fonts.scss +7 -7
  274. package/src/styles/global.css +3 -3
  275. package/src/styles/grid.ct.tsx +186 -73
  276. package/src/styles/grid.scss +139 -38
  277. package/src/styles/index.scss +1 -2
  278. package/src/styles/layers.scss +1 -1
  279. package/src/styles/mixins/checkbox.scss +18 -4
  280. package/src/styles/mixins/input.scss +24 -5
  281. package/src/styles/mixins/layers.scss +6 -0
  282. package/src/styles/mixins/list.scss +1 -1
  283. package/src/styles/mixins/sizes.scss +12 -8
  284. package/src/styles/mixins/visibility.scss +11 -0
  285. package/src/styles/root.scss +7 -2
  286. package/src/styles/variables/density-compact.css +2 -2
  287. package/src/styles/variables/density-cozy.css +2 -2
  288. package/src/styles/variables/density-default.css +2 -2
  289. package/src/styles/variables/spacing.css +1 -1
  290. package/src/styles/variables/themes/onyx.css +387 -0
  291. package/src/styles/variables/themes/value.css +217 -159
  292. package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +0 -60
  293. package/dist/components/OnyxAlertDialog/types.d.ts +0 -8
  294. package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +0 -36
  295. package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +0 -28
  296. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +0 -10
  297. package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +0 -17
  298. package/dist/components/OnyxDataGrid/features/sorting/TestCase.vue.d.ts +0 -9
  299. package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +0 -17
  300. package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +0 -5
  301. package/dist/components/OnyxFormElement/FormMessage.vue.d.ts +0 -13
  302. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +0 -29
  303. package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +0 -3
  304. package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +0 -27
  305. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +0 -6
  306. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +0 -24
  307. package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue.d.ts +0 -2
  308. package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.vue.d.ts +0 -2
  309. package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +0 -5
  310. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +0 -14
  311. package/dist/components/OnyxModalDialog/types.d.ts +0 -2
  312. package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +0 -91
  313. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +0 -11
  314. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +0 -8
  315. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +0 -28
  316. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +0 -48
  317. package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +0 -122
  318. package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +0 -19
  319. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +0 -31
  320. package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +0 -5
  321. package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/types.d.ts +0 -3
  322. package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +0 -7
  323. package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +0 -30
  324. package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +0 -9
  325. package/dist/components/OnyxPagination/OnyxSelectPagination.vue.d.ts +0 -7
  326. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +0 -4
  327. package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +0 -2
  328. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +0 -21
  329. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +0 -15
  330. package/dist/components/OnyxSystemButton/OnyxSystemButton.vue.d.ts +0 -8
  331. package/dist/components/OnyxSystemButton/examples/WithFlyoutMenu.vue.d.ts +0 -2
  332. package/dist/components/OnyxSystemButton/examples/WithTooltip.vue.d.ts +0 -2
  333. package/dist/components/OnyxTable/OnyxTable.vue.d.ts +0 -57
  334. package/dist/components/OnyxTag/OnyxTag.vue.d.ts +0 -5
  335. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +0 -17
  336. package/dist/components/OnyxToast/OnyxToast.vue.d.ts +0 -2
  337. package/dist/components/OnyxToast/StorybookExample.vue.d.ts +0 -2
  338. package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +0 -12
  339. package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +0 -9
  340. package/dist/components/examples/DataGrid/SortingDataGrid.vue.d.ts +0 -26
  341. package/dist/components/examples/FormExample/FormExample.vue.d.ts +0 -3
  342. package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +0 -26
  343. package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +0 -17
  344. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +0 -42
  345. package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +0 -10
  346. package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +0 -2
  347. package/dist/composables/asymmetricComputed.d.ts +0 -13
  348. package/dist/composables/useManagedState.d.ts +0 -31
  349. package/dist/composables/useWedgePosition.d.ts +0 -13
  350. package/dist/index.cjs +0 -183
  351. package/dist/playwright/a11y.d.ts +0 -28
  352. package/dist/playwright/screenshots.d.ts +0 -33
  353. package/dist/types/themes.d.ts +0 -2
  354. package/dist/utils/index.d.ts +0 -4
  355. package/src/i18n/locales/de-DE.json +0 -135
  356. package/src/i18n/locales/ko-KR.json +0 -27
  357. package/src/styles/variables/themes/digits-dark.css +0 -129
  358. package/src/styles/variables/themes/digits-light.css +0 -129
  359. package/src/styles/variables/themes/kaufland-dark.css +0 -129
  360. package/src/styles/variables/themes/kaufland-light.css +0 -129
  361. package/src/styles/variables/themes/lidl-dark.css +0 -129
  362. package/src/styles/variables/themes/lidl-light.css +0 -129
  363. package/src/styles/variables/themes/onyx-dark.css +0 -129
  364. package/src/styles/variables/themes/onyx-light.css +0 -129
  365. package/src/styles/variables/themes/schwarz-dark.css +0 -129
  366. package/src/styles/variables/themes/schwarz-light.css +0 -129
@@ -0,0 +1,39 @@
1
+ import { MaybeRef, MaybeRefOrGetter } from 'vue';
2
+ import { DataGridEntry } from '../../types.js';
3
+ import { DataGridFeatureOptions } from '../index.js';
4
+ export type SelectionState = {
5
+ /**
6
+ * If the `contingent` set refers to entries that are included in the final selection or excluded from it.
7
+ * The `selectMode` is closely coupled with the `HeaderSelectionCheckbox` which is used to "select all" or "deselect all".
8
+ * It allows for tracking selections even when not all rows are known.
9
+ * This especially useful in case of pagination or asynchronous data loading.
10
+ *
11
+ * Based on this there are the following scenarios:
12
+ *
13
+ * | selectMode | selected.size | result | HeaderSelectionCheckbox |
14
+ * |------------|:-------------:|:----------------:|-------------------------|
15
+ * | "include" | == 0 | nothing selected | unchecked |
16
+ * | "include" | > 0 | some selected | indeterminate |
17
+ * | "exclude" | == 0 | all selected | checked |
18
+ * | "exclude" | > 0 | some selected | indeterminate |
19
+ *
20
+ */
21
+ selectMode: "include" | "exclude";
22
+ /**
23
+ * The entries that are included or excluded from the selection, based on `selectMode`.
24
+ */
25
+ contingent: Set<DataGridEntry["id"]>;
26
+ };
27
+ /**
28
+ * The options of the selection feature for the OnyxDataGrid component.
29
+ */
30
+ export type SelectionOptions = Pick<DataGridFeatureOptions<DataGridEntry, object>, "enabled"> & {
31
+ /**
32
+ * The currently active selection.
33
+ */
34
+ selectionState?: MaybeRef<SelectionState>;
35
+ /**
36
+ * If `true` the selection checkbox of a row will only be shown if the row is hovered or selected.
37
+ */
38
+ hover?: MaybeRefOrGetter<boolean>;
39
+ };
@@ -1,4 +1,4 @@
1
- import type { SortDirection } from "./types";
1
+ import { SortDirection } from './types.js';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * Label of this Column.
@@ -9,5 +9,5 @@ type __VLS_Props = {
9
9
  */
10
10
  sortDirection?: SortDirection;
11
11
  };
12
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -0,0 +1,9 @@
1
+ import { Compare } from './types.js';
2
+ export declare const STRING_COMPARE: (a: unknown, b: unknown, collator: Intl.Collator) => number;
3
+ export declare const NUMBER_COMPARE: (a: unknown, b: unknown) => number;
4
+ export declare const BOOLEAN_COMPARE: (a: unknown, b: unknown) => number;
5
+ /**
6
+ * Compares only the time of two dates, ignoring the date part.
7
+ */
8
+ export declare const TIME_COMPARE: (a: unknown, b: unknown, collator: Intl.Collator) => number;
9
+ export declare const DEFAULT_COMPARES: Record<PropertyKey, Compare<unknown>>;
@@ -1,5 +1,35 @@
1
- import type { DataGridEntry } from "../../types";
2
- import type { SortDirection, SortOptions } from "./types";
3
- export declare const nextSortDirection: (current?: SortDirection) => SortDirection;
1
+ import { Ref } from 'vue';
2
+ import { DataGridEntry } from '../../types.js';
3
+ import { InternalColumnConfig } from '../index.js';
4
+ import { SortDirection, SortOptions, SortState } from './types.js';
5
+ export declare const nextSortDirection: (current?: SortDirection, skipNone?: boolean) => SortDirection;
4
6
  export declare const SORTING_FEATURE: unique symbol;
5
- export declare const useSorting: <TEntry extends DataGridEntry>(options?: SortOptions<TEntry> | undefined) => import("..").DataGridFeature<TEntry, typeof SORTING_FEATURE>;
7
+ export declare const useSorting: <TEntry extends DataGridEntry>(options?: SortOptions<TEntry>) => (ctx: import('../index.js').DataGridFeatureContext) => {
8
+ name: symbol;
9
+ watch: (Ref<SortState<TEntry>, SortState<TEntry>> | import('vue').ComputedRef<Intl.Collator>)[];
10
+ mutation: {
11
+ func: (data: Readonly<TEntry>[]) => Readonly<TEntry>[];
12
+ };
13
+ modifyColumns: {
14
+ func: (_finalConfig: readonly InternalColumnConfig<TEntry, any>[]) => readonly InternalColumnConfig<TEntry, any>[];
15
+ order: number;
16
+ }[];
17
+ header: {
18
+ actions: ({ key: column, label }: InternalColumnConfig<any, any>) => ({
19
+ iconComponent: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
+ [key: string]: any;
21
+ }>;
22
+ menuItems: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
23
+ [key: string]: any;
24
+ }>[];
25
+ } | {
26
+ iconComponent: {
27
+ iconComponent: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
28
+ [key: string]: any;
29
+ }>;
30
+ alwaysShowInHeader: boolean;
31
+ };
32
+ menuItems?: undefined;
33
+ })[];
34
+ };
35
+ };
@@ -1,17 +1,18 @@
1
- import { type MaybeRef, type MaybeRefOrGetter } from "vue";
2
- import type { DataGridEntry } from "../../types";
1
+ import { MaybeRef } from 'vue';
2
+ import { DataGridEntry } from '../../types.js';
3
+ import { DataGridFeatureOptions } from '../index.js';
3
4
  export type SortDirection = "asc" | "desc" | "none";
4
5
  /**
5
6
  * A function to compare two values of type T.
6
7
  * The returned number value indicates the relative order of two values:
7
8
  * -1: less than, 0: equal to, 1: greater than
8
9
  */
9
- export type Compare<T> = (a: T, b: T) => number;
10
+ export type Compare<T> = (a: T, b: T, collator: Intl.Collator) => number;
10
11
  /**
11
12
  * The values by which the data is currently sorted.
12
13
  * A `undefined` column or a direction of "none" means no sorting is applied.
13
14
  */
14
- export type SortState<TEntry extends DataGridEntry = DataGridEntry> = {
15
+ export type SortState<TEntry extends DataGridEntry> = {
15
16
  /**
16
17
  * The column which is used to sort by.
17
18
  * `undefined` means no sorting is applied.
@@ -24,32 +25,26 @@ export type SortState<TEntry extends DataGridEntry = DataGridEntry> = {
24
25
  direction: SortDirection;
25
26
  };
26
27
  /**
27
- * Per column sorting configuration.
28
- * If at least one column has configuration, sorting must be explicitly enabled for all columns.
28
+ * The options of the sorting feature for the OnyxDataGrid component.
29
29
  */
30
- export type SortColumnOptions<TEntry extends DataGridEntry> = {
30
+ export type SortOptions<TEntry extends DataGridEntry> = DataGridFeatureOptions<TEntry, {
31
31
  [TKey in keyof TEntry]?: {
32
- /**
33
- * If sorting is enabled for this column.
34
- */
35
- enabled: boolean;
36
32
  /**
37
33
  * A custom sorting function for this column.
38
34
  * By default the `Intl.Collator` with the current locale is used.
39
35
  */
40
36
  sortFunc?: Compare<TEntry[TKey]>;
41
37
  };
42
- };
43
- /**
44
- * The options of the sorting feature for the OnyxDataGrid component.
45
- */
46
- export type SortOptions<TEntry extends DataGridEntry> = {
38
+ }, true> & {
47
39
  /**
48
40
  * The currently applied sorting. Will be updated by the data grid, can be used for reading, updating and watching the applied sorting.
49
41
  */
50
42
  sortState?: MaybeRef<SortState<TEntry>>;
51
43
  /**
52
- * The options for each column, including whether sorting is enabled and a custom sorting function. If undefined, sorting is enabled for all columns (default).
44
+ * The `Intl.Collator` used for the default (string-based) sorting.
45
+ * The collator allows for customizing the sorting behavior, see [MDN Collator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator).
46
+ *
47
+ * Defaults to `new Intl.Collator(i18n.locale.value, { numeric: true })` where `i18n` is the OnyxI18n instance.
53
48
  */
54
- columns?: MaybeRefOrGetter<SortColumnOptions<TEntry> | undefined>;
49
+ collator?: MaybeRef<Intl.Collator>;
55
50
  };
@@ -0,0 +1,13 @@
1
+ import { ModifyColumns } from '../index.js';
2
+ import { DataGridEntry } from '../../types.js';
3
+ import { StickyColumnsOptions } from './types.js';
4
+ export declare const STICKY_COLUMNS_FEATURE: unique symbol;
5
+ export declare const useStickyColumns: <TEntry extends DataGridEntry>(options?: StickyColumnsOptions<TEntry>) => () => {
6
+ name: symbol;
7
+ watch: (import('vue').Ref<boolean, boolean> | import('vue').ComputedRef<"left" | "right"> | import('vue').ComputedRef<(keyof TEntry)[]>)[];
8
+ modifyColumns: ModifyColumns<TEntry>;
9
+ scrollContainerAttributes: () => {
10
+ ref: (el: Element | import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null) => void;
11
+ onScrollCapturePassive: (e: Event) => void;
12
+ };
13
+ };
@@ -0,0 +1,14 @@
1
+ import { MaybeRef } from 'vue';
2
+ import { DataGridEntry } from '../../types.js';
3
+ export type StickyColumnsOptions<TEntry extends DataGridEntry> = {
4
+ /**
5
+ * Defines the columns that should remain sticky.
6
+ */
7
+ columns: MaybeRef<(keyof TEntry)[]>;
8
+ /**
9
+ * Determines the side to which the columns are sticked.
10
+ *
11
+ * @default "left"
12
+ */
13
+ position?: MaybeRef<"left" | "right">;
14
+ };
@@ -1,9 +1,34 @@
1
- import type { DataGridFeature } from "./features";
1
+ import { HTMLAttributes } from 'vue';
2
+ import { SkeletonInjected } from '../../composables/useSkeletonState.js';
3
+ import { IfExtends, IfNotEmpty, MaybePick, RecordValues, UnionByKey } from '../../types/index.js';
4
+ import { OnyxHeadlineProps } from '../OnyxHeadline/types.js';
5
+ import { OnyxTableProps } from '../OnyxTable/types.js';
6
+ import { BASE_FEATURE } from './features/base/base.js';
7
+ import { ColumnConfig, ColumnConfigTypeOption, ColumnGroupConfig, DataGridFeature, InternalColumnConfig, TypeRenderer, TypeRenderMap } from './features/index.js';
2
8
  export type DataGridMetadata = Record<string, unknown>;
9
+ /**
10
+ * Makes registered types of typeRenderers available for use in the column configuration.
11
+ * Extracts all registered `Keys` and their `TOptions` types and maps them to the `ColumnConfigurationTypeOption`.
12
+ */
13
+ export type MapTypeRenderOptions<T> = {
14
+ [Key in keyof T]: T[Key] extends TypeRenderer<infer _, infer TOptions> ? ColumnConfigTypeOption<Key, TOptions> : ColumnConfigTypeOption<Key, unknown>;
15
+ };
16
+ /**
17
+ * A type that can either be the type itself or an array of it.
18
+ */
19
+ export type MaybeArray<T> = T | Array<T>;
20
+ /**
21
+ * Unwraps the typeRenderers from the given feature(s).
22
+ *
23
+ */
24
+ export type ColumnTypesFromFeatures<TFeatures extends MaybeArray<DataGridFeature<any, any, any>>> = IfExtends<RecordValues<MapTypeRenderOptions<IfNotEmpty<MaybePick<UnionByKey<ReturnType<TFeatures extends any[] ? TFeatures[number] : TFeatures>>, "typeRenderer">>>>, ColumnConfigTypeOption<PropertyKey, unknown>>;
3
25
  /**
4
26
  * @experimental The DataGrid is still working in progress and the props will change in the future.
5
27
  */
6
- export type OnyxDataGridProps<TEntry extends DataGridEntry = DataGridEntry, TFeatures extends DataGridFeature<TEntry, symbol>[] = DataGridFeature<TEntry, symbol>[]> = {
28
+ export type OnyxDataGridProps<TEntry extends DataGridEntry, TColumnGroup extends ColumnGroupConfig, TTypeRenderer extends TypeRenderMap<TEntry>, TFeatureName extends symbol, TFeatures extends DataGridFeature<TEntry, TTypeRenderer, TFeatureName>[] = never, TTypes extends ColumnConfigTypeOption<PropertyKey, unknown> = ColumnTypesFromFeatures<[
29
+ ReturnType<typeof BASE_FEATURE>,
30
+ ...TFeatures
31
+ ]>> = {
7
32
  /**
8
33
  * Features that should be applied.
9
34
  * They allow the modification of the behavior and rendering.
@@ -11,19 +36,68 @@ export type OnyxDataGridProps<TEntry extends DataGridEntry = DataGridEntry, TFea
11
36
  * Check the Storybook examples (e.g. [Sorting](/?path=/story/data-datagrid-features--sorting)) for more details on how the features are used and configured.
12
37
  */
13
38
  features?: TFeatures;
39
+ /**
40
+ * When `async` is `true`, the data transformation of supported features is disabled and externalized.
41
+ * This allows for backend handling of data fetching and data transformation.
42
+ */
43
+ async?: boolean;
14
44
  /**
15
45
  * The order of and which columns should be rendered.
16
46
  */
17
- columns: (keyof TEntry)[];
47
+ columns: ColumnConfig<TEntry, TColumnGroup, TTypes>[];
48
+ /**
49
+ * Configuration for the column groups defined via the `columns` configuration.
50
+ */
51
+ columnGroups?: TColumnGroup;
18
52
  /**
19
53
  * The data that should be used to fill the datagrid.
20
54
  */
21
55
  data: TEntry[];
22
- };
56
+ /**
57
+ * Whether to show skeleton rows. Can be set to `true` to use a pre-defined skeleton row count or you can pass a number to define a specific count.
58
+ */
59
+ skeleton?: SkeletonInjected;
60
+ /**
61
+ * Headline to display above the data grid.
62
+ */
63
+ headline?: string | DataGridHeadline;
64
+ } & Omit<OnyxTableProps, "columnGroups" | "scrollContainerAttrs">;
23
65
  /**
24
66
  * "Raw" user data for a data grid entry/row, e.g. fetched from a backend service.
25
67
  */
26
68
  export type DataGridEntry = {
27
- id: PropertyKey;
28
69
  [key: PropertyKey]: unknown;
70
+ /**
71
+ * Unique ID of the data grid entry/row.
72
+ */
73
+ id: PropertyKey;
74
+ /**
75
+ * Additional options for this row.
76
+ */
77
+ [DataGridRowOptionsSymbol]?: DataGridEntryOptions;
78
+ };
79
+ export type DataGridEntryOptions = {
80
+ /**
81
+ * Attributes that are bound directly to the `<tr>` element of the row.
82
+ */
83
+ trAttributes?: HTMLAttributes;
84
+ /**
85
+ * Overrides which columns to render in which order.
86
+ * Useful if e.g. adding a custom full-width row inside a data grid feature.
87
+ */
88
+ columns?: Omit<InternalColumnConfig<{
89
+ id: PropertyKey;
90
+ }>, "label">[];
91
+ };
92
+ export declare const DataGridRowOptionsSymbol: unique symbol;
93
+ export type DataGridHeadline = Partial<OnyxHeadlineProps> & {
94
+ /**
95
+ * Headline text.
96
+ */
97
+ text: string;
98
+ /**
99
+ * Optional row count to display. If set to `true`, the count will be determined automatically.
100
+ * Can also be set to a custom number (useful when e.g. using async pagination).
101
+ */
102
+ rowCount?: boolean | number;
29
103
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import { Nullable } from '../../types/index.js';
2
+ import { OnyxDatePickerProps } from './types.js';
3
+ declare const _default: import('vue').DefineComponent<OnyxDatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ validityChange: (validity: ValidityState) => any;
5
+ "update:modelValue": (value?: Nullable<string | number | Date>) => any;
6
+ }, string, import('vue').PublicProps, Readonly<OnyxDatePickerProps> & Readonly<{
7
+ onValidityChange?: ((validity: ValidityState) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value?: Nullable<string | number | Date>) => any) | undefined;
9
+ }>, {
10
+ skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
11
+ required: boolean;
12
+ disabled: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
13
+ showError: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('../../composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
14
+ readonly: boolean;
15
+ loading: boolean;
16
+ type: "date" | "datetime-local";
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
+ inputRef: HTMLInputElement;
19
+ }, any>;
20
+ export default _default;
@@ -1,9 +1,10 @@
1
- import type { OnyxInputProps } from "../OnyxInput/types";
1
+ import { Nullable } from '../../types/index.js';
2
+ import { OnyxInputProps } from '../OnyxInput/types.js';
2
3
  export type OnyxDatePickerProps = Omit<OnyxInputProps, "type" | "modelValue" | "autocapitalize" | "maxlength" | "minlength" | "pattern" | "withCounter" | "placeholder" | "autocomplete"> & {
3
4
  /**
4
5
  * Current date value. Supports all data types that are parsable by `new Date()`.
5
6
  */
6
- modelValue?: DateValue;
7
+ modelValue?: Nullable<DateValue>;
7
8
  /**
8
9
  * Whether the user should be able to select only date or date + time.
9
10
  */
@@ -0,0 +1,68 @@
1
+ import { OnyxDialogProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /**
6
+ * The trigger for the dialog. Should be an interactive component like a button or link.
7
+ */
8
+ trigger?(params: {
9
+ /**
10
+ * Attributes and event listeners that must be bound to an interactive element (button or link), that should act as the dialog trigger.
11
+ */
12
+ trigger: object;
13
+ }): unknown;
14
+ /**
15
+ * Dialog content.
16
+ */
17
+ default(): unknown;
18
+ /**
19
+ * Optional slot to override the headline with custom content.
20
+ * If unset, the `label` property will be shown.
21
+ */
22
+ headline?(bindings: Pick<OnyxDialogProps, "label">): unknown;
23
+ /**
24
+ * Optional footer slot to e.g. show action buttons (see OnyxBottomBar component).
25
+ */
26
+ footer?(): unknown;
27
+ }> & {
28
+ /**
29
+ * The trigger for the dialog. Should be an interactive component like a button or link.
30
+ */
31
+ trigger?(params: {
32
+ /**
33
+ * Attributes and event listeners that must be bound to an interactive element (button or link), that should act as the dialog trigger.
34
+ */
35
+ trigger: object;
36
+ }): unknown;
37
+ /**
38
+ * Dialog content.
39
+ */
40
+ default(): unknown;
41
+ /**
42
+ * Optional slot to override the headline with custom content.
43
+ * If unset, the `label` property will be shown.
44
+ */
45
+ headline?(bindings: Pick<OnyxDialogProps, "label">): unknown;
46
+ /**
47
+ * Optional footer slot to e.g. show action buttons (see OnyxBottomBar component).
48
+ */
49
+ footer?(): unknown;
50
+ };
51
+ refs: {};
52
+ rootEl: HTMLDivElement;
53
+ };
54
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
55
+ declare const __VLS_component: import('vue').DefineComponent<OnyxDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ "update:open": (open: boolean) => any;
57
+ }, string, import('vue').PublicProps, Readonly<OnyxDialogProps> & Readonly<{
58
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
59
+ }>, {
60
+ open: boolean | null;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
62
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
63
+ export default _default;
64
+ type __VLS_WithTemplateSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -1,24 +1,4 @@
1
- import type { DensityProp } from "../../composables/density";
2
- export type OnyxDialogProps = DensityProp & {
3
- /**
4
- * (Aria) label that describes the dialog. Required for accessibility / screen readers.
5
- */
6
- label: string;
7
- /**
8
- * Whether the dialog is open.
9
- */
10
- open?: boolean;
11
- /**
12
- * Whether the dialog is a modal.
13
- * If `true`, interaction with the rest of the page is prevented and a backdrop is displayed.
14
- * Also the `close` event is emitted when pressing "Escape".
15
- */
16
- modal?: boolean;
17
- /**
18
- * Whether the dialog is an [alert dialog](https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/).
19
- * Should be set for better accessibility / screen reader support when the dialog
20
- * interrupts the user's workflow to communicate an important message and acquire a response,
21
- * e.g. a delete confirmation.
22
- */
23
- alert?: boolean;
24
- };
1
+ import { DensityProp } from '../../composables/density.js';
2
+ import { OnyxBasicDialogProps } from '../OnyxBasicDialog/types.js';
3
+ import { OnyxBasicPopoverProps } from '../OnyxBasicPopover/types.js';
4
+ export type OnyxDialogProps = DensityProp & Omit<OnyxBasicPopoverProps, "role" | "fitParent"> & Pick<OnyxBasicDialogProps, "nonDismissible">;
@@ -1,4 +1,4 @@
1
- import { type DensityProp } from "../../composables/density";
1
+ import { DensityProp } from '../../composables/density.js';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: Readonly<{
@@ -10,6 +10,10 @@ declare function __VLS_template(): {
10
10
  * Optional slot to override the default icon.
11
11
  */
12
12
  icon?(): unknown;
13
+ /**
14
+ * Optional slot to place custom buttons.
15
+ */
16
+ buttons?(): unknown;
13
17
  }> & {
14
18
  /**
15
19
  * Label / text to display.
@@ -19,12 +23,16 @@ declare function __VLS_template(): {
19
23
  * Optional slot to override the default icon.
20
24
  */
21
25
  icon?(): unknown;
26
+ /**
27
+ * Optional slot to place custom buttons.
28
+ */
29
+ buttons?(): unknown;
22
30
  };
23
31
  refs: {};
24
32
  rootEl: HTMLDivElement;
25
33
  };
26
34
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import("vue").DefineComponent<DensityProp, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DensityProp> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
35
+ declare const __VLS_component: import('vue').DefineComponent<DensityProp, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DensityProp> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
37
  export default _default;
30
38
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { type FormMessages } from "../../composables/useCustomValidity";
1
+ import { FormMessages } from '../../composables/useCustomValidity.js';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * The given component will be shown inside a tooltip when
@@ -6,7 +6,9 @@ type __VLS_Props = {
6
6
  * component will not be rendered inside a slot.
7
7
  */
8
8
  errorMessages?: FormMessages;
9
- /** We don't show an error if the content is not interactive */
9
+ /**
10
+ * We don't show an error if the content is not interactive
11
+ */
10
12
  disabled?: boolean;
11
13
  };
12
14
  declare function __VLS_template(): {
@@ -30,7 +32,9 @@ declare function __VLS_template(): {
30
32
  rootEl: HTMLDivElement;
31
33
  };
32
34
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
35
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
36
+ targetRef: HTMLDivElement;
37
+ }, HTMLDivElement>;
34
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
39
  export default _default;
36
40
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,5 @@
1
+ import { OnyxExternalLinkIconProps } from './types.js';
2
+ declare const _default: import('vue').DefineComponent<OnyxExternalLinkIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxExternalLinkIconProps> & Readonly<{}>, {
3
+ withExternalIcon: boolean | "auto";
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -1,8 +1,5 @@
1
- export type OnyxExternalLinkIcon = {
2
- /**
3
- * The URL/link to point to.
4
- */
5
- href?: string;
1
+ import { SharedLinkProps } from '../OnyxRouterLink/types.js';
2
+ export type OnyxExternalLinkIconProps = Partial<Pick<SharedLinkProps, "href">> & {
6
3
  /**
7
4
  * Whether to show the external link icon.
8
5
  * If set to `auto`, it will be shown when the `href` leads to another website
@@ -0,0 +1,34 @@
1
+ import { OnyxFABProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /**
6
+ * Nested options to show inside a flyout.
7
+ */
8
+ default?(): unknown;
9
+ }> & {
10
+ /**
11
+ * Nested options to show inside a flyout.
12
+ */
13
+ default?(): unknown;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<OnyxFABProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:open": (value: boolean) => any;
21
+ }, string, import('vue').PublicProps, Readonly<OnyxFABProps> & Readonly<{
22
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
23
+ }>, {
24
+ skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
25
+ open: boolean | null;
26
+ alignment: "left" | "right";
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,13 @@
1
+ import { Nullable } from '../../types/index.js';
2
+ import { OnyxFABButtonProps } from '../OnyxFABButton/types.js';
3
+ export type OnyxFABProps = OnyxFABButtonProps & {
4
+ /**
5
+ * How to align the component relative to the viewport.
6
+ */
7
+ alignment?: "left" | "right";
8
+ /**
9
+ * Whether the element is expanded or collapsed.
10
+ * If unset, the open state is manged internally.
11
+ */
12
+ open?: Nullable<boolean>;
13
+ };
@@ -0,0 +1,5 @@
1
+ import { OnyxFABButtonProps } from './types.js';
2
+ declare const _default: import('vue').DefineComponent<OnyxFABButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxFABButtonProps> & Readonly<{}>, {
3
+ skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { DensityProp } from '../../composables/density.js';
2
+ import { SkeletonInjected } from '../../composables/useSkeletonState.js';
3
+ import { WithLinkProp } from '../OnyxRouterLink/types.js';
4
+ export type OnyxFABButtonProps = DensityProp & WithLinkProp & {
5
+ /**
6
+ * (Aria) Label of the action button that describes the action.
7
+ */
8
+ label: string;
9
+ /**
10
+ * If `true`, the label will be visually hidden.
11
+ * For accessibility / screen readers, the aria-label will still be set.
12
+ */
13
+ hideLabel?: boolean;
14
+ /**
15
+ * Icon to show in the action button.
16
+ */
17
+ icon?: string;
18
+ /**
19
+ * Whether to show a skeleton button.
20
+ */
21
+ skeleton?: SkeletonInjected;
22
+ };
@@ -0,0 +1,3 @@
1
+ import { OnyxFABItemProps } from './types.js';
2
+ declare const _default: import('vue').DefineComponent<OnyxFABItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxFABItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
3
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { DensityProp } from '../../composables/density.js';
2
+ import { WithLinkProp } from '../OnyxRouterLink/types.js';
3
+ export type OnyxFABItemProps = DensityProp & WithLinkProp & {
4
+ /**
5
+ * Text label to show
6
+ */
7
+ label: string;
8
+ /**
9
+ * If `true`, the label will be visually hidden.
10
+ * For accessibility / screen readers, the aria-label will still be set.
11
+ */
12
+ hideLabel?: boolean;
13
+ /**
14
+ * Optional icon to show.
15
+ */
16
+ icon?: string;
17
+ };