@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.umd.js
CHANGED
|
@@ -5702,7 +5702,7 @@
|
|
|
5702
5702
|
let t1;
|
|
5703
5703
|
if ($[17] !== size || $[18] !== value) {
|
|
5704
5704
|
const lines = value.split("\n");
|
|
5705
|
-
t1 = value && value.includes("\n") ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls("overflow-x-scroll", size === "small" ? "text-sm" : ""), children: lines.map((str, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
5705
|
+
t1 = value && value.includes("\n") ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls("overflow-x-scroll overflow-hidden", size === "small" ? "text-sm" : ""), children: lines.map((str, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
5706
5706
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: str }),
|
|
5707
5707
|
index !== lines.length - 1 && /* @__PURE__ */ jsxRuntime.jsx("br", {})
|
|
5708
5708
|
] }, `string_preview_${index}`)) }) : size === "small" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: value }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: value });
|
|
@@ -7268,7 +7268,6 @@
|
|
|
7268
7268
|
width: "100%",
|
|
7269
7269
|
color: "unset",
|
|
7270
7270
|
fontWeight: "unset",
|
|
7271
|
-
lineHeight: 1.7142857,
|
|
7272
7271
|
fontSize: "unset",
|
|
7273
7272
|
fontFamily: "unset",
|
|
7274
7273
|
background: "unset",
|
|
@@ -10622,7 +10621,10 @@
|
|
|
10622
10621
|
const debouncedScroll = useDebounceCallback(onScrollProp, 200);
|
|
10623
10622
|
React.useEffect(() => {
|
|
10624
10623
|
if (tableRef.current && initialScroll) {
|
|
10625
|
-
|
|
10624
|
+
const {
|
|
10625
|
+
scrollLeft
|
|
10626
|
+
} = tableRef.current;
|
|
10627
|
+
tableRef.current.scrollTo(scrollLeft, initialScroll);
|
|
10626
10628
|
}
|
|
10627
10629
|
}, [tableRef, initialScroll]);
|
|
10628
10630
|
React.useEffect(() => {
|
|
@@ -14968,7 +14970,7 @@
|
|
|
14968
14970
|
}
|
|
14969
14971
|
let t13;
|
|
14970
14972
|
if ($[20] !== disabled || $[21] !== handleClearClick || $[22] !== property.clearable) {
|
|
14971
|
-
t13 = property.clearable && !disabled && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, {}) });
|
|
14973
|
+
t13 = property.clearable && !disabled && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: handleClearClick, children: /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { size: "small" }) });
|
|
14972
14974
|
$[20] = disabled;
|
|
14973
14975
|
$[21] = handleClearClick;
|
|
14974
14976
|
$[22] = property.clearable;
|
|
@@ -15081,7 +15083,7 @@
|
|
|
15081
15083
|
] }, enumKey);
|
|
15082
15084
|
}, [enumValues, setValue, value]);
|
|
15083
15085
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15084
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0
|
|
15086
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0?.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsxRuntime.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) => {
|
|
15085
15087
|
let newValue;
|
|
15086
15088
|
if (of && of?.dataType === "number") {
|
|
15087
15089
|
newValue = updatedValue ? updatedValue.map((e_1) => parseFloat(e_1)) : [];
|
|
@@ -18919,7 +18921,7 @@
|
|
|
18919
18921
|
deleteEntityClicked && /* @__PURE__ */ jsxRuntime.jsx(DeleteEntityDialog, { entityOrEntitiesToDelete: deleteEntityClicked, path: fullPath, collection, callbacks: collection.callbacks, open: Boolean(deleteEntityClicked), onEntityDelete: internalOnEntityDelete, onMultipleEntitiesDelete: internalOnMultipleEntitiesDelete, onClose: () => setDeleteEntityClicked(void 0) })
|
|
18920
18922
|
] });
|
|
18921
18923
|
}, (a, b) => {
|
|
18922
|
-
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);
|
|
18924
|
+
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);
|
|
18923
18925
|
});
|
|
18924
18926
|
function EntitiesCount({
|
|
18925
18927
|
fullPath,
|