@firecms/core 3.0.0-canary.270 → 3.0.0-canary.272
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.
- package/dist/index.es.js +6 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collections.d.ts +2 -0
- package/package.json +5 -5
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -1
- package/src/components/common/useColumnsIds.tsx +1 -8
- package/src/types/collections.ts +2 -0
|
@@ -60,6 +60,8 @@ export interface EntityCollection<M extends Record<string, any> = any, USER exte
|
|
|
60
60
|
* https://fonts.google.com/icons
|
|
61
61
|
* e.g. 'account_tree' or 'person'.
|
|
62
62
|
* Find all the icons in https://firecms.co/docs/icons
|
|
63
|
+
* You can also pass a React node if you want to render a custom icon.
|
|
64
|
+
* If not specified, a default icon will be used.
|
|
63
65
|
*/
|
|
64
66
|
icon?: string | React.ReactNode;
|
|
65
67
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.272",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@dnd-kit/core": "^6.3.1",
|
|
54
54
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
55
55
|
"@dnd-kit/sortable": "^10.0.0",
|
|
56
|
-
"@firecms/editor": "^3.0.0-canary.
|
|
57
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
58
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
56
|
+
"@firecms/editor": "^3.0.0-canary.272",
|
|
57
|
+
"@firecms/formex": "^3.0.0-canary.272",
|
|
58
|
+
"@firecms/ui": "^3.0.0-canary.272",
|
|
59
59
|
"@radix-ui/react-portal": "^1.1.9",
|
|
60
60
|
"clsx": "^2.1.1",
|
|
61
61
|
"date-fns": "^3.6.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"dist",
|
|
109
109
|
"src"
|
|
110
110
|
],
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "1b3738e54c7c7e6be9329c43091231486fe5dd74",
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"access": "public"
|
|
114
114
|
},
|
|
@@ -123,7 +123,7 @@ export function StringNumberFilterField({
|
|
|
123
123
|
: evt.target.value;
|
|
124
124
|
updateFilter(operation, val);
|
|
125
125
|
}}
|
|
126
|
-
endAdornment={internalValue && <IconButton
|
|
126
|
+
endAdornment={internalValue !== undefined && internalValue != null && <IconButton
|
|
127
127
|
onClick={(e) => updateFilter(operation, undefined)}>
|
|
128
128
|
<CloseIcon/>
|
|
129
129
|
</IconButton>}
|
|
@@ -8,14 +8,7 @@ export const COLLECTION_GROUP_PARENT_ID = "collectionGroupParent";
|
|
|
8
8
|
export function useColumnIds<M extends Record<string, any>>(collection: ResolvedEntityCollection<M>, includeSubcollections: boolean): PropertyColumnConfig[] {
|
|
9
9
|
return useMemo(() => {
|
|
10
10
|
if (collection.propertiesOrder) {
|
|
11
|
-
|
|
12
|
-
if (collection.collectionGroup) {
|
|
13
|
-
propertyColumnConfigs.push({
|
|
14
|
-
key: COLLECTION_GROUP_PARENT_ID,
|
|
15
|
-
disabled: true
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return propertyColumnConfigs;
|
|
11
|
+
return hideAndExpandKeys(collection, collection.propertiesOrder);
|
|
19
12
|
}
|
|
20
13
|
return getDefaultColumnKeys(collection, includeSubcollections);
|
|
21
14
|
}, [collection, includeSubcollections]);
|
package/src/types/collections.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface EntityCollection<M extends Record<string, any> = any, USER exte
|
|
|
69
69
|
* https://fonts.google.com/icons
|
|
70
70
|
* e.g. 'account_tree' or 'person'.
|
|
71
71
|
* Find all the icons in https://firecms.co/docs/icons
|
|
72
|
+
* You can also pass a React node if you want to render a custom icon.
|
|
73
|
+
* If not specified, a default icon will be used.
|
|
72
74
|
*/
|
|
73
75
|
icon?: string | React.ReactNode;
|
|
74
76
|
|