@firecms/core 3.0.0-canary.271 → 3.0.0-canary.273
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 +20 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +20 -22
- package/dist/index.umd.js.map +1 -1
- package/dist/types/entities.d.ts +5 -1
- package/package.json +5 -5
- package/src/components/HomePage/DefaultHomePage.tsx +0 -1
- package/src/components/HomePage/HomePageDnD.tsx +1 -0
- package/src/components/HomePage/RenameGroupDialog.tsx +9 -3
- package/src/components/common/useColumnsIds.tsx +1 -8
- package/src/types/entities.ts +7 -1
package/dist/index.umd.js
CHANGED
|
@@ -208,9 +208,14 @@
|
|
|
208
208
|
* to the root of the database).
|
|
209
209
|
*/
|
|
210
210
|
path;
|
|
211
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Optional database ID where the entity is stored (if multiple databases are used)
|
|
213
|
+
*/
|
|
214
|
+
databaseId;
|
|
215
|
+
constructor(id, path, databaseId) {
|
|
212
216
|
this.id = id;
|
|
213
217
|
this.path = path;
|
|
218
|
+
this.databaseId = databaseId;
|
|
214
219
|
}
|
|
215
220
|
get pathWithId() {
|
|
216
221
|
return `${this.path}/${this.id}`;
|
|
@@ -9876,21 +9881,15 @@
|
|
|
9876
9881
|
let t0;
|
|
9877
9882
|
bb0: {
|
|
9878
9883
|
if (collection.propertiesOrder) {
|
|
9879
|
-
let
|
|
9884
|
+
let t12;
|
|
9880
9885
|
if ($[0] !== collection) {
|
|
9881
|
-
|
|
9882
|
-
if (collection.collectionGroup) {
|
|
9883
|
-
propertyColumnConfigs.push({
|
|
9884
|
-
key: COLLECTION_GROUP_PARENT_ID,
|
|
9885
|
-
disabled: true
|
|
9886
|
-
});
|
|
9887
|
-
}
|
|
9886
|
+
t12 = hideAndExpandKeys(collection, collection.propertiesOrder);
|
|
9888
9887
|
$[0] = collection;
|
|
9889
|
-
$[1] =
|
|
9888
|
+
$[1] = t12;
|
|
9890
9889
|
} else {
|
|
9891
|
-
|
|
9890
|
+
t12 = $[1];
|
|
9892
9891
|
}
|
|
9893
|
-
t0 =
|
|
9892
|
+
t0 = t12;
|
|
9894
9893
|
break bb0;
|
|
9895
9894
|
}
|
|
9896
9895
|
let t1;
|
|
@@ -13885,6 +13884,7 @@
|
|
|
13885
13884
|
onPersist?.(updated);
|
|
13886
13885
|
return updated;
|
|
13887
13886
|
});
|
|
13887
|
+
setDialogOpenForGroup(null);
|
|
13888
13888
|
};
|
|
13889
13889
|
const activeItemForOverlay = disabled || !activeId || activeIsGroup ? null : dndItems.flatMap((g_19) => g_19.entries).find((e_7) => e_7.url === activeId) || null;
|
|
13890
13890
|
const activeGroupData = disabled || !activeId || !activeIsGroup ? null : dndItems.find((g_20) => g_20.name === activeId) || null;
|
|
@@ -14005,7 +14005,7 @@
|
|
|
14005
14005
|
return t8;
|
|
14006
14006
|
}
|
|
14007
14007
|
function RenameGroupDialog(t0) {
|
|
14008
|
-
const $ = reactCompilerRuntime.c(
|
|
14008
|
+
const $ = reactCompilerRuntime.c(40);
|
|
14009
14009
|
const {
|
|
14010
14010
|
open,
|
|
14011
14011
|
initialName,
|
|
@@ -14197,19 +14197,18 @@
|
|
|
14197
14197
|
t15 = $[35];
|
|
14198
14198
|
}
|
|
14199
14199
|
let t16;
|
|
14200
|
-
if ($[36] !==
|
|
14201
|
-
t16 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open,
|
|
14200
|
+
if ($[36] !== open || $[37] !== t11 || $[38] !== t15) {
|
|
14201
|
+
t16 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, children: [
|
|
14202
14202
|
t6,
|
|
14203
14203
|
t11,
|
|
14204
14204
|
t15
|
|
14205
14205
|
] });
|
|
14206
|
-
$[36] =
|
|
14207
|
-
$[37] =
|
|
14208
|
-
$[38] =
|
|
14209
|
-
$[39] =
|
|
14210
|
-
$[40] = t16;
|
|
14206
|
+
$[36] = open;
|
|
14207
|
+
$[37] = t11;
|
|
14208
|
+
$[38] = t15;
|
|
14209
|
+
$[39] = t16;
|
|
14211
14210
|
} else {
|
|
14212
|
-
t16 = $[
|
|
14211
|
+
t16 = $[39];
|
|
14213
14212
|
}
|
|
14214
14213
|
return t16;
|
|
14215
14214
|
}
|
|
@@ -14433,7 +14432,6 @@
|
|
|
14433
14432
|
] }),
|
|
14434
14433
|
dialogOpenForGroup && /* @__PURE__ */ jsxRuntime.jsx(RenameGroupDialog, { open: true, initialName: dialogOpenForGroup, existingGroupNames: items.map((g_9) => g_9.name).filter((n) => n !== dialogOpenForGroup), onClose: () => setDialogOpenForGroup(null), onRename: (newName) => {
|
|
14435
14434
|
handleRenameGroup(dialogOpenForGroup, newName);
|
|
14436
|
-
setDialogOpenForGroup(null);
|
|
14437
14435
|
} })
|
|
14438
14436
|
] });
|
|
14439
14437
|
}
|