ngx-formly-zorro-antd 14.0.0 → 14.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +38 -38
- package/autocomplete/index.d.ts +5 -5
- package/autocomplete/public_api.d.ts +1 -1
- package/button/button.module.d.ts +11 -11
- package/button/button.type.d.ts +66 -66
- package/button/index.d.ts +5 -5
- package/button/public_api.d.ts +2 -2
- package/card/card.module.d.ts +10 -10
- package/card/card.wrapper.d.ts +58 -58
- package/card/index.d.ts +5 -5
- package/card/public_api.d.ts +2 -2
- package/cascader/cascader.module.d.ts +12 -12
- package/cascader/cascader.type.d.ts +152 -152
- package/cascader/index.d.ts +5 -5
- package/cascader/public_api.d.ts +2 -2
- package/checkbox/checkbox.module.d.ts +12 -12
- package/checkbox/checkbox.type.d.ts +35 -35
- package/checkbox/index.d.ts +5 -5
- package/checkbox/public_api.d.ts +2 -2
- package/datepicker/datepicker.module.d.ts +12 -12
- package/datepicker/datepicker.props.d.ts +144 -146
- package/datepicker/datepicker.type.d.ts +31 -31
- package/datepicker/index.d.ts +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -61
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -43
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -51
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -59
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -51
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +191 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -45
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -41
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -89
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -309
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -47
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -59
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -59
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -51
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -57
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +163 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -51
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -51
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -41
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -51
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -51
- package/esm2020/timepicker/timepicker.type.mjs +92 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -52
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -51
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -60
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/index.d.ts +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/index.d.ts +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/index.d.ts +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/index.d.ts +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/index.d.ts +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +5 -1
- package/radio/index.d.ts +5 -5
- package/radio/public_api.d.ts +2 -2
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.type.d.ts +38 -38
- package/rate/index.d.ts +5 -5
- package/rate/public_api.d.ts +2 -2
- package/rate/rate.module.d.ts +12 -12
- package/rate/rate.type.d.ts +57 -57
- package/select/index.d.ts +5 -5
- package/select/public_api.d.ts +2 -2
- package/select/select.module.d.ts +13 -13
- package/select/select.props.d.ts +162 -162
- package/select/select.type.d.ts +35 -35
- package/slider/index.d.ts +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/index.d.ts +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/index.d.ts +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/index.d.ts +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/index.d.ts +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +131 -131
- package/transfer/index.d.ts +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/index.d.ts +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/index.d.ts +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
@@ -1,131 +1,131 @@
|
|
1
|
-
import { TemplateRef, Type } from '@angular/core';
|
2
|
-
import { DatePipe } from '@angular/common';
|
3
|
-
import { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
|
4
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
interface TimepickerProps extends FormlyFieldProps {
|
7
|
-
/**
|
8
|
-
* 选择框底部显示自定义的内容
|
9
|
-
*/
|
10
|
-
addOn?: TemplateRef<void>;
|
11
|
-
/**
|
12
|
-
* 是否展示清除按钮
|
13
|
-
* @default true
|
14
|
-
*/
|
15
|
-
allowEmpty?: boolean;
|
16
|
-
/**
|
17
|
-
* 自动获取焦点
|
18
|
-
* @default false
|
19
|
-
*/
|
20
|
-
autoFocus?: boolean;
|
21
|
-
/**
|
22
|
-
* 浮层是否应带有背景板
|
23
|
-
* @default false
|
24
|
-
*/
|
25
|
-
backdrop?: boolean;
|
26
|
-
/**
|
27
|
-
* 清除按钮的提示文案
|
28
|
-
* @default clear
|
29
|
-
*/
|
30
|
-
clearText?: string;
|
31
|
-
/**
|
32
|
-
* 此刻按钮文本
|
33
|
-
* @default 此刻
|
34
|
-
*/
|
35
|
-
nowText?: string;
|
36
|
-
/**
|
37
|
-
* 确认按钮文本
|
38
|
-
* @default 确定
|
39
|
-
*/
|
40
|
-
okText?: string;
|
41
|
-
/**
|
42
|
-
* 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值
|
43
|
-
* @default new Date()
|
44
|
-
*/
|
45
|
-
defaultOpenValue?: Date;
|
46
|
-
/**
|
47
|
-
* 禁止选择部分小时选项
|
48
|
-
*/
|
49
|
-
disabledHours?: () => number[];
|
50
|
-
/**
|
51
|
-
* 禁止选择部分分钟选项
|
52
|
-
*/
|
53
|
-
disabledMinutes?: (hour: number) => number[];
|
54
|
-
/**
|
55
|
-
* 禁止选择部分秒选项
|
56
|
-
*/
|
57
|
-
disabledSeconds?: (hour: number, minute: number) => number[];
|
58
|
-
/**
|
59
|
-
* 展示的时间格式
|
60
|
-
* @default "HH:mm:ss"
|
61
|
-
*/
|
62
|
-
format?: DatePipe;
|
63
|
-
/**
|
64
|
-
* 隐藏禁止选择的选项
|
65
|
-
* @default false
|
66
|
-
*/
|
67
|
-
hideDisabledOptions?: boolean;
|
68
|
-
/**
|
69
|
-
* 小时选项间隔
|
70
|
-
* @default 1
|
71
|
-
*/
|
72
|
-
hourStep?: number;
|
73
|
-
/**
|
74
|
-
* 分钟选项间隔
|
75
|
-
* @default 1
|
76
|
-
*/
|
77
|
-
minuteStep?: number;
|
78
|
-
/**
|
79
|
-
* 秒选项间隔
|
80
|
-
* @default 1
|
81
|
-
*/
|
82
|
-
secondStep?: number;
|
83
|
-
/**
|
84
|
-
* 面板是否打开,可双向绑定
|
85
|
-
* @default false
|
86
|
-
*/
|
87
|
-
open?: boolean;
|
88
|
-
/**
|
89
|
-
* 弹出层类名
|
90
|
-
* @default '''
|
91
|
-
*/
|
92
|
-
popupClassName?: string;
|
93
|
-
/**
|
94
|
-
* 使用12小时制,为true时format默认为h:mm:ss a
|
95
|
-
* @default false
|
96
|
-
*/
|
97
|
-
use12Hours?: boolean;
|
98
|
-
/**
|
99
|
-
* 无边框
|
100
|
-
* @default false
|
101
|
-
*/
|
102
|
-
borderless?: boolean;
|
103
|
-
/**
|
104
|
-
* 自定义的后缀图标
|
105
|
-
*
|
106
|
-
*/
|
107
|
-
suffixIcon?: string | TemplateRef<void>;
|
108
|
-
/**
|
109
|
-
* 面板打开/关闭时的回调
|
110
|
-
*/
|
111
|
-
openChange?: (field: FormlyFieldConfig, value: boolean) => void;
|
112
|
-
}
|
113
|
-
export interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {
|
114
|
-
type: 'timepicker' | Type<FormlyFieldTimepicker>;
|
115
|
-
}
|
116
|
-
export declare class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {
|
117
|
-
defaultOptions: {
|
118
|
-
props: {
|
119
|
-
allowEmpty: boolean;
|
120
|
-
autoFocus: boolean;
|
121
|
-
backdrop: boolean;
|
122
|
-
open: boolean;
|
123
|
-
clearText: string;
|
124
|
-
defaultOpenValue: Date;
|
125
|
-
format: any;
|
126
|
-
};
|
127
|
-
};
|
128
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTimepicker, never>;
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTimepicker, "formly-field-timepicker", never, {}, {}, never, never, false>;
|
130
|
-
}
|
131
|
-
export {};
|
1
|
+
import { TemplateRef, Type } from '@angular/core';
|
2
|
+
import { DatePipe } from '@angular/common';
|
3
|
+
import { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
|
4
|
+
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface TimepickerProps extends FormlyFieldProps {
|
7
|
+
/**
|
8
|
+
* 选择框底部显示自定义的内容
|
9
|
+
*/
|
10
|
+
addOn?: TemplateRef<void>;
|
11
|
+
/**
|
12
|
+
* 是否展示清除按钮
|
13
|
+
* @default true
|
14
|
+
*/
|
15
|
+
allowEmpty?: boolean;
|
16
|
+
/**
|
17
|
+
* 自动获取焦点
|
18
|
+
* @default false
|
19
|
+
*/
|
20
|
+
autoFocus?: boolean;
|
21
|
+
/**
|
22
|
+
* 浮层是否应带有背景板
|
23
|
+
* @default false
|
24
|
+
*/
|
25
|
+
backdrop?: boolean;
|
26
|
+
/**
|
27
|
+
* 清除按钮的提示文案
|
28
|
+
* @default clear
|
29
|
+
*/
|
30
|
+
clearText?: string;
|
31
|
+
/**
|
32
|
+
* 此刻按钮文本
|
33
|
+
* @default 此刻
|
34
|
+
*/
|
35
|
+
nowText?: string;
|
36
|
+
/**
|
37
|
+
* 确认按钮文本
|
38
|
+
* @default 确定
|
39
|
+
*/
|
40
|
+
okText?: string;
|
41
|
+
/**
|
42
|
+
* 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值
|
43
|
+
* @default new Date()
|
44
|
+
*/
|
45
|
+
defaultOpenValue?: Date;
|
46
|
+
/**
|
47
|
+
* 禁止选择部分小时选项
|
48
|
+
*/
|
49
|
+
disabledHours?: () => number[];
|
50
|
+
/**
|
51
|
+
* 禁止选择部分分钟选项
|
52
|
+
*/
|
53
|
+
disabledMinutes?: (hour: number) => number[];
|
54
|
+
/**
|
55
|
+
* 禁止选择部分秒选项
|
56
|
+
*/
|
57
|
+
disabledSeconds?: (hour: number, minute: number) => number[];
|
58
|
+
/**
|
59
|
+
* 展示的时间格式
|
60
|
+
* @default "HH:mm:ss"
|
61
|
+
*/
|
62
|
+
format?: DatePipe;
|
63
|
+
/**
|
64
|
+
* 隐藏禁止选择的选项
|
65
|
+
* @default false
|
66
|
+
*/
|
67
|
+
hideDisabledOptions?: boolean;
|
68
|
+
/**
|
69
|
+
* 小时选项间隔
|
70
|
+
* @default 1
|
71
|
+
*/
|
72
|
+
hourStep?: number;
|
73
|
+
/**
|
74
|
+
* 分钟选项间隔
|
75
|
+
* @default 1
|
76
|
+
*/
|
77
|
+
minuteStep?: number;
|
78
|
+
/**
|
79
|
+
* 秒选项间隔
|
80
|
+
* @default 1
|
81
|
+
*/
|
82
|
+
secondStep?: number;
|
83
|
+
/**
|
84
|
+
* 面板是否打开,可双向绑定
|
85
|
+
* @default false
|
86
|
+
*/
|
87
|
+
open?: boolean;
|
88
|
+
/**
|
89
|
+
* 弹出层类名
|
90
|
+
* @default '''
|
91
|
+
*/
|
92
|
+
popupClassName?: string;
|
93
|
+
/**
|
94
|
+
* 使用12小时制,为true时format默认为h:mm:ss a
|
95
|
+
* @default false
|
96
|
+
*/
|
97
|
+
use12Hours?: boolean;
|
98
|
+
/**
|
99
|
+
* 无边框
|
100
|
+
* @default false
|
101
|
+
*/
|
102
|
+
borderless?: boolean;
|
103
|
+
/**
|
104
|
+
* 自定义的后缀图标
|
105
|
+
*
|
106
|
+
*/
|
107
|
+
suffixIcon?: string | TemplateRef<void>;
|
108
|
+
/**
|
109
|
+
* 面板打开/关闭时的回调
|
110
|
+
*/
|
111
|
+
openChange?: (field: FormlyFieldConfig, value: boolean) => void;
|
112
|
+
}
|
113
|
+
export interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {
|
114
|
+
type: 'timepicker' | Type<FormlyFieldTimepicker>;
|
115
|
+
}
|
116
|
+
export declare class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {
|
117
|
+
defaultOptions: {
|
118
|
+
props: {
|
119
|
+
allowEmpty: boolean;
|
120
|
+
autoFocus: boolean;
|
121
|
+
backdrop: boolean;
|
122
|
+
open: boolean;
|
123
|
+
clearText: string;
|
124
|
+
defaultOpenValue: Date;
|
125
|
+
format: any;
|
126
|
+
};
|
127
|
+
};
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTimepicker, never>;
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTimepicker, "formly-field-timepicker", never, {}, {}, never, never, false>;
|
130
|
+
}
|
131
|
+
export {};
|
package/transfer/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="ngx-formly-zorro-antd/transfer" />
|
5
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="ngx-formly-zorro-antd/transfer" />
|
5
|
+
export * from './public_api';
|
package/transfer/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { FormlyNzTransferModule } from './transfer.module';
|
2
|
-
export { FormlyFieldTransfer, FormlyTransferFieldConfig } from './transfer.type';
|
1
|
+
export { FormlyNzTransferModule } from './transfer.module';
|
2
|
+
export { FormlyFieldTransfer, FormlyTransferFieldConfig } from './transfer.type';
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
2
|
-
import { NzTransferComponent } from 'ng-zorro-antd/transfer';
|
3
|
-
import type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
|
-
import type { TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class TransferComponent extends NzTransferComponent implements ControlValueAccessor {
|
7
|
-
transfer: NzTransferComponent;
|
8
|
-
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
9
|
-
onChange: OnChangeType;
|
10
|
-
onTouched: OnTouchedType;
|
11
|
-
writeValue(obj: NzSafeAny): void;
|
12
|
-
registerOnChange(fn: NzSafeAny): void;
|
13
|
-
registerOnTouched(fn: NzSafeAny): void;
|
14
|
-
setDisabledState?(isDisabled: boolean): void;
|
15
|
-
change(value: TransferChange): void;
|
16
|
-
/**
|
17
|
-
* 选中项发生改变时的回调函数
|
18
|
-
*/
|
19
|
-
selectChange(value: TransferSelectChange): void;
|
20
|
-
/**
|
21
|
-
* 搜索框内容时改变时的回调函数
|
22
|
-
*/
|
23
|
-
searchChange(value: TransferSearchChange): void;
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TransferComponent, never>;
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TransferComponent, "formly-transfer", never, { "resultMap": "resultMap"; }, {}, never, never, false>;
|
26
|
-
}
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
2
|
+
import { NzTransferComponent } from 'ng-zorro-antd/transfer';
|
3
|
+
import type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
|
+
import type { TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class TransferComponent extends NzTransferComponent implements ControlValueAccessor {
|
7
|
+
transfer: NzTransferComponent;
|
8
|
+
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
9
|
+
onChange: OnChangeType;
|
10
|
+
onTouched: OnTouchedType;
|
11
|
+
writeValue(obj: NzSafeAny): void;
|
12
|
+
registerOnChange(fn: NzSafeAny): void;
|
13
|
+
registerOnTouched(fn: NzSafeAny): void;
|
14
|
+
setDisabledState?(isDisabled: boolean): void;
|
15
|
+
change(value: TransferChange): void;
|
16
|
+
/**
|
17
|
+
* 选中项发生改变时的回调函数
|
18
|
+
*/
|
19
|
+
selectChange(value: TransferSelectChange): void;
|
20
|
+
/**
|
21
|
+
* 搜索框内容时改变时的回调函数
|
22
|
+
*/
|
23
|
+
searchChange(value: TransferSearchChange): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TransferComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TransferComponent, "formly-transfer", never, { "resultMap": "resultMap"; }, {}, never, never, false>;
|
26
|
+
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./transfer.type";
|
3
|
-
import * as i2 from "./transfer.component";
|
4
|
-
import * as i3 from "@angular/common";
|
5
|
-
import * as i4 from "@angular/forms";
|
6
|
-
import * as i5 from "ngx-formly-zorro-antd/form-field";
|
7
|
-
import * as i6 from "ng-zorro-antd/transfer";
|
8
|
-
import * as i7 from "@ngx-formly/core";
|
9
|
-
export declare class FormlyNzTransferModule {
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTransferModule, never>;
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTransferModule, [typeof i1.FormlyFieldTransfer, typeof i2.TransferComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyNzFormFieldModule, typeof i6.NzTransferModule, typeof i7.FormlyModule], never>;
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTransferModule>;
|
13
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./transfer.type";
|
3
|
+
import * as i2 from "./transfer.component";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@angular/forms";
|
6
|
+
import * as i5 from "ngx-formly-zorro-antd/form-field";
|
7
|
+
import * as i6 from "ng-zorro-antd/transfer";
|
8
|
+
import * as i7 from "@ngx-formly/core";
|
9
|
+
export declare class FormlyNzTransferModule {
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTransferModule, never>;
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTransferModule, [typeof i1.FormlyFieldTransfer, typeof i2.TransferComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyNzFormFieldModule, typeof i6.NzTransferModule, typeof i7.FormlyModule], never>;
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTransferModule>;
|
13
|
+
}
|
@@ -1,118 +1,118 @@
|
|
1
|
-
import { TemplateRef, Type, OnInit } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
-
import { Observable } from 'rxjs';
|
5
|
-
import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
6
|
-
import type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
interface TransferProps extends FormlyFieldProps {
|
9
|
-
/**
|
10
|
-
* 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys
|
11
|
-
* @default []
|
12
|
-
*/
|
13
|
-
dataSource?: TransferItem[];
|
14
|
-
/**
|
15
|
-
* 标题集合,顺序从左至右
|
16
|
-
* @default ['', '']
|
17
|
-
*/
|
18
|
-
titles?: string[];
|
19
|
-
/**
|
20
|
-
* 操作文案集合,顺序从下至上
|
21
|
-
* @default ['', '']
|
22
|
-
*/
|
23
|
-
operations?: string[];
|
24
|
-
/**
|
25
|
-
* 两个穿梭框的自定义样式,等同 ngStyle
|
26
|
-
*/
|
27
|
-
listStyle?: NgStyleInterface;
|
28
|
-
/**
|
29
|
-
* 单数单位
|
30
|
-
* @default 项目
|
31
|
-
*/
|
32
|
-
itemUnit?: string;
|
33
|
-
/**
|
34
|
-
* 复数单位
|
35
|
-
* @default 项目
|
36
|
-
*/
|
37
|
-
itemsUnit?: string;
|
38
|
-
/**
|
39
|
-
* 自定义渲染列表,见示例
|
40
|
-
* @default [null, null]
|
41
|
-
*/
|
42
|
-
renderList?: Array<TemplateRef<NzSafeAny> | null> | null;
|
43
|
-
/**
|
44
|
-
* 每行数据渲染模板,见示例
|
45
|
-
*/
|
46
|
-
render?: TemplateRef<NzSafeAny> | null;
|
47
|
-
/**
|
48
|
-
* 底部渲染模板,见示例
|
49
|
-
*/
|
50
|
-
footer?: TemplateRef<NzSafeAny> | null;
|
51
|
-
/**
|
52
|
-
* 是否显示搜索框
|
53
|
-
* @default false
|
54
|
-
*/
|
55
|
-
showSearch?: boolean;
|
56
|
-
/**
|
57
|
-
* 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。
|
58
|
-
*/
|
59
|
-
filterOption?: (inputValue: string, item: TransferItem) => boolean;
|
60
|
-
/**
|
61
|
-
* 搜索框的默认值
|
62
|
-
* @default 请输入搜索内容
|
63
|
-
*/
|
64
|
-
searchPlaceholder?: string;
|
65
|
-
/**
|
66
|
-
* 当列表为空时显示的内容
|
67
|
-
* @default 列表为空
|
68
|
-
*/
|
69
|
-
notFoundContent?: string;
|
70
|
-
/**
|
71
|
-
* 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。
|
72
|
-
*/
|
73
|
-
canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;
|
74
|
-
/**
|
75
|
-
* 设置被选中的 key 集合
|
76
|
-
*/
|
77
|
-
selectedKeys?: string[];
|
78
|
-
/**
|
79
|
-
* 显示在右侧框数据的 key 集合
|
80
|
-
*/
|
81
|
-
targetKeys?: string[];
|
82
|
-
/**
|
83
|
-
* 选项在两栏之间转移时的回调函数
|
84
|
-
*/
|
85
|
-
onChange?: (value: TransferChange) => void;
|
86
|
-
/**
|
87
|
-
* 搜索框内容时改变时的回调函数
|
88
|
-
*/
|
89
|
-
searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;
|
90
|
-
/**
|
91
|
-
* 选中项发生改变时的回调函数
|
92
|
-
*/
|
93
|
-
selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;
|
94
|
-
/**
|
95
|
-
* 返回结果格式映射
|
96
|
-
* @returns 默认返回 TransferItem[] 格式
|
97
|
-
*/
|
98
|
-
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
99
|
-
}
|
100
|
-
export interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {
|
101
|
-
type: 'transfer' | Type<FormlyFieldTransfer>;
|
102
|
-
}
|
103
|
-
export declare class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {
|
104
|
-
defaultOptions: {
|
105
|
-
props: {
|
106
|
-
dataSource: never[];
|
107
|
-
titles: string[];
|
108
|
-
operations: string[];
|
109
|
-
renderList: null[];
|
110
|
-
listStyle: {};
|
111
|
-
};
|
112
|
-
};
|
113
|
-
transfer: NzTransferComponent;
|
114
|
-
ngOnInit(): void;
|
115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTransfer, never>;
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTransfer, "formly-field-transfer", never, {}, {}, never, never, false>;
|
117
|
-
}
|
118
|
-
export {};
|
1
|
+
import { TemplateRef, Type, OnInit } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
|
6
|
+
import type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
interface TransferProps extends FormlyFieldProps {
|
9
|
+
/**
|
10
|
+
* 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys
|
11
|
+
* @default []
|
12
|
+
*/
|
13
|
+
dataSource?: TransferItem[];
|
14
|
+
/**
|
15
|
+
* 标题集合,顺序从左至右
|
16
|
+
* @default ['', '']
|
17
|
+
*/
|
18
|
+
titles?: string[];
|
19
|
+
/**
|
20
|
+
* 操作文案集合,顺序从下至上
|
21
|
+
* @default ['', '']
|
22
|
+
*/
|
23
|
+
operations?: string[];
|
24
|
+
/**
|
25
|
+
* 两个穿梭框的自定义样式,等同 ngStyle
|
26
|
+
*/
|
27
|
+
listStyle?: NgStyleInterface;
|
28
|
+
/**
|
29
|
+
* 单数单位
|
30
|
+
* @default 项目
|
31
|
+
*/
|
32
|
+
itemUnit?: string;
|
33
|
+
/**
|
34
|
+
* 复数单位
|
35
|
+
* @default 项目
|
36
|
+
*/
|
37
|
+
itemsUnit?: string;
|
38
|
+
/**
|
39
|
+
* 自定义渲染列表,见示例
|
40
|
+
* @default [null, null]
|
41
|
+
*/
|
42
|
+
renderList?: Array<TemplateRef<NzSafeAny> | null> | null;
|
43
|
+
/**
|
44
|
+
* 每行数据渲染模板,见示例
|
45
|
+
*/
|
46
|
+
render?: TemplateRef<NzSafeAny> | null;
|
47
|
+
/**
|
48
|
+
* 底部渲染模板,见示例
|
49
|
+
*/
|
50
|
+
footer?: TemplateRef<NzSafeAny> | null;
|
51
|
+
/**
|
52
|
+
* 是否显示搜索框
|
53
|
+
* @default false
|
54
|
+
*/
|
55
|
+
showSearch?: boolean;
|
56
|
+
/**
|
57
|
+
* 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。
|
58
|
+
*/
|
59
|
+
filterOption?: (inputValue: string, item: TransferItem) => boolean;
|
60
|
+
/**
|
61
|
+
* 搜索框的默认值
|
62
|
+
* @default 请输入搜索内容
|
63
|
+
*/
|
64
|
+
searchPlaceholder?: string;
|
65
|
+
/**
|
66
|
+
* 当列表为空时显示的内容
|
67
|
+
* @default 列表为空
|
68
|
+
*/
|
69
|
+
notFoundContent?: string;
|
70
|
+
/**
|
71
|
+
* 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。
|
72
|
+
*/
|
73
|
+
canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;
|
74
|
+
/**
|
75
|
+
* 设置被选中的 key 集合
|
76
|
+
*/
|
77
|
+
selectedKeys?: string[];
|
78
|
+
/**
|
79
|
+
* 显示在右侧框数据的 key 集合
|
80
|
+
*/
|
81
|
+
targetKeys?: string[];
|
82
|
+
/**
|
83
|
+
* 选项在两栏之间转移时的回调函数
|
84
|
+
*/
|
85
|
+
onChange?: (value: TransferChange) => void;
|
86
|
+
/**
|
87
|
+
* 搜索框内容时改变时的回调函数
|
88
|
+
*/
|
89
|
+
searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;
|
90
|
+
/**
|
91
|
+
* 选中项发生改变时的回调函数
|
92
|
+
*/
|
93
|
+
selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;
|
94
|
+
/**
|
95
|
+
* 返回结果格式映射
|
96
|
+
* @returns 默认返回 TransferItem[] 格式
|
97
|
+
*/
|
98
|
+
resultMap?: (items: TransferItem[]) => NzSafeAny[];
|
99
|
+
}
|
100
|
+
export interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {
|
101
|
+
type: 'transfer' | Type<FormlyFieldTransfer>;
|
102
|
+
}
|
103
|
+
export declare class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {
|
104
|
+
defaultOptions: {
|
105
|
+
props: {
|
106
|
+
dataSource: never[];
|
107
|
+
titles: string[];
|
108
|
+
operations: string[];
|
109
|
+
renderList: null[];
|
110
|
+
listStyle: {};
|
111
|
+
};
|
112
|
+
};
|
113
|
+
transfer: NzTransferComponent;
|
114
|
+
ngOnInit(): void;
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTransfer, never>;
|
116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTransfer, "formly-field-transfer", never, {}, {}, never, never, false>;
|
117
|
+
}
|
118
|
+
export {};
|
package/tree-select/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="ngx-formly-zorro-antd/tree-select" />
|
5
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="ngx-formly-zorro-antd/tree-select" />
|
5
|
+
export * from './public_api';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { FormlyNzTreeSelectModule } from './tree-select.module';
|
2
|
-
export { FormlyFieldTreeSelect, FormlyTreeSelectFieldConfig } from './tree-select.type';
|
1
|
+
export { FormlyNzTreeSelectModule } from './tree-select.module';
|
2
|
+
export { FormlyFieldTreeSelect, FormlyTreeSelectFieldConfig } from './tree-select.type';
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./tree-select.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "ng-zorro-antd/tree-select";
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
8
|
-
export declare class FormlyNzTreeSelectModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTreeSelectModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzTreeSelectModule, typeof i6.FormlyModule], never>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTreeSelectModule>;
|
12
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./tree-select.type";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/forms";
|
5
|
+
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
+
import * as i5 from "ng-zorro-antd/tree-select";
|
7
|
+
import * as i6 from "@ngx-formly/core";
|
8
|
+
export declare class FormlyNzTreeSelectModule {
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTreeSelectModule, never>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzTreeSelectModule, typeof i6.FormlyModule], never>;
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTreeSelectModule>;
|
12
|
+
}
|