@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.
Files changed (82) hide show
  1. package/__tests__/tsconfig.json +17 -17
  2. package/lib/AddresSelector.js +1 -2
  3. package/lib/AuditDisplay.js +2 -3
  4. package/lib/BridgeCloseButton.js +1 -2
  5. package/lib/ComboBox.js +5 -5
  6. package/lib/ComboBoxMultiple.js +7 -8
  7. package/lib/ComboBoxPro.js +1 -2
  8. package/lib/CultureDataTable.js +2 -2
  9. package/lib/DataGridEx.d.ts +2 -3
  10. package/lib/DataGridEx.js +12 -14
  11. package/lib/DataGridRenderers.js +6 -6
  12. package/lib/DataSteps.js +1 -2
  13. package/lib/DataTable.js +1 -2
  14. package/lib/DialogButton.js +2 -3
  15. package/lib/DnDList.js +1 -1
  16. package/lib/EmailInput.js +1 -2
  17. package/lib/FileUploadButton.js +1 -1
  18. package/lib/GridDataFormat.js +5 -5
  19. package/lib/GridUtils.js +1 -2
  20. package/lib/HiSelector.js +1 -1
  21. package/lib/HiSelectorTL.js +1 -1
  22. package/lib/InputField.js +4 -5
  23. package/lib/InputTipField.js +1 -1
  24. package/lib/ItemList.js +2 -3
  25. package/lib/ListChooser.js +4 -5
  26. package/lib/LoadingButton.js +1 -2
  27. package/lib/MaskInput.js +2 -3
  28. package/lib/NotifierMU.js +14 -19
  29. package/lib/OptionBool.js +1 -2
  30. package/lib/OptionGroup.js +3 -4
  31. package/lib/OptionGroupFlag.js +1 -1
  32. package/lib/QuickList.js +2 -2
  33. package/lib/ResponsibleContainer.d.ts +3 -3
  34. package/lib/ResponsibleContainer.js +3 -3
  35. package/lib/ScrollerListEx.d.ts +6 -7
  36. package/lib/ScrollerListEx.js +30 -36
  37. package/lib/SearchField.js +3 -4
  38. package/lib/SelectBool.js +1 -2
  39. package/lib/SelectEx.js +6 -8
  40. package/lib/ShowDataComparison.js +3 -4
  41. package/lib/Switch.js +1 -2
  42. package/lib/SwitchAnt.js +6 -7
  43. package/lib/TableEx.js +5 -7
  44. package/lib/TagList.js +3 -5
  45. package/lib/TagListPro.js +3 -5
  46. package/lib/TextFieldEx.js +2 -2
  47. package/lib/Tiplist.js +6 -8
  48. package/lib/TiplistPro.js +9 -10
  49. package/lib/TooltipClick.js +2 -2
  50. package/lib/TwoFieldInput.js +1 -1
  51. package/lib/UserAvatar.js +1 -2
  52. package/lib/UserAvatarEditor.js +4 -6
  53. package/lib/app/CommonApp.js +1 -1
  54. package/lib/app/ReactApp.js +4 -6
  55. package/lib/app/ServiceApp.js +5 -7
  56. package/lib/pages/DataGridPage.d.ts +2 -2
  57. package/lib/pages/DataGridPage.js +2 -3
  58. package/lib/pages/DataGridPageProps.d.ts +2 -2
  59. package/lib/pages/FixedListPage.d.ts +2 -2
  60. package/lib/pages/FixedListPage.js +2 -3
  61. package/lib/pages/LeftDrawer.js +2 -3
  62. package/lib/pages/ListPage.d.ts +2 -2
  63. package/lib/pages/ListPage.js +2 -3
  64. package/lib/pages/ListPageProps.d.ts +1 -1
  65. package/lib/pages/ResponsivePage.d.ts +2 -2
  66. package/lib/pages/ResponsivePage.js +1 -2
  67. package/lib/pages/ResponsivePageProps.d.ts +2 -2
  68. package/lib/pages/TablePage.js +3 -5
  69. package/lib/pages/UserMenu.js +1 -2
  70. package/lib/pages/ViewPage.js +6 -7
  71. package/package.json +14 -12
  72. package/src/DataGridEx.tsx +6 -12
  73. package/src/ResponsibleContainer.tsx +7 -9
  74. package/src/ScrollerListEx.tsx +301 -311
  75. package/src/pages/DataGridPage.tsx +4 -5
  76. package/src/pages/DataGridPageProps.ts +3 -4
  77. package/src/pages/FixedListPage.tsx +4 -5
  78. package/src/pages/ListPage.tsx +4 -5
  79. package/src/pages/ListPageProps.ts +2 -3
  80. package/src/pages/ResponsivePage.tsx +4 -5
  81. package/src/pages/ResponsivePageProps.ts +2 -3
  82. package/tsconfig.json +3 -3
@@ -7,7 +7,7 @@ import {
7
7
  useCombinedRefs,
8
8
  useDimensions
9
9
  } from "@etsoo/react";
10
- import { DataTypes, IdDefaultType } from "@etsoo/shared";
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
- D extends DataTypes.Keys<T> = IdDefaultType<T>
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, D>
149
+ <DataGridEx<T>
151
150
  autoLoad={false}
152
151
  height={gridHeight}
153
152
  loadData={localLoadData}
@@ -1,4 +1,4 @@
1
- import { DataTypes, IdDefaultType } from "@etsoo/shared";
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, D>, "loadData" | "height"> & {
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, IdDefaultType } from "@etsoo/shared";
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, D> & {
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, D>
151
+ <ScrollerListEx<T>
153
152
  autoLoad={false}
154
153
  height={height}
155
154
  loadData={localLoadData}
@@ -6,7 +6,7 @@ import {
6
6
  ScrollerListRef,
7
7
  useCombinedRefs
8
8
  } from "@etsoo/react";
9
- import { DataTypes, IdDefaultType } from "@etsoo/shared";
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
- D extends DataTypes.Keys<T> = IdDefaultType<T>
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, D>
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
- D extends DataTypes.Keys<T>
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, IdDefaultType } from "@etsoo/shared";
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
- D extends DataTypes.Keys<T> = IdDefaultType<T>
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, D>
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, D>,
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": "ES2019",
4
+ "target": "ES2020",
5
5
  "module": "ESNext",
6
- "allowJs": true,
7
- "moduleResolution": "bundler",
6
+ "moduleResolution": "Node10",
7
+ "allowJs": false,
8
8
  "isolatedModules": true,
9
9
  "outDir": "./lib",
10
10
  "noEmit": false,