@comet/admin-generator 8.11.0-canary-20251223114612 → 8.11.0-canary-20251223115946
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.
|
@@ -463,7 +463,7 @@ function generateGrid({ exportName, baseOutputFilename, targetDirectory, gqlIntr
|
|
|
463
463
|
maxWidth: column.maxWidth,
|
|
464
464
|
flex: column.flex,
|
|
465
465
|
headerInfoTooltip: column.headerInfoTooltip,
|
|
466
|
-
visible: column.visible
|
|
466
|
+
visible: column.visible !== undefined ? (typeof column.visible == "string" ? `theme.breakpoints.${column.visible}` : "false") : undefined,
|
|
467
467
|
pinned: column.pinned,
|
|
468
468
|
disableExport: column.disableExport,
|
|
469
469
|
};
|
|
@@ -518,7 +518,7 @@ function generateGrid({ exportName, baseOutputFilename, targetDirectory, gqlIntr
|
|
|
518
518
|
maxWidth: column.maxWidth,
|
|
519
519
|
flex: column.flex,
|
|
520
520
|
headerInfoTooltip: column.headerInfoTooltip,
|
|
521
|
-
visible: column.visible
|
|
521
|
+
visible: column.visible !== undefined ? (typeof column.visible == "string" ? `theme.breakpoints.${column.visible}` : "false") : undefined,
|
|
522
522
|
pinned: column.pinned,
|
|
523
523
|
disableExport: column.disableExport,
|
|
524
524
|
sortBy: "sortBy" in column ? column.sortBy : undefined,
|
|
@@ -759,7 +759,11 @@ function generateGrid({ exportName, baseOutputFilename, targetDirectory, gqlIntr
|
|
|
759
759
|
id: `${instanceGqlType}.actions`,
|
|
760
760
|
type: "intlCall",
|
|
761
761
|
})
|
|
762
|
-
: `""`, sortable: "false", filterable: "false", type: '"actions"', align: '"right"', pinned: `"${actionsColumnPinned}"`, width: forwardRowAction ? "actionsColumnWidth" : actionsColumnWidth, visible: actionsColumnVisible
|
|
762
|
+
: `""`, sortable: "false", filterable: "false", type: '"actions"', align: '"right"', pinned: `"${actionsColumnPinned}"`, width: forwardRowAction ? "actionsColumnWidth" : actionsColumnWidth, visible: actionsColumnVisible !== undefined
|
|
763
|
+
? typeof actionsColumnVisible == "string"
|
|
764
|
+
? `theme.breakpoints.${actionsColumnVisible}`
|
|
765
|
+
: "false"
|
|
766
|
+
: undefined }, restActionsColumnConfig), { headerInfoTooltip: restActionsColumnConfig.headerInfoTooltip
|
|
763
767
|
? (0, intl_1.generateFormattedMessage)({
|
|
764
768
|
config: restActionsColumnConfig.headerInfoTooltip,
|
|
765
769
|
id: `${instanceGqlType}.actions`,
|
|
@@ -2,5 +2,5 @@ import { type Breakpoint } from "@mui/material";
|
|
|
2
2
|
type BreakpointKey = `'${Breakpoint}'` | number;
|
|
3
3
|
type SingleValueBrakpointTypes = "up" | "down" | "only" | "not";
|
|
4
4
|
type MultiValueBrakpointTypes = "between";
|
|
5
|
-
export type ColumnVisibleOption = `${SingleValueBrakpointTypes}(${BreakpointKey})` | `${MultiValueBrakpointTypes}(${BreakpointKey}, ${BreakpointKey})
|
|
5
|
+
export type ColumnVisibleOption = `${SingleValueBrakpointTypes}(${BreakpointKey})` | `${MultiValueBrakpointTypes}(${BreakpointKey}, ${BreakpointKey})` | false;
|
|
6
6
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin-generator",
|
|
3
|
-
"version": "8.11.0-canary-
|
|
3
|
+
"version": "8.11.0-canary-20251223115946",
|
|
4
4
|
"description": "Comet Admin Generator CLI tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/admin-generator",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"rimraf": "^6.1.2",
|
|
49
49
|
"ts-jest": "^29.4.0",
|
|
50
50
|
"typescript": "5.9.3",
|
|
51
|
-
"@comet/admin": "8.11.0-canary-
|
|
52
|
-
"@comet/admin-icons": "8.11.0-canary-
|
|
53
|
-
"@comet/cms-admin": "8.11.0-canary-
|
|
54
|
-
"@comet/eslint-config": "8.11.0-canary-
|
|
51
|
+
"@comet/admin": "8.11.0-canary-20251223115946",
|
|
52
|
+
"@comet/admin-icons": "8.11.0-canary-20251223115946",
|
|
53
|
+
"@comet/cms-admin": "8.11.0-canary-20251223115946",
|
|
54
|
+
"@comet/eslint-config": "8.11.0-canary-20251223115946"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=22.0.0"
|