ngx-formly-zorro-antd 14.2.2 → 14.3.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 +149 -149
- package/datepicker/datepicker.type.d.ts +32 -32
- 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 +196 -196
- 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 +170 -167
- 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 +115 -115
- 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 +55 -55
- package/esm2020/textarea/textarea.type.mjs +141 -141
- 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 +96 -96
- 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 +100 -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 +253 -253
- package/esm2020/upload/upload.module.mjs +60 -60
- package/esm2020/upload/upload.props.mjs +2 -2
- package/esm2020/upload/upload.type.mjs +129 -129
- 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 +229 -229
- 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 +206 -203
- 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 +141 -141
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +176 -176
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +129 -129
- 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 +133 -131
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +410 -410
- 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 +229 -229
- 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 +206 -203
- 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 +141 -141
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +176 -176
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +129 -129
- 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 +133 -131
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +409 -409
- 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 -36
- 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 -81
- 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 +2 -2
- 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 +171 -166
- package/select/select.type.d.ts +36 -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 +13 -13
- package/textarea/textarea.type.d.ts +39 -39
- 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 +138 -138
- 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 +163 -158
- package/upload/index.d.ts +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +33 -33
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.props.d.ts +173 -173
- package/upload/upload.type.d.ts +29 -29
@@ -16,422 +16,422 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
16
16
|
import * as i4 from 'ng-zorro-antd/core/transition-patch';
|
17
17
|
import * as i5 from 'ng-zorro-antd/core/wave';
|
18
18
|
|
19
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
20
|
-
class UploadNzComponent extends NzUploadComponent {
|
21
|
-
constructor() {
|
22
|
-
super(...arguments);
|
23
|
-
/** 上传按钮的图标 */
|
24
|
-
this.nzeUploadButtonIcon = {
|
25
|
-
type: 'cloud-upload'
|
26
|
-
};
|
27
|
-
/** 样式名 */
|
28
|
-
this.className = '';
|
29
|
-
this.onChange = () => { };
|
30
|
-
this.onTouched = () => { };
|
31
|
-
}
|
32
|
-
writeValue() { }
|
33
|
-
registerOnChange(fn) {
|
34
|
-
this.onChange = fn;
|
35
|
-
}
|
36
|
-
registerOnTouched(fn) {
|
37
|
-
this.onTouched = fn;
|
38
|
-
}
|
39
|
-
setDisabledState(isDisabled) {
|
40
|
-
this.nzDisabled = isDisabled;
|
41
|
-
}
|
42
|
-
fileListChange(list) {
|
43
|
-
this.nzFileListChange.emit(list);
|
44
|
-
}
|
45
|
-
change(value) {
|
46
|
-
var _a;
|
47
|
-
this.nzChange.emit(value);
|
48
|
-
if (['removed', 'success'].includes((_a = value.type) !== null && _a !== void 0 ? _a : '')) {
|
49
|
-
if (this.resultMap instanceof Function) {
|
50
|
-
this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
this.onChange(value.fileList.filter(x => x.status === 'done'));
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
59
|
-
UploadNzComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
|
60
|
-
{
|
61
|
-
provide: NG_VALUE_ACCESSOR,
|
62
|
-
useExisting: forwardRef(() => UploadNzComponent),
|
63
|
-
multi: true
|
64
|
-
}
|
65
|
-
], usesInheritance: true, ngImport: i0, template: `
|
66
|
-
<nz-upload
|
67
|
-
[nzType]="nzType"
|
68
|
-
[nzAccept]="nzAccept"
|
69
|
-
[nzAction]="nzAction"
|
70
|
-
[nzDirectory]="nzDirectory"
|
71
|
-
[nzBeforeUpload]="nzBeforeUpload"
|
72
|
-
[nzCustomRequest]="nzCustomRequest"
|
73
|
-
[nzData]="nzData"
|
74
|
-
[nzDisabled]="nzDisabled"
|
75
|
-
[(nzFileList)]="nzFileList"
|
76
|
-
[nzLimit]="nzLimit"
|
77
|
-
[nzSize]="nzSize"
|
78
|
-
[nzFileType]="nzFileType"
|
79
|
-
[nzFilter]="nzFilter"
|
80
|
-
[nzHeaders]="nzHeaders"
|
81
|
-
[nzListType]="nzListType"
|
82
|
-
[nzMultiple]="nzMultiple"
|
83
|
-
[nzName]="nzName"
|
84
|
-
[nzShowUploadList]="nzShowUploadList"
|
85
|
-
[nzShowButton]="nzShowButton"
|
86
|
-
[nzWithCredentials]="nzWithCredentials"
|
87
|
-
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
88
|
-
[nzPreview]="nzPreview"
|
89
|
-
[nzPreviewFile]="nzPreviewFile"
|
90
|
-
[nzPreviewIsImage]="nzPreviewIsImage"
|
91
|
-
[nzRemove]="nzRemove"
|
92
|
-
[nzDownload]="nzDownload"
|
93
|
-
[nzTransformFile]="nzTransformFile"
|
94
|
-
[nzIconRender]="nzIconRender"
|
95
|
-
[nzFileListRender]="nzFileListRender"
|
96
|
-
[ngClass]="className"
|
97
|
-
(nzChange)="change($event)"
|
98
|
-
(nzFileListChange)="fileListChange($event)"
|
99
|
-
>
|
100
|
-
<ng-container [ngSwitch]="nzType">
|
101
|
-
<ng-container *ngSwitchCase="'drag'">
|
102
|
-
<p class="ant-upload-drag-icon">
|
103
|
-
<span
|
104
|
-
*ngIf="nzeUploadButtonIcon"
|
105
|
-
nz-icon
|
106
|
-
[nzType]="nzeUploadButtonIcon.type"
|
107
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
108
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
109
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
110
|
-
></span>
|
111
|
-
</p>
|
112
|
-
<p class="ant-upload-text">{{ nzeText }}</p>
|
113
|
-
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
114
|
-
</ng-container>
|
115
|
-
<ng-container *ngSwitchDefault>
|
116
|
-
<button
|
117
|
-
type="button"
|
118
|
-
nz-button
|
119
|
-
[disabled]="nzDisabled!!"
|
120
|
-
*ngIf="nzeShowUploadButton !== false"
|
121
|
-
>
|
122
|
-
<span
|
123
|
-
*ngIf="nzeUploadButtonIcon"
|
124
|
-
nz-icon
|
125
|
-
[nzType]="nzeUploadButtonIcon.type"
|
126
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
127
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
128
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
129
|
-
></span>
|
130
|
-
{{ nzeText }}
|
131
|
-
</button>
|
132
|
-
|
133
|
-
<div *ngIf="nzeShowUploadButton === false">
|
134
|
-
<span
|
135
|
-
*ngIf="nzeUploadButtonIcon"
|
136
|
-
nz-icon
|
137
|
-
[nzType]="nzeUploadButtonIcon.type"
|
138
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
139
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
140
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
141
|
-
></span>
|
142
|
-
{{ nzeText }}
|
143
|
-
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
144
|
-
</div>
|
145
|
-
</ng-container>
|
146
|
-
</ng-container>
|
147
|
-
</nz-upload>
|
148
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
|
150
|
-
type: Component,
|
151
|
-
args: [{
|
152
|
-
selector: 'formly-nz-upload',
|
153
|
-
template: `
|
154
|
-
<nz-upload
|
155
|
-
[nzType]="nzType"
|
156
|
-
[nzAccept]="nzAccept"
|
157
|
-
[nzAction]="nzAction"
|
158
|
-
[nzDirectory]="nzDirectory"
|
159
|
-
[nzBeforeUpload]="nzBeforeUpload"
|
160
|
-
[nzCustomRequest]="nzCustomRequest"
|
161
|
-
[nzData]="nzData"
|
162
|
-
[nzDisabled]="nzDisabled"
|
163
|
-
[(nzFileList)]="nzFileList"
|
164
|
-
[nzLimit]="nzLimit"
|
165
|
-
[nzSize]="nzSize"
|
166
|
-
[nzFileType]="nzFileType"
|
167
|
-
[nzFilter]="nzFilter"
|
168
|
-
[nzHeaders]="nzHeaders"
|
169
|
-
[nzListType]="nzListType"
|
170
|
-
[nzMultiple]="nzMultiple"
|
171
|
-
[nzName]="nzName"
|
172
|
-
[nzShowUploadList]="nzShowUploadList"
|
173
|
-
[nzShowButton]="nzShowButton"
|
174
|
-
[nzWithCredentials]="nzWithCredentials"
|
175
|
-
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
176
|
-
[nzPreview]="nzPreview"
|
177
|
-
[nzPreviewFile]="nzPreviewFile"
|
178
|
-
[nzPreviewIsImage]="nzPreviewIsImage"
|
179
|
-
[nzRemove]="nzRemove"
|
180
|
-
[nzDownload]="nzDownload"
|
181
|
-
[nzTransformFile]="nzTransformFile"
|
182
|
-
[nzIconRender]="nzIconRender"
|
183
|
-
[nzFileListRender]="nzFileListRender"
|
184
|
-
[ngClass]="className"
|
185
|
-
(nzChange)="change($event)"
|
186
|
-
(nzFileListChange)="fileListChange($event)"
|
187
|
-
>
|
188
|
-
<ng-container [ngSwitch]="nzType">
|
189
|
-
<ng-container *ngSwitchCase="'drag'">
|
190
|
-
<p class="ant-upload-drag-icon">
|
191
|
-
<span
|
192
|
-
*ngIf="nzeUploadButtonIcon"
|
193
|
-
nz-icon
|
194
|
-
[nzType]="nzeUploadButtonIcon.type"
|
195
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
196
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
197
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
198
|
-
></span>
|
199
|
-
</p>
|
200
|
-
<p class="ant-upload-text">{{ nzeText }}</p>
|
201
|
-
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
202
|
-
</ng-container>
|
203
|
-
<ng-container *ngSwitchDefault>
|
204
|
-
<button
|
205
|
-
type="button"
|
206
|
-
nz-button
|
207
|
-
[disabled]="nzDisabled!!"
|
208
|
-
*ngIf="nzeShowUploadButton !== false"
|
209
|
-
>
|
210
|
-
<span
|
211
|
-
*ngIf="nzeUploadButtonIcon"
|
212
|
-
nz-icon
|
213
|
-
[nzType]="nzeUploadButtonIcon.type"
|
214
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
215
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
216
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
217
|
-
></span>
|
218
|
-
{{ nzeText }}
|
219
|
-
</button>
|
220
|
-
|
221
|
-
<div *ngIf="nzeShowUploadButton === false">
|
222
|
-
<span
|
223
|
-
*ngIf="nzeUploadButtonIcon"
|
224
|
-
nz-icon
|
225
|
-
[nzType]="nzeUploadButtonIcon.type"
|
226
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
227
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
228
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
229
|
-
></span>
|
230
|
-
{{ nzeText }}
|
231
|
-
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
232
|
-
</div>
|
233
|
-
</ng-container>
|
234
|
-
</ng-container>
|
235
|
-
</nz-upload>
|
236
|
-
`,
|
237
|
-
encapsulation: ViewEncapsulation.None,
|
238
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
239
|
-
providers: [
|
240
|
-
{
|
241
|
-
provide: NG_VALUE_ACCESSOR,
|
242
|
-
useExisting: forwardRef(() => UploadNzComponent),
|
243
|
-
multi: true
|
244
|
-
}
|
245
|
-
]
|
246
|
-
}]
|
247
|
-
}], propDecorators: { nzeText: [{
|
248
|
-
type: Input
|
249
|
-
}], nzeHint: [{
|
250
|
-
type: Input
|
251
|
-
}], nzeShowUploadButton: [{
|
252
|
-
type: Input
|
253
|
-
}], nzeUploadButton: [{
|
254
|
-
type: Input
|
255
|
-
}], nzeUploadButtonIcon: [{
|
256
|
-
type: Input
|
257
|
-
}], className: [{
|
258
|
-
type: Input
|
259
|
-
}], resultMap: [{
|
260
|
-
type: Input
|
19
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
20
|
+
class UploadNzComponent extends NzUploadComponent {
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
/** 上传按钮的图标 */
|
24
|
+
this.nzeUploadButtonIcon = {
|
25
|
+
type: 'cloud-upload'
|
26
|
+
};
|
27
|
+
/** 样式名 */
|
28
|
+
this.className = '';
|
29
|
+
this.onChange = () => { };
|
30
|
+
this.onTouched = () => { };
|
31
|
+
}
|
32
|
+
writeValue() { }
|
33
|
+
registerOnChange(fn) {
|
34
|
+
this.onChange = fn;
|
35
|
+
}
|
36
|
+
registerOnTouched(fn) {
|
37
|
+
this.onTouched = fn;
|
38
|
+
}
|
39
|
+
setDisabledState(isDisabled) {
|
40
|
+
this.nzDisabled = isDisabled;
|
41
|
+
}
|
42
|
+
fileListChange(list) {
|
43
|
+
this.nzFileListChange.emit(list);
|
44
|
+
}
|
45
|
+
change(value) {
|
46
|
+
var _a;
|
47
|
+
this.nzChange.emit(value);
|
48
|
+
if (['removed', 'success'].includes((_a = value.type) !== null && _a !== void 0 ? _a : '')) {
|
49
|
+
if (this.resultMap instanceof Function) {
|
50
|
+
this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
this.onChange(value.fileList.filter(x => x.status === 'done'));
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
59
|
+
UploadNzComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
|
60
|
+
{
|
61
|
+
provide: NG_VALUE_ACCESSOR,
|
62
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
63
|
+
multi: true
|
64
|
+
}
|
65
|
+
], usesInheritance: true, ngImport: i0, template: `
|
66
|
+
<nz-upload
|
67
|
+
[nzType]="nzType"
|
68
|
+
[nzAccept]="nzAccept"
|
69
|
+
[nzAction]="nzAction"
|
70
|
+
[nzDirectory]="nzDirectory"
|
71
|
+
[nzBeforeUpload]="nzBeforeUpload"
|
72
|
+
[nzCustomRequest]="nzCustomRequest"
|
73
|
+
[nzData]="nzData"
|
74
|
+
[nzDisabled]="nzDisabled"
|
75
|
+
[(nzFileList)]="nzFileList"
|
76
|
+
[nzLimit]="nzLimit"
|
77
|
+
[nzSize]="nzSize"
|
78
|
+
[nzFileType]="nzFileType"
|
79
|
+
[nzFilter]="nzFilter"
|
80
|
+
[nzHeaders]="nzHeaders"
|
81
|
+
[nzListType]="nzListType"
|
82
|
+
[nzMultiple]="nzMultiple"
|
83
|
+
[nzName]="nzName"
|
84
|
+
[nzShowUploadList]="nzShowUploadList"
|
85
|
+
[nzShowButton]="nzShowButton"
|
86
|
+
[nzWithCredentials]="nzWithCredentials"
|
87
|
+
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
88
|
+
[nzPreview]="nzPreview"
|
89
|
+
[nzPreviewFile]="nzPreviewFile"
|
90
|
+
[nzPreviewIsImage]="nzPreviewIsImage"
|
91
|
+
[nzRemove]="nzRemove"
|
92
|
+
[nzDownload]="nzDownload"
|
93
|
+
[nzTransformFile]="nzTransformFile"
|
94
|
+
[nzIconRender]="nzIconRender"
|
95
|
+
[nzFileListRender]="nzFileListRender"
|
96
|
+
[ngClass]="className"
|
97
|
+
(nzChange)="change($event)"
|
98
|
+
(nzFileListChange)="fileListChange($event)"
|
99
|
+
>
|
100
|
+
<ng-container [ngSwitch]="nzType">
|
101
|
+
<ng-container *ngSwitchCase="'drag'">
|
102
|
+
<p class="ant-upload-drag-icon">
|
103
|
+
<span
|
104
|
+
*ngIf="nzeUploadButtonIcon"
|
105
|
+
nz-icon
|
106
|
+
[nzType]="nzeUploadButtonIcon.type"
|
107
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
108
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
109
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
110
|
+
></span>
|
111
|
+
</p>
|
112
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
113
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
114
|
+
</ng-container>
|
115
|
+
<ng-container *ngSwitchDefault>
|
116
|
+
<button
|
117
|
+
type="button"
|
118
|
+
nz-button
|
119
|
+
[disabled]="nzDisabled!!"
|
120
|
+
*ngIf="nzeShowUploadButton !== false"
|
121
|
+
>
|
122
|
+
<span
|
123
|
+
*ngIf="nzeUploadButtonIcon"
|
124
|
+
nz-icon
|
125
|
+
[nzType]="nzeUploadButtonIcon.type"
|
126
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
127
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
128
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
129
|
+
></span>
|
130
|
+
{{ nzeText }}
|
131
|
+
</button>
|
132
|
+
|
133
|
+
<div *ngIf="nzeShowUploadButton === false">
|
134
|
+
<span
|
135
|
+
*ngIf="nzeUploadButtonIcon"
|
136
|
+
nz-icon
|
137
|
+
[nzType]="nzeUploadButtonIcon.type"
|
138
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
139
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
140
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
141
|
+
></span>
|
142
|
+
{{ nzeText }}
|
143
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
144
|
+
</div>
|
145
|
+
</ng-container>
|
146
|
+
</ng-container>
|
147
|
+
</nz-upload>
|
148
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
|
150
|
+
type: Component,
|
151
|
+
args: [{
|
152
|
+
selector: 'formly-nz-upload',
|
153
|
+
template: `
|
154
|
+
<nz-upload
|
155
|
+
[nzType]="nzType"
|
156
|
+
[nzAccept]="nzAccept"
|
157
|
+
[nzAction]="nzAction"
|
158
|
+
[nzDirectory]="nzDirectory"
|
159
|
+
[nzBeforeUpload]="nzBeforeUpload"
|
160
|
+
[nzCustomRequest]="nzCustomRequest"
|
161
|
+
[nzData]="nzData"
|
162
|
+
[nzDisabled]="nzDisabled"
|
163
|
+
[(nzFileList)]="nzFileList"
|
164
|
+
[nzLimit]="nzLimit"
|
165
|
+
[nzSize]="nzSize"
|
166
|
+
[nzFileType]="nzFileType"
|
167
|
+
[nzFilter]="nzFilter"
|
168
|
+
[nzHeaders]="nzHeaders"
|
169
|
+
[nzListType]="nzListType"
|
170
|
+
[nzMultiple]="nzMultiple"
|
171
|
+
[nzName]="nzName"
|
172
|
+
[nzShowUploadList]="nzShowUploadList"
|
173
|
+
[nzShowButton]="nzShowButton"
|
174
|
+
[nzWithCredentials]="nzWithCredentials"
|
175
|
+
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
176
|
+
[nzPreview]="nzPreview"
|
177
|
+
[nzPreviewFile]="nzPreviewFile"
|
178
|
+
[nzPreviewIsImage]="nzPreviewIsImage"
|
179
|
+
[nzRemove]="nzRemove"
|
180
|
+
[nzDownload]="nzDownload"
|
181
|
+
[nzTransformFile]="nzTransformFile"
|
182
|
+
[nzIconRender]="nzIconRender"
|
183
|
+
[nzFileListRender]="nzFileListRender"
|
184
|
+
[ngClass]="className"
|
185
|
+
(nzChange)="change($event)"
|
186
|
+
(nzFileListChange)="fileListChange($event)"
|
187
|
+
>
|
188
|
+
<ng-container [ngSwitch]="nzType">
|
189
|
+
<ng-container *ngSwitchCase="'drag'">
|
190
|
+
<p class="ant-upload-drag-icon">
|
191
|
+
<span
|
192
|
+
*ngIf="nzeUploadButtonIcon"
|
193
|
+
nz-icon
|
194
|
+
[nzType]="nzeUploadButtonIcon.type"
|
195
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
196
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
197
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
198
|
+
></span>
|
199
|
+
</p>
|
200
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
201
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
202
|
+
</ng-container>
|
203
|
+
<ng-container *ngSwitchDefault>
|
204
|
+
<button
|
205
|
+
type="button"
|
206
|
+
nz-button
|
207
|
+
[disabled]="nzDisabled!!"
|
208
|
+
*ngIf="nzeShowUploadButton !== false"
|
209
|
+
>
|
210
|
+
<span
|
211
|
+
*ngIf="nzeUploadButtonIcon"
|
212
|
+
nz-icon
|
213
|
+
[nzType]="nzeUploadButtonIcon.type"
|
214
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
215
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
216
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
217
|
+
></span>
|
218
|
+
{{ nzeText }}
|
219
|
+
</button>
|
220
|
+
|
221
|
+
<div *ngIf="nzeShowUploadButton === false">
|
222
|
+
<span
|
223
|
+
*ngIf="nzeUploadButtonIcon"
|
224
|
+
nz-icon
|
225
|
+
[nzType]="nzeUploadButtonIcon.type"
|
226
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
227
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
228
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
229
|
+
></span>
|
230
|
+
{{ nzeText }}
|
231
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
232
|
+
</div>
|
233
|
+
</ng-container>
|
234
|
+
</ng-container>
|
235
|
+
</nz-upload>
|
236
|
+
`,
|
237
|
+
encapsulation: ViewEncapsulation.None,
|
238
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
239
|
+
providers: [
|
240
|
+
{
|
241
|
+
provide: NG_VALUE_ACCESSOR,
|
242
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
243
|
+
multi: true
|
244
|
+
}
|
245
|
+
]
|
246
|
+
}]
|
247
|
+
}], propDecorators: { nzeText: [{
|
248
|
+
type: Input
|
249
|
+
}], nzeHint: [{
|
250
|
+
type: Input
|
251
|
+
}], nzeShowUploadButton: [{
|
252
|
+
type: Input
|
253
|
+
}], nzeUploadButton: [{
|
254
|
+
type: Input
|
255
|
+
}], nzeUploadButtonIcon: [{
|
256
|
+
type: Input
|
257
|
+
}], className: [{
|
258
|
+
type: Input
|
259
|
+
}], resultMap: [{
|
260
|
+
type: Input
|
261
261
|
}] } });
|
262
262
|
|
263
|
-
class FormlyFieldUpload extends FieldType {
|
264
|
-
constructor() {
|
265
|
-
super(...arguments);
|
266
|
-
this.defaultOptions = {
|
267
|
-
props: {
|
268
|
-
listType: 'text',
|
269
|
-
name: 'file',
|
270
|
-
showUploadList: true,
|
271
|
-
showButton: true,
|
272
|
-
openFileDialogOnClick: true,
|
273
|
-
showUploadButton: true,
|
274
|
-
limit: 0,
|
275
|
-
size: 0,
|
276
|
-
fileList: [],
|
277
|
-
filter: [],
|
278
|
-
text: ''
|
279
|
-
}
|
280
|
-
};
|
281
|
-
}
|
282
|
-
ngOnInit() {
|
283
|
-
const type = this.props.type;
|
284
|
-
if (type) {
|
285
|
-
this.upload.nzType = type;
|
286
|
-
}
|
287
|
-
}
|
288
|
-
}
|
289
|
-
FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
290
|
-
FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
|
291
|
-
#upload
|
292
|
-
[formControl]="formControl"
|
293
|
-
[formlyAttributes]="field"
|
294
|
-
[nzAccept]="props['accept']"
|
295
|
-
[nzAction]="props['action']"
|
296
|
-
[nzDirectory]="props['directory']!!"
|
297
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
298
|
-
[nzCustomRequest]="props['customRequest']"
|
299
|
-
[nzData]="props['data']"
|
300
|
-
[nzDisabled]="props['disabled']!!"
|
301
|
-
[(nzFileList)]="props['fileList']"
|
302
|
-
[nzLimit]="props['limit']"
|
303
|
-
[nzSize]="props['size']"
|
304
|
-
[nzFileType]="props['fileType']"
|
305
|
-
[nzFilter]="props['filter']!"
|
306
|
-
[nzHeaders]="props['headers']"
|
307
|
-
[nzListType]="props['listType']!"
|
308
|
-
[nzMultiple]="props['multiple']!!"
|
309
|
-
[nzName]="props['name'] || ''"
|
310
|
-
[nzShowUploadList]="props['showUploadList']"
|
311
|
-
[nzShowButton]="props['showButton']!!"
|
312
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
313
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
314
|
-
[nzPreview]="props['preview']"
|
315
|
-
[nzPreviewFile]="props['previewFile']"
|
316
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
317
|
-
[nzRemove]="props['remove']"
|
318
|
-
(nzChange)="props.change && props.change(field, $event)"
|
319
|
-
[nzDownload]="props['download']"
|
320
|
-
[nzTransformFile]="props['transformFile']"
|
321
|
-
[nzIconRender]="props['iconRender'] ?? null"
|
322
|
-
[nzFileListRender]="props['fileListRender'] ?? null"
|
323
|
-
[resultMap]="props['resultMap']"
|
324
|
-
[nzeHint]="props['hint']"
|
325
|
-
[nzeText]="props['text']"
|
326
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
327
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
328
|
-
[className]="props['className'] || ''"
|
329
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
330
|
-
>
|
331
|
-
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
333
|
-
type: Component,
|
334
|
-
args: [{
|
335
|
-
selector: 'formly-field-upload',
|
336
|
-
template: `<formly-nz-upload
|
337
|
-
#upload
|
338
|
-
[formControl]="formControl"
|
339
|
-
[formlyAttributes]="field"
|
340
|
-
[nzAccept]="props['accept']"
|
341
|
-
[nzAction]="props['action']"
|
342
|
-
[nzDirectory]="props['directory']!!"
|
343
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
344
|
-
[nzCustomRequest]="props['customRequest']"
|
345
|
-
[nzData]="props['data']"
|
346
|
-
[nzDisabled]="props['disabled']!!"
|
347
|
-
[(nzFileList)]="props['fileList']"
|
348
|
-
[nzLimit]="props['limit']"
|
349
|
-
[nzSize]="props['size']"
|
350
|
-
[nzFileType]="props['fileType']"
|
351
|
-
[nzFilter]="props['filter']!"
|
352
|
-
[nzHeaders]="props['headers']"
|
353
|
-
[nzListType]="props['listType']!"
|
354
|
-
[nzMultiple]="props['multiple']!!"
|
355
|
-
[nzName]="props['name'] || ''"
|
356
|
-
[nzShowUploadList]="props['showUploadList']"
|
357
|
-
[nzShowButton]="props['showButton']!!"
|
358
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
359
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
360
|
-
[nzPreview]="props['preview']"
|
361
|
-
[nzPreviewFile]="props['previewFile']"
|
362
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
363
|
-
[nzRemove]="props['remove']"
|
364
|
-
(nzChange)="props.change && props.change(field, $event)"
|
365
|
-
[nzDownload]="props['download']"
|
366
|
-
[nzTransformFile]="props['transformFile']"
|
367
|
-
[nzIconRender]="props['iconRender'] ?? null"
|
368
|
-
[nzFileListRender]="props['fileListRender'] ?? null"
|
369
|
-
[resultMap]="props['resultMap']"
|
370
|
-
[nzeHint]="props['hint']"
|
371
|
-
[nzeText]="props['text']"
|
372
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
373
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
374
|
-
[className]="props['className'] || ''"
|
375
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
376
|
-
>
|
377
|
-
</formly-nz-upload>`,
|
378
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
379
|
-
}]
|
380
|
-
}], propDecorators: { upload: [{
|
381
|
-
type: ViewChild,
|
382
|
-
args: ['upload', { static: true }]
|
263
|
+
class FormlyFieldUpload extends FieldType {
|
264
|
+
constructor() {
|
265
|
+
super(...arguments);
|
266
|
+
this.defaultOptions = {
|
267
|
+
props: {
|
268
|
+
listType: 'text',
|
269
|
+
name: 'file',
|
270
|
+
showUploadList: true,
|
271
|
+
showButton: true,
|
272
|
+
openFileDialogOnClick: true,
|
273
|
+
showUploadButton: true,
|
274
|
+
limit: 0,
|
275
|
+
size: 0,
|
276
|
+
fileList: [],
|
277
|
+
filter: [],
|
278
|
+
text: ''
|
279
|
+
}
|
280
|
+
};
|
281
|
+
}
|
282
|
+
ngOnInit() {
|
283
|
+
const type = this.props.type;
|
284
|
+
if (type) {
|
285
|
+
this.upload.nzType = type;
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
290
|
+
FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
|
291
|
+
#upload
|
292
|
+
[formControl]="formControl"
|
293
|
+
[formlyAttributes]="field"
|
294
|
+
[nzAccept]="props['accept']"
|
295
|
+
[nzAction]="props['action']"
|
296
|
+
[nzDirectory]="props['directory']!!"
|
297
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
298
|
+
[nzCustomRequest]="props['customRequest']"
|
299
|
+
[nzData]="props['data']"
|
300
|
+
[nzDisabled]="props['disabled']!!"
|
301
|
+
[(nzFileList)]="props['fileList']"
|
302
|
+
[nzLimit]="props['limit']"
|
303
|
+
[nzSize]="props['size']"
|
304
|
+
[nzFileType]="props['fileType']"
|
305
|
+
[nzFilter]="props['filter']!"
|
306
|
+
[nzHeaders]="props['headers']"
|
307
|
+
[nzListType]="props['listType']!"
|
308
|
+
[nzMultiple]="props['multiple']!!"
|
309
|
+
[nzName]="props['name'] || ''"
|
310
|
+
[nzShowUploadList]="props['showUploadList']"
|
311
|
+
[nzShowButton]="props['showButton']!!"
|
312
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
313
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
314
|
+
[nzPreview]="props['preview']"
|
315
|
+
[nzPreviewFile]="props['previewFile']"
|
316
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
317
|
+
[nzRemove]="props['remove']"
|
318
|
+
(nzChange)="props.change && props.change(field, $event)"
|
319
|
+
[nzDownload]="props['download']"
|
320
|
+
[nzTransformFile]="props['transformFile']"
|
321
|
+
[nzIconRender]="props['iconRender'] ?? null"
|
322
|
+
[nzFileListRender]="props['fileListRender'] ?? null"
|
323
|
+
[resultMap]="props['resultMap']"
|
324
|
+
[nzeHint]="props['hint']"
|
325
|
+
[nzeText]="props['text']"
|
326
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
327
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
328
|
+
[className]="props['className'] || ''"
|
329
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
330
|
+
>
|
331
|
+
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
333
|
+
type: Component,
|
334
|
+
args: [{
|
335
|
+
selector: 'formly-field-upload',
|
336
|
+
template: `<formly-nz-upload
|
337
|
+
#upload
|
338
|
+
[formControl]="formControl"
|
339
|
+
[formlyAttributes]="field"
|
340
|
+
[nzAccept]="props['accept']"
|
341
|
+
[nzAction]="props['action']"
|
342
|
+
[nzDirectory]="props['directory']!!"
|
343
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
344
|
+
[nzCustomRequest]="props['customRequest']"
|
345
|
+
[nzData]="props['data']"
|
346
|
+
[nzDisabled]="props['disabled']!!"
|
347
|
+
[(nzFileList)]="props['fileList']"
|
348
|
+
[nzLimit]="props['limit']"
|
349
|
+
[nzSize]="props['size']"
|
350
|
+
[nzFileType]="props['fileType']"
|
351
|
+
[nzFilter]="props['filter']!"
|
352
|
+
[nzHeaders]="props['headers']"
|
353
|
+
[nzListType]="props['listType']!"
|
354
|
+
[nzMultiple]="props['multiple']!!"
|
355
|
+
[nzName]="props['name'] || ''"
|
356
|
+
[nzShowUploadList]="props['showUploadList']"
|
357
|
+
[nzShowButton]="props['showButton']!!"
|
358
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
359
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
360
|
+
[nzPreview]="props['preview']"
|
361
|
+
[nzPreviewFile]="props['previewFile']"
|
362
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
363
|
+
[nzRemove]="props['remove']"
|
364
|
+
(nzChange)="props.change && props.change(field, $event)"
|
365
|
+
[nzDownload]="props['download']"
|
366
|
+
[nzTransformFile]="props['transformFile']"
|
367
|
+
[nzIconRender]="props['iconRender'] ?? null"
|
368
|
+
[nzFileListRender]="props['fileListRender'] ?? null"
|
369
|
+
[resultMap]="props['resultMap']"
|
370
|
+
[nzeHint]="props['hint']"
|
371
|
+
[nzeText]="props['text']"
|
372
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
373
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
374
|
+
[className]="props['className'] || ''"
|
375
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
376
|
+
>
|
377
|
+
</formly-nz-upload>`,
|
378
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
379
|
+
}]
|
380
|
+
}], propDecorators: { upload: [{
|
381
|
+
type: ViewChild,
|
382
|
+
args: ['upload', { static: true }]
|
383
383
|
}] } });
|
384
384
|
|
385
|
-
class FormlyNzUploadModule {
|
386
|
-
}
|
387
|
-
FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
388
|
-
FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
|
389
|
-
ReactiveFormsModule,
|
390
|
-
FormlyNzFormFieldModule,
|
391
|
-
NzUploadModule,
|
392
|
-
NzButtonModule,
|
393
|
-
NzIconModule, i2$1.FormlyModule] });
|
394
|
-
FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
|
395
|
-
ReactiveFormsModule,
|
396
|
-
FormlyNzFormFieldModule,
|
397
|
-
NzUploadModule,
|
398
|
-
NzButtonModule,
|
399
|
-
NzIconModule,
|
400
|
-
FormlyModule.forChild({
|
401
|
-
types: [
|
402
|
-
{
|
403
|
-
name: 'upload',
|
404
|
-
component: FormlyFieldUpload,
|
405
|
-
wrappers: ['form-field']
|
406
|
-
}
|
407
|
-
]
|
408
|
-
})] });
|
409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
|
410
|
-
type: NgModule,
|
411
|
-
args: [{
|
412
|
-
declarations: [FormlyFieldUpload, UploadNzComponent],
|
413
|
-
imports: [
|
414
|
-
CommonModule,
|
415
|
-
ReactiveFormsModule,
|
416
|
-
FormlyNzFormFieldModule,
|
417
|
-
NzUploadModule,
|
418
|
-
NzButtonModule,
|
419
|
-
NzIconModule,
|
420
|
-
FormlyModule.forChild({
|
421
|
-
types: [
|
422
|
-
{
|
423
|
-
name: 'upload',
|
424
|
-
component: FormlyFieldUpload,
|
425
|
-
wrappers: ['form-field']
|
426
|
-
}
|
427
|
-
]
|
428
|
-
})
|
429
|
-
]
|
430
|
-
}]
|
385
|
+
class FormlyNzUploadModule {
|
386
|
+
}
|
387
|
+
FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
388
|
+
FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
|
389
|
+
ReactiveFormsModule,
|
390
|
+
FormlyNzFormFieldModule,
|
391
|
+
NzUploadModule,
|
392
|
+
NzButtonModule,
|
393
|
+
NzIconModule, i2$1.FormlyModule] });
|
394
|
+
FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
|
395
|
+
ReactiveFormsModule,
|
396
|
+
FormlyNzFormFieldModule,
|
397
|
+
NzUploadModule,
|
398
|
+
NzButtonModule,
|
399
|
+
NzIconModule,
|
400
|
+
FormlyModule.forChild({
|
401
|
+
types: [
|
402
|
+
{
|
403
|
+
name: 'upload',
|
404
|
+
component: FormlyFieldUpload,
|
405
|
+
wrappers: ['form-field']
|
406
|
+
}
|
407
|
+
]
|
408
|
+
})] });
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
|
410
|
+
type: NgModule,
|
411
|
+
args: [{
|
412
|
+
declarations: [FormlyFieldUpload, UploadNzComponent],
|
413
|
+
imports: [
|
414
|
+
CommonModule,
|
415
|
+
ReactiveFormsModule,
|
416
|
+
FormlyNzFormFieldModule,
|
417
|
+
NzUploadModule,
|
418
|
+
NzButtonModule,
|
419
|
+
NzIconModule,
|
420
|
+
FormlyModule.forChild({
|
421
|
+
types: [
|
422
|
+
{
|
423
|
+
name: 'upload',
|
424
|
+
component: FormlyFieldUpload,
|
425
|
+
wrappers: ['form-field']
|
426
|
+
}
|
427
|
+
]
|
428
|
+
})
|
429
|
+
]
|
430
|
+
}]
|
431
431
|
}] });
|
432
432
|
|
433
|
-
/**
|
434
|
-
* Generated bundle index. Do not edit.
|
433
|
+
/**
|
434
|
+
* Generated bundle index. Do not edit.
|
435
435
|
*/
|
436
436
|
|
437
437
|
export { FormlyFieldUpload, FormlyNzUploadModule };
|