@economic/taco 2.25.1 → 2.26.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (517) hide show
  1. package/dist/components/Provider/Localization.d.ts +47 -55
  2. package/dist/components/Report/Report.d.ts +5 -19
  3. package/dist/components/Report/useReport.d.ts +3 -7
  4. package/dist/components/Select2/hooks/useChildren.d.ts +2 -1
  5. package/dist/components/Table/Table.d.ts +2 -2
  6. package/dist/components/Table3/Table3.d.ts +14 -14
  7. package/dist/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  8. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  9. package/dist/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  10. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  11. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  12. package/dist/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  13. package/dist/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  14. package/dist/components/Table3/components/Editing/Alert.d.ts +12 -0
  15. package/dist/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  16. package/dist/components/Table3/components/Row/Row.d.ts +3 -0
  17. package/dist/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  18. package/dist/components/Table3/features/useTableEditing.d.ts +46 -0
  19. package/dist/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  20. package/dist/components/Table3/types.d.ts +28 -351
  21. package/dist/components/Table3/useTable3.d.ts +11 -0
  22. package/dist/components/Table3/util/editing.d.ts +2 -10
  23. package/dist/esm/index.css +216 -515
  24. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
  25. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -6
  27. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Provider/Localization.js +48 -59
  29. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
  31. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
  33. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
  35. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  37. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  38. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  39. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  40. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  42. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  44. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  46. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  47. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  48. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  49. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  50. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  51. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  52. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  53. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  54. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  55. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  56. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  57. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  58. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  59. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  60. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  61. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  62. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  63. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  64. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  65. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  66. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  67. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  68. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  69. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  70. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  71. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  72. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  73. package/dist/esm/packages/taco/src/index.js +1 -1
  74. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  75. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  77. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  78. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/Body.js +21 -12
  79. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  81. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  82. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
  83. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  84. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
  85. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  86. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
  87. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  88. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
  89. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  90. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
  91. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  94. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  96. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
  97. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  99. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +7 -7
  100. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  101. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
  102. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  103. package/dist/esm/packages/taco/src/{components/Table3/components/columns/header → primitives/Table/Core/components/Header/components}/Goto.js +5 -5
  104. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  105. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
  106. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  107. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
  108. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  109. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
  110. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  111. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  113. package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
  114. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  116. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
  117. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  118. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
  119. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  120. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +54 -0
  121. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  122. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
  123. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  124. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
  125. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  126. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
  127. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  128. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
  129. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  130. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
  131. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  132. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  134. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  135. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
  136. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  137. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  138. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  139. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +26 -7
  140. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  141. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
  142. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  143. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
  144. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  145. package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
  146. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  147. package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
  148. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  149. package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
  150. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  151. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
  152. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  153. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  154. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
  155. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  156. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
  157. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  158. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  159. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  160. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  161. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  162. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +5 -15
  163. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  164. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  165. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  166. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  167. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  168. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +1 -3
  169. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  170. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
  171. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  172. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +58 -24
  173. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  174. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
  175. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  176. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  177. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  178. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  179. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  180. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  181. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  182. package/dist/index.css +216 -515
  183. package/dist/index.d.ts +1 -0
  184. package/dist/primitives/Table/Core/Table.d.ts +19 -0
  185. package/dist/{components/Report → primitives/Table/Core}/components/Body/Body.d.ts +1 -1
  186. package/dist/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
  187. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  188. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  189. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
  190. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
  191. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
  192. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  193. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  194. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  195. package/dist/{components/Report → primitives/Table/Core}/components/Header/Header.d.ts +7 -2
  196. package/dist/{components/Table3/components/columns/header → primitives/Table/Core/components/Header/components}/Goto.d.ts +1 -1
  197. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
  198. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
  199. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
  200. package/dist/primitives/Table/Core/components/Header/util.d.ts +4 -0
  201. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  202. package/dist/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  203. package/dist/{components/Report → primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
  204. package/dist/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  205. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
  206. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
  207. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  208. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
  209. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
  210. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
  211. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
  212. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +3 -1
  213. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  214. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
  215. package/dist/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  216. package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
  217. package/dist/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
  218. package/dist/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
  219. package/dist/primitives/Table/Core/types.d.ts +21 -0
  220. package/dist/primitives/Table/Core/useTable.d.ts +27 -0
  221. package/dist/primitives/Table/types.d.ts +168 -3
  222. package/dist/primitives/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
  223. package/dist/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  224. package/dist/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  225. package/dist/primitives/Table/useTableManager/types.d.ts +1 -0
  226. package/dist/primitives/Table/useTableManager/useTableManager.d.ts +9 -3
  227. package/dist/primitives/Table/useTableManager/util/settings.d.ts +1 -1
  228. package/dist/taco.cjs.development.js +7134 -11743
  229. package/dist/taco.cjs.development.js.map +1 -1
  230. package/dist/taco.cjs.production.min.js +1 -1
  231. package/dist/taco.cjs.production.min.js.map +1 -1
  232. package/dist/utils/dom.d.ts +2 -1
  233. package/package.json +3 -5
  234. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  235. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  236. package/dist/components/Report/components/Header/components/Goto.d.ts +0 -6
  237. package/dist/components/Report/components/Header/util.d.ts +0 -4
  238. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  239. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  240. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  241. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  242. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  243. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  244. package/dist/components/Report/styles/util.d.ts +0 -3
  245. package/dist/components/Report/types.d.ts +0 -20
  246. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
  247. package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
  248. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
  249. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
  250. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
  251. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
  252. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
  253. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
  254. package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
  255. package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
  256. package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
  257. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  258. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  259. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  260. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  261. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  262. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  263. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  264. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  265. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  266. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  267. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  268. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  269. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  270. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  271. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  272. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  273. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  274. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  275. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  276. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  277. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  278. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  279. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  280. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  281. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  282. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  283. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  284. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  285. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  286. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  287. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  288. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  289. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  290. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  291. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  292. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  293. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  294. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  295. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  296. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  297. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  298. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  299. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  300. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  301. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  302. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  303. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  304. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  305. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  306. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  307. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  308. package/dist/components/Table3/strategies/index.d.ts +0 -4
  309. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  310. package/dist/components/Table3/util/columns.d.ts +0 -8
  311. package/dist/components/Table3/util/filtering.d.ts +0 -3
  312. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  313. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  314. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  315. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  316. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  317. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  318. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  319. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  320. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  321. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  322. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  323. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +0 -28
  324. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  325. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  326. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  327. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  328. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  329. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  330. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  331. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  332. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  333. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  334. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  335. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  336. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  337. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  338. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  339. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  340. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  341. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  342. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  343. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  344. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  345. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  346. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  347. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  348. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  349. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  350. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  351. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  352. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  353. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  354. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  355. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  356. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  357. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  358. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  359. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  360. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  361. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  362. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  363. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  364. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  365. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  366. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  367. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  368. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  369. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  370. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  371. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  372. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  373. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  374. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  375. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  376. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  377. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  378. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  379. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  380. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  381. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  382. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  383. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  384. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  385. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  386. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  387. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  388. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  389. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  390. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  391. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  392. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  393. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  394. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  395. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  396. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  397. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  398. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  399. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  400. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  401. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  402. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  403. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  404. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  405. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  406. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  407. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  408. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  409. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  410. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  411. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  412. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  413. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  414. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  415. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  416. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  417. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  418. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  419. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  420. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  421. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  422. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  423. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  424. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  425. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  426. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  427. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  428. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  429. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  430. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  431. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  432. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  433. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  434. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  435. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  436. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  437. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  438. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  439. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  440. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  441. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  442. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  443. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  444. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  445. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  446. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  447. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  448. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  449. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  450. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  451. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  452. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  453. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  454. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  455. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  456. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  457. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  458. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  459. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  460. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  461. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  462. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  463. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  464. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  465. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  466. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  467. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  468. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  469. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  470. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  471. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  472. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  473. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  474. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  475. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  476. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  477. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  478. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  479. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  480. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  481. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  482. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  483. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  484. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  485. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  486. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  487. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  488. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  489. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  490. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  491. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  492. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  493. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  494. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  495. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  496. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  497. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  498. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  499. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +0 -1
  500. package/types.json +0 -588211
  501. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  502. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  503. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  504. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  505. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
  506. /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
  507. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  508. /package/dist/{components/Report → primitives/Table/Core}/components/Body/util.d.ts +0 -0
  509. /package/dist/{components/Report → primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  510. /package/dist/{components/Report → primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  511. /package/dist/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  512. /package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  513. /package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  514. /package/dist/{components/Report/styles → primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  515. /package/dist/primitives/Table/{useTableManager → Core}/features/useTableRef.d.ts +0 -0
  516. /package/dist/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  517. /package/dist/{components/Report → primitives/Table/Core}/util/rows.d.ts +0 -0
@@ -1,186 +0,0 @@
1
- import React__default from 'react';
2
- import cn from 'clsx';
3
- import { Tooltip } from '../../../../Tooltip/Tooltip.js';
4
- import { isGotoAvailable, isMenuAvailable, Menu } from './Menu.js';
5
- import { Resizer } from './Resizer.js';
6
- import { getSortAttributes, SortIndicator } from './SortIndicator.js';
7
- import { isFrozenColumn, isInternalColumn } from '../../../util/columns.js';
8
-
9
- const SORT_DIRECTION = {
10
- ASC: 'asc',
11
- DESC: 'desc'
12
- };
13
- function Header(props) {
14
- const {
15
- children,
16
- column,
17
- header,
18
- hasSeparator,
19
- scrollToIndex,
20
- table
21
- } = props;
22
- const tableMeta = table.options.meta;
23
- const columnMeta = React__default.useMemo(() => column.columnDef.meta, []);
24
- const canSort = column.getCanSort();
25
- const hasGoto = isGotoAvailable(table, header);
26
- // passing header or column results in re-renders on scroll, so anything from those objects as memoed props
27
- const handleHide = React__default.useMemo(() => header.column.getToggleVisibilityHandler(), []);
28
- const handleResize = React__default.useMemo(() => header.getResizeHandler(), []);
29
- const handleSort = React__default.useMemo(() => header.column.getToggleSortingHandler(), []);
30
- const handleSortToggle = React__default.useCallback(sortDirection => {
31
- // When sorting is not applied, sortDirection is false.
32
- if (sortDirection === false) {
33
- header.column.clearSorting();
34
- } else {
35
- header.column.toggleSorting(sortDirection === SORT_DIRECTION.DESC);
36
- }
37
- }, []);
38
- const sorting = table.getState().sorting;
39
- const filters = table.getState().columnFilters;
40
- const search = table.getState().globalFilter;
41
- const handleGoto = React__default.useMemo(() => {
42
- if (hasGoto) {
43
- return query => {
44
- var _tableMeta$rowGoto$ha, _tableMeta$rowGoto;
45
- return (_tableMeta$rowGoto$ha = (_tableMeta$rowGoto = tableMeta.rowGoto).handleGoto) === null || _tableMeta$rowGoto$ha === void 0 ? void 0 : _tableMeta$rowGoto$ha.call(_tableMeta$rowGoto, header.id, query, sorting, filters, search);
46
- };
47
- }
48
- return undefined;
49
- }, [hasGoto, JSON.stringify(sorting), JSON.stringify(filters), search]);
50
- const headerContentProps = {
51
- align: columnMeta.align,
52
- canFreeze: tableMeta.columnFreezing.isEnabled,
53
- canHide: column.getCanHide(),
54
- canResize: column.getCanResize(),
55
- canSort,
56
- children: children !== null && children !== void 0 ? children : columnMeta.header,
57
- colSpan: header.colSpan,
58
- hasMenu: isMenuAvailable(table, header),
59
- hasSeparator,
60
- id: header.id,
61
- index: header.index,
62
- isFrozen: isFrozenColumn(header, table),
63
- isPlaceholder: header.isPlaceholder,
64
- isPrinting: tableMeta.printing.isPrinting,
65
- isResizing: column.getIsResizing(),
66
- length: table.getRowModel().rows.length,
67
- meta: columnMeta,
68
- onGoto: handleGoto,
69
- onHide: handleHide,
70
- onResize: handleResize,
71
- onSort: handleSort,
72
- onSortToggle: handleSortToggle,
73
- scrollToIndex,
74
- sortDirection: column.getIsSorted(),
75
- table
76
- };
77
- return /*#__PURE__*/React__default.createElement(HeaderContent, Object.assign({}, headerContentProps));
78
- }
79
- function HeaderContent(props) {
80
- var _meta$tooltip;
81
- const {
82
- align,
83
- children,
84
- canFreeze,
85
- canHide,
86
- canResize,
87
- canSort,
88
- colSpan,
89
- hasMenu,
90
- hasSeparator,
91
- id,
92
- index,
93
- isFrozen,
94
- isPlaceholder,
95
- isPrinting,
96
- isResizing,
97
- length,
98
- meta,
99
- onGoto: handleGoto,
100
- onHide: handleHide,
101
- onResize: handleResize,
102
- onSort: handleSort,
103
- onSortToggle: handleSortToggle,
104
- scrollToIndex,
105
- sortDirection,
106
- table
107
- } = props;
108
- const className = cn('font-bold border-b-2 box-content group/column relative', '[[role="table"][data-resizing="true"]_&]:pointer-events-none', 'px-[var(--table3-cell-padding-x)]', {
109
- '!border-white': isPlaceholder,
110
- 'h-10 items-center sticky': !isPrinting,
111
- 'pb-2': isPrinting,
112
- 'cursor-pointer select-none': canSort,
113
- 'hover:bg-grey-100': !isPlaceholder && (canSort || canResize || hasMenu),
114
- 'focus-within:bg-grey-100': hasMenu,
115
- '!pointer-events-all !bg-grey-100': !isPlaceholder && isResizing,
116
- // z-indexes
117
- 'z-10 hover:z-20': !isFrozen && !isResizing,
118
- 'z-20': !isFrozen && isResizing,
119
- // when column is frozen, we need to increase it's z-index when it's hovered,
120
- // so that resize handler appears on top of next frozen cell, and didn't get cut by it.
121
- '!z-30 hover:!z-40': isFrozen,
122
- '!z-40': isFrozen && isResizing
123
- }, colSpan > 1 ? `col-span-${colSpan}` : '', meta.headerClassName);
124
- const [internalRef, setInternalRef] = React__default.useState(null);
125
- React__default.useLayoutEffect(() => {
126
- if (internalRef && length) {
127
- // the actions column size gets set by the column itself
128
- if (isInternalColumn(id)) {
129
- return;
130
- }
131
- table.setColumnSizing(sizes => ({
132
- ...sizes,
133
- [id]: internalRef.getBoundingClientRect().width
134
- }));
135
- }
136
- }, [internalRef, length]);
137
- if (table.options.debugAll) {
138
- console.log('header render', id);
139
- }
140
- return /*#__PURE__*/React__default.createElement("div", Object.assign({}, canSort ? getSortAttributes(handleSort, sortDirection) : undefined, {
141
- className: className,
142
- "data-align": align,
143
- "data-column-index": index,
144
- role: "columnheader",
145
- ref: setInternalRef
146
- }), isPlaceholder ? null : ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isInternalColumn(id) ? children : ( /*#__PURE__*/React__default.createElement(Tooltip, {
147
- title: String((_meta$tooltip = meta === null || meta === void 0 ? void 0 : meta.tooltip) !== null && _meta$tooltip !== void 0 ? _meta$tooltip : children),
148
- placement: "top"
149
- }, /*#__PURE__*/React__default.createElement("span", {
150
- className: cn({
151
- truncate: !isPrinting
152
- })
153
- }, children))), canSort ? /*#__PURE__*/React__default.createElement(SortIndicator, {
154
- direction: sortDirection
155
- }) : null, hasMenu ? ( /*#__PURE__*/React__default.createElement(Menu, {
156
- canFreeze: canFreeze,
157
- canHide: canHide,
158
- canSort: canSort,
159
- className: cn({
160
- 'ml-auto': align !== 'right',
161
- 'ml-2': align === 'right'
162
- }),
163
- index: index,
164
- menu: meta.menu,
165
- onGoto: handleGoto,
166
- onHide: handleHide,
167
- onSortToggle: handleSortToggle,
168
- scrollToIndex: scrollToIndex,
169
- sortDirection: sortDirection,
170
- table: table
171
- })) : null)), hasSeparator ? /*#__PURE__*/React__default.createElement(HeaderSeparator, null) : null, !isPlaceholder && canResize ? /*#__PURE__*/React__default.createElement(Resizer, {
172
- isResizing: isResizing,
173
- onResize: handleResize
174
- }) : null);
175
- }
176
- function HeaderSeparator() {
177
- return /*#__PURE__*/React__default.createElement("div", {
178
- "data-taco": "header-separator",
179
- className: cn('invisible absolute right-[0.5px] top-0 flex h-full w-2 touch-none select-none justify-center py-2 group-hover/header:visible')
180
- }, /*#__PURE__*/React__default.createElement("div", {
181
- className: cn('bg-grey-300 h-full w-[1px]')
182
- }));
183
- }
184
-
185
- export { Header, HeaderSeparator, SORT_DIRECTION };
186
- //# sourceMappingURL=Header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/header/Header.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { ColumnMeta, HeaderContext, TableMeta } from '@tanstack/react-table';\n\nimport { Menu, isMenuAvailable, isGotoAvailable } from './Menu';\nimport { Resizer } from './Resizer';\nimport { Table3ColumnAlignment, Table3SortDirection, TableStrategy } from '../../../types';\nimport { getSortAttributes, SortIndicator } from './SortIndicator';\nimport { isFrozenColumn, isInternalColumn } from '../../../util/columns';\nimport { Tooltip } from '../../../../Tooltip/Tooltip';\n\nexport const SORT_DIRECTION: Record<string, Table3SortDirection> = {\n ASC: 'asc',\n DESC: 'desc',\n};\n\nexport type HeaderSortDirection = Table3SortDirection | false;\nexport type SortToggleHandler = (sortDirection: HeaderSortDirection) => void;\n\nexport type HeaderProps<TType = unknown> = HeaderContext<TType, unknown> & {\n children?: string | JSX.Element;\n hasSeparator?: boolean;\n};\n\nexport function Header<TType = unknown>(props: HeaderProps<TType>) {\n const { children, column, header, hasSeparator, scrollToIndex, table } = props;\n const tableMeta = table.options.meta as TableMeta<TType>;\n const columnMeta = React.useMemo(() => column.columnDef.meta, []) as ColumnMeta<TType, unknown>;\n const canSort = column.getCanSort();\n const hasGoto = isGotoAvailable(table, header);\n\n // passing header or column results in re-renders on scroll, so anything from those objects as memoed props\n const handleHide = React.useMemo(() => header.column.getToggleVisibilityHandler(), []);\n const handleResize = React.useMemo(() => header.getResizeHandler(), []);\n const handleSort = React.useMemo(() => header.column.getToggleSortingHandler(), []);\n const handleSortToggle = React.useCallback((sortDirection: HeaderSortDirection) => {\n // When sorting is not applied, sortDirection is false.\n if (sortDirection === false) {\n header.column.clearSorting();\n } else {\n header.column.toggleSorting(sortDirection === SORT_DIRECTION.DESC);\n }\n }, []);\n\n const sorting = table.getState().sorting;\n const filters = table.getState().columnFilters;\n const search = table.getState().globalFilter;\n\n const handleGoto = React.useMemo(() => {\n if (hasGoto) {\n return ((query: string) => tableMeta.rowGoto.handleGoto?.(header.id, query, sorting, filters, search)) as (\n query: string\n ) => Promise<number>;\n }\n\n return undefined;\n }, [hasGoto, JSON.stringify(sorting), JSON.stringify(filters), search]);\n\n const headerContentProps: HeaderContentProps<TType> = {\n align: columnMeta.align,\n canFreeze: tableMeta.columnFreezing.isEnabled,\n canHide: column.getCanHide(),\n canResize: column.getCanResize(),\n canSort,\n children: children ?? columnMeta.header,\n colSpan: header.colSpan,\n hasMenu: isMenuAvailable<TType>(table, header),\n hasSeparator,\n id: header.id,\n index: header.index,\n isFrozen: isFrozenColumn(header, table),\n isPlaceholder: header.isPlaceholder,\n isPrinting: tableMeta.printing.isPrinting,\n isResizing: column.getIsResizing(),\n length: table.getRowModel().rows.length,\n meta: columnMeta,\n onGoto: handleGoto,\n onHide: handleHide,\n onResize: handleResize,\n onSort: handleSort as (event: unknown) => void,\n onSortToggle: handleSortToggle,\n scrollToIndex,\n sortDirection: column.getIsSorted(),\n table,\n };\n\n return <HeaderContent<TType> {...headerContentProps} />;\n}\n\n// Memoization\nexport type HeaderContentProps<TType = unknown> = Omit<HeaderProps<TType>, 'column' | 'header'> & {\n align?: Table3ColumnAlignment;\n canFreeze: boolean;\n canHide: boolean;\n canResize: boolean;\n canSort: boolean;\n colSpan: number;\n hasMenu: boolean;\n hasSeparator?: boolean;\n id: string;\n index: number;\n isFrozen: boolean;\n isPlaceholder: boolean;\n isPrinting: boolean;\n isResizing: boolean;\n length: number;\n meta: ColumnMeta<TType, unknown>;\n onGoto?: (query: string) => Promise<number>;\n onHide: (event: unknown) => void;\n onResize: (event: unknown) => void;\n onSort: (event: unknown) => void;\n onSortToggle: SortToggleHandler;\n scrollToIndex: TableStrategy['scrollToIndex'];\n sortDirection: HeaderSortDirection;\n};\n\nfunction HeaderContent<TType = unknown>(props: HeaderContentProps<TType>) {\n const {\n align,\n children,\n canFreeze,\n canHide,\n canResize,\n canSort,\n colSpan,\n hasMenu,\n hasSeparator,\n id,\n index,\n isFrozen,\n isPlaceholder,\n isPrinting,\n isResizing,\n length,\n meta,\n onGoto: handleGoto,\n onHide: handleHide,\n onResize: handleResize,\n onSort: handleSort,\n onSortToggle: handleSortToggle,\n scrollToIndex,\n sortDirection,\n table,\n } = props;\n\n const className = cn(\n 'font-bold border-b-2 box-content group/column relative',\n '[[role=\"table\"][data-resizing=\"true\"]_&]:pointer-events-none',\n 'px-[var(--table3-cell-padding-x)]',\n {\n '!border-white': isPlaceholder,\n 'h-10 items-center sticky': !isPrinting,\n 'pb-2': isPrinting,\n 'cursor-pointer select-none': canSort,\n 'hover:bg-grey-100': !isPlaceholder && (canSort || canResize || hasMenu),\n 'focus-within:bg-grey-100': hasMenu,\n '!pointer-events-all !bg-grey-100': !isPlaceholder && isResizing,\n // z-indexes\n 'z-10 hover:z-20': !isFrozen && !isResizing,\n 'z-20': !isFrozen && isResizing,\n // when column is frozen, we need to increase it's z-index when it's hovered,\n // so that resize handler appears on top of next frozen cell, and didn't get cut by it.\n '!z-30 hover:!z-40': isFrozen,\n '!z-40': isFrozen && isResizing,\n },\n colSpan > 1 ? `col-span-${colSpan}` : '',\n meta.headerClassName\n );\n\n const [internalRef, setInternalRef] = React.useState<HTMLDivElement | null>(null);\n\n React.useLayoutEffect(() => {\n if (internalRef && length) {\n // the actions column size gets set by the column itself\n if (isInternalColumn(id)) {\n return;\n }\n\n table.setColumnSizing(sizes => ({\n ...sizes,\n [id]: internalRef.getBoundingClientRect().width,\n }));\n }\n }, [internalRef, length]);\n\n if (table.options.debugAll) {\n console.log('header render', id);\n }\n return (\n <div\n {...(canSort ? getSortAttributes(handleSort, sortDirection) : undefined)}\n className={className}\n data-align={align}\n data-column-index={index}\n role=\"columnheader\"\n ref={setInternalRef}>\n {isPlaceholder ? null : (\n <>\n {isInternalColumn(id) ? (\n children\n ) : (\n <Tooltip title={String(meta?.tooltip ?? children)} placement=\"top\">\n <span className={cn({ truncate: !isPrinting })}>{children}</span>\n </Tooltip>\n )}\n {canSort ? <SortIndicator direction={sortDirection} /> : null}\n {hasMenu ? (\n <Menu\n canFreeze={canFreeze}\n canHide={canHide}\n canSort={canSort}\n className={cn({\n 'ml-auto': align !== 'right',\n 'ml-2': align === 'right',\n })}\n index={index}\n menu={meta.menu}\n onGoto={handleGoto}\n onHide={handleHide}\n onSortToggle={handleSortToggle}\n scrollToIndex={scrollToIndex}\n sortDirection={sortDirection}\n table={table}\n />\n ) : null}\n </>\n )}\n {/* Header separator need to go before Resizer to prevent it's overlapping */}\n {hasSeparator ? <HeaderSeparator /> : null}\n {!isPlaceholder && canResize ? <Resizer isResizing={isResizing} onResize={handleResize} /> : null}\n </div>\n );\n}\n\nexport function HeaderSeparator() {\n return (\n <div\n data-taco=\"header-separator\"\n className={cn(\n 'invisible absolute right-[0.5px] top-0 flex h-full w-2 touch-none select-none justify-center py-2 group-hover/header:visible'\n )}>\n <div className={cn('bg-grey-300 h-full w-[1px]')} />\n </div>\n );\n}\n"],"names":["SORT_DIRECTION","ASC","DESC","Header","props","children","column","header","hasSeparator","scrollToIndex","table","tableMeta","options","meta","columnMeta","React","useMemo","columnDef","canSort","getCanSort","hasGoto","isGotoAvailable","handleHide","getToggleVisibilityHandler","handleResize","getResizeHandler","handleSort","getToggleSortingHandler","handleSortToggle","useCallback","sortDirection","clearSorting","toggleSorting","sorting","getState","filters","columnFilters","search","globalFilter","handleGoto","query","_tableMeta$rowGoto$ha","_tableMeta$rowGoto","rowGoto","call","id","undefined","JSON","stringify","headerContentProps","align","canFreeze","columnFreezing","isEnabled","canHide","getCanHide","canResize","getCanResize","colSpan","hasMenu","isMenuAvailable","index","isFrozen","isFrozenColumn","isPlaceholder","isPrinting","printing","isResizing","getIsResizing","length","getRowModel","rows","onGoto","onHide","onResize","onSort","onSortToggle","getIsSorted","HeaderContent","className","cn","headerClassName","internalRef","setInternalRef","useState","useLayoutEffect","isInternalColumn","setColumnSizing","sizes","getBoundingClientRect","width","debugAll","console","log","getSortAttributes","role","ref","Tooltip","title","String","_meta$tooltip","tooltip","placement","truncate","SortIndicator","direction","Menu","menu","HeaderSeparator","Resizer"],"mappings":";;;;;;;;MAWaA,cAAc,GAAwC;EAC/DC,GAAG,EAAE,KAAK;EACVC,IAAI,EAAE;;SAWMC,MAAMA,CAAkBC,KAAyB;EAC7D,MAAM;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,MAAM;IAAEC,YAAY;IAAEC,aAAa;IAAEC;GAAO,GAAGN,KAAK;EAC9E,MAAMO,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAAwB;EACxD,MAAMC,UAAU,GAAGC,cAAK,CAACC,OAAO,CAAC,MAAMV,MAAM,CAACW,SAAS,CAACJ,IAAI,EAAE,EAAE,CAA+B;EAC/F,MAAMK,OAAO,GAAGZ,MAAM,CAACa,UAAU,EAAE;EACnC,MAAMC,OAAO,GAAGC,eAAe,CAACX,KAAK,EAAEH,MAAM,CAAC;;EAG9C,MAAMe,UAAU,GAAGP,cAAK,CAACC,OAAO,CAAC,MAAMT,MAAM,CAACD,MAAM,CAACiB,0BAA0B,EAAE,EAAE,EAAE,CAAC;EACtF,MAAMC,YAAY,GAAGT,cAAK,CAACC,OAAO,CAAC,MAAMT,MAAM,CAACkB,gBAAgB,EAAE,EAAE,EAAE,CAAC;EACvE,MAAMC,UAAU,GAAGX,cAAK,CAACC,OAAO,CAAC,MAAMT,MAAM,CAACD,MAAM,CAACqB,uBAAuB,EAAE,EAAE,EAAE,CAAC;EACnF,MAAMC,gBAAgB,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AGzC,6BAAC8F,OAAO;IAAC1C,UAAU,EAAEA,UAAU;IAAEO,QAAQ,EAAElD;IAAgB,GAAG,IAAI,CAC/F;AAEd;SAEgBoF,eAAeA;EAC3B,oBACI7F;iBACc,kBAAkB;IAC5BgE,SAAS,EAAEC,EAAE,CACT,8HAA8H;kBAElIjE;IAAKgE,SAAS,EAAEC,EAAE,CAAC,4BAA4B;IAAK,CAClD;AAEd;;;;"}
@@ -1,206 +0,0 @@
1
- import React__default from 'react';
2
- import cn from 'clsx';
3
- import { createShortcutKeyDownHandler } from '../../../../../utils/keyboard.js';
4
- import { IconButton } from '../../../../IconButton/IconButton.js';
5
- import { useLocalization } from '../../../../Provider/Localization.js';
6
- import { Menu as Menu$1 } from '../../../../Menu/Menu.js';
7
- import { _finallyRethrows, _catch } from '../../../../../../../../node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js';
8
- import { GotoPopover } from './Goto.js';
9
- import { getTableLeftScrollDistance } from '../../../util/scrolling.js';
10
- import { SORT_DIRECTION } from './Header.js';
11
- import { isInternalColumn } from '../../../util/columns.js';
12
-
13
- function isGotoAvailable(table, header) {
14
- if (isInternalColumn(header.id)) {
15
- return false;
16
- }
17
- const tableMeta = table.options.meta;
18
- return !!(tableMeta.rowGoto.isEnabled && header.column.getCanSort() && header.column.getIsSorted());
19
- }
20
- function isMenuAvailable(table, header) {
21
- var _header$column$column;
22
- if (isInternalColumn(header.id)) {
23
- return false;
24
- }
25
- const tableMeta = table.options.meta;
26
- return !!((_header$column$column = header.column.columnDef.meta) !== null && _header$column$column !== void 0 && _header$column$column.menu) || !!tableMeta.columnFreezing.isEnabled || !!table.options.enableHiding && !!header.column.getCanHide() || isGotoAvailable(table, header);
27
- }
28
- function Menu(props) {
29
- const {
30
- canFreeze,
31
- canHide,
32
- canSort,
33
- index,
34
- menu,
35
- onGoto: handleGoto,
36
- onHide: handleHide,
37
- onSortToggle: handleSortToggle,
38
- scrollToIndex,
39
- sortDirection,
40
- table
41
- } = props;
42
- const tableMeta = table.options.meta;
43
- const {
44
- texts
45
- } = useLocalization();
46
- const [popover, setPopover] = React__default.useState(undefined);
47
- const [sortDirectionState, setSortDirectionState] = React__default.useState(sortDirection);
48
- const ref = React__default.useRef(null);
49
- const gotoShortcut = 'g';
50
- React__default.useEffect(() => {
51
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
52
- const {
53
- frozenColumnIndex: externalFrozenColumnIndex = -1,
54
- frozenInternalColumnCount = 0
55
- } = tableMeta.columnFreezing;
56
- const handler = createShortcutKeyDownHandler(gotoShortcut, () => {
57
- // Only execute the below code if the header menu has goto menu item
58
- if (handleGoto) {
59
- var _ref$current;
60
- const tableElement = tableMeta.tableRef.current;
61
- const frozenColumnIndex = externalFrozenColumnIndex > -1 ? externalFrozenColumnIndex + frozenInternalColumnCount : frozenInternalColumnCount - 1;
62
- const parentHeader = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.closest('[role="columnheader"]');
63
- if (!tableElement || !parentHeader) {
64
- return;
65
- }
66
- const leftScrollDistance = getTableLeftScrollDistance(tableElement, parentHeader, frozenColumnIndex);
67
- if (leftScrollDistance !== null) {
68
- tableElement.scrollLeft = leftScrollDistance;
69
- }
70
- }
71
- },
72
- // Prevents the stopping of event propagation
73
- false);
74
- document.addEventListener('keydown', handler);
75
- return () => document.removeEventListener('keydown', handler);
76
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
77
- }, [tableMeta.columnFreezing.frozenColumnIndex, handleGoto]);
78
- const handleSortMenuRadioGroupChange = newSortDirection => {
79
- setSortDirectionState(newSortDirection);
80
- handleSortToggle(newSortDirection);
81
- };
82
- let popoverElement;
83
- if (popover) {
84
- const handleClosePopover = () => setPopover(undefined);
85
- switch (popover) {
86
- case 'goto':
87
- {
88
- if (handleGoto) {
89
- const goto = function (query) {
90
- try {
91
- const _temp = _finallyRethrows(function () {
92
- return _catch(function () {
93
- return Promise.resolve(handleGoto(query)).then(function (index) {
94
- tableMeta.rowActive.setRowActiveIndex(index);
95
- scrollToIndex(index + 2, {
96
- align: 'center'
97
- });
98
- });
99
- }, function () {});
100
- }, function (_wasThrown, _result) {
101
- handleClosePopover();
102
- if (_wasThrown) throw _result;
103
- return _result;
104
- });
105
- return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
106
- } catch (e) {
107
- return Promise.reject(e);
108
- }
109
- };
110
- popoverElement = props => /*#__PURE__*/React__default.createElement(GotoPopover, Object.assign({}, props, {
111
- open: true,
112
- onChange: handleClosePopover,
113
- onGoto: goto
114
- }));
115
- }
116
- }
117
- }
118
- }
119
- const className = cn('-my-0.5 -mr-1 -ml-0.5 !h-6 !min-h-[theme(spacing.6)] flex-shrink-0 justify-end !w-0 !min-w-0 !overflow-hidden', 'aria-expanded:!min-w-[theme(spacing.6)] aria-expanded:!w-6 aria-expanded:!overflow-auto', 'focus:!min-w-[theme(spacing.6)] focus:!w-6 focus:!overflow-auto', 'group-hover/column:!min-w-[theme(spacing.6)] group-hover/column:!w-6 group-hover/column:!overflow-auto', {
120
- '!w-6 !min-w-[theme(spacing.6)] !overflow-auto': !!popoverElement
121
- }, props.className);
122
- const memoedMenuItems = React__default.useMemo(() => {
123
- const menuItems = [];
124
- if (canHide) {
125
- // we do this in the next tick, otherwise the menu closes and react throws a "state update on unmounted component" error
126
- const handleClick = event => setTimeout(() => handleHide(event), 1);
127
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
128
- icon: "eye-off",
129
- onClick: handleClick
130
- }, texts.table3.columns.menu.hideColumn));
131
- }
132
- // We rely on canSort value instead of onSort function's value because some columns might have sorting disabled,
133
- // so even though onSort is truthy, we don't want to show sorting menu.
134
- if (canSort) {
135
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
136
- icon: "sort-by",
137
- subMenu: () => ( /*#__PURE__*/React__default.createElement(Menu$1.SubMenu, null, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup, {
138
- onChange: handleSortMenuRadioGroupChange,
139
- value: sortDirectionState
140
- }, /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
141
- value: SORT_DIRECTION.ASC
142
- }, texts.table3.columns.menu.sortingOrder.ascending), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
143
- value: SORT_DIRECTION.DESC
144
- }, texts.table3.columns.menu.sortingOrder.descending), /*#__PURE__*/React__default.createElement(Menu$1.RadioGroup.Item, {
145
- value: false
146
- }, texts.table3.columns.menu.sortingOrder.unsorted))))
147
- }, texts.table3.columns.menu.sorting));
148
- }
149
- if (handleGoto) {
150
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
151
- icon: "move",
152
- onClick: () => setPopover('goto'),
153
- shortcut: gotoShortcut
154
- }, texts.table3.columns.menu.gotoRow, "..."));
155
- }
156
- if (canFreeze) {
157
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
158
- const frozenIndex = index - tableMeta.columnFreezing.frozenInternalColumnCount;
159
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
160
- const handleClick = () => tableMeta.columnFreezing.setFrozenColumnIndex(frozenIndex);
161
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
162
- icon: "column-freeze",
163
- onClick: handleClick
164
- }, frozenIndex === 0 ? texts.table3.columns.menu.freezeFirstColumn : texts.table3.columns.menu.freezeUptoColumn.replace('[TOTAL]', String(frozenIndex + 1))));
165
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
166
- if (tableMeta.columnFreezing.frozenColumnIndex !== undefined) {
167
- const handleClick = () => {
168
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
169
- tableMeta.columnFreezing.setFrozenColumnIndex(undefined);
170
- };
171
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Item, {
172
- icon: "column-unfreeze",
173
- onClick: handleClick
174
- }, texts.table3.columns.menu.unfreezeColumns));
175
- }
176
- }
177
- if (menu) {
178
- const customMenu = menu({
179
- trigger: undefined
180
- });
181
- const customItems = React__default.Children.toArray(customMenu.props.children.props.children);
182
- if (customItems.length) {
183
- if (menuItems.length) {
184
- menuItems.push( /*#__PURE__*/React__default.createElement(Menu$1.Separator, null));
185
- }
186
- menuItems.push(...customItems);
187
- }
188
- }
189
- return menuItems.map((item, key) => /*#__PURE__*/React__default.cloneElement(item, {
190
- key
191
- }));
192
- }, [menu, index, canFreeze, canHide, canSort, handleGoto, handleSortToggle, sortDirection,
193
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
194
- tableMeta.columnFreezing.frozenColumnIndex]);
195
- return /*#__PURE__*/React__default.createElement(IconButton, {
196
- className: className,
197
- icon: "more",
198
- menu: popoverElement ? undefined : menuProps => ( /*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, memoedMenuItems))),
199
- popover: popoverElement,
200
- onClickCapture: event => event.preventDefault(),
201
- ref: ref
202
- });
203
- }
204
-
205
- export { Menu, isGotoAvailable, isMenuAvailable };
206
- //# sourceMappingURL=Menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/header/Menu.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { Header as RTHeader, Table as RTable, TableMeta } from '@tanstack/react-table';\nimport { IconButton } from '../../../../IconButton/IconButton';\nimport { Menu as MenuPrimitive } from '../../../../Menu/Menu';\nimport { isInternalColumn } from '../../../util/columns';\nimport { useLocalization } from '../../../../Provider/Localization';\nimport { Table3ColumnHeaderMenu, TableStrategy } from '../../../types';\nimport { GotoPopover } from './Goto';\nimport { HeaderSortDirection, SORT_DIRECTION, SortToggleHandler } from './Header';\nimport { RadioGroupItemValue } from '../../../../RadioGroup/RadioGroup';\nimport { createShortcutKeyDownHandler } from '../../../../../utils/keyboard';\nimport { getTableLeftScrollDistance } from '../../../util/scrolling';\n\nexport function isGotoAvailable<TType = unknown>(table: RTable<TType>, header: RTHeader<TType, unknown>) {\n if (isInternalColumn(header.id)) {\n return false;\n }\n\n const tableMeta = table.options.meta as TableMeta<TType>;\n\n return !!(tableMeta.rowGoto.isEnabled && header.column.getCanSort() && header.column.getIsSorted());\n}\n\nexport function isMenuAvailable<TType = unknown>(table: RTable<TType>, header: RTHeader<TType, unknown>): boolean {\n if (isInternalColumn(header.id)) {\n return false;\n }\n\n const tableMeta = table.options.meta as TableMeta<TType>;\n\n return (\n !!header.column.columnDef.meta?.menu ||\n !!tableMeta.columnFreezing.isEnabled ||\n (!!table.options.enableHiding && !!header.column.getCanHide()) ||\n isGotoAvailable(table, header)\n );\n}\n\nexport type MenuProps<TType = unknown> = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n canFreeze: boolean;\n canHide: boolean;\n canSort: boolean;\n index: number;\n menu?: Table3ColumnHeaderMenu;\n onGoto?: (query: string) => Promise<number>;\n onHide: (event: unknown) => void;\n onSortToggle: SortToggleHandler;\n scrollToIndex: TableStrategy['scrollToIndex'];\n sortDirection: HeaderSortDirection;\n table: RTable<TType>;\n};\n\nexport function Menu<TType = unknown>(props: MenuProps<TType>) {\n const {\n canFreeze,\n canHide,\n canSort,\n index,\n menu,\n onGoto: handleGoto,\n onHide: handleHide,\n onSortToggle: handleSortToggle,\n scrollToIndex,\n sortDirection,\n table,\n } = props;\n const tableMeta = table.options.meta as TableMeta<TType>;\n const { texts } = useLocalization();\n const [popover, setPopover] = React.useState<string | undefined>(undefined);\n const [sortDirectionState, setSortDirectionState] = React.useState<HeaderSortDirection>(sortDirection);\n const ref = React.useRef<HTMLButtonElement>(null);\n\n const gotoShortcut = 'g';\n\n React.useEffect(() => {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const { frozenColumnIndex: externalFrozenColumnIndex = -1, frozenInternalColumnCount = 0 } = tableMeta.columnFreezing;\n\n const handler = createShortcutKeyDownHandler(\n gotoShortcut,\n () => {\n // Only execute the below code if the header menu has goto menu item\n if (handleGoto) {\n const tableElement = tableMeta.tableRef.current;\n const frozenColumnIndex =\n externalFrozenColumnIndex > -1\n ? externalFrozenColumnIndex + frozenInternalColumnCount\n : frozenInternalColumnCount - 1;\n const parentHeader = ref.current?.closest('[role=\"columnheader\"]');\n\n if (!tableElement || !parentHeader) {\n return;\n }\n\n const leftScrollDistance = getTableLeftScrollDistance(tableElement, parentHeader, frozenColumnIndex);\n\n if (leftScrollDistance !== null) {\n tableElement.scrollLeft = leftScrollDistance;\n }\n }\n },\n // Prevents the stopping of event propagation\n false\n );\n\n document.addEventListener('keydown', handler);\n\n return () => document.removeEventListener('keydown', handler);\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n }, [tableMeta.columnFreezing.frozenColumnIndex, handleGoto]);\n\n const handleSortMenuRadioGroupChange = (newSortDirection: RadioGroupItemValue) => {\n setSortDirectionState(newSortDirection as HeaderSortDirection);\n handleSortToggle(newSortDirection as HeaderSortDirection);\n };\n\n let popoverElement;\n\n if (popover) {\n const handleClosePopover = () => setPopover(undefined);\n\n switch (popover) {\n case 'goto': {\n if (handleGoto) {\n const goto = async (query: string) => {\n try {\n const index = await handleGoto(query);\n tableMeta.rowActive.setRowActiveIndex(index);\n scrollToIndex(index + 2, { align: 'center' });\n } catch {\n //\n } finally {\n handleClosePopover();\n }\n };\n popoverElement = props => <GotoPopover {...props} open onChange={handleClosePopover} onGoto={goto} />;\n }\n }\n }\n }\n\n const className = cn(\n '-my-0.5 -mr-1 -ml-0.5 !h-6 !min-h-[theme(spacing.6)] flex-shrink-0 justify-end !w-0 !min-w-0 !overflow-hidden',\n 'aria-expanded:!min-w-[theme(spacing.6)] aria-expanded:!w-6 aria-expanded:!overflow-auto',\n 'focus:!min-w-[theme(spacing.6)] focus:!w-6 focus:!overflow-auto',\n 'group-hover/column:!min-w-[theme(spacing.6)] group-hover/column:!w-6 group-hover/column:!overflow-auto',\n {\n '!w-6 !min-w-[theme(spacing.6)] !overflow-auto': !!popoverElement,\n },\n props.className\n );\n\n const memoedMenuItems = React.useMemo(() => {\n const menuItems: JSX.Element[] = [];\n\n if (canHide) {\n // we do this in the next tick, otherwise the menu closes and react throws a \"state update on unmounted component\" error\n const handleClick = event => setTimeout(() => handleHide(event), 1);\n\n menuItems.push(\n <MenuPrimitive.Item icon=\"eye-off\" onClick={handleClick}>\n {texts.table3.columns.menu.hideColumn}\n </MenuPrimitive.Item>\n );\n }\n\n // We rely on canSort value instead of onSort function's value because some columns might have sorting disabled,\n // so even though onSort is truthy, we don't want to show sorting menu.\n if (canSort) {\n menuItems.push(\n <MenuPrimitive.Item\n icon=\"sort-by\"\n subMenu={() => (\n <MenuPrimitive.SubMenu>\n <MenuPrimitive.RadioGroup onChange={handleSortMenuRadioGroupChange} value={sortDirectionState}>\n <MenuPrimitive.RadioGroup.Item value={SORT_DIRECTION.ASC}>\n {texts.table3.columns.menu.sortingOrder.ascending}\n </MenuPrimitive.RadioGroup.Item>\n <MenuPrimitive.RadioGroup.Item value={SORT_DIRECTION.DESC}>\n {texts.table3.columns.menu.sortingOrder.descending}\n </MenuPrimitive.RadioGroup.Item>\n <MenuPrimitive.RadioGroup.Item value={false}>\n {texts.table3.columns.menu.sortingOrder.unsorted}\n </MenuPrimitive.RadioGroup.Item>\n </MenuPrimitive.RadioGroup>\n </MenuPrimitive.SubMenu>\n )}>\n {texts.table3.columns.menu.sorting}\n </MenuPrimitive.Item>\n );\n }\n\n if (handleGoto) {\n menuItems.push(\n <MenuPrimitive.Item icon=\"move\" onClick={() => setPopover('goto')} shortcut={gotoShortcut}>\n {texts.table3.columns.menu.gotoRow}...\n </MenuPrimitive.Item>\n );\n }\n\n if (canFreeze) {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const frozenIndex = index - tableMeta.columnFreezing.frozenInternalColumnCount;\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const handleClick = () => tableMeta.columnFreezing.setFrozenColumnIndex(frozenIndex);\n\n menuItems.push(\n <MenuPrimitive.Item icon=\"column-freeze\" onClick={handleClick}>\n {frozenIndex === 0\n ? texts.table3.columns.menu.freezeFirstColumn\n : texts.table3.columns.menu.freezeUptoColumn.replace('[TOTAL]', String(frozenIndex + 1))}\n </MenuPrimitive.Item>\n );\n\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n if (tableMeta.columnFreezing.frozenColumnIndex !== undefined) {\n const handleClick = () => {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n tableMeta.columnFreezing.setFrozenColumnIndex(undefined);\n };\n\n menuItems.push(\n <MenuPrimitive.Item icon=\"column-unfreeze\" onClick={handleClick}>\n {texts.table3.columns.menu.unfreezeColumns}\n </MenuPrimitive.Item>\n );\n }\n }\n\n if (menu) {\n const customMenu = menu({ trigger: undefined });\n const customItems = React.Children.toArray(customMenu.props.children.props.children) as JSX.Element[];\n\n if (customItems.length) {\n if (menuItems.length) {\n menuItems.push(<MenuPrimitive.Separator />);\n }\n\n menuItems.push(...customItems);\n }\n }\n\n return menuItems.map((item, key) => React.cloneElement(item, { key }));\n }, [\n menu,\n index,\n canFreeze,\n canHide,\n canSort,\n handleGoto,\n handleSortToggle,\n sortDirection,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n tableMeta.columnFreezing.frozenColumnIndex,\n ]);\n\n return (\n <IconButton\n className={className}\n icon=\"more\"\n menu={\n popoverElement\n ? undefined\n : menuProps => (\n <MenuPrimitive {...menuProps}>\n <MenuPrimitive.Content>{memoedMenuItems}</MenuPrimitive.Content>\n </MenuPrimitive>\n )\n }\n popover={popoverElement}\n onClickCapture={event => event.preventDefault()}\n ref={ref}\n />\n );\n}\n"],"names":["isGotoAvailable","table","header","isInternalColumn","id","tableMeta","options","meta","rowGoto","isEnabled","column","getCanSort","getIsSorted","isMenuAvailable","_header$column$column","columnDef","menu","columnFreezing","enableHiding","getCanHide","Menu","props","canFreeze","canHide","canSort","index","onGoto","handleGoto","onHide","handleHide","onSortToggle","handleSortToggle","scrollToIndex","sortDirection","texts","useLocalization","popover","setPopover","React","useState","undefined","sortDirectionState","setSortDirectionState","ref","useRef","gotoShortcut","useEffect","frozenColumnIndex","externalFrozenColumnIndex","frozenInternalColumnCount","handler","createShortcutKeyDownHandler","_ref$current","tableElement","tableRef","current","parentHeader","closest","leftScrollDistance","getTableLeftScrollDistance","scrollLeft","document","addEventListener","removeEventListener","handleSortMenuRadioGroupChange","newSortDirection","popoverElement","handleClosePopover","goto","query","Promise","resolve","then","rowActive","setRowActiveIndex","align","_wasThrown","_result","_temp","e","reject","GotoPopover","open","onChange","className","cn","memoedMenuItems","useMemo","menuItems","handleClick","event","setTimeout","push","MenuPrimitive","Item","icon","onClick","table3","columns","hideColumn","subMenu","SubMenu","RadioGroup","value","SORT_DIRECTION","ASC","sortingOrder","ascending","DESC","descending","unsorted","sorting","shortcut","gotoRow","frozenIndex","setFrozenColumnIndex","freezeFirstColumn","freezeUptoColumn","replace","String","unfreezeColumns","customMenu","trigger","customItems","Children","toArray","children","length","Separator","map","item","key","cloneElement","IconButton","menuProps","Content","onClickCapture","preventDefault"],"mappings":";;;;;;;;;;;;SAcgBA,eAAeA,CAAkBC,KAAoB,EAAEC,MAAgC;EACnG,IAAIC,gBAAgB,CAACD,MAAM,CAACE,EAAE,CAAC,EAAE;IAC7B,OAAO,KAAK;;EAGhB,MAAMC,SAAS,GAAGJ,KAAK,CAACK,OAAO,CAACC,IAAwB;EAExD,OAAO,CAAC,EAAEF,SAAS,CAACG,OAAO,CAACC,SAAS,IAAIP,MAAM,CAACQ,MAAM,CAACC,UAAU,EAAE,IAAIT,MAAM,CAACQ,MAAM,CAACE,WAAW,EAAE,CAAC;AACvG;SAEgBC,eAAeA,CAAkBZ,KAAoB,EAAEC,MAAgC;;EACnG,IAAIC,gBAAgB,CAACD,MAAM,CAACE,EAAE,CAAC,EAAE;IAC7B,OAAO,KAAK;;EAGhB,MAAM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C8F,YAAY,CAACF,IAAI,EAAE;MAAEC;KAAK,CAAC,CAAC;GACzE,EAAE,CACCnH,IAAI,EACJS,KAAK,EACLH,SAAS,EACTC,OAAO,EACPC,OAAO,EACPG,UAAU,EACVI,gBAAgB,EAChBE,aAAa;;EAEb5B,SAAS,CAACY,cAAc,CAAC8B,iBAAiB,CAC7C,CAAC;EAEF,oBACIT,6BAAC+F,UAAU;IACPjD,SAAS,EAAEA,SAAS;IACpBW,IAAI,EAAC,MAAM;IACX/E,IAAI,EACAkD,cAAc,GACR1B,SAAS,GACT8F,SAAS,mBACLhG,6BAACuD,MAAa,oBAAKyC,SAAS,gBACxBhG,6BAACuD,MAAa,CAAC0C,OAAO,QAAEjD,eAAe,CAAyB,CACpD,CACnB;IAEXlD,OAAO,EAAE8B,cAAc;IACvBsE,cAAc,EAAE9C,KAAK,IAAIA,KAAK,CAAC+C,cAAc,EAAE;IAC/C9F,GAAG,EAAEA;IACP;AAEV;;;;"}
@@ -1,42 +0,0 @@
1
- import React__default from 'react';
2
- import cn from 'clsx';
3
- import { Tooltip } from '../../../../Tooltip/Tooltip.js';
4
- import { useLocalization } from '../../../../Provider/Localization.js';
5
-
6
- function Resizer(props) {
7
- const {
8
- isResizing,
9
- onResize: handleResize
10
- } = props;
11
- const {
12
- texts
13
- } = useLocalization();
14
- // this prevents sort handlers being activated
15
- const handleClick = event => {
16
- event.stopPropagation();
17
- event.preventDefault();
18
- };
19
- const handle = /*#__PURE__*/React__default.createElement("div", {
20
- className: cn('invisible absolute right-0 top-0 -mr-2 flex h-full w-4 cursor-col-resize touch-none select-none justify-center rounded py-0.5 group-hover/column:visible', '[[role="columnheader"]:last-child>&]:!mr-0 [[role="columnheader"]:last-child>&]:w-2', {
21
- '!visible': isResizing
22
- }),
23
- onClick: handleClick,
24
- onMouseDown: handleResize,
25
- onTouchStart: handleResize
26
- }, /*#__PURE__*/React__default.createElement("div", {
27
- className: cn('h-full w-1 rounded', {
28
- '!bg-blue-500': isResizing,
29
- 'bg-grey-500 hover:bg-grey-700': !isResizing
30
- })
31
- }));
32
- if (isResizing) {
33
- return handle;
34
- }
35
- return /*#__PURE__*/React__default.createElement(Tooltip, {
36
- placement: "top",
37
- title: texts.table3.columns.resize.tooltip
38
- }, handle);
39
- }
40
-
41
- export { Resizer };
42
- //# sourceMappingURL=Resizer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Resizer.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/header/Resizer.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { Tooltip } from '../../../../Tooltip/Tooltip';\nimport { useLocalization } from '../../../../Provider/Localization';\n\ntype ResizerProps = {\n isResizing: boolean;\n onResize: (event: unknown) => void;\n};\n\nexport function Resizer(props: ResizerProps) {\n const { isResizing, onResize: handleResize } = props;\n const { texts } = useLocalization();\n\n // this prevents sort handlers being activated\n const handleClick = event => {\n event.stopPropagation();\n event.preventDefault();\n };\n\n const handle = (\n <div\n className={cn(\n 'invisible absolute right-0 top-0 -mr-2 flex h-full w-4 cursor-col-resize touch-none select-none justify-center rounded py-0.5 group-hover/column:visible',\n '[[role=\"columnheader\"]:last-child>&]:!mr-0 [[role=\"columnheader\"]:last-child>&]:w-2',\n {\n '!visible': isResizing,\n }\n )}\n onClick={handleClick}\n onMouseDown={handleResize}\n onTouchStart={handleResize}>\n <div\n className={cn('h-full w-1 rounded', {\n '!bg-blue-500': isResizing,\n 'bg-grey-500 hover:bg-grey-700': !isResizing,\n })}\n />\n </div>\n );\n\n if (isResizing) {\n return handle;\n }\n\n return (\n <Tooltip placement=\"top\" title={texts.table3.columns.resize.tooltip}>\n {handle}\n </Tooltip>\n );\n}\n"],"names":["Resizer","props","isResizing","onResize","handleResize","texts","useLocalization","handleClick","event","stopPropagation","preventDefault","handle","React","className","cn","onClick","onMouseDown","onTouchStart","Tooltip","placement","title","table3","columns","resize","tooltip"],"mappings":";;;;;SAUgBA,OAAOA,CAACC,KAAmB;EACvC,MAAM;IAAEC,UAAU;IAAEC,QAAQ,EAAEC;GAAc,GAAGH,KAAK;EACpD,MAAM;IAAEI;GAAO,GAAGC,eAAe,EAAE;;EAGnC,MAAMC,WAAW,GAAGC,KAAK;IACrBA,KAAK,CAACC,eAAe,EAAE;IACvBD,KAAK,CAACE,cAAc,EAAE;GACzB;EAED,MAAMC,MAAM,gBACRC;IACIC,SAAS,EAAEC,EAAE,CACT,0JAA0J,EAC1J,qFAAqF,EACrF;MACI,UAAU,EAAEZ;KACf,CACJ;IACDa,OAAO,EAAER,WAAW;IACpBS,WAAW,EAAEZ,YAAY;IACzBa,YAAY,EAAEb;kBACdQ;IACIC,SAAS,EAAEC,EAAE,CAAC,oBAAoB,EAAE;MAChC,cAAc,EAAEZ,UAAU;MAC1B,+BAA+B,EAAE,CAACA;KACrC;IACH,CAET;EAED,IAAIA,UAAU,EAAE;IACZ,OAAOS,MAAM;;EAGjB,oBACIC,6BAACM,OAAO;IAACC,SAAS,EAAC,KAAK;IAACC,KAAK,EAAEf,KAAK,CAACgB,MAAM,CAACC,OAAO,CAACC,MAAM,CAACC;KACvDb,MAAM,CACD;AAElB;;;;"}
@@ -1,38 +0,0 @@
1
- import React__default from 'react';
2
- import { Icon } from '../../../../Icon/Icon.js';
3
-
4
- const indicators = {
5
- asc: /*#__PURE__*/React__default.createElement(Icon, {
6
- name: "chevron-up-solid",
7
- className: "pointer-events-none -my-0.5"
8
- }),
9
- desc: /*#__PURE__*/React__default.createElement(Icon, {
10
- name: "chevron-down-solid",
11
- className: "pointer-events-none -my-0.5"
12
- })
13
- };
14
- function SortIndicator(props) {
15
- var _indicators$props$dir;
16
- return (_indicators$props$dir = indicators[props.direction]) !== null && _indicators$props$dir !== void 0 ? _indicators$props$dir : null;
17
- }
18
- const ariaSort = {
19
- asc: 'ascending',
20
- desc: 'descending'
21
- };
22
- function getSortAttributes(toggleSorting, sortDirection) {
23
- var _ariaSort$sortDirecti;
24
- const handleClick = event => {
25
- if (event.isDefaultPrevented() || !event.currentTarget.contains(event.target)) {
26
- return;
27
- }
28
- event.preventDefault();
29
- toggleSorting(event);
30
- };
31
- return {
32
- 'aria-sort': (_ariaSort$sortDirecti = ariaSort[sortDirection]) !== null && _ariaSort$sortDirecti !== void 0 ? _ariaSort$sortDirecti : 'none',
33
- onClick: handleClick
34
- };
35
- }
36
-
37
- export { SortIndicator, getSortAttributes };
38
- //# sourceMappingURL=SortIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SortIndicator.js","sources":["../../../../../../../../../../src/components/Table3/components/columns/header/SortIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../../../../Icon/Icon';\nimport { Table3SortDirection } from '../../../types';\n\ntype SortIndicatorProps = {\n direction: false | Table3SortDirection;\n};\n\nconst indicators = {\n asc: <Icon name=\"chevron-up-solid\" className=\"pointer-events-none -my-0.5\" />,\n desc: <Icon name=\"chevron-down-solid\" className=\"pointer-events-none -my-0.5\" />,\n};\n\nexport function SortIndicator(props: SortIndicatorProps) {\n return indicators[props.direction as string] ?? null;\n}\n\nconst ariaSort = {\n asc: 'ascending',\n desc: 'descending',\n};\n\nexport const getAriaSort = direction => ariaSort[direction] ?? 'none';\n\nexport function getSortAttributes(toggleSorting: (event: unknown) => void, sortDirection: false | Table3SortDirection) {\n const handleClick = (event: React.MouseEvent) => {\n if (event.isDefaultPrevented() || !event.currentTarget.contains(event.target as any)) {\n return;\n }\n\n event.preventDefault();\n toggleSorting(event);\n };\n\n return {\n 'aria-sort': ariaSort[sortDirection as any] ?? 'none',\n onClick: handleClick,\n };\n}\n"],"names":["indicators","asc","React","Icon","name","className","desc","SortIndicator","props","_indicators$props$dir","direction","ariaSort","getSortAttributes","toggleSorting","sortDirection","handleClick","event","isDefaultPrevented","currentTarget","contains","target","preventDefault","_ariaSort$sortDirecti","onClick"],"mappings":";;;AAQA,MAAMA,UAAU,GAAG;EACfC,GAAG,eAAEC,6BAACC,IAAI;IAACC,IAAI,EAAC,kBAAkB;IAACC,SAAS,EAAC;IAAgC;EAC7EC,IAAI,eAAEJ,6BAACC,IAAI;IAACC,IAAI,EAAC,oBAAoB;IAACC,SAAS,EAAC;;CACnD;SAEeE,aAAaA,CAACC,KAAyB;;EACnD,QAAAC,qBAAA,GAAOT,UAAU,CAACQ,KAAK,CAACE,SAAmB,CAAC,cAAAD,qBAAA,cAAAA,qBAAA,GAAI,IAAI;AACxD;AAEA,MAAME,QAAQ,GAAG;EACbV,GAAG,EAAE,WAAW;EAChBK,IAAI,EAAE;CACT;SAIeM,iBAAiBA,CAACC,aAAuC,EAAEC,aAA0C;;EACjH,MAAMC,WAAW,GAAIC,KAAuB;IACxC,IAAIA,KAAK,CAACC,kBAAkB,EAAE,IAAI,CAACD,KAAK,CAACE,aAAa,CAACC,QAAQ,CAACH,KAAK,CAACI,MAAa,CAAC,EAAE;MAClF;;IAGJJ,KAAK,CAACK,cAAc,EAAE;IACtBR,aAAa,CAACG,KAAK,CAAC;GACvB;EAED,OAAO;IACH,WAAW,GAAAM,qBAAA,GAAEX,QAAQ,CAACG,aAAoB,CAAC,cAAAQ,qBAAA,cAAAA,qBAAA,GAAI,MAAM;IACrDC,OAAO,EAAER;GACZ;AACL;;;;"}