@economic/taco 2.25.1-alpha.13 → 2.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1063) hide show
  1. package/dist/components/Provider/Localization.d.ts +392 -0
  2. package/dist/components/Report/Report.d.ts +23 -0
  3. package/dist/components/Report/components/Body/Body.d.ts +8 -0
  4. package/dist/components/Report/components/Body/EmptyStateBody.d.ts +7 -0
  5. package/dist/components/Report/components/Cell/Cell.d.ts +8 -0
  6. package/dist/components/Report/components/Cell/DisplayCell.d.ts +8 -0
  7. package/dist/components/Report/components/Cell/GroupedCell.d.ts +8 -0
  8. package/dist/components/Report/components/Cell/util.d.ts +18 -0
  9. package/dist/components/Report/components/Header/Header.d.ts +40 -0
  10. package/dist/components/Report/components/Header/components/Goto.d.ts +6 -0
  11. package/dist/components/Report/components/Header/components/Menu.d.ts +20 -0
  12. package/dist/components/Report/components/Header/components/Resizer.d.ts +12 -0
  13. package/dist/components/Report/components/Header/components/SortIndicator.d.ts +15 -0
  14. package/dist/components/Report/components/Header/util.d.ts +4 -0
  15. package/dist/components/Report/components/Internal/Actions.d.ts +13 -0
  16. package/dist/components/Report/components/Internal/Expansion.d.ts +4 -0
  17. package/dist/components/Report/components/Internal/Selection.d.ts +4 -0
  18. package/dist/components/Report/components/Row/DisplayRow.d.ts +9 -0
  19. package/dist/components/Report/components/Row/Row.d.ts +9 -0
  20. package/dist/components/Report/components/Row/RowContext.d.ts +8 -0
  21. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +15 -0
  22. package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
  23. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +12 -0
  24. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
  25. package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
  26. package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +4 -0
  27. package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +9 -0
  28. package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
  29. package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
  30. package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +8 -0
  31. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +2 -0
  32. package/dist/components/Report/styles/useCssGridStylesheet.d.ts +3 -0
  33. package/dist/components/Report/styles/util.d.ts +3 -0
  34. package/dist/components/Report/types.d.ts +20 -0
  35. package/dist/components/Report/useReport.d.ts +9 -0
  36. package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +4 -0
  37. package/dist/components/Report/util/useTableRenderer.d.ts +9 -0
  38. package/dist/components/Table/Table.d.ts +14 -0
  39. package/dist/components/Table3/Table3.d.ts +19 -0
  40. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +10 -0
  41. package/dist/components/Table3/components/columns/cell/Cell.d.ts +6 -0
  42. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +25 -0
  43. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +14 -0
  44. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +21 -0
  45. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +2 -0
  46. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +22 -0
  47. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +2 -0
  48. package/dist/components/Table3/components/columns/footer/Footer.d.ts +14 -0
  49. package/dist/components/Table3/components/columns/footer/Summary.d.ts +8 -0
  50. package/dist/components/Table3/components/columns/header/Goto.d.ts +6 -0
  51. package/dist/components/Table3/components/columns/header/Group.d.ts +15 -0
  52. package/dist/components/Table3/components/columns/header/Header.d.ts +37 -0
  53. package/dist/components/Table3/components/columns/header/Menu.d.ts +20 -0
  54. package/dist/components/Table3/components/columns/header/Resizer.d.ts +7 -0
  55. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +12 -0
  56. package/dist/components/Table3/components/columns/internal/Actions.d.ts +3 -0
  57. package/dist/components/Table3/components/columns/internal/Drag.d.ts +4 -0
  58. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +8 -0
  59. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +4 -0
  60. package/dist/components/Table3/components/columns/internal/Selection.d.ts +3 -0
  61. package/dist/components/Table3/components/columns/styles.d.ts +5 -0
  62. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +8 -0
  63. package/dist/components/Table3/components/rows/Row.d.ts +26 -0
  64. package/dist/components/Table3/components/rows/RowContext.d.ts +10 -0
  65. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +10 -0
  66. package/dist/components/Table3/components/rows/styles.d.ts +6 -0
  67. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +7 -0
  68. package/dist/components/Table3/components/toolbar/EditButton.d.ts +7 -0
  69. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +7 -0
  70. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +12 -0
  71. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +12 -0
  72. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +7 -0
  73. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +10 -0
  74. package/dist/components/Table3/components/toolbar/FontSize.d.ts +7 -0
  75. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +8 -0
  76. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +8 -0
  77. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +9 -0
  78. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +1 -0
  79. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +7 -0
  80. package/dist/components/Table3/components/toolbar/Search.d.ts +8 -0
  81. package/dist/components/Table3/components/toolbar/Settings.d.ts +8 -0
  82. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +13 -0
  83. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +13 -0
  84. package/dist/components/Table3/hooks/features/useEditing.d.ts +31 -0
  85. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +3 -0
  86. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +5 -0
  87. package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
  88. package/dist/components/Table3/hooks/features/useRowActions.d.ts +5 -0
  89. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +6 -0
  90. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +5 -0
  91. package/dist/components/Table3/hooks/features/useSearch.d.ts +16 -0
  92. package/dist/components/Table3/hooks/features/useSettings.d.ts +3 -0
  93. package/dist/components/Table3/hooks/features/useValidation.d.ts +13 -0
  94. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +2 -0
  95. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +3 -0
  96. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +9 -0
  97. package/dist/components/Table3/hooks/useCssGrid.d.ts +6 -0
  98. package/dist/components/Table3/hooks/useCssVars.d.ts +8 -0
  99. package/dist/components/Table3/hooks/useTable.d.ts +74 -0
  100. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +22 -0
  101. package/dist/components/Table3/hooks/useTablePreset.d.ts +2 -0
  102. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +4 -0
  103. package/dist/components/Table3/strategies/index.d.ts +4 -0
  104. package/dist/components/Table3/strategies/virtualised.d.ts +4 -0
  105. package/dist/components/Table3/types.d.ts +379 -0
  106. package/dist/components/Table3/util/columns.d.ts +8 -0
  107. package/dist/components/Table3/util/editing.d.ts +10 -0
  108. package/dist/components/Table3/util/filtering.d.ts +3 -0
  109. package/dist/components/Table3/util/scrolling.d.ts +2 -0
  110. package/dist/esm/index.css +515 -208
  111. package/dist/esm/packages/taco/src/components/Field/Field.js +0 -1
  112. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  113. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +6 -5
  114. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  115. package/dist/esm/packages/taco/src/components/Provider/Localization.js +43 -46
  116. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  117. package/dist/esm/packages/taco/src/components/Report/Report.js +51 -8
  118. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  119. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +62 -0
  120. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +1 -0
  121. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +1 -0
  122. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +1 -0
  123. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +32 -0
  124. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +1 -0
  125. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js +23 -0
  126. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +1 -0
  127. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +58 -0
  128. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +1 -0
  129. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +73 -0
  130. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +1 -0
  131. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +1 -0
  132. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +39 -0
  133. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +1 -0
  134. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +211 -0
  135. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +1 -0
  136. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +28 -0
  137. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +1 -0
  138. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +159 -0
  139. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +1 -0
  140. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js +60 -0
  141. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +1 -0
  142. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js +41 -0
  143. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +1 -0
  144. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +24 -0
  145. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +1 -0
  146. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js +90 -0
  147. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +1 -0
  148. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js +59 -0
  149. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +1 -0
  150. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js +154 -0
  151. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +1 -0
  152. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js +102 -0
  153. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +1 -0
  154. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js +24 -0
  155. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +1 -0
  156. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js +10 -0
  157. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +1 -0
  158. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +1 -0
  159. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +63 -0
  160. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +1 -0
  161. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +62 -0
  162. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +1 -0
  163. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +129 -0
  164. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  165. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js +102 -0
  166. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  167. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js +50 -0
  168. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  169. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js +110 -0
  170. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  171. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +128 -0
  172. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  173. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +1 -0
  174. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js +125 -0
  175. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +1 -0
  176. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +88 -0
  177. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  178. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js +95 -0
  179. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +1 -0
  180. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +105 -0
  181. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  182. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +103 -0
  183. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +1 -0
  184. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js +24 -0
  185. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +1 -0
  186. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js +44 -0
  187. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +1 -0
  188. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +58 -0
  189. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +1 -0
  190. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +20 -0
  191. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +1 -0
  192. package/dist/esm/packages/taco/src/components/Report/styles/util.js +61 -0
  193. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +1 -0
  194. package/dist/esm/packages/taco/src/components/Report/useReport.js +45 -8
  195. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  196. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +1 -0
  197. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js +32 -0
  198. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +1 -0
  199. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js +162 -0
  200. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +1 -0
  201. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  202. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  203. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  204. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  205. package/dist/esm/packages/taco/src/components/Table3/Table3.js +218 -30
  206. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  207. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +154 -0
  208. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +1 -0
  209. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +84 -0
  210. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +1 -0
  211. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +84 -0
  212. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -0
  213. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +212 -0
  214. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -0
  215. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +194 -0
  216. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -0
  217. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +41 -0
  218. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -0
  219. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +88 -0
  220. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -0
  221. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +144 -0
  222. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -0
  223. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +50 -0
  224. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -0
  225. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +41 -0
  226. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +1 -0
  227. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +28 -0
  228. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +1 -0
  229. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +74 -0
  230. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -0
  231. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +186 -0
  232. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -0
  233. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +206 -0
  234. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -0
  235. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +42 -0
  236. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -0
  237. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +38 -0
  238. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +1 -0
  239. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +129 -0
  240. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -0
  241. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +86 -0
  242. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +1 -0
  243. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +174 -0
  244. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -0
  245. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +104 -0
  246. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +1 -0
  247. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +187 -0
  248. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -0
  249. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +19 -0
  250. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -0
  251. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +27 -0
  252. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +1 -0
  253. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +327 -0
  254. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -0
  255. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +14 -0
  256. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +1 -0
  257. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +43 -0
  258. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +1 -0
  259. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +9 -0
  260. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +1 -0
  261. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +109 -0
  262. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -0
  263. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +29 -0
  264. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +1 -0
  265. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +164 -0
  266. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -0
  267. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +102 -0
  268. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +1 -0
  269. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +50 -0
  270. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +1 -0
  271. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +111 -0
  272. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +1 -0
  273. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +118 -0
  274. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -0
  275. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +26 -0
  276. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -0
  277. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +211 -0
  278. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +1 -0
  279. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +224 -0
  280. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +1 -0
  281. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +60 -0
  282. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +1 -0
  283. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +97 -0
  284. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +1 -0
  285. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +33 -0
  286. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -0
  287. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +238 -0
  288. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +1 -0
  289. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +65 -0
  290. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +1 -0
  291. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +64 -0
  292. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +1 -0
  293. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +95 -0
  294. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +1 -0
  295. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +299 -0
  296. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +1 -0
  297. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +24 -0
  298. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +1 -0
  299. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +12 -0
  300. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +1 -0
  301. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +14 -0
  302. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
  303. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +10 -0
  304. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +1 -0
  305. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +13 -0
  306. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +1 -0
  307. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +9 -0
  308. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +1 -0
  309. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +29 -0
  310. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +1 -0
  311. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +23 -0
  312. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +1 -0
  313. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +178 -0
  314. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +1 -0
  315. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +28 -0
  316. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +1 -0
  317. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +24 -0
  318. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +1 -0
  319. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +143 -0
  320. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +1 -0
  321. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +66 -0
  322. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +1 -0
  323. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +74 -0
  324. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -0
  325. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +234 -0
  326. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -0
  327. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +130 -0
  328. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +1 -0
  329. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +122 -0
  330. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +1 -0
  331. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +19 -0
  332. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +1 -0
  333. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +8 -0
  334. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +1 -0
  335. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +117 -0
  336. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +1 -0
  337. package/dist/esm/packages/taco/src/components/Table3/types.js +20 -0
  338. package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -0
  339. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +60 -0
  340. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +1 -0
  341. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +38 -46
  342. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  343. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +120 -0
  344. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +1 -0
  345. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +53 -0
  346. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +1 -0
  347. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +15 -0
  348. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +1 -0
  349. package/dist/esm/packages/taco/src/index.js +1 -1
  350. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +0 -2
  351. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  352. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  353. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +1 -0
  354. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +14 -4
  355. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  356. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +3 -1
  357. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  358. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +9 -13
  359. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  360. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +7 -13
  361. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  362. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +2 -1
  363. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  364. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +2 -5
  365. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  366. package/dist/esm/packages/taco/src/utils/dom.js +3 -19
  367. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  368. package/dist/esm/packages/taco/src/utils/input.js +14 -1
  369. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  370. package/dist/index.css +515 -208
  371. package/dist/index.d.ts +73 -0
  372. package/dist/primitives/Table/types.d.ts +214 -0
  373. package/dist/primitives/Table/useTableManager/features/useTableRowActive.d.ts +11 -0
  374. package/dist/primitives/Table/useTableManager/types.d.ts +13 -0
  375. package/dist/primitives/Table/useTableManager/useTableManager.d.ts +59 -0
  376. package/dist/primitives/Table/useTableManager/util/settings.d.ts +12 -0
  377. package/dist/taco.cjs.development.js +8978 -4337
  378. package/dist/taco.cjs.development.js.map +1 -1
  379. package/dist/taco.cjs.production.min.js +1 -1
  380. package/dist/taco.cjs.production.min.js.map +1 -1
  381. package/dist/utils/dom.d.ts +7 -0
  382. package/package.json +2 -3
  383. package/types.json +51755 -21592
  384. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +0 -39
  385. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +0 -1
  386. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +0 -85
  387. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +0 -1
  388. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +0 -71
  389. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +0 -1
  390. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +0 -216
  391. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +0 -1
  392. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +0 -14
  393. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +0 -1
  394. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +0 -45
  395. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +0 -1
  396. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +0 -62
  397. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +0 -1
  398. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +0 -134
  399. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +0 -1
  400. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +0 -54
  401. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +0 -1
  402. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +0 -41
  403. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +0 -1
  404. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +0 -49
  405. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +0 -1
  406. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +0 -349
  407. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +0 -1
  408. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +0 -49
  409. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +0 -1
  410. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +0 -36
  411. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +0 -1
  412. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +0 -52
  413. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +0 -1
  414. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +0 -72
  415. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +0 -1
  416. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +0 -1
  417. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +0 -1
  418. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +0 -25
  419. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +0 -1
  420. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +0 -60
  421. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +0 -1
  422. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +0 -33
  423. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +0 -1
  424. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +0 -74
  425. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +0 -1
  426. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +0 -101
  427. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +0 -1
  428. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +0 -73
  429. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +0 -1
  430. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +0 -71
  431. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +0 -1
  432. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +0 -167
  433. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +0 -1
  434. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +0 -1
  435. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +0 -39
  436. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +0 -1
  437. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +0 -216
  438. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +0 -1
  439. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +0 -28
  440. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +0 -1
  441. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +0 -158
  442. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +0 -1
  443. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +0 -60
  444. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +0 -1
  445. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +0 -41
  446. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +0 -1
  447. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +0 -24
  448. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +0 -1
  449. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +0 -120
  450. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +0 -1
  451. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +0 -1
  452. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +0 -30
  453. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +0 -1
  454. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +0 -9
  455. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +0 -1
  456. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +0 -53
  457. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +0 -1
  458. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +0 -62
  459. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +0 -1
  460. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +0 -129
  461. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  462. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +0 -102
  463. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  464. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +0 -50
  465. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  466. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +0 -110
  467. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  468. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +0 -128
  469. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  470. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +0 -1
  471. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +0 -125
  472. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +0 -1
  473. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +0 -88
  474. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  475. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +0 -96
  476. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +0 -1
  477. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +0 -119
  478. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  479. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +0 -103
  480. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +0 -1
  481. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js +0 -77
  482. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +0 -1
  483. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js +0 -44
  484. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +0 -1
  485. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js +0 -58
  486. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +0 -1
  487. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +0 -30
  488. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +0 -1
  489. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +0 -1
  490. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +0 -164
  491. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +0 -1
  492. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +0 -24
  493. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +0 -1
  494. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +0 -50
  495. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +0 -1
  496. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +0 -1
  497. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +0 -14
  498. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +0 -1
  499. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +0 -9
  500. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +0 -1
  501. package/dist/packages/taco/src/components/Provider/Localization.d.ts +0 -398
  502. package/dist/packages/taco/src/components/Report/Report.d.ts +0 -10
  503. package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +0 -19
  504. package/dist/packages/taco/src/components/Report/useReport.d.ts +0 -23
  505. package/dist/packages/taco/src/components/Table/Table.d.ts +0 -14
  506. package/dist/packages/taco/src/components/Table3/Table3.d.ts +0 -20
  507. package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +0 -23
  508. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +0 -3
  509. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +0 -9
  510. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +0 -10
  511. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +0 -3
  512. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +0 -3
  513. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +0 -3
  514. package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +0 -10
  515. package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +0 -12
  516. package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +0 -8
  517. package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +0 -3
  518. package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +0 -8
  519. package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +0 -46
  520. package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +0 -2
  521. package/dist/packages/taco/src/components/Table3/types.d.ts +0 -54
  522. package/dist/packages/taco/src/components/Table3/useTable3.d.ts +0 -30
  523. package/dist/packages/taco/src/components/Table3/util/editing.d.ts +0 -2
  524. package/dist/packages/taco/src/index.d.ts +0 -74
  525. package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +0 -19
  526. package/dist/packages/taco/src/primitives/Table/Core/components/Body/Body.d.ts +0 -8
  527. package/dist/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +0 -7
  528. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +0 -3
  529. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +0 -3
  530. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.d.ts +0 -10
  531. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.d.ts +0 -19
  532. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.d.ts +0 -13
  533. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +0 -2
  534. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +0 -2
  535. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +0 -2
  536. package/dist/packages/taco/src/primitives/Table/Core/components/Header/Header.d.ts +0 -45
  537. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.d.ts +0 -6
  538. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.d.ts +0 -21
  539. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.d.ts +0 -12
  540. package/dist/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.d.ts +0 -15
  541. package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +0 -4
  542. package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +0 -4
  543. package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +0 -6
  544. package/dist/packages/taco/src/primitives/Table/Core/components/Row/RowContext.d.ts +0 -7
  545. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +0 -7
  546. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.d.ts +0 -12
  547. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +0 -12
  548. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.d.ts +0 -7
  549. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.d.ts +0 -10
  550. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.d.ts +0 -4
  551. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.d.ts +0 -9
  552. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.d.ts +0 -17
  553. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +0 -7
  554. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.d.ts +0 -8
  555. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +0 -2
  556. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts +0 -3
  557. package/dist/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.d.ts +0 -4
  558. package/dist/packages/taco/src/primitives/Table/Core/features/useTableRenderer.d.ts +0 -10
  559. package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +0 -24
  560. package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +0 -25
  561. package/dist/packages/taco/src/primitives/Table/types.d.ts +0 -379
  562. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.d.ts +0 -13
  563. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +0 -8
  564. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +0 -5
  565. package/dist/packages/taco/src/primitives/Table/useTableManager/types.d.ts +0 -14
  566. package/dist/packages/taco/src/primitives/Table/useTableManager/useTableManager.d.ts +0 -65
  567. package/dist/packages/taco/src/primitives/Table/useTableManager/util/settings.d.ts +0 -12
  568. package/dist/packages/taco/src/utils/dom.d.ts +0 -8
  569. /package/dist/{packages/taco/src/components → components}/Accordion/Accordion.d.ts +0 -0
  570. /package/dist/{packages/taco/src/components → components}/Alert/Alert.d.ts +0 -0
  571. /package/dist/{packages/taco/src/components → components}/AlertDialog/AlertDialog.d.ts +0 -0
  572. /package/dist/{packages/taco/src/components → components}/AlertDialog/Context.d.ts +0 -0
  573. /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Content.d.ts +0 -0
  574. /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Footer.d.ts +0 -0
  575. /package/dist/{packages/taco/src/components → components}/AlertDialog/components/Trigger.d.ts +0 -0
  576. /package/dist/{packages/taco/src/components → components}/Backdrop/Backdrop.d.ts +0 -0
  577. /package/dist/{packages/taco/src/components → components}/Badge/Badge.d.ts +0 -0
  578. /package/dist/{packages/taco/src/components → components}/BadgeIcon/BadgeIcon.d.ts +0 -0
  579. /package/dist/{packages/taco/src/components → components}/Banner/Banner.d.ts +0 -0
  580. /package/dist/{packages/taco/src/components → components}/Banner/util.d.ts +0 -0
  581. /package/dist/{packages/taco/src/components → components}/Button/Button.d.ts +0 -0
  582. /package/dist/{packages/taco/src/components → components}/Button/util.d.ts +0 -0
  583. /package/dist/{packages/taco/src/components → components}/Calendar/Calendar.d.ts +0 -0
  584. /package/dist/{packages/taco/src/components → components}/Card/Card.d.ts +0 -0
  585. /package/dist/{packages/taco/src/components → components}/Checkbox/Checkbox.d.ts +0 -0
  586. /package/dist/{packages/taco/src/components → components}/Combobox/Combobox.d.ts +0 -0
  587. /package/dist/{packages/taco/src/components → components}/Combobox/useCombobox.d.ts +0 -0
  588. /package/dist/{packages/taco/src/components → components}/Datepicker/Datepicker.d.ts +0 -0
  589. /package/dist/{packages/taco/src/components → components}/Datepicker/useDatepicker.d.ts +0 -0
  590. /package/dist/{packages/taco/src/components → components}/Dialog/Context.d.ts +0 -0
  591. /package/dist/{packages/taco/src/components → components}/Dialog/Dialog.d.ts +0 -0
  592. /package/dist/{packages/taco/src/components → components}/Dialog/components/Content.d.ts +0 -0
  593. /package/dist/{packages/taco/src/components → components}/Dialog/components/DialogDrawer.d.ts +0 -0
  594. /package/dist/{packages/taco/src/components → components}/Dialog/components/Extra.d.ts +0 -0
  595. /package/dist/{packages/taco/src/components → components}/Dialog/components/Trigger.d.ts +0 -0
  596. /package/dist/{packages/taco/src/components → components}/Dialog/types.d.ts +0 -0
  597. /package/dist/{packages/taco/src/components → components}/Dialog/util.d.ts +0 -0
  598. /package/dist/{packages/taco/src/components → components}/Drawer/Context.d.ts +0 -0
  599. /package/dist/{packages/taco/src/components → components}/Drawer/Drawer.d.ts +0 -0
  600. /package/dist/{packages/taco/src/components → components}/Drawer/components/Content.d.ts +0 -0
  601. /package/dist/{packages/taco/src/components → components}/Drawer/components/Trigger.d.ts +0 -0
  602. /package/dist/{packages/taco/src/components → components}/Drawer/images.d.ts +0 -0
  603. /package/dist/{packages/taco/src/components → components}/Drawer/types.d.ts +0 -0
  604. /package/dist/{packages/taco/src/components → components}/Drawer/util.d.ts +0 -0
  605. /package/dist/{packages/taco/src/components → components}/Field/Field.d.ts +0 -0
  606. /package/dist/{packages/taco/src/components → components}/Form/Form.d.ts +0 -0
  607. /package/dist/{packages/taco/src/components → components}/Group/Group.d.ts +0 -0
  608. /package/dist/{packages/taco/src/components → components}/Hanger/Hanger.d.ts +0 -0
  609. /package/dist/{packages/taco/src/components → components}/Header/Header.d.ts +0 -0
  610. /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Avatar.d.ts +0 -0
  611. /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Badge.d.ts +0 -0
  612. /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Display.d.ts +0 -0
  613. /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/Item.d.ts +0 -0
  614. /package/dist/{packages/taco/src/components → components}/Header/components/Agreement/types.d.ts +0 -0
  615. /package/dist/{packages/taco/src/components → components}/Header/components/AgreementSelector.d.ts +0 -0
  616. /package/dist/{packages/taco/src/components → components}/Header/components/Button.d.ts +0 -0
  617. /package/dist/{packages/taco/src/components → components}/Header/components/Link.d.ts +0 -0
  618. /package/dist/{packages/taco/src/components → components}/Header/components/Logo.d.ts +0 -0
  619. /package/dist/{packages/taco/src/components → components}/Header/components/MenuButton.d.ts +0 -0
  620. /package/dist/{packages/taco/src/components → components}/Header/components/PrimaryNavigation.d.ts +0 -0
  621. /package/dist/{packages/taco/src/components → components}/Header/components/SecondaryNavigation.d.ts +0 -0
  622. /package/dist/{packages/taco/src/components → components}/HoverCard/HoverCard.d.ts +0 -0
  623. /package/dist/{packages/taco/src/components → components}/HoverCard/Primitives.d.ts +0 -0
  624. /package/dist/{packages/taco/src/components → components}/Icon/Icon.d.ts +0 -0
  625. /package/dist/{packages/taco/src/components → components}/Icon/components/AccountPreview.d.ts +0 -0
  626. /package/dist/{packages/taco/src/components → components}/Icon/components/Accounting.d.ts +0 -0
  627. /package/dist/{packages/taco/src/components → components}/Icon/components/AccountingYear.d.ts +0 -0
  628. /package/dist/{packages/taco/src/components → components}/Icon/components/AccountingYearCancel.d.ts +0 -0
  629. /package/dist/{packages/taco/src/components → components}/Icon/components/AiChatSolid.d.ts +0 -0
  630. /package/dist/{packages/taco/src/components → components}/Icon/components/AiStars.d.ts +0 -0
  631. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowBottom.d.ts +0 -0
  632. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowDown.d.ts +0 -0
  633. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowEnd.d.ts +0 -0
  634. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowLeft.d.ts +0 -0
  635. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowRight.d.ts +0 -0
  636. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowStart.d.ts +0 -0
  637. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowTop.d.ts +0 -0
  638. /package/dist/{packages/taco/src/components → components}/Icon/components/ArrowUp.d.ts +0 -0
  639. /package/dist/{packages/taco/src/components → components}/Icon/components/Attach.d.ts +0 -0
  640. /package/dist/{packages/taco/src/components → components}/Icon/components/AttachAuto.d.ts +0 -0
  641. /package/dist/{packages/taco/src/components → components}/Icon/components/AttachCancel.d.ts +0 -0
  642. /package/dist/{packages/taco/src/components → components}/Icon/components/AttachWarning.d.ts +0 -0
  643. /package/dist/{packages/taco/src/components → components}/Icon/components/Autotext.d.ts +0 -0
  644. /package/dist/{packages/taco/src/components → components}/Icon/components/AutotextInsert.d.ts +0 -0
  645. /package/dist/{packages/taco/src/components → components}/Icon/components/Basic.d.ts +0 -0
  646. /package/dist/{packages/taco/src/components → components}/Icon/components/BasicTabs.d.ts +0 -0
  647. /package/dist/{packages/taco/src/components → components}/Icon/components/BellSolid.d.ts +0 -0
  648. /package/dist/{packages/taco/src/components → components}/Icon/components/Book.d.ts +0 -0
  649. /package/dist/{packages/taco/src/components → components}/Icon/components/Booking.d.ts +0 -0
  650. /package/dist/{packages/taco/src/components → components}/Icon/components/Budget.d.ts +0 -0
  651. /package/dist/{packages/taco/src/components → components}/Icon/components/Calendar.d.ts +0 -0
  652. /package/dist/{packages/taco/src/components → components}/Icon/components/CashAccount.d.ts +0 -0
  653. /package/dist/{packages/taco/src/components → components}/Icon/components/CashReports.d.ts +0 -0
  654. /package/dist/{packages/taco/src/components → components}/Icon/components/ChartArea.d.ts +0 -0
  655. /package/dist/{packages/taco/src/components → components}/Icon/components/ChartBar.d.ts +0 -0
  656. /package/dist/{packages/taco/src/components → components}/Icon/components/ChartLine.d.ts +0 -0
  657. /package/dist/{packages/taco/src/components → components}/Icon/components/ChartPie.d.ts +0 -0
  658. /package/dist/{packages/taco/src/components → components}/Icon/components/ChartTable.d.ts +0 -0
  659. /package/dist/{packages/taco/src/components → components}/Icon/components/Chat.d.ts +0 -0
  660. /package/dist/{packages/taco/src/components → components}/Icon/components/ChatSolid.d.ts +0 -0
  661. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDown.d.ts +0 -0
  662. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDownDouble.d.ts +0 -0
  663. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronDownSolid.d.ts +0 -0
  664. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeft.d.ts +0 -0
  665. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
  666. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
  667. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRight.d.ts +0 -0
  668. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRightDouble.d.ts +0 -0
  669. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronRightSolid.d.ts +0 -0
  670. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUp.d.ts +0 -0
  671. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUpDouble.d.ts +0 -0
  672. /package/dist/{packages/taco/src/components → components}/Icon/components/ChevronUpSolid.d.ts +0 -0
  673. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleClose.d.ts +0 -0
  674. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleInformation.d.ts +0 -0
  675. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleMinus.d.ts +0 -0
  676. /package/dist/{packages/taco/src/components → components}/Icon/components/CirclePlus.d.ts +0 -0
  677. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleQuestionmark.d.ts +0 -0
  678. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleTick.d.ts +0 -0
  679. /package/dist/{packages/taco/src/components → components}/Icon/components/CircleWarning.d.ts +0 -0
  680. /package/dist/{packages/taco/src/components → components}/Icon/components/Clamp.d.ts +0 -0
  681. /package/dist/{packages/taco/src/components → components}/Icon/components/ClampOpen.d.ts +0 -0
  682. /package/dist/{packages/taco/src/components → components}/Icon/components/Close.d.ts +0 -0
  683. /package/dist/{packages/taco/src/components → components}/Icon/components/ColumnFreeze.d.ts +0 -0
  684. /package/dist/{packages/taco/src/components → components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
  685. /package/dist/{packages/taco/src/components → components}/Icon/components/Columns.d.ts +0 -0
  686. /package/dist/{packages/taco/src/components → components}/Icon/components/ConnectionEnable.d.ts +0 -0
  687. /package/dist/{packages/taco/src/components → components}/Icon/components/ConnectionRevoke.d.ts +0 -0
  688. /package/dist/{packages/taco/src/components → components}/Icon/components/Contacts.d.ts +0 -0
  689. /package/dist/{packages/taco/src/components → components}/Icon/components/Copy.d.ts +0 -0
  690. /package/dist/{packages/taco/src/components → components}/Icon/components/Courses.d.ts +0 -0
  691. /package/dist/{packages/taco/src/components → components}/Icon/components/Credit.d.ts +0 -0
  692. /package/dist/{packages/taco/src/components → components}/Icon/components/Delete.d.ts +0 -0
  693. /package/dist/{packages/taco/src/components → components}/Icon/components/DeletePermanently.d.ts +0 -0
  694. /package/dist/{packages/taco/src/components → components}/Icon/components/Depecriate.d.ts +0 -0
  695. /package/dist/{packages/taco/src/components → components}/Icon/components/Developer.d.ts +0 -0
  696. /package/dist/{packages/taco/src/components → components}/Icon/components/DistributionTemplate.d.ts +0 -0
  697. /package/dist/{packages/taco/src/components → components}/Icon/components/Document.d.ts +0 -0
  698. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentApprove.d.ts +0 -0
  699. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
  700. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentCut.d.ts +0 -0
  701. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentError.d.ts +0 -0
  702. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
  703. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentMerge.d.ts +0 -0
  704. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentMove.d.ts +0 -0
  705. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentPreview.d.ts +0 -0
  706. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentReceived.d.ts +0 -0
  707. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
  708. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentSplit.d.ts +0 -0
  709. /package/dist/{packages/taco/src/components → components}/Icon/components/DocumentTime.d.ts +0 -0
  710. /package/dist/{packages/taco/src/components → components}/Icon/components/Download.d.ts +0 -0
  711. /package/dist/{packages/taco/src/components → components}/Icon/components/Drag.d.ts +0 -0
  712. /package/dist/{packages/taco/src/components → components}/Icon/components/ECopedia.d.ts +0 -0
  713. /package/dist/{packages/taco/src/components → components}/Icon/components/ESignature.d.ts +0 -0
  714. /package/dist/{packages/taco/src/components → components}/Icon/components/Edit.d.ts +0 -0
  715. /package/dist/{packages/taco/src/components → components}/Icon/components/EditSimple.d.ts +0 -0
  716. /package/dist/{packages/taco/src/components → components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
  717. /package/dist/{packages/taco/src/components → components}/Icon/components/EllipsisVertical.d.ts +0 -0
  718. /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesOnAccount.d.ts +0 -0
  719. /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesOpen.d.ts +0 -0
  720. /package/dist/{packages/taco/src/components → components}/Icon/components/EntriesWarning.d.ts +0 -0
  721. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
  722. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
  723. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
  724. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
  725. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
  726. /package/dist/{packages/taco/src/components → components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
  727. /package/dist/{packages/taco/src/components → components}/Icon/components/Envelope.d.ts +0 -0
  728. /package/dist/{packages/taco/src/components → components}/Icon/components/EnvelopeApproved.d.ts +0 -0
  729. /package/dist/{packages/taco/src/components → components}/Icon/components/EnvelopeSolid.d.ts +0 -0
  730. /package/dist/{packages/taco/src/components → components}/Icon/components/ExpandView.d.ts +0 -0
  731. /package/dist/{packages/taco/src/components → components}/Icon/components/Expenses.d.ts +0 -0
  732. /package/dist/{packages/taco/src/components → components}/Icon/components/Export.d.ts +0 -0
  733. /package/dist/{packages/taco/src/components → components}/Icon/components/ExportToExcel.d.ts +0 -0
  734. /package/dist/{packages/taco/src/components → components}/Icon/components/ExportToPdf.d.ts +0 -0
  735. /package/dist/{packages/taco/src/components → components}/Icon/components/EyeOff.d.ts +0 -0
  736. /package/dist/{packages/taco/src/components → components}/Icon/components/EyeOn.d.ts +0 -0
  737. /package/dist/{packages/taco/src/components → components}/Icon/components/Filter.d.ts +0 -0
  738. /package/dist/{packages/taco/src/components → components}/Icon/components/FilterSolid.d.ts +0 -0
  739. /package/dist/{packages/taco/src/components → components}/Icon/components/FontSize.d.ts +0 -0
  740. /package/dist/{packages/taco/src/components → components}/Icon/components/GraphSolid.d.ts +0 -0
  741. /package/dist/{packages/taco/src/components → components}/Icon/components/Hash.d.ts +0 -0
  742. /package/dist/{packages/taco/src/components → components}/Icon/components/HeightExtraTall.d.ts +0 -0
  743. /package/dist/{packages/taco/src/components → components}/Icon/components/HeightMedium.d.ts +0 -0
  744. /package/dist/{packages/taco/src/components → components}/Icon/components/HeightShort.d.ts +0 -0
  745. /package/dist/{packages/taco/src/components → components}/Icon/components/HeightTall.d.ts +0 -0
  746. /package/dist/{packages/taco/src/components → components}/Icon/components/Home.d.ts +0 -0
  747. /package/dist/{packages/taco/src/components → components}/Icon/components/Images.d.ts +0 -0
  748. /package/dist/{packages/taco/src/components → components}/Icon/components/Import.d.ts +0 -0
  749. /package/dist/{packages/taco/src/components → components}/Icon/components/Inbox.d.ts +0 -0
  750. /package/dist/{packages/taco/src/components → components}/Icon/components/InboxEinvoicing.d.ts +0 -0
  751. /package/dist/{packages/taco/src/components → components}/Icon/components/InboxScanning.d.ts +0 -0
  752. /package/dist/{packages/taco/src/components → components}/Icon/components/InboxSmart.d.ts +0 -0
  753. /package/dist/{packages/taco/src/components → components}/Icon/components/Info.d.ts +0 -0
  754. /package/dist/{packages/taco/src/components → components}/Icon/components/Inventory.d.ts +0 -0
  755. /package/dist/{packages/taco/src/components → components}/Icon/components/InventoryMatrix.d.ts +0 -0
  756. /package/dist/{packages/taco/src/components → components}/Icon/components/JournalPro.d.ts +0 -0
  757. /package/dist/{packages/taco/src/components → components}/Icon/components/Layout.d.ts +0 -0
  758. /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutBoth.d.ts +0 -0
  759. /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutFirst.d.ts +0 -0
  760. /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutLast.d.ts +0 -0
  761. /package/dist/{packages/taco/src/components → components}/Icon/components/LayoutNone.d.ts +0 -0
  762. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCard.d.ts +0 -0
  763. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
  764. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
  765. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
  766. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
  767. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
  768. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
  769. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
  770. /package/dist/{packages/taco/src/components → components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
  771. /package/dist/{packages/taco/src/components → components}/Icon/components/Lightbulb.d.ts +0 -0
  772. /package/dist/{packages/taco/src/components → components}/Icon/components/Line.d.ts +0 -0
  773. /package/dist/{packages/taco/src/components → components}/Icon/components/List.d.ts +0 -0
  774. /package/dist/{packages/taco/src/components → components}/Icon/components/ListBulleted.d.ts +0 -0
  775. /package/dist/{packages/taco/src/components → components}/Icon/components/ListSearch.d.ts +0 -0
  776. /package/dist/{packages/taco/src/components → components}/Icon/components/Location.d.ts +0 -0
  777. /package/dist/{packages/taco/src/components → components}/Icon/components/Lock.d.ts +0 -0
  778. /package/dist/{packages/taco/src/components → components}/Icon/components/LockOpen.d.ts +0 -0
  779. /package/dist/{packages/taco/src/components → components}/Icon/components/Log.d.ts +0 -0
  780. /package/dist/{packages/taco/src/components → components}/Icon/components/LogOut.d.ts +0 -0
  781. /package/dist/{packages/taco/src/components → components}/Icon/components/Market.d.ts +0 -0
  782. /package/dist/{packages/taco/src/components → components}/Icon/components/MatchAmount.d.ts +0 -0
  783. /package/dist/{packages/taco/src/components → components}/Icon/components/MatchEntries.d.ts +0 -0
  784. /package/dist/{packages/taco/src/components → components}/Icon/components/Menu.d.ts +0 -0
  785. /package/dist/{packages/taco/src/components → components}/Icon/components/Mileage.d.ts +0 -0
  786. /package/dist/{packages/taco/src/components → components}/Icon/components/ModalResize.d.ts +0 -0
  787. /package/dist/{packages/taco/src/components → components}/Icon/components/ModalShrink.d.ts +0 -0
  788. /package/dist/{packages/taco/src/components → components}/Icon/components/More.d.ts +0 -0
  789. /package/dist/{packages/taco/src/components → components}/Icon/components/MoreSolid.d.ts +0 -0
  790. /package/dist/{packages/taco/src/components → components}/Icon/components/Move.d.ts +0 -0
  791. /package/dist/{packages/taco/src/components → components}/Icon/components/NavigationList.d.ts +0 -0
  792. /package/dist/{packages/taco/src/components → components}/Icon/components/Note.d.ts +0 -0
  793. /package/dist/{packages/taco/src/components → components}/Icon/components/NoteFollowUp.d.ts +0 -0
  794. /package/dist/{packages/taco/src/components → components}/Icon/components/NoteRead.d.ts +0 -0
  795. /package/dist/{packages/taco/src/components → components}/Icon/components/Numbers.d.ts +0 -0
  796. /package/dist/{packages/taco/src/components → components}/Icon/components/PartnerApi.d.ts +0 -0
  797. /package/dist/{packages/taco/src/components → components}/Icon/components/PaymentPaid.d.ts +0 -0
  798. /package/dist/{packages/taco/src/components → components}/Icon/components/PaymentUnpaid.d.ts +0 -0
  799. /package/dist/{packages/taco/src/components → components}/Icon/components/Period.d.ts +0 -0
  800. /package/dist/{packages/taco/src/components → components}/Icon/components/PersonChange.d.ts +0 -0
  801. /package/dist/{packages/taco/src/components → components}/Icon/components/PersonMinus.d.ts +0 -0
  802. /package/dist/{packages/taco/src/components → components}/Icon/components/PersonPlus.d.ts +0 -0
  803. /package/dist/{packages/taco/src/components → components}/Icon/components/PersonTick.d.ts +0 -0
  804. /package/dist/{packages/taco/src/components → components}/Icon/components/PhoneSolid.d.ts +0 -0
  805. /package/dist/{packages/taco/src/components → components}/Icon/components/Play.d.ts +0 -0
  806. /package/dist/{packages/taco/src/components → components}/Icon/components/PlusMinus.d.ts +0 -0
  807. /package/dist/{packages/taco/src/components → components}/Icon/components/Print.d.ts +0 -0
  808. /package/dist/{packages/taco/src/components → components}/Icon/components/ProcessPayment.d.ts +0 -0
  809. /package/dist/{packages/taco/src/components → components}/Icon/components/ProductLedgerCard.d.ts +0 -0
  810. /package/dist/{packages/taco/src/components → components}/Icon/components/Profile.d.ts +0 -0
  811. /package/dist/{packages/taco/src/components → components}/Icon/components/ProjectCards.d.ts +0 -0
  812. /package/dist/{packages/taco/src/components → components}/Icon/components/Projects.d.ts +0 -0
  813. /package/dist/{packages/taco/src/components → components}/Icon/components/QuestionMark.d.ts +0 -0
  814. /package/dist/{packages/taco/src/components → components}/Icon/components/QuestionMarkBold.d.ts +0 -0
  815. /package/dist/{packages/taco/src/components → components}/Icon/components/Quicklinks.d.ts +0 -0
  816. /package/dist/{packages/taco/src/components → components}/Icon/components/RatingBankruptcy.d.ts +0 -0
  817. /package/dist/{packages/taco/src/components → components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
  818. /package/dist/{packages/taco/src/components → components}/Icon/components/Reconciled.d.ts +0 -0
  819. /package/dist/{packages/taco/src/components → components}/Icon/components/Refresh.d.ts +0 -0
  820. /package/dist/{packages/taco/src/components → components}/Icon/components/Report.d.ts +0 -0
  821. /package/dist/{packages/taco/src/components → components}/Icon/components/ReportSolid.d.ts +0 -0
  822. /package/dist/{packages/taco/src/components → components}/Icon/components/Restore.d.ts +0 -0
  823. /package/dist/{packages/taco/src/components → components}/Icon/components/RotateLeft.d.ts +0 -0
  824. /package/dist/{packages/taco/src/components → components}/Icon/components/RotateRight.d.ts +0 -0
  825. /package/dist/{packages/taco/src/components → components}/Icon/components/Sales.d.ts +0 -0
  826. /package/dist/{packages/taco/src/components → components}/Icon/components/Search.d.ts +0 -0
  827. /package/dist/{packages/taco/src/components → components}/Icon/components/SearchBold.d.ts +0 -0
  828. /package/dist/{packages/taco/src/components → components}/Icon/components/Secure.d.ts +0 -0
  829. /package/dist/{packages/taco/src/components → components}/Icon/components/SecureTick.d.ts +0 -0
  830. /package/dist/{packages/taco/src/components → components}/Icon/components/Settings.d.ts +0 -0
  831. /package/dist/{packages/taco/src/components → components}/Icon/components/SettingsSolid.d.ts +0 -0
  832. /package/dist/{packages/taco/src/components → components}/Icon/components/Shortcuts.d.ts +0 -0
  833. /package/dist/{packages/taco/src/components → components}/Icon/components/ShowAll.d.ts +0 -0
  834. /package/dist/{packages/taco/src/components → components}/Icon/components/ShowLess.d.ts +0 -0
  835. /package/dist/{packages/taco/src/components → components}/Icon/components/ShowMore.d.ts +0 -0
  836. /package/dist/{packages/taco/src/components → components}/Icon/components/ShowTemplate.d.ts +0 -0
  837. /package/dist/{packages/taco/src/components → components}/Icon/components/Sliders.d.ts +0 -0
  838. /package/dist/{packages/taco/src/components → components}/Icon/components/Smartpay.d.ts +0 -0
  839. /package/dist/{packages/taco/src/components → components}/Icon/components/SortBy.d.ts +0 -0
  840. /package/dist/{packages/taco/src/components → components}/Icon/components/Star.d.ts +0 -0
  841. /package/dist/{packages/taco/src/components → components}/Icon/components/StarSolid.d.ts +0 -0
  842. /package/dist/{packages/taco/src/components → components}/Icon/components/Subscriptions.d.ts +0 -0
  843. /package/dist/{packages/taco/src/components → components}/Icon/components/SystemEntries.d.ts +0 -0
  844. /package/dist/{packages/taco/src/components → components}/Icon/components/Tag.d.ts +0 -0
  845. /package/dist/{packages/taco/src/components → components}/Icon/components/TemplateOverride.d.ts +0 -0
  846. /package/dist/{packages/taco/src/components → components}/Icon/components/Templates.d.ts +0 -0
  847. /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbBoth.d.ts +0 -0
  848. /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbDown.d.ts +0 -0
  849. /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbDownSolid.d.ts +0 -0
  850. /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbUp.d.ts +0 -0
  851. /package/dist/{packages/taco/src/components → components}/Icon/components/ThumbUpSolid.d.ts +0 -0
  852. /package/dist/{packages/taco/src/components → components}/Icon/components/Tick.d.ts +0 -0
  853. /package/dist/{packages/taco/src/components → components}/Icon/components/TickBold.d.ts +0 -0
  854. /package/dist/{packages/taco/src/components → components}/Icon/components/Time.d.ts +0 -0
  855. /package/dist/{packages/taco/src/components → components}/Icon/components/Transfer.d.ts +0 -0
  856. /package/dist/{packages/taco/src/components → components}/Icon/components/TransferCancel.d.ts +0 -0
  857. /package/dist/{packages/taco/src/components → components}/Icon/components/TransferLocked.d.ts +0 -0
  858. /package/dist/{packages/taco/src/components → components}/Icon/components/Undo.d.ts +0 -0
  859. /package/dist/{packages/taco/src/components → components}/Icon/components/Undock.d.ts +0 -0
  860. /package/dist/{packages/taco/src/components → components}/Icon/components/Unreconciled.d.ts +0 -0
  861. /package/dist/{packages/taco/src/components → components}/Icon/components/Warning.d.ts +0 -0
  862. /package/dist/{packages/taco/src/components → components}/Icon/components/Webshop.d.ts +0 -0
  863. /package/dist/{packages/taco/src/components → components}/Icon/components/Website.d.ts +0 -0
  864. /package/dist/{packages/taco/src/components → components}/Icon/components/Workflow.d.ts +0 -0
  865. /package/dist/{packages/taco/src/components → components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
  866. /package/dist/{packages/taco/src/components → components}/Icon/components/Zoom.d.ts +0 -0
  867. /package/dist/{packages/taco/src/components → components}/Icon/components/index.d.ts +0 -0
  868. /package/dist/{packages/taco/src/components → components}/IconButton/IconButton.d.ts +0 -0
  869. /package/dist/{packages/taco/src/components → components}/Input/Input.d.ts +0 -0
  870. /package/dist/{packages/taco/src/components → components}/Input/util.d.ts +0 -0
  871. /package/dist/{packages/taco/src/components → components}/Layout/Layout.d.ts +0 -0
  872. /package/dist/{packages/taco/src/components → components}/Layout/components/Content.d.ts +0 -0
  873. /package/dist/{packages/taco/src/components → components}/Layout/components/Context.d.ts +0 -0
  874. /package/dist/{packages/taco/src/components → components}/Layout/components/Page.d.ts +0 -0
  875. /package/dist/{packages/taco/src/components → components}/Layout/components/Sidebar.d.ts +0 -0
  876. /package/dist/{packages/taco/src/components → components}/Layout/components/Top.d.ts +0 -0
  877. /package/dist/{packages/taco/src/components → components}/Listbox/Listbox.d.ts +0 -0
  878. /package/dist/{packages/taco/src/components → components}/Listbox/ScrollableList.d.ts +0 -0
  879. /package/dist/{packages/taco/src/components → components}/Listbox/useListbox.d.ts +0 -0
  880. /package/dist/{packages/taco/src/components → components}/Listbox/useMultiListbox.d.ts +0 -0
  881. /package/dist/{packages/taco/src/components → components}/Listbox/useTypeahead.d.ts +0 -0
  882. /package/dist/{packages/taco/src/components → components}/Listbox/util.d.ts +0 -0
  883. /package/dist/{packages/taco/src/components → components}/Menu/Context.d.ts +0 -0
  884. /package/dist/{packages/taco/src/components → components}/Menu/Menu.d.ts +0 -0
  885. /package/dist/{packages/taco/src/components → components}/Menu/components/Checkbox.d.ts +0 -0
  886. /package/dist/{packages/taco/src/components → components}/Menu/components/Content.d.ts +0 -0
  887. /package/dist/{packages/taco/src/components → components}/Menu/components/Header.d.ts +0 -0
  888. /package/dist/{packages/taco/src/components → components}/Menu/components/Item.d.ts +0 -0
  889. /package/dist/{packages/taco/src/components → components}/Menu/components/Link.d.ts +0 -0
  890. /package/dist/{packages/taco/src/components → components}/Menu/components/RadioGroup.d.ts +0 -0
  891. /package/dist/{packages/taco/src/components → components}/Menu/components/Separator.d.ts +0 -0
  892. /package/dist/{packages/taco/src/components → components}/Menu/components/SubMenu.d.ts +0 -0
  893. /package/dist/{packages/taco/src/components → components}/Menu/components/Trigger.d.ts +0 -0
  894. /package/dist/{packages/taco/src/components → components}/ModeSwitch/ModeSwitch.d.ts +0 -0
  895. /package/dist/{packages/taco/src/components → components}/Navigation/Navigation.d.ts +0 -0
  896. /package/dist/{packages/taco/src/components → components}/Navigation2/Navigation2.d.ts +0 -0
  897. /package/dist/{packages/taco/src/components → components}/Navigation2/components/Content.d.ts +0 -0
  898. /package/dist/{packages/taco/src/components → components}/Navigation2/components/Group.d.ts +0 -0
  899. /package/dist/{packages/taco/src/components → components}/Navigation2/components/Link.d.ts +0 -0
  900. /package/dist/{packages/taco/src/components → components}/Navigation2/components/Section.d.ts +0 -0
  901. /package/dist/{packages/taco/src/components → components}/Navigation2/components/util.d.ts +0 -0
  902. /package/dist/{packages/taco/src/components → components}/OverflowGroup/OverflowGroup.d.ts +0 -0
  903. /package/dist/{packages/taco/src/components → components}/Pagination/PageNumbers.d.ts +0 -0
  904. /package/dist/{packages/taco/src/components → components}/Pagination/Pagination.d.ts +0 -0
  905. /package/dist/{packages/taco/src/components → components}/Pagination/usePagination.d.ts +0 -0
  906. /package/dist/{packages/taco/src/components → components}/Pagination/usePaginationShortcuts.d.ts +0 -0
  907. /package/dist/{packages/taco/src/components → components}/Popover/Popover.d.ts +0 -0
  908. /package/dist/{packages/taco/src/components → components}/Popover/Primitives.d.ts +0 -0
  909. /package/dist/{packages/taco/src/components → components}/Popover/util.d.ts +0 -0
  910. /package/dist/{packages/taco/src/components → components}/Progress/Progress.d.ts +0 -0
  911. /package/dist/{packages/taco/src/components → components}/Provider/Provider.d.ts +0 -0
  912. /package/dist/{packages/taco/src/components → components}/RadioGroup/RadioGroup.d.ts +0 -0
  913. /package/dist/{packages/taco/src/components → components}/RadioGroup/util.d.ts +0 -0
  914. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Body/util.d.ts +0 -0
  915. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Footer/Footer.d.ts +0 -0
  916. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Footer/Summary.d.ts +0 -0
  917. /package/dist/{packages/taco/src/primitives/Table/Core/components/Row/BuiltIns → components/Report/components/Row}/SkeletonRow.d.ts +0 -0
  918. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  919. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  920. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/components/Toolbar/components/Search/Search.d.ts +0 -0
  921. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/listeners/useTableRowActiveListener.d.ts +0 -0
  922. /package/dist/{packages/taco/src/primitives/Table/Core/features → components/Report/styles}/useStylesheet.d.ts +0 -0
  923. /package/dist/{packages/taco/src/primitives/Table/Core → components/Report}/util/rows.d.ts +0 -0
  924. /package/dist/{packages/taco/src/components → components}/ScrollArea/ScrollArea.d.ts +0 -0
  925. /package/dist/{packages/taco/src/components → components}/SearchInput/SearchInput.d.ts +0 -0
  926. /package/dist/{packages/taco/src/components → components}/SearchInput2/SearchInput2.d.ts +0 -0
  927. /package/dist/{packages/taco/src/components → components}/Select/Select.d.ts +0 -0
  928. /package/dist/{packages/taco/src/components → components}/Select/useSelect.d.ts +0 -0
  929. /package/dist/{packages/taco/src/components → components}/Select2/Select2.d.ts +0 -0
  930. /package/dist/{packages/taco/src/components → components}/Select2/components/All.d.ts +0 -0
  931. /package/dist/{packages/taco/src/components → components}/Select2/components/Collection.d.ts +0 -0
  932. /package/dist/{packages/taco/src/components → components}/Select2/components/Context.d.ts +0 -0
  933. /package/dist/{packages/taco/src/components → components}/Select2/components/Create.d.ts +0 -0
  934. /package/dist/{packages/taco/src/components → components}/Select2/components/Edit.d.ts +0 -0
  935. /package/dist/{packages/taco/src/components → components}/Select2/components/Group.d.ts +0 -0
  936. /package/dist/{packages/taco/src/components → components}/Select2/components/Option.d.ts +0 -0
  937. /package/dist/{packages/taco/src/components → components}/Select2/components/Search.d.ts +0 -0
  938. /package/dist/{packages/taco/src/components → components}/Select2/components/Title.d.ts +0 -0
  939. /package/dist/{packages/taco/src/components → components}/Select2/components/Trigger.d.ts +0 -0
  940. /package/dist/{packages/taco/src/components → components}/Select2/hooks/useChildren.d.ts +0 -0
  941. /package/dist/{packages/taco/src/components → components}/Select2/types.d.ts +0 -0
  942. /package/dist/{packages/taco/src/components → components}/Select2/utilities.d.ts +0 -0
  943. /package/dist/{packages/taco/src/components → components}/Shortcut/Shortcut.d.ts +0 -0
  944. /package/dist/{packages/taco/src/components → components}/Spinner/Spinner.d.ts +0 -0
  945. /package/dist/{packages/taco/src/components → components}/Switch/Switch.d.ts +0 -0
  946. /package/dist/{packages/taco/src/components → components}/Table/Table.storyexample.d.ts +0 -0
  947. /package/dist/{packages/taco/src/components → components}/Table/components/BaseTable.d.ts +0 -0
  948. /package/dist/{packages/taco/src/components → components}/Table/components/PaginatedTable.d.ts +0 -0
  949. /package/dist/{packages/taco/src/components → components}/Table/components/Table.d.ts +0 -0
  950. /package/dist/{packages/taco/src/components → components}/Table/components/WindowedTable.d.ts +0 -0
  951. /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
  952. /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
  953. /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
  954. /package/dist/{packages/taco/src/components → components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
  955. /package/dist/{packages/taco/src/components → components}/Table/hooks/useRowCreation.d.ts +0 -0
  956. /package/dist/{packages/taco/src/components → components}/Table/hooks/useTable.d.ts +0 -0
  957. /package/dist/{packages/taco/src/components → components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
  958. /package/dist/{packages/taco/src/components → components}/Table/types.d.ts +0 -0
  959. /package/dist/{packages/taco/src/components → components}/Table/util/renderColumn.d.ts +0 -0
  960. /package/dist/{packages/taco/src/components → components}/Table/util/renderRow.d.ts +0 -0
  961. /package/dist/{packages/taco/src/components → components}/Table/util/rowIndexPath.d.ts +0 -0
  962. /package/dist/{packages/taco/src/components → components}/Table/util/sortTypes.d.ts +0 -0
  963. /package/dist/{packages/taco/src/components → components}/Table/util.d.ts +0 -0
  964. /package/dist/{packages/taco/src/components → components}/Tabs/Tabs.d.ts +0 -0
  965. /package/dist/{packages/taco/src/components → components}/Tag/Tag.d.ts +0 -0
  966. /package/dist/{packages/taco/src/components → components}/Textarea/Textarea.d.ts +0 -0
  967. /package/dist/{packages/taco/src/components → components}/Toast/Toast.d.ts +0 -0
  968. /package/dist/{packages/taco/src/components → components}/Toast/Toaster.d.ts +0 -0
  969. /package/dist/{packages/taco/src/components → components}/Toast/util.d.ts +0 -0
  970. /package/dist/{packages/taco/src/components → components}/Tooltip/Tooltip.d.ts +0 -0
  971. /package/dist/{packages/taco/src/components → components}/Tour/Tour.d.ts +0 -0
  972. /package/dist/{packages/taco/src/components → components}/Treeview/Treeview.d.ts +0 -0
  973. /package/dist/{packages/taco/src/components → components}/Truncate/Truncate.d.ts +0 -0
  974. /package/dist/{packages/taco/src/components → components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
  975. /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Body/EmptyStateBody.js +0 -0
  976. /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Body/util.js +0 -0
  977. /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Footer/Footer.js +0 -0
  978. /package/dist/esm/packages/taco/src/{primitives/Table/Core/components/Row/BuiltIns → components/Report/components/Row}/SkeletonRow.js +0 -0
  979. /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/components/Toolbar/components/Filters/util.js +0 -0
  980. /package/dist/esm/packages/taco/src/{primitives/Table/Core → components/Report}/util/rows.js +0 -0
  981. /package/dist/esm/packages/taco/src/primitives/Table/{Core → useTableManager}/features/useTableRef.js +0 -0
  982. /package/dist/{packages/taco/src/hooks → hooks}/useBoundaryOverflowDetection.d.ts +0 -0
  983. /package/dist/{packages/taco/src/hooks → hooks}/useBoundingClientRectListener.d.ts +0 -0
  984. /package/dist/{packages/taco/src/hooks → hooks}/useDebouncedEffect.d.ts +0 -0
  985. /package/dist/{packages/taco/src/hooks → hooks}/useGlobalKeyDown.d.ts +0 -0
  986. /package/dist/{packages/taco/src/hooks → hooks}/useId.d.ts +0 -0
  987. /package/dist/{packages/taco/src/hooks → hooks}/useIntersectionObserver.d.ts +0 -0
  988. /package/dist/{packages/taco/src/hooks → hooks}/useIsFormControl.d.ts +0 -0
  989. /package/dist/{packages/taco/src/hooks → hooks}/useIsHoverStatePaused.d.ts +0 -0
  990. /package/dist/{packages/taco/src/hooks → hooks}/useIsLargeScreen.d.ts +0 -0
  991. /package/dist/{packages/taco/src/hooks → hooks}/useLazyEffect.d.ts +0 -0
  992. /package/dist/{packages/taco/src/hooks → hooks}/useLocalStorage.d.ts +0 -0
  993. /package/dist/{packages/taco/src/hooks → hooks}/useMatchMedia.d.ts +0 -0
  994. /package/dist/{packages/taco/src/hooks → hooks}/useMergedRef.d.ts +0 -0
  995. /package/dist/{packages/taco/src/hooks → hooks}/usePrevious.d.ts +0 -0
  996. /package/dist/{packages/taco/src/hooks → hooks}/useTacoSettings.d.ts +0 -0
  997. /package/dist/{packages/taco/src/primitives → primitives}/BubbleSelect.d.ts +0 -0
  998. /package/dist/{packages/taco/src/primitives → primitives}/Button.d.ts +0 -0
  999. /package/dist/{packages/taco/src/primitives → primitives}/Collection/Collection.d.ts +0 -0
  1000. /package/dist/{packages/taco/src/primitives → primitives}/Collection/components/Root.d.ts +0 -0
  1001. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/Listbox2.d.ts +0 -0
  1002. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Context.d.ts +0 -0
  1003. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Group.d.ts +0 -0
  1004. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Option.d.ts +0 -0
  1005. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Root.d.ts +0 -0
  1006. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/components/Title.d.ts +0 -0
  1007. /package/dist/{packages/taco/src/primitives → primitives}/Listbox2/types.d.ts +0 -0
  1008. /package/dist/{packages/taco/src/primitives → primitives}/Sortable/Sortable.d.ts +0 -0
  1009. /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/Container.d.ts +0 -0
  1010. /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/Item.d.ts +0 -0
  1011. /package/dist/{packages/taco/src/primitives → primitives}/Sortable/components/List.d.ts +0 -0
  1012. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableDataLoader.d.ts +0 -0
  1013. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
  1014. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
  1015. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
  1016. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
  1017. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
  1018. /package/dist/{packages/taco/src/primitives/Table/Core → primitives/Table/useTableManager}/features/useTableRef.d.ts +0 -0
  1019. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
  1020. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
  1021. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
  1022. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
  1023. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
  1024. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
  1025. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
  1026. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
  1027. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
  1028. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
  1029. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
  1030. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
  1031. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
  1032. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
  1033. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
  1034. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
  1035. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
  1036. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
  1037. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
  1038. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
  1039. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/columns.d.ts +0 -0
  1040. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
  1041. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
  1042. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/presets.d.ts +0 -0
  1043. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/search.d.ts +0 -0
  1044. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/setup.d.ts +0 -0
  1045. /package/dist/{packages/taco/src/primitives → primitives}/Table/useTableManager/util/sorting.d.ts +0 -0
  1046. /package/dist/{packages/taco/src/types.d.ts → types.d.ts} +0 -0
  1047. /package/dist/{packages/taco/src/utils → utils}/aria.d.ts +0 -0
  1048. /package/dist/{packages/taco/src/utils → utils}/date.d.ts +0 -0
  1049. /package/dist/{packages/taco/src/utils → utils}/debounce.d.ts +0 -0
  1050. /package/dist/{packages/taco/src/utils → utils}/device.d.ts +0 -0
  1051. /package/dist/{packages/taco/src/utils → utils}/hooks/useDraggable.d.ts +0 -0
  1052. /package/dist/{packages/taco/src/utils → utils}/hooks/useDropTarget.d.ts +0 -0
  1053. /package/dist/{packages/taco/src/utils → utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
  1054. /package/dist/{packages/taco/src/utils → utils}/hooks/useListScrollTo.d.ts +0 -0
  1055. /package/dist/{packages/taco/src/utils → utils}/hooks/useOnClickOutside.d.ts +0 -0
  1056. /package/dist/{packages/taco/src/utils → utils}/hooks/useRefState.d.ts +0 -0
  1057. /package/dist/{packages/taco/src/utils → utils}/hooks/useTimer.d.ts +0 -0
  1058. /package/dist/{packages/taco/src/utils → utils}/hooks/useTruncated.d.ts +0 -0
  1059. /package/dist/{packages/taco/src/utils → utils}/input.d.ts +0 -0
  1060. /package/dist/{packages/taco/src/utils → utils}/keyboard.d.ts +0 -0
  1061. /package/dist/{packages/taco/src/utils → utils}/mergeRefs.d.ts +0 -0
  1062. /package/dist/{packages/taco/src/utils → utils}/storyutils.d.ts +0 -0
  1063. /package/dist/{packages/taco/src/utils → utils}/tailwind.d.ts +0 -0
@@ -1,349 +0,0 @@
1
- import React__default from 'react';
2
- import { isElementInsideOrTriggeredFromContainer } from '../../../utils/dom.js';
3
- import { useGlobalKeyDown } from '../../../hooks/useGlobalKeyDown.js';
4
- import { _catch } from '../../../../../../node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js';
5
- import { willRowMove } from '../util/editing.js';
6
-
7
- function useTableEditing(isEnabled = false, handleSave, validator) {
8
- // used to switch the table into editing mode
9
- const [isEditing, toggleEditing] = React__default.useState(false);
10
- // used to switch the editing between "detailed" mode
11
- const [isDetailedMode, toggleDetailedMode] = React__default.useState(false);
12
- // store the last focused cell, so that up/down arrow key navigation remains in the same column
13
- const [lastFocusedCellIndex, setLastFocusedCellIndex] = useLastFocusedCellIndex();
14
- // store pending changes for each row
15
- // changes are saved as soon as the active row changes, so in most cases this will only contain the active row's changes
16
- // but not always - if validation or server requests fail when saving, those rows remain until the failure is resolved
17
- const pendingChangesFns = usePendingChanges(isEnabled, handleSave, validator);
18
- // if focus leaves the table in any way, trigger a save
19
- const handleBlur = React__default.useCallback(event => {
20
- if (event.relatedTarget !== event.currentTarget && !isElementInsideOrTriggeredFromContainer(event.relatedTarget, event.currentTarget)) {
21
- pendingChangesFns.saveChanges();
22
- }
23
- }, [pendingChangesFns.saveChanges]);
24
- // TODO: using useGlobalKeyDown prevents trigger when focused on inputs, but it's more "proper"
25
- useGlobalKeyDown(isEnabled && isEditing ? {
26
- key: 's',
27
- meta: true,
28
- shift: false
29
- } : undefined, event => {
30
- event.preventDefault();
31
- pendingChangesFns.saveChanges();
32
- });
33
- return {
34
- isEnabled,
35
- isEditing,
36
- isDetailedMode,
37
- toggleDetailedMode: isEnabled ? toggleDetailedMode : () => undefined,
38
- toggleEditing: isEnabled ? toggleEditing : () => undefined,
39
- lastFocusedCellIndex,
40
- setLastFocusedCellIndex,
41
- ...pendingChangesFns,
42
- handleBlur: isEnabled && isEditing ? handleBlur : () => undefined
43
- };
44
- }
45
- function usePendingChanges(isEnabled, handleSave, validator) {
46
- const saveChanges = function (rowId = undefined) {
47
- try {
48
- if (!handleSave) {
49
- console.warn('Tried to save, but Table has no onSave handler');
50
- return Promise.resolve();
51
- }
52
- // we save back to pendingChanges, so make a copy of it's state when save was triggered
53
- const changesToSave = rowId ? {
54
- [rowId]: pendingChanges[rowId]
55
- } : {
56
- ...pendingChanges
57
- };
58
- const changes = Object.keys(changesToSave);
59
- if (changes.length) {
60
- changes.map(function (rowId) {
61
- try {
62
- let _exit = false;
63
- const pendingChange = changesToSave[rowId];
64
- const changeSet = getChangesetFromChanges(pendingChange);
65
- return Promise.resolve(_catch(function () {
66
- function _temp3(_result) {
67
- return _exit ? _result : Promise.resolve(handleSave(changeSet)).then(function () {
68
- // cleanup changes, we don't need them after saving
69
- resetChanges(rowId);
70
- setRowSaveStatus(rowId, 'complete');
71
- });
72
- }
73
- // set saving = true
74
- setRowSaveStatus(rowId, 'pending');
75
- // re-run validation, maybe a cell is already invalid but has never been blurred
76
- const _temp2 = function () {
77
- if (validator) {
78
- return Promise.resolve(validator(changeSet)).then(function (errors) {
79
- if (errors && Object.keys(errors).length) {
80
- throw errors;
81
- }
82
- });
83
- }
84
- }();
85
- return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2); // send new data to the server
86
- }, function (error) {
87
- // the onSave handler should throw errors when something fails, e.g. validation, network errors etc
88
- // this code handles those errors and maps them either to row errors or cell specific errors
89
- let rowError;
90
- let cellErrors;
91
- if (typeof error === 'string') {
92
- rowError = error;
93
- } else if (error instanceof Error) {
94
- var _error$response;
95
- rowError = error.message;
96
- // most of our apis return error objects within this shape
97
- if (typeof ((_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.data) === 'object') {
98
- var _error$response2;
99
- cellErrors = (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : _error$response2.data;
100
- }
101
- } else if (typeof error === 'object') {
102
- cellErrors = error;
103
- }
104
- if (rowError || cellErrors) {
105
- setPendingChanges(currentChanges => {
106
- var _nextChanges$rowId$_m, _nextChanges$rowId$_m2;
107
- const nextChanges = {
108
- ...currentChanges
109
- };
110
- nextChanges[rowId]._meta.errors = {
111
- row: rowError,
112
- cells: cellErrors,
113
- hasShownErrorAlert: (_nextChanges$rowId$_m = (_nextChanges$rowId$_m2 = nextChanges[rowId]._meta.errors) === null || _nextChanges$rowId$_m2 === void 0 ? void 0 : _nextChanges$rowId$_m2.hasShownErrorAlert) !== null && _nextChanges$rowId$_m !== void 0 ? _nextChanges$rowId$_m : false
114
- };
115
- return nextChanges;
116
- });
117
- }
118
- setRowSaveStatus(rowId, undefined);
119
- }));
120
- } catch (e) {
121
- return Promise.reject(e);
122
- }
123
- });
124
- }
125
- return Promise.resolve();
126
- } catch (e) {
127
- return Promise.reject(e);
128
- }
129
- };
130
- const validateCell = function (cell) {
131
- try {
132
- if (!validator || !isEnabled) {
133
- return Promise.resolve();
134
- }
135
- const changeSet = getChangesetFromChanges(pendingChanges[cell.row.id]);
136
- // only validate if the cell being blurred actually has any changes
137
- const _temp = function () {
138
- if (cell.column.id in changeSet) {
139
- return Promise.resolve(validator(changeSet)).then(function (errors) {
140
- setPendingChanges(currentChanges => {
141
- const nextChanges = {
142
- ...currentChanges
143
- };
144
- nextChanges[cell.row.id]._meta = {
145
- ...nextChanges[cell.row.id]._meta,
146
- errors: {
147
- ...nextChanges[cell.row.id]._meta.errors,
148
- cells: errors,
149
- hasShownErrorAlert: Object.keys(errors).length && !nextChanges[cell.row.id]._meta.errors.hasShownErrorAlert ? false : nextChanges[cell.row.id]._meta.errors.hasShownErrorAlert
150
- }
151
- };
152
- return nextChanges;
153
- });
154
- });
155
- }
156
- }();
157
- return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
158
- } catch (e) {
159
- return Promise.reject(e);
160
- }
161
- };
162
- const [pendingChanges, setPendingChanges] = React__default.useState({});
163
- // we maintain save status as separate state because 'complete' needs to briefly show after pendingChanges are deleted
164
- const [saveStates, setSaveState] = React__default.useState({});
165
- function getCellValue(cell) {
166
- var _pendingChanges$cell$;
167
- return (_pendingChanges$cell$ = pendingChanges[cell.row.id]) === null || _pendingChanges$cell$ === void 0 ? void 0 : _pendingChanges$cell$[cell.column.id];
168
- }
169
- function getCellError(cell) {
170
- var _pendingChanges$cell$2, _pendingChanges$cell$3, _pendingChanges$cell$4;
171
- return (_pendingChanges$cell$2 = pendingChanges[cell.row.id]) === null || _pendingChanges$cell$2 === void 0 ? void 0 : (_pendingChanges$cell$3 = _pendingChanges$cell$2._meta.errors) === null || _pendingChanges$cell$3 === void 0 ? void 0 : (_pendingChanges$cell$4 = _pendingChanges$cell$3.cells) === null || _pendingChanges$cell$4 === void 0 ? void 0 : _pendingChanges$cell$4[cell.column.id];
172
- }
173
- const setCellValue = React__default.useCallback(function (cell, change, rowIndex) {
174
- setPendingChanges(currentChanges => {
175
- var _currentChanges$cell$, _currentChanges$cell$2, _currentChanges$cell$3;
176
- const nextChanges = {
177
- ...currentChanges
178
- };
179
- const rowChanges = {
180
- ...currentChanges[cell.row.id],
181
- _meta: {
182
- ...((_currentChanges$cell$ = currentChanges[cell.row.id]) === null || _currentChanges$cell$ === void 0 ? void 0 : _currentChanges$cell$._meta),
183
- original: cell.row.original,
184
- moveReason: {
185
- ...((_currentChanges$cell$2 = currentChanges[cell.row.id]) === null || _currentChanges$cell$2 === void 0 ? void 0 : _currentChanges$cell$2._meta.moveReason)
186
- },
187
- errors: {
188
- ...((_currentChanges$cell$3 = currentChanges[cell.row.id]) === null || _currentChanges$cell$3 === void 0 ? void 0 : _currentChanges$cell$3._meta.errors)
189
- }
190
- }
191
- };
192
- // update if the change is different to the original (saved) value,
193
- // otherwise remove any change - no point saving the same value
194
- if (change !== cell.row.original[cell.column.id]) {
195
- rowChanges[cell.column.id] = change;
196
- // determine if the row will move position based on this change, and save why it will move
197
- const reason = willRowMove(cell, change, rowIndex);
198
- if (reason) {
199
- rowChanges._meta.moveReason[cell.column.id] = reason;
200
- } else {
201
- delete rowChanges._meta.moveReason[cell.column.id];
202
- }
203
- } else {
204
- delete rowChanges[cell.column.id];
205
- }
206
- // set the changes for the row...
207
- // or delete if there are no changes left, so that we don't store changes with unchanged data
208
- if (Object.keys(rowChanges).filter(k => k !== '_meta').length) {
209
- nextChanges[cell.row.id] = rowChanges;
210
- } else {
211
- delete nextChanges[cell.row.id];
212
- }
213
- return nextChanges;
214
- });
215
- }, []);
216
- function hasRowErrors(rowId) {
217
- var _pendingChanges$rowId, _pendingChanges$rowId2, _pendingChanges$rowId3, _pendingChanges$rowId4, _pendingChanges$rowId5;
218
- if (!isEnabled) {
219
- return false;
220
- }
221
- return !!((_pendingChanges$rowId = pendingChanges[rowId]) !== null && _pendingChanges$rowId !== void 0 && (_pendingChanges$rowId2 = _pendingChanges$rowId._meta.errors) !== null && _pendingChanges$rowId2 !== void 0 && _pendingChanges$rowId2.row) || !!Object.keys((_pendingChanges$rowId3 = (_pendingChanges$rowId4 = pendingChanges[rowId]) === null || _pendingChanges$rowId4 === void 0 ? void 0 : (_pendingChanges$rowId5 = _pendingChanges$rowId4._meta.errors) === null || _pendingChanges$rowId5 === void 0 ? void 0 : _pendingChanges$rowId5.cells) !== null && _pendingChanges$rowId3 !== void 0 ? _pendingChanges$rowId3 : {}).length;
222
- }
223
- function hasRowErrorsSeen(rowId) {
224
- var _pendingChanges$rowId6;
225
- if (!isEnabled) {
226
- return false;
227
- }
228
- return hasRowErrors(rowId) && !!((_pendingChanges$rowId6 = pendingChanges[rowId]._meta.errors) !== null && _pendingChanges$rowId6 !== void 0 && _pendingChanges$rowId6.hasShownErrorAlert);
229
- }
230
- function setRowErrorsSeen(rowId) {
231
- var _pendingChanges$rowId7;
232
- if (((_pendingChanges$rowId7 = pendingChanges[rowId]._meta.errors) === null || _pendingChanges$rowId7 === void 0 ? void 0 : _pendingChanges$rowId7.hasShownErrorAlert) === false) {
233
- setPendingChanges(currentChanges => {
234
- const nextChanges = {
235
- ...currentChanges
236
- };
237
- nextChanges[rowId]._meta.errors = {
238
- ...nextChanges[rowId]._meta.errors,
239
- hasShownErrorAlert: true
240
- };
241
- return nextChanges;
242
- });
243
- }
244
- }
245
- function getRowSaveStatus(rowId) {
246
- if (!isEnabled) {
247
- return false;
248
- }
249
- return saveStates[rowId];
250
- }
251
- function setRowSaveStatus(rowId, status) {
252
- setSaveState(currentStates => {
253
- const nextStates = {
254
- ...currentStates
255
- };
256
- if (status) {
257
- nextStates[rowId] = status;
258
- } else {
259
- delete nextStates[rowId];
260
- }
261
- return nextStates;
262
- });
263
- }
264
- function getRowMoveReason(rowId) {
265
- var _pendingChanges$rowId8;
266
- return (_pendingChanges$rowId8 = pendingChanges[rowId]) !== null && _pendingChanges$rowId8 !== void 0 && _pendingChanges$rowId8._meta.moveReason ? Object.values(pendingChanges[rowId]._meta.moveReason)[0] : undefined;
267
- }
268
- function hasChanges(rowId) {
269
- if (!isEnabled) {
270
- return false;
271
- }
272
- return rowId ? !!pendingChanges[rowId] : !!Object.keys(pendingChanges).length;
273
- }
274
- function hasErrors(table, tableRef) {
275
- var _tableRef$current;
276
- if (!isEnabled) {
277
- return false;
278
- }
279
- const tableMeta = table.options.meta;
280
- const focusIsInsideTable = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.contains(document.activeElement);
281
- let activeRow;
282
- if (tableMeta.rowActive.rowActiveIndex !== undefined) {
283
- activeRow = table.getRowModel().rows[tableMeta.rowActive.rowActiveIndex];
284
- }
285
- return Object.keys(getErrors().filter(error => {
286
- var _activeRow;
287
- if ((_activeRow = activeRow) !== null && _activeRow !== void 0 && _activeRow.id && focusIsInsideTable) {
288
- var _activeRow2;
289
- return error.rowId === ((_activeRow2 = activeRow) === null || _activeRow2 === void 0 ? void 0 : _activeRow2.id) ? error.pendingChange._meta.errors.hasShownErrorAlert : true;
290
- }
291
- return true;
292
- })).length;
293
- }
294
- function getErrors() {
295
- return Object.keys(pendingChanges).filter(hasRowErrors).map(rowId => ({
296
- rowId,
297
- pendingChange: pendingChanges[rowId]
298
- }));
299
- }
300
- function resetChanges(rowId) {
301
- setPendingChanges(currentChanges => {
302
- const nextChanges = {
303
- ...currentChanges
304
- };
305
- delete nextChanges[rowId];
306
- return nextChanges;
307
- });
308
- }
309
- return {
310
- getCellValue,
311
- getCellError,
312
- setCellValue,
313
- validateCell,
314
- hasChanges,
315
- hasErrors,
316
- getErrors,
317
- saveChanges,
318
- resetChanges,
319
- hasRowErrors,
320
- hasRowErrorsSeen,
321
- setRowErrorsSeen,
322
- getRowSaveStatus,
323
- setRowSaveStatus,
324
- getRowMoveReason
325
- };
326
- }
327
- function useLastFocusedCellIndex() {
328
- // store the last focused cell, so that up/down arrow key navigation remains in the same column
329
- const lastFocusedCellIndexRef = React__default.useRef(undefined);
330
- const setLastFocusedCellIndex = React__default.useCallback(index => {
331
- lastFocusedCellIndexRef.current = index;
332
- }, []);
333
- return [lastFocusedCellIndexRef.current, setLastFocusedCellIndex];
334
- }
335
- function getChangesetFromChanges(changes) {
336
- // extract the original data from the row changes
337
- const {
338
- _meta,
339
- ...changeset
340
- } = changes !== null && changes !== void 0 ? changes : {};
341
- // and mix them in with the changes, ready to send to the server
342
- return {
343
- ...(_meta === null || _meta === void 0 ? void 0 : _meta.original),
344
- ...changeset
345
- };
346
- }
347
-
348
- export { useTableEditing };
349
- //# sourceMappingURL=useTableEditing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTableEditing.js","sources":["../../../../../../../../src/components/Table3/features/useTableEditing.ts"],"sourcesContent":["import React from 'react';\nimport { Cell as ReactTableCell, Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { TableEditingSaveHandler, TableEditingValidatorFn } from '../types';\nimport { isElementInsideOrTriggeredFromContainer } from '../../../utils/dom';\nimport { useGlobalKeyDown } from '../../../hooks/useGlobalKeyDown';\nimport { willRowMove } from '../util/editing';\nimport { TableRef } from '../../../primitives/Table/types';\n\nexport function useTableEditing<TType = unknown>(\n isEnabled = false,\n handleSave: TableEditingSaveHandler<TType> | undefined,\n validator: TableEditingValidatorFn<TType> | undefined\n) {\n // used to switch the table into editing mode\n const [isEditing, toggleEditing] = React.useState(false);\n\n // used to switch the editing between \"detailed\" mode\n const [isDetailedMode, toggleDetailedMode] = React.useState(false);\n\n // store the last focused cell, so that up/down arrow key navigation remains in the same column\n const [lastFocusedCellIndex, setLastFocusedCellIndex] = useLastFocusedCellIndex();\n\n // store pending changes for each row\n // changes are saved as soon as the active row changes, so in most cases this will only contain the active row's changes\n // but not always - if validation or server requests fail when saving, those rows remain until the failure is resolved\n const pendingChangesFns = usePendingChanges<TType>(isEnabled, handleSave, validator);\n\n // if focus leaves the table in any way, trigger a save\n const handleBlur = React.useCallback(\n (event: React.FocusEvent<HTMLTableElement>) => {\n if (\n event.relatedTarget !== event.currentTarget &&\n !isElementInsideOrTriggeredFromContainer(event.relatedTarget, event.currentTarget)\n ) {\n pendingChangesFns.saveChanges();\n }\n },\n [pendingChangesFns.saveChanges]\n );\n\n // TODO: using useGlobalKeyDown prevents trigger when focused on inputs, but it's more \"proper\"\n useGlobalKeyDown(isEnabled && isEditing ? { key: 's', meta: true, shift: false } : undefined, event => {\n event.preventDefault();\n pendingChangesFns.saveChanges();\n });\n\n return {\n isEnabled,\n isEditing,\n isDetailedMode,\n toggleDetailedMode: isEnabled ? toggleDetailedMode : () => undefined,\n toggleEditing: isEnabled ? toggleEditing : () => undefined,\n lastFocusedCellIndex,\n setLastFocusedCellIndex,\n ...pendingChangesFns,\n handleBlur: isEnabled && isEditing ? handleBlur : () => undefined,\n };\n}\n\ntype SaveState = 'pending' | 'complete';\ntype PendingChange<TType = unknown> = Partial<TType> & {\n _meta: {\n original: TType;\n moveReason: Record<string, 'search' | 'sorting' | 'filter'>;\n errors: {\n row: string;\n cells: Record<string, string>;\n hasShownErrorAlert: boolean;\n };\n status?: SaveState;\n };\n};\n\nfunction usePendingChanges<TType = unknown>(\n isEnabled: boolean,\n handleSave: TableEditingSaveHandler<TType> | undefined,\n validator: TableEditingValidatorFn<TType> | undefined\n) {\n const [pendingChanges, setPendingChanges] = React.useState<Record<string, PendingChange<TType>>>({});\n // we maintain save status as separate state because 'complete' needs to briefly show after pendingChanges are deleted\n const [saveStates, setSaveState] = React.useState<Record<string, SaveState>>({});\n\n function getCellValue<T extends TType>(cell: ReactTableCell<T, unknown>): unknown | undefined {\n return pendingChanges[cell.row.id]?.[cell.column.id];\n }\n\n function getCellError<T extends TType>(cell: ReactTableCell<T, unknown>): string | undefined {\n return pendingChanges[cell.row.id]?._meta.errors?.cells?.[cell.column.id];\n }\n\n const setCellValue = React.useCallback(function <T extends TType>(\n cell: ReactTableCell<T, unknown>,\n change: unknown,\n rowIndex: number\n ) {\n setPendingChanges(currentChanges => {\n const nextChanges = { ...currentChanges };\n const rowChanges = {\n ...currentChanges[cell.row.id],\n _meta: {\n ...currentChanges[cell.row.id]?._meta,\n original: cell.row.original,\n moveReason: {\n ...currentChanges[cell.row.id]?._meta.moveReason,\n },\n errors: {\n ...currentChanges[cell.row.id]?._meta.errors,\n },\n },\n } as PendingChange<T>;\n\n // update if the change is different to the original (saved) value,\n // otherwise remove any change - no point saving the same value\n if (change !== cell.row.original[cell.column.id]) {\n rowChanges[cell.column.id] = change;\n\n // determine if the row will move position based on this change, and save why it will move\n const reason = willRowMove(cell, change, rowIndex);\n\n if (reason) {\n rowChanges._meta.moveReason[cell.column.id] = reason;\n } else {\n delete rowChanges._meta.moveReason[cell.column.id];\n }\n } else {\n delete rowChanges[cell.column.id];\n }\n\n // set the changes for the row...\n // or delete if there are no changes left, so that we don't store changes with unchanged data\n if (Object.keys(rowChanges).filter(k => k !== '_meta').length) {\n nextChanges[cell.row.id] = rowChanges;\n } else {\n delete nextChanges[cell.row.id];\n }\n\n return nextChanges;\n });\n },\n []);\n\n async function validateCell<T extends TType>(cell: ReactTableCell<T, unknown>) {\n if (!validator || !isEnabled) {\n return;\n }\n\n const changeSet = getChangesetFromChanges(pendingChanges[cell.row.id]);\n\n // only validate if the cell being blurred actually has any changes\n if (cell.column.id in changeSet) {\n const errors = ((await validator(changeSet)) ?? {}) as Record<string, string>;\n\n setPendingChanges(currentChanges => {\n const nextChanges = { ...currentChanges };\n nextChanges[cell.row.id]._meta = {\n ...nextChanges[cell.row.id]._meta,\n errors: {\n ...nextChanges[cell.row.id]._meta.errors,\n cells: errors,\n hasShownErrorAlert:\n Object.keys(errors).length && !nextChanges[cell.row.id]._meta.errors.hasShownErrorAlert\n ? false\n : nextChanges[cell.row.id]._meta.errors.hasShownErrorAlert,\n },\n };\n return nextChanges;\n });\n }\n }\n\n function hasRowErrors(rowId: string) {\n if (!isEnabled) {\n return false;\n }\n\n return (\n !!pendingChanges[rowId]?._meta.errors?.row || !!Object.keys(pendingChanges[rowId]?._meta.errors?.cells ?? {}).length\n );\n }\n\n function hasRowErrorsSeen(rowId: string) {\n if (!isEnabled) {\n return false;\n }\n\n return hasRowErrors(rowId) && !!pendingChanges[rowId]._meta.errors?.hasShownErrorAlert;\n }\n\n function setRowErrorsSeen(rowId: string) {\n if (pendingChanges[rowId]._meta.errors?.hasShownErrorAlert === false) {\n setPendingChanges(currentChanges => {\n const nextChanges = { ...currentChanges };\n nextChanges[rowId]._meta.errors = {\n ...nextChanges[rowId]._meta.errors,\n hasShownErrorAlert: true,\n };\n return nextChanges;\n });\n }\n }\n\n function getRowSaveStatus(rowId: string) {\n if (!isEnabled) {\n return false;\n }\n\n return saveStates[rowId];\n }\n\n function setRowSaveStatus(rowId: string, status: 'pending' | 'complete' | undefined) {\n setSaveState(currentStates => {\n const nextStates = { ...currentStates };\n\n if (status) {\n nextStates[rowId] = status;\n } else {\n delete nextStates[rowId];\n }\n\n return nextStates;\n });\n }\n\n function getRowMoveReason(rowId: string) {\n return pendingChanges[rowId]?._meta.moveReason ? Object.values(pendingChanges[rowId]._meta.moveReason)[0] : undefined;\n }\n\n function hasChanges(rowId?: string) {\n if (!isEnabled) {\n return false;\n }\n\n return rowId ? !!pendingChanges[rowId] : !!Object.keys(pendingChanges).length;\n }\n\n function hasErrors<T extends TType>(table: ReactTable<T>, tableRef: React.RefObject<TableRef>) {\n if (!isEnabled) {\n return false;\n }\n\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n const focusIsInsideTable = tableRef.current?.contains(document.activeElement);\n\n let activeRow;\n\n if (tableMeta.rowActive.rowActiveIndex !== undefined) {\n activeRow = table.getRowModel().rows[tableMeta.rowActive.rowActiveIndex];\n }\n\n return Object.keys(\n getErrors().filter(error => {\n if (activeRow?.id && focusIsInsideTable) {\n return error.rowId === activeRow?.id ? error.pendingChange._meta.errors.hasShownErrorAlert : true;\n }\n\n return true;\n })\n ).length;\n }\n\n function getErrors<T extends TType>() {\n return Object.keys(pendingChanges)\n .filter(hasRowErrors)\n .map(rowId => ({ rowId, pendingChange: pendingChanges[rowId] as PendingChange<T> }));\n }\n\n function resetChanges(rowId: string) {\n setPendingChanges(currentChanges => {\n const nextChanges = { ...currentChanges };\n delete nextChanges[rowId];\n return nextChanges;\n });\n }\n\n async function saveChanges(rowId: string | undefined = undefined) {\n if (!handleSave) {\n console.warn('Tried to save, but Table has no onSave handler');\n return;\n }\n\n // we save back to pendingChanges, so make a copy of it's state when save was triggered\n const changesToSave = rowId ? { [rowId]: pendingChanges[rowId] } : { ...pendingChanges };\n const changes = Object.keys(changesToSave);\n\n if (changes.length) {\n changes.map(async rowId => {\n const pendingChange = changesToSave[rowId];\n\n const changeSet = getChangesetFromChanges(pendingChange);\n\n try {\n // set saving = true\n setRowSaveStatus(rowId, 'pending');\n\n // re-run validation, maybe a cell is already invalid but has never been blurred\n if (validator) {\n const errors = await validator(changeSet);\n\n if (errors && Object.keys(errors).length) {\n throw errors;\n }\n }\n\n // send new data to the server\n await handleSave(changeSet);\n\n // cleanup changes, we don't need them after saving\n resetChanges(rowId);\n setRowSaveStatus(rowId, 'complete');\n } catch (error) {\n // the onSave handler should throw errors when something fails, e.g. validation, network errors etc\n // this code handles those errors and maps them either to row errors or cell specific errors\n let rowError;\n let cellErrors;\n\n if (typeof error === 'string') {\n rowError = error;\n } else if (error instanceof Error) {\n rowError = error.message;\n\n // most of our apis return error objects within this shape\n if (typeof (error as any).response?.data === 'object') {\n cellErrors = (error as any).response?.data;\n }\n } else if (typeof error === 'object') {\n cellErrors = error;\n }\n\n if (rowError || cellErrors) {\n setPendingChanges(currentChanges => {\n const nextChanges = { ...currentChanges };\n nextChanges[rowId]._meta.errors = {\n row: rowError,\n cells: cellErrors,\n hasShownErrorAlert: nextChanges[rowId]._meta.errors?.hasShownErrorAlert ?? false,\n };\n return nextChanges;\n });\n }\n\n setRowSaveStatus(rowId, undefined);\n }\n });\n }\n }\n\n return {\n getCellValue,\n getCellError,\n setCellValue,\n validateCell,\n hasChanges,\n hasErrors,\n getErrors,\n saveChanges,\n resetChanges,\n hasRowErrors,\n hasRowErrorsSeen,\n setRowErrorsSeen,\n getRowSaveStatus,\n setRowSaveStatus,\n getRowMoveReason,\n };\n}\n\nfunction useLastFocusedCellIndex(): [number | undefined, (index: number | undefined) => void] {\n // store the last focused cell, so that up/down arrow key navigation remains in the same column\n const lastFocusedCellIndexRef = React.useRef<number | undefined>(undefined);\n const setLastFocusedCellIndex = React.useCallback((index: number | undefined) => {\n lastFocusedCellIndexRef.current = index;\n }, []);\n\n return [lastFocusedCellIndexRef.current, setLastFocusedCellIndex];\n}\n\nfunction getChangesetFromChanges<TType = unknown>(changes: PendingChange<TType>): TType {\n // extract the original data from the row changes\n const { _meta, ...changeset } = changes ?? {};\n // and mix them in with the changes, ready to send to the server\n return { ..._meta?.original, ...changeset };\n}\n"],"names":["useTableEditing","isEnabled","handleSave","validator","isEditing","toggleEditing","React","useState","isDetailedMode","toggleDetailedMode","lastFocusedCellIndex","setLastFocusedCellIndex","useLastFocusedCellIndex","pendingChangesFns","usePendingChanges","handleBlur","useCallback","event","relatedTarget","currentTarget","isElementInsideOrTriggeredFromContainer","saveChanges","useGlobalKeyDown","key","meta","shift","undefined","preventDefault","rowId","console","warn","Promise","resolve","changesToSave","pendingChanges","changes","Object","keys","length","map","pendingChange","changeSet","getChangesetFromChanges","_catch","_temp3","_result","_exit","then","resetChanges","setRowSaveStatus","_temp2","errors","error","rowError","cellErrors","Error","_error$response","message","response","data","_error$response2","setPendingChanges","currentChanges","nextChanges","_meta","row","cells","hasShownErrorAlert","_nextChanges$rowId$_m","_nextChanges$rowId$_m2","e","reject","validateCell","cell","id","_temp","column","saveStates","setSaveState","getCellValue","_pendingChanges$cell$","getCellError","_pendingChanges$cell$2","_pendingChanges$cell$3","_pendingChanges$cell$4","setCellValue","change","rowIndex","rowChanges","_currentChanges$cell$","original","moveReason","_currentChanges$cell$2","_currentChanges$cell$3","reason","willRowMove","filter","k","hasRowErrors","_pendingChanges$rowId","_pendingChanges$rowId2","_pendingChanges$rowId3","_pendingChanges$rowId4","_pendingChanges$rowId5","hasRowErrorsSeen","_pendingChanges$rowId6","setRowErrorsSeen","_pendingChanges$rowId7","getRowSaveStatus","status","currentStates","nextStates","getRowMoveReason","_pendingChanges$rowId8","values","hasChanges","hasErrors","table","tableRef","tableMeta","options","focusIsInsideTable","_tableRef$current","current","contains","document","activeElement","activeRow","rowActive","rowActiveIndex","getRowModel","rows","getErrors","_activeRow","_activeRow2","lastFocusedCellIndexRef","useRef","index","changeset"],"mappings":";;;;;;SAQgBA,eAAeA,CAC3BC,SAAS,GAAG,KAAK,EACjBC,UAAsD,EACtDC,SAAqD;;EAGrD,MAAM,CAACC,SAAS,EAAEC,aAAa,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;;EAGxD,MAAM,CAACC,cAAc,EAAEC,kBAAkB,CAAC,GAAGH,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;;EAGlE,MAAM,CAACG,oBAAoB,EAAEC,uBAAuB,CAAC,GAAGC,uBAAuB,EAAE;;;;EAKjF,MAAMC,iBAAiB,GAAGC,iBAAiB,CAAQb,SAAS,EAAEC,UAAU,EAAEC,SAAS,CAAC;;EAGpF,MAAMY,UAAU,GAAGT,cAAK,CAACU,WAAW,CAC/BC,KAAyC;IACtC,IACIA,KAAK,CAACC,aAAa,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,aAAPA,OAAO,cAAPA,OAAO,GAAI,EAAE;;EAE7C,OAAO;IAAE,IAAG6B,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAE0B,QAAQ;IAAE,GAAGgD;GAAW;AAC/C;;;;"}
@@ -1,49 +0,0 @@
1
- import React__default from 'react';
2
- import { useLazyEffect } from '../../../hooks/useLazyEffect.js';
3
-
4
- function useTableEditingListener(table) {
5
- const tableMeta = table.options.meta;
6
- const saveChanges = () => {
7
- requestAnimationFrame(() => {
8
- tableMeta.editing.saveChanges();
9
- });
10
- };
11
- // save when the row changes
12
- useLazyEffect(() => {
13
- if (tableMeta.editing.isEditing) {
14
- saveChanges();
15
- }
16
- }, [tableMeta.rowActive.rowActiveIndex]);
17
- useLazyEffect(() => {
18
- if (tableMeta.editing.isEditing) {
19
- if (tableMeta.rowActive.rowActiveIndex === undefined) {
20
- tableMeta.rowActive.setRowActiveIndex(0);
21
- }
22
- } else {
23
- // save
24
- saveChanges();
25
- // reset detailed mode
26
- tableMeta.editing.toggleDetailedMode(false);
27
- // reset the last index back to the first focusable element, when editing gets turned off
28
- tableMeta.editing.setLastFocusedCellIndex(undefined);
29
- }
30
- }, [tableMeta.editing.isEditing]);
31
- // show a warning if the user navigates away without triggering save, such as using the browser back/forward button
32
- const hasChanges = tableMeta.editing.hasChanges();
33
- React__default.useEffect(() => {
34
- function showUnsavedChangesWarning(event) {
35
- if (tableMeta.editing.isEditing && hasChanges) {
36
- event.returnValue = true;
37
- return true;
38
- }
39
- return false;
40
- }
41
- window.addEventListener('beforeunload', showUnsavedChangesWarning);
42
- return () => {
43
- window.removeEventListener('beforeunload', showUnsavedChangesWarning);
44
- };
45
- }, [tableMeta.editing.isEditing, hasChanges]);
46
- }
47
-
48
- export { useTableEditingListener };
49
- //# sourceMappingURL=useTableEditingListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTableEditingListener.js","sources":["../../../../../../../../src/components/Table3/listeners/useTableEditingListener.ts"],"sourcesContent":["import React from 'react';\nimport { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport { useLazyEffect } from '../../../hooks/useLazyEffect';\n\nexport function useTableEditingListener<TType = unknown>(table: ReactTable<TType>) {\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const saveChanges = () => {\n requestAnimationFrame(() => {\n tableMeta.editing.saveChanges();\n });\n };\n\n // save when the row changes\n useLazyEffect(() => {\n if (tableMeta.editing.isEditing) {\n saveChanges();\n }\n }, [tableMeta.rowActive.rowActiveIndex]);\n\n useLazyEffect(() => {\n if (tableMeta.editing.isEditing) {\n if (tableMeta.rowActive.rowActiveIndex === undefined) {\n tableMeta.rowActive.setRowActiveIndex(0);\n }\n } else {\n // save\n saveChanges();\n // reset detailed mode\n tableMeta.editing.toggleDetailedMode(false);\n // reset the last index back to the first focusable element, when editing gets turned off\n tableMeta.editing.setLastFocusedCellIndex(undefined);\n }\n }, [tableMeta.editing.isEditing]);\n\n // show a warning if the user navigates away without triggering save, such as using the browser back/forward button\n const hasChanges = tableMeta.editing.hasChanges();\n\n React.useEffect(() => {\n function showUnsavedChangesWarning(event: BeforeUnloadEvent) {\n if (tableMeta.editing.isEditing && hasChanges) {\n event.returnValue = true;\n return true;\n }\n\n return false;\n }\n\n window.addEventListener('beforeunload', showUnsavedChangesWarning);\n\n return () => {\n window.removeEventListener('beforeunload', showUnsavedChangesWarning);\n };\n }, [tableMeta.editing.isEditing, hasChanges]);\n}\n"],"names":["useTableEditingListener","table","tableMeta","options","meta","saveChanges","requestAnimationFrame","editing","useLazyEffect","isEditing","rowActive","rowActiveIndex","undefined","setRowActiveIndex","toggleDetailedMode","setLastFocusedCellIndex","hasChanges","React","useEffect","showUnsavedChangesWarning","event","returnValue","window","addEventListener","removeEventListener"],"mappings":";;;SAIgBA,uBAAuBA,CAAkBC,KAAwB;EAC7E,MAAMC,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAA6B;EAE7D,MAAMC,WAAW,GAAGA;IAChBC,qBAAqB,CAAC;MAClBJ,SAAS,CAACK,OAAO,CAACF,WAAW,EAAE;KAClC,CAAC;GACL;;EAGDG,aAAa,CAAC;IACV,IAAIN,SAAS,CAACK,OAAO,CAACE,SAAS,EAAE;MAC7BJ,WAAW,EAAE;;GAEpB,EAAE,CAACH,SAAS,CAACQ,SAAS,CAACC,cAAc,CAAC,CAAC;EAExCH,aAAa,CAAC;IACV,IAAIN,SAAS,CAACK,OAAO,CAACE,SAAS,EAAE;MAC7B,IAAIP,SAAS,CAACQ,SAAS,CAACC,cAAc,KAAKC,SAAS,EAAE;QAClDV,SAAS,CAACQ,SAAS,CAACG,iBAAiB,CAAC,CAAC,CAAC;;KAE/C,MAAM;;MAEHR,WAAW,EAAE;;MAEbH,SAAS,CAACK,OAAO,CAACO,kBAAkB,CAAC,KAAK,CAAC;;MAE3CZ,SAAS,CAACK,OAAO,CAACQ,uBAAuB,CAACH,SAAS,CAAC;;GAE3D,EAAE,CAACV,SAAS,CAACK,OAAO,CAACE,SAAS,CAAC,CAAC;;EAGjC,MAAMO,UAAU,GAAGd,SAAS,CAACK,OAAO,CAACS,UAAU,EAAE;EAEjDC,cAAK,CAACC,SAAS,CAAC;IACZ,SAASC,yBAAyBA,CAACC,KAAwB;MACvD,IAAIlB,SAAS,CAACK,OAAO,CAACE,SAAS,IAAIO,UAAU,EAAE;QAC3CI,KAAK,CAACC,WAAW,GAAG,IAAI;QACxB,OAAO,IAAI;;MAGf,OAAO,KAAK;;IAGhBC,MAAM,CAACC,gBAAgB,CAAC,cAAc,EAAEJ,yBAAyB,CAAC;IAElE,OAAO;MACHG,MAAM,CAACE,mBAAmB,CAAC,cAAc,EAAEL,yBAAyB,CAAC;KACxE;GACJ,EAAE,CAACjB,SAAS,CAACK,OAAO,CAACE,SAAS,EAAEO,UAAU,CAAC,CAAC;AACjD;;;;"}
@@ -1,36 +0,0 @@
1
- import React__default from 'react';
2
- import { useTable } from '../../primitives/Table/Core/useTable.js';
3
- import { useTableEditingListener } from './listeners/useTableEditingListener.js';
4
- import { useTableEditing } from './features/useTableEditing.js';
5
- import { Cell } from './components/Columns/Cell/Cell.js';
6
- import { EditingActionMenu } from './components/Columns/Internal/EditingActionsMenu.js';
7
- import { Row } from './components/Row/Row.js';
8
-
9
- const RENDERERS = {
10
- row: Row,
11
- cell: Cell
12
- };
13
- function useTable3(props, ref) {
14
- const editing = useTableEditing(props.enableEditing, props.onSave, props.validator);
15
- const extendedProps = {
16
- ...props,
17
- enableRowActions: editing.isEditing ? true : props.enableRowActions,
18
- rowActions: editing.isEditing ? [(_, rowId) => ( /*#__PURE__*/React__default.createElement(EditingActionMenu, {
19
- hasChanges: editing.hasChanges(rowId),
20
- hasErrors: editing.hasRowErrors(rowId),
21
- onClear: () => editing.resetChanges(rowId),
22
- onSave: () => editing.saveChanges(rowId),
23
- onExit: () => editing.toggleEditing(false)
24
- }))] : props.rowActions
25
- };
26
- const meta = {
27
- editing
28
- };
29
- const table = useTable(extendedProps, ref, RENDERERS, meta);
30
- // listeners
31
- useTableEditingListener(table.instance);
32
- return table;
33
- }
34
-
35
- export { useTable3 };
36
- //# sourceMappingURL=useTable3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTable3.js","sources":["../../../../../../../src/components/Table3/useTable3.tsx"],"sourcesContent":["import React from 'react';\nimport { RowData } from '@tanstack/react-table';\nimport { TableRef } from '../../primitives/Table/types';\nimport { useTable } from '../../primitives/Table/Core/useTable';\nimport { useTableEditingListener } from './listeners/useTableEditingListener';\nimport { useTableEditing } from './features/useTableEditing';\nimport { Table3Props } from './types';\nimport { TableRowActionRenderer } from '../../primitives/Table/types';\nimport { Cell } from './components/Columns/Cell/Cell';\nimport { EditingActionMenu } from './components/Columns/Internal/EditingActionsMenu';\nimport { Row } from './components/Row/Row';\n\nconst RENDERERS = {\n row: Row,\n cell: Cell,\n};\n\ndeclare module '@tanstack/table-core' {\n interface TableMeta<TData extends RowData> {\n editing: ReturnType<typeof useTableEditing>;\n }\n}\n\ntype Table3Meta = {\n editing: ReturnType<typeof useTableEditing>;\n};\n\nexport function useTable3<TType>(props: Table3Props<TType>, ref: React.Ref<TableRef>) {\n const editing = useTableEditing(props.enableEditing, props.onSave, props.validator);\n const extendedProps: Table3Props<TType> = {\n ...props,\n enableRowActions: editing.isEditing ? true : props.enableRowActions,\n rowActions: editing.isEditing\n ? ([\n (_, rowId) => (\n <EditingActionMenu\n hasChanges={editing.hasChanges(rowId)}\n hasErrors={editing.hasRowErrors(rowId)}\n onClear={() => editing.resetChanges(rowId)}\n onSave={() => editing.saveChanges(rowId)}\n onExit={() => editing.toggleEditing(false)}\n />\n ),\n ] as TableRowActionRenderer<TType>[])\n : props.rowActions,\n };\n const meta = { editing };\n const table = useTable<TType, Table3Meta>(extendedProps, ref, RENDERERS, meta);\n\n // listeners\n useTableEditingListener<TType>(table.instance);\n\n return table;\n}\n"],"names":["RENDERERS","row","Row","cell","Cell","useTable3","props","ref","editing","useTableEditing","enableEditing","onSave","validator","extendedProps","enableRowActions","isEditing","rowActions","_","rowId","React","EditingActionMenu","hasChanges","hasErrors","hasRowErrors","onClear","resetChanges","saveChanges","onExit","toggleEditing","meta","table","useTable","useTableEditingListener","instance"],"mappings":";;;;;;;;AAYA,MAAMA,SAAS,GAAG;EACdC,GAAG,EAAEC,GAAG;EACRC,IAAI,EAAEC;CACT;SAYeC,SAASA,CAAQC,KAAyB,EAAEC,GAAwB;EAChF,MAAMC,OAAO,GAAGC,eAAe,CAACH,KAAK,CAACI,aAAa,EAAEJ,KAAK,CAACK,MAAM,EAAEL,KAAK,CAACM,SAAS,CAAC;EACnF,MAAMC,aAAa,GAAuB;IACtC,GAAGP,KAAK;IACRQ,gBAAgB,EAAEN,OAAO,CAACO,SAAS,GAAG,IAAI,GAAGT,KAAK,CAACQ,gBAAgB;IACnEE,UAAU,EAAER,OAAO,CAACO,SAAS,GACtB,CACG,CAACE,CAAC,EAAEC,KAAK,oBACLC,6BAACC,iBAAiB;MACdC,UAAU,EAAEb,OAAO,CAACa,UAAU,CAACH,KAAK,CAAC;MACrCI,SAAS,EAAEd,OAAO,CAACe,YAAY,CAACL,KAAK,CAAC;MACtCM,OAAO,EAAEA,MAAMhB,OAAO,CAACiB,YAAY,CAACP,KAAK,CAAC;MAC1CP,MAAM,EAAEA,MAAMH,OAAO,CAACkB,WAAW,CAACR,KAAK,CAAC;MACxCS,MAAM,EAAEA,MAAMnB,OAAO,CAACoB,aAAa,CAAC,KAAK;MAC3C,CACL,CACgC,GACrCtB,KAAK,CAACU;GACf;EACD,MAAMa,IAAI,GAAG;IAAErB;GAAS;EACxB,MAAMsB,KAAK,GAAGC,QAAQ,CAAoBlB,aAAa,EAAEN,GAAG,EAAEP,SAAS,EAAE6B,IAAI,CAAC;;EAG9EG,uBAAuB,CAAQF,KAAK,CAACG,QAAQ,CAAC;EAE9C,OAAOH,KAAK;AAChB;;;;"}
@@ -1,52 +0,0 @@
1
- import React__default from 'react';
2
- import { FocusScope } from '@react-aria/focus';
3
- import { Header } from './components/Header/Header.js';
4
- import { Body } from './components/Body/Body.js';
5
- import { Footer } from './components/Footer/Footer.js';
6
- import { EmptyStateBody } from './components/Body/EmptyStateBody.js';
7
- import { TableToolbar } from './components/Toolbar/Toolbar.js';
8
-
9
- function Table(props) {
10
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, props.children);
11
- }
12
- Table.Toolbar = TableToolbar;
13
- Table.Grid = TableGrid;
14
- function TableGrid(props) {
15
- var _table$state$grouping, _table$renderer$rows;
16
- const {
17
- enableHorizontalArrowKeyNavigation,
18
- table,
19
- ...attributes
20
- } = props;
21
- const handleFocus = table.meta.rowActive.rowActiveIndex === undefined ? event => {
22
- table.meta.rowActive.handleFocus(event, table.meta.length, table.renderer.scrollToIndex);
23
- } : undefined;
24
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, table.stylesheet, /*#__PURE__*/React__default.createElement(FocusScope, null, /*#__PURE__*/React__default.createElement("table", Object.assign({}, attributes, {
25
- id: table.id,
26
- "data-table-font-size": table.meta.fontSize.size,
27
- "data-table-horizontally-scrolled": table.meta.columnFreezing.isHorizontallyScrolled ? true : undefined,
28
- "data-table-pause-hover": table.meta.rowActive.isHoverStatePaused ? true : undefined,
29
- "data-table-resizing": table.state.columnSizingInfo.isResizingColumn ? true : undefined,
30
- "data-table-row-height": table.meta.rowHeight.height,
31
- "data-table-grouped": !!((_table$state$grouping = table.state.grouping) !== null && _table$state$grouping !== void 0 && _table$state$grouping.length),
32
- onFocus: handleFocus,
33
- onScroll: table.meta.columnFreezing.handleScroll,
34
- ref: table.ref,
35
- tabIndex: -1
36
- }), /*#__PURE__*/React__default.createElement("thead", null, table.instance.getHeaderGroups().map(headerGroup => ( /*#__PURE__*/React__default.createElement("tr", {
37
- key: headerGroup.id
38
- }, headerGroup.headers.map(props => ( /*#__PURE__*/React__default.createElement(Header, {
39
- key: props.id,
40
- header: props,
41
- scrollToIndex: table.renderer.scrollToIndex
42
- }))))))), (_table$renderer$rows = table.renderer.rows) !== null && _table$renderer$rows !== void 0 && _table$renderer$rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Body, {
43
- enableHorizontalArrowKeyNavigation: enableHorizontalArrowKeyNavigation,
44
- table: table.instance,
45
- style: table.renderer.style
46
- }, table.renderer.rows), table.meta.footer.isEnabled ? ( /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, table.instance.getFooterGroups()[0].headers.map(Footer)))) : null)) : ( /*#__PURE__*/React__default.createElement(EmptyStateBody, {
47
- emptyState: table.props.emptyState
48
- })))));
49
- }
50
-
51
- export { Table, TableGrid };
52
- //# sourceMappingURL=Table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.js","sources":["../../../../../../../../src/primitives/Table/Core/Table.tsx"],"sourcesContent":["import React from 'react';\nimport { FocusScope } from '@react-aria/focus';\nimport { Header } from './components/Header/Header';\nimport { Body } from './components/Body/Body';\nimport { Footer } from './components/Footer/Footer';\nimport { EmptyStateBody } from './components/Body/EmptyStateBody';\nimport { useTable } from './useTable';\nimport { TableToolbar } from './components/Toolbar/Toolbar';\nimport './style.css';\n\ntype TableProps = {\n children: JSX.Element | Array<JSX.Element | null>;\n};\n\nexport function Table(props: TableProps) {\n return <>{props.children}</>;\n}\nTable.Toolbar = TableToolbar;\nTable.Grid = TableGrid;\n\nexport type TableGridProps = React.TableHTMLAttributes<HTMLTableElement> & {\n 'data-taco': string;\n enableHorizontalArrowKeyNavigation?: boolean;\n table: ReturnType<typeof useTable>;\n};\n\nexport function TableGrid(props: TableGridProps) {\n const { enableHorizontalArrowKeyNavigation, table, ...attributes } = props;\n const handleFocus =\n table.meta.rowActive.rowActiveIndex === undefined\n ? (event: React.FocusEvent) => {\n table.meta.rowActive.handleFocus(event, table.meta.length, table.renderer.scrollToIndex);\n }\n : undefined;\n\n return (\n <>\n {table.stylesheet}\n <FocusScope>\n <table\n {...attributes}\n id={table.id}\n data-table-font-size={table.meta.fontSize.size}\n data-table-horizontally-scrolled={table.meta.columnFreezing.isHorizontallyScrolled ? true : undefined}\n data-table-pause-hover={table.meta.rowActive.isHoverStatePaused ? true : undefined}\n data-table-resizing={table.state.columnSizingInfo.isResizingColumn ? true : undefined}\n data-table-row-height={table.meta.rowHeight.height}\n data-table-grouped={!!table.state.grouping?.length}\n onFocus={handleFocus}\n onScroll={table.meta.columnFreezing.handleScroll}\n ref={table.ref}\n tabIndex={-1}>\n <thead>\n {table.instance.getHeaderGroups().map(headerGroup => (\n <tr key={headerGroup.id}>\n {headerGroup.headers.map(props => (\n <Header key={props.id} header={props} scrollToIndex={table.renderer.scrollToIndex} />\n ))}\n </tr>\n ))}\n </thead>\n {table.renderer.rows?.length ? (\n <>\n <Body\n enableHorizontalArrowKeyNavigation={enableHorizontalArrowKeyNavigation}\n table={table.instance}\n style={table.renderer.style}>\n {table.renderer.rows}\n </Body>\n {table.meta.footer.isEnabled ? (\n <tfoot>\n <tr>{table.instance.getFooterGroups()[0].headers.map(Footer)}</tr>\n </tfoot>\n ) : null}\n </>\n ) : (\n <EmptyStateBody emptyState={table.props.emptyState} />\n )}\n </table>\n </FocusScope>\n </>\n );\n}\n"],"names":["Table","props","React","children","Toolbar","TableToolbar","Grid","TableGrid","enableHorizontalArrowKeyNavigation","table","attributes","handleFocus","meta","rowActive","rowActiveIndex","undefined","event","length","renderer","scrollToIndex","stylesheet","FocusScope","id","fontSize","size","columnFreezing","isHorizontallyScrolled","isHoverStatePaused","state","columnSizingInfo","isResizingColumn","rowHeight","height","_table$state$grouping","grouping","onFocus","onScroll","handleScroll","ref","tabIndex","instance","getHeaderGroups","map","headerGroup","key","headers","Header","header","_table$renderer$rows","rows","Body","style","footer","isEnabled","getFooterGroups","Footer","EmptyStateBody","emptyState"],"mappings":";;;;;;;;SAcgBA,KAAKA,CAACC,KAAiB;EACnC,oBAAOC,4DAAGD,KAAK,CAACE,QAAQ,CAAI;AAChC;AACAH,KAAK,CAACI,OAAO,GAAGC,YAAY;AAC5BL,KAAK,CAACM,IAAI,GAAGC,SAAS;SAQNA,SAASA,CAACN,KAAqB;;EAC3C,MAAM;IAAEO,kCAAkC;IAAEC,KAAK;IAAE,GAAGC;GAAY,GAAGT,KAAK;EAC1E,MAAMU,WAAW,GACbF,KAAK,CAACG,IAAI,CAACC,SAAS,CAACC,cAAc,KAAKC,SAAS,GAC1CC,KAAuB;IACpBP,KAAK,CAACG,IAAI,CAACC,SAAS,CAACF,WAAW,CAACK,KAAK,EAAEP,KAAK,CAACG,IAAI,CAACK,MAAM,EAAER,KAAK,CAACS,QAAQ,CAACC,aAAa,CAAC;GAC3F,GACDJ,SAAS;EAEnB,oBACIb,4DACKO,KAAK,CAACW,UAAU,eACjBlB,6BAACmB,UAAU,qBACPnB,wDACQQ,UAAU;IACdY,EAAE,EAAEb,KAAK,CAACa,EAAE;4BACUb,KAAK,CAACG,IAAI,CAACW,QAAQ,CAACC,IAAI;wCACZf,KAAK,CAACG,IAAI,CAACa,cAAc,C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