@economic/taco 2.24.0 → 2.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. package/dist/components/Provider/Localization.d.ts +2 -0
  2. package/dist/components/Report/Report.d.ts +2 -2
  3. package/dist/components/Report/components/Header/Header.d.ts +3 -0
  4. package/dist/components/Report/components/Header/components/Menu.d.ts +3 -0
  5. package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +2 -0
  6. package/dist/components/Report/types.d.ts +2 -2
  7. package/dist/components/Select2/Select2.d.ts +18 -0
  8. package/dist/components/Table/Table.d.ts +1 -1
  9. package/dist/components/Table/components/BaseTable.d.ts +1 -1
  10. package/dist/components/Table/hooks/useRowCreation.d.ts +2 -2
  11. package/dist/components/Table/hooks/useTable.d.ts +5 -5
  12. package/dist/components/Table/hooks/useTableKeyboardNavigation.d.ts +2 -2
  13. package/dist/components/Table/types.d.ts +37 -37
  14. package/dist/components/Table/util/sortTypes.d.ts +2 -2
  15. package/dist/components/Table/util.d.ts +4 -4
  16. package/dist/components/Table3/hooks/useTable.d.ts +8 -8
  17. package/dist/components/Table3/types.d.ts +2 -0
  18. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +12 -1
  19. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  20. package/dist/esm/packages/taco/src/components/Provider/Localization.js +2 -0
  21. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +3 -1
  23. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +1 -1
  24. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +1 -1
  25. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +1 -1
  27. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +1 -1
  29. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +1 -1
  31. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +18 -1
  33. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +10 -1
  35. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +1 -1
  37. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +1 -1
  38. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +13 -1
  39. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +1 -1
  40. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +19 -11
  41. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
  42. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +11 -1
  43. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -1
  44. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js +4 -1
  45. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +1 -1
  46. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +1 -1
  47. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -1
  48. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +1 -1
  49. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +1 -1
  50. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +1 -1
  51. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +1 -1
  52. package/dist/esm/packages/taco/src/components/Report/useReport.js +3 -3
  53. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  54. package/dist/esm/packages/taco/src/components/Select2/Select2.js +3 -3
  55. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  56. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -1
  57. package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
  58. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  59. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  60. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -1
  61. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -1
  62. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -1
  63. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  64. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
  65. package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -1
  66. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +1 -1
  67. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +1 -1
  68. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +1 -1
  69. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
  70. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +1 -1
  71. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -1
  72. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +16 -16
  73. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
  74. package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
  75. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  76. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js.map +1 -0
  77. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js.map +1 -0
  78. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -0
  79. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js.map +1 -0
  80. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -0
  81. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +1 -0
  82. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -0
  83. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -0
  84. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map +1 -0
  85. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -0
  86. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map +1 -0
  87. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js.map +1 -0
  88. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js.map +1 -0
  89. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js.map +1 -0
  90. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -0
  91. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -0
  92. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -0
  94. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -0
  95. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -0
  96. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -0
  97. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -0
  99. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -0
  100. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -0
  101. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -0
  102. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -0
  103. package/dist/esm/packages/taco/src/primitives/Table/{useTable/useTable.js → useTableManager/useTableManager.js} +3 -3
  104. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -0
  105. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -0
  106. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js.map +1 -0
  107. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -0
  108. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -0
  109. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -0
  110. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -0
  111. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -0
  112. package/dist/primitives/Table/types.d.ts +5 -16
  113. package/dist/primitives/Table/useTableManager/types.d.ts +13 -0
  114. package/dist/primitives/Table/{useTable/useTable.d.ts → useTableManager/useTableManager.d.ts} +3 -2
  115. package/dist/primitives/Table/useTableManager/util/presets.d.ts +2 -0
  116. package/dist/primitives/Table/{useTable → useTableManager}/util/setup.d.ts +5 -4
  117. package/dist/taco.cjs.development.js +98 -27
  118. package/dist/taco.cjs.development.js.map +1 -1
  119. package/dist/taco.cjs.production.min.js +1 -1
  120. package/dist/taco.cjs.production.min.js.map +1 -1
  121. package/package.json +2 -2
  122. package/types.json +9609 -8428
  123. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnFreezing.js.map +0 -1
  124. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +0 -1
  125. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFontSize.js.map +0 -1
  126. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFooter.js.map +0 -1
  127. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
  128. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRef.js.map +0 -1
  129. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActions.js.map +0 -1
  130. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +0 -1
  131. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +0 -1
  132. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowExpansion.js.map +0 -1
  133. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +0 -1
  134. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGroups.js.map +0 -1
  135. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowHeight.js.map +0 -1
  136. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +0 -1
  137. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSearch.js.map +0 -1
  138. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +0 -1
  139. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSettings.js.map +0 -1
  140. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableDataListener.js.map +0 -1
  141. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFilterListener.js.map +0 -1
  142. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +0 -1
  143. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowHeightListener.js.map +0 -1
  144. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowSelectionListener.js.map +0 -1
  145. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSearchListener.js.map +0 -1
  146. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableServerLoadingListener.js.map +0 -1
  147. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js.map +0 -1
  148. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableShortcutsListener.js.map +0 -1
  149. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSortingListener.js.map +0 -1
  150. package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js.map +0 -1
  151. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +0 -1
  152. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/filtering.js.map +0 -1
  153. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js.map +0 -1
  154. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/search.js.map +0 -1
  155. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js.map +0 -1
  156. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js.map +0 -1
  157. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/sorting.js.map +0 -1
  158. package/dist/primitives/Table/useTable/util/presets.d.ts +0 -2
  159. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnFreezing.js +0 -0
  160. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnOrdering.js +0 -0
  161. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFontSize.js +0 -0
  162. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFooter.js +0 -0
  163. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTablePrinting.js +0 -0
  164. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRef.js +0 -0
  165. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowActions.js +0 -0
  166. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowActive.js +0 -0
  167. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowClick.js +0 -0
  168. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowExpansion.js +0 -0
  169. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGoto.js +0 -0
  170. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGroups.js +0 -0
  171. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowHeight.js +0 -0
  172. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowSelection.js +0 -0
  173. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSearch.js +0 -0
  174. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableServerLoading.js +0 -0
  175. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSettings.js +0 -0
  176. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableDataListener.js +0 -0
  177. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFilterListener.js +0 -0
  178. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFontSizeListener.js +0 -0
  179. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowHeightListener.js +0 -0
  180. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowSelectionListener.js +0 -0
  181. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSearchListener.js +0 -0
  182. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableServerLoadingListener.js +0 -0
  183. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSettingsListener.js +0 -0
  184. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableShortcutsListener.js +0 -0
  185. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSortingListener.js +0 -0
  186. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/columns.js +0 -0
  187. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/filtering.js +0 -0
  188. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/presets.js +0 -0
  189. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/search.js +0 -0
  190. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/settings.js +0 -0
  191. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/setup.js +0 -0
  192. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/sorting.js +0 -0
  193. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableColumnFreezing.d.ts +0 -0
  194. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableColumnOrdering.d.ts +0 -0
  195. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableFontSize.d.ts +0 -0
  196. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableFooter.d.ts +0 -0
  197. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTablePrinting.d.ts +0 -0
  198. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRef.d.ts +0 -0
  199. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowActions.d.ts +0 -0
  200. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowActive.d.ts +0 -0
  201. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowClick.d.ts +0 -0
  202. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowExpansion.d.ts +0 -0
  203. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowGoto.d.ts +0 -0
  204. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowGroups.d.ts +0 -0
  205. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowHeight.d.ts +0 -0
  206. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableRowSelection.d.ts +0 -0
  207. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableSearch.d.ts +0 -0
  208. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableServerLoading.d.ts +0 -0
  209. /package/dist/primitives/Table/{useTable → useTableManager}/features/useTableSettings.d.ts +0 -0
  210. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableDataListener.d.ts +0 -0
  211. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableFilterListener.d.ts +0 -0
  212. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableFontSizeListener.d.ts +0 -0
  213. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableRowHeightListener.d.ts +0 -0
  214. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableRowSelectionListener.d.ts +0 -0
  215. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableSearchListener.d.ts +0 -0
  216. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableServerLoadingListener.d.ts +0 -0
  217. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableSettingsListener.d.ts +0 -0
  218. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableShortcutsListener.d.ts +0 -0
  219. /package/dist/primitives/Table/{useTable → useTableManager}/listeners/useTableSortingListener.d.ts +0 -0
  220. /package/dist/primitives/Table/{useTable → useTableManager}/util/columns.d.ts +0 -0
  221. /package/dist/primitives/Table/{useTable → useTableManager}/util/columns.spec.d.ts +0 -0
  222. /package/dist/primitives/Table/{useTable → useTableManager}/util/filtering.d.ts +0 -0
  223. /package/dist/primitives/Table/{useTable → useTableManager}/util/search.d.ts +0 -0
  224. /package/dist/primitives/Table/{useTable → useTableManager}/util/settings.d.ts +0 -0
  225. /package/dist/primitives/Table/{useTable → useTableManager}/util/sorting.d.ts +0 -0
@@ -150,6 +150,8 @@ export declare const defaultLocalisationTexts: {
150
150
  expandAll: string;
151
151
  };
152
152
  menu: {
153
+ editFilter: string;
154
+ filter: string;
153
155
  freezeFirstColumn: string;
154
156
  freezeUptoColumn: string;
155
157
  freezeColumns: (count?: number) => string;
@@ -4,13 +4,13 @@ import { TableRef } from '../../primitives/Table/types';
4
4
  import './style.css';
5
5
  declare function Column<TType = unknown>(_: ReportColumnProps<TType>): null;
6
6
  declare function Group(_: ReportGroupProps): null;
7
- export declare const Report: (<TType = unknown>(props: (import("../../primitives/Table/types").useTableClientProps<TType> & {
7
+ export declare const Report: (<TType = unknown>(props: (import("../../primitives/Table/types").TableClientProps<TType> & {
8
8
  customSettings?: import("./types").ReportCustomSettingsRenderer | undefined;
9
9
  emptyState?: import("./types").ReportEmptyStateRenderer | undefined;
10
10
  toolbarLeft?: JSX.Element | undefined;
11
11
  toolbarRight?: JSX.Element | undefined;
12
12
  toolbarPanel?: JSX.Element | undefined;
13
- } & React.RefAttributes<TableRef>) | (import("../../primitives/Table/types").useTableServerProps<TType> & {
13
+ } & React.RefAttributes<TableRef>) | (import("../../primitives/Table/types").TableServerProps<TType> & {
14
14
  customSettings?: import("./types").ReportCustomSettingsRenderer | undefined;
15
15
  emptyState?: import("./types").ReportEmptyStateRenderer | undefined;
16
16
  toolbarLeft?: JSX.Element | undefined;
@@ -4,6 +4,7 @@ import { TableColumnAlignment, TableColumnMenu, TableColumnSortDirection, TableC
4
4
  export declare function Header<TType = unknown>(header: ReactTableHeader<TType, unknown>): JSX.Element | null;
5
5
  export declare type MemoedHeaderProps = {
6
6
  align?: TableColumnAlignment;
7
+ canFilter: boolean;
7
8
  canHide: boolean;
8
9
  canGoto: boolean;
9
10
  canMeasureSize: boolean;
@@ -18,11 +19,13 @@ export declare type MemoedHeaderProps = {
18
19
  hasMenu: boolean;
19
20
  id: string;
20
21
  index: number;
22
+ isFiltered: boolean;
21
23
  isGroup: boolean;
22
24
  isPinned?: ReactTableColumnPinningPosition;
23
25
  isPlaceholder: boolean;
24
26
  isResizing?: boolean;
25
27
  offset?: number;
28
+ onFilter?: () => void;
26
29
  onGoto?: (query: string) => Promise<number>;
27
30
  onHide?: (event: unknown) => void;
28
31
  onPin?: (index: number | undefined) => void;
@@ -1,12 +1,15 @@
1
1
  import React from 'react';
2
2
  import { TableColumnMenu, TableColumnSortDirection } from '../../../../../primitives/Table/types';
3
3
  export declare type HeaderMenuProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ canFilter: boolean;
4
5
  canGoto: boolean;
5
6
  canHide: boolean;
6
7
  canPin: boolean;
7
8
  canSort: boolean;
8
9
  customMenu?: TableColumnMenu;
9
10
  index: number;
11
+ isFiltered: boolean;
12
+ onFilter?: () => void;
10
13
  onGoto?: (query: string) => Promise<number>;
11
14
  onHide?: (event: unknown) => void;
12
15
  onPin?: (index: number | undefined) => void;
@@ -1,2 +1,4 @@
1
1
  import { Column as ReactTableColumn } from '@tanstack/react-table';
2
+ import { TableFilter } from '../../../../../../primitives/Table/types';
2
3
  export declare function sortByHeader<TType = unknown>(a: ReactTableColumn<TType>, b: ReactTableColumn<TType>): number;
4
+ export declare function isEmptyFilter(filter: TableFilter): boolean;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { TableColumnProps, TableGroupProps, TableSettings, useTableProps } from '../../primitives/Table/types';
2
+ import { TableColumnProps, TableGroupProps, TableSettings, TableProps } from '../../primitives/Table/types';
3
3
  import { MenuItemProps } from '../Menu/components/Item';
4
4
  export type { TableFilterComparator, TableFilterValue, TableFilter, TableColumnAlignment, TableColumnClassNameHandler, TableColumnDataType, TableColumnFilter, TableColumnMenu, TableColumnRenderer, TableColumnRendererAggregate, TableColumnRendererControl, TableColumnRendererControlProps, TableColumnRendererHeader, TableColumnRendererFooter, TableColumnSort, TableColumnSortDirection, TableColumnSortFn, TableColumnWidth, TableRowActionRenderer, TableRowActionGroupRenderer, TableRowClickHandler, TableRowGotoHandler, TableRowHeight, TableRowSelectHandler, TableShortcutHandlerFn, TableShortcutHandlerObject, TableFilterHandler, TableFontSize, TablePreset, TableRowExpansionRenderer, TableScrollToIndexHandler, TableServerLoadPageHandler, TableServerLoadAllHandler, TableServerLoadAllState, TableSettingsHandler, TableShortcuts, TableSortHandler, TableSettings, TableFeatureProps, } from '../../primitives/Table/types';
5
5
  export declare type ReportEmptyStateRenderer = () => JSX.Element | null;
6
- export declare type ReportProps<TType = unknown> = useTableProps<TType> & {
6
+ export declare type ReportProps<TType = unknown> = TableProps<TType> & {
7
7
  customSettings?: ReportCustomSettingsRenderer;
8
8
  emptyState?: ReportEmptyStateRenderer;
9
9
  toolbarLeft?: JSX.Element;
@@ -20,24 +20,42 @@ declare type Select2Texts = {
20
20
  deselectAllResults: string;
21
21
  };
22
22
  declare type Select2Props = Omit<React.HTMLAttributes<HTMLButtonElement>, 'children' | 'defaultValue' | 'onChange' | 'value'> & {
23
+ /** Autofocus Select2 when loaded **/
23
24
  autoFocus?: boolean;
25
+ /** Array of options in Select2 */
24
26
  children: Select2Children;
27
+ /** Initial value of the input in Select2 */
25
28
  defaultValue?: Select2Value;
29
+ /** Set what value should have an empty option in Select2 */
26
30
  emptyValue?: Select2OptionValue;
31
+ /** Whether the Select2 is in a disabled state **/
27
32
  disabled?: boolean;
33
+ /** Draws attention to the Select2 by changing its style and making it visually prominent */
28
34
  highlighted?: boolean;
35
+ /** Whether the Select2 is in an invalid state **/
29
36
  invalid?: boolean;
37
+ /** Whether the Select2 allows selecting multiple values **/
30
38
  multiple?: boolean;
39
+ /** Whether the Select2 is in an invalid state **/
31
40
  name?: string;
41
+ /** Handler called when user chooses an option from the provided options **/
32
42
  onChange?: (value: Select2Value) => void;
43
+ /** Handler called when user creates a new option **/
33
44
  onCreate?: Select2CreateHandler;
45
+ /** Handler called when user deletes an option **/
34
46
  onDelete?: Select2DeleteHandler;
47
+ /** Handler called when user edits an option **/
35
48
  onEdit?: Select2EditHandler;
49
+ /** Whether the Select2 is in a readonly state **/
36
50
  readOnly?: boolean;
37
51
  required?: boolean;
52
+ /** Renders select options as tags **/
38
53
  tags?: boolean;
54
+ /** Value of the input in select2 */
39
55
  value?: Select2Value;
56
+ /** Font size of text in Select2 **/
40
57
  fontSize?: FontSize;
58
+ /** Placeholder showed when nothing is selected **/
41
59
  placeholder?: string;
42
60
  };
43
61
  declare type Select2PropsWithStatics = React.ForwardRefExoticComponent<Select2Props & React.RefAttributes<HTMLButtonElement>> & {
@@ -1,7 +1,7 @@
1
1
  export * from './components/Table';
2
2
  export * from './components/PaginatedTable';
3
3
  export * from './components/WindowedTable';
4
- export type { PaginationHandler, Row, RowIndexPath, RowClickHandler, RowDragHandler, RowCreateHandler, RowCopyHandler, RowDeleteHandler, RowActionHandler, SelectedRowsHandler, SelectedRowsState, SortDirection, SortHandler, SortRule, SortTypes, TableCell, TableColumnProps, TableGroupProps, TableProps, TableRow, TableRef, } from './types';
4
+ export type { PaginationHandler, Row, RowIndexPath, RowClickHandler, RowDragHandler, RowCreateHandler, RowCopyHandler, RowDeleteHandler, RowActionHandler, SelectedRowsHandler, SelectedRowsState, SortDirection, SortHandler, SortRule, SortTypes, LegacyTableCell as TableCell, LegacyTableColumnProps as TableColumnProps, LegacyTableGroupProps as TableGroupProps, LegacyTableProps as TableProps, LegacyTableRow as TableRow, LegacyTableRef as TableRef, } from './types';
5
5
  export * from './util/rowIndexPath';
6
6
  export * from './hooks/useRowCreation';
7
7
  export declare type TableTexts = {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './Table.css';
3
3
  export declare const DefaultEmptyState: () => React.ReactNode;
4
- export declare const BaseTable: React.ForwardRefExoticComponent<Partial<import("../types").TableProps<any>> & Partial<import("react-table").TableInstance<{}>> & {
4
+ export declare const BaseTable: React.ForwardRefExoticComponent<Partial<import("../types").LegacyTableProps<any>> & Partial<import("react-table").TableInstance<{}>> & {
5
5
  children: JSX.Element;
6
6
  headerRef?: React.MutableRefObject<HTMLDivElement | null> | undefined;
7
7
  bodyRef?: React.MutableRefObject<HTMLDivElement | null> | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Row, RowIndexPath, TableRef } from '../types';
2
+ import { Row, RowIndexPath, LegacyTableRef } from '../types';
3
3
  export declare const insertChildTableRow: <TRow>(data: Row<TRow>[], rowIndexPath?: RowIndexPath, values?: any) => [Row<TRow>[], RowIndexPath];
4
4
  export declare const removeChildTableRow: <TRow>(data: Row<TRow>[], rowIndexPath: RowIndexPath) => Row<TRow>[];
5
5
  export declare type useTableRowCreation<TRow> = {
@@ -8,4 +8,4 @@ export declare type useTableRowCreation<TRow> = {
8
8
  remove: (rowIndexPath: RowIndexPath) => void;
9
9
  isCreating: boolean;
10
10
  };
11
- export declare const useTableRowCreation: <TRow>(data: Row<TRow>[], tableRef: React.RefObject<TableRef>) => useTableRowCreation<TRow>;
11
+ export declare const useTableRowCreation: <TRow>(data: Row<TRow>[], tableRef: React.RefObject<LegacyTableRef>) => useTableRowCreation<TRow>;
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
- import { InternalTable, PaginationHandler, RowActiveHandler, SortHandler, TableProps, TableRef } from '../types';
2
+ import { InternalTable, PaginationHandler, RowActiveHandler, SortHandler, LegacyTableProps, LegacyTableRef } from '../types';
3
3
  export declare const useTable: <T extends {}>(props: React.HTMLAttributes<HTMLDivElement> & {
4
4
  autoFocus?: boolean | undefined;
5
- children: import("../types").TableChildren<T>;
5
+ children: import("../types").LegacyTableChildren<T>;
6
6
  data: import("../types").Row<T>[];
7
7
  dangerouslyHijackGlobalKeyboardNavigation?: boolean | undefined;
8
8
  emptyStateRenderer?: (() => React.ReactNode) | undefined;
9
9
  onRowClick?: import("../types").RowClickHandler<T> | undefined;
10
10
  onRowDrag?: import("../types").RowDragHandler<T> | undefined;
11
11
  onSelectedRows?: React.Dispatch<React.SetStateAction<Record<number, boolean>>> | undefined;
12
- rowClassName?: string | ((row: import("../types").TableRow<T>) => string | undefined) | undefined;
13
- rowExpansionRenderer?: ((row: import("../types").TableRow<T>) => React.ReactNode) | undefined;
12
+ rowClassName?: string | ((row: import("../types").LegacyTableRow<T>) => string | undefined) | undefined;
13
+ rowExpansionRenderer?: ((row: import("../types").LegacyTableRow<T>) => React.ReactNode) | undefined;
14
14
  rowHeight?: number | undefined;
15
15
  selectedRows?: Record<number, boolean> | undefined;
16
16
  activeIndex?: number | undefined;
@@ -35,4 +35,4 @@ export declare const useTable: <T extends {}>(props: React.HTMLAttributes<HTMLDi
35
35
  onRowActive?: RowActiveHandler<T> | undefined;
36
36
  } & {
37
37
  windowed?: boolean | undefined;
38
- }, ref: React.RefObject<TableRef>) => InternalTable;
38
+ }, ref: React.RefObject<LegacyTableRef>) => InternalTable;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { TableProps } from '../types';
3
- export declare const useTableKeyboardNavigation: <T extends {}>(props: TableProps<T>, rows: any[], rowProps: any, ref: React.RefObject<HTMLDivElement>) => [number | undefined, (index: number) => void, (event: React.KeyboardEvent<HTMLElement>) => void, (event: React.FocusEvent<HTMLElement>) => void];
2
+ import { LegacyTableProps } from '../types';
3
+ export declare const useTableKeyboardNavigation: <T extends {}>(props: LegacyTableProps<T>, rows: any[], rowProps: any, ref: React.RefObject<HTMLDivElement>) => [number | undefined, (index: number) => void, (event: React.KeyboardEvent<HTMLElement>) => void, (event: React.FocusEvent<HTMLElement>) => void];
@@ -7,7 +7,7 @@ export declare type RowIndexPath = string | undefined;
7
7
  export declare type Row<TRow extends {}> = TRow & {
8
8
  subRows?: Row<TRow>[];
9
9
  };
10
- export declare type TableRow<TRow> = {
10
+ export declare type LegacyTableRow<TRow> = {
11
11
  /**
12
12
  * Index of the row.
13
13
  * Note: This index is relative to the root or parent row if it is a sub row
@@ -36,14 +36,14 @@ export declare type TableRow<TRow> = {
36
36
  isEditing?: boolean;
37
37
  toggleRowEditing?: () => void;
38
38
  };
39
- export declare type TableCell<TRow> = {
39
+ export declare type LegacyTableCell<TRow> = {
40
40
  accessor: string;
41
41
  /** Represents the row which renders the specific cell, exposing its properties */
42
- row: TableRow<TRow>;
42
+ row: LegacyTableRow<TRow>;
43
43
  /** Access the rendered value in the cell */
44
44
  value: any;
45
45
  };
46
- export declare type TableColumnProps<TRow> = {
46
+ export declare type LegacyTableColumnProps<TRow> = {
47
47
  /**
48
48
  * This string is used to build the data model for your column.
49
49
  * It should match one of the properties defined in your `data` object on `Table`,
@@ -64,10 +64,10 @@ export declare type TableColumnProps<TRow> = {
64
64
  * It needs to be a render function that can return a transformed version of the existing value,
65
65
  * or any valid react node, for e.g. a `div`
66
66
  */
67
- cellRenderer?: (cellProps: TableCell<TRow>) => React.ReactNode;
67
+ cellRenderer?: (cellProps: LegacyTableCell<TRow>) => React.ReactNode;
68
68
  /** Disable sorting on column */
69
69
  disableSorting?: boolean;
70
- editRenderer?: (cellProps: TableCell<TRow>) => React.ReactNode;
70
+ editRenderer?: (cellProps: LegacyTableCell<TRow>) => React.ReactNode;
71
71
  /**
72
72
  * Specify the width and growth characteristics of a column.
73
73
  * This follows the standard flex-box `flex` css property
@@ -96,16 +96,16 @@ export declare type TableColumnProps<TRow> = {
96
96
  */
97
97
  style?: object;
98
98
  };
99
- export declare type TableGroupProps<TRow> = {
99
+ export declare type LegacyTableGroupProps<TRow> = {
100
100
  /** Content of a group should be another `Table.Group` or a `Table.Column` */
101
- children: React.ReactElement<TableColumnProps<TRow>> | React.ReactElement<TableColumnProps<TRow>>[];
101
+ children: React.ReactElement<LegacyTableColumnProps<TRow>> | React.ReactElement<LegacyTableColumnProps<TRow>>[];
102
102
  /** Hide the entire group (and columns defined within group) */
103
103
  hidden?: boolean;
104
104
  /** Text displayed in the group's header */
105
105
  title: string;
106
106
  };
107
- export declare type RowClickHandler<TRow> = (row: TableRow<TRow>, event: React.MouseEvent) => void;
108
- export declare type RowDragHandler<TRow> = (rows: Array<TableRow<TRow>>, showPlaceholder: (placeholder: string) => void, event: React.DragEvent) => void;
107
+ export declare type RowClickHandler<TRow> = (row: LegacyTableRow<TRow>, event: React.MouseEvent) => void;
108
+ export declare type RowDragHandler<TRow> = (rows: Array<LegacyTableRow<TRow>>, showPlaceholder: (placeholder: string) => void, event: React.DragEvent) => void;
109
109
  export declare type SortRule<T> = {
110
110
  /** Name of the accessor you want to sort */
111
111
  accessor: IdType<T>;
@@ -116,22 +116,22 @@ export declare type SelectedRowsState = Record<number, boolean>;
116
116
  export declare type SelectedRowsHandler = React.Dispatch<React.SetStateAction<SelectedRowsState>>;
117
117
  export declare type SortHandler<T> = (sortRules: SortRule<T>[] | undefined, sortedData?: T[]) => void;
118
118
  export declare type PaginationHandler = (pageNumber: number, pageSize: number) => void;
119
- export declare type RowCreateHandler<TRow> = (parentRow: TableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
120
- export declare type RowEditHandler<TRow> = (row: TableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
121
- export declare type RowCopyHandler<TRow> = (row: TableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
122
- export declare type RowDeleteHandler<TRow> = (row: TableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
123
- export declare type RowActiveHandler<TRow> = (row: TableRow<TRow>) => void;
119
+ export declare type RowCreateHandler<TRow> = (parentRow: LegacyTableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
120
+ export declare type RowEditHandler<TRow> = (row: LegacyTableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
121
+ export declare type RowCopyHandler<TRow> = (row: LegacyTableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
122
+ export declare type RowDeleteHandler<TRow> = (row: LegacyTableRow<TRow>, event: React.MouseEvent<HTMLButtonElement>) => void;
123
+ export declare type RowActiveHandler<TRow> = (row: LegacyTableRow<TRow>) => void;
124
124
  export declare type RowAction<TRow> = {
125
- disabled?: ((row: TableRow<TRow>) => boolean) | boolean;
126
- icon: ((row: TableRow<TRow>) => IconName) | IconName;
127
- onClick: (row: TableRow<TRow>, event: React.MouseEvent<HTMLElement>) => void;
128
- text: ((row: TableRow<TRow>) => React.ReactNode) | React.ReactNode;
129
- tooltip?: ((row: TableRow<TRow>) => string) | string;
125
+ disabled?: ((row: LegacyTableRow<TRow>) => boolean) | boolean;
126
+ icon: ((row: LegacyTableRow<TRow>) => IconName) | IconName;
127
+ onClick: (row: LegacyTableRow<TRow>, event: React.MouseEvent<HTMLElement>) => void;
128
+ text: ((row: LegacyTableRow<TRow>) => React.ReactNode) | React.ReactNode;
129
+ tooltip?: ((row: LegacyTableRow<TRow>) => string) | string;
130
130
  showOnRow?: boolean;
131
- visible?: ((row: TableRow<TRow>) => boolean) | boolean;
131
+ visible?: ((row: LegacyTableRow<TRow>) => boolean) | boolean;
132
132
  };
133
133
  export declare type RowActionHandler<TRow> = RowAction<TRow> | undefined | null | boolean;
134
- export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
134
+ export declare type LegacyTableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
135
135
  /** Autofocus the table when loaded */
136
136
  autoFocus?: boolean;
137
137
  /**
@@ -139,7 +139,7 @@ export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
139
139
  * Read about `ForwardedGenericTableWithStatics` for more details.
140
140
  * *Note* that there can also be children that are rendered conditionally
141
141
  */
142
- children: TableChildren<TRow>;
142
+ children: LegacyTableChildren<TRow>;
143
143
  /** Provide data to be displayed in your table */
144
144
  data: Row<TRow>[];
145
145
  /**
@@ -166,9 +166,9 @@ export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
166
166
  * Provide a className for rows.
167
167
  * It can be a `string` or a render function that is given the properties of the row and returns a `string`
168
168
  */
169
- rowClassName?: string | ((row: TableRow<TRow>) => string | undefined);
169
+ rowClassName?: string | ((row: LegacyTableRow<TRow>) => string | undefined);
170
170
  /** Show extra content below each row */
171
- rowExpansionRenderer?: (row: TableRow<TRow>) => React.ReactNode;
171
+ rowExpansionRenderer?: (row: LegacyTableRow<TRow>) => React.ReactNode;
172
172
  /** Give the row a specific height */
173
173
  rowHeight?: number;
174
174
  /**
@@ -220,7 +220,7 @@ export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
220
220
  /** Handler called when a row is made active */
221
221
  onRowActive?: RowActiveHandler<TRow>;
222
222
  };
223
- export declare type TableRef = HTMLDivElement & {
223
+ export declare type LegacyTableRef = HTMLDivElement & {
224
224
  instance: {
225
225
  toggleAllRowsExpanded: any;
226
226
  toggleHideAllColumns: any;
@@ -232,39 +232,39 @@ export declare type TableRef = HTMLDivElement & {
232
232
  toggleSortBy: any;
233
233
  };
234
234
  };
235
- export declare type ForwardedGenericTableWithStatics = React.ForwardRefExoticComponent<TableProps<any> & React.RefAttributes<HTMLDivElement>> & {
235
+ export declare type ForwardedGenericTableWithStatics = React.ForwardRefExoticComponent<LegacyTableProps<any> & React.RefAttributes<HTMLDivElement>> & {
236
236
  /** Represents a column in your table */
237
- Column: <TRow>(props: TableColumnProps<TRow>) => JSX.Element | null;
237
+ Column: <TRow>(props: LegacyTableColumnProps<TRow>) => JSX.Element | null;
238
238
  /**
239
239
  * Container for columns.
240
240
  * Visually this adds a column above and spans all group children.
241
241
  * *Note* that groups can only be nested two levels deep
242
242
  */
243
- Group: <TRow>(props: TableGroupProps<TRow>) => JSX.Element | null;
244
- } & (<TRow>(props: TableProps<TRow> & {
243
+ Group: <TRow>(props: LegacyTableGroupProps<TRow>) => JSX.Element | null;
244
+ } & (<TRow>(props: LegacyTableProps<TRow> & {
245
245
  ref?: React.Ref<HTMLDivElement>;
246
246
  }) => JSX.Element);
247
- export declare type TableChild<TRow> = React.ReactElement<TableColumnProps<TRow>> | React.ReactElement<TableGroupProps<TRow>> | boolean | null;
248
- export declare type TableChildren<TRow> = TableChild<TRow> | TableChild<TRow>[];
247
+ export declare type LegacyTableChild<TRow> = React.ReactElement<LegacyTableColumnProps<TRow>> | React.ReactElement<LegacyTableGroupProps<TRow>> | boolean | null;
248
+ export declare type LegacyTableChildren<TRow> = LegacyTableChild<TRow> | LegacyTableChild<TRow>[];
249
249
  /** @internal */
250
- export declare type InternalTableColumn = TableColumnProps<any> & ColumnInstance & UseSortByColumnProps<{}> & {
250
+ export declare type InternalTableColumn = LegacyTableColumnProps<any> & ColumnInstance & UseSortByColumnProps<{}> & {
251
251
  className?: string;
252
252
  };
253
253
  /** @internal */
254
- export declare type InternalTableCell = TableCell<any> & Cell & {
254
+ export declare type InternalTableCell = LegacyTableCell<any> & Cell & {
255
255
  column: InternalTableColumn;
256
256
  };
257
257
  /** @internal */
258
- export declare type InternalTableRow = TableRow<any> & BaseRow & UseExpandedRowProps<{}> & UseRowSelectRowProps<{}> & UseRowStateRowProps<{}>;
258
+ export declare type InternalTableRow = LegacyTableRow<any> & BaseRow & UseExpandedRowProps<{}> & UseRowSelectRowProps<{}> & UseRowStateRowProps<{}>;
259
259
  /** @internal */
260
- export declare type InternalBaseTable = Partial<TableProps<any>> & Partial<TableInstance> & {
260
+ export declare type InternalBaseTable = Partial<LegacyTableProps<any>> & Partial<TableInstance> & {
261
261
  children: JSX.Element;
262
262
  headerRef?: React.MutableRefObject<HTMLDivElement | null>;
263
263
  bodyRef?: React.MutableRefObject<HTMLDivElement | null>;
264
264
  };
265
265
  /** @internal */
266
266
  export declare type InternalTable = {
267
- rowProps: Pick<TableProps<any>, 'inlineEditingUniqueId' | 'onRowClick' | 'rowClassName' | 'rowExpansionRenderer'> & {
267
+ rowProps: Pick<LegacyTableProps<any>, 'inlineEditingUniqueId' | 'onRowClick' | 'rowClassName' | 'rowExpansionRenderer'> & {
268
268
  activeIndex?: number;
269
269
  setActiveIndex?: any;
270
270
  rowHeight: number | undefined;
@@ -1,4 +1,4 @@
1
- import { SortTypes, TableRow } from '../types';
2
- declare type SortHandler<T> = (rowA: TableRow<T>, rowB: TableRow<T>, columnId: string) => 0 | 1 | -1;
1
+ import { SortTypes, LegacyTableRow } from '../types';
2
+ declare type SortHandler<T> = (rowA: LegacyTableRow<T>, rowB: LegacyTableRow<T>, columnId: string) => 0 | 1 | -1;
3
3
  export declare const sortTypes: (locale: string) => Record<SortTypes, SortHandler<any>>;
4
4
  export {};
@@ -1,8 +1,8 @@
1
- import { TableRow, TableChildren, InternalTableRow, SortRule } from './types';
1
+ import { LegacyTableRow, LegacyTableChildren, InternalTableRow, SortRule } from './types';
2
2
  import { SortingRule } from 'react-table';
3
- export declare const sanitizeRowProps: (row: InternalTableRow, rowExpansionRenderer: any) => TableRow<any>;
4
- export declare const getColumnsFromChildren: (children: TableChildren<any>, rowExpansionRenderer: any) => {
5
- columns: (import("./types").TableColumnProps<any> & import("react-table").ColumnInstance<{}> & import("react-table").UseSortByColumnProps<{}> & {
3
+ export declare const sanitizeRowProps: (row: InternalTableRow, rowExpansionRenderer: any) => LegacyTableRow<any>;
4
+ export declare const getColumnsFromChildren: (children: LegacyTableChildren<any>, rowExpansionRenderer: any) => {
5
+ columns: (import("./types").LegacyTableColumnProps<any> & import("react-table").ColumnInstance<{}> & import("react-table").UseSortByColumnProps<{}> & {
6
6
  className?: string | undefined;
7
7
  } & {
8
8
  disableSortBy: boolean | undefined;
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
2
  import { RowData } from '@tanstack/react-table';
3
3
  import { Table3ColumnAlignment, Table3ColumnRenderer, Table3Props, Table3ColumnHeaderMenu, Table3ColumnControlRenderer, Table3ColumnDataType, Table3ColumnClassNameHandler, Table3ColumnFooterRenderer, TableStrategy, Table3FilterComparator, Table3Settings, Table3Ref } from '../types';
4
- import { useTableRowActive } from '../../../primitives/Table/useTable/features/useTableRowActive';
5
- import { useTableRowHeight } from '../../../primitives/Table/useTable/features/useTableRowHeight';
6
- import { useTableFontSize } from '../../../primitives/Table/useTable/features/useTableFontSize';
4
+ import { useTableRowActive } from '../../../primitives/Table/useTableManager/features/useTableRowActive';
5
+ import { useTableRowHeight } from '../../../primitives/Table/useTableManager/features/useTableRowHeight';
6
+ import { useTableFontSize } from '../../../primitives/Table/useTableManager/features/useTableFontSize';
7
7
  import { useRowDrag } from './features/useRowDrag';
8
8
  import { useColumnFreezing } from './features/useColumnFreezing';
9
- import { useTableRowSelection } from '../../../primitives/Table/useTable/features/useTableRowSelection';
10
- import { useTableServerLoading } from '../../../primitives/Table/useTable/features/useTableServerLoading';
11
- import { useTableRowClick } from '../../../primitives/Table/useTable/features/useTableRowClick';
12
- import { useTableColumnOrdering } from '../../../primitives/Table/useTable/features/useTableColumnOrdering';
9
+ import { useTableRowSelection } from '../../../primitives/Table/useTableManager/features/useTableRowSelection';
10
+ import { useTableServerLoading } from '../../../primitives/Table/useTableManager/features/useTableServerLoading';
11
+ import { useTableRowClick } from '../../../primitives/Table/useTableManager/features/useTableRowClick';
12
+ import { useTableColumnOrdering } from '../../../primitives/Table/useTableManager/features/useTableColumnOrdering';
13
13
  import { useRowDrop } from './features/useRowDrop';
14
14
  import { useEditing } from './features/useEditing';
15
15
  import { usePrinting } from './features/usePrinting';
16
- import { useTableRowGoto } from '../../../primitives/Table/useTable/features/useTableRowGoto';
16
+ import { useTableRowGoto } from '../../../primitives/Table/useTableManager/features/useTableRowGoto';
17
17
  import { useSearch } from './features/useSearch';
18
18
  import { useRowActions } from './features/useRowActions';
19
19
  import { Table3Validation } from './features/useValidation';
@@ -203,6 +203,8 @@ export declare type Table3Texts = {
203
203
  expandAll: string;
204
204
  };
205
205
  menu: {
206
+ editFilter: string;
207
+ filter: string;
206
208
  freezeFirstColumn: string;
207
209
  freezeUptoColumn: string;
208
210
  gotoRow: string;
@@ -1,11 +1,21 @@
1
1
  import { forwardRef, useEffect, createElement } from 'react';
2
2
  import { useMergedRef } from '../../../hooks/useMergedRef.js';
3
+ import { createCustomKeyboardEvent } from '../../../utils/input.js';
3
4
  import { useCurrentMenu } from '../Context.js';
4
5
  import { Trigger as Trigger$1 } from '@radix-ui/react-dropdown-menu';
5
6
 
6
7
  const Trigger = /*#__PURE__*/forwardRef(function MenuTrigger(props, ref) {
7
8
  const menu = useCurrentMenu();
8
9
  const internalRef = useMergedRef(ref);
10
+ const preventArrowDownShortcut = event => {
11
+ var _internalRef$current, _internalRef$current2;
12
+ const isRenderedInTable = !!((_internalRef$current = internalRef.current) !== null && _internalRef$current !== void 0 && _internalRef$current.closest('[data-taco="table2-body"]'));
13
+ const isRenderedInReport = !!((_internalRef$current2 = internalRef.current) !== null && _internalRef$current2 !== void 0 && _internalRef$current2.closest('[data-taco="report-body"]'));
14
+ if ((isRenderedInTable || isRenderedInReport) && event.key === 'ArrowDown') {
15
+ var _internalRef$current3, _internalRef$current4;
16
+ internalRef === null || internalRef === void 0 ? void 0 : (_internalRef$current3 = internalRef.current) === null || _internalRef$current3 === void 0 ? void 0 : (_internalRef$current4 = _internalRef$current3.parentNode) === null || _internalRef$current4 === void 0 ? void 0 : _internalRef$current4.dispatchEvent(createCustomKeyboardEvent(event));
17
+ }
18
+ };
9
19
  useEffect(() => {
10
20
  if (internalRef.current) {
11
21
  menu === null || menu === void 0 ? void 0 : menu.setMinWidth(internalRef.current.getBoundingClientRect().width);
@@ -13,7 +23,8 @@ const Trigger = /*#__PURE__*/forwardRef(function MenuTrigger(props, ref) {
13
23
  }, [internalRef]);
14
24
  return /*#__PURE__*/createElement(Trigger$1, Object.assign({}, props, {
15
25
  asChild: true,
16
- ref: internalRef
26
+ ref: internalRef,
27
+ onKeyDown: preventArrowDownShortcut
17
28
  }));
18
29
  });
19
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"Trigger.js","sources":["../../../../../../../../src/components/Menu/components/Trigger.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { useCurrentMenu } from '../Context';\n\nexport type MenuTriggerProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'children'> & {\n children: React.ReactElement;\n};\n\nexport const Trigger = React.forwardRef(function MenuTrigger(props: MenuTriggerProps, ref: React.Ref<HTMLButtonElement>) {\n const menu = useCurrentMenu();\n const internalRef = useMergedRef<HTMLButtonElement>(ref);\n\n React.useEffect(() => {\n if (internalRef.current) {\n menu?.setMinWidth(internalRef.current.getBoundingClientRect().width);\n }\n }, [internalRef]);\n\n return <DropdownMenuPrimitive.Trigger {...props} asChild ref={internalRef} />;\n});\n"],"names":["Trigger","React","MenuTrigger","props","ref","menu","useCurrentMenu","internalRef","useMergedRef","current","setMinWidth","getBoundingClientRect","width","DropdownMenuPrimitive","asChild"],"mappings":";;;;;MASaA,OAAO,gBAAGC,UAAgB,CAAC,SAASC,WAAWA,CAACC,KAAuB,EAAEC,GAAiC;EACnH,MAAMC,IAAI,GAAGC,cAAc,EAAE;EAC7B,MAAMC,WAAW,GAAGC,YAAY,CAAoBJ,GAAG,CAAC;EAExDH,SAAe,CAAC;IACZ,IAAIM,WAAW,CAACE,OAAO,EAAE;MACrBJ,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEK,WAAW,CAACH,WAAW,CAACE,OAAO,CAACE,qBAAqB,EAAE,CAACC,KAAK,CAAC;;GAE3E,EAAE,CAACL,WAAW,CAAC,CAAC;EAEjB,oBAAON,cAACY,SAA6B,oBAAKV,KAAK;IAAEW,OAAO;IAACV,GAAG,EAAEG;KAAe;AACjF,CAAC;;;;"}
1
+ {"version":3,"file":"Trigger.js","sources":["../../../../../../../../src/components/Menu/components/Trigger.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { useCurrentMenu } from '../Context';\nimport { createCustomKeyboardEvent } from '../../../utils/input';\n\nexport type MenuTriggerProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'children'> & {\n children: React.ReactElement;\n};\n\nexport const Trigger = React.forwardRef(function MenuTrigger(props: MenuTriggerProps, ref: React.Ref<HTMLButtonElement>) {\n const menu = useCurrentMenu();\n const internalRef = useMergedRef<HTMLButtonElement>(ref);\n\n const preventArrowDownShortcut = (event: React.KeyboardEvent) => {\n const isRenderedInTable = !!internalRef.current?.closest('[data-taco=\"table2-body\"]');\n const isRenderedInReport = !!internalRef.current?.closest('[data-taco=\"report-body\"]');\n\n if ((isRenderedInTable || isRenderedInReport) && event.key === 'ArrowDown') {\n internalRef?.current?.parentNode?.dispatchEvent(\n createCustomKeyboardEvent(event as React.KeyboardEvent<HTMLInputElement>)\n );\n }\n };\n\n React.useEffect(() => {\n if (internalRef.current) {\n menu?.setMinWidth(internalRef.current.getBoundingClientRect().width);\n }\n }, [internalRef]);\n\n return <DropdownMenuPrimitive.Trigger {...props} asChild ref={internalRef} onKeyDown={preventArrowDownShortcut} />;\n});\n"],"names":["Trigger","React","MenuTrigger","props","ref","menu","useCurrentMenu","internalRef","useMergedRef","preventArrowDownShortcut","event","isRenderedInTable","_internalRef$current","current","closest","isRenderedInReport","_internalRef$current2","key","_internalRef$current3","_internalRef$current4","parentNode","dispatchEvent","createCustomKeyboardEvent","setMinWidth","getBoundingClientRect","width","DropdownMenuPrimitive","asChild","onKeyDown"],"mappings":";;;;;;MAUaA,OAAO,gBAAGC,UAAgB,CAAC,SAASC,WAAWA,CAACC,KAAuB,EAAEC,GAAiC;EACnH,MAAMC,IAAI,GAAGC,cAAc,EAAE;EAC7B,MAAMC,WAAW,GAAGC,YAAY,CAAoBJ,GAAG,CAAC;EAExD,MAAMK,wBAAwB,GAAIC,KAA0B;;IACxD,MAAMC,iBAAiB,GAAG,CAAC,GAAAC,oBAAA,GAACL,WAAW,CAACM,OAAO,cAAAD,oBAAA,eAAnBA,oBAAA,CAAqBE,OAAO,CAAC,2BAA2B,CAAC;IACrF,MAAMC,kBAAkB,GAAG,CAAC,GAAAC,qBAAA,GAACT,WAAW,CAACM,OAAO,cAAAG,qBAAA,eAAnBA,qBAAA,CAAqBF,OAAO,CAAC,2BAA2B,CAAC;IAEtF,IAAI,CAACH,iBAAiB,IAAII,kBAAkB,KAAKL,KAAK,CAACO,GAAG,KAAK,WAAW,EAAE;MAAA,IAAAC,qBAAA,EAAAC,qBAAA;MACxEZ,WAAW,aAAXA,WAAW,wBAAAW,qBAAA,GAAXX,WAAW,CAAEM,OAAO,cAAAK,qBAAA,wBAAAC,qBAAA,GAApBD,qBAAA,CAAsBE,UAAU,cAAAD,qBAAA,uBAAhCA,qBAAA,CAAkCE,aAAa,CAC3CC,yBAAyB,CAACZ,KAA8C,CAAC,CAC5E;;GAER;EAEDT,SAAe,CAAC;IACZ,IAAIM,WAAW,CAACM,OAAO,EAAE;MACrBR,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEkB,WAAW,CAAChB,WAAW,CAACM,OAAO,CAACW,qBAAqB,EAAE,CAACC,KAAK,CAAC;;GAE3E,EAAE,CAAClB,WAAW,CAAC,CAAC;EAEjB,oBAAON,cAACyB,SAA6B,oBAAKvB,KAAK;IAAEwB,OAAO;IAACvB,GAAG,EAAEG,WAAW;IAAEqB,SAAS,EAAEnB;KAA4B;AACtH,CAAC;;;;"}
@@ -83,6 +83,8 @@ const defaultLocalisationTexts = {
83
83
  expandAll: 'Expand all rows'
84
84
  },
85
85
  menu: {
86
+ editFilter: 'Edit filter',
87
+ filter: 'Filter',
86
88
  freezeFirstColumn: 'Freeze the first column',
87
89
  freezeUptoColumn: `Freeze first [TOTAL] columns`,
88
90
  freezeColumns: (count = 1) => count === 1 ? 'Freeze the first column' : `Freeze first ${count} columns`,