ngx-formly-zorro-antd 17.0.10 → 17.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +2 -4
- package/card-wrapper/card-wrapper.props.d.ts +3 -2
- package/common/interface.d.ts +3 -1
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +39 -39
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +125 -125
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +297 -286
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +39 -39
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
- package/esm2022/text-value/public_api.mjs +3 -0
- package/esm2022/text-value/text-value.module.mjs +46 -0
- package/esm2022/text-value/text-value.type.mjs +68 -0
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +145 -145
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +88 -87
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +124 -124
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +297 -286
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +230 -230
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +8 -16
- package/grid/grid.props.d.ts +6 -9
- package/input/input.type.d.ts +6 -1
- package/input-group/input-group.props.d.ts +4 -0
- package/package.json +24 -18
- package/text-value/index.d.ts +5 -0
- package/text-value/public_api.d.ts +2 -0
- package/text-value/text-value.module.d.ts +11 -0
- package/text-value/text-value.type.d.ts +37 -0
- package/tree-select/tree-select.type.d.ts +2 -3
- package/upload/upload.component.d.ts +3 -4
- package/autocomplete/package.json +0 -3
- package/button/package.json +0 -3
- package/button-group/package.json +0 -3
- package/card/package.json +0 -3
- package/card-wrapper/package.json +0 -3
- package/cascader/package.json +0 -3
- package/checkbox/package.json +0 -3
- package/common/package.json +0 -3
- package/datepicker/package.json +0 -3
- package/extension/package.json +0 -3
- package/form-field/package.json +0 -3
- package/grid/package.json +0 -3
- package/input/package.json +0 -3
- package/input-group/package.json +0 -3
- package/input-number/package.json +0 -3
- package/radio/package.json +0 -3
- package/rate/package.json +0 -3
- package/ref-template/package.json +0 -3
- package/select/package.json +0 -3
- package/slider/package.json +0 -3
- package/space/package.json +0 -3
- package/switch/package.json +0 -3
- package/tabs/package.json +0 -3
- package/textarea/package.json +0 -3
- package/timepicker/package.json +0 -3
- package/transfer/package.json +0 -3
- package/tree-select/package.json +0 -3
- package/upload/package.json +0 -3
@@ -32,100 +32,100 @@ class FormlyFieldInputNumber extends FieldType {
|
|
32
32
|
};
|
33
33
|
}
|
34
34
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
36
|
-
@switch (props.type) {
|
37
|
-
@case ('group') {
|
38
|
-
<nz-input-number-group
|
39
|
-
[ngClass]="props['
|
40
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
41
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
42
|
-
[nzPrefix]="props['prefix']"
|
43
|
-
[nzSuffix]="props['suffix']"
|
44
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
45
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
46
|
-
[nzCompact]="props['compact']"
|
47
|
-
>
|
48
|
-
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
49
|
-
</nz-input-number-group>
|
50
|
-
}
|
51
|
-
@default {
|
52
|
-
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
<ng-template #inputNumberTpl>
|
57
|
-
<nz-input-number
|
58
|
-
[formControl]="formControl"
|
59
|
-
[formlyAttributes]="field"
|
60
|
-
[nzMax]="props.max!"
|
61
|
-
[nzMin]="props.min!"
|
62
|
-
[nzReadOnly]="props.readonly!!"
|
63
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
64
|
-
[nzSize]="props['size']!"
|
65
|
-
[nzStatus]="props['status']!"
|
66
|
-
[nzBorderless]="!!props['borderless']"
|
67
|
-
[nzPrecision]="props['precision']"
|
68
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
69
|
-
[nzStep]="props['step'] ?? 1"
|
70
|
-
[nzFormatter]="props['formatter']!"
|
71
|
-
[nzParser]="props['parser']!"
|
72
|
-
[nzInputMode]="props['inputMode']!"
|
73
|
-
[ngClass]="props['
|
74
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
75
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
76
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
77
|
-
></nz-input-number>
|
78
|
-
</ng-template>
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
36
|
+
@switch (props.type) {
|
37
|
+
@case ('group') {
|
38
|
+
<nz-input-number-group
|
39
|
+
[ngClass]="props['ngClass']"
|
40
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
41
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
42
|
+
[nzPrefix]="props['prefix']"
|
43
|
+
[nzSuffix]="props['suffix']"
|
44
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
45
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
46
|
+
[nzCompact]="props['compact']"
|
47
|
+
>
|
48
|
+
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
49
|
+
</nz-input-number-group>
|
50
|
+
}
|
51
|
+
@default {
|
52
|
+
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
<ng-template #inputNumberTpl>
|
57
|
+
<nz-input-number
|
58
|
+
[formControl]="formControl"
|
59
|
+
[formlyAttributes]="field"
|
60
|
+
[nzMax]="props.max!"
|
61
|
+
[nzMin]="props.min!"
|
62
|
+
[nzReadOnly]="props.readonly!!"
|
63
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
64
|
+
[nzSize]="props['size']!"
|
65
|
+
[nzStatus]="props['status']!"
|
66
|
+
[nzBorderless]="!!props['borderless']"
|
67
|
+
[nzPrecision]="props['precision']"
|
68
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
69
|
+
[nzStep]="props['step'] ?? 1"
|
70
|
+
[nzFormatter]="props['formatter']!"
|
71
|
+
[nzParser]="props['parser']!"
|
72
|
+
[nzInputMode]="props['inputMode']!"
|
73
|
+
[ngClass]="props['ngClass']"
|
74
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
75
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
76
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
77
|
+
></nz-input-number>
|
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: 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
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
82
|
type: Component,
|
83
83
|
args: [{
|
84
84
|
selector: 'formly-field-inputnumber',
|
85
|
-
template: `
|
86
|
-
@switch (props.type) {
|
87
|
-
@case ('group') {
|
88
|
-
<nz-input-number-group
|
89
|
-
[ngClass]="props['
|
90
|
-
[nzAddOnAfter]="props['addOnAfter']"
|
91
|
-
[nzAddOnBefore]="props['addOnBefore']"
|
92
|
-
[nzPrefix]="props['prefix']"
|
93
|
-
[nzSuffix]="props['suffix']"
|
94
|
-
[nzPrefixIcon]="props['prefixIcon']"
|
95
|
-
[nzSuffixIcon]="props['suffixIcon']"
|
96
|
-
[nzCompact]="props['compact']"
|
97
|
-
>
|
98
|
-
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
99
|
-
</nz-input-number-group>
|
100
|
-
}
|
101
|
-
@default {
|
102
|
-
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
<ng-template #inputNumberTpl>
|
107
|
-
<nz-input-number
|
108
|
-
[formControl]="formControl"
|
109
|
-
[formlyAttributes]="field"
|
110
|
-
[nzMax]="props.max!"
|
111
|
-
[nzMin]="props.min!"
|
112
|
-
[nzReadOnly]="props.readonly!!"
|
113
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
|
-
[nzSize]="props['size']!"
|
115
|
-
[nzStatus]="props['status']!"
|
116
|
-
[nzBorderless]="!!props['borderless']"
|
117
|
-
[nzPrecision]="props['precision']"
|
118
|
-
[nzPrecisionMode]="props['precisionMode']!"
|
119
|
-
[nzStep]="props['step'] ?? 1"
|
120
|
-
[nzFormatter]="props['formatter']!"
|
121
|
-
[nzParser]="props['parser']!"
|
122
|
-
[nzInputMode]="props['inputMode']!"
|
123
|
-
[ngClass]="props['
|
124
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
125
|
-
(nzFocus)="props.focus && props.focus(field, $event)"
|
126
|
-
(nzBlur)="props.blur && props.blur(field, $event)"
|
127
|
-
></nz-input-number>
|
128
|
-
</ng-template>
|
85
|
+
template: `
|
86
|
+
@switch (props.type) {
|
87
|
+
@case ('group') {
|
88
|
+
<nz-input-number-group
|
89
|
+
[ngClass]="props['ngClass']"
|
90
|
+
[nzAddOnAfter]="props['addOnAfter']"
|
91
|
+
[nzAddOnBefore]="props['addOnBefore']"
|
92
|
+
[nzPrefix]="props['prefix']"
|
93
|
+
[nzSuffix]="props['suffix']"
|
94
|
+
[nzPrefixIcon]="props['prefixIcon']"
|
95
|
+
[nzSuffixIcon]="props['suffixIcon']"
|
96
|
+
[nzCompact]="props['compact']"
|
97
|
+
>
|
98
|
+
<ng-container *ngTemplateOutlet="inputNumberTpl"></ng-container>
|
99
|
+
</nz-input-number-group>
|
100
|
+
}
|
101
|
+
@default {
|
102
|
+
<ng-template [ngTemplateOutlet]="inputNumberTpl"></ng-template>
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
<ng-template #inputNumberTpl>
|
107
|
+
<nz-input-number
|
108
|
+
[formControl]="formControl"
|
109
|
+
[formlyAttributes]="field"
|
110
|
+
[nzMax]="props.max!"
|
111
|
+
[nzMin]="props.min!"
|
112
|
+
[nzReadOnly]="props.readonly!!"
|
113
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
|
+
[nzSize]="props['size']!"
|
115
|
+
[nzStatus]="props['status']!"
|
116
|
+
[nzBorderless]="!!props['borderless']"
|
117
|
+
[nzPrecision]="props['precision']"
|
118
|
+
[nzPrecisionMode]="props['precisionMode']!"
|
119
|
+
[nzStep]="props['step'] ?? 1"
|
120
|
+
[nzFormatter]="props['formatter']!"
|
121
|
+
[nzParser]="props['parser']!"
|
122
|
+
[nzInputMode]="props['inputMode']!"
|
123
|
+
[ngClass]="props['ngClass']"
|
124
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
125
|
+
(nzFocus)="props.focus && props.focus(field, $event)"
|
126
|
+
(nzBlur)="props.blur && props.blur(field, $event)"
|
127
|
+
></nz-input-number>
|
128
|
+
</ng-template>
|
129
129
|
`,
|
130
130
|
changeDetection: ChangeDetectionStrategy.OnPush
|
131
131
|
}]
|
@@ -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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n @switch (props.type) {\n @case ('group') {\n <nz-input-number-group\n [ngClass]=\"props['
|
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 } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { InputNumberProps } from './input-number.props';\r\n\r\nexport interface FormlyInputNumberFieldConfig extends NzFormlyFieldConfig<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 @switch (props.type) {\r\n @case ('group') {\r\n <nz-input-number-group\r\n [ngClass]=\"props['ngClass']\"\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=\"inputNumberTpl\"></ng-container>\r\n </nz-input-number-group>\r\n }\r\n @default {\r\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\r\n }\r\n }\r\n\r\n <ng-template #inputNumberTpl>\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['ngClass']\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](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;;AAkDW,QAAA,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;AACH,KAAA;8GAnBY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,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,C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