@firecms/collection_editor 3.0.1 → 3.1.0-canary.768c91f
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/ConfigControllerProvider.d.ts +6 -0
- package/dist/api/generateCollectionApi.d.ts +71 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.es.js +9466 -5588
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9461 -5583
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collection_editor_controller.d.ts +14 -0
- package/dist/types/collection_inference.d.ts +8 -2
- package/dist/types/config_controller.d.ts +23 -2
- package/dist/ui/AddKanbanColumnAction.d.ts +11 -0
- package/dist/ui/KanbanSetupAction.d.ts +10 -0
- package/dist/ui/collection_editor/AICollectionGeneratorPopover.d.ts +37 -0
- package/dist/ui/collection_editor/AIModifiedPathsContext.d.ts +20 -0
- package/dist/ui/collection_editor/CollectionDetailsForm.d.ts +2 -3
- package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +24 -0
- package/dist/ui/collection_editor/CollectionEditorWelcomeView.d.ts +4 -1
- package/dist/ui/collection_editor/CollectionJsonImportDialog.d.ts +7 -0
- package/dist/ui/collection_editor/CollectionYupValidation.d.ts +9 -13
- package/dist/ui/collection_editor/DisplaySettingsForm.d.ts +3 -0
- package/dist/ui/collection_editor/EntityActionsEditTab.d.ts +2 -1
- package/dist/ui/collection_editor/ExtendSettingsForm.d.ts +14 -0
- package/dist/ui/collection_editor/GeneralSettingsForm.d.ts +7 -0
- package/dist/ui/collection_editor/KanbanConfigSection.d.ts +4 -0
- package/dist/ui/collection_editor/PropertyEditView.d.ts +6 -1
- package/dist/ui/collection_editor/PropertyTree.d.ts +2 -1
- package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +2 -1
- package/dist/ui/collection_editor/ViewModeSwitch.d.ts +6 -0
- package/dist/ui/collection_editor/properties/EnumPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +10 -0
- package/dist/ui/collection_editor/properties/conditions/ConditionsPanel.d.ts +2 -0
- package/dist/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +6 -0
- package/dist/ui/collection_editor/properties/conditions/index.d.ts +6 -0
- package/dist/ui/collection_editor/properties/conditions/property_paths.d.ts +19 -0
- package/dist/useCollectionEditorPlugin.d.ts +7 -1
- package/dist/utils/validateCollectionJson.d.ts +22 -0
- package/package.json +15 -15
- package/src/ConfigControllerProvider.tsx +82 -47
- package/src/api/generateCollectionApi.ts +119 -0
- package/src/api/index.ts +1 -0
- package/src/index.ts +28 -1
- package/src/types/collection_editor_controller.tsx +16 -3
- package/src/types/collection_inference.ts +15 -2
- package/src/types/config_controller.tsx +27 -2
- package/src/ui/AddKanbanColumnAction.tsx +203 -0
- package/src/ui/EditorCollectionActionStart.tsx +1 -2
- package/src/ui/HomePageEditorCollectionAction.tsx +41 -13
- package/src/ui/KanbanSetupAction.tsx +38 -0
- package/src/ui/MissingReferenceWidget.tsx +1 -1
- package/src/ui/NewCollectionButton.tsx +1 -1
- package/src/ui/PropertyAddColumnComponent.tsx +1 -1
- package/src/ui/collection_editor/AICollectionGeneratorPopover.tsx +242 -0
- package/src/ui/collection_editor/AIModifiedPathsContext.tsx +88 -0
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +212 -259
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +237 -169
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +133 -67
- package/src/ui/collection_editor/CollectionJsonImportDialog.tsx +171 -0
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +190 -91
- package/src/ui/collection_editor/DisplaySettingsForm.tsx +333 -0
- package/src/ui/collection_editor/EntityActionsEditTab.tsx +106 -96
- package/src/ui/collection_editor/EntityActionsSelectDialog.tsx +6 -7
- package/src/ui/collection_editor/EntityCustomViewsSelectDialog.tsx +1 -3
- package/src/ui/collection_editor/EnumForm.tsx +147 -100
- package/src/ui/collection_editor/ExtendSettingsForm.tsx +93 -0
- package/src/ui/collection_editor/GeneralSettingsForm.tsx +337 -0
- package/src/ui/collection_editor/GetCodeDialog.tsx +57 -36
- package/src/ui/collection_editor/KanbanConfigSection.tsx +207 -0
- package/src/ui/collection_editor/LayoutModeSwitch.tsx +22 -41
- package/src/ui/collection_editor/PropertyEditView.tsx +206 -142
- package/src/ui/collection_editor/PropertyFieldPreview.tsx +1 -1
- package/src/ui/collection_editor/PropertyTree.tsx +130 -58
- package/src/ui/collection_editor/SubcollectionsEditTab.tsx +171 -162
- package/src/ui/collection_editor/UnsavedChangesDialog.tsx +0 -2
- package/src/ui/collection_editor/ViewModeSwitch.tsx +41 -0
- package/src/ui/collection_editor/properties/BlockPropertyField.tsx +0 -2
- package/src/ui/collection_editor/properties/BooleanPropertyField.tsx +1 -0
- package/src/ui/collection_editor/properties/DateTimePropertyField.tsx +117 -35
- package/src/ui/collection_editor/properties/EnumPropertyField.tsx +28 -21
- package/src/ui/collection_editor/properties/MapPropertyField.tsx +0 -2
- package/src/ui/collection_editor/properties/MarkdownPropertyField.tsx +115 -39
- package/src/ui/collection_editor/properties/StoragePropertyField.tsx +1 -1
- package/src/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +861 -0
- package/src/ui/collection_editor/properties/conditions/ConditionsPanel.tsx +28 -0
- package/src/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +599 -0
- package/src/ui/collection_editor/properties/conditions/index.ts +6 -0
- package/src/ui/collection_editor/properties/conditions/property_paths.ts +92 -0
- package/src/ui/collection_editor/properties/validation/ValidationPanel.tsx +1 -1
- package/src/useCollectionEditorPlugin.tsx +32 -17
- package/src/utils/validateCollectionJson.ts +380 -0
|
@@ -30,19 +30,21 @@ import { EntityCustomViewsSelectDialog } from "./EntityCustomViewsSelectDialog";
|
|
|
30
30
|
import { useFormex } from "@firecms/formex";
|
|
31
31
|
|
|
32
32
|
export function SubcollectionsEditTab({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
collection,
|
|
34
|
+
parentCollection,
|
|
35
|
+
configController,
|
|
36
|
+
collectionInference,
|
|
37
|
+
getUser,
|
|
38
|
+
parentCollectionIds,
|
|
39
|
+
embedded = false
|
|
40
|
+
}: {
|
|
40
41
|
collection: PersistedCollection,
|
|
41
42
|
parentCollection?: EntityCollection,
|
|
42
43
|
configController: CollectionsConfigController;
|
|
43
44
|
collectionInference?: CollectionInference;
|
|
44
45
|
getUser?: (uid: string) => User | null;
|
|
45
46
|
parentCollectionIds?: string[];
|
|
47
|
+
embedded?: boolean;
|
|
46
48
|
}) {
|
|
47
49
|
|
|
48
50
|
const { entityViews: contextEntityViews } = useCustomizationController();
|
|
@@ -68,177 +70,184 @@ export function SubcollectionsEditTab({
|
|
|
68
70
|
const hardCodedEntityViews = collection.entityViews?.filter(e => typeof e !== "string") as EntityCustomView[] ?? [];
|
|
69
71
|
const totalEntityViews = resolvedEntityViews.length + hardCodedEntityViews.length;
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
<div className={"
|
|
73
|
-
<Container maxWidth={"2xl"} className={"flex flex-col gap-4 p-8 m-auto"}>
|
|
74
|
-
<div className={"flex flex-col gap-16"}>
|
|
73
|
+
const content = (
|
|
74
|
+
<div className={"flex flex-col gap-16"}>
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
<div className={"flex-grow flex flex-col gap-4 items-start"}>
|
|
77
|
+
<Typography variant={"h6"}>
|
|
78
|
+
Subcollections of {values.name}
|
|
79
|
+
</Typography>
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
81
|
+
<Paper className={"flex flex-col gap-4 p-2 w-full"}>
|
|
82
|
+
{subcollections && subcollections.length > 0 && <Table>
|
|
83
|
+
<TableBody>
|
|
84
|
+
{subcollections.map((subcollection) => (
|
|
85
|
+
<TableRow key={subcollection.path}
|
|
86
|
+
onClick={() => setCurrentDialog({
|
|
87
|
+
isNewCollection: false,
|
|
88
|
+
editedCollectionId: subcollection.id
|
|
89
|
+
})}>
|
|
90
|
+
<TableCell
|
|
91
|
+
align="left">
|
|
92
|
+
<Typography variant={"subtitle2"} className={"flex-grow"}>
|
|
93
|
+
{subcollection.name}
|
|
94
|
+
</Typography>
|
|
95
|
+
</TableCell>
|
|
96
|
+
<TableCell
|
|
97
|
+
align="right">
|
|
98
|
+
<Tooltip title={"Remove"}
|
|
99
|
+
asChild={true}>
|
|
100
|
+
<IconButton size="small"
|
|
101
|
+
onClick={(e) => {
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
e.stopPropagation();
|
|
104
|
+
setSubcollectionToDelete(subcollection.id);
|
|
105
|
+
}}
|
|
106
|
+
color="inherit">
|
|
107
|
+
<DeleteIcon size={"small"} />
|
|
108
|
+
</IconButton>
|
|
109
|
+
</Tooltip>
|
|
110
|
+
</TableCell>
|
|
111
|
+
</TableRow>
|
|
112
|
+
))}
|
|
113
|
+
</TableBody>
|
|
114
|
+
</Table>}
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</Button>
|
|
116
|
+
<Button
|
|
117
|
+
onClick={() => {
|
|
118
|
+
setCurrentDialog({
|
|
119
|
+
isNewCollection: true
|
|
120
|
+
});
|
|
121
|
+
}}
|
|
122
|
+
startIcon={<AddIcon />}>
|
|
123
|
+
Add subcollection
|
|
124
|
+
</Button>
|
|
126
125
|
|
|
127
|
-
|
|
126
|
+
</Paper>
|
|
128
127
|
|
|
129
|
-
|
|
128
|
+
</div>
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
<div className={"flex-grow flex flex-col gap-4 items-start"}>
|
|
131
|
+
<Typography variant={"h6"}>
|
|
132
|
+
Custom views
|
|
133
|
+
</Typography>
|
|
135
134
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
135
|
+
{totalEntityViews === 0 &&
|
|
136
|
+
<Alert action={<Button variant="text"
|
|
137
|
+
size={"small"}
|
|
138
|
+
href={"https://firecms.co/docs/cloud/quickstart"}
|
|
139
|
+
component={"a"}
|
|
140
|
+
rel="noopener noreferrer"
|
|
141
|
+
target="_blank">More info</Button>}>
|
|
142
|
+
Define your own custom views by uploading them with the CLI.
|
|
143
|
+
</Alert>
|
|
144
|
+
}
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
146
|
+
{<>
|
|
147
|
+
<Paper className={"flex flex-col gap-4 p-2 w-full"}>
|
|
148
|
+
<Table>
|
|
149
|
+
<TableBody>
|
|
150
|
+
{resolvedEntityViews.map((view) => (
|
|
151
|
+
<TableRow key={view.key}>
|
|
152
|
+
<TableCell
|
|
153
|
+
align="left">
|
|
154
|
+
<Typography variant={"subtitle2"} className={"flex-grow"}>
|
|
155
|
+
{view.name}
|
|
156
|
+
</Typography>
|
|
157
|
+
</TableCell>
|
|
158
|
+
<TableCell
|
|
159
|
+
align="right">
|
|
160
|
+
<Tooltip title={"Remove"}
|
|
161
|
+
asChild={true}>
|
|
162
|
+
<IconButton size="small"
|
|
163
|
+
onClick={(e) => {
|
|
164
|
+
e.preventDefault();
|
|
165
|
+
e.stopPropagation();
|
|
166
|
+
setViewToDelete(view.key);
|
|
167
|
+
}}
|
|
168
|
+
color="inherit">
|
|
169
|
+
<DeleteIcon size={"small"} />
|
|
170
|
+
</IconButton>
|
|
171
|
+
</Tooltip>
|
|
172
|
+
</TableCell>
|
|
173
|
+
</TableRow>
|
|
174
|
+
))}
|
|
175
|
+
{hardCodedEntityViews.map((view) => (
|
|
176
|
+
<TableRow key={view.key}>
|
|
177
|
+
<TableCell
|
|
178
|
+
align="left">
|
|
179
|
+
<Typography variant={"subtitle2"} className={"flex-grow"}>
|
|
180
|
+
{view.name}
|
|
181
|
+
</Typography>
|
|
182
|
+
<Typography variant={"caption"} className={"flex-grow"}>
|
|
183
|
+
This view is defined in code with
|
|
184
|
+
key <code>{view.key}</code>
|
|
185
|
+
</Typography>
|
|
186
|
+
</TableCell>
|
|
187
|
+
</TableRow>
|
|
188
|
+
))}
|
|
189
|
+
</TableBody>
|
|
190
|
+
</Table>
|
|
192
191
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
</Paper>
|
|
192
|
+
<Button
|
|
193
|
+
onClick={() => {
|
|
194
|
+
setAddEntityViewDialogOpen(true);
|
|
195
|
+
}}
|
|
196
|
+
startIcon={<AddIcon />}>
|
|
197
|
+
Add custom entity view
|
|
198
|
+
</Button>
|
|
199
|
+
</Paper>
|
|
202
200
|
|
|
203
|
-
|
|
201
|
+
</>}
|
|
204
202
|
|
|
205
203
|
|
|
206
|
-
|
|
204
|
+
</div>
|
|
207
205
|
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
</div>
|
|
207
|
+
);
|
|
210
208
|
|
|
211
|
-
|
|
209
|
+
return (
|
|
210
|
+
<>
|
|
211
|
+
{embedded ? (
|
|
212
|
+
content
|
|
213
|
+
) : (
|
|
214
|
+
<div className={"overflow-auto my-auto"}>
|
|
215
|
+
<Container maxWidth={"2xl"} className={"flex flex-col gap-4 p-8 m-auto"}>
|
|
216
|
+
{content}
|
|
217
|
+
</Container>
|
|
218
|
+
<div style={{ height: "52px" }} />
|
|
219
|
+
</div>
|
|
220
|
+
)}
|
|
212
221
|
|
|
213
222
|
{subcollectionToDelete &&
|
|
214
223
|
<ConfirmationDialog open={Boolean(subcollectionToDelete)}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
onAccept={() => {
|
|
225
|
+
const props = {
|
|
226
|
+
id: subcollectionToDelete,
|
|
227
|
+
parentCollectionIds: [...(parentCollectionIds ?? []), collection.id]
|
|
228
|
+
};
|
|
229
|
+
console.debug("Deleting subcollection", props)
|
|
230
|
+
configController.deleteCollection(props).then(() => {
|
|
231
|
+
setSubcollectionToDelete(undefined);
|
|
232
|
+
setSubcollections(subcollections?.filter(e => e.id !== subcollectionToDelete))
|
|
233
|
+
});
|
|
234
|
+
}}
|
|
235
|
+
onCancel={() => setSubcollectionToDelete(undefined)}
|
|
236
|
+
title={<>Delete this subcollection?</>}
|
|
237
|
+
body={<> This will <b>not
|
|
238
|
+
delete any data</b>, only
|
|
239
|
+
the collection in the CMS</>} />}
|
|
231
240
|
{viewToDelete &&
|
|
232
241
|
<ConfirmationDialog open={Boolean(viewToDelete)}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
onAccept={() => {
|
|
243
|
+
setFieldValue("entityViews", values.entityViews?.filter(e => e !== viewToDelete));
|
|
244
|
+
setViewToDelete(undefined);
|
|
245
|
+
}}
|
|
246
|
+
onCancel={() => setViewToDelete(undefined)}
|
|
247
|
+
title={<>Remove this view?</>}
|
|
248
|
+
body={<>This will <b>not
|
|
249
|
+
delete any data</b>, only
|
|
250
|
+
the view in the CMS</>} />}
|
|
242
251
|
|
|
243
252
|
<CollectionEditorDialog
|
|
244
253
|
open={Boolean(currentDialog)}
|
|
@@ -254,7 +263,7 @@ export function SubcollectionsEditTab({
|
|
|
254
263
|
setSubcollections([...subcollections, updatedCollection]);
|
|
255
264
|
}
|
|
256
265
|
setCurrentDialog(undefined);
|
|
257
|
-
}}/>
|
|
266
|
+
}} />
|
|
258
267
|
|
|
259
268
|
<EntityCustomViewsSelectDialog
|
|
260
269
|
open={addEntityViewDialogOpen}
|
|
@@ -263,7 +272,7 @@ export function SubcollectionsEditTab({
|
|
|
263
272
|
setFieldValue("entityViews", [...(values.entityViews ?? []), selectedViewKey]);
|
|
264
273
|
}
|
|
265
274
|
setAddEntityViewDialogOpen(false);
|
|
266
|
-
}}/>
|
|
267
|
-
|
|
275
|
+
}} />
|
|
276
|
+
</>
|
|
268
277
|
);
|
|
269
278
|
}
|
|
@@ -38,10 +38,8 @@ export function UnsavedChangesDialog({
|
|
|
38
38
|
|
|
39
39
|
<DialogActions>
|
|
40
40
|
<Button variant="text"
|
|
41
|
-
color={"primary"}
|
|
42
41
|
onClick={handleCancel} autoFocus> Cancel </Button>
|
|
43
42
|
<Button
|
|
44
|
-
color={"primary"}
|
|
45
43
|
onClick={handleOk}> Ok </Button>
|
|
46
44
|
</DialogActions>
|
|
47
45
|
</Dialog>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ViewMode } from "@firecms/core";
|
|
2
|
+
import { AppsIcon, cls, ListIcon, ToggleButtonGroup, Typography, ViewKanbanIcon } from "@firecms/ui";
|
|
3
|
+
|
|
4
|
+
export function ViewModeSwitch({
|
|
5
|
+
value,
|
|
6
|
+
onChange,
|
|
7
|
+
className
|
|
8
|
+
}: {
|
|
9
|
+
value: ViewMode;
|
|
10
|
+
onChange: (value: ViewMode) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}) {
|
|
13
|
+
|
|
14
|
+
return <div className={cls(className)}>
|
|
15
|
+
<Typography variant={"label"} color={"secondary"} className={"ml-3.5"}>Default collection view</Typography>
|
|
16
|
+
<div className={"my-2"}>
|
|
17
|
+
<ToggleButtonGroup
|
|
18
|
+
value={value}
|
|
19
|
+
onValueChange={onChange}
|
|
20
|
+
options={[
|
|
21
|
+
{
|
|
22
|
+
value: "table",
|
|
23
|
+
label: "Table",
|
|
24
|
+
icon: <ListIcon />
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "cards",
|
|
28
|
+
label: "Cards",
|
|
29
|
+
icon: <AppsIcon />
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: "kanban",
|
|
33
|
+
label: "Kanban",
|
|
34
|
+
icon: <ViewKanbanIcon />
|
|
35
|
+
}
|
|
36
|
+
]}
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
<Typography variant={"caption"} color={"secondary"} className={"ml-3.5"}>Choose how entities should be displayed by default</Typography>
|
|
40
|
+
</div>
|
|
41
|
+
}
|
|
@@ -27,6 +27,7 @@ export function BooleanPropertyField({ disabled }: {
|
|
|
27
27
|
name={"defaultValue"}>
|
|
28
28
|
{({ field, form }: FormexFieldProps) => {
|
|
29
29
|
return <SwitchControl
|
|
30
|
+
size={"medium"}
|
|
30
31
|
label={defaultValue === null || defaultValue === undefined ? "Default value not set" : ("Default value is " + defaultValue.toString())}
|
|
31
32
|
disabled={disabled}
|
|
32
33
|
allowIndeterminate={true} field={field}
|