ngx-formly-zorro-antd 13.0.0-rc.0 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -6
- package/autocomplete/autocomplete.props.d.ts +1 -2
- package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +0 -0
- package/button/button.type.d.ts +2 -1
- package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +0 -0
- package/card/card.wrapper.d.ts +1 -1
- package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +0 -0
- package/cascader/cascader.type.d.ts +1 -1
- package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +0 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +0 -0
- package/datepicker/datepicker.type.d.ts +1 -1
- package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +0 -0
- package/esm2020/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2020/button/button.module.mjs +23 -25
- package/esm2020/button/button.type.mjs +84 -44
- package/esm2020/card/card.module.mjs +15 -17
- package/esm2020/card/card.wrapper.mjs +5 -5
- package/esm2020/cascader/cascader.module.mjs +17 -19
- package/esm2020/cascader/cascader.type.mjs +8 -8
- package/esm2020/checkbox/checkbox.module.mjs +21 -23
- package/esm2020/checkbox/checkbox.type.mjs +8 -8
- package/esm2020/datepicker/datepicker.module.mjs +17 -19
- package/esm2020/datepicker/datepicker.type.mjs +8 -8
- package/esm2020/form-field/form-field.module.mjs +15 -17
- package/esm2020/form-field/form-field.props.mjs +1 -1
- package/esm2020/form-field/form-field.wrapper.mjs +21 -11
- package/esm2020/grid/grid.module.mjs +41 -0
- package/esm2020/grid/grid.props.mjs +2 -0
- package/esm2020/grid/grid.type.mjs +71 -0
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +5 -0
- package/esm2020/grid/public_api.mjs +3 -0
- package/esm2020/input/input.module.mjs +31 -33
- package/esm2020/input/input.props.mjs +1 -1
- package/esm2020/input/input.type.mjs +97 -47
- package/esm2020/input-group/input-group.module.mjs +22 -18
- package/esm2020/input-group/input-group.props.mjs +1 -1
- package/esm2020/input-group/input-group.type.mjs +8 -8
- package/esm2020/input-number/input-number.module.mjs +21 -23
- package/esm2020/input-number/input-number.type.mjs +8 -8
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +30 -28
- package/esm2020/radio/radio.module.mjs +19 -21
- package/esm2020/radio/radio.type.mjs +8 -8
- package/esm2020/rate/rate.module.mjs +17 -19
- package/esm2020/rate/rate.type.mjs +7 -7
- package/esm2020/select/select.module.mjs +19 -21
- package/esm2020/select/select.type.mjs +8 -8
- package/esm2020/slider/slider.module.mjs +17 -19
- package/esm2020/slider/slider.type.mjs +7 -7
- package/esm2020/switch/switch.module.mjs +17 -19
- package/esm2020/switch/switch.type.mjs +7 -7
- package/esm2020/tabs/tabs.module.mjs +14 -16
- package/esm2020/tabs/tabs.props.mjs +1 -1
- package/esm2020/tabs/tabs.wrapper.mjs +8 -8
- package/esm2020/textarea/textarea.module.mjs +17 -19
- package/esm2020/textarea/textarea.type.mjs +8 -8
- package/esm2020/timepicker/timepicker.module.mjs +17 -19
- package/esm2020/timepicker/timepicker.type.mjs +8 -8
- package/esm2020/transfer/transfer.component.mjs +5 -5
- package/esm2020/transfer/transfer.module.mjs +17 -19
- package/esm2020/transfer/transfer.type.mjs +8 -8
- package/esm2020/tree-select/tree-select.module.mjs +17 -19
- package/esm2020/tree-select/tree-select.type.mjs +8 -8
- package/esm2020/upload/upload.component.mjs +10 -10
- package/esm2020/upload/upload.module.mjs +19 -21
- package/esm2020/upload/upload.type.mjs +8 -8
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +106 -68
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +18 -20
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +24 -26
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +27 -29
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +23 -25
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +35 -27
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +114 -0
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -0
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +28 -24
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +27 -29
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +127 -79
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +26 -28
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +22 -24
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +26 -28
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +22 -24
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +22 -24
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +21 -23
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +23 -25
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +24 -26
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +27 -29
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +24 -26
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +34 -36
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +29 -27
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +106 -68
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +18 -20
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +24 -26
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +27 -29
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +23 -25
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +35 -27
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +114 -0
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -0
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +28 -24
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +27 -29
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +127 -79
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +26 -28
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +22 -24
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +26 -28
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +22 -24
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +22 -24
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +21 -23
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +23 -25
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +24 -26
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +27 -29
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +24 -26
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +34 -36
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +29 -27
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +28 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +0 -0
- package/grid/grid.module.d.ts +10 -0
- package/grid/grid.props.d.ts +44 -0
- package/grid/grid.type.d.ts +11 -0
- package/grid/index.d.ts +5 -0
- package/grid/public_api.d.ts +3 -0
- package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +0 -0
- package/input/input.props.d.ts +3 -36
- package/input/input.type.d.ts +2 -2
- package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +0 -0
- package/input-group/input-group.module.d.ts +3 -2
- package/input-group/input-group.props.d.ts +1 -1
- package/input-group/input-group.type.d.ts +1 -1
- package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +0 -0
- package/input-number/input-number.type.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +38 -29
- package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +0 -0
- package/radio/radio.type.d.ts +1 -1
- package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +0 -0
- package/rate/rate.type.d.ts +1 -1
- package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +0 -0
- package/select/select.type.d.ts +1 -1
- package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +0 -0
- package/slider/slider.type.d.ts +1 -1
- package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +0 -0
- package/switch/switch.type.d.ts +1 -1
- package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +0 -0
- package/tabs/tabs.props.d.ts +1 -2
- package/tabs/tabs.wrapper.d.ts +1 -1
- package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +0 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +0 -0
- package/timepicker/timepicker.type.d.ts +1 -1
- package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +0 -0
- package/transfer/transfer.component.d.ts +1 -1
- package/transfer/transfer.type.d.ts +1 -1
- package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +0 -0
- package/tree-select/tree-select.type.d.ts +1 -1
- package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +0 -0
- package/upload/upload.component.d.ts +1 -1
- package/upload/upload.type.d.ts +1 -1
- package/autocomplete/package.json +0 -10
- package/button/package.json +0 -10
- package/card/package.json +0 -10
- package/cascader/package.json +0 -10
- package/checkbox/package.json +0 -10
- package/datepicker/package.json +0 -10
- package/form-field/package.json +0 -10
- package/input/package.json +0 -10
- package/input-group/package.json +0 -10
- package/input-number/package.json +0 -10
- package/ngx-formly-zorro-antd.d.ts +0 -5
- package/radio/package.json +0 -10
- package/rate/package.json +0 -10
- package/select/package.json +0 -10
- package/slider/package.json +0 -10
- package/switch/package.json +0 -10
- package/tabs/package.json +0 -10
- package/textarea/package.json +0 -10
- package/timepicker/package.json +0 -10
- package/transfer/package.json +0 -10
- package/tree-select/package.json +0 -10
- package/upload/package.json +0 -10
@@ -1,17 +1,17 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i1 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i6 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
-
import * as
|
7
|
+
import * as i2 from '@angular/forms';
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
9
9
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
10
|
-
import * as
|
10
|
+
import * as i3 from 'ng-zorro-antd/input';
|
11
11
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
12
|
-
import * as
|
12
|
+
import * as i4 from 'ng-zorro-antd/auto-complete';
|
13
13
|
import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
|
14
|
-
import * as
|
14
|
+
import * as i5 from 'ng-zorro-antd/icon';
|
15
15
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
16
16
|
|
17
17
|
class FormlyFieldInput extends FieldType {
|
@@ -33,14 +33,11 @@ class FormlyFieldInput extends FieldType {
|
|
33
33
|
this.passwordVisible = false;
|
34
34
|
}
|
35
35
|
}
|
36
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
37
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
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
38
|
<ng-container [ngSwitch]="props.type">
|
39
39
|
<ng-container *ngSwitchCase="'password'">
|
40
40
|
<nz-input-group
|
41
|
-
[nzSize]="props['size']"
|
42
|
-
[nzStatus]="props['status']"
|
43
|
-
[nzSearch]="props['search']"
|
44
41
|
[nzPrefixIcon]="props['prefixIcon']"
|
45
42
|
[nzSuffixIcon]="props['suffixIcon']"
|
46
43
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -48,7 +45,11 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
48
45
|
[nzAddOnBefore]="props['addOnBefore']"
|
49
46
|
[nzAddOnAfter]="props['addOnAfter']"
|
50
47
|
[nzPrefix]="props['prefix']"
|
51
|
-
[
|
48
|
+
[nzCompact]="props['compact']!!"
|
49
|
+
[nzSearch]="props['search']!!"
|
50
|
+
[nzSize]="props['size']!"
|
51
|
+
[nzStatus]="props['status']!"
|
52
|
+
[nzSuffix]="passwordEyeTpl"
|
52
53
|
>
|
53
54
|
<input
|
54
55
|
[type]="passwordVisible ? 'text' : 'password'"
|
@@ -59,15 +60,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
59
60
|
(ngModelChange)="props.change && props.change(field, $event)"
|
60
61
|
/>
|
61
62
|
</nz-input-group>
|
62
|
-
|
63
|
-
<ng-template #suffixpassword>
|
64
|
-
<i
|
65
|
-
nz-icon
|
66
|
-
class="cursor-pointer"
|
67
|
-
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
68
|
-
(click)="passwordVisible = !passwordVisible"
|
69
|
-
></i>
|
70
|
-
</ng-template>
|
71
63
|
</ng-container>
|
72
64
|
|
73
65
|
<nz-input-group
|
@@ -80,7 +72,7 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
80
72
|
[nzAddOnBefore]="props['addOnBefore']"
|
81
73
|
[nzAddOnAfter]="props['addOnAfter']"
|
82
74
|
[nzPrefix]="props['prefix']"
|
83
|
-
[nzSuffix]="props['suffix']"
|
75
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
84
76
|
>
|
85
77
|
<input
|
86
78
|
nz-input
|
@@ -110,9 +102,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
110
102
|
|
111
103
|
<nz-input-group
|
112
104
|
*ngSwitchCase="'group'"
|
113
|
-
[nzSize]="props['size']"
|
114
|
-
[nzStatus]="props['status']"
|
115
|
-
[nzSearch]="props['search']"
|
116
105
|
[nzPrefixIcon]="props['prefixIcon']"
|
117
106
|
[nzSuffixIcon]="props['suffixIcon']"
|
118
107
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -120,11 +109,16 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
120
109
|
[nzAddOnBefore]="props['addOnBefore']"
|
121
110
|
[nzAddOnAfter]="props['addOnAfter']"
|
122
111
|
[nzPrefix]="props['prefix']"
|
123
|
-
[nzSuffix]="props['suffix']"
|
112
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
113
|
+
[nzCompact]="props['compact']!!"
|
114
|
+
[nzSearch]="props['search']!!"
|
115
|
+
[nzSize]="props['size']!"
|
116
|
+
[nzStatus]="props['status']!"
|
124
117
|
>
|
125
118
|
<input
|
126
119
|
nz-input
|
127
120
|
type="text"
|
121
|
+
[ngClass]="props['className']!"
|
128
122
|
[formControl]="formControl"
|
129
123
|
[formlyAttributes]="field"
|
130
124
|
[nzBorderless]="!!props['borderless']!!"
|
@@ -136,6 +130,7 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
136
130
|
*ngSwitchDefault
|
137
131
|
nz-input
|
138
132
|
type="text"
|
133
|
+
[ngClass]="props['className']!"
|
139
134
|
[formControl]="formControl"
|
140
135
|
[formlyAttributes]="field"
|
141
136
|
[nzSize]="props['size']"
|
@@ -144,8 +139,38 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
144
139
|
(ngModelChange)="props.change && props.change(field, $event)"
|
145
140
|
/>
|
146
141
|
</ng-container>
|
147
|
-
|
148
|
-
|
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: [{
|
149
174
|
type: Component,
|
150
175
|
args: [{
|
151
176
|
selector: 'formly-field-input',
|
@@ -153,9 +178,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
153
178
|
<ng-container [ngSwitch]="props.type">
|
154
179
|
<ng-container *ngSwitchCase="'password'">
|
155
180
|
<nz-input-group
|
156
|
-
[nzSize]="props['size']"
|
157
|
-
[nzStatus]="props['status']"
|
158
|
-
[nzSearch]="props['search']"
|
159
181
|
[nzPrefixIcon]="props['prefixIcon']"
|
160
182
|
[nzSuffixIcon]="props['suffixIcon']"
|
161
183
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -163,7 +185,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
163
185
|
[nzAddOnBefore]="props['addOnBefore']"
|
164
186
|
[nzAddOnAfter]="props['addOnAfter']"
|
165
187
|
[nzPrefix]="props['prefix']"
|
166
|
-
[
|
188
|
+
[nzCompact]="props['compact']!!"
|
189
|
+
[nzSearch]="props['search']!!"
|
190
|
+
[nzSize]="props['size']!"
|
191
|
+
[nzStatus]="props['status']!"
|
192
|
+
[nzSuffix]="passwordEyeTpl"
|
167
193
|
>
|
168
194
|
<input
|
169
195
|
[type]="passwordVisible ? 'text' : 'password'"
|
@@ -174,15 +200,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
174
200
|
(ngModelChange)="props.change && props.change(field, $event)"
|
175
201
|
/>
|
176
202
|
</nz-input-group>
|
177
|
-
|
178
|
-
<ng-template #suffixpassword>
|
179
|
-
<i
|
180
|
-
nz-icon
|
181
|
-
class="cursor-pointer"
|
182
|
-
[nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
|
183
|
-
(click)="passwordVisible = !passwordVisible"
|
184
|
-
></i>
|
185
|
-
</ng-template>
|
186
203
|
</ng-container>
|
187
204
|
|
188
205
|
<nz-input-group
|
@@ -195,7 +212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
195
212
|
[nzAddOnBefore]="props['addOnBefore']"
|
196
213
|
[nzAddOnAfter]="props['addOnAfter']"
|
197
214
|
[nzPrefix]="props['prefix']"
|
198
|
-
[nzSuffix]="props['suffix']"
|
215
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
199
216
|
>
|
200
217
|
<input
|
201
218
|
nz-input
|
@@ -225,9 +242,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
225
242
|
|
226
243
|
<nz-input-group
|
227
244
|
*ngSwitchCase="'group'"
|
228
|
-
[nzSize]="props['size']"
|
229
|
-
[nzStatus]="props['status']"
|
230
|
-
[nzSearch]="props['search']"
|
231
245
|
[nzPrefixIcon]="props['prefixIcon']"
|
232
246
|
[nzSuffixIcon]="props['suffixIcon']"
|
233
247
|
[nzAddOnAfterIcon]="props['addOnAfterIcon']"
|
@@ -235,11 +249,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
235
249
|
[nzAddOnBefore]="props['addOnBefore']"
|
236
250
|
[nzAddOnAfter]="props['addOnAfter']"
|
237
251
|
[nzPrefix]="props['prefix']"
|
238
|
-
[nzSuffix]="props['suffix']"
|
252
|
+
[nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
|
253
|
+
[nzCompact]="props['compact']!!"
|
254
|
+
[nzSearch]="props['search']!!"
|
255
|
+
[nzSize]="props['size']!"
|
256
|
+
[nzStatus]="props['status']!"
|
239
257
|
>
|
240
258
|
<input
|
241
259
|
nz-input
|
242
260
|
type="text"
|
261
|
+
[ngClass]="props['className']!"
|
243
262
|
[formControl]="formControl"
|
244
263
|
[formlyAttributes]="field"
|
245
264
|
[nzBorderless]="!!props['borderless']!!"
|
@@ -251,6 +270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
251
270
|
*ngSwitchDefault
|
252
271
|
nz-input
|
253
272
|
type="text"
|
273
|
+
[ngClass]="props['className']!"
|
254
274
|
[formControl]="formControl"
|
255
275
|
[formlyAttributes]="field"
|
256
276
|
[nzSize]="props['size']"
|
@@ -259,6 +279,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
259
279
|
(ngModelChange)="props.change && props.change(field, $event)"
|
260
280
|
/>
|
261
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>
|
262
312
|
`,
|
263
313
|
changeDetection: ChangeDetectionStrategy.OnPush
|
264
314
|
}]
|
@@ -266,46 +316,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
266
316
|
|
267
317
|
class FormlyNzInputModule {
|
268
318
|
}
|
269
|
-
FormlyNzInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
270
|
-
FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
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,
|
271
327
|
ReactiveFormsModule,
|
272
328
|
NzInputModule,
|
273
329
|
NzAutocompleteModule,
|
274
330
|
NzIconModule,
|
275
|
-
FormlyNzFormFieldModule,
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
{
|
286
|
-
name: 'input',
|
287
|
-
component: FormlyFieldInput,
|
288
|
-
wrappers: ['form-field'],
|
289
|
-
defaultOptions: {
|
290
|
-
props: {
|
291
|
-
type: 'input'
|
292
|
-
}
|
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'
|
293
341
|
}
|
294
|
-
}
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
342
|
+
}
|
343
|
+
},
|
344
|
+
{ name: 'string', extends: 'input' },
|
345
|
+
{
|
346
|
+
name: 'password',
|
347
|
+
extends: 'input',
|
348
|
+
defaultOptions: {
|
349
|
+
props: {
|
350
|
+
type: 'password'
|
303
351
|
}
|
304
352
|
}
|
305
|
-
|
306
|
-
|
307
|
-
]
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
353
|
+
}
|
354
|
+
]
|
355
|
+
})] });
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, decorators: [{
|
309
357
|
type: NgModule,
|
310
358
|
args: [{
|
311
359
|
declarations: [FormlyFieldInput],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nimport { InputProps } from './input.props';\r\n\r\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\r\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <ng-container *ngSwitchCase=\"'password'\">\r\n <nz-input-group\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzSearch]=\"props['search']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"suffixpassword\"\r\n >\r\n <input\r\n [type]=\"passwordVisible ? 'text' : 'password'\"\r\n nz-input\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <ng-template #suffixpassword>\r\n <i\r\n nz-icon\r\n class=\"cursor-pointer\"\r\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\r\n (click)=\"passwordVisible = !passwordVisible\"\r\n ></i>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'autoComplete'\"\r\n [nzSize]=\"props['size']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzAutocomplete]=\"auto\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n />\r\n <nz-autocomplete\r\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\r\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\r\n [nzWidth]=\"props['autocompleteOptions']?.width\"\r\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\r\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\r\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\r\n #auto\r\n >\r\n <nz-auto-option\r\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\r\n [nzLabel]=\"option.label\"\r\n [nzValue]=\"option.value\"\r\n >\r\n {{ option.label }}\r\n </nz-auto-option>\r\n </nz-autocomplete>\r\n </nz-input-group>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'group'\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzSearch]=\"props['search']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n type=\"text\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"!!props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <input\r\n *ngSwitchDefault\r\n nz-input\r\n type=\"text\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </ng-container>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n borderless: false,\r\n compact: false,\r\n search: false,\r\n allowClear: false,\r\n autocompleteOptions: {\r\n backfill: false,\r\n defaultActiveFirstOption: true,\r\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\r\n }\r\n }\r\n };\r\n passwordVisible = false;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\nimport { FormlyFieldInput } from './input.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInput],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzAutocompleteModule,\r\n NzIconModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input',\r\n component: FormlyFieldInput,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n type: 'input'\r\n }\r\n }\r\n },\r\n { name: 'string', extends: 'input' },\r\n {\r\n name: 'password',\r\n extends: 'input',\r\n defaultOptions: {\r\n props: {\r\n type: 'password'\r\n }\r\n }\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AA6HM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AAnHhE,IAAA,WAAA,GAAA;;QAoHW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;AACF,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;KACzB;;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,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EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/CD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nimport type { InputProps } from './input.props';\r\n\r\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\r\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <ng-container *ngSwitchCase=\"'password'\">\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzSuffix]=\"passwordEyeTpl\"\r\n >\r\n <input\r\n [type]=\"passwordVisible ? 'text' : 'password'\"\r\n nz-input\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n </ng-container>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'autoComplete'\"\r\n [nzSize]=\"props['size']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzAutocomplete]=\"auto\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n />\r\n <nz-autocomplete\r\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\r\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\r\n [nzWidth]=\"props['autocompleteOptions']?.width\"\r\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\r\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\r\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\r\n #auto\r\n >\r\n <nz-auto-option\r\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\r\n [nzLabel]=\"option.label\"\r\n [nzValue]=\"option.value\"\r\n >\r\n {{ option.label }}\r\n </nz-auto-option>\r\n </nz-autocomplete>\r\n </nz-input-group>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'group'\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n <input\r\n nz-input\r\n type=\"text\"\r\n [ngClass]=\"props['className']!\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"!!props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <input\r\n *ngSwitchDefault\r\n nz-input\r\n type=\"text\"\r\n [ngClass]=\"props['className']!\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </ng-container>\r\n\r\n <!-- 查看密码 -->\r\n <ng-template #passwordEyeTpl>\r\n <span\r\n nz-icon\r\n class=\"cursor-pointer\"\r\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\r\n (click)=\"passwordVisible = !passwordVisible\"\r\n ></span>\r\n\r\n <span\r\n nz-icon\r\n class=\"ant-input-clear-icon\"\r\n nzTheme=\"fill\"\r\n nzType=\"close-circle\"\r\n *ngIf=\"formControl.value && props['allowClear']!!\"\r\n (click)=\"formControl.reset()\"\r\n ></span>\r\n </ng-template>\r\n <!-- 清除数据 -->\r\n <ng-template #inputClearTpl>\r\n <span\r\n nz-icon\r\n class=\"ant-input-clear-icon\"\r\n nzTheme=\"fill\"\r\n nzType=\"close-circle\"\r\n *ngIf=\"formControl.value\"\r\n (click)=\"formControl.reset()\"\r\n ></span>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n borderless: false,\r\n compact: false,\r\n search: false,\r\n allowClear: false,\r\n autocompleteOptions: {\r\n backfill: false,\r\n defaultActiveFirstOption: true,\r\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\r\n }\r\n }\r\n };\r\n passwordVisible = false;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\nimport { FormlyFieldInput } from './input.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInput],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzAutocompleteModule,\r\n NzIconModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input',\r\n component: FormlyFieldInput,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n type: 'input'\r\n }\r\n }\r\n },\r\n { name: 'string', extends: 'input' },\r\n {\r\n name: 'password',\r\n extends: 'input',\r\n defaultOptions: {\r\n props: {\r\n type: 'password'\r\n }\r\n }\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;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AA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/CD;;AAEG;;;;"}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i1 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i4 from '@ngx-formly/core';
|
8
8
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
9
9
|
import * as i5 from '@ngx-formly/core/select';
|
10
10
|
import { FormlySelectModule } from '@ngx-formly/core/select';
|
11
11
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
12
|
-
import * as
|
12
|
+
import * as i3 from 'ng-zorro-antd/radio';
|
13
13
|
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
14
14
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
15
15
|
|
@@ -24,8 +24,8 @@ class FormlyFieldRadio extends FieldType {
|
|
24
24
|
};
|
25
25
|
}
|
26
26
|
}
|
27
|
-
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
28
|
-
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
27
|
+
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
28
|
+
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
|
29
29
|
<nz-radio-group
|
30
30
|
[formControl]="formControl"
|
31
31
|
[formlyAttributes]="field"
|
@@ -58,8 +58,8 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
58
58
|
</label>
|
59
59
|
</ng-template>
|
60
60
|
</nz-radio-group>
|
61
|
-
`, isInline: true,
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
61
|
+
`, isInline: true, dependencies: [{ 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: 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.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "directive", type: i3.NzRadioButtonDirective, selector: "[nz-radio-button]" }, { kind: "component", type: i3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
63
63
|
type: Component,
|
64
64
|
args: [{
|
65
65
|
selector: 'formly-field-radio',
|
@@ -103,31 +103,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
103
103
|
|
104
104
|
class FormlyNzRadioModule {
|
105
105
|
}
|
106
|
-
FormlyNzRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
107
|
-
FormlyNzRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
106
|
+
FormlyNzRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
107
|
+
FormlyNzRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
108
108
|
ReactiveFormsModule,
|
109
109
|
FormlyNzFormFieldModule,
|
110
110
|
FormlySelectModule,
|
111
111
|
NzFormModule,
|
112
|
-
NzRadioModule,
|
113
|
-
FormlyNzRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
]] });
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
|
112
|
+
NzRadioModule, i4.FormlyModule] });
|
113
|
+
FormlyNzRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
|
114
|
+
ReactiveFormsModule,
|
115
|
+
FormlyNzFormFieldModule,
|
116
|
+
FormlySelectModule,
|
117
|
+
NzFormModule,
|
118
|
+
NzRadioModule,
|
119
|
+
FormlyModule.forChild({
|
120
|
+
types: [
|
121
|
+
{
|
122
|
+
name: 'radio',
|
123
|
+
component: FormlyFieldRadio,
|
124
|
+
wrappers: ['form-field']
|
125
|
+
}
|
126
|
+
]
|
127
|
+
})] });
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
|
131
129
|
type: NgModule,
|
132
130
|
args: [{
|
133
131
|
declarations: [FormlyFieldRadio],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\r\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\r\n\r\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\r\n type?: 'button';\r\n\r\n /**\r\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\r\n */\r\n name?: string | null;\r\n /**\r\n * 大小,只对按钮样式生效\r\n * @default default\r\n */\r\n size?: NzSizeLDSType;\r\n /**\r\n * RadioButton 的风格样式,目前有描边和填色两种风格\r\n * @default outline\r\n */\r\n buttonStyle?: NzRadioButtonStyle;\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<FormlyFieldRadio>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-radio',\r\n template: `\r\n <nz-radio-group\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzName]=\"field.name ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzButtonStyle]=\"props['buttonStyle']!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n >\r\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-container>\r\n\r\n <ng-template #button>\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio-button\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-template>\r\n </nz-radio-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttonStyle: 'outline' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlySelectModule } from '@ngx-formly/core/select';\r\n\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyFieldRadio } from './radio.type';\r\n\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldRadio],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n FormlySelectModule,\r\n NzFormModule,\r\n\r\n NzRadioModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'radio',\r\n component: FormlyFieldRadio,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzRadioModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAtC5E,IAAA,WAAA,GAAA;;QAuCW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;KACH;;
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\r\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\r\n\r\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\r\n type?: 'button';\r\n\r\n /**\r\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\r\n */\r\n name?: string | null;\r\n /**\r\n * 大小,只对按钮样式生效\r\n * @default default\r\n */\r\n size?: NzSizeLDSType;\r\n /**\r\n * RadioButton 的风格样式,目前有描边和填色两种风格\r\n * @default outline\r\n */\r\n buttonStyle?: NzRadioButtonStyle;\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<FormlyFieldRadio>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-radio',\r\n template: `\r\n <nz-radio-group\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzName]=\"field.name ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzButtonStyle]=\"props['buttonStyle']!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n >\r\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-container>\r\n\r\n <ng-template #button>\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio-button\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-template>\r\n </nz-radio-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttonStyle: 'outline' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlySelectModule } from '@ngx-formly/core/select';\r\n\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyFieldRadio } from './radio.type';\r\n\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldRadio],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n FormlySelectModule,\r\n NzFormModule,\r\n\r\n NzRadioModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'radio',\r\n component: FormlyFieldRadio,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzRadioModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAtC5E,IAAA,WAAA,GAAA;;QAuCW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;KACH;;6GAPY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EApCjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAA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