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
@@ -1,158 +0,0 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
3
|
-
import type { FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { FunctionProp, NzSafeAny, NzStatus } from 'ng-zorro-antd/core/types';
|
5
|
-
import type { NzDateMode, NzDatePickerSizeType, PresetRanges, DisabledTimeFn, CompatibleDate, NzPanelChangeType } from 'ng-zorro-antd/date-picker';
|
6
|
-
/**
|
7
|
-
* @publicApi
|
8
|
-
*/
|
9
|
-
export interface DatepickerProps extends FormlyFieldProps {
|
10
|
-
type?: 'date' | 'range';
|
11
|
-
/**
|
12
|
-
* 是否显示清除按钮
|
13
|
-
* @default true
|
14
|
-
*/
|
15
|
-
allowClear?: boolean;
|
16
|
-
/**
|
17
|
-
* 自动获取焦点
|
18
|
-
* @default true
|
19
|
-
*/
|
20
|
-
autoFocus?: boolean;
|
21
|
-
/**
|
22
|
-
* 浮层是否应带有背景板
|
23
|
-
* @default false
|
24
|
-
*/
|
25
|
-
backdrop?: boolean;
|
26
|
-
/**
|
27
|
-
* 默认面板日期
|
28
|
-
* @default Date[]
|
29
|
-
*/
|
30
|
-
defaultPickerValue?: CompatibleDate | null;
|
31
|
-
/**
|
32
|
-
* 不可选择的日期
|
33
|
-
*/
|
34
|
-
disabledDate?: (current: Date) => boolean;
|
35
|
-
/**
|
36
|
-
* 额外的弹出日历 className
|
37
|
-
*/
|
38
|
-
dropdownClassName?: string;
|
39
|
-
/**
|
40
|
-
* 展示的日期格式,见nzFormat特别说明
|
41
|
-
*/
|
42
|
-
format?: string;
|
43
|
-
/**
|
44
|
-
* 为 input 标签设置只读属性(避免在移动设备上触发小键盘)
|
45
|
-
* @default false
|
46
|
-
*/
|
47
|
-
inputReadOnly?: boolean;
|
48
|
-
/**
|
49
|
-
* 选择模式
|
50
|
-
* @default date
|
51
|
-
*/
|
52
|
-
mode?: NzDateMode;
|
53
|
-
/**
|
54
|
-
* 额外的弹出日历样式
|
55
|
-
* @default {}
|
56
|
-
*/
|
57
|
-
popupStyle?: object;
|
58
|
-
/**
|
59
|
-
* 在面板中添加额外的页脚
|
60
|
-
*/
|
61
|
-
renderExtraFooter?: TemplateRef<NzSafeAny> | string | FunctionProp<TemplateRef<NzSafeAny> | string>;
|
62
|
-
/**
|
63
|
-
* 输入框大小
|
64
|
-
*/
|
65
|
-
size?: NzDatePickerSizeType;
|
66
|
-
/**
|
67
|
-
* 设置校验状态
|
68
|
-
*/
|
69
|
-
status?: NzStatus;
|
70
|
-
/**
|
71
|
-
* 选择框弹出的位置
|
72
|
-
* @default bottomLeft
|
73
|
-
*/
|
74
|
-
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
75
|
-
/**
|
76
|
-
* 自定义的后缀图标
|
77
|
-
*/
|
78
|
-
suffixIcon?: string | TemplateRef<NzSafeAny>;
|
79
|
-
/**
|
80
|
-
* 移除边框
|
81
|
-
* @default false
|
82
|
-
*/
|
83
|
-
borderless?: boolean;
|
84
|
-
/**
|
85
|
-
* 内联模式
|
86
|
-
* @default false
|
87
|
-
*/
|
88
|
-
inline?: boolean;
|
89
|
-
/**
|
90
|
-
* 自定义日期单元格的内容(month-picker/year-picker不支持)
|
91
|
-
*/
|
92
|
-
dateRender?: TemplateRef<Date> | string | ((d: Date) => TemplateRef<Date> | string);
|
93
|
-
/**
|
94
|
-
* 不可选择的时间
|
95
|
-
*/
|
96
|
-
disabledTime?: (current: Date) => {
|
97
|
-
nzDisabledHours: NzSafeAny;
|
98
|
-
nzDisabledMinutes: NzSafeAny;
|
99
|
-
nzDisabledSeconds: NzSafeAny;
|
100
|
-
};
|
101
|
-
/**
|
102
|
-
* 增加时间选择功能
|
103
|
-
*/
|
104
|
-
showTime?: boolean | object;
|
105
|
-
/**
|
106
|
-
* 是否展示“今天”按钮
|
107
|
-
* @default true
|
108
|
-
*/
|
109
|
-
showToday?: boolean;
|
110
|
-
/**
|
111
|
-
* 当设定了nzShowTime的时候,面板是否显示“此刻”按钮
|
112
|
-
* @default true
|
113
|
-
*/
|
114
|
-
showNow?: boolean;
|
115
|
-
/**
|
116
|
-
* 是否在每一行显示周数(仅日期选择器支持。周选择器始终显示周数)
|
117
|
-
* @default false
|
118
|
-
*/
|
119
|
-
showWeekNumber?: boolean;
|
120
|
-
/**
|
121
|
-
* 弹出日历和关闭日历的回调
|
122
|
-
*/
|
123
|
-
openChange?: FormlyAttributeEvent<boolean>;
|
124
|
-
/**
|
125
|
-
* 点击确定按钮的回调
|
126
|
-
*/
|
127
|
-
onOk?: FormlyAttributeEvent<CompatibleDate | null>;
|
128
|
-
/** 数值改变时回调 */
|
129
|
-
modelChange?: FormlyAttributeEvent<Date | Date[] | null>;
|
130
|
-
/** 改变模式或日期的回调 */
|
131
|
-
onPanelChange?: FormlyAttributeEvent<NzPanelChangeType>;
|
132
|
-
/**
|
133
|
-
* 日期范围选择器配置
|
134
|
-
*/
|
135
|
-
rangeOptions?: DatepickerRangeProps;
|
136
|
-
}
|
137
|
-
/**
|
138
|
-
* @publicApi
|
139
|
-
*/
|
140
|
-
export interface DatepickerRangeProps {
|
141
|
-
/**
|
142
|
-
* 预设时间范围快捷选择
|
143
|
-
*/
|
144
|
-
ranges?: PresetRanges;
|
145
|
-
/**
|
146
|
-
* 分隔符
|
147
|
-
* @default ~
|
148
|
-
*/
|
149
|
-
separator?: string | TemplateRef<NzSafeAny>;
|
150
|
-
/**
|
151
|
-
* 待选日期发生变化的回调
|
152
|
-
*/
|
153
|
-
calendarChange?: FormlyAttributeEvent;
|
154
|
-
/**
|
155
|
-
* 不可选择的时间
|
156
|
-
*/
|
157
|
-
disabledTime?: DisabledTimeFn;
|
158
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { DatepickerProps } from './datepicker.props';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {
|
7
|
-
type: 'datepicker' | Type<FormlyFieldDatepicker>;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @private
|
11
|
-
*/
|
12
|
-
export declare class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {
|
13
|
-
defaultOptions: {
|
14
|
-
props: {
|
15
|
-
allowClear: boolean;
|
16
|
-
backdrop: boolean;
|
17
|
-
defaultPickerValue: null;
|
18
|
-
inputReadOnly: boolean;
|
19
|
-
mode: "date";
|
20
|
-
size: "default";
|
21
|
-
status: "";
|
22
|
-
placement: "bottomLeft";
|
23
|
-
popupStyle: {};
|
24
|
-
borderless: boolean;
|
25
|
-
inline: boolean;
|
26
|
-
showToday: boolean;
|
27
|
-
showNow: boolean;
|
28
|
-
nzShowWeekNumber: boolean;
|
29
|
-
rangeOptions: {
|
30
|
-
separator: string;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
};
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatepicker, never>;
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatepicker, "formly-field-datepicker", never, {}, {}, never, never, false, never>;
|
36
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { FormlyNzDatepickerModule } from './datepicker.module';
|
2
|
-
export { FormlyFieldDatepicker } from './datepicker.type';
|
3
|
-
export { withFormlyFieldDatepicker } from './datepicker.config';
|
4
|
-
export type { FormlyDatepickerFieldConfig } from './datepicker.type';
|
5
|
-
export type { DatepickerProps } from './datepicker.props';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './value-changes-extension';
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { FormlyExtension } from '@ngx-formly/core';
|
2
|
-
/**
|
3
|
-
* 自动添加valueChanges函数
|
4
|
-
* @example
|
5
|
-
* fields = [
|
6
|
-
* {
|
7
|
-
* type: 'input',
|
8
|
-
* props: {
|
9
|
-
* valueChanges: (value, field) => {}
|
10
|
-
* }
|
11
|
-
* }
|
12
|
-
* ]
|
13
|
-
*/
|
14
|
-
export declare const valueChangesExtension: FormlyExtension;
|
15
|
-
/**
|
16
|
-
* valueChanges函数配置
|
17
|
-
*/
|
18
|
-
export declare const valueChangesExtensionOption: {
|
19
|
-
name: string;
|
20
|
-
extension: FormlyExtension<import("@ngx-formly/core").FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
21
|
-
[additionalProperties: string]: any;
|
22
|
-
}>>;
|
23
|
-
};
|
@@ -1,158 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
3
|
-
import * as i1 from '@angular/common';
|
4
|
-
import { CommonModule } from '@angular/common';
|
5
|
-
import * as i6 from '@ngx-formly/core';
|
6
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
-
import { Subject } from 'rxjs';
|
8
|
-
import * as i2 from 'ng-zorro-antd/button';
|
9
|
-
import { NzButtonModule } from 'ng-zorro-antd/button';
|
10
|
-
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
11
|
-
import * as i4 from 'ng-zorro-antd/core/wave';
|
12
|
-
import * as i5 from 'ng-zorro-antd/icon';
|
13
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @private
|
17
|
-
*/
|
18
|
-
class FormlyFieldButtonGroup extends FieldType {
|
19
|
-
constructor() {
|
20
|
-
super();
|
21
|
-
this.destroy$ = new Subject();
|
22
|
-
this.defaultOptions = {
|
23
|
-
props: {
|
24
|
-
size: 'default',
|
25
|
-
buttons: []
|
26
|
-
}
|
27
|
-
};
|
28
|
-
}
|
29
|
-
subjectDestroy() {
|
30
|
-
this.destroy$.next();
|
31
|
-
this.destroy$.complete();
|
32
|
-
}
|
33
|
-
ngOnDestroy() {
|
34
|
-
this.subjectDestroy();
|
35
|
-
}
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FormlyFieldButtonGroup, isStandalone: false, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
38
|
-
<nz-button-group
|
39
|
-
[formlyAttributes]="field"
|
40
|
-
[nzSize]="props['size'] || 'default'"
|
41
|
-
[class]="props['className']"
|
42
|
-
[style]="props['style']"
|
43
|
-
>
|
44
|
-
@for (x of props.buttons; track x) {
|
45
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: x }"></ng-container>
|
46
|
-
}
|
47
|
-
</nz-button-group>
|
48
|
-
|
49
|
-
<ng-template #btnTemplate let-item>
|
50
|
-
<button
|
51
|
-
nz-button
|
52
|
-
[formlyAttributes]="item"
|
53
|
-
[type]="item.type || 'button'"
|
54
|
-
[attr.title]="item.props['title']"
|
55
|
-
[disabled]="!!item.props.disabled"
|
56
|
-
[nzBlock]="!!item.props.block"
|
57
|
-
[nzDanger]="!!item.props.danger"
|
58
|
-
[nzGhost]="!!item.props.ghost"
|
59
|
-
[class]="item.props['className']"
|
60
|
-
[style]="item.props['style']"
|
61
|
-
[nzSize]="item.props.size || 'default'"
|
62
|
-
[nzLoading]="!!item.props.loading"
|
63
|
-
[nzShape]="item.props.shape ?? null"
|
64
|
-
[nzType]="item.props.nzType ?? null"
|
65
|
-
>
|
66
|
-
@if (item.props.beforeIcon) {
|
67
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
68
|
-
}
|
69
|
-
@if (item.props.text) {
|
70
|
-
<span>{{ item.props.text }}</span>
|
71
|
-
}
|
72
|
-
@if (item.props.afterIcon) {
|
73
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
74
|
-
}
|
75
|
-
</button>
|
76
|
-
</ng-template>
|
77
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
78
|
-
}
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
80
|
-
type: Component,
|
81
|
-
args: [{
|
82
|
-
selector: 'formly-field-button-group',
|
83
|
-
template: `
|
84
|
-
<nz-button-group
|
85
|
-
[formlyAttributes]="field"
|
86
|
-
[nzSize]="props['size'] || 'default'"
|
87
|
-
[class]="props['className']"
|
88
|
-
[style]="props['style']"
|
89
|
-
>
|
90
|
-
@for (x of props.buttons; track x) {
|
91
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: x }"></ng-container>
|
92
|
-
}
|
93
|
-
</nz-button-group>
|
94
|
-
|
95
|
-
<ng-template #btnTemplate let-item>
|
96
|
-
<button
|
97
|
-
nz-button
|
98
|
-
[formlyAttributes]="item"
|
99
|
-
[type]="item.type || 'button'"
|
100
|
-
[attr.title]="item.props['title']"
|
101
|
-
[disabled]="!!item.props.disabled"
|
102
|
-
[nzBlock]="!!item.props.block"
|
103
|
-
[nzDanger]="!!item.props.danger"
|
104
|
-
[nzGhost]="!!item.props.ghost"
|
105
|
-
[class]="item.props['className']"
|
106
|
-
[style]="item.props['style']"
|
107
|
-
[nzSize]="item.props.size || 'default'"
|
108
|
-
[nzLoading]="!!item.props.loading"
|
109
|
-
[nzShape]="item.props.shape ?? null"
|
110
|
-
[nzType]="item.props.nzType ?? null"
|
111
|
-
>
|
112
|
-
@if (item.props.beforeIcon) {
|
113
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
114
|
-
}
|
115
|
-
@if (item.props.text) {
|
116
|
-
<span>{{ item.props.text }}</span>
|
117
|
-
}
|
118
|
-
@if (item.props.afterIcon) {
|
119
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
120
|
-
}
|
121
|
-
</button>
|
122
|
-
</ng-template>
|
123
|
-
`,
|
124
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
125
|
-
standalone: false
|
126
|
-
}]
|
127
|
-
}], ctorParameters: () => [] });
|
128
|
-
|
129
|
-
function withFormlyFieldButtonGroup() {
|
130
|
-
return {
|
131
|
-
types: [
|
132
|
-
{
|
133
|
-
name: 'button-group',
|
134
|
-
component: FormlyFieldButtonGroup
|
135
|
-
}
|
136
|
-
]
|
137
|
-
};
|
138
|
-
}
|
139
|
-
|
140
|
-
class FormlyNzButtonGroupModule {
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
142
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule, NzButtonModule, NzIconModule, i6.FormlyModule] }); }
|
143
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())] }); }
|
144
|
-
}
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
|
146
|
-
type: NgModule,
|
147
|
-
args: [{
|
148
|
-
declarations: [FormlyFieldButtonGroup],
|
149
|
-
imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())]
|
150
|
-
}]
|
151
|
-
}] });
|
152
|
-
|
153
|
-
/**
|
154
|
-
* Generated bundle index. Do not edit.
|
155
|
-
*/
|
156
|
-
|
157
|
-
export { FormlyFieldButtonGroup, FormlyNzButtonGroupModule, withFormlyFieldButtonGroup };
|
158
|
-
//# sourceMappingURL=ngx-formly-zorro-antd-button-group.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.config.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\r\n\r\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\r\n\r\n/**\r\n * @publicApi\r\n */\r\nexport interface ButtonGroupProps extends FormlyFieldProps {\r\n size?: NzButtonGroupSize;\r\n\r\n /**\r\n * 每个按钮配置\r\n */\r\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\r\n}\r\n\r\n/**\r\n * @deprecated Will be removed in v20. Use `space-compact` instead.\r\n */\r\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\r\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\r\n}\r\n/**\r\n * @private\r\n */\r\n@Component({\r\n selector: 'formly-field-button-group',\r\n template: `\r\n <nz-button-group\r\n [formlyAttributes]=\"field\"\r\n [nzSize]=\"props['size'] || 'default'\"\r\n [class]=\"props['className']\"\r\n [style]=\"props['style']\"\r\n >\r\n @for (x of props.buttons; track x) {\r\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: x }\"></ng-container>\r\n }\r\n </nz-button-group>\r\n\r\n <ng-template #btnTemplate let-item>\r\n <button\r\n nz-button\r\n [formlyAttributes]=\"item\"\r\n [type]=\"item.type || 'button'\"\r\n [attr.title]=\"item.props['title']\"\r\n [disabled]=\"!!item.props.disabled\"\r\n [nzBlock]=\"!!item.props.block\"\r\n [nzDanger]=\"!!item.props.danger\"\r\n [nzGhost]=\"!!item.props.ghost\"\r\n [class]=\"item.props['className']\"\r\n [style]=\"item.props['style']\"\r\n [nzSize]=\"item.props.size || 'default'\"\r\n [nzLoading]=\"!!item.props.loading\"\r\n [nzShape]=\"item.props.shape ?? null\"\r\n [nzType]=\"item.props.nzType ?? null\"\r\n >\r\n @if (item.props.beforeIcon) {\r\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\r\n }\r\n @if (item.props.text) {\r\n <span>{{ item.props.text }}</span>\r\n }\r\n @if (item.props.afterIcon) {\r\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\r\n }\r\n </button>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: false\r\n})\r\nexport class FormlyFieldButtonGroup extends FieldType<FieldTypeConfig<ButtonGroupProps>> implements OnDestroy {\r\n destroy$ = new Subject<void>();\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttons: []\r\n }\r\n };\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n subjectDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subjectDestroy();\r\n }\r\n}\r\n","import type { ConfigOption } from '@ngx-formly/core';\r\nimport { FormlyFieldButtonGroup } from './button-group.type';\r\n\r\nexport function withFormlyFieldButtonGroup(): ConfigOption {\r\n return {\r\n types: [\r\n {\r\n name: 'button-group',\r\n component: FormlyFieldButtonGroup\r\n }\r\n ]\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldButtonGroup } from './button-group.type';\r\nimport { withFormlyFieldButtonGroup } from './button-group.config';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButtonGroup],\r\n imports: [CommonModule, NzButtonModule, NzIconModule, FormlyModule.forChild(withFormlyFieldButtonGroup())]\r\n})\r\nexport class FormlyNzButtonGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":"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"}
|
package/flex/flex.config.d.ts
DELETED
package/flex/flex.module.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./flex.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/flex";
|
5
|
-
import * as i4 from "@ngx-formly/core";
|
6
|
-
export declare class FormlyNzFlexModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFlexModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFlexModule, [typeof i1.FormlyFieldFlex], [typeof i2.CommonModule, typeof i3.NzFlexModule, typeof i4.FormlyModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFlexModule>;
|
10
|
-
}
|
package/flex/flex.type.d.ts
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
3
|
-
import type { NzFormlyFieldConfig, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
4
|
-
import type { NzWrap, NzJustify, NzAlign, NzFlex, NzGap } from 'ng-zorro-antd/flex';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
/**
|
7
|
-
* @publicApi
|
8
|
-
*/
|
9
|
-
export interface FlexProps extends FormlyFieldProps {
|
10
|
-
/**
|
11
|
-
* 自定义css类
|
12
|
-
*/
|
13
|
-
className?: NgClassType;
|
14
|
-
/**
|
15
|
-
* 自定义样式
|
16
|
-
*/
|
17
|
-
style?: NgStyleType;
|
18
|
-
/**
|
19
|
-
* flex 主轴的方向是否垂直,使用 flex-direction: column
|
20
|
-
* @default false
|
21
|
-
*/
|
22
|
-
vertical?: boolean;
|
23
|
-
/** 设置元素在主轴方向上的对齐方式 */
|
24
|
-
justify?: NzJustify;
|
25
|
-
/** 设置元素在交叉轴方向上的对齐方式 */
|
26
|
-
align?: NzAlign;
|
27
|
-
/** 设置网格之间的间隙 */
|
28
|
-
gap?: NzGap;
|
29
|
-
/** 设置元素单行显示还是多行显示 */
|
30
|
-
wrap?: NzWrap;
|
31
|
-
/** flex CSS 简写属性 */
|
32
|
-
flex?: NzFlex;
|
33
|
-
}
|
34
|
-
export interface FormlyFlexFieldConfig extends NzFormlyFieldConfig<FlexProps> {
|
35
|
-
type: 'flex' | Type<FormlyFieldFlex>;
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* @private
|
39
|
-
*/
|
40
|
-
export declare class FormlyFieldFlex extends FieldType<FieldTypeConfig<FlexProps>> {
|
41
|
-
defaultOptions: {
|
42
|
-
props: {
|
43
|
-
vertical: boolean;
|
44
|
-
justify: "normal";
|
45
|
-
align: "normal";
|
46
|
-
gap: number;
|
47
|
-
wrap: "nowrap";
|
48
|
-
flex: "unset";
|
49
|
-
};
|
50
|
-
};
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFlex, never>;
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldFlex, "formly-field-flex", never, {}, {}, never, never, false, never>;
|
53
|
-
}
|
package/flex/public_api.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./form-field.wrapper";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ng-zorro-antd/form";
|
6
|
-
import * as i5 from "ng-zorro-antd/core/outlet";
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
8
|
-
export declare class FormlyNzFormFieldModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFormFieldModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFormFieldModule, [typeof i1.FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzFormModule, typeof i5.NzOutletModule, typeof i6.FormlyModule], never>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFormFieldModule>;
|
12
|
-
}
|
@@ -1,180 +0,0 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import { AbstractControl, NgModel } from '@angular/forms';
|
3
|
-
import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
|
4
|
-
import type { NzFormTooltipIcon, NzLabelAlignType } from 'ng-zorro-antd/form';
|
5
|
-
import type { NzTSType } from 'ng-zorro-antd/core/types';
|
6
|
-
import type { ControlOptions, NgClassType, NgStyleType } from 'ngx-formly-zorro-antd/common';
|
7
|
-
/**
|
8
|
-
* @publicApi
|
9
|
-
*/
|
10
|
-
type strNumNull = string | number | null;
|
11
|
-
/**
|
12
|
-
* nz表单配置项
|
13
|
-
* @publicApi
|
14
|
-
*/
|
15
|
-
export interface NzFormWrapperProps extends ControlOptions {
|
16
|
-
/**
|
17
|
-
* 隐藏必填标记
|
18
|
-
*/
|
19
|
-
hideRequiredMarker?: boolean;
|
20
|
-
/**
|
21
|
-
* 隐藏Label
|
22
|
-
*/
|
23
|
-
hideLabel?: boolean;
|
24
|
-
/**
|
25
|
-
* 自定义css类
|
26
|
-
*/
|
27
|
-
className?: NgClassType;
|
28
|
-
/**
|
29
|
-
* 自定义样式
|
30
|
-
*/
|
31
|
-
style?: NgStyleType;
|
32
|
-
/**
|
33
|
-
* itemClass自定义css类
|
34
|
-
*/
|
35
|
-
itemClass?: string;
|
36
|
-
/**
|
37
|
-
* itemStyle自定义样式
|
38
|
-
*/
|
39
|
-
itemStyle?: NgStyleType;
|
40
|
-
/**
|
41
|
-
* labelClass
|
42
|
-
*/
|
43
|
-
labelClass?: string;
|
44
|
-
/**
|
45
|
-
* controlClass
|
46
|
-
*/
|
47
|
-
controlClass?: string;
|
48
|
-
/**
|
49
|
-
* labelStyle
|
50
|
-
*/
|
51
|
-
labelStyle?: NgStyleType;
|
52
|
-
/**
|
53
|
-
* controlStyle
|
54
|
-
*/
|
55
|
-
controlStyle?: NgStyleType;
|
56
|
-
/**
|
57
|
-
* 是否不显示 label 后面的冒号
|
58
|
-
* @default false
|
59
|
-
*/
|
60
|
-
noColon?: boolean;
|
61
|
-
/**
|
62
|
-
* 是否定义label nzFor
|
63
|
-
* @default false
|
64
|
-
*/
|
65
|
-
noFor?: boolean;
|
66
|
-
/**
|
67
|
-
* 配置提示信息
|
68
|
-
*/
|
69
|
-
tooltipTitle?: NzTSType;
|
70
|
-
tooltipTitleName?: string;
|
71
|
-
/**
|
72
|
-
* 配置提示信息的图标
|
73
|
-
*/
|
74
|
-
tooltipIcon?: string | NzFormTooltipIcon;
|
75
|
-
/**
|
76
|
-
* 标签文本对齐方式
|
77
|
-
* @default 'right'
|
78
|
-
*/
|
79
|
-
labelAlign?: NzLabelAlignType;
|
80
|
-
/**
|
81
|
-
* label 标签的文本换行
|
82
|
-
* @default false
|
83
|
-
*/
|
84
|
-
labelWrap?: boolean;
|
85
|
-
/**
|
86
|
-
* 配合 nzValidateStatus 属性使用,展示校验状态图标
|
87
|
-
* @default false
|
88
|
-
*/
|
89
|
-
hasFeedback?: boolean;
|
90
|
-
/**
|
91
|
-
* 描述
|
92
|
-
*/
|
93
|
-
description?: string;
|
94
|
-
/**
|
95
|
-
* 校验状态 success 时提示信息
|
96
|
-
*/
|
97
|
-
successTip?: NzTipType;
|
98
|
-
successTipName?: string;
|
99
|
-
/**
|
100
|
-
* 校验状态 warning 时提示信息
|
101
|
-
*/
|
102
|
-
warningTip?: NzTipType;
|
103
|
-
warningTipName?: string;
|
104
|
-
/**
|
105
|
-
* 正在校验时提示信息
|
106
|
-
*/
|
107
|
-
validatingTip?: NzTipType;
|
108
|
-
validatingTipName?: string;
|
109
|
-
/**
|
110
|
-
* 用于显示表单额外提示信息
|
111
|
-
*/
|
112
|
-
extra?: NzTSType;
|
113
|
-
extraName?: string;
|
114
|
-
/**
|
115
|
-
* 配置提示的对象, 具体用法请参考示例:自动提示
|
116
|
-
*/
|
117
|
-
autoTips?: Record<string, Record<string, string>>;
|
118
|
-
/**
|
119
|
-
* 禁用自动提示
|
120
|
-
*/
|
121
|
-
disableAutoTips?: boolean | 'default';
|
122
|
-
/** 在form-control尾部添加文本 */
|
123
|
-
afterText?: string;
|
124
|
-
afterTextName?: string;
|
125
|
-
/** flex 布局属性 */
|
126
|
-
labelFlex?: strNumNull;
|
127
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
128
|
-
labelOffset?: strNumNull;
|
129
|
-
/** 栅格顺序 */
|
130
|
-
labelOrder?: strNumNull;
|
131
|
-
/** 栅格向左移动格数 */
|
132
|
-
labelPull?: strNumNull;
|
133
|
-
/** 栅格向右移动格数 */
|
134
|
-
labelPush?: strNumNull;
|
135
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
136
|
-
labelSpan?: strNumNull;
|
137
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
138
|
-
labelXs?: strNumNull | EmbeddedProperty;
|
139
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
140
|
-
labelSm?: strNumNull | EmbeddedProperty;
|
141
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
142
|
-
labelMd?: strNumNull | EmbeddedProperty;
|
143
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
144
|
-
labelLg?: strNumNull | EmbeddedProperty;
|
145
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
146
|
-
labelXl?: strNumNull | EmbeddedProperty;
|
147
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
148
|
-
labelXXl?: strNumNull | EmbeddedProperty;
|
149
|
-
/** flex 布局属性 */
|
150
|
-
controlFlex?: strNumNull;
|
151
|
-
/** 栅格左侧的间隔格数,间隔内不可以有栅格 */
|
152
|
-
controlOffset?: strNumNull;
|
153
|
-
/** 栅格顺序 */
|
154
|
-
controlOrder?: strNumNull;
|
155
|
-
/** 栅格向左移动格数 */
|
156
|
-
controlPull?: strNumNull;
|
157
|
-
/** 栅格向右移动格数 */
|
158
|
-
controlPush?: strNumNull;
|
159
|
-
/** 栅格占位格数,为 0 时相当于 display: none */
|
160
|
-
controlSpan?: strNumNull;
|
161
|
-
/** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
162
|
-
controlXs?: strNumNull | EmbeddedProperty;
|
163
|
-
/** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
164
|
-
controlSm?: strNumNull | EmbeddedProperty;
|
165
|
-
/** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
166
|
-
controlMd?: strNumNull | EmbeddedProperty;
|
167
|
-
/** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
168
|
-
controlLg?: strNumNull | EmbeddedProperty;
|
169
|
-
/** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
170
|
-
controlXl?: strNumNull | EmbeddedProperty;
|
171
|
-
/** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
|
172
|
-
controlXXl?: strNumNull | EmbeddedProperty;
|
173
|
-
}
|
174
|
-
/**
|
175
|
-
* @publicApi
|
176
|
-
*/
|
177
|
-
export type NzTipType = string | TemplateRef<{
|
178
|
-
$implicit: AbstractControl | NgModel;
|
179
|
-
}>;
|
180
|
-
export {};
|