@etsoo/materialui 1.3.50 → 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.
@@ -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:
@@ -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
@@ -1,6 +1,5 @@
1
1
  import { getByText, render } from "@testing-library/react";
2
- import React from "react";
3
- import { act } from "react-dom/test-utils";
2
+ import React, { act } from "react";
4
3
  import { SwitchAnt } from "../src/SwitchAnt";
5
4
 
6
5
  it("SwitchAnt Tests", () => {
@@ -14,7 +14,7 @@ export function CultureDataTable(props) {
14
14
  {
15
15
  field: "id",
16
16
  headerName: cultureLabel,
17
- valueFormatter: getCultureLabel,
17
+ renderCell: getCultureLabel,
18
18
  width: 150,
19
19
  editable: false,
20
20
  sortable: false
@@ -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?: ((field: string) => string) | undefined, equalCheck?: boolean) => void;
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.50",
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.0",
53
- "@etsoo/appscript": "^1.4.83",
54
- "@etsoo/notificationbase": "^1.1.41",
55
- "@etsoo/react": "^1.7.33",
56
- "@etsoo/shared": "^1.2.34",
57
- "@mui/icons-material": "^5.15.11",
58
- "@mui/material": "^5.15.11",
59
- "@mui/x-data-grid": "^6.19.6",
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.2.0",
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.2.0",
68
+ "react-dom": "^18.3.1",
69
69
  "react-draggable": "^4.4.6",
70
- "react-imask": "7.5.0"
70
+ "react-imask": "7.6.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/cli": "^7.23.9",
74
- "@babel/core": "^7.24.0",
75
- "@babel/plugin-transform-runtime": "^7.24.0",
76
- "@babel/preset-env": "^7.24.0",
77
- "@babel/preset-react": "^7.23.3",
78
- "@babel/preset-typescript": "^7.23.3",
79
- "@babel/runtime-corejs3": "^7.24.0",
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": "^14.2.1",
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.2.63",
85
+ "@types/react": "^18.3.1",
86
86
  "@types/react-avatar-editor": "^13.0.2",
87
- "@types/react-dom": "^18.2.19",
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.1.1",
91
- "@typescript-eslint/parser": "^7.1.1",
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.3.3"
94
+ "typescript": "^5.4.5"
95
95
  }
96
96
  }
@@ -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 { GridValueFormatterParams } from "@mui/x-data-grid";
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: GridValueFormatterParams) =>
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
- valueFormatter: getCultureLabel,
48
+ renderCell: getCultureLabel,
49
49
  width: 150,
50
50
  editable: false,
51
51
  sortable: false