@ibiz-template/mob-vue3-components 0.0.55 → 0.7.41-alpha.8
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-xh-oAbbH.js +76 -0
- package/dist/index-xh-oAbbH.js.map +1 -0
- package/dist/index.min.css +4 -4
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-editor-ybZrwyoG.js → quill-editor-8Y2QTf1T.js} +2 -2
- package/dist/quill-editor-8Y2QTf1T.js.map +1 -0
- package/dist/{quill-editor-preview-G9EjDfQE.js → quill-editor-preview-Afg5ZCWy.js} +2 -2
- package/dist/{quill-editor-preview-G9EjDfQE.js.map → quill-editor-preview-Afg5ZCWy.js.map} +1 -1
- package/dist/{quill-t_EJUjVi.js → quill-sc_3kAlj.js} +2 -2
- package/dist/{quill-t_EJUjVi.js.map → quill-sc_3kAlj.js.map} +1 -1
- package/dist/tree-nburezSg.js.map +1 -1
- package/es/_virtual/index17.mjs +2 -2
- package/es/_virtual/index18.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/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.d.ts +5 -5
- 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 +23 -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-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +3 -3
- 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/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/html/quill-editor/quill-editor.d.ts +15 -0
- package/es/editor/index.mjs +7 -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.d.ts +16 -8
- 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 +256 -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 +1 -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 +129 -54
- 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 +47 -15
- package/es/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.mjs +1 -1
- package/es/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/view-header-panel-container.d.ts +17 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.mjs +6 -0
- 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/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/index17.cjs +2 -2
- package/lib/_virtual/index18.cjs +2 -2
- package/lib/common/index.cjs +1 -0
- package/lib/control/app-menu/app-menu.cjs +13 -0
- 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 +23 -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/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/index.cjs +7 -0
- package/lib/editor/text-box/index.cjs +2 -0
- package/lib/editor/text-box/signature/signature.cjs +258 -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 +2 -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 +128 -53
- package/lib/mob-app/main.cjs +1 -0
- package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +47 -15
- package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.cjs +1 -1
- package/lib/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 +6 -0
- 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/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 +7 -7
- 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
|
@@ -9,8 +9,13 @@ var index = require('../../../locale/index.cjs');
|
|
|
9
9
|
var authGuardHooks = require('../auth-guard-hooks.cjs');
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
|
-
async function loadAppData() {
|
|
13
|
-
|
|
12
|
+
async function loadAppData(context) {
|
|
13
|
+
let res;
|
|
14
|
+
if (context && Object.keys(context).length > 0) {
|
|
15
|
+
res = await ibiz.net.get("/appdata", context);
|
|
16
|
+
} else {
|
|
17
|
+
res = await ibiz.net.get("/appdata");
|
|
18
|
+
}
|
|
14
19
|
if (res.ok) {
|
|
15
20
|
ibiz.appData = res.data;
|
|
16
21
|
devtool.updateDevToolConfig();
|
|
@@ -26,24 +31,6 @@ async function loadOrgData() {
|
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
|
-
function setRefreshToken() {
|
|
30
|
-
const token = core.getAppCookie(core.CoreConst.TOKEN);
|
|
31
|
-
const expirein = core.getAppCookie(core.CoreConst.TOKEN_EXPIRES);
|
|
32
|
-
if (token && expirein) {
|
|
33
|
-
let wait = Number(expirein) - (/* @__PURE__ */ new Date()).getTime();
|
|
34
|
-
const early = 5 * 60 * 1e3;
|
|
35
|
-
wait = wait > early ? wait - early : 0;
|
|
36
|
-
setTimeout(async () => {
|
|
37
|
-
const res = await ibiz.net.get(`/uaa/refreshtoken2`);
|
|
38
|
-
if (res.ok) {
|
|
39
|
-
core.setAppCookie(core.CoreConst.TOKEN, res.data.token, 0);
|
|
40
|
-
const expiredDate = (/* @__PURE__ */ new Date()).getTime() + (res.data.expirein || 7199) * 1e3;
|
|
41
|
-
core.setAppCookie(core.CoreConst.TOKEN_EXPIRES, `${expiredDate}`, 0);
|
|
42
|
-
}
|
|
43
|
-
setRefreshToken();
|
|
44
|
-
}, wait);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
34
|
async function loadTheme() {
|
|
48
35
|
const app = ibiz.hub.getApp();
|
|
49
36
|
const uiThemes = app.model.appUIThemes || [];
|
|
@@ -65,7 +52,33 @@ async function loadTheme() {
|
|
|
65
52
|
}
|
|
66
53
|
}
|
|
67
54
|
let helper;
|
|
68
|
-
async function
|
|
55
|
+
async function initEnvironment() {
|
|
56
|
+
if (helper) {
|
|
57
|
+
const app = await helper.getAppModel();
|
|
58
|
+
const userParam = app.userParam;
|
|
59
|
+
if (userParam) {
|
|
60
|
+
Object.keys(userParam).forEach((key) => {
|
|
61
|
+
const value = ibiz.util.rawValue.format(userParam[key]);
|
|
62
|
+
const keys = key.split(".");
|
|
63
|
+
let currentObj = ibiz.env;
|
|
64
|
+
for (let i = 0; i < keys.length; i++) {
|
|
65
|
+
const k = keys[i];
|
|
66
|
+
if (i === keys.length - 1) {
|
|
67
|
+
currentObj[k] = value;
|
|
68
|
+
} else {
|
|
69
|
+
currentObj[k] = currentObj[k] || {};
|
|
70
|
+
currentObj = currentObj[k];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
if (ibiz.env.globalConfig) {
|
|
75
|
+
ibiz.config = ramda.mergeDeepRight(ibiz.config, ibiz.env.globalConfig);
|
|
76
|
+
}
|
|
77
|
+
ibiz.log.setLevel(ibiz.env.logLevel);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async function initModel(context, permission = true) {
|
|
69
82
|
if (!helper) {
|
|
70
83
|
helper = new modelHelper.ModelHelper(
|
|
71
84
|
async (url) => {
|
|
@@ -81,10 +94,12 @@ async function initModel(appContext, permission = true) {
|
|
|
81
94
|
return res.data;
|
|
82
95
|
},
|
|
83
96
|
ibiz.env.appId,
|
|
84
|
-
|
|
97
|
+
context,
|
|
85
98
|
permission
|
|
86
99
|
);
|
|
87
100
|
const app = await ibiz.hub.getAppAsync(ibiz.env.appId);
|
|
101
|
+
await initEnvironment();
|
|
102
|
+
await vue3Util.AppHooks.initedApp.call({ context, app });
|
|
88
103
|
const appModel = app.model;
|
|
89
104
|
ibiz.env.isMob = appModel.mobileApp === true;
|
|
90
105
|
if (ibiz.env.isEnableMultiLan) {
|
|
@@ -100,6 +115,8 @@ async function initModel(appContext, permission = true) {
|
|
|
100
115
|
const module = await import('@ibiz-template/mob-theme');
|
|
101
116
|
const theme = module.default || module;
|
|
102
117
|
vue3Util.AppHooks.useComponent.callSync(null, theme);
|
|
118
|
+
if (ibiz.config.theme)
|
|
119
|
+
ibiz.util.theme.setTheme(ibiz.config.theme);
|
|
103
120
|
if (appModel.appUIThemes) {
|
|
104
121
|
await loadTheme();
|
|
105
122
|
}
|
|
@@ -108,49 +125,107 @@ async function initModel(appContext, permission = true) {
|
|
|
108
125
|
}
|
|
109
126
|
}
|
|
110
127
|
}
|
|
111
|
-
async function
|
|
112
|
-
|
|
113
|
-
const app = await helper.getAppModel();
|
|
114
|
-
const userParam = app.userParam;
|
|
115
|
-
if (userParam) {
|
|
116
|
-
Object.keys(userParam).forEach((key) => {
|
|
117
|
-
const value = ibiz.util.rawValue.format(userParam[key]);
|
|
118
|
-
const keys = key.split(".");
|
|
119
|
-
let currentObj = ibiz.env;
|
|
120
|
-
for (let i = 0; i < keys.length; i++) {
|
|
121
|
-
const k = keys[i];
|
|
122
|
-
if (i === keys.length - 1) {
|
|
123
|
-
currentObj[k] = value;
|
|
124
|
-
} else {
|
|
125
|
-
currentObj[k] = currentObj[k] || {};
|
|
126
|
-
currentObj = currentObj[k];
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
if (ibiz.env.globalConfig) {
|
|
131
|
-
ibiz.config = ramda.mergeDeepRight(ibiz.config, ibiz.env.globalConfig);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
async function appInit(appContext) {
|
|
128
|
+
async function appInit(context) {
|
|
129
|
+
await vue3Util.AppHooks.beforeInitApp.call({ context });
|
|
137
130
|
await authGuardHooks.AuthGuardHooks.beforeAuth.call(null, null);
|
|
138
131
|
if (ibiz.env.isSaaSMode === true) {
|
|
139
132
|
await loadOrgData();
|
|
140
133
|
}
|
|
141
|
-
await loadAppData();
|
|
134
|
+
await loadAppData(context);
|
|
142
135
|
await authGuardHooks.AuthGuardHooks.afterAuth.call(null, null);
|
|
143
|
-
await
|
|
144
|
-
await
|
|
145
|
-
|
|
136
|
+
await vue3Util.AppHooks.authedApp.call({ context });
|
|
137
|
+
await initModel(context);
|
|
138
|
+
await ibiz.auth.extendLogin(context);
|
|
139
|
+
await ibiz.hub.notice.init();
|
|
140
|
+
}
|
|
141
|
+
function throw401() {
|
|
142
|
+
throw new core.HttpError({
|
|
143
|
+
response: {
|
|
144
|
+
status: 401,
|
|
145
|
+
statusText: ibiz.i18n.t("mobApp.authGuard.noPermission")
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
async function anonymousValidate(context) {
|
|
150
|
+
const authInfo = ibiz.auth.getAuthInfo();
|
|
151
|
+
if (authInfo && !authInfo.isAnonymous) {
|
|
152
|
+
try {
|
|
153
|
+
await appInit(context);
|
|
154
|
+
} catch (error) {
|
|
155
|
+
const { status } = error;
|
|
156
|
+
if (status === 401) {
|
|
157
|
+
const refreshToken = core.getAppCookie(core.CoreConst.REFRESH_TOKEN);
|
|
158
|
+
if (refreshToken) {
|
|
159
|
+
await ibiz.auth.refreshToken();
|
|
160
|
+
await appInit(context);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
ibiz.auth.clearAuthData();
|
|
164
|
+
} else {
|
|
165
|
+
throw error;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (authInfo == null ? void 0 : authInfo.token) {
|
|
170
|
+
try {
|
|
171
|
+
await appInit(context);
|
|
172
|
+
} catch (error) {
|
|
173
|
+
const { status } = error;
|
|
174
|
+
if (status === 401) {
|
|
175
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
176
|
+
if (!loginResult) {
|
|
177
|
+
throw new core.RuntimeError(ibiz.i18n.t("mobApp.authGuard.loginFailed"));
|
|
178
|
+
}
|
|
179
|
+
await appInit(context);
|
|
180
|
+
} else {
|
|
181
|
+
throw error;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
await initModel(context, false);
|
|
186
|
+
const urlPaths = window.location.hash.split("/");
|
|
187
|
+
const viewName = urlPaths[urlPaths.length - 2];
|
|
188
|
+
let viewModel;
|
|
189
|
+
try {
|
|
190
|
+
if (viewName === "#" && ibiz.hub.defaultPage) {
|
|
191
|
+
viewModel = await ibiz.hub.getAppView(ibiz.hub.defaultPage.id);
|
|
192
|
+
} else {
|
|
193
|
+
viewModel = await ibiz.hub.getAppView(viewName);
|
|
194
|
+
}
|
|
195
|
+
} catch (error) {
|
|
196
|
+
ibiz.log.error(error);
|
|
197
|
+
}
|
|
198
|
+
if (!viewModel) {
|
|
199
|
+
ibiz.log.error(
|
|
200
|
+
`\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`
|
|
201
|
+
);
|
|
202
|
+
throw401();
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
if (viewModel.accUserMode !== 3) {
|
|
206
|
+
throw401();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (!authInfo) {
|
|
210
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
211
|
+
if (!loginResult) {
|
|
212
|
+
throw new core.RuntimeError(ibiz.i18n.t("mobApp.authGuard.loginFailed"));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
await appInit(context);
|
|
146
216
|
}
|
|
147
217
|
async function AuthGuard(appContext, permission = true) {
|
|
148
218
|
if (permission) {
|
|
149
219
|
let result = true;
|
|
150
220
|
try {
|
|
151
|
-
|
|
221
|
+
if (ibiz.env.enableAnonymous) {
|
|
222
|
+
await anonymousValidate(appContext);
|
|
223
|
+
} else {
|
|
224
|
+
await appInit(appContext);
|
|
225
|
+
}
|
|
152
226
|
} catch (error) {
|
|
153
227
|
result = false;
|
|
228
|
+
error.tag = "APPINIT";
|
|
154
229
|
ibiz.util.error.handle(error);
|
|
155
230
|
}
|
|
156
231
|
return result;
|
package/lib/mob-app/main.cjs
CHANGED
|
@@ -33,6 +33,7 @@ async function runApp(plugins) {
|
|
|
33
33
|
});
|
|
34
34
|
core.install();
|
|
35
35
|
runtime.install();
|
|
36
|
+
vue3Util.AppHooks.appResorceInited.call(ibiz.hub);
|
|
36
37
|
ibiz.plugin = new vue3Util.PluginFactory();
|
|
37
38
|
ibiz.util.error.register(new unauthorizedHandler.UnauthorizedHandler());
|
|
38
39
|
const app = createVueApp.createVueApp(App.default);
|
|
@@ -4,7 +4,22 @@ var qs = require('qs');
|
|
|
4
4
|
var core = require('@ibiz-template/core');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __publicField = (obj, key, value) => {
|
|
10
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
7
13
|
class UnauthorizedHandler {
|
|
14
|
+
constructor() {
|
|
15
|
+
/**
|
|
16
|
+
* @description 是否存在403错误未处理
|
|
17
|
+
* @protected
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
* @memberof UnauthorizedHandler
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "hasPermErrPending", false);
|
|
22
|
+
}
|
|
8
23
|
match(error) {
|
|
9
24
|
return error instanceof core.HttpError && (error.status === 401 || error.status === 403);
|
|
10
25
|
}
|
|
@@ -77,22 +92,31 @@ class UnauthorizedHandler {
|
|
|
77
92
|
window.location.reload();
|
|
78
93
|
}
|
|
79
94
|
/**
|
|
80
|
-
* 处理403
|
|
81
|
-
* @author lxm
|
|
82
|
-
* @date 2023-12-06 10:19:12
|
|
95
|
+
* @description 处理403
|
|
83
96
|
* @protected
|
|
84
|
-
* @
|
|
97
|
+
* @param {HttpError} error
|
|
98
|
+
* @returns {*} {Promise<void>}
|
|
99
|
+
* @memberof UnauthorizedHandler
|
|
85
100
|
*/
|
|
86
|
-
async handle403() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
101
|
+
async handle403(error) {
|
|
102
|
+
if (error.tag === "APPINIT") {
|
|
103
|
+
if (this.hasPermErrPending) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
this.hasPermErrPending = true;
|
|
107
|
+
const result = await ibiz.modal.confirm({
|
|
108
|
+
title: ibiz.i18n.t("mobApp.unauthorizedHandler.prohibitAccessPrompt"),
|
|
109
|
+
desc: ibiz.i18n.t("mobApp.unauthorizedHandler.exitPrompt")
|
|
110
|
+
});
|
|
111
|
+
this.hasPermErrPending = false;
|
|
112
|
+
if (result) {
|
|
113
|
+
const bol = await ibiz.auth.logout();
|
|
114
|
+
if (bol) {
|
|
115
|
+
window.location.reload();
|
|
116
|
+
}
|
|
95
117
|
}
|
|
118
|
+
} else {
|
|
119
|
+
ibiz.mc.error.send(error);
|
|
96
120
|
}
|
|
97
121
|
}
|
|
98
122
|
/**
|
|
@@ -105,7 +129,15 @@ class UnauthorizedHandler {
|
|
|
105
129
|
handle(error) {
|
|
106
130
|
if (error instanceof core.HttpError) {
|
|
107
131
|
if (error.status === 401) {
|
|
108
|
-
|
|
132
|
+
const search = qs.parse(window.location.search.replace("?", ""));
|
|
133
|
+
if ((search.isAnonymous || ibiz.env.enableAnonymous) && // 匿名登录获取视图模型发生异常,走普通登录,防止循环执行
|
|
134
|
+
error.tag !== "APPINIT") {
|
|
135
|
+
ibiz.auth.anonymousLogin().then((bol) => {
|
|
136
|
+
if (bol) {
|
|
137
|
+
window.location.reload();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
} else if (ibiz.env.loginMode === core.LoginMode.CAS) {
|
|
109
141
|
this.casLogin();
|
|
110
142
|
} else if (ibiz.env.loginMode === core.LoginMode.OAUTH) {
|
|
111
143
|
this.oauthLogin();
|
|
@@ -115,7 +147,7 @@ class UnauthorizedHandler {
|
|
|
115
147
|
return true;
|
|
116
148
|
}
|
|
117
149
|
if (error.status === 403) {
|
|
118
|
-
this.handle403();
|
|
150
|
+
this.handle403(error);
|
|
119
151
|
return true;
|
|
120
152
|
}
|
|
121
153
|
}
|
package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
-
var index$1 = require('../../../../../_virtual/
|
|
6
|
+
var index$1 = require('../../../../../_virtual/index18.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
-
var index$1 = require('../../../../../_virtual/
|
|
6
|
+
var index$1 = require('../../../../../_virtual/index17.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
@@ -9,24 +9,45 @@ require('./auth-sso.css');
|
|
|
9
9
|
const AuthSso = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
name: "IBizAuthSsO",
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @description 第三方登录组件模型数据
|
|
14
|
+
*/
|
|
12
15
|
modelData: {
|
|
13
16
|
type: Object,
|
|
14
17
|
required: true
|
|
15
18
|
},
|
|
19
|
+
/**
|
|
20
|
+
* @description 第三方登录组件控制器
|
|
21
|
+
*/
|
|
16
22
|
controller: {
|
|
17
23
|
type: runtime.PanelItemController,
|
|
18
24
|
required: true
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
|
-
setup() {
|
|
27
|
+
setup(props) {
|
|
28
|
+
var _a;
|
|
22
29
|
const ns = vue3Util.useNamespace("auth-sso");
|
|
30
|
+
const model = props.controller.model;
|
|
31
|
+
const rawItemParams = (_a = model.rawItem) == null ? void 0 : _a.rawItemParams;
|
|
32
|
+
const items = rawItemParams == null ? void 0 : rawItemParams.map((item) => {
|
|
33
|
+
const params = item.value ? JSON.parse(item.value) : {};
|
|
34
|
+
return {
|
|
35
|
+
key: item.key,
|
|
36
|
+
sysImage: item.sysImage,
|
|
37
|
+
title: params.title,
|
|
38
|
+
params
|
|
39
|
+
};
|
|
40
|
+
});
|
|
23
41
|
const dingtalkHandleClick = async () => {
|
|
24
42
|
ibiz.thirdAuth.auth("DINGTALK", "THIRD");
|
|
25
43
|
};
|
|
26
44
|
const wxWorkHandleClick = async () => {
|
|
27
45
|
ibiz.thirdAuth.auth("WXWORK", "THIRD");
|
|
28
46
|
};
|
|
29
|
-
const
|
|
47
|
+
const oauthHandleClick = async (params) => {
|
|
48
|
+
ibiz.thirdAuth.auth("OAUTH", "THIRD", params);
|
|
49
|
+
};
|
|
50
|
+
const handleThridLogin = (type, params) => {
|
|
30
51
|
if (!type)
|
|
31
52
|
return;
|
|
32
53
|
switch (type) {
|
|
@@ -37,18 +58,75 @@ const AuthSso = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
58
|
wxWorkHandleClick();
|
|
38
59
|
break;
|
|
39
60
|
default:
|
|
40
|
-
|
|
41
|
-
type
|
|
42
|
-
}));
|
|
61
|
+
oauthHandleClick(params);
|
|
43
62
|
break;
|
|
44
63
|
}
|
|
45
64
|
};
|
|
46
65
|
return {
|
|
47
66
|
ns,
|
|
67
|
+
items,
|
|
48
68
|
handleThridLogin
|
|
49
69
|
};
|
|
50
70
|
},
|
|
51
71
|
render() {
|
|
72
|
+
if (this.items && this.items.length) {
|
|
73
|
+
return vue.createVNode("div", {
|
|
74
|
+
"class": this.ns.b()
|
|
75
|
+
}, [this.items.map((item) => {
|
|
76
|
+
var _a;
|
|
77
|
+
let icon;
|
|
78
|
+
if (item.sysImage) {
|
|
79
|
+
icon = vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
80
|
+
"icon": item.sysImage
|
|
81
|
+
}, null);
|
|
82
|
+
} else if (item.key === "DINGDING") {
|
|
83
|
+
icon = vue.createVNode("svg", {
|
|
84
|
+
"class": "icon",
|
|
85
|
+
"viewBox": "0 0 1024 1024",
|
|
86
|
+
"version": "1.1",
|
|
87
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
88
|
+
"p-id": "651",
|
|
89
|
+
"width": "48",
|
|
90
|
+
"height": "48"
|
|
91
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("style", {
|
|
92
|
+
"type": "text/css"
|
|
93
|
+
}, null)]), vue.createVNode("path", {
|
|
94
|
+
"d": "M512 2C230.2 2 2 230.2 2 512s228.2 510 510 510 510-228.2 510-510S793.3 2 512 2z m235.9 442c-1 4.6-3.6 10.8-7.2 19.1l-0.5 0.5c-21.6 45.8-77.3 135.5-77.3 135.5l-0.5-0.5-16.5 28.3h78.8L574.3 826.8l34-136h-61.8l21.6-90.2c-17.5 4.1-38.1 9.8-62.3 18 0 0-33 19.1-94.8-37.1 0 0-41.7-37.1-17.5-45.8 10.3-4.1 50-8.8 81.4-12.9 42.2-5.7 68.5-8.8 68.5-8.8s-130.3 2.1-161.2-3.1c-30.9-4.6-70.1-56.7-78.3-102 0 0-12.9-24.7 27.8-12.9 40.2 11.8 209.2 45.8 209.2 45.8S321.4 375 307 358.5c-14.4-16.5-42.8-89.6-39.2-134.5 0 0 1.5-11.3 12.9-8.2 0 0 161.8 74.2 272.5 114.4C664.5 371.4 760.8 392 747.9 444z",
|
|
95
|
+
"fill": "#3296FA",
|
|
96
|
+
"p-id": "652"
|
|
97
|
+
}, null)]);
|
|
98
|
+
} else if (item.key === "WXWORK") {
|
|
99
|
+
icon = vue.createVNode("svg", {
|
|
100
|
+
"class": "icon",
|
|
101
|
+
"width": "200px",
|
|
102
|
+
"height": "200.00px",
|
|
103
|
+
"viewBox": "0 0 1024 1024",
|
|
104
|
+
"version": "1.1",
|
|
105
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
106
|
+
}, [vue.createVNode("path", {
|
|
107
|
+
"fill": "#36ab60",
|
|
108
|
+
"d": "M352.814545 385.396364m-33.512727 0a33.512727 33.512727 0 1 0 67.025455 0 33.512727 33.512727 0 1 0-67.025455 0Z"
|
|
109
|
+
}, null), vue.createVNode("path", {
|
|
110
|
+
"fill": "#36ab60",
|
|
111
|
+
"d": "M502.690909 384.465455m-33.512727 0a33.512727 33.512727 0 1 0 67.025454 0 33.512727 33.512727 0 1 0-67.025454 0Z"
|
|
112
|
+
}, null), vue.createVNode("path", {
|
|
113
|
+
"fill": "#36ab60",
|
|
114
|
+
"d": "M576.232727 534.341818m-23.272727 0a23.272727 23.272727 0 1 0 46.545455 0 23.272727 23.272727 0 1 0-46.545455 0Z"
|
|
115
|
+
}, null), vue.createVNode("path", {
|
|
116
|
+
"fill": "#36ab60",
|
|
117
|
+
"d": "M694.458182 536.203636m-23.272727 0a23.272727 23.272727 0 1 0 46.545454 0 23.272727 23.272727 0 1 0-46.545454 0Z"
|
|
118
|
+
}, null), vue.createVNode("path", {
|
|
119
|
+
"fill": "#36ab60",
|
|
120
|
+
"d": "M512 0C229.003636 0 0 229.003636 0 512s229.003636 512 512 512 512-229.003636 512-512S794.996364 0 512 0z m-87.505455 630.225455c-26.996364 0-48.407273-5.585455-75.403636-11.17091l-75.403636 37.236364 21.410909-64.232727c-53.992727-37.236364-85.643636-85.643636-85.643637-145.221818 0-102.4 96.814545-182.458182 215.04-182.458182 105.192727 0 198.283636 64.232727 216.901819 150.807273-6.516364-0.930909-13.963636-0.930909-20.48-0.93091-102.4 0-182.458182 76.334545-182.458182 170.356364 0 15.825455 2.792727 30.72 6.516363 44.683636-7.447273 0-13.963636 0.930909-20.48 0.93091z m314.647273 75.403636l15.825455 53.992727-58.647273-32.581818c-21.410909 5.585455-42.821818 11.170909-64.232727 11.170909-102.4 0-182.458182-69.818182-182.458182-155.461818s80.058182-155.461818 182.458182-155.461818c96.814545 0 182.458182 69.818182 182.458182 155.461818 0 47.476364-31.650909 90.298182-75.403637 122.88z"
|
|
121
|
+
}, null)]);
|
|
122
|
+
}
|
|
123
|
+
return vue.createVNode("div", {
|
|
124
|
+
"class": [this.ns.e("sign-btn"), this.ns.m(item.key === "WXWORK" ? "wx" : (_a = item.key) == null ? void 0 : _a.toLowerCase())],
|
|
125
|
+
"title": item.title,
|
|
126
|
+
"onClick": () => this.handleThridLogin(item.key, item.params)
|
|
127
|
+
}, [icon]);
|
|
128
|
+
})]);
|
|
129
|
+
}
|
|
52
130
|
return vue.createVNode("div", {
|
|
53
131
|
"class": this.ns.b()
|
|
54
132
|
}, [vue.createVNode("div", {
|
|
@@ -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%}
|
|
@@ -9,10 +9,16 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
9
9
|
const AuthUserinfo = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
name: "IBizAuthUserinfo",
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @description 用户信息组件模型数据
|
|
14
|
+
*/
|
|
12
15
|
modelData: {
|
|
13
16
|
type: Object,
|
|
14
17
|
required: true
|
|
15
18
|
},
|
|
19
|
+
/**
|
|
20
|
+
* @description 用户信息组件控制器
|
|
21
|
+
*/
|
|
16
22
|
controller: {
|
|
17
23
|
type: runtime.PanelItemController,
|
|
18
24
|
required: true
|
|
@@ -10,10 +10,16 @@ require('./nav-pos-index.css');
|
|
|
10
10
|
const NavPosIndex = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
name: "IBizNavPosIndex",
|
|
12
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* @description 首页导航占位模型数据
|
|
15
|
+
*/
|
|
13
16
|
modelData: {
|
|
14
17
|
type: Object,
|
|
15
18
|
required: true
|
|
16
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* @description 首页导航占位控制器
|
|
22
|
+
*/
|
|
17
23
|
controller: {
|
|
18
24
|
type: navPosIndex_controller.NavPosIndexController,
|
|
19
25
|
required: true
|
|
@@ -16,39 +16,31 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
19
|
-
* 导航视图的modal
|
|
20
|
-
* @
|
|
21
|
-
* @date 2023-05-12 09:47:52
|
|
19
|
+
* @description 导航视图的modal
|
|
20
|
+
* @exposedoc
|
|
22
21
|
* @type {{ [key: string]: IModal }}
|
|
23
22
|
*/
|
|
24
23
|
__publicField(this, "viewModals", {});
|
|
25
24
|
/**
|
|
26
|
-
* router对象
|
|
27
|
-
* @author lxm
|
|
28
|
-
* @date 2023-05-25 08:02:43
|
|
25
|
+
* @description router对象
|
|
29
26
|
* @type {Router}
|
|
30
27
|
*/
|
|
31
28
|
__publicField(this, "router");
|
|
32
29
|
/**
|
|
33
|
-
* 是否关闭后自动跳转上一个页面
|
|
34
|
-
* @
|
|
35
|
-
* @date 2023-05-25 08:43:49
|
|
30
|
+
* @description 是否关闭后自动跳转上一个页面
|
|
31
|
+
* @exposedoc
|
|
36
32
|
* @type {boolean}
|
|
37
33
|
*/
|
|
38
34
|
__publicField(this, "autoGoLast", true);
|
|
39
35
|
/**
|
|
40
|
-
* 自定义补充参数
|
|
41
|
-
*
|
|
42
|
-
* @author tony001
|
|
43
|
-
* @date 2025-01-21 16:01:25
|
|
36
|
+
* @description 自定义补充参数
|
|
37
|
+
* @exposedoc
|
|
44
38
|
* @type {IData}
|
|
45
39
|
*/
|
|
46
40
|
__publicField(this, "rawItemParams", {});
|
|
47
41
|
/**
|
|
48
|
-
* 无缓存
|
|
49
|
-
*
|
|
50
|
-
* @author tony001
|
|
51
|
-
* @date 2025-01-21 16:01:25
|
|
42
|
+
* @description 无缓存
|
|
43
|
+
* @exposedoc
|
|
52
44
|
* @type {boolean}
|
|
53
45
|
*/
|
|
54
46
|
__publicField(this, "noCache", false);
|
|
@@ -66,18 +58,16 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
66
58
|
this.router = router;
|
|
67
59
|
}
|
|
68
60
|
/**
|
|
69
|
-
* 当前视图的路由层级,非路由模式不存在。
|
|
70
|
-
* @
|
|
71
|
-
* @date 2023-05-09 12:46:26
|
|
61
|
+
* @description 当前视图的路由层级,非路由模式不存在。
|
|
62
|
+
* @exposedoc
|
|
72
63
|
* @readonly
|
|
73
64
|
*/
|
|
74
65
|
get routeDepth() {
|
|
75
66
|
return this.panel.view.modal.routeDepth;
|
|
76
67
|
}
|
|
77
68
|
/**
|
|
78
|
-
* 应用菜单控制器
|
|
79
|
-
* @
|
|
80
|
-
* @date 2023-05-10 08:41:42
|
|
69
|
+
* @description 应用菜单控制器
|
|
70
|
+
* @exposedoc
|
|
81
71
|
* @readonly
|
|
82
72
|
* @type {(IAppMenuController | undefined)}
|
|
83
73
|
*/
|
|
@@ -85,9 +75,8 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
85
75
|
return this.panel.getController("appmenu");
|
|
86
76
|
}
|
|
87
77
|
/**
|
|
88
|
-
* 改变显示视图
|
|
89
|
-
* @
|
|
90
|
-
* @date 2023-05-25 01:28:49
|
|
78
|
+
* @description 改变显示视图
|
|
79
|
+
* @exposedoc
|
|
91
80
|
* @param {string} key
|
|
92
81
|
*/
|
|
93
82
|
changeView(key) {
|
|
@@ -149,9 +138,8 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
149
138
|
}
|
|
150
139
|
}
|
|
151
140
|
/**
|
|
152
|
-
* 删除单个缓存
|
|
153
|
-
* @
|
|
154
|
-
* @date 2023-05-09 02:19:09
|
|
141
|
+
* @description 删除单个缓存
|
|
142
|
+
* @exposedoc
|
|
155
143
|
* @param {string} key
|
|
156
144
|
*/
|
|
157
145
|
removeCache(key) {
|
|
@@ -167,19 +155,16 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
167
155
|
}
|
|
168
156
|
}
|
|
169
157
|
/**
|
|
170
|
-
* 清空缓存
|
|
171
|
-
* @
|
|
172
|
-
* @date 2023-05-09 02:19:55
|
|
158
|
+
* @description 清空缓存
|
|
159
|
+
* @exposedoc
|
|
173
160
|
*/
|
|
174
161
|
clearCache() {
|
|
175
162
|
this.state.cacheKeys = [];
|
|
176
163
|
this.viewModals = {};
|
|
177
164
|
}
|
|
178
165
|
/**
|
|
179
|
-
* 关闭视图
|
|
180
|
-
*
|
|
181
|
-
* @author lxm
|
|
182
|
-
* @date 2023-05-25 03:10:23
|
|
166
|
+
* @description 关闭视图
|
|
167
|
+
* @exposedoc
|
|
183
168
|
* @param {string} keys
|
|
184
169
|
*/
|
|
185
170
|
async closeViewByKeys(keys) {
|
|
@@ -210,7 +195,8 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
210
195
|
}
|
|
211
196
|
}
|
|
212
197
|
/**
|
|
213
|
-
* 返回上一个页面或上一层空白路由
|
|
198
|
+
* @description 返回上一个页面或上一层空白路由
|
|
199
|
+
* @exposedoc
|
|
214
200
|
* @author lxm
|
|
215
201
|
* @date 2023-05-25 06:46:27
|
|
216
202
|
* @protected
|