@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.js
CHANGED
|
@@ -3866,6 +3866,12 @@ function SettingOutlined() {
|
|
|
3866
3866
|
function HolderOutlined() {
|
|
3867
3867
|
return /* @__PURE__ */ 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" });
|
|
3868
3868
|
}
|
|
3869
|
+
|
|
3870
|
+
// src/components/fullscreen-portal.ts
|
|
3871
|
+
function resolveFullscreenPortalContainer(host) {
|
|
3872
|
+
const fullscreenElement = document.fullscreenElement;
|
|
3873
|
+
return fullscreenElement instanceof HTMLElement && host && fullscreenElement.contains(host) ? fullscreenElement : document.body;
|
|
3874
|
+
}
|
|
3869
3875
|
function SortableList(props) {
|
|
3870
3876
|
const { items, onOrderChange } = props;
|
|
3871
3877
|
const rootRef = useRef(null);
|
|
@@ -3990,7 +3996,7 @@ function SortableList(props) {
|
|
|
3990
3996
|
})
|
|
3991
3997
|
}
|
|
3992
3998
|
),
|
|
3993
|
-
|
|
3999
|
+
resolveFullscreenPortalContainer(rootRef.current)
|
|
3994
4000
|
) : null
|
|
3995
4001
|
] });
|
|
3996
4002
|
}
|
|
@@ -4688,6 +4694,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4688
4694
|
} = useReactListTableState(options);
|
|
4689
4695
|
const hasPagination = paginationConfig != null;
|
|
4690
4696
|
const paginationLayout = resolveReactListTablePaginationLayout(resolvedRowHeight);
|
|
4697
|
+
const portalContainer = resolveFullscreenPortalContainer(shellRef.current);
|
|
4691
4698
|
useImperativeHandle(
|
|
4692
4699
|
ref,
|
|
4693
4700
|
() => ({
|
|
@@ -4845,27 +4852,27 @@ function ReactListTableInner(props, ref) {
|
|
|
4845
4852
|
),
|
|
4846
4853
|
tooltipRequest ? createPortal(
|
|
4847
4854
|
/* @__PURE__ */ jsx(ReactTableTooltipView, { request: tooltipRequest }),
|
|
4848
|
-
|
|
4855
|
+
portalContainer
|
|
4849
4856
|
) : null,
|
|
4850
4857
|
filterPanelRequest ? createPortal(
|
|
4851
4858
|
/* @__PURE__ */ jsx(ReactTableFilterPanelView, { request: filterPanelRequest }),
|
|
4852
|
-
|
|
4859
|
+
portalContainer
|
|
4853
4860
|
) : null,
|
|
4854
4861
|
fixedPopupRequest ? createPortal(
|
|
4855
4862
|
/* @__PURE__ */ jsx(ReactTableFixedPopupView, { request: fixedPopupRequest }),
|
|
4856
|
-
|
|
4863
|
+
portalContainer
|
|
4857
4864
|
) : null,
|
|
4858
4865
|
headerContextMenuRequest ? createPortal(
|
|
4859
4866
|
/* @__PURE__ */ jsx(ReactTableContextMenuView, { request: headerContextMenuRequest }),
|
|
4860
|
-
|
|
4867
|
+
portalContainer
|
|
4861
4868
|
) : null,
|
|
4862
4869
|
searchRequest ? createPortal(
|
|
4863
4870
|
/* @__PURE__ */ jsx(ReactListTableSearchDialog, { request: searchRequest }),
|
|
4864
|
-
|
|
4871
|
+
portalContainer
|
|
4865
4872
|
) : null,
|
|
4866
4873
|
exportNameRequest ? createPortal(
|
|
4867
4874
|
/* @__PURE__ */ jsx(ReactListTableExportNameDialog, { request: exportNameRequest }),
|
|
4868
|
-
|
|
4875
|
+
portalContainer
|
|
4869
4876
|
) : null,
|
|
4870
4877
|
dangerConfirmRequest ? createPortal(
|
|
4871
4878
|
/* @__PURE__ */ jsx(
|
|
@@ -4875,11 +4882,11 @@ function ReactListTableInner(props, ref) {
|
|
|
4875
4882
|
onClose: closeDangerConfirmRequest
|
|
4876
4883
|
}
|
|
4877
4884
|
),
|
|
4878
|
-
|
|
4885
|
+
portalContainer
|
|
4879
4886
|
) : null,
|
|
4880
4887
|
editorRequest ? createPortal(
|
|
4881
4888
|
/* @__PURE__ */ jsx(ReactTableEditorOverlay, { request: editorRequest }),
|
|
4882
|
-
editorRequest.hostElement
|
|
4889
|
+
editorRequest.hostElement && portalContainer.contains(editorRequest.hostElement) ? editorRequest.hostElement : portalContainer
|
|
4883
4890
|
) : null,
|
|
4884
4891
|
imagePreviewRequest ? createPortal(
|
|
4885
4892
|
/* @__PURE__ */ jsx(
|
|
@@ -4891,7 +4898,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4891
4898
|
onClose: imagePreviewRequest.onClose
|
|
4892
4899
|
}
|
|
4893
4900
|
),
|
|
4894
|
-
|
|
4901
|
+
portalContainer
|
|
4895
4902
|
) : null
|
|
4896
4903
|
] });
|
|
4897
4904
|
}
|