@economic/taco 2.25.1 → 2.26.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (517) hide show
  1. package/dist/components/Provider/Localization.d.ts +47 -55
  2. package/dist/components/Report/Report.d.ts +5 -19
  3. package/dist/components/Report/useReport.d.ts +3 -7
  4. package/dist/components/Select2/hooks/useChildren.d.ts +2 -1
  5. package/dist/components/Table/Table.d.ts +2 -2
  6. package/dist/components/Table3/Table3.d.ts +14 -14
  7. package/dist/components/Table3/components/Columns/Cell/Cell.d.ts +3 -0
  8. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +9 -0
  9. package/dist/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.d.ts +10 -0
  10. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.d.ts +3 -0
  11. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +3 -0
  12. package/dist/components/Table3/components/Columns/Cell/util.d.ts +3 -0
  13. package/dist/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +10 -0
  14. package/dist/components/Table3/components/Editing/Alert.d.ts +12 -0
  15. package/dist/components/Table3/components/Row/Editing/SaveStatus.d.ts +8 -0
  16. package/dist/components/Table3/components/Row/Row.d.ts +3 -0
  17. package/dist/components/Table3/components/Toolbar/Editing/Editing.d.ts +8 -0
  18. package/dist/components/Table3/features/useTableEditing.d.ts +46 -0
  19. package/dist/components/Table3/listeners/useTableEditingListener.d.ts +2 -0
  20. package/dist/components/Table3/types.d.ts +28 -351
  21. package/dist/components/Table3/useTable3.d.ts +11 -0
  22. package/dist/components/Table3/util/editing.d.ts +2 -10
  23. package/dist/esm/index.css +216 -515
  24. package/dist/esm/packages/taco/src/components/Field/Field.js +1 -0
  25. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -6
  27. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Provider/Localization.js +48 -59
  29. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -51
  31. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Report/useReport.js +8 -45
  33. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Select2/Select2.js +1 -1
  35. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  37. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
  38. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  39. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +10 -10
  40. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/Table3/Table3.js +30 -218
  42. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +39 -0
  44. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +85 -0
  46. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -0
  47. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +71 -0
  48. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -0
  49. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +216 -0
  50. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -0
  51. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +14 -0
  52. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -0
  53. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +45 -0
  54. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -0
  55. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +62 -0
  56. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -0
  57. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +134 -0
  58. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -0
  59. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +54 -0
  60. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -0
  61. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +41 -0
  62. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -0
  63. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +49 -0
  64. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -0
  65. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +349 -0
  66. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -0
  67. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +49 -0
  68. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -0
  69. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +36 -0
  70. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -0
  71. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +46 -38
  72. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  73. package/dist/esm/packages/taco/src/index.js +1 -1
  74. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +2 -0
  75. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +52 -0
  77. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -0
  78. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/Body.js +21 -12
  79. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -0
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -0
  81. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -0
  82. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/DisplayCell.js +6 -4
  83. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -0
  84. package/dist/esm/packages/taco/src/{components/Report/components/Cell → primitives/Table/Core/components/Columns/Cell/BuiltIns}/GroupedCell.js +8 -6
  85. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -0
  86. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.js +6 -5
  87. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -0
  88. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.js +5 -4
  89. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -0
  90. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.js +28 -17
  91. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -0
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +73 -0
  93. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -0
  94. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Expansion.js +18 -6
  95. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -0
  96. package/dist/esm/packages/taco/src/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Selection.js +23 -10
  97. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -0
  98. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -0
  99. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Summary.js +7 -7
  100. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -0
  101. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/Header.js +12 -7
  102. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -0
  103. package/dist/esm/packages/taco/src/{components/Table3/components/columns/header → primitives/Table/Core/components/Header/components}/Goto.js +5 -5
  104. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -0
  105. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Menu.js +15 -16
  106. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -0
  107. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.js +3 -3
  108. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -0
  109. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.js +1 -1
  110. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -0
  111. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Header/util.js +4 -4
  112. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -0
  113. package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/DisplayRow.js +30 -12
  114. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -0
  115. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -0
  116. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/Row.js +13 -7
  117. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -0
  118. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Row/RowContext.js +0 -1
  119. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -0
  120. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +54 -0
  121. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -0
  122. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.js +9 -9
  123. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -0
  124. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.js +9 -9
  125. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
  126. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.js +4 -4
  127. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
  128. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.js +7 -7
  129. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
  130. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.js +17 -17
  131. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
  132. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.js +7 -7
  133. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
  134. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -0
  135. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.js +11 -11
  136. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -0
  137. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +88 -0
  138. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
  139. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.js +26 -7
  140. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -0
  141. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.js +27 -13
  142. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
  143. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.js +17 -17
  144. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -0
  145. package/dist/esm/packages/taco/src/{components/Report/styles/util.js → primitives/Table/Core/features/useStylesheet.js} +18 -2
  146. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheet.js.map +1 -0
  147. package/dist/esm/packages/taco/src/{components/Report/styles/useColumnPinningStylesheet.js → primitives/Table/Core/features/useStylesheetColumnFreezing.js} +12 -12
  148. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetColumnFreezing.js.map +1 -0
  149. package/dist/esm/packages/taco/src/{components/Report/styles/useCssGridStylesheet.js → primitives/Table/Core/features/useStylesheetCssGrid.js} +9 -9
  150. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useStylesheetCssGrid.js.map +1 -0
  151. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.js +3 -5
  152. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -0
  153. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -0
  154. package/dist/esm/packages/taco/src/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.js +5 -3
  155. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -0
  156. package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.js +1 -1
  157. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -0
  158. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +50 -0
  159. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -0
  160. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -0
  161. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  162. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +5 -15
  163. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  164. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +14 -0
  165. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -0
  166. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +9 -0
  167. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -0
  168. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +1 -3
  169. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  170. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +13 -9
  171. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  172. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +58 -24
  173. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  174. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +1 -2
  175. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  176. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  177. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  178. package/dist/esm/packages/taco/src/utils/dom.js +19 -3
  179. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  180. package/dist/esm/packages/taco/src/utils/input.js +1 -14
  181. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  182. package/dist/index.css +216 -515
  183. package/dist/index.d.ts +1 -0
  184. package/dist/primitives/Table/Core/Table.d.ts +19 -0
  185. package/dist/{components/Report → primitives/Table/Core}/components/Body/Body.d.ts +1 -1
  186. package/dist/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.d.ts +2 -2
  187. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.d.ts +3 -0
  188. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.d.ts +3 -0
  189. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/Cell.d.ts +4 -2
  190. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Cell/util.d.ts +2 -1
  191. package/dist/{components/Report/components → primitives/Table/Core/components/Columns}/Internal/Actions.d.ts +4 -4
  192. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.d.ts +2 -0
  193. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.d.ts +2 -0
  194. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.d.ts +2 -0
  195. package/dist/{components/Report → primitives/Table/Core}/components/Header/Header.d.ts +7 -2
  196. package/dist/{components/Table3/components/columns/header → primitives/Table/Core/components/Header/components}/Goto.d.ts +1 -1
  197. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/Menu.d.ts +2 -1
  198. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/Resizer.d.ts +1 -1
  199. package/dist/{components/Report → primitives/Table/Core}/components/Header/components/SortIndicator.d.ts +1 -1
  200. package/dist/primitives/Table/Core/components/Header/util.d.ts +4 -0
  201. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +4 -0
  202. package/dist/primitives/Table/Core/components/Row/Row.d.ts +6 -0
  203. package/dist/{components/Report → primitives/Table/Core}/components/Row/RowContext.d.ts +0 -1
  204. package/dist/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +7 -0
  205. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/Filter.d.ts +1 -1
  206. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterColumn.d.ts +2 -2
  207. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  208. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/components/FilterValue.d.ts +1 -1
  209. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.d.ts +1 -1
  210. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/Print.d.ts +1 -1
  211. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Print/PrintDialog.d.ts +2 -2
  212. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Search/Search.d.ts +3 -1
  213. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  214. package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Settings/Settings.d.ts +2 -2
  215. package/dist/primitives/Table/Core/features/useStylesheetColumnFreezing.d.ts +2 -0
  216. package/dist/{components/Report/styles/useCssGridStylesheet.d.ts → primitives/Table/Core/features/useStylesheetCssGrid.d.ts} +2 -2
  217. package/dist/{components/Report/util → primitives/Table/Core/features}/useTableGlobalShortcuts.d.ts +1 -1
  218. package/dist/{components/Report/util → primitives/Table/Core/features}/useTableRenderer.d.ts +3 -2
  219. package/dist/primitives/Table/Core/types.d.ts +21 -0
  220. package/dist/primitives/Table/Core/useTable.d.ts +27 -0
  221. package/dist/primitives/Table/types.d.ts +168 -3
  222. package/dist/primitives/Table/useTableManager/features/useTableRowActive.d.ts +4 -2
  223. package/dist/primitives/Table/useTableManager/features/useTableRowDrag.d.ts +8 -0
  224. package/dist/primitives/Table/useTableManager/features/useTableRowDrop.d.ts +5 -0
  225. package/dist/primitives/Table/useTableManager/types.d.ts +1 -0
  226. package/dist/primitives/Table/useTableManager/useTableManager.d.ts +9 -3
  227. package/dist/primitives/Table/useTableManager/util/settings.d.ts +1 -1
  228. package/dist/taco.cjs.development.js +7134 -11743
  229. package/dist/taco.cjs.development.js.map +1 -1
  230. package/dist/taco.cjs.production.min.js +1 -1
  231. package/dist/taco.cjs.production.min.js.map +1 -1
  232. package/dist/utils/dom.d.ts +2 -1
  233. package/package.json +3 -5
  234. package/dist/components/Report/components/Cell/DisplayCell.d.ts +0 -8
  235. package/dist/components/Report/components/Cell/GroupedCell.d.ts +0 -8
  236. package/dist/components/Report/components/Header/components/Goto.d.ts +0 -6
  237. package/dist/components/Report/components/Header/util.d.ts +0 -4
  238. package/dist/components/Report/components/Internal/Expansion.d.ts +0 -4
  239. package/dist/components/Report/components/Internal/Selection.d.ts +0 -4
  240. package/dist/components/Report/components/Row/DisplayRow.d.ts +0 -9
  241. package/dist/components/Report/components/Row/Row.d.ts +0 -9
  242. package/dist/components/Report/components/Toolbar/Toolbar.d.ts +0 -15
  243. package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +0 -2
  244. package/dist/components/Report/styles/util.d.ts +0 -3
  245. package/dist/components/Report/types.d.ts +0 -20
  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/Group.d.ts +0 -15
  257. package/dist/components/Table3/components/columns/header/Header.d.ts +0 -37
  258. package/dist/components/Table3/components/columns/header/Menu.d.ts +0 -20
  259. package/dist/components/Table3/components/columns/header/Resizer.d.ts +0 -7
  260. package/dist/components/Table3/components/columns/header/SortIndicator.d.ts +0 -12
  261. package/dist/components/Table3/components/columns/internal/Actions.d.ts +0 -3
  262. package/dist/components/Table3/components/columns/internal/Drag.d.ts +0 -4
  263. package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +0 -8
  264. package/dist/components/Table3/components/columns/internal/Expansion.d.ts +0 -4
  265. package/dist/components/Table3/components/columns/internal/Selection.d.ts +0 -3
  266. package/dist/components/Table3/components/columns/styles.d.ts +0 -5
  267. package/dist/components/Table3/components/rows/ExpandedRow.d.ts +0 -8
  268. package/dist/components/Table3/components/rows/Row.d.ts +0 -26
  269. package/dist/components/Table3/components/rows/RowContext.d.ts +0 -10
  270. package/dist/components/Table3/components/rows/SkeletonRow.d.ts +0 -10
  271. package/dist/components/Table3/components/rows/styles.d.ts +0 -6
  272. package/dist/components/Table3/components/toolbar/ColumnSettings.d.ts +0 -7
  273. package/dist/components/Table3/components/toolbar/EditButton.d.ts +0 -7
  274. package/dist/components/Table3/components/toolbar/Filter/filters/Filters.d.ts +0 -7
  275. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +0 -12
  276. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +0 -12
  277. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.d.ts +0 -7
  278. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterValue.d.ts +0 -10
  279. package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -7
  280. package/dist/components/Table3/components/toolbar/PrintButton/PrintButton.d.ts +0 -8
  281. package/dist/components/Table3/components/toolbar/PrintButton/PrintIFrame.d.ts +0 -8
  282. package/dist/components/Table3/components/toolbar/PrintButton/WarningDialog.d.ts +0 -9
  283. package/dist/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.d.ts +0 -1
  284. package/dist/components/Table3/components/toolbar/RowHeight.d.ts +0 -7
  285. package/dist/components/Table3/components/toolbar/Search.d.ts +0 -8
  286. package/dist/components/Table3/components/toolbar/Settings.d.ts +0 -8
  287. package/dist/components/Table3/components/toolbar/Toolbar.d.ts +0 -13
  288. package/dist/components/Table3/hooks/features/useColumnFreezing.d.ts +0 -13
  289. package/dist/components/Table3/hooks/features/useEditing.d.ts +0 -31
  290. package/dist/components/Table3/hooks/features/useHeaderOffsetStyle.d.ts +0 -3
  291. package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +0 -5
  292. package/dist/components/Table3/hooks/features/usePrinting.d.ts +0 -7
  293. package/dist/components/Table3/hooks/features/useRowActions.d.ts +0 -5
  294. package/dist/components/Table3/hooks/features/useRowDrag.d.ts +0 -6
  295. package/dist/components/Table3/hooks/features/useRowDrop.d.ts +0 -5
  296. package/dist/components/Table3/hooks/features/useSearch.d.ts +0 -16
  297. package/dist/components/Table3/hooks/features/useSettings.d.ts +0 -3
  298. package/dist/components/Table3/hooks/features/useValidation.d.ts +0 -13
  299. package/dist/components/Table3/hooks/listeners/useEditingStateListener.d.ts +0 -2
  300. package/dist/components/Table3/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  301. package/dist/components/Table3/hooks/useConvertChildrenToColumns.d.ts +0 -9
  302. package/dist/components/Table3/hooks/useCssGrid.d.ts +0 -6
  303. package/dist/components/Table3/hooks/useCssVars.d.ts +0 -8
  304. package/dist/components/Table3/hooks/useTable.d.ts +0 -74
  305. package/dist/components/Table3/hooks/useTableDataLoader.d.ts +0 -22
  306. package/dist/components/Table3/hooks/useTablePreset.d.ts +0 -2
  307. package/dist/components/Table3/hooks/useTableRefInstanceSetup.d.ts +0 -4
  308. package/dist/components/Table3/strategies/index.d.ts +0 -4
  309. package/dist/components/Table3/strategies/virtualised.d.ts +0 -4
  310. package/dist/components/Table3/util/columns.d.ts +0 -8
  311. package/dist/components/Table3/util/filtering.d.ts +0 -3
  312. package/dist/components/Table3/util/scrolling.d.ts +0 -2
  313. package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +0 -1
  314. package/dist/esm/packages/taco/src/components/Report/components/Body/EmptyStateBody.js.map +0 -1
  315. package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +0 -1
  316. package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +0 -1
  317. package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +0 -1
  318. package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +0 -1
  319. package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +0 -1
  320. package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +0 -1
  321. package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +0 -1
  322. package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +0 -1
  323. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +0 -28
  324. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +0 -1
  325. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +0 -1
  326. package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +0 -1
  327. package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +0 -1
  328. package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +0 -1
  329. package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +0 -1
  330. package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +0 -1
  331. package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +0 -1
  332. package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +0 -1
  333. package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +0 -1
  334. package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +0 -1
  335. package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +0 -1
  336. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +0 -63
  337. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +0 -1
  338. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +0 -1
  339. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +0 -1
  340. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +0 -1
  341. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +0 -1
  342. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +0 -1
  343. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +0 -1
  344. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +0 -1
  345. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +0 -1
  346. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +0 -88
  347. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +0 -1
  348. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +0 -1
  349. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +0 -1
  350. package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +0 -1
  351. package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +0 -1
  352. package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +0 -1
  353. package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +0 -1
  354. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +0 -20
  355. package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +0 -1
  356. package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +0 -1
  357. package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +0 -1
  358. package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +0 -1
  359. package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +0 -1
  360. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +0 -154
  361. package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +0 -1
  362. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +0 -84
  363. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +0 -1
  364. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +0 -84
  365. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +0 -1
  366. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +0 -212
  367. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +0 -1
  368. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +0 -194
  369. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +0 -1
  370. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +0 -41
  371. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +0 -1
  372. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +0 -88
  373. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +0 -1
  374. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +0 -144
  375. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +0 -1
  376. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +0 -50
  377. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +0 -1
  378. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +0 -41
  379. package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +0 -1
  380. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Goto.js.map +0 -1
  381. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +0 -74
  382. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +0 -1
  383. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +0 -186
  384. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +0 -1
  385. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +0 -206
  386. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +0 -1
  387. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +0 -42
  388. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +0 -1
  389. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js +0 -38
  390. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/SortIndicator.js.map +0 -1
  391. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +0 -129
  392. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +0 -1
  393. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js +0 -86
  394. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Drag.js.map +0 -1
  395. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +0 -174
  396. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +0 -1
  397. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js +0 -104
  398. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Expansion.js.map +0 -1
  399. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +0 -187
  400. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +0 -1
  401. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +0 -19
  402. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +0 -1
  403. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js +0 -27
  404. package/dist/esm/packages/taco/src/components/Table3/components/rows/ExpandedRow.js.map +0 -1
  405. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +0 -327
  406. package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +0 -1
  407. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +0 -14
  408. package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +0 -1
  409. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js +0 -43
  410. package/dist/esm/packages/taco/src/components/Table3/components/rows/SkeletonRow.js.map +0 -1
  411. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js +0 -9
  412. package/dist/esm/packages/taco/src/components/Table3/components/rows/styles.js.map +0 -1
  413. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +0 -109
  414. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +0 -1
  415. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js +0 -29
  416. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/EditButton.js.map +0 -1
  417. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +0 -164
  418. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +0 -1
  419. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +0 -102
  420. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +0 -1
  421. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +0 -50
  422. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +0 -1
  423. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -111
  424. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +0 -1
  425. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +0 -118
  426. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +0 -1
  427. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +0 -26
  428. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +0 -1
  429. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +0 -211
  430. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +0 -1
  431. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +0 -224
  432. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +0 -1
  433. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js +0 -60
  434. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/WarningDialog.js.map +0 -1
  435. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +0 -97
  436. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +0 -1
  437. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +0 -33
  438. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +0 -1
  439. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +0 -238
  440. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +0 -1
  441. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +0 -65
  442. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +0 -1
  443. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +0 -64
  444. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +0 -1
  445. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +0 -95
  446. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +0 -1
  447. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +0 -299
  448. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +0 -1
  449. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js +0 -24
  450. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useHeaderOffsetStyle.js.map +0 -1
  451. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +0 -12
  452. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +0 -1
  453. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js +0 -14
  454. package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +0 -1
  455. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js +0 -10
  456. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowActions.js.map +0 -1
  457. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js +0 -13
  458. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrag.js.map +0 -1
  459. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js +0 -9
  460. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useRowDrop.js.map +0 -1
  461. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +0 -29
  462. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +0 -1
  463. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +0 -23
  464. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +0 -1
  465. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +0 -178
  466. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +0 -1
  467. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js +0 -28
  468. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useEditingStateListener.js.map +0 -1
  469. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +0 -24
  470. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +0 -1
  471. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +0 -143
  472. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +0 -1
  473. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +0 -66
  474. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +0 -1
  475. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +0 -74
  476. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +0 -1
  477. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +0 -234
  478. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +0 -1
  479. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js +0 -130
  480. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableDataLoader.js.map +0 -1
  481. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +0 -122
  482. package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +0 -1
  483. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js +0 -19
  484. package/dist/esm/packages/taco/src/components/Table3/hooks/useTableRefInstanceSetup.js.map +0 -1
  485. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js +0 -8
  486. package/dist/esm/packages/taco/src/components/Table3/strategies/index.js.map +0 -1
  487. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +0 -117
  488. package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js.map +0 -1
  489. package/dist/esm/packages/taco/src/components/Table3/types.js +0 -20
  490. package/dist/esm/packages/taco/src/components/Table3/types.js.map +0 -1
  491. package/dist/esm/packages/taco/src/components/Table3/util/columns.js +0 -60
  492. package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +0 -1
  493. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js +0 -120
  494. package/dist/esm/packages/taco/src/components/Table3/util/filtering.js.map +0 -1
  495. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js +0 -53
  496. package/dist/esm/packages/taco/src/components/Table3/util/scrolling.js.map +0 -1
  497. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js +0 -15
  498. package/dist/esm/packages/taco/src/hooks/useDebouncedEffect.js.map +0 -1
  499. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRef.js.map +0 -1
  500. package/types.json +0 -588211
  501. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/EmptyStateBody.js +0 -0
  502. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Body/util.js +0 -0
  503. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Footer/Footer.js +0 -0
  504. /package/dist/esm/packages/taco/src/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.js +0 -0
  505. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/util.js +0 -0
  506. /package/dist/esm/packages/taco/src/primitives/Table/{useTableManager → Core}/features/useTableRef.js +0 -0
  507. /package/dist/esm/packages/taco/src/{components/Report → primitives/Table/Core}/util/rows.js +0 -0
  508. /package/dist/{components/Report → primitives/Table/Core}/components/Body/util.d.ts +0 -0
  509. /package/dist/{components/Report → primitives/Table/Core}/components/Footer/Footer.d.ts +0 -0
  510. /package/dist/{components/Report → primitives/Table/Core}/components/Footer/Summary.d.ts +0 -0
  511. /package/dist/{components/Report/components/Row → primitives/Table/Core/components/Row/BuiltIns}/SkeletonRow.d.ts +0 -0
  512. /package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/Filters.d.ts +0 -0
  513. /package/dist/{components/Report → primitives/Table/Core}/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +0 -0
  514. /package/dist/{components/Report/styles → primitives/Table/Core/features}/useStylesheet.d.ts +0 -0
  515. /package/dist/primitives/Table/{useTableManager → Core}/features/useTableRef.d.ts +0 -0
  516. /package/dist/{components/Report → primitives/Table/Core}/listeners/useTableRowActiveListener.d.ts +0 -0
  517. /package/dist/{components/Report → primitives/Table/Core}/util/rows.d.ts +0 -0
@@ -29,6 +29,7 @@ const Field = /*#__PURE__*/forwardRef(function Field(props, ref) {
29
29
  tooltip: message
30
30
  }, /*#__PURE__*/createElement("span", {
31
31
  className: messageClassName,
32
+ "data-taco": "label-message",
32
33
  ref: messageRef,
33
34
  role: invalid ? 'alert' : undefined
34
35
  }, message))));
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sources":["../../../../../../../src/components/Field/Field.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'clsx';\n\nimport './Field.css';\nimport { Truncate } from '../Truncate/Truncate';\n\nexport type FieldProps = React.LabelHTMLAttributes<HTMLLabelElement> & {\n /** Content of the field */\n children: React.ReactNode;\n /**\tChanges the style to indicate the element is disabled */\n disabled?: boolean;\n /* Whether the input is in an invalid state */\n invalid?: boolean;\n /* Whether the input is in a warning state */\n warning?: boolean;\n /**\n * Text displayed below the children of Field.\n * Should be a short text that indicates feedback for user.\n */\n message?: string;\n};\n\nexport const Field = React.forwardRef(function Field(props: FieldProps, ref: React.Ref<HTMLLabelElement>) {\n const messageRef = React.useRef<HTMLSpanElement>(null);\n\n const { disabled, children, invalid = false, warning = false, message, ...otherProps } = props;\n const className = cn(\n 'flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]',\n {\n 'text-grey-300': disabled,\n },\n props.className\n );\n const messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {\n 'text-grey-700': !invalid && !warning,\n 'text-red-500': invalid,\n 'text-yellow-700': warning && !invalid,\n 'opacity-50': disabled,\n });\n\n return (\n <label {...otherProps} className={className} data-taco=\"label\" ref={ref}>\n {children}\n {message && (\n <Truncate tooltip={message}>\n <span className={messageClassName} ref={messageRef} role={invalid ? 'alert' : undefined}>\n {message}\n </span>\n </Truncate>\n )}\n </label>\n );\n});\n"],"names":["Field","React","props","ref","messageRef","disabled","children","invalid","warning","message","otherProps","className","cn","messageClassName","Truncate","tooltip","role","undefined"],"mappings":";;;;MAsBaA,KAAK,gBAAGC,UAAgB,CAAC,SAASD,KAAKA,CAACE,KAAiB,EAAEC,GAAgC;EACpG,MAAMC,UAAU,GAAGH,MAAY,CAAkB,IAAI,CAAC;EAEtD,MAAM;IAAEI,QAAQ;IAAEC,QAAQ;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO;IAAE,GAAGC;GAAY,GAAGR,KAAK;EAC9F,MAAMS,SAAS,GAAGC,EAAE,CAChB,8EAA8E,EAC9E;IACI,eAAe,EAAEP;GACpB,EACDH,KAAK,CAACS,SAAS,CAClB;EACD,MAAME,gBAAgB,GAAGD,EAAE,CAAC,iEAAiE,EAAE;IAC3F,eAAe,EAAE,CAACL,OAAO,IAAI,CAACC,OAAO;IACrC,cAAc,EAAED,OAAO;IACvB,iBAAiB,EAAEC,OAAO,IAAI,CAACD,OAAO;IACtC,YAAY,EAAEF;GACjB,CAAC;EAEF,oBACIJ,yCAAWS,UAAU;IAAEC,SAAS,EAAEA,SAAS;iBAAY,OAAO;IAACR,GAAG,EAAEA;MAC/DG,QAAQ,EACRG,OAAO,mBACJR,cAACa,QAAQ;IAACC,OAAO,EAAEN;kBACfR;IAAMU,SAAS,EAAEE,gBAAgB;IAAEV,GAAG,EAAEC,UAAU;IAAEY,IAAI,EAAET,OAAO,GAAG,OAAO,GAAGU;KACzER,OAAO,CACL,CACA,CACd,CACG;AAEhB,CAAC;;;;"}
1
+ {"version":3,"file":"Field.js","sources":["../../../../../../../src/components/Field/Field.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'clsx';\n\nimport './Field.css';\nimport { Truncate } from '../Truncate/Truncate';\n\nexport type FieldProps = React.LabelHTMLAttributes<HTMLLabelElement> & {\n /** Content of the field */\n children: React.ReactNode;\n /**\tChanges the style to indicate the element is disabled */\n disabled?: boolean;\n /* Whether the input is in an invalid state */\n invalid?: boolean;\n /* Whether the input is in a warning state */\n warning?: boolean;\n /**\n * Text displayed below the children of Field.\n * Should be a short text that indicates feedback for user.\n */\n message?: string;\n};\n\nexport const Field = React.forwardRef(function Field(props: FieldProps, ref: React.Ref<HTMLLabelElement>) {\n const messageRef = React.useRef<HTMLSpanElement>(null);\n\n const { disabled, children, invalid = false, warning = false, message, ...otherProps } = props;\n const className = cn(\n 'flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]',\n {\n 'text-grey-300': disabled,\n },\n props.className\n );\n const messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {\n 'text-grey-700': !invalid && !warning,\n 'text-red-500': invalid,\n 'text-yellow-700': warning && !invalid,\n 'opacity-50': disabled,\n });\n\n return (\n <label {...otherProps} className={className} data-taco=\"label\" ref={ref}>\n {children}\n {message && (\n <Truncate tooltip={message}>\n <span\n className={messageClassName}\n data-taco=\"label-message\"\n ref={messageRef}\n role={invalid ? 'alert' : undefined}>\n {message}\n </span>\n </Truncate>\n )}\n </label>\n );\n});\n"],"names":["Field","React","props","ref","messageRef","disabled","children","invalid","warning","message","otherProps","className","cn","messageClassName","Truncate","tooltip","role","undefined"],"mappings":";;;;MAsBaA,KAAK,gBAAGC,UAAgB,CAAC,SAASD,KAAKA,CAACE,KAAiB,EAAEC,GAAgC;EACpG,MAAMC,UAAU,GAAGH,MAAY,CAAkB,IAAI,CAAC;EAEtD,MAAM;IAAEI,QAAQ;IAAEC,QAAQ;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO;IAAE,GAAGC;GAAY,GAAGR,KAAK;EAC9F,MAAMS,SAAS,GAAGC,EAAE,CAChB,8EAA8E,EAC9E;IACI,eAAe,EAAEP;GACpB,EACDH,KAAK,CAACS,SAAS,CAClB;EACD,MAAME,gBAAgB,GAAGD,EAAE,CAAC,iEAAiE,EAAE;IAC3F,eAAe,EAAE,CAACL,OAAO,IAAI,CAACC,OAAO;IACrC,cAAc,EAAED,OAAO;IACvB,iBAAiB,EAAEC,OAAO,IAAI,CAACD,OAAO;IACtC,YAAY,EAAEF;GACjB,CAAC;EAEF,oBACIJ,yCAAWS,UAAU;IAAEC,SAAS,EAAEA,SAAS;iBAAY,OAAO;IAACR,GAAG,EAAEA;MAC/DG,QAAQ,EACRG,OAAO,mBACJR,cAACa,QAAQ;IAACC,OAAO,EAAEN;kBACfR;IACIU,SAAS,EAAEE,gBAAgB;iBACjB,eAAe;IACzBV,GAAG,EAAEC,UAAU;IACfY,IAAI,EAAET,OAAO,GAAG,OAAO,GAAGU;KACzBR,OAAO,CACL,CACA,CACd,CACG;AAEhB,CAAC;;;;"}
@@ -8,12 +8,11 @@ const Trigger = /*#__PURE__*/forwardRef(function MenuTrigger(props, ref) {
8
8
  const menu = useCurrentMenu();
9
9
  const internalRef = useMergedRef(ref);
10
10
  const preventArrowDownShortcut = event => {
11
- var _internalRef$current, _internalRef$current2;
12
- const isRenderedInTable = !!((_internalRef$current = internalRef.current) !== null && _internalRef$current !== void 0 && _internalRef$current.closest('[data-taco="table2-body"]'));
13
- const isRenderedInReport = !!((_internalRef$current2 = internalRef.current) !== null && _internalRef$current2 !== void 0 && _internalRef$current2.closest('[data-taco="report-body"]'));
14
- if ((isRenderedInTable || isRenderedInReport) && event.key === 'ArrowDown') {
15
- var _internalRef$current3, _internalRef$current4;
16
- internalRef === null || internalRef === void 0 ? void 0 : (_internalRef$current3 = internalRef.current) === null || _internalRef$current3 === void 0 ? void 0 : (_internalRef$current4 = _internalRef$current3.parentNode) === null || _internalRef$current4 === void 0 ? void 0 : _internalRef$current4.dispatchEvent(createCustomKeyboardEvent(event));
11
+ var _internalRef$current;
12
+ const isRenderedInTable = !!((_internalRef$current = internalRef.current) !== null && _internalRef$current !== void 0 && _internalRef$current.closest('tbody'));
13
+ if (isRenderedInTable && event.key === 'ArrowDown') {
14
+ var _internalRef$current2, _internalRef$current3;
15
+ internalRef === null || internalRef === void 0 ? void 0 : (_internalRef$current2 = internalRef.current) === null || _internalRef$current2 === void 0 ? void 0 : (_internalRef$current3 = _internalRef$current2.parentNode) === null || _internalRef$current3 === void 0 ? void 0 : _internalRef$current3.dispatchEvent(createCustomKeyboardEvent(event));
17
16
  }
18
17
  };
19
18
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"Trigger.js","sources":["../../../../../../../../src/components/Menu/components/Trigger.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { useCurrentMenu } from '../Context';\nimport { createCustomKeyboardEvent } from '../../../utils/input';\n\nexport type MenuTriggerProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'children'> & {\n children: React.ReactElement;\n};\n\nexport const Trigger = React.forwardRef(function MenuTrigger(props: MenuTriggerProps, ref: React.Ref<HTMLButtonElement>) {\n const menu = useCurrentMenu();\n const internalRef = useMergedRef<HTMLButtonElement>(ref);\n\n const preventArrowDownShortcut = (event: React.KeyboardEvent) => {\n const isRenderedInTable = !!internalRef.current?.closest('[data-taco=\"table2-body\"]');\n const isRenderedInReport = !!internalRef.current?.closest('[data-taco=\"report-body\"]');\n\n if ((isRenderedInTable || isRenderedInReport) && event.key === 'ArrowDown') {\n internalRef?.current?.parentNode?.dispatchEvent(\n createCustomKeyboardEvent(event as React.KeyboardEvent<HTMLInputElement>)\n );\n }\n };\n\n React.useEffect(() => {\n if (internalRef.current) {\n menu?.setMinWidth(internalRef.current.getBoundingClientRect().width);\n }\n }, [internalRef]);\n\n return <DropdownMenuPrimitive.Trigger {...props} asChild ref={internalRef} onKeyDown={preventArrowDownShortcut} />;\n});\n"],"names":["Trigger","React","MenuTrigger","props","ref","menu","useCurrentMenu","internalRef","useMergedRef","preventArrowDownShortcut","event","isRenderedInTable","_internalRef$current","current","closest","isRenderedInReport","_internalRef$current2","key","_internalRef$current3","_internalRef$current4","parentNode","dispatchEvent","createCustomKeyboardEvent","setMinWidth","getBoundingClientRect","width","DropdownMenuPrimitive","asChild","onKeyDown"],"mappings":";;;;;;MAUaA,OAAO,gBAAGC,UAAgB,CAAC,SAASC,WAAWA,CAACC,KAAuB,EAAEC,GAAiC;EACnH,MAAMC,IAAI,GAAGC,cAAc,EAAE;EAC7B,MAAMC,WAAW,GAAGC,YAAY,CAAoBJ,GAAG,CAAC;EAExD,MAAMK,wBAAwB,GAAIC,KAA0B;;IACxD,MAAMC,iBAAiB,GAAG,CAAC,GAAAC,oBAAA,GAACL,WAAW,CAACM,OAAO,cAAAD,oBAAA,eAAnBA,oBAAA,CAAqBE,OAAO,CAAC,2BAA2B,CAAC;IACrF,MAAMC,kBAAkB,GAAG,CAAC,GAAAC,qBAAA,GAACT,WAAW,CAACM,OAAO,cAAAG,qBAAA,eAAnBA,qBAAA,CAAqBF,OAAO,CAAC,2BAA2B,CAAC;IAEtF,IAAI,CAACH,iBAAiB,IAAII,kBAAkB,KAAKL,KAAK,CAACO,GAAG,KAAK,WAAW,EAAE;MAAA,IAAAC,qBAAA,EAAAC,qBAAA;MACxEZ,WAAW,aAAXA,WAAW,wBAAAW,qBAAA,GAAXX,WAAW,CAAEM,OAAO,cAAAK,qBAAA,wBAAAC,qBAAA,GAApBD,qBAAA,CAAsBE,UAAU,cAAAD,qBAAA,uBAAhCA,qBAAA,CAAkCE,aAAa,CAC3CC,yBAAyB,CAACZ,KAA8C,CAAC,CAC5E;;GAER;EAEDT,SAAe,CAAC;IACZ,IAAIM,WAAW,CAACM,OAAO,EAAE;MACrBR,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEkB,WAAW,CAAChB,WAAW,CAACM,OAAO,CAACW,qBAAqB,EAAE,CAACC,KAAK,CAAC;;GAE3E,EAAE,CAAClB,WAAW,CAAC,CAAC;EAEjB,oBAAON,cAACyB,SAA6B,oBAAKvB,KAAK;IAAEwB,OAAO;IAACvB,GAAG,EAAEG,WAAW;IAAEqB,SAAS,EAAEnB;KAA4B;AACtH,CAAC;;;;"}
1
+ {"version":3,"file":"Trigger.js","sources":["../../../../../../../../src/components/Menu/components/Trigger.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { useMergedRef } from '../../../hooks/useMergedRef';\nimport { useCurrentMenu } from '../Context';\nimport { createCustomKeyboardEvent } from '../../../utils/input';\n\nexport type MenuTriggerProps = Omit<React.HTMLAttributes<HTMLButtonElement>, 'children'> & {\n children: React.ReactElement;\n};\n\nexport const Trigger = React.forwardRef(function MenuTrigger(props: MenuTriggerProps, ref: React.Ref<HTMLButtonElement>) {\n const menu = useCurrentMenu();\n const internalRef = useMergedRef<HTMLButtonElement>(ref);\n\n const preventArrowDownShortcut = (event: React.KeyboardEvent) => {\n const isRenderedInTable = !!internalRef.current?.closest('tbody');\n\n if (isRenderedInTable && event.key === 'ArrowDown') {\n internalRef?.current?.parentNode?.dispatchEvent(\n createCustomKeyboardEvent(event as React.KeyboardEvent<HTMLInputElement>)\n );\n }\n };\n\n React.useEffect(() => {\n if (internalRef.current) {\n menu?.setMinWidth(internalRef.current.getBoundingClientRect().width);\n }\n }, [internalRef]);\n\n return <DropdownMenuPrimitive.Trigger {...props} asChild ref={internalRef} onKeyDown={preventArrowDownShortcut} />;\n});\n"],"names":["Trigger","React","MenuTrigger","props","ref","menu","useCurrentMenu","internalRef","useMergedRef","preventArrowDownShortcut","event","isRenderedInTable","_internalRef$current","current","closest","key","_internalRef$current2","_internalRef$current3","parentNode","dispatchEvent","createCustomKeyboardEvent","setMinWidth","getBoundingClientRect","width","DropdownMenuPrimitive","asChild","onKeyDown"],"mappings":";;;;;;MAUaA,OAAO,gBAAGC,UAAgB,CAAC,SAASC,WAAWA,CAACC,KAAuB,EAAEC,GAAiC;EACnH,MAAMC,IAAI,GAAGC,cAAc,EAAE;EAC7B,MAAMC,WAAW,GAAGC,YAAY,CAAoBJ,GAAG,CAAC;EAExD,MAAMK,wBAAwB,GAAIC,KAA0B;;IACxD,MAAMC,iBAAiB,GAAG,CAAC,GAAAC,oBAAA,GAACL,WAAW,CAACM,OAAO,cAAAD,oBAAA,eAAnBA,oBAAA,CAAqBE,OAAO,CAAC,OAAO,CAAC;IAEjE,IAAIH,iBAAiB,IAAID,KAAK,CAACK,GAAG,KAAK,WAAW,EAAE;MAAA,IAAAC,qBAAA,EAAAC,qBAAA;MAChDV,WAAW,aAAXA,WAAW,wBAAAS,qBAAA,GAAXT,WAAW,CAAEM,OAAO,cAAAG,qBAAA,wBAAAC,qBAAA,GAApBD,qBAAA,CAAsBE,UAAU,cAAAD,qBAAA,uBAAhCA,qBAAA,CAAkCE,aAAa,CAC3CC,yBAAyB,CAACV,KAA8C,CAAC,CAC5E;;GAER;EAEDT,SAAe,CAAC;IACZ,IAAIM,WAAW,CAACM,OAAO,EAAE;MACrBR,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEgB,WAAW,CAACd,WAAW,CAACM,OAAO,CAACS,qBAAqB,EAAE,CAACC,KAAK,CAAC;;GAE3E,EAAE,CAAChB,WAAW,CAAC,CAAC;EAEjB,oBAAON,cAACuB,SAA6B,oBAAKrB,KAAK;IAAEsB,OAAO;IAACrB,GAAG,EAAEG,WAAW;IAAEmB,SAAS,EAAEjB;KAA4B;AACtH,CAAC;;;;"}
@@ -60,7 +60,7 @@ const defaultLocalisationTexts = {
60
60
  pageX: 'Goto page [X]'
61
61
  }
62
62
  },
63
- table: {
63
+ legacyTable: {
64
64
  actions: 'Other actions',
65
65
  edit: 'Edit (e)',
66
66
  copy: 'Copy (c)',
@@ -68,7 +68,7 @@ const defaultLocalisationTexts = {
68
68
  newSubRow: 'New row (shift + n)',
69
69
  loading: 'Loading...'
70
70
  },
71
- table3: {
71
+ table: {
72
72
  columns: {
73
73
  actions: {
74
74
  tooltip: 'Row actions'
@@ -87,7 +87,6 @@ const defaultLocalisationTexts = {
87
87
  filter: 'Filter',
88
88
  freezeFirstColumn: 'Freeze the first column',
89
89
  freezeUptoColumn: `Freeze first [TOTAL] columns`,
90
- freezeColumns: (count = 1) => count === 1 ? 'Freeze the first column' : `Freeze first ${count} columns`,
91
90
  gotoRow: 'Go to',
92
91
  hideColumn: 'Hide column',
93
92
  unfreezeColumns: 'Unfreeze all columns',
@@ -114,36 +113,6 @@ const defaultLocalisationTexts = {
114
113
  button: 'Column settings',
115
114
  noResults: 'No results'
116
115
  },
117
- editing: {
118
- actions: {
119
- tooltip: 'Row actions',
120
- save: 'Save',
121
- clear: 'Clear changes',
122
- exit: 'Exit edit mode'
123
- },
124
- buttons: {
125
- edit: {
126
- tooltip: 'Edit table'
127
- }
128
- },
129
- rowIndicator: {
130
- rowWillMove: 'Row will move due to sorting',
131
- rowWillBeHidden: 'Row will hide due to filtering',
132
- rowWillMoveReasonSearch: 'Due to a search filter applied to this table, this row will be hidden as soon as you select another row',
133
- rowWillMoveReasonFilter: "Due to a filter applied to the column '[COLUMN]', this row will be hidden as soon as you select another row",
134
- rowWillMoveReasonSorting: "Due to sorting applied to the column '[COLUMN]', this row will move position as soon as you select another row"
135
- },
136
- saving: {
137
- progress: 'Saving...',
138
- complete: 'Saved'
139
- },
140
- clearChangesConfirmationDialog: {
141
- title: 'Discard changes',
142
- description: 'Are you sure you want to discard changes on row ‘[ROW_IDENTIFIER] [ROW_IDENTIFIER_VALUE]’. Your changes will be lost.',
143
- cancel: 'Continue edititng',
144
- confirm: 'Discard'
145
- }
146
- },
147
116
  filters: {
148
117
  button: 'Filters',
149
118
  buttons: {
@@ -243,35 +212,55 @@ const defaultLocalisationTexts = {
243
212
  excludeUnmatchedResults: 'Show only search results',
244
213
  placeholder: 'Search...'
245
214
  },
246
- shortcuts: {
247
- tooltip: 'View keyboard shortcuts',
248
- search: 'Search',
249
- filter: 'Filter',
250
- previousRow: 'Previous row',
251
- nextRow: 'Next row',
252
- editCell: 'Edit cell',
253
- previousColumn: 'Previous column',
254
- nextColumn: 'Next column',
255
- rowClick: 'Activate current row',
256
- selectRow: 'Select current row',
257
- selectAllRows: 'Select all rows',
258
- expandRow: 'Expand current row',
259
- collapseRow: 'Collapse current row'
260
- },
261
215
  otherOptions: {
262
216
  tooltip: 'Table settings'
263
- },
264
- validation: {
265
- index: 'Index',
266
- alert: {
267
- unsavedEntries: (count = 1) => count === 1 ? 'unsaved entry:' : 'unsaved entries:',
268
- incompleteAndHavntBeenSaved: (count = 1) => count === 1 ? 'is incomplete and haven’t been saved.' : 'are incomplete and haven’t been saved.'
217
+ }
218
+ },
219
+ table3: {
220
+ editing: {
221
+ actions: {
222
+ tooltip: 'Row actions',
223
+ save: 'Save',
224
+ clear: 'Clear changes',
225
+ exit: 'Exit edit mode'
226
+ },
227
+ buttons: {
228
+ edit: {
229
+ tooltip: 'Edit table'
230
+ }
269
231
  },
270
- resetFiltersDialog: {
271
- title: 'Row is hidden',
272
- description: 'The row is hidden due to filtering.',
273
- cancel: 'Cancel',
274
- confirm: 'Remove filters'
232
+ clearChangesConfirmationDialog: {
233
+ title: 'Discard changes',
234
+ description: 'Are you sure you want to discard changes? Your changes will be lost.',
235
+ cancel: 'Continue editing',
236
+ confirm: 'Discard'
237
+ },
238
+ rowIndicator: {
239
+ rowWillMove: 'Row will move due to sorting',
240
+ rowWillBeHidden: 'Row will hide due to filtering',
241
+ rowWillMoveReasonSearch: 'Due to a search filter applied to this table, this row will be hidden as soon as you select another row',
242
+ rowWillMoveReasonFilter: "Due to a filter applied to the column '[COLUMN]', this row will be hidden as soon as you select another row",
243
+ rowWillMoveReasonSorting: "Due to sorting applied to the column '[COLUMN]', this row will move position as soon as you select another row"
244
+ },
245
+ saving: {
246
+ progress: 'Saving...',
247
+ complete: 'Saved'
248
+ },
249
+ validation: {
250
+ alert: {
251
+ titleOne: '[COUNT] unsaved entry: ',
252
+ titlePlural: '[COUNT] unsaved entries: ',
253
+ messageOne: "[COLUMN] [ROW] is incomplete and hasn't been saved.",
254
+ messagePlural: "[COLUMN] [ROW] are incomplete and haven't been saved.",
255
+ messageRow: 'Row',
256
+ messageAnd: ' and '
257
+ },
258
+ resetFiltersDialog: {
259
+ title: 'Row is hidden',
260
+ description: 'The row is hidden due to filtering.',
261
+ cancel: 'Cancel',
262
+ confirm: 'Remove filters'
263
+ }
275
264
  }
276
265
  }
277
266
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Localization.js","sources":["../../../../../../../src/components/Provider/Localization.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Locale } from '../../types';\nimport { CalendarTexts } from '../Calendar/Calendar';\nimport { ComboboxTexts } from '../Combobox/Combobox';\nimport { DialogTexts } from '../Dialog/Dialog';\nimport { PaginationTexts } from '../Pagination/Pagination';\nimport { ListboxTexts } from '../Listbox/Listbox';\nimport { ToastsTexts } from '../Toast/Toast';\nimport { DatepickerTexts } from '../Datepicker/Datepicker';\nimport { HeaderTexts } from '../Header/Header';\nimport { HangerTexts } from '../Hanger/Hanger';\nimport { SelectTexts } from '../Select/Select';\nimport { TourTexts } from '../Tour/Tour';\nimport { TableTexts } from '../Table/Table';\nimport { Table3Texts } from '../Table3/types';\nimport { SearchInputTexts } from '../SearchInput/SearchInput';\nimport { Select2Texts } from '../Select2/Select2';\nimport { BannerTexts } from '../Banner/Banner';\nimport { DrawerTexts } from '../Drawer/Drawer';\n\nexport type LocalizationTexts = {\n /** Localized texts and aria-labels for [Banner](component:banner) component */\n banner: BannerTexts;\n /** Localized texts and aria-labels for [Calendar](component:calendar) component */\n calendar: CalendarTexts;\n /** Localized texts and aria-labels for [Combobox](component:combobox) component */\n combobox: ComboboxTexts;\n /** Localized texts and aria-labels for [DatePicker](component:datepicker) component */\n datepicker: DatepickerTexts;\n /** Localized texts and aria-labels for [Dialog](component:dialog) component */\n dialog: DialogTexts;\n /** Localized texts and aria-labels for [Hanger](component:hanger) component */\n hanger: HangerTexts;\n /** Localized texts and aria-labels for [Header](component:header) component */\n header: HeaderTexts;\n /** Localized texts and aria-labels for [Listbox](component:listbox) component */\n listbox: ListboxTexts;\n /** Localized texts and aria-labels for [Pagination](component:pagination) component */\n pagination: PaginationTexts;\n /** Localized texts and aria-labels for [Table](component:table) component */\n table: TableTexts;\n /** Localized texts and aria-labels for [Table3](component:table3) component */\n table3: Table3Texts;\n /** Localized texts and aria-labels for [SearchInput](component:searchinput) component */\n searchInput: SearchInputTexts;\n /** Localized texts and aria-labels for [Select](component:select) component */\n select: SelectTexts;\n /** Localized texts and aria-labels for [Select2](component:select2) component */\n select2: Select2Texts;\n /** Localized texts and aria-labels for [Toast](component:toast) component */\n toasts: ToastsTexts;\n /** Localized texts and aria-labels for [Tour](component:tour) component */\n tour: TourTexts;\n /** Localized texts and aria-labels for [Drawer](component:drawer) component */\n drawer: DrawerTexts;\n};\n\nexport type Localization = {\n /**\n * Provide the language code used in application.\n * Default value is `en-GB`\n */\n locale: Locale;\n /** Provide the texts and aria-labels for components used within the provider */\n texts: LocalizationTexts;\n /** Provide the formatting */\n formatting: {\n /** Default value is `dd.mm.yy` */\n date: string;\n };\n};\n\nexport const defaultLocalisationTexts = {\n banner: {\n close: 'Close',\n },\n calendar: {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n actions: {\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n previousYear: 'Previous year',\n nextYear: 'Next year',\n today: 'Today',\n },\n },\n combobox: {\n tooltip: 'Search in list',\n },\n datepicker: {\n calendar: 'Calendar',\n clear: 'Clear',\n expand: 'Show calendar',\n shortcuts: 'Shortcuts',\n },\n dialog: {\n close: 'Close',\n drag: 'Drag',\n },\n hanger: {\n close: 'Close',\n },\n header: {\n addAgreement: 'Add agreement',\n logout: 'Log off',\n more: 'More',\n new: 'New',\n search: 'Search for agreement...',\n },\n listbox: {\n loading: 'Loading results...',\n empty: 'No results found',\n allOption: 'All',\n },\n pagination: {\n label: 'Pagination',\n pageSize: 'Items per page',\n showingXofYofTotal: 'Showing [X] - [Y] of [total]',\n actions: {\n firstPage: 'Goto first page',\n firstPageWithShortcut: 'Goto first page (Home)',\n previousPage: 'Goto previous page',\n previousPageWithShortcut: 'Goto previous page (Page Up)',\n nextPage: 'Goto next page',\n nextPageWithShortcut: 'Goto next page (Page Down)',\n lastPage: 'Goto last page',\n lastPageWithShortcut: 'Goto last page (End)',\n pageX: 'Goto page [X]',\n },\n },\n table: {\n actions: 'Other actions',\n edit: 'Edit (e)',\n copy: 'Copy (c)',\n del: 'Delete (del)',\n newSubRow: 'New row (shift + n)',\n loading: 'Loading...',\n },\n table3: {\n columns: {\n actions: {\n tooltip: 'Row actions',\n },\n drag: {\n tooltip: 'Drag row',\n },\n expansion: {\n collapse: 'Collapse row',\n collapseAll: 'Collapse all rows',\n expand: 'Expand row',\n expandAll: 'Expand all rows',\n },\n menu: {\n editFilter: 'Edit filter',\n filter: 'Filter',\n freezeFirstColumn: 'Freeze the first column',\n freezeUptoColumn: `Freeze first [TOTAL] columns`,\n freezeColumns: (count = 1) => (count === 1 ? 'Freeze the first column' : `Freeze first ${count} columns`),\n gotoRow: 'Go to',\n hideColumn: 'Hide column',\n unfreezeColumns: 'Unfreeze all columns',\n sorting: 'Sorting',\n sortingOrder: {\n ascending: 'Ascending order',\n descending: 'Descending order',\n unsorted: 'No sorting',\n },\n },\n resize: {\n tooltip: 'Resize column',\n },\n select: {\n deselect: 'Deselect row',\n deselectAll: 'Deselect all rows',\n select: 'Select row',\n selectAll: 'Select all rows',\n },\n },\n columnSettings: {\n search: 'Search column...',\n tooltip: 'Column settings',\n button: 'Column settings',\n noResults: 'No results',\n },\n editing: {\n actions: {\n tooltip: 'Row actions',\n save: 'Save',\n clear: 'Clear changes',\n exit: 'Exit edit mode',\n },\n buttons: {\n edit: {\n tooltip: 'Edit table',\n },\n },\n rowIndicator: {\n rowWillMove: 'Row will move due to sorting',\n rowWillBeHidden: 'Row will hide due to filtering',\n rowWillMoveReasonSearch:\n 'Due to a search filter applied to this table, this row will be hidden as soon as you select another row',\n rowWillMoveReasonFilter:\n \"Due to a filter applied to the column '[COLUMN]', this row will be hidden as soon as you select another row\",\n rowWillMoveReasonSorting:\n \"Due to sorting applied to the column '[COLUMN]', this row will move position as soon as you select another row\",\n },\n saving: {\n progress: 'Saving...',\n complete: 'Saved',\n },\n clearChangesConfirmationDialog: {\n title: 'Discard changes',\n description:\n 'Are you sure you want to discard changes on row ‘[ROW_IDENTIFIER] [ROW_IDENTIFIER_VALUE]’. Your changes will be lost.',\n cancel: 'Continue edititng',\n confirm: 'Discard',\n },\n },\n filters: {\n button: 'Filters',\n buttons: {\n addFilter: 'Add new filter',\n clearFilters: 'Clear all filters',\n },\n comparators: {\n contains: 'Contains',\n doesNotContain: 'Does not contain',\n isEqualTo: 'Is',\n isNotEqualTo: 'Is not',\n isGreaterThan: 'Is greater than',\n isLessThan: 'Is less than',\n isBetween: 'Is between',\n isOneOf: 'Is one of',\n isNoneOf: 'Is none of',\n isAllOf: 'Is all of',\n isEmpty: 'Is empty',\n isNotEmpty: 'Is not empty',\n isBefore: 'Is before',\n isAfter: 'Is after',\n isOnOrBefore: 'Is on or before',\n isOnOrAfter: 'Is on or after',\n isLessThanOrEqualTo: 'Is less than or equal to',\n isGreaterThanOrEqualTo: 'Is greater than or equal to',\n hasAnyOf: 'Has any of',\n hasAllOf: 'Has all of',\n hasNoneOf: 'Has none of',\n },\n conditions: {\n and: 'And',\n where: 'Where',\n },\n emptyFilter: {\n condition: 'Condition',\n value: 'Value',\n },\n hiddenColumn: 'Hidden column',\n hiddenGroupedColumn: 'Hidden grouped column',\n tooltip: 'Apply filters',\n total: 'Viewing [CURRENT] of [TOTAL]',\n },\n fontSize: {\n tooltip: 'Font size',\n sizes: {\n small: 'Small',\n medium: 'Medium',\n large: 'Large',\n },\n },\n footer: {\n summary: {\n count: 'of',\n records: 'Records:',\n selected: 'Records selected:',\n },\n },\n print: {\n error: 'An error occurred while creating a print preview',\n loading: 'Creating a print preview',\n tooltip: 'Print',\n warningDialog: {\n title: 'Extra loading time',\n description:\n 'Please note that printing a large amount of data may result in a slightly longer waiting time due to data loading.',\n checkboxVisibilityLabel: \"Don't show again\",\n cancelButtonText: 'Cancel',\n printButtonText: 'Print',\n },\n settingsDialog: {\n title: 'Print settings',\n size: 'Paper size',\n sizeA5: 'A5',\n sizeA4: 'A4',\n sizeA3: 'A3',\n sizeLetter: 'Letter',\n sizeLegal: 'Legal',\n orientation: 'Paper orientation',\n orientationLandscape: 'Landscape',\n orientationPortrait: 'Portrait',\n rows: 'Print rows',\n rowsAll: 'All',\n rowsSelected: 'Selected',\n layout: 'Page layout',\n layoutSplitGroups: 'New page for each [COLUMN]',\n },\n },\n rowHeight: {\n tooltip: 'Row height',\n sizes: {\n short: 'Short',\n medium: 'Medium',\n tall: 'Tall',\n extraTall: 'Extra tall',\n },\n },\n search: {\n excludeUnmatchedResults: 'Show only search results',\n placeholder: 'Search...',\n },\n shortcuts: {\n tooltip: 'View keyboard shortcuts',\n search: 'Search',\n filter: 'Filter',\n previousRow: 'Previous row',\n nextRow: 'Next row',\n editCell: 'Edit cell',\n previousColumn: 'Previous column',\n nextColumn: 'Next column',\n rowClick: 'Activate current row',\n selectRow: 'Select current row',\n selectAllRows: 'Select all rows',\n expandRow: 'Expand current row',\n collapseRow: 'Collapse current row',\n },\n otherOptions: {\n tooltip: 'Table settings',\n },\n validation: {\n index: 'Index',\n alert: {\n unsavedEntries: (count = 1) => (count === 1 ? 'unsaved entry:' : 'unsaved entries:'),\n incompleteAndHavntBeenSaved: (count = 1) =>\n count === 1 ? 'is incomplete and haven’t been saved.' : 'are incomplete and haven’t been saved.',\n },\n resetFiltersDialog: {\n title: 'Row is hidden',\n description: 'The row is hidden due to filtering.',\n cancel: 'Cancel',\n confirm: 'Remove filters',\n },\n },\n },\n searchInput: {\n button: 'Search',\n findNext: 'Next',\n findPrevious: 'Previous',\n placeholder: 'Search...',\n clear: 'Clear',\n },\n select: {\n allOptionsSelected: 'All',\n },\n select2: {\n allSelect: 'Select all',\n allDeselect: 'Deselect all',\n cancel: 'Cancel',\n chooseColor: 'Pick a color',\n create: 'Create',\n delete: 'Delete',\n save: 'Save',\n search: 'Search...',\n searchOrCreate: 'Search or create...',\n selectAll: 'Select all',\n selectAllResults: 'Select all results',\n deselectAll: 'Deselect all',\n deselectAllResults: 'Deselect all results',\n },\n toasts: {\n dismiss: 'Dismiss',\n },\n tour: {\n back: 'Back',\n close: 'Close',\n skip: 'Close and complete',\n last: 'Done',\n next: 'Next',\n open: 'Open',\n },\n drawer: {\n close: 'Close',\n },\n};\n\nexport const defaultLocalizationContext: Localization = {\n locale: 'en-GB',\n texts: defaultLocalisationTexts,\n formatting: {\n date: 'dd.mm.yy',\n },\n};\n\nexport const LocalizationContext = React.createContext<Localization>(defaultLocalizationContext);\nexport interface LocalizationProviderProps {\n children: React.ReactNode;\n localization?: Localization;\n}\nexport const LocalizationProvider: React.FC<LocalizationProviderProps> = ({ localization, children }) => {\n return (\n <LocalizationContext.Provider value={localization ?? defaultLocalizationContext}>{children}</LocalizationContext.Provider>\n );\n};\n\nexport const useLocalization = () => React.useContext(LocalizationContext);\n"],"names":["defaultLocalisationTexts","banner","close","calendar","months","weekdaysShort","weekdays","actions","previousMonth","nextMonth","previousYear","nextYear","today","combobox","tooltip","datepicker","clear","expand","shortcuts","dialog","drag","hanger","header","addAgreement","logout","more","new","search","listbox","loading","empty","allOption","pagination","label","pageSize","showingXofYofTotal","firstPage","firstPageWithShortcut","previousPage","previousPageWithShortcut","nextPage","nextPageWithShortcut","lastPage","lastPageWithShortcut","pageX","table","edit","copy","del","newSubRow","table3","columns","expansion","collapse","collapseAll","expandAll","menu","editFilter","filter","freezeFirstColumn","freezeUptoColumn","freezeColumns","count","gotoRow","hideColumn","unfreezeColumns","sorting","sortingOrder","ascending","descending","unsorted","resize","select","deselect","deselectAll","selectAll","columnSettings","button","noResults","editing","save","exit","buttons","rowIndicator","rowWillMove","rowWillBeHidden","rowWillMoveReasonSearch","rowWillMoveReasonFilter","rowWillMoveReasonSorting","saving","progress","complete","clearChangesConfirmationDialog","title","description","cancel","confirm","filters","addFilter","clearFilters","comparators","contains","doesNotContain","isEqualTo","isNotEqualTo","isGreaterThan","isLessThan","isBetween","isOneOf","isNoneOf","isAllOf","isEmpty","isNotEmpty","isBefore","isAfter","isOnOrBefore","isOnOrAfter","isLessThanOrEqualTo","isGreaterThanOrEqualTo","hasAnyOf","hasAllOf","hasNoneOf","conditions","and","where","emptyFilter","condition","value","hiddenColumn","hiddenGroupedColumn","total","fontSize","sizes","small","medium","large","footer","summary","records","selected","print","error","warningDialog","checkboxVisibilityLabel","cancelButtonText","printButtonText","settingsDialog","size","sizeA5","sizeA4","sizeA3","sizeLetter","sizeLegal","orientation","orientationLandscape","orientationPortrait","rows","rowsAll","rowsSelected","layout","layoutSplitGroups","rowHeight","short","tall","extraTall","excludeUnmatchedResults","placeholder","previousRow","nextRow","editCell","previousColumn","nextColumn","rowClick","selectRow","selectAllRows","expandRow","collapseRow","otherOptions","validation","index","alert","unsavedEntries","incompleteAndHavntBeenSaved","resetFiltersDialog","searchInput","findNext","findPrevious","allOptionsSelected","select2","allSelect","allDeselect","chooseColor","create","delete","searchOrCreate","selectAllResults","deselectAllResults","toasts","dismiss","tour","back","skip","last","next","open","drawer","defaultLocalizationContext","locale","texts","formatting","date","LocalizationContext","React","LocalizationProvider","localization","children","Provider","useLocalization"],"mappings":";;MAwEaA,wBAAwB,GAAG;EACpCC,MAAM,EAAE;IACJC,KAAK,EAAE;GACV;EACDC,QAAQ,EAAE;IACNC,MAAM,EAAE,CACJ,SAAS,EACT,UAAU,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,CACb;IACDC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IAChEC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC;IACxFC,OAAO,EAAE;MACLC,aAAa,EAAE,gBAAgB;MAC/BC,SAAS,EAAE,YAAY;MACvBC,YAAY,EAAE,eAAe;M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ACDC,MAAM,EAAE;IACJC,OAAO,EAAE;GACZ;EACDC,IAAI,EAAE;IACFC,IAAI,EAAE,MAAM;IACZtM,KAAK,EAAE,OAAO;IACduM,IAAI,EAAE,oBAAoB;IAC1BC,IAAI,EAAE,MAAM;IACZC,IAAI,EAAE,MAAM;IACZC,IAAI,EAAE;GACT;EACDC,MAAM,EAAE;IACJ3M,KAAK,EAAE;;;MAIF4M,0BAA0B,GAAiB;EACpDC,MAAM,EAAE,OAAO;EACfC,KAAK,EAAEhN,wBAAwB;EAC/BiN,UAAU,EAAE;IACRC,IAAI,EAAE;;;MAIDC,mBAAmB,gBAAGC,aAAmB,CAAeN,0BAA0B;MAKlFO,oBAAoB,GAAwCA,CAAC;EAAEC,YAAY;EAAEC;CAAU;EAChG,oBACIH,cAACD,mBAAmB,CAACK,QAAQ;IAACzF,KAAK,EAAEuF,YAAY,aAAZA,YAAY,cAAZA,YAAY,GAAIR;KAA6BS,QAAQ,CAAgC;AAElI;MAEaE,eAAe,GAAGA,MAAML,UAAgB,CAACD,mBAAmB;;;;"}
1
+ {"version":3,"file":"Localization.js","sources":["../../../../../../../src/components/Provider/Localization.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Locale } from '../../types';\nimport { CalendarTexts } from '../Calendar/Calendar';\nimport { ComboboxTexts } from '../Combobox/Combobox';\nimport { DialogTexts } from '../Dialog/Dialog';\nimport { PaginationTexts } from '../Pagination/Pagination';\nimport { ListboxTexts } from '../Listbox/Listbox';\nimport { ToastsTexts } from '../Toast/Toast';\nimport { DatepickerTexts } from '../Datepicker/Datepicker';\nimport { HeaderTexts } from '../Header/Header';\nimport { HangerTexts } from '../Hanger/Hanger';\nimport { SelectTexts } from '../Select/Select';\nimport { TourTexts } from '../Tour/Tour';\nimport { LegacyTableTexts } from '../Table/Table';\nimport { Table3Texts } from '../Table3/types';\nimport { SearchInputTexts } from '../SearchInput/SearchInput';\nimport { Select2Texts } from '../Select2/Select2';\nimport { BannerTexts } from '../Banner/Banner';\nimport { DrawerTexts } from '../Drawer/Drawer';\nimport { TableTexts } from '../../primitives/Table/types';\n\nexport type LocalizationTexts = {\n /** Localized texts and aria-labels for [Banner](component:banner) component */\n banner: BannerTexts;\n /** Localized texts and aria-labels for [Calendar](component:calendar) component */\n calendar: CalendarTexts;\n /** Localized texts and aria-labels for [Combobox](component:combobox) component */\n combobox: ComboboxTexts;\n /** Localized texts and aria-labels for [DatePicker](component:datepicker) component */\n datepicker: DatepickerTexts;\n /** Localized texts and aria-labels for [Dialog](component:dialog) component */\n dialog: DialogTexts;\n /** Localized texts and aria-labels for [Hanger](component:hanger) component */\n hanger: HangerTexts;\n /** Localized texts and aria-labels for [Header](component:header) component */\n header: HeaderTexts;\n /** Localized texts and aria-labels for [Listbox](component:listbox) component */\n listbox: ListboxTexts;\n /** Localized texts and aria-labels for [Pagination](component:pagination) component */\n pagination: PaginationTexts;\n /** Localized texts and aria-labels for [Table](component:table) component */\n legacyTable: LegacyTableTexts;\n /** Localized texts and aria-labels for [Table](primitive:table) component */\n table: TableTexts;\n /** Localized texts and aria-labels for [Table3](component:table3) component */\n table3: Table3Texts;\n /** Localized texts and aria-labels for [SearchInput](component:searchinput) component */\n searchInput: SearchInputTexts;\n /** Localized texts and aria-labels for [Select](component:select) component */\n select: SelectTexts;\n /** Localized texts and aria-labels for [Select2](component:select2) component */\n select2: Select2Texts;\n /** Localized texts and aria-labels for [Toast](component:toast) component */\n toasts: ToastsTexts;\n /** Localized texts and aria-labels for [Tour](component:tour) component */\n tour: TourTexts;\n /** Localized texts and aria-labels for [Drawer](component:drawer) component */\n drawer: DrawerTexts;\n};\n\nexport type Localization = {\n /**\n * Provide the language code used in application.\n * Default value is `en-GB`\n */\n locale: Locale;\n /** Provide the texts and aria-labels for components used within the provider */\n texts: LocalizationTexts;\n /** Provide the formatting */\n formatting: {\n /** Default value is `dd.mm.yy` */\n date: string;\n };\n};\n\nexport const defaultLocalisationTexts = {\n banner: {\n close: 'Close',\n },\n calendar: {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n actions: {\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n previousYear: 'Previous year',\n nextYear: 'Next year',\n today: 'Today',\n },\n },\n combobox: {\n tooltip: 'Search in list',\n },\n datepicker: {\n calendar: 'Calendar',\n clear: 'Clear',\n expand: 'Show calendar',\n shortcuts: 'Shortcuts',\n },\n dialog: {\n close: 'Close',\n drag: 'Drag',\n },\n hanger: {\n close: 'Close',\n },\n header: {\n addAgreement: 'Add agreement',\n logout: 'Log off',\n more: 'More',\n new: 'New',\n search: 'Search for agreement...',\n },\n listbox: {\n loading: 'Loading results...',\n empty: 'No results found',\n allOption: 'All',\n },\n pagination: {\n label: 'Pagination',\n pageSize: 'Items per page',\n showingXofYofTotal: 'Showing [X] - [Y] of [total]',\n actions: {\n firstPage: 'Goto first page',\n firstPageWithShortcut: 'Goto first page (Home)',\n previousPage: 'Goto previous page',\n previousPageWithShortcut: 'Goto previous page (Page Up)',\n nextPage: 'Goto next page',\n nextPageWithShortcut: 'Goto next page (Page Down)',\n lastPage: 'Goto last page',\n lastPageWithShortcut: 'Goto last page (End)',\n pageX: 'Goto page [X]',\n },\n },\n legacyTable: {\n actions: 'Other actions',\n edit: 'Edit (e)',\n copy: 'Copy (c)',\n del: 'Delete (del)',\n newSubRow: 'New row (shift + n)',\n loading: 'Loading...',\n },\n table: {\n columns: {\n actions: {\n tooltip: 'Row actions',\n },\n drag: {\n tooltip: 'Drag row',\n },\n expansion: {\n collapse: 'Collapse row',\n collapseAll: 'Collapse all rows',\n expand: 'Expand row',\n expandAll: 'Expand all rows',\n },\n menu: {\n editFilter: 'Edit filter',\n filter: 'Filter',\n freezeFirstColumn: 'Freeze the first column',\n freezeUptoColumn: `Freeze first [TOTAL] columns`,\n gotoRow: 'Go to',\n hideColumn: 'Hide column',\n unfreezeColumns: 'Unfreeze all columns',\n sorting: 'Sorting',\n sortingOrder: {\n ascending: 'Ascending order',\n descending: 'Descending order',\n unsorted: 'No sorting',\n },\n },\n resize: {\n tooltip: 'Resize column',\n },\n select: {\n deselect: 'Deselect row',\n deselectAll: 'Deselect all rows',\n select: 'Select row',\n selectAll: 'Select all rows',\n },\n },\n columnSettings: {\n search: 'Search column...',\n tooltip: 'Column settings',\n button: 'Column settings',\n noResults: 'No results',\n },\n filters: {\n button: 'Filters',\n buttons: {\n addFilter: 'Add new filter',\n clearFilters: 'Clear all filters',\n },\n comparators: {\n contains: 'Contains',\n doesNotContain: 'Does not contain',\n isEqualTo: 'Is',\n isNotEqualTo: 'Is not',\n isGreaterThan: 'Is greater than',\n isLessThan: 'Is less than',\n isBetween: 'Is between',\n isOneOf: 'Is one of',\n isNoneOf: 'Is none of',\n isAllOf: 'Is all of',\n isEmpty: 'Is empty',\n isNotEmpty: 'Is not empty',\n isBefore: 'Is before',\n isAfter: 'Is after',\n isOnOrBefore: 'Is on or before',\n isOnOrAfter: 'Is on or after',\n isLessThanOrEqualTo: 'Is less than or equal to',\n isGreaterThanOrEqualTo: 'Is greater than or equal to',\n hasAnyOf: 'Has any of',\n hasAllOf: 'Has all of',\n hasNoneOf: 'Has none of',\n },\n conditions: {\n and: 'And',\n where: 'Where',\n },\n emptyFilter: {\n condition: 'Condition',\n value: 'Value',\n },\n hiddenColumn: 'Hidden column',\n hiddenGroupedColumn: 'Hidden grouped column',\n tooltip: 'Apply filters',\n total: 'Viewing [CURRENT] of [TOTAL]',\n },\n fontSize: {\n tooltip: 'Font size',\n sizes: {\n small: 'Small',\n medium: 'Medium',\n large: 'Large',\n },\n },\n footer: {\n summary: {\n count: 'of',\n records: 'Records:',\n selected: 'Records selected:',\n },\n },\n print: {\n error: 'An error occurred while creating a print preview',\n loading: 'Creating a print preview',\n tooltip: 'Print',\n warningDialog: {\n title: 'Extra loading time',\n description:\n 'Please note that printing a large amount of data may result in a slightly longer waiting time due to data loading.',\n checkboxVisibilityLabel: \"Don't show again\",\n cancelButtonText: 'Cancel',\n printButtonText: 'Print',\n },\n settingsDialog: {\n title: 'Print settings',\n size: 'Paper size',\n sizeA5: 'A5',\n sizeA4: 'A4',\n sizeA3: 'A3',\n sizeLetter: 'Letter',\n sizeLegal: 'Legal',\n orientation: 'Paper orientation',\n orientationLandscape: 'Landscape',\n orientationPortrait: 'Portrait',\n rows: 'Print rows',\n rowsAll: 'All',\n rowsSelected: 'Selected',\n layout: 'Page layout',\n layoutSplitGroups: 'New page for each [COLUMN]',\n },\n },\n rowHeight: {\n tooltip: 'Row height',\n sizes: {\n short: 'Short',\n medium: 'Medium',\n tall: 'Tall',\n extraTall: 'Extra tall',\n },\n },\n search: {\n excludeUnmatchedResults: 'Show only search results',\n placeholder: 'Search...',\n },\n otherOptions: {\n tooltip: 'Table settings',\n },\n },\n table3: {\n editing: {\n actions: {\n tooltip: 'Row actions',\n save: 'Save',\n clear: 'Clear changes',\n exit: 'Exit edit mode',\n },\n buttons: {\n edit: {\n tooltip: 'Edit table',\n },\n },\n clearChangesConfirmationDialog: {\n title: 'Discard changes',\n description: 'Are you sure you want to discard changes? Your changes will be lost.',\n cancel: 'Continue editing',\n confirm: 'Discard',\n },\n rowIndicator: {\n rowWillMove: 'Row will move due to sorting',\n rowWillBeHidden: 'Row will hide due to filtering',\n rowWillMoveReasonSearch:\n 'Due to a search filter applied to this table, this row will be hidden as soon as you select another row',\n rowWillMoveReasonFilter:\n \"Due to a filter applied to the column '[COLUMN]', this row will be hidden as soon as you select another row\",\n rowWillMoveReasonSorting:\n \"Due to sorting applied to the column '[COLUMN]', this row will move position as soon as you select another row\",\n },\n saving: {\n progress: 'Saving...',\n complete: 'Saved',\n },\n validation: {\n alert: {\n titleOne: '[COUNT] unsaved entry: ',\n titlePlural: '[COUNT] unsaved entries: ',\n messageOne: \"[COLUMN] [ROW] is incomplete and hasn't been saved.\",\n messagePlural: \"[COLUMN] [ROW] are incomplete and haven't been saved.\",\n messageRow: 'Row',\n messageAnd: ' and ',\n },\n resetFiltersDialog: {\n title: 'Row is hidden',\n description: 'The row is hidden due to filtering.',\n cancel: 'Cancel',\n confirm: 'Remove filters',\n },\n },\n },\n },\n searchInput: {\n button: 'Search',\n findNext: 'Next',\n findPrevious: 'Previous',\n placeholder: 'Search...',\n clear: 'Clear',\n },\n select: {\n allOptionsSelected: 'All',\n },\n select2: {\n allSelect: 'Select all',\n allDeselect: 'Deselect all',\n cancel: 'Cancel',\n chooseColor: 'Pick a color',\n create: 'Create',\n delete: 'Delete',\n save: 'Save',\n search: 'Search...',\n searchOrCreate: 'Search or create...',\n selectAll: 'Select all',\n selectAllResults: 'Select all results',\n deselectAll: 'Deselect all',\n deselectAllResults: 'Deselect all results',\n },\n toasts: {\n dismiss: 'Dismiss',\n },\n tour: {\n back: 'Back',\n close: 'Close',\n skip: 'Close and complete',\n last: 'Done',\n next: 'Next',\n open: 'Open',\n },\n drawer: {\n close: 'Close',\n },\n};\n\nexport const defaultLocalizationContext: Localization = {\n locale: 'en-GB',\n texts: defaultLocalisationTexts,\n formatting: {\n date: 'dd.mm.yy',\n },\n};\n\nexport const LocalizationContext = React.createContext<Localization>(defaultLocalizationContext);\nexport interface LocalizationProviderProps {\n children: React.ReactNode;\n localization?: Localization;\n}\nexport const LocalizationProvider: React.FC<LocalizationProviderProps> = ({ localization, children }) => {\n return (\n <LocalizationContext.Provider value={localization ?? defaultLocalizationContext}>{children}</LocalizationContext.Provider>\n );\n};\n\nexport const useLocalization = () => React.useContext(LocalizationContext);\n"],"names":["defaultLocalisationTexts","banner","close","calendar","months","weekdaysShort","weekdays","actions","previousMonth","nextMonth","previousYear","nextYear","today","combobox","tooltip","datepicker","clear","expand","shortcuts","dialog","drag","hanger","header","addAgreement","logout","more","new","search","listbox","loading","empty","allOption","pagination","label","pageSize","showingXofYofTotal","firstPage","firstPageWithShortcut","previousPage","previousPageWithShortcut","nextPage","nextPageWithShortcut","lastPage","lastPageWithShortcut","pageX","legacyTable","edit","copy","del","newSubRow","table","columns","expansion","collapse","collapseAll","expandAll","menu","editFilter","filter","freezeFirstColumn","freezeUptoColumn","gotoRow","hideColumn","unfreezeColumns","sorting","sortingOrder","ascending","descending","unsorted","resize","select","deselect","deselectAll","selectAll","columnSettings","button","noResults","filters","buttons","addFilter","clearFilters","comparators","contains","doesNotContain","isEqualTo","isNotEqualTo","isGreaterThan","isLessThan","isBetween","isOneOf","isNoneOf","isAllOf","isEmpty","isNotEmpty","isBefore","isAfter","isOnOrBefore","isOnOrAfter","isLessThanOrEqualTo","isGreaterThanOrEqualTo","hasAnyOf","hasAllOf","hasNoneOf","conditions","and","where","emptyFilter","condition","value","hiddenColumn","hiddenGroupedColumn","total","fontSize","sizes","small","medium","large","footer","summary","count","records","selected","print","error","warningDialog","title","description","checkboxVisibilityLabel","cancelButtonText","printButtonText","settingsDialog","size","sizeA5","sizeA4","sizeA3","sizeLetter","sizeLegal","orientation","orientationLandscape","orientationPortrait","rows","rowsAll","rowsSelected","layout","layoutSplitGroups","rowHeight","short","tall","extraTall","excludeUnmatchedResults","placeholder","otherOptions","table3","editing","save","exit","clearChangesConfirmationDialog","cancel","confirm","rowIndicator","rowWillMove","rowWillBeHidden","rowWillMoveReasonSearch","rowWillMoveReasonFilter","rowWillMoveReasonSorting","saving","progress","complete","validation","alert","titleOne","titlePlural","messageOne","messagePlural","messageRow","messageAnd","resetFiltersDialog","searchInput","findNext","findPrevious","allOptionsSelected","select2","allSelect","allDeselect","chooseColor","create","delete","searchOrCreate","selectAllResults","deselectAllResults","toasts","dismiss","tour","back","skip","last","next","open","drawer","defaultLocalizationContext","locale","texts","formatting","date","LocalizationContext","React","LocalizationProvider","localization","children","Provider","useLocalization"],"mappings":";;MA2EaA,wBAAwB,GAAG;EACpCC,MAAM,EAAE;IACJC,KAAK,EAAE;GAC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O,EAAE;GACZ;EACDC,IAAI,EAAE;IACFC,IAAI,EAAE,MAAM;IACZ/L,KAAK,EAAE,OAAO;IACdgM,IAAI,EAAE,oBAAoB;IAC1BC,IAAI,EAAE,MAAM;IACZC,IAAI,EAAE,MAAM;IACZC,IAAI,EAAE;GACT;EACDC,MAAM,EAAE;IACJpM,KAAK,EAAE;;;MAIFqM,0BAA0B,GAAiB;EACpDC,MAAM,EAAE,OAAO;EACfC,KAAK,EAAEzM,wBAAwB;EAC/B0M,UAAU,EAAE;IACRC,IAAI,EAAE;;;MAIDC,mBAAmB,gBAAGC,aAAmB,CAAeN,0BAA0B;MAKlFO,oBAAoB,GAAwCA,CAAC;EAAEC,YAAY;EAAEC;CAAU;EAChG,oBACIH,cAACD,mBAAmB,CAACK,QAAQ;IAACrG,KAAK,EAAEmG,YAAY,aAAZA,YAAY,cAAZA,YAAY,GAAIR;KAA6BS,QAAQ,CAAgC;AAElI;MAEaE,eAAe,GAAGA,MAAML,UAAgB,CAACD,mBAAmB;;;;"}
@@ -1,16 +1,7 @@
1
1
  import React__default from 'react';
2
- import { useMergedRef } from '../../hooks/useMergedRef.js';
3
- import { FocusScope } from '@react-aria/focus';
4
2
  import { fixedForwardRef } from '../../types.js';
5
3
  import { useReport } from './useReport.js';
6
- import { Header } from './components/Header/Header.js';
7
- import { Body } from './components/Body/Body.js';
8
- import { Footer } from './components/Footer/Footer.js';
9
- import { Toolbar } from './components/Toolbar/Toolbar.js';
10
- import { useStylesheet } from './styles/useStylesheet.js';
11
- import { useTableRenderer } from './util/useTableRenderer.js';
12
- import { useTableGlobalShortcuts } from './util/useTableGlobalShortcuts.js';
13
- import { EmptyStateBody } from './components/Body/EmptyStateBody.js';
4
+ import { Table } from '../../primitives/Table/Core/Table.js';
14
5
 
15
6
  function Column(_) {
16
7
  return null;
@@ -19,47 +10,13 @@ function Group(_) {
19
10
  return null;
20
11
  }
21
12
  const Report = /*#__PURE__*/fixedForwardRef(function Report(props, ref) {
22
- var _report$state$groupin, _renderer$rows;
23
- const tableRef = useMergedRef(ref);
24
- const report = useReport(props, tableRef);
25
- const renderer = useTableRenderer(report.instance, tableRef, props.defaultRowActiveIndex);
26
- const stylesheet = useStylesheet(report.id, report.instance);
27
- useTableGlobalShortcuts(report.instance, tableRef, renderer.scrollToIndex);
28
- const handleFocus = report.meta.rowActive.rowActiveIndex === undefined ? event => {
29
- report.meta.rowActive.handleFocus(event, report.meta.length, renderer.scrollToIndex);
30
- } : undefined;
31
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, stylesheet, /*#__PURE__*/React__default.createElement(Toolbar, {
32
- customSettings: props.customSettings,
33
- left: props.toolbarLeft,
34
- length: report.meta.length,
35
- right: props.toolbarRight,
36
- scrollToIndex: renderer.scrollToIndex,
37
- table: report.instance,
38
- tableId: report.id,
39
- tableRef: tableRef
40
- }), props.toolbarPanel ? /*#__PURE__*/React__default.createElement("div", {
41
- className: "mb-4"
42
- }, props.toolbarPanel) : undefined, /*#__PURE__*/React__default.createElement(FocusScope, null, /*#__PURE__*/React__default.createElement("table", {
43
- id: report.id,
44
- "data-taco": "report",
45
- "data-table-font-size": report.meta.fontSize.size,
46
- "data-table-horizontally-scrolled": report.meta.columnFreezing.isHorizontallyScrolled ? true : undefined,
47
- "data-table-pause-hover": report.meta.rowActive.isHoverStatePaused ? true : undefined,
48
- "data-table-resizing": report.state.columnSizingInfo.isResizingColumn ? true : undefined,
49
- "data-table-row-height": report.meta.rowHeight.height,
50
- "data-table-grouped": !!((_report$state$groupin = report.state.grouping) !== null && _report$state$groupin !== void 0 && _report$state$groupin.length),
51
- onFocus: handleFocus,
52
- onScroll: report.meta.columnFreezing.handleScroll,
53
- ref: tableRef,
54
- tabIndex: -1
55
- }, /*#__PURE__*/React__default.createElement("thead", null, report.instance.getHeaderGroups().map(headerGroup => ( /*#__PURE__*/React__default.createElement("tr", {
56
- key: headerGroup.id
57
- }, headerGroup.headers.map(Header))))), (_renderer$rows = renderer.rows) !== null && _renderer$rows !== void 0 && _renderer$rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Body, {
58
- table: report.instance,
59
- style: renderer.style
60
- }, renderer.rows), report.meta.footer.isEnabled ? ( /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, report.instance.getFooterGroups()[0].headers.map(Footer)))) : null)) : ( /*#__PURE__*/React__default.createElement(EmptyStateBody, {
61
- emptyState: props.emptyState
62
- })))));
13
+ const report = useReport(props, ref);
14
+ return /*#__PURE__*/React__default.createElement(Table, null, /*#__PURE__*/React__default.createElement(Table.Toolbar, {
15
+ table: report
16
+ }), /*#__PURE__*/React__default.createElement(Table.Grid, {
17
+ "data-taco": "table-report",
18
+ table: report
19
+ }));
63
20
  });
64
21
  Report.Column = Column;
65
22
  Report.Group = Group;
@@ -1 +1 @@
1
- {"version":3,"file":"Report.js","sources":["../../../../../../../src/components/Report/Report.tsx"],"sourcesContent":["import React from 'react';\nimport { FocusScope } from '@react-aria/focus';\nimport { fixedForwardRef } from '../../types';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { useReport } from './useReport';\nimport { ReportColumnProps, ReportGroupProps, ReportProps } from './types';\nimport { Header } from './components/Header/Header';\nimport { Body } from './components/Body/Body';\nimport { Footer } from './components/Footer/Footer';\nimport { Toolbar } from './components/Toolbar/Toolbar';\nimport { TableRef } from '../../primitives/Table/types';\nimport { useStylesheet } from './styles/useStylesheet';\nimport { useTableRenderer } from './util/useTableRenderer';\nimport { useTableGlobalShortcuts } from './util/useTableGlobalShortcuts';\nimport { EmptyStateBody } from './components/Body/EmptyStateBody';\nimport './style.css';\n\nfunction Column<TType = unknown>(_: ReportColumnProps<TType>) {\n return null;\n}\n\nfunction Group(_: ReportGroupProps) {\n return null;\n}\n\nexport const Report = fixedForwardRef<TableRef, ReportProps>(function Report<TType = unknown>(\n props: ReportProps<TType>,\n ref: React.Ref<TableRef>\n) {\n const tableRef = useMergedRef<TableRef>(ref);\n const report = useReport<TType>(props, tableRef);\n const renderer = useTableRenderer<TType>(report.instance, tableRef, props.defaultRowActiveIndex);\n const stylesheet = useStylesheet(report.id, report.instance);\n useTableGlobalShortcuts(report.instance, tableRef, renderer.scrollToIndex);\n\n const handleFocus =\n report.meta.rowActive.rowActiveIndex === undefined\n ? (event: React.FocusEvent) => {\n report.meta.rowActive.handleFocus(event, report.meta.length, renderer.scrollToIndex);\n }\n : undefined;\n\n return (\n <>\n {stylesheet}\n <Toolbar\n customSettings={props.customSettings}\n left={props.toolbarLeft}\n length={report.meta.length}\n right={props.toolbarRight}\n scrollToIndex={renderer.scrollToIndex}\n table={report.instance}\n tableId={report.id}\n tableRef={tableRef}\n />\n {props.toolbarPanel ? <div className=\"mb-4\">{props.toolbarPanel}</div> : undefined}\n <FocusScope>\n <table\n id={report.id}\n data-taco=\"report\"\n data-table-font-size={report.meta.fontSize.size}\n data-table-horizontally-scrolled={report.meta.columnFreezing.isHorizontallyScrolled ? true : undefined}\n data-table-pause-hover={report.meta.rowActive.isHoverStatePaused ? true : undefined}\n data-table-resizing={report.state.columnSizingInfo.isResizingColumn ? true : undefined}\n data-table-row-height={report.meta.rowHeight.height}\n data-table-grouped={!!report.state.grouping?.length}\n onFocus={handleFocus}\n onScroll={report.meta.columnFreezing.handleScroll}\n ref={tableRef}\n tabIndex={-1}>\n <thead>\n {report.instance.getHeaderGroups().map(headerGroup => (\n <tr key={headerGroup.id}>{headerGroup.headers.map(Header)}</tr>\n ))}\n </thead>\n {renderer.rows?.length ? (\n <>\n <Body table={report.instance} style={renderer.style}>\n {renderer.rows}\n </Body>\n {report.meta.footer.isEnabled ? (\n <tfoot>\n <tr>{report.instance.getFooterGroups()[0].headers.map(Footer)}</tr>\n </tfoot>\n ) : null}\n </>\n ) : (\n <EmptyStateBody emptyState={props.emptyState} />\n )}\n </table>\n </FocusScope>\n </>\n );\n}) as (<TType = unknown>(props: ReportProps<TType> & React.RefAttributes<TableRef>) => JSX.Element) & {\n Column: typeof Column;\n Group: typeof Group;\n};\nReport.Column = Column;\nReport.Group = Group;\n\nexport * from './types';\n"],"names":["Column","_","Group","Report","fixedForwardRef","props","ref","tableRef","useMergedRef","report","useReport","renderer","useTableRenderer","instance","defaultRowActiveIndex","stylesheet","useStylesheet","id","useTableGlobalShortcuts","scrollToIndex","handleFocus","meta","rowActive","rowActiveIndex","undefined","event","length","React","Toolbar","customSettings","left","toolbarLeft","right","toolbarRight","table","tableId","toolbarPanel","className","FocusScope","fontSize","size","columnFreezing","isHorizontallyScrolled","isHoverStatePaused","state","columnSizingInfo","isResizingColumn","rowHeight","height","_report$state$groupin","grouping","onFocus","onScroll","handleScroll","tabIndex","getHeaderGroups","map","headerGroup","key","headers","Header","_renderer$rows","rows","Body","style","footer","isEnabled","getFooterGroups","Footer","EmptyStateBody","emptyState"],"mappings":";;;;;;;;;;;;;;AAiBA,SAASA,MAAMA,CAAkBC,CAA2B;EACxD,OAAO,IAAI;AACf;AAEA,SAASC,KAAKA,CAACD,CAAmB;EAC9B,OAAO,IAAI;AACf;MAEaE,MAAM,gBAAGC,eAAe,CAAwB,SAASD,MAAMA,CACxEE,KAAyB,EACzBC,GAAwB;;EAExB,MAAMC,QAAQ,GAAGC,YAAY,CAAWF,GAAG,CAAC;EAC5C,MAAMG,MAAM,GAAGC,SAAS,CAAQL,KAAK,EAAEE,QAAQ,CAAC;EAChD,MAAMI,QAAQ,GAAGC,gBAAgB,CAAQH,MAAM,CAACI,QAAQ,EAAEN,QAAQ,EAAEF,KAAK,CAACS,qBAAqB,CAAC;EAChG,MAAMC,UAAU,GAAGC,aAAa,CAACP,MAAM,CAACQ,EAAE,EAAER,MAAM,CAACI,QAAQ,CAAC;EAC5DK,uBAAuB,CAACT,MAAM,CAACI,QAAQ,EAAEN,QAAQ,EAAEI,QAAQ,CAACQ,aAAa,CAAC;EAE1E,MAAMC,WAAW,GACbX,MAAM,CAACY,IAAI,CAACC,SAAS,CAACC,cAAc,KAAKC,SAAS,GAC3C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AE3C,MAAM,CAACY,IAAI,CAACoB,cAAc,CAACY,YAAY;IACjD/C,GAAG,EAAEC,QAAQ;IACb+C,QAAQ,EAAE,CAAC;kBACX3B,4CACKlB,MAAM,CAACI,QAAQ,CAAC0C,eAAe,EAAE,CAACC,GAAG,CAACC,WAAW,mBAC9C9B;IAAI+B,GAAG,EAAED,WAAW,CAACxC;KAAKwC,WAAW,CAACE,OAAO,CAACH,GAAG,CAACI,MAAM,CAAC,CAAM,CAClE,CAAC,CACE,EACP,CAAAC,cAAA,GAAAlD,QAAQ,CAACmD,IAAI,cAAAD,cAAA,eAAbA,cAAA,CAAenC,MAAM,kBAClBC,yEACIA,6BAACoC,IAAI;IAAC7B,KAAK,EAAEzB,MAAM,CAACI,QAAQ;IAAEmD,KAAK,EAAErD,QAAQ,CAACqD;KACzCrD,QAAQ,CAACmD,IAAI,CACX,EACNrD,MAAM,CAACY,IAAI,CAAC4C,MAAM,CAACC,SAAS,kBACzBvC,yDACIA,yCAAKlB,MAAM,CAACI,QAAQ,CAACsD,eAAe,EAAE,CAAC,CAAC,CAAC,CAACR,OAAO,CAACH,GAAG,CAACY,MAAM,CAAC,CAAM,CAC/D,IACR,IAAI,CACT,mBAEHzC,6BAAC0C,cAAc;IAACC,UAAU,EAAEjE,KAAK,CAACiE;IAAc,CACnD,CACG,CACC,CACd;AAEX,CAAC;AAIDnE,MAAM,CAACH,MAAM,GAAGA,MAAM;AACtBG,MAAM,CAACD,KAAK,GAAGA,KAAK;;;;"}
1
+ {"version":3,"file":"Report.js","sources":["../../../../../../../src/components/Report/Report.tsx"],"sourcesContent":["import React from 'react';\nimport { fixedForwardRef } from '../../types';\nimport { useReport } from './useReport';\nimport { Table } from '../../primitives/Table/Core/Table';\nimport { TableColumnProps, TableGroupProps, TableProps, TableRef } from '../../primitives/Table/types';\n\nfunction Column<TType = unknown>(_: TableColumnProps<TType>) {\n return null;\n}\n\nfunction Group(_: TableGroupProps) {\n return null;\n}\n\nexport const Report = fixedForwardRef<TableRef, TableProps>(function Report<TType = unknown>(\n props: TableProps<TType>,\n ref: React.Ref<TableRef>\n) {\n const report = useReport<TType>(props, ref);\n\n return (\n <Table>\n <Table.Toolbar<TType> table={report} />\n <Table.Grid<TType> data-taco=\"table-report\" table={report} />\n </Table>\n );\n}) as (<TType = unknown>(props: TableProps<TType> & React.RefAttributes<TableRef>) => JSX.Element) & {\n Column: typeof Column;\n Group: typeof Group;\n};\nReport.Column = Column;\nReport.Group = Group;\n"],"names":["Column","_","Group","Report","fixedForwardRef","props","ref","report","useReport","React","Table","Toolbar","table","Grid"],"mappings":";;;;;AAMA,SAASA,MAAMA,CAAkBC,CAA0B;EACvD,OAAO,IAAI;AACf;AAEA,SAASC,KAAKA,CAACD,CAAkB;EAC7B,OAAO,IAAI;AACf;MAEaE,MAAM,gBAAGC,eAAe,CAAuB,SAASD,MAAMA,CACvEE,KAAwB,EACxBC,GAAwB;EAExB,MAAMC,MAAM,GAAGC,SAAS,CAAQH,KAAK,EAAEC,GAAG,CAAC;EAE3C,oBACIG,6BAACC,KAAK,qBACFD,6BAACC,KAAK,CAACC,OAAO;IAAQC,KAAK,EAAEL;IAAU,eACvCE,6BAACC,KAAK,CAACG,IAAI;iBAAkB,cAAc;IAACD,KAAK,EAAEL;IAAU,CACzD;AAEhB,CAAC;AAIDJ,MAAM,CAACH,MAAM,GAAGA,MAAM;AACtBG,MAAM,CAACD,KAAK,GAAGA,KAAK;;;;"}
@@ -1,50 +1,13 @@
1
- import React__default from 'react';
2
- import cn from 'clsx';
3
- import { useTableManager } from '../../primitives/Table/useTableManager/useTableManager.js';
4
- import { Header, Cell } from './components/Internal/Actions.js';
5
- import { Header as Header$1, Cell as Cell$1 } from './components/Internal/Expansion.js';
6
- import { Header as Header$2, Cell as Cell$2 } from './components/Internal/Selection.js';
7
- import { useTableRowActiveListener } from './listeners/useTableRowActiveListener.js';
1
+ import { useTable } from '../../primitives/Table/Core/useTable.js';
2
+ import { DisplayRow } from '../../primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js';
3
+ import { DisplayCell } from '../../primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js';
8
4
 
5
+ const RENDERERS = {
6
+ row: DisplayRow,
7
+ cell: DisplayCell
8
+ };
9
9
  function useReport(props, ref) {
10
- const meta = {};
11
- const INTERNAL_COLUMNS = React__default.useMemo(() => ({
12
- rowActions: {
13
- header: Header,
14
- renderer: Cell,
15
- meta: {
16
- align: 'right',
17
- className: cn('print:opacity-0 !px-0 !pr-1 overflow-hidden [table_&]:group-[[data-row-active="true"]]/row:sticky [table[data-table-pause-hover="false"]_&]:group-hover/row:sticky right-0', 'group-[[data-row-active="true"][data-selected="false"]]/row:text-grey-200', 'group-[[data-row-selected="true"]]/row:text-blue-100', 'group-[[data-row-selected="false"]:hover]/row:text-grey-100'),
18
- header: ''
19
- }
20
- },
21
- rowExpansion: {
22
- header: Header$1,
23
- renderer: Cell$1,
24
- size: 40,
25
- meta: {
26
- align: 'center',
27
- header: '',
28
- headerClassName: '!p-0'
29
- }
30
- },
31
- rowSelection: {
32
- header: Header$2,
33
- renderer: Cell$2,
34
- size: 40,
35
- meta: {
36
- align: 'center',
37
- className: '!px-1',
38
- header: '',
39
- headerClassName: '!px-1'
40
- }
41
- }
42
- }), []);
43
- // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel
44
- const report = useTableManager(props, ref, meta, INTERNAL_COLUMNS);
45
- // listeners
46
- useTableRowActiveListener(report.instance, ref);
47
- return report;
10
+ return useTable(props, ref, RENDERERS);
48
11
  }
49
12
 
50
13
  export { useReport };
@@ -1 +1 @@
1
- {"version":3,"file":"useReport.js","sources":["../../../../../../../src/components/Report/useReport.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { useTableManager } from '../../primitives/Table/useTableManager/useTableManager';\nimport { ReportProps } from './types';\nimport { Header as RowActionsHeader, Cell as RowActionsCell } from './components/Internal/Actions';\nimport { Header as RowExpansionHeader, Cell as RowExpansionCell } from './components/Internal/Expansion';\nimport { Header as RowSelectHeader, Cell as RowSelectCell } from './components/Internal/Selection';\nimport { TableRef } from '../../primitives/Table/types';\nimport { useTableRowActiveListener } from './listeners/useTableRowActiveListener';\n\ntype ReportMeta = {};\n\nexport function useReport<TType>(props: ReportProps<TType>, ref: React.RefObject<TableRef>) {\n const meta: ReportMeta = {};\n const INTERNAL_COLUMNS = React.useMemo(\n () => ({\n rowActions: {\n header: RowActionsHeader,\n renderer: RowActionsCell,\n meta: {\n align: 'right',\n className: cn(\n 'print:opacity-0 !px-0 !pr-1 overflow-hidden [table_&]:group-[[data-row-active=\"true\"]]/row:sticky [table[data-table-pause-hover=\"false\"]_&]:group-hover/row:sticky right-0',\n 'group-[[data-row-active=\"true\"][data-selected=\"false\"]]/row:text-grey-200',\n 'group-[[data-row-selected=\"true\"]]/row:text-blue-100',\n 'group-[[data-row-selected=\"false\"]:hover]/row:text-grey-100'\n ),\n header: '',\n },\n },\n rowExpansion: {\n header: RowExpansionHeader,\n renderer: RowExpansionCell,\n size: 40,\n meta: {\n align: 'center',\n header: '',\n headerClassName: '!p-0',\n },\n },\n rowSelection: {\n header: RowSelectHeader,\n renderer: RowSelectCell,\n size: 40,\n meta: {\n align: 'center',\n className: '!px-1',\n header: '',\n headerClassName: '!px-1',\n },\n },\n }),\n []\n );\n\n // @ts-expect-error: fixing type issue while report and table3 TableMeta definitions live in parallel\n const report = useTableManager<TType, ReportMeta>(props, ref, meta, INTERNAL_COLUMNS);\n\n // listeners\n useTableRowActiveListener(report.instance, ref);\n\n return report;\n}\n"],"names":["useReport","props","ref","meta","INTERNAL_COLUMNS","React","useMemo","rowActions","header","RowActionsHeader","renderer","RowActionsCell","align","className","cn","rowExpansion","RowExpansionHeader","RowExpansionCell","size","headerClassName","rowSelection","RowSelectHeader","RowSelectCell","report","useTableManager","useTableRowActiveListener","instance"],"mappings":";;;;;;;;SAYgBA,SAASA,CAAQC,KAAyB,EAAEC,GAA8B;EACtF,MAAMC,IAAI,GAAe,EAAE;EAC3B,MAAMC,gBAAgB,GAAGC,cAAK,CAACC,OAAO,CAClC,OAAO;IACHC,UAAU,EAAE;MACRC,MAAM,EAAEC,MAAgB;MACxBC,QAAQ,EAAEC,IAAc;MACxBR,IAAI,EAAE;QACFS,KAAK,EAAE,OAAO;QACdC,SAAS,EAAEC,EAAE,CACT,4KAA4K,EAC5K,2EAA2E,EAC3E,sDAAsD,EACtD,6DAA6D,CAChE;QACDN,MAAM,EAAE;;KAEf;IACDO,YAAY,EAAE;MACVP,MAAM,EAAEQ,QAAkB;MAC1BN,QAAQ,EAAEO,MAAgB;MAC1BC,IAAI,EAAE,EAAE;MACRf,IAAI,EAAE;QACFS,KAAK,EAAE,QAAQ;QACfJ,MAAM,EAAE,EAAE;QACVW,eAAe,EAAE;;KAExB;IACDC,YAAY,EAAE;MACVZ,MAAM,EAAEa,QAAe;MACvBX,QAAQ,EAAEY,MAAa;MACvBJ,IAAI,EAAE,EAAE;MACRf,IAAI,EAAE;QACFS,KAAK,EAAE,QAAQ;QACfC,SAAS,EAAE,OAAO;QAClBL,MAAM,EAAE,EAAE;QACVW,eAAe,EAAE;;;GAG5B,CAAC,EACF,EAAE,CACL;;EAGD,MAAMI,MAAM,GAAGC,eAAe,CAAoBvB,KAAK,EAAEC,GAAG,EAAEC,IAAI,EAAEC,gBAAgB,CAAC;;EAGrFqB,yBAAyB,CAACF,MAAM,CAACG,QAAQ,EAAExB,GAAG,CAAC;EAE/C,OAAOqB,MAAM;AACjB;;;;"}
1
+ {"version":3,"file":"useReport.js","sources":["../../../../../../../src/components/Report/useReport.tsx"],"sourcesContent":["import React from 'react';\nimport { TableRef } from '../../primitives/Table/types';\nimport { useTable, useTableReturnValue } from '../../primitives/Table/Core/useTable';\nimport { DisplayRow } from '../../primitives/Table/Core/components/Row/BuiltIns/DisplayRow';\nimport { DisplayCell } from '../../primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell';\nimport { TableProps } from '../../primitives/Table/types';\n\nconst RENDERERS = {\n row: DisplayRow,\n cell: DisplayCell,\n};\n\nexport function useReport<TType>(props: TableProps<TType>, ref: React.Ref<TableRef>): useTableReturnValue<TType> {\n return useTable<TType>(props, ref, RENDERERS);\n}\n"],"names":["RENDERERS","row","DisplayRow","cell","DisplayCell","useReport","props","ref","useTable"],"mappings":";;;;AAOA,MAAMA,SAAS,GAAG;EACdC,GAAG,EAAEC,UAAU;EACfC,IAAI,EAAEC;CACT;SAEeC,SAASA,CAAQC,KAAwB,EAAEC,GAAwB;EAC/E,OAAOC,QAAQ,CAAQF,KAAK,EAAEC,GAAG,EAAEP,SAAS,CAAC;AACjD;;;;"}
@@ -176,7 +176,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
176
176
  (_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.focus();
177
177
  }
178
178
  };
179
- const selectOptions = searchQuery === '' ? flattenedChildren.map(child => child.key) : filteredChildren.map(child => isGroup(child) ? Array.isArray(child.props.children) && child.props.children.map(subChild => subChild.key) : child.key).flatMap(c => c) || [];
179
+ const selectOptions = searchQuery === '' ? flattenedChildren.map(child => child.props.value) : filteredChildren.map(child => isGroup(child) ? Array.isArray(child.props.children) && child.props.children.map(subChild => subChild.props.value) : child.props.value).flatMap(c => c) || [];
180
180
  const areAllSelected = Array.isArray(value) && selectOptions.every(option => value.includes(option));
181
181
  const selectAllText = React__default.useMemo(() => {
182
182
  if (searchQuery === '') {