@firecms/core 3.0.0-canary.241 → 3.0.0-canary.242
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 +8 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +1 -0
- package/src/components/VirtualTable/VirtualTable.tsx +2 -1
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +0 -1
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +1 -1
- package/src/form/field_bindings/SelectFieldBinding.tsx +2 -1
- package/src/preview/property_previews/StringPropertyPreview.tsx +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5701,7 +5701,7 @@ function StringPropertyPreview(t0) {
|
|
|
5701
5701
|
let t1;
|
|
5702
5702
|
if ($[17] !== size || $[18] !== value) {
|
|
5703
5703
|
const lines = value.split("\n");
|
|
5704
|
-
t1 = value && value.includes("\n") ? /* @__PURE__ */ jsx("div", { className: cls("overflow-x-scroll", size === "small" ? "text-sm" : ""), children: lines.map((str, index) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
5704
|
+
t1 = value && value.includes("\n") ? /* @__PURE__ */ jsx("div", { className: cls("overflow-x-scroll overflow-hidden", size === "small" ? "text-sm" : ""), children: lines.map((str, index) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
5705
5705
|
/* @__PURE__ */ jsx("span", { children: str }),
|
|
5706
5706
|
index !== lines.length - 1 && /* @__PURE__ */ jsx("br", {})
|
|
5707
5707
|
] }, `string_preview_${index}`)) }) : size === "small" ? /* @__PURE__ */ jsx("span", { className: "text-sm", children: value }) : /* @__PURE__ */ jsx(Fragment, { children: value });
|
|
@@ -7267,7 +7267,6 @@ function VirtualTableInput(props) {
|
|
|
7267
7267
|
width: "100%",
|
|
7268
7268
|
color: "unset",
|
|
7269
7269
|
fontWeight: "unset",
|
|
7270
|
-
lineHeight: 1.7142857,
|
|
7271
7270
|
fontSize: "unset",
|
|
7272
7271
|
fontFamily: "unset",
|
|
7273
7272
|
background: "unset",
|
|
@@ -10621,7 +10620,10 @@ const VirtualTable = React__default.memo(function VirtualTable2({
|
|
|
10621
10620
|
const debouncedScroll = useDebounceCallback(onScrollProp, 200);
|
|
10622
10621
|
useEffect(() => {
|
|
10623
10622
|
if (tableRef.current && initialScroll) {
|
|
10624
|
-
|
|
10623
|
+
const {
|
|
10624
|
+
scrollLeft
|
|
10625
|
+
} = tableRef.current;
|
|
10626
|
+
tableRef.current.scrollTo(scrollLeft, initialScroll);
|
|
10625
10627
|
}
|
|
10626
10628
|
}, [tableRef, initialScroll]);
|
|
10627
10629
|
useEffect(() => {
|
|
@@ -14967,7 +14969,7 @@ function SelectFieldBinding(t0) {
|
|
|
14967
14969
|
}
|
|
14968
14970
|
let t13;
|
|
14969
14971
|
if ($[20] !== disabled || $[21] !== handleClearClick || $[22] !== property.clearable) {
|
|
14970
|
-
t13 = property.clearable && !disabled && /* @__PURE__ */ jsx(IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsx(CloseIcon, {}) });
|
|
14972
|
+
t13 = property.clearable && !disabled && /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handleClearClick, children: /* @__PURE__ */ jsx(CloseIcon, { size: "small" }) });
|
|
14971
14973
|
$[20] = disabled;
|
|
14972
14974
|
$[21] = handleClearClick;
|
|
14973
14975
|
$[22] = property.clearable;
|
|
@@ -15080,7 +15082,7 @@ function MultiSelectFieldBinding({
|
|
|
15080
15082
|
] }, enumKey);
|
|
15081
15083
|
}, [enumValues, setValue, value]);
|
|
15082
15084
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15083
|
-
/* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0
|
|
15085
|
+
/* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0?.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }), onValueChange: (updatedValue) => {
|
|
15084
15086
|
let newValue;
|
|
15085
15087
|
if (of && of?.dataType === "number") {
|
|
15086
15088
|
newValue = updatedValue ? updatedValue.map((e_1) => parseFloat(e_1)) : [];
|
|
@@ -18918,7 +18920,7 @@ const EntityCollectionView = React__default.memo(function EntityCollectionView2(
|
|
|
18918
18920
|
deleteEntityClicked && /* @__PURE__ */ jsx(DeleteEntityDialog, { entityOrEntitiesToDelete: deleteEntityClicked, path: fullPath, collection, callbacks: collection.callbacks, open: Boolean(deleteEntityClicked), onEntityDelete: internalOnEntityDelete, onMultipleEntitiesDelete: internalOnMultipleEntitiesDelete, onClose: () => setDeleteEntityClicked(void 0) })
|
|
18919
18921
|
] });
|
|
18920
18922
|
}, (a, b) => {
|
|
18921
|
-
return equal(a.path, b.path) && equal(a.parentCollectionIds, b.parentCollectionIds) && equal(a.isSubCollection, b.isSubCollection) && equal(a.className, b.className) && equal(a.properties, b.properties) && equal(a.propertiesOrder, b.propertiesOrder) && equal(a.hideIdFromCollection, b.hideIdFromCollection) && equal(a.inlineEditing, b.inlineEditing) && equal(a.selectionEnabled, b.selectionEnabled) && equal(a.selectionController, b.selectionController) && equal(a.Actions, b.Actions) && equal(a.defaultSize, b.defaultSize) && equal(a.initialFilter, b.initialFilter) && equal(a.initialSort, b.initialSort) && equal(a.textSearchEnabled, b.textSearchEnabled) && equal(a.additionalFields, b.additionalFields) && equal(a.sideDialogWidth, b.sideDialogWidth) && equal(a.openEntityMode, b.openEntityMode) && equal(a.exportable, b.exportable) && equal(a.history, b.history) && equal(a.forceFilter, b.forceFilter);
|
|
18923
|
+
return equal(a.path, b.path) && equal(a.parentCollectionIds, b.parentCollectionIds) && equal(a.isSubCollection, b.isSubCollection) && equal(a.className, b.className) && equal(a.properties, b.properties) && equal(a.propertiesOrder, b.propertiesOrder) && equal(a.hideIdFromCollection, b.hideIdFromCollection) && equal(a.inlineEditing, b.inlineEditing) && equal(a.selectionEnabled, b.selectionEnabled) && equal(a.selectionController, b.selectionController) && equal(a.Actions, b.Actions) && equal(a.defaultSize, b.defaultSize) && equal(a.initialFilter, b.initialFilter) && equal(a.initialSort, b.initialSort) && equal(a.includeJsonView, b.includeJsonView) && equal(a.textSearchEnabled, b.textSearchEnabled) && equal(a.additionalFields, b.additionalFields) && equal(a.sideDialogWidth, b.sideDialogWidth) && equal(a.openEntityMode, b.openEntityMode) && equal(a.exportable, b.exportable) && equal(a.history, b.history) && equal(a.forceFilter, b.forceFilter);
|
|
18922
18924
|
});
|
|
18923
18925
|
function EntitiesCount({
|
|
18924
18926
|
fullPath,
|