@economic/taco 2.18.0 → 2.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) 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/Select2/Select2.d.ts +2 -0
  47. package/dist/components/Select2/components/Context.d.ts +2 -0
  48. package/dist/components/Select2/components/Group.d.ts +2 -0
  49. package/dist/components/Select2/components/Option.d.ts +3 -0
  50. package/dist/components/Table3/Table3.d.ts +1 -1
  51. package/dist/components/Table3/components/rows/Row.d.ts +1 -1
  52. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -4
  53. package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
  54. package/dist/components/Table3/hooks/useCssGrid.d.ts +2 -2
  55. package/dist/components/Table3/hooks/useCssVars.d.ts +3 -2
  56. package/dist/components/Table3/hooks/useTable.d.ts +5 -5
  57. package/dist/components/Table3/types.d.ts +23 -5
  58. package/dist/esm/index.css +12 -12
  59. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +1 -1
  60. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  61. package/dist/esm/packages/taco/src/components/Alert/Alert.js +1 -1
  62. package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
  63. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +1 -1
  64. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
  65. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
  66. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
  67. package/dist/esm/packages/taco/src/components/Badge/Badge.js +1 -1
  68. package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
  69. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +1 -1
  70. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
  71. package/dist/esm/packages/taco/src/components/Banner/Banner.js +2 -2
  72. package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
  73. package/dist/esm/packages/taco/src/components/Button/Button.js +1 -1
  74. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  75. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
  76. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  77. package/dist/esm/packages/taco/src/components/Card/Card.js +2 -2
  78. package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
  79. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +1 -1
  80. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  81. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +1 -1
  82. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
  83. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +1 -1
  84. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  85. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +5 -5
  86. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  87. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +1 -1
  88. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
  89. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
  90. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  91. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +1 -1
  92. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
  93. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +1 -1
  94. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  95. package/dist/esm/packages/taco/src/components/Drawer/util.js +1 -1
  96. package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
  97. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -1
  98. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  99. package/dist/esm/packages/taco/src/components/Form/Form.js +1 -1
  100. package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
  101. package/dist/esm/packages/taco/src/components/Group/Group.js +1 -1
  102. package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
  103. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +2 -2
  104. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
  105. package/dist/esm/packages/taco/src/components/Header/Header.js +1 -1
  106. package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
  107. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +1 -1
  108. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
  109. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +2 -2
  110. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
  111. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +2 -2
  112. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
  113. package/dist/esm/packages/taco/src/components/Header/components/Button.js +1 -1
  114. package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
  115. package/dist/esm/packages/taco/src/components/Header/components/Link.js +1 -1
  116. package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
  117. package/dist/esm/packages/taco/src/components/Header/components/Logo.js +1 -1
  118. package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
  119. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +1 -1
  120. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
  121. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +1 -1
  122. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
  123. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +1 -1
  124. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
  125. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +1 -1
  126. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
  127. package/dist/esm/packages/taco/src/components/Icon/Icon.js +1 -1
  128. package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
  129. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +1 -1
  130. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
  131. package/dist/esm/packages/taco/src/components/Input/Input.js +1 -1
  132. package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
  133. package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
  134. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  135. package/dist/esm/packages/taco/src/components/Layout/Layout.js +2 -2
  136. package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
  137. package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
  138. package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
  139. package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
  140. package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
  141. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +2 -2
  142. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
  143. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +1 -1
  144. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
  145. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +1 -1
  146. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
  147. package/dist/esm/packages/taco/src/components/Menu/components/Content.js +1 -1
  148. package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
  149. package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
  150. package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
  151. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
  152. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  153. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +1 -1
  154. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
  155. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +1 -1
  156. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
  157. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +1 -1
  158. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
  159. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +1 -1
  160. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
  161. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +1 -1
  162. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
  163. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +1 -1
  164. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
  165. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +1 -1
  166. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
  167. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +2 -2
  168. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
  169. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +1 -1
  170. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
  171. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +1 -1
  172. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
  173. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +1 -1
  174. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
  175. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +1 -1
  176. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
  177. package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -1
  178. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  179. package/dist/esm/packages/taco/src/components/Progress/Progress.js +1 -1
  180. package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
  181. package/dist/esm/packages/taco/src/components/Provider/Localization.js +18 -0
  182. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  183. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +1 -1
  184. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  185. package/dist/esm/packages/taco/src/components/RadioGroup/util.js +1 -1
  186. package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
  187. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
  188. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
  189. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +3 -3
  190. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  191. package/dist/esm/packages/taco/src/components/Select/Select.js +1 -1
  192. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  193. package/dist/esm/packages/taco/src/components/Select/useSelect.js +1 -1
  194. package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
  195. package/dist/esm/packages/taco/src/components/Select2/Select2.js +3 -1
  196. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  197. package/dist/esm/packages/taco/src/components/Select2/components/Context.js.map +1 -1
  198. package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
  199. package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
  200. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
  201. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  202. package/dist/esm/packages/taco/src/components/Select2/components/Group.js +5 -2
  203. package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
  204. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +9 -3
  205. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  206. package/dist/esm/packages/taco/src/components/Select2/components/Search.js +1 -1
  207. package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
  208. package/dist/esm/packages/taco/src/components/Select2/components/Title.js +1 -1
  209. package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
  210. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +2 -2
  211. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  212. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +1 -1
  213. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  214. package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
  215. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  216. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +1 -1
  217. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
  218. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +1 -1
  219. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
  220. package/dist/esm/packages/taco/src/components/Switch/Switch.js +1 -1
  221. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  222. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +2 -2
  223. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
  224. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  225. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  226. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
  227. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
  228. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +1 -1
  229. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  230. package/dist/esm/packages/taco/src/components/Table3/Table3.js +5 -11
  231. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  232. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +1 -1
  233. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
  234. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +4 -2
  235. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
  236. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +2 -1
  237. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
  238. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +2 -2
  239. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -1
  240. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +1 -1
  241. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -1
  242. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +2 -2
  243. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
  244. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +1 -1
  245. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -1
  246. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +1 -1
  247. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -1
  248. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +5 -2
  249. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -1
  250. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +1 -1
  251. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
  252. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +1 -1
  253. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -1
  254. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +4 -4
  255. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
  256. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +1 -1
  257. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -1
  258. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +1 -1
  259. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -1
  260. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +1 -1
  261. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
  262. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +1 -1
  263. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
  264. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +2 -2
  265. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -1
  266. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +1 -1
  267. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
  268. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +1 -1
  269. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -1
  270. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +5 -9
  271. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -1
  272. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +1 -1
  273. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +3 -3
  274. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -1
  275. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +1 -1
  276. package/dist/esm/packages/taco/src/{primitives/Table/useTable/features/useTablePrinting.js → components/Table3/hooks/features/usePrinting.js} +3 -3
  277. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
  278. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +1 -1
  279. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +10 -10
  280. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -1
  281. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +4 -3
  282. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
  283. package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
  284. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +1 -1
  285. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
  286. package/dist/esm/packages/taco/src/components/Tag/Tag.js +2 -2
  287. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  288. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +1 -1
  289. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
  290. package/dist/esm/packages/taco/src/components/Toast/Toast.js +2 -2
  291. package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
  292. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +2 -2
  293. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  294. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +1 -1
  295. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
  296. package/dist/esm/packages/taco/src/index.js +1 -1
  297. package/dist/esm/packages/taco/src/primitives/Table/types.js +25 -8
  298. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  299. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js +1 -1
  300. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +1 -1
  301. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFontSize.js.map +1 -1
  302. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +11 -21
  303. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +1 -1
  304. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +1 -1
  305. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js +1 -1
  306. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +1 -1
  307. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js +1 -0
  308. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +1 -1
  309. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js +42 -2
  310. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +1 -1
  311. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js +7 -7
  312. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +1 -1
  313. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +14 -12
  314. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +1 -1
  315. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +7 -0
  316. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -0
  317. package/dist/esm/packages/taco/src/types.js +7 -1
  318. package/dist/esm/packages/taco/src/types.js.map +1 -1
  319. package/dist/esm/packages/taco/src/utils/dom.js +10 -1
  320. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  321. package/dist/index.css +12 -12
  322. package/dist/primitives/Table/types.d.ts +186 -7
  323. package/dist/primitives/Table/useTable/features/useTableColumnFreezing.d.ts +6 -0
  324. package/dist/primitives/Table/useTable/features/useTableFontSize.d.ts +2 -2
  325. package/dist/primitives/Table/useTable/features/useTableFooter.d.ts +3 -0
  326. package/dist/primitives/Table/useTable/features/useTablePrinting.d.ts +1 -0
  327. package/dist/primitives/Table/useTable/features/useTableRef.d.ts +4 -0
  328. package/dist/primitives/Table/useTable/features/useTableRowActions.d.ts +6 -0
  329. package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -1
  330. package/dist/primitives/Table/useTable/features/useTableRowClick.d.ts +1 -1
  331. package/dist/primitives/Table/useTable/features/useTableRowExpansion.d.ts +5 -0
  332. package/dist/primitives/Table/useTable/features/useTableRowGoto.d.ts +1 -1
  333. package/dist/primitives/Table/useTable/features/useTableRowGroups.d.ts +5 -0
  334. package/dist/primitives/Table/useTable/features/useTableRowSelection.d.ts +1 -0
  335. package/dist/primitives/Table/useTable/features/useTableSearch.d.ts +11 -0
  336. package/dist/primitives/Table/useTable/features/useTableServerLoading.d.ts +5 -2
  337. package/dist/primitives/Table/useTable/features/useTableSettings.d.ts +3 -0
  338. package/dist/primitives/Table/useTable/listeners/useTableRowHeightListener.d.ts +2 -0
  339. package/dist/primitives/Table/useTable/listeners/useTableSearchListener.d.ts +2 -0
  340. package/dist/primitives/Table/useTable/listeners/useTableSettingsListener.d.ts +3 -0
  341. package/dist/primitives/Table/useTable/useTable.d.ts +57 -0
  342. package/dist/primitives/Table/useTable/util/columns.d.ts +9 -3
  343. package/dist/primitives/Table/useTable/util/columns.spec.d.ts +1 -0
  344. package/dist/primitives/Table/useTable/util/filtering.d.ts +7 -0
  345. package/dist/primitives/Table/useTable/util/presets.d.ts +2 -0
  346. package/dist/primitives/Table/useTable/util/search.d.ts +2 -0
  347. package/dist/primitives/Table/useTable/util/settings.d.ts +13 -0
  348. package/dist/primitives/Table/useTable/util/setup.d.ts +14 -0
  349. package/dist/primitives/Table/useTable/util/sorting.d.ts +2 -0
  350. package/dist/primitives/Table/useTableDataLoader.d.ts +23 -0
  351. package/dist/taco.cjs.development.js +215 -131
  352. package/dist/taco.cjs.development.js.map +1 -1
  353. package/dist/taco.cjs.production.min.js +1 -1
  354. package/dist/taco.cjs.production.min.js.map +1 -1
  355. package/dist/types.d.ts +6 -0
  356. package/dist/utils/dom.d.ts +1 -0
  357. package/package.json +4 -3
  358. package/types.json +25105 -11841
  359. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
package/dist/index.css CHANGED
@@ -895,17 +895,17 @@
895
895
  @apply !my-0;
896
896
  }
897
897
 
898
- /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
898
+ /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
899
899
 
900
900
  [data-font-size='small'] [role='cell'][data-editable]:not([data-highlighted='true']) {
901
- @apply px-[calc(var(--table3-cell-padding-x)_-_6px)];
901
+ @apply px-[calc(var(--table3-cell-padding-x)_-_6px_-_1px)];
902
902
  }
903
903
 
904
- /* When cell is editable and highlighted, the padding should apply to highlight wrapper,
904
+ /* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
905
905
  because it should take all the available space in the cell */
906
906
 
907
907
  [data-font-size='small'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
908
- @apply px-[calc(var(--table3-cell-padding-x)_-_6px)];
908
+ @apply px-[calc(var(--table3-cell-padding-x)_-_6px_-_1px)];
909
909
  }
910
910
 
911
911
  [data-font-size='small'] [role='cell'][data-editable] [data-taco='checkbox'],
@@ -934,17 +934,17 @@
934
934
  @apply !-my-[5px];
935
935
  }
936
936
 
937
- /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
937
+ /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
938
938
 
939
939
  [data-font-size='medium'] [role='cell'][data-editable]:not([data-highlighted='true']) {
940
- @apply px-[calc(var(--table3-cell-padding-x)_-_8px)];
940
+ @apply px-[calc(var(--table3-cell-padding-x)_-_8px_-_1px)];
941
941
  }
942
942
 
943
- /* When cell is editable and highlighted, the padding should apply to highlight wrapper,
943
+ /* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
944
944
  because it should take all the available space in the cell */
945
945
 
946
946
  [data-font-size='medium'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
947
- @apply px-[calc(var(--table3-cell-padding-x)_-_8px)];
947
+ @apply px-[calc(var(--table3-cell-padding-x)_-_8px_-_1px)];
948
948
  }
949
949
 
950
950
  [data-font-size='medium'] [role='cell'][data-editable] [data-taco='checkbox'],
@@ -1003,17 +1003,17 @@
1003
1003
  @apply !h-6 !w-6;
1004
1004
  }
1005
1005
 
1006
- /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
1006
+ /* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
1007
1007
 
1008
1008
  [data-font-size='large'] [role='cell'][data-editable]:not([data-highlighted='true']) {
1009
- @apply px-[calc(var(--table3-cell-padding-x)_-_10px)];
1009
+ @apply px-[calc(var(--table3-cell-padding-x)_-_10px_-_1px)];
1010
1010
  }
1011
1011
 
1012
- /* When cell is editable and highlighted, the padding should apply to highlight wrapper,
1012
+ /* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
1013
1013
  because it should take all the available space in the cell */
1014
1014
 
1015
1015
  [data-font-size='large'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
1016
- @apply px-[calc(var(--table3-cell-padding-x)_-_10px)];
1016
+ @apply px-[calc(var(--table3-cell-padding-x)_-_10px_-_1px)];
1017
1017
  }
1018
1018
 
1019
1019
  [data-font-size='large'] [role='cell'][data-editable] [data-taco='checkbox'],
@@ -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,14 +11,57 @@ export declare type TableRef = HTMLDivElement & {
7
11
  resetSorting: () => void;
8
12
  };
9
13
  };
10
- export declare enum TableFontSizes {
11
- small = "small",
12
- medium = "medium",
13
- large = "large"
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
14
29
  }
15
- export declare type TableFontSize = keyof typeof TableFontSizes;
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';
16
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;
17
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;
18
65
  export declare type TableRowClickHandler<TType = unknown> = (row: TType) => void;
19
66
  export declare type TableRowGotoHandler = (column: string, query: string, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<number>;
20
67
  export declare type TableRowHeight = 'short' | 'medium' | 'tall' | 'extra-tall';
@@ -26,10 +73,142 @@ export declare type TableShortcutHandlerObject<TType = unknown> = {
26
73
  shift?: boolean;
27
74
  };
28
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;
29
79
  export declare type TableScrollToIndexHandler = (index: number, options?: {
30
80
  align: 'start' | 'center' | 'end' | 'auto';
31
81
  }) => void;
32
82
  export declare type TableServerLoadPageHandler = (pageIndex: number, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<void>;
33
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>;
34
90
  export declare type TableShortcuts<TType = unknown> = Record<string, TableShortcutHandlerFn<TType> | TableShortcutHandlerObject<TType>>;
35
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
+ };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { TableFontSize } from '../../types';
3
- export declare function useTableFontSize(isEnabled?: boolean, defaultFontSize?: TableFontSize): {
2
+ import { FontSize } from '../../../../types';
3
+ export declare function useTableFontSize(isEnabled?: boolean, defaultFontSize?: FontSize): {
4
4
  isEnabled: boolean;
5
5
  size: "small" | "medium" | "large";
6
6
  setSize: React.Dispatch<React.SetStateAction<"small" | "medium" | "large">>;
@@ -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
- import { TableFontSize } from '../../types';
3
- export declare const getCellMinWidth: (fontSize?: TableFontSize) => 57 | 83 | 72;
4
- export declare function ensureOrdering<TType = unknown>(columns: ReactTableColumnDef<TType>[], internalColumnsPinnedToTheRight: string[], settingsOrder: string[] | undefined): string[];
2
+ import { FontSize } from '../../../../types';
3
+ import { TableColumnDataType } from '../../types';
4
+ export declare function isInternalColumn(id: string | undefined): boolean | undefined;
5
+ export declare const getCellMinWidth: (fontSize?: FontSize) => 57 | 83 | 72;
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];