@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.
@@ -148,7 +148,10 @@ class CoreApp {
148
148
  return "";
149
149
  joinChar ??= ", ";
150
150
  const identities = this.getIdentityFlags(identity);
151
- return identities.map((r) => r.label).join(joinChar);
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
@@ -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.",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "输入刚发送到您电子邮箱的验证码,如果没有找到,请查找垃圾邮件",
62
62
  "oneTimePinMobileTip": "输入刚发送到您手机号码的验证码",
63
63
  "options": "选项",
64
+ "orderIndex": "排序序号",
64
65
  "org": "机构",
65
66
  "orgName": "机构名称",
66
67
  "orgPin": "机构编号",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "輸入剛傳送到您電子郵件信箱的驗證碼,如果沒有找到,請檢查垃圾信箱",
62
62
  "oneTimePinMobileTip": "輸入剛傳送到您手機號碼的驗證碼",
63
63
  "options": "選項",
64
+ "orderIndex": "排序序號",
64
65
  "org": "機構",
65
66
  "orgName": "機構名稱",
66
67
  "orgPin": "機構編號",
@@ -145,7 +145,10 @@ export class CoreApp {
145
145
  return "";
146
146
  joinChar ??= ", ";
147
147
  const identities = this.getIdentityFlags(identity);
148
- return identities.map((r) => r.label).join(joinChar);
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
@@ -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.",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "输入刚发送到您电子邮箱的验证码,如果没有找到,请查找垃圾邮件",
62
62
  "oneTimePinMobileTip": "输入刚发送到您手机号码的验证码",
63
63
  "options": "选项",
64
+ "orderIndex": "排序序号",
64
65
  "org": "机构",
65
66
  "orgName": "机构名称",
66
67
  "orgPin": "机构编号",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "輸入剛傳送到您電子郵件信箱的驗證碼,如果沒有找到,請檢查垃圾信箱",
62
62
  "oneTimePinMobileTip": "輸入剛傳送到您手機號碼的驗證碼",
63
63
  "options": "選項",
64
+ "orderIndex": "排序序號",
64
65
  "org": "機構",
65
66
  "orgName": "機構名稱",
66
67
  "orgPin": "機構編號",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.13",
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.3",
44
- "@babel/core": "^7.28.5",
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.5",
47
- "@babel/runtime-corejs3": "^7.28.4",
48
- "@types/react": "^19.2.7",
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.16"
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.51",
61
- "@etsoo/materialui": "^1.5.99",
62
- "@etsoo/react": "^1.8.68",
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.6",
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(public readonly app: IApp, public readonly api: IApi) {}
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
- return identities.map((r) => r.label).join(joinChar);
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.",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "输入刚发送到您电子邮箱的验证码,如果没有找到,请查找垃圾邮件",
62
62
  "oneTimePinMobileTip": "输入刚发送到您手机号码的验证码",
63
63
  "options": "选项",
64
+ "orderIndex": "排序序号",
64
65
  "org": "机构",
65
66
  "orgName": "机构名称",
66
67
  "orgPin": "机构编号",
@@ -61,6 +61,7 @@
61
61
  "oneTimePinEmailTip": "輸入剛傳送到您電子郵件信箱的驗證碼,如果沒有找到,請檢查垃圾信箱",
62
62
  "oneTimePinMobileTip": "輸入剛傳送到您手機號碼的驗證碼",
63
63
  "options": "選項",
64
+ "orderIndex": "排序序號",
64
65
  "org": "機構",
65
66
  "orgName": "機構名稱",
66
67
  "orgPin": "機構編號",