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
@@ -8,112 +8,112 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
|
8
8
|
import * as i2 from 'ng-zorro-antd/input';
|
9
9
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
10
10
|
|
11
|
-
class FormlyFieldInputGroup extends FieldType {
|
12
|
-
constructor() {
|
13
|
-
super(...arguments);
|
14
|
-
this.defaultOptions = {
|
15
|
-
props: {
|
16
|
-
status: '',
|
17
|
-
size: 'default'
|
18
|
-
}
|
19
|
-
};
|
20
|
-
}
|
21
|
-
get group() {
|
22
|
-
return this.field.fieldGroup;
|
23
|
-
}
|
24
|
-
trackById(index, envent) {
|
25
|
-
if (!envent.id) {
|
26
|
-
return index;
|
27
|
-
}
|
28
|
-
return envent.id;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
FormlyFieldInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
32
|
-
FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
33
|
-
<nz-input-group
|
34
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
35
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
36
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
37
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
38
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
39
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
40
|
-
[nzPrefix]="props['prefix']"
|
41
|
-
[nzSuffix]="props['suffix']"
|
42
|
-
[nzCompact]="props['compact']!!"
|
43
|
-
[nzSearch]="props['search']!!"
|
44
|
-
[nzSize]="props['size']!"
|
45
|
-
[nzStatus]="props['status']!"
|
46
|
-
>
|
47
|
-
<formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
|
48
|
-
</nz-input-group>
|
49
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
51
|
-
type: Component,
|
52
|
-
args: [{
|
53
|
-
selector: 'formly-field-input-group',
|
54
|
-
template: `
|
55
|
-
<nz-input-group
|
56
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
57
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
58
|
-
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
59
|
-
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
60
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
61
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
62
|
-
[nzPrefix]="props['prefix']"
|
63
|
-
[nzSuffix]="props['suffix']"
|
64
|
-
[nzCompact]="props['compact']!!"
|
65
|
-
[nzSearch]="props['search']!!"
|
66
|
-
[nzSize]="props['size']!"
|
67
|
-
[nzStatus]="props['status']!"
|
68
|
-
>
|
69
|
-
<formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
|
70
|
-
</nz-input-group>
|
71
|
-
`,
|
72
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
73
|
-
}]
|
11
|
+
class FormlyFieldInputGroup extends FieldType {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments);
|
14
|
+
this.defaultOptions = {
|
15
|
+
props: {
|
16
|
+
status: '',
|
17
|
+
size: 'default'
|
18
|
+
}
|
19
|
+
};
|
20
|
+
}
|
21
|
+
get group() {
|
22
|
+
return this.field.fieldGroup;
|
23
|
+
}
|
24
|
+
trackById(index, envent) {
|
25
|
+
if (!envent.id) {
|
26
|
+
return index;
|
27
|
+
}
|
28
|
+
return envent.id;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
FormlyFieldInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
32
|
+
FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
33
|
+
<nz-input-group
|
34
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
35
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
36
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
37
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
38
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
39
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
40
|
+
[nzPrefix]="props['prefix']"
|
41
|
+
[nzSuffix]="props['suffix']"
|
42
|
+
[nzCompact]="props['compact']!!"
|
43
|
+
[nzSearch]="props['search']!!"
|
44
|
+
[nzSize]="props['size']!"
|
45
|
+
[nzStatus]="props['status']!"
|
46
|
+
>
|
47
|
+
<formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
|
48
|
+
</nz-input-group>
|
49
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
51
|
+
type: Component,
|
52
|
+
args: [{
|
53
|
+
selector: 'formly-field-input-group',
|
54
|
+
template: `
|
55
|
+
<nz-input-group
|
56
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
57
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
58
|
+
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
59
|
+
[nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
|
60
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
61
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
62
|
+
[nzPrefix]="props['prefix']"
|
63
|
+
[nzSuffix]="props['suffix']"
|
64
|
+
[nzCompact]="props['compact']!!"
|
65
|
+
[nzSearch]="props['search']!!"
|
66
|
+
[nzSize]="props['size']!"
|
67
|
+
[nzStatus]="props['status']!"
|
68
|
+
>
|
69
|
+
<formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
|
70
|
+
</nz-input-group>
|
71
|
+
`,
|
72
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
73
|
+
}]
|
74
74
|
}] });
|
75
75
|
|
76
|
-
class FormlyNzInputGroupModule {
|
77
|
-
}
|
78
|
-
FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
79
|
-
FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
80
|
-
NzInputModule,
|
81
|
-
FormlyNzFormFieldModule, i3.FormlyModule] });
|
82
|
-
FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
|
83
|
-
NzInputModule,
|
84
|
-
FormlyNzFormFieldModule,
|
85
|
-
FormlyModule.forChild({
|
86
|
-
types: [
|
87
|
-
{
|
88
|
-
name: 'input-group',
|
89
|
-
component: FormlyFieldInputGroup,
|
90
|
-
wrappers: ['form-field']
|
91
|
-
}
|
92
|
-
]
|
93
|
-
})] });
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
95
|
-
type: NgModule,
|
96
|
-
args: [{
|
97
|
-
declarations: [FormlyFieldInputGroup],
|
98
|
-
imports: [
|
99
|
-
CommonModule,
|
100
|
-
NzInputModule,
|
101
|
-
FormlyNzFormFieldModule,
|
102
|
-
FormlyModule.forChild({
|
103
|
-
types: [
|
104
|
-
{
|
105
|
-
name: 'input-group',
|
106
|
-
component: FormlyFieldInputGroup,
|
107
|
-
wrappers: ['form-field']
|
108
|
-
}
|
109
|
-
]
|
110
|
-
})
|
111
|
-
]
|
112
|
-
}]
|
76
|
+
class FormlyNzInputGroupModule {
|
77
|
+
}
|
78
|
+
FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
79
|
+
FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
80
|
+
NzInputModule,
|
81
|
+
FormlyNzFormFieldModule, i3.FormlyModule] });
|
82
|
+
FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
|
83
|
+
NzInputModule,
|
84
|
+
FormlyNzFormFieldModule,
|
85
|
+
FormlyModule.forChild({
|
86
|
+
types: [
|
87
|
+
{
|
88
|
+
name: 'input-group',
|
89
|
+
component: FormlyFieldInputGroup,
|
90
|
+
wrappers: ['form-field']
|
91
|
+
}
|
92
|
+
]
|
93
|
+
})] });
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
95
|
+
type: NgModule,
|
96
|
+
args: [{
|
97
|
+
declarations: [FormlyFieldInputGroup],
|
98
|
+
imports: [
|
99
|
+
CommonModule,
|
100
|
+
NzInputModule,
|
101
|
+
FormlyNzFormFieldModule,
|
102
|
+
FormlyModule.forChild({
|
103
|
+
types: [
|
104
|
+
{
|
105
|
+
name: 'input-group',
|
106
|
+
component: FormlyFieldInputGroup,
|
107
|
+
wrappers: ['form-field']
|
108
|
+
}
|
109
|
+
]
|
110
|
+
})
|
111
|
+
]
|
112
|
+
}]
|
113
113
|
}] });
|
114
114
|
|
115
|
-
/**
|
116
|
-
* Generated bundle index. Do not edit.
|
115
|
+
/**
|
116
|
+
* Generated bundle index. Do not edit.
|
117
117
|
*/
|
118
118
|
|
119
119
|
export { FormlyFieldInputGroup, FormlyNzInputGroupModule };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n get group() {\n return this.field.fieldGroup;\n }\n trackById(index: number, envent: NzSafeAny) {\n if (!envent.id) {\n return index;\n }\n return envent.id;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AA+BM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AAUH,KAAA;AATC,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;KAC9B;IACD,SAAS,CAAC,KAAa,EAAE,MAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACd,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;QACD,OAAO,MAAM,CAAC,EAAE,CAAC;KAClB;;kHAfU,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EApBtB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;AAiBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,kBAAA,EAAA,cAAA,EAAA,cAAA,EAAA,eAAA,EAAA,cAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,UAAA,EAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uCAAA,EAAA,QAAA,EAAA,oDAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FAGU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAtBjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;AAiBT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;;;MCJY,wBAAwB,CAAA;;qHAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;sHAAxB,wBAAwB,EAAA,YAAA,EAAA,CAjBpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAElC,YAAY;QACZ,aAAa;QAEb,uBAAuB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAYd,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAfjC,YAAY;QACZ,aAAa;QAEb,uBAAuB;QACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,SAAS,EAAE,qBAAqB;oBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAlBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBAEb,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
@@ -10,179 +10,179 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
|
10
10
|
import * as i3 from 'ng-zorro-antd/input-number';
|
11
11
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
12
12
|
|
13
|
-
class FormlyFieldInputNumber extends FieldType {
|
14
|
-
constructor() {
|
15
|
-
super(...arguments);
|
16
|
-
this.defaultOptions = {
|
17
|
-
props: {
|
18
|
-
max: Infinity,
|
19
|
-
min: -Infinity,
|
20
|
-
parser: (value) => value
|
21
|
-
.trim()
|
22
|
-
.replace(/。/g, '.')
|
23
|
-
// eslint-disable-next-line no-useless-escape
|
24
|
-
.replace(/[^\w\.-]+/g, ''),
|
25
|
-
precisionMode: 'toFixed',
|
26
|
-
size: 'default',
|
27
|
-
status: '',
|
28
|
-
step: 1,
|
29
|
-
inputMode: 'decimal',
|
30
|
-
formatter: (value) => value
|
31
|
-
}
|
32
|
-
};
|
33
|
-
}
|
34
|
-
}
|
35
|
-
FormlyFieldInputNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
36
|
-
FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
37
|
-
<ng-container [ngSwitch]="props.type">
|
38
|
-
<nz-input-number-group
|
39
|
-
*ngSwitchCase="'group'"
|
40
|
-
[ngClass]="props['className']"
|
41
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
42
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
43
|
-
[nzPrefix]="props['prefix']"
|
44
|
-
[nzSuffix]="props['suffix']"
|
45
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
46
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
47
|
-
[nzCompact]="props['compact']"
|
48
|
-
>
|
49
|
-
<ng-container *ngTemplateOutlet="nzinputnumber"></ng-container>
|
50
|
-
</nz-input-number-group>
|
51
|
-
|
52
|
-
<ng-container *ngSwitchDefault>
|
53
|
-
<ng-template [ngTemplateOutlet]="nzinputnumber"></ng-template>
|
54
|
-
</ng-container>
|
55
|
-
</ng-container>
|
56
|
-
|
57
|
-
<ng-template #nzinputnumber>
|
58
|
-
<nz-input-number
|
59
|
-
[formControl]="formControl"
|
60
|
-
[formlyAttributes]="field"
|
61
|
-
[nzMax]="props.max!"
|
62
|
-
[nzMin]="props.min!"
|
63
|
-
[nzReadOnly]="props.readonly!!"
|
64
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
65
|
-
[nzSize]="props['size']!"
|
66
|
-
[nzStatus]="props['status']!"
|
67
|
-
[nzBorderless]="!!props['borderless']"
|
68
|
-
[nzPrecision]="props['precision']"
|
69
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
70
|
-
[nzStep]="props['step'] ?? 1"
|
71
|
-
[nzFormatter]="props['formatter']!"
|
72
|
-
[nzParser]="props['parser']!"
|
73
|
-
[nzInputMode]="props['inputMode']!"
|
74
|
-
[ngClass]="props['className']"
|
75
|
-
(ngModelChange)="props
|
76
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
77
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
78
|
-
></nz-input-number>
|
79
|
-
</ng-template>
|
80
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
|
-
type: Component,
|
83
|
-
args: [{
|
84
|
-
selector: 'formly-field-inputnumber',
|
85
|
-
template: `
|
86
|
-
<ng-container [ngSwitch]="props.type">
|
87
|
-
<nz-input-number-group
|
88
|
-
*ngSwitchCase="'group'"
|
89
|
-
[ngClass]="props['className']"
|
90
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
91
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
92
|
-
[nzPrefix]="props['prefix']"
|
93
|
-
[nzSuffix]="props['suffix']"
|
94
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
95
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
96
|
-
[nzCompact]="props['compact']"
|
97
|
-
>
|
98
|
-
<ng-container *ngTemplateOutlet="nzinputnumber"></ng-container>
|
99
|
-
</nz-input-number-group>
|
100
|
-
|
101
|
-
<ng-container *ngSwitchDefault>
|
102
|
-
<ng-template [ngTemplateOutlet]="nzinputnumber"></ng-template>
|
103
|
-
</ng-container>
|
104
|
-
</ng-container>
|
105
|
-
|
106
|
-
<ng-template #nzinputnumber>
|
107
|
-
<nz-input-number
|
108
|
-
[formControl]="formControl"
|
109
|
-
[formlyAttributes]="field"
|
110
|
-
[nzMax]="props.max!"
|
111
|
-
[nzMin]="props.min!"
|
112
|
-
[nzReadOnly]="props.readonly!!"
|
113
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
|
-
[nzSize]="props['size']!"
|
115
|
-
[nzStatus]="props['status']!"
|
116
|
-
[nzBorderless]="!!props['borderless']"
|
117
|
-
[nzPrecision]="props['precision']"
|
118
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
119
|
-
[nzStep]="props['step'] ?? 1"
|
120
|
-
[nzFormatter]="props['formatter']!"
|
121
|
-
[nzParser]="props['parser']!"
|
122
|
-
[nzInputMode]="props['inputMode']!"
|
123
|
-
[ngClass]="props['className']"
|
124
|
-
(ngModelChange)="props
|
125
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
126
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
127
|
-
></nz-input-number>
|
128
|
-
</ng-template>
|
129
|
-
`,
|
130
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
131
|
-
}]
|
13
|
+
class FormlyFieldInputNumber extends FieldType {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments);
|
16
|
+
this.defaultOptions = {
|
17
|
+
props: {
|
18
|
+
max: Infinity,
|
19
|
+
min: -Infinity,
|
20
|
+
parser: (value) => value
|
21
|
+
.trim()
|
22
|
+
.replace(/。/g, '.')
|
23
|
+
// eslint-disable-next-line no-useless-escape
|
24
|
+
.replace(/[^\w\.-]+/g, ''),
|
25
|
+
precisionMode: 'toFixed',
|
26
|
+
size: 'default',
|
27
|
+
status: '',
|
28
|
+
step: 1,
|
29
|
+
inputMode: 'decimal',
|
30
|
+
formatter: (value) => value
|
31
|
+
}
|
32
|
+
};
|
33
|
+
}
|
34
|
+
}
|
35
|
+
FormlyFieldInputNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
36
|
+
FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
37
|
+
<ng-container [ngSwitch]="props.type">
|
38
|
+
<nz-input-number-group
|
39
|
+
*ngSwitchCase="'group'"
|
40
|
+
[ngClass]="props['className']"
|
41
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
42
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
43
|
+
[nzPrefix]="props['prefix']"
|
44
|
+
[nzSuffix]="props['suffix']"
|
45
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
46
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
47
|
+
[nzCompact]="props['compact']"
|
48
|
+
>
|
49
|
+
<ng-container *ngTemplateOutlet="nzinputnumber"></ng-container>
|
50
|
+
</nz-input-number-group>
|
51
|
+
|
52
|
+
<ng-container *ngSwitchDefault>
|
53
|
+
<ng-template [ngTemplateOutlet]="nzinputnumber"></ng-template>
|
54
|
+
</ng-container>
|
55
|
+
</ng-container>
|
56
|
+
|
57
|
+
<ng-template #nzinputnumber>
|
58
|
+
<nz-input-number
|
59
|
+
[formControl]="formControl"
|
60
|
+
[formlyAttributes]="field"
|
61
|
+
[nzMax]="props.max!"
|
62
|
+
[nzMin]="props.min!"
|
63
|
+
[nzReadOnly]="props.readonly!!"
|
64
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
65
|
+
[nzSize]="props['size']!"
|
66
|
+
[nzStatus]="props['status']!"
|
67
|
+
[nzBorderless]="!!props['borderless']"
|
68
|
+
[nzPrecision]="props['precision']"
|
69
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
70
|
+
[nzStep]="props['step'] ?? 1"
|
71
|
+
[nzFormatter]="props['formatter']!"
|
72
|
+
[nzParser]="props['parser']!"
|
73
|
+
[nzInputMode]="props['inputMode']!"
|
74
|
+
[ngClass]="props['className']"
|
75
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
76
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
77
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
78
|
+
></nz-input-number>
|
79
|
+
</ng-template>
|
80
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
|
+
type: Component,
|
83
|
+
args: [{
|
84
|
+
selector: 'formly-field-inputnumber',
|
85
|
+
template: `
|
86
|
+
<ng-container [ngSwitch]="props.type">
|
87
|
+
<nz-input-number-group
|
88
|
+
*ngSwitchCase="'group'"
|
89
|
+
[ngClass]="props['className']"
|
90
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
91
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
92
|
+
[nzPrefix]="props['prefix']"
|
93
|
+
[nzSuffix]="props['suffix']"
|
94
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
95
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
96
|
+
[nzCompact]="props['compact']"
|
97
|
+
>
|
98
|
+
<ng-container *ngTemplateOutlet="nzinputnumber"></ng-container>
|
99
|
+
</nz-input-number-group>
|
100
|
+
|
101
|
+
<ng-container *ngSwitchDefault>
|
102
|
+
<ng-template [ngTemplateOutlet]="nzinputnumber"></ng-template>
|
103
|
+
</ng-container>
|
104
|
+
</ng-container>
|
105
|
+
|
106
|
+
<ng-template #nzinputnumber>
|
107
|
+
<nz-input-number
|
108
|
+
[formControl]="formControl"
|
109
|
+
[formlyAttributes]="field"
|
110
|
+
[nzMax]="props.max!"
|
111
|
+
[nzMin]="props.min!"
|
112
|
+
[nzReadOnly]="props.readonly!!"
|
113
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
|
+
[nzSize]="props['size']!"
|
115
|
+
[nzStatus]="props['status']!"
|
116
|
+
[nzBorderless]="!!props['borderless']"
|
117
|
+
[nzPrecision]="props['precision']"
|
118
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
119
|
+
[nzStep]="props['step'] ?? 1"
|
120
|
+
[nzFormatter]="props['formatter']!"
|
121
|
+
[nzParser]="props['parser']!"
|
122
|
+
[nzInputMode]="props['inputMode']!"
|
123
|
+
[ngClass]="props['className']"
|
124
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
125
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
126
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
127
|
+
></nz-input-number>
|
128
|
+
</ng-template>
|
129
|
+
`,
|
130
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
131
|
+
}]
|
132
132
|
}] });
|
133
133
|
|
134
|
-
class FormlyNzInputNumberModule {
|
135
|
-
}
|
136
|
-
FormlyNzInputNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
137
|
-
FormlyNzInputNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
138
|
-
ReactiveFormsModule,
|
139
|
-
FormlyNzFormFieldModule,
|
140
|
-
NzInputNumberModule, i4.FormlyModule] });
|
141
|
-
FormlyNzInputNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
142
|
-
ReactiveFormsModule,
|
143
|
-
FormlyNzFormFieldModule,
|
144
|
-
NzInputNumberModule,
|
145
|
-
FormlyModule.forChild({
|
146
|
-
types: [
|
147
|
-
{
|
148
|
-
name: 'number',
|
149
|
-
component: FormlyFieldInputNumber,
|
150
|
-
wrappers: ['form-field']
|
151
|
-
},
|
152
|
-
{
|
153
|
-
name: 'integer',
|
154
|
-
extends: 'number'
|
155
|
-
}
|
156
|
-
]
|
157
|
-
})] });
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
159
|
-
type: NgModule,
|
160
|
-
args: [{
|
161
|
-
declarations: [FormlyFieldInputNumber],
|
162
|
-
imports: [
|
163
|
-
CommonModule,
|
164
|
-
ReactiveFormsModule,
|
165
|
-
FormlyNzFormFieldModule,
|
166
|
-
NzInputNumberModule,
|
167
|
-
FormlyModule.forChild({
|
168
|
-
types: [
|
169
|
-
{
|
170
|
-
name: 'number',
|
171
|
-
component: FormlyFieldInputNumber,
|
172
|
-
wrappers: ['form-field']
|
173
|
-
},
|
174
|
-
{
|
175
|
-
name: 'integer',
|
176
|
-
extends: 'number'
|
177
|
-
}
|
178
|
-
]
|
179
|
-
})
|
180
|
-
]
|
181
|
-
}]
|
134
|
+
class FormlyNzInputNumberModule {
|
135
|
+
}
|
136
|
+
FormlyNzInputNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
137
|
+
FormlyNzInputNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
138
|
+
ReactiveFormsModule,
|
139
|
+
FormlyNzFormFieldModule,
|
140
|
+
NzInputNumberModule, i4.FormlyModule] });
|
141
|
+
FormlyNzInputNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
142
|
+
ReactiveFormsModule,
|
143
|
+
FormlyNzFormFieldModule,
|
144
|
+
NzInputNumberModule,
|
145
|
+
FormlyModule.forChild({
|
146
|
+
types: [
|
147
|
+
{
|
148
|
+
name: 'number',
|
149
|
+
component: FormlyFieldInputNumber,
|
150
|
+
wrappers: ['form-field']
|
151
|
+
},
|
152
|
+
{
|
153
|
+
name: 'integer',
|
154
|
+
extends: 'number'
|
155
|
+
}
|
156
|
+
]
|
157
|
+
})] });
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
159
|
+
type: NgModule,
|
160
|
+
args: [{
|
161
|
+
declarations: [FormlyFieldInputNumber],
|
162
|
+
imports: [
|
163
|
+
CommonModule,
|
164
|
+
ReactiveFormsModule,
|
165
|
+
FormlyNzFormFieldModule,
|
166
|
+
NzInputNumberModule,
|
167
|
+
FormlyModule.forChild({
|
168
|
+
types: [
|
169
|
+
{
|
170
|
+
name: 'number',
|
171
|
+
component: FormlyFieldInputNumber,
|
172
|
+
wrappers: ['form-field']
|
173
|
+
},
|
174
|
+
{
|
175
|
+
name: 'integer',
|
176
|
+
extends: 'number'
|
177
|
+
}
|
178
|
+
]
|
179
|
+
})
|
180
|
+
]
|
181
|
+
}]
|
182
182
|
}] });
|
183
183
|
|
184
|
-
/**
|
185
|
-
* Generated bundle index. Do not edit.
|
184
|
+
/**
|
185
|
+
* Generated bundle index. Do not edit.
|
186
186
|
*/
|
187
187
|
|
188
188
|
export { FormlyFieldInputNumber, FormlyNzInputNumberModule };
|