@open-mercato/ui 0.6.6-develop.6519.1.bdc91fb755 → 0.6.6-develop.6520.1.55df6df792
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/backend/CrudForm.js +7 -1
- package/dist/backend/CrudForm.js.map +2 -2
- package/dist/backend/custom-fields/FieldDefinitionsEditor.js +110 -91
- package/dist/backend/custom-fields/FieldDefinitionsEditor.js.map +2 -2
- package/dist/primitives/date-picker.js +13 -6
- package/dist/primitives/date-picker.js.map +2 -2
- package/package.json +3 -3
- package/src/backend/CrudForm.tsx +17 -1
- package/src/backend/custom-fields/FieldDefinitionsEditor.tsx +122 -96
- package/src/primitives/date-picker.tsx +18 -6
package/dist/backend/CrudForm.js
CHANGED
|
@@ -382,6 +382,7 @@ function CrudForm({
|
|
|
382
382
|
readOnly = false,
|
|
383
383
|
readOnlyOverlay,
|
|
384
384
|
customFieldsetBindings,
|
|
385
|
+
customFieldsManageMode = "inline",
|
|
385
386
|
injectionSpotId,
|
|
386
387
|
replacementHandle,
|
|
387
388
|
collapsibleGroups,
|
|
@@ -1809,9 +1810,14 @@ function CrudForm({
|
|
|
1809
1810
|
(entityId2, fieldsetCode, view = "entity") => {
|
|
1810
1811
|
const href = buildCustomFieldsManageHref(entityId2);
|
|
1811
1812
|
if (!href) return;
|
|
1813
|
+
if (customFieldsManageMode === "page") {
|
|
1814
|
+
const params = fieldsetCode ? `${href.includes("?") ? "&" : "?"}fieldset=${encodeURIComponent(fieldsetCode)}` : "";
|
|
1815
|
+
if (typeof window !== "undefined") window.open(`${href}${params}`, "_blank", "noopener");
|
|
1816
|
+
return;
|
|
1817
|
+
}
|
|
1812
1818
|
setFieldsetEditorTarget({ entityId: entityId2, fieldsetCode, view });
|
|
1813
1819
|
},
|
|
1814
|
-
[buildCustomFieldsManageHref]
|
|
1820
|
+
[buildCustomFieldsManageHref, customFieldsManageMode]
|
|
1815
1821
|
);
|
|
1816
1822
|
const appliedInitialValuesSnapshotRef = React.useRef(void 0);
|
|
1817
1823
|
const dirtyBaselineSnapshotRef = React.useRef(void 0);
|