@etsoo/materialui 1.3.40 → 1.3.42

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.
@@ -1,9 +1,5 @@
1
1
  import React from "react";
2
2
  import { CommonPageProps } from "./CommonPageProps";
3
- /**
4
- * Default scroll container
5
- */
6
- export declare const CommonPageScrollContainer: typeof globalThis;
7
3
  /**
8
4
  * Common page
9
5
  * @param props Props
@@ -8,10 +8,6 @@ import RefreshIcon from "@mui/icons-material/Refresh";
8
8
  import { BackButton } from "../BackButton";
9
9
  import { Labels } from "../app/Labels";
10
10
  import { ReactAppStateDetector } from "../app/ReactApp";
11
- /**
12
- * Default scroll container
13
- */
14
- export const CommonPageScrollContainer = global;
15
11
  /**
16
12
  * Common page
17
13
  * @param props Props
@@ -1,7 +1,7 @@
1
1
  import { Button, Grid } from "@mui/material";
2
2
  import React from "react";
3
3
  import { MUGlobal } from "../MUGlobal";
4
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
4
+ import { CommonPage } from "./CommonPage";
5
5
  import SaveIcon from "@mui/icons-material/Save";
6
6
  import DeleteIcon from "@mui/icons-material/Delete";
7
7
  import { BackButton } from "../BackButton";
@@ -13,7 +13,7 @@ import { OperationMessageContainer } from "../messages/OperationMessageContainer
13
13
  */
14
14
  export function EditPage(props) {
15
15
  // Destruct
16
- const { children, isEditing, onDelete, onSubmit, paddings = MUGlobal.pagePaddings, scrollContainer = CommonPageScrollContainer, supportBack = true, submitDisabled = false, bottomPart, topPart, operationMessageHandler, ...rest } = props;
16
+ const { children, isEditing, onDelete, onSubmit, paddings = MUGlobal.pagePaddings, scrollContainer = globalThis, supportBack = true, submitDisabled = false, bottomPart, topPart, operationMessageHandler, ...rest } = props;
17
17
  // Labels
18
18
  const labels = Labels.CommonPage;
19
19
  return (React.createElement(CommonPage, { paddings: paddings, scrollContainer: scrollContainer, ...rest },
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import { MUGlobal } from "../MUGlobal";
5
5
  import { ScrollerListEx } from "../ScrollerListEx";
6
6
  import { SearchBar } from "../SearchBar";
7
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
7
+ import { CommonPage } from "./CommonPage";
8
8
  import { GridUtils } from "../GridUtils";
9
9
  /**
10
10
  * List page
@@ -71,7 +71,7 @@ export function ListPage(props) {
71
71
  };
72
72
  const f = typeof fields == "function" ? fields(searchData !== null && searchData !== void 0 ? searchData : {}) : fields;
73
73
  // Layout
74
- return (React.createElement(CommonPage, { ...pageProps, scrollContainer: CommonPageScrollContainer },
74
+ return (React.createElement(CommonPage, { ...pageProps, scrollContainer: globalThis },
75
75
  React.createElement(Stack, null,
76
76
  React.createElement(Box, { sx: {
77
77
  paddingBottom: pageProps.paddings
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import { MUGlobal } from "../MUGlobal";
5
5
  import { SearchBar } from "../SearchBar";
6
6
  import { TableEx, TableExMinWidth } from "../TableEx";
7
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
7
+ import { CommonPage } from "./CommonPage";
8
8
  import { GridUtils } from "../GridUtils";
9
9
  /**
10
10
  * Table page
@@ -61,7 +61,7 @@ export function TablePage(props) {
61
61
  }, [rect]);
62
62
  const f = typeof fields == "function" ? fields(searchData !== null && searchData !== void 0 ? searchData : {}) : fields;
63
63
  // Layout
64
- return (React.createElement(CommonPage, { ...pageProps, scrollContainer: CommonPageScrollContainer },
64
+ return (React.createElement(CommonPage, { ...pageProps, scrollContainer: globalThis },
65
65
  React.createElement(Stack, null,
66
66
  React.createElement(Box, { ref: dimensions[0][0], sx: {
67
67
  paddingBottom: pageProps.paddings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.40",
3
+ "version": "1.3.42",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,9 +50,9 @@
50
50
  "@emotion/css": "^11.11.2",
51
51
  "@emotion/react": "^11.11.4",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@etsoo/appscript": "^1.4.76",
53
+ "@etsoo/appscript": "^1.4.77",
54
54
  "@etsoo/notificationbase": "^1.1.35",
55
- "@etsoo/react": "^1.7.26",
55
+ "@etsoo/react": "^1.7.27",
56
56
  "@etsoo/shared": "^1.2.26",
57
57
  "@mui/icons-material": "^5.15.11",
58
58
  "@mui/material": "^5.15.11",
@@ -10,11 +10,6 @@ import { BackButton } from "../BackButton";
10
10
  import { Labels } from "../app/Labels";
11
11
  import { ReactAppStateDetector } from "../app/ReactApp";
12
12
 
13
- /**
14
- * Default scroll container
15
- */
16
- export const CommonPageScrollContainer = global;
17
-
18
13
  /**
19
14
  * Common page
20
15
  * @param props Props
@@ -1,7 +1,7 @@
1
1
  import { Button, Grid } from "@mui/material";
2
2
  import React, { FormEventHandler } from "react";
3
3
  import { MUGlobal } from "../MUGlobal";
4
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
4
+ import { CommonPage } from "./CommonPage";
5
5
  import { CommonPageProps } from "./CommonPageProps";
6
6
  import SaveIcon from "@mui/icons-material/Save";
7
7
  import DeleteIcon from "@mui/icons-material/Delete";
@@ -68,7 +68,7 @@ export function EditPage(props: EditPageProps) {
68
68
  onDelete,
69
69
  onSubmit,
70
70
  paddings = MUGlobal.pagePaddings,
71
- scrollContainer = CommonPageScrollContainer,
71
+ scrollContainer = globalThis,
72
72
  supportBack = true,
73
73
  submitDisabled = false,
74
74
  bottomPart,
@@ -12,7 +12,7 @@ import React from "react";
12
12
  import { MUGlobal } from "../MUGlobal";
13
13
  import { ScrollerListEx } from "../ScrollerListEx";
14
14
  import { SearchBar } from "../SearchBar";
15
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
15
+ import { CommonPage } from "./CommonPage";
16
16
  import { ListPageProps } from "./ListPageProps";
17
17
  import { GridUtils } from "../GridUtils";
18
18
 
@@ -115,7 +115,7 @@ export function ListPage<
115
115
 
116
116
  // Layout
117
117
  return (
118
- <CommonPage {...pageProps} scrollContainer={CommonPageScrollContainer}>
118
+ <CommonPage {...pageProps} scrollContainer={globalThis}>
119
119
  <Stack>
120
120
  <Box
121
121
  sx={{
@@ -9,7 +9,7 @@ import React from "react";
9
9
  import { MUGlobal } from "../MUGlobal";
10
10
  import { SearchBar } from "../SearchBar";
11
11
  import { TableEx, TableExMethodRef, TableExMinWidth } from "../TableEx";
12
- import { CommonPage, CommonPageScrollContainer } from "./CommonPage";
12
+ import { CommonPage } from "./CommonPage";
13
13
  import { TablePageProps } from "./TablePageProps";
14
14
  import { GridUtils } from "../GridUtils";
15
15
 
@@ -114,7 +114,7 @@ export function TablePage<
114
114
 
115
115
  // Layout
116
116
  return (
117
- <CommonPage {...pageProps} scrollContainer={CommonPageScrollContainer}>
117
+ <CommonPage {...pageProps} scrollContainer={globalThis}>
118
118
  <Stack>
119
119
  <Box
120
120
  ref={dimensions[0][0]}