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,22 +1,22 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Component, 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 i4 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 i3 from 'ng-zorro-antd/form';
|
9
9
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
10
|
-
import * as
|
10
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
11
11
|
|
12
12
|
class FormlyWrapperFormField extends FieldWrapper {
|
13
13
|
get errorState() {
|
14
14
|
return this.showError ? 'error' : 'success';
|
15
15
|
}
|
16
16
|
}
|
17
|
-
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
18
|
-
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
19
|
-
<nz-form-item>
|
17
|
+
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
18
|
+
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
|
19
|
+
<nz-form-item [ngClass]="props.itemClass!">
|
20
20
|
<ng-container *ngIf="props.label && props['hideLabel'] !== true">
|
21
21
|
<nz-form-label
|
22
22
|
[nzFlex]="props['grid']?.labelFlex ?? null"
|
@@ -34,6 +34,9 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
34
34
|
[ngClass]="props.labelClass!"
|
35
35
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
36
36
|
[nzFor]="id"
|
37
|
+
[nzNoColon]="props['noColon']!!"
|
38
|
+
[nzTooltipTitle]="props['tooltipTitle']"
|
39
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
37
40
|
>
|
38
41
|
<span class="formly-label-text">
|
39
42
|
{{ props.label }}
|
@@ -42,6 +45,8 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
42
45
|
</ng-container>
|
43
46
|
<nz-form-control
|
44
47
|
[nzValidateStatus]="errorState"
|
48
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
49
|
+
[nzExtra]="props['controlExtra']"
|
45
50
|
[nzErrorTip]="errorTpl"
|
46
51
|
[ngClass]="props.controlClass!"
|
47
52
|
[nzFlex]="props['grid']?.controlFlex ?? null"
|
@@ -64,11 +69,11 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
64
69
|
</ng-template>
|
65
70
|
</nz-form-control>
|
66
71
|
</nz-form-item>
|
67
|
-
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"],
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
72
|
+
`, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: i4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] });
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
69
74
|
type: Component,
|
70
75
|
args: [{ selector: 'formly-wrapper-nz-form-field', template: `
|
71
|
-
<nz-form-item>
|
76
|
+
<nz-form-item [ngClass]="props.itemClass!">
|
72
77
|
<ng-container *ngIf="props.label && props['hideLabel'] !== true">
|
73
78
|
<nz-form-label
|
74
79
|
[nzFlex]="props['grid']?.labelFlex ?? null"
|
@@ -86,6 +91,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
86
91
|
[ngClass]="props.labelClass!"
|
87
92
|
[nzRequired]="props.required && props['hideRequiredMarker'] !== true"
|
88
93
|
[nzFor]="id"
|
94
|
+
[nzNoColon]="props['noColon']!!"
|
95
|
+
[nzTooltipTitle]="props['tooltipTitle']"
|
96
|
+
[nzTooltipIcon]="props['tooltipIcon']!"
|
89
97
|
>
|
90
98
|
<span class="formly-label-text">
|
91
99
|
{{ props.label }}
|
@@ -94,6 +102,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
94
102
|
</ng-container>
|
95
103
|
<nz-form-control
|
96
104
|
[nzValidateStatus]="errorState"
|
105
|
+
[nzHasFeedback]="props['hasFeedback']!!"
|
106
|
+
[nzExtra]="props['controlExtra']"
|
97
107
|
[nzErrorTip]="errorTpl"
|
98
108
|
[ngClass]="props.controlClass!"
|
99
109
|
[nzFlex]="props['grid']?.controlFlex ?? null"
|
@@ -121,24 +131,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
121
131
|
|
122
132
|
class FormlyNzFormFieldModule {
|
123
133
|
}
|
124
|
-
FormlyNzFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
125
|
-
FormlyNzFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
134
|
+
FormlyNzFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
135
|
+
FormlyNzFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
126
136
|
ReactiveFormsModule,
|
127
|
-
NzFormModule,
|
128
|
-
FormlyNzFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
]] });
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
137
|
+
NzFormModule, i4.FormlyModule] });
|
138
|
+
FormlyNzFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzFormFieldModule, imports: [CommonModule,
|
139
|
+
ReactiveFormsModule,
|
140
|
+
NzFormModule,
|
141
|
+
FormlyModule.forChild({
|
142
|
+
wrappers: [
|
143
|
+
{
|
144
|
+
name: 'form-field',
|
145
|
+
component: FormlyWrapperFormField
|
146
|
+
}
|
147
|
+
]
|
148
|
+
})] });
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
|
142
150
|
type: NgModule,
|
143
151
|
args: [{
|
144
152
|
declarations: [FormlyWrapperFormField],
|
@@ -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';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\n\r\nexport type FormlyFieldProps = NzFormWrapperProps;\r\n\r\n@Component({\r\n selector: 'formly-wrapper-nz-form-field',\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n template: `\r\n <nz-form-item>\r\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\r\n <nz-form-label\r\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\r\n [nzPull]=\"props['grid']?.labelPull ?? null\"\r\n [nzPush]=\"props['grid']?.labelPush ?? null\"\r\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\r\n [nzXs]=\"props['grid']?.labelXs ?? null\"\r\n [nzSm]=\"props['grid']?.labelSm ?? null\"\r\n [nzMd]=\"props['grid']?.labelMd ?? null\"\r\n [nzLg]=\"props['grid']?.labelLg ?? null\"\r\n [nzXl]=\"props['grid']?.labelXl ?? null\"\r\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\r\n [ngClass]=\"props.labelClass!\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n >\r\n <span class=\"formly-label-text\">\r\n {{ props.label }}\r\n </span>\r\n </nz-form-label>\r\n </ng-container>\r\n <nz-form-control\r\n [nzValidateStatus]=\"errorState\"\r\n [nzErrorTip]=\"errorTpl\"\r\n [ngClass]=\"props.controlClass!\"\r\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\r\n [nzPull]=\"props['grid']?.controlPull ?? null\"\r\n [nzPush]=\"props['grid']?.controlPush ?? null\"\r\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\r\n [nzXs]=\"props['grid']?.controlXs ?? null\"\r\n [nzSm]=\"props['grid']?.controlSm ?? null\"\r\n [nzMd]=\"props['grid']?.controlMd ?? null\"\r\n [nzLg]=\"props['grid']?.controlLg ?? null\"\r\n [nzXl]=\"props['grid']?.controlXl ?? null\"\r\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #errorTpl let-control>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\r\n get errorState() {\r\n return this.showError ? 'error' : 'success';\r\n }\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 { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'form-field',\r\n component: FormlyWrapperFormField\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFormFieldModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;
|
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';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\n\r\nexport type FormlyFieldProps = NzFormWrapperProps;\r\n\r\n@Component({\r\n selector: 'formly-wrapper-nz-form-field',\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n template: `\r\n <nz-form-item [ngClass]=\"props.itemClass!\">\r\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\r\n <nz-form-label\r\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\r\n [nzPull]=\"props['grid']?.labelPull ?? null\"\r\n [nzPush]=\"props['grid']?.labelPush ?? null\"\r\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\r\n [nzXs]=\"props['grid']?.labelXs ?? null\"\r\n [nzSm]=\"props['grid']?.labelSm ?? null\"\r\n [nzMd]=\"props['grid']?.labelMd ?? null\"\r\n [nzLg]=\"props['grid']?.labelLg ?? null\"\r\n [nzXl]=\"props['grid']?.labelXl ?? null\"\r\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\r\n [ngClass]=\"props.labelClass!\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n [nzNoColon]=\"props['noColon']!!\"\r\n [nzTooltipTitle]=\"props['tooltipTitle']\"\r\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\r\n >\r\n <span class=\"formly-label-text\">\r\n {{ props.label }}\r\n </span>\r\n </nz-form-label>\r\n </ng-container>\r\n <nz-form-control\r\n [nzValidateStatus]=\"errorState\"\r\n [nzHasFeedback]=\"props['hasFeedback']!!\"\r\n [nzExtra]=\"props['controlExtra']\"\r\n [nzErrorTip]=\"errorTpl\"\r\n [ngClass]=\"props.controlClass!\"\r\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\r\n [nzPull]=\"props['grid']?.controlPull ?? null\"\r\n [nzPush]=\"props['grid']?.controlPush ?? null\"\r\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\r\n [nzXs]=\"props['grid']?.controlXs ?? null\"\r\n [nzSm]=\"props['grid']?.controlSm ?? null\"\r\n [nzMd]=\"props['grid']?.controlMd ?? null\"\r\n [nzLg]=\"props['grid']?.controlLg ?? null\"\r\n [nzXl]=\"props['grid']?.controlXl ?? null\"\r\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #errorTpl let-control>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\r\n get errorState() {\r\n return this.showError ? 'error' : 'success';\r\n }\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 { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'form-field',\r\n component: FormlyWrapperFormField\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFormFieldModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAiEM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;AAC3F,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,GAAG,OAAO,GA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AA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAvB,uBAAuB,EAAA,YAAA,EAAA,CAfnB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAEnC,YAAY;QACZ,mBAAmB;AACnB,QAAA,YAAY,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAWH,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAbhC,YAAY;QACZ,mBAAmB;QACnB,YAAY;QACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,QAAQ,EAAE;AACR,gBAAA;AACE,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,SAAS,EAAE,sBAAsB;AAClC,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACtBD;;AAEG;;;;"}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
3
|
+
import * as i1 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import * as i3 from '@ngx-formly/core';
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
8
|
+
import { NzGridModule } from 'ng-zorro-antd/grid';
|
9
|
+
|
10
|
+
class FormlyFieldGrid extends FieldType {
|
11
|
+
}
|
12
|
+
FormlyFieldGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
13
|
+
FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
|
14
|
+
<div
|
15
|
+
nz-row
|
16
|
+
[nzAlign]="props.align ?? null"
|
17
|
+
[nzGutter]="props.gutter ?? null"
|
18
|
+
[nzJustify]="props.justify ?? null"
|
19
|
+
[formlyAttributes]="field"
|
20
|
+
>
|
21
|
+
<formly-field
|
22
|
+
*ngFor="let item of field.fieldGroup"
|
23
|
+
[field]="item"
|
24
|
+
nz-col
|
25
|
+
[nzFlex]="item.props?.['grid']?.['flex'] || props.flex"
|
26
|
+
[nzOffset]="item.props?.['grid']?.['offset'] || props.offset"
|
27
|
+
[nzOrder]="item.props?.['grid']?.['order'] || props.order"
|
28
|
+
[nzPull]="item.props?.['grid']?.['pull'] || props.pull"
|
29
|
+
[nzPush]="item.props?.['grid']?.['push'] || props.push"
|
30
|
+
[nzSpan]="item.props?.['grid']?.['span'] || props.span"
|
31
|
+
[nzXs]="item.props?.['grid']?.['xs'] || props.xs"
|
32
|
+
[nzSm]="item.props?.['grid']?.['sm'] || props.sm"
|
33
|
+
[nzMd]="item.props?.['grid']?.['md'] || props.md"
|
34
|
+
[nzLg]="item.props?.['grid']?.['lg'] || props.lg"
|
35
|
+
[nzXl]="item.props?.['grid']?.['xl'] || props.xl"
|
36
|
+
[nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
|
37
|
+
></formly-field>
|
38
|
+
</div>
|
39
|
+
`, 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 });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldGrid, decorators: [{
|
41
|
+
type: Component,
|
42
|
+
args: [{
|
43
|
+
selector: 'formly-field-grid',
|
44
|
+
template: `
|
45
|
+
<div
|
46
|
+
nz-row
|
47
|
+
[nzAlign]="props.align ?? null"
|
48
|
+
[nzGutter]="props.gutter ?? null"
|
49
|
+
[nzJustify]="props.justify ?? null"
|
50
|
+
[formlyAttributes]="field"
|
51
|
+
>
|
52
|
+
<formly-field
|
53
|
+
*ngFor="let item of field.fieldGroup"
|
54
|
+
[field]="item"
|
55
|
+
nz-col
|
56
|
+
[nzFlex]="item.props?.['grid']?.['flex'] || props.flex"
|
57
|
+
[nzOffset]="item.props?.['grid']?.['offset'] || props.offset"
|
58
|
+
[nzOrder]="item.props?.['grid']?.['order'] || props.order"
|
59
|
+
[nzPull]="item.props?.['grid']?.['pull'] || props.pull"
|
60
|
+
[nzPush]="item.props?.['grid']?.['push'] || props.push"
|
61
|
+
[nzSpan]="item.props?.['grid']?.['span'] || props.span"
|
62
|
+
[nzXs]="item.props?.['grid']?.['xs'] || props.xs"
|
63
|
+
[nzSm]="item.props?.['grid']?.['sm'] || props.sm"
|
64
|
+
[nzMd]="item.props?.['grid']?.['md'] || props.md"
|
65
|
+
[nzLg]="item.props?.['grid']?.['lg'] || props.lg"
|
66
|
+
[nzXl]="item.props?.['grid']?.['xl'] || props.xl"
|
67
|
+
[nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
|
68
|
+
></formly-field>
|
69
|
+
</div>
|
70
|
+
`,
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
72
|
+
}]
|
73
|
+
}] });
|
74
|
+
|
75
|
+
class FormlyNzGridModule {
|
76
|
+
}
|
77
|
+
FormlyNzGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
|
+
FormlyNzGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
|
79
|
+
NzGridModule, i3.FormlyModule] });
|
80
|
+
FormlyNzGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
|
81
|
+
NzGridModule,
|
82
|
+
FormlyModule.forChild({
|
83
|
+
types: [
|
84
|
+
{
|
85
|
+
name: 'grid',
|
86
|
+
component: FormlyFieldGrid
|
87
|
+
}
|
88
|
+
]
|
89
|
+
})] });
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzGridModule, decorators: [{
|
91
|
+
type: NgModule,
|
92
|
+
args: [{
|
93
|
+
declarations: [FormlyFieldGrid],
|
94
|
+
imports: [
|
95
|
+
CommonModule,
|
96
|
+
NzGridModule,
|
97
|
+
FormlyModule.forChild({
|
98
|
+
types: [
|
99
|
+
{
|
100
|
+
name: 'grid',
|
101
|
+
component: FormlyFieldGrid
|
102
|
+
}
|
103
|
+
]
|
104
|
+
})
|
105
|
+
]
|
106
|
+
}]
|
107
|
+
}] });
|
108
|
+
|
109
|
+
/**
|
110
|
+
* Generated bundle index. Do not edit.
|
111
|
+
*/
|
112
|
+
|
113
|
+
export { FormlyFieldGrid, FormlyNzGridModule };
|
114
|
+
//# sourceMappingURL=ngx-formly-zorro-antd-grid.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { GridProps } from './grid.props';\r\n\r\nexport interface FormlyGridFieldConfig extends FormlyFieldConfig<GridProps> {\r\n type: 'grid' | Type<FormlyFieldGrid>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-grid',\r\n template: `\r\n <div\r\n nz-row\r\n [nzAlign]=\"props.align ?? null\"\r\n [nzGutter]=\"props.gutter ?? null\"\r\n [nzJustify]=\"props.justify ?? null\"\r\n [formlyAttributes]=\"field\"\r\n >\r\n <formly-field\r\n *ngFor=\"let item of field.fieldGroup\"\r\n [field]=\"item\"\r\n nz-col\r\n [nzFlex]=\"item.props?.['grid']?.['flex'] || props.flex\"\r\n [nzOffset]=\"item.props?.['grid']?.['offset'] || props.offset\"\r\n [nzOrder]=\"item.props?.['grid']?.['order'] || props.order\"\r\n [nzPull]=\"item.props?.['grid']?.['pull'] || props.pull\"\r\n [nzPush]=\"item.props?.['grid']?.['push'] || props.push\"\r\n [nzSpan]=\"item.props?.['grid']?.['span'] || props.span\"\r\n [nzXs]=\"item.props?.['grid']?.['xs'] || props.xs\"\r\n [nzSm]=\"item.props?.['grid']?.['sm'] || props.sm\"\r\n [nzMd]=\"item.props?.['grid']?.['md'] || props.md\"\r\n [nzLg]=\"item.props?.['grid']?.['lg'] || props.lg\"\r\n [nzXl]=\"item.props?.['grid']?.['xl'] || props.xl\"\r\n [nzXXl]=\"item.props?.['grid']?.['xxl'] || props.xxl\"\r\n ></formly-field>\r\n </div>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldGrid } from './grid.type';\r\n\r\nimport { NzGridModule } from 'ng-zorro-antd/grid';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldGrid],\r\n imports: [\r\n CommonModule,\r\n NzGridModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'grid',\r\n component: FormlyFieldGrid\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzGridModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAwCM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;;4GAA7D,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EA7BhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BT,EAAA,CAAA,EAAA,QAAA,EAA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'@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i3 from '@ngx-formly/core';
|
6
6
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
7
|
-
import
|
7
|
+
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
8
|
+
import * as i2 from 'ng-zorro-antd/input';
|
8
9
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
9
10
|
|
10
11
|
class FormlyFieldInputGroup extends FieldType {
|
@@ -27,8 +28,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
27
28
|
return envent.id;
|
28
29
|
}
|
29
30
|
}
|
30
|
-
FormlyFieldInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
31
|
-
FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
31
|
+
FormlyFieldInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
32
|
+
FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
32
33
|
<nz-input-group
|
33
34
|
[nzPrefixIcon]="props['prefixIcon']"
|
34
35
|
[nzSuffixIcon]="props['suffixIcon']"
|
@@ -45,8 +46,8 @@ FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
45
46
|
>
|
46
47
|
<formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
|
47
48
|
</nz-input-group>
|
48
|
-
`, isInline: true,
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
49
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
50
51
|
type: Component,
|
51
52
|
args: [{
|
52
53
|
selector: 'formly-field-input-group',
|
@@ -74,33 +75,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
74
75
|
|
75
76
|
class FormlyNzInputGroupModule {
|
76
77
|
}
|
77
|
-
FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
78
|
-
FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
79
|
-
NzInputModule,
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
78
|
+
FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
79
|
+
FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
80
|
+
NzInputModule,
|
81
|
+
FormlyNzFormFieldModule, i3.FormlyModule] });
|
82
|
+
FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
|
83
|
+
NzInputModule,
|
84
|
+
FormlyNzFormFieldModule,
|
85
|
+
FormlyModule.forChild({
|
86
|
+
types: [
|
87
|
+
{
|
88
|
+
name: 'input-group',
|
89
|
+
component: FormlyFieldInputGroup,
|
90
|
+
wrappers: ['form-field']
|
91
|
+
}
|
92
|
+
]
|
93
|
+
})] });
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
93
95
|
type: NgModule,
|
94
96
|
args: [{
|
95
97
|
declarations: [FormlyFieldInputGroup],
|
96
98
|
imports: [
|
97
99
|
CommonModule,
|
98
100
|
NzInputModule,
|
101
|
+
FormlyNzFormFieldModule,
|
99
102
|
FormlyModule.forChild({
|
100
103
|
types: [
|
101
104
|
{
|
102
105
|
name: 'input-group',
|
103
|
-
component: FormlyFieldInputGroup
|
106
|
+
component: FormlyFieldInputGroup,
|
107
|
+
wrappers: ['form-field']
|
104
108
|
}
|
105
109
|
]
|
106
110
|
})
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\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 [nzSuffix]=\"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 <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\r\n }\r\n };\r\n get group() {\r\n return this.field.fieldGroup;\r\n }\r\n trackById(index: number, envent: NzSafeAny) {\r\n if (!envent.id) {\r\n return index;\r\n }\r\n return envent.id;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":"
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\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 [nzSuffix]=\"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 <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\r\n }\r\n };\r\n get group() {\r\n return this.field.fieldGroup;\r\n }\r\n trackById(index: number, envent: NzSafeAny) {\r\n if (!envent.id) {\r\n return index;\r\n }\r\n return envent.id;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AA+BM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;QAuBW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;KAUH;AATC,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;KAC9B;IACD,SAAS,CAAC,KAAa,EAAE,MAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACd,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;QACD,OAAO,MAAM,CAAC,EAAE,CAAC;KAClB;;kHAfU,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA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iBACF,CAAA;;;ACzBD;;AAEG;;;;"}
|
@@ -1,13 +1,13 @@
|
|
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 i2 from '@angular/forms';
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
7
7
|
import * as i4 from '@ngx-formly/core';
|
8
8
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
9
9
|
import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
10
|
-
import * as
|
10
|
+
import * as i3 from 'ng-zorro-antd/input-number';
|
11
11
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
12
12
|
|
13
13
|
class FormlyFieldInputNumber extends FieldType {
|
@@ -32,8 +32,8 @@ class FormlyFieldInputNumber extends FieldType {
|
|
32
32
|
};
|
33
33
|
}
|
34
34
|
}
|
35
|
-
FormlyFieldInputNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
36
|
-
FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
35
|
+
FormlyFieldInputNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
36
|
+
FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
37
37
|
<ng-container [ngSwitch]="props.type">
|
38
38
|
<nz-input-number-group
|
39
39
|
*ngSwitchCase="'group'"
|
@@ -77,8 +77,8 @@ FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
77
77
|
(nzBlur)="props.blur && props.blur(field, $event)"
|
78
78
|
></nz-input-number>
|
79
79
|
</ng-template>
|
80
|
-
`, isInline: true,
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
80
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
82
|
type: Component,
|
83
83
|
args: [{
|
84
84
|
selector: 'formly-field-inputnumber',
|
@@ -133,31 +133,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
133
133
|
|
134
134
|
class FormlyNzInputNumberModule {
|
135
135
|
}
|
136
|
-
FormlyNzInputNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
137
|
-
FormlyNzInputNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
136
|
+
FormlyNzInputNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
137
|
+
FormlyNzInputNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
138
138
|
ReactiveFormsModule,
|
139
139
|
FormlyNzFormFieldModule,
|
140
140
|
NzInputNumberModule, i4.FormlyModule] });
|
141
|
-
FormlyNzInputNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
]] });
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
141
|
+
FormlyNzInputNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
142
|
+
ReactiveFormsModule,
|
143
|
+
FormlyNzFormFieldModule,
|
144
|
+
NzInputNumberModule,
|
145
|
+
FormlyModule.forChild({
|
146
|
+
types: [
|
147
|
+
{
|
148
|
+
name: 'number',
|
149
|
+
component: FormlyFieldInputNumber,
|
150
|
+
wrappers: ['form-field']
|
151
|
+
},
|
152
|
+
{
|
153
|
+
name: 'integer',
|
154
|
+
extends: 'number'
|
155
|
+
}
|
156
|
+
]
|
157
|
+
})] });
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
161
159
|
type: NgModule,
|
162
160
|
args: [{
|
163
161
|
declarations: [FormlyFieldInputNumber],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { InputNumberProps } from './input-number.props';\r\n\r\nexport interface FormlyInputNumberFieldConfig extends FormlyFieldConfig<InputNumberProps> {\r\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-inputnumber',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <nz-input-number-group\r\n *ngSwitchCase=\"'group'\"\r\n [ngClass]=\"props['className']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzCompact]=\"props['compact']\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"nzinputnumber\"></ng-container>\r\n </nz-input-number-group>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #nzinputnumber>\r\n <nz-input-number\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzMax]=\"props.max!\"\r\n [nzMin]=\"props.min!\"\r\n [nzReadOnly]=\"props.readonly!!\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzBorderless]=\"!!props['borderless']\"\r\n [nzPrecision]=\"props['precision']\"\r\n [nzPrecisionMode]=\"props['precisionMode']!\"\r\n [nzStep]=\"props['step'] ?? 1\"\r\n [nzFormatter]=\"props['formatter']!\"\r\n [nzParser]=\"props['parser']!\"\r\n [nzInputMode]=\"props['inputMode']!\"\r\n [ngClass]=\"props['className']\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\r\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\r\n ></nz-input-number>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n max: Infinity,\r\n min: -Infinity,\r\n parser: (value: string) =>\r\n value\r\n .trim()\r\n .replace(/。/g, '.')\r\n // eslint-disable-next-line no-useless-escape\r\n .replace(/[^\\w\\.-]+/g, ''),\r\n precisionMode: 'toFixed' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n step: 1,\r\n inputMode: 'decimal',\r\n formatter: (value: number | string) => value\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputNumber } from './input-number.type';\r\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputNumber],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzInputNumberModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'number',\r\n component: FormlyFieldInputNumber,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'integer',\r\n extends: 'number'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputNumberModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;QAkDW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,SAAS;AACpB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;KACH;;
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\n\r\nimport type { InputNumberProps } from './input-number.props';\r\n\r\nexport interface FormlyInputNumberFieldConfig extends FormlyFieldConfig<InputNumberProps> {\r\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-inputnumber',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <nz-input-number-group\r\n *ngSwitchCase=\"'group'\"\r\n [ngClass]=\"props['className']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzCompact]=\"props['compact']\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"nzinputnumber\"></ng-container>\r\n </nz-input-number-group>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #nzinputnumber>\r\n <nz-input-number\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzMax]=\"props.max!\"\r\n [nzMin]=\"props.min!\"\r\n [nzReadOnly]=\"props.readonly!!\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzBorderless]=\"!!props['borderless']\"\r\n [nzPrecision]=\"props['precision']\"\r\n [nzPrecisionMode]=\"props['precisionMode']!\"\r\n [nzStep]=\"props['step'] ?? 1\"\r\n [nzFormatter]=\"props['formatter']!\"\r\n [nzParser]=\"props['parser']!\"\r\n [nzInputMode]=\"props['inputMode']!\"\r\n [ngClass]=\"props['className']\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\r\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\r\n ></nz-input-number>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n max: Infinity,\r\n min: -Infinity,\r\n parser: (value: string) =>\r\n value\r\n .trim()\r\n .replace(/。/g, '.')\r\n // eslint-disable-next-line no-useless-escape\r\n .replace(/[^\\w\\.-]+/g, ''),\r\n precisionMode: 'toFixed' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n step: 1,\r\n inputMode: 'decimal',\r\n formatter: (value: number | string) => value\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { FormlyFieldInputNumber } from './input-number.type';\r\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputNumber],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzInputNumberModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'number',\r\n component: FormlyFieldInputNumber,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'integer',\r\n extends: 'number'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputNumberModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;QAkDW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,SAAS;AACpB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;KACH;;mHAnBY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EA/CvB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,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