@etsoo/smarterp-core 1.1.76 → 1.1.78

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.
@@ -6,7 +6,7 @@ import { MapApiProvider } from "@etsoo/appscript";
6
6
  const app = new TestApp();
7
7
 
8
8
  // Make sure the app is initialized before running the tests
9
- await new Promise((resolve) => setTimeout(resolve, 100));
9
+ await new Promise((resolve) => setTimeout(resolve, 200));
10
10
 
11
11
  await app.changeCulture(app.settings.cultures[0]);
12
12
 
@@ -6,13 +6,6 @@ import { IApp } from "@etsoo/appscript";
6
6
  * Core utilities
7
7
  */
8
8
  export declare namespace CoreUtils {
9
- /**
10
- * Get avatar styles
11
- * 获取头像样式
12
- * @param isOrg Is this an organization avatar?
13
- * @returns Styles
14
- */
15
- function avatarStyles(isOrg?: boolean): React.CSSProperties;
16
9
  /**
17
10
  * Get report data
18
11
  * 获取报告数据
@@ -12,20 +12,6 @@ const appscript_1 = require("@etsoo/appscript");
12
12
  */
13
13
  var CoreUtils;
14
14
  (function (CoreUtils) {
15
- /**
16
- * Get avatar styles
17
- * 获取头像样式
18
- * @param isOrg Is this an organization avatar?
19
- * @returns Styles
20
- */
21
- function avatarStyles(isOrg = false) {
22
- return {
23
- width: "160px",
24
- height: isOrg ? "80px" : "160px",
25
- border: "1px solid #666"
26
- };
27
- }
28
- CoreUtils.avatarStyles = avatarStyles;
29
15
  /**
30
16
  * Get report data
31
17
  * 获取报告数据
@@ -32,6 +32,10 @@ export type OrgReadDto = {
32
32
  * Logo
33
33
  */
34
34
  logo?: string;
35
+ /**
36
+ * Company seal
37
+ */
38
+ companySeal?: string;
35
39
  /**
36
40
  * PIN
37
41
  */
@@ -36,4 +36,9 @@ export type UserUpdateReadDto = {
36
36
  * 拉丁名
37
37
  */
38
38
  latinGivenName?: string;
39
+ /**
40
+ * Signature
41
+ * 签名
42
+ */
43
+ signature?: string;
39
44
  };
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "Collapse navigation menu",
28
28
  "cultures": "Cultures",
29
29
  "companyNo": "Company No.",
30
+ "companySeal": "Company seal",
30
31
  "completeExecution": "Complete execution",
31
32
  "currentOrg": "Current organization",
32
33
  "customResources": "Custom resources",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "Same period last year",
112
113
  "slogan": "Slogan",
113
114
  "smarterp": "SmartERP Cloud",
115
+ "signature": "Signature",
114
116
  "signin": "Sign in",
115
117
  "signout": "Sign out",
116
118
  "signoutSuccess": "Logout successful, please close the current window",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折叠导航菜单",
28
28
  "cultures": "语言/文化",
29
29
  "companyNo": "机构编号",
30
+ "companySeal": "机构印章",
30
31
  "completeExecution": "完成执行",
31
32
  "currentOrg": "当前机构",
32
33
  "customResources": "自定义资源",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "去年同期",
112
113
  "slogan": "标语",
113
114
  "smarterp": "司友®云ERP",
115
+ "signature": "签名",
114
116
  "signin": "登录",
115
117
  "signout": "退出",
116
118
  "signoutSuccess": "退出成功,请关闭当前窗口",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折疊導航菜單",
28
28
  "cultures": "語言/文化",
29
29
  "companyNo": "機構編號",
30
+ "companySeal": "機構印章",
30
31
  "completeExecution": "完成執行",
31
32
  "currentOrg": "當前機構",
32
33
  "customResources": "自定義資源",
@@ -109,6 +110,7 @@
109
110
  "rolePartner": "渠道夥伴",
110
111
  "roleUser": "用戶",
111
112
  "samePeriodLastYear": "去年同期",
113
+ "signature": "簽名",
112
114
  "signin": "登入",
113
115
  "signout": "登出",
114
116
  "slogan": "標語",
@@ -6,13 +6,6 @@ import { IApp } from "@etsoo/appscript";
6
6
  * Core utilities
7
7
  */
8
8
  export declare namespace CoreUtils {
9
- /**
10
- * Get avatar styles
11
- * 获取头像样式
12
- * @param isOrg Is this an organization avatar?
13
- * @returns Styles
14
- */
15
- function avatarStyles(isOrg?: boolean): React.CSSProperties;
16
9
  /**
17
10
  * Get report data
18
11
  * 获取报告数据
@@ -6,20 +6,6 @@ import { BusinessUtils } from "@etsoo/appscript";
6
6
  */
7
7
  export var CoreUtils;
8
8
  (function (CoreUtils) {
9
- /**
10
- * Get avatar styles
11
- * 获取头像样式
12
- * @param isOrg Is this an organization avatar?
13
- * @returns Styles
14
- */
15
- function avatarStyles(isOrg = false) {
16
- return {
17
- width: "160px",
18
- height: isOrg ? "80px" : "160px",
19
- border: "1px solid #666"
20
- };
21
- }
22
- CoreUtils.avatarStyles = avatarStyles;
23
9
  /**
24
10
  * Get report data
25
11
  * 获取报告数据
@@ -32,6 +32,10 @@ export type OrgReadDto = {
32
32
  * Logo
33
33
  */
34
34
  logo?: string;
35
+ /**
36
+ * Company seal
37
+ */
38
+ companySeal?: string;
35
39
  /**
36
40
  * PIN
37
41
  */
@@ -36,4 +36,9 @@ export type UserUpdateReadDto = {
36
36
  * 拉丁名
37
37
  */
38
38
  latinGivenName?: string;
39
+ /**
40
+ * Signature
41
+ * 签名
42
+ */
43
+ signature?: string;
39
44
  };
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "Collapse navigation menu",
28
28
  "cultures": "Cultures",
29
29
  "companyNo": "Company No.",
30
+ "companySeal": "Company seal",
30
31
  "completeExecution": "Complete execution",
31
32
  "currentOrg": "Current organization",
32
33
  "customResources": "Custom resources",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "Same period last year",
112
113
  "slogan": "Slogan",
113
114
  "smarterp": "SmartERP Cloud",
115
+ "signature": "Signature",
114
116
  "signin": "Sign in",
115
117
  "signout": "Sign out",
116
118
  "signoutSuccess": "Logout successful, please close the current window",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折叠导航菜单",
28
28
  "cultures": "语言/文化",
29
29
  "companyNo": "机构编号",
30
+ "companySeal": "机构印章",
30
31
  "completeExecution": "完成执行",
31
32
  "currentOrg": "当前机构",
32
33
  "customResources": "自定义资源",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "去年同期",
112
113
  "slogan": "标语",
113
114
  "smarterp": "司友®云ERP",
115
+ "signature": "签名",
114
116
  "signin": "登录",
115
117
  "signout": "退出",
116
118
  "signoutSuccess": "退出成功,请关闭当前窗口",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折疊導航菜單",
28
28
  "cultures": "語言/文化",
29
29
  "companyNo": "機構編號",
30
+ "companySeal": "機構印章",
30
31
  "completeExecution": "完成執行",
31
32
  "currentOrg": "當前機構",
32
33
  "customResources": "自定義資源",
@@ -109,6 +110,7 @@
109
110
  "rolePartner": "渠道夥伴",
110
111
  "roleUser": "用戶",
111
112
  "samePeriodLastYear": "去年同期",
113
+ "signature": "簽名",
112
114
  "signin": "登入",
113
115
  "signout": "登出",
114
116
  "slogan": "標語",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.76",
3
+ "version": "1.1.78",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -56,12 +56,12 @@
56
56
  "react-dom": "$react-dom"
57
57
  },
58
58
  "dependencies": {
59
- "@etsoo/appscript": "^1.6.69",
60
- "@etsoo/materialui": "^1.6.74",
61
- "@etsoo/react": "^1.8.93",
59
+ "@etsoo/appscript": "^1.6.70",
60
+ "@etsoo/materialui": "^1.6.77",
61
+ "@etsoo/react": "^1.8.94",
62
62
  "@etsoo/shared": "^1.2.87",
63
- "@etsoo/toolpad": "^1.0.51",
64
- "@mui/material": "^9.1.2",
63
+ "@etsoo/toolpad": "^1.0.53",
64
+ "@mui/material": "^9.2.0",
65
65
  "ajv": "^8.20.0",
66
66
  "ajv-formats": "^3.0.1",
67
67
  "react": "^19.2.7",
package/src/CoreUtils.ts CHANGED
@@ -9,20 +9,6 @@ import { BusinessUtils, IApp } from "@etsoo/appscript";
9
9
  * Core utilities
10
10
  */
11
11
  export namespace CoreUtils {
12
- /**
13
- * Get avatar styles
14
- * 获取头像样式
15
- * @param isOrg Is this an organization avatar?
16
- * @returns Styles
17
- */
18
- export function avatarStyles(isOrg: boolean = false): React.CSSProperties {
19
- return {
20
- width: "160px",
21
- height: isOrg ? "80px" : "160px",
22
- border: "1px solid #666"
23
- };
24
- }
25
-
26
12
  /**
27
13
  * Get report data
28
14
  * 获取报告数据
@@ -40,6 +40,11 @@ export type OrgReadDto = {
40
40
  */
41
41
  logo?: string;
42
42
 
43
+ /**
44
+ * Company seal
45
+ */
46
+ companySeal?: string;
47
+
43
48
  /**
44
49
  * PIN
45
50
  */
@@ -42,4 +42,10 @@ export type UserUpdateReadDto = {
42
42
  * 拉丁名
43
43
  */
44
44
  latinGivenName?: string;
45
+
46
+ /**
47
+ * Signature
48
+ * 签名
49
+ */
50
+ signature?: string;
45
51
  };
package/src/i18n/en.json CHANGED
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "Collapse navigation menu",
28
28
  "cultures": "Cultures",
29
29
  "companyNo": "Company No.",
30
+ "companySeal": "Company seal",
30
31
  "completeExecution": "Complete execution",
31
32
  "currentOrg": "Current organization",
32
33
  "customResources": "Custom resources",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "Same period last year",
112
113
  "slogan": "Slogan",
113
114
  "smarterp": "SmartERP Cloud",
115
+ "signature": "Signature",
114
116
  "signin": "Sign in",
115
117
  "signout": "Sign out",
116
118
  "signoutSuccess": "Logout successful, please close the current window",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折叠导航菜单",
28
28
  "cultures": "语言/文化",
29
29
  "companyNo": "机构编号",
30
+ "companySeal": "机构印章",
30
31
  "completeExecution": "完成执行",
31
32
  "currentOrg": "当前机构",
32
33
  "customResources": "自定义资源",
@@ -111,6 +112,7 @@
111
112
  "samePeriodLastYear": "去年同期",
112
113
  "slogan": "标语",
113
114
  "smarterp": "司友®云ERP",
115
+ "signature": "签名",
114
116
  "signin": "登录",
115
117
  "signout": "退出",
116
118
  "signoutSuccess": "退出成功,请关闭当前窗口",
@@ -27,6 +27,7 @@
27
27
  "collapseNavMenuAriaLabel": "折疊導航菜單",
28
28
  "cultures": "語言/文化",
29
29
  "companyNo": "機構編號",
30
+ "companySeal": "機構印章",
30
31
  "completeExecution": "完成執行",
31
32
  "currentOrg": "當前機構",
32
33
  "customResources": "自定義資源",
@@ -109,6 +110,7 @@
109
110
  "rolePartner": "渠道夥伴",
110
111
  "roleUser": "用戶",
111
112
  "samePeriodLastYear": "去年同期",
113
+ "signature": "簽名",
112
114
  "signin": "登入",
113
115
  "signout": "登出",
114
116
  "slogan": "標語",