ngx-formly-zorro-antd 17.0.10 → 17.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +2 -4
  3. package/card-wrapper/card-wrapper.props.d.ts +3 -2
  4. package/common/interface.d.ts +3 -1
  5. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  6. package/esm2022/autocomplete/public_api.mjs +1 -1
  7. package/esm2022/button/button.module.mjs +1 -1
  8. package/esm2022/button/button.type.mjs +123 -123
  9. package/esm2022/button/public_api.mjs +1 -1
  10. package/esm2022/button-group/button-group.module.mjs +1 -1
  11. package/esm2022/button-group/button-group.type.mjs +67 -67
  12. package/esm2022/button-group/public_api.mjs +1 -1
  13. package/esm2022/card/card.module.mjs +1 -1
  14. package/esm2022/card/card.type.mjs +51 -51
  15. package/esm2022/card/public_api.mjs +1 -1
  16. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  17. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  18. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  19. package/esm2022/card-wrapper/public_api.mjs +1 -1
  20. package/esm2022/cascader/cascader.module.mjs +1 -1
  21. package/esm2022/cascader/cascader.type.mjs +65 -65
  22. package/esm2022/cascader/public_api.mjs +1 -1
  23. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  24. package/esm2022/checkbox/checkbox.type.mjs +39 -39
  25. package/esm2022/checkbox/public_api.mjs +1 -1
  26. package/esm2022/common/common.module.mjs +1 -1
  27. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  28. package/esm2022/common/formly-utils.mjs +1 -1
  29. package/esm2022/common/interface.mjs +1 -1
  30. package/esm2022/common/public_api.mjs +1 -1
  31. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  32. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  33. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  34. package/esm2022/datepicker/public_api.mjs +1 -1
  35. package/esm2022/extension/public_api.mjs +1 -1
  36. package/esm2022/extension/value-changes-extension.mjs +1 -1
  37. package/esm2022/form-field/form-field.module.mjs +1 -1
  38. package/esm2022/form-field/form-field.props.mjs +1 -1
  39. package/esm2022/form-field/form-field.wrapper.mjs +125 -125
  40. package/esm2022/form-field/public_api.mjs +1 -1
  41. package/esm2022/grid/grid.module.mjs +1 -1
  42. package/esm2022/grid/grid.props.mjs +1 -1
  43. package/esm2022/grid/grid.type.mjs +59 -59
  44. package/esm2022/grid/public_api.mjs +1 -1
  45. package/esm2022/index.mjs +1 -1
  46. package/esm2022/input/input.module.mjs +1 -1
  47. package/esm2022/input/input.props.mjs +1 -1
  48. package/esm2022/input/input.type.mjs +297 -286
  49. package/esm2022/input/public_api.mjs +1 -1
  50. package/esm2022/input-group/input-group.module.mjs +1 -1
  51. package/esm2022/input-group/input-group.props.mjs +1 -1
  52. package/esm2022/input-group/input-group.type.mjs +39 -39
  53. package/esm2022/input-group/public_api.mjs +1 -1
  54. package/esm2022/input-number/input-number.module.mjs +1 -1
  55. package/esm2022/input-number/input-number.props.mjs +1 -1
  56. package/esm2022/input-number/input-number.type.mjs +89 -89
  57. package/esm2022/input-number/public_api.mjs +1 -1
  58. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  59. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  60. package/esm2022/radio/public_api.mjs +1 -1
  61. package/esm2022/radio/radio.module.mjs +1 -1
  62. package/esm2022/radio/radio.type.mjs +81 -81
  63. package/esm2022/rate/public_api.mjs +1 -1
  64. package/esm2022/rate/rate.module.mjs +1 -1
  65. package/esm2022/rate/rate.type.mjs +33 -33
  66. package/esm2022/ref-template/public_api.mjs +1 -1
  67. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  68. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  69. package/esm2022/select/public_api.mjs +1 -1
  70. package/esm2022/select/select.module.mjs +1 -1
  71. package/esm2022/select/select.props.mjs +1 -1
  72. package/esm2022/select/select.type.mjs +123 -123
  73. package/esm2022/slider/public_api.mjs +1 -1
  74. package/esm2022/slider/slider.module.mjs +1 -1
  75. package/esm2022/slider/slider.type.mjs +33 -33
  76. package/esm2022/space/public_api.mjs +1 -1
  77. package/esm2022/space/space.module.mjs +1 -1
  78. package/esm2022/space/space.type.mjs +27 -27
  79. package/esm2022/switch/public_api.mjs +1 -1
  80. package/esm2022/switch/switch.module.mjs +1 -1
  81. package/esm2022/switch/switch.type.mjs +25 -25
  82. package/esm2022/tabs/public_api.mjs +1 -1
  83. package/esm2022/tabs/tabs.module.mjs +1 -1
  84. package/esm2022/tabs/tabs.props.mjs +1 -1
  85. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  86. package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
  87. package/esm2022/text-value/public_api.mjs +3 -0
  88. package/esm2022/text-value/text-value.module.mjs +46 -0
  89. package/esm2022/text-value/text-value.type.mjs +68 -0
  90. package/esm2022/textarea/public_api.mjs +1 -1
  91. package/esm2022/textarea/textarea.module.mjs +1 -1
  92. package/esm2022/textarea/textarea.type.mjs +113 -113
  93. package/esm2022/timepicker/public_api.mjs +1 -1
  94. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  95. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  96. package/esm2022/transfer/public_api.mjs +1 -1
  97. package/esm2022/transfer/transfer.component.mjs +49 -49
  98. package/esm2022/transfer/transfer.module.mjs +1 -1
  99. package/esm2022/transfer/transfer.type.mjs +47 -47
  100. package/esm2022/tree-select/public_api.mjs +1 -1
  101. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  102. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  103. package/esm2022/upload/public_api.mjs +1 -1
  104. package/esm2022/upload/upload.component.mjs +145 -145
  105. package/esm2022/upload/upload.module.mjs +1 -1
  106. package/esm2022/upload/upload.props.mjs +1 -1
  107. package/esm2022/upload/upload.type.mjs +88 -87
  108. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  109. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  110. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  111. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  112. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  113. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  114. package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
  115. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  116. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  117. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  118. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +38 -38
  119. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  120. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  122. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  124. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +124 -124
  125. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  126. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  127. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  128. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +38 -38
  129. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  131. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  132. package/fesm2022/ngx-formly-zorro-antd-input.mjs +297 -286
  133. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  134. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  135. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  136. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  137. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  138. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  139. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  140. package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
  141. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  142. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  143. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  144. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  145. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  146. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  147. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  148. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  149. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  150. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
  151. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
  152. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
  153. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  154. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  155. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  156. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  157. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  158. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  159. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  160. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +230 -230
  161. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  162. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  163. package/form-field/form-field.props.d.ts +8 -16
  164. package/grid/grid.props.d.ts +6 -9
  165. package/input/input.type.d.ts +6 -1
  166. package/input-group/input-group.props.d.ts +4 -0
  167. package/package.json +24 -18
  168. package/text-value/index.d.ts +5 -0
  169. package/text-value/public_api.d.ts +2 -0
  170. package/text-value/text-value.module.d.ts +11 -0
  171. package/text-value/text-value.type.d.ts +37 -0
  172. package/tree-select/tree-select.type.d.ts +2 -3
  173. package/upload/upload.component.d.ts +3 -4
  174. package/autocomplete/package.json +0 -3
  175. package/button/package.json +0 -3
  176. package/button-group/package.json +0 -3
  177. package/card/package.json +0 -3
  178. package/card-wrapper/package.json +0 -3
  179. package/cascader/package.json +0 -3
  180. package/checkbox/package.json +0 -3
  181. package/common/package.json +0 -3
  182. package/datepicker/package.json +0 -3
  183. package/extension/package.json +0 -3
  184. package/form-field/package.json +0 -3
  185. package/grid/package.json +0 -3
  186. package/input/package.json +0 -3
  187. package/input-group/package.json +0 -3
  188. package/input-number/package.json +0 -3
  189. package/radio/package.json +0 -3
  190. package/rate/package.json +0 -3
  191. package/ref-template/package.json +0 -3
  192. package/select/package.json +0 -3
  193. package/slider/package.json +0 -3
  194. package/space/package.json +0 -3
  195. package/switch/package.json +0 -3
  196. package/tabs/package.json +0 -3
  197. package/textarea/package.json +0 -3
  198. package/timepicker/package.json +0 -3
  199. package/transfer/package.json +0 -3
  200. package/tree-select/package.json +0 -3
  201. package/upload/package.json +0 -3
@@ -4,9 +4,10 @@ import { UploadNzComponent } from './upload.component';
4
4
  import { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "ngx-formly-zorro-antd/common";
7
- import * as i2 from "@angular/forms";
8
- import * as i3 from "@ngx-formly/core";
9
- import * as i4 from "./upload.component";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "@angular/forms";
9
+ import * as i4 from "@ngx-formly/core";
10
+ import * as i5 from "./upload.component";
10
11
  export class FormlyFieldUpload extends FieldType {
11
12
  constructor(fieldTemplates) {
12
13
  super();
@@ -40,94 +41,94 @@ export class FormlyFieldUpload extends FieldType {
40
41
  return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
41
42
  }
42
43
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
43
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
44
- #upload
45
- [formControl]="formControl"
46
- [formlyAttributes]="field"
47
- [nzAccept]="props['accept']"
48
- [nzAction]="props['action']"
49
- [nzDirectory]="props['directory']!!"
50
- [nzBeforeUpload]="props['beforeUpload']"
51
- [nzCustomRequest]="props['customRequest']"
52
- [nzData]="props['data']"
53
- [nzDisabled]="props['disabled']!!"
54
- [(nzFileList)]="props['fileList']"
55
- [nzLimit]="props['limit']"
56
- [nzSize]="props['size']"
57
- [nzFileType]="props['fileType']"
58
- [nzFilter]="props['filter']!"
59
- [nzHeaders]="props['headers']"
60
- [nzListType]="props['listType']!"
61
- [nzMultiple]="props['multiple']!!"
62
- [nzName]="props['name'] || ''"
63
- [nzShowUploadList]="props['showUploadList']"
64
- [nzShowButton]="props['showButton']!!"
65
- [nzWithCredentials]="props['withCredentials']!!"
66
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
67
- [nzPreview]="props['preview']"
68
- [nzPreviewFile]="props['previewFile']"
69
- [nzPreviewIsImage]="props['previewIsImage']"
70
- [nzRemove]="props['remove']"
71
- (nzChange)="props.change && props.change(field, $event)"
72
- [nzDownload]="props['download']"
73
- [nzTransformFile]="props['transformFile']"
74
- [nzIconRender]="nzIconRender ?? null"
75
- [nzFileListRender]="nzFileListRender ?? null"
76
- [resultMap]="props['resultMap']"
77
- [nzeHint]="props['hint']"
78
- [nzeText]="props['text']"
79
- [nzeUploadButtonIcon]="props['uploadButtonIcon']"
80
- [nzeShowUploadButton]="props['showUploadButton']"
81
- [className]="props['className']"
82
- (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
83
- >
84
- </formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i4.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
45
+ #upload
46
+ [formControl]="formControl"
47
+ [formlyAttributes]="field"
48
+ [nzAccept]="props['accept']"
49
+ [nzAction]="props['action']"
50
+ [nzDirectory]="props['directory']!!"
51
+ [nzBeforeUpload]="props['beforeUpload']"
52
+ [nzCustomRequest]="props['customRequest']"
53
+ [nzData]="props['data']"
54
+ [nzDisabled]="props['disabled']!!"
55
+ [(nzFileList)]="props['fileList']"
56
+ [nzLimit]="props['limit']"
57
+ [nzSize]="props['size']"
58
+ [nzFileType]="props['fileType']"
59
+ [nzFilter]="props['filter']!"
60
+ [nzHeaders]="props['headers']"
61
+ [nzListType]="props['listType']!"
62
+ [nzMultiple]="props['multiple']!!"
63
+ [nzName]="props['name'] || ''"
64
+ [nzShowUploadList]="props['showUploadList']"
65
+ [nzShowButton]="props['showButton']!!"
66
+ [nzWithCredentials]="props['withCredentials']!!"
67
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
68
+ [nzPreview]="props['preview']"
69
+ [nzPreviewFile]="props['previewFile']"
70
+ [nzPreviewIsImage]="props['previewIsImage']"
71
+ [nzRemove]="props['remove']"
72
+ (nzChange)="props.change && props.change(field, $event)"
73
+ [nzDownload]="props['download']"
74
+ [nzTransformFile]="props['transformFile']"
75
+ [nzIconRender]="nzIconRender ?? null"
76
+ [nzFileListRender]="nzFileListRender ?? null"
77
+ [resultMap]="props['resultMap']"
78
+ [nzeHint]="props['hint']"
79
+ [nzeText]="props['text']"
80
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
81
+ [nzeShowUploadButton]="props['showUploadButton']"
82
+ [ngClass]="props['ngClass']"
83
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
84
+ >
85
+ </formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i5.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
86
  }
86
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, decorators: [{
87
88
  type: Component,
88
89
  args: [{
89
90
  selector: 'formly-field-upload',
90
- template: `<formly-nz-upload
91
- #upload
92
- [formControl]="formControl"
93
- [formlyAttributes]="field"
94
- [nzAccept]="props['accept']"
95
- [nzAction]="props['action']"
96
- [nzDirectory]="props['directory']!!"
97
- [nzBeforeUpload]="props['beforeUpload']"
98
- [nzCustomRequest]="props['customRequest']"
99
- [nzData]="props['data']"
100
- [nzDisabled]="props['disabled']!!"
101
- [(nzFileList)]="props['fileList']"
102
- [nzLimit]="props['limit']"
103
- [nzSize]="props['size']"
104
- [nzFileType]="props['fileType']"
105
- [nzFilter]="props['filter']!"
106
- [nzHeaders]="props['headers']"
107
- [nzListType]="props['listType']!"
108
- [nzMultiple]="props['multiple']!!"
109
- [nzName]="props['name'] || ''"
110
- [nzShowUploadList]="props['showUploadList']"
111
- [nzShowButton]="props['showButton']!!"
112
- [nzWithCredentials]="props['withCredentials']!!"
113
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
114
- [nzPreview]="props['preview']"
115
- [nzPreviewFile]="props['previewFile']"
116
- [nzPreviewIsImage]="props['previewIsImage']"
117
- [nzRemove]="props['remove']"
118
- (nzChange)="props.change && props.change(field, $event)"
119
- [nzDownload]="props['download']"
120
- [nzTransformFile]="props['transformFile']"
121
- [nzIconRender]="nzIconRender ?? null"
122
- [nzFileListRender]="nzFileListRender ?? null"
123
- [resultMap]="props['resultMap']"
124
- [nzeHint]="props['hint']"
125
- [nzeText]="props['text']"
126
- [nzeUploadButtonIcon]="props['uploadButtonIcon']"
127
- [nzeShowUploadButton]="props['showUploadButton']"
128
- [className]="props['className']"
129
- (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
130
- >
91
+ template: `<formly-nz-upload
92
+ #upload
93
+ [formControl]="formControl"
94
+ [formlyAttributes]="field"
95
+ [nzAccept]="props['accept']"
96
+ [nzAction]="props['action']"
97
+ [nzDirectory]="props['directory']!!"
98
+ [nzBeforeUpload]="props['beforeUpload']"
99
+ [nzCustomRequest]="props['customRequest']"
100
+ [nzData]="props['data']"
101
+ [nzDisabled]="props['disabled']!!"
102
+ [(nzFileList)]="props['fileList']"
103
+ [nzLimit]="props['limit']"
104
+ [nzSize]="props['size']"
105
+ [nzFileType]="props['fileType']"
106
+ [nzFilter]="props['filter']!"
107
+ [nzHeaders]="props['headers']"
108
+ [nzListType]="props['listType']!"
109
+ [nzMultiple]="props['multiple']!!"
110
+ [nzName]="props['name'] || ''"
111
+ [nzShowUploadList]="props['showUploadList']"
112
+ [nzShowButton]="props['showButton']!!"
113
+ [nzWithCredentials]="props['withCredentials']!!"
114
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
115
+ [nzPreview]="props['preview']"
116
+ [nzPreviewFile]="props['previewFile']"
117
+ [nzPreviewIsImage]="props['previewIsImage']"
118
+ [nzRemove]="props['remove']"
119
+ (nzChange)="props.change && props.change(field, $event)"
120
+ [nzDownload]="props['download']"
121
+ [nzTransformFile]="props['transformFile']"
122
+ [nzIconRender]="nzIconRender ?? null"
123
+ [nzFileListRender]="nzFileListRender ?? null"
124
+ [resultMap]="props['resultMap']"
125
+ [nzeHint]="props['hint']"
126
+ [nzeText]="props['text']"
127
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
128
+ [nzeShowUploadButton]="props['showUploadButton']"
129
+ [ngClass]="props['ngClass']"
130
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
131
+ >
131
132
  </formly-nz-upload>`,
132
133
  changeDetection: ChangeDetectionStrategy.OnPush
133
134
  }]
@@ -137,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
137
138
  type: ViewChild,
138
139
  args: ['upload', { static: true }]
139
140
  }] } });
140
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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ICB9XHJcblxyXG4gIGdldCBuekljb25SZW5kZXIoKSB7XHJcbiAgICByZXR1cm4gcmVzb2x2ZVRwbE5hbWUodGhpcy5wcm9wcywgdGhpcy5maWVsZFRlbXBsYXRlcywgJ2ljb25SZW5kZXInKTtcclxuICB9XHJcblxyXG4gIGdldCBuekZpbGVMaXN0UmVuZGVyKCkge1xyXG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -31,78 +31,78 @@ class FormlyFieldButtonGroup extends FieldType {
31
31
  this.subjectDestroy();
32
32
  }
33
33
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
35
- <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
- @for (item of props.buttons; track item.id) {
37
- <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
38
- }
39
- </nz-button-group>
40
-
41
- <ng-template #btnTemplate let-item>
42
- <button
43
- nz-button
44
- [formlyAttributes]="item"
45
- [type]="item.type || 'button'"
46
- [attr.title]="item.props['title']"
47
- [disabled]="item.props.disabled!!"
48
- [nzBlock]="item.props.block!!"
49
- [nzDanger]="item.props.danger!!"
50
- [nzGhost]="item.props.ghost!!"
51
- [nzSize]="item.props.size || 'default'"
52
- [nzLoading]="item.props.loading!!"
53
- [nzShape]="item.props.shape ?? null"
54
- [nzType]="item.props.nzType ?? null"
55
- >
56
- @if (item.props.beforeIcon) {
57
- <span nz-icon [nzType]="item.props.beforeIcon"></span>
58
- }
59
- @if (item.props.text) {
60
- <span>{{ item.props.text }}</span>
61
- }
62
- @if (item.props.afterIcon) {
63
- <span nz-icon [nzType]="item.props.afterIcon"></span>
64
- }
65
- </button>
66
- </ng-template>
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
35
+ <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
+ @for (item of props.buttons; track item.id) {
37
+ <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
38
+ }
39
+ </nz-button-group>
40
+
41
+ <ng-template #btnTemplate let-item>
42
+ <button
43
+ nz-button
44
+ [formlyAttributes]="item"
45
+ [type]="item.type || 'button'"
46
+ [attr.title]="item.props['title']"
47
+ [disabled]="item.props.disabled!!"
48
+ [nzBlock]="item.props.block!!"
49
+ [nzDanger]="item.props.danger!!"
50
+ [nzGhost]="item.props.ghost!!"
51
+ [nzSize]="item.props.size || 'default'"
52
+ [nzLoading]="item.props.loading!!"
53
+ [nzShape]="item.props.shape ?? null"
54
+ [nzType]="item.props.nzType ?? null"
55
+ >
56
+ @if (item.props.beforeIcon) {
57
+ <span nz-icon [nzType]="item.props.beforeIcon"></span>
58
+ }
59
+ @if (item.props.text) {
60
+ <span>{{ item.props.text }}</span>
61
+ }
62
+ @if (item.props.afterIcon) {
63
+ <span nz-icon [nzType]="item.props.afterIcon"></span>
64
+ }
65
+ </button>
66
+ </ng-template>
67
67
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
68
  }
69
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
70
70
  type: Component,
71
71
  args: [{
72
72
  selector: 'formly-field-button-group',
73
- template: `
74
- <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
75
- @for (item of props.buttons; track item.id) {
76
- <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
77
- }
78
- </nz-button-group>
79
-
80
- <ng-template #btnTemplate let-item>
81
- <button
82
- nz-button
83
- [formlyAttributes]="item"
84
- [type]="item.type || 'button'"
85
- [attr.title]="item.props['title']"
86
- [disabled]="item.props.disabled!!"
87
- [nzBlock]="item.props.block!!"
88
- [nzDanger]="item.props.danger!!"
89
- [nzGhost]="item.props.ghost!!"
90
- [nzSize]="item.props.size || 'default'"
91
- [nzLoading]="item.props.loading!!"
92
- [nzShape]="item.props.shape ?? null"
93
- [nzType]="item.props.nzType ?? null"
94
- >
95
- @if (item.props.beforeIcon) {
96
- <span nz-icon [nzType]="item.props.beforeIcon"></span>
97
- }
98
- @if (item.props.text) {
99
- <span>{{ item.props.text }}</span>
100
- }
101
- @if (item.props.afterIcon) {
102
- <span nz-icon [nzType]="item.props.afterIcon"></span>
103
- }
104
- </button>
105
- </ng-template>
73
+ template: `
74
+ <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
75
+ @for (item of props.buttons; track item.id) {
76
+ <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
77
+ }
78
+ </nz-button-group>
79
+
80
+ <ng-template #btnTemplate let-item>
81
+ <button
82
+ nz-button
83
+ [formlyAttributes]="item"
84
+ [type]="item.type || 'button'"
85
+ [attr.title]="item.props['title']"
86
+ [disabled]="item.props.disabled!!"
87
+ [nzBlock]="item.props.block!!"
88
+ [nzDanger]="item.props.danger!!"
89
+ [nzGhost]="item.props.ghost!!"
90
+ [nzSize]="item.props.size || 'default'"
91
+ [nzLoading]="item.props.loading!!"
92
+ [nzShape]="item.props.shape ?? null"
93
+ [nzType]="item.props.nzType ?? null"
94
+ >
95
+ @if (item.props.beforeIcon) {
96
+ <span nz-icon [nzType]="item.props.beforeIcon"></span>
97
+ }
98
+ @if (item.props.text) {
99
+ <span>{{ item.props.text }}</span>
100
+ }
101
+ @if (item.props.afterIcon) {
102
+ <span nz-icon [nzType]="item.props.afterIcon"></span>
103
+ }
104
+ </button>
105
+ </ng-template>
106
106
  `,
107
107
  changeDetection: ChangeDetectionStrategy.OnPush
108
108
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\n @for (item of props.buttons; track item.id) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [attr.title]=\"item.props['title']\"\n [disabled]=\"item.props.disabled!!\"\n [nzBlock]=\"item.props.block!!\"\n [nzDanger]=\"item.props.danger!!\"\n [nzGhost]=\"item.props.ghost!!\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"item.props.loading!!\"\n [nzShape]=\"item.props.shape ?? null\"\n [nzType]=\"item.props.nzType ?? null\"\n >\n @if (item.props.beforeIcon) {\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\n }\n @if (item.props.text) {\n <span>{{ item.props.text }}</span>\n }\n @if (item.props.afterIcon) {\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\n }\n </button>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButtonGroup\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\n implements OnDestroy\n{\n destroy$ = new Subject<void>();\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttons: []\n }\n };\n\n constructor() {\n super();\n }\n\n subjectDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnDestroy(): void {\n this.subjectDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButtonGroup } from './button-group.type';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButtonGroup],\n imports: [\n CommonModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button-group',\n component: FormlyFieldButtonGroup\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,EAAE;AACZ,aAAA;SACF,CAAC;KAID;IAED,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;IAED,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;8GAvBU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oB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AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAjBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\r\n\r\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonGroupProps extends FormlyFieldProps {\r\n size?: NzButtonGroupSize;\r\n\r\n /**\r\n * 每个按钮配置\r\n */\r\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\r\n}\r\n\r\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\r\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button-group',\r\n template: `\r\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\r\n @for (item of props.buttons; track item.id) {\r\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\r\n }\r\n </nz-button-group>\r\n\r\n <ng-template #btnTemplate let-item>\r\n <button\r\n nz-button\r\n [formlyAttributes]=\"item\"\r\n [type]=\"item.type || 'button'\"\r\n [attr.title]=\"item.props['title']\"\r\n [disabled]=\"item.props.disabled!!\"\r\n [nzBlock]=\"item.props.block!!\"\r\n [nzDanger]=\"item.props.danger!!\"\r\n [nzGhost]=\"item.props.ghost!!\"\r\n [nzSize]=\"item.props.size || 'default'\"\r\n [nzLoading]=\"item.props.loading!!\"\r\n [nzShape]=\"item.props.shape ?? null\"\r\n [nzType]=\"item.props.nzType ?? null\"\r\n >\r\n @if (item.props.beforeIcon) {\r\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\r\n }\r\n @if (item.props.text) {\r\n <span>{{ item.props.text }}</span>\r\n }\r\n @if (item.props.afterIcon) {\r\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\r\n }\r\n </button>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButtonGroup\r\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\r\n implements OnDestroy\r\n{\r\n destroy$ = new Subject<void>();\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttons: []\r\n }\r\n };\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n subjectDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subjectDestroy();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldButtonGroup } from './button-group.type';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButtonGroup],\r\n imports: [\r\n CommonModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button-group',\r\n component: FormlyFieldButtonGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,EAAE;AACZ,aAAA;SACF,CAAC;KAID;IAED,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;IAED,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;8GAvBU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAp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