@ibiz-template/vue3-components 0.7.41-alpha.17 → 0.7.41-alpha.19

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 (247) hide show
  1. package/dist/chart-q7pMKjYo.js +1 -0
  2. package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
  3. package/dist/index-BoV5htv9.js +11 -0
  4. package/dist/{index-swminiXb.js → index-Bt6TkADL.js} +1 -1
  5. package/dist/{index-AOFxMmyX.js → index-K6B-Odyq.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-exnzt_I1.js +1 -0
  10. package/dist/{xlsx-util-jYyM8alm.js → xlsx-util-fuTLwrKA.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/util/index.mjs +1 -1
  34. package/es/control/calendar/components/util/util.d.ts +30 -2
  35. package/es/control/calendar/components/util/util.mjs +32 -2
  36. package/es/control/chart/chart.mjs +1 -0
  37. package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
  38. package/es/control/data-view/data-view.d.ts +1 -1
  39. package/es/control/data-view/index.d.ts +1 -1
  40. package/es/control/drtab/drtab-control.util.mjs +1 -1
  41. package/es/control/drtab/drtab.controller.d.ts +5 -0
  42. package/es/control/drtab/drtab.controller.mjs +19 -0
  43. package/es/control/drtab/flow-drtab.css +1 -1
  44. package/es/control/drtab/flow-drtab.mjs +18 -5
  45. package/es/control/exp-bar/render-util.mjs +1 -12
  46. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +8 -4
  47. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  48. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +2 -1
  49. package/es/control/gantt/gantt.css +1 -1
  50. package/es/control/gantt/gantt.d.ts +4 -2
  51. package/es/control/gantt/gantt.mjs +130 -5
  52. package/es/control/gantt/index.d.ts +4 -2
  53. package/es/control/grid/grid/grid.d.ts +1 -1
  54. package/es/control/grid/grid/index.d.ts +1 -1
  55. package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
  56. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
  57. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
  58. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  59. package/es/control/grid/virtualized-table/index.d.ts +1 -1
  60. package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
  61. package/es/control/kanban/index.d.ts +1 -1
  62. package/es/control/kanban/kanban.d.ts +1 -1
  63. package/es/control/list/index.d.ts +1 -1
  64. package/es/control/list/list.d.ts +1 -1
  65. package/es/control/list/list.mjs +1 -1
  66. package/es/control/map/map.mjs +1 -1
  67. package/es/control/tree/index.d.ts +1 -1
  68. package/es/control/tree/tree.d.ts +5 -5
  69. package/es/control/tree/tree.mjs +5 -13
  70. package/es/control/tree-grid/index.d.ts +7 -1
  71. package/es/control/tree-grid/tree-grid.d.ts +7 -1
  72. package/es/control/tree-grid/tree-grid.mjs +62 -55
  73. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
  74. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  75. package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
  76. package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
  77. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
  78. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
  79. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
  80. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
  81. package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
  82. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +3 -0
  83. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
  84. package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
  85. package/es/editor/upload/use/use-iview-upload.mjs +50 -25
  86. package/es/index.mjs +1 -0
  87. package/es/locale/en/index.d.ts +9 -0
  88. package/es/locale/en/index.mjs +4 -0
  89. package/es/locale/zh-CN/index.d.ts +9 -0
  90. package/es/locale/zh-CN/index.mjs +4 -0
  91. package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
  92. package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
  93. package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
  94. package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
  95. package/es/panel-component/app-switch/app-switch.controller.mjs +4 -1
  96. package/es/panel-component/app-switch/app-switch.d.ts +1 -1
  97. package/es/panel-component/auth-userinfo/auth-userinfo.controller.d.ts +31 -0
  98. package/es/panel-component/auth-userinfo/auth-userinfo.controller.mjs +51 -0
  99. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  100. package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +7 -4
  101. package/es/panel-component/auth-userinfo/auth-userinfo.mjs +20 -5
  102. package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +2 -1
  103. package/es/panel-component/auth-userinfo/auth-userinfo.provider.mjs +2 -2
  104. package/es/panel-component/auth-userinfo/index.d.ts +4 -3
  105. package/es/panel-component/global-search/global-search.controller.d.ts +10 -3
  106. package/es/panel-component/global-search/global-search.controller.mjs +39 -18
  107. package/es/panel-component/global-search/global-search.d.ts +3 -1
  108. package/es/panel-component/global-search/global-search.mjs +8 -1
  109. package/es/panel-component/global-search/index.d.ts +1 -0
  110. package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +0 -2
  111. package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
  112. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
  113. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
  114. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  115. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
  116. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
  117. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
  118. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
  119. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
  120. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
  121. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
  122. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
  123. package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +5 -2
  124. package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
  125. package/es/panel-component/panel-app-title/panel-app-title.mjs +6 -0
  126. package/es/panel-component/panel-index-view-search/index.d.ts +4 -3
  127. package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.d.ts +31 -0
  128. package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.mjs +51 -0
  129. package/es/panel-component/panel-index-view-search/panel-index-view-search.d.ts +8 -5
  130. package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +17 -3
  131. package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.d.ts +2 -1
  132. package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.mjs +2 -2
  133. package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +2 -2
  134. package/es/panel-component/user-action/user-action.d.ts +1 -1
  135. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
  136. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
  137. package/es/panel-component/view-msg-pos/view-msg-pos.d.ts +2 -1
  138. package/es/util/app-modal/app-modal-component.css +1 -1
  139. package/es/util/app-modal/app-modal-component.d.ts +6 -1
  140. package/es/util/app-modal/app-modal-component.mjs +45 -4
  141. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  142. package/es/util/icon/icon.d.ts +3 -0
  143. package/es/util/icon/icon.mjs +25 -0
  144. package/es/util/index.d.ts +1 -0
  145. package/es/util/index.mjs +1 -0
  146. package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
  147. package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
  148. package/es/view-engine/edit-view.engine.d.ts +11 -0
  149. package/es/view-engine/edit-view.engine.mjs +12 -0
  150. package/es/view-engine/login-view.engine.d.ts +11 -1
  151. package/es/view-engine/login-view.engine.mjs +9 -5
  152. package/es/view-engine/mpickup-view-engine.d.ts +8 -1
  153. package/es/view-engine/mpickup-view-engine.mjs +14 -8
  154. package/es/view-engine/pickup-view.engine.d.ts +8 -1
  155. package/es/view-engine/pickup-view.engine.mjs +15 -0
  156. package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
  157. package/lib/common/control-navigation/provider/index.cjs +1 -1
  158. package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
  159. package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
  160. package/lib/common/map-chart-user/map-chart-user.css +1 -1
  161. package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
  162. package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
  163. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
  164. package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  165. package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
  166. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
  167. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
  168. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
  169. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  170. package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
  171. package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  172. package/lib/control/calendar/components/util/index.cjs +4 -0
  173. package/lib/control/calendar/components/util/util.cjs +34 -0
  174. package/lib/control/chart/chart.cjs +1 -0
  175. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
  176. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  177. package/lib/control/drtab/drtab.controller.cjs +19 -0
  178. package/lib/control/drtab/flow-drtab.cjs +17 -4
  179. package/lib/control/drtab/flow-drtab.css +1 -1
  180. package/lib/control/exp-bar/render-util.cjs +1 -12
  181. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +7 -3
  182. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
  183. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  184. package/lib/control/gantt/gantt.cjs +129 -4
  185. package/lib/control/gantt/gantt.css +1 -1
  186. package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
  187. package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
  188. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  189. package/lib/control/list/list.cjs +1 -1
  190. package/lib/control/map/map.cjs +1 -1
  191. package/lib/control/tree/tree.cjs +5 -13
  192. package/lib/control/tree-grid/tree-grid.cjs +62 -55
  193. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
  194. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  195. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
  196. package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
  197. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
  198. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
  199. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
  200. package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
  201. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
  202. package/lib/editor/upload/use/use-iview-upload.cjs +50 -25
  203. package/lib/index.cjs +3 -0
  204. package/lib/locale/en/index.cjs +4 -0
  205. package/lib/locale/zh-CN/index.cjs +4 -0
  206. package/lib/panel-component/app-switch/app-switch.controller.cjs +4 -1
  207. package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +20 -5
  208. package/lib/panel-component/auth-userinfo/auth-userinfo.controller.cjs +53 -0
  209. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  210. package/lib/panel-component/auth-userinfo/auth-userinfo.provider.cjs +2 -2
  211. package/lib/panel-component/global-search/global-search.cjs +8 -1
  212. package/lib/panel-component/global-search/global-search.controller.cjs +39 -18
  213. package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +0 -2
  214. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
  215. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
  216. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  217. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
  218. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
  219. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
  220. package/lib/panel-component/panel-app-title/panel-app-title.cjs +6 -0
  221. package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +5 -2
  222. package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +16 -2
  223. package/lib/panel-component/panel-index-view-search/panel-index-view-search.controller.cjs +53 -0
  224. package/lib/panel-component/panel-index-view-search/panel-index-view-search.provider.cjs +2 -2
  225. package/lib/panel-component/panel-tab-panel/panel-tab-panel.cjs +2 -2
  226. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
  227. package/lib/util/app-modal/app-modal-component.cjs +43 -2
  228. package/lib/util/app-modal/app-modal-component.css +1 -1
  229. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  230. package/lib/util/icon/icon.cjs +28 -0
  231. package/lib/util/index.cjs +3 -0
  232. package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
  233. package/lib/view-engine/edit-view.engine.cjs +12 -0
  234. package/lib/view-engine/login-view.engine.cjs +9 -5
  235. package/lib/view-engine/mpickup-view-engine.cjs +14 -8
  236. package/lib/view-engine/pickup-view.engine.cjs +15 -0
  237. package/package.json +6 -6
  238. package/dist/chart-8QfxarWf.js +0 -1
  239. package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
  240. package/dist/index-t1aZ8OJE.js +0 -11
  241. package/dist/map-chart-user-xOSZGbF2.js +0 -1
  242. package/dist/wang-editor-Y8puaTx2.js +0 -1
  243. package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
  244. package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
  245. package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
  246. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.17_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
  247. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.17_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
@@ -6,6 +6,9 @@ import './ibiz-markdown-editor.scss';
6
6
  * @primary
7
7
  * @editorparams {"name":"customtheme","parameterType":"'light' | 'dark'","description":"设置Markdown主题,未配置时跟随应用主题"}
8
8
  * @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
9
+ * @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片或文件上传时,用于计算上传路径"}
10
+ * @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片或文件下载时,用于计算下载路径"}
11
+ * @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
9
12
  * @ignoreprops autoFocus | overflowMode
10
13
  * @ignoreemits blur | focus | enter | infoTextChange
11
14
  */
@@ -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();
@@ -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
  });
@@ -115,6 +125,7 @@ function useIViewUpload(props, valueChange, c) {
115
125
  _files.map((file) => ({
116
126
  name: file.name,
117
127
  id: file.id,
128
+ folder: file.folder,
118
129
  ...c.transformInfoMap(file, c.infoMap, true)
119
130
  }))
120
131
  ) : null;
@@ -140,9 +151,13 @@ function useIViewUpload(props, valueChange, c) {
140
151
  if (!response) {
141
152
  return;
142
153
  }
154
+ if (ibiz.config.common.enableDownloadTicket) {
155
+ ibiz.util.file.setDownloadTicket(response.id, response.ticket);
156
+ }
143
157
  uploadCache.cacheFiles.push({
144
158
  name: response.filename,
145
159
  id: response.fileid,
160
+ folder: response.folder,
146
161
  ...c.transformInfoMap(response, c.infoMap)
147
162
  });
148
163
  if (response.name.split(".").pop() === "svg") {
@@ -175,15 +190,25 @@ function useIViewUpload(props, valueChange, c) {
175
190
  emitValue();
176
191
  };
177
192
  const onDownload = (file) => {
178
- const url = file.url || downloadUrl.value.replace("%fileId%", file.id);
179
- 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
+ });
180
206
  };
181
207
  const limit = computed(() => {
182
208
  return c.multiple ? 9999 : 1;
183
209
  });
184
210
  return {
185
211
  uploadUrl,
186
- downloadUrl,
187
212
  headers,
188
213
  files,
189
214
  limit,
package/es/index.mjs CHANGED
@@ -181,6 +181,7 @@ export { useFocusByEnter } from './util/keydown-util/keydown-util.mjs';
181
181
  export { calcAiToolbarItemsByAc } from './util/ai-util/ai-util.mjs';
182
182
  export { convertBtnType } from './util/button-util/button-util.mjs';
183
183
  export { parseHtml } from './util/wang-editor-util/wang-editor-util.mjs';
184
+ export { ArrowLeftBold, ArrowRightBold } from './util/icon/icon.mjs';
184
185
  export { AuthGuard } from './web-app/guard/auth-guard/auth-guard.mjs';
185
186
  export { runApp } from './web-app/main.mjs';
186
187
  export { AppRouter } from './web-app/router/index.mjs';
@@ -178,6 +178,10 @@ declare const _default: {
178
178
  classificationNotArray: string;
179
179
  classificationNotString: string;
180
180
  errorJson: string;
181
+ value: string;
182
+ percent: string;
183
+ serieGroup: string;
184
+ catalogField: string;
181
185
  };
182
186
  dataView: {
183
187
  noBehaviourGroup: string;
@@ -685,6 +689,7 @@ declare const _default: {
685
689
  };
686
690
  fileUtil: {
687
691
  fileUploadFailed: string;
692
+ getDownloadTicketFailed: string;
688
693
  };
689
694
  handlebars: {
690
695
  noInitHandlebars: string;
@@ -1540,6 +1545,10 @@ declare const _default: {
1540
1545
  clearTopic: string;
1541
1546
  clearTopicDesc: string;
1542
1547
  };
1548
+ appModal: {
1549
+ prev: string;
1550
+ next: string;
1551
+ };
1543
1552
  };
1544
1553
  };
1545
1554
  export default _default;
@@ -804,6 +804,10 @@ var index = {
804
804
  aiDesc: "After deletion, the conversation will not be recoverable. Are you sure to delete?",
805
805
  clearTopic: "Clear conversation",
806
806
  clearTopicDesc: "Are you sure to clear all conversation data except for the current activation item?"
807
+ },
808
+ appModal: {
809
+ prev: "Previous record",
810
+ next: "Next record"
807
811
  }
808
812
  },
809
813
  // runTime
@@ -178,6 +178,10 @@ declare const _default: {
178
178
  classificationNotArray: string;
179
179
  classificationNotString: string;
180
180
  errorJson: string;
181
+ value: string;
182
+ percent: string;
183
+ serieGroup: string;
184
+ catalogField: string;
181
185
  };
182
186
  dataView: {
183
187
  noBehaviourGroup: string;
@@ -684,6 +688,7 @@ declare const _default: {
684
688
  };
685
689
  fileUtil: {
686
690
  fileUploadFailed: string;
691
+ getDownloadTicketFailed: string;
687
692
  };
688
693
  handlebars: {
689
694
  noInitHandlebars: string;
@@ -1535,6 +1540,10 @@ declare const _default: {
1535
1540
  clearTopic: string;
1536
1541
  clearTopicDesc: string;
1537
1542
  };
1543
+ appModal: {
1544
+ prev: string;
1545
+ next: string;
1546
+ };
1538
1547
  };
1539
1548
  };
1540
1549
  export default _default;
@@ -800,6 +800,10 @@ var index = {
800
800
  aiDesc: "\u5220\u9664\u540E\uFF0C\u8BE5\u5BF9\u8BDD\u5C06\u4E0D\u53EF\u6062\u590D\u3002\u786E\u8BA4\u5220\u9664\u5417\uFF1F",
801
801
  clearTopic: "\u6E05\u7A7A\u4F1A\u8BDD",
802
802
  clearTopicDesc: "\u786E\u8BA4\u6E05\u7A7A\u9664\u5F53\u524D\u6FC0\u6D3B\u9879\u5916\u7684\u6240\u6709\u4F1A\u8BDD\u6570\u636E\uFF1F"
803
+ },
804
+ appModal: {
805
+ prev: "\u4E0A\u4E00\u4E2A\u8BB0\u5F55",
806
+ next: "\u4E0B\u4E00\u4E2A\u8BB0\u5F55"
803
807
  }
804
808
  },
805
809
  // runTime
@@ -6,7 +6,7 @@ import './bottom-side-menu.scss';
6
6
  * 底部菜单
7
7
  * @primary
8
8
  * @description 首页视图扩展菜单底部菜单
9
- * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制(按钮形态目前仅支持一层)、MENU表示按照菜单形态绘制}
9
+ * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
10
10
  * @primary
11
11
  */
12
12
  export declare const BottomSideMenu: import("vue").DefineComponent<{
@@ -6,7 +6,7 @@ import './left-side-menu.scss';
6
6
  * 左侧菜单
7
7
  * @primary
8
8
  * @description 首页视图扩展菜单左侧菜单
9
- * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制(按钮形态目前仅支持一层)、MENU表示按照菜单形态绘制}
9
+ * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
10
10
  * @primary
11
11
  */
12
12
  export declare const LeftSideMenu: import("vue").DefineComponent<{
@@ -6,7 +6,7 @@ import './right-side-menu.scss';
6
6
  * 右侧菜单
7
7
  * @primary
8
8
  * @description 首页视图扩展菜单右侧菜单
9
- * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制(按钮形态目前仅支持一层)、MENU表示按照菜单形态绘制}
9
+ * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
10
10
  * @primary
11
11
  */
12
12
  export declare const RightSideMenu: import("vue").DefineComponent<{
@@ -6,7 +6,7 @@ import './top-side-menu.scss';
6
6
  * 头部菜单
7
7
  * @primary
8
8
  * @description 首页视图扩展菜单头部菜单
9
- * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制(按钮形态目前仅支持一层)、MENU表示按照菜单形态绘制}
9
+ * @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
10
10
  * @primary
11
11
  */
12
12
  export declare const TopSideMenu: import("vue").DefineComponent<{
@@ -259,7 +259,10 @@ class AppSwitchController extends PanelItemController {
259
259
  await ibiz.hub.getAppAsync(tempKey);
260
260
  }
261
261
  const targetAppModel = ibiz.hub.getAppSourceModel(tempKey);
262
- if (targetAppModel.getDefaultPSAppIndexView) {
262
+ const defaultApp = ibiz.hub.getApp();
263
+ if (defaultApp.model.appId === tempKey && window.Environment.AppTitle) {
264
+ ibiz.env.AppTitle = window.Environment.AppTitle;
265
+ } else if (targetAppModel.getDefaultPSAppIndexView) {
263
266
  const view = targetAppModel.getDefaultPSAppIndexView;
264
267
  if (targetAppModel.caption) {
265
268
  ibiz.env.AppTitle = targetAppModel.caption;
@@ -5,7 +5,7 @@ import './app-switch.scss';
5
5
  /**
6
6
  * 应用切换器
7
7
  * @primary
8
- * @description 应用切换器是前端导航核心组件,通过可视化列表实现多应用快速跳转,使用该能力需在首页视图配置应用选择模式为`默认`。
8
+ * @description 应用切换器是前端导航核心组件,通过可视化列表实现多应用快速跳转,当应用存在子应用时,使用该能力需在首页视图配置应用选择模式为`默认`。
9
9
  * @panelitemparams {name:sourcetype,parameterType:'UTIL' | 'REFAPP',defaultvalue:REFAPP,description:应用源类型,其中UTIL表示微应用数据来源于功能组件服务、REFAPP表示微应用数据来源于引用子应用集(主应用和引用子应用的所有首页)}
10
10
  * @primary
11
11
  */
@@ -0,0 +1,31 @@
1
+ import { PanelItemController } from '@ibiz-template/runtime';
2
+ import { IPanelRawItem } from '@ibiz/model-core';
3
+ /**
4
+ * 面板用户信息控制器
5
+ *
6
+ * @export
7
+ * @class AuthUserinfoController
8
+ * @extends {PanelItemController<IPanelRawItem>}
9
+ */
10
+ export declare class AuthUserinfoController extends PanelItemController<IPanelRawItem> {
11
+ /**
12
+ * @description 自定义补充参数
13
+ * @exposedoc
14
+ * @type {IData}
15
+ * @memberof AuthUserinfoController
16
+ */
17
+ rawItemParams: IData;
18
+ /**
19
+ * 初始化
20
+ *
21
+ * @return {*} {Promise<void>}
22
+ * @memberof AuthUserinfoController
23
+ */
24
+ onInit(): Promise<void>;
25
+ /**
26
+ * @description 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
27
+ * @protected
28
+ * @memberof AuthUserinfoController
29
+ */
30
+ protected handleRawItemParams(): void;
31
+ }
@@ -0,0 +1,51 @@
1
+ import { PanelItemController } from '@ibiz-template/runtime';
2
+
3
+ "use strict";
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class AuthUserinfoController extends PanelItemController {
11
+ constructor() {
12
+ super(...arguments);
13
+ /**
14
+ * @description 自定义补充参数
15
+ * @exposedoc
16
+ * @type {IData}
17
+ * @memberof AuthUserinfoController
18
+ */
19
+ __publicField(this, "rawItemParams", {});
20
+ }
21
+ /**
22
+ * 初始化
23
+ *
24
+ * @return {*} {Promise<void>}
25
+ * @memberof AuthUserinfoController
26
+ */
27
+ async onInit() {
28
+ await super.onInit();
29
+ this.handleRawItemParams();
30
+ }
31
+ /**
32
+ * @description 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
33
+ * @protected
34
+ * @memberof AuthUserinfoController
35
+ */
36
+ handleRawItemParams() {
37
+ var _a;
38
+ const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
39
+ if (Array.isArray(rawItemParams)) {
40
+ rawItemParams.forEach((item) => {
41
+ const key = item.key;
42
+ const value = item.value;
43
+ if (key && value) {
44
+ this.rawItemParams[key.toLowerCase()] = value;
45
+ }
46
+ });
47
+ }
48
+ }
49
+ }
50
+
51
+ export { AuthUserinfoController };
@@ -1 +1 @@
1
- .ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:12px;font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin-right:var(--ibiz-spacing-base)}.ibiz-user-info.is-collapse .el-dropdown{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin:0}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;font-size:var(--ibiz-user-info-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;margin-top:4px;font-size:var(--ibiz-font-size-small);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
1
+ .ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:12px;font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin-right:var(--ibiz-spacing-base)}.ibiz-user-info.is-collapse .el-dropdown{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin:0}.ibiz-user-info.is-readonly .el-dropdown{cursor:default}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;font-size:var(--ibiz-user-info-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;margin-top:4px;font-size:var(--ibiz-font-size-small);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
@@ -1,10 +1,12 @@
1
1
  import { PropType } from 'vue';
2
2
  import './auth-userinfo.scss';
3
3
  import { IPanelRawItem } from '@ibiz/model-core';
4
- import { PanelItemController } from '@ibiz-template/runtime';
4
+ import { AuthUserinfoController } from './auth-userinfo.controller';
5
5
  /**
6
6
  * 用户信息
7
7
  * @description 展示用户的基本信息,提供登出功能。
8
+ * @panelitemparams {name:strictly,parameterType:boolean,defaultvalue:false,description:是否取消与首页菜单的关联,即菜单收缩时不会跟随改变,当用户信息未配置在首页左侧时应启用}
9
+ * @panelitemparams {name:readonly,parameterType:boolean,defaultvalue:false,description:是否只读}
8
10
  * @primary
9
11
  */
10
12
  export declare const AuthUserinfo: import("vue").DefineComponent<{
@@ -19,18 +21,19 @@ export declare const AuthUserinfo: import("vue").DefineComponent<{
19
21
  * @description 用户信息控件控制器
20
22
  */
21
23
  controller: {
22
- type: typeof PanelItemController;
24
+ type: typeof AuthUserinfoController;
23
25
  required: true;
24
26
  };
25
27
  }, {
26
28
  ns: import("@ibiz-template/core").Namespace;
27
- c: PanelItemController<import("@ibiz/model-core").IPanelItem>;
29
+ c: AuthUserinfoController;
28
30
  onClick: () => void;
29
31
  srfusername: any;
30
32
  loginname: any;
31
33
  router: import("vue-router").Router;
32
34
  menuAlign: import("vue").ComputedRef<string>;
33
35
  isCollapse: import("vue").ComputedRef<any>;
36
+ isReadonly: import("vue").ComputedRef<boolean>;
34
37
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
38
  /**
36
39
  * @description 用户信息控件模型数据
@@ -43,7 +46,7 @@ export declare const AuthUserinfo: import("vue").DefineComponent<{
43
46
  * @description 用户信息控件控制器
44
47
  */
45
48
  controller: {
46
- type: typeof PanelItemController;
49
+ type: typeof AuthUserinfoController;
47
50
  required: true;
48
51
  };
49
52
  }>>, {}, {}>;
@@ -2,7 +2,7 @@ import { inject, computed, resolveComponent, createVNode, defineComponent } from
2
2
  import { useRouter } from 'vue-router';
3
3
  import { useNamespace } from '@ibiz-template/vue3-util';
4
4
  import './auth-userinfo.css';
5
- import { PanelItemController } from '@ibiz-template/runtime';
5
+ import { AuthUserinfoController } from './auth-userinfo.controller.mjs';
6
6
 
7
7
  "use strict";
8
8
  const AuthUserinfo = /* @__PURE__ */ defineComponent({
@@ -19,7 +19,7 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
19
19
  * @description 用户信息控件控制器
20
20
  */
21
21
  controller: {
22
- type: PanelItemController,
22
+ type: AuthUserinfoController,
23
23
  required: true
24
24
  }
25
25
  },
@@ -43,8 +43,20 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
43
43
  ibiz.hub.controller.logout();
44
44
  };
45
45
  const isCollapse = computed(() => {
46
+ const {
47
+ strictly
48
+ } = c.rawItemParams;
49
+ if (strictly && strictly === "true") {
50
+ return false;
51
+ }
46
52
  return c.panel.view.state.isCollapse;
47
53
  });
54
+ const isReadonly = computed(() => {
55
+ const {
56
+ readonly
57
+ } = c.rawItemParams;
58
+ return readonly === "true";
59
+ });
48
60
  return {
49
61
  ns,
50
62
  c,
@@ -53,13 +65,16 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
53
65
  loginname,
54
66
  router,
55
67
  menuAlign,
56
- isCollapse
68
+ isCollapse,
69
+ isReadonly
57
70
  };
58
71
  },
59
72
  render() {
60
73
  return createVNode("div", {
61
- "class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("left", this.menuAlign === "LEFT"), this.ns.is("top", this.menuAlign === "TOP"), this.ns.is("collapse", this.isCollapse)]
62
- }, [createVNode(resolveComponent("el-dropdown"), null, {
74
+ "class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass, this.ns.is("left", this.menuAlign === "LEFT"), this.ns.is("top", this.menuAlign === "TOP"), this.ns.is("collapse", this.isCollapse), this.ns.is("readonly", this.isReadonly)]
75
+ }, [createVNode(resolveComponent("el-dropdown"), {
76
+ "disabled": this.isReadonly
77
+ }, {
63
78
  default: () => createVNode("div", {
64
79
  "class": [this.ns.b("info"), this.ns.is("collapse", this.isCollapse)]
65
80
  }, [createVNode("div", {
@@ -1,5 +1,6 @@
1
1
  import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
2
2
  import { IPanelItem } from '@ibiz/model-core';
3
+ import { AuthUserinfoController } from './auth-userinfo.controller';
3
4
  /**
4
5
  * 用户信息适配器
5
6
  *
@@ -11,5 +12,5 @@ import { IPanelItem } from '@ibiz/model-core';
11
12
  */
12
13
  export declare class AuthUserinfoProvider implements IPanelItemProvider {
13
14
  component: string;
14
- createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
15
+ createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<AuthUserinfoController>;
15
16
  }
@@ -1,4 +1,4 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { AuthUserinfoController } from './auth-userinfo.controller.mjs';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -12,7 +12,7 @@ class AuthUserinfoProvider {
12
12
  __publicField(this, "component", "IBizAuthUserinfo");
13
13
  }
14
14
  async createController(panelItem, panel, parent) {
15
- const c = new PanelItemController(panelItem, panel, parent);
15
+ const c = new AuthUserinfoController(panelItem, panel, parent);
16
16
  await c.init();
17
17
  return c;
18
18
  }
@@ -4,25 +4,26 @@ export declare const IBizAuthUserinfo: import("@ibiz-template/vue3-util").TypeWi
4
4
  required: true;
5
5
  };
6
6
  controller: {
7
- type: typeof import("@ibiz-template/runtime").PanelItemController;
7
+ type: typeof import("./auth-userinfo.controller").AuthUserinfoController;
8
8
  required: true;
9
9
  };
10
10
  }, {
11
11
  ns: import("@ibiz-template/core").Namespace;
12
- c: import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>;
12
+ c: import("./auth-userinfo.controller").AuthUserinfoController;
13
13
  onClick: () => void;
14
14
  srfusername: any;
15
15
  loginname: any;
16
16
  router: import("vue-router").Router;
17
17
  menuAlign: import("vue").ComputedRef<string>;
18
18
  isCollapse: import("vue").ComputedRef<any>;
19
+ isReadonly: import("vue").ComputedRef<boolean>;
19
20
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
21
  modelData: {
21
22
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
22
23
  required: true;
23
24
  };
24
25
  controller: {
25
- type: typeof import("@ibiz-template/runtime").PanelItemController;
26
+ type: typeof import("./auth-userinfo.controller").AuthUserinfoController;
26
27
  required: true;
27
28
  };
28
29
  }>>, {}, {}>>;