@ibiz-template/mob-vue3-components 0.7.41-alpha.21 → 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-CopTozpr.js.map +1 -0
- 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-DV0pS0zU.js.map +1 -0
- package/dist/index.min.css +14 -14
- package/dist/index.system.min.js +1 -1
- package/dist/quill-CeDXLpcJ.js +2 -0
- package/dist/{quill-D-355-KZ.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-BPS9uMa7.js.map +1 -0
- package/dist/tree-SAqvldtV.js +2 -0
- package/dist/{tree-sdPuTW-7.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/FileSaver.min.mjs +3 -0
- package/es/_virtual/index12.mjs +2 -2
- package/es/_virtual/index13.mjs +2 -2
- package/es/_virtual/index14.mjs +2 -2
- package/es/_virtual/index18.mjs +2 -2
- package/es/_virtual/index19.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.css +1 -1
- package/es/common/split-trigger/split-trigger.mjs +1 -1
- package/es/common/tab-layout/tab-default-layout/tab-default-layout.mjs +1 -0
- package/es/common/tab-layout/tab-dropdown/tab-dropdown.mjs +1 -1
- package/es/common/tab-layout/tab-sidebar-layout/tab-sidebar-layout.css +1 -1
- package/es/common/view-message/view-message.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.css +1 -1
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +2 -2
- package/es/control/app-menu-icon-view/index.mjs +1 -1
- package/es/control/app-menu-list-view/app-menu-list-view.css +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.css +1 -1
- package/es/control/calendar/calendar.mjs +7 -7
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/caption-bar/caption-bar.mjs +1 -1
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-design/custom-dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard.css +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.css +1 -1
- package/es/control/drbar/drbar.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +2 -2
- package/es/control/drtab/drtab.css +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.css +1 -1
- package/es/control/search-bar/search-bar.mjs +10 -6
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- 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 +59 -32
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/control/tree/tree.css +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.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +6 -6
- package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
- 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 +2 -2
- 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.css +1 -1
- package/es/editor/html/quill-editor/quill-editor.mjs +12 -3
- package/es/editor/html/quill-editor-preview/quill-editor-preview.css +1 -1
- package/es/editor/html/quill-editor-preview/quill-editor-preview.mjs +5 -6
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +15 -4
- 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.css +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.css +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
- package/es/editor/text-box/input/input.mjs +36 -5
- package/es/editor/text-box/signature/signature.mjs +59 -19
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +2 -2
- package/es/editor/upload/upload-editor.controller.mjs +18 -1
- package/es/editor/upload/use/use-van-upload.mjs +6 -2
- package/es/ibiz-vue3.mjs +1 -0
- package/es/index.mjs +5 -1
- package/es/locale/en/index.mjs +26 -0
- package/es/locale/zh-CN/index.mjs +29 -1
- 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 +206 -194
- package/es/mob-app/guard/auth-guard/dyna-auth-guard.mjs +65 -0
- package/es/mob-app/guard/index.mjs +1 -0
- package/es/mob-app/index.mjs +1 -0
- package/es/mob-app/main.mjs +17 -2
- package/es/mob-app/router/index.mjs +136 -79
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +5 -5
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +1 -1
- 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/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.mjs +15 -0
- package/es/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.mjs +1 -1
- package/es/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +24580 -0
- 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 +29 -15
- 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 +1095 -0
- package/es/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
- package/es/util/ai-chat-util/ai-feedback/ai-feedback.mjs +140 -0
- package/es/util/app-drawer/app-drawer-component.mjs +18 -14
- package/es/util/app-modal/app-modal-component.mjs +7 -2
- package/es/util/app-popover/app-popover-component.mjs +4 -4
- package/es/util/app-util/app-util.mjs +112 -7
- 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 +4 -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 +55 -0
- package/es/util/xlsx-util/xlsx-util.mjs +163 -0
- package/es/view/portal-view/portal-view.mjs +3 -2
- 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 +12 -1
- package/es/view-engine/mob-edit-view.engine.mjs +1 -1
- package/es/view-engine/mob-pickup-md-view.engine.mjs +1 -0
- 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/FileSaver.min.cjs +5 -0
- package/lib/_virtual/index12.cjs +2 -2
- package/lib/_virtual/index13.cjs +2 -2
- package/lib/_virtual/index14.cjs +2 -2
- package/lib/_virtual/index18.cjs +2 -2
- package/lib/_virtual/index19.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/split-trigger/split-trigger.css +1 -1
- package/lib/common/tab-layout/tab-default-layout/tab-default-layout.cjs +1 -0
- package/lib/common/tab-layout/tab-dropdown/tab-dropdown.cjs +1 -1
- package/lib/common/tab-layout/tab-sidebar-layout/tab-sidebar-layout.css +1 -1
- package/lib/common/view-message/view-message.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 +2 -2
- package/lib/control/app-menu-icon-view/app-menu-icon-view.css +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/app-menu-list-view.css +1 -1
- package/lib/control/app-menu-list-view/index.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +7 -7
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/caption-bar/caption-bar.cjs +1 -1
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-design/custom-dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +3 -1
- package/lib/control/dashboard/dashboard.css +1 -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/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +2 -2
- package/lib/control/drtab/drtab.css +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/search-bar/search-bar.css +1 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +1 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +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 +59 -32
- package/lib/control/toolbar/toolbar.cjs +1 -1
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +9 -9
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-exp-bar/tree-exp-bar.cjs +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +6 -6
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
- 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 +2 -2
- 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/quill-editor.css +1 -1
- package/lib/editor/html/quill-editor-preview/quill-editor-preview.cjs +5 -6
- package/lib/editor/html/quill-editor-preview/quill-editor-preview.css +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +15 -4
- 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/slider/ibiz-slider/ibiz-slider.css +1 -1
- 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/stepper/ibiz-stepper/ibiz-stepper.css +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +35 -4
- package/lib/editor/text-box/signature/signature.cjs +59 -19
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +2 -2
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.css +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/ibiz-vue3.cjs +1 -0
- package/lib/index.cjs +10 -0
- package/lib/locale/en/index.cjs +26 -0
- package/lib/locale/zh-CN/index.cjs +29 -1
- 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 +206 -194
- package/lib/mob-app/guard/auth-guard/dyna-auth-guard.cjs +67 -0
- package/lib/mob-app/guard/index.cjs +2 -0
- package/lib/mob-app/index.cjs +2 -0
- package/lib/mob-app/main.cjs +17 -2
- package/lib/mob-app/router/index.cjs +136 -79
- package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +5 -5
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +1 -1
- 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/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.cjs +20 -0
- package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.cjs +1 -1
- package/lib/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.cjs +24599 -0
- 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 +29 -15
- 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 +1097 -0
- package/lib/util/ai-chat-util/ai-feedback/ai-feedback.cjs +142 -0
- package/lib/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
- package/lib/util/app-drawer/app-drawer-component.cjs +18 -14
- package/lib/util/app-modal/app-modal-component.cjs +7 -2
- package/lib/util/app-popover/app-popover-component.cjs +4 -4
- package/lib/util/app-util/app-util.cjs +111 -6
- 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 +8 -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 +58 -0
- package/lib/util/xlsx-util/xlsx-util.cjs +166 -0
- package/lib/view/portal-view/portal-view.cjs +3 -2
- 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 +11 -0
- package/lib/view-engine/mob-edit-view.engine.cjs +1 -1
- package/lib/view-engine/mob-pickup-md-view.engine.cjs +1 -0
- 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 +14 -11
- package/dist/chart-j1WkpBhc.js +0 -2
- package/dist/ibiz-markdown-editor-DMe7ZdYW.js +0 -2
- package/dist/ibiz-markdown-editor-DMe7ZdYW.js.map +0 -1
- package/dist/index-BkzKmBm3.js +0 -2
- package/dist/index-BkzKmBm3.js.map +0 -1
- package/dist/index-CADWRoaa.js +0 -76
- package/dist/index-CADWRoaa.js.map +0 -1
- package/dist/index-ugd4IDkI.js +0 -2
- package/dist/index-ugd4IDkI.js.map +0 -1
- package/dist/quill-D-355-KZ.js +0 -50
- package/dist/quill-editor-DyVF1l3P.js +0 -2
- package/dist/quill-editor-DyVF1l3P.js.map +0 -1
- package/dist/quill-editor-preview-3eAbHBYz.js +0 -2
- package/dist/quill-editor-preview-3eAbHBYz.js.map +0 -1
- package/dist/tree-sdPuTW-7.js +0 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./ai-feedback.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
10
|
+
}
|
|
11
|
+
const AIFeedback = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizAIFeedback",
|
|
13
|
+
props: {
|
|
14
|
+
content: {
|
|
15
|
+
type: String
|
|
16
|
+
},
|
|
17
|
+
modal: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props) {
|
|
23
|
+
const ns = vue3Util.useNamespace("ai-feedback");
|
|
24
|
+
const feedback = vue.reactive({
|
|
25
|
+
description: "",
|
|
26
|
+
feedbackItems: []
|
|
27
|
+
});
|
|
28
|
+
const FEEDBACK_CATEGORIES = [{
|
|
29
|
+
title: ibiz.i18n.t("util.aiChartUtil.regardingIssue"),
|
|
30
|
+
children: [ibiz.i18n.t("util.aiChartUtil.understandProblem"), ibiz.i18n.t("util.aiChartUtil.forgotContext"), ibiz.i18n.t("util.aiChartUtil.notFollowingRequire")]
|
|
31
|
+
}, {
|
|
32
|
+
title: ibiz.i18n.t("util.aiChartUtil.regardingResponse"),
|
|
33
|
+
children: [ibiz.i18n.t("util.aiChartUtil.incorrectAswer"), ibiz.i18n.t("util.aiChartUtil.logicalConfusion"), ibiz.i18n.t("util.aiChartUtil.poorTimeliness"), ibiz.i18n.t("util.aiChartUtil.poorReadability"), ibiz.i18n.t("util.aiChartUtil.incompleteAnswer"), ibiz.i18n.t("util.aiChartUtil.unprofessional")]
|
|
34
|
+
}, {
|
|
35
|
+
title: ibiz.i18n.t("util.aiChartUtil.report"),
|
|
36
|
+
children: [ibiz.i18n.t("util.aiChartUtil.pornographicVulgar"), ibiz.i18n.t("util.aiChartUtil.politicallySensitive"), ibiz.i18n.t("util.aiChartUtil.illegalCriminal"), ibiz.i18n.t("util.aiChartUtil.discriminationPrejudice"), ibiz.i18n.t("util.aiChartUtil.violationPrivacy"), ibiz.i18n.t("util.aiChartUtil.contentInfringement")]
|
|
37
|
+
}];
|
|
38
|
+
const onInitFeedback = () => {
|
|
39
|
+
feedback.feedbackItems = FEEDBACK_CATEGORIES.map((category) => ({
|
|
40
|
+
title: category.title,
|
|
41
|
+
value: void 0,
|
|
42
|
+
children: [...category.children]
|
|
43
|
+
}));
|
|
44
|
+
if (props.content) {
|
|
45
|
+
const contentArray = props.content.split(";").filter((item) => item.trim());
|
|
46
|
+
if (contentArray.length > 0) {
|
|
47
|
+
const feedbackValues = contentArray.slice(0, FEEDBACK_CATEGORIES.length);
|
|
48
|
+
feedbackValues.forEach((value, index) => {
|
|
49
|
+
feedback.feedbackItems[index].value = value;
|
|
50
|
+
});
|
|
51
|
+
const descriptionParts = contentArray.slice(FEEDBACK_CATEGORIES.length);
|
|
52
|
+
feedback.description = descriptionParts.join(";");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const onCancel = () => {
|
|
57
|
+
props.modal.dismiss();
|
|
58
|
+
};
|
|
59
|
+
const onConfirm = () => {
|
|
60
|
+
const contentArray = feedback.feedbackItems.map((item) => item.value || "").filter((item) => !!item);
|
|
61
|
+
contentArray.push(feedback.description);
|
|
62
|
+
props.modal.dismiss({
|
|
63
|
+
ok: true,
|
|
64
|
+
data: [{
|
|
65
|
+
feedbackContent: contentArray.join(";")
|
|
66
|
+
}]
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
vue.onMounted(() => {
|
|
70
|
+
onInitFeedback();
|
|
71
|
+
});
|
|
72
|
+
return {
|
|
73
|
+
ns,
|
|
74
|
+
feedback,
|
|
75
|
+
onCancel,
|
|
76
|
+
onConfirm
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
render() {
|
|
80
|
+
let _slot2, _slot3;
|
|
81
|
+
return vue.createVNode("div", {
|
|
82
|
+
"class": this.ns.b()
|
|
83
|
+
}, [vue.createVNode("div", {
|
|
84
|
+
"class": this.ns.e("header")
|
|
85
|
+
}, [vue.createVNode("div", {
|
|
86
|
+
"class": this.ns.em("header", "title")
|
|
87
|
+
}, [ibiz.i18n.t("util.aiChartUtil.feedback")]), vue.createVNode(vue.resolveComponent("van-icon"), {
|
|
88
|
+
"name": "cross",
|
|
89
|
+
"class": this.ns.em("header", "close-icon"),
|
|
90
|
+
"onClick": this.onCancel,
|
|
91
|
+
"title": ibiz.i18n.t("app.close")
|
|
92
|
+
}, null)]), vue.createVNode("div", {
|
|
93
|
+
"class": this.ns.e("content")
|
|
94
|
+
}, [this.feedback.feedbackItems.map((item) => {
|
|
95
|
+
let _slot;
|
|
96
|
+
return vue.createVNode("div", {
|
|
97
|
+
"class": this.ns.e("group")
|
|
98
|
+
}, [vue.createVNode("div", {
|
|
99
|
+
"class": this.ns.em("group", "title")
|
|
100
|
+
}, [item.title]), vue.createVNode(vue.resolveComponent("van-radio-group"), {
|
|
101
|
+
"class": this.ns.em("group", "container"),
|
|
102
|
+
"modelValue": item.value,
|
|
103
|
+
"onUpdate:modelValue": ($event) => item.value = $event
|
|
104
|
+
}, _isSlot(_slot = item.children.map((child) => {
|
|
105
|
+
return vue.createVNode(vue.resolveComponent("van-radio"), {
|
|
106
|
+
"class": this.ns.em("group", "item"),
|
|
107
|
+
"name": child
|
|
108
|
+
}, _isSlot(child) ? child : {
|
|
109
|
+
default: () => [child]
|
|
110
|
+
});
|
|
111
|
+
})) ? _slot : {
|
|
112
|
+
default: () => [_slot]
|
|
113
|
+
})]);
|
|
114
|
+
}), vue.createVNode("div", {
|
|
115
|
+
"class": this.ns.e("description")
|
|
116
|
+
}, [vue.createVNode("div", {
|
|
117
|
+
"class": this.ns.em("description", "title")
|
|
118
|
+
}, [ibiz.i18n.t("util.aiChartUtil.description")]), vue.createVNode(vue.resolveComponent("van-field"), {
|
|
119
|
+
"class": this.ns.em("description", "input"),
|
|
120
|
+
"rows": 3,
|
|
121
|
+
"type": "textarea",
|
|
122
|
+
"modelValue": this.feedback.description,
|
|
123
|
+
"onUpdate:modelValue": ($event) => this.feedback.description = $event,
|
|
124
|
+
"placeholder": ibiz.i18n.t("util.aiChartUtil.placeholder")
|
|
125
|
+
}, null)])]), vue.createVNode("div", {
|
|
126
|
+
"class": this.ns.e("footer")
|
|
127
|
+
}, [vue.createVNode(vue.resolveComponent("van-button"), {
|
|
128
|
+
"class": this.ns.em("footer", "button"),
|
|
129
|
+
"onClick": this.onCancel
|
|
130
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.cancel")) ? _slot2 : {
|
|
131
|
+
default: () => [_slot2]
|
|
132
|
+
}), vue.createVNode(vue.resolveComponent("van-button"), {
|
|
133
|
+
"class": this.ns.em("footer", "button"),
|
|
134
|
+
"type": "primary",
|
|
135
|
+
"onClick": this.onConfirm
|
|
136
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("app.confirm")) ? _slot3 : {
|
|
137
|
+
default: () => [_slot3]
|
|
138
|
+
})])]);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
exports.AIFeedback = AIFeedback;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-ai-feedback{--ibiz-ai-feedback-color-header-close-icon:var(--ibiz-color-text-3);--ibiz-ai-feedback-color-group-title:var(--ibiz-color-text-2);--ibiz-ai-feedback-color-description-input-border:var(--ibiz-color-border);--ibiz-ai-feedback-spacing-padding:var(--ibiz-spacing-base);--ibiz-ai-feedback-spacing-group-title-padding:var(--ibiz-spacing-tight) 0;--ibiz-ai-feedback-spacing-group-item-padding:var(--ibiz-spacing-tight);--ibiz-ai-feedback-spacing-description-title-padding:var(--ibiz-spacing-tight) 0;--ibiz-ai-feedback-spacing-description-input-padding:var(--ibiz-spacing-extra-tight);--ibiz-ai-feedback-height-max-height:90vh;--ibiz-ai-feedback-height-content-max-height:70vh;--ibiz-ai-feedback-height-header-min-height:var(--ibiz-height-control-default);--ibiz-ai-feedback-width-group-item:50%;--ibiz-ai-feedback-font-header-font-size:var(--ibiz-font-size-header-6);--ibiz-ai-feedback-font-header-close-icon-font-size:var(--ibiz-font-size-header-3);--ibiz-ai-feedback-font-content-font-size:var(--ibiz-font-size-regular);--ibiz-ai-feedback-radius-description-input-border-radius:var(--ibiz-border-radius-small);--ibiz-ai-feedback-gap:var(--ibiz-spacing-base-tight);--ibiz-ai-feedback-gap-footer:var(--ibiz-spacing-tight);display:flex;flex-direction:column;gap:var(--ibiz-ai-feedback-gap);max-height:var(--ibiz-ai-feedback-height-max-height);padding:var(--ibiz-ai-feedback-spacing-padding);overflow-y:hidden}.ibiz-ai-feedback__header{display:flex;align-items:center;justify-content:space-between;min-height:var(--ibiz-ai-feedback-height-header-min-height);font-size:var(--ibiz-ai-feedback-font-header-font-size)}.ibiz-ai-feedback__header--close-icon{font-size:var(--ibiz-ai-feedback-font-header-close-icon-font-size);color:var(--ibiz-ai-feedback-color-header-close-icon);cursor:pointer}.ibiz-ai-feedback__content{max-height:var(--ibiz-ai-feedback-height-content-max-height);overflow-y:auto;font-size:var(--ibiz-ai-feedback-font-content-font-size)}.ibiz-ai-feedback__content .ibiz-ai-feedback__group:first-child .ibiz-ai-feedback__group--title{padding-top:0}.ibiz-ai-feedback__group--title{padding:var(--ibiz-ai-feedback-spacing-group-title-padding);color:var(--ibiz-ai-feedback-color-group-title)}.ibiz-ai-feedback__group--container{display:flex;flex-wrap:wrap}.ibiz-ai-feedback__group--item{width:var(--ibiz-ai-feedback-width-group-item);padding:var(--ibiz-ai-feedback-spacing-group-item-padding)}.ibiz-ai-feedback__description--title{padding:var(--ibiz-ai-feedback-spacing-description-title-padding)}.ibiz-ai-feedback__description--input{border:1px solid var(--ibiz-ai-feedback-color-description-input-border);border-radius:var(--ibiz-ai-feedback-radius-description-input-border-radius)}.ibiz-ai-feedback__description--input.van-cell{padding:var(--ibiz-ai-feedback-spacing-description-input-padding);font-size:inherit}.ibiz-ai-feedback__footer{display:flex;gap:var(--ibiz-ai-feedback-gap-footer);justify-content:space-between}.ibiz-ai-feedback__footer--button{flex:1}
|
|
@@ -42,22 +42,27 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
isShow.value = true;
|
|
43
43
|
};
|
|
44
44
|
let direction = "";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
}
|
|
57
59
|
}
|
|
58
60
|
const customStyle = vue.reactive({
|
|
59
61
|
height: "80%"
|
|
60
62
|
});
|
|
63
|
+
if (["left", "right"].includes(direction)) {
|
|
64
|
+
customStyle.height = "100%";
|
|
65
|
+
}
|
|
61
66
|
const {
|
|
62
67
|
width,
|
|
63
68
|
height
|
|
@@ -92,9 +97,8 @@ const AppDrawerComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
97
|
return vue.createVNode(vue.resolveComponent("van-popup"), vue.mergeProps({
|
|
93
98
|
"show": this.isShow,
|
|
94
99
|
"onUpdate:show": ($event) => this.isShow = $event,
|
|
95
|
-
"lock-scroll":
|
|
100
|
+
"lock-scroll": false,
|
|
96
101
|
"round": true,
|
|
97
|
-
"closeable": true,
|
|
98
102
|
"close-on-popstate": true,
|
|
99
103
|
"close-icon-position": "top-left",
|
|
100
104
|
"class": this.ns.b(),
|
|
@@ -45,8 +45,8 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
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"), {
|
|
@@ -109,11 +112,13 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
112
|
}
|
|
110
113
|
return vue.createVNode(vue.resolveComponent("van-dialog"), vue.mergeProps({
|
|
111
114
|
"show": this.isShow,
|
|
115
|
+
"lockScroll": false,
|
|
112
116
|
"close-on-popstate": true,
|
|
113
117
|
"showConfirmButton": false,
|
|
114
118
|
"class": [this.ns.b(), this.options.placement && this.ns.m(this.options.placement), this.options.modalClass],
|
|
115
119
|
"style": this.customStyle,
|
|
116
120
|
"overlay": this.options.overlay,
|
|
121
|
+
"close-on-click-overlay": true,
|
|
117
122
|
"before-close": this.onBeforeClose
|
|
118
123
|
}, this.options), _isSlot(slots) ? slots : {
|
|
119
124
|
default: () => [slots]
|
|
@@ -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"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -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(
|
|
@@ -190,8 +225,75 @@ class AppUtil {
|
|
|
190
225
|
* @return {*} {Promise<IChatMessage[]>}
|
|
191
226
|
* @memberof AppUtil
|
|
192
227
|
*/
|
|
193
|
-
async openAiChat(
|
|
194
|
-
|
|
228
|
+
async openAiChat(chartParams) {
|
|
229
|
+
const {
|
|
230
|
+
data,
|
|
231
|
+
view,
|
|
232
|
+
ctrl,
|
|
233
|
+
params,
|
|
234
|
+
context,
|
|
235
|
+
appDEACModeId,
|
|
236
|
+
appDataEntityId
|
|
237
|
+
} = chartParams;
|
|
238
|
+
const deACMode = await runtime.getDeACMode(
|
|
239
|
+
appDEACModeId,
|
|
240
|
+
appDataEntityId,
|
|
241
|
+
context.srfappid
|
|
242
|
+
);
|
|
243
|
+
if (!deACMode)
|
|
244
|
+
return Promise.resolve([]);
|
|
245
|
+
const chatInstance = await ibiz.aiChatUtil.getAIChat();
|
|
246
|
+
const appDataEntityName = runtime.calcDeCodeNameById(appDataEntityId);
|
|
247
|
+
let topicId = "mob@".concat(appDataEntityId, "@").concat(appDEACModeId, "@");
|
|
248
|
+
topicId += context[appDataEntityName] ? context[appDataEntityName] : "default";
|
|
249
|
+
const sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId);
|
|
250
|
+
const topicCaption = "[".concat(deACMode.logicName, "]").concat((data == null ? void 0 : data.srfmajortext) || "");
|
|
251
|
+
const tempParams = { ...params, ...{ srfactag: deACMode.codeName } };
|
|
252
|
+
const { zIndex } = vue3Util.useUIStore();
|
|
253
|
+
const containerZIndex = zIndex.increment();
|
|
254
|
+
const { containerOptions, topicOptions, chatOptions } = await ibiz.aiChatUtil.getUIActionExAIChatParams(
|
|
255
|
+
context,
|
|
256
|
+
params,
|
|
257
|
+
data,
|
|
258
|
+
deACMode,
|
|
259
|
+
{ chatInstance, view, ctrl }
|
|
260
|
+
);
|
|
261
|
+
const resourceOptions = await ibiz.aiChatUtil.getAIResourceOptions(
|
|
262
|
+
context,
|
|
263
|
+
params
|
|
264
|
+
);
|
|
265
|
+
return new Promise((resolve) => {
|
|
266
|
+
chatInstance.create({
|
|
267
|
+
mode: "TOPIC",
|
|
268
|
+
resourceOptions,
|
|
269
|
+
containerOptions: {
|
|
270
|
+
zIndex: containerZIndex,
|
|
271
|
+
enableBackFill: false,
|
|
272
|
+
...containerOptions
|
|
273
|
+
},
|
|
274
|
+
topicOptions: {
|
|
275
|
+
appid: ibiz.env.appId,
|
|
276
|
+
id: topicId,
|
|
277
|
+
caption: topicCaption,
|
|
278
|
+
url: window.location.hash.substring(1),
|
|
279
|
+
type: context.srftopicpath || "default",
|
|
280
|
+
...topicOptions
|
|
281
|
+
},
|
|
282
|
+
chatOptions: {
|
|
283
|
+
caption: deACMode.logicName,
|
|
284
|
+
context: { ...context },
|
|
285
|
+
params: tempParams,
|
|
286
|
+
appDataEntityId,
|
|
287
|
+
sessionid,
|
|
288
|
+
// 扩展参数
|
|
289
|
+
...chatOptions,
|
|
290
|
+
// 关闭回调
|
|
291
|
+
closed: (context2, params2, messages) => {
|
|
292
|
+
resolve(messages);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
});
|
|
195
297
|
}
|
|
196
298
|
/**
|
|
197
299
|
* @description 当前路由转换成路由路径对象
|
|
@@ -207,8 +309,11 @@ class AppUtil {
|
|
|
207
309
|
* }}
|
|
208
310
|
* @memberof AppUtil
|
|
209
311
|
*/
|
|
210
|
-
route2routeObject(isRouteModal) {
|
|
211
|
-
const routePath = vue3Util.route2routePath(
|
|
312
|
+
route2routeObject(isRouteModal = false) {
|
|
313
|
+
const routePath = vue3Util.route2routePath(
|
|
314
|
+
this.router.currentRoute.value,
|
|
315
|
+
isRouteModal
|
|
316
|
+
);
|
|
212
317
|
return routePath;
|
|
213
318
|
}
|
|
214
319
|
/**
|
|
@@ -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
|
}
|
package/lib/util/index.cjs
CHANGED
|
@@ -16,6 +16,9 @@ var usePopstateUtil = require('./use-popstate-util/use-popstate-util.cjs');
|
|
|
16
16
|
var qrcodeUtil = require('./qrcode-util/qrcode-util.cjs');
|
|
17
17
|
var buttonUtil = require('./button-util/button-util.cjs');
|
|
18
18
|
var listRenderUtil = require('./list-util/list-render-util.cjs');
|
|
19
|
+
var userRouteUtil = require('./user-route-util/user-route-util.cjs');
|
|
20
|
+
var aiChatUtil = require('./ai-chat-util/ai-chat-util.cjs');
|
|
21
|
+
var printPreviewUtil = require('./print-preview-util/print-preview-util.cjs');
|
|
19
22
|
var viewStack = require('./store/view-stack/view-stack.cjs');
|
|
20
23
|
|
|
21
24
|
"use strict";
|
|
@@ -33,7 +36,12 @@ exports.usePagination = usePagination.usePagination;
|
|
|
33
36
|
exports.FullscreenUtil = fullscreenUtil.FullscreenUtil;
|
|
34
37
|
exports.usePopstateListener = usePopstateUtil.usePopstateListener;
|
|
35
38
|
exports.QrcodeUtil = qrcodeUtil.QrcodeUtil;
|
|
39
|
+
exports.calcPopoverPlacement = buttonUtil.calcPopoverPlacement;
|
|
36
40
|
exports.convertBtnType = buttonUtil.convertBtnType;
|
|
37
41
|
exports.useListRender = listRenderUtil.useListRender;
|
|
42
|
+
exports.splitPathToSegments = userRouteUtil.splitPathToSegments;
|
|
43
|
+
exports.validateRouteSegments = userRouteUtil.validateRouteSegments;
|
|
44
|
+
exports.AIChatUtil = aiChatUtil.AIChatUtil;
|
|
45
|
+
exports.PrintPreviewUtil = printPreviewUtil.PrintPreviewUtil;
|
|
38
46
|
exports.calcUniqueKey = viewStack.calcUniqueKey;
|
|
39
47
|
exports.useViewStack = viewStack.useViewStack;
|
|
@@ -23,6 +23,7 @@ function useListRender(props, c, ns) {
|
|
|
23
23
|
const enableLoadMore = vue.computed(() => {
|
|
24
24
|
return c.state.items.length < c.state.total && c.state.total > c.state.size;
|
|
25
25
|
});
|
|
26
|
+
const isUpdating = vue.ref(false);
|
|
26
27
|
c.evt.on("onLoadSuccess", () => {
|
|
27
28
|
if (!enablePagingBar && pagingMode !== 3) {
|
|
28
29
|
isLodeFinished.value = c.state.items.length >= c.state.total || c.state.total <= c.state.size;
|
|
@@ -46,6 +47,12 @@ function useListRender(props, c, ns) {
|
|
|
46
47
|
c.state.isLoaded = true;
|
|
47
48
|
}
|
|
48
49
|
});
|
|
50
|
+
c.evt.on("onLoadSuccess", () => {
|
|
51
|
+
isUpdating.value = true;
|
|
52
|
+
window.requestAnimationFrame(() => {
|
|
53
|
+
isUpdating.value = false;
|
|
54
|
+
});
|
|
55
|
+
});
|
|
49
56
|
vue.watch(() => props.data, () => {
|
|
50
57
|
if (props.isSimple) {
|
|
51
58
|
initSimpleData();
|
|
@@ -67,9 +74,9 @@ function useListRender(props, c, ns) {
|
|
|
67
74
|
const calcItemStyle = (row) => {
|
|
68
75
|
const cardStyle = {};
|
|
69
76
|
Object.assign(cardStyle, ns.cssVarBlock({
|
|
70
|
-
"color-bg":
|
|
71
|
-
"color-text":
|
|
72
|
-
"color-item-active":
|
|
77
|
+
"color-bg": "".concat(row.bgcolor || ""),
|
|
78
|
+
"color-text": "".concat(row.fontcolor || ""),
|
|
79
|
+
"color-item-active": "".concat(row.activecolor || "")
|
|
73
80
|
}));
|
|
74
81
|
return cardStyle;
|
|
75
82
|
};
|
|
@@ -156,7 +163,7 @@ function useListRender(props, c, ns) {
|
|
|
156
163
|
return;
|
|
157
164
|
}
|
|
158
165
|
const ctrlModel = controls.find((item) => {
|
|
159
|
-
return item.name ===
|
|
166
|
+
return item.name === "".concat(name, "_quicktoolbar");
|
|
160
167
|
});
|
|
161
168
|
if (ctrlModel) {
|
|
162
169
|
return vue.createVNode(vue.resolveComponent("iBizToolbarControl"), {
|
|
@@ -194,15 +201,27 @@ function useListRender(props, c, ns) {
|
|
|
194
201
|
if (!c.state.isLoaded) {
|
|
195
202
|
return null;
|
|
196
203
|
}
|
|
204
|
+
let disabled = true;
|
|
205
|
+
if (enablePagingBar === true) {
|
|
206
|
+
disabled = false;
|
|
207
|
+
}
|
|
208
|
+
if (pagingMode && pagingMode !== 0) {
|
|
209
|
+
disabled = false;
|
|
210
|
+
}
|
|
211
|
+
let finishedText = ibiz.i18n.t("control.common.loadFinish");
|
|
212
|
+
if (c.state.curPage < c.state.totalPages || disabled) {
|
|
213
|
+
finishedText = "";
|
|
214
|
+
}
|
|
197
215
|
return vue.createVNode(vue.resolveComponent("van-list"), {
|
|
198
216
|
"class": [ns.e("content"), ns.is("show-under-line", controlStyle !== "EXTVIEW1")],
|
|
199
217
|
"loading": c.state.isLoading,
|
|
200
218
|
"error": isLoadError.value,
|
|
201
219
|
"onUpdate:error": ($event) => isLoadError.value = $event,
|
|
202
220
|
"offset": 50,
|
|
221
|
+
"disabled": disabled || isUpdating.value,
|
|
203
222
|
"finished": isLodeFinished.value,
|
|
204
223
|
"loading-text": ibiz.i18n.t("control.common.loadMore"),
|
|
205
|
-
"finished-text":
|
|
224
|
+
"finished-text": finishedText,
|
|
206
225
|
"error-text": ibiz.i18n.t("control.common.loadError"),
|
|
207
226
|
"onLoad": () => c.loadMore()
|
|
208
227
|
}, {
|
|
@@ -47,7 +47,7 @@ class LoadingUtil {
|
|
|
47
47
|
const ns = vue3Util.useNamespace("loading");
|
|
48
48
|
if (this.count === 0) {
|
|
49
49
|
this.loading = Vant.showLoadingToast({
|
|
50
|
-
message:
|
|
50
|
+
message: "".concat(ibiz.i18n.t("util.loading"), "..."),
|
|
51
51
|
forbidClick: true,
|
|
52
52
|
className: ns.b(),
|
|
53
53
|
loadingType: "spinner",
|