ngx-formly-zorro-antd 17.0.4 → 17.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +4 -0
- package/card-wrapper/card-wrapper.props.d.ts +4 -0
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.type.mjs +8 -8
- package/esm2022/button-group/button-group.module.mjs +4 -4
- package/esm2022/button-group/button-group.type.mjs +3 -3
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/card.type.mjs +11 -8
- package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +10 -7
- package/esm2022/cascader/cascader.module.mjs +4 -4
- package/esm2022/cascader/cascader.type.mjs +3 -3
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/common.module.mjs +4 -4
- package/esm2022/common/formly-box-templates.directive.mjs +3 -3
- package/esm2022/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/datepicker/datepicker.type.mjs +3 -3
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +56 -56
- package/esm2022/grid/grid.module.mjs +4 -4
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +28 -28
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.type.mjs +3 -3
- package/esm2022/input-group/input-group.module.mjs +4 -4
- package/esm2022/input-group/input-group.type.mjs +3 -3
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.type.mjs +3 -3
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +36 -62
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/radio/radio.type.mjs +3 -3
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.type.mjs +3 -3
- package/esm2022/ref-template/ref-template.module.mjs +4 -4
- package/esm2022/ref-template/ref-template.type.mjs +3 -3
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.type.mjs +3 -3
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.type.mjs +3 -3
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/space/space.type.mjs +6 -6
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.type.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.wrapper.mjs +3 -3
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.type.mjs +3 -3
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.type.mjs +3 -3
- package/esm2022/transfer/transfer.component.mjs +3 -3
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.type.mjs +3 -3
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.type.mjs +3 -3
- package/esm2022/upload/upload.component.mjs +3 -3
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.type.mjs +3 -3
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +11 -11
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +14 -11
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +15 -12
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +59 -59
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +31 -31
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +9 -9
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd.mjs +35 -61
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +50 -52
- package/grid/grid.props.d.ts +14 -14
- package/lib/ui-ng-zorro-antd.module.d.ts +1 -1
- package/package.json +13 -13
- package/space/space.type.d.ts +2 -1
@@ -2,6 +2,7 @@ import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
|
2
2
|
import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
3
3
|
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
4
4
|
import type { ControlOptions } from 'ngx-formly-zorro-antd/common';
|
5
|
+
type strNumNull = string | number | null;
|
5
6
|
/** nz表单配置项 */
|
6
7
|
export interface NzFormWrapperProps extends ControlOptions {
|
7
8
|
/**
|
@@ -63,56 +64,53 @@ export interface NzFormWrapperProps extends ControlOptions {
|
|
63
64
|
*/
|
64
65
|
extra?: NzTSType;
|
65
66
|
extraName?: string;
|
66
|
-
/**
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
controlXl?: string | number | EmbeddedProperty | null;
|
115
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
116
|
-
controlXXl?: string | number | EmbeddedProperty | null;
|
117
|
-
};
|
67
|
+
/** flex 布局属性 */
|
68
|
+
labelFlex?: strNumNull;
|
69
|
+
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
70
|
+
labelOffset?: strNumNull;
|
71
|
+
/** 栅格顺序 */
|
72
|
+
labelOrder?: strNumNull;
|
73
|
+
/** 栅格向左移动格数 */
|
74
|
+
labelPull?: strNumNull;
|
75
|
+
/** 栅格向右移动格数 */
|
76
|
+
labelPush?: strNumNull;
|
77
|
+
/** 栅格占位格数,为 0 时相当于 display: none */
|
78
|
+
labelSpan?: strNumNull;
|
79
|
+
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
80
|
+
labelXs?: strNumNull | EmbeddedProperty;
|
81
|
+
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
82
|
+
labelSm?: strNumNull | EmbeddedProperty;
|
83
|
+
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
84
|
+
labelMd?: strNumNull | EmbeddedProperty;
|
85
|
+
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
86
|
+
labelLg?: strNumNull | EmbeddedProperty;
|
87
|
+
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
88
|
+
labelXl?: strNumNull | EmbeddedProperty;
|
89
|
+
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
90
|
+
labelXXl?: strNumNull | EmbeddedProperty;
|
91
|
+
/** flex 布局属性 */
|
92
|
+
controlFlex?: strNumNull;
|
93
|
+
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
94
|
+
controlOffset?: strNumNull;
|
95
|
+
/** 栅格顺序 */
|
96
|
+
controlOrder?: strNumNull;
|
97
|
+
/** 栅格向左移动格数 */
|
98
|
+
controlPull?: strNumNull;
|
99
|
+
/** 栅格向右移动格数 */
|
100
|
+
controlPush?: strNumNull;
|
101
|
+
/** 栅格占位格数,为 0 时相当于 display: none */
|
102
|
+
controlSpan?: strNumNull;
|
103
|
+
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
104
|
+
controlXs?: strNumNull | EmbeddedProperty;
|
105
|
+
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
106
|
+
controlSm?: strNumNull | EmbeddedProperty;
|
107
|
+
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
108
|
+
controlMd?: strNumNull | EmbeddedProperty;
|
109
|
+
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
110
|
+
controlLg?: strNumNull | EmbeddedProperty;
|
111
|
+
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
112
|
+
controlXl?: strNumNull | EmbeddedProperty;
|
113
|
+
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
114
|
+
controlXXl?: strNumNull | EmbeddedProperty;
|
118
115
|
}
|
116
|
+
export {};
|
package/grid/grid.props.d.ts
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
|
2
2
|
import type { IndexableObject } from 'ng-zorro-antd/core/types';
|
3
3
|
import type { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
|
4
|
-
type
|
4
|
+
type strNumNull = string | number | null;
|
5
5
|
export interface GridColProps {
|
6
6
|
/** flex 布局属性 */
|
7
|
-
flex?:
|
7
|
+
flex?: strNumNull;
|
8
8
|
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
9
|
-
offset?:
|
9
|
+
offset?: strNumNull;
|
10
10
|
/** 栅格顺序 */
|
11
|
-
order?:
|
11
|
+
order?: strNumNull;
|
12
12
|
/** 栅格向左移动格数 */
|
13
|
-
pull?:
|
13
|
+
pull?: strNumNull;
|
14
14
|
/** 栅格向右移动格数 */
|
15
|
-
push?:
|
15
|
+
push?: strNumNull;
|
16
16
|
/** 栅格占位格数,为 0 时相当于 display: none */
|
17
|
-
span?:
|
17
|
+
span?: strNumNull;
|
18
18
|
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
19
|
-
xs?:
|
19
|
+
xs?: strNumNull | EmbeddedProperty;
|
20
20
|
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
21
|
-
sm?:
|
21
|
+
sm?: strNumNull | EmbeddedProperty;
|
22
22
|
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
23
|
-
md?:
|
23
|
+
md?: strNumNull | EmbeddedProperty;
|
24
24
|
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
25
|
-
lg?:
|
25
|
+
lg?: strNumNull | EmbeddedProperty;
|
26
26
|
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
27
|
-
xl?:
|
27
|
+
xl?: strNumNull | EmbeddedProperty;
|
28
28
|
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
29
|
-
xxl?:
|
29
|
+
xxl?: strNumNull | EmbeddedProperty;
|
30
30
|
}
|
31
31
|
export interface GridProps extends CoreFormlyFieldProps, GridColProps {
|
32
32
|
/**
|
@@ -37,7 +37,7 @@ export interface GridProps extends CoreFormlyFieldProps, GridColProps {
|
|
37
37
|
* 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。
|
38
38
|
* 或者使用数组形式同时设置 [水平间距, 垂直间距]。
|
39
39
|
*/
|
40
|
-
gutter?:
|
40
|
+
gutter?: strNumNull | IndexableObject | [number, number] | [IndexableObject, IndexableObject];
|
41
41
|
/**
|
42
42
|
* 水平排列方式
|
43
43
|
*/
|
@@ -27,6 +27,6 @@ import * as i25 from "ngx-formly-zorro-antd/grid";
|
|
27
27
|
import * as i26 from "ngx-formly-zorro-antd/space";
|
28
28
|
export declare class FormlyNgAntdModule {
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyCommonModule, typeof i2.FormlyRefTemplateModule, typeof i3.FormlyNzFormFieldModule, typeof i4.FormlyNzInputModule, typeof i5.FormlyNzInputNumberModule, typeof i6.FormlyNzInputGroupModule, typeof i7.FormlyNzTextareaModule, typeof i8.FormlyNzRadioModule, typeof i9.FormlyNzCheckboxModule, typeof i10.FormlyNzSelectModule, typeof i11.FormlyNzSwitchModule, typeof i12.FormlyNzCascaderModule, typeof i13.FormlyNzDatepickerModule, typeof i14.FormlyNzRateModule, typeof i15.FormlyNzSliderModule, typeof i16.FormlyNzTimepickerModule, typeof i17.FormlyNzTransferModule, typeof i18.FormlyNzTreeSelectModule, typeof i19.FormlyNzUploadModule, typeof i20.FormlyNzTabsModule, typeof i21.FormlyNzCardModule, typeof i22.FormlyNzCardWrapperModule, typeof i23.FormlyNzButtonModule, typeof i24.FormlyNzButtonGroupModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule], [typeof i1.FormlyCommonModule
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNgAntdModule, never, [typeof i1.FormlyCommonModule, typeof i2.FormlyRefTemplateModule, typeof i3.FormlyNzFormFieldModule, typeof i4.FormlyNzInputModule, typeof i5.FormlyNzInputNumberModule, typeof i6.FormlyNzInputGroupModule, typeof i7.FormlyNzTextareaModule, typeof i8.FormlyNzRadioModule, typeof i9.FormlyNzCheckboxModule, typeof i10.FormlyNzSelectModule, typeof i11.FormlyNzSwitchModule, typeof i12.FormlyNzCascaderModule, typeof i13.FormlyNzDatepickerModule, typeof i14.FormlyNzRateModule, typeof i15.FormlyNzSliderModule, typeof i16.FormlyNzTimepickerModule, typeof i17.FormlyNzTransferModule, typeof i18.FormlyNzTreeSelectModule, typeof i19.FormlyNzUploadModule, typeof i20.FormlyNzTabsModule, typeof i21.FormlyNzCardModule, typeof i22.FormlyNzCardWrapperModule, typeof i23.FormlyNzButtonModule, typeof i24.FormlyNzButtonGroupModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule], [typeof i1.FormlyCommonModule]>;
|
31
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
|
32
32
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.6",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -37,12 +37,6 @@
|
|
37
37
|
"esm": "./esm2022/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs",
|
38
38
|
"default": "./fesm2022/ngx-formly-zorro-antd-autocomplete.mjs"
|
39
39
|
},
|
40
|
-
"./button-group": {
|
41
|
-
"types": "./button-group/index.d.ts",
|
42
|
-
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
43
|
-
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
44
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
45
|
-
},
|
46
40
|
"./button": {
|
47
41
|
"types": "./button/index.d.ts",
|
48
42
|
"esm2022": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
@@ -55,6 +49,18 @@
|
|
55
49
|
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
56
50
|
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
57
51
|
},
|
52
|
+
"./button-group": {
|
53
|
+
"types": "./button-group/index.d.ts",
|
54
|
+
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
55
|
+
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
56
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
57
|
+
},
|
58
|
+
"./card-wrapper": {
|
59
|
+
"types": "./card-wrapper/index.d.ts",
|
60
|
+
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
61
|
+
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
62
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
63
|
+
},
|
58
64
|
"./cascader": {
|
59
65
|
"types": "./cascader/index.d.ts",
|
60
66
|
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
@@ -67,12 +73,6 @@
|
|
67
73
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
68
74
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
69
75
|
},
|
70
|
-
"./card-wrapper": {
|
71
|
-
"types": "./card-wrapper/index.d.ts",
|
72
|
-
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
73
|
-
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
75
|
-
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
78
78
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
package/space/space.type.d.ts
CHANGED
@@ -6,13 +6,14 @@ import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
|
6
6
|
import type { NzSpaceDirection, NzSpaceSize, NzSpaceAlign } from 'ng-zorro-antd/space';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
interface SpaceProps extends FormlyFieldProps {
|
9
|
-
type?: 'space';
|
10
9
|
/**
|
11
10
|
* 间距大小
|
11
|
+
* @default small
|
12
12
|
*/
|
13
13
|
size?: NzSpaceSize;
|
14
14
|
/**
|
15
15
|
* 间距方向
|
16
|
+
* @default horizontal
|
16
17
|
*/
|
17
18
|
direction?: NzSpaceDirection;
|
18
19
|
/**
|