@etsoo/materialui 1.3.49 → 1.3.51
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/LICENSE +1 -1
- package/__tests__/NotifierMUTests.tsx +1 -2
- package/__tests__/SelectEx.tsx +1 -2
- package/__tests__/SwitchAnt.tsx +1 -2
- package/lib/CultureDataTable.js +1 -1
- package/lib/PullToRefreshUI.js +2 -2
- package/lib/ShowDataComparison.d.ts +1 -1
- package/package.json +25 -25
- package/src/CultureDataTable.tsx +3 -3
- package/src/PullToRefreshUI.tsx +2 -2
package/LICENSE
CHANGED
|
@@ -2,9 +2,8 @@ import {
|
|
|
2
2
|
INotification,
|
|
3
3
|
NotificationMessageType
|
|
4
4
|
} from "@etsoo/notificationbase";
|
|
5
|
-
import React from "react";
|
|
5
|
+
import React, { act } from "react";
|
|
6
6
|
import { createRoot } from "react-dom/client";
|
|
7
|
-
import { act } from "react-dom/test-utils";
|
|
8
7
|
import { NotifierMU } from "../src";
|
|
9
8
|
|
|
10
9
|
// Without it will popup error:
|
package/__tests__/SelectEx.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { act } from "react";
|
|
2
2
|
import { SelectEx } from "../src";
|
|
3
3
|
import { findByText, fireEvent, render, screen } from "@testing-library/react";
|
|
4
4
|
import { ListType1, Utils } from "@etsoo/shared";
|
|
5
|
-
import { act } from "react-dom/test-utils";
|
|
6
5
|
|
|
7
6
|
it("Render SelectEx", async () => {
|
|
8
7
|
// Arrange
|
package/__tests__/SwitchAnt.tsx
CHANGED
package/lib/CultureDataTable.js
CHANGED
package/lib/PullToRefreshUI.js
CHANGED
|
@@ -10,8 +10,8 @@ export function PullToRefreshUI(props) {
|
|
|
10
10
|
React.useEffect(() => {
|
|
11
11
|
let pr;
|
|
12
12
|
import("pulltorefreshjs").then((PullToRefresh) => {
|
|
13
|
-
PullToRefresh.
|
|
14
|
-
pr
|
|
13
|
+
pr = PullToRefresh.default;
|
|
14
|
+
pr.init(props);
|
|
15
15
|
});
|
|
16
16
|
return () => {
|
|
17
17
|
if (pr)
|
|
@@ -12,4 +12,4 @@ export declare function IsAuditLineUpdateData(obj: any): obj is AuditLineChanges
|
|
|
12
12
|
* @param getLabel Get label callback
|
|
13
13
|
* @param equalCheck Equal check for properties
|
|
14
14
|
*/
|
|
15
|
-
export declare const ShowDataComparison: (data: AuditLineChangesDto, modelTitle?: string, getLabel?: (
|
|
15
|
+
export declare const ShowDataComparison: (data: AuditLineChangesDto, modelTitle?: string, getLabel?: (field: string) => string, equalCheck?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.51",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -49,48 +49,48 @@
|
|
|
49
49
|
"@dnd-kit/sortable": "^8.0.0",
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.4",
|
|
52
|
-
"@emotion/styled": "^11.11.
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
54
|
-
"@etsoo/notificationbase": "^1.1.
|
|
55
|
-
"@etsoo/react": "^1.7.
|
|
56
|
-
"@etsoo/shared": "^1.2.
|
|
57
|
-
"@mui/icons-material": "^5.15.
|
|
58
|
-
"@mui/material": "^5.15.
|
|
59
|
-
"@mui/x-data-grid": "^
|
|
52
|
+
"@emotion/styled": "^11.11.5",
|
|
53
|
+
"@etsoo/appscript": "^1.4.84",
|
|
54
|
+
"@etsoo/notificationbase": "^1.1.42",
|
|
55
|
+
"@etsoo/react": "^1.7.34",
|
|
56
|
+
"@etsoo/shared": "^1.2.37",
|
|
57
|
+
"@mui/icons-material": "^5.15.15",
|
|
58
|
+
"@mui/material": "^5.15.15",
|
|
59
|
+
"@mui/x-data-grid": "^7.3.1",
|
|
60
60
|
"chart.js": "^4.4.2",
|
|
61
61
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
62
62
|
"eventemitter3": "^5.0.1",
|
|
63
63
|
"pica": "^9.0.1",
|
|
64
64
|
"pulltorefreshjs": "^0.1.22",
|
|
65
|
-
"react": "^18.
|
|
65
|
+
"react": "^18.3.1",
|
|
66
66
|
"react-avatar-editor": "^13.0.2",
|
|
67
67
|
"react-chartjs-2": "^5.2.0",
|
|
68
|
-
"react-dom": "^18.
|
|
68
|
+
"react-dom": "^18.3.1",
|
|
69
69
|
"react-draggable": "^4.4.6",
|
|
70
|
-
"react-imask": "7.
|
|
70
|
+
"react-imask": "7.6.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@babel/cli": "^7.
|
|
74
|
-
"@babel/core": "^7.24.
|
|
75
|
-
"@babel/plugin-transform-runtime": "^7.24.
|
|
76
|
-
"@babel/preset-env": "^7.24.
|
|
77
|
-
"@babel/preset-react": "^7.
|
|
78
|
-
"@babel/preset-typescript": "^7.
|
|
79
|
-
"@babel/runtime-corejs3": "^7.24.
|
|
73
|
+
"@babel/cli": "^7.24.1",
|
|
74
|
+
"@babel/core": "^7.24.4",
|
|
75
|
+
"@babel/plugin-transform-runtime": "^7.24.3",
|
|
76
|
+
"@babel/preset-env": "^7.24.4",
|
|
77
|
+
"@babel/preset-react": "^7.24.1",
|
|
78
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
79
|
+
"@babel/runtime-corejs3": "^7.24.4",
|
|
80
80
|
"@testing-library/jest-dom": "^6.4.2",
|
|
81
|
-
"@testing-library/react": "^
|
|
81
|
+
"@testing-library/react": "^15.0.5",
|
|
82
82
|
"@types/jest": "^29.5.12",
|
|
83
83
|
"@types/pica": "^9.0.4",
|
|
84
84
|
"@types/pulltorefreshjs": "^0.1.7",
|
|
85
|
-
"@types/react": "^18.
|
|
85
|
+
"@types/react": "^18.3.1",
|
|
86
86
|
"@types/react-avatar-editor": "^13.0.2",
|
|
87
|
-
"@types/react-dom": "^18.
|
|
87
|
+
"@types/react-dom": "^18.3.0",
|
|
88
88
|
"@types/react-input-mask": "^3.0.5",
|
|
89
89
|
"@types/react-window": "^1.8.8",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
91
|
-
"@typescript-eslint/parser": "^7.
|
|
90
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
91
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
92
92
|
"jest": "^29.7.0",
|
|
93
93
|
"jest-environment-jsdom": "^29.7.0",
|
|
94
|
-
"typescript": "^5.
|
|
94
|
+
"typescript": "^5.4.5"
|
|
95
95
|
}
|
|
96
96
|
}
|
package/src/CultureDataTable.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { DataTable, DataTableProps } from "./DataTable";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { globalApp } from "./app/ReactApp";
|
|
4
4
|
import { ListType1 } from "@etsoo/shared";
|
|
5
|
-
import {
|
|
5
|
+
import { GridRenderCellParams } from "@mui/x-data-grid";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Culture table props
|
|
@@ -34,7 +34,7 @@ export function CultureDataTable(props: CultureDataTableProps) {
|
|
|
34
34
|
} = props;
|
|
35
35
|
|
|
36
36
|
const getCultureLabel = React.useCallback(
|
|
37
|
-
(value:
|
|
37
|
+
(value: GridRenderCellParams) =>
|
|
38
38
|
cultures.find((c) => c.id == value.id)?.label ?? `${value.value}`,
|
|
39
39
|
[cultures]
|
|
40
40
|
);
|
|
@@ -45,7 +45,7 @@ export function CultureDataTable(props: CultureDataTableProps) {
|
|
|
45
45
|
{
|
|
46
46
|
field: "id",
|
|
47
47
|
headerName: cultureLabel,
|
|
48
|
-
|
|
48
|
+
renderCell: getCultureLabel,
|
|
49
49
|
width: 150,
|
|
50
50
|
editable: false,
|
|
51
51
|
sortable: false
|
package/src/PullToRefreshUI.tsx
CHANGED
|
@@ -15,8 +15,8 @@ export function PullToRefreshUI(props: Options) {
|
|
|
15
15
|
React.useEffect(() => {
|
|
16
16
|
let pr: p | null;
|
|
17
17
|
import("pulltorefreshjs").then((PullToRefresh) => {
|
|
18
|
-
PullToRefresh.
|
|
19
|
-
pr
|
|
18
|
+
pr = PullToRefresh.default;
|
|
19
|
+
pr.init(props);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
return () => {
|