@economic/taco 2.13.0 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. package/dist/components/Field/Field.d.ts +4 -2
  2. package/dist/components/Icon/components/Location.d.ts +3 -0
  3. package/dist/components/Icon/components/index.d.ts +1 -1
  4. package/dist/components/Input/Input.d.ts +1 -1
  5. package/dist/components/Menu/components/Item.d.ts +1 -1
  6. package/dist/components/Menu/components/Link.d.ts +1 -1
  7. package/dist/components/Navigation2/components/Link.d.ts +1 -1
  8. package/dist/components/Provider/Localization.d.ts +0 -113
  9. package/dist/components/Select2/components/Option.d.ts +2 -2
  10. package/dist/components/Select2/components/Search.d.ts +1 -1
  11. package/dist/components/Table3/components/columns/styles.d.ts +2 -2
  12. package/dist/components/Table3/components/toolbar/Filter/filters/components/Filter.d.ts +4 -4
  13. package/dist/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.d.ts +3 -2
  14. package/dist/components/Table3/components/toolbar/Filter/filters/components/Placeholder.d.ts +3 -2
  15. package/dist/components/Table3/components/toolbar/FontSize.d.ts +4 -0
  16. package/dist/components/Table3/hooks/useCssGrid.d.ts +2 -1
  17. package/dist/components/Table3/hooks/useTable.d.ts +1 -1
  18. package/dist/components/Table3/types.d.ts +1 -1
  19. package/dist/components/Tag/Tag.d.ts +1 -1
  20. package/dist/esm/packages/taco/src/components/Field/Field.js +6 -4
  21. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  22. package/dist/esm/packages/taco/src/components/Icon/components/Location.js +17 -0
  23. package/dist/esm/packages/taco/src/components/Icon/components/Location.js.map +1 -0
  24. package/dist/esm/packages/taco/src/components/Icon/components/index.js +2 -0
  25. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  26. package/dist/esm/packages/taco/src/components/Provider/Localization.js +0 -110
  27. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  28. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
  29. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +1 -1
  31. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Select2/components/Search.js +1 -1
  33. package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Table3/Table3.js +5 -4
  35. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +2 -5
  37. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
  38. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +1 -4
  39. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
  40. package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +6 -1
  42. package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +3 -2
  44. package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
  45. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +14 -2
  46. package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +2 -2
  48. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +15 -8
  49. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
  50. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js +2 -2
  51. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Filter.js.map +1 -1
  52. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js +12 -3
  53. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterColumn.js.map +1 -1
  54. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +0 -1
  55. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +1 -1
  56. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +5 -3
  57. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -1
  58. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Placeholder.js +2 -2
  59. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/Placeholder.js.map +1 -1
  60. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +9 -4
  61. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -1
  62. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +2 -3
  63. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +1 -1
  64. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +3 -2
  65. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -1
  66. package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +1 -1
  67. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +6 -7
  68. package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js.map +1 -1
  69. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +48 -0
  70. package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +1 -1
  71. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +4 -2
  72. package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +1 -1
  73. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js +6 -5
  74. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +1 -1
  75. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +11 -9
  76. package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -1
  77. package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
  78. package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
  79. package/dist/esm/packages/taco/src/index.js +1 -2
  80. package/dist/esm/packages/taco/src/index.js.map +1 -1
  81. package/dist/esm/packages/taco/src/utils/dom.js +1 -2
  82. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  83. package/dist/index.d.ts +0 -1
  84. package/dist/taco.cjs.development.js +485 -4052
  85. package/dist/taco.cjs.development.js.map +1 -1
  86. package/dist/taco.cjs.production.min.js +1 -1
  87. package/dist/taco.cjs.production.min.js.map +1 -1
  88. package/package.json +2 -2
  89. package/tailwind.config.js +3 -0
  90. package/types.json +13748 -32551
  91. package/dist/components/Table2/Table2.d.ts +0 -130
  92. package/dist/components/Table2/components/BatchActionsMenu.d.ts +0 -10
  93. package/dist/components/Table2/components/ColumnSettingsButton.d.ts +0 -6
  94. package/dist/components/Table2/components/EditModeButton.d.ts +0 -8
  95. package/dist/components/Table2/components/RowDensityButton.d.ts +0 -7
  96. package/dist/components/Table2/components/Search.d.ts +0 -3
  97. package/dist/components/Table2/components/ShortcutsGuideButton.d.ts +0 -7
  98. package/dist/components/Table2/components/column/Base.d.ts +0 -14
  99. package/dist/components/Table2/components/column/Cell.d.ts +0 -15
  100. package/dist/components/Table2/components/column/Footer.d.ts +0 -9
  101. package/dist/components/Table2/components/column/Header.d.ts +0 -11
  102. package/dist/components/Table2/components/column/Indicator.d.ts +0 -17
  103. package/dist/components/Table2/components/column/ValidationError.d.ts +0 -5
  104. package/dist/components/Table2/components/column/utils.d.ts +0 -3
  105. package/dist/components/Table2/components/filters/FiltersButton.d.ts +0 -7
  106. package/dist/components/Table2/components/filters/components/Column.d.ts +0 -11
  107. package/dist/components/Table2/components/filters/components/ColumnFilter.d.ts +0 -10
  108. package/dist/components/Table2/components/filters/components/Comparator.d.ts +0 -11
  109. package/dist/components/Table2/components/filters/components/EmptyFilter.d.ts +0 -13
  110. package/dist/components/Table2/components/filters/components/InferredControl.d.ts +0 -10
  111. package/dist/components/Table2/components/row/Context.d.ts +0 -24
  112. package/dist/components/Table2/components/row/ExpandedRow.d.ts +0 -6
  113. package/dist/components/Table2/components/row/Row.d.ts +0 -2
  114. package/dist/components/Table2/hooks/listeners/useActiveCellStateListener.d.ts +0 -3
  115. package/dist/components/Table2/hooks/listeners/useActiveRowStateListener.d.ts +0 -3
  116. package/dist/components/Table2/hooks/listeners/useColumnOffsetStateListener.d.ts +0 -3
  117. package/dist/components/Table2/hooks/listeners/useFilterStateListener.d.ts +0 -3
  118. package/dist/components/Table2/hooks/listeners/useRowSelectionListener.d.ts +0 -3
  119. package/dist/components/Table2/hooks/listeners/useSettingsStateListener.d.ts +0 -3
  120. package/dist/components/Table2/hooks/useActiveCell.d.ts +0 -26
  121. package/dist/components/Table2/hooks/useActiveRow.d.ts +0 -10
  122. package/dist/components/Table2/hooks/useColumnDefinitions.d.ts +0 -37
  123. package/dist/components/Table2/hooks/useEditMode.d.ts +0 -28
  124. package/dist/components/Table2/hooks/useGridTemplate.d.ts +0 -2
  125. package/dist/components/Table2/hooks/useTable.d.ts +0 -46
  126. package/dist/components/Table2/hooks/useTableShortcuts.d.ts +0 -2
  127. package/dist/components/Table2/hooks/useVirtualiser.d.ts +0 -23
  128. package/dist/components/Table2/types.d.ts +0 -148
  129. package/dist/components/Table2/utilities/cell.d.ts +0 -14
  130. package/dist/components/Table2/utilities/columns.d.ts +0 -16
  131. package/dist/components/Table2/utilities/filterFn.d.ts +0 -3
  132. package/dist/esm/packages/taco/src/components/Table2/Table2.js +0 -422
  133. package/dist/esm/packages/taco/src/components/Table2/Table2.js.map +0 -1
  134. package/dist/esm/packages/taco/src/components/Table2/components/BatchActionsMenu.js +0 -83
  135. package/dist/esm/packages/taco/src/components/Table2/components/BatchActionsMenu.js.map +0 -1
  136. package/dist/esm/packages/taco/src/components/Table2/components/ColumnSettingsButton.js +0 -116
  137. package/dist/esm/packages/taco/src/components/Table2/components/ColumnSettingsButton.js.map +0 -1
  138. package/dist/esm/packages/taco/src/components/Table2/components/EditModeButton.js +0 -81
  139. package/dist/esm/packages/taco/src/components/Table2/components/EditModeButton.js.map +0 -1
  140. package/dist/esm/packages/taco/src/components/Table2/components/RowDensityButton.js +0 -47
  141. package/dist/esm/packages/taco/src/components/Table2/components/RowDensityButton.js.map +0 -1
  142. package/dist/esm/packages/taco/src/components/Table2/components/Search.js +0 -62
  143. package/dist/esm/packages/taco/src/components/Table2/components/Search.js.map +0 -1
  144. package/dist/esm/packages/taco/src/components/Table2/components/column/Base.js +0 -32
  145. package/dist/esm/packages/taco/src/components/Table2/components/column/Base.js.map +0 -1
  146. package/dist/esm/packages/taco/src/components/Table2/components/column/Cell.js +0 -605
  147. package/dist/esm/packages/taco/src/components/Table2/components/column/Cell.js.map +0 -1
  148. package/dist/esm/packages/taco/src/components/Table2/components/column/Footer.js +0 -32
  149. package/dist/esm/packages/taco/src/components/Table2/components/column/Footer.js.map +0 -1
  150. package/dist/esm/packages/taco/src/components/Table2/components/column/Header.js +0 -243
  151. package/dist/esm/packages/taco/src/components/Table2/components/column/Header.js.map +0 -1
  152. package/dist/esm/packages/taco/src/components/Table2/components/column/Indicator.js +0 -73
  153. package/dist/esm/packages/taco/src/components/Table2/components/column/Indicator.js.map +0 -1
  154. package/dist/esm/packages/taco/src/components/Table2/components/column/ValidationError.js +0 -30
  155. package/dist/esm/packages/taco/src/components/Table2/components/column/ValidationError.js.map +0 -1
  156. package/dist/esm/packages/taco/src/components/Table2/components/column/utils.js +0 -39
  157. package/dist/esm/packages/taco/src/components/Table2/components/column/utils.js.map +0 -1
  158. package/dist/esm/packages/taco/src/components/Table2/components/filters/FiltersButton.js +0 -155
  159. package/dist/esm/packages/taco/src/components/Table2/components/filters/FiltersButton.js.map +0 -1
  160. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/Column.js +0 -31
  161. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/Column.js.map +0 -1
  162. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/ColumnFilter.js +0 -129
  163. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/ColumnFilter.js.map +0 -1
  164. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/Comparator.js +0 -68
  165. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/Comparator.js.map +0 -1
  166. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/EmptyFilter.js +0 -63
  167. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/EmptyFilter.js.map +0 -1
  168. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/InferredControl.js +0 -99
  169. package/dist/esm/packages/taco/src/components/Table2/components/filters/components/InferredControl.js.map +0 -1
  170. package/dist/esm/packages/taco/src/components/Table2/components/row/Context.js +0 -58
  171. package/dist/esm/packages/taco/src/components/Table2/components/row/Context.js.map +0 -1
  172. package/dist/esm/packages/taco/src/components/Table2/components/row/ExpandedRow.js +0 -36
  173. package/dist/esm/packages/taco/src/components/Table2/components/row/ExpandedRow.js.map +0 -1
  174. package/dist/esm/packages/taco/src/components/Table2/components/row/Row.js +0 -44
  175. package/dist/esm/packages/taco/src/components/Table2/components/row/Row.js.map +0 -1
  176. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useActiveRowStateListener.js +0 -19
  177. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useActiveRowStateListener.js.map +0 -1
  178. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useColumnOffsetStateListener.js +0 -28
  179. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useColumnOffsetStateListener.js.map +0 -1
  180. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useFilterStateListener.js +0 -12
  181. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useFilterStateListener.js.map +0 -1
  182. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useRowSelectionListener.js +0 -18
  183. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useRowSelectionListener.js.map +0 -1
  184. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useSettingsStateListener.js +0 -25
  185. package/dist/esm/packages/taco/src/components/Table2/hooks/listeners/useSettingsStateListener.js.map +0 -1
  186. package/dist/esm/packages/taco/src/components/Table2/hooks/useActiveRow.js +0 -33
  187. package/dist/esm/packages/taco/src/components/Table2/hooks/useActiveRow.js.map +0 -1
  188. package/dist/esm/packages/taco/src/components/Table2/hooks/useColumnDefinitions.js +0 -122
  189. package/dist/esm/packages/taco/src/components/Table2/hooks/useColumnDefinitions.js.map +0 -1
  190. package/dist/esm/packages/taco/src/components/Table2/hooks/useEditMode.js +0 -112
  191. package/dist/esm/packages/taco/src/components/Table2/hooks/useEditMode.js.map +0 -1
  192. package/dist/esm/packages/taco/src/components/Table2/hooks/useGridTemplate.js +0 -34
  193. package/dist/esm/packages/taco/src/components/Table2/hooks/useGridTemplate.js.map +0 -1
  194. package/dist/esm/packages/taco/src/components/Table2/hooks/useTable.js +0 -222
  195. package/dist/esm/packages/taco/src/components/Table2/hooks/useTable.js.map +0 -1
  196. package/dist/esm/packages/taco/src/components/Table2/hooks/useTableShortcuts.js +0 -46
  197. package/dist/esm/packages/taco/src/components/Table2/hooks/useTableShortcuts.js.map +0 -1
  198. package/dist/esm/packages/taco/src/components/Table2/hooks/useVirtualiser.js +0 -48
  199. package/dist/esm/packages/taco/src/components/Table2/hooks/useVirtualiser.js.map +0 -1
  200. package/dist/esm/packages/taco/src/components/Table2/types.js +0 -18
  201. package/dist/esm/packages/taco/src/components/Table2/types.js.map +0 -1
  202. package/dist/esm/packages/taco/src/components/Table2/utilities/cell.js +0 -41
  203. package/dist/esm/packages/taco/src/components/Table2/utilities/cell.js.map +0 -1
  204. package/dist/esm/packages/taco/src/components/Table2/utilities/columns.js +0 -387
  205. package/dist/esm/packages/taco/src/components/Table2/utilities/columns.js.map +0 -1
  206. package/dist/esm/packages/taco/src/components/Table2/utilities/filterFn.js +0 -100
  207. package/dist/esm/packages/taco/src/components/Table2/utilities/filterFn.js.map +0 -1
  208. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js +0 -32
  209. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js.map +0 -1
  210. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js +0 -20
  211. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js.map +0 -1
@@ -1,130 +0,0 @@
1
- import React from 'react';
2
- import { Table2Props, Table2ColumnProps } from './types';
3
- export declare type Table2Texts = {
4
- columns: {
5
- resize: {
6
- tooltip: string;
7
- };
8
- actions: {
9
- tooltip: string;
10
- };
11
- drag: {
12
- tooltip: string;
13
- };
14
- expansion: {
15
- collapse: string;
16
- collapseAll: string;
17
- expand: string;
18
- expandAll: string;
19
- };
20
- select: {
21
- deselect: string;
22
- deselectAll: string;
23
- select: string;
24
- selectAll: string;
25
- };
26
- menu: {
27
- hideColumn: string;
28
- freezeColumns: (count: number) => string;
29
- unfreezeColumns: string;
30
- };
31
- };
32
- columnSettings: {
33
- search: string;
34
- tooltip: string;
35
- button: string;
36
- noResults: string;
37
- };
38
- editing: {
39
- button: string;
40
- tooltip: string;
41
- tooltipDisabled: string;
42
- rowIndicator: {
43
- rowWillMove: string;
44
- rowWillBeHidden: string;
45
- rowWillMoveReasonSearch: string;
46
- rowWillMoveReasonFilter: string;
47
- rowWillMoveReasonSorting: string;
48
- };
49
- };
50
- filters: {
51
- button: string;
52
- buttons: {
53
- addNewFilter: string;
54
- clearFilters: string;
55
- };
56
- comparators: {
57
- contains: string;
58
- doesNotContain: string;
59
- isEqualTo: string;
60
- isNotEqualTo: string;
61
- isGreaterThan: string;
62
- isLessThan: string;
63
- isBetween: string;
64
- isOneOf: string;
65
- isNoneOf: string;
66
- isAllOf: string;
67
- isEmpty: string;
68
- isNotEmpty: string;
69
- };
70
- conditions: {
71
- and: string;
72
- where: string;
73
- };
74
- emptyFilter: {
75
- condition: string;
76
- value: string;
77
- };
78
- tooltip: string;
79
- total: string;
80
- };
81
- footer: {
82
- summary: {
83
- records: string;
84
- selected: string;
85
- };
86
- };
87
- rowDensity: {
88
- tooltip: string;
89
- compact: string;
90
- normal: string;
91
- comfortable: string;
92
- spacious: string;
93
- };
94
- search: {
95
- placeholder: string;
96
- };
97
- shortcuts: {
98
- tooltip: string;
99
- search: string;
100
- filter: string;
101
- previousRow: string;
102
- nextRow: string;
103
- editCell: string;
104
- previousColumn: string;
105
- nextColumn: string;
106
- rowClick: string;
107
- selectRow: string;
108
- selectAllRows: string;
109
- expandRow: string;
110
- collapseRow: string;
111
- };
112
- };
113
- export declare type Table2Ref = HTMLDivElement & {
114
- instance: {
115
- resetFiltering: () => void;
116
- resetRowExpansion: () => void;
117
- resetRowSelection: () => void;
118
- resetSorting: () => void;
119
- toggleEditing: () => void;
120
- };
121
- };
122
- export declare type ForwardedTable2WithStatics = React.ForwardRefExoticComponent<Table2Props<any>> & {
123
- Column: <TType>(props: Table2ColumnProps<TType>) => JSX.Element | null;
124
- } & (<TType>(props: Table2Props<TType> & {
125
- ref?: React.Ref<Table2Ref>;
126
- }) => JSX.Element);
127
- declare const Table2: ForwardedTable2WithStatics;
128
- export { Table2 };
129
- export type { Table2Props };
130
- export type { Table2ColumnProps, Table2ActionProps, Table2RowActionRenderer, Table2Settings, Table2Filter, Table2FilterComparator, } from './types';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Table as RTTable } from '@tanstack/react-table';
3
- import { Table2ActionProps } from '../types';
4
- declare type BatchActionsMenuProps<TType> = React.HTMLAttributes<HTMLDivElement> & {
5
- actionsForTable?: Table2ActionProps<TType>[];
6
- summary?: (rows: TType[]) => JSX.Element | string;
7
- table: RTTable<TType>;
8
- };
9
- export declare function BatchActionsMenu<TType = any>({ actionsForTable, summary, table, ...props }: BatchActionsMenuProps<TType>): JSX.Element;
10
- export {};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Table as RTable } from '@tanstack/react-table';
3
- export declare type ColumnSettingsProps<TType = unknown> = {
4
- table: RTable<TType>;
5
- };
6
- export declare function ColumnSettingsButton<TType = unknown>(props: ColumnSettingsProps<TType>): JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Table as RTTable } from '@tanstack/react-table';
3
- export declare type EditModeButtonProps = {
4
- scrollToIndex: (index: number) => void;
5
- table: RTTable<any>;
6
- tableRef: React.RefObject<HTMLDivElement>;
7
- };
8
- export declare const EditModeButton: React.ForwardRefExoticComponent<EditModeButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Table as RTTable } from '@tanstack/react-table';
3
- declare type RowDensityButtonProps = {
4
- table: RTTable<any>;
5
- };
6
- export declare const RowDensityButton: ({ table }: RowDensityButtonProps) => JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { SearchInputProps } from '../../SearchInput/SearchInput';
3
- export declare const Search: (props: SearchInputProps) => JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Table as RTTable } from '@tanstack/react-table';
3
- declare type ShortcutsGuideButtonProps = {
4
- table: RTTable<any>;
5
- };
6
- export declare const ShortcutsGuideButton: ({ table }: ShortcutsGuideButtonProps) => JSX.Element;
7
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Column as RTColumn, Table as RTTable } from '@tanstack/react-table';
3
- export declare type ColumnBaseProps<TType = any> = React.HTMLAttributes<HTMLDivElement> & {
4
- column: RTColumn<TType, any>;
5
- frozenColumnIds: string[];
6
- scrolled: boolean;
7
- table: RTTable<TType>;
8
- };
9
- export declare const ColumnBase: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
10
- column: RTColumn<any, any>;
11
- frozenColumnIds: string[];
12
- scrolled: boolean;
13
- table: RTTable<any>;
14
- } & React.RefAttributes<HTMLDivElement>>;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { Cell as RTCell, Row as RTRow } from '@tanstack/react-table';
3
- import { ColumnBaseProps } from './Base';
4
- declare type CellProps<TType = unknown> = Omit<ColumnBaseProps<TType>, 'column' | 'isEditing'> & {
5
- cell: RTCell<TType, unknown>;
6
- index: number;
7
- isLastRow: boolean;
8
- rowIndex: number;
9
- rows: RTRow<TType>[];
10
- scrollToIndex: (index: number, options?: any) => void;
11
- scrollToOffset: (index: number, options?: any) => void;
12
- tableRef: React.RefObject<HTMLDivElement>;
13
- };
14
- export declare const Cell: <TType = unknown>(props: CellProps<TType>) => JSX.Element;
15
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Header as RTHeader } from '@tanstack/react-table';
3
- import { ColumnBaseProps } from './Base';
4
- declare type FooterProps<TType = unknown> = Omit<ColumnBaseProps<TType>, 'column' | 'isEditing'> & {
5
- footer: RTHeader<TType, unknown>;
6
- index: number;
7
- };
8
- export declare const Footer: <TType = unknown>(props: FooterProps<TType>) => JSX.Element;
9
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Header as RTHeader } from '@tanstack/react-table';
3
- import { ColumnBaseProps } from './Base';
4
- declare type HeaderProps<TType = unknown> = Omit<ColumnBaseProps<TType>, 'column' | 'isEditing'> & {
5
- header: RTHeader<TType, unknown>;
6
- index: number;
7
- isLastColumn: boolean;
8
- tableRef: React.RefObject<HTMLDivElement>;
9
- };
10
- export declare const Header: <TType = unknown>(props: HeaderProps<TType>) => JSX.Element;
11
- export {};
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- export declare enum IndicatorReason {
3
- SEARCH = "SEARCH",
4
- SORTING = "SORTING",
5
- FILTER = "FILTER"
6
- }
7
- export declare const useIndicatorText: (reason: any) => {
8
- title: string;
9
- description: string;
10
- };
11
- export declare type IndicatorProps = {
12
- reason: IndicatorReason;
13
- columnName: string;
14
- mountNode: Element | null;
15
- validationErrors: any;
16
- };
17
- export declare const Indicator: ({ reason, columnName, mountNode, validationErrors }: IndicatorProps) => React.ReactPortal;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ValidationError: ({ className, ...props }: {
3
- className?: string | undefined;
4
- children: string;
5
- }) => JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const hasChanged: (value: any, newValue: any) => boolean;
2
- export declare const willRowMoveAfterSorting: (value: any, cell: any, rowIndex: any, rows: any, desc: any) => boolean;
3
- export declare const clickableNodeNames: string[];
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { Table as RTTable } from '@tanstack/react-table';
3
- export declare type FiltersButtonProps = {
4
- length: number;
5
- table: RTTable<any>;
6
- };
7
- export declare const FiltersButton: ({ length, table }: FiltersButtonProps) => JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Column as RTColumn, Table as RTTable } from '@tanstack/react-table';
3
- import { Select2Props } from '../../../../Select2/Select2';
4
- declare type ColumnProps = Omit<Select2Props, 'children'> & {
5
- allColumns: RTColumn<any, any>[];
6
- column: RTColumn<any, any>;
7
- index: number;
8
- table: RTTable<any>;
9
- };
10
- export declare const Column: ({ allColumns, column, index, table, ...props }: ColumnProps) => JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Column as RTColumn, Table as RTTable } from '@tanstack/react-table';
3
- export declare type ColumnFilterProps = {
4
- allColumns: RTColumn<any, any>[];
5
- column: RTColumn<any, any>;
6
- index: number;
7
- table: RTTable<any>;
8
- onRemove?: () => void;
9
- };
10
- export declare const ColumnFilter: (props: ColumnFilterProps) => JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Column as RTColumn } from '@tanstack/react-table';
3
- import { Select2Props } from '../../../../Select2/Select2';
4
- import { Table2FilterComparator } from '../../../types';
5
- declare type ComparatorProps = Omit<Select2Props, 'children'> & {
6
- column: RTColumn<any, any>;
7
- comparator?: Table2FilterComparator;
8
- validComparators: Table2FilterComparator[];
9
- };
10
- export declare const Comparator: ({ column, comparator, validComparators, ...props }: ComparatorProps) => JSX.Element;
11
- export {};
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { Column as RTColumn, Table as RTTable } from '@tanstack/react-table';
3
- import { Select2Value } from '../../../../Select2/Select2';
4
- export declare type EmptyFilterProps = {
5
- allColumns: RTColumn<any, any>[];
6
- table: RTTable<any>;
7
- onChange?: (value: Select2Value) => void;
8
- onRemove?: () => void;
9
- filteredColumns: RTColumn<any, any>[];
10
- emptyFilterCount: Number;
11
- index: Number;
12
- };
13
- export declare const EmptyFilter: (props: EmptyFilterProps) => JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Column as RTColumn } from '@tanstack/react-table';
3
- import { Table2FilterComparator } from '../../../types';
4
- declare type InferredControlProps = {
5
- column: RTColumn<any, any>;
6
- comparator: Table2FilterComparator;
7
- value: any | any[];
8
- };
9
- export declare const InferredControl: ({ column, comparator, value }: InferredControlProps) => JSX.Element | null;
10
- export {};
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { SaveHandlerErrorResponse } from '../../types';
3
- import { IndicatorReason } from '../column/Indicator';
4
- declare type RowContextValue = {
5
- isActive: boolean;
6
- editMode: {
7
- validationErrors: SaveHandlerErrorResponse;
8
- setValidationErrors: React.Dispatch<React.SetStateAction<SaveHandlerErrorResponse>>;
9
- rowMoveReason: Record<string, IndicatorReason | null>;
10
- setRowMoveReason: React.Dispatch<React.SetStateAction<Record<string, IndicatorReason | null>>>;
11
- };
12
- rowIndex?: number;
13
- isHovered: boolean;
14
- setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
15
- };
16
- export declare const RowContext: React.Context<RowContextValue>;
17
- export declare const RowContextProvider: ({ isActiveRow, children, meta, rowIndex }: {
18
- isActiveRow: any;
19
- children: any;
20
- meta: any;
21
- rowIndex: any;
22
- }) => JSX.Element;
23
- export declare const useRowContext: () => RowContextValue;
24
- export {};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ExpandedRow: ({ index, setSize, ...props }: {
3
- [x: string]: any;
4
- index: any;
5
- setSize: any;
6
- }) => JSX.Element | null;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Row: (props: any) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { Table as RTTable, Row as TRow } from '@tanstack/react-table';
2
- import { useActiveCell } from '../useActiveCell';
3
- export declare const useActiveCellStateListener: <TType = any>(rows: TRow<any>[], table: RTTable<any>, activeCell: useActiveCell<TType>) => void;
@@ -1,3 +0,0 @@
1
- import { Row as RTRow, Table as RTTable } from '@tanstack/react-table';
2
- import { useActiveRow } from '../useActiveRow';
3
- export declare const useActiveRowStateListener: <TType = any>(table: RTTable<any>, rows: RTRow<any>[], activeRowIndex: useActiveRow<TType>) => void;
@@ -1,3 +0,0 @@
1
- import { Table as RTTable, OnChangeFn } from '@tanstack/react-table';
2
- import { ColumnOffsetState } from '../../types';
3
- export declare const useColumnOffsetStateListener: (table: RTTable<any>, setColumnOffsets: OnChangeFn<ColumnOffsetState>) => void;
@@ -1,3 +0,0 @@
1
- import { Table as RTTable } from '@tanstack/react-table';
2
- import { RowSelectionHandler } from '../../types';
3
- export declare const useFilterStateListener: <TType = any>(table: RTTable<TType>, onRowSelect: RowSelectionHandler | undefined) => void;
@@ -1,3 +0,0 @@
1
- import { Table as RTTable } from '@tanstack/react-table';
2
- import { RowSelectionHandler } from '../../types';
3
- export declare const useRowSelectionListener: <TType = any>(table: RTTable<any>, onRowSelect: RowSelectionHandler | undefined) => void;
@@ -1,3 +0,0 @@
1
- import { Table as RTTable } from '@tanstack/react-table';
2
- import { SettingsHandler } from '../../types';
3
- export declare const useSettingsStateListener: (table: RTTable<any>, onChangeSettings: SettingsHandler | undefined) => void;
@@ -1,26 +0,0 @@
1
- import { Column as TColumn, Row as TRow } from '@tanstack/react-table';
2
- export declare type ActiveCell = {
3
- rowId: string | undefined;
4
- rowIndex: number;
5
- columnIndex: number;
6
- isEditing: boolean;
7
- };
8
- export declare type ActiveCellHandler<TType = any> = (rows: TRow<TType>[], rowIndex: number, columnIndex: number, isEditing?: boolean) => void;
9
- export declare type ActiveRowMoveHandler<TType = any> = (rows: TRow<TType>[], callback?: (index: number) => void) => void;
10
- export declare type ActiveColumnMoveHandler<TType = any> = (columns: TColumn<TType, any>[], callback?: (index: number) => void) => void;
11
- export declare type EditingHandler = (isEditing?: boolean) => void;
12
- export declare type ActiveCellEditingHandler = (isEditing?: boolean) => void;
13
- export declare type useActiveCell<TType = any> = {
14
- activeCell: ActiveCell;
15
- setActiveCell: ActiveCellHandler<TType>;
16
- moveActiveRowUp: ActiveRowMoveHandler<TType>;
17
- moveActiveRowDown: ActiveRowMoveHandler<TType>;
18
- moveActiveColumnLeft: ActiveColumnMoveHandler<TType>;
19
- moveActiveColumnRight: ActiveColumnMoveHandler<TType>;
20
- toggleEditing: EditingHandler;
21
- toggleActiveCellEditing: ActiveCellEditingHandler;
22
- resetActiveCell: () => void;
23
- };
24
- export declare const useActiveCell: <TType = any>({ defaultActiveRowIndex }?: {
25
- defaultActiveRowIndex?: number | undefined;
26
- }) => useActiveCell<TType>;
@@ -1,10 +0,0 @@
1
- import { Row as TRow } from '@tanstack/react-table';
2
- export declare type ActiveRowHandler = (rowIndex: number) => void;
3
- export declare type ActiveRowMoveHandler<TType = any> = (rows: TRow<TType>[], callback?: (index: number) => void) => void;
4
- export declare type useActiveRow<TType = any> = {
5
- activeRowIndex: number;
6
- setActiveRowIndex: ActiveRowHandler;
7
- moveToPreviousRow: ActiveRowMoveHandler<TType>;
8
- moveToNextRow: ActiveRowMoveHandler<TType>;
9
- };
10
- export declare const useActiveRow: <TType = any>(defaultActiveRowIndex?: number) => useActiveRow<TType>;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { ColumnSort, Row, RowData, Table } from '@tanstack/react-table';
3
- import { CellAlignment, ColumnDataType, RowDragHandler, RowExpansionRenderer, Table2Children, Table2ColumnControlRenderer, Table2ColumnFooterRenderer, Table2ColumnHeaderMenu, Table2RowActionRenderer } from '../types';
4
- declare module '@tanstack/table-core' {
5
- interface ColumnMeta<TData extends RowData, TValue> {
6
- align?: CellAlignment;
7
- className?: string | ((row: Row<TData>, table: Table<TData>) => string);
8
- control?: Table2ColumnControlRenderer;
9
- dataType?: ColumnDataType;
10
- disableReordering?: boolean;
11
- defaultWidth?: number | 'grow';
12
- headerClassName?: string;
13
- menu?: Table2ColumnHeaderMenu;
14
- tooltip?: string;
15
- }
16
- }
17
- declare type useColumnDefinitionsOptions<TType> = {
18
- actionsForRow: Table2RowActionRenderer<TType>[];
19
- actionsForRowLength: number;
20
- enableColumnFiltering: boolean;
21
- enableColumnHiding: boolean;
22
- enableColumnFreezing: boolean;
23
- enableRowExpansion: boolean;
24
- enableRowSelection: boolean;
25
- enableMultipleRowSelection: boolean;
26
- expandedRowRenderer?: RowExpansionRenderer<TType>;
27
- onRowDrag?: RowDragHandler<TType>;
28
- };
29
- export declare function useColumnDefinitions<TType = any>(children: Table2Children, options: useColumnDefinitionsOptions<TType>, tableRef: React.RefObject<HTMLDivElement>): {
30
- columns: any[];
31
- internalFrozenColumnCount: number;
32
- defaultColumnSizing: Record<string, number>;
33
- defaultColumnVisibility: Record<string, boolean>;
34
- defaultSorting: ColumnSort[];
35
- footers: Record<string, Table2ColumnFooterRenderer>;
36
- };
37
- export {};
@@ -1,28 +0,0 @@
1
- import { SaveHandler } from '../types';
2
- export declare type EditModeHandler = (isEditing?: boolean) => void;
3
- export declare type EditModeColumnMoveHandler = (columns: number[], moveRow?: (moveDirection: MOVE_DIR) => void) => void;
4
- export declare type EditModeColumnHandler = (columnIndex: number) => void;
5
- export declare type useEditMode = {
6
- enableEditMode: boolean;
7
- isEditing: boolean;
8
- toggleEditing: EditModeHandler;
9
- onSave?: SaveHandler;
10
- columnIndex: number;
11
- moveToPreviousColumn: EditModeColumnMoveHandler;
12
- moveToNextColumn: EditModeColumnMoveHandler;
13
- moveToFirstColumn: EditModeColumnMoveHandler;
14
- moveToLastColumn: EditModeColumnMoveHandler;
15
- setColumn: EditModeColumnHandler;
16
- };
17
- export declare type EditMode = {
18
- enableEditMode: boolean;
19
- isEditing: boolean;
20
- columnIndex: number;
21
- };
22
- export declare enum MOVE_DIR {
23
- FIRST = 0,
24
- LAST = 1,
25
- PREV = 2,
26
- NEXT = 3
27
- }
28
- export declare const useEditMode: (handleSave?: SaveHandler<any> | undefined) => useEditMode;
@@ -1,2 +0,0 @@
1
- import { Table } from '@tanstack/react-table';
2
- export declare const useGridTemplate: (table: Table<any>) => string;
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import { OnChangeFn, RowData } from '@tanstack/react-table';
3
- import { RowClickHandler, RowDensity, Table2Children, Table2Props } from '../types';
4
- import { ColumnOffsetState } from '../types';
5
- import { ActiveRowHandler, ActiveRowMoveHandler } from './useActiveRow';
6
- import { useEditMode } from './useEditMode';
7
- declare module '@tanstack/table-core' {
8
- interface TableMeta<TData extends RowData> {
9
- activeRowIndex: number;
10
- setActiveRowIndex: ActiveRowHandler;
11
- moveToPreviousRow: ActiveRowMoveHandler<TData>;
12
- moveToNextRow: ActiveRowMoveHandler<TData>;
13
- columnOffsets: ColumnOffsetState;
14
- enableRowDensity: boolean;
15
- rowDensity: RowDensity;
16
- setRowDensity: OnChangeFn<RowDensity>;
17
- enableRowDragging: boolean;
18
- dragging: Record<string, boolean>;
19
- setDragging: OnChangeFn<Record<string, boolean>>;
20
- enableColumnFreezing: boolean;
21
- enableColumnReordering: boolean;
22
- enableColumnHiding: boolean;
23
- shouldPauseSortingAndFiltering: boolean;
24
- setShouldPauseSortingAndFiltering: OnChangeFn<boolean>;
25
- shouldPauseHoverState: boolean;
26
- setShouldPauseHoverState: OnChangeFn<boolean>;
27
- frozenColumnsCount: number;
28
- setFrozenColumnsCount: OnChangeFn<number>;
29
- onRowClick?: RowClickHandler<TData>;
30
- editMode: useEditMode;
31
- dataColumnStartOffset: number;
32
- dataColumnEndOffset: number;
33
- shouldDisableTableActions: boolean;
34
- setShouldDisableTableActions: OnChangeFn<boolean>;
35
- focussableColumnIndexes: number[];
36
- addFocussableColumnIndex: (index: number) => void;
37
- resetFocussableColumnIndexes: () => void;
38
- tableRef: React.RefObject<HTMLDivElement>;
39
- lastSortedOrFilteredRows: React.MutableRefObject<Array<any>>;
40
- }
41
- }
42
- export declare function useTable<TType = any>(children: Table2Children, props: Table2Props<TType>, ref: React.RefObject<HTMLDivElement>): {
43
- rows: any;
44
- table: import("@tanstack/react-table").Table<any>;
45
- footers: Record<string, import("../types").Table2ColumnFooterRenderer>;
46
- };
@@ -1,2 +0,0 @@
1
- import { Table2Shortcuts } from '../types';
2
- export declare function useTableShortcuts<TType = any>(shortcuts: Table2Shortcuts<TType> | undefined, activeRow: TType): void;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { OnChangeFn } from '@tanstack/react-table';
3
- import { VirtualItem } from 'react-virtual';
4
- declare type ExpandedRowSizeState = Record<string, number>;
5
- declare type useVirtualiser = {
6
- virtualiser: {
7
- virtualItems: VirtualItem[];
8
- totalSize: number;
9
- scrollToOffset: (index: number, options?: any) => void;
10
- scrollToIndex: (index: number, options?: any) => void;
11
- measure: () => void;
12
- };
13
- virtualiserOffsets: {
14
- top: number;
15
- bottom: number;
16
- };
17
- setExpandedRowSizes: OnChangeFn<ExpandedRowSizeState>;
18
- };
19
- export declare const useVirtualiser: ({ rows, table }: {
20
- rows: any;
21
- table: any;
22
- }, tableRef: React.RefObject<HTMLElement>) => useVirtualiser;
23
- export {};