@ibiz-template/mob-vue3-components 0.7.41-alpha.22 → 0.7.41-alpha.23

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 (355) hide show
  1. package/dist/chart-CVnUjHjl.js +2 -0
  2. package/dist/{chart-j1WkpBhc.js.map → chart-CVnUjHjl.js.map} +1 -1
  3. package/dist/ibiz-markdown-editor-MwEhH1r_.js +2 -0
  4. package/dist/ibiz-markdown-editor-MwEhH1r_.js.map +1 -0
  5. package/dist/index-CopTozpr.js +2 -0
  6. package/dist/{index-ChdHGLJI.js.map → index-CopTozpr.js.map} +1 -1
  7. package/dist/index-Cxv8dJIk.js +2 -0
  8. package/dist/index-Cxv8dJIk.js.map +1 -0
  9. package/dist/index-DV0pS0zU.js +2 -0
  10. package/dist/{index-Dd7yiMzY.js.map → index-DV0pS0zU.js.map} +1 -1
  11. package/dist/index.min.css +8 -8
  12. package/dist/index.system.min.js +1 -1
  13. package/dist/quill-CeDXLpcJ.js +2 -0
  14. package/dist/{quill-BOA7ZLOz.js.map → quill-CeDXLpcJ.js.map} +1 -1
  15. package/dist/quill-editor-C5mEMG93.js +2 -0
  16. package/dist/quill-editor-C5mEMG93.js.map +1 -0
  17. package/dist/quill-editor-preview-BPS9uMa7.js +2 -0
  18. package/dist/{quill-editor-preview-DghpeKpg.js.map → quill-editor-preview-BPS9uMa7.js.map} +1 -1
  19. package/dist/tree-SAqvldtV.js +2 -0
  20. package/dist/{tree-BTa0bMPr.js.map → tree-SAqvldtV.js.map} +1 -1
  21. package/dist/xlsx-util-b5CesqYd.js +3 -0
  22. package/dist/xlsx-util-b5CesqYd.js.map +1 -0
  23. package/es/_virtual/index12.mjs +2 -2
  24. package/es/_virtual/index13.mjs +2 -2
  25. package/es/common/action-group/action-group.css +1 -1
  26. package/es/common/action-group/action-group.mjs +44 -43
  27. package/es/common/button-list/button-list.css +1 -1
  28. package/es/common/button-list/button-list.mjs +16 -25
  29. package/es/common/col/col.mjs +1 -1
  30. package/es/common/cropping/cropping.mjs +5 -5
  31. package/es/common/date-range-picker/components/range-picker/range-picker.mjs +2 -4
  32. package/es/common/date-range-picker/components/single-picker/single-picker.mjs +2 -4
  33. package/es/common/date-range-picker/date-range-picker.mjs +2 -2
  34. package/es/common/emoji-select/components/emoji-item/emoji-item.mjs +4 -4
  35. package/es/common/emoji-select/components/emoji-list/emoji-list.mjs +1 -1
  36. package/es/common/emoji-select/icons/categories.mjs +9 -57
  37. package/es/common/float-button/float-button.css +1 -1
  38. package/es/common/float-button/float-button.mjs +12 -7
  39. package/es/common/keep-alive/keep-alive.mjs +2 -2
  40. package/es/common/keep-alive/scheduler.mjs +1 -1
  41. package/es/common/preview-image/preview-image.mjs +4 -4
  42. package/es/common/rawitem/rawitem.mjs +2 -2
  43. package/es/common/row/row.mjs +1 -1
  44. package/es/common/split/split.mjs +9 -9
  45. package/es/common/split-trigger/split-trigger.mjs +1 -1
  46. package/es/common/tab-layout/tab-dropdown/tab-dropdown.mjs +1 -1
  47. package/es/control/app-menu/app-menu.mjs +1 -1
  48. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -1
  49. package/es/control/app-menu/menu-render-util.mjs +2 -0
  50. package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +1 -1
  51. package/es/control/app-menu-icon-view/index.mjs +1 -1
  52. package/es/control/app-menu-list-view/app-menu-list-view.mjs +1 -1
  53. package/es/control/app-menu-list-view/index.mjs +1 -1
  54. package/es/control/calendar/calendar.mjs +6 -6
  55. package/es/control/caption-bar/caption-bar.mjs +1 -1
  56. package/es/control/chart/chart.mjs +1 -1
  57. package/es/control/dashboard/dashboard.mjs +3 -1
  58. package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +1 -1
  59. package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +1 -1
  60. package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +1 -1
  61. package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +1 -1
  62. package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +1 -1
  63. package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +1 -1
  64. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  65. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +4 -4
  66. package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +1 -1
  67. package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +1 -1
  68. package/es/control/data-view/data-view.css +1 -1
  69. package/es/control/data-view/data-view.mjs +7 -7
  70. package/es/control/drbar/drbar.mjs +1 -1
  71. package/es/control/drtab/drtab.controller.mjs +1 -1
  72. package/es/control/drtab/drtab.mjs +1 -1
  73. package/es/control/form/edit-form/edit-form.mjs +1 -1
  74. package/es/control/form/form/form.mjs +2 -2
  75. package/es/control/form/form-detail/form-button/form-button.css +1 -1
  76. package/es/control/form/form-detail/form-button/form-button.mjs +1 -1
  77. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
  78. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +1 -1
  79. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +6 -6
  80. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +2 -2
  81. package/es/control/form/search-form/search-form.mjs +1 -1
  82. package/es/control/list/list/list.mjs +1 -1
  83. package/es/control/list/md-ctrl/md-ctrl.css +1 -1
  84. package/es/control/list/md-ctrl/md-ctrl.mjs +2 -2
  85. package/es/control/pickup-view-panel/pickup-view-panel.mjs +1 -1
  86. package/es/control/search-bar/filter-field-select/filter-field-select.mjs +1 -1
  87. package/es/control/search-bar/filter-mode-select/filter-mode-select.mjs +1 -1
  88. package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
  89. package/es/control/search-bar/filter-tree/filter-tree.mjs +1 -1
  90. package/es/control/search-bar/search-bar.mjs +10 -6
  91. package/es/control/tab-exp-panel/tab-exp-panel.mjs +1 -1
  92. package/es/control/toolbar/float-toolbar/float-toolbar.css +1 -1
  93. package/es/control/toolbar/float-toolbar/float-toolbar.mjs +13 -7
  94. package/es/control/toolbar/toolbar-render-util.mjs +55 -32
  95. package/es/control/toolbar/toolbar.mjs +1 -1
  96. package/es/control/tree/tree.mjs +9 -9
  97. package/es/control/tree-exp-bar/tree-exp-bar.mjs +1 -1
  98. package/es/control/wizard-panel/wizard-panel.mjs +6 -6
  99. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +2 -2
  100. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +1 -1
  101. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  102. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
  103. package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
  104. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  105. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +7 -7
  106. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +1 -1
  107. package/es/editor/html/html-editor.controller.mjs +26 -9
  108. package/es/editor/html/quill-editor/quill-editor.mjs +12 -3
  109. package/es/editor/html/quill-editor-preview/quill-editor-preview.mjs +4 -4
  110. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +12 -3
  111. package/es/editor/markdown/markdown-editor.controller.mjs +23 -3
  112. package/es/editor/qrcode/ibiz-qrcode/ibiz-qrcode.mjs +1 -1
  113. package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +2 -2
  114. package/es/editor/span/span/span.mjs +7 -7
  115. package/es/editor/span/span-link/span-link.mjs +1 -1
  116. package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +1 -1
  117. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
  118. package/es/editor/text-box/input/input.mjs +4 -4
  119. package/es/editor/text-box/signature/signature.mjs +59 -19
  120. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
  121. package/es/editor/upload/upload-editor.controller.mjs +18 -1
  122. package/es/editor/upload/use/use-van-upload.mjs +6 -2
  123. package/es/index.mjs +2 -1
  124. package/es/locale/en/index.mjs +26 -23
  125. package/es/locale/zh-CN/index.mjs +3 -0
  126. package/es/mob-app/App.mjs +10 -1
  127. package/es/mob-app/components/modal-router-shell/modal-router-shell.mjs +6 -4
  128. package/es/mob-app/components/router-shell/router-shell.mjs +1 -1
  129. package/es/mob-app/guard/auth-guard/auth-guard.mjs +2 -2
  130. package/es/mob-app/guard/auth-guard/dyna-auth-guard.mjs +2 -2
  131. package/es/mob-app/main.mjs +3 -1
  132. package/es/mob-app/router/index.mjs +131 -76
  133. package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +5 -5
  134. package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
  135. package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.mjs +1 -1
  136. package/es/panel-component/async-action/async-action/async-action.mjs +2 -2
  137. package/es/panel-component/async-action/async-action-preview/async-action-preview.mjs +3 -3
  138. package/es/panel-component/async-action/async-action-result/async-action-result.mjs +1 -1
  139. package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +2 -2
  140. package/es/panel-component/panel-app-title/panel-app-title.mjs +2 -2
  141. package/es/panel-component/panel-button/panel-button.css +1 -1
  142. package/es/panel-component/panel-carousel/panel-carousel.controller.mjs +1 -1
  143. package/es/panel-component/panel-video-player/panel-video-player.controller.mjs +2 -2
  144. package/es/panel-component/split-container/split-container.controller.mjs +1 -1
  145. package/es/panel-component/user-message/common/internal-message-default/internal-message-default.provider.mjs +1 -1
  146. package/es/panel-component/user-message/user-message.mjs +1 -1
  147. package/es/panel-component/user-message/user-message.util.mjs +1 -1
  148. package/es/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  149. package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +12 -12
  150. package/es/platform/ios-platform-provider.mjs +2 -2
  151. package/es/platform/wechat-official-platform-provider.mjs +1 -1
  152. package/es/util/ai-chat-util/ai-chat-util.mjs +204 -41
  153. package/es/util/app-drawer/app-drawer-component.mjs +20 -6
  154. package/es/util/app-modal/app-modal-component.mjs +7 -4
  155. package/es/util/app-popover/app-popover-component.mjs +4 -4
  156. package/es/util/app-util/app-util.mjs +38 -3
  157. package/es/util/button-util/button-util.mjs +33 -1
  158. package/es/util/confirm-util/confirm-util.mjs +4 -4
  159. package/es/util/directive/loading.mjs +1 -1
  160. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  161. package/es/util/index.mjs +2 -1
  162. package/es/util/list-util/list-render-util.mjs +24 -5
  163. package/es/util/loading-util/loading-util.mjs +1 -1
  164. package/es/util/open-view-util/open-view-util.mjs +1 -1
  165. package/es/util/print-preview-util/print-preview-markdown/icon/icon.mjs +46 -0
  166. package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
  167. package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.mjs +62 -0
  168. package/es/util/print-preview-util/print-preview-util.mjs +57 -0
  169. package/es/util/scan-qrcode/scan-qrcode.mjs +1 -1
  170. package/es/util/user-route-util/user-route-util.mjs +4 -4
  171. package/es/util/xlsx-util/xlsx-util.mjs +1 -1
  172. package/es/view-engine/index-view.engine.mjs +4 -0
  173. package/es/view-engine/index.mjs +31 -31
  174. package/es/view-engine/login-view.engine.mjs +1 -1
  175. package/es/view-engine/mob-calendar-view.engine.mjs +8 -1
  176. package/es/view-engine/mob-edit-view.engine.mjs +1 -1
  177. package/es/view-engine/mob-wf-dyna-action-view.engine.mjs +1 -1
  178. package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +1 -1
  179. package/es/view-engine/mob-wf-dyna-start-view.engine.mjs +1 -1
  180. package/lib/_virtual/index12.cjs +2 -2
  181. package/lib/_virtual/index13.cjs +2 -2
  182. package/lib/common/action-group/action-group.cjs +42 -41
  183. package/lib/common/action-group/action-group.css +1 -1
  184. package/lib/common/button-list/button-list.cjs +14 -23
  185. package/lib/common/button-list/button-list.css +1 -1
  186. package/lib/common/col/col.cjs +1 -1
  187. package/lib/common/cropping/cropping.cjs +5 -5
  188. package/lib/common/date-range-picker/components/range-picker/range-picker.cjs +2 -4
  189. package/lib/common/date-range-picker/components/single-picker/single-picker.cjs +2 -4
  190. package/lib/common/date-range-picker/date-range-picker.cjs +2 -2
  191. package/lib/common/emoji-select/components/emoji-item/emoji-item.cjs +4 -4
  192. package/lib/common/emoji-select/components/emoji-list/emoji-list.cjs +1 -1
  193. package/lib/common/emoji-select/icons/categories.cjs +9 -57
  194. package/lib/common/float-button/float-button.cjs +11 -6
  195. package/lib/common/float-button/float-button.css +1 -1
  196. package/lib/common/keep-alive/keep-alive.cjs +2 -2
  197. package/lib/common/keep-alive/scheduler.cjs +1 -1
  198. package/lib/common/preview-image/preview-image.cjs +4 -4
  199. package/lib/common/rawitem/rawitem.cjs +2 -2
  200. package/lib/common/row/row.cjs +1 -1
  201. package/lib/common/split/split.cjs +9 -9
  202. package/lib/common/split-trigger/split-trigger.cjs +1 -1
  203. package/lib/common/tab-layout/tab-dropdown/tab-dropdown.cjs +1 -1
  204. package/lib/control/app-menu/app-menu.cjs +1 -1
  205. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
  206. package/lib/control/app-menu/menu-render-util.cjs +2 -0
  207. package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +1 -1
  208. package/lib/control/app-menu-icon-view/index.cjs +1 -1
  209. package/lib/control/app-menu-list-view/app-menu-list-view.cjs +1 -1
  210. package/lib/control/app-menu-list-view/index.cjs +1 -1
  211. package/lib/control/calendar/calendar.cjs +6 -6
  212. package/lib/control/caption-bar/caption-bar.cjs +1 -1
  213. package/lib/control/chart/chart.cjs +1 -1
  214. package/lib/control/dashboard/dashboard.cjs +3 -1
  215. package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +1 -1
  216. package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +1 -1
  217. package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +1 -1
  218. package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +1 -1
  219. package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +1 -1
  220. package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +1 -1
  221. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +4 -4
  222. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  223. package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +1 -1
  224. package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +1 -1
  225. package/lib/control/data-view/data-view.cjs +7 -7
  226. package/lib/control/data-view/data-view.css +1 -1
  227. package/lib/control/drbar/drbar.cjs +1 -1
  228. package/lib/control/drtab/drtab.cjs +1 -1
  229. package/lib/control/drtab/drtab.controller.cjs +1 -1
  230. package/lib/control/form/edit-form/edit-form.cjs +1 -1
  231. package/lib/control/form/form/form.cjs +2 -2
  232. package/lib/control/form/form-detail/form-button/form-button.cjs +1 -1
  233. package/lib/control/form/form-detail/form-button/form-button.css +1 -1
  234. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
  235. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +1 -1
  236. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +6 -6
  237. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +2 -2
  238. package/lib/control/form/search-form/search-form.cjs +1 -1
  239. package/lib/control/list/list/list.cjs +1 -1
  240. package/lib/control/list/md-ctrl/md-ctrl.cjs +2 -2
  241. package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
  242. package/lib/control/pickup-view-panel/pickup-view-panel.cjs +1 -1
  243. package/lib/control/search-bar/filter-field-select/filter-field-select.cjs +1 -1
  244. package/lib/control/search-bar/filter-mode-select/filter-mode-select.cjs +1 -1
  245. package/lib/control/search-bar/filter-tree/filter-tree.cjs +1 -1
  246. package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
  247. package/lib/control/search-bar/search-bar.cjs +10 -6
  248. package/lib/control/tab-exp-panel/tab-exp-panel.cjs +1 -1
  249. package/lib/control/toolbar/float-toolbar/float-toolbar.cjs +13 -7
  250. package/lib/control/toolbar/float-toolbar/float-toolbar.css +1 -1
  251. package/lib/control/toolbar/toolbar-render-util.cjs +55 -32
  252. package/lib/control/toolbar/toolbar.cjs +1 -1
  253. package/lib/control/tree/tree.cjs +9 -9
  254. package/lib/control/tree-exp-bar/tree-exp-bar.cjs +1 -1
  255. package/lib/control/wizard-panel/wizard-panel.cjs +6 -6
  256. package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
  257. package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +1 -1
  258. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  259. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
  260. package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
  261. package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  262. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +7 -7
  263. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -1
  264. package/lib/editor/html/html-editor.controller.cjs +26 -9
  265. package/lib/editor/html/quill-editor/quill-editor.cjs +12 -3
  266. package/lib/editor/html/quill-editor-preview/quill-editor-preview.cjs +4 -4
  267. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +12 -3
  268. package/lib/editor/markdown/markdown-editor.controller.cjs +23 -3
  269. package/lib/editor/qrcode/ibiz-qrcode/ibiz-qrcode.cjs +1 -1
  270. package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +2 -2
  271. package/lib/editor/span/span/span.cjs +7 -7
  272. package/lib/editor/span/span-link/span-link.cjs +1 -1
  273. package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +1 -1
  274. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
  275. package/lib/editor/text-box/input/input.cjs +4 -4
  276. package/lib/editor/text-box/signature/signature.cjs +59 -19
  277. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
  278. package/lib/editor/upload/upload-editor.controller.cjs +18 -1
  279. package/lib/editor/upload/use/use-van-upload.cjs +6 -2
  280. package/lib/index.cjs +3 -0
  281. package/lib/locale/en/index.cjs +26 -23
  282. package/lib/locale/zh-CN/index.cjs +3 -0
  283. package/lib/mob-app/App.cjs +9 -0
  284. package/lib/mob-app/components/modal-router-shell/modal-router-shell.cjs +6 -4
  285. package/lib/mob-app/components/router-shell/router-shell.cjs +1 -1
  286. package/lib/mob-app/guard/auth-guard/auth-guard.cjs +2 -2
  287. package/lib/mob-app/guard/auth-guard/dyna-auth-guard.cjs +2 -2
  288. package/lib/mob-app/main.cjs +3 -1
  289. package/lib/mob-app/router/index.cjs +131 -76
  290. package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +5 -5
  291. package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
  292. package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.cjs +1 -1
  293. package/lib/panel-component/async-action/async-action/async-action.cjs +2 -2
  294. package/lib/panel-component/async-action/async-action-preview/async-action-preview.cjs +3 -3
  295. package/lib/panel-component/async-action/async-action-result/async-action-result.cjs +1 -1
  296. package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +2 -2
  297. package/lib/panel-component/panel-app-title/panel-app-title.cjs +2 -2
  298. package/lib/panel-component/panel-button/panel-button.css +1 -1
  299. package/lib/panel-component/panel-carousel/panel-carousel.controller.cjs +1 -1
  300. package/lib/panel-component/panel-video-player/panel-video-player.controller.cjs +2 -2
  301. package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
  302. package/lib/panel-component/user-message/common/internal-message-default/internal-message-default.provider.cjs +1 -1
  303. package/lib/panel-component/user-message/user-message.cjs +1 -1
  304. package/lib/panel-component/user-message/user-message.util.cjs +1 -1
  305. package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +12 -12
  306. package/lib/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  307. package/lib/platform/ios-platform-provider.cjs +2 -2
  308. package/lib/platform/wechat-official-platform-provider.cjs +1 -1
  309. package/lib/util/ai-chat-util/ai-chat-util.cjs +204 -41
  310. package/lib/util/app-drawer/app-drawer-component.cjs +20 -6
  311. package/lib/util/app-modal/app-modal-component.cjs +7 -4
  312. package/lib/util/app-popover/app-popover-component.cjs +4 -4
  313. package/lib/util/app-util/app-util.cjs +38 -3
  314. package/lib/util/button-util/button-util.cjs +34 -0
  315. package/lib/util/confirm-util/confirm-util.cjs +4 -4
  316. package/lib/util/directive/loading.cjs +1 -1
  317. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  318. package/lib/util/index.cjs +3 -0
  319. package/lib/util/list-util/list-render-util.cjs +24 -5
  320. package/lib/util/loading-util/loading-util.cjs +1 -1
  321. package/lib/util/open-view-util/open-view-util.cjs +1 -1
  322. package/lib/util/print-preview-util/print-preview-markdown/icon/icon.cjs +52 -0
  323. package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.cjs +64 -0
  324. package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
  325. package/lib/util/print-preview-util/print-preview-util.cjs +59 -0
  326. package/lib/util/scan-qrcode/scan-qrcode.cjs +1 -1
  327. package/lib/util/user-route-util/user-route-util.cjs +4 -4
  328. package/lib/util/xlsx-util/xlsx-util.cjs +1 -1
  329. package/lib/view-engine/index-view.engine.cjs +4 -0
  330. package/lib/view-engine/index.cjs +31 -31
  331. package/lib/view-engine/login-view.engine.cjs +1 -1
  332. package/lib/view-engine/mob-calendar-view.engine.cjs +7 -0
  333. package/lib/view-engine/mob-edit-view.engine.cjs +1 -1
  334. package/lib/view-engine/mob-wf-dyna-action-view.engine.cjs +1 -1
  335. package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +1 -1
  336. package/lib/view-engine/mob-wf-dyna-start-view.engine.cjs +1 -1
  337. package/package.json +9 -9
  338. package/dist/chart-j1WkpBhc.js +0 -2
  339. package/dist/ibiz-markdown-editor-COU_MxNu.js +0 -2
  340. package/dist/ibiz-markdown-editor-COU_MxNu.js.map +0 -1
  341. package/dist/index-Bn7VkqJp.js +0 -76
  342. package/dist/index-Bn7VkqJp.js.map +0 -1
  343. package/dist/index-ChdHGLJI.js +0 -2
  344. package/dist/index-Dd7yiMzY.js +0 -2
  345. package/dist/index.es-D0mZvSDS.js +0 -14
  346. package/dist/index.es-D0mZvSDS.js.map +0 -1
  347. package/dist/quill-BOA7ZLOz.js +0 -50
  348. package/dist/quill-editor-DcZd_lqh.js +0 -2
  349. package/dist/quill-editor-DcZd_lqh.js.map +0 -1
  350. package/dist/quill-editor-preview-DghpeKpg.js +0 -2
  351. package/dist/tree-BTa0bMPr.js +0 -2
  352. package/dist/xlsx-util-CQaOn5OK.js +0 -105
  353. package/dist/xlsx-util-CQaOn5OK.js.map +0 -1
  354. package/es/node_modules/.pnpm/@ibiz-template-plugin_ibiz-mob-ai-chat@0.0.1_cherry-markdown@0.8.58_interactjs@1.10.27_qx-uti_xgmgjpxet4ghyc7txs4jkjxilq/node_modules/@ibiz-template-plugin/ibiz-mob-ai-chat/dist/index.es.mjs +0 -4425
  355. package/lib/node_modules/.pnpm/@ibiz-template-plugin_ibiz-mob-ai-chat@0.0.1_cherry-markdown@0.8.58_interactjs@1.10.27_qx-uti_xgmgjpxet4ghyc7txs4jkjxilq/node_modules/@ibiz-template-plugin/ibiz-mob-ai-chat/dist/index.es.cjs +0 -4427
@@ -31,6 +31,17 @@ class UploadEditorController extends EditorController {
31
31
  * 下载参数
32
32
  */
33
33
  __publicField(this, "exportParams");
34
+ /**
35
+ * @description 是否启用无权限
36
+ * @type {boolean}
37
+ * @memberof UploadEditorController
38
+ */
39
+ __publicField(this, "enableNoAccess", false);
40
+ /**
41
+ * @description 是否使用全局文件下载前缀
42
+ * @memberof UploadEditorController
43
+ */
44
+ __publicField(this, "globalDownloadPrifix", false);
34
45
  /**
35
46
  * 文件类型
36
47
  *
@@ -151,7 +162,9 @@ class UploadEditorController extends EditorController {
151
162
  uploadParams,
152
163
  exportParams,
153
164
  uploadparams,
154
- exportparams
165
+ exportparams,
166
+ enablenoaccess,
167
+ globaldownloadprifix
155
168
  } = this.editorParams;
156
169
  if (isDrag) {
157
170
  this.isDrag = Boolean(isDrag);
@@ -202,6 +215,10 @@ class UploadEditorController extends EditorController {
202
215
  );
203
216
  }
204
217
  }
218
+ if (enablenoaccess) {
219
+ this.enableNoAccess = enablenoaccess === "true";
220
+ }
221
+ this.globalDownloadPrifix = globaldownloadprifix === "true" || ibiz.config.common.globalDownloadPrifix;
205
222
  }
206
223
  }
207
224
  /**
@@ -5,7 +5,7 @@ import { ref, watch, computed } from 'vue';
5
5
  function useVanUpload(props, valueChange, c) {
6
6
  const files = ref([]);
7
7
  const headers = ref({
8
- [`${ibiz.env.tokenHeader}Authorization`]: `${ibiz.env.tokenPrefix}Bearer ${getAppCookie(CoreConst.TOKEN)}`
8
+ ["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getAppCookie(CoreConst.TOKEN))
9
9
  });
10
10
  const uploadUrl = ref("");
11
11
  const downloadUrl = ref("");
@@ -21,7 +21,11 @@ function useVanUpload(props, valueChange, c) {
21
21
  () => props.data,
22
22
  (newVal) => {
23
23
  if (newVal) {
24
- const editorParams = { ...c.editorParams };
24
+ const editorParams = {
25
+ ...c.editorParams,
26
+ enableNoAccess: c.enableNoAccess,
27
+ globalDownloadPrifix: c.globalDownloadPrifix
28
+ };
25
29
  if (editorParams.uploadparams) {
26
30
  editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
27
31
  }
package/es/index.mjs CHANGED
@@ -181,10 +181,11 @@ export { usePagination } from './util/pagination/use-pagination.mjs';
181
181
  export { FullscreenUtil } from './util/fullscreen/fullscreen-util.mjs';
182
182
  export { usePopstateListener } from './util/use-popstate-util/use-popstate-util.mjs';
183
183
  export { QrcodeUtil } from './util/qrcode-util/qrcode-util.mjs';
184
- export { convertBtnType } from './util/button-util/button-util.mjs';
184
+ export { calcPopoverPlacement, convertBtnType } from './util/button-util/button-util.mjs';
185
185
  export { useListRender } from './util/list-util/list-render-util.mjs';
186
186
  export { splitPathToSegments, validateRouteSegments } from './util/user-route-util/user-route-util.mjs';
187
187
  export { AIChatUtil } from './util/ai-chat-util/ai-chat-util.mjs';
188
+ export { PrintPreviewUtil } from './util/print-preview-util/print-preview-util.mjs';
188
189
  export { calcUniqueKey, useViewStack } from './util/store/view-stack/view-stack.mjs';
189
190
  export { runApp } from './mob-app/main.mjs';
190
191
  export { AuthGuardHooks } from './mob-app/guard/auth-guard-hooks.mjs';
@@ -328,6 +328,32 @@ var index = {
328
328
  overconstrainedError: "Installed cameras are not suitable",
329
329
  streamApiNotSupportedError: "Stream API is not supported in this browser",
330
330
  insecureContextError: "Camera access is only permitted in secure context. use HTTPS or localhost rather than HTTP."
331
+ },
332
+ aiChartUtil: {
333
+ feedback: "Feedback",
334
+ description: "Description",
335
+ regardingIssue: "Regarding the problem",
336
+ understandProblem: "Not understanding the problem",
337
+ forgotContext: "Forgot the previous text",
338
+ notFollowingRequire: "Not Following Requirements",
339
+ regardingResponse: "Regarding the effectiveness of the answer",
340
+ incorrectAswer: "Incorrect answer",
341
+ logicalConfusion: "Logical confusion",
342
+ poorTimeliness: "Poor timeliness",
343
+ poorReadability: "Poor readability",
344
+ incompleteAnswer: "Incomplete answer",
345
+ unprofessional: "The answer is vague and unprofessional",
346
+ report: "Report",
347
+ pornographicVulgar: "Pornographic Vulgar",
348
+ politicallySensitive: "Politically sensitive",
349
+ illegalCriminal: "Illegal crime",
350
+ discriminationPrejudice: "Discrimination or Prejudice Answer",
351
+ violationPrivacy: "Violation of Privacy",
352
+ contentInfringement: "Content infringement",
353
+ placeholder: "Please enter"
354
+ },
355
+ printPreviewUtil: {
356
+ title: "Print Preview"
331
357
  }
332
358
  },
333
359
  // 视图
@@ -357,29 +383,6 @@ var index = {
357
383
  missingToolbarModel: "Missing toolbar component model",
358
384
  notReceivedPrompt: "No appDataElementId received"
359
385
  },
360
- aiChartUtil: {
361
- feedback: "Feedback",
362
- description: "Description",
363
- regardingIssue: "Regarding the problem",
364
- understandProblem: "Not understanding the problem",
365
- forgotContext: "Forgot the previous text",
366
- notFollowingRequire: "Not Following Requirements",
367
- regardingResponse: "Regarding the effectiveness of the answer",
368
- incorrectAswer: "Incorrect answer",
369
- logicalConfusion: "Logical confusion",
370
- poorTimeliness: "Poor timeliness",
371
- poorReadability: "Poor readability",
372
- incompleteAnswer: "Incomplete answer",
373
- unprofessional: "The answer is vague and unprofessional",
374
- report: "Report",
375
- pornographicVulgar: "Pornographic Vulgar",
376
- politicallySensitive: "Politically sensitive",
377
- illegalCriminal: "Illegal crime",
378
- discriminationPrejudice: "Discrimination or Prejudice Answer",
379
- violationPrivacy: "Violation of Privacy",
380
- contentInfringement: "Content infringement",
381
- placeholder: "Please enter"
382
- },
383
386
  // runTime
384
387
  ...en$3,
385
388
  // vue3Util
@@ -352,6 +352,9 @@ var index = {
352
352
  violationPrivacy: "\u4FB5\u72AF\u9690\u79C1",
353
353
  contentInfringement: "\u5185\u5BB9\u4FB5\u6743",
354
354
  placeholder: "\u8BF7\u8F93\u5165"
355
+ },
356
+ printPreviewUtil: {
357
+ title: "\u6253\u5370\u9884\u89C8"
355
358
  }
356
359
  },
357
360
  // 视图
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode, resolveComponent, ref, onUnmounted, onMounted, onBeforeUnmount } from 'vue';
2
- import { AppHooks, routerCallback } from '@ibiz-template/vue3-util';
2
+ import { AppHooks, routerCallback, onRouteChange } from '@ibiz-template/vue3-util';
3
3
  import { Modal, ViewMode } from '@ibiz-template/runtime';
4
4
  import '../util/index.mjs';
5
5
  import './App.css';
@@ -52,6 +52,15 @@ var App = /* @__PURE__ */ defineComponent({
52
52
  ...(_a = ibiz.appData) == null ? void 0 : _a.context
53
53
  });
54
54
  });
55
+ const parentWindow = window.parent;
56
+ if (parentWindow && parentWindow.postMessage) {
57
+ onRouteChange(() => {
58
+ parentWindow.postMessage({
59
+ type: "onRouteChange",
60
+ url: window.location.href
61
+ }, "*");
62
+ }, 1);
63
+ }
55
64
  });
56
65
  onBeforeUnmount(() => {
57
66
  watermarkDestroy == null ? void 0 : watermarkDestroy();
@@ -94,10 +94,12 @@ const ModalRouterShell = /* @__PURE__ */ defineComponent({
94
94
  component = View404;
95
95
  }
96
96
  const opts = {
97
- width: (appView == null ? void 0 : appView.width) || "60%",
98
- height: (appView == null ? void 0 : appView.height) || "60%",
97
+ width: (appView == null ? void 0 : appView.width) || "100%",
98
+ height: (appView == null ? void 0 : appView.height) || "100%",
99
99
  footerHide: true,
100
- isRouteModal: true
100
+ isRouteModal: true,
101
+ // 是否显示弹框关闭按钮,显示返回按钮时不显示关闭按钮
102
+ showClose: !ibiz.config.view.mobShowPresetBack
101
103
  };
102
104
  overlay = ibiz.overlay.createModal(component, void 0, opts);
103
105
  overlay.present();
@@ -109,7 +111,7 @@ const ModalRouterShell = /* @__PURE__ */ defineComponent({
109
111
  router.back();
110
112
  } else {
111
113
  const path = route.path;
112
- const index = path.indexOf(`/${RouteConst.ROUTE_MODAL_TAG}/`);
114
+ const index = path.indexOf("/".concat(RouteConst.ROUTE_MODAL_TAG, "/"));
113
115
  router.replace(path.substring(0, index));
114
116
  }
115
117
  routerCallback.close(router.currentRoute.value.fullPath, result || {
@@ -44,7 +44,7 @@ const RouterShell = /* @__PURE__ */ defineComponent({
44
44
  isLoaded.value = true;
45
45
  } catch (error) {
46
46
  router.push({
47
- name: `404View${routeDepth}`
47
+ name: "404View".concat(routeDepth)
48
48
  });
49
49
  }
50
50
  };
@@ -69,7 +69,7 @@ class AuthGuard {
69
69
  * @memberof AuthGuard
70
70
  */
71
71
  async loadOrgData() {
72
- const res = await ibiz.net.get(`/uaa/getbydcsystem/${ibiz.env.dcSystem}`);
72
+ const res = await ibiz.net.get("/uaa/getbydcsystem/".concat(ibiz.env.dcSystem));
73
73
  if (res.ok) {
74
74
  const orgDataItems = res.data;
75
75
  if (orgDataItems) {
@@ -240,7 +240,7 @@ class AuthGuard {
240
240
  }
241
241
  if (!viewModel) {
242
242
  ibiz.log.error(
243
- `\u627E\u4E0D\u5230\u89C6\u56FE\u6A21\u578B${viewName},\u8BF7\u786E\u4FDD\u8BE5\u89C6\u56FE\u914D\u7F6E\u4E86\u533F\u540D\u8BBF\u95EE\u548C\u7528\u6237\u5F15\u7528`
243
+ "\u627E\u4E0D\u5230\u89C6\u56FE\u6A21\u578B".concat(viewName, ",\u8BF7\u786E\u4FDD\u8BE5\u89C6\u56FE\u914D\u7F6E\u4E86\u533F\u540D\u8BBF\u95EE\u548C\u7528\u6237\u5F15\u7528")
244
244
  );
245
245
  this.throw401();
246
246
  return;
@@ -21,11 +21,11 @@ class DynaAuthGuard extends AuthGuard {
21
21
  const helper = new ModelHelper(
22
22
  async (url) => {
23
23
  if (ibiz.env.isLocalModel) {
24
- const res2 = await ibiz.net.getModel(`./model${url}`);
24
+ const res2 = await ibiz.net.getModel("./model".concat(url));
25
25
  return res2.data;
26
26
  }
27
27
  const res = await ibiz.net.get(
28
- `${ibiz.env.remoteModelUrl}${url}`,
28
+ "".concat(ibiz.env.remoteModelUrl).concat(url),
29
29
  void 0,
30
30
  permission ? {} : { srfdcsystem: ibiz.env.dcSystem }
31
31
  );
@@ -20,6 +20,7 @@ import { NotificationUtil } from '../util/notification-util/notification-util.mj
20
20
  import { LoadingUtil } from '../util/loading-util/loading-util.mjs';
21
21
  import { OverlayController } from '../util/overlay-controller/overlay-controller.mjs';
22
22
  import { FullscreenUtil } from '../util/fullscreen/fullscreen-util.mjs';
23
+ import { PrintPreviewUtil } from '../util/print-preview-util/print-preview-util.mjs';
23
24
  import { QrcodeUtil } from '../util/qrcode-util/qrcode-util.mjs';
24
25
  import { AIChatUtil } from '../util/ai-chat-util/ai-chat-util.mjs';
25
26
 
@@ -71,7 +72,7 @@ async function runApp(plugins, opts) {
71
72
  AppRouter.setAuthGuard(
72
73
  (context, notLogin) => authGuard.verify(context, notLogin)
73
74
  );
74
- const router = AppRouter.getRouter();
75
+ const router = AppRouter.getRouter(opts == null ? void 0 : opts.userRoutes);
75
76
  app.use(router);
76
77
  listenOpenDevTool(router);
77
78
  ibiz.appUtil = new AppUtil(router);
@@ -84,6 +85,7 @@ async function runApp(plugins, opts) {
84
85
  ibiz.overlay = new OverlayController();
85
86
  ibiz.platform = getPlatformProvider();
86
87
  ibiz.fullscreenUtil = new FullscreenUtil();
88
+ ibiz.printPreview = new PrintPreviewUtil();
87
89
  ibiz.util.text.format = (value, code) => {
88
90
  return app.config.globalProperties.$textFormat(value, code);
89
91
  };
@@ -12,6 +12,7 @@ import { RouterShell } from '../components/router-shell/router-shell.mjs';
12
12
  import { LoginView } from '../../view/login-view/login-view.mjs';
13
13
  import { DownloadView } from '../../view/download-view/download-view.mjs';
14
14
  import { HomeView } from '../components/home-view/home-view.mjs';
15
+ import { splitPathToSegments, validateRouteSegments } from '../../util/user-route-util/user-route-util.mjs';
15
16
  import { useViewStack } from '../../util/store/view-stack/view-stack.mjs';
16
17
 
17
18
  "use strict";
@@ -47,15 +48,7 @@ class AppRouter {
47
48
  }
48
49
  return appContext;
49
50
  }
50
- /**
51
- * 创建vue路由对象
52
- * @author lxm
53
- * @date 2023-06-29 07:56:11
54
- * @protected
55
- * @static
56
- * @return {*}
57
- */
58
- static createRouter() {
51
+ static getRoutes() {
59
52
  const beforeEnter = async (_to, _from, next) => {
60
53
  if (!isNilOrEmpty(ibiz.appData)) {
61
54
  next();
@@ -69,8 +62,8 @@ class AppRouter {
69
62
  }
70
63
  };
71
64
  const placeholder = ibiz.env.routePlaceholder;
72
- const paramReg = `[^/]+=[^/]+|${placeholder}`;
73
- const viewReg = `[^=/]+`;
65
+ const paramReg = "[^/]+=[^/]+|".concat(placeholder);
66
+ const viewReg = "[^=/]+";
74
67
  const children = [
75
68
  {
76
69
  path: "404",
@@ -79,14 +72,17 @@ class AppRouter {
79
72
  component: View404
80
73
  },
81
74
  {
82
- path: `${RouteConst.ROUTE_MODAL_TAG}/:modalView(${viewReg})/:modalParams(${paramReg})`,
75
+ path: "".concat(RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
83
76
  components: {
84
77
  [RouteConst.ROUTE_MODAL_TAG]: ModalRouterShell
85
78
  }
86
79
  },
87
80
  {
88
- path: `:view2(${viewReg})/:params2(${paramReg})`,
81
+ path: ":view2(".concat(viewReg, ")/:params2(").concat(paramReg, ")"),
89
82
  component: RouterShell,
83
+ meta: {
84
+ depth: 2
85
+ },
90
86
  props: getPropsCallback(2),
91
87
  children: [
92
88
  {
@@ -96,14 +92,17 @@ class AppRouter {
96
92
  component: View404
97
93
  },
98
94
  {
99
- path: `${RouteConst.ROUTE_MODAL_TAG}/:modalView(${viewReg})/:modalParams(${paramReg})`,
95
+ path: "".concat(RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
100
96
  components: {
101
97
  [RouteConst.ROUTE_MODAL_TAG]: ModalRouterShell
102
98
  }
103
99
  },
104
100
  {
105
- path: `:view3(${viewReg})/:params3(${paramReg})`,
101
+ path: ":view3(".concat(viewReg, ")/:params3(").concat(paramReg, ")"),
106
102
  component: RouterShell,
103
+ meta: {
104
+ depth: 3
105
+ },
107
106
  props: getPropsCallback(3),
108
107
  children: [
109
108
  {
@@ -113,14 +112,17 @@ class AppRouter {
113
112
  component: View404
114
113
  },
115
114
  {
116
- path: `${RouteConst.ROUTE_MODAL_TAG}/:modalView(${viewReg})/:modalParams(${paramReg})`,
115
+ path: "".concat(RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
117
116
  components: {
118
117
  [RouteConst.ROUTE_MODAL_TAG]: ModalRouterShell
119
118
  }
120
119
  },
121
120
  {
122
- path: `:view4(${viewReg})/:params4(${paramReg})`,
121
+ path: ":view4(".concat(viewReg, ")/:params4(").concat(paramReg, ")"),
123
122
  component: RouterShell,
123
+ meta: {
124
+ depth: 4
125
+ },
124
126
  props: getPropsCallback(4)
125
127
  },
126
128
  {
@@ -140,65 +142,93 @@ class AppRouter {
140
142
  redirect: { name: "404View2" }
141
143
  }
142
144
  ];
143
- return createRouter({
144
- // 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。
145
- history: createWebHashHistory(),
146
- routes: [
147
- {
148
- path: "/",
149
- redirect: {
150
- replace: true,
151
- path: `/${placeholder}/index/${placeholder}`
152
- }
153
- },
154
- {
155
- path: "/login",
156
- name: "loginView",
157
- meta: { preset: true },
158
- beforeEnter: async (_to, _from, next) => {
159
- await this.authGuard(this.getAppContext(_to), false);
160
- next();
161
- },
162
- component: LoginView
163
- },
164
- {
165
- path: "/download",
166
- name: "downloadView",
167
- meta: { preset: true },
168
- component: DownloadView
169
- },
170
- {
171
- path: "/404",
172
- name: "404View1",
173
- meta: { preset: true },
174
- component: View404
175
- },
176
- {
177
- path: "/appredirectview",
178
- name: "appRedirectView",
179
- meta: { preset: true },
180
- beforeEnter,
181
- component: AppRedirectView
182
- },
183
- {
184
- path: `/:appContext(${paramReg})/home/:params1(${paramReg})`,
185
- meta: { home: true },
186
- beforeEnter,
187
- component: HomeView,
188
- children
189
- },
190
- {
191
- path: `/:appContext(${paramReg})/:view1(${viewReg})/:params1(${paramReg})`,
192
- beforeEnter,
193
- component: RouterShell,
194
- children
145
+ const routes = [
146
+ {
147
+ path: "/",
148
+ redirect: {
149
+ replace: true,
150
+ path: "/".concat(placeholder, "/index/").concat(placeholder)
151
+ }
152
+ },
153
+ {
154
+ path: "/login",
155
+ name: "loginView",
156
+ meta: { preset: true },
157
+ beforeEnter: async (_to, from, next) => {
158
+ await this.authGuard(this.getAppContext(_to), false);
159
+ next();
195
160
  },
196
- {
197
- path: "/:pathMatch(.*)*",
198
- redirect: { name: "404View1" }
161
+ component: LoginView
162
+ },
163
+ {
164
+ path: "/download",
165
+ name: "downloadView",
166
+ meta: { preset: true },
167
+ component: DownloadView
168
+ },
169
+ {
170
+ path: "/404",
171
+ name: "404View1",
172
+ meta: { preset: true },
173
+ component: View404
174
+ },
175
+ {
176
+ path: "/appredirectview",
177
+ name: "appRedirectView",
178
+ meta: { preset: true },
179
+ beforeEnter,
180
+ component: AppRedirectView
181
+ },
182
+ {
183
+ path: "/:appContext(".concat(paramReg, ")/home/:params1(").concat(paramReg, ")"),
184
+ meta: { home: true, depth: 1 },
185
+ beforeEnter,
186
+ component: HomeView,
187
+ children
188
+ },
189
+ {
190
+ path: "/:appContext(".concat(paramReg, ")/:view1(").concat(viewReg, ")/:params1(").concat(paramReg, ")"),
191
+ beforeEnter,
192
+ meta: { depth: 1 },
193
+ component: RouterShell,
194
+ children
195
+ },
196
+ {
197
+ path: "/:pathMatch(.*)*",
198
+ redirect: { name: "404View1" }
199
+ }
200
+ ];
201
+ return routes;
202
+ }
203
+ /**
204
+ * 添加路由
205
+ * @param parentDepth 父路由层级
206
+ * @param userRoute
207
+ * @param routes
208
+ * @returns
209
+ */
210
+ static addRoute(parentDepth, userRoute, routes) {
211
+ if (!parentDepth)
212
+ return;
213
+ const findAndAdd = (routeList) => {
214
+ for (const route of routeList) {
215
+ if (route && route.meta && route.meta.depth === parentDepth) {
216
+ if (route.children && route.children.length > 0) {
217
+ route.children.push(userRoute);
218
+ } else {
219
+ route.children = [userRoute];
220
+ }
221
+ return true;
199
222
  }
200
- ]
201
- });
223
+ if (route.children && route.children.length > 0) {
224
+ if (findAndAdd(route.children)) {
225
+ return true;
226
+ }
227
+ }
228
+ }
229
+ return false;
230
+ };
231
+ findAndAdd(routes);
202
232
  }
203
233
  /**
204
234
  * 获取路由对象
@@ -207,9 +237,34 @@ class AppRouter {
207
237
  * @static
208
238
  * @return {*}
209
239
  */
210
- static getRouter() {
240
+ static getRouter(userRoutes = []) {
211
241
  if (!this.router) {
212
- this.router = this.createRouter();
242
+ const routes = this.getRoutes();
243
+ if (userRoutes && userRoutes.length > 0) {
244
+ for (let i = 0; i < userRoutes.length; i++) {
245
+ const route = userRoutes[i];
246
+ const paginationathSegments = splitPathToSegments(route.path);
247
+ const validateResult = validateRouteSegments(paginationathSegments);
248
+ if (!validateResult) {
249
+ ibiz.log.warn(
250
+ "\u8DEF\u7531\u914D\u7F6E\u9519\u8BEF\uFF1A\u8DEF\u7531\u8DEF\u5F84\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u8DEF\u7531\u914D\u7F6E\uFF0C\u8BE6\u60C5\u53C2\u89C1\uFF1Ahttps://open.ibizlab.cn/apphub/zh/guide/router.html"
251
+ );
252
+ continue;
253
+ }
254
+ const pathDeepth = (paginationathSegments.length - 1) / 2;
255
+ if (pathDeepth > 1) {
256
+ const segmentLength = paginationathSegments.length;
257
+ route.path = "".concat(paginationathSegments[segmentLength - 2], "/").concat(paginationathSegments[segmentLength - 1]);
258
+ this.addRoute(pathDeepth - 1, route, routes);
259
+ } else {
260
+ routes.push(route);
261
+ }
262
+ }
263
+ }
264
+ this.router = createRouter({
265
+ history: createWebHashHistory(),
266
+ routes
267
+ });
213
268
  const { init } = useViewStack();
214
269
  init(this.router);
215
270
  }
@@ -36,14 +36,14 @@ class UnauthorizedHandler {
36
36
  );
37
37
  }
38
38
  const { origin } = window.location;
39
- const baseUrl = `${origin}${ibiz.env.baseUrl}`;
40
- const backUrl = `${baseUrl}/cas/v7/login${qs.stringify(
39
+ const baseUrl = "".concat(origin).concat(ibiz.env.baseUrl);
40
+ const backUrl = "".concat(baseUrl, "/cas/v7/login").concat(qs.stringify(
41
41
  {
42
42
  RU: UrlHelper.fullPath,
43
43
  base: baseUrl
44
44
  },
45
45
  { addQueryPrefix: true }
46
- )}`;
46
+ ));
47
47
  const hasQueryPrefix = ibiz.env.casLoginUrl.indexOf("?") !== -1;
48
48
  const targetUrl = ibiz.env.casLoginUrl + (hasQueryPrefix ? "&" : "?") + qs.stringify(
49
49
  {
@@ -85,9 +85,9 @@ class UnauthorizedHandler {
85
85
  if (ru.startsWith("/login")) {
86
86
  return;
87
87
  }
88
- const targetUrl = `${UrlHelper.routeBase}/login?ru=${encodeURIComponent(
88
+ const targetUrl = "".concat(UrlHelper.routeBase, "/login?ru=").concat(encodeURIComponent(
89
89
  ru
90
- )}`;
90
+ ));
91
91
  document.body.style.display = "none";
92
92
  window.location.href = targetUrl;
93
93
  window.location.reload();
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/index12.mjs';
2
+ import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/index13.mjs';
3
3
 
4
4
  var frameTalkClientPc = frameTalkClientPc$1.exports;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __exports as middlewares } from '../../../../../../../../_virtual/index13.mjs';
2
+ import { __exports as middlewares } from '../../../../../../../../_virtual/index12.mjs';
3
3
  import '../../../../../../../../_virtual/bridge.mjs';
4
4
  import { __require as requireRetry } from './retry.mjs';
5
5
  import '../../../../../../../../_virtual/dealParamsAndResult.mjs';
@@ -55,7 +55,7 @@ const AsyncAction = /* @__PURE__ */ defineComponent({
55
55
  return props.action.actionstate;
56
56
  });
57
57
  const progressText = computed(() => {
58
- return !props.action.completionrate ? "" : `(${props.action.completionrate}%)`;
58
+ return !props.action.completionrate ? "" : "(".concat(props.action.completionrate, "%)");
59
59
  });
60
60
  const onClick = async (event) => {
61
61
  if (props.provider.onClick) {
@@ -108,7 +108,7 @@ const AsyncAction = /* @__PURE__ */ defineComponent({
108
108
  "class": this.ns.b("loading-warp")
109
109
  }, [createVNode("div", {
110
110
  "class": this.ns.be("loading-warp", "inner"),
111
- "style": `width:${this.action.completionrate}%;`
111
+ "style": "width:".concat(this.action.completionrate, "%;")
112
112
  }, null)])]);
113
113
  }
114
114
  });
@@ -22,7 +22,7 @@ function fileDownload(file) {
22
22
  if (filename.startsWith('"') && filename.endsWith('"')) {
23
23
  filename = filename.substring(1, filename.length - 1);
24
24
  }
25
- file.name += `.${filename.split(".")[1]}`;
25
+ file.name += ".".concat(filename.split(".")[1]);
26
26
  }
27
27
  if (response.status !== 200) {
28
28
  throw new RuntimeError(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadFailedErr"));
@@ -93,7 +93,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
93
93
  info.errorDetails = [];
94
94
  }
95
95
  if (actionResult.errorfile) {
96
- info.errorFileUrl = `${ibiz.env.baseUrl}/${ibiz.env.appId}${ibiz.env.downloadFileUrl}/${actionResult.errorfile.folder}/${actionResult.errorfile.fileid}`.replace("/{cat}", "");
96
+ info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid).replace("/{cat}", "");
97
97
  }
98
98
  }
99
99
  const onDownLoad = () => {
@@ -131,7 +131,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
131
131
  }, null)])]), createVNode("div", {
132
132
  "class": this.ns.b("time")
133
133
  }, [createVNode(resolveComponent("van-field"), {
134
- "model-value": `${this.info.beginTime} ~ ${this.info.endTime}`,
134
+ "model-value": "".concat(this.info.beginTime, " ~ ").concat(this.info.endTime),
135
135
  "label": ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTime"),
136
136
  "readonly": true,
137
137
  "label-align": "top"
@@ -21,7 +21,7 @@ const AsyncActionResult = /* @__PURE__ */ defineComponent({
21
21
  if (isObject(props.asyncAction.actionresult)) {
22
22
  return JSON.stringify(props.asyncAction.actionresult);
23
23
  }
24
- return `${props.asyncAction.actionresult}`;
24
+ return "".concat(props.asyncAction.actionresult);
25
25
  });
26
26
  return {
27
27
  ns,