ngx-rs-ant 1.0.4 → 1.0.8
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/data-grid/data-grid.component.d.ts +1 -1
- package/data-grid/unit-info-template/unit-info-template.component.d.ts +4 -4
- package/data-grid/user-info-template/user-info-template.component.d.ts +4 -4
- package/esm2020/data-grid/data-grid.component.mjs +15 -7
- package/esm2020/data-grid/file-cell-template/file-cell-template.component.mjs +3 -3
- package/esm2020/data-grid/unit-info-template/unit-info-template.component.mjs +21 -41
- package/esm2020/data-grid/user-info-template/user-info-template.component.mjs +21 -41
- package/esm2020/public-api.mjs +3 -1
- package/esm2020/websocket/websocket.module.mjs +18 -0
- package/esm2020/websocket/websocket.service.mjs +153 -0
- package/fesm2015/ngx-rs-ant.mjs +228 -92
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +227 -92
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/package.json +1 -2
- package/public-api.d.ts +2 -0
- package/websocket/websocket.module.d.ts +7 -0
- package/websocket/websocket.service.d.ts +56 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-rs-ant",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "RsAnt components based on Angular and DevExtreme",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@angular/common": "^15.2.0",
|
|
24
24
|
"@angular/core": "^15.2.0",
|
|
25
|
-
"@devui-design/icons": "^1.3.0",
|
|
26
25
|
"coast-plugin-register": "^2.1.6",
|
|
27
26
|
"devextreme": "^23.1.4",
|
|
28
27
|
"devextreme-angular": "^23.1.4"
|
package/public-api.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class WebsocketModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WebsocketModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WebsocketModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WebsocketService {
|
|
4
|
+
private url;
|
|
5
|
+
private webSocket;
|
|
6
|
+
private connectSuccess;
|
|
7
|
+
private period;
|
|
8
|
+
private serverTimeoutSubscription;
|
|
9
|
+
private reconnectFlag;
|
|
10
|
+
private reconnectPeriod;
|
|
11
|
+
private reconnectSubscription;
|
|
12
|
+
serverMessageSubject: Subject<any>;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* 创建新连接
|
|
16
|
+
*/
|
|
17
|
+
private connect;
|
|
18
|
+
/**
|
|
19
|
+
* 创建连接
|
|
20
|
+
*/
|
|
21
|
+
private createWebSocket;
|
|
22
|
+
/**
|
|
23
|
+
* 连接打开
|
|
24
|
+
*/
|
|
25
|
+
private onOpen;
|
|
26
|
+
/**
|
|
27
|
+
* 接受到消息
|
|
28
|
+
*/
|
|
29
|
+
private onMessage;
|
|
30
|
+
/**
|
|
31
|
+
* 连接关闭
|
|
32
|
+
*/
|
|
33
|
+
private onClose;
|
|
34
|
+
/**
|
|
35
|
+
* 连接异常
|
|
36
|
+
*/
|
|
37
|
+
private onError;
|
|
38
|
+
/**
|
|
39
|
+
* 开始重新连接
|
|
40
|
+
*/
|
|
41
|
+
private reconnect;
|
|
42
|
+
/**
|
|
43
|
+
* 停止重连
|
|
44
|
+
*/
|
|
45
|
+
private stopReconnect;
|
|
46
|
+
/**
|
|
47
|
+
* 开始心跳检测
|
|
48
|
+
*/
|
|
49
|
+
private heartCheckStart;
|
|
50
|
+
/**
|
|
51
|
+
* 停止心跳检测
|
|
52
|
+
*/
|
|
53
|
+
private heartCheckStop;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
|
|
56
|
+
}
|