@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
package/es/locale/en/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const _default: {
|
|
|
43
43
|
onFoundCorrespondingPart: string;
|
|
44
44
|
noFoundViewModel: string;
|
|
45
45
|
noSupportLoadingDynamic: string;
|
|
46
|
+
invalidPointCoordinates: string;
|
|
46
47
|
};
|
|
47
48
|
control: {
|
|
48
49
|
unsupportedPanel: string;
|
|
@@ -102,6 +103,7 @@ declare const _default: {
|
|
|
102
103
|
runtime: {
|
|
103
104
|
common: {
|
|
104
105
|
unrealized: string;
|
|
106
|
+
noExplanation: string;
|
|
105
107
|
};
|
|
106
108
|
command: {
|
|
107
109
|
app: {
|
|
@@ -131,8 +133,17 @@ declare const _default: {
|
|
|
131
133
|
noChange: string;
|
|
132
134
|
firstComplete: string;
|
|
133
135
|
noMoveDataCconfig: string;
|
|
136
|
+
exportRequestFailed: string;
|
|
134
137
|
changeGroupError: string;
|
|
135
138
|
computeMoveMetaError: string;
|
|
139
|
+
unclassified: string;
|
|
140
|
+
today: string;
|
|
141
|
+
adjustmentsGroup: string;
|
|
142
|
+
noAllowReorder: string;
|
|
143
|
+
sortingProperties: string;
|
|
144
|
+
invalidSortType: string;
|
|
145
|
+
logicOpendata: string;
|
|
146
|
+
logicNewdata: string;
|
|
136
147
|
};
|
|
137
148
|
editor: {
|
|
138
149
|
editorNoConfigured: string;
|
|
@@ -154,7 +165,6 @@ declare const _default: {
|
|
|
154
165
|
noConfigured: string;
|
|
155
166
|
};
|
|
156
167
|
calendar: {
|
|
157
|
-
missingViewLogic: string;
|
|
158
168
|
noFoundModel: string;
|
|
159
169
|
};
|
|
160
170
|
chart: {
|
|
@@ -169,6 +179,10 @@ declare const _default: {
|
|
|
169
179
|
classificationNotArray: string;
|
|
170
180
|
classificationNotString: string;
|
|
171
181
|
errorJson: string;
|
|
182
|
+
value: string;
|
|
183
|
+
percent: string;
|
|
184
|
+
serieGroup: string;
|
|
185
|
+
catalogField: string;
|
|
172
186
|
};
|
|
173
187
|
dataView: {
|
|
174
188
|
noBehaviourGroup: string;
|
|
@@ -236,11 +250,8 @@ declare const _default: {
|
|
|
236
250
|
interfaceBehavior: string;
|
|
237
251
|
};
|
|
238
252
|
kanban: {
|
|
239
|
-
sortingProperties: string;
|
|
240
253
|
sortDirection: string;
|
|
241
254
|
groupedOn: string;
|
|
242
|
-
adjustmentsGroup: string;
|
|
243
|
-
noAllowReorder: string;
|
|
244
255
|
};
|
|
245
256
|
meditViewPanel: {
|
|
246
257
|
DraftNew: string;
|
|
@@ -315,7 +326,11 @@ declare const _default: {
|
|
|
315
326
|
objectNameField: string;
|
|
316
327
|
};
|
|
317
328
|
valueRule: {
|
|
329
|
+
maxLength: string;
|
|
330
|
+
minLength: string;
|
|
318
331
|
length: string;
|
|
332
|
+
maxValue: string;
|
|
333
|
+
minValue: string;
|
|
319
334
|
};
|
|
320
335
|
viewMsg: {
|
|
321
336
|
message: string;
|
|
@@ -336,6 +351,11 @@ declare const _default: {
|
|
|
336
351
|
resetSuccess: string;
|
|
337
352
|
resetError: string;
|
|
338
353
|
};
|
|
354
|
+
util: {
|
|
355
|
+
quarter: string;
|
|
356
|
+
month: string;
|
|
357
|
+
week: string;
|
|
358
|
+
};
|
|
339
359
|
};
|
|
340
360
|
};
|
|
341
361
|
deLogic: {
|
|
@@ -346,6 +366,7 @@ declare const _default: {
|
|
|
346
366
|
sourceDataMissingConditionValue: string;
|
|
347
367
|
noSupportedTime: string;
|
|
348
368
|
entityLogicalConnection: string;
|
|
369
|
+
entityLogicalContainsConnection: string;
|
|
349
370
|
comparisonCondition: string;
|
|
350
371
|
comparisonValue: string;
|
|
351
372
|
compareResults: string;
|
|
@@ -558,6 +579,11 @@ declare const _default: {
|
|
|
558
579
|
oauthOpenAccessIdError: string;
|
|
559
580
|
noImplemented: string;
|
|
560
581
|
};
|
|
582
|
+
dataException: string;
|
|
583
|
+
noSortField: string;
|
|
584
|
+
noDragElementId: string;
|
|
585
|
+
noTargetElementId: string;
|
|
586
|
+
noMoveTypeField: string;
|
|
561
587
|
};
|
|
562
588
|
uiAction: {
|
|
563
589
|
noEntityOrBehavior: string;
|
|
@@ -578,6 +604,7 @@ declare const _default: {
|
|
|
578
604
|
withdrawalConfirmed: string;
|
|
579
605
|
noFoundBehaviorModel: string;
|
|
580
606
|
noEnableAI: string;
|
|
607
|
+
exportWithNoDataSet: string;
|
|
581
608
|
};
|
|
582
609
|
uiLogic: {
|
|
583
610
|
interfaceConnectionConditional: string;
|
|
@@ -586,6 +613,7 @@ declare const _default: {
|
|
|
586
613
|
sourceDataObjectAttribute: string;
|
|
587
614
|
currentTime: string;
|
|
588
615
|
interfaceConnectionConditionalTypeName: string;
|
|
616
|
+
interfaceConnectionConditionalContains: string;
|
|
589
617
|
asynchronousTermination: string;
|
|
590
618
|
asynchronousRejection: string;
|
|
591
619
|
exceptionHandling: string;
|
|
@@ -662,6 +690,7 @@ declare const _default: {
|
|
|
662
690
|
};
|
|
663
691
|
fileUtil: {
|
|
664
692
|
fileUploadFailed: string;
|
|
693
|
+
getDownloadTicketFailed: string;
|
|
665
694
|
};
|
|
666
695
|
handlebars: {
|
|
667
696
|
noInitHandlebars: string;
|
|
@@ -780,6 +809,16 @@ declare const _default: {
|
|
|
780
809
|
formItemContainer: {
|
|
781
810
|
more: string;
|
|
782
811
|
};
|
|
812
|
+
mpicker: {
|
|
813
|
+
simpleErr: string;
|
|
814
|
+
};
|
|
815
|
+
signature: {
|
|
816
|
+
undo: string;
|
|
817
|
+
rewrite: string;
|
|
818
|
+
confirm: string;
|
|
819
|
+
addSignature: string;
|
|
820
|
+
signaturePrompt: string;
|
|
821
|
+
};
|
|
783
822
|
};
|
|
784
823
|
control: {
|
|
785
824
|
common: {
|
|
@@ -921,6 +960,10 @@ declare const _default: {
|
|
|
921
960
|
switchLanguagePrompt: string;
|
|
922
961
|
};
|
|
923
962
|
mobApp: {
|
|
963
|
+
authGuard: {
|
|
964
|
+
loginFailed: string;
|
|
965
|
+
noPermission: string;
|
|
966
|
+
};
|
|
924
967
|
unauthorizedHandler: {
|
|
925
968
|
noFoundEnvParams: string;
|
|
926
969
|
prohibitAccessPrompt: string;
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -64,6 +64,16 @@ var index = {
|
|
|
64
64
|
},
|
|
65
65
|
formItemContainer: {
|
|
66
66
|
more: "More"
|
|
67
|
+
},
|
|
68
|
+
mpicker: {
|
|
69
|
+
simpleErr: "The value of the SIMPLE type address bar {props.value} does not meet the requirements of a JSON string"
|
|
70
|
+
},
|
|
71
|
+
signature: {
|
|
72
|
+
undo: "Undo",
|
|
73
|
+
rewrite: "Rewrite",
|
|
74
|
+
confirm: "Confirm",
|
|
75
|
+
addSignature: "Click here to add signature",
|
|
76
|
+
signaturePrompt: "Please write horizontally in the blank area"
|
|
67
77
|
}
|
|
68
78
|
},
|
|
69
79
|
// 部件
|
|
@@ -207,6 +217,10 @@ var index = {
|
|
|
207
217
|
switchLanguagePrompt: "Switching languages requires refreshing the page, are you sure to switch?"
|
|
208
218
|
},
|
|
209
219
|
mobApp: {
|
|
220
|
+
authGuard: {
|
|
221
|
+
loginFailed: "Anonymous user login failed",
|
|
222
|
+
noPermission: "No permission to access!"
|
|
223
|
+
},
|
|
210
224
|
unauthorizedHandler: {
|
|
211
225
|
noFoundEnvParams: "Unable to find environment parameter casLoginUrl",
|
|
212
226
|
prohibitAccessPrompt: "Access to the current account is prohibited",
|
|
@@ -43,6 +43,7 @@ declare const _default: {
|
|
|
43
43
|
onFoundCorrespondingPart: string;
|
|
44
44
|
noFoundViewModel: string;
|
|
45
45
|
noSupportLoadingDynamic: string;
|
|
46
|
+
invalidPointCoordinates: string;
|
|
46
47
|
};
|
|
47
48
|
control: {
|
|
48
49
|
unsupportedPanel: string;
|
|
@@ -102,6 +103,7 @@ declare const _default: {
|
|
|
102
103
|
runtime: {
|
|
103
104
|
common: {
|
|
104
105
|
unrealized: string;
|
|
106
|
+
noExplanation: string;
|
|
105
107
|
};
|
|
106
108
|
command: {
|
|
107
109
|
app: {
|
|
@@ -131,8 +133,17 @@ declare const _default: {
|
|
|
131
133
|
noChange: string;
|
|
132
134
|
firstComplete: string;
|
|
133
135
|
noMoveDataCconfig: string;
|
|
136
|
+
exportRequestFailed: string;
|
|
134
137
|
changeGroupError: string;
|
|
135
138
|
computeMoveMetaError: string;
|
|
139
|
+
unclassified: string;
|
|
140
|
+
today: string;
|
|
141
|
+
adjustmentsGroup: string;
|
|
142
|
+
noAllowReorder: string;
|
|
143
|
+
sortingProperties: string;
|
|
144
|
+
invalidSortType: string;
|
|
145
|
+
logicOpendata: string;
|
|
146
|
+
logicNewdata: string;
|
|
136
147
|
};
|
|
137
148
|
editor: {
|
|
138
149
|
editorNoConfigured: string;
|
|
@@ -154,7 +165,6 @@ declare const _default: {
|
|
|
154
165
|
noConfigured: string;
|
|
155
166
|
};
|
|
156
167
|
calendar: {
|
|
157
|
-
missingViewLogic: string;
|
|
158
168
|
noFoundModel: string;
|
|
159
169
|
};
|
|
160
170
|
chart: {
|
|
@@ -169,6 +179,10 @@ declare const _default: {
|
|
|
169
179
|
classificationNotArray: string;
|
|
170
180
|
classificationNotString: string;
|
|
171
181
|
errorJson: string;
|
|
182
|
+
value: string;
|
|
183
|
+
percent: string;
|
|
184
|
+
serieGroup: string;
|
|
185
|
+
catalogField: string;
|
|
172
186
|
};
|
|
173
187
|
dataView: {
|
|
174
188
|
noBehaviourGroup: string;
|
|
@@ -236,11 +250,8 @@ declare const _default: {
|
|
|
236
250
|
interfaceBehavior: string;
|
|
237
251
|
};
|
|
238
252
|
kanban: {
|
|
239
|
-
sortingProperties: string;
|
|
240
253
|
sortDirection: string;
|
|
241
254
|
groupedOn: string;
|
|
242
|
-
adjustmentsGroup: string;
|
|
243
|
-
noAllowReorder: string;
|
|
244
255
|
};
|
|
245
256
|
meditViewPanel: {
|
|
246
257
|
DraftNew: string;
|
|
@@ -315,7 +326,11 @@ declare const _default: {
|
|
|
315
326
|
objectNameField: string;
|
|
316
327
|
};
|
|
317
328
|
valueRule: {
|
|
329
|
+
maxLength: string;
|
|
330
|
+
minLength: string;
|
|
318
331
|
length: string;
|
|
332
|
+
maxValue: string;
|
|
333
|
+
minValue: string;
|
|
319
334
|
};
|
|
320
335
|
viewMsg: {
|
|
321
336
|
message: string;
|
|
@@ -336,6 +351,11 @@ declare const _default: {
|
|
|
336
351
|
resetSuccess: string;
|
|
337
352
|
resetError: string;
|
|
338
353
|
};
|
|
354
|
+
util: {
|
|
355
|
+
quarter: string;
|
|
356
|
+
month: string;
|
|
357
|
+
week: string;
|
|
358
|
+
};
|
|
339
359
|
};
|
|
340
360
|
};
|
|
341
361
|
deLogic: {
|
|
@@ -346,6 +366,7 @@ declare const _default: {
|
|
|
346
366
|
sourceDataMissingConditionValue: string;
|
|
347
367
|
noSupportedTime: string;
|
|
348
368
|
entityLogicalConnection: string;
|
|
369
|
+
entityLogicalContainsConnection: string;
|
|
349
370
|
comparisonCondition: string;
|
|
350
371
|
comparisonValue: string;
|
|
351
372
|
compareResults: string;
|
|
@@ -557,6 +578,11 @@ declare const _default: {
|
|
|
557
578
|
oauthOpenAccessIdError: string;
|
|
558
579
|
noImplemented: string;
|
|
559
580
|
};
|
|
581
|
+
dataException: string;
|
|
582
|
+
noSortField: string;
|
|
583
|
+
noDragElementId: string;
|
|
584
|
+
noTargetElementId: string;
|
|
585
|
+
noMoveTypeField: string;
|
|
560
586
|
};
|
|
561
587
|
uiAction: {
|
|
562
588
|
noEntityOrBehavior: string;
|
|
@@ -577,6 +603,7 @@ declare const _default: {
|
|
|
577
603
|
withdrawalConfirmed: string;
|
|
578
604
|
noFoundBehaviorModel: string;
|
|
579
605
|
noEnableAI: string;
|
|
606
|
+
exportWithNoDataSet: string;
|
|
580
607
|
};
|
|
581
608
|
uiLogic: {
|
|
582
609
|
interfaceConnectionConditional: string;
|
|
@@ -585,6 +612,7 @@ declare const _default: {
|
|
|
585
612
|
sourceDataObjectAttribute: string;
|
|
586
613
|
currentTime: string;
|
|
587
614
|
interfaceConnectionConditionalTypeName: string;
|
|
615
|
+
interfaceConnectionConditionalContains: string;
|
|
588
616
|
asynchronousTermination: string;
|
|
589
617
|
asynchronousRejection: string;
|
|
590
618
|
exceptionHandling: string;
|
|
@@ -661,6 +689,7 @@ declare const _default: {
|
|
|
661
689
|
};
|
|
662
690
|
fileUtil: {
|
|
663
691
|
fileUploadFailed: string;
|
|
692
|
+
getDownloadTicketFailed: string;
|
|
664
693
|
};
|
|
665
694
|
handlebars: {
|
|
666
695
|
noInitHandlebars: string;
|
|
@@ -914,12 +943,26 @@ declare const _default: {
|
|
|
914
943
|
dateRangePicker: {
|
|
915
944
|
selectRange: string;
|
|
916
945
|
};
|
|
946
|
+
mpicker: {
|
|
947
|
+
simpleErr: string;
|
|
948
|
+
};
|
|
949
|
+
signature: {
|
|
950
|
+
undo: string;
|
|
951
|
+
rewrite: string;
|
|
952
|
+
confirm: string;
|
|
953
|
+
addSignature: string;
|
|
954
|
+
signaturePrompt: string;
|
|
955
|
+
};
|
|
917
956
|
};
|
|
918
957
|
locale: {
|
|
919
958
|
prompt: string;
|
|
920
959
|
switchLanguagePrompt: string;
|
|
921
960
|
};
|
|
922
961
|
mobApp: {
|
|
962
|
+
authGuard: {
|
|
963
|
+
loginFailed: string;
|
|
964
|
+
noPermission: string;
|
|
965
|
+
};
|
|
923
966
|
unauthorizedHandler: {
|
|
924
967
|
noFoundEnvParams: string;
|
|
925
968
|
prohibitAccessPrompt: string;
|
|
@@ -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, RuntimeError } 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,49 +123,107 @@ 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
|
+
} catch (error) {
|
|
153
|
+
const { status } = error;
|
|
154
|
+
if (status === 401) {
|
|
155
|
+
const refreshToken = getAppCookie(CoreConst.REFRESH_TOKEN);
|
|
156
|
+
if (refreshToken) {
|
|
157
|
+
await ibiz.auth.refreshToken();
|
|
158
|
+
await appInit(context);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
ibiz.auth.clearAuthData();
|
|
162
|
+
} else {
|
|
163
|
+
throw error;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (authInfo == null ? void 0 : authInfo.token) {
|
|
168
|
+
try {
|
|
169
|
+
await appInit(context);
|
|
170
|
+
} catch (error) {
|
|
171
|
+
const { status } = error;
|
|
172
|
+
if (status === 401) {
|
|
173
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
174
|
+
if (!loginResult) {
|
|
175
|
+
throw new RuntimeError(ibiz.i18n.t("mobApp.authGuard.loginFailed"));
|
|
176
|
+
}
|
|
177
|
+
await appInit(context);
|
|
178
|
+
} else {
|
|
179
|
+
throw error;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
await initModel(context, false);
|
|
184
|
+
const urlPaths = window.location.hash.split("/");
|
|
185
|
+
const viewName = urlPaths[urlPaths.length - 2];
|
|
186
|
+
let viewModel;
|
|
187
|
+
try {
|
|
188
|
+
if (viewName === "#" && ibiz.hub.defaultPage) {
|
|
189
|
+
viewModel = await ibiz.hub.getAppView(ibiz.hub.defaultPage.id);
|
|
190
|
+
} else {
|
|
191
|
+
viewModel = await ibiz.hub.getAppView(viewName);
|
|
192
|
+
}
|
|
193
|
+
} catch (error) {
|
|
194
|
+
ibiz.log.error(error);
|
|
195
|
+
}
|
|
196
|
+
if (!viewModel) {
|
|
197
|
+
ibiz.log.error(
|
|
198
|
+
`\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`
|
|
199
|
+
);
|
|
200
|
+
throw401();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (viewModel.accUserMode !== 3) {
|
|
204
|
+
throw401();
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (!authInfo) {
|
|
208
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
209
|
+
if (!loginResult) {
|
|
210
|
+
throw new RuntimeError(ibiz.i18n.t("mobApp.authGuard.loginFailed"));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
await appInit(context);
|
|
144
214
|
}
|
|
145
215
|
async function AuthGuard(appContext, permission = true) {
|
|
146
216
|
if (permission) {
|
|
147
217
|
let result = true;
|
|
148
218
|
try {
|
|
149
|
-
|
|
219
|
+
if (ibiz.env.enableAnonymous) {
|
|
220
|
+
await anonymousValidate(appContext);
|
|
221
|
+
} else {
|
|
222
|
+
await appInit(appContext);
|
|
223
|
+
}
|
|
150
224
|
} catch (error) {
|
|
151
225
|
result = false;
|
|
226
|
+
error.tag = "APPINIT";
|
|
152
227
|
ibiz.util.error.handle(error);
|
|
153
228
|
}
|
|
154
229
|
return result;
|
package/es/mob-app/main.mjs
CHANGED