@firecms/core 3.0.0-canary.164 → 3.0.0-canary.165
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
CHANGED
|
@@ -6857,15 +6857,17 @@ const EntityCollectionRowActions = function EntityCollectionRowActions2({
|
|
|
6857
6857
|
const hasCollapsedActions = actions.some((a) => a.collapsed || a.collapsed === void 0);
|
|
6858
6858
|
const collapsedActions = actions.filter((a_0) => a_0.collapsed || a_0.collapsed === void 0);
|
|
6859
6859
|
const uncollapsedActions = actions.filter((a_1) => a_1.collapsed === false);
|
|
6860
|
-
return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10", frozen ? "sticky left-0" : ""),
|
|
6860
|
+
return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10", frozen ? "sticky left-0" : ""), onClick: useCallback((event) => {
|
|
6861
|
+
event.stopPropagation();
|
|
6862
|
+
}, []), style: {
|
|
6861
6863
|
width,
|
|
6862
6864
|
position: frozen ? "sticky" : "initial",
|
|
6863
6865
|
left: frozen ? 0 : "initial",
|
|
6864
6866
|
contain: "strict"
|
|
6865
6867
|
}, children: [
|
|
6866
6868
|
(hasActions || selectionEnabled) && /* @__PURE__ */ jsxs("div", { className: "w-34 flex justify-center", children: [
|
|
6867
|
-
uncollapsedActions.map((action, index) => /* @__PURE__ */ jsx(Tooltip, { title: action.name, asChild: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: (
|
|
6868
|
-
|
|
6869
|
+
uncollapsedActions.map((action, index) => /* @__PURE__ */ jsx(Tooltip, { title: action.name, asChild: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: (event_0) => {
|
|
6870
|
+
event_0.stopPropagation();
|
|
6869
6871
|
action.onClick({
|
|
6870
6872
|
entity,
|
|
6871
6873
|
fullPath,
|
|
@@ -6895,8 +6897,8 @@ const EntityCollectionRowActions = function EntityCollectionRowActions2({
|
|
|
6895
6897
|
] }, index_0)) }),
|
|
6896
6898
|
selectionEnabled && /* @__PURE__ */ jsx(Tooltip, { title: `Select ${entity.id}`, children: /* @__PURE__ */ jsx(Checkbox, { size: largeLayout ? "medium" : "small", checked: Boolean(isSelected), onCheckedChange }) })
|
|
6897
6899
|
] }),
|
|
6898
|
-
!hideId && size !== "xs" && /* @__PURE__ */ jsx("div", { className: "w-[138px] text-center overflow-hidden truncate font-mono text-xs text-text-secondary dark:text-text-secondary-dark max-w-full text-ellipsis px-2", onClick: (
|
|
6899
|
-
|
|
6900
|
+
!hideId && size !== "xs" && /* @__PURE__ */ jsx("div", { className: "w-[138px] text-center overflow-hidden truncate font-mono text-xs text-text-secondary dark:text-text-secondary-dark max-w-full text-ellipsis px-2", onClick: (event_1) => {
|
|
6901
|
+
event_1.stopPropagation();
|
|
6900
6902
|
}, children: entity ? entity.id : /* @__PURE__ */ jsx(Skeleton, {}) })
|
|
6901
6903
|
] });
|
|
6902
6904
|
};
|