@etsoo/smarterp-core 1.1.57 → 1.1.59

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.
@@ -58,6 +58,10 @@ if (isLocalTest) {
58
58
  });
59
59
  */
60
60
 
61
+ test("Test SysResourceKeyPrefix", () => {
62
+ expect(OrgApi.SysResourceKeyPrefix).toBe("etsoo");
63
+ });
64
+
61
65
  test("Test for query zero return", async () => {
62
66
  const result = await api.query({
63
67
  keyword: "亿速",
@@ -31,6 +31,11 @@ import { OrgOwnsRQ } from "./rq/org/OrgOwnsRQ";
31
31
  * 机构接口
32
32
  */
33
33
  export declare class OrgApi extends EntityApi {
34
+ /**
35
+ * System resource key prefix
36
+ * 系统资源键前缀
37
+ */
38
+ static readonly SysResourceKeyPrefix = "etsoo";
34
39
  /**
35
40
  * Constructor
36
41
  * @param app Application
package/lib/cjs/OrgApi.js CHANGED
@@ -10,6 +10,11 @@ const shared_1 = require("@etsoo/shared");
10
10
  * 机构接口
11
11
  */
12
12
  class OrgApi extends appscript_1.EntityApi {
13
+ /**
14
+ * System resource key prefix
15
+ * 系统资源键前缀
16
+ */
17
+ static SysResourceKeyPrefix = "etsoo";
13
18
  /**
14
19
  * Constructor
15
20
  * @param app Application
@@ -31,6 +31,11 @@ import { OrgOwnsRQ } from "./rq/org/OrgOwnsRQ";
31
31
  * 机构接口
32
32
  */
33
33
  export declare class OrgApi extends EntityApi {
34
+ /**
35
+ * System resource key prefix
36
+ * 系统资源键前缀
37
+ */
38
+ static readonly SysResourceKeyPrefix = "etsoo";
34
39
  /**
35
40
  * Constructor
36
41
  * @param app Application
package/lib/mjs/OrgApi.js CHANGED
@@ -7,6 +7,11 @@ import { DataTypes } from "@etsoo/shared";
7
7
  * 机构接口
8
8
  */
9
9
  export class OrgApi extends EntityApi {
10
+ /**
11
+ * System resource key prefix
12
+ * 系统资源键前缀
13
+ */
14
+ static SysResourceKeyPrefix = "etsoo";
10
15
  /**
11
16
  * Constructor
12
17
  * @param app Application
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.57",
3
+ "version": "1.1.59",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -57,11 +57,11 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@etsoo/appscript": "^1.6.66",
60
- "@etsoo/materialui": "^1.6.69",
60
+ "@etsoo/materialui": "^1.6.70",
61
61
  "@etsoo/react": "^1.8.91",
62
62
  "@etsoo/shared": "^1.2.84",
63
- "@etsoo/toolpad": "^1.0.49",
64
- "@mui/material": "^9.0.1",
63
+ "@etsoo/toolpad": "^1.0.50",
64
+ "@mui/material": "^9.1.1",
65
65
  "ajv": "^8.20.0",
66
66
  "ajv-formats": "^3.0.1",
67
67
  "react": "^19.2.7",
package/src/OrgApi.ts CHANGED
@@ -42,6 +42,12 @@ import { OrgOwnsRQ } from "./rq/org/OrgOwnsRQ";
42
42
  * 机构接口
43
43
  */
44
44
  export class OrgApi extends EntityApi {
45
+ /**
46
+ * System resource key prefix
47
+ * 系统资源键前缀
48
+ */
49
+ static readonly SysResourceKeyPrefix = "etsoo";
50
+
45
51
  /**
46
52
  * Constructor
47
53
  * @param app Application
package/vite.config.mts CHANGED
@@ -3,10 +3,20 @@ import react from "@vitejs/plugin-react";
3
3
 
4
4
  export default defineConfig({
5
5
  plugins: [react()],
6
+ resolve: {
7
+ alias: {
8
+ "react-transition-group/TransitionGroupContext":
9
+ "react-transition-group/esm/TransitionGroupContext.js"
10
+ }
11
+ },
6
12
  test: {
7
13
  server: {
8
14
  deps: {
9
- inline: [/@mui\/x-data-grid.*/]
15
+ inline: [
16
+ /@mui\/x-data-grid.*/,
17
+ /@mui\/material.*/,
18
+ /react-transition-group.*/
19
+ ]
10
20
  }
11
21
  },
12
22
  globals: true,