ngx-formly-zorro-antd 16.1.1 → 16.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -2
- package/card/card.type.d.ts +3 -2
- package/card-wrapper/card.wrapper.d.ts +4 -3
- package/cascader/cascader.type.d.ts +6 -5
- package/checkbox/checkbox.type.d.ts +4 -3
- package/common/interface.d.ts +19 -0
- package/common/public_api.d.ts +1 -0
- package/datepicker/datepicker.props.d.ts +5 -5
- package/datepicker/datepicker.type.d.ts +3 -2
- package/esm2022/button/button.type.mjs +1 -1
- package/esm2022/card/card.type.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/interface.mjs +2 -0
- package/esm2022/common/public_api.mjs +2 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +1 -1
- package/esm2022/space/space.type.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -1
- package/esm2022/tree-select/tree-select.type.mjs +31 -15
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +34 -15
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +3 -4
- package/form-field/form-field.wrapper.d.ts +3 -2
- package/grid/grid.type.d.ts +3 -2
- package/input/input.props.d.ts +3 -3
- package/input/input.type.d.ts +3 -2
- package/input-group/input-group.type.d.ts +4 -3
- package/input-number/input-number.props.d.ts +2 -2
- package/input-number/input-number.type.d.ts +3 -2
- package/package.json +35 -35
- package/radio/radio.type.d.ts +3 -2
- package/rate/rate.type.d.ts +4 -3
- package/select/select.props.d.ts +4 -4
- package/select/select.type.d.ts +3 -2
- package/slider/slider.type.d.ts +4 -3
- package/space/space.type.d.ts +3 -2
- package/switch/switch.type.d.ts +3 -2
- package/tabs/tabs.props.d.ts +9 -9
- package/tabs/tabs.wrapper.d.ts +4 -3
- package/textarea/textarea.type.d.ts +3 -2
- package/timepicker/timepicker.type.d.ts +4 -3
- package/transfer/transfer.type.d.ts +5 -4
- package/tree-select/tree-select.module.d.ts +4 -3
- package/tree-select/tree-select.type.d.ts +21 -4
- package/upload/upload.props.d.ts +2 -2
- package/upload/upload.type.d.ts +3 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "16.1.
|
3
|
+
"version": "16.1.2",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -32,23 +32,17 @@
|
|
32
32
|
"esm": "./esm2022/ngx-formly-zorro-antd.mjs",
|
33
33
|
"default": "./fesm2022/ngx-formly-zorro-antd.mjs"
|
34
34
|
},
|
35
|
-
"./button": {
|
36
|
-
"types": "./button/index.d.ts",
|
37
|
-
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
38
|
-
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
39
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
40
|
-
},
|
41
35
|
"./autocomplete": {
|
42
36
|
"types": "./autocomplete/index.d.ts",
|
43
37
|
"esm2022": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
44
38
|
"esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
45
39
|
"default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
|
46
40
|
},
|
47
|
-
"./
|
48
|
-
"types": "./
|
49
|
-
"esm2022": "./esm2022/
|
50
|
-
"esm": "./esm2022/
|
51
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
41
|
+
"./button": {
|
42
|
+
"types": "./button/index.d.ts",
|
43
|
+
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
44
|
+
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
45
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
52
46
|
},
|
53
47
|
"./card-wrapper": {
|
54
48
|
"types": "./card-wrapper/index.d.ts",
|
@@ -68,6 +62,12 @@
|
|
68
62
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
69
63
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
70
64
|
},
|
65
|
+
"./card": {
|
66
|
+
"types": "./card/index.d.ts",
|
67
|
+
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
68
|
+
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
69
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
70
|
+
},
|
71
71
|
"./common": {
|
72
72
|
"types": "./common/index.d.ts",
|
73
73
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
@@ -92,41 +92,35 @@
|
|
92
92
|
"esm": "./esm2022/form-field/ngx-formly-zorro-antd-form-field.mjs",
|
93
93
|
"default": "./fesm2022/ngx-formly-zorro-antd-form-field.mjs"
|
94
94
|
},
|
95
|
-
"./input": {
|
96
|
-
"types": "./input/index.d.ts",
|
97
|
-
"esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
98
|
-
"esm": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
99
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-input.mjs"
|
100
|
-
},
|
101
95
|
"./grid": {
|
102
96
|
"types": "./grid/index.d.ts",
|
103
97
|
"esm2022": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
|
104
98
|
"esm": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
|
105
99
|
"default": "./fesm2022/ngx-formly-zorro-antd-grid.mjs"
|
106
100
|
},
|
101
|
+
"./input": {
|
102
|
+
"types": "./input/index.d.ts",
|
103
|
+
"esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
104
|
+
"esm": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
105
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-input.mjs"
|
106
|
+
},
|
107
107
|
"./input-group": {
|
108
108
|
"types": "./input-group/index.d.ts",
|
109
109
|
"esm2022": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
110
110
|
"esm": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
111
111
|
"default": "./fesm2022/ngx-formly-zorro-antd-input-group.mjs"
|
112
112
|
},
|
113
|
-
"./radio": {
|
114
|
-
"types": "./radio/index.d.ts",
|
115
|
-
"esm2022": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
116
|
-
"esm": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
117
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-radio.mjs"
|
118
|
-
},
|
119
113
|
"./input-number": {
|
120
114
|
"types": "./input-number/index.d.ts",
|
121
115
|
"esm2022": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
|
122
116
|
"esm": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
|
123
117
|
"default": "./fesm2022/ngx-formly-zorro-antd-input-number.mjs"
|
124
118
|
},
|
125
|
-
"./
|
126
|
-
"types": "./
|
127
|
-
"esm2022": "./esm2022/
|
128
|
-
"esm": "./esm2022/
|
129
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
119
|
+
"./radio": {
|
120
|
+
"types": "./radio/index.d.ts",
|
121
|
+
"esm2022": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
122
|
+
"esm": "./esm2022/radio/ngx-formly-zorro-antd-radio.mjs",
|
123
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-radio.mjs"
|
130
124
|
},
|
131
125
|
"./rate": {
|
132
126
|
"types": "./rate/index.d.ts",
|
@@ -134,6 +128,12 @@
|
|
134
128
|
"esm": "./esm2022/rate/ngx-formly-zorro-antd-rate.mjs",
|
135
129
|
"default": "./fesm2022/ngx-formly-zorro-antd-rate.mjs"
|
136
130
|
},
|
131
|
+
"./select": {
|
132
|
+
"types": "./select/index.d.ts",
|
133
|
+
"esm2022": "./esm2022/select/ngx-formly-zorro-antd-select.mjs",
|
134
|
+
"esm": "./esm2022/select/ngx-formly-zorro-antd-select.mjs",
|
135
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-select.mjs"
|
136
|
+
},
|
137
137
|
"./slider": {
|
138
138
|
"types": "./slider/index.d.ts",
|
139
139
|
"esm2022": "./esm2022/slider/ngx-formly-zorro-antd-slider.mjs",
|
@@ -146,18 +146,18 @@
|
|
146
146
|
"esm": "./esm2022/space/ngx-formly-zorro-antd-space.mjs",
|
147
147
|
"default": "./fesm2022/ngx-formly-zorro-antd-space.mjs"
|
148
148
|
},
|
149
|
-
"./tabs": {
|
150
|
-
"types": "./tabs/index.d.ts",
|
151
|
-
"esm2022": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
152
|
-
"esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
153
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
|
154
|
-
},
|
155
149
|
"./switch": {
|
156
150
|
"types": "./switch/index.d.ts",
|
157
151
|
"esm2022": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
|
158
152
|
"esm": "./esm2022/switch/ngx-formly-zorro-antd-switch.mjs",
|
159
153
|
"default": "./fesm2022/ngx-formly-zorro-antd-switch.mjs"
|
160
154
|
},
|
155
|
+
"./tabs": {
|
156
|
+
"types": "./tabs/index.d.ts",
|
157
|
+
"esm2022": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
158
|
+
"esm": "./esm2022/tabs/ngx-formly-zorro-antd-tabs.mjs",
|
159
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-tabs.mjs"
|
160
|
+
},
|
161
161
|
"./textarea": {
|
162
162
|
"types": "./textarea/index.d.ts",
|
163
163
|
"esm2022": "./esm2022/textarea/ngx-formly-zorro-antd-textarea.mjs",
|
package/radio/radio.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
5
6
|
import type { NzSizeLDSType } from 'ng-zorro-antd/core/types';
|
@@ -22,7 +23,7 @@ interface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
|
22
23
|
*/
|
23
24
|
buttonStyle?: NzRadioButtonStyle;
|
24
25
|
}
|
25
|
-
export interface FormlyRadioFieldConfig extends
|
26
|
+
export interface FormlyRadioFieldConfig extends NzFormlyFieldConfig<RadioProps> {
|
26
27
|
type: 'radio' | Type<FormlyFieldRadio>;
|
27
28
|
}
|
28
29
|
export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
|
package/rate/rate.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TemplateRef, Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
interface RateProps extends FormlyFieldProps {
|
@@ -38,9 +39,9 @@ interface RateProps extends FormlyFieldProps {
|
|
38
39
|
/**
|
39
40
|
* 鼠标经过时数值变化的回调
|
40
41
|
*/
|
41
|
-
hoverChange?:
|
42
|
+
hoverChange?: FormlyAttributeEvent<number | undefined>;
|
42
43
|
}
|
43
|
-
export interface FormlyRateFieldConfig extends
|
44
|
+
export interface FormlyRateFieldConfig extends NzFormlyFieldConfig<RateProps> {
|
44
45
|
type: 'rate' | Type<FormlyFieldRate>;
|
45
46
|
}
|
46
47
|
export declare class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {
|
package/select/select.props.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyFieldConfig } from '@ngx-formly/core';
|
3
2
|
import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
3
|
+
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
4
|
import { NzOptionComponent } from 'ng-zorro-antd/select';
|
5
5
|
import type { NzSelectSizeType, NzSelectModeType, NzSelectItemInterface, NzSelectPlacementType } from 'ng-zorro-antd/select';
|
6
6
|
import type { NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
|
@@ -159,13 +159,13 @@ export interface SelectProps extends FormlyFieldSelectProps {
|
|
159
159
|
/**
|
160
160
|
* 下拉菜单打开状态变化回调
|
161
161
|
*/
|
162
|
-
openChange?:
|
162
|
+
openChange?: FormlyAttributeEvent<boolean>;
|
163
163
|
/**
|
164
164
|
* 下拉列表滚动到底部的回调
|
165
165
|
*/
|
166
|
-
scrollToBottom?:
|
166
|
+
scrollToBottom?: FormlyAttributeEvent;
|
167
167
|
/**
|
168
168
|
* 文本框值变化时回调
|
169
169
|
*/
|
170
|
-
onSearch?:
|
170
|
+
onSearch?: FormlyAttributeEvent<string>;
|
171
171
|
}
|
package/select/select.type.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { NzSelectComponent } from 'ng-zorro-antd/select';
|
4
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
6
|
import type { SelectProps } from './select.props';
|
6
7
|
import * as i0 from "@angular/core";
|
7
|
-
export interface FormlySelectFieldConfig extends
|
8
|
+
export interface FormlySelectFieldConfig extends NzFormlyFieldConfig<SelectProps> {
|
8
9
|
type: 'select' | 'enum' | Type<FormlyFieldSelect>;
|
9
10
|
}
|
10
11
|
export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {
|
package/slider/slider.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
|
5
6
|
import * as i0 from "@angular/core";
|
@@ -51,9 +52,9 @@ interface SlideProps extends FormlyFieldProps {
|
|
51
52
|
/**
|
52
53
|
* 与 onmouseup 触发时机一致,把当前值作为参数传入。
|
53
54
|
*/
|
54
|
-
afterChange?:
|
55
|
+
afterChange?: FormlyAttributeEvent<number[] | number>;
|
55
56
|
}
|
56
|
-
export interface FormlySlideFieldConfig extends
|
57
|
+
export interface FormlySlideFieldConfig extends NzFormlyFieldConfig<SlideProps> {
|
57
58
|
type: 'slider' | Type<FormlyFieldSlider>;
|
58
59
|
}
|
59
60
|
export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
|
package/space/space.type.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
3
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
4
|
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
5
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
5
6
|
import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
interface SpaceProps extends FormlyFieldProps {
|
@@ -30,7 +31,7 @@ interface SpaceProps extends FormlyFieldProps {
|
|
30
31
|
}> | null;
|
31
32
|
splitName?: string;
|
32
33
|
}
|
33
|
-
export interface FormlySpaceFieldConfig extends
|
34
|
+
export interface FormlySpaceFieldConfig extends NzFormlyFieldConfig<SpaceProps> {
|
34
35
|
type: 'space' | Type<FormlyFieldSpace>;
|
35
36
|
}
|
36
37
|
export declare class FormlyFieldSpace extends FieldType<FieldTypeConfig<SpaceProps>> {
|
package/switch/switch.type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
|
5
6
|
import * as i0 from "@angular/core";
|
@@ -27,7 +28,7 @@ interface SwitchProps extends FormlyFieldProps {
|
|
27
28
|
*/
|
28
29
|
control?: boolean;
|
29
30
|
}
|
30
|
-
export interface FormlySwitchFieldConfig extends
|
31
|
+
export interface FormlySwitchFieldConfig extends NzFormlyFieldConfig<SwitchProps> {
|
31
32
|
type: 'switch' | Type<FormlyFieldSwitch>;
|
32
33
|
}
|
33
34
|
export declare class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {
|
package/tabs/tabs.props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type {
|
2
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
3
|
import { NzTabComponent } from 'ng-zorro-antd/tabs';
|
4
4
|
import type { NzSizeLDSType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
5
|
import type { NzTabsCanDeactivateFn, TabTemplateContext, NzTabType, NzTabPosition, NzAnimatedInterface } from 'ng-zorro-antd/tabs';
|
@@ -69,11 +69,11 @@ export interface TabsProps {
|
|
69
69
|
/**
|
70
70
|
* 当前激活 tab 面板的 序列号变更回调函数
|
71
71
|
*/
|
72
|
-
selectedIndexChange?:
|
72
|
+
selectedIndexChange?: FormlyAttributeEvent<number>;
|
73
73
|
/**
|
74
74
|
* 当前激活 tab 面板变更回调函数
|
75
75
|
*/
|
76
|
-
selectChange?: (field:
|
76
|
+
selectChange?: (field: NzFormlyFieldConfig, index?: number, tab?: NzTabComponent) => void;
|
77
77
|
/**
|
78
78
|
* 隐藏添加按钮
|
79
79
|
* @default false
|
@@ -86,11 +86,11 @@ export interface TabsProps {
|
|
86
86
|
/**
|
87
87
|
* 点击添加按钮时的事件
|
88
88
|
*/
|
89
|
-
onAdd?:
|
89
|
+
onAdd?: FormlyAttributeEvent;
|
90
90
|
/**
|
91
91
|
* 点击删除按钮时的事件
|
92
92
|
*/
|
93
|
-
onClose?:
|
93
|
+
onClose?: FormlyAttributeEvent<number>;
|
94
94
|
tab?: {
|
95
95
|
/**
|
96
96
|
* 选项卡头显示文字
|
@@ -109,18 +109,18 @@ export interface TabsProps {
|
|
109
109
|
/**
|
110
110
|
* 单击 title 的回调函数
|
111
111
|
*/
|
112
|
-
click?:
|
112
|
+
click?: FormlyAttributeEvent;
|
113
113
|
/**
|
114
114
|
* 右键 title 的回调函数
|
115
115
|
*/
|
116
|
-
contextmenu?:
|
116
|
+
contextmenu?: FormlyAttributeEvent<MouseEvent>;
|
117
117
|
/**
|
118
118
|
* tab 被选中的回调函数
|
119
119
|
*/
|
120
|
-
select?:
|
120
|
+
select?: FormlyAttributeEvent;
|
121
121
|
/**
|
122
122
|
* tab 被取消选中的回调函数
|
123
123
|
*/
|
124
|
-
deselect?:
|
124
|
+
deselect?: FormlyAttributeEvent;
|
125
125
|
};
|
126
126
|
}
|
package/tabs/tabs.wrapper.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldWrapper
|
2
|
+
import { FieldWrapper } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { TabsProps } from './tabs.props';
|
4
5
|
import * as i0 from "@angular/core";
|
5
|
-
export interface FormlyTabsWrapperConfig extends
|
6
|
+
export interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {
|
6
7
|
wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];
|
7
8
|
}
|
8
|
-
export declare class FormlyWrapperTabs extends FieldWrapper<
|
9
|
+
export declare class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {
|
9
10
|
defaultOptions: {
|
10
11
|
props: {
|
11
12
|
animated: boolean;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
interface TextareaProps extends FormlyFieldProps {
|
@@ -22,7 +23,7 @@ interface TextareaProps extends FormlyFieldProps {
|
|
22
23
|
*/
|
23
24
|
maxCharacterCount?: number;
|
24
25
|
}
|
25
|
-
export interface FormlyTextareaFieldConfig extends
|
26
|
+
export interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {
|
26
27
|
type: 'textarea' | Type<FormlyFieldTextarea>;
|
27
28
|
}
|
28
29
|
export declare class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { TemplateRef, Type } from '@angular/core';
|
2
2
|
import { DatePipe } from '@angular/common';
|
3
|
-
import { FieldType,
|
3
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
4
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
5
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
interface TimepickerProps extends FormlyFieldProps {
|
@@ -113,9 +114,9 @@ interface TimepickerProps extends FormlyFieldProps {
|
|
113
114
|
/**
|
114
115
|
* 面板打开/关闭时的回调
|
115
116
|
*/
|
116
|
-
openChange?:
|
117
|
+
openChange?: FormlyAttributeEvent<boolean>;
|
117
118
|
}
|
118
|
-
export interface FormlyTimepickerFieldConfig extends
|
119
|
+
export interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {
|
119
120
|
type: 'timepicker' | Type<FormlyFieldTimepicker>;
|
120
121
|
}
|
121
122
|
export declare class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { TemplateRef, Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
5
|
import { Observable } from 'rxjs';
|
5
6
|
import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
@@ -86,18 +87,18 @@ interface TransferProps extends FormlyFieldProps {
|
|
86
87
|
/**
|
87
88
|
* 搜索框内容时改变时的回调函数
|
88
89
|
*/
|
89
|
-
searchChange?:
|
90
|
+
searchChange?: FormlyAttributeEvent<TransferSearchChange>;
|
90
91
|
/**
|
91
92
|
* 选中项发生改变时的回调函数
|
92
93
|
*/
|
93
|
-
selectChange?:
|
94
|
+
selectChange?: FormlyAttributeEvent<TransferSelectChange>;
|
94
95
|
/**
|
95
96
|
* 返回结果格式映射
|
96
97
|
* @returns 默认返回 TransferItem[] 格式
|
97
98
|
*/
|
98
99
|
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
99
100
|
}
|
100
|
-
export interface FormlyTransferFieldConfig extends
|
101
|
+
export interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {
|
101
102
|
type: 'transfer' | Type<FormlyFieldTransfer>;
|
102
103
|
}
|
103
104
|
export declare class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {
|
@@ -3,10 +3,11 @@ import * as i1 from "./tree-select.type";
|
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "@angular/forms";
|
5
5
|
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "
|
7
|
-
import * as i6 from "
|
6
|
+
import * as i5 from "ngx-formly-zorro-antd/common";
|
7
|
+
import * as i6 from "ng-zorro-antd/tree-select";
|
8
|
+
import * as i7 from "@ngx-formly/core";
|
8
9
|
export declare class FormlyNzTreeSelectModule {
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTreeSelectModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.FormlyCommonModule, typeof i6.NzTreeSelectModule, typeof i7.FormlyModule], never>;
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTreeSelectModule>;
|
12
13
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
4
6
|
import type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
|
5
7
|
import type { NzPlacementType } from 'ng-zorro-antd/tree-select';
|
6
8
|
import type { NgStyleInterface } from 'ng-zorro-antd/core/types';
|
@@ -107,12 +109,22 @@ interface TreeSelectProps extends FormlyFieldProps {
|
|
107
109
|
maxTagPlaceholder?: TemplateRef<{
|
108
110
|
$implicit: NzTreeNode[];
|
109
111
|
}>;
|
112
|
+
maxTagPlaceholderName?: string;
|
110
113
|
/**
|
111
114
|
* 自定义节点
|
112
115
|
*/
|
113
116
|
treeTemplate?: TemplateRef<{
|
114
117
|
$implicit: NzTreeNode;
|
115
118
|
}>;
|
119
|
+
treeTemplateName?: string;
|
120
|
+
/**
|
121
|
+
* 自定义展开图标
|
122
|
+
*/
|
123
|
+
expandedIcon?: TemplateRef<{
|
124
|
+
$implicit: NzTreeNode;
|
125
|
+
origin: NzTreeNodeOptions;
|
126
|
+
}>;
|
127
|
+
expandedIconName?: string;
|
116
128
|
/**
|
117
129
|
* 虚拟滚动的总高度
|
118
130
|
*/
|
@@ -140,12 +152,13 @@ interface TreeSelectProps extends FormlyFieldProps {
|
|
140
152
|
/**
|
141
153
|
* 点击展开树节点图标调用
|
142
154
|
*/
|
143
|
-
expandChange?:
|
155
|
+
expandChange?: FormlyAttributeEvent<NzFormatEmitEvent>;
|
144
156
|
}
|
145
|
-
export interface FormlyTreeSelectFieldConfig extends
|
157
|
+
export interface FormlyTreeSelectFieldConfig extends NzFormlyFieldConfig<TreeSelectProps> {
|
146
158
|
type: 'tree-select' | Type<FormlyFieldTreeSelect>;
|
147
159
|
}
|
148
160
|
export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
|
161
|
+
fieldTemplates: FormlyBoxTemplates;
|
149
162
|
defaultOptions: {
|
150
163
|
props: {
|
151
164
|
dropdownMatchSelectWidth: boolean;
|
@@ -158,7 +171,11 @@ export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
|
|
158
171
|
virtualMinBufferPx: number;
|
159
172
|
};
|
160
173
|
};
|
161
|
-
|
174
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
175
|
+
get nzExpandedIcon(): TemplateRef<any> | undefined;
|
176
|
+
get nzMaxTagPlaceholder(): TemplateRef<any> | undefined;
|
177
|
+
get nzTreeTemplate(): TemplateRef<any> | undefined;
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTreeSelect, [{ optional: true; }]>;
|
162
179
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTreeSelect, "formly-field-treeselect", never, {}, {}, never, never, false, never>;
|
163
180
|
}
|
164
181
|
export {};
|
package/upload/upload.props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
-
import type {
|
2
|
+
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
3
3
|
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
5
5
|
import type { ThemeType } from '@ant-design/icons-angular';
|
@@ -141,7 +141,7 @@ export interface UploadProps extends FormlyFieldProps {
|
|
141
141
|
/**
|
142
142
|
* 文件列表改变事件
|
143
143
|
*/
|
144
|
-
fileListChange?:
|
144
|
+
fileListChange?: FormlyAttributeEvent<NzUploadFile[]>;
|
145
145
|
/**
|
146
146
|
* 返回结果格式映射
|
147
147
|
* @returns 默认返回 NzUploadFile[] 格式
|
package/upload/upload.type.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
3
4
|
import { UploadNzComponent } from './upload.component';
|
4
5
|
import type { UploadProps } from './upload.props';
|
5
6
|
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
6
7
|
import * as i0 from "@angular/core";
|
7
|
-
export interface FormlyUploadFieldConfig extends
|
8
|
+
export interface FormlyUploadFieldConfig extends NzFormlyFieldConfig<UploadProps> {
|
8
9
|
type: 'upload' | Type<FormlyFieldUpload>;
|
9
10
|
}
|
10
11
|
export declare class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {
|