ngx-formly-zorro-antd 17.2.2 → 17.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/button/button.type.mjs +6 -2
- package/esm2022/button-group/button-group.type.mjs +18 -4
- package/esm2022/input-number/input-number.type.mjs +2 -2
- package/esm2022/types/ngx-formly-zorro-antd-types.mjs +5 -0
- package/esm2022/types/public_api.mjs +2 -0
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +17 -3
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +5 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-types.mjs +4 -0
- package/fesm2022/ngx-formly-zorro-antd-types.mjs.map +1 -0
- package/package.json +19 -13
- package/types/index.d.ts +5 -0
- package/types/package.json +3 -0
- package/types/public_api.d.ts +26 -0
@@ -45,6 +45,7 @@ export class FormlyFieldButton extends FieldType {
|
|
45
45
|
[nzDanger]="props['danger']!!"
|
46
46
|
[nzType]="props['nzType'] ?? 'link'"
|
47
47
|
[ngClass]="props['ngClass']"
|
48
|
+
[ngStyle]="props['ngStyle']"
|
48
49
|
>
|
49
50
|
@if (props['beforeIcon']) {
|
50
51
|
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
@@ -75,6 +76,7 @@ export class FormlyFieldButton extends FieldType {
|
|
75
76
|
[nzDanger]="props['danger']!!"
|
76
77
|
[nzType]="props['nzType'] ?? null"
|
77
78
|
[ngClass]="props['ngClass']"
|
79
|
+
[ngStyle]="props['ngStyle']"
|
78
80
|
nz-button
|
79
81
|
>
|
80
82
|
@if (props['beforeIcon']) {
|
@@ -92,7 +94,7 @@ export class FormlyFieldButton extends FieldType {
|
|
92
94
|
}
|
93
95
|
</button>
|
94
96
|
}
|
95
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
97
|
+
`, 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.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
96
98
|
}
|
97
99
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
98
100
|
type: Component,
|
@@ -112,6 +114,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
112
114
|
[nzDanger]="props['danger']!!"
|
113
115
|
[nzType]="props['nzType'] ?? 'link'"
|
114
116
|
[ngClass]="props['ngClass']"
|
117
|
+
[ngStyle]="props['ngStyle']"
|
115
118
|
>
|
116
119
|
@if (props['beforeIcon']) {
|
117
120
|
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
@@ -142,6 +145,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
142
145
|
[nzDanger]="props['danger']!!"
|
143
146
|
[nzType]="props['nzType'] ?? null"
|
144
147
|
[ngClass]="props['ngClass']"
|
148
|
+
[ngStyle]="props['ngStyle']"
|
145
149
|
nz-button
|
146
150
|
>
|
147
151
|
@if (props['beforeIcon']) {
|
@@ -165,4 +169,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
165
169
|
}], ctorParameters: () => [{ type: i1.FormlyBoxTemplates, decorators: [{
|
166
170
|
type: Optional
|
167
171
|
}] }] });
|
168
|
-
//# sourceMappingURL=data:application/json;base64,
|
172
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2J1dHRvbi9zcmMvYnV0dG9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsUUFBUSxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxTQUFTLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFFOUQsT0FBTyxFQUVMLGtCQUFrQixFQUNsQixlQUFlLEVBQ2YsY0FBYyxFQUNmLE1BQU0sOEJBQThCLENBQUM7Ozs7Ozs7Ozs7QUFtSnRDLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxTQUF1QztJQVc1RSxZQUErQixjQUFrQztRQUMvRCxLQUFLLEVBQUUsQ0FBQztRQURxQixtQkFBYyxHQUFkLGNBQWMsQ0FBb0I7UUFWeEQsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsS0FBSyxFQUFFLEtBQUs7Z0JBQ1osT0FBTyxFQUFFLEtBQUs7Z0JBQ2QsS0FBSyxFQUFFLEtBQUs7Z0JBQ1osSUFBSSxFQUFFLFNBQWtCO2dCQUN4QixNQUFNLEVBQUUsS0FBSzthQUNkO1NBQ0YsQ0FBQztJQUlGLENBQUM7SUFFRCxJQUFJLE9BQU87UUFDVCxPQUFPLGVBQWUsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQzdDLENBQUM7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TnpCdXR0b25TaXplO1xuXG4gIC8qKlxuICAgKiDorr7nva7mjInpkq7nsbvlnotcbiAgICovXG4gIG56VHlwZT86IE56QnV0dG9uVHlwZTtcblxuICAvKipcbiAgICog5bCG5oyJ6ZKu5a695bqm6LCD5pW05Li65YW254i25a695bqm55qE6YCJ6aG5XG4gICAqIEBkZWZhdWx0IGZhbHNlXG4gICAqL1xuICBibG9jaz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIOiuvue9ruWNsemZqeaMiemSrlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgZGFuZ2VyPzogYm9vbGVhbjtcblxuICAvKipcbiAgICog5paH5a2X5YmN6Z2i55qE5Zu+5qCHXG4gICAqL1xuICBiZWZvcmVJY29uPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiDmloflrZflkI7pnaLpnaLnmoTlm77moIdcbiAgICovXG4gIGFmdGVySWNvbj86IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBGb3JtbHlCdXR0b25GaWVsZENvbmZpZyBleHRlbmRzIE56Rm9ybWx5RmllbGRDb25maWc8QnV0dG9uUHJvcHM+IHtcbiAgdHlwZTogJ2J1dHRvbicgfCAnc3VibWl0JyB8ICdyZXNldCcgfCBUeXBlPEZvcm1seUZpZWxkQnV0dG9uPjtcbn1cblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZm9ybWx5LWZpZWxkLWJ1dHRvbicsXG4gIHRlbXBsYXRlOiBgXG4gICAgQGlmIChwcm9wcy50eXBlID09PSAnYScpIHtcbiAgICAgIDxhXG4gICAgICAgIG56LWJ1dHRvblxuICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgIFthdHRyLnRpdGxlXT1cInByb3BzWyd0aXRsZSddXCJcbiAgICAgICAgW256R2hvc3RdPVwicHJvcHNbJ2dob3N0J10hIVwiXG4gICAgICAgIFtuekxvYWRpbmddPVwicHJvcHNbJ2xvYWRpbmcnXSEhXCJcbiAgICAgICAgW256U2hhcGVdPVwicHJvcHNbJ3NoYXBlJ10gPz8gbnVsbFwiXG4gICAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgICAgICBbbnpCbG9ja109XCJwcm9wc1snYmxvY2snXSEhXCJcbiAgICAgICAgW256RGFuZ2VyXT1cInByb3BzWydkYW5nZXInXSEhXCJcbiAgICAgICAgW256VHlwZV09XCJwcm9wc1snbnpUeXBlJ10gPz8gJ2xpbmsnXCJcbiAgICAgICAgW25nQ2xhc3NdPVwicHJvcHNbJ25nQ2xhc3MnXVwiXG4gICAgICAgIFtuZ1N0eWxlXT1cInByb3BzWyduZ1N0eWxlJ11cIlxuICAgICAgPlxuICAgICAgICBAaWYgKHByb3BzWydiZWZvcmVJY29uJ10pIHtcbiAgICAgICAgICA8c3BhbiBuei1pY29uIFtuelR5cGVdPVwicHJvcHNbJ2JlZm9yZUljb24nXVwiPjwvc3Bhbj5cbiAgICAgICAgfVxuICAgICAgICBAaWYgKGhhc1RleHQpIHtcbiAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAqbnpTdHJpbmdUZW1wbGF0ZU91dGxldD1cInRleHQ7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBmaWVsZCwgb3B0aW9uczogcHJvcHMgfVwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge3sgdGV4dCB9fVxuICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICB9XG4gICAgICAgIEBpZiAocHJvcHNbJ2FmdGVySWNvbiddKSB7XG4gICAgICAgICAgPHNwYW4gbnotaWNvbiBbbnpUeXBlXT1cInByb3BzWydhZnRlckljb24nXVwiPjwvc3Bhbj5cbiAgICAgICAgfVxuICAgICAgPC9hPlxuICAgIH0gQGVsc2Uge1xuICAgICAgPGJ1dHRvblxuICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgIFthdHRyLnR5cGVdPVwiZmllbGQudHlwZVwiXG4gICAgICAgIFthdHRyLmZvcm1dPVwicHJvcHNbJ2Zvcm1OYW1lJ11cIlxuICAgICAgICBbYXR0ci50aXRsZV09XCJwcm9wc1sndGl0bGUnXVwiXG4gICAgICAgIFtkaXNhYmxlZF09XCJwcm9wc1snZGlzYWJsZWQnXSB8fCBmb3JtQ29udHJvbC5kaXNhYmxlZCEhXCJcbiAgICAgICAgW256R2hvc3RdPVwicHJvcHNbJ2dob3N0J10hIVwiXG4gICAgICAgIFtuekxvYWRpbmddPVwicHJvcHNbJ2xvYWRpbmcnXSEhXCJcbiAgICAgICAgW256U2hhcGVdPVwicHJvcHNbJ3NoYXBlJ10gPz8gbnVsbFwiXG4gICAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgICAgICBbbnpCbG9ja109XCJwcm9wc1snYmxvY2snXSEhXCJcbiAgICAgICAgW256RGFuZ2VyXT1cInByb3BzWydkYW5nZXInXSEhXCJcbiAgICAgICAgW256VHlwZV09XCJwcm9wc1snbnpUeXBlJ10gPz8gbnVsbFwiXG4gICAgICAgIFtuZ0NsYXNzXT1cInByb3BzWyduZ0NsYXNzJ11cIlxuICAgICAgICBbbmdTdHlsZV09XCJwcm9wc1snbmdTdHlsZSddXCJcbiAgICAgICAgbnotYnV0dG9uXG4gICAgICA+XG4gICAgICAgIEBpZiAocHJvcHNbJ2JlZm9yZUljb24nXSkge1xuICAgICAgICAgIDxzcGFuIG56LWljb24gW256VHlwZV09XCJwcm9wc1snYmVmb3JlSWNvbiddXCI+PC9zcGFuPlxuICAgICAgICB9XG4gICAgICAgIEBpZiAoaGFzVGV4dCkge1xuICAgICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAgICpuelN0cmluZ1RlbXBsYXRlT3V0bGV0PVwidGV4dDsgY29udGV4dDogeyAkaW1wbGljaXQ6IGZpZWxkLCBvcHRpb25zOiBwcm9wcyB9XCJcbiAgICAgICAgICA+XG4gIC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|
|
28
28
|
}
|
29
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
30
30
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
31
|
-
<nz-button-group
|
31
|
+
<nz-button-group
|
32
|
+
[formlyAttributes]="field"
|
33
|
+
[nzSize]="props['size'] || 'default'"
|
34
|
+
[ngClass]="props['ngClass']"
|
35
|
+
[ngStyle]="props['ngStyle']"
|
36
|
+
>
|
32
37
|
@for (item of props.buttons; track item.id) {
|
33
38
|
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
34
39
|
}
|
@@ -44,6 +49,8 @@ export class FormlyFieldButtonGroup extends FieldType {
|
|
44
49
|
[nzBlock]="item.props.block!!"
|
45
50
|
[nzDanger]="item.props.danger!!"
|
46
51
|
[nzGhost]="item.props.ghost!!"
|
52
|
+
[ngClass]="item.props['ngClass']"
|
53
|
+
[ngStyle]="item.props['ngStyle']"
|
47
54
|
[nzSize]="item.props.size || 'default'"
|
48
55
|
[nzLoading]="item.props.loading!!"
|
49
56
|
[nzShape]="item.props.shape ?? null"
|
@@ -60,14 +67,19 @@ export class FormlyFieldButtonGroup extends FieldType {
|
|
60
67
|
}
|
61
68
|
</button>
|
62
69
|
</ng-template>
|
63
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
70
|
+
`, 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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
64
71
|
}
|
65
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
66
73
|
type: Component,
|
67
74
|
args: [{
|
68
75
|
selector: 'formly-field-button-group',
|
69
76
|
template: `
|
70
|
-
<nz-button-group
|
77
|
+
<nz-button-group
|
78
|
+
[formlyAttributes]="field"
|
79
|
+
[nzSize]="props['size'] || 'default'"
|
80
|
+
[ngClass]="props['ngClass']"
|
81
|
+
[ngStyle]="props['ngStyle']"
|
82
|
+
>
|
71
83
|
@for (item of props.buttons; track item.id) {
|
72
84
|
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
73
85
|
}
|
@@ -83,6 +95,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
83
95
|
[nzBlock]="item.props.block!!"
|
84
96
|
[nzDanger]="item.props.danger!!"
|
85
97
|
[nzGhost]="item.props.ghost!!"
|
98
|
+
[ngClass]="item.props['ngClass']"
|
99
|
+
[ngStyle]="item.props['ngStyle']"
|
86
100
|
[nzSize]="item.props.size || 'default'"
|
87
101
|
[nzLoading]="item.props.loading!!"
|
88
102
|
[nzShape]="item.props.shape ?? null"
|
@@ -103,4 +117,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
103
117
|
changeDetection: ChangeDetectionStrategy.OnPush
|
104
118
|
}]
|
105
119
|
}], ctorParameters: () =>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DwvYnV0dG9uPlxuICAgIDwvbmctdGVtcGxhdGU+XG4gIGAsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seUZpZWxkQnV0dG9uR3JvdXBcbiAgZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPEJ1dHRvbkdyb3VwUHJvcHM+PlxuICBpbXBsZW1lbnRzIE9uRGVzdHJveVxue1xuICBkZXN0cm95JCA9IG5ldyBTdWJqZWN0PHZvaWQ+KCk7XG4gIG92ZXJyaWRlIGRlZmF1bHRPcHRpb25zID0ge1xuICAgIHByb3BzOiB7XG4gICAgICBzaXplOiAnZGVmYXVsdCcgYXMgY29uc3QsXG4gICAgICBidXR0b25zOiBbXVxuICAgIH1cbiAgfTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgc3ViamVjdERlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5kZXN0cm95JC5uZXh0KCk7XG4gICAgdGhpcy5kZXN0cm95JC5jb21wbGV0ZSgpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5zdWJqZWN0RGVzdHJveSgpO1xuICB9XG59XG4iXX0=
|
@@ -21,7 +21,7 @@ export class FormlyFieldInputNumber extends FieldType {
|
|
21
21
|
size: 'default',
|
22
22
|
status: '',
|
23
23
|
step: 1,
|
24
|
-
inputMode: '
|
24
|
+
inputMode: 'auto',
|
25
25
|
formatter: (value) => value
|
26
26
|
}
|
27
27
|
};
|
@@ -125,4 +125,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
125
125
|
changeDetection: ChangeDetectionStrategy.OnPush
|
126
126
|
}]
|
127
127
|
}] });
|
128
|
-
//# sourceMappingURL=data:application/json;base64,
|
128
|
+
//# s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G4gICAgICAgIDxuei1pbnB1dC1udW1iZXItZ3JvdXBcbiAgICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snbmdDbGFzcyddXCJcbiAgICAgICAgICBbbnpBZGRPbkFmdGVyXT1cInByb3BzWydhZGRPbkFmdGVyJ11cIlxuICAgICAgICAgIFtuekFkZE9uQmVmb3JlXT1cInByb3BzWydhZGRPbkJlZm9yZSddXCJcbiAgICAgICAgICBbbnpQcmVmaXhdPVwicHJvcHNbJ3ByZWZpeCddXCJcbiAgICAgICAgICBbbnpTdWZmaXhdPVwicHJvcHNbJ3N1ZmZpeCddXCJcbiAgICAgICAgICBbbnpQcmVmaXhJY29uXT1cInByb3BzWydwcmVmaXhJY29uJ11cIlxuICAgICAgICAgIFtuelN1ZmZpeEljb25dPVwicHJvcHNbJ3N1ZmZpeEljb24nXVwiXG4gICAgICAgICAgW256Q29tcGFjdF09XCJwcm9wc1snY29tcGFjdCddXCJcbiAgICAgICAgPlxuICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJpbnB1dE51bWJlclRwbFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICA8L256LWlucHV0LW51bWJlci1ncm91cD5cbiAgICAgIH1cbiAgICAgIEBkZWZhdWx0IHtcbiAgICAgICAgPG5nLXRlbXBsYXRlIFtuZ1RlbXBsYXRlT3V0bGV0XT1cImlucHV0TnVtYmVyVHBsXCI+PC9uZy10ZW1wbGF0ZT5cbiAgICAgIH1cbiAgICB9XG5cbiAgICA8bmctdGVtcGxhdGUgI2lucHV0TnVtYmVyVHBsPlxuICAgICAgPG56LWlucHV0LW51bWJlclxuICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZm9ybUNvbnRyb2xcIlxuICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgIFtuek1heF09XCJwcm9wcy5tYXghXCJcbiAgICAgICAgW256TWluXT1cInByb3BzLm1pbiFcIlxuICAgICAg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ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZElucHV0TnVtYmVyIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZz4ge1xuICBvdmVycmlkZSBkZWZhdWx0T3B0aW9ucyA9IHtcbiAgICBwcm9wczoge1xuICAgICAgbWF4OiBJbmZpbml0eSxcbiAgICAgIG1pbjogLUluZmluaXR5LFxuICAgICAgcGFyc2VyOiAodmFsdWU6IHN0cmluZykgPT5cbiAgICAgICAgdmFsdWVcbiAgICAgICAgICAudHJpbSgpXG4gICAgICAgICAgLnJlcGxhY2UoL+OAgi9nLCAnLicpXG4gICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXVzZWxlc3MtZXNjYXBlXG4gICAgICAgICAgLnJlcGxhY2UoL1teXFx3XFwuLV0rL2csICcnKSxcbiAgICAgIHByZWNpc2lvbk1vZGU6ICd0b0ZpeGVkJyBhcyBjb25zdCxcbiAgICAgIHNpemU6ICdkZWZhdWx0JyBhcyBjb25zdCxcbiAgICAgIHN0YXR1czogJycgYXMgY29uc3QsXG4gICAgICBzdGVwOiAxLFxuICAgICAgaW5wdXRNb2RlOiAnYXV0bycsXG4gICAgICBmb3JtYXR0ZXI6ICh2YWx1ZTogbnVtYmVyIHwgc3RyaW5nKSA9PiB2YWx1ZVxuICAgIH1cbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZvcm1seS16b3Jyby1hbnRkLXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC90eXBlcy9uZ3gtZm9ybWx5LXpvc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wZSB7IEZvcm1seVVwbG9hZEZpZWxkQ29uZmlnIH0gZnJvbSAnbmd4LWZvcm1seS16b3Jyby1hbnRkL3VwbG9hZCc7XG4iXX0=
|
@@ -32,7 +32,12 @@ class FormlyFieldButtonGroup extends FieldType {
|
|
32
32
|
}
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
34
34
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
35
|
-
<nz-button-group
|
35
|
+
<nz-button-group
|
36
|
+
[formlyAttributes]="field"
|
37
|
+
[nzSize]="props['size'] || 'default'"
|
38
|
+
[ngClass]="props['ngClass']"
|
39
|
+
[ngStyle]="props['ngStyle']"
|
40
|
+
>
|
36
41
|
@for (item of props.buttons; track item.id) {
|
37
42
|
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
38
43
|
}
|
@@ -48,6 +53,8 @@ class FormlyFieldButtonGroup extends FieldType {
|
|
48
53
|
[nzBlock]="item.props.block!!"
|
49
54
|
[nzDanger]="item.props.danger!!"
|
50
55
|
[nzGhost]="item.props.ghost!!"
|
56
|
+
[ngClass]="item.props['ngClass']"
|
57
|
+
[ngStyle]="item.props['ngStyle']"
|
51
58
|
[nzSize]="item.props.size || 'default'"
|
52
59
|
[nzLoading]="item.props.loading!!"
|
53
60
|
[nzShape]="item.props.shape ?? null"
|
@@ -64,14 +71,19 @@ class FormlyFieldButtonGroup extends FieldType {
|
|
64
71
|
}
|
65
72
|
</button>
|
66
73
|
</ng-template>
|
67
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
74
|
+
`, 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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
68
75
|
}
|
69
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
70
77
|
type: Component,
|
71
78
|
args: [{
|
72
79
|
selector: 'formly-field-button-group',
|
73
80
|
template: `
|
74
|
-
<nz-button-group
|
81
|
+
<nz-button-group
|
82
|
+
[formlyAttributes]="field"
|
83
|
+
[nzSize]="props['size'] || 'default'"
|
84
|
+
[ngClass]="props['ngClass']"
|
85
|
+
[ngStyle]="props['ngStyle']"
|
86
|
+
>
|
75
87
|
@for (item of props.buttons; track item.id) {
|
76
88
|
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
77
89
|
}
|
@@ -87,6 +99,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
87
99
|
[nzBlock]="item.props.block!!"
|
88
100
|
[nzDanger]="item.props.danger!!"
|
89
101
|
[nzGhost]="item.props.ghost!!"
|
102
|
+
[ngClass]="item.props['ngClass']"
|
103
|
+
[ngStyle]="item.props['ngStyle']"
|
90
104
|
[nzSize]="item.props.size || 'default'"
|
91
105
|
[nzLoading]="item.props.loading!!"
|
92
106
|
[nzShape]="item.props.shape ?? null"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size'] || 'default'\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n @for (item of props.buttons; track item.id) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [attr.title]=\"item.props['title']\"\n [disabled]=\"item.props.disabled!!\"\n [nzBlock]=\"item.props.block!!\"\n [nzDanger]=\"item.props.danger!!\"\n [nzGhost]=\"item.props.ghost!!\"\n [ngClass]=\"item.props['ngClass']\"\n [ngStyle]=\"item.props['ngStyle']\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"item.props.loading!!\"\n [nzShape]=\"item.props.shape ?? null\"\n [nzType]=\"item.props.nzType ?? null\"\n >\n @if (item.props.beforeIcon) {\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\n }\n @if (item.props.text) {\n <span>{{ item.props.text }}</span>\n }\n @if (item.props.afterIcon) {\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\n }\n </button>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButtonGroup\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\n implements OnDestroy\n{\n destroy$ = new Subject<void>();\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttons: []\n }\n };\n\n constructor() {\n super();\n }\n\n subjectDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnDestroy(): void {\n this.subjectDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButtonGroup } from './button-group.type';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButtonGroup],\n imports: [\n CommonModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button-group',\n component: FormlyFieldButtonGroup\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAmEM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,EAAE;AACZ,aAAA;SACF,CAAC;KAID;IAED,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;IAED,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;8GAvBU,sBAAsB,EAAA,IAAA,EAAA,EAAA,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,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YH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAdlC,YAAY;YACZ,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAjBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
@@ -50,6 +50,7 @@ class FormlyFieldButton extends FieldType {
|
|
50
50
|
[nzDanger]="props['danger']!!"
|
51
51
|
[nzType]="props['nzType'] ?? 'link'"
|
52
52
|
[ngClass]="props['ngClass']"
|
53
|
+
[ngStyle]="props['ngStyle']"
|
53
54
|
>
|
54
55
|
@if (props['beforeIcon']) {
|
55
56
|
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
@@ -80,6 +81,7 @@ class FormlyFieldButton extends FieldType {
|
|
80
81
|
[nzDanger]="props['danger']!!"
|
81
82
|
[nzType]="props['nzType'] ?? null"
|
82
83
|
[ngClass]="props['ngClass']"
|
84
|
+
[ngStyle]="props['ngStyle']"
|
83
85
|
nz-button
|
84
86
|
>
|
85
87
|
@if (props['beforeIcon']) {
|
@@ -97,7 +99,7 @@ class FormlyFieldButton extends FieldType {
|
|
97
99
|
}
|
98
100
|
</button>
|
99
101
|
}
|
100
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
102
|
+
`, 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.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
101
103
|
}
|
102
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
103
105
|
type: Component,
|
@@ -117,6 +119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
117
119
|
[nzDanger]="props['danger']!!"
|
118
120
|
[nzType]="props['nzType'] ?? 'link'"
|
119
121
|
[ngClass]="props['ngClass']"
|
122
|
+
[ngStyle]="props['ngStyle']"
|
120
123
|
>
|
121
124
|
@if (props['beforeIcon']) {
|
122
125
|
<span nz-icon [nzType]="props['beforeIcon']"></span>
|
@@ -147,6 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
147
150
|
[nzDanger]="props['danger']!!"
|
148
151
|
[nzType]="props['nzType'] ?? null"
|
149
152
|
[ngClass]="props['ngClass']"
|
153
|
+
[ngStyle]="props['ngStyle']"
|
150
154
|
nz-button
|
151
155
|
>
|
152
156
|
@if (props['beforeIcon']) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * 标题\n */\n title?: string;\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [attr.title]=\"props['title']\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['ngClass']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [attr.title]=\"props['title']\"\n [disabled]=\"props['disabled'] || formControl.disabled!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['ngClass']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\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-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport {\n NzFormlyFieldConfig,\n FormlyBoxTemplates,\n hasTplNameValue,\n resolveTplName\n} from 'ngx-formly-zorro-antd/common';\n\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nexport interface ButtonProps extends FormlyFieldProps {\n type?: 'a' | 'button';\n\n /**\n * 标题\n */\n title?: string;\n\n /**\n * form 名称\n */\n formName?: string;\n\n /**\n * 按钮内容文本\n */\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\n textName?: string;\n\n /**\n * 幽灵属性,使按钮背景透明\n * @default false\n */\n ghost?: boolean;\n\n /**\n * 设置按钮载入状态\n * @default false\n */\n loading?: boolean;\n\n /**\n * 设置按钮形状\n */\n shape?: NzButtonShape;\n\n /**\n * 设置按钮大小\n * @default default\n */\n size?: NzButtonSize;\n\n /**\n * 设置按钮类型\n */\n nzType?: NzButtonType;\n\n /**\n * 将按钮宽度调整为其父宽度的选项\n * @default false\n */\n block?: boolean;\n\n /**\n * 设置危险按钮\n * @default false\n */\n danger?: boolean;\n\n /**\n * 文字前面的图标\n */\n beforeIcon?: string;\n\n /**\n * 文字后面面的图标\n */\n afterIcon?: string;\n}\n\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\n}\n\n@Component({\n selector: 'formly-field-button',\n template: `\n @if (props.type === 'a') {\n <a\n nz-button\n [formlyAttributes]=\"field\"\n [attr.title]=\"props['title']\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? 'link'\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </a>\n } @else {\n <button\n [formlyAttributes]=\"field\"\n [attr.type]=\"field.type\"\n [attr.form]=\"props['formName']\"\n [attr.title]=\"props['title']\"\n [disabled]=\"props['disabled'] || formControl.disabled!!\"\n [nzGhost]=\"props['ghost']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShape]=\"props['shape'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBlock]=\"props['block']!!\"\n [nzDanger]=\"props['danger']!!\"\n [nzType]=\"props['nzType'] ?? null\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n nz-button\n >\n @if (props['beforeIcon']) {\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\n }\n @if (hasText) {\n <ng-container\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\n >\n {{ text }}\n </ng-container>\n }\n @if (props['afterIcon']) {\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\n }\n </button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\n override defaultOptions = {\n props: {\n ghost: false,\n loading: false,\n block: false,\n size: 'default' as const,\n danger: false\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get hasText() {\n return hasTplNameValue(this.props, 'text');\n }\n\n get text() {\n return resolveTplName(this.props, this.fieldTemplates, 'text');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButton } from './button.type';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButton],\n imports: [\n CommonModule,\n NzOutletModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button',\n component: FormlyFieldButton\n },\n {\n name: 'submit',\n extends: 'button'\n },\n {\n name: 'reset',\n extends: 'button'\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AA2JM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC5C;AAED,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;KAChE;8GArBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAlElB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;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,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBA1BhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
|
@@ -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 [formlyAttributes]=\"field\"\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'] && props['modelChange'](field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzBlur)=\"props.blur && 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: '
|
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 [formlyAttributes]=\"field\"\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'] && props['modelChange'](field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzBlur)=\"props.blur && 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 {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,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,sBAAsB;wBACjC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,QAAQ;AAClB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAvBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBAEnB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,sBAAsB;oCACjC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-types.mjs","sources":["../../../../packages/formlyantd/types/ngx-formly-zorro-antd-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-formly-zorro-antd",
|
3
|
-
"version": "17.
|
3
|
+
"version": "17.3.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org",
|
6
6
|
"access": "public"
|
@@ -49,6 +49,12 @@
|
|
49
49
|
"esm": "./esm2022/card/ngx-formly-zorro-antd-card.mjs",
|
50
50
|
"default": "./fesm2022/ngx-formly-zorro-antd-card.mjs"
|
51
51
|
},
|
52
|
+
"./card-wrapper": {
|
53
|
+
"types": "./card-wrapper/index.d.ts",
|
54
|
+
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
55
|
+
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
56
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
57
|
+
},
|
52
58
|
"./cascader": {
|
53
59
|
"types": "./cascader/index.d.ts",
|
54
60
|
"esm2022": "./esm2022/cascader/ngx-formly-zorro-antd-cascader.mjs",
|
@@ -67,12 +73,6 @@
|
|
67
73
|
"esm": "./esm2022/button-group/ngx-formly-zorro-antd-button-group.mjs",
|
68
74
|
"default": "./fesm2022/ngx-formly-zorro-antd-button-group.mjs"
|
69
75
|
},
|
70
|
-
"./card-wrapper": {
|
71
|
-
"types": "./card-wrapper/index.d.ts",
|
72
|
-
"esm2022": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
73
|
-
"esm": "./esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs",
|
74
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs"
|
75
|
-
},
|
76
76
|
"./common": {
|
77
77
|
"types": "./common/index.d.ts",
|
78
78
|
"esm2022": "./esm2022/common/ngx-formly-zorro-antd-common.mjs",
|
@@ -109,18 +109,18 @@
|
|
109
109
|
"esm": "./esm2022/grid/ngx-formly-zorro-antd-grid.mjs",
|
110
110
|
"default": "./fesm2022/ngx-formly-zorro-antd-grid.mjs"
|
111
111
|
},
|
112
|
-
"./input-group": {
|
113
|
-
"types": "./input-group/index.d.ts",
|
114
|
-
"esm2022": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
115
|
-
"esm": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
116
|
-
"default": "./fesm2022/ngx-formly-zorro-antd-input-group.mjs"
|
117
|
-
},
|
118
112
|
"./input": {
|
119
113
|
"types": "./input/index.d.ts",
|
120
114
|
"esm2022": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
121
115
|
"esm": "./esm2022/input/ngx-formly-zorro-antd-input.mjs",
|
122
116
|
"default": "./fesm2022/ngx-formly-zorro-antd-input.mjs"
|
123
117
|
},
|
118
|
+
"./input-group": {
|
119
|
+
"types": "./input-group/index.d.ts",
|
120
|
+
"esm2022": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
121
|
+
"esm": "./esm2022/input-group/ngx-formly-zorro-antd-input-group.mjs",
|
122
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-input-group.mjs"
|
123
|
+
},
|
124
124
|
"./input-number": {
|
125
125
|
"types": "./input-number/index.d.ts",
|
126
126
|
"esm2022": "./esm2022/input-number/ngx-formly-zorro-antd-input-number.mjs",
|
@@ -205,6 +205,12 @@
|
|
205
205
|
"esm": "./esm2022/tree-select/ngx-formly-zorro-antd-tree-select.mjs",
|
206
206
|
"default": "./fesm2022/ngx-formly-zorro-antd-tree-select.mjs"
|
207
207
|
},
|
208
|
+
"./types": {
|
209
|
+
"types": "./types/index.d.ts",
|
210
|
+
"esm2022": "./esm2022/types/ngx-formly-zorro-antd-types.mjs",
|
211
|
+
"esm": "./esm2022/types/ngx-formly-zorro-antd-types.mjs",
|
212
|
+
"default": "./fesm2022/ngx-formly-zorro-antd-types.mjs"
|
213
|
+
},
|
208
214
|
"./upload": {
|
209
215
|
"types": "./upload/index.d.ts",
|
210
216
|
"esm2022": "./esm2022/upload/ngx-formly-zorro-antd-upload.mjs",
|
package/types/index.d.ts
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
export type { FormlyButtonFieldConfig } from 'ngx-formly-zorro-antd/button';
|
2
|
+
export type { FormlyButtonGroupFieldConfig } from 'ngx-formly-zorro-antd/button-group';
|
3
|
+
export type { FormlyCardFieldConfig } from 'ngx-formly-zorro-antd/card';
|
4
|
+
export type { FormlyCardWrapperConfig } from 'ngx-formly-zorro-antd/card-wrapper';
|
5
|
+
export type { FormlyCascaderFieldConfig } from 'ngx-formly-zorro-antd/cascader';
|
6
|
+
export type { FormlyCheckboxFieldConfig } from 'ngx-formly-zorro-antd/checkbox';
|
7
|
+
export type { FormlyDatepickerFieldConfig } from 'ngx-formly-zorro-antd/datepicker';
|
8
|
+
export type { FormlyFlexFieldConfig } from 'ngx-formly-zorro-antd/flex';
|
9
|
+
export type { FormlyGridFieldConfig } from 'ngx-formly-zorro-antd/grid';
|
10
|
+
export type { FormlyInputFieldConfig } from 'ngx-formly-zorro-antd/input';
|
11
|
+
export type { FormlyInputGroupFieldConfig } from 'ngx-formly-zorro-antd/input-group';
|
12
|
+
export type { FormlyInputNumberFieldConfig } from 'ngx-formly-zorro-antd/input-number';
|
13
|
+
export type { FormlyRadioFieldConfig } from 'ngx-formly-zorro-antd/radio';
|
14
|
+
export type { FormlyRateFieldConfig } from 'ngx-formly-zorro-antd/rate';
|
15
|
+
export type { FormlyRefTemplateFieldConfig } from 'ngx-formly-zorro-antd/ref-template';
|
16
|
+
export type { FormlySelectFieldConfig } from 'ngx-formly-zorro-antd/select';
|
17
|
+
export type { FormlySlideFieldConfig } from 'ngx-formly-zorro-antd/slider';
|
18
|
+
export type { FormlySpaceFieldConfig } from 'ngx-formly-zorro-antd/space';
|
19
|
+
export type { FormlySwitchFieldConfig } from 'ngx-formly-zorro-antd/switch';
|
20
|
+
export type { FormlyTabsWrapperConfig } from 'ngx-formly-zorro-antd/tabs';
|
21
|
+
export type { FormlyTextValueFieldConfig } from 'ngx-formly-zorro-antd/text-value';
|
22
|
+
export type { FormlyTextareaFieldConfig } from 'ngx-formly-zorro-antd/textarea';
|
23
|
+
export type { FormlyTimepickerFieldConfig } from 'ngx-formly-zorro-antd/timepicker';
|
24
|
+
export type { FormlyTransferFieldConfig } from 'ngx-formly-zorro-antd/transfer';
|
25
|
+
export type { FormlyTreeSelectFieldConfig } from 'ngx-formly-zorro-antd/tree-select';
|
26
|
+
export type { FormlyUploadFieldConfig } from 'ngx-formly-zorro-antd/upload';
|