@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.
- package/dist/chart-CVnUjHjl.js +2 -0
- package/dist/{chart-j1WkpBhc.js.map → chart-CVnUjHjl.js.map} +1 -1
- package/dist/ibiz-markdown-editor-MwEhH1r_.js +2 -0
- package/dist/ibiz-markdown-editor-MwEhH1r_.js.map +1 -0
- package/dist/index-CopTozpr.js +2 -0
- package/dist/{index-ChdHGLJI.js.map → index-CopTozpr.js.map} +1 -1
- package/dist/index-Cxv8dJIk.js +2 -0
- package/dist/index-Cxv8dJIk.js.map +1 -0
- package/dist/index-DV0pS0zU.js +2 -0
- package/dist/{index-Dd7yiMzY.js.map → index-DV0pS0zU.js.map} +1 -1
- package/dist/index.min.css +8 -8
- package/dist/index.system.min.js +1 -1
- package/dist/quill-CeDXLpcJ.js +2 -0
- package/dist/{quill-BOA7ZLOz.js.map → quill-CeDXLpcJ.js.map} +1 -1
- package/dist/quill-editor-C5mEMG93.js +2 -0
- package/dist/quill-editor-C5mEMG93.js.map +1 -0
- package/dist/quill-editor-preview-BPS9uMa7.js +2 -0
- package/dist/{quill-editor-preview-DghpeKpg.js.map → quill-editor-preview-BPS9uMa7.js.map} +1 -1
- package/dist/tree-SAqvldtV.js +2 -0
- package/dist/{tree-BTa0bMPr.js.map → tree-SAqvldtV.js.map} +1 -1
- package/dist/xlsx-util-b5CesqYd.js +3 -0
- package/dist/xlsx-util-b5CesqYd.js.map +1 -0
- package/es/_virtual/index12.mjs +2 -2
- package/es/_virtual/index13.mjs +2 -2
- package/es/common/action-group/action-group.css +1 -1
- package/es/common/action-group/action-group.mjs +44 -43
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.mjs +16 -25
- package/es/common/col/col.mjs +1 -1
- package/es/common/cropping/cropping.mjs +5 -5
- package/es/common/date-range-picker/components/range-picker/range-picker.mjs +2 -4
- package/es/common/date-range-picker/components/single-picker/single-picker.mjs +2 -4
- package/es/common/date-range-picker/date-range-picker.mjs +2 -2
- package/es/common/emoji-select/components/emoji-item/emoji-item.mjs +4 -4
- package/es/common/emoji-select/components/emoji-list/emoji-list.mjs +1 -1
- package/es/common/emoji-select/icons/categories.mjs +9 -57
- package/es/common/float-button/float-button.css +1 -1
- package/es/common/float-button/float-button.mjs +12 -7
- package/es/common/keep-alive/keep-alive.mjs +2 -2
- package/es/common/keep-alive/scheduler.mjs +1 -1
- package/es/common/preview-image/preview-image.mjs +4 -4
- package/es/common/rawitem/rawitem.mjs +2 -2
- package/es/common/row/row.mjs +1 -1
- package/es/common/split/split.mjs +9 -9
- package/es/common/split-trigger/split-trigger.mjs +1 -1
- package/es/common/tab-layout/tab-dropdown/tab-dropdown.mjs +1 -1
- package/es/control/app-menu/app-menu.mjs +1 -1
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -1
- package/es/control/app-menu/menu-render-util.mjs +2 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +1 -1
- package/es/control/app-menu-icon-view/index.mjs +1 -1
- package/es/control/app-menu-list-view/app-menu-list-view.mjs +1 -1
- package/es/control/app-menu-list-view/index.mjs +1 -1
- package/es/control/calendar/calendar.mjs +6 -6
- package/es/control/caption-bar/caption-bar.mjs +1 -1
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/dashboard.mjs +3 -1
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +4 -4
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +1 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +7 -7
- package/es/control/drbar/drbar.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +1 -1
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/form/edit-form/edit-form.mjs +1 -1
- package/es/control/form/form/form.mjs +2 -2
- package/es/control/form/form-detail/form-button/form-button.css +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +6 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +2 -2
- package/es/control/form/search-form/search-form.mjs +1 -1
- package/es/control/list/list/list.mjs +1 -1
- package/es/control/list/md-ctrl/md-ctrl.css +1 -1
- package/es/control/list/md-ctrl/md-ctrl.mjs +2 -2
- package/es/control/pickup-view-panel/pickup-view-panel.mjs +1 -1
- package/es/control/search-bar/filter-field-select/filter-field-select.mjs +1 -1
- package/es/control/search-bar/filter-mode-select/filter-mode-select.mjs +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +10 -6
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +1 -1
- package/es/control/toolbar/float-toolbar/float-toolbar.css +1 -1
- package/es/control/toolbar/float-toolbar/float-toolbar.mjs +13 -7
- package/es/control/toolbar/toolbar-render-util.mjs +55 -32
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/control/tree/tree.mjs +9 -9
- package/es/control/tree-exp-bar/tree-exp-bar.mjs +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +6 -6
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +2 -2
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +7 -7
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +1 -1
- package/es/editor/html/html-editor.controller.mjs +26 -9
- package/es/editor/html/quill-editor/quill-editor.mjs +12 -3
- package/es/editor/html/quill-editor-preview/quill-editor-preview.mjs +4 -4
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +12 -3
- package/es/editor/markdown/markdown-editor.controller.mjs +23 -3
- package/es/editor/qrcode/ibiz-qrcode/ibiz-qrcode.mjs +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +2 -2
- package/es/editor/span/span/span.mjs +7 -7
- package/es/editor/span/span-link/span-link.mjs +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
- package/es/editor/text-box/input/input.mjs +4 -4
- package/es/editor/text-box/signature/signature.mjs +59 -19
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.mjs +18 -1
- package/es/editor/upload/use/use-van-upload.mjs +6 -2
- package/es/index.mjs +2 -1
- package/es/locale/en/index.mjs +26 -23
- package/es/locale/zh-CN/index.mjs +3 -0
- package/es/mob-app/App.mjs +10 -1
- package/es/mob-app/components/modal-router-shell/modal-router-shell.mjs +6 -4
- package/es/mob-app/components/router-shell/router-shell.mjs +1 -1
- package/es/mob-app/guard/auth-guard/auth-guard.mjs +2 -2
- package/es/mob-app/guard/auth-guard/dyna-auth-guard.mjs +2 -2
- package/es/mob-app/main.mjs +3 -1
- package/es/mob-app/router/index.mjs +131 -76
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +5 -5
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.mjs +1 -1
- package/es/panel-component/async-action/async-action/async-action.mjs +2 -2
- package/es/panel-component/async-action/async-action-preview/async-action-preview.mjs +3 -3
- package/es/panel-component/async-action/async-action-result/async-action-result.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +2 -2
- package/es/panel-component/panel-app-title/panel-app-title.mjs +2 -2
- package/es/panel-component/panel-button/panel-button.css +1 -1
- package/es/panel-component/panel-carousel/panel-carousel.controller.mjs +1 -1
- package/es/panel-component/panel-video-player/panel-video-player.controller.mjs +2 -2
- package/es/panel-component/split-container/split-container.controller.mjs +1 -1
- package/es/panel-component/user-message/common/internal-message-default/internal-message-default.provider.mjs +1 -1
- package/es/panel-component/user-message/user-message.mjs +1 -1
- package/es/panel-component/user-message/user-message.util.mjs +1 -1
- package/es/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
- package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +12 -12
- package/es/platform/ios-platform-provider.mjs +2 -2
- package/es/platform/wechat-official-platform-provider.mjs +1 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +204 -41
- package/es/util/app-drawer/app-drawer-component.mjs +20 -6
- package/es/util/app-modal/app-modal-component.mjs +7 -4
- package/es/util/app-popover/app-popover-component.mjs +4 -4
- package/es/util/app-util/app-util.mjs +38 -3
- package/es/util/button-util/button-util.mjs +33 -1
- package/es/util/confirm-util/confirm-util.mjs +4 -4
- package/es/util/directive/loading.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.mjs +2 -1
- package/es/util/list-util/list-render-util.mjs +24 -5
- package/es/util/loading-util/loading-util.mjs +1 -1
- package/es/util/open-view-util/open-view-util.mjs +1 -1
- package/es/util/print-preview-util/print-preview-markdown/icon/icon.mjs +46 -0
- package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
- package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.mjs +62 -0
- package/es/util/print-preview-util/print-preview-util.mjs +57 -0
- package/es/util/scan-qrcode/scan-qrcode.mjs +1 -1
- package/es/util/user-route-util/user-route-util.mjs +4 -4
- package/es/util/xlsx-util/xlsx-util.mjs +1 -1
- package/es/view-engine/index-view.engine.mjs +4 -0
- package/es/view-engine/index.mjs +31 -31
- package/es/view-engine/login-view.engine.mjs +1 -1
- package/es/view-engine/mob-calendar-view.engine.mjs +8 -1
- package/es/view-engine/mob-edit-view.engine.mjs +1 -1
- package/es/view-engine/mob-wf-dyna-action-view.engine.mjs +1 -1
- package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +1 -1
- package/es/view-engine/mob-wf-dyna-start-view.engine.mjs +1 -1
- package/lib/_virtual/index12.cjs +2 -2
- package/lib/_virtual/index13.cjs +2 -2
- package/lib/common/action-group/action-group.cjs +42 -41
- package/lib/common/action-group/action-group.css +1 -1
- package/lib/common/button-list/button-list.cjs +14 -23
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/col/col.cjs +1 -1
- package/lib/common/cropping/cropping.cjs +5 -5
- package/lib/common/date-range-picker/components/range-picker/range-picker.cjs +2 -4
- package/lib/common/date-range-picker/components/single-picker/single-picker.cjs +2 -4
- package/lib/common/date-range-picker/date-range-picker.cjs +2 -2
- package/lib/common/emoji-select/components/emoji-item/emoji-item.cjs +4 -4
- package/lib/common/emoji-select/components/emoji-list/emoji-list.cjs +1 -1
- package/lib/common/emoji-select/icons/categories.cjs +9 -57
- package/lib/common/float-button/float-button.cjs +11 -6
- package/lib/common/float-button/float-button.css +1 -1
- package/lib/common/keep-alive/keep-alive.cjs +2 -2
- package/lib/common/keep-alive/scheduler.cjs +1 -1
- package/lib/common/preview-image/preview-image.cjs +4 -4
- package/lib/common/rawitem/rawitem.cjs +2 -2
- package/lib/common/row/row.cjs +1 -1
- package/lib/common/split/split.cjs +9 -9
- package/lib/common/split-trigger/split-trigger.cjs +1 -1
- package/lib/common/tab-layout/tab-dropdown/tab-dropdown.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
- package/lib/control/app-menu/menu-render-util.cjs +2 -0
- package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +1 -1
- package/lib/control/app-menu-icon-view/index.cjs +1 -1
- package/lib/control/app-menu-list-view/app-menu-list-view.cjs +1 -1
- package/lib/control/app-menu-list-view/index.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +6 -6
- package/lib/control/caption-bar/caption-bar.cjs +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/dashboard.cjs +3 -1
- package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +4 -4
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +7 -7
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +1 -1
- package/lib/control/form/form/form.cjs +2 -2
- package/lib/control/form/form-detail/form-button/form-button.cjs +1 -1
- package/lib/control/form/form-detail/form-button/form-button.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +6 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +2 -2
- package/lib/control/form/search-form/search-form.cjs +1 -1
- package/lib/control/list/list/list.cjs +1 -1
- package/lib/control/list/md-ctrl/md-ctrl.cjs +2 -2
- package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
- package/lib/control/pickup-view-panel/pickup-view-panel.cjs +1 -1
- package/lib/control/search-bar/filter-field-select/filter-field-select.cjs +1 -1
- package/lib/control/search-bar/filter-mode-select/filter-mode-select.cjs +1 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +1 -1
- package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +10 -6
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +1 -1
- package/lib/control/toolbar/float-toolbar/float-toolbar.cjs +13 -7
- package/lib/control/toolbar/float-toolbar/float-toolbar.css +1 -1
- package/lib/control/toolbar/toolbar-render-util.cjs +55 -32
- package/lib/control/toolbar/toolbar.cjs +1 -1
- package/lib/control/tree/tree.cjs +9 -9
- package/lib/control/tree-exp-bar/tree-exp-bar.cjs +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +6 -6
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
- package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +7 -7
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -1
- package/lib/editor/html/html-editor.controller.cjs +26 -9
- package/lib/editor/html/quill-editor/quill-editor.cjs +12 -3
- package/lib/editor/html/quill-editor-preview/quill-editor-preview.cjs +4 -4
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +12 -3
- package/lib/editor/markdown/markdown-editor.controller.cjs +23 -3
- package/lib/editor/qrcode/ibiz-qrcode/ibiz-qrcode.cjs +1 -1
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +2 -2
- package/lib/editor/span/span/span.cjs +7 -7
- package/lib/editor/span/span-link/span-link.cjs +1 -1
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
- package/lib/editor/text-box/input/input.cjs +4 -4
- package/lib/editor/text-box/signature/signature.cjs +59 -19
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +18 -1
- package/lib/editor/upload/use/use-van-upload.cjs +6 -2
- package/lib/index.cjs +3 -0
- package/lib/locale/en/index.cjs +26 -23
- package/lib/locale/zh-CN/index.cjs +3 -0
- package/lib/mob-app/App.cjs +9 -0
- package/lib/mob-app/components/modal-router-shell/modal-router-shell.cjs +6 -4
- package/lib/mob-app/components/router-shell/router-shell.cjs +1 -1
- package/lib/mob-app/guard/auth-guard/auth-guard.cjs +2 -2
- package/lib/mob-app/guard/auth-guard/dyna-auth-guard.cjs +2 -2
- package/lib/mob-app/main.cjs +3 -1
- package/lib/mob-app/router/index.cjs +131 -76
- package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +5 -5
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.2.0/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.cjs +1 -1
- package/lib/panel-component/async-action/async-action/async-action.cjs +2 -2
- package/lib/panel-component/async-action/async-action-preview/async-action-preview.cjs +3 -3
- package/lib/panel-component/async-action/async-action-result/async-action-result.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +2 -2
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +2 -2
- package/lib/panel-component/panel-button/panel-button.css +1 -1
- package/lib/panel-component/panel-carousel/panel-carousel.controller.cjs +1 -1
- package/lib/panel-component/panel-video-player/panel-video-player.controller.cjs +2 -2
- package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
- package/lib/panel-component/user-message/common/internal-message-default/internal-message-default.provider.cjs +1 -1
- package/lib/panel-component/user-message/user-message.cjs +1 -1
- package/lib/panel-component/user-message/user-message.util.cjs +1 -1
- package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +12 -12
- package/lib/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
- package/lib/platform/ios-platform-provider.cjs +2 -2
- package/lib/platform/wechat-official-platform-provider.cjs +1 -1
- package/lib/util/ai-chat-util/ai-chat-util.cjs +204 -41
- package/lib/util/app-drawer/app-drawer-component.cjs +20 -6
- package/lib/util/app-modal/app-modal-component.cjs +7 -4
- package/lib/util/app-popover/app-popover-component.cjs +4 -4
- package/lib/util/app-util/app-util.cjs +38 -3
- package/lib/util/button-util/button-util.cjs +34 -0
- package/lib/util/confirm-util/confirm-util.cjs +4 -4
- package/lib/util/directive/loading.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +3 -0
- package/lib/util/list-util/list-render-util.cjs +24 -5
- package/lib/util/loading-util/loading-util.cjs +1 -1
- package/lib/util/open-view-util/open-view-util.cjs +1 -1
- package/lib/util/print-preview-util/print-preview-markdown/icon/icon.cjs +52 -0
- package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.cjs +64 -0
- package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
- package/lib/util/print-preview-util/print-preview-util.cjs +59 -0
- package/lib/util/scan-qrcode/scan-qrcode.cjs +1 -1
- package/lib/util/user-route-util/user-route-util.cjs +4 -4
- package/lib/util/xlsx-util/xlsx-util.cjs +1 -1
- package/lib/view-engine/index-view.engine.cjs +4 -0
- package/lib/view-engine/index.cjs +31 -31
- package/lib/view-engine/login-view.engine.cjs +1 -1
- package/lib/view-engine/mob-calendar-view.engine.cjs +7 -0
- package/lib/view-engine/mob-edit-view.engine.cjs +1 -1
- package/lib/view-engine/mob-wf-dyna-action-view.engine.cjs +1 -1
- package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +1 -1
- package/lib/view-engine/mob-wf-dyna-start-view.engine.cjs +1 -1
- package/package.json +9 -9
- package/dist/chart-j1WkpBhc.js +0 -2
- package/dist/ibiz-markdown-editor-COU_MxNu.js +0 -2
- package/dist/ibiz-markdown-editor-COU_MxNu.js.map +0 -1
- package/dist/index-Bn7VkqJp.js +0 -76
- package/dist/index-Bn7VkqJp.js.map +0 -1
- package/dist/index-ChdHGLJI.js +0 -2
- package/dist/index-Dd7yiMzY.js +0 -2
- package/dist/index.es-D0mZvSDS.js +0 -14
- package/dist/index.es-D0mZvSDS.js.map +0 -1
- package/dist/quill-BOA7ZLOz.js +0 -50
- package/dist/quill-editor-DcZd_lqh.js +0 -2
- package/dist/quill-editor-DcZd_lqh.js.map +0 -1
- package/dist/quill-editor-preview-DghpeKpg.js +0 -2
- package/dist/tree-BTa0bMPr.js +0 -2
- package/dist/xlsx-util-CQaOn5OK.js +0 -105
- package/dist/xlsx-util-CQaOn5OK.js.map +0 -1
- 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
- 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
|
@@ -19,12 +19,13 @@ class AIChatUtil {
|
|
|
19
19
|
__publicField(this, "INLINE_CHAT_SUFFIX", "inline");
|
|
20
20
|
__publicField(this, "TEMP_CHAT_SUFFIX", "temp");
|
|
21
21
|
__publicField(this, "UNKOWN_CHAT_SUFFIX", "unknow");
|
|
22
|
+
__publicField(this, "PRE_ERROR_MESSAGE", "Expected content-type to be text/event-stream, Actual: application/json;charset=UTF-8");
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* 获取AI聊天对象
|
|
25
26
|
*/
|
|
26
27
|
async getAIChat() {
|
|
27
|
-
const module = await
|
|
28
|
+
const module = await import('@ibiz-template-plugin/ibiz-mob-ai-chat');
|
|
28
29
|
const chatInstance = module.chat || module.default.chat;
|
|
29
30
|
return chatInstance;
|
|
30
31
|
}
|
|
@@ -36,6 +37,7 @@ class AIChatUtil {
|
|
|
36
37
|
* @param data
|
|
37
38
|
*/
|
|
38
39
|
async getEditorExAIChatParams(editorParams, context, params, data, deACMode, args) {
|
|
40
|
+
var _a;
|
|
39
41
|
const containerOptions = {};
|
|
40
42
|
if (editorParams.autoclose) {
|
|
41
43
|
try {
|
|
@@ -46,6 +48,8 @@ class AIChatUtil {
|
|
|
46
48
|
}
|
|
47
49
|
if (editorParams.openmode)
|
|
48
50
|
containerOptions.openMode = editorParams.openmode;
|
|
51
|
+
if (editorParams.containerheight)
|
|
52
|
+
containerOptions.containerHeight = Number(editorParams.containerheight);
|
|
49
53
|
const topicOptions = {};
|
|
50
54
|
const chatOptions = {};
|
|
51
55
|
if (editorParams.srfaiappendcurdata) {
|
|
@@ -71,12 +75,9 @@ class AIChatUtil {
|
|
|
71
75
|
if (editorParams.srfaiagent) {
|
|
72
76
|
chatOptions.activeAIAgentID = editorParams.srfaiagent;
|
|
73
77
|
}
|
|
74
|
-
|
|
75
|
-
context,
|
|
76
|
-
|
|
77
|
-
editorParams
|
|
78
|
-
);
|
|
79
|
-
chatOptions.aiAgentlist = aiAgentlist;
|
|
78
|
+
chatOptions.fetchAgentList = () => {
|
|
79
|
+
return this.getAIAgentList(context, params, editorParams);
|
|
80
|
+
};
|
|
80
81
|
if (deACMode) {
|
|
81
82
|
const {
|
|
82
83
|
contentToolbarItems,
|
|
@@ -207,14 +208,25 @@ class AIChatUtil {
|
|
|
207
208
|
{ ...questionRequestData }
|
|
208
209
|
);
|
|
209
210
|
} catch (error) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
211
|
+
if (error && error.message !== this.PRE_ERROR_MESSAGE) {
|
|
212
|
+
aiChat.replaceMessage({
|
|
213
|
+
messageid: id,
|
|
214
|
+
state: 40,
|
|
215
|
+
type: "ERROR",
|
|
216
|
+
role: "ASSISTANT",
|
|
217
|
+
content: error.message || ibiz.i18n.t("app.aiError"),
|
|
218
|
+
status: "failed"
|
|
219
|
+
});
|
|
220
|
+
} else {
|
|
221
|
+
const lastMessage = arr[arr.length - 1];
|
|
222
|
+
aiChat.replaceMessage(
|
|
223
|
+
{
|
|
224
|
+
...lastMessage,
|
|
225
|
+
state: 40
|
|
226
|
+
},
|
|
227
|
+
false
|
|
228
|
+
);
|
|
229
|
+
}
|
|
218
230
|
abortController == null ? void 0 : abortController.abort();
|
|
219
231
|
} finally {
|
|
220
232
|
aiChat.completeMessage(id, true);
|
|
@@ -268,13 +280,43 @@ class AIChatUtil {
|
|
|
268
280
|
}
|
|
269
281
|
return null;
|
|
270
282
|
};
|
|
283
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
284
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
285
|
+
const tempParams = { ...param };
|
|
286
|
+
if (other.srfaiagent) {
|
|
287
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
288
|
+
}
|
|
289
|
+
const result = await deService.aiChatChatDigest(
|
|
290
|
+
ctx,
|
|
291
|
+
tempParams,
|
|
292
|
+
other.message
|
|
293
|
+
);
|
|
294
|
+
if (result.ok && result.data) {
|
|
295
|
+
const choices = result.data.choices;
|
|
296
|
+
if (choices && choices.length > 0) {
|
|
297
|
+
return choices[0];
|
|
298
|
+
}
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
return null;
|
|
302
|
+
};
|
|
303
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
304
|
+
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
305
|
+
let globalDownloadPrifix = false;
|
|
306
|
+
if (editorParams.globaldownloadprifix) {
|
|
307
|
+
globalDownloadPrifix = editorParams.globaldownloadprifix === "true";
|
|
308
|
+
} else {
|
|
309
|
+
globalDownloadPrifix = ibiz.config.common.globalDownloadPrifix;
|
|
310
|
+
}
|
|
271
311
|
chatOptions.uploader = {
|
|
312
|
+
folder: "".concat(folder, "$"),
|
|
313
|
+
globalDownloadPrifix,
|
|
272
314
|
onUpload: async (file, reportProgress, options) => {
|
|
273
315
|
const fileMeata = ibiz.util.file.calcFileUpDownUrl(
|
|
274
316
|
(options == null ? void 0 : options.context) || context,
|
|
275
317
|
(options == null ? void 0 : options.params) || params,
|
|
276
318
|
{},
|
|
277
|
-
{ enableNoAccess: true }
|
|
319
|
+
{ enableNoAccess: true, osscat: folder }
|
|
278
320
|
);
|
|
279
321
|
const fielUploadHeaders = ibiz.util.file.getUploadHeaders();
|
|
280
322
|
const formData = new FormData();
|
|
@@ -290,17 +332,43 @@ class AIChatUtil {
|
|
|
290
332
|
}
|
|
291
333
|
});
|
|
292
334
|
return res.data;
|
|
335
|
+
},
|
|
336
|
+
onDownLoad: async (file, options) => {
|
|
337
|
+
const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
338
|
+
(options == null ? void 0 : options.context) || context,
|
|
339
|
+
(options == null ? void 0 : options.params) || params,
|
|
340
|
+
{},
|
|
341
|
+
{ enableNoAccess: true, osscat: folder, globalDownloadPrifix }
|
|
342
|
+
);
|
|
343
|
+
const url = downloadUrl.replace("%fileId%", file.fileid);
|
|
344
|
+
await ibiz.util.file.fileDownload(
|
|
345
|
+
url,
|
|
346
|
+
file.filename,
|
|
347
|
+
{
|
|
348
|
+
context: (options == null ? void 0 : options.context) || context,
|
|
349
|
+
params: (options == null ? void 0 : options.params) || params,
|
|
350
|
+
data: {},
|
|
351
|
+
file: { fileId: file.id, ...file },
|
|
352
|
+
extraParams: {
|
|
353
|
+
enableNoAccess: true,
|
|
354
|
+
osscat: folder,
|
|
355
|
+
globalDownloadPrifix
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
void 0,
|
|
359
|
+
true
|
|
360
|
+
);
|
|
293
361
|
}
|
|
294
362
|
};
|
|
295
363
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
296
|
-
var
|
|
364
|
+
var _a2, _b, _c;
|
|
297
365
|
const { id: id2, isPluginApp } = source;
|
|
298
366
|
let appId = source.appId;
|
|
299
367
|
const tempContext = core.IBizContext.create(context2);
|
|
300
368
|
if (isPluginApp) {
|
|
301
369
|
const mainApp = ibiz.hub.getApp();
|
|
302
|
-
const targetApp = (
|
|
303
|
-
(subAppRef) => subAppRef.appId.endsWith(appId)
|
|
370
|
+
const targetApp = (_a2 = mainApp.model.subAppRefs) == null ? void 0 : _a2.find(
|
|
371
|
+
(subAppRef) => subAppRef.appId.endsWith("__".concat(appId))
|
|
304
372
|
);
|
|
305
373
|
if (targetApp) {
|
|
306
374
|
const targetAppId = targetApp.appId;
|
|
@@ -350,6 +418,7 @@ class AIChatUtil {
|
|
|
350
418
|
* @returns
|
|
351
419
|
*/
|
|
352
420
|
async getUIActionExAIChatParams(context, params, data, deACMode, args) {
|
|
421
|
+
var _a;
|
|
353
422
|
const containerOptions = {};
|
|
354
423
|
if (params.hasOwnProperty("autoclose")) {
|
|
355
424
|
try {
|
|
@@ -363,6 +432,10 @@ class AIChatUtil {
|
|
|
363
432
|
containerOptions.openMode = params.openmode;
|
|
364
433
|
delete params.openmode;
|
|
365
434
|
}
|
|
435
|
+
if (params.hasOwnProperty("containerheight")) {
|
|
436
|
+
containerOptions.containerHeight = Number(params.containerheight);
|
|
437
|
+
delete params.containerheight;
|
|
438
|
+
}
|
|
366
439
|
const topicOptions = {};
|
|
367
440
|
if (params.hasOwnProperty("topiccaptionmode")) {
|
|
368
441
|
topicOptions.captionMode = params.topiccaptionmode;
|
|
@@ -379,10 +452,10 @@ class AIChatUtil {
|
|
|
379
452
|
const isBatchRemove = args2[4];
|
|
380
453
|
const result = await ibiz.confirm.warning({
|
|
381
454
|
title: ibiz.i18n.t(
|
|
382
|
-
|
|
455
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopic" : "aiTitle")
|
|
383
456
|
),
|
|
384
457
|
desc: ibiz.i18n.t(
|
|
385
|
-
|
|
458
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopicDesc" : "aiDesc")
|
|
386
459
|
)
|
|
387
460
|
});
|
|
388
461
|
return result;
|
|
@@ -438,8 +511,9 @@ class AIChatUtil {
|
|
|
438
511
|
delete params.srfenableaiagentchange;
|
|
439
512
|
}
|
|
440
513
|
chatOptions.enableAIAgentChange = enableAIAgentChange;
|
|
441
|
-
|
|
442
|
-
|
|
514
|
+
chatOptions.fetchAgentList = () => {
|
|
515
|
+
return this.getAIAgentList(context, params);
|
|
516
|
+
};
|
|
443
517
|
if (deACMode) {
|
|
444
518
|
const {
|
|
445
519
|
contentToolbarItems,
|
|
@@ -568,14 +642,25 @@ class AIChatUtil {
|
|
|
568
642
|
{ ...questionRequestData }
|
|
569
643
|
);
|
|
570
644
|
} catch (error) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
645
|
+
if (error && error.message !== this.PRE_ERROR_MESSAGE) {
|
|
646
|
+
aiChat.replaceMessage({
|
|
647
|
+
messageid: id,
|
|
648
|
+
state: 40,
|
|
649
|
+
type: "ERROR",
|
|
650
|
+
role: "ASSISTANT",
|
|
651
|
+
content: error.message || ibiz.i18n.t("app.aiError"),
|
|
652
|
+
status: "failed"
|
|
653
|
+
});
|
|
654
|
+
} else {
|
|
655
|
+
const lastMessage = arr[arr.length - 1];
|
|
656
|
+
aiChat.replaceMessage(
|
|
657
|
+
{
|
|
658
|
+
...lastMessage,
|
|
659
|
+
state: 40
|
|
660
|
+
},
|
|
661
|
+
false
|
|
662
|
+
);
|
|
663
|
+
}
|
|
579
664
|
abortController == null ? void 0 : abortController.abort();
|
|
580
665
|
} finally {
|
|
581
666
|
aiChat.completeMessage(id, true);
|
|
@@ -629,13 +714,44 @@ class AIChatUtil {
|
|
|
629
714
|
}
|
|
630
715
|
return null;
|
|
631
716
|
};
|
|
717
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
718
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
719
|
+
const tempParams = { ...param };
|
|
720
|
+
if (other.srfaiagent) {
|
|
721
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
722
|
+
}
|
|
723
|
+
const result = await deService.aiChatChatDigest(
|
|
724
|
+
ctx,
|
|
725
|
+
tempParams,
|
|
726
|
+
other.message
|
|
727
|
+
);
|
|
728
|
+
if (result.ok && result.data) {
|
|
729
|
+
const choices = result.data.choices;
|
|
730
|
+
if (choices && choices.length > 0) {
|
|
731
|
+
return choices[0];
|
|
732
|
+
}
|
|
733
|
+
return null;
|
|
734
|
+
}
|
|
735
|
+
return null;
|
|
736
|
+
};
|
|
737
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
738
|
+
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
739
|
+
let globalDownloadPrifix = false;
|
|
740
|
+
if (params.hasOwnProperty("globaldownloadprifix")) {
|
|
741
|
+
globalDownloadPrifix = params.globaldownloadprifix === "true";
|
|
742
|
+
delete params.globaldownloadprifix;
|
|
743
|
+
} else {
|
|
744
|
+
globalDownloadPrifix = ibiz.config.common.globalDownloadPrifix;
|
|
745
|
+
}
|
|
632
746
|
chatOptions.uploader = {
|
|
747
|
+
folder: "".concat(folder, "$"),
|
|
748
|
+
globalDownloadPrifix,
|
|
633
749
|
onUpload: async (file, reportProgress, options) => {
|
|
634
750
|
const { uploadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
635
751
|
(options == null ? void 0 : options.context) || context,
|
|
636
752
|
(options == null ? void 0 : options.params) || params,
|
|
637
753
|
{},
|
|
638
|
-
{ enableNoAccess: true }
|
|
754
|
+
{ enableNoAccess: true, osscat: folder }
|
|
639
755
|
);
|
|
640
756
|
const headers = ibiz.util.file.getUploadHeaders();
|
|
641
757
|
const formData = new FormData();
|
|
@@ -651,17 +767,43 @@ class AIChatUtil {
|
|
|
651
767
|
}
|
|
652
768
|
});
|
|
653
769
|
return res.data;
|
|
770
|
+
},
|
|
771
|
+
onDownLoad: async (file, options) => {
|
|
772
|
+
const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
773
|
+
(options == null ? void 0 : options.context) || context,
|
|
774
|
+
(options == null ? void 0 : options.params) || params,
|
|
775
|
+
{},
|
|
776
|
+
{ enableNoAccess: true, osscat: folder, globalDownloadPrifix }
|
|
777
|
+
);
|
|
778
|
+
const url = downloadUrl.replace("%fileId%", file.fileid);
|
|
779
|
+
await ibiz.util.file.fileDownload(
|
|
780
|
+
url,
|
|
781
|
+
file.filename,
|
|
782
|
+
{
|
|
783
|
+
context: (options == null ? void 0 : options.context) || context,
|
|
784
|
+
params: (options == null ? void 0 : options.params) || params,
|
|
785
|
+
data: {},
|
|
786
|
+
file: { fileId: file.id, ...file },
|
|
787
|
+
extraParams: {
|
|
788
|
+
enableNoAccess: true,
|
|
789
|
+
osscat: folder,
|
|
790
|
+
globalDownloadPrifix
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
void 0,
|
|
794
|
+
true
|
|
795
|
+
);
|
|
654
796
|
}
|
|
655
797
|
};
|
|
656
798
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
657
|
-
var
|
|
799
|
+
var _a2, _b, _c;
|
|
658
800
|
const { id: id2, isPluginApp } = source;
|
|
659
801
|
let appId = source.appId;
|
|
660
802
|
const tempContext = core.IBizContext.create(context2);
|
|
661
803
|
if (isPluginApp) {
|
|
662
804
|
const mainApp = ibiz.hub.getApp();
|
|
663
|
-
const targetApp = (
|
|
664
|
-
(subAppRef) => subAppRef.appId.endsWith(appId)
|
|
805
|
+
const targetApp = (_a2 = mainApp.model.subAppRefs) == null ? void 0 : _a2.find(
|
|
806
|
+
(subAppRef) => subAppRef.appId.endsWith("__".concat(appId))
|
|
665
807
|
);
|
|
666
808
|
if (targetApp) {
|
|
667
809
|
const targetAppId = targetApp.appId;
|
|
@@ -738,7 +880,7 @@ class AIChatUtil {
|
|
|
738
880
|
}
|
|
739
881
|
};
|
|
740
882
|
if (item.sysImage && item.sysImage.imagePath && !item.sysImage.imagePath.startsWith("http")) {
|
|
741
|
-
toolbarItem.icon.imagePath =
|
|
883
|
+
toolbarItem.icon.imagePath = "".concat(ibiz.env.assetsUrl, "/images/").concat(item.sysImage.imagePath);
|
|
742
884
|
}
|
|
743
885
|
if ((_c = item.uiactionId) == null ? void 0 : _c.startsWith("mob_msg_content_")) {
|
|
744
886
|
contentToolbarItems.push(toolbarItem);
|
|
@@ -773,9 +915,8 @@ class AIChatUtil {
|
|
|
773
915
|
const emptyList = [];
|
|
774
916
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
775
917
|
const aiAgentUtil = app.getAppUtil("DYNAMICAIGENT", "CUSTOM");
|
|
776
|
-
if (!aiAgentUtil)
|
|
918
|
+
if (!aiAgentUtil)
|
|
777
919
|
return emptyList;
|
|
778
|
-
}
|
|
779
920
|
const utilService = new runtime.UtilService(aiAgentUtil);
|
|
780
921
|
const resultParams = { ...params, page: 0, size: 1e3 };
|
|
781
922
|
if (editorParams && editorParams.srfaiagentscope) {
|
|
@@ -784,9 +925,8 @@ class AIChatUtil {
|
|
|
784
925
|
});
|
|
785
926
|
}
|
|
786
927
|
const data = await utilService.load("", context, resultParams);
|
|
787
|
-
if (!data || data.length === 0)
|
|
928
|
+
if (!data || data.length === 0)
|
|
788
929
|
return emptyList;
|
|
789
|
-
}
|
|
790
930
|
return data;
|
|
791
931
|
}
|
|
792
932
|
/**
|
|
@@ -809,7 +949,7 @@ class AIChatUtil {
|
|
|
809
949
|
tempSessionID += this.UNKOWN_CHAT_SUFFIX;
|
|
810
950
|
break;
|
|
811
951
|
}
|
|
812
|
-
tempSessionID +=
|
|
952
|
+
tempSessionID += "@".concat(sessionID || "mob@".concat(qxUtil.createUUID()), "@").concat((/* @__PURE__ */ new Date()).getTime());
|
|
813
953
|
return tempSessionID;
|
|
814
954
|
}
|
|
815
955
|
/**
|
|
@@ -929,6 +1069,29 @@ class AIChatUtil {
|
|
|
929
1069
|
};
|
|
930
1070
|
return resourceOptions;
|
|
931
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* @description 获取AI聊天模式
|
|
1074
|
+
* @param {('UIACTION' | 'EDITOR')} type 场景类型:UIACTION:界面行为;EDITOR:编辑器
|
|
1075
|
+
* @param {IContext} context
|
|
1076
|
+
* @param {IParams} params
|
|
1077
|
+
* @param {IData} [editorParams]
|
|
1078
|
+
* @returns {*} {('DEFAULT' | 'TOPIC')}
|
|
1079
|
+
* @memberof AIChatUtil
|
|
1080
|
+
*/
|
|
1081
|
+
getAIChatMode(type, context, params, editorParams) {
|
|
1082
|
+
switch (type) {
|
|
1083
|
+
case "UIACTION":
|
|
1084
|
+
if (params.srfenabletempmode && params.srfenabletempmode === "true") {
|
|
1085
|
+
delete params.srfenabletempmode;
|
|
1086
|
+
return "DEFAULT";
|
|
1087
|
+
}
|
|
1088
|
+
return "TOPIC";
|
|
1089
|
+
case "EDITOR":
|
|
1090
|
+
return "DEFAULT";
|
|
1091
|
+
default:
|
|
1092
|
+
return "DEFAULT";
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
932
1095
|
}
|
|
933
1096
|
|
|
934
1097
|
exports.AIChatUtil = AIChatUtil;
|
|
@@ -41,10 +41,28 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
const present = () => {
|
|
42
42
|
isShow.value = true;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
let direction = "";
|
|
45
|
+
if (props.opts.placement) {
|
|
46
|
+
switch (props.opts.placement) {
|
|
47
|
+
case "left":
|
|
48
|
+
direction = "left";
|
|
49
|
+
break;
|
|
50
|
+
case "top":
|
|
51
|
+
direction = "top";
|
|
52
|
+
break;
|
|
53
|
+
case "bottom":
|
|
54
|
+
direction = "bottom";
|
|
55
|
+
break;
|
|
56
|
+
default:
|
|
57
|
+
direction = "right";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
45
60
|
const customStyle = vue.reactive({
|
|
46
|
-
height: "
|
|
61
|
+
height: "80%"
|
|
47
62
|
});
|
|
63
|
+
if (["left", "right"].includes(direction)) {
|
|
64
|
+
customStyle.height = "100%";
|
|
65
|
+
}
|
|
48
66
|
const {
|
|
49
67
|
width,
|
|
50
68
|
height
|
|
@@ -55,8 +73,6 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
73
|
} else {
|
|
56
74
|
customStyle.width = width;
|
|
57
75
|
}
|
|
58
|
-
} else if (["left", "right"].includes(direction)) {
|
|
59
|
-
customStyle.width = "30%";
|
|
60
76
|
}
|
|
61
77
|
if (height) {
|
|
62
78
|
if (lodashEs.isNumber(height)) {
|
|
@@ -64,8 +80,6 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
80
|
} else {
|
|
65
81
|
customStyle.height = height;
|
|
66
82
|
}
|
|
67
|
-
} else if (["top", "bottom"].includes(direction)) {
|
|
68
|
-
customStyle.height = "30%";
|
|
69
83
|
}
|
|
70
84
|
return {
|
|
71
85
|
ns,
|
|
@@ -35,18 +35,18 @@ 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 = "
|
|
38
|
+
customStyle.width = "100vw";
|
|
39
39
|
}
|
|
40
40
|
if (height) {
|
|
41
41
|
customStyle.height = lodashEs.isNumber(height) ? core.calcOpenModeStyle(height, "modal") : height;
|
|
42
42
|
} else {
|
|
43
|
-
customStyle.height = "
|
|
43
|
+
customStyle.height = "100vh";
|
|
44
44
|
}
|
|
45
45
|
const options = vue.ref({
|
|
46
46
|
footerHide: true,
|
|
47
47
|
modalClass: "",
|
|
48
|
-
//
|
|
49
|
-
showClose:
|
|
48
|
+
// 是否显示弹框关闭按钮,显示返回按钮时不显示关闭按钮
|
|
49
|
+
showClose: !ibiz.config.view.mobShowPresetBack,
|
|
50
50
|
// 是否显示遮罩,默认显示
|
|
51
51
|
overlay: true
|
|
52
52
|
});
|
|
@@ -99,6 +99,9 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
99
99
|
return vue.createVNode(vue.resolveComponent("van-button"), {
|
|
100
100
|
"class": this.ns.e("close"),
|
|
101
101
|
"plain": true,
|
|
102
|
+
"style": {
|
|
103
|
+
zIndex: this.modalZIndex
|
|
104
|
+
},
|
|
102
105
|
"onClick": this.onDialogClose
|
|
103
106
|
}, {
|
|
104
107
|
default: () => [vue.createVNode(vue.resolveComponent("van-icon"), {
|
|
@@ -35,8 +35,8 @@ async function computePos(element, el, arrEl, opts) {
|
|
|
35
35
|
const {
|
|
36
36
|
style
|
|
37
37
|
} = el;
|
|
38
|
-
style.left =
|
|
39
|
-
style.top =
|
|
38
|
+
style.left = "".concat(x, "px");
|
|
39
|
+
style.top = "".concat(y, "px");
|
|
40
40
|
if (!opts.noArrow) {
|
|
41
41
|
const {
|
|
42
42
|
x: arrowX,
|
|
@@ -49,8 +49,8 @@ async function computePos(element, el, arrEl, opts) {
|
|
|
49
49
|
left: "right"
|
|
50
50
|
}[placement.split("-")[0]];
|
|
51
51
|
Object.assign(arrEl.style, {
|
|
52
|
-
left: arrowX != null ?
|
|
53
|
-
top: arrowY != null ?
|
|
52
|
+
left: arrowX != null ? "".concat(arrowX, "px") : "",
|
|
53
|
+
top: arrowY != null ? "".concat(arrowY, "px") : "",
|
|
54
54
|
right: "",
|
|
55
55
|
bottom: "",
|
|
56
56
|
[staticSide]: "-4px"
|
|
@@ -26,6 +26,41 @@ class AppUtil {
|
|
|
26
26
|
*/
|
|
27
27
|
__publicField(this, "viewCacheCenter", /* @__PURE__ */ new Map());
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @description 注册导航结束事件
|
|
31
|
+
* @param {(form: string, to: string) => void} callBack
|
|
32
|
+
* @memberof AppUtil
|
|
33
|
+
*/
|
|
34
|
+
registerEventOnNavEnd(callBack) {
|
|
35
|
+
this.router.afterEach((form, to) => {
|
|
36
|
+
if (callBack)
|
|
37
|
+
callBack(form.fullPath, to.fullPath);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description 注册路由导航完成关闭模态类视图
|
|
42
|
+
* @returns {*} {void}
|
|
43
|
+
* @memberof AppUtil
|
|
44
|
+
*/
|
|
45
|
+
registerAutoCloseOnNavEnd() {
|
|
46
|
+
if (!ibiz.config.common.autoCloseModalView || !this.router)
|
|
47
|
+
return;
|
|
48
|
+
this.router.afterEach(() => {
|
|
49
|
+
if (this.viewCacheCenter.size === 0)
|
|
50
|
+
return;
|
|
51
|
+
const cacheViews = [...this.viewCacheCenter.values()];
|
|
52
|
+
const validModalViews = cacheViews.filter((view) => {
|
|
53
|
+
return view && view.state.isDestroyed === false && view.modal && view.modal.viewUsage === 2;
|
|
54
|
+
});
|
|
55
|
+
if (validModalViews.length === 0)
|
|
56
|
+
return;
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
validModalViews.forEach(
|
|
59
|
+
(view) => view && view.closeView && view.closeView()
|
|
60
|
+
);
|
|
61
|
+
}, 0);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
29
64
|
/**
|
|
30
65
|
* @description 路由是否初始化构建完成
|
|
31
66
|
* @returns {*} {Promise<void>}
|
|
@@ -78,7 +113,7 @@ class AppUtil {
|
|
|
78
113
|
if (bol) {
|
|
79
114
|
const path = window.location;
|
|
80
115
|
if (path.search.indexOf("isAnonymous=true") !== -1) {
|
|
81
|
-
const href =
|
|
116
|
+
const href = "".concat(path.origin).concat(path.pathname).concat(path.hash);
|
|
82
117
|
window.history.replaceState({}, "", href);
|
|
83
118
|
}
|
|
84
119
|
await this.router.push(
|
|
@@ -209,10 +244,10 @@ class AppUtil {
|
|
|
209
244
|
return Promise.resolve([]);
|
|
210
245
|
const chatInstance = await ibiz.aiChatUtil.getAIChat();
|
|
211
246
|
const appDataEntityName = runtime.calcDeCodeNameById(appDataEntityId);
|
|
212
|
-
let topicId =
|
|
247
|
+
let topicId = "mob@".concat(appDataEntityId, "@").concat(appDEACModeId, "@");
|
|
213
248
|
topicId += context[appDataEntityName] ? context[appDataEntityName] : "default";
|
|
214
249
|
const sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId);
|
|
215
|
-
const topicCaption =
|
|
250
|
+
const topicCaption = "[".concat(deACMode.logicName, "]").concat((data == null ? void 0 : data.srfmajortext) || "");
|
|
216
251
|
const tempParams = { ...params, ...{ srfactag: deACMode.codeName } };
|
|
217
252
|
const { zIndex } = vue3Util.useUIStore();
|
|
218
253
|
const containerZIndex = zIndex.increment();
|
|
@@ -26,5 +26,39 @@ function convertBtnType(detail) {
|
|
|
26
26
|
}
|
|
27
27
|
return buttonType;
|
|
28
28
|
}
|
|
29
|
+
function getTempDomRect(ns, style = {}) {
|
|
30
|
+
const dom = document.createElement("div");
|
|
31
|
+
dom.classList.add(ns.b());
|
|
32
|
+
Object.assign(dom.style, {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
left: "-9999px",
|
|
35
|
+
width: "var(".concat(ns.cssVarBlockName("width-van-button"), ")"),
|
|
36
|
+
height: "var(".concat(ns.cssVarBlockName("height-van-button"), ")"),
|
|
37
|
+
...style
|
|
38
|
+
});
|
|
39
|
+
document.body.appendChild(dom);
|
|
40
|
+
const domRectList = dom.getBoundingClientRect();
|
|
41
|
+
document.body.removeChild(dom);
|
|
42
|
+
return domRectList;
|
|
43
|
+
}
|
|
44
|
+
function calcPopoverPlacement(ns, curDom, listNum, direction = "horizontal") {
|
|
45
|
+
if (!curDom)
|
|
46
|
+
return direction === "horizontal" ? "right" : "bottom";
|
|
47
|
+
const { innerWidth, innerHeight } = window;
|
|
48
|
+
const rect = getTempDomRect(ns);
|
|
49
|
+
const { x, y, width } = curDom.getBoundingClientRect();
|
|
50
|
+
const centerX = innerWidth - width - rect.width;
|
|
51
|
+
const centerY = listNum ? innerHeight - listNum * rect.height : innerHeight / 2;
|
|
52
|
+
if (y > centerY) {
|
|
53
|
+
if (direction === "horizontal")
|
|
54
|
+
return x > centerX ? "left-end" : "right-end";
|
|
55
|
+
return x > centerX ? "top-end" : "top-start";
|
|
56
|
+
}
|
|
57
|
+
if (direction === "horizontal")
|
|
58
|
+
return x > centerX ? "left-start" : "right-start";
|
|
59
|
+
return x > centerX ? "bottom-end" : "bottom-start";
|
|
60
|
+
}
|
|
29
61
|
|
|
62
|
+
exports.calcPopoverPlacement = calcPopoverPlacement;
|
|
30
63
|
exports.convertBtnType = convertBtnType;
|
|
64
|
+
exports.getTempDomRect = getTempDomRect;
|
|
@@ -20,7 +20,7 @@ class ConfirmUtil {
|
|
|
20
20
|
Vant.showConfirmDialog({
|
|
21
21
|
title,
|
|
22
22
|
message: desc,
|
|
23
|
-
className:
|
|
23
|
+
className: "".concat(this.ns.b(), " ").concat(this.ns.e("info")),
|
|
24
24
|
...options
|
|
25
25
|
}).then(() => {
|
|
26
26
|
resolve(true);
|
|
@@ -35,7 +35,7 @@ class ConfirmUtil {
|
|
|
35
35
|
Vant.showConfirmDialog({
|
|
36
36
|
title,
|
|
37
37
|
message: desc,
|
|
38
|
-
className:
|
|
38
|
+
className: "".concat(this.ns.b(), " ").concat(this.ns.e("success")),
|
|
39
39
|
...options
|
|
40
40
|
}).then(() => {
|
|
41
41
|
resolve(true);
|
|
@@ -50,7 +50,7 @@ class ConfirmUtil {
|
|
|
50
50
|
Vant.showConfirmDialog({
|
|
51
51
|
title,
|
|
52
52
|
message: desc,
|
|
53
|
-
className:
|
|
53
|
+
className: "".concat(this.ns.b(), " ").concat(this.ns.e("warning")),
|
|
54
54
|
...options
|
|
55
55
|
}).then(() => {
|
|
56
56
|
resolve(true);
|
|
@@ -65,7 +65,7 @@ class ConfirmUtil {
|
|
|
65
65
|
Vant.showConfirmDialog({
|
|
66
66
|
title,
|
|
67
67
|
message: desc,
|
|
68
|
-
className:
|
|
68
|
+
className: "".concat(this.ns.b(), " ").concat(this.ns.e("error")),
|
|
69
69
|
...options
|
|
70
70
|
}).then(() => {
|
|
71
71
|
resolve(true);
|
|
@@ -8,7 +8,7 @@ const INSTANCE_KEY = Symbol("vanLoading");
|
|
|
8
8
|
const createInstance = (el) => {
|
|
9
9
|
const ns = vue3Util.useNamespace("loading");
|
|
10
10
|
const options = {
|
|
11
|
-
message:
|
|
11
|
+
message: "".concat(ibiz.i18n.t("util.loading"), "..."),
|
|
12
12
|
forbidClick: true,
|
|
13
13
|
teleport: el,
|
|
14
14
|
duration: 0,
|
|
@@ -74,7 +74,7 @@ class FullscreenUtil {
|
|
|
74
74
|
}
|
|
75
75
|
const ns = vue3Util.useNamespace(this.FullscreenClass);
|
|
76
76
|
this.fullscreenElement.classList.remove(ns.b());
|
|
77
|
-
const header = this.fullscreenElement.querySelector(
|
|
77
|
+
const header = this.fullscreenElement.querySelector(".".concat(ns.e("header")));
|
|
78
78
|
if (header) {
|
|
79
79
|
header.remove();
|
|
80
80
|
}
|