ngx-formly-zorro-antd 14.3.0 → 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 -170
- 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 -101
- 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 -206
- 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 -134
- 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 -206
- 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 -134
- 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 +1 -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 +171 -171
- package/select/select.type.d.ts +36 -36
- 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 -164
- 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
@@ -1,253 +1,253 @@
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core';
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
-
import { NzUploadComponent } from 'ng-zorro-antd/upload';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "@angular/common";
|
7
|
-
import * as i2 from "ng-zorro-antd/upload";
|
8
|
-
import * as i3 from "ng-zorro-antd/button";
|
9
|
-
import * as i4 from "ng-zorro-antd/core/transition-patch";
|
10
|
-
import * as i5 from "ng-zorro-antd/core/wave";
|
11
|
-
import * as i6 from "ng-zorro-antd/icon";
|
12
|
-
export class UploadNzComponent extends NzUploadComponent {
|
13
|
-
constructor() {
|
14
|
-
super(...arguments);
|
15
|
-
/** 上传按钮的图标 */
|
16
|
-
this.nzeUploadButtonIcon = {
|
17
|
-
type: 'cloud-upload'
|
18
|
-
};
|
19
|
-
/** 样式名 */
|
20
|
-
this.className = '';
|
21
|
-
this.onChange = () => { };
|
22
|
-
this.onTouched = () => { };
|
23
|
-
}
|
24
|
-
writeValue() { }
|
25
|
-
registerOnChange(fn) {
|
26
|
-
this.onChange = fn;
|
27
|
-
}
|
28
|
-
registerOnTouched(fn) {
|
29
|
-
this.onTouched = fn;
|
30
|
-
}
|
31
|
-
setDisabledState(isDisabled) {
|
32
|
-
this.nzDisabled = isDisabled;
|
33
|
-
}
|
34
|
-
fileListChange(list) {
|
35
|
-
this.nzFileListChange.emit(list);
|
36
|
-
}
|
37
|
-
change(value) {
|
38
|
-
this.nzChange.emit(value);
|
39
|
-
if (['removed', 'success'].includes(value.type ?? '')) {
|
40
|
-
if (this.resultMap instanceof Function) {
|
41
|
-
this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
|
42
|
-
}
|
43
|
-
else {
|
44
|
-
this.onChange(value.fileList.filter(x => x.status === 'done'));
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
50
|
-
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: [
|
51
|
-
{
|
52
|
-
provide: NG_VALUE_ACCESSOR,
|
53
|
-
useExisting: forwardRef(() => UploadNzComponent),
|
54
|
-
multi: true
|
55
|
-
}
|
56
|
-
], usesInheritance: true, ngImport: i0, template: `
|
57
|
-
<nz-upload
|
58
|
-
[nzType]="nzType"
|
59
|
-
[nzAccept]="nzAccept"
|
60
|
-
[nzAction]="nzAction"
|
61
|
-
[nzDirectory]="nzDirectory"
|
62
|
-
[nzBeforeUpload]="nzBeforeUpload"
|
63
|
-
[nzCustomRequest]="nzCustomRequest"
|
64
|
-
[nzData]="nzData"
|
65
|
-
[nzDisabled]="nzDisabled"
|
66
|
-
[(nzFileList)]="nzFileList"
|
67
|
-
[nzLimit]="nzLimit"
|
68
|
-
[nzSize]="nzSize"
|
69
|
-
[nzFileType]="nzFileType"
|
70
|
-
[nzFilter]="nzFilter"
|
71
|
-
[nzHeaders]="nzHeaders"
|
72
|
-
[nzListType]="nzListType"
|
73
|
-
[nzMultiple]="nzMultiple"
|
74
|
-
[nzName]="nzName"
|
75
|
-
[nzShowUploadList]="nzShowUploadList"
|
76
|
-
[nzShowButton]="nzShowButton"
|
77
|
-
[nzWithCredentials]="nzWithCredentials"
|
78
|
-
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
79
|
-
[nzPreview]="nzPreview"
|
80
|
-
[nzPreviewFile]="nzPreviewFile"
|
81
|
-
[nzPreviewIsImage]="nzPreviewIsImage"
|
82
|
-
[nzRemove]="nzRemove"
|
83
|
-
[nzDownload]="nzDownload"
|
84
|
-
[nzTransformFile]="nzTransformFile"
|
85
|
-
[nzIconRender]="nzIconRender"
|
86
|
-
[nzFileListRender]="nzFileListRender"
|
87
|
-
[ngClass]="className"
|
88
|
-
(nzChange)="change($event)"
|
89
|
-
(nzFileListChange)="fileListChange($event)"
|
90
|
-
>
|
91
|
-
<ng-container [ngSwitch]="nzType">
|
92
|
-
<ng-container *ngSwitchCase="'drag'">
|
93
|
-
<p class="ant-upload-drag-icon">
|
94
|
-
<span
|
95
|
-
*ngIf="nzeUploadButtonIcon"
|
96
|
-
nz-icon
|
97
|
-
[nzType]="nzeUploadButtonIcon.type"
|
98
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
99
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
100
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
101
|
-
></span>
|
102
|
-
</p>
|
103
|
-
<p class="ant-upload-text">{{ nzeText }}</p>
|
104
|
-
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
105
|
-
</ng-container>
|
106
|
-
<ng-container *ngSwitchDefault>
|
107
|
-
<button
|
108
|
-
type="button"
|
109
|
-
nz-button
|
110
|
-
[disabled]="nzDisabled!!"
|
111
|
-
*ngIf="nzeShowUploadButton !== false"
|
112
|
-
>
|
113
|
-
<span
|
114
|
-
*ngIf="nzeUploadButtonIcon"
|
115
|
-
nz-icon
|
116
|
-
[nzType]="nzeUploadButtonIcon.type"
|
117
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
118
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
119
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
120
|
-
></span>
|
121
|
-
{{ nzeText }}
|
122
|
-
</button>
|
123
|
-
|
124
|
-
<div *ngIf="nzeShowUploadButton === false">
|
125
|
-
<span
|
126
|
-
*ngIf="nzeUploadButtonIcon"
|
127
|
-
nz-icon
|
128
|
-
[nzType]="nzeUploadButtonIcon.type"
|
129
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
130
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
131
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
132
|
-
></span>
|
133
|
-
{{ nzeText }}
|
134
|
-
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
135
|
-
</div>
|
136
|
-
</ng-container>
|
137
|
-
</ng-container>
|
138
|
-
</nz-upload>
|
139
|
-
`, 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 });
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
|
141
|
-
type: Component,
|
142
|
-
args: [{
|
143
|
-
selector: 'formly-nz-upload',
|
144
|
-
template: `
|
145
|
-
<nz-upload
|
146
|
-
[nzType]="nzType"
|
147
|
-
[nzAccept]="nzAccept"
|
148
|
-
[nzAction]="nzAction"
|
149
|
-
[nzDirectory]="nzDirectory"
|
150
|
-
[nzBeforeUpload]="nzBeforeUpload"
|
151
|
-
[nzCustomRequest]="nzCustomRequest"
|
152
|
-
[nzData]="nzData"
|
153
|
-
[nzDisabled]="nzDisabled"
|
154
|
-
[(nzFileList)]="nzFileList"
|
155
|
-
[nzLimit]="nzLimit"
|
156
|
-
[nzSize]="nzSize"
|
157
|
-
[nzFileType]="nzFileType"
|
158
|
-
[nzFilter]="nzFilter"
|
159
|
-
[nzHeaders]="nzHeaders"
|
160
|
-
[nzListType]="nzListType"
|
161
|
-
[nzMultiple]="nzMultiple"
|
162
|
-
[nzName]="nzName"
|
163
|
-
[nzShowUploadList]="nzShowUploadList"
|
164
|
-
[nzShowButton]="nzShowButton"
|
165
|
-
[nzWithCredentials]="nzWithCredentials"
|
166
|
-
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
167
|
-
[nzPreview]="nzPreview"
|
168
|
-
[nzPreviewFile]="nzPreviewFile"
|
169
|
-
[nzPreviewIsImage]="nzPreviewIsImage"
|
170
|
-
[nzRemove]="nzRemove"
|
171
|
-
[nzDownload]="nzDownload"
|
172
|
-
[nzTransformFile]="nzTransformFile"
|
173
|
-
[nzIconRender]="nzIconRender"
|
174
|
-
[nzFileListRender]="nzFileListRender"
|
175
|
-
[ngClass]="className"
|
176
|
-
(nzChange)="change($event)"
|
177
|
-
(nzFileListChange)="fileListChange($event)"
|
178
|
-
>
|
179
|
-
<ng-container [ngSwitch]="nzType">
|
180
|
-
<ng-container *ngSwitchCase="'drag'">
|
181
|
-
<p class="ant-upload-drag-icon">
|
182
|
-
<span
|
183
|
-
*ngIf="nzeUploadButtonIcon"
|
184
|
-
nz-icon
|
185
|
-
[nzType]="nzeUploadButtonIcon.type"
|
186
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
187
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
188
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
189
|
-
></span>
|
190
|
-
</p>
|
191
|
-
<p class="ant-upload-text">{{ nzeText }}</p>
|
192
|
-
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
193
|
-
</ng-container>
|
194
|
-
<ng-container *ngSwitchDefault>
|
195
|
-
<button
|
196
|
-
type="button"
|
197
|
-
nz-button
|
198
|
-
[disabled]="nzDisabled!!"
|
199
|
-
*ngIf="nzeShowUploadButton !== false"
|
200
|
-
>
|
201
|
-
<span
|
202
|
-
*ngIf="nzeUploadButtonIcon"
|
203
|
-
nz-icon
|
204
|
-
[nzType]="nzeUploadButtonIcon.type"
|
205
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
206
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
207
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
208
|
-
></span>
|
209
|
-
{{ nzeText }}
|
210
|
-
</button>
|
211
|
-
|
212
|
-
<div *ngIf="nzeShowUploadButton === false">
|
213
|
-
<span
|
214
|
-
*ngIf="nzeUploadButtonIcon"
|
215
|
-
nz-icon
|
216
|
-
[nzType]="nzeUploadButtonIcon.type"
|
217
|
-
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
218
|
-
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
219
|
-
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
220
|
-
></span>
|
221
|
-
{{ nzeText }}
|
222
|
-
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
223
|
-
</div>
|
224
|
-
</ng-container>
|
225
|
-
</ng-container>
|
226
|
-
</nz-upload>
|
227
|
-
`,
|
228
|
-
encapsulation: ViewEncapsulation.None,
|
229
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
230
|
-
providers: [
|
231
|
-
{
|
232
|
-
provide: NG_VALUE_ACCESSOR,
|
233
|
-
useExisting: forwardRef(() => UploadNzComponent),
|
234
|
-
multi: true
|
235
|
-
}
|
236
|
-
]
|
237
|
-
}]
|
238
|
-
}], propDecorators: { nzeText: [{
|
239
|
-
type: Input
|
240
|
-
}], nzeHint: [{
|
241
|
-
type: Input
|
242
|
-
}], nzeShowUploadButton: [{
|
243
|
-
type: Input
|
244
|
-
}], nzeUploadButton: [{
|
245
|
-
type: Input
|
246
|
-
}], nzeUploadButtonIcon: [{
|
247
|
-
type: Input
|
248
|
-
}], className: [{
|
249
|
-
type: Input
|
250
|
-
}], resultMap: [{
|
251
|
-
type: Input
|
252
|
-
}] } });
|
253
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFFVCxVQUFVLEVBQ1YsS0FBSyxFQUNMLGlCQUFpQixFQUVsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekUsT0FBTyxFQUF1QixpQkFBaUIsRUFBZ0IsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7Ozs7QUFtRzVGLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxpQkFBaUI7SUFoR3hEOztRQTZHRSxjQUFjO1FBQ0wsd0JBQW1CLEdBQXFCO1lBQy9DLElBQUksRUFBRSxjQUFjO1NBQ3JCLENBQUM7UUFFRixVQUFVO1FBQ0QsY0FBUyxHQUFHLEVBQUUsQ0FBQztRQUd4QixhQUFRLEdBQWlCLEdBQUcsRUFBRSxHQUFFLENBQUMsQ0FBQztRQUNsQyxjQUFTLEdBQWtCLEdBQUcsRUFBRSxHQUFFLENBQUMsQ0FBQztLQTBCckM7SUF6QkMsVUFBVSxLQUFVLENBQUM7SUFDckIsZ0JBQWdCLENBQUMsRUFBYTtRQUM1QixJQUFJLENBQUMsUUFBUSxHQUFHLEVBQUUsQ0FBQztJQUNyQixDQUFDO0l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YVwiXG4gICAgICBbbnpEaXNhYmxlZF09XCJuekRpc2FibGVkXCJcbiAgICAgIFsobnpGaWxlTGlzdCldPVwibnpGaWxlTGlzdFwiXG4gICAgICBbbnpMaW1pdF09XCJuekxpbWl0XCJcbiAgICAgIFtuelNpemVdPVwibnpTaXplXCJcbiAgICAgIFtuekZpbGVUeXBlXT1cIm56RmlsZVR5cGVcIlxuICAgICAgW256RmlsdGVyXT1cIm56RmlsdGVyXCJcbiAgICAgIFtuekhlYWRlcnNdPVwibnpIZWFkZXJzXCJcbiAgICAgIFtuekxpc3RUeXBlXT1cIm56TGlzdFR5cGVcIlxuICAgICAgW256TXVsdGlwbGVdPVwibnpNdWx0aXBsZVwiXG4gICAgICBbbnpOYW1lXT1cIm56TmFtZVwiXG4gICAgICBbbnpTaG93VXBsb2FkTGlzdF09XCJuelNob3dVcGxvYWRMaXN0XCJcbiAgICAgIFtuelNob3dCdXR0b25dPVwibnpTaG93QnV0dG9uXCJcbiAgICAgIFtueldpdGhDcmVkZW50aWFsc109XCJueldpdGhDcmVkZW50aWFsc1wiXG4gICAgICBbbnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tdPVwibnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tcIlxuICAgICAgW256UHJldmlld109XCJuelByZXZpZXdcIlxuICAgICAgW256UHJldmlld0ZpbGVdPVwibnpQcmV2aWV3RmlsZVwiXG4gICAgICBbbnpQcmV2aWV3SXNJbWFnZV09XCJuelByZXZpZXdJc0ltYWdlXCJcbiAgICAgIFtuelJlbW92ZV09XCJuelJlbW92ZVwiXG4gICAgICBbbnpEb3dubG9hZF09XCJuekRvd25sb2FkXCJcbiAgICAgIFtuelRyYW5zZm9ybUZpbGVdPVwibnpUcmFuc2Zvcm1GaWxlXCJcbiAgICAgIFtuekljb25SZW5kZXJdPVwibnpJY29uUmVuZGVyXCJcbiAgICAgIFtuekZpbGVMaXN0UmVuZGVyXT1cIm56RmlsZUxpc3RSZW5kZXJcIlxuICAgICAgW25nQ2xhc3NdPVwiY2xhc3NOYW1lXCJcbiAgICAgIChuekNoYW5nZSk9XCJjaGFuZ2UoJGV2ZW50KVwiXG4gICAgICAobnpGaWxlTGlzdENoYW5nZSk9XCJmaWxlTGlzdENoYW5nZSgkZXZlbnQpXCJcbiAgICA+XG4gICAgICA8bmctY29udGFpbmVyIFtuZ1N3aXRjaF09XCJuelR5cGVcIj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdTd2l0Y2hDYXNlPVwiJ2RyYWcnXCI+XG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWRyYWctaWNvblwiPlxuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgKm5nSWY9XCJuemVVcGxvYWRCdXR0b25JY29uXCJcbiAgICAgICAgICAgICAgbnotaWNvblxuICAgICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXG4gICAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXG4gICAgICAgICAgICAgIFtuelR3b3RvbmVDb2xvcl09XCJuemVVcGxvYWRCdXR0b25JY29uLnR3b1RvbmVDb2xvciB8fCAnJ1wiXG4gICAgICAgICAgICA+PC9zcGFuPlxuICAgICAgICAgIDwvcD5cbiAgICAgICAgICA8cCBjbGFzcz1cImFudC11cGxvYWQtdGV4dFwiPnt7IG56ZVRleHQgfX08L3A+XG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWhpbnRcIj57eyBuemVIaW50IH19PC9wPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdTd2l0Y2hEZWZhdWx0PlxuICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgbnotYnV0dG9uXG4gICAgICAgICAgICBbZGlzYWJsZWRdPVwibnpEaXNhYmxlZCEhXCJcbiAgICAgICAgICAgICpuZ0lmPVwibnplU2hvd1VwbG9hZEJ1dHRvbiAhPT0gZmFsc2VcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICAgICpuZ0lmPVwibnplVXBsb2FkQnV0dG9uSWNvblwiXG4gICAgICAgICAgICAgIG56LWljb25cbiAgICAgICAgICAgICAgW256VHlwZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnR5cGVcIlxuICAgICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXG4gICAgICAgICAgICAgIFtuelNwaW5dPVwibnplVXBsb2FkQnV0dG9uSWNvbi5zcGluISFcIlxuICAgICAgICAgICAgICBbbnpUd290b25lQ29sb3JdPVwibnplVXBsb2FkQnV0dG9uSWNvbi50d29Ub25lQ29sb3IgfHwgJydcIlxuICAgICAgICAgICAgPjwvc3Bhbj5cbiAgICAgICAgICAgIHt7IG56ZVRleHQgfX1cbiAgICAgICAgICA8L2J1dHRvbj5cblxuICAgICAgICAgIDxkaXYgKm5nSWY9XCJuemVTaG93VXBsb2FkQnV0dG9uID09PSBmYWxzZVwiPlxuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgKm5nSWY9XCJuemVVcGxvYWRCdXR0b25JY29uXCJcbiAgICAgICAgICAgICAgbnotaWNvblxuICAgICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXG4gICAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLn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0Rpc2FibGVkO1xuICB9XG5cbiAgZmlsZUxpc3RDaGFuZ2UobGlzdDogTnpVcGxvYWRGaWxlW10pIHtcbiAgICB0aGlzLm56RmlsZUxpc3RDaGFuZ2UuZW1pdChsaXN0KTtcbiAgfVxuXG4gIGNoYW5nZSh2YWx1ZTogTnpVcGxvYWRDaGFuZ2VQYXJhbSkge1xuICAgIHRoaXMubnpDaGFuZ2UuZW1pdCh2YWx1ZSk7XG4gICAgaWYgKFsncmVtb3ZlZCcsICdzdWNjZXNzJ10uaW5jbHVkZXModmFsdWUudHlwZSA/PyAnJykpIHtcbiAgICAgIGlmICh0aGlzLnJlc3VsdE1hcCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgICAgIHRoaXMub25DaGFuZ2UodGhpcy5yZXN1bHRNYXAodmFsdWUuZmlsZUxpc3QuZmlsdGVyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMub25DaGFuZ2UodmFsdWUuZmlsZUxpc3QuZmlsdGVyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core';
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
|
+
import { NzUploadComponent } from 'ng-zorro-antd/upload';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "ng-zorro-antd/upload";
|
8
|
+
import * as i3 from "ng-zorro-antd/button";
|
9
|
+
import * as i4 from "ng-zorro-antd/core/transition-patch";
|
10
|
+
import * as i5 from "ng-zorro-antd/core/wave";
|
11
|
+
import * as i6 from "ng-zorro-antd/icon";
|
12
|
+
export class UploadNzComponent extends NzUploadComponent {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
/** 上传按钮的图标 */
|
16
|
+
this.nzeUploadButtonIcon = {
|
17
|
+
type: 'cloud-upload'
|
18
|
+
};
|
19
|
+
/** 样式名 */
|
20
|
+
this.className = '';
|
21
|
+
this.onChange = () => { };
|
22
|
+
this.onTouched = () => { };
|
23
|
+
}
|
24
|
+
writeValue() { }
|
25
|
+
registerOnChange(fn) {
|
26
|
+
this.onChange = fn;
|
27
|
+
}
|
28
|
+
registerOnTouched(fn) {
|
29
|
+
this.onTouched = fn;
|
30
|
+
}
|
31
|
+
setDisabledState(isDisabled) {
|
32
|
+
this.nzDisabled = isDisabled;
|
33
|
+
}
|
34
|
+
fileListChange(list) {
|
35
|
+
this.nzFileListChange.emit(list);
|
36
|
+
}
|
37
|
+
change(value) {
|
38
|
+
this.nzChange.emit(value);
|
39
|
+
if (['removed', 'success'].includes(value.type ?? '')) {
|
40
|
+
if (this.resultMap instanceof Function) {
|
41
|
+
this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
|
42
|
+
}
|
43
|
+
else {
|
44
|
+
this.onChange(value.fileList.filter(x => x.status === 'done'));
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
50
|
+
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: [
|
51
|
+
{
|
52
|
+
provide: NG_VALUE_ACCESSOR,
|
53
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
54
|
+
multi: true
|
55
|
+
}
|
56
|
+
], usesInheritance: true, ngImport: i0, template: `
|
57
|
+
<nz-upload
|
58
|
+
[nzType]="nzType"
|
59
|
+
[nzAccept]="nzAccept"
|
60
|
+
[nzAction]="nzAction"
|
61
|
+
[nzDirectory]="nzDirectory"
|
62
|
+
[nzBeforeUpload]="nzBeforeUpload"
|
63
|
+
[nzCustomRequest]="nzCustomRequest"
|
64
|
+
[nzData]="nzData"
|
65
|
+
[nzDisabled]="nzDisabled"
|
66
|
+
[(nzFileList)]="nzFileList"
|
67
|
+
[nzLimit]="nzLimit"
|
68
|
+
[nzSize]="nzSize"
|
69
|
+
[nzFileType]="nzFileType"
|
70
|
+
[nzFilter]="nzFilter"
|
71
|
+
[nzHeaders]="nzHeaders"
|
72
|
+
[nzListType]="nzListType"
|
73
|
+
[nzMultiple]="nzMultiple"
|
74
|
+
[nzName]="nzName"
|
75
|
+
[nzShowUploadList]="nzShowUploadList"
|
76
|
+
[nzShowButton]="nzShowButton"
|
77
|
+
[nzWithCredentials]="nzWithCredentials"
|
78
|
+
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
79
|
+
[nzPreview]="nzPreview"
|
80
|
+
[nzPreviewFile]="nzPreviewFile"
|
81
|
+
[nzPreviewIsImage]="nzPreviewIsImage"
|
82
|
+
[nzRemove]="nzRemove"
|
83
|
+
[nzDownload]="nzDownload"
|
84
|
+
[nzTransformFile]="nzTransformFile"
|
85
|
+
[nzIconRender]="nzIconRender"
|
86
|
+
[nzFileListRender]="nzFileListRender"
|
87
|
+
[ngClass]="className"
|
88
|
+
(nzChange)="change($event)"
|
89
|
+
(nzFileListChange)="fileListChange($event)"
|
90
|
+
>
|
91
|
+
<ng-container [ngSwitch]="nzType">
|
92
|
+
<ng-container *ngSwitchCase="'drag'">
|
93
|
+
<p class="ant-upload-drag-icon">
|
94
|
+
<span
|
95
|
+
*ngIf="nzeUploadButtonIcon"
|
96
|
+
nz-icon
|
97
|
+
[nzType]="nzeUploadButtonIcon.type"
|
98
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
99
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
100
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
101
|
+
></span>
|
102
|
+
</p>
|
103
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
104
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
105
|
+
</ng-container>
|
106
|
+
<ng-container *ngSwitchDefault>
|
107
|
+
<button
|
108
|
+
type="button"
|
109
|
+
nz-button
|
110
|
+
[disabled]="nzDisabled!!"
|
111
|
+
*ngIf="nzeShowUploadButton !== false"
|
112
|
+
>
|
113
|
+
<span
|
114
|
+
*ngIf="nzeUploadButtonIcon"
|
115
|
+
nz-icon
|
116
|
+
[nzType]="nzeUploadButtonIcon.type"
|
117
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
118
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
119
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
120
|
+
></span>
|
121
|
+
{{ nzeText }}
|
122
|
+
</button>
|
123
|
+
|
124
|
+
<div *ngIf="nzeShowUploadButton === false">
|
125
|
+
<span
|
126
|
+
*ngIf="nzeUploadButtonIcon"
|
127
|
+
nz-icon
|
128
|
+
[nzType]="nzeUploadButtonIcon.type"
|
129
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
130
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
131
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
132
|
+
></span>
|
133
|
+
{{ nzeText }}
|
134
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
135
|
+
</div>
|
136
|
+
</ng-container>
|
137
|
+
</ng-container>
|
138
|
+
</nz-upload>
|
139
|
+
`, 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 });
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
|
141
|
+
type: Component,
|
142
|
+
args: [{
|
143
|
+
selector: 'formly-nz-upload',
|
144
|
+
template: `
|
145
|
+
<nz-upload
|
146
|
+
[nzType]="nzType"
|
147
|
+
[nzAccept]="nzAccept"
|
148
|
+
[nzAction]="nzAction"
|
149
|
+
[nzDirectory]="nzDirectory"
|
150
|
+
[nzBeforeUpload]="nzBeforeUpload"
|
151
|
+
[nzCustomRequest]="nzCustomRequest"
|
152
|
+
[nzData]="nzData"
|
153
|
+
[nzDisabled]="nzDisabled"
|
154
|
+
[(nzFileList)]="nzFileList"
|
155
|
+
[nzLimit]="nzLimit"
|
156
|
+
[nzSize]="nzSize"
|
157
|
+
[nzFileType]="nzFileType"
|
158
|
+
[nzFilter]="nzFilter"
|
159
|
+
[nzHeaders]="nzHeaders"
|
160
|
+
[nzListType]="nzListType"
|
161
|
+
[nzMultiple]="nzMultiple"
|
162
|
+
[nzName]="nzName"
|
163
|
+
[nzShowUploadList]="nzShowUploadList"
|
164
|
+
[nzShowButton]="nzShowButton"
|
165
|
+
[nzWithCredentials]="nzWithCredentials"
|
166
|
+
[nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
|
167
|
+
[nzPreview]="nzPreview"
|
168
|
+
[nzPreviewFile]="nzPreviewFile"
|
169
|
+
[nzPreviewIsImage]="nzPreviewIsImage"
|
170
|
+
[nzRemove]="nzRemove"
|
171
|
+
[nzDownload]="nzDownload"
|
172
|
+
[nzTransformFile]="nzTransformFile"
|
173
|
+
[nzIconRender]="nzIconRender"
|
174
|
+
[nzFileListRender]="nzFileListRender"
|
175
|
+
[ngClass]="className"
|
176
|
+
(nzChange)="change($event)"
|
177
|
+
(nzFileListChange)="fileListChange($event)"
|
178
|
+
>
|
179
|
+
<ng-container [ngSwitch]="nzType">
|
180
|
+
<ng-container *ngSwitchCase="'drag'">
|
181
|
+
<p class="ant-upload-drag-icon">
|
182
|
+
<span
|
183
|
+
*ngIf="nzeUploadButtonIcon"
|
184
|
+
nz-icon
|
185
|
+
[nzType]="nzeUploadButtonIcon.type"
|
186
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
187
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
188
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
189
|
+
></span>
|
190
|
+
</p>
|
191
|
+
<p class="ant-upload-text">{{ nzeText }}</p>
|
192
|
+
<p class="ant-upload-hint">{{ nzeHint }}</p>
|
193
|
+
</ng-container>
|
194
|
+
<ng-container *ngSwitchDefault>
|
195
|
+
<button
|
196
|
+
type="button"
|
197
|
+
nz-button
|
198
|
+
[disabled]="nzDisabled!!"
|
199
|
+
*ngIf="nzeShowUploadButton !== false"
|
200
|
+
>
|
201
|
+
<span
|
202
|
+
*ngIf="nzeUploadButtonIcon"
|
203
|
+
nz-icon
|
204
|
+
[nzType]="nzeUploadButtonIcon.type"
|
205
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
206
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
207
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
208
|
+
></span>
|
209
|
+
{{ nzeText }}
|
210
|
+
</button>
|
211
|
+
|
212
|
+
<div *ngIf="nzeShowUploadButton === false">
|
213
|
+
<span
|
214
|
+
*ngIf="nzeUploadButtonIcon"
|
215
|
+
nz-icon
|
216
|
+
[nzType]="nzeUploadButtonIcon.type"
|
217
|
+
[nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
|
218
|
+
[nzSpin]="nzeUploadButtonIcon.spin!!"
|
219
|
+
[nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
|
220
|
+
></span>
|
221
|
+
{{ nzeText }}
|
222
|
+
<div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
|
223
|
+
</div>
|
224
|
+
</ng-container>
|
225
|
+
</ng-container>
|
226
|
+
</nz-upload>
|
227
|
+
`,
|
228
|
+
encapsulation: ViewEncapsulation.None,
|
229
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
230
|
+
providers: [
|
231
|
+
{
|
232
|
+
provide: NG_VALUE_ACCESSOR,
|
233
|
+
useExisting: forwardRef(() => UploadNzComponent),
|
234
|
+
multi: true
|
235
|
+
}
|
236
|
+
]
|
237
|
+
}]
|
238
|
+
}], propDecorators: { nzeText: [{
|
239
|
+
type: Input
|
240
|
+
}], nzeHint: [{
|
241
|
+
type: Input
|
242
|
+
}], nzeShowUploadButton: [{
|
243
|
+
type: Input
|
244
|
+
}], nzeUploadButton: [{
|
245
|
+
type: Input
|
246
|
+
}], nzeUploadButtonIcon: [{
|
247
|
+
type: Input
|
248
|
+
}], className: [{
|
249
|
+
type: Input
|
250
|
+
}], resultMap: [{
|
251
|
+
type: Input
|
252
|
+
}] } });
|
253
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFFVCxVQUFVLEVBQ1YsS0FBSyxFQUNMLGlCQUFpQixFQUVsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekUsT0FBTyxFQUF1QixpQkFBaUIsRUFBZ0IsTUFBTSxzQkFBc0IsQ0FBQzs7Ozs7Ozs7QUFtRzVGLE1BQU0sT0FBTyxpQkFBa0IsU0FBU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ICAgICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXHJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXHJcbiAgICAgICAgICAgICAgW256VHdvdG9uZUNvbG9yXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHdvVG9uZUNvbG9yIHx8ICcnXCJcclxuICAgICAgICAgICAgPjwvc3Bhbj5cclxuICAgICAgICAgIDwvcD5cclxuICAgICAgICAgIDxwIGNsYXNzPVwiYW50LXVwbG9hZC10ZXh0XCI+e3sgbnplVGV4dCB9fTwvcD5cclxuICAgICAgICAgIDxwIGNsYXNzPVwiYW50LXVwbG9hZC1oaW50XCI+e3sgbnplSGludCB9fTwvcD5cclxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaERlZmF1bHQ+XHJcbiAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICBuei1idXR0b25cclxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cIm56RGlzYWJsZWQhIVwiXHJcbiAgICAgICAgICAgICpuZ0lmPVwibnplU2hvd1VwbG9hZEJ1dHRvbiAhPT0gZmFsc2VcIlxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgICA8c3BhblxyXG4gICAgICAgICAgICAgICpuZ0lmPVwibnplVXBsb2FkQnV0dG9uSWNvblwiXHJcbiAgICAgICAgICAgICAgbnotaWNvblxyXG4gICAgICAgICAgICAgIFtuelR5cGVdPVwibnplVXBsb2FkQnV0dG9uSWNvbi50eXBlXCJcclxuICAgICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXHJcbiAgICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXHJcbiAgICAgICAgICAgICAgW256VHdvdG9uZUNvbG9yXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHdvVG9uZUNvbG9yIHx8ICcnXCJcclxuICAgICAgICAgICAgPjwvc3Bhbj5cclxuICAgICAgICAgICAge3sgbnplVGV4dCB9fVxyXG4gICAgICAgICAgPC9idXR0b24+XHJcblxyXG4gICAgICAgICAgPGRpdiAqbmdJZj1cIm56ZVNob3dVcGxvYWRCdXR0b24gPT09IGZhbHNlXCI+XHJcbiAgICAgICAgICAgIDxzcGFuXHJcbiAgICAgICAgICAgICAgKm5nSWY9XCJuemVVcGxvYWRCdXR0b25JY29uXCJcclxuICAgICAgICAgICAgICBuei1pY29uXHJcbiAgICAgICAgICAgICAgW256VHlwZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnR5cGVcIlxyXG4gICAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcclxuICAgICAgICAgICAgICBbbnpTcGluXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24uc3BpbiEhXCJcclxuICAgICAgICAgICAgICBbbnpUd290b25lQ29sb3JdPVwibnplVXBsb2FkQnV0dG9uSWNvbi50d29Ub25lQ29sb3IgfHwgJydcIlxyXG4gICAgICAgICAgICA+PC9zcGFuPlxyXG4gICAgICAgICAgICB7eyBuemVUZXh0IH19XHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJhbnQtdXBsb2FkLWhpbnRcIiBzdHlsZT1cIm1hcmdpbi10b3A6IDhweFwiPnt7IG56ZUhpbnQgfX08L2Rpdj5cclxuICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgIDwvbnotdXBsb2FkPlxyXG4gIGAsXHJcbiAgZW5jYXBzdWx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