@ibiz-template/vue3-components 0.7.41-alpha.16 → 0.7.41-alpha.18

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 (262) hide show
  1. package/dist/chart-q7pMKjYo.js +1 -0
  2. package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
  3. package/dist/{index-U4v1OOOD.js → index-AOFxMmyX.js} +1 -1
  4. package/dist/index-dXwgWAM8.js +11 -0
  5. package/dist/{index-lFGFvnYE.js → index-swminiXb.js} +1 -1
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.system.min.js +1 -1
  8. package/dist/map-chart-user-NYROZ-6g.js +1 -0
  9. package/dist/wang-editor-4OlaBV3P.js +1 -0
  10. package/dist/{xlsx-util-FNiwKrqm.js → xlsx-util-Rg-AbK_G.js} +1 -1
  11. package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +3 -1
  12. package/es/common/control-navigation/provider/index.mjs +1 -1
  13. package/es/common/control-navigation/provider/map-navigation.provider.d.ts +8 -2
  14. package/es/common/control-navigation/provider/map-navigation.provider.mjs +20 -1
  15. package/es/common/map-chart-user/map-chart-user.css +1 -1
  16. package/es/common/map-chart-user/map-chart-user.d.ts +11 -1
  17. package/es/common/map-chart-user/map-chart-user.mjs +82 -6
  18. package/es/common/map-chart-user/map-chart-user.util.d.ts +2 -0
  19. package/es/common/map-chart-user/map-chart-user.util.mjs +54 -3
  20. package/es/common/map-chart-user/map-user-manager.d.ts +2 -0
  21. package/es/common/map-chart-user/map-user-manager.mjs +46 -10
  22. package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  23. package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +30 -43
  24. package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +6 -2
  25. package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +37 -4
  26. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
  27. package/es/control/calendar/components/calendar-user/calendar-user.mjs +1 -0
  28. package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
  29. package/es/control/calendar/components/calendar-week/calendar-week.mjs +30 -45
  30. package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +6 -2
  31. package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +37 -4
  32. package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  33. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +25 -8
  34. package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +8 -0
  35. package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +20 -1
  36. package/es/control/calendar/components/util/index.mjs +1 -1
  37. package/es/control/calendar/components/util/util.d.ts +30 -2
  38. package/es/control/calendar/components/util/util.mjs +32 -2
  39. package/es/control/chart/chart.mjs +1 -0
  40. package/es/control/data-view/data-view.css +1 -1
  41. package/es/control/data-view/data-view.d.ts +1 -1
  42. package/es/control/data-view/data-view.mjs +95 -29
  43. package/es/control/data-view/index.d.ts +1 -1
  44. package/es/control/drbar/drbar.css +1 -1
  45. package/es/control/drtab/drtab-control.util.mjs +1 -1
  46. package/es/control/drtab/drtab.controller.d.ts +29 -0
  47. package/es/control/drtab/drtab.controller.mjs +53 -0
  48. package/es/control/drtab/drtab.css +1 -1
  49. package/es/control/drtab/drtab.d.ts +2 -0
  50. package/es/control/drtab/drtab.mjs +5 -2
  51. package/es/control/drtab/flow-drtab.css +1 -1
  52. package/es/control/drtab/flow-drtab.d.ts +17 -2
  53. package/es/control/drtab/flow-drtab.mjs +194 -11
  54. package/es/control/drtab/index.d.ts +2 -0
  55. package/es/control/exp-bar/render-util.mjs +1 -12
  56. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
  57. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +59 -4
  58. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  59. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +11 -11
  60. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  61. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +2 -1
  62. package/es/control/gantt/gantt.css +1 -1
  63. package/es/control/gantt/gantt.d.ts +4 -2
  64. package/es/control/gantt/gantt.mjs +131 -5
  65. package/es/control/gantt/index.d.ts +4 -2
  66. package/es/control/grid/grid/grid-control.util.mjs +36 -14
  67. package/es/control/grid/grid/grid.css +1 -1
  68. package/es/control/grid/grid/grid.d.ts +1 -1
  69. package/es/control/grid/grid/grid.mjs +8 -3
  70. package/es/control/grid/grid/index.d.ts +1 -1
  71. package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
  72. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
  73. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
  74. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  75. package/es/control/grid/virtualized-table/index.d.ts +1 -1
  76. package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
  77. package/es/control/kanban/index.d.ts +5 -2
  78. package/es/control/kanban/kanban.css +1 -1
  79. package/es/control/kanban/kanban.d.ts +5 -2
  80. package/es/control/kanban/kanban.mjs +51 -15
  81. package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
  82. package/es/control/kanban/swimlane-kanban/swimlane-kanban.d.ts +2 -1
  83. package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +52 -6
  84. package/es/control/list/index.d.ts +1 -1
  85. package/es/control/list/list.css +1 -1
  86. package/es/control/list/list.d.ts +2 -2
  87. package/es/control/list/list.mjs +84 -12
  88. package/es/control/map/map.mjs +1 -1
  89. package/es/control/medit-view-panel/medit-view-panel.css +1 -1
  90. package/es/control/medit-view-panel/medit-view-panel.mjs +37 -30
  91. package/es/control/tree/index.d.ts +1 -1
  92. package/es/control/tree/tree.d.ts +5 -5
  93. package/es/control/tree/tree.mjs +5 -13
  94. package/es/control/tree-grid/index.d.ts +7 -1
  95. package/es/control/tree-grid/tree-grid.d.ts +7 -1
  96. package/es/control/tree-grid/tree-grid.mjs +62 -55
  97. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
  98. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  99. package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
  100. package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
  101. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
  102. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
  103. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
  104. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +47 -8
  105. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
  106. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
  107. package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
  108. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
  109. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
  110. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -0
  111. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
  112. package/es/editor/upload/upload-editor.controller.d.ts +25 -0
  113. package/es/editor/upload/upload-editor.controller.mjs +43 -1
  114. package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
  115. package/es/editor/upload/use/use-iview-upload.mjs +59 -27
  116. package/es/locale/en/index.d.ts +14 -5
  117. package/es/locale/en/index.mjs +5 -2
  118. package/es/locale/zh-CN/index.d.ts +14 -5
  119. package/es/locale/zh-CN/index.mjs +5 -2
  120. package/es/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs +3377 -0
  121. package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
  122. package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
  123. package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
  124. package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
  125. package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
  126. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
  127. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
  128. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  129. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
  130. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
  131. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
  132. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
  133. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
  134. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
  135. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
  136. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
  137. package/es/panel-component/panel-button/panel-button.mjs +1 -0
  138. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
  139. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
  140. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  141. package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
  142. package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
  143. package/es/view-engine/calendar-view.engine.d.ts +11 -1
  144. package/es/view-engine/calendar-view.engine.mjs +10 -0
  145. package/es/view-engine/chart-exp-view.engine.d.ts +6 -6
  146. package/es/view-engine/chart-exp-view.engine.mjs +6 -15
  147. package/es/view-engine/edit-view.engine.d.ts +11 -0
  148. package/es/view-engine/edit-view.engine.mjs +12 -0
  149. package/es/view-engine/gantt-view.engine.d.ts +3 -3
  150. package/es/view-engine/gantt-view.engine.mjs +3 -46
  151. package/es/view-engine/login-view.engine.d.ts +11 -1
  152. package/es/view-engine/login-view.engine.mjs +16 -5
  153. package/es/view-engine/mpickup-view-engine.d.ts +8 -1
  154. package/es/view-engine/mpickup-view-engine.mjs +14 -8
  155. package/es/view-engine/pickup-view.engine.d.ts +8 -1
  156. package/es/view-engine/pickup-view.engine.mjs +15 -0
  157. package/es/view-engine/tab-exp-view.engine.mjs +1 -1
  158. package/es/view-engine/tab-search-view.engine.mjs +4 -2
  159. package/es/view-engine/tree-view.engine.d.ts +12 -2
  160. package/es/view-engine/tree-view.engine.mjs +39 -11
  161. package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
  162. package/lib/common/control-navigation/provider/index.cjs +1 -1
  163. package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
  164. package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
  165. package/lib/common/map-chart-user/map-chart-user.css +1 -1
  166. package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
  167. package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
  168. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
  169. package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  170. package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
  171. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
  172. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
  173. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
  174. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  175. package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
  176. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +23 -6
  177. package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  178. package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +20 -0
  179. package/lib/control/calendar/components/util/index.cjs +4 -0
  180. package/lib/control/calendar/components/util/util.cjs +34 -0
  181. package/lib/control/chart/chart.cjs +1 -0
  182. package/lib/control/data-view/data-view.cjs +95 -29
  183. package/lib/control/data-view/data-view.css +1 -1
  184. package/lib/control/drbar/drbar.css +1 -1
  185. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  186. package/lib/control/drtab/drtab.cjs +5 -2
  187. package/lib/control/drtab/drtab.controller.cjs +53 -0
  188. package/lib/control/drtab/drtab.css +1 -1
  189. package/lib/control/drtab/flow-drtab.cjs +193 -10
  190. package/lib/control/drtab/flow-drtab.css +1 -1
  191. package/lib/control/exp-bar/render-util.cjs +1 -12
  192. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +58 -3
  193. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
  194. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +11 -11
  195. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  196. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
  197. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  198. package/lib/control/gantt/gantt.cjs +130 -4
  199. package/lib/control/gantt/gantt.css +1 -1
  200. package/lib/control/grid/grid/grid-control.util.cjs +36 -14
  201. package/lib/control/grid/grid/grid.cjs +8 -3
  202. package/lib/control/grid/grid/grid.css +1 -1
  203. package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
  204. package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
  205. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  206. package/lib/control/kanban/kanban.cjs +50 -14
  207. package/lib/control/kanban/kanban.css +1 -1
  208. package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +50 -4
  209. package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
  210. package/lib/control/list/list.cjs +84 -12
  211. package/lib/control/list/list.css +1 -1
  212. package/lib/control/map/map.cjs +1 -1
  213. package/lib/control/medit-view-panel/medit-view-panel.cjs +36 -29
  214. package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
  215. package/lib/control/tree/tree.cjs +5 -13
  216. package/lib/control/tree-grid/tree-grid.cjs +62 -55
  217. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
  218. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  219. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
  220. package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
  221. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
  222. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +47 -8
  223. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
  224. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
  225. package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
  226. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
  227. package/lib/editor/upload/upload-editor.controller.cjs +43 -1
  228. package/lib/editor/upload/use/use-iview-upload.cjs +59 -27
  229. package/lib/locale/en/index.cjs +5 -2
  230. package/lib/locale/zh-CN/index.cjs +5 -2
  231. package/lib/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +3384 -0
  232. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
  233. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
  234. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  235. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
  236. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
  237. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
  238. package/lib/panel-component/panel-button/panel-button.cjs +1 -0
  239. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
  240. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  241. package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
  242. package/lib/view-engine/calendar-view.engine.cjs +10 -0
  243. package/lib/view-engine/chart-exp-view.engine.cjs +6 -15
  244. package/lib/view-engine/edit-view.engine.cjs +12 -0
  245. package/lib/view-engine/gantt-view.engine.cjs +2 -45
  246. package/lib/view-engine/login-view.engine.cjs +16 -5
  247. package/lib/view-engine/mpickup-view-engine.cjs +14 -8
  248. package/lib/view-engine/pickup-view.engine.cjs +15 -0
  249. package/lib/view-engine/tab-exp-view.engine.cjs +1 -1
  250. package/lib/view-engine/tab-search-view.engine.cjs +4 -2
  251. package/lib/view-engine/tree-view.engine.cjs +39 -11
  252. package/package.json +10 -8
  253. package/dist/chart-8QfxarWf.js +0 -1
  254. package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
  255. package/dist/index-m8q8r8br.js +0 -4
  256. package/dist/map-chart-user-xOSZGbF2.js +0 -1
  257. package/dist/wang-editor-_06OYPpu.js +0 -1
  258. package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
  259. package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
  260. package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
  261. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  262. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -94,22 +94,42 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
94
94
  }, 100);
95
95
  }
96
96
  };
97
- const handleOpenViewClose = (result) => {
97
+ const handleOpenViewClose = async (result) => {
98
98
  const selects = [];
99
99
  if (result && Array.isArray(result)) {
100
- result.forEach((select) => {
100
+ const calcPromises = result.map(async (select) => {
101
+ const item = select;
102
+ if (select.srfnodeid) {
103
+ Object.assign(item, select._deData);
104
+ }
105
+ const dataItems = await c.calcFillDataItems(item);
106
+ const res = {};
107
+ dataItems.forEach((dataItem) => {
108
+ Object.assign(res, {
109
+ [dataItem.id]: dataItem.value
110
+ });
111
+ });
112
+ return res;
113
+ });
114
+ const dataItemsList = await Promise.all(calcPromises);
115
+ result.forEach((select, _index) => {
101
116
  Object.assign(select, {
102
117
  [c.keyName]: select[c.keyName] ? select[c.keyName] : select.srfkey,
103
118
  [c.textName]: select[c.textName] ? select[c.textName] : select.srfmajortext
104
119
  });
120
+ const data = dataItemsList[_index];
105
121
  if (c.model.valueType === "OBJECTS") {
106
- selects.push(c.handleObjectParams(select));
122
+ selects.push({
123
+ ...c.handleObjectParams(select),
124
+ ...data
125
+ });
107
126
  } else if (c.objectIdField) {
108
127
  selects.push(select[c.keyName]);
109
128
  } else {
110
129
  selects.push({
111
130
  [c.keyName]: select[c.keyName],
112
- [c.textName]: select[c.textName]
131
+ [c.textName]: select[c.textName],
132
+ ...data
113
133
  });
114
134
  }
115
135
  const index = items.value.findIndex((item) => Object.is(item[c.keyName], select[c.keyName]));
@@ -144,7 +164,7 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
144
164
  handleOpenViewClose(res);
145
165
  }
146
166
  };
147
- const onSelect = (selects) => {
167
+ const onSelect = async (selects) => {
148
168
  setEditable(false);
149
169
  if (selects.includes("empty")) {
150
170
  resetCurValue();
@@ -152,7 +172,7 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
152
172
  }
153
173
  const val = [];
154
174
  let value = null;
155
- selects.forEach((select) => {
175
+ const selections = selects.map((select) => {
156
176
  let index = items.value.findIndex((item2) => Object.is(item2[c.keyName], select));
157
177
  let item = {};
158
178
  if (index >= 0) {
@@ -163,14 +183,33 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
163
183
  item = selectItems.value[index];
164
184
  }
165
185
  }
186
+ return item;
187
+ });
188
+ const calcPromises = selections.map(async (select) => {
189
+ const dataItems = await c.calcFillDataItems(select);
190
+ const res = {};
191
+ dataItems.forEach((dataItem) => {
192
+ Object.assign(res, {
193
+ [dataItem.id]: dataItem.value
194
+ });
195
+ });
196
+ return res;
197
+ });
198
+ const dataItemsList = await Promise.all(calcPromises);
199
+ selections.forEach((item, index) => {
200
+ const data = dataItemsList[index];
166
201
  if (c.model.valueType === "OBJECTS") {
167
- val.push(c.handleObjectParams(item));
202
+ val.push({
203
+ ...c.handleObjectParams(item),
204
+ ...data
205
+ });
168
206
  } else if (c.objectIdField) {
169
207
  val.push(item[c.keyName]);
170
208
  } else {
171
209
  val.push({
172
210
  [c.keyName]: item[c.keyName],
173
- [c.textName]: item[c.textName]
211
+ [c.textName]: item[c.textName],
212
+ ...data
174
213
  });
175
214
  }
176
215
  });
@@ -83,9 +83,25 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
83
83
  }
84
84
  setEditable(false);
85
85
  };
86
+ const calcSelectItem = () => {
87
+ const selectItems = [];
88
+ if (curValue.value) {
89
+ const selectItem = {
90
+ srfkey: props.data[c.valueItem],
91
+ srfmajortext: curValue.value,
92
+ ...c.model.valueType === "OBJECT" && props.value && c.objectValueField ? props.value[c.objectValueField] : {}
93
+ };
94
+ if (c.deACMode && c.dataItems.length)
95
+ c.dataItems.forEach((item) => Object.assign(selectItem, {
96
+ [item.appDEFieldId]: props.data[item.id]
97
+ }));
98
+ selectItems.push(selectItem);
99
+ }
100
+ return selectItems;
101
+ };
86
102
  const openPickUpView = async (e) => {
87
103
  e.stopPropagation();
88
- const res = await c.openPickUpView(props.data);
104
+ const res = await c.openPickUpView(props.data, JSON.stringify(calcSelectItem()));
89
105
  if (res && res[0]) {
90
106
  await handleDataSelect(res[0]);
91
107
  }
@@ -323,8 +323,10 @@ const IBizVirtualizedList = /* @__PURE__ */ defineComponent({
323
323
  const isEllipsis = overflowMode === "ellipsis";
324
324
  const editContent = createVNode(resolveComponent("el-select-v2"), mergeProps({
325
325
  "ref": "editorRef",
326
- "modelValue": this.curValue,
327
- "onUpdate:modelValue": ($event) => this.curValue = $event,
326
+ "modelValue": this.curValue || void 0,
327
+ "onUpdate:modelValue": (value) => {
328
+ this.curValue = value;
329
+ },
328
330
  "clearable": true,
329
331
  "class": [this.ns.b("select")],
330
332
  "filterable": true,
@@ -32,7 +32,6 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
32
32
  ...uploadHeaders
33
33
  });
34
34
  const uploadUrl = ref("");
35
- const downloadUrl = ref("");
36
35
  const enableEdit = ref(true);
37
36
  const hasEnableEdit = ref(false);
38
37
  const readonlyState = ref(false);
@@ -61,6 +60,19 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
61
60
  hasEnableEdit.value = false;
62
61
  readonlyState.value = true;
63
62
  }
63
+ const getDownloadUrl = (data, file) => {
64
+ const editorParams = {
65
+ ...c.editorParams
66
+ };
67
+ if (editorParams.exportparams) {
68
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
69
+ }
70
+ if (file && file.folder) {
71
+ editorParams.osscat = file.folder;
72
+ }
73
+ const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, data, editorParams);
74
+ return urls.downloadUrl;
75
+ };
64
76
  watch(() => props.data, (newVal) => {
65
77
  if (newVal) {
66
78
  const editorParams = {
@@ -69,12 +81,8 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
69
81
  if (editorParams.uploadparams) {
70
82
  editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
71
83
  }
72
- if (editorParams.exportparams) {
73
- editorParams.exportParams = JSON.parse(editorParams.exportparams);
74
- }
75
84
  const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
76
85
  uploadUrl.value = urls.uploadUrl;
77
- downloadUrl.value = urls.downloadUrl;
78
86
  }
79
87
  }, {
80
88
  immediate: true,
@@ -127,6 +135,9 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
127
135
  },
128
136
  // 单个文件上传成功之后
129
137
  onSuccess(file, res) {
138
+ if (ibiz.config.common.enableDownloadTicket) {
139
+ ibiz.util.file.setDownloadTicket(res.id, res.ticket);
140
+ }
130
141
  console.log("".concat(file.name, " \u4E0A\u4F20\u6210\u529F"), res);
131
142
  },
132
143
  // 单个文件上传失败
@@ -139,9 +150,20 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
139
150
  },
140
151
  // 自定义插入图片
141
152
  async customInsert(res, insertFn) {
142
- const url = downloadUrl.value.replace("%fileId%", res.id);
153
+ const downloadUrl = getDownloadUrl(props.data, res);
154
+ let url = downloadUrl.replace("%fileId%", res.id);
143
155
  const alt = res.filename;
144
- insertFn(url, alt, "");
156
+ if (ibiz.config.common.enableDownloadTicket) {
157
+ const downloadTicket = await ibiz.util.file.getDownloadTicket(c.context, {
158
+ fileId: res.id
159
+ });
160
+ if (downloadTicket && downloadTicket.ticket) {
161
+ url = downloadUrl.replace("%fileId%", downloadTicket.ticket);
162
+ insertFn(url, alt, "");
163
+ }
164
+ } else {
165
+ insertFn(url, alt, "");
166
+ }
145
167
  }
146
168
  },
147
169
  // 插入链接
@@ -23,7 +23,6 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
23
23
  ...uploadHeaders
24
24
  });
25
25
  const uploadUrl = ref("");
26
- const downloadUrl = ref("");
27
26
  const customTheme = ((_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme) || ((_b = c == null ? void 0 : c.editorParams) == null ? void 0 : _b.customtheme);
28
27
  const {
29
28
  UIStore
@@ -36,19 +35,51 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
36
35
  let isIgnoreChange = false;
37
36
  watch(() => props.data, (newVal) => {
38
37
  if (newVal && c) {
39
- const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, c.editorParams);
38
+ const editorParams = {
39
+ ...c.editorParams
40
+ };
41
+ if (editorParams.uploadparams) {
42
+ editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
43
+ }
44
+ const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
40
45
  uploadUrl.value = urls.uploadUrl;
41
- downloadUrl.value = urls.downloadUrl;
42
46
  }
43
47
  }, {
44
48
  immediate: true,
45
49
  deep: true
46
50
  });
47
51
  const markDownBox = ref();
52
+ const getDownloadUrl = (data, file) => {
53
+ if (!c) {
54
+ return "";
55
+ }
56
+ const editorParams = {
57
+ ...c.editorParams
58
+ };
59
+ if (editorParams.exportparams) {
60
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
61
+ }
62
+ if (file && file.folder) {
63
+ editorParams.osscat = file.folder;
64
+ }
65
+ const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, data, editorParams);
66
+ return urls.downloadUrl;
67
+ };
48
68
  const fileUpload = async (file, callback) => {
49
69
  const data = await ibiz.util.file.fileUpload(uploadUrl.value, file, headers.value);
50
- const url = downloadUrl.value.replace("%fileId%", data.fileid);
51
- callback(url);
70
+ const downloadUrl = getDownloadUrl(props.data || {}, data.fileid);
71
+ let url = downloadUrl.replace("%fileId%", data.fileid);
72
+ if (ibiz.config.common.enableDownloadTicket && c) {
73
+ const downloadTicket = await ibiz.util.file.getDownloadTicket(c.context, {
74
+ fileId: data.fileid
75
+ });
76
+ if (downloadTicket && downloadTicket.ticket) {
77
+ url = downloadUrl.replace("%fileId%", downloadTicket.ticket);
78
+ callback(url);
79
+ }
80
+ } else {
81
+ callback(url);
82
+ }
52
83
  };
53
84
  const getCherryHtml = () => {
54
85
  const result = editor == null ? void 0 : editor.getHtml();
@@ -11,6 +11,7 @@ import './ibiz-file-upload.scss';
11
11
  * @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片或文件上传时,用于计算上传路径"}
12
12
  * @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片或文件下载时,用于计算下载路径"}
13
13
  * @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
14
+ * @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
14
15
  * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
15
16
  * @ignoreprops autoFocus | overflowMode
16
17
  * @ignoreemits blur | focus | enter | infoTextChange
@@ -13,6 +13,7 @@ import './ibiz-image-cropping.scss';
13
13
  * @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片上传时,用于计算上传路径"}
14
14
  * @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片下载时,用于计算下载路径"}
15
15
  * @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
16
+ * @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
16
17
  * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
17
18
  * @ignoreprops autoFocus | overflowMode
18
19
  * @ignoreemits blur | focus | enter | infoTextChange
@@ -11,6 +11,7 @@ import { UploadEditorController } from '../upload-editor.controller';
11
11
  * @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片上传时,用于计算上传路径"}
12
12
  * @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片下载时,用于计算下载路径"}
13
13
  * @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
14
+ * @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
14
15
  * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
15
16
  * @ignoreprops autoFocus | overflowMode
16
17
  * @ignoreemits blur | focus | enter | infoTextChange
@@ -34,6 +34,10 @@ export declare class UploadEditorController extends EditorController<IFileUpload
34
34
  * 下载参数
35
35
  */
36
36
  exportParams?: IParams;
37
+ /**
38
+ * 上传文件信息的映射规则字符串,格式为"源键:目标键;源键2:目标键2"
39
+ */
40
+ infoMap: string;
37
41
  /**
38
42
  * 自适应预览
39
43
  * 只读状态下且配置了编辑器参数autoPreview ,加载完图片后自动调整大小达到预览态,且禁用图片hover工具栏
@@ -43,4 +47,25 @@ export declare class UploadEditorController extends EditorController<IFileUpload
43
47
  */
44
48
  autoPreview: boolean;
45
49
  protected onInit(): Promise<void>;
50
+ /**
51
+ * 根据配置的映射关系转换对象属性
52
+ * 将源对象的指定属性,按照映射规则映射到新对象的目标属性
53
+ *
54
+ * @param {IData} [_data={}] - 源数据对象,包含需要被映射的原始属性
55
+ * @param {string} [infoMap=''] - 映射规则字符串,格式为"源键:目标键;源键2:目标键2"
56
+ * @param {boolean} [isEmit=false] - 是否为抛值时处理,抛值时将源键替换为目标键
57
+ * @returns {IData} 转换后的新对象,仅包含映射规则中定义的属性
58
+ *
59
+ * @example
60
+ * // isEmit=false
61
+ * // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
62
+ * // 映射规则:'filesize:size;fileext:ext;folder:folder';
63
+ * // 转换结果: { size:'10000', ext:'.gif', folder:'file' }
64
+ *
65
+ * // isEmit=true
66
+ * // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
67
+ * // 映射规则:'filesize:size;fileext:ext;folder:folder';
68
+ * // 转换结果: { size:undefined, ext:undefined, folder:'file' }
69
+ */
70
+ transformInfoMap: (_data?: IData, infoMap?: string, isEmit?: boolean) => IData;
46
71
  }
@@ -38,6 +38,10 @@ class UploadEditorController extends EditorController {
38
38
  * 下载参数
39
39
  */
40
40
  __publicField(this, "exportParams");
41
+ /**
42
+ * 上传文件信息的映射规则字符串,格式为"源键:目标键;源键2:目标键2"
43
+ */
44
+ __publicField(this, "infoMap", "");
41
45
  /**
42
46
  * 自适应预览
43
47
  * 只读状态下且配置了编辑器参数autoPreview ,加载完图片后自动调整大小达到预览态,且禁用图片hover工具栏
@@ -46,10 +50,44 @@ class UploadEditorController extends EditorController {
46
50
  * @memberof UploadEditorController
47
51
  */
48
52
  __publicField(this, "autoPreview", false);
53
+ /**
54
+ * 根据配置的映射关系转换对象属性
55
+ * 将源对象的指定属性,按照映射规则映射到新对象的目标属性
56
+ *
57
+ * @param {IData} [_data={}] - 源数据对象,包含需要被映射的原始属性
58
+ * @param {string} [infoMap=''] - 映射规则字符串,格式为"源键:目标键;源键2:目标键2"
59
+ * @param {boolean} [isEmit=false] - 是否为抛值时处理,抛值时将源键替换为目标键
60
+ * @returns {IData} 转换后的新对象,仅包含映射规则中定义的属性
61
+ *
62
+ * @example
63
+ * // isEmit=false
64
+ * // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
65
+ * // 映射规则:'filesize:size;fileext:ext;folder:folder';
66
+ * // 转换结果: { size:'10000', ext:'.gif', folder:'file' }
67
+ *
68
+ * // isEmit=true
69
+ * // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
70
+ * // 映射规则:'filesize:size;fileext:ext;folder:folder';
71
+ * // 转换结果: { size:undefined, ext:undefined, folder:'file' }
72
+ */
73
+ __publicField(this, "transformInfoMap", (_data = {}, infoMap = "", isEmit = false) => {
74
+ const result = {};
75
+ const mappings = infoMap.split(";");
76
+ mappings.forEach((mapping) => {
77
+ let [sourceKey, targetKey] = mapping.split(":");
78
+ if (isEmit)
79
+ sourceKey = targetKey;
80
+ if (sourceKey && targetKey) {
81
+ Object.assign(result, { [targetKey]: _data[sourceKey] });
82
+ }
83
+ });
84
+ return result;
85
+ });
49
86
  }
50
87
  async onInit() {
51
88
  var _a;
52
89
  await super.onInit();
90
+ this.infoMap = ibiz.config.uploadEditor.infoMap;
53
91
  if ((_a = this.model.editorType) == null ? void 0 : _a.includes("PICTURE")) {
54
92
  this.accept = "image/*";
55
93
  }
@@ -74,7 +112,8 @@ class UploadEditorController extends EditorController {
74
112
  isdrag,
75
113
  uploadparams,
76
114
  exportparams,
77
- autopreview
115
+ autopreview,
116
+ infomap
78
117
  } = this.editorParams;
79
118
  if (isDrag) {
80
119
  this.isDrag = Boolean(isDrag);
@@ -97,6 +136,9 @@ class UploadEditorController extends EditorController {
97
136
  if (size) {
98
137
  this.size = Number(size);
99
138
  }
139
+ if (infomap) {
140
+ this.infoMap = infomap;
141
+ }
100
142
  if (uploadParams) {
101
143
  try {
102
144
  this.uploadParams = JSON.parse(uploadParams);
@@ -14,7 +14,6 @@ import { UploadEditorController } from '../upload-editor.controller';
14
14
  */
15
15
  export declare function useIViewUpload(props: IParams, valueChange: (_value: string | null) => void, c: UploadEditorController): {
16
16
  uploadUrl: Ref<string>;
17
- downloadUrl: Ref<string>;
18
17
  headers: Ref<IData>;
19
18
  files: Ref<{
20
19
  id: string;
@@ -7,7 +7,6 @@ function useIViewUpload(props, valueChange, c) {
7
7
  const uploadHeaders = ibiz.util.file.getUploadHeaders();
8
8
  const headers = ref({ ...uploadHeaders });
9
9
  const uploadUrl = ref("");
10
- const downloadUrl = ref("");
11
10
  const uploadCache = {
12
11
  count: 0,
13
12
  cacheFiles: []
@@ -21,6 +20,22 @@ function useIViewUpload(props, valueChange, c) {
21
20
  },
22
21
  { immediate: true }
23
22
  );
23
+ const getDownloadUrl = (data, file) => {
24
+ const editorParams = { ...c.editorParams };
25
+ if (editorParams.exportparams) {
26
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
27
+ }
28
+ if (file && file.folder) {
29
+ editorParams.osscat = file.folder;
30
+ }
31
+ const urls = ibiz.util.file.calcFileUpDownUrl(
32
+ c.context,
33
+ c.params,
34
+ data,
35
+ editorParams
36
+ );
37
+ return urls.downloadUrl;
38
+ };
24
39
  watch(
25
40
  () => props.data,
26
41
  (newVal) => {
@@ -29,9 +44,6 @@ function useIViewUpload(props, valueChange, c) {
29
44
  if (editorParams.uploadparams) {
30
45
  editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
31
46
  }
32
- if (editorParams.exportparams) {
33
- editorParams.exportParams = JSON.parse(editorParams.exportparams);
34
- }
35
47
  const urls = ibiz.util.file.calcFileUpDownUrl(
36
48
  c.context,
37
49
  c.params,
@@ -39,7 +51,6 @@ function useIViewUpload(props, valueChange, c) {
39
51
  editorParams
40
52
  );
41
53
  uploadUrl.value = urls.uploadUrl;
42
- downloadUrl.value = urls.downloadUrl;
43
54
  }
44
55
  },
45
56
  { immediate: true, deep: true }
@@ -84,24 +95,23 @@ function useIViewUpload(props, valueChange, c) {
84
95
  watch(
85
96
  files,
86
97
  (newVal) => {
87
- if ((newVal == null ? void 0 : newVal.length) && downloadUrl.value) {
98
+ if (newVal == null ? void 0 : newVal.length) {
88
99
  newVal.forEach((file) => {
89
- file.url = file.url || downloadUrl.value.replace("%fileId%", file.id);
90
- if (file.name.split(".").pop() === "svg") {
91
- calcSvgPreview(file);
92
- }
93
- });
94
- }
95
- },
96
- { immediate: true }
97
- );
98
- watch(
99
- downloadUrl,
100
- (newVal) => {
101
- if (newVal && files.value.length) {
102
- files.value.forEach((file) => {
103
- file.url = downloadUrl.value.replace("%fileId%", file.id);
104
- if (file.name.split(".").pop() === "svg") {
100
+ const downloadUrl = getDownloadUrl(props.data, file);
101
+ file.url = file.url || downloadUrl.replace("%fileId%", file.id);
102
+ if (ibiz.config.common.enableDownloadTicket) {
103
+ ibiz.util.file.getDownloadTicket(c.context, { fileId: file.id }).then((downloadTicket) => {
104
+ if (downloadTicket && downloadTicket.ticket) {
105
+ file.url = downloadUrl.replace(
106
+ "%fileId%",
107
+ downloadTicket.ticket
108
+ );
109
+ if (file.name.split(".").pop() === "svg") {
110
+ calcSvgPreview(file);
111
+ }
112
+ }
113
+ });
114
+ } else if (file.name.split(".").pop() === "svg") {
105
115
  calcSvgPreview(file);
106
116
  }
107
117
  });
@@ -111,7 +121,14 @@ function useIViewUpload(props, valueChange, c) {
111
121
  );
112
122
  const emitValue = () => {
113
123
  const _files = [...files.value, ...uploadCache.cacheFiles];
114
- const value = _files.length > 0 ? JSON.stringify(_files.map((file) => ({ name: file.name, id: file.id }))) : null;
124
+ const value = _files.length > 0 ? JSON.stringify(
125
+ _files.map((file) => ({
126
+ name: file.name,
127
+ id: file.id,
128
+ folder: file.folder,
129
+ ...c.transformInfoMap(file, c.infoMap, true)
130
+ }))
131
+ ) : null;
115
132
  uploadCache.cacheFiles = [];
116
133
  valueChange(value);
117
134
  };
@@ -134,9 +151,14 @@ function useIViewUpload(props, valueChange, c) {
134
151
  if (!response) {
135
152
  return;
136
153
  }
154
+ if (ibiz.config.common.enableDownloadTicket) {
155
+ ibiz.util.file.setDownloadTicket(response.id, response.ticket);
156
+ }
137
157
  uploadCache.cacheFiles.push({
138
158
  name: response.filename,
139
- id: response.fileid
159
+ id: response.fileid,
160
+ folder: response.folder,
161
+ ...c.transformInfoMap(response, c.infoMap)
140
162
  });
141
163
  if (response.name.split(".").pop() === "svg") {
142
164
  const blob = svgBlob.get(response.name);
@@ -168,15 +190,25 @@ function useIViewUpload(props, valueChange, c) {
168
190
  emitValue();
169
191
  };
170
192
  const onDownload = (file) => {
171
- const url = file.url || downloadUrl.value.replace("%fileId%", file.id);
172
- ibiz.util.file.fileDownload(url, file.name);
193
+ const downloadUrl = getDownloadUrl(props.data, file);
194
+ const url = file.url || downloadUrl.replace("%fileId%", file.id);
195
+ const editorParams = { ...c.editorParams };
196
+ if (editorParams.exportparams) {
197
+ editorParams.exportParams = JSON.parse(editorParams.exportparams);
198
+ }
199
+ ibiz.util.file.fileDownload(url, file.name, {
200
+ context: c.context,
201
+ params: c.params,
202
+ data: props.data,
203
+ file: { fileId: file.id, ...file },
204
+ extraParams: editorParams
205
+ });
173
206
  };
174
207
  const limit = computed(() => {
175
208
  return c.multiple ? 9999 : 1;
176
209
  });
177
210
  return {
178
211
  uploadUrl,
179
- downloadUrl,
180
212
  headers,
181
213
  files,
182
214
  limit,
@@ -137,6 +137,12 @@ declare const _default: {
137
137
  computeMoveMetaError: string;
138
138
  unclassified: string;
139
139
  today: string;
140
+ adjustmentsGroup: string;
141
+ noAllowReorder: string;
142
+ sortingProperties: string;
143
+ invalidSortType: string;
144
+ logicOpendata: string;
145
+ logicNewdata: string;
140
146
  };
141
147
  editor: {
142
148
  editorNoConfigured: string;
@@ -158,7 +164,6 @@ declare const _default: {
158
164
  noConfigured: string;
159
165
  };
160
166
  calendar: {
161
- missingViewLogic: string;
162
167
  noFoundModel: string;
163
168
  };
164
169
  chart: {
@@ -173,6 +178,10 @@ declare const _default: {
173
178
  classificationNotArray: string;
174
179
  classificationNotString: string;
175
180
  errorJson: string;
181
+ value: string;
182
+ percent: string;
183
+ serieGroup: string;
184
+ catalogField: string;
176
185
  };
177
186
  dataView: {
178
187
  noBehaviourGroup: string;
@@ -240,12 +249,8 @@ declare const _default: {
240
249
  interfaceBehavior: string;
241
250
  };
242
251
  kanban: {
243
- sortingProperties: string;
244
252
  sortDirection: string;
245
253
  groupedOn: string;
246
- adjustmentsGroup: string;
247
- noAllowReorder: string;
248
- invalidSortType: string;
249
254
  };
250
255
  meditViewPanel: {
251
256
  DraftNew: string;
@@ -684,6 +689,7 @@ declare const _default: {
684
689
  };
685
690
  fileUtil: {
686
691
  fileUploadFailed: string;
692
+ getDownloadTicketFailed: string;
687
693
  };
688
694
  handlebars: {
689
695
  noInitHandlebars: string;
@@ -1050,6 +1056,7 @@ declare const _default: {
1050
1056
  today: string;
1051
1057
  tomorrow: string;
1052
1058
  nextweek: string;
1059
+ selectdate: string;
1053
1060
  };
1054
1061
  calendarmonth: {
1055
1062
  lastmonth: string;
@@ -1088,6 +1095,8 @@ declare const _default: {
1088
1095
  saturday: string;
1089
1096
  sunday: string;
1090
1097
  };
1098
+ selectWeekRange: string;
1099
+ weekFormat: string;
1091
1100
  };
1092
1101
  };
1093
1102
  chart: {
@@ -313,7 +313,8 @@ var index = {
313
313
  tip: "All Day",
314
314
  today: "Today",
315
315
  tomorrow: "To Morrow",
316
- nextweek: "Next Week"
316
+ nextweek: "Next Week",
317
+ selectdate: "Select Date"
317
318
  },
318
319
  calendarmonth: {
319
320
  lastmonth: "Last Month",
@@ -351,7 +352,9 @@ var index = {
351
352
  friday: "Fri",
352
353
  saturday: "Sat",
353
354
  sunday: "Sun"
354
- }
355
+ },
356
+ selectWeekRange: "Select week range",
357
+ weekFormat: "ww [Week] of YYYY"
355
358
  }
356
359
  },
357
360
  chart: {