@etsoo/materialui 1.4.78 → 1.4.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/__tests__/ReactAppTests.tsx +44 -49
- package/package.json +6 -6
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AddressUtils,
|
|
3
|
-
ApiAuthorizationScheme,
|
|
4
|
-
Culture,
|
|
5
|
-
ExternalSettings
|
|
6
|
-
} from "@etsoo/appscript";
|
|
1
|
+
import { AddressUtils, Culture } from "@etsoo/appscript";
|
|
7
2
|
import { ReactApp } from "../src";
|
|
8
3
|
import { DataTypes, DomUtils, IActionResult, Utils } from "@etsoo/shared";
|
|
9
4
|
import React, { act } from "react";
|
|
@@ -28,49 +23,49 @@ const supportedCultures: DataTypes.CultureDefinition[] = [
|
|
|
28
23
|
// Supported regions
|
|
29
24
|
const supportedRegions = ["CN"];
|
|
30
25
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
26
|
+
const app = new ReactApp(
|
|
27
|
+
{
|
|
28
|
+
appId: 0,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Endpoint of the API service
|
|
32
|
+
*/
|
|
33
|
+
endpoint: "http://{hostname}/com.etsoo.SmartERPApi/api/",
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* App root url
|
|
37
|
+
*/
|
|
38
|
+
homepage: "/cms",
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Web url of the cloud
|
|
42
|
+
*/
|
|
43
|
+
webUrl: "http://localhost",
|
|
44
|
+
|
|
45
|
+
// Detected culture
|
|
46
|
+
detectedCulture,
|
|
47
|
+
|
|
48
|
+
// Supported cultures
|
|
49
|
+
cultures: supportedCultures,
|
|
50
|
+
|
|
51
|
+
// Supported regions
|
|
52
|
+
regions: supportedRegions,
|
|
53
|
+
|
|
54
|
+
// Browser's time zone
|
|
55
|
+
timeZone: Utils.getTimeZone(),
|
|
56
|
+
|
|
57
|
+
// Current country or region
|
|
58
|
+
currentRegion: AddressUtils.getRegion(
|
|
59
|
+
supportedRegions,
|
|
60
|
+
detectedCountry,
|
|
61
|
+
detectedCulture
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
// Current culture
|
|
65
|
+
currentCulture: DomUtils.getCulture(supportedCultures, detectedCulture)![0]
|
|
66
|
+
},
|
|
67
|
+
"test"
|
|
68
|
+
);
|
|
74
69
|
|
|
75
70
|
// Root
|
|
76
71
|
const root = document.body;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.79",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@dnd-kit/sortable": "^10.0.0",
|
|
41
41
|
"@emotion/react": "^11.14.0",
|
|
42
42
|
"@emotion/styled": "^11.14.0",
|
|
43
|
-
"@etsoo/appscript": "^1.
|
|
43
|
+
"@etsoo/appscript": "^1.6.0",
|
|
44
44
|
"@etsoo/notificationbase": "^1.1.58",
|
|
45
|
-
"@etsoo/react": "^1.8.
|
|
46
|
-
"@etsoo/shared": "^1.2.
|
|
47
|
-
"@mui/icons-material": "^6.4.
|
|
48
|
-
"@mui/material": "^6.4.
|
|
45
|
+
"@etsoo/react": "^1.8.29",
|
|
46
|
+
"@etsoo/shared": "^1.2.61",
|
|
47
|
+
"@mui/icons-material": "^6.4.4",
|
|
48
|
+
"@mui/material": "^6.4.4",
|
|
49
49
|
"@mui/x-data-grid": "^7.26.0",
|
|
50
50
|
"chart.js": "^4.4.7",
|
|
51
51
|
"chartjs-plugin-datalabels": "^2.2.0",
|