@economic/taco 2.19.0 → 2.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. package/dist/components/Provider/Localization.d.ts +18 -0
  2. package/dist/components/Report/components/Body/Body.d.ts +8 -0
  3. package/dist/components/Report/components/Cell/Cell.d.ts +3 -0
  4. package/dist/components/Report/components/Cell/DisplayCell.d.ts +7 -0
  5. package/dist/components/Report/components/Cell/GroupedCell.d.ts +7 -0
  6. package/dist/components/Report/components/Cell/util.d.ts +18 -0
  7. package/dist/components/Report/components/Footer/Footer.d.ts +6 -0
  8. package/dist/components/Report/components/Footer/Summary.d.ts +7 -0
  9. package/dist/components/Report/components/Header/Header.d.ts +37 -0
  10. package/dist/components/Report/components/Header/components/Goto.d.ts +6 -0
  11. package/dist/components/Report/components/Header/components/Menu.d.ts +17 -0
  12. package/dist/components/Report/components/Header/components/Resizer.d.ts +12 -0
  13. package/dist/components/Report/components/Header/components/SortIndicator.d.ts +15 -0
  14. package/dist/components/Report/components/Header/util.d.ts +4 -0
  15. package/dist/components/Report/components/Internal/Actions.d.ts +13 -0
  16. package/dist/components/Report/components/Internal/Expansion.d.ts +4 -0
  17. package/dist/components/Report/components/Internal/Selection.d.ts +4 -0
  18. package/dist/components/Report/components/Row/DisplayRow.d.ts +16 -0
  19. package/dist/components/Report/components/Row/Row.d.ts +8 -0
  20. package/dist/components/Report/components/Row/RowContext.d.ts +9 -0
  21. package/dist/components/Report/components/Row/SkeletonRow.d.ts +10 -0
  22. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +15 -0
  23. package/dist/components/Report/components/Toolbar/components/Filters/Filters.d.ts +7 -0
  24. package/dist/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +7 -0
  25. package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
  26. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +9 -0
  27. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
  28. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
  29. package/dist/components/Report/components/Toolbar/components/Filters/components/Placeholder.d.ts +12 -0
  30. package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +2 -0
  31. package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +9 -0
  32. package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
  33. package/dist/components/Report/components/Toolbar/components/Search/Search.d.ts +8 -0
  34. package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
  35. package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +8 -0
  36. package/dist/components/Report/features/useReportExport.d.ts +3 -0
  37. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +2 -0
  38. package/dist/components/Report/styles/useCssGridStylesheet.d.ts +3 -0
  39. package/dist/components/Report/styles/useStylesheet.d.ts +3 -0
  40. package/dist/components/Report/styles/util.d.ts +3 -0
  41. package/dist/components/Report/types.d.ts +20 -0
  42. package/dist/components/Report/useReport.d.ts +14 -0
  43. package/dist/components/Report/util/rows.d.ts +7 -0
  44. package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +4 -0
  45. package/dist/components/Report/util/useTableRenderer.d.ts +9 -0
  46. package/dist/components/Table3/Table3.d.ts +1 -1
  47. package/dist/components/Table3/components/rows/Row.d.ts +1 -1
  48. package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
  49. package/dist/components/Table3/hooks/useTable.d.ts +5 -5
  50. package/dist/components/Table3/types.d.ts +21 -3
  51. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +1 -1
  52. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  53. package/dist/esm/packages/taco/src/components/Alert/Alert.js +1 -1
  54. package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
  55. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +1 -1
  56. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
  57. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
  58. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
  59. package/dist/esm/packages/taco/src/components/Badge/Badge.js +1 -1
  60. package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
  61. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +1 -1
  62. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
  63. package/dist/esm/packages/taco/src/components/Banner/Banner.js +2 -2
  64. package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
  65. package/dist/esm/packages/taco/src/components/Button/Button.js +1 -1
  66. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  67. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
  68. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  69. package/dist/esm/packages/taco/src/components/Card/Card.js +2 -2
  70. package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
  71. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +1 -1
  72. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  73. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +1 -1
  74. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
  75. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +1 -1
  76. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  77. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +5 -5
  78. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  79. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +1 -1
  80. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
  81. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
  82. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  83. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +1 -1
  84. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
  85. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +1 -1
  86. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  87. package/dist/esm/packages/taco/src/components/Drawer/util.js +1 -1
  88. package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
  89. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -1
  90. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  91. package/dist/esm/packages/taco/src/components/Form/Form.js +1 -1
  92. package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
  93. package/dist/esm/packages/taco/src/components/Group/Group.js +1 -1
  94. package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
  95. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +2 -2
  96. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
  97. package/dist/esm/packages/taco/src/components/Header/Header.js +1 -1
  98. package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
  99. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +1 -1
  100. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
  101. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +2 -2
  102. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
  103. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +2 -2
  104. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
  105. package/dist/esm/packages/taco/src/components/Header/components/Button.js +1 -1
  106. package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
  107. package/dist/esm/packages/taco/src/components/Header/components/Link.js +1 -1
  108. package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
  109. package/dist/esm/packages/taco/src/components/Header/components/Logo.js +1 -1
  110. package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
  111. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +1 -1
  112. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
  113. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +1 -1
  114. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
  115. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +1 -1
  116. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
  117. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +1 -1
  118. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
  119. package/dist/esm/packages/taco/src/components/Icon/Icon.js +1 -1
  120. package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
  121. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +1 -1
  122. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
  123. package/dist/esm/packages/taco/src/components/Input/Input.js +1 -1
  124. package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
  125. package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
  126. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  127. package/dist/esm/packages/taco/src/components/Layout/Layout.js +2 -2
  128. package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
  129. package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
  130. package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
  131. package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
  132. package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
  133. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +2 -2
  134. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
  135. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +1 -1
  136. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
  137. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +1 -1
  138. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
  139. package/dist/esm/packages/taco/src/components/Menu/components/Content.js +1 -1
  140. package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
  141. package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
  142. package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
  143. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
  144. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  145. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +1 -1
  146. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
  147. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +1 -1
  148. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
  149. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +1 -1
  150. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
  151. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +1 -1
  152. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
  153. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +1 -1
  154. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
  155. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +1 -1
  156. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
  157. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +1 -1
  158. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
  159. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +2 -2
  160. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
  161. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +1 -1
  162. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
  163. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +1 -1
  164. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
  165. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +1 -1
  166. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
  167. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +1 -1
  168. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
  169. package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -1
  170. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  171. package/dist/esm/packages/taco/src/components/Progress/Progress.js +1 -1
  172. package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
  173. package/dist/esm/packages/taco/src/components/Provider/Localization.js +18 -0
  174. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  175. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +1 -1
  176. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  177. package/dist/esm/packages/taco/src/components/RadioGroup/util.js +1 -1
  178. package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
  179. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
  180. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
  181. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +3 -3
  182. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  183. package/dist/esm/packages/taco/src/components/Select/Select.js +1 -1
  184. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  185. package/dist/esm/packages/taco/src/components/Select/useSelect.js +1 -1
  186. package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
  187. package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
  188. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  189. package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
  190. package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
  191. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
  192. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  193. package/dist/esm/packages/taco/src/components/Select2/components/Group.js +1 -1
  194. package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
  195. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +1 -1
  196. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  197. package/dist/esm/packages/taco/src/components/Select2/components/Search.js +1 -1
  198. package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
  199. package/dist/esm/packages/taco/src/components/Select2/components/Title.js +1 -1
  200. package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
  201. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +2 -2
  202. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  203. package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
  204. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  205. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +1 -1
  206. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
  207. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +1 -1
  208. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
  209. package/dist/esm/packages/taco/src/components/Switch/Switch.js +1 -1
  210. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  211. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +2 -2
  212. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
  213. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  214. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  215. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
  216. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
  217. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +1 -1
  218. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  219. package/dist/esm/packages/taco/src/components/Table3/Table3.js +1 -6
  220. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  221. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +1 -1
  222. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
  223. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +4 -2
  224. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
  225. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +1 -1
  226. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
  227. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +2 -2
  228. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -1
  229. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +1 -1
  230. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -1
  231. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +2 -2
  232. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
  233. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +1 -1
  234. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -1
  235. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +1 -1
  236. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -1
  237. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +5 -2
  238. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -1
  239. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +1 -1
  240. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
  241. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +1 -1
  242. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -1
  243. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +1 -1
  244. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
  245. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +1 -1
  246. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -1
  247. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +1 -1
  248. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -1
  249. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +1 -1
  250. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
  251. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +1 -1
  252. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
  253. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +2 -2
  254. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -1
  255. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +1 -1
  256. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
  257. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +1 -1
  258. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -1
  259. package/dist/esm/packages/taco/src/{primitives/Table/useTable/features/useTablePrinting.js → components/Table3/hooks/features/usePrinting.js} +3 -3
  260. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
  261. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +4 -3
  262. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
  263. package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
  264. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +1 -1
  265. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
  266. package/dist/esm/packages/taco/src/components/Tag/Tag.js +2 -2
  267. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  268. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +1 -1
  269. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
  270. package/dist/esm/packages/taco/src/components/Toast/Toast.js +2 -2
  271. package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
  272. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +2 -2
  273. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  274. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +1 -1
  275. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
  276. package/dist/esm/packages/taco/src/primitives/Table/types.js +27 -0
  277. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -0
  278. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js +1 -1
  279. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +1 -1
  280. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +11 -21
  281. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +1 -1
  282. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +1 -1
  283. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js +1 -1
  284. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +1 -1
  285. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js +1 -0
  286. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +1 -1
  287. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js +42 -2
  288. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +1 -1
  289. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +10 -8
  290. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +1 -1
  291. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +7 -0
  292. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -0
  293. package/dist/esm/packages/taco/src/utils/dom.js +10 -1
  294. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  295. package/dist/primitives/Table/types.d.ts +187 -2
  296. package/dist/primitives/Table/useTable/features/useTableColumnFreezing.d.ts +6 -0
  297. package/dist/primitives/Table/useTable/features/useTableFooter.d.ts +3 -0
  298. package/dist/primitives/Table/useTable/features/useTablePrinting.d.ts +1 -0
  299. package/dist/primitives/Table/useTable/features/useTableRef.d.ts +4 -0
  300. package/dist/primitives/Table/useTable/features/useTableRowActions.d.ts +6 -0
  301. package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -1
  302. package/dist/primitives/Table/useTable/features/useTableRowClick.d.ts +1 -1
  303. package/dist/primitives/Table/useTable/features/useTableRowExpansion.d.ts +5 -0
  304. package/dist/primitives/Table/useTable/features/useTableRowGoto.d.ts +1 -1
  305. package/dist/primitives/Table/useTable/features/useTableRowGroups.d.ts +5 -0
  306. package/dist/primitives/Table/useTable/features/useTableRowSelection.d.ts +1 -0
  307. package/dist/primitives/Table/useTable/features/useTableSearch.d.ts +11 -0
  308. package/dist/primitives/Table/useTable/features/useTableServerLoading.d.ts +5 -2
  309. package/dist/primitives/Table/useTable/features/useTableSettings.d.ts +3 -0
  310. package/dist/primitives/Table/useTable/listeners/useTableRowHeightListener.d.ts +2 -0
  311. package/dist/primitives/Table/useTable/listeners/useTableSearchListener.d.ts +2 -0
  312. package/dist/primitives/Table/useTable/listeners/useTableSettingsListener.d.ts +3 -0
  313. package/dist/primitives/Table/useTable/useTable.d.ts +57 -0
  314. package/dist/primitives/Table/useTable/util/columns.d.ts +7 -1
  315. package/dist/primitives/Table/useTable/util/columns.spec.d.ts +1 -0
  316. package/dist/primitives/Table/useTable/util/filtering.d.ts +7 -0
  317. package/dist/primitives/Table/useTable/util/presets.d.ts +2 -0
  318. package/dist/primitives/Table/useTable/util/search.d.ts +2 -0
  319. package/dist/primitives/Table/useTable/util/settings.d.ts +13 -0
  320. package/dist/primitives/Table/useTable/util/setup.d.ts +14 -0
  321. package/dist/primitives/Table/useTable/util/sorting.d.ts +2 -0
  322. package/dist/primitives/Table/useTableDataLoader.d.ts +23 -0
  323. package/dist/taco.cjs.development.js +149 -68
  324. package/dist/taco.cjs.development.js.map +1 -1
  325. package/dist/taco.cjs.production.min.js +1 -1
  326. package/dist/taco.cjs.production.min.js.map +1 -1
  327. package/dist/utils/dom.d.ts +1 -0
  328. package/package.json +4 -3
  329. package/types.json +20877 -7755
  330. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dom.js","sources":["../../../../../../src/utils/dom.ts"],"sourcesContent":["export const isOverflowing = (element: HTMLElement | null) =>\n element !== null ? element.scrollWidth > element.offsetWidth : false;\n\nexport const getIndexOfFirstChildOverflowingParent = (element: HTMLElement, overscan = 0) => {\n let index = 0;\n let boundaryChildIndex: number | null = null;\n const clientRect = element.getBoundingClientRect();\n\n for (const child of Array.from(element.children)) {\n const right = child.getBoundingClientRect().right - clientRect.left;\n const width = clientRect.width - overscan;\n\n if (right > width) {\n boundaryChildIndex = index;\n break;\n }\n index++;\n }\n\n return boundaryChildIndex;\n};\n\nexport const getNextFocussableElement = (currentElement: HTMLElement | null) => {\n if (!currentElement) {\n return null;\n }\n\n const focussableElements = [\n ...document.querySelectorAll<HTMLElement>(\n 'button:not([disabled]), [href]:not(link):not(script), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled]), details:not([disabled]), summary:not(:disabled)'\n ),\n ];\n const currentElementIndex = focussableElements.indexOf(currentElement);\n\n // If the currentElement is not in the focussable elements list or it is the last element\n if (currentElementIndex !== -1 && currentElementIndex === focussableElements.length - 1) {\n return null;\n }\n\n return focussableElements[currentElementIndex + 1];\n};\n"],"names":["getIndexOfFirstChildOverflowingParent","element","overscan","index","boundaryChildIndex","clientRect","getBoundingClientRect","child","Array","from","children","right","left","width","getNextFocussableElement","currentElement","focussableElements","document","querySelectorAll","currentElementIndex","indexOf","length"],"mappings":"MAGaA,qCAAqC,GAAGA,CAACC,OAAoB,EAAEC,QAAQ,GAAG,CAAC;EACpF,IAAIC,KAAK,GAAG,CAAC;EACb,IAAIC,kBAAkB,GAAkB,IAAI;EAC5C,MAAMC,UAAU,GAAGJ,OAAO,CAACK,qBAAqB,EAAE;EAElD,KAAK,MAAMC,KAAK,IAAIC,KAAK,CAACC,IAAI,CAACR,OAAO,CAACS,QAAQ,CAAC,EAAE;IAC9C,MAAMC,KAAK,GAAGJ,KAAK,CAACD,qBAAqB,EAAE,CAACK,KAAK,GAAGN,UAAU,CAACO,IAAI;IACnE,MAAMC,KAAK,GAAGR,UAAU,CAACQ,KAAK,GAAGX,QAAQ;IAEzC,IAAIS,KAAK,GAAGE,KAAK,EAAE;MACfT,kBAAkB,GAAGD,KAAK;MAC1B;;IAEJA,KAAK,EAAE;;EAGX,OAAOC,kBAAkB;AAC7B;MAEaU,wBAAwB,GAAIC,cAAkC;EACvE,IAAI,CAACA,cAAc,EAAE;IACjB,OAAO,IAAI;;EAGf,MAAMC,kBAAkB,GAAG,CACvB,GAAGC,QAAQ,CAACC,gBAAgB,CACxB,iOAAiO,CACpO,CACJ;EACD,MAAMC,mBAAmB,GAAGH,kBAAkB,CAACI,OAAO,CAACL,cAAc,CAAC;;EAGtE,IAAII,mBAAmB,KAAK,CAAC,CAAC,IAAIA,mBAAmB,KAAKH,kBAAkB,CAACK,MAAM,GAAG,CAAC,EAAE;IACrF,OAAO,IAAI;;EAGf,OAAOL,kBAAkB,CAACG,mBAAmB,GAAG,CAAC,CAAC;AACtD;;;;"}
1
+ {"version":3,"file":"dom.js","sources":["../../../../../../src/utils/dom.ts"],"sourcesContent":["export const isOverflowing = (element: HTMLElement | null) =>\n element !== null ? element.scrollWidth > element.offsetWidth : false;\n\nexport const getIndexOfFirstChildOverflowingParent = (element: HTMLElement, overscan = 0) => {\n let index = 0;\n let boundaryChildIndex: number | null = null;\n const clientRect = element.getBoundingClientRect();\n\n for (const child of Array.from(element.children)) {\n const right = child.getBoundingClientRect().right - clientRect.left;\n const width = clientRect.width - overscan;\n\n if (right > width) {\n boundaryChildIndex = index;\n break;\n }\n index++;\n }\n\n return boundaryChildIndex;\n};\n\nexport const getNextFocussableElement = (currentElement: HTMLElement | null) => {\n if (!currentElement) {\n return null;\n }\n\n const focussableElements = [\n ...document.querySelectorAll<HTMLElement>(\n 'button:not([disabled]), [href]:not(link):not(script), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled]), details:not([disabled]), summary:not(:disabled)'\n ),\n ];\n const currentElementIndex = focussableElements.indexOf(currentElement);\n\n // If the currentElement is not in the focussable elements list or it is the last element\n if (currentElementIndex !== -1 && currentElementIndex === focussableElements.length - 1) {\n return null;\n }\n\n return focussableElements[currentElementIndex + 1];\n};\n\nexport function isElementInsideOrTriggeredFromContainer(element: Element | null, container: Element | null) {\n switch (element?.getAttribute('role')) {\n case 'dialog':\n return !!container?.querySelector(`[aria-controls='${element.id}']`);\n\n case 'menu':\n return !!container?.querySelector(`#${element.getAttribute('aria-labelledby')}`);\n }\n\n return !!container?.contains(element);\n}\n"],"names":["getIndexOfFirstChildOverflowingParent","element","overscan","index","boundaryChildIndex","clientRect","getBoundingClientRect","child","Array","from","children","right","left","width","getNextFocussableElement","currentElement","focussableElements","document","querySelectorAll","currentElementIndex","indexOf","length","isElementInsideOrTriggeredFromContainer","container","getAttribute","querySelector","id","contains"],"mappings":"MAGaA,qCAAqC,GAAGA,CAACC,OAAoB,EAAEC,QAAQ,GAAG,CAAC;EACpF,IAAIC,KAAK,GAAG,CAAC;EACb,IAAIC,kBAAkB,GAAkB,IAAI;EAC5C,MAAMC,UAAU,GAAGJ,OAAO,CAACK,qBAAqB,EAAE;EAElD,KAAK,MAAMC,KAAK,IAAIC,KAAK,CAACC,IAAI,CAACR,OAAO,CAACS,QAAQ,CAAC,EAAE;IAC9C,MAAMC,KAAK,GAAGJ,KAAK,CAACD,qBAAqB,EAAE,CAACK,KAAK,GAAGN,UAAU,CAACO,IAAI;IACnE,MAAMC,KAAK,GAAGR,UAAU,CAACQ,KAAK,GAAGX,QAAQ;IAEzC,IAAIS,KAAK,GAAGE,KAAK,EAAE;MACfT,kBAAkB,GAAGD,KAAK;MAC1B;;IAEJA,KAAK,EAAE;;EAGX,OAAOC,kBAAkB;AAC7B;MAEaU,wBAAwB,GAAIC,cAAkC;EACvE,IAAI,CAACA,cAAc,EAAE;IACjB,OAAO,IAAI;;EAGf,MAAMC,kBAAkB,GAAG,CACvB,GAAGC,QAAQ,CAACC,gBAAgB,CACxB,iOAAiO,CACpO,CACJ;EACD,MAAMC,mBAAmB,GAAGH,kBAAkB,CAACI,OAAO,CAACL,cAAc,CAAC;;EAGtE,IAAII,mBAAmB,KAAK,CAAC,CAAC,IAAIA,mBAAmB,KAAKH,kBAAkB,CAACK,MAAM,GAAG,CAAC,EAAE;IACrF,OAAO,IAAI;;EAGf,OAAOL,kBAAkB,CAACG,mBAAmB,GAAG,CAAC,CAAC;AACtD;SAEgBG,uCAAuCA,CAACrB,OAAuB,EAAEsB,SAAyB;EACtG,QAAQtB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEuB,YAAY,CAAC,MAAM,CAAC;IACjC,KAAK,QAAQ;MACT,OAAO,CAAC,EAACD,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEE,aAAa,oBAAoBxB,OAAO,CAACyB,MAAM,CAAC;IAExE,KAAK,MAAM;MACP,OAAO,CAAC,EAACH,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEE,aAAa,KAAKxB,OAAO,CAACuB,YAAY,CAAC,iBAAiB,GAAG,CAAC;;EAGxF,OAAO,CAAC,EAACD,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEI,QAAQ,CAAC1B,OAAO,CAAC;AACzC;;;;"}
@@ -1,5 +1,9 @@
1
- import { ColumnFilter as ReactTableColumnFilter, ColumnSort as ReactTableColumnSort } from '@tanstack/react-table';
2
- export declare type TableRef = HTMLDivElement & {
1
+ /// <reference types="react" />
2
+ import { ColumnFilter as ReactTableColumnFilter, ColumnFiltersState as ReactTableColumnFilterState, ColumnOrderState as ReactTableColumnOrderState, ColumnPinningState as ReactTableColumnPinningState, ColumnSort as ReactTableColumnSort, ColumnSizingState as ReactTableColumnSizingState, GroupingState as ReactTableGroupingState, VisibilityState as ReactTableColumnVisibilityState, SortingState as ReactTableSortingState, BuiltInAggregationFn as ReactTableBuiltInAggregationFn, BuiltInSortingFn as ReactTableBuiltInSortingFn, HeaderContext as ReactTableHeaderContext, CellContext as ReactTableCellContext, ColumnMeta as ReactTableColumnMeta } from '@tanstack/react-table';
3
+ import { FontSizes, ValueOf } from '../../types';
4
+ import { MenuProps } from '../../components/Menu/Menu';
5
+ declare type TODO = any;
6
+ export declare type TableRef = HTMLTableElement & {
3
7
  instance: {
4
8
  resetFiltering: () => void;
5
9
  resetRowExpansion: () => void;
@@ -7,8 +11,57 @@ export declare type TableRef = HTMLDivElement & {
7
11
  resetSorting: () => void;
8
12
  };
9
13
  };
14
+ export declare enum TableFilterComparator {
15
+ Contains = 0,
16
+ DoesNotContain = 1,
17
+ IsEqualTo = 2,
18
+ IsNotEqualTo = 3,
19
+ IsGreaterThan = 4,
20
+ IsLessThan = 5,
21
+ IsBetween = 6,
22
+ IsEmpty = 7,
23
+ IsNotEmpty = 8,
24
+ IsLessThanOrEqualTo = 9,
25
+ IsGreaterThanOrEqualTo = 10,
26
+ HasAnyOf = 11,
27
+ HasAllOf = 12,
28
+ HasNoneOf = 13
29
+ }
30
+ export declare type TableFilterValue = {
31
+ comparator: TableFilterComparator;
32
+ value: any;
33
+ };
34
+ export declare type TableFilter = {
35
+ id: string;
36
+ value: TableFilterValue;
37
+ };
38
+ export declare type TableColumnAlignment = 'left' | 'center' | 'right';
39
+ export declare type TableColumnClassNameHandler<TType = unknown> = string | ((row: TType) => string | undefined);
40
+ export declare type TableColumnDataType = 'auto' | 'number' | 'alphanumeric' | 'alphanumericCaseSensitive' | 'datetime' | 'boolean';
10
41
  export declare type TableColumnFilter = ReactTableColumnFilter;
42
+ export declare type TableColumnMenu = (props: Partial<MenuProps>) => JSX.Element;
43
+ export declare type TableColumnRenderer<TType, TValue> = (value: TValue, row: TType) => JSX.Element | string | number | null;
44
+ export declare type TableColumnRendererAggregate<TType, TValue> = (value: TValue, row: TType) => JSX.Element | string | number | null;
45
+ export declare type TableColumnRendererControl<TType = unknown> = ((props: TableColumnRendererControlProps, row?: TType) => JSX.Element) | 'datepicker' | 'input' | 'switch' | 'textarea';
46
+ export declare type TableColumnRendererControlProps = {
47
+ className?: string;
48
+ disabled?: boolean;
49
+ invalid?: boolean;
50
+ onBlur?: (value: unknown) => void;
51
+ onFocus?: React.FocusEventHandler;
52
+ readOnly?: boolean;
53
+ ref: React.RefObject<HTMLElement> | ((instance: HTMLElement | null | undefined) => void);
54
+ setValue: (value: unknown) => void;
55
+ value: unknown;
56
+ };
57
+ export declare type TableColumnRendererHeader = string;
58
+ export declare type TableColumnRendererFooter<TValue> = (values: TValue[]) => JSX.Element | string | number | null;
11
59
  export declare type TableColumnSort = ReactTableColumnSort;
60
+ export declare type TableColumnSortDirection = 'asc' | 'desc';
61
+ export declare type TableColumnSortFn<TType = unknown> = ((rowA: TType, rowB: TType, columnId: string) => -1 | 0 | 1) | ReactTableBuiltInSortingFn | 'auto';
62
+ export declare type TableColumnWidth = number | 'grow';
63
+ export declare type TableRowActionRenderer<TType = unknown> = (row: TType) => JSX.Element | null;
64
+ export declare type TableRowActionGroupRenderer<TType = unknown> = (rows: TType[]) => JSX.Element | null;
12
65
  export declare type TableRowClickHandler<TType = unknown> = (row: TType) => void;
13
66
  export declare type TableRowGotoHandler = (column: string, query: string, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<number>;
14
67
  export declare type TableRowHeight = 'short' | 'medium' | 'tall' | 'extra-tall';
@@ -20,10 +73,142 @@ export declare type TableShortcutHandlerObject<TType = unknown> = {
20
73
  shift?: boolean;
21
74
  };
22
75
  export declare type TableFilterHandler = (filters: TableColumnFilter[]) => void;
76
+ export declare type TableFontSize = keyof typeof FontSizes;
77
+ export declare type TablePreset = 'lite' | 'complex';
78
+ export declare type TableRowExpansionRenderer<TType = unknown> = (row: TType) => (() => JSX.Element) | null;
23
79
  export declare type TableScrollToIndexHandler = (index: number, options?: {
24
80
  align: 'start' | 'center' | 'end' | 'auto';
25
81
  }) => void;
26
82
  export declare type TableServerLoadPageHandler = (pageIndex: number, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<void>;
27
83
  export declare type TableServerLoadAllHandler = (sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<void>;
84
+ export declare enum TableServerLoadAllState {
85
+ Incomplete = 0,
86
+ Loading = 1,
87
+ Completed = 2
88
+ }
89
+ export declare type TableSettingsHandler = (settings: TableSettings) => void | Promise<void>;
28
90
  export declare type TableShortcuts<TType = unknown> = Record<string, TableShortcutHandlerFn<TType> | TableShortcutHandlerObject<TType>>;
29
91
  export declare type TableSortHandler = (sorting: TableColumnSort[]) => void;
92
+ export declare type TableSettings = {
93
+ columnFilters?: ReactTableColumnFilterState;
94
+ columnOrder?: ReactTableColumnOrderState;
95
+ columnPinning?: ReactTableColumnPinningState;
96
+ columnSizing?: ReactTableColumnSizingState;
97
+ columnVisibility?: ReactTableColumnVisibilityState;
98
+ excludeUnmatchedRecordsInSearch?: boolean;
99
+ fontSize?: TableFontSize;
100
+ grouping?: ReactTableGroupingState;
101
+ rowHeight?: TableRowHeight;
102
+ showWarningWhenPrintingLargeDataset?: boolean;
103
+ searchQuery?: string;
104
+ sorting?: ReactTableSortingState;
105
+ };
106
+ export declare type TableFeatureProps = {
107
+ enableFiltering?: boolean;
108
+ enableSearch?: boolean;
109
+ enableSorting?: boolean;
110
+ enableColumnFreezing?: boolean;
111
+ enableColumnHiding?: boolean;
112
+ enableColumnResizing?: boolean;
113
+ enableRowExpansion?: boolean;
114
+ enableRowSelection?: boolean;
115
+ enableRowSelectionSingle?: boolean;
116
+ enableColumnOrdering?: boolean;
117
+ enableFontSize?: boolean;
118
+ enableFooter?: boolean;
119
+ enablePrinting?: boolean;
120
+ enableRowActions?: boolean;
121
+ enableRowActive?: boolean;
122
+ enableRowClick?: boolean;
123
+ enableRowGoto?: boolean;
124
+ enableRowHeight?: boolean;
125
+ enableSettings?: boolean;
126
+ };
127
+ export declare type useTableInternalColumn<TType = unknown> = {
128
+ header?: (info: ReactTableHeaderContext<TType, unknown>) => JSX.Element | string | null;
129
+ renderer: (info: ReactTableCellContext<TType, unknown>) => JSX.Element | string | null;
130
+ meta?: ReactTableColumnMeta<TType, unknown>;
131
+ size?: number;
132
+ };
133
+ export declare type useTableInternalColumns<TType = unknown> = {
134
+ rowActions?: useTableInternalColumn<TType>;
135
+ rowExpansion?: useTableInternalColumn<TType>;
136
+ rowSelection?: useTableInternalColumn<TType>;
137
+ };
138
+ declare type useTableCommonProps<TType = unknown> = TableFeatureProps & {
139
+ children: (JSX.Element | boolean | null | undefined)[];
140
+ data: TType[];
141
+ id: string;
142
+ defaultColumnFreezingIndex?: number;
143
+ defaultRowActiveIndex?: number;
144
+ defaultRowGroupColumnId?: keyof TType;
145
+ defaultSettings?: TableSettings;
146
+ preset?: TablePreset;
147
+ rowActions?: TableRowActionRenderer<TType>[];
148
+ rowActionsForGroup?: TableRowActionGroupRenderer<TType>[];
149
+ rowActionsLength?: number;
150
+ rowExpansionRenderer?: TableRowExpansionRenderer<TType>;
151
+ shortcuts?: TableShortcuts<TType>;
152
+ onRowClick?: TableRowClickHandler<TType>;
153
+ onRowGoto?: TableRowGotoHandler;
154
+ onRowSelect?: TableRowSelectHandler<TType>;
155
+ onChangeFilter?: TableFilterHandler;
156
+ onChangeSearch?: TODO;
157
+ onChangeSettings?: TableSettingsHandler;
158
+ onChangeSort?: TableSortHandler;
159
+ };
160
+ interface useTableClientProps<TType = unknown> extends useTableCommonProps<TType> {
161
+ length?: never;
162
+ loadAll?: never;
163
+ loadPage?: never;
164
+ pageSize?: never;
165
+ }
166
+ interface useTableServerProps<TType = unknown> extends useTableCommonProps<TType> {
167
+ length: number | undefined;
168
+ loadAll: TableServerLoadAllHandler;
169
+ loadPage: TableServerLoadPageHandler;
170
+ pageSize?: number;
171
+ }
172
+ export declare type useTableProps<TType = unknown> = useTableClientProps<TType> | useTableServerProps<TType>;
173
+ export declare type TableColumnProps<TType = unknown> = ValueOf<{
174
+ [Key in keyof TType]: {
175
+ accessor?: Key;
176
+ id: string;
177
+ } & {
178
+ renderer?: TableColumnRenderer<TType, TType[Key]>;
179
+ /** Renderer to use if the cell is an aggregate cell and part of a grouped row */
180
+ aggregate?: TableColumnRendererAggregate<TType, TType[Key]>;
181
+ control?: TableColumnRendererControl<TType>;
182
+ footer?: TableColumnRendererFooter<TType[Key]>;
183
+ header: TableColumnRendererHeader;
184
+ /** Aggregation function to be used when the column is part of a grouped row */
185
+ aggregationFn?: 'auto' | ReactTableBuiltInAggregationFn;
186
+ align?: TableColumnAlignment;
187
+ className?: TableColumnClassNameHandler<TType>;
188
+ dataType?: TableColumnDataType;
189
+ defaultHidden?: boolean;
190
+ defaultWidth?: TableColumnWidth;
191
+ enableFiltering?: boolean;
192
+ enableGrouping?: boolean;
193
+ enableHiding?: boolean;
194
+ enableOrdering?: boolean;
195
+ enablePrinting?: boolean;
196
+ enableResizing?: boolean;
197
+ enableSearch?: boolean;
198
+ enableSorting?: boolean;
199
+ enableTruncate?: boolean;
200
+ filters?: TableFilterComparator[];
201
+ headerClassName?: string;
202
+ menu?: TableColumnMenu;
203
+ minWidth?: number;
204
+ sort?: TableColumnSortDirection;
205
+ sortFn?: TableColumnSortFn<TType>;
206
+ tooltip?: string;
207
+ };
208
+ }>;
209
+ export declare type TableGroupProps = {
210
+ children: (JSX.Element | boolean | null | undefined)[];
211
+ header: string;
212
+ id: string;
213
+ };
214
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function useTableColumnFreezing(isEnabled?: boolean): {
3
+ isEnabled: boolean;
4
+ isHorizontallyScrolled: boolean;
5
+ handleScroll: (event: React.MouseEvent<HTMLTableElement>) => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare function useTableFooter(isEnabled?: boolean): {
2
+ isEnabled: boolean;
3
+ };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export declare function useTablePrinting(isEnabled: boolean | undefined, defaultIsWarningVisible: boolean | undefined, id: string): {
3
3
  isEnabled: boolean;
4
4
  isPrinting: boolean;
5
+ setIsPrinting: React.Dispatch<React.SetStateAction<boolean>>;
5
6
  isWarningVisibleForLargeDatasets: boolean;
6
7
  setIsWarningVisibleForLargeDatasets: React.Dispatch<React.SetStateAction<boolean>>;
7
8
  };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Table as ReactTable } from '@tanstack/react-table';
3
+ import { TableRef } from '../../types';
4
+ export declare function useTableRef<TType = unknown>(table: ReactTable<TType>, ref: React.RefObject<TableRef>): void;
@@ -0,0 +1,6 @@
1
+ import { TableRowActionRenderer } from '../../types';
2
+ export declare function useTableRowActions<TType = unknown>(isEnabled?: boolean, rowActions?: TableRowActionRenderer<TType>[], rowActionsLength?: number): {
3
+ isEnabled: boolean;
4
+ rowActions: TableRowActionRenderer<TType>[] | undefined;
5
+ rowActionsLength: number;
6
+ };
@@ -8,5 +8,4 @@ export declare function useTableRowActive(isEnabled?: boolean, initialRowActiveI
8
8
  setHoverStatePaused: React.Dispatch<React.SetStateAction<boolean>>;
9
9
  handleFocus: (event: React.FocusEvent, length: number, scrollToIndex: TableScrollToIndexHandler) => void;
10
10
  handleKeyDown: (event: KeyboardEvent, length: number, scrollToIndex: TableScrollToIndexHandler, tableRef?: React.RefObject<TableRef> | undefined) => void;
11
- handleMouseCapture: (event: React.MouseEvent, length: number) => void;
12
11
  };
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { TableRowClickHandler } from '../../types';
3
3
  export declare function useTableRowClick<TType = unknown>(isEnabled?: boolean, onRowClick?: TableRowClickHandler<TType>): {
4
4
  isEnabled: boolean;
5
- handleClick: (event: React.MouseEvent<HTMLDivElement>, data: TType) => void;
5
+ handleClick: (event: React.MouseEvent<HTMLTableRowElement>, data: TType) => void;
6
6
  handleKeyDown: <TType_1 = unknown>(event: KeyboardEvent, data: TType_1) => void;
7
7
  };
@@ -0,0 +1,5 @@
1
+ import { TableRowExpansionRenderer } from '../../types';
2
+ export declare function useTableRowExpansion<TType = unknown>(isEnabled?: boolean, rowExpansionRenderer?: TableRowExpansionRenderer<TType>): {
3
+ isEnabled: boolean;
4
+ rowExpansionRenderer: TableRowExpansionRenderer<TType> | undefined;
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { TableRowGotoHandler } from '../../types';
2
2
  export declare function useTableRowGoto(isEnabled?: boolean, handler?: TableRowGotoHandler): {
3
3
  isEnabled: boolean;
4
- handleGoto: TableRowGotoHandler | (() => undefined);
4
+ handleGoto: TableRowGotoHandler | undefined;
5
5
  };
@@ -0,0 +1,5 @@
1
+ import { TableRowActionGroupRenderer } from '../../types';
2
+ export declare function useTableRowGroups<TType = unknown>(rowActionsForGroup?: TableRowActionGroupRenderer<TType>[]): {
3
+ isEnabled: boolean;
4
+ rowActionsForGroup: TableRowActionGroupRenderer<TType>[] | undefined;
5
+ };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Table as ReactTable } from '@tanstack/react-table';
3
3
  export declare function useTableRowSelection(isEnabled?: boolean): {
4
+ isEnabled: boolean;
4
5
  handleKeyDown: <TType = unknown>(event: KeyboardEvent, table: ReactTable<TType>) => void;
5
6
  lastSelectedRowIndex: React.MutableRefObject<number | undefined>;
6
7
  };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Table as ReactTable } from '@tanstack/react-table';
3
+ export declare function useTableSearch(isEnabled?: boolean, defaultEnableGlobalFilter?: boolean): {
4
+ isEnabled: boolean;
5
+ enableGlobalFilter: boolean;
6
+ setEnableGlobalFilter: <TType = unknown>(enabled: boolean, instance: ReactTable<TType>) => void;
7
+ highlightedColumnIndexes: number[][];
8
+ setHighlightedColumnIndexes: React.Dispatch<React.SetStateAction<number[][]>>;
9
+ currentHighlightColumnIndex: number | undefined;
10
+ setCurrentHighlightColumnIndex: React.Dispatch<React.SetStateAction<number | undefined>>;
11
+ };
@@ -1,6 +1,9 @@
1
- import { TableServerLoadAllHandler, TableServerLoadPageHandler } from '../../types';
2
- export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler): {
1
+ import { TableServerLoadAllHandler, TableServerLoadAllState, TableServerLoadPageHandler } from '../../types';
2
+ export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler, pageSize?: number): {
3
3
  isEnabled: boolean;
4
4
  loadPage: TableServerLoadPageHandler | undefined;
5
5
  loadAll: TableServerLoadAllHandler | undefined;
6
+ loadAllIfNeeded: TableServerLoadAllHandler | undefined;
7
+ loadAllStatus: TableServerLoadAllState;
8
+ pageSize: number;
6
9
  };
@@ -0,0 +1,3 @@
1
+ import { TableSettings, TableSettingsHandler } from '../../types';
2
+ export declare function useUniqueTableId(tableId: string): string;
3
+ export declare function useTableSettings(isEnabled: boolean | undefined, id: string, defaultSettings: TableSettings | undefined, onChangeSettings: TableSettingsHandler | undefined): [TableSettings, TableSettingsHandler];
@@ -0,0 +1,2 @@
1
+ import { Table as ReactTable } from '@tanstack/react-table';
2
+ export declare function useTableRowHeightListener<TType = unknown>(table: ReactTable<TType>): void;
@@ -0,0 +1,2 @@
1
+ import { Table as ReactTable } from '@tanstack/react-table';
2
+ export declare function useTableSearchListener<TType = unknown>(table: ReactTable<TType>): void;
@@ -0,0 +1,3 @@
1
+ import { Table as ReactTable } from '@tanstack/react-table';
2
+ import { TableSettingsHandler } from '../../types';
3
+ export declare function useTableSettingsListener<TType = unknown>(table: ReactTable<TType>, onChangeSettings: TableSettingsHandler | undefined): void;
@@ -0,0 +1,57 @@
1
+ /// <reference types="react" />
2
+ import { TableMeta as ReactTableMeta, RowData } from '@tanstack/react-table';
3
+ import { TableColumnAlignment, TableColumnClassNameHandler, TableColumnDataType, TableColumnMenu, TableColumnRendererControl, TableFilterComparator, TableRef, useTableInternalColumns, useTableProps } from '../types';
4
+ import { useTableColumnFreezing } from './features/useTableColumnFreezing';
5
+ import { useTableColumnOrdering } from './features/useTableColumnOrdering';
6
+ import { useTableFooter } from './features/useTableFooter';
7
+ import { useTableFontSize } from './features/useTableFontSize';
8
+ import { useTablePrinting } from './features/useTablePrinting';
9
+ import { useTableRowActions } from './features/useTableRowActions';
10
+ import { useTableRowActive } from './features/useTableRowActive';
11
+ import { useTableRowClick } from './features/useTableRowClick';
12
+ import { useTableRowExpansion } from './features/useTableRowExpansion';
13
+ import { useTableRowGoto } from './features/useTableRowGoto';
14
+ import { useTableRowGroups } from './features/useTableRowGroups';
15
+ import { useTableRowHeight } from './features/useTableRowHeight';
16
+ import { useTableRowSelection } from './features/useTableRowSelection';
17
+ import { useTableSearch } from './features/useTableSearch';
18
+ import { useTableServerLoading } from './features/useTableServerLoading';
19
+ declare module '@tanstack/table-core' {
20
+ interface TableMeta<TData extends RowData> {
21
+ columnFreezing: ReturnType<typeof useTableColumnFreezing>;
22
+ columnOrdering: ReturnType<typeof useTableColumnOrdering>;
23
+ fontSize: ReturnType<typeof useTableFontSize>;
24
+ footer: ReturnType<typeof useTableFooter>;
25
+ printing: ReturnType<typeof useTablePrinting>;
26
+ rowActions: ReturnType<typeof useTableRowActions>;
27
+ rowActive: ReturnType<typeof useTableRowActive>;
28
+ rowClick: ReturnType<typeof useTableRowClick>;
29
+ rowExpansion: ReturnType<typeof useTableRowExpansion>;
30
+ rowGoto: ReturnType<typeof useTableRowGoto>;
31
+ rowGroups: ReturnType<typeof useTableRowGroups>;
32
+ rowHeight: ReturnType<typeof useTableRowHeight>;
33
+ rowSelection: ReturnType<typeof useTableRowSelection>;
34
+ search: ReturnType<typeof useTableSearch>;
35
+ server: ReturnType<typeof useTableServerLoading>;
36
+ }
37
+ interface ColumnMeta<TData extends RowData, TValue> {
38
+ align?: TableColumnAlignment;
39
+ className?: TableColumnClassNameHandler<TData>;
40
+ control?: TableColumnRendererControl<TData>;
41
+ dataType?: TableColumnDataType;
42
+ enableOrdering?: boolean;
43
+ enablePrinting?: boolean;
44
+ enableTruncate?: boolean;
45
+ filters?: TableFilterComparator[];
46
+ header: string;
47
+ headerClassName?: string;
48
+ menu?: TableColumnMenu;
49
+ tooltip?: string;
50
+ }
51
+ }
52
+ export declare function useTable<TType = unknown, TMeta = {}>(props: useTableProps<TType>, ref: React.RefObject<TableRef>, meta?: Partial<ReactTableMeta<TType>> & TMeta, internalColumns?: useTableInternalColumns<TType>): {
53
+ instance: import("@tanstack/react-table").Table<TType>;
54
+ length: number;
55
+ meta: ReactTableMeta<TType> & TMeta;
56
+ state: import("@tanstack/react-table").TableState;
57
+ };
@@ -1,4 +1,10 @@
1
1
  import { ColumnDef as ReactTableColumnDef } from '@tanstack/react-table';
2
2
  import { FontSize } from '../../../../types';
3
+ import { TableColumnDataType } from '../../types';
4
+ export declare function isInternalColumn(id: string | undefined): boolean | undefined;
3
5
  export declare const getCellMinWidth: (fontSize?: FontSize) => 57 | 83 | 72;
4
- export declare function ensureOrdering<TType = unknown>(columns: ReactTableColumnDef<TType>[], internalColumnsPinnedToTheRight: string[], settingsOrder: string[] | undefined): string[];
6
+ export declare function isCellHighlighted(query: string, value: unknown, dataType?: TableColumnDataType): boolean;
7
+ export declare function getCellValueAsString(value: unknown, dataType?: TableColumnDataType): string;
8
+ export declare function ensureOrdering<TType = unknown>(columns: ReactTableColumnDef<TType>[], settingsOrder: string[] | undefined, internalColumnsPinnedToTheRight?: string[]): string[];
9
+ export declare function unfreezeAllExternalColumns(leftPinnedState?: string[]): string[];
10
+ export declare function freezeUptoExternalColumn(index: number, columns: string[]): string[];
@@ -0,0 +1,7 @@
1
+ import { Row as ReactTableRow } from '@tanstack/react-table';
2
+ import { TableFilterValue } from '../../types';
3
+ export declare const toLowerCase: (value: string | number) => string;
4
+ export declare const isWeakContains: (left: string | number, right: string | number) => boolean;
5
+ export declare const isWeakEqual: (left: string | number, right: string | number) => boolean;
6
+ export declare function columnFilterFn(value: any, filter: TableFilterValue): boolean;
7
+ export declare function globalFilterFn<TType = unknown>(row: ReactTableRow<TType>, columnId: string, searchQuery: string): boolean;
@@ -0,0 +1,2 @@
1
+ import { TableFeatureProps, useTableProps } from '../../types';
2
+ export declare function useTableFeaturePreset<TType = unknown>(props: useTableProps<TType>): TableFeatureProps;
@@ -0,0 +1,2 @@
1
+ import { Table as ReactTable } from '@tanstack/react-table';
2
+ export declare function resetHighlightedColumnIndexes<TType = unknown>(value: string | undefined, table: ReactTable<TType>): number | undefined;
@@ -0,0 +1,13 @@
1
+ import { Table as ReactTable } from '@tanstack/react-table';
2
+ export declare function getSettings<TType = unknown>(table: ReactTable<TType>): {
3
+ columnOrder: import("@tanstack/react-table").ColumnOrderState | undefined;
4
+ columnPinning: import("@tanstack/react-table").ColumnPinningState;
5
+ columnSizing: Record<string, number>;
6
+ columnVisibility: Record<string, boolean> | undefined;
7
+ excludeUnmatchedRecordsInSearch: boolean;
8
+ fontSize: "small" | "medium" | "large" | undefined;
9
+ grouping: import("@tanstack/react-table").GroupingState | undefined;
10
+ rowHeight: "medium" | "short" | "tall" | "extra-tall" | undefined;
11
+ showWarningWhenPrintingLargeDataset: boolean;
12
+ sorting: import("@tanstack/react-table").SortingState;
13
+ };
@@ -0,0 +1,14 @@
1
+ import { TableOptions as ReactTableOptions, ColumnDef as ReactTableColumnDef, ColumnSizingState as ReactTableColumnSizingState, ColumnSort as ReactTableColumnSort, TableState as ReactTableState, VisibilityState as ReactTableVisibilityState } from '@tanstack/react-table';
2
+ import { TableFeatureProps, useTableProps, TableSettings, useTableInternalColumns } from '../../types';
3
+ export declare function mapTableChildrenToColumns<TType = unknown>(props: useTableProps<TType>, settings: TableSettings, options: TableFeatureProps, internalColumns?: useTableInternalColumns<TType>): {
4
+ columns: ReactTableColumnDef<TType, unknown>[];
5
+ defaultSizing: Record<string, number>;
6
+ defaultSorting: ReactTableColumnSort[];
7
+ defaultVisibility: Record<string, boolean>;
8
+ };
9
+ export declare function configureReactTableOptions<TType = unknown>(options: TableFeatureProps, props: useTableProps<TType>): Partial<ReactTableOptions<TType>>;
10
+ export declare function useReactTableInitialState<TType = unknown>(props: useTableProps<TType>, columns: ReactTableColumnDef<TType>[], persistedSettings: TableSettings, defaults: {
11
+ defaultSizing: ReactTableColumnSizingState;
12
+ defaultSorting: ReactTableColumnSort[];
13
+ defaultVisibility: ReactTableVisibilityState;
14
+ }): Partial<ReactTableState>;
@@ -0,0 +1,2 @@
1
+ import { TableColumnDataType, TableColumnSortFn } from '../../types';
2
+ export declare function getSortingFn<TType = unknown>(dataType?: TableColumnDataType, customFnOrBuiltIn?: TableColumnSortFn<TType>): "text" | "auto" | "alphanumeric" | "alphanumericCaseSensitive" | "textCaseSensitive" | "datetime" | "basic" | ((rowA: any, rowB: any, columnId: any) => 0 | 1 | -1);
@@ -0,0 +1,23 @@
1
+ import { TableColumnFilter, TableColumnSort, TableFilterHandler, TableServerLoadPageHandler, TableServerLoadAllHandler, TableSortHandler } from './types';
2
+ export declare const DEFAULT_PAGE_SIZE = 100;
3
+ export declare type useTableDataPageFetcher<TType = unknown> = (pageIndex: number, pageSize: number, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<{
4
+ data: TType[];
5
+ length: number;
6
+ }>;
7
+ export declare type useTableDataAllFetcher<TType = unknown> = (sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<{
8
+ data: TType[];
9
+ length: number;
10
+ }>;
11
+ export declare type useTableDataLoaderOptions = {
12
+ pageSize: number;
13
+ };
14
+ export declare type useTableDataLoaderValues<TType = unknown> = {
15
+ data: TType[];
16
+ length: number | undefined;
17
+ loadAll: TableServerLoadAllHandler;
18
+ loadPage: TableServerLoadPageHandler;
19
+ onChangeFilter: TableFilterHandler;
20
+ onChangeSort: TableSortHandler;
21
+ pageSize: number;
22
+ };
23
+ export declare function useTableDataLoader<TType = unknown>(fetch: useTableDataPageFetcher<TType>, fetchAll: useTableDataAllFetcher<TType>, options?: useTableDataLoaderOptions): [useTableDataLoaderValues<TType>, () => void];