@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableRefInstanceSetup.js","sources":["../../../../../../../../src/components/Table3/hooks/useTableRefInstanceSetup.ts"],"sourcesContent":["import React from 'react';\nimport { Table3Ref } from '../types';\nimport { Table as RTable, TableMeta } from '@tanstack/react-table';\n\nexport function useTableRefInstanceSetup<TType = unknown>(table: RTable<TType>, ref: React.RefObject<Table3Ref>) {\n React.useEffect(() => {\n if (ref.current) {\n const tableMeta = table.options.meta as TableMeta<TType>;\n\n ref.current.instance = {\n resetFiltering: () => table.resetColumnFilters(),\n resetRowExpansion: () => table.resetExpanded(),\n resetRowSelection: () => table.resetRowSelection(),\n resetSorting: () => table.resetSorting(),\n toggleEditing: (enabled: boolean | undefined) =>\n tableMeta.editing.toggleEditing(enabled ?? (editing => !editing)),\n };\n }\n }, [table, ref.current]);\n}\n"],"names":["useTableRefInstanceSetup","table","ref","React","useEffect","current","tableMeta","options","meta","instance","resetFiltering","resetColumnFilters","resetRowExpansion","resetExpanded","resetRowSelection","resetSorting","toggleEditing","enabled","editing"],"mappings":";;SAIgBA,wBAAwBA,CAAkBC,KAAoB,EAAEC,GAA+B;EAC3GC,cAAK,CAACC,SAAS,CAAC;IACZ,IAAIF,GAAG,CAACG,OAAO,EAAE;MACb,MAAMC,SAAS,GAAGL,KAAK,CAACM,OAAO,CAACC,IAAwB;MAExDN,GAAG,CAACG,OAAO,CAACI,QAAQ,GAAG;QACnBC,cAAc,EAAEA,MAAMT,KAAK,CAACU,kBAAkB,EAAE;QAChDC,iBAAiB,EAAEA,MAAMX,KAAK,CAACY,aAAa,EAAE;QAC9CC,iBAAiB,EAAEA,MAAMb,KAAK,CAACa,iBAAiB,EAAE;QAClDC,YAAY,EAAEA,MAAMd,KAAK,CAACc,YAAY,EAAE;QACxCC,aAAa,EAAGC,OAA4B,IACxCX,SAAS,CAACY,OAAO,CAACF,aAAa,CAACC,OAAO,aAAPA,OAAO,cAAPA,OAAO,GAAKC,OAAO,IAAI,CAACA,OAAQ;OACvE;;GAER,EAAE,CAACjB,KAAK,EAAEC,GAAG,CAACG,OAAO,CAAC,CAAC;AAC5B;;;;"}
@@ -0,0 +1,8 @@
1
+ import { useTableRenderStrategy as useTableRenderStrategy$1 } from './virtualised.js';
2
+
3
+ function useTableRenderStrategy(props, table, ref) {
4
+ return useTableRenderStrategy$1(props, table, ref);
5
+ }
6
+
7
+ export { useTableRenderStrategy };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../src/components/Table3/strategies/index.ts"],"sourcesContent":["import { Table as RTable } from '@tanstack/react-table';\nimport { Table3Props, TableStrategy } from '../types';\nimport * as virtualRenderer from './virtualised';\n\nexport function useTableRenderStrategy<TType = unknown>(\n props: Table3Props<TType>,\n table: RTable<TType>,\n ref: React.RefObject<HTMLDivElement>\n): TableStrategy {\n return virtualRenderer.useTableRenderStrategy<TType>(props, table, ref);\n}\n"],"names":["useTableRenderStrategy","props","table","ref","virtualRenderer"],"mappings":";;SAIgBA,sBAAsBA,CAClCC,KAAyB,EACzBC,KAAoB,EACpBC,GAAoC;EAEpC,OAAOC,wBAAsC,CAAQH,KAAK,EAAEC,KAAK,EAAEC,GAAG,CAAC;AAC3E;;;;"}
@@ -0,0 +1,117 @@
1
+ import React__default from 'react';
2
+ import { flexRender } from '@tanstack/react-table';
3
+ import { Row } from '../components/rows/Row.js';
4
+ import { useVirtual } from 'react-virtual';
5
+ import { ExpandedRow } from '../components/rows/ExpandedRow.js';
6
+ import { rowHeightSizeEstimates } from '../components/rows/styles.js';
7
+ import { SkeletonRow } from '../components/rows/SkeletonRow.js';
8
+
9
+ // Note - latest react-virtual requires an inner container, and that doesn't work with css grid,
10
+ // so if you update react-virtual, you would need to refactor the entire table away from css grid,
11
+ // and that would break a number of layout things - auto sizing, resizing etc
12
+ function createBodyRenderer(props, rows, table, tableRef, virtualiser, setExpandedRowSizes) {
13
+ return () => {
14
+ if (rows.length) {
15
+ var _virtualiser$virtualI, _virtualiser$virtualI2, _virtualiser$virtualI3, _virtualiser$virtualI4;
16
+ const paddingTop = virtualiser.virtualItems.length > 0 ? (_virtualiser$virtualI = (_virtualiser$virtualI2 = virtualiser.virtualItems[0]) === null || _virtualiser$virtualI2 === void 0 ? void 0 : _virtualiser$virtualI2.start) !== null && _virtualiser$virtualI !== void 0 ? _virtualiser$virtualI : 0 : 0;
17
+ const paddingBottom = virtualiser.virtualItems.length > 0 ? virtualiser.totalSize - ((_virtualiser$virtualI3 = (_virtualiser$virtualI4 = virtualiser.virtualItems[virtualiser.virtualItems.length - 1]) === null || _virtualiser$virtualI4 === void 0 ? void 0 : _virtualiser$virtualI4.end) !== null && _virtualiser$virtualI3 !== void 0 ? _virtualiser$virtualI3 : 0) : 0;
18
+ const createSetSizeHandler = index => size => {
19
+ setExpandedRowSizes(sizes => {
20
+ if (size !== sizes[index]) {
21
+ return {
22
+ ...sizes,
23
+ [index]: size
24
+ };
25
+ }
26
+ return sizes;
27
+ });
28
+ };
29
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paddingTop ? /*#__PURE__*/React__default.createElement("div", {
30
+ style: {
31
+ height: paddingTop
32
+ },
33
+ className: "col-span-full"
34
+ }) : null, virtualiser.virtualItems.map(virtualRow => {
35
+ const row = rows[virtualRow.index];
36
+ if (row.original === undefined && props.pageSize) {
37
+ const pageIndex = Math.floor(virtualRow.index / props.pageSize) * props.pageSize / props.pageSize;
38
+ return /*#__PURE__*/React__default.createElement(SkeletonRow, {
39
+ key: row.id,
40
+ columns: table.getVisibleLeafColumns(),
41
+ loadPage: props.loadPage,
42
+ pageIndex: pageIndex,
43
+ table: table
44
+ });
45
+ }
46
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
47
+ key: row.id
48
+ }, /*#__PURE__*/React__default.createElement(Row, {
49
+ index: virtualRow.index,
50
+ isLastRow: virtualRow.index === rows.length - 1,
51
+ measureRef: virtualRow.measureRef,
52
+ row: row,
53
+ table: table,
54
+ tableRef: tableRef
55
+ }, row.getVisibleCells().map((cell, index) => ( /*#__PURE__*/React__default.createElement(React__default.Fragment, {
56
+ key: cell.id
57
+ }, flexRender(cell.column.columnDef.cell, {
58
+ ...cell.getContext(),
59
+ index,
60
+ tableRef
61
+ }))))), row.getIsExpanded() ? ( /*#__PURE__*/React__default.createElement(ExpandedRow, {
62
+ data: row.original,
63
+ renderer: props.expandedRowRenderer,
64
+ registerSize: createSetSizeHandler(virtualRow.index)
65
+ })) : null);
66
+ }), paddingBottom ? /*#__PURE__*/React__default.createElement("div", {
67
+ style: {
68
+ height: paddingBottom
69
+ },
70
+ className: "col-span-full"
71
+ }) : null);
72
+ }
73
+ return null;
74
+ };
75
+ }
76
+ function useTableRenderStrategy(props, table, tableRef) {
77
+ const meta = table.options.meta;
78
+ const rows = table.getRowModel().rows;
79
+ const expandedState = table.getState().expanded;
80
+ const [expandedRowSizes, setExpandedRowSizes] = React__default.useState({});
81
+ const firstAvailableExpandedRowHeight = React__default.useMemo(() => {
82
+ const values = Object.values(expandedRowSizes);
83
+ return values.length ? values.reduce((a, b) => a + b, 0) / values.length : 0;
84
+ }, [expandedRowSizes]);
85
+ const estimateSize = React__default.useCallback(index => {
86
+ const rowHeight = meta.rowHeight.height ? rowHeightSizeEstimates[meta.rowHeight.height] : rowHeightSizeEstimates.medium;
87
+ if (expandedState === true || expandedState !== null && expandedState !== void 0 && expandedState[index]) {
88
+ var _ref, _expandedRowSizes$ind;
89
+ return rowHeight + ((_ref = (_expandedRowSizes$ind = expandedRowSizes[index]) !== null && _expandedRowSizes$ind !== void 0 ? _expandedRowSizes$ind : firstAvailableExpandedRowHeight) !== null && _ref !== void 0 ? _ref : 0);
90
+ }
91
+ return rowHeight;
92
+ }, [meta.rowHeight.height, expandedRowSizes, expandedState]);
93
+ const virtualiser = useVirtual({
94
+ parentRef: tableRef,
95
+ size: rows.length,
96
+ estimateSize
97
+ });
98
+ const scrollToIndex = React__default.useCallback((index, options) => {
99
+ if (tableRef.current) {
100
+ if (index <= 0) {
101
+ tableRef.current.scrollTo(tableRef.current.scrollLeft, 0);
102
+ } else if (index >= rows.length - 1) {
103
+ var _tableRef$current;
104
+ (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.scrollTo(0, tableRef.current.scrollHeight);
105
+ } else {
106
+ virtualiser.scrollToIndex(index, options);
107
+ }
108
+ }
109
+ }, [rows.length, tableRef.current]);
110
+ return {
111
+ renderBody: createBodyRenderer(props, rows, table, tableRef, virtualiser, setExpandedRowSizes),
112
+ scrollToIndex
113
+ };
114
+ }
115
+
116
+ export { useTableRenderStrategy };
117
+ //# sourceMappingURL=virtualised.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualised.js","sources":["../../../../../../../../src/components/Table3/strategies/virtualised.tsx"],"sourcesContent":["import React from 'react';\nimport { flexRender, Row as RTRow, Table as RTable, TableMeta } from '@tanstack/react-table';\nimport { useVirtual } from 'react-virtual';\nimport { Row } from '../components/rows/Row';\nimport { Table3Props, Table3RowExpansionRenderer, TableStrategy } from '../types';\nimport { ExpandedRow } from '../components/rows/ExpandedRow';\nimport { rowHeightSizeEstimates } from '../components/rows/styles';\nimport { SkeletonRow } from '../components/rows/SkeletonRow';\n\n// Note - latest react-virtual requires an inner container, and that doesn't work with css grid,\n// so if you update react-virtual, you would need to refactor the entire table away from css grid,\n// and that would break a number of layout things - auto sizing, resizing etc\n\nfunction createBodyRenderer<TType = unknown>(\n props: Table3Props<TType>,\n rows: RTRow<TType>[],\n table: RTable<TType>,\n tableRef: React.RefObject<HTMLDivElement>,\n virtualiser: ReturnType<typeof useVirtual>,\n setExpandedRowSizes: React.Dispatch<React.SetStateAction<Record<string, number>>>\n) {\n return () => {\n if (rows.length) {\n const paddingTop = virtualiser.virtualItems.length > 0 ? virtualiser.virtualItems[0]?.start ?? 0 : 0;\n const paddingBottom =\n virtualiser.virtualItems.length > 0\n ? virtualiser.totalSize - (virtualiser.virtualItems[virtualiser.virtualItems.length - 1]?.end ?? 0)\n : 0;\n\n const createSetSizeHandler = (index: number) => (size: number) => {\n setExpandedRowSizes(sizes => {\n if (size !== sizes[index]) {\n return { ...sizes, [index]: size };\n }\n\n return sizes;\n });\n };\n\n return (\n <>\n {paddingTop ? <div style={{ height: paddingTop }} className=\"col-span-full\" /> : null}\n {virtualiser.virtualItems.map(virtualRow => {\n const row = rows[virtualRow.index];\n\n if (row.original === undefined && props.pageSize) {\n const pageIndex = (Math.floor(virtualRow.index / props.pageSize) * props.pageSize) / props.pageSize;\n\n return (\n <SkeletonRow<TType>\n key={row.id}\n columns={table.getVisibleLeafColumns()}\n loadPage={props.loadPage}\n pageIndex={pageIndex}\n table={table}\n />\n );\n }\n\n return (\n <React.Fragment key={row.id}>\n <Row<TType>\n index={virtualRow.index}\n isLastRow={virtualRow.index === rows.length - 1}\n measureRef={virtualRow.measureRef}\n row={row}\n table={table}\n tableRef={tableRef}>\n {row.getVisibleCells().map((cell, index) => (\n <React.Fragment key={cell.id}>\n {flexRender(cell.column.columnDef.cell, { ...cell.getContext(), index, tableRef })}\n </React.Fragment>\n ))}\n </Row>\n {row.getIsExpanded() ? (\n <ExpandedRow\n data={row.original}\n renderer={props.expandedRowRenderer as Table3RowExpansionRenderer}\n registerSize={createSetSizeHandler(virtualRow.index)}\n />\n ) : null}\n </React.Fragment>\n );\n })}\n {paddingBottom ? <div style={{ height: paddingBottom }} className=\"col-span-full\" /> : null}\n </>\n );\n }\n\n return null;\n };\n}\n\nexport function useTableRenderStrategy<TType = unknown>(\n props: Table3Props<TType>,\n table: RTable<TType>,\n tableRef: React.RefObject<HTMLDivElement>\n): TableStrategy {\n const meta = table.options.meta as TableMeta<TType>;\n const rows = table.getRowModel().rows;\n const expandedState = table.getState().expanded;\n\n const [expandedRowSizes, setExpandedRowSizes] = React.useState<Record<string, number>>({});\n\n const firstAvailableExpandedRowHeight = React.useMemo(() => {\n const values: number[] = Object.values(expandedRowSizes);\n return values.length ? values.reduce((a, b) => a + b, 0) / values.length : 0;\n }, [expandedRowSizes]);\n\n const estimateSize = React.useCallback(\n index => {\n const rowHeight = meta.rowHeight.height\n ? rowHeightSizeEstimates[meta.rowHeight.height]\n : rowHeightSizeEstimates.medium;\n\n if (expandedState === true || expandedState?.[index]) {\n return rowHeight + (expandedRowSizes[index] ?? firstAvailableExpandedRowHeight ?? 0);\n }\n\n return rowHeight;\n },\n [meta.rowHeight.height, expandedRowSizes, expandedState]\n );\n\n const virtualiser = useVirtual({\n parentRef: tableRef,\n size: rows.length,\n estimateSize,\n });\n\n const scrollToIndex = React.useCallback(\n (index: number, options?: { align: 'start' | 'center' | 'end' | 'auto' }) => {\n if (tableRef.current) {\n if (index <= 0) {\n tableRef.current.scrollTo(tableRef.current.scrollLeft, 0);\n } else if (index >= rows.length - 1) {\n tableRef.current?.scrollTo(0, tableRef.current.scrollHeight);\n } else {\n virtualiser.scrollToIndex(index, options);\n }\n }\n },\n [rows.length, tableRef.current]\n );\n\n return {\n renderBody: createBodyRenderer(props, rows, table, tableRef, virtualiser, setExpandedRowSizes),\n scrollToIndex,\n };\n}\n"],"names":["createBodyRenderer","props","rows","table","tableRef","virtualiser","setExpandedRowSizes","length","_virtualiser$virtualI","_virtualiser$virtualI2","_virtualiser$virtualI3","_virtualiser$virtualI4","paddingTop","virtualItems","start","paddingBottom","totalSize","end","createSetSizeHandler","index","size","sizes","React","style","height","className","map","virtualRow","row","original","undefined","pageSize","pageIndex","Math","floor","SkeletonRow","key","id","columns","getVisibleLeafColumns","loadPage","Fragment","Row","isLastRow","measureRef","getVisibleCells","cell","flexRender","column","columnDef","getContext","getIsExpanded","ExpandedRow","data","renderer","expandedRowRenderer","registerSize","useTableRenderStrategy","meta","options","getRowModel","expandedState","getState","expanded","expandedRowSizes","useState","firstAvailableExpandedRowHeight","useMemo","values","Object","reduce","a","b","estimateSize","useCallback","rowHeight","rowHeightSizeEstimates","medium","_ref","_expandedRowSizes$ind","useVirtual","parentRef","scrollToIndex","current","scrollTo","scrollLeft","_tableRef$current","scrollHeight","renderBody"],"mappings":";;;;;;;;AASA;AACA;AACA;AAEA,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AEC,QAAQ,EAAEC,WAAW,EAAEC,mBAAmB,CAAC;IAC9F4E;GACH;AACL;;;;"}
@@ -0,0 +1,20 @@
1
+ var Table3FilterComparator;
2
+ (function (Table3FilterComparator) {
3
+ Table3FilterComparator[Table3FilterComparator["Contains"] = 0] = "Contains";
4
+ Table3FilterComparator[Table3FilterComparator["DoesNotContain"] = 1] = "DoesNotContain";
5
+ Table3FilterComparator[Table3FilterComparator["IsEqualTo"] = 2] = "IsEqualTo";
6
+ Table3FilterComparator[Table3FilterComparator["IsNotEqualTo"] = 3] = "IsNotEqualTo";
7
+ Table3FilterComparator[Table3FilterComparator["IsGreaterThan"] = 4] = "IsGreaterThan";
8
+ Table3FilterComparator[Table3FilterComparator["IsLessThan"] = 5] = "IsLessThan";
9
+ Table3FilterComparator[Table3FilterComparator["IsBetween"] = 6] = "IsBetween";
10
+ Table3FilterComparator[Table3FilterComparator["IsEmpty"] = 7] = "IsEmpty";
11
+ Table3FilterComparator[Table3FilterComparator["IsNotEmpty"] = 8] = "IsNotEmpty";
12
+ Table3FilterComparator[Table3FilterComparator["IsLessThanOrEqualTo"] = 9] = "IsLessThanOrEqualTo";
13
+ Table3FilterComparator[Table3FilterComparator["IsGreaterThanOrEqualTo"] = 10] = "IsGreaterThanOrEqualTo";
14
+ Table3FilterComparator[Table3FilterComparator["HasAnyOf"] = 11] = "HasAnyOf";
15
+ Table3FilterComparator[Table3FilterComparator["HasAllOf"] = 12] = "HasAllOf";
16
+ Table3FilterComparator[Table3FilterComparator["HasNoneOf"] = 13] = "HasNoneOf";
17
+ })(Table3FilterComparator || (Table3FilterComparator = {}));
18
+
19
+ export { Table3FilterComparator };
20
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../../../../src/components/Table3/types.ts"],"sourcesContent":["import { ColumnOrderState, ColumnSizingState, SortingState, VisibilityState, BuiltInSortingFn } from '@tanstack/react-table';\nimport { MenuProps } from '../Menu/Menu';\nimport { MenuItemProps } from '../Menu/components/Item';\nimport {\n TableColumnFilter,\n TableColumnRendererControl,\n TableColumnRendererControlProps,\n TableColumnSort,\n TableFilterHandler,\n TableRef,\n TableRowClickHandler,\n TableRowGotoHandler,\n TableRowHeight,\n TableRowSelectHandler,\n TableServerLoadAllHandler,\n TableServerLoadPageHandler,\n TableSortHandler,\n} from '../../primitives/Table/types';\nimport { FontSize, ValueOf } from '../../types';\n\nexport type Table3SortDirection = 'asc' | 'desc';\nexport type Table3SortFn<TType = unknown> =\n | ((rowA: TType, rowB: TType, columnId: string) => -1 | 0 | 1)\n | BuiltInSortingFn\n | 'auto';\n\n// columns\nexport type Table3ColumnRenderer<TValue = unknown, TType = unknown> = (\n value: TValue,\n row: TType\n) => JSX.Element | string | number | null;\nexport type Table3ColumnFooterRenderer<TValue = unknown> = (values: TValue[]) => JSX.Element | string | number | null;\nexport type Table3ColumnClassNameHandler<TType = unknown> = string | ((row: TType) => string | undefined);\nexport type Table3ColumnAlignment = 'left' | 'center' | 'right';\nexport type Table3ColumnDataType = 'auto' | 'number' | 'alphanumeric' | 'alphanumericCaseSensitive' | 'datetime' | 'boolean';\nexport type Table3ColumnHeaderMenu = (props: Partial<MenuProps>) => JSX.Element;\n\nexport type Table3ColumnControlProps = TableColumnRendererControlProps;\nexport type Table3ColumnControlRenderer<TType = unknown> = TableColumnRendererControl<TType>;\n\nexport type Table3ColumnProps<TType = unknown> = ValueOf<{\n [K in keyof TType]: {\n accessor: K;\n } & {\n align?: Table3ColumnAlignment;\n className?: Table3ColumnClassNameHandler<TType>;\n control?: Table3ColumnControlRenderer<TType>;\n dataType?: Table3ColumnDataType;\n defaultHidden?: boolean;\n defaultWidth?: number | 'grow';\n enableFiltering?: boolean;\n enableHiding?: boolean;\n enableOrdering?: boolean;\n enablePrinting?: boolean;\n enableResizing?: boolean;\n enableSearch?: boolean;\n enableSorting?: boolean;\n enableTruncate?: boolean;\n filters?: Table3FilterComparator[];\n footer?: Table3ColumnFooterRenderer;\n header: string;\n headerClassName?: string;\n menu?: Table3ColumnHeaderMenu;\n minWidth?: number;\n renderer?: Table3ColumnRenderer<TType[K], TType>;\n sort?: Table3SortDirection;\n sortFn?: Table3SortFn<TType>;\n tooltip?: string;\n };\n}>;\n\nexport type Table3GroupProps = {\n id: string;\n header: string;\n colSpan?: number;\n children: (JSX.Element | boolean | null | undefined)[];\n};\n\n// rows\nexport type DeprecatedRowDensity = 'compact' | 'normal' | 'comfortable' | 'spacious';\nexport type Table3RowHeight = TableRowHeight;\nexport type Table3RowClickHandler<TType = unknown> = TableRowClickHandler<TType>;\nexport type Table3RowDragHandler<TType = unknown> = (\n rows: TType[],\n showPlaceholder: (string) => void,\n setDataTransfer: (data: string) => void\n) => void;\nexport type Table3RowDropHandler<TType = any> = (event: React.DragEvent, row: TType) => void;\nexport type Table3RowExpansionRenderer<TType = unknown> = (row: TType) => (() => JSX.Element) | null;\nexport type Table3RowSelectionHandler<TType = unknown> = TableRowSelectHandler<TType>;\nexport type Table3RowActionRenderer<TType = unknown> = (row: TType) => JSX.Element | null;\n\n// table\nexport type Table3Preset = 'display' | 'editable' | 'card';\nexport type Table3Settings = {\n columnFreezingIndex?: number;\n columnOrder?: ColumnOrderState;\n columnSizing?: ColumnSizingState;\n columnVisibility?: VisibilityState;\n excludeUnmatchedRecordsInSearch?: boolean;\n fontSize?: FontSize;\n rowHeight?: Table3RowHeight;\n showWarningWhenPrintingLargeDataset?: boolean;\n sorting?: SortingState;\n};\nexport type Table3SettingsHandler = (settings: Table3Settings) => void | Promise<void>;\n\nexport enum Table3FilterComparator {\n Contains,\n DoesNotContain,\n IsEqualTo,\n IsNotEqualTo,\n IsGreaterThan,\n IsLessThan,\n IsBetween,\n IsEmpty,\n IsNotEmpty,\n IsLessThanOrEqualTo,\n IsGreaterThanOrEqualTo,\n HasAnyOf,\n HasAllOf,\n HasNoneOf,\n}\n\nexport type Table3FilterValue = {\n comparator: Table3FilterComparator | null;\n value: any;\n};\n\nexport type Table3Filter = { id: string | null; value: Table3FilterValue };\n\nexport type ColumnFilter = TableColumnFilter;\nexport type Table3FilterHandler = TableFilterHandler;\nexport type Table3LoadPageHandler = TableServerLoadPageHandler;\nexport type Table3LoadAllHandler = TableServerLoadAllHandler;\nexport type Table3RowGotoHandler = TableRowGotoHandler;\nexport type Table3ColumnSort = TableColumnSort;\nexport type Table3SortHandler = TableSortHandler;\nexport type RowErrors = Record<string, string>;\nexport type Table3CellValidationHandler<TType = unknown> = (\n cellValue: any,\n cellId: string,\n row: TType\n) => Promise<RowErrors | undefined | void>;\nexport type Table3RowValidationHandler<TType = unknown> = (row: TType) => Promise<RowErrors | undefined | void>;\nexport type TableStrategy = {\n renderBody: () => JSX.Element | JSX.Element[] | null;\n scrollToIndex: (index: number, options?: { align: 'start' | 'center' | 'end' | 'auto' }) => void;\n};\nexport type Table3ShortcutHandlerFn<TType = unknown> = (row: TType) => void;\nexport type Table3ShortcutHandlerObject<TType = unknown> = {\n handler: Table3ShortcutHandlerFn<TType>;\n meta?: boolean;\n shift?: boolean;\n};\nexport type Table3Shortcuts<TType = unknown> = Record<\n string,\n Table3ShortcutHandlerFn<TType> | Table3ShortcutHandlerObject<TType>\n>;\nexport type Table3SaveHandler<TType = unknown> = (data: TType) => Promise<void>;\n\nexport type Table3Options = {\n enableColumnFreezing: boolean;\n enableColumnHiding: boolean;\n enableColumnOrdering: boolean;\n enableColumnResizing: boolean;\n enableFontSize: boolean;\n enableFooter: boolean;\n enablePrinting: boolean;\n enableRowDrag: boolean;\n enableRowDrop: boolean;\n enableRowExpansion: boolean;\n enableRowGoto: boolean;\n enableRowHeight: boolean;\n enableRowSelection: boolean;\n enableRowSelectionSingle: boolean;\n enableEditing: boolean;\n enableFiltering: boolean;\n enableSearch: boolean;\n enableSorting: boolean;\n};\n\nexport type Table3CustomSettingRenderer = (props: Table3Settings) => React.ReactElement<MenuItemProps> | null;\n\nexport type Table3CommonProps<TType = unknown> = Partial<Table3Options> & {\n actionsForRow?: Table3RowActionRenderer<TType>[];\n actionsForRowLength?: number;\n autoFocus?: boolean;\n children: (JSX.Element | boolean | null | undefined)[];\n customSettings?: Table3CustomSettingRenderer[];\n data: TType[];\n defaultColumnFreezingIndex?: number;\n defaultCurrentRowIndex?: number;\n defaultSettings?: Table3Settings;\n emptyState?: () => JSX.Element | null;\n expandedRowRenderer?: Table3RowExpansionRenderer<TType>;\n id: string;\n onChangeSettings?: Table3SettingsHandler;\n onRowClick?: Table3RowClickHandler<TType>;\n onRowDrag?: Table3RowDragHandler<TType>;\n onRowDrop?: Table3RowDropHandler<TType>;\n onRowGoto?: Table3RowGotoHandler;\n onRowSelect?: Table3RowSelectionHandler<TType>;\n onFilter?: Table3FilterHandler;\n onSave?: Table3SaveHandler<TType>;\n onSort?: Table3SortHandler;\n onCellValidate?: Table3CellValidationHandler<TType>;\n onRowValidate?: Table3RowValidationHandler<TType>;\n preset?: Table3Preset;\n shortcuts?: Table3Shortcuts<TType>;\n toolbarLeft?: JSX.Element;\n toolbarRight?: JSX.Element;\n rowIdentifier?: string;\n};\n\ninterface Table3ClientProps<TType = unknown> extends Table3CommonProps<TType> {\n length?: never;\n loadPage?: never;\n loadAll?: never;\n pageSize?: never;\n}\n\ninterface Table3ServerProps<TType = unknown> extends Table3CommonProps<TType> {\n length: number | undefined;\n loadPage: Table3LoadPageHandler;\n loadAll: Table3LoadAllHandler;\n pageSize?: number;\n}\n\nexport type Table3Props<TType = unknown> = Table3ClientProps<TType> | Table3ServerProps<TType>;\n\nexport type Table3Ref = TableRef & {\n instance: {\n toggleEditing: (enabled: boolean | undefined) => void;\n };\n};\n\nexport type Table3Texts = {\n columns: {\n actions: {\n tooltip: string;\n };\n drag: {\n tooltip: string;\n };\n expansion: {\n collapse: string;\n collapseAll: string;\n expand: string;\n expandAll: string;\n };\n menu: {\n editFilter: string;\n filter: string;\n freezeFirstColumn: string;\n freezeUptoColumn: string;\n gotoRow: string;\n hideColumn: string;\n unfreezeColumns: string;\n sorting: string;\n sortingOrder: {\n ascending: string;\n descending: string;\n unsorted: string;\n };\n };\n resize: {\n tooltip: string;\n };\n select: {\n deselect: string;\n deselectAll: string;\n select: string;\n selectAll: string;\n };\n };\n columnSettings: {\n button: string;\n noResults: string;\n search: string;\n tooltip: string;\n };\n editing: {\n actions: {\n tooltip: string;\n save: string;\n clear: string;\n exit: string;\n };\n buttons: {\n edit: {\n tooltip: string;\n };\n };\n rowIndicator: {\n rowWillMove: string;\n rowWillBeHidden: string;\n rowWillMoveReasonSearch: string;\n rowWillMoveReasonFilter: string;\n rowWillMoveReasonSorting: string;\n };\n saving: {\n progress: string;\n complete: string;\n };\n clearChangesConfirmationDialog: {\n title: string;\n description: string;\n cancel: string;\n confirm: string;\n };\n };\n filters: {\n button: string;\n buttons: {\n addFilter: string;\n clearFilters: string;\n };\n comparators: {\n contains: string;\n doesNotContain: string;\n isEqualTo: string;\n isNotEqualTo: string;\n isGreaterThan: string;\n isLessThan: string;\n isBetween: string;\n isEmpty: string;\n isNotEmpty: string;\n isBefore: string;\n isAfter: string;\n isLessThanOrEqualTo: string;\n isGreaterThanOrEqualTo: string;\n isOnOrBefore: string;\n isOnOrAfter: string;\n hasAnyOf: string;\n hasAllOf: string;\n hasNoneOf: string;\n };\n conditions: {\n and: string;\n where: string;\n };\n emptyFilter: {\n condition: string;\n value: string;\n };\n hiddenColumn: string;\n hiddenGroupedColumn: string;\n tooltip: string;\n total: string;\n };\n fontSize: {\n tooltip: string;\n sizes: {\n small: string;\n medium: string;\n large: string;\n };\n };\n footer: {\n summary: {\n count: string;\n records: string;\n selected: string;\n };\n };\n print: {\n error: string;\n loading: string;\n tooltip: string;\n warningDialog: {\n title: string;\n description: string;\n checkboxVisibilityLabel: string;\n cancelButtonText: string;\n printButtonText: string;\n };\n settingsDialog: {\n title: string;\n size: string;\n sizeA5: string;\n sizeA4: string;\n sizeA3: string;\n sizeLetter: string;\n sizeLegal: string;\n orientation: string;\n orientationLandscape: string;\n orientationPortrait: string;\n rows: string;\n rowsAll: string;\n rowsSelected: string;\n layout: string;\n layoutSplitGroups: string;\n };\n };\n rowHeight: {\n tooltip: string;\n sizes: {\n short: string;\n medium: string;\n tall: string;\n extraTall: string;\n };\n };\n search: {\n excludeUnmatchedResults: string;\n placeholder: string;\n };\n otherOptions: {\n tooltip: string;\n };\n validation: {\n index: string;\n alert: {\n unsavedEntries: (count?: number) => string;\n incompleteAndHavntBeenSaved: (count?: number) => string;\n };\n resetFiltersDialog: {\n title: string;\n description: string;\n cancel: string;\n confirm: string;\n };\n };\n};\n"],"names":["Table3FilterComparator"],"mappings":"IA2GYA;AAAZ,WAAYA,sBAAsB;EAC9BA,2EAAQ;EACRA,uFAAc;EACdA,6EAAS;EACTA,mFAAY;EACZA,qFAAa;EACbA,+EAAU;EACVA,6EAAS;EACTA,yEAAO;EACPA,+EAAU;EACVA,iGAAmB;EACnBA,wGAAsB;EACtBA,4EAAQ;EACRA,4EAAQ;EACRA,8EAAS;AACb,CAAC,EAfWA,sBAAsB,KAAtBA,sBAAsB;;;;"}
@@ -0,0 +1,60 @@
1
+ import { isDate } from 'date-fns';
2
+ import { format, parseFromISOString } from '../../../utils/date.js';
3
+ import { COLUMN_ID } from '../components/columns/internal/Actions.js';
4
+
5
+ const isInternalColumn = id => id.startsWith('__');
6
+ const isFrozenColumn = (header, table) => {
7
+ var _tableMeta$columnFree;
8
+ const tableMeta = table.options.meta;
9
+ if (header.column.id !== COLUMN_ID && isInternalColumn(header.column.id)) {
10
+ return true;
11
+ }
12
+ // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
13
+ if (!tableMeta.columnFreezing.isEnabled || tableMeta.columnFreezing.frozenColumnIndex === undefined) {
14
+ return false;
15
+ }
16
+ // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
17
+ return tableMeta.columnFreezing.frozenColumnIndex + ((_tableMeta$columnFree = tableMeta.columnFreezing.frozenInternalColumnCount) !== null && _tableMeta$columnFree !== void 0 ? _tableMeta$columnFree : 0) >= header.index;
18
+ };
19
+ const getCurrentRowCellElement = (index, table) => {
20
+ const cellSelector = `[data-current="true"] [data-column-index="${index}"`;
21
+ return table.querySelector(cellSelector);
22
+ };
23
+ function scrollColumnIntoView(columnIndex, frozenColumnIndex, column, table) {
24
+ if (frozenColumnIndex !== undefined && columnIndex > frozenColumnIndex) {
25
+ const lastFrozenColumnElement = getCurrentRowCellElement(frozenColumnIndex, table);
26
+ const highlightRef = column === null || column === void 0 ? void 0 : column.getBoundingClientRect();
27
+ const lastFrozenRect = lastFrozenColumnElement === null || lastFrozenColumnElement === void 0 ? void 0 : lastFrozenColumnElement.getBoundingClientRect();
28
+ // offset the width of frozen columns so that the column being scrolled to is not hidden behind them
29
+ if (highlightRef && lastFrozenRect && highlightRef.left < lastFrozenRect.left + lastFrozenRect.width) {
30
+ const pinnedColumnsWidth = lastFrozenRect.left + lastFrozenRect.width;
31
+ table === null || table === void 0 ? void 0 : table.scrollTo(highlightRef.left - pinnedColumnsWidth, table.scrollTop);
32
+ }
33
+ } else {
34
+ column.scrollIntoView({
35
+ block: 'nearest',
36
+ inline: 'nearest'
37
+ });
38
+ }
39
+ }
40
+ function isCellHighlighted(query, value, dataType) {
41
+ if (value === undefined || value === null) {
42
+ return false;
43
+ }
44
+ return String(getCellValueAsString(value, dataType)).toLocaleLowerCase().includes(query.toLocaleLowerCase());
45
+ }
46
+ function getCellValueAsString(value, dataType) {
47
+ if (value === undefined || value === null) {
48
+ return '';
49
+ } else if (isDate(value)) {
50
+ var _format;
51
+ return (_format = format(value)) !== null && _format !== void 0 ? _format : '';
52
+ } else if (dataType === 'datetime' && typeof value === 'string') {
53
+ var _format2;
54
+ return (_format2 = format(parseFromISOString(value))) !== null && _format2 !== void 0 ? _format2 : '';
55
+ }
56
+ return String(value);
57
+ }
58
+
59
+ export { getCellValueAsString, getCurrentRowCellElement, isCellHighlighted, isFrozenColumn, isInternalColumn, scrollColumnIntoView };
60
+ //# sourceMappingURL=columns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columns.js","sources":["../../../../../../../../src/components/Table3/util/columns.ts"],"sourcesContent":["import { Header as RTHeader, Table as RTable, TableMeta } from '@tanstack/react-table';\nimport { isDate } from 'date-fns';\nimport { format, parseFromISOString } from '../../../utils/date';\nimport { COLUMN_ID } from '../components/columns/internal/Actions';\nimport { Table3ColumnDataType } from '../types';\n\nexport const isInternalColumn = (id: string) => id.startsWith('__');\n\nexport const isFrozenColumn = <TType = unknown>(header: RTHeader<TType, unknown>, table: RTable<TType>) => {\n const tableMeta = table.options.meta as TableMeta<TType>;\n\n if (header.column.id !== COLUMN_ID && isInternalColumn(header.column.id)) {\n return true;\n }\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n if (!tableMeta.columnFreezing.isEnabled || tableMeta.columnFreezing.frozenColumnIndex === undefined) {\n return false;\n }\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n return tableMeta.columnFreezing.frozenColumnIndex + (tableMeta.columnFreezing.frozenInternalColumnCount ?? 0) >= header.index;\n};\n\nexport const getCurrentRowCellElement = (index: number, table: HTMLElement) => {\n const cellSelector = `[data-current=\"true\"] [data-column-index=\"${index}\"`;\n return table.querySelector(cellSelector);\n};\n\nexport function scrollColumnIntoView(columnIndex: number, frozenColumnIndex: number, column: HTMLElement, table: HTMLElement) {\n if (frozenColumnIndex !== undefined && columnIndex > frozenColumnIndex) {\n const lastFrozenColumnElement = getCurrentRowCellElement(frozenColumnIndex, table);\n const highlightRef = column?.getBoundingClientRect();\n const lastFrozenRect = lastFrozenColumnElement?.getBoundingClientRect();\n\n // offset the width of frozen columns so that the column being scrolled to is not hidden behind them\n if (highlightRef && lastFrozenRect && highlightRef.left < lastFrozenRect.left + lastFrozenRect.width) {\n const pinnedColumnsWidth = lastFrozenRect.left + lastFrozenRect.width;\n table?.scrollTo(highlightRef.left - pinnedColumnsWidth, table.scrollTop);\n }\n } else {\n column.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }\n}\n\nexport function isCellHighlighted(query: string, value: unknown, dataType?: Table3ColumnDataType) {\n if (value === undefined || value === null) {\n return false;\n }\n\n return String(getCellValueAsString(value, dataType)).toLocaleLowerCase().includes(query.toLocaleLowerCase());\n}\n\nexport function getCellValueAsString(value: unknown, dataType?: Table3ColumnDataType): string {\n if (value === undefined || value === null) {\n return '';\n } else if (isDate(value)) {\n return format(value as Date) ?? '';\n } else if (dataType === 'datetime' && typeof value === 'string') {\n return format(parseFromISOString(value as string)) ?? '';\n }\n\n return String(value);\n}\n"],"names":["isInternalColumn","id","startsWith","isFrozenColumn","header","table","tableMeta","options","meta","column","COLUMN_ID","columnFreezing","isEnabled","frozenColumnIndex","undefined","_tableMeta$columnFree","frozenInternalColumnCount","index","getCurrentRowCellElement","cellSelector","querySelector","scrollColumnIntoView","columnIndex","lastFrozenColumnElement","highlightRef","getBoundingClientRect","lastFrozenRect","left","width","pinnedColumnsWidth","scrollTo","scrollTop","scrollIntoView","block","inline","isCellHighlighted","query","value","dataType","String","getCellValueAsString","toLocaleLowerCase","includes","isDate","_format","format","_format2","parseFromISOString"],"mappings":";;;;MAMaA,gBAAgB,GAAIC,EAAU,IAAKA,EAAE,CAACC,UAAU,CAAC,IAAI;MAErDC,cAAc,GAAGA,CAAkBC,MAAgC,EAAEC,KAAoB;;EAClG,MAAMC,SAAS,GAAGD,KAAK,CAACE,OAAO,CAACC,IAAwB;EAExD,IAAIJ,MAAM,CAACK,MAAM,CAACR,EAAE,KAAKS,SAAS,IAAIV,gBAAgB,CAACI,MAAM,CAACK,MAAM,CAACR,EAAE,CAAC,EAAE;IACtE,OAAO,IAAI;;;EAGf,IAAI,CAACK,SAAS,CAACK,cAAc,CAACC,SAAS,IAAIN,SAAS,CAACK,cAAc,CAACE,iBAAiB,KAAKC,SAAS,EAAE;IACjG,OAAO,KAAK;;;EAGhB,OAAOR,SAAS,CAACK,cAAc,CAACE,iBAAiB,KAAAE,qBAAA,GAAIT,SAAS,CAACK,cAAc,CAACK,yBAAyB,cAAAD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EC,QAAQ,CAAC,CAAC,CAACG,iBAAiB,EAAE,CAACC,QAAQ,CAACN,KAAK,CAACK,iBAAiB,EAAE,CAAC;AAChH;SAEgBD,oBAAoBA,CAACH,KAAc,EAAEC,QAA+B;EAChF,IAAID,KAAK,KAAKvB,SAAS,IAAIuB,KAAK,KAAK,IAAI,EAAE;IACvC,OAAO,EAAE;GACZ,MAAM,IAAIM,MAAM,CAACN,KAAK,CAAC,EAAE;IAAA,IAAAO,OAAA;IACtB,QAAAA,OAAA,GAAOC,MAAM,CAACR,KAAa,CAAC,cAAAO,OAAA,cAAAA,OAAA,GAAI,EAAE;GACrC,MAAM,IAAIN,QAAQ,KAAK,UAAU,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IAAA,IAAAS,QAAA;IAC7D,QAAAA,QAAA,GAAOD,MAAM,CAACE,kBAAkB,CAACV,KAAe,CAAC,CAAC,cAAAS,QAAA,cAAAA,QAAA,GAAI,EAAE;;EAG5D,OAAOP,MAAM,CAACF,KAAK,CAAC;AACxB;;;;"}
@@ -1,55 +1,27 @@
1
- import { globalFilterFn, columnFilterFn } from '../../../primitives/Table/useTableManager/util/filtering.js';
1
+ import { isDate } from 'date-fns';
2
+ import { isWeakEqual } from '../../../utils/date.js';
2
3
 
3
- function willRowMove(cell, change, rowIndex) {
4
- const {
5
- table
6
- } = cell.getContext();
7
- if (willRowMoveAfterSearch(cell, change, table)) {
8
- return 'search';
9
- } else if (willRowMoveAfterFilter(cell, change)) {
10
- return 'filter';
11
- } else if (willRowMoveAfterSorting(cell, change, rowIndex)) {
12
- return 'sorting';
4
+ const focussableNodeNames = ['A', 'BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'DETAILS'];
5
+ const focusableSelector = /*#__PURE__*/focussableNodeNames.join(', ');
6
+ const hasChanged = (value, newValue) => {
7
+ if (isDate(value) && isDate(newValue)) {
8
+ return !isWeakEqual(value, newValue);
9
+ } else if (Array.isArray(value)) {
10
+ return JSON.stringify(value) !== JSON.stringify(newValue);
13
11
  }
14
- return undefined;
15
- }
16
- function willRowMoveAfterSearch(cell, change, table) {
17
- const searchQuery = table.getState().globalFilter;
18
- if (!table.options.enableGlobalFilter || !searchQuery) {
19
- return false;
20
- }
21
- const rowWithChange = {
22
- ...cell.row,
23
- original: {
24
- ...cell.row.original,
25
- [cell.column.id]: change
26
- }
27
- };
28
- return !globalFilterFn(rowWithChange, cell.column.id, searchQuery);
29
- }
30
- function willRowMoveAfterFilter(cell, change) {
31
- if (!cell.column.getIsFiltered()) {
32
- return false;
33
- }
34
- return !columnFilterFn(change, cell.column.getFilterValue());
35
- }
36
- function willRowMoveAfterSorting(cell, change, rowIndex) {
12
+ return value !== newValue;
13
+ };
14
+ const willRowMoveAfterSorting = (value, cell, rowIndex, rows, desc) => {
37
15
  var _resortedRows$index;
38
- if (!cell.column.getIsSorted()) {
39
- return false;
40
- }
41
- const {
42
- table
43
- } = cell.getContext();
44
- const rows = table.getRowModel().rows;
45
16
  const miniSortRows = [{
46
17
  ...cell.row,
47
18
  original: {
48
19
  ...cell.row.original,
49
- [cell.column.id]: change
50
- },
51
- getValue: () => change
20
+ [cell.column.id]: value
21
+ }
52
22
  }];
23
+ // getValue is used by the built-in sort functons, so we need to make sure it returns the changed value
24
+ miniSortRows[0].getValue = () => value;
53
25
  let index = 0;
54
26
  if (rowIndex > 0) {
55
27
  miniSortRows.unshift(rows[rowIndex - 1]);
@@ -59,11 +31,31 @@ function willRowMoveAfterSorting(cell, change, rowIndex) {
59
31
  miniSortRows.push(rows[rowIndex + 1]);
60
32
  }
61
33
  let resortedRows = [...miniSortRows].sort((a, b) => cell.column.getSortingFn()(a, b, cell.column.id));
62
- if (cell.column.getIsSorted() === 'desc') {
34
+ if (desc) {
63
35
  resortedRows = resortedRows.reverse();
64
36
  }
65
37
  return ((_resortedRows$index = resortedRows[index]) === null || _resortedRows$index === void 0 ? void 0 : _resortedRows$index.id) !== cell.row.id;
38
+ };
39
+ // Last focused cell state (not react state)
40
+ class LastCellIndex {
41
+ constructor() {
42
+ this._value = '0';
43
+ }
44
+ get value() {
45
+ return this._value;
46
+ }
47
+ set value(val) {
48
+ this._value = val;
49
+ }
50
+ }
51
+ // Returns index of a closest parent column
52
+ function getColumnIndex(element) {
53
+ if (element) {
54
+ var _element$closest;
55
+ return (_element$closest = element.closest('[role=cell]')) === null || _element$closest === void 0 ? void 0 : _element$closest.getAttribute('data-column-index');
56
+ }
57
+ return null;
66
58
  }
67
59
 
68
- export { willRowMove };
60
+ export { LastCellIndex, focusableSelector, focussableNodeNames, getColumnIndex, hasChanged, willRowMoveAfterSorting };
69
61
  //# sourceMappingURL=editing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editing.js","sources":["../../../../../../../../src/components/Table3/util/editing.ts"],"sourcesContent":["import { Cell as ReactTableCell, Row as ReactTableRow, Table as ReactTable } from '@tanstack/react-table';\nimport { TableFilterValue } from '../../../primitives/Table/types';\nimport { columnFilterFn, globalFilterFn } from '../../../primitives/Table/useTableManager/util/filtering';\n\nexport function willRowMove<TType = unknown>(cell: ReactTableCell<TType, unknown>, change: unknown, rowIndex: number) {\n const { table } = cell.getContext();\n\n if (willRowMoveAfterSearch<TType>(cell, change, table)) {\n return 'search';\n } else if (willRowMoveAfterFilter<TType>(cell, change)) {\n return 'filter';\n } else if (willRowMoveAfterSorting<TType>(cell, change, rowIndex)) {\n return 'sorting';\n }\n\n return undefined;\n}\n\nfunction willRowMoveAfterSearch<TType = unknown>(\n cell: ReactTableCell<TType, unknown>,\n change: unknown,\n table: ReactTable<TType>\n) {\n const searchQuery = table.getState().globalFilter;\n\n if (!table.options.enableGlobalFilter || !searchQuery) {\n return false;\n }\n\n const rowWithChange = { ...cell.row, original: { ...cell.row.original, [cell.column.id]: change } };\n return !globalFilterFn(rowWithChange, cell.column.id, searchQuery);\n}\n\nfunction willRowMoveAfterFilter<TType = unknown>(cell: ReactTableCell<TType, unknown>, change: unknown) {\n if (!cell.column.getIsFiltered()) {\n return false;\n }\n\n return !columnFilterFn(change, cell.column.getFilterValue() as TableFilterValue);\n}\n\nfunction willRowMoveAfterSorting<TType = unknown>(cell: ReactTableCell<TType, unknown>, change: unknown, rowIndex: number) {\n if (!cell.column.getIsSorted()) {\n return false;\n }\n\n const { table } = cell.getContext();\n const rows = table.getRowModel().rows;\n\n const miniSortRows: ReactTableRow<TType>[] = [\n {\n ...cell.row,\n original: {\n ...cell.row.original,\n [cell.column.id]: change,\n },\n getValue: () => change as any,\n },\n ];\n\n let index = 0;\n\n if (rowIndex > 0) {\n miniSortRows.unshift(rows[rowIndex - 1]);\n index = 1;\n }\n\n if (rowIndex < rows.length - 1) {\n miniSortRows.push(rows[rowIndex + 1]);\n }\n\n let resortedRows = [...miniSortRows].sort((a, b) => cell.column.getSortingFn()(a, b, cell.column.id));\n\n if (cell.column.getIsSorted() === 'desc') {\n resortedRows = resortedRows.reverse();\n }\n\n return resortedRows[index]?.id !== cell.row.id;\n}\n"],"names":["willRowMove","cell","change","rowIndex","table","getContext","willRowMoveAfterSearch","willRowMoveAfterFilter","willRowMoveAfterSorting","undefined","searchQuery","getState","globalFilter","options","enableGlobalFilter","rowWithChange","row","original","column","id","globalFilterFn","getIsFiltered","columnFilterFn","getFilterValue","getIsSorted","rows","getRowModel","miniSortRows","getValue","index","unshift","length","push","resortedRows","sort","a","b","getSortingFn","reverse","_resortedRows$index"],"mappings":";;SAIgBA,WAAWA,CAAkBC,IAAoC,EAAEC,MAAe,EAAEC,QAAgB;EAChH,MAAM;IAAEC;GAAO,GAAGH,IAAI,CAACI,UAAU,EAAE;EAEnC,IAAIC,sBAAsB,CAAQL,IAAI,EAAEC,MAAM,EAAEE,KAAK,CAAC,EAAE;IACpD,OAAO,QAAQ;GAClB,MAAM,IAAIG,sBAAsB,CAAQN,IAAI,EAAEC,MAAM,CAAC,EAAE;IACpD,OAAO,QAAQ;GAClB,MAAM,IAAIM,uBAAuB,CAAQP,IAAI,EAAEC,MAAM,EAAEC,QAAQ,CAAC,EAAE;IAC/D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B;IACD0B,QAAQ,EAAEA,MAAM1B;GACnB,CACJ;EAED,IAAI2B,KAAK,GAAG,CAAC;EAEb,IAAI1B,QAAQ,GAAG,CAAC,EAAE;IACdwB,YAAY,CAACG,OAAO,CAACL,IAAI,CAACtB,QAAQ,GAAG,CAAC,CAAC,CAAC;IACxC0B,KAAK,GAAG,CAAC;;EAGb,IAAI1B,QAAQ,GAAGsB,IAAI,CAACM,MAAM,GAAG,CAAC,EAAE;IAC5BJ,YAAY,CAACK,IAAI,CAACP,IAAI,CAACtB,QAAQ,GAAG,CAAC,CAAC,CAAC;;EAGzC,IAAI8B,YAAY,GAAG,CAAC,GAAGN,YAAY,CAAC,CAACO,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKnC,IAAI,CAACiB,MAAM,CAACmB,YAAY,EAAE,CAACF,CAAC,EAAEC,CAAC,EAAEnC,IAAI,CAACiB,MAAM,CAACC,EAAE,CAAC,CAAC;EAErG,IAAIlB,IAAI,CAACiB,MAAM,CAACM,WAAW,EAAE,KAAK,MAAM,EAAE;IACtCS,YAAY,GAAGA,YAAY,CAACK,OAAO,EAAE;;EAGzC,OAAO,EAAAC,mBAAA,GAAAN,YAAY,CAACJ,KAAK,CAAC,cAAAU,mBAAA,uBAAnBA,mBAAA,CAAqBpB,EAAE,MAAKlB,IAAI,CAACe,GAAG,CAACG,EAAE;AAClD;;;;"}
1
+ {"version":3,"file":"editing.js","sources":["../../../../../../../../src/components/Table3/util/editing.ts"],"sourcesContent":["import { isDate } from 'date-fns';\nimport { isWeakEqual as isWeakEqualDate } from '../../../utils/date';\n\nexport const focussableNodeNames = ['A', 'BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'DETAILS'];\nexport const focusableSelector = focussableNodeNames.join(', ');\n\nexport const hasChanged = (value, newValue) => {\n if (isDate(value) && isDate(newValue)) {\n return !isWeakEqualDate(value, newValue);\n } else if (Array.isArray(value)) {\n return JSON.stringify(value) !== JSON.stringify(newValue);\n }\n\n return value !== newValue;\n};\n\nexport const willRowMoveAfterSorting = (value, cell, rowIndex, rows, desc): boolean => {\n const miniSortRows = [{ ...cell.row, original: { ...cell.row.original, [cell.column.id]: value } }];\n // getValue is used by the built-in sort functons, so we need to make sure it returns the changed value\n miniSortRows[0].getValue = () => value;\n\n let index = 0;\n\n if (rowIndex > 0) {\n miniSortRows.unshift(rows[rowIndex - 1]);\n index = 1;\n }\n\n if (rowIndex < rows.length - 1) {\n miniSortRows.push(rows[rowIndex + 1]);\n }\n\n let resortedRows = [...miniSortRows].sort((a, b) => cell.column.getSortingFn()(a, b, cell.column.id));\n\n if (desc) {\n resortedRows = resortedRows.reverse();\n }\n\n return resortedRows[index]?.id !== cell.row.id;\n};\n// Last focused cell state (not react state)\nexport class LastCellIndex {\n _value: string | null | undefined = '0';\n get value() {\n return this._value;\n }\n set value(val: string | null | undefined) {\n this._value = val;\n }\n}\n\n// Returns index of a closest parent column\nexport function getColumnIndex(element: Element) {\n if (element) {\n return element.closest('[role=cell]')?.getAttribute('data-column-index');\n }\n\n return null;\n}\n"],"names":["focussableNodeNames","focusableSelector","join","hasChanged","value","newValue","isDate","isWeakEqualDate","Array","isArray","JSON","stringify","willRowMoveAfterSorting","cell","rowIndex","rows","desc","miniSortRows","row","original","column","id","getValue","index","unshift","length","push","resortedRows","sort","a","b","getSortingFn","reverse","_resortedRows$index","LastCellIndex","constructor","_value","val","getColumnIndex","element","_element$closest","closest","getAttribute"],"mappings":";;;MAGaA,mBAAmB,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS;MAC9EC,iBAAiB,gBAAGD,mBAAmB,CAACE,IAAI,CAAC,IAAI;MAEjDC,UAAU,GAAGA,CAACC,KAAK,EAAEC,QAAQ;EACtC,IAAIC,MAAM,CAACF,KAAK,CAAC,IAAIE,MAAM,CAACD,QAAQ,CAAC,EAAE;IACnC,OAAO,CAACE,WAAe,CAACH,KAAK,EAAEC,QAAQ,CAA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,mBAAA,CAAqBZ,EAAE,MAAKR,IAAI,CAACK,GAAG,CAACG,EAAE;AAClD;AACA;MACaa,aAAa;EAA1BC;IACI,WAAM,GAA8B,GAAG;;EACvC,IAAI/B,KAAKA;IACL,OAAO,IAAI,CAACgC,MAAM;;EAEtB,IAAIhC,KAAKA,CAACiC,GAA8B;IACpC,IAAI,CAACD,MAAM,GAAGC,GAAG;;;AAIzB;SACgBC,cAAcA,CAACC,OAAgB;EAC3C,IAAIA,OAAO,EAAE;IAAA,IAAAC,gBAAA;IACT,QAAAA,gBAAA,GAAOD,OAAO,CAACE,OAAO,CAAC,aAAa,CAAC,cAAAD,gBAAA,uBAA9BA,gBAAA,CAAgCE,YAAY,CAAC,mBAAmB,CAAC;;EAG5E,OAAO,IAAI;AACf;;;;"}
@@ -0,0 +1,120 @@
1
+ import { isDate, isBefore, isAfter, isEqual } from 'date-fns';
2
+ import { isWeakEqual as isWeakEqual$1 } from '../../../utils/date.js';
3
+ import { Table3FilterComparator } from '../types.js';
4
+
5
+ const toLowerCase = value => String(value !== null && value !== void 0 ? value : '').toLocaleLowerCase();
6
+ const isWeakContains = (left, right) => toLowerCase(left).includes(toLowerCase(right));
7
+ const isWeakEqual = (left, right) => toLowerCase(left) === toLowerCase(right);
8
+ function globalFilterFn(value, query) {
9
+ return isWeakContains(value, query);
10
+ }
11
+ // the filter type is only settable on the column definition, which would re-render all columns
12
+ // so instead we store it in the filter value, but that means we also have to destructure that
13
+ // before we filter - that's why this custom filter function exists
14
+ function columnFilterFn(value, filter) {
15
+ try {
16
+ if (filter.comparator === Table3FilterComparator.IsEmpty || filter.comparator === Table3FilterComparator.IsNotEmpty) {
17
+ const isEmpty = value === undefined || value === null || value === '';
18
+ return filter.comparator === Table3FilterComparator.IsEmpty ? isEmpty : !isEmpty;
19
+ }
20
+ if (filter.value === undefined || filter.value === null || filter.value === '') {
21
+ return true;
22
+ }
23
+ switch (filter.comparator) {
24
+ case Table3FilterComparator.Contains:
25
+ return isWeakContains(value, filter.value);
26
+ case Table3FilterComparator.DoesNotContain:
27
+ return !isWeakContains(value, filter.value);
28
+ case Table3FilterComparator.IsEqualTo:
29
+ {
30
+ if (isDate(value)) {
31
+ return isDate(filter.value) && isWeakEqual$1(value, filter.value);
32
+ } else if (typeof filter.value === 'boolean') {
33
+ return value === filter.value;
34
+ }
35
+ return isWeakEqual(value, filter.value);
36
+ }
37
+ case Table3FilterComparator.IsNotEqualTo:
38
+ {
39
+ if (isDate(value)) {
40
+ return isDate(filter.value) && isWeakEqual$1(value, filter.value) === false;
41
+ } else if (typeof filter.value === 'boolean') {
42
+ return value !== filter.value;
43
+ }
44
+ return !isWeakEqual(value, filter.value);
45
+ }
46
+ case Table3FilterComparator.IsGreaterThan:
47
+ {
48
+ if (isDate(value)) {
49
+ return isDate(filter.value) && isAfter(value, filter.value);
50
+ } else {
51
+ const valueAsNumber = parseInt(value);
52
+ return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber > filter.value;
53
+ }
54
+ }
55
+ case Table3FilterComparator.IsLessThan:
56
+ {
57
+ if (isDate(value)) {
58
+ return isDate(filter.value) && isBefore(value, filter.value);
59
+ } else {
60
+ const valueAsNumber = parseInt(value);
61
+ return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber < filter.value;
62
+ }
63
+ }
64
+ case Table3FilterComparator.IsLessThanOrEqualTo:
65
+ {
66
+ if (isDate(value)) {
67
+ return isDate(filter.value) && (isBefore(value, filter.value) || isEqual(value, filter.value));
68
+ } else {
69
+ const valueAsNumber = parseInt(value);
70
+ return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber <= filter.value;
71
+ }
72
+ }
73
+ case Table3FilterComparator.IsGreaterThanOrEqualTo:
74
+ {
75
+ if (isDate(value)) {
76
+ return isDate(filter.value) && (isAfter(value, filter.value) || isEqual(value, filter.value));
77
+ } else {
78
+ const valueAsNumber = parseInt(value);
79
+ return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber >= filter.value;
80
+ }
81
+ }
82
+ case Table3FilterComparator.IsBetween:
83
+ {
84
+ const [fromValue, toValue] = filter.value;
85
+ if (isDate(value)) {
86
+ if (isDate(fromValue) && isBefore(value, fromValue)) {
87
+ return false;
88
+ } else if (isDate(toValue) && isAfter(value, toValue)) {
89
+ return false;
90
+ }
91
+ return true;
92
+ } else {
93
+ const valueAsNumber = parseInt(value);
94
+ if (isNaN(valueAsNumber)) {
95
+ return false;
96
+ }
97
+ if (fromValue !== undefined && valueAsNumber < fromValue) {
98
+ return false;
99
+ } else if (toValue !== undefined && valueAsNumber > toValue) {
100
+ return false;
101
+ }
102
+ return true;
103
+ }
104
+ }
105
+ case Table3FilterComparator.HasAnyOf:
106
+ return Array.isArray(filter.value) && Array.isArray(value) ? filter.value.some(item => value.includes(item)) : false;
107
+ case Table3FilterComparator.HasNoneOf:
108
+ return Array.isArray(filter.value) && Array.isArray(value) ? filter.value.every(item => value.includes(item) === false) : false;
109
+ case Table3FilterComparator.HasAllOf:
110
+ return Array.isArray(filter.value) && Array.isArray(value) ? filter.value.filter(v => value.includes(v)).length === filter.value.length : false;
111
+ }
112
+ return false;
113
+ } catch (e) {
114
+ console.error(e);
115
+ return true;
116
+ }
117
+ }
118
+
119
+ export { columnFilterFn, globalFilterFn };
120
+ //# sourceMappingURL=filtering.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filtering.js","sources":["../../../../../../../../src/components/Table3/util/filtering.ts"],"sourcesContent":["import { isDate, isAfter as isAfterDate, isBefore as isBeforeDate, isEqual as isEqualDate } from 'date-fns';\nimport { isWeakEqual as isWeakEqualDate } from '../../../utils/date';\nimport { Table3FilterValue, Table3FilterComparator } from '../types';\n\nconst toLowerCase = (value: string | number) => String(value ?? '').toLocaleLowerCase();\nconst isWeakContains = (left: string | number, right: string | number) => toLowerCase(left).includes(toLowerCase(right));\nconst isWeakEqual = (left: string | number, right: string | number) => toLowerCase(left) === toLowerCase(right);\n\nexport function globalFilterFn(value: string, query: string) {\n return isWeakContains(value, query);\n}\n\n// the filter type is only settable on the column definition, which would re-render all columns\n// so instead we store it in the filter value, but that means we also have to destructure that\n// before we filter - that's why this custom filter function exists\nexport function columnFilterFn(value: any, filter: Table3FilterValue) {\n try {\n if (filter.comparator === Table3FilterComparator.IsEmpty || filter.comparator === Table3FilterComparator.IsNotEmpty) {\n const isEmpty = value === undefined || value === null || value === '';\n return filter.comparator === Table3FilterComparator.IsEmpty ? isEmpty : !isEmpty;\n }\n\n if (filter.value === undefined || filter.value === null || filter.value === '') {\n return true;\n }\n\n switch (filter.comparator) {\n case Table3FilterComparator.Contains:\n return isWeakContains(value, filter.value);\n\n case Table3FilterComparator.DoesNotContain:\n return !isWeakContains(value, filter.value);\n\n case Table3FilterComparator.IsEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && isWeakEqualDate(value, filter.value);\n } else if (typeof filter.value === 'boolean') {\n return value === filter.value;\n }\n\n return isWeakEqual(value, filter.value);\n }\n\n case Table3FilterComparator.IsNotEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && isWeakEqualDate(value, filter.value) === false;\n } else if (typeof filter.value === 'boolean') {\n return value !== filter.value;\n }\n\n return !isWeakEqual(value, filter.value);\n }\n\n case Table3FilterComparator.IsGreaterThan: {\n if (isDate(value)) {\n return isDate(filter.value) && isAfterDate(value, filter.value);\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber > filter.value;\n }\n }\n\n case Table3FilterComparator.IsLessThan: {\n if (isDate(value)) {\n return isDate(filter.value) && isBeforeDate(value, filter.value);\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber < filter.value;\n }\n }\n\n case Table3FilterComparator.IsLessThanOrEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && (isBeforeDate(value, filter.value) || isEqualDate(value, filter.value));\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber <= filter.value;\n }\n }\n\n case Table3FilterComparator.IsGreaterThanOrEqualTo: {\n if (isDate(value)) {\n return isDate(filter.value) && (isAfterDate(value, filter.value) || isEqualDate(value, filter.value));\n } else {\n const valueAsNumber = parseInt(value);\n return !isNaN(valueAsNumber) && filter.value !== undefined && valueAsNumber >= filter.value;\n }\n }\n\n case Table3FilterComparator.IsBetween: {\n const [fromValue, toValue] = filter.value;\n\n if (isDate(value)) {\n if (isDate(fromValue) && isBeforeDate(value, fromValue)) {\n return false;\n } else if (isDate(toValue) && isAfterDate(value, toValue)) {\n return false;\n }\n\n return true;\n } else {\n const valueAsNumber = parseInt(value);\n\n if (isNaN(valueAsNumber)) {\n return false;\n }\n\n if (fromValue !== undefined && valueAsNumber < fromValue) {\n return false;\n } else if (toValue !== undefined && valueAsNumber > toValue) {\n return false;\n }\n\n return true;\n }\n }\n\n case Table3FilterComparator.HasAnyOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.some(item => value.includes(item))\n : false;\n\n case Table3FilterComparator.HasNoneOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.every(item => value.includes(item) === false)\n : false;\n\n case Table3FilterComparator.HasAllOf:\n return Array.isArray(filter.value) && Array.isArray(value)\n ? filter.value.filter(v => value.includes(v)).length === filter.value.length\n : false;\n }\n\n return false;\n } catch (e) {\n console.error(e);\n return true;\n }\n}\n"],"names":["toLowerCase","value","String","toLocaleLowerCase","isWeakContains","left","right","includes","isWeakEqual","globalFilterFn","query","columnFilterFn","filter","comparator","Table3FilterComparator","IsEmpty","IsNotEmpty","isEmpty","undefined","Contains","DoesNotContain","IsEqualTo","isDate","isWeakEqualDate","IsNotEqualTo","IsGreaterThan","isAfterDate","valueAsNumber","parseInt","isNaN","IsLessThan","isBeforeDate","IsLessThanOrEqualTo","isEqualDate","IsGreaterThanOrEqualTo","IsBetween","fromValue","toValue","HasAnyOf","Array","isArray","some","item","HasNoneOf","every","HasAllOf","v","length","e","console","error"],"mappings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