@ibiz-template/mob-vue3-components 0.0.55 → 0.7.41-alpha.10
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-pP9MJGoH.js +76 -0
- package/dist/index-pP9MJGoH.js.map +1 -0
- package/dist/index.min.css +8 -8
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-t_EJUjVi.js → quill-EpIYtlVK.js} +2 -2
- package/dist/{quill-t_EJUjVi.js.map → quill-EpIYtlVK.js.map} +1 -1
- package/dist/{quill-editor-ybZrwyoG.js → quill-editor-U1UE37xw.js} +2 -2
- package/dist/quill-editor-U1UE37xw.js.map +1 -0
- package/dist/{quill-editor-preview-G9EjDfQE.js → quill-editor-preview-v7UO7Unq.js} +2 -2
- package/dist/{quill-editor-preview-G9EjDfQE.js.map → quill-editor-preview-v7UO7Unq.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/preset-view-header/preset-view-header.mjs +3 -0
- package/es/common/rawitem/rawitem.d.ts +2 -2
- package/es/control/app-menu/app-menu.d.ts +31 -5
- package/es/control/app-menu/app-menu.mjs +13 -0
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +1 -1
- package/es/control/app-menu/index.d.ts +6 -6
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +5 -5
- package/es/control/app-menu-icon-view/index.d.ts +5 -5
- package/es/control/app-menu-list-view/app-menu-list-view.css +1 -1
- package/es/control/app-menu-list-view/app-menu-list-view.d.ts +5 -5
- package/es/control/app-menu-list-view/app-menu-list-view.mjs +57 -32
- package/es/control/app-menu-list-view/index.d.ts +5 -5
- package/es/control/calendar/calendar.d.ts +46 -6
- package/es/control/calendar/calendar.mjs +20 -0
- package/es/control/calendar/index.d.ts +7 -7
- package/es/control/caption-bar/caption-bar.d.ts +31 -5
- package/es/control/caption-bar/caption-bar.mjs +13 -0
- package/es/control/caption-bar/index.d.ts +5 -5
- package/es/control/chart/chart.d.ts +45 -5
- package/es/control/chart/chart.mjs +20 -0
- package/es/control/dashboard/dashboard.d.ts +32 -6
- package/es/control/dashboard/dashboard.mjs +13 -0
- package/es/control/dashboard/index.d.ts +6 -6
- package/es/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts +1 -0
- package/es/control/dashboard/portlet/portlet-part/portlet-part.state.mjs +1 -0
- package/es/control/data-view/data-view.d.ts +49 -7
- package/es/control/data-view/data-view.mjs +23 -3
- package/es/control/data-view/index.d.ts +7 -7
- package/es/control/drbar/drbar.controller.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +3 -0
- package/es/control/drbar/drbar.d.ts +45 -16
- package/es/control/drbar/drbar.mjs +19 -4
- package/es/control/drbar/index.d.ts +7 -16
- package/es/control/drtab/drtab.controller.d.ts +1 -0
- package/es/control/drtab/drtab.controller.mjs +3 -0
- package/es/control/drtab/drtab.d.ts +33 -7
- package/es/control/drtab/drtab.mjs +13 -0
- package/es/control/drtab/index.d.ts +7 -7
- package/es/control/form/edit-form/edit-form.mjs +44 -0
- package/es/control/form/form/form.d.ts +7 -1
- package/es/control/form/form/form.mjs +3 -0
- package/es/control/form/form/index.d.ts +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +2 -2
- package/es/control/form/form-detail/form-item/index.d.ts +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +4 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +9 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +4 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +6 -6
- package/es/control/form/search-form/index.d.ts +5 -5
- package/es/control/form/search-form/search-form.d.ts +31 -5
- package/es/control/form/search-form/search-form.mjs +13 -0
- package/es/control/list/list/index.d.ts +7 -7
- package/es/control/list/list/list.d.ts +81 -7
- package/es/control/list/list/list.mjs +37 -0
- package/es/control/list/list-render-util.d.ts +1 -0
- package/es/control/list/md-ctrl/index.d.ts +9 -9
- package/es/control/list/md-ctrl/md-ctrl.d.ts +71 -9
- package/es/control/list/md-ctrl/md-ctrl.mjs +31 -0
- package/es/control/pickup-view-panel/index.d.ts +7 -7
- package/es/control/pickup-view-panel/pickup-view-panel.controller.d.ts +2 -0
- package/es/control/pickup-view-panel/pickup-view-panel.controller.mjs +3 -0
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +47 -7
- package/es/control/pickup-view-panel/pickup-view-panel.mjs +20 -0
- package/es/control/search-bar/filter-field-select/filter-field-select.d.ts +3 -3
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +6 -6
- package/es/control/search-bar/index.d.ts +5 -5
- package/es/control/search-bar/search-bar.d.ts +31 -5
- package/es/control/search-bar/search-bar.mjs +13 -0
- package/es/control/tab-exp-panel/index.d.ts +5 -5
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +37 -5
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +16 -0
- package/es/control/toolbar/index.d.ts +7 -7
- package/es/control/toolbar/popper-toolbar/popper-toolbar.d.ts +7 -7
- package/es/control/toolbar/toolbar.d.ts +33 -7
- package/es/control/toolbar/toolbar.mjs +13 -0
- package/es/control/tree/tree.d.ts +48 -6
- package/es/control/tree/tree.mjs +21 -0
- package/es/control/tree-exp-bar/index.d.ts +5 -5
- package/es/control/tree-exp-bar/tree-exp-bar.d.ts +49 -5
- package/es/control/tree-exp-bar/tree-exp-bar.mjs +22 -0
- package/es/control/wizard-panel/index.d.ts +5 -5
- package/es/control/wizard-panel/wizard-panel.d.ts +31 -5
- package/es/control/wizard-panel/wizard-panel.mjs +13 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +22 -13
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +17 -8
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +16 -9
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +15 -8
- package/es/editor/common/data-mpicker/ibiz-data-mpicker.d.ts +4 -4
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +18 -11
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +144 -26
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +18 -11
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +17 -9
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +15 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +22 -10
- package/es/editor/dropdown-list/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.css +1 -1
- package/es/editor/text-box/input/input.d.ts +18 -8
- package/es/editor/text-box/input/input.mjs +23 -2
- package/es/editor/text-box/signature/signature.css +1 -0
- package/es/editor/text-box/signature/signature.d.ts +104 -0
- package/es/editor/text-box/signature/signature.mjs +270 -0
- package/es/editor/text-box/text-box-editor.provider.mjs +3 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.d.ts +19 -8
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +24 -12
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +27 -13
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.d.ts +18 -8
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +24 -12
- package/es/index.mjs +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 +141 -55
- package/es/mob-app/main.mjs +1 -0
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.d.ts +13 -5
- package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +50 -15
- package/es/node_modules/.pnpm/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/index.d.ts +1 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.d.ts +18 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.mjs +22 -1
- package/es/panel-component/wf-action-button/index.d.ts +1 -1
- package/es/panel-component/wf-action-button/wf-action-button.controller.d.ts +4 -6
- package/es/panel-component/wf-action-button/wf-action-button.controller.mjs +2 -4
- package/es/panel-component/wf-action-button/wf-action-button.d.ts +17 -0
- package/es/panel-component/wf-action-button/wf-action-button.mjs +6 -0
- package/es/panel-component/wf-action-button/wf-action-button.state.d.ts +2 -4
- package/es/panel-component/wf-action-button/wf-action-button.state.mjs +2 -4
- package/es/panel-component/wf-step-trace/index.d.ts +1 -1
- package/es/panel-component/wf-step-trace/wf-step-trace.controller.d.ts +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.controller.mjs +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.d.ts +12 -1
- package/es/panel-component/wf-step-trace/wf-step-trace.mjs +3 -0
- package/es/panel-component/wf-step-trace/wf-step-trace.state.d.ts +2 -4
- package/es/panel-component/wf-step-trace/wf-step-trace.state.mjs +2 -4
- package/es/util/app-drawer/app-drawer-component.d.ts +1 -1
- package/es/util/app-modal/app-modal-component.d.ts +2 -2
- package/es/util/app-util/app-util.d.ts +66 -1
- package/es/util/app-util/app-util.mjs +66 -0
- package/es/util/open-view-util/open-view-util.mjs +6 -6
- package/es/util/scan-qrcode/scan-qrcode.d.ts +3 -3
- package/es/view/login-view/login-view.d.ts +1 -1
- package/es/view/portal-view/index.d.ts +7 -7
- package/es/view/portal-view/portal-view.d.ts +7 -7
- package/es/view-engine/login-view.engine.d.ts +2 -2
- package/es/view-engine/login-view.engine.mjs +2 -0
- package/es/view-engine/mob-data-view-engine.d.ts +2 -2
- package/es/view-engine/mob-data-view-engine.mjs +0 -1
- package/es/view-engine/mob-edit-view.engine.d.ts +2 -2
- package/es/view-engine/mob-edit-view.engine.mjs +5 -1
- package/es/view-engine/mob-md-view-engine.d.ts +2 -2
- package/es/view-engine/mob-md-view-engine.mjs +0 -1
- package/es/view-engine/mob-mpickup-view-engine.d.ts +20 -14
- package/es/view-engine/mob-mpickup-view-engine.mjs +34 -26
- package/es/view-engine/mob-opt-view.engine.d.ts +2 -2
- package/es/view-engine/mob-pickup-md-view.engine.d.ts +2 -2
- package/es/view-engine/mob-pickup-md-view.engine.mjs +0 -1
- package/es/view-engine/mob-pickup-view.engine.d.ts +9 -2
- package/es/view-engine/mob-pickup-view.engine.mjs +15 -1
- package/es/view-engine/mob-tab-search-view.engine.d.ts +2 -2
- package/es/view-engine/mob-tab-search-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-action-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-action-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-edit-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +0 -1
- package/es/view-engine/mob-wf-dyna-start-view.engine.d.ts +2 -2
- package/es/view-engine/mob-wf-dyna-start-view.engine.mjs +0 -1
- package/lib/_virtual/index17.cjs +2 -2
- package/lib/_virtual/index18.cjs +2 -2
- package/lib/common/index.cjs +1 -0
- package/lib/common/preset-view-header/preset-view-header.cjs +3 -0
- package/lib/control/app-menu/app-menu.cjs +13 -0
- package/lib/control/app-menu-list-view/app-menu-list-view.cjs +56 -31
- package/lib/control/app-menu-list-view/app-menu-list-view.css +1 -1
- package/lib/control/calendar/calendar.cjs +20 -0
- package/lib/control/caption-bar/caption-bar.cjs +13 -0
- package/lib/control/chart/chart.cjs +20 -0
- package/lib/control/dashboard/dashboard.cjs +13 -0
- package/lib/control/dashboard/portlet/portlet-part/portlet-part.state.cjs +1 -0
- package/lib/control/data-view/data-view.cjs +23 -3
- package/lib/control/drbar/drbar.cjs +19 -4
- package/lib/control/drbar/drbar.controller.cjs +3 -0
- package/lib/control/drtab/drtab.cjs +13 -0
- package/lib/control/drtab/drtab.controller.cjs +3 -0
- package/lib/control/form/edit-form/edit-form.cjs +44 -0
- package/lib/control/form/form/form.cjs +3 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +4 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +4 -0
- package/lib/control/form/search-form/search-form.cjs +13 -0
- package/lib/control/list/list/list.cjs +37 -0
- package/lib/control/list/md-ctrl/md-ctrl.cjs +31 -0
- package/lib/control/pickup-view-panel/pickup-view-panel.cjs +20 -0
- package/lib/control/pickup-view-panel/pickup-view-panel.controller.cjs +3 -0
- package/lib/control/search-bar/search-bar.cjs +13 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +16 -0
- package/lib/control/toolbar/toolbar.cjs +13 -0
- package/lib/control/tree/tree.cjs +21 -0
- package/lib/control/tree-exp-bar/tree-exp-bar.cjs +22 -0
- package/lib/control/wizard-panel/wizard-panel.cjs +13 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +144 -26
- package/lib/editor/index.cjs +7 -0
- package/lib/editor/text-box/index.cjs +2 -0
- package/lib/editor/text-box/input/input.cjs +23 -2
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/signature/signature.cjs +272 -0
- package/lib/editor/text-box/signature/signature.css +1 -0
- package/lib/editor/text-box/text-box-editor.provider.cjs +3 -0
- package/lib/index.cjs +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 +140 -54
- package/lib/mob-app/main.cjs +1 -0
- package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +50 -15
- package/lib/node_modules/.pnpm/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 +22 -1
- package/lib/panel-component/wf-action-button/wf-action-button.cjs +6 -0
- package/lib/panel-component/wf-action-button/wf-action-button.controller.cjs +2 -4
- package/lib/panel-component/wf-action-button/wf-action-button.state.cjs +2 -4
- package/lib/panel-component/wf-step-trace/wf-step-trace.cjs +3 -0
- package/lib/panel-component/wf-step-trace/wf-step-trace.controller.cjs +2 -4
- package/lib/panel-component/wf-step-trace/wf-step-trace.state.cjs +2 -4
- package/lib/util/app-util/app-util.cjs +66 -0
- package/lib/util/open-view-util/open-view-util.cjs +6 -6
- package/lib/view-engine/login-view.engine.cjs +2 -0
- package/lib/view-engine/mob-data-view-engine.cjs +0 -1
- package/lib/view-engine/mob-edit-view.engine.cjs +5 -1
- package/lib/view-engine/mob-md-view-engine.cjs +0 -1
- package/lib/view-engine/mob-mpickup-view-engine.cjs +34 -26
- package/lib/view-engine/mob-pickup-md-view.engine.cjs +0 -1
- package/lib/view-engine/mob-pickup-view.engine.cjs +15 -1
- package/lib/view-engine/mob-tab-search-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-action-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +0 -1
- package/lib/view-engine/mob-wf-dyna-start-view.engine.cjs +0 -1
- package/package.json +8 -8
- package/dist/index-NP0RBfWK.js.map +0 -1
- package/dist/index-O-XmMUt3.js.map +0 -1
- package/dist/index-TfgOIExu.js +0 -76
- package/dist/index-TfgOIExu.js.map +0 -1
- package/dist/quill-editor-ybZrwyoG.js.map +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
7
|
+
require('./signature.css');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizSignature = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizSignature",
|
|
12
|
+
props: vue3Util.getInputProps(),
|
|
13
|
+
emits: vue3Util.getEditorEmits(),
|
|
14
|
+
setup(props, {
|
|
15
|
+
emit
|
|
16
|
+
}) {
|
|
17
|
+
const ns = vue3Util.useNamespace("signature");
|
|
18
|
+
const c = props.controller;
|
|
19
|
+
const editorModel = c.model;
|
|
20
|
+
const headers = vue.ref({
|
|
21
|
+
[`${ibiz.env.tokenHeader}Authorization`]: `${ibiz.env.tokenPrefix}Bearer ${core.getAppCookie(core.CoreConst.TOKEN)}`
|
|
22
|
+
});
|
|
23
|
+
const uploadUrl = vue.ref("");
|
|
24
|
+
const downloadUrl = vue.ref("");
|
|
25
|
+
const signatureRef = vue.ref();
|
|
26
|
+
const fullScreen = vue.ref(false);
|
|
27
|
+
const currentDataURL = vue.ref("");
|
|
28
|
+
const currentVal = vue.ref("");
|
|
29
|
+
let saveMode = "img";
|
|
30
|
+
let buttons = [{
|
|
31
|
+
label: ibiz.i18n.t("editor.signature.undo"),
|
|
32
|
+
type: "undo"
|
|
33
|
+
}, {
|
|
34
|
+
label: ibiz.i18n.t("editor.signature.rewrite"),
|
|
35
|
+
type: "rewrite"
|
|
36
|
+
}, {
|
|
37
|
+
label: ibiz.i18n.t("editor.signature.confirm"),
|
|
38
|
+
type: "confirm",
|
|
39
|
+
buttonType: "primary"
|
|
40
|
+
}];
|
|
41
|
+
if (editorModel.editorParams) {
|
|
42
|
+
if (editorModel.editorParams.mode) {
|
|
43
|
+
saveMode = editorModel.editorParams.mode;
|
|
44
|
+
}
|
|
45
|
+
if (editorModel.editorParams.buttons) {
|
|
46
|
+
try {
|
|
47
|
+
buttons = JSON.parse(editorModel.editorParams.buttons);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
ibiz.log.error(error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const getSafeDistance = () => {
|
|
54
|
+
switch (runtime.getPlatformType()) {
|
|
55
|
+
case runtime.PlatformType.ANDROID:
|
|
56
|
+
return "52px";
|
|
57
|
+
case runtime.PlatformType.IOS:
|
|
58
|
+
return "82px";
|
|
59
|
+
default:
|
|
60
|
+
return "0px";
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const restCavans = () => {
|
|
64
|
+
var _a;
|
|
65
|
+
(_a = signatureRef.value) == null ? void 0 : _a.updateSignaturePad(() => {
|
|
66
|
+
vue.nextTick(() => {
|
|
67
|
+
var _a2, _b;
|
|
68
|
+
if (currentDataURL.value) {
|
|
69
|
+
(_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.fromDataURL(currentDataURL.value, {
|
|
70
|
+
// 旋转适配横屏
|
|
71
|
+
rotation: 90
|
|
72
|
+
});
|
|
73
|
+
} else {
|
|
74
|
+
(_b = signatureRef.value) == null ? void 0 : _b.signaturePad.clear();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
const handleCurrentVal = async () => {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
if (currentVal.value) {
|
|
82
|
+
ibiz.loading.showRedirect();
|
|
83
|
+
if (saveMode === "img") {
|
|
84
|
+
currentDataURL.value = currentVal.value;
|
|
85
|
+
} else if (downloadUrl.value) {
|
|
86
|
+
const fileData = JSON.parse(currentVal.value)[0];
|
|
87
|
+
const _url = downloadUrl.value.replace("%fileId%", fileData.id);
|
|
88
|
+
try {
|
|
89
|
+
const fileBlob = await ibiz.util.file.requestFile(_url);
|
|
90
|
+
const dataUrl = await ((_a = signatureRef.value) == null ? void 0 : _a.signaturePad.blobToDataURL(fileBlob));
|
|
91
|
+
currentDataURL.value = dataUrl;
|
|
92
|
+
} catch (error) {
|
|
93
|
+
ibiz.log.error(error);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
(_b = signatureRef.value) == null ? void 0 : _b.signaturePad.loadImage(currentDataURL.value, () => {
|
|
97
|
+
ibiz.loading.hideRedirect();
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
vue.watch(() => props.data, (newVal) => {
|
|
102
|
+
if (newVal) {
|
|
103
|
+
const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, c.editorParams);
|
|
104
|
+
uploadUrl.value = urls.uploadUrl;
|
|
105
|
+
downloadUrl.value = urls.downloadUrl;
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
immediate: true,
|
|
109
|
+
deep: true
|
|
110
|
+
});
|
|
111
|
+
vue.watch(() => props.value, async (newVal, oldVal) => {
|
|
112
|
+
if (newVal !== oldVal) {
|
|
113
|
+
if (!newVal) {
|
|
114
|
+
currentVal.value = "";
|
|
115
|
+
} else {
|
|
116
|
+
currentVal.value = `${newVal || ""}`;
|
|
117
|
+
}
|
|
118
|
+
await handleCurrentVal();
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
immediate: true
|
|
122
|
+
});
|
|
123
|
+
const handleEmit = (_value) => {
|
|
124
|
+
emit("change", _value);
|
|
125
|
+
};
|
|
126
|
+
const getFileType = (dataURL) => {
|
|
127
|
+
const parts = dataURL.split(",");
|
|
128
|
+
const mime = parts[0].split(":")[1].split(";")[0];
|
|
129
|
+
return {
|
|
130
|
+
type: mime
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
const handleUpload = async (dataURL) => {
|
|
134
|
+
const {
|
|
135
|
+
type
|
|
136
|
+
} = getFileType(dataURL);
|
|
137
|
+
const blob = core.base64ToBlob(dataURL);
|
|
138
|
+
const fileName = `signature_${Date.now()}.png`;
|
|
139
|
+
const file = new File([blob], fileName, {
|
|
140
|
+
type
|
|
141
|
+
});
|
|
142
|
+
const fileInfo = await ibiz.util.file.fileUpload(uploadUrl.value, file, headers.value);
|
|
143
|
+
return fileInfo;
|
|
144
|
+
};
|
|
145
|
+
const handleModalClick = () => {
|
|
146
|
+
fullScreen.value = true;
|
|
147
|
+
restCavans();
|
|
148
|
+
};
|
|
149
|
+
const handleRemove = (_evt) => {
|
|
150
|
+
var _a;
|
|
151
|
+
_evt.stopPropagation();
|
|
152
|
+
(_a = signatureRef.value) == null ? void 0 : _a.signaturePad.clear();
|
|
153
|
+
currentDataURL.value = "";
|
|
154
|
+
handleEmit(null);
|
|
155
|
+
};
|
|
156
|
+
const handlePadContainerClick = () => {
|
|
157
|
+
if (props.disabled || props.readonly)
|
|
158
|
+
fullScreen.value = false;
|
|
159
|
+
};
|
|
160
|
+
const handleFileChange = async (dataURL) => {
|
|
161
|
+
const file = await handleUpload(dataURL);
|
|
162
|
+
handleEmit(JSON.stringify([{
|
|
163
|
+
name: file.name,
|
|
164
|
+
id: file.id
|
|
165
|
+
}]));
|
|
166
|
+
};
|
|
167
|
+
const handleConfirm = () => {
|
|
168
|
+
var _a, _b, _c;
|
|
169
|
+
fullScreen.value = false;
|
|
170
|
+
if (((_a = signatureRef.value) == null ? void 0 : _a.signaturePad.isEmpty()) || !((_b = signatureRef.value) == null ? void 0 : _b.signaturePad.isRedrawn()))
|
|
171
|
+
return;
|
|
172
|
+
const dataURL = (_c = signatureRef.value) == null ? void 0 : _c.signaturePad.toDataURL(void 0, {
|
|
173
|
+
// 旋转为述评适配预览
|
|
174
|
+
rotation: -90
|
|
175
|
+
});
|
|
176
|
+
currentDataURL.value = dataURL;
|
|
177
|
+
switch (saveMode) {
|
|
178
|
+
case "file":
|
|
179
|
+
handleFileChange(dataURL);
|
|
180
|
+
break;
|
|
181
|
+
case "img":
|
|
182
|
+
default:
|
|
183
|
+
handleEmit(dataURL);
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const handleButtonClick = (_type) => {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
switch (_type) {
|
|
190
|
+
case "undo":
|
|
191
|
+
(_a = signatureRef.value) == null ? void 0 : _a.signaturePad.undoLastStep();
|
|
192
|
+
break;
|
|
193
|
+
case "rewrite":
|
|
194
|
+
(_b = signatureRef.value) == null ? void 0 : _b.signaturePad.clear();
|
|
195
|
+
break;
|
|
196
|
+
case "confirm":
|
|
197
|
+
handleConfirm();
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
return {
|
|
204
|
+
c,
|
|
205
|
+
ns,
|
|
206
|
+
signatureRef,
|
|
207
|
+
fullScreen,
|
|
208
|
+
currentDataURL,
|
|
209
|
+
buttons,
|
|
210
|
+
getSafeDistance,
|
|
211
|
+
handleModalClick,
|
|
212
|
+
handleConfirm,
|
|
213
|
+
handleRemove,
|
|
214
|
+
handlePadContainerClick,
|
|
215
|
+
handleButtonClick
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
render() {
|
|
219
|
+
return vue.createVNode("div", {
|
|
220
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
|
|
221
|
+
}, [vue.createVNode("div", {
|
|
222
|
+
"class": this.ns.e("modal"),
|
|
223
|
+
"onClick": this.handleModalClick
|
|
224
|
+
}, [vue.createVNode("div", {
|
|
225
|
+
"class": this.ns.em("modal", "background")
|
|
226
|
+
}, null), vue.createVNode("div", {
|
|
227
|
+
"class": this.ns.em("modal", "toolbar")
|
|
228
|
+
}, [this.currentDataURL && vue.createVNode(vue.resolveComponent("van-button"), {
|
|
229
|
+
"round": true,
|
|
230
|
+
"disabled": this.disabled,
|
|
231
|
+
"icon": "cross",
|
|
232
|
+
"type": "primary",
|
|
233
|
+
"onClick": this.handleRemove
|
|
234
|
+
}, null)]), !this.currentDataURL && vue.createVNode("span", {
|
|
235
|
+
"class": this.ns.em("modal", "caption")
|
|
236
|
+
}, [ibiz.i18n.t("editor.signature.addSignature")])]), vue.createVNode("div", {
|
|
237
|
+
"class": this.ns.e("content"),
|
|
238
|
+
"style": {
|
|
239
|
+
backgroundImage: `url(${this.currentDataURL})`
|
|
240
|
+
}
|
|
241
|
+
}, null), vue.createVNode("div", {
|
|
242
|
+
"class": [this.ns.b("overlay"), this.ns.is("full-screen", this.fullScreen), this.ns.is("disabled", this.disabled), this.ns.is("readonly", this.readonly)],
|
|
243
|
+
"style": {
|
|
244
|
+
[this.ns.cssVarBlockName("overlay-padding-bottom")]: this.getSafeDistance()
|
|
245
|
+
},
|
|
246
|
+
"onClick": this.handlePadContainerClick
|
|
247
|
+
}, [vue.createVNode("div", {
|
|
248
|
+
"class": this.ns.be("overlay", "container")
|
|
249
|
+
}, [vue.createVNode("div", {
|
|
250
|
+
"class": this.ns.be("overlay", "header")
|
|
251
|
+
}, [ibiz.i18n.t("editor.signature.signaturePrompt")]), vue.createVNode(vue.resolveComponent("iBizSignaturePad"), {
|
|
252
|
+
"ref": "signatureRef",
|
|
253
|
+
"class": this.ns.be("overlay", "pad"),
|
|
254
|
+
"options": {
|
|
255
|
+
...this.c.model.editorParams,
|
|
256
|
+
...this.$attrs
|
|
257
|
+
}
|
|
258
|
+
}, null), vue.createVNode("div", {
|
|
259
|
+
"class": this.ns.be("overlay", "footer")
|
|
260
|
+
}, [this.buttons.map((_btn) => {
|
|
261
|
+
return vue.createVNode(vue.resolveComponent("van-button"), {
|
|
262
|
+
"disabled": this.disabled,
|
|
263
|
+
"type": _btn.buttonType && _btn.buttonType.toLowerCase() || "default",
|
|
264
|
+
"onClick": () => this.handleButtonClick(_btn.type)
|
|
265
|
+
}, {
|
|
266
|
+
default: () => [_btn.label]
|
|
267
|
+
});
|
|
268
|
+
})])])])]);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
exports.IBizSignature = IBizSignature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-signature{--ibiz-signature-min-height:120px;position:relative;width:100%;height:100%;min-height:var(--ibiz-signature-min-height);overflow:hidden;border:none;border-radius:var(--ibiz-border-radius-large)}.ibiz-signature__modal{position:absolute;z-index:6;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-signature__modal--background{width:100%;height:100%;background-color:var(--ibiz-color-black);opacity:.1}.ibiz-signature__modal--caption{position:absolute;color:var(--ibiz-color-text-2)}.ibiz-signature__modal--toolbar{position:absolute;top:var(--ibiz-spacing-tight);right:var(--ibiz-spacing-tight)}.ibiz-signature__modal--toolbar .van-button{width:var(--ibiz-spacing-loose);height:auto;height:var(--ibiz-spacing-loose);background-color:var(--van-uploader-delete-background);border:var(--van-uploader-delete-background);opacity:.6}.ibiz-signature__modal--toolbar .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature__content{width:100%;height:100%;background-repeat:no-repeat;background-position:center center;background-size:contain}.ibiz-signature__readonly .ibiz-signature__modal--toolbar{display:none}.ibiz-signature-overlay{--ibiz-signature-overlay-padding-bottom:0px;position:absolute;z-index:1;width:0;height:0;background-color:var(--ibiz-color-bg-1);opacity:0}.ibiz-signature-overlay.is-full-screen{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;opacity:1}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__container{position:absolute;top:0;left:0;width:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));height:100vw;transform:rotate(90deg) translateY(-100%);transform-origin:top left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__header{position:absolute;z-index:6;padding:var(--ibiz-spacing-extra-tight);text-align:left}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer{position:absolute;right:var(--ibiz-spacing-tight);bottom:var(--ibiz-spacing-base);z-index:6}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button{height:auto;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-loose);font-size:var(--ibiz-font-size-header-6)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__footer .van-button+.van-button{margin-left:var(--ibiz-spacing-loose)}.ibiz-signature-overlay.is-full-screen .ibiz-signature-overlay__pad{position:absolute;top:0;left:0;width:100vw;height:calc(100vh - var(--ibiz-signature-overlay-padding-bottom));transform:rotate(-90deg) translateX(-100%);transform-origin:top left}.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__footer,.ibiz-signature-overlay.is-readonly .ibiz-signature-overlay__header{display:none}.ibiz-signature-overlay.is-readonly .ibiz-signature-pad{pointer-events:none}.ibiz-signature-overlay.is-disabled .ibiz-signature-pad{pointer-events:none}
|
|
@@ -16,6 +16,9 @@ class TextBoxEditorProvider {
|
|
|
16
16
|
if (editorType === "NUMBER") {
|
|
17
17
|
this.formEditor = "IBizInputNumber";
|
|
18
18
|
this.gridEditor = "IBizInputNumber";
|
|
19
|
+
} else if (editorType === "SIGNATURE") {
|
|
20
|
+
this.formEditor = "IBizSignature";
|
|
21
|
+
this.gridEditor = "IBizSignature";
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
async createController(editorModel, parentController) {
|
package/lib/index.cjs
CHANGED
|
@@ -139,6 +139,7 @@ var switchEditor_controller = require('./editor/switch/switch-editor.controller.
|
|
|
139
139
|
var switchEditor_provider = require('./editor/switch/switch-editor.provider.cjs');
|
|
140
140
|
var input = require('./editor/text-box/input/input.cjs');
|
|
141
141
|
var ibizInputNumber = require('./editor/text-box/ibiz-input-number/ibiz-input-number.cjs');
|
|
142
|
+
var signature = require('./editor/text-box/signature/signature.cjs');
|
|
142
143
|
var textBoxEditor_controller = require('./editor/text-box/text-box-editor.controller.cjs');
|
|
143
144
|
var textBoxEditor_provider = require('./editor/text-box/text-box-editor.provider.cjs');
|
|
144
145
|
var ibizFileUpload = require('./editor/upload/ibiz-file-upload/ibiz-file-upload.cjs');
|
|
@@ -319,6 +320,7 @@ exports.SwitchEditorController = switchEditor_controller.SwitchEditorController;
|
|
|
319
320
|
exports.SwitchEditorProvider = switchEditor_provider.SwitchEditorProvider;
|
|
320
321
|
exports.IBizInput = input.IBizInput;
|
|
321
322
|
exports.IBizInputNumber = ibizInputNumber.IBizInputNumber;
|
|
323
|
+
exports.IBizSignature = signature.IBizSignature;
|
|
322
324
|
exports.TextBoxEditorController = textBoxEditor_controller.TextBoxEditorController;
|
|
323
325
|
exports.TextBoxEditorProvider = textBoxEditor_provider.TextBoxEditorProvider;
|
|
324
326
|
exports.IBizFileUpload = ibizFileUpload.IBizFileUpload;
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -68,6 +68,16 @@ var index = {
|
|
|
68
68
|
},
|
|
69
69
|
formItemContainer: {
|
|
70
70
|
more: "More"
|
|
71
|
+
},
|
|
72
|
+
mpicker: {
|
|
73
|
+
simpleErr: "The value of the SIMPLE type address bar {props.value} does not meet the requirements of a JSON string"
|
|
74
|
+
},
|
|
75
|
+
signature: {
|
|
76
|
+
undo: "Undo",
|
|
77
|
+
rewrite: "Rewrite",
|
|
78
|
+
confirm: "Confirm",
|
|
79
|
+
addSignature: "Click here to add signature",
|
|
80
|
+
signaturePrompt: "Please write horizontally in the blank area"
|
|
71
81
|
}
|
|
72
82
|
},
|
|
73
83
|
// 部件
|
|
@@ -211,6 +221,10 @@ var index = {
|
|
|
211
221
|
switchLanguagePrompt: "Switching languages requires refreshing the page, are you sure to switch?"
|
|
212
222
|
},
|
|
213
223
|
mobApp: {
|
|
224
|
+
authGuard: {
|
|
225
|
+
loginFailed: "Anonymous user login failed",
|
|
226
|
+
noPermission: "No permission to access!"
|
|
227
|
+
},
|
|
214
228
|
unauthorizedHandler: {
|
|
215
229
|
noFoundEnvParams: "Unable to find environment parameter casLoginUrl",
|
|
216
230
|
prohibitAccessPrompt: "Access to the current account is prohibited",
|
|
@@ -203,6 +203,16 @@ var index = {
|
|
|
203
203
|
},
|
|
204
204
|
dateRangePicker: {
|
|
205
205
|
selectRange: "\u8BF7\u9009\u62E9\u65E5\u671F\u8303\u56F4"
|
|
206
|
+
},
|
|
207
|
+
mpicker: {
|
|
208
|
+
simpleErr: "SIMPLE\u7C7B\u578B\u5730\u5740\u680F\u503C\u683C\u5F0F{props.value}\u4E0D\u7B26\u5408JSON\u5B57\u7B26\u4E32\u8981\u6C42"
|
|
209
|
+
},
|
|
210
|
+
signature: {
|
|
211
|
+
undo: "\u64A4\u9500",
|
|
212
|
+
rewrite: "\u91CD\u5199",
|
|
213
|
+
confirm: "\u786E\u8BA4",
|
|
214
|
+
addSignature: "\u70B9\u51FB\u6B64\u5904\u6DFB\u52A0\u7B7E\u540D",
|
|
215
|
+
signaturePrompt: "\u8BF7\u5728\u7A7A\u767D\u533A\u57DF\u5185\u6A2A\u5411\u4E66\u5199"
|
|
206
216
|
}
|
|
207
217
|
},
|
|
208
218
|
// 多语言
|
|
@@ -211,6 +221,10 @@ var index = {
|
|
|
211
221
|
switchLanguagePrompt: "\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u9875\u9762\uFF0C\u786E\u8BA4\u5207\u6362?"
|
|
212
222
|
},
|
|
213
223
|
mobApp: {
|
|
224
|
+
authGuard: {
|
|
225
|
+
loginFailed: "\u533F\u540D\u7528\u6237\u767B\u5F55\u5931\u8D25",
|
|
226
|
+
noPermission: "\u65E0\u6743\u9650\u8BBF\u95EE\uFF01"
|
|
227
|
+
},
|
|
214
228
|
unauthorizedHandler: {
|
|
215
229
|
noFoundEnvParams: "\u627E\u4E0D\u5230\u73AF\u5883\u53C2\u6570casLoginUrl",
|
|
216
230
|
prohibitAccessPrompt: "\u5F53\u524D\u8D26\u6237\u88AB\u7981\u6B62\u8BBF\u95EE",
|
package/lib/mob-app/App.cjs
CHANGED
|
@@ -26,6 +26,7 @@ var App = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
vue.onUnmounted(() => {
|
|
27
27
|
off("onBeforeStackChange", onViewStackChange);
|
|
28
28
|
ibiz.platform.destroyed();
|
|
29
|
+
vue3Util.AppHooks.destoryApp.call(null);
|
|
29
30
|
});
|
|
30
31
|
const viewModals = /* @__PURE__ */ new Map();
|
|
31
32
|
const getViewModal = (key) => {
|
|
@@ -43,6 +44,22 @@ var App = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
44
|
}
|
|
44
45
|
return viewModals.get(key);
|
|
45
46
|
};
|
|
47
|
+
let watermarkDestroy;
|
|
48
|
+
vue.onMounted(() => {
|
|
49
|
+
vue3Util.AppHooks.initedApp.tapPromise(async ({
|
|
50
|
+
context
|
|
51
|
+
}) => {
|
|
52
|
+
var _a;
|
|
53
|
+
watermarkDestroy == null ? void 0 : watermarkDestroy();
|
|
54
|
+
watermarkDestroy = ibiz.util.watermark.mount(ibiz.config.watermark, void 0, {
|
|
55
|
+
...context,
|
|
56
|
+
...(_a = ibiz.appData) == null ? void 0 : _a.context
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
vue.onBeforeUnmount(() => {
|
|
61
|
+
watermarkDestroy == null ? void 0 : watermarkDestroy();
|
|
62
|
+
});
|
|
46
63
|
return {
|
|
47
64
|
viewStack: viewStack$1,
|
|
48
65
|
getViewModal,
|
|
@@ -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,54 +125,123 @@ 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
|
+
return;
|
|
155
|
+
} catch (error) {
|
|
156
|
+
const { status } = error;
|
|
157
|
+
if (status === 401) {
|
|
158
|
+
const refreshToken = core.getAppCookie(core.CoreConst.REFRESH_TOKEN);
|
|
159
|
+
if (refreshToken) {
|
|
160
|
+
await ibiz.auth.refreshToken();
|
|
161
|
+
await appInit(context);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
ibiz.auth.clearAuthData();
|
|
165
|
+
} else {
|
|
166
|
+
throw error;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (authInfo == null ? void 0 : authInfo.token) {
|
|
171
|
+
try {
|
|
172
|
+
await appInit(context);
|
|
173
|
+
} catch (error) {
|
|
174
|
+
const { status } = error;
|
|
175
|
+
if (status === 401) {
|
|
176
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
177
|
+
if (!loginResult) {
|
|
178
|
+
throw401();
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
await appInit(context);
|
|
182
|
+
} else {
|
|
183
|
+
throw error;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (!authInfo || !authInfo.token) {
|
|
188
|
+
const loginResult = await ibiz.auth.anonymousLogin();
|
|
189
|
+
if (!loginResult) {
|
|
190
|
+
throw401();
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
await appInit(context);
|
|
194
|
+
}
|
|
195
|
+
const urlPaths = window.location.hash.split("/");
|
|
196
|
+
const viewName = urlPaths[urlPaths.length - 2];
|
|
197
|
+
let viewModel;
|
|
198
|
+
try {
|
|
199
|
+
if (viewName === "#" && ibiz.hub.defaultPage) {
|
|
200
|
+
viewModel = await ibiz.hub.getAppView(ibiz.hub.defaultPage.id);
|
|
201
|
+
} else {
|
|
202
|
+
viewModel = await ibiz.hub.getAppView(viewName);
|
|
203
|
+
}
|
|
204
|
+
} catch (error) {
|
|
205
|
+
ibiz.log.error(error);
|
|
206
|
+
}
|
|
207
|
+
if (!viewModel) {
|
|
208
|
+
ibiz.log.error(
|
|
209
|
+
`\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`
|
|
210
|
+
);
|
|
211
|
+
throw401();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (viewModel.accUserMode !== 3) {
|
|
215
|
+
throw401();
|
|
216
|
+
}
|
|
146
217
|
}
|
|
147
218
|
async function AuthGuard(appContext, permission = true) {
|
|
148
219
|
if (permission) {
|
|
149
220
|
let result = true;
|
|
150
221
|
try {
|
|
151
|
-
|
|
222
|
+
if (ibiz.env.enableAnonymous) {
|
|
223
|
+
await anonymousValidate(appContext);
|
|
224
|
+
} else {
|
|
225
|
+
await appInit(appContext);
|
|
226
|
+
}
|
|
152
227
|
} catch (error) {
|
|
153
228
|
result = false;
|
|
229
|
+
error.tag = "APPINIT";
|
|
154
230
|
ibiz.util.error.handle(error);
|
|
155
231
|
}
|
|
156
232
|
return result;
|
|
157
233
|
}
|
|
158
|
-
|
|
234
|
+
if (ibiz.env.enableAnonymous) {
|
|
235
|
+
try {
|
|
236
|
+
await anonymousValidate(appContext);
|
|
237
|
+
} catch (error) {
|
|
238
|
+
error.tag = "APPINIT";
|
|
239
|
+
ibiz.util.error.handle(error);
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
} else {
|
|
243
|
+
await initModel(appContext, false);
|
|
244
|
+
}
|
|
159
245
|
return true;
|
|
160
246
|
}
|
|
161
247
|
|
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);
|