@economic/taco 2.24.0 → 2.25.1-alpha.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1179) hide show
  1. package/dist/esm/index.css +208 -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 +11 -1
  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 -43
  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 +3 -3
  13. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  14. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -1
  15. package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
  16. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  17. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  18. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  19. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  20. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -1
  21. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -1
  23. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  24. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
  25. package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  27. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  29. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  30. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  31. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  32. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  33. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  34. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  35. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  36. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  37. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  38. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  39. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  40. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  41. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  42. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  43. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  44. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  45. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  46. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  47. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  48. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  49. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  50. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  51. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  52. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  53. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  54. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  55. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  56. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  57. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  58. package/dist/esm/packages/taco/src/index.js +1 -1
  59. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  60. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  62. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  63. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +72 -0
  64. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  65. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  66. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +25 -0
  68. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  69. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +60 -0
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  71. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +33 -0
  72. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  73. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +74 -0
  74. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  75. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +101 -0
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  77. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  78. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  79. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +71 -0
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  81. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +167 -0
  82. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  83. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  84. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +39 -0
  85. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  86. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +216 -0
  87. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  88. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +28 -0
  89. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  90. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +158 -0
  91. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +60 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  94. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +41 -0
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  96. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +24 -0
  97. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +120 -0
  99. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  100. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  101. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +30 -0
  102. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  103. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +9 -0
  104. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  105. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +53 -0
  106. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  107. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +62 -0
  108. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  109. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +129 -0
  110. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  111. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +102 -0
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  113. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +50 -0
  114. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +110 -0
  116. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  117. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +128 -0
  118. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  119. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js +10 -0
  120. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  121. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +125 -0
  122. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  123. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  124. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  125. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +96 -0
  126. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  127. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +119 -0
  128. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  129. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +103 -0
  130. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  131. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js +77 -0
  132. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js +44 -0
  134. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  135. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js +58 -0
  136. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  137. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +30 -0
  138. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  139. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  140. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +164 -0
  141. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  142. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +24 -0
  143. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  144. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  145. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  146. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  147. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  148. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js.map +1 -0
  149. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js.map +1 -0
  150. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -0
  151. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js.map +1 -0
  152. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -0
  153. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -0
  154. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +80 -0
  155. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -0
  156. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map +1 -0
  157. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  158. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  159. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  160. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  161. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -0
  162. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map +1 -0
  163. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js.map +1 -0
  164. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js.map +1 -0
  165. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js.map +1 -0
  166. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -0
  167. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -0
  168. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -0
  169. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -0
  170. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -0
  171. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -0
  172. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -0
  173. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -0
  174. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -0
  175. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -0
  176. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +24 -0
  177. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -0
  178. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -0
  179. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -0
  180. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +126 -0
  181. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -0
  182. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -0
  183. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js.map +1 -0
  184. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +137 -0
  185. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -0
  186. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -0
  187. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +20 -0
  188. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -0
  189. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +273 -0
  190. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -0
  191. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -0
  192. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  193. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  194. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  195. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  196. package/dist/index.css +208 -515
  197. package/dist/packages/taco/src/components/Provider/Localization.d.ts +398 -0
  198. package/dist/packages/taco/src/components/Report/Report.d.ts +10 -0
  199. package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +19 -0
  200. package/dist/packages/taco/src/components/Report/useReport.d.ts +23 -0
  201. package/dist/packages/taco/src/components/Select2/Select2.d.ts +68 -0
  202. package/dist/packages/taco/src/components/Table/Table.d.ts +14 -0
  203. package/dist/packages/taco/src/components/Table/components/BaseTable.d.ts +8 -0
  204. package/dist/packages/taco/src/components/Table/hooks/useRowCreation.d.ts +11 -0
  205. package/dist/packages/taco/src/components/Table/hooks/useTable.d.ts +38 -0
  206. package/dist/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.d.ts +3 -0
  207. package/dist/packages/taco/src/components/Table/types.d.ts +284 -0
  208. package/dist/packages/taco/src/components/Table/util/sortTypes.d.ts +4 -0
  209. package/dist/packages/taco/src/components/Table/util.d.ts +12 -0
  210. package/dist/packages/taco/src/components/Table3/Table3.d.ts +20 -0
  211. package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +23 -0
  212. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  213. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  214. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  215. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  216. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  217. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  218. package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  219. package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +12 -0
  220. package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  221. package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +3 -0
  222. package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  223. package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +46 -0
  224. package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  225. package/dist/packages/taco/src/components/Table3/types.d.ts +54 -0
  226. package/dist/packages/taco/src/components/Table3/useTable3.d.ts +30 -0
  227. package/dist/packages/taco/src/components/Table3/util/editing.d.ts +2 -0
  228. package/dist/packages/taco/src/index.d.ts +74 -0
  229. package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
  230. package/dist/packages/taco/src/primitives/Table/Core/components/Body/Body.d.ts +8 -0
  231. package/dist/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +7 -0
  232. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  233. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  234. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.d.ts +10 -0
  235. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.d.ts +19 -0
  236. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.d.ts +13 -0
  237. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  238. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  239. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  240. package/dist/packages/taco/src/primitives/Table/Core/components/Header/Header.d.ts +45 -0
  241. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.d.ts +6 -0
  242. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.d.ts +21 -0
  243. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.d.ts +12 -0
  244. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.d.ts +15 -0
  245. package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +4 -0
  246. package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  247. package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  248. package/dist/packages/taco/src/primitives/Table/Core/components/Row/RowContext.d.ts +7 -0
  249. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  250. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
  251. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +12 -0
  252. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
  253. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
  254. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.d.ts +4 -0
  255. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.d.ts +9 -0
  256. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
  257. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
  258. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.d.ts +8 -0
  259. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  260. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts +3 -0
  261. package/dist/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.d.ts +4 -0
  262. package/dist/packages/taco/src/primitives/Table/Core/features/useTableRenderer.d.ts +10 -0
  263. package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +24 -0
  264. package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +25 -0
  265. package/dist/packages/taco/src/primitives/Table/types.d.ts +379 -0
  266. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.d.ts +13 -0
  267. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  268. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  269. package/dist/packages/taco/src/primitives/Table/useTableManager/types.d.ts +14 -0
  270. package/dist/packages/taco/src/primitives/Table/useTableManager/useTableManager.d.ts +65 -0
  271. package/dist/packages/taco/src/primitives/Table/useTableManager/util/presets.d.ts +2 -0
  272. package/dist/packages/taco/src/primitives/Table/useTableManager/util/settings.d.ts +12 -0
  273. package/dist/packages/taco/src/primitives/Table/useTableManager/util/setup.d.ts +15 -0
  274. package/dist/packages/taco/src/utils/dom.d.ts +8 -0
  275. package/dist/taco.cjs.development.js +7011 -11581
  276. package/dist/taco.cjs.development.js.map +1 -1
  277. package/dist/taco.cjs.production.min.js +1 -1
  278. package/dist/taco.cjs.production.min.js.map +1 -1
  279. package/package.json +3 -2
  280. package/types.json +22467 -51449
  281. package/dist/components/Provider/Localization.d.ts +0 -390
  282. package/dist/components/Report/Report.d.ts +0 -23
  283. package/dist/components/Report/components/Body/Body.d.ts +0 -8
  284. package/dist/components/Report/components/Body/EmptyStateBody.d.ts +0 -7
  285. package/dist/components/Report/components/Cell/Cell.d.ts +0 -8
  286. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  287. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  288. package/dist/components/Report/components/Cell/util.d.ts +0 -18
  289. package/dist/components/Report/components/Header/Header.d.ts +0 -37
  290. package/dist/components/Report/components/Header/components/Goto.d.ts +0 -6
  291. package/dist/components/Report/components/Header/components/Menu.d.ts +0 -17
  292. package/dist/components/Report/components/Header/components/Resizer.d.ts +0 -12
  293. package/dist/components/Report/components/Header/components/SortIndicator.d.ts +0 -15
  294. package/dist/components/Report/components/Header/util.d.ts +0 -4
  295. package/dist/components/Report/components/Internal/Actions.d.ts +0 -13
  296. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  297. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  298. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  299. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  300. package/dist/components/Report/components/Row/RowContext.d.ts +0 -8
  301. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  302. package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +0 -12
  303. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +0 -12
  304. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +0 -7
  305. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +0 -10
  306. package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +0 -2
  307. package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +0 -9
  308. package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +0 -17
  309. package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +0 -7
  310. package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +0 -8
  311. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  312. package/dist/components/Report/styles/useCssGridStylesheet.d.ts +0 -3
  313. package/dist/components/Report/styles/util.d.ts +0 -3
  314. package/dist/components/Report/types.d.ts +0 -20
  315. package/dist/components/Report/useReport.d.ts +0 -9
  316. package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +0 -4
  317. package/dist/components/Report/util/useTableRenderer.d.ts +0 -9
  318. package/dist/components/Select2/Select2.d.ts +0 -50
  319. package/dist/components/Table/Table.d.ts +0 -14
  320. package/dist/components/Table/components/BaseTable.d.ts +0 -8
  321. package/dist/components/Table/hooks/useRowCreation.d.ts +0 -11
  322. package/dist/components/Table/hooks/useTable.d.ts +0 -38
  323. package/dist/components/Table/hooks/useTableKeyboardNavigation.d.ts +0 -3
  324. package/dist/components/Table/types.d.ts +0 -284
  325. package/dist/components/Table/util/sortTypes.d.ts +0 -4
  326. package/dist/components/Table/util.d.ts +0 -12
  327. package/dist/components/Table3/Table3.d.ts +0 -19
  328. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
  329. package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
  330. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
  331. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
  332. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
  333. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
  334. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
  335. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
  336. package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
  337. package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
  338. package/dist/components/Table3/components/columns/header/Goto.d.ts +0 -6
  339. package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
  340. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  341. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  342. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  343. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  344. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  345. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  346. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  347. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  348. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  349. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  350. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  351. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  352. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  353. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  354. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  355. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  356. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  357. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  358. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  359. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  360. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  361. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  362. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  363. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  364. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  365. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  366. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  367. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  368. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  369. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  370. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  371. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  372. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  373. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  374. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  375. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  376. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  377. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  378. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  379. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  380. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  381. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  382. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  383. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  384. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  385. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  386. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  387. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  388. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  389. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  390. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  391. package/dist/components/Table3/strategies/index.d.ts +0 -4
  392. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  393. package/dist/components/Table3/types.d.ts +0 -377
  394. package/dist/components/Table3/util/columns.d.ts +0 -8
  395. package/dist/components/Table3/util/editing.d.ts +0 -10
  396. package/dist/components/Table3/util/filtering.d.ts +0 -3
  397. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  398. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +0 -60
  399. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  400. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  401. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  402. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +0 -32
  403. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  404. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js +0 -23
  405. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  406. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +0 -58
  407. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  408. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +0 -73
  409. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  410. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  411. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +0 -39
  412. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  413. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +0 -194
  414. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  415. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +0 -28
  416. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  417. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +0 -150
  418. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  419. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js +0 -60
  420. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  421. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js +0 -41
  422. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  423. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +0 -24
  424. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  425. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js +0 -90
  426. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  427. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js +0 -59
  428. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  429. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js +0 -154
  430. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  431. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js +0 -102
  432. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  433. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js +0 -24
  434. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  435. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js +0 -10
  436. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  437. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  438. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  439. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  440. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +0 -50
  441. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  442. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +0 -121
  443. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  444. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js +0 -102
  445. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  446. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js +0 -50
  447. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  448. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js +0 -110
  449. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  450. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +0 -118
  451. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  452. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js +0 -7
  453. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  454. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js +0 -125
  455. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  456. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  457. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  458. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js +0 -95
  459. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  460. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +0 -105
  461. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  462. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +0 -103
  463. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  464. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js +0 -24
  465. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  466. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js +0 -44
  467. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  468. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +0 -58
  469. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  470. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  471. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  472. package/dist/esm/packages/taco/src/components/Report/styles/util.js +0 -61
  473. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  474. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  475. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js +0 -32
  476. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  477. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js +0 -162
  478. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  479. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  480. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  481. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  482. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  483. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  484. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  485. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  486. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  487. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  488. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  489. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  490. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  491. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  492. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  493. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  494. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  495. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  496. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  497. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  498. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  499. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +0 -28
  500. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  501. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  502. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  503. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  504. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  505. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  506. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  507. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  508. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  509. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  510. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  511. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  512. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  513. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  514. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  515. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  516. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  517. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  518. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  519. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  520. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  521. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  522. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  523. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  524. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  525. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  526. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  527. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  528. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  529. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  530. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  531. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  532. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  533. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  534. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  535. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  536. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  537. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  538. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  539. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  540. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  541. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  542. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  543. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  544. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  545. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  546. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  547. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  548. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  549. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  550. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  551. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  552. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  553. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  554. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  555. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  556. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  557. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  558. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  559. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  560. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  561. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  562. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  563. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  564. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  565. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  566. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  567. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  568. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  569. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  570. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  571. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  572. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  573. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  574. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  575. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  576. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  577. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  578. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  579. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  580. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  581. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  582. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  583. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  584. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  585. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  586. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  587. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  588. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  589. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  590. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  591. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  592. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  593. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  594. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  595. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  596. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  597. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  598. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  599. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  600. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  601. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  602. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  603. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  604. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  605. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  606. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  607. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  608. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  609. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  610. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  611. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  612. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  613. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  614. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  615. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  616. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  617. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  618. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  619. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnFreezing.js.map +0 -1
  620. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +0 -1
  621. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFontSize.js.map +0 -1
  622. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFooter.js.map +0 -1
  623. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
  624. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRef.js.map +0 -1
  625. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActions.js.map +0 -1
  626. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +0 -90
  627. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +0 -1
  628. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +0 -1
  629. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowExpansion.js.map +0 -1
  630. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +0 -1
  631. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGroups.js.map +0 -1
  632. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowHeight.js.map +0 -1
  633. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +0 -1
  634. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSearch.js.map +0 -1
  635. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +0 -1
  636. package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSettings.js.map +0 -1
  637. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableDataListener.js.map +0 -1
  638. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFilterListener.js.map +0 -1
  639. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +0 -1
  640. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowHeightListener.js.map +0 -1
  641. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowSelectionListener.js.map +0 -1
  642. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSearchListener.js.map +0 -1
  643. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableServerLoadingListener.js.map +0 -1
  644. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js +0 -26
  645. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js.map +0 -1
  646. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableShortcutsListener.js.map +0 -1
  647. package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSortingListener.js.map +0 -1
  648. package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js +0 -122
  649. package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js.map +0 -1
  650. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +0 -1
  651. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/filtering.js.map +0 -1
  652. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js +0 -131
  653. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js.map +0 -1
  654. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/search.js.map +0 -1
  655. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js +0 -21
  656. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js.map +0 -1
  657. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js +0 -270
  658. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js.map +0 -1
  659. package/dist/esm/packages/taco/src/primitives/Table/useTable/util/sorting.js.map +0 -1
  660. package/dist/index.d.ts +0 -73
  661. package/dist/primitives/Table/types.d.ts +0 -225
  662. package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -11
  663. package/dist/primitives/Table/useTable/useTable.d.ts +0 -58
  664. package/dist/primitives/Table/useTable/util/presets.d.ts +0 -2
  665. package/dist/primitives/Table/useTable/util/settings.d.ts +0 -12
  666. package/dist/primitives/Table/useTable/util/setup.d.ts +0 -14
  667. package/dist/utils/dom.d.ts +0 -7
  668. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  669. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  670. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  671. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  672. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → Core}/features/useTableRef.js +0 -0
  673. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  674. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnFreezing.js +0 -0
  675. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableColumnOrdering.js +0 -0
  676. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFontSize.js +0 -0
  677. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableFooter.js +0 -0
  678. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTablePrinting.js +0 -0
  679. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowActions.js +0 -0
  680. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowClick.js +0 -0
  681. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowExpansion.js +0 -0
  682. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGoto.js +0 -0
  683. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowGroups.js +0 -0
  684. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowHeight.js +0 -0
  685. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableRowSelection.js +0 -0
  686. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSearch.js +0 -0
  687. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableServerLoading.js +0 -0
  688. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/features/useTableSettings.js +0 -0
  689. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableDataListener.js +0 -0
  690. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFilterListener.js +0 -0
  691. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableFontSizeListener.js +0 -0
  692. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowHeightListener.js +0 -0
  693. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableRowSelectionListener.js +0 -0
  694. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSearchListener.js +0 -0
  695. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableServerLoadingListener.js +0 -0
  696. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableShortcutsListener.js +0 -0
  697. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/listeners/useTableSortingListener.js +0 -0
  698. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/columns.js +0 -0
  699. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/filtering.js +0 -0
  700. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/search.js +0 -0
  701. /package/dist/esm/packages/taco/src/primitives/Table/{useTable → useTableManager}/util/sorting.js +0 -0
  702. /package/dist/{components → packages/taco/src/components}/Accordion/Accordion.d.ts +0 -0
  703. /package/dist/{components → packages/taco/src/components}/Alert/Alert.d.ts +0 -0
  704. /package/dist/{components → packages/taco/src/components}/AlertDialog/AlertDialog.d.ts +0 -0
  705. /package/dist/{components → packages/taco/src/components}/AlertDialog/Context.d.ts +0 -0
  706. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Content.d.ts +0 -0
  707. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Footer.d.ts +0 -0
  708. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Trigger.d.ts +0 -0
  709. /package/dist/{components → packages/taco/src/components}/Backdrop/Backdrop.d.ts +0 -0
  710. /package/dist/{components → packages/taco/src/components}/Badge/Badge.d.ts +0 -0
  711. /package/dist/{components → packages/taco/src/components}/BadgeIcon/BadgeIcon.d.ts +0 -0
  712. /package/dist/{components → packages/taco/src/components}/Banner/Banner.d.ts +0 -0
  713. /package/dist/{components → packages/taco/src/components}/Banner/util.d.ts +0 -0
  714. /package/dist/{components → packages/taco/src/components}/Button/Button.d.ts +0 -0
  715. /package/dist/{components → packages/taco/src/components}/Button/util.d.ts +0 -0
  716. /package/dist/{components → packages/taco/src/components}/Calendar/Calendar.d.ts +0 -0
  717. /package/dist/{components → packages/taco/src/components}/Card/Card.d.ts +0 -0
  718. /package/dist/{components → packages/taco/src/components}/Checkbox/Checkbox.d.ts +0 -0
  719. /package/dist/{components → packages/taco/src/components}/Combobox/Combobox.d.ts +0 -0
  720. /package/dist/{components → packages/taco/src/components}/Combobox/useCombobox.d.ts +0 -0
  721. /package/dist/{components → packages/taco/src/components}/Datepicker/Datepicker.d.ts +0 -0
  722. /package/dist/{components → packages/taco/src/components}/Datepicker/useDatepicker.d.ts +0 -0
  723. /package/dist/{components → packages/taco/src/components}/Dialog/Context.d.ts +0 -0
  724. /package/dist/{components → packages/taco/src/components}/Dialog/Dialog.d.ts +0 -0
  725. /package/dist/{components → packages/taco/src/components}/Dialog/components/Content.d.ts +0 -0
  726. /package/dist/{components → packages/taco/src/components}/Dialog/components/DialogDrawer.d.ts +0 -0
  727. /package/dist/{components → packages/taco/src/components}/Dialog/components/Extra.d.ts +0 -0
  728. /package/dist/{components → packages/taco/src/components}/Dialog/components/Trigger.d.ts +0 -0
  729. /package/dist/{components → packages/taco/src/components}/Dialog/types.d.ts +0 -0
  730. /package/dist/{components → packages/taco/src/components}/Dialog/util.d.ts +0 -0
  731. /package/dist/{components → packages/taco/src/components}/Drawer/Context.d.ts +0 -0
  732. /package/dist/{components → packages/taco/src/components}/Drawer/Drawer.d.ts +0 -0
  733. /package/dist/{components → packages/taco/src/components}/Drawer/components/Content.d.ts +0 -0
  734. /package/dist/{components → packages/taco/src/components}/Drawer/components/Trigger.d.ts +0 -0
  735. /package/dist/{components → packages/taco/src/components}/Drawer/images.d.ts +0 -0
  736. /package/dist/{components → packages/taco/src/components}/Drawer/types.d.ts +0 -0
  737. /package/dist/{components → packages/taco/src/components}/Drawer/util.d.ts +0 -0
  738. /package/dist/{components → packages/taco/src/components}/Field/Field.d.ts +0 -0
  739. /package/dist/{components → packages/taco/src/components}/Form/Form.d.ts +0 -0
  740. /package/dist/{components → packages/taco/src/components}/Group/Group.d.ts +0 -0
  741. /package/dist/{components → packages/taco/src/components}/Hanger/Hanger.d.ts +0 -0
  742. /package/dist/{components → packages/taco/src/components}/Header/Header.d.ts +0 -0
  743. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Avatar.d.ts +0 -0
  744. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Badge.d.ts +0 -0
  745. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Display.d.ts +0 -0
  746. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Item.d.ts +0 -0
  747. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/types.d.ts +0 -0
  748. /package/dist/{components → packages/taco/src/components}/Header/components/AgreementSelector.d.ts +0 -0
  749. /package/dist/{components → packages/taco/src/components}/Header/components/Button.d.ts +0 -0
  750. /package/dist/{components → packages/taco/src/components}/Header/components/Link.d.ts +0 -0
  751. /package/dist/{components → packages/taco/src/components}/Header/components/Logo.d.ts +0 -0
  752. /package/dist/{components → packages/taco/src/components}/Header/components/MenuButton.d.ts +0 -0
  753. /package/dist/{components → packages/taco/src/components}/Header/components/PrimaryNavigation.d.ts +0 -0
  754. /package/dist/{components → packages/taco/src/components}/Header/components/SecondaryNavigation.d.ts +0 -0
  755. /package/dist/{components → packages/taco/src/components}/HoverCard/HoverCard.d.ts +0 -0
  756. /package/dist/{components → packages/taco/src/components}/HoverCard/Primitives.d.ts +0 -0
  757. /package/dist/{components → packages/taco/src/components}/Icon/Icon.d.ts +0 -0
  758. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountPreview.d.ts +0 -0
  759. /package/dist/{components → packages/taco/src/components}/Icon/components/Accounting.d.ts +0 -0
  760. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYear.d.ts +0 -0
  761. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYearCancel.d.ts +0 -0
  762. /package/dist/{components → packages/taco/src/components}/Icon/components/AiChatSolid.d.ts +0 -0
  763. /package/dist/{components → packages/taco/src/components}/Icon/components/AiStars.d.ts +0 -0
  764. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowBottom.d.ts +0 -0
  765. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowDown.d.ts +0 -0
  766. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowEnd.d.ts +0 -0
  767. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowLeft.d.ts +0 -0
  768. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowRight.d.ts +0 -0
  769. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowStart.d.ts +0 -0
  770. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowTop.d.ts +0 -0
  771. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowUp.d.ts +0 -0
  772. /package/dist/{components → packages/taco/src/components}/Icon/components/Attach.d.ts +0 -0
  773. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachAuto.d.ts +0 -0
  774. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachCancel.d.ts +0 -0
  775. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachWarning.d.ts +0 -0
  776. /package/dist/{components → packages/taco/src/components}/Icon/components/Autotext.d.ts +0 -0
  777. /package/dist/{components → packages/taco/src/components}/Icon/components/AutotextInsert.d.ts +0 -0
  778. /package/dist/{components → packages/taco/src/components}/Icon/components/Basic.d.ts +0 -0
  779. /package/dist/{components → packages/taco/src/components}/Icon/components/BasicTabs.d.ts +0 -0
  780. /package/dist/{components → packages/taco/src/components}/Icon/components/BellSolid.d.ts +0 -0
  781. /package/dist/{components → packages/taco/src/components}/Icon/components/Book.d.ts +0 -0
  782. /package/dist/{components → packages/taco/src/components}/Icon/components/Booking.d.ts +0 -0
  783. /package/dist/{components → packages/taco/src/components}/Icon/components/Budget.d.ts +0 -0
  784. /package/dist/{components → packages/taco/src/components}/Icon/components/Calendar.d.ts +0 -0
  785. /package/dist/{components → packages/taco/src/components}/Icon/components/CashAccount.d.ts +0 -0
  786. /package/dist/{components → packages/taco/src/components}/Icon/components/CashReports.d.ts +0 -0
  787. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartArea.d.ts +0 -0
  788. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartBar.d.ts +0 -0
  789. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartLine.d.ts +0 -0
  790. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartPie.d.ts +0 -0
  791. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartTable.d.ts +0 -0
  792. /package/dist/{components → packages/taco/src/components}/Icon/components/Chat.d.ts +0 -0
  793. /package/dist/{components → packages/taco/src/components}/Icon/components/ChatSolid.d.ts +0 -0
  794. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDown.d.ts +0 -0
  795. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownDouble.d.ts +0 -0
  796. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownSolid.d.ts +0 -0
  797. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeft.d.ts +0 -0
  798. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
  799. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
  800. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRight.d.ts +0 -0
  801. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightDouble.d.ts +0 -0
  802. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightSolid.d.ts +0 -0
  803. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUp.d.ts +0 -0
  804. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpDouble.d.ts +0 -0
  805. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpSolid.d.ts +0 -0
  806. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleClose.d.ts +0 -0
  807. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleInformation.d.ts +0 -0
  808. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleMinus.d.ts +0 -0
  809. /package/dist/{components → packages/taco/src/components}/Icon/components/CirclePlus.d.ts +0 -0
  810. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleQuestionmark.d.ts +0 -0
  811. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleTick.d.ts +0 -0
  812. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleWarning.d.ts +0 -0
  813. /package/dist/{components → packages/taco/src/components}/Icon/components/Clamp.d.ts +0 -0
  814. /package/dist/{components → packages/taco/src/components}/Icon/components/ClampOpen.d.ts +0 -0
  815. /package/dist/{components → packages/taco/src/components}/Icon/components/Close.d.ts +0 -0
  816. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnFreeze.d.ts +0 -0
  817. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
  818. /package/dist/{components → packages/taco/src/components}/Icon/components/Columns.d.ts +0 -0
  819. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionEnable.d.ts +0 -0
  820. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionRevoke.d.ts +0 -0
  821. /package/dist/{components → packages/taco/src/components}/Icon/components/Contacts.d.ts +0 -0
  822. /package/dist/{components → packages/taco/src/components}/Icon/components/Copy.d.ts +0 -0
  823. /package/dist/{components → packages/taco/src/components}/Icon/components/Courses.d.ts +0 -0
  824. /package/dist/{components → packages/taco/src/components}/Icon/components/Credit.d.ts +0 -0
  825. /package/dist/{components → packages/taco/src/components}/Icon/components/Delete.d.ts +0 -0
  826. /package/dist/{components → packages/taco/src/components}/Icon/components/DeletePermanently.d.ts +0 -0
  827. /package/dist/{components → packages/taco/src/components}/Icon/components/Depecriate.d.ts +0 -0
  828. /package/dist/{components → packages/taco/src/components}/Icon/components/Developer.d.ts +0 -0
  829. /package/dist/{components → packages/taco/src/components}/Icon/components/DistributionTemplate.d.ts +0 -0
  830. /package/dist/{components → packages/taco/src/components}/Icon/components/Document.d.ts +0 -0
  831. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentApprove.d.ts +0 -0
  832. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
  833. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCut.d.ts +0 -0
  834. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentError.d.ts +0 -0
  835. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
  836. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMerge.d.ts +0 -0
  837. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMove.d.ts +0 -0
  838. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentPreview.d.ts +0 -0
  839. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentReceived.d.ts +0 -0
  840. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
  841. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentSplit.d.ts +0 -0
  842. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentTime.d.ts +0 -0
  843. /package/dist/{components → packages/taco/src/components}/Icon/components/Download.d.ts +0 -0
  844. /package/dist/{components → packages/taco/src/components}/Icon/components/Drag.d.ts +0 -0
  845. /package/dist/{components → packages/taco/src/components}/Icon/components/ECopedia.d.ts +0 -0
  846. /package/dist/{components → packages/taco/src/components}/Icon/components/ESignature.d.ts +0 -0
  847. /package/dist/{components → packages/taco/src/components}/Icon/components/Edit.d.ts +0 -0
  848. /package/dist/{components → packages/taco/src/components}/Icon/components/EditSimple.d.ts +0 -0
  849. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
  850. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisVertical.d.ts +0 -0
  851. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOnAccount.d.ts +0 -0
  852. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOpen.d.ts +0 -0
  853. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesWarning.d.ts +0 -0
  854. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
  855. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
  856. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
  857. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
  858. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
  859. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
  860. /package/dist/{components → packages/taco/src/components}/Icon/components/Envelope.d.ts +0 -0
  861. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeApproved.d.ts +0 -0
  862. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeSolid.d.ts +0 -0
  863. /package/dist/{components → packages/taco/src/components}/Icon/components/ExpandView.d.ts +0 -0
  864. /package/dist/{components → packages/taco/src/components}/Icon/components/Expenses.d.ts +0 -0
  865. /package/dist/{components → packages/taco/src/components}/Icon/components/Export.d.ts +0 -0
  866. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToExcel.d.ts +0 -0
  867. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToPdf.d.ts +0 -0
  868. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOff.d.ts +0 -0
  869. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOn.d.ts +0 -0
  870. /package/dist/{components → packages/taco/src/components}/Icon/components/Filter.d.ts +0 -0
  871. /package/dist/{components → packages/taco/src/components}/Icon/components/FilterSolid.d.ts +0 -0
  872. /package/dist/{components → packages/taco/src/components}/Icon/components/FontSize.d.ts +0 -0
  873. /package/dist/{components → packages/taco/src/components}/Icon/components/GraphSolid.d.ts +0 -0
  874. /package/dist/{components → packages/taco/src/components}/Icon/components/Hash.d.ts +0 -0
  875. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightExtraTall.d.ts +0 -0
  876. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightMedium.d.ts +0 -0
  877. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightShort.d.ts +0 -0
  878. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightTall.d.ts +0 -0
  879. /package/dist/{components → packages/taco/src/components}/Icon/components/Home.d.ts +0 -0
  880. /package/dist/{components → packages/taco/src/components}/Icon/components/Images.d.ts +0 -0
  881. /package/dist/{components → packages/taco/src/components}/Icon/components/Import.d.ts +0 -0
  882. /package/dist/{components → packages/taco/src/components}/Icon/components/Inbox.d.ts +0 -0
  883. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxEinvoicing.d.ts +0 -0
  884. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxScanning.d.ts +0 -0
  885. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxSmart.d.ts +0 -0
  886. /package/dist/{components → packages/taco/src/components}/Icon/components/Info.d.ts +0 -0
  887. /package/dist/{components → packages/taco/src/components}/Icon/components/Inventory.d.ts +0 -0
  888. /package/dist/{components → packages/taco/src/components}/Icon/components/InventoryMatrix.d.ts +0 -0
  889. /package/dist/{components → packages/taco/src/components}/Icon/components/JournalPro.d.ts +0 -0
  890. /package/dist/{components → packages/taco/src/components}/Icon/components/Layout.d.ts +0 -0
  891. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutBoth.d.ts +0 -0
  892. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutFirst.d.ts +0 -0
  893. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutLast.d.ts +0 -0
  894. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutNone.d.ts +0 -0
  895. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCard.d.ts +0 -0
  896. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
  897. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
  898. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
  899. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
  900. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
  901. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
  902. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
  903. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
  904. /package/dist/{components → packages/taco/src/components}/Icon/components/Lightbulb.d.ts +0 -0
  905. /package/dist/{components → packages/taco/src/components}/Icon/components/Line.d.ts +0 -0
  906. /package/dist/{components → packages/taco/src/components}/Icon/components/List.d.ts +0 -0
  907. /package/dist/{components → packages/taco/src/components}/Icon/components/ListBulleted.d.ts +0 -0
  908. /package/dist/{components → packages/taco/src/components}/Icon/components/ListSearch.d.ts +0 -0
  909. /package/dist/{components → packages/taco/src/components}/Icon/components/Location.d.ts +0 -0
  910. /package/dist/{components → packages/taco/src/components}/Icon/components/Lock.d.ts +0 -0
  911. /package/dist/{components → packages/taco/src/components}/Icon/components/LockOpen.d.ts +0 -0
  912. /package/dist/{components → packages/taco/src/components}/Icon/components/Log.d.ts +0 -0
  913. /package/dist/{components → packages/taco/src/components}/Icon/components/LogOut.d.ts +0 -0
  914. /package/dist/{components → packages/taco/src/components}/Icon/components/Market.d.ts +0 -0
  915. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchAmount.d.ts +0 -0
  916. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchEntries.d.ts +0 -0
  917. /package/dist/{components → packages/taco/src/components}/Icon/components/Menu.d.ts +0 -0
  918. /package/dist/{components → packages/taco/src/components}/Icon/components/Mileage.d.ts +0 -0
  919. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalResize.d.ts +0 -0
  920. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalShrink.d.ts +0 -0
  921. /package/dist/{components → packages/taco/src/components}/Icon/components/More.d.ts +0 -0
  922. /package/dist/{components → packages/taco/src/components}/Icon/components/MoreSolid.d.ts +0 -0
  923. /package/dist/{components → packages/taco/src/components}/Icon/components/Move.d.ts +0 -0
  924. /package/dist/{components → packages/taco/src/components}/Icon/components/NavigationList.d.ts +0 -0
  925. /package/dist/{components → packages/taco/src/components}/Icon/components/Note.d.ts +0 -0
  926. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteFollowUp.d.ts +0 -0
  927. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteRead.d.ts +0 -0
  928. /package/dist/{components → packages/taco/src/components}/Icon/components/Numbers.d.ts +0 -0
  929. /package/dist/{components → packages/taco/src/components}/Icon/components/PartnerApi.d.ts +0 -0
  930. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentPaid.d.ts +0 -0
  931. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentUnpaid.d.ts +0 -0
  932. /package/dist/{components → packages/taco/src/components}/Icon/components/Period.d.ts +0 -0
  933. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonChange.d.ts +0 -0
  934. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonMinus.d.ts +0 -0
  935. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonPlus.d.ts +0 -0
  936. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonTick.d.ts +0 -0
  937. /package/dist/{components → packages/taco/src/components}/Icon/components/PhoneSolid.d.ts +0 -0
  938. /package/dist/{components → packages/taco/src/components}/Icon/components/Play.d.ts +0 -0
  939. /package/dist/{components → packages/taco/src/components}/Icon/components/PlusMinus.d.ts +0 -0
  940. /package/dist/{components → packages/taco/src/components}/Icon/components/Print.d.ts +0 -0
  941. /package/dist/{components → packages/taco/src/components}/Icon/components/ProcessPayment.d.ts +0 -0
  942. /package/dist/{components → packages/taco/src/components}/Icon/components/ProductLedgerCard.d.ts +0 -0
  943. /package/dist/{components → packages/taco/src/components}/Icon/components/Profile.d.ts +0 -0
  944. /package/dist/{components → packages/taco/src/components}/Icon/components/ProjectCards.d.ts +0 -0
  945. /package/dist/{components → packages/taco/src/components}/Icon/components/Projects.d.ts +0 -0
  946. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMark.d.ts +0 -0
  947. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMarkBold.d.ts +0 -0
  948. /package/dist/{components → packages/taco/src/components}/Icon/components/Quicklinks.d.ts +0 -0
  949. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingBankruptcy.d.ts +0 -0
  950. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
  951. /package/dist/{components → packages/taco/src/components}/Icon/components/Reconciled.d.ts +0 -0
  952. /package/dist/{components → packages/taco/src/components}/Icon/components/Refresh.d.ts +0 -0
  953. /package/dist/{components → packages/taco/src/components}/Icon/components/Report.d.ts +0 -0
  954. /package/dist/{components → packages/taco/src/components}/Icon/components/ReportSolid.d.ts +0 -0
  955. /package/dist/{components → packages/taco/src/components}/Icon/components/Restore.d.ts +0 -0
  956. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateLeft.d.ts +0 -0
  957. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateRight.d.ts +0 -0
  958. /package/dist/{components → packages/taco/src/components}/Icon/components/Sales.d.ts +0 -0
  959. /package/dist/{components → packages/taco/src/components}/Icon/components/Search.d.ts +0 -0
  960. /package/dist/{components → packages/taco/src/components}/Icon/components/SearchBold.d.ts +0 -0
  961. /package/dist/{components → packages/taco/src/components}/Icon/components/Secure.d.ts +0 -0
  962. /package/dist/{components → packages/taco/src/components}/Icon/components/SecureTick.d.ts +0 -0
  963. /package/dist/{components → packages/taco/src/components}/Icon/components/Settings.d.ts +0 -0
  964. /package/dist/{components → packages/taco/src/components}/Icon/components/SettingsSolid.d.ts +0 -0
  965. /package/dist/{components → packages/taco/src/components}/Icon/components/Shortcuts.d.ts +0 -0
  966. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowAll.d.ts +0 -0
  967. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowLess.d.ts +0 -0
  968. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowMore.d.ts +0 -0
  969. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowTemplate.d.ts +0 -0
  970. /package/dist/{components → packages/taco/src/components}/Icon/components/Sliders.d.ts +0 -0
  971. /package/dist/{components → packages/taco/src/components}/Icon/components/Smartpay.d.ts +0 -0
  972. /package/dist/{components → packages/taco/src/components}/Icon/components/SortBy.d.ts +0 -0
  973. /package/dist/{components → packages/taco/src/components}/Icon/components/Star.d.ts +0 -0
  974. /package/dist/{components → packages/taco/src/components}/Icon/components/StarSolid.d.ts +0 -0
  975. /package/dist/{components → packages/taco/src/components}/Icon/components/Subscriptions.d.ts +0 -0
  976. /package/dist/{components → packages/taco/src/components}/Icon/components/SystemEntries.d.ts +0 -0
  977. /package/dist/{components → packages/taco/src/components}/Icon/components/Tag.d.ts +0 -0
  978. /package/dist/{components → packages/taco/src/components}/Icon/components/TemplateOverride.d.ts +0 -0
  979. /package/dist/{components → packages/taco/src/components}/Icon/components/Templates.d.ts +0 -0
  980. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbBoth.d.ts +0 -0
  981. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDown.d.ts +0 -0
  982. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDownSolid.d.ts +0 -0
  983. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUp.d.ts +0 -0
  984. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUpSolid.d.ts +0 -0
  985. /package/dist/{components → packages/taco/src/components}/Icon/components/Tick.d.ts +0 -0
  986. /package/dist/{components → packages/taco/src/components}/Icon/components/TickBold.d.ts +0 -0
  987. /package/dist/{components → packages/taco/src/components}/Icon/components/Time.d.ts +0 -0
  988. /package/dist/{components → packages/taco/src/components}/Icon/components/Transfer.d.ts +0 -0
  989. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferCancel.d.ts +0 -0
  990. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferLocked.d.ts +0 -0
  991. /package/dist/{components → packages/taco/src/components}/Icon/components/Undo.d.ts +0 -0
  992. /package/dist/{components → packages/taco/src/components}/Icon/components/Undock.d.ts +0 -0
  993. /package/dist/{components → packages/taco/src/components}/Icon/components/Unreconciled.d.ts +0 -0
  994. /package/dist/{components → packages/taco/src/components}/Icon/components/Warning.d.ts +0 -0
  995. /package/dist/{components → packages/taco/src/components}/Icon/components/Webshop.d.ts +0 -0
  996. /package/dist/{components → packages/taco/src/components}/Icon/components/Website.d.ts +0 -0
  997. /package/dist/{components → packages/taco/src/components}/Icon/components/Workflow.d.ts +0 -0
  998. /package/dist/{components → packages/taco/src/components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
  999. /package/dist/{components → packages/taco/src/components}/Icon/components/Zoom.d.ts +0 -0
  1000. /package/dist/{components → packages/taco/src/components}/Icon/components/index.d.ts +0 -0
  1001. /package/dist/{components → packages/taco/src/components}/IconButton/IconButton.d.ts +0 -0
  1002. /package/dist/{components → packages/taco/src/components}/Input/Input.d.ts +0 -0
  1003. /package/dist/{components → packages/taco/src/components}/Input/util.d.ts +0 -0
  1004. /package/dist/{components → packages/taco/src/components}/Layout/Layout.d.ts +0 -0
  1005. /package/dist/{components → packages/taco/src/components}/Layout/components/Content.d.ts +0 -0
  1006. /package/dist/{components → packages/taco/src/components}/Layout/components/Context.d.ts +0 -0
  1007. /package/dist/{components → packages/taco/src/components}/Layout/components/Page.d.ts +0 -0
  1008. /package/dist/{components → packages/taco/src/components}/Layout/components/Sidebar.d.ts +0 -0
  1009. /package/dist/{components → packages/taco/src/components}/Layout/components/Top.d.ts +0 -0
  1010. /package/dist/{components → packages/taco/src/components}/Listbox/Listbox.d.ts +0 -0
  1011. /package/dist/{components → packages/taco/src/components}/Listbox/ScrollableList.d.ts +0 -0
  1012. /package/dist/{components → packages/taco/src/components}/Listbox/useListbox.d.ts +0 -0
  1013. /package/dist/{components → packages/taco/src/components}/Listbox/useMultiListbox.d.ts +0 -0
  1014. /package/dist/{components → packages/taco/src/components}/Listbox/useTypeahead.d.ts +0 -0
  1015. /package/dist/{components → packages/taco/src/components}/Listbox/util.d.ts +0 -0
  1016. /package/dist/{components → packages/taco/src/components}/Menu/Context.d.ts +0 -0
  1017. /package/dist/{components → packages/taco/src/components}/Menu/Menu.d.ts +0 -0
  1018. /package/dist/{components → packages/taco/src/components}/Menu/components/Checkbox.d.ts +0 -0
  1019. /package/dist/{components → packages/taco/src/components}/Menu/components/Content.d.ts +0 -0
  1020. /package/dist/{components → packages/taco/src/components}/Menu/components/Header.d.ts +0 -0
  1021. /package/dist/{components → packages/taco/src/components}/Menu/components/Item.d.ts +0 -0
  1022. /package/dist/{components → packages/taco/src/components}/Menu/components/Link.d.ts +0 -0
  1023. /package/dist/{components → packages/taco/src/components}/Menu/components/RadioGroup.d.ts +0 -0
  1024. /package/dist/{components → packages/taco/src/components}/Menu/components/Separator.d.ts +0 -0
  1025. /package/dist/{components → packages/taco/src/components}/Menu/components/SubMenu.d.ts +0 -0
  1026. /package/dist/{components → packages/taco/src/components}/Menu/components/Trigger.d.ts +0 -0
  1027. /package/dist/{components → packages/taco/src/components}/ModeSwitch/ModeSwitch.d.ts +0 -0
  1028. /package/dist/{components → packages/taco/src/components}/Navigation/Navigation.d.ts +0 -0
  1029. /package/dist/{components → packages/taco/src/components}/Navigation2/Navigation2.d.ts +0 -0
  1030. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Content.d.ts +0 -0
  1031. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Group.d.ts +0 -0
  1032. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Link.d.ts +0 -0
  1033. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Section.d.ts +0 -0
  1034. /package/dist/{components → packages/taco/src/components}/Navigation2/components/util.d.ts +0 -0
  1035. /package/dist/{components → packages/taco/src/components}/OverflowGroup/OverflowGroup.d.ts +0 -0
  1036. /package/dist/{components → packages/taco/src/components}/Pagination/PageNumbers.d.ts +0 -0
  1037. /package/dist/{components → packages/taco/src/components}/Pagination/Pagination.d.ts +0 -0
  1038. /package/dist/{components → packages/taco/src/components}/Pagination/usePagination.d.ts +0 -0
  1039. /package/dist/{components → packages/taco/src/components}/Pagination/usePaginationShortcuts.d.ts +0 -0
  1040. /package/dist/{components → packages/taco/src/components}/Popover/Popover.d.ts +0 -0
  1041. /package/dist/{components → packages/taco/src/components}/Popover/Primitives.d.ts +0 -0
  1042. /package/dist/{components → packages/taco/src/components}/Popover/util.d.ts +0 -0
  1043. /package/dist/{components → packages/taco/src/components}/Progress/Progress.d.ts +0 -0
  1044. /package/dist/{components → packages/taco/src/components}/Provider/Provider.d.ts +0 -0
  1045. /package/dist/{components → packages/taco/src/components}/RadioGroup/RadioGroup.d.ts +0 -0
  1046. /package/dist/{components → packages/taco/src/components}/RadioGroup/util.d.ts +0 -0
  1047. /package/dist/{components → packages/taco/src/components}/ScrollArea/ScrollArea.d.ts +0 -0
  1048. /package/dist/{components → packages/taco/src/components}/SearchInput/SearchInput.d.ts +0 -0
  1049. /package/dist/{components → packages/taco/src/components}/SearchInput2/SearchInput2.d.ts +0 -0
  1050. /package/dist/{components → packages/taco/src/components}/Select/Select.d.ts +0 -0
  1051. /package/dist/{components → packages/taco/src/components}/Select/useSelect.d.ts +0 -0
  1052. /package/dist/{components → packages/taco/src/components}/Select2/components/All.d.ts +0 -0
  1053. /package/dist/{components → packages/taco/src/components}/Select2/components/Collection.d.ts +0 -0
  1054. /package/dist/{components → packages/taco/src/components}/Select2/components/Context.d.ts +0 -0
  1055. /package/dist/{components → packages/taco/src/components}/Select2/components/Create.d.ts +0 -0
  1056. /package/dist/{components → packages/taco/src/components}/Select2/components/Edit.d.ts +0 -0
  1057. /package/dist/{components → packages/taco/src/components}/Select2/components/Group.d.ts +0 -0
  1058. /package/dist/{components → packages/taco/src/components}/Select2/components/Option.d.ts +0 -0
  1059. /package/dist/{components → packages/taco/src/components}/Select2/components/Search.d.ts +0 -0
  1060. /package/dist/{components → packages/taco/src/components}/Select2/components/Title.d.ts +0 -0
  1061. /package/dist/{components → packages/taco/src/components}/Select2/components/Trigger.d.ts +0 -0
  1062. /package/dist/{components → packages/taco/src/components}/Select2/hooks/useChildren.d.ts +0 -0
  1063. /package/dist/{components → packages/taco/src/components}/Select2/types.d.ts +0 -0
  1064. /package/dist/{components → packages/taco/src/components}/Select2/utilities.d.ts +0 -0
  1065. /package/dist/{components → packages/taco/src/components}/Shortcut/Shortcut.d.ts +0 -0
  1066. /package/dist/{components → packages/taco/src/components}/Spinner/Spinner.d.ts +0 -0
  1067. /package/dist/{components → packages/taco/src/components}/Switch/Switch.d.ts +0 -0
  1068. /package/dist/{components → packages/taco/src/components}/Table/Table.storyexample.d.ts +0 -0
  1069. /package/dist/{components → packages/taco/src/components}/Table/components/PaginatedTable.d.ts +0 -0
  1070. /package/dist/{components → packages/taco/src/components}/Table/components/Table.d.ts +0 -0
  1071. /package/dist/{components → packages/taco/src/components}/Table/components/WindowedTable.d.ts +0 -0
  1072. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
  1073. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
  1074. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
  1075. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
  1076. /package/dist/{components → packages/taco/src/components}/Table/util/renderColumn.d.ts +0 -0
  1077. /package/dist/{components → packages/taco/src/components}/Table/util/renderRow.d.ts +0 -0
  1078. /package/dist/{components → packages/taco/src/components}/Table/util/rowIndexPath.d.ts +0 -0
  1079. /package/dist/{components → packages/taco/src/components}/Tabs/Tabs.d.ts +0 -0
  1080. /package/dist/{components → packages/taco/src/components}/Tag/Tag.d.ts +0 -0
  1081. /package/dist/{components → packages/taco/src/components}/Textarea/Textarea.d.ts +0 -0
  1082. /package/dist/{components → packages/taco/src/components}/Toast/Toast.d.ts +0 -0
  1083. /package/dist/{components → packages/taco/src/components}/Toast/Toaster.d.ts +0 -0
  1084. /package/dist/{components → packages/taco/src/components}/Toast/util.d.ts +0 -0
  1085. /package/dist/{components → packages/taco/src/components}/Tooltip/Tooltip.d.ts +0 -0
  1086. /package/dist/{components → packages/taco/src/components}/Tour/Tour.d.ts +0 -0
  1087. /package/dist/{components → packages/taco/src/components}/Treeview/Treeview.d.ts +0 -0
  1088. /package/dist/{components → packages/taco/src/components}/Truncate/Truncate.d.ts +0 -0
  1089. /package/dist/{components → packages/taco/src/components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
  1090. /package/dist/{hooks → packages/taco/src/hooks}/useBoundaryOverflowDetection.d.ts +0 -0
  1091. /package/dist/{hooks → packages/taco/src/hooks}/useBoundingClientRectListener.d.ts +0 -0
  1092. /package/dist/{hooks → packages/taco/src/hooks}/useDebouncedEffect.d.ts +0 -0
  1093. /package/dist/{hooks → packages/taco/src/hooks}/useGlobalKeyDown.d.ts +0 -0
  1094. /package/dist/{hooks → packages/taco/src/hooks}/useId.d.ts +0 -0
  1095. /package/dist/{hooks → packages/taco/src/hooks}/useIntersectionObserver.d.ts +0 -0
  1096. /package/dist/{hooks → packages/taco/src/hooks}/useIsFormControl.d.ts +0 -0
  1097. /package/dist/{hooks → packages/taco/src/hooks}/useIsHoverStatePaused.d.ts +0 -0
  1098. /package/dist/{hooks → packages/taco/src/hooks}/useIsLargeScreen.d.ts +0 -0
  1099. /package/dist/{hooks → packages/taco/src/hooks}/useLazyEffect.d.ts +0 -0
  1100. /package/dist/{hooks → packages/taco/src/hooks}/useLocalStorage.d.ts +0 -0
  1101. /package/dist/{hooks → packages/taco/src/hooks}/useMatchMedia.d.ts +0 -0
  1102. /package/dist/{hooks → packages/taco/src/hooks}/useMergedRef.d.ts +0 -0
  1103. /package/dist/{hooks → packages/taco/src/hooks}/usePrevious.d.ts +0 -0
  1104. /package/dist/{hooks → packages/taco/src/hooks}/useTacoSettings.d.ts +0 -0
  1105. /package/dist/{primitives → packages/taco/src/primitives}/BubbleSelect.d.ts +0 -0
  1106. /package/dist/{primitives → packages/taco/src/primitives}/Button.d.ts +0 -0
  1107. /package/dist/{primitives → packages/taco/src/primitives}/Collection/Collection.d.ts +0 -0
  1108. /package/dist/{primitives → packages/taco/src/primitives}/Collection/components/Root.d.ts +0 -0
  1109. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/Listbox2.d.ts +0 -0
  1110. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Context.d.ts +0 -0
  1111. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Group.d.ts +0 -0
  1112. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Option.d.ts +0 -0
  1113. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Root.d.ts +0 -0
  1114. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Title.d.ts +0 -0
  1115. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/types.d.ts +0 -0
  1116. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/Sortable.d.ts +0 -0
  1117. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Container.d.ts +0 -0
  1118. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Item.d.ts +0 -0
  1119. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/List.d.ts +0 -0
  1120. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/util.d.ts +0 -0
  1121. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  1122. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  1123. /package/dist/{components/Report/components/Row → packages/taco/src/primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  1124. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  1125. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  1126. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +0 -0
  1127. /package/dist/{components/Report/styles → packages/taco/src/primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  1128. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/Core}/features/useTableRef.d.ts +0 -0
  1129. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  1130. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/util/rows.d.ts +0 -0
  1131. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableDataLoader.d.ts +0 -0
  1132. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableColumnFreezing.d.ts +0 -0
  1133. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableColumnOrdering.d.ts +0 -0
  1134. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableFontSize.d.ts +0 -0
  1135. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableFooter.d.ts +0 -0
  1136. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTablePrinting.d.ts +0 -0
  1137. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowActions.d.ts +0 -0
  1138. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowClick.d.ts +0 -0
  1139. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowExpansion.d.ts +0 -0
  1140. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowGoto.d.ts +0 -0
  1141. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowGroups.d.ts +0 -0
  1142. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowHeight.d.ts +0 -0
  1143. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableRowSelection.d.ts +0 -0
  1144. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableSearch.d.ts +0 -0
  1145. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableServerLoading.d.ts +0 -0
  1146. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/features/useTableSettings.d.ts +0 -0
  1147. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableDataListener.d.ts +0 -0
  1148. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableFilterListener.d.ts +0 -0
  1149. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableFontSizeListener.d.ts +0 -0
  1150. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableRowHeightListener.d.ts +0 -0
  1151. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableRowSelectionListener.d.ts +0 -0
  1152. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSearchListener.d.ts +0 -0
  1153. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableServerLoadingListener.d.ts +0 -0
  1154. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSettingsListener.d.ts +0 -0
  1155. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableShortcutsListener.d.ts +0 -0
  1156. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/listeners/useTableSortingListener.d.ts +0 -0
  1157. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/columns.d.ts +0 -0
  1158. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/columns.spec.d.ts +0 -0
  1159. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/filtering.d.ts +0 -0
  1160. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/search.d.ts +0 -0
  1161. /package/dist/{primitives/Table/useTable → packages/taco/src/primitives/Table/useTableManager}/util/sorting.d.ts +0 -0
  1162. /package/dist/{types.d.ts → packages/taco/src/types.d.ts} +0 -0
  1163. /package/dist/{utils → packages/taco/src/utils}/aria.d.ts +0 -0
  1164. /package/dist/{utils → packages/taco/src/utils}/date.d.ts +0 -0
  1165. /package/dist/{utils → packages/taco/src/utils}/debounce.d.ts +0 -0
  1166. /package/dist/{utils → packages/taco/src/utils}/device.d.ts +0 -0
  1167. /package/dist/{utils → packages/taco/src/utils}/hooks/useDraggable.d.ts +0 -0
  1168. /package/dist/{utils → packages/taco/src/utils}/hooks/useDropTarget.d.ts +0 -0
  1169. /package/dist/{utils → packages/taco/src/utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
  1170. /package/dist/{utils → packages/taco/src/utils}/hooks/useListScrollTo.d.ts +0 -0
  1171. /package/dist/{utils → packages/taco/src/utils}/hooks/useOnClickOutside.d.ts +0 -0
  1172. /package/dist/{utils → packages/taco/src/utils}/hooks/useRefState.d.ts +0 -0
  1173. /package/dist/{utils → packages/taco/src/utils}/hooks/useTimer.d.ts +0 -0
  1174. /package/dist/{utils → packages/taco/src/utils}/hooks/useTruncated.d.ts +0 -0
  1175. /package/dist/{utils → packages/taco/src/utils}/input.d.ts +0 -0
  1176. /package/dist/{utils → packages/taco/src/utils}/keyboard.d.ts +0 -0
  1177. /package/dist/{utils → packages/taco/src/utils}/mergeRefs.d.ts +0 -0
  1178. /package/dist/{utils → packages/taco/src/utils}/storyutils.d.ts +0 -0
  1179. /package/dist/{utils → packages/taco/src/utils}/tailwind.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"useTableKeyboardNavigation.js","sources":["../../../../../../../../src/components/Table/hooks/useTableKeyboardNavigation.ts"],"sourcesContent":["import React from 'react';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { getNextIndexFromKey } from '../../../utils/hooks/useListKeyboardNavigation';\nimport { sanitizeRowProps } from '../util';\nimport { TableProps } from '../types';\n\nexport const useTableKeyboardNavigation = <T extends {}>(\n props: TableProps<T>,\n rows: any[],\n rowProps: any,\n ref: React.RefObject<HTMLDivElement>\n): [\n number | undefined,\n (index: number) => void,\n (event: React.KeyboardEvent<HTMLElement>) => void,\n (event: React.FocusEvent<HTMLElement>) => void\n] => {\n const useGlobalKeyboardNavigation = props.dangerouslyHijackGlobalKeyboardNavigation;\n\n const [activeIndex, setActiveIndex] = useControllableState<number | undefined>({\n prop: props.activeIndex,\n defaultProp:\n props.defaultActiveIndex !== undefined ? props.defaultActiveIndex : useGlobalKeyboardNavigation ? 0 : undefined,\n onChange: index => {\n if (index !== undefined) {\n props.onChangeActiveIndex?.(index);\n }\n },\n });\n\n const onKeyDown = (event: KeyboardEvent): void => {\n const isModifierKeyPressed = event.metaKey || event.ctrlKey || event.altKey || event.shiftKey;\n\n if (\n useGlobalKeyboardNavigation &&\n document.activeElement !== ref.current &&\n document.activeElement?.getAttribute('type') !== 'search' &&\n document.activeElement !== document.body &&\n document.activeElement?.getAttribute('role') !== 'dialog'\n ) {\n return;\n }\n // abort key handling if other elements inside table are focused and we don't use global keyboard navigation\n if (!useGlobalKeyboardNavigation && document.activeElement !== ref.current) {\n return;\n }\n\n if (activeIndex !== undefined) {\n const currentRow = rows[activeIndex];\n\n if (currentRow) {\n const sanitizedRow = sanitizeRowProps(currentRow, rowProps.rowExpansionRenderer);\n\n if (rowProps.onRowClick && event.key === 'Enter') {\n event.preventDefault();\n rowProps.onRowClick(sanitizedRow);\n return;\n }\n\n if (currentRow.toggleRowSelected && event.key === ' ') {\n event.preventDefault();\n currentRow.toggleRowSelected();\n return;\n }\n\n if (currentRow.toggleRowExpanded) {\n if (currentRow.isExpanded && event.key === 'ArrowLeft') {\n event.preventDefault();\n currentRow.toggleRowExpanded();\n return;\n } else if (!currentRow.isExpanded && event.key === 'ArrowRight') {\n event.preventDefault();\n currentRow.toggleRowExpanded();\n return;\n }\n }\n\n // inline editing\n if (currentRow.toggleRowEditing) {\n if (currentRow.canEdit && !currentRow.isEditing) {\n if (rowProps.onRowCreate && event.shiftKey && event.key === 'n') {\n event.preventDefault();\n\n if (!currentRow.isExpanded) {\n currentRow.toggleRowExpanded();\n }\n\n rowProps.onRowCreate(sanitizedRow, event);\n return;\n }\n\n if (event.key === 'e') {\n event.preventDefault();\n currentRow.toggleRowEditing();\n return;\n }\n }\n }\n\n if (rowProps.onRowEdit && event.key === 'e' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowEdit(sanitizedRow, event);\n return;\n }\n\n if (rowProps.onRowCopy && event.key === 'c' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowCopy(sanitizedRow, event);\n return;\n }\n\n if (rowProps.onRowDelete && event.key === 'Delete' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowDelete(sanitizedRow, event);\n return;\n }\n }\n }\n\n const nextIndex = getNextIndexFromKey(event.key, rows.length, activeIndex);\n\n if (nextIndex !== undefined) {\n event.preventDefault();\n setActiveIndex(nextIndex);\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>): void => {\n if (!useGlobalKeyboardNavigation) {\n onKeyDown(event.nativeEvent);\n }\n };\n\n React.useEffect(() => {\n if (useGlobalKeyboardNavigation) {\n window.addEventListener('keydown', onKeyDown);\n }\n\n return () => {\n if (useGlobalKeyboardNavigation) {\n window.removeEventListener('keydown', onKeyDown);\n }\n };\n }, [onKeyDown]);\n\n const handleFocus = (): void => {\n if (activeIndex === undefined && rows.length) {\n setActiveIndex(0);\n }\n };\n\n return [activeIndex, setActiveIndex, handleKeyDown, handleFocus];\n};\n"],"names":["useTableKeyboardNavigation","props","rows","rowProps","ref","useGlobalKeyboardNavigation","dangerouslyHijackGlobalKeyboardNavigation","activeIndex","setActiveIndex","useControllableState","prop","defaultProp","defaultActiveIndex","undefined","onChange","index","_props$onChangeActive","onChangeActiveIndex","call","onKeyDown","event","isModifierKeyPressed","metaKey","ctrlKey","altKey","shiftKey","document","activeElement","current","_document$activeEleme","getAttribute","body","_document$activeEleme2","currentRow","sanitizedRow","sanitizeRowProps","rowExpansionRenderer","onRowClick","key","preventDefault","toggleRowSelected","toggleRowExpanded","isExpanded","toggleRowEditing","canEdit","isEditing","onRowCreate","onRowEdit","onRowCopy","onRowDelete","nextIndex","getNextIndexFromKey","length","handleKeyDown","nativeEvent","React","useEffect","window","addEventListener","removeEventListener","handleFocus"],"mappings":";;;;;MAMaA,0BAA0B,GAAGA,CACtCC,KAAoB,EACpBC,IAAW,EACXC,QAAa,EACbC,GAAoC;EAOpC,MAAMC,2BAA2B,GAAGJ,KAAK,CAACK,yCAAyC;EAEnF,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGC,oBAAoB,CAAqB;IAC3EC,IAAI,EAAET,KAAK,CAACM,WAAW;IACvBI,WAAW,EACPV,KAAK,CAACW,kBAAkB,KAAKC,SAAS,GAAGZ,KAAK,CAACW,kBAAkB,GAAGP,2BAA2B,GAAG,CAAC,GAAGQ,SAAS;IACnHC,QAAQ,EAAEC,KAAK;MACX,IAAIA,KAAK,KAAKF,SAAS,EAAE;QAAA,IAAAG,qBAAA;QACrB,CAAAA,qBAAA,GAAAf,KAAK,CAACgB,mBAAmB,cAAAD,qBAAA,uBAAzBA,qBAAA,CAAAE,IAAA,CAAAjB,KAAK,EAAuBc,KAAK,CAAC;;;GAG7C,CAAC;EAEF,MAAMI,SAAS,GAAIC,KAAoB;;IACnC,MAAMC,oBAAoB,GAAGD,KAAK,CAACE,OAAO,IAAIF,KAAK,CAACG,OAAO,IAAIH,KAAK,CAACI,MAAM,IAAIJ,KAAK,CAACK,QAAQ;IAE7F,IACIpB,2BAA2B,IAC3BqB,QAAQ,CAACC,aAAa,KAAKvB,GAAG,CAACwB,OAAO,IACtC,EAAAC,qBAAA,GAAAH,QAAQ,CAACC,aAAa,cAAAE,qBAAA,uBAAtBA,qBAAA,CAAwBC,YAAY,CAAC,MAAM,CAAC,MAAK,QAAQ,IACzDJ,QAAQ,CAACC,aAAa,KAAK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,KAAK,CAACmB,cAAc,EAAE;MACtB/B,cAAc,CAAC0C,SAAS,CAAC;;GAEhC;EAED,MAAMG,aAAa,GAAIjC,KAAuC;IAC1D,IAAI,CAACf,2BAA2B,EAAE;MAC9Bc,SAAS,CAACC,KAAK,CAACkC,WAAW,CAAC;;GAEnC;EAEDC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAInD,2BAA2B,EAAE;MAC7BoD,MAAM,CAACC,gBAAgB,CAAC,SAAS,EAAEvC,SAAS,CAAC;;IAGjD,OAAO;MACH,IAAId,2BAA2B,EAAE;QAC7BoD,MAAM,CAACE,mBAAmB,CAAC,SAAS,EAAExC,SAAS,CAAC;;KAEvD;GACJ,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAMyC,WAAW,GAAGA;IAChB,IAAIrD,WAAW,KAAKM,SAAS,IAAIX,IAAI,CAACkD,MAAM,EAAE;MAC1C5C,cAAc,CAAC,CAAC,CAAC;;GAExB;EAED,OAAO,CAACD,WAAW,EAAEC,cAAc,EAAE6C,aAAa,EAAEO,WAAW,CAAC;AACpE;;;;"}
1
+ {"version":3,"file":"useTableKeyboardNavigation.js","sources":["../../../../../../../../src/components/Table/hooks/useTableKeyboardNavigation.ts"],"sourcesContent":["import React from 'react';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { getNextIndexFromKey } from '../../../utils/hooks/useListKeyboardNavigation';\nimport { sanitizeRowProps } from '../util';\nimport { LegacyTableProps } from '../types';\n\nexport const useTableKeyboardNavigation = <T extends {}>(\n props: LegacyTableProps<T>,\n rows: any[],\n rowProps: any,\n ref: React.RefObject<HTMLDivElement>\n): [\n number | undefined,\n (index: number) => void,\n (event: React.KeyboardEvent<HTMLElement>) => void,\n (event: React.FocusEvent<HTMLElement>) => void\n] => {\n const useGlobalKeyboardNavigation = props.dangerouslyHijackGlobalKeyboardNavigation;\n\n const [activeIndex, setActiveIndex] = useControllableState<number | undefined>({\n prop: props.activeIndex,\n defaultProp:\n props.defaultActiveIndex !== undefined ? props.defaultActiveIndex : useGlobalKeyboardNavigation ? 0 : undefined,\n onChange: index => {\n if (index !== undefined) {\n props.onChangeActiveIndex?.(index);\n }\n },\n });\n\n const onKeyDown = (event: KeyboardEvent): void => {\n const isModifierKeyPressed = event.metaKey || event.ctrlKey || event.altKey || event.shiftKey;\n\n if (\n useGlobalKeyboardNavigation &&\n document.activeElement !== ref.current &&\n document.activeElement?.getAttribute('type') !== 'search' &&\n document.activeElement !== document.body &&\n document.activeElement?.getAttribute('role') !== 'dialog'\n ) {\n return;\n }\n // abort key handling if other elements inside table are focused and we don't use global keyboard navigation\n if (!useGlobalKeyboardNavigation && document.activeElement !== ref.current) {\n return;\n }\n\n if (activeIndex !== undefined) {\n const currentRow = rows[activeIndex];\n\n if (currentRow) {\n const sanitizedRow = sanitizeRowProps(currentRow, rowProps.rowExpansionRenderer);\n\n if (rowProps.onRowClick && event.key === 'Enter') {\n event.preventDefault();\n rowProps.onRowClick(sanitizedRow);\n return;\n }\n\n if (currentRow.toggleRowSelected && event.key === ' ') {\n event.preventDefault();\n currentRow.toggleRowSelected();\n return;\n }\n\n if (currentRow.toggleRowExpanded) {\n if (currentRow.isExpanded && event.key === 'ArrowLeft') {\n event.preventDefault();\n currentRow.toggleRowExpanded();\n return;\n } else if (!currentRow.isExpanded && event.key === 'ArrowRight') {\n event.preventDefault();\n currentRow.toggleRowExpanded();\n return;\n }\n }\n\n // inline editing\n if (currentRow.toggleRowEditing) {\n if (currentRow.canEdit && !currentRow.isEditing) {\n if (rowProps.onRowCreate && event.shiftKey && event.key === 'n') {\n event.preventDefault();\n\n if (!currentRow.isExpanded) {\n currentRow.toggleRowExpanded();\n }\n\n rowProps.onRowCreate(sanitizedRow, event);\n return;\n }\n\n if (event.key === 'e') {\n event.preventDefault();\n currentRow.toggleRowEditing();\n return;\n }\n }\n }\n\n if (rowProps.onRowEdit && event.key === 'e' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowEdit(sanitizedRow, event);\n return;\n }\n\n if (rowProps.onRowCopy && event.key === 'c' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowCopy(sanitizedRow, event);\n return;\n }\n\n if (rowProps.onRowDelete && event.key === 'Delete' && !isModifierKeyPressed) {\n event.preventDefault();\n rowProps.onRowDelete(sanitizedRow, event);\n return;\n }\n }\n }\n\n const nextIndex = getNextIndexFromKey(event.key, rows.length, activeIndex);\n\n if (nextIndex !== undefined) {\n event.preventDefault();\n setActiveIndex(nextIndex);\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>): void => {\n if (!useGlobalKeyboardNavigation) {\n onKeyDown(event.nativeEvent);\n }\n };\n\n React.useEffect(() => {\n if (useGlobalKeyboardNavigation) {\n window.addEventListener('keydown', onKeyDown);\n }\n\n return () => {\n if (useGlobalKeyboardNavigation) {\n window.removeEventListener('keydown', onKeyDown);\n }\n };\n }, [onKeyDown]);\n\n const handleFocus = (): void => {\n if (activeIndex === undefined && rows.length) {\n setActiveIndex(0);\n }\n };\n\n return [activeIndex, setActiveIndex, handleKeyDown, handleFocus];\n};\n"],"names":["useTableKeyboardNavigation","props","rows","rowProps","ref","useGlobalKeyboardNavigation","dangerouslyHijackGlobalKeyboardNavigation","activeIndex","setActiveIndex","useControllableState","prop","defaultProp","defaultActiveIndex","undefined","onChange","index","_props$onChangeActive","onChangeActiveIndex","call","onKeyDown","event","isModifierKeyPressed","metaKey","ctrlKey","altKey","shiftKey","document","activeElement","current","_document$activeEleme","getAttribute","body","_document$activeEleme2","currentRow","sanitizedRow","sanitizeRowProps","rowExpansionRenderer","onRowClick","key","preventDefault","toggleRowSelected","toggleRowExpanded","isExpanded","toggleRowEditing","canEdit","isEditing","onRowCreate","onRowEdit","onRowCopy","onRowDelete","nextIndex","getNextIndexFromKey","length","handleKeyDown","nativeEvent","React","useEffect","window","addEventListener","removeEventListener","handleFocus"],"mappings":";;;;;MAMaA,0BAA0B,GAAGA,CACtCC,KAA0B,EAC1BC,IAAW,E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,SAAS,CAAC;;IAGjD,OAAO;MACH,IAAId,2BAA2B,EAAE;QAC7BoD,MAAM,CAACE,mBAAmB,CAAC,SAAS,EAAExC,SAAS,CAAC;;KAEvD;GACJ,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAMyC,WAAW,GAAGA;IAChB,IAAIrD,WAAW,KAAKM,SAAS,IAAIX,IAAI,CAACkD,MAAM,EAAE;MAC1C5C,cAAc,CAAC,CAAC,CAAC;;GAExB;EAED,OAAO,CAACD,WAAW,EAAEC,cAAc,EAAE6C,aAAa,EAAEO,WAAW,CAAC;AACpE;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderRow.js","sources":["../../../../../../../../src/components/Table/util/renderRow.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { FocusScope } from '@react-aria/focus';\nimport { InternalTableCell, TableRow } from '../types';\nimport { sanitizeRowProps } from '../util';\n\nconst renderCell = (cell: InternalTableCell, row: TableRow<any>): JSX.Element => {\n const props = {\n ...cell.getCellProps(),\n className: cn('yt-table__cell flex-1 truncate p-2 align-middle', cell.column.className, {\n 'justify-start text-left': cell.column.align === 'left',\n 'justify-end text-right': cell.column.align === 'right',\n 'text-center': !cell.column.align,\n }),\n style: {\n ...cell.column.style,\n flex: typeof cell.column.flex === 'function' ? cell.column.flex(row) : cell.column.flex,\n },\n };\n return (\n <div {...props} role=\"gridcell\" data-taco=\"table-cell\">\n {cell.render('Cell') || null}\n </div>\n );\n};\n\nexport const Row = React.forwardRef(function TableRow({ row, index, instance, headerGroups, ...rowProps }: any, ref: any) {\n const {\n activeIndex,\n onRowClick,\n rowClassName,\n rowExpansionRenderer,\n rowHeight,\n setActiveIndex,\n style,\n inlineEditingUniqueId,\n } = rowProps;\n const sanitizedRow = sanitizeRowProps(row, rowExpansionRenderer);\n\n const props = {\n ...row.getRowProps(),\n style: {\n ...style,\n minHeight: rowHeight ? `${rowHeight}px` : undefined,\n paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined,\n },\n className: cn(\n 'yt-table__row border-grey-300 flex border-b min-h-[2.5rem] hover:bg-grey-100',\n {\n 'yt-table__row--active bg-grey-200 hover:bg-grey-200': activeIndex === index,\n 'yt-table__row--clickable': !!onRowClick,\n 'yt-table__row--dragging': !!row.isDragging,\n 'yt-table__row--editing': !!row.isEditing,\n },\n typeof rowClassName === 'function' ? rowClassName(sanitizedRow) : rowClassName\n ),\n onClick: onRowClick\n ? (event: React.MouseEvent<HTMLElement>) => {\n if (\n event.target === event.currentTarget ||\n (event.target as HTMLElement).classList.contains('yt-table__cell')\n ) {\n event.preventDefault();\n event.persist();\n setActiveIndex(index);\n onRowClick(sanitizedRow);\n }\n }\n : () => {\n setActiveIndex(index);\n },\n };\n\n let cells = row.cells;\n\n if (row.depth > 0) {\n cells = row.cells.filter((cell: any) => !cell.column.hiddenOnSubRows);\n }\n\n const expandedRow = rowExpansionRenderer && row.isExpanded && <div>{rowExpansionRenderer(sanitizedRow, instance)}</div>;\n const rowContent = React.useMemo(() => {\n return (\n <>\n <FocusScope key={row.original._createKey} contain restoreFocus autoFocus>\n <div {...props} role=\"row\" ref={ref}>\n <input type=\"hidden\" name=\"_rowIndexPath\" value={row.id} />\n <input type=\"hidden\" name=\"_inlineEditingUniqueId\" value={row.original[inlineEditingUniqueId]} />\n {cells.map((cell: InternalTableCell) => renderCell(cell, sanitizedRow))}\n </div>\n </FocusScope>\n {expandedRow}\n </>\n );\n }, [row.original._createKey]);\n\n if (row.isEditing) {\n return rowContent;\n }\n\n return (\n <>\n <div {...props} role=\"row\" ref={ref}>\n {cells.map((cell: InternalTableCell) => renderCell(cell, sanitizedRow))}\n </div>\n {expandedRow}\n </>\n );\n});\n"],"names":["renderCell","cell","row","props","getCellProps","className","cn","column","align","style","flex","React","role","render","Row","forwardRef","TableRow","index","instance","headerGroups","rowProps","ref","activeIndex","onRowClick","rowClassName","rowExpansionRenderer","rowHeight","setActiveIndex","inlineEditingUniqueId","sanitizedRow","sanitizeRowProps","getRowProps","minHeight","undefined","paddingLeft","depth","isDragging","isEditing","onClick","event","target","currentTarget","classList","contains","preventDefault","persist","cells","filter","hiddenOnSubRows","expandedRow","isExpanded","rowContent","useMemo","FocusScope","key","original","_createKey","contain","restoreFocus","autoFocus","type","name","value","id","map"],"mappings":";;;;;AAMA,MAAMA,UAAU,GAAGA,CAACC,IAAuB,EAAEC,GAAkB;EAC3D,MAAMC,KAAK,GAAG;IACV,GAAGF,IAAI,CAACG,YAAY,EAAE;IACtBC,SAAS,EAAEC,EAAE,CAAC,iDAAiD,EAAEL,IAAI,CAACM,MAAM,CAACF,SAAS,EAAE;MACpF,yBAAyB,EAAEJ,IAAI,CAACM,MAAM,CAACC,KAAK,KAAK,MAAM;MACvD,wBAAwB,EAAEP,IAAI,CAACM,MAAM,CAACC,KAAK,KAAK,OAAO;MACvD,aAAa,EAAE,CAACP,IAAI,CAACM,MAAM,CAACC;KAC/B,CAAC;IACFC,KAAK,EAAE;MACH,GAAGR,IAAI,CAACM,MAAM,CAACE,KAAK;MACpBC,IAAI,EAAE,OAAOT,IAAI,CAACM,MAAM,CAACG,IAAI,KAAK,UAAU,GAAGT,IAAI,CAACM,MAAM,CAACG,IAAI,CAACR,GAAG,CAAC,GAAGD,IAAI,CAACM,MAAM,CAACG;;GAE1F;EACD,oBACIC,sDAASR,KAAK;IAAES,IAAI,EAAC,UAAU;iBAAW;MACrCX,IAAI,CAACY,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAC1B;AAEd,CAAC;MAEYC,GAAG,gBAAGH,cAAK,CAACI,UAAU,CAAC,SAASC,QAAQA,CAAC;EAAEd,GAAG;EAAEe,KAAK;EAAEC,QAAQ;EAAEC,YAAY;EAAE,GAAGC;CAAe,EAAEC,GAAQ;EACpH,MAAM;IACFC,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,oBAAoB;IACpBC,SAAS;IACTC,cAAc;IACdlB,KAAK;IACLmB;GACH,GAAGR,QAAQ;EACZ,MAAMS,YAAY,GA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G,CAACgD,UAAU,iBAAIvC,0CAAMc,oBAAoB,CAACI,YAAY,EAAEX,QAAQ,CAAC,CAAO;EACvH,MAAMiC,UAAU,GAAGxC,cAAK,CAACyC,OAAO,CAAC;IAC7B,oBACIzC,yEACIA,6BAAC0C,UAAU;MAACC,GAAG,EAAEpD,GAAG,CAACqD,QAAQ,CAACC,UAAU;MAAEC,OAAO;MAACC,YAAY;MAACC,SAAS;oBACpEhD,sDAASR,KAAK;MAAES,IAAI,EAAC,KAAK;MAACS,GAAG,EAAEA;qBAC5BV;MAAOiD,IAAI,EAAC,QAAQ;MAACC,IAAI,EAAC,eAAe;MAACC,KAAK,EAAE5D,GAAG,CAAC6D;MAAM,eAC3DpD;MAAOiD,IAAI,EAAC,QAAQ;MAACC,IAAI,EAAC,wBAAwB;MAACC,KAAK,EAAE5D,GAAG,CAACqD,QAAQ,CAAC3B,qBAAqB;MAAK,EAChGkB,KAAK,CAACkB,GAAG,CAAE/D,IAAuB,IAAKD,UAAU,CAACC,IAAI,EAAE4B,YAAY,CAAC,CAAC,CACrE,CACG,EACZoB,WAAW,CACb;GAEV,EAAE,CAAC/C,GAAG,CAACqD,QAAQ,CAACC,UAAU,CAAC,CAAC;EAE7B,IAAItD,GAAG,CAACmC,SAAS,EAAE;IACf,OAAOc,UAAU;;EAGrB,oBACIxC,yEACIA,sDAASR,KAAK;IAAES,IAAI,EAAC,KAAK;IAACS,GAAG,EAAEA;MAC3ByB,KAAK,CAACkB,GAAG,CAAE/D,IAAuB,IAAKD,UAAU,CAACC,IAAI,EAAE4B,YAAY,CAAC,CAAC,CACrE,EACLoB,WAAW,CACb;AAEX,CAAC;;;;"}
1
+ {"version":3,"file":"renderRow.js","sources":["../../../../../../../../src/components/Table/util/renderRow.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { FocusScope } from '@react-aria/focus';\nimport { InternalTableCell, LegacyTableRow } from '../types';\nimport { sanitizeRowProps } from '../util';\n\nconst renderCell = (cell: InternalTableCell, row: LegacyTableRow<any>): JSX.Element => {\n const props = {\n ...cell.getCellProps(),\n className: cn('yt-table__cell flex-1 truncate p-2 align-middle', cell.column.className, {\n 'justify-start text-left': cell.column.align === 'left',\n 'justify-end text-right': cell.column.align === 'right',\n 'text-center': !cell.column.align,\n }),\n style: {\n ...cell.column.style,\n flex: typeof cell.column.flex === 'function' ? cell.column.flex(row) : cell.column.flex,\n },\n };\n return (\n <div {...props} role=\"gridcell\" data-taco=\"table-cell\">\n {cell.render('Cell') || null}\n </div>\n );\n};\n\nexport const Row = React.forwardRef(function TableRow({ row, index, instance, headerGroups, ...rowProps }: any, ref: any) {\n const {\n activeIndex,\n onRowClick,\n rowClassName,\n rowExpansionRenderer,\n rowHeight,\n setActiveIndex,\n style,\n inlineEditingUniqueId,\n } = rowProps;\n const sanitizedRow = sanitizeRowProps(row, rowExpansionRenderer);\n\n const props = {\n ...row.getRowProps(),\n style: {\n ...style,\n minHeight: rowHeight ? `${rowHeight}px` : undefined,\n paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined,\n },\n className: cn(\n 'yt-table__row border-grey-300 flex border-b min-h-[2.5rem] hover:bg-grey-100',\n {\n 'yt-table__row--active bg-grey-200 hover:bg-grey-200': activeIndex === index,\n 'yt-table__row--clickable': !!onRowClick,\n 'yt-table__row--dragging': !!row.isDragging,\n 'yt-table__row--editing': !!row.isEditing,\n },\n typeof rowClassName === 'function' ? rowClassName(sanitizedRow) : rowClassName\n ),\n onClick: onRowClick\n ? (event: React.MouseEvent<HTMLElement>) => {\n if (\n event.target === event.currentTarget ||\n (event.target as HTMLElement).classList.contains('yt-table__cell')\n ) {\n event.preventDefault();\n event.persist();\n setActiveIndex(index);\n onRowClick(sanitizedRow);\n }\n }\n : () => {\n setActiveIndex(index);\n },\n };\n\n let cells = row.cells;\n\n if (row.depth > 0) {\n cells = row.cells.filter((cell: any) => !cell.column.hiddenOnSubRows);\n }\n\n const expandedRow = rowExpansionRenderer && row.isExpanded && <div>{rowExpansionRenderer(sanitizedRow, instance)}</div>;\n const rowContent = React.useMemo(() => {\n return (\n <>\n <FocusScope key={row.original._createKey} contain restoreFocus autoFocus>\n <div {...props} role=\"row\" ref={ref}>\n <input type=\"hidden\" name=\"_rowIndexPath\" value={row.id} />\n <input type=\"hidden\" name=\"_inlineEditingUniqueId\" value={row.original[inlineEditingUniqueId]} />\n {cells.map((cell: InternalTableCell) => renderCell(cell, sanitizedRow))}\n </div>\n </FocusScope>\n {expandedRow}\n </>\n );\n }, [row.original._createKey]);\n\n if (row.isEditing) {\n return rowContent;\n }\n\n return (\n <>\n <div {...props} role=\"row\" ref={ref}>\n {cells.map((cell: InternalTableCell) => renderCell(cell, sanitizedRow))}\n </div>\n {expandedRow}\n </>\n );\n});\n"],"names":["renderCell","cell","row","props","getCellProps","className","cn","column","align","style","flex","React","role","render","Row","forwardRef","TableRow","index","instance","headerGroups","rowProps","ref","activeIndex","onRowClick","rowClassName","rowExpansionRenderer","rowHeight","setActiveIndex","inlineEditingUniqueId","sanitizedRow","sanitizeRowProps","getRowProps","minHeight","undefined","paddingLeft","depth","isDragging","isEditing","onClick","event","target","currentTarget","classList","contains","preventDefault","persist","cells","filter","hiddenOnSubRows","expandedRow","isExpanded","rowContent","useMemo","FocusScope","key","original","_createKey","contain","restoreFocus","autoFocus","type","name","value","id","map"],"mappings":";;;;;AAMA,MAAMA,UAAU,GAAGA,CAACC,IAAuB,EAAEC,GAAwB;EACjE,MAAMC,KAAK,GAAG;IACV,GAAGF,IAAI,CAACG,YAAY,EAAE;IACtBC,SAAS,EAAEC,EAAE,CAAC,iDAAiD,EAAEL,IAAI,CAACM,MAAM,CAACF,SAAS,EAAE;MACpF,yBAAyB,EAAEJ,IAAI,CAACM,MAAM,CAACC,KAAK,KAAK,MAAM;MACvD,wBAAwB,EAAEP,IAAI,CAACM,MAAM,CAACC,KAAK,KAAK,OAAO;MACvD,aAAa,EAAE,CAACP,IAAI,CAACM,MAAM,CAACC;KAC/B,CAAC;IACFC,KAAK,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CAAE/D,IAAuB,IAAKD,UAAU,CAACC,IAAI,EAAE4B,YAAY,CAAC,CAAC,CACrE,CACG,EACZoB,WAAW,CACb;GAEV,EAAE,CAAC/C,GAAG,CAACqD,QAAQ,CAACC,UAAU,CAAC,CAAC;EAE7B,IAAItD,GAAG,CAACmC,SAAS,EAAE;IACf,OAAOc,UAAU;;EAGrB,oBACIxC,yEACIA,sDAASR,KAAK;IAAES,IAAI,EAAC,KAAK;IAACS,GAAG,EAAEA;MAC3ByB,KAAK,CAACkB,GAAG,CAAE/D,IAAuB,IAAKD,UAAU,CAACC,IAAI,EAAE4B,YAAY,CAAC,CAAC,CACrE,EACLoB,WAAW,CACb;AAEX,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortTypes.js","sources":["../../../../../../../../src/components/Table/util/sortTypes.ts"],"sourcesContent":["import { SortTypes, TableRow } from '../types';\n\nconst getTime = (value: any): number | undefined => {\n const parsedValue: Date = typeof value === 'string' ? new Date(value) : value;\n return parsedValue?.getTime ? parsedValue.getTime() : undefined;\n};\n\nconst getNumber = (amount = '', decimalSeparator = ','): number | undefined => {\n if (typeof amount === 'number') {\n return amount;\n }\n\n if (amount === null || !amount.length) {\n return undefined;\n }\n\n let value;\n\n if (decimalSeparator === ',') {\n // replace digit seperator then replace decimal separator\n value = Number(amount.replace(/\\./g, '').replace(',', '.'));\n } else {\n // replace digit seperator\n value = Number(amount.replace(/,/g, ''));\n }\n\n return Number.isNaN(value) ? undefined : value;\n};\n\nconst getString = (value: any): string | undefined => {\n if (value) {\n return String(value).toLowerCase();\n }\n\n return undefined;\n};\n\nconst guess = (value: any): any => {\n if (typeof value === 'boolean') {\n return value;\n }\n\n return isNaN(value) ? getString(value) : Number(value);\n};\n\nconst compareBasic = (a: any, b: any) => {\n // places undefined values first in ascending order instead of descending\n if (a !== undefined && b === undefined) {\n return 1;\n }\n\n return a === b ? 0 : a > b ? 1 : -1;\n};\n\nconst stringsLocaleCompare = (a: string, b: string, locale: string): 0 | 1 | -1 => {\n // In some browsers 'localCompare' may return -2 or 2 instead of -1 or 1\n const compareResult = a.localeCompare(b, locale);\n return compareResult === 0 ? 0 : compareResult > 0 ? 1 : -1;\n};\n\nconst compareBasicStrings = (a: string | undefined, b: string | undefined, locale: string): 0 | 1 | -1 => {\n if (a && b) {\n return stringsLocaleCompare(a, b, locale);\n }\n\n return compareBasic(a, b);\n};\n\ntype SortHandler<T> = (rowA: TableRow<T>, rowB: TableRow<T>, columnId: string) => 0 | 1 | -1;\n\nexport const sortTypes = (locale: string): Record<SortTypes, SortHandler<any>> => {\n return {\n datetime: (rowA, rowB, columnId) => {\n const a = getTime(rowA.values[columnId]);\n const b = getTime(rowB.values[columnId]);\n return compareBasic(a, b);\n },\n string: (rowA, rowB, columnId) => {\n const a = getString(rowA.values[columnId]);\n const b = getString(rowB.values[columnId]);\n return compareBasicStrings(a, b, locale);\n },\n number: (rowA, rowB, columnId) => {\n const a = getNumber(rowA.values[columnId]);\n const b = getNumber(rowB.values[columnId]);\n return compareBasic(a, b);\n },\n boolean: (rowA, rowB, columnId) => {\n const a = !!rowA.values[columnId];\n const b = !!rowB.values[columnId];\n return compareBasic(a, b);\n },\n auto: (rowA, rowB, columnId) => {\n const a = guess(rowA.values[columnId]);\n const b = guess(rowB.values[columnId]);\n if (typeof a === 'string' && typeof b === 'string') {\n return compareBasicStrings(a, b, locale);\n } else {\n return compareBasic(a, b);\n }\n },\n };\n};\n"],"names":["getTime","value","parsedValue","Date","undefined","getNumber","amount","decimalSeparator","length","Number","replace","isNaN","getString","String","toLowerCase","guess","compareBasic","a","b","stringsLocaleCompare","locale","compareResult","localeCompare","compareBasicStrings","sortTypes","datetime","rowA","rowB","columnId","values","string","number","boolean","auto"],"mappings":"AAEA,MAAMA,OAAO,GAAIC,KAAU;EACvB,MAAMC,WAAW,GAAS,OAAOD,KAAK,KAAK,QAAQ,GAAG,IAAIE,IAAI,CAACF,KAAK,CAAC,GAAGA,KAAK;EAC7E,OAAOC,WAA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AEA,CAACL,IAAI,EAAEC,IAAI,EAAEC,QAAQ;MACzB,MAAMX,CAAC,GAAGZ,SAAS,CAACqB,IAAI,CAACG,MAAM,CAACD,QAAQ,CAAC,CAAC;MAC1C,MAAMV,CAAC,GAAGb,SAAS,CAACsB,IAAI,CAACE,MAAM,CAACD,QAAQ,CAAC,CAAC;MAC1C,OAAOZ,YAAY,CAACC,CAAC,EAAEC,CAAC,CAAC;KAC5B;IACDc,OAAO,EAAEA,CAACN,IAAI,EAAEC,IAAI,EAAEC,QAAQ;MAC1B,MAAMX,CAAC,GAAG,CAAC,CAACS,IAAI,CAACG,MAAM,CAACD,QAAQ,CAAC;MACjC,MAAMV,CAAC,GAAG,CAAC,CAACS,IAAI,CAACE,MAAM,CAACD,QAAQ,CAAC;MACjC,OAAOZ,YAAY,CAACC,CAAC,EAAEC,CAAC,CAAC;KAC5B;IACDe,IAAI,EAAEA,CAACP,IAAI,EAAEC,IAAI,EAAEC,QAAQ;MACvB,MAAMX,CAAC,GAAGF,KAAK,CAACW,IAAI,CAACG,MAAM,CAACD,QAAQ,CAAC,CAAC;MACtC,MAAMV,CAAC,GAAGH,KAAK,CAACY,IAAI,CAACE,MAAM,CAACD,QAAQ,CAAC,CAAC;MACtC,IAAI,OAAOX,CAAC,KAAK,QAAQ,IAAI,OAAOC,CAAC,KAAK,QAAQ,EAAE;QAChD,OAAOK,mBAAmB,CAACN,CAAC,EAAEC,CAAC,EAAEE,MAAM,CAAC;OAC3C,MAAM;QACH,OAAOJ,YAAY,CAACC,CAAC,EAAEC,CAAC,CAAC;;;GAGpC;AACL;;;;"}
1
+ {"version":3,"file":"sortTypes.js","sources":["../../../../../../../../src/components/Table/util/sortTypes.ts"],"sourcesContent":["import { SortTypes, LegacyTableRow } from '../types';\n\nconst getTime = (value: any): number | undefined => {\n const parsedValue: Date = typeof value === 'string' ? new Date(value) : value;\n return parsedValue?.getTime ? parsedValue.getTime() : undefined;\n};\n\nconst getNumber = (amount = '', decimalSeparator = ','): number | undefined => {\n if (typeof amount === 'number') {\n return amount;\n }\n\n if (amount === null || !amount.length) {\n return undefined;\n }\n\n let value;\n\n if (decimalSeparator === ',') {\n // replace digit seperator then replace decimal separator\n value = Number(amount.replace(/\\./g, '').replace(',', '.'));\n } else {\n // replace digit seperator\n value = Number(amount.replace(/,/g, ''));\n }\n\n return Number.isNaN(value) ? undefined : value;\n};\n\nconst getString = (value: any): string | undefined => {\n if (value) {\n return String(value).toLowerCase();\n }\n\n return undefined;\n};\n\nconst guess = (value: any): any => {\n if (typeof value === 'boolean') {\n return value;\n }\n\n return isNaN(value) ? getString(value) : Number(value);\n};\n\nconst compareBasic = (a: any, b: any) => {\n // places undefined values first in ascending order instead of descending\n if (a !== undefined && b === undefined) {\n return 1;\n }\n\n return a === b ? 0 : a > b ? 1 : -1;\n};\n\nconst stringsLocaleCompare = (a: string, b: string, locale: string): 0 | 1 | -1 => {\n // In some browsers 'localCompare' may return -2 or 2 instead of -1 or 1\n const compareResult = a.localeCompare(b, locale);\n return compareResult === 0 ? 0 : compareResult > 0 ? 1 : -1;\n};\n\nconst compareBasicStrings = (a: string | undefined, b: string | undefined, locale: string): 0 | 1 | -1 => {\n if (a && b) {\n return stringsLocaleCompare(a, b, locale);\n }\n\n return compareBasic(a, b);\n};\n\ntype SortHandler<T> = (rowA: LegacyTableRow<T>, rowB: LegacyTableRow<T>, columnId: string) => 0 | 1 | -1;\n\nexport const sortTypes = (locale: string): Record<SortTypes, SortHandler<any>> => {\n return {\n datetime: (rowA, rowB, columnId) => {\n const a = getTime(rowA.values[columnId]);\n const b = getTime(rowB.values[columnId]);\n return compareBasic(a, b);\n },\n string: (rowA, rowB, columnId) => {\n const a = getString(rowA.values[columnId]);\n const b = getString(rowB.values[columnId]);\n return compareBasicStrings(a, b, locale);\n },\n number: (rowA, rowB, columnId) => {\n const a = getNumber(rowA.values[columnId]);\n const b = getNumber(rowB.values[columnId]);\n return compareBasic(a, b);\n },\n boolean: (rowA, rowB, columnId) => {\n const a = !!rowA.values[columnId];\n const b = !!rowB.values[columnId];\n return compareBasic(a, b);\n },\n auto: (rowA, rowB, columnId) => {\n const a = guess(rowA.values[columnId]);\n const b = guess(rowB.values[columnId]);\n if (typeof a === 'string' && typeof b === 'string') {\n return compareBasicStrings(a, b, locale);\n } else {\n return compareBasic(a, b);\n }\n },\n };\n};\n"],"names":["getTime","value","parsedValue","Date","undefined","getNumber","amount","decimalSeparator","length","Number","replace","isNaN","getString","String","toLowerCase","guess","compareBasic","a","b","stringsLocaleCompare","locale","compareResult","localeCompare","compareBasicStrings","sortTypes","datetime","rowA","rowB","columnId","values","string","number","boolean","auto"],"mappings":"AAEA,MAAMA,OAAO,GAAIC,KAAU;EACvB,MAAMC,WAAW,GAAS,OAAOD,KAAK,KAAK,QAAQ,GAAG,IAAIE,IAAI,CAACF,KAAK,CAAC,GAAGA,KAAK;EAC7E,OAAOC,WAAW,aAAXA,WAAW,eAAXA,WAAW,CAAEF,OAAO,GAAGE,WAAW,CAACF,OAAO,EAAE,GAAGI,SAAS;AACnE,CAAC;AAED,MAAMC,SAAS,GAAGA,CAACC,MAAM,GAAG,EAAE,EAAEC,gBAAgB,GAAG,GAAG;EAClD,IAAI,OAAOD,MAAM,KAAK,QAAQ,EAAE;IAC5B,OAAOA,MAAM;;EAGjB,IAAIA,MAAM,KAAK,IAAI,IAAI,CAACA,MAAM,CAACE,MAAM,EAAE;IACnC,OAAOJ,SAAS;;EAGpB,IAAIH,KAAK;EAET,IAAIM,gBAAgB,KAAK,GAAG,EAAE;;IAE1BN,KAAK,GAAGQ,MAAM,CAACH,MAAM,CAACI,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;GAC9D,MAAM;;IAEHT,KAAK,GAAGQ,MAAM,CAACH,MAAM,CAACI,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;;EAG5C,OAAOD,MAAM,CAACE,KAAK,CAACV,KAAK,CAAC,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AAC;MACtC,MAAMV,CAAC,GAAGH,KAAK,CAACY,IAAI,CAACE,MAAM,CAACD,QAAQ,CAAC,CAAC;MACtC,IAAI,OAAOX,CAAC,KAAK,QAAQ,IAAI,OAAOC,CAAC,KAAK,QAAQ,EAAE;QAChD,OAAOK,mBAAmB,CAACN,CAAC,EAAEC,CAAC,EAAEE,MAAM,CAAC;OAC3C,MAAM;QACH,OAAOJ,YAAY,CAACC,CAAC,EAAEC,CAAC,CAAC;;;GAGpC;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../../../src/components/Table/util.ts"],"sourcesContent":["import React from 'react';\nimport { TableRow, TableCell, TableChildren, InternalTableRow, InternalTableColumn, SortRule } from './types';\nimport { SortingRule } from 'react-table';\n\nexport const sanitizeRowProps = (row: InternalTableRow, rowExpansionRenderer: any): TableRow<any> => {\n const props: TableRow<any> = {\n index: row.index,\n indexPath: row.id,\n values: row.original,\n };\n\n if (row.subRows?.length > 0) {\n props.isExpanded = !!row.isExpanded;\n props.depth = row.depth;\n props.toggleRowExpanded = () => row.toggleRowExpanded(!props.isExpanded);\n } else if (rowExpansionRenderer) {\n props.isExpanded = !!row.isExpanded;\n props.toggleRowExpanded = () => row.toggleRowExpanded(!props.isExpanded);\n }\n\n if (row.toggleRowEditing) {\n props.isEditing = !!row.isEditing;\n props.toggleRowEditing = row.toggleRowEditing;\n }\n\n return props;\n};\n\nexport const getColumnsFromChildren = (children: TableChildren<any>, rowExpansionRenderer: any) => {\n const sortRules: SortingRule<any>[] = [];\n\n const columns = React.Children.toArray(children)\n .filter((child: any) => !!child && !child.props.hidden) // skip falsey or hidden columns\n .map(({ props: { children: groupChildren, ...props } }: any) => {\n const column: InternalTableColumn & { disableSortBy: boolean | undefined } = { ...props };\n\n column.sortType = column.sortType || 'auto';\n column.disableSortBy = column.disableSorting;\n\n // this is a Table.Group - TODO: Find a better way to determine the child type\n if (props.title && groupChildren) {\n column.Header = props.title;\n\n const { columns: groupColumns, sortRules: groupSortRules } = getColumnsFromChildren(\n groupChildren,\n rowExpansionRenderer\n );\n column.columns = groupColumns;\n groupSortRules.forEach(sort => sortRules.push(sort));\n } else {\n column.accessor = props.accessor;\n column.Header = props.headRenderer || '';\n column.Cell = (columnProps: any) => {\n const cell: TableCell<any> = {\n accessor: columnProps.cell.column.id,\n row: sanitizeRowProps(columnProps.cell.row, rowExpansionRenderer),\n value: columnProps.cell.value,\n };\n\n if (cell.row.isEditing && typeof props.editRenderer === 'function') {\n return props.editRenderer(cell);\n }\n\n return typeof props.cellRenderer === 'function' ? props.cellRenderer(cell) ?? null : cell.value ?? null;\n };\n\n // custom props\n column.align = props.align;\n column.flex = props.flex;\n\n if (props.sort && !props.disableSorting) {\n sortRules.push({\n id: props.accessor,\n desc: props.sort === 'desc',\n });\n }\n }\n\n return column;\n });\n\n return { columns, sortRules };\n};\n\nexport const getInternalSortRules = <T>(sortRules: SortRule<T>[] | undefined): SortingRule<T>[] | undefined => {\n return sortRules?.map<SortingRule<T>>(rule => ({ id: rule.accessor, desc: rule.desc }));\n};\n"],"names":["sanitizeRowProps","row","rowExpansionRenderer","props","index","indexPath","id","values","original","_row$subRows","subRows","length","isExpanded","depth","toggleRowExpanded","toggleRowEditing","isEditing","getColumnsFromChildren","children","sortRules","columns","React","Children","toArray","filter","child","hidden","map","groupChildren","column","sortType","disableSortBy","disableSorting","title","Header","groupColumns","groupSortRules","forEach","sort","push","accessor","headRenderer","Cell","columnProps","cell","value","editRenderer","cellRenderer","_props$cellRenderer","_cell$value","align","flex","desc","getInternalSortRules","rule"],"mappings":";;MAIaA,gBAAgB,GAAGA,CAACC,GAAqB,EAAEC,oBAAyB;;EAC7E,MAAMC,KAAK,GAAkB;IACzBC,KAAK,EAAEH,GAAG,CAACG,KAAK;IAChBC,SAAS,EAAEJ,GAAG,CAACK,EAAE;IACjBC,MAAM,EAAEN,GAAG,CAACO;GACf;EAED,IAAI,EAAAC,YAAA,GAAAR,GAAG,CAACS,OAAO,cAA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hD,KAAK,CAACmC,IAAI,IAAI,CAACnC,KAAK,CAAC6B,cAAc,EAAE;QACrCb,SAAS,CAACoB,IAAI,CAAC;UACXjC,EAAE,EAAEH,KAAK,CAACqC,QAAQ;UAClBY,IAAI,EAAEjD,KAAK,CAACmC,IAAI,KAAK;SACxB,CAAC;;;IAIV,OAAOT,MAAM;GAChB,CAAC;EAEN,OAAO;IAAET,OAAO;IAAED;GAAW;AACjC;MAEakC,oBAAoB,GAAOlC,SAAoC;EACxE,OAAOA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEQ,GAAG,CAAiB2B,IAAI,KAAK;IAAEhD,EAAE,EAAEgD,IAAI,CAACd,QAAQ;IAAEY,IAAI,EAAEE,IAAI,CAACF;GAAM,CAAC,CAAC;AAC3F;;;;"}
1
+ {"version":3,"file":"util.js","sources":["../../../../../../../src/components/Table/util.ts"],"sourcesContent":["import React from 'react';\nimport { LegacyTableRow, LegacyTableCell, LegacyTableChildren, InternalTableRow, InternalTableColumn, SortRule } from './types';\nimport { SortingRule } from 'react-table';\n\nexport const sanitizeRowProps = (row: InternalTableRow, rowExpansionRenderer: any): LegacyTableRow<any> => {\n const props: LegacyTableRow<any> = {\n index: row.index,\n indexPath: row.id,\n values: row.original,\n };\n\n if (row.subRows?.length > 0) {\n props.isExpanded = !!row.isExpanded;\n props.depth = row.depth;\n props.toggleRowExpanded = () => row.toggleRowExpanded(!props.isExpanded);\n } else if (rowExpansionRenderer) {\n props.isExpanded = !!row.isExpanded;\n props.toggleRowExpanded = () => row.toggleRowExpanded(!props.isExpanded);\n }\n\n if (row.toggleRowEditing) {\n props.isEditing = !!row.isEditing;\n props.toggleRowEditing = row.toggleRowEditing;\n }\n\n return props;\n};\n\nexport const getColumnsFromChildren = (children: LegacyTableChildren<any>, rowExpansionRenderer: any) => {\n const sortRules: SortingRule<any>[] = [];\n\n const columns = React.Children.toArray(children)\n .filter((child: any) => !!child && !child.props.hidden) // skip falsey or hidden columns\n .map(({ props: { children: groupChildren, ...props } }: any) => {\n const column: InternalTableColumn & { disableSortBy: boolean | undefined } = { ...props };\n\n column.sortType = column.sortType || 'auto';\n column.disableSortBy = column.disableSorting;\n\n // this is a Table.Group - TODO: Find a better way to determine the child type\n if (props.title && groupChildren) {\n column.Header = props.title;\n\n const { columns: groupColumns, sortRules: groupSortRules } = getColumnsFromChildren(\n groupChildren,\n rowExpansionRenderer\n );\n column.columns = groupColumns;\n groupSortRules.forEach(sort => sortRules.push(sort));\n } else {\n column.accessor = props.accessor;\n column.Header = props.headRenderer || '';\n column.Cell = (columnProps: any) => {\n const cell: LegacyTableCell<any> = {\n accessor: columnProps.cell.column.id,\n row: sanitizeRowProps(columnProps.cell.row, rowExpansionRenderer),\n value: columnProps.cell.value,\n };\n\n if (cell.row.isEditing && typeof props.editRenderer === 'function') {\n return props.editRenderer(cell);\n }\n\n return typeof props.cellRenderer === 'function' ? props.cellRenderer(cell) ?? null : cell.value ?? null;\n };\n\n // custom props\n column.align = props.align;\n column.flex = props.flex;\n\n if (props.sort && !props.disableSorting) {\n sortRules.push({\n id: props.accessor,\n desc: props.sort === 'desc',\n });\n }\n }\n\n return column;\n });\n\n return { columns, sortRules };\n};\n\nexport const getInternalSortRules = <T>(sortRules: SortRule<T>[] | undefined): SortingRule<T>[] | undefined => {\n return sortRules?.map<SortingRule<T>>(rule => ({ id: rule.accessor, desc: rule.desc }));\n};\n"],"names":["sanitizeRowProps","row","rowExpansionRenderer","props","index","indexPath","id","values","original","_row$subRows","subRows","length","isExpanded","depth","toggleRowExpanded","toggleRowEditing","isEditing","getColumnsFromChildren","children","sortRules","columns","React","Children","toArray","filter","child","hidden","map","groupChildren","column","sortType","disableSortBy","disableSorting","title","Header","groupColumns","groupSortRules","forEach","sort","push","accessor","headRenderer","Cell","columnProps","cell","value","editRenderer","cellRenderer","_props$cellRenderer","_cell$value","align","flex","desc","getInternalSortRules","rule"],"mappings":";;MAIaA,gBAAgB,GAAGA,CAACC,GAAqB,EAAEC,oBAAyB;;E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GAAGL,IAAI,CAACC,KAAK,cAAAI,WAAA,cAAAA,WAAA,GAAI,IAAI;OAC1G;;MAGDpB,MAAM,CAACqB,KAAK,GAAG/C,KAAK,CAAC+C,KAAK;MAC1BrB,MAAM,CAACsB,IAAI,GAAGhD,KAAK,CAACgD,IAAI;MAExB,IAAIhD,KAAK,CAACmC,IAAI,IAAI,CAACnC,KAAK,CAAC6B,cAAc,EAAE;QACrCb,SAAS,CAACoB,IAAI,CAAC;UACXjC,EAAE,EAAEH,KAAK,CAACqC,QAAQ;UAClBY,IAAI,EAAEjD,KAAK,CAACmC,IAAI,KAAK;SACxB,CAAC;;;IAIV,OAAOT,MAAM;GAChB,CAAC;EAEN,OAAO;IAAET,OAAO;IAAED;GAAW;AACjC;MAEakC,oBAAoB,GAAOlC,SAAoC;EACxE,OAAOA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEQ,GAAG,CAAiB2B,IAAI,KAAK;IAAEhD,EAAE,EAAEgD,IAAI,CAACd,QAAQ;IAAEY,IAAI,EAAEE,IAAI,CAACF;GAAM,CAAC,CAAC;AAC3F;;;;"}
@@ -1,232 +1,44 @@
1
1
  import React__default from 'react';
2
- import cn from 'clsx';
3
- import { useMergedRef } from '../../hooks/useMergedRef.js';
4
- import { isElementInsideOverlay, isSiblingElementInsideSameParentOverlay, isElementInteractive, isElementInsideOrTriggeredFromContainer } from '../../utils/dom.js';
5
- import { FocusScope } from '@react-aria/focus';
6
- import { fixedForwardRef, FontSizes } from '../../types.js';
7
- import { flexRender } from '@tanstack/react-table';
8
- import { useCssGrid } from './hooks/useCssGrid.js';
9
- import { useColumnFreezingStyle } from './hooks/features/useColumnFreezing.js';
10
- import { useTable } from './hooks/useTable.js';
11
- import { useTableRenderStrategy } from './strategies/index.js';
12
- import { Toolbar } from './components/toolbar/Toolbar.js';
13
- import { useTableRefInstanceSetup } from './hooks/useTableRefInstanceSetup.js';
14
- import { Summary } from './components/columns/footer/Summary.js';
15
- import { useCssVars } from './hooks/useCssVars.js';
16
- import { useHeaderOffsetStyle } from './hooks/features/useHeaderOffsetStyle.js';
17
- import { ErrorAlert } from './components/alert/ErrorAlert.js';
18
- export { useTable3DataLoader } from './hooks/useTableDataLoader.js';
2
+ import { fixedForwardRef } from '../../types.js';
3
+ import { Table } from '../../primitives/Table/Core/Table.js';
4
+ import { useTable3 } from './useTable3.js';
5
+ import { Alert } from './components/Editing/Alert.js';
6
+ import { Editing } from './components/Toolbar/Editing/Editing.js';
19
7
 
20
8
  function Column(_) {
21
9
  return null;
22
10
  }
23
- Column.displayName = 'Table3Column';
24
11
  function Group(_) {
25
12
  return null;
26
13
  }
27
- Group.displayName = 'Table3Group';
28
- const Table = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
29
- const {
30
- emptyState: EmptyState,
31
- customSettings,
32
- toolbarLeft,
33
- toolbarRight,
34
- defaultCurrentRowIndex: defaultRowActiveIndex
35
- } = props;
36
- const internalRef = useMergedRef(ref);
37
- const {
38
- table,
39
- length
40
- } = useTable(props, internalRef);
41
- useTableRefInstanceSetup(table, internalRef);
42
- React__default.useEffect(() => {
43
- if (props.autoFocus) {
44
- var _internalRef$current;
45
- (_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.focus();
46
- }
47
- }, []);
48
- const {
49
- renderBody,
50
- scrollToIndex
51
- } = useTableRenderStrategy(props, table, internalRef);
52
- const tableMeta = table.options.meta;
53
- const state = table.getState();
54
- const bodyRef = React__default.useRef(null);
55
- React__default.useEffect(() => {
56
- // On a very first render, the tanstack table rendered without any rows,
57
- // so we delaying default row scrolling logic with using of requestAnimation frame
58
- const animationFrameId = requestAnimationFrame(() => {
59
- if (defaultRowActiveIndex) {
60
- scrollToIndex(defaultRowActiveIndex, {
61
- align: 'center'
62
- });
63
- }
64
- });
65
- return () => {
66
- cancelAnimationFrame(animationFrameId);
67
- };
68
- }, []);
69
- React__default.useEffect(() => {
70
- const handleKeyDown = event => {
71
- const trigger = event.target;
72
- // Select2 also have combobox role to align with W3C guidelines
73
- const eventOriginatedFromCombobox = !!trigger.closest('[role="combobox"]:not([data-taco="Select2"])');
74
- if (tableMeta.shortcutsState.isPaused || isElementInsideOverlay(trigger) && !isSiblingElementInsideSameParentOverlay(trigger, internalRef.current) || isElementInteractive(trigger) && !isElementInsideOrTriggeredFromContainer(trigger, internalRef.current) || eventOriginatedFromCombobox) {
75
- return;
76
- }
77
- const rows = table.getRowModel().rows;
78
- tableMeta.rowActive.handleKeyDown(event, rows.length, scrollToIndex, tableMeta.editing.isEditing ? undefined : internalRef);
79
- if (tableMeta.rowActive.rowActiveIndex !== undefined) {
80
- var _rows$tableMeta$rowAc;
81
- tableMeta.rowClick.handleKeyDown(event, (_rows$tableMeta$rowAc = rows[tableMeta.rowActive.rowActiveIndex]) === null || _rows$tableMeta$rowAc === void 0 ? void 0 : _rows$tableMeta$rowAc.original);
82
- }
83
- tableMeta.rowSelection.handleKeyDown(event, table);
84
- tableMeta.editing.handleKeyDown(event);
85
- };
86
- document.addEventListener('keydown', handleKeyDown);
87
- return () => {
88
- document.removeEventListener('keydown', handleKeyDown);
89
- };
90
- },
91
- // See https://github.com/e-conomic/taco/blob/dev/packages/taco/src/components/Table3/strategies/virtualised.tsx#L143
92
- // scrollToIndex function changes when row count changes, so it is important to update handlers with new
93
- // scrollToIndex function.
94
- [scrollToIndex, tableMeta.editing.isEditing, internalRef.current, tableMeta.rowActive.rowActiveIndex]);
95
- const handleBlur = tableMeta.editing.isEnabled ? event => {
96
- tableMeta.editing.handleBlur(event);
97
- } : undefined;
98
- const handleFocus = tableMeta.rowActive.rowActiveIndex === undefined ? event => {
99
- tableMeta.rowActive.handleFocus(event, table.getRowModel().rows.length, scrollToIndex);
100
- } : undefined;
101
- const handleScroll = function (event) {
102
- try {
103
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
104
- tableMeta.columnFreezing.handleScroll(event);
105
- return Promise.resolve();
106
- } catch (e) {
107
- return Promise.reject(e);
14
+ const Table3 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
15
+ var _table3$meta$editing, _table3$meta$editing2;
16
+ const table3 = useTable3(props, ref);
17
+ const handleBlur = event => {
18
+ if (table3.meta.editing.isEditing) {
19
+ table3.meta.editing.handleBlur(event);
108
20
  }
109
21
  };
110
- const className = cn('border-grey-300 relative grid h-full w-full flex-grow overflow-auto rounded border bg-white scroll-mt-[41px] focus-visible:outline-none', '[&[data-resizing="true"]]:select-none', {
111
- 'text-xs': tableMeta.fontSize.size === FontSizes.small,
112
- 'text-sm': tableMeta.fontSize.size === FontSizes.medium,
113
- 'text-base': tableMeta.fontSize.size === FontSizes.large
114
- });
115
- // Print tables have "_print" as the postfix for the table id, so we can use the it to determine
116
- // if the table is a print table or not.
117
- const {
118
- style: cssGridStyle
119
- } = useCssGrid(table, tableMeta.printing.isPrinting,
120
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
121
- tableMeta.rowActions.actionsForRowLength, tableMeta.fontSize.size);
122
- const {
123
- style: cssVars
124
- } = useCssVars(tableMeta.rowHeight.height, tableMeta.fontSize.size);
125
- const style = {
126
- ...cssVars,
127
- ...cssGridStyle,
128
- // create a new stacking context so our internal z-indexes don't effect external components
129
- // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
130
- opacity: 0.999
22
+ const gridAttributes = {
23
+ 'data-table-editing-mode': (_table3$meta$editing = table3.meta.editing) !== null && _table3$meta$editing !== void 0 && _table3$meta$editing.isEditing ? (_table3$meta$editing2 = table3.meta.editing) !== null && _table3$meta$editing2 !== void 0 && _table3$meta$editing2.isDetailedMode ? 'detailed' : 'normal' : undefined,
24
+ enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing,
25
+ onBlur: handleBlur
131
26
  };
132
- const columnFreezingStyle = useColumnFreezingStyle(props.id, table);
133
- const headerOffsetStyle = useHeaderOffsetStyle(props.id, table);
134
- const isServerLoadingAndNotReady = tableMeta.isUsingServer && props.length === undefined;
135
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, columnFreezingStyle ? /*#__PURE__*/React__default.createElement("style", {
136
- "data-taco": "table3-column-freezing-styles"
137
- }, columnFreezingStyle) : null, headerOffsetStyle && !tableMeta.printing.isPrinting ? ( /*#__PURE__*/React__default.createElement("style", {
138
- "data-taco": "table3-column-header-offset-styles"
139
- }, headerOffsetStyle)) : null, /*#__PURE__*/React__default.createElement(Toolbar, {
140
- table: table,
141
- tableProps: props,
142
- total: length,
143
- left: toolbarLeft,
144
- right: toolbarRight,
145
- customSettings: customSettings,
146
- scrollToIndex: scrollToIndex
147
- }), /*#__PURE__*/React__default.createElement(ErrorAlert, {
148
- table: table,
149
- tableRef: internalRef,
150
- scrollToIndex: scrollToIndex,
151
- rowIdentifier: props.rowIdentifier
152
- }), /*#__PURE__*/React__default.createElement("div", {
153
- className: className,
154
- id: props.id,
155
- "data-font-size": tableMeta.fontSize.size,
156
- "data-editing": tableMeta.editing.isEditing,
157
- "data-horizontally-scrolled": tableMeta.columnFreezing.horizontallyScrolled,
158
- "data-pause-hover": tableMeta === null || tableMeta === void 0 ? void 0 : tableMeta.rowActive.isHoverStatePaused,
159
- "data-resizing": !!state.columnSizingInfo.isResizingColumn,
160
- "data-taco": "table2",
161
- onBlur: handleBlur,
162
- onFocus: handleFocus,
163
- onScroll: handleScroll,
164
- ref: internalRef,
165
- role: "table",
166
- style: style,
167
- tabIndex: -1
168
- }, isServerLoadingAndNotReady ? null : ( /*#__PURE__*/React__default.createElement("div", {
169
- className: "group/header contents",
170
- "data-taco": "table2-header",
171
- role: "rowgroup"
172
- }, table.getHeaderGroups().map(headerGroup => ( /*#__PURE__*/React__default.createElement("div", {
173
- className: "contents",
174
- key: headerGroup.id,
175
- role: "row"
176
- }, headerGroup.headers.map((header, index) => {
177
- var _headerGroup$headers;
178
- // We need to render separator if column is not the last in array, if index is not equal to freeze column index,
179
- // if next element is not placeholder and if column itself is not placeholder.
180
- const hasSeparator =
181
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
182
- index !== tableMeta.columnFreezing.frozenColumnIndex && index !== headerGroup.headers.length - 1 && (!((_headerGroup$headers = headerGroup.headers[index + 1]) !== null && _headerGroup$headers !== void 0 && _headerGroup$headers.isPlaceholder) || !header.isPlaceholder);
183
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
184
- key: header.id
185
- }, flexRender(header.column.columnDef.header, {
186
- ...header.getContext(),
187
- scrollToIndex,
188
- hasSeparator
189
- }));
190
- })))))), table.getRowModel().rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(FocusScope, {
191
- autoFocus: tableMeta.editing.isEditing
192
- }, /*#__PURE__*/React__default.createElement("div", {
193
- className: "group/body contents",
194
- "data-taco": "table2-body",
195
- role: "rowgroup",
196
- ref: bodyRef
197
- }, renderBody())), /*#__PURE__*/React__default.createElement("div", {
198
- className: cn('border-grey-300 col-span-full border-t', {
199
- 'translate-y-px': tableMeta.enableFooter
200
- })
201
- }), tableMeta.enableFooter ? ( /*#__PURE__*/React__default.createElement("div", {
202
- className: "group/footer contents",
203
- "data-taco": "table2-footer",
204
- role: "rowgroup"
205
- },
206
- // Render the footer cell only for individual columns, excluding column groups.
207
- table.getFooterGroups().slice(0, 1).map(footerGroup => ( /*#__PURE__*/React__default.createElement("div", {
208
- className: "contents",
209
- key: footerGroup.id,
210
- role: "row"
211
- }, footerGroup.headers.map(footer => ( /*#__PURE__*/React__default.createElement(React__default.Fragment, {
212
- key: footer.id
213
- }, flexRender(footer.column.columnDef.footer, footer.getContext()))))))), length ? ( /*#__PURE__*/React__default.createElement(Summary, {
214
- currentLength: table.getRowModel().rows.length,
215
- length: length,
216
- table: table
217
- })) : null)) : null)) : ( /*#__PURE__*/React__default.createElement("div", {
218
- className: "col-span-full box-border min-h-[theme(spacing.8)]"
219
- }, EmptyState ? /*#__PURE__*/React__default.createElement(EmptyState, null) : null))));
220
- });
221
- const Table3 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
222
- const stringifiedChildren = String(props.children);
223
- // we force a remount (using key) when the child columns change because there are too many places to add children as an effect
224
- // this is cheaper from a complexity perspective, and probably performance wise as well
225
- const key = React__default.useMemo(() => String('tableKey_' + stringifiedChildren), [stringifiedChildren]);
226
- return /*#__PURE__*/React__default.createElement(Table, Object.assign({}, props, {
227
- key: key,
228
- ref: ref
229
- }));
27
+ const hasValidationErrors = table3.meta.editing.hasErrors(table3.instance, table3.ref);
28
+ return /*#__PURE__*/React__default.createElement(Table, null, /*#__PURE__*/React__default.createElement(Table.Toolbar, {
29
+ table: table3
30
+ }, table3.meta.editing.isEnabled ? ( /*#__PURE__*/React__default.createElement(Editing, {
31
+ scrollToIndex: table3.renderer.scrollToIndex,
32
+ table: table3.instance
33
+ })) : null), hasValidationErrors ? ( /*#__PURE__*/React__default.createElement(Alert, {
34
+ className: "mb-4",
35
+ scrollToIndex: table3.renderer.scrollToIndex,
36
+ table: table3.instance,
37
+ tableRef: table3.ref
38
+ })) : null, /*#__PURE__*/React__default.createElement(Table.Grid, Object.assign({}, gridAttributes, {
39
+ "data-taco": "table3",
40
+ table: table3
41
+ })));
230
42
  });
231
43
  Table3.Column = Column;
232
44
  Table3.Group = Group;
@@ -1 +1 @@
1
- {"version":3,"file":"Table3.js","sources":["../../../../../../../src/components/Table3/Table3.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { flexRender, TableMeta } from '@tanstack/react-table';\nimport { FocusScope } from '@react-aria/focus';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { useCssGrid } from './hooks/useCssGrid';\nimport { useTable } from './hooks/useTable';\nimport { useTableRenderStrategy } from './strategies';\nimport { Table3ColumnProps, Table3GroupProps, Table3Props, Table3Ref } from './types';\nimport { Toolbar } from './components/toolbar/Toolbar';\nimport { useColumnFreezingStyle } from './hooks/features/useColumnFreezing';\nimport { useTableRefInstanceSetup } from './hooks/useTableRefInstanceSetup';\nimport { Summary } from './components/columns/footer/Summary';\nimport { useCssVars } from './hooks/useCssVars';\nimport './style.css';\nimport { useHeaderOffsetStyle } from './hooks/features/useHeaderOffsetStyle';\nimport { ErrorAlert } from './components/alert/ErrorAlert';\nimport { fixedForwardRef, FontSizes } from '../../types';\nimport {\n isElementInsideOrTriggeredFromContainer,\n isElementInsideOverlay,\n isElementInteractive,\n isSiblingElementInsideSameParentOverlay,\n} from '../../utils/dom';\n\nfunction Column<TType = unknown>(_: Table3ColumnProps<TType>) {\n return null;\n}\nColumn.displayName = 'Table3Column';\n\nfunction Group(_: Table3GroupProps) {\n return null;\n}\nGroup.displayName = 'Table3Group';\n\nconst Table = fixedForwardRef(function Table3<TType = unknown>(props: Table3Props<TType>, ref: React.Ref<Table3Ref>) {\n const {\n emptyState: EmptyState,\n customSettings,\n toolbarLeft,\n toolbarRight,\n defaultCurrentRowIndex: defaultRowActiveIndex,\n } = props;\n const internalRef = useMergedRef<Table3Ref>(ref);\n\n const { table, length } = useTable<TType>(props, internalRef);\n useTableRefInstanceSetup(table, internalRef);\n\n React.useEffect(() => {\n if (props.autoFocus) {\n internalRef.current?.focus();\n }\n }, []);\n\n const { renderBody, scrollToIndex } = useTableRenderStrategy<TType>(props, table, internalRef);\n const tableMeta = table.options.meta as TableMeta<TType>;\n const state = table.getState();\n\n const bodyRef = React.useRef<HTMLDivElement | null>(null);\n\n React.useEffect(() => {\n // On a very first render, the tanstack table rendered without any rows,\n // so we delaying default row scrolling logic with using of requestAnimation frame\n const animationFrameId = requestAnimationFrame(() => {\n if (defaultRowActiveIndex) {\n scrollToIndex(defaultRowActiveIndex, { align: 'center' });\n }\n });\n\n return () => {\n cancelAnimationFrame(animationFrameId);\n };\n }, []);\n\n React.useEffect(\n () => {\n const handleKeyDown = (event: KeyboardEvent) => {\n const trigger = event.target as HTMLElement;\n // Select2 also have combobox role to align with W3C guidelines\n const eventOriginatedFromCombobox = !!trigger.closest('[role=\"combobox\"]:not([data-taco=\"Select2\"])');\n\n if (\n tableMeta.shortcutsState.isPaused ||\n (isElementInsideOverlay(trigger) && !isSiblingElementInsideSameParentOverlay(trigger, internalRef.current)) ||\n (isElementInteractive(trigger) && !isElementInsideOrTriggeredFromContainer(trigger, internalRef.current)) ||\n eventOriginatedFromCombobox\n ) {\n return;\n }\n\n const rows = table.getRowModel().rows;\n\n tableMeta.rowActive.handleKeyDown(\n event,\n rows.length,\n scrollToIndex,\n tableMeta.editing.isEditing ? undefined : internalRef\n );\n if (tableMeta.rowActive.rowActiveIndex !== undefined) {\n tableMeta.rowClick.handleKeyDown(event, rows[tableMeta.rowActive.rowActiveIndex]?.original);\n }\n tableMeta.rowSelection.handleKeyDown(event, table);\n tableMeta.editing.handleKeyDown(event);\n };\n\n document.addEventListener('keydown', handleKeyDown);\n\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n },\n // See https://github.com/e-conomic/taco/blob/dev/packages/taco/src/components/Table3/strategies/virtualised.tsx#L143\n // scrollToIndex function changes when row count changes, so it is important to update handlers with new\n // scrollToIndex function.\n [scrollToIndex, tableMeta.editing.isEditing, internalRef.current, tableMeta.rowActive.rowActiveIndex]\n );\n\n const handleBlur = tableMeta.editing.isEnabled\n ? (event: React.FocusEvent) => {\n tableMeta.editing.handleBlur(event);\n }\n : undefined;\n\n const handleFocus =\n tableMeta.rowActive.rowActiveIndex === undefined\n ? (event: React.FocusEvent) => {\n tableMeta.rowActive.handleFocus(event, table.getRowModel().rows.length, scrollToIndex);\n }\n : undefined;\n\n const handleScroll = async (event: React.MouseEvent<HTMLDivElement>) => {\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n tableMeta.columnFreezing.handleScroll(event);\n };\n\n const className = cn(\n 'border-grey-300 relative grid h-full w-full flex-grow overflow-auto rounded border bg-white scroll-mt-[41px] focus-visible:outline-none',\n '[&[data-resizing=\"true\"]]:select-none',\n {\n 'text-xs': tableMeta.fontSize.size === FontSizes.small,\n 'text-sm': tableMeta.fontSize.size === FontSizes.medium,\n 'text-base': tableMeta.fontSize.size === FontSizes.large,\n }\n );\n\n // Print tables have \"_print\" as the postfix for the table id, so we can use the it to determine\n // if the table is a print table or not.\n const { style: cssGridStyle } = useCssGrid<TType>(\n table,\n tableMeta.printing.isPrinting,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n tableMeta.rowActions.actionsForRowLength,\n tableMeta.fontSize.size\n );\n const { style: cssVars } = useCssVars(tableMeta.rowHeight.height, tableMeta.fontSize.size);\n\n const style = {\n ...cssVars,\n ...cssGridStyle,\n // create a new stacking context so our internal z-indexes don't effect external components\n // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context\n opacity: 0.999,\n };\n\n const columnFreezingStyle = useColumnFreezingStyle(props.id, table);\n const headerOffsetStyle = useHeaderOffsetStyle(props.id, table);\n const isServerLoadingAndNotReady = tableMeta.isUsingServer && props.length === undefined;\n\n return (\n <>\n {columnFreezingStyle ? <style data-taco=\"table3-column-freezing-styles\">{columnFreezingStyle}</style> : null}\n {headerOffsetStyle && !tableMeta.printing.isPrinting ? (\n <style data-taco=\"table3-column-header-offset-styles\">{headerOffsetStyle}</style>\n ) : null}\n <Toolbar\n table={table}\n tableProps={props}\n total={length}\n left={toolbarLeft}\n right={toolbarRight}\n customSettings={customSettings}\n scrollToIndex={scrollToIndex}\n />\n <ErrorAlert table={table} tableRef={internalRef} scrollToIndex={scrollToIndex} rowIdentifier={props.rowIdentifier} />\n <div\n className={className}\n id={props.id}\n data-font-size={tableMeta.fontSize.size}\n data-editing={tableMeta.editing.isEditing}\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n data-horizontally-scrolled={tableMeta.columnFreezing.horizontallyScrolled}\n data-pause-hover={tableMeta?.rowActive.isHoverStatePaused}\n data-resizing={!!state.columnSizingInfo.isResizingColumn}\n data-taco=\"table2\"\n onBlur={handleBlur}\n onFocus={handleFocus}\n onScroll={handleScroll}\n ref={internalRef}\n role=\"table\"\n style={style}\n tabIndex={-1}>\n {isServerLoadingAndNotReady ? null : (\n <div className=\"group/header contents\" data-taco=\"table2-header\" role=\"rowgroup\">\n {table.getHeaderGroups().map(headerGroup => (\n <div className=\"contents\" key={headerGroup.id} role=\"row\">\n {headerGroup.headers.map((header, index) => {\n // We need to render separator if column is not the last in array, if index is not equal to freeze column index,\n // if next element is not placeholder and if column itself is not placeholder.\n const hasSeparator =\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n index !== tableMeta.columnFreezing.frozenColumnIndex &&\n index !== headerGroup.headers.length - 1 &&\n (!headerGroup.headers[index + 1]?.isPlaceholder || !header.isPlaceholder);\n return (\n <React.Fragment key={header.id}>\n {flexRender(header.column.columnDef.header, {\n ...header.getContext(),\n scrollToIndex,\n hasSeparator,\n })}\n </React.Fragment>\n );\n })}\n </div>\n ))}\n </div>\n )}\n {table.getRowModel().rows.length ? (\n <>\n <FocusScope autoFocus={tableMeta.editing.isEditing}>\n <div className=\"group/body contents\" data-taco=\"table2-body\" role=\"rowgroup\" ref={bodyRef}>\n {renderBody()}\n </div>\n </FocusScope>\n {/* This div makes sure that there is always a free space between the rows and footer when\n table height exceeds the cumulative height of all rows. See useCSSGrid.ts */}\n {/* By vertically translating the div a pixel down, we hide the div border below footer so that\n the footer border doesn't appear an extra pixel thick */}\n <div\n className={cn('border-grey-300 col-span-full border-t', { 'translate-y-px': tableMeta.enableFooter })}\n />\n {tableMeta.enableFooter ? (\n <div className=\"group/footer contents\" data-taco=\"table2-footer\" role=\"rowgroup\">\n {\n // Render the footer cell only for individual columns, excluding column groups.\n table\n .getFooterGroups()\n .slice(0, 1)\n .map(footerGroup => (\n <div className=\"contents\" key={footerGroup.id} role=\"row\">\n {footerGroup.headers.map(footer => (\n <React.Fragment key={footer.id}>\n {flexRender(footer.column.columnDef.footer, footer.getContext())}\n </React.Fragment>\n ))}\n </div>\n ))\n }\n {length ? (\n <Summary currentLength={table.getRowModel().rows.length} length={length} table={table} />\n ) : null}\n </div>\n ) : null}\n </>\n ) : (\n <div className=\"col-span-full box-border min-h-[theme(spacing.8)]\">{EmptyState ? <EmptyState /> : null}</div>\n )}\n </div>\n </>\n );\n});\n\ntype Table3WithStatics = (<TType = unknown>(props: Table3Props<TType> & React.RefAttributes<Table3Ref>) => JSX.Element) & {\n Column: typeof Column;\n Group: typeof Group;\n};\n\nexport const Table3 = fixedForwardRef(function Table3<TType = unknown>(props: Table3Props<TType>, ref: React.Ref<Table3Ref>) {\n const stringifiedChildren = String(props.children);\n // we force a remount (using key) when the child columns change because there are too many places to add children as an effect\n // this is cheaper from a complexity perspective, and probably performance wise as well\n const key = React.useMemo(() => String('tableKey_' + stringifiedChildren), [stringifiedChildren]);\n return <Table<TType> {...props} key={key} ref={ref} />;\n}) as Table3WithStatics;\nTable3.Column = Column;\nTable3.Group = Group;\n\n// hooks\nexport { useTable3DataLoader } from './hooks/useTableDataLoader';\n\n// types\nexport type {\n useTable3DataFetcher,\n useTable3DataOptions,\n useTable3DataFetcherValues as useTableDataValues,\n} from './hooks/useTableDataLoader';\n\nexport type {\n Table3Ref,\n Table3Props,\n Table3Preset,\n Table3Settings,\n Table3SettingsHandler,\n Table3RowHeight,\n Table3FilterComparator,\n Table3FilterHandler,\n Table3LoadPageHandler,\n Table3LoadAllHandler,\n Table3RowGotoHandler,\n Table3SortHandler,\n Table3Shortcuts,\n Table3ShortcutHandlerFn,\n Table3ShortcutHandlerObject,\n Table3SortDirection,\n Table3SortFn,\n Table3RowActionRenderer,\n Table3RowSelectionHandler,\n Table3RowExpansionRenderer,\n Table3RowDropHandler,\n Table3RowDragHandler,\n Table3RowClickHandler,\n Table3ColumnProps,\n Table3ColumnAlignment,\n Table3ColumnDataType,\n Table3ColumnHeaderMenu,\n Table3ColumnClassNameHandler,\n Table3ColumnFooterRenderer,\n Table3ColumnRenderer,\n Table3ColumnControlRenderer,\n Table3ColumnControlProps,\n} from './types';\n"],"names":["Column","_","displayName","Group","Table","fixedForwardRef","Table3","props","ref","emptyState","EmptyState","customSettings","toolbarLeft","toolbarRight","defaultCurrentRowIndex","defaultRowActiveIndex","internalRef","useMergedRef","table","length","useTable","useTableRefInstanceSetup","React","useEffect","autoFocus","_internalRef$current","current","focus","renderBody","scrollToIndex","useTableRenderStrategy","tableMeta","options","meta","state","getState","bodyRef","useRef","animationFrameId","requestAnimationFrame","align","cancelAnimationFrame","handleKeyDown","event","trigger","target","eventOriginatedFromCombobox","closest","shortcutsState","isPaused","isElementInsideOverlay","isSiblingElementInsideSameParentOverlay","isElementInteractive","isElementInsideOrTriggeredFromContainer","rows","getRowModel","rowActive","editing","isEditing","undefined","rowActiveIndex","_rows$tableMeta$rowAc","rowClick","original","rowSelection","document","addEventListener","removeEventListener","handleBlur","isEnabled","handleFocus","handleScroll","columnFreezing","Promise","resolve","e","reject","className","cn","fontSize","size","FontSizes","small","medium","large","style","cssGridStyle","useCssGrid","printing","isPrinting","rowActions","actionsForRowLength","cssVars","useCssVars","rowHeight","height","opacity","columnFreezingStyle","useColumnFreezingStyle","id","headerOffsetStyle","useHeaderOffsetStyle","isServerLoadingAndNotReady","isUsingServer","Toolbar","tableProps","total","left","right","ErrorAlert","tableRef","rowIdentifier","horizontallyScrolled","isHoverStatePaused","columnSizingInfo","isResizingColumn","onBlur","onFocus","onScroll","role","tabIndex","getHeaderGroups","map","headerGroup","key","headers","header","index","hasSeparator","frozenColumnIndex","_headerGroup$headers","isPlaceholder","Fragment","flexRender","column","columnDef","getContext","FocusScope","enableFooter","getFooterGroups","slice","footerGroup","footer","Summary","currentLength","stringifiedChildren","String","children","useMemo"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,SAASA,MAAMA,CAAkBC,CAA2B;EACxD,OAAO,IAAI;AACf;AACAD,MAAM,CAACE,WAAW,GAAG,cAAc;AAEnC,SAASC,KAAKA,CAACF,CAAmB;EAC9B,OAAO,IAAI;AACf;AACAE,KAAK,CAACD,WAAW,GAAG,aAAa;AAEjC,MAAME,KAAK,gBAA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C,SAASC,MAAMA,CAAkBC,KAAyB,EAAEC,GAAyB;EACvH,MAAMyI,mBAAmB,GAAGC,MAAM,CAAC3I,KAAK,CAAC4I,QAAQ,CAAC;;;EAGlD,MAAMvB,GAAG,GAAGtG,cAAK,CAAC8H,OAAO,CAAC,MAAMF,MAAM,CAAC,WAAW,GAAGD,mBAAmB,CAAC,EAAE,CAACA,mBAAmB,CAAC,CAAC;EACjG,oBAAO3H,6BAAClB,KAAK,oBAAYG,KAAK;IAAEqH,GAAG,EAAEA,GAAG;IAAEpH,GAAG,EAAEA;KAAO;AAC1D,CAAC;AACDF,MAAM,CAACN,MAAM,GAAGA,MAAM;AACtBM,MAAM,CAACH,KAAK,GAAGA,KAAK;;;;"}
1
+ {"version":3,"file":"Table3.js","sources":["../../../../../../../src/components/Table3/Table3.tsx"],"sourcesContent":["import React from 'react';\nimport { fixedForwardRef } from '../../types';\nimport { useTable3 } from './useTable3';\nimport { TableRef } from '../../primitives/Table/types';\nimport { Table } from '../../primitives/Table/Core/Table';\nimport { TableColumnProps, TableGroupProps } from '../../primitives/Table/types';\nimport { Alert } from './components/Editing/Alert';\nimport { Table3Props } from './types';\nimport { Editing } from './components/Toolbar/Editing/Editing';\nimport './style.css';\n\nfunction Column<TType = unknown>(_: TableColumnProps<TType>) {\n return null;\n}\n\nfunction Group(_: TableGroupProps) {\n return null;\n}\n\nexport const Table3 = fixedForwardRef<TableRef, Table3Props>(function Table3<TType = unknown>(\n props: Table3Props<TType>,\n ref: React.Ref<TableRef>\n) {\n const table3 = useTable3<TType>(props, ref);\n\n const handleBlur = (event: React.FocusEvent<HTMLTableElement>) => {\n if (table3.meta.editing.isEditing) {\n table3.meta.editing.handleBlur(event);\n }\n };\n\n const gridAttributes = {\n 'data-table-editing-mode': table3.meta.editing?.isEditing\n ? table3.meta.editing?.isDetailedMode\n ? 'detailed'\n : 'normal'\n : undefined,\n enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing,\n onBlur: handleBlur,\n };\n\n const hasValidationErrors = table3.meta.editing.hasErrors(table3.instance, table3.ref);\n\n return (\n <Table>\n <Table.Toolbar table={table3 as any}>\n {table3.meta.editing.isEnabled ? (\n <Editing scrollToIndex={table3.renderer.scrollToIndex} table={table3.instance} />\n ) : null}\n </Table.Toolbar>\n {hasValidationErrors ? (\n <Alert\n className=\"mb-4\"\n scrollToIndex={table3.renderer.scrollToIndex}\n table={table3.instance}\n tableRef={table3.ref}\n />\n ) : null}\n <Table.Grid {...gridAttributes} data-taco=\"table3\" table={table3 as any} />\n </Table>\n );\n}) as (<TType = unknown>(props: Table3Props<TType> & React.RefAttributes<TableRef>) => JSX.Element) & {\n Column: typeof Column;\n Group: typeof Group;\n};\nTable3.Column = Column;\nTable3.Group = Group;\n"],"names":["Column","_","Group","Table3","fixedForwardRef","props","ref","table3","useTable3","handleBlur","event","meta","editing","isEditing","gridAttributes","_table3$meta$editing","_table3$meta$editing2","isDetailedMode","undefined","enableHorizontalArrowKeyNavigation","onBlur","hasValidationErrors","hasErrors","instance","React","Table","Toolbar","table","isEnabled","Editing","scrollToIndex","renderer","Alert","className","tableRef","Grid"],"mappings":";;;;;;;AAWA,SAASA,MAAMA,CAAkBC,CAA0B;EACvD,OAAO,IAAI;AACf;AAEA,SAASC,KAAKA,CAACD,CAAkB;EAC7B,OAAO,IAAI;AACf;MAEaE,MAAM,gBAAGC,eAAe,CAAwB,SAASD,MAAMA,CACxEE,KAAyB,EACzBC,GAAwB;;EAExB,MAAMC,MAAM,GAAGC,SAAS,CAAQH,KAAK,EAAEC,GAAG,CAAC;EAE3C,MAAMG,UAAU,GAAIC,KAAyC;IACzD,IAAIH,MAAM,CAACI,IAAI,CAACC,OAAO,CAACC,SAAS,EAAE;MAC/BN,MAAM,CAACI,IAAI,CAACC,OAAO,CAACH,UAAU,CAACC,KAAK,CAAC;;GAE5C;EAED,MAAMI,cAAc,GAAG;IACnB,yBAAyB,EAAE,CAAAC,oBAAA,GAAAR,MAAM,CAACI,IAAI,CAACC,OAAO,cAAAG,oBAAA,eAAnBA,oBAAA,CAAqBF,SAAS,GACnD,CAAAG,qBAAA,GAAAT,MAAM,CAACI,IAAI,CAACC,OAAO,cAAAI,qBAAA,eAAnBA,qBAAA,CAAqBC,cAAc,GAC/B,UAAU,GACV,QAAQ,GACZC,SAAS;IACfC,kCAAkC,EAAEZ,MAAM,CAACI,IAAI,CAACC,OAAO,CAACC,SAAS;IACjEO,MAAM,EAAEX;GACX;EAED,MAAMY,mBAAmB,GAAGd,MAAM,CAACI,IAAI,CAACC,OAAO,CAACU,SAAS,CAACf,MAAM,CAACgB,QAAQ,EAAEhB,MAAM,CAACD,GAAG,CAAC;EAEtF,oBACIkB,6BAACC,KAAK,qBACFD,6BAACC,KAAK,CAACC,OAAO;IAACC,KAAK,EAAEpB;KACjBA,MAAM,CAACI,IAAI,CAACC,OAAO,CAACgB,SAAS,kBAC1BJ,6BAACK,OAAO;IAACC,aAAa,EAAEvB,MAAM,CAACwB,QAAQ,CAACD,aAAa;IAAEH,KAAK,EAAEpB,MAAM,CAACgB;IAAY,IACjF,IAAI,CACI,EACfF,mBAAmB,kBAChBG,6BAACQ,KAAK;IACFC,SAAS,EAAC,MAAM;IAChBH,aAAa,EAAEvB,MAAM,CAACwB,QAAQ,CAACD,aAAa;IAC5CH,KAAK,EAAEpB,MAAM,CAACgB,QAAQ;IACtBW,QAAQ,EAAE3B,MAAM,CAACD;IACnB,IACF,IAAI,eACRkB,6BAACC,KAAK,CAACU,IAAI,oBAAKrB,cAAc;iBAAY,QAAQ;IAACa,KAAK,EAAEpB;KAAiB,CACvE;AAEhB,CAAC;AAIDJ,MAAM,CAACH,MAAM,GAAGA,MAAM;AACtBG,MAAM,CAACD,KAAK,GAAGA,KAAK;;;;"}
@@ -0,0 +1,39 @@
1
+ import React__default from 'react';
2
+ import { RowContext } from '../../../../../primitives/Table/Core/components/Row/RowContext.js';
3
+ import { DisplayCell } from '../../../../../primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js';
4
+ import { EditingControlCell } from './EditingControlCell.js';
5
+ import { EditingDisplayCell } from './EditingDisplayCell.js';
6
+
7
+ function Cell(props) {
8
+ const {
9
+ cell
10
+ } = props;
11
+ const {
12
+ isHovered,
13
+ rowIndex
14
+ } = React__default.useContext(RowContext);
15
+ const tableMeta = cell.getContext().table.options.meta;
16
+ const columnMeta = cell.column.columnDef.meta;
17
+ if (tableMeta.editing.isEditing) {
18
+ if (columnMeta.control) {
19
+ const isActiveRow = tableMeta.rowActive.rowActiveIndex === rowIndex;
20
+ const cellError = tableMeta.editing.getCellError(cell);
21
+ const hasErrorAndIsEditing = cellError ? tableMeta.editing.isEditing : true;
22
+ // saves may be pending when not currently editing, but we want to show the "changed" data
23
+ // otherwise the unsaved value flashes in while the request completes, which looks a bit shit
24
+ const changedValue = tableMeta.editing.getCellValue(cell);
25
+ if (changedValue !== undefined && changedValue !== cell.getValue() && hasErrorAndIsEditing) {
26
+ // a little hacky, but it seems to work without side effects
27
+ cell.getValue = () => changedValue;
28
+ }
29
+ if (isActiveRow || !!cellError || isHovered && !isActiveRow && !tableMeta.rowActive.isHoverStatePaused) {
30
+ return /*#__PURE__*/React__default.createElement(EditingControlCell, Object.assign({}, props));
31
+ }
32
+ }
33
+ return /*#__PURE__*/React__default.createElement(EditingDisplayCell, Object.assign({}, props));
34
+ }
35
+ return /*#__PURE__*/React__default.createElement(DisplayCell, Object.assign({}, props));
36
+ }
37
+
38
+ export { Cell };
39
+ //# sourceMappingURL=Cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.js","sources":["../../../../../../../../../../src/components/Table3/components/Columns/Cell/Cell.tsx"],"sourcesContent":["import React from 'react';\nimport { TableMeta as ReactTableMeta, ColumnMeta as ReactTableColumnMeta } from '@tanstack/react-table';\nimport { DisplayCell } from '../../../../../primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell';\nimport { RowContext } from '../../../../../primitives/Table/Core/components/Row/RowContext';\nimport { TableCellRendererProps } from '../../../../../primitives/Table/Core/types';\nimport { EditingControlCell } from './EditingControlCell';\nimport { EditingDisplayCell } from './EditingDisplayCell';\n\nexport function Cell<TType = unknown>(props: TableCellRendererProps<TType>) {\n const { cell } = props;\n const { isHovered, rowIndex } = React.useContext(RowContext);\n const tableMeta = cell.getContext().table.options.meta as ReactTableMeta<TType>;\n const columnMeta = cell.column.columnDef.meta as ReactTableColumnMeta<TType, unknown>;\n\n if (tableMeta.editing.isEditing) {\n if (columnMeta.control) {\n const isActiveRow = tableMeta.rowActive.rowActiveIndex === rowIndex;\n const cellError = tableMeta.editing.getCellError(cell);\n const hasErrorAndIsEditing = cellError ? tableMeta.editing.isEditing : true;\n\n // saves may be pending when not currently editing, but we want to show the \"changed\" data\n // otherwise the unsaved value flashes in while the request completes, which looks a bit shit\n const changedValue = tableMeta.editing.getCellValue(cell);\n\n if (changedValue !== undefined && changedValue !== cell.getValue() && hasErrorAndIsEditing) {\n // a little hacky, but it seems to work without side effects\n cell.getValue = () => changedValue as any;\n }\n\n if (isActiveRow || !!cellError || (isHovered && !isActiveRow && !tableMeta.rowActive.isHoverStatePaused)) {\n return <EditingControlCell<TType> {...props} />;\n }\n }\n\n return <EditingDisplayCell<TType> {...props} />;\n }\n\n return <DisplayCell<TType> {...props} />;\n}\n"],"names":["Cell","props","cell","isHovered","rowIndex","React","useContext","RowContext","tableMeta","getContext","table","options","meta","columnMeta","column","columnDef","editing","isEditing","control","isActiveRow","rowActive","rowActiveIndex","cellError","getCellError","hasErrorAndIsEditing","changedValue","getCellValue","undefined","getValue","isHoverStatePaused","EditingControlCell","EditingDisplayCell","DisplayCell"],"mappings":";;;;;;SAQgBA,IAAIA,CAAkBC,KAAoC;EACtE,MAAM;IAAEC;GAAM,GAAGD,KAAK;EACtB,MAAM;IAAEE,SAAS;IAAEC;GAAU,GAAGC,cAAK,CAACC,UAAU,CAACC,UAAU,CAAC;EAC5D,MAAMC,SAAS,GAAGN,IAAI,CAACO,UAAU,EAAE,CAACC,KAAK,CAAC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