@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.umd.js
CHANGED
|
@@ -6860,15 +6860,17 @@
|
|
|
6860
6860
|
const hasCollapsedActions = actions.some((a) => a.collapsed || a.collapsed === void 0);
|
|
6861
6861
|
const collapsedActions = actions.filter((a_0) => a_0.collapsed || a_0.collapsed === void 0);
|
|
6862
6862
|
const uncollapsedActions = actions.filter((a_1) => a_1.collapsed === false);
|
|
6863
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.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" : ""),
|
|
6863
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.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: React.useCallback((event) => {
|
|
6864
|
+
event.stopPropagation();
|
|
6865
|
+
}, []), style: {
|
|
6864
6866
|
width,
|
|
6865
6867
|
position: frozen ? "sticky" : "initial",
|
|
6866
6868
|
left: frozen ? 0 : "initial",
|
|
6867
6869
|
contain: "strict"
|
|
6868
6870
|
}, children: [
|
|
6869
6871
|
(hasActions || selectionEnabled) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-34 flex justify-center", children: [
|
|
6870
|
-
uncollapsedActions.map((action, index) => /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: action.name, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (
|
|
6871
|
-
|
|
6872
|
+
uncollapsedActions.map((action, index) => /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: action.name, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { onClick: (event_0) => {
|
|
6873
|
+
event_0.stopPropagation();
|
|
6872
6874
|
action.onClick({
|
|
6873
6875
|
entity,
|
|
6874
6876
|
fullPath,
|
|
@@ -6898,8 +6900,8 @@
|
|
|
6898
6900
|
] }, index_0)) }),
|
|
6899
6901
|
selectionEnabled && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: `Select ${entity.id}`, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Checkbox, { size: largeLayout ? "medium" : "small", checked: Boolean(isSelected), onCheckedChange }) })
|
|
6900
6902
|
] }),
|
|
6901
|
-
!hideId && size !== "xs" && /* @__PURE__ */ jsxRuntime.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: (
|
|
6902
|
-
|
|
6903
|
+
!hideId && size !== "xs" && /* @__PURE__ */ jsxRuntime.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) => {
|
|
6904
|
+
event_1.stopPropagation();
|
|
6903
6905
|
}, children: entity ? entity.id : /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {}) })
|
|
6904
6906
|
] });
|
|
6905
6907
|
};
|