@economic/taco 2.25.1 → 2.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1000) hide show
  1. package/dist/esm/index.css +216 -515
  2. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
  3. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  4. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -6
  5. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  6. package/dist/esm/packages/taco/src/components/Provider/Localization.js +48 -59
  7. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  8. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
  9. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  10. package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
  11. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  12. package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
  13. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  14. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  15. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  16. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  17. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  18. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  19. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  20. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  21. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  22. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  23. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  24. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  25. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  26. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  27. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  28. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  29. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  30. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  31. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  32. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  33. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  34. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  35. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  36. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  37. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  38. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  39. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  40. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  41. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  42. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  43. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  44. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  46. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  47. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  48. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  49. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  50. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  51. package/dist/esm/packages/taco/src/index.js +1 -1
  52. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  53. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  56. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/Body.js +21 -12
  57. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  58. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  59. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  60. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  62. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
  63. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  64. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
  65. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  66. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  68. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
  69. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  71. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  72. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
  73. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  74. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
  75. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  77. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +7 -7
  78. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  79. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  81. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Goto.js +5 -5
  82. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  83. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
  84. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  85. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
  86. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  87. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
  88. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  89. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
  90. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  91. package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  94. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  96. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
  97. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +54 -0
  99. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  100. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
  101. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  102. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
  103. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  104. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
  105. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  106. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
  107. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  108. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
  109. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  110. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
  111. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  113. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
  114. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  116. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  117. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +26 -7
  118. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  119. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
  120. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  121. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
  122. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  123. package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
  124. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  125. package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
  126. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  127. package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
  128. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  129. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
  130. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  131. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  132. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  134. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
  135. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  136. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  137. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  138. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  139. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  140. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +5 -15
  141. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  142. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  143. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  144. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  145. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  146. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +1 -3
  147. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  148. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
  149. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  150. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +58 -24
  151. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  152. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
  153. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  154. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  155. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  156. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  157. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  158. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  159. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  160. package/dist/index.css +216 -515
  161. package/dist/{components → packages/taco/src/components}/Provider/Localization.d.ts +47 -55
  162. package/dist/packages/taco/src/components/Report/Report.d.ts +10 -0
  163. package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +19 -0
  164. package/dist/packages/taco/src/components/Report/useReport.d.ts +23 -0
  165. package/dist/{components → packages/taco/src/components}/Select2/hooks/useChildren.d.ts +2 -1
  166. package/dist/{components → packages/taco/src/components}/Table/Table.d.ts +2 -2
  167. package/dist/packages/taco/src/components/Table3/Table3.d.ts +20 -0
  168. package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +35 -0
  169. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  170. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  171. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  172. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  173. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  174. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  175. package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  176. package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +12 -0
  177. package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  178. package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +3 -0
  179. package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  180. package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +46 -0
  181. package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  182. package/dist/packages/taco/src/components/Table3/types.d.ts +56 -0
  183. package/dist/packages/taco/src/components/Table3/useTable3.d.ts +30 -0
  184. package/dist/packages/taco/src/components/Table3/util/editing.d.ts +2 -0
  185. package/dist/{index.d.ts → packages/taco/src/index.d.ts} +1 -0
  186. package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
  187. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/Body.d.ts +1 -1
  188. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
  189. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  190. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  191. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
  192. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
  193. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
  194. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  195. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  196. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  197. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/Header.d.ts +7 -2
  198. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Goto.d.ts +1 -1
  199. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
  200. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
  201. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
  202. package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +4 -0
  203. package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  204. package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  205. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
  206. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  207. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
  208. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
  209. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  210. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
  211. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
  212. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
  213. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
  214. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +3 -1
  215. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  216. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
  217. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  218. package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
  219. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
  220. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
  221. package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +24 -0
  222. package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +25 -0
  223. package/dist/{primitives → packages/taco/src/primitives}/Table/types.d.ts +168 -3
  224. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
  225. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  226. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  227. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/types.d.ts +1 -0
  228. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/useTableManager.d.ts +9 -3
  229. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/settings.d.ts +1 -1
  230. package/dist/{utils → packages/taco/src/utils}/dom.d.ts +2 -1
  231. package/dist/taco.cjs.development.js +7134 -11743
  232. package/dist/taco.cjs.development.js.map +1 -1
  233. package/dist/taco.cjs.production.min.js +1 -1
  234. package/dist/taco.cjs.production.min.js.map +1 -1
  235. package/package.json +3 -2
  236. package/types.json +21186 -51499
  237. package/dist/components/Report/Report.d.ts +0 -23
  238. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  239. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  240. package/dist/components/Report/components/Header/util.d.ts +0 -4
  241. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  242. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  243. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  244. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  245. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  246. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  247. package/dist/components/Report/styles/util.d.ts +0 -3
  248. package/dist/components/Report/types.d.ts +0 -20
  249. package/dist/components/Report/useReport.d.ts +0 -9
  250. package/dist/components/Table3/Table3.d.ts +0 -19
  251. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
  252. package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
  253. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
  254. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
  255. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
  256. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
  257. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
  258. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
  259. package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
  260. package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
  261. package/dist/components/Table3/components/columns/header/Goto.d.ts +0 -6
  262. package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
  263. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  264. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  265. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  266. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  267. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  268. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  269. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  270. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  271. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  272. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  273. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  274. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  275. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  276. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  277. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  278. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  279. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  280. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  281. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  282. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  283. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  284. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  285. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  286. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  287. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  288. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  289. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  290. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  291. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  292. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  293. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  294. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  295. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  296. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  297. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  298. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  299. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  300. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  301. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  302. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  303. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  304. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  305. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  306. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  307. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  308. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  309. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  310. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  311. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  312. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  313. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  314. package/dist/components/Table3/strategies/index.d.ts +0 -4
  315. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  316. package/dist/components/Table3/types.d.ts +0 -379
  317. package/dist/components/Table3/util/columns.d.ts +0 -8
  318. package/dist/components/Table3/util/editing.d.ts +0 -10
  319. package/dist/components/Table3/util/filtering.d.ts +0 -3
  320. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  321. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  322. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  323. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  324. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  325. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  326. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  327. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  328. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  329. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  330. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  331. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  332. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  333. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  334. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  335. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  336. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  337. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  338. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  339. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  340. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  341. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  342. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  343. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  344. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  345. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  346. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  347. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  348. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  349. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  350. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  351. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  352. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  353. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  354. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  355. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  356. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  357. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  358. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  359. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  360. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  361. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  362. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  363. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  364. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  365. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  366. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  367. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  368. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  369. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  370. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  371. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  372. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  373. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  374. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  375. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  376. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  377. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  378. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  379. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  380. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  381. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  382. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  383. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  384. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  385. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  386. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  387. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +0 -28
  388. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  389. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  390. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  391. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  392. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  393. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  394. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  395. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  396. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  397. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  398. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  399. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  400. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  401. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  402. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  403. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  404. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  405. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  406. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  407. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  408. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  409. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  410. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  411. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  412. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  413. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  414. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  415. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  416. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  417. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  418. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  419. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  420. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  421. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  422. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  423. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  424. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  425. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  426. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  427. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  428. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  429. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  430. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  431. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  432. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  433. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  434. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  435. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  436. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  437. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  438. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  439. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  440. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  441. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  442. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  443. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  444. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  445. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  446. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  447. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  448. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  449. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  450. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  451. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  452. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  453. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  454. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  455. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  456. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  457. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  458. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  459. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  460. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  461. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  462. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  463. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  464. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  465. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  466. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  467. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  468. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  469. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  470. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  471. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  472. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  473. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  474. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  475. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  476. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  477. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  478. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  479. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  480. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  481. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  482. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  483. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  484. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  485. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  486. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  487. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  488. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  489. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  490. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  491. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  492. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  493. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  494. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  495. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  496. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  497. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  498. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  499. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  500. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  501. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  502. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  503. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  504. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  505. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  506. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  507. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +0 -1
  508. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  509. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  510. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  511. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  512. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
  513. /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
  514. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  515. /package/dist/{components → packages/taco/src/components}/Accordion/Accordion.d.ts +0 -0
  516. /package/dist/{components → packages/taco/src/components}/Alert/Alert.d.ts +0 -0
  517. /package/dist/{components → packages/taco/src/components}/AlertDialog/AlertDialog.d.ts +0 -0
  518. /package/dist/{components → packages/taco/src/components}/AlertDialog/Context.d.ts +0 -0
  519. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Content.d.ts +0 -0
  520. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Footer.d.ts +0 -0
  521. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Trigger.d.ts +0 -0
  522. /package/dist/{components → packages/taco/src/components}/Backdrop/Backdrop.d.ts +0 -0
  523. /package/dist/{components → packages/taco/src/components}/Badge/Badge.d.ts +0 -0
  524. /package/dist/{components → packages/taco/src/components}/BadgeIcon/BadgeIcon.d.ts +0 -0
  525. /package/dist/{components → packages/taco/src/components}/Banner/Banner.d.ts +0 -0
  526. /package/dist/{components → packages/taco/src/components}/Banner/util.d.ts +0 -0
  527. /package/dist/{components → packages/taco/src/components}/Button/Button.d.ts +0 -0
  528. /package/dist/{components → packages/taco/src/components}/Button/util.d.ts +0 -0
  529. /package/dist/{components → packages/taco/src/components}/Calendar/Calendar.d.ts +0 -0
  530. /package/dist/{components → packages/taco/src/components}/Card/Card.d.ts +0 -0
  531. /package/dist/{components → packages/taco/src/components}/Checkbox/Checkbox.d.ts +0 -0
  532. /package/dist/{components → packages/taco/src/components}/Combobox/Combobox.d.ts +0 -0
  533. /package/dist/{components → packages/taco/src/components}/Combobox/useCombobox.d.ts +0 -0
  534. /package/dist/{components → packages/taco/src/components}/Datepicker/Datepicker.d.ts +0 -0
  535. /package/dist/{components → packages/taco/src/components}/Datepicker/useDatepicker.d.ts +0 -0
  536. /package/dist/{components → packages/taco/src/components}/Dialog/Context.d.ts +0 -0
  537. /package/dist/{components → packages/taco/src/components}/Dialog/Dialog.d.ts +0 -0
  538. /package/dist/{components → packages/taco/src/components}/Dialog/components/Content.d.ts +0 -0
  539. /package/dist/{components → packages/taco/src/components}/Dialog/components/DialogDrawer.d.ts +0 -0
  540. /package/dist/{components → packages/taco/src/components}/Dialog/components/Extra.d.ts +0 -0
  541. /package/dist/{components → packages/taco/src/components}/Dialog/components/Trigger.d.ts +0 -0
  542. /package/dist/{components → packages/taco/src/components}/Dialog/types.d.ts +0 -0
  543. /package/dist/{components → packages/taco/src/components}/Dialog/util.d.ts +0 -0
  544. /package/dist/{components → packages/taco/src/components}/Drawer/Context.d.ts +0 -0
  545. /package/dist/{components → packages/taco/src/components}/Drawer/Drawer.d.ts +0 -0
  546. /package/dist/{components → packages/taco/src/components}/Drawer/components/Content.d.ts +0 -0
  547. /package/dist/{components → packages/taco/src/components}/Drawer/components/Trigger.d.ts +0 -0
  548. /package/dist/{components → packages/taco/src/components}/Drawer/images.d.ts +0 -0
  549. /package/dist/{components → packages/taco/src/components}/Drawer/types.d.ts +0 -0
  550. /package/dist/{components → packages/taco/src/components}/Drawer/util.d.ts +0 -0
  551. /package/dist/{components → packages/taco/src/components}/Field/Field.d.ts +0 -0
  552. /package/dist/{components → packages/taco/src/components}/Form/Form.d.ts +0 -0
  553. /package/dist/{components → packages/taco/src/components}/Group/Group.d.ts +0 -0
  554. /package/dist/{components → packages/taco/src/components}/Hanger/Hanger.d.ts +0 -0
  555. /package/dist/{components → packages/taco/src/components}/Header/Header.d.ts +0 -0
  556. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Avatar.d.ts +0 -0
  557. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Badge.d.ts +0 -0
  558. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Display.d.ts +0 -0
  559. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Item.d.ts +0 -0
  560. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/types.d.ts +0 -0
  561. /package/dist/{components → packages/taco/src/components}/Header/components/AgreementSelector.d.ts +0 -0
  562. /package/dist/{components → packages/taco/src/components}/Header/components/Button.d.ts +0 -0
  563. /package/dist/{components → packages/taco/src/components}/Header/components/Link.d.ts +0 -0
  564. /package/dist/{components → packages/taco/src/components}/Header/components/Logo.d.ts +0 -0
  565. /package/dist/{components → packages/taco/src/components}/Header/components/MenuButton.d.ts +0 -0
  566. /package/dist/{components → packages/taco/src/components}/Header/components/PrimaryNavigation.d.ts +0 -0
  567. /package/dist/{components → packages/taco/src/components}/Header/components/SecondaryNavigation.d.ts +0 -0
  568. /package/dist/{components → packages/taco/src/components}/HoverCard/HoverCard.d.ts +0 -0
  569. /package/dist/{components → packages/taco/src/components}/HoverCard/Primitives.d.ts +0 -0
  570. /package/dist/{components → packages/taco/src/components}/Icon/Icon.d.ts +0 -0
  571. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountPreview.d.ts +0 -0
  572. /package/dist/{components → packages/taco/src/components}/Icon/components/Accounting.d.ts +0 -0
  573. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYear.d.ts +0 -0
  574. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYearCancel.d.ts +0 -0
  575. /package/dist/{components → packages/taco/src/components}/Icon/components/AiChatSolid.d.ts +0 -0
  576. /package/dist/{components → packages/taco/src/components}/Icon/components/AiStars.d.ts +0 -0
  577. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowBottom.d.ts +0 -0
  578. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowDown.d.ts +0 -0
  579. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowEnd.d.ts +0 -0
  580. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowLeft.d.ts +0 -0
  581. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowRight.d.ts +0 -0
  582. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowStart.d.ts +0 -0
  583. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowTop.d.ts +0 -0
  584. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowUp.d.ts +0 -0
  585. /package/dist/{components → packages/taco/src/components}/Icon/components/Attach.d.ts +0 -0
  586. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachAuto.d.ts +0 -0
  587. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachCancel.d.ts +0 -0
  588. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachWarning.d.ts +0 -0
  589. /package/dist/{components → packages/taco/src/components}/Icon/components/Autotext.d.ts +0 -0
  590. /package/dist/{components → packages/taco/src/components}/Icon/components/AutotextInsert.d.ts +0 -0
  591. /package/dist/{components → packages/taco/src/components}/Icon/components/Basic.d.ts +0 -0
  592. /package/dist/{components → packages/taco/src/components}/Icon/components/BasicTabs.d.ts +0 -0
  593. /package/dist/{components → packages/taco/src/components}/Icon/components/BellSolid.d.ts +0 -0
  594. /package/dist/{components → packages/taco/src/components}/Icon/components/Book.d.ts +0 -0
  595. /package/dist/{components → packages/taco/src/components}/Icon/components/Booking.d.ts +0 -0
  596. /package/dist/{components → packages/taco/src/components}/Icon/components/Budget.d.ts +0 -0
  597. /package/dist/{components → packages/taco/src/components}/Icon/components/Calendar.d.ts +0 -0
  598. /package/dist/{components → packages/taco/src/components}/Icon/components/CashAccount.d.ts +0 -0
  599. /package/dist/{components → packages/taco/src/components}/Icon/components/CashReports.d.ts +0 -0
  600. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartArea.d.ts +0 -0
  601. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartBar.d.ts +0 -0
  602. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartLine.d.ts +0 -0
  603. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartPie.d.ts +0 -0
  604. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartTable.d.ts +0 -0
  605. /package/dist/{components → packages/taco/src/components}/Icon/components/Chat.d.ts +0 -0
  606. /package/dist/{components → packages/taco/src/components}/Icon/components/ChatSolid.d.ts +0 -0
  607. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDown.d.ts +0 -0
  608. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownDouble.d.ts +0 -0
  609. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownSolid.d.ts +0 -0
  610. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeft.d.ts +0 -0
  611. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
  612. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
  613. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRight.d.ts +0 -0
  614. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightDouble.d.ts +0 -0
  615. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightSolid.d.ts +0 -0
  616. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUp.d.ts +0 -0
  617. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpDouble.d.ts +0 -0
  618. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpSolid.d.ts +0 -0
  619. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleClose.d.ts +0 -0
  620. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleInformation.d.ts +0 -0
  621. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleMinus.d.ts +0 -0
  622. /package/dist/{components → packages/taco/src/components}/Icon/components/CirclePlus.d.ts +0 -0
  623. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleQuestionmark.d.ts +0 -0
  624. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleTick.d.ts +0 -0
  625. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleWarning.d.ts +0 -0
  626. /package/dist/{components → packages/taco/src/components}/Icon/components/Clamp.d.ts +0 -0
  627. /package/dist/{components → packages/taco/src/components}/Icon/components/ClampOpen.d.ts +0 -0
  628. /package/dist/{components → packages/taco/src/components}/Icon/components/Close.d.ts +0 -0
  629. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnFreeze.d.ts +0 -0
  630. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
  631. /package/dist/{components → packages/taco/src/components}/Icon/components/Columns.d.ts +0 -0
  632. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionEnable.d.ts +0 -0
  633. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionRevoke.d.ts +0 -0
  634. /package/dist/{components → packages/taco/src/components}/Icon/components/Contacts.d.ts +0 -0
  635. /package/dist/{components → packages/taco/src/components}/Icon/components/Copy.d.ts +0 -0
  636. /package/dist/{components → packages/taco/src/components}/Icon/components/Courses.d.ts +0 -0
  637. /package/dist/{components → packages/taco/src/components}/Icon/components/Credit.d.ts +0 -0
  638. /package/dist/{components → packages/taco/src/components}/Icon/components/Delete.d.ts +0 -0
  639. /package/dist/{components → packages/taco/src/components}/Icon/components/DeletePermanently.d.ts +0 -0
  640. /package/dist/{components → packages/taco/src/components}/Icon/components/Depecriate.d.ts +0 -0
  641. /package/dist/{components → packages/taco/src/components}/Icon/components/Developer.d.ts +0 -0
  642. /package/dist/{components → packages/taco/src/components}/Icon/components/DistributionTemplate.d.ts +0 -0
  643. /package/dist/{components → packages/taco/src/components}/Icon/components/Document.d.ts +0 -0
  644. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentApprove.d.ts +0 -0
  645. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
  646. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCut.d.ts +0 -0
  647. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentError.d.ts +0 -0
  648. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
  649. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMerge.d.ts +0 -0
  650. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMove.d.ts +0 -0
  651. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentPreview.d.ts +0 -0
  652. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentReceived.d.ts +0 -0
  653. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
  654. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentSplit.d.ts +0 -0
  655. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentTime.d.ts +0 -0
  656. /package/dist/{components → packages/taco/src/components}/Icon/components/Download.d.ts +0 -0
  657. /package/dist/{components → packages/taco/src/components}/Icon/components/Drag.d.ts +0 -0
  658. /package/dist/{components → packages/taco/src/components}/Icon/components/ECopedia.d.ts +0 -0
  659. /package/dist/{components → packages/taco/src/components}/Icon/components/ESignature.d.ts +0 -0
  660. /package/dist/{components → packages/taco/src/components}/Icon/components/Edit.d.ts +0 -0
  661. /package/dist/{components → packages/taco/src/components}/Icon/components/EditSimple.d.ts +0 -0
  662. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
  663. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisVertical.d.ts +0 -0
  664. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOnAccount.d.ts +0 -0
  665. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOpen.d.ts +0 -0
  666. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesWarning.d.ts +0 -0
  667. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
  668. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
  669. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
  670. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
  671. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
  672. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
  673. /package/dist/{components → packages/taco/src/components}/Icon/components/Envelope.d.ts +0 -0
  674. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeApproved.d.ts +0 -0
  675. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeSolid.d.ts +0 -0
  676. /package/dist/{components → packages/taco/src/components}/Icon/components/ExpandView.d.ts +0 -0
  677. /package/dist/{components → packages/taco/src/components}/Icon/components/Expenses.d.ts +0 -0
  678. /package/dist/{components → packages/taco/src/components}/Icon/components/Export.d.ts +0 -0
  679. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToExcel.d.ts +0 -0
  680. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToPdf.d.ts +0 -0
  681. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOff.d.ts +0 -0
  682. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOn.d.ts +0 -0
  683. /package/dist/{components → packages/taco/src/components}/Icon/components/Filter.d.ts +0 -0
  684. /package/dist/{components → packages/taco/src/components}/Icon/components/FilterSolid.d.ts +0 -0
  685. /package/dist/{components → packages/taco/src/components}/Icon/components/FontSize.d.ts +0 -0
  686. /package/dist/{components → packages/taco/src/components}/Icon/components/GraphSolid.d.ts +0 -0
  687. /package/dist/{components → packages/taco/src/components}/Icon/components/Hash.d.ts +0 -0
  688. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightExtraTall.d.ts +0 -0
  689. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightMedium.d.ts +0 -0
  690. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightShort.d.ts +0 -0
  691. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightTall.d.ts +0 -0
  692. /package/dist/{components → packages/taco/src/components}/Icon/components/Home.d.ts +0 -0
  693. /package/dist/{components → packages/taco/src/components}/Icon/components/Images.d.ts +0 -0
  694. /package/dist/{components → packages/taco/src/components}/Icon/components/Import.d.ts +0 -0
  695. /package/dist/{components → packages/taco/src/components}/Icon/components/Inbox.d.ts +0 -0
  696. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxEinvoicing.d.ts +0 -0
  697. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxScanning.d.ts +0 -0
  698. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxSmart.d.ts +0 -0
  699. /package/dist/{components → packages/taco/src/components}/Icon/components/Info.d.ts +0 -0
  700. /package/dist/{components → packages/taco/src/components}/Icon/components/Inventory.d.ts +0 -0
  701. /package/dist/{components → packages/taco/src/components}/Icon/components/InventoryMatrix.d.ts +0 -0
  702. /package/dist/{components → packages/taco/src/components}/Icon/components/JournalPro.d.ts +0 -0
  703. /package/dist/{components → packages/taco/src/components}/Icon/components/Layout.d.ts +0 -0
  704. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutBoth.d.ts +0 -0
  705. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutFirst.d.ts +0 -0
  706. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutLast.d.ts +0 -0
  707. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutNone.d.ts +0 -0
  708. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCard.d.ts +0 -0
  709. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
  710. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
  711. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
  712. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
  713. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
  714. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
  715. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
  716. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
  717. /package/dist/{components → packages/taco/src/components}/Icon/components/Lightbulb.d.ts +0 -0
  718. /package/dist/{components → packages/taco/src/components}/Icon/components/Line.d.ts +0 -0
  719. /package/dist/{components → packages/taco/src/components}/Icon/components/List.d.ts +0 -0
  720. /package/dist/{components → packages/taco/src/components}/Icon/components/ListBulleted.d.ts +0 -0
  721. /package/dist/{components → packages/taco/src/components}/Icon/components/ListSearch.d.ts +0 -0
  722. /package/dist/{components → packages/taco/src/components}/Icon/components/Location.d.ts +0 -0
  723. /package/dist/{components → packages/taco/src/components}/Icon/components/Lock.d.ts +0 -0
  724. /package/dist/{components → packages/taco/src/components}/Icon/components/LockOpen.d.ts +0 -0
  725. /package/dist/{components → packages/taco/src/components}/Icon/components/Log.d.ts +0 -0
  726. /package/dist/{components → packages/taco/src/components}/Icon/components/LogOut.d.ts +0 -0
  727. /package/dist/{components → packages/taco/src/components}/Icon/components/Market.d.ts +0 -0
  728. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchAmount.d.ts +0 -0
  729. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchEntries.d.ts +0 -0
  730. /package/dist/{components → packages/taco/src/components}/Icon/components/Menu.d.ts +0 -0
  731. /package/dist/{components → packages/taco/src/components}/Icon/components/Mileage.d.ts +0 -0
  732. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalResize.d.ts +0 -0
  733. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalShrink.d.ts +0 -0
  734. /package/dist/{components → packages/taco/src/components}/Icon/components/More.d.ts +0 -0
  735. /package/dist/{components → packages/taco/src/components}/Icon/components/MoreSolid.d.ts +0 -0
  736. /package/dist/{components → packages/taco/src/components}/Icon/components/Move.d.ts +0 -0
  737. /package/dist/{components → packages/taco/src/components}/Icon/components/NavigationList.d.ts +0 -0
  738. /package/dist/{components → packages/taco/src/components}/Icon/components/Note.d.ts +0 -0
  739. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteFollowUp.d.ts +0 -0
  740. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteRead.d.ts +0 -0
  741. /package/dist/{components → packages/taco/src/components}/Icon/components/Numbers.d.ts +0 -0
  742. /package/dist/{components → packages/taco/src/components}/Icon/components/PartnerApi.d.ts +0 -0
  743. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentPaid.d.ts +0 -0
  744. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentUnpaid.d.ts +0 -0
  745. /package/dist/{components → packages/taco/src/components}/Icon/components/Period.d.ts +0 -0
  746. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonChange.d.ts +0 -0
  747. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonMinus.d.ts +0 -0
  748. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonPlus.d.ts +0 -0
  749. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonTick.d.ts +0 -0
  750. /package/dist/{components → packages/taco/src/components}/Icon/components/PhoneSolid.d.ts +0 -0
  751. /package/dist/{components → packages/taco/src/components}/Icon/components/Play.d.ts +0 -0
  752. /package/dist/{components → packages/taco/src/components}/Icon/components/PlusMinus.d.ts +0 -0
  753. /package/dist/{components → packages/taco/src/components}/Icon/components/Print.d.ts +0 -0
  754. /package/dist/{components → packages/taco/src/components}/Icon/components/ProcessPayment.d.ts +0 -0
  755. /package/dist/{components → packages/taco/src/components}/Icon/components/ProductLedgerCard.d.ts +0 -0
  756. /package/dist/{components → packages/taco/src/components}/Icon/components/Profile.d.ts +0 -0
  757. /package/dist/{components → packages/taco/src/components}/Icon/components/ProjectCards.d.ts +0 -0
  758. /package/dist/{components → packages/taco/src/components}/Icon/components/Projects.d.ts +0 -0
  759. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMark.d.ts +0 -0
  760. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMarkBold.d.ts +0 -0
  761. /package/dist/{components → packages/taco/src/components}/Icon/components/Quicklinks.d.ts +0 -0
  762. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingBankruptcy.d.ts +0 -0
  763. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
  764. /package/dist/{components → packages/taco/src/components}/Icon/components/Reconciled.d.ts +0 -0
  765. /package/dist/{components → packages/taco/src/components}/Icon/components/Refresh.d.ts +0 -0
  766. /package/dist/{components → packages/taco/src/components}/Icon/components/Report.d.ts +0 -0
  767. /package/dist/{components → packages/taco/src/components}/Icon/components/ReportSolid.d.ts +0 -0
  768. /package/dist/{components → packages/taco/src/components}/Icon/components/Restore.d.ts +0 -0
  769. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateLeft.d.ts +0 -0
  770. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateRight.d.ts +0 -0
  771. /package/dist/{components → packages/taco/src/components}/Icon/components/Sales.d.ts +0 -0
  772. /package/dist/{components → packages/taco/src/components}/Icon/components/Search.d.ts +0 -0
  773. /package/dist/{components → packages/taco/src/components}/Icon/components/SearchBold.d.ts +0 -0
  774. /package/dist/{components → packages/taco/src/components}/Icon/components/Secure.d.ts +0 -0
  775. /package/dist/{components → packages/taco/src/components}/Icon/components/SecureTick.d.ts +0 -0
  776. /package/dist/{components → packages/taco/src/components}/Icon/components/Settings.d.ts +0 -0
  777. /package/dist/{components → packages/taco/src/components}/Icon/components/SettingsSolid.d.ts +0 -0
  778. /package/dist/{components → packages/taco/src/components}/Icon/components/Shortcuts.d.ts +0 -0
  779. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowAll.d.ts +0 -0
  780. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowLess.d.ts +0 -0
  781. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowMore.d.ts +0 -0
  782. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowTemplate.d.ts +0 -0
  783. /package/dist/{components → packages/taco/src/components}/Icon/components/Sliders.d.ts +0 -0
  784. /package/dist/{components → packages/taco/src/components}/Icon/components/Smartpay.d.ts +0 -0
  785. /package/dist/{components → packages/taco/src/components}/Icon/components/SortBy.d.ts +0 -0
  786. /package/dist/{components → packages/taco/src/components}/Icon/components/Star.d.ts +0 -0
  787. /package/dist/{components → packages/taco/src/components}/Icon/components/StarSolid.d.ts +0 -0
  788. /package/dist/{components → packages/taco/src/components}/Icon/components/Subscriptions.d.ts +0 -0
  789. /package/dist/{components → packages/taco/src/components}/Icon/components/SystemEntries.d.ts +0 -0
  790. /package/dist/{components → packages/taco/src/components}/Icon/components/Tag.d.ts +0 -0
  791. /package/dist/{components → packages/taco/src/components}/Icon/components/TemplateOverride.d.ts +0 -0
  792. /package/dist/{components → packages/taco/src/components}/Icon/components/Templates.d.ts +0 -0
  793. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbBoth.d.ts +0 -0
  794. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDown.d.ts +0 -0
  795. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDownSolid.d.ts +0 -0
  796. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUp.d.ts +0 -0
  797. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUpSolid.d.ts +0 -0
  798. /package/dist/{components → packages/taco/src/components}/Icon/components/Tick.d.ts +0 -0
  799. /package/dist/{components → packages/taco/src/components}/Icon/components/TickBold.d.ts +0 -0
  800. /package/dist/{components → packages/taco/src/components}/Icon/components/Time.d.ts +0 -0
  801. /package/dist/{components → packages/taco/src/components}/Icon/components/Transfer.d.ts +0 -0
  802. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferCancel.d.ts +0 -0
  803. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferLocked.d.ts +0 -0
  804. /package/dist/{components → packages/taco/src/components}/Icon/components/Undo.d.ts +0 -0
  805. /package/dist/{components → packages/taco/src/components}/Icon/components/Undock.d.ts +0 -0
  806. /package/dist/{components → packages/taco/src/components}/Icon/components/Unreconciled.d.ts +0 -0
  807. /package/dist/{components → packages/taco/src/components}/Icon/components/Warning.d.ts +0 -0
  808. /package/dist/{components → packages/taco/src/components}/Icon/components/Webshop.d.ts +0 -0
  809. /package/dist/{components → packages/taco/src/components}/Icon/components/Website.d.ts +0 -0
  810. /package/dist/{components → packages/taco/src/components}/Icon/components/Workflow.d.ts +0 -0
  811. /package/dist/{components → packages/taco/src/components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
  812. /package/dist/{components → packages/taco/src/components}/Icon/components/Zoom.d.ts +0 -0
  813. /package/dist/{components → packages/taco/src/components}/Icon/components/index.d.ts +0 -0
  814. /package/dist/{components → packages/taco/src/components}/IconButton/IconButton.d.ts +0 -0
  815. /package/dist/{components → packages/taco/src/components}/Input/Input.d.ts +0 -0
  816. /package/dist/{components → packages/taco/src/components}/Input/util.d.ts +0 -0
  817. /package/dist/{components → packages/taco/src/components}/Layout/Layout.d.ts +0 -0
  818. /package/dist/{components → packages/taco/src/components}/Layout/components/Content.d.ts +0 -0
  819. /package/dist/{components → packages/taco/src/components}/Layout/components/Context.d.ts +0 -0
  820. /package/dist/{components → packages/taco/src/components}/Layout/components/Page.d.ts +0 -0
  821. /package/dist/{components → packages/taco/src/components}/Layout/components/Sidebar.d.ts +0 -0
  822. /package/dist/{components → packages/taco/src/components}/Layout/components/Top.d.ts +0 -0
  823. /package/dist/{components → packages/taco/src/components}/Listbox/Listbox.d.ts +0 -0
  824. /package/dist/{components → packages/taco/src/components}/Listbox/ScrollableList.d.ts +0 -0
  825. /package/dist/{components → packages/taco/src/components}/Listbox/useListbox.d.ts +0 -0
  826. /package/dist/{components → packages/taco/src/components}/Listbox/useMultiListbox.d.ts +0 -0
  827. /package/dist/{components → packages/taco/src/components}/Listbox/useTypeahead.d.ts +0 -0
  828. /package/dist/{components → packages/taco/src/components}/Listbox/util.d.ts +0 -0
  829. /package/dist/{components → packages/taco/src/components}/Menu/Context.d.ts +0 -0
  830. /package/dist/{components → packages/taco/src/components}/Menu/Menu.d.ts +0 -0
  831. /package/dist/{components → packages/taco/src/components}/Menu/components/Checkbox.d.ts +0 -0
  832. /package/dist/{components → packages/taco/src/components}/Menu/components/Content.d.ts +0 -0
  833. /package/dist/{components → packages/taco/src/components}/Menu/components/Header.d.ts +0 -0
  834. /package/dist/{components → packages/taco/src/components}/Menu/components/Item.d.ts +0 -0
  835. /package/dist/{components → packages/taco/src/components}/Menu/components/Link.d.ts +0 -0
  836. /package/dist/{components → packages/taco/src/components}/Menu/components/RadioGroup.d.ts +0 -0
  837. /package/dist/{components → packages/taco/src/components}/Menu/components/Separator.d.ts +0 -0
  838. /package/dist/{components → packages/taco/src/components}/Menu/components/SubMenu.d.ts +0 -0
  839. /package/dist/{components → packages/taco/src/components}/Menu/components/Trigger.d.ts +0 -0
  840. /package/dist/{components → packages/taco/src/components}/ModeSwitch/ModeSwitch.d.ts +0 -0
  841. /package/dist/{components → packages/taco/src/components}/Navigation/Navigation.d.ts +0 -0
  842. /package/dist/{components → packages/taco/src/components}/Navigation2/Navigation2.d.ts +0 -0
  843. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Content.d.ts +0 -0
  844. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Group.d.ts +0 -0
  845. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Link.d.ts +0 -0
  846. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Section.d.ts +0 -0
  847. /package/dist/{components → packages/taco/src/components}/Navigation2/components/util.d.ts +0 -0
  848. /package/dist/{components → packages/taco/src/components}/OverflowGroup/OverflowGroup.d.ts +0 -0
  849. /package/dist/{components → packages/taco/src/components}/Pagination/PageNumbers.d.ts +0 -0
  850. /package/dist/{components → packages/taco/src/components}/Pagination/Pagination.d.ts +0 -0
  851. /package/dist/{components → packages/taco/src/components}/Pagination/usePagination.d.ts +0 -0
  852. /package/dist/{components → packages/taco/src/components}/Pagination/usePaginationShortcuts.d.ts +0 -0
  853. /package/dist/{components → packages/taco/src/components}/Popover/Popover.d.ts +0 -0
  854. /package/dist/{components → packages/taco/src/components}/Popover/Primitives.d.ts +0 -0
  855. /package/dist/{components → packages/taco/src/components}/Popover/util.d.ts +0 -0
  856. /package/dist/{components → packages/taco/src/components}/Progress/Progress.d.ts +0 -0
  857. /package/dist/{components → packages/taco/src/components}/Provider/Provider.d.ts +0 -0
  858. /package/dist/{components → packages/taco/src/components}/RadioGroup/RadioGroup.d.ts +0 -0
  859. /package/dist/{components → packages/taco/src/components}/RadioGroup/util.d.ts +0 -0
  860. /package/dist/{components → packages/taco/src/components}/ScrollArea/ScrollArea.d.ts +0 -0
  861. /package/dist/{components → packages/taco/src/components}/SearchInput/SearchInput.d.ts +0 -0
  862. /package/dist/{components → packages/taco/src/components}/SearchInput2/SearchInput2.d.ts +0 -0
  863. /package/dist/{components → packages/taco/src/components}/Select/Select.d.ts +0 -0
  864. /package/dist/{components → packages/taco/src/components}/Select/useSelect.d.ts +0 -0
  865. /package/dist/{components → packages/taco/src/components}/Select2/Select2.d.ts +0 -0
  866. /package/dist/{components → packages/taco/src/components}/Select2/components/All.d.ts +0 -0
  867. /package/dist/{components → packages/taco/src/components}/Select2/components/Collection.d.ts +0 -0
  868. /package/dist/{components → packages/taco/src/components}/Select2/components/Context.d.ts +0 -0
  869. /package/dist/{components → packages/taco/src/components}/Select2/components/Create.d.ts +0 -0
  870. /package/dist/{components → packages/taco/src/components}/Select2/components/Edit.d.ts +0 -0
  871. /package/dist/{components → packages/taco/src/components}/Select2/components/Group.d.ts +0 -0
  872. /package/dist/{components → packages/taco/src/components}/Select2/components/Option.d.ts +0 -0
  873. /package/dist/{components → packages/taco/src/components}/Select2/components/Search.d.ts +0 -0
  874. /package/dist/{components → packages/taco/src/components}/Select2/components/Title.d.ts +0 -0
  875. /package/dist/{components → packages/taco/src/components}/Select2/components/Trigger.d.ts +0 -0
  876. /package/dist/{components → packages/taco/src/components}/Select2/types.d.ts +0 -0
  877. /package/dist/{components → packages/taco/src/components}/Select2/utilities.d.ts +0 -0
  878. /package/dist/{components → packages/taco/src/components}/Shortcut/Shortcut.d.ts +0 -0
  879. /package/dist/{components → packages/taco/src/components}/Spinner/Spinner.d.ts +0 -0
  880. /package/dist/{components → packages/taco/src/components}/Switch/Switch.d.ts +0 -0
  881. /package/dist/{components → packages/taco/src/components}/Table/Table.storyexample.d.ts +0 -0
  882. /package/dist/{components → packages/taco/src/components}/Table/components/BaseTable.d.ts +0 -0
  883. /package/dist/{components → packages/taco/src/components}/Table/components/PaginatedTable.d.ts +0 -0
  884. /package/dist/{components → packages/taco/src/components}/Table/components/Table.d.ts +0 -0
  885. /package/dist/{components → packages/taco/src/components}/Table/components/WindowedTable.d.ts +0 -0
  886. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
  887. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
  888. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
  889. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
  890. /package/dist/{components → packages/taco/src/components}/Table/hooks/useRowCreation.d.ts +0 -0
  891. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTable.d.ts +0 -0
  892. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
  893. /package/dist/{components → packages/taco/src/components}/Table/types.d.ts +0 -0
  894. /package/dist/{components → packages/taco/src/components}/Table/util/renderColumn.d.ts +0 -0
  895. /package/dist/{components → packages/taco/src/components}/Table/util/renderRow.d.ts +0 -0
  896. /package/dist/{components → packages/taco/src/components}/Table/util/rowIndexPath.d.ts +0 -0
  897. /package/dist/{components → packages/taco/src/components}/Table/util/sortTypes.d.ts +0 -0
  898. /package/dist/{components → packages/taco/src/components}/Table/util.d.ts +0 -0
  899. /package/dist/{components → packages/taco/src/components}/Tabs/Tabs.d.ts +0 -0
  900. /package/dist/{components → packages/taco/src/components}/Tag/Tag.d.ts +0 -0
  901. /package/dist/{components → packages/taco/src/components}/Textarea/Textarea.d.ts +0 -0
  902. /package/dist/{components → packages/taco/src/components}/Toast/Toast.d.ts +0 -0
  903. /package/dist/{components → packages/taco/src/components}/Toast/Toaster.d.ts +0 -0
  904. /package/dist/{components → packages/taco/src/components}/Toast/util.d.ts +0 -0
  905. /package/dist/{components → packages/taco/src/components}/Tooltip/Tooltip.d.ts +0 -0
  906. /package/dist/{components → packages/taco/src/components}/Tour/Tour.d.ts +0 -0
  907. /package/dist/{components → packages/taco/src/components}/Treeview/Treeview.d.ts +0 -0
  908. /package/dist/{components → packages/taco/src/components}/Truncate/Truncate.d.ts +0 -0
  909. /package/dist/{components → packages/taco/src/components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
  910. /package/dist/{hooks → packages/taco/src/hooks}/useBoundaryOverflowDetection.d.ts +0 -0
  911. /package/dist/{hooks → packages/taco/src/hooks}/useBoundingClientRectListener.d.ts +0 -0
  912. /package/dist/{hooks → packages/taco/src/hooks}/useDebouncedEffect.d.ts +0 -0
  913. /package/dist/{hooks → packages/taco/src/hooks}/useGlobalKeyDown.d.ts +0 -0
  914. /package/dist/{hooks → packages/taco/src/hooks}/useId.d.ts +0 -0
  915. /package/dist/{hooks → packages/taco/src/hooks}/useIntersectionObserver.d.ts +0 -0
  916. /package/dist/{hooks → packages/taco/src/hooks}/useIsFormControl.d.ts +0 -0
  917. /package/dist/{hooks → packages/taco/src/hooks}/useIsHoverStatePaused.d.ts +0 -0
  918. /package/dist/{hooks → packages/taco/src/hooks}/useIsLargeScreen.d.ts +0 -0
  919. /package/dist/{hooks → packages/taco/src/hooks}/useLazyEffect.d.ts +0 -0
  920. /package/dist/{hooks → packages/taco/src/hooks}/useLocalStorage.d.ts +0 -0
  921. /package/dist/{hooks → packages/taco/src/hooks}/useMatchMedia.d.ts +0 -0
  922. /package/dist/{hooks → packages/taco/src/hooks}/useMergedRef.d.ts +0 -0
  923. /package/dist/{hooks → packages/taco/src/hooks}/usePrevious.d.ts +0 -0
  924. /package/dist/{hooks → packages/taco/src/hooks}/useTacoSettings.d.ts +0 -0
  925. /package/dist/{primitives → packages/taco/src/primitives}/BubbleSelect.d.ts +0 -0
  926. /package/dist/{primitives → packages/taco/src/primitives}/Button.d.ts +0 -0
  927. /package/dist/{primitives → packages/taco/src/primitives}/Collection/Collection.d.ts +0 -0
  928. /package/dist/{primitives → packages/taco/src/primitives}/Collection/components/Root.d.ts +0 -0
  929. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/Listbox2.d.ts +0 -0
  930. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Context.d.ts +0 -0
  931. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Group.d.ts +0 -0
  932. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Option.d.ts +0 -0
  933. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Root.d.ts +0 -0
  934. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Title.d.ts +0 -0
  935. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/types.d.ts +0 -0
  936. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/Sortable.d.ts +0 -0
  937. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Container.d.ts +0 -0
  938. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Item.d.ts +0 -0
  939. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/List.d.ts +0 -0
  940. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/util.d.ts +0 -0
  941. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  942. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  943. /package/dist/{components/Report/components/Row → packages/taco/src/primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  944. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  945. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  946. /package/dist/{components/Report/styles → packages/taco/src/primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  947. /package/dist/{primitives/Table/useTableManager → packages/taco/src/primitives/Table/Core}/features/useTableRef.d.ts +0 -0
  948. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  949. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/util/rows.d.ts +0 -0
  950. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableDataLoader.d.ts +0 -0
  951. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
  952. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
  953. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
  954. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
  955. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
  956. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
  957. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
  958. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
  959. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
  960. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
  961. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
  962. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
  963. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
  964. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
  965. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
  966. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
  967. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
  968. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
  969. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
  970. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
  971. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
  972. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
  973. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
  974. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
  975. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
  976. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.d.ts +0 -0
  977. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
  978. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
  979. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/presets.d.ts +0 -0
  980. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/search.d.ts +0 -0
  981. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/setup.d.ts +0 -0
  982. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/sorting.d.ts +0 -0
  983. /package/dist/{types.d.ts → packages/taco/src/types.d.ts} +0 -0
  984. /package/dist/{utils → packages/taco/src/utils}/aria.d.ts +0 -0
  985. /package/dist/{utils → packages/taco/src/utils}/date.d.ts +0 -0
  986. /package/dist/{utils → packages/taco/src/utils}/debounce.d.ts +0 -0
  987. /package/dist/{utils → packages/taco/src/utils}/device.d.ts +0 -0
  988. /package/dist/{utils → packages/taco/src/utils}/hooks/useDraggable.d.ts +0 -0
  989. /package/dist/{utils → packages/taco/src/utils}/hooks/useDropTarget.d.ts +0 -0
  990. /package/dist/{utils → packages/taco/src/utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
  991. /package/dist/{utils → packages/taco/src/utils}/hooks/useListScrollTo.d.ts +0 -0
  992. /package/dist/{utils → packages/taco/src/utils}/hooks/useOnClickOutside.d.ts +0 -0
  993. /package/dist/{utils → packages/taco/src/utils}/hooks/useRefState.d.ts +0 -0
  994. /package/dist/{utils → packages/taco/src/utils}/hooks/useTimer.d.ts +0 -0
  995. /package/dist/{utils → packages/taco/src/utils}/hooks/useTruncated.d.ts +0 -0
  996. /package/dist/{utils → packages/taco/src/utils}/input.d.ts +0 -0
  997. /package/dist/{utils → packages/taco/src/utils}/keyboard.d.ts +0 -0
  998. /package/dist/{utils → packages/taco/src/utils}/mergeRefs.d.ts +0 -0
  999. /package/dist/{utils → packages/taco/src/utils}/storyutils.d.ts +0 -0
  1000. /package/dist/{utils → packages/taco/src/utils}/tailwind.d.ts +0 -0
@@ -1,15 +1,15 @@
1
1
  import React__default from 'react';
2
2
  import cn from 'clsx';
3
- import { Icon } from '../../../../../Icon/Icon.js';
4
- import { useLocalization } from '../../../../../Provider/Localization.js';
5
- import { Checkbox } from '../../../../../Checkbox/Checkbox.js';
6
- import { Input } from '../../../../../Input/Input.js';
7
- import { Popover } from '../../../../../Popover/Popover.js';
8
- import { isInternalColumn, ensureOrdering } from '../../../../../../primitives/Table/useTableManager/util/columns.js';
9
- import { Container } from '../../../../../../primitives/Sortable/components/Container.js';
3
+ import { Icon } from '../../../../../../../components/Icon/Icon.js';
4
+ import { useLocalization } from '../../../../../../../components/Provider/Localization.js';
5
+ import { Checkbox } from '../../../../../../../components/Checkbox/Checkbox.js';
6
+ import { Input } from '../../../../../../../components/Input/Input.js';
7
+ import { Popover } from '../../../../../../../components/Popover/Popover.js';
8
+ import { isInternalColumn, ensureOrdering } from '../../../../../useTableManager/util/columns.js';
9
+ import { Container } from '../../../../../../Sortable/components/Container.js';
10
10
  import { arrayMove } from '@dnd-kit/sortable';
11
- import { Item } from '../../../../../../primitives/Sortable/components/Item.js';
12
- import { List } from '../../../../../../primitives/Sortable/components/List.js';
11
+ import { Item } from '../../../../../../Sortable/components/Item.js';
12
+ import { List } from '../../../../../../Sortable/components/List.js';
13
13
 
14
14
  const Column = /*#__PURE__*/React__default.forwardRef(function Column(props, ref) {
15
15
  var _column$parent, _column$parent$column, _column$columnDef$met;
@@ -67,15 +67,29 @@ function HideOrOrderPopover(props) {
67
67
  })) {
68
68
  return;
69
69
  }
70
- table.setColumnOrder((currentOrder = []) => ensureOrdering(allColumns, arrayMove(currentOrder, currentOrder.findIndex(c => c === activeId), currentOrder.findIndex(c => c === overId))));
70
+ const currentOrder = table.getState().columnOrder;
71
+ const nextOrder = ensureOrdering(allColumns, arrayMove(currentOrder, currentOrder.findIndex(c => c === activeId), currentOrder.findIndex(c => c === overId)));
72
+ // update column order
73
+ table.setColumnOrder(nextOrder);
74
+ // update pinned columns - because we do index based "freezing" instead of just pinning, pinned state needs updating to align with ordering
75
+ if (table.getIsSomeColumnsPinned()) {
76
+ var _table$getState$colum, _table$getState$colum2;
77
+ const currentFrozenIndex = (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning.left) === null || _table$getState$colum2 === void 0 ? void 0 : _table$getState$colum2.length) !== null && _table$getState$colum !== void 0 ? _table$getState$colum : -1;
78
+ if (currentFrozenIndex > -1) {
79
+ table.setColumnPinning(currentPinning => ({
80
+ ...currentPinning,
81
+ left: nextOrder.slice(0, currentFrozenIndex)
82
+ }));
83
+ }
84
+ }
71
85
  };
72
86
  return /*#__PURE__*/React__default.createElement(Popover, Object.assign({}, popoverProps, {
73
87
  anchor: trigger
74
88
  }), /*#__PURE__*/React__default.createElement(Popover.Content, null, /*#__PURE__*/React__default.createElement("div", {
75
- className: "flex max-w-sm flex-col gap-2"
89
+ className: "flex min-w-[100px] max-w-sm flex-col gap-2"
76
90
  }, table.options.enableHiding ? ( /*#__PURE__*/React__default.createElement(Input, {
77
91
  onChange: event => setQuery(event.target.value),
78
- placeholder: texts.table3.columnSettings.search,
92
+ placeholder: texts.table.columnSettings.search,
79
93
  value: query
80
94
  })) : null, tableMeta.columnOrdering.isEnabled && columns.length && !(query !== null && query !== void 0 && query.length) ? ( /*#__PURE__*/React__default.createElement(Container, {
81
95
  reorder: handleReorder
@@ -98,7 +112,7 @@ function HideOrOrderPopover(props) {
98
112
  }, columns.length ? columns.map(column => /*#__PURE__*/React__default.createElement(Column, {
99
113
  column: column,
100
114
  key: column.id
101
- })) : texts.table3.columnSettings.noResults)))));
115
+ })) : texts.table.columnSettings.noResults)))));
102
116
  }
103
117
 
104
118
  export { HideOrOrderPopover };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HideOrOrderPopover.js","sources":["../../../../../../../../../../../../src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { Table as ReactTable, Column as ReactTableColumn, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { Popover, PopoverProps } from '../../../../../../../components/Popover/Popover';\nimport { Input } from '../../../../../../../components/Input/Input';\nimport * as SortablePrimitive from '../../../../../../Sortable/Sortable';\nimport { Icon } from '../../../../../../../components/Icon/Icon';\nimport { Checkbox } from '../../../../../../../components/Checkbox/Checkbox';\nimport { useLocalization } from '../../../../../../../components/Provider/Localization';\nimport { ensureOrdering, isInternalColumn } from '../../../../../useTableManager/util/columns';\n\ntype ColumnProps<TType = unknown> = React.HTMLAttributes<HTMLDivElement> & {\n column: ReactTableColumn<TType, unknown>;\n draggable?: boolean;\n};\n\nconst Column = React.forwardRef(function Column<TType = unknown>(props: ColumnProps<TType>, ref: React.Ref<HTMLDivElement>) {\n const { column, draggable = false, ...dragAttributes } = props;\n const canHide = column.getCanHide();\n\n const className = cn('group/column flex items-center gap-x-2 rounded py-1 px-2', {\n 'hover:bg-grey-200': canHide || draggable,\n 'hover:cursor-pointer': canHide,\n 'active:cursor-move active:bg-grey-300': draggable,\n });\n\n const attributes = draggable ? dragAttributes : undefined;\n const isVisible = column.getIsVisible();\n const parentHeader = column.parent?.columnDef?.header;\n\n return (\n <div {...attributes} className={className} onClick={() => column.toggleVisibility(!isVisible)} ref={ref}>\n {draggable ? <Icon name=\"drag\" className=\"text-grey-500 group-hover/column:text-grey-700 -mx-2 !h-5\" /> : null}\n <span className=\"flex-grow truncate\">\n {column.columnDef.meta?.header}\n {parentHeader ? <span className=\"italic\">({parentHeader})</span> : null}\n </span>\n {canHide ? <Checkbox checked={isVisible} onChange={() => column.toggleVisibility(!isVisible)} /> : null}\n </div>\n );\n});\n\nexport type HideOrOrderPopoverProps<TType = unknown> = PopoverProps & {\n table: ReactTable<TType>;\n};\n\nexport function HideOrOrderPopover<TType = unknown>(props: HideOrOrderPopoverProps<TType>) {\n const { table, trigger, ...popoverProps } = props;\n const { texts } = useLocalization();\n const [query, setQuery] = React.useState('');\n const allColumns = table.getAllLeafColumns();\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const columns = React.useMemo(\n () =>\n allColumns\n .filter(column => !isInternalColumn(column.id))\n .filter(column =>\n query?.length\n ? column.columnDef.meta?.header.toLowerCase().includes(query.toLowerCase()) ||\n column.parent?.columnDef.meta?.header.toLowerCase().includes(query.toLowerCase())\n : true\n ),\n [allColumns, query]\n );\n\n const listClassName = 'flex max-h-64 flex-col gap-y-px overflow-auto';\n\n const handleReorder = (activeId, overId) => {\n if (columns.find(column => column.id === overId && column.columnDef.meta?.enableOrdering === false)) {\n return;\n }\n\n const currentOrder = table.getState().columnOrder;\n const nextOrder = ensureOrdering(\n allColumns,\n SortablePrimitive.arrayMove(\n currentOrder,\n currentOrder.findIndex(c => c === activeId),\n currentOrder.findIndex(c => c === overId)\n )\n );\n\n // update column order\n table.setColumnOrder(nextOrder);\n\n // update pinned columns - because we do index based \"freezing\" instead of just pinning, pinned state needs updating to align with ordering\n if (table.getIsSomeColumnsPinned()) {\n const currentFrozenIndex = table.getState().columnPinning.left?.length ?? -1;\n\n if (currentFrozenIndex > -1) {\n table.setColumnPinning(currentPinning => ({\n ...currentPinning,\n left: nextOrder.slice(0, currentFrozenIndex),\n }));\n }\n }\n };\n\n return (\n <Popover {...popoverProps} anchor={trigger}>\n <Popover.Content>\n <div className=\"flex min-w-[100px] max-w-sm flex-col gap-2\">\n {table.options.enableHiding ? (\n <Input\n onChange={event => setQuery(event.target.value)}\n placeholder={texts.table.columnSettings.search}\n value={query}\n />\n ) : null}\n {tableMeta.columnOrdering.isEnabled && columns.length && !query?.length ? (\n <SortablePrimitive.Container reorder={handleReorder}>\n <SortablePrimitive.List id=\"columns\" className={listClassName}>\n {columns\n .filter(column => !column.getIsGrouped())\n .map(column => (\n <SortablePrimitive.Item\n key={column.id}\n id={column.id}\n disabled={!column.columnDef.meta?.enableOrdering}\n asChild>\n <Column column={column as any} draggable={column.columnDef.meta?.enableOrdering} />\n </SortablePrimitive.Item>\n ))}\n </SortablePrimitive.List>\n </SortablePrimitive.Container>\n ) : (\n <div className={listClassName}>\n {columns.length\n ? columns.map(column => <Column column={column as any} key={column.id} />)\n : texts.table.columnSettings.noResults}\n </div>\n )}\n </div>\n </Popover.Content>\n </Popover>\n );\n}\n"],"names":["Column","React","forwardRef","props","ref","column","draggable","dragAttributes","canHide","getCanHide","className","cn","attributes","undefined","isVisible","getIsVisible","parentHeader","_column$parent","parent","_column$parent$column","columnDef","header","onClick","toggleVisibility","Icon","name","meta","_column$columnDef$met","Checkbox","checked","onChange","HideOrOrderPopover","table","trigger","popoverProps","texts","useLocalization","query","setQuery","useState","allColumns","getAllLeafColumns","tableMeta","options","columns","useMemo","filter","isInternalColumn","id","_column$columnDef$met2","_column$parent2","_column$parent2$colum","length","toLowerCase","includes","listClassName","handleReorder","activeId","overId","find","_column$columnDef$met3","enableOrdering","currentOrder","getState","columnOrder","nextOrder","ensureOrdering","SortablePrimitive","findIndex","c","setColumnOrder","getIsSomeColumnsPinned","_table$getState$colum","_table$getState$colum2","currentFrozenIndex","columnPinning","left","setColumnPinning","currentPinning","slice","Popover","anchor","Content","enableHiding","Input","event","target","value","placeholder","columnSettings","search","columnOrdering","isEnabled","reorder","getIsGrouped","map","_column$columnDef$met4","_column$columnDef$met5","key","disabled","asChild","noResults"],"mappings":";;;;;;;;;;;;;AAgBA,MAAMA,MAAM,gBAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,MAAMA,CAAkBG,KAAyB,EAAEC,GAA8B;;EACtH,MAAM;IAAEC,MAAM;IAAEC,SAAS,GAAG,KAAK;IAAE,GAAGC;GAAgB,GAAGJ,KAAK;EAC9D,MAAMK,OAAO,GAAGH,MAAM,CAACI,UAAU,EAAE;EAEnC,MAAMC,SAAS,GAAGC,EAAE,CAAC,0DAA0D,EAAE;IAC7E,mBAAmB,EAAEH,OAAO,IAAIF,SAAS;IACzC,sBAAsB,EAAEE,OAAO;IAC/B,uCAAuC,EAAEF;GAC5C,CAAC;EAEF,MAAMM,UAAU,GAAGN,SAAS,GAAGC,cAAc,GAAGM,SAAS;EACzD,MAAMC,SAAS,GAAGT,MAAM,CAACU,YAAY,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6C;KAC3CX,OAAO,CACHE,MAAM,CAACzC,MAAM,IAAI,CAACA,MAAM,CAACyF,YAAY,EAAE,CAAC,CACxCC,GAAG,CAAC1F,MAAM;IAAA,IAAA2F,sBAAA,EAAAC,sBAAA;IAAA,oBACPhG,6BAACkE,IAAsB;MACnB+B,GAAG,EAAE7F,MAAM,CAAC2C,EAAE;MACdA,EAAE,EAAE3C,MAAM,CAAC2C,EAAE;MACbmD,QAAQ,EAAE,GAAAH,sBAAA,GAAC3F,MAAM,CAACe,SAAS,CAACM,IAAI,cAAAsE,sBAAA,eAArBA,sBAAA,CAAuBnC,cAAc;MAChDuC,OAAO;oBACPnG,6BAACD,MAAM;MAACK,MAAM,EAAEA,MAAa;MAAEC,SAAS,GAAA2F,sBAAA,GAAE5F,MAAM,CAACe,SAAS,CAACM,IAAI,cAAAuE,sBAAA,uBAArBA,sBAAA,CAAuBpC;MAAkB,CAC9D;GAC5B,CAAC,CACe,CACC,mBAE9B5D;IAAKS,SAAS,EAAE6C;KACXX,OAAO,CAACQ,MAAM,GACTR,OAAO,CAACmD,GAAG,CAAC1F,MAAM,iBAAIJ,6BAACD,MAAM;IAACK,MAAM,EAAEA,MAAa;IAAE6F,GAAG,EAAE7F,MAAM,CAAC2C;IAAM,CAAC,GACxEb,KAAK,CAACH,KAAK,CAACyD,cAAc,CAACY,SAAS,CACxC,CACT,CACC,CACQ,CACZ;AAElB;;;;"}
@@ -1,9 +1,9 @@
1
1
  import React__default from 'react';
2
- import { IconButton } from '../../../../../IconButton/IconButton.js';
3
- import { useLocalization } from '../../../../../Provider/Localization.js';
4
- import { Menu } from '../../../../../Menu/Menu.js';
5
- import { FontSizes } from '../../../../../../types.js';
6
- import { getSettings } from '../../../../../../primitives/Table/useTableManager/util/settings.js';
2
+ import { IconButton } from '../../../../../../../components/IconButton/IconButton.js';
3
+ import { useLocalization } from '../../../../../../../components/Provider/Localization.js';
4
+ import { Menu } from '../../../../../../../components/Menu/Menu.js';
5
+ import { FontSizes } from '../../../../../../../types.js';
6
+ import { getSettings } from '../../../../../useTableManager/util/settings.js';
7
7
  import { HideOrOrderPopover } from './HideOrOrderPopover.js';
8
8
 
9
9
  function Settings(props) {
@@ -36,29 +36,29 @@ function Settings(props) {
36
36
  }
37
37
  }
38
38
  return /*#__PURE__*/React__default.createElement(IconButton, {
39
- "aria-label": texts.table3.otherOptions.tooltip,
39
+ "aria-label": texts.table.otherOptions.tooltip,
40
40
  icon: "sliders",
41
41
  menu: popoverElement ? undefined : menuProps => ( /*#__PURE__*/React__default.createElement(Menu, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu.Content, {
42
42
  align: "end"
43
43
  }, canHideOrOrder ? ( /*#__PURE__*/React__default.createElement(Menu.Item, {
44
44
  icon: "columns",
45
45
  onClick: () => setPopover('columnSettings')
46
- }, texts.table3.columnSettings.button)) : null, canHideOrOrder && (canChangeRowHeight || canChangeFontSize || customSettings) ? ( /*#__PURE__*/React__default.createElement(Menu.Separator, null)) : null, canChangeRowHeight ? ( /*#__PURE__*/React__default.createElement(Menu.Item, {
46
+ }, texts.table.columnSettings.button)) : null, canHideOrOrder && (canChangeRowHeight || canChangeFontSize || customSettings) ? ( /*#__PURE__*/React__default.createElement(Menu.Separator, null)) : null, canChangeRowHeight ? ( /*#__PURE__*/React__default.createElement(Menu.Item, {
47
47
  icon: `height-${tableMeta.rowHeight.height}`,
48
48
  subMenu: () => /*#__PURE__*/React__default.createElement(RowHeightMenuItem, {
49
49
  tableMeta: tableMeta
50
50
  })
51
- }, texts.table3.rowHeight.tooltip)) : null, canChangeFontSize ? ( /*#__PURE__*/React__default.createElement(Menu.Item, {
51
+ }, texts.table.rowHeight.tooltip)) : null, canChangeFontSize ? ( /*#__PURE__*/React__default.createElement(Menu.Item, {
52
52
  icon: "font-size",
53
53
  subMenu: () => /*#__PURE__*/React__default.createElement(FontSizeMenuItem, {
54
54
  tableMeta: tableMeta
55
55
  })
56
- }, texts.table3.fontSize.tooltip)) : null, customSettings ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, canChangeRowHeight || canChangeFontSize ? /*#__PURE__*/React__default.createElement(Menu.Separator, null) : null, customSettings(getSettings(table)).map((item, index) => ( /*#__PURE__*/React__default.createElement(React__default.Fragment, {
56
+ }, texts.table.fontSize.tooltip)) : null, customSettings ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, canChangeRowHeight || canChangeFontSize ? /*#__PURE__*/React__default.createElement(Menu.Separator, null) : null, customSettings(getSettings(table)).map((item, index) => ( /*#__PURE__*/React__default.createElement(React__default.Fragment, {
57
57
  key: index
58
58
  }, item))))) : null))),
59
59
  popover: popoverElement,
60
60
  onClickCapture: event => event.preventDefault(),
61
- tooltip: texts.table3.otherOptions.tooltip
61
+ tooltip: texts.table.otherOptions.tooltip
62
62
  });
63
63
  }
64
64
  function FontSizeMenuItem({
@@ -72,12 +72,12 @@ function FontSizeMenuItem({
72
72
  value: tableMeta.fontSize.size
73
73
  }, /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
74
74
  value: FontSizes.small
75
- }, texts.table3.fontSize.sizes.small), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
75
+ }, texts.table.fontSize.sizes.small), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
76
76
  value: FontSizes.medium
77
- }, texts.table3.fontSize.sizes.medium), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
77
+ }, texts.table.fontSize.sizes.medium), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
78
78
  disabled: tableMeta.rowHeight.height === 'short',
79
79
  value: FontSizes.large
80
- }, texts.table3.fontSize.sizes.large)));
80
+ }, texts.table.fontSize.sizes.large)));
81
81
  }
82
82
  function RowHeightMenuItem({
83
83
  tableMeta
@@ -90,13 +90,13 @@ function RowHeightMenuItem({
90
90
  value: tableMeta.rowHeight.height
91
91
  }, /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
92
92
  value: "short"
93
- }, texts.table3.rowHeight.sizes.short), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
93
+ }, texts.table.rowHeight.sizes.short), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
94
94
  value: "medium"
95
- }, texts.table3.rowHeight.sizes.medium), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
95
+ }, texts.table.rowHeight.sizes.medium), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
96
96
  value: "tall"
97
- }, texts.table3.rowHeight.sizes.tall), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
97
+ }, texts.table.rowHeight.sizes.tall), /*#__PURE__*/React__default.createElement(Menu.RadioGroup.Item, {
98
98
  value: "extra-tall"
99
- }, texts.table3.rowHeight.sizes.extraTall)));
99
+ }, texts.table.rowHeight.sizes.extraTall)));
100
100
  }
101
101
 
102
102
  export { Settings };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.js","sources":["../../../../../../../../../../../../src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { IconButton } from '../../../../../../../components/IconButton/IconButton';\nimport { useLocalization } from '../../../../../../../components/Provider/Localization';\nimport { Menu } from '../../../../../../../components/Menu/Menu';\nimport { HideOrOrderPopover } from './HideOrOrderPopover';\nimport { getSettings } from '../../../../../useTableManager/util/settings';\nimport { FontSizes } from '../../../../../../../types';\nimport { IconName } from '../../../../../../../components/Icon/Icon';\nimport { TableCustomSettingsRenderer } from '../../../../../types';\n\nexport type SettingsProps<TType = unknown> = {\n customSettings?: TableCustomSettingsRenderer;\n table: ReactTable<TType>;\n};\n\nexport function Settings<TType = unknown>(props: SettingsProps<TType>) {\n const { customSettings, table } = props;\n const { texts } = useLocalization();\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const canHideOrOrder = table.options.enableHiding || tableMeta.columnOrdering.isEnabled;\n const canChangeFontSize = tableMeta.fontSize.isEnabled;\n const canChangeRowHeight = tableMeta.rowHeight.isEnabled;\n\n const [popover, setPopover] = React.useState<string | undefined>(undefined);\n\n let popoverElement;\n\n if (popover) {\n const handleClosePopover = () => setPopover(undefined);\n\n switch (popover) {\n case 'columnSettings': {\n if (canHideOrOrder) {\n popoverElement = popoverProps => (\n <HideOrOrderPopover {...popoverProps} open onChange={handleClosePopover} table={table} />\n );\n }\n }\n }\n }\n\n return (\n <IconButton\n aria-label={texts.table.otherOptions.tooltip}\n icon=\"sliders\"\n menu={\n popoverElement\n ? undefined\n : menuProps => (\n <Menu {...menuProps}>\n <Menu.Content align=\"end\">\n {canHideOrOrder ? (\n <Menu.Item icon=\"columns\" onClick={() => setPopover('columnSettings')}>\n {texts.table.columnSettings.button}\n </Menu.Item>\n ) : null}\n {canHideOrOrder && (canChangeRowHeight || canChangeFontSize || customSettings) ? (\n <Menu.Separator />\n ) : null}\n {canChangeRowHeight ? (\n <Menu.Item\n icon={`height-${tableMeta.rowHeight.height}` as IconName}\n subMenu={() => <RowHeightMenuItem tableMeta={tableMeta} />}>\n {texts.table.rowHeight.tooltip}\n </Menu.Item>\n ) : null}\n {canChangeFontSize ? (\n <Menu.Item icon=\"font-size\" subMenu={() => <FontSizeMenuItem tableMeta={tableMeta} />}>\n {texts.table.fontSize.tooltip}\n </Menu.Item>\n ) : null}\n\n {customSettings ? (\n <>\n {canChangeRowHeight || canChangeFontSize ? <Menu.Separator /> : null}\n {customSettings(getSettings(table)).map((item, index) => (\n <React.Fragment key={index}>{item}</React.Fragment>\n ))}\n </>\n ) : null}\n </Menu.Content>\n </Menu>\n )\n }\n popover={popoverElement}\n onClickCapture={event => event.preventDefault()}\n tooltip={texts.table.otherOptions.tooltip}\n />\n );\n}\n\nfunction FontSizeMenuItem<TType = unknown>({ tableMeta }: { tableMeta: ReactTableMeta<TType> }) {\n const { texts } = useLocalization();\n\n return (\n <Menu.SubMenu>\n <Menu.RadioGroup onChange={tableMeta.fontSize.setSize as any} value={tableMeta.fontSize.size}>\n <Menu.RadioGroup.Item value={FontSizes.small}>{texts.table.fontSize.sizes.small}</Menu.RadioGroup.Item>\n <Menu.RadioGroup.Item value={FontSizes.medium}>{texts.table.fontSize.sizes.medium}</Menu.RadioGroup.Item>\n <Menu.RadioGroup.Item disabled={tableMeta.rowHeight.height === 'short'} value={FontSizes.large}>\n {texts.table.fontSize.sizes.large}\n </Menu.RadioGroup.Item>\n </Menu.RadioGroup>\n </Menu.SubMenu>\n );\n}\n\nfunction RowHeightMenuItem<TType = unknown>({ tableMeta }: { tableMeta: ReactTableMeta<TType> }) {\n const { texts } = useLocalization();\n\n return (\n <Menu.SubMenu>\n <Menu.RadioGroup onChange={tableMeta.rowHeight.setHeight as any} value={tableMeta.rowHeight.height}>\n <Menu.RadioGroup.Item value=\"short\">{texts.table.rowHeight.sizes.short}</Menu.RadioGroup.Item>\n <Menu.RadioGroup.Item value=\"medium\">{texts.table.rowHeight.sizes.medium}</Menu.RadioGroup.Item>\n <Menu.RadioGroup.Item value=\"tall\">{texts.table.rowHeight.sizes.tall}</Menu.RadioGroup.Item>\n <Menu.RadioGroup.Item value=\"extra-tall\">{texts.table.rowHeight.sizes.extraTall}</Menu.RadioGroup.Item>\n </Menu.RadioGroup>\n </Menu.SubMenu>\n );\n}\n"],"names":["Settings","props","customSettings","table","texts","useLocalization","tableMeta","options","meta","canHideOrOrder","enableHiding","columnOrdering","isEnabled","canChangeFontSize","fontSize","canChangeRowHeight","rowHeight","popover","setPopover","React","useState","undefined","popoverElement","handleClosePopover","popoverProps","HideOrOrderPopover","open","onChange","IconButton","otherOptions","tooltip","icon","menu","menuProps","Menu","Content","align","Item","onClick","columnSettings","button","Separator","height","subMenu","RowHeightMenuItem","FontSizeMenuItem","getSettings","map","item","index","Fragment","key","onClickCapture","event","preventDefault","SubMenu","RadioGroup","setSize","value","size","FontSizes","small","sizes","medium","disabled","large","setHeight","short","tall","extraTall"],"mappings":";;;;;;;;SAgBgBA,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UAAU,CAACnB,IAAI;IAACqB,KAAK,EAAC;KAAQtD,KAAK,CAACD,KAAK,CAACa,SAAS,CAAC8C,KAAK,CAACM,IAAI,CAAwB,eAC5FjD,6BAACe,IAAI,CAACsB,UAAU,CAACnB,IAAI;IAACqB,KAAK,EAAC;KAActD,KAAK,CAACD,KAAK,CAACa,SAAS,CAAC8C,KAAK,CAACO,SAAS,CAAwB,CACzF,CACP;AAEvB;;;;"}
@@ -1,3 +1,19 @@
1
+ import React__default from 'react';
2
+ import { useStylesheetCssGrid } from './useStylesheetCssGrid.js';
3
+ import { useStylesheetColumnFreezing } from './useStylesheetColumnFreezing.js';
4
+
5
+ function useStylesheet(tableId, table) {
6
+ const tableMeta = table.options.meta;
7
+ const cssGridStylesheet = useStylesheetCssGrid(tableId, table, tableMeta.fontSize.size);
8
+ const columnFreezingStylesheet = useStylesheetColumnFreezing(tableId, table);
9
+ const genericStylesheet = `table[data-taco^='table']#${tableId} {
10
+ --table-header-group-depth: ${table.getHeaderGroups().length};
11
+ --table-cell-padding-x: ${getCellWidthPadding(tableMeta.fontSize.size)};
12
+ --table-cell-padding-y: ${getCellHeightPadding(tableMeta.rowHeight.height, tableMeta.fontSize.size)};
13
+ }`;
14
+ const css = [genericStylesheet, cssGridStylesheet, columnFreezingStylesheet].filter(s => !!s).join('\n');
15
+ return /*#__PURE__*/React__default.createElement("style", null, css);
16
+ }
1
17
  // we cannot just use a fixed height because our rows need to grow in height (images, edit mode validation etc)
2
18
  function getCellHeightPadding(height, fontSize) {
3
19
  // TODO: can we get the rem values from tailwind
@@ -57,5 +73,5 @@ function getCellWidthPadding(fontSize) {
57
73
  }
58
74
  }
59
75
 
60
- export { getCellHeightPadding, getCellWidthPadding };
61
- //# sourceMappingURL=util.js.map
76
+ export { useStylesheet };
77
+ //# sourceMappingURL=useStylesheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStylesheet.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useStylesheet.tsx"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useStylesheetCssGrid } from './useStylesheetCssGrid';\nimport { useStylesheetColumnFreezing } from './useStylesheetColumnFreezing';\n\nexport function useStylesheet<TType = unknown>(tableId: string, table: ReactTable<TType>) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const cssGridStylesheet = useStylesheetCssGrid<TType>(tableId, table, tableMeta.fontSize.size);\n const columnFreezingStylesheet = useStylesheetColumnFreezing(tableId, table);\n\n const genericStylesheet = `table[data-taco^='table']#${tableId} {\n --table-header-group-depth: ${table.getHeaderGroups().length};\n --table-cell-padding-x: ${getCellWidthPadding(tableMeta.fontSize.size)};\n --table-cell-padding-y: ${getCellHeightPadding(tableMeta.rowHeight.height, tableMeta.fontSize.size)};\n }`;\n\n const css = [genericStylesheet, cssGridStylesheet, columnFreezingStylesheet].filter(s => !!s).join('\\n');\n\n return <style>{css}</style>;\n}\n\nimport { TableFontSize, TableRowHeight } from '../../types';\n\n// we cannot just use a fixed height because our rows need to grow in height (images, edit mode validation etc)\nfunction getCellHeightPadding(height: TableRowHeight, fontSize: TableFontSize) {\n // TODO: can we get the rem values from tailwind\n switch (height) {\n case 'short': {\n switch (fontSize) {\n case 'small':\n return '8px';\n\n default:\n return '6px';\n }\n }\n\n case 'tall': {\n switch (fontSize) {\n case 'small':\n return '16px';\n\n case 'large':\n return '12px';\n\n default:\n return '14px';\n }\n }\n\n case 'extra-tall': {\n switch (fontSize) {\n case 'small':\n return '22px';\n\n case 'large':\n return '18px';\n\n default:\n return '20px';\n }\n }\n\n default: {\n switch (fontSize) {\n case 'small':\n return '12px';\n\n case 'large':\n return '8px';\n\n default:\n return '10px';\n }\n }\n }\n}\n\nfunction getCellWidthPadding(fontSize: TableFontSize) {\n switch (fontSize) {\n case 'small':\n return '8px';\n\n case 'medium':\n return '12px';\n\n default:\n return '16px';\n }\n}\n"],"names":["useStylesheet","tableId","table","tableMeta","options","meta","cssGridStylesheet","useStylesheetCssGrid","fontSize","size","columnFreezingStylesheet","useStylesheetColumnFreezing","genericStylesheet","getHeaderGroups","length","getCellWidthPadding","getCellHeightPadding","rowHeight","height","css","filter","s","join","React"],"mappings":";;;;SAKgBA,aAAaA,CAAkBC,OAAe,EAAEC,KAAwB;EACpF,MAAMC,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAA6B;EAC7D,MAAMC,iBAAiB,GAAGC,oBAAoB,CAAQN,OAAO,EAAEC,KAAK,EAAEC,SAAS,CAACK,QAAQ,CAACC,IAAI,CAAC;EAC9F,MAAMC,wBAAwB,GAAGC,2BAA2B,CAACV,OAAO,EAAEC,KAAK,CAAC;EAE5E,MAAMU,iBAAiB,gCAAgCX;sCACrBC,KAAK,CAACW,eAAe,EAAE,CAACC;kCAC5BC,mBAAmB,CAACZ,SAAS,CAACK,QAAQ,CAACC,IAAI;kCAC3CO,oBAAoB,CAACb,SAAS,CAACc,SAAS,CAACC,MAAM,EAAEf,SAAS,CAACK,QAAQ,CAACC,IAAI;MACpG;EAEF,MAAMU,GAAG,GAAG,CAACP,iBAAiB,EAAEN,iBAAiB,EAAEI,wBAAwB,CAAC,CAACU,MAAM,CAACC,CAAC,IAAI,CAAC,CAACA,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;EAExG,oBAAOC,4CAAQJ,GAAG,CAAS;AAC/B;AAIA;AACA,SAASH,oBAAoBA,CAACE,MAAsB,EAAEV,QAAuB;;EAEzE,QAAQU,MAAM;IACV,KAAK,OAAO;MAAE;QACV,QAAQV,QAAQ;UACZ,KAAK,OAAO;YACR,OAAO,KAAK;UAEhB;YACI,OAAO,KAAK;;;IAIxB,KAAK,MAAM;MAAE;QACT,QAAQA,QAAQ;UACZ,KAAK,OAAO;YACR,OAAO,MAAM;UAEjB,KAAK,OAAO;YACR,OAAO,MAAM;UAEjB;YACI,OAAO,MAAM;;;IAIzB,KAAK,YAAY;MAAE;QACf,QAAQA,QAAQ;UACZ,KAAK,OAAO;YACR,OAAO,MAAM;UAEjB,KAAK,OAAO;YACR,OAAO,MAAM;UAEjB;YACI,OAAO,MAAM;;;IAIzB;MAAS;QACL,QAAQA,QAAQ;UACZ,KAAK,OAAO;YACR,OAAO,MAAM;UAEjB,KAAK,OAAO;YACR,OAAO,KAAK;UAEhB;YACI,OAAO,MAAM;;;;AAIjC;AAEA,SAASO,mBAAmBA,CAACP,QAAuB;EAChD,QAAQA,QAAQ;IACZ,KAAK,OAAO;MACR,OAAO,KAAK;IAEhB,KAAK,QAAQ;MACT,OAAO,MAAM;IAEjB;MACI,OAAO,MAAM;;AAEzB;;;;"}
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
 
3
- function useColumnPinningStylesheet(tableId, table) {
3
+ function useStylesheetColumnFreezing(tableId, table) {
4
4
  const {
5
5
  columnPinning
6
6
  } = table.getState();
@@ -14,24 +14,24 @@ function useColumnPinningStylesheet(tableId, table) {
14
14
  const index = all.indexOf(left[left.length - 1]);
15
15
  // add right border, hide the header seperator and add shadow when scrolled
16
16
  // we have to be specific so that nested tables don't inherit the same css
17
- styles.push(`table[data-taco='report']#${tableId} > thead > tr > th:nth-child(${index + 1}),
18
- table[data-taco='report']#${tableId} > tbody > tr > td:nth-child(${index + 1}) {
17
+ styles.push(`table[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}),
18
+ table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1}) {
19
19
  border-right-width: 1px;
20
- }\ntable[data-taco='report']#${tableId} > thead > tr > th:nth-child(${index + 1})[data-cell-id^="__"],
21
- table[data-taco='report']#${tableId} > tbody > tr > td:nth-child(${index + 1})[data-cell-id^="__"] {
20
+ }\ntable[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1})[data-cell-id^="__"],
21
+ table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1})[data-cell-id^="__"] {
22
22
  border-right-color: transparent;
23
- }\ntable[data-taco='report']#${tableId} > thead > tr > th:nth-child(${index + 1}):after {
23
+ }\ntable[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}):after {
24
24
  content: none;
25
- }\ntable[data-taco='report'][data-table-horizontally-scrolled="true"]#${tableId} > thead > tr > th:nth-child(${index + 1}),
26
- table[data-taco='report'][data-table-horizontally-scrolled="true"]#${tableId} > tbody > tr > td:nth-child(${index + 1}) {
25
+ }\ntable[data-taco^='table'][data-table-horizontally-scrolled="true"]#${tableId} > thead > tr > th:nth-child(${index + 1}),
26
+ table[data-taco^='table'][data-table-horizontally-scrolled="true"]#${tableId} > tbody > tr > td:nth-child(${index + 1}) {
27
27
  border-right-color: rgb(221, 221, 221);
28
28
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 6px 0px 6px rgb(0 0 0/8%);
29
29
  }`);
30
30
  }
31
31
  if (right.length) {
32
32
  const index = all.indexOf(right[right.length - 1]);
33
- styles.push(`table[data-taco='report']#${tableId} > thead > tr > th:nth-child(${index + 1}):not([data-cell-id^="__"]),
34
- table[data-taco='report']#${tableId} > tbody > tr > td:nth-child(${index + 1}):not([data-cell-id^="__"]) {
33
+ styles.push(`table[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}):not([data-cell-id^="__"]),
34
+ table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1}):not([data-cell-id^="__"]) {
35
35
  border-left-width: 1px;
36
36
  }`);
37
37
  }
@@ -40,5 +40,5 @@ function useColumnPinningStylesheet(tableId, table) {
40
40
  return stylesheet;
41
41
  }
42
42
 
43
- export { useColumnPinningStylesheet };
44
- //# sourceMappingURL=useColumnPinningStylesheet.js.map
43
+ export { useStylesheetColumnFreezing };
44
+ //# sourceMappingURL=useStylesheetColumnFreezing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStylesheetColumnFreezing.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useStylesheetColumnFreezing.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\n\nexport function useStylesheetColumnFreezing<TType = unknown>(tableId: string, table: ReactTable<TType>) {\n const { columnPinning } = table.getState();\n\n const stylesheet = React.useMemo(() => {\n const styles: string[] = [];\n\n // might be a better way to get this information, but it wasn't obvious\n const all = table\n .getFlatHeaders()\n .filter(column => !column.subHeaders.length)\n .map(x => x.id);\n const left = table\n .getLeftFlatHeaders()\n .filter(column => !column.subHeaders.length)\n .map(x => x.id);\n const right = table\n .getRightFlatHeaders()\n .filter(column => !column.subHeaders.length)\n .map(x => x.id);\n\n if (left.length) {\n const index = all.indexOf(left[left.length - 1]);\n\n // add right border, hide the header seperator and add shadow when scrolled\n // we have to be specific so that nested tables don't inherit the same css\n styles.push(`table[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}),\n table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1}) {\n border-right-width: 1px;\n }\\ntable[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1})[data-cell-id^=\"__\"],\n table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1})[data-cell-id^=\"__\"] {\n border-right-color: transparent;\n }\\ntable[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}):after {\n content: none;\n }\\ntable[data-taco^='table'][data-table-horizontally-scrolled=\"true\"]#${tableId} > thead > tr > th:nth-child(${\n index + 1\n }),\n table[data-taco^='table'][data-table-horizontally-scrolled=\"true\"]#${tableId} > tbody > tr > td:nth-child(${\n index + 1\n }) {\n border-right-color: rgb(221, 221, 221);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 6px 0px 6px rgb(0 0 0/8%);\n }`);\n }\n\n if (right.length) {\n const index = all.indexOf(right[right.length - 1]);\n\n styles.push(`table[data-taco^='table']#${tableId} > thead > tr > th:nth-child(${index + 1}):not([data-cell-id^=\"__\"]),\n table[data-taco^='table']#${tableId} > tbody > tr > td:nth-child(${index + 1}):not([data-cell-id^=\"__\"]) {\n border-left-width: 1px;\n }`);\n }\n\n return styles.join('\\n');\n }, [columnPinning]);\n\n return stylesheet;\n}\n"],"names":["useStylesheetColumnFreezing","tableId","table","columnPinning","getState","stylesheet","React","useMemo","styles","all","getFlatHeaders","filter","column","subHeaders","length","map","x","id","left","getLeftFlatHeaders","right","getRightFlatHeaders","index","indexOf","push","join"],"mappings":";;SAGgBA,2BAA2BA,CAAkBC,OAAe,EAAEC,KAAwB;EAClG,MAAM;IAAEC;GAAe,GAAGD,KAAK,CAACE,QAAQ,EAAE;EAE1C,MAAMC,UAAU,GAAGC,cAAK,CAACC,OAAO,CAAC;IAC7B,MAAMC,MAAM,GAAa,EAAE;;IAG3B,MAAMC,GAAG,GAAGP,KAAK,CACZQ,cAAc,EAAE,CAChBC,MAAM,CAACC,MAAM,IAAI,CAACA,MAAM,CAACC,UAAU,CAACC,MAAM,CAAC,CAC3CC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,EAAE,CAAC;IACnB,MAAMC,IAAI,GAAGhB,KAAK,CACbiB,kBAAkB,EAAE,CACpBR,MAAM,CAACC,MAAM,IAAI,CAACA,MAAM,CAACC,UAAU,CAACC,MAAM,CAAC,CAC3CC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,EAAE,CAAC;IACnB,MAAMG,KAAK,GAAGlB,KAAK,CACdmB,mBAAmB,EAAE,CACrBV,MAAM,CAACC,MAAM,IAAI,CAACA,MAAM,CAACC,UAAU,CAACC,MAAM,CAAC,CAC3CC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,EAAE,CAAC;IAEnB,IAAIC,IAAI,CAACJ,MAAM,EAAE;MACb,MAAMQ,KAAK,GAAGb,GAAG,CAACc,OAAO,CAACL,IAAI,CAACA,IAAI,CAACJ,MAAM,GAAG,CAAC,CAAC,CAAC;;;MAIhDN,MAAM,CAACgB,IAAI,8BAA8BvB,uCAAuCqB,KAAK,GAAG;4CACxDrB,wCAAwCqB,KAAK,GAAG;;+CAE7CrB,wCAAwCqB,KAAK,GAAG;4CACnDrB,wCAAwCqB,KAAK,GAAG;;+CAE7CrB,wCAAwCqB,KAAK,GAAG;;wFAEPrB,wCACxEqB,KAAK,GAAG;qFAE6DrB,wCACrEqB,KAAK,GAAG;;;kBAIN,CAAC;;IAGX,IAAIF,KAAK,CAACN,MAAM,EAAE;MACd,MAAMQ,KAAK,GAAGb,GAAG,CAACc,OAAO,CAACH,KAAK,CAACA,KAAK,CAACN,MAAM,GAAG,CAAC,CAAC,CAAC;MAElDN,MAAM,CAACgB,IAAI,8BAA8BvB,uCAAuCqB,KAAK,GAAG;4CACxDrB,uCAAuCqB,KAAK,GAAG;;kBAEzE,CAAC;;IAGX,OAAOd,MAAM,CAACiB,IAAI,CAAC,IAAI,CAAC;GAC3B,EAAE,CAACtB,aAAa,CAAC,CAAC;EAEnB,OAAOE,UAAU;AACrB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
- import { getCellMinWidth } from '../../../primitives/Table/useTableManager/util/columns.js';
2
+ import { getCellMinWidth } from '../../useTableManager/util/columns.js';
3
3
 
4
- function useCssGridStylesheet(tableId, table, fontSize) {
4
+ function useStylesheetCssGrid(tableId, table, fontSize) {
5
5
  const tableMeta = table.options.meta;
6
6
  const allVisibleColumns = table.getVisibleLeafColumns();
7
7
  const columnSizing = table.getState().columnSizing;
@@ -26,7 +26,7 @@ function useCssGridStylesheet(tableId, table, fontSize) {
26
26
  } else if (width !== undefined) {
27
27
  const isLastColumn = index === allVisibleColumns.length - 1;
28
28
  if (width === 'grow' || Number.isNaN(width) && !isLastColumn) {
29
- size = `minmax(${minSize}px, 1fr)`;
29
+ size = `minmax(max-content, 1fr)`;
30
30
  } else {
31
31
  const minWidth = width < minSize ? minSize : width;
32
32
  if (isLastColumn) {
@@ -36,7 +36,7 @@ function useCssGridStylesheet(tableId, table, fontSize) {
36
36
  }
37
37
  }
38
38
  } else {
39
- size = `minmax(${minSize}px, auto)`;
39
+ size = `minmax(max-content, auto)`;
40
40
  }
41
41
  if (((_column$columnDef$met = column.columnDef.meta) === null || _column$columnDef$met === void 0 ? void 0 : _column$columnDef$met.enablePrinting) === false) {
42
42
  printSize = '';
@@ -48,11 +48,11 @@ function useCssGridStylesheet(tableId, table, fontSize) {
48
48
  return `${accum} ${size}`.trim();
49
49
  }, '');
50
50
  // we have to be specific so that nested tables don't inherit the same css
51
- const hiddenColumns = printHiddenColumns.map(id => `table[data-taco='report']#${tableId} > thead > tr > th[data-cell-id='${id}']\n,table[data-taco='report']#${tableId} > tbody > tr > td[data-cell-id='${id}']\n`).join(',');
52
- return `table[data-taco='report']#${tableId} { grid-template-columns: ${gridTemplateColumns}; grid-template-rows: ${gridTemplateRows}; }
53
- @media print { table[data-taco='report']#${tableId} { grid-template-columns: ${printGridTemplateColumns}; } ${hiddenColumns ? `${hiddenColumns} { display: none; }` : ''} }`;
51
+ const hiddenColumns = printHiddenColumns.map(id => `table[data-taco^='table']#${tableId} > thead > tr > th[data-cell-id='${id}']\n,table[data-taco^='table']#${tableId} > tbody > tr > td[data-cell-id='${id}']\n`).join(',');
52
+ return `table[data-taco^='table']#${tableId} { grid-template-columns: ${gridTemplateColumns}; grid-template-rows: ${gridTemplateRows}; }
53
+ @media print { table[data-taco^='table']#${tableId} { grid-template-columns: ${printGridTemplateColumns}; } ${hiddenColumns ? `${hiddenColumns} { display: none; }` : ''} }`;
54
54
  }, [allVisibleColumns, columnSizing, globalMinSize, tableMeta.rowActions.rowActionsLength]);
55
55
  }
56
56
 
57
- export { useCssGridStylesheet };
58
- //# sourceMappingURL=useCssGridStylesheet.js.map
57
+ export { useStylesheetCssGrid };
58
+ //# sourceMappingURL=useStylesheetCssGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStylesheetCssGrid.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useStylesheetCssGrid.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { TableFontSize } from '../../types';\nimport { getCellMinWidth } from '../../useTableManager/util/columns';\n\nexport function useStylesheetCssGrid<TType = unknown>(\n tableId: string,\n table: ReactTable<TType>,\n fontSize: TableFontSize\n): string {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const allVisibleColumns = table.getVisibleLeafColumns();\n const columnSizing = table.getState().columnSizing;\n const globalMinSize = getCellMinWidth(fontSize);\n\n // header body ?footer\n const gridTemplateRows = table.getRowModel().rows.length ? 'min-content 1fr min-content' : 'min-content 1fr';\n\n return React.useMemo(() => {\n let printGridTemplateColumns = '';\n const printHiddenColumns: string[] = [];\n\n const gridTemplateColumns = allVisibleColumns.reduce((accum, column, index) => {\n if (table.options.enableGrouping && column.getIsGrouped()) {\n return accum;\n }\n\n const minSize = column.columnDef.minSize ?? globalMinSize;\n const width = columnSizing[column.id] as number | 'grow';\n\n let size;\n let printSize;\n\n if (column.id === '__actions') {\n const minWidth = tableMeta.rowActions.rowActionsLength * 32 + 8; /* button margins l+r */\n size = `minmax(${minWidth}px, auto)`;\n } else if (width !== undefined) {\n const isLastColumn = index === allVisibleColumns.length - 1;\n\n if (width === 'grow' || (Number.isNaN(width) && !isLastColumn)) {\n size = `minmax(max-content, 1fr)`;\n } else {\n const minWidth = width < minSize ? minSize : width;\n\n if (isLastColumn) {\n size = `minmax(${minWidth}px, auto)`;\n } else {\n size = `${minWidth}px`;\n }\n }\n } else {\n size = `minmax(max-content, auto)`;\n }\n\n if (column.columnDef.meta?.enablePrinting === false) {\n printSize = '';\n printHiddenColumns.push(column.id);\n } else {\n printSize = 'auto';\n }\n\n printGridTemplateColumns = `${printGridTemplateColumns} ${printSize}`.trim();\n\n return `${accum} ${size}`.trim();\n }, '');\n\n // we have to be specific so that nested tables don't inherit the same css\n const hiddenColumns = printHiddenColumns\n .map(\n id =>\n `table[data-taco^='table']#${tableId} > thead > tr > th[data-cell-id='${id}']\\n,table[data-taco^='table']#${tableId} > tbody > tr > td[data-cell-id='${id}']\\n`\n )\n .join(',');\n\n return `table[data-taco^='table']#${tableId} { grid-template-columns: ${gridTemplateColumns}; grid-template-rows: ${gridTemplateRows}; }\n@media print { table[data-taco^='table']#${tableId} { grid-template-columns: ${printGridTemplateColumns}; } ${\n hiddenColumns ? `${hiddenColumns} { display: none; }` : ''\n } }`;\n }, [allVisibleColumns, columnSizing, globalMinSize, tableMeta.rowActions.rowActionsLength]);\n}\n"],"names":["useStylesheetCssGrid","tableId","table","fontSize","tableMeta","options","meta","allVisibleColumns","getVisibleLeafColumns","columnSizing","getState","globalMinSize","getCellMinWidth","gridTemplateRows","getRowModel","rows","length","React","useMemo","printGridTemplateColumns","printHiddenColumns","gridTemplateColumns","reduce","accum","column","index","enableGrouping","getIsGrouped","minSize","_column$columnDef$min","columnDef","width","id","size","printSize","minWidth","rowActions","rowActionsLength","undefined","isLastColumn","Number","isNaN","_column$columnDef$met","enablePrinting","push","trim","hiddenColumns","map","join"],"mappings":";;;SAKgBA,oBAAoBA,CAChCC,OAAe,EACfC,KAAwB,EACxBC,QAAuB;EAEvB,MAAMC,SAAS,GAAGF,KAAK,CAACG,OAAO,CAACC,IAA6B;EAC7D,MAAMC,iBAAiB,GAAGL,KAAK,CAACM,qBAAqB,EAAE;EACvD,MAAMC,YAAY,GAAGP,KAAK,CAACQ,QAAQ,EAAE,CAACD,YAAY;EAClD,MAAME,aAAa,GAAGC,eAAe,CAACT,QAAQ,CAAC;;EAG/C,MAAMU,gBAAgB,GAAGX,KAAK,CAACY,WAAW,EAAE,CAACC,IAAI,CAACC,MAAM,GAAG,6BAA6B,GAAG,iBAAiB;EAE5G,OAAOC,cAAK,CAACC,OAAO,CAAC;IACjB,IAAIC,wBAAwB,GAAG,EAAE;IACjC,MAAMC,kBAAkB,GAAa,EAAE;IAEvC,MAAMC,mBAAmB,GAAGd,iBAAiB,CAACe,MAAM,CAAC,CAACC,KAAK,EAAEC,MAAM,EAAEC,KAAK;;MACtE,IAAIvB,KAAK,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W,IAAI,EAAE;MAE5E,UAAUtB,SAASU,MAAM,CAACY,IAAI,EAAE;KACnC,EAAE,EAAE,CAAC;;IAGN,MAAMC,aAAa,GAAG1B,kBAAkB,CACnC2B,GAAG,CACAf,EAAE,iCAC+B/B,2CAA2C+B,oCAAoC/B,2CAA2C+B,QAAQ,CACtK,CACAgB,IAAI,CAAC,GAAG,CAAC;IAEd,oCAAoC/C,oCAAoCoB,4CAA4CR;2CACjFZ,oCAAoCkB,+BACnE2B,aAAa,MAAMA,kCAAkC,GAAG,MACxD;GACP,EAAE,CAACvC,iBAAiB,EAAEE,YAAY,EAAEE,aAAa,EAAEP,SAAS,CAACgC,UAAU,CAACC,gBAAgB,CAAC,CAAC;AAC/F;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { isElementInsideOverlay, isSiblingElementInsideSameParentOverlay, isElementInteractive, isElementInsideOrTriggeredFromContainer } from '../../../utils/dom.js';
2
+ import { isElementInsideOverlay, isSiblingElementInsideSameParentOverlay, isElementInteractive, isElementInsideOrTriggeredFromContainer } from '../../../../utils/dom.js';
3
3
 
4
4
  function useTableGlobalShortcuts(table, tableRef, scrollToIndex) {
5
5
  const tableMeta = table.options.meta;
@@ -10,7 +10,7 @@ function useTableGlobalShortcuts(table, tableRef, scrollToIndex) {
10
10
  if (isElementInsideOverlay(trigger) && !isSiblingElementInsideSameParentOverlay(trigger, tableRef.current) || isElementInteractive(trigger) && !isElementInsideOrTriggeredFromContainer(trigger, tableRef.current)) {
11
11
  return;
12
12
  }
13
- tableMeta.rowActive.handleKeyDown(event, rows.length, scrollToIndex, tableRef);
13
+ tableMeta.rowActive.handleKeyDown(event, rows.length, scrollToIndex);
14
14
  tableMeta.rowSelection.handleKeyDown(event, table);
15
15
  if (tableMeta.rowActive.rowActiveIndex !== undefined) {
16
16
  var _rows$tableMeta$rowAc;
@@ -22,9 +22,7 @@ function useTableGlobalShortcuts(table, tableRef, scrollToIndex) {
22
22
  document.removeEventListener('keydown', handleKeyDown);
23
23
  };
24
24
  },
25
- // See https://github.com/e-conomic/taco/blob/dev/packages/taco/src/components/Table3/strategies/virtualised.tsx#L143
26
- // scrollToIndex function changes when row count changes, so it is important to update handlers with new
27
- // scrollToIndex function.
25
+ // scrollToIndex function changes when row count changes, so it is important to update handlers
28
26
  [tableRef.current, tableMeta.rowActive.rowActiveIndex, scrollToIndex]);
29
27
  }
30
28
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableGlobalShortcuts.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useTableGlobalShortcuts.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { TableRef } from '../../types';\nimport {\n isElementInsideOrTriggeredFromContainer,\n isElementInsideOverlay,\n isElementInteractive,\n isSiblingElementInsideSameParentOverlay,\n} from '../../../../utils/dom';\n\nexport function useTableGlobalShortcuts<TType = unknown>(\n table: ReactTable<TType>,\n tableRef: React.RefObject<TableRef>,\n scrollToIndex: (index: number) => void\n) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const rows = table.getRowModel().rows;\n\n React.useEffect(\n () => {\n const handleKeyDown = (event: KeyboardEvent) => {\n const trigger = event.target as HTMLElement;\n\n if (\n (isElementInsideOverlay(trigger) && !isSiblingElementInsideSameParentOverlay(trigger, tableRef.current)) ||\n (isElementInteractive(trigger) && !isElementInsideOrTriggeredFromContainer(trigger, tableRef.current))\n ) {\n return;\n }\n\n tableMeta.rowActive.handleKeyDown(event, rows.length, scrollToIndex);\n tableMeta.rowSelection.handleKeyDown(event, table);\n\n if (tableMeta.rowActive.rowActiveIndex !== undefined) {\n tableMeta.rowClick.handleKeyDown(event, rows[tableMeta.rowActive.rowActiveIndex]?.original);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n },\n\n // scrollToIndex function changes when row count changes, so it is important to update handlers\n [tableRef.current, tableMeta.rowActive.rowActiveIndex, scrollToIndex]\n );\n}\n"],"names":["useTableGlobalShortcuts","table","tableRef","scrollToIndex","tableMeta","options","meta","rows","getRowModel","React","useEffect","handleKeyDown","event","trigger","target","isElementInsideOverlay","isSiblingElementInsideSameParentOverlay","current","isElementInteractive","isElementInsideOrTriggeredFromContainer","rowActive","length","rowSelection","rowActiveIndex","undefined","_rows$tableMeta$rowAc","rowClick","original","document","addEventListener","removeEventListener"],"mappings":";;;SAUgBA,uBAAuBA,CACnCC,KAAwB,EACxBC,QAAmC,EACnCC,aAAsC;EAEtC,MAAMC,SAAS,GAAGH,KAAK,CAACI,OAAO,CAACC,IAA6B;EAC7D,MAAMC,IAAI,GAAGN,KAAK,CAACO,WAAW,EAAE,CAACD,IAAI;EAErCE,cAAK,CAACC,SAAS,CACX;IACI,MAAMC,aAAa,GAAIC,KAAoB;MACvC,MAAMC,OAAO,GAAGD,KAAK,CAACE,MAAqB;MAE3C,IACKC,sBAAsB,CAACF,OAAO,CAAC,IAAI,CAACG,uCAAuC,CAACH,OAAO,EAAEX,QAAQ,CAACe,OAAO,CAAC,IACtGC,oBAAoB,CAACL,OAAO,CAAC,IAAI,CAACM,uCAAuC,CAACN,OAAO,EAAEX,QAAQ,CAACe,OAAO,CAAE,EACxG;QACE;;MAGJb,SAAS,CAACgB,SAAS,CAACT,aAAa,CAACC,KAAK,EAAEL,IAAI,CAACc,MAAM,EAAElB,aAAa,CAAC;MACpEC,SAAS,CAACkB,YAAY,CAACX,aAAa,CAACC,KAAK,EAAEX,KAAK,CAAC;MAElD,IAAIG,SAAS,CAACgB,SAAS,CAACG,cAAc,KAAKC,SAAS,EAAE;QAAA,IAAAC,qBAAA;QAClDrB,SAAS,CAACsB,QAAQ,CAACf,aAAa,CAACC,KAAK,GAAAa,qBAAA,GAAElB,IAAI,CAACH,SAAS,CAACgB,SAAS,CAACG,cAAc,CAAC,cAAAE,qBAAA,uBAAxCA,qBAAA,CAA0CE,QAAQ,CAAC;;KAElG;IAEDC,QAAQ,CAACC,gBAAgB,CAAC,SAAS,EAAElB,aAAa,CAAC;IAEnD,OAAO;MACHiB,QAAQ,CAACE,mBAAmB,CAAC,SAAS,EAAEnB,aAAa,CAAC;KACzD;GACJ;;EAGD,CAACT,QAAQ,CAACe,OAAO,EAAEb,SAAS,CAACgB,SAAS,CAACG,cAAc,EAAEpB,aAAa,CAAC,CACxE;AACL;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableRef.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useTableRef.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable } from '@tanstack/react-table';\nimport { TableRef } from '../../types';\n\nexport function useTableRef<TType = unknown>(table: ReactTable<TType>, ref: React.RefObject<TableRef>) {\n React.useEffect(() => {\n if (ref.current) {\n ref.current.instance = {\n resetFiltering: () => table.resetColumnFilters(),\n resetRowExpansion: () => table.resetExpanded(),\n resetRowSelection: () => table.resetRowSelection(),\n resetSorting: () => table.resetSorting(),\n };\n }\n }, [table, ref.current]);\n}\n"],"names":["useTableRef","table","ref","React","useEffect","current","instance","resetFiltering","resetColumnFilters","resetRowExpansion","resetExpanded","resetRowSelection","resetSorting"],"mappings":";;SAIgBA,WAAWA,CAAkBC,KAAwB,EAAEC,GAA8B;EACjGC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIF,GAAG,CAACG,OAAO,EAAE;MACbH,GAAG,CAACG,OAAO,CAACC,QAAQ,GAAG;QACnBC,cAAc,EAAEA,MAAMN,KAAK,CAACO,kBAAkB,EAAE;QAChDC,iBAAiB,EAAEA,MAAMR,KAAK,CAACS,aAAa,EAAE;QAC9CC,iBAAiB,EAAEA,MAAMV,KAAK,CAACU,iBAAiB,EAAE;QAClDC,YAAY,EAAEA,MAAMX,KAAK,CAACW,YAAY;OACzC;;GAER,EAAE,CAACX,KAAK,EAAEC,GAAG,CAACG,OAAO,CAAC,CAAC;AAC5B;;;;"}
@@ -1,11 +1,11 @@
1
1
  import React__default from 'react';
2
2
  import { useVirtualizer, defaultRangeExtractor } from '@tanstack/react-virtual';
3
- import { HEADER_ROW_HEIGHT_ESTIMATE, ROW_HEIGHT_ESTIMATES } from './rows.js';
3
+ import { HEADER_ROW_HEIGHT_ESTIMATE, ROW_HEIGHT_ESTIMATES } from '../util/rows.js';
4
4
  import { Row } from '../components/Row/Row.js';
5
5
 
6
6
  const TABLE_SCROLL_PADDING_BOTTOM = 36;
7
7
  const TABLE_PADDING_BOTTOM = 120;
8
- function useTableRenderer(table, tableRef, defaultRowActiveIndex) {
8
+ function useTableRenderer(renderers, table, tableRef, defaultRowActiveIndex) {
9
9
  var _table$getState$group, _virtualItems$;
10
10
  const tableMeta = table.options.meta;
11
11
  const rows = table.getRowModel().rows;
@@ -86,7 +86,9 @@ function useTableRenderer(table, tableRef, defaultRowActiveIndex) {
86
86
  row: row,
87
87
  index: virtualRow.index,
88
88
  table: table,
89
- measureRow: measureRow
89
+ measureRow: measureRow,
90
+ renderer: renderers.row,
91
+ cellRenderer: renderers.cell
90
92
  });
91
93
  });
92
94
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableRenderer.js","sources":["../../../../../../../../../src/primitives/Table/Core/features/useTableRenderer.tsx"],"sourcesContent":["import React, { CSSProperties } from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport {\n useVirtualizer,\n defaultRangeExtractor,\n ScrollToOptions as ReactVirtualScrollToOptions,\n VirtualItem,\n} from '@tanstack/react-virtual';\nimport { HEADER_ROW_HEIGHT_ESTIMATE, ROW_HEIGHT_ESTIMATES } from '../util/rows';\nimport { Row } from '../components/Row/Row';\nimport { useTableRenderers } from '../types';\nimport { TableRef } from '../../types';\n\nconst TABLE_SCROLL_PADDING_BOTTOM = 36;\nconst TABLE_PADDING_BOTTOM = 120;\n\nexport function useTableRenderer<TType = unknown>(\n renderers: useTableRenderers<TType>,\n table: ReactTable<TType>,\n tableRef: React.RefObject<TableRef>,\n defaultRowActiveIndex?: number | undefined\n) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const rows = table.getRowModel().rows;\n const HEADER_OFFSET_TOTAL = HEADER_ROW_HEIGHT_ESTIMATE * table.getHeaderGroups().length;\n\n // expanded rows\n const { createRowMeasurer, estimateSize } = useRowHeightVirtualisation<TType>(table);\n\n // row groups\n const rangeExtractor = useRowGroupVirtualisation<TType>(table);\n\n const virtualiser = useVirtualizer({\n count: rows.length,\n estimateSize,\n getScrollElement: () => tableRef.current,\n overscan: tableMeta.printing.isPrinting ? rows.length : undefined,\n rangeExtractor,\n scrollPaddingStart: table.getState().grouping?.length ? HEADER_ROW_HEIGHT_ESTIMATE : undefined,\n scrollPaddingEnd: HEADER_OFFSET_TOTAL + TABLE_SCROLL_PADDING_BOTTOM,\n paddingEnd: TABLE_PADDING_BOTTOM,\n });\n\n const virtualItems = virtualiser.getVirtualItems();\n\n const scrollToIndex = React.useCallback(\n (index: number, options: ReactVirtualScrollToOptions = { align: 'auto', behavior: 'smooth' }) => {\n const notSmooth: ReactVirtualScrollToOptions = { ...options, behavior: 'auto' };\n\n if (tableRef.current) {\n if (index === 0) {\n virtualiser.scrollToOffset(0, notSmooth);\n } else if (index >= virtualItems.length - 1) {\n // scrolling to the last row isn't easy when rows have dynamic height\n // because you don't know all the heights until they render...\n // so when you skip to the last you don't know if \"the end\" is actually the end\n virtualiser.scrollToIndex(index, notSmooth);\n\n // https://github.com/TanStack/virtual/issues/216\n setTimeout(() => {\n virtualiser.scrollToIndex(index, notSmooth);\n\n setTimeout(() => {\n virtualiser.scrollToIndex(index, notSmooth);\n }, 150);\n }, 150);\n } else {\n virtualiser.scrollToIndex(index, options);\n }\n }\n },\n [virtualItems.length, tableRef.current]\n );\n\n // styling for offsetting rows - this \"is\" the virtualisation\n const [paddingTop, paddingBottom] =\n virtualItems.length > 0\n ? [\n // use row 1 not 0, because 0 might be sticky in grouped tables and it's start value will always be 0\n Math.max(\n 0,\n (virtualItems[1] ?? virtualItems[0]).start - virtualiser.options.scrollMargin - virtualItems[0].size\n ),\n Math.max(0, virtualiser.getTotalSize() - virtualItems[virtualItems.length - 1].end),\n ]\n : [0, 0];\n\n // ensure default active rows are scrolled to\n React.useEffect(() => {\n if (defaultRowActiveIndex) {\n scrollToIndex(defaultRowActiveIndex, { align: 'center', behavior: 'auto' });\n }\n }, []);\n\n // rendered output\n let style: CSSProperties = {};\n let content: JSX.Element[] | null = null;\n\n if (rows.length) {\n style = {\n height: `${virtualiser.getTotalSize()}px`,\n paddingBottom,\n paddingTop,\n };\n content = virtualItems.map(virtualRow => {\n const row = rows[virtualRow.index];\n const measureRow = createRowMeasurer(virtualiser.resizeItem, virtualRow);\n return (\n <Row\n key={row.id}\n row={row}\n index={virtualRow.index}\n table={table}\n measureRow={measureRow}\n renderer={renderers.row}\n cellRenderer={renderers.cell}\n />\n );\n });\n }\n\n return {\n rows: content,\n style,\n scrollToIndex,\n };\n}\n\n// support varying row heights - variable row heights, row expansion\nfunction useRowHeightVirtualisation<TType = unknown>(table: ReactTable<TType>) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const rows = table.getRowModel().rows;\n const expandedState = table.getState().expanded;\n\n const [expandedRowHeightsCache, setExpandedRowHeightsCache] = React.useState<Record<number, number>>({});\n\n // look at all registered expanded row heights and use them to form a more accurate average size\n // it might be worth considering if taking the max, or an upper bound, would be better\n const averageExpandedRowHeight = React.useMemo(() => {\n const values: number[] = Object.values(expandedRowHeightsCache);\n return values.length ? values.reduce((a, b) => a + b, 0) / values.length : 0;\n }, [expandedRowHeightsCache]);\n\n // row heights\n const estimateSize = React.useCallback(\n (index: number) => {\n const rowHeight = tableMeta.rowHeight.height\n ? ROW_HEIGHT_ESTIMATES[tableMeta.rowHeight.height]\n : ROW_HEIGHT_ESTIMATES.medium;\n\n if (expandedState === true || rows[index]?.getIsExpanded?.()) {\n return rowHeight + averageExpandedRowHeight;\n }\n\n return rowHeight;\n },\n [tableMeta.rowHeight.height, averageExpandedRowHeight, expandedState]\n );\n\n const createRowMeasurer = React.useCallback(\n (resizeItem: (item: VirtualItem, size: number) => void, virtualRow: VirtualItem) =>\n (rowHeight: number, expansionHeight?: number) => {\n // register the expansion height so that it can be used to determine an average\n if (expansionHeight) {\n setExpandedRowHeightsCache(cache => ({ ...cache, [virtualRow.index]: expansionHeight }));\n }\n\n // update the whole row's size to include the expanded height\n resizeItem(virtualRow, rowHeight + (expansionHeight ?? 0));\n },\n []\n );\n\n return { estimateSize, createRowMeasurer };\n}\n\n// support virtualised row groups (where the row group headers are sticky)\nfunction useRowGroupVirtualisation<TType = unknown>(table: ReactTable<TType>) {\n const rows = table.getRowModel().rows;\n const isTableGrouped = !!table.getState().grouping.length;\n\n const rowGroupIndexes = React.useMemo(() => {\n const indexes: number[] = [];\n\n if (isTableGrouped) {\n rows.forEach((row, index) => {\n if (row.getIsGrouped()) {\n indexes.push(index);\n }\n });\n }\n\n return indexes;\n }, []);\n\n // this is taken from the react-virtual docs/examples\n const rangeExtractor = React.useCallback(\n range => {\n const activeRowGroupIndex =\n [...rowGroupIndexes].reverse().find(index => range.startIndex >= index) ?? rowGroupIndexes[0];\n\n const next = new Set([activeRowGroupIndex, ...defaultRangeExtractor(range)]);\n return [...next].sort((a, b) => a - b);\n },\n [rowGroupIndexes]\n );\n\n return isTableGrouped ? rangeExtractor : undefined;\n}\n"],"names":["TABLE_SCROLL_PADDING_BOTTOM","TABLE_PADDING_BOTTOM","useTableRenderer","renderers","table","tableRef","defaultRowActiveIndex","tableMeta","options","meta","rows","getRowModel","HEADER_OFFSET_TOTAL","HEADER_ROW_HEIGHT_ESTIMATE","getHeaderGroups","length","createRowMeasurer","estimateSize","useRowHeightVirtualisation","rangeExtractor","useRowGroupVirtualisation","virtualiser","useVirtualizer","count","getScrollElement","current","overscan","printing","isPrinting","undefined","scrollPaddingStart","_table$getState$group","getState","grouping","scrollPaddingEnd","paddingEnd","virtualItems","getVirtualItems","scrollToIndex","React","useCallback","index","align","behavior","notSmooth","scrollToOffset","setTimeout","paddingTop","paddingBottom","Math","max","_virtualItems$","start","scrollMargin","size","getTotalSize","end","useEffect","style","content","height","map","virtualRow","row","measureRow","resizeItem","Row","key","id","renderer","cellRenderer","cell","expandedState","expanded","expandedRowHeightsCache","setExpandedRowHeightsCache","useState","averageExpandedRowHeight","useMemo","values","Object","reduce","a","b","rowHeight","ROW_HEIGHT_ESTIMATES","medium","_rows$index","_rows$index$getIsExpa","getIsExpanded","call","expansionHeight","cache","isTableGrouped","rowGroupIndexes","indexes","forEach","getIsGrouped","push","range","activeRowGroupIndex","_reverse$find","reverse","find","startIndex","next","Set","defaultRangeExtractor","sort"],"mappings":";;;;;AAaA,MAAMA,2BAA2B,GAAG,EAAE;AACtC,MAAMC,oBAAoB,GAAG,GAAG;SAEhBC,gBAAgBA,CAC5BC,SAAmC,EACnCC,KAAwB,EACxBC,QAAmC,EACnCC,qBAA0C;;EAE1C,MAAMC,SAAS,GAAGH,KAAK,CAACI,OAAO,CAACC,IAA6B;EAC7D,MAAMC,IAAI,GAAGN,KAAK,CAACO,WAAW,EAAE,CAACD,IAAI;EACrC,MAAME,mBAAmB,GAAGC,0BAA0B,GAAGT,KAAK,CAACU,eAAe,EAAE,CAACC,MAAM;;EAGvF,MAAM;IAAEC,iBAAiB;IAAEC;GAAc,GAAGC,0BAA0B,CAAQd,KAAK,CAAC;;EAGpF,MAAMe,cAAc,GAAGC,yBAAyB,CAAQhB,KAAK,CAAC;EAE9D,MAAMiB,WAAW,GAAGC,cAAc,CAAC;IAC/BC,KAAK,EAAEb,IAAI,CAACK,MAAM;IAClBE,YAAY;IACZO,gBAAgB,EAAEA,MAAMnB,QAAQ,CAACoB,OAAO;IACxCC,QAAQ,EAAEnB,SAAS,CAACoB,QAAQ,CAACC,UAAU,GAAGlB,IAAI,CAACK,MAAM,GAAGc,SAAS;IACjEV,cAAc;IACdW,kBAAkB,EAAE,CAAAC,qBAAA,GAAA3B,KAAK,CAAC4B,QAAQ,EAAE,CAACC,QAAQ,cAAAF,qB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,KAAK,CAAC,cAAA4D,aAAA,cAAAA,aAAA,GAAIP,eAAe,CAAC,CAAC,CAAC;IAEjG,MAAMW,IAAI,GAAG,IAAIC,GAAG,CAAC,CAACN,mBAAmB,EAAE,GAAGO,qBAAqB,CAACR,KAAK,CAAC,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAGM,IAAI,CAAC,CAACG,IAAI,CAAC,CAAC1B,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGC,CAAC,CAAC;GACzC,EACD,CAACW,eAAe,CAAC,CACpB;EAED,OAAOD,cAAc,GAAG1E,cAAc,GAAGU,SAAS;AACtD;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { isElementInsideOrTriggeredFromContainer, isElementInteractive } from '../../../utils/dom.js';
2
+ import { isElementInsideOrTriggeredFromContainer, isElementInteractive } from '../../../../utils/dom.js';
3
3
 
4
4
  function useTableRowActiveListener(table, tableRef) {
5
5
  const tableMeta = table.options.meta;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableRowActiveListener.js","sources":["../../../../../../../../../src/primitives/Table/Core/listeners/useTableRowActiveListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { isElementInsideOrTriggeredFromContainer, isElementInteractive } from '../../../../utils/dom';\n\nexport function useTableRowActiveListener<TType = unknown>(\n table: ReactTable<TType>,\n tableRef: React.RefObject<HTMLTableElement>\n) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n // move focus to the row when active row changes, this makes sure we start within the row when tabbing\n React.useEffect(() => {\n if (tableMeta.rowActive.rowActiveIndex !== undefined) {\n const activeRow = tableRef.current?.querySelector('tbody tr[data-row-active=\"true\"]') ?? null;\n\n // if the focused element, or it's parent if it's portalled, aren't in the row, then focus the row\n // this ensures the next tab press starts at the row\n if (\n !isElementInsideOrTriggeredFromContainer(document.activeElement, activeRow) &&\n !isElementInteractive(document.activeElement)\n ) {\n (activeRow as HTMLElement)?.focus?.({ preventScroll: true });\n }\n }\n }, [tableMeta.rowActive.rowActiveIndex]);\n}\n"],"names":["useTableRowActiveListener","table","tableRef","tableMeta","options","meta","React","useEffect","rowActive","rowActiveIndex","undefined","_tableRef$current$que","_tableRef$current","activeRow","current","querySelector","isElementInsideOrTriggeredFromContainer","document","activeElement","isElementInteractive","_activeRow$focus","focus","call","preventScroll"],"mappings":";;;SAIgBA,yBAAyBA,CACrCC,KAAwB,EACxBC,QAA2C;EAE3C,MAAMC,SAAS,GAAGF,KAAK,CAACG,OAAO,CAACC,IAA6B;;EAG7DC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIJ,SAAS,CAACK,SAAS,CAACC,cAAc,KAAKC,SAAS,EAAE;MAAA,IAAAC,qBAAA,EAAAC,iBAAA;MAClD,MAAMC,SAAS,IAAAF,qBAAA,IAAAC,iBAAA,GAAGV,QAAQ,CAACY,OAAO,cAAAF,iBAAA,uBAAhBA,iBAAA,CAAkBG,aAAa,CAAC,kCAAkC,CAAC,cAAAJ,qBAAA,cAAAA,qBAAA,GAAI,IAAI;;;MAI7F,IACI,CAACK,uCAAuC,CAACC,QAAQ,CAACC,aAAa,EAAEL,SAAS,CAAC,IAC3E,CAACM,oBAAoB,CAACF,QAAQ,CAACC,aAAa,CAAC,EAC/C;QAAA,IAAAE,gBAAA;QACGP,SAAyB,aAAzBA,SAAyB,wBAAAO,gBAAA,GAAzBP,SAAyB,CAAEQ,KAAK,cAAAD,gBAAA,uBAAhCA,gBAAA,CAAAE,IAAA,CAAAT,SAAyB,EAAU;UAAEU,aAAa,EAAE;SAAM,CAAC;;;GAGvE,EAAE,CAACpB,SAAS,CAACK,SAAS,CAACC,cAAc,CAAC,CAAC;AAC5C;;;;"}
@@ -0,0 +1,50 @@
1
+ import { useMergedRef } from '../../../hooks/useMergedRef.js';
2
+ import { useTableManager } from '../useTableManager/useTableManager.js';
3
+ import { useStylesheet } from './features/useStylesheet.js';
4
+ import { useTableGlobalShortcuts } from './features/useTableGlobalShortcuts.js';
5
+ import { useTableRef } from './features/useTableRef.js';
6
+ import { useTableRenderer } from './features/useTableRenderer.js';
7
+ import { useTableRowActiveListener } from './listeners/useTableRowActiveListener.js';
8
+ import { renderer } from './components/Columns/Internal/Actions.js';
9
+ import { renderer as renderer$1 } from './components/Columns/Internal/Drag.js';
10
+ import { renderer as renderer$2 } from './components/Columns/Internal/Expansion.js';
11
+ import { renderer as renderer$3 } from './components/Columns/Internal/Selection.js';
12
+
13
+ const INTERNAL_RENDERERS = {
14
+ rowActions: renderer,
15
+ rowDrag: renderer$1,
16
+ rowExpansion: renderer$2,
17
+ rowSelection: renderer$3
18
+ };
19
+ function useTable(props, externalRef, renderers, meta) {
20
+ // create a ref and merge with the consumer's ref
21
+ const ref = useMergedRef(externalRef);
22
+ // configure the table
23
+ const manager = useTableManager(props, meta, INTERNAL_RENDERERS);
24
+ // configure the virtualised renderer
25
+ const renderer = useTableRenderer(renderers, manager.instance, ref, props.defaultRowActiveIndex);
26
+ // configure dynamic styling
27
+ const stylesheet = useStylesheet(manager.id, manager.instance);
28
+ // configure global keyboard shortcuts
29
+ useTableGlobalShortcuts(manager.instance, ref, renderer.scrollToIndex);
30
+ // augment the ref with some helper functions
31
+ useTableRef(manager.instance, ref);
32
+ // listeners - they are here and not in useTableManager because they rely on the dom and the table ref
33
+ useTableRowActiveListener(manager.instance, ref);
34
+ return {
35
+ ...manager,
36
+ props: {
37
+ customSettings: props.customSettings,
38
+ emptyState: props.emptyState,
39
+ toolbarLeft: props.toolbarLeft,
40
+ toolbarPanel: props.toolbarPanel,
41
+ toolbarRight: props.toolbarRight
42
+ },
43
+ renderer,
44
+ stylesheet,
45
+ ref
46
+ };
47
+ }
48
+
49
+ export { useTable };
50
+ //# sourceMappingURL=useTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTable.js","sources":["../../../../../../../../src/primitives/Table/Core/useTable.ts"],"sourcesContent":["import { TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { TableProps } from '../types';\nimport { useTableManager } from '../useTableManager/useTableManager';\nimport { useStylesheet } from './features/useStylesheet';\nimport { useTableGlobalShortcuts } from './features/useTableGlobalShortcuts';\nimport { useTableRef } from './features/useTableRef';\nimport { useTableRenderer } from './features/useTableRenderer';\nimport { useTableRowActiveListener } from './listeners/useTableRowActiveListener';\nimport { TableRef } from '../types';\nimport { useTableRenderers } from './types';\nimport { renderer as rowActions } from './components/Columns/Internal/Actions';\nimport { renderer as rowDrag } from './components/Columns/Internal/Drag';\nimport { renderer as rowExpansion } from './components/Columns/Internal/Expansion';\nimport { renderer as rowSelection } from './components/Columns/Internal/Selection';\nimport { useTableManagerInternalColumns } from '../useTableManager/types';\n\nconst INTERNAL_RENDERERS = {\n rowActions,\n rowDrag,\n rowExpansion,\n rowSelection,\n};\n\nexport function useTable<TType = unknown, TMeta = {}>(\n props: TableProps<TType>,\n externalRef: React.Ref<TableRef>,\n renderers: useTableRenderers<TType>,\n meta?: Partial<ReactTableMeta<TType>> & TMeta\n) {\n // create a ref and merge with the consumer's ref\n const ref = useMergedRef<TableRef>(externalRef);\n // configure the table\n const manager = useTableManager<TType>(props, meta, INTERNAL_RENDERERS as useTableManagerInternalColumns<TType>);\n // configure the virtualised renderer\n const renderer = useTableRenderer<TType>(renderers, manager.instance, ref, props.defaultRowActiveIndex);\n // configure dynamic styling\n const stylesheet = useStylesheet(manager.id, manager.instance);\n // configure global keyboard shortcuts\n useTableGlobalShortcuts(manager.instance, ref, renderer.scrollToIndex);\n // augment the ref with some helper functions\n useTableRef(manager.instance, ref);\n\n // listeners - they are here and not in useTableManager because they rely on the dom and the table ref\n useTableRowActiveListener(manager.instance, ref);\n\n return {\n ...manager,\n props: {\n customSettings: props.customSettings,\n emptyState: props.emptyState,\n toolbarLeft: props.toolbarLeft,\n toolbarPanel: props.toolbarPanel,\n toolbarRight: props.toolbarRight,\n },\n renderer,\n stylesheet,\n ref,\n };\n}\n"],"names":["INTERNAL_RENDERERS","rowActions","rowDrag","rowExpansion","rowSelection","useTable","props","externalRef","renderers","meta","ref","useMergedRef","manager","useTableManager","renderer","useTableRenderer","instance","defaultRowActiveIndex","stylesheet","useStylesheet","id","useTableGlobalShortcuts","scrollToIndex","useTableRef","useTableRowActiveListener","customSettings","emptyState","toolbarLeft","toolbarPanel","toolbarRight"],"mappings":";;;;;;;;;;;;AAiBA,MAAMA,kBAAkB,GAAG;cACvBC,QAAU;WACVC,UAAO;gBACPC,UAAY;gBACZC;CACH;SAEeC,QAAQA,CACpBC,KAAwB,EACxBC,WAAgC,EAChCC,SAAmC,EACnCC,IAA6C;;EAG7C,MAAMC,GAAG,GAAGC,YAAY,CAAWJ,WAAW,CAAC;;EAE/C,MAAMK,OAAO,GAAGC,eAAe,CAAQP,KAAK,EAAEG,IAAI,EAAET,kBAA2D,CAAC;;EAEhH,MAAMc,QAAQ,GAAGC,gBAAgB,CAAQP,SAAS,EAAEI,OAAO,CAACI,QAAQ,EAAEN,GAAG,EAAEJ,KAAK,CAACW,qBAAqB,CAAC;;EAEvG,MAAMC,UAAU,GAAGC,aAAa,CAACP,OAAO,CAACQ,EAAE,EAAER,OAAO,CAACI,QAAQ,CAAC;;EAE9DK,uBAAuB,CAACT,OAAO,CAACI,QAAQ,EAAEN,GAAG,EAAEI,QAAQ,CAACQ,aAAa,CAAC;;EAEtEC,WAAW,CAACX,OAAO,CAACI,QAAQ,EAAEN,GAAG,CAAC;;EAGlCc,yBAAyB,CAACZ,OAAO,CAACI,QAAQ,EAAEN,GAAG,CAAC;EAEhD,OAAO;IACH,GAAGE,OAAO;IACVN,KAAK,EAAE;MACHmB,cAAc,EAAEnB,KAAK,CAACmB,cAAc;MACpCC,UAAU,EAAEpB,KAAK,CAACoB,UAAU;MAC5BC,WAAW,EAAErB,KAAK,CAACqB,WAAW;MAC9BC,YAAY,EAAEtB,KAAK,CAACsB,YAAY;MAChCC,YAAY,EAAEvB,KAAK,CAACuB;KACvB;IACDf,QAAQ;IACRI,UAAU;IACVR;GACH;AACL;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows.js","sources":["../../../../../../../../../src/primitives/Table/Core/util/rows.ts"],"sourcesContent":["export const ROW_HEIGHT_ESTIMATES = {\n short: 33,\n medium: 41,\n tall: 49,\n 'extra-tall': 57,\n};\n\nexport const HEADER_ROW_HEIGHT_ESTIMATE = ROW_HEIGHT_ESTIMATES.medium + 2; // header includes 2px border\n"],"names":["ROW_HEIGHT_ESTIMATES","short","medium","tall","HEADER_ROW_HEIGHT_ESTIMATE"],"mappings":"MAAaA,oBAAoB,GAAG;EAChCC,KAAK,EAAE,EAAE;EACTC,MAAM,EAAE,EAAE;EACVC,IAAI,EAAE,EAAE;EACR,YAAY,EAAE;;MAGLC,0BAA0B,GAAGJ,oBAAoB,CAACE,MAAM,GAAG,EAAE;;;;"}