@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
|
@@ -211,9 +211,9 @@ class NavPosIndexController extends PanelItemController {
|
|
|
211
211
|
} else {
|
|
212
212
|
const route = this.router.currentRoute.value;
|
|
213
213
|
const { appContext } = route.params;
|
|
214
|
-
let indexPath =
|
|
214
|
+
let indexPath = "/".concat(appContext);
|
|
215
215
|
for (let index = 1; index <= this.routeDepth; index++) {
|
|
216
|
-
indexPath +=
|
|
216
|
+
indexPath += "/".concat(route.params["view".concat(index)], "/").concat(ibiz.env.routePlaceholder);
|
|
217
217
|
}
|
|
218
218
|
this.router.push(indexPath);
|
|
219
219
|
ibiz.util.setBrowserTitle("");
|
|
@@ -133,7 +133,7 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
}, [tempIcon, createVNode("svg", {
|
|
134
134
|
"width": "166px",
|
|
135
135
|
"height": "80px",
|
|
136
|
-
"viewBox":
|
|
136
|
+
"viewBox": "0 0 166 90",
|
|
137
137
|
"version": "1.1"
|
|
138
138
|
}, [createVNode("g", {
|
|
139
139
|
"id": "app-caption-panel",
|
|
@@ -163,7 +163,7 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
}, [createVNode("svg", {
|
|
164
164
|
"width": "256px",
|
|
165
165
|
"height": "80px",
|
|
166
|
-
"viewBox":
|
|
166
|
+
"viewBox": "0 0 256 80",
|
|
167
167
|
"version": "1.1"
|
|
168
168
|
}, [createVNode("g", {
|
|
169
169
|
"id": "app-caption-panel",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-button{--ibiz-panel-button-color-login-btn-bg:var(--ibiz-color-primary);--ibiz-panel-button-color-login-btn-color:var(--ibiz-color-
|
|
1
|
+
.ibiz-panel-button{--ibiz-panel-button-color-login-btn-bg:var(--ibiz-color-primary);--ibiz-panel-button-color-login-btn-color:var(--ibiz-color-default);--ibiz-panel-button-spacing-content-gap:var(--ibiz-spacing-extra-tight);--ibiz-panel-button-font-login-btn-fontSize:var(--ibiz-font-size-header-4);--ibiz-panel-button-width-content-icon-size:var(--ibiz-width-icon-medium);width:100%}.ibiz-panel-button.is-login-btn{background-color:var(--ibiz-panel-button-color-login-btn-bg);color:var(--ibiz-panel-button-color-login-btn-color);font-size:var(--ibiz-panel-button-font-login-btn-fontSize)}.ibiz-panel-button .ibiz-panel-button-content{display:flex;align-items:center;justify-content:flex-start;gap:var(--ibiz-panel-button-spacing-content-gap)}.ibiz-panel-button .ibiz-panel-button-content i,.ibiz-panel-button .ibiz-panel-button-content img{display:inline-block;max-width:var(--ibiz-panel-button-width-content-icon-size);max-height:var(--ibiz-panel-button-width-content-icon-size)}
|
|
@@ -59,7 +59,7 @@ class PanelCarouselController extends PanelItemController {
|
|
|
59
59
|
let value;
|
|
60
60
|
const params = this.model.rawItem.rawItemParams;
|
|
61
61
|
if (!params) {
|
|
62
|
-
ibiz.log.error(
|
|
62
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u53C2\u6570:".concat(key, "}"));
|
|
63
63
|
return void 0;
|
|
64
64
|
}
|
|
65
65
|
params.forEach((item) => {
|
|
@@ -43,7 +43,7 @@ class PanelVideoPlayerController extends PanelItemController {
|
|
|
43
43
|
let value;
|
|
44
44
|
const params = this.model.rawItem.rawItemParams;
|
|
45
45
|
if (!params) {
|
|
46
|
-
ibiz.log.error(
|
|
46
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570:".concat(key, "}"));
|
|
47
47
|
return void 0;
|
|
48
48
|
}
|
|
49
49
|
params.forEach((item) => {
|
|
@@ -64,7 +64,7 @@ class PanelVideoPlayerController extends PanelItemController {
|
|
|
64
64
|
initRawItemParams() {
|
|
65
65
|
const arrayParams = this.model.rawItem.rawItemParams;
|
|
66
66
|
if (!arrayParams) {
|
|
67
|
-
ibiz.log.error(
|
|
67
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570");
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
const rawItemParams = {};
|
|
@@ -44,7 +44,7 @@ class SplitContainerController extends PanelContainerController {
|
|
|
44
44
|
*/
|
|
45
45
|
initSplitValue(value, mode) {
|
|
46
46
|
if (mode === "PX") {
|
|
47
|
-
this.splitValue =
|
|
47
|
+
this.splitValue = "".concat(value, "px");
|
|
48
48
|
}
|
|
49
49
|
if (mode === "PERCENTAGE") {
|
|
50
50
|
this.splitValue = value / 100;
|
|
@@ -57,7 +57,7 @@ class InternalMessageDefaultProvider {
|
|
|
57
57
|
params
|
|
58
58
|
);
|
|
59
59
|
} else if (redirectUrl.startsWith("route://")) {
|
|
60
|
-
const routeUrl =
|
|
60
|
+
const routeUrl = "/".concat(redirectUrl.split("route://")[1]);
|
|
61
61
|
this.router.push(routeUrl);
|
|
62
62
|
}
|
|
63
63
|
return true;
|
|
@@ -18,7 +18,7 @@ const MobUserMessage = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
noticeController.internalMessage.provider = new InternalMessageDefaultProvider();
|
|
19
19
|
const c = noticeController.internalMessage;
|
|
20
20
|
const activeTab = ref("");
|
|
21
|
-
const unreadOnlyTag =
|
|
21
|
+
const unreadOnlyTag = "".concat((_a = ibiz.appData) == null ? void 0 : _a.context.srfsystemid, "-unreadOnly");
|
|
22
22
|
const isActive = ref(true);
|
|
23
23
|
const hasNotice = ref(false);
|
|
24
24
|
const refresh = () => {
|
|
@@ -8,7 +8,7 @@ function parseHtml(str) {
|
|
|
8
8
|
const tempVal = decodeURIComponent(atob(emoji));
|
|
9
9
|
result = result.replace(
|
|
10
10
|
match[0],
|
|
11
|
-
|
|
11
|
+
"<span data-w-e-type=\"emoji\" class='emoji'>".concat(tempVal, "</span>")
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
14
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--ibiz-control-overflow:hidden auto}.ibiz-view .ibiz-view-header{z-index:1}.ibiz-view .ibiz-panel-container--view_top{position:relative;z-index:1}.ibiz-view-content{--ibiz-panel-component-view-content-spacing-margin:0;--ibiz-panel-component-view-content-color-background-color:var(--ibiz-view-bg-color);height:100%;margin-top:var(--ibiz-panel-component-view-content-spacing-margin);overflow:auto;background-color:var(--ibiz-panel-component-view-content-color-background-color)}.ibiz-view-content.is-refresh{overflow-y:auto;--ibiz-control-overflow:unset unset}.ibiz-view-content-refresh{height:100%}.ibiz-view-content-refresh.van-pull-refresh{overflow:visible}
|
|
1
|
+
:root{--ibiz-control-overflow:hidden auto}.ibiz-view .ibiz-view-header{z-index:1}.ibiz-view .ibiz-panel-container--view_top{position:relative;z-index:1}.ibiz-view-content{--ibiz-panel-component-view-content-spacing-margin:0;--ibiz-panel-component-view-content-color-background-color:var(--ibiz-view-bg-color);height:100%;margin-top:var(--ibiz-panel-component-view-content-spacing-margin);overflow:auto;background-color:var(--ibiz-panel-component-view-content-color-background-color)}.ibiz-view-content.is-refresh{overflow-y:auto;--ibiz-control-overflow:unset unset}.ibiz-view-content.is-back-top{overflow-y:auto;--ibiz-control-overflow:unset unset}.ibiz-view-content-refresh{height:100%}.ibiz-view-content-refresh.van-pull-refresh{overflow:visible}
|
|
@@ -47,6 +47,17 @@ const ViewContentPanelContainer = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
} else if (view.modal.viewUsage === 2) {
|
|
48
48
|
isScrollable = true;
|
|
49
49
|
}
|
|
50
|
+
const contentRef = ref();
|
|
51
|
+
const showBackTop = computed(() => {
|
|
52
|
+
var _a2, _b2, _c;
|
|
53
|
+
if (((_a2 = props.controller) == null ? void 0 : _a2.panel.params) && Object.prototype.hasOwnProperty.call(props.controller.panel.params, "srfshowbacktop")) {
|
|
54
|
+
return ((_b2 = props.controller) == null ? void 0 : _b2.panel.params.srfshowbacktop) === true || ((_c = props.controller) == null ? void 0 : _c.panel.params.srfshowbacktop) === "true";
|
|
55
|
+
}
|
|
56
|
+
if (ibiz.config.mob.mobShowBackTop) {
|
|
57
|
+
return isScrollable;
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
});
|
|
50
61
|
const refresh = async () => {
|
|
51
62
|
try {
|
|
52
63
|
isRefreshing.value = true;
|
|
@@ -64,24 +75,13 @@ const ViewContentPanelContainer = /* @__PURE__ */ defineComponent({
|
|
|
64
75
|
...result,
|
|
65
76
|
...props.controller.containerClass,
|
|
66
77
|
// 只有这个scroll 样式才出滚动条
|
|
67
|
-
ns.is("
|
|
78
|
+
ns.is("back-top", showBackTop.value),
|
|
68
79
|
ns.is("embed", view.modal.viewUsage === 4),
|
|
69
80
|
ns.is("hidden", !props.controller.state.visible),
|
|
70
81
|
ns.is("refresh", viewModel.enablePullDownRefresh === true)
|
|
71
82
|
];
|
|
72
83
|
return result;
|
|
73
84
|
});
|
|
74
|
-
const contentRef = ref();
|
|
75
|
-
const showBackTop = computed(() => {
|
|
76
|
-
var _a2, _b2, _c;
|
|
77
|
-
if (((_a2 = props.controller) == null ? void 0 : _a2.panel.params) && Object.prototype.hasOwnProperty.call(props.controller.panel.params, "srfshowbacktop")) {
|
|
78
|
-
return ((_b2 = props.controller) == null ? void 0 : _b2.panel.params.srfshowbacktop) === true || ((_c = props.controller) == null ? void 0 : _c.panel.params.srfshowbacktop) === "true";
|
|
79
|
-
}
|
|
80
|
-
if (ibiz.config.mob.mobShowBackTop) {
|
|
81
|
-
return isScrollable;
|
|
82
|
-
}
|
|
83
|
-
return false;
|
|
84
|
-
});
|
|
85
85
|
const onScroll = () => {
|
|
86
86
|
if (contentRef.value) {
|
|
87
87
|
refreshDisabled.value = contentRef.value.$el.scrollTop > 0;
|
|
@@ -19,9 +19,9 @@ class IosPlatformProvider extends PlatformProviderBase {
|
|
|
19
19
|
if (root) {
|
|
20
20
|
root.style.setProperty(
|
|
21
21
|
"--safe-area-inset-bottom",
|
|
22
|
-
|
|
22
|
+
"".concat(safeAreaBottom, "px")
|
|
23
23
|
);
|
|
24
|
-
root.style.setProperty("--van-back-top-bottom",
|
|
24
|
+
root.style.setProperty("--van-back-top-bottom", "80px");
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
document.addEventListener(
|
|
@@ -19,7 +19,7 @@ class WeChatOfficialPlatformProvider extends PlatformProviderBase {
|
|
|
19
19
|
filename: encodeURIComponent(name),
|
|
20
20
|
token: getToken() || ""
|
|
21
21
|
});
|
|
22
|
-
window.open(
|
|
22
|
+
window.open("".concat(UrlHelper.routeBase, "/download?").concat(search), "_self");
|
|
23
23
|
return Promise.resolve(true);
|
|
24
24
|
}
|
|
25
25
|
return super.download(url, name);
|
|
@@ -17,12 +17,13 @@ class AIChatUtil {
|
|
|
17
17
|
__publicField(this, "INLINE_CHAT_SUFFIX", "inline");
|
|
18
18
|
__publicField(this, "TEMP_CHAT_SUFFIX", "temp");
|
|
19
19
|
__publicField(this, "UNKOWN_CHAT_SUFFIX", "unknow");
|
|
20
|
+
__publicField(this, "PRE_ERROR_MESSAGE", "Expected content-type to be text/event-stream, Actual: application/json;charset=UTF-8");
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* 获取AI聊天对象
|
|
23
24
|
*/
|
|
24
25
|
async getAIChat() {
|
|
25
|
-
const module = await import('
|
|
26
|
+
const module = await import('@ibiz-template-plugin/ibiz-mob-ai-chat');
|
|
26
27
|
const chatInstance = module.chat || module.default.chat;
|
|
27
28
|
return chatInstance;
|
|
28
29
|
}
|
|
@@ -34,6 +35,7 @@ class AIChatUtil {
|
|
|
34
35
|
* @param data
|
|
35
36
|
*/
|
|
36
37
|
async getEditorExAIChatParams(editorParams, context, params, data, deACMode, args) {
|
|
38
|
+
var _a;
|
|
37
39
|
const containerOptions = {};
|
|
38
40
|
if (editorParams.autoclose) {
|
|
39
41
|
try {
|
|
@@ -44,6 +46,8 @@ class AIChatUtil {
|
|
|
44
46
|
}
|
|
45
47
|
if (editorParams.openmode)
|
|
46
48
|
containerOptions.openMode = editorParams.openmode;
|
|
49
|
+
if (editorParams.containerheight)
|
|
50
|
+
containerOptions.containerHeight = Number(editorParams.containerheight);
|
|
47
51
|
const topicOptions = {};
|
|
48
52
|
const chatOptions = {};
|
|
49
53
|
if (editorParams.srfaiappendcurdata) {
|
|
@@ -69,12 +73,9 @@ class AIChatUtil {
|
|
|
69
73
|
if (editorParams.srfaiagent) {
|
|
70
74
|
chatOptions.activeAIAgentID = editorParams.srfaiagent;
|
|
71
75
|
}
|
|
72
|
-
|
|
73
|
-
context,
|
|
74
|
-
|
|
75
|
-
editorParams
|
|
76
|
-
);
|
|
77
|
-
chatOptions.aiAgentlist = aiAgentlist;
|
|
76
|
+
chatOptions.fetchAgentList = () => {
|
|
77
|
+
return this.getAIAgentList(context, params, editorParams);
|
|
78
|
+
};
|
|
78
79
|
if (deACMode) {
|
|
79
80
|
const {
|
|
80
81
|
contentToolbarItems,
|
|
@@ -205,14 +206,25 @@ class AIChatUtil {
|
|
|
205
206
|
{ ...questionRequestData }
|
|
206
207
|
);
|
|
207
208
|
} catch (error) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
if (error && error.message !== this.PRE_ERROR_MESSAGE) {
|
|
210
|
+
aiChat.replaceMessage({
|
|
211
|
+
messageid: id,
|
|
212
|
+
state: 40,
|
|
213
|
+
type: "ERROR",
|
|
214
|
+
role: "ASSISTANT",
|
|
215
|
+
content: error.message || ibiz.i18n.t("app.aiError"),
|
|
216
|
+
status: "failed"
|
|
217
|
+
});
|
|
218
|
+
} else {
|
|
219
|
+
const lastMessage = arr[arr.length - 1];
|
|
220
|
+
aiChat.replaceMessage(
|
|
221
|
+
{
|
|
222
|
+
...lastMessage,
|
|
223
|
+
state: 40
|
|
224
|
+
},
|
|
225
|
+
false
|
|
226
|
+
);
|
|
227
|
+
}
|
|
216
228
|
abortController == null ? void 0 : abortController.abort();
|
|
217
229
|
} finally {
|
|
218
230
|
aiChat.completeMessage(id, true);
|
|
@@ -266,13 +278,43 @@ class AIChatUtil {
|
|
|
266
278
|
}
|
|
267
279
|
return null;
|
|
268
280
|
};
|
|
281
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
282
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
283
|
+
const tempParams = { ...param };
|
|
284
|
+
if (other.srfaiagent) {
|
|
285
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
286
|
+
}
|
|
287
|
+
const result = await deService.aiChatChatDigest(
|
|
288
|
+
ctx,
|
|
289
|
+
tempParams,
|
|
290
|
+
other.message
|
|
291
|
+
);
|
|
292
|
+
if (result.ok && result.data) {
|
|
293
|
+
const choices = result.data.choices;
|
|
294
|
+
if (choices && choices.length > 0) {
|
|
295
|
+
return choices[0];
|
|
296
|
+
}
|
|
297
|
+
return null;
|
|
298
|
+
}
|
|
299
|
+
return null;
|
|
300
|
+
};
|
|
301
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
302
|
+
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
303
|
+
let globalDownloadPrifix = false;
|
|
304
|
+
if (editorParams.globaldownloadprifix) {
|
|
305
|
+
globalDownloadPrifix = editorParams.globaldownloadprifix === "true";
|
|
306
|
+
} else {
|
|
307
|
+
globalDownloadPrifix = ibiz.config.common.globalDownloadPrifix;
|
|
308
|
+
}
|
|
269
309
|
chatOptions.uploader = {
|
|
310
|
+
folder: "".concat(folder, "$"),
|
|
311
|
+
globalDownloadPrifix,
|
|
270
312
|
onUpload: async (file, reportProgress, options) => {
|
|
271
313
|
const fileMeata = ibiz.util.file.calcFileUpDownUrl(
|
|
272
314
|
(options == null ? void 0 : options.context) || context,
|
|
273
315
|
(options == null ? void 0 : options.params) || params,
|
|
274
316
|
{},
|
|
275
|
-
{ enableNoAccess: true }
|
|
317
|
+
{ enableNoAccess: true, osscat: folder }
|
|
276
318
|
);
|
|
277
319
|
const fielUploadHeaders = ibiz.util.file.getUploadHeaders();
|
|
278
320
|
const formData = new FormData();
|
|
@@ -288,17 +330,43 @@ class AIChatUtil {
|
|
|
288
330
|
}
|
|
289
331
|
});
|
|
290
332
|
return res.data;
|
|
333
|
+
},
|
|
334
|
+
onDownLoad: async (file, options) => {
|
|
335
|
+
const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
336
|
+
(options == null ? void 0 : options.context) || context,
|
|
337
|
+
(options == null ? void 0 : options.params) || params,
|
|
338
|
+
{},
|
|
339
|
+
{ enableNoAccess: true, osscat: folder, globalDownloadPrifix }
|
|
340
|
+
);
|
|
341
|
+
const url = downloadUrl.replace("%fileId%", file.fileid);
|
|
342
|
+
await ibiz.util.file.fileDownload(
|
|
343
|
+
url,
|
|
344
|
+
file.filename,
|
|
345
|
+
{
|
|
346
|
+
context: (options == null ? void 0 : options.context) || context,
|
|
347
|
+
params: (options == null ? void 0 : options.params) || params,
|
|
348
|
+
data: {},
|
|
349
|
+
file: { fileId: file.id, ...file },
|
|
350
|
+
extraParams: {
|
|
351
|
+
enableNoAccess: true,
|
|
352
|
+
osscat: folder,
|
|
353
|
+
globalDownloadPrifix
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
void 0,
|
|
357
|
+
true
|
|
358
|
+
);
|
|
291
359
|
}
|
|
292
360
|
};
|
|
293
361
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
294
|
-
var
|
|
362
|
+
var _a2, _b, _c;
|
|
295
363
|
const { id: id2, isPluginApp } = source;
|
|
296
364
|
let appId = source.appId;
|
|
297
365
|
const tempContext = IBizContext.create(context2);
|
|
298
366
|
if (isPluginApp) {
|
|
299
367
|
const mainApp = ibiz.hub.getApp();
|
|
300
|
-
const targetApp = (
|
|
301
|
-
(subAppRef) => subAppRef.appId.endsWith(appId)
|
|
368
|
+
const targetApp = (_a2 = mainApp.model.subAppRefs) == null ? void 0 : _a2.find(
|
|
369
|
+
(subAppRef) => subAppRef.appId.endsWith("__".concat(appId))
|
|
302
370
|
);
|
|
303
371
|
if (targetApp) {
|
|
304
372
|
const targetAppId = targetApp.appId;
|
|
@@ -348,6 +416,7 @@ class AIChatUtil {
|
|
|
348
416
|
* @returns
|
|
349
417
|
*/
|
|
350
418
|
async getUIActionExAIChatParams(context, params, data, deACMode, args) {
|
|
419
|
+
var _a;
|
|
351
420
|
const containerOptions = {};
|
|
352
421
|
if (params.hasOwnProperty("autoclose")) {
|
|
353
422
|
try {
|
|
@@ -361,6 +430,10 @@ class AIChatUtil {
|
|
|
361
430
|
containerOptions.openMode = params.openmode;
|
|
362
431
|
delete params.openmode;
|
|
363
432
|
}
|
|
433
|
+
if (params.hasOwnProperty("containerheight")) {
|
|
434
|
+
containerOptions.containerHeight = Number(params.containerheight);
|
|
435
|
+
delete params.containerheight;
|
|
436
|
+
}
|
|
364
437
|
const topicOptions = {};
|
|
365
438
|
if (params.hasOwnProperty("topiccaptionmode")) {
|
|
366
439
|
topicOptions.captionMode = params.topiccaptionmode;
|
|
@@ -377,10 +450,10 @@ class AIChatUtil {
|
|
|
377
450
|
const isBatchRemove = args2[4];
|
|
378
451
|
const result = await ibiz.confirm.warning({
|
|
379
452
|
title: ibiz.i18n.t(
|
|
380
|
-
|
|
453
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopic" : "aiTitle")
|
|
381
454
|
),
|
|
382
455
|
desc: ibiz.i18n.t(
|
|
383
|
-
|
|
456
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopicDesc" : "aiDesc")
|
|
384
457
|
)
|
|
385
458
|
});
|
|
386
459
|
return result;
|
|
@@ -436,8 +509,9 @@ class AIChatUtil {
|
|
|
436
509
|
delete params.srfenableaiagentchange;
|
|
437
510
|
}
|
|
438
511
|
chatOptions.enableAIAgentChange = enableAIAgentChange;
|
|
439
|
-
|
|
440
|
-
|
|
512
|
+
chatOptions.fetchAgentList = () => {
|
|
513
|
+
return this.getAIAgentList(context, params);
|
|
514
|
+
};
|
|
441
515
|
if (deACMode) {
|
|
442
516
|
const {
|
|
443
517
|
contentToolbarItems,
|
|
@@ -566,14 +640,25 @@ class AIChatUtil {
|
|
|
566
640
|
{ ...questionRequestData }
|
|
567
641
|
);
|
|
568
642
|
} catch (error) {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
643
|
+
if (error && error.message !== this.PRE_ERROR_MESSAGE) {
|
|
644
|
+
aiChat.replaceMessage({
|
|
645
|
+
messageid: id,
|
|
646
|
+
state: 40,
|
|
647
|
+
type: "ERROR",
|
|
648
|
+
role: "ASSISTANT",
|
|
649
|
+
content: error.message || ibiz.i18n.t("app.aiError"),
|
|
650
|
+
status: "failed"
|
|
651
|
+
});
|
|
652
|
+
} else {
|
|
653
|
+
const lastMessage = arr[arr.length - 1];
|
|
654
|
+
aiChat.replaceMessage(
|
|
655
|
+
{
|
|
656
|
+
...lastMessage,
|
|
657
|
+
state: 40
|
|
658
|
+
},
|
|
659
|
+
false
|
|
660
|
+
);
|
|
661
|
+
}
|
|
577
662
|
abortController == null ? void 0 : abortController.abort();
|
|
578
663
|
} finally {
|
|
579
664
|
aiChat.completeMessage(id, true);
|
|
@@ -627,13 +712,44 @@ class AIChatUtil {
|
|
|
627
712
|
}
|
|
628
713
|
return null;
|
|
629
714
|
};
|
|
715
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
716
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
717
|
+
const tempParams = { ...param };
|
|
718
|
+
if (other.srfaiagent) {
|
|
719
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
720
|
+
}
|
|
721
|
+
const result = await deService.aiChatChatDigest(
|
|
722
|
+
ctx,
|
|
723
|
+
tempParams,
|
|
724
|
+
other.message
|
|
725
|
+
);
|
|
726
|
+
if (result.ok && result.data) {
|
|
727
|
+
const choices = result.data.choices;
|
|
728
|
+
if (choices && choices.length > 0) {
|
|
729
|
+
return choices[0];
|
|
730
|
+
}
|
|
731
|
+
return null;
|
|
732
|
+
}
|
|
733
|
+
return null;
|
|
734
|
+
};
|
|
735
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
736
|
+
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
737
|
+
let globalDownloadPrifix = false;
|
|
738
|
+
if (params.hasOwnProperty("globaldownloadprifix")) {
|
|
739
|
+
globalDownloadPrifix = params.globaldownloadprifix === "true";
|
|
740
|
+
delete params.globaldownloadprifix;
|
|
741
|
+
} else {
|
|
742
|
+
globalDownloadPrifix = ibiz.config.common.globalDownloadPrifix;
|
|
743
|
+
}
|
|
630
744
|
chatOptions.uploader = {
|
|
745
|
+
folder: "".concat(folder, "$"),
|
|
746
|
+
globalDownloadPrifix,
|
|
631
747
|
onUpload: async (file, reportProgress, options) => {
|
|
632
748
|
const { uploadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
633
749
|
(options == null ? void 0 : options.context) || context,
|
|
634
750
|
(options == null ? void 0 : options.params) || params,
|
|
635
751
|
{},
|
|
636
|
-
{ enableNoAccess: true }
|
|
752
|
+
{ enableNoAccess: true, osscat: folder }
|
|
637
753
|
);
|
|
638
754
|
const headers = ibiz.util.file.getUploadHeaders();
|
|
639
755
|
const formData = new FormData();
|
|
@@ -649,17 +765,43 @@ class AIChatUtil {
|
|
|
649
765
|
}
|
|
650
766
|
});
|
|
651
767
|
return res.data;
|
|
768
|
+
},
|
|
769
|
+
onDownLoad: async (file, options) => {
|
|
770
|
+
const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
771
|
+
(options == null ? void 0 : options.context) || context,
|
|
772
|
+
(options == null ? void 0 : options.params) || params,
|
|
773
|
+
{},
|
|
774
|
+
{ enableNoAccess: true, osscat: folder, globalDownloadPrifix }
|
|
775
|
+
);
|
|
776
|
+
const url = downloadUrl.replace("%fileId%", file.fileid);
|
|
777
|
+
await ibiz.util.file.fileDownload(
|
|
778
|
+
url,
|
|
779
|
+
file.filename,
|
|
780
|
+
{
|
|
781
|
+
context: (options == null ? void 0 : options.context) || context,
|
|
782
|
+
params: (options == null ? void 0 : options.params) || params,
|
|
783
|
+
data: {},
|
|
784
|
+
file: { fileId: file.id, ...file },
|
|
785
|
+
extraParams: {
|
|
786
|
+
enableNoAccess: true,
|
|
787
|
+
osscat: folder,
|
|
788
|
+
globalDownloadPrifix
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
void 0,
|
|
792
|
+
true
|
|
793
|
+
);
|
|
652
794
|
}
|
|
653
795
|
};
|
|
654
796
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
655
|
-
var
|
|
797
|
+
var _a2, _b, _c;
|
|
656
798
|
const { id: id2, isPluginApp } = source;
|
|
657
799
|
let appId = source.appId;
|
|
658
800
|
const tempContext = IBizContext.create(context2);
|
|
659
801
|
if (isPluginApp) {
|
|
660
802
|
const mainApp = ibiz.hub.getApp();
|
|
661
|
-
const targetApp = (
|
|
662
|
-
(subAppRef) => subAppRef.appId.endsWith(appId)
|
|
803
|
+
const targetApp = (_a2 = mainApp.model.subAppRefs) == null ? void 0 : _a2.find(
|
|
804
|
+
(subAppRef) => subAppRef.appId.endsWith("__".concat(appId))
|
|
663
805
|
);
|
|
664
806
|
if (targetApp) {
|
|
665
807
|
const targetAppId = targetApp.appId;
|
|
@@ -736,7 +878,7 @@ class AIChatUtil {
|
|
|
736
878
|
}
|
|
737
879
|
};
|
|
738
880
|
if (item.sysImage && item.sysImage.imagePath && !item.sysImage.imagePath.startsWith("http")) {
|
|
739
|
-
toolbarItem.icon.imagePath =
|
|
881
|
+
toolbarItem.icon.imagePath = "".concat(ibiz.env.assetsUrl, "/images/").concat(item.sysImage.imagePath);
|
|
740
882
|
}
|
|
741
883
|
if ((_c = item.uiactionId) == null ? void 0 : _c.startsWith("mob_msg_content_")) {
|
|
742
884
|
contentToolbarItems.push(toolbarItem);
|
|
@@ -771,9 +913,8 @@ class AIChatUtil {
|
|
|
771
913
|
const emptyList = [];
|
|
772
914
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
773
915
|
const aiAgentUtil = app.getAppUtil("DYNAMICAIGENT", "CUSTOM");
|
|
774
|
-
if (!aiAgentUtil)
|
|
916
|
+
if (!aiAgentUtil)
|
|
775
917
|
return emptyList;
|
|
776
|
-
}
|
|
777
918
|
const utilService = new UtilService(aiAgentUtil);
|
|
778
919
|
const resultParams = { ...params, page: 0, size: 1e3 };
|
|
779
920
|
if (editorParams && editorParams.srfaiagentscope) {
|
|
@@ -782,9 +923,8 @@ class AIChatUtil {
|
|
|
782
923
|
});
|
|
783
924
|
}
|
|
784
925
|
const data = await utilService.load("", context, resultParams);
|
|
785
|
-
if (!data || data.length === 0)
|
|
926
|
+
if (!data || data.length === 0)
|
|
786
927
|
return emptyList;
|
|
787
|
-
}
|
|
788
928
|
return data;
|
|
789
929
|
}
|
|
790
930
|
/**
|
|
@@ -807,7 +947,7 @@ class AIChatUtil {
|
|
|
807
947
|
tempSessionID += this.UNKOWN_CHAT_SUFFIX;
|
|
808
948
|
break;
|
|
809
949
|
}
|
|
810
|
-
tempSessionID +=
|
|
950
|
+
tempSessionID += "@".concat(sessionID || "mob@".concat(createUUID()), "@").concat((/* @__PURE__ */ new Date()).getTime());
|
|
811
951
|
return tempSessionID;
|
|
812
952
|
}
|
|
813
953
|
/**
|
|
@@ -927,6 +1067,29 @@ class AIChatUtil {
|
|
|
927
1067
|
};
|
|
928
1068
|
return resourceOptions;
|
|
929
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* @description 获取AI聊天模式
|
|
1072
|
+
* @param {('UIACTION' | 'EDITOR')} type 场景类型:UIACTION:界面行为;EDITOR:编辑器
|
|
1073
|
+
* @param {IContext} context
|
|
1074
|
+
* @param {IParams} params
|
|
1075
|
+
* @param {IData} [editorParams]
|
|
1076
|
+
* @returns {*} {('DEFAULT' | 'TOPIC')}
|
|
1077
|
+
* @memberof AIChatUtil
|
|
1078
|
+
*/
|
|
1079
|
+
getAIChatMode(type, context, params, editorParams) {
|
|
1080
|
+
switch (type) {
|
|
1081
|
+
case "UIACTION":
|
|
1082
|
+
if (params.srfenabletempmode && params.srfenabletempmode === "true") {
|
|
1083
|
+
delete params.srfenabletempmode;
|
|
1084
|
+
return "DEFAULT";
|
|
1085
|
+
}
|
|
1086
|
+
return "TOPIC";
|
|
1087
|
+
case "EDITOR":
|
|
1088
|
+
return "DEFAULT";
|
|
1089
|
+
default:
|
|
1090
|
+
return "DEFAULT";
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
930
1093
|
}
|
|
931
1094
|
|
|
932
1095
|
export { AIChatUtil };
|
|
@@ -39,10 +39,28 @@ const AppDrawerComponent = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
const present = () => {
|
|
40
40
|
isShow.value = true;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
let direction = "";
|
|
43
|
+
if (props.opts.placement) {
|
|
44
|
+
switch (props.opts.placement) {
|
|
45
|
+
case "left":
|
|
46
|
+
direction = "left";
|
|
47
|
+
break;
|
|
48
|
+
case "top":
|
|
49
|
+
direction = "top";
|
|
50
|
+
break;
|
|
51
|
+
case "bottom":
|
|
52
|
+
direction = "bottom";
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
direction = "right";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
43
58
|
const customStyle = reactive({
|
|
44
|
-
height: "
|
|
59
|
+
height: "80%"
|
|
45
60
|
});
|
|
61
|
+
if (["left", "right"].includes(direction)) {
|
|
62
|
+
customStyle.height = "100%";
|
|
63
|
+
}
|
|
46
64
|
const {
|
|
47
65
|
width,
|
|
48
66
|
height
|
|
@@ -53,8 +71,6 @@ const AppDrawerComponent = /* @__PURE__ */ defineComponent({
|
|
|
53
71
|
} else {
|
|
54
72
|
customStyle.width = width;
|
|
55
73
|
}
|
|
56
|
-
} else if (["left", "right"].includes(direction)) {
|
|
57
|
-
customStyle.width = "30%";
|
|
58
74
|
}
|
|
59
75
|
if (height) {
|
|
60
76
|
if (isNumber(height)) {
|
|
@@ -62,8 +78,6 @@ const AppDrawerComponent = /* @__PURE__ */ defineComponent({
|
|
|
62
78
|
} else {
|
|
63
79
|
customStyle.height = height;
|
|
64
80
|
}
|
|
65
|
-
} else if (["top", "bottom"].includes(direction)) {
|
|
66
|
-
customStyle.height = "30%";
|
|
67
81
|
}
|
|
68
82
|
return {
|
|
69
83
|
ns,
|