@etsoo/appscript 1.4.41 → 1.4.43
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/app/CoreApp.d.ts +1 -1
- package/lib/cjs/app/IApp.d.ts +2 -1
- package/lib/cjs/erp/PublicApi.d.ts +1 -1
- package/lib/cjs/i18n/en.json +3 -0
- package/lib/cjs/i18n/zh-Hans.json +3 -0
- package/lib/cjs/i18n/zh-Hant.json +3 -0
- package/lib/mjs/app/CoreApp.d.ts +1 -1
- package/lib/mjs/app/IApp.d.ts +2 -1
- package/lib/mjs/erp/PublicApi.d.ts +1 -1
- package/lib/mjs/i18n/en.json +3 -0
- package/lib/mjs/i18n/zh-Hans.json +3 -0
- package/lib/mjs/i18n/zh-Hant.json +3 -0
- package/package.json +8 -8
- package/src/app/CoreApp.ts +2 -1
- package/src/app/IApp.ts +2 -1
- package/src/erp/PublicApi.ts +1 -1
- package/src/i18n/en.json +3 -0
- package/src/i18n/zh-Hans.json +3 -0
- package/src/i18n/zh-Hant.json +3 -0
package/lib/cjs/app/CoreApp.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
72
72
|
/**
|
|
73
73
|
* Currency, like USD for US dollar
|
|
74
74
|
*/
|
|
75
|
-
get currency():
|
|
75
|
+
get currency(): "AUD" | "CAD" | "CNY" | "EUR" | "GBP" | "HKD" | "JPY" | "NZD" | "SGD" | "USD";
|
|
76
76
|
private _region;
|
|
77
77
|
/**
|
|
78
78
|
* Country or region, like CN
|
package/lib/cjs/app/IApp.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { IUser } from '../state/User';
|
|
|
7
7
|
import { IAppSettings } from './AppSettings';
|
|
8
8
|
import { UserRole } from './UserRole';
|
|
9
9
|
import { EntityStatus } from '../business/EntityStatus';
|
|
10
|
+
import { Currency } from '../business/Currency';
|
|
10
11
|
/**
|
|
11
12
|
* Detect IP callback interface
|
|
12
13
|
*/
|
|
@@ -92,7 +93,7 @@ export interface IApp {
|
|
|
92
93
|
/**
|
|
93
94
|
* Currency, like USD for US dollar
|
|
94
95
|
*/
|
|
95
|
-
readonly currency:
|
|
96
|
+
readonly currency: Currency;
|
|
96
97
|
/**
|
|
97
98
|
* Device id
|
|
98
99
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class PublicApi extends BaseApi {
|
|
|
34
34
|
baseUnits(): ListType1[];
|
|
35
35
|
/**
|
|
36
36
|
* Get currencies
|
|
37
|
-
* @param names Limited currency names for local data, undefined will try to retrive
|
|
37
|
+
* @param names Limited currency names for local data, undefined will try to retrive remotely
|
|
38
38
|
* @returns Result
|
|
39
39
|
*/
|
|
40
40
|
currencies(): Promise<CurrencyDto[] | undefined>;
|
package/lib/cjs/i18n/en.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "South America",
|
|
29
29
|
"copy": "Copy",
|
|
30
30
|
"creation": "Creation",
|
|
31
|
+
"culture": "Culture",
|
|
31
32
|
"currentPassword": "Current password",
|
|
32
33
|
"currentPasswordRequired": "Please enter your current password",
|
|
33
34
|
"currency": "Currency",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "All users",
|
|
52
53
|
"dataPrivacyPrivate": "Creator only",
|
|
53
54
|
"dataPrivacyPublic": "Full public",
|
|
55
|
+
"defaultCulture": "Default culture",
|
|
56
|
+
"defaultCurrency": "Default currency",
|
|
54
57
|
"defaultItem": "Default",
|
|
55
58
|
"delete": "Delete",
|
|
56
59
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "复制",
|
|
30
30
|
"creation": "登记时间",
|
|
31
|
+
"culture": "语言",
|
|
31
32
|
"currentPassword": "当前密码",
|
|
32
33
|
"currentPasswordRequired": "请输入现在使用的密码",
|
|
33
34
|
"currency": "币种",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "创建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公开",
|
|
55
|
+
"defaultCulture": "默认语言",
|
|
56
|
+
"defaultCurrency": "默认币种",
|
|
54
57
|
"defaultItem": "默认",
|
|
55
58
|
"delete": "删除",
|
|
56
59
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "複製",
|
|
30
30
|
"creation": "登記時間",
|
|
31
|
+
"culture": "語言",
|
|
31
32
|
"currentPassword": "當前密碼",
|
|
32
33
|
"currentPasswordRequired": "請輸入現在使用的密碼",
|
|
33
34
|
"currency": "幣種",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "創建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公開",
|
|
55
|
+
"defaultCulture": "默認語言",
|
|
56
|
+
"defaultCurrency": "默認幣種",
|
|
54
57
|
"defaultItem": "默認",
|
|
55
58
|
"delete": "刪除",
|
|
56
59
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
package/lib/mjs/app/CoreApp.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
72
72
|
/**
|
|
73
73
|
* Currency, like USD for US dollar
|
|
74
74
|
*/
|
|
75
|
-
get currency():
|
|
75
|
+
get currency(): "AUD" | "CAD" | "CNY" | "EUR" | "GBP" | "HKD" | "JPY" | "NZD" | "SGD" | "USD";
|
|
76
76
|
private _region;
|
|
77
77
|
/**
|
|
78
78
|
* Country or region, like CN
|
package/lib/mjs/app/IApp.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { IUser } from '../state/User';
|
|
|
7
7
|
import { IAppSettings } from './AppSettings';
|
|
8
8
|
import { UserRole } from './UserRole';
|
|
9
9
|
import { EntityStatus } from '../business/EntityStatus';
|
|
10
|
+
import { Currency } from '../business/Currency';
|
|
10
11
|
/**
|
|
11
12
|
* Detect IP callback interface
|
|
12
13
|
*/
|
|
@@ -92,7 +93,7 @@ export interface IApp {
|
|
|
92
93
|
/**
|
|
93
94
|
* Currency, like USD for US dollar
|
|
94
95
|
*/
|
|
95
|
-
readonly currency:
|
|
96
|
+
readonly currency: Currency;
|
|
96
97
|
/**
|
|
97
98
|
* Device id
|
|
98
99
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class PublicApi extends BaseApi {
|
|
|
34
34
|
baseUnits(): ListType1[];
|
|
35
35
|
/**
|
|
36
36
|
* Get currencies
|
|
37
|
-
* @param names Limited currency names for local data, undefined will try to retrive
|
|
37
|
+
* @param names Limited currency names for local data, undefined will try to retrive remotely
|
|
38
38
|
* @returns Result
|
|
39
39
|
*/
|
|
40
40
|
currencies(): Promise<CurrencyDto[] | undefined>;
|
package/lib/mjs/i18n/en.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "South America",
|
|
29
29
|
"copy": "Copy",
|
|
30
30
|
"creation": "Creation",
|
|
31
|
+
"culture": "Culture",
|
|
31
32
|
"currentPassword": "Current password",
|
|
32
33
|
"currentPasswordRequired": "Please enter your current password",
|
|
33
34
|
"currency": "Currency",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "All users",
|
|
52
53
|
"dataPrivacyPrivate": "Creator only",
|
|
53
54
|
"dataPrivacyPublic": "Full public",
|
|
55
|
+
"defaultCulture": "Default culture",
|
|
56
|
+
"defaultCurrency": "Default currency",
|
|
54
57
|
"defaultItem": "Default",
|
|
55
58
|
"delete": "Delete",
|
|
56
59
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "复制",
|
|
30
30
|
"creation": "登记时间",
|
|
31
|
+
"culture": "语言",
|
|
31
32
|
"currentPassword": "当前密码",
|
|
32
33
|
"currentPasswordRequired": "请输入现在使用的密码",
|
|
33
34
|
"currency": "币种",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "创建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公开",
|
|
55
|
+
"defaultCulture": "默认语言",
|
|
56
|
+
"defaultCurrency": "默认币种",
|
|
54
57
|
"defaultItem": "默认",
|
|
55
58
|
"delete": "删除",
|
|
56
59
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "複製",
|
|
30
30
|
"creation": "登記時間",
|
|
31
|
+
"culture": "語言",
|
|
31
32
|
"currentPassword": "當前密碼",
|
|
32
33
|
"currentPasswordRequired": "請輸入現在使用的密碼",
|
|
33
34
|
"currency": "幣種",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "創建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公開",
|
|
55
|
+
"defaultCulture": "默認語言",
|
|
56
|
+
"defaultCurrency": "默認幣種",
|
|
54
57
|
"defaultItem": "默認",
|
|
55
58
|
"delete": "刪除",
|
|
56
59
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.43",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.28",
|
|
56
56
|
"@etsoo/restclient": "^1.0.89",
|
|
57
|
-
"@etsoo/shared": "^1.2.
|
|
57
|
+
"@etsoo/shared": "^1.2.12",
|
|
58
58
|
"crypto-js": "^4.1.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/cli": "^7.22.
|
|
62
|
-
"@babel/core": "^7.22.
|
|
63
|
-
"@babel/plugin-transform-runtime": "^7.22.
|
|
64
|
-
"@babel/preset-env": "^7.22.
|
|
65
|
-
"@babel/runtime-corejs3": "^7.22.
|
|
66
|
-
"@types/crypto-js": "^4.1.
|
|
61
|
+
"@babel/cli": "^7.22.15",
|
|
62
|
+
"@babel/core": "^7.22.15",
|
|
63
|
+
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
64
|
+
"@babel/preset-env": "^7.22.15",
|
|
65
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
+
"@types/crypto-js": "^4.1.2",
|
|
67
67
|
"@types/jest": "^29.5.4",
|
|
68
68
|
"jest": "^29.6.4",
|
|
69
69
|
"jest-environment-jsdom": "^29.6.4",
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
} from './IApp';
|
|
40
40
|
import { UserRole } from './UserRole';
|
|
41
41
|
import type CryptoJS from 'crypto-js';
|
|
42
|
+
import { Currency } from '../business/Currency';
|
|
42
43
|
|
|
43
44
|
type CJType = typeof CryptoJS;
|
|
44
45
|
let CJ: CJType;
|
|
@@ -126,7 +127,7 @@ export abstract class CoreApp<
|
|
|
126
127
|
return this._culture;
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
private _currency!:
|
|
130
|
+
private _currency!: Currency;
|
|
130
131
|
/**
|
|
131
132
|
* Currency, like USD for US dollar
|
|
132
133
|
*/
|
package/src/app/IApp.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { IUser } from '../state/User';
|
|
|
19
19
|
import { IAppSettings } from './AppSettings';
|
|
20
20
|
import { UserRole } from './UserRole';
|
|
21
21
|
import { EntityStatus } from '../business/EntityStatus';
|
|
22
|
+
import { Currency } from '../business/Currency';
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
* Detect IP callback interface
|
|
@@ -129,7 +130,7 @@ export interface IApp {
|
|
|
129
130
|
/**
|
|
130
131
|
* Currency, like USD for US dollar
|
|
131
132
|
*/
|
|
132
|
-
readonly currency:
|
|
133
|
+
readonly currency: Currency;
|
|
133
134
|
|
|
134
135
|
/**
|
|
135
136
|
* Device id
|
package/src/erp/PublicApi.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class PublicApi extends BaseApi {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Get currencies
|
|
55
|
-
* @param names Limited currency names for local data, undefined will try to retrive
|
|
55
|
+
* @param names Limited currency names for local data, undefined will try to retrive remotely
|
|
56
56
|
* @returns Result
|
|
57
57
|
*/
|
|
58
58
|
currencies(): Promise<CurrencyDto[] | undefined>;
|
package/src/i18n/en.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "South America",
|
|
29
29
|
"copy": "Copy",
|
|
30
30
|
"creation": "Creation",
|
|
31
|
+
"culture": "Culture",
|
|
31
32
|
"currentPassword": "Current password",
|
|
32
33
|
"currentPasswordRequired": "Please enter your current password",
|
|
33
34
|
"currency": "Currency",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "All users",
|
|
52
53
|
"dataPrivacyPrivate": "Creator only",
|
|
53
54
|
"dataPrivacyPublic": "Full public",
|
|
55
|
+
"defaultCulture": "Default culture",
|
|
56
|
+
"defaultCurrency": "Default currency",
|
|
54
57
|
"defaultItem": "Default",
|
|
55
58
|
"delete": "Delete",
|
|
56
59
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
package/src/i18n/zh-Hans.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "复制",
|
|
30
30
|
"creation": "登记时间",
|
|
31
|
+
"culture": "语言",
|
|
31
32
|
"currentPassword": "当前密码",
|
|
32
33
|
"currentPasswordRequired": "请输入现在使用的密码",
|
|
33
34
|
"currency": "币种",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "创建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公开",
|
|
55
|
+
"defaultCulture": "默认语言",
|
|
56
|
+
"defaultCurrency": "默认币种",
|
|
54
57
|
"defaultItem": "默认",
|
|
55
58
|
"delete": "删除",
|
|
56
59
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
package/src/i18n/zh-Hant.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"continentSA": "南美洲",
|
|
29
29
|
"copy": "複製",
|
|
30
30
|
"creation": "登記時間",
|
|
31
|
+
"culture": "語言",
|
|
31
32
|
"currentPassword": "當前密碼",
|
|
32
33
|
"currentPasswordRequired": "請輸入現在使用的密碼",
|
|
33
34
|
"currency": "幣種",
|
|
@@ -51,6 +52,8 @@
|
|
|
51
52
|
"dataPrivacyInternal": "所有用户",
|
|
52
53
|
"dataPrivacyPrivate": "創建者私有",
|
|
53
54
|
"dataPrivacyPublic": "完全公開",
|
|
55
|
+
"defaultCulture": "默認語言",
|
|
56
|
+
"defaultCurrency": "默認幣種",
|
|
54
57
|
"defaultItem": "默認",
|
|
55
58
|
"delete": "刪除",
|
|
56
59
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|