@m4l/components 9.3.21-JT20102025.beta.2 → 9.3.22-JT22102025.beta.1
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.
|
@@ -96,7 +96,7 @@ function getInitialColumnsConfig(id, columns, viewMode, defaultUserConfig, viewS
|
|
|
96
96
|
name: typeof column.name === "string" ? column.name : String(column.name),
|
|
97
97
|
hidden: column.hidden === void 0 ? false : column.hidden,
|
|
98
98
|
index: columnConfigIndex > -1 ? columnConfigIndex : index,
|
|
99
|
-
visible: existingConfig?.visible === void 0 ? true :
|
|
99
|
+
visible: existingConfig?.visible !== void 0 ? existingConfig.visible : column.visible === void 0 ? true : column.visible,
|
|
100
100
|
originalIndex: index,
|
|
101
101
|
originalVisible: column.visible === void 0 ? true : column.visible
|
|
102
102
|
};
|
|
@@ -335,12 +335,17 @@ function DataGridProvider(props) {
|
|
|
335
335
|
return defaultUserColumns.columnsConfigCards;
|
|
336
336
|
}
|
|
337
337
|
if (cardsViewConfig?.columnsConfig) {
|
|
338
|
-
return cardsViewConfig.columnsConfig.map((colConfig, index) =>
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
338
|
+
return cardsViewConfig.columnsConfig.map((colConfig, index) => {
|
|
339
|
+
const originalColumn = columns.find(
|
|
340
|
+
(col) => col.key === colConfig.columnKey
|
|
341
|
+
);
|
|
342
|
+
return {
|
|
343
|
+
key: colConfig.columnKey,
|
|
344
|
+
visible: originalColumn?.visible === void 0 ? true : originalColumn?.visible,
|
|
345
|
+
index,
|
|
346
|
+
showTitle: colConfig.showTitle
|
|
347
|
+
};
|
|
348
|
+
});
|
|
344
349
|
}
|
|
345
350
|
return void 0;
|
|
346
351
|
})();
|
|
@@ -24,6 +24,7 @@ export interface SeedProps {
|
|
|
24
24
|
withEditors?: boolean;
|
|
25
25
|
aligns?: Record<string, ColumnAlign>;
|
|
26
26
|
names?: Record<string, string>;
|
|
27
|
+
visibleColumns?: string[];
|
|
27
28
|
}
|
|
28
29
|
export type GetColumnsProps = Omit<SeedProps, 'quantity'>;
|
|
29
30
|
export type ColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom';
|