@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
|
@@ -244,8 +244,8 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
244
244
|
}, [createVNode("div", {
|
|
245
245
|
"class": [ns.bem("pop", "list", "item-text"), ns.is("bkcolor", !!(item == null ? void 0 : item.bkcolor))],
|
|
246
246
|
"style": (item == null ? void 0 : item.color) || (item == null ? void 0 : item.bkcolor) ? ns.cssVarBlock({
|
|
247
|
-
"pop-color-item":
|
|
248
|
-
"pop-color-item-bg":
|
|
247
|
+
"pop-color-item": "".concat(item.color || ""),
|
|
248
|
+
"pop-color-item-bg": "".concat(item.bkcolor || "")
|
|
249
249
|
}) : ""
|
|
250
250
|
}, [item[c.textName]]), selected && createVNode(resolveComponent("van-icon"), {
|
|
251
251
|
"class": ns.bem("pop", "list", "selected"),
|
|
@@ -97,9 +97,9 @@ const IBizPickerSelectView = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
if (event && Array.isArray(event)) {
|
|
98
98
|
event.forEach((select) => {
|
|
99
99
|
const srfkey = select[c.keyName] ? select[c.keyName] : select.srfkey;
|
|
100
|
-
tempValue +=
|
|
100
|
+
tempValue += "".concat(srfkey, ",");
|
|
101
101
|
const srfmajortext = select[c.textName] ? select[c.textName] : select.srfmajortext;
|
|
102
|
-
tempText +=
|
|
102
|
+
tempText += "".concat(srfmajortext, ",");
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
tempValue = tempValue.substring(0, tempValue.length - 1);
|
|
@@ -85,7 +85,7 @@ class PickerEditorController extends EditorController {
|
|
|
85
85
|
if (this.deACMode) {
|
|
86
86
|
const { minorSortAppDEFieldId, minorSortDir } = this.deACMode;
|
|
87
87
|
if (minorSortAppDEFieldId && minorSortDir) {
|
|
88
|
-
this.sort =
|
|
88
|
+
this.sort = "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
|
|
89
89
|
}
|
|
90
90
|
if (this.deACMode.textAppDEFieldId) {
|
|
91
91
|
this.textName = this.deACMode.textAppDEFieldId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-date-range-picker{--ibiz-date-range-picker-color:var(--ibiz-editor-default-text-color);--ibiz-date-range-picker-color-bg:transparent;--ibiz-date-range-picker-color-placeholder:var(--ibiz-editor-default-placeholder-color);--ibiz-date-range-picker-color-disabled:var(--ibiz-editor-disabled-text-color);--ibiz-date-range-picker-color-readonly:var(--ibiz-editor-readonly-text-color);--ibiz-date-range-picker-font-fontSize:var(--ibiz-editor-default-font-size);--ibiz-date-range-picker-font-lineHeight:var(--ibiz-editor-default-line-height);--ibiz-date-range-picker-font-textAlign:var(--ibiz-editor-default-text-align);display:flex;align-items:center;width:100%;overflow:hidden;font-size:var(--ibiz-date-range-picker-font-fontSize);line-height:var(--ibiz-date-range-picker-font-lineHeight);color:var(--ibiz-date-range-picker-color);text-align:var(--ibiz-date-range-picker-font-textAlign);--van-field-input-text-color:var(--ibiz-date-range-picker-color);--van-cell-text-color:var(--ibiz-date-range-picker-color);--van-cell-value-color:var(--ibiz-date-range-picker-color);--van-cell-line-height:var(--ibiz-date-range-picker-font-lineHeight);--van-cell-font-size:var(--ibiz-date-range-picker-font-fontSize);--van-cell-value-font-size:var(--ibiz-date-range-picker-font-fontSize)}.ibiz-date-range-picker__content{position:relative;display:flex;flex:1;align-items:center}.ibiz-date-range-picker__content input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ibiz-date-range-picker__content.is-end .van-field input{text-align:right}.ibiz-date-range-picker__content.is-end .van-field input::-moz-placeholder{text-align:right}.ibiz-date-range-picker__content.is-end .van-field input::placeholder{text-align:right}.ibiz-date-range-picker__expand-hidden{opacity:0}.ibiz-date-range-picker__input{position:absolute;top:0;left:0}.ibiz-date-range-picker .van-field{line-height:var(--ibiz-date-range-picker-font-lineHeight)}.ibiz-date-range-picker .van-field::after{display:none}.ibiz-date-range-picker .van-field .van-field__control--custom{min-height:var(--ibiz-date-range-picker-font-lineHeight)}.ibiz-date-range-picker input{width:100%;padding:0;font-size:var(--ibiz-date-range-picker-font-fontSize);line-height:var(--ibiz-date-range-picker-font-lineHeight);color:var(--ibiz-date-range-picker-color);background-color:var(--ibiz-date-range-picker-color-bg);border:none;box-shadow:none}.ibiz-date-range-picker input::-moz-placeholder{color:var(--ibiz-date-range-picker-color-placeholder);-webkit-text-fill-color:var(--ibiz-date-range-picker-color-placeholder)}.ibiz-date-range-picker input::placeholder{color:var(--ibiz-date-range-picker-color-placeholder);-webkit-text-fill-color:var(--ibiz-date-range-picker-color-placeholder)}.ibiz-date-range-picker{display:flex;align-items:center;justify-content:center}.ibiz-date-range-picker--disabled{--van-field-input-text-color:var(--ibiz-date-range-picker-color-disabled);color:var(--ibiz-date-range-picker-color-disabled)}.ibiz-date-range-picker--disabled input{color:var(--ibiz-date-range-picker-color-disabled)}.ibiz-date-range-picker--readonly{--van-field-input-text-color:var(--ibiz-date-range-picker-color-readonly);color:var(--ibiz-date-range-picker-color-readonly)}.ibiz-date-range-picker--readonly input{color:var(--ibiz-date-range-picker-color-readonly)}
|
|
1
|
+
.ibiz-date-range-picker{--ibiz-date-range-picker-color:var(--ibiz-editor-default-text-color);--ibiz-date-range-picker-color-bg:transparent;--ibiz-date-range-picker-color-placeholder:var(--ibiz-editor-default-placeholder-color);--ibiz-date-range-picker-color-disabled:var(--ibiz-editor-disabled-text-color);--ibiz-date-range-picker-color-readonly:var(--ibiz-editor-readonly-text-color);--ibiz-date-range-picker-font-fontSize:var(--ibiz-editor-default-font-size);--ibiz-date-range-picker-font-lineHeight:var(--ibiz-editor-default-line-height);--ibiz-date-range-picker-font-textAlign:var(--ibiz-editor-default-text-align);display:flex;align-items:center;width:100%;overflow:hidden;font-size:var(--ibiz-date-range-picker-font-fontSize);line-height:var(--ibiz-date-range-picker-font-lineHeight);color:var(--ibiz-date-range-picker-color);text-align:var(--ibiz-date-range-picker-font-textAlign);--van-field-input-text-color:var(--ibiz-date-range-picker-color);--van-cell-text-color:var(--ibiz-date-range-picker-color);--van-cell-value-color:var(--ibiz-date-range-picker-color);--van-cell-line-height:var(--ibiz-date-range-picker-font-lineHeight);--van-cell-font-size:var(--ibiz-date-range-picker-font-fontSize);--van-cell-value-font-size:var(--ibiz-date-range-picker-font-fontSize)}.ibiz-date-range-picker__content{position:relative;display:flex;flex:1;align-items:center;min-height:var(--ibiz-date-range-picker-font-lineHeight)}.ibiz-date-range-picker__content input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ibiz-date-range-picker__content.is-end .van-field input{text-align:right}.ibiz-date-range-picker__content.is-end .van-field input::-moz-placeholder{text-align:right}.ibiz-date-range-picker__content.is-end .van-field input::placeholder{text-align:right}.ibiz-date-range-picker__expand-hidden{opacity:0}.ibiz-date-range-picker__input{position:absolute;top:0;left:0}.ibiz-date-range-picker .van-field{line-height:var(--ibiz-date-range-picker-font-lineHeight)}.ibiz-date-range-picker .van-field::after{display:none}.ibiz-date-range-picker .van-field .van-field__control--custom{min-height:var(--ibiz-date-range-picker-font-lineHeight)}.ibiz-date-range-picker input{width:100%;padding:0;font-size:var(--ibiz-date-range-picker-font-fontSize);line-height:var(--ibiz-date-range-picker-font-lineHeight);color:var(--ibiz-date-range-picker-color);background-color:var(--ibiz-date-range-picker-color-bg);border:none;box-shadow:none}.ibiz-date-range-picker input::-moz-placeholder{color:var(--ibiz-date-range-picker-color-placeholder);-webkit-text-fill-color:var(--ibiz-date-range-picker-color-placeholder)}.ibiz-date-range-picker input::placeholder{color:var(--ibiz-date-range-picker-color-placeholder);-webkit-text-fill-color:var(--ibiz-date-range-picker-color-placeholder)}.ibiz-date-range-picker{display:flex;align-items:center;justify-content:center}.ibiz-date-range-picker--disabled{--van-field-input-text-color:var(--ibiz-date-range-picker-color-disabled);color:var(--ibiz-date-range-picker-color-disabled)}.ibiz-date-range-picker--disabled input{color:var(--ibiz-date-range-picker-color-disabled)}.ibiz-date-range-picker--readonly{--van-field-input-text-color:var(--ibiz-date-range-picker-color-readonly);color:var(--ibiz-date-range-picker-color-readonly)}.ibiz-date-range-picker--readonly input{color:var(--ibiz-date-range-picker-color-readonly)}
|
|
@@ -154,8 +154,8 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
154
154
|
}, [createVNode("div", {
|
|
155
155
|
"class": [ns.bem("pop", "list", "item-text"), ns.is("bkcolor", !!(item == null ? void 0 : item.bkcolor))],
|
|
156
156
|
"style": (item == null ? void 0 : item.color) || (item == null ? void 0 : item.bkcolor) ? ns.cssVarBlock({
|
|
157
|
-
"pop-color-item":
|
|
158
|
-
"pop-color-item-bg":
|
|
157
|
+
"pop-color-item": "".concat(item.color || ""),
|
|
158
|
+
"pop-color-item-bg": "".concat(item.bkcolor || "")
|
|
159
159
|
}) : ""
|
|
160
160
|
}, [item.sysImage && createVNode(resolveComponent("iBizIcon"), {
|
|
161
161
|
"icon": item.sysImage
|
|
@@ -203,9 +203,9 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
203
203
|
return createVNode("span", {
|
|
204
204
|
"class": [this.ns.b("readonly-text-item"), codeListItem == null ? void 0 : codeListItem.textCls, (codeListItem == null ? void 0 : codeListItem.bkcolor) ? this.ns.bm("readonly-text-item", "has-bg") : ""],
|
|
205
205
|
"style": (codeListItem == null ? void 0 : codeListItem.color) || (codeListItem == null ? void 0 : codeListItem.bkcolor) ? this.ns.cssVarBlock({
|
|
206
|
-
"color-readonly":
|
|
207
|
-
"color-item":
|
|
208
|
-
"color-item-bg":
|
|
206
|
+
"color-readonly": "".concat(codeListItem.color || ""),
|
|
207
|
+
"color-item": "".concat(codeListItem.color || ""),
|
|
208
|
+
"color-item-bg": "".concat(codeListItem.bkcolor || "")
|
|
209
209
|
}) : ""
|
|
210
210
|
}, [createVNode("span", {
|
|
211
211
|
"class": this.ns.be("readonly-text-item", "label")
|
|
@@ -230,8 +230,8 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
"style": (optionValue == null ? void 0 : optionValue.color) || (optionValue == null ? void 0 : optionValue.bkcolor) ? this.ns.cssVarBlock({
|
|
233
|
-
"color-item":
|
|
234
|
-
"color-item-bg":
|
|
233
|
+
"color-item": "".concat(optionValue.color || ""),
|
|
234
|
+
"color-item-bg": "".concat(optionValue.bkcolor || "")
|
|
235
235
|
}) : ""
|
|
236
236
|
}, {
|
|
237
237
|
input: () => {
|
|
@@ -36,7 +36,7 @@ const IBizEmojiPicker = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
};
|
|
37
37
|
watch(() => props.value, (newVal, oldVal) => {
|
|
38
38
|
if (newVal !== oldVal) {
|
|
39
|
-
emoji.value = newVal && isEmoji(
|
|
39
|
+
emoji.value = newVal && isEmoji("".concat(newVal)) ? base64ToStr(newVal) : newVal;
|
|
40
40
|
}
|
|
41
41
|
}, {
|
|
42
42
|
immediate: true
|
|
@@ -50,6 +50,17 @@ class HtmlEditorController extends EditorController {
|
|
|
50
50
|
* @memberof HtmlEditorController
|
|
51
51
|
*/
|
|
52
52
|
__publicField(this, "imageMode", "file");
|
|
53
|
+
/**
|
|
54
|
+
* @description 是否启用无权限
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof HtmlEditorController
|
|
57
|
+
*/
|
|
58
|
+
__publicField(this, "enableNoAccess", false);
|
|
59
|
+
/**
|
|
60
|
+
* @description 是否使用全局文件下载前缀
|
|
61
|
+
* @memberof HtmlEditorController
|
|
62
|
+
*/
|
|
63
|
+
__publicField(this, "globalDownloadPrifix", false);
|
|
53
64
|
/**
|
|
54
65
|
* @description quill配置
|
|
55
66
|
* @type {IData}
|
|
@@ -89,16 +100,18 @@ class HtmlEditorController extends EditorController {
|
|
|
89
100
|
imagemode,
|
|
90
101
|
modules,
|
|
91
102
|
defaultheight,
|
|
92
|
-
showcollapse
|
|
103
|
+
showcollapse,
|
|
104
|
+
enablenoaccess,
|
|
105
|
+
globaldownloadprifix
|
|
93
106
|
} = this.editorParams;
|
|
94
107
|
if (uploadParams) {
|
|
95
108
|
try {
|
|
96
109
|
this.uploadParams = JSON.parse(uploadParams);
|
|
97
110
|
} catch (error) {
|
|
98
111
|
ibiz.log.error(
|
|
99
|
-
|
|
112
|
+
"\u7F16\u8F91\u5668[".concat(ibiz.log.error(
|
|
100
113
|
error
|
|
101
|
-
)
|
|
114
|
+
), "]\u7F16\u8F91\u5668\u53C2\u6570 uploadParams \u975E json \u683C\u5F0F")
|
|
102
115
|
);
|
|
103
116
|
}
|
|
104
117
|
}
|
|
@@ -107,9 +120,9 @@ class HtmlEditorController extends EditorController {
|
|
|
107
120
|
this.uploadParams = JSON.parse(uploadparams);
|
|
108
121
|
} catch (error) {
|
|
109
122
|
ibiz.log.error(
|
|
110
|
-
|
|
123
|
+
"\u7F16\u8F91\u5668[".concat(ibiz.log.error(
|
|
111
124
|
error
|
|
112
|
-
)
|
|
125
|
+
), "]\u7F16\u8F91\u5668\u53C2\u6570 uploadParams \u975E json \u683C\u5F0F")
|
|
113
126
|
);
|
|
114
127
|
}
|
|
115
128
|
}
|
|
@@ -118,9 +131,9 @@ class HtmlEditorController extends EditorController {
|
|
|
118
131
|
this.exportParams = JSON.parse(exportParams);
|
|
119
132
|
} catch (error) {
|
|
120
133
|
ibiz.log.error(
|
|
121
|
-
|
|
134
|
+
"\u7F16\u8F91\u5668[".concat(ibiz.log.error(
|
|
122
135
|
error
|
|
123
|
-
)
|
|
136
|
+
), "]\u7F16\u8F91\u5668\u53C2\u6570 exportParams \u975E json \u683C\u5F0F")
|
|
124
137
|
);
|
|
125
138
|
}
|
|
126
139
|
}
|
|
@@ -129,9 +142,9 @@ class HtmlEditorController extends EditorController {
|
|
|
129
142
|
this.exportParams = JSON.parse(exportparams);
|
|
130
143
|
} catch (error) {
|
|
131
144
|
ibiz.log.error(
|
|
132
|
-
|
|
145
|
+
"\u7F16\u8F91\u5668[".concat(ibiz.log.error(
|
|
133
146
|
error
|
|
134
|
-
)
|
|
147
|
+
), "]\u7F16\u8F91\u5668\u53C2\u6570 exportParams \u975E json \u683C\u5F0F")
|
|
135
148
|
);
|
|
136
149
|
}
|
|
137
150
|
}
|
|
@@ -183,6 +196,10 @@ class HtmlEditorController extends EditorController {
|
|
|
183
196
|
if (showcollapse) {
|
|
184
197
|
this.showCollapse = this.toBoolean(showcollapse);
|
|
185
198
|
}
|
|
199
|
+
if (enablenoaccess) {
|
|
200
|
+
this.enableNoAccess = enablenoaccess === "true";
|
|
201
|
+
}
|
|
202
|
+
this.globalDownloadPrifix = globaldownloadprifix === "true" || ibiz.config.common.globalDownloadPrifix;
|
|
186
203
|
}
|
|
187
204
|
}
|
|
188
205
|
}
|
|
@@ -25,7 +25,7 @@ const IBizQuill = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
const lang = ibiz.i18n.getLang();
|
|
26
26
|
let quill = null;
|
|
27
27
|
const headers = ref({
|
|
28
|
-
[
|
|
28
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getAppCookie(CoreConst.TOKEN))
|
|
29
29
|
});
|
|
30
30
|
const uploadUrl = ref("");
|
|
31
31
|
const downloadUrl = ref("");
|
|
@@ -48,7 +48,14 @@ const IBizQuill = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
const handleUpload = async (image) => {
|
|
49
49
|
const blob = base64ToBlob(image);
|
|
50
50
|
const file = await ibiz.util.file.fileUpload(uploadUrl.value, blob, headers.value);
|
|
51
|
-
|
|
51
|
+
let url = downloadUrl.value.replace("%fileId%", file.fileid);
|
|
52
|
+
if (ibiz.config.common.enableDownloadTicket && !c.enableNoAccess) {
|
|
53
|
+
const downloadTicket = await ibiz.util.file.getDownloadTicket(c.context, c.params, props.data || {}, {
|
|
54
|
+
fileId: file.id
|
|
55
|
+
}, c.downloadTicketParams);
|
|
56
|
+
if (downloadTicket && downloadTicket.ticket)
|
|
57
|
+
url = downloadUrl.value.replace("%fileId%", downloadTicket.ticket);
|
|
58
|
+
}
|
|
52
59
|
const value = getValue();
|
|
53
60
|
tempValue.value = value.replace(image, url);
|
|
54
61
|
};
|
|
@@ -92,7 +99,9 @@ const IBizQuill = /* @__PURE__ */ defineComponent({
|
|
|
92
99
|
watch(() => props.data, (newVal) => {
|
|
93
100
|
if (newVal) {
|
|
94
101
|
const editorParams = {
|
|
95
|
-
...c.editorParams
|
|
102
|
+
...c.editorParams,
|
|
103
|
+
enableNoAccess: c.enableNoAccess,
|
|
104
|
+
globalDownloadPrifix: c.globalDownloadPrifix
|
|
96
105
|
};
|
|
97
106
|
if (editorParams.uploadparams) {
|
|
98
107
|
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
@@ -50,10 +50,10 @@ const IBizQuillPreview = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
if (props.isCollapse && editorRef.value) {
|
|
51
51
|
const height = editorRef.value.offsetHeight;
|
|
52
52
|
if (height < props.defaultHeight) {
|
|
53
|
-
collapseHeight.value =
|
|
53
|
+
collapseHeight.value = "".concat(height, "px");
|
|
54
54
|
showCollapseBtn.value = false;
|
|
55
55
|
} else {
|
|
56
|
-
collapseHeight.value =
|
|
56
|
+
collapseHeight.value = "".concat(props.defaultHeight, "px");
|
|
57
57
|
showCollapseBtn.value = true;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -68,7 +68,7 @@ const IBizQuillPreview = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
const height = image.offsetHeight;
|
|
69
69
|
totalHieght += height;
|
|
70
70
|
if (totalHieght > props.defaultHeight) {
|
|
71
|
-
collapseHeight.value =
|
|
71
|
+
collapseHeight.value = "".concat(props.defaultHeight, "px");
|
|
72
72
|
showCollapseBtn.value = true;
|
|
73
73
|
}
|
|
74
74
|
});
|
|
@@ -128,7 +128,7 @@ const IBizQuillPreview = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
return createVNode("div", {
|
|
129
129
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.m(this.lang.toLowerCase()), this.showCollapse ? this.ns.m("show-collapse") : "", this.ns.is("collapse", this.isCollapse)],
|
|
130
130
|
"style": this.ns.cssVarBlock({
|
|
131
|
-
"height-default":
|
|
131
|
+
"height-default": "".concat(this.collapseHeight || "")
|
|
132
132
|
})
|
|
133
133
|
}, [createVNode("div", {
|
|
134
134
|
"ref": "editorRef",
|
|
@@ -21,7 +21,7 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const id = createUUID();
|
|
22
22
|
const previewId = createUUID();
|
|
23
23
|
const headers = ref({
|
|
24
|
-
[
|
|
24
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getAppCookie(CoreConst.TOKEN))
|
|
25
25
|
});
|
|
26
26
|
const uploadUrl = ref("");
|
|
27
27
|
const downloadUrl = ref("");
|
|
@@ -35,7 +35,9 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
watch(() => props.data, (newVal) => {
|
|
36
36
|
if (newVal) {
|
|
37
37
|
const editorParams = {
|
|
38
|
-
...c.editorParams
|
|
38
|
+
...c.editorParams,
|
|
39
|
+
enableNoAccess: c.enableNoAccess,
|
|
40
|
+
globalDownloadPrifix: c.globalDownloadPrifix
|
|
39
41
|
};
|
|
40
42
|
if (editorParams.uploadparams) {
|
|
41
43
|
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
@@ -53,7 +55,14 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
53
55
|
});
|
|
54
56
|
const fileUpload = async (file, callback) => {
|
|
55
57
|
const data = await ibiz.util.file.fileUpload(uploadUrl.value, file, headers.value);
|
|
56
|
-
|
|
58
|
+
let url = downloadUrl.value.replace("%fileId%", data.fileid);
|
|
59
|
+
if (ibiz.config.common.enableDownloadTicket && !c.enableNoAccess) {
|
|
60
|
+
const downloadTicket = await ibiz.util.file.getDownloadTicket(c.context, c.params, props.data || {}, {
|
|
61
|
+
fileId: data.fileid
|
|
62
|
+
}, c.downloadTicketParams);
|
|
63
|
+
if (downloadTicket && downloadTicket.ticket)
|
|
64
|
+
url = downloadUrl.value.replace("%fileId%", downloadTicket.ticket);
|
|
65
|
+
}
|
|
57
66
|
callback(url);
|
|
58
67
|
};
|
|
59
68
|
const getCherryHtml = () => {
|
|
@@ -20,11 +20,27 @@ class MarkDownEditorController extends EditorController {
|
|
|
20
20
|
* 下载参数
|
|
21
21
|
*/
|
|
22
22
|
__publicField(this, "exportParams");
|
|
23
|
+
/**
|
|
24
|
+
* @description 是否启用无权限
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof MarkDownEditorController
|
|
27
|
+
*/
|
|
28
|
+
__publicField(this, "enableNoAccess", false);
|
|
29
|
+
/**
|
|
30
|
+
* @description 是否使用全局文件下载前缀
|
|
31
|
+
* @memberof MarkDownEditorController
|
|
32
|
+
*/
|
|
33
|
+
__publicField(this, "globalDownloadPrifix", false);
|
|
23
34
|
}
|
|
24
35
|
async onInit() {
|
|
25
36
|
await super.onInit();
|
|
26
37
|
if (this.editorParams) {
|
|
27
|
-
const {
|
|
38
|
+
const {
|
|
39
|
+
uploadparams,
|
|
40
|
+
exportparams,
|
|
41
|
+
enablenoaccess,
|
|
42
|
+
globaldownloadprifix
|
|
43
|
+
} = this.editorParams;
|
|
28
44
|
if (uploadparams) {
|
|
29
45
|
try {
|
|
30
46
|
this.uploadParams = JSON.parse(uploadparams);
|
|
@@ -45,6 +61,10 @@ class MarkDownEditorController extends EditorController {
|
|
|
45
61
|
);
|
|
46
62
|
}
|
|
47
63
|
}
|
|
64
|
+
if (enablenoaccess) {
|
|
65
|
+
this.enableNoAccess = enablenoaccess === "true";
|
|
66
|
+
}
|
|
67
|
+
this.globalDownloadPrifix = globaldownloadprifix === "true" || ibiz.config.common.globalDownloadPrifix;
|
|
48
68
|
}
|
|
49
69
|
}
|
|
50
70
|
/**
|
|
@@ -58,8 +78,8 @@ class MarkDownEditorController extends EditorController {
|
|
|
58
78
|
* @returns {*} {{ uploadUrl: string; downloadUrl: string }}
|
|
59
79
|
*/
|
|
60
80
|
calcBaseUrl(data) {
|
|
61
|
-
let uploadUrl =
|
|
62
|
-
let downloadUrl =
|
|
81
|
+
let uploadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.uploadFileUrl);
|
|
82
|
+
let downloadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/%fileId%");
|
|
63
83
|
let uploadParams = {};
|
|
64
84
|
let exportParams = {};
|
|
65
85
|
if (this.uploadParams) {
|
|
@@ -105,12 +105,12 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
if (textItem) {
|
|
106
106
|
const data = props.data || {};
|
|
107
107
|
if (data[textItem]) {
|
|
108
|
-
return ibiz.util.text.format(
|
|
108
|
+
return ibiz.util.text.format("".concat(data[textItem]), format);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
const tempCurVal = Number(currentVal.value);
|
|
112
112
|
const value = Number(tempCurVal / max);
|
|
113
|
-
const formatValue = ibiz.util.text.format(
|
|
113
|
+
const formatValue = ibiz.util.text.format("".concat(value), format);
|
|
114
114
|
return formatValue;
|
|
115
115
|
});
|
|
116
116
|
const handleChange = (currentValue) => {
|
|
@@ -56,7 +56,7 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
});
|
|
57
57
|
text.value = tempValue.join(textSeparator);
|
|
58
58
|
} catch (error) {
|
|
59
|
-
ibiz.log.error(
|
|
59
|
+
ibiz.log.error("\u6807\u7B7E\u5730\u5740\u9009\u62E9\u5668\u7684\u503C\u4E0D\u7B26\u5408JSON\u683C\u5F0F".concat(newVal));
|
|
60
60
|
}
|
|
61
61
|
} else if (valueFormat) {
|
|
62
62
|
try {
|
|
@@ -67,17 +67,17 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
if (isValidDateFormat(tempVal, valueFormat)) {
|
|
68
68
|
text.value = tempVal;
|
|
69
69
|
} else {
|
|
70
|
-
text.value = ibiz.util.text.format(
|
|
70
|
+
text.value = ibiz.util.text.format("".concat(newVal), valueFormat);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
} catch (error) {
|
|
74
|
-
text.value =
|
|
75
|
-
ibiz.log.error(
|
|
74
|
+
text.value = "".concat(newVal);
|
|
75
|
+
ibiz.log.error("".concat(newVal, " \u503C\u683C\u5F0F\u5316\u9519\u8BEF"));
|
|
76
76
|
}
|
|
77
|
-
} else if (isEmoji(
|
|
78
|
-
text.value = base64ToStr(
|
|
77
|
+
} else if (isEmoji("".concat(newVal))) {
|
|
78
|
+
text.value = base64ToStr("".concat(newVal));
|
|
79
79
|
} else {
|
|
80
|
-
text.value =
|
|
80
|
+
text.value = "".concat(newVal);
|
|
81
81
|
}
|
|
82
82
|
if (unitName) {
|
|
83
83
|
text.value += unitName;
|
|
@@ -15,7 +15,7 @@ const IBizSpanLink = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const curValue = ref("");
|
|
16
16
|
watch(() => props.value, (newVal, oldVal) => {
|
|
17
17
|
if (newVal && newVal !== oldVal) {
|
|
18
|
-
curValue.value =
|
|
18
|
+
curValue.value = "".concat(newVal);
|
|
19
19
|
}
|
|
20
20
|
}, {
|
|
21
21
|
immediate: true
|
|
@@ -74,7 +74,7 @@ const IBizStepper = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
render() {
|
|
75
75
|
let content = null;
|
|
76
76
|
if (this.readonly) {
|
|
77
|
-
content =
|
|
77
|
+
content = "".concat(this.currentVal || "");
|
|
78
78
|
} else {
|
|
79
79
|
content = [createVNode(resolveComponent("van-stepper"), mergeProps({
|
|
80
80
|
"ref": "inputRef",
|
|
@@ -69,7 +69,7 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
} = this.c.parent;
|
|
70
70
|
let content = null;
|
|
71
71
|
if (this.readonly) {
|
|
72
|
-
content =
|
|
72
|
+
content = "".concat(this.currentVal || "");
|
|
73
73
|
if (content && unitName) {
|
|
74
74
|
content += unitName;
|
|
75
75
|
}
|
|
@@ -58,8 +58,8 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
if (newVal !== oldVal) {
|
|
59
59
|
if (!newVal) {
|
|
60
60
|
currentVal.value = "";
|
|
61
|
-
} else if (isEmoji(
|
|
62
|
-
currentVal.value = base64ToStr(
|
|
61
|
+
} else if (isEmoji("".concat(newVal))) {
|
|
62
|
+
currentVal.value = base64ToStr("".concat(newVal));
|
|
63
63
|
} else {
|
|
64
64
|
currentVal.value = newVal;
|
|
65
65
|
}
|
|
@@ -91,7 +91,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
if (type.value === "textarea" && platformType === PlatformType.IOS && textAlign.value === "right") {
|
|
92
92
|
const textarea = inputRef.value.$el.querySelector("textarea");
|
|
93
93
|
if (textarea) {
|
|
94
|
-
const val =
|
|
94
|
+
const val = "".concat(currentVal.value, " ");
|
|
95
95
|
emit("change", val);
|
|
96
96
|
nextTick(() => {
|
|
97
97
|
textarea.setSelectionRange(val.length + 1, val.length + 1);
|
|
@@ -163,7 +163,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
} = this.c.parent;
|
|
164
164
|
let content = null;
|
|
165
165
|
if (this.readonly) {
|
|
166
|
-
content =
|
|
166
|
+
content = "".concat(this.currentVal || "");
|
|
167
167
|
if (content && unitName) {
|
|
168
168
|
content += unitName;
|
|
169
169
|
}
|
|
@@ -12,11 +12,12 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
setup(props, {
|
|
13
13
|
emit
|
|
14
14
|
}) {
|
|
15
|
+
var _a;
|
|
15
16
|
const ns = useNamespace("signature");
|
|
16
17
|
const c = props.controller;
|
|
17
18
|
const editorModel = c.model;
|
|
18
19
|
const headers = ref({
|
|
19
|
-
[
|
|
20
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getAppCookie(CoreConst.TOKEN))
|
|
20
21
|
});
|
|
21
22
|
const uploadUrl = ref("");
|
|
22
23
|
const downloadUrl = ref("");
|
|
@@ -24,6 +25,13 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
24
25
|
const fullScreen = ref(false);
|
|
25
26
|
const currentDataURL = ref("");
|
|
26
27
|
const currentVal = ref("");
|
|
28
|
+
const enableNoAccess = ((_a = c.editorParams) == null ? void 0 : _a.enablenoaccess) === "true";
|
|
29
|
+
let globalDownloadPrifix = false;
|
|
30
|
+
if (c.editorParams.globaldownloadprifix) {
|
|
31
|
+
globalDownloadPrifix = c.editorParams.globaldownloadprifix === "true";
|
|
32
|
+
} else {
|
|
33
|
+
globalDownloadPrifix = ibiz.config.common.globalDownloadPrifix;
|
|
34
|
+
}
|
|
27
35
|
let saveMode = "img";
|
|
28
36
|
let buttons = [{
|
|
29
37
|
label: ibiz.i18n.t("editor.signature.undo"),
|
|
@@ -59,12 +67,12 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
59
67
|
}
|
|
60
68
|
};
|
|
61
69
|
const restCavans = () => {
|
|
62
|
-
var
|
|
63
|
-
(
|
|
70
|
+
var _a2;
|
|
71
|
+
(_a2 = signatureRef.value) == null ? void 0 : _a2.updateSignaturePad(() => {
|
|
64
72
|
nextTick(() => {
|
|
65
|
-
var
|
|
73
|
+
var _a3, _b;
|
|
66
74
|
if (currentDataURL.value) {
|
|
67
|
-
(
|
|
75
|
+
(_a3 = signatureRef.value) == null ? void 0 : _a3.signaturePad.fromDataURL(currentDataURL.value, {
|
|
68
76
|
// 旋转适配横屏
|
|
69
77
|
rotation: 90
|
|
70
78
|
});
|
|
@@ -75,17 +83,41 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
75
83
|
});
|
|
76
84
|
};
|
|
77
85
|
const handleCurrentVal = async () => {
|
|
78
|
-
var
|
|
86
|
+
var _a2, _b;
|
|
79
87
|
if (currentVal.value) {
|
|
80
88
|
ibiz.loading.showRedirect();
|
|
81
89
|
if (saveMode === "img") {
|
|
82
90
|
currentDataURL.value = currentVal.value;
|
|
83
91
|
} else if (downloadUrl.value) {
|
|
84
92
|
const fileData = JSON.parse(currentVal.value)[0];
|
|
85
|
-
|
|
93
|
+
let url = downloadUrl.value.replace("%fileId%", fileData.id);
|
|
86
94
|
try {
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
if (ibiz.config.common.enableDownloadTicket && !enableNoAccess) {
|
|
96
|
+
const downloadTicket = await ibiz.util.file.getDownloadTicket(c.context, c.params, props.data || {}, {
|
|
97
|
+
fileId: fileData.id
|
|
98
|
+
}, c.downloadTicketParams);
|
|
99
|
+
if (downloadTicket && downloadTicket.ticket)
|
|
100
|
+
url = downloadUrl.value.replace("%fileId%", downloadTicket.ticket);
|
|
101
|
+
}
|
|
102
|
+
const editorParams = {
|
|
103
|
+
...c.editorParams,
|
|
104
|
+
enableNoAccess,
|
|
105
|
+
globalDownloadPrifix
|
|
106
|
+
};
|
|
107
|
+
if (editorParams.exportparams) {
|
|
108
|
+
editorParams.exportParams = JSON.parse(editorParams.exportparams);
|
|
109
|
+
}
|
|
110
|
+
const fileBlob = await ibiz.util.file.requestFile(url, void 0, {
|
|
111
|
+
context: c.context,
|
|
112
|
+
params: c.params,
|
|
113
|
+
data: props.data,
|
|
114
|
+
file: {
|
|
115
|
+
fileId: fileData.id
|
|
116
|
+
},
|
|
117
|
+
extraParams: editorParams,
|
|
118
|
+
downloadTicketParams: c.downloadTicketParams
|
|
119
|
+
});
|
|
120
|
+
const dataUrl = await ((_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.blobToDataURL(fileBlob));
|
|
89
121
|
currentDataURL.value = dataUrl;
|
|
90
122
|
} catch (error) {
|
|
91
123
|
ibiz.log.error(error);
|
|
@@ -98,7 +130,15 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
98
130
|
};
|
|
99
131
|
watch(() => props.data, (newVal) => {
|
|
100
132
|
if (newVal) {
|
|
101
|
-
const
|
|
133
|
+
const editorParams = {
|
|
134
|
+
...c.editorParams,
|
|
135
|
+
enableNoAccess,
|
|
136
|
+
globalDownloadPrifix
|
|
137
|
+
};
|
|
138
|
+
if (editorParams.uploadparams) {
|
|
139
|
+
editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
|
|
140
|
+
}
|
|
141
|
+
const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
|
|
102
142
|
uploadUrl.value = urls.uploadUrl;
|
|
103
143
|
downloadUrl.value = urls.downloadUrl;
|
|
104
144
|
}
|
|
@@ -111,7 +151,7 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
111
151
|
if (!newVal) {
|
|
112
152
|
currentVal.value = "";
|
|
113
153
|
} else {
|
|
114
|
-
currentVal.value =
|
|
154
|
+
currentVal.value = "".concat(newVal || "");
|
|
115
155
|
}
|
|
116
156
|
await handleCurrentVal();
|
|
117
157
|
}
|
|
@@ -133,7 +173,7 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
133
173
|
type
|
|
134
174
|
} = getFileType(dataURL);
|
|
135
175
|
const blob = base64ToBlob(dataURL);
|
|
136
|
-
const fileName =
|
|
176
|
+
const fileName = "signature_".concat(Date.now(), ".png");
|
|
137
177
|
const file = new File([blob], fileName, {
|
|
138
178
|
type
|
|
139
179
|
});
|
|
@@ -147,9 +187,9 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
147
187
|
restCavans();
|
|
148
188
|
};
|
|
149
189
|
const handleRemove = (_evt) => {
|
|
150
|
-
var
|
|
190
|
+
var _a2;
|
|
151
191
|
_evt.stopPropagation();
|
|
152
|
-
(
|
|
192
|
+
(_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.clear();
|
|
153
193
|
currentDataURL.value = "";
|
|
154
194
|
handleEmit(null);
|
|
155
195
|
};
|
|
@@ -165,9 +205,9 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
165
205
|
}]));
|
|
166
206
|
};
|
|
167
207
|
const handleConfirm = () => {
|
|
168
|
-
var
|
|
208
|
+
var _a2, _b, _c;
|
|
169
209
|
fullScreen.value = false;
|
|
170
|
-
if (((
|
|
210
|
+
if (((_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.isEmpty()) || !((_b = signatureRef.value) == null ? void 0 : _b.signaturePad.isRedrawn()))
|
|
171
211
|
return;
|
|
172
212
|
const dataURL = (_c = signatureRef.value) == null ? void 0 : _c.signaturePad.toDataURL(void 0, {
|
|
173
213
|
// 旋转为述评适配预览
|
|
@@ -185,10 +225,10 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
185
225
|
}
|
|
186
226
|
};
|
|
187
227
|
const handleButtonClick = (_type) => {
|
|
188
|
-
var
|
|
228
|
+
var _a2, _b;
|
|
189
229
|
switch (_type) {
|
|
190
230
|
case "undo":
|
|
191
|
-
(
|
|
231
|
+
(_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.undoLastStep();
|
|
192
232
|
break;
|
|
193
233
|
case "rewrite":
|
|
194
234
|
(_b = signatureRef.value) == null ? void 0 : _b.signaturePad.clear();
|
|
@@ -236,7 +276,7 @@ const IBizSignature = /* @__PURE__ */ defineComponent({
|
|
|
236
276
|
}, [ibiz.i18n.t("editor.signature.addSignature")])]), createVNode("div", {
|
|
237
277
|
"class": this.ns.e("content"),
|
|
238
278
|
"style": {
|
|
239
|
-
backgroundImage:
|
|
279
|
+
backgroundImage: "url(".concat(this.currentDataURL, ")")
|
|
240
280
|
}
|
|
241
281
|
}, null), createVNode("div", {
|
|
242
282
|
"class": [this.ns.b("overlay"), this.ns.is("full-screen", this.fullScreen), this.ns.is("disabled", this.disabled), this.ns.is("readonly", this.readonly)],
|
|
@@ -45,7 +45,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
const getPreviewImg = (name) => {
|
|
46
46
|
const suffix = getFileSuffix(name);
|
|
47
47
|
const type = c.fileTypeMap.get(suffix) || "unknown";
|
|
48
|
-
return
|
|
48
|
+
return "./assets/img/file/".concat(type, ".svg");
|
|
49
49
|
};
|
|
50
50
|
return {
|
|
51
51
|
ns,
|