@etsoo/react 1.5.78 → 1.5.79
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/lib/components/ScrollerGrid.d.ts +3 -3
- package/lib/mu/AutocompleteExtendedProps.d.ts +5 -7
- package/lib/mu/ComboBox.d.ts +8 -10
- package/lib/mu/DataGridEx.d.ts +3 -3
- package/lib/mu/ItemList.d.ts +6 -5
- package/lib/mu/ItemList.js +4 -12
- package/lib/mu/OptionGroup.d.ts +12 -16
- package/lib/mu/ResponsibleContainer.d.ts +3 -3
- package/lib/mu/ScrollerListEx.d.ts +3 -3
- package/lib/mu/SearchOptionGroup.d.ts +2 -2
- package/lib/mu/SelectBool.d.ts +2 -3
- package/lib/mu/SelectBool.js +1 -1
- package/lib/mu/SelectEx.d.ts +12 -16
- package/lib/mu/TableEx.d.ts +8 -10
- package/lib/mu/Tiplist.d.ts +2 -2
- package/lib/mu/pages/DataGridPage.d.ts +2 -2
- package/lib/mu/pages/DataGridPageProps.d.ts +2 -2
- package/lib/mu/pages/FixedListPage.d.ts +2 -2
- package/lib/mu/pages/ListPage.d.ts +2 -2
- package/lib/mu/pages/ListPageProps.d.ts +1 -1
- package/lib/mu/pages/ResponsivePage.d.ts +2 -2
- package/lib/mu/pages/ResponsivePageProps.d.ts +2 -2
- package/lib/mu/pages/TablePage.d.ts +2 -2
- package/lib/mu/pages/TablePageProps.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/ScrollerGrid.tsx +3 -3
- package/src/mu/AutocompleteExtendedProps.ts +6 -7
- package/src/mu/ComboBox.tsx +20 -13
- package/src/mu/DataGridEx.tsx +3 -3
- package/src/mu/ItemList.tsx +28 -25
- package/src/mu/OptionGroup.tsx +26 -21
- package/src/mu/ResponsibleContainer.tsx +3 -3
- package/src/mu/ScrollerListEx.tsx +3 -3
- package/src/mu/SearchOptionGroup.tsx +11 -5
- package/src/mu/SelectBool.tsx +7 -14
- package/src/mu/SelectEx.tsx +25 -20
- package/src/mu/TableEx.tsx +9 -10
- package/src/mu/Tiplist.tsx +3 -3
- package/src/mu/pages/DataGridPage.tsx +2 -2
- package/src/mu/pages/DataGridPageProps.ts +2 -2
- package/src/mu/pages/FixedListPage.tsx +5 -4
- package/src/mu/pages/ListPage.tsx +5 -4
- package/src/mu/pages/ListPageProps.ts +3 -2
- package/src/mu/pages/ResponsivePage.tsx +2 -2
- package/src/mu/pages/ResponsivePageProps.ts +2 -2
- package/src/mu/pages/TablePage.tsx +5 -4
- package/src/mu/pages/TablePageProps.ts +3 -2
|
@@ -7,5 +7,6 @@ import { SearchPageProps } from './SearchPageProps';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ListPageProps<
|
|
9
9
|
T extends object,
|
|
10
|
-
F extends DataTypes.BasicTemplate
|
|
11
|
-
|
|
10
|
+
F extends DataTypes.BasicTemplate,
|
|
11
|
+
D extends DataTypes.Keys<T>
|
|
12
|
+
> = SearchPageProps<T, F> & Omit<ScrollerListExProps<T, D>, 'loadData'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '@etsoo/shared';
|
|
1
|
+
import { DataTypes, IdDefaultType } from '@etsoo/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MUGlobal } from '../MUGlobal';
|
|
4
4
|
import { ResponsibleContainer } from '../ResponsibleContainer';
|
|
@@ -13,7 +13,7 @@ import { ResponsePageProps } from './ResponsivePageProps';
|
|
|
13
13
|
export function ResponsivePage<
|
|
14
14
|
T extends object,
|
|
15
15
|
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate,
|
|
16
|
-
D extends DataTypes.Keys<T> =
|
|
16
|
+
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
17
17
|
>(props: ResponsePageProps<T, F, D>) {
|
|
18
18
|
// Destruct
|
|
19
19
|
const { pageProps = {}, ...rest } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '@etsoo/shared';
|
|
1
|
+
import { DataTypes, IdDefaultType } from '@etsoo/shared';
|
|
2
2
|
import { ListChildComponentProps } from 'react-window';
|
|
3
3
|
import { GridMethodRef } from '../GridMethodRef';
|
|
4
4
|
import {
|
|
@@ -13,7 +13,7 @@ import { DataGridPageProps } from './DataGridPageProps';
|
|
|
13
13
|
export type ResponsePageProps<
|
|
14
14
|
T extends object,
|
|
15
15
|
F extends DataTypes.BasicTemplate,
|
|
16
|
-
D extends DataTypes.Keys<T> =
|
|
16
|
+
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
17
17
|
> = Omit<
|
|
18
18
|
DataGridPageProps<T, F, D>,
|
|
19
19
|
'mRef' | 'itemKey' | 'onScroll' | 'onItemsRendered'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypes } from '@etsoo/shared';
|
|
1
|
+
import { DataTypes, IdDefaultType } from '@etsoo/shared';
|
|
2
2
|
import { Box, Stack } from '@mui/material';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { GridDataGet, GridLoadDataProps } from '../../components/GridLoader';
|
|
@@ -17,8 +17,9 @@ import { TablePageProps } from './TablePageProps';
|
|
|
17
17
|
*/
|
|
18
18
|
export function TablePage<
|
|
19
19
|
T extends object,
|
|
20
|
-
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate
|
|
21
|
-
>
|
|
20
|
+
F extends DataTypes.BasicTemplate = DataTypes.BasicTemplate,
|
|
21
|
+
D extends DataTypes.Keys<T> = IdDefaultType<T>
|
|
22
|
+
>(props: TablePageProps<T, F, D>) {
|
|
22
23
|
// Destruct
|
|
23
24
|
const {
|
|
24
25
|
columns,
|
|
@@ -88,7 +89,7 @@ export function TablePage<
|
|
|
88
89
|
if (!isNaN(paddingBottom)) maxHeight -= paddingBottom;
|
|
89
90
|
|
|
90
91
|
return (
|
|
91
|
-
<TableEx<T>
|
|
92
|
+
<TableEx<T, D>
|
|
92
93
|
autoLoad={false}
|
|
93
94
|
columns={columns}
|
|
94
95
|
loadData={localLoadData}
|
|
@@ -7,5 +7,6 @@ import { SearchPageProps } from './SearchPageProps';
|
|
|
7
7
|
*/
|
|
8
8
|
export type TablePageProps<
|
|
9
9
|
T extends object,
|
|
10
|
-
F extends DataTypes.BasicTemplate
|
|
11
|
-
|
|
10
|
+
F extends DataTypes.BasicTemplate,
|
|
11
|
+
D extends DataTypes.Keys<T>
|
|
12
|
+
> = SearchPageProps<T, F> & Omit<TableExProps<T, D>, 'loadData'>;
|