ngx-axis-appforge 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +9 -6
  2. package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -1
  3. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +35 -19
  4. package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -1
  5. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +3 -3
  6. package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
  7. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +31 -17
  8. package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
  9. package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +5 -4
  10. package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
  11. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +23 -13
  12. package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
  13. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +3 -3
  14. package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
  15. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +17 -10
  16. package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -1
  17. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +7 -7
  18. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
  19. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +3 -3
  20. package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -1
  21. package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +3 -3
  22. package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
  23. package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +35 -19
  24. package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs.map +1 -1
  25. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +10 -10
  26. package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
  27. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +29 -16
  28. package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
  29. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +3 -3
  30. package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
  31. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +76 -48
  32. package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
  33. package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs +7 -7
  34. package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs.map +1 -1
  35. package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs +33 -18
  36. package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs.map +1 -1
  37. package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +9 -6
  38. package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
  39. package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +15 -9
  40. package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
  41. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +3 -3
  42. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
  43. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +15 -9
  44. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
  45. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +3 -3
  46. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
  47. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +9 -6
  48. package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
  49. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +3 -3
  50. package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -1
  51. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +17 -10
  52. package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -1
  53. package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +18 -16
  54. package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
  55. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +115 -60
  56. package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
  57. package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +3 -3
  58. package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
  59. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +13 -8
  60. package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
  61. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +3 -3
  62. package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -1
  63. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +17 -10
  64. package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
  65. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +3 -3
  66. package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
  67. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +3 -3
  68. package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -1
  69. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +19 -11
  70. package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
  71. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +7 -5
  72. package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
  73. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +6 -5
  74. package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
  75. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +9 -6
  76. package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -1
  77. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +3 -3
  78. package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
  79. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +10 -7
  80. package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -1
  81. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +3 -3
  82. package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
  83. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +21 -12
  84. package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
  85. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +60 -4
  86. package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
  87. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +3 -3
  88. package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
  89. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +21 -8
  90. package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
  91. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +3 -3
  92. package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
  93. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +12 -8
  94. package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
  95. package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs +3 -3
  96. package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs.map +1 -1
  97. package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs +9 -6
  98. package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs.map +1 -1
  99. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +3 -3
  100. package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
  101. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +27 -15
  102. package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
  103. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +24 -13
  104. package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
  105. package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs +7 -7
  106. package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs.map +1 -1
  107. package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs +17 -10
  108. package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs.map +1 -1
  109. package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +20 -17
  110. package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
  111. package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +43 -23
  112. package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
  113. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +9 -8
  114. package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
  115. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +33 -18
  116. package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
  117. package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +5 -4
  118. package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
  119. package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +27 -15
  120. package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -1
  121. package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +3 -3
  122. package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -1
  123. package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +9 -6
  124. package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs.map +1 -1
  125. package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs +3 -3
  126. package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs.map +1 -1
  127. package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs +31 -17
  128. package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs.map +1 -1
  129. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +3 -3
  130. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
  131. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +13 -8
  132. package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -1
  133. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +32 -22
  134. package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
  135. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +11 -7
  136. package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
  137. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +5 -4
  138. package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
  139. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +55 -29
  140. package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
  141. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +5 -4
  142. package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
  143. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +42 -22
  144. package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
  145. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +10 -10
  146. package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -1
  147. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +25 -14
  148. package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
  149. package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +10 -10
  150. package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
  151. package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +45 -24
  152. package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
  153. package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +3 -3
  154. package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
  155. package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +15 -9
  156. package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
  157. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +35 -23
  158. package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
  159. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +73 -44
  160. package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
  161. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +162 -84
  162. package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
  163. package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +10 -10
  164. package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
  165. package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +45 -24
  166. package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
  167. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
  168. package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
  169. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +19 -11
  170. package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -1
  171. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +3 -3
  172. package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
  173. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +22 -12
  174. package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
  175. package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs +16 -13
  176. package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs.map +1 -1
  177. package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs +31 -17
  178. package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs.map +1 -1
  179. package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs +3 -3
  180. package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -1
  181. package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +7 -5
  182. package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -1
  183. package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +16 -13
  184. package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
  185. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +131 -67
  186. package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
  187. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +14 -12
  188. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
  189. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +87 -45
  190. package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
  191. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +3 -3
  192. package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
  193. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +51 -27
  194. package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
  195. package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs +3 -3
  196. package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs.map +1 -1
  197. package/fesm2022/ngx-axis-appforge-axis-components-video.mjs +3 -3
  198. package/fesm2022/ngx-axis-appforge-axis-components-video.mjs.map +1 -1
  199. package/fesm2022/ngx-axis-appforge-core.mjs +274 -192
  200. package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
  201. package/package.json +9 -9
  202. package/types/ngx-axis-appforge-axis-components-input-icon.d.ts +1 -0
  203. package/types/ngx-axis-appforge-axis-components-input.d.ts +1 -0
@@ -96,10 +96,10 @@ class Setting extends FunFieldValueBase {
96
96
  defaultValue: ""
97
97
  },
98
98
  };
99
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
100
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Setting, isStandalone: true, selector: "axis-design-upload-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"url\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8868\u5355\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"formName\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u591A\u6587\u4EF6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"multiple\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5B8C\u6574\u5BF9\u8C61\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5730\u5740\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"urlField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u540D\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"filenameField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u54CD\u5E94\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"responseFn\"\n [scopes]=\"[{scopeId:'__uploadResponse',scopeName:'\u4E0A\u4F20\u63A5\u53E3\u54CD\u5E94',ds:{apiResponse:{tip:'\u793A\u4F8B\u6570\u636E'}}}]\"\n [noListen]=\"true\" [onlyFun]=\"true\"\n editTip=\"\u8BF7\u8FD4\u56DE\u4E00\u4E2A\u5BF9\u8C61\uFF0C\u7C7B\u578B\uFF1A{success:boolean,errmsg?:string,[\u5730\u5740\u5B57\u6BB5]?:string,[\u6587\u4EF6\u540D\u5B57\u6BB5]?:string}\"></axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u4E0A\u4F20\u63A7\u5236\">\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u9009\u62E9\u6587\u4EF6\u5939\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"directory\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.directory.funMode || !formValue()?.directory.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n \u5168\u90E8\u7C7B\u578B\n </nz-auto-option>\n <nz-auto-option nzValue=\"image/*\">\n \u56FE\u7247\n </nz-auto-option>\n <nz-auto-option nzValue=\"video/*\">\n \u89C6\u9891\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.android.package-archive\">\n *.apk\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.ms-excel\">\n Excel\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/pdf\">\n *.pdf\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u91CF\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitLength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"0\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5927\u5C0F\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u98CE\u683C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"listType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"text\" nzLabel=\"\u6587\u4EF6\u540D\"></nz-option>\n <nz-option nzValue=\"picture\" nzLabel=\"\u9884\u89C8\u56FE\"></nz-option>\n <nz-option nzValue=\"picture-card\" nzLabel=\"\u7167\u7247\u5899\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.listType.funMode || formValue()?.listType.originValue == \"picture-card\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else{\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"\u81EA\u5B9A\u4E49\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"\u6587\u4EF6\u62D6\u62FD\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap", "nzSize", "nzVariant", "nzRequiredMark"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "directive", type: i5.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzKeyboard", "nzControls", "nzChangeOnWheel", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzAutocompleteModule }, { kind: "component", type: i8.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i8.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i8.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i9.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i9.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i10.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i10.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
99
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
100
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Setting, isStandalone: true, selector: "axis-design-upload-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"url\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8868\u5355\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"formName\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u591A\u6587\u4EF6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"multiple\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5B8C\u6574\u5BF9\u8C61\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5730\u5740\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"urlField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u540D\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"filenameField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u54CD\u5E94\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"responseFn\"\n [scopes]=\"[{scopeId:'__uploadResponse',scopeName:'\u4E0A\u4F20\u63A5\u53E3\u54CD\u5E94',ds:{apiResponse:{tip:'\u793A\u4F8B\u6570\u636E'}}}]\"\n [noListen]=\"true\" [onlyFun]=\"true\"\n editTip=\"\u8BF7\u8FD4\u56DE\u4E00\u4E2A\u5BF9\u8C61\uFF0C\u7C7B\u578B\uFF1A{success:boolean,errmsg?:string,[\u5730\u5740\u5B57\u6BB5]?:string,[\u6587\u4EF6\u540D\u5B57\u6BB5]?:string}\"></axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u4E0A\u4F20\u63A7\u5236\">\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u9009\u62E9\u6587\u4EF6\u5939\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"directory\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.directory.funMode || !formValue()?.directory.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n \u5168\u90E8\u7C7B\u578B\n </nz-auto-option>\n <nz-auto-option nzValue=\"image/*\">\n \u56FE\u7247\n </nz-auto-option>\n <nz-auto-option nzValue=\"video/*\">\n \u89C6\u9891\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.android.package-archive\">\n *.apk\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.ms-excel\">\n Excel\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/pdf\">\n *.pdf\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u91CF\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitLength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"0\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5927\u5C0F\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u98CE\u683C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"listType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"text\" nzLabel=\"\u6587\u4EF6\u540D\"></nz-option>\n <nz-option nzValue=\"picture\" nzLabel=\"\u9884\u89C8\u56FE\"></nz-option>\n <nz-option nzValue=\"picture-card\" nzLabel=\"\u7167\u7247\u5899\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.listType.funMode || formValue()?.listType.originValue == \"picture-card\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else{\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"\u81EA\u5B9A\u4E49\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"\u6587\u4EF6\u62D6\u62FD\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl", "nzXXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter", "nzWrap"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap", "nzSize", "nzVariant", "nzRequiredMark"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", inputs: ["nzLayout"], exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "directive", type: i5.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzKeyboard", "nzControls", "nzChangeOnWheel", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: NzAutocompleteModule }, { kind: "component", type: i8.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i8.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i8.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i9.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i9.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i10.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i10.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Setting, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, decorators: [{
103
103
  type: Component,
104
104
  args: [{ selector: 'axis-design-upload-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, ValueDesignSetting, NzInputModule, NzSwitchModule, NzInputNumberModule, NzAutocompleteModule, NzSelectModule, DynamicDirective, NzRadioModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u5730\u5740\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"url\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u8868\u5355\u540D\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"formName\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u591A\u6587\u4EF6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"multiple\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5B8C\u6574\u5BF9\u8C61\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5730\u5740\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"urlField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u540D\u5B57\u6BB5\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"filenameField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u54CD\u5E94\u51FD\u6570\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"responseFn\"\n [scopes]=\"[{scopeId:'__uploadResponse',scopeName:'\u4E0A\u4F20\u63A5\u53E3\u54CD\u5E94',ds:{apiResponse:{tip:'\u793A\u4F8B\u6570\u636E'}}}]\"\n [noListen]=\"true\" [onlyFun]=\"true\"\n editTip=\"\u8BF7\u8FD4\u56DE\u4E00\u4E2A\u5BF9\u8C61\uFF0C\u7C7B\u578B\uFF1A{success:boolean,errmsg?:string,[\u5730\u5740\u5B57\u6BB5]?:string,[\u6587\u4EF6\u540D\u5B57\u6BB5]?:string}\"></axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u4E0A\u4F20\u63A7\u5236\">\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u9009\u62E9\u6587\u4EF6\u5939\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"directory\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.directory.funMode || !formValue()?.directory.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n \u5168\u90E8\u7C7B\u578B\n </nz-auto-option>\n <nz-auto-option nzValue=\"image/*\">\n \u56FE\u7247\n </nz-auto-option>\n <nz-auto-option nzValue=\"video/*\">\n \u89C6\u9891\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.android.package-archive\">\n *.apk\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.ms-excel\">\n Excel\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/pdf\">\n *.pdf\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u91CF\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitLength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"0\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5927\u5C0F\u9650\u5236\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6587\u4EF6\u98CE\u683C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"listType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"text\" nzLabel=\"\u6587\u4EF6\u540D\"></nz-option>\n <nz-option nzValue=\"picture\" nzLabel=\"\u9884\u89C8\u56FE\"></nz-option>\n <nz-option nzValue=\"picture-card\" nzLabel=\"\u7167\u7247\u5899\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.listType.funMode || formValue()?.listType.originValue == \"picture-card\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else{\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4E0A\u4F20\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"\u81EA\u5B9A\u4E49\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"\u6587\u4EF6\u62D6\u62FD\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u6807\u9898\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u62D6\u62FD\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>" }]
105
105
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-upload-design.mjs","sources":["../../../axis-components/upload/design/setting/setting.ts","../../../axis-components/upload/design/setting/setting.html","../../../axis-components/upload/design/config.ts","../../../axis-components/upload/design/ngx-axis-appforge-axis-components-upload-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@Component({\n selector: 'axis-design-upload-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, ValueDesignSetting, NzInputModule, NzSwitchModule, NzInputNumberModule, NzAutocompleteModule, NzSelectModule, DynamicDirective, NzRadioModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n override fg: UntypedFormGroup = this.fb.group(({\n ...baseFbConfig,\n ...valueFbConfig,\n url: [undefined, FormValidators.requiredFun],\n formName: [undefined, FormValidators.requiredFun],\n fullValue: [false, FormValidators.required],\n multiple: [false, FormValidators.required],\n urlField: [\"url\", FormValidators.required],\n filenameField: [\"filename\", FormValidators.required],\n responseFn: [],\n fileType: [undefined, FormValidators.requiredFun],\n directory: [undefined, FormValidators.requiredFun],\n limitLength: [],\n limitSize: [],\n listType: [undefined, FormValidators.requiredFun],\n buttonType: [undefined, FormValidators.requiredFun],\n buttonTitle: [],\n buttonIcon: [{ component: 'axis-components/icon', inuse: true, icon: 'upload' }],\n buttonStyle: [undefined, FormValidators.requiredFun],\n buttonSize: [undefined, FormValidators.requiredFun],\n buttonBlock: [undefined, FormValidators.requiredFun],\n buttonShape: [],\n dropTitle: [],\n dropTip: [],\n }));\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n url: {\n defaultValue: \"\"\n },\n formName: {\n defaultValue: \"file\"\n },\n fileType: {\n defaultValue: \"*/*\"\n },\n directory: {\n defaultValue: false\n },\n limitLength: {\n defaultValue: null\n },\n limitSize: {\n defaultValue: null\n },\n listType: {\n defaultValue: \"text\"\n },\n buttonType: {\n defaultValue: \"custom\"\n },\n buttonTitle: {\n defaultValue: \"上传\"\n },\n buttonStyle: {\n defaultValue: \"default\"\n },\n buttonSize: {\n defaultValue: \"default\"\n },\n buttonBlock: {\n defaultValue: false\n },\n buttonShape: {\n defaultValue: \"\"\n },\n dropTitle: {\n defaultValue: \"点击或拖拽上传\"\n },\n dropTip: {\n defaultValue: \"\"\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 上传地址\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"url\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 表单名\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"formName\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 多文件\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"multiple\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 完整对象值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 地址字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"urlField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件名字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"filenameField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 响应函数\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"responseFn\"\n [scopes]=\"[{scopeId:'__uploadResponse',scopeName:'上传接口响应',ds:{apiResponse:{tip:'示例数据'}}}]\"\n [noListen]=\"true\" [onlyFun]=\"true\"\n editTip=\"请返回一个对象,类型:{success:boolean,errmsg?:string,[地址字段]?:string,[文件名字段]?:string}\"></axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"上传控制\">\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 选择文件夹\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"directory\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.directory.funMode || !formValue()?.directory.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n 全部类型\n </nz-auto-option>\n <nz-auto-option nzValue=\"image/*\">\n 图片\n </nz-auto-option>\n <nz-auto-option nzValue=\"video/*\">\n 视频\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.android.package-archive\">\n *.apk\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.ms-excel\">\n Excel\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/pdf\">\n *.pdf\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 数量限制\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitLength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"0\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 大小限制\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"外观设置\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件风格\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"listType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"text\" nzLabel=\"文件名\"></nz-option>\n <nz-option nzValue=\"picture\" nzLabel=\"预览图\"></nz-option>\n <nz-option nzValue=\"picture-card\" nzLabel=\"照片墙\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.listType.funMode || formValue()?.listType.originValue == \"picture-card\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else{\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 上传按钮\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"自定义\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"文件拖拽\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮图标\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 宽度尽量大\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮形状\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 拖拽标题\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 拖拽提示\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"文件上传\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"文件上传\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"upload\",\n children: [],\n }),\n next: [{\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n scopeId: nextInfo.scopeId,\n indexOfParent: \"child\"\n }]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAm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,EAAE,EAAE;aACf,CAAC;AACF,YAAA,IAAI,EAAE,CAAC;AACH,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,YAAY,EAAE,QAAQ,CAAC,aAAa;oBACpC,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,oBAAA,aAAa,EAAE;iBAClB;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;ACnCL;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-upload-design.mjs","sources":["../../../axis-components/upload/design/setting/setting.ts","../../../axis-components/upload/design/setting/setting.html","../../../axis-components/upload/design/config.ts","../../../axis-components/upload/design/ngx-axis-appforge-axis-components-upload-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@Component({\n selector: 'axis-design-upload-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, ValueDesignSetting, NzInputModule, NzSwitchModule, NzInputNumberModule, NzAutocompleteModule, NzSelectModule, DynamicDirective, NzRadioModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n override fg: UntypedFormGroup = this.fb.group(({\n ...baseFbConfig,\n ...valueFbConfig,\n url: [undefined, FormValidators.requiredFun],\n formName: [undefined, FormValidators.requiredFun],\n fullValue: [false, FormValidators.required],\n multiple: [false, FormValidators.required],\n urlField: [\"url\", FormValidators.required],\n filenameField: [\"filename\", FormValidators.required],\n responseFn: [],\n fileType: [undefined, FormValidators.requiredFun],\n directory: [undefined, FormValidators.requiredFun],\n limitLength: [],\n limitSize: [],\n listType: [undefined, FormValidators.requiredFun],\n buttonType: [undefined, FormValidators.requiredFun],\n buttonTitle: [],\n buttonIcon: [{ component: 'axis-components/icon', inuse: true, icon: 'upload' }],\n buttonStyle: [undefined, FormValidators.requiredFun],\n buttonSize: [undefined, FormValidators.requiredFun],\n buttonBlock: [undefined, FormValidators.requiredFun],\n buttonShape: [],\n dropTitle: [],\n dropTip: [],\n }));\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n url: {\n defaultValue: \"\"\n },\n formName: {\n defaultValue: \"file\"\n },\n fileType: {\n defaultValue: \"*/*\"\n },\n directory: {\n defaultValue: false\n },\n limitLength: {\n defaultValue: null\n },\n limitSize: {\n defaultValue: null\n },\n listType: {\n defaultValue: \"text\"\n },\n buttonType: {\n defaultValue: \"custom\"\n },\n buttonTitle: {\n defaultValue: \"上传\"\n },\n buttonStyle: {\n defaultValue: \"default\"\n },\n buttonSize: {\n defaultValue: \"default\"\n },\n buttonBlock: {\n defaultValue: false\n },\n buttonShape: {\n defaultValue: \"\"\n },\n dropTitle: {\n defaultValue: \"点击或拖拽上传\"\n },\n dropTip: {\n defaultValue: \"\"\n },\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 上传地址\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"url\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 表单名\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"formName\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 多文件\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"multiple\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 完整对象值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-switch formControlName=\"fullValue\"></nz-switch>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 地址字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"urlField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件名字段\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <input nz-input formControlName=\"filenameField\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 响应函数\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"responseFn\"\n [scopes]=\"[{scopeId:'__uploadResponse',scopeName:'上传接口响应',ds:{apiResponse:{tip:'示例数据'}}}]\"\n [noListen]=\"true\" [onlyFun]=\"true\"\n editTip=\"请返回一个对象,类型:{success:boolean,errmsg?:string,[地址字段]?:string,[文件名字段]?:string}\"></axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"上传控制\">\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 选择文件夹\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"directory\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.directory.funMode || !formValue()?.directory.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"fileType\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" [nzAutocomplete]=\"idAuto\" />\n <nz-autocomplete #idAuto nzBackfill>\n <nz-auto-option nzValue=\"*/*\">\n 全部类型\n </nz-auto-option>\n <nz-auto-option nzValue=\"image/*\">\n 图片\n </nz-auto-option>\n <nz-auto-option nzValue=\"video/*\">\n 视频\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.android.package-archive\">\n *.apk\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/vnd.ms-excel\">\n Excel\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/json\">\n *.json\n </nz-auto-option>\n <nz-auto-option nzValue=\"application/pdf\">\n *.pdf\n </nz-auto-option>\n <nz-auto-option nzValue=\"text/javascript\">\n *.js\n </nz-auto-option>\n </nz-autocomplete>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n @if (formValue()?.multiple) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 数量限制\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitLength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\"\n [nzMin]=\"0\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 大小限制\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"limitSize\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"0\">\n <span nzInputAddonAfter>KB</span>\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"外观设置\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 文件风格\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"listType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"text\" nzLabel=\"文件名\"></nz-option>\n <nz-option nzValue=\"picture\" nzLabel=\"预览图\"></nz-option>\n <nz-option nzValue=\"picture-card\" nzLabel=\"照片墙\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.listType.funMode || formValue()?.listType.originValue == \"picture-card\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else{\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 上传按钮\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"custom\" nzLabel=\"自定义\"></nz-option>\n <nz-option nzValue=\"drag-file\" nzLabel=\"文件拖拽\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.buttonType.funMode || formValue()?.buttonType.originValue === \"custom\") {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonTitle\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 按钮图标\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonIcon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonStyle\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonSize\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 宽度尽量大\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonBlock\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 按钮形状\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"buttonShape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }@else {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 拖拽标题\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTitle\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 拖拽提示\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dropTip\">\n <textarea nz-input ngModel [ngModelOptions]=\"{standalone:true}\"></textarea>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n }\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"文件上传\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"文件上传\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"upload\",\n children: [],\n }),\n next: [{\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n scopeId: nextInfo.scopeId,\n indexOfParent: \"child\"\n }]\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AACnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;AAC7C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,GAAG,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC5C,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC3C,QAAA,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC1C,QAAA,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC1C,QAAA,aAAa,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC;AACpD,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAClD,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,SAAS,EAAE,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kB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,QAAQ,EAAE,EAAE;aACf,CAAC;AACF,YAAA,IAAI,EAAE,CAAC;AACH,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,YAAY,EAAE,QAAQ,CAAC,aAAa;oBACpC,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,oBAAA,aAAa,EAAE;iBAClB;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;ACnCL;;AAEG;;;;"}
@@ -15,27 +15,48 @@ import * as i3 from 'ng-zorro-antd/core/transition-patch';
15
15
  import * as i4 from 'ng-zorro-antd/core/wave';
16
16
 
17
17
  class UploadOptions extends ValueAccessOptions {
18
- url = signal("", ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
19
- formName = signal("file", ...(ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []));
20
- fullValue = signal(false, ...(ngDevMode ? [{ debugName: "fullValue" }] : /* istanbul ignore next */ []));
21
- urlField = signal("url", ...(ngDevMode ? [{ debugName: "urlField" }] : /* istanbul ignore next */ []));
22
- filenameField = signal("filename", ...(ngDevMode ? [{ debugName: "filenameField" }] : /* istanbul ignore next */ []));
23
- responseFn = signal("", ...(ngDevMode ? [{ debugName: "responseFn" }] : /* istanbul ignore next */ []));
24
- fileType = signal("*/*", ...(ngDevMode ? [{ debugName: "fileType" }] : /* istanbul ignore next */ []));
25
- multiple = signal(true, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
26
- directory = signal(false, ...(ngDevMode ? [{ debugName: "directory" }] : /* istanbul ignore next */ []));
27
- limitLength = signal(null, ...(ngDevMode ? [{ debugName: "limitLength" }] : /* istanbul ignore next */ []));
28
- limitSize = signal(null, ...(ngDevMode ? [{ debugName: "limitSize" }] : /* istanbul ignore next */ []));
29
- listType = signal("text", ...(ngDevMode ? [{ debugName: "listType" }] : /* istanbul ignore next */ []));
30
- buttonType = signal("custom", ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
31
- buttonTitle = signal("上传", ...(ngDevMode ? [{ debugName: "buttonTitle" }] : /* istanbul ignore next */ []));
32
- buttonIcon = signal({ component: 'axis-components/icon', inuse: true, icon: 'upload' }, ...(ngDevMode ? [{ debugName: "buttonIcon" }] : /* istanbul ignore next */ []));
33
- buttonStyle = signal("default", ...(ngDevMode ? [{ debugName: "buttonStyle" }] : /* istanbul ignore next */ []));
34
- buttonSize = signal("default", ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
35
- buttonBlock = signal(false, ...(ngDevMode ? [{ debugName: "buttonBlock" }] : /* istanbul ignore next */ []));
36
- buttonShape = signal(null, ...(ngDevMode ? [{ debugName: "buttonShape" }] : /* istanbul ignore next */ []));
37
- dropTitle = signal("点击或拖拽上传", ...(ngDevMode ? [{ debugName: "dropTitle" }] : /* istanbul ignore next */ []));
38
- dropTip = signal("", ...(ngDevMode ? [{ debugName: "dropTip" }] : /* istanbul ignore next */ []));
18
+ url = signal("", /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
20
+ formName = signal("file", /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []));
22
+ fullValue = signal(false, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "fullValue" }] : /* istanbul ignore next */ []));
24
+ urlField = signal("url", /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "urlField" }] : /* istanbul ignore next */ []));
26
+ filenameField = signal("filename", /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "filenameField" }] : /* istanbul ignore next */ []));
28
+ responseFn = signal("", /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "responseFn" }] : /* istanbul ignore next */ []));
30
+ fileType = signal("*/*", /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "fileType" }] : /* istanbul ignore next */ []));
32
+ multiple = signal(true, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
34
+ directory = signal(false, /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "directory" }] : /* istanbul ignore next */ []));
36
+ limitLength = signal(null, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "limitLength" }] : /* istanbul ignore next */ []));
38
+ limitSize = signal(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "limitSize" }] : /* istanbul ignore next */ []));
40
+ listType = signal("text", /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "listType" }] : /* istanbul ignore next */ []));
42
+ buttonType = signal("custom", /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "buttonType" }] : /* istanbul ignore next */ []));
44
+ buttonTitle = signal("上传", /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "buttonTitle" }] : /* istanbul ignore next */ []));
46
+ buttonIcon = signal({ component: 'axis-components/icon', inuse: true, icon: 'upload' }, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "buttonIcon" }] : /* istanbul ignore next */ []));
48
+ buttonStyle = signal("default", /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "buttonStyle" }] : /* istanbul ignore next */ []));
50
+ buttonSize = signal("default", /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
52
+ buttonBlock = signal(false, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "buttonBlock" }] : /* istanbul ignore next */ []));
54
+ buttonShape = signal(null, /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "buttonShape" }] : /* istanbul ignore next */ []));
56
+ dropTitle = signal("点击或拖拽上传", /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "dropTitle" }] : /* istanbul ignore next */ []));
58
+ dropTip = signal("", /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "dropTip" }] : /* istanbul ignore next */ []));
39
60
  }
40
61
 
41
62
  class Upload extends ValueAccess {
@@ -44,9 +65,12 @@ class Upload extends ValueAccess {
44
65
  fileBaseUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true }) ?? "";
45
66
  http = inject(HttpClient);
46
67
  imageService = inject(NzImageService);
47
- fileList = model([], ...(ngDevMode ? [{ debugName: "fileList" }] : /* istanbul ignore next */ []));
48
- limitLength = computed(() => this.options.multiple() ? this.options.limitLength() : 1, ...(ngDevMode ? [{ debugName: "limitLength" }] : /* istanbul ignore next */ []));
49
- directory = computed(() => this.options.multiple() && this.options.directory(), ...(ngDevMode ? [{ debugName: "directory" }] : /* istanbul ignore next */ []));
68
+ fileList = model([], /* @ts-ignore */
69
+ ...(ngDevMode ? [{ debugName: "fileList" }] : /* istanbul ignore next */ []));
70
+ limitLength = computed(() => this.options.multiple() ? this.options.limitLength() : 1, /* @ts-ignore */
71
+ ...(ngDevMode ? [{ debugName: "limitLength" }] : /* istanbul ignore next */ []));
72
+ directory = computed(() => this.options.multiple() && this.options.directory(), /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "directory" }] : /* istanbul ignore next */ []));
50
74
  setInitValue(value) {
51
75
  super.setInitValue(value);
52
76
  if (value !== undefined) {
@@ -175,10 +199,10 @@ class Upload extends ValueAccess {
175
199
  f.url = this.getUrl(f.response?.[this.options.urlField()]);
176
200
  });
177
201
  }
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Upload, deps: null, target: i0.ɵɵFactoryTarget.Component });
179
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: Upload, isStandalone: true, selector: "axis-upload", inputs: { fileList: { classPropertyName: "fileList", publicName: "fileList", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileList: "fileListChange" }, usesInheritance: true, ngImport: i0, template: "<nz-upload [(nzFileList)]=\"fileList\"\n [nzType]=\"options.listType()!='picture-card'&& options.buttonType()=='drag-file'?'drag':'select'\"\n [nzDirectory]=\"directory()\" [nzAccept]=\"options.fileType()\" [nzMultiple]=\"options.multiple()\"\n [nzLimit]=\"limitLength()\" [nzSize]=\"options.limitSize()\" [nzListType]=\"options.listType()\"\n [nzDisabled]=\"options.disabled()\" [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\"\n [nzShowButton]=\"!options.readonly() && (limitLength() == null || fileList().length<limitLength()!)\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true,showDownloadIcon:true}\">\n @if (options.listType() == \"picture-card\") {\n <div>\n <nz-icon nzType=\"plus\" />\n <div style=\"margin-top: 8px\">{{options.buttonTitle()}}</div>\n </div>\n }@else if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzUploadModule }, { kind: "component", 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", "nzMaxCount"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "ngmodule", type: NzButtonModule }, { 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: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], 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: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "ngmodule", type: NzImageModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
202
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Upload, deps: null, target: i0.ɵɵFactoryTarget.Component });
203
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Upload, isStandalone: true, selector: "axis-upload", inputs: { fileList: { classPropertyName: "fileList", publicName: "fileList", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileList: "fileListChange" }, usesInheritance: true, ngImport: i0, template: "<nz-upload [(nzFileList)]=\"fileList\"\n [nzType]=\"options.listType()!='picture-card'&& options.buttonType()=='drag-file'?'drag':'select'\"\n [nzDirectory]=\"directory()\" [nzAccept]=\"options.fileType()\" [nzMultiple]=\"options.multiple()\"\n [nzLimit]=\"limitLength()\" [nzSize]=\"options.limitSize()\" [nzListType]=\"options.listType()\"\n [nzDisabled]=\"options.disabled()\" [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\"\n [nzShowButton]=\"!options.readonly() && (limitLength() == null || fileList().length<limitLength()!)\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true,showDownloadIcon:true}\">\n @if (options.listType() == \"picture-card\") {\n <div>\n <nz-icon nzType=\"plus\" />\n <div style=\"margin-top: 8px\">{{options.buttonTitle()}}</div>\n </div>\n }@else if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzUploadModule }, { kind: "component", type: i1.NzUploadComponent, selector: "nz-upload", inputs: ["nzId", "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", "nzDownload", "nzIconRender", "nzFileListRender", "nzMaxCount"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], 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: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzType", "nzTheme", "nzTwotoneColor", "nzSpin", "nzRotate", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "ngmodule", type: NzImageModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
204
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: Upload, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Upload, decorators: [{
182
206
  type: Component,
183
207
  args: [{ selector: 'axis-upload', imports: [NzUploadModule, NzButtonModule, NzIconModule, DynamicDirective, NzFlexModule, NzImageModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-upload [(nzFileList)]=\"fileList\"\n [nzType]=\"options.listType()!='picture-card'&& options.buttonType()=='drag-file'?'drag':'select'\"\n [nzDirectory]=\"directory()\" [nzAccept]=\"options.fileType()\" [nzMultiple]=\"options.multiple()\"\n [nzLimit]=\"limitLength()\" [nzSize]=\"options.limitSize()\" [nzListType]=\"options.listType()\"\n [nzDisabled]=\"options.disabled()\" [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\"\n [nzShowButton]=\"!options.readonly() && (limitLength() == null || fileList().length<limitLength()!)\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true,showDownloadIcon:true}\">\n @if (options.listType() == \"picture-card\") {\n <div>\n <nz-icon nzType=\"plus\" />\n <div style=\"margin-top: 8px\">{{options.buttonTitle()}}</div>\n </div>\n }@else if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>", styles: [":host{display:block}\n"] }]
184
208
  }], propDecorators: { fileList: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileList", required: false }] }, { type: i0.Output, args: ["fileListChange"] }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-axis-appforge-axis-components-upload.mjs","sources":["../../../axis-components/upload/upload.options.ts","../../../axis-components/upload/upload.ts","../../../axis-components/upload/upload.html","../../../axis-components/upload/ngx-axis-appforge-axis-components-upload.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class UploadOptions extends ValueAccessOptions {\n\n readonly url = signal(\"\");\n readonly formName = signal(\"file\");\n readonly fullValue = signal(false);\n readonly urlField = signal(\"url\");\n readonly filenameField = signal(\"filename\");\n readonly responseFn = signal(\"\");\n\n readonly fileType = signal(\"*/*\");\n readonly multiple = signal(true);\n readonly directory = signal(false);\n readonly limitLength = signal<number | null>(null);\n readonly limitSize = signal<number | null>(null);\n\n readonly listType = signal<\"text\" | \"picture\" | \"picture-card\">(\"text\");\n readonly buttonType = signal<\"drag-file\" | \"custom\">(\"custom\");\n readonly buttonTitle = signal<string>(\"上传\");\n readonly buttonIcon = signal<any>({ component: 'axis-components/icon', inuse: true, icon: 'upload' });\n readonly buttonStyle = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly buttonSize = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly buttonBlock = signal<boolean>(false);\n readonly buttonShape = signal<null | \"circle\" | \"round\">(null);\n readonly dropTitle = signal<string>(\"点击或拖拽上传\");\n readonly dropTip = signal<string>(\"\");\n}","import { ChangeDetectionStrategy, Component, computed, inject, model } from '@angular/core';\nimport { UploadOptions } from './upload.options';\nimport { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, DynamicDirective, fn, sendApi, ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzUploadChangeParam, NzUploadFile, NzUploadModule, NzUploadXHRArgs } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\nimport { BehaviorSubject, Subscription } from 'rxjs';\nimport { HttpClient, HttpContext, HttpEventType, HttpResponse } from '@angular/common/http';\nimport { NzImageModule, NzImageService } from 'ng-zorro-antd/image';\n\n@Component({\n selector: 'axis-upload',\n imports: [NzUploadModule, NzButtonModule, NzIconModule, DynamicDirective, NzFlexModule, NzImageModule],\n templateUrl: './upload.html',\n styleUrl: './upload.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Upload extends ValueAccess<UploadOptions> {\n\n override options: UploadOptions = new UploadOptions();\n readonly httpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true });\n private readonly fileBaseUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true }) ?? \"\";\n private readonly http = inject(HttpClient);\n private readonly imageService = inject(NzImageService);\n readonly fileList = model<NzUploadFile[]>([]);\n readonly limitLength = computed(() => this.options.multiple() ? this.options.limitLength() : 1);\n readonly directory = computed(() => this.options.multiple() && this.options.directory());\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n if (value !== undefined) {\n this.updateFileList(value);\n }\n }\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.updateFileList(value);\n }\n\n private updateFileList(value: any) {\n if (value) {\n if (!this.options.multiple()) {\n value = [value];\n }\n this.fileList.set((value as any[]).map(r => this.options.fullValue() ? r : {\n [this.options.urlField()]: r,\n [this.options.filenameField()]: this.getFileNameByUrl(r),\n }).map((resp, i) => ({\n uid: i.toString(),\n url: this.getUrl(resp[this.options.urlField()]),\n name: resp[this.options.filenameField()],\n status: 'done',\n response: resp\n })));\n } else {\n this.fileList.set([]);\n }\n }\n\n private getFileNameByUrl(url: string | undefined): string {\n if (!url) {\n return \"\";\n }\n const i = url.lastIndexOf(\"/\");\n if (i > -1) {\n return url.substring(i + 1);\n }\n return url;\n }\n\n private updateValue(fileList: NzUploadFile[]) {\n let value: any = fileList.map(f => this.options.fullValue() ? f.response : f.response[this.options.urlField()]);\n if (!this.options.multiple()) {\n value = value[0] ?? null;\n }\n this.value.set(value);\n this.onChange?.(this.value());\n }\n\n getUrl(url: string): string {\n if (url.startsWith(\"http\")) {\n return url;\n } else if (this.fileBaseUrl instanceof BehaviorSubject) {\n return this.fileBaseUrl.value + url;\n } else {\n return this.fileBaseUrl + url;\n }\n }\n\n upload = (item: NzUploadXHRArgs): Subscription => {\n const formData = new FormData();\n formData.append(this.options.formName(), item.file as any);\n let context: HttpContext | undefined;\n if (this.httpContextData) {\n let contextData: any;\n if (this.httpContextData instanceof BehaviorSubject) {\n contextData = this.httpContextData.value;\n } else {\n contextData = this.httpContextData;\n }\n context = new HttpContext().set(AXIS_HTTP_CONTEXT_TOKEN, contextData);\n }\n return this.http.post(this.options.url(), formData, {\n context: context,\n reportProgress: true,\n observe: 'events',\n }).subscribe(event => {\n if (event instanceof HttpResponse) {\n let res: any = event.body;\n if (this.options.responseFn()) {\n res = this.runFn(this.options.responseFn(), { apiResponse: event.body })\n }\n const { success, errmsg } = res;\n if (success) {\n item.file.url = res[this.options.urlField()];\n res[this.options.filenameField()] ??= this.getFileNameByUrl(item.file.url!);\n item.file.filename = res[this.options.filenameField()];\n item.onSuccess?.(res, item.file, null);\n } else {\n item.onError?.(errmsg || \"上传失败\", item.file);\n }\n } else if (event.type == HttpEventType.UploadProgress) {\n item.onProgress?.({ percent: Math.floor(event.loaded / event.total! * 100) }, item.file)\n }\n });\n }\n\n fileChange(e: NzUploadChangeParam) {\n switch (e.type) {\n case \"success\":\n this.refreshFileListUrl();\n this.updateValue(e.fileList);\n break;\n case \"removed\":\n this.updateValue(e.fileList);\n break;\n }\n }\n\n handlePreview = async (file: NzUploadFile) => {\n const fileUrl = file.response[this.options.urlField()];\n if (fileUrl) {\n if (file['isImageUrl']) {\n const imgList = this.fileList().map(e => ({ src: e.response[this.options.urlField()] }));\n const index = imgList.findIndex(e => e.src == fileUrl);\n this.imageService.preview(imgList).switchTo(index);\n } else {\n open(fileUrl);\n }\n }\n }\n\n refreshFileListUrl() {\n this.fileList().forEach(f => {\n f.url = this.getUrl(f.response?.[this.options.urlField()]);\n });\n }\n\n}\n","<nz-upload [(nzFileList)]=\"fileList\"\n [nzType]=\"options.listType()!='picture-card'&& options.buttonType()=='drag-file'?'drag':'select'\"\n [nzDirectory]=\"directory()\" [nzAccept]=\"options.fileType()\" [nzMultiple]=\"options.multiple()\"\n [nzLimit]=\"limitLength()\" [nzSize]=\"options.limitSize()\" [nzListType]=\"options.listType()\"\n [nzDisabled]=\"options.disabled()\" [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\"\n [nzShowButton]=\"!options.readonly() && (limitLength() == null || fileList().length<limitLength()!)\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true,showDownloadIcon:true}\">\n @if (options.listType() == \"picture-card\") {\n <div>\n <nz-icon nzType=\"plus\" />\n <div style=\"margin-top: 8px\">{{options.buttonTitle()}}</div>\n </div>\n }@else if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './upload';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAExC,IAAA,GAAG,GAAG,MAAM,CAAC,EAAE,0EAAC;AAChB,IAAA,QAAQ,GAAG,MAAM,CAAC,MAAM,+EAAC;AACzB,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;AACzB,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,+EAAC;AACxB,IAAA,aAAa,GAAG,MAAM,CAAC,UAAU,oFAAC;AAClC,IAAA,UAAU,GAAG,MAAM,CAAC,EAAE,iFAAC;AAEvB,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,+EAAC;AACxB,IAAA,QAAQ,GAAG,MAAM,CAAC,IAAI,+EAAC;AACvB,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;AACzB,IAAA,WAAW,GAAG,MAAM,CAAgB,IAAI,kFAAC;AACzC,IAAA,SAAS,GAAG,MAAM,CAAgB,IAAI,gFAAC;AAEvC,IAAA,QAAQ,GAAG,MAAM,CAAsC,MAAM,+EAAC;AAC9D,IAAA,UAAU,GAAG,MAAM,CAAyB,QAAQ,iFAAC;AACrD,IAAA,WAAW,GAA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A,eAAA,EAAA,QAAA,EAAA,2EAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,YAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,YAAA,EAAA,UAAA,EAAA,qBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,sBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,8BAAE,aAAa,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAK1F,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,WACd,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,CAAC,EAAA,eAAA,EAGrF,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4tDAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEhBjD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-upload.mjs","sources":["../../../axis-components/upload/upload.options.ts","../../../axis-components/upload/upload.ts","../../../axis-components/upload/upload.html","../../../axis-components/upload/ngx-axis-appforge-axis-components-upload.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class UploadOptions extends ValueAccessOptions {\n\n readonly url = signal(\"\");\n readonly formName = signal(\"file\");\n readonly fullValue = signal(false);\n readonly urlField = signal(\"url\");\n readonly filenameField = signal(\"filename\");\n readonly responseFn = signal(\"\");\n\n readonly fileType = signal(\"*/*\");\n readonly multiple = signal(true);\n readonly directory = signal(false);\n readonly limitLength = signal<number | null>(null);\n readonly limitSize = signal<number | null>(null);\n\n readonly listType = signal<\"text\" | \"picture\" | \"picture-card\">(\"text\");\n readonly buttonType = signal<\"drag-file\" | \"custom\">(\"custom\");\n readonly buttonTitle = signal<string>(\"上传\");\n readonly buttonIcon = signal<any>({ component: 'axis-components/icon', inuse: true, icon: 'upload' });\n readonly buttonStyle = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly buttonSize = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly buttonBlock = signal<boolean>(false);\n readonly buttonShape = signal<null | \"circle\" | \"round\">(null);\n readonly dropTitle = signal<string>(\"点击或拖拽上传\");\n readonly dropTip = signal<string>(\"\");\n}","import { ChangeDetectionStrategy, Component, computed, inject, model } from '@angular/core';\nimport { UploadOptions } from './upload.options';\nimport { AXIS_FILE_BASE_URL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, DynamicDirective, fn, sendApi, ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzUploadChangeParam, NzUploadFile, NzUploadModule, NzUploadXHRArgs } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\nimport { BehaviorSubject, Subscription } from 'rxjs';\nimport { HttpClient, HttpContext, HttpEventType, HttpResponse } from '@angular/common/http';\nimport { NzImageModule, NzImageService } from 'ng-zorro-antd/image';\n\n@Component({\n selector: 'axis-upload',\n imports: [NzUploadModule, NzButtonModule, NzIconModule, DynamicDirective, NzFlexModule, NzImageModule],\n templateUrl: './upload.html',\n styleUrl: './upload.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Upload extends ValueAccess<UploadOptions> {\n\n override options: UploadOptions = new UploadOptions();\n readonly httpContextData = inject(AXIS_HTTP_CONTEXT_DATA_TOKEN, { optional: true });\n private readonly fileBaseUrl = inject(AXIS_FILE_BASE_URL_TOKEN, { optional: true }) ?? \"\";\n private readonly http = inject(HttpClient);\n private readonly imageService = inject(NzImageService);\n readonly fileList = model<NzUploadFile[]>([]);\n readonly limitLength = computed(() => this.options.multiple() ? this.options.limitLength() : 1);\n readonly directory = computed(() => this.options.multiple() && this.options.directory());\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n if (value !== undefined) {\n this.updateFileList(value);\n }\n }\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.updateFileList(value);\n }\n\n private updateFileList(value: any) {\n if (value) {\n if (!this.options.multiple()) {\n value = [value];\n }\n this.fileList.set((value as any[]).map(r => this.options.fullValue() ? r : {\n [this.options.urlField()]: r,\n [this.options.filenameField()]: this.getFileNameByUrl(r),\n }).map((resp, i) => ({\n uid: i.toString(),\n url: this.getUrl(resp[this.options.urlField()]),\n name: resp[this.options.filenameField()],\n status: 'done',\n response: resp\n })));\n } else {\n this.fileList.set([]);\n }\n }\n\n private getFileNameByUrl(url: string | undefined): string {\n if (!url) {\n return \"\";\n }\n const i = url.lastIndexOf(\"/\");\n if (i > -1) {\n return url.substring(i + 1);\n }\n return url;\n }\n\n private updateValue(fileList: NzUploadFile[]) {\n let value: any = fileList.map(f => this.options.fullValue() ? f.response : f.response[this.options.urlField()]);\n if (!this.options.multiple()) {\n value = value[0] ?? null;\n }\n this.value.set(value);\n this.onChange?.(this.value());\n }\n\n getUrl(url: string): string {\n if (url.startsWith(\"http\")) {\n return url;\n } else if (this.fileBaseUrl instanceof BehaviorSubject) {\n return this.fileBaseUrl.value + url;\n } else {\n return this.fileBaseUrl + url;\n }\n }\n\n upload = (item: NzUploadXHRArgs): Subscription => {\n const formData = new FormData();\n formData.append(this.options.formName(), item.file as any);\n let context: HttpContext | undefined;\n if (this.httpContextData) {\n let contextData: any;\n if (this.httpContextData instanceof BehaviorSubject) {\n contextData = this.httpContextData.value;\n } else {\n contextData = this.httpContextData;\n }\n context = new HttpContext().set(AXIS_HTTP_CONTEXT_TOKEN, contextData);\n }\n return this.http.post(this.options.url(), formData, {\n context: context,\n reportProgress: true,\n observe: 'events',\n }).subscribe(event => {\n if (event instanceof HttpResponse) {\n let res: any = event.body;\n if (this.options.responseFn()) {\n res = this.runFn(this.options.responseFn(), { apiResponse: event.body })\n }\n const { success, errmsg } = res;\n if (success) {\n item.file.url = res[this.options.urlField()];\n res[this.options.filenameField()] ??= this.getFileNameByUrl(item.file.url!);\n item.file.filename = res[this.options.filenameField()];\n item.onSuccess?.(res, item.file, null);\n } else {\n item.onError?.(errmsg || \"上传失败\", item.file);\n }\n } else if (event.type == HttpEventType.UploadProgress) {\n item.onProgress?.({ percent: Math.floor(event.loaded / event.total! * 100) }, item.file)\n }\n });\n }\n\n fileChange(e: NzUploadChangeParam) {\n switch (e.type) {\n case \"success\":\n this.refreshFileListUrl();\n this.updateValue(e.fileList);\n break;\n case \"removed\":\n this.updateValue(e.fileList);\n break;\n }\n }\n\n handlePreview = async (file: NzUploadFile) => {\n const fileUrl = file.response[this.options.urlField()];\n if (fileUrl) {\n if (file['isImageUrl']) {\n const imgList = this.fileList().map(e => ({ src: e.response[this.options.urlField()] }));\n const index = imgList.findIndex(e => e.src == fileUrl);\n this.imageService.preview(imgList).switchTo(index);\n } else {\n open(fileUrl);\n }\n }\n }\n\n refreshFileListUrl() {\n this.fileList().forEach(f => {\n f.url = this.getUrl(f.response?.[this.options.urlField()]);\n });\n }\n\n}\n","<nz-upload [(nzFileList)]=\"fileList\"\n [nzType]=\"options.listType()!='picture-card'&& options.buttonType()=='drag-file'?'drag':'select'\"\n [nzDirectory]=\"directory()\" [nzAccept]=\"options.fileType()\" [nzMultiple]=\"options.multiple()\"\n [nzLimit]=\"limitLength()\" [nzSize]=\"options.limitSize()\" [nzListType]=\"options.listType()\"\n [nzDisabled]=\"options.disabled()\" [nzCustomRequest]=\"upload\" (nzChange)=\"fileChange($event)\"\n [nzShowButton]=\"!options.readonly() && (limitLength() == null || fileList().length<limitLength()!)\"\n [nzPreview]=\"handlePreview\"\n [nzShowUploadList]=\"{showRemoveIcon:!this.options.readonly() && !this.options.disabled(),showPreviewIcon:true,showDownloadIcon:true}\">\n @if (options.listType() == \"picture-card\") {\n <div>\n <nz-icon nzType=\"plus\" />\n <div style=\"margin-top: 8px\">{{options.buttonTitle()}}</div>\n </div>\n }@else if (options.buttonType() == \"drag-file\") {\n <p class=\"ant-upload-drag-icon\">\n <nz-icon nzType=\"inbox\" />\n </p>\n <p class=\"ant-upload-text\">{{options.dropTitle()}}</p>\n @if (options.dropTip()) {\n <p class=\"ant-upload-hint\">\n {{options.dropTip()}}\n </p>\n }\n }@else {\n <button nz-button [nzSize]=\"options.buttonSize()\" [nzType]=\"options.buttonStyle()\" [nzBlock]=\"options.buttonBlock()\"\n [nzShape]=\"options.buttonShape()\">\n @if (options.buttonIcon()) {\n <ng-container [axisDynamic]=\"options.buttonIcon()\" [standalone]=\"true\"></ng-container>\n @if (options.buttonTitle()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.buttonTitle()}}\n </button>\n }\n</nz-upload>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './upload';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;IAExC,GAAG,GAAG,MAAM,CAAC,EAAE;4EAAC;IAChB,QAAQ,GAAG,MAAM,CAAC,MAAM;iFAAC;IACzB,SAAS,GAAG,MAAM,CAAC,KAAK;kFAAC;IACz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