ngx-formly-zorro-antd 19.3.4 → 20.0.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/autocomplete/index.d.ts +39 -5
- package/button/index.d.ts +108 -3
- package/card/index.d.ts +55 -3
- package/card-wrapper/index.d.ts +95 -3
- package/cascader/index.d.ts +199 -3
- package/checkbox/index.d.ts +60 -3
- package/common/index.d.ts +115 -3
- package/datepicker/index.d.ts +211 -3
- package/extension/index.d.ts +25 -3
- package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +19 -22
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +15 -18
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +16 -19
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +20 -20
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +10 -9
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +13 -8
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +18 -21
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs +0 -5
- package/fesm2022/ngx-formly-zorro-antd-helpers.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +8 -10
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +9 -10
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-otp.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +40 -43
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +16 -19
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +12 -8
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space-compact.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +15 -18
- 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-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +18 -15
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +11 -8
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +19 -19
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-types.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +20 -23
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -9
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/index.d.ts +66 -3
- package/form-field/index.d.ts +217 -3
- package/grid/index.d.ts +84 -3
- package/helpers/index.d.ts +142 -5
- package/index.d.ts +41 -1
- package/input/index.d.ts +93 -3
- package/input-group/index.d.ts +96 -3
- package/input-number/index.d.ts +124 -3
- package/input-otp/index.d.ts +70 -3
- package/package.json +18 -22
- package/radio/index.d.ts +65 -3
- package/rate/index.d.ts +80 -3
- package/ref-template/index.d.ts +95 -3
- package/select/index.d.ts +233 -3
- package/slider/index.d.ts +97 -3
- package/space/index.d.ts +67 -3
- package/space-compact/index.d.ts +54 -3
- package/switch/index.d.ts +63 -3
- package/tabs/index.d.ts +183 -3
- package/text-value/index.d.ts +54 -3
- package/textarea/index.d.ts +64 -3
- package/timepicker/index.d.ts +162 -3
- package/transfer/index.d.ts +162 -3
- package/tree-select/index.d.ts +204 -3
- package/types/index.d.ts +26 -5
- package/upload/index.d.ts +264 -3
- package/autocomplete/autocomplete.props.d.ts +0 -36
- package/autocomplete/public_api.d.ts +0 -1
- package/button/button.config.d.ts +0 -2
- package/button/button.module.d.ts +0 -12
- package/button/button.type.d.ts +0 -93
- package/button/public_api.d.ts +0 -4
- package/button-group/button-group.config.d.ts +0 -2
- package/button-group/button-group.module.d.ts +0 -11
- package/button-group/button-group.type.d.ts +0 -41
- package/button-group/index.d.ts +0 -5
- package/button-group/public_api.d.ts +0 -4
- package/card/card.config.d.ts +0 -2
- package/card/card.module.d.ts +0 -11
- package/card/card.type.d.ts +0 -42
- package/card/public_api.d.ts +0 -4
- package/card-wrapper/card-wrapper.config.d.ts +0 -2
- package/card-wrapper/card-wrapper.module.d.ts +0 -10
- package/card-wrapper/card-wrapper.props.d.ts +0 -58
- package/card-wrapper/card.wrapper.d.ts +0 -27
- package/card-wrapper/public_api.d.ts +0 -5
- package/cascader/cascader.config.d.ts +0 -2
- package/cascader/cascader.module.d.ts +0 -12
- package/cascader/cascader.type.d.ts +0 -182
- package/cascader/public_api.d.ts +0 -4
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -12
- package/checkbox/checkbox.type.d.ts +0 -41
- package/checkbox/public_api.d.ts +0 -4
- package/common/common.module.d.ts +0 -9
- package/common/formly-box-templates.directive.d.ts +0 -49
- package/common/formly-utils.d.ts +0 -31
- package/common/interface.d.ts +0 -27
- package/common/public_api.d.ts +0 -4
- package/datepicker/datepicker.config.d.ts +0 -2
- package/datepicker/datepicker.module.d.ts +0 -12
- package/datepicker/datepicker.props.d.ts +0 -158
- package/datepicker/datepicker.type.d.ts +0 -36
- package/datepicker/public_api.d.ts +0 -5
- package/extension/public_api.d.ts +0 -1
- package/extension/value-changes-extension.d.ts +0 -23
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +0 -158
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +0 -1
- package/flex/flex.config.d.ts +0 -2
- package/flex/flex.module.d.ts +0 -10
- package/flex/flex.type.d.ts +0 -53
- package/flex/public_api.d.ts +0 -4
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -12
- package/form-field/form-field.props.d.ts +0 -180
- package/form-field/form-field.wrapper.d.ts +0 -25
- package/form-field/public_api.d.ts +0 -4
- package/grid/grid.config.d.ts +0 -2
- package/grid/grid.module.d.ts +0 -10
- package/grid/grid.props.d.ts +0 -59
- package/grid/grid.type.d.ts +0 -15
- package/grid/public_api.d.ts +0 -5
- package/helpers/common.d.ts +0 -7
- package/helpers/formly.d.ts +0 -87
- package/helpers/public_api.d.ts +0 -53
- package/input/input.config.d.ts +0 -2
- package/input/input.module.d.ts +0 -14
- package/input/input.props.d.ts +0 -41
- package/input/input.type.d.ts +0 -35
- package/input/public_api.d.ts +0 -5
- package/input-group/input-group.config.d.ts +0 -2
- package/input-group/input-group.module.d.ts +0 -11
- package/input-group/input-group.props.d.ts +0 -65
- package/input-group/input-group.type.d.ts +0 -24
- package/input-group/public_api.d.ts +0 -5
- package/input-number/input-number.config.d.ts +0 -2
- package/input-number/input-number.module.d.ts +0 -12
- package/input-number/input-number.props.d.ts +0 -85
- package/input-number/input-number.type.d.ts +0 -28
- package/input-number/public_api.d.ts +0 -5
- package/input-otp/input-otp.config.d.ts +0 -2
- package/input-otp/input-otp.module.d.ts +0 -12
- package/input-otp/input-otp.props.d.ts +0 -30
- package/input-otp/input-otp.type.d.ts +0 -25
- package/input-otp/public_api.d.ts +0 -5
- package/lib/ui-ng-zorro-antd.config.d.ts +0 -1
- package/lib/ui-ng-zorro-antd.d.ts +0 -2
- package/lib/ui-ng-zorro-antd.module.d.ts +0 -36
- package/radio/public_api.d.ts +0 -4
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -14
- package/radio/radio.type.d.ts +0 -48
- package/rate/public_api.d.ts +0 -4
- package/rate/rate.config.d.ts +0 -2
- package/rate/rate.module.d.ts +0 -12
- package/rate/rate.type.d.ts +0 -65
- package/ref-template/public_api.d.ts +0 -4
- package/ref-template/ref-template.config.d.ts +0 -2
- package/ref-template/ref-template.module.d.ts +0 -11
- package/ref-template/ref-template.type.d.ts +0 -82
- package/select/public_api.d.ts +0 -5
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -13
- package/select/select.props.d.ts +0 -176
- package/select/select.type.d.ts +0 -38
- package/slider/public_api.d.ts +0 -4
- package/slider/slider.config.d.ts +0 -2
- package/slider/slider.module.d.ts +0 -12
- package/slider/slider.type.d.ts +0 -82
- package/space/public_api.d.ts +0 -4
- package/space/space.config.d.ts +0 -2
- package/space/space.module.d.ts +0 -10
- package/space/space.type.d.ts +0 -55
- package/space-compact/public_api.d.ts +0 -4
- package/space-compact/space-compact.config.d.ts +0 -2
- package/space-compact/space-compact.module.d.ts +0 -10
- package/space-compact/space-compact.type.d.ts +0 -41
- package/switch/public_api.d.ts +0 -4
- package/switch/switch.config.d.ts +0 -2
- package/switch/switch.module.d.ts +0 -12
- package/switch/switch.type.d.ts +0 -48
- package/tabs/public_api.d.ts +0 -4
- package/tabs/tabs.config.d.ts +0 -2
- package/tabs/tabs.module.d.ts +0 -10
- package/tabs/tabs.props.d.ts +0 -143
- package/tabs/tabs.wrapper.d.ts +0 -30
- package/text-value/public_api.d.ts +0 -4
- package/text-value/text-value.config.d.ts +0 -2
- package/text-value/text-value.module.d.ts +0 -11
- package/text-value/text-value.type.d.ts +0 -40
- package/textarea/public_api.d.ts +0 -4
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -13
- package/textarea/textarea.type.d.ts +0 -43
- package/timepicker/public_api.d.ts +0 -4
- package/timepicker/timepicker.config.d.ts +0 -2
- package/timepicker/timepicker.module.d.ts +0 -12
- package/timepicker/timepicker.type.d.ts +0 -143
- package/transfer/public_api.d.ts +0 -4
- package/transfer/transfer.component.d.ts +0 -27
- package/transfer/transfer.config.d.ts +0 -2
- package/transfer/transfer.module.d.ts +0 -13
- package/transfer/transfer.type.d.ts +0 -123
- package/tree-select/public_api.d.ts +0 -4
- package/tree-select/tree-select.config.d.ts +0 -2
- package/tree-select/tree-select.module.d.ts +0 -12
- package/tree-select/tree-select.type.d.ts +0 -187
- package/types/public_api.d.ts +0 -27
- package/upload/public_api.d.ts +0 -5
- package/upload/upload.component.d.ts +0 -37
- package/upload/upload.config.d.ts +0 -2
- package/upload/upload.module.d.ts +0 -15
- package/upload/upload.props.d.ts +0 -183
- package/upload/upload.type.d.ts +0 -36
package/form-field/index.d.ts
CHANGED
@@ -1,5 +1,219 @@
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
2
|
+
import { ConfigOption, FieldWrapper } from '@ngx-formly/core';
|
3
|
+
import * as _angular_core from '@angular/core';
|
4
|
+
import { TemplateRef } from '@angular/core';
|
5
|
+
import * as _angular_forms from '@angular/forms';
|
6
|
+
import { AbstractControl, NgModel } from '@angular/forms';
|
7
|
+
import { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
8
|
+
import * as i4 from 'ng-zorro-antd/form';
|
9
|
+
import { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
10
|
+
import { NzTSType } from 'ng-zorro-antd/core/types';
|
11
|
+
import { ControlOptions, NgClassType, NgStyleType, NzFormlyFieldConfig, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
12
|
+
import * as i2 from '@angular/common';
|
13
|
+
import * as i5 from 'ng-zorro-antd/core/outlet';
|
14
|
+
|
15
|
+
declare function withFormlyFormField(): ConfigOption;
|
16
|
+
|
1
17
|
/**
|
2
|
-
*
|
18
|
+
* @publicApi
|
3
19
|
*/
|
4
|
-
|
5
|
-
|
20
|
+
type strNumNull = string | number | null;
|
21
|
+
/**
|
22
|
+
* nz表单配置项
|
23
|
+
* @publicApi
|
24
|
+
*/
|
25
|
+
interface NzFormWrapperProps extends ControlOptions {
|
26
|
+
/**
|
27
|
+
* 隐藏必填标记
|
28
|
+
*/
|
29
|
+
hideRequiredMarker?: boolean;
|
30
|
+
/**
|
31
|
+
* 隐藏Label
|
32
|
+
*/
|
33
|
+
hideLabel?: boolean;
|
34
|
+
/**
|
35
|
+
* 自定义css类
|
36
|
+
*/
|
37
|
+
className?: NgClassType;
|
38
|
+
/**
|
39
|
+
* 自定义样式
|
40
|
+
*/
|
41
|
+
style?: NgStyleType;
|
42
|
+
/**
|
43
|
+
* itemClass自定义css类
|
44
|
+
*/
|
45
|
+
itemClass?: string;
|
46
|
+
/**
|
47
|
+
* itemStyle自定义样式
|
48
|
+
*/
|
49
|
+
itemStyle?: NgStyleType;
|
50
|
+
/**
|
51
|
+
* labelClass
|
52
|
+
*/
|
53
|
+
labelClass?: string;
|
54
|
+
/**
|
55
|
+
* controlClass
|
56
|
+
*/
|
57
|
+
controlClass?: string;
|
58
|
+
/**
|
59
|
+
* labelStyle
|
60
|
+
*/
|
61
|
+
labelStyle?: NgStyleType;
|
62
|
+
/**
|
63
|
+
* controlStyle
|
64
|
+
*/
|
65
|
+
controlStyle?: NgStyleType;
|
66
|
+
/**
|
67
|
+
* 是否不显示 label 后面的冒号
|
68
|
+
* @default false
|
69
|
+
*/
|
70
|
+
noColon?: boolean;
|
71
|
+
/**
|
72
|
+
* 是否定义label nzFor
|
73
|
+
* @default false
|
74
|
+
*/
|
75
|
+
noFor?: boolean;
|
76
|
+
/**
|
77
|
+
* 配置提示信息
|
78
|
+
*/
|
79
|
+
tooltipTitle?: NzTSType;
|
80
|
+
tooltipTitleName?: string;
|
81
|
+
/**
|
82
|
+
* 配置提示信息的图标
|
83
|
+
*/
|
84
|
+
tooltipIcon?: string | NzFormTooltipIcon;
|
85
|
+
/**
|
86
|
+
* 标签文本对齐方式
|
87
|
+
* @default 'right'
|
88
|
+
*/
|
89
|
+
labelAlign?: NzLabelAlignType;
|
90
|
+
/**
|
91
|
+
* label 标签的文本换行
|
92
|
+
* @default false
|
93
|
+
*/
|
94
|
+
labelWrap?: boolean;
|
95
|
+
/**
|
96
|
+
* 配合 nzValidateStatus 属性使用,展示校验状态图标
|
97
|
+
* @default false
|
98
|
+
*/
|
99
|
+
hasFeedback?: boolean;
|
100
|
+
/**
|
101
|
+
* 描述
|
102
|
+
*/
|
103
|
+
description?: string;
|
104
|
+
/**
|
105
|
+
* 校验状态 success 时提示信息
|
106
|
+
*/
|
107
|
+
successTip?: NzTipType;
|
108
|
+
successTipName?: string;
|
109
|
+
/**
|
110
|
+
* 校验状态 warning 时提示信息
|
111
|
+
*/
|
112
|
+
warningTip?: NzTipType;
|
113
|
+
warningTipName?: string;
|
114
|
+
/**
|
115
|
+
* 正在校验时提示信息
|
116
|
+
*/
|
117
|
+
validatingTip?: NzTipType;
|
118
|
+
validatingTipName?: string;
|
119
|
+
/**
|
120
|
+
* 用于显示表单额外提示信息
|
121
|
+
*/
|
122
|
+
extra?: NzTSType;
|
123
|
+
extraName?: string;
|
124
|
+
/**
|
125
|
+
* 配置提示的对象, 具体用法请参考示例:自动提示
|
126
|
+
*/
|
127
|
+
autoTips?: Record<string, Record<string, string>>;
|
128
|
+
/**
|
129
|
+
* 禁用自动提示
|
130
|
+
*/
|
131
|
+
disableAutoTips?: boolean | 'default';
|
132
|
+
/** 在form-control尾部添加文本 */
|
133
|
+
afterText?: string;
|
134
|
+
afterTextName?: string;
|
135
|
+
/** flex 布局属性 */
|
136
|
+
labelFlex?: strNumNull;
|
137
|
+
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
138
|
+
labelOffset?: strNumNull;
|
139
|
+
/** 栅格顺序 */
|
140
|
+
labelOrder?: strNumNull;
|
141
|
+
/** 栅格向左移动格数 */
|
142
|
+
labelPull?: strNumNull;
|
143
|
+
/** 栅格向右移动格数 */
|
144
|
+
labelPush?: strNumNull;
|
145
|
+
/** 栅格占位格数,为 0 时相当于 display: none */
|
146
|
+
labelSpan?: strNumNull;
|
147
|
+
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
148
|
+
labelXs?: strNumNull | EmbeddedProperty;
|
149
|
+
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
150
|
+
labelSm?: strNumNull | EmbeddedProperty;
|
151
|
+
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
152
|
+
labelMd?: strNumNull | EmbeddedProperty;
|
153
|
+
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
154
|
+
labelLg?: strNumNull | EmbeddedProperty;
|
155
|
+
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
156
|
+
labelXl?: strNumNull | EmbeddedProperty;
|
157
|
+
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
158
|
+
labelXXl?: strNumNull | EmbeddedProperty;
|
159
|
+
/** flex 布局属性 */
|
160
|
+
controlFlex?: strNumNull;
|
161
|
+
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
162
|
+
controlOffset?: strNumNull;
|
163
|
+
/** 栅格顺序 */
|
164
|
+
controlOrder?: strNumNull;
|
165
|
+
/** 栅格向左移动格数 */
|
166
|
+
controlPull?: strNumNull;
|
167
|
+
/** 栅格向右移动格数 */
|
168
|
+
controlPush?: strNumNull;
|
169
|
+
/** 栅格占位格数,为 0 时相当于 display: none */
|
170
|
+
controlSpan?: strNumNull;
|
171
|
+
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
172
|
+
controlXs?: strNumNull | EmbeddedProperty;
|
173
|
+
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
174
|
+
controlSm?: strNumNull | EmbeddedProperty;
|
175
|
+
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
176
|
+
controlMd?: strNumNull | EmbeddedProperty;
|
177
|
+
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
178
|
+
controlLg?: strNumNull | EmbeddedProperty;
|
179
|
+
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
180
|
+
controlXl?: strNumNull | EmbeddedProperty;
|
181
|
+
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
182
|
+
controlXXl?: strNumNull | EmbeddedProperty;
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* @publicApi
|
186
|
+
*/
|
187
|
+
type NzTipType = string | TemplateRef<{
|
188
|
+
$implicit: AbstractControl | NgModel;
|
189
|
+
}>;
|
190
|
+
|
191
|
+
type FormlyFieldProps = NzFormWrapperProps;
|
192
|
+
/**
|
193
|
+
* @private
|
194
|
+
*/
|
195
|
+
declare class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {
|
196
|
+
fieldTemplates: FormlyBoxTemplates | null;
|
197
|
+
constructor();
|
198
|
+
get nzTooltipTitle(): _angular_core.TemplateRef<any> | undefined;
|
199
|
+
get nzExtra(): _angular_core.TemplateRef<any> | undefined;
|
200
|
+
get hasLabel(): boolean;
|
201
|
+
get label(): _angular_core.TemplateRef<any> | undefined;
|
202
|
+
get afterText(): _angular_core.TemplateRef<any> | undefined;
|
203
|
+
get nzSuccessTip(): _angular_core.TemplateRef<any> | undefined;
|
204
|
+
get nzValidatingTip(): _angular_core.TemplateRef<any> | undefined;
|
205
|
+
get nzWarningTip(): _angular_core.TemplateRef<any> | undefined;
|
206
|
+
get hasError(): false | _angular_forms.ValidationErrors | null;
|
207
|
+
get validateStatus(): "error" | "success";
|
208
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
|
209
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false, never>;
|
210
|
+
}
|
211
|
+
|
212
|
+
declare class FormlyNzFormFieldModule {
|
213
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormlyNzFormFieldModule, never>;
|
214
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FormlyNzFormFieldModule, [typeof FormlyWrapperFormField], [typeof i2.CommonModule, typeof _angular_forms.ReactiveFormsModule, typeof i4.NzFormModule, typeof i5.NzOutletModule, typeof i6.FormlyModule], never>;
|
215
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<FormlyNzFormFieldModule>;
|
216
|
+
}
|
217
|
+
|
218
|
+
export { FormlyNzFormFieldModule, withFormlyFormField };
|
219
|
+
export type { FormlyFieldProps, NzFormWrapperProps };
|
package/grid/index.d.ts
CHANGED
@@ -1,5 +1,86 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Type } from '@angular/core';
|
3
|
+
import * as i4 from '@ngx-formly/core';
|
4
|
+
import { FormlyFieldProps, FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
|
5
|
+
import { NgClassType, NgStyleType, NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
6
|
+
import { IndexableObject } from 'ng-zorro-antd/core/types';
|
7
|
+
import * as i3 from 'ng-zorro-antd/grid';
|
8
|
+
import { EmbeddedProperty, NzAlign, NzJustify } from 'ng-zorro-antd/grid';
|
9
|
+
import * as i2 from '@angular/common';
|
10
|
+
|
11
|
+
type strNumNull = string | number | null;
|
1
12
|
/**
|
2
|
-
*
|
13
|
+
* @publicApi
|
3
14
|
*/
|
4
|
-
|
5
|
-
|
15
|
+
interface GridColProps {
|
16
|
+
/** flex 布局属性 */
|
17
|
+
flex?: strNumNull;
|
18
|
+
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
19
|
+
offset?: strNumNull;
|
20
|
+
/** 栅格顺序 */
|
21
|
+
order?: strNumNull;
|
22
|
+
/** 栅格向左移动格数 */
|
23
|
+
pull?: strNumNull;
|
24
|
+
/** 栅格向右移动格数 */
|
25
|
+
push?: strNumNull;
|
26
|
+
/** 栅格占位格数,为 0 时相当于 display: none */
|
27
|
+
span?: strNumNull;
|
28
|
+
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
29
|
+
xs?: strNumNull | EmbeddedProperty;
|
30
|
+
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
31
|
+
sm?: strNumNull | EmbeddedProperty;
|
32
|
+
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
33
|
+
md?: strNumNull | EmbeddedProperty;
|
34
|
+
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
35
|
+
lg?: strNumNull | EmbeddedProperty;
|
36
|
+
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
37
|
+
xl?: strNumNull | EmbeddedProperty;
|
38
|
+
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
39
|
+
xxl?: strNumNull | EmbeddedProperty;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* @publicApi
|
43
|
+
*/
|
44
|
+
interface GridProps extends FormlyFieldProps, GridColProps {
|
45
|
+
/** 自定义css类 */
|
46
|
+
className?: NgClassType;
|
47
|
+
/** 自定义样式 */
|
48
|
+
style?: NgStyleType;
|
49
|
+
/** 垂直对齐方式 */
|
50
|
+
align?: NzAlign | null;
|
51
|
+
/**
|
52
|
+
* 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。
|
53
|
+
* 或者使用数组形式同时设置 [水平间距, 垂直间距]。
|
54
|
+
*/
|
55
|
+
gutter?: strNumNull | IndexableObject | [number, number] | [IndexableObject, IndexableObject];
|
56
|
+
/** 水平排列方式 */
|
57
|
+
justify?: NzJustify | null;
|
58
|
+
/**
|
59
|
+
* 独立的
|
60
|
+
* 如果为true,子项不影响布局
|
61
|
+
* @default false
|
62
|
+
*/
|
63
|
+
independent?: boolean;
|
64
|
+
}
|
65
|
+
|
66
|
+
interface FormlyGridFieldConfig extends NzFormlyFieldConfig<GridProps> {
|
67
|
+
type: 'grid' | Type<FormlyFieldGrid>;
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* @private
|
71
|
+
*/
|
72
|
+
declare class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldGrid, never>;
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldGrid, "formly-field-grid", never, {}, {}, never, never, false, never>;
|
75
|
+
}
|
76
|
+
|
77
|
+
declare class FormlyNzGridModule {
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
|
79
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
|
80
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
|
81
|
+
}
|
82
|
+
|
83
|
+
declare function withFormlyFieldGrid(): ConfigOption;
|
84
|
+
|
85
|
+
export { FormlyFieldGrid, FormlyNzGridModule, withFormlyFieldGrid };
|
86
|
+
export type { FormlyGridFieldConfig, GridColProps, GridProps };
|
package/helpers/index.d.ts
CHANGED
@@ -1,5 +1,142 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { NzFormlyFieldConfig, ControlOptions } from 'ngx-formly-zorro-antd/common';
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import { ButtonProps, FormlyButtonFieldConfig } from 'ngx-formly-zorro-antd/button';
|
4
|
+
import { CardProps, FormlyCardFieldConfig } from 'ngx-formly-zorro-antd/card';
|
5
|
+
import { CascaderProps, FormlyCascaderFieldConfig } from 'ngx-formly-zorro-antd/cascader';
|
6
|
+
import { CheckboxProps, FormlyCheckboxFieldConfig } from 'ngx-formly-zorro-antd/checkbox';
|
7
|
+
import { DatepickerProps, FormlyDatepickerFieldConfig } from 'ngx-formly-zorro-antd/datepicker';
|
8
|
+
import { FlexProps, FormlyFlexFieldConfig } from 'ngx-formly-zorro-antd/flex';
|
9
|
+
import { GridProps, FormlyGridFieldConfig } from 'ngx-formly-zorro-antd/grid';
|
10
|
+
import { FormlyInputProps, FormlyInputFieldConfig } from 'ngx-formly-zorro-antd/input';
|
11
|
+
import { FormlyInputGroupProps, FormlyInputGroupFieldConfig } from 'ngx-formly-zorro-antd/input-group';
|
12
|
+
import { InputNumberProps, FormlyInputNumberFieldConfig } from 'ngx-formly-zorro-antd/input-number';
|
13
|
+
import { RadioProps, FormlyRadioFieldConfig } from 'ngx-formly-zorro-antd/radio';
|
14
|
+
import { RateProps, FormlyRateFieldConfig } from 'ngx-formly-zorro-antd/rate';
|
15
|
+
import { RefTemplateProps, FormlyRefTemplateFieldConfig } from 'ngx-formly-zorro-antd/ref-template';
|
16
|
+
import { SelectProps, FormlySelectFieldConfig } from 'ngx-formly-zorro-antd/select';
|
17
|
+
import { SlideProps, FormlySlideFieldConfig } from 'ngx-formly-zorro-antd/slider';
|
18
|
+
import { SpaceProps, FormlySpaceFieldConfig } from 'ngx-formly-zorro-antd/space';
|
19
|
+
import { SpaceCompactProps, FormlySpaceCompactFieldConfig } from 'ngx-formly-zorro-antd/space-compact';
|
20
|
+
import { SwitchProps, FormlySwitchFieldConfig } from 'ngx-formly-zorro-antd/switch';
|
21
|
+
import { TextValueProps, FormlyTextValueFieldConfig } from 'ngx-formly-zorro-antd/text-value';
|
22
|
+
import { TextareaProps, FormlyTextareaFieldConfig } from 'ngx-formly-zorro-antd/textarea';
|
23
|
+
import { TimepickerProps, FormlyTimepickerFieldConfig } from 'ngx-formly-zorro-antd/timepicker';
|
24
|
+
import { TransferProps, FormlyTransferFieldConfig } from 'ngx-formly-zorro-antd/transfer';
|
25
|
+
import { TreeSelectProps, FormlyTreeSelectFieldConfig } from 'ngx-formly-zorro-antd/tree-select';
|
26
|
+
import { UploadProps, FormlyUploadFieldConfig } from 'ngx-formly-zorro-antd/upload';
|
27
|
+
|
28
|
+
declare function field<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
29
|
+
declare function requiredField<T = NzFormlyFieldConfig>(key: string, type?: string, label?: string, props?: ControlOptions, otherOptions?: NzFormlyFieldConfig): T;
|
30
|
+
declare function hide(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|
31
|
+
declare function hidden(key: string, type?: string, options?: NzFormlyFieldConfig): NzFormlyFieldConfig;
|
32
|
+
|
33
|
+
declare function treeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
|
34
|
+
declare function requiredTreeSelect(key: string, label?: string, props?: TreeSelectProps, otherOptions?: FormlyFieldConfig): FormlyTreeSelectFieldConfig;
|
35
|
+
declare function transfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
|
36
|
+
declare function requiredTransfer(key: string, label?: string, props?: TransferProps, otherOptions?: FormlyFieldConfig): FormlyTransferFieldConfig;
|
37
|
+
declare function timepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
|
38
|
+
declare function requiredTimepicker(key: string, label?: string, props?: TimepickerProps, otherOptions?: FormlyFieldConfig): FormlyTimepickerFieldConfig;
|
39
|
+
declare function input(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
40
|
+
declare function requiredInput(key: string, label?: string, props?: FormlyInputProps, otherOptions?: FormlyFieldConfig): FormlyInputFieldConfig;
|
41
|
+
declare function textArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
42
|
+
declare function requiredTextArea(key: string, label?: string, props?: TextareaProps, otherOptions?: FormlyFieldConfig): FormlyTextareaFieldConfig;
|
43
|
+
declare function checkbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
44
|
+
declare function requiredCheckbox(key: string, label?: string, props?: CheckboxProps, otherOptions?: FormlyFieldConfig): FormlyCheckboxFieldConfig;
|
45
|
+
declare function cascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
46
|
+
declare function requiredCascader(key: string, label?: string, props?: CascaderProps, otherOptions?: FormlyFieldConfig): FormlyCascaderFieldConfig;
|
47
|
+
declare function datepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
48
|
+
declare function requiredDatepicker(key: string, label?: string, props?: DatepickerProps, otherOptions?: FormlyFieldConfig): FormlyDatepickerFieldConfig;
|
49
|
+
declare function number(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
50
|
+
declare function requiredNumber(key: string, label?: string, props?: InputNumberProps, otherOptions?: FormlyFieldConfig): FormlyInputNumberFieldConfig;
|
51
|
+
/** 选择器 */
|
52
|
+
declare function select(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
53
|
+
/** 选择器 */
|
54
|
+
declare function requiredSelect(key: string, label?: string, props?: SelectProps, otherOptions?: FormlyFieldConfig): FormlySelectFieldConfig;
|
55
|
+
/** 上传 */
|
56
|
+
declare function upload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
|
57
|
+
/** 上传 */
|
58
|
+
declare function requiredUpload(key: string, label?: string, props?: UploadProps, otherOptions?: FormlyFieldConfig): FormlyUploadFieldConfig;
|
59
|
+
/** 单选框 */
|
60
|
+
declare function radio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
61
|
+
/** 单选框 */
|
62
|
+
declare function requiredRadio(key: string, label?: string, props?: RadioProps, otherOptions?: FormlyFieldConfig): FormlyRadioFieldConfig;
|
63
|
+
/** 评分 */
|
64
|
+
declare function rate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
65
|
+
/** 评分 */
|
66
|
+
declare function requiredRate(key: string, label?: string, props?: RateProps, otherOptions?: FormlyFieldConfig): FormlyRateFieldConfig;
|
67
|
+
/** 开关 */
|
68
|
+
declare function requiredSwitch(key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig): FormlySwitchFieldConfig;
|
69
|
+
/** 滑动输入条 */
|
70
|
+
declare function slider(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
71
|
+
/** 滑动输入条 */
|
72
|
+
declare function requiredSlide(key: string, label?: string, props?: SlideProps, otherOptions?: FormlyFieldConfig): FormlySlideFieldConfig;
|
73
|
+
/** 文本显示 */
|
74
|
+
declare function text(options?: FormlyFieldConfig<TextValueProps>): FormlyTextValueFieldConfig;
|
75
|
+
/** 输入组 */
|
76
|
+
declare function inputGroup(options?: FormlyFieldConfig<FormlyInputGroupProps>): FormlyInputGroupFieldConfig;
|
77
|
+
/** 间距 */
|
78
|
+
declare function space(options?: FormlyFieldConfig<SpaceProps>): FormlySpaceFieldConfig;
|
79
|
+
/** 紧凑布局组合 */
|
80
|
+
declare function spaceCompact(options?: FormlyFieldConfig<SpaceCompactProps>): FormlySpaceCompactFieldConfig;
|
81
|
+
/** 模板 */
|
82
|
+
declare function ref(props?: RefTemplateProps, otherOptions?: FormlyFieldConfig): FormlyRefTemplateFieldConfig;
|
83
|
+
/** 栅格 */
|
84
|
+
declare function grid(options?: FormlyFieldConfig<GridProps>): FormlyGridFieldConfig;
|
85
|
+
/** 弹性布局 */
|
86
|
+
declare function flex(options?: FormlyFieldConfig<FlexProps>): FormlyFlexFieldConfig;
|
87
|
+
/** 卡片 */
|
88
|
+
declare function card(options?: FormlyFieldConfig<CardProps>): FormlyCardFieldConfig;
|
89
|
+
declare function button(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
90
|
+
declare function submit(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
91
|
+
declare function reset(text?: string, props?: ButtonProps, otherOptions?: FormlyFieldConfig): FormlyButtonFieldConfig;
|
92
|
+
|
93
|
+
declare const formly: {
|
94
|
+
field: typeof field;
|
95
|
+
requiredField: typeof requiredField;
|
96
|
+
hide: typeof hide;
|
97
|
+
hidden: typeof hidden;
|
98
|
+
input: typeof input;
|
99
|
+
requiredInput: typeof requiredInput;
|
100
|
+
textArea: typeof textArea;
|
101
|
+
requiredTextArea: typeof requiredTextArea;
|
102
|
+
checkbox: typeof checkbox;
|
103
|
+
requiredCheckbox: typeof requiredCheckbox;
|
104
|
+
cascader: typeof cascader;
|
105
|
+
requiredCascader: typeof requiredCascader;
|
106
|
+
number: typeof number;
|
107
|
+
requiredNumber: typeof requiredNumber;
|
108
|
+
radio: typeof radio;
|
109
|
+
requiredRadio: typeof requiredRadio;
|
110
|
+
rate: typeof rate;
|
111
|
+
requiredRate: typeof requiredRate;
|
112
|
+
datepicker: typeof datepicker;
|
113
|
+
requiredDatepicker: typeof requiredDatepicker;
|
114
|
+
/** 开关 */
|
115
|
+
switch: (key: string, label?: string, props?: SwitchProps, otherOptions?: FormlyFieldConfig) => FormlySwitchFieldConfig;
|
116
|
+
requiredSwitch: typeof requiredSwitch;
|
117
|
+
upload: typeof upload;
|
118
|
+
requiredUpload: typeof requiredUpload;
|
119
|
+
slider: typeof slider;
|
120
|
+
requiredSlide: typeof requiredSlide;
|
121
|
+
select: typeof select;
|
122
|
+
requiredSelect: typeof requiredSelect;
|
123
|
+
treeSelect: typeof treeSelect;
|
124
|
+
requiredTreeSelect: typeof requiredTreeSelect;
|
125
|
+
transfer: typeof transfer;
|
126
|
+
requiredTransfer: typeof requiredTransfer;
|
127
|
+
timepicker: typeof timepicker;
|
128
|
+
requiredTimepicker: typeof requiredTimepicker;
|
129
|
+
text: typeof text;
|
130
|
+
space: typeof space;
|
131
|
+
spaceCompact: typeof spaceCompact;
|
132
|
+
inputGroup: typeof inputGroup;
|
133
|
+
ref: typeof ref;
|
134
|
+
grid: typeof grid;
|
135
|
+
flex: typeof flex;
|
136
|
+
card: typeof card;
|
137
|
+
button: typeof button;
|
138
|
+
submit: typeof submit;
|
139
|
+
reset: typeof reset;
|
140
|
+
};
|
141
|
+
|
142
|
+
export { formly };
|
package/index.d.ts
CHANGED
@@ -1 +1,41 @@
|
|
1
|
-
|
1
|
+
import * as _ngx_formly_core from '@ngx-formly/core';
|
2
|
+
import * as i0 from '@angular/core';
|
3
|
+
import * as i1 from 'ngx-formly-zorro-antd/common';
|
4
|
+
import * as i2 from 'ngx-formly-zorro-antd/ref-template';
|
5
|
+
import * as i3 from 'ngx-formly-zorro-antd/form-field';
|
6
|
+
import * as i4 from 'ngx-formly-zorro-antd/input';
|
7
|
+
import * as i5 from 'ngx-formly-zorro-antd/input-number';
|
8
|
+
import * as i6 from 'ngx-formly-zorro-antd/input-group';
|
9
|
+
import * as i7 from 'ngx-formly-zorro-antd/input-otp';
|
10
|
+
import * as i8 from 'ngx-formly-zorro-antd/textarea';
|
11
|
+
import * as i9 from 'ngx-formly-zorro-antd/radio';
|
12
|
+
import * as i10 from 'ngx-formly-zorro-antd/checkbox';
|
13
|
+
import * as i11 from 'ngx-formly-zorro-antd/select';
|
14
|
+
import * as i12 from 'ngx-formly-zorro-antd/switch';
|
15
|
+
import * as i13 from 'ngx-formly-zorro-antd/cascader';
|
16
|
+
import * as i14 from 'ngx-formly-zorro-antd/datepicker';
|
17
|
+
import * as i15 from 'ngx-formly-zorro-antd/rate';
|
18
|
+
import * as i16 from 'ngx-formly-zorro-antd/slider';
|
19
|
+
import * as i17 from 'ngx-formly-zorro-antd/timepicker';
|
20
|
+
import * as i18 from 'ngx-formly-zorro-antd/transfer';
|
21
|
+
import * as i19 from 'ngx-formly-zorro-antd/tree-select';
|
22
|
+
import * as i20 from 'ngx-formly-zorro-antd/upload';
|
23
|
+
import * as i21 from 'ngx-formly-zorro-antd/tabs';
|
24
|
+
import * as i22 from 'ngx-formly-zorro-antd/card';
|
25
|
+
import * as i23 from 'ngx-formly-zorro-antd/card-wrapper';
|
26
|
+
import * as i24 from 'ngx-formly-zorro-antd/button';
|
27
|
+
import * as i25 from 'ngx-formly-zorro-antd/grid';
|
28
|
+
import * as i26 from 'ngx-formly-zorro-antd/space';
|
29
|
+
import * as i27 from 'ngx-formly-zorro-antd/space-compact';
|
30
|
+
import * as i28 from 'ngx-formly-zorro-antd/flex';
|
31
|
+
import * as i29 from 'ngx-formly-zorro-antd/text-value';
|
32
|
+
|
33
|
+
declare function withFormlyNgAntd(): _ngx_formly_core.ConfigOption[];
|
34
|
+
|
35
|
+
declare class FormlyNgAntdModule {
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNgAntdModule, never>;
|
37
|
+
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.FormlyNzInputOtpModule, typeof i8.FormlyNzTextareaModule, typeof i9.FormlyNzRadioModule, typeof i10.FormlyNzCheckboxModule, typeof i11.FormlyNzSelectModule, typeof i12.FormlyNzSwitchModule, typeof i13.FormlyNzCascaderModule, typeof i14.FormlyNzDatepickerModule, typeof i15.FormlyNzRateModule, typeof i16.FormlyNzSliderModule, typeof i17.FormlyNzTimepickerModule, typeof i18.FormlyNzTransferModule, typeof i19.FormlyNzTreeSelectModule, typeof i20.FormlyNzUploadModule, typeof i21.FormlyNzTabsModule, typeof i22.FormlyNzCardModule, typeof i23.FormlyNzCardWrapperModule, typeof i24.FormlyNzButtonModule, typeof i25.FormlyNzGridModule, typeof i26.FormlyNzSpaceModule, typeof i27.FormlyNzSpaceCompactModule, typeof i28.FormlyNzFlexModule, typeof i29.FormlyNzTextValueModule], [typeof i1.FormlyCommonModule]>;
|
38
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNgAntdModule>;
|
39
|
+
}
|
40
|
+
|
41
|
+
export { FormlyNgAntdModule, withFormlyNgAntd };
|
package/input/index.d.ts
CHANGED
@@ -1,5 +1,95 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Type } from '@angular/core';
|
3
|
+
import * as i8 from '@ngx-formly/core';
|
4
|
+
import { FieldType, FieldTypeConfig, ConfigOption } from '@ngx-formly/core';
|
5
|
+
import { FormlyAttributeEvent, FormlyBoxTemplates, NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
6
|
+
import { NzSizeLDSType, NzVariant, NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
|
7
|
+
import * as i7 from 'ngx-formly-zorro-antd/form-field';
|
8
|
+
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
9
|
+
import { FormlyInputGroupProps } from 'ngx-formly-zorro-antd/input-group';
|
10
|
+
import { AutocompleteProps } from 'ngx-formly-zorro-antd/autocomplete';
|
11
|
+
import * as i2 from '@angular/common';
|
12
|
+
import * as i3 from '@angular/forms';
|
13
|
+
import * as i4 from 'ng-zorro-antd/input';
|
14
|
+
import * as i5 from 'ng-zorro-antd/auto-complete';
|
15
|
+
import * as i6 from 'ng-zorro-antd/icon';
|
16
|
+
|
17
|
+
interface FormlyInputProps extends InputProps {
|
18
|
+
}
|
1
19
|
/**
|
2
|
-
*
|
20
|
+
* @publicApi
|
3
21
|
*/
|
4
|
-
|
5
|
-
|
22
|
+
interface InputProps extends FormlyFieldProps, FormlyInputGroupProps {
|
23
|
+
/**
|
24
|
+
* autoComplete=>输入框自动完成
|
25
|
+
*
|
26
|
+
* group=>组
|
27
|
+
*/
|
28
|
+
type?: 'input' | 'password' | 'group' | 'autoComplete';
|
29
|
+
/**
|
30
|
+
* 控件大小。注:标准表单内的输入框大小限制为 large
|
31
|
+
* @default default
|
32
|
+
*/
|
33
|
+
size?: NzSizeLDSType;
|
34
|
+
/**
|
35
|
+
* 无边框
|
36
|
+
* @deprecated Will be removed in v21. It is recommended to use `variant` instead.
|
37
|
+
* @default false
|
38
|
+
*/
|
39
|
+
borderless?: boolean;
|
40
|
+
/** 形态变体 */
|
41
|
+
variant?: NzVariant;
|
42
|
+
/**
|
43
|
+
* 设置校验状态
|
44
|
+
*/
|
45
|
+
status?: NzStatus;
|
46
|
+
/**
|
47
|
+
* 支持清除
|
48
|
+
* @default false
|
49
|
+
*/
|
50
|
+
allowClear?: boolean;
|
51
|
+
/** 输入框自动完成配置选项 */
|
52
|
+
autocompleteOptions?: AutocompleteProps;
|
53
|
+
/** 数值改变时回调 */
|
54
|
+
modelChange?: FormlyAttributeEvent;
|
55
|
+
}
|
56
|
+
|
57
|
+
interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {
|
58
|
+
type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @private
|
62
|
+
*/
|
63
|
+
declare class FormlyFieldInput extends FieldType<FieldTypeConfig> {
|
64
|
+
defaultOptions: {
|
65
|
+
props: {
|
66
|
+
borderless: boolean;
|
67
|
+
variant: string;
|
68
|
+
search: boolean;
|
69
|
+
allowClear: boolean;
|
70
|
+
autocompleteOptions: {
|
71
|
+
backfill: boolean;
|
72
|
+
defaultActiveFirstOption: boolean;
|
73
|
+
compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
|
74
|
+
};
|
75
|
+
};
|
76
|
+
};
|
77
|
+
passVisible: boolean;
|
78
|
+
fieldTemplates: FormlyBoxTemplates | null;
|
79
|
+
constructor();
|
80
|
+
get addOnBefore(): i0.TemplateRef<any> | undefined;
|
81
|
+
get addOnAfter(): i0.TemplateRef<any> | undefined;
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-input", never, {}, {}, never, never, false, never>;
|
84
|
+
}
|
85
|
+
|
86
|
+
declare class FormlyNzInputModule {
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzInputModule, never>;
|
88
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzInputModule, typeof i5.NzAutocompleteModule, typeof i6.NzIconModule, typeof i7.FormlyNzFormFieldModule, typeof i8.FormlyModule], never>;
|
89
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzInputModule>;
|
90
|
+
}
|
91
|
+
|
92
|
+
declare function withFormlyFieldInput(): ConfigOption;
|
93
|
+
|
94
|
+
export { FormlyFieldInput, FormlyNzInputModule, withFormlyFieldInput };
|
95
|
+
export type { FormlyInputFieldConfig, FormlyInputProps };
|