@economic/taco 2.25.1 → 2.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1000) hide show
  1. package/dist/esm/index.css +216 -515
  2. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
  3. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  4. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -6
  5. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  6. package/dist/esm/packages/taco/src/components/Provider/Localization.js +48 -59
  7. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  8. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
  9. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  10. package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
  11. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  12. package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
  13. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  14. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  15. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  16. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  17. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  18. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  19. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  20. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  21. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  22. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  23. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  24. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  25. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  26. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  27. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  28. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  29. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  30. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  31. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  32. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  33. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  34. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  35. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  36. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  37. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  38. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  39. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  40. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  41. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  42. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  43. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  44. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  46. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  47. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  48. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  49. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  50. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  51. package/dist/esm/packages/taco/src/index.js +1 -1
  52. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  53. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  56. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/Body.js +21 -12
  57. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  58. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  59. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  60. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  62. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
  63. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  64. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
  65. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  66. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  68. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
  69. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  71. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  72. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
  73. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  74. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
  75. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  77. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +7 -7
  78. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  79. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  81. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Goto.js +5 -5
  82. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  83. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
  84. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  85. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
  86. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  87. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
  88. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  89. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
  90. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  91. package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  94. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  96. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
  97. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +54 -0
  99. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  100. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
  101. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  102. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
  103. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  104. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
  105. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  106. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
  107. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  108. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
  109. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  110. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
  111. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  113. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
  114. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  116. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  117. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +26 -7
  118. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  119. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
  120. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  121. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
  122. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  123. package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
  124. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  125. package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
  126. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  127. package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
  128. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  129. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
  130. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  131. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  132. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  134. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
  135. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  136. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  137. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  138. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  139. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  140. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +5 -15
  141. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  142. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  143. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  144. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  145. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  146. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +1 -3
  147. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  148. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
  149. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  150. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +58 -24
  151. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  152. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
  153. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  154. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  155. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  156. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  157. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  158. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  159. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  160. package/dist/index.css +216 -515
  161. package/dist/{components → packages/taco/src/components}/Provider/Localization.d.ts +47 -55
  162. package/dist/packages/taco/src/components/Report/Report.d.ts +10 -0
  163. package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +19 -0
  164. package/dist/packages/taco/src/components/Report/useReport.d.ts +23 -0
  165. package/dist/{components → packages/taco/src/components}/Select2/hooks/useChildren.d.ts +2 -1
  166. package/dist/{components → packages/taco/src/components}/Table/Table.d.ts +2 -2
  167. package/dist/packages/taco/src/components/Table3/Table3.d.ts +20 -0
  168. package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +35 -0
  169. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  170. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  171. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  172. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  173. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  174. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  175. package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  176. package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +12 -0
  177. package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  178. package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +3 -0
  179. package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  180. package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +46 -0
  181. package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  182. package/dist/packages/taco/src/components/Table3/types.d.ts +56 -0
  183. package/dist/packages/taco/src/components/Table3/useTable3.d.ts +30 -0
  184. package/dist/packages/taco/src/components/Table3/util/editing.d.ts +2 -0
  185. package/dist/{index.d.ts → packages/taco/src/index.d.ts} +1 -0
  186. package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
  187. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/Body.d.ts +1 -1
  188. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
  189. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  190. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  191. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
  192. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
  193. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
  194. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  195. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  196. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  197. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/Header.d.ts +7 -2
  198. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Goto.d.ts +1 -1
  199. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
  200. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
  201. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
  202. package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +4 -0
  203. package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  204. package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  205. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
  206. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  207. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
  208. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
  209. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  210. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
  211. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
  212. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
  213. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
  214. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +3 -1
  215. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  216. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
  217. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  218. package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
  219. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
  220. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
  221. package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +24 -0
  222. package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +25 -0
  223. package/dist/{primitives → packages/taco/src/primitives}/Table/types.d.ts +168 -3
  224. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
  225. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  226. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  227. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/types.d.ts +1 -0
  228. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/useTableManager.d.ts +9 -3
  229. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/settings.d.ts +1 -1
  230. package/dist/{utils → packages/taco/src/utils}/dom.d.ts +2 -1
  231. package/dist/taco.cjs.development.js +7134 -11743
  232. package/dist/taco.cjs.development.js.map +1 -1
  233. package/dist/taco.cjs.production.min.js +1 -1
  234. package/dist/taco.cjs.production.min.js.map +1 -1
  235. package/package.json +3 -2
  236. package/types.json +21186 -51499
  237. package/dist/components/Report/Report.d.ts +0 -23
  238. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  239. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  240. package/dist/components/Report/components/Header/util.d.ts +0 -4
  241. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  242. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  243. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  244. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  245. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  246. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  247. package/dist/components/Report/styles/util.d.ts +0 -3
  248. package/dist/components/Report/types.d.ts +0 -20
  249. package/dist/components/Report/useReport.d.ts +0 -9
  250. package/dist/components/Table3/Table3.d.ts +0 -19
  251. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
  252. package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
  253. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
  254. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
  255. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
  256. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
  257. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
  258. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
  259. package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
  260. package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
  261. package/dist/components/Table3/components/columns/header/Goto.d.ts +0 -6
  262. package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
  263. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  264. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  265. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  266. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  267. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  268. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  269. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  270. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  271. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  272. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  273. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  274. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  275. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  276. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  277. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  278. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  279. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  280. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  281. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  282. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  283. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  284. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  285. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  286. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  287. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  288. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  289. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  290. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  291. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  292. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  293. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  294. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  295. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  296. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  297. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  298. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  299. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  300. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  301. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  302. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  303. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  304. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  305. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  306. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  307. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  308. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  309. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  310. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  311. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  312. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  313. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  314. package/dist/components/Table3/strategies/index.d.ts +0 -4
  315. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  316. package/dist/components/Table3/types.d.ts +0 -379
  317. package/dist/components/Table3/util/columns.d.ts +0 -8
  318. package/dist/components/Table3/util/editing.d.ts +0 -10
  319. package/dist/components/Table3/util/filtering.d.ts +0 -3
  320. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  321. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  322. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  323. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  324. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  325. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  326. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  327. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  328. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  329. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  330. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  331. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  332. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  333. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  334. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  335. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  336. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  337. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  338. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  339. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  340. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  341. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  342. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  343. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  344. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  345. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  346. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  347. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  348. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  349. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  350. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  351. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  352. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  353. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  354. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  355. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  356. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  357. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  358. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  359. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  360. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  361. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  362. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  363. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  364. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  365. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  366. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  367. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  368. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  369. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  370. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  371. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  372. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  373. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  374. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  375. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  376. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  377. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  378. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  379. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  380. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  381. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  382. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  383. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  384. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  385. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  386. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  387. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +0 -28
  388. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  389. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  390. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  391. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  392. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  393. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  394. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  395. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  396. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  397. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  398. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  399. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  400. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  401. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  402. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  403. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  404. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  405. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  406. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  407. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  408. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  409. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  410. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  411. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  412. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  413. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  414. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  415. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  416. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  417. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  418. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  419. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  420. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  421. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  422. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  423. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  424. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  425. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  426. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  427. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  428. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  429. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  430. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  431. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  432. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  433. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  434. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  435. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  436. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  437. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  438. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  439. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  440. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  441. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  442. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  443. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  444. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  445. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  446. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  447. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  448. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  449. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  450. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  451. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  452. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  453. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  454. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  455. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  456. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  457. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  458. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  459. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  460. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  461. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  462. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  463. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  464. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  465. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  466. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  467. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  468. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  469. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  470. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  471. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  472. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  473. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  474. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  475. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  476. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  477. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  478. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  479. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  480. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  481. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  482. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  483. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  484. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  485. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  486. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  487. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  488. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  489. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  490. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  491. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  492. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  493. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  494. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  495. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  496. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  497. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  498. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  499. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  500. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  501. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  502. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  503. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  504. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  505. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  506. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  507. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +0 -1
  508. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  509. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  510. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  511. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  512. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
  513. /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
  514. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  515. /package/dist/{components → packages/taco/src/components}/Accordion/Accordion.d.ts +0 -0
  516. /package/dist/{components → packages/taco/src/components}/Alert/Alert.d.ts +0 -0
  517. /package/dist/{components → packages/taco/src/components}/AlertDialog/AlertDialog.d.ts +0 -0
  518. /package/dist/{components → packages/taco/src/components}/AlertDialog/Context.d.ts +0 -0
  519. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Content.d.ts +0 -0
  520. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Footer.d.ts +0 -0
  521. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Trigger.d.ts +0 -0
  522. /package/dist/{components → packages/taco/src/components}/Backdrop/Backdrop.d.ts +0 -0
  523. /package/dist/{components → packages/taco/src/components}/Badge/Badge.d.ts +0 -0
  524. /package/dist/{components → packages/taco/src/components}/BadgeIcon/BadgeIcon.d.ts +0 -0
  525. /package/dist/{components → packages/taco/src/components}/Banner/Banner.d.ts +0 -0
  526. /package/dist/{components → packages/taco/src/components}/Banner/util.d.ts +0 -0
  527. /package/dist/{components → packages/taco/src/components}/Button/Button.d.ts +0 -0
  528. /package/dist/{components → packages/taco/src/components}/Button/util.d.ts +0 -0
  529. /package/dist/{components → packages/taco/src/components}/Calendar/Calendar.d.ts +0 -0
  530. /package/dist/{components → packages/taco/src/components}/Card/Card.d.ts +0 -0
  531. /package/dist/{components → packages/taco/src/components}/Checkbox/Checkbox.d.ts +0 -0
  532. /package/dist/{components → packages/taco/src/components}/Combobox/Combobox.d.ts +0 -0
  533. /package/dist/{components → packages/taco/src/components}/Combobox/useCombobox.d.ts +0 -0
  534. /package/dist/{components → packages/taco/src/components}/Datepicker/Datepicker.d.ts +0 -0
  535. /package/dist/{components → packages/taco/src/components}/Datepicker/useDatepicker.d.ts +0 -0
  536. /package/dist/{components → packages/taco/src/components}/Dialog/Context.d.ts +0 -0
  537. /package/dist/{components → packages/taco/src/components}/Dialog/Dialog.d.ts +0 -0
  538. /package/dist/{components → packages/taco/src/components}/Dialog/components/Content.d.ts +0 -0
  539. /package/dist/{components → packages/taco/src/components}/Dialog/components/DialogDrawer.d.ts +0 -0
  540. /package/dist/{components → packages/taco/src/components}/Dialog/components/Extra.d.ts +0 -0
  541. /package/dist/{components → packages/taco/src/components}/Dialog/components/Trigger.d.ts +0 -0
  542. /package/dist/{components → packages/taco/src/components}/Dialog/types.d.ts +0 -0
  543. /package/dist/{components → packages/taco/src/components}/Dialog/util.d.ts +0 -0
  544. /package/dist/{components → packages/taco/src/components}/Drawer/Context.d.ts +0 -0
  545. /package/dist/{components → packages/taco/src/components}/Drawer/Drawer.d.ts +0 -0
  546. /package/dist/{components → packages/taco/src/components}/Drawer/components/Content.d.ts +0 -0
  547. /package/dist/{components → packages/taco/src/components}/Drawer/components/Trigger.d.ts +0 -0
  548. /package/dist/{components → packages/taco/src/components}/Drawer/images.d.ts +0 -0
  549. /package/dist/{components → packages/taco/src/components}/Drawer/types.d.ts +0 -0
  550. /package/dist/{components → packages/taco/src/components}/Drawer/util.d.ts +0 -0
  551. /package/dist/{components → packages/taco/src/components}/Field/Field.d.ts +0 -0
  552. /package/dist/{components → packages/taco/src/components}/Form/Form.d.ts +0 -0
  553. /package/dist/{components → packages/taco/src/components}/Group/Group.d.ts +0 -0
  554. /package/dist/{components → packages/taco/src/components}/Hanger/Hanger.d.ts +0 -0
  555. /package/dist/{components → packages/taco/src/components}/Header/Header.d.ts +0 -0
  556. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Avatar.d.ts +0 -0
  557. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Badge.d.ts +0 -0
  558. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Display.d.ts +0 -0
  559. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Item.d.ts +0 -0
  560. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/types.d.ts +0 -0
  561. /package/dist/{components → packages/taco/src/components}/Header/components/AgreementSelector.d.ts +0 -0
  562. /package/dist/{components → packages/taco/src/components}/Header/components/Button.d.ts +0 -0
  563. /package/dist/{components → packages/taco/src/components}/Header/components/Link.d.ts +0 -0
  564. /package/dist/{components → packages/taco/src/components}/Header/components/Logo.d.ts +0 -0
  565. /package/dist/{components → packages/taco/src/components}/Header/components/MenuButton.d.ts +0 -0
  566. /package/dist/{components → packages/taco/src/components}/Header/components/PrimaryNavigation.d.ts +0 -0
  567. /package/dist/{components → packages/taco/src/components}/Header/components/SecondaryNavigation.d.ts +0 -0
  568. /package/dist/{components → packages/taco/src/components}/HoverCard/HoverCard.d.ts +0 -0
  569. /package/dist/{components → packages/taco/src/components}/HoverCard/Primitives.d.ts +0 -0
  570. /package/dist/{components → packages/taco/src/components}/Icon/Icon.d.ts +0 -0
  571. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountPreview.d.ts +0 -0
  572. /package/dist/{components → packages/taco/src/components}/Icon/components/Accounting.d.ts +0 -0
  573. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYear.d.ts +0 -0
  574. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYearCancel.d.ts +0 -0
  575. /package/dist/{components → packages/taco/src/components}/Icon/components/AiChatSolid.d.ts +0 -0
  576. /package/dist/{components → packages/taco/src/components}/Icon/components/AiStars.d.ts +0 -0
  577. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowBottom.d.ts +0 -0
  578. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowDown.d.ts +0 -0
  579. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowEnd.d.ts +0 -0
  580. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowLeft.d.ts +0 -0
  581. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowRight.d.ts +0 -0
  582. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowStart.d.ts +0 -0
  583. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowTop.d.ts +0 -0
  584. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowUp.d.ts +0 -0
  585. /package/dist/{components → packages/taco/src/components}/Icon/components/Attach.d.ts +0 -0
  586. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachAuto.d.ts +0 -0
  587. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachCancel.d.ts +0 -0
  588. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachWarning.d.ts +0 -0
  589. /package/dist/{components → packages/taco/src/components}/Icon/components/Autotext.d.ts +0 -0
  590. /package/dist/{components → packages/taco/src/components}/Icon/components/AutotextInsert.d.ts +0 -0
  591. /package/dist/{components → packages/taco/src/components}/Icon/components/Basic.d.ts +0 -0
  592. /package/dist/{components → packages/taco/src/components}/Icon/components/BasicTabs.d.ts +0 -0
  593. /package/dist/{components → packages/taco/src/components}/Icon/components/BellSolid.d.ts +0 -0
  594. /package/dist/{components → packages/taco/src/components}/Icon/components/Book.d.ts +0 -0
  595. /package/dist/{components → packages/taco/src/components}/Icon/components/Booking.d.ts +0 -0
  596. /package/dist/{components → packages/taco/src/components}/Icon/components/Budget.d.ts +0 -0
  597. /package/dist/{components → packages/taco/src/components}/Icon/components/Calendar.d.ts +0 -0
  598. /package/dist/{components → packages/taco/src/components}/Icon/components/CashAccount.d.ts +0 -0
  599. /package/dist/{components → packages/taco/src/components}/Icon/components/CashReports.d.ts +0 -0
  600. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartArea.d.ts +0 -0
  601. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartBar.d.ts +0 -0
  602. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartLine.d.ts +0 -0
  603. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartPie.d.ts +0 -0
  604. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartTable.d.ts +0 -0
  605. /package/dist/{components → packages/taco/src/components}/Icon/components/Chat.d.ts +0 -0
  606. /package/dist/{components → packages/taco/src/components}/Icon/components/ChatSolid.d.ts +0 -0
  607. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDown.d.ts +0 -0
  608. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownDouble.d.ts +0 -0
  609. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownSolid.d.ts +0 -0
  610. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeft.d.ts +0 -0
  611. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
  612. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
  613. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRight.d.ts +0 -0
  614. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightDouble.d.ts +0 -0
  615. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightSolid.d.ts +0 -0
  616. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUp.d.ts +0 -0
  617. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpDouble.d.ts +0 -0
  618. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpSolid.d.ts +0 -0
  619. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleClose.d.ts +0 -0
  620. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleInformation.d.ts +0 -0
  621. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleMinus.d.ts +0 -0
  622. /package/dist/{components → packages/taco/src/components}/Icon/components/CirclePlus.d.ts +0 -0
  623. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleQuestionmark.d.ts +0 -0
  624. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleTick.d.ts +0 -0
  625. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleWarning.d.ts +0 -0
  626. /package/dist/{components → packages/taco/src/components}/Icon/components/Clamp.d.ts +0 -0
  627. /package/dist/{components → packages/taco/src/components}/Icon/components/ClampOpen.d.ts +0 -0
  628. /package/dist/{components → packages/taco/src/components}/Icon/components/Close.d.ts +0 -0
  629. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnFreeze.d.ts +0 -0
  630. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
  631. /package/dist/{components → packages/taco/src/components}/Icon/components/Columns.d.ts +0 -0
  632. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionEnable.d.ts +0 -0
  633. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionRevoke.d.ts +0 -0
  634. /package/dist/{components → packages/taco/src/components}/Icon/components/Contacts.d.ts +0 -0
  635. /package/dist/{components → packages/taco/src/components}/Icon/components/Copy.d.ts +0 -0
  636. /package/dist/{components → packages/taco/src/components}/Icon/components/Courses.d.ts +0 -0
  637. /package/dist/{components → packages/taco/src/components}/Icon/components/Credit.d.ts +0 -0
  638. /package/dist/{components → packages/taco/src/components}/Icon/components/Delete.d.ts +0 -0
  639. /package/dist/{components → packages/taco/src/components}/Icon/components/DeletePermanently.d.ts +0 -0
  640. /package/dist/{components → packages/taco/src/components}/Icon/components/Depecriate.d.ts +0 -0
  641. /package/dist/{components → packages/taco/src/components}/Icon/components/Developer.d.ts +0 -0
  642. /package/dist/{components → packages/taco/src/components}/Icon/components/DistributionTemplate.d.ts +0 -0
  643. /package/dist/{components → packages/taco/src/components}/Icon/components/Document.d.ts +0 -0
  644. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentApprove.d.ts +0 -0
  645. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
  646. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCut.d.ts +0 -0
  647. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentError.d.ts +0 -0
  648. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
  649. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMerge.d.ts +0 -0
  650. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMove.d.ts +0 -0
  651. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentPreview.d.ts +0 -0
  652. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentReceived.d.ts +0 -0
  653. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
  654. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentSplit.d.ts +0 -0
  655. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentTime.d.ts +0 -0
  656. /package/dist/{components → packages/taco/src/components}/Icon/components/Download.d.ts +0 -0
  657. /package/dist/{components → packages/taco/src/components}/Icon/components/Drag.d.ts +0 -0
  658. /package/dist/{components → packages/taco/src/components}/Icon/components/ECopedia.d.ts +0 -0
  659. /package/dist/{components → packages/taco/src/components}/Icon/components/ESignature.d.ts +0 -0
  660. /package/dist/{components → packages/taco/src/components}/Icon/components/Edit.d.ts +0 -0
  661. /package/dist/{components → packages/taco/src/components}/Icon/components/EditSimple.d.ts +0 -0
  662. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
  663. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisVertical.d.ts +0 -0
  664. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOnAccount.d.ts +0 -0
  665. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOpen.d.ts +0 -0
  666. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesWarning.d.ts +0 -0
  667. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
  668. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
  669. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
  670. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
  671. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
  672. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
  673. /package/dist/{components → packages/taco/src/components}/Icon/components/Envelope.d.ts +0 -0
  674. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeApproved.d.ts +0 -0
  675. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeSolid.d.ts +0 -0
  676. /package/dist/{components → packages/taco/src/components}/Icon/components/ExpandView.d.ts +0 -0
  677. /package/dist/{components → packages/taco/src/components}/Icon/components/Expenses.d.ts +0 -0
  678. /package/dist/{components → packages/taco/src/components}/Icon/components/Export.d.ts +0 -0
  679. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToExcel.d.ts +0 -0
  680. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToPdf.d.ts +0 -0
  681. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOff.d.ts +0 -0
  682. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOn.d.ts +0 -0
  683. /package/dist/{components → packages/taco/src/components}/Icon/components/Filter.d.ts +0 -0
  684. /package/dist/{components → packages/taco/src/components}/Icon/components/FilterSolid.d.ts +0 -0
  685. /package/dist/{components → packages/taco/src/components}/Icon/components/FontSize.d.ts +0 -0
  686. /package/dist/{components → packages/taco/src/components}/Icon/components/GraphSolid.d.ts +0 -0
  687. /package/dist/{components → packages/taco/src/components}/Icon/components/Hash.d.ts +0 -0
  688. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightExtraTall.d.ts +0 -0
  689. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightMedium.d.ts +0 -0
  690. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightShort.d.ts +0 -0
  691. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightTall.d.ts +0 -0
  692. /package/dist/{components → packages/taco/src/components}/Icon/components/Home.d.ts +0 -0
  693. /package/dist/{components → packages/taco/src/components}/Icon/components/Images.d.ts +0 -0
  694. /package/dist/{components → packages/taco/src/components}/Icon/components/Import.d.ts +0 -0
  695. /package/dist/{components → packages/taco/src/components}/Icon/components/Inbox.d.ts +0 -0
  696. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxEinvoicing.d.ts +0 -0
  697. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxScanning.d.ts +0 -0
  698. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxSmart.d.ts +0 -0
  699. /package/dist/{components → packages/taco/src/components}/Icon/components/Info.d.ts +0 -0
  700. /package/dist/{components → packages/taco/src/components}/Icon/components/Inventory.d.ts +0 -0
  701. /package/dist/{components → packages/taco/src/components}/Icon/components/InventoryMatrix.d.ts +0 -0
  702. /package/dist/{components → packages/taco/src/components}/Icon/components/JournalPro.d.ts +0 -0
  703. /package/dist/{components → packages/taco/src/components}/Icon/components/Layout.d.ts +0 -0
  704. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutBoth.d.ts +0 -0
  705. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutFirst.d.ts +0 -0
  706. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutLast.d.ts +0 -0
  707. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutNone.d.ts +0 -0
  708. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCard.d.ts +0 -0
  709. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
  710. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
  711. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
  712. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
  713. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
  714. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
  715. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
  716. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
  717. /package/dist/{components → packages/taco/src/components}/Icon/components/Lightbulb.d.ts +0 -0
  718. /package/dist/{components → packages/taco/src/components}/Icon/components/Line.d.ts +0 -0
  719. /package/dist/{components → packages/taco/src/components}/Icon/components/List.d.ts +0 -0
  720. /package/dist/{components → packages/taco/src/components}/Icon/components/ListBulleted.d.ts +0 -0
  721. /package/dist/{components → packages/taco/src/components}/Icon/components/ListSearch.d.ts +0 -0
  722. /package/dist/{components → packages/taco/src/components}/Icon/components/Location.d.ts +0 -0
  723. /package/dist/{components → packages/taco/src/components}/Icon/components/Lock.d.ts +0 -0
  724. /package/dist/{components → packages/taco/src/components}/Icon/components/LockOpen.d.ts +0 -0
  725. /package/dist/{components → packages/taco/src/components}/Icon/components/Log.d.ts +0 -0
  726. /package/dist/{components → packages/taco/src/components}/Icon/components/LogOut.d.ts +0 -0
  727. /package/dist/{components → packages/taco/src/components}/Icon/components/Market.d.ts +0 -0
  728. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchAmount.d.ts +0 -0
  729. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchEntries.d.ts +0 -0
  730. /package/dist/{components → packages/taco/src/components}/Icon/components/Menu.d.ts +0 -0
  731. /package/dist/{components → packages/taco/src/components}/Icon/components/Mileage.d.ts +0 -0
  732. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalResize.d.ts +0 -0
  733. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalShrink.d.ts +0 -0
  734. /package/dist/{components → packages/taco/src/components}/Icon/components/More.d.ts +0 -0
  735. /package/dist/{components → packages/taco/src/components}/Icon/components/MoreSolid.d.ts +0 -0
  736. /package/dist/{components → packages/taco/src/components}/Icon/components/Move.d.ts +0 -0
  737. /package/dist/{components → packages/taco/src/components}/Icon/components/NavigationList.d.ts +0 -0
  738. /package/dist/{components → packages/taco/src/components}/Icon/components/Note.d.ts +0 -0
  739. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteFollowUp.d.ts +0 -0
  740. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteRead.d.ts +0 -0
  741. /package/dist/{components → packages/taco/src/components}/Icon/components/Numbers.d.ts +0 -0
  742. /package/dist/{components → packages/taco/src/components}/Icon/components/PartnerApi.d.ts +0 -0
  743. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentPaid.d.ts +0 -0
  744. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentUnpaid.d.ts +0 -0
  745. /package/dist/{components → packages/taco/src/components}/Icon/components/Period.d.ts +0 -0
  746. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonChange.d.ts +0 -0
  747. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonMinus.d.ts +0 -0
  748. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonPlus.d.ts +0 -0
  749. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonTick.d.ts +0 -0
  750. /package/dist/{components → packages/taco/src/components}/Icon/components/PhoneSolid.d.ts +0 -0
  751. /package/dist/{components → packages/taco/src/components}/Icon/components/Play.d.ts +0 -0
  752. /package/dist/{components → packages/taco/src/components}/Icon/components/PlusMinus.d.ts +0 -0
  753. /package/dist/{components → packages/taco/src/components}/Icon/components/Print.d.ts +0 -0
  754. /package/dist/{components → packages/taco/src/components}/Icon/components/ProcessPayment.d.ts +0 -0
  755. /package/dist/{components → packages/taco/src/components}/Icon/components/ProductLedgerCard.d.ts +0 -0
  756. /package/dist/{components → packages/taco/src/components}/Icon/components/Profile.d.ts +0 -0
  757. /package/dist/{components → packages/taco/src/components}/Icon/components/ProjectCards.d.ts +0 -0
  758. /package/dist/{components → packages/taco/src/components}/Icon/components/Projects.d.ts +0 -0
  759. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMark.d.ts +0 -0
  760. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMarkBold.d.ts +0 -0
  761. /package/dist/{components → packages/taco/src/components}/Icon/components/Quicklinks.d.ts +0 -0
  762. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingBankruptcy.d.ts +0 -0
  763. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
  764. /package/dist/{components → packages/taco/src/components}/Icon/components/Reconciled.d.ts +0 -0
  765. /package/dist/{components → packages/taco/src/components}/Icon/components/Refresh.d.ts +0 -0
  766. /package/dist/{components → packages/taco/src/components}/Icon/components/Report.d.ts +0 -0
  767. /package/dist/{components → packages/taco/src/components}/Icon/components/ReportSolid.d.ts +0 -0
  768. /package/dist/{components → packages/taco/src/components}/Icon/components/Restore.d.ts +0 -0
  769. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateLeft.d.ts +0 -0
  770. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateRight.d.ts +0 -0
  771. /package/dist/{components → packages/taco/src/components}/Icon/components/Sales.d.ts +0 -0
  772. /package/dist/{components → packages/taco/src/components}/Icon/components/Search.d.ts +0 -0
  773. /package/dist/{components → packages/taco/src/components}/Icon/components/SearchBold.d.ts +0 -0
  774. /package/dist/{components → packages/taco/src/components}/Icon/components/Secure.d.ts +0 -0
  775. /package/dist/{components → packages/taco/src/components}/Icon/components/SecureTick.d.ts +0 -0
  776. /package/dist/{components → packages/taco/src/components}/Icon/components/Settings.d.ts +0 -0
  777. /package/dist/{components → packages/taco/src/components}/Icon/components/SettingsSolid.d.ts +0 -0
  778. /package/dist/{components → packages/taco/src/components}/Icon/components/Shortcuts.d.ts +0 -0
  779. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowAll.d.ts +0 -0
  780. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowLess.d.ts +0 -0
  781. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowMore.d.ts +0 -0
  782. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowTemplate.d.ts +0 -0
  783. /package/dist/{components → packages/taco/src/components}/Icon/components/Sliders.d.ts +0 -0
  784. /package/dist/{components → packages/taco/src/components}/Icon/components/Smartpay.d.ts +0 -0
  785. /package/dist/{components → packages/taco/src/components}/Icon/components/SortBy.d.ts +0 -0
  786. /package/dist/{components → packages/taco/src/components}/Icon/components/Star.d.ts +0 -0
  787. /package/dist/{components → packages/taco/src/components}/Icon/components/StarSolid.d.ts +0 -0
  788. /package/dist/{components → packages/taco/src/components}/Icon/components/Subscriptions.d.ts +0 -0
  789. /package/dist/{components → packages/taco/src/components}/Icon/components/SystemEntries.d.ts +0 -0
  790. /package/dist/{components → packages/taco/src/components}/Icon/components/Tag.d.ts +0 -0
  791. /package/dist/{components → packages/taco/src/components}/Icon/components/TemplateOverride.d.ts +0 -0
  792. /package/dist/{components → packages/taco/src/components}/Icon/components/Templates.d.ts +0 -0
  793. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbBoth.d.ts +0 -0
  794. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDown.d.ts +0 -0
  795. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDownSolid.d.ts +0 -0
  796. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUp.d.ts +0 -0
  797. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUpSolid.d.ts +0 -0
  798. /package/dist/{components → packages/taco/src/components}/Icon/components/Tick.d.ts +0 -0
  799. /package/dist/{components → packages/taco/src/components}/Icon/components/TickBold.d.ts +0 -0
  800. /package/dist/{components → packages/taco/src/components}/Icon/components/Time.d.ts +0 -0
  801. /package/dist/{components → packages/taco/src/components}/Icon/components/Transfer.d.ts +0 -0
  802. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferCancel.d.ts +0 -0
  803. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferLocked.d.ts +0 -0
  804. /package/dist/{components → packages/taco/src/components}/Icon/components/Undo.d.ts +0 -0
  805. /package/dist/{components → packages/taco/src/components}/Icon/components/Undock.d.ts +0 -0
  806. /package/dist/{components → packages/taco/src/components}/Icon/components/Unreconciled.d.ts +0 -0
  807. /package/dist/{components → packages/taco/src/components}/Icon/components/Warning.d.ts +0 -0
  808. /package/dist/{components → packages/taco/src/components}/Icon/components/Webshop.d.ts +0 -0
  809. /package/dist/{components → packages/taco/src/components}/Icon/components/Website.d.ts +0 -0
  810. /package/dist/{components → packages/taco/src/components}/Icon/components/Workflow.d.ts +0 -0
  811. /package/dist/{components → packages/taco/src/components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
  812. /package/dist/{components → packages/taco/src/components}/Icon/components/Zoom.d.ts +0 -0
  813. /package/dist/{components → packages/taco/src/components}/Icon/components/index.d.ts +0 -0
  814. /package/dist/{components → packages/taco/src/components}/IconButton/IconButton.d.ts +0 -0
  815. /package/dist/{components → packages/taco/src/components}/Input/Input.d.ts +0 -0
  816. /package/dist/{components → packages/taco/src/components}/Input/util.d.ts +0 -0
  817. /package/dist/{components → packages/taco/src/components}/Layout/Layout.d.ts +0 -0
  818. /package/dist/{components → packages/taco/src/components}/Layout/components/Content.d.ts +0 -0
  819. /package/dist/{components → packages/taco/src/components}/Layout/components/Context.d.ts +0 -0
  820. /package/dist/{components → packages/taco/src/components}/Layout/components/Page.d.ts +0 -0
  821. /package/dist/{components → packages/taco/src/components}/Layout/components/Sidebar.d.ts +0 -0
  822. /package/dist/{components → packages/taco/src/components}/Layout/components/Top.d.ts +0 -0
  823. /package/dist/{components → packages/taco/src/components}/Listbox/Listbox.d.ts +0 -0
  824. /package/dist/{components → packages/taco/src/components}/Listbox/ScrollableList.d.ts +0 -0
  825. /package/dist/{components → packages/taco/src/components}/Listbox/useListbox.d.ts +0 -0
  826. /package/dist/{components → packages/taco/src/components}/Listbox/useMultiListbox.d.ts +0 -0
  827. /package/dist/{components → packages/taco/src/components}/Listbox/useTypeahead.d.ts +0 -0
  828. /package/dist/{components → packages/taco/src/components}/Listbox/util.d.ts +0 -0
  829. /package/dist/{components → packages/taco/src/components}/Menu/Context.d.ts +0 -0
  830. /package/dist/{components → packages/taco/src/components}/Menu/Menu.d.ts +0 -0
  831. /package/dist/{components → packages/taco/src/components}/Menu/components/Checkbox.d.ts +0 -0
  832. /package/dist/{components → packages/taco/src/components}/Menu/components/Content.d.ts +0 -0
  833. /package/dist/{components → packages/taco/src/components}/Menu/components/Header.d.ts +0 -0
  834. /package/dist/{components → packages/taco/src/components}/Menu/components/Item.d.ts +0 -0
  835. /package/dist/{components → packages/taco/src/components}/Menu/components/Link.d.ts +0 -0
  836. /package/dist/{components → packages/taco/src/components}/Menu/components/RadioGroup.d.ts +0 -0
  837. /package/dist/{components → packages/taco/src/components}/Menu/components/Separator.d.ts +0 -0
  838. /package/dist/{components → packages/taco/src/components}/Menu/components/SubMenu.d.ts +0 -0
  839. /package/dist/{components → packages/taco/src/components}/Menu/components/Trigger.d.ts +0 -0
  840. /package/dist/{components → packages/taco/src/components}/ModeSwitch/ModeSwitch.d.ts +0 -0
  841. /package/dist/{components → packages/taco/src/components}/Navigation/Navigation.d.ts +0 -0
  842. /package/dist/{components → packages/taco/src/components}/Navigation2/Navigation2.d.ts +0 -0
  843. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Content.d.ts +0 -0
  844. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Group.d.ts +0 -0
  845. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Link.d.ts +0 -0
  846. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Section.d.ts +0 -0
  847. /package/dist/{components → packages/taco/src/components}/Navigation2/components/util.d.ts +0 -0
  848. /package/dist/{components → packages/taco/src/components}/OverflowGroup/OverflowGroup.d.ts +0 -0
  849. /package/dist/{components → packages/taco/src/components}/Pagination/PageNumbers.d.ts +0 -0
  850. /package/dist/{components → packages/taco/src/components}/Pagination/Pagination.d.ts +0 -0
  851. /package/dist/{components → packages/taco/src/components}/Pagination/usePagination.d.ts +0 -0
  852. /package/dist/{components → packages/taco/src/components}/Pagination/usePaginationShortcuts.d.ts +0 -0
  853. /package/dist/{components → packages/taco/src/components}/Popover/Popover.d.ts +0 -0
  854. /package/dist/{components → packages/taco/src/components}/Popover/Primitives.d.ts +0 -0
  855. /package/dist/{components → packages/taco/src/components}/Popover/util.d.ts +0 -0
  856. /package/dist/{components → packages/taco/src/components}/Progress/Progress.d.ts +0 -0
  857. /package/dist/{components → packages/taco/src/components}/Provider/Provider.d.ts +0 -0
  858. /package/dist/{components → packages/taco/src/components}/RadioGroup/RadioGroup.d.ts +0 -0
  859. /package/dist/{components → packages/taco/src/components}/RadioGroup/util.d.ts +0 -0
  860. /package/dist/{components → packages/taco/src/components}/ScrollArea/ScrollArea.d.ts +0 -0
  861. /package/dist/{components → packages/taco/src/components}/SearchInput/SearchInput.d.ts +0 -0
  862. /package/dist/{components → packages/taco/src/components}/SearchInput2/SearchInput2.d.ts +0 -0
  863. /package/dist/{components → packages/taco/src/components}/Select/Select.d.ts +0 -0
  864. /package/dist/{components → packages/taco/src/components}/Select/useSelect.d.ts +0 -0
  865. /package/dist/{components → packages/taco/src/components}/Select2/Select2.d.ts +0 -0
  866. /package/dist/{components → packages/taco/src/components}/Select2/components/All.d.ts +0 -0
  867. /package/dist/{components → packages/taco/src/components}/Select2/components/Collection.d.ts +0 -0
  868. /package/dist/{components → packages/taco/src/components}/Select2/components/Context.d.ts +0 -0
  869. /package/dist/{components → packages/taco/src/components}/Select2/components/Create.d.ts +0 -0
  870. /package/dist/{components → packages/taco/src/components}/Select2/components/Edit.d.ts +0 -0
  871. /package/dist/{components → packages/taco/src/components}/Select2/components/Group.d.ts +0 -0
  872. /package/dist/{components → packages/taco/src/components}/Select2/components/Option.d.ts +0 -0
  873. /package/dist/{components → packages/taco/src/components}/Select2/components/Search.d.ts +0 -0
  874. /package/dist/{components → packages/taco/src/components}/Select2/components/Title.d.ts +0 -0
  875. /package/dist/{components → packages/taco/src/components}/Select2/components/Trigger.d.ts +0 -0
  876. /package/dist/{components → packages/taco/src/components}/Select2/types.d.ts +0 -0
  877. /package/dist/{components → packages/taco/src/components}/Select2/utilities.d.ts +0 -0
  878. /package/dist/{components → packages/taco/src/components}/Shortcut/Shortcut.d.ts +0 -0
  879. /package/dist/{components → packages/taco/src/components}/Spinner/Spinner.d.ts +0 -0
  880. /package/dist/{components → packages/taco/src/components}/Switch/Switch.d.ts +0 -0
  881. /package/dist/{components → packages/taco/src/components}/Table/Table.storyexample.d.ts +0 -0
  882. /package/dist/{components → packages/taco/src/components}/Table/components/BaseTable.d.ts +0 -0
  883. /package/dist/{components → packages/taco/src/components}/Table/components/PaginatedTable.d.ts +0 -0
  884. /package/dist/{components → packages/taco/src/components}/Table/components/Table.d.ts +0 -0
  885. /package/dist/{components → packages/taco/src/components}/Table/components/WindowedTable.d.ts +0 -0
  886. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
  887. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
  888. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
  889. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
  890. /package/dist/{components → packages/taco/src/components}/Table/hooks/useRowCreation.d.ts +0 -0
  891. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTable.d.ts +0 -0
  892. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
  893. /package/dist/{components → packages/taco/src/components}/Table/types.d.ts +0 -0
  894. /package/dist/{components → packages/taco/src/components}/Table/util/renderColumn.d.ts +0 -0
  895. /package/dist/{components → packages/taco/src/components}/Table/util/renderRow.d.ts +0 -0
  896. /package/dist/{components → packages/taco/src/components}/Table/util/rowIndexPath.d.ts +0 -0
  897. /package/dist/{components → packages/taco/src/components}/Table/util/sortTypes.d.ts +0 -0
  898. /package/dist/{components → packages/taco/src/components}/Table/util.d.ts +0 -0
  899. /package/dist/{components → packages/taco/src/components}/Tabs/Tabs.d.ts +0 -0
  900. /package/dist/{components → packages/taco/src/components}/Tag/Tag.d.ts +0 -0
  901. /package/dist/{components → packages/taco/src/components}/Textarea/Textarea.d.ts +0 -0
  902. /package/dist/{components → packages/taco/src/components}/Toast/Toast.d.ts +0 -0
  903. /package/dist/{components → packages/taco/src/components}/Toast/Toaster.d.ts +0 -0
  904. /package/dist/{components → packages/taco/src/components}/Toast/util.d.ts +0 -0
  905. /package/dist/{components → packages/taco/src/components}/Tooltip/Tooltip.d.ts +0 -0
  906. /package/dist/{components → packages/taco/src/components}/Tour/Tour.d.ts +0 -0
  907. /package/dist/{components → packages/taco/src/components}/Treeview/Treeview.d.ts +0 -0
  908. /package/dist/{components → packages/taco/src/components}/Truncate/Truncate.d.ts +0 -0
  909. /package/dist/{components → packages/taco/src/components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
  910. /package/dist/{hooks → packages/taco/src/hooks}/useBoundaryOverflowDetection.d.ts +0 -0
  911. /package/dist/{hooks → packages/taco/src/hooks}/useBoundingClientRectListener.d.ts +0 -0
  912. /package/dist/{hooks → packages/taco/src/hooks}/useDebouncedEffect.d.ts +0 -0
  913. /package/dist/{hooks → packages/taco/src/hooks}/useGlobalKeyDown.d.ts +0 -0
  914. /package/dist/{hooks → packages/taco/src/hooks}/useId.d.ts +0 -0
  915. /package/dist/{hooks → packages/taco/src/hooks}/useIntersectionObserver.d.ts +0 -0
  916. /package/dist/{hooks → packages/taco/src/hooks}/useIsFormControl.d.ts +0 -0
  917. /package/dist/{hooks → packages/taco/src/hooks}/useIsHoverStatePaused.d.ts +0 -0
  918. /package/dist/{hooks → packages/taco/src/hooks}/useIsLargeScreen.d.ts +0 -0
  919. /package/dist/{hooks → packages/taco/src/hooks}/useLazyEffect.d.ts +0 -0
  920. /package/dist/{hooks → packages/taco/src/hooks}/useLocalStorage.d.ts +0 -0
  921. /package/dist/{hooks → packages/taco/src/hooks}/useMatchMedia.d.ts +0 -0
  922. /package/dist/{hooks → packages/taco/src/hooks}/useMergedRef.d.ts +0 -0
  923. /package/dist/{hooks → packages/taco/src/hooks}/usePrevious.d.ts +0 -0
  924. /package/dist/{hooks → packages/taco/src/hooks}/useTacoSettings.d.ts +0 -0
  925. /package/dist/{primitives → packages/taco/src/primitives}/BubbleSelect.d.ts +0 -0
  926. /package/dist/{primitives → packages/taco/src/primitives}/Button.d.ts +0 -0
  927. /package/dist/{primitives → packages/taco/src/primitives}/Collection/Collection.d.ts +0 -0
  928. /package/dist/{primitives → packages/taco/src/primitives}/Collection/components/Root.d.ts +0 -0
  929. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/Listbox2.d.ts +0 -0
  930. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Context.d.ts +0 -0
  931. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Group.d.ts +0 -0
  932. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Option.d.ts +0 -0
  933. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Root.d.ts +0 -0
  934. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Title.d.ts +0 -0
  935. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/types.d.ts +0 -0
  936. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/Sortable.d.ts +0 -0
  937. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Container.d.ts +0 -0
  938. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Item.d.ts +0 -0
  939. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/List.d.ts +0 -0
  940. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/util.d.ts +0 -0
  941. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  942. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  943. /package/dist/{components/Report/components/Row → packages/taco/src/primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  944. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  945. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  946. /package/dist/{components/Report/styles → packages/taco/src/primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  947. /package/dist/{primitives/Table/useTableManager → packages/taco/src/primitives/Table/Core}/features/useTableRef.d.ts +0 -0
  948. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  949. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/util/rows.d.ts +0 -0
  950. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableDataLoader.d.ts +0 -0
  951. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
  952. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
  953. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
  954. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
  955. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
  956. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
  957. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
  958. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
  959. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
  960. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
  961. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
  962. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
  963. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
  964. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
  965. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
  966. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
  967. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
  968. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
  969. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
  970. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
  971. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
  972. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
  973. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
  974. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
  975. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
  976. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.d.ts +0 -0
  977. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
  978. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
  979. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/presets.d.ts +0 -0
  980. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/search.d.ts +0 -0
  981. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/setup.d.ts +0 -0
  982. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/sorting.d.ts +0 -0
  983. /package/dist/{types.d.ts → packages/taco/src/types.d.ts} +0 -0
  984. /package/dist/{utils → packages/taco/src/utils}/aria.d.ts +0 -0
  985. /package/dist/{utils → packages/taco/src/utils}/date.d.ts +0 -0
  986. /package/dist/{utils → packages/taco/src/utils}/debounce.d.ts +0 -0
  987. /package/dist/{utils → packages/taco/src/utils}/device.d.ts +0 -0
  988. /package/dist/{utils → packages/taco/src/utils}/hooks/useDraggable.d.ts +0 -0
  989. /package/dist/{utils → packages/taco/src/utils}/hooks/useDropTarget.d.ts +0 -0
  990. /package/dist/{utils → packages/taco/src/utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
  991. /package/dist/{utils → packages/taco/src/utils}/hooks/useListScrollTo.d.ts +0 -0
  992. /package/dist/{utils → packages/taco/src/utils}/hooks/useOnClickOutside.d.ts +0 -0
  993. /package/dist/{utils → packages/taco/src/utils}/hooks/useRefState.d.ts +0 -0
  994. /package/dist/{utils → packages/taco/src/utils}/hooks/useTimer.d.ts +0 -0
  995. /package/dist/{utils → packages/taco/src/utils}/hooks/useTruncated.d.ts +0 -0
  996. /package/dist/{utils → packages/taco/src/utils}/input.d.ts +0 -0
  997. /package/dist/{utils → packages/taco/src/utils}/keyboard.d.ts +0 -0
  998. /package/dist/{utils → packages/taco/src/utils}/mergeRefs.d.ts +0 -0
  999. /package/dist/{utils → packages/taco/src/utils}/storyutils.d.ts +0 -0
  1000. /package/dist/{utils → packages/taco/src/utils}/tailwind.d.ts +0 -0
@@ -1,178 +0,0 @@
1
- import React__default from 'react';
2
-
3
- function useValidation(onCellValidate, onRowValidate) {
4
- const [validationState, dispatch] = React__default.useReducer(validationReducer, {
5
- errors: null,
6
- draftErrors: null
7
- });
8
- function getCellError(cell) {
9
- var _validationState$draf, _validationState$erro;
10
- return validationState.draftErrors && ((_validationState$draf = validationState.draftErrors[cell.row.id]) === null || _validationState$draf === void 0 ? void 0 : _validationState$draf[cell.column.id]) || (validationState.errors ? (_validationState$erro = validationState.errors[cell.row.id]) === null || _validationState$erro === void 0 ? void 0 : _validationState$erro[cell.column.id] : undefined);
11
- }
12
- function setCellError(rowId, cellId, error) {
13
- dispatch({
14
- type: ValidationActionType.SET_CELL_ERROR,
15
- payload: {
16
- rowId,
17
- cellId,
18
- error
19
- }
20
- });
21
- }
22
- function setRowErrors(rowId, errors) {
23
- dispatch({
24
- type: ValidationActionType.SET_ROW_ERROR,
25
- payload: {
26
- rowId,
27
- errors
28
- }
29
- });
30
- }
31
- function confirmErrors(rowId) {
32
- dispatch({
33
- type: ValidationActionType.CONFIRN_ERRORS,
34
- payload: {
35
- rowId
36
- }
37
- });
38
- }
39
- function resetErrors(rowId, cellId) {
40
- dispatch({
41
- type: ValidationActionType.RESET_ERRORS,
42
- payload: {
43
- rowId,
44
- cellId
45
- }
46
- });
47
- }
48
- const setErrors = (errors, rowId, cellId) => {
49
- if (cellId) {
50
- setCellError(rowId, cellId, errors[cellId]);
51
- } else {
52
- setRowErrors(rowId, errors);
53
- }
54
- };
55
- const validate = (rowId, row, cellId) => {
56
- let validationPromise;
57
- if (cellId && onCellValidate) {
58
- validationPromise = onCellValidate(row[cellId], cellId, row);
59
- } else if (onRowValidate) {
60
- validationPromise = onRowValidate(row);
61
- } else {
62
- validationPromise = new Promise(resolve => {
63
- resolve();
64
- });
65
- }
66
- validationPromise.then(() => {
67
- // Need to reset previous errors,
68
- // since promise resolve is the only place where we consider that previous errors is not relevant anymore.
69
- resetErrors(rowId, cellId);
70
- }).catch(errors => {
71
- setErrors(errors, rowId, cellId);
72
- });
73
- return validationPromise;
74
- };
75
- return {
76
- validate,
77
- setCellError,
78
- setRowErrors,
79
- confirmErrors,
80
- getCellError,
81
- resetErrors,
82
- errors: validationState.errors,
83
- draftErrors: validationState.draftErrors
84
- };
85
- }
86
- // Taking care of reseting/removing errors for particular cell/row and reseting errors object to null, when no errors at all.
87
- function _resetErrors(errors, rowId, columnId) {
88
- let currentErrors = errors ? {
89
- ...errors
90
- } : {};
91
- if (currentErrors && currentErrors[rowId]) {
92
- if (columnId) {
93
- delete currentErrors[rowId][columnId];
94
- const rowErrorsSet = Object.keys(currentErrors[rowId]);
95
- if (rowErrorsSet.length === 0) {
96
- delete currentErrors[rowId];
97
- }
98
- } else {
99
- delete currentErrors[rowId];
100
- }
101
- }
102
- const errorsSet = Object.keys(currentErrors);
103
- if (errorsSet.length === 0) {
104
- currentErrors = null;
105
- }
106
- return currentErrors;
107
- }
108
- var ValidationActionType;
109
- (function (ValidationActionType) {
110
- ValidationActionType[ValidationActionType["SET_CELL_ERROR"] = 0] = "SET_CELL_ERROR";
111
- ValidationActionType[ValidationActionType["SET_ROW_ERROR"] = 1] = "SET_ROW_ERROR";
112
- ValidationActionType[ValidationActionType["CONFIRN_ERRORS"] = 2] = "CONFIRN_ERRORS";
113
- ValidationActionType[ValidationActionType["RESET_ERRORS"] = 3] = "RESET_ERRORS";
114
- })(ValidationActionType || (ValidationActionType = {}));
115
- function validationReducer(state, action) {
116
- var _state$draftErrors, _state$draftErrors2;
117
- switch (action.type) {
118
- // Saves cell error into draft errors state.
119
- case ValidationActionType.SET_CELL_ERROR:
120
- return {
121
- ...state,
122
- draftErrors: {
123
- ...state.draftErrors,
124
- [action.payload.rowId]: {
125
- ...((_state$draftErrors = state.draftErrors) === null || _state$draftErrors === void 0 ? void 0 : _state$draftErrors[action.payload.rowId]),
126
- [action.payload.cellId]: action.payload.error
127
- }
128
- }
129
- };
130
- // Saves row errors into draft errors state.
131
- case ValidationActionType.SET_ROW_ERROR:
132
- return {
133
- ...state,
134
- draftErrors: {
135
- ...state.draftErrors,
136
- [action.payload.rowId]: {
137
- ...((_state$draftErrors2 = state.draftErrors) === null || _state$draftErrors2 === void 0 ? void 0 : _state$draftErrors2[action.payload.rowId]),
138
- ...action.payload.errors
139
- }
140
- }
141
- };
142
- // Promotes errors from draft into confirmed state (When user moves to next/prev row)
143
- case ValidationActionType.CONFIRN_ERRORS:
144
- {
145
- const newDraftErrors = {
146
- ...state.draftErrors
147
- };
148
- const confirmedRow = {
149
- ...newDraftErrors[action.payload.rowId]
150
- };
151
- delete newDraftErrors[action.payload.rowId];
152
- return {
153
- draftErrors: newDraftErrors,
154
- errors: {
155
- ...state.errors,
156
- [action.payload.rowId]: confirmedRow
157
- }
158
- };
159
- }
160
- // Resets all errors for particular row or cell if cell id is passed.
161
- // We need to reset both confirmed and draft errors, for the situations,
162
- // when user is getting back to the row wich already had error.
163
- case ValidationActionType.RESET_ERRORS:
164
- {
165
- const newDraftErrors = _resetErrors(state.draftErrors, action.payload.rowId, action.payload.cellId);
166
- const newErrors = _resetErrors(state.errors, action.payload.rowId, action.payload.cellId);
167
- return {
168
- errors: newErrors,
169
- draftErrors: newDraftErrors
170
- };
171
- }
172
- default:
173
- return state;
174
- }
175
- }
176
-
177
- export { useValidation };
178
- //# sourceMappingURL=useValidation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useValidation.js","sources":["../../../../../../../../../src/components/Table3/hooks/features/useValidation.ts"],"sourcesContent":["import React from 'react';\nimport * as _ from 'lodash';\nimport { Cell as RTCell } from '@tanstack/react-table';\nimport { RowErrors, Table3CellValidationHandler, Table3RowValidationHandler } from '../../types';\n\nexport type Table3Validation<TType = unknown> = {\n validate: (rowId: string, row: TType, cellId?: string) => Promise<void | RowErrors>;\n setCellError: (rowId: string, cellId: string, error: string) => void;\n setRowErrors: (rowId: string, errors: Record<string, string>) => void;\n confirmErrors: (rowId: string) => void;\n getCellError: <T extends TType>(cell: RTCell<T, unknown>) => string | undefined;\n resetErrors: (rowId: string, cellId?: string) => void;\n errors: Record<string, RowErrors> | null;\n draftErrors: Record<string, RowErrors> | null;\n};\n\nexport function useValidation<TType = unknown>(\n onCellValidate?: Table3CellValidationHandler<TType>,\n onRowValidate?: Table3RowValidationHandler<TType>\n): Table3Validation<TType> {\n const [validationState, dispatch] = React.useReducer(validationReducer, { errors: null, draftErrors: null });\n\n function getCellError<T extends TType>(cell: RTCell<T, unknown>) {\n return (\n (validationState.draftErrors && validationState.draftErrors[cell.row.id]?.[cell.column.id]) ||\n (validationState.errors ? validationState.errors[cell.row.id]?.[cell.column.id] : undefined)\n );\n }\n\n function setCellError(rowId: string, cellId: string, error: string) {\n dispatch({\n type: ValidationActionType.SET_CELL_ERROR,\n payload: { rowId, cellId, error },\n });\n }\n\n function setRowErrors(rowId: string, errors: Record<string, string>) {\n dispatch({\n type: ValidationActionType.SET_ROW_ERROR,\n payload: { rowId, errors },\n });\n }\n\n function confirmErrors(rowId: string) {\n dispatch({\n type: ValidationActionType.CONFIRN_ERRORS,\n payload: { rowId },\n });\n }\n\n function resetErrors(rowId: string, cellId?: string) {\n dispatch({\n type: ValidationActionType.RESET_ERRORS,\n payload: { rowId, cellId },\n });\n }\n\n const setErrors = (errors: RowErrors, rowId: string, cellId?: string) => {\n if (cellId) {\n setCellError(rowId, cellId, errors[cellId]);\n } else {\n setRowErrors(rowId, errors);\n }\n };\n\n const validate = (rowId: string, row: TType, cellId?: string) => {\n let validationPromise: Promise<RowErrors | void>;\n if (cellId && onCellValidate) {\n validationPromise = onCellValidate(row[cellId], cellId, row);\n } else if (onRowValidate) {\n validationPromise = onRowValidate(row);\n } else {\n validationPromise = new Promise(resolve => {\n resolve();\n });\n }\n\n validationPromise\n .then(() => {\n // Need to reset previous errors,\n // since promise resolve is the only place where we consider that previous errors is not relevant anymore.\n resetErrors(rowId, cellId);\n })\n .catch((errors: RowErrors) => {\n setErrors(errors, rowId, cellId);\n });\n\n return validationPromise;\n };\n\n return {\n validate,\n setCellError,\n setRowErrors,\n confirmErrors,\n getCellError,\n resetErrors,\n errors: validationState.errors,\n draftErrors: validationState.draftErrors,\n };\n}\n\n// Taking care of reseting/removing errors for particular cell/row and reseting errors object to null, when no errors at all.\nfunction _resetErrors(\n errors: Record<string, RowErrors> | null,\n rowId: string,\n columnId?: string\n): Record<string, RowErrors> | null {\n let currentErrors: Record<string, RowErrors> | null = errors ? { ...errors } : {};\n\n if (currentErrors && currentErrors[rowId]) {\n if (columnId) {\n delete currentErrors[rowId][columnId];\n const rowErrorsSet = Object.keys(currentErrors[rowId]);\n if (rowErrorsSet.length === 0) {\n delete currentErrors[rowId];\n }\n } else {\n delete currentErrors[rowId];\n }\n }\n\n const errorsSet = Object.keys(currentErrors);\n if (errorsSet.length === 0) {\n currentErrors = null;\n }\n\n return currentErrors;\n}\n\nenum ValidationActionType {\n SET_CELL_ERROR,\n SET_ROW_ERROR,\n CONFIRN_ERRORS,\n RESET_ERRORS,\n}\n\ntype ValidationState = {\n // According to UX requirement, while user still editing current row, the error alert should not be yet shown,\n // and row should not be highlighted in red, but error still need to be shown on a cell level when user moving from cell to cell.\n // This means that we need to maintain some kind of draft validation errors as well as confirmed errors.\n draftErrors: Record<string, RowErrors> | null;\n // sets of row errors\n errors: Record<string, RowErrors> | null;\n};\n\ntype ValidationAction =\n | { type: ValidationActionType.SET_CELL_ERROR; payload: { rowId: string; cellId: string; error: string } }\n | { type: ValidationActionType.SET_ROW_ERROR; payload: { rowId: string; errors: RowErrors } }\n | { type: ValidationActionType.CONFIRN_ERRORS; payload: { rowId: string } }\n | { type: ValidationActionType.RESET_ERRORS; payload: { rowId: string; cellId?: string } };\n\nfunction validationReducer(state: ValidationState, action: ValidationAction): ValidationState {\n switch (action.type) {\n // Saves cell error into draft errors state.\n case ValidationActionType.SET_CELL_ERROR:\n return {\n ...state,\n draftErrors: {\n ...state.draftErrors,\n [action.payload.rowId]: {\n ...state.draftErrors?.[action.payload.rowId],\n [action.payload.cellId]: action.payload.error,\n },\n },\n };\n\n // Saves row errors into draft errors state.\n case ValidationActionType.SET_ROW_ERROR:\n return {\n ...state,\n draftErrors: {\n ...state.draftErrors,\n [action.payload.rowId]: {\n ...state.draftErrors?.[action.payload.rowId],\n ...action.payload.errors,\n },\n },\n };\n\n // Promotes errors from draft into confirmed state (When user moves to next/prev row)\n case ValidationActionType.CONFIRN_ERRORS: {\n const newDraftErrors = { ...state.draftErrors };\n const confirmedRow = { ...newDraftErrors[action.payload.rowId] };\n delete newDraftErrors[action.payload.rowId];\n return {\n draftErrors: newDraftErrors,\n errors: {\n ...state.errors,\n [action.payload.rowId]: confirmedRow,\n },\n };\n }\n\n // Resets all errors for particular row or cell if cell id is passed.\n // We need to reset both confirmed and draft errors, for the situations,\n // when user is getting back to the row wich already had error.\n case ValidationActionType.RESET_ERRORS: {\n const newDraftErrors = _resetErrors(state.draftErrors, action.payload.rowId, action.payload.cellId);\n const newErrors = _resetErrors(state.errors, action.payload.rowId, action.payload.cellId);\n return {\n errors: newErrors,\n draftErrors: newDraftErrors,\n };\n }\n\n default:\n return state;\n }\n}\n"],"names":["useValidation","onCellValidate","onRowValidate","validationState","dispatch","React","useReducer","validationReducer","errors","draftErrors","getCellError","cell","_validationState$draf","row","id","column","_validationState$erro","undefined","setCellError","rowId","cellId","error","type","ValidationActionType","SET_CELL_ERROR","payload","setRowErrors","SET_ROW_ERROR","confirmErrors","CONFIRN_ERRORS","resetErrors","RESET_ERRORS","setErrors","validate","validationPromise","Promise","resolve","then","catch","_resetErrors","columnId","currentErrors","rowErrorsSet","Object","keys","length","errorsSet","state","action","_state$draftErrors","_state$draftErrors2","newDraftErrors","confirmedRow","newErrors"],"mappings":"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"}
@@ -1,28 +0,0 @@
1
- import React__default from 'react';
2
-
3
- function useEditingStateListener(table) {
4
- const meta = table.options.meta;
5
- // save when the row changes
6
- React__default.useEffect(() => {
7
- if (meta.editing.isEnabled && meta.editing.isEditing) {
8
- requestAnimationFrame(() => {
9
- meta.editing.saveChangesIfNeeded();
10
- });
11
- }
12
- }, [meta.rowActive.rowActiveIndex]);
13
- // save if editing gets toggled off
14
- React__default.useEffect(() => {
15
- if (meta.editing.isEnabled) {
16
- if (!meta.editing.isEditing) {
17
- requestAnimationFrame(() => {
18
- meta.editing.saveChangesIfNeeded();
19
- });
20
- } else if (meta.rowActive.rowActiveIndex === undefined) {
21
- meta.rowActive.setRowActiveIndex(0);
22
- }
23
- }
24
- }, [meta.editing.isEditing]);
25
- }
26
-
27
- export { useEditingStateListener };
28
- //# sourceMappingURL=useEditingStateListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEditingStateListener.js","sources":["../../../../../../../../../src/components/Table3/hooks/listeners/useEditingStateListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as RTable, TableMeta } from '@tanstack/react-table';\n\nexport function useEditingStateListener<TType = unknown>(table: RTable<TType>) {\n const meta = table.options.meta as TableMeta<TType>;\n\n // save when the row changes\n React.useEffect(() => {\n if (meta.editing.isEnabled && meta.editing.isEditing) {\n requestAnimationFrame(() => {\n meta.editing.saveChangesIfNeeded();\n });\n }\n }, [meta.rowActive.rowActiveIndex]);\n\n // save if editing gets toggled off\n React.useEffect(() => {\n if (meta.editing.isEnabled) {\n if (!meta.editing.isEditing) {\n requestAnimationFrame(() => {\n meta.editing.saveChangesIfNeeded();\n });\n } else if (meta.rowActive.rowActiveIndex === undefined) {\n meta.rowActive.setRowActiveIndex(0);\n }\n }\n }, [meta.editing.isEditing]);\n}\n"],"names":["useEditingStateListener","table","meta","options","React","useEffect","editing","isEnabled","isEditing","requestAnimationFrame","saveChangesIfNeeded","rowActive","rowActiveIndex","undefined","setRowActiveIndex"],"mappings":";;SAGgBA,uBAAuBA,CAAkBC,KAAoB;EACzE,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAACD,IAAwB;;EAGnDE,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIH,IAAI,CAACI,OAAO,CAACC,SAAS,IAAIL,IAAI,CAACI,OAAO,CAACE,SAAS,EAAE;MAClDC,qBAAqB,CAAC;QAClBP,IAAI,CAACI,OAAO,CAACI,mBAAmB,EAAE;OACrC,CAAC;;GAET,EAAE,CAACR,IAAI,CAACS,SAAS,CAACC,cAAc,CAAC,CAAC;;EAGnCR,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIH,IAAI,CAACI,OAAO,CAACC,SAAS,EAAE;MACxB,IAAI,CAACL,IAAI,CAACI,OAAO,CAACE,SAAS,EAAE;QACzBC,qBAAqB,CAAC;UAClBP,IAAI,CAACI,OAAO,CAACI,mBAAmB,EAAE;SACrC,CAAC;OACL,MAAM,IAAIR,IAAI,CAACS,SAAS,CAACC,cAAc,KAAKC,SAAS,EAAE;QACpDX,IAAI,CAACS,SAAS,CAACG,iBAAiB,CAAC,CAAC,CAAC;;;GAG9C,EAAE,CAACZ,IAAI,CAACI,OAAO,CAACE,SAAS,CAAC,CAAC;AAChC;;;;"}
@@ -1,24 +0,0 @@
1
- import React__default from 'react';
2
-
3
- function useSettingsStateListener(table, onChangeSettings) {
4
- const meta = table.options.meta;
5
- const state = table.getState();
6
- React__default.useEffect(() => {
7
- let handler;
8
- if (typeof onChangeSettings === 'function') {
9
- handler = setTimeout(() => {
10
- onChangeSettings(meta.getSettings());
11
- }, 250);
12
- }
13
- return () => clearTimeout(handler);
14
- }, [
15
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
16
- meta.columnFreezing.frozenColumnIndex, state.columnOrder, state.columnSizing, state.columnVisibility,
17
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
18
- meta.search.excludeUnmatchedResults, meta.fontSize.size, meta.rowHeight.height,
19
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
20
- meta.printing.isWarningVisibleForLargeDatasets, state.sorting]);
21
- }
22
-
23
- export { useSettingsStateListener };
24
- //# sourceMappingURL=useSettingsStateListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSettingsStateListener.js","sources":["../../../../../../../../../src/components/Table3/hooks/listeners/useSettingsStateListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as RTable, TableMeta } from '@tanstack/react-table';\nimport { Table3SettingsHandler } from '../../types';\n\nexport function useSettingsStateListener<TType = unknown>(\n table: RTable<TType>,\n onChangeSettings: Table3SettingsHandler | undefined\n) {\n const meta = table.options.meta as TableMeta<TType>;\n const state = table.getState();\n\n React.useEffect(() => {\n let handler;\n\n if (typeof onChangeSettings === 'function') {\n handler = setTimeout(() => {\n onChangeSettings(meta.getSettings());\n }, 250);\n }\n\n return () => clearTimeout(handler);\n }, [\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n meta.columnFreezing.frozenColumnIndex,\n state.columnOrder,\n state.columnSizing,\n state.columnVisibility,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n meta.search.excludeUnmatchedResults,\n meta.fontSize.size,\n meta.rowHeight.height,\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n meta.printing.isWarningVisibleForLargeDatasets,\n state.sorting,\n ]);\n}\n"],"names":["useSettingsStateListener","table","onChangeSettings","meta","options","state","getState","React","useEffect","handler","setTimeout","getSettings","clearTimeout","columnFreezing","frozenColumnIndex","columnOrder","columnSizing","columnVisibility","search","excludeUnmatchedResults","fontSize","size","rowHeight","height","printing","isWarningVisibleForLargeDatasets","sorting"],"mappings":";;SAIgBA,wBAAwBA,CACpCC,KAAoB,EACpBC,gBAAmD;EAEnD,MAAMC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAACD,IAAwB;EACnD,MAAME,KAAK,GAAGJ,KAAK,CAACK,QAAQ,EAAE;EAE9BC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIC,OAAO;IAEX,IAAI,OAAOP,gBAAgB,KAAK,UAAU,EAAE;MACxCO,OAAO,GAAGC,UAAU,CAAC;QACjBR,gBAAgB,CAACC,IAAI,CAACQ,WAAW,EAAE,CAAC;OACvC,EAAE,GAAG,CAAC;;IAGX,OAAO,MAAMC,YAAY,CAACH,OAAO,CAAC;GACrC,EAAE;;EAECN,IAAI,CAACU,cAAc,CAACC,iBAAiB,EACrCT,KAAK,CAACU,WAAW,EACjBV,KAAK,CAACW,YAAY,EAClBX,KAAK,CAACY,gBAAgB;;EAEtBd,IAAI,CAACe,MAAM,CAACC,uBAAuB,EACnChB,IAAI,CAACiB,QAAQ,CAACC,IAAI,EAClBlB,IAAI,CAACmB,SAAS,CAACC,MAAM;;EAErBpB,IAAI,CAACqB,QAAQ,CAACC,gCAAgC,EAC9CpB,KAAK,CAACqB,OAAO,CAChB,CAAC;AACN;;;;"}
@@ -1,143 +0,0 @@
1
- import React__default from 'react';
2
- import { createColumnHelper } from '@tanstack/react-table';
3
- import { Header } from '../components/columns/header/Header.js';
4
- import { Footer } from '../components/columns/footer/Footer.js';
5
- import { createRowActionsColumn } from '../components/columns/internal/Actions.js';
6
- import { getFontBasedMinColumnSize } from '../components/columns/styles.js';
7
- import { createRowEditingActionsColumn } from '../components/columns/internal/EditingActions.js';
8
- import { Cell } from '../components/columns/cell/Cell.js';
9
- import { createRowSelectionColumn } from '../components/columns/internal/Selection.js';
10
- import { createRowExpansionColumn } from '../components/columns/internal/Expansion.js';
11
- import { createRowDragColumn } from '../components/columns/internal/Drag.js';
12
- import { Group } from '../components/columns/header/Group.js';
13
-
14
- function getSortingFn(dataType, customFnOrBuiltIn) {
15
- if (typeof customFnOrBuiltIn === 'function') {
16
- return (rowA, rowB, columnId) => customFnOrBuiltIn(rowA.original, rowB.original, columnId);
17
- }
18
- // if a built in is being used, just return that
19
- if (customFnOrBuiltIn) {
20
- return customFnOrBuiltIn;
21
- }
22
- // some times we alias based on the type
23
- if (dataType && dataType !== 'boolean' && dataType !== 'number') {
24
- return dataType;
25
- }
26
- // otherwise fall back to auto
27
- return 'auto';
28
- }
29
- function useConvertChildrenToColumns(props, options, editing) {
30
- var _props$defaultSetting;
31
- const minColumnSize = getFontBasedMinColumnSize(props === null || props === void 0 ? void 0 : (_props$defaultSetting = props.defaultSettings) === null || _props$defaultSetting === void 0 ? void 0 : _props$defaultSetting.fontSize);
32
- // It's important to memoise column definitions, because it prevents columns like "Drag column" to re-render on every state change,
33
- // and break dragging at the moment it happens.
34
- return React__default.useMemo(() => {
35
- var _props$actionsForRow;
36
- const columnHelper = createColumnHelper();
37
- const defaultColumnSizing = {};
38
- const defaultColumnVisibility = {};
39
- const defaultSorting = [];
40
- function processChild(child) {
41
- var _child$type, _child$type2;
42
- if ( /*#__PURE__*/React__default.isValidElement(child) && ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === 'Table3Column' && child.props.accessor) {
43
- var _child$props$enableRe, _child$props$enableFi, _child$props$enableSo, _child$props$enableHi, _child$props$enableOr, _child$props$enablePr, _child$props$enableSe, _child$props$enableTr;
44
- if (child.props.defaultWidth) {
45
- defaultColumnSizing[child.props.accessor] = child.props.defaultWidth === 'grow' ? '1fr' : child.props.defaultWidth;
46
- }
47
- if (child.props.defaultHidden && options.enableColumnHiding) {
48
- defaultColumnVisibility[child.props.accessor] = false;
49
- }
50
- if (child.props.sort !== undefined) {
51
- defaultSorting.push({
52
- id: child.props.accessor,
53
- desc: child.props.sort === 'desc'
54
- });
55
- }
56
- // return regular column definition
57
- return {
58
- accessorKey: child.props.accessor,
59
- id: child.props.accessor,
60
- header: Header,
61
- cell: Cell,
62
- footer: Footer,
63
- // sizing
64
- minSize: minColumnSize,
65
- enableResizing: (_child$props$enableRe = child.props.enableResizing) !== null && _child$props$enableRe !== void 0 ? _child$props$enableRe : true,
66
- // filtering
67
- enableColumnFilter: (_child$props$enableFi = child.props.enableFiltering) !== null && _child$props$enableFi !== void 0 ? _child$props$enableFi : true,
68
- filterFn: 'tacoFilter',
69
- // sorting
70
- enableSorting: (_child$props$enableSo = child.props.enableSorting) !== null && _child$props$enableSo !== void 0 ? _child$props$enableSo : true,
71
- sortingFn: getSortingFn(child.props.dataType, child.props.sortFn),
72
- sortDescFirst: false,
73
- sortUndefined: 1,
74
- // visibility
75
- enableHiding: (_child$props$enableHi = child.props.enableHiding) !== null && _child$props$enableHi !== void 0 ? _child$props$enableHi : true,
76
- // custom options
77
- meta: {
78
- align: child.props.align,
79
- className: child.props.className,
80
- control: child.props.control,
81
- dataType: child.props.dataType,
82
- enableOrdering: (_child$props$enableOr = child.props.enableOrdering) !== null && _child$props$enableOr !== void 0 ? _child$props$enableOr : true,
83
- enablePrinting: (_child$props$enablePr = child.props.enablePrinting) !== null && _child$props$enablePr !== void 0 ? _child$props$enablePr : true,
84
- enableSearch: (_child$props$enableSe = child.props.enableSearch) !== null && _child$props$enableSe !== void 0 ? _child$props$enableSe : true,
85
- enableTruncate: (_child$props$enableTr = child.props.enableTruncate) !== null && _child$props$enableTr !== void 0 ? _child$props$enableTr : false,
86
- filters: child.props.filters,
87
- footer: child.props.footer,
88
- header: child.props.header,
89
- headerClassName: child.props.headerClassName,
90
- menu: child.props.menu,
91
- renderer: child.props.renderer,
92
- tooltip: child.props.tooltip
93
- }
94
- };
95
- } else if ( /*#__PURE__*/React__default.isValidElement(child) && ((_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.displayName) === 'Table3Group' && child.props.children) {
96
- // return column group definition
97
- return columnHelper.group({
98
- id: child.props.id,
99
- header: Group,
100
- columns: processChildren(child.props.children),
101
- meta: {
102
- align: 'center',
103
- enableOrdering: false,
104
- enableSearch: false,
105
- enableTruncate: false,
106
- header: child.props.header
107
- }
108
- });
109
- }
110
- return;
111
- }
112
- function processChildren(children) {
113
- return React__default.Children.toArray(children).map(processChild)
114
- // compiler cannot get filtering out undefined items, so using the type casting here
115
- .filter(child => !!child); // need to remove undefined array items after processing the children
116
- }
117
- const columns = processChildren(props.children);
118
- if (options.enableRowExpansion && props.expandedRowRenderer) {
119
- columns.unshift(columnHelper.display(createRowExpansionColumn(props.expandedRowRenderer)));
120
- }
121
- if (options.enableRowSelection) {
122
- columns.unshift(columnHelper.display(createRowSelectionColumn(!!(options.enableRowDrag && props.onRowDrag), !!props.expandedRowRenderer)));
123
- }
124
- if (options.enableRowDrag && props.onRowDrag) {
125
- columns.unshift(columnHelper.display(createRowDragColumn(props.onRowDrag)));
126
- }
127
- if ((_props$actionsForRow = props.actionsForRow) !== null && _props$actionsForRow !== void 0 && _props$actionsForRow.length) {
128
- columns.push(columnHelper.display(createRowActionsColumn()));
129
- }
130
- if (editing.isEnabled && editing.isEditing) {
131
- columns.push(columnHelper.display(createRowEditingActionsColumn(props.rowIdentifier)));
132
- }
133
- return {
134
- columns,
135
- defaultColumnSizing,
136
- defaultColumnVisibility,
137
- defaultSorting
138
- };
139
- }, [editing.isEditing]);
140
- }
141
-
142
- export { useConvertChildrenToColumns };
143
- //# sourceMappingURL=useConvertChildrenToColumns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConvertChildrenToColumns.js","sources":["../../../../../../../../src/components/Table3/hooks/useConvertChildrenToColumns.tsx"],"sourcesContent":["import React from 'react';\nimport {\n ColumnDef,\n ColumnSizingState,\n createColumnHelper,\n ColumnSort,\n VisibilityState,\n GroupColumnDef,\n} from '@tanstack/react-table';\nimport { Table3ColumnProps, Table3Props, Table3Options, Table3ColumnDataType, Table3SortFn, Table3GroupProps } from '../types';\nimport { Header } from '../components/columns/header/Header';\nimport { Footer } from '../components/columns/footer/Footer';\nimport { Cell } from '../components/columns/cell/Cell';\nimport { createRowSelectionColumn } from '../components/columns/internal/Selection';\nimport { getFontBasedMinColumnSize } from '../components/columns/styles';\nimport { createRowActionsColumn } from '../components/columns/internal/Actions';\nimport { createRowExpansionColumn } from '../components/columns/internal/Expansion';\nimport { createRowDragColumn } from '../components/columns/internal/Drag';\nimport { createRowEditingActionsColumn } from '../components/columns/internal/EditingActions';\nimport { useEditing } from './features/useEditing';\nimport { Group } from '../components/columns/header/Group';\n\nfunction getSortingFn<TType = unknown>(dataType?: Table3ColumnDataType, customFnOrBuiltIn?: Table3SortFn<TType>) {\n if (typeof customFnOrBuiltIn === 'function') {\n return (rowA, rowB, columnId) => customFnOrBuiltIn(rowA.original, rowB.original, columnId);\n }\n\n // if a built in is being used, just return that\n if (customFnOrBuiltIn) {\n return customFnOrBuiltIn;\n }\n\n // some times we alias based on the type\n if (dataType && dataType !== 'boolean' && dataType !== 'number') {\n return dataType;\n }\n\n // otherwise fall back to auto\n return 'auto';\n}\n\nexport function useConvertChildrenToColumns<TType = unknown>(\n props: Table3Props<TType>,\n options: Table3Options,\n editing: ReturnType<typeof useEditing>\n) {\n const minColumnSize = getFontBasedMinColumnSize(props?.defaultSettings?.fontSize);\n // It's important to memoise column definitions, because it prevents columns like \"Drag column\" to re-render on every state change,\n // and break dragging at the moment it happens.\n return React.useMemo(() => {\n const columnHelper = createColumnHelper<TType>();\n\n const defaultColumnSizing: ColumnSizingState = {};\n const defaultColumnVisibility: VisibilityState = {};\n const defaultSorting: ColumnSort[] = [];\n\n function processChild<TType>(child: React.ReactChild | React.ReactFragment | React.ReactPortal) {\n if (\n React.isValidElement<Table3ColumnProps<TType>>(child) &&\n (child as any).type?.displayName === 'Table3Column' &&\n child.props.accessor\n ) {\n if (child.props.defaultWidth) {\n defaultColumnSizing[child.props.accessor as string] =\n child.props.defaultWidth === 'grow' ? '1fr' : (child.props.defaultWidth as any);\n }\n\n if (child.props.defaultHidden && options.enableColumnHiding) {\n defaultColumnVisibility[child.props.accessor as string] = false;\n }\n\n if (child.props.sort !== undefined) {\n defaultSorting.push({\n id: child.props.accessor as string,\n desc: child.props.sort === 'desc',\n });\n }\n\n // return regular column definition\n return {\n accessorKey: child.props.accessor,\n id: child.props.accessor as string,\n header: Header,\n cell: Cell,\n footer: Footer,\n // sizing\n minSize: minColumnSize,\n enableResizing: child.props.enableResizing ?? true,\n // filtering\n enableColumnFilter: child.props.enableFiltering ?? true,\n filterFn: 'tacoFilter' as any,\n // sorting\n enableSorting: child.props.enableSorting ?? true,\n sortingFn: getSortingFn<TType>(child.props.dataType, child.props.sortFn),\n sortDescFirst: false,\n sortUndefined: 1,\n // visibility\n enableHiding: child.props.enableHiding ?? true,\n // custom options\n meta: {\n align: child.props.align,\n className: child.props.className,\n control: child.props.control,\n dataType: child.props.dataType,\n enableOrdering: child.props.enableOrdering ?? true,\n enablePrinting: child.props.enablePrinting ?? true,\n enableSearch: child.props.enableSearch ?? true,\n enableTruncate: child.props.enableTruncate ?? false,\n filters: child.props.filters,\n footer: child.props.footer,\n header: child.props.header,\n headerClassName: child.props.headerClassName,\n menu: child.props.menu,\n renderer: child.props.renderer,\n tooltip: child.props.tooltip,\n },\n };\n } else if (\n React.isValidElement<Table3GroupProps>(child) &&\n (child as any).type?.displayName === 'Table3Group' &&\n child.props.children\n ) {\n // return column group definition\n return columnHelper.group({\n id: child.props.id,\n header: Group,\n columns: processChildren(child.props.children),\n meta: {\n align: 'center',\n enableOrdering: false,\n enableSearch: false,\n enableTruncate: false,\n header: child.props.header,\n },\n });\n }\n return;\n }\n\n function processChildren<TType = unknown>(\n children: (JSX.Element | boolean | null | undefined)[]\n ): Array<ColumnDef<TType> | GroupColumnDef<TType>> {\n return (\n React.Children.toArray(children)\n .map(processChild)\n // compiler cannot get filtering out undefined items, so using the type casting here\n .filter(child => !!child) as Array<ColumnDef<TType> | GroupColumnDef<TType>>\n ); // need to remove undefined array items after processing the children\n }\n\n const columns: ColumnDef<TType>[] = processChildren(props.children);\n\n if (options.enableRowExpansion && props.expandedRowRenderer) {\n columns.unshift(columnHelper.display(createRowExpansionColumn(props.expandedRowRenderer)));\n }\n\n if (options.enableRowSelection) {\n columns.unshift(\n columnHelper.display(\n createRowSelectionColumn<TType>(!!(options.enableRowDrag && props.onRowDrag), !!props.expandedRowRenderer)\n )\n );\n }\n\n if (options.enableRowDrag && props.onRowDrag) {\n columns.unshift(columnHelper.display(createRowDragColumn(props.onRowDrag)));\n }\n\n if (props.actionsForRow?.length) {\n columns.push(columnHelper.display(createRowActionsColumn<TType>()));\n }\n\n if (editing.isEnabled && editing.isEditing) {\n columns.push(columnHelper.display(createRowEditingActionsColumn<TType>(props.rowIdentifier)));\n }\n\n return { columns, defaultColumnSizing, defaultColumnVisibility, defaultSorting };\n }, [editing.isEditing]);\n}\n"],"names":["getSortingFn","dataType","customFnOrBuiltIn","rowA","rowB","columnId","original","useConvertChildrenToColumns","props","options","editing","minColumnSize","getFontBasedMinColumnSize","_props$defaultSetting","defaultSettings","fontSize","React","useMemo","columnHelper","createColumnHelper","defaultColumnSizing","defaultColumnVisibility","defaultSorting","processChild","child","isValidElement","_child$type","type","displayName","accessor","_child$props$enableRe","_child$props$enableFi","_child$props$enableSo","_child$props$enableHi","_child$props$enableOr","_child$props$enablePr","_child$props$enableSe","_child$props$enableTr","defaultWidth","defaultHidden","enableColumnHiding","sort","undefined","push","id","desc","accessorKey","header","Header","cell","Cell","footer","Footer","minSize","enableResizing","enableColumnFilter","enableFiltering","filterFn","enableSorting","sortingFn","sortFn","sortDescFirst","sortUndefined","enableHiding","meta","align","className","control","enableOrdering","enablePrinting","enableSearch","enableTruncate","filters","headerClassName","menu","renderer","tooltip","_child$type2","children","group","Group","columns","processChildren","Children","toArray","map","filter","enableRowExpansion","expandedRowRenderer","unshift","display","createRowExpansionColumn","enableRowSelection","createRowSelectionColumn","enableRowDrag","onRowDrag","createRowDragColumn","_props$actionsForRow","actionsForRow","length","createRowActionsColumn","isEnabled","isEditing","createRowEditingActionsColumn","rowIdentifier"],"mappings":"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"}
@@ -1,66 +0,0 @@
1
- import React__default from 'react';
2
- import { COLUMN_ID } from '../components/columns/internal/Actions.js';
3
- import { isInternalColumn } from '../util/columns.js';
4
- import { getFontBasedMinColumnSize, PRINT_MIN_COLUMN_SIZE } from '../components/columns/styles.js';
5
-
6
- const useCssGrid = (table, isPrintTable = false, actionsForRowLength = 0, fontSize) => {
7
- const allVisibleColumns = table.getVisibleLeafColumns();
8
- const columnSizing = table.getState().columnSizing;
9
- const rowsLength = table.getRowModel().rows.length;
10
- const expandedRowsLength = Object.keys(table.getState().expanded).length;
11
- const length = rowsLength + expandedRowsLength;
12
- const minColumnSize = getFontBasedMinColumnSize(fontSize);
13
- const gridTemplateColumns = React__default.useMemo(() => {
14
- return allVisibleColumns.reduce((accum, column, index) => {
15
- let size;
16
- const isLastColumn = index === allVisibleColumns.length - 1;
17
- // column has a getSize function, but it always returns a default value (150), and we want the
18
- // first render to use auto layout - so we get the size directly from table state where it is undefined
19
- const width = columnSizing[column.id];
20
- const isColumnInternal = isInternalColumn(column.id);
21
- if (isPrintTable) {
22
- const maxWidth = isColumnInternal ? `${column.getSize()}px` : '1fr';
23
- size = `minmax(${PRINT_MIN_COLUMN_SIZE}px, ${maxWidth})`;
24
- } else if (isColumnInternal) {
25
- if (column.id === COLUMN_ID) {
26
- const minWidth = actionsForRowLength * 32 + 8 /* button margins l+r */ + 8; /* cell padding l+r */
27
- size = `minmax(${minWidth}px, auto)`;
28
- } else {
29
- // getSize method is used instead of columnSizing state because columnSizing state doesn't have
30
- // sizes of internal columns.
31
- size = `${column.getSize()}px`;
32
- }
33
- } else if (width !== undefined) {
34
- if (width === '1fr') {
35
- size = 'minmax(max-content, 1fr)';
36
- } else if (isLastColumn) {
37
- size = `minmax(${width}px, auto)`;
38
- } else if (width < minColumnSize) {
39
- // the react-table getResizeHandler function does not respect the minSize property on columns, it is possible
40
- // to go below the minSize - so we have to prevent it entirely on the grid layout
41
- size = `${minColumnSize}px`;
42
- } else {
43
- size = `${width}px`;
44
- }
45
- } else {
46
- size = 'minmax(max-content, auto)';
47
- }
48
- return `${accum} ${size}`.trim();
49
- }, '');
50
- }, [allVisibleColumns, columnSizing, minColumnSize]);
51
- const gridTemplateRows = React__default.useMemo(() => {
52
- // 1fr makes sure that there is always a free space between the rows and footer when table height exceeds the
53
- // cumulative height of all rows
54
- return `min-content repeat(${length}, min-content) 1fr min-content`;
55
- }, [length]);
56
- const style = {
57
- gridTemplateColumns,
58
- gridTemplateRows
59
- };
60
- return {
61
- style
62
- };
63
- };
64
-
65
- export { useCssGrid };
66
- //# sourceMappingURL=useCssGrid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCssGrid.js","sources":["../../../../../../../../src/components/Table3/hooks/useCssGrid.ts"],"sourcesContent":["import React from 'react';\nimport { Table as RTable } from '@tanstack/react-table';\n\nimport { isInternalColumn } from '../util/columns';\nimport { getFontBasedMinColumnSize, PRINT_MIN_COLUMN_SIZE } from '../components/columns/styles';\nimport { COLUMN_ID as ACTIONS_COLUMN_ID } from '../components/columns/internal/Actions';\nimport { FontSize } from '../../../types';\n\nexport const useCssGrid = <TType = unknown>(\n table: RTable<TType>,\n isPrintTable = false,\n actionsForRowLength = 0,\n fontSize: FontSize\n) => {\n const allVisibleColumns = table.getVisibleLeafColumns();\n const columnSizing = table.getState().columnSizing;\n const rowsLength = table.getRowModel().rows.length;\n const expandedRowsLength = Object.keys(table.getState().expanded).length;\n const length = rowsLength + expandedRowsLength;\n const minColumnSize = getFontBasedMinColumnSize(fontSize);\n const gridTemplateColumns = React.useMemo(() => {\n return allVisibleColumns.reduce((accum, column, index) => {\n let size;\n const isLastColumn = index === allVisibleColumns.length - 1;\n // column has a getSize function, but it always returns a default value (150), and we want the\n // first render to use auto layout - so we get the size directly from table state where it is undefined\n const width = columnSizing[column.id] as number | '1fr';\n const isColumnInternal = isInternalColumn(column.id);\n\n if (isPrintTable) {\n const maxWidth = isColumnInternal ? `${column.getSize()}px` : '1fr';\n\n size = `minmax(${PRINT_MIN_COLUMN_SIZE}px, ${maxWidth})`;\n } else if (isColumnInternal) {\n if (column.id === ACTIONS_COLUMN_ID) {\n const minWidth = actionsForRowLength * 32 + 8 /* button margins l+r */ + 8; /* cell padding l+r */\n size = `minmax(${minWidth}px, auto)`;\n } else {\n // getSize method is used instead of columnSizing state because columnSizing state doesn't have\n // sizes of internal columns.\n size = `${column.getSize()}px`;\n }\n } else if (width !== undefined) {\n if (width === '1fr') {\n size = 'minmax(max-content, 1fr)';\n } else if (isLastColumn) {\n size = `minmax(${width}px, auto)`;\n } else if (width < minColumnSize) {\n // the react-table getResizeHandler function does not respect the minSize property on columns, it is possible\n // to go below the minSize - so we have to prevent it entirely on the grid layout\n size = `${minColumnSize}px`;\n } else {\n size = `${width}px`;\n }\n } else {\n size = 'minmax(max-content, auto)';\n }\n\n return `${accum} ${size}`.trim();\n }, '');\n }, [allVisibleColumns, columnSizing, minColumnSize]);\n\n const gridTemplateRows = React.useMemo(() => {\n // 1fr makes sure that there is always a free space between the rows and footer when table height exceeds the\n // cumulative height of all rows\n return `min-content repeat(${length}, min-content) 1fr min-content`;\n }, [length]);\n\n const style: React.CSSProperties = {\n gridTemplateColumns,\n gridTemplateRows,\n };\n\n return { style };\n};\n"],"names":["useCssGrid","table","isPrintTable","actionsForRowLength","fontSize","allVisibleColumns","getVisibleLeafColumns","columnSizing","getState","rowsLength","getRowModel","rows","length","expandedRowsLength","Object","keys","expanded","minColumnSize","getFontBasedMinColumnSize","gridTemplateColumns","React","useMemo","reduce","accum","column","index","size","isLastColumn","width","id","isColumnInternal","isInternalColumn","maxWidth","getSize","PRINT_MIN_COLUMN_SIZE","ACTIONS_COLUMN_ID","minWidth","undefined","trim","gridTemplateRows","style"],"mappings":";;;;;MAQaA,UAAU,GAAGA,CACtBC,KAAoB,EACpBC,YAAY,GAAG,KAAK,EACpBC,mBAAmB,GAAG,CAAC,EACvBC,QAAkB;EAElB,MAAMC,iBAAiB,GAAGJ,KAAK,CAACK,qBAAqB,EAAE;EACvD,MAAMC,YAAY,GAAGN,KAAK,CAACO,QAAQ,EAAE,CAACD,YAAY;EAClD,MAAME,UAAU,GAAGR,KAAK,CAACS,WAAW,EAAE,CAACC,IAAI,CAACC,MAAM;EAClD,MAAMC,kBAAkB,GAAGC,MAAM,CAACC,IAAI,CAACd,KAAK,CAACO,QAAQ,EAAE,CAACQ,QAAQ,CAAC,CAACJ,MAAM;EACxE,MAAMA,MAAM,GAAGH,UAAU,GAAGI,kBAAkB;EAC9C,MAAMI,aAAa,GAAGC,yBAAyB,CAACd,QAAQ,CAAC;EACzD,MAAMe,mBAAmB,GAAGC,cAAK,CAACC,OAAO,CAAC;IACtC,OAAOhB,iBAAiB,CAACiB,MAAM,CAAC,CAACC,KAAK,EAAEC,MAAM,EAAEC,KAAK;MACjD,IAAIC,IAAI;MACR,MAAMC,YAAY,GAAGF,KAAK,KAAKpB,iBAAiB,CAACO,MAAM,GAAG,CAAC;;;MAG3D,MAAMgB,KAAK,GAAGrB,YAAY,CAACiB,MAAM,CAACK,EAAE,CAAmB;MACvD,MAAMC,gBAAgB,GAAGC,gBAAgB,CAACP,MAAM,CAACK,EAAE,CAAC;MAEpD,IAAI3B,YAAY,EAAE;QACd,MAAM8B,QAAQ,GAAGF,gBAAgB,MAAMN,MAAM,CAACS,OAAO,MAAM,GAAG,KAAK;QAEnEP,IAAI,aAAaQ,4BAA4BF,WAAW;OAC3D,MAAM,IAAIF,gBAAgB,EAAE;QACzB,IAAIN,MAAM,CAACK,EAAE,KAAKM,SAAiB,EAAE;UACjC,MAAMC,QAAQ,GAAGjC,mBAAmB,GAAG,EAAE,GAAG,CAAC,4BAA4B,CAAC,CAAC;UAC3EuB,IAAI,aAAaU,mBAAmB;SACvC,MAAM;;;UAGHV,IAAI,MAAMF,MAAM,CAACS,OAAO,MAAM;;OAErC,MAAM,IAAIL,KAAK,KAAKS,SAAS,EAAE;QAC5B,IAAIT,KAAK,KAAK,KAAK,EAAE;UACjBF,IAAI,GAAG,0BAA0B;SACpC,MAAM,IAAIC,YAAY,EAAE;UACrBD,IAAI,aAAaE,gBAAgB;SACpC,MAAM,IAAIA,KAAK,GAAGX,aAAa,EAAE;;;UAG9BS,IAAI,MAAMT,iBAAiB;SAC9B,MAAM;UACHS,IAAI,MAAME,SAAS;;OAE1B,MAAM;QACHF,IAAI,GAAG,2BAA2B;;MAGtC,UAAUH,SAASG,MAAM,CAACY,IAAI,EAAE;KACnC,EAAE,EAAE,CAAC;GACT,EAAE,CAACjC,iBAAiB,EAAEE,YAAY,EAAEU,aAAa,CAAC,CAAC;EAEpD,MAAMsB,gBAAgB,GAAGnB,cAAK,CAACC,OAAO,CAAC;;;IAGnC,6BAA6BT,sCAAsC;GACtE,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,MAAM4B,KAAK,GAAwB;IAC/BrB,mBAAmB;IACnBoB;GACH;EAED,OAAO;IAAEC;GAAO;AACpB;;;;"}
@@ -1,74 +0,0 @@
1
- import { FontSizes } from '../../../types.js';
2
-
3
- // we cannot just use a fixed height because our rows need to grow in height (images, edit mode validation etc)
4
- const getCellHeightPadding = (height, fontSize) => {
5
- // TODO: can we get the rem values from tailwind
6
- switch (height) {
7
- case 'short':
8
- {
9
- switch (fontSize) {
10
- case FontSizes.small:
11
- return '8px';
12
- default:
13
- return '6px';
14
- // py-1.5
15
- }
16
- }
17
- case 'tall':
18
- {
19
- switch (fontSize) {
20
- case FontSizes.small:
21
- return '16px';
22
- case FontSizes.large:
23
- return '12px';
24
- default:
25
- return '14px';
26
- }
27
- }
28
- case 'extra-tall':
29
- {
30
- switch (fontSize) {
31
- case FontSizes.small:
32
- return '22px';
33
- case FontSizes.large:
34
- return '18px';
35
- default:
36
- return '20px';
37
- }
38
- }
39
- default:
40
- {
41
- switch (fontSize) {
42
- case FontSizes.small:
43
- return '12px';
44
- case FontSizes.large:
45
- return '8px';
46
- default:
47
- return '10px';
48
- }
49
- }
50
- }
51
- };
52
- const getCellWidthPadding = fontSize => {
53
- switch (fontSize) {
54
- case FontSizes.small:
55
- return '8px';
56
- case FontSizes.medium:
57
- return '12px';
58
- default:
59
- return '16px';
60
- // py-1.5
61
- }
62
- };
63
- const useCssVars = (height, fontSize) => {
64
- const style = {
65
- '--table3-cell-padding-x': getCellWidthPadding(fontSize),
66
- '--table3-cell-padding-y': getCellHeightPadding(height, fontSize)
67
- };
68
- return {
69
- style
70
- };
71
- };
72
-
73
- export { useCssVars };
74
- //# sourceMappingURL=useCssVars.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCssVars.js","sources":["../../../../../../../../src/components/Table3/hooks/useCssVars.ts"],"sourcesContent":["import { Table3RowHeight } from '../types';\nimport { FontSize, FontSizes } from '../../../types';\n\n// we cannot just use a fixed height because our rows need to grow in height (images, edit mode validation etc)\nconst getCellHeightPadding = (height: Table3RowHeight, fontSize: FontSize) => {\n // TODO: can we get the rem values from tailwind\n switch (height) {\n case 'short': {\n switch (fontSize) {\n case FontSizes.small:\n return '8px';\n\n default:\n return '6px'; // py-1.5\n }\n }\n\n case 'tall': {\n switch (fontSize) {\n case FontSizes.small:\n return '16px';\n\n case FontSizes.large:\n return '12px';\n\n default:\n return '14px';\n }\n }\n\n case 'extra-tall': {\n switch (fontSize) {\n case FontSizes.small:\n return '22px';\n\n case FontSizes.large:\n return '18px';\n\n default:\n return '20px';\n }\n }\n\n default: {\n switch (fontSize) {\n case FontSizes.small:\n return '12px';\n\n case FontSizes.large:\n return '8px';\n\n default:\n return '10px';\n }\n }\n }\n};\n\nconst getCellWidthPadding = (fontSize: FontSize) => {\n switch (fontSize) {\n case FontSizes.small:\n return '8px';\n\n case FontSizes.medium:\n return '12px';\n\n default:\n return '16px'; // py-1.5\n }\n};\n\nexport const useCssVars = (height: Table3RowHeight, fontSize: FontSize) => {\n const style = {\n '--table3-cell-padding-x': getCellWidthPadding(fontSize),\n '--table3-cell-padding-y': getCellHeightPadding(height, fontSize),\n };\n\n return { style };\n};\n"],"names":["getCellHeightPadding","height","fontSize","FontSizes","small","large","getCellWidthPadding","medium","useCssVars","style"],"mappings":";;AAGA;AACA,MAAMA,oBAAoB,GAAGA,CAACC,MAAuB,EAAEC,QAAkB;;EAErE,QAAQD,MAAM;IACV,KAAK,OAAO;MAAE;QACV,QAAQC,QAAQ;UACZ,KAAKC,SAAS,CAACC,KAAK;YAChB,OAAO,KAAK;UAEhB;YACI,OAAO,KAAK;;;;IAIxB,KAAK,MAAM;MAAE;QACT,QAAQF,QAAQ;UACZ,KAAKC,SAAS,CAACC,KAAK;YAChB,OAAO,MAAM;UAEjB,KAAKD,SAAS,CAACE,KAAK;YAChB,OAAO,MAAM;UAEjB;YACI,OAAO,MAAM;;;IAIzB,KAAK,YAAY;MAAE;QACf,QAAQH,QAAQ;UACZ,KAAKC,SAAS,CAACC,KAAK;YAChB,OAAO,MAAM;UAEjB,KAAKD,SAAS,CAACE,KAAK;YAChB,OAAO,MAAM;UAEjB;YACI,OAAO,MAAM;;;IAIzB;MAAS;QACL,QAAQH,QAAQ;UACZ,KAAKC,SAAS,CAACC,KAAK;YAChB,OAAO,MAAM;UAEjB,KAAKD,SAAS,CAACE,KAAK;YAChB,OAAO,KAAK;UAEhB;YACI,OAAO,MAAM;;;;AAIjC,CAAC;AAED,MAAMC,mBAAmB,GAAIJ,QAAkB;EAC3C,QAAQA,QAAQ;IACZ,KAAKC,SAAS,CAACC,KAAK;MAChB,OAAO,KAAK;IAEhB,KAAKD,SAAS,CAACI,MAAM;MACjB,OAAO,MAAM;IAEjB;MACI,OAAO,MAAM;;;AAEzB,CAAC;MAEYC,UAAU,GAAGA,CAACP,MAAuB,EAAEC,QAAkB;EAClE,MAAMO,KAAK,GAAG;IACV,yBAAyB,EAAEH,mBAAmB,CAACJ,QAAQ,CAAC;IACxD,yBAAyB,EAAEF,oBAAoB,CAACC,MAAM,EAAEC,QAAQ;GACnE;EAED,OAAO;IAAEO;GAAO;AACpB;;;;"}