ngx-formly-zorro-antd 14.0.0 → 14.1.0
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 -146
- package/datepicker/datepicker.type.d.ts +32 -31
- package/datepicker/index.d.ts +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -61
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -43
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -51
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -59
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -51
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +196 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -45
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -41
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -89
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -309
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -47
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -59
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -59
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -51
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -57
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +167 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -51
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -51
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -41
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -51
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -51
- package/esm2020/timepicker/timepicker.type.mjs +96 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -52
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -51
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -60
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +229 -222
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +203 -199
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +129 -125
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +229 -222
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +203 -199
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +129 -125
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/index.d.ts +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/index.d.ts +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/index.d.ts +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/index.d.ts +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/index.d.ts +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +6 -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 +166 -162
- package/select/select.type.d.ts +35 -35
- package/slider/index.d.ts +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/index.d.ts +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/index.d.ts +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/index.d.ts +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/index.d.ts +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +138 -131
- package/transfer/index.d.ts +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/index.d.ts +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/index.d.ts +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
@@ -1,119 +1,119 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
3
|
-
import { NzUploadComponent } from 'ng-zorro-antd/upload';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
import * as i1 from "@angular/forms";
|
6
|
-
import * as i2 from "@ngx-formly/core";
|
7
|
-
import * as i3 from "./upload.component";
|
8
|
-
export class FormlyFieldUpload extends FieldType {
|
9
|
-
constructor() {
|
10
|
-
super(...arguments);
|
11
|
-
this.defaultOptions = {
|
12
|
-
props: {
|
13
|
-
listType: 'text',
|
14
|
-
name: 'file',
|
15
|
-
showUploadList: true,
|
16
|
-
showButton: true,
|
17
|
-
openFileDialogOnClick: true,
|
18
|
-
limit: 0,
|
19
|
-
size: 0,
|
20
|
-
filter: [],
|
21
|
-
text: ''
|
22
|
-
}
|
23
|
-
};
|
24
|
-
}
|
25
|
-
ngOnInit() {
|
26
|
-
const type = this.props.type;
|
27
|
-
if (type) {
|
28
|
-
this.upload.nzType = type;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
33
|
-
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-upload
|
34
|
-
#upload
|
35
|
-
[formControl]="formControl"
|
36
|
-
[formlyAttributes]="field"
|
37
|
-
[nzAccept]="props['accept']"
|
38
|
-
[nzAction]="props['action']"
|
39
|
-
[nzDirectory]="props['directory']!!"
|
40
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
41
|
-
[nzCustomRequest]="props['customRequest']"
|
42
|
-
[nzData]="props['data']"
|
43
|
-
[(nzFileList)]="props['fileList']"
|
44
|
-
[nzLimit]="props['limit']"
|
45
|
-
[nzSize]="props['size']"
|
46
|
-
[nzFileType]="props['fileType']"
|
47
|
-
[nzFilter]="props['filter']!"
|
48
|
-
[nzHeaders]="props['headers']"
|
49
|
-
[nzListType]="props['listType']!"
|
50
|
-
[nzMultiple]="props['multiple']!!"
|
51
|
-
[nzName]="props['name']!"
|
52
|
-
[nzShowUploadList]="props['showUploadList']"
|
53
|
-
[nzShowButton]="props['showButton']!!"
|
54
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
55
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
56
|
-
[nzPreview]="props['preview']"
|
57
|
-
[nzPreviewFile]="props['previewFile']"
|
58
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
59
|
-
[nzRemove]="props['remove']"
|
60
|
-
(nzChange)="props['change'] && props['change']($event)"
|
61
|
-
[nzDownload]="props['download']"
|
62
|
-
[nzTransformFile]="props['transformFile']"
|
63
|
-
[nzIconRender]="props['iconRender'] ?? null"
|
64
|
-
[nzFileListRender]="props['fileListRender'] ?? null"
|
65
|
-
[text]="props['text']"
|
66
|
-
[className]="props['className']"
|
67
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
|
68
|
-
[resultMap]="props['resultMap']"
|
69
|
-
>
|
70
|
-
</formly-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i3.UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
72
|
-
type: Component,
|
73
|
-
args: [{
|
74
|
-
selector: 'formly-field-upload',
|
75
|
-
template: `<formly-upload
|
76
|
-
#upload
|
77
|
-
[formControl]="formControl"
|
78
|
-
[formlyAttributes]="field"
|
79
|
-
[nzAccept]="props['accept']"
|
80
|
-
[nzAction]="props['action']"
|
81
|
-
[nzDirectory]="props['directory']!!"
|
82
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
83
|
-
[nzCustomRequest]="props['customRequest']"
|
84
|
-
[nzData]="props['data']"
|
85
|
-
[(nzFileList)]="props['fileList']"
|
86
|
-
[nzLimit]="props['limit']"
|
87
|
-
[nzSize]="props['size']"
|
88
|
-
[nzFileType]="props['fileType']"
|
89
|
-
[nzFilter]="props['filter']!"
|
90
|
-
[nzHeaders]="props['headers']"
|
91
|
-
[nzListType]="props['listType']!"
|
92
|
-
[nzMultiple]="props['multiple']!!"
|
93
|
-
[nzName]="props['name']!"
|
94
|
-
[nzShowUploadList]="props['showUploadList']"
|
95
|
-
[nzShowButton]="props['showButton']!!"
|
96
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
97
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
98
|
-
[nzPreview]="props['preview']"
|
99
|
-
[nzPreviewFile]="props['previewFile']"
|
100
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
101
|
-
[nzRemove]="props['remove']"
|
102
|
-
(nzChange)="props['change'] && props['change']($event)"
|
103
|
-
[nzDownload]="props['download']"
|
104
|
-
[nzTransformFile]="props['transformFile']"
|
105
|
-
[nzIconRender]="props['iconRender'] ?? null"
|
106
|
-
[nzFileListRender]="props['fileListRender'] ?? null"
|
107
|
-
[text]="props['text']"
|
108
|
-
[className]="props['className']"
|
109
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
|
110
|
-
[resultMap]="props['resultMap']"
|
111
|
-
>
|
112
|
-
</formly-upload>`,
|
113
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
114
|
-
}]
|
115
|
-
}], propDecorators: { upload: [{
|
116
|
-
type: ViewChild,
|
117
|
-
args: ['upload', { static: true }]
|
118
|
-
}] } });
|
119
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFHdkIsU0FBUyxFQUVWLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQXNDLE1BQU0sa0JBQWtCLENBQUM7QUFJakYsT0FBTyxFQUNMLGlCQUFpQixFQVFsQixNQUFNLHNCQUFzQixDQUFDOzs7OztBQStOOUIsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQTBCO0lBMUNqRTs7UUEyQ1csbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsUUFBUSxFQUFFLE1BQWU7Z0JBQ3pCLElBQUksRUFBRSxNQUFNO2dCQUNaLGNBQWMsRUFBRSxJQUFJO2dCQUNwQixVQUFVLEVBQUUsSUFBSTtnQkFDaEIscUJBQXFCLEVBQUUsSUFBSTtnQkFDM0IsS0FBSyxFQU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8qKlxyXG4gICAqIOS4iuS8oOivt+axguaXtuaYr+WQpuaQuuW4piBjb29raWVcclxuICAgKiBAZGVmYXVsdCBmYWxzZVxyXG4gICAqL1xyXG4gIHdpdGhDcmVkZW50aWFscz86IGJvb2xlYW47XHJcblxyXG4gIC8qKlxyXG4gICAqIOeCueWHu+aJk+W8gOaWh+S7tuWvueivneahhlxyXG4gICAqIEBkZWZhdWx0IHRydWVcclxuICAgKi9cclxuICBvcGVuRmlsZURpYWxvZ09uQ2xpY2s/OiBib29sZWFuO1xyXG5cclxuICAvKipcclxuICAgKiDngrnlh7vmlofku7bpk77mjqXmiJbpooTop4jlm77moIfml7bnmoTlm57osIPvvJvms6jmhI/vvJrliqHlv4Xkvb/nlKggPT4g5a6a5LmJ5aSE55CG5pa55rOV44CCXHJcbiAgICovXHJcbiAgcHJldmlldz86IChmaWxlOiBOelVwbG9hZEZpbGUpID0+IHZvaWQ7XHJcblxyXG4gIC8qKlxyXG4gICAqIOiHquWumuS5ieaWh+S7tumihOiniOmAu+i+ke+8m+azqOaEj++8muWKoeW/heS9v+eUqCA9PiDlrprkuYnlpITnkIbmlrnms5XjgIJcclxuICAgKi9cclxuICBwcmV2aWV3RmlsZT86IChmaWxlOiBOelVwbG9hZEZpbGUpID0+IE9ic2VydmFibGU8c3RyaW5nPjtcclxuXHJcbiAgLyoqXHJcbiAgICog6Ieq5a6a5LmJ6aKE6KeI5paH5Lu25piv5ZCm5pyJ5pWI5Zu+5YOP77yM5LiA6Iis55So5LqO5Zu+5YOPVVJM5Li66Z2e5qCH5YeG5qC85byP77yb5rOo5oSP77ya5Yqh5b+F5L2/55SoID0+IOWumuS5ieWkhOeQhuaWueazleOAglxyXG4gICAqL1xyXG4gIHByZXZpZXdJc0ltYWdlPzogKGZpbGU6IE56VXBsb2FkRmlsZSkgPT4gYm9vbGVhbjtcclxuXHJcbiAgLyoqXHJcbiAgICog54K55Ye756e76Zmk5paH5Lu25pe255qE5Zue6LCD77yM6L+U5Zue5YC85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biAgICAgIGxpc3RUeXBlOiAndGV4dCcgYXMgY29uc3QsXHJcbiAgICAgIG5hbWU6ICdmaWxlJyxcclxuICAgICAgc2hvd1VwbG9hZExpc3Q6IHRydWUsXHJcbiAgICAgIHNob3dCdXR0b246IHRydWUsXHJcbiAgICAgIG9wZW5GaWxlRGlhbG9nT25DbGljazogdHJ1ZSxcclxuICAgICAgbGltaXQ6IDAsXHJcbiAgICAgIHNpemU6IDAsXHJcbiAgICAgIGZpbHRlcjogW10sXHJcbiAgICAgIHRleHQ6ICcnXHJcbiAgICB9XHJcbiAgfTtcclxuXHJcbiAgQFZpZXdDaGlsZCgndXBsb2FkJywgeyBzdGF0aWM6IHRydWUgfSkgdXBsb2FkITogTnpVcGxvYWRDb21wb25lbnQ7XHJcblxyXG4gIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgY29uc3QgdHlwZSA9IHRoaXMucHJvcHMudHlwZTtcclxuICAgIGlmICh0eXBlKSB7XHJcbiAgICAgIHRoaXMudXBsb2FkLm56VHlwZSA9IHR5cGUgYXMgTnpVcGxvYWRUeXBlO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { NzUploadComponent } from 'ng-zorro-antd/upload';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@angular/forms";
|
6
|
+
import * as i2 from "@ngx-formly/core";
|
7
|
+
import * as i3 from "./upload.component";
|
8
|
+
export class FormlyFieldUpload extends FieldType {
|
9
|
+
constructor() {
|
10
|
+
super(...arguments);
|
11
|
+
this.defaultOptions = {
|
12
|
+
props: {
|
13
|
+
listType: 'text',
|
14
|
+
name: 'file',
|
15
|
+
showUploadList: true,
|
16
|
+
showButton: true,
|
17
|
+
openFileDialogOnClick: true,
|
18
|
+
limit: 0,
|
19
|
+
size: 0,
|
20
|
+
filter: [],
|
21
|
+
text: ''
|
22
|
+
}
|
23
|
+
};
|
24
|
+
}
|
25
|
+
ngOnInit() {
|
26
|
+
const type = this.props.type;
|
27
|
+
if (type) {
|
28
|
+
this.upload.nzType = type;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
33
|
+
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-upload
|
34
|
+
#upload
|
35
|
+
[formControl]="formControl"
|
36
|
+
[formlyAttributes]="field"
|
37
|
+
[nzAccept]="props['accept']"
|
38
|
+
[nzAction]="props['action']"
|
39
|
+
[nzDirectory]="props['directory']!!"
|
40
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
41
|
+
[nzCustomRequest]="props['customRequest']"
|
42
|
+
[nzData]="props['data']"
|
43
|
+
[(nzFileList)]="props['fileList']"
|
44
|
+
[nzLimit]="props['limit']"
|
45
|
+
[nzSize]="props['size']"
|
46
|
+
[nzFileType]="props['fileType']"
|
47
|
+
[nzFilter]="props['filter']!"
|
48
|
+
[nzHeaders]="props['headers']"
|
49
|
+
[nzListType]="props['listType']!"
|
50
|
+
[nzMultiple]="props['multiple']!!"
|
51
|
+
[nzName]="props['name']!"
|
52
|
+
[nzShowUploadList]="props['showUploadList']"
|
53
|
+
[nzShowButton]="props['showButton']!!"
|
54
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
55
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
56
|
+
[nzPreview]="props['preview']"
|
57
|
+
[nzPreviewFile]="props['previewFile']"
|
58
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
59
|
+
[nzRemove]="props['remove']"
|
60
|
+
(nzChange)="props['change'] && props['change']($event)"
|
61
|
+
[nzDownload]="props['download']"
|
62
|
+
[nzTransformFile]="props['transformFile']"
|
63
|
+
[nzIconRender]="props['iconRender'] ?? null"
|
64
|
+
[nzFileListRender]="props['fileListRender'] ?? null"
|
65
|
+
[text]="props['text']"
|
66
|
+
[className]="props['className']"
|
67
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
|
68
|
+
[resultMap]="props['resultMap']"
|
69
|
+
>
|
70
|
+
</formly-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i3.UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
72
|
+
type: Component,
|
73
|
+
args: [{
|
74
|
+
selector: 'formly-field-upload',
|
75
|
+
template: `<formly-upload
|
76
|
+
#upload
|
77
|
+
[formControl]="formControl"
|
78
|
+
[formlyAttributes]="field"
|
79
|
+
[nzAccept]="props['accept']"
|
80
|
+
[nzAction]="props['action']"
|
81
|
+
[nzDirectory]="props['directory']!!"
|
82
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
83
|
+
[nzCustomRequest]="props['customRequest']"
|
84
|
+
[nzData]="props['data']"
|
85
|
+
[(nzFileList)]="props['fileList']"
|
86
|
+
[nzLimit]="props['limit']"
|
87
|
+
[nzSize]="props['size']"
|
88
|
+
[nzFileType]="props['fileType']"
|
89
|
+
[nzFilter]="props['filter']!"
|
90
|
+
[nzHeaders]="props['headers']"
|
91
|
+
[nzListType]="props['listType']!"
|
92
|
+
[nzMultiple]="props['multiple']!!"
|
93
|
+
[nzName]="props['name']!"
|
94
|
+
[nzShowUploadList]="props['showUploadList']"
|
95
|
+
[nzShowButton]="props['showButton']!!"
|
96
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
97
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
98
|
+
[nzPreview]="props['preview']"
|
99
|
+
[nzPreviewFile]="props['previewFile']"
|
100
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
101
|
+
[nzRemove]="props['remove']"
|
102
|
+
(nzChange)="props['change'] && props['change']($event)"
|
103
|
+
[nzDownload]="props['download']"
|
104
|
+
[nzTransformFile]="props['transformFile']"
|
105
|
+
[nzIconRender]="props['iconRender'] ?? null"
|
106
|
+
[nzFileListRender]="props['fileListRender'] ?? null"
|
107
|
+
[text]="props['text']"
|
108
|
+
[className]="props['className']"
|
109
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
|
110
|
+
[resultMap]="props['resultMap']"
|
111
|
+
>
|
112
|
+
</formly-upload>`,
|
113
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
114
|
+
}]
|
115
|
+
}], propDecorators: { upload: [{
|
116
|
+
type: ViewChild,
|
117
|
+
args: ['upload', { static: true }]
|
118
|
+
}] } });
|
119
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFHdkIsU0FBUyxFQUVW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DmmK/lkKblsZXnpLrkuIrkvKDmjInpkq5cbiAgICogQGRlZmF1bHQgdHJ1ZVxuICAgKi9cbiAgc2hvd0J1dHRvbj86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIOS4iuS8oOivt+axguaXtuaYr+WQpuaQuuW4piBjb29raWVcbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIHdpdGhDcmVkZW50aWFscz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIOeCueWHu+aJk+W8gOaWh+S7tuWvueivneahhlxuICAgKiBAZGVmYXVsdCB0cnVlXG4gICAqL1xuICBvcGVuRmlsZURpYWxvZ09uQ2xpY2s/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiDngrnlh7vmlofku7bpk77mjqXmiJbpooTop4jlm77moIfml7bnmoTlm57osIPvvJvms6jmhI/vvJrliqHlv4Xkvb/nlKggPT4g5a6a5LmJ5aSE55CG5pa55rOV44CCXG4gICAqL1xuICBwcmV2aWV3PzogKGZpbGU6IE56VXBsb2FkRmlsZSkgPT4gdm9pZDtcblxuICAvKipcbiAgICog6Ieq5a6a5LmJ5paH5Lu26aKE6KeI6YC76L6R77yb5rOo5oSP77ya5Yqh5b+F5L2/55SoID0+IOWumuS5ieWkhOeQhuaWueazleOAglxuICAgKi9cbiAgcHJldmlld0ZpbGU/OiAoZmlsZTogTnpVcGxvYWRGaWxlKSA9PiBPYnNlcnZhYmxlPHN0cmluZz47XG5cbiAgLyoqXG4gICAqIOiHquWumuS5iemihOiniOaWh+S7tuaYr+WQpuacieaViOWbvuWDj++8jOS4gOiIrOeUqOS6juWbvuWDj1VSTOS4uumdnuagh+WHhuagvOW8j++8m+azqOaEj++8muWKoeW/heS9v+eUqCA9PiDlrprkuYnlpITnkIbmlrnms5XjgIJcbiAgICovXG4gIHByZXZpZXdJc0ltYWdlPzogKGZpbGU6IE56VXBsb2FkRmlsZSkgPT4gYm9vbGVhbjtcblxuICAvKipcbiAgICog54K55Ye756e76Zmk5pa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xuICAgICAgZmlsdGVyOiBbXSxcbiAgICAgIHRleHQ6ICcnXG4gICAgfVxuICB9O1xuXG4gIEBWaWV3Q2hpbGQoJ3VwbG9hZCcsIHsgc3RhdGljOiB0cnVlIH0pIHVwbG9hZCE6IE56VXBsb2FkQ29tcG9uZW50O1xuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIGNvbnN0IHR5cGUgPSB0aGlzLnByb3BzLnR5cGU7XG4gICAgaWYgKHR5cGUpIHtcbiAgICAgIHRoaXMudXBsb2FkLm56VHlwZSA9IHR5cGUgYXMgTnpVcGxvYWRUeXBlO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -11,162 +11,162 @@ import * as i4 from 'ng-zorro-antd/core/wave';
|
|
11
11
|
import * as i5 from 'ng-zorro-antd/icon';
|
12
12
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
13
13
|
|
14
|
-
class FormlyFieldButton extends FieldType {
|
15
|
-
constructor() {
|
16
|
-
super(...arguments);
|
17
|
-
this.defaultOptions = {
|
18
|
-
props: {
|
19
|
-
ghost: false,
|
20
|
-
loading: false,
|
21
|
-
block: false,
|
22
|
-
size: 'default',
|
23
|
-
danger: false
|
24
|
-
}
|
25
|
-
};
|
26
|
-
}
|
27
|
-
}
|
28
|
-
FormlyFieldButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
|
-
FormlyFieldButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
30
|
-
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
31
|
-
<a
|
32
|
-
nz-button
|
33
|
-
[formlyAttributes]="field"
|
34
|
-
[nzGhost]="props['ghost']!!"
|
35
|
-
[nzLoading]="props['loading']!!"
|
36
|
-
[nzShape]="props['shape'] ?? null"
|
37
|
-
[nzSize]="props['size']!"
|
38
|
-
[nzBlock]="props['block']!!"
|
39
|
-
[nzDanger]="props['danger']!!"
|
40
|
-
[nzType]="props['buttonType'] ?? 'link'"
|
41
|
-
[ngClass]="props['className']!"
|
42
|
-
>
|
43
|
-
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
44
|
-
{{ props.label }}
|
45
|
-
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
46
|
-
</a>
|
47
|
-
</ng-container>
|
48
|
-
<ng-template #elsebutton>
|
49
|
-
<button
|
50
|
-
nz-button
|
51
|
-
[attr.type]="field.type"
|
52
|
-
[formlyAttributes]="field"
|
53
|
-
[nzGhost]="props['ghost']!!"
|
54
|
-
[nzLoading]="props['loading']!!"
|
55
|
-
[nzShape]="props['shape'] ?? null"
|
56
|
-
[nzSize]="props['size']!"
|
57
|
-
[nzBlock]="props['block']!!"
|
58
|
-
[nzDanger]="props['danger']!!"
|
59
|
-
[nzType]="props['buttonType'] ?? null"
|
60
|
-
[ngClass]="props['className']!"
|
61
|
-
>
|
62
|
-
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
63
|
-
{{ props.label }}
|
64
|
-
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
65
|
-
</button>
|
66
|
-
</ng-template>
|
67
|
-
`, 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: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵ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: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
69
|
-
type: Component,
|
70
|
-
args: [{
|
71
|
-
selector: 'formly-field-button',
|
72
|
-
template: `
|
73
|
-
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
74
|
-
<a
|
75
|
-
nz-button
|
76
|
-
[formlyAttributes]="field"
|
77
|
-
[nzGhost]="props['ghost']!!"
|
78
|
-
[nzLoading]="props['loading']!!"
|
79
|
-
[nzShape]="props['shape'] ?? null"
|
80
|
-
[nzSize]="props['size']!"
|
81
|
-
[nzBlock]="props['block']!!"
|
82
|
-
[nzDanger]="props['danger']!!"
|
83
|
-
[nzType]="props['buttonType'] ?? 'link'"
|
84
|
-
[ngClass]="props['className']!"
|
85
|
-
>
|
86
|
-
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
87
|
-
{{ props.label }}
|
88
|
-
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
89
|
-
</a>
|
90
|
-
</ng-container>
|
91
|
-
<ng-template #elsebutton>
|
92
|
-
<button
|
93
|
-
nz-button
|
94
|
-
[attr.type]="field.type"
|
95
|
-
[formlyAttributes]="field"
|
96
|
-
[nzGhost]="props['ghost']!!"
|
97
|
-
[nzLoading]="props['loading']!!"
|
98
|
-
[nzShape]="props['shape'] ?? null"
|
99
|
-
[nzSize]="props['size']!"
|
100
|
-
[nzBlock]="props['block']!!"
|
101
|
-
[nzDanger]="props['danger']!!"
|
102
|
-
[nzType]="props['buttonType'] ?? null"
|
103
|
-
[ngClass]="props['className']!"
|
104
|
-
>
|
105
|
-
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
106
|
-
{{ props.label }}
|
107
|
-
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
108
|
-
</button>
|
109
|
-
</ng-template>
|
110
|
-
`,
|
111
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
112
|
-
}]
|
14
|
+
class FormlyFieldButton extends FieldType {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments);
|
17
|
+
this.defaultOptions = {
|
18
|
+
props: {
|
19
|
+
ghost: false,
|
20
|
+
loading: false,
|
21
|
+
block: false,
|
22
|
+
size: 'default',
|
23
|
+
danger: false
|
24
|
+
}
|
25
|
+
};
|
26
|
+
}
|
27
|
+
}
|
28
|
+
FormlyFieldButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
29
|
+
FormlyFieldButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
30
|
+
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
31
|
+
<a
|
32
|
+
nz-button
|
33
|
+
[formlyAttributes]="field"
|
34
|
+
[nzGhost]="props['ghost']!!"
|
35
|
+
[nzLoading]="props['loading']!!"
|
36
|
+
[nzShape]="props['shape'] ?? null"
|
37
|
+
[nzSize]="props['size']!"
|
38
|
+
[nzBlock]="props['block']!!"
|
39
|
+
[nzDanger]="props['danger']!!"
|
40
|
+
[nzType]="props['buttonType'] ?? 'link'"
|
41
|
+
[ngClass]="props['className']!"
|
42
|
+
>
|
43
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
44
|
+
{{ props.label }}
|
45
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
46
|
+
</a>
|
47
|
+
</ng-container>
|
48
|
+
<ng-template #elsebutton>
|
49
|
+
<button
|
50
|
+
nz-button
|
51
|
+
[attr.type]="field.type"
|
52
|
+
[formlyAttributes]="field"
|
53
|
+
[nzGhost]="props['ghost']!!"
|
54
|
+
[nzLoading]="props['loading']!!"
|
55
|
+
[nzShape]="props['shape'] ?? null"
|
56
|
+
[nzSize]="props['size']!"
|
57
|
+
[nzBlock]="props['block']!!"
|
58
|
+
[nzDanger]="props['danger']!!"
|
59
|
+
[nzType]="props['buttonType'] ?? null"
|
60
|
+
[ngClass]="props['className']!"
|
61
|
+
>
|
62
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
63
|
+
{{ props.label }}
|
64
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
65
|
+
</button>
|
66
|
+
</ng-template>
|
67
|
+
`, 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: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵ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: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
69
|
+
type: Component,
|
70
|
+
args: [{
|
71
|
+
selector: 'formly-field-button',
|
72
|
+
template: `
|
73
|
+
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
74
|
+
<a
|
75
|
+
nz-button
|
76
|
+
[formlyAttributes]="field"
|
77
|
+
[nzGhost]="props['ghost']!!"
|
78
|
+
[nzLoading]="props['loading']!!"
|
79
|
+
[nzShape]="props['shape'] ?? null"
|
80
|
+
[nzSize]="props['size']!"
|
81
|
+
[nzBlock]="props['block']!!"
|
82
|
+
[nzDanger]="props['danger']!!"
|
83
|
+
[nzType]="props['buttonType'] ?? 'link'"
|
84
|
+
[ngClass]="props['className']!"
|
85
|
+
>
|
86
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
87
|
+
{{ props.label }}
|
88
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
89
|
+
</a>
|
90
|
+
</ng-container>
|
91
|
+
<ng-template #elsebutton>
|
92
|
+
<button
|
93
|
+
nz-button
|
94
|
+
[attr.type]="field.type"
|
95
|
+
[formlyAttributes]="field"
|
96
|
+
[nzGhost]="props['ghost']!!"
|
97
|
+
[nzLoading]="props['loading']!!"
|
98
|
+
[nzShape]="props['shape'] ?? null"
|
99
|
+
[nzSize]="props['size']!"
|
100
|
+
[nzBlock]="props['block']!!"
|
101
|
+
[nzDanger]="props['danger']!!"
|
102
|
+
[nzType]="props['buttonType'] ?? null"
|
103
|
+
[ngClass]="props['className']!"
|
104
|
+
>
|
105
|
+
<span *ngIf="props['iconOnBefore']" nz-icon [nzType]="props['iconOnBefore']"></span>
|
106
|
+
{{ props.label }}
|
107
|
+
<span *ngIf="props['iconOnAfter']" nz-icon [nzType]="props['iconOnAfter']"></span>
|
108
|
+
</button>
|
109
|
+
</ng-template>
|
110
|
+
`,
|
111
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
112
|
+
}]
|
113
113
|
}] });
|
114
114
|
|
115
|
-
class FormlyNzButtonModule {
|
116
|
-
}
|
117
|
-
FormlyNzButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
118
|
-
FormlyNzButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
|
119
|
-
NzButtonModule,
|
120
|
-
NzIconModule, i6.FormlyModule] });
|
121
|
-
FormlyNzButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
|
122
|
-
NzButtonModule,
|
123
|
-
NzIconModule,
|
124
|
-
FormlyModule.forChild({
|
125
|
-
types: [
|
126
|
-
{
|
127
|
-
name: 'button',
|
128
|
-
component: FormlyFieldButton
|
129
|
-
},
|
130
|
-
{
|
131
|
-
name: 'submit',
|
132
|
-
extends: 'button'
|
133
|
-
},
|
134
|
-
{
|
135
|
-
name: 'reset',
|
136
|
-
extends: 'button'
|
137
|
-
}
|
138
|
-
]
|
139
|
-
})] });
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
|
141
|
-
type: NgModule,
|
142
|
-
args: [{
|
143
|
-
declarations: [FormlyFieldButton],
|
144
|
-
imports: [
|
145
|
-
CommonModule,
|
146
|
-
NzButtonModule,
|
147
|
-
NzIconModule,
|
148
|
-
FormlyModule.forChild({
|
149
|
-
types: [
|
150
|
-
{
|
151
|
-
name: 'button',
|
152
|
-
component: FormlyFieldButton
|
153
|
-
},
|
154
|
-
{
|
155
|
-
name: 'submit',
|
156
|
-
extends: 'button'
|
157
|
-
},
|
158
|
-
{
|
159
|
-
name: 'reset',
|
160
|
-
extends: 'button'
|
161
|
-
}
|
162
|
-
]
|
163
|
-
})
|
164
|
-
]
|
165
|
-
}]
|
115
|
+
class FormlyNzButtonModule {
|
116
|
+
}
|
117
|
+
FormlyNzButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
118
|
+
FormlyNzButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
|
119
|
+
NzButtonModule,
|
120
|
+
NzIconModule, i6.FormlyModule] });
|
121
|
+
FormlyNzButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
|
122
|
+
NzButtonModule,
|
123
|
+
NzIconModule,
|
124
|
+
FormlyModule.forChild({
|
125
|
+
types: [
|
126
|
+
{
|
127
|
+
name: 'button',
|
128
|
+
component: FormlyFieldButton
|
129
|
+
},
|
130
|
+
{
|
131
|
+
name: 'submit',
|
132
|
+
extends: 'button'
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: 'reset',
|
136
|
+
extends: 'button'
|
137
|
+
}
|
138
|
+
]
|
139
|
+
})] });
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
|
141
|
+
type: NgModule,
|
142
|
+
args: [{
|
143
|
+
declarations: [FormlyFieldButton],
|
144
|
+
imports: [
|
145
|
+
CommonModule,
|
146
|
+
NzButtonModule,
|
147
|
+
NzIconModule,
|
148
|
+
FormlyModule.forChild({
|
149
|
+
types: [
|
150
|
+
{
|
151
|
+
name: 'button',
|
152
|
+
component: FormlyFieldButton
|
153
|
+
},
|
154
|
+
{
|
155
|
+
name: 'submit',
|
156
|
+
extends: 'button'
|
157
|
+
},
|
158
|
+
{
|
159
|
+
name: 'reset',
|
160
|
+
extends: 'button'
|
161
|
+
}
|
162
|
+
]
|
163
|
+
})
|
164
|
+
]
|
165
|
+
}]
|
166
166
|
}] });
|
167
167
|
|
168
|
-
/**
|
169
|
-
* Generated bundle index. Do not edit.
|
168
|
+
/**
|
169
|
+
* Generated bundle index. Do not edit.
|
170
170
|
*/
|
171
171
|
|
172
172
|
export { FormlyFieldButton, FormlyNzButtonModule };
|