ngx-formly-zorro-antd 17.0.4 → 17.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/card-wrapper/card-wrapper.props.d.ts +4 -0
- package/esm2022/card/card.type.mjs +8 -5
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +7 -4
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +53 -53
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +33 -59
- package/esm2022/space/space.type.mjs +3 -3
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -4
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +8 -5
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +52 -52
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +2 -2
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +32 -58
- 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 +17 -17
- 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.5",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -37,23 +37,23 @@
|
|
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",
|
49
43
|
"esm": "./esm2022/button/ngx-formly-zorro-antd-button.mjs",
|
50
44
|
"default": "./fesm2022/ngx-formly-zorro-antd-button.mjs"
|
51
45
|
},
|
52
|
-
"./
|
53
|
-
"types": "./
|
54
|
-
"esm2022": "./esm2022/
|
55
|
-
"esm": "./esm2022/
|
56
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-
|
46
|
+
"./button-group": {
|
47
|
+
"types": "./button-group/index.d.ts",
|
48
|
+
"esm2022": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
49
|
+
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
50
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
51
|
+
},
|
52
|
+
"./card-wrapper": {
|
53
|
+
"types": "./card-wrapper/index.d.ts",
|
54
|
+
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
55
|
+
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
56
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
57
57
|
},
|
58
58
|
"./cascader": {
|
59
59
|
"types": "./cascader/index.d.ts",
|
@@ -67,11 +67,11 @@
|
|
67
67
|
"esm": "./esm2022/checkbox/ngx-formly-zorro-antd-checkbox.mjs",
|
68
68
|
"default": "./fesm2022/ngx-formly-zorro-antd-checkbox.mjs"
|
69
69
|
},
|
70
|
-
"./card
|
71
|
-
"types": "./card
|
72
|
-
"esm2022": "./esm2022/card
|
73
|
-
"esm": "./esm2022/card
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card
|
70
|
+
"./card": {
|
71
|
+
"types": "./card/index.d.ts",
|
72
|
+
"esm2022": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
73
|
+
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
74
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
75
75
|
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
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
|
/**
|