iszolea-ui 1.2.8 → 1.2.10
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.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ExceptionType } from './ExceptionType';
|
|
2
|
+
import { JsonMessage } from './Contracts/Common_pb';
|
|
2
3
|
export declare type IDxDataSourceOptions = DevExpress.data.AspNet.Options & {
|
|
3
4
|
notifySuccess?: boolean;
|
|
4
5
|
notifyError?: boolean;
|
|
5
6
|
getUserFriendlyErrorMessage?: (exceptionType: ExceptionType) => string;
|
|
6
7
|
};
|
|
7
8
|
export declare function createDxDataSource(options: IDxDataSourceOptions): DevExpress.data.CustomStore<any, any>;
|
|
9
|
+
export declare function createGrpcDxDataSource(key: string, request: (loadOptions: JsonMessage) => Promise<JsonMessage>): DevExpress.data.CustomStore;
|
|
@@ -16,3 +16,4 @@ export declare type ISendRequestSettings = JQueryAjaxSettings & {
|
|
|
16
16
|
getUserFriendlyErrorMessage?: (exceptionType: ExceptionType) => string;
|
|
17
17
|
};
|
|
18
18
|
export declare function sendRequest<T = any>(url: string, type?: string, data?: any, notifySuccess?: boolean, settings?: ISendRequestSettings): JQuery.Deferred<T>;
|
|
19
|
+
export declare function sendGrpcRequest<T>(request: () => Promise<T>): Promise<void | T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sendRequest, handleError, handleSuccess, handleUpload } from './Request';
|
|
2
|
-
import { createDxDataSource } from './DxDataSource';
|
|
1
|
+
import { sendRequest, handleError, handleSuccess, handleUpload, sendGrpcRequest } from './Request';
|
|
2
|
+
import { createDxDataSource, createGrpcDxDataSource } from './DxDataSource';
|
|
3
3
|
import * as loadWithMultipleProtection from './LoadWithMultipleProtection';
|
|
4
4
|
export { IApiResponse, IErrorInfo } from './ApiResponse';
|
|
5
5
|
export { IDxDataSourceOptions } from './DxDataSource';
|
|
@@ -15,5 +15,9 @@ declare const _default: {
|
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
} | import("./ApiResponse").IErrorInfo | import("./ApiResponse").IErrorInfo[]) => responseData is import("./ApiResponse").IErrorInfo | import("./ApiResponse").IErrorInfo[];
|
|
17
17
|
loadWithMultipleProtection: typeof loadWithMultipleProtection;
|
|
18
|
+
grpc: {
|
|
19
|
+
sendRequest: typeof sendGrpcRequest;
|
|
20
|
+
createDxDataSource: typeof createGrpcDxDataSource;
|
|
21
|
+
};
|
|
18
22
|
};
|
|
19
23
|
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ declare const IszoleaUI: {
|
|
|
56
56
|
[key: string]: any;
|
|
57
57
|
} | import("./Data").IErrorInfo | import("./Data").IErrorInfo[]) => responseData is import("./Data").IErrorInfo | import("./Data").IErrorInfo[];
|
|
58
58
|
loadWithMultipleProtection: typeof import("./Data/LoadWithMultipleProtection");
|
|
59
|
+
grpc: {
|
|
60
|
+
sendRequest: typeof import("./Data/Request").sendGrpcRequest;
|
|
61
|
+
createDxDataSource: typeof import("./Data/DxDataSource").createGrpcDxDataSource;
|
|
62
|
+
};
|
|
59
63
|
};
|
|
60
64
|
widgets: {
|
|
61
65
|
notify: typeof notify;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iszolea-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Common scripts and styles for Iszolea projects",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
|
+
"@types/google-protobuf": "^3.15.5",
|
|
12
13
|
"@types/jquery": "3.3.32",
|
|
13
14
|
"@typescript-eslint/eslint-plugin": "5.11.0",
|
|
14
15
|
"@typescript-eslint/parser": "5.11.0",
|
|
@@ -31,12 +32,16 @@
|
|
|
31
32
|
"exceljs": "^4.4.0",
|
|
32
33
|
"fantasticon": "1.2.3",
|
|
33
34
|
"file-saver": "^2.0.5",
|
|
35
|
+
"grpc-web": "^1.5.0",
|
|
34
36
|
"jquery": "3.4.1",
|
|
35
37
|
"jszip": "3.5.0",
|
|
38
|
+
"protoc": "^1.1.3",
|
|
39
|
+
"protoc-gen-grpc-web": "^1.4.2",
|
|
36
40
|
"publish-please": "5.5.1",
|
|
37
41
|
"sass": "1.53.0",
|
|
38
42
|
"typescript": "4.5.5",
|
|
39
|
-
"typescript-tslint-plugin": "0.5.5"
|
|
43
|
+
"typescript-tslint-plugin": "0.5.5",
|
|
44
|
+
"google-protobuf": "3.14.0"
|
|
40
45
|
},
|
|
41
46
|
"dependencies": {
|
|
42
47
|
"croppr": "2.3.1"
|
|
@@ -58,6 +63,7 @@
|
|
|
58
63
|
"font24": "fantasticon ./src/Assets/Icons/24 --name iconfont24",
|
|
59
64
|
"font32": "fantasticon ./src/Assets/Icons/32 --name iconfont32",
|
|
60
65
|
"images-generate": "copyfiles src/Assets/Images/*.* dist/images --f",
|
|
61
|
-
"publish-please": "npm run build && publish-please"
|
|
66
|
+
"publish-please": "npm run build && publish-please",
|
|
67
|
+
"protoc-gen": "protoc-gen.bat"
|
|
62
68
|
}
|
|
63
69
|
}
|