@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
@@ -33,18 +33,18 @@ const AppModalComponent = /* @__PURE__ */ defineComponent({
33
33
  if (width) {
34
34
  customStyle.width = isNumber(width) ? calcOpenModeStyle(width, "modal") : width;
35
35
  } else {
36
- customStyle.width = "60vw";
36
+ customStyle.width = "100vw";
37
37
  }
38
38
  if (height) {
39
39
  customStyle.height = isNumber(height) ? calcOpenModeStyle(height, "modal") : height;
40
40
  } else {
41
- customStyle.height = "60vh";
41
+ customStyle.height = "100vh";
42
42
  }
43
43
  const options = ref({
44
44
  footerHide: true,
45
45
  modalClass: "",
46
- // 是否显示弹框关闭按钮,默认不显示
47
- showClose: false,
46
+ // 是否显示弹框关闭按钮,显示返回按钮时不显示关闭按钮
47
+ showClose: !ibiz.config.view.mobShowPresetBack,
48
48
  // 是否显示遮罩,默认显示
49
49
  overlay: true
50
50
  });
@@ -97,6 +97,9 @@ const AppModalComponent = /* @__PURE__ */ defineComponent({
97
97
  return createVNode(resolveComponent("van-button"), {
98
98
  "class": this.ns.e("close"),
99
99
  "plain": true,
100
+ "style": {
101
+ zIndex: this.modalZIndex
102
+ },
100
103
  "onClick": this.onDialogClose
101
104
  }, {
102
105
  default: () => [createVNode(resolveComponent("van-icon"), {
@@ -33,8 +33,8 @@ async function computePos(element, el, arrEl, opts) {
33
33
  const {
34
34
  style
35
35
  } = el;
36
- style.left = `${x}px`;
37
- style.top = `${y}px`;
36
+ style.left = "".concat(x, "px");
37
+ style.top = "".concat(y, "px");
38
38
  if (!opts.noArrow) {
39
39
  const {
40
40
  x: arrowX,
@@ -47,8 +47,8 @@ async function computePos(element, el, arrEl, opts) {
47
47
  left: "right"
48
48
  }[placement.split("-")[0]];
49
49
  Object.assign(arrEl.style, {
50
- left: arrowX != null ? `${arrowX}px` : "",
51
- top: arrowY != null ? `${arrowY}px` : "",
50
+ left: arrowX != null ? "".concat(arrowX, "px") : "",
51
+ top: arrowY != null ? "".concat(arrowY, "px") : "",
52
52
  right: "",
53
53
  bottom: "",
54
54
  [staticSide]: "-4px"
@@ -24,6 +24,41 @@ class AppUtil {
24
24
  */
25
25
  __publicField(this, "viewCacheCenter", /* @__PURE__ */ new Map());
26
26
  }
27
+ /**
28
+ * @description 注册导航结束事件
29
+ * @param {(form: string, to: string) => void} callBack
30
+ * @memberof AppUtil
31
+ */
32
+ registerEventOnNavEnd(callBack) {
33
+ this.router.afterEach((form, to) => {
34
+ if (callBack)
35
+ callBack(form.fullPath, to.fullPath);
36
+ });
37
+ }
38
+ /**
39
+ * @description 注册路由导航完成关闭模态类视图
40
+ * @returns {*} {void}
41
+ * @memberof AppUtil
42
+ */
43
+ registerAutoCloseOnNavEnd() {
44
+ if (!ibiz.config.common.autoCloseModalView || !this.router)
45
+ return;
46
+ this.router.afterEach(() => {
47
+ if (this.viewCacheCenter.size === 0)
48
+ return;
49
+ const cacheViews = [...this.viewCacheCenter.values()];
50
+ const validModalViews = cacheViews.filter((view) => {
51
+ return view && view.state.isDestroyed === false && view.modal && view.modal.viewUsage === 2;
52
+ });
53
+ if (validModalViews.length === 0)
54
+ return;
55
+ setTimeout(() => {
56
+ validModalViews.forEach(
57
+ (view) => view && view.closeView && view.closeView()
58
+ );
59
+ }, 0);
60
+ });
61
+ }
27
62
  /**
28
63
  * @description 路由是否初始化构建完成
29
64
  * @returns {*} {Promise<void>}
@@ -76,7 +111,7 @@ class AppUtil {
76
111
  if (bol) {
77
112
  const path = window.location;
78
113
  if (path.search.indexOf("isAnonymous=true") !== -1) {
79
- const href = `${path.origin}${path.pathname}${path.hash}`;
114
+ const href = "".concat(path.origin).concat(path.pathname).concat(path.hash);
80
115
  window.history.replaceState({}, "", href);
81
116
  }
82
117
  await this.router.push(
@@ -207,10 +242,10 @@ class AppUtil {
207
242
  return Promise.resolve([]);
208
243
  const chatInstance = await ibiz.aiChatUtil.getAIChat();
209
244
  const appDataEntityName = calcDeCodeNameById(appDataEntityId);
210
- let topicId = `mob@${appDataEntityId}@${appDEACModeId}@`;
245
+ let topicId = "mob@".concat(appDataEntityId, "@").concat(appDEACModeId, "@");
211
246
  topicId += context[appDataEntityName] ? context[appDataEntityName] : "default";
212
247
  const sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId);
213
- const topicCaption = `[${deACMode.logicName}]${(data == null ? void 0 : data.srfmajortext) || ""}`;
248
+ const topicCaption = "[".concat(deACMode.logicName, "]").concat((data == null ? void 0 : data.srfmajortext) || "");
214
249
  const tempParams = { ...params, ...{ srfactag: deACMode.codeName } };
215
250
  const { zIndex } = useUIStore();
216
251
  const containerZIndex = zIndex.increment();
@@ -24,5 +24,37 @@ function convertBtnType(detail) {
24
24
  }
25
25
  return buttonType;
26
26
  }
27
+ function getTempDomRect(ns, style = {}) {
28
+ const dom = document.createElement("div");
29
+ dom.classList.add(ns.b());
30
+ Object.assign(dom.style, {
31
+ position: "absolute",
32
+ left: "-9999px",
33
+ width: "var(".concat(ns.cssVarBlockName("width-van-button"), ")"),
34
+ height: "var(".concat(ns.cssVarBlockName("height-van-button"), ")"),
35
+ ...style
36
+ });
37
+ document.body.appendChild(dom);
38
+ const domRectList = dom.getBoundingClientRect();
39
+ document.body.removeChild(dom);
40
+ return domRectList;
41
+ }
42
+ function calcPopoverPlacement(ns, curDom, listNum, direction = "horizontal") {
43
+ if (!curDom)
44
+ return direction === "horizontal" ? "right" : "bottom";
45
+ const { innerWidth, innerHeight } = window;
46
+ const rect = getTempDomRect(ns);
47
+ const { x, y, width } = curDom.getBoundingClientRect();
48
+ const centerX = innerWidth - width - rect.width;
49
+ const centerY = listNum ? innerHeight - listNum * rect.height : innerHeight / 2;
50
+ if (y > centerY) {
51
+ if (direction === "horizontal")
52
+ return x > centerX ? "left-end" : "right-end";
53
+ return x > centerX ? "top-end" : "top-start";
54
+ }
55
+ if (direction === "horizontal")
56
+ return x > centerX ? "left-start" : "right-start";
57
+ return x > centerX ? "bottom-end" : "bottom-start";
58
+ }
27
59
 
28
- export { convertBtnType };
60
+ export { calcPopoverPlacement, convertBtnType, getTempDomRect };
@@ -18,7 +18,7 @@ class ConfirmUtil {
18
18
  showConfirmDialog({
19
19
  title,
20
20
  message: desc,
21
- className: `${this.ns.b()} ${this.ns.e("info")}`,
21
+ className: "".concat(this.ns.b(), " ").concat(this.ns.e("info")),
22
22
  ...options
23
23
  }).then(() => {
24
24
  resolve(true);
@@ -33,7 +33,7 @@ class ConfirmUtil {
33
33
  showConfirmDialog({
34
34
  title,
35
35
  message: desc,
36
- className: `${this.ns.b()} ${this.ns.e("success")}`,
36
+ className: "".concat(this.ns.b(), " ").concat(this.ns.e("success")),
37
37
  ...options
38
38
  }).then(() => {
39
39
  resolve(true);
@@ -48,7 +48,7 @@ class ConfirmUtil {
48
48
  showConfirmDialog({
49
49
  title,
50
50
  message: desc,
51
- className: `${this.ns.b()} ${this.ns.e("warning")}`,
51
+ className: "".concat(this.ns.b(), " ").concat(this.ns.e("warning")),
52
52
  ...options
53
53
  }).then(() => {
54
54
  resolve(true);
@@ -63,7 +63,7 @@ class ConfirmUtil {
63
63
  showConfirmDialog({
64
64
  title,
65
65
  message: desc,
66
- className: `${this.ns.b()} ${this.ns.e("error")}`,
66
+ className: "".concat(this.ns.b(), " ").concat(this.ns.e("error")),
67
67
  ...options
68
68
  }).then(() => {
69
69
  resolve(true);
@@ -6,7 +6,7 @@ const INSTANCE_KEY = Symbol("vanLoading");
6
6
  const createInstance = (el) => {
7
7
  const ns = useNamespace("loading");
8
8
  const options = {
9
- message: `${ibiz.i18n.t("util.loading")}...`,
9
+ message: "".concat(ibiz.i18n.t("util.loading"), "..."),
10
10
  forbidClick: true,
11
11
  teleport: el,
12
12
  duration: 0,
@@ -72,7 +72,7 @@ class FullscreenUtil {
72
72
  }
73
73
  const ns = useNamespace(this.FullscreenClass);
74
74
  this.fullscreenElement.classList.remove(ns.b());
75
- const header = this.fullscreenElement.querySelector(`.${ns.e("header")}`);
75
+ const header = this.fullscreenElement.querySelector(".".concat(ns.e("header")));
76
76
  if (header) {
77
77
  header.remove();
78
78
  }
package/es/util/index.mjs CHANGED
@@ -12,10 +12,11 @@ export { FullscreenUtil } from './fullscreen/fullscreen-util.mjs';
12
12
  import './store/index.mjs';
13
13
  export { usePopstateListener } from './use-popstate-util/use-popstate-util.mjs';
14
14
  export { QrcodeUtil } from './qrcode-util/qrcode-util.mjs';
15
- export { convertBtnType } from './button-util/button-util.mjs';
15
+ export { calcPopoverPlacement, convertBtnType } from './button-util/button-util.mjs';
16
16
  export { useListRender } from './list-util/list-render-util.mjs';
17
17
  export { splitPathToSegments, validateRouteSegments } from './user-route-util/user-route-util.mjs';
18
18
  export { AIChatUtil } from './ai-chat-util/ai-chat-util.mjs';
19
+ export { PrintPreviewUtil } from './print-preview-util/print-preview-util.mjs';
19
20
  export { calcUniqueKey, useViewStack } from './store/view-stack/view-stack.mjs';
20
21
 
21
22
  "use strict";
@@ -21,6 +21,7 @@ function useListRender(props, c, ns) {
21
21
  const enableLoadMore = computed(() => {
22
22
  return c.state.items.length < c.state.total && c.state.total > c.state.size;
23
23
  });
24
+ const isUpdating = ref(false);
24
25
  c.evt.on("onLoadSuccess", () => {
25
26
  if (!enablePagingBar && pagingMode !== 3) {
26
27
  isLodeFinished.value = c.state.items.length >= c.state.total || c.state.total <= c.state.size;
@@ -44,6 +45,12 @@ function useListRender(props, c, ns) {
44
45
  c.state.isLoaded = true;
45
46
  }
46
47
  });
48
+ c.evt.on("onLoadSuccess", () => {
49
+ isUpdating.value = true;
50
+ window.requestAnimationFrame(() => {
51
+ isUpdating.value = false;
52
+ });
53
+ });
47
54
  watch(() => props.data, () => {
48
55
  if (props.isSimple) {
49
56
  initSimpleData();
@@ -65,9 +72,9 @@ function useListRender(props, c, ns) {
65
72
  const calcItemStyle = (row) => {
66
73
  const cardStyle = {};
67
74
  Object.assign(cardStyle, ns.cssVarBlock({
68
- "color-bg": `${row.bgcolor || ""}`,
69
- "color-text": `${row.fontcolor || ""}`,
70
- "color-item-active": `${row.activecolor || ""}`
75
+ "color-bg": "".concat(row.bgcolor || ""),
76
+ "color-text": "".concat(row.fontcolor || ""),
77
+ "color-item-active": "".concat(row.activecolor || "")
71
78
  }));
72
79
  return cardStyle;
73
80
  };
@@ -154,7 +161,7 @@ function useListRender(props, c, ns) {
154
161
  return;
155
162
  }
156
163
  const ctrlModel = controls.find((item) => {
157
- return item.name === `${name}_quicktoolbar`;
164
+ return item.name === "".concat(name, "_quicktoolbar");
158
165
  });
159
166
  if (ctrlModel) {
160
167
  return createVNode(resolveComponent("iBizToolbarControl"), {
@@ -192,15 +199,27 @@ function useListRender(props, c, ns) {
192
199
  if (!c.state.isLoaded) {
193
200
  return null;
194
201
  }
202
+ let disabled = true;
203
+ if (enablePagingBar === true) {
204
+ disabled = false;
205
+ }
206
+ if (pagingMode && pagingMode !== 0) {
207
+ disabled = false;
208
+ }
209
+ let finishedText = ibiz.i18n.t("control.common.loadFinish");
210
+ if (c.state.curPage < c.state.totalPages || disabled) {
211
+ finishedText = "";
212
+ }
195
213
  return createVNode(resolveComponent("van-list"), {
196
214
  "class": [ns.e("content"), ns.is("show-under-line", controlStyle !== "EXTVIEW1")],
197
215
  "loading": c.state.isLoading,
198
216
  "error": isLoadError.value,
199
217
  "onUpdate:error": ($event) => isLoadError.value = $event,
200
218
  "offset": 50,
219
+ "disabled": disabled || isUpdating.value,
201
220
  "finished": isLodeFinished.value,
202
221
  "loading-text": ibiz.i18n.t("control.common.loadMore"),
203
- "finished-text": c.state.totalPages === 1 ? "" : ibiz.i18n.t("control.common.loadFinish"),
222
+ "finished-text": finishedText,
204
223
  "error-text": ibiz.i18n.t("control.common.loadError"),
205
224
  "onLoad": () => c.loadMore()
206
225
  }, {
@@ -45,7 +45,7 @@ class LoadingUtil {
45
45
  const ns = useNamespace("loading");
46
46
  if (this.count === 0) {
47
47
  this.loading = showLoadingToast({
48
- message: `${ibiz.i18n.t("util.loading")}...`,
48
+ message: "".concat(ibiz.i18n.t("util.loading"), "..."),
49
49
  forbidClick: true,
50
50
  className: ns.b(),
51
51
  loadingType: "spinner",
@@ -144,7 +144,7 @@ class OpenViewUtil {
144
144
  context,
145
145
  params
146
146
  );
147
- window.open(`${UrlHelper.routeBase}${path}`, "_blank", "popup");
147
+ window.open("".concat(UrlHelper.routeBase).concat(path), "_blank", "popup");
148
148
  }
149
149
  /**
150
150
  * 校验是否可以打开视图
@@ -0,0 +1,46 @@
1
+ import { createVNode } from 'vue';
2
+
3
+ "use strict";
4
+ const ArrowLeftBold = () => createVNode("svg", {
5
+ "data-v-9a20e128": "",
6
+ "xmlns": "http://www.w3.org/2000/svg",
7
+ "viewBox": "0 0 1024 1024",
8
+ "width": "1em",
9
+ "height": "1em"
10
+ }, [createVNode("path", {
11
+ "fill": "currentColor",
12
+ "d": "M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"
13
+ }, null)]);
14
+ const ArrowRightBold = () => createVNode("svg", {
15
+ "data-v-9a20e128": "",
16
+ "xmlns": "http://www.w3.org/2000/svg",
17
+ "viewBox": "0 0 1024 1024",
18
+ "width": "1em",
19
+ "height": "1em"
20
+ }, [createVNode("path", {
21
+ "fill": "currentColor",
22
+ "d": "M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"
23
+ }, null)]);
24
+ const FullScreenSvg = () => createVNode("svg", {
25
+ "viewBox": "0 0 1024 1024",
26
+ "version": "1.1",
27
+ "xmlns": "http://www.w3.org/2000/svg"
28
+ }, [createVNode("path", {
29
+ "d": "M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"
30
+ }, null)]);
31
+ const CloseFullScreenSvg = () => createVNode("svg", {
32
+ "viewBox": "0 0 1024 1024",
33
+ "version": "1.1",
34
+ "xmlns": "http://www.w3.org/2000/svg"
35
+ }, [createVNode("path", {
36
+ "d": "M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"
37
+ }, null)]);
38
+ const CloseSvg = () => createVNode("svg", {
39
+ "viewBox": "0 0 1024 1024",
40
+ "version": "1.1",
41
+ "xmlns": "http://www.w3.org/2000/svg"
42
+ }, [createVNode("path", {
43
+ "d": "M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"
44
+ }, null)]);
45
+
46
+ export { ArrowLeftBold, ArrowRightBold, CloseFullScreenSvg, CloseSvg, FullScreenSvg };
@@ -0,0 +1 @@
1
+ .ibiz-print-preview-markdown{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.ibiz-print-preview-markdown__header{display:flex;flex-shrink:0;gap:var(--ibiz-spacing-base);align-items:center;justify-content:space-between;padding:var(--ibiz-spacing-base);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-print-preview-markdown__header--action{display:flex;flex-shrink:0;gap:var(--ibiz-spacing-base)}.ibiz-print-preview-markdown__header--caption{font-size:var(--ibiz-font-size-header-5)}.ibiz-print-preview-markdown__header--close{cursor:pointer}.ibiz-print-preview-markdown__header--close svg{width:var(--ibiz-spacing-base-loose);height:var(--ibiz-spacing-base-loose)}.ibiz-print-preview-markdown__content{flex-grow:1;margin:1rem;overflow:auto}.ibiz-print-preview-markdown__content>.ibiz-markdown{height:100%}.ibiz-print-preview-markdown__content>.ibiz-markdown .ibiz-markdown-cherry .cherry{border:none}.ibiz-print-preview-markdown__content>.ibiz-markdown .ibiz-markdown-cherry .cherry .cherry-previewer{border:none}
@@ -0,0 +1,62 @@
1
+ import { defineComponent, createVNode, ref, resolveComponent, h } from 'vue';
2
+ import { useNamespace } from '@ibiz-template/vue3-util';
3
+ import { CloseSvg } from './icon/icon.mjs';
4
+ import './print-preview-markdown.css';
5
+
6
+ "use strict";
7
+ const PrintPreviewMarkdown = /* @__PURE__ */ defineComponent({
8
+ name: "PrintPreviewMarkdown",
9
+ props: {
10
+ modal: {
11
+ type: Object,
12
+ required: true
13
+ },
14
+ value: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ setup(props) {
20
+ const ns = useNamespace("print-preview-markdown");
21
+ const printPreview = ref();
22
+ const onClose = () => {
23
+ props.modal.dismiss();
24
+ };
25
+ const renderHeader = () => {
26
+ return createVNode("div", {
27
+ "class": ns.e("header")
28
+ }, [createVNode("div", {
29
+ "class": ns.em("header", "caption")
30
+ }, [ibiz.i18n.t("util.printPreviewUtil.title")]), createVNode("div", {
31
+ "class": ns.em("header", "action")
32
+ }, [createVNode("div", {
33
+ "class": ns.em("header", "close"),
34
+ "title": ibiz.i18n.t("app.close"),
35
+ "onClick": onClose
36
+ }, [createVNode(CloseSvg, null, null)])])]);
37
+ };
38
+ const renderContent = () => {
39
+ const markdown = resolveComponent("IBizMarkDown");
40
+ return createVNode("div", {
41
+ "class": ns.e("content")
42
+ }, [h(markdown, {
43
+ value: props.value,
44
+ readonly: true
45
+ })]);
46
+ };
47
+ return {
48
+ ns,
49
+ printPreview,
50
+ renderHeader,
51
+ renderContent
52
+ };
53
+ },
54
+ render() {
55
+ return createVNode("div", {
56
+ "class": this.ns.b(),
57
+ "ref": "printPreview"
58
+ }, [this.renderHeader(), this.renderContent()]);
59
+ }
60
+ });
61
+
62
+ export { PrintPreviewMarkdown };
@@ -0,0 +1,57 @@
1
+ import { h } from 'vue';
2
+ import { PrintPreviewMarkdown } from './print-preview-markdown/print-preview-markdown.mjs';
3
+
4
+ "use strict";
5
+ class PrintPreviewUtil {
6
+ /**
7
+ * 执行打印
8
+ * @param context
9
+ * @param params
10
+ * @param data
11
+ * @returns boolean 是否成功执行打印
12
+ */
13
+ async execPrint(context, params, data) {
14
+ const srfcontenttype = params.srfcontenttype;
15
+ if (srfcontenttype === "MARKDOWN") {
16
+ return this.printMarkDown(data, params);
17
+ }
18
+ if (srfcontenttype === "HTML") {
19
+ return this.printHtml(data);
20
+ }
21
+ return false;
22
+ }
23
+ /**
24
+ * 打印MarkDown(窗口可以由视图参数srfprintheight和srfprintwidth指定,默认居中50%,绘制时为md预览模式绘制,提供全屏按钮,和关闭按钮。)
25
+ * @param data
26
+ * @returns
27
+ */
28
+ async printMarkDown(data, params) {
29
+ const text = await data.text();
30
+ const overlay = ibiz.overlay.createModal(
31
+ (modal) => h(PrintPreviewMarkdown, {
32
+ value: text,
33
+ modal
34
+ }),
35
+ void 0,
36
+ {
37
+ width: params.srfprintwidth || "80%",
38
+ height: params.srfprintheight || "80%"
39
+ }
40
+ );
41
+ overlay.present();
42
+ await overlay.onWillDismiss();
43
+ return true;
44
+ }
45
+ /**
46
+ * 打印HTML(原生浏览器预览)
47
+ * @param data
48
+ * @returns
49
+ */
50
+ async printHtml(data) {
51
+ const link = window.URL.createObjectURL(data);
52
+ window.open(link, "_blank");
53
+ return true;
54
+ }
55
+ }
56
+
57
+ export { PrintPreviewUtil };
@@ -26,7 +26,7 @@ const ScanQrcodeComponent = /* @__PURE__ */ defineComponent({
26
26
  facingMode: "environment"
27
27
  });
28
28
  const onError = (error) => {
29
- let errorText = `[${error.name}]: `;
29
+ let errorText = "[".concat(error.name, "]: ");
30
30
  switch (error.name) {
31
31
  case "NotAllowedError":
32
32
  errorText += ibiz.i18n.t("util.scanQrcode.notAllowedError");
@@ -33,17 +33,17 @@ const validateRouteSegments = (segments) => {
33
33
  if (segments.length < 3 || segments.length % 2 === 0) {
34
34
  return false;
35
35
  }
36
- const paramReg = `:[^()]+\\(\\[\\^/\\]\\+=\\[\\^/\\]\\+\\|${ibiz.env.routePlaceholder}\\)`;
37
- const viewReg = `[^=/]+`;
36
+ const paramReg = ":[^()]+\\(\\[\\^/\\]\\+=\\[\\^/\\]\\+\\|".concat(ibiz.env.routePlaceholder, "\\)");
37
+ const viewReg = "[^=/]+";
38
38
  for (let i = 0; i < segments.length; i++) {
39
39
  const segment = segments[i];
40
40
  if (i % 2 === 0) {
41
- const paramRegex = new RegExp(`^${paramReg}$`);
41
+ const paramRegex = new RegExp("^".concat(paramReg, "$"));
42
42
  if (!paramRegex.test(segment) && segment !== ibiz.env.routePlaceholder) {
43
43
  return false;
44
44
  }
45
45
  } else {
46
- const viewRegex = new RegExp(`^${viewReg}$`);
46
+ const viewRegex = new RegExp("^".concat(viewReg, "$"));
47
47
  if (!viewRegex.test(segment)) {
48
48
  return false;
49
49
  }
@@ -139,7 +139,7 @@ function exportJsonToExcel({
139
139
  new Blob([s2ab(wbOut)], {
140
140
  type: "application/octet-stream"
141
141
  }),
142
- `${filename}.${bookType}`
142
+ "".concat(filename, ".").concat(bookType)
143
143
  );
144
144
  }
145
145
  async function readExcelFile(file, sheetIndex) {
@@ -5,6 +5,10 @@ class IndexViewEngine extends ViewEngineBase {
5
5
  get appmenu() {
6
6
  return this.view.getController("appmenu");
7
7
  }
8
+ async onCreated() {
9
+ await super.onCreated();
10
+ ibiz.util.hiddenAppLoading();
11
+ }
8
12
  }
9
13
 
10
14
  export { IndexViewEngine };