ngx-formly-zorro-antd 17.4.2 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/button/button.type.d.ts +3 -0
- package/button-group/button-group.type.d.ts +3 -0
- package/card/card.type.d.ts +3 -0
- package/card-wrapper/card-wrapper.props.d.ts +3 -1
- package/card-wrapper/card.wrapper.d.ts +3 -0
- package/cascader/cascader.type.d.ts +4 -0
- package/datepicker/datepicker.type.d.ts +3 -0
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button/button.type.mjs +9 -6
- package/esm2022/button-group/button-group.module.mjs +4 -4
- package/esm2022/button-group/button-group.type.mjs +7 -4
- package/esm2022/card/card.module.mjs +4 -4
- package/esm2022/card/card.type.mjs +10 -5
- package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +10 -5
- package/esm2022/cascader/cascader.module.mjs +4 -4
- package/esm2022/cascader/cascader.type.mjs +8 -4
- package/esm2022/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/checkbox/checkbox.type.mjs +6 -4
- package/esm2022/common/common.module.mjs +4 -4
- package/esm2022/common/formly-box-templates.directive.mjs +4 -4
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/datepicker/datepicker.type.mjs +20 -22
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +4 -4
- package/esm2022/flex/flex.type.mjs +9 -6
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +10 -10
- package/esm2022/grid/grid.module.mjs +4 -4
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +7 -4
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/input/input.type.mjs +34 -31
- package/esm2022/input-group/input-group.module.mjs +4 -4
- package/esm2022/input-group/input-group.type.mjs +11 -8
- package/esm2022/input-number/input-number.module.mjs +4 -4
- package/esm2022/input-number/input-number.type.mjs +12 -10
- 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 +10 -10
- package/esm2022/rate/rate.module.mjs +4 -4
- package/esm2022/rate/rate.type.mjs +14 -14
- package/esm2022/ref-template/ref-template.module.mjs +4 -4
- package/esm2022/ref-template/ref-template.type.mjs +10 -8
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +24 -27
- package/esm2022/slider/slider.module.mjs +4 -4
- package/esm2022/slider/slider.type.mjs +18 -18
- package/esm2022/space/space.module.mjs +4 -4
- package/esm2022/space/space.type.mjs +8 -9
- package/esm2022/switch/switch.module.mjs +4 -4
- package/esm2022/switch/switch.type.mjs +10 -12
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tabs/tabs.wrapper.mjs +8 -6
- package/esm2022/text-value/text-value.module.mjs +4 -4
- package/esm2022/text-value/text-value.type.mjs +5 -4
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/textarea/textarea.type.mjs +13 -12
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timepicker/timepicker.type.mjs +24 -24
- package/esm2022/transfer/transfer.component.mjs +5 -4
- package/esm2022/transfer/transfer.module.mjs +4 -4
- package/esm2022/transfer/transfer.type.mjs +8 -9
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.type.mjs +36 -34
- package/esm2022/upload/upload.component.mjs +4 -4
- package/esm2022/upload/upload.module.mjs +4 -4
- package/esm2022/upload/upload.type.mjs +9 -8
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +10 -7
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +12 -9
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +13 -8
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +13 -8
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +9 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +25 -26
- 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-flex.mjs +12 -9
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +13 -13
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +10 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +14 -11
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +17 -14
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +37 -34
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +15 -14
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +19 -18
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -13
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +29 -31
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +23 -22
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +11 -12
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +15 -16
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +11 -9
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +8 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +16 -15
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +29 -28
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +16 -15
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +41 -38
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +15 -14
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
- package/flex/flex.type.d.ts +3 -0
- package/form-field/form-field.props.d.ts +5 -0
- package/grid/grid.props.d.ts +3 -0
- package/grid/grid.type.d.ts +3 -0
- package/input/input.type.d.ts +4 -1
- package/input-group/input-group.type.d.ts +3 -0
- package/input-number/input-number.type.d.ts +3 -0
- package/package.json +25 -25
- package/radio/radio.type.d.ts +3 -0
- package/rate/rate.type.d.ts +3 -0
- package/ref-template/ref-template.type.d.ts +1 -0
- package/select/select.props.d.ts +2 -4
- package/slider/slider.type.d.ts +3 -0
- package/space/space.type.d.ts +1 -0
- package/switch/switch.type.d.ts +1 -0
- package/tabs/tabs.wrapper.d.ts +2 -0
- package/text-value/text-value.type.d.ts +1 -0
- package/textarea/textarea.type.d.ts +1 -0
- package/timepicker/timepicker.type.d.ts +1 -0
- package/transfer/transfer.component.d.ts +1 -0
- package/transfer/transfer.type.d.ts +2 -0
- package/tree-select/tree-select.type.d.ts +1 -0
- package/upload/upload.type.d.ts +1 -0
@@ -8,6 +8,9 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
|
|
8
8
|
import * as i2 from 'ng-zorro-antd/input';
|
9
9
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
10
10
|
|
11
|
+
/**
|
12
|
+
* @private
|
13
|
+
*/
|
11
14
|
class FormlyFieldInputGroup extends FieldType {
|
12
15
|
constructor() {
|
13
16
|
super(...arguments);
|
@@ -18,8 +21,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
18
21
|
}
|
19
22
|
};
|
20
23
|
}
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
|
23
26
|
<nz-input-group
|
24
27
|
[nzPrefixIcon]="props['prefixIcon']"
|
25
28
|
[nzSuffixIcon]="props['suffixIcon']"
|
@@ -29,8 +32,8 @@ class FormlyFieldInputGroup extends FieldType {
|
|
29
32
|
[nzAddOnAfter]="props['addOnAfter']"
|
30
33
|
[nzPrefix]="props['prefix']"
|
31
34
|
[nzSuffix]="props['suffix']"
|
32
|
-
[nzCompact]="props['compact']
|
33
|
-
[nzSearch]="props['search']
|
35
|
+
[nzCompact]="!!props['compact']"
|
36
|
+
[nzSearch]="!!props['search']"
|
34
37
|
[nzSize]="props['size']!"
|
35
38
|
[nzStatus]="props['status']!"
|
36
39
|
[ngClass]="props['ngClass']"
|
@@ -42,7 +45,7 @@ class FormlyFieldInputGroup extends FieldType {
|
|
42
45
|
</nz-input-group>
|
43
46
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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 }); }
|
44
47
|
}
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
|
46
49
|
type: Component,
|
47
50
|
args: [{
|
48
51
|
selector: 'formly-field-input-group',
|
@@ -56,8 +59,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
56
59
|
[nzAddOnAfter]="props['addOnAfter']"
|
57
60
|
[nzPrefix]="props['prefix']"
|
58
61
|
[nzSuffix]="props['suffix']"
|
59
|
-
[nzCompact]="props['compact']
|
60
|
-
[nzSearch]="props['search']
|
62
|
+
[nzCompact]="!!props['compact']"
|
63
|
+
[nzSearch]="!!props['search']"
|
61
64
|
[nzSize]="props['size']!"
|
62
65
|
[nzStatus]="props['status']!"
|
63
66
|
[ngClass]="props['ngClass']"
|
@@ -73,11 +76,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
73
76
|
}] });
|
74
77
|
|
75
78
|
class FormlyNzInputGroupModule {
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
77
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
80
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
|
78
81
|
NzInputModule,
|
79
82
|
FormlyNzFormFieldModule, i3.FormlyModule] }); }
|
80
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
83
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
|
81
84
|
NzInputModule,
|
82
85
|
FormlyNzFormFieldModule,
|
83
86
|
FormlyModule.forChild({
|
@@ -90,7 +93,7 @@ class FormlyNzInputGroupModule {
|
|
90
93
|
]
|
91
94
|
})] }); }
|
92
95
|
}
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
|
94
97
|
type: NgModule,
|
95
98
|
args: [{
|
96
99
|
declarations: [FormlyFieldInputGroup],
|
@@ -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';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"props['compact']
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends NzFormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"!!props['compact']\"\n [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAQA;;AAEG;AA2BG,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AA1BtF,IAAA,WAAA,GAAA;;AA2BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAxBtB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;AAqBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAA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,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAfjC,YAAY;YACZ,aAAa;YAEb,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAlBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBAEb,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
@@ -4,12 +4,15 @@ import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i1$1 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
10
|
import * as i3 from 'ng-zorro-antd/input-number';
|
11
11
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
12
12
|
|
13
|
+
/**
|
14
|
+
* @private
|
15
|
+
*/
|
13
16
|
class FormlyFieldInputNumber extends FieldType {
|
14
17
|
constructor() {
|
15
18
|
super(...arguments);
|
@@ -31,8 +34,8 @@ class FormlyFieldInputNumber extends FieldType {
|
|
31
34
|
}
|
32
35
|
};
|
33
36
|
}
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
|
36
39
|
@switch (props.type) {
|
37
40
|
@case ('group') {
|
38
41
|
<nz-input-number-group
|
@@ -56,10 +59,10 @@ class FormlyFieldInputNumber extends FieldType {
|
|
56
59
|
<ng-template #inputNumberTpl>
|
57
60
|
<nz-input-number
|
58
61
|
[formControl]="formControl"
|
59
|
-
[
|
62
|
+
[nzId]="id"
|
60
63
|
[nzMax]="props.max!"
|
61
64
|
[nzMin]="props.min!"
|
62
|
-
[nzReadOnly]="props.readonly
|
65
|
+
[nzReadOnly]="!!props.readonly"
|
63
66
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
64
67
|
[nzSize]="props['size']!"
|
65
68
|
[nzStatus]="props['status']!"
|
@@ -76,9 +79,9 @@ class FormlyFieldInputNumber extends FieldType {
|
|
76
79
|
(nzBlur)="props.blur?.(field, $event)"
|
77
80
|
></nz-input-number>
|
78
81
|
</ng-template>
|
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]" }
|
82
|
+
`, 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]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
80
83
|
}
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
|
82
85
|
type: Component,
|
83
86
|
args: [{
|
84
87
|
selector: 'formly-field-inputnumber',
|
@@ -106,10 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
106
109
|
<ng-template #inputNumberTpl>
|
107
110
|
<nz-input-number
|
108
111
|
[formControl]="formControl"
|
109
|
-
[
|
112
|
+
[nzId]="id"
|
110
113
|
[nzMax]="props.max!"
|
111
114
|
[nzMin]="props.min!"
|
112
|
-
[nzReadOnly]="props.readonly
|
115
|
+
[nzReadOnly]="!!props.readonly"
|
113
116
|
[nzPlaceHolder]="props.placeholder ?? ''"
|
114
117
|
[nzSize]="props['size']!"
|
115
118
|
[nzStatus]="props['status']!"
|
@@ -132,12 +135,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
132
135
|
}] });
|
133
136
|
|
134
137
|
class FormlyNzInputNumberModule {
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
136
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
139
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
|
137
140
|
ReactiveFormsModule,
|
138
141
|
FormlyNzFormFieldModule,
|
139
|
-
NzInputNumberModule,
|
140
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
142
|
+
NzInputNumberModule, i1$1.FormlyModule] }); }
|
143
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
|
141
144
|
ReactiveFormsModule,
|
142
145
|
FormlyNzFormFieldModule,
|
143
146
|
NzInputNumberModule,
|
@@ -155,7 +158,7 @@ class FormlyNzInputNumberModule {
|
|
155
158
|
]
|
156
159
|
})] }); }
|
157
160
|
}
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
|
159
162
|
type: NgModule,
|
160
163
|
args: [{
|
161
164
|
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';\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['ngClass']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [
|
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 * @private\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['ngClass']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"inputNumberTpl\"></ng-container>\n </nz-input-number-group>\n }\n @default {\n <ng-template [ngTemplateOutlet]=\"inputNumberTpl\"></ng-template>\n }\n }\n\n <ng-template #inputNumberTpl>\n <nz-input-number\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzMax]=\"props.max!\"\n [nzMin]=\"props.min!\"\n [nzReadOnly]=\"!!props.readonly\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzPrecision]=\"props['precision']\"\n [nzPrecisionMode]=\"props['precisionMode']!\"\n [nzStep]=\"props['step'] ?? 1\"\n [nzFormatter]=\"props['formatter']!\"\n [nzParser]=\"props['parser']!\"\n [nzInputMode]=\"props['inputMode']!\"\n [ngClass]=\"props['ngClass']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n (nzFocus)=\"props.focus?.(field, $event)\"\n (nzBlur)=\"props.blur?.(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n max: Infinity,\n min: -Infinity,\n parser: (value: string) =>\n value\n .trim()\n .replace(/。/g, '.')\n // eslint-disable-next-line no-useless-escape\n .replace(/[^\\w\\.-]+/g, ''),\n precisionMode: 'toFixed' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1,\n inputMode: 'auto',\n formatter: (value: number | string) => value\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputNumber } from './input-number.type';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: FormlyFieldInputNumber,\n wrappers: ['form-field']\n },\n {\n name: 'integer',\n extends: 'number'\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAQA;;AAEG;AAkDG,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,MAAM;AACjB,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,EA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';
|
17
17
|
import { resolveTplName } from 'ngx-formly-zorro-antd/common';
|
18
18
|
|
19
|
+
/**
|
20
|
+
* @private
|
21
|
+
*/
|
19
22
|
class FormlyFieldInput extends FieldType {
|
20
23
|
constructor(fieldTemplates) {
|
21
24
|
super();
|
@@ -33,7 +36,7 @@ class FormlyFieldInput extends FieldType {
|
|
33
36
|
}
|
34
37
|
}
|
35
38
|
};
|
36
|
-
this.
|
39
|
+
this.passVisible = false;
|
37
40
|
}
|
38
41
|
get addOnBefore() {
|
39
42
|
return resolveTplName(this.props, this.fieldTemplates, 'addOnBefore');
|
@@ -41,8 +44,8 @@ class FormlyFieldInput extends FieldType {
|
|
41
44
|
get addOnAfter() {
|
42
45
|
return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');
|
43
46
|
}
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInput, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.7", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
|
46
49
|
@switch (props.type) {
|
47
50
|
@case ('password') {
|
48
51
|
<nz-input-group
|
@@ -55,18 +58,18 @@ class FormlyFieldInput extends FieldType {
|
|
55
58
|
[ngClass]="props['ngClass']"
|
56
59
|
[ngStyle]="props['ngStyle']"
|
57
60
|
[nzPrefix]="props['prefix']"
|
58
|
-
[nzCompact]="props['compact']
|
59
|
-
[nzSearch]="props['search']
|
61
|
+
[nzCompact]="!!props['compact']"
|
62
|
+
[nzSearch]="!!props['search']"
|
60
63
|
[nzSize]="props['size']!"
|
61
64
|
[nzStatus]="props['status']!"
|
62
65
|
[nzSuffix]="passwordEyeTpl"
|
63
66
|
>
|
64
67
|
<input
|
65
|
-
[type]="
|
68
|
+
[type]="passVisible ? 'text' : 'password'"
|
66
69
|
nz-input
|
67
70
|
[formControl]="formControl"
|
68
71
|
[formlyAttributes]="field"
|
69
|
-
[nzBorderless]="props['borderless']
|
72
|
+
[nzBorderless]="!!props['borderless']"
|
70
73
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
71
74
|
/>
|
72
75
|
</nz-input-group>
|
@@ -83,11 +86,11 @@ class FormlyFieldInput extends FieldType {
|
|
83
86
|
[ngClass]="props['ngClass']"
|
84
87
|
[ngStyle]="props['ngStyle']"
|
85
88
|
[nzPrefix]="props['prefix']"
|
86
|
-
[nzSuffix]="props['allowClear']
|
89
|
+
[nzSuffix]="props['allowClear'] ? inputClearTpl : props['suffix']"
|
87
90
|
>
|
88
91
|
<input
|
89
92
|
nz-input
|
90
|
-
[nzBorderless]="props['borderless']"
|
93
|
+
[nzBorderless]="!!props['borderless']"
|
91
94
|
[nzAutocomplete]="auto"
|
92
95
|
[formControl]="formControl"
|
93
96
|
[formlyAttributes]="field"
|
@@ -120,9 +123,9 @@ class FormlyFieldInput extends FieldType {
|
|
120
123
|
[ngClass]="props['ngClass']"
|
121
124
|
[ngStyle]="props['ngStyle']"
|
122
125
|
[nzPrefix]="props['prefix']"
|
123
|
-
[nzSuffix]="props['allowClear']
|
124
|
-
[nzCompact]="props['compact']
|
125
|
-
[nzSearch]="props['search']
|
126
|
+
[nzSuffix]="props['allowClear'] ? inputClearTpl : props['suffix']"
|
127
|
+
[nzCompact]="!!props['compact']"
|
128
|
+
[nzSearch]="!!props['search']"
|
126
129
|
[nzSize]="props['size']!"
|
127
130
|
[nzStatus]="props['status']!"
|
128
131
|
>
|
@@ -131,7 +134,7 @@ class FormlyFieldInput extends FieldType {
|
|
131
134
|
type="text"
|
132
135
|
[formControl]="formControl"
|
133
136
|
[formlyAttributes]="field"
|
134
|
-
[nzBorderless]="!!props['borderless']
|
137
|
+
[nzBorderless]="!!props['borderless']"
|
135
138
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
136
139
|
/>
|
137
140
|
</nz-input-group>
|
@@ -146,7 +149,7 @@ class FormlyFieldInput extends FieldType {
|
|
146
149
|
[formlyAttributes]="field"
|
147
150
|
[nzSize]="props['size']"
|
148
151
|
[nzStatus]="props['status']"
|
149
|
-
[nzBorderless]="props['borderless']
|
152
|
+
[nzBorderless]="!!props['borderless']"
|
150
153
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
151
154
|
/>
|
152
155
|
}
|
@@ -157,8 +160,8 @@ class FormlyFieldInput extends FieldType {
|
|
157
160
|
<span
|
158
161
|
nz-icon
|
159
162
|
class="cursor-pointer"
|
160
|
-
[nzType]="
|
161
|
-
(click)="
|
163
|
+
[nzType]="passVisible ? 'eye-invisible' : 'eye'"
|
164
|
+
(click)="passVisible = !passVisible"
|
162
165
|
></span>
|
163
166
|
|
164
167
|
@if (formControl.value && props['allowClear']!!) {
|
@@ -185,7 +188,7 @@ class FormlyFieldInput extends FieldType {
|
|
185
188
|
</ng-template>
|
186
189
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i4.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i4.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i5.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i5.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i5.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i7.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
187
190
|
}
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
189
192
|
type: Component,
|
190
193
|
args: [{
|
191
194
|
selector: 'formly-field-input',
|
@@ -202,18 +205,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
202
205
|
[ngClass]="props['ngClass']"
|
203
206
|
[ngStyle]="props['ngStyle']"
|
204
207
|
[nzPrefix]="props['prefix']"
|
205
|
-
[nzCompact]="props['compact']
|
206
|
-
[nzSearch]="props['search']
|
208
|
+
[nzCompact]="!!props['compact']"
|
209
|
+
[nzSearch]="!!props['search']"
|
207
210
|
[nzSize]="props['size']!"
|
208
211
|
[nzStatus]="props['status']!"
|
209
212
|
[nzSuffix]="passwordEyeTpl"
|
210
213
|
>
|
211
214
|
<input
|
212
|
-
[type]="
|
215
|
+
[type]="passVisible ? 'text' : 'password'"
|
213
216
|
nz-input
|
214
217
|
[formControl]="formControl"
|
215
218
|
[formlyAttributes]="field"
|
216
|
-
[nzBorderless]="props['borderless']
|
219
|
+
[nzBorderless]="!!props['borderless']"
|
217
220
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
218
221
|
/>
|
219
222
|
</nz-input-group>
|
@@ -230,11 +233,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
230
233
|
[ngClass]="props['ngClass']"
|
231
234
|
[ngStyle]="props['ngStyle']"
|
232
235
|
[nzPrefix]="props['prefix']"
|
233
|
-
[nzSuffix]="props['allowClear']
|
236
|
+
[nzSuffix]="props['allowClear'] ? inputClearTpl : props['suffix']"
|
234
237
|
>
|
235
238
|
<input
|
236
239
|
nz-input
|
237
|
-
[nzBorderless]="props['borderless']"
|
240
|
+
[nzBorderless]="!!props['borderless']"
|
238
241
|
[nzAutocomplete]="auto"
|
239
242
|
[formControl]="formControl"
|
240
243
|
[formlyAttributes]="field"
|
@@ -267,9 +270,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
267
270
|
[ngClass]="props['ngClass']"
|
268
271
|
[ngStyle]="props['ngStyle']"
|
269
272
|
[nzPrefix]="props['prefix']"
|
270
|
-
[nzSuffix]="props['allowClear']
|
271
|
-
[nzCompact]="props['compact']
|
272
|
-
[nzSearch]="props['search']
|
273
|
+
[nzSuffix]="props['allowClear'] ? inputClearTpl : props['suffix']"
|
274
|
+
[nzCompact]="!!props['compact']"
|
275
|
+
[nzSearch]="!!props['search']"
|
273
276
|
[nzSize]="props['size']!"
|
274
277
|
[nzStatus]="props['status']!"
|
275
278
|
>
|
@@ -278,7 +281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
278
281
|
type="text"
|
279
282
|
[formControl]="formControl"
|
280
283
|
[formlyAttributes]="field"
|
281
|
-
[nzBorderless]="!!props['borderless']
|
284
|
+
[nzBorderless]="!!props['borderless']"
|
282
285
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
283
286
|
/>
|
284
287
|
</nz-input-group>
|
@@ -293,7 +296,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
293
296
|
[formlyAttributes]="field"
|
294
297
|
[nzSize]="props['size']"
|
295
298
|
[nzStatus]="props['status']"
|
296
|
-
[nzBorderless]="props['borderless']
|
299
|
+
[nzBorderless]="!!props['borderless']"
|
297
300
|
(ngModelChange)="props['modelChange']?.(field, $event)"
|
298
301
|
/>
|
299
302
|
}
|
@@ -304,8 +307,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
304
307
|
<span
|
305
308
|
nz-icon
|
306
309
|
class="cursor-pointer"
|
307
|
-
[nzType]="
|
308
|
-
(click)="
|
310
|
+
[nzType]="passVisible ? 'eye-invisible' : 'eye'"
|
311
|
+
(click)="passVisible = !passVisible"
|
309
312
|
></span>
|
310
313
|
|
311
314
|
@if (formControl.value && props['allowClear']!!) {
|
@@ -338,14 +341,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
338
341
|
}] }] });
|
339
342
|
|
340
343
|
class FormlyNzInputModule {
|
341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
342
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
345
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
343
346
|
ReactiveFormsModule,
|
344
347
|
NzInputModule,
|
345
348
|
NzAutocompleteModule,
|
346
349
|
NzIconModule,
|
347
350
|
FormlyNzFormFieldModule, i7.FormlyModule] }); }
|
348
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
351
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
|
349
352
|
ReactiveFormsModule,
|
350
353
|
NzInputModule,
|
351
354
|
NzAutocompleteModule,
|
@@ -376,7 +379,7 @@ class FormlyNzInputModule {
|
|
376
379
|
]
|
377
380
|
})] }); }
|
378
381
|
}
|
379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: FormlyNzInputModule, decorators: [{
|
380
383
|
type: NgModule,
|
381
384
|
args: [{
|
382
385
|
declarations: [FormlyFieldInput],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, Optional, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n @switch (props.type) {\n @case ('password') {\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n }\n @case ('autoComplete') {\n <nz-input-group\n [nzSize]=\"props['size']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n @for (option of props['autocompleteOptions'].dataSource; track option) {\n <nz-auto-option [nzLabel]=\"option.label\" [nzValue]=\"option.value\" [attr.title]=\"option.label\">\n {{ option.label }}\n </nz-auto-option>\n }\n </nz-autocomplete>\n </nz-input-group>\n }\n @case ('group') {\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n }\n @default {\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n }\n }\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n @if (formControl.value && props['allowClear']!!) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n @if (formControl.value && !props['disabled'] && !props['readonly']) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get addOnBefore() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnBefore');\n }\n\n get addOnAfter() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;AA8JM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AAgB9D,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAfxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;KAIvB;AAED,IAAA,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AA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApC/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,aAAa;wBACb,oBAAoB;wBACpB,YAAY;wBAEZ,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACxB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,OAAO;AACd,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, Optional, signal, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends NzFormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n/**\n * @private\n */\n@Component({\n selector: 'formly-field-input',\n template: `\n @switch (props.type) {\n @case ('password') {\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzCompact]=\"!!props['compact']\"\n [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n }\n @case ('autoComplete') {\n <nz-input-group\n [nzSize]=\"props['size']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear'] ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"!!props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n @for (option of props['autocompleteOptions'].dataSource; track option) {\n <nz-auto-option [nzLabel]=\"option.label\" [nzValue]=\"option.value\" [attr.title]=\"option.label\">\n {{ option.label }}\n </nz-auto-option>\n }\n </nz-autocomplete>\n </nz-input-group>\n }\n @case ('group') {\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"addOnBefore\"\n [nzAddOnAfter]=\"addOnAfter\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear'] ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"!!props['compact']\"\n [nzSearch]=\"!!props['search']\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n </nz-input-group>\n }\n @default {\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"!!props['borderless']\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n />\n }\n }\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passVisible = !passVisible\"\n ></span>\n\n @if (formControl.value && props['allowClear']!!) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\n @if (formControl.value && !props['disabled'] && !props['readonly']) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passVisible = false;\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get addOnBefore() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnBefore');\n }\n\n get addOnAfter() {\n return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');\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 { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;AAWA;;AAEG;AAmJG,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AAgB9D,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAfxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;QACF,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;KAInB;AAED,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;KACvE;AA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