@firecms/core 3.0.0-canary.124 → 3.0.0-canary.126
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 +15 -19
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +3 -4
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -1
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -3
- package/src/components/EntityPreview.tsx +3 -3
- package/src/components/HomePage/DefaultHomePage.tsx +0 -1
- package/src/components/SearchIconsView.tsx +0 -1
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -1
- package/src/core/DefaultDrawer.tsx +3 -3
- package/src/core/DrawerNavigationItem.tsx +1 -1
- package/src/core/EntityEditView.tsx +0 -1
- package/src/core/SideDialogs.tsx +0 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -5177,7 +5177,7 @@
|
|
|
5177
5177
|
hover: disabled ? void 0 : hover,
|
|
5178
5178
|
size,
|
|
5179
5179
|
children: [
|
|
5180
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 mr-2 shrink-0
|
|
5180
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 mr-2 shrink-0", size === "smallest" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5181
5181
|
imageProperty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5182
5182
|
PropertyPreview,
|
|
5183
5183
|
{
|
|
@@ -5189,7 +5189,7 @@
|
|
|
5189
5189
|
),
|
|
5190
5190
|
!imageProperty && /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: collection, size, className: "m-auto" })
|
|
5191
5191
|
] }),
|
|
5192
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col
|
|
5192
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full max-w-full m-1", children: [
|
|
5193
5193
|
size !== "smallest" && includeId && (entity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${size !== "medium" ? "block whitespace-nowrap overflow-hidden truncate" : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5194
5194
|
ui.Typography,
|
|
5195
5195
|
{
|
|
@@ -5293,7 +5293,7 @@
|
|
|
5293
5293
|
fullwidth ? "w-full" : "",
|
|
5294
5294
|
"items-center",
|
|
5295
5295
|
hover ? "hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800" : "",
|
|
5296
|
-
size === "smallest" ? "p-1" : "
|
|
5296
|
+
size === "smallest" ? "p-1" : "px-2 py-1",
|
|
5297
5297
|
"flex border rounded-lg",
|
|
5298
5298
|
onClick ? "cursor-pointer" : "",
|
|
5299
5299
|
ui.defaultBorderMixin,
|
|
@@ -7001,7 +7001,7 @@
|
|
|
7001
7001
|
onDropRejected: (fileRejections, event) => {
|
|
7002
7002
|
for (const fileRejection of fileRejections) {
|
|
7003
7003
|
for (const error2 of fileRejection.errors) {
|
|
7004
|
-
console.
|
|
7004
|
+
console.error("Error uploading file: ", error2);
|
|
7005
7005
|
if (error2.code === "file-too-large") {
|
|
7006
7006
|
snackbarContext.open({
|
|
7007
7007
|
type: "error",
|
|
@@ -7165,7 +7165,6 @@
|
|
|
7165
7165
|
updateValue(entity ? getReferenceFrom(entity) : null);
|
|
7166
7166
|
}, [updateValue]);
|
|
7167
7167
|
const onMultipleEntitiesSelected = React.useCallback((entities) => {
|
|
7168
|
-
console.log("onMultipleEntitiesSelected", entities);
|
|
7169
7168
|
updateValue(entities.map((e) => getReferenceFrom(e)));
|
|
7170
7169
|
}, [updateValue]);
|
|
7171
7170
|
const selectedEntityIds = internalValue ? Array.isArray(internalValue) ? internalValue.map((ref) => ref.id) : internalValue.id ? [internalValue.id] : [] : [];
|
|
@@ -9606,7 +9605,6 @@
|
|
|
9606
9605
|
}
|
|
9607
9606
|
}
|
|
9608
9607
|
const multiple = multipleSelectOperations$1.includes(operation);
|
|
9609
|
-
console.log("internalValue", { internalValue });
|
|
9610
9608
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-[440px]", children: [
|
|
9611
9609
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-[80px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9612
9610
|
ui.Select,
|
|
@@ -11536,7 +11534,6 @@
|
|
|
11536
11534
|
setFilteredUrls(null);
|
|
11537
11535
|
} else {
|
|
11538
11536
|
const searchResult = fuse.current?.search(value);
|
|
11539
|
-
console.log("Search result", searchResult);
|
|
11540
11537
|
if (searchResult) {
|
|
11541
11538
|
setFilteredUrls(searchResult.map((e) => e.item.url));
|
|
11542
11539
|
}
|
|
@@ -12337,7 +12334,6 @@
|
|
|
12337
12334
|
tableController.setPopupCell?.(void 0);
|
|
12338
12335
|
}, [tableController.setPopupCell]);
|
|
12339
12336
|
const onEntityClick = React.useCallback((clickedEntity) => {
|
|
12340
|
-
console.log("Entity clicked", clickedEntity);
|
|
12341
12337
|
const collection2 = collectionRef.current;
|
|
12342
12338
|
setHighlightedEntity(clickedEntity);
|
|
12343
12339
|
analyticsController.onAnalyticsEvent?.("edit_entity_clicked", {
|
|
@@ -12851,6 +12847,9 @@
|
|
|
12851
12847
|
{
|
|
12852
12848
|
open: openPopup,
|
|
12853
12849
|
onOpenChange: setOpenPopup,
|
|
12850
|
+
sideOffset: 0,
|
|
12851
|
+
align: "start",
|
|
12852
|
+
alignOffset: -117,
|
|
12854
12853
|
trigger: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", children: /* @__PURE__ */ jsxRuntime.jsx(ui.SearchIcon, { size: "small" }) }),
|
|
12855
12854
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12856
12855
|
"form",
|
|
@@ -12878,7 +12877,7 @@
|
|
|
12878
12877
|
setSearchString(e.target.value);
|
|
12879
12878
|
},
|
|
12880
12879
|
value: searchString,
|
|
12881
|
-
className: "flex-grow bg-transparent outline-none p-1"
|
|
12880
|
+
className: "flex-grow bg-transparent outline-none p-1 " + ui.focusedDisabled
|
|
12882
12881
|
}
|
|
12883
12882
|
),
|
|
12884
12883
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13747,7 +13746,6 @@
|
|
|
13747
13746
|
};
|
|
13748
13747
|
}, [query, updateSearchResults]);
|
|
13749
13748
|
const icons = keys === null ? ui.coolIconKeys : keys;
|
|
13750
|
-
console.log("Icons", icons);
|
|
13751
13749
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13752
13750
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13753
13751
|
ui.SearchBar,
|
|
@@ -14438,7 +14436,7 @@
|
|
|
14438
14436
|
onDropRejected: (fileRejections, event) => {
|
|
14439
14437
|
for (const fileRejection of fileRejections) {
|
|
14440
14438
|
for (const error of fileRejection.errors) {
|
|
14441
|
-
console.
|
|
14439
|
+
console.error("Error uploading file: ", error);
|
|
14442
14440
|
if (error.code === "file-too-large") {
|
|
14443
14441
|
snackbarContext.open({
|
|
14444
14442
|
type: "error",
|
|
@@ -17495,7 +17493,6 @@
|
|
|
17495
17493
|
if (onUpdate)
|
|
17496
17494
|
onUpdate({ entity: updatedEntity });
|
|
17497
17495
|
if (closeAfterSave) {
|
|
17498
|
-
console.log("Closing side dialog");
|
|
17499
17496
|
sideDialogContext.setBlocked(false);
|
|
17500
17497
|
sideDialogContext.close(true);
|
|
17501
17498
|
onClose?.();
|
|
@@ -18345,7 +18342,6 @@
|
|
|
18345
18342
|
const handleDrawerCloseOk = () => {
|
|
18346
18343
|
setBlocked(false);
|
|
18347
18344
|
setDrawerCloseRequested(false);
|
|
18348
|
-
console.log("handleDrawerCloseOk");
|
|
18349
18345
|
sideDialogsController.close();
|
|
18350
18346
|
panel?.onClose?.();
|
|
18351
18347
|
};
|
|
@@ -19323,7 +19319,7 @@
|
|
|
19323
19319
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19324
19320
|
"div",
|
|
19325
19321
|
{
|
|
19326
|
-
className: "fixed top-2 left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19322
|
+
className: "ml-2 fixed top-2 left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19327
19323
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19328
19324
|
ui.IconButton,
|
|
19329
19325
|
{
|
|
@@ -19369,7 +19365,7 @@
|
|
|
19369
19365
|
"aria-label": "Open drawer",
|
|
19370
19366
|
onClick: () => props.setDrawerOpen(true),
|
|
19371
19367
|
size: "large",
|
|
19372
|
-
className: "absolute top-2 left-
|
|
19368
|
+
className: "absolute top-2 left-5",
|
|
19373
19369
|
children: /* @__PURE__ */ jsxRuntime.jsx(ui.MenuIcon, {})
|
|
19374
19370
|
}
|
|
19375
19371
|
),
|
|
@@ -19428,7 +19424,7 @@
|
|
|
19428
19424
|
},
|
|
19429
19425
|
className: ({ isActive }) => ui.cls(
|
|
19430
19426
|
"rounded-lg truncate",
|
|
19431
|
-
"hover:bg-slate-300 hover:bg-opacity-75 dark:hover:bg-
|
|
19427
|
+
"hover:bg-slate-300 hover:bg-opacity-75 dark:hover:bg-slate-800 dark:hover:bg-opacity-75 text-gray-800 dark:text-gray-200 hover:text-gray-900 hover:dark:text-white",
|
|
19432
19428
|
"flex flex-row items-center mr-8",
|
|
19433
19429
|
// "transition-all ease-in-out delay-100 duration-300",
|
|
19434
19430
|
// drawerOpen ? "w-full" : "w-18",
|
|
@@ -19528,7 +19524,7 @@
|
|
|
19528
19524
|
Object.values(navigationEntries).filter((e) => e.group === group).map((view, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
19529
19525
|
DrawerNavigationItem,
|
|
19530
19526
|
{
|
|
19531
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: view.collection ?? view.view }),
|
|
19527
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(IconForView, { collectionOrView: view.collection ?? view.view, size: "small" }),
|
|
19532
19528
|
tooltipsOpen,
|
|
19533
19529
|
adminMenuOpen,
|
|
19534
19530
|
drawerOpen,
|
|
@@ -19605,9 +19601,9 @@
|
|
|
19605
19601
|
{
|
|
19606
19602
|
style: {
|
|
19607
19603
|
transition: "padding 100ms cubic-bezier(0.4, 0, 0.6, 1) 0ms",
|
|
19608
|
-
padding: drawerOpen ? "32px 144px 0px 24px" : "72px
|
|
19604
|
+
padding: drawerOpen ? "32px 144px 0px 24px" : "72px 12px 0px 12px"
|
|
19609
19605
|
},
|
|
19610
|
-
className: ui.cls("cursor-pointer"),
|
|
19606
|
+
className: ui.cls("cursor-pointer ml-4"),
|
|
19611
19607
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19612
19608
|
ui.Tooltip,
|
|
19613
19609
|
{
|