sit-onyx 1.0.0-beta.21 → 1.0.0-beta.211

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 (334) hide show
  1. package/README.md +1 -5
  2. package/dist/a11yConfig.d.ts +1 -0
  3. package/dist/components/OnyxAccordion/OnyxAccordion.vue.d.ts +22 -0
  4. package/dist/components/{OnyxLoadingIndicator/LoadingDots.vue.d.ts → OnyxAccordion/examples/NestedLargeExample.vue.d.ts} +1 -1
  5. package/dist/components/{OnyxToast/PlaywrightTest.vue.d.ts → OnyxAccordion/examples/NestedSmallExample.vue.d.ts} +1 -1
  6. package/dist/components/OnyxAccordion/types.d.ts +45 -0
  7. package/dist/components/OnyxAccordionItem/OnyxAccordionItem.vue.d.ts +22 -0
  8. package/dist/components/OnyxAccordionItem/types.d.ts +17 -0
  9. package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +34 -0
  10. package/dist/components/{OnyxToast/PlaywrightTestWrapper.vue.d.ts → OnyxAlertDialog/examples/DefaultExample.vue.d.ts} +1 -1
  11. package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
  12. package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +18 -42
  13. package/dist/components/{OnyxLoadingIndicator/CircleSpinner.vue.d.ts → OnyxAppLayout/examples/DefaultExample.vue.d.ts} +1 -1
  14. package/dist/components/OnyxAppLayout/examples/LeftNavExample.vue.d.ts +2 -0
  15. package/dist/components/OnyxAppLayout/types.d.ts +3 -1
  16. package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +2 -40
  17. package/dist/components/OnyxAvatar/types.d.ts +15 -3
  18. package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +4 -9
  19. package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +6 -34
  20. package/dist/components/OnyxBottomBar/OnyxBottomBar.vue.d.ts +21 -0
  21. package/dist/components/OnyxBottomBar/types.d.ts +7 -0
  22. package/dist/components/OnyxBreadcrumb/OnyxBreadcrumb.vue.d.ts +17 -0
  23. package/dist/components/OnyxBreadcrumb/types.d.ts +28 -0
  24. package/dist/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.vue.d.ts +18 -0
  25. package/dist/components/OnyxBreadcrumbItem/types.d.ts +18 -0
  26. package/dist/components/OnyxButton/ButtonOrLinkLayout.vue.d.ts +18 -0
  27. package/dist/components/OnyxButton/OnyxButton.vue.d.ts +4 -39
  28. package/dist/components/OnyxButton/types.d.ts +10 -2
  29. package/dist/components/OnyxCard/OnyxCard.vue.d.ts +17 -0
  30. package/dist/components/OnyxCard/examples/DetailsCardExample.vue.d.ts +2 -0
  31. package/dist/components/OnyxCard/examples/HeadlineCardExample.vue.d.ts +2 -0
  32. package/dist/components/OnyxCard/examples/IconCardExample.vue.d.ts +2 -0
  33. package/dist/components/OnyxCard/examples/ImageCardExample.vue.d.ts +2 -0
  34. package/dist/components/OnyxCard/examples/KPICardExample.vue.d.ts +2 -0
  35. package/dist/components/OnyxCard/types.d.ts +8 -0
  36. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +12 -15
  37. package/dist/components/OnyxCheckbox/types.d.ts +4 -5
  38. package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +12 -13
  39. package/dist/components/OnyxCheckboxGroup/types.d.ts +6 -17
  40. package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +22 -0
  41. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +22 -0
  42. package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +92 -0
  43. package/dist/components/OnyxDataGrid/examples/CustomColumnTypes.vue.d.ts +2 -0
  44. package/dist/components/OnyxDataGrid/examples/CustomFeatureExample.vue.d.ts +2 -0
  45. package/dist/components/OnyxDataGrid/examples/DefaultExample.vue.d.ts +2 -0
  46. package/dist/components/OnyxDataGrid/examples/FilteringExample.vue.d.ts +2 -0
  47. package/dist/components/OnyxDataGrid/examples/HideColumnsExample.vue.d.ts +2 -0
  48. package/dist/components/OnyxDataGrid/examples/ResizingExample.vue.d.ts +2 -0
  49. package/dist/components/OnyxDataGrid/examples/SelectionExample.vue.d.ts +2 -0
  50. package/dist/components/OnyxDataGrid/examples/SortingExample.vue.d.ts +2 -0
  51. package/dist/components/OnyxDataGrid/examples/StickyColumnsExample.vue.d.ts +2 -0
  52. package/dist/components/OnyxDataGrid/features/HeaderCell.vue.d.ts +17 -0
  53. package/dist/components/OnyxDataGrid/features/all.d.ts +12 -0
  54. package/dist/components/OnyxDataGrid/features/filtering/TestCase.vue.d.ts +10 -0
  55. package/dist/components/OnyxDataGrid/features/filtering/filtering.d.ts +32 -0
  56. package/dist/components/OnyxDataGrid/features/filtering/types.d.ts +65 -0
  57. package/dist/components/OnyxDataGrid/features/hideColumns/TestCase.vue.d.ts +20 -0
  58. package/dist/components/OnyxDataGrid/features/hideColumns/hideColumns.d.ts +39 -0
  59. package/dist/components/OnyxDataGrid/features/hideColumns/types.d.ts +15 -0
  60. package/dist/components/OnyxDataGrid/features/index.d.ts +244 -0
  61. package/dist/components/OnyxDataGrid/features/renderer.d.ts +11 -0
  62. package/dist/components/OnyxDataGrid/features/resizing/ResizeHandle.vue.d.ts +26 -0
  63. package/dist/components/OnyxDataGrid/features/resizing/TestCase.vue.d.ts +10 -0
  64. package/dist/components/OnyxDataGrid/features/resizing/resizing.d.ts +47 -0
  65. package/dist/components/OnyxDataGrid/features/resizing/types.d.ts +7 -0
  66. package/dist/components/OnyxDataGrid/features/selection/TestCase.vue.d.ts +21 -0
  67. package/dist/components/OnyxDataGrid/features/selection/selection.d.ts +38 -0
  68. package/dist/components/OnyxDataGrid/features/selection/types.d.ts +42 -0
  69. package/dist/components/OnyxDataGrid/features/sorting/SortAction.vue.d.ts +13 -0
  70. package/dist/components/OnyxDataGrid/features/sorting/TestCase.vue.d.ts +9 -0
  71. package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +30 -0
  72. package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +43 -0
  73. package/dist/components/OnyxDataGrid/features/stickyColumns/TestCase.vue.d.ts +10 -0
  74. package/dist/components/OnyxDataGrid/features/stickyColumns/stickyColumns.d.ts +12 -0
  75. package/dist/components/OnyxDataGrid/features/stickyColumns/types.d.ts +12 -0
  76. package/dist/components/OnyxDataGrid/types.d.ts +38 -0
  77. package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +18 -0
  78. package/dist/components/OnyxDatePicker/types.d.ts +24 -0
  79. package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +10 -41
  80. package/dist/components/OnyxDialog/examples/LeftAlignedExample.vue.d.ts +2 -0
  81. package/dist/components/OnyxDialog/examples/ModalExample.vue.d.ts +2 -0
  82. package/dist/components/OnyxDialog/examples/RightAlignedExample.vue.d.ts +2 -0
  83. package/dist/components/OnyxDialog/types.d.ts +6 -0
  84. package/dist/components/OnyxDrawer/OnyxDrawer.vue.d.ts +34 -0
  85. package/dist/components/OnyxDrawer/examples/DefaultExample.vue.d.ts +2 -0
  86. package/dist/components/OnyxDrawer/examples/RightAlignedExample.vue.d.ts +2 -0
  87. package/dist/components/OnyxDrawer/types.d.ts +8 -0
  88. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +6 -20
  89. package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +26 -0
  90. package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +3 -24
  91. package/dist/components/OnyxExternalLinkIcon/types.d.ts +2 -5
  92. package/dist/components/OnyxFilterTag/OnyxFilterTag.vue.d.ts +16 -0
  93. package/dist/components/OnyxFlyout/OnyxFlyout.vue.d.ts +28 -0
  94. package/dist/components/OnyxFlyout/OnyxFlyoutTestCase.vue.d.ts +9 -0
  95. package/dist/components/OnyxFlyout/types.d.ts +26 -0
  96. package/dist/components/OnyxForm/FormElementTestWrapper.vue.d.ts +13 -0
  97. package/dist/components/OnyxForm/OnyxForm.core.d.ts +99 -0
  98. package/dist/components/OnyxForm/OnyxForm.core.spec-d.d.ts +1 -0
  99. package/dist/components/OnyxForm/OnyxForm.vue.d.ts +18 -0
  100. package/dist/components/OnyxForm/examples/AdvancedExample.vue.d.ts +3 -0
  101. package/dist/components/OnyxForm/examples/DefaultExample.vue.d.ts +2 -0
  102. package/dist/components/OnyxForm/types.d.ts +4 -0
  103. package/dist/components/OnyxFormElement/FormMessage.vue.d.ts +13 -0
  104. package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
  105. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +17 -41
  106. package/dist/components/OnyxFormElement/types.d.ts +38 -19
  107. package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +6 -18
  108. package/dist/components/OnyxHeadline/types.d.ts +18 -2
  109. package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +1 -10
  110. package/dist/components/OnyxIcon/types.d.ts +4 -0
  111. package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +9 -43
  112. package/dist/components/OnyxIconButton/types.d.ts +6 -4
  113. package/dist/components/OnyxImage/OnyxImage.vue.d.ts +6 -0
  114. package/dist/components/OnyxImage/types.d.ts +43 -0
  115. package/dist/components/OnyxInfoCard/OnyxInfoCard.vue.d.ts +27 -0
  116. package/dist/components/OnyxInfoCard/types.d.ts +21 -0
  117. package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +4 -10
  118. package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
  119. package/dist/components/OnyxInput/OnyxInput.vue.d.ts +35 -52
  120. package/dist/components/OnyxInput/types.d.ts +9 -67
  121. package/dist/components/OnyxLink/OnyxLink.vue.d.ts +6 -38
  122. package/dist/components/OnyxLink/types.d.ts +3 -10
  123. package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +5 -37
  124. package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue.d.ts +2 -0
  125. package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.vue.d.ts +2 -0
  126. package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +2 -23
  127. package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +8 -16
  128. package/dist/components/OnyxMiniSearch/types.d.ts +4 -2
  129. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +8 -34
  130. package/dist/components/OnyxModalDialog/OnyxModalDialog.vue.d.ts +32 -0
  131. package/dist/components/OnyxModalDialog/examples/DefaultExample.vue.d.ts +2 -0
  132. package/dist/components/OnyxModalDialog/types.d.ts +2 -0
  133. package/dist/components/OnyxMoreList/OnyxMoreList.vue.d.ts +29 -0
  134. package/dist/components/OnyxMoreList/types.d.ts +23 -0
  135. package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +6 -22
  136. package/dist/components/OnyxNavAppArea/types.d.ts +2 -1
  137. package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +15 -62
  138. package/dist/components/OnyxNavBar/TestCase.vue.d.ts +3 -0
  139. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +7 -28
  140. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +3 -3
  141. package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +4 -13
  142. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +17 -35
  143. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +12 -1
  144. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.vue.d.ts +16 -0
  145. package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/types.d.ts +12 -0
  146. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +19 -18
  147. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +13 -7
  148. package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +16 -35
  149. package/dist/components/OnyxNavBar/modules/OnyxNavItem/types.d.ts +19 -2
  150. package/dist/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.vue.d.ts +26 -0
  151. package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +2 -23
  152. package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +4 -13
  153. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +11 -30
  154. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +27 -22
  155. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +11 -3
  156. package/dist/components/OnyxNavBar/modules/index.d.ts +4 -2
  157. package/dist/components/OnyxNavBar/types.d.ts +26 -9
  158. package/dist/components/OnyxNotificationCard/OnyxNotificationCard.vue.d.ts +25 -0
  159. package/dist/components/OnyxNotificationCard/types.d.ts +20 -0
  160. package/dist/components/OnyxNotificationDot/OnyxNotificationDot.vue.d.ts +18 -0
  161. package/dist/components/OnyxNotificationDot/types.d.ts +11 -0
  162. package/dist/components/OnyxNotificationMessage/OnyxNotificationMessage.vue.d.ts +25 -0
  163. package/dist/components/OnyxNotificationMessage/types.d.ts +17 -0
  164. package/dist/components/OnyxNotifications/OnyxNotifications.vue.d.ts +2 -0
  165. package/dist/components/OnyxNotifications/examples/DefaultExample.vue.d.ts +2 -0
  166. package/dist/components/OnyxNotifications/useNotification.d.ts +60 -0
  167. package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +19 -23
  168. package/dist/components/OnyxPageLayout/examples/FooterExample.vue.d.ts +2 -0
  169. package/dist/components/OnyxPageLayout/examples/SidebarAndFooterExample.vue.d.ts +2 -0
  170. package/dist/components/OnyxPageLayout/examples/SidebarExample.vue.d.ts +2 -0
  171. package/dist/components/OnyxPageLayout/examples/SidebarWithPageFooterExample.vue.d.ts +2 -0
  172. package/dist/components/OnyxPageLayout/examples/SkeletonExample.vue.d.ts +2 -0
  173. package/dist/components/OnyxPageLayout/types.d.ts +12 -8
  174. package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +10 -0
  175. package/dist/components/OnyxPagination/OnyxSelectPagination.vue.d.ts +9 -0
  176. package/dist/components/OnyxPagination/types.d.ts +20 -0
  177. package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +11 -15
  178. package/dist/components/OnyxRadioButton/types.d.ts +2 -10
  179. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +13 -15
  180. package/dist/components/OnyxRadioGroup/types.d.ts +4 -24
  181. package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +4 -0
  182. package/dist/components/OnyxRouterLink/OnyxRouterLink.vue.d.ts +13 -0
  183. package/dist/components/OnyxRouterLink/types.d.ts +22 -0
  184. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +17 -41
  185. package/dist/components/OnyxSelect/examples/CustomOptionsExample.vue.d.ts +2 -0
  186. package/dist/components/OnyxSelect/examples/CustomSearchExample.vue.d.ts +2 -0
  187. package/dist/components/OnyxSelect/examples/LazyLoadingExample.vue.d.ts +2 -0
  188. package/dist/components/OnyxSelect/examples/LoadMoreExample.vue.d.ts +2 -0
  189. package/dist/components/OnyxSelect/types.d.ts +39 -45
  190. package/dist/components/OnyxSelectDialog/OnyxSelectDialog.vue.d.ts +22 -0
  191. package/dist/components/OnyxSelectDialog/examples/DefaultExample.vue.d.ts +2 -0
  192. package/dist/components/OnyxSelectDialog/types.d.ts +30 -0
  193. package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +10 -15
  194. package/dist/components/OnyxSelectInput/types.d.ts +3 -26
  195. package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +6 -36
  196. package/dist/components/OnyxSidebar/OnyxSidebar.vue.d.ts +31 -0
  197. package/dist/components/OnyxSidebar/examples/DefaultExample.vue.d.ts +2 -0
  198. package/dist/components/OnyxSidebar/examples/DrawerExample.vue.d.ts +2 -0
  199. package/dist/components/OnyxSidebar/types.d.ts +14 -0
  200. package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
  201. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +16 -46
  202. package/dist/components/OnyxStepper/types.d.ts +26 -33
  203. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +16 -40
  204. package/dist/components/OnyxSwitch/types.d.ts +4 -31
  205. package/dist/components/OnyxSystemButton/OnyxSystemButton.vue.d.ts +8 -0
  206. package/dist/components/OnyxSystemButton/examples/FlyoutMenuExample.vue.d.ts +2 -0
  207. package/dist/components/OnyxSystemButton/examples/TooltipExample.vue.d.ts +2 -0
  208. package/dist/components/OnyxSystemButton/types.d.ts +17 -0
  209. package/dist/components/OnyxTab/OnyxTab.vue.d.ts +22 -0
  210. package/dist/components/OnyxTab/types.d.ts +20 -0
  211. package/dist/components/OnyxTable/OnyxTable.vue.d.ts +17 -44
  212. package/dist/components/OnyxTable/types.d.ts +29 -0
  213. package/dist/components/OnyxTabs/OnyxTabs.vue.d.ts +21 -0
  214. package/dist/components/OnyxTabs/types.d.ts +45 -0
  215. package/dist/components/OnyxTag/OnyxTag.vue.d.ts +4 -24
  216. package/dist/components/OnyxTag/types.d.ts +23 -0
  217. package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +16 -51
  218. package/dist/components/OnyxTextarea/types.d.ts +1 -4
  219. package/dist/components/OnyxToast/OnyxToast.vue.d.ts +1 -1
  220. package/dist/components/OnyxToast/examples/ToastExample.vue.d.ts +2 -0
  221. package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +6 -35
  222. package/dist/components/OnyxToastMessage/types.d.ts +2 -2
  223. package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
  224. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +16 -53
  225. package/dist/components/OnyxTooltip/types.d.ts +33 -9
  226. package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +9 -27
  227. package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +9 -0
  228. package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +27 -0
  229. package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +17 -0
  230. package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +27 -0
  231. package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +14 -0
  232. package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +2 -0
  233. package/dist/components/examples/NotificationCenter/NotificationCenter.vue.d.ts +2 -0
  234. package/dist/composables/AnimationTestCase.vue.d.ts +2 -0
  235. package/dist/composables/animation.d.ts +5 -0
  236. package/dist/composables/density.d.ts +1 -1
  237. package/dist/composables/required.d.ts +6 -12
  238. package/dist/composables/scrollEnd.d.ts +1 -1
  239. package/dist/composables/themeTransition.d.ts +3 -0
  240. package/dist/composables/useAnchorPositionPolyfill.d.ts +20 -0
  241. package/dist/composables/useAnchorPostionPolyfillTestCase.vue.d.ts +2 -0
  242. package/dist/composables/useAutoFocus.d.ts +5 -0
  243. package/dist/composables/useCustomValidity.d.ts +37 -28
  244. package/dist/composables/useErrorClass.d.ts +14 -0
  245. package/dist/composables/useIntersectionObserver.d.ts +25 -0
  246. package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
  247. package/dist/composables/useLenientMaxLengthValidation.d.ts +93 -0
  248. package/dist/composables/useLink.d.ts +27 -0
  249. package/dist/composables/useLink.spec-d.d.ts +1 -0
  250. package/dist/composables/useMoreList.d.ts +117 -0
  251. package/dist/composables/useOpenAlignment.d.ts +13 -0
  252. package/dist/composables/useOpenDirection.d.ts +14 -0
  253. package/dist/composables/useRelativeTimeFormat.d.ts +23 -0
  254. package/dist/composables/useResizeObserver.d.ts +17 -3
  255. package/dist/composables/useRipple.d.ts +15 -0
  256. package/dist/composables/useSkeletonState.d.ts +61 -0
  257. package/dist/composables/useTimer.d.ts +1 -1
  258. package/dist/composables/useVModel.d.ts +9 -0
  259. package/dist/i18n/datetime-formats.d.ts +22 -0
  260. package/dist/i18n/index.d.ts +24 -6
  261. package/dist/i18n/locales/de-DE.json +198 -0
  262. package/dist/i18n/locales/en-US.json +198 -0
  263. package/dist/i18n/locales/ko-KR.json +27 -0
  264. package/dist/i18n/number-formats.d.ts +6 -0
  265. package/dist/index.cjs +54 -55
  266. package/dist/index.d.ts +67 -1
  267. package/dist/index.js +6164 -2822
  268. package/dist/playwright/a11y.d.ts +15 -1
  269. package/dist/playwright/screenshots.d.ts +5 -39
  270. package/dist/style.css +1 -1
  271. package/dist/types/colors.d.ts +1 -1
  272. package/dist/types/components.d.ts +6 -6
  273. package/dist/types/index.d.ts +0 -1
  274. package/dist/types/themes.d.ts +2 -1
  275. package/dist/types/utils.d.ts +25 -0
  276. package/dist/utils/attrs.d.ts +30 -4
  277. package/dist/utils/date.d.ts +7 -0
  278. package/dist/utils/index.d.ts +2 -2
  279. package/dist/utils/numbers.d.ts +18 -0
  280. package/dist/utils/objects.d.ts +8 -0
  281. package/dist/utils/plugin.d.ts +9 -1
  282. package/dist/utils/router.d.ts +5 -0
  283. package/dist/utils/storybook.d.ts +35 -0
  284. package/dist/utils/strings.d.ts +13 -0
  285. package/dist/utils/validity.d.ts +1 -1
  286. package/package.json +24 -12
  287. package/src/i18n/locales/de-DE.json +98 -16
  288. package/src/i18n/locales/en-US.json +99 -17
  289. package/src/styles/breakpoints.scss +15 -9
  290. package/src/styles/grid.ct.tsx +90 -37
  291. package/src/styles/grid.scss +26 -11
  292. package/src/styles/index.scss +5 -5
  293. package/src/styles/layers.scss +1 -1
  294. package/src/styles/mixins/checkbox.scss +6 -6
  295. package/src/styles/mixins/input.scss +106 -34
  296. package/src/styles/mixins/layers.scss +5 -5
  297. package/src/styles/mixins/list.scss +7 -4
  298. package/src/styles/mixins/sizes.scss +27 -0
  299. package/src/styles/mixins/visibility.scss +11 -0
  300. package/src/styles/root.scss +15 -3
  301. package/src/styles/variables/density-compact.css +1 -1
  302. package/src/styles/variables/density-cozy.css +1 -1
  303. package/src/styles/variables/density-default.css +1 -1
  304. package/src/styles/variables/spacing.css +1 -1
  305. package/src/styles/variables/themes/digits-dark.css +129 -0
  306. package/src/styles/variables/themes/digits-light.css +129 -0
  307. package/src/styles/variables/themes/kaufland-dark.css +129 -0
  308. package/src/styles/variables/themes/kaufland-light.css +129 -0
  309. package/src/styles/variables/themes/lidl-dark.css +129 -0
  310. package/src/styles/variables/themes/lidl-light.css +129 -0
  311. package/src/styles/variables/themes/onyx-dark.css +129 -0
  312. package/src/styles/variables/themes/onyx-light.css +129 -0
  313. package/src/styles/variables/themes/schwarz-dark.css +129 -0
  314. package/src/styles/variables/themes/schwarz-light.css +129 -0
  315. package/src/styles/variables/themes/value.css +224 -0
  316. package/dist/components/GridPlayground/GridElement.vue.d.ts +0 -18
  317. package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
  318. package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
  319. package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
  320. package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +0 -35
  321. package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +0 -58
  322. package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +0 -13
  323. package/dist/components/OnyxToast/StorybookExample.vue.d.ts +0 -2
  324. package/dist/composables/useManagedState.d.ts +0 -25
  325. package/dist/playwright/ScreenshotMatrix.vue.d.ts +0 -54
  326. package/dist/types/breakpoints.d.ts +0 -13
  327. package/src/styles/variables/dark.css +0 -120
  328. package/src/styles/variables/light.css +0 -120
  329. package/src/styles/variables/themes/kaufland.css +0 -126
  330. package/src/styles/variables/themes/lidl.css +0 -126
  331. package/src/styles/variables/themes/onyx.css +0 -126
  332. package/src/styles/variables/themes/onyx.json +0 -120
  333. package/src/styles/variables/themes/twogo.css +0 -126
  334. /package/dist/components/{OnyxRadioGroup/OnyxRadioGroup.d.ts → OnyxDataGrid/types.spec-d.d.ts} +0 -0
@@ -1,5 +1,8 @@
1
1
  import type { DensityProp } from "../../composables/density";
2
+ import type { SkeletonInjected } from "../../composables/useSkeletonState";
2
3
  import type { AutofocusProp } from "../../types";
4
+ import type { FormInjected } from "../OnyxForm/OnyxForm.core";
5
+ import type { WithLinkProp } from "../OnyxRouterLink/types";
3
6
  export type OnyxButtonProps = DensityProp & AutofocusProp & {
4
7
  /**
5
8
  * The text content of the button.
@@ -8,7 +11,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
8
11
  /**
9
12
  * If the button should be disabled or not.
10
13
  */
11
- disabled?: boolean;
14
+ disabled?: FormInjected<boolean>;
12
15
  /**
13
16
  * Shows a loading indicator.
14
17
  */
@@ -32,7 +35,12 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
32
35
  /**
33
36
  * Whether to show a skeleton button.
34
37
  */
35
- skeleton?: boolean;
38
+ skeleton?: SkeletonInjected;
39
+ /**
40
+ * If set, the button will be rendered as link.
41
+ * Note that not all button properties are supported when used as link, e.g. `disabled`, `type` and `autofocus` are not supported.
42
+ */
43
+ link?: WithLinkProp["link"];
36
44
  };
37
45
  export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
38
46
  export type ButtonType = (typeof BUTTON_TYPES)[number];
@@ -0,0 +1,17 @@
1
+ import type { OnyxCardProps } from "./types";
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Card content.
5
+ */
6
+ default(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<OnyxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxCardProps> & Readonly<{}>, {
9
+ clickable: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { DensityProp } from "../../composables/density";
2
+ export type OnyxCardProps = DensityProp & {
3
+ /**
4
+ * Whether the whole card should be clickable (will render it as `<button>`).
5
+ * **Important**: If clickable, the card must not contain interactive elements like other buttons etc.
6
+ */
7
+ clickable?: boolean;
8
+ };
@@ -1,23 +1,20 @@
1
1
  import type { SelectOptionValue } from "../../types";
2
2
  import type { OnyxCheckboxProps } from "./types";
3
- declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
- onValidityChange?: ((validity: ValidityState) => any) | undefined;
6
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
8
- onValidityChange?: ((validity: ValidityState) => any) | undefined;
9
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
- }, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & import("vue").PublicProps;
11
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
3
+ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
6
+ readonly onValidityChange?: ((validity: ValidityState) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onValidityChange"> & OnyxCheckboxProps<TValue> & Partial<{}>> & import("vue").PublicProps;
8
+ expose(exposed: import("vue").ShallowUnwrapRef<{
9
+ input: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
10
+ }>): void;
12
11
  attrs: any;
13
- slots: ReturnType<() => {}>;
14
- emit: (((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void)) & {};
15
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
- [key: string]: any;
17
- }> & {
12
+ slots: {};
13
+ emit: ((evt: "update:modelValue", value: boolean) => void) & ((evt: "validityChange", validity: ValidityState) => void);
14
+ }>) => import("vue").VNode & {
18
15
  __ctx?: Awaited<typeof __VLS_setup>;
19
16
  };
20
17
  export default _default;
21
- type __VLS_Prettify<T> = {
18
+ type __VLS_PrettifyLocal<T> = {
22
19
  [K in keyof T]: T[K];
23
20
  } & {};
@@ -1,11 +1,10 @@
1
- import type { RequiredMarkerProp } from "../../composables/required";
2
- import type { CustomValidityProp } from "../../composables/useCustomValidity";
3
- import type { AutofocusProp, BaseSelectOption, SelectOptionValue } from "../../types";
4
- export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp & {
1
+ import type { Nullable } from "../../composables/useVModel";
2
+ import type { BaseSelectOption, SelectOptionValue } from "../../types";
3
+ export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & {
5
4
  /**
6
5
  * Whether the checkbox is checked.
7
6
  */
8
- modelValue?: boolean;
7
+ modelValue?: Nullable<boolean>;
9
8
  /**
10
9
  * If `true`, an indeterminate indicator is shown.
11
10
  */
@@ -1,21 +1,20 @@
1
+ import { type Nullable } from "../../composables/useVModel";
1
2
  import type { SelectOptionValue } from "../../types";
2
3
  import type { OnyxCheckboxGroupProps } from "./types";
3
- declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
- "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
6
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
7
- "onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
8
- }, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & import("vue").PublicProps;
9
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
4
+ declare const _default: <TValue extends SelectOptionValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:modelValue"?: ((value?: Nullable<TValue[]>) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue> & Partial<{}>> & import("vue").PublicProps;
8
+ expose(exposed: import("vue").ShallowUnwrapRef<{
9
+ inputs: import("vue").ComputedRef<HTMLInputElement[]>;
10
+ }>): void;
10
11
  attrs: any;
11
- slots: ReturnType<() => {}>;
12
- emit: ((evt: "update:modelValue", value: TValue[]) => void) & {};
13
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
- [key: string]: any;
15
- }> & {
12
+ slots: {};
13
+ emit: (evt: "update:modelValue", value?: Nullable<TValue[]>) => void;
14
+ }>) => import("vue").VNode & {
16
15
  __ctx?: Awaited<typeof __VLS_setup>;
17
16
  };
18
17
  export default _default;
19
- type __VLS_Prettify<T> = {
18
+ type __VLS_PrettifyLocal<T> = {
20
19
  [K in keyof T]: T[K];
21
20
  } & {};
@@ -1,8 +1,9 @@
1
- import type { DensityProp } from "../../composables/density";
2
- import type { RequiredMarkerProp } from "../../composables/required";
1
+ import type { RequiredProp } from "../../composables/required";
3
2
  import type { CustomValidityProp } from "../../composables/useCustomValidity";
3
+ import type { Nullable } from "../../composables/useVModel";
4
4
  import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
5
- export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & Pick<BaseSelectOption, "truncation"> & {
5
+ import type { SharedFormElementProps } from "../OnyxFormElement/types";
6
+ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = Pick<BaseSelectOption, "truncation"> & Pick<SharedFormElementProps, "label" | "labelTooltip" | "hideLabel" | "density" | "skeleton" | "disabled" | "requiredMarker"> & {
6
7
  /**
7
8
  * Checkbox options.
8
9
  */
@@ -10,11 +11,7 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
10
11
  /**
11
12
  * Currently checked checkboxes.
12
13
  */
13
- modelValue?: TValue[];
14
- /**
15
- * Headline to show above all checkboxes which is also the fieldset legend.
16
- */
17
- headline?: string;
14
+ modelValue?: Nullable<TValue[]>;
18
15
  /**
19
16
  * Direction of the checkboxes.
20
17
  */
@@ -30,13 +27,5 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
30
27
  */
31
28
  label?: string;
32
29
  };
33
- /**
34
- * Whether all checkboxes should be disabled.
35
- */
36
- disabled?: boolean;
37
- /**
38
- * If set, the specified number of skeleton radio buttons will be shown.
39
- */
40
- skeleton?: number;
41
30
  };
42
- export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp;
31
+ export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredProp & CustomValidityProp & AutofocusProp;
@@ -0,0 +1,22 @@
1
+ import { type ColumnGroupConfig, type DataGridFeature, type TypeRenderMap } from "./features";
2
+ import type { DataGridEntry, OnyxDataGridProps } from "./types";
3
+ declare const _default: <TEntry extends DataGridEntry, TTypeRenderer extends TypeRenderMap<TEntry>, TColumnGroup extends ColumnGroupConfig, TFeatureName extends symbol, TFeatures extends DataGridFeature<TEntry, TTypeRenderer, TFeatureName>[] | []>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridProps<TEntry, TColumnGroup, TTypeRenderer, TFeatureName, TFeatures> & Partial<{}>> & import("vue").PublicProps;
5
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: {
8
+ /**
9
+ * Optional slot to customize the empty state when no data exist.
10
+ *
11
+ * If unset, the default empty content of OnyxTable will be displayed.
12
+ */
13
+ empty?(): unknown;
14
+ };
15
+ emit: {};
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,22 @@
1
+ import type { DataGridEntry, DataGridMetadata } from "../types";
2
+ import type { OnyxDataGridRendererProps } from "./types";
3
+ declare const _default: <TEntry extends DataGridEntry, TMetadata extends DataGridMetadata>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OnyxDataGridRendererProps<TEntry, TMetadata> & Partial<{}>> & import("vue").PublicProps;
5
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: {
8
+ /**
9
+ * Optional slot to customize the empty state when no data exist.
10
+ *
11
+ * If unset, the default empty content of OnyxTable will be displayed.
12
+ */
13
+ empty?(): unknown;
14
+ };
15
+ emit: {};
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,92 @@
1
+ import type { Component, FunctionalComponent, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "vue";
2
+ import type { WithHTMLAttributes } from "../../../types";
3
+ import type { OnyxTableProps } from "../../OnyxTable/types";
4
+ import type { DataGridEntry, DataGridMetadata } from "../types";
5
+ export type OnyxDataGridRendererProps<TEntry extends DataGridEntry = DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = OnyxTableProps & {
6
+ /**
7
+ * Will define which columns and their headers are rendered in which order.
8
+ */
9
+ columns: DataGridRendererColumn<TEntry>[];
10
+ rows: DataGridRendererRow<TEntry, TMetadata>[];
11
+ };
12
+ /**
13
+ * Describes how a column header is rendered in the data grid.
14
+ */
15
+ export type DataGridRendererColumn<TEntry extends DataGridEntry> = {
16
+ /**
17
+ * (Unique) Key of the column - usually a key of the table data.
18
+ * But can also be used for custom columns.
19
+ */
20
+ key: keyof TEntry;
21
+ /**
22
+ * The component that renders the header content and is placed into the `<th>` element.
23
+ */
24
+ component: Component;
25
+ /**
26
+ * Width of the column. Any track-list value that can be used by [`grid-template-columns`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns) is possible.
27
+ * So the column can have a fixed width using a static value like `100px` or `2rem`.
28
+ * The width can also be defined using a fractional flex value like `1fr` or `0.5fr`.
29
+ * To define min and max widths, use the [`minmax`](https://developer.mozilla.org/en-US/docs/Web/CSS/minmax) function, e.g. `minmax(4rem, 10rem)`.
30
+ *
31
+ * @default "minmax(min-content, 1fr)"
32
+ */
33
+ width?: string;
34
+ /**
35
+ * Attributes that are bound directly to the `<th>` element of the column.
36
+ */
37
+ thAttributes?: ThHTMLAttributes;
38
+ };
39
+ /**
40
+ * Describes how a specific row is rendered in the data grid.
41
+ */
42
+ export type DataGridRendererRow<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = {
43
+ /**
44
+ * Unique id of the row.
45
+ */
46
+ id: PropertyKey;
47
+ /**
48
+ * Describes how a cell in a specific row is rendered in the data grid.
49
+ * Only cells that are defined in the columns will be rendered in the defined order.
50
+ */
51
+ cells: Partial<Record<keyof TEntry, DataGridRendererCell<TEntry, TMetadata>>>;
52
+ /**
53
+ * Attributes that are bound directly to the `<tr>` element of the row.
54
+ */
55
+ trAttributes?: HTMLAttributes;
56
+ };
57
+ /**
58
+ * Describes how a single cell in a specific row is rendered in the data grid.
59
+ */
60
+ export type DataGridRendererCell<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = {
61
+ /**
62
+ * The component that renders the actual cell content and is placed into the `<td>` element.
63
+ */
64
+ component: DataGridRendererCellComponent<TEntry, TMetadata>;
65
+ /**
66
+ * Attributes and data that is provided to the component using `v-bind`.
67
+ */
68
+ props: DataGridRendererCellComponentProps<TEntry, TMetadata>;
69
+ /**
70
+ * Attributes that are bound directly to the `<td>` element of the cell.
71
+ */
72
+ tdAttributes?: TdHTMLAttributes;
73
+ };
74
+ /**
75
+ * Vue component that renders the actual content of a single data grid cell.
76
+ */
77
+ export type DataGridRendererCellComponent<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata = DataGridMetadata> = FunctionalComponent<WithHTMLAttributes<DataGridRendererCellComponentProps<TEntry, TMetadata>, TdHTMLAttributes>>;
78
+ export type DataGridRendererCellComponentProps<TEntry extends DataGridEntry, TMetadata extends DataGridMetadata> = {
79
+ /**
80
+ * Complete row data.
81
+ */
82
+ row: Readonly<TEntry>;
83
+ /**
84
+ * Cell data that is provided to the component via the `metadata` prop.
85
+ */
86
+ metadata?: TMetadata;
87
+ /**
88
+ * Cell data that is provided to the component via the `modelValue` prop.
89
+ * If the cell renders readonly, this will just be the non-editable value.
90
+ */
91
+ modelValue?: TEntry[keyof TEntry];
92
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * label of the column
4
+ */
5
+ label: string;
6
+ };
7
+ type __VLS_Slots = {
8
+ actions?(): unknown;
9
+ };
10
+ 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, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,12 @@
1
+ export * from "./filtering/types";
2
+ export * from "./hideColumns/types";
3
+ export * from "./resizing/types";
4
+ export * from "./selection/types";
5
+ export * from "./sorting/types";
6
+ export * from "./stickyColumns/types";
7
+ export { useFiltering } from "./filtering/filtering";
8
+ export { useHideColumns } from "./hideColumns/hideColumns";
9
+ export { useResizing } from "./resizing/resizing";
10
+ export { useSelection } from "./selection/selection";
11
+ export { useSorting } from "./sorting/sorting";
12
+ export { useStickyColumns } from "./stickyColumns/stickyColumns";
@@ -0,0 +1,10 @@
1
+ import type { DataGridEntry, OnyxDataGridProps } from "../../../..";
2
+ import type { FilterOptions } from "./types";
3
+ type __VLS_Props = Pick<OnyxDataGridProps<any, any, any, any, any>, "columns" | "data"> & {
4
+ /**
5
+ * config
6
+ */
7
+ filterOptions?: FilterOptions<DataGridEntry>;
8
+ };
9
+ 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>;
10
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { type Ref } from "vue";
2
+ import type { DataGridEntry } from "../../types";
3
+ import "./filtering.scss";
4
+ import type { FilterOptions } from "./types";
5
+ export declare const FILTERING_FEATURE: unique symbol;
6
+ export type FilterState<TEntry> = Partial<Record<keyof TEntry, string | undefined>>;
7
+ export declare const useFiltering: <TEntry extends DataGridEntry>(options?: FilterOptions<TEntry>) => {
8
+ name: symbol;
9
+ watch: (Ref<Partial<Record<keyof DataGridEntry, string | undefined>>, Partial<Record<keyof DataGridEntry, string | undefined>>> | import("vue").ComputedRef<{ [TKey in keyof TEntry]?: ({ [TKey_1 in keyof TEntry]?: {
10
+ searchTerm?: string;
11
+ config?: import("./types").FilterConfig<TEntry> | undefined;
12
+ } | undefined; }[TKey] & {
13
+ enabled?: boolean;
14
+ }) | undefined; } | undefined>)[];
15
+ mutation: {
16
+ func: (entries: Readonly<TEntry>[]) => Readonly<TEntry>[];
17
+ };
18
+ header: {
19
+ actions: ({ key: column }: import("..").InternalColumnConfig<any, any, PropertyKey>) => {
20
+ iconComponent: {
21
+ iconComponent: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>;
24
+ alwaysShowInHeader: true;
25
+ } | undefined;
26
+ menuItems: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>[];
29
+ showFlyoutMenu: true;
30
+ }[];
31
+ };
32
+ };
@@ -0,0 +1,65 @@
1
+ import type { DataGridFeatureOptions } from "..";
2
+ import type { DataGridEntry } from "../../types";
3
+ /**
4
+ * Configuration for how filtering should behave.
5
+ */
6
+ export type FilterConfig<TEntry extends DataGridEntry> = {
7
+ /**
8
+ * A custom filtering function for this column.
9
+ * This function is used to filter the column data, instead of using the default filtering behavior.
10
+ */
11
+ filterFunc?: (
12
+ /**
13
+ * The searchTerm as entered by the user.
14
+ */
15
+ searchTerm: string,
16
+ /**
17
+ * The current row value to be checked.
18
+ */
19
+ value: TEntry[keyof TEntry],
20
+ /**
21
+ * The column that is filtered by.
22
+ */
23
+ column: keyof TEntry,
24
+ /**
25
+ * The complete row data.
26
+ */
27
+ entry: TEntry) => boolean;
28
+ /**
29
+ * If true, filtering will be case-sensitive.
30
+ * If false, filtering will be case-insensitive.
31
+ */
32
+ caseSensitive?: boolean;
33
+ /**
34
+ * If true, the filter will start searching from the beginning of the value.
35
+ * If false, it will search anywhere in the value.
36
+ */
37
+ searchFromStart?: boolean;
38
+ /**
39
+ * If true, the filter will match the value exactly, without partial matches.
40
+ * If false, partial matches will be allowed.
41
+ */
42
+ exactMatch?: boolean;
43
+ };
44
+ /**
45
+ * The configuration options for the filtering feature in the OnyxDataGrid component.
46
+ * Includes settings for the individual columns and general filter behavior.
47
+ */
48
+ export type FilterOptions<TEntry extends DataGridEntry> = DataGridFeatureOptions<TEntry, {
49
+ /**
50
+ * Configuration for how the filtering should behave across all columns.
51
+ */
52
+ filterConfig?: FilterConfig<TEntry>;
53
+ }, {
54
+ [TKey in keyof TEntry]?: {
55
+ /**
56
+ * The filter value for this column.
57
+ * This value will be used to filter the data in this column.
58
+ */
59
+ searchTerm?: string;
60
+ /**
61
+ * Configuration for how filtering should behave for this column.
62
+ */
63
+ config?: FilterConfig<TEntry>;
64
+ };
65
+ }>;
@@ -0,0 +1,20 @@
1
+ import type { DataGridEntry, OnyxDataGridProps } from "../../../..";
2
+ import type { HideColumnsOptions } from "./types";
3
+ declare const _default: <TEntry extends DataGridEntry>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & (Pick<OnyxDataGridProps<TEntry, any, any, any, any>, "data" | "columns"> & {
5
+ /**
6
+ * config
7
+ */
8
+ hideColumnsOptions?: HideColumnsOptions<TEntry>;
9
+ }) & Partial<{}>> & import("vue").PublicProps;
10
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: {};
13
+ emit: {};
14
+ }>) => import("vue").VNode & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
@@ -0,0 +1,39 @@
1
+ import { type Ref } from "vue";
2
+ import type { DataGridEntry } from "../../types";
3
+ import "./hideColumns.scss";
4
+ import type { HideColumnsOptions } from "./types";
5
+ export declare const HIDE_COLUMNS_FEATURE: unique symbol;
6
+ export declare const HIDDEN_COLUMN: unique symbol;
7
+ export declare const useHideColumns: <TEntry extends DataGridEntry>(options?: HideColumnsOptions<TEntry>) => {
8
+ name: symbol;
9
+ watch: Ref<(keyof TEntry)[], (keyof TEntry)[]>[];
10
+ modifyColumns: {
11
+ func: (columnConfig: readonly import("..").InternalColumnConfig<TEntry, any, PropertyKey>[]) => import("..").InternalColumnConfig<TEntry, any, PropertyKey>[];
12
+ };
13
+ typeRenderer: {
14
+ [HIDDEN_COLUMN]: {
15
+ header: {
16
+ thAttributes: {
17
+ class: string;
18
+ };
19
+ component: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
+ [key: string]: any;
21
+ }>;
22
+ };
23
+ cell: {
24
+ tdAttributes: {
25
+ class: string;
26
+ };
27
+ component: () => null;
28
+ };
29
+ };
30
+ };
31
+ header: {
32
+ actions: ({ key: column }: import("..").InternalColumnConfig<any, any, PropertyKey>) => {
33
+ menuItems: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>[];
36
+ showFlyoutMenu: true;
37
+ }[];
38
+ };
39
+ };
@@ -0,0 +1,15 @@
1
+ import type { DataGridFeatureOptions } from "..";
2
+ import type { DataGridEntry } from "../../types";
3
+ /**
4
+ * The options of the sorting feature for the OnyxDataGrid component.
5
+ */
6
+ export type HideColumnsOptions<TEntry extends DataGridEntry> = DataGridFeatureOptions<TEntry, object, {
7
+ [TKey in keyof TEntry]?: {
8
+ /**
9
+ * Whether the column is hidden.
10
+ *
11
+ * @default false
12
+ */
13
+ hidden?: boolean;
14
+ };
15
+ }>;