ngx-formly-zorro-antd 17.1.1 → 17.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
- package/esm2022/autocomplete/public_api.mjs +1 -1
- package/esm2022/button/button.module.mjs +5 -5
- package/esm2022/button/button.type.mjs +125 -125
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +5 -5
- package/esm2022/button-group/button-group.type.mjs +69 -69
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +5 -5
- package/esm2022/card/card.type.mjs +53 -53
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +39 -39
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +5 -5
- package/esm2022/cascader/cascader.type.mjs +67 -67
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/checkbox/checkbox.type.mjs +41 -41
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +5 -5
- package/esm2022/common/formly-box-templates.directive.mjs +4 -4
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +5 -5
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +151 -151
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/flex/flex.module.mjs +41 -0
- package/esm2022/flex/flex.type.mjs +66 -0
- package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
- package/esm2022/flex/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.module.mjs +5 -5
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +149 -149
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +5 -5
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +61 -61
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +5 -5
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +277 -277
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +5 -5
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +41 -41
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +5 -5
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +91 -91
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +5 -5
- package/esm2022/radio/radio.type.mjs +83 -83
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +5 -5
- package/esm2022/rate/rate.type.mjs +35 -35
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +5 -5
- package/esm2022/ref-template/ref-template.type.mjs +11 -11
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +5 -5
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +125 -125
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +5 -5
- package/esm2022/slider/slider.type.mjs +35 -35
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +5 -5
- package/esm2022/space/space.type.mjs +29 -29
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +5 -5
- package/esm2022/switch/switch.type.mjs +27 -27
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +5 -5
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +81 -81
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.module.mjs +5 -5
- package/esm2022/text-value/text-value.type.mjs +21 -21
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +5 -5
- package/esm2022/textarea/textarea.type.mjs +115 -115
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.type.mjs +63 -63
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +52 -52
- package/esm2022/transfer/transfer.module.mjs +5 -5
- package/esm2022/transfer/transfer.type.mjs +49 -49
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +5 -5
- package/esm2022/tree-select/tree-select.type.mjs +71 -71
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +146 -146
- package/esm2022/upload/upload.module.mjs +5 -5
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +85 -85
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +72 -72
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +128 -128
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +42 -42
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +56 -56
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +70 -70
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +44 -44
- 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 +154 -154
- 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 +109 -0
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +152 -152
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +44 -44
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +280 -280
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +86 -86
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -14
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +128 -128
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +84 -84
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +118 -118
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +103 -103
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +74 -74
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +233 -233
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/flex.module.d.ts +10 -0
- package/flex/flex.type.d.ts +48 -0
- package/flex/index.d.ts +5 -0
- package/flex/public_api.d.ts +2 -0
- package/input/input.props.d.ts +4 -2
- package/input/public_api.d.ts +1 -0
- package/input-group/input-group.props.d.ts +2 -0
- package/input-group/public_api.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
- package/package.json +24 -18
- package/autocomplete/package.json +0 -3
- package/button/package.json +0 -3
- package/button-group/package.json +0 -3
- package/card/package.json +0 -3
- package/card-wrapper/package.json +0 -3
- package/cascader/package.json +0 -3
- package/checkbox/package.json +0 -3
- package/common/package.json +0 -3
- package/datepicker/package.json +0 -3
- package/extension/package.json +0 -3
- package/form-field/package.json +0 -3
- package/grid/package.json +0 -3
- package/input/package.json +0 -3
- package/input-group/package.json +0 -3
- package/input-number/package.json +0 -3
- package/radio/package.json +0 -3
- package/rate/package.json +0 -3
- package/ref-template/package.json +0 -3
- package/select/package.json +0 -3
- package/slider/package.json +0 -3
- package/space/package.json +0 -3
- package/switch/package.json +0 -3
- package/tabs/package.json +0 -3
- package/text-value/package.json +0 -3
- package/textarea/package.json +0 -3
- package/timepicker/package.json +0 -3
- package/transfer/package.json +0 -3
- package/tree-select/package.json +0 -3
- package/upload/package.json +0 -3
@@ -37,63 +37,63 @@ class FormlyFieldCard extends FieldType {
|
|
37
37
|
get nzContent() {
|
38
38
|
return resolveTplName(this.props, this.fieldTemplates, 'content');
|
39
39
|
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.
|
42
|
-
<nz-card
|
43
|
-
[nzActions]="nzActions"
|
44
|
-
[formlyAttributes]="field"
|
45
|
-
[ngClass]="props['ngClass']"
|
46
|
-
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
47
|
-
[nzSize]="props['size']!"
|
48
|
-
[nzBorderless]="props['borderless']!!"
|
49
|
-
[nzCover]="nzCover"
|
50
|
-
[nzExtra]="nzExtra"
|
51
|
-
[nzHoverable]="props['hoverable']!!"
|
52
|
-
[nzLoading]="props['loading']!!"
|
53
|
-
[nzTitle]="nzTitle"
|
54
|
-
[nzBordered]="props['bordered']!!"
|
55
|
-
[nzType]="props['type'] ?? null"
|
56
|
-
>
|
57
|
-
@for (g of field.fieldGroup; track g.id) {
|
58
|
-
<formly-field [field]="g"></formly-field>
|
59
|
-
}
|
60
|
-
<ng-container
|
61
|
-
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
62
|
-
>
|
63
|
-
{{ nzContent }}
|
64
|
-
</ng-container>
|
65
|
-
</nz-card>
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
|
42
|
+
<nz-card
|
43
|
+
[nzActions]="nzActions"
|
44
|
+
[formlyAttributes]="field"
|
45
|
+
[ngClass]="props['ngClass']"
|
46
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
47
|
+
[nzSize]="props['size']!"
|
48
|
+
[nzBorderless]="props['borderless']!!"
|
49
|
+
[nzCover]="nzCover"
|
50
|
+
[nzExtra]="nzExtra"
|
51
|
+
[nzHoverable]="props['hoverable']!!"
|
52
|
+
[nzLoading]="props['loading']!!"
|
53
|
+
[nzTitle]="nzTitle"
|
54
|
+
[nzBordered]="props['bordered']!!"
|
55
|
+
[nzType]="props['type'] ?? null"
|
56
|
+
>
|
57
|
+
@for (g of field.fieldGroup; track g.id) {
|
58
|
+
<formly-field [field]="g"></formly-field>
|
59
|
+
}
|
60
|
+
<ng-container
|
61
|
+
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
62
|
+
>
|
63
|
+
{{ nzContent }}
|
64
|
+
</ng-container>
|
65
|
+
</nz-card>
|
66
66
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
67
67
|
}
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCard, decorators: [{
|
69
69
|
type: Component,
|
70
70
|
args: [{
|
71
71
|
selector: 'formly-field-card',
|
72
|
-
template: `
|
73
|
-
<nz-card
|
74
|
-
[nzActions]="nzActions"
|
75
|
-
[formlyAttributes]="field"
|
76
|
-
[ngClass]="props['ngClass']"
|
77
|
-
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
78
|
-
[nzSize]="props['size']!"
|
79
|
-
[nzBorderless]="props['borderless']!!"
|
80
|
-
[nzCover]="nzCover"
|
81
|
-
[nzExtra]="nzExtra"
|
82
|
-
[nzHoverable]="props['hoverable']!!"
|
83
|
-
[nzLoading]="props['loading']!!"
|
84
|
-
[nzTitle]="nzTitle"
|
85
|
-
[nzBordered]="props['bordered']!!"
|
86
|
-
[nzType]="props['type'] ?? null"
|
87
|
-
>
|
88
|
-
@for (g of field.fieldGroup; track g.id) {
|
89
|
-
<formly-field [field]="g"></formly-field>
|
90
|
-
}
|
91
|
-
<ng-container
|
92
|
-
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
93
|
-
>
|
94
|
-
{{ nzContent }}
|
95
|
-
</ng-container>
|
96
|
-
</nz-card>
|
72
|
+
template: `
|
73
|
+
<nz-card
|
74
|
+
[nzActions]="nzActions"
|
75
|
+
[formlyAttributes]="field"
|
76
|
+
[ngClass]="props['ngClass']"
|
77
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
78
|
+
[nzSize]="props['size']!"
|
79
|
+
[nzBorderless]="props['borderless']!!"
|
80
|
+
[nzCover]="nzCover"
|
81
|
+
[nzExtra]="nzExtra"
|
82
|
+
[nzHoverable]="props['hoverable']!!"
|
83
|
+
[nzLoading]="props['loading']!!"
|
84
|
+
[nzTitle]="nzTitle"
|
85
|
+
[nzBordered]="props['bordered']!!"
|
86
|
+
[nzType]="props['type'] ?? null"
|
87
|
+
>
|
88
|
+
@for (g of field.fieldGroup; track g.id) {
|
89
|
+
<formly-field [field]="g"></formly-field>
|
90
|
+
}
|
91
|
+
<ng-container
|
92
|
+
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
93
|
+
>
|
94
|
+
{{ nzContent }}
|
95
|
+
</ng-container>
|
96
|
+
</nz-card>
|
97
97
|
`,
|
98
98
|
changeDetection: ChangeDetectionStrategy.OnPush
|
99
99
|
}]
|
@@ -103,11 +103,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
103
103
|
|
104
104
|
const COMPONENT = FormlyFieldCard;
|
105
105
|
class FormlyNzCardModule {
|
106
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
107
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
107
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
|
108
108
|
NzCardModule,
|
109
109
|
NzOutletModule, i5.FormlyModule] }); }
|
110
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
110
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
|
111
111
|
NzCardModule,
|
112
112
|
NzOutletModule,
|
113
113
|
FormlyModule.forChild({
|
@@ -119,7 +119,7 @@ class FormlyNzCardModule {
|
|
119
119
|
]
|
120
120
|
})] }); }
|
121
121
|
}
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
123
123
|
type: NgModule,
|
124
124
|
args: [{
|
125
125
|
declarations: [COMPONENT],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\n\ninterface CardProps extends CardWrapperProps {\n /**\n * 内容\n */\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\n contentName?: string;\n}\n\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\n type: 'card' | Type<FormlyFieldCard>;\n}\n\n@Component({\n selector: 'formly-field-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n <ng-container\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\n >\n {{ nzContent }}\n </ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\n override defaultOptions = {\n props: {\n bordered: true,\n type: 'button'\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n get nzContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'content');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { FormlyFieldCard } from './card.type';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\nconst COMPONENT = FormlyFieldCard;\n\n@NgModule({\n declarations: [COMPONENT],\n imports: [\n CommonModule,\n NzCardModule,\n NzOutletModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'card',\n component: COMPONENT\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAoDM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAQxE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAPxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,QAAQ;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC;KAC9E;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;KACnE;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aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;AACzB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport {\r\n FormlyBoxTemplates,\r\n resolveTplName,\r\n resolveTplNameArray\r\n} from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\r\n\r\ninterface CardProps extends CardWrapperProps {\r\n /**\r\n * 内容\r\n */\r\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\r\n contentName?: string;\r\n}\r\n\r\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\r\n type: 'card' | Type<FormlyFieldCard>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"nzActions\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n [nzCover]=\"nzCover\"\r\n [nzExtra]=\"nzExtra\"\r\n [nzHoverable]=\"props['hoverable']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzTitle]=\"nzTitle\"\r\n [nzBordered]=\"props['bordered']!!\"\r\n [nzType]=\"props['type'] ?? null\"\r\n >\r\n @for (g of field.fieldGroup; track g.id) {\r\n <formly-field [field]=\"g\"></formly-field>\r\n }\r\n <ng-container\r\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\r\n >\r\n {{ nzContent }}\r\n </ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true,\r\n type: 'button'\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzTitle() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'title');\r\n }\r\n get nzCover() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\r\n }\r\n get nzExtra() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\r\n }\r\n get nzActions() {\r\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\r\n }\r\n get nzContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'content');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { FormlyFieldCard } from './card.type';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\nconst COMPONENT = FormlyFieldCard;\r\n\r\n@NgModule({\r\n declarations: [COMPONENT],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n NzOutletModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'card',\r\n component: COMPONENT\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCardModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAoDM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAQxE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAPxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,QAAQ;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC;KAC9E;AACD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;KACnE;8GA1BU,eAAe,EAAA,IAAA,EAAA,C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,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;AACzB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
@@ -55,77 +55,77 @@ class FormlyFieldCascader extends FieldType {
|
|
55
55
|
this.props['cascaderOptions'] = this.props.options;
|
56
56
|
}
|
57
57
|
}
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
60
|
-
#cascader
|
61
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
62
|
-
[formControl]="formControl"
|
63
|
-
[formlyAttributes]="field"
|
64
|
-
[ngClass]="props['ngClass']"
|
65
|
-
[nzAllowClear]="props['allowClear']!!"
|
66
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
67
|
-
[nzBackdrop]="props['backdrop']!!"
|
68
|
-
[nzChangeOn]="props['changeOn']"
|
69
|
-
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
70
|
-
[nzColumnClassName]="props['columnClassName']"
|
71
|
-
[nzExpandIcon]="nzExpandIcon!"
|
72
|
-
[nzExpandTrigger]="props['expandTrigger']!"
|
73
|
-
[nzLabelProperty]="props['labelProperty']"
|
74
|
-
[nzLabelRender]="nzLabelRender ?? null"
|
75
|
-
[nzLoadData]="props['loadData']"
|
76
|
-
[nzMenuClassName]="props['menuClassName']"
|
77
|
-
[nzMenuStyle]="props['menuStyle'] ?? null"
|
78
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
79
|
-
[nzOptionRender]="nzOptionRender ?? null"
|
80
|
-
[nzOptions]="props['cascaderOptions'] ?? null"
|
81
|
-
[nzShowArrow]="props['showArrow']!!"
|
82
|
-
[nzShowInput]="props['showInput']!!"
|
83
|
-
[nzShowSearch]="props['showSearch']!!"
|
84
|
-
[nzSize]="props['size']!"
|
85
|
-
[nzStatus]="props['status'] ?? ''"
|
86
|
-
[nzSuffixIcon]="nzSuffixIcon!"
|
87
|
-
[nzValueProperty]="props['valueProperty']!"
|
88
|
-
(nzClear)="props['onClear'] && props['onClear'](field)"
|
89
|
-
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
90
|
-
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCascader, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
|
60
|
+
#cascader
|
61
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
62
|
+
[formControl]="formControl"
|
63
|
+
[formlyAttributes]="field"
|
64
|
+
[ngClass]="props['ngClass']"
|
65
|
+
[nzAllowClear]="props['allowClear']!!"
|
66
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
67
|
+
[nzBackdrop]="props['backdrop']!!"
|
68
|
+
[nzChangeOn]="props['changeOn']"
|
69
|
+
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
70
|
+
[nzColumnClassName]="props['columnClassName']"
|
71
|
+
[nzExpandIcon]="nzExpandIcon!"
|
72
|
+
[nzExpandTrigger]="props['expandTrigger']!"
|
73
|
+
[nzLabelProperty]="props['labelProperty']"
|
74
|
+
[nzLabelRender]="nzLabelRender ?? null"
|
75
|
+
[nzLoadData]="props['loadData']"
|
76
|
+
[nzMenuClassName]="props['menuClassName']"
|
77
|
+
[nzMenuStyle]="props['menuStyle'] ?? null"
|
78
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
79
|
+
[nzOptionRender]="nzOptionRender ?? null"
|
80
|
+
[nzOptions]="props['cascaderOptions'] ?? null"
|
81
|
+
[nzShowArrow]="props['showArrow']!!"
|
82
|
+
[nzShowInput]="props['showInput']!!"
|
83
|
+
[nzShowSearch]="props['showSearch']!!"
|
84
|
+
[nzSize]="props['size']!"
|
85
|
+
[nzStatus]="props['status'] ?? ''"
|
86
|
+
[nzSuffixIcon]="nzSuffixIcon!"
|
87
|
+
[nzValueProperty]="props['valueProperty']!"
|
88
|
+
(nzClear)="props['onClear'] && props['onClear'](field)"
|
89
|
+
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
90
|
+
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
91
91
|
></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "component", type: i4.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
92
92
|
}
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCascader, decorators: [{
|
94
94
|
type: Component,
|
95
95
|
args: [{
|
96
96
|
selector: 'formly-field-cascader',
|
97
|
-
template: `<nz-cascader
|
98
|
-
#cascader
|
99
|
-
[nzPlaceHolder]="props.placeholder ?? ''"
|
100
|
-
[formControl]="formControl"
|
101
|
-
[formlyAttributes]="field"
|
102
|
-
[ngClass]="props['ngClass']"
|
103
|
-
[nzAllowClear]="props['allowClear']!!"
|
104
|
-
[nzAutoFocus]="props['autoFocus']!!"
|
105
|
-
[nzBackdrop]="props['backdrop']!!"
|
106
|
-
[nzChangeOn]="props['changeOn']"
|
107
|
-
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
108
|
-
[nzColumnClassName]="props['columnClassName']"
|
109
|
-
[nzExpandIcon]="nzExpandIcon!"
|
110
|
-
[nzExpandTrigger]="props['expandTrigger']!"
|
111
|
-
[nzLabelProperty]="props['labelProperty']"
|
112
|
-
[nzLabelRender]="nzLabelRender ?? null"
|
113
|
-
[nzLoadData]="props['loadData']"
|
114
|
-
[nzMenuClassName]="props['menuClassName']"
|
115
|
-
[nzMenuStyle]="props['menuStyle'] ?? null"
|
116
|
-
[nzNotFoundContent]="nzNotFoundContent"
|
117
|
-
[nzOptionRender]="nzOptionRender ?? null"
|
118
|
-
[nzOptions]="props['cascaderOptions'] ?? null"
|
119
|
-
[nzShowArrow]="props['showArrow']!!"
|
120
|
-
[nzShowInput]="props['showInput']!!"
|
121
|
-
[nzShowSearch]="props['showSearch']!!"
|
122
|
-
[nzSize]="props['size']!"
|
123
|
-
[nzStatus]="props['status'] ?? ''"
|
124
|
-
[nzSuffixIcon]="nzSuffixIcon!"
|
125
|
-
[nzValueProperty]="props['valueProperty']!"
|
126
|
-
(nzClear)="props['onClear'] && props['onClear'](field)"
|
127
|
-
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
128
|
-
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
97
|
+
template: `<nz-cascader
|
98
|
+
#cascader
|
99
|
+
[nzPlaceHolder]="props.placeholder ?? ''"
|
100
|
+
[formControl]="formControl"
|
101
|
+
[formlyAttributes]="field"
|
102
|
+
[ngClass]="props['ngClass']"
|
103
|
+
[nzAllowClear]="props['allowClear']!!"
|
104
|
+
[nzAutoFocus]="props['autoFocus']!!"
|
105
|
+
[nzBackdrop]="props['backdrop']!!"
|
106
|
+
[nzChangeOn]="props['changeOn']"
|
107
|
+
[nzChangeOnSelect]="props['changeOnSelect']!!"
|
108
|
+
[nzColumnClassName]="props['columnClassName']"
|
109
|
+
[nzExpandIcon]="nzExpandIcon!"
|
110
|
+
[nzExpandTrigger]="props['expandTrigger']!"
|
111
|
+
[nzLabelProperty]="props['labelProperty']"
|
112
|
+
[nzLabelRender]="nzLabelRender ?? null"
|
113
|
+
[nzLoadData]="props['loadData']"
|
114
|
+
[nzMenuClassName]="props['menuClassName']"
|
115
|
+
[nzMenuStyle]="props['menuStyle'] ?? null"
|
116
|
+
[nzNotFoundContent]="nzNotFoundContent"
|
117
|
+
[nzOptionRender]="nzOptionRender ?? null"
|
118
|
+
[nzOptions]="props['cascaderOptions'] ?? null"
|
119
|
+
[nzShowArrow]="props['showArrow']!!"
|
120
|
+
[nzShowInput]="props['showInput']!!"
|
121
|
+
[nzShowSearch]="props['showSearch']!!"
|
122
|
+
[nzSize]="props['size']!"
|
123
|
+
[nzStatus]="props['status'] ?? ''"
|
124
|
+
[nzSuffixIcon]="nzSuffixIcon!"
|
125
|
+
[nzValueProperty]="props['valueProperty']!"
|
126
|
+
(nzClear)="props['onClear'] && props['onClear'](field)"
|
127
|
+
(nzVisibleChange)="props['visibleChange'] && props['visibleChange'](field, $event)"
|
128
|
+
(nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
|
129
129
|
></nz-cascader>`,
|
130
130
|
changeDetection: ChangeDetectionStrategy.OnPush
|
131
131
|
}]
|
@@ -134,12 +134,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
134
134
|
}] }] });
|
135
135
|
|
136
136
|
class FormlyNzCascaderModule {
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
138
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
138
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
|
139
139
|
ReactiveFormsModule,
|
140
140
|
FormlyNzFormFieldModule,
|
141
141
|
NzCascaderModule, i5.FormlyModule] }); }
|
142
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
142
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
|
143
143
|
ReactiveFormsModule,
|
144
144
|
FormlyNzFormFieldModule,
|
145
145
|
NzCascaderModule,
|
@@ -153,7 +153,7 @@ class FormlyNzCascaderModule {
|
|
153
153
|
]
|
154
154
|
})] }); }
|
155
155
|
}
|
156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
|
157
157
|
type: NgModule,
|
158
158
|
args: [{
|
159
159
|
declarations: [FormlyFieldCascader],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\n Component,\n TemplateRef,\n Optional,\n Type,\n ChangeDetectionStrategy,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type {\n NzCascaderOption,\n NzShowSearchOptions,\n NzCascaderExpandTrigger,\n NzCascaderSize\n} from 'ng-zorro-antd/cascader';\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\n\ninterface CascaderProps extends FormlyFieldProps {\n /**\n * 是否支持清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否自动聚焦,当存在输入框时\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\n */\n changeOn?: (option: NzSafeAny, index: number) => boolean;\n\n /**\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\n * @default false\n */\n changeOnSelect?: boolean;\n\n /**\n * 自定义浮层列类名\n */\n columnClassName?: string;\n\n /**\n * 自定义次级菜单展开图标\n */\n expandIcon?: string | TemplateRef<void>;\n expandIconName?: string;\n\n /**\n * 次级菜单的展开方式\n * @default 'click'\n */\n expandTrigger?: NzCascaderExpandTrigger;\n\n /**\n * 选项的显示值的属性名\n * @default 'label'\n */\n labelProperty: string;\n\n /**\n * 选择后展示的渲染模板\n */\n labelRender?: TemplateRef<NzSafeAny> | null;\n labelRenderName?: string;\n\n /**\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\n */\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\n\n /**\n * 自定义浮层类名\n */\n menuClassName?: string;\n\n /**\n * 自定义浮层样式\n */\n menuStyle?: NgStyleInterface | null;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string | TemplateRef<void>;\n notFoundContentName?: string;\n\n /**\n * 选项的渲染模板\n */\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\n optionRenderName?: string;\n\n /**\n * 是否显示箭头\n * @default true\n */\n showArrow?: boolean;\n\n /**\n * 显示输入框\n * @default true\n */\n showInput?: boolean;\n\n /**\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\n * @default false\n */\n showSearch?: boolean | NzShowSearchOptions;\n\n /**\n * 输入框大小\n * @default default\n */\n size?: NzCascaderSize;\n\n /**\n * 设置校验状态\n */\n status?: NzStatus;\n\n /**\n * 自定义的选择框后缀图标\n */\n suffixIcon?: string | TemplateRef<void>;\n suffixIconName?: string;\n\n /**\n * 选项的实际值的属性名\n * @default 'value'\n */\n valueProperty?: string;\n\n /**\n * 可选项数据源\n */\n cascaderOptions?: NzCascaderOption[] | null;\n\n /**\n * 清除值时触发\n */\n onClear?: FormlyAttributeEvent;\n /**\n * 菜单浮层的显示/隐藏\n */\n visibleChange?: FormlyAttributeEvent<boolean>;\n\n /**\n * 值发生变化时触发\n */\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\n}\n\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\n type: 'cascader' | Type<FormlyFieldCascader>;\n}\n\n@Component({\n selector: 'formly-field-cascader',\n template: `<nz-cascader\n #cascader\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzChangeOn]=\"props['changeOn']\"\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\n [nzColumnClassName]=\"props['columnClassName']\"\n [nzExpandIcon]=\"nzExpandIcon!\"\n [nzExpandTrigger]=\"props['expandTrigger']!\"\n [nzLabelProperty]=\"props['labelProperty']\"\n [nzLabelRender]=\"nzLabelRender ?? null\"\n [nzLoadData]=\"props['loadData']\"\n [nzMenuClassName]=\"props['menuClassName']\"\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzOptionRender]=\"nzOptionRender ?? null\"\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzShowInput]=\"props['showInput']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzSuffixIcon]=\"nzSuffixIcon!\"\n [nzValueProperty]=\"props['valueProperty']!\"\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\n ></nz-cascader>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCascader\n extends FieldType<FieldTypeConfig<CascaderProps>>\n implements OnInit\n{\n override defaultOptions = {\n props: {\n placeholder: '请选择',\n allowClear: true,\n backdrop: false,\n changeOnSelect: false,\n expandTrigger: 'click' as const,\n labelProperty: 'label',\n showArrow: true,\n showInput: true,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n valueProperty: 'value',\n cascaderOptions: []\n }\n };\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzNotFoundContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\n }\n\n get nzExpandIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\n }\n\n get nzLabelRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\n }\n\n get nzOptionRender() {\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\n }\n\n get nzSuffixIcon() {\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\n }\n\n ngOnInit(): void {\n const options = this.props['cascaderOptions'];\n if (!options || options.length === 0) {\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\n }\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';\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\nimport { FormlyFieldCascader } from './cascader.type';\n\n@NgModule({\n declarations: [FormlyFieldCascader],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzCascaderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'cascader',\n component: FormlyFieldCascader,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzCascaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;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-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\r\n Component,\r\n TemplateRef,\r\n Optional,\r\n Type,\r\n ChangeDetectionStrategy,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type {\r\n NzCascaderOption,\r\n NzShowSearchOptions,\r\n NzCascaderExpandTrigger,\r\n NzCascaderSize\r\n} from 'ng-zorro-antd/cascader';\r\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\r\n\r\ninterface CascaderProps extends FormlyFieldProps {\r\n /**\r\n * 是否支持清除\r\n * @default true\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否自动聚焦,当存在输入框时\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\r\n */\r\n changeOn?: (option: NzSafeAny, index: number) => boolean;\r\n\r\n /**\r\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\r\n * @default false\r\n */\r\n changeOnSelect?: boolean;\r\n\r\n /**\r\n * 自定义浮层列类名\r\n */\r\n columnClassName?: string;\r\n\r\n /**\r\n * 自定义次级菜单展开图标\r\n */\r\n expandIcon?: string | TemplateRef<void>;\r\n expandIconName?: string;\r\n\r\n /**\r\n * 次级菜单的展开方式\r\n * @default 'click'\r\n */\r\n expandTrigger?: NzCascaderExpandTrigger;\r\n\r\n /**\r\n * 选项的显示值的属性名\r\n * @default 'label'\r\n */\r\n labelProperty: string;\r\n\r\n /**\r\n * 选择后展示的渲染模板\r\n */\r\n labelRender?: TemplateRef<NzSafeAny> | null;\r\n labelRenderName?: string;\r\n\r\n /**\r\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\r\n */\r\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\r\n\r\n /**\r\n * 自定义浮层类名\r\n */\r\n menuClassName?: string;\r\n\r\n /**\r\n * 自定义浮层样式\r\n */\r\n menuStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string | TemplateRef<void>;\r\n notFoundContentName?: string;\r\n\r\n /**\r\n * 选项的渲染模板\r\n */\r\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\r\n optionRenderName?: string;\r\n\r\n /**\r\n * 是否显示箭头\r\n * @default true\r\n */\r\n showArrow?: boolean;\r\n\r\n /**\r\n * 显示输入框\r\n * @default true\r\n */\r\n showInput?: boolean;\r\n\r\n /**\r\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\r\n * @default false\r\n */\r\n showSearch?: boolean | NzShowSearchOptions;\r\n\r\n /**\r\n * 输入框大小\r\n * @default default\r\n */\r\n size?: NzCascaderSize;\r\n\r\n /**\r\n * 设置校验状态\r\n */\r\n status?: NzStatus;\r\n\r\n /**\r\n * 自定义的选择框后缀图标\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n suffixIconName?: string;\r\n\r\n /**\r\n * 选项的实际值的属性名\r\n * @default 'value'\r\n */\r\n valueProperty?: string;\r\n\r\n /**\r\n * 可选项数据源\r\n */\r\n cascaderOptions?: NzCascaderOption[] | null;\r\n\r\n /**\r\n * 清除值时触发\r\n */\r\n onClear?: FormlyAttributeEvent;\r\n /**\r\n * 菜单浮层的显示/隐藏\r\n */\r\n visibleChange?: FormlyAttributeEvent<boolean>;\r\n\r\n /**\r\n * 值发生变化时触发\r\n */\r\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\r\n}\r\n\r\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\r\n type: 'cascader' | Type<FormlyFieldCascader>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-cascader',\r\n template: `<nz-cascader\r\n #cascader\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzChangeOn]=\"props['changeOn']\"\r\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\r\n [nzColumnClassName]=\"props['columnClassName']\"\r\n [nzExpandIcon]=\"nzExpandIcon!\"\r\n [nzExpandTrigger]=\"props['expandTrigger']!\"\r\n [nzLabelProperty]=\"props['labelProperty']\"\r\n [nzLabelRender]=\"nzLabelRender ?? null\"\r\n [nzLoadData]=\"props['loadData']\"\r\n [nzMenuClassName]=\"props['menuClassName']\"\r\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzOptionRender]=\"nzOptionRender ?? null\"\r\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzShowInput]=\"props['showInput']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzSuffixIcon]=\"nzSuffixIcon!\"\r\n [nzValueProperty]=\"props['valueProperty']!\"\r\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\r\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\r\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\r\n ></nz-cascader>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCascader\r\n extends FieldType<FieldTypeConfig<CascaderProps>>\r\n implements OnInit\r\n{\r\n override defaultOptions = {\r\n props: {\r\n placeholder: '请选择',\r\n allowClear: true,\r\n backdrop: false,\r\n changeOnSelect: false,\r\n expandTrigger: 'click' as const,\r\n labelProperty: 'label',\r\n showArrow: true,\r\n showInput: true,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n valueProperty: 'value',\r\n cascaderOptions: []\r\n }\r\n };\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzNotFoundContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\r\n }\r\n\r\n get nzExpandIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\r\n }\r\n\r\n get nzLabelRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\r\n }\r\n\r\n get nzOptionRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\r\n }\r\n\r\n get nzSuffixIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\r\n }\r\n\r\n ngOnInit(): void {\r\n const options = this.props['cascaderOptions'];\r\n if (!options || options.length === 0) {\r\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\r\nimport { FormlyFieldCascader } from './cascader.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCascader],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzCascaderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'cascader',\r\n component: FormlyFieldCascader,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCascaderModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,eAAe,EAAE,EAAE;AACpB,aAAA;SACF,CAAC;KAGD;AAED,IAAA,IAAI,iBAAiB,GAAA;AACnB,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;KAC3E;AAED,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;KACt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AY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
|
@@ -19,63 +19,63 @@ class FormlyFieldCheckbox extends FieldType {
|
|
19
19
|
}
|
20
20
|
};
|
21
21
|
}
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.
|
24
|
-
@if (props.type !== 'group') {
|
25
|
-
<label
|
26
|
-
[formControl]="formControl"
|
27
|
-
[formlyAttributes]="field"
|
28
|
-
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
29
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
30
|
-
nz-checkbox
|
31
|
-
>
|
32
|
-
{{ props.label }}
|
33
|
-
</label>
|
34
|
-
} @else {
|
35
|
-
<nz-checkbox-group
|
36
|
-
[formlyAttributes]="field"
|
37
|
-
[(ngModel)]="props.options"
|
38
|
-
[formControl]="formControl"
|
39
|
-
(ngModelChange)="props['modelChange']?.(field, $event)"
|
40
|
-
></nz-checkbox-group>
|
41
|
-
}
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
24
|
+
@if (props.type !== 'group') {
|
25
|
+
<label
|
26
|
+
[formControl]="formControl"
|
27
|
+
[formlyAttributes]="field"
|
28
|
+
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
29
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
30
|
+
nz-checkbox
|
31
|
+
>
|
32
|
+
{{ props.label }}
|
33
|
+
</label>
|
34
|
+
} @else {
|
35
|
+
<nz-checkbox-group
|
36
|
+
[formlyAttributes]="field"
|
37
|
+
[(ngModel)]="props.options"
|
38
|
+
[formControl]="formControl"
|
39
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
40
|
+
></nz-checkbox-group>
|
41
|
+
}
|
42
42
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i2.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
43
43
|
}
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
45
45
|
type: Component,
|
46
46
|
args: [{
|
47
47
|
selector: 'formly-field-checkbox',
|
48
|
-
template: `
|
49
|
-
@if (props.type !== 'group') {
|
50
|
-
<label
|
51
|
-
[formControl]="formControl"
|
52
|
-
[formlyAttributes]="field"
|
53
|
-
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
54
|
-
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
55
|
-
nz-checkbox
|
56
|
-
>
|
57
|
-
{{ props.label }}
|
58
|
-
</label>
|
59
|
-
} @else {
|
60
|
-
<nz-checkbox-group
|
61
|
-
[formlyAttributes]="field"
|
62
|
-
[(ngModel)]="props.options"
|
63
|
-
[formControl]="formControl"
|
64
|
-
(ngModelChange)="props['modelChange']?.(field, $event)"
|
65
|
-
></nz-checkbox-group>
|
66
|
-
}
|
48
|
+
template: `
|
49
|
+
@if (props.type !== 'group') {
|
50
|
+
<label
|
51
|
+
[formControl]="formControl"
|
52
|
+
[formlyAttributes]="field"
|
53
|
+
[nzIndeterminate]="props['indeterminate'] && formControl.value == null"
|
54
|
+
(ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
|
55
|
+
nz-checkbox
|
56
|
+
>
|
57
|
+
{{ props.label }}
|
58
|
+
</label>
|
59
|
+
} @else {
|
60
|
+
<nz-checkbox-group
|
61
|
+
[formlyAttributes]="field"
|
62
|
+
[(ngModel)]="props.options"
|
63
|
+
[formControl]="formControl"
|
64
|
+
(ngModelChange)="props['modelChange']?.(field, $event)"
|
65
|
+
></nz-checkbox-group>
|
66
|
+
}
|
67
67
|
`,
|
68
68
|
changeDetection: ChangeDetectionStrategy.OnPush
|
69
69
|
}]
|
70
70
|
}] });
|
71
71
|
|
72
72
|
class FormlyNzCheckboxModule {
|
73
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
74
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
74
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
75
75
|
ReactiveFormsModule,
|
76
76
|
FormlyNzFormFieldModule,
|
77
77
|
NzCheckboxModule, i3.FormlyModule] }); }
|
78
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
78
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
|
79
79
|
ReactiveFormsModule,
|
80
80
|
FormlyNzFormFieldModule,
|
81
81
|
NzCheckboxModule,
|
@@ -93,7 +93,7 @@ class FormlyNzCheckboxModule {
|
|
93
93
|
]
|
94
94
|
})] }); }
|
95
95
|
}
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
|
97
97
|
type: NgModule,
|
98
98
|
args: [{
|
99
99
|
declarations: [FormlyFieldCheckbox],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {\n type?: 'group' | 'single';\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @default false\n */\n indeterminate?: boolean;\n\n /**\n * 数值改变时回调\n */\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\n}\n\nexport interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-checkbox',\n template: `\n @if (props.type !== 'group') {\n <label\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n nz-checkbox\n >\n {{ props.label }}\n </label>\n } @else {\n <nz-checkbox-group\n [formlyAttributes]=\"field\"\n [(ngModel)]=\"props.options\"\n [formControl]=\"formControl\"\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\n ></nz-checkbox-group>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n indeterminate: false,\n hideLabel: true\n }\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 { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzCheckboxModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n {\n name: 'boolean',\n extends: 'chec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OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YArB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,UAAU;AACpB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAxBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-checkbox.mjs","sources":["../../../../packages/formlyantd/checkbox/src/checkbox.type.ts","../../../../packages/formlyantd/checkbox/src/checkbox.module.ts","../../../../packages/formlyantd/checkbox/src/ngx-formly-zorro-antd-checkbox.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\ninterface CheckboxProps extends FormlyFieldProps {\r\n type?: 'group' | 'single';\r\n\r\n /**\r\n * 自动获取焦点\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 设置 indeterminate 状态,只负责样式控制\r\n * @default false\r\n */\r\n indeterminate?: boolean;\r\n\r\n /**\r\n * 数值改变时回调\r\n */\r\n modelChange?: FormlyAttributeEvent<boolean | null | undefined>;\r\n}\r\n\r\nexport interface FormlyCheckboxFieldConfig extends NzFormlyFieldConfig<CheckboxProps> {\r\n type: 'checkbox' | 'boolean' | Type<FormlyFieldCheckbox>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-checkbox',\r\n template: `\r\n @if (props.type !== 'group') {\r\n <label\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzIndeterminate]=\"props['indeterminate'] && formControl.value == null\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n nz-checkbox\r\n >\r\n {{ props.label }}\r\n </label>\r\n } @else {\r\n <nz-checkbox-group\r\n [formlyAttributes]=\"field\"\r\n [(ngModel)]=\"props.options\"\r\n [formControl]=\"formControl\"\r\n (ngModelChange)=\"props['modelChange']?.(field, $event)\"\r\n ></nz-checkbox-group>\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\r\n override defaultOptions = {\r\n props: {\r\n indeterminate: false,\r\n hideLabel: true\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\r\n\r\nimport { FormlyFieldCheckbox } from './checkbox.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCheckbox],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzCheckboxModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'checkbox',\r\n component: FormlyFieldCheckbox,\r\n wrappers: ['form-field']\r\n },\r\n {\r\n name: 'boolean',\r\n extends: 'checkbox'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCheckboxModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAsDM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAxBlF,IAAA,WAAA,GAAA;;AAyBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAtBpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WA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CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
@@ -85,10 +85,10 @@ class FormlyBoxTemplates {
|
|
85
85
|
});
|
86
86
|
return;
|
87
87
|
}
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
89
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyBoxTemplates, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
89
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.9", type: FormlyBoxTemplates, isStandalone: true, selector: "[formly-box]", inputs: { templateList: ["formly-box", "templateList"] }, outputs: { templateChange: "templateChange" }, queries: [{ propertyName: "namedTemplate", predicate: NamedTemplate }], exportAs: ["FormlyBox"], usesOnChanges: true, ngImport: i0 }); }
|
90
90
|
}
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyBoxTemplates, decorators: [{
|
92
92
|
type: Directive,
|
93
93
|
args: [{
|
94
94
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
@@ -108,11 +108,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
108
108
|
|
109
109
|
const COMPONENT = [FormlyBoxTemplates, NamedTemplate];
|
110
110
|
class FormlyCommonModule {
|
111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
112
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
113
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
112
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule, FormlyBoxTemplates, NamedTemplate], exports: [FormlyBoxTemplates, NamedTemplate] }); }
|
113
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule] }); }
|
114
114
|
}
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, decorators: [{
|
116
116
|
type: NgModule,
|
117
117
|
args: [{
|
118
118
|
imports: [CommonModule, ...COMPONENT],
|