@etsoo/materialui 1.3.41 → 1.3.43
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/__tests__/tsconfig.json +17 -17
- package/lib/AddresSelector.js +1 -2
- package/lib/AuditDisplay.js +2 -3
- package/lib/BridgeCloseButton.js +1 -2
- package/lib/ComboBox.js +5 -5
- package/lib/ComboBoxMultiple.js +7 -8
- package/lib/ComboBoxPro.js +1 -2
- package/lib/CultureDataTable.js +2 -2
- package/lib/DataGridEx.d.ts +2 -3
- package/lib/DataGridEx.js +12 -14
- package/lib/DataGridRenderers.js +6 -6
- package/lib/DataSteps.js +1 -2
- package/lib/DataTable.js +1 -2
- package/lib/DialogButton.js +2 -3
- package/lib/DnDList.js +1 -1
- package/lib/EmailInput.js +1 -2
- package/lib/FileUploadButton.js +1 -1
- package/lib/GridDataFormat.js +5 -5
- package/lib/GridUtils.js +1 -2
- package/lib/HiSelector.js +1 -1
- package/lib/HiSelectorTL.js +1 -1
- package/lib/InputField.js +4 -5
- package/lib/InputTipField.js +1 -1
- package/lib/ItemList.js +2 -3
- package/lib/ListChooser.js +4 -5
- package/lib/LoadingButton.js +1 -2
- package/lib/MaskInput.js +2 -3
- package/lib/NotifierMU.js +14 -19
- package/lib/OptionBool.js +1 -2
- package/lib/OptionGroup.js +3 -4
- package/lib/OptionGroupFlag.js +1 -1
- package/lib/QuickList.js +2 -2
- package/lib/ResponsibleContainer.d.ts +3 -3
- package/lib/ResponsibleContainer.js +3 -3
- package/lib/ScrollerListEx.d.ts +6 -7
- package/lib/ScrollerListEx.js +30 -36
- package/lib/SearchField.js +3 -4
- package/lib/SelectBool.js +1 -2
- package/lib/SelectEx.js +6 -8
- package/lib/ShowDataComparison.js +3 -4
- package/lib/Switch.js +1 -2
- package/lib/SwitchAnt.js +6 -7
- package/lib/TableEx.js +5 -7
- package/lib/TagList.js +3 -5
- package/lib/TagListPro.js +3 -5
- package/lib/TextFieldEx.js +2 -2
- package/lib/Tiplist.js +6 -8
- package/lib/TiplistPro.js +9 -10
- package/lib/TooltipClick.js +2 -2
- package/lib/TwoFieldInput.js +1 -1
- package/lib/UserAvatar.js +1 -2
- package/lib/UserAvatarEditor.js +4 -6
- package/lib/app/CommonApp.js +1 -1
- package/lib/app/ReactApp.js +4 -6
- package/lib/app/ServiceApp.js +5 -7
- package/lib/pages/DataGridPage.d.ts +2 -2
- package/lib/pages/DataGridPage.js +2 -3
- package/lib/pages/DataGridPageProps.d.ts +2 -2
- package/lib/pages/FixedListPage.d.ts +2 -2
- package/lib/pages/FixedListPage.js +2 -3
- package/lib/pages/LeftDrawer.js +2 -3
- package/lib/pages/ListPage.d.ts +2 -2
- package/lib/pages/ListPage.js +2 -3
- package/lib/pages/ListPageProps.d.ts +1 -1
- package/lib/pages/ResponsivePage.d.ts +2 -2
- package/lib/pages/ResponsivePage.js +1 -2
- package/lib/pages/ResponsivePageProps.d.ts +2 -2
- package/lib/pages/TablePage.js +3 -5
- package/lib/pages/UserMenu.js +1 -2
- package/lib/pages/ViewPage.js +6 -7
- package/package.json +14 -12
- package/src/DataGridEx.tsx +6 -12
- package/src/ResponsibleContainer.tsx +7 -9
- package/src/ScrollerListEx.tsx +301 -311
- package/src/pages/DataGridPage.tsx +4 -5
- package/src/pages/DataGridPageProps.ts +3 -4
- package/src/pages/FixedListPage.tsx +4 -5
- package/src/pages/ListPage.tsx +4 -5
- package/src/pages/ListPageProps.ts +2 -3
- package/src/pages/ResponsivePage.tsx +4 -5
- package/src/pages/ResponsivePageProps.ts +2 -3
- package/tsconfig.json +3 -3
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useCombinedRefs,
|
|
8
8
|
useDimensions
|
|
9
9
|
} from "@etsoo/react";
|
|
10
|
-
import { DataTypes
|
|
10
|
+
import { DataTypes } from "@etsoo/shared";
|
|
11
11
|
import { Box, Stack } from "@mui/material";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { DataGridEx } from "../DataGridEx";
|
|
@@ -31,9 +31,8 @@ interface LocalStates<T> {
|
|
|
31
31
|
*/
|
|
32
32
|
export function DataGridPage<
|
|
33
33
|
T extends object,
|
|
34
|
-
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
35
|
-
|
|
36
|
-
>(props: DataGridPageProps<T, F, D>) {
|
|
34
|
+
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
35
|
+
>(props: DataGridPageProps<T, F>) {
|
|
37
36
|
// Destruct
|
|
38
37
|
const {
|
|
39
38
|
adjustHeight,
|
|
@@ -147,7 +146,7 @@ export function DataGridPage<
|
|
|
147
146
|
if (gridHeight == null) return;
|
|
148
147
|
|
|
149
148
|
return (
|
|
150
|
-
<DataGridEx<T
|
|
149
|
+
<DataGridEx<T>
|
|
151
150
|
autoLoad={false}
|
|
152
151
|
height={gridHeight}
|
|
153
152
|
loadData={localLoadData}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes
|
|
1
|
+
import { DataTypes } from "@etsoo/shared";
|
|
2
2
|
import { DataGridExProps } from "../DataGridEx";
|
|
3
3
|
import { SearchPageProps } from "./SearchPageProps";
|
|
4
4
|
|
|
@@ -7,10 +7,9 @@ import { SearchPageProps } from "./SearchPageProps";
|
|
|
7
7
|
*/
|
|
8
8
|
export type DataGridPageProps<
|
|
9
9
|
T extends object,
|
|
10
|
-
F extends DataTypes.BasicTemplate
|
|
11
|
-
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
10
|
+
F extends DataTypes.BasicTemplate
|
|
12
11
|
> = SearchPageProps<T, F> &
|
|
13
|
-
Omit<DataGridExProps<T
|
|
12
|
+
Omit<DataGridExProps<T>, "loadData" | "height"> & {
|
|
14
13
|
/**
|
|
15
14
|
* Height will be deducted
|
|
16
15
|
* @param height Current calcuated height
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useCombinedRefs,
|
|
8
8
|
useDimensions
|
|
9
9
|
} from "@etsoo/react";
|
|
10
|
-
import { DataTypes
|
|
10
|
+
import { DataTypes } from "@etsoo/shared";
|
|
11
11
|
import { Box, Stack } from "@mui/material";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { MUGlobal } from "../MUGlobal";
|
|
@@ -24,10 +24,9 @@ import { GridUtils } from "../GridUtils";
|
|
|
24
24
|
*/
|
|
25
25
|
export function FixedListPage<
|
|
26
26
|
T extends object,
|
|
27
|
-
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
28
|
-
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
27
|
+
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
29
28
|
>(
|
|
30
|
-
props: ListPageProps<T, F
|
|
29
|
+
props: ListPageProps<T, F> & {
|
|
31
30
|
/**
|
|
32
31
|
* Height will be deducted
|
|
33
32
|
* @param height Current calcuated height
|
|
@@ -149,7 +148,7 @@ export function FixedListPage<
|
|
|
149
148
|
height: height + "px"
|
|
150
149
|
}}
|
|
151
150
|
>
|
|
152
|
-
<ScrollerListEx<T
|
|
151
|
+
<ScrollerListEx<T>
|
|
153
152
|
autoLoad={false}
|
|
154
153
|
height={height}
|
|
155
154
|
loadData={localLoadData}
|
package/src/pages/ListPage.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ScrollerListRef,
|
|
7
7
|
useCombinedRefs
|
|
8
8
|
} from "@etsoo/react";
|
|
9
|
-
import { DataTypes
|
|
9
|
+
import { DataTypes } from "@etsoo/shared";
|
|
10
10
|
import { Box, Stack } from "@mui/material";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { MUGlobal } from "../MUGlobal";
|
|
@@ -23,9 +23,8 @@ import { GridUtils } from "../GridUtils";
|
|
|
23
23
|
*/
|
|
24
24
|
export function ListPage<
|
|
25
25
|
T extends object,
|
|
26
|
-
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
27
|
-
|
|
28
|
-
>(props: ListPageProps<T, F, D>) {
|
|
26
|
+
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
27
|
+
>(props: ListPageProps<T, F>) {
|
|
29
28
|
// Destruct
|
|
30
29
|
const {
|
|
31
30
|
fields,
|
|
@@ -124,7 +123,7 @@ export function ListPage<
|
|
|
124
123
|
>
|
|
125
124
|
<SearchBar fields={f} onSubmit={onSubmit} />
|
|
126
125
|
</Box>
|
|
127
|
-
<ScrollerListEx<T
|
|
126
|
+
<ScrollerListEx<T>
|
|
128
127
|
autoLoad={false}
|
|
129
128
|
loadData={localLoadData}
|
|
130
129
|
onUpdateRows={GridUtils.getUpdateRowsHandler<T>(cacheKey)}
|
|
@@ -7,6 +7,5 @@ import { SearchPageProps } from "./SearchPageProps";
|
|
|
7
7
|
*/
|
|
8
8
|
export type ListPageProps<
|
|
9
9
|
T extends object,
|
|
10
|
-
F extends DataTypes.BasicTemplate
|
|
11
|
-
|
|
12
|
-
> = SearchPageProps<T, F> & Omit<ScrollerListExProps<T, D>, "loadData">;
|
|
10
|
+
F extends DataTypes.BasicTemplate
|
|
11
|
+
> = SearchPageProps<T, F> & Omit<ScrollerListExProps<T>, "loadData">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes
|
|
1
|
+
import { DataTypes } from "@etsoo/shared";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { MUGlobal } from "../MUGlobal";
|
|
4
4
|
import { ResponsibleContainer } from "../ResponsibleContainer";
|
|
@@ -13,9 +13,8 @@ import { OperationMessageContainer } from "../messages/OperationMessageContainer
|
|
|
13
13
|
*/
|
|
14
14
|
export function ResponsivePage<
|
|
15
15
|
T extends object,
|
|
16
|
-
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
17
|
-
|
|
18
|
-
>(props: ResponsePageProps<T, F, D>) {
|
|
16
|
+
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
17
|
+
>(props: ResponsePageProps<T, F>) {
|
|
19
18
|
// Destruct
|
|
20
19
|
const { pageProps = {}, operationMessageHandler, ...rest } = props;
|
|
21
20
|
|
|
@@ -37,7 +36,7 @@ export function ResponsivePage<
|
|
|
37
36
|
{operationMessageHandler && (
|
|
38
37
|
<OperationMessageContainer handler={operationMessageHandler} />
|
|
39
38
|
)}
|
|
40
|
-
<ResponsibleContainer<T, F
|
|
39
|
+
<ResponsibleContainer<T, F>
|
|
41
40
|
paddings={paddings}
|
|
42
41
|
containerBoxSx={(paddings, hasField, _dataGrid) => {
|
|
43
42
|
// Half
|
|
@@ -13,10 +13,9 @@ import { OperationMessageHandlerAll } from "../messages/OperationMessageHandler"
|
|
|
13
13
|
*/
|
|
14
14
|
export type ResponsePageProps<
|
|
15
15
|
T extends object,
|
|
16
|
-
F extends DataTypes.BasicTemplate
|
|
17
|
-
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
16
|
+
F extends DataTypes.BasicTemplate
|
|
18
17
|
> = Omit<
|
|
19
|
-
DataGridPageProps<T, F
|
|
18
|
+
DataGridPageProps<T, F>,
|
|
20
19
|
"mRef" | "itemKey" | "onScroll" | "onItemsRendered"
|
|
21
20
|
> & {
|
|
22
21
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "ES2020",
|
|
5
5
|
"module": "ESNext",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"moduleResolution": "Node10",
|
|
7
|
+
"allowJs": false,
|
|
8
8
|
"isolatedModules": true,
|
|
9
9
|
"outDir": "./lib",
|
|
10
10
|
"noEmit": false,
|