@etsoo/appscript 1.3.0 → 1.3.2

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.
@@ -42,7 +42,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
42
42
  /**
43
43
  * API
44
44
  */
45
- readonly api: IApi;
45
+ protected readonly api: IApi;
46
46
  /**
47
47
  * Application name
48
48
  */
@@ -1,5 +1,5 @@
1
1
  import { INotifier, NotificationAlign, NotificationCallProps, NotificationContent, NotificationReturn } from '@etsoo/notificationbase';
2
- import { ApiDataError, IApi, IPData } from '@etsoo/restclient';
2
+ import { ApiDataError, IPData } from '@etsoo/restclient';
3
3
  import { DataTypes, DateUtils, IStorage, ListType } from '@etsoo/shared';
4
4
  import { AddressRegion } from '../address/AddressRegion';
5
5
  import { ProductUnit } from '../business/ProductUnit';
@@ -69,10 +69,6 @@ export interface IApp {
69
69
  * Fields
70
70
  */
71
71
  readonly fields: IAppFields;
72
- /**
73
- * API
74
- */
75
- readonly api: IApi;
76
72
  /**
77
73
  * Notifier
78
74
  */
@@ -52,6 +52,7 @@
52
52
  "help": "Help",
53
53
  "id": "Number#",
54
54
  "info": "Info",
55
+ "item": "Item",
55
56
  "itemExists": "'{0}' already exists",
56
57
  "loading": "Loading...",
57
58
  "login": "Login",
@@ -52,6 +52,7 @@
52
52
  "help": "帮助",
53
53
  "id": "编号",
54
54
  "info": "信息",
55
+ "item": "项目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加载...",
57
58
  "login": "登录",
@@ -52,6 +52,7 @@
52
52
  "help": "幫助",
53
53
  "id": "編號",
54
54
  "info": "信息",
55
+ "item": "項目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加載...",
57
58
  "login": "登錄",
@@ -42,7 +42,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
42
42
  /**
43
43
  * API
44
44
  */
45
- readonly api: IApi;
45
+ protected readonly api: IApi;
46
46
  /**
47
47
  * Application name
48
48
  */
@@ -1,5 +1,5 @@
1
1
  import { INotifier, NotificationAlign, NotificationCallProps, NotificationContent, NotificationReturn } from '@etsoo/notificationbase';
2
- import { ApiDataError, IApi, IPData } from '@etsoo/restclient';
2
+ import { ApiDataError, IPData } from '@etsoo/restclient';
3
3
  import { DataTypes, DateUtils, IStorage, ListType } from '@etsoo/shared';
4
4
  import { AddressRegion } from '../address/AddressRegion';
5
5
  import { ProductUnit } from '../business/ProductUnit';
@@ -69,10 +69,6 @@ export interface IApp {
69
69
  * Fields
70
70
  */
71
71
  readonly fields: IAppFields;
72
- /**
73
- * API
74
- */
75
- readonly api: IApi;
76
72
  /**
77
73
  * Notifier
78
74
  */
@@ -52,6 +52,7 @@
52
52
  "help": "Help",
53
53
  "id": "Number#",
54
54
  "info": "Info",
55
+ "item": "Item",
55
56
  "itemExists": "'{0}' already exists",
56
57
  "loading": "Loading...",
57
58
  "login": "Login",
@@ -52,6 +52,7 @@
52
52
  "help": "帮助",
53
53
  "id": "编号",
54
54
  "info": "信息",
55
+ "item": "项目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加载...",
57
58
  "login": "登录",
@@ -52,6 +52,7 @@
52
52
  "help": "幫助",
53
53
  "id": "編號",
54
54
  "info": "信息",
55
+ "item": "項目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加載...",
57
58
  "login": "登錄",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -52,9 +52,9 @@
52
52
  },
53
53
  "homepage": "https://github.com/ETSOO/AppScript#readme",
54
54
  "dependencies": {
55
- "@etsoo/notificationbase": "^1.1.11",
56
- "@etsoo/restclient": "^1.0.73",
57
- "@etsoo/shared": "^1.1.58",
55
+ "@etsoo/notificationbase": "^1.1.12",
56
+ "@etsoo/restclient": "^1.0.74",
57
+ "@etsoo/shared": "^1.1.59",
58
58
  "@types/crypto-js": "^4.1.1",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -62,17 +62,17 @@
62
62
  "@babel/cli": "^7.19.3",
63
63
  "@babel/core": "^7.19.3",
64
64
  "@babel/plugin-transform-runtime": "^7.19.1",
65
- "@babel/preset-env": "^7.19.3",
66
- "@babel/runtime-corejs3": "^7.19.1",
67
- "@types/jest": "^29.0.3",
68
- "@typescript-eslint/eslint-plugin": "^5.38.1",
69
- "@typescript-eslint/parser": "^5.38.1",
70
- "eslint": "^8.24.0",
65
+ "@babel/preset-env": "^7.19.4",
66
+ "@babel/runtime-corejs3": "^7.19.4",
67
+ "@types/jest": "^29.1.2",
68
+ "@typescript-eslint/eslint-plugin": "^5.40.0",
69
+ "@typescript-eslint/parser": "^5.40.0",
70
+ "eslint": "^8.25.0",
71
71
  "eslint-config-airbnb-base": "^15.0.0",
72
72
  "eslint-plugin-import": "^2.26.0",
73
- "jest": "^29.0.3",
74
- "jest-environment-jsdom": "^29.0.3",
75
- "ts-jest": "^29.0.2",
73
+ "jest": "^29.1.2",
74
+ "jest-environment-jsdom": "^29.1.2",
75
+ "ts-jest": "^29.0.3",
76
76
  "typescript": "^4.8.4"
77
77
  }
78
78
  }
@@ -100,7 +100,7 @@ export abstract class CoreApp<
100
100
  /**
101
101
  * API
102
102
  */
103
- readonly api: IApi;
103
+ protected readonly api: IApi;
104
104
 
105
105
  /**
106
106
  * Application name
package/src/app/IApp.ts CHANGED
@@ -95,11 +95,6 @@ export interface IApp {
95
95
  */
96
96
  readonly fields: IAppFields;
97
97
 
98
- /**
99
- * API
100
- */
101
- readonly api: IApi;
102
-
103
98
  /**
104
99
  * Notifier
105
100
  */
@@ -52,6 +52,7 @@
52
52
  "help": "Help",
53
53
  "id": "Number#",
54
54
  "info": "Info",
55
+ "item": "Item",
55
56
  "itemExists": "'{0}' already exists",
56
57
  "loading": "Loading...",
57
58
  "login": "Login",
@@ -52,6 +52,7 @@
52
52
  "help": "帮助",
53
53
  "id": "编号",
54
54
  "info": "信息",
55
+ "item": "项目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加载...",
57
58
  "login": "登录",
@@ -52,6 +52,7 @@
52
52
  "help": "幫助",
53
53
  "id": "編號",
54
54
  "info": "信息",
55
+ "item": "項目",
55
56
  "itemExists": "'{0}'已经存在",
56
57
  "loading": "正在加載...",
57
58
  "login": "登錄",