fantasy-ngzorro 1.3.29 → 1.3.30
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/bundles/fantasy-ngzorro.umd.js +6035 -6035
- package/esm2015/fantasy-ngzorro.js +38 -38
- package/esm2015/fantasy-ngzorro.module.js +18 -18
- package/esm2015/hd-button/hd-button.component.js +91 -91
- package/esm2015/hd-button/hd-button.module.js +22 -22
- package/esm2015/hd-button/hd-button.service.js +36 -36
- package/esm2015/hd-button-group/hd-button-group.component.js +32 -32
- package/esm2015/hd-button-group/hd-button-group.module.js +22 -22
- package/esm2015/hd-component.module.js +43 -43
- package/esm2015/hd-current-table/hd-current-table.component.js +224 -224
- package/esm2015/hd-current-table/hd-current-table.module.js +23 -23
- package/esm2015/hd-current-table/hd-current-table.service.js +34 -34
- package/esm2015/hd-detail-form/hd-detail-form.component.js +64 -64
- package/esm2015/hd-detail-form/hd-detail-form.module.js +20 -20
- package/esm2015/hd-detail-form/hd-detail-form.service.js +17 -17
- package/esm2015/hd-detail-lines/hd-detail-lines.component.js +266 -266
- package/esm2015/hd-detail-lines/hd-detail-lines.module.js +23 -23
- package/esm2015/hd-detail-lines/hd-detail-lines.service.js +18 -18
- package/esm2015/hd-detail-tip/hd-detail-tip.component.js +61 -61
- package/esm2015/hd-detail-tip/hd-detail-tip.module.js +22 -22
- package/esm2015/hd-filter/hd-filter.component.js +192 -192
- package/esm2015/hd-filter/hd-filter.module.js +25 -25
- package/esm2015/hd-filter/hd-filter.service.js +69 -69
- package/esm2015/hd-form/hd-form.component.js +369 -369
- package/esm2015/hd-form/hd-form.module.js +25 -25
- package/esm2015/hd-form/hd-form.service.js +129 -129
- package/esm2015/hd-form-lines/hd-form-lines.component.js +1537 -1537
- package/esm2015/hd-form-lines/hd-form-lines.module.js +29 -29
- package/esm2015/hd-form-lines/hd-form-lines.service.js +121 -121
- package/esm2015/hd-log/hd-log.component.js +30 -30
- package/esm2015/hd-log/hd-log.module.js +25 -25
- package/esm2015/hd-log/hd-log.service.js +47 -47
- package/esm2015/hd-popconfirm/hd-popconfirm.component.js +52 -52
- package/esm2015/hd-popconfirm/hd-popconfirm.module.js +27 -27
- package/esm2015/hd-space/hd-space.component.js +51 -51
- package/esm2015/hd-space/hd-space.module.js +23 -23
- package/esm2015/hd-space/hd-space.service.js +33 -33
- package/esm2015/hd-status/hd-status.component.js +50 -50
- package/esm2015/hd-status/hd-status.module.js +27 -27
- package/esm2015/hd-status/hd-status.service.js +33 -33
- package/esm2015/hd-table/hd-table.component.js +972 -972
- package/esm2015/hd-table/hd-table.module.js +43 -43
- package/esm2015/hd-table/hd-table.service.js +116 -116
- package/esm2015/hd-tip/hd-tip.component.js +37 -37
- package/esm2015/hd-tip/hd-tip.module.js +20 -20
- package/esm2015/index.js +6 -6
- package/esm2015/model/colWidth.js +36 -36
- package/esm2015/model/common-type.js +122 -122
- package/esm2015/model/staticConst.js +8 -8
- package/esm2015/public-api.js +19 -19
- package/esm2015/service/common-session.service.js +37 -37
- package/esm2015/utils.js +128 -128
- package/esm5/fantasy-ngzorro.js +38 -38
- package/esm5/fantasy-ngzorro.module.js +22 -22
- package/esm5/hd-button/hd-button.component.js +104 -104
- package/esm5/hd-button/hd-button.module.js +26 -26
- package/esm5/hd-button/hd-button.service.js +39 -39
- package/esm5/hd-button-group/hd-button-group.component.js +38 -38
- package/esm5/hd-button-group/hd-button-group.module.js +26 -26
- package/esm5/hd-component.module.js +47 -47
- package/esm5/hd-current-table/hd-current-table.component.js +260 -260
- package/esm5/hd-current-table/hd-current-table.module.js +27 -27
- package/esm5/hd-current-table/hd-current-table.service.js +46 -46
- package/esm5/hd-detail-form/hd-detail-form.component.js +77 -77
- package/esm5/hd-detail-form/hd-detail-form.module.js +24 -24
- package/esm5/hd-detail-form/hd-detail-form.service.js +20 -20
- package/esm5/hd-detail-lines/hd-detail-lines.component.js +314 -314
- package/esm5/hd-detail-lines/hd-detail-lines.module.js +27 -27
- package/esm5/hd-detail-lines/hd-detail-lines.service.js +22 -22
- package/esm5/hd-detail-tip/hd-detail-tip.component.js +72 -72
- package/esm5/hd-detail-tip/hd-detail-tip.module.js +26 -26
- package/esm5/hd-filter/hd-filter.component.js +231 -231
- package/esm5/hd-filter/hd-filter.module.js +29 -29
- package/esm5/hd-filter/hd-filter.service.js +77 -77
- package/esm5/hd-form/hd-form.component.js +424 -424
- package/esm5/hd-form/hd-form.module.js +29 -29
- package/esm5/hd-form/hd-form.service.js +141 -141
- package/esm5/hd-form-lines/hd-form-lines.component.js +1844 -1844
- package/esm5/hd-form-lines/hd-form-lines.module.js +33 -33
- package/esm5/hd-form-lines/hd-form-lines.service.js +137 -137
- package/esm5/hd-log/hd-log.component.js +35 -35
- package/esm5/hd-log/hd-log.module.js +29 -29
- package/esm5/hd-log/hd-log.service.js +50 -50
- package/esm5/hd-popconfirm/hd-popconfirm.component.js +65 -65
- package/esm5/hd-popconfirm/hd-popconfirm.module.js +31 -31
- package/esm5/hd-space/hd-space.component.js +56 -56
- package/esm5/hd-space/hd-space.module.js +27 -27
- package/esm5/hd-space/hd-space.service.js +40 -40
- package/esm5/hd-status/hd-status.component.js +62 -62
- package/esm5/hd-status/hd-status.module.js +31 -31
- package/esm5/hd-status/hd-status.service.js +35 -35
- package/esm5/hd-table/hd-table.component.js +1100 -1100
- package/esm5/hd-table/hd-table.module.js +47 -47
- package/esm5/hd-table/hd-table.service.js +136 -136
- package/esm5/hd-tip/hd-tip.component.js +42 -42
- package/esm5/hd-tip/hd-tip.module.js +24 -24
- package/esm5/index.js +6 -6
- package/esm5/model/colWidth.js +36 -36
- package/esm5/model/common-type.js +146 -146
- package/esm5/model/staticConst.js +8 -8
- package/esm5/public-api.js +19 -19
- package/esm5/service/common-session.service.js +54 -54
- package/esm5/utils.js +128 -128
- package/fantasy-ngzorro.d.ts +34 -34
- package/fantasy-ngzorro.module.d.ts +2 -2
- package/fesm2015/fantasy-ngzorro.js +5223 -5223
- package/fesm5/fantasy-ngzorro.js +6044 -6044
- package/hd-button/hd-button.component.d.ts +14 -14
- package/hd-button/hd-button.module.d.ts +2 -2
- package/hd-button/hd-button.service.d.ts +17 -17
- package/hd-button-group/hd-button-group.component.d.ts +7 -7
- package/hd-button-group/hd-button-group.module.d.ts +2 -2
- package/hd-component.module.d.ts +2 -2
- package/hd-current-table/hd-current-table.component.d.ts +43 -43
- package/hd-current-table/hd-current-table.module.d.ts +2 -2
- package/hd-current-table/hd-current-table.service.d.ts +13 -13
- package/hd-detail-form/hd-detail-form.component.d.ts +9 -9
- package/hd-detail-form/hd-detail-form.module.d.ts +2 -2
- package/hd-detail-form/hd-detail-form.service.d.ts +3 -3
- package/hd-detail-lines/hd-detail-lines.component.d.ts +48 -48
- package/hd-detail-lines/hd-detail-lines.module.d.ts +2 -2
- package/hd-detail-lines/hd-detail-lines.service.d.ts +7 -7
- package/hd-detail-tip/hd-detail-tip.component.d.ts +12 -12
- package/hd-detail-tip/hd-detail-tip.module.d.ts +2 -2
- package/hd-filter/hd-filter.component.d.ts +23 -23
- package/hd-filter/hd-filter.module.d.ts +2 -2
- package/hd-filter/hd-filter.service.d.ts +25 -25
- package/hd-form/hd-form.component.d.ts +25 -25
- package/hd-form/hd-form.module.d.ts +2 -2
- package/hd-form/hd-form.service.d.ts +51 -51
- package/hd-form-lines/hd-form-lines.component.d.ts +147 -147
- package/hd-form-lines/hd-form-lines.module.d.ts +2 -2
- package/hd-form-lines/hd-form-lines.service.d.ts +53 -53
- package/hd-log/hd-log.component.d.ts +6 -6
- package/hd-log/hd-log.module.d.ts +2 -2
- package/hd-log/hd-log.service.d.ts +6 -6
- package/hd-popconfirm/hd-popconfirm.component.d.ts +10 -10
- package/hd-popconfirm/hd-popconfirm.module.d.ts +2 -2
- package/hd-space/hd-space.component.d.ts +10 -10
- package/hd-space/hd-space.module.d.ts +2 -2
- package/hd-space/hd-space.service.d.ts +12 -12
- package/hd-status/hd-status.component.d.ts +9 -9
- package/hd-status/hd-status.module.d.ts +2 -2
- package/hd-status/hd-status.service.d.ts +11 -11
- package/hd-table/hd-table.component.d.ts +91 -91
- package/hd-table/hd-table.module.d.ts +2 -2
- package/hd-table/hd-table.service.d.ts +42 -42
- package/hd-tip/hd-tip.component.d.ts +8 -8
- package/hd-tip/hd-tip.module.d.ts +2 -2
- package/index.d.ts +2 -2
- package/model/colWidth.d.ts +17 -17
- package/model/common-type.d.ts +46 -46
- package/model/staticConst.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +15 -15
- package/service/common-session.service.d.ts +5 -5
- package/utils.d.ts +28 -28
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const statusToColor: {
|
|
2
|
-
'#FAB13B': string[];
|
|
3
|
-
'#9FA4A2': string[];
|
|
4
|
-
'#F5222D': string[];
|
|
5
|
-
'#3B77E3': string[];
|
|
6
|
-
'#12A34F': string[];
|
|
7
|
-
'#F05B24': string[];
|
|
8
|
-
};
|
|
9
|
-
export declare class HdStatusService {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
1
|
+
export declare const statusToColor: {
|
|
2
|
+
'#FAB13B': string[];
|
|
3
|
+
'#9FA4A2': string[];
|
|
4
|
+
'#F5222D': string[];
|
|
5
|
+
'#3B77E3': string[];
|
|
6
|
+
'#12A34F': string[];
|
|
7
|
+
'#F05B24': string[];
|
|
8
|
+
};
|
|
9
|
+
export declare class HdStatusService {
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit, SimpleChange, TemplateRef } from '@angular/core';
|
|
2
|
-
import { NzFormatBeforeDropEvent, NzFormatEmitEvent } from 'ng-zorro-antd/core';
|
|
3
|
-
import { NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { Page } from '../model/common-type';
|
|
6
|
-
import { CommonSessionService } from '../service/common-session.service';
|
|
7
|
-
import { HdTableColumn, HdTableTotalOption, TableCacheOption, TreeGrid } from './hd-table.service';
|
|
8
|
-
export declare class HdTableComponent implements OnInit {
|
|
9
|
-
private cdr;
|
|
10
|
-
private commonSessionService;
|
|
11
|
-
uuid: string;
|
|
12
|
-
tableCols: Array<HdTableColumn>;
|
|
13
|
-
tableData: Page<any>;
|
|
14
|
-
showSelected: boolean;
|
|
15
|
-
showOperateColWarpButton: boolean;
|
|
16
|
-
selectField: string;
|
|
17
|
-
showTableTotal: boolean;
|
|
18
|
-
tableTotalOption: Array<HdTableTotalOption>;
|
|
19
|
-
sortEvent: EventEmitter<{}>;
|
|
20
|
-
selectEvent: EventEmitter<{}>;
|
|
21
|
-
tableSearchEvent: EventEmitter<{}>;
|
|
22
|
-
tableLoading: boolean;
|
|
23
|
-
tablePageIndex: number;
|
|
24
|
-
tablePageSize: number;
|
|
25
|
-
tablePageIndexChange: EventEmitter<any>;
|
|
26
|
-
tablePageSizeChange: EventEmitter<any>;
|
|
27
|
-
tableTotal: TemplateRef<any>;
|
|
28
|
-
tableLeftButton: TemplateRef<any>;
|
|
29
|
-
tableRightButton: TemplateRef<any>;
|
|
30
|
-
scroll: any;
|
|
31
|
-
isAllDisplayDataChecked: boolean;
|
|
32
|
-
isIndeterminate: boolean;
|
|
33
|
-
listOfDisplayData: any[];
|
|
34
|
-
listOfAllData: any[];
|
|
35
|
-
listOfSelection: Array<any> | TemplateRef<void>;
|
|
36
|
-
mapOfCheckedId: {
|
|
37
|
-
[key: string]: boolean;
|
|
38
|
-
};
|
|
39
|
-
mapOfCheckList: {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
};
|
|
42
|
-
tableTotalOptionList: any[];
|
|
43
|
-
private textWidthCache;
|
|
44
|
-
tableCacheOption: TableCacheOption;
|
|
45
|
-
userSession: any;
|
|
46
|
-
tableColsCache: Array<HdTableColumn>;
|
|
47
|
-
showTable: boolean;
|
|
48
|
-
selectColListNodes: Array<TreeGrid>;
|
|
49
|
-
selectColListNodesCache: Array<TreeGrid>;
|
|
50
|
-
showListNodes: boolean;
|
|
51
|
-
isDropdownVisible: boolean;
|
|
52
|
-
nowListNodes: Array<TreeGrid>;
|
|
53
|
-
hideListNodes: Array<TreeGrid>;
|
|
54
|
-
cancelNowListNodes: Array<TreeGrid>;
|
|
55
|
-
cancelHideListNodes: Array<TreeGrid>;
|
|
56
|
-
showDetail: boolean;
|
|
57
|
-
localforage: any;
|
|
58
|
-
localtionTmp: string;
|
|
59
|
-
constructor(cdr: ChangeDetectorRef, commonSessionService: CommonSessionService);
|
|
60
|
-
ngOnInit(): void;
|
|
61
|
-
ngOnChanges(changes: SimpleChange): void;
|
|
62
|
-
deleteHideItem(): void;
|
|
63
|
-
sort(sort: {
|
|
64
|
-
key: string;
|
|
65
|
-
value: string;
|
|
66
|
-
}): void;
|
|
67
|
-
getInitLocalforage(): void;
|
|
68
|
-
initTable(): void;
|
|
69
|
-
cancelDropdown(): void;
|
|
70
|
-
confirmDropdown(): void;
|
|
71
|
-
submitGrids(): void;
|
|
72
|
-
setCols(): void;
|
|
73
|
-
beforeDrop: (arg: NzFormatBeforeDropEvent) => Observable<boolean>;
|
|
74
|
-
moveElementNearby(arr: any, elementToMoveTitle: any, targetElementTitle: any, pos: any): any;
|
|
75
|
-
checkAction(event: NzFormatEmitEvent): void;
|
|
76
|
-
getHideListNodes(): Array<TreeGrid>;
|
|
77
|
-
dealCols(): void;
|
|
78
|
-
saveTableCacheOption(): void;
|
|
79
|
-
judgeRepeatCols(): boolean;
|
|
80
|
-
onResize({ width }: NzResizeEvent, col: HdTableColumn): void;
|
|
81
|
-
dealOperateBtn(): void;
|
|
82
|
-
triggerEvent(fn: any, event: any): void;
|
|
83
|
-
dealScroll(): void;
|
|
84
|
-
isTextOverflow(text: string, maxWidth: number): boolean;
|
|
85
|
-
currentPageDataChange($event: any): void;
|
|
86
|
-
search(reset: boolean): void;
|
|
87
|
-
resetStatus(): void;
|
|
88
|
-
refreshStatus(event?: boolean, data?: any): void;
|
|
89
|
-
checkAll(value: boolean): void;
|
|
90
|
-
judgeColEmpty(str: any): any;
|
|
91
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit, SimpleChange, TemplateRef } from '@angular/core';
|
|
2
|
+
import { NzFormatBeforeDropEvent, NzFormatEmitEvent } from 'ng-zorro-antd/core';
|
|
3
|
+
import { NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { Page } from '../model/common-type';
|
|
6
|
+
import { CommonSessionService } from '../service/common-session.service';
|
|
7
|
+
import { HdTableColumn, HdTableTotalOption, TableCacheOption, TreeGrid } from './hd-table.service';
|
|
8
|
+
export declare class HdTableComponent implements OnInit {
|
|
9
|
+
private cdr;
|
|
10
|
+
private commonSessionService;
|
|
11
|
+
uuid: string;
|
|
12
|
+
tableCols: Array<HdTableColumn>;
|
|
13
|
+
tableData: Page<any>;
|
|
14
|
+
showSelected: boolean;
|
|
15
|
+
showOperateColWarpButton: boolean;
|
|
16
|
+
selectField: string;
|
|
17
|
+
showTableTotal: boolean;
|
|
18
|
+
tableTotalOption: Array<HdTableTotalOption>;
|
|
19
|
+
sortEvent: EventEmitter<{}>;
|
|
20
|
+
selectEvent: EventEmitter<{}>;
|
|
21
|
+
tableSearchEvent: EventEmitter<{}>;
|
|
22
|
+
tableLoading: boolean;
|
|
23
|
+
tablePageIndex: number;
|
|
24
|
+
tablePageSize: number;
|
|
25
|
+
tablePageIndexChange: EventEmitter<any>;
|
|
26
|
+
tablePageSizeChange: EventEmitter<any>;
|
|
27
|
+
tableTotal: TemplateRef<any>;
|
|
28
|
+
tableLeftButton: TemplateRef<any>;
|
|
29
|
+
tableRightButton: TemplateRef<any>;
|
|
30
|
+
scroll: any;
|
|
31
|
+
isAllDisplayDataChecked: boolean;
|
|
32
|
+
isIndeterminate: boolean;
|
|
33
|
+
listOfDisplayData: any[];
|
|
34
|
+
listOfAllData: any[];
|
|
35
|
+
listOfSelection: Array<any> | TemplateRef<void>;
|
|
36
|
+
mapOfCheckedId: {
|
|
37
|
+
[key: string]: boolean;
|
|
38
|
+
};
|
|
39
|
+
mapOfCheckList: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
tableTotalOptionList: any[];
|
|
43
|
+
private textWidthCache;
|
|
44
|
+
tableCacheOption: TableCacheOption;
|
|
45
|
+
userSession: any;
|
|
46
|
+
tableColsCache: Array<HdTableColumn>;
|
|
47
|
+
showTable: boolean;
|
|
48
|
+
selectColListNodes: Array<TreeGrid>;
|
|
49
|
+
selectColListNodesCache: Array<TreeGrid>;
|
|
50
|
+
showListNodes: boolean;
|
|
51
|
+
isDropdownVisible: boolean;
|
|
52
|
+
nowListNodes: Array<TreeGrid>;
|
|
53
|
+
hideListNodes: Array<TreeGrid>;
|
|
54
|
+
cancelNowListNodes: Array<TreeGrid>;
|
|
55
|
+
cancelHideListNodes: Array<TreeGrid>;
|
|
56
|
+
showDetail: boolean;
|
|
57
|
+
localforage: any;
|
|
58
|
+
localtionTmp: string;
|
|
59
|
+
constructor(cdr: ChangeDetectorRef, commonSessionService: CommonSessionService);
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
ngOnChanges(changes: SimpleChange): void;
|
|
62
|
+
deleteHideItem(): void;
|
|
63
|
+
sort(sort: {
|
|
64
|
+
key: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}): void;
|
|
67
|
+
getInitLocalforage(): void;
|
|
68
|
+
initTable(): void;
|
|
69
|
+
cancelDropdown(): void;
|
|
70
|
+
confirmDropdown(): void;
|
|
71
|
+
submitGrids(): void;
|
|
72
|
+
setCols(): void;
|
|
73
|
+
beforeDrop: (arg: NzFormatBeforeDropEvent) => Observable<boolean>;
|
|
74
|
+
moveElementNearby(arr: any, elementToMoveTitle: any, targetElementTitle: any, pos: any): any;
|
|
75
|
+
checkAction(event: NzFormatEmitEvent): void;
|
|
76
|
+
getHideListNodes(): Array<TreeGrid>;
|
|
77
|
+
dealCols(): void;
|
|
78
|
+
saveTableCacheOption(): void;
|
|
79
|
+
judgeRepeatCols(): boolean;
|
|
80
|
+
onResize({ width }: NzResizeEvent, col: HdTableColumn): void;
|
|
81
|
+
dealOperateBtn(): void;
|
|
82
|
+
triggerEvent(fn: any, event: any): void;
|
|
83
|
+
dealScroll(): void;
|
|
84
|
+
isTextOverflow(text: string, maxWidth: number): boolean;
|
|
85
|
+
currentPageDataChange($event: any): void;
|
|
86
|
+
search(reset: boolean): void;
|
|
87
|
+
resetStatus(): void;
|
|
88
|
+
refreshStatus(event?: boolean, data?: any): void;
|
|
89
|
+
checkAll(value: boolean): void;
|
|
90
|
+
judgeColEmpty(str: any): any;
|
|
91
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class HdTableModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class HdTableModule {
|
|
2
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export declare class HdTableColumn {
|
|
2
|
-
title: string;
|
|
3
|
-
name: string | Function;
|
|
4
|
-
render?: (value: any) => string;
|
|
5
|
-
width?: number;
|
|
6
|
-
color?: string;
|
|
7
|
-
align?: 'right' | 'left' | 'center';
|
|
8
|
-
click?: (value: any) => void;
|
|
9
|
-
fixed?: 'left' | 'right';
|
|
10
|
-
fixedWidth?: number;
|
|
11
|
-
btnList?: Array<OperateBtn>;
|
|
12
|
-
isShow?: boolean;
|
|
13
|
-
canSort?: boolean;
|
|
14
|
-
canWarp?: boolean;
|
|
15
|
-
minWidth?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare class OperateBtn {
|
|
18
|
-
name: string;
|
|
19
|
-
showConfirm?: boolean;
|
|
20
|
-
isRepeat?: boolean;
|
|
21
|
-
click?: (value: any) => void;
|
|
22
|
-
permission?: (value: any) => boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class HdTableTotalOption {
|
|
25
|
-
columnNumber: number;
|
|
26
|
-
insertIndex: number;
|
|
27
|
-
insertName: string;
|
|
28
|
-
}
|
|
29
|
-
export declare class TableCacheOption {
|
|
30
|
-
pageSize: number;
|
|
31
|
-
colWidths: Map<string, number>;
|
|
32
|
-
cols: Array<string>;
|
|
33
|
-
}
|
|
34
|
-
export declare class TreeGrid {
|
|
35
|
-
title: string;
|
|
36
|
-
key: string;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
checked?: boolean;
|
|
39
|
-
selectable?: boolean;
|
|
40
|
-
isLeaf?: boolean;
|
|
41
|
-
expanded?: boolean;
|
|
42
|
-
}
|
|
1
|
+
export declare class HdTableColumn {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string | Function;
|
|
4
|
+
render?: (value: any) => string;
|
|
5
|
+
width?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
align?: 'right' | 'left' | 'center';
|
|
8
|
+
click?: (value: any) => void;
|
|
9
|
+
fixed?: 'left' | 'right';
|
|
10
|
+
fixedWidth?: number;
|
|
11
|
+
btnList?: Array<OperateBtn>;
|
|
12
|
+
isShow?: boolean;
|
|
13
|
+
canSort?: boolean;
|
|
14
|
+
canWarp?: boolean;
|
|
15
|
+
minWidth?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class OperateBtn {
|
|
18
|
+
name: string;
|
|
19
|
+
showConfirm?: boolean;
|
|
20
|
+
isRepeat?: boolean;
|
|
21
|
+
click?: (value: any) => void;
|
|
22
|
+
permission?: (value: any) => boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class HdTableTotalOption {
|
|
25
|
+
columnNumber: number;
|
|
26
|
+
insertIndex: number;
|
|
27
|
+
insertName: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class TableCacheOption {
|
|
30
|
+
pageSize: number;
|
|
31
|
+
colWidths: Map<string, number>;
|
|
32
|
+
cols: Array<string>;
|
|
33
|
+
}
|
|
34
|
+
export declare class TreeGrid {
|
|
35
|
+
title: string;
|
|
36
|
+
key: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
checked?: boolean;
|
|
39
|
+
selectable?: boolean;
|
|
40
|
+
isLeaf?: boolean;
|
|
41
|
+
expanded?: boolean;
|
|
42
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
export declare class HdTipComponent implements OnInit {
|
|
3
|
-
showIcon: boolean;
|
|
4
|
-
fontSize: number;
|
|
5
|
-
title: string;
|
|
6
|
-
constructor();
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
export declare class HdTipComponent implements OnInit {
|
|
3
|
+
showIcon: boolean;
|
|
4
|
+
fontSize: number;
|
|
5
|
+
title: string;
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class HdTipModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class HdTipModule {
|
|
2
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './fantasy-ngzorro.module';
|
|
2
|
-
export * from './public-api';
|
|
1
|
+
export * from './fantasy-ngzorro.module';
|
|
2
|
+
export * from './public-api';
|
package/model/colWidth.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare const ColWidth: {
|
|
2
|
-
tableImageColWidth: number;
|
|
3
|
-
tableTwoImageColWidth: number;
|
|
4
|
-
billNumberColWidth: number;
|
|
5
|
-
nameColWidth: number;
|
|
6
|
-
codeColWidth: number;
|
|
7
|
-
codeNameColWidth: number;
|
|
8
|
-
enumColWidth: number;
|
|
9
|
-
dateColWidth: number;
|
|
10
|
-
dateTimeColWidth: number;
|
|
11
|
-
dateRangeWidth: number;
|
|
12
|
-
operateColWidth: number;
|
|
13
|
-
numberColWidth: number;
|
|
14
|
-
remarkColWidth: number;
|
|
15
|
-
fixColWidth: number;
|
|
16
|
-
maxColWidth: number;
|
|
17
|
-
};
|
|
1
|
+
export declare const ColWidth: {
|
|
2
|
+
tableImageColWidth: number;
|
|
3
|
+
tableTwoImageColWidth: number;
|
|
4
|
+
billNumberColWidth: number;
|
|
5
|
+
nameColWidth: number;
|
|
6
|
+
codeColWidth: number;
|
|
7
|
+
codeNameColWidth: number;
|
|
8
|
+
enumColWidth: number;
|
|
9
|
+
dateColWidth: number;
|
|
10
|
+
dateTimeColWidth: number;
|
|
11
|
+
dateRangeWidth: number;
|
|
12
|
+
operateColWidth: number;
|
|
13
|
+
numberColWidth: number;
|
|
14
|
+
remarkColWidth: number;
|
|
15
|
+
fixColWidth: number;
|
|
16
|
+
maxColWidth: number;
|
|
17
|
+
};
|
package/model/common-type.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export declare class Page<T> {
|
|
2
|
-
totalPages: number;
|
|
3
|
-
totalElements: number;
|
|
4
|
-
pageNumber: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
hasContent: boolean;
|
|
7
|
-
hasNext: boolean;
|
|
8
|
-
content: Array<T>;
|
|
9
|
-
}
|
|
10
|
-
export declare class HdOption {
|
|
11
|
-
label: string;
|
|
12
|
-
value: any;
|
|
13
|
-
color?: string;
|
|
14
|
-
hide?: boolean;
|
|
15
|
-
click?: (value: any) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare class SelectOption {
|
|
18
|
-
label: string;
|
|
19
|
-
value: string;
|
|
20
|
-
selectList?: Array<any>;
|
|
21
|
-
selectListName?: string;
|
|
22
|
-
showLabelAndValue?: boolean;
|
|
23
|
-
hdDropdownMatchSelectWidth?: boolean;
|
|
24
|
-
hdServerSearch?: boolean;
|
|
25
|
-
hdShowItemCode?: boolean;
|
|
26
|
-
tableColumns?: Array<SelectOptionTableColumn>;
|
|
27
|
-
hdShowSearch?: boolean;
|
|
28
|
-
hdAllowClear?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export declare class SelectOptionTableColumn {
|
|
31
|
-
width: number;
|
|
32
|
-
label: string;
|
|
33
|
-
name: string;
|
|
34
|
-
icons?: Array<SelectOptionTableColumnIcon>;
|
|
35
|
-
render?: (value: any) => string;
|
|
36
|
-
}
|
|
37
|
-
export declare class SelectOptionTableColumnIcon {
|
|
38
|
-
iconName: string;
|
|
39
|
-
fieldName: string;
|
|
40
|
-
}
|
|
41
|
-
export declare class InputNumber {
|
|
42
|
-
min?: number;
|
|
43
|
-
max?: number;
|
|
44
|
-
step?: number;
|
|
45
|
-
precision?: number;
|
|
46
|
-
}
|
|
1
|
+
export declare class Page<T> {
|
|
2
|
+
totalPages: number;
|
|
3
|
+
totalElements: number;
|
|
4
|
+
pageNumber: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
hasContent: boolean;
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
content: Array<T>;
|
|
9
|
+
}
|
|
10
|
+
export declare class HdOption {
|
|
11
|
+
label: string;
|
|
12
|
+
value: any;
|
|
13
|
+
color?: string;
|
|
14
|
+
hide?: boolean;
|
|
15
|
+
click?: (value: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare class SelectOption {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
selectList?: Array<any>;
|
|
21
|
+
selectListName?: string;
|
|
22
|
+
showLabelAndValue?: boolean;
|
|
23
|
+
hdDropdownMatchSelectWidth?: boolean;
|
|
24
|
+
hdServerSearch?: boolean;
|
|
25
|
+
hdShowItemCode?: boolean;
|
|
26
|
+
tableColumns?: Array<SelectOptionTableColumn>;
|
|
27
|
+
hdShowSearch?: boolean;
|
|
28
|
+
hdAllowClear?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare class SelectOptionTableColumn {
|
|
31
|
+
width: number;
|
|
32
|
+
label: string;
|
|
33
|
+
name: string;
|
|
34
|
+
icons?: Array<SelectOptionTableColumnIcon>;
|
|
35
|
+
render?: (value: any) => string;
|
|
36
|
+
}
|
|
37
|
+
export declare class SelectOptionTableColumnIcon {
|
|
38
|
+
iconName: string;
|
|
39
|
+
fieldName: string;
|
|
40
|
+
}
|
|
41
|
+
export declare class InputNumber {
|
|
42
|
+
min?: number;
|
|
43
|
+
max?: number;
|
|
44
|
+
step?: number;
|
|
45
|
+
precision?: number;
|
|
46
|
+
}
|
package/model/staticConst.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const StaticConst: {
|
|
2
|
-
MaxPageSize: number;
|
|
3
|
-
};
|
|
1
|
+
export declare const StaticConst: {
|
|
2
|
+
MaxPageSize: number;
|
|
3
|
+
};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './hd-button/hd-button.service';
|
|
2
|
-
export { HdCurrentTableComponent } from './hd-current-table/hd-current-table.component';
|
|
3
|
-
export * from './hd-current-table/hd-current-table.service';
|
|
4
|
-
export * from './hd-detail-form/hd-detail-form.service';
|
|
5
|
-
export * from './hd-detail-lines/hd-detail-lines.service';
|
|
6
|
-
export * from './hd-filter/hd-filter.service';
|
|
7
|
-
export * from './hd-form-lines/hd-form-lines.service';
|
|
8
|
-
export * from './hd-form/hd-form.service';
|
|
9
|
-
export { HdLogComponent } from './hd-log/hd-log.component';
|
|
10
|
-
export * from './hd-log/hd-log.service';
|
|
11
|
-
export * from './hd-table/hd-table.service';
|
|
12
|
-
export * from './model/colWidth';
|
|
13
|
-
export * from './model/common-type';
|
|
14
|
-
export * from './model/staticConst';
|
|
15
|
-
export * from './utils';
|
|
1
|
+
export * from './hd-button/hd-button.service';
|
|
2
|
+
export { HdCurrentTableComponent } from './hd-current-table/hd-current-table.component';
|
|
3
|
+
export * from './hd-current-table/hd-current-table.service';
|
|
4
|
+
export * from './hd-detail-form/hd-detail-form.service';
|
|
5
|
+
export * from './hd-detail-lines/hd-detail-lines.service';
|
|
6
|
+
export * from './hd-filter/hd-filter.service';
|
|
7
|
+
export * from './hd-form-lines/hd-form-lines.service';
|
|
8
|
+
export * from './hd-form/hd-form.service';
|
|
9
|
+
export { HdLogComponent } from './hd-log/hd-log.component';
|
|
10
|
+
export * from './hd-log/hd-log.service';
|
|
11
|
+
export * from './hd-table/hd-table.service';
|
|
12
|
+
export * from './model/colWidth';
|
|
13
|
+
export * from './model/common-type';
|
|
14
|
+
export * from './model/staticConst';
|
|
15
|
+
export * from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class CommonSessionService {
|
|
2
|
-
putSession(session_key: string, session: any): void;
|
|
3
|
-
getSession(session_key: string): any;
|
|
4
|
-
removeSession(session_key: string): void;
|
|
5
|
-
}
|
|
1
|
+
export declare class CommonSessionService {
|
|
2
|
+
putSession(session_key: string, session: any): void;
|
|
3
|
+
getSession(session_key: string): any;
|
|
4
|
+
removeSession(session_key: string): void;
|
|
5
|
+
}
|
package/utils.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { FormItem } from "./hd-form/hd-form.service";
|
|
2
|
-
export declare const Utils: {
|
|
3
|
-
/**
|
|
4
|
-
* 填充select控件选项
|
|
5
|
-
* @param formList 入参数组 Array<any>
|
|
6
|
-
* @param name 需要填充options的属性名称
|
|
7
|
-
* @param options 选项列表
|
|
8
|
-
*/
|
|
9
|
-
fillSelectOption: (formList: any[], name: string, options: any[]) => any[];
|
|
10
|
-
/**
|
|
11
|
-
* 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
|
|
12
|
-
* @param list 入参数组 Array<FormItem>
|
|
13
|
-
* @param obj 需要填充到list的属性
|
|
14
|
-
*/
|
|
15
|
-
fillArrayFormItem: (list: FormItem[], obj: Object) => any[];
|
|
16
|
-
/**
|
|
17
|
-
* 数组转换成选择器的选项数组
|
|
18
|
-
* @param list 入参数组 字符串数组或对象数组
|
|
19
|
-
* @param option 转换选项
|
|
20
|
-
* 注:list为字符串数组,option不需要传,按照标准的label、value转换
|
|
21
|
-
*/
|
|
22
|
-
arrayToSelectOptionList: (list: any[], option?: {
|
|
23
|
-
value: string;
|
|
24
|
-
label: string;
|
|
25
|
-
valueTip?: string;
|
|
26
|
-
labelTip?: string;
|
|
27
|
-
}) => any[];
|
|
28
|
-
};
|
|
1
|
+
import { FormItem } from "./hd-form/hd-form.service";
|
|
2
|
+
export declare const Utils: {
|
|
3
|
+
/**
|
|
4
|
+
* 填充select控件选项
|
|
5
|
+
* @param formList 入参数组 Array<any>
|
|
6
|
+
* @param name 需要填充options的属性名称
|
|
7
|
+
* @param options 选项列表
|
|
8
|
+
*/
|
|
9
|
+
fillSelectOption: (formList: any[], name: string, options: any[]) => any[];
|
|
10
|
+
/**
|
|
11
|
+
* 填充FormItem数组:针对入参list的每一个FormItem,判断obj中是否有对应的name字段,如果有,则填充value。
|
|
12
|
+
* @param list 入参数组 Array<FormItem>
|
|
13
|
+
* @param obj 需要填充到list的属性
|
|
14
|
+
*/
|
|
15
|
+
fillArrayFormItem: (list: FormItem[], obj: Object) => any[];
|
|
16
|
+
/**
|
|
17
|
+
* 数组转换成选择器的选项数组
|
|
18
|
+
* @param list 入参数组 字符串数组或对象数组
|
|
19
|
+
* @param option 转换选项
|
|
20
|
+
* 注:list为字符串数组,option不需要传,按照标准的label、value转换
|
|
21
|
+
*/
|
|
22
|
+
arrayToSelectOptionList: (list: any[], option?: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
valueTip?: string;
|
|
26
|
+
labelTip?: string;
|
|
27
|
+
}) => any[];
|
|
28
|
+
};
|