@tap-payments/os-micro-frontend-shared 0.1.370 → 0.1.371-test.1-test.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  2. package/build/components/AppWindowWrapper/AppWindow/AppWindow.d.ts +1 -1
  3. package/build/components/AppWindowWrapper/AppWindow/AppWindow.js +2 -2
  4. package/build/components/AppWindowWrapper/AppWindow/type.d.ts +2 -0
  5. package/build/components/AppWindowWrapper/headers/AccountHeader/AccountHeader.d.ts +1 -1
  6. package/build/components/AppWindowWrapper/headers/AccountHeader/AccountHeader.js +2 -2
  7. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +1 -1
  8. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.js +2 -2
  9. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/type.d.ts +3 -2
  10. package/build/components/AppWindowWrapper/headers/AccountHeader/type.d.ts +2 -1
  11. package/build/components/Chip/style.d.ts +0 -1
  12. package/build/components/CountBadge/style.d.ts +0 -1
  13. package/build/components/Dialog/style.d.ts +0 -1
  14. package/build/components/FlippingCard/style.d.ts +0 -1
  15. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  16. package/build/components/JSONViewer/style.d.ts +0 -1
  17. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  18. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  19. package/build/components/SearchButton/styles.d.ts +0 -1
  20. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  21. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  22. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  23. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  39. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  40. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  41. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  42. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  43. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  44. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  45. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  46. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  47. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  48. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  49. package/build/components/TableHeader/FiltersRow.d.ts +1 -1
  50. package/build/components/TableHeader/FiltersRow.js +4 -2
  51. package/build/components/TableHeader/TableHeader.d.ts +1 -1
  52. package/build/components/TableHeader/TableHeader.js +2 -2
  53. package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +3 -0
  54. package/build/components/TableHeader/TableView/CreateViewDialog.js +56 -0
  55. package/build/components/TableHeader/TableView/CustomViews.js +1 -1
  56. package/build/components/TableHeader/TableView/TableView.js +0 -1
  57. package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +5 -0
  58. package/build/components/TableHeader/TableView/ViewsDropdown.js +148 -0
  59. package/build/components/TableHeader/TableView/ViewsManager.d.ts +5 -0
  60. package/build/components/TableHeader/TableView/ViewsManager.js +108 -0
  61. package/build/components/TableHeader/TableView/components/ColumnList.d.ts +3 -0
  62. package/build/components/TableHeader/TableView/components/ColumnList.js +54 -0
  63. package/build/components/TableHeader/TableView/components/ViewsSubmenu.d.ts +3 -0
  64. package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +44 -0
  65. package/build/components/TableHeader/TableView/components/index.d.ts +2 -0
  66. package/build/components/TableHeader/TableView/components/index.js +2 -0
  67. package/build/components/TableHeader/TableView/constants.d.ts +10 -0
  68. package/build/components/TableHeader/TableView/constants.js +10 -0
  69. package/build/components/TableHeader/TableView/data.d.ts +5 -0
  70. package/build/components/TableHeader/TableView/data.js +48 -0
  71. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +22 -0
  72. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.js +76 -0
  73. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.d.ts +7 -0
  74. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.js +34 -0
  75. package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +11 -0
  76. package/build/components/TableHeader/TableView/hooks/useViewsManager.js +18 -0
  77. package/build/components/TableHeader/TableView/hooks.d.ts +28 -0
  78. package/build/components/TableHeader/TableView/hooks.js +81 -0
  79. package/build/components/TableHeader/TableView/index.d.ts +12 -3
  80. package/build/components/TableHeader/TableView/index.js +11 -3
  81. package/build/components/TableHeader/TableView/styles.d.ts +127 -0
  82. package/build/components/TableHeader/TableView/styles.js +417 -0
  83. package/build/components/TableHeader/TableView/types.d.ts +137 -0
  84. package/build/components/TableHeader/TableView/types.js +1 -0
  85. package/build/components/TableHeader/TableView/utils.d.ts +86 -0
  86. package/build/components/TableHeader/TableView/utils.js +314 -0
  87. package/build/components/TableHeader/type.d.ts +17 -0
  88. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  89. package/build/components/TableReports/style.d.ts +0 -1
  90. package/build/components/Toolbar/Toolbar.js +1 -1
  91. package/build/components/VirtualTables/components/style.d.ts +0 -1
  92. package/build/constants/assets.d.ts +1 -0
  93. package/build/constants/assets.js +1 -0
  94. package/package.json +3 -3
@@ -0,0 +1,314 @@
1
+ import { advancedColumns, sheetColumns } from './data';
2
+ /**
3
+ * Transform API layout response to internal ColumnViewProps format
4
+ */
5
+ export const transformLayoutToColumns = (layout, lang = 'en') => {
6
+ const columns = [];
7
+ layout.forEach((section) => {
8
+ section.columns.forEach((col) => {
9
+ var _a, _b, _c, _d;
10
+ const label = ((_a = col.name.find((n) => n.lang === lang)) === null || _a === void 0 ? void 0 : _a.text) || ((_b = col.name[0]) === null || _b === void 0 ? void 0 : _b.text) || col.code;
11
+ const menuItems = ((_c = col.fields) === null || _c === void 0 ? void 0 : _c.length)
12
+ ? col.fields.map((field) => {
13
+ var _a, _b;
14
+ return ({
15
+ name: field.code,
16
+ label: ((_a = field.name.find((n) => n.lang === lang || n.lang === '')) === null || _a === void 0 ? void 0 : _a.text) || field.code,
17
+ selected: (_b = field.default) !== null && _b !== void 0 ? _b : false,
18
+ });
19
+ })
20
+ : undefined;
21
+ columns.push({
22
+ name: col.code,
23
+ label,
24
+ selected: (_d = col.default) !== null && _d !== void 0 ? _d : false,
25
+ menuItems: (menuItems === null || menuItems === void 0 ? void 0 : menuItems.length) ? menuItems : undefined,
26
+ });
27
+ });
28
+ });
29
+ return columns;
30
+ };
31
+ export const getColumnsByMode = (mode, layoutData) => {
32
+ if (layoutData && layoutData.length > 0) {
33
+ const section = layoutData.find((s) => s.code.toLowerCase() === mode.toLowerCase());
34
+ if (section) {
35
+ return transformLayoutToColumns([section]);
36
+ }
37
+ }
38
+ return mode === 'advanced' ? [...advancedColumns] : [...sheetColumns];
39
+ };
40
+ export const isDateColumn = (name) => {
41
+ return name.toLowerCase() === 'date';
42
+ };
43
+ export const getColumnCheckState = (column) => {
44
+ var _a, _b;
45
+ if (!((_a = column.menuItems) === null || _a === void 0 ? void 0 : _a.length)) {
46
+ return { checked: (_b = column.selected) !== null && _b !== void 0 ? _b : false, indeterminate: false };
47
+ }
48
+ const selectedCount = column.menuItems.filter((item) => item.selected).length;
49
+ return {
50
+ checked: selectedCount > 0,
51
+ indeterminate: selectedCount > 0 && selectedCount < column.menuItems.length,
52
+ };
53
+ };
54
+ export const createCustomViewMenuItem = (name, selectedColumns) => ({
55
+ label: name,
56
+ id: `custom_${Date.now()}`,
57
+ columns: selectedColumns.map((col) => col.name),
58
+ submenu: selectedColumns,
59
+ isCustom: true,
60
+ });
61
+ /**
62
+ * Initialize columns for editing mode
63
+ */
64
+ export const initializeEditingColumns = (editingColumns, availableColumns) => {
65
+ return availableColumns
66
+ .filter((col) => !isDateColumn(col.name))
67
+ .map((col) => {
68
+ var _a;
69
+ const savedCol = editingColumns.find((ec) => ec.name === col.name);
70
+ return (savedCol || Object.assign(Object.assign({}, col), { selected: false, menuItems: (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: false }))) }));
71
+ });
72
+ };
73
+ /**
74
+ * Initialize columns for create mode (all unchecked except date)
75
+ */
76
+ export const initializeCreateColumns = (availableColumns) => {
77
+ return availableColumns
78
+ .filter((col) => !isDateColumn(col.name))
79
+ .map((col) => {
80
+ var _a;
81
+ return (Object.assign(Object.assign({}, col), { selected: false, menuItems: (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: false }))) }));
82
+ });
83
+ };
84
+ /**
85
+ * Initialize columns for create mode with current tableViews state (preserves checked/unchecked values)
86
+ */
87
+ export const initializeCreateColumnsWithCurrentState = (availableColumns, currentTableViews) => {
88
+ return availableColumns
89
+ .filter((col) => !isDateColumn(col.name))
90
+ .map((col) => {
91
+ var _a, _b, _c;
92
+ const currentCol = currentTableViews.find((tc) => tc.name === col.name);
93
+ if (currentCol) {
94
+ return Object.assign(Object.assign({}, col), { selected: (_a = currentCol.selected) !== null && _a !== void 0 ? _a : false, menuItems: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => {
95
+ var _a, _b;
96
+ const currentMenuItem = (_a = currentCol.menuItems) === null || _a === void 0 ? void 0 : _a.find((mi) => mi.name === item.name);
97
+ return Object.assign(Object.assign({}, item), { selected: (_b = currentMenuItem === null || currentMenuItem === void 0 ? void 0 : currentMenuItem.selected) !== null && _b !== void 0 ? _b : false });
98
+ }) });
99
+ }
100
+ return Object.assign(Object.assign({}, col), { selected: false, menuItems: (_c = col.menuItems) === null || _c === void 0 ? void 0 : _c.map((item) => (Object.assign(Object.assign({}, item), { selected: false }))) });
101
+ });
102
+ };
103
+ /**
104
+ * Reset columns to their default selection state
105
+ */
106
+ export const resetColumnsToDefault = (columns) => {
107
+ return columns
108
+ .filter((col) => !isDateColumn(col.name))
109
+ .map((col) => {
110
+ var _a, _b;
111
+ return (Object.assign(Object.assign({}, col), { selected: (_a = col.selected) !== null && _a !== void 0 ? _a : false, menuItems: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => { var _a; return (Object.assign(Object.assign({}, item), { selected: (_a = item.selected) !== null && _a !== void 0 ? _a : false })); }) }));
112
+ });
113
+ };
114
+ /**
115
+ * Toggle a column's selection (including all children if present)
116
+ */
117
+ export const toggleColumn = (columns, columnName) => {
118
+ return columns.map((col) => {
119
+ var _a;
120
+ if (col.name !== columnName)
121
+ return col;
122
+ const newSelected = !col.selected;
123
+ const updatedMenuItems = (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: newSelected })));
124
+ return Object.assign(Object.assign({}, col), { selected: newSelected, menuItems: updatedMenuItems });
125
+ });
126
+ };
127
+ /**
128
+ * Toggle a sub-item's selection and update parent state
129
+ */
130
+ export const toggleSubItem = (columns, columnName, subItemName) => {
131
+ return columns.map((col) => {
132
+ var _a, _b;
133
+ if (col.name !== columnName)
134
+ return col;
135
+ const updatedMenuItems = (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (item.name === subItemName ? Object.assign(Object.assign({}, item), { selected: !item.selected }) : item));
136
+ const hasSelectedChildren = (_b = updatedMenuItems === null || updatedMenuItems === void 0 ? void 0 : updatedMenuItems.some((item) => item.selected)) !== null && _b !== void 0 ? _b : false;
137
+ return Object.assign(Object.assign({}, col), { menuItems: updatedMenuItems, selected: hasSelectedChildren });
138
+ });
139
+ };
140
+ /**
141
+ * Select or deselect all columns (except date)
142
+ */
143
+ export const toggleAllColumns = (columns, selectAll) => {
144
+ return columns.map((col) => {
145
+ var _a;
146
+ if (isDateColumn(col.name))
147
+ return col;
148
+ const updatedMenuItems = (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: selectAll })));
149
+ return Object.assign(Object.assign({}, col), { selected: selectAll, menuItems: updatedMenuItems });
150
+ });
151
+ };
152
+ /**
153
+ * Check if all non-date columns are selected
154
+ */
155
+ export const areAllColumnsSelected = (columns) => {
156
+ const nonDateColumns = columns.filter((col) => !isDateColumn(col.name));
157
+ return (nonDateColumns.length > 0 &&
158
+ nonDateColumns.every((col) => {
159
+ var _a;
160
+ if ((_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.length) {
161
+ return col.menuItems.some((item) => item.selected);
162
+ }
163
+ return col.selected;
164
+ }));
165
+ };
166
+ /**
167
+ * Check if some (but not all) non-date columns are selected
168
+ */
169
+ export const areSomeColumnsSelected = (columns, allSelected) => {
170
+ const nonDateColumns = columns.filter((col) => !isDateColumn(col.name));
171
+ const hasAnySelected = nonDateColumns.some((col) => {
172
+ var _a;
173
+ if ((_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.length) {
174
+ return col.menuItems.some((item) => item.selected);
175
+ }
176
+ return col.selected;
177
+ });
178
+ return hasAnySelected && !allSelected;
179
+ };
180
+ /**
181
+ * Validate template name
182
+ */
183
+ export const isValidTemplateName = (name, maxLength) => {
184
+ return name.trim().length > 0 && name.length <= maxLength;
185
+ };
186
+ /**
187
+ * Deep clone columns array with all nested properties
188
+ */
189
+ export const deepCloneColumns = (columns) => {
190
+ return columns.map((col) => {
191
+ var _a, _b;
192
+ return (Object.assign(Object.assign({}, col), { selected: (_a = col.selected) !== null && _a !== void 0 ? _a : false, menuItems: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => {
193
+ var _a;
194
+ return (Object.assign(Object.assign({}, item), { selected: (_a = item.selected) !== null && _a !== void 0 ? _a : false }));
195
+ }) }));
196
+ });
197
+ };
198
+ /**
199
+ * Toggle a single column's selection state
200
+ */
201
+ export const toggleSingleColumn = (columns, columnName) => {
202
+ return columns.map((col) => {
203
+ var _a;
204
+ if (col.name !== columnName)
205
+ return col;
206
+ const newSelected = !col.selected;
207
+ const updatedMenuItems = (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: newSelected })));
208
+ return Object.assign(Object.assign({}, col), { selected: newSelected, menuItems: updatedMenuItems });
209
+ });
210
+ };
211
+ /**
212
+ * Get submenu items for a view menu item
213
+ */
214
+ export const getSubmenuItems = (item, defaultColumns) => {
215
+ var _a;
216
+ if (item.isCustom && ((_a = item.submenu) === null || _a === void 0 ? void 0 : _a.length)) {
217
+ return item.submenu;
218
+ }
219
+ if (item.id === 'default') {
220
+ return defaultColumns;
221
+ }
222
+ return item.submenu || [];
223
+ };
224
+ /**
225
+ * Check if a view menu item has submenu
226
+ */
227
+ export const hasSubmenu = (item, defaultColumns) => {
228
+ return getSubmenuItems(item, defaultColumns).length > 0;
229
+ };
230
+ /**
231
+ * Check if all columns in current state are selected
232
+ */
233
+ export const areAllCurrentColumnsSelected = (columns) => {
234
+ if (columns.length === 0)
235
+ return false;
236
+ return columns.every((col) => {
237
+ var _a;
238
+ if ((_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.length) {
239
+ return col.menuItems.some((item) => item.selected);
240
+ }
241
+ return col.selected;
242
+ });
243
+ };
244
+ /**
245
+ * Check if some (but not all) columns in current state are selected
246
+ */
247
+ export const areSomeCurrentColumnsSelected = (columns, allSelected) => {
248
+ if (columns.length === 0)
249
+ return false;
250
+ const hasAny = columns.some((col) => {
251
+ var _a;
252
+ if ((_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.length) {
253
+ return col.menuItems.some((item) => item.selected);
254
+ }
255
+ return col.selected;
256
+ });
257
+ return hasAny && !allSelected;
258
+ };
259
+ /**
260
+ * Toggle all columns selection (select all or unselect all)
261
+ */
262
+ export const toggleAllCurrentColumns = (columns, shouldSelect) => {
263
+ return columns.map((col) => {
264
+ var _a;
265
+ const updatedMenuItems = (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: shouldSelect })));
266
+ return Object.assign(Object.assign({}, col), { selected: shouldSelect, menuItems: updatedMenuItems });
267
+ });
268
+ };
269
+ /**
270
+ * Normalize columns by converting undefined selected values to false for consistent comparison
271
+ */
272
+ export const normalizeColumnsSelected = (columns) => {
273
+ return columns.map((col) => {
274
+ var _a, _b;
275
+ return (Object.assign(Object.assign({}, col), { selected: (_a = col.selected) !== null && _a !== void 0 ? _a : false, menuItems: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => {
276
+ var _a;
277
+ return (Object.assign(Object.assign({}, item), { selected: (_a = item.selected) !== null && _a !== void 0 ? _a : false }));
278
+ }) }));
279
+ });
280
+ };
281
+ /**
282
+ * Compare two columns arrays to check if they are equal (same order, same selection states)
283
+ */
284
+ export const areColumnsEqual = (cols1, cols2) => {
285
+ if (cols1.length !== cols2.length)
286
+ return false;
287
+ const normalizedCols1 = normalizeColumnsSelected(cols1);
288
+ const normalizedCols2 = normalizeColumnsSelected(cols2);
289
+ for (let i = 0; i < normalizedCols1.length; i++) {
290
+ const col1 = normalizedCols1[i];
291
+ const col2 = normalizedCols2[i];
292
+ if (col1.name !== col2.name)
293
+ return false;
294
+ if (col1.selected !== col2.selected)
295
+ return false;
296
+ if (col1.menuItems && col2.menuItems) {
297
+ if (col1.menuItems.length !== col2.menuItems.length)
298
+ return false;
299
+ for (let j = 0; j < col1.menuItems.length; j++) {
300
+ const item1 = col1.menuItems[j];
301
+ const item2 = col2.menuItems[j];
302
+ if (item1.name !== item2.name)
303
+ return false;
304
+ if (item1.selected !== item2.selected) {
305
+ return false;
306
+ }
307
+ }
308
+ }
309
+ else if (col1.menuItems || col2.menuItems) {
310
+ return false;
311
+ }
312
+ }
313
+ return true;
314
+ };
@@ -2,6 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import type { CalenderMode, TableHeaderStatus, ColumnViewProps, TableMode, Timezone, SegmentCountry } from '../../types/index.js';
3
3
  import { AvailableStatus } from '../StatusBar/type';
4
4
  import { PartialExcept } from '../../types/index.js';
5
+ import type { ViewMenuItem } from './TableView/types';
5
6
  type ViewsOptions = {
6
7
  default: {};
7
8
  developer: {};
@@ -44,6 +45,22 @@ export interface TableHeaderProps<IStatus extends TableHeaderStatus | TableHeade
44
45
  id: string;
45
46
  label: string;
46
47
  }) => void;
48
+ customViews?: ViewMenuItem[];
49
+ onCreateCustomView?: (data: {
50
+ name: string;
51
+ selectedColumns: ColumnViewProps[];
52
+ }) => Promise<void>;
53
+ onEditCustomView?: (viewId: string, data: {
54
+ name: string;
55
+ selectedColumns: ColumnViewProps[];
56
+ }) => Promise<void>;
57
+ onDeleteCustomView?: (viewId: string) => Promise<void>;
58
+ viewMode?: 'advanced' | 'sheet';
59
+ onTableViewsChange?: (tableViews: ColumnViewProps[]) => void;
60
+ initialTableViews?: ColumnViewProps[];
61
+ onCustomViewsChange?: (customViews: ViewMenuItem[]) => void;
62
+ initialCustomViews?: ViewMenuItem[];
63
+ layoutData?: import('./TableView/types').LayoutSection[];
47
64
  onToggleTextButtonClick?: () => void;
48
65
  children?: ReactNode;
49
66
  calendarGroupBy?: string;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  type ExportButtonProps = {
4
3
  notificationState?: {
5
4
  success: boolean;
@@ -15,6 +15,6 @@ import { ToolbarStyled, StyledBox, ActionsBox } from './style';
15
15
  import WindowAppIcon from '../WindowAppIcon';
16
16
  function Toolbar(_a) {
17
17
  var { onMouseEnter, onMouseLeave, isMaximized, isHovered, children, rightActions, leftActions, title, icon } = _a, props = __rest(_a, ["onMouseEnter", "onMouseLeave", "isMaximized", "isHovered", "children", "rightActions", "leftActions", "title", "icon"]);
18
- return (_jsx(ToolbarStyled, Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, maximized: isMaximized, id: "toolbar", isHovered: isHovered }, props, { children: _jsxs(StyledBox, Object.assign({ className: "toolbar-wrapper" }, { children: [leftActions ? _jsx(ActionsBox, Object.assign({ className: "action-box" }, { children: leftActions })) : _jsx("div", {}), _jsx(WindowAppIcon, { title: title, icon: icon }), rightActions || _jsx("div", {})] })) })));
18
+ return (_jsx(ToolbarStyled, Object.assign({ onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, maximized: isMaximized, id: "toolbar", isHovered: isHovered }, props, { children: _jsxs(StyledBox, Object.assign({ className: "toolbar-wrapper" }, { children: [leftActions ? _jsx(ActionsBox, Object.assign({ className: "action-box" }, { children: leftActions })) : _jsx("div", {}), _jsx(WindowAppIcon, { title: title, icon: icon }), rightActions ? _jsx(ActionsBox, Object.assign({ className: "action-box" }, { children: rightActions })) : _jsx("div", {})] })) })));
19
19
  }
20
20
  export default memo(Toolbar);
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -338,6 +338,7 @@ export declare const TAP3DSPROVIDERIcon: string;
338
338
  export declare const greyPlusIcon: string;
339
339
  export declare const greyMinusIcon: string;
340
340
  export declare const noPreviewIcon: string;
341
+ export declare const editIcon: string;
341
342
  export declare const viewInvoiceIcon: string;
342
343
  export declare const checkoutStatusIcon: string;
343
344
  export declare const checkoutStatusBlueIcon: string;
@@ -344,6 +344,7 @@ export const TAP3DSPROVIDERIcon = `${lightUrl}/provider/TAP3DS.svg`;
344
344
  export const greyPlusIcon = `${lightUrl}/greyPlusIcon.svg`;
345
345
  export const greyMinusIcon = `${lightUrl}/greyMinusIcon.svg`;
346
346
  export const noPreviewIcon = `${lightUrl}/noPreviewIcon.svg`;
347
+ export const editIcon = `${lightUrl}/other/editIcon.svg`;
347
348
  export const viewInvoiceIcon = `${appBaseUrl}/viewInvoice.svg`;
348
349
  export const checkoutStatusIcon = `${appBaseUrl}/checkoutStatus.svg`;
349
350
  export const checkoutStatusBlueIcon = `${appBaseUrl}/checkStatusOutBlue.svg`;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.370",
5
- "testVersion": 0,
4
+ "version": "0.1.371-test.1-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -164,4 +164,4 @@
164
164
  "publishConfig": {
165
165
  "registry": "https://registry.npmjs.org/"
166
166
  }
167
- }
167
+ }