@etsoo/smarterp-core 1.1.13 → 1.1.15
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/lib/cjs/CoreApp.js +4 -1
- package/lib/cjs/i18n/en.json +1 -0
- package/lib/cjs/i18n/zh-Hans.json +1 -0
- package/lib/cjs/i18n/zh-Hant.json +1 -0
- package/lib/mjs/CoreApp.js +4 -1
- package/lib/mjs/i18n/en.json +1 -0
- package/lib/mjs/i18n/zh-Hans.json +1 -0
- package/lib/mjs/i18n/zh-Hant.json +1 -0
- package/package.json +11 -11
- package/src/CoreApp.ts +9 -2
- package/src/i18n/en.json +1 -0
- package/src/i18n/zh-Hans.json +1 -0
- package/src/i18n/zh-Hant.json +1 -0
package/lib/cjs/CoreApp.js
CHANGED
|
@@ -148,7 +148,10 @@ class CoreApp {
|
|
|
148
148
|
return "";
|
|
149
149
|
joinChar ??= ", ";
|
|
150
150
|
const identities = this.getIdentityFlags(identity);
|
|
151
|
-
return identities
|
|
151
|
+
return identities
|
|
152
|
+
.filter((r) => r.id > 0)
|
|
153
|
+
.map((r) => r.label)
|
|
154
|
+
.join(joinChar);
|
|
152
155
|
}
|
|
153
156
|
/**
|
|
154
157
|
* Get identities
|
package/lib/cjs/i18n/en.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"oneTimePinEmailTip": "Enter up the One Time Pin just sent to your email address. If you can't find it, please check your spam folder.",
|
|
62
62
|
"oneTimePinMobileTip": "Enter up the One Time Pin just sent to your mobile phone number",
|
|
63
63
|
"options": "Options",
|
|
64
|
+
"orderIndex": "Order index",
|
|
64
65
|
"org": "Organization",
|
|
65
66
|
"orgName": "Org name",
|
|
66
67
|
"orgPin": "Org No.",
|
package/lib/mjs/CoreApp.js
CHANGED
|
@@ -145,7 +145,10 @@ export class CoreApp {
|
|
|
145
145
|
return "";
|
|
146
146
|
joinChar ??= ", ";
|
|
147
147
|
const identities = this.getIdentityFlags(identity);
|
|
148
|
-
return identities
|
|
148
|
+
return identities
|
|
149
|
+
.filter((r) => r.id > 0)
|
|
150
|
+
.map((r) => r.label)
|
|
151
|
+
.join(joinChar);
|
|
149
152
|
}
|
|
150
153
|
/**
|
|
151
154
|
* Get identities
|
package/lib/mjs/i18n/en.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"oneTimePinEmailTip": "Enter up the One Time Pin just sent to your email address. If you can't find it, please check your spam folder.",
|
|
62
62
|
"oneTimePinMobileTip": "Enter up the One Time Pin just sent to your mobile phone number",
|
|
63
63
|
"options": "Options",
|
|
64
|
+
"orderIndex": "Order index",
|
|
64
65
|
"org": "Organization",
|
|
65
66
|
"orgName": "Org name",
|
|
66
67
|
"orgPin": "Org No.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/smarterp-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "TypeScript APIs for SmartERP Core",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -40,29 +40,29 @@
|
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"homepage": "https://github.com/ETSOO/smarterp-core#readme",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/cli": "^7.28.
|
|
44
|
-
"@babel/core": "^7.28.
|
|
43
|
+
"@babel/cli": "^7.28.6",
|
|
44
|
+
"@babel/core": "^7.28.6",
|
|
45
45
|
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
46
|
-
"@babel/preset-env": "^7.28.
|
|
47
|
-
"@babel/runtime-corejs3": "^7.28.
|
|
48
|
-
"@types/react": "^19.2.
|
|
46
|
+
"@babel/preset-env": "^7.28.6",
|
|
47
|
+
"@babel/runtime-corejs3": "^7.28.6",
|
|
48
|
+
"@types/react": "^19.2.9",
|
|
49
49
|
"@types/react-dom": "^19.2.3",
|
|
50
50
|
"@vitejs/plugin-react": "^5.1.2",
|
|
51
51
|
"jsdom": "^27.4.0",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"vitest": "^4.0.
|
|
53
|
+
"vitest": "^4.0.17"
|
|
54
54
|
},
|
|
55
55
|
"overrides": {
|
|
56
56
|
"react": "$react",
|
|
57
57
|
"react-dom": "$react-dom"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@etsoo/appscript": "^1.6.
|
|
61
|
-
"@etsoo/materialui": "^1.
|
|
62
|
-
"@etsoo/react": "^1.8.
|
|
60
|
+
"@etsoo/appscript": "^1.6.53",
|
|
61
|
+
"@etsoo/materialui": "^1.6.7",
|
|
62
|
+
"@etsoo/react": "^1.8.71",
|
|
63
63
|
"@etsoo/shared": "^1.2.80",
|
|
64
64
|
"@etsoo/toolpad": "^1.0.44",
|
|
65
|
-
"@mui/material": "^7.3.
|
|
65
|
+
"@mui/material": "^7.3.7",
|
|
66
66
|
"ajv": "^8.17.1",
|
|
67
67
|
"ajv-formats": "^3.0.1",
|
|
68
68
|
"react": "^19.2.3",
|
package/src/CoreApp.ts
CHANGED
|
@@ -203,7 +203,10 @@ export class CoreApp implements ICoreApp {
|
|
|
203
203
|
* @param app Base application
|
|
204
204
|
* @param api API
|
|
205
205
|
*/
|
|
206
|
-
constructor(
|
|
206
|
+
constructor(
|
|
207
|
+
public readonly app: IApp,
|
|
208
|
+
public readonly api: IApi
|
|
209
|
+
) {}
|
|
207
210
|
|
|
208
211
|
/**
|
|
209
212
|
* Get API service label
|
|
@@ -285,7 +288,11 @@ export class CoreApp implements ICoreApp {
|
|
|
285
288
|
joinChar ??= ", ";
|
|
286
289
|
|
|
287
290
|
const identities = this.getIdentityFlags(identity);
|
|
288
|
-
|
|
291
|
+
|
|
292
|
+
return identities
|
|
293
|
+
.filter((r) => r.id > 0)
|
|
294
|
+
.map((r) => r.label)
|
|
295
|
+
.join(joinChar);
|
|
289
296
|
}
|
|
290
297
|
|
|
291
298
|
/**
|
package/src/i18n/en.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"oneTimePinEmailTip": "Enter up the One Time Pin just sent to your email address. If you can't find it, please check your spam folder.",
|
|
62
62
|
"oneTimePinMobileTip": "Enter up the One Time Pin just sent to your mobile phone number",
|
|
63
63
|
"options": "Options",
|
|
64
|
+
"orderIndex": "Order index",
|
|
64
65
|
"org": "Organization",
|
|
65
66
|
"orgName": "Org name",
|
|
66
67
|
"orgPin": "Org No.",
|
package/src/i18n/zh-Hans.json
CHANGED