ngx-formly-zorro-antd 16.1.4 → 16.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/common/formly-utils.d.ts +7 -0
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.type.mjs +3 -3
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/card.type.mjs +3 -3
- package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
- package/esm2022/card-wrapper/card.wrapper.mjs +3 -3
- package/esm2022/cascader/cascader.module.mjs +4 -4
- package/esm2022/cascader/cascader.type.mjs +3 -3
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.type.mjs +3 -3
- package/esm2022/common/common.module.mjs +4 -4
- package/esm2022/common/formly-box-templates.directive.mjs +8 -8
- package/esm2022/common/formly-utils.mjs +11 -1
- package/esm2022/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/datepicker/datepicker.type.mjs +3 -3
- package/esm2022/form-field/form-field.module.mjs +14 -6
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +111 -83
- package/esm2022/grid/grid.module.mjs +4 -4
- package/esm2022/grid/grid.type.mjs +3 -3
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.type.mjs +4 -4
- package/esm2022/input-group/input-group.module.mjs +4 -4
- package/esm2022/input-group/input-group.type.mjs +3 -3
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.type.mjs +3 -3
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +4 -4
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/radio/radio.type.mjs +3 -3
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.type.mjs +3 -3
- package/esm2022/ref-template/ref-template.module.mjs +4 -4
- package/esm2022/ref-template/ref-template.type.mjs +3 -3
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.type.mjs +4 -4
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.type.mjs +3 -3
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/space/space.type.mjs +3 -3
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.type.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.wrapper.mjs +3 -3
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.type.mjs +4 -4
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.type.mjs +3 -3
- package/esm2022/transfer/transfer.component.mjs +3 -3
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.type.mjs +3 -3
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.type.mjs +3 -3
- package/esm2022/upload/upload.component.mjs +3 -3
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.type.mjs +3 -3
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +22 -12
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +122 -87
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
- package/form-field/form-field.module.d.ts +4 -2
- package/form-field/form-field.props.d.ts +7 -2
- package/form-field/form-field.wrapper.d.ts +10 -2
- package/package.json +14 -14
@@ -1,146 +1,179 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Component, NgModule } from '@angular/core';
|
3
|
-
import * as
|
2
|
+
import { Component, Optional, NgModule } from '@angular/core';
|
3
|
+
import * as i2 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i6 from '@ngx-formly/core';
|
6
6
|
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
7
7
|
import { ReactiveFormsModule } from '@angular/forms';
|
8
|
-
import * as
|
8
|
+
import * as i1 from 'ngx-formly-zorro-antd/common';
|
9
|
+
import { resolveTplName, hasTplNameValue, FormlyCommonModule } from 'ngx-formly-zorro-antd/common';
|
10
|
+
import * as i4 from 'ng-zorro-antd/form';
|
9
11
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
10
|
-
import * as
|
12
|
+
import * as i3 from 'ng-zorro-antd/grid';
|
13
|
+
import * as i5 from 'ng-zorro-antd/core/outlet';
|
14
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
11
15
|
|
12
16
|
class FormlyWrapperFormField extends FieldWrapper {
|
13
|
-
|
14
|
-
|
17
|
+
constructor(fieldTemplates) {
|
18
|
+
super();
|
19
|
+
this.fieldTemplates = fieldTemplates;
|
15
20
|
}
|
16
|
-
|
17
|
-
|
21
|
+
get nzTooltipTitle() {
|
22
|
+
return resolveTplName(this.props, this.fieldTemplates, 'tooltipTitle');
|
23
|
+
}
|
24
|
+
get nzExtra() {
|
25
|
+
return resolveTplName(this.props, this.fieldTemplates, 'extra');
|
26
|
+
}
|
27
|
+
get hasLabel() {
|
28
|
+
return hasTplNameValue(this.props, 'label');
|
29
|
+
}
|
30
|
+
get label() {
|
31
|
+
return resolveTplName(this.props, this.fieldTemplates, 'label');
|
32
|
+
}
|
33
|
+
get hasError() {
|
34
|
+
return (this.formControl?.dirty || this.formControl?.touched) && this.formControl.errors;
|
35
|
+
}
|
36
|
+
get validateStatus() {
|
37
|
+
return this.hasError ? 'error' : 'success';
|
38
|
+
}
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyWrapperFormField, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
18
41
|
<nz-form-item [ngClass]="props.itemClass!">
|
19
|
-
<ng-container *ngIf="
|
42
|
+
<ng-container *ngIf="hasLabel && props['hideLabel'] !== true">
|
20
43
|
<nz-form-label
|
21
|
-
[nzFlex]="props['grid']?.labelFlex
|
22
|
-
[nzOffset]="props['grid']?.labelOffset
|
23
|
-
[nzOrder]="props['grid']?.labelOrder
|
24
|
-
[nzPull]="props['grid']?.labelPull
|
25
|
-
[nzPush]="props['grid']?.labelPush
|
26
|
-
[nzSpan]="props['grid']?.labelSpan
|
27
|
-
[nzXs]="props['grid']?.labelXs
|
28
|
-
[nzSm]="props['grid']?.labelSm
|
29
|
-
[nzMd]="props['grid']?.labelMd
|
30
|
-
[nzLg]="props['grid']?.labelLg
|
31
|
-
[nzXl]="props['grid']?.labelXl
|
32
|
-
[nzXXl]="props['grid']?.labelXXl
|
33
|
-
[ngClass]="props.labelClass
|
44
|
+
[nzFlex]="props['grid']?.labelFlex || formState.labelFlex"
|
45
|
+
[nzOffset]="props['grid']?.labelOffset || formState.labelOffset"
|
46
|
+
[nzOrder]="props['grid']?.labelOrder || formState.labelOrder"
|
47
|
+
[nzPull]="props['grid']?.labelPull || formState.labelPull"
|
48
|
+
[nzPush]="props['grid']?.labelPush || formState.labelPush"
|
49
|
+
[nzSpan]="props['grid']?.labelSpan || formState.labelSpan"
|
50
|
+
[nzXs]="props['grid']?.labelXs || formState.labelXs"
|
51
|
+
[nzSm]="props['grid']?.labelSm || formState.labelSm"
|
52
|
+
[nzMd]="props['grid']?.labelMd || formState.labelMd"
|
53
|
+
[nzLg]="props['grid']?.labelLg || formState.labelLg"
|
54
|
+
[nzXl]="props['grid']?.labelXl || formState.labelXl"
|
55
|
+
[nzXXl]="props['grid']?.labelXXl || formState.labelXXl"
|
56
|
+
[ngClass]="props.labelClass || formState.labelClass"
|
34
57
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
35
58
|
[nzFor]="id"
|
36
59
|
[nzNoColon]="props['noColon']!!"
|
37
|
-
[nzTooltipTitle]="
|
60
|
+
[nzTooltipTitle]="nzTooltipTitle"
|
38
61
|
[nzTooltipIcon]="props['tooltipIcon']!"
|
39
62
|
[nzLabelAlign]="props['labelAlign'] ?? 'right'"
|
40
63
|
[nzLabelWrap]="props['labelWrap']!!"
|
41
64
|
>
|
42
|
-
<
|
43
|
-
{
|
44
|
-
|
65
|
+
<ng-container
|
66
|
+
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
67
|
+
>
|
68
|
+
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
69
|
+
</ng-container>
|
45
70
|
</nz-form-label>
|
46
71
|
</ng-container>
|
47
72
|
<nz-form-control
|
48
|
-
[nzValidateStatus]="
|
73
|
+
[nzValidateStatus]="validateStatus"
|
49
74
|
[nzHasFeedback]="props['hasFeedback']!!"
|
50
|
-
[nzExtra]="props
|
51
|
-
[nzErrorTip]="
|
75
|
+
[nzExtra]="props.description || nzExtra"
|
76
|
+
[nzErrorTip]="errorTip"
|
52
77
|
[ngClass]="props.controlClass!"
|
53
|
-
[nzFlex]="props['grid']?.controlFlex
|
54
|
-
[nzOffset]="props['grid']?.controlOffset
|
55
|
-
[nzOrder]="props['grid']?.controlOrder
|
56
|
-
[nzPull]="props['grid']?.controlPull
|
57
|
-
[nzPush]="props['grid']?.controlPush
|
58
|
-
[nzSpan]="props['grid']?.controlSpan
|
59
|
-
[nzXs]="props['grid']?.controlXs
|
60
|
-
[nzSm]="props['grid']?.controlSm
|
61
|
-
[nzMd]="props['grid']?.controlMd
|
62
|
-
[nzLg]="props['grid']?.controlLg
|
63
|
-
[nzXl]="props['grid']?.controlXl
|
64
|
-
[nzXXl]="props['grid']?.controlXXl
|
78
|
+
[nzFlex]="props['grid']?.controlFlex || formState.controlFlex"
|
79
|
+
[nzOffset]="props['grid']?.controlOffset || formState.controlOffset"
|
80
|
+
[nzOrder]="props['grid']?.controlOrder || formState.controlOrder"
|
81
|
+
[nzPull]="props['grid']?.controlPull || formState.controlPull"
|
82
|
+
[nzPush]="props['grid']?.controlPush || formState.controlPush"
|
83
|
+
[nzSpan]="props['grid']?.controlSpan || formState.controlSpan"
|
84
|
+
[nzXs]="props['grid']?.controlXs || formState.controlXs"
|
85
|
+
[nzSm]="props['grid']?.controlSm || formState.controlSm"
|
86
|
+
[nzMd]="props['grid']?.controlMd || formState.controlMd"
|
87
|
+
[nzLg]="props['grid']?.controlLg || formState.controlLg"
|
88
|
+
[nzXl]="props['grid']?.controlXl || formState.controlXl"
|
89
|
+
[nzXXl]="props['grid']?.controlXXl || formState.controlXXl"
|
65
90
|
>
|
66
91
|
<ng-container #fieldComponent></ng-container>
|
67
92
|
|
68
|
-
<ng-template #
|
69
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
93
|
+
<ng-template #errorTip let-control>
|
94
|
+
<formly-validation-message *ngIf="hasError" [field]="field"></formly-validation-message>
|
70
95
|
</ng-template>
|
71
96
|
</nz-form-control>
|
72
97
|
</nz-form-item>
|
73
|
-
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type:
|
98
|
+
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i6.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
74
99
|
}
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
76
101
|
type: Component,
|
77
102
|
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
78
103
|
<nz-form-item [ngClass]="props.itemClass!">
|
79
|
-
<ng-container *ngIf="
|
104
|
+
<ng-container *ngIf="hasLabel && props['hideLabel'] !== true">
|
80
105
|
<nz-form-label
|
81
|
-
[nzFlex]="props['grid']?.labelFlex
|
82
|
-
[nzOffset]="props['grid']?.labelOffset
|
83
|
-
[nzOrder]="props['grid']?.labelOrder
|
84
|
-
[nzPull]="props['grid']?.labelPull
|
85
|
-
[nzPush]="props['grid']?.labelPush
|
86
|
-
[nzSpan]="props['grid']?.labelSpan
|
87
|
-
[nzXs]="props['grid']?.labelXs
|
88
|
-
[nzSm]="props['grid']?.labelSm
|
89
|
-
[nzMd]="props['grid']?.labelMd
|
90
|
-
[nzLg]="props['grid']?.labelLg
|
91
|
-
[nzXl]="props['grid']?.labelXl
|
92
|
-
[nzXXl]="props['grid']?.labelXXl
|
93
|
-
[ngClass]="props.labelClass
|
106
|
+
[nzFlex]="props['grid']?.labelFlex || formState.labelFlex"
|
107
|
+
[nzOffset]="props['grid']?.labelOffset || formState.labelOffset"
|
108
|
+
[nzOrder]="props['grid']?.labelOrder || formState.labelOrder"
|
109
|
+
[nzPull]="props['grid']?.labelPull || formState.labelPull"
|
110
|
+
[nzPush]="props['grid']?.labelPush || formState.labelPush"
|
111
|
+
[nzSpan]="props['grid']?.labelSpan || formState.labelSpan"
|
112
|
+
[nzXs]="props['grid']?.labelXs || formState.labelXs"
|
113
|
+
[nzSm]="props['grid']?.labelSm || formState.labelSm"
|
114
|
+
[nzMd]="props['grid']?.labelMd || formState.labelMd"
|
115
|
+
[nzLg]="props['grid']?.labelLg || formState.labelLg"
|
116
|
+
[nzXl]="props['grid']?.labelXl || formState.labelXl"
|
117
|
+
[nzXXl]="props['grid']?.labelXXl || formState.labelXXl"
|
118
|
+
[ngClass]="props.labelClass || formState.labelClass"
|
94
119
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
95
120
|
[nzFor]="id"
|
96
121
|
[nzNoColon]="props['noColon']!!"
|
97
|
-
[nzTooltipTitle]="
|
122
|
+
[nzTooltipTitle]="nzTooltipTitle"
|
98
123
|
[nzTooltipIcon]="props['tooltipIcon']!"
|
99
124
|
[nzLabelAlign]="props['labelAlign'] ?? 'right'"
|
100
125
|
[nzLabelWrap]="props['labelWrap']!!"
|
101
126
|
>
|
102
|
-
<
|
103
|
-
{
|
104
|
-
|
127
|
+
<ng-container
|
128
|
+
*nzStringTemplateOutlet="label; context: { $implicit: field, options: props }"
|
129
|
+
>
|
130
|
+
<div class="formly-label-text" [attr.title]="label" [innerHTML]="label"></div>
|
131
|
+
</ng-container>
|
105
132
|
</nz-form-label>
|
106
133
|
</ng-container>
|
107
134
|
<nz-form-control
|
108
|
-
[nzValidateStatus]="
|
135
|
+
[nzValidateStatus]="validateStatus"
|
109
136
|
[nzHasFeedback]="props['hasFeedback']!!"
|
110
|
-
[nzExtra]="props
|
111
|
-
[nzErrorTip]="
|
137
|
+
[nzExtra]="props.description || nzExtra"
|
138
|
+
[nzErrorTip]="errorTip"
|
112
139
|
[ngClass]="props.controlClass!"
|
113
|
-
[nzFlex]="props['grid']?.controlFlex
|
114
|
-
[nzOffset]="props['grid']?.controlOffset
|
115
|
-
[nzOrder]="props['grid']?.controlOrder
|
116
|
-
[nzPull]="props['grid']?.controlPull
|
117
|
-
[nzPush]="props['grid']?.controlPush
|
118
|
-
[nzSpan]="props['grid']?.controlSpan
|
119
|
-
[nzXs]="props['grid']?.controlXs
|
120
|
-
[nzSm]="props['grid']?.controlSm
|
121
|
-
[nzMd]="props['grid']?.controlMd
|
122
|
-
[nzLg]="props['grid']?.controlLg
|
123
|
-
[nzXl]="props['grid']?.controlXl
|
124
|
-
[nzXXl]="props['grid']?.controlXXl
|
140
|
+
[nzFlex]="props['grid']?.controlFlex || formState.controlFlex"
|
141
|
+
[nzOffset]="props['grid']?.controlOffset || formState.controlOffset"
|
142
|
+
[nzOrder]="props['grid']?.controlOrder || formState.controlOrder"
|
143
|
+
[nzPull]="props['grid']?.controlPull || formState.controlPull"
|
144
|
+
[nzPush]="props['grid']?.controlPush || formState.controlPush"
|
145
|
+
[nzSpan]="props['grid']?.controlSpan || formState.controlSpan"
|
146
|
+
[nzXs]="props['grid']?.controlXs || formState.controlXs"
|
147
|
+
[nzSm]="props['grid']?.controlSm || formState.controlSm"
|
148
|
+
[nzMd]="props['grid']?.controlMd || formState.controlMd"
|
149
|
+
[nzLg]="props['grid']?.controlLg || formState.controlLg"
|
150
|
+
[nzXl]="props['grid']?.controlXl || formState.controlXl"
|
151
|
+
[nzXXl]="props['grid']?.controlXXl || formState.controlXXl"
|
125
152
|
>
|
126
153
|
<ng-container #fieldComponent></ng-container>
|
127
154
|
|
128
|
-
<ng-template #
|
129
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
155
|
+
<ng-template #errorTip let-control>
|
156
|
+
<formly-validation-message *ngIf="hasError" [field]="field"></formly-validation-message>
|
130
157
|
</ng-template>
|
131
158
|
</nz-form-control>
|
132
159
|
</nz-form-item>
|
133
160
|
`, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"] }]
|
134
|
-
}]
|
161
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
162
|
+
type: Optional
|
163
|
+
}] }]; } });
|
135
164
|
|
136
165
|
class FormlyNzFormFieldModule {
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
138
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
167
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
139
168
|
ReactiveFormsModule,
|
140
|
-
NzFormModule,
|
141
|
-
|
169
|
+
NzFormModule,
|
170
|
+
FormlyCommonModule,
|
171
|
+
NzOutletModule, i6.FormlyModule] }); }
|
172
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
|
142
173
|
ReactiveFormsModule,
|
143
174
|
NzFormModule,
|
175
|
+
FormlyCommonModule,
|
176
|
+
NzOutletModule,
|
144
177
|
FormlyModule.forChild({
|
145
178
|
wrappers: [
|
146
179
|
{
|
@@ -150,7 +183,7 @@ class FormlyNzFormFieldModule {
|
|
150
183
|
]
|
151
184
|
})] }); }
|
152
185
|
}
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
154
187
|
type: NgModule,
|
155
188
|
args: [{
|
156
189
|
declarations: [FormlyWrapperFormField],
|
@@ -158,6 +191,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
158
191
|
CommonModule,
|
159
192
|
ReactiveFormsModule,
|
160
193
|
NzFormModule,
|
194
|
+
FormlyCommonModule,
|
195
|
+
NzOutletModule,
|
161
196
|
FormlyModule.forChild({
|
162
197
|
wrappers: [
|
163
198
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass!\">\n <ng-container *ngIf=\"
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component, Optional } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, hasTplNameValue, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass!\">\n <ng-container *ngIf=\"hasLabel && props['hideLabel'] !== true\">\n <nz-form-label\n [nzFlex]=\"props['grid']?.labelFlex || formState.labelFlex\"\n [nzOffset]=\"props['grid']?.labelOffset || formState.labelOffset\"\n [nzOrder]=\"props['grid']?.labelOrder || formState.labelOrder\"\n [nzPull]=\"props['grid']?.labelPull || formState.labelPull\"\n [nzPush]=\"props['grid']?.labelPush || formState.labelPush\"\n [nzSpan]=\"props['grid']?.labelSpan || formState.labelSpan\"\n [nzXs]=\"props['grid']?.labelXs || formState.labelXs\"\n [nzSm]=\"props['grid']?.labelSm || formState.labelSm\"\n [nzMd]=\"props['grid']?.labelMd || formState.labelMd\"\n [nzLg]=\"props['grid']?.labelLg || formState.labelLg\"\n [nzXl]=\"props['grid']?.labelXl || formState.labelXl\"\n [nzXXl]=\"props['grid']?.labelXXl || formState.labelXXl\"\n [ngClass]=\"props.labelClass || formState.labelClass\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"id\"\n [nzNoColon]=\"props['noColon']!!\"\n [nzTooltipTitle]=\"nzTooltipTitle\"\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\n [nzLabelAlign]=\"props['labelAlign'] ?? 'right'\"\n [nzLabelWrap]=\"props['labelWrap']!!\"\n >\n <ng-container\n *nzStringTemplateOutlet=\"label; context: { $implicit: field, options: props }\"\n >\n <div class=\"formly-label-text\" [attr.title]=\"label\" [innerHTML]=\"label\"></div>\n </ng-container>\n </nz-form-label>\n </ng-container>\n <nz-form-control\n [nzValidateStatus]=\"validateStatus\"\n [nzHasFeedback]=\"props['hasFeedback']!!\"\n [nzExtra]=\"props.description || nzExtra\"\n [nzErrorTip]=\"errorTip\"\n [ngClass]=\"props.controlClass!\"\n [nzFlex]=\"props['grid']?.controlFlex || formState.controlFlex\"\n [nzOffset]=\"props['grid']?.controlOffset || formState.controlOffset\"\n [nzOrder]=\"props['grid']?.controlOrder || formState.controlOrder\"\n [nzPull]=\"props['grid']?.controlPull || formState.controlPull\"\n [nzPush]=\"props['grid']?.controlPush || formState.controlPush\"\n [nzSpan]=\"props['grid']?.controlSpan || formState.controlSpan\"\n [nzXs]=\"props['grid']?.controlXs || formState.controlXs\"\n [nzSm]=\"props['grid']?.controlSm || formState.controlSm\"\n [nzMd]=\"props['grid']?.controlMd || formState.controlMd\"\n [nzLg]=\"props['grid']?.controlLg || formState.controlLg\"\n [nzXl]=\"props['grid']?.controlXl || formState.controlXl\"\n [nzXXl]=\"props['grid']?.controlXXl || formState.controlXXl\"\n >\n <ng-container #fieldComponent></ng-container>\n\n <ng-template #errorTip let-control>\n <formly-validation-message *ngIf=\"hasError\" [field]=\"field\"></formly-validation-message>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n `\n})\nexport class FormlyWrapperFormField extends FieldWrapper<NzFormlyFieldConfig<FormlyFieldProps>> {\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTooltipTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'tooltipTitle');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get hasLabel() {\n return hasTplNameValue(this.props, 'label');\n }\n\n get label() {\n return resolveTplName(this.props, this.fieldTemplates, 'label');\n }\n\n get hasError() {\n return (this.formControl?.dirty || this.formControl?.touched) && this.formControl.errors;\n }\n get validateStatus() {\n return this.hasError ? 'error' : 'success';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyCommonModule,\n NzOutletModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\n ]\n })\n ]\n})\nexport class FormlyNzFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAuEM,MAAO,sBAAuB,SAAQ,YAAmD,CAAA;AAC7F,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;KAEhE;AAED,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACxE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,QAAQ,GAAA;QACV,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;KAC7C;AAED,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AAED,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,IAAI,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;KAC1F;AACD,IAAA,IAAI,cAAc,GAAA;QAChB,OAAO,IAAI,CAAC,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;KAC5C;8GAxBU,sBAAsB,EAAA,IAA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AE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
|
@@ -8,8 +8,8 @@ import * as i2 from 'ng-zorro-antd/grid';
|
|
8
8
|
import { NzGridModule } from 'ng-zorro-antd/grid';
|
9
9
|
|
10
10
|
class FormlyFieldGrid extends FieldType {
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
13
13
|
<div
|
14
14
|
nz-row
|
15
15
|
[nzAlign]="props.align ?? null"
|
@@ -37,7 +37,7 @@ class FormlyFieldGrid extends FieldType {
|
|
37
37
|
</div>
|
38
38
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
39
39
|
}
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
41
41
|
type: Component,
|
42
42
|
args: [{
|
43
43
|
selector: 'formly-field-grid',
|
@@ -73,10 +73,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
73
73
|
}] });
|
74
74
|
|
75
75
|
class FormlyNzGridModule {
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
77
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
77
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
|
78
78
|
NzGridModule, i3.FormlyModule] }); }
|
79
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
79
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
|
80
80
|
NzGridModule,
|
81
81
|
FormlyModule.forChild({
|
82
82
|
types: [
|
@@ -87,7 +87,7 @@ class FormlyNzGridModule {
|
|
87
87
|
]
|
88
88
|
})] }); }
|
89
89
|
}
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
91
91
|
type: NgModule,
|
92
92
|
args: [{
|
93
93
|
declarations: [FormlyFieldGrid],
|
@@ -27,8 +27,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
27
27
|
}
|
28
28
|
return envent.id;
|
29
29
|
}
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
31
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
32
32
|
<nz-input-group
|
33
33
|
[nzPrefixIcon]="props['prefixIcon']"
|
34
34
|
[nzSuffixIcon]="props['suffixIcon']"
|
@@ -47,7 +47,7 @@ class FormlyFieldInputGroup extends FieldType {
|
|
47
47
|
</nz-input-group>
|
48
48
|
`, 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 }); }
|
49
49
|
}
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
51
51
|
type: Component,
|
52
52
|
args: [{
|
53
53
|
selector: 'formly-field-input-group',
|
@@ -74,11 +74,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
74
74
|
}] });
|
75
75
|
|
76
76
|
class FormlyNzInputGroupModule {
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
78
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
78
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
79
79
|
NzInputModule,
|
80
80
|
FormlyNzFormFieldModule, i3.FormlyModule] }); }
|
81
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
81
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
|
82
82
|
NzInputModule,
|
83
83
|
FormlyNzFormFieldModule,
|
84
84
|
FormlyModule.forChild({
|
@@ -91,7 +91,7 @@ class FormlyNzInputGroupModule {
|
|
91
91
|
]
|
92
92
|
})] }); }
|
93
93
|
}
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
95
95
|
type: NgModule,
|
96
96
|
args: [{
|
97
97
|
declarations: [FormlyFieldInputGroup],
|
@@ -31,8 +31,8 @@ class FormlyFieldInputNumber extends FieldType {
|
|
31
31
|
}
|
32
32
|
};
|
33
33
|
}
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
36
36
|
<ng-container [ngSwitch]="props.type">
|
37
37
|
<nz-input-number-group
|
38
38
|
*ngSwitchCase="'group'"
|
@@ -78,7 +78,7 @@ class FormlyFieldInputNumber extends FieldType {
|
|
78
78
|
</ng-template>
|
79
79
|
`, 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 }); }
|
80
80
|
}
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
82
|
type: Component,
|
83
83
|
args: [{
|
84
84
|
selector: 'formly-field-inputnumber',
|
@@ -132,12 +132,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
132
132
|
}] });
|
133
133
|
|
134
134
|
class FormlyNzInputNumberModule {
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
136
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
136
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
137
137
|
ReactiveFormsModule,
|
138
138
|
FormlyNzFormFieldModule,
|
139
139
|
NzInputNumberModule, i4.FormlyModule] }); }
|
140
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
140
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
141
141
|
ReactiveFormsModule,
|
142
142
|
FormlyNzFormFieldModule,
|
143
143
|
NzInputNumberModule,
|
@@ -155,7 +155,7 @@ class FormlyNzInputNumberModule {
|
|
155
155
|
]
|
156
156
|
})] }); }
|
157
157
|
}
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
159
159
|
type: NgModule,
|
160
160
|
args: [{
|
161
161
|
declarations: [FormlyFieldInputNumber],
|
@@ -32,8 +32,8 @@ class FormlyFieldInput extends FieldType {
|
|
32
32
|
};
|
33
33
|
this.passwordVisible = false;
|
34
34
|
}
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
|
37
37
|
<ng-container [ngSwitch]="props.type">
|
38
38
|
<ng-container *ngSwitchCase="'password'">
|
39
39
|
<nz-input-group
|
@@ -168,9 +168,9 @@ class FormlyFieldInput extends FieldType {
|
|
168
168
|
(click)="formControl.reset()"
|
169
169
|
></span>
|
170
170
|
</ng-template>
|
171
|
-
`, 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 }); }
|
171
|
+
`, 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", "nzStepperless", "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 }); }
|
172
172
|
}
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
174
174
|
type: Component,
|
175
175
|
args: [{
|
176
176
|
selector: 'formly-field-input',
|
@@ -315,14 +315,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
315
315
|
}] });
|
316
316
|
|
317
317
|
class FormlyNzInputModule {
|
318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
319
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
319
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
320
320
|
ReactiveFormsModule,
|
321
321
|
NzInputModule,
|
322
322
|
NzAutocompleteModule,
|
323
323
|
NzIconModule,
|
324
324
|
FormlyNzFormFieldModule, i6.FormlyModule] }); }
|
325
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
325
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
|
326
326
|
ReactiveFormsModule,
|
327
327
|
NzInputModule,
|
328
328
|
NzAutocompleteModule,
|
@@ -353,7 +353,7 @@ class FormlyNzInputModule {
|
|
353
353
|
]
|
354
354
|
})] }); }
|
355
355
|
}
|
356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: FormlyNzInputModule, decorators: [{
|
357
357
|
type: NgModule,
|
358
358
|
args: [{
|
359
359
|
declarations: [FormlyFieldInput],
|