fantasy-ngzorro 1.2.19 → 1.3.0
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 +758 -161
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-form-lines/hd-form-lines.component.js +521 -18
- package/esm2015/hd-form-lines/hd-form-lines.service.js +12 -22
- package/esm2015/hd-table/hd-table.component.js +2 -4
- package/esm5/hd-form-lines/hd-form-lines.component.js +628 -18
- package/esm5/hd-form-lines/hd-form-lines.service.js +12 -22
- package/esm5/hd-table/hd-table.component.js +2 -4
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +638 -148
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +760 -163
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-form-lines/hd-form-lines.component.d.ts +50 -3
- package/hd-form-lines/hd-form-lines.service.d.ts +10 -10
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { NzDatePickerComponent, NzInputNumberComponent, NzRangePickerComponent, NzSelectComponent, NzTimePickerComponent } from 'ng-zorro-antd';
|
|
3
4
|
import { TotalOption } from '../hd-detail-lines/hd-detail-lines.service';
|
|
4
5
|
import { FormLine } from './hd-form-lines.service';
|
|
5
6
|
export declare class HdFormLinesComponent implements OnInit {
|
|
6
7
|
private fb;
|
|
8
|
+
private cdr;
|
|
9
|
+
formInputDomList: QueryList<ElementRef>;
|
|
7
10
|
tableLoading: boolean;
|
|
8
11
|
showSearch: boolean;
|
|
9
12
|
formLines: Array<FormLine>;
|
|
@@ -33,8 +36,52 @@ export declare class HdFormLinesComponent implements OnInit {
|
|
|
33
36
|
private searchSubject;
|
|
34
37
|
private debounceTimeout;
|
|
35
38
|
private searchSubscription;
|
|
36
|
-
|
|
39
|
+
collectDomList: Array<Array<ElementRef | NzSelectComponent | NzInputNumberComponent | NzDatePickerComponent | NzRangePickerComponent | NzTimePickerComponent>>;
|
|
40
|
+
activeDomX: number;
|
|
41
|
+
activeDomY: number;
|
|
42
|
+
activeDom: ElementRef | NzSelectComponent | NzInputNumberComponent | NzDatePickerComponent | NzRangePickerComponent | NzTimePickerComponent;
|
|
43
|
+
activeSelectedComponentOpen: boolean;
|
|
44
|
+
constructor(fb: FormBuilder, cdr: ChangeDetectorRef);
|
|
37
45
|
ngOnInit(): void;
|
|
46
|
+
ngAfterViewInit(): void;
|
|
47
|
+
readonly formLinesLength: any;
|
|
48
|
+
collectDomData(): void;
|
|
49
|
+
jumpToNextInput(x: number, y: number): void;
|
|
50
|
+
/**
|
|
51
|
+
* 增加新行并且聚焦到第一个元素,
|
|
52
|
+
* 这里要注意,如果存在翻页情况,需要处理
|
|
53
|
+
*/
|
|
54
|
+
addNewLineAndFocus(): void;
|
|
55
|
+
jumpToPrevInput(x: number, y: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* 聚焦到某个dom
|
|
58
|
+
* @param x 坐标x
|
|
59
|
+
* @param y 坐标y
|
|
60
|
+
* @param jumpDirection 跳转方向
|
|
61
|
+
*/
|
|
62
|
+
focusDom(x: number, y: number, jumpDirection?: string): void;
|
|
63
|
+
cleanFocusDom(x: number, y: number): void;
|
|
64
|
+
setActiveDom(x: number, y: number): void;
|
|
65
|
+
/**
|
|
66
|
+
* 根据行号和列号名称获取当前聚焦的dom位置
|
|
67
|
+
* @param rowNumber 行号
|
|
68
|
+
* @param colNumber 列号
|
|
69
|
+
*/
|
|
70
|
+
setActiveDomInFormLines(rowNumber: number, colNumber: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* 键盘点击事件
|
|
73
|
+
* @param event 键盘事件
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
77
|
+
/**
|
|
78
|
+
* 根据在初始dom下标和数据集 获取在collectDomList中的下标
|
|
79
|
+
* @param index 初始下标
|
|
80
|
+
* @param list 数据集
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
private getDomIndex;
|
|
84
|
+
testPage(): void;
|
|
38
85
|
readonly linesFormArray: any;
|
|
39
86
|
readonly LodashRound: any;
|
|
40
87
|
getValid(): boolean;
|
|
@@ -78,7 +125,7 @@ export declare class HdFormLinesComponent implements OnInit {
|
|
|
78
125
|
submitForm(): void;
|
|
79
126
|
resetForm(): void;
|
|
80
127
|
inputClean(formItem: any, line: any): void;
|
|
81
|
-
selectValue(id: string): void;
|
|
128
|
+
selectValue(id: string, rowNumber: number, colNumber: number): void;
|
|
82
129
|
private textWidthCache;
|
|
83
130
|
isTextOverflow(text: string, maxWidth: number): boolean;
|
|
84
131
|
judgeColEmpty(str: any): any;
|
|
@@ -37,16 +37,16 @@ export declare class ExplainOption {
|
|
|
37
37
|
color?: string;
|
|
38
38
|
}
|
|
39
39
|
export declare enum FormLineType {
|
|
40
|
-
Input =
|
|
41
|
-
Select =
|
|
42
|
-
Date =
|
|
43
|
-
DateRange =
|
|
44
|
-
TextArea =
|
|
45
|
-
InputNumber =
|
|
46
|
-
MultipleSelect =
|
|
47
|
-
ViewDom =
|
|
48
|
-
Switch =
|
|
49
|
-
Time =
|
|
40
|
+
Input = "Input",
|
|
41
|
+
Select = "Select",
|
|
42
|
+
Date = "Date",
|
|
43
|
+
DateRange = "DateRange",
|
|
44
|
+
TextArea = "TextArea",
|
|
45
|
+
InputNumber = "InputNumber",
|
|
46
|
+
MultipleSelect = "MultipleSelect",
|
|
47
|
+
ViewDom = "ViewDom",
|
|
48
|
+
Switch = "Switch",
|
|
49
|
+
Time = "Time"
|
|
50
50
|
}
|
|
51
51
|
export declare class HdFormLinesService {
|
|
52
52
|
constructor();
|