ngx-formly-zorro-antd 14.0.1 → 14.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/datepicker/datepicker.props.d.ts +5 -0
  2. package/datepicker/datepicker.type.d.ts +1 -0
  3. package/esm2020/datepicker/datepicker.props.mjs +1 -1
  4. package/esm2020/datepicker/datepicker.type.mjs +7 -2
  5. package/esm2020/select/select.props.mjs +1 -1
  6. package/esm2020/select/select.type.mjs +6 -2
  7. package/esm2020/timepicker/timepicker.type.mjs +8 -4
  8. package/esm2020/upload/upload.component.mjs +121 -42
  9. package/esm2020/upload/upload.module.mjs +4 -4
  10. package/esm2020/upload/upload.props.mjs +2 -0
  11. package/esm2020/upload/upload.type.mjs +26 -16
  12. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +6 -1
  13. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  14. package/fesm2015/ngx-formly-zorro-antd-select.mjs +5 -1
  15. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  16. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +7 -3
  17. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  18. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +146 -57
  19. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  20. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +6 -1
  21. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  22. package/fesm2020/ngx-formly-zorro-antd-select.mjs +5 -1
  23. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  24. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +7 -3
  25. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  26. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +146 -57
  27. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  28. package/package.json +2 -2
  29. package/select/select.props.d.ts +6 -2
  30. package/timepicker/timepicker.type.d.ts +7 -0
  31. package/upload/upload.component.d.ts +16 -10
  32. package/upload/upload.module.d.ts +1 -1
  33. package/upload/upload.props.d.ts +173 -0
  34. package/upload/upload.type.d.ts +7 -151
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input, NgModule } from '@angular/core';
2
+ import { forwardRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i2$1 from '@ngx-formly/core';
@@ -17,12 +17,14 @@ import * as i4 from 'ng-zorro-antd/core/transition-patch';
17
17
  import * as i5 from 'ng-zorro-antd/core/wave';
18
18
 
19
19
  /* eslint-disable @typescript-eslint/no-empty-function */
20
- class UploadComponent extends NzUploadComponent {
20
+ class UploadNzComponent extends NzUploadComponent {
21
21
  constructor() {
22
22
  super(...arguments);
23
- /**
24
- * 样式名
25
- */
23
+ /** 上传按钮的图标 */
24
+ this.nzeUploadButtonIcon = {
25
+ type: 'cloud-upload'
26
+ };
27
+ /** 样式名 */
26
28
  this.className = '';
27
29
  this.onChange = () => { };
28
30
  this.onTouched = () => { };
@@ -53,21 +55,23 @@ class UploadComponent extends NzUploadComponent {
53
55
  }
54
56
  }
55
57
  }
56
- UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
57
- UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadComponent, selector: "formly-upload", inputs: { text: "text", className: "className", resultMap: "resultMap" }, providers: [
58
+ UploadNzComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
59
+ UploadNzComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: "nzeShowUploadButton", nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", className: "className", resultMap: "resultMap" }, providers: [
58
60
  {
59
61
  provide: NG_VALUE_ACCESSOR,
60
- useExisting: UploadComponent,
62
+ useExisting: forwardRef(() => UploadNzComponent),
61
63
  multi: true
62
64
  }
63
- ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
65
+ ], usesInheritance: true, ngImport: i0, template: `
64
66
  <nz-upload
67
+ [nzType]="nzType"
65
68
  [nzAccept]="nzAccept"
66
69
  [nzAction]="nzAction"
67
70
  [nzDirectory]="nzDirectory"
68
71
  [nzBeforeUpload]="nzBeforeUpload"
69
72
  [nzCustomRequest]="nzCustomRequest"
70
73
  [nzData]="nzData"
74
+ [nzDisabled]="nzDisabled"
71
75
  [(nzFileList)]="nzFileList"
72
76
  [nzLimit]="nzLimit"
73
77
  [nzSize]="nzSize"
@@ -91,35 +95,71 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
91
95
  [nzFileListRender]="nzFileListRender"
92
96
  [ngClass]="className"
93
97
  (nzChange)="change($event)"
94
- [nzType]="nzType"
95
98
  (nzFileListChange)="fileListChange($event)"
96
99
  >
97
- <ng-container *ngIf="text; else buttontext">
98
- <button nz-button type="button">
99
- <i nz-icon nzType="upload"></i>
100
- {{ text }}
101
- </button>
102
- </ng-container>
100
+ <ng-container [ngSwitch]="nzType">
101
+ <ng-container *ngSwitchCase="'drag'">
102
+ <p class="ant-upload-drag-icon">
103
+ <span
104
+ *ngIf="nzeUploadButtonIcon"
105
+ nz-icon
106
+ [nzType]="nzeUploadButtonIcon.type"
107
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
108
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
109
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
110
+ ></span>
111
+ </p>
112
+ <p class="ant-upload-text">{{ nzeText }}</p>
113
+ <p class="ant-upload-hint">{{ nzeHint }}</p>
114
+ </ng-container>
115
+ <ng-container *ngSwitchDefault>
116
+ <button
117
+ type="button"
118
+ nz-button
119
+ [disabled]="nzDisabled!!"
120
+ *ngIf="nzeShowUploadButton !== false"
121
+ >
122
+ <span
123
+ *ngIf="nzeUploadButtonIcon"
124
+ nz-icon
125
+ [nzType]="nzeUploadButtonIcon.type"
126
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
127
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
128
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
129
+ ></span>
130
+ {{ nzeText }}
131
+ </button>
103
132
 
104
- <ng-template #buttontext>
105
- <button nz-button type="button">
106
- <i nz-icon nzType="upload"></i>
107
- </button>
108
- </ng-template>
133
+ <div *ngIf="nzeShowUploadButton === false">
134
+ <span
135
+ *ngIf="nzeUploadButtonIcon"
136
+ nz-icon
137
+ [nzType]="nzeUploadButtonIcon.type"
138
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
139
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
140
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
141
+ ></span>
142
+ {{ nzeText }}
143
+ <div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
144
+ </div>
145
+ </ng-container>
146
+ </ng-container>
109
147
  </nz-upload>
110
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵ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: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, decorators: [{
148
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵ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: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadNzComponent, decorators: [{
112
150
  type: Component,
113
151
  args: [{
114
- selector: 'formly-upload',
152
+ selector: 'formly-nz-upload',
115
153
  template: `
116
154
  <nz-upload
155
+ [nzType]="nzType"
117
156
  [nzAccept]="nzAccept"
118
157
  [nzAction]="nzAction"
119
158
  [nzDirectory]="nzDirectory"
120
159
  [nzBeforeUpload]="nzBeforeUpload"
121
160
  [nzCustomRequest]="nzCustomRequest"
122
161
  [nzData]="nzData"
162
+ [nzDisabled]="nzDisabled"
123
163
  [(nzFileList)]="nzFileList"
124
164
  [nzLimit]="nzLimit"
125
165
  [nzSize]="nzSize"
@@ -143,21 +183,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
143
183
  [nzFileListRender]="nzFileListRender"
144
184
  [ngClass]="className"
145
185
  (nzChange)="change($event)"
146
- [nzType]="nzType"
147
186
  (nzFileListChange)="fileListChange($event)"
148
187
  >
149
- <ng-container *ngIf="text; else buttontext">
150
- <button nz-button type="button">
151
- <i nz-icon nzType="upload"></i>
152
- {{ text }}
153
- </button>
154
- </ng-container>
188
+ <ng-container [ngSwitch]="nzType">
189
+ <ng-container *ngSwitchCase="'drag'">
190
+ <p class="ant-upload-drag-icon">
191
+ <span
192
+ *ngIf="nzeUploadButtonIcon"
193
+ nz-icon
194
+ [nzType]="nzeUploadButtonIcon.type"
195
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
196
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
197
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
198
+ ></span>
199
+ </p>
200
+ <p class="ant-upload-text">{{ nzeText }}</p>
201
+ <p class="ant-upload-hint">{{ nzeHint }}</p>
202
+ </ng-container>
203
+ <ng-container *ngSwitchDefault>
204
+ <button
205
+ type="button"
206
+ nz-button
207
+ [disabled]="nzDisabled!!"
208
+ *ngIf="nzeShowUploadButton !== false"
209
+ >
210
+ <span
211
+ *ngIf="nzeUploadButtonIcon"
212
+ nz-icon
213
+ [nzType]="nzeUploadButtonIcon.type"
214
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
215
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
216
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
217
+ ></span>
218
+ {{ nzeText }}
219
+ </button>
155
220
 
156
- <ng-template #buttontext>
157
- <button nz-button type="button">
158
- <i nz-icon nzType="upload"></i>
159
- </button>
160
- </ng-template>
221
+ <div *ngIf="nzeShowUploadButton === false">
222
+ <span
223
+ *ngIf="nzeUploadButtonIcon"
224
+ nz-icon
225
+ [nzType]="nzeUploadButtonIcon.type"
226
+ [nzTheme]="nzeUploadButtonIcon.theme || 'outline'"
227
+ [nzSpin]="nzeUploadButtonIcon.spin!!"
228
+ [nzTwotoneColor]="nzeUploadButtonIcon.twoToneColor || ''"
229
+ ></span>
230
+ {{ nzeText }}
231
+ <div class="ant-upload-hint" style="margin-top: 8px">{{ nzeHint }}</div>
232
+ </div>
233
+ </ng-container>
234
+ </ng-container>
161
235
  </nz-upload>
162
236
  `,
163
237
  encapsulation: ViewEncapsulation.None,
@@ -165,15 +239,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
165
239
  providers: [
166
240
  {
167
241
  provide: NG_VALUE_ACCESSOR,
168
- useExisting: UploadComponent,
242
+ useExisting: forwardRef(() => UploadNzComponent),
169
243
  multi: true
170
244
  }
171
245
  ]
172
246
  }]
173
- }], propDecorators: { transfer: [{
174
- type: ViewChild,
175
- args: ['upload', { static: true }]
176
- }], text: [{
247
+ }], propDecorators: { nzeText: [{
248
+ type: Input
249
+ }], nzeHint: [{
250
+ type: Input
251
+ }], nzeShowUploadButton: [{
252
+ type: Input
253
+ }], nzeUploadButton: [{
254
+ type: Input
255
+ }], nzeUploadButtonIcon: [{
177
256
  type: Input
178
257
  }], className: [{
179
258
  type: Input
@@ -191,8 +270,10 @@ class FormlyFieldUpload extends FieldType {
191
270
  showUploadList: true,
192
271
  showButton: true,
193
272
  openFileDialogOnClick: true,
273
+ showUploadButton: true,
194
274
  limit: 0,
195
275
  size: 0,
276
+ fileList: [],
196
277
  filter: [],
197
278
  text: ''
198
279
  }
@@ -206,7 +287,7 @@ class FormlyFieldUpload extends FieldType {
206
287
  }
207
288
  }
208
289
  FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
209
- FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-upload
290
+ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", 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
210
291
  #upload
211
292
  [formControl]="formControl"
212
293
  [formlyAttributes]="field"
@@ -216,6 +297,7 @@ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
216
297
  [nzBeforeUpload]="props['beforeUpload']"
217
298
  [nzCustomRequest]="props['customRequest']"
218
299
  [nzData]="props['data']"
300
+ [nzDisabled]="props['disabled']!!"
219
301
  [(nzFileList)]="props['fileList']"
220
302
  [nzLimit]="props['limit']"
221
303
  [nzSize]="props['size']"
@@ -224,7 +306,7 @@ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
224
306
  [nzHeaders]="props['headers']"
225
307
  [nzListType]="props['listType']!"
226
308
  [nzMultiple]="props['multiple']!!"
227
- [nzName]="props['name']!"
309
+ [nzName]="props['name'] || ''"
228
310
  [nzShowUploadList]="props['showUploadList']"
229
311
  [nzShowButton]="props['showButton']!!"
230
312
  [nzWithCredentials]="props['withCredentials']!!"
@@ -233,22 +315,25 @@ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
233
315
  [nzPreviewFile]="props['previewFile']"
234
316
  [nzPreviewIsImage]="props['previewIsImage']"
235
317
  [nzRemove]="props['remove']"
236
- (nzChange)="props['change'] && props['change']($event)"
318
+ (nzChange)="props.change && props.change(field, $event)"
237
319
  [nzDownload]="props['download']"
238
320
  [nzTransformFile]="props['transformFile']"
239
321
  [nzIconRender]="props['iconRender'] ?? null"
240
322
  [nzFileListRender]="props['fileListRender'] ?? null"
241
- [text]="props['text']"
242
- [className]="props['className']"
243
- (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
244
323
  [resultMap]="props['resultMap']"
324
+ [nzeHint]="props['hint']"
325
+ [nzeText]="props['text']"
326
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
327
+ [nzeShowUploadButton]="props['showUploadButton']"
328
+ [className]="props['className'] || ''"
329
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
245
330
  >
246
- </formly-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
331
+ </formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
247
332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
248
333
  type: Component,
249
334
  args: [{
250
335
  selector: 'formly-field-upload',
251
- template: `<formly-upload
336
+ template: `<formly-nz-upload
252
337
  #upload
253
338
  [formControl]="formControl"
254
339
  [formlyAttributes]="field"
@@ -258,6 +343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
258
343
  [nzBeforeUpload]="props['beforeUpload']"
259
344
  [nzCustomRequest]="props['customRequest']"
260
345
  [nzData]="props['data']"
346
+ [nzDisabled]="props['disabled']!!"
261
347
  [(nzFileList)]="props['fileList']"
262
348
  [nzLimit]="props['limit']"
263
349
  [nzSize]="props['size']"
@@ -266,7 +352,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
266
352
  [nzHeaders]="props['headers']"
267
353
  [nzListType]="props['listType']!"
268
354
  [nzMultiple]="props['multiple']!!"
269
- [nzName]="props['name']!"
355
+ [nzName]="props['name'] || ''"
270
356
  [nzShowUploadList]="props['showUploadList']"
271
357
  [nzShowButton]="props['showButton']!!"
272
358
  [nzWithCredentials]="props['withCredentials']!!"
@@ -275,17 +361,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
275
361
  [nzPreviewFile]="props['previewFile']"
276
362
  [nzPreviewIsImage]="props['previewIsImage']"
277
363
  [nzRemove]="props['remove']"
278
- (nzChange)="props['change'] && props['change']($event)"
364
+ (nzChange)="props.change && props.change(field, $event)"
279
365
  [nzDownload]="props['download']"
280
366
  [nzTransformFile]="props['transformFile']"
281
367
  [nzIconRender]="props['iconRender'] ?? null"
282
368
  [nzFileListRender]="props['fileListRender'] ?? null"
283
- [text]="props['text']"
284
- [className]="props['className']"
285
- (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
286
369
  [resultMap]="props['resultMap']"
370
+ [nzeHint]="props['hint']"
371
+ [nzeText]="props['text']"
372
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
373
+ [nzeShowUploadButton]="props['showUploadButton']"
374
+ [className]="props['className'] || ''"
375
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
287
376
  >
288
- </formly-upload>`,
377
+ </formly-nz-upload>`,
289
378
  changeDetection: ChangeDetectionStrategy.OnPush
290
379
  }]
291
380
  }], propDecorators: { upload: [{
@@ -296,7 +385,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
296
385
  class FormlyNzUploadModule {
297
386
  }
298
387
  FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
299
- FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
388
+ FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
300
389
  ReactiveFormsModule,
301
390
  FormlyNzFormFieldModule,
302
391
  NzUploadModule,
@@ -320,7 +409,7 @@ FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
320
409
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
321
410
  type: NgModule,
322
411
  args: [{
323
- declarations: [FormlyFieldUpload, UploadComponent],
412
+ declarations: [FormlyFieldUpload, UploadNzComponent],
324
413
  imports: [
325
414
  CommonModule,
326
415
  ReactiveFormsModule,
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\n\n@Component({\n selector: 'formly-upload',\n template: `\n <nz-upload\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"className\"\n (nzChange)=\"change($event)\"\n [nzType]=\"nzType\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n <ng-container *ngIf=\"text; else buttontext\">\n <button nz-button type=\"button\">\n <i nz-icon nzType=\"upload\"></i>\n {{ text }}\n </button>\n </ng-container>\n\n <ng-template #buttontext>\n <button nz-button type=\"button\">\n <i nz-icon nzType=\"upload\"></i>\n </button>\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: UploadComponent,\n multi: true\n }\n ]\n})\nexport class UploadComponent extends NzUploadComponent implements ControlValueAccessor {\n @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /**\n * 按钮文本\n * @default 点击上传\n */\n @Input() text?: string;\n /**\n * 样式名\n */\n @Input() className = '';\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n TemplateRef,\n Type,\n ViewChild,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable, Subscription } from 'rxjs';\nimport {\n NzUploadComponent,\n NzUploadType,\n NzUploadChangeParam,\n NzUploadFile,\n NzUploadTransformFileType,\n UploadFilter,\n NzIconRenderTemplate,\n NzUploadListType\n} from 'ng-zorro-antd/upload';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface UploadProps extends FormlyFieldProps {\n /**\n * 接受上传的文件类型, 详见 input accept Attribute\n */\n accept?: string | string[];\n\n /**\n * 必选参数, 上传的地址\n */\n action?: string | ((file: NzUploadFile) => string | Observable<string>);\n\n /**\n * 支持上传文件夹(caniuse)\n * @default false\n */\n directory?: boolean;\n\n /**\n * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。\n */\n beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;\n\n /**\n * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。\n */\n customRequest?: (item: NzSafeAny) => Subscription;\n\n /**\n * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。\n */\n // eslint-disable-next-line @typescript-eslint/ban-types\n data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\n\n /**\n * 文件列表,双向绑定\n */\n fileList?: NzUploadFile[];\n\n /**\n * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限\n * @default 0\n */\n limit?: number;\n\n /**\n * 限制文件大小,单位:KB;0 表示不限\n * @default 0\n */\n size?: number;\n\n /**\n * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp\n */\n fileType?: string;\n\n /**\n * 自定义过滤器\n */\n filter?: UploadFilter[];\n\n /**\n * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。\n */\n // eslint-disable-next-line @typescript-eslint/ban-types\n headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\n\n /**\n * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card\n * @default text\n */\n listType?: NzUploadListType;\n\n /**\n * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。\n * @default false;\n */\n multiple?: boolean;\n\n /**\n * 发到后台的文件参数名\n * @default file\n */\n name?: string;\n\n /**\n * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon\n * @default true\n */\n showUploadList?:\n | boolean\n | { showPreviewIcon?: boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean };\n\n /**\n * 是否展示上传按钮\n * @default true\n */\n showButton?: boolean;\n\n /**\n * 上传请求时是否携带 cookie\n * @default false\n */\n withCredentials?: boolean;\n\n /**\n * 点击打开文件对话框\n * @default true\n */\n openFileDialogOnClick?: boolean;\n\n /**\n * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。\n */\n preview?: (file: NzUploadFile) => void;\n\n /**\n * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。\n */\n previewFile?: (file: NzUploadFile) => Observable<string>;\n\n /**\n * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。\n */\n previewIsImage?: (file: NzUploadFile) => boolean;\n\n /**\n * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。\n */\n remove?: (file: NzUploadFile) => boolean | Observable<boolean>;\n\n /**\n * 上传文件改变时的状态\n */\n onChange?: (value: NzUploadChangeParam) => void;\n\n /**\n * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\n * @default 跳转新标签页\n */\n download?: (file: NzUploadFile) => void;\n\n /**\n * 在上传之前转换文件。支持返回一个 Observable 对象\n */\n transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;\n\n /**\n * 自定义显示 icon\n */\n iconRender?: NzIconRenderTemplate | null;\n\n /**\n * 自定义显示整个列表\n */\n fileListRender?: TemplateRef<void> | null;\n\n /**\n * 按钮文本\n * @default 点击上传\n */\n text?: string;\n\n /**\n * 文件列表改变事件\n */\n fileListChange?: (list: NzUploadFile[]) => void;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 NzUploadFile[] 格式\n */\n resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n}\n\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name']!\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n (nzChange)=\"props['change'] && props['change']($event)\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"props['iconRender'] ?? null\"\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\n [text]=\"props['text']\"\n [className]=\"props['className']\"\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange']($event)\"\n [resultMap]=\"props['resultMap']\"\n >\n </formly-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n limit: 0,\n size: 0,\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: NzUploadComponent;\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type as NzUploadType;\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 { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3.UploadComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAwEM,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AA5DtD,IAAA,WAAA,GAAA;;AAoEE;;AAEG;AACM,QAAA,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IA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AA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAnB7B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,cAAc;QACd,cAAc;QACd,YAAY;QAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,SAAS,EAAE,iBAAiB;oBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAtBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC;AAClD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACjCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n forwardRef,\n Input,\n ViewEncapsulation,\n ViewChild\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\nimport type { AntdIcon } from './upload.props';\n\n@Component({\n selector: 'formly-nz-upload',\n template: `\n <nz-upload\n [nzType]=\"nzType\"\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [nzDisabled]=\"nzDisabled\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"className\"\n (nzChange)=\"change($event)\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n <ng-container [ngSwitch]=\"nzType\">\n <ng-container *ngSwitchCase=\"'drag'\">\n <p class=\"ant-upload-drag-icon\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n </p>\n <p class=\"ant-upload-text\">{{ nzeText }}</p>\n <p class=\"ant-upload-hint\">{{ nzeHint }}</p>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button\n type=\"button\"\n nz-button\n [disabled]=\"nzDisabled!!\"\n *ngIf=\"nzeShowUploadButton !== false\"\n >\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n </button>\n\n <div *ngIf=\"nzeShowUploadButton === false\">\n <span\n *ngIf=\"nzeUploadButtonIcon\"\n nz-icon\n [nzType]=\"nzeUploadButtonIcon.type\"\n [nzTheme]=\"nzeUploadButtonIcon.theme || 'outline'\"\n [nzSpin]=\"nzeUploadButtonIcon.spin!!\"\n [nzTwotoneColor]=\"nzeUploadButtonIcon.twoToneColor || ''\"\n ></span>\n {{ nzeText }}\n <div class=\"ant-upload-hint\" style=\"margin-top: 8px\">{{ nzeHint }}</div>\n </div>\n </ng-container>\n </ng-container>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => UploadNzComponent),\n multi: true\n }\n ]\n})\nexport class UploadNzComponent extends NzUploadComponent implements ControlValueAccessor {\n // @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /** 上传显示文本信息 */\n @Input() nzeText?: string;\n /** 上传的提示信息 */\n @Input() nzeHint?: string;\n /** 是否显示上传按钮, 如果是nzType=\"drag\" 隐藏按钮 */\n @Input() nzeShowUploadButton?: boolean;\n /**\n * 自定义按钮或显示内容\n */\n @Input() nzeUploadButton?: string | TemplateRef<NzSafeAny>;\n /** 上传按钮的图标 */\n @Input() nzeUploadButtonIcon?: AntdIcon | null = {\n type: 'cloud-upload'\n };\n\n /** 样式名 */\n @Input() className = '';\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, Type, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { UploadNzComponent } from './upload.component';\nimport type { UploadProps } from './upload.props';\n\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-nz-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [nzDisabled]=\"props['disabled']!!\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name'] || ''\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n (nzChange)=\"props.change && props.change(field, $event)\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"props['iconRender'] ?? null\"\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\n [resultMap]=\"props['resultMap']\"\n [nzeHint]=\"props['hint']\"\n [nzeText]=\"props['text']\"\n [nzeUploadButtonIcon]=\"props['uploadButtonIcon']\"\n [nzeShowUploadButton]=\"props['showUploadButton']\"\n [className]=\"props['className'] || ''\"\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange'](field, $event)\"\n >\n </formly-nz-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n showUploadButton: true,\n limit: 0,\n size: 0,\n fileList: [],\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: UploadNzComponent;\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type;\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 { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadNzComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadNzComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3.UploadNzComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AA+GM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AAhGxD,IAAA,WAAA,GAAA;;;QA8GW,IAAA,CAAA,mBAAmB,GAAqB;AAC/C,YAAA,IAAI,EAAE,cAAc;SACrB,CAAC;;AAGO,QAAA,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;KA0BrC;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI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EvB,cAAc;QACd,cAAc;AACd,QAAA,YAAY,EAAAF,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAaH,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAnB7B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,cAAc;QACd,cAAc;QACd,YAAY;QAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,SAAS,EAAE,iBAAiB;oBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAtBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;AACpD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -28,6 +28,7 @@ class FormlyFieldDatepicker extends FieldType {
28
28
  inline: false,
29
29
  showToday: true,
30
30
  showNow: true,
31
+ nzShowWeekNumber: false,
31
32
  rangeOptions: {
32
33
  separator: '~'
33
34
  }
@@ -66,6 +67,7 @@ FormlyFieldDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
66
67
  [nzShowTime]="props['showTime']"
67
68
  [nzShowToday]="props['showToday']!!"
68
69
  [nzShowNow]="props['showNow']!!"
70
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
69
71
  [nzRanges]="props['rangeOptions']?.ranges"
70
72
  [nzSeparator]="props['rangeOptions']?.separator"
71
73
  (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
@@ -106,11 +108,12 @@ FormlyFieldDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
106
108
  [nzShowTime]="props['showTime']"
107
109
  [nzShowToday]="props['showToday']!!"
108
110
  [nzShowNow]="props['showNow']!!"
111
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
109
112
  (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
110
113
  (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
111
114
  (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
112
115
  ></nz-date-picker>
113
- </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
116
+ </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
114
117
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
115
118
  type: Component,
116
119
  args: [{
@@ -145,6 +148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
145
148
  [nzShowTime]="props['showTime']"
146
149
  [nzShowToday]="props['showToday']!!"
147
150
  [nzShowNow]="props['showNow']!!"
151
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
148
152
  [nzRanges]="props['rangeOptions']?.ranges"
149
153
  [nzSeparator]="props['rangeOptions']?.separator"
150
154
  (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
@@ -185,6 +189,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
185
189
  [nzShowTime]="props['showTime']"
186
190
  [nzShowToday]="props['showToday']!!"
187
191
  [nzShowNow]="props['showNow']!!"
192
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
188
193
  (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
189
194
  (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
190
195
  (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\n\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n rangeOptions: {\n separator: '~'\n }\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 { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;AAgFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,YAAY,EAA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gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\n\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\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 { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0FM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAjFrE,IAAA,WAAA,GAAA;;AAkFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KA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