ngx-formly-zorro-antd 14.0.0 → 14.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +38 -38
- package/autocomplete/index.d.ts +5 -5
- package/autocomplete/public_api.d.ts +1 -1
- package/button/button.module.d.ts +11 -11
- package/button/button.type.d.ts +66 -66
- package/button/index.d.ts +5 -5
- package/button/public_api.d.ts +2 -2
- package/card/card.module.d.ts +10 -10
- package/card/card.wrapper.d.ts +58 -58
- package/card/index.d.ts +5 -5
- package/card/public_api.d.ts +2 -2
- package/cascader/cascader.module.d.ts +12 -12
- package/cascader/cascader.type.d.ts +152 -152
- package/cascader/index.d.ts +5 -5
- package/cascader/public_api.d.ts +2 -2
- package/checkbox/checkbox.module.d.ts +12 -12
- package/checkbox/checkbox.type.d.ts +35 -35
- package/checkbox/index.d.ts +5 -5
- package/checkbox/public_api.d.ts +2 -2
- package/datepicker/datepicker.module.d.ts +12 -12
- package/datepicker/datepicker.props.d.ts +144 -146
- package/datepicker/datepicker.type.d.ts +31 -31
- package/datepicker/index.d.ts +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -61
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -43
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -51
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -59
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -51
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +191 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -45
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -41
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -89
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -309
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -47
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -59
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -59
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -51
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -57
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +163 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -51
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -51
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -41
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -51
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -51
- package/esm2020/timepicker/timepicker.type.mjs +92 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -52
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -51
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -60
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +224 -222
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +199 -199
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +125 -125
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/index.d.ts +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/index.d.ts +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/index.d.ts +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/index.d.ts +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/index.d.ts +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +5 -1
- package/radio/index.d.ts +5 -5
- package/radio/public_api.d.ts +2 -2
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.type.d.ts +38 -38
- package/rate/index.d.ts +5 -5
- package/rate/public_api.d.ts +2 -2
- package/rate/rate.module.d.ts +12 -12
- package/rate/rate.type.d.ts +57 -57
- package/select/index.d.ts +5 -5
- package/select/public_api.d.ts +2 -2
- package/select/select.module.d.ts +13 -13
- package/select/select.props.d.ts +162 -162
- package/select/select.type.d.ts +35 -35
- package/slider/index.d.ts +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/index.d.ts +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/index.d.ts +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/index.d.ts +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/index.d.ts +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +131 -131
- package/transfer/index.d.ts +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/index.d.ts +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/index.d.ts +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
@@ -14,386 +14,386 @@ import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
|
|
14
14
|
import * as i5 from 'ng-zorro-antd/icon';
|
15
15
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
16
16
|
|
17
|
-
class FormlyFieldInput extends FieldType {
|
18
|
-
constructor() {
|
19
|
-
super(...arguments);
|
20
|
-
this.defaultOptions = {
|
21
|
-
props: {
|
22
|
-
borderless: false,
|
23
|
-
compact: false,
|
24
|
-
search: false,
|
25
|
-
allowClear: false,
|
26
|
-
autocompleteOptions: {
|
27
|
-
backfill: false,
|
28
|
-
defaultActiveFirstOption: true,
|
29
|
-
compareWith: (o1, o2) => o1 === o2
|
30
|
-
}
|
31
|
-
}
|
32
|
-
};
|
33
|
-
this.passwordVisible = false;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
37
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
|
38
|
-
<ng-container [ngSwitch]="props.type">
|
39
|
-
<ng-container *ngSwitchCase="'password'">
|
40
|
-
<nz-input-group
|
41
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
42
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
43
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
44
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
45
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
46
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
47
|
-
[nzPrefix]="props['prefix']"
|
48
|
-
[nzCompact]="props['compact']!!"
|
49
|
-
[nzSearch]="props['search']!!"
|
50
|
-
[nzSize]="props['size']!"
|
51
|
-
[nzStatus]="props['status']!"
|
52
|
-
[nzSuffix]="passwordEyeTpl"
|
53
|
-
>
|
54
|
-
<input
|
55
|
-
[type]="passwordVisible ? 'text' : 'password'"
|
56
|
-
nz-input
|
57
|
-
[formControl]="formControl"
|
58
|
-
[formlyAttributes]="field"
|
59
|
-
[nzBorderless]="props['borderless']!!"
|
60
|
-
(ngModelChange)="props
|
61
|
-
/>
|
62
|
-
</nz-input-group>
|
63
|
-
</ng-container>
|
64
|
-
|
65
|
-
<nz-input-group
|
66
|
-
*ngSwitchCase="'autoComplete'"
|
67
|
-
[nzSize]="props['size']"
|
68
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
69
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
70
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
71
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
72
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
73
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
74
|
-
[nzPrefix]="props['prefix']"
|
75
|
-
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
76
|
-
>
|
77
|
-
<input
|
78
|
-
nz-input
|
79
|
-
[nzBorderless]="props['borderless']"
|
80
|
-
[nzAutocomplete]="auto"
|
81
|
-
[formControl]="formControl"
|
82
|
-
[formlyAttributes]="field"
|
83
|
-
/>
|
84
|
-
<nz-autocomplete
|
85
|
-
[nzBackfill]="props['autocompleteOptions']?.backfill"
|
86
|
-
[nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
|
87
|
-
[nzWidth]="props['autocompleteOptions']?.width"
|
88
|
-
[nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
|
89
|
-
[nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
|
90
|
-
[compareWith]="props['autocompleteOptions']?.compareWith"
|
91
|
-
#auto
|
92
|
-
>
|
93
|
-
<nz-auto-option
|
94
|
-
*ngFor="let option of props['autocompleteOptions'].dataSource"
|
95
|
-
[nzLabel]="option.label"
|
96
|
-
[nzValue]="option.value"
|
97
|
-
>
|
98
|
-
{{ option.label }}
|
99
|
-
</nz-auto-option>
|
100
|
-
</nz-autocomplete>
|
101
|
-
</nz-input-group>
|
102
|
-
|
103
|
-
<nz-input-group
|
104
|
-
*ngSwitchCase="'group'"
|
105
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
106
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
107
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
108
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
109
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
110
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
111
|
-
[nzPrefix]="props['prefix']"
|
112
|
-
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
113
|
-
[nzCompact]="props['compact']!!"
|
114
|
-
[nzSearch]="props['search']!!"
|
115
|
-
[nzSize]="props['size']!"
|
116
|
-
[nzStatus]="props['status']!"
|
117
|
-
>
|
118
|
-
<input
|
119
|
-
nz-input
|
120
|
-
type="text"
|
121
|
-
[ngClass]="props['className']!"
|
122
|
-
[formControl]="formControl"
|
123
|
-
[formlyAttributes]="field"
|
124
|
-
[nzBorderless]="!!props['borderless']!!"
|
125
|
-
(ngModelChange)="props
|
126
|
-
/>
|
127
|
-
</nz-input-group>
|
128
|
-
|
129
|
-
<input
|
130
|
-
*ngSwitchDefault
|
131
|
-
nz-input
|
132
|
-
type="text"
|
133
|
-
[ngClass]="props['className']!"
|
134
|
-
[formControl]="formControl"
|
135
|
-
[formlyAttributes]="field"
|
136
|
-
[nzSize]="props['size']"
|
137
|
-
[nzStatus]="props['status']"
|
138
|
-
[nzBorderless]="props['borderless']!!"
|
139
|
-
(ngModelChange)="props
|
140
|
-
/>
|
141
|
-
</ng-container>
|
142
|
-
|
143
|
-
<!-- 查看密码 -->
|
144
|
-
<ng-template #passwordEyeTpl>
|
145
|
-
<span
|
146
|
-
nz-icon
|
147
|
-
class="cursor-pointer"
|
148
|
-
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
149
|
-
(click)="passwordVisible = !passwordVisible"
|
150
|
-
></span>
|
151
|
-
|
152
|
-
<span
|
153
|
-
nz-icon
|
154
|
-
class="ant-input-clear-icon"
|
155
|
-
nzTheme="fill"
|
156
|
-
nzType="close-circle"
|
157
|
-
*ngIf="formControl.value && props['allowClear']!!"
|
158
|
-
(click)="formControl.reset()"
|
159
|
-
></span>
|
160
|
-
</ng-template>
|
161
|
-
<!-- 清除数据 -->
|
162
|
-
<ng-template #inputClearTpl>
|
163
|
-
<span
|
164
|
-
nz-icon
|
165
|
-
class="ant-input-clear-icon"
|
166
|
-
nzTheme="fill"
|
167
|
-
nzType="close-circle"
|
168
|
-
*ngIf="formControl.value"
|
169
|
-
(click)="formControl.reset()"
|
170
|
-
></span>
|
171
|
-
</ng-template>
|
172
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { 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 });
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
174
|
-
type: Component,
|
175
|
-
args: [{
|
176
|
-
selector: 'formly-field-input',
|
177
|
-
template: `
|
178
|
-
<ng-container [ngSwitch]="props.type">
|
179
|
-
<ng-container *ngSwitchCase="'password'">
|
180
|
-
<nz-input-group
|
181
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
182
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
183
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
184
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
185
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
186
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
187
|
-
[nzPrefix]="props['prefix']"
|
188
|
-
[nzCompact]="props['compact']!!"
|
189
|
-
[nzSearch]="props['search']!!"
|
190
|
-
[nzSize]="props['size']!"
|
191
|
-
[nzStatus]="props['status']!"
|
192
|
-
[nzSuffix]="passwordEyeTpl"
|
193
|
-
>
|
194
|
-
<input
|
195
|
-
[type]="passwordVisible ? 'text' : 'password'"
|
196
|
-
nz-input
|
197
|
-
[formControl]="formControl"
|
198
|
-
[formlyAttributes]="field"
|
199
|
-
[nzBorderless]="props['borderless']!!"
|
200
|
-
(ngModelChange)="props
|
201
|
-
/>
|
202
|
-
</nz-input-group>
|
203
|
-
</ng-container>
|
204
|
-
|
205
|
-
<nz-input-group
|
206
|
-
*ngSwitchCase="'autoComplete'"
|
207
|
-
[nzSize]="props['size']"
|
208
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
209
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
210
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
211
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
212
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
213
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
214
|
-
[nzPrefix]="props['prefix']"
|
215
|
-
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
216
|
-
>
|
217
|
-
<input
|
218
|
-
nz-input
|
219
|
-
[nzBorderless]="props['borderless']"
|
220
|
-
[nzAutocomplete]="auto"
|
221
|
-
[formControl]="formControl"
|
222
|
-
[formlyAttributes]="field"
|
223
|
-
/>
|
224
|
-
<nz-autocomplete
|
225
|
-
[nzBackfill]="props['autocompleteOptions']?.backfill"
|
226
|
-
[nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
|
227
|
-
[nzWidth]="props['autocompleteOptions']?.width"
|
228
|
-
[nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
|
229
|
-
[nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
|
230
|
-
[compareWith]="props['autocompleteOptions']?.compareWith"
|
231
|
-
#auto
|
232
|
-
>
|
233
|
-
<nz-auto-option
|
234
|
-
*ngFor="let option of props['autocompleteOptions'].dataSource"
|
235
|
-
[nzLabel]="option.label"
|
236
|
-
[nzValue]="option.value"
|
237
|
-
>
|
238
|
-
{{ option.label }}
|
239
|
-
</nz-auto-option>
|
240
|
-
</nz-autocomplete>
|
241
|
-
</nz-input-group>
|
242
|
-
|
243
|
-
<nz-input-group
|
244
|
-
*ngSwitchCase="'group'"
|
245
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
246
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
247
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
248
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
249
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
250
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
251
|
-
[nzPrefix]="props['prefix']"
|
252
|
-
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
253
|
-
[nzCompact]="props['compact']!!"
|
254
|
-
[nzSearch]="props['search']!!"
|
255
|
-
[nzSize]="props['size']!"
|
256
|
-
[nzStatus]="props['status']!"
|
257
|
-
>
|
258
|
-
<input
|
259
|
-
nz-input
|
260
|
-
type="text"
|
261
|
-
[ngClass]="props['className']!"
|
262
|
-
[formControl]="formControl"
|
263
|
-
[formlyAttributes]="field"
|
264
|
-
[nzBorderless]="!!props['borderless']!!"
|
265
|
-
(ngModelChange)="props
|
266
|
-
/>
|
267
|
-
</nz-input-group>
|
268
|
-
|
269
|
-
<input
|
270
|
-
*ngSwitchDefault
|
271
|
-
nz-input
|
272
|
-
type="text"
|
273
|
-
[ngClass]="props['className']!"
|
274
|
-
[formControl]="formControl"
|
275
|
-
[formlyAttributes]="field"
|
276
|
-
[nzSize]="props['size']"
|
277
|
-
[nzStatus]="props['status']"
|
278
|
-
[nzBorderless]="props['borderless']!!"
|
279
|
-
(ngModelChange)="props
|
280
|
-
/>
|
281
|
-
</ng-container>
|
282
|
-
|
283
|
-
<!-- 查看密码 -->
|
284
|
-
<ng-template #passwordEyeTpl>
|
285
|
-
<span
|
286
|
-
nz-icon
|
287
|
-
class="cursor-pointer"
|
288
|
-
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
289
|
-
(click)="passwordVisible = !passwordVisible"
|
290
|
-
></span>
|
291
|
-
|
292
|
-
<span
|
293
|
-
nz-icon
|
294
|
-
class="ant-input-clear-icon"
|
295
|
-
nzTheme="fill"
|
296
|
-
nzType="close-circle"
|
297
|
-
*ngIf="formControl.value && props['allowClear']!!"
|
298
|
-
(click)="formControl.reset()"
|
299
|
-
></span>
|
300
|
-
</ng-template>
|
301
|
-
<!-- 清除数据 -->
|
302
|
-
<ng-template #inputClearTpl>
|
303
|
-
<span
|
304
|
-
nz-icon
|
305
|
-
class="ant-input-clear-icon"
|
306
|
-
nzTheme="fill"
|
307
|
-
nzType="close-circle"
|
308
|
-
*ngIf="formControl.value"
|
309
|
-
(click)="formControl.reset()"
|
310
|
-
></span>
|
311
|
-
</ng-template>
|
312
|
-
`,
|
313
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
314
|
-
}]
|
17
|
+
class FormlyFieldInput extends FieldType {
|
18
|
+
constructor() {
|
19
|
+
super(...arguments);
|
20
|
+
this.defaultOptions = {
|
21
|
+
props: {
|
22
|
+
borderless: false,
|
23
|
+
compact: false,
|
24
|
+
search: false,
|
25
|
+
allowClear: false,
|
26
|
+
autocompleteOptions: {
|
27
|
+
backfill: false,
|
28
|
+
defaultActiveFirstOption: true,
|
29
|
+
compareWith: (o1, o2) => o1 === o2
|
30
|
+
}
|
31
|
+
}
|
32
|
+
};
|
33
|
+
this.passwordVisible = false;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
37
|
+
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
|
38
|
+
<ng-container [ngSwitch]="props.type">
|
39
|
+
<ng-container *ngSwitchCase="'password'">
|
40
|
+
<nz-input-group
|
41
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
42
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
43
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
44
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
45
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
46
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
47
|
+
[nzPrefix]="props['prefix']"
|
48
|
+
[nzCompact]="props['compact']!!"
|
49
|
+
[nzSearch]="props['search']!!"
|
50
|
+
[nzSize]="props['size']!"
|
51
|
+
[nzStatus]="props['status']!"
|
52
|
+
[nzSuffix]="passwordEyeTpl"
|
53
|
+
>
|
54
|
+
<input
|
55
|
+
[type]="passwordVisible ? 'text' : 'password'"
|
56
|
+
nz-input
|
57
|
+
[formControl]="formControl"
|
58
|
+
[formlyAttributes]="field"
|
59
|
+
[nzBorderless]="props['borderless']!!"
|
60
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
61
|
+
/>
|
62
|
+
</nz-input-group>
|
63
|
+
</ng-container>
|
64
|
+
|
65
|
+
<nz-input-group
|
66
|
+
*ngSwitchCase="'autoComplete'"
|
67
|
+
[nzSize]="props['size']"
|
68
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
69
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
70
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
71
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
72
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
73
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
74
|
+
[nzPrefix]="props['prefix']"
|
75
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
76
|
+
>
|
77
|
+
<input
|
78
|
+
nz-input
|
79
|
+
[nzBorderless]="props['borderless']"
|
80
|
+
[nzAutocomplete]="auto"
|
81
|
+
[formControl]="formControl"
|
82
|
+
[formlyAttributes]="field"
|
83
|
+
/>
|
84
|
+
<nz-autocomplete
|
85
|
+
[nzBackfill]="props['autocompleteOptions']?.backfill"
|
86
|
+
[nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
|
87
|
+
[nzWidth]="props['autocompleteOptions']?.width"
|
88
|
+
[nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
|
89
|
+
[nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
|
90
|
+
[compareWith]="props['autocompleteOptions']?.compareWith"
|
91
|
+
#auto
|
92
|
+
>
|
93
|
+
<nz-auto-option
|
94
|
+
*ngFor="let option of props['autocompleteOptions'].dataSource"
|
95
|
+
[nzLabel]="option.label"
|
96
|
+
[nzValue]="option.value"
|
97
|
+
>
|
98
|
+
{{ option.label }}
|
99
|
+
</nz-auto-option>
|
100
|
+
</nz-autocomplete>
|
101
|
+
</nz-input-group>
|
102
|
+
|
103
|
+
<nz-input-group
|
104
|
+
*ngSwitchCase="'group'"
|
105
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
106
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
107
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
108
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
109
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
110
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
111
|
+
[nzPrefix]="props['prefix']"
|
112
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
113
|
+
[nzCompact]="props['compact']!!"
|
114
|
+
[nzSearch]="props['search']!!"
|
115
|
+
[nzSize]="props['size']!"
|
116
|
+
[nzStatus]="props['status']!"
|
117
|
+
>
|
118
|
+
<input
|
119
|
+
nz-input
|
120
|
+
type="text"
|
121
|
+
[ngClass]="props['className']!"
|
122
|
+
[formControl]="formControl"
|
123
|
+
[formlyAttributes]="field"
|
124
|
+
[nzBorderless]="!!props['borderless']!!"
|
125
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
126
|
+
/>
|
127
|
+
</nz-input-group>
|
128
|
+
|
129
|
+
<input
|
130
|
+
*ngSwitchDefault
|
131
|
+
nz-input
|
132
|
+
type="text"
|
133
|
+
[ngClass]="props['className']!"
|
134
|
+
[formControl]="formControl"
|
135
|
+
[formlyAttributes]="field"
|
136
|
+
[nzSize]="props['size']"
|
137
|
+
[nzStatus]="props['status']"
|
138
|
+
[nzBorderless]="props['borderless']!!"
|
139
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
140
|
+
/>
|
141
|
+
</ng-container>
|
142
|
+
|
143
|
+
<!-- 查看密码 -->
|
144
|
+
<ng-template #passwordEyeTpl>
|
145
|
+
<span
|
146
|
+
nz-icon
|
147
|
+
class="cursor-pointer"
|
148
|
+
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
149
|
+
(click)="passwordVisible = !passwordVisible"
|
150
|
+
></span>
|
151
|
+
|
152
|
+
<span
|
153
|
+
nz-icon
|
154
|
+
class="ant-input-clear-icon"
|
155
|
+
nzTheme="fill"
|
156
|
+
nzType="close-circle"
|
157
|
+
*ngIf="formControl.value && props['allowClear']!!"
|
158
|
+
(click)="formControl.reset()"
|
159
|
+
></span>
|
160
|
+
</ng-template>
|
161
|
+
<!-- 清除数据 -->
|
162
|
+
<ng-template #inputClearTpl>
|
163
|
+
<span
|
164
|
+
nz-icon
|
165
|
+
class="ant-input-clear-icon"
|
166
|
+
nzTheme="fill"
|
167
|
+
nzType="close-circle"
|
168
|
+
*ngIf="formControl.value"
|
169
|
+
(click)="formControl.reset()"
|
170
|
+
></span>
|
171
|
+
</ng-template>
|
172
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { 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 });
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
174
|
+
type: Component,
|
175
|
+
args: [{
|
176
|
+
selector: 'formly-field-input',
|
177
|
+
template: `
|
178
|
+
<ng-container [ngSwitch]="props.type">
|
179
|
+
<ng-container *ngSwitchCase="'password'">
|
180
|
+
<nz-input-group
|
181
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
182
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
183
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
184
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
185
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
186
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
187
|
+
[nzPrefix]="props['prefix']"
|
188
|
+
[nzCompact]="props['compact']!!"
|
189
|
+
[nzSearch]="props['search']!!"
|
190
|
+
[nzSize]="props['size']!"
|
191
|
+
[nzStatus]="props['status']!"
|
192
|
+
[nzSuffix]="passwordEyeTpl"
|
193
|
+
>
|
194
|
+
<input
|
195
|
+
[type]="passwordVisible ? 'text' : 'password'"
|
196
|
+
nz-input
|
197
|
+
[formControl]="formControl"
|
198
|
+
[formlyAttributes]="field"
|
199
|
+
[nzBorderless]="props['borderless']!!"
|
200
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
201
|
+
/>
|
202
|
+
</nz-input-group>
|
203
|
+
</ng-container>
|
204
|
+
|
205
|
+
<nz-input-group
|
206
|
+
*ngSwitchCase="'autoComplete'"
|
207
|
+
[nzSize]="props['size']"
|
208
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
209
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
210
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
211
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
212
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
213
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
214
|
+
[nzPrefix]="props['prefix']"
|
215
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
216
|
+
>
|
217
|
+
<input
|
218
|
+
nz-input
|
219
|
+
[nzBorderless]="props['borderless']"
|
220
|
+
[nzAutocomplete]="auto"
|
221
|
+
[formControl]="formControl"
|
222
|
+
[formlyAttributes]="field"
|
223
|
+
/>
|
224
|
+
<nz-autocomplete
|
225
|
+
[nzBackfill]="props['autocompleteOptions']?.backfill"
|
226
|
+
[nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
|
227
|
+
[nzWidth]="props['autocompleteOptions']?.width"
|
228
|
+
[nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
|
229
|
+
[nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
|
230
|
+
[compareWith]="props['autocompleteOptions']?.compareWith"
|
231
|
+
#auto
|
232
|
+
>
|
233
|
+
<nz-auto-option
|
234
|
+
*ngFor="let option of props['autocompleteOptions'].dataSource"
|
235
|
+
[nzLabel]="option.label"
|
236
|
+
[nzValue]="option.value"
|
237
|
+
>
|
238
|
+
{{ option.label }}
|
239
|
+
</nz-auto-option>
|
240
|
+
</nz-autocomplete>
|
241
|
+
</nz-input-group>
|
242
|
+
|
243
|
+
<nz-input-group
|
244
|
+
*ngSwitchCase="'group'"
|
245
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
246
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
247
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
248
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
249
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
250
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
251
|
+
[nzPrefix]="props['prefix']"
|
252
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
253
|
+
[nzCompact]="props['compact']!!"
|
254
|
+
[nzSearch]="props['search']!!"
|
255
|
+
[nzSize]="props['size']!"
|
256
|
+
[nzStatus]="props['status']!"
|
257
|
+
>
|
258
|
+
<input
|
259
|
+
nz-input
|
260
|
+
type="text"
|
261
|
+
[ngClass]="props['className']!"
|
262
|
+
[formControl]="formControl"
|
263
|
+
[formlyAttributes]="field"
|
264
|
+
[nzBorderless]="!!props['borderless']!!"
|
265
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
266
|
+
/>
|
267
|
+
</nz-input-group>
|
268
|
+
|
269
|
+
<input
|
270
|
+
*ngSwitchDefault
|
271
|
+
nz-input
|
272
|
+
type="text"
|
273
|
+
[ngClass]="props['className']!"
|
274
|
+
[formControl]="formControl"
|
275
|
+
[formlyAttributes]="field"
|
276
|
+
[nzSize]="props['size']"
|
277
|
+
[nzStatus]="props['status']"
|
278
|
+
[nzBorderless]="props['borderless']!!"
|
279
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
280
|
+
/>
|
281
|
+
</ng-container>
|
282
|
+
|
283
|
+
<!-- 查看密码 -->
|
284
|
+
<ng-template #passwordEyeTpl>
|
285
|
+
<span
|
286
|
+
nz-icon
|
287
|
+
class="cursor-pointer"
|
288
|
+
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
289
|
+
(click)="passwordVisible = !passwordVisible"
|
290
|
+
></span>
|
291
|
+
|
292
|
+
<span
|
293
|
+
nz-icon
|
294
|
+
class="ant-input-clear-icon"
|
295
|
+
nzTheme="fill"
|
296
|
+
nzType="close-circle"
|
297
|
+
*ngIf="formControl.value && props['allowClear']!!"
|
298
|
+
(click)="formControl.reset()"
|
299
|
+
></span>
|
300
|
+
</ng-template>
|
301
|
+
<!-- 清除数据 -->
|
302
|
+
<ng-template #inputClearTpl>
|
303
|
+
<span
|
304
|
+
nz-icon
|
305
|
+
class="ant-input-clear-icon"
|
306
|
+
nzTheme="fill"
|
307
|
+
nzType="close-circle"
|
308
|
+
*ngIf="formControl.value"
|
309
|
+
(click)="formControl.reset()"
|
310
|
+
></span>
|
311
|
+
</ng-template>
|
312
|
+
`,
|
313
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
314
|
+
}]
|
315
315
|
}] });
|
316
316
|
|
317
|
-
class FormlyNzInputModule {
|
318
|
-
}
|
319
|
-
FormlyNzInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
320
|
-
FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
321
|
-
ReactiveFormsModule,
|
322
|
-
NzInputModule,
|
323
|
-
NzAutocompleteModule,
|
324
|
-
NzIconModule,
|
325
|
-
FormlyNzFormFieldModule, i6.FormlyModule] });
|
326
|
-
FormlyNzInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
|
327
|
-
ReactiveFormsModule,
|
328
|
-
NzInputModule,
|
329
|
-
NzAutocompleteModule,
|
330
|
-
NzIconModule,
|
331
|
-
FormlyNzFormFieldModule,
|
332
|
-
FormlyModule.forChild({
|
333
|
-
types: [
|
334
|
-
{
|
335
|
-
name: 'input',
|
336
|
-
component: FormlyFieldInput,
|
337
|
-
wrappers: ['form-field'],
|
338
|
-
defaultOptions: {
|
339
|
-
props: {
|
340
|
-
type: 'input'
|
341
|
-
}
|
342
|
-
}
|
343
|
-
},
|
344
|
-
{ name: 'string', extends: 'input' },
|
345
|
-
{
|
346
|
-
name: 'password',
|
347
|
-
extends: 'input',
|
348
|
-
defaultOptions: {
|
349
|
-
props: {
|
350
|
-
type: 'password'
|
351
|
-
}
|
352
|
-
}
|
353
|
-
}
|
354
|
-
]
|
355
|
-
})] });
|
356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, decorators: [{
|
357
|
-
type: NgModule,
|
358
|
-
args: [{
|
359
|
-
declarations: [FormlyFieldInput],
|
360
|
-
imports: [
|
361
|
-
CommonModule,
|
362
|
-
ReactiveFormsModule,
|
363
|
-
NzInputModule,
|
364
|
-
NzAutocompleteModule,
|
365
|
-
NzIconModule,
|
366
|
-
FormlyNzFormFieldModule,
|
367
|
-
FormlyModule.forChild({
|
368
|
-
types: [
|
369
|
-
{
|
370
|
-
name: 'input',
|
371
|
-
component: FormlyFieldInput,
|
372
|
-
wrappers: ['form-field'],
|
373
|
-
defaultOptions: {
|
374
|
-
props: {
|
375
|
-
type: 'input'
|
376
|
-
}
|
377
|
-
}
|
378
|
-
},
|
379
|
-
{ name: 'string', extends: 'input' },
|
380
|
-
{
|
381
|
-
name: 'password',
|
382
|
-
extends: 'input',
|
383
|
-
defaultOptions: {
|
384
|
-
props: {
|
385
|
-
type: 'password'
|
386
|
-
}
|
387
|
-
}
|
388
|
-
}
|
389
|
-
]
|
390
|
-
})
|
391
|
-
]
|
392
|
-
}]
|
317
|
+
class FormlyNzInputModule {
|
318
|
+
}
|
319
|
+
FormlyNzInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
320
|
+
FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
321
|
+
ReactiveFormsModule,
|
322
|
+
NzInputModule,
|
323
|
+
NzAutocompleteModule,
|
324
|
+
NzIconModule,
|
325
|
+
FormlyNzFormFieldModule, i6.FormlyModule] });
|
326
|
+
FormlyNzInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
|
327
|
+
ReactiveFormsModule,
|
328
|
+
NzInputModule,
|
329
|
+
NzAutocompleteModule,
|
330
|
+
NzIconModule,
|
331
|
+
FormlyNzFormFieldModule,
|
332
|
+
FormlyModule.forChild({
|
333
|
+
types: [
|
334
|
+
{
|
335
|
+
name: 'input',
|
336
|
+
component: FormlyFieldInput,
|
337
|
+
wrappers: ['form-field'],
|
338
|
+
defaultOptions: {
|
339
|
+
props: {
|
340
|
+
type: 'input'
|
341
|
+
}
|
342
|
+
}
|
343
|
+
},
|
344
|
+
{ name: 'string', extends: 'input' },
|
345
|
+
{
|
346
|
+
name: 'password',
|
347
|
+
extends: 'input',
|
348
|
+
defaultOptions: {
|
349
|
+
props: {
|
350
|
+
type: 'password'
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
]
|
355
|
+
})] });
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, decorators: [{
|
357
|
+
type: NgModule,
|
358
|
+
args: [{
|
359
|
+
declarations: [FormlyFieldInput],
|
360
|
+
imports: [
|
361
|
+
CommonModule,
|
362
|
+
ReactiveFormsModule,
|
363
|
+
NzInputModule,
|
364
|
+
NzAutocompleteModule,
|
365
|
+
NzIconModule,
|
366
|
+
FormlyNzFormFieldModule,
|
367
|
+
FormlyModule.forChild({
|
368
|
+
types: [
|
369
|
+
{
|
370
|
+
name: 'input',
|
371
|
+
component: FormlyFieldInput,
|
372
|
+
wrappers: ['form-field'],
|
373
|
+
defaultOptions: {
|
374
|
+
props: {
|
375
|
+
type: 'input'
|
376
|
+
}
|
377
|
+
}
|
378
|
+
},
|
379
|
+
{ name: 'string', extends: 'input' },
|
380
|
+
{
|
381
|
+
name: 'password',
|
382
|
+
extends: 'input',
|
383
|
+
defaultOptions: {
|
384
|
+
props: {
|
385
|
+
type: 'password'
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
]
|
390
|
+
})
|
391
|
+
]
|
392
|
+
}]
|
393
393
|
}] });
|
394
394
|
|
395
|
-
/**
|
396
|
-
* Generated bundle index. Do not edit.
|
395
|
+
/**
|
396
|
+
* Generated bundle index. Do not edit.
|
397
397
|
*/
|
398
398
|
|
399
399
|
export { FormlyFieldInput, FormlyNzInputModule };
|