ngx-formly-zorro-antd 13.0.0-rc.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. package/README.md +0 -6
  2. package/autocomplete/autocomplete.props.d.ts +1 -2
  3. package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +0 -0
  4. package/button/button.type.d.ts +2 -1
  5. package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +0 -0
  6. package/card/card.wrapper.d.ts +1 -1
  7. package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +0 -0
  8. package/cascader/cascader.type.d.ts +1 -1
  9. package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +0 -0
  10. package/checkbox/checkbox.type.d.ts +1 -1
  11. package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +0 -0
  12. package/datepicker/datepicker.type.d.ts +1 -1
  13. package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +0 -0
  14. package/esm2020/autocomplete/autocomplete.props.mjs +1 -1
  15. package/esm2020/button/button.module.mjs +23 -25
  16. package/esm2020/button/button.type.mjs +84 -44
  17. package/esm2020/card/card.module.mjs +15 -17
  18. package/esm2020/card/card.wrapper.mjs +5 -5
  19. package/esm2020/cascader/cascader.module.mjs +17 -19
  20. package/esm2020/cascader/cascader.type.mjs +8 -8
  21. package/esm2020/checkbox/checkbox.module.mjs +21 -23
  22. package/esm2020/checkbox/checkbox.type.mjs +8 -8
  23. package/esm2020/datepicker/datepicker.module.mjs +17 -19
  24. package/esm2020/datepicker/datepicker.type.mjs +8 -8
  25. package/esm2020/form-field/form-field.module.mjs +15 -17
  26. package/esm2020/form-field/form-field.props.mjs +1 -1
  27. package/esm2020/form-field/form-field.wrapper.mjs +21 -11
  28. package/esm2020/grid/grid.module.mjs +41 -0
  29. package/esm2020/grid/grid.props.mjs +2 -0
  30. package/esm2020/grid/grid.type.mjs +71 -0
  31. package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +5 -0
  32. package/esm2020/grid/public_api.mjs +3 -0
  33. package/esm2020/input/input.module.mjs +31 -33
  34. package/esm2020/input/input.props.mjs +1 -1
  35. package/esm2020/input/input.type.mjs +97 -47
  36. package/esm2020/input-group/input-group.module.mjs +22 -18
  37. package/esm2020/input-group/input-group.props.mjs +1 -1
  38. package/esm2020/input-group/input-group.type.mjs +8 -8
  39. package/esm2020/input-number/input-number.module.mjs +21 -23
  40. package/esm2020/input-number/input-number.type.mjs +8 -8
  41. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +30 -28
  42. package/esm2020/radio/radio.module.mjs +19 -21
  43. package/esm2020/radio/radio.type.mjs +8 -8
  44. package/esm2020/rate/rate.module.mjs +17 -19
  45. package/esm2020/rate/rate.type.mjs +7 -7
  46. package/esm2020/select/select.module.mjs +19 -21
  47. package/esm2020/select/select.type.mjs +8 -8
  48. package/esm2020/slider/slider.module.mjs +17 -19
  49. package/esm2020/slider/slider.type.mjs +7 -7
  50. package/esm2020/switch/switch.module.mjs +17 -19
  51. package/esm2020/switch/switch.type.mjs +7 -7
  52. package/esm2020/tabs/tabs.module.mjs +14 -16
  53. package/esm2020/tabs/tabs.props.mjs +1 -1
  54. package/esm2020/tabs/tabs.wrapper.mjs +8 -8
  55. package/esm2020/textarea/textarea.module.mjs +17 -19
  56. package/esm2020/textarea/textarea.type.mjs +8 -8
  57. package/esm2020/timepicker/timepicker.module.mjs +17 -19
  58. package/esm2020/timepicker/timepicker.type.mjs +8 -8
  59. package/esm2020/transfer/transfer.component.mjs +5 -5
  60. package/esm2020/transfer/transfer.module.mjs +17 -19
  61. package/esm2020/transfer/transfer.type.mjs +8 -8
  62. package/esm2020/tree-select/tree-select.module.mjs +17 -19
  63. package/esm2020/tree-select/tree-select.type.mjs +8 -8
  64. package/esm2020/upload/upload.component.mjs +10 -10
  65. package/esm2020/upload/upload.module.mjs +19 -21
  66. package/esm2020/upload/upload.type.mjs +8 -8
  67. package/fesm2015/ngx-formly-zorro-antd-button.mjs +106 -68
  68. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  69. package/fesm2015/ngx-formly-zorro-antd-card.mjs +18 -20
  70. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  71. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +24 -26
  72. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  73. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +27 -29
  74. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  75. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +23 -25
  76. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  77. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +35 -27
  78. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  79. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +114 -0
  80. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  81. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +28 -24
  82. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  83. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +27 -29
  84. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  85. package/fesm2015/ngx-formly-zorro-antd-input.mjs +127 -79
  86. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  87. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +26 -28
  88. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  89. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +22 -24
  90. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  91. package/fesm2015/ngx-formly-zorro-antd-select.mjs +26 -28
  92. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  93. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +22 -24
  94. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  95. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +22 -24
  96. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  97. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +21 -23
  98. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  99. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +23 -25
  100. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  101. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +24 -26
  102. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  103. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +27 -29
  104. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  105. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +24 -26
  106. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  107. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +34 -36
  108. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  109. package/fesm2015/ngx-formly-zorro-antd.mjs +29 -27
  110. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
  111. package/fesm2020/ngx-formly-zorro-antd-button.mjs +106 -68
  112. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  113. package/fesm2020/ngx-formly-zorro-antd-card.mjs +18 -20
  114. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  115. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +24 -26
  116. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  117. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +27 -29
  118. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  119. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +23 -25
  120. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  121. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +35 -27
  122. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  123. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +114 -0
  124. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  125. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +28 -24
  126. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  127. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +27 -29
  128. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  129. package/fesm2020/ngx-formly-zorro-antd-input.mjs +127 -79
  130. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  131. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +26 -28
  132. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  133. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +22 -24
  134. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  135. package/fesm2020/ngx-formly-zorro-antd-select.mjs +26 -28
  136. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  137. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +22 -24
  138. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  139. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +22 -24
  140. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  141. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +21 -23
  142. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  143. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +23 -25
  144. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  145. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +24 -26
  146. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  147. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +27 -29
  148. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  149. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +24 -26
  150. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  151. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +34 -36
  152. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  153. package/fesm2020/ngx-formly-zorro-antd.mjs +29 -27
  154. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
  155. package/form-field/form-field.props.d.ts +28 -0
  156. package/form-field/form-field.wrapper.d.ts +1 -1
  157. package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +0 -0
  158. package/grid/grid.module.d.ts +10 -0
  159. package/grid/grid.props.d.ts +44 -0
  160. package/grid/grid.type.d.ts +11 -0
  161. package/grid/index.d.ts +5 -0
  162. package/grid/public_api.d.ts +3 -0
  163. package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +0 -0
  164. package/input/input.props.d.ts +3 -36
  165. package/input/input.type.d.ts +2 -2
  166. package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +0 -0
  167. package/input-group/input-group.module.d.ts +3 -2
  168. package/input-group/input-group.props.d.ts +1 -1
  169. package/input-group/input-group.type.d.ts +1 -1
  170. package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +0 -0
  171. package/input-number/input-number.type.d.ts +1 -1
  172. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  173. package/package.json +38 -29
  174. package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +0 -0
  175. package/radio/radio.type.d.ts +1 -1
  176. package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +0 -0
  177. package/rate/rate.type.d.ts +1 -1
  178. package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +0 -0
  179. package/select/select.type.d.ts +1 -1
  180. package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +0 -0
  181. package/slider/slider.type.d.ts +1 -1
  182. package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +0 -0
  183. package/switch/switch.type.d.ts +1 -1
  184. package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +0 -0
  185. package/tabs/tabs.props.d.ts +1 -2
  186. package/tabs/tabs.wrapper.d.ts +1 -1
  187. package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +0 -0
  188. package/textarea/textarea.type.d.ts +1 -1
  189. package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +0 -0
  190. package/timepicker/timepicker.type.d.ts +1 -1
  191. package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +0 -0
  192. package/transfer/transfer.component.d.ts +1 -1
  193. package/transfer/transfer.type.d.ts +1 -1
  194. package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +0 -0
  195. package/tree-select/tree-select.type.d.ts +1 -1
  196. package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +0 -0
  197. package/upload/upload.component.d.ts +1 -1
  198. package/upload/upload.type.d.ts +1 -1
  199. package/autocomplete/package.json +0 -10
  200. package/button/package.json +0 -10
  201. package/card/package.json +0 -10
  202. package/cascader/package.json +0 -10
  203. package/checkbox/package.json +0 -10
  204. package/datepicker/package.json +0 -10
  205. package/form-field/package.json +0 -10
  206. package/input/package.json +0 -10
  207. package/input-group/package.json +0 -10
  208. package/input-number/package.json +0 -10
  209. package/ngx-formly-zorro-antd.d.ts +0 -5
  210. package/radio/package.json +0 -10
  211. package/rate/package.json +0 -10
  212. package/select/package.json +0 -10
  213. package/slider/package.json +0 -10
  214. package/switch/package.json +0 -10
  215. package/tabs/package.json +0 -10
  216. package/textarea/package.json +0 -10
  217. package/timepicker/package.json +0 -10
  218. package/transfer/package.json +0 -10
  219. package/tree-select/package.json +0 -10
  220. package/upload/package.json +0 -10
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i3 from '@ngx-formly/core';
4
+ import * as i2 from '@ngx-formly/core';
5
5
  import { FieldType, FormlyModule } from '@ngx-formly/core';
6
- import * as i2 from '@angular/forms';
6
+ import * as i1$1 from '@angular/forms';
7
7
  import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
8
8
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
9
9
  import * as i1 from 'ng-zorro-antd/transfer';
@@ -54,8 +54,8 @@ class TransferComponent extends NzTransferComponent {
54
54
  this.nzSearchChange.emit(value);
55
55
  }
56
56
  }
57
- TransferComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
58
- TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
57
+ TransferComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
58
+ TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
59
59
  {
60
60
  provide: NG_VALUE_ACCESSOR,
61
61
  useExisting: TransferComponent,
@@ -85,8 +85,8 @@ TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
85
85
  (nzSelectChange)="selectChange($event)"
86
86
  style="flex: auto;"
87
87
  ></nz-transfer>
88
- `, isInline: true, components: [{ type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TransferComponent, decorators: [{
88
+ `, isInline: true, dependencies: [{ kind: "component", type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: TransferComponent, decorators: [{
90
90
  type: Component,
91
91
  args: [{
92
92
  selector: 'formly-transfer',
@@ -152,8 +152,8 @@ class FormlyFieldTransfer extends FieldType {
152
152
  }
153
153
  }
154
154
  }
155
- FormlyFieldTransfer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component });
156
- FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
155
+ FormlyFieldTransfer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component });
156
+ FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
157
157
  #transfer
158
158
  [formControl]="formControl"
159
159
  [formlyAttributes]="field"
@@ -176,8 +176,8 @@ FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
176
176
  (nzChange)="props['onChange'] && props['onChange']($event)"
177
177
  (nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
178
178
  (nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
179
- ></formly-transfer>`, isInline: true, components: [{ type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
179
+ ></formly-transfer>`, 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.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
181
181
  type: Component,
182
182
  args: [{
183
183
  selector: 'formly-field-transfer',
@@ -214,27 +214,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
214
214
 
215
215
  class FormlyNzTransferModule {
216
216
  }
217
- FormlyNzTransferModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
218
- FormlyNzTransferModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
217
+ FormlyNzTransferModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
218
+ FormlyNzTransferModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
219
219
  ReactiveFormsModule,
220
220
  FormlyNzFormFieldModule,
221
- NzTransferModule, i3.FormlyModule] });
222
- FormlyNzTransferModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, imports: [[
223
- CommonModule,
224
- ReactiveFormsModule,
225
- FormlyNzFormFieldModule,
226
- NzTransferModule,
227
- FormlyModule.forChild({
228
- types: [
229
- {
230
- name: 'transfer',
231
- component: FormlyFieldTransfer,
232
- wrappers: ['form-field']
233
- }
234
- ]
235
- })
236
- ]] });
237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
221
+ NzTransferModule, i2.FormlyModule] });
222
+ FormlyNzTransferModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
223
+ ReactiveFormsModule,
224
+ FormlyNzFormFieldModule,
225
+ NzTransferModule,
226
+ FormlyModule.forChild({
227
+ types: [
228
+ {
229
+ name: 'transfer',
230
+ component: FormlyFieldTransfer,
231
+ wrappers: ['form-field']
232
+ }
233
+ ]
234
+ })] });
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
238
236
  type: NgModule,
239
237
  args: [{
240
238
  declarations: [FormlyFieldTransfer, TransferComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\r\n\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type {\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\n\r\n@Component({\r\n selector: 'formly-transfer',\r\n template: `\r\n <nz-transfer\r\n #transfer\r\n [nzDataSource]=\"nzDataSource\"\r\n [nzDisabled]=\"nzDisabled\"\r\n [nzTitles]=\"nzTitles\"\r\n [nzOperations]=\"nzOperations\"\r\n [nzListStyle]=\"nzListStyle\"\r\n [nzItemUnit]=\"nzItemUnit\"\r\n [nzItemsUnit]=\"nzItemsUnit\"\r\n [nzRenderList]=\"nzRenderList\"\r\n [nzRender]=\"nzRender\"\r\n [nzFooter]=\"nzFooter\"\r\n [nzShowSearch]=\"nzShowSearch\"\r\n [nzFilterOption]=\"nzFilterOption\"\r\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzSelectedKeys]=\"nzSelectedKeys\"\r\n [nzTargetKeys]=\"nzTargetKeys\"\r\n (nzChange)=\"change($event)\"\r\n (nzSearchChange)=\"searchChange($event)\"\r\n (nzSelectChange)=\"selectChange($event)\"\r\n style=\"flex: auto;\"\r\n ></nz-transfer>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: TransferComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(obj: NzSafeAny): void {\r\n setTimeout(() => {\r\n this.nzTargetKeys = obj;\r\n (this['cdr'] as ChangeDetectorRef).markForCheck();\r\n this.onChange(this.transfer.rightDataSource);\r\n }, 0);\r\n }\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n change(value: TransferChange): void {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(this.transfer.rightDataSource));\r\n } else {\r\n this.onChange(this.transfer.rightDataSource);\r\n }\r\n }\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange(value: TransferSelectChange) {\r\n this.nzSelectChange.emit(value);\r\n }\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange(value: TransferSearchChange) {\r\n this.nzSearchChange.emit(value);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable } from 'rxjs';\r\nimport {\r\n NzTransferComponent,\r\n TransferCanMove,\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TransferProps extends FormlyFieldProps {\r\n /**\r\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\r\n * @default []\r\n */\r\n dataSource?: TransferItem[];\r\n\r\n /**\r\n * 标题集合,顺序从左至右\r\n * @default ['', '']\r\n */\r\n titles?: string[];\r\n\r\n /**\r\n * 操作文案集合,顺序从下至上\r\n * @default ['', '']\r\n */\r\n operations?: string[];\r\n\r\n /**\r\n * 两个穿梭框的自定义样式,等同 ngStyle\r\n */\r\n listStyle?: NgStyleInterface;\r\n\r\n /**\r\n * 单数单位\r\n * @default 项目\r\n */\r\n itemUnit?: string;\r\n\r\n /**\r\n * 复数单位\r\n * @default 项目\r\n */\r\n itemsUnit?: string;\r\n\r\n /**\r\n * 自定义渲染列表,见示例\r\n * @default [null, null]\r\n */\r\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\r\n\r\n /**\r\n * 每行数据渲染模板,见示例\r\n */\r\n render?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 底部渲染模板,见示例\r\n */\r\n footer?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 是否显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\r\n */\r\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\r\n\r\n /**\r\n * 搜索框的默认值\r\n * @default 请输入搜索内容\r\n */\r\n searchPlaceholder?: string;\r\n\r\n /**\r\n * 当列表为空时显示的内容\r\n * @default 列表为空\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\r\n */\r\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\r\n\r\n /**\r\n * 设置被选中的 key 集合\r\n */\r\n selectedKeys?: string[];\r\n\r\n /**\r\n * 显示在右侧框数据的 key 集合\r\n */\r\n targetKeys?: string[];\r\n\r\n /**\r\n * 选项在两栏之间转移时的回调函数\r\n */\r\n onChange?: (value: TransferChange) => void;\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 TransferItem[] 格式\r\n */\r\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {\r\n type: 'transfer' | Type<FormlyFieldTransfer>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-transfer',\r\n template: `<formly-transfer\r\n #transfer\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzDataSource]=\"props['dataSource']\"\r\n [nzTitles]=\"props['titles']\"\r\n [nzOperations]=\"props['operations']\"\r\n [nzListStyle]=\"props['listStyle']\"\r\n [nzItemUnit]=\"props['itemUnit']\"\r\n [nzItemsUnit]=\"props['itemsUnit']\"\r\n [nzRenderList]=\"props['renderList']!\"\r\n [nzRender]=\"props['render'] ?? null\"\r\n [nzFooter]=\"props['footer'] ?? null\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzFilterOption]=\"props['filterOption']\"\r\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzSelectedKeys]=\"props['selectedKeys']\"\r\n [nzTargetKeys]=\"props['targetKeys']\"\r\n [resultMap]=\"props['resultMap']\"\r\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\r\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\r\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\r\n ></formly-transfer>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n dataSource: [],\r\n titles: ['', ''],\r\n operations: ['', ''],\r\n renderList: [null, null],\r\n listStyle: {}\r\n }\r\n };\r\n\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n\r\n ngOnInit(): void {\r\n const canMove = this.props['canMove'];\r\n if (canMove !== null && canMove !== undefined) {\r\n this.transfer.nzCanMove = canMove;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\r\nimport { FormlyFieldTransfer } from './transfer.type';\r\nimport { TransferComponent } from './transfer.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTransfer, TransferComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTransferModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'transfer',\r\n component: FormlyFieldTransfer,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTransferModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.TransferComponent","i1"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG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ACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\r\n\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type {\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\n\r\n@Component({\r\n selector: 'formly-transfer',\r\n template: `\r\n <nz-transfer\r\n #transfer\r\n [nzDataSource]=\"nzDataSource\"\r\n [nzDisabled]=\"nzDisabled\"\r\n [nzTitles]=\"nzTitles\"\r\n [nzOperations]=\"nzOperations\"\r\n [nzListStyle]=\"nzListStyle\"\r\n [nzItemUnit]=\"nzItemUnit\"\r\n [nzItemsUnit]=\"nzItemsUnit\"\r\n [nzRenderList]=\"nzRenderList\"\r\n [nzRender]=\"nzRender\"\r\n [nzFooter]=\"nzFooter\"\r\n [nzShowSearch]=\"nzShowSearch\"\r\n [nzFilterOption]=\"nzFilterOption\"\r\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzSelectedKeys]=\"nzSelectedKeys\"\r\n [nzTargetKeys]=\"nzTargetKeys\"\r\n (nzChange)=\"change($event)\"\r\n (nzSearchChange)=\"searchChange($event)\"\r\n (nzSelectChange)=\"selectChange($event)\"\r\n style=\"flex: auto;\"\r\n ></nz-transfer>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: TransferComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(obj: NzSafeAny): void {\r\n setTimeout(() => {\r\n this.nzTargetKeys = obj;\r\n (this['cdr'] as ChangeDetectorRef).markForCheck();\r\n this.onChange(this.transfer.rightDataSource);\r\n }, 0);\r\n }\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n change(value: TransferChange): void {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(this.transfer.rightDataSource));\r\n } else {\r\n this.onChange(this.transfer.rightDataSource);\r\n }\r\n }\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange(value: TransferSelectChange) {\r\n this.nzSelectChange.emit(value);\r\n }\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange(value: TransferSearchChange) {\r\n this.nzSearchChange.emit(value);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable } from 'rxjs';\r\nimport {\r\n NzTransferComponent,\r\n TransferCanMove,\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TransferProps extends FormlyFieldProps {\r\n /**\r\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\r\n * @default []\r\n */\r\n dataSource?: TransferItem[];\r\n\r\n /**\r\n * 标题集合,顺序从左至右\r\n * @default ['', '']\r\n */\r\n titles?: string[];\r\n\r\n /**\r\n * 操作文案集合,顺序从下至上\r\n * @default ['', '']\r\n */\r\n operations?: string[];\r\n\r\n /**\r\n * 两个穿梭框的自定义样式,等同 ngStyle\r\n */\r\n listStyle?: NgStyleInterface;\r\n\r\n /**\r\n * 单数单位\r\n * @default 项目\r\n */\r\n itemUnit?: string;\r\n\r\n /**\r\n * 复数单位\r\n * @default 项目\r\n */\r\n itemsUnit?: string;\r\n\r\n /**\r\n * 自定义渲染列表,见示例\r\n * @default [null, null]\r\n */\r\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\r\n\r\n /**\r\n * 每行数据渲染模板,见示例\r\n */\r\n render?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 底部渲染模板,见示例\r\n */\r\n footer?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 是否显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\r\n */\r\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\r\n\r\n /**\r\n * 搜索框的默认值\r\n * @default 请输入搜索内容\r\n */\r\n searchPlaceholder?: string;\r\n\r\n /**\r\n * 当列表为空时显示的内容\r\n * @default 列表为空\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\r\n */\r\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\r\n\r\n /**\r\n * 设置被选中的 key 集合\r\n */\r\n selectedKeys?: string[];\r\n\r\n /**\r\n * 显示在右侧框数据的 key 集合\r\n */\r\n targetKeys?: string[];\r\n\r\n /**\r\n * 选项在两栏之间转移时的回调函数\r\n */\r\n onChange?: (value: TransferChange) => void;\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 TransferItem[] 格式\r\n */\r\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {\r\n type: 'transfer' | Type<FormlyFieldTransfer>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-transfer',\r\n template: `<formly-transfer\r\n #transfer\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzDataSource]=\"props['dataSource']\"\r\n [nzTitles]=\"props['titles']\"\r\n [nzOperations]=\"props['operations']\"\r\n [nzListStyle]=\"props['listStyle']\"\r\n [nzItemUnit]=\"props['itemUnit']\"\r\n [nzItemsUnit]=\"props['itemsUnit']\"\r\n [nzRenderList]=\"props['renderList']!\"\r\n [nzRender]=\"props['render'] ?? null\"\r\n [nzFooter]=\"props['footer'] ?? null\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzFilterOption]=\"props['filterOption']\"\r\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzSelectedKeys]=\"props['selectedKeys']\"\r\n [nzTargetKeys]=\"props['targetKeys']\"\r\n [resultMap]=\"props['resultMap']\"\r\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\r\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\r\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\r\n ></formly-transfer>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n dataSource: [],\r\n titles: ['', ''],\r\n operations: ['', ''],\r\n renderList: [null, null],\r\n listStyle: {}\r\n }\r\n };\r\n\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n\r\n ngOnInit(): void {\r\n const canMove = this.props['canMove'];\r\n if (canMove !== null && canMove !== undefined) {\r\n this.transfer.nzCanMove = canMove;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\r\nimport { FormlyFieldTransfer } from './transfer.type';\r\nimport { TransferComponent } from './transfer.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTransfer, TransferComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTransferModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'transfer',\r\n component: FormlyFieldTransfer,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTransferModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i3.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,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;;AAGD,IAAA,MAAM,CAAC,KAAqB,EAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,SAAS,YAAY,QAAQ,EAAE;AACtC,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;AAC9D,SAAA;AAAM,aAAA;YACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AA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AAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAaP,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAjB/B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,gBAAgB;QAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,SAAS,EAAE,mBAAmB;oBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBApBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;AACtD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import * as i4 from '@angular/common';
3
+ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i3 from '@ngx-formly/core';
5
+ import * as i4 from '@ngx-formly/core';
6
6
  import { FieldType, FormlyModule } from '@ngx-formly/core';
7
7
  import * as i2 from '@angular/forms';
8
8
  import { ReactiveFormsModule } from '@angular/forms';
9
9
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
- import * as i1 from 'ng-zorro-antd/tree-select';
10
+ import * as i3 from 'ng-zorro-antd/tree-select';
11
11
  import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
12
12
 
13
13
  class FormlyFieldTreeSelect extends FieldType {
@@ -26,8 +26,8 @@ class FormlyFieldTreeSelect extends FieldType {
26
26
  };
27
27
  }
28
28
  }
29
- FormlyFieldTreeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTreeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
- FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
29
+ FormlyFieldTreeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTreeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
+ FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
31
31
  [formControl]="formControl"
32
32
  [formlyAttributes]="field"
33
33
  [nzPlaceHolder]="props.placeholder ?? ''"
@@ -59,8 +59,8 @@ FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
59
59
  [nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
60
60
  [nzBackdrop]="props['backdrop']!!"
61
61
  (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
62
- ></nz-tree-select>`, isInline: true, components: [{ type: i1.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
62
+ ></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
64
64
  type: Component,
65
65
  args: [{
66
66
  selector: 'formly-field-treeselect',
@@ -103,27 +103,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
103
103
 
104
104
  class FormlyNzTreeSelectModule {
105
105
  }
106
- FormlyNzTreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
- FormlyNzTreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
106
+ FormlyNzTreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
+ FormlyNzTreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
108
108
  ReactiveFormsModule,
109
109
  FormlyNzFormFieldModule,
110
- NzTreeSelectModule, i3.FormlyModule] });
111
- FormlyNzTreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [[
112
- CommonModule,
113
- ReactiveFormsModule,
114
- FormlyNzFormFieldModule,
115
- NzTreeSelectModule,
116
- FormlyModule.forChild({
117
- types: [
118
- {
119
- name: 'tree-select',
120
- component: FormlyFieldTreeSelect,
121
- wrappers: ['form-field']
122
- }
123
- ]
124
- })
125
- ]] });
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
110
+ NzTreeSelectModule, i4.FormlyModule] });
111
+ FormlyNzTreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
112
+ ReactiveFormsModule,
113
+ FormlyNzFormFieldModule,
114
+ NzTreeSelectModule,
115
+ FormlyModule.forChild({
116
+ types: [
117
+ {
118
+ name: 'tree-select',
119
+ component: FormlyFieldTreeSelect,
120
+ wrappers: ['form-field']
121
+ }
122
+ ]
123
+ })] });
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
127
125
  type: NgModule,
128
126
  args: [{
129
127
  declarations: [FormlyFieldTreeSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\r\nimport type { NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TreeSelectProps extends FormlyFieldProps {\r\n /**\r\n * 显示清除按钮\r\n * @default false\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否展示 TreeNode title 前的图标,没有默认样式\r\n * @default false\r\n */\r\n showIcon?: boolean;\r\n\r\n /**\r\n * 显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 下拉菜单和选择器同宽\r\n * @default true\r\n */\r\n dropdownMatchSelectWidth?: boolean;\r\n\r\n /**\r\n * 下拉菜单的样式\r\n */\r\n dropdownStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 下拉菜单的 className 属性\r\n */\r\n dropdownClassName?: string;\r\n\r\n /**\r\n * 支持多选(当设置 nzCheckable 时自动变为true)\r\n * @default false\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 搜索隐藏未匹配的节点\r\n * @default false\r\n */\r\n hideUnMatched?: boolean;\r\n\r\n /**\r\n * 节点前添加 Checkbox 复选框\r\n * @default false\r\n */\r\n checkable?: boolean;\r\n\r\n /**\r\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\r\n * @default false\r\n */\r\n checkStrictly?: boolean;\r\n\r\n /**\r\n * 节点前添加展开图标\r\n * @default true\r\n */\r\n showExpand?: boolean;\r\n\r\n /**\r\n * 是否展示连接线\r\n * @default false\r\n */\r\n showLine?: boolean;\r\n\r\n /**\r\n * 是否异步加载(显示加载状态)\r\n * @default false\r\n */\r\n asyncData?: boolean;\r\n\r\n /**\r\n * treeNodes 数据\r\n * @default []\r\n */\r\n nodes?: NzTreeNodeOptions[];\r\n\r\n /**\r\n * 默认展开所有树节点\r\n * @default false\r\n */\r\n defaultExpandAll?: boolean;\r\n\r\n /**\r\n * 默认展开指定的树节点\r\n */\r\n expandedKeys?: string[];\r\n\r\n /**\r\n * \t如何在输入框显示所选的节点值的方法\r\n * @default (node: NzTreeNode) => node.title\r\n */\r\n displayWith?: (node: NzTreeNode) => string;\r\n\r\n /**\r\n * 最多显示多少个 tag\r\n *\r\n */\r\n maxTagCount?: number;\r\n\r\n /**\r\n * 隐藏 tag 时显示的内容\r\n */\r\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\r\n\r\n /**\r\n * 自定义节点\r\n */\r\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\r\n\r\n /**\r\n * 虚拟滚动的总高度\r\n */\r\n virtualHeight?: string | null;\r\n\r\n /**\r\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\r\n * @default 28\r\n */\r\n virtualItemSize?: number;\r\n\r\n /**\r\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\r\n * @default 500\r\n */\r\n virtualMaxBufferPx?: number;\r\n\r\n /**\r\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\r\n * @default 28\r\n */\r\n virtualMinBufferPx?: number;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击展开树节点图标调用\r\n */\r\n expandChange?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;\r\n}\r\n\r\nexport interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {\r\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-treeselect',\r\n template: ` <nz-tree-select\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [ngClass]=\"props['className']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzShowIcon]=\"props['showIcon']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\r\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\r\n [nzCheckable]=\"props['checkable']!!\"\r\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\r\n [nzShowExpand]=\"props['showExpand']!!\"\r\n [nzShowLine]=\"props['showLine']!!\"\r\n [nzAsyncData]=\"props['asyncData']\"\r\n [nzNodes]=\"props['nodes']!\"\r\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\r\n [nzExpandedKeys]=\"props['expandedKeys']\"\r\n [nzDisplayWith]=\"props['displayWith']\"\r\n [nzMaxTagCount]=\"props['maxTagCount']\"\r\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\r\n [nzTreeTemplate]=\"props['treeTemplate']\"\r\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\r\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\r\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\r\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\r\n ></nz-tree-select>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n dropdownMatchSelectWidth: true,\r\n showExpand: true,\r\n nodes: [],\r\n displayWith: (node: NzTreeNode) => node.title,\r\n virtualItemSize: 28,\r\n virtualMaxBufferPx: 500,\r\n virtualMinBufferPx: 28\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\r\nimport { FormlyFieldTreeSelect } from './tree-select.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTreeSelect],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTreeSelectModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'tree-select',\r\n component: FormlyFieldTreeSelect,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTreeSelectModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA4MM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AArCrE,IAAA,WAAA,GAAA;;AAsCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;S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EAlB1B,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,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-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\r\nimport type { NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TreeSelectProps extends FormlyFieldProps {\r\n /**\r\n * 显示清除按钮\r\n * @default false\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否展示 TreeNode title 前的图标,没有默认样式\r\n * @default false\r\n */\r\n showIcon?: boolean;\r\n\r\n /**\r\n * 显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 下拉菜单和选择器同宽\r\n * @default true\r\n */\r\n dropdownMatchSelectWidth?: boolean;\r\n\r\n /**\r\n * 下拉菜单的样式\r\n */\r\n dropdownStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 下拉菜单的 className 属性\r\n */\r\n dropdownClassName?: string;\r\n\r\n /**\r\n * 支持多选(当设置 nzCheckable 时自动变为true)\r\n * @default false\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 搜索隐藏未匹配的节点\r\n * @default false\r\n */\r\n hideUnMatched?: boolean;\r\n\r\n /**\r\n * 节点前添加 Checkbox 复选框\r\n * @default false\r\n */\r\n checkable?: boolean;\r\n\r\n /**\r\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\r\n * @default false\r\n */\r\n checkStrictly?: boolean;\r\n\r\n /**\r\n * 节点前添加展开图标\r\n * @default true\r\n */\r\n showExpand?: boolean;\r\n\r\n /**\r\n * 是否展示连接线\r\n * @default false\r\n */\r\n showLine?: boolean;\r\n\r\n /**\r\n * 是否异步加载(显示加载状态)\r\n * @default false\r\n */\r\n asyncData?: boolean;\r\n\r\n /**\r\n * treeNodes 数据\r\n * @default []\r\n */\r\n nodes?: NzTreeNodeOptions[];\r\n\r\n /**\r\n * 默认展开所有树节点\r\n * @default false\r\n */\r\n defaultExpandAll?: boolean;\r\n\r\n /**\r\n * 默认展开指定的树节点\r\n */\r\n expandedKeys?: string[];\r\n\r\n /**\r\n * \t如何在输入框显示所选的节点值的方法\r\n * @default (node: NzTreeNode) => node.title\r\n */\r\n displayWith?: (node: NzTreeNode) => string;\r\n\r\n /**\r\n * 最多显示多少个 tag\r\n *\r\n */\r\n maxTagCount?: number;\r\n\r\n /**\r\n * 隐藏 tag 时显示的内容\r\n */\r\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\r\n\r\n /**\r\n * 自定义节点\r\n */\r\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\r\n\r\n /**\r\n * 虚拟滚动的总高度\r\n */\r\n virtualHeight?: string | null;\r\n\r\n /**\r\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\r\n * @default 28\r\n */\r\n virtualItemSize?: number;\r\n\r\n /**\r\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\r\n * @default 500\r\n */\r\n virtualMaxBufferPx?: number;\r\n\r\n /**\r\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\r\n * @default 28\r\n */\r\n virtualMinBufferPx?: number;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击展开树节点图标调用\r\n */\r\n expandChange?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;\r\n}\r\n\r\nexport interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {\r\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-treeselect',\r\n template: ` <nz-tree-select\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [ngClass]=\"props['className']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzShowIcon]=\"props['showIcon']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\r\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\r\n [nzCheckable]=\"props['checkable']!!\"\r\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\r\n [nzShowExpand]=\"props['showExpand']!!\"\r\n [nzShowLine]=\"props['showLine']!!\"\r\n [nzAsyncData]=\"props['asyncData']\"\r\n [nzNodes]=\"props['nodes']!\"\r\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\r\n [nzExpandedKeys]=\"props['expandedKeys']\"\r\n [nzDisplayWith]=\"props['displayWith']\"\r\n [nzMaxTagCount]=\"props['maxTagCount']\"\r\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\r\n [nzTreeTemplate]=\"props['treeTemplate']\"\r\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\r\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\r\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\r\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\r\n ></nz-tree-select>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n dropdownMatchSelectWidth: true,\r\n showExpand: true,\r\n nodes: [],\r\n displayWith: (node: NzTreeNode) => node.title,\r\n virtualItemSize: 28,\r\n virtualMaxBufferPx: 500,\r\n virtualMinBufferPx: 28\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\r\nimport { FormlyFieldTreeSelect } from './tree-select.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTreeSelect],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTreeSelectModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'tree-select',\r\n component: FormlyFieldTreeSelect,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTreeSelectModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA4MM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AArCrE,IAAA,WAAA,GAAA;;AAsCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,CAAC,IAAgB,KAAK,IAAI,CAAC,KAAK;AAC7C,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,kBAAkB,EAAE,GAAG;AACvB,gBAAA,kBAAkB,EAAE,EAAE;AACvB,aAAA;SACF,CAAC;AACH,KAAA;;kHAZY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAnCtB,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAA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ACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/common';
3
+ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i3$1 from '@ngx-formly/core';
5
+ import * as i2$1 from '@ngx-formly/core';
6
6
  import { FieldType, FormlyModule } from '@ngx-formly/core';
7
- import * as i2$1 from '@angular/forms';
7
+ import * as i1$1 from '@angular/forms';
8
8
  import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
9
9
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
- import * as i1 from 'ng-zorro-antd/upload';
10
+ import * as i2 from 'ng-zorro-antd/upload';
11
11
  import { NzUploadComponent, NzUploadModule } from 'ng-zorro-antd/upload';
12
- import * as i2 from 'ng-zorro-antd/button';
12
+ import * as i3 from 'ng-zorro-antd/button';
13
13
  import { NzButtonModule } from 'ng-zorro-antd/button';
14
14
  import * as i6 from 'ng-zorro-antd/icon';
15
15
  import { NzIconModule } from 'ng-zorro-antd/icon';
16
- import * as i4 from 'ng-zorro-antd/core/wave';
17
- import * as i5 from 'ng-zorro-antd/core/transition-patch';
16
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
17
+ import * as i5 from 'ng-zorro-antd/core/wave';
18
18
 
19
19
  /* eslint-disable @typescript-eslint/no-empty-function */
20
20
  class UploadComponent extends NzUploadComponent {
@@ -52,8 +52,8 @@ class UploadComponent extends NzUploadComponent {
52
52
  }
53
53
  }
54
54
  }
55
- UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
56
- UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadComponent, selector: "formly-upload", inputs: { text: "text", className: "className", resultMap: "resultMap" }, providers: [
55
+ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
56
+ 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: [
57
57
  {
58
58
  provide: NG_VALUE_ACCESSOR,
59
59
  useExisting: UploadComponent,
@@ -106,8 +106,8 @@ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
106
106
  </button>
107
107
  </ng-template>
108
108
  </nz-upload>
109
- `, isInline: true, components: [{ type: i1.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"] }, { type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, decorators: [{
109
+ `, 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 });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, decorators: [{
111
111
  type: Component,
112
112
  args: [{
113
113
  selector: 'formly-upload',
@@ -204,8 +204,8 @@ class FormlyFieldUpload extends FieldType {
204
204
  }
205
205
  }
206
206
  }
207
- FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
208
- FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-upload
207
+ FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
208
+ 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
209
209
  #upload
210
210
  [formControl]="formControl"
211
211
  [formlyAttributes]="field"
@@ -242,8 +242,8 @@ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
242
242
  (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
243
243
  [resultMap]="props['resultMap']"
244
244
  >
245
- </formly-upload>`, isInline: true, components: [{ type: UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldUpload, decorators: [{
245
+ </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 });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
247
247
  type: Component,
248
248
  args: [{
249
249
  selector: 'formly-field-upload',
@@ -294,31 +294,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
294
294
 
295
295
  class FormlyNzUploadModule {
296
296
  }
297
- FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
298
- FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
297
+ FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
298
+ FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
299
299
  ReactiveFormsModule,
300
300
  FormlyNzFormFieldModule,
301
301
  NzUploadModule,
302
302
  NzButtonModule,
303
- NzIconModule, i3$1.FormlyModule] });
304
- FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, imports: [[
305
- CommonModule,
306
- ReactiveFormsModule,
307
- FormlyNzFormFieldModule,
308
- NzUploadModule,
309
- NzButtonModule,
310
- NzIconModule,
311
- FormlyModule.forChild({
312
- types: [
313
- {
314
- name: 'upload',
315
- component: FormlyFieldUpload,
316
- wrappers: ['form-field']
317
- }
318
- ]
319
- })
320
- ]] });
321
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
303
+ NzIconModule, i2$1.FormlyModule] });
304
+ FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
305
+ ReactiveFormsModule,
306
+ FormlyNzFormFieldModule,
307
+ NzUploadModule,
308
+ NzButtonModule,
309
+ NzIconModule,
310
+ FormlyModule.forChild({
311
+ types: [
312
+ {
313
+ name: 'upload',
314
+ component: FormlyFieldUpload,
315
+ wrappers: ['form-field']
316
+ }
317
+ ]
318
+ })] });
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
322
320
  type: NgModule,
323
321
  args: [{
324
322
  declarations: [FormlyFieldUpload, UploadComponent],
@@ -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 */\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\r\n\r\n@Component({\r\n selector: 'formly-upload',\r\n template: `\r\n <nz-upload\r\n [nzAccept]=\"nzAccept\"\r\n [nzAction]=\"nzAction\"\r\n [nzDirectory]=\"nzDirectory\"\r\n [nzBeforeUpload]=\"nzBeforeUpload\"\r\n [nzCustomRequest]=\"nzCustomRequest\"\r\n [nzData]=\"nzData\"\r\n [(nzFileList)]=\"nzFileList\"\r\n [nzLimit]=\"nzLimit\"\r\n [nzSize]=\"nzSize\"\r\n [nzFileType]=\"nzFileType\"\r\n [nzFilter]=\"nzFilter\"\r\n [nzHeaders]=\"nzHeaders\"\r\n [nzListType]=\"nzListType\"\r\n [nzMultiple]=\"nzMultiple\"\r\n [nzName]=\"nzName\"\r\n [nzShowUploadList]=\"nzShowUploadList\"\r\n [nzShowButton]=\"nzShowButton\"\r\n [nzWithCredentials]=\"nzWithCredentials\"\r\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\r\n [nzPreview]=\"nzPreview\"\r\n [nzPreviewFile]=\"nzPreviewFile\"\r\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\r\n [nzRemove]=\"nzRemove\"\r\n [nzDownload]=\"nzDownload\"\r\n [nzTransformFile]=\"nzTransformFile\"\r\n [nzIconRender]=\"nzIconRender\"\r\n [nzFileListRender]=\"nzFileListRender\"\r\n [ngClass]=\"className\"\r\n (nzChange)=\"change($event)\"\r\n [nzType]=\"nzType\"\r\n (nzFileListChange)=\"fileListChange($event)\"\r\n >\r\n <ng-container *ngIf=\"text; else buttontext\">\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n {{ text }}\r\n </button>\r\n </ng-container>\r\n\r\n <ng-template #buttontext>\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n </button>\r\n </ng-template>\r\n </nz-upload>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: UploadComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class UploadComponent extends NzUploadComponent implements ControlValueAccessor {\r\n @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n @Input() text?: string;\r\n /**\r\n * 样式名\r\n */\r\n @Input() className = '';\r\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(): void {}\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n fileListChange(list: NzUploadFile[]) {\r\n this.nzFileListChange.emit(list);\r\n }\r\n\r\n change(value: NzUploadChangeParam) {\r\n this.nzChange.emit(value);\r\n if (['removed', 'success'].includes(value.type ?? '')) {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\r\n } else {\r\n this.onChange(value.fileList.filter(x => x.status === 'done'));\r\n }\r\n }\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable, Subscription } from 'rxjs';\r\nimport {\r\n NzUploadComponent,\r\n NzUploadType,\r\n NzUploadChangeParam,\r\n NzUploadFile,\r\n NzUploadTransformFileType,\r\n UploadFilter,\r\n NzIconRenderTemplate,\r\n NzUploadListType\r\n} from 'ng-zorro-antd/upload';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\ninterface UploadProps extends FormlyFieldProps {\r\n /**\r\n * 接受上传的文件类型, 详见 input accept Attribute\r\n */\r\n accept?: string | string[];\r\n\r\n /**\r\n * 必选参数, 上传的地址\r\n */\r\n action?: string | ((file: NzUploadFile) => string | Observable<string>);\r\n\r\n /**\r\n * 支持上传文件夹(caniuse)\r\n * @default false\r\n */\r\n directory?: boolean;\r\n\r\n /**\r\n * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。\r\n */\r\n beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。\r\n */\r\n customRequest?: (item: NzSafeAny) => Subscription;\r\n\r\n /**\r\n * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 文件列表,双向绑定\r\n */\r\n fileList?: NzUploadFile[];\r\n\r\n /**\r\n * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限\r\n * @default 0\r\n */\r\n limit?: number;\r\n\r\n /**\r\n * 限制文件大小,单位:KB;0 表示不限\r\n * @default 0\r\n */\r\n size?: number;\r\n\r\n /**\r\n * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp\r\n */\r\n fileType?: string;\r\n\r\n /**\r\n * 自定义过滤器\r\n */\r\n filter?: UploadFilter[];\r\n\r\n /**\r\n * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card\r\n * @default text\r\n */\r\n listType?: NzUploadListType;\r\n\r\n /**\r\n * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。\r\n * @default false;\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 发到后台的文件参数名\r\n * @default file\r\n */\r\n name?: string;\r\n\r\n /**\r\n * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon\r\n * @default true\r\n */\r\n showUploadList?:\r\n | boolean\r\n | { showPreviewIcon?: boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean };\r\n\r\n /**\r\n * 是否展示上传按钮\r\n * @default true\r\n */\r\n showButton?: boolean;\r\n\r\n /**\r\n * 上传请求时是否携带 cookie\r\n * @default false\r\n */\r\n withCredentials?: boolean;\r\n\r\n /**\r\n * 点击打开文件对话框\r\n * @default true\r\n */\r\n openFileDialogOnClick?: boolean;\r\n\r\n /**\r\n * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。\r\n */\r\n preview?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。\r\n */\r\n previewFile?: (file: NzUploadFile) => Observable<string>;\r\n\r\n /**\r\n * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。\r\n */\r\n previewIsImage?: (file: NzUploadFile) => boolean;\r\n\r\n /**\r\n * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。\r\n */\r\n remove?: (file: NzUploadFile) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 上传文件改变时的状态\r\n */\r\n onChange?: (value: NzUploadChangeParam) => void;\r\n\r\n /**\r\n * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\r\n * @default 跳转新标签页\r\n */\r\n download?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 在上传之前转换文件。支持返回一个 Observable 对象\r\n */\r\n transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;\r\n\r\n /**\r\n * 自定义显示 icon\r\n */\r\n iconRender?: NzIconRenderTemplate | null;\r\n\r\n /**\r\n * 自定义显示整个列表\r\n */\r\n fileListRender?: TemplateRef<void> | null;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n text?: string;\r\n\r\n /**\r\n * 文件列表改变事件\r\n */\r\n fileListChange?: (list: NzUploadFile[]) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 NzUploadFile[] 格式\r\n */\r\n resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\r\n type: 'upload' | Type<FormlyFieldUpload>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-upload',\r\n template: `<formly-upload\r\n #upload\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzAccept]=\"props['accept']\"\r\n [nzAction]=\"props['action']\"\r\n [nzDirectory]=\"props['directory']!!\"\r\n [nzBeforeUpload]=\"props['beforeUpload']\"\r\n [nzCustomRequest]=\"props['customRequest']\"\r\n [nzData]=\"props['data']\"\r\n [(nzFileList)]=\"props['fileList']\"\r\n [nzLimit]=\"props['limit']\"\r\n [nzSize]=\"props['size']\"\r\n [nzFileType]=\"props['fileType']\"\r\n [nzFilter]=\"props['filter']!\"\r\n [nzHeaders]=\"props['headers']\"\r\n [nzListType]=\"props['listType']!\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzName]=\"props['name']!\"\r\n [nzShowUploadList]=\"props['showUploadList']\"\r\n [nzShowButton]=\"props['showButton']!!\"\r\n [nzWithCredentials]=\"props['withCredentials']!!\"\r\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\r\n [nzPreview]=\"props['preview']\"\r\n [nzPreviewFile]=\"props['previewFile']\"\r\n [nzPreviewIsImage]=\"props['previewIsImage']\"\r\n [nzRemove]=\"props['remove']\"\r\n (nzChange)=\"props['change'] && props['change']($event)\"\r\n [nzDownload]=\"props['download']\"\r\n [nzTransformFile]=\"props['transformFile']\"\r\n [nzIconRender]=\"props['iconRender'] ?? null\"\r\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\r\n [text]=\"props['text']\"\r\n [className]=\"props['className']\"\r\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange']($event)\"\r\n [resultMap]=\"props['resultMap']\"\r\n >\r\n </formly-upload>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n listType: 'text' as const,\r\n name: 'file',\r\n showUploadList: true,\r\n showButton: true,\r\n openFileDialogOnClick: true,\r\n limit: 0,\r\n size: 0,\r\n filter: [],\r\n text: ''\r\n }\r\n };\r\n\r\n @ViewChild('upload', { static: true }) upload!: NzUploadComponent;\r\n\r\n ngOnInit(): void {\r\n const type = this.props.type;\r\n if (type) {\r\n this.upload.nzType = type as NzUploadType;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { FormlyFieldUpload } from './upload.type';\r\nimport { UploadComponent } from './upload.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldUpload, UploadComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzUploadModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'upload',\r\n component: FormlyFieldUpload,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzUploadModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */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EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EApBtB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,cAAc;YACd,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,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;AACF,iBAAA,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 */\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\r\n\r\n@Component({\r\n selector: 'formly-upload',\r\n template: `\r\n <nz-upload\r\n [nzAccept]=\"nzAccept\"\r\n [nzAction]=\"nzAction\"\r\n [nzDirectory]=\"nzDirectory\"\r\n [nzBeforeUpload]=\"nzBeforeUpload\"\r\n [nzCustomRequest]=\"nzCustomRequest\"\r\n [nzData]=\"nzData\"\r\n [(nzFileList)]=\"nzFileList\"\r\n [nzLimit]=\"nzLimit\"\r\n [nzSize]=\"nzSize\"\r\n [nzFileType]=\"nzFileType\"\r\n [nzFilter]=\"nzFilter\"\r\n [nzHeaders]=\"nzHeaders\"\r\n [nzListType]=\"nzListType\"\r\n [nzMultiple]=\"nzMultiple\"\r\n [nzName]=\"nzName\"\r\n [nzShowUploadList]=\"nzShowUploadList\"\r\n [nzShowButton]=\"nzShowButton\"\r\n [nzWithCredentials]=\"nzWithCredentials\"\r\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\r\n [nzPreview]=\"nzPreview\"\r\n [nzPreviewFile]=\"nzPreviewFile\"\r\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\r\n [nzRemove]=\"nzRemove\"\r\n [nzDownload]=\"nzDownload\"\r\n [nzTransformFile]=\"nzTransformFile\"\r\n [nzIconRender]=\"nzIconRender\"\r\n [nzFileListRender]=\"nzFileListRender\"\r\n [ngClass]=\"className\"\r\n (nzChange)=\"change($event)\"\r\n [nzType]=\"nzType\"\r\n (nzFileListChange)=\"fileListChange($event)\"\r\n >\r\n <ng-container *ngIf=\"text; else buttontext\">\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n {{ text }}\r\n </button>\r\n </ng-container>\r\n\r\n <ng-template #buttontext>\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n </button>\r\n </ng-template>\r\n </nz-upload>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: UploadComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class UploadComponent extends NzUploadComponent implements ControlValueAccessor {\r\n @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n @Input() text?: string;\r\n /**\r\n * 样式名\r\n */\r\n @Input() className = '';\r\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(): void {}\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n fileListChange(list: NzUploadFile[]) {\r\n this.nzFileListChange.emit(list);\r\n }\r\n\r\n change(value: NzUploadChangeParam) {\r\n this.nzChange.emit(value);\r\n if (['removed', 'success'].includes(value.type ?? '')) {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\r\n } else {\r\n this.onChange(value.fileList.filter(x => x.status === 'done'));\r\n }\r\n }\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable, Subscription } from 'rxjs';\r\nimport {\r\n NzUploadComponent,\r\n NzUploadType,\r\n NzUploadChangeParam,\r\n NzUploadFile,\r\n NzUploadTransformFileType,\r\n UploadFilter,\r\n NzIconRenderTemplate,\r\n NzUploadListType\r\n} from 'ng-zorro-antd/upload';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\ninterface UploadProps extends FormlyFieldProps {\r\n /**\r\n * 接受上传的文件类型, 详见 input accept Attribute\r\n */\r\n accept?: string | string[];\r\n\r\n /**\r\n * 必选参数, 上传的地址\r\n */\r\n action?: string | ((file: NzUploadFile) => string | Observable<string>);\r\n\r\n /**\r\n * 支持上传文件夹(caniuse)\r\n * @default false\r\n */\r\n directory?: boolean;\r\n\r\n /**\r\n * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。\r\n */\r\n beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。\r\n */\r\n customRequest?: (item: NzSafeAny) => Subscription;\r\n\r\n /**\r\n * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 文件列表,双向绑定\r\n */\r\n fileList?: NzUploadFile[];\r\n\r\n /**\r\n * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限\r\n * @default 0\r\n */\r\n limit?: number;\r\n\r\n /**\r\n * 限制文件大小,单位:KB;0 表示不限\r\n * @default 0\r\n */\r\n size?: number;\r\n\r\n /**\r\n * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp\r\n */\r\n fileType?: string;\r\n\r\n /**\r\n * 自定义过滤器\r\n */\r\n filter?: UploadFilter[];\r\n\r\n /**\r\n * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card\r\n * @default text\r\n */\r\n listType?: NzUploadListType;\r\n\r\n /**\r\n * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。\r\n * @default false;\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 发到后台的文件参数名\r\n * @default file\r\n */\r\n name?: string;\r\n\r\n /**\r\n * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon\r\n * @default true\r\n */\r\n showUploadList?:\r\n | boolean\r\n | { showPreviewIcon?: boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean };\r\n\r\n /**\r\n * 是否展示上传按钮\r\n * @default true\r\n */\r\n showButton?: boolean;\r\n\r\n /**\r\n * 上传请求时是否携带 cookie\r\n * @default false\r\n */\r\n withCredentials?: boolean;\r\n\r\n /**\r\n * 点击打开文件对话框\r\n * @default true\r\n */\r\n openFileDialogOnClick?: boolean;\r\n\r\n /**\r\n * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。\r\n */\r\n preview?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。\r\n */\r\n previewFile?: (file: NzUploadFile) => Observable<string>;\r\n\r\n /**\r\n * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。\r\n */\r\n previewIsImage?: (file: NzUploadFile) => boolean;\r\n\r\n /**\r\n * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。\r\n */\r\n remove?: (file: NzUploadFile) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 上传文件改变时的状态\r\n */\r\n onChange?: (value: NzUploadChangeParam) => void;\r\n\r\n /**\r\n * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\r\n * @default 跳转新标签页\r\n */\r\n download?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 在上传之前转换文件。支持返回一个 Observable 对象\r\n */\r\n transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;\r\n\r\n /**\r\n * 自定义显示 icon\r\n */\r\n iconRender?: NzIconRenderTemplate | null;\r\n\r\n /**\r\n * 自定义显示整个列表\r\n */\r\n fileListRender?: TemplateRef<void> | null;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n text?: string;\r\n\r\n /**\r\n * 文件列表改变事件\r\n */\r\n fileListChange?: (list: NzUploadFile[]) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 NzUploadFile[] 格式\r\n */\r\n resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\r\n type: 'upload' | Type<FormlyFieldUpload>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-upload',\r\n template: `<formly-upload\r\n #upload\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzAccept]=\"props['accept']\"\r\n [nzAction]=\"props['action']\"\r\n [nzDirectory]=\"props['directory']!!\"\r\n [nzBeforeUpload]=\"props['beforeUpload']\"\r\n [nzCustomRequest]=\"props['customRequest']\"\r\n [nzData]=\"props['data']\"\r\n [(nzFileList)]=\"props['fileList']\"\r\n [nzLimit]=\"props['limit']\"\r\n [nzSize]=\"props['size']\"\r\n [nzFileType]=\"props['fileType']\"\r\n [nzFilter]=\"props['filter']!\"\r\n [nzHeaders]=\"props['headers']\"\r\n [nzListType]=\"props['listType']!\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzName]=\"props['name']!\"\r\n [nzShowUploadList]=\"props['showUploadList']\"\r\n [nzShowButton]=\"props['showButton']!!\"\r\n [nzWithCredentials]=\"props['withCredentials']!!\"\r\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\r\n [nzPreview]=\"props['preview']\"\r\n [nzPreviewFile]=\"props['previewFile']\"\r\n [nzPreviewIsImage]=\"props['previewIsImage']\"\r\n [nzRemove]=\"props['remove']\"\r\n (nzChange)=\"props['change'] && props['change']($event)\"\r\n [nzDownload]=\"props['download']\"\r\n [nzTransformFile]=\"props['transformFile']\"\r\n [nzIconRender]=\"props['iconRender'] ?? null\"\r\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\r\n [text]=\"props['text']\"\r\n [className]=\"props['className']\"\r\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange']($event)\"\r\n [resultMap]=\"props['resultMap']\"\r\n >\r\n </formly-upload>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n listType: 'text' as const,\r\n name: 'file',\r\n showUploadList: true,\r\n showButton: true,\r\n openFileDialogOnClick: true,\r\n limit: 0,\r\n size: 0,\r\n filter: [],\r\n text: ''\r\n }\r\n };\r\n\r\n @ViewChild('upload', { static: true }) upload!: NzUploadComponent;\r\n\r\n ngOnInit(): void {\r\n const type = this.props.type;\r\n if (type) {\r\n this.upload.nzType = type as NzUploadType;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { FormlyFieldUpload } from './upload.type';\r\nimport { UploadComponent } from './upload.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldUpload, UploadComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzUploadModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'upload',\r\n component: FormlyFieldUpload,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzUploadModule {}\r\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;QACM,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;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,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,K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