ngx-formly-zorro-antd 17.1.2 → 17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/package.json +3 -0
- package/button/package.json +3 -0
- package/button-group/package.json +3 -0
- package/card/package.json +3 -0
- package/card-wrapper/package.json +3 -0
- package/cascader/package.json +3 -0
- package/checkbox/package.json +3 -0
- package/common/package.json +3 -0
- package/datepicker/package.json +3 -0
- 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 +48 -43
- 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/flex/flex.module.mjs +1 -1
- package/esm2022/flex/flex.type.mjs +35 -35
- package/esm2022/flex/public_api.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 +147 -147
- 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 +275 -275
- 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 +47 -42
- package/esm2022/input-group/public_api.mjs +1 -1
- package/esm2022/input-number/input-number.module.mjs +1 -1
- package/esm2022/input-number/input-number.props.mjs +1 -1
- package/esm2022/input-number/input-number.type.mjs +89 -89
- package/esm2022/input-number/public_api.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/radio/radio.type.mjs +81 -81
- package/esm2022/rate/public_api.mjs +1 -1
- package/esm2022/rate/rate.module.mjs +1 -1
- package/esm2022/rate/rate.type.mjs +33 -33
- package/esm2022/ref-template/public_api.mjs +1 -1
- package/esm2022/ref-template/ref-template.module.mjs +1 -1
- package/esm2022/ref-template/ref-template.type.mjs +9 -9
- package/esm2022/select/public_api.mjs +1 -1
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/select/select.props.mjs +1 -1
- package/esm2022/select/select.type.mjs +123 -123
- package/esm2022/slider/public_api.mjs +1 -1
- package/esm2022/slider/slider.module.mjs +1 -1
- package/esm2022/slider/slider.type.mjs +33 -33
- package/esm2022/space/public_api.mjs +1 -1
- package/esm2022/space/space.module.mjs +1 -1
- package/esm2022/space/space.type.mjs +27 -27
- package/esm2022/switch/public_api.mjs +1 -1
- package/esm2022/switch/switch.module.mjs +1 -1
- package/esm2022/switch/switch.type.mjs +25 -25
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +1 -1
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +79 -79
- package/esm2022/text-value/public_api.mjs +1 -1
- package/esm2022/text-value/text-value.module.mjs +1 -1
- package/esm2022/text-value/text-value.type.mjs +19 -19
- package/esm2022/textarea/public_api.mjs +1 -1
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/textarea/textarea.type.mjs +113 -113
- package/esm2022/timepicker/public_api.mjs +1 -1
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timepicker/timepicker.type.mjs +61 -61
- package/esm2022/transfer/public_api.mjs +1 -1
- package/esm2022/transfer/transfer.component.mjs +49 -49
- package/esm2022/transfer/transfer.module.mjs +1 -1
- package/esm2022/transfer/transfer.type.mjs +47 -47
- package/esm2022/tree-select/public_api.mjs +1 -1
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/esm2022/tree-select/tree-select.type.mjs +69 -69
- package/esm2022/upload/public_api.mjs +1 -1
- package/esm2022/upload/upload.component.mjs +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/extension/package.json +3 -0
- 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 +48 -43
- 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-flex.mjs +34 -34
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +146 -146
- 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 +47 -42
- 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 +274 -274
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/flex/package.json +3 -0
- package/form-field/form-field.props.d.ts +5 -1
- package/form-field/package.json +3 -0
- package/grid/package.json +3 -0
- package/input/package.json +3 -0
- package/input-group/package.json +3 -0
- package/input-number/package.json +3 -0
- package/package.json +26 -26
- package/radio/package.json +3 -0
- package/rate/package.json +3 -0
- package/ref-template/package.json +3 -0
- package/select/package.json +3 -0
- package/slider/package.json +3 -0
- package/space/package.json +3 -0
- package/switch/package.json +3 -0
- package/tabs/package.json +3 -0
- package/text-value/package.json +3 -0
- package/textarea/package.json +3 -0
- package/timepicker/package.json +3 -0
- package/transfer/package.json +3 -0
- package/tree-select/package.json +3 -0
- package/upload/package.json +3 -0
@@ -41,94 +41,94 @@ export class FormlyFieldUpload extends FieldType {
|
|
41
41
|
return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
|
42
42
|
}
|
43
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", 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
|
45
|
-
#upload
|
46
|
-
[formControl]="formControl"
|
47
|
-
[formlyAttributes]="field"
|
48
|
-
[nzAccept]="props['accept']"
|
49
|
-
[nzAction]="props['action']"
|
50
|
-
[nzDirectory]="props['directory']!!"
|
51
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
52
|
-
[nzCustomRequest]="props['customRequest']"
|
53
|
-
[nzData]="props['data']"
|
54
|
-
[nzDisabled]="props['disabled']!!"
|
55
|
-
[(nzFileList)]="props['fileList']"
|
56
|
-
[nzLimit]="props['limit']"
|
57
|
-
[nzSize]="props['size']"
|
58
|
-
[nzFileType]="props['fileType']"
|
59
|
-
[nzFilter]="props['filter']!"
|
60
|
-
[nzHeaders]="props['headers']"
|
61
|
-
[nzListType]="props['listType']!"
|
62
|
-
[nzMultiple]="props['multiple']!!"
|
63
|
-
[nzName]="props['name'] || ''"
|
64
|
-
[nzShowUploadList]="props['showUploadList']"
|
65
|
-
[nzShowButton]="props['showButton']!!"
|
66
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
67
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
68
|
-
[nzPreview]="props['preview']"
|
69
|
-
[nzPreviewFile]="props['previewFile']"
|
70
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
71
|
-
[nzRemove]="props['remove']"
|
72
|
-
(nzChange)="props.change && props.change(field, $event)"
|
73
|
-
[nzDownload]="props['download']"
|
74
|
-
[nzTransformFile]="props['transformFile']"
|
75
|
-
[nzIconRender]="nzIconRender ?? null"
|
76
|
-
[nzFileListRender]="nzFileListRender ?? null"
|
77
|
-
[resultMap]="props['resultMap']"
|
78
|
-
[nzeHint]="props['hint']"
|
79
|
-
[nzeText]="props['text']"
|
80
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
81
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
82
|
-
[ngClass]="props['ngClass']"
|
83
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
84
|
-
>
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", 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
|
45
|
+
#upload
|
46
|
+
[formControl]="formControl"
|
47
|
+
[formlyAttributes]="field"
|
48
|
+
[nzAccept]="props['accept']"
|
49
|
+
[nzAction]="props['action']"
|
50
|
+
[nzDirectory]="props['directory']!!"
|
51
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
52
|
+
[nzCustomRequest]="props['customRequest']"
|
53
|
+
[nzData]="props['data']"
|
54
|
+
[nzDisabled]="props['disabled']!!"
|
55
|
+
[(nzFileList)]="props['fileList']"
|
56
|
+
[nzLimit]="props['limit']"
|
57
|
+
[nzSize]="props['size']"
|
58
|
+
[nzFileType]="props['fileType']"
|
59
|
+
[nzFilter]="props['filter']!"
|
60
|
+
[nzHeaders]="props['headers']"
|
61
|
+
[nzListType]="props['listType']!"
|
62
|
+
[nzMultiple]="props['multiple']!!"
|
63
|
+
[nzName]="props['name'] || ''"
|
64
|
+
[nzShowUploadList]="props['showUploadList']"
|
65
|
+
[nzShowButton]="props['showButton']!!"
|
66
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
67
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
68
|
+
[nzPreview]="props['preview']"
|
69
|
+
[nzPreviewFile]="props['previewFile']"
|
70
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
71
|
+
[nzRemove]="props['remove']"
|
72
|
+
(nzChange)="props.change && props.change(field, $event)"
|
73
|
+
[nzDownload]="props['download']"
|
74
|
+
[nzTransformFile]="props['transformFile']"
|
75
|
+
[nzIconRender]="nzIconRender ?? null"
|
76
|
+
[nzFileListRender]="nzFileListRender ?? null"
|
77
|
+
[resultMap]="props['resultMap']"
|
78
|
+
[nzeHint]="props['hint']"
|
79
|
+
[nzeText]="props['text']"
|
80
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
81
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
82
|
+
[ngClass]="props['ngClass']"
|
83
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
84
|
+
>
|
85
85
|
</formly-nz-upload>`, 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: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i5.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
86
86
|
}
|
87
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldUpload, decorators: [{
|
88
88
|
type: Component,
|
89
89
|
args: [{
|
90
90
|
selector: 'formly-field-upload',
|
91
|
-
template: `<formly-nz-upload
|
92
|
-
#upload
|
93
|
-
[formControl]="formControl"
|
94
|
-
[formlyAttributes]="field"
|
95
|
-
[nzAccept]="props['accept']"
|
96
|
-
[nzAction]="props['action']"
|
97
|
-
[nzDirectory]="props['directory']!!"
|
98
|
-
[nzBeforeUpload]="props['beforeUpload']"
|
99
|
-
[nzCustomRequest]="props['customRequest']"
|
100
|
-
[nzData]="props['data']"
|
101
|
-
[nzDisabled]="props['disabled']!!"
|
102
|
-
[(nzFileList)]="props['fileList']"
|
103
|
-
[nzLimit]="props['limit']"
|
104
|
-
[nzSize]="props['size']"
|
105
|
-
[nzFileType]="props['fileType']"
|
106
|
-
[nzFilter]="props['filter']!"
|
107
|
-
[nzHeaders]="props['headers']"
|
108
|
-
[nzListType]="props['listType']!"
|
109
|
-
[nzMultiple]="props['multiple']!!"
|
110
|
-
[nzName]="props['name'] || ''"
|
111
|
-
[nzShowUploadList]="props['showUploadList']"
|
112
|
-
[nzShowButton]="props['showButton']!!"
|
113
|
-
[nzWithCredentials]="props['withCredentials']!!"
|
114
|
-
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
115
|
-
[nzPreview]="props['preview']"
|
116
|
-
[nzPreviewFile]="props['previewFile']"
|
117
|
-
[nzPreviewIsImage]="props['previewIsImage']"
|
118
|
-
[nzRemove]="props['remove']"
|
119
|
-
(nzChange)="props.change && props.change(field, $event)"
|
120
|
-
[nzDownload]="props['download']"
|
121
|
-
[nzTransformFile]="props['transformFile']"
|
122
|
-
[nzIconRender]="nzIconRender ?? null"
|
123
|
-
[nzFileListRender]="nzFileListRender ?? null"
|
124
|
-
[resultMap]="props['resultMap']"
|
125
|
-
[nzeHint]="props['hint']"
|
126
|
-
[nzeText]="props['text']"
|
127
|
-
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
128
|
-
[nzeShowUploadButton]="props['showUploadButton']"
|
129
|
-
[ngClass]="props['ngClass']"
|
130
|
-
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
131
|
-
>
|
91
|
+
template: `<formly-nz-upload
|
92
|
+
#upload
|
93
|
+
[formControl]="formControl"
|
94
|
+
[formlyAttributes]="field"
|
95
|
+
[nzAccept]="props['accept']"
|
96
|
+
[nzAction]="props['action']"
|
97
|
+
[nzDirectory]="props['directory']!!"
|
98
|
+
[nzBeforeUpload]="props['beforeUpload']"
|
99
|
+
[nzCustomRequest]="props['customRequest']"
|
100
|
+
[nzData]="props['data']"
|
101
|
+
[nzDisabled]="props['disabled']!!"
|
102
|
+
[(nzFileList)]="props['fileList']"
|
103
|
+
[nzLimit]="props['limit']"
|
104
|
+
[nzSize]="props['size']"
|
105
|
+
[nzFileType]="props['fileType']"
|
106
|
+
[nzFilter]="props['filter']!"
|
107
|
+
[nzHeaders]="props['headers']"
|
108
|
+
[nzListType]="props['listType']!"
|
109
|
+
[nzMultiple]="props['multiple']!!"
|
110
|
+
[nzName]="props['name'] || ''"
|
111
|
+
[nzShowUploadList]="props['showUploadList']"
|
112
|
+
[nzShowButton]="props['showButton']!!"
|
113
|
+
[nzWithCredentials]="props['withCredentials']!!"
|
114
|
+
[nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
|
115
|
+
[nzPreview]="props['preview']"
|
116
|
+
[nzPreviewFile]="props['previewFile']"
|
117
|
+
[nzPreviewIsImage]="props['previewIsImage']"
|
118
|
+
[nzRemove]="props['remove']"
|
119
|
+
(nzChange)="props.change && props.change(field, $event)"
|
120
|
+
[nzDownload]="props['download']"
|
121
|
+
[nzTransformFile]="props['transformFile']"
|
122
|
+
[nzIconRender]="nzIconRender ?? null"
|
123
|
+
[nzFileListRender]="nzFileListRender ?? null"
|
124
|
+
[resultMap]="props['resultMap']"
|
125
|
+
[nzeHint]="props['hint']"
|
126
|
+
[nzeText]="props['text']"
|
127
|
+
[nzeUploadButtonIcon]="props['uploadButtonIcon']"
|
128
|
+
[nzeShowUploadButton]="props['showUploadButton']"
|
129
|
+
[ngClass]="props['ngClass']"
|
130
|
+
(nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
|
131
|
+
>
|
132
132
|
</formly-nz-upload>`,
|
133
133
|
changeDetection: ChangeDetectionStrategy.OnPush
|
134
134
|
}]
|
@@ -138,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
|
|
138
138
|
type: ViewChild,
|
139
139
|
args: ['upload', { static: true }]
|
140
140
|
}] } });
|
141
|
-
//# sourceMappingURL=data:application/json;base64,
|
141
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFFdkIsU0FBUyxFQUVULFFBQVEsRUFDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBRTlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQU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geyBzdGF0aWM6IHRydWUgfSkgdXBsb2FkITogVXBsb2FkTnpDb21wb25lbnQ7XG5cbiAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgcHVibGljIGZpZWxkVGVtcGxhdGVzOiBGb3JtbHlCb3hUZW1wbGF0ZXMpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgY29uc3QgdHlwZSA9IHRoaXMucHJvcHMudHlwZTtcbiAgICBpZiAodHlwZSkge1xuICAgICAgdGhpcy51cGxvYWQubnpUeXBlID0gdHlwZTtcbiAgICB9XG4gIH1cblxuICBnZXQgbnpJY29uUmVuZGVyKCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnaWNvblJlbmRlcicpO1xuICB9XG5cbiAgZ2V0IG56RmlsZUxpc3RSZW5kZXIoKSB7XG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xuICB9XG59XG4iXX0=
|
@@ -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.9", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
|
35
|
-
<nz-button-group [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.9", 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.9", 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';\
|
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,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