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

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 (397) hide show
  1. package/dist/ibiz-markdown-editor-COU_MxNu.js +2 -0
  2. package/dist/ibiz-markdown-editor-COU_MxNu.js.map +1 -0
  3. package/dist/index-Bn7VkqJp.js +76 -0
  4. package/dist/index-Bn7VkqJp.js.map +1 -0
  5. package/dist/index-ChdHGLJI.js +2 -0
  6. package/dist/index-ChdHGLJI.js.map +1 -0
  7. package/dist/index-Dd7yiMzY.js +2 -0
  8. package/dist/index-Dd7yiMzY.js.map +1 -0
  9. package/dist/index.es-D0mZvSDS.js +14 -0
  10. package/dist/index.es-D0mZvSDS.js.map +1 -0
  11. package/dist/index.min.css +2 -2
  12. package/dist/index.system.min.js +1 -1
  13. package/dist/{quill-COWm2ioZ.js → quill-BOA7ZLOz.js} +2 -2
  14. package/dist/{quill-COWm2ioZ.js.map → quill-BOA7ZLOz.js.map} +1 -1
  15. package/dist/{quill-editor-BwfQqajZ.js → quill-editor-DcZd_lqh.js} +2 -2
  16. package/dist/{quill-editor-BwfQqajZ.js.map → quill-editor-DcZd_lqh.js.map} +1 -1
  17. package/dist/quill-editor-preview-DghpeKpg.js +2 -0
  18. package/dist/quill-editor-preview-DghpeKpg.js.map +1 -0
  19. package/dist/{tree-CgxZzCGY.js → tree-BTa0bMPr.js} +2 -2
  20. package/dist/{tree-CgxZzCGY.js.map → tree-BTa0bMPr.js.map} +1 -1
  21. package/dist/xlsx-util-CQaOn5OK.js +105 -0
  22. package/dist/xlsx-util-CQaOn5OK.js.map +1 -0
  23. package/es/_virtual/FileSaver.min.mjs +3 -0
  24. package/es/_virtual/index12.mjs +2 -2
  25. package/es/_virtual/index14.mjs +2 -2
  26. package/es/common/action-group/action-group.css +1 -1
  27. package/es/common/action-toolbar/action-toolbar.css +1 -1
  28. package/es/common/add-btn/add-btn.css +1 -1
  29. package/es/common/button-list/button-list.css +1 -1
  30. package/es/common/cropping/cropping.css +1 -1
  31. package/es/common/date-range-picker/components/range-picker/range-picker.css +1 -1
  32. package/es/common/date-range-picker/components/single-picker/single-picker.css +1 -1
  33. package/es/common/date-range-picker/date-range-picker.css +1 -1
  34. package/es/common/emoji-select/components/categories/categories.css +1 -1
  35. package/es/common/emoji-select/components/category-label/category-label.css +1 -1
  36. package/es/common/emoji-select/components/emoji-item/emoji-item.css +1 -1
  37. package/es/common/emoji-select/components/emoji-list/emoji-list.css +1 -1
  38. package/es/common/emoji-select/emoji-select.css +1 -1
  39. package/es/common/fullscreen-header/fullscreen-header.css +1 -1
  40. package/es/common/md-advaned-searchform/md-advaned-searchform.css +1 -1
  41. package/es/common/md-sort-setting/md-sort-setting.css +1 -1
  42. package/es/common/preset-view-back/preset-view-back.css +1 -1
  43. package/es/common/rawitem/rawitem.css +1 -1
  44. package/es/common/split/split.css +1 -1
  45. package/es/common/split-trigger/split-trigger.css +1 -1
  46. package/es/common/tab-layout/tab-default-layout/tab-default-layout.css +1 -1
  47. package/es/common/tab-layout/tab-default-layout/tab-default-layout.mjs +1 -0
  48. package/es/common/tab-layout/tab-dropdown/tab-dropdown-list-content.css +1 -1
  49. package/es/common/tab-layout/tab-dropdown/tab-dropdown.css +1 -1
  50. package/es/common/tab-layout/tab-flow-layout/tab-flow-layout.css +1 -1
  51. package/es/common/tab-layout/tab-layout.css +1 -1
  52. package/es/common/tab-layout/tab-sidebar-layout/tab-sidebar-layout.css +1 -1
  53. package/es/common/view-message/view-message.mjs +1 -1
  54. package/es/control/app-menu/app-menu.css +1 -1
  55. package/es/control/app-menu/app-menu.mjs +2 -2
  56. package/es/control/app-menu-icon-view/app-menu-icon-view.css +1 -1
  57. package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +2 -2
  58. package/es/control/app-menu-list-view/app-menu-list-view.css +1 -1
  59. package/es/control/calendar/calendar.css +1 -1
  60. package/es/control/calendar/calendar.mjs +1 -1
  61. package/es/control/caption-bar/caption-bar.css +1 -1
  62. package/es/control/dashboard/custom-dashboard-design/custom-dashboard-design.css +1 -1
  63. package/es/control/dashboard/dashboard.css +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 -1
  66. package/es/control/data-view/data-view.css +1 -1
  67. package/es/control/drbar/drbar.css +1 -1
  68. package/es/control/drtab/drtab.controller.mjs +1 -1
  69. package/es/control/drtab/drtab.css +1 -1
  70. package/es/control/form/edit-form/edit-form.css +1 -1
  71. package/es/control/form/form/form.css +1 -1
  72. package/es/control/form/form-detail/form-button/form-button.css +1 -1
  73. package/es/control/form/form-detail/form-button-list/form-button-list.css +1 -1
  74. package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
  75. package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
  76. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  77. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +3 -3
  78. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  79. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +0 -1
  80. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +2 -19
  81. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
  82. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +7 -0
  83. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -0
  84. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +239 -0
  85. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
  86. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  87. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  88. package/es/control/form/form-detail/form-page/form-page-item/form-page-item.css +1 -1
  89. package/es/control/form/form-detail/form-page/form-page.css +1 -1
  90. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  91. package/es/control/list/list/list.css +0 -1
  92. package/es/control/list/list/list.mjs +20 -121
  93. package/es/control/list/md-ctrl/md-ctrl.css +1 -1
  94. package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
  95. package/es/control/search-bar/search-bar.css +1 -1
  96. package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
  97. package/es/control/toolbar/toolbar-render-util.mjs +4 -0
  98. package/es/control/toolbar/toolbar.css +1 -1
  99. package/es/control/tree/tree.css +1 -1
  100. package/es/control/wizard-panel/wizard-panel.css +1 -1
  101. package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
  102. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
  103. package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.css +1 -1
  104. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
  105. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.css +1 -1
  106. package/es/editor/common/data-mpicker/ibiz-data-mpicker.css +1 -1
  107. package/es/editor/common/right-icon/right-icon.css +1 -1
  108. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  109. package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
  110. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
  111. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
  112. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -1
  113. package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
  114. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
  115. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  116. package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -1
  117. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  118. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +18 -9
  119. package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
  120. package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.mjs +8 -1
  121. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -1
  122. package/es/editor/html/quill-editor/quill-editor.css +1 -1
  123. package/es/editor/html/quill-editor-preview/quill-editor-preview.css +1 -1
  124. package/es/editor/html/quill-editor-preview/quill-editor-preview.mjs +4 -3
  125. package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -1
  126. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  127. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +3 -1
  128. package/es/editor/not-supported-editor/not-supported-editor.css +1 -1
  129. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.css +1 -1
  130. package/es/editor/qrcode/ibiz-qrcode/ibiz-qrcode.css +1 -1
  131. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
  132. package/es/editor/rate/ibiz-rate/ibiz-rate.css +1 -1
  133. package/es/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
  134. package/es/editor/slider/ibiz-slider/ibiz-slider.css +1 -1
  135. package/es/editor/span/span/span.css +1 -1
  136. package/es/editor/span/span-link/span-link.css +1 -1
  137. package/es/editor/stepper/ibiz-stepper/ibiz-stepper.css +1 -1
  138. package/es/editor/switch/ibiz-switch/ibiz-switch.css +1 -1
  139. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
  140. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
  141. package/es/editor/text-box/input/input.css +1 -1
  142. package/es/editor/text-box/input/input.mjs +33 -2
  143. package/es/editor/text-box/signature/signature.css +1 -1
  144. package/es/editor/text-box/signature/signature.mjs +1 -1
  145. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
  146. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
  147. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -1
  148. package/es/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
  149. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
  150. package/es/ibiz-vue3.mjs +1 -0
  151. package/es/index.mjs +3 -0
  152. package/es/locale/en/index.mjs +32 -0
  153. package/es/locale/zh-CN/index.mjs +35 -1
  154. package/es/mob-app/components/modal-router-shell/modal-router-shell.mjs +2 -2
  155. package/es/mob-app/guard/auth-guard/auth-guard.mjs +206 -194
  156. package/es/mob-app/guard/auth-guard/dyna-auth-guard.mjs +65 -0
  157. package/es/mob-app/guard/index.mjs +1 -0
  158. package/es/mob-app/index.mjs +1 -0
  159. package/es/mob-app/main.mjs +14 -1
  160. package/es/mob-app/router/index.mjs +6 -4
  161. package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +1 -1
  162. 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 +4425 -0
  163. package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
  164. package/es/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.mjs +15 -0
  165. package/es/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +24580 -0
  166. package/es/panel-component/async-action/async-action/async-action.css +1 -1
  167. package/es/panel-component/async-action/async-action-preview/async-action-preview.css +1 -1
  168. package/es/panel-component/async-action/async-action-tab/async-action-tab.css +1 -1
  169. package/es/panel-component/async-action/mob-async-action.css +1 -1
  170. package/es/panel-component/auth-sso/auth-sso.css +1 -1
  171. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  172. package/es/panel-component/index.mjs +2 -0
  173. package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
  174. package/es/panel-component/panel-button/panel-button.css +1 -1
  175. package/es/panel-component/panel-tab-panel/panel-tab-panel.css +1 -1
  176. package/es/panel-component/setting-container/setting-container.css +1 -1
  177. package/es/panel-component/theme-toggling/index.mjs +15 -0
  178. package/es/panel-component/theme-toggling/theme-toggling.controller.mjs +90 -0
  179. package/es/panel-component/theme-toggling/theme-toggling.css +1 -0
  180. package/es/panel-component/theme-toggling/theme-toggling.mjs +72 -0
  181. package/es/panel-component/theme-toggling/theme-toggling.provider.mjs +21 -0
  182. package/es/panel-component/theme-toggling/theme-toggling.state.mjs +22 -0
  183. package/es/panel-component/user-message/common/internal-message-container/internal-message-container.css +1 -1
  184. package/es/panel-component/user-message/common/internal-message-default/internal-message-default.css +1 -1
  185. package/es/panel-component/user-message/internal-message-text/internal-message-text.css +1 -1
  186. package/es/panel-component/user-message/user-message.css +1 -1
  187. package/es/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  188. package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +18 -4
  189. package/es/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
  190. package/es/panel-component/wf-action-button/wf-action-button.css +1 -1
  191. package/es/panel-component/wf-step-trace/wf-step-trace.css +1 -1
  192. package/es/util/ai-chat-util/ai-chat-util.mjs +932 -0
  193. package/es/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
  194. package/es/util/ai-chat-util/ai-feedback/ai-feedback.mjs +140 -0
  195. package/es/util/app-drawer/app-drawer-component.mjs +7 -17
  196. package/es/util/app-modal/app-modal-component.mjs +4 -2
  197. package/es/util/app-util/app-util.mjs +76 -6
  198. package/es/util/index.mjs +2 -0
  199. package/es/util/list-util/list-render-util.mjs +1 -2
  200. package/es/util/user-route-util/user-route-util.mjs +55 -0
  201. package/es/util/xlsx-util/xlsx-util.mjs +163 -0
  202. package/es/view/portal-view/portal-view.mjs +3 -2
  203. package/es/view-engine/mob-calendar-view.engine.mjs +4 -0
  204. package/es/view-engine/mob-pickup-md-view.engine.mjs +1 -0
  205. package/lib/_virtual/FileSaver.min.cjs +5 -0
  206. package/lib/_virtual/index12.cjs +2 -2
  207. package/lib/_virtual/index14.cjs +2 -2
  208. package/lib/common/action-group/action-group.css +1 -1
  209. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  210. package/lib/common/add-btn/add-btn.css +1 -1
  211. package/lib/common/button-list/button-list.css +1 -1
  212. package/lib/common/cropping/cropping.css +1 -1
  213. package/lib/common/date-range-picker/components/range-picker/range-picker.css +1 -1
  214. package/lib/common/date-range-picker/components/single-picker/single-picker.css +1 -1
  215. package/lib/common/date-range-picker/date-range-picker.css +1 -1
  216. package/lib/common/emoji-select/components/categories/categories.css +1 -1
  217. package/lib/common/emoji-select/components/category-label/category-label.css +1 -1
  218. package/lib/common/emoji-select/components/emoji-item/emoji-item.css +1 -1
  219. package/lib/common/emoji-select/components/emoji-list/emoji-list.css +1 -1
  220. package/lib/common/emoji-select/emoji-select.css +1 -1
  221. package/lib/common/fullscreen-header/fullscreen-header.css +1 -1
  222. package/lib/common/md-advaned-searchform/md-advaned-searchform.css +1 -1
  223. package/lib/common/md-sort-setting/md-sort-setting.css +1 -1
  224. package/lib/common/preset-view-back/preset-view-back.css +1 -1
  225. package/lib/common/rawitem/rawitem.css +1 -1
  226. package/lib/common/split/split.css +1 -1
  227. package/lib/common/split-trigger/split-trigger.css +1 -1
  228. package/lib/common/tab-layout/tab-default-layout/tab-default-layout.cjs +1 -0
  229. package/lib/common/tab-layout/tab-default-layout/tab-default-layout.css +1 -1
  230. package/lib/common/tab-layout/tab-dropdown/tab-dropdown-list-content.css +1 -1
  231. package/lib/common/tab-layout/tab-dropdown/tab-dropdown.css +1 -1
  232. package/lib/common/tab-layout/tab-flow-layout/tab-flow-layout.css +1 -1
  233. package/lib/common/tab-layout/tab-layout.css +1 -1
  234. package/lib/common/tab-layout/tab-sidebar-layout/tab-sidebar-layout.css +1 -1
  235. package/lib/common/view-message/view-message.cjs +1 -1
  236. package/lib/control/app-menu/app-menu.cjs +2 -2
  237. package/lib/control/app-menu/app-menu.css +1 -1
  238. package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +2 -2
  239. package/lib/control/app-menu-icon-view/app-menu-icon-view.css +1 -1
  240. package/lib/control/app-menu-list-view/app-menu-list-view.css +1 -1
  241. package/lib/control/calendar/calendar.cjs +1 -1
  242. package/lib/control/calendar/calendar.css +1 -1
  243. package/lib/control/caption-bar/caption-bar.css +1 -1
  244. package/lib/control/dashboard/custom-dashboard-design/custom-dashboard-design.css +1 -1
  245. package/lib/control/dashboard/dashboard.css +1 -1
  246. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +4 -1
  247. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  248. package/lib/control/data-view/data-view.css +1 -1
  249. package/lib/control/drbar/drbar.css +1 -1
  250. package/lib/control/drtab/drtab.controller.cjs +1 -1
  251. package/lib/control/drtab/drtab.css +1 -1
  252. package/lib/control/form/edit-form/edit-form.css +1 -1
  253. package/lib/control/form/form/form.css +1 -1
  254. package/lib/control/form/form-detail/form-button/form-button.css +1 -1
  255. package/lib/control/form/form-detail/form-button-list/form-button-list.css +1 -1
  256. package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
  257. package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
  258. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -3
  259. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  260. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  261. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -18
  262. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +0 -1
  263. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
  264. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +7 -0
  265. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +241 -0
  266. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -0
  267. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
  268. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  269. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
  270. package/lib/control/form/form-detail/form-page/form-page-item/form-page-item.css +1 -1
  271. package/lib/control/form/form-detail/form-page/form-page.css +1 -1
  272. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  273. package/lib/control/list/list/list.cjs +19 -120
  274. package/lib/control/list/list/list.css +0 -1
  275. package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
  276. package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
  277. package/lib/control/search-bar/search-bar.css +1 -1
  278. package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
  279. package/lib/control/toolbar/toolbar-render-util.cjs +4 -0
  280. package/lib/control/toolbar/toolbar.css +1 -1
  281. package/lib/control/tree/tree.css +1 -1
  282. package/lib/control/wizard-panel/wizard-panel.css +1 -1
  283. package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
  284. package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
  285. package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.css +1 -1
  286. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
  287. package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.css +1 -1
  288. package/lib/editor/common/data-mpicker/ibiz-data-mpicker.css +1 -1
  289. package/lib/editor/common/right-icon/right-icon.css +1 -1
  290. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  291. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
  292. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
  293. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -1
  294. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
  295. package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
  296. package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
  297. package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  298. package/lib/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -1
  299. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +18 -9
  300. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  301. package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.cjs +8 -1
  302. package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
  303. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.css +1 -1
  304. package/lib/editor/html/quill-editor/quill-editor.css +1 -1
  305. package/lib/editor/html/quill-editor-preview/quill-editor-preview.cjs +4 -3
  306. package/lib/editor/html/quill-editor-preview/quill-editor-preview.css +1 -1
  307. package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -1
  308. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +3 -1
  309. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  310. package/lib/editor/not-supported-editor/not-supported-editor.css +1 -1
  311. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.css +1 -1
  312. package/lib/editor/qrcode/ibiz-qrcode/ibiz-qrcode.css +1 -1
  313. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
  314. package/lib/editor/rate/ibiz-rate/ibiz-rate.css +1 -1
  315. package/lib/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
  316. package/lib/editor/slider/ibiz-slider/ibiz-slider.css +1 -1
  317. package/lib/editor/span/span/span.css +1 -1
  318. package/lib/editor/span/span-link/span-link.css +1 -1
  319. package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.css +1 -1
  320. package/lib/editor/switch/ibiz-switch/ibiz-switch.css +1 -1
  321. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
  322. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
  323. package/lib/editor/text-box/input/input.cjs +32 -1
  324. package/lib/editor/text-box/input/input.css +1 -1
  325. package/lib/editor/text-box/signature/signature.cjs +1 -1
  326. package/lib/editor/text-box/signature/signature.css +1 -1
  327. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
  328. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
  329. package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -1
  330. package/lib/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
  331. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
  332. package/lib/ibiz-vue3.cjs +1 -0
  333. package/lib/index.cjs +7 -0
  334. package/lib/locale/en/index.cjs +32 -0
  335. package/lib/locale/zh-CN/index.cjs +35 -1
  336. package/lib/mob-app/components/modal-router-shell/modal-router-shell.cjs +2 -2
  337. package/lib/mob-app/guard/auth-guard/auth-guard.cjs +206 -194
  338. package/lib/mob-app/guard/auth-guard/dyna-auth-guard.cjs +67 -0
  339. package/lib/mob-app/guard/index.cjs +2 -0
  340. package/lib/mob-app/index.cjs +2 -0
  341. package/lib/mob-app/main.cjs +14 -1
  342. package/lib/mob-app/router/index.cjs +6 -4
  343. package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +1 -1
  344. 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 +4427 -0
  345. package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
  346. package/lib/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.cjs +20 -0
  347. package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.cjs +24599 -0
  348. package/lib/panel-component/async-action/async-action/async-action.css +1 -1
  349. package/lib/panel-component/async-action/async-action-preview/async-action-preview.css +1 -1
  350. package/lib/panel-component/async-action/async-action-tab/async-action-tab.css +1 -1
  351. package/lib/panel-component/async-action/mob-async-action.css +1 -1
  352. package/lib/panel-component/auth-sso/auth-sso.css +1 -1
  353. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  354. package/lib/panel-component/index.cjs +44 -42
  355. package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
  356. package/lib/panel-component/panel-button/panel-button.css +1 -1
  357. package/lib/panel-component/panel-tab-panel/panel-tab-panel.css +1 -1
  358. package/lib/panel-component/setting-container/setting-container.css +1 -1
  359. package/lib/panel-component/theme-toggling/index.cjs +20 -0
  360. package/lib/panel-component/theme-toggling/theme-toggling.cjs +74 -0
  361. package/lib/panel-component/theme-toggling/theme-toggling.controller.cjs +92 -0
  362. package/lib/panel-component/theme-toggling/theme-toggling.css +1 -0
  363. package/lib/panel-component/theme-toggling/theme-toggling.provider.cjs +23 -0
  364. package/lib/panel-component/theme-toggling/theme-toggling.state.cjs +24 -0
  365. package/lib/panel-component/user-message/common/internal-message-container/internal-message-container.css +1 -1
  366. package/lib/panel-component/user-message/common/internal-message-default/internal-message-default.css +1 -1
  367. package/lib/panel-component/user-message/internal-message-text/internal-message-text.css +1 -1
  368. package/lib/panel-component/user-message/user-message.css +1 -1
  369. package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +18 -4
  370. package/lib/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  371. package/lib/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
  372. package/lib/panel-component/wf-action-button/wf-action-button.css +1 -1
  373. package/lib/panel-component/wf-step-trace/wf-step-trace.css +1 -1
  374. package/lib/util/ai-chat-util/ai-chat-util.cjs +934 -0
  375. package/lib/util/ai-chat-util/ai-feedback/ai-feedback.cjs +142 -0
  376. package/lib/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
  377. package/lib/util/app-drawer/app-drawer-component.cjs +7 -17
  378. package/lib/util/app-modal/app-modal-component.cjs +4 -2
  379. package/lib/util/app-util/app-util.cjs +75 -5
  380. package/lib/util/index.cjs +5 -0
  381. package/lib/util/list-util/list-render-util.cjs +1 -2
  382. package/lib/util/user-route-util/user-route-util.cjs +58 -0
  383. package/lib/util/xlsx-util/xlsx-util.cjs +166 -0
  384. package/lib/view/portal-view/portal-view.cjs +3 -2
  385. package/lib/view-engine/mob-calendar-view.engine.cjs +4 -0
  386. package/lib/view-engine/mob-pickup-md-view.engine.cjs +1 -0
  387. package/package.json +12 -9
  388. package/dist/ibiz-markdown-editor-DMe7ZdYW.js +0 -2
  389. package/dist/ibiz-markdown-editor-DMe7ZdYW.js.map +0 -1
  390. package/dist/index-B0eDJ8A4.js +0 -2
  391. package/dist/index-B0eDJ8A4.js.map +0 -1
  392. package/dist/index-FB2X3Nyy.js +0 -76
  393. package/dist/index-FB2X3Nyy.js.map +0 -1
  394. package/dist/index-nqcMxJEO.js +0 -2
  395. package/dist/index-nqcMxJEO.js.map +0 -1
  396. package/dist/quill-editor-preview-Bj3EE5LD.js +0 -2
  397. package/dist/quill-editor-preview-Bj3EE5LD.js.map +0 -1
@@ -0,0 +1,142 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var vue3Util = require('@ibiz-template/vue3-util');
5
+ require('./ai-feedback.css');
6
+
7
+ "use strict";
8
+ function _isSlot(s) {
9
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
10
+ }
11
+ const AIFeedback = /* @__PURE__ */ vue.defineComponent({
12
+ name: "IBizAIFeedback",
13
+ props: {
14
+ content: {
15
+ type: String
16
+ },
17
+ modal: {
18
+ type: Object,
19
+ required: true
20
+ }
21
+ },
22
+ setup(props) {
23
+ const ns = vue3Util.useNamespace("ai-feedback");
24
+ const feedback = vue.reactive({
25
+ description: "",
26
+ feedbackItems: []
27
+ });
28
+ const FEEDBACK_CATEGORIES = [{
29
+ title: ibiz.i18n.t("util.aiChartUtil.regardingIssue"),
30
+ children: [ibiz.i18n.t("util.aiChartUtil.understandProblem"), ibiz.i18n.t("util.aiChartUtil.forgotContext"), ibiz.i18n.t("util.aiChartUtil.notFollowingRequire")]
31
+ }, {
32
+ title: ibiz.i18n.t("util.aiChartUtil.regardingResponse"),
33
+ children: [ibiz.i18n.t("util.aiChartUtil.incorrectAswer"), ibiz.i18n.t("util.aiChartUtil.logicalConfusion"), ibiz.i18n.t("util.aiChartUtil.poorTimeliness"), ibiz.i18n.t("util.aiChartUtil.poorReadability"), ibiz.i18n.t("util.aiChartUtil.incompleteAnswer"), ibiz.i18n.t("util.aiChartUtil.unprofessional")]
34
+ }, {
35
+ title: ibiz.i18n.t("util.aiChartUtil.report"),
36
+ children: [ibiz.i18n.t("util.aiChartUtil.pornographicVulgar"), ibiz.i18n.t("util.aiChartUtil.politicallySensitive"), ibiz.i18n.t("util.aiChartUtil.illegalCriminal"), ibiz.i18n.t("util.aiChartUtil.discriminationPrejudice"), ibiz.i18n.t("util.aiChartUtil.violationPrivacy"), ibiz.i18n.t("util.aiChartUtil.contentInfringement")]
37
+ }];
38
+ const onInitFeedback = () => {
39
+ feedback.feedbackItems = FEEDBACK_CATEGORIES.map((category) => ({
40
+ title: category.title,
41
+ value: void 0,
42
+ children: [...category.children]
43
+ }));
44
+ if (props.content) {
45
+ const contentArray = props.content.split(";").filter((item) => item.trim());
46
+ if (contentArray.length > 0) {
47
+ const feedbackValues = contentArray.slice(0, FEEDBACK_CATEGORIES.length);
48
+ feedbackValues.forEach((value, index) => {
49
+ feedback.feedbackItems[index].value = value;
50
+ });
51
+ const descriptionParts = contentArray.slice(FEEDBACK_CATEGORIES.length);
52
+ feedback.description = descriptionParts.join(";");
53
+ }
54
+ }
55
+ };
56
+ const onCancel = () => {
57
+ props.modal.dismiss();
58
+ };
59
+ const onConfirm = () => {
60
+ const contentArray = feedback.feedbackItems.map((item) => item.value || "").filter((item) => !!item);
61
+ contentArray.push(feedback.description);
62
+ props.modal.dismiss({
63
+ ok: true,
64
+ data: [{
65
+ feedbackContent: contentArray.join(";")
66
+ }]
67
+ });
68
+ };
69
+ vue.onMounted(() => {
70
+ onInitFeedback();
71
+ });
72
+ return {
73
+ ns,
74
+ feedback,
75
+ onCancel,
76
+ onConfirm
77
+ };
78
+ },
79
+ render() {
80
+ let _slot2, _slot3;
81
+ return vue.createVNode("div", {
82
+ "class": this.ns.b()
83
+ }, [vue.createVNode("div", {
84
+ "class": this.ns.e("header")
85
+ }, [vue.createVNode("div", {
86
+ "class": this.ns.em("header", "title")
87
+ }, [ibiz.i18n.t("util.aiChartUtil.feedback")]), vue.createVNode(vue.resolveComponent("van-icon"), {
88
+ "name": "cross",
89
+ "class": this.ns.em("header", "close-icon"),
90
+ "onClick": this.onCancel,
91
+ "title": ibiz.i18n.t("app.close")
92
+ }, null)]), vue.createVNode("div", {
93
+ "class": this.ns.e("content")
94
+ }, [this.feedback.feedbackItems.map((item) => {
95
+ let _slot;
96
+ return vue.createVNode("div", {
97
+ "class": this.ns.e("group")
98
+ }, [vue.createVNode("div", {
99
+ "class": this.ns.em("group", "title")
100
+ }, [item.title]), vue.createVNode(vue.resolveComponent("van-radio-group"), {
101
+ "class": this.ns.em("group", "container"),
102
+ "modelValue": item.value,
103
+ "onUpdate:modelValue": ($event) => item.value = $event
104
+ }, _isSlot(_slot = item.children.map((child) => {
105
+ return vue.createVNode(vue.resolveComponent("van-radio"), {
106
+ "class": this.ns.em("group", "item"),
107
+ "name": child
108
+ }, _isSlot(child) ? child : {
109
+ default: () => [child]
110
+ });
111
+ })) ? _slot : {
112
+ default: () => [_slot]
113
+ })]);
114
+ }), vue.createVNode("div", {
115
+ "class": this.ns.e("description")
116
+ }, [vue.createVNode("div", {
117
+ "class": this.ns.em("description", "title")
118
+ }, [ibiz.i18n.t("util.aiChartUtil.description")]), vue.createVNode(vue.resolveComponent("van-field"), {
119
+ "class": this.ns.em("description", "input"),
120
+ "rows": 3,
121
+ "type": "textarea",
122
+ "modelValue": this.feedback.description,
123
+ "onUpdate:modelValue": ($event) => this.feedback.description = $event,
124
+ "placeholder": ibiz.i18n.t("util.aiChartUtil.placeholder")
125
+ }, null)])]), vue.createVNode("div", {
126
+ "class": this.ns.e("footer")
127
+ }, [vue.createVNode(vue.resolveComponent("van-button"), {
128
+ "class": this.ns.em("footer", "button"),
129
+ "onClick": this.onCancel
130
+ }, _isSlot(_slot2 = ibiz.i18n.t("app.cancel")) ? _slot2 : {
131
+ default: () => [_slot2]
132
+ }), vue.createVNode(vue.resolveComponent("van-button"), {
133
+ "class": this.ns.em("footer", "button"),
134
+ "type": "primary",
135
+ "onClick": this.onConfirm
136
+ }, _isSlot(_slot3 = ibiz.i18n.t("app.confirm")) ? _slot3 : {
137
+ default: () => [_slot3]
138
+ })])]);
139
+ }
140
+ });
141
+
142
+ exports.AIFeedback = AIFeedback;
@@ -0,0 +1 @@
1
+ .ibiz-ai-feedback{--ibiz-ai-feedback-color-header-close-icon:var(--ibiz-color-text-3);--ibiz-ai-feedback-color-group-title:var(--ibiz-color-text-2);--ibiz-ai-feedback-color-description-input-border:var(--ibiz-color-border);--ibiz-ai-feedback-spacing-padding:var(--ibiz-spacing-base);--ibiz-ai-feedback-spacing-group-title-padding:var(--ibiz-spacing-tight) 0;--ibiz-ai-feedback-spacing-group-item-padding:var(--ibiz-spacing-tight);--ibiz-ai-feedback-spacing-description-title-padding:var(--ibiz-spacing-tight) 0;--ibiz-ai-feedback-spacing-description-input-padding:var(--ibiz-spacing-extra-tight);--ibiz-ai-feedback-height-max-height:90vh;--ibiz-ai-feedback-height-content-max-height:70vh;--ibiz-ai-feedback-height-header-min-height:var(--ibiz-height-control-default);--ibiz-ai-feedback-width-group-item:50%;--ibiz-ai-feedback-font-header-font-size:var(--ibiz-font-size-header-6);--ibiz-ai-feedback-font-header-close-icon-font-size:var(--ibiz-font-size-header-3);--ibiz-ai-feedback-font-content-font-size:var(--ibiz-font-size-regular);--ibiz-ai-feedback-radius-description-input-border-radius:var(--ibiz-border-radius-small);--ibiz-ai-feedback-gap:var(--ibiz-spacing-base-tight);--ibiz-ai-feedback-gap-footer:var(--ibiz-spacing-tight);display:flex;flex-direction:column;gap:var(--ibiz-ai-feedback-gap);max-height:var(--ibiz-ai-feedback-height-max-height);padding:var(--ibiz-ai-feedback-spacing-padding);overflow-y:hidden}.ibiz-ai-feedback__header{display:flex;align-items:center;justify-content:space-between;min-height:var(--ibiz-ai-feedback-height-header-min-height);font-size:var(--ibiz-ai-feedback-font-header-font-size)}.ibiz-ai-feedback__header--close-icon{font-size:var(--ibiz-ai-feedback-font-header-close-icon-font-size);color:var(--ibiz-ai-feedback-color-header-close-icon);cursor:pointer}.ibiz-ai-feedback__content{max-height:var(--ibiz-ai-feedback-height-content-max-height);overflow-y:auto;font-size:var(--ibiz-ai-feedback-font-content-font-size)}.ibiz-ai-feedback__content .ibiz-ai-feedback__group:first-child .ibiz-ai-feedback__group--title{padding-top:0}.ibiz-ai-feedback__group--title{padding:var(--ibiz-ai-feedback-spacing-group-title-padding);color:var(--ibiz-ai-feedback-color-group-title)}.ibiz-ai-feedback__group--container{display:flex;flex-wrap:wrap}.ibiz-ai-feedback__group--item{width:var(--ibiz-ai-feedback-width-group-item);padding:var(--ibiz-ai-feedback-spacing-group-item-padding)}.ibiz-ai-feedback__description--title{padding:var(--ibiz-ai-feedback-spacing-description-title-padding)}.ibiz-ai-feedback__description--input{border:1px solid var(--ibiz-ai-feedback-color-description-input-border);border-radius:var(--ibiz-ai-feedback-radius-description-input-border-radius)}.ibiz-ai-feedback__description--input.van-cell{padding:var(--ibiz-ai-feedback-spacing-description-input-padding);font-size:inherit}.ibiz-ai-feedback__footer{display:flex;gap:var(--ibiz-ai-feedback-gap-footer);justify-content:space-between}.ibiz-ai-feedback__footer--button{flex:1}
@@ -41,22 +41,9 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
41
41
  const present = () => {
42
42
  isShow.value = true;
43
43
  };
44
- let direction = "";
45
- switch (props.opts.placement) {
46
- case "left":
47
- direction = "left";
48
- break;
49
- case "top":
50
- direction = "top";
51
- break;
52
- case "bottom":
53
- direction = "bottom";
54
- break;
55
- default:
56
- direction = "right";
57
- }
44
+ const direction = props.opts.placement || "right";
58
45
  const customStyle = vue.reactive({
59
- height: "80%"
46
+ height: "100%"
60
47
  });
61
48
  const {
62
49
  width,
@@ -68,6 +55,8 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
68
55
  } else {
69
56
  customStyle.width = width;
70
57
  }
58
+ } else if (["left", "right"].includes(direction)) {
59
+ customStyle.width = "30%";
71
60
  }
72
61
  if (height) {
73
62
  if (lodashEs.isNumber(height)) {
@@ -75,6 +64,8 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
75
64
  } else {
76
65
  customStyle.height = height;
77
66
  }
67
+ } else if (["top", "bottom"].includes(direction)) {
68
+ customStyle.height = "30%";
78
69
  }
79
70
  return {
80
71
  ns,
@@ -92,9 +83,8 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
92
83
  return vue.createVNode(vue.resolveComponent("van-popup"), vue.mergeProps({
93
84
  "show": this.isShow,
94
85
  "onUpdate:show": ($event) => this.isShow = $event,
95
- "lock-scroll": true,
86
+ "lock-scroll": false,
96
87
  "round": true,
97
- "closeable": true,
98
88
  "close-on-popstate": true,
99
89
  "close-icon-position": "top-left",
100
90
  "class": this.ns.b(),
@@ -35,12 +35,12 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
35
35
  if (width) {
36
36
  customStyle.width = lodashEs.isNumber(width) ? core.calcOpenModeStyle(width, "modal") : width;
37
37
  } else {
38
- customStyle.width = "100vw";
38
+ customStyle.width = "60vw";
39
39
  }
40
40
  if (height) {
41
41
  customStyle.height = lodashEs.isNumber(height) ? core.calcOpenModeStyle(height, "modal") : height;
42
42
  } else {
43
- customStyle.height = "100vh";
43
+ customStyle.height = "60vh";
44
44
  }
45
45
  const options = vue.ref({
46
46
  footerHide: true,
@@ -109,11 +109,13 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
109
109
  }
110
110
  return vue.createVNode(vue.resolveComponent("van-dialog"), vue.mergeProps({
111
111
  "show": this.isShow,
112
+ "lockScroll": false,
112
113
  "close-on-popstate": true,
113
114
  "showConfirmButton": false,
114
115
  "class": [this.ns.b(), this.options.placement && this.ns.m(this.options.placement), this.options.modalClass],
115
116
  "style": this.customStyle,
116
117
  "overlay": this.options.overlay,
118
+ "close-on-click-overlay": true,
117
119
  "before-close": this.onBeforeClose
118
120
  }, this.options), _isSlot(slots) ? slots : {
119
121
  default: () => [slots]
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var core = require('@ibiz-template/core');
3
+ var runtime = require('@ibiz-template/runtime');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
5
 
6
6
  "use strict";
@@ -190,8 +190,75 @@ class AppUtil {
190
190
  * @return {*} {Promise<IChatMessage[]>}
191
191
  * @memberof AppUtil
192
192
  */
193
- async openAiChat(params) {
194
- throw new core.RuntimeError(ibiz.i18n.t("app.noSupport"));
193
+ async openAiChat(chartParams) {
194
+ const {
195
+ data,
196
+ view,
197
+ ctrl,
198
+ params,
199
+ context,
200
+ appDEACModeId,
201
+ appDataEntityId
202
+ } = chartParams;
203
+ const deACMode = await runtime.getDeACMode(
204
+ appDEACModeId,
205
+ appDataEntityId,
206
+ context.srfappid
207
+ );
208
+ if (!deACMode)
209
+ return Promise.resolve([]);
210
+ const chatInstance = await ibiz.aiChatUtil.getAIChat();
211
+ const appDataEntityName = runtime.calcDeCodeNameById(appDataEntityId);
212
+ let topicId = `mob@${appDataEntityId}@${appDEACModeId}@`;
213
+ topicId += context[appDataEntityName] ? context[appDataEntityName] : "default";
214
+ const sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId);
215
+ const topicCaption = `[${deACMode.logicName}]${(data == null ? void 0 : data.srfmajortext) || ""}`;
216
+ const tempParams = { ...params, ...{ srfactag: deACMode.codeName } };
217
+ const { zIndex } = vue3Util.useUIStore();
218
+ const containerZIndex = zIndex.increment();
219
+ const { containerOptions, topicOptions, chatOptions } = await ibiz.aiChatUtil.getUIActionExAIChatParams(
220
+ context,
221
+ params,
222
+ data,
223
+ deACMode,
224
+ { chatInstance, view, ctrl }
225
+ );
226
+ const resourceOptions = await ibiz.aiChatUtil.getAIResourceOptions(
227
+ context,
228
+ params
229
+ );
230
+ return new Promise((resolve) => {
231
+ chatInstance.create({
232
+ mode: "TOPIC",
233
+ resourceOptions,
234
+ containerOptions: {
235
+ zIndex: containerZIndex,
236
+ enableBackFill: false,
237
+ ...containerOptions
238
+ },
239
+ topicOptions: {
240
+ appid: ibiz.env.appId,
241
+ id: topicId,
242
+ caption: topicCaption,
243
+ url: window.location.hash.substring(1),
244
+ type: context.srftopicpath || "default",
245
+ ...topicOptions
246
+ },
247
+ chatOptions: {
248
+ caption: deACMode.logicName,
249
+ context: { ...context },
250
+ params: tempParams,
251
+ appDataEntityId,
252
+ sessionid,
253
+ // 扩展参数
254
+ ...chatOptions,
255
+ // 关闭回调
256
+ closed: (context2, params2, messages) => {
257
+ resolve(messages);
258
+ }
259
+ }
260
+ });
261
+ });
195
262
  }
196
263
  /**
197
264
  * @description 当前路由转换成路由路径对象
@@ -207,8 +274,11 @@ class AppUtil {
207
274
  * }}
208
275
  * @memberof AppUtil
209
276
  */
210
- route2routeObject(isRouteModal) {
211
- const routePath = vue3Util.route2routePath(this.router.currentRoute.value);
277
+ route2routeObject(isRouteModal = false) {
278
+ const routePath = vue3Util.route2routePath(
279
+ this.router.currentRoute.value,
280
+ isRouteModal
281
+ );
212
282
  return routePath;
213
283
  }
214
284
  /**
@@ -16,6 +16,8 @@ var usePopstateUtil = require('./use-popstate-util/use-popstate-util.cjs');
16
16
  var qrcodeUtil = require('./qrcode-util/qrcode-util.cjs');
17
17
  var buttonUtil = require('./button-util/button-util.cjs');
18
18
  var listRenderUtil = require('./list-util/list-render-util.cjs');
19
+ var userRouteUtil = require('./user-route-util/user-route-util.cjs');
20
+ var aiChatUtil = require('./ai-chat-util/ai-chat-util.cjs');
19
21
  var viewStack = require('./store/view-stack/view-stack.cjs');
20
22
 
21
23
  "use strict";
@@ -35,5 +37,8 @@ exports.usePopstateListener = usePopstateUtil.usePopstateListener;
35
37
  exports.QrcodeUtil = qrcodeUtil.QrcodeUtil;
36
38
  exports.convertBtnType = buttonUtil.convertBtnType;
37
39
  exports.useListRender = listRenderUtil.useListRender;
40
+ exports.splitPathToSegments = userRouteUtil.splitPathToSegments;
41
+ exports.validateRouteSegments = userRouteUtil.validateRouteSegments;
42
+ exports.AIChatUtil = aiChatUtil.AIChatUtil;
38
43
  exports.calcUniqueKey = viewStack.calcUniqueKey;
39
44
  exports.useViewStack = viewStack.useViewStack;
@@ -201,9 +201,8 @@ function useListRender(props, c, ns) {
201
201
  "onUpdate:error": ($event) => isLoadError.value = $event,
202
202
  "offset": 50,
203
203
  "finished": isLodeFinished.value,
204
- "immediate-check": false,
205
204
  "loading-text": ibiz.i18n.t("control.common.loadMore"),
206
- "finished-text": ibiz.i18n.t("control.common.loadFinish"),
205
+ "finished-text": c.state.totalPages === 1 ? "" : ibiz.i18n.t("control.common.loadFinish"),
207
206
  "error-text": ibiz.i18n.t("control.common.loadError"),
208
207
  "onLoad": () => c.loadMore()
209
208
  }, {
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+
3
+ "use strict";
4
+ const splitPathToSegments = (path) => {
5
+ const segments = [];
6
+ let currentSegment = "";
7
+ let parenCount = 0;
8
+ for (let i = 0; i < path.length; i++) {
9
+ const char = path[i];
10
+ if (char === "/") {
11
+ if (parenCount === 0) {
12
+ if (currentSegment) {
13
+ segments.push(currentSegment);
14
+ currentSegment = "";
15
+ }
16
+ continue;
17
+ } else {
18
+ currentSegment += char;
19
+ }
20
+ } else {
21
+ if (char === "(") {
22
+ parenCount += 1;
23
+ } else if (char === ")") {
24
+ parenCount -= 1;
25
+ }
26
+ currentSegment += char;
27
+ }
28
+ }
29
+ if (currentSegment) {
30
+ segments.push(currentSegment);
31
+ }
32
+ return segments;
33
+ };
34
+ const validateRouteSegments = (segments) => {
35
+ if (segments.length < 3 || segments.length % 2 === 0) {
36
+ return false;
37
+ }
38
+ const paramReg = `:[^()]+\\(\\[\\^/\\]\\+=\\[\\^/\\]\\+\\|${ibiz.env.routePlaceholder}\\)`;
39
+ const viewReg = `[^=/]+`;
40
+ for (let i = 0; i < segments.length; i++) {
41
+ const segment = segments[i];
42
+ if (i % 2 === 0) {
43
+ const paramRegex = new RegExp(`^${paramReg}$`);
44
+ if (!paramRegex.test(segment) && segment !== ibiz.env.routePlaceholder) {
45
+ return false;
46
+ }
47
+ } else {
48
+ const viewRegex = new RegExp(`^${viewReg}$`);
49
+ if (!viewRegex.test(segment)) {
50
+ return false;
51
+ }
52
+ }
53
+ }
54
+ return true;
55
+ };
56
+
57
+ exports.splitPathToSegments = splitPathToSegments;
58
+ exports.validateRouteSegments = validateRouteSegments;
@@ -0,0 +1,166 @@
1
+ 'use strict';
2
+
3
+ var FileSaver_min = require('../../node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.cjs');
4
+ var xlsx = require('../../node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.cjs');
5
+
6
+ "use strict";
7
+ var __defProp = Object.defineProperty;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __publicField = (obj, key, value) => {
10
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
11
+ return value;
12
+ };
13
+ function dateNum(v, date1904 = false) {
14
+ if (date1904)
15
+ v += 1462;
16
+ const epoch = Date.parse(v);
17
+ return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1e3);
18
+ }
19
+ function sheetFromArrayOfArrays(data) {
20
+ const ws = {};
21
+ const range = {
22
+ s: {
23
+ c: 1e7,
24
+ r: 1e7
25
+ },
26
+ e: {
27
+ c: 0,
28
+ r: 0
29
+ }
30
+ };
31
+ for (let R = 0; R !== data.length; ++R) {
32
+ for (let C = 0; C !== data[R].length; ++C) {
33
+ if (range.s.r > R)
34
+ range.s.r = R;
35
+ if (range.s.c > C)
36
+ range.s.c = C;
37
+ if (range.e.r < R)
38
+ range.e.r = R;
39
+ if (range.e.c < C)
40
+ range.e.c = C;
41
+ const cell = {
42
+ v: data[R][C]
43
+ };
44
+ if (cell.v == null)
45
+ continue;
46
+ const cellRef = xlsx.utils.encode_cell({
47
+ c: C,
48
+ r: R
49
+ });
50
+ if (typeof cell.v === "number")
51
+ cell.t = "n";
52
+ else if (typeof cell.v === "boolean")
53
+ cell.t = "b";
54
+ else if (cell.v instanceof Date) {
55
+ cell.t = "n";
56
+ cell.z = xlsx.SSF._table[14];
57
+ cell.v = dateNum(cell.v);
58
+ } else
59
+ cell.t = "s";
60
+ ws[cellRef] = cell;
61
+ }
62
+ }
63
+ if (range.s.c < 1e7)
64
+ ws["!ref"] = xlsx.utils.encode_range(range);
65
+ return ws;
66
+ }
67
+ class Workbook {
68
+ constructor() {
69
+ __publicField(this, "SheetNames", []);
70
+ __publicField(this, "Sheets", {});
71
+ }
72
+ }
73
+ function s2ab(s) {
74
+ const buf = new ArrayBuffer(s.length);
75
+ const view = new Uint8Array(buf);
76
+ for (let i = 0; i !== s.length; ++i)
77
+ view[i] = s.charCodeAt(i) & 255;
78
+ return buf;
79
+ }
80
+ function exportJsonToExcel({
81
+ multiHeader = [],
82
+ header,
83
+ data,
84
+ filename,
85
+ merges = [],
86
+ autoWidth = true,
87
+ bookType = "xlsx"
88
+ }) {
89
+ filename = filename || "excel-list";
90
+ data = [...data];
91
+ data.unshift(header);
92
+ for (let i = multiHeader.length - 1; i > -1; i--) {
93
+ data.unshift(multiHeader[i]);
94
+ }
95
+ const wsName = "SheetJS";
96
+ const wb = new Workbook();
97
+ const ws = sheetFromArrayOfArrays(data);
98
+ if (merges.length > 0) {
99
+ if (!ws["!merges"])
100
+ ws["!merges"] = [];
101
+ merges.forEach((item) => {
102
+ ws["!merges"].push(xlsx.utils.decode_range(item));
103
+ });
104
+ }
105
+ if (autoWidth) {
106
+ const colWidth = data.map(
107
+ (row) => row.map((val) => {
108
+ if (val == null) {
109
+ return {
110
+ wch: 10
111
+ };
112
+ }
113
+ if (val.toString().charCodeAt(0) > 255) {
114
+ return {
115
+ wch: val.toString().length * 2
116
+ };
117
+ }
118
+ return {
119
+ wch: val.toString().length
120
+ };
121
+ })
122
+ );
123
+ const result = colWidth[0];
124
+ for (let i = 1; i < colWidth.length; i++) {
125
+ for (let j = 0; j < colWidth[i].length; j++) {
126
+ if (result[j].wch < colWidth[i][j].wch) {
127
+ result[j].wch = colWidth[i][j].wch;
128
+ }
129
+ }
130
+ }
131
+ ws["!cols"] = result;
132
+ }
133
+ wb.SheetNames.push(wsName);
134
+ wb.Sheets[wsName] = ws;
135
+ const wbOut = xlsx.write(wb, {
136
+ bookType,
137
+ bookSST: false,
138
+ type: "binary"
139
+ });
140
+ FileSaver_min.FileSaver_minExports.saveAs(
141
+ new Blob([s2ab(wbOut)], {
142
+ type: "application/octet-stream"
143
+ }),
144
+ `${filename}.${bookType}`
145
+ );
146
+ }
147
+ async function readExcelFile(file, sheetIndex) {
148
+ const readFile = (_file) => {
149
+ return new Promise((resolve) => {
150
+ const reader = new FileReader();
151
+ reader.readAsBinaryString(_file);
152
+ reader.onload = (ev) => {
153
+ var _a;
154
+ resolve((_a = ev.target) == null ? void 0 : _a.result);
155
+ };
156
+ });
157
+ };
158
+ let data = await readFile(file);
159
+ const workbook = xlsx.read(data, { type: "binary" });
160
+ const worksheet = workbook.Sheets[workbook.SheetNames[sheetIndex]];
161
+ data = xlsx.utils.sheet_to_json(worksheet);
162
+ return data;
163
+ }
164
+
165
+ exports.exportJsonToExcel = exportJsonToExcel;
166
+ exports.readExcelFile = readExcelFile;
@@ -58,7 +58,9 @@ const PortalView = /* @__PURE__ */ vue.defineComponent({
58
58
  const slotKey = ctrl.name || ctrl.id;
59
59
  const crtlProps = {
60
60
  context: this.c.context,
61
- params: this.c.params
61
+ params: this.c.params,
62
+ provider: this.c.providers[slotKey],
63
+ modelData: ctrl
62
64
  };
63
65
  if (this.c.slotProps[slotKey]) {
64
66
  Object.assign(crtlProps, this.c.slotProps[slotKey]);
@@ -75,7 +77,6 @@ const PortalView = /* @__PURE__ */ vue.defineComponent({
75
77
  slots[slotKey] = () => {
76
78
  const comp = vue.resolveComponent(provider.component);
77
79
  return vue.h(comp, {
78
- modelData: ctrl,
79
80
  ...crtlProps
80
81
  });
81
82
  };
@@ -4,6 +4,10 @@ var runtime = require('@ibiz-template/runtime');
4
4
 
5
5
  "use strict";
6
6
  class MobCalendarViewEngine extends runtime.MDViewEngine {
7
+ async onCreated() {
8
+ await super.onCreated();
9
+ this.view.model.loadDefault = false;
10
+ }
7
11
  }
8
12
 
9
13
  exports.MobCalendarViewEngine = MobCalendarViewEngine;
@@ -23,6 +23,7 @@ class PickupMDViewEngine extends runtime.MDViewEngine {
23
23
  this.view.slotProps.mdctrl.singleSelect = this.view.state.singleSelect;
24
24
  this.view.slotProps.mdctrl.selectedData = this.view.state.selectedData;
25
25
  this.view.slotProps.mdctrl.mode = "SELECT";
26
+ this.view.slotProps.mdctrl.mdctrlActiveMode = 2;
26
27
  }
27
28
  async onMounted() {
28
29
  await super.onMounted();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/mob-vue3-components",
3
- "version": "0.7.41-alpha.20",
3
+ "version": "0.7.41-alpha.22",
4
4
  "description": "移动端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -28,15 +28,16 @@
28
28
  "dependencies": {
29
29
  "@amap/amap-jsapi-loader": "^1.0.1",
30
30
  "@floating-ui/dom": "^1.5.3",
31
+ "@ibiz-template-plugin/ibiz-mob-ai-chat":"0.0.1",
31
32
  "@ibiz-template-package/vs-tree-ex": "0.2.1",
32
- "@ibiz-template/core": "0.7.41-alpha.35",
33
- "@ibiz-template/model-helper": "0.7.41-alpha.36",
34
- "@ibiz-template/runtime": "0.7.41-alpha.36",
33
+ "@ibiz-template/core": "0.7.41-alpha.53",
34
+ "@ibiz-template/model-helper": "0.7.41-alpha.53",
35
+ "@ibiz-template/runtime": "0.7.41-alpha.53",
35
36
  "@ibiz-template/theme": "0.7.39",
36
- "@ibiz-template/vue3-util": "0.7.41-alpha.36",
37
+ "@ibiz-template/vue3-util": "0.7.41-alpha.53",
37
38
  "@ibiz-template/devtool": "0.0.13",
38
- "@ibiz/model-core": "^0.1.83",
39
- "@ibiz-template/mob-theme": "4.0.0",
39
+ "@ibiz/model-core": "^0.1.84",
40
+ "@ibiz-template/mob-theme": "4.2.0",
40
41
  "async-validator": "^4.2.5",
41
42
  "cherry-markdown": "^0.8.26",
42
43
  "dingtalk-jsapi": "^3.0.38",
@@ -55,7 +56,9 @@
55
56
  "vue-router": "^4.2.5",
56
57
  "qr-code-styling": "^1.8.3",
57
58
  "vuedraggable": "^4.1.0",
58
- "vue-qrcode-reader": "5.5.11"
59
+ "vue-qrcode-reader": "5.5.11",
60
+ "file-saver": "^2.0.5",
61
+ "xlsx": "^0.18.5"
59
62
  },
60
63
  "devDependencies": {
61
64
  "@commitlint/cli": "^18.4.1",
@@ -78,7 +81,7 @@
78
81
  "@ibiz-template/runtime": "^0.7.0",
79
82
  "@ibiz-template/theme": "^0.7.0",
80
83
  "@ibiz-template/vue3-util": "^0.7.0",
81
- "@ibiz/model-core": "^0.1.83",
84
+ "@ibiz/model-core": "^0.1.84",
82
85
  "async-validator": "^4.2.5",
83
86
  "dayjs": "^1.11.9",
84
87
  "echarts": "^5.4.3",