@economic/taco 2.25.0 → 2.25.1-alpha.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (997) hide show
  1. package/dist/esm/index.css +208 -515
  2. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
  3. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  4. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -6
  5. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  6. package/dist/esm/packages/taco/src/components/Provider/Localization.js +46 -43
  7. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  8. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
  9. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  10. package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
  11. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  12. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  13. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  14. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  15. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  16. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  17. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  18. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  19. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  20. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  21. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  22. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  23. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  24. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  25. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  26. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  27. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  28. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  29. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  30. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  31. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  32. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  33. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  34. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  35. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  36. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  37. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  38. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  39. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  40. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  41. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  42. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  43. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  44. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  45. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  46. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  47. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  48. package/dist/esm/packages/taco/src/index.js +1 -1
  49. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  50. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  51. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  52. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  53. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/Body.js +22 -12
  54. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  55. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  56. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  57. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
  58. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  59. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
  60. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  61. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
  62. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  63. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
  64. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  65. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
  66. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  68. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  69. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  71. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
  72. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  73. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  74. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +6 -6
  75. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  76. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
  77. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  78. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Goto.js +5 -5
  79. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  80. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
  81. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  82. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
  83. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  84. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
  85. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  86. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
  87. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  88. package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
  89. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  90. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  91. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  93. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
  94. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +53 -0
  96. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  97. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  99. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
  100. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  101. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
  102. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  103. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
  104. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  105. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
  106. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  107. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
  108. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  109. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  110. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
  111. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  113. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  114. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +7 -6
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  116. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
  117. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  118. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
  119. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  120. package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
  121. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  122. package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
  123. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  124. package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
  125. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  126. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
  127. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  128. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  129. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
  130. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  131. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
  132. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  134. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  135. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  136. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  137. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +4 -14
  138. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  139. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  140. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  141. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  142. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  143. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +1 -3
  144. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  145. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
  146. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  147. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +13 -7
  148. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  149. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
  150. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  151. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  152. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  153. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  154. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  155. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  156. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  157. package/dist/index.css +208 -515
  158. package/dist/{components → packages/taco/src/components}/Provider/Localization.d.ts +45 -39
  159. package/dist/packages/taco/src/components/Report/Report.d.ts +10 -0
  160. package/dist/packages/taco/src/components/Report/__stories__/util.d.ts +19 -0
  161. package/dist/packages/taco/src/components/Report/useReport.d.ts +23 -0
  162. package/dist/{components → packages/taco/src/components}/Table/Table.d.ts +2 -2
  163. package/dist/packages/taco/src/components/Table3/Table3.d.ts +20 -0
  164. package/dist/packages/taco/src/components/Table3/__stories__/util.d.ts +23 -0
  165. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  166. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  167. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  168. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  169. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  170. package/dist/packages/taco/src/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  171. package/dist/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  172. package/dist/packages/taco/src/components/Table3/components/Editing/Alert.d.ts +12 -0
  173. package/dist/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  174. package/dist/packages/taco/src/components/Table3/components/Row/Row.d.ts +3 -0
  175. package/dist/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  176. package/dist/packages/taco/src/components/Table3/features/useTableEditing.d.ts +46 -0
  177. package/dist/packages/taco/src/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  178. package/dist/packages/taco/src/components/Table3/types.d.ts +54 -0
  179. package/dist/packages/taco/src/components/Table3/useTable3.d.ts +30 -0
  180. package/dist/packages/taco/src/components/Table3/util/editing.d.ts +2 -0
  181. package/dist/{index.d.ts → packages/taco/src/index.d.ts} +1 -0
  182. package/dist/packages/taco/src/primitives/Table/Core/Table.d.ts +19 -0
  183. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/Body.d.ts +1 -1
  184. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
  185. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  186. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  187. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
  188. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
  189. package/dist/{components/Report/components → packages/taco/src/primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
  190. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  191. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  192. package/dist/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  193. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/Header.d.ts +7 -2
  194. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Goto.d.ts +1 -1
  195. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
  196. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
  197. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
  198. package/dist/packages/taco/src/primitives/Table/Core/components/Header/util.d.ts +4 -0
  199. package/dist/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  200. package/dist/packages/taco/src/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  201. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
  202. package/dist/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  203. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
  204. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
  205. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  206. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
  207. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
  208. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
  209. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
  210. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  211. package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
  212. package/dist/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  213. package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
  214. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
  215. package/dist/{components/Report/util → packages/taco/src/primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
  216. package/dist/packages/taco/src/primitives/Table/Core/types.d.ts +24 -0
  217. package/dist/packages/taco/src/primitives/Table/Core/useTable.d.ts +25 -0
  218. package/dist/{primitives → packages/taco/src/primitives}/Table/types.d.ts +166 -1
  219. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
  220. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  221. package/dist/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  222. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/types.d.ts +1 -0
  223. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/useTableManager.d.ts +9 -3
  224. package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/settings.d.ts +1 -1
  225. package/dist/{utils → packages/taco/src/utils}/dom.d.ts +2 -1
  226. package/dist/taco.cjs.development.js +6999 -11640
  227. package/dist/taco.cjs.development.js.map +1 -1
  228. package/dist/taco.cjs.production.min.js +1 -1
  229. package/dist/taco.cjs.production.min.js.map +1 -1
  230. package/package.json +3 -2
  231. package/types.json +21580 -51743
  232. package/dist/components/Report/Report.d.ts +0 -23
  233. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  234. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  235. package/dist/components/Report/components/Header/util.d.ts +0 -4
  236. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  237. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  238. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  239. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  240. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  241. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  242. package/dist/components/Report/styles/util.d.ts +0 -3
  243. package/dist/components/Report/types.d.ts +0 -20
  244. package/dist/components/Report/useReport.d.ts +0 -9
  245. package/dist/components/Table3/Table3.d.ts +0 -19
  246. package/dist/components/Table3/components/alert/ErrorAlert.d.ts +0 -10
  247. package/dist/components/Table3/components/columns/cell/Cell.d.ts +0 -6
  248. package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +0 -25
  249. package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +0 -14
  250. package/dist/components/Table3/components/columns/cell/EditingControl.d.ts +0 -21
  251. package/dist/components/Table3/components/columns/cell/Highlight.d.ts +0 -2
  252. package/dist/components/Table3/components/columns/cell/Indicator.d.ts +0 -22
  253. package/dist/components/Table3/components/columns/cell/controls/TextareaControl.d.ts +0 -2
  254. package/dist/components/Table3/components/columns/footer/Footer.d.ts +0 -14
  255. package/dist/components/Table3/components/columns/footer/Summary.d.ts +0 -8
  256. package/dist/components/Table3/components/columns/header/Goto.d.ts +0 -6
  257. package/dist/components/Table3/components/columns/header/Group.d.ts +0 -15
  258. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  259. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  260. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  261. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  262. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  263. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  264. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  265. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  266. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  267. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  268. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  269. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  270. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  271. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  272. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  273. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  274. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  275. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  276. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  277. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  278. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  279. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  280. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  281. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  282. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  283. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  284. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  285. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  286. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  287. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  288. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  289. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  290. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  291. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  292. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  293. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  294. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  295. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  296. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  297. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  298. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  299. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  300. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  301. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  302. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  303. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  304. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  305. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  306. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  307. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  308. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  309. package/dist/components/Table3/strategies/index.d.ts +0 -4
  310. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  311. package/dist/components/Table3/types.d.ts +0 -379
  312. package/dist/components/Table3/util/columns.d.ts +0 -8
  313. package/dist/components/Table3/util/editing.d.ts +0 -10
  314. package/dist/components/Table3/util/filtering.d.ts +0 -3
  315. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  316. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  317. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  318. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  319. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  320. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  321. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  322. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  323. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  324. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  325. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  326. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  327. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  328. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  329. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  330. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  331. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  332. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  333. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  334. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  335. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  336. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  337. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  338. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  339. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  340. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  341. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  342. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  343. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  344. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  345. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  346. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  347. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  348. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  349. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  350. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  351. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  352. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  353. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  354. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  355. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  356. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  357. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  358. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  359. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  360. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  361. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  362. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  363. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  364. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  365. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  366. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  367. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  368. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  369. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  370. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  371. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  372. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  373. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  374. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  375. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  376. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  377. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  378. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  379. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  380. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  381. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  382. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js +0 -28
  383. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  384. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  385. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  386. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  387. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  388. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  389. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  390. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  391. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  392. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  393. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  394. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  395. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  396. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  397. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  398. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  399. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  400. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  401. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  402. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  403. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  404. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  405. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  406. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  407. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  408. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  409. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  410. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  411. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  412. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  413. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  414. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  415. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  416. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  417. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  418. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  419. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  420. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  421. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  422. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  423. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  424. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  425. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  426. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  427. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  428. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  429. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  430. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  431. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  432. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  433. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  434. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  435. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  436. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  437. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  438. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  439. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  440. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  441. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  442. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  443. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  444. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  445. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  446. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  447. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  448. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  449. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  450. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  451. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  452. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  453. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  454. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  455. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  456. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  457. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  458. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  459. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  460. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  461. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  462. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  463. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  464. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  465. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  466. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  467. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  468. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  469. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  470. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  471. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  472. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  473. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  474. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  475. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  476. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  477. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  478. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  479. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  480. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  481. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  482. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  483. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  484. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  485. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  486. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  487. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  488. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  489. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  490. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  491. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  492. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  493. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  494. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  495. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  496. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  497. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  498. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  499. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  500. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  501. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  502. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +0 -1
  503. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  504. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  505. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  506. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  507. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
  508. /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
  509. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  510. /package/dist/{components → packages/taco/src/components}/Accordion/Accordion.d.ts +0 -0
  511. /package/dist/{components → packages/taco/src/components}/Alert/Alert.d.ts +0 -0
  512. /package/dist/{components → packages/taco/src/components}/AlertDialog/AlertDialog.d.ts +0 -0
  513. /package/dist/{components → packages/taco/src/components}/AlertDialog/Context.d.ts +0 -0
  514. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Content.d.ts +0 -0
  515. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Footer.d.ts +0 -0
  516. /package/dist/{components → packages/taco/src/components}/AlertDialog/components/Trigger.d.ts +0 -0
  517. /package/dist/{components → packages/taco/src/components}/Backdrop/Backdrop.d.ts +0 -0
  518. /package/dist/{components → packages/taco/src/components}/Badge/Badge.d.ts +0 -0
  519. /package/dist/{components → packages/taco/src/components}/BadgeIcon/BadgeIcon.d.ts +0 -0
  520. /package/dist/{components → packages/taco/src/components}/Banner/Banner.d.ts +0 -0
  521. /package/dist/{components → packages/taco/src/components}/Banner/util.d.ts +0 -0
  522. /package/dist/{components → packages/taco/src/components}/Button/Button.d.ts +0 -0
  523. /package/dist/{components → packages/taco/src/components}/Button/util.d.ts +0 -0
  524. /package/dist/{components → packages/taco/src/components}/Calendar/Calendar.d.ts +0 -0
  525. /package/dist/{components → packages/taco/src/components}/Card/Card.d.ts +0 -0
  526. /package/dist/{components → packages/taco/src/components}/Checkbox/Checkbox.d.ts +0 -0
  527. /package/dist/{components → packages/taco/src/components}/Combobox/Combobox.d.ts +0 -0
  528. /package/dist/{components → packages/taco/src/components}/Combobox/useCombobox.d.ts +0 -0
  529. /package/dist/{components → packages/taco/src/components}/Datepicker/Datepicker.d.ts +0 -0
  530. /package/dist/{components → packages/taco/src/components}/Datepicker/useDatepicker.d.ts +0 -0
  531. /package/dist/{components → packages/taco/src/components}/Dialog/Context.d.ts +0 -0
  532. /package/dist/{components → packages/taco/src/components}/Dialog/Dialog.d.ts +0 -0
  533. /package/dist/{components → packages/taco/src/components}/Dialog/components/Content.d.ts +0 -0
  534. /package/dist/{components → packages/taco/src/components}/Dialog/components/DialogDrawer.d.ts +0 -0
  535. /package/dist/{components → packages/taco/src/components}/Dialog/components/Extra.d.ts +0 -0
  536. /package/dist/{components → packages/taco/src/components}/Dialog/components/Trigger.d.ts +0 -0
  537. /package/dist/{components → packages/taco/src/components}/Dialog/types.d.ts +0 -0
  538. /package/dist/{components → packages/taco/src/components}/Dialog/util.d.ts +0 -0
  539. /package/dist/{components → packages/taco/src/components}/Drawer/Context.d.ts +0 -0
  540. /package/dist/{components → packages/taco/src/components}/Drawer/Drawer.d.ts +0 -0
  541. /package/dist/{components → packages/taco/src/components}/Drawer/components/Content.d.ts +0 -0
  542. /package/dist/{components → packages/taco/src/components}/Drawer/components/Trigger.d.ts +0 -0
  543. /package/dist/{components → packages/taco/src/components}/Drawer/images.d.ts +0 -0
  544. /package/dist/{components → packages/taco/src/components}/Drawer/types.d.ts +0 -0
  545. /package/dist/{components → packages/taco/src/components}/Drawer/util.d.ts +0 -0
  546. /package/dist/{components → packages/taco/src/components}/Field/Field.d.ts +0 -0
  547. /package/dist/{components → packages/taco/src/components}/Form/Form.d.ts +0 -0
  548. /package/dist/{components → packages/taco/src/components}/Group/Group.d.ts +0 -0
  549. /package/dist/{components → packages/taco/src/components}/Hanger/Hanger.d.ts +0 -0
  550. /package/dist/{components → packages/taco/src/components}/Header/Header.d.ts +0 -0
  551. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Avatar.d.ts +0 -0
  552. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Badge.d.ts +0 -0
  553. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Display.d.ts +0 -0
  554. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/Item.d.ts +0 -0
  555. /package/dist/{components → packages/taco/src/components}/Header/components/Agreement/types.d.ts +0 -0
  556. /package/dist/{components → packages/taco/src/components}/Header/components/AgreementSelector.d.ts +0 -0
  557. /package/dist/{components → packages/taco/src/components}/Header/components/Button.d.ts +0 -0
  558. /package/dist/{components → packages/taco/src/components}/Header/components/Link.d.ts +0 -0
  559. /package/dist/{components → packages/taco/src/components}/Header/components/Logo.d.ts +0 -0
  560. /package/dist/{components → packages/taco/src/components}/Header/components/MenuButton.d.ts +0 -0
  561. /package/dist/{components → packages/taco/src/components}/Header/components/PrimaryNavigation.d.ts +0 -0
  562. /package/dist/{components → packages/taco/src/components}/Header/components/SecondaryNavigation.d.ts +0 -0
  563. /package/dist/{components → packages/taco/src/components}/HoverCard/HoverCard.d.ts +0 -0
  564. /package/dist/{components → packages/taco/src/components}/HoverCard/Primitives.d.ts +0 -0
  565. /package/dist/{components → packages/taco/src/components}/Icon/Icon.d.ts +0 -0
  566. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountPreview.d.ts +0 -0
  567. /package/dist/{components → packages/taco/src/components}/Icon/components/Accounting.d.ts +0 -0
  568. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYear.d.ts +0 -0
  569. /package/dist/{components → packages/taco/src/components}/Icon/components/AccountingYearCancel.d.ts +0 -0
  570. /package/dist/{components → packages/taco/src/components}/Icon/components/AiChatSolid.d.ts +0 -0
  571. /package/dist/{components → packages/taco/src/components}/Icon/components/AiStars.d.ts +0 -0
  572. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowBottom.d.ts +0 -0
  573. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowDown.d.ts +0 -0
  574. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowEnd.d.ts +0 -0
  575. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowLeft.d.ts +0 -0
  576. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowRight.d.ts +0 -0
  577. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowStart.d.ts +0 -0
  578. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowTop.d.ts +0 -0
  579. /package/dist/{components → packages/taco/src/components}/Icon/components/ArrowUp.d.ts +0 -0
  580. /package/dist/{components → packages/taco/src/components}/Icon/components/Attach.d.ts +0 -0
  581. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachAuto.d.ts +0 -0
  582. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachCancel.d.ts +0 -0
  583. /package/dist/{components → packages/taco/src/components}/Icon/components/AttachWarning.d.ts +0 -0
  584. /package/dist/{components → packages/taco/src/components}/Icon/components/Autotext.d.ts +0 -0
  585. /package/dist/{components → packages/taco/src/components}/Icon/components/AutotextInsert.d.ts +0 -0
  586. /package/dist/{components → packages/taco/src/components}/Icon/components/Basic.d.ts +0 -0
  587. /package/dist/{components → packages/taco/src/components}/Icon/components/BasicTabs.d.ts +0 -0
  588. /package/dist/{components → packages/taco/src/components}/Icon/components/BellSolid.d.ts +0 -0
  589. /package/dist/{components → packages/taco/src/components}/Icon/components/Book.d.ts +0 -0
  590. /package/dist/{components → packages/taco/src/components}/Icon/components/Booking.d.ts +0 -0
  591. /package/dist/{components → packages/taco/src/components}/Icon/components/Budget.d.ts +0 -0
  592. /package/dist/{components → packages/taco/src/components}/Icon/components/Calendar.d.ts +0 -0
  593. /package/dist/{components → packages/taco/src/components}/Icon/components/CashAccount.d.ts +0 -0
  594. /package/dist/{components → packages/taco/src/components}/Icon/components/CashReports.d.ts +0 -0
  595. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartArea.d.ts +0 -0
  596. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartBar.d.ts +0 -0
  597. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartLine.d.ts +0 -0
  598. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartPie.d.ts +0 -0
  599. /package/dist/{components → packages/taco/src/components}/Icon/components/ChartTable.d.ts +0 -0
  600. /package/dist/{components → packages/taco/src/components}/Icon/components/Chat.d.ts +0 -0
  601. /package/dist/{components → packages/taco/src/components}/Icon/components/ChatSolid.d.ts +0 -0
  602. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDown.d.ts +0 -0
  603. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownDouble.d.ts +0 -0
  604. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronDownSolid.d.ts +0 -0
  605. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeft.d.ts +0 -0
  606. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftDouble.d.ts +0 -0
  607. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronLeftSolid.d.ts +0 -0
  608. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRight.d.ts +0 -0
  609. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightDouble.d.ts +0 -0
  610. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronRightSolid.d.ts +0 -0
  611. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUp.d.ts +0 -0
  612. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpDouble.d.ts +0 -0
  613. /package/dist/{components → packages/taco/src/components}/Icon/components/ChevronUpSolid.d.ts +0 -0
  614. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleClose.d.ts +0 -0
  615. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleInformation.d.ts +0 -0
  616. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleMinus.d.ts +0 -0
  617. /package/dist/{components → packages/taco/src/components}/Icon/components/CirclePlus.d.ts +0 -0
  618. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleQuestionmark.d.ts +0 -0
  619. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleTick.d.ts +0 -0
  620. /package/dist/{components → packages/taco/src/components}/Icon/components/CircleWarning.d.ts +0 -0
  621. /package/dist/{components → packages/taco/src/components}/Icon/components/Clamp.d.ts +0 -0
  622. /package/dist/{components → packages/taco/src/components}/Icon/components/ClampOpen.d.ts +0 -0
  623. /package/dist/{components → packages/taco/src/components}/Icon/components/Close.d.ts +0 -0
  624. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnFreeze.d.ts +0 -0
  625. /package/dist/{components → packages/taco/src/components}/Icon/components/ColumnUnfreeze.d.ts +0 -0
  626. /package/dist/{components → packages/taco/src/components}/Icon/components/Columns.d.ts +0 -0
  627. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionEnable.d.ts +0 -0
  628. /package/dist/{components → packages/taco/src/components}/Icon/components/ConnectionRevoke.d.ts +0 -0
  629. /package/dist/{components → packages/taco/src/components}/Icon/components/Contacts.d.ts +0 -0
  630. /package/dist/{components → packages/taco/src/components}/Icon/components/Copy.d.ts +0 -0
  631. /package/dist/{components → packages/taco/src/components}/Icon/components/Courses.d.ts +0 -0
  632. /package/dist/{components → packages/taco/src/components}/Icon/components/Credit.d.ts +0 -0
  633. /package/dist/{components → packages/taco/src/components}/Icon/components/Delete.d.ts +0 -0
  634. /package/dist/{components → packages/taco/src/components}/Icon/components/DeletePermanently.d.ts +0 -0
  635. /package/dist/{components → packages/taco/src/components}/Icon/components/Depecriate.d.ts +0 -0
  636. /package/dist/{components → packages/taco/src/components}/Icon/components/Developer.d.ts +0 -0
  637. /package/dist/{components → packages/taco/src/components}/Icon/components/DistributionTemplate.d.ts +0 -0
  638. /package/dist/{components → packages/taco/src/components}/Icon/components/Document.d.ts +0 -0
  639. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentApprove.d.ts +0 -0
  640. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCreateEntry.d.ts +0 -0
  641. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentCut.d.ts +0 -0
  642. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentError.d.ts +0 -0
  643. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentIsolatePage.d.ts +0 -0
  644. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMerge.d.ts +0 -0
  645. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentMove.d.ts +0 -0
  646. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentPreview.d.ts +0 -0
  647. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentReceived.d.ts +0 -0
  648. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentRejectedRequest.d.ts +0 -0
  649. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentSplit.d.ts +0 -0
  650. /package/dist/{components → packages/taco/src/components}/Icon/components/DocumentTime.d.ts +0 -0
  651. /package/dist/{components → packages/taco/src/components}/Icon/components/Download.d.ts +0 -0
  652. /package/dist/{components → packages/taco/src/components}/Icon/components/Drag.d.ts +0 -0
  653. /package/dist/{components → packages/taco/src/components}/Icon/components/ECopedia.d.ts +0 -0
  654. /package/dist/{components → packages/taco/src/components}/Icon/components/ESignature.d.ts +0 -0
  655. /package/dist/{components → packages/taco/src/components}/Icon/components/Edit.d.ts +0 -0
  656. /package/dist/{components → packages/taco/src/components}/Icon/components/EditSimple.d.ts +0 -0
  657. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisHorizontal.d.ts +0 -0
  658. /package/dist/{components → packages/taco/src/components}/Icon/components/EllipsisVertical.d.ts +0 -0
  659. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOnAccount.d.ts +0 -0
  660. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesOpen.d.ts +0 -0
  661. /package/dist/{components → packages/taco/src/components}/Icon/components/EntriesWarning.d.ts +0 -0
  662. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerInvoice.d.ts +0 -0
  663. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeCustomerPayment.d.ts +0 -0
  664. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeJournalEntry.d.ts +0 -0
  665. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeManualCustomerInvoice.d.ts +0 -0
  666. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierInvoice.d.ts +0 -0
  667. /package/dist/{components → packages/taco/src/components}/Icon/components/EntryTypeSupplierPayment.d.ts +0 -0
  668. /package/dist/{components → packages/taco/src/components}/Icon/components/Envelope.d.ts +0 -0
  669. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeApproved.d.ts +0 -0
  670. /package/dist/{components → packages/taco/src/components}/Icon/components/EnvelopeSolid.d.ts +0 -0
  671. /package/dist/{components → packages/taco/src/components}/Icon/components/ExpandView.d.ts +0 -0
  672. /package/dist/{components → packages/taco/src/components}/Icon/components/Expenses.d.ts +0 -0
  673. /package/dist/{components → packages/taco/src/components}/Icon/components/Export.d.ts +0 -0
  674. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToExcel.d.ts +0 -0
  675. /package/dist/{components → packages/taco/src/components}/Icon/components/ExportToPdf.d.ts +0 -0
  676. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOff.d.ts +0 -0
  677. /package/dist/{components → packages/taco/src/components}/Icon/components/EyeOn.d.ts +0 -0
  678. /package/dist/{components → packages/taco/src/components}/Icon/components/Filter.d.ts +0 -0
  679. /package/dist/{components → packages/taco/src/components}/Icon/components/FilterSolid.d.ts +0 -0
  680. /package/dist/{components → packages/taco/src/components}/Icon/components/FontSize.d.ts +0 -0
  681. /package/dist/{components → packages/taco/src/components}/Icon/components/GraphSolid.d.ts +0 -0
  682. /package/dist/{components → packages/taco/src/components}/Icon/components/Hash.d.ts +0 -0
  683. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightExtraTall.d.ts +0 -0
  684. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightMedium.d.ts +0 -0
  685. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightShort.d.ts +0 -0
  686. /package/dist/{components → packages/taco/src/components}/Icon/components/HeightTall.d.ts +0 -0
  687. /package/dist/{components → packages/taco/src/components}/Icon/components/Home.d.ts +0 -0
  688. /package/dist/{components → packages/taco/src/components}/Icon/components/Images.d.ts +0 -0
  689. /package/dist/{components → packages/taco/src/components}/Icon/components/Import.d.ts +0 -0
  690. /package/dist/{components → packages/taco/src/components}/Icon/components/Inbox.d.ts +0 -0
  691. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxEinvoicing.d.ts +0 -0
  692. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxScanning.d.ts +0 -0
  693. /package/dist/{components → packages/taco/src/components}/Icon/components/InboxSmart.d.ts +0 -0
  694. /package/dist/{components → packages/taco/src/components}/Icon/components/Info.d.ts +0 -0
  695. /package/dist/{components → packages/taco/src/components}/Icon/components/Inventory.d.ts +0 -0
  696. /package/dist/{components → packages/taco/src/components}/Icon/components/InventoryMatrix.d.ts +0 -0
  697. /package/dist/{components → packages/taco/src/components}/Icon/components/JournalPro.d.ts +0 -0
  698. /package/dist/{components → packages/taco/src/components}/Icon/components/Layout.d.ts +0 -0
  699. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutBoth.d.ts +0 -0
  700. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutFirst.d.ts +0 -0
  701. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutLast.d.ts +0 -0
  702. /package/dist/{components → packages/taco/src/components}/Icon/components/LayoutNone.d.ts +0 -0
  703. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCard.d.ts +0 -0
  704. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardCustomerReminder.d.ts +0 -0
  705. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardManualCustomerInvoice.d.ts +0 -0
  706. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardObsoleteStock.d.ts +0 -0
  707. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardOpeningEntry.d.ts +0 -0
  708. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardReservedEntry.d.ts +0 -0
  709. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardShrinkagePilferage.d.ts +0 -0
  710. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardStockAdjustment.d.ts +0 -0
  711. /package/dist/{components → packages/taco/src/components}/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +0 -0
  712. /package/dist/{components → packages/taco/src/components}/Icon/components/Lightbulb.d.ts +0 -0
  713. /package/dist/{components → packages/taco/src/components}/Icon/components/Line.d.ts +0 -0
  714. /package/dist/{components → packages/taco/src/components}/Icon/components/List.d.ts +0 -0
  715. /package/dist/{components → packages/taco/src/components}/Icon/components/ListBulleted.d.ts +0 -0
  716. /package/dist/{components → packages/taco/src/components}/Icon/components/ListSearch.d.ts +0 -0
  717. /package/dist/{components → packages/taco/src/components}/Icon/components/Location.d.ts +0 -0
  718. /package/dist/{components → packages/taco/src/components}/Icon/components/Lock.d.ts +0 -0
  719. /package/dist/{components → packages/taco/src/components}/Icon/components/LockOpen.d.ts +0 -0
  720. /package/dist/{components → packages/taco/src/components}/Icon/components/Log.d.ts +0 -0
  721. /package/dist/{components → packages/taco/src/components}/Icon/components/LogOut.d.ts +0 -0
  722. /package/dist/{components → packages/taco/src/components}/Icon/components/Market.d.ts +0 -0
  723. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchAmount.d.ts +0 -0
  724. /package/dist/{components → packages/taco/src/components}/Icon/components/MatchEntries.d.ts +0 -0
  725. /package/dist/{components → packages/taco/src/components}/Icon/components/Menu.d.ts +0 -0
  726. /package/dist/{components → packages/taco/src/components}/Icon/components/Mileage.d.ts +0 -0
  727. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalResize.d.ts +0 -0
  728. /package/dist/{components → packages/taco/src/components}/Icon/components/ModalShrink.d.ts +0 -0
  729. /package/dist/{components → packages/taco/src/components}/Icon/components/More.d.ts +0 -0
  730. /package/dist/{components → packages/taco/src/components}/Icon/components/MoreSolid.d.ts +0 -0
  731. /package/dist/{components → packages/taco/src/components}/Icon/components/Move.d.ts +0 -0
  732. /package/dist/{components → packages/taco/src/components}/Icon/components/NavigationList.d.ts +0 -0
  733. /package/dist/{components → packages/taco/src/components}/Icon/components/Note.d.ts +0 -0
  734. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteFollowUp.d.ts +0 -0
  735. /package/dist/{components → packages/taco/src/components}/Icon/components/NoteRead.d.ts +0 -0
  736. /package/dist/{components → packages/taco/src/components}/Icon/components/Numbers.d.ts +0 -0
  737. /package/dist/{components → packages/taco/src/components}/Icon/components/PartnerApi.d.ts +0 -0
  738. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentPaid.d.ts +0 -0
  739. /package/dist/{components → packages/taco/src/components}/Icon/components/PaymentUnpaid.d.ts +0 -0
  740. /package/dist/{components → packages/taco/src/components}/Icon/components/Period.d.ts +0 -0
  741. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonChange.d.ts +0 -0
  742. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonMinus.d.ts +0 -0
  743. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonPlus.d.ts +0 -0
  744. /package/dist/{components → packages/taco/src/components}/Icon/components/PersonTick.d.ts +0 -0
  745. /package/dist/{components → packages/taco/src/components}/Icon/components/PhoneSolid.d.ts +0 -0
  746. /package/dist/{components → packages/taco/src/components}/Icon/components/Play.d.ts +0 -0
  747. /package/dist/{components → packages/taco/src/components}/Icon/components/PlusMinus.d.ts +0 -0
  748. /package/dist/{components → packages/taco/src/components}/Icon/components/Print.d.ts +0 -0
  749. /package/dist/{components → packages/taco/src/components}/Icon/components/ProcessPayment.d.ts +0 -0
  750. /package/dist/{components → packages/taco/src/components}/Icon/components/ProductLedgerCard.d.ts +0 -0
  751. /package/dist/{components → packages/taco/src/components}/Icon/components/Profile.d.ts +0 -0
  752. /package/dist/{components → packages/taco/src/components}/Icon/components/ProjectCards.d.ts +0 -0
  753. /package/dist/{components → packages/taco/src/components}/Icon/components/Projects.d.ts +0 -0
  754. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMark.d.ts +0 -0
  755. /package/dist/{components → packages/taco/src/components}/Icon/components/QuestionMarkBold.d.ts +0 -0
  756. /package/dist/{components → packages/taco/src/components}/Icon/components/Quicklinks.d.ts +0 -0
  757. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingBankruptcy.d.ts +0 -0
  758. /package/dist/{components → packages/taco/src/components}/Icon/components/RatingPaymentProblems.d.ts +0 -0
  759. /package/dist/{components → packages/taco/src/components}/Icon/components/Reconciled.d.ts +0 -0
  760. /package/dist/{components → packages/taco/src/components}/Icon/components/Refresh.d.ts +0 -0
  761. /package/dist/{components → packages/taco/src/components}/Icon/components/Report.d.ts +0 -0
  762. /package/dist/{components → packages/taco/src/components}/Icon/components/ReportSolid.d.ts +0 -0
  763. /package/dist/{components → packages/taco/src/components}/Icon/components/Restore.d.ts +0 -0
  764. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateLeft.d.ts +0 -0
  765. /package/dist/{components → packages/taco/src/components}/Icon/components/RotateRight.d.ts +0 -0
  766. /package/dist/{components → packages/taco/src/components}/Icon/components/Sales.d.ts +0 -0
  767. /package/dist/{components → packages/taco/src/components}/Icon/components/Search.d.ts +0 -0
  768. /package/dist/{components → packages/taco/src/components}/Icon/components/SearchBold.d.ts +0 -0
  769. /package/dist/{components → packages/taco/src/components}/Icon/components/Secure.d.ts +0 -0
  770. /package/dist/{components → packages/taco/src/components}/Icon/components/SecureTick.d.ts +0 -0
  771. /package/dist/{components → packages/taco/src/components}/Icon/components/Settings.d.ts +0 -0
  772. /package/dist/{components → packages/taco/src/components}/Icon/components/SettingsSolid.d.ts +0 -0
  773. /package/dist/{components → packages/taco/src/components}/Icon/components/Shortcuts.d.ts +0 -0
  774. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowAll.d.ts +0 -0
  775. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowLess.d.ts +0 -0
  776. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowMore.d.ts +0 -0
  777. /package/dist/{components → packages/taco/src/components}/Icon/components/ShowTemplate.d.ts +0 -0
  778. /package/dist/{components → packages/taco/src/components}/Icon/components/Sliders.d.ts +0 -0
  779. /package/dist/{components → packages/taco/src/components}/Icon/components/Smartpay.d.ts +0 -0
  780. /package/dist/{components → packages/taco/src/components}/Icon/components/SortBy.d.ts +0 -0
  781. /package/dist/{components → packages/taco/src/components}/Icon/components/Star.d.ts +0 -0
  782. /package/dist/{components → packages/taco/src/components}/Icon/components/StarSolid.d.ts +0 -0
  783. /package/dist/{components → packages/taco/src/components}/Icon/components/Subscriptions.d.ts +0 -0
  784. /package/dist/{components → packages/taco/src/components}/Icon/components/SystemEntries.d.ts +0 -0
  785. /package/dist/{components → packages/taco/src/components}/Icon/components/Tag.d.ts +0 -0
  786. /package/dist/{components → packages/taco/src/components}/Icon/components/TemplateOverride.d.ts +0 -0
  787. /package/dist/{components → packages/taco/src/components}/Icon/components/Templates.d.ts +0 -0
  788. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbBoth.d.ts +0 -0
  789. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDown.d.ts +0 -0
  790. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbDownSolid.d.ts +0 -0
  791. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUp.d.ts +0 -0
  792. /package/dist/{components → packages/taco/src/components}/Icon/components/ThumbUpSolid.d.ts +0 -0
  793. /package/dist/{components → packages/taco/src/components}/Icon/components/Tick.d.ts +0 -0
  794. /package/dist/{components → packages/taco/src/components}/Icon/components/TickBold.d.ts +0 -0
  795. /package/dist/{components → packages/taco/src/components}/Icon/components/Time.d.ts +0 -0
  796. /package/dist/{components → packages/taco/src/components}/Icon/components/Transfer.d.ts +0 -0
  797. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferCancel.d.ts +0 -0
  798. /package/dist/{components → packages/taco/src/components}/Icon/components/TransferLocked.d.ts +0 -0
  799. /package/dist/{components → packages/taco/src/components}/Icon/components/Undo.d.ts +0 -0
  800. /package/dist/{components → packages/taco/src/components}/Icon/components/Undock.d.ts +0 -0
  801. /package/dist/{components → packages/taco/src/components}/Icon/components/Unreconciled.d.ts +0 -0
  802. /package/dist/{components → packages/taco/src/components}/Icon/components/Warning.d.ts +0 -0
  803. /package/dist/{components → packages/taco/src/components}/Icon/components/Webshop.d.ts +0 -0
  804. /package/dist/{components → packages/taco/src/components}/Icon/components/Website.d.ts +0 -0
  805. /package/dist/{components → packages/taco/src/components}/Icon/components/Workflow.d.ts +0 -0
  806. /package/dist/{components → packages/taco/src/components}/Icon/components/WorkflowTemplateBasic.d.ts +0 -0
  807. /package/dist/{components → packages/taco/src/components}/Icon/components/Zoom.d.ts +0 -0
  808. /package/dist/{components → packages/taco/src/components}/Icon/components/index.d.ts +0 -0
  809. /package/dist/{components → packages/taco/src/components}/IconButton/IconButton.d.ts +0 -0
  810. /package/dist/{components → packages/taco/src/components}/Input/Input.d.ts +0 -0
  811. /package/dist/{components → packages/taco/src/components}/Input/util.d.ts +0 -0
  812. /package/dist/{components → packages/taco/src/components}/Layout/Layout.d.ts +0 -0
  813. /package/dist/{components → packages/taco/src/components}/Layout/components/Content.d.ts +0 -0
  814. /package/dist/{components → packages/taco/src/components}/Layout/components/Context.d.ts +0 -0
  815. /package/dist/{components → packages/taco/src/components}/Layout/components/Page.d.ts +0 -0
  816. /package/dist/{components → packages/taco/src/components}/Layout/components/Sidebar.d.ts +0 -0
  817. /package/dist/{components → packages/taco/src/components}/Layout/components/Top.d.ts +0 -0
  818. /package/dist/{components → packages/taco/src/components}/Listbox/Listbox.d.ts +0 -0
  819. /package/dist/{components → packages/taco/src/components}/Listbox/ScrollableList.d.ts +0 -0
  820. /package/dist/{components → packages/taco/src/components}/Listbox/useListbox.d.ts +0 -0
  821. /package/dist/{components → packages/taco/src/components}/Listbox/useMultiListbox.d.ts +0 -0
  822. /package/dist/{components → packages/taco/src/components}/Listbox/useTypeahead.d.ts +0 -0
  823. /package/dist/{components → packages/taco/src/components}/Listbox/util.d.ts +0 -0
  824. /package/dist/{components → packages/taco/src/components}/Menu/Context.d.ts +0 -0
  825. /package/dist/{components → packages/taco/src/components}/Menu/Menu.d.ts +0 -0
  826. /package/dist/{components → packages/taco/src/components}/Menu/components/Checkbox.d.ts +0 -0
  827. /package/dist/{components → packages/taco/src/components}/Menu/components/Content.d.ts +0 -0
  828. /package/dist/{components → packages/taco/src/components}/Menu/components/Header.d.ts +0 -0
  829. /package/dist/{components → packages/taco/src/components}/Menu/components/Item.d.ts +0 -0
  830. /package/dist/{components → packages/taco/src/components}/Menu/components/Link.d.ts +0 -0
  831. /package/dist/{components → packages/taco/src/components}/Menu/components/RadioGroup.d.ts +0 -0
  832. /package/dist/{components → packages/taco/src/components}/Menu/components/Separator.d.ts +0 -0
  833. /package/dist/{components → packages/taco/src/components}/Menu/components/SubMenu.d.ts +0 -0
  834. /package/dist/{components → packages/taco/src/components}/Menu/components/Trigger.d.ts +0 -0
  835. /package/dist/{components → packages/taco/src/components}/ModeSwitch/ModeSwitch.d.ts +0 -0
  836. /package/dist/{components → packages/taco/src/components}/Navigation/Navigation.d.ts +0 -0
  837. /package/dist/{components → packages/taco/src/components}/Navigation2/Navigation2.d.ts +0 -0
  838. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Content.d.ts +0 -0
  839. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Group.d.ts +0 -0
  840. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Link.d.ts +0 -0
  841. /package/dist/{components → packages/taco/src/components}/Navigation2/components/Section.d.ts +0 -0
  842. /package/dist/{components → packages/taco/src/components}/Navigation2/components/util.d.ts +0 -0
  843. /package/dist/{components → packages/taco/src/components}/OverflowGroup/OverflowGroup.d.ts +0 -0
  844. /package/dist/{components → packages/taco/src/components}/Pagination/PageNumbers.d.ts +0 -0
  845. /package/dist/{components → packages/taco/src/components}/Pagination/Pagination.d.ts +0 -0
  846. /package/dist/{components → packages/taco/src/components}/Pagination/usePagination.d.ts +0 -0
  847. /package/dist/{components → packages/taco/src/components}/Pagination/usePaginationShortcuts.d.ts +0 -0
  848. /package/dist/{components → packages/taco/src/components}/Popover/Popover.d.ts +0 -0
  849. /package/dist/{components → packages/taco/src/components}/Popover/Primitives.d.ts +0 -0
  850. /package/dist/{components → packages/taco/src/components}/Popover/util.d.ts +0 -0
  851. /package/dist/{components → packages/taco/src/components}/Progress/Progress.d.ts +0 -0
  852. /package/dist/{components → packages/taco/src/components}/Provider/Provider.d.ts +0 -0
  853. /package/dist/{components → packages/taco/src/components}/RadioGroup/RadioGroup.d.ts +0 -0
  854. /package/dist/{components → packages/taco/src/components}/RadioGroup/util.d.ts +0 -0
  855. /package/dist/{components → packages/taco/src/components}/ScrollArea/ScrollArea.d.ts +0 -0
  856. /package/dist/{components → packages/taco/src/components}/SearchInput/SearchInput.d.ts +0 -0
  857. /package/dist/{components → packages/taco/src/components}/SearchInput2/SearchInput2.d.ts +0 -0
  858. /package/dist/{components → packages/taco/src/components}/Select/Select.d.ts +0 -0
  859. /package/dist/{components → packages/taco/src/components}/Select/useSelect.d.ts +0 -0
  860. /package/dist/{components → packages/taco/src/components}/Select2/Select2.d.ts +0 -0
  861. /package/dist/{components → packages/taco/src/components}/Select2/components/All.d.ts +0 -0
  862. /package/dist/{components → packages/taco/src/components}/Select2/components/Collection.d.ts +0 -0
  863. /package/dist/{components → packages/taco/src/components}/Select2/components/Context.d.ts +0 -0
  864. /package/dist/{components → packages/taco/src/components}/Select2/components/Create.d.ts +0 -0
  865. /package/dist/{components → packages/taco/src/components}/Select2/components/Edit.d.ts +0 -0
  866. /package/dist/{components → packages/taco/src/components}/Select2/components/Group.d.ts +0 -0
  867. /package/dist/{components → packages/taco/src/components}/Select2/components/Option.d.ts +0 -0
  868. /package/dist/{components → packages/taco/src/components}/Select2/components/Search.d.ts +0 -0
  869. /package/dist/{components → packages/taco/src/components}/Select2/components/Title.d.ts +0 -0
  870. /package/dist/{components → packages/taco/src/components}/Select2/components/Trigger.d.ts +0 -0
  871. /package/dist/{components → packages/taco/src/components}/Select2/hooks/useChildren.d.ts +0 -0
  872. /package/dist/{components → packages/taco/src/components}/Select2/types.d.ts +0 -0
  873. /package/dist/{components → packages/taco/src/components}/Select2/utilities.d.ts +0 -0
  874. /package/dist/{components → packages/taco/src/components}/Shortcut/Shortcut.d.ts +0 -0
  875. /package/dist/{components → packages/taco/src/components}/Spinner/Spinner.d.ts +0 -0
  876. /package/dist/{components → packages/taco/src/components}/Switch/Switch.d.ts +0 -0
  877. /package/dist/{components → packages/taco/src/components}/Table/Table.storyexample.d.ts +0 -0
  878. /package/dist/{components → packages/taco/src/components}/Table/components/BaseTable.d.ts +0 -0
  879. /package/dist/{components → packages/taco/src/components}/Table/components/PaginatedTable.d.ts +0 -0
  880. /package/dist/{components → packages/taco/src/components}/Table/components/Table.d.ts +0 -0
  881. /package/dist/{components → packages/taco/src/components}/Table/components/WindowedTable.d.ts +0 -0
  882. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowActions.d.ts +0 -0
  883. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowDraggable.d.ts +0 -0
  884. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowEditing.d.ts +0 -0
  885. /package/dist/{components → packages/taco/src/components}/Table/hooks/plugins/useRowSelect.d.ts +0 -0
  886. /package/dist/{components → packages/taco/src/components}/Table/hooks/useRowCreation.d.ts +0 -0
  887. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTable.d.ts +0 -0
  888. /package/dist/{components → packages/taco/src/components}/Table/hooks/useTableKeyboardNavigation.d.ts +0 -0
  889. /package/dist/{components → packages/taco/src/components}/Table/types.d.ts +0 -0
  890. /package/dist/{components → packages/taco/src/components}/Table/util/renderColumn.d.ts +0 -0
  891. /package/dist/{components → packages/taco/src/components}/Table/util/renderRow.d.ts +0 -0
  892. /package/dist/{components → packages/taco/src/components}/Table/util/rowIndexPath.d.ts +0 -0
  893. /package/dist/{components → packages/taco/src/components}/Table/util/sortTypes.d.ts +0 -0
  894. /package/dist/{components → packages/taco/src/components}/Table/util.d.ts +0 -0
  895. /package/dist/{components → packages/taco/src/components}/Tabs/Tabs.d.ts +0 -0
  896. /package/dist/{components → packages/taco/src/components}/Tag/Tag.d.ts +0 -0
  897. /package/dist/{components → packages/taco/src/components}/Textarea/Textarea.d.ts +0 -0
  898. /package/dist/{components → packages/taco/src/components}/Toast/Toast.d.ts +0 -0
  899. /package/dist/{components → packages/taco/src/components}/Toast/Toaster.d.ts +0 -0
  900. /package/dist/{components → packages/taco/src/components}/Toast/util.d.ts +0 -0
  901. /package/dist/{components → packages/taco/src/components}/Tooltip/Tooltip.d.ts +0 -0
  902. /package/dist/{components → packages/taco/src/components}/Tour/Tour.d.ts +0 -0
  903. /package/dist/{components → packages/taco/src/components}/Treeview/Treeview.d.ts +0 -0
  904. /package/dist/{components → packages/taco/src/components}/Truncate/Truncate.d.ts +0 -0
  905. /package/dist/{components → packages/taco/src/components}/VisuallyHidden/VisuallyHidden.d.ts +0 -0
  906. /package/dist/{hooks → packages/taco/src/hooks}/useBoundaryOverflowDetection.d.ts +0 -0
  907. /package/dist/{hooks → packages/taco/src/hooks}/useBoundingClientRectListener.d.ts +0 -0
  908. /package/dist/{hooks → packages/taco/src/hooks}/useDebouncedEffect.d.ts +0 -0
  909. /package/dist/{hooks → packages/taco/src/hooks}/useGlobalKeyDown.d.ts +0 -0
  910. /package/dist/{hooks → packages/taco/src/hooks}/useId.d.ts +0 -0
  911. /package/dist/{hooks → packages/taco/src/hooks}/useIntersectionObserver.d.ts +0 -0
  912. /package/dist/{hooks → packages/taco/src/hooks}/useIsFormControl.d.ts +0 -0
  913. /package/dist/{hooks → packages/taco/src/hooks}/useIsHoverStatePaused.d.ts +0 -0
  914. /package/dist/{hooks → packages/taco/src/hooks}/useIsLargeScreen.d.ts +0 -0
  915. /package/dist/{hooks → packages/taco/src/hooks}/useLazyEffect.d.ts +0 -0
  916. /package/dist/{hooks → packages/taco/src/hooks}/useLocalStorage.d.ts +0 -0
  917. /package/dist/{hooks → packages/taco/src/hooks}/useMatchMedia.d.ts +0 -0
  918. /package/dist/{hooks → packages/taco/src/hooks}/useMergedRef.d.ts +0 -0
  919. /package/dist/{hooks → packages/taco/src/hooks}/usePrevious.d.ts +0 -0
  920. /package/dist/{hooks → packages/taco/src/hooks}/useTacoSettings.d.ts +0 -0
  921. /package/dist/{primitives → packages/taco/src/primitives}/BubbleSelect.d.ts +0 -0
  922. /package/dist/{primitives → packages/taco/src/primitives}/Button.d.ts +0 -0
  923. /package/dist/{primitives → packages/taco/src/primitives}/Collection/Collection.d.ts +0 -0
  924. /package/dist/{primitives → packages/taco/src/primitives}/Collection/components/Root.d.ts +0 -0
  925. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/Listbox2.d.ts +0 -0
  926. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Context.d.ts +0 -0
  927. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Group.d.ts +0 -0
  928. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Option.d.ts +0 -0
  929. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Root.d.ts +0 -0
  930. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/components/Title.d.ts +0 -0
  931. /package/dist/{primitives → packages/taco/src/primitives}/Listbox2/types.d.ts +0 -0
  932. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/Sortable.d.ts +0 -0
  933. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Container.d.ts +0 -0
  934. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/Item.d.ts +0 -0
  935. /package/dist/{primitives → packages/taco/src/primitives}/Sortable/components/List.d.ts +0 -0
  936. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Body/util.d.ts +0 -0
  937. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  938. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  939. /package/dist/{components/Report/components/Row → packages/taco/src/primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  940. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  941. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  942. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +0 -0
  943. /package/dist/{components/Report/styles → packages/taco/src/primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  944. /package/dist/{primitives/Table/useTableManager → packages/taco/src/primitives/Table/Core}/features/useTableRef.d.ts +0 -0
  945. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  946. /package/dist/{components/Report → packages/taco/src/primitives/Table/Core}/util/rows.d.ts +0 -0
  947. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableDataLoader.d.ts +0 -0
  948. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnFreezing.d.ts +0 -0
  949. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableColumnOrdering.d.ts +0 -0
  950. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFontSize.d.ts +0 -0
  951. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableFooter.d.ts +0 -0
  952. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTablePrinting.d.ts +0 -0
  953. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowActions.d.ts +0 -0
  954. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowClick.d.ts +0 -0
  955. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowExpansion.d.ts +0 -0
  956. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGoto.d.ts +0 -0
  957. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowGroups.d.ts +0 -0
  958. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowHeight.d.ts +0 -0
  959. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableRowSelection.d.ts +0 -0
  960. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSearch.d.ts +0 -0
  961. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableServerLoading.d.ts +0 -0
  962. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/features/useTableSettings.d.ts +0 -0
  963. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableDataListener.d.ts +0 -0
  964. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFilterListener.d.ts +0 -0
  965. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableFontSizeListener.d.ts +0 -0
  966. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowHeightListener.d.ts +0 -0
  967. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableRowSelectionListener.d.ts +0 -0
  968. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSearchListener.d.ts +0 -0
  969. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableServerLoadingListener.d.ts +0 -0
  970. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSettingsListener.d.ts +0 -0
  971. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableShortcutsListener.d.ts +0 -0
  972. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/listeners/useTableSortingListener.d.ts +0 -0
  973. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.d.ts +0 -0
  974. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/columns.spec.d.ts +0 -0
  975. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/filtering.d.ts +0 -0
  976. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/presets.d.ts +0 -0
  977. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/search.d.ts +0 -0
  978. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/setup.d.ts +0 -0
  979. /package/dist/{primitives → packages/taco/src/primitives}/Table/useTableManager/util/sorting.d.ts +0 -0
  980. /package/dist/{types.d.ts → packages/taco/src/types.d.ts} +0 -0
  981. /package/dist/{utils → packages/taco/src/utils}/aria.d.ts +0 -0
  982. /package/dist/{utils → packages/taco/src/utils}/date.d.ts +0 -0
  983. /package/dist/{utils → packages/taco/src/utils}/debounce.d.ts +0 -0
  984. /package/dist/{utils → packages/taco/src/utils}/device.d.ts +0 -0
  985. /package/dist/{utils → packages/taco/src/utils}/hooks/useDraggable.d.ts +0 -0
  986. /package/dist/{utils → packages/taco/src/utils}/hooks/useDropTarget.d.ts +0 -0
  987. /package/dist/{utils → packages/taco/src/utils}/hooks/useListKeyboardNavigation.d.ts +0 -0
  988. /package/dist/{utils → packages/taco/src/utils}/hooks/useListScrollTo.d.ts +0 -0
  989. /package/dist/{utils → packages/taco/src/utils}/hooks/useOnClickOutside.d.ts +0 -0
  990. /package/dist/{utils → packages/taco/src/utils}/hooks/useRefState.d.ts +0 -0
  991. /package/dist/{utils → packages/taco/src/utils}/hooks/useTimer.d.ts +0 -0
  992. /package/dist/{utils → packages/taco/src/utils}/hooks/useTruncated.d.ts +0 -0
  993. /package/dist/{utils → packages/taco/src/utils}/input.d.ts +0 -0
  994. /package/dist/{utils → packages/taco/src/utils}/keyboard.d.ts +0 -0
  995. /package/dist/{utils → packages/taco/src/utils}/mergeRefs.d.ts +0 -0
  996. /package/dist/{utils → packages/taco/src/utils}/storyutils.d.ts +0 -0
  997. /package/dist/{utils → packages/taco/src/utils}/tailwind.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"setup.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/util/setup.ts"],"sourcesContent":["import React from 'react';\nimport {\n createColumnHelper,\n getCoreRowModel,\n getExpandedRowModel,\n getFilteredRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n TableOptions as ReactTableOptions,\n Row as ReactTableRow,\n Column as ReactTableColumn,\n ColumnDef as ReactTableColumnDef,\n ColumnPinningState as ReactTableColumnPinningState,\n ColumnSizingState as ReactTableColumnSizingState,\n ColumnSort as ReactTableColumnSort,\n TableState as ReactTableState,\n VisibilityState as ReactTableVisibilityState,\n} from '@tanstack/react-table';\nimport { useTableManagerInternalColumns, useTableManagerInternalColumn } from '../types';\nimport { TableColumnProps, TableFeatureProps, TableGroupProps, TableProps, TableSettings } from '../../types';\nimport { getSortingFn } from './sorting';\nimport { ensureOrdering, freezeUptoExternalColumn, getCellMinWidth, unfreezeAllExternalColumns } from './columns';\nimport { columnFilterFn, globalFilterFn } from './filtering';\n\n// mapping children to react-table columns\nfunction processChildren<TType>(\n child: React.ReactChild | React.ReactFragment | React.ReactPortal,\n columns: ReactTableColumnDef<TType>[],\n defaultSizing: ReactTableColumnSizingState,\n defaultSorting: ReactTableColumnSort[],\n defaultVisibility: ReactTableVisibilityState,\n settings: TableSettings,\n defaultRowGroupColumnId?: keyof TType\n): ReactTableColumnDef<TType>[] {\n const columnHelper = createColumnHelper<TType>();\n\n if (React.isValidElement<TableGroupProps>(child) && child.props.children) {\n const { children, id, header } = child.props;\n\n columns.push(\n columnHelper.group({\n id,\n header,\n columns: React.Children.toArray(children).reduce(\n (columns: ReactTableColumnDef<TType>[], child) =>\n processChildren<TType>(\n child,\n columns,\n defaultSizing,\n defaultSorting,\n defaultVisibility,\n settings,\n defaultRowGroupColumnId\n ),\n []\n ),\n // we don't want to let column groups be grouped/aggregrated\n enableGrouping: false,\n })\n );\n } else if (React.isValidElement<TableColumnProps<TType>>(child) && (child.props.accessor || child.props.id)) {\n const {\n id,\n accessor: accessorKey = id,\n // renderers\n renderer,\n aggregate,\n footer,\n header,\n // options\n aggregationFn,\n defaultHidden,\n defaultWidth,\n enableFiltering: enableColumnFilter = true,\n enableGrouping = false,\n enableHiding = true,\n enableOrdering = true,\n enablePrinting = true,\n enableResizing = true,\n enableSearch: enableGlobalFilter = true,\n enableSorting = true,\n enableTruncate = false,\n minWidth: minSize = getCellMinWidth(settings.fontSize),\n sort,\n sortFn,\n ...meta\n } = child.props;\n\n if (defaultHidden && enableHiding) {\n defaultVisibility[id] = false;\n }\n\n if (defaultWidth) {\n defaultSizing[id] = defaultWidth as any;\n }\n\n if (child.props.sort !== undefined) {\n defaultSorting.push({\n id,\n desc: sort === 'desc',\n });\n }\n\n const isGrouped = defaultRowGroupColumnId === id;\n\n const column: ReactTableColumnDef<TType, any> = {\n id,\n accessorKey,\n header: header,\n // features\n enableColumnFilter,\n enableGlobalFilter,\n enableGrouping,\n enableHiding: isGrouped ? false : enableHiding,\n enableResizing,\n enableSorting,\n // config - sizing\n minSize,\n // meta\n meta: {\n ...(meta as any),\n defaultWidth,\n enableOrdering: isGrouped ? false : enableOrdering,\n enablePrinting,\n enableTruncate,\n header,\n },\n };\n\n // renderers\n if (typeof renderer === 'function') {\n column.cell = info => renderer(info.getValue(), info.row.original);\n }\n\n if (typeof footer === 'function') {\n column.footer = info => footer(info.table.getRowModel().rows.map(row => row.original[id]));\n }\n\n // config - filtering\n if (enableColumnFilter) {\n column.filterFn = 'tacoFilter' as any;\n }\n\n // config - grouping/aggregation\n if (enableGrouping) {\n column.aggregationFn = aggregationFn;\n\n if (typeof aggregate === 'function') {\n column.aggregatedCell = info => aggregate(info.getValue(), info.row.original);\n }\n }\n\n // config - sorting\n if (enableSorting) {\n column.sortingFn = getSortingFn<TType>(child.props.dataType, sortFn);\n column.sortDescFirst = false;\n column.sortUndefined = 1;\n }\n\n columns.push(column);\n }\n\n return columns;\n}\n\nfunction createInternalColumn<TType = unknown>(\n id: string,\n column: useTableManagerInternalColumn<TType>,\n defaultSizing: ReactTableColumnSizingState\n) {\n if (column.size) {\n defaultSizing[id] = column.size;\n }\n\n return {\n id,\n accessorKey: id,\n header: column.header,\n cell: column.renderer,\n // features\n enableColumnFilter: false,\n enableGlobalFilter: false,\n enableGrouping: false,\n enableHiding: false,\n enableResizing: false,\n enableSorting: false,\n // config - sizing\n size: column.size,\n minSize: column.size,\n // meta\n meta: {\n ...(column.meta as any),\n enableOrdering: false,\n enablePrinting: false,\n enableTruncate: false,\n },\n } as ReactTableColumnDef<TType, any>;\n}\n\nexport function mapTableChildrenToColumns<TType = unknown>(\n props: TableProps<TType>,\n settings: TableSettings,\n options: TableFeatureProps,\n internalColumns?: useTableManagerInternalColumns<TType>\n) {\n const { children, defaultRowGroupColumnId } = props;\n const defaultSizing: ReactTableColumnSizingState = {};\n const defaultSorting: ReactTableColumnSort[] = [];\n const defaultVisibility: ReactTableVisibilityState = {};\n\n const columns = React.Children.toArray(children).reduce(\n (columns: ReactTableColumnDef<TType>[], child) =>\n processChildren<TType>(\n child,\n columns,\n defaultSizing,\n defaultSorting,\n defaultVisibility,\n settings,\n defaultRowGroupColumnId\n ),\n\n []\n );\n\n if (internalColumns) {\n if (options.enableRowExpansion && props.rowExpansionRenderer && internalColumns.rowExpansion) {\n const column = createInternalColumn<TType>('__expansion', internalColumns.rowExpansion, defaultSizing);\n columns.unshift(column);\n }\n\n if ((options.enableRowSelection || options.enableRowSelectionSingle) && internalColumns.rowSelection) {\n const column = createInternalColumn<TType>('__select', internalColumns.rowSelection, defaultSizing);\n columns.unshift(column);\n }\n\n if (options.enableRowActions && props.rowActions?.length && internalColumns.rowActions) {\n const column = createInternalColumn<TType>('__actions', internalColumns.rowActions, defaultSizing);\n columns.push(column);\n }\n }\n\n return { columns, defaultSizing, defaultSorting, defaultVisibility };\n}\n\nexport function configureReactTableOptions<TType = unknown>(options: TableFeatureProps, props: TableProps<TType>) {\n const enableRowSelection = options.enableRowSelection || options.enableRowSelectionSingle;\n const tableOptions: Partial<ReactTableOptions<TType>> = {\n defaultColumn: {\n enableColumnFilter: options.enableFiltering || true,\n enableGrouping: false,\n enableHiding: options.enableColumnHiding || true,\n enableResizing: options.enableColumnResizing || true,\n enableGlobalFilter: options.enableSearch || true,\n enableSorting: options.enableSorting || true,\n minSize: 1,\n // the default is 150, which is a bit random\n size: 1,\n },\n enableColumnFilters: options.enableFiltering ?? false,\n enableColumnResizing: options.enableColumnResizing ?? false,\n enableExpanding: options.enableRowExpansion ?? false,\n enableGrouping: true, // users can't customise row grouping, so it can just be always enabled and left to the defaultRowGroupColumnId prop\n enableHiding: options.enableColumnHiding ?? false,\n enablePinning: options.enableColumnFreezing ?? false,\n enableRowSelection: enableRowSelection ?? false,\n enableMultiRowSelection: options.enableRowSelectionSingle === true ? false : enableRowSelection,\n enableSorting: options.enableSorting ?? false,\n // models for default features\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getGroupedRowModel: getGroupedRowModel(),\n groupedColumnMode: false,\n };\n\n if (tableOptions.enableColumnResizing) {\n tableOptions.columnResizeMode = 'onChange';\n }\n\n if (tableOptions.enableColumnFilters) {\n // enter controlled filter mode (controlled could be local state, but usually the server)\n if (props.onChangeFilter) {\n // tableOptions.manualFiltering = true;\n // we don't set it because it breaks global filtering (used for search, which is fully client side)\n //\n // tableOptions.onColumnFiltersChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onFilter\n } else {\n tableOptions.getFilteredRowModel = getFilteredRowModel();\n tableOptions.filterFns = {\n tacoFilter: (row: ReactTableRow<TType>, columnId: string, filter: any) =>\n columnFilterFn(row.getValue(columnId), filter),\n };\n }\n }\n\n if (options.enableSearch) {\n // always set these because enableGlobalFilter can be toggled on and off by the user\n tableOptions.getFilteredRowModel = getFilteredRowModel();\n tableOptions.globalFilterFn = globalFilterFn;\n tableOptions.getColumnCanGlobalFilter = (column: ReactTableColumn<TType>) => column.columnDef.meta?.enableSearch ?? true;\n\n // enter controlled search mode (controlled could be local state, but usually the server)\n if (props.onChangeSearch) {\n // tableOptions.manualFiltering = true;\n // we don't set this because controlled search is not currently supported, search is always client side\n //\n // tableOptions.onGlobalFilterChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onSearch.\n //\n // we also don't always filter when searching, we have the highlight functionality as the default\n // and filtering can be toggled by the user\n }\n }\n\n if (tableOptions.enableSorting) {\n // enter controlled sort mode (controlled could be local state, but usually the server)\n if (props.onChangeSort) {\n tableOptions.manualSorting = true;\n\n // tableOptions.onSortingChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onSort\n } else {\n tableOptions.getSortedRowModel = getSortedRowModel();\n }\n }\n\n return tableOptions;\n}\n\nexport function useReactTableInitialState<TType = unknown>(\n props: TableProps<TType>,\n columns: ReactTableColumnDef<TType>[],\n persistedSettings: TableSettings,\n defaults: {\n defaultSizing: ReactTableColumnSizingState;\n defaultSorting: ReactTableColumnSort[];\n defaultVisibility: ReactTableVisibilityState;\n }\n): Partial<ReactTableState> {\n return React.useMemo(() => {\n const ignoreNotDefinedColumns = column => columns.find(definedColumn => definedColumn.id === column.id);\n\n const columnOrder = ensureOrdering<TType>(columns, persistedSettings.columnOrder ?? props.defaultSettings?.columnOrder);\n\n const columnPinning: ReactTableColumnPinningState =\n persistedSettings.columnPinning ?? props.defaultSettings?.columnPinning ?? {};\n\n // ensure internal columns are pinned\n if (!columnPinning?.left?.length) {\n if (props.defaultColumnFreezingIndex) {\n columnPinning.left = freezeUptoExternalColumn(props.defaultColumnFreezingIndex, columnOrder);\n } else {\n columnPinning.left = unfreezeAllExternalColumns(columnOrder);\n }\n }\n\n const state: Partial<ReactTableState> = {\n columnFilters: persistedSettings.columnFilters ?? props.defaultSettings?.columnFilters ?? [],\n columnOrder,\n columnPinning,\n columnSizing: persistedSettings.columnSizing ?? props.defaultSettings?.columnSizing ?? defaults.defaultSizing ?? {},\n columnVisibility:\n persistedSettings.columnVisibility ?? props.defaultSettings?.columnVisibility ?? defaults.defaultVisibility ?? {},\n globalFilter: persistedSettings.searchQuery ?? props.defaultSettings?.searchQuery,\n sorting: persistedSettings.sorting\n ? persistedSettings.sorting.filter(ignoreNotDefinedColumns)\n : props.defaultSettings?.sorting ?? defaults.defaultSorting,\n };\n\n if (persistedSettings.grouping?.length ?? props.defaultSettings?.grouping?.length ?? props.defaultRowGroupColumnId) {\n state.grouping = [props.defaultRowGroupColumnId as string];\n // row groups should (all) always be expanded by default\n state.expanded = true;\n }\n\n return state;\n }, []);\n}\n"],"names":["processChildren","child","columns","defaultSizing","defaultSorting","defaultVisibility","settings","defaultRowGroupColumnId","columnHelper","createColumnHelper","React","isValidElement","props","children","id","header","push","group","Children","toArray","reduce","enableGrouping","accessor","accessorKey","renderer","aggregate","footer","aggregationFn","defaultHidden","defaultWidth","enableFiltering","enableColumnFilter","enableHiding","enableOrdering","enablePrinting","enableResizing","enableSearch","enableGlobalFilter","enableSorting","enableTruncate","minWidth","minSize","getCellMinWidth","fontSize","sort","sortFn","meta","undefined","desc","isGrouped","column","cell","info","getValue","row","original","table","getRowModel","rows","map","filterFn","aggregatedCell","sortingFn","getSortingFn","dataType","sortDescFirst","sortUndefined","createInternalColumn","size","mapTableChildrenToColumns","options","internalColumns","_props$rowActions","enableRowExpansion","rowExpansionRenderer","rowExpansion","unshift","enableRowSelection","enableRowSelectionSingle","rowSelection","enableRowActions","rowActions","length","configureReactTableOptions","tableOptions","defaultColumn","enableColumnHiding","enableColumnResizing","enableColumnFilters","_options$enableFilter","_options$enableColumn","enableExpanding","_options$enableRowExp","_options$enableColumn2","enablePinning","_options$enableColumn3","enableColumnFreezing","enableMultiRowSelection","_options$enableSortin","getCoreRowModel","getExpandedRowModel","getGroupedRowModel","groupedColumnMode","columnResizeMode","onChangeFilter","getFilteredRowModel","filterFns","tacoFilter","columnId","filter","columnFilterFn","globalFilterFn","getColumnCanGlobalFilter","_column$columnDef$met","_column$columnDef$met2","columnDef","onChangeSort","manualSorting","getSortedRowModel","useReactTableInitialState","persistedSettings","defaults","useMemo","ignoreNotDefinedColumns","find","definedColumn","columnOrder","ensureOrdering","_persistedSettings$co","_props$defaultSetting","defaultSettings","columnPinning","_ref","_persistedSettings$co2","_props$defaultSetting2","_columnPinning$left","left","defaultColumnFreezingIndex","freezeUptoExternalColumn","unfreezeAllExternalColumns","state","columnFilters","_ref2","_persistedSettings$co3","_props$defaultSetting3","columnSizing","_ref3","_ref4","_persistedSettings$co4","_props$defaultSetting4","columnVisibility","_ref5","_ref6","_persistedSettings$co5","_props$defaultSetting5","globalFilter","_persistedSettings$se","searchQuery","_props$defaultSetting6","sorting","_props$defaultSetting7","_props$defaultSetting8","_ref7","_persistedSettings$gr","_persistedSettings$gr2","grouping","_props$defaultSetting9","_props$defaultSetting10","expanded"],"mappings":";;;;;;AAwBA;AACA,SAASA,eAAeA,CACpBC,KAAiE,EACjEC,OAAqC,EACrCC,aAA0C,EAC1CC,cAAsC,EACtCC,iBAA4C,EAC5CC,QAAuB,EACvBC,uBAAqC;EAErC,MAAMC,YAAY,GAAGC,kBAAkB,EAAS;EAEhD,kBAAIC,cAAK,CAACC,cAAc,CAAkBV,KAAK,CAAC,IAAIA,KAAK,CAACW,KAAK,CAACC,QAAQ,EAAE;IACtE,MAAM;MAAEA,QAAQ;MAAEC,EAAE;MAAEC;KAAQ,GAAGd,KAAK,CAACW,KAAK;IAE5CV,OAAO,CAACc,IAAI,CACRR,YAAY,CAACS,KAAK,CAAC;MACfH,EAAE;MACFC,MAAM;MACNb,OAAO,EAAEQ,cAAK,CAACQ,QAAQ,CAACC,OAAO,CAACN,QAAQ,CAAC,CAACO,MAAM,CAC5C,CAAClB,OAAqC,EAAED,KAAK,KACzCD,eAAe,CACXC,KAAK,EACLC,OAAO,EACPC,aAAa,EACbC,cAAc,EACdC,iBAAiB,EACjBC,QAAQ,EACRC,uBAAuB,CAC1B,EACL,EAAE,CACL;;MAEDc,cAAc,EAAE;KACnB,CAAC,CACL;GACJ,MAAM,kBAAIX,cAAK,CAACC,cAAc,CAA0BV,KAAK,CAAC,KAAKA,KAAK,CAACW,KAAK,CAACU,QAAQ,IAAIrB,KAAK,CAACW,KAAK,CAACE,EAAE,CAAC,EAAE;IACzG,MAAM;MAC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"sourcesContent":["import React from 'react';\nimport {\n createColumnHelper,\n getExpandedRowModel,\n getFilteredRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n TableOptions as ReactTableOptions,\n Row as ReactTableRow,\n Column as ReactTableColumn,\n ColumnDef as ReactTableColumnDef,\n ColumnPinningState as ReactTableColumnPinningState,\n ColumnSizingState as ReactTableColumnSizingState,\n ColumnSort as ReactTableColumnSort,\n TableState as ReactTableState,\n VisibilityState as ReactTableVisibilityState,\n} from '@tanstack/react-table';\nimport { useTableManagerInternalColumns, useTableManagerInternalColumn } from '../types';\nimport { TableColumnProps, TableFeatureProps, TableGroupProps, TableProps, TableSettings } from '../../types';\nimport { getSortingFn } from './sorting';\nimport { ensureOrdering, freezeUptoExternalColumn, getCellMinWidth, unfreezeAllExternalColumns } from './columns';\nimport { columnFilterFn, globalFilterFn } from './filtering';\n\n// mapping children to react-table columns\nfunction processChildren<TType>(\n child: React.ReactChild | React.ReactFragment | React.ReactPortal,\n columns: ReactTableColumnDef<TType>[],\n defaultSizing: ReactTableColumnSizingState,\n defaultSorting: ReactTableColumnSort[],\n defaultVisibility: ReactTableVisibilityState,\n settings: TableSettings,\n defaultRowGroupColumnId?: keyof TType\n): ReactTableColumnDef<TType>[] {\n const columnHelper = createColumnHelper<TType>();\n\n if (React.isValidElement<TableGroupProps>(child) && child.props.children) {\n const { children, id, header } = child.props;\n\n columns.push(\n columnHelper.group({\n id,\n header,\n columns: React.Children.toArray(children).reduce(\n (columns: ReactTableColumnDef<TType>[], child) =>\n processChildren<TType>(\n child,\n columns,\n defaultSizing,\n defaultSorting,\n defaultVisibility,\n settings,\n defaultRowGroupColumnId\n ),\n []\n ),\n // we don't want to let column groups be grouped/aggregrated\n enableGrouping: false,\n })\n );\n } else if (React.isValidElement<TableColumnProps<TType>>(child) && (child.props.accessor || child.props.id)) {\n const {\n id,\n accessor: accessorKey = id,\n // renderers\n renderer,\n aggregate,\n footer,\n header,\n // options\n aggregationFn,\n defaultHidden,\n defaultWidth,\n enableFiltering: enableColumnFilter = true,\n enableGrouping = false,\n enableHiding = true,\n enableOrdering = true,\n enablePrinting = true,\n enableResizing = true,\n enableSearch: enableGlobalFilter = true,\n enableSorting = true,\n enableTruncate = false,\n minWidth: minSize = getCellMinWidth(settings.fontSize),\n sort,\n sortFn,\n ...meta\n } = child.props;\n\n if (defaultHidden && enableHiding) {\n defaultVisibility[id] = false;\n }\n\n if (defaultWidth) {\n defaultSizing[id] = defaultWidth as any;\n }\n\n if (child.props.sort !== undefined) {\n defaultSorting.push({\n id,\n desc: sort === 'desc',\n });\n }\n\n const isGrouped = defaultRowGroupColumnId === id;\n\n const column: ReactTableColumnDef<TType, any> = {\n id,\n accessorKey,\n header: header,\n // features\n enableColumnFilter,\n enableGlobalFilter,\n enableGrouping,\n enableHiding: isGrouped ? false : enableHiding,\n enableResizing,\n enableSorting,\n // config - sizing\n minSize,\n // meta\n meta: {\n ...(meta as any),\n defaultWidth,\n enableOrdering: isGrouped ? false : enableOrdering,\n enablePrinting,\n enableTruncate,\n header,\n },\n };\n\n // renderers\n if (typeof renderer === 'function') {\n column.cell = info => renderer(info.getValue(), info.row.original);\n }\n\n if (typeof footer === 'function') {\n column.footer = info => footer(info.table.getRowModel().rows.map(row => row.original[id]));\n }\n\n // config - filtering\n if (enableColumnFilter) {\n column.filterFn = 'tacoFilter' as any;\n }\n\n // config - grouping/aggregation\n if (enableGrouping) {\n column.aggregationFn = aggregationFn;\n\n if (typeof aggregate === 'function') {\n column.aggregatedCell = info => aggregate(info.getValue(), info.row.original);\n }\n }\n\n // config - sorting\n if (enableSorting) {\n column.sortingFn = getSortingFn<TType>(child.props.dataType, sortFn);\n column.sortDescFirst = false;\n column.sortUndefined = 1;\n }\n\n columns.push(column);\n }\n\n return columns;\n}\n\nfunction createInternalColumn<TType = unknown>(\n id: string,\n column: useTableManagerInternalColumn<TType>,\n defaultSizing: ReactTableColumnSizingState\n) {\n if (column.size) {\n defaultSizing[id] = column.size;\n }\n\n return {\n id,\n accessorKey: id,\n header: column.header,\n cell: column.renderer,\n // features\n enableColumnFilter: false,\n enableGlobalFilter: false,\n enableGrouping: false,\n enableHiding: false,\n enableResizing: false,\n enableSorting: false,\n // config - sizing\n size: column.size,\n minSize: column.size,\n // meta\n meta: {\n ...(column.meta as any),\n enableOrdering: false,\n enablePrinting: false,\n enableTruncate: false,\n },\n } as ReactTableColumnDef<TType, any>;\n}\n\nexport function mapTableChildrenToColumns<TType = unknown>(\n props: TableProps<TType>,\n settings: TableSettings,\n options: TableFeatureProps,\n internalColumns?: useTableManagerInternalColumns<TType>\n) {\n const { children, defaultRowGroupColumnId } = props;\n const defaultSizing: ReactTableColumnSizingState = {};\n const defaultSorting: ReactTableColumnSort[] = [];\n const defaultVisibility: ReactTableVisibilityState = {};\n\n const columns = React.Children.toArray(children).reduce(\n (columns: ReactTableColumnDef<TType>[], child) =>\n processChildren<TType>(\n child,\n columns,\n defaultSizing,\n defaultSorting,\n defaultVisibility,\n settings,\n defaultRowGroupColumnId\n ),\n\n []\n );\n\n if (internalColumns) {\n if (options.enableRowExpansion && props.rowExpansionRenderer && internalColumns.rowExpansion) {\n const column = createInternalColumn<TType>('__expansion', internalColumns.rowExpansion, defaultSizing);\n columns.unshift(column);\n }\n\n if ((options.enableRowSelection || options.enableRowSelectionSingle) && internalColumns.rowSelection) {\n const column = createInternalColumn<TType>('__select', internalColumns.rowSelection, defaultSizing);\n columns.unshift(column);\n }\n\n if (options.enableRowActions && props.rowActions?.length && internalColumns.rowActions) {\n const column = createInternalColumn<TType>('__actions', internalColumns.rowActions, defaultSizing);\n columns.push(column);\n }\n\n if (options.enableRowDrag && props.onRowDrag && internalColumns.rowDrag) {\n const column = createInternalColumn<TType>('__drag', internalColumns.rowDrag, defaultSizing);\n columns.unshift(column);\n }\n }\n\n return { columns, defaultSizing, defaultSorting, defaultVisibility };\n}\n\nexport function configureReactTableOptions<TType = unknown>(options: TableFeatureProps, props: TableProps<TType>) {\n const enableRowSelection = options.enableRowSelection || options.enableRowSelectionSingle;\n const tableOptions: Partial<ReactTableOptions<TType>> = {\n defaultColumn: {\n enableColumnFilter: options.enableFiltering || true,\n enableGrouping: false,\n enableHiding: options.enableColumnHiding || true,\n enableResizing: options.enableColumnResizing || true,\n enableGlobalFilter: options.enableSearch || true,\n enableSorting: options.enableSorting || true,\n minSize: 1,\n // the default is 150, which is a bit random\n size: 1,\n },\n enableColumnFilters: options.enableFiltering ?? false,\n enableColumnResizing: options.enableColumnResizing ?? false,\n enableExpanding: options.enableRowExpansion ?? false,\n enableGrouping: true, // users can't customise row grouping, so it can just be always enabled and left to the defaultRowGroupColumnId prop\n enableHiding: options.enableColumnHiding ?? false,\n enablePinning: options.enableColumnFreezing ?? false,\n enableRowSelection: enableRowSelection ?? false,\n enableMultiRowSelection: options.enableRowSelectionSingle === true ? false : enableRowSelection,\n enableSorting: options.enableSorting ?? false,\n // models for default features\n getExpandedRowModel: getExpandedRowModel<TType>(),\n getGroupedRowModel: getGroupedRowModel<TType>(),\n groupedColumnMode: false,\n };\n\n if (tableOptions.enableColumnResizing) {\n tableOptions.columnResizeMode = 'onChange';\n }\n\n if (tableOptions.enableColumnFilters) {\n // enter controlled filter mode (controlled could be local state, but usually the server)\n if (props.onChangeFilter) {\n // tableOptions.manualFiltering = true;\n // we don't set it because it breaks global filtering (used for search, which is fully client side)\n //\n // tableOptions.onColumnFiltersChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onFilter\n } else {\n tableOptions.getFilteredRowModel = getFilteredRowModel<TType>();\n tableOptions.filterFns = {\n tacoFilter: (row: ReactTableRow<TType>, columnId: string, filter: any) =>\n columnFilterFn(row.getValue(columnId), filter),\n };\n }\n }\n\n if (options.enableSearch) {\n // always set these because enableGlobalFilter can be toggled on and off by the user\n tableOptions.getFilteredRowModel = getFilteredRowModel<TType>();\n tableOptions.globalFilterFn = globalFilterFn;\n tableOptions.getColumnCanGlobalFilter = (column: ReactTableColumn<TType>) => column.columnDef.meta?.enableSearch ?? true;\n\n // enter controlled search mode (controlled could be local state, but usually the server)\n if (props.onChangeSearch) {\n // tableOptions.manualFiltering = true;\n // we don't set this because controlled search is not currently supported, search is always client side\n //\n // tableOptions.onGlobalFilterChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onSearch.\n //\n // we also don't always filter when searching, we have the highlight functionality as the default\n // and filtering can be toggled by the user\n }\n }\n\n if (tableOptions.enableSorting) {\n // enter controlled sort mode (controlled could be local state, but usually the server)\n if (props.onChangeSort) {\n tableOptions.manualSorting = true;\n\n // tableOptions.onSortingChange = ...\n // we don't set this because it expects state to be maintained externally, and we don't want\n // consumers to control state outside the table. instead we have a listener that calls onSort\n } else {\n tableOptions.getSortedRowModel = getSortedRowModel();\n }\n }\n\n return tableOptions;\n}\n\nexport function useReactTableInitialState<TType = unknown>(\n props: TableProps<TType>,\n columns: ReactTableColumnDef<TType>[],\n persistedSettings: TableSettings,\n defaults: {\n defaultSizing: ReactTableColumnSizingState;\n defaultSorting: ReactTableColumnSort[];\n defaultVisibility: ReactTableVisibilityState;\n }\n): Partial<ReactTableState> {\n return React.useMemo(() => {\n const ignoreNotDefinedColumns = column => columns.find(definedColumn => definedColumn.id === column.id);\n\n const columnOrder = ensureOrdering<TType>(columns, persistedSettings.columnOrder ?? props.defaultSettings?.columnOrder);\n\n const columnPinning: ReactTableColumnPinningState =\n persistedSettings.columnPinning ?? props.defaultSettings?.columnPinning ?? {};\n\n // ensure internal columns are pinned\n if (!columnPinning?.left?.length) {\n if (props.defaultColumnFreezingIndex) {\n columnPinning.left = freezeUptoExternalColumn(props.defaultColumnFreezingIndex, columnOrder);\n } else {\n columnPinning.left = unfreezeAllExternalColumns(columnOrder);\n }\n }\n\n const state: Partial<ReactTableState> = {\n columnFilters: persistedSettings.columnFilters ?? props.defaultSettings?.columnFilters ?? [],\n columnOrder,\n columnPinning,\n columnSizing: persistedSettings.columnSizing ?? props.defaultSettings?.columnSizing ?? defaults.defaultSizing ?? {},\n columnVisibility:\n persistedSettings.columnVisibility ?? props.defaultSettings?.columnVisibility ?? defaults.defaultVisibility ?? {},\n globalFilter: persistedSettings.searchQuery ?? props.defaultSettings?.searchQuery,\n sorting: persistedSettings.sorting\n ? persistedSettings.sorting.filter(ignoreNotDefinedColumns)\n : props.defaultSettings?.sorting ?? defaults.defaultSorting,\n };\n\n if (persistedSettings.grouping?.length ?? props.defaultSettings?.grouping?.length ?? props.defaultRowGroupColumnId) {\n state.grouping = [props.defaultRowGroupColumnId as string];\n // row groups should (all) always be expanded by default\n state.expanded = true;\n }\n\n return state;\n }, []);\n}\n"],"names":["processChildren","child","columns","defaultSizing","defaultSorting","defaultVisibility","settings","defaultRowGroupColumnId","columnHelper","createColumnHelper","React","isValidElement","props","children","id","header","push","group","Children","toArray","reduce","enableGrouping","accessor","accessorKey","renderer","aggregate","footer","aggregationFn","defaultHidden","defaultWidth","enableFiltering","enableColumnFilter","enableHiding","enableOrdering","enablePrinting","enableResizing","enableSearch","enableGlobalFilter","enableSorting","enableTruncate","minWidth","minSize","getCellMinWidth","fontSize","sort","sortFn","meta","undefined","desc","isGrouped","column","cell","info","getValue","row","original","table","getRowModel","rows","map","filterFn","aggregatedCell","sortingFn","getSortingFn","dataType","sortDescFirst","sortUndefined","createInternalColumn","size","mapTableChildrenToColumns","options","internalColumns","_props$rowActions","enableRowExpansion","rowExpansionRenderer","rowExpansion","unshift","enableRowSelection","enableRowSelectionSingle","rowSelection","enableRowActions","rowActions","length","enableRowDrag","onRowDrag","rowDrag","configureReactTableOptions","tableOptions","defaultColumn","enableColumnHiding","enableColumnResizing","enableColumnFilters","_options$enableFilter","_options$enableColumn","enableExpanding","_options$enableRowExp","_options$enableColumn2","enablePinning","_options$enableColumn3","enableColumnFreezing","enableMultiRowSelection","_options$enableSortin","getExpandedRowModel","getGroupedRowModel","groupedColumnMode","columnResizeMode","onChangeFilter","getFilteredRowModel","filterFns","tacoFilter","columnId","filter","columnFilterFn","globalFilterFn","getColumnCanGlobalFilter","_column$columnDef$met","_column$columnDef$met2","columnDef","onChangeSort","manualSorting","getSortedRowModel","useReactTableInitialState","persistedSettings","defaults","useMemo","ignoreNotDefinedColumns","find","definedColumn","columnOrder","ensureOrdering","_persistedSettings$co","_props$defaultSetting","defaultSettings","columnPinning","_ref","_persistedSettings$co2","_props$defaultSetting2","_columnPinning$left","left","defaultColumnFreezingIndex","freezeUptoExternalColumn","unfreezeAllExternalColumns","state","columnFilters","_ref2","_persistedSettings$co3","_props$defaultSetting3","columnSizing","_ref3","_ref4","_persistedSettings$co4","_props$defaultSetting4","columnVisibility","_ref5","_ref6","_persistedSettings$co5","_props$defaultSetting5","globalFilter","_persistedSettings$se","searchQuery","_props$defaultSetting6","sorting","_props$defaultSetting7","_props$defaultSetting8","_ref7","_persistedSettings$gr","_persistedSettings$gr2","grouping","_props$defaultSetting9","_props$defaultSetting10","expanded"],"mappings":";;;;;;AAuBA;AACA,SAASA,eAAeA,CACpBC,KAAiE,EACjEC,OAAqC,EACrCC,aAA0C,EAC1CC,cAAsC,EACtCC,iBAA4C,EAC5CC,QAAuB,EACvBC,uBAAqC;EAErC,MAAMC,YAAY,GAAGC,kBAAkB,EAAS;EAEhD,kBAAIC,cAAK,CAACC,cAAc,CAAkBV,KAAK,CAAC,IAAIA,KAAK,CAACW,KAAK,CAACC,QAAQ,EAAE;IACtE,MAAM;MAAEA,QAAQ;MAAEC,EAAE;MAAEC;KAAQ,GAAGd,KAAK,CAACW,KAAK;IAE5CV,OAAO,CAACc,IAAI,CACRR,YAAY,CAACS,KAAK,CAAC;MACfH,EAAE;MACFC,MAAM;MACNb,OAAO,EAAEQ,cAAK,CAACQ,QAAQ,CAACC,OAAO,CAACN,QAAQ,CAAC,CAACO,MAAM,CAC5C,CAAClB,OAAqC,EAAED,KAAK,KACzCD,eAAe,CACXC,KAAK,EACLC,OAAO,EACPC,aAAa,EACbC,cAAc,EACdC,iBAAiB,EACjBC,QAAQ,EAC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,sBAAA,GAAI5J,KAAK,CAACwH,eAAe,cAAAoC,sBAAA,wBAAAC,uBAAA,GAArBD,sBAAA,CAAuBD,QAAQ,cAAAE,uBAAA,uBAA/BA,uBAAA,CAAiCvF,MAAM,cAAAkF,KAAA,cAAAA,KAAA,GAAIxJ,KAAK,CAACL,uBAAuB,EAAE;MAChHuI,KAAK,CAACyB,QAAQ,GAAG,CAAC3J,KAAK,CAACL,uBAAiC,CAAC;;MAE1DuI,KAAK,CAAC4B,QAAQ,GAAG,IAAI;;IAGzB,OAAO5B,KAAK;GACf,EAAE,EAAE,CAAC;AACV;;;;"}
@@ -1,3 +1,11 @@
1
+ // taken from react-aria
2
+ const FOCUSABLE_ELEMENTS = ['input:not([disabled]):not([type=hidden])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'a[href]', 'area[href]', 'summary', 'iframe', 'object', 'embed', 'audio[controls]', 'video[controls]', '[contenteditable]', '[tabindex]:not([tabindex="-1"]):not([disabled])', 'details:not([disabled])', 'summary:not(:disabled)'];
3
+ const hasFocusableElement = element => {
4
+ if (!element) {
5
+ return null;
6
+ }
7
+ return !!element.querySelector(FOCUSABLE_ELEMENTS.join(','));
8
+ };
1
9
  const getIndexOfFirstChildOverflowingParent = (element, overscan = 0) => {
2
10
  let index = 0;
3
11
  let boundaryChildIndex = null;
@@ -17,7 +25,7 @@ const getNextFocussableElement = currentElement => {
17
25
  if (!currentElement) {
18
26
  return null;
19
27
  }
20
- const focussableElements = [...document.querySelectorAll('button:not([disabled]), [href]:not(link):not(script), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')];
28
+ const focussableElements = [...document.querySelectorAll(FOCUSABLE_ELEMENTS.join(','))];
21
29
  const currentElementIndex = focussableElements.indexOf(currentElement);
22
30
  // If the currentElement is not in the focussable elements list or it is the last element
23
31
  if (currentElementIndex !== -1 && currentElementIndex === focussableElements.length - 1) {
@@ -39,7 +47,15 @@ function isElementInsideOrTriggeredFromContainer(element, container) {
39
47
  var _getOverlaySelector, _element$closest;
40
48
  const selector = (_getOverlaySelector = getOverlaySelector(element)) !== null && _getOverlaySelector !== void 0 ? _getOverlaySelector : getOverlaySelector((_element$closest = element === null || element === void 0 ? void 0 : element.closest('[role=dialog],[role=menu]')) !== null && _element$closest !== void 0 ? _element$closest : null);
41
49
  if (selector) {
42
- return !!(container !== null && container !== void 0 && container.querySelector(selector));
50
+ if (container !== null && container !== void 0 && container.querySelector(selector)) {
51
+ return true;
52
+ }
53
+ const elementInDocument = document.querySelector(selector);
54
+ // if the element does exist, see if it is itself connected to somethng that was triggered from the container
55
+ if (elementInDocument) {
56
+ return isElementInsideOrTriggeredFromContainer(elementInDocument, container);
57
+ }
58
+ return false;
43
59
  }
44
60
  return !!(container !== null && container !== void 0 && container.contains(element));
45
61
  }
@@ -57,5 +73,5 @@ function isElementInteractive(element) {
57
73
  return ['A', 'BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'LABEL', 'OPTION'].includes(element.tagName) && !element.hidden && !element.disabled && !element.readOnly;
58
74
  }
59
75
 
60
- export { getIndexOfFirstChildOverflowingParent, getNextFocussableElement, isElementInsideOrTriggeredFromContainer, isElementInsideOverlay, isElementInteractive, isSiblingElementInsideSameParentOverlay };
76
+ export { getIndexOfFirstChildOverflowingParent, getNextFocussableElement, hasFocusableElement, isElementInsideOrTriggeredFromContainer, isElementInsideOverlay, isElementInteractive, isSiblingElementInsideSameParentOverlay };
61
77
  //# sourceMappingURL=dom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom.js","sources":["../../../../../../src/utils/dom.ts"],"sourcesContent":["export const isOverflowing = (element: HTMLElement | null) =>\n element !== null ? element.scrollWidth > element.offsetWidth : false;\n\nexport const getIndexOfFirstChildOverflowingParent = (element: HTMLElement, overscan = 0) => {\n let index = 0;\n let boundaryChildIndex: number | null = null;\n const clientRect = element.getBoundingClientRect();\n\n for (const child of Array.from(element.children)) {\n const right = child.getBoundingClientRect().right - clientRect.left;\n const width = clientRect.width - overscan;\n\n if (right > width) {\n boundaryChildIndex = index;\n break;\n }\n index++;\n }\n\n return boundaryChildIndex;\n};\n\nexport const getNextFocussableElement = (currentElement: HTMLElement | null) => {\n if (!currentElement) {\n return null;\n }\n\n const focussableElements = [\n ...document.querySelectorAll<HTMLElement>(\n 'button:not([disabled]), [href]:not(link):not(script), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled]), details:not([disabled]), summary:not(:disabled)'\n ),\n ];\n const currentElementIndex = focussableElements.indexOf(currentElement);\n\n // If the currentElement is not in the focussable elements list or it is the last element\n if (currentElementIndex !== -1 && currentElementIndex === focussableElements.length - 1) {\n return null;\n }\n\n return focussableElements[currentElementIndex + 1];\n};\n\nconst getOverlaySelector = (element: Element | null) => {\n switch (element?.getAttribute('role')) {\n case 'dialog':\n return `[aria-controls='${element.id}']`;\n\n case 'menu':\n return `#${element.getAttribute('aria-labelledby')}`;\n\n default:\n return undefined;\n }\n};\n\nexport function isElementInsideOrTriggeredFromContainer(element: Element | null, container: Element | null) {\n const selector = getOverlaySelector(element) ?? getOverlaySelector(element?.closest('[role=dialog],[role=menu]') ?? null);\n\n if (selector) {\n return !!container?.querySelector(selector);\n }\n\n return !!container?.contains(element);\n}\n\nexport function isElementInsideOverlay(element: Element | null) {\n return !!element?.closest('[role=dialog],[role=menu]');\n}\n\nexport function isSiblingElementInsideSameParentOverlay(element: Element | null, sibling: Element | null) {\n return !!element?.closest('[role=dialog],[role=menu]')?.contains(sibling);\n}\n\nexport function isElementInteractive(element: Element | null) {\n if (!element) {\n return false;\n }\n\n return (\n ['A', 'BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'LABEL', 'OPTION'].includes(element.tagName) &&\n !(element as HTMLElement).hidden &&\n !(element as HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement).disabled &&\n !(element as HTMLInputElement | HTMLTextAreaElement).readOnly\n );\n}\n"],"names":["getIndexOfFirstChildOverflowingParent","element","overscan","index","boundaryChildIndex","clientRect","getBoundingClientRect","child","Array","from","children","right","left","width","getNextFocussableElement","currentElement","focussableElements","document","querySelectorAll","currentElementIndex","indexOf","length","getOverlaySelector","getAttribute","id","undefined","isElementInsideOrTriggeredFromContainer","container","selector","_getOverlaySelector","_element$closest","closest","querySelector","contains","isElementInsideOverlay","isSiblingElementInsideSameParentOverlay","sibling","_element$closest2","isElementInteractive","includes","tagName","hidden","disabled","readOnly"],"mappings":"MAGaA,qCAAqC,GAAGA,CAACC,OAAoB,EAAEC,QAAQ,GAAG,CAAC;EACpF,IAAIC,KAAK,GAAG,CAAC;EACb,IAAIC,kBAAkB,GAAkB,IAAI;EAC5C,MAAMC,UAAU,GAAGJ,OAAO,CAACK,qBAAqB,EAAE;EAElD,KAAK,MAAMC,KAAK,IAAIC,KAAK,CAACC,IAAI,CAACR,OAAO,CAACS,QAAQ,CAAC,EAAE;IAC9C,MAAMC,KAAK,GAAGJ,KAAK,CAACD,qBAAqB,EAAE,CAACK,KAAK,GAAGN,UAAU,CAACO,IAAI;IACnE,MAAMC,KAAK,GAAGR,UAAU,CAACQ,KAAK,GAAGX,QAAQ;IAEzC,IAAIS,KAAK,GAAGE,KAAK,EAAE;MACfT,kBAAkB,GAAGD,KAAK;MAC1B;;IAEJA,KAAK,EAAE;;EAGX,OAAOC,kBAAkB;AAC7B;MAEaU,wBAAwB,GAAIC,cAAkC;EACvE,IAAI,CAACA,cAAc,EAAE;IACjB,OAAO,IAAI;;EAGf,MAAMC,kBAAkB,GAAG,CACvB,GAAGC,QAAQ,CAACC,gBAAgB,CACxB,iOAAiO,CACpO,CACJ;EACD,MAAMC,mBAAmB,GAAGH,kBAAkB,CAACI,OAAO,CAACL,cAAc,CAAC;;EAGtE,IAAII,mBAAmB,KAAK,CAAC,CAAC,IAAIA,mBAAmB,KAAKH,kBAAkB,CAACK,MAAM,GAAG,CAAC,EAAE;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C;AAC7E;SAEgBE,oBAAoBA,CAACrC,OAAuB;EACxD,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,KAAK;;EAGhB,OACI,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAACsC,QAAQ,CAACtC,OAAO,CAACuC,OAAO,CAAC,IAC3F,CAAEvC,OAAuB,CAACwC,MAAM,IAChC,CAAExC,OAA0F,CAACyC,QAAQ,IACrG,CAAEzC,OAAkD,CAAC0C,QAAQ;AAErE;;;;"}
1
+ {"version":3,"file":"dom.js","sources":["../../../../../../src/utils/dom.ts"],"sourcesContent":["// taken from react-aria\nconst FOCUSABLE_ELEMENTS = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]',\n '[tabindex]:not([tabindex=\"-1\"]):not([disabled])',\n 'details:not([disabled])',\n 'summary:not(:disabled)',\n];\n\nexport const hasFocusableElement = (element: HTMLElement | null) => {\n if (!element) {\n return null;\n }\n\n return !!element.querySelector(FOCUSABLE_ELEMENTS.join(','));\n};\n\nexport const isOverflowing = (element: HTMLElement | null) =>\n element !== null ? element.scrollWidth > element.offsetWidth : false;\n\nexport const getIndexOfFirstChildOverflowingParent = (element: HTMLElement, overscan = 0) => {\n let index = 0;\n let boundaryChildIndex: number | null = null;\n const clientRect = element.getBoundingClientRect();\n\n for (const child of Array.from(element.children)) {\n const right = child.getBoundingClientRect().right - clientRect.left;\n const width = clientRect.width - overscan;\n\n if (right > width) {\n boundaryChildIndex = index;\n break;\n }\n index++;\n }\n\n return boundaryChildIndex;\n};\n\nexport const getNextFocussableElement = (currentElement: HTMLElement | null) => {\n if (!currentElement) {\n return null;\n }\n\n const focussableElements = [...document.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS.join(','))];\n const currentElementIndex = focussableElements.indexOf(currentElement);\n\n // If the currentElement is not in the focussable elements list or it is the last element\n if (currentElementIndex !== -1 && currentElementIndex === focussableElements.length - 1) {\n return null;\n }\n\n return focussableElements[currentElementIndex + 1];\n};\n\nconst getOverlaySelector = (element: Element | null) => {\n switch (element?.getAttribute('role')) {\n case 'dialog':\n return `[aria-controls='${element.id}']`;\n\n case 'menu':\n return `#${element.getAttribute('aria-labelledby')}`;\n\n default:\n return undefined;\n }\n};\n\nexport function isElementInsideOrTriggeredFromContainer(element: Element | null, container: Element | null) {\n const selector = getOverlaySelector(element) ?? getOverlaySelector(element?.closest('[role=dialog],[role=menu]') ?? null);\n\n if (selector) {\n if (container?.querySelector(selector)) {\n return true;\n }\n\n const elementInDocument = document.querySelector(selector);\n\n // if the element does exist, see if it is itself connected to somethng that was triggered from the container\n if (elementInDocument) {\n return isElementInsideOrTriggeredFromContainer(elementInDocument, container);\n }\n\n return false;\n }\n\n return !!container?.contains(element);\n}\n\nexport function isElementInsideOverlay(element: Element | null) {\n return !!element?.closest('[role=dialog],[role=menu]');\n}\n\nexport function isSiblingElementInsideSameParentOverlay(element: Element | null, sibling: Element | null) {\n return !!element?.closest('[role=dialog],[role=menu]')?.contains(sibling);\n}\n\nexport function isElementInteractive(element: Element | null) {\n if (!element) {\n return false;\n }\n\n return (\n ['A', 'BUTTON', 'INPUT', 'TEXTAREA', 'SELECT', 'LABEL', 'OPTION'].includes(element.tagName) &&\n !(element as HTMLElement).hidden &&\n !(element as HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement).disabled &&\n !(element as HTMLInputElement | HTMLTextAreaElement).readOnly\n );\n}\n"],"names":["FOCUSABLE_ELEMENTS","hasFocusableElement","element","querySelector","join","getIndexOfFirstChildOverflowingParent","overscan","index","boundaryChildIndex","clientRect","getBoundingClientRect","child","Array","from","children","right","left","width","getNextFocussableElement","currentElement","focussableElements","document","querySelectorAll","currentElementIndex","indexOf","length","getOverlaySelector","getAttribute","id","undefined","isElementInsideOrTriggeredFromContainer","container","selector","_getOverlaySelector","_element$closest","closest","elementInDocument","contains","isElementInsideOverlay","isSiblingElementInsideSameParentOverlay","sibling","_element$closest2","isElementInteractive","includes","tagName","hidden","disabled","readOnly"],"mappings":"AAAA;AACA,MAAMA,kBAAkB,GAAG,CACvB,0CAA0C,EAC1C,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,SAAS,EACT,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,iDAAiD,EACjD,yBAAyB,EACzB,wBAAwB,CAC3B;MAEYC,mBAAmB,GAAIC,OAA2B;EAC3D,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,IAAI;;EAGf,OAAO,CAAC,CAACA,OAAO,CAACC,aAAa,CAACH,kBAAkB,CAACI,IAAI,CAAC,GAAG,CAAC,CAAC;AAChE;MAKaC,qCAAqC,GAAGA,CAACH,OAAoB,EAAEI,QAAQ,GAAG,CAAC;EACpF,IAAIC,KAAK,GAAG,CAAC;EACb,IAAIC,kBAAkB,GAAkB,IAAI;EAC5C,MAAMC,UAAU,GAAGP,OAAO,CAACQ,qBAAqB,EAAE;EAElD,KAAK,MAAMC,KAAK,IAAIC,KAAK,CAACC,IAAI,CAACX,OAAO,CAACY,QAAQ,CAAC,EAAE;IAC9C,MAAMC,KAAK,GAAGJ,KAAK,CAACD,qBAAqB,EAAE,CAACK,KAAK,GAAGN,UAAU,CAACO,IAAI;IACnE,MAAMC,KAAK,GAAGR,UAAU,CAACQ,KAAK,GAAGX,QAAQ;IAEzC,IAAIS,KAAK,GAAGE,KAAK,EAAE;MACfT,kBAAkB,GAAGD,KAAK;MAC1B;;IAEJA,KAAK,EAAE;;EAGX,OAAOC,kBAAkB;AAC7B;MAEaU,wBAAwB,GAAIC,cAAkC;EACvE,IAAI,CAACA,cAAc,EAAE;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iBAAiB,EAAEL,SAAS,CAAC;;IAGhF,OAAO,KAAK;;EAGhB,OAAO,CAAC,EAACA,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEM,QAAQ,CAACnC,OAAO,CAAC;AACzC;SAEgBoC,sBAAsBA,CAACpC,OAAuB;EAC1D,OAAO,CAAC,EAACA,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAEiC,OAAO,CAAC,2BAA2B,CAAC;AAC1D;SAEgBI,uCAAuCA,CAACrC,OAAuB,EAAEsC,OAAuB;;EACpG,OAAO,CAAC,EAACtC,OAAO,aAAPA,OAAO,gBAAAuC,iBAAA,GAAPvC,OAAO,CAAEiC,OAAO,CAAC,2BAA2B,CAAC,cAAAM,iBAAA,eAA7CA,iBAAA,CAA+CJ,QAAQ,CAACG,OAAO,CAAC;AAC7E;SAEgBE,oBAAoBA,CAACxC,OAAuB;EACxD,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,KAAK;;EAGhB,OACI,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAACyC,QAAQ,CAACzC,OAAO,CAAC0C,OAAO,CAAC,IAC3F,CAAE1C,OAAuB,CAAC2C,MAAM,IAChC,CAAE3C,OAA0F,CAAC4C,QAAQ,IACrG,CAAE5C,OAAkD,CAAC6C,QAAQ;AAErE;;;;"}
@@ -37,19 +37,6 @@ const setInputValueByRef = (input, value, event = 'change') => {
37
37
  // 'change' instead of 'input', see https://github.com/facebook/react/issues/11488#issuecomment-381590324
38
38
  input.dispatchEvent(createCustomEvent(event));
39
39
  };
40
- const deselectInputValue = input => {
41
- var _input$setSelectionRa, _input$value, _input$value2;
42
- // input type="number" doesn't support "setSelectionRange",
43
- // easiest way is to switch input type to text, deselect value, and switch it back to number.
44
- const isNumber = input.type === 'number';
45
- if (isNumber) {
46
- input.type = 'text';
47
- }
48
- (_input$setSelectionRa = input.setSelectionRange) === null || _input$setSelectionRa === void 0 ? void 0 : _input$setSelectionRa.call(input, (_input$value = input.value) === null || _input$value === void 0 ? void 0 : _input$value.length, (_input$value2 = input.value) === null || _input$value2 === void 0 ? void 0 : _input$value2.length);
49
- if (isNumber) {
50
- input.type = 'number';
51
- }
52
- };
53
40
 
54
- export { createCustomEvent, createCustomKeyboardEvent, deselectInputValue, setInputValueByRef };
41
+ export { createCustomEvent, createCustomKeyboardEvent, setInputValueByRef };
55
42
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":["../../../../../../src/utils/input.ts"],"sourcesContent":["// returns a custom event compatible with all browsers\nexport const createCustomEvent = (eventType: string) => {\n let customEvent;\n\n if (typeof Event === 'function') {\n customEvent = new Event(eventType, { bubbles: true });\n } else {\n customEvent = document.createEvent('Event');\n customEvent.initEvent(eventType, true, true);\n }\n return customEvent;\n};\n\n// returns a custom keyboard event compatible with all browsers\nexport const createCustomKeyboardEvent = (event: React.KeyboardEvent<HTMLInputElement>) => {\n let customKeyboardEvent;\n\n if (typeof KeyboardEvent === 'function') {\n customKeyboardEvent = new KeyboardEvent(event.type, event as any);\n } else {\n customKeyboardEvent = document.createEvent('Event') as any;\n customKeyboardEvent.initEvent(event.type, true, true);\n customKeyboardEvent.key = event.key;\n customKeyboardEvent.charCode = event.charCode;\n }\n\n return customKeyboardEvent;\n};\n\nexport const setInputValueByRef = (input: HTMLInputElement | null, value: string | undefined, event = 'change'): void => {\n if (!input) {\n return;\n }\n\n const previousValue = input.value;\n input.value = value || '';\n\n const tracker = (input as any)._valueTracker;\n\n if (tracker) {\n tracker.setValue(previousValue);\n }\n\n // 'change' instead of 'input', see https://github.com/facebook/react/issues/11488#issuecomment-381590324\n input.dispatchEvent(createCustomEvent(event));\n};\n\nexport const deselectInputValue = (input: HTMLInputElement) => {\n // input type=\"number\" doesn't support \"setSelectionRange\",\n // easiest way is to switch input type to text, deselect value, and switch it back to number.\n const isNumber = input.type === 'number';\n if (isNumber) {\n input.type = 'text';\n }\n input.setSelectionRange?.(input.value?.length, input.value?.length);\n if (isNumber) {\n input.type = 'number';\n }\n};\n"],"names":["createCustomEvent","eventType","customEvent","Event","bubbles","document","createEvent","initEvent","createCustomKeyboardEvent","event","customKeyboardEvent","KeyboardEvent","type","key","charCode","setInputValueByRef","input","value","previousValue","tracker","_valueTracker","setValue","dispatchEvent","deselectInputValue","isNumber","_input$setSelectionRa","setSelectionRange","call","_input$value","length","_input$value2"],"mappings":"AAAA;MACaA,iBAAiB,GAAIC,SAAiB;EAC/C,IAAIC,WAAW;EAEf,IAAI,OAAOC,KAAK,KAAK,UAAU,EAAE;IAC7BD,WAAW,GAAG,IAAIC,KAAK,CAACF,SAAS,EAAE;MAAEG,OAAO,EAAE;KAAM,CAAC;GACxD,MAAM;IACHF,WAAW,GAAGG,QAAQ,CAACC,WAAW,CAAC,OAAO,CAAC;IAC3CJ,WAAW,CAACK,SAAS,CAACN,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;;EAEhD,OAAOC,WAAW;AACtB;AAEA;MACaM,yBAAyB,GAAIC,KAA4C;EAClF,IAAIC,mBAAmB;EAEvB,IAAI,OAAOC,aAAa,KAAK,UAAU,EAAE;IACrCD,mBAAmB,GAAG,IAAIC,aAAa,CAACF,KAAK,CAACG,IAAI,EAAEH,KAAY,CAAC;GACpE,MAAM;IACHC,mBAAmB,GAAGL,QAAQ,CAACC,WAAW,CAAC,OAAO,CAAQ;IAC1DI,mBAAmB,CAACH,SAAS,CAACE,KAAK,CAACG,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IACrDF,mBAAmB,CAACG,GAAG,GAAGJ,KAAK,CAACI,GAAG;IACnCH,mBAAmB,CAACI,QAAQ,GAAGL,KAAK,CAACK,QAAQ;;EAGjD,OAAOJ,mBAAmB;AAC9B;MAEaK,kBAAkB,GAAGA,CAACC,KAA8B,EAAEC,KAAyB,EAAER,KAAK,GAAG,QAAQ;EAC1G,IAAI,CAACO,KAAK,EAAE;IACR;;EAGJ,MAAME,aAAa,GAAGF,KAAK,CAACC,KAAK;EACjCD,KAAK,CAACC,KAAK,GAAGA,KAAK,IAAI,EAAE;EAEzB,MAAME,OAAO,GAAIH,KAAa,CAACI,aAAa;EAE5C,IAAID,OAAO,EAAE;IACTA,OAAO,CAACE,QAAQ,CAACH,aAAa,CAAC;;;EAInCF,KAAK,CAACM,aAAa,CAACtB,iBAAiB,CAACS,KAAK,CAAC,CAAC;AACjD;MAEac,kBAAkB,GAAIP,KAAuB;;;;EAGtD,MAAMQ,QAAQ,GAAGR,KAAK,CAACJ,IAAI,KAAK,QAAQ;EACxC,IAAIY,QAAQ,EAAE;IACVR,KAAK,CAACJ,IAAI,GAAG,MAAM;;EAEvB,CAAAa,qBAAA,GAAAT,KAAK,CAACU,iBAAiB,cAAAD,qBAAA,uBAAvBA,qBAAA,CAAAE,IAAA,CAAAX,KAAK,GAAAY,YAAA,GAAqBZ,KAAK,CAACC,KAAK,cAAAW,YAAA,uBAAXA,YAAA,CAAaC,MAAM,GAAAC,aAAA,GAAEd,KAAK,CAACC,KAAK,cAAAa,aAAA,uBAAXA,aAAA,CAAaD,MAAM,CAAC;EACnE,IAAIL,QAAQ,EAAE;IACVR,KAAK,CAACJ,IAAI,GAAG,QAAQ;;AAE7B;;;;"}
1
+ {"version":3,"file":"input.js","sources":["../../../../../../src/utils/input.ts"],"sourcesContent":["// returns a custom event compatible with all browsers\nexport const createCustomEvent = (eventType: string) => {\n let customEvent;\n\n if (typeof Event === 'function') {\n customEvent = new Event(eventType, { bubbles: true });\n } else {\n customEvent = document.createEvent('Event');\n customEvent.initEvent(eventType, true, true);\n }\n return customEvent;\n};\n\n// returns a custom keyboard event compatible with all browsers\nexport const createCustomKeyboardEvent = (event: React.KeyboardEvent<HTMLInputElement>) => {\n let customKeyboardEvent;\n\n if (typeof KeyboardEvent === 'function') {\n customKeyboardEvent = new KeyboardEvent(event.type, event as any);\n } else {\n customKeyboardEvent = document.createEvent('Event') as any;\n customKeyboardEvent.initEvent(event.type, true, true);\n customKeyboardEvent.key = event.key;\n customKeyboardEvent.charCode = event.charCode;\n }\n\n return customKeyboardEvent;\n};\n\nexport const setInputValueByRef = (input: HTMLInputElement | null, value: string | undefined, event = 'change'): void => {\n if (!input) {\n return;\n }\n\n const previousValue = input.value;\n input.value = value || '';\n\n const tracker = (input as any)._valueTracker;\n\n if (tracker) {\n tracker.setValue(previousValue);\n }\n\n // 'change' instead of 'input', see https://github.com/facebook/react/issues/11488#issuecomment-381590324\n input.dispatchEvent(createCustomEvent(event));\n};\n\nexport const deselectInputValue = (input: HTMLInputElement) => {\n // input type=\"number\" doesn't support \"setSelectionRange\",\n // easiest way is to switch input type to text, deselect value, and switch it back to number.\n const isNumber = input.type === 'number';\n if (isNumber) {\n input.type = 'text';\n }\n input.setSelectionRange?.(input.value?.length, input.value?.length);\n if (isNumber) {\n input.type = 'number';\n }\n};\n"],"names":["createCustomEvent","eventType","customEvent","Event","bubbles","document","createEvent","initEvent","createCustomKeyboardEvent","event","customKeyboardEvent","KeyboardEvent","type","key","charCode","setInputValueByRef","input","value","previousValue","tracker","_valueTracker","setValue","dispatchEvent"],"mappings":"AAAA;MACaA,iBAAiB,GAAIC,SAAiB;EAC/C,IAAIC,WAAW;EAEf,IAAI,OAAOC,KAAK,KAAK,UAAU,EAAE;IAC7BD,WAAW,GAAG,IAAIC,KAAK,CAACF,SAAS,EAAE;MAAEG,OAAO,EAAE;KAAM,CAAC;GACxD,MAAM;IACHF,WAAW,GAAGG,QAAQ,CAACC,WAAW,CAAC,OAAO,CAAC;IAC3CJ,WAAW,CAACK,SAAS,CAACN,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;;EAEhD,OAAOC,WAAW;AACtB;AAEA;MACaM,yBAAyB,GAAIC,KAA4C;EAClF,IAAIC,mBAAmB;EAEvB,IAAI,OAAOC,aAAa,KAAK,UAAU,EAAE;IACrCD,mBAAmB,GAAG,IAAIC,aAAa,CAACF,KAAK,CAACG,IAAI,EAAEH,KAAY,C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