ngx-formly-zorro-antd 17.0.9 → 17.0.11
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 +1 -1
- package/esm2022/button/button.type.mjs +123 -123
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/button-group/button-group.module.mjs +1 -1
- package/esm2022/button-group/button-group.type.mjs +67 -67
- package/esm2022/button-group/public_api.mjs +1 -1
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/card.type.mjs +51 -51
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
- package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
- package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
- package/esm2022/card-wrapper/public_api.mjs +1 -1
- package/esm2022/cascader/cascader.module.mjs +1 -1
- package/esm2022/cascader/cascader.type.mjs +65 -65
- package/esm2022/cascader/public_api.mjs +1 -1
- package/esm2022/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/checkbox/checkbox.type.mjs +39 -39
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/common/common.module.mjs +1 -1
- package/esm2022/common/formly-box-templates.directive.mjs +1 -1
- package/esm2022/common/formly-utils.mjs +1 -1
- package/esm2022/common/interface.mjs +1 -1
- package/esm2022/common/public_api.mjs +1 -1
- package/esm2022/datepicker/datepicker.module.mjs +1 -1
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +149 -149
- package/esm2022/datepicker/public_api.mjs +1 -1
- package/esm2022/extension/public_api.mjs +1 -1
- package/esm2022/extension/value-changes-extension.mjs +1 -1
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +125 -125
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/grid/grid.module.mjs +1 -1
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +59 -59
- package/esm2022/grid/public_api.mjs +1 -1
- package/esm2022/index.mjs +1 -1
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/input.props.mjs +1 -1
- package/esm2022/input/input.type.mjs +297 -286
- package/esm2022/input/public_api.mjs +1 -1
- package/esm2022/input-group/input-group.module.mjs +1 -1
- package/esm2022/input-group/input-group.props.mjs +1 -1
- package/esm2022/input-group/input-group.type.mjs +39 -39
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +124 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -111
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +143 -143
- package/esm2022/upload/upload.module.mjs +1 -1
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +83 -83
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +124 -124
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +297 -286
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +123 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -110
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/input/input.type.d.ts +6 -1
- package/input-group/input-group.props.d.ts +4 -0
- package/package.json +7 -7
- package/select/select.type.d.ts +1 -0
- package/autocomplete/package.json +0 -3
- package/button/package.json +0 -3
- package/button-group/package.json +0 -3
- package/card/package.json +0 -3
- package/card-wrapper/package.json +0 -3
- package/cascader/package.json +0 -3
- package/checkbox/package.json +0 -3
- package/common/package.json +0 -3
- package/datepicker/package.json +0 -3
- package/extension/package.json +0 -3
- package/form-field/package.json +0 -3
- package/grid/package.json +0 -3
- package/input/package.json +0 -3
- package/input-group/package.json +0 -3
- package/input-number/package.json +0 -3
- package/radio/package.json +0 -3
- package/rate/package.json +0 -3
- package/ref-template/package.json +0 -3
- package/select/package.json +0 -3
- package/slider/package.json +0 -3
- package/space/package.json +0 -3
- package/switch/package.json +0 -3
- package/tabs/package.json +0 -3
- package/textarea/package.json +0 -3
- package/timepicker/package.json +0 -3
- package/transfer/package.json +0 -3
- package/tree-select/package.json +0 -3
- package/upload/package.json +0 -3
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnByb3BzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC91cGxvYWQvc3JjL3VwbG9hZC5wcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHR5cGUgeyBGb3JtbHlBdHRyaWJ1dGVFdmVudCB9IGZyb20gJ25neC1mb3JtbHktem9ycm8tYW50ZC9jb21tb24nO1xyXG5pbXBvcnQgeyBGb3JtbHlGaWVsZFByb3BzIH0gZnJvbSAnbmd4LWZvcm1seS16b3Jyby1hbnRkL2Zvcm0tZmllbGQnO1xyXG5pbXBvcnQgeyBPYnNlcnZhYmxlLCBTdWJzY3JpcHRpb24gfSBmcm9tICdyeGpzJztcclxuaW1wb3J0IHR5cGUgeyBUaGVtZVR5cGUgfSBmcm9tICdAYW50LWRlc2lnbi9pY29ucy1hbmd1bGFyJztcclxuaW1wb3J0IHR5cGUge1xyXG4gIE56VXBsb2FkQ2hhbmdlUGFyYW0sXHJcbiAgTnpVcGxvYWRGaWxlLFxyXG4gIE56VXBsb2FkVHJhbnNmb3JtRmlsZVR5cGUsXHJcbiAgVXBsb2FkRmlsdGVyLFxyXG4gIE56SWNvblJlbmRlclRlbXBsYXRlLFxyXG4gIE56VXBsb2FkTGlzdFR5cGUsXHJcbiAgTnpVcGxvYWRUeXBlLFxyXG4gIE56VXBsb2FkWEhSQXJnc1xyXG59IGZyb20gJ25nLXpvcnJvLWFudGQvdXBsb2FkJztcclxuXHJcbmltcG9ydCB0eXBlIHsgTnpTYWZlQW55IH0gZnJvbSAn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NvbmZvbnQ/OiBzdHJpbmc7XHJcbn1cclxuIl19
|
@@ -40,94 +40,94 @@ export class FormlyFieldUpload extends FieldType {
|
|
40
40
|
return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
|
41
41
|
}
|
42
42
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
|
44
|
-
#upload
|
45
|
-
[formControl]="formControl"
|
46
|
-
[formlyAttributes]="field"
|
47
|
-
[nzAccept]="props['accept']"
|
48
|
-
[nzAction]="props['action']"
|
49
|
-
[nzDirectory]="props['directory']!!"
|
50
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
51
|
-
[nzCustomRequest]="props['customRequest']"
|
52
|
-
[nzData]="props['data']"
|
53
|
-
[nzDisabled]="props['disabled']!!"
|
54
|
-
[(nzFileList)]="props['fileList']"
|
55
|
-
[nzLimit]="props['limit']"
|
56
|
-
[nzSize]="props['size']"
|
57
|
-
[nzFileType]="props['fileType']"
|
58
|
-
[nzFilter]="props['filter']!"
|
59
|
-
[nzHeaders]="props['headers']"
|
60
|
-
[nzListType]="props['listType']!"
|
61
|
-
[nzMultiple]="props['multiple']!!"
|
62
|
-
[nzName]="props['name'] || ''"
|
63
|
-
[nzShowUploadList]="props['showUploadList']"
|
64
|
-
[nzShowButton]="props['showButton']!!"
|
65
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
66
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
67
|
-
[nzPreview]="props['preview']"
|
68
|
-
[nzPreviewFile]="props['previewFile']"
|
69
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
70
|
-
[nzRemove]="props['remove']"
|
71
|
-
(nzChange)="props.change && props.change(field, $event)"
|
72
|
-
[nzDownload]="props['download']"
|
73
|
-
[nzTransformFile]="props['transformFile']"
|
74
|
-
[nzIconRender]="nzIconRender ?? null"
|
75
|
-
[nzFileListRender]="nzFileListRender ?? null"
|
76
|
-
[resultMap]="props['resultMap']"
|
77
|
-
[nzeHint]="props['hint']"
|
78
|
-
[nzeText]="props['text']"
|
79
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
80
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
81
|
-
[className]="props['className']"
|
82
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
83
|
-
>
|
43
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
|
44
|
+
#upload
|
45
|
+
[formControl]="formControl"
|
46
|
+
[formlyAttributes]="field"
|
47
|
+
[nzAccept]="props['accept']"
|
48
|
+
[nzAction]="props['action']"
|
49
|
+
[nzDirectory]="props['directory']!!"
|
50
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
51
|
+
[nzCustomRequest]="props['customRequest']"
|
52
|
+
[nzData]="props['data']"
|
53
|
+
[nzDisabled]="props['disabled']!!"
|
54
|
+
[(nzFileList)]="props['fileList']"
|
55
|
+
[nzLimit]="props['limit']"
|
56
|
+
[nzSize]="props['size']"
|
57
|
+
[nzFileType]="props['fileType']"
|
58
|
+
[nzFilter]="props['filter']!"
|
59
|
+
[nzHeaders]="props['headers']"
|
60
|
+
[nzListType]="props['listType']!"
|
61
|
+
[nzMultiple]="props['multiple']!!"
|
62
|
+
[nzName]="props['name'] || ''"
|
63
|
+
[nzShowUploadList]="props['showUploadList']"
|
64
|
+
[nzShowButton]="props['showButton']!!"
|
65
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
66
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
67
|
+
[nzPreview]="props['preview']"
|
68
|
+
[nzPreviewFile]="props['previewFile']"
|
69
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
70
|
+
[nzRemove]="props['remove']"
|
71
|
+
(nzChange)="props.change && props.change(field, $event)"
|
72
|
+
[nzDownload]="props['download']"
|
73
|
+
[nzTransformFile]="props['transformFile']"
|
74
|
+
[nzIconRender]="nzIconRender ?? null"
|
75
|
+
[nzFileListRender]="nzFileListRender ?? null"
|
76
|
+
[resultMap]="props['resultMap']"
|
77
|
+
[nzeHint]="props['hint']"
|
78
|
+
[nzeText]="props['text']"
|
79
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
80
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
81
|
+
[className]="props['className']"
|
82
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
83
|
+
>
|
84
84
|
</formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i4.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
85
85
|
}
|
86
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
87
87
|
type: Component,
|
88
88
|
args: [{
|
89
89
|
selector: 'formly-field-upload',
|
90
|
-
template: `<formly-nz-upload
|
91
|
-
#upload
|
92
|
-
[formControl]="formControl"
|
93
|
-
[formlyAttributes]="field"
|
94
|
-
[nzAccept]="props['accept']"
|
95
|
-
[nzAction]="props['action']"
|
96
|
-
[nzDirectory]="props['directory']!!"
|
97
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
98
|
-
[nzCustomRequest]="props['customRequest']"
|
99
|
-
[nzData]="props['data']"
|
100
|
-
[nzDisabled]="props['disabled']!!"
|
101
|
-
[(nzFileList)]="props['fileList']"
|
102
|
-
[nzLimit]="props['limit']"
|
103
|
-
[nzSize]="props['size']"
|
104
|
-
[nzFileType]="props['fileType']"
|
105
|
-
[nzFilter]="props['filter']!"
|
106
|
-
[nzHeaders]="props['headers']"
|
107
|
-
[nzListType]="props['listType']!"
|
108
|
-
[nzMultiple]="props['multiple']!!"
|
109
|
-
[nzName]="props['name'] || ''"
|
110
|
-
[nzShowUploadList]="props['showUploadList']"
|
111
|
-
[nzShowButton]="props['showButton']!!"
|
112
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
113
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
114
|
-
[nzPreview]="props['preview']"
|
115
|
-
[nzPreviewFile]="props['previewFile']"
|
116
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
117
|
-
[nzRemove]="props['remove']"
|
118
|
-
(nzChange)="props.change && props.change(field, $event)"
|
119
|
-
[nzDownload]="props['download']"
|
120
|
-
[nzTransformFile]="props['transformFile']"
|
121
|
-
[nzIconRender]="nzIconRender ?? null"
|
122
|
-
[nzFileListRender]="nzFileListRender ?? null"
|
123
|
-
[resultMap]="props['resultMap']"
|
124
|
-
[nzeHint]="props['hint']"
|
125
|
-
[nzeText]="props['text']"
|
126
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
127
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
128
|
-
[className]="props['className']"
|
129
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
130
|
-
>
|
90
|
+
template: `<formly-nz-upload
|
91
|
+
#upload
|
92
|
+
[formControl]="formControl"
|
93
|
+
[formlyAttributes]="field"
|
94
|
+
[nzAccept]="props['accept']"
|
95
|
+
[nzAction]="props['action']"
|
96
|
+
[nzDirectory]="props['directory']!!"
|
97
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
98
|
+
[nzCustomRequest]="props['customRequest']"
|
99
|
+
[nzData]="props['data']"
|
100
|
+
[nzDisabled]="props['disabled']!!"
|
101
|
+
[(nzFileList)]="props['fileList']"
|
102
|
+
[nzLimit]="props['limit']"
|
103
|
+
[nzSize]="props['size']"
|
104
|
+
[nzFileType]="props['fileType']"
|
105
|
+
[nzFilter]="props['filter']!"
|
106
|
+
[nzHeaders]="props['headers']"
|
107
|
+
[nzListType]="props['listType']!"
|
108
|
+
[nzMultiple]="props['multiple']!!"
|
109
|
+
[nzName]="props['name'] || ''"
|
110
|
+
[nzShowUploadList]="props['showUploadList']"
|
111
|
+
[nzShowButton]="props['showButton']!!"
|
112
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
113
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
114
|
+
[nzPreview]="props['preview']"
|
115
|
+
[nzPreviewFile]="props['previewFile']"
|
116
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
117
|
+
[nzRemove]="props['remove']"
|
118
|
+
(nzChange)="props.change && props.change(field, $event)"
|
119
|
+
[nzDownload]="props['download']"
|
120
|
+
[nzTransformFile]="props['transformFile']"
|
121
|
+
[nzIconRender]="nzIconRender ?? null"
|
122
|
+
[nzFileListRender]="nzFileListRender ?? null"
|
123
|
+
[resultMap]="props['resultMap']"
|
124
|
+
[nzeHint]="props['hint']"
|
125
|
+
[nzeText]="props['text']"
|
126
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
127
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
128
|
+
[className]="props['className']"
|
129
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
130
|
+
>
|
131
131
|
</formly-nz-upload>`,
|
132
132
|
changeDetection: ChangeDetectionStrategy.OnPush
|
133
133
|
}]
|
@@ -137,4 +137,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
|
|
137
137
|
type: ViewChild,
|
138
138
|
args: ['upload', { static: true }]
|
139
139
|
}] } });
|
140
|
-
//# sourceMappingURL=data:application/json;base64,
|
140
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFFdkIsU0FBUyxFQUVULFFBQVEsRUFDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBRTlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXZELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxjQUFjLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7Ozs7O0FBb0RsRixNQUFNLE9BQU8saUJBQWtCLFNBQVEsU0FBdUM7SUFtQjVFLFlBQStCLGNBQWtDO1FBQy9ELEtBQUssRUFBRSxDQUFDO1FBRHFCLG1CQUFjLEdBQWQsY0FBYyxDQUFvQjtRQWxCeEQsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsUUFBUSxFQUFFLE1BQWU7Z0JBQ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7XHJcblxyXG4gIGNvbnN0cnVjdG9yKEBPcHRpb25hbCgpIHB1YmxpYyBmaWVsZFRlbXBsYXRlczogRm9ybWx5Qm94VGVtcGxhdGVzKSB7XHJcbiAgICBzdXBlcigpO1xyXG4gIH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICBjb25zdCB0eXBlID0gdGhpcy5wcm9wcy50eXBlO1xyXG4gICAgaWYgKHR5cGUpIHtcclxuICAgICAgdGhpcy51cGxvYWQubnpUeXBlID0gdHlwZTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIGdldCBuekljb25SZW5kZXIoKSB7XHJcbiAgICByZXR1cm4gcmVzb2x2ZVRwbE5hbWUodGhpcy5wcm9wcywgdGhpcy5maWVsZFRlbXBsYXRlcywgJ2ljb25SZW5kZXInKTtcclxuICB9XHJcblxyXG4gIGdldCBuekZpbGVMaXN0UmVuZGVyKCkge1xyXG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -31,78 +31,78 @@ class FormlyFieldButtonGroup extends FieldType {
|
|
31
31
|
this.subjectDestroy();
|
32
32
|
}
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
35
|
-
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
36
|
-
@for (item of props.buttons; track item.id) {
|
37
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
38
|
-
}
|
39
|
-
</nz-button-group>
|
40
|
-
|
41
|
-
<ng-template #btnTemplate let-item>
|
42
|
-
<button
|
43
|
-
nz-button
|
44
|
-
[formlyAttributes]="item"
|
45
|
-
[type]="item.type || 'button'"
|
46
|
-
[attr.title]="item.props['title']"
|
47
|
-
[disabled]="item.props.disabled!!"
|
48
|
-
[nzBlock]="item.props.block!!"
|
49
|
-
[nzDanger]="item.props.danger!!"
|
50
|
-
[nzGhost]="item.props.ghost!!"
|
51
|
-
[nzSize]="item.props.size || 'default'"
|
52
|
-
[nzLoading]="item.props.loading!!"
|
53
|
-
[nzShape]="item.props.shape ?? null"
|
54
|
-
[nzType]="item.props.nzType ?? null"
|
55
|
-
>
|
56
|
-
@if (item.props.beforeIcon) {
|
57
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
58
|
-
}
|
59
|
-
@if (item.props.text) {
|
60
|
-
<span>{{ item.props.text }}</span>
|
61
|
-
}
|
62
|
-
@if (item.props.afterIcon) {
|
63
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
64
|
-
}
|
65
|
-
</button>
|
66
|
-
</ng-template>
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
35
|
+
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
36
|
+
@for (item of props.buttons; track item.id) {
|
37
|
+
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
38
|
+
}
|
39
|
+
</nz-button-group>
|
40
|
+
|
41
|
+
<ng-template #btnTemplate let-item>
|
42
|
+
<button
|
43
|
+
nz-button
|
44
|
+
[formlyAttributes]="item"
|
45
|
+
[type]="item.type || 'button'"
|
46
|
+
[attr.title]="item.props['title']"
|
47
|
+
[disabled]="item.props.disabled!!"
|
48
|
+
[nzBlock]="item.props.block!!"
|
49
|
+
[nzDanger]="item.props.danger!!"
|
50
|
+
[nzGhost]="item.props.ghost!!"
|
51
|
+
[nzSize]="item.props.size || 'default'"
|
52
|
+
[nzLoading]="item.props.loading!!"
|
53
|
+
[nzShape]="item.props.shape ?? null"
|
54
|
+
[nzType]="item.props.nzType ?? null"
|
55
|
+
>
|
56
|
+
@if (item.props.beforeIcon) {
|
57
|
+
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
58
|
+
}
|
59
|
+
@if (item.props.text) {
|
60
|
+
<span>{{ item.props.text }}</span>
|
61
|
+
}
|
62
|
+
@if (item.props.afterIcon) {
|
63
|
+
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
64
|
+
}
|
65
|
+
</button>
|
66
|
+
</ng-template>
|
67
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 }); }
|
68
68
|
}
|
69
69
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
|
70
70
|
type: Component,
|
71
71
|
args: [{
|
72
72
|
selector: 'formly-field-button-group',
|
73
|
-
template: `
|
74
|
-
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
75
|
-
@for (item of props.buttons; track item.id) {
|
76
|
-
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
77
|
-
}
|
78
|
-
</nz-button-group>
|
79
|
-
|
80
|
-
<ng-template #btnTemplate let-item>
|
81
|
-
<button
|
82
|
-
nz-button
|
83
|
-
[formlyAttributes]="item"
|
84
|
-
[type]="item.type || 'button'"
|
85
|
-
[attr.title]="item.props['title']"
|
86
|
-
[disabled]="item.props.disabled!!"
|
87
|
-
[nzBlock]="item.props.block!!"
|
88
|
-
[nzDanger]="item.props.danger!!"
|
89
|
-
[nzGhost]="item.props.ghost!!"
|
90
|
-
[nzSize]="item.props.size || 'default'"
|
91
|
-
[nzLoading]="item.props.loading!!"
|
92
|
-
[nzShape]="item.props.shape ?? null"
|
93
|
-
[nzType]="item.props.nzType ?? null"
|
94
|
-
>
|
95
|
-
@if (item.props.beforeIcon) {
|
96
|
-
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
97
|
-
}
|
98
|
-
@if (item.props.text) {
|
99
|
-
<span>{{ item.props.text }}</span>
|
100
|
-
}
|
101
|
-
@if (item.props.afterIcon) {
|
102
|
-
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
103
|
-
}
|
104
|
-
</button>
|
105
|
-
</ng-template>
|
73
|
+
template: `
|
74
|
+
<nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
|
75
|
+
@for (item of props.buttons; track item.id) {
|
76
|
+
<ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
|
77
|
+
}
|
78
|
+
</nz-button-group>
|
79
|
+
|
80
|
+
<ng-template #btnTemplate let-item>
|
81
|
+
<button
|
82
|
+
nz-button
|
83
|
+
[formlyAttributes]="item"
|
84
|
+
[type]="item.type || 'button'"
|
85
|
+
[attr.title]="item.props['title']"
|
86
|
+
[disabled]="item.props.disabled!!"
|
87
|
+
[nzBlock]="item.props.block!!"
|
88
|
+
[nzDanger]="item.props.danger!!"
|
89
|
+
[nzGhost]="item.props.ghost!!"
|
90
|
+
[nzSize]="item.props.size || 'default'"
|
91
|
+
[nzLoading]="item.props.loading!!"
|
92
|
+
[nzShape]="item.props.shape ?? null"
|
93
|
+
[nzType]="item.props.nzType ?? null"
|
94
|
+
>
|
95
|
+
@if (item.props.beforeIcon) {
|
96
|
+
<span nz-icon [nzType]="item.props.beforeIcon"></span>
|
97
|
+
}
|
98
|
+
@if (item.props.text) {
|
99
|
+
<span>{{ item.props.text }}</span>
|
100
|
+
}
|
101
|
+
@if (item.props.afterIcon) {
|
102
|
+
<span nz-icon [nzType]="item.props.afterIcon"></span>
|
103
|
+
}
|
104
|
+
</button>
|
105
|
+
</ng-template>
|
106
106
|
`,
|
107
107
|
changeDetection: ChangeDetectionStrategy.OnPush
|
108
108
|
}]
|
@@ -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 [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\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 [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":";;;;;;;;;;;;;;AA4DM,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,IAAA,EAAA,sBAAsB,EApCvB,QAAA,EAAA,2BAAA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AA;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;;;;"}
|
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';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\r\n\r\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonGroupProps extends FormlyFieldProps {\r\n size?: NzButtonGroupSize;\r\n\r\n /**\r\n * 每个按钮配置\r\n */\r\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\r\n}\r\n\r\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\r\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button-group',\r\n template: `\r\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\r\n @for (item of props.buttons; track item.id) {\r\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\r\n }\r\n </nz-button-group>\r\n\r\n <ng-template #btnTemplate let-item>\r\n <button\r\n nz-button\r\n [formlyAttributes]=\"item\"\r\n [type]=\"item.type || 'button'\"\r\n [attr.title]=\"item.props['title']\"\r\n [disabled]=\"item.props.disabled!!\"\r\n [nzBlock]=\"item.props.block!!\"\r\n [nzDanger]=\"item.props.danger!!\"\r\n [nzGhost]=\"item.props.ghost!!\"\r\n [nzSize]=\"item.props.size || 'default'\"\r\n [nzLoading]=\"item.props.loading!!\"\r\n [nzShape]=\"item.props.shape ?? null\"\r\n [nzType]=\"item.props.nzType ?? null\"\r\n >\r\n @if (item.props.beforeIcon) {\r\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\r\n }\r\n @if (item.props.text) {\r\n <span>{{ item.props.text }}</span>\r\n }\r\n @if (item.props.afterIcon) {\r\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\r\n }\r\n </button>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButtonGroup\r\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\r\n implements OnDestroy\r\n{\r\n destroy$ = new Subject<void>();\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttons: []\r\n }\r\n };\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n subjectDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subjectDestroy();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldButtonGroup } from './button-group.type';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButtonGroup],\r\n imports: [\r\n CommonModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button-group',\r\n component: FormlyFieldButtonGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,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,IAAA,EAAA,sBAAsB,EApCvB,QAAA,EAAA,2BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;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