@canvas-components/react-list-table 0.3.21 → 0.3.23
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.cjs +17 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3867,6 +3867,12 @@ function SettingOutlined() {
|
|
|
3867
3867
|
function HolderOutlined() {
|
|
3868
3868
|
return /* @__PURE__ */ jsxRuntime.jsx(ToolbarIcon, { path: "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" });
|
|
3869
3869
|
}
|
|
3870
|
+
|
|
3871
|
+
// src/components/fullscreen-portal.ts
|
|
3872
|
+
function resolveFullscreenPortalContainer(host) {
|
|
3873
|
+
const fullscreenElement = document.fullscreenElement;
|
|
3874
|
+
return fullscreenElement instanceof HTMLElement && host && fullscreenElement.contains(host) ? fullscreenElement : document.body;
|
|
3875
|
+
}
|
|
3870
3876
|
function SortableList(props) {
|
|
3871
3877
|
const { items, onOrderChange } = props;
|
|
3872
3878
|
const rootRef = react.useRef(null);
|
|
@@ -3991,7 +3997,7 @@ function SortableList(props) {
|
|
|
3991
3997
|
})
|
|
3992
3998
|
}
|
|
3993
3999
|
),
|
|
3994
|
-
|
|
4000
|
+
resolveFullscreenPortalContainer(rootRef.current)
|
|
3995
4001
|
) : null
|
|
3996
4002
|
] });
|
|
3997
4003
|
}
|
|
@@ -4689,6 +4695,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4689
4695
|
} = useReactListTableState(options);
|
|
4690
4696
|
const hasPagination = paginationConfig != null;
|
|
4691
4697
|
const paginationLayout = resolveReactListTablePaginationLayout(resolvedRowHeight);
|
|
4698
|
+
const portalContainer = resolveFullscreenPortalContainer(shellRef.current);
|
|
4692
4699
|
react.useImperativeHandle(
|
|
4693
4700
|
ref,
|
|
4694
4701
|
() => ({
|
|
@@ -4846,27 +4853,27 @@ function ReactListTableInner(props, ref) {
|
|
|
4846
4853
|
),
|
|
4847
4854
|
tooltipRequest ? reactDom.createPortal(
|
|
4848
4855
|
/* @__PURE__ */ jsxRuntime.jsx(ReactTableTooltipView, { request: tooltipRequest }),
|
|
4849
|
-
|
|
4856
|
+
portalContainer
|
|
4850
4857
|
) : null,
|
|
4851
4858
|
filterPanelRequest ? reactDom.createPortal(
|
|
4852
4859
|
/* @__PURE__ */ jsxRuntime.jsx(ReactTableFilterPanelView, { request: filterPanelRequest }),
|
|
4853
|
-
|
|
4860
|
+
portalContainer
|
|
4854
4861
|
) : null,
|
|
4855
4862
|
fixedPopupRequest ? reactDom.createPortal(
|
|
4856
4863
|
/* @__PURE__ */ jsxRuntime.jsx(ReactTableFixedPopupView, { request: fixedPopupRequest }),
|
|
4857
|
-
|
|
4864
|
+
portalContainer
|
|
4858
4865
|
) : null,
|
|
4859
4866
|
headerContextMenuRequest ? reactDom.createPortal(
|
|
4860
4867
|
/* @__PURE__ */ jsxRuntime.jsx(ReactTableContextMenuView, { request: headerContextMenuRequest }),
|
|
4861
|
-
|
|
4868
|
+
portalContainer
|
|
4862
4869
|
) : null,
|
|
4863
4870
|
searchRequest ? reactDom.createPortal(
|
|
4864
4871
|
/* @__PURE__ */ jsxRuntime.jsx(ReactListTableSearchDialog, { request: searchRequest }),
|
|
4865
|
-
|
|
4872
|
+
portalContainer
|
|
4866
4873
|
) : null,
|
|
4867
4874
|
exportNameRequest ? reactDom.createPortal(
|
|
4868
4875
|
/* @__PURE__ */ jsxRuntime.jsx(ReactListTableExportNameDialog, { request: exportNameRequest }),
|
|
4869
|
-
|
|
4876
|
+
portalContainer
|
|
4870
4877
|
) : null,
|
|
4871
4878
|
dangerConfirmRequest ? reactDom.createPortal(
|
|
4872
4879
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4876,11 +4883,11 @@ function ReactListTableInner(props, ref) {
|
|
|
4876
4883
|
onClose: closeDangerConfirmRequest
|
|
4877
4884
|
}
|
|
4878
4885
|
),
|
|
4879
|
-
|
|
4886
|
+
portalContainer
|
|
4880
4887
|
) : null,
|
|
4881
4888
|
editorRequest ? reactDom.createPortal(
|
|
4882
4889
|
/* @__PURE__ */ jsxRuntime.jsx(ReactTableEditorOverlay, { request: editorRequest }),
|
|
4883
|
-
editorRequest.hostElement
|
|
4890
|
+
editorRequest.hostElement && portalContainer.contains(editorRequest.hostElement) ? editorRequest.hostElement : portalContainer
|
|
4884
4891
|
) : null,
|
|
4885
4892
|
imagePreviewRequest ? reactDom.createPortal(
|
|
4886
4893
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4892,7 +4899,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4892
4899
|
onClose: imagePreviewRequest.onClose
|
|
4893
4900
|
}
|
|
4894
4901
|
),
|
|
4895
|
-
|
|
4902
|
+
portalContainer
|
|
4896
4903
|
) : null
|
|
4897
4904
|
] });
|
|
4898
4905
|
}
|