ngx-rs-ant 1.0.5 → 1.1.3
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/box-container/PluginManager.d.ts +2 -0
- package/box-container/box-container.module.d.ts +5 -4
- package/box-container/box-item/box-item.component.d.ts +3 -0
- package/box-container/box-item/item-config/config-blank/config-blank.component.d.ts +5 -0
- package/box-container/box-item/item-config/item-config.component.d.ts +1 -1
- package/box-container/box-item/item-style/item-style.component.d.ts +2 -4
- package/data-grid/data-grid.component.d.ts +2 -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/box-container/PluginManager.mjs +45 -1
- package/esm2020/box-container/box-container.module.mjs +6 -3
- package/esm2020/box-container/box-item/box-item.component.mjs +5 -2
- package/esm2020/box-container/box-item/item-config/config-blank/config-blank.component.mjs +11 -0
- package/esm2020/box-container/box-item/item-config/item-config.component.mjs +9 -31
- package/esm2020/box-container/box-item/item-style/item-style.component.mjs +7 -22
- package/esm2020/box-container/box-item/item-style/style/style.component.mjs +4 -3
- package/esm2020/data-grid/data-grid.component.mjs +25 -9
- 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/form/form.component.mjs +18 -20
- package/esm2020/public-api.mjs +4 -2
- package/esm2020/util/utils.mjs +98 -0
- package/esm2020/websocket/websocket.module.mjs +18 -0
- package/esm2020/websocket/websocket.service.mjs +153 -0
- package/fesm2015/ngx-rs-ant.mjs +468 -238
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +465 -240
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/form/form.component.d.ts +2 -2
- package/package.json +2 -3
- package/public-api.d.ts +3 -1
- package/util/utils.d.ts +6 -0
- package/websocket/websocket.module.d.ts +7 -0
- package/websocket/websocket.service.d.ts +56 -0
- package/esm2020/notify/notify.mjs +0 -35
- package/notify/notify.d.ts +0 -3
package/form/form.component.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare class FormComponent implements OnInit {
|
|
|
18
18
|
loading: boolean;
|
|
19
19
|
constructor(service: FormService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
|
-
protected submitForm(
|
|
22
|
-
validate(): boolean
|
|
21
|
+
protected submitForm(): void;
|
|
22
|
+
validate(): Promise<boolean>;
|
|
23
23
|
submit(): void;
|
|
24
24
|
protected readonly window: Window & typeof globalThis;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-rs-ant",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "RsAnt components based on Angular and DevExtreme",
|
|
6
6
|
"exports": {
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@angular/common": "^15.2.0",
|
|
24
24
|
"@angular/core": "^15.2.0",
|
|
25
|
-
"
|
|
26
|
-
"coast-plugin-register": "^2.1.6",
|
|
25
|
+
"coast-plugin-register": "^2.1.8",
|
|
27
26
|
"devextreme": "^23.1.4",
|
|
28
27
|
"devextreme-angular": "^23.1.4"
|
|
29
28
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -23,4 +23,6 @@ export * from './icon-selector/icon-selector.module';
|
|
|
23
23
|
export * from './modal/modal.component';
|
|
24
24
|
export * from './modal/modal.module';
|
|
25
25
|
export * from './modal/modal.service';
|
|
26
|
-
export * from './
|
|
26
|
+
export * from './util/utils';
|
|
27
|
+
export * from './websocket/websocket.module';
|
|
28
|
+
export * from './websocket/websocket.service';
|
package/util/utils.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DxValidationGroupComponent, DxValidatorComponent } from "devextreme-angular";
|
|
2
|
+
export declare function notify_error(message: string): void;
|
|
3
|
+
export declare function notify_warning(message: string): void;
|
|
4
|
+
export declare function notify_success(message: string): void;
|
|
5
|
+
export declare function validate(validator: DxValidatorComponent): Promise<boolean>;
|
|
6
|
+
export declare function validate_group(validationGroup: DxValidationGroupComponent): Promise<boolean>;
|
|
@@ -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
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import notify from "devextreme/ui/notify";
|
|
2
|
-
export function notify_error(message) {
|
|
3
|
-
notify({
|
|
4
|
-
displayTime: 12000,
|
|
5
|
-
message,
|
|
6
|
-
type: 'error',
|
|
7
|
-
width: '300px'
|
|
8
|
-
}, {
|
|
9
|
-
direction: 'up-push',
|
|
10
|
-
position: 'bottom right'
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export function notify_warning(message) {
|
|
14
|
-
notify({
|
|
15
|
-
displayTime: 8000,
|
|
16
|
-
message,
|
|
17
|
-
type: 'warning',
|
|
18
|
-
width: '300px'
|
|
19
|
-
}, {
|
|
20
|
-
direction: 'up-push',
|
|
21
|
-
position: 'bottom right'
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
export function notify_success(message) {
|
|
25
|
-
notify({
|
|
26
|
-
displayTime: 4000,
|
|
27
|
-
message,
|
|
28
|
-
type: 'success',
|
|
29
|
-
width: '300px'
|
|
30
|
-
}, {
|
|
31
|
-
direction: 'down-push',
|
|
32
|
-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