@ibiz-template/mob-vue3-components 0.0.55 → 0.7.41-alpha.11
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-GD7RhhzY.js.map +1 -1
- package/dist/ibiz-markdown-editor-KT8uap_I.js.map +1 -1
- package/dist/{index-O-XmMUt3.js → index-JSf84k9b.js} +2 -2
- package/dist/index-JSf84k9b.js.map +1 -0
- package/dist/{index-NP0RBfWK.js → index-OsiEgFnw.js} +2 -2
- package/dist/index-OsiEgFnw.js.map +1 -0
- package/dist/index-q0SBDv6c.js +76 -0
- package/dist/index-q0SBDv6c.js.map +1 -0
- package/dist/index.min.css +9 -9
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-editor-ybZrwyoG.js → quill-editor-5QOfComp.js} +2 -2
- package/dist/quill-editor-5QOfComp.js.map +1 -0
- package/dist/{quill-editor-preview-G9EjDfQE.js → quill-editor-preview-65f3RVj0.js} +2 -2
- package/dist/{quill-editor-preview-G9EjDfQE.js.map → quill-editor-preview-65f3RVj0.js.map} +1 -1
- package/dist/{quill-t_EJUjVi.js → quill-sraxwYmv.js} +2 -2
- package/dist/{quill-t_EJUjVi.js.map → quill-sraxwYmv.js.map} +1 -1
- package/dist/tree-nburezSg.js.map +1 -1
- package/es/_virtual/index12.mjs +2 -2
- package/es/_virtual/index13.mjs +2 -2
- package/es/common/button-list/button-list.d.ts +1 -0
- package/es/common/carousel/carousel.d.ts +2 -2
- package/es/common/cropping/cropping.d.ts +4 -4
- package/es/common/date-range-picker/components/range-picker/range-picker.d.ts +1 -1
- package/es/common/date-range-picker/date-range-picker.d.ts +3 -3
- package/es/common/emoji-select/components/categories/categories.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +8 -8
- package/es/common/emoji-select/emoji-select.d.ts +3 -3
- package/es/common/emoji-select/icons/search.d.ts +1 -0
- package/es/common/index.mjs +2 -1
- package/es/common/md-ctrl-setting/md-ctrl-setting.d.ts +3 -3
- package/es/common/preset-view-back/preset-view-back.d.ts +2 -2
- package/es/common/preset-view-header/preset-view-header.d.ts +1 -1
- package/es/common/preset-view-header/preset-view-header.mjs +3 -0
- package/es/common/rawitem/rawitem.d.ts +2 -2
- package/es/control/app-menu/app-menu.d.ts +31 -5
- package/es/control/app-menu/app-menu.mjs +13 -0
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +1 -1
- package/es/control/app-menu/index.d.ts +6 -6
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +5 -5
- package/es/control/app-menu-icon-view/index.d.ts +5 -5
- 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.d.ts +5 -5
- package/es/control/app-menu-list-view/app-menu-list-view.mjs +57 -32
- package/es/control/app-menu-list-view/index.d.ts +5 -5
- package/es/control/calendar/calendar.d.ts +46 -6
- package/es/control/calendar/calendar.mjs +20 -0
- package/es/control/calendar/index.d.ts +7 -7
- package/es/control/caption-bar/caption-bar.d.ts +31 -5
- package/es/control/caption-bar/caption-bar.mjs +13 -0
- package/es/control/caption-bar/index.d.ts +5 -5
- package/es/control/chart/chart.d.ts +45 -5
- package/es/control/chart/chart.mjs +20 -0
- package/es/control/dashboard/dashboard.d.ts +32 -6
- package/es/control/dashboard/dashboard.mjs +13 -0
- package/es/control/dashboard/index.d.ts +6 -6
- package/es/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts +1 -0
- package/es/control/dashboard/portlet/portlet-part/portlet-part.state.mjs +1 -0
- package/es/control/data-view/data-view.d.ts +49 -7
- package/es/control/data-view/data-view.mjs +23 -3
- package/es/control/data-view/index.d.ts +7 -7
- package/es/control/drbar/drbar.controller.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +3 -0
- package/es/control/drbar/drbar.d.ts +45 -16
- package/es/control/drbar/drbar.mjs +19 -4
- package/es/control/drbar/index.d.ts +7 -16
- package/es/control/drtab/drtab.controller.d.ts +1 -0
- package/es/control/drtab/drtab.controller.mjs +3 -0
- package/es/control/drtab/drtab.d.ts +33 -7
- package/es/control/drtab/drtab.mjs +13 -0
- package/es/control/drtab/index.d.ts +7 -7
- package/es/control/form/edit-form/edit-form.mjs +44 -0
- package/es/control/form/form/form.d.ts +7 -1
- package/es/control/form/form/form.mjs +3 -0
- package/es/control/form/form/index.d.ts +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +2 -2
- package/es/control/form/form-detail/form-item/index.d.ts +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +4 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +9 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +4 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +6 -6
- package/es/control/form/search-form/index.d.ts +5 -5
- package/es/control/form/search-form/search-form.d.ts +31 -5
- package/es/control/form/search-form/search-form.mjs +13 -0
- package/es/control/list/list/index.d.ts +7 -7
- package/es/control/list/list/list.d.ts +81 -7
- package/es/control/list/list/list.mjs +37 -0
- package/es/control/list/list-render-util.d.ts +1 -0
- package/es/control/list/md-ctrl/index.d.ts +9 -9
- package/es/control/list/md-ctrl/md-ctrl.d.ts +71 -9
- package/es/control/list/md-ctrl/md-ctrl.mjs +31 -0
- package/es/control/pickup-view-panel/index.d.ts +7 -7
- package/es/control/pickup-view-panel/pickup-view-panel.controller.d.ts +2 -0
- package/es/control/pickup-view-panel/pickup-view-panel.controller.mjs +3 -0
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +47 -7
- package/es/control/pickup-view-panel/pickup-view-panel.mjs +20 -0
- package/es/control/search-bar/filter-field-select/filter-field-select.d.ts +3 -3
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +6 -6
- package/es/control/search-bar/index.d.ts +5 -5
- package/es/control/search-bar/search-bar.d.ts +31 -5
- package/es/control/search-bar/search-bar.mjs +13 -0
- package/es/control/tab-exp-panel/index.d.ts +5 -5
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +37 -5
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +16 -0
- package/es/control/toolbar/index.d.ts +7 -7
- package/es/control/toolbar/popper-toolbar/popper-toolbar.d.ts +7 -7
- package/es/control/toolbar/toolbar.d.ts +33 -7
- package/es/control/toolbar/toolbar.mjs +13 -0
- package/es/control/tree/tree.d.ts +48 -6
- package/es/control/tree/tree.mjs +21 -0
- package/es/control/tree-exp-bar/index.d.ts +5 -5
- package/es/control/tree-exp-bar/tree-exp-bar.d.ts +49 -5
- package/es/control/tree-exp-bar/tree-exp-bar.mjs +22 -0
- package/es/control/wizard-panel/index.d.ts +5 -5
- package/es/control/wizard-panel/wizard-panel.d.ts +31 -5
- package/es/control/wizard-panel/wizard-panel.mjs +13 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +22 -13
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +17 -8
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +16 -9
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +15 -8
- package/es/editor/common/data-mpicker/ibiz-data-mpicker.d.ts +4 -4
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +18 -11
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +144 -26
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +18 -11
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +17 -9
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +15 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +22 -10
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.d.ts +84 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.mjs +142 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +20 -13
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.d.ts +17 -10
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +16 -8
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/html/quill-editor/quill-editor.d.ts +15 -0
- package/es/editor/index.mjs +17 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +9 -0
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +23 -9
- package/es/editor/qrcode/ibiz-qrcode/ibiz-qrcode.d.ts +15 -8
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +16 -9
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +16 -8
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +17 -8
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +23 -8
- package/es/editor/span/span/span.d.ts +15 -3
- package/es/editor/span/span-link/span-link.d.ts +16 -8
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +20 -8
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +16 -8
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +17 -8
- package/es/editor/text-box/index.d.ts +1 -0
- package/es/editor/text-box/index.mjs +1 -0
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.d.ts +19 -8
- package/es/editor/text-box/input/input.mjs +24 -2
- package/es/editor/text-box/signature/signature.css +1 -0
- package/es/editor/text-box/signature/signature.d.ts +104 -0
- package/es/editor/text-box/signature/signature.mjs +270 -0
- package/es/editor/text-box/text-box-editor.provider.mjs +3 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.d.ts +19 -8
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +24 -12
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +27 -13
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.d.ts +18 -8
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +24 -12
- package/es/index.mjs +2 -0
- package/es/locale/en/index.d.ts +47 -4
- package/es/locale/en/index.mjs +14 -0
- package/es/locale/zh-CN/index.d.ts +47 -4
- package/es/locale/zh-CN/index.mjs +14 -0
- package/es/mob-app/App.mjs +19 -2
- package/es/mob-app/components/router-shell/router-shell.d.ts +3 -3
- package/es/mob-app/guard/auth-guard/auth-guard.mjs +141 -55
- package/es/mob-app/main.mjs +1 -0
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.d.ts +13 -5
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +50 -15
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.mjs +1 -1
- package/es/panel-component/async-action/index.d.ts +2 -2
- package/es/panel-component/async-action/mob-async-action.d.ts +7 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -1
- package/es/panel-component/auth-sso/auth-sso.d.ts +24 -1
- package/es/panel-component/auth-sso/auth-sso.mjs +84 -6
- package/es/panel-component/auth-sso/index.d.ts +7 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +18 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +6 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.d.ts +23 -37
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +23 -37
- package/es/panel-component/nav-pos-index/nav-pos-index.d.ts +18 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +6 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.state.d.ts +8 -12
- package/es/panel-component/nav-pos-index/nav-pos-index.state.mjs +8 -12
- package/es/panel-component/panel-app-title/panel-app-title.controller.d.ts +3 -2
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +17 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +6 -0
- package/es/panel-component/panel-app-title/panel-app-title.state.d.ts +14 -28
- package/es/panel-component/panel-app-title/panel-app-title.state.mjs +14 -28
- package/es/panel-component/panel-button/panel-button.controller.d.ts +4 -5
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -3
- package/es/panel-component/panel-button/panel-button.d.ts +17 -0
- package/es/panel-component/panel-button/panel-button.mjs +6 -0
- package/es/panel-component/panel-button/panel-button.state.d.ts +4 -6
- package/es/panel-component/panel-button/panel-button.state.mjs +4 -6
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +4 -5
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +4 -5
- package/es/panel-component/panel-button-list/panel-button-list.d.ts +17 -0
- package/es/panel-component/panel-button-list/panel-button-list.mjs +6 -0
- package/es/panel-component/panel-button-list/panel-button-list.state.d.ts +2 -2
- package/es/panel-component/panel-button-list/panel-button-list.state.mjs +2 -2
- package/es/panel-component/panel-carousel/index.d.ts +2 -2
- package/es/panel-component/panel-carousel/panel-carousel.controller.d.ts +2 -4
- package/es/panel-component/panel-carousel/panel-carousel.controller.mjs +2 -4
- package/es/panel-component/panel-carousel/panel-carousel.d.ts +19 -2
- package/es/panel-component/panel-carousel/panel-carousel.mjs +6 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +2 -4
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +2 -4
- package/es/panel-component/panel-tab-panel/panel-tab-panel.d.ts +17 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +6 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +2 -4
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +2 -4
- package/es/panel-component/panel-video-player/panel-video-player.controller.d.ts +2 -4
- package/es/panel-component/panel-video-player/panel-video-player.controller.mjs +2 -4
- package/es/panel-component/panel-video-player/panel-video-player.d.ts +11 -0
- package/es/panel-component/panel-video-player/panel-video-player.mjs +3 -0
- package/es/panel-component/user-message/index.d.ts +3 -3
- package/es/panel-component/user-message/user-message.d.ts +8 -3
- package/es/panel-component/view-content-panel-container/view-content-panel-container.d.ts +5 -0
- package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +6 -0
- package/es/panel-component/view-footer-panel-container/view-footer-panel-container.d.ts +17 -0
- package/es/panel-component/view-footer-panel-container/view-footer-panel-container.mjs +6 -0
- package/es/panel-component/view-header-panel-container/index.d.ts +1 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.d.ts +18 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.mjs +22 -1
- package/es/panel-component/wf-action-button/index.d.ts +1 -1
- package/es/panel-component/wf-action-button/wf-action-button.controller.d.ts +4 -6
- package/es/panel-component/wf-action-button/wf-action-button.controller.mjs +2 -4
- package/es/panel-component/wf-action-button/wf-action-button.d.ts +17 -0
- package/es/panel-component/wf-action-button/wf-action-button.mjs +6 -0
- package/es/panel-component/wf-action-button/wf-action-button.state.d.ts +2 -4
- package/es/panel-component/wf-action-button/wf-action-button.state.mjs +2 -4
- package/es/panel-component/wf-step-trace/index.d.ts +1 -1
- package/es/panel-component/wf-step-trace/wf-step-trace.controller.d.ts +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.controller.mjs +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.d.ts +12 -1
- package/es/panel-component/wf-step-trace/wf-step-trace.mjs +3 -0
- package/es/panel-component/wf-step-trace/wf-step-trace.state.d.ts +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.state.mjs +2 -4
- package/es/util/app-drawer/app-drawer-component.d.ts +1 -1
- package/es/util/app-modal/app-modal-component.d.ts +2 -2
- package/es/util/app-util/app-util.d.ts +66 -1
- package/es/util/app-util/app-util.mjs +66 -0
- package/es/util/open-view-util/open-view-util.mjs +6 -6
- package/es/util/scan-qrcode/scan-qrcode.d.ts +3 -3
- package/es/view/login-view/login-view.d.ts +1 -1
- package/es/view/portal-view/index.d.ts +7 -7
- package/es/view/portal-view/portal-view.d.ts +7 -7
- package/es/view-engine/login-view.engine.d.ts +2 -2
- package/es/view-engine/login-view.engine.mjs +2 -0
- package/es/view-engine/mob-data-view-engine.d.ts +2 -2
- package/es/view-engine/mob-data-view-engine.mjs +0 -1
- package/es/view-engine/mob-edit-view.engine.d.ts +2 -2
- package/es/view-engine/mob-edit-view.engine.mjs +5 -1
- package/es/view-engine/mob-md-view-engine.d.ts +2 -2
- package/es/view-engine/mob-md-view-engine.mjs +0 -1
- package/es/view-engine/mob-mpickup-view-engine.d.ts +20 -14
- package/es/view-engine/mob-mpickup-view-engine.mjs +34 -26
- package/es/view-engine/mob-opt-view.engine.d.ts +2 -2
- package/es/view-engine/mob-pickup-md-view.engine.d.ts +2 -2
- package/es/view-engine/mob-pickup-md-view.engine.mjs +0 -1
- package/es/view-engine/mob-pickup-view.engine.d.ts +9 -2
- package/es/view-engine/mob-pickup-view.engine.mjs +15 -1
- package/es/view-engine/mob-tab-search-view.engine.d.ts +2 -2
- package/es/view-engine/mob-tab-search-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-action-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-action-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-edit-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-start-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-start-view.engine.mjs +0 -1
- package/lib/_virtual/index12.cjs +2 -2
- package/lib/_virtual/index13.cjs +2 -2
- package/lib/common/index.cjs +1 -0
- package/lib/common/preset-view-header/preset-view-header.cjs +3 -0
- package/lib/control/app-menu/app-menu.cjs +13 -0
- package/lib/control/app-menu-list-view/app-menu-list-view.cjs +56 -31
- package/lib/control/app-menu-list-view/app-menu-list-view.css +1 -1
- package/lib/control/calendar/calendar.cjs +20 -0
- package/lib/control/caption-bar/caption-bar.cjs +13 -0
- package/lib/control/chart/chart.cjs +20 -0
- package/lib/control/dashboard/dashboard.cjs +13 -0
- package/lib/control/dashboard/portlet/portlet-part/portlet-part.state.cjs +1 -0
- package/lib/control/data-view/data-view.cjs +23 -3
- package/lib/control/drbar/drbar.cjs +19 -4
- package/lib/control/drbar/drbar.controller.cjs +3 -0
- package/lib/control/drtab/drtab.cjs +13 -0
- package/lib/control/drtab/drtab.controller.cjs +3 -0
- package/lib/control/form/edit-form/edit-form.cjs +44 -0
- package/lib/control/form/form/form.cjs +3 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +4 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +4 -0
- package/lib/control/form/search-form/search-form.cjs +13 -0
- package/lib/control/list/list/list.cjs +37 -0
- package/lib/control/list/md-ctrl/md-ctrl.cjs +31 -0
- package/lib/control/pickup-view-panel/pickup-view-panel.cjs +20 -0
- package/lib/control/pickup-view-panel/pickup-view-panel.controller.cjs +3 -0
- package/lib/control/search-bar/search-bar.cjs +13 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +16 -0
- package/lib/control/toolbar/toolbar.cjs +13 -0
- package/lib/control/tree/tree.cjs +21 -0
- package/lib/control/tree-exp-bar/tree-exp-bar.cjs +22 -0
- package/lib/control/wizard-panel/wizard-panel.cjs +13 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +144 -26
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.cjs +144 -0
- package/lib/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/index.cjs +18 -0
- package/lib/editor/text-box/index.cjs +2 -0
- package/lib/editor/text-box/input/input.cjs +24 -2
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/signature/signature.cjs +272 -0
- package/lib/editor/text-box/signature/signature.css +1 -0
- package/lib/editor/text-box/text-box-editor.provider.cjs +3 -0
- package/lib/index.cjs +4 -0
- package/lib/locale/en/index.cjs +14 -0
- package/lib/locale/zh-CN/index.cjs +14 -0
- package/lib/mob-app/App.cjs +17 -0
- package/lib/mob-app/guard/auth-guard/auth-guard.cjs +140 -54
- package/lib/mob-app/main.cjs +1 -0
- package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +50 -15
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.cjs +1 -1
- package/lib/panel-component/auth-sso/auth-sso.cjs +83 -5
- package/lib/panel-component/auth-sso/auth-sso.css +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +6 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +6 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +23 -37
- package/lib/panel-component/nav-pos-index/nav-pos-index.state.cjs +8 -12
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +6 -0
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +1 -0
- package/lib/panel-component/panel-app-title/panel-app-title.state.cjs +14 -28
- package/lib/panel-component/panel-button/panel-button.cjs +6 -0
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -3
- package/lib/panel-component/panel-button/panel-button.state.cjs +4 -6
- package/lib/panel-component/panel-button-list/panel-button-list.cjs +6 -0
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +4 -5
- package/lib/panel-component/panel-button-list/panel-button-list.state.cjs +2 -2
- package/lib/panel-component/panel-carousel/panel-carousel.cjs +6 -0
- package/lib/panel-component/panel-carousel/panel-carousel.controller.cjs +2 -4
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.cjs +6 -0
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +2 -4
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +2 -4
- package/lib/panel-component/panel-video-player/panel-video-player.cjs +3 -0
- package/lib/panel-component/panel-video-player/panel-video-player.controller.cjs +2 -4
- package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +6 -0
- package/lib/panel-component/view-footer-panel-container/view-footer-panel-container.cjs +6 -0
- package/lib/panel-component/view-header-panel-container/view-header-panel-container.cjs +22 -1
- package/lib/panel-component/wf-action-button/wf-action-button.cjs +6 -0
- package/lib/panel-component/wf-action-button/wf-action-button.controller.cjs +2 -4
- package/lib/panel-component/wf-action-button/wf-action-button.state.cjs +2 -4
- package/lib/panel-component/wf-step-trace/wf-step-trace.cjs +3 -0
- package/lib/panel-component/wf-step-trace/wf-step-trace.controller.cjs +2 -4
- package/lib/panel-component/wf-step-trace/wf-step-trace.state.cjs +2 -4
- package/lib/util/app-util/app-util.cjs +66 -0
- package/lib/util/open-view-util/open-view-util.cjs +6 -6
- package/lib/view-engine/login-view.engine.cjs +2 -0
- package/lib/view-engine/mob-data-view-engine.cjs +0 -1
- package/lib/view-engine/mob-edit-view.engine.cjs +5 -1
- package/lib/view-engine/mob-md-view-engine.cjs +0 -1
- package/lib/view-engine/mob-mpickup-view-engine.cjs +34 -26
- package/lib/view-engine/mob-pickup-md-view.engine.cjs +0 -1
- package/lib/view-engine/mob-pickup-view.engine.cjs +15 -1
- package/lib/view-engine/mob-tab-search-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-action-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-start-view.engine.cjs +0 -1
- package/package.json +8 -8
- package/dist/index-NP0RBfWK.js.map +0 -1
- package/dist/index-O-XmMUt3.js.map +0 -1
- package/dist/index-TfgOIExu.js +0 -76
- package/dist/index-TfgOIExu.js.map +0 -1
- package/dist/quill-editor-ybZrwyoG.js.map +0 -1
|
@@ -199,6 +199,16 @@ var index = {
|
|
|
199
199
|
},
|
|
200
200
|
dateRangePicker: {
|
|
201
201
|
selectRange: "\u8BF7\u9009\u62E9\u65E5\u671F\u8303\u56F4"
|
|
202
|
+
},
|
|
203
|
+
mpicker: {
|
|
204
|
+
simpleErr: "SIMPLE\u7C7B\u578B\u5730\u5740\u680F\u503C\u683C\u5F0F{props.value}\u4E0D\u7B26\u5408JSON\u5B57\u7B26\u4E32\u8981\u6C42"
|
|
205
|
+
},
|
|
206
|
+
signature: {
|
|
207
|
+
undo: "\u64A4\u9500",
|
|
208
|
+
rewrite: "\u91CD\u5199",
|
|
209
|
+
confirm: "\u786E\u8BA4",
|
|
210
|
+
addSignature: "\u70B9\u51FB\u6B64\u5904\u6DFB\u52A0\u7B7E\u540D",
|
|
211
|
+
signaturePrompt: "\u8BF7\u5728\u7A7A\u767D\u533A\u57DF\u5185\u6A2A\u5411\u4E66\u5199"
|
|
202
212
|
}
|
|
203
213
|
},
|
|
204
214
|
// 多语言
|
|
@@ -207,6 +217,10 @@ var index = {
|
|
|
207
217
|
switchLanguagePrompt: "\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u9875\u9762\uFF0C\u786E\u8BA4\u5207\u6362?"
|
|
208
218
|
},
|
|
209
219
|
mobApp: {
|
|
220
|
+
authGuard: {
|
|
221
|
+
loginFailed: "\u533F\u540D\u7528\u6237\u767B\u5F55\u5931\u8D25",
|
|
222
|
+
noPermission: "\u65E0\u6743\u9650\u8BBF\u95EE\uFF01"
|
|
223
|
+
},
|
|
210
224
|
unauthorizedHandler: {
|
|
211
225
|
noFoundEnvParams: "\u627E\u4E0D\u5230\u73AF\u5883\u53C2\u6570casLoginUrl",
|
|
212
226
|
prohibitAccessPrompt: "\u5F53\u524D\u8D26\u6237\u88AB\u7981\u6B62\u8BBF\u95EE",
|
package/es/mob-app/App.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref, onUnmounted, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { routerCallback } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { ref, onUnmounted, onMounted, onBeforeUnmount, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { AppHooks, routerCallback } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { ViewMode, Modal } from '@ibiz-template/runtime';
|
|
4
4
|
import '../util/index.mjs';
|
|
5
5
|
import './App.css';
|
|
@@ -22,6 +22,7 @@ var App = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
onUnmounted(() => {
|
|
23
23
|
off("onBeforeStackChange", onViewStackChange);
|
|
24
24
|
ibiz.platform.destroyed();
|
|
25
|
+
AppHooks.destoryApp.call(null);
|
|
25
26
|
});
|
|
26
27
|
const viewModals = /* @__PURE__ */ new Map();
|
|
27
28
|
const getViewModal = (key) => {
|
|
@@ -39,6 +40,22 @@ var App = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
}
|
|
40
41
|
return viewModals.get(key);
|
|
41
42
|
};
|
|
43
|
+
let watermarkDestroy;
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
AppHooks.initedApp.tapPromise(async ({
|
|
46
|
+
context
|
|
47
|
+
}) => {
|
|
48
|
+
var _a;
|
|
49
|
+
watermarkDestroy == null ? void 0 : watermarkDestroy();
|
|
50
|
+
watermarkDestroy = ibiz.util.watermark.mount(ibiz.config.watermark, void 0, {
|
|
51
|
+
...context,
|
|
52
|
+
...(_a = ibiz.appData) == null ? void 0 : _a.context
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
onBeforeUnmount(() => {
|
|
57
|
+
watermarkDestroy == null ? void 0 : watermarkDestroy();
|
|
58
|
+
});
|
|
42
59
|
return {
|
|
43
60
|
viewStack,
|
|
44
61
|
getViewModal,
|
|
@@ -18,10 +18,10 @@ export declare const RouterShell: import("vue").DefineComponent<{
|
|
|
18
18
|
height?: number | undefined;
|
|
19
19
|
appDataEntityId?: string | undefined;
|
|
20
20
|
redirectView?: boolean | undefined;
|
|
21
|
-
modalOption?:
|
|
21
|
+
modalOption?: import("@ibiz-template/core").IApiData | undefined;
|
|
22
22
|
} | undefined;
|
|
23
|
-
context?:
|
|
24
|
-
params?:
|
|
23
|
+
context?: import("@ibiz-template/core").IApiParams | undefined;
|
|
24
|
+
params?: import("@ibiz-template/core").IApiParams | undefined;
|
|
25
25
|
srfnav?: string | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
isLoaded: import("vue").Ref<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreConst, getAppCookie
|
|
1
|
+
import { HttpError, CoreConst, getAppCookie } from '@ibiz-template/core';
|
|
2
2
|
import { ModelHelper } from '@ibiz-template/model-helper';
|
|
3
3
|
import { mergeDeepRight } from 'ramda';
|
|
4
4
|
import { AppHooks } from '@ibiz-template/vue3-util';
|
|
@@ -7,8 +7,13 @@ import { i18n } from '../../../locale/index.mjs';
|
|
|
7
7
|
import { AuthGuardHooks } from '../auth-guard-hooks.mjs';
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
|
-
async function loadAppData() {
|
|
11
|
-
|
|
10
|
+
async function loadAppData(context) {
|
|
11
|
+
let res;
|
|
12
|
+
if (context && Object.keys(context).length > 0) {
|
|
13
|
+
res = await ibiz.net.get("/appdata", context);
|
|
14
|
+
} else {
|
|
15
|
+
res = await ibiz.net.get("/appdata");
|
|
16
|
+
}
|
|
12
17
|
if (res.ok) {
|
|
13
18
|
ibiz.appData = res.data;
|
|
14
19
|
updateDevToolConfig();
|
|
@@ -24,24 +29,6 @@ async function loadOrgData() {
|
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
|
-
function setRefreshToken() {
|
|
28
|
-
const token = getAppCookie(CoreConst.TOKEN);
|
|
29
|
-
const expirein = getAppCookie(CoreConst.TOKEN_EXPIRES);
|
|
30
|
-
if (token && expirein) {
|
|
31
|
-
let wait = Number(expirein) - (/* @__PURE__ */ new Date()).getTime();
|
|
32
|
-
const early = 5 * 60 * 1e3;
|
|
33
|
-
wait = wait > early ? wait - early : 0;
|
|
34
|
-
setTimeout(async () => {
|
|
35
|
-
const res = await ibiz.net.get(`/uaa/refreshtoken2`);
|
|
36
|
-
if (res.ok) {
|
|
37
|
-
setAppCookie(CoreConst.TOKEN, res.data.token, 0);
|
|
38
|
-
const expiredDate = (/* @__PURE__ */ new Date()).getTime() + (res.data.expirein || 7199) * 1e3;
|
|
39
|
-
setAppCookie(CoreConst.TOKEN_EXPIRES, `${expiredDate}`, 0);
|
|
40
|
-
}
|
|
41
|
-
setRefreshToken();
|
|
42
|
-
}, wait);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
32
|
async function loadTheme() {
|
|
46
33
|
const app = ibiz.hub.getApp();
|
|
47
34
|
const uiThemes = app.model.appUIThemes || [];
|
|
@@ -63,7 +50,33 @@ async function loadTheme() {
|
|
|
63
50
|
}
|
|
64
51
|
}
|
|
65
52
|
let helper;
|
|
66
|
-
async function
|
|
53
|
+
async function initEnvironment() {
|
|
54
|
+
if (helper) {
|
|
55
|
+
const app = await helper.getAppModel();
|
|
56
|
+
const userParam = app.userParam;
|
|
57
|
+
if (userParam) {
|
|
58
|
+
Object.keys(userParam).forEach((key) => {
|
|
59
|
+
const value = ibiz.util.rawValue.format(userParam[key]);
|
|
60
|
+
const keys = key.split(".");
|
|
61
|
+
let currentObj = ibiz.env;
|
|
62
|
+
for (let i = 0; i < keys.length; i++) {
|
|
63
|
+
const k = keys[i];
|
|
64
|
+
if (i === keys.length - 1) {
|
|
65
|
+
currentObj[k] = value;
|
|
66
|
+
} else {
|
|
67
|
+
currentObj[k] = currentObj[k] || {};
|
|
68
|
+
currentObj = currentObj[k];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
if (ibiz.env.globalConfig) {
|
|
73
|
+
ibiz.config = mergeDeepRight(ibiz.config, ibiz.env.globalConfig);
|
|
74
|
+
}
|
|
75
|
+
ibiz.log.setLevel(ibiz.env.logLevel);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async function initModel(context, permission = true) {
|
|
67
80
|
if (!helper) {
|
|
68
81
|
helper = new ModelHelper(
|
|
69
82
|
async (url) => {
|
|
@@ -79,10 +92,12 @@ async function initModel(appContext, permission = true) {
|
|
|
79
92
|
return res.data;
|
|
80
93
|
},
|
|
81
94
|
ibiz.env.appId,
|
|
82
|
-
|
|
95
|
+
context,
|
|
83
96
|
permission
|
|
84
97
|
);
|
|
85
98
|
const app = await ibiz.hub.getAppAsync(ibiz.env.appId);
|
|
99
|
+
await initEnvironment();
|
|
100
|
+
await AppHooks.initedApp.call({ context, app });
|
|
86
101
|
const appModel = app.model;
|
|
87
102
|
ibiz.env.isMob = appModel.mobileApp === true;
|
|
88
103
|
if (ibiz.env.isEnableMultiLan) {
|
|
@@ -98,6 +113,8 @@ async function initModel(appContext, permission = true) {
|
|
|
98
113
|
const module = await import('@ibiz-template/mob-theme');
|
|
99
114
|
const theme = module.default || module;
|
|
100
115
|
AppHooks.useComponent.callSync(null, theme);
|
|
116
|
+
if (ibiz.config.theme)
|
|
117
|
+
ibiz.util.theme.setTheme(ibiz.config.theme);
|
|
101
118
|
if (appModel.appUIThemes) {
|
|
102
119
|
await loadTheme();
|
|
103
120
|
}
|
|
@@ -106,54 +123,123 @@ async function initModel(appContext, permission = true) {
|
|
|
106
123
|
}
|
|
107
124
|
}
|
|
108
125
|
}
|
|
109
|
-
async function
|
|
110
|
-
|
|
111
|
-
const app = await helper.getAppModel();
|
|
112
|
-
const userParam = app.userParam;
|
|
113
|
-
if (userParam) {
|
|
114
|
-
Object.keys(userParam).forEach((key) => {
|
|
115
|
-
const value = ibiz.util.rawValue.format(userParam[key]);
|
|
116
|
-
const keys = key.split(".");
|
|
117
|
-
let currentObj = ibiz.env;
|
|
118
|
-
for (let i = 0; i < keys.length; i++) {
|
|
119
|
-
const k = keys[i];
|
|
120
|
-
if (i === keys.length - 1) {
|
|
121
|
-
currentObj[k] = value;
|
|
122
|
-
} else {
|
|
123
|
-
currentObj[k] = currentObj[k] || {};
|
|
124
|
-
currentObj = currentObj[k];
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
if (ibiz.env.globalConfig) {
|
|
129
|
-
ibiz.config = mergeDeepRight(ibiz.config, ibiz.env.globalConfig);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async function appInit(appContext) {
|
|
126
|
+
async function appInit(context) {
|
|
127
|
+
await AppHooks.beforeInitApp.call({ context });
|
|
135
128
|
await AuthGuardHooks.beforeAuth.call(null, null);
|
|
136
129
|
if (ibiz.env.isSaaSMode === true) {
|
|
137
130
|
await loadOrgData();
|
|
138
131
|
}
|
|
139
|
-
await loadAppData();
|
|
132
|
+
await loadAppData(context);
|
|
140
133
|
await AuthGuardHooks.afterAuth.call(null, null);
|
|
141
|
-
await
|
|
142
|
-
await
|
|
143
|
-
|
|
134
|
+
await AppHooks.authedApp.call({ context });
|
|
135
|
+
await initModel(context);
|
|
136
|
+
await ibiz.auth.extendLogin(context);
|
|
137
|
+
await ibiz.hub.notice.init();
|
|
138
|
+
}
|
|
139
|
+
function throw401() {
|
|
140
|
+
throw new HttpError({
|
|
141
|
+
response: {
|
|
142
|
+
status: 401,
|
|
143
|
+
statusText: ibiz.i18n.t("mobApp.authGuard.noPermission")
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
async function anonymousValidate(context) {
|
|
148
|
+
const authInfo = ibiz.auth.getAuthInfo();
|
|
149
|
+
if (authInfo && !authInfo.isAnonymous) {
|
|
150
|
+
try {
|
|
151
|
+
await appInit(context);
|
|
152
|
+
return;
|
|
153
|
+
} catch (error) {
|
|
154
|
+
const { status } = error;
|
|
155
|
+
if (status === 401) {
|
|
156
|
+
const refreshToken = getAppCookie(CoreConst.REFRESH_TOKEN);
|
|
157
|
+
if (refreshToken) {
|
|
158
|
+
await ibiz.auth.refreshToken();
|
|
159
|
+
await appInit(context);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
ibiz.auth.clearAuthData();
|
|
163
|
+
} else {
|
|
164
|
+
throw error;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (authInfo == null ? void 0 : authInfo.token) {
|
|
169
|
+
try {
|
|
170
|
+
await appInit(context);
|
|
171
|
+
} catch (error) {
|
|
172
|
+
const { status } = error;
|
|
173
|
+
if (status === 401) {
|
|
174
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
175
|
+
if (!loginResult) {
|
|
176
|
+
throw401();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
await appInit(context);
|
|
180
|
+
} else {
|
|
181
|
+
throw error;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (!authInfo || !authInfo.token) {
|
|
186
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
187
|
+
if (!loginResult) {
|
|
188
|
+
throw401();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
await appInit(context);
|
|
192
|
+
}
|
|
193
|
+
const urlPaths = window.location.hash.split("/");
|
|
194
|
+
const viewName = urlPaths[urlPaths.length - 2];
|
|
195
|
+
let viewModel;
|
|
196
|
+
try {
|
|
197
|
+
if (viewName === "#" && ibiz.hub.defaultPage) {
|
|
198
|
+
viewModel = await ibiz.hub.getAppView(ibiz.hub.defaultPage.id);
|
|
199
|
+
} else {
|
|
200
|
+
viewModel = await ibiz.hub.getAppView(viewName);
|
|
201
|
+
}
|
|
202
|
+
} catch (error) {
|
|
203
|
+
ibiz.log.error(error);
|
|
204
|
+
}
|
|
205
|
+
if (!viewModel) {
|
|
206
|
+
ibiz.log.error(
|
|
207
|
+
`\u627E\u4E0D\u5230\u89C6\u56FE\u6A21\u578B${viewName},\u8BF7\u786E\u4FDD\u8BE5\u89C6\u56FE\u914D\u7F6E\u4E86\u533F\u540D\u8BBF\u95EE\u548C\u7528\u6237\u5F15\u7528`
|
|
208
|
+
);
|
|
209
|
+
throw401();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (viewModel.accUserMode !== 3) {
|
|
213
|
+
throw401();
|
|
214
|
+
}
|
|
144
215
|
}
|
|
145
216
|
async function AuthGuard(appContext, permission = true) {
|
|
146
217
|
if (permission) {
|
|
147
218
|
let result = true;
|
|
148
219
|
try {
|
|
149
|
-
|
|
220
|
+
if (ibiz.env.enableAnonymous) {
|
|
221
|
+
await anonymousValidate(appContext);
|
|
222
|
+
} else {
|
|
223
|
+
await appInit(appContext);
|
|
224
|
+
}
|
|
150
225
|
} catch (error) {
|
|
151
226
|
result = false;
|
|
227
|
+
error.tag = "APPINIT";
|
|
152
228
|
ibiz.util.error.handle(error);
|
|
153
229
|
}
|
|
154
230
|
return result;
|
|
155
231
|
}
|
|
156
|
-
|
|
232
|
+
if (ibiz.env.enableAnonymous) {
|
|
233
|
+
try {
|
|
234
|
+
await anonymousValidate(appContext);
|
|
235
|
+
} catch (error) {
|
|
236
|
+
error.tag = "APPINIT";
|
|
237
|
+
ibiz.util.error.handle(error);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
} else {
|
|
241
|
+
await initModel(appContext, false);
|
|
242
|
+
}
|
|
157
243
|
return true;
|
|
158
244
|
}
|
|
159
245
|
|
package/es/mob-app/main.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpError } from '@ibiz-template/core';
|
|
1
2
|
import { IErrorHandler } from '@ibiz-template/runtime';
|
|
2
3
|
/**
|
|
3
4
|
* 没有权限的错误处理器
|
|
@@ -9,6 +10,13 @@ import { IErrorHandler } from '@ibiz-template/runtime';
|
|
|
9
10
|
*/
|
|
10
11
|
export declare class UnauthorizedHandler implements IErrorHandler {
|
|
11
12
|
match(error: unknown): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @description 是否存在403错误未处理
|
|
15
|
+
* @protected
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
* @memberof UnauthorizedHandler
|
|
18
|
+
*/
|
|
19
|
+
protected hasPermErrPending: boolean;
|
|
12
20
|
/**
|
|
13
21
|
* cas登录处理
|
|
14
22
|
*
|
|
@@ -37,13 +45,13 @@ export declare class UnauthorizedHandler implements IErrorHandler {
|
|
|
37
45
|
*/
|
|
38
46
|
protected normalLogin(): Promise<void>;
|
|
39
47
|
/**
|
|
40
|
-
* 处理403
|
|
41
|
-
* @author lxm
|
|
42
|
-
* @date 2023-12-06 10:19:12
|
|
48
|
+
* @description 处理403
|
|
43
49
|
* @protected
|
|
44
|
-
* @
|
|
50
|
+
* @param {HttpError} error
|
|
51
|
+
* @returns {*} {Promise<void>}
|
|
52
|
+
* @memberof UnauthorizedHandler
|
|
45
53
|
*/
|
|
46
|
-
protected handle403(): Promise<void>;
|
|
54
|
+
protected handle403(error: HttpError): Promise<void>;
|
|
47
55
|
/**
|
|
48
56
|
* 没有权限处理
|
|
49
57
|
*
|
|
@@ -2,7 +2,22 @@ import qs from 'qs';
|
|
|
2
2
|
import { HttpError, RuntimeError, UrlHelper, LoginMode } from '@ibiz-template/core';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => {
|
|
8
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
+
return value;
|
|
10
|
+
};
|
|
5
11
|
class UnauthorizedHandler {
|
|
12
|
+
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* @description 是否存在403错误未处理
|
|
15
|
+
* @protected
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
* @memberof UnauthorizedHandler
|
|
18
|
+
*/
|
|
19
|
+
__publicField(this, "hasPermErrPending", false);
|
|
20
|
+
}
|
|
6
21
|
match(error) {
|
|
7
22
|
return error instanceof HttpError && (error.status === 401 || error.status === 403);
|
|
8
23
|
}
|
|
@@ -67,6 +82,9 @@ class UnauthorizedHandler {
|
|
|
67
82
|
*/
|
|
68
83
|
async normalLogin() {
|
|
69
84
|
const ru = window.location.hash.replace("#", "");
|
|
85
|
+
if (ru.startsWith("/login")) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
70
88
|
const targetUrl = `${UrlHelper.routeBase}/login?ru=${encodeURIComponent(
|
|
71
89
|
ru
|
|
72
90
|
)}`;
|
|
@@ -75,22 +93,31 @@ class UnauthorizedHandler {
|
|
|
75
93
|
window.location.reload();
|
|
76
94
|
}
|
|
77
95
|
/**
|
|
78
|
-
* 处理403
|
|
79
|
-
* @author lxm
|
|
80
|
-
* @date 2023-12-06 10:19:12
|
|
96
|
+
* @description 处理403
|
|
81
97
|
* @protected
|
|
82
|
-
* @
|
|
98
|
+
* @param {HttpError} error
|
|
99
|
+
* @returns {*} {Promise<void>}
|
|
100
|
+
* @memberof UnauthorizedHandler
|
|
83
101
|
*/
|
|
84
|
-
async handle403() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
102
|
+
async handle403(error) {
|
|
103
|
+
if (error.tag === "APPINIT") {
|
|
104
|
+
if (this.hasPermErrPending) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
this.hasPermErrPending = true;
|
|
108
|
+
const result = await ibiz.modal.confirm({
|
|
109
|
+
title: ibiz.i18n.t("mobApp.unauthorizedHandler.prohibitAccessPrompt"),
|
|
110
|
+
desc: ibiz.i18n.t("mobApp.unauthorizedHandler.exitPrompt")
|
|
111
|
+
});
|
|
112
|
+
this.hasPermErrPending = false;
|
|
113
|
+
if (result) {
|
|
114
|
+
const bol = await ibiz.auth.logout();
|
|
115
|
+
if (bol) {
|
|
116
|
+
window.location.reload();
|
|
117
|
+
}
|
|
93
118
|
}
|
|
119
|
+
} else {
|
|
120
|
+
ibiz.mc.error.send(error);
|
|
94
121
|
}
|
|
95
122
|
}
|
|
96
123
|
/**
|
|
@@ -103,7 +130,15 @@ class UnauthorizedHandler {
|
|
|
103
130
|
handle(error) {
|
|
104
131
|
if (error instanceof HttpError) {
|
|
105
132
|
if (error.status === 401) {
|
|
106
|
-
|
|
133
|
+
const search = qs.parse(window.location.search.replace("?", ""));
|
|
134
|
+
if ((search.isAnonymous || ibiz.env.enableAnonymous) && // 匿名登录获取视图模型发生异常,走普通登录,防止循环执行
|
|
135
|
+
error.tag !== "APPINIT") {
|
|
136
|
+
ibiz.auth.anonymousLogin().then((bol) => {
|
|
137
|
+
if (bol) {
|
|
138
|
+
window.location.reload();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
} else if (ibiz.env.loginMode === LoginMode.CAS) {
|
|
107
142
|
this.casLogin();
|
|
108
143
|
} else if (ibiz.env.loginMode === LoginMode.OAUTH) {
|
|
109
144
|
this.oauthLogin();
|
|
@@ -113,7 +148,7 @@ class UnauthorizedHandler {
|
|
|
113
148
|
return true;
|
|
114
149
|
}
|
|
115
150
|
if (error.status === 403) {
|
|
116
|
-
this.handle403();
|
|
151
|
+
this.handle403(error);
|
|
117
152
|
return true;
|
|
118
153
|
}
|
|
119
154
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/
|
|
2
|
+
import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/index13.mjs';
|
|
3
3
|
|
|
4
4
|
var frameTalkClientPc = frameTalkClientPc$1.exports;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __exports as middlewares } from '../../../../../../../../_virtual/
|
|
2
|
+
import { __exports as middlewares } from '../../../../../../../../_virtual/index12.mjs';
|
|
3
3
|
import '../../../../../../../../_virtual/bridge.mjs';
|
|
4
4
|
import { __require as requireRetry } from './retry.mjs';
|
|
5
5
|
import '../../../../../../../../_virtual/dealParamsAndResult.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const IBizMobAsyncAction: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
value: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
3
3
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("./mob-async-action.controller").MobAsyncActionController>, undefined, undefined>;
|
|
4
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
4
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
5
5
|
disabled: {
|
|
6
6
|
type: BooleanConstructor;
|
|
7
7
|
};
|
|
@@ -26,7 +26,7 @@ export declare const IBizMobAsyncAction: import("@ibiz-template/vue3-util").Type
|
|
|
26
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
value: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
28
28
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("./mob-async-action.controller").MobAsyncActionController>, undefined, undefined>;
|
|
29
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
29
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
30
30
|
disabled: {
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { MobAsyncActionController } from './mob-async-action.controller';
|
|
2
2
|
import './mob-async-action.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 后台作业组件
|
|
5
|
+
* @primary
|
|
6
|
+
* @description 用于在一些需要后台异步操作(如上传导入文件)的场景下,对异步操作过程和结果进行通知。
|
|
7
|
+
*/
|
|
3
8
|
export declare const MobAsyncAction: import("vue").DefineComponent<{
|
|
4
9
|
value: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
5
10
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<MobAsyncActionController>, undefined, undefined>;
|
|
6
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
11
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
7
12
|
disabled: {
|
|
8
13
|
type: BooleanConstructor;
|
|
9
14
|
};
|
|
@@ -28,7 +33,7 @@ export declare const MobAsyncAction: import("vue").DefineComponent<{
|
|
|
28
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
34
|
value: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
30
35
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<MobAsyncActionController>, undefined, undefined>;
|
|
31
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
36
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
32
37
|
disabled: {
|
|
33
38
|
type: BooleanConstructor;
|
|
34
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-auth-sso{--ibiz-auth-sso-icon-width:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-icon-height:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-gap:var(--ibiz-spacing-base);display:flex;gap:var(--ibiz-auth-sso-gap);justify-content:center;width:100%}.ibiz-auth-sso__sign-btn{width:var(--ibiz-auth-sso-icon-width);height:var(--ibiz-auth-sso-icon-height);cursor:pointer}.ibiz-auth-sso__sign-btn svg{width:100%;height:100%}
|
|
1
|
+
.ibiz-auth-sso{--ibiz-auth-sso-icon-width:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-icon-height:var(--ibiz-editor-default-line-height);--ibiz-auth-sso-gap:var(--ibiz-spacing-base);display:flex;gap:var(--ibiz-auth-sso-gap);justify-content:center;width:100%}.ibiz-auth-sso__sign-btn{width:var(--ibiz-auth-sso-icon-width);height:var(--ibiz-auth-sso-icon-height);cursor:pointer}.ibiz-auth-sso__sign-btn svg{width:100%;height:100%}.ibiz-auth-sso__sign-btn .ibiz-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
|
|
@@ -2,23 +2,46 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { PanelItemController } from '@ibiz-template/runtime';
|
|
3
3
|
import { IPanelRawItem } from '@ibiz/model-core';
|
|
4
4
|
import './auth-sso.scss';
|
|
5
|
+
/**
|
|
6
|
+
* 第三方登录
|
|
7
|
+
* @primary
|
|
8
|
+
* @description 使用第三方方式进行登录,默认预置了钉钉(DINGDING)和企业微信(WXWORK)两种登录方式。可通过自定义补充参数,灵活指定其他所需的第三方登录方式。
|
|
9
|
+
*/
|
|
5
10
|
export declare const AuthSso: import("vue").DefineComponent<{
|
|
11
|
+
/**
|
|
12
|
+
* @description 第三方登录组件模型数据
|
|
13
|
+
*/
|
|
6
14
|
modelData: {
|
|
7
15
|
type: PropType<IPanelRawItem>;
|
|
8
16
|
required: true;
|
|
9
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @description 第三方登录组件控制器
|
|
20
|
+
*/
|
|
10
21
|
controller: {
|
|
11
22
|
type: typeof PanelItemController;
|
|
12
23
|
required: true;
|
|
13
24
|
};
|
|
14
25
|
}, {
|
|
15
26
|
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
-
|
|
27
|
+
items: {
|
|
28
|
+
key: string | undefined;
|
|
29
|
+
sysImage: import("@ibiz/model-core").ISysImage | undefined;
|
|
30
|
+
title: any;
|
|
31
|
+
params: any;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
handleThridLogin: (type: string, params?: IData) => void;
|
|
17
34
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
/**
|
|
36
|
+
* @description 第三方登录组件模型数据
|
|
37
|
+
*/
|
|
18
38
|
modelData: {
|
|
19
39
|
type: PropType<IPanelRawItem>;
|
|
20
40
|
required: true;
|
|
21
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @description 第三方登录组件控制器
|
|
44
|
+
*/
|
|
22
45
|
controller: {
|
|
23
46
|
type: typeof PanelItemController;
|
|
24
47
|
required: true;
|