@firecms/core 3.0.0-canary.175 → 3.0.0-canary.177
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/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
- package/dist/index.es.js +39 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +39 -22
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collections.d.ts +5 -3
- package/dist/types/fields.d.ts +4 -2
- package/dist/types/properties.d.ts +10 -0
- package/package.json +5 -5
- package/src/core/EntityEditView.tsx +3 -3
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +3 -1
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +3 -1
- package/src/form/field_bindings/BlockFieldBinding.tsx +4 -2
- package/src/form/field_bindings/MapFieldBinding.tsx +2 -1
- package/src/form/field_bindings/RepeatFieldBinding.tsx +3 -1
- package/src/types/collections.ts +11 -6
- package/src/types/fields.tsx +4 -2
- package/src/types/properties.ts +12 -0
package/dist/index.umd.js
CHANGED
|
@@ -11533,7 +11533,7 @@
|
|
|
11533
11533
|
} = t0;
|
|
11534
11534
|
let t1;
|
|
11535
11535
|
if ($[0] !== className) {
|
|
11536
|
-
t1 = ui.cls("relative flex flex-row max-w-4xl lg:max-w-3xl xl:max-w-
|
|
11536
|
+
t1 = ui.cls("relative flex flex-row max-w-4xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl w-full h-fit", className);
|
|
11537
11537
|
$[0] = className;
|
|
11538
11538
|
$[1] = t1;
|
|
11539
11539
|
} else {
|
|
@@ -11866,7 +11866,7 @@
|
|
|
11866
11866
|
};
|
|
11867
11867
|
const resolvedEntityViews = customViews ? customViews.map((e_4) => resolveEntityView(e_4, customizationController.entityViews)).filter(Boolean) : [];
|
|
11868
11868
|
const selectedEntityView = resolvedEntityViews.find((e_5) => e_5.key === selectedTab);
|
|
11869
|
-
const shouldShowEntityActions =
|
|
11869
|
+
const shouldShowEntityActions = selectedTab === MAIN_TAB_VALUE || selectedEntityView?.includeActions;
|
|
11870
11870
|
const secondaryForms = customViews && resolvedEntityViews.filter((e_6) => e_6.includeActions).map((customView, colIndex) => {
|
|
11871
11871
|
if (!customView) return null;
|
|
11872
11872
|
const Builder = customView.Builder;
|
|
@@ -12227,7 +12227,7 @@
|
|
|
12227
12227
|
setPendingClose,
|
|
12228
12228
|
pluginActions
|
|
12229
12229
|
}) {
|
|
12230
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("overflow-auto h-full flex flex-col gap-2 w-96 px-4 py-16 sticky top-0 border-l", ui.defaultBorderMixin), children: [
|
|
12230
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("overflow-auto h-full flex flex-col gap-2 w-80 xl:w-96 px-4 py-16 sticky top-0 border-l", ui.defaultBorderMixin), children: [
|
|
12231
12231
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.LoadingButton, { fullWidth: true, variant: "filled", color: "primary", type: "submit", size: "large", disabled: disabled || isSubmitting, onClick: () => {
|
|
12232
12232
|
setPendingClose?.(false);
|
|
12233
12233
|
}, children: [
|
|
@@ -17279,12 +17279,13 @@
|
|
|
17279
17279
|
showError,
|
|
17280
17280
|
disabled,
|
|
17281
17281
|
isSubmitting,
|
|
17282
|
-
minimalistView,
|
|
17282
|
+
minimalistView: minimalistViewProp,
|
|
17283
17283
|
property,
|
|
17284
17284
|
includeDescription,
|
|
17285
17285
|
setValue,
|
|
17286
17286
|
setFieldValue
|
|
17287
17287
|
}) {
|
|
17288
|
+
const minimalistView = minimalistViewProp || property.minimalistView;
|
|
17288
17289
|
const ofProperty = property.of;
|
|
17289
17290
|
if (ofProperty.dataType !== "reference") {
|
|
17290
17291
|
throw Error("ArrayOfReferencesField expected a property containing references");
|
|
@@ -18698,7 +18699,7 @@
|
|
|
18698
18699
|
error,
|
|
18699
18700
|
disabled,
|
|
18700
18701
|
property,
|
|
18701
|
-
minimalistView,
|
|
18702
|
+
minimalistView: minimalistViewProp,
|
|
18702
18703
|
includeDescription,
|
|
18703
18704
|
underlyingValueHasChanged,
|
|
18704
18705
|
autoFocus,
|
|
@@ -18707,6 +18708,7 @@
|
|
|
18707
18708
|
} = t0;
|
|
18708
18709
|
const pickOnlySomeKeys = property.pickOnlySomeKeys || false;
|
|
18709
18710
|
const expanded = property.expanded === void 0 ? true : property.expanded;
|
|
18711
|
+
const minimalistView = minimalistViewProp || property.minimalistView;
|
|
18710
18712
|
if (!property.properties) {
|
|
18711
18713
|
throw Error(`You need to specify a 'properties' prop (or specify a custom field) in your map property ${propertyKey}`);
|
|
18712
18714
|
}
|
|
@@ -19638,21 +19640,34 @@
|
|
|
19638
19640
|
let underlyingValueHasChanged;
|
|
19639
19641
|
let value;
|
|
19640
19642
|
if ($[0] !== t0) {
|
|
19641
|
-
|
|
19642
|
-
propertyKey,
|
|
19643
|
-
value,
|
|
19644
|
-
error,
|
|
19645
|
-
showError,
|
|
19646
|
-
isSubmitting,
|
|
19647
|
-
setValue,
|
|
19648
|
-
setFieldValue,
|
|
19649
|
-
minimalistView,
|
|
19650
|
-
property,
|
|
19651
|
-
includeDescription,
|
|
19652
|
-
underlyingValueHasChanged,
|
|
19653
|
-
context,
|
|
19654
|
-
disabled
|
|
19655
|
-
} = t0
|
|
19643
|
+
const {
|
|
19644
|
+
propertyKey: t19,
|
|
19645
|
+
value: t22,
|
|
19646
|
+
error: t32,
|
|
19647
|
+
showError: t42,
|
|
19648
|
+
isSubmitting: t52,
|
|
19649
|
+
setValue: t62,
|
|
19650
|
+
setFieldValue: t72,
|
|
19651
|
+
minimalistView: minimalistViewProp,
|
|
19652
|
+
property: t82,
|
|
19653
|
+
includeDescription: t92,
|
|
19654
|
+
underlyingValueHasChanged: t102,
|
|
19655
|
+
context: t112,
|
|
19656
|
+
disabled: t122
|
|
19657
|
+
} = t0;
|
|
19658
|
+
propertyKey = t19;
|
|
19659
|
+
value = t22;
|
|
19660
|
+
error = t32;
|
|
19661
|
+
showError = t42;
|
|
19662
|
+
isSubmitting = t52;
|
|
19663
|
+
setValue = t62;
|
|
19664
|
+
setFieldValue = t72;
|
|
19665
|
+
property = t82;
|
|
19666
|
+
includeDescription = t92;
|
|
19667
|
+
underlyingValueHasChanged = t102;
|
|
19668
|
+
context = t112;
|
|
19669
|
+
disabled = t122;
|
|
19670
|
+
minimalistView = minimalistViewProp || property.minimalistView;
|
|
19656
19671
|
if (!property.of) {
|
|
19657
19672
|
throw Error("RepeatFieldBinding misconfiguration. Property `of` not set");
|
|
19658
19673
|
}
|
|
@@ -19881,13 +19896,14 @@
|
|
|
19881
19896
|
isSubmitting,
|
|
19882
19897
|
setValue,
|
|
19883
19898
|
setFieldValue,
|
|
19884
|
-
minimalistView,
|
|
19899
|
+
minimalistView: minimalistViewProp,
|
|
19885
19900
|
property,
|
|
19886
19901
|
includeDescription,
|
|
19887
19902
|
underlyingValueHasChanged,
|
|
19888
19903
|
context,
|
|
19889
19904
|
disabled
|
|
19890
19905
|
}) {
|
|
19906
|
+
const minimalistView = minimalistViewProp || property.minimalistView;
|
|
19891
19907
|
if (!property.oneOf) throw Error("ArrayOneOfField misconfiguration. Property `oneOf` not set");
|
|
19892
19908
|
const expanded = property.expanded === void 0 ? true : property.expanded;
|
|
19893
19909
|
useClearRestoreValue({
|
|
@@ -20325,13 +20341,14 @@
|
|
|
20325
20341
|
error,
|
|
20326
20342
|
showError,
|
|
20327
20343
|
setValue,
|
|
20328
|
-
minimalistView,
|
|
20344
|
+
minimalistView: minimalistViewProp,
|
|
20329
20345
|
property,
|
|
20330
20346
|
includeDescription,
|
|
20331
20347
|
underlyingValueHasChanged,
|
|
20332
20348
|
context,
|
|
20333
20349
|
disabled
|
|
20334
20350
|
} = t0;
|
|
20351
|
+
const minimalistView = minimalistViewProp || property.minimalistView;
|
|
20335
20352
|
let resolvedProperties = "resolvedProperties" in property ? property.resolvedProperties : void 0;
|
|
20336
20353
|
if (!resolvedProperties) {
|
|
20337
20354
|
let t12;
|