@tap-payments/os-micro-frontend-shared 0.0.217-test.5 → 0.0.217-test.6

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.
@@ -159,14 +159,9 @@ export declare const chargeTableCellWidth: {
159
159
  readonly text: "52px";
160
160
  readonly sheet: "52px";
161
161
  };
162
- readonly actionIcon: {
162
+ readonly action_icon: {
163
163
  readonly default: "30px";
164
164
  readonly text: "30px";
165
165
  readonly sheet: "30px";
166
166
  };
167
- readonly actionIconSheet: {
168
- readonly default: "100px";
169
- readonly text: "100px";
170
- readonly sheet: "300px";
171
- };
172
167
  };
@@ -159,14 +159,9 @@ export const chargeTableCellWidth = {
159
159
  text: '52px',
160
160
  sheet: '52px',
161
161
  },
162
- actionIcon: {
162
+ action_icon: {
163
163
  default: '30px',
164
164
  text: '30px',
165
165
  sheet: '30px',
166
166
  },
167
- actionIconSheet: {
168
- default: '100px',
169
- text: '100px',
170
- sheet: '300px',
171
- },
172
167
  };
@@ -1,8 +1,10 @@
1
1
  import type { IColumnProps, ColumnViewProps, ColumnsView } from '../types/index.js';
2
2
  export declare function filterShownColumns<T>(columns: Array<IColumnProps<T & {
3
3
  actions: string;
4
+ action_icon: string;
4
5
  }>>, tableViews: ColumnViewProps[]): IColumnProps<T & {
5
6
  actions: string;
7
+ action_icon: string;
6
8
  }>[];
7
9
  export declare function isParameterSelected(columns: ColumnViewProps[], columnId: string, parameter: string): boolean;
8
10
  export declare function mapDataToViews(columnData?: ColumnsView[], language?: string): ColumnViewProps[];
@@ -7,7 +7,7 @@ export function filterShownColumns(columns, tableViews) {
7
7
  const isColumnWithMenuItems = !!column.tableViewId && (((_a = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.menuItems) === null || _a === void 0 ? void 0 : _a.length) || 0) > 1;
8
8
  const isMenuItemSelected = (_c = (_b = selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.menuItems) === null || _b === void 0 ? void 0 : _b.find((item) => item.name === column.tableViewId)) === null || _c === void 0 ? void 0 : _c.selected;
9
9
  const isColumnSelected = !!selectedColumn && (isMenuItemSelected || !isColumnWithMenuItems);
10
- const isBasicColumn = ['actions', 'actionIcon'].includes((_e = (_d = column.id) === null || _d === void 0 ? void 0 : _d.toString()) === null || _e === void 0 ? void 0 : _e.toLowerCase());
10
+ const isBasicColumn = ['actions', 'action_icon'].includes((_e = (_d = column.id) === null || _d === void 0 ? void 0 : _d.toString()) === null || _e === void 0 ? void 0 : _e.toLowerCase());
11
11
  if (isColumnSelected || isBasicColumn) {
12
12
  return true;
13
13
  }
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.0.217-test.5",
5
- "testVersion": 5,
4
+ "version": "0.0.217-test.6",
5
+ "testVersion": 6,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",