@firecms/core 3.0.0-canary.136 → 3.0.0-canary.138
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/README.md +1 -1
- package/dist/components/PropertyConfigBadge.d.ts +2 -1
- package/dist/index.es.js +49 -52
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +50 -53
- package/dist/index.umd.js.map +1 -1
- package/dist/types/property_config.d.ts +0 -2
- package/dist/util/resolutions.d.ts +6 -6
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +3 -4
- package/src/components/DeleteEntityDialog.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +2 -2
- package/src/components/EntityPreview.tsx +1 -1
- package/src/components/EntityView.tsx +1 -1
- package/src/components/PropertyConfigBadge.tsx +9 -3
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +1 -2
- package/src/components/common/default_entity_actions.tsx +2 -2
- package/src/core/DefaultAppBar.tsx +69 -73
- package/src/core/EntityEditView.tsx +4 -4
- package/src/core/FireCMS.tsx +1 -4
- package/src/form/PropertyFieldBinding.tsx +2 -2
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +0 -1
- package/src/hooks/data/save.ts +3 -3
- package/src/internal/useBuildDataSource.ts +1 -1
- package/src/preview/PropertyPreview.tsx +1 -1
- package/src/preview/components/ImagePreview.tsx +2 -2
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +1 -1
- package/src/types/property_config.tsx +0 -2
- package/src/util/property_utils.tsx +1 -1
- package/src/util/resolutions.ts +8 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("react"), require("
|
|
3
|
-
})(this, function(exports2, jsxRuntime, React, notistack, hash, formex,
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("react"), require("@firecms/ui"), require("notistack"), require("object-hash"), require("@firecms/formex"), require("react-fast-compare"), require("react-router-dom"), require("date-fns"), require("date-fns/locale"), require("react-use-measure"), require("react-dropzone"), require("@hello-pangea/dnd"), require("react-image-file-resizer"), require("fuse.js"), require("react-window"), require("yup"), require("@firecms/editor"), require("@radix-ui/react-portal")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "react", "@firecms/ui", "notistack", "object-hash", "@firecms/formex", "react-fast-compare", "react-router-dom", "date-fns", "date-fns/locale", "react-use-measure", "react-dropzone", "@hello-pangea/dnd", "react-image-file-resizer", "fuse.js", "react-window", "yup", "@firecms/editor", "@radix-ui/react-portal"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["FireCMS Core"] = {}, global.jsxRuntime, global.React, global.ui, global.notistack, global.hash, global.formex, global.equal, global.reactRouterDom, global.dateFns, global.locales, global.useMeasure, global.reactDropzone, global.dnd, global.Resizer, global.Fuse, global.reactWindow, global.yup, global.editor, global.Portal));
|
|
3
|
+
})(this, function(exports2, jsxRuntime, React, ui, notistack, hash, formex, equal, reactRouterDom, dateFns, locales, useMeasure, reactDropzone, dnd, Resizer, Fuse, reactWindow, yup, editor, Portal) {
|
|
4
4
|
"use strict";
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
propertyKey: "ignore",
|
|
677
677
|
// TODO
|
|
678
678
|
propertyOrBuilder,
|
|
679
|
-
fields
|
|
679
|
+
propertyConfigs: fields
|
|
680
680
|
});
|
|
681
681
|
if (!resolvedProperty) return null;
|
|
682
682
|
if (resolvedProperty.dataType === "reference") {
|
|
@@ -3581,7 +3581,7 @@
|
|
|
3581
3581
|
path,
|
|
3582
3582
|
values: previousValues,
|
|
3583
3583
|
entityId,
|
|
3584
|
-
|
|
3584
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
3585
3585
|
});
|
|
3586
3586
|
updatedValues = await callbacks.onPreSave({
|
|
3587
3587
|
collection: resolvedCollection,
|
|
@@ -3622,7 +3622,7 @@
|
|
|
3622
3622
|
path,
|
|
3623
3623
|
values: updatedValues,
|
|
3624
3624
|
entityId,
|
|
3625
|
-
|
|
3625
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
3626
3626
|
});
|
|
3627
3627
|
callbacks.onSaveSuccess({
|
|
3628
3628
|
collection: resolvedCollection,
|
|
@@ -3649,7 +3649,7 @@
|
|
|
3649
3649
|
path,
|
|
3650
3650
|
values: updatedValues,
|
|
3651
3651
|
entityId,
|
|
3652
|
-
|
|
3652
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
3653
3653
|
});
|
|
3654
3654
|
callbacks.onSaveFailure({
|
|
3655
3655
|
collection: resolvedCollection,
|
|
@@ -4617,7 +4617,7 @@
|
|
|
4617
4617
|
ui.ContentCopyIcon,
|
|
4618
4618
|
{
|
|
4619
4619
|
className: "text-gray-700 dark:text-gray-300",
|
|
4620
|
-
size: "
|
|
4620
|
+
size: "smallest"
|
|
4621
4621
|
}
|
|
4622
4622
|
)
|
|
4623
4623
|
}
|
|
@@ -4639,7 +4639,7 @@
|
|
|
4639
4639
|
ui.OpenInNewIcon,
|
|
4640
4640
|
{
|
|
4641
4641
|
className: "text-gray-700 dark:text-gray-300",
|
|
4642
|
-
size: "
|
|
4642
|
+
size: "smallest"
|
|
4643
4643
|
}
|
|
4644
4644
|
)
|
|
4645
4645
|
}
|
|
@@ -5113,7 +5113,7 @@
|
|
|
5113
5113
|
const property = resolveArrayProperty({
|
|
5114
5114
|
propertyKey,
|
|
5115
5115
|
property: inputProperty,
|
|
5116
|
-
|
|
5116
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5117
5117
|
});
|
|
5118
5118
|
if (!property.of) {
|
|
5119
5119
|
throw Error(`You need to specify an 'of' prop (or specify a custom field) in your array property ${propertyKey}`);
|
|
@@ -5168,7 +5168,7 @@
|
|
|
5168
5168
|
collection,
|
|
5169
5169
|
path: entity.path,
|
|
5170
5170
|
values: entity.values,
|
|
5171
|
-
|
|
5171
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5172
5172
|
}), [collection]);
|
|
5173
5173
|
const listProperties = React.useMemo(
|
|
5174
5174
|
() => getEntityPreviewKeys(resolvedCollection, customizationController.propertyConfigs, previewProperties, size === "small" || size === "medium" ? 3 : 1),
|
|
@@ -5470,7 +5470,7 @@
|
|
|
5470
5470
|
const property = resolveArrayProperty({
|
|
5471
5471
|
propertyKey,
|
|
5472
5472
|
property: inputProperty,
|
|
5473
|
-
|
|
5473
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5474
5474
|
});
|
|
5475
5475
|
if (Array.isArray(property?.of)) {
|
|
5476
5476
|
throw Error("Using array properties instead of single one in `of` in ArrayProperty");
|
|
@@ -5513,7 +5513,7 @@
|
|
|
5513
5513
|
const property = resolveArrayProperty({
|
|
5514
5514
|
propertyKey,
|
|
5515
5515
|
property: inputProperty,
|
|
5516
|
-
|
|
5516
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5517
5517
|
});
|
|
5518
5518
|
if (Array.isArray(property.of)) {
|
|
5519
5519
|
throw Error("Using array properties instead of single one in `of` in ArrayProperty");
|
|
@@ -5591,7 +5591,7 @@
|
|
|
5591
5591
|
const property = resolveArrayProperty({
|
|
5592
5592
|
propertyKey,
|
|
5593
5593
|
property: inputProperty,
|
|
5594
|
-
|
|
5594
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5595
5595
|
});
|
|
5596
5596
|
if (Array.isArray(property.of)) {
|
|
5597
5597
|
throw Error("Using array properties instead of single one in `of` in ArrayProperty");
|
|
@@ -5625,7 +5625,7 @@
|
|
|
5625
5625
|
const property = resolveArrayProperty({
|
|
5626
5626
|
propertyKey,
|
|
5627
5627
|
property: inputProperty,
|
|
5628
|
-
|
|
5628
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5629
5629
|
});
|
|
5630
5630
|
if (property?.dataType !== "array")
|
|
5631
5631
|
throw Error("Picked wrong preview component ArrayPreview");
|
|
@@ -5875,7 +5875,7 @@
|
|
|
5875
5875
|
const property = resolveProperty({
|
|
5876
5876
|
propertyKey,
|
|
5877
5877
|
propertyOrBuilder: inputProperty,
|
|
5878
|
-
|
|
5878
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
5879
5879
|
});
|
|
5880
5880
|
if (value === void 0 || property === null) {
|
|
5881
5881
|
content = /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {});
|
|
@@ -6112,7 +6112,7 @@
|
|
|
6112
6112
|
const property = resolveArrayProperty({
|
|
6113
6113
|
propertyKey,
|
|
6114
6114
|
property: inputProperty,
|
|
6115
|
-
|
|
6115
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
6116
6116
|
});
|
|
6117
6117
|
if (Array.isArray(property?.of)) {
|
|
6118
6118
|
throw Error("Using array properties instead of single one in `of` in ArrayProperty");
|
|
@@ -6199,7 +6199,7 @@
|
|
|
6199
6199
|
path,
|
|
6200
6200
|
entityId: entity.id,
|
|
6201
6201
|
values: entity.values,
|
|
6202
|
-
|
|
6202
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
6203
6203
|
}), [collection, path, entity, customizationController.propertyConfigs]);
|
|
6204
6204
|
const properties = resolvedCollection.properties;
|
|
6205
6205
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full " + className, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full mb-4", children: [
|
|
@@ -10648,7 +10648,7 @@
|
|
|
10648
10648
|
const resolvedCollection = React.useMemo(() => resolveCollection({
|
|
10649
10649
|
collection,
|
|
10650
10650
|
path,
|
|
10651
|
-
|
|
10651
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
10652
10652
|
}), [collection, path]);
|
|
10653
10653
|
const handleCancel = React.useCallback(() => {
|
|
10654
10654
|
onClose();
|
|
@@ -10807,7 +10807,7 @@
|
|
|
10807
10807
|
return JSON.parse(stored);
|
|
10808
10808
|
}
|
|
10809
10809
|
const editEntityAction = {
|
|
10810
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(ui.
|
|
10810
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, {}),
|
|
10811
10811
|
name: "Edit",
|
|
10812
10812
|
collapsed: false,
|
|
10813
10813
|
onClick({
|
|
@@ -10946,7 +10946,6 @@
|
|
|
10946
10946
|
const analyticsController = useAnalyticsController();
|
|
10947
10947
|
const customizationController = useCustomizationController();
|
|
10948
10948
|
const fullPath = navigation.resolveAliasesFrom(pathInput);
|
|
10949
|
-
console.trace("Opening reference dialog for path " + fullPath);
|
|
10950
10949
|
const dataSource = useDataSource();
|
|
10951
10950
|
const [entitiesDisplayedFirst, setEntitiesDisplayedFirst] = React.useState([]);
|
|
10952
10951
|
const toggleEntitySelection = (entity) => {
|
|
@@ -11072,7 +11071,7 @@
|
|
|
11072
11071
|
collection,
|
|
11073
11072
|
path: fullPath,
|
|
11074
11073
|
values: {},
|
|
11075
|
-
|
|
11074
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
11076
11075
|
}), [collection, customizationController.propertyConfigs, fullPath]);
|
|
11077
11076
|
const displayedColumnIds = useColumnIds(resolvedCollection, false);
|
|
11078
11077
|
const tableController = useDataSourceEntityCollectionTableController({
|
|
@@ -11941,7 +11940,7 @@
|
|
|
11941
11940
|
path,
|
|
11942
11941
|
values: internalValue,
|
|
11943
11942
|
entityId,
|
|
11944
|
-
|
|
11943
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
11945
11944
|
}) : void 0;
|
|
11946
11945
|
const windowSize = useWindowSize();
|
|
11947
11946
|
const draggableRef = React.useRef(null);
|
|
@@ -12474,7 +12473,7 @@
|
|
|
12474
12473
|
const resolvedCollection = React.useMemo(() => resolveCollection({
|
|
12475
12474
|
collection,
|
|
12476
12475
|
path: fullPath,
|
|
12477
|
-
|
|
12476
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
12478
12477
|
}), [collection, fullPath]);
|
|
12479
12478
|
const getPropertyFor = React.useCallback(({
|
|
12480
12479
|
propertyKey,
|
|
@@ -12490,7 +12489,7 @@
|
|
|
12490
12489
|
path: entity.path,
|
|
12491
12490
|
values: entity.values,
|
|
12492
12491
|
entityId: entity.id,
|
|
12493
|
-
|
|
12492
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
12494
12493
|
});
|
|
12495
12494
|
}, [collection.properties, customizationController.propertyConfigs, resolvedCollection.properties]);
|
|
12496
12495
|
const displayedColumnIds = useColumnIds(resolvedCollection, true);
|
|
@@ -12941,15 +12940,18 @@
|
|
|
12941
12940
|
}
|
|
12942
12941
|
) });
|
|
12943
12942
|
}
|
|
12944
|
-
function PropertyConfigBadge({
|
|
12945
|
-
|
|
12943
|
+
function PropertyConfigBadge({
|
|
12944
|
+
propertyConfig,
|
|
12945
|
+
disabled
|
|
12946
|
+
}) {
|
|
12947
|
+
const classes = "h-8 w-8 p-1 rounded-full shadow text-white " + (disabled ? "bg-gray-400 dark:bg-gray-600" : "");
|
|
12946
12948
|
const defaultPropertyConfig = typeof propertyConfig?.property === "object" ? getDefaultFieldConfig(propertyConfig.property) : void 0;
|
|
12947
12949
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12948
12950
|
"div",
|
|
12949
12951
|
{
|
|
12950
12952
|
className: classes,
|
|
12951
12953
|
style: {
|
|
12952
|
-
background: propertyConfig?.color ?? defaultPropertyConfig?.color ?? "#888"
|
|
12954
|
+
background: !disabled ? propertyConfig?.color ?? defaultPropertyConfig?.color ?? "#888" : void 0
|
|
12953
12955
|
},
|
|
12954
12956
|
children: propertyConfig?.Icon ? getIconForWidget(propertyConfig, "medium") : getIconForWidget(defaultPropertyConfig, "medium")
|
|
12955
12957
|
}
|
|
@@ -13271,24 +13273,22 @@
|
|
|
13271
13273
|
const initial = user?.displayName ? user.displayName[0].toUpperCase() : user?.email ? user.email[0].toUpperCase() : "A";
|
|
13272
13274
|
avatarComponent = /* @__PURE__ */ jsxRuntime.jsx(ui.Avatar, { children: initial });
|
|
13273
13275
|
}
|
|
13274
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
13276
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13275
13277
|
"div",
|
|
13276
13278
|
{
|
|
13277
13279
|
style,
|
|
13278
13280
|
className: ui.cls(
|
|
13279
|
-
"w-full h-16 transition-all ease-in duration-75
|
|
13281
|
+
"w-full h-16 transition-all ease-in duration-75 absolute top-0 max-w-full overflow-x-auto no-scrollbar",
|
|
13282
|
+
"flex flex-row gap-2 px-4 items-center",
|
|
13280
13283
|
{
|
|
13281
|
-
"pl-[
|
|
13282
|
-
"pl-
|
|
13284
|
+
"pl-[19rem]": drawerOpen && largeLayout,
|
|
13285
|
+
"pl-24": hasDrawer && !(drawerOpen && largeLayout),
|
|
13283
13286
|
"z-10": largeLayout,
|
|
13284
|
-
|
|
13285
|
-
// "w-[calc(100%-64px)]": hasDrawer && !(drawerOpen && largeLayout),
|
|
13286
|
-
// "w-[calc(100%-17rem)]": hasDrawer && (drawerOpen && largeLayout),
|
|
13287
|
-
"duration-150": drawerOpen && largeLayout
|
|
13287
|
+
"duration-100": drawerOpen && largeLayout
|
|
13288
13288
|
},
|
|
13289
13289
|
className
|
|
13290
13290
|
),
|
|
13291
|
-
children:
|
|
13291
|
+
children: [
|
|
13292
13292
|
navigation && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mr-8 hidden lg:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13293
13293
|
reactRouterDom.Link,
|
|
13294
13294
|
{
|
|
@@ -13342,7 +13342,7 @@
|
|
|
13342
13342
|
"Log Out"
|
|
13343
13343
|
] })
|
|
13344
13344
|
] })
|
|
13345
|
-
]
|
|
13345
|
+
]
|
|
13346
13346
|
}
|
|
13347
13347
|
);
|
|
13348
13348
|
};
|
|
@@ -14184,7 +14184,6 @@
|
|
|
14184
14184
|
throw Error(`Couldn't find the corresponding collection for the path: ${ofProperty.path}`);
|
|
14185
14185
|
}
|
|
14186
14186
|
const onMultipleEntitiesSelected = React.useCallback((entities) => {
|
|
14187
|
-
console.debug("onMultipleEntitiesSelected", entities);
|
|
14188
14187
|
setValue(entities.map((e) => getReferenceFrom(e)));
|
|
14189
14188
|
}, [setValue]);
|
|
14190
14189
|
const referenceDialogController = useReferenceDialog(
|
|
@@ -15138,7 +15137,7 @@
|
|
|
15138
15137
|
values: fieldProps.form.values,
|
|
15139
15138
|
path: context.path,
|
|
15140
15139
|
entityId: context.entityId,
|
|
15141
|
-
|
|
15140
|
+
propertyConfigs: customizationController.propertyConfigs,
|
|
15142
15141
|
index
|
|
15143
15142
|
});
|
|
15144
15143
|
if (resolvedProperty === null || isHidden(resolvedProperty)) {
|
|
@@ -15166,7 +15165,7 @@
|
|
|
15166
15165
|
values: fieldProps.form.values,
|
|
15167
15166
|
path: context.path,
|
|
15168
15167
|
entityId: context.entityId,
|
|
15169
|
-
|
|
15168
|
+
propertyConfigs: customizationController.propertyConfigs,
|
|
15170
15169
|
index
|
|
15171
15170
|
});
|
|
15172
15171
|
Component = configProperty.Field;
|
|
@@ -16889,7 +16888,7 @@
|
|
|
16889
16888
|
values,
|
|
16890
16889
|
previousValues,
|
|
16891
16890
|
userConfigPersistence,
|
|
16892
|
-
|
|
16891
|
+
propertyConfigs,
|
|
16893
16892
|
ignoreMissingFields = false
|
|
16894
16893
|
}) => {
|
|
16895
16894
|
const collectionOverride = userConfigPersistence?.getCollectionConfig(path);
|
|
@@ -16905,7 +16904,7 @@
|
|
|
16905
16904
|
previousValues: usedPreviousValues,
|
|
16906
16905
|
path,
|
|
16907
16906
|
entityId,
|
|
16908
|
-
|
|
16907
|
+
propertyConfigs,
|
|
16909
16908
|
ignoreMissingFields
|
|
16910
16909
|
});
|
|
16911
16910
|
if (!childResolvedProperty) return {};
|
|
@@ -16987,7 +16986,7 @@
|
|
|
16987
16986
|
};
|
|
16988
16987
|
}
|
|
16989
16988
|
if (resolvedProperty.propertyConfig && !isDefaultFieldConfigId(resolvedProperty.propertyConfig)) {
|
|
16990
|
-
const cmsFields = props.
|
|
16989
|
+
const cmsFields = props.propertyConfigs;
|
|
16991
16990
|
if (!cmsFields && !ignoreMissingFields) {
|
|
16992
16991
|
throw Error(`Trying to resolve a property with key '${resolvedProperty.propertyConfig}' that inherits from a custom property config but no custom property configs were provided. Use the property 'propertyConfigs' in your app config to provide them`);
|
|
16993
16992
|
}
|
|
@@ -17459,7 +17458,7 @@
|
|
|
17459
17458
|
collection: inputCollection,
|
|
17460
17459
|
path,
|
|
17461
17460
|
values: entity?.values,
|
|
17462
|
-
|
|
17461
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
17463
17462
|
}), [entity?.values, path, customizationController.propertyConfigs]);
|
|
17464
17463
|
const initialStatus = copy ? "copy" : entityIdProp ? "existing" : "new";
|
|
17465
17464
|
const [status, setStatus] = React.useState(initialStatus);
|
|
@@ -17660,7 +17659,7 @@
|
|
|
17660
17659
|
entityId,
|
|
17661
17660
|
values: formex$1.values,
|
|
17662
17661
|
previousValues: formex$1.initialValues,
|
|
17663
|
-
|
|
17662
|
+
propertyConfigs: customizationController.propertyConfigs
|
|
17664
17663
|
});
|
|
17665
17664
|
const lastSavedValues = React.useRef(entity?.values);
|
|
17666
17665
|
const save = (values) => {
|
|
@@ -17828,7 +17827,7 @@
|
|
|
17828
17827
|
});
|
|
17829
17828
|
setEntityId(updatedId);
|
|
17830
17829
|
} catch (e) {
|
|
17831
|
-
onIdUpdateError
|
|
17830
|
+
onIdUpdateError?.(e);
|
|
17832
17831
|
console.error(e);
|
|
17833
17832
|
}
|
|
17834
17833
|
setCustomIdLoading(false);
|
|
@@ -18031,7 +18030,7 @@
|
|
|
18031
18030
|
children: pluginActions
|
|
18032
18031
|
}
|
|
18033
18032
|
),
|
|
18034
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-12 pb-16 pl-
|
|
18033
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-12 pb-16 pl-4 sm:px-8 md:px-10", children: [
|
|
18035
18034
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18036
18035
|
"div",
|
|
18037
18036
|
{
|
|
@@ -18950,7 +18949,7 @@
|
|
|
18950
18949
|
collection,
|
|
18951
18950
|
path,
|
|
18952
18951
|
entityId,
|
|
18953
|
-
|
|
18952
|
+
propertyConfigs
|
|
18954
18953
|
}) : void 0;
|
|
18955
18954
|
const properties = resolvedCollection?.properties;
|
|
18956
18955
|
const firestoreValues = usedDelegate.cmsToDelegateModel(
|
|
@@ -19118,7 +19117,6 @@
|
|
|
19118
19117
|
navigationController,
|
|
19119
19118
|
apiKey
|
|
19120
19119
|
} = props;
|
|
19121
|
-
ui.useLocaleConfig(locale);
|
|
19122
19120
|
const dataSource = useBuildDataSource({
|
|
19123
19121
|
delegate: dataSourceDelegate,
|
|
19124
19122
|
propertyConfigs,
|
|
@@ -19354,7 +19352,7 @@
|
|
|
19354
19352
|
equal
|
|
19355
19353
|
);
|
|
19356
19354
|
const DrawerHeader = () => {
|
|
19357
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col min-h-
|
|
19355
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col min-h-16" });
|
|
19358
19356
|
};
|
|
19359
19357
|
function DrawerWrapper(props) {
|
|
19360
19358
|
const width = !props.displayed ? 0 : props.open ? DRAWER_WIDTH : 72;
|
|
@@ -19377,13 +19375,12 @@
|
|
|
19377
19375
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19378
19376
|
"div",
|
|
19379
19377
|
{
|
|
19380
|
-
className: "ml-2 fixed top-2 left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19378
|
+
className: "ml-2 fixed top-1 left-2 sm:top-2 sm:left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19381
19379
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19382
19380
|
ui.IconButton,
|
|
19383
19381
|
{
|
|
19384
19382
|
color: "inherit",
|
|
19385
19383
|
"aria-label": "Open menu",
|
|
19386
|
-
className: "sticky top-2 left-3 ",
|
|
19387
19384
|
onClick: () => props.setDrawerOpen(true),
|
|
19388
19385
|
size: "large",
|
|
19389
19386
|
children: /* @__PURE__ */ jsxRuntime.jsx(ui.MenuIcon, {})
|
|
@@ -19423,7 +19420,7 @@
|
|
|
19423
19420
|
"aria-label": "Open drawer",
|
|
19424
19421
|
onClick: () => props.setDrawerOpen(true),
|
|
19425
19422
|
size: "large",
|
|
19426
|
-
className: "absolute top-2 left-5",
|
|
19423
|
+
className: "absolute sm:top-2 sm:left-5 top-1 left-2",
|
|
19427
19424
|
children: /* @__PURE__ */ jsxRuntime.jsx(ui.MenuIcon, {})
|
|
19428
19425
|
}
|
|
19429
19426
|
),
|