@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.31
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/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/{index-B_Fo_3Rt.js → index-CnCC-cC2.js} +1 -1
- package/dist/index-Q4QqDXYJ.js +4 -0
- package/dist/{index-BvI3oZGL.js → index-X3QXftIl.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-DbA3TyD9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -3
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/control-navigation/control-navigation.css +1 -0
- package/es/common/control-navigation/control-navigation.d.ts +32 -0
- package/es/common/control-navigation/control-navigation.mjs +116 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
- package/es/common/control-navigation/provider/index.d.ts +10 -0
- package/es/common/control-navigation/provider/index.mjs +17 -0
- package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +2 -0
- package/es/common/custom-theme/custom-theme-model.mjs +5 -13
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -0
- package/es/common/gantt-setting/gantt-setting.d.ts +63 -0
- package/es/common/gantt-setting/gantt-setting.mjs +237 -0
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +3 -1
- package/es/common/grid-setting/grid-setting.mjs +21 -5
- package/es/common/index.mjs +6 -0
- package/es/common/nav-split/nav-split.css +1 -0
- package/es/common/nav-split/nav-split.d.ts +57 -0
- package/es/common/nav-split/nav-split.mjs +209 -0
- package/es/common/pql-editor/utils/index.mjs +30 -40
- package/es/common/split/split.css +1 -1
- package/es/common/view-message/view-message.d.ts +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +3 -0
- package/es/control/app-menu/app-menu.mjs +62 -22
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +12 -3
- package/es/control/app-menu/index.d.ts +3 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +12 -1
- package/es/control/calendar/calendar.mjs +42 -10
- package/es/control/calendar/index.d.ts +12 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +54 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
- package/es/control/dashboard/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +9 -4
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -0
- package/es/control/data-view/data-view.mjs +21 -3
- package/es/control/data-view/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +28 -8
- package/es/control/drtab/drtab.controller.mjs +62 -11
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +3 -1
- package/es/control/drtab/drtab.mjs +68 -9
- package/es/control/drtab/index.d.ts +3 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +21 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +104 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +3 -4
- package/es/control/gantt/gantt.mjs +158 -52
- package/es/control/gantt/index.d.ts +3 -4
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +40 -4
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +86 -73
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/list/index.d.ts +1 -0
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -0
- package/es/control/list/list.mjs +23 -5
- package/es/control/map/map.d.ts +9 -0
- package/es/control/map/map.mjs +4 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/el-tree-util.d.ts +39 -1
- package/es/control/tree/el-tree-util.mjs +70 -2
- package/es/control/tree/index.d.ts +16 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +16 -14
- package/es/control/tree/tree.mjs +60 -31
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +8 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +33 -0
- package/es/locale/en/index.mjs +27 -2
- package/es/locale/zh-CN/index.d.ts +33 -0
- package/es/locale/zh-CN/index.mjs +27 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index.mjs +4 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-app-title/index.mjs +4 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/notification-util.d.ts +10 -1
- package/es/util/notification-util/notification-util.mjs +36 -0
- package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
- package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
- package/es/util/pagination/use-pagination.mjs +5 -4
- package/es/view/login-view/login-view.mjs +18 -0
- package/es/view-engine/edit-view.engine.mjs +14 -0
- package/es/view-engine/login-view.engine.mjs +1 -0
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -1
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +20 -1
- package/es/view-engine/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -2
- package/es/web-app/attach-environment-config.mjs +5 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +21 -14
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -19
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/control-navigation/control-navigation.cjs +118 -0
- package/lib/common/control-navigation/control-navigation.css +1 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
- package/lib/common/control-navigation/provider/index.cjs +19 -0
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
- package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +239 -0
- package/lib/common/gantt-setting/gantt-setting.css +1 -0
- package/lib/common/grid-setting/grid-setting.cjs +21 -5
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/common/index.cjs +6 -0
- package/lib/common/nav-split/nav-split.cjs +211 -0
- package/lib/common/nav-split/nav-split.css +1 -0
- package/lib/common/pql-editor/utils/index.cjs +30 -40
- package/lib/common/split/split.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +60 -20
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +11 -2
- package/lib/control/calendar/calendar.cjs +42 -10
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +9 -4
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/data-view/data-view.cjs +21 -3
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -2
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +67 -8
- package/lib/control/drtab/drtab.controller.cjs +62 -11
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +20 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +156 -50
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +39 -3
- package/lib/control/grid/grid/grid.cjs +86 -73
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/list/list.cjs +23 -5
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +4 -0
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/el-tree-util.cjs +70 -0
- package/lib/control/tree/tree.cjs +58 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +8 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +7 -1
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +27 -2
- package/lib/locale/zh-CN/index.cjs +27 -2
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/index.cjs +39 -36
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-app-title/index.cjs +4 -0
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/notification-util.cjs +36 -0
- package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/lib/util/pagination/use-pagination.cjs +5 -4
- package/lib/view/login-view/login-view.cjs +18 -0
- package/lib/view-engine/edit-view.engine.cjs +14 -0
- package/lib/view-engine/login-view.engine.cjs +1 -0
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -19
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/package.json +11 -11
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-VQ3FT6ih.js +0 -4
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-action-toolbar{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);display:flex;flex-wrap:wrap}.ibiz-action-toolbar__item{padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__item--icon.is-has-icon{display:flex;align-items:
|
|
1
|
+
@charset "UTF-8";.ibiz-action-toolbar{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);display:flex;flex-wrap:wrap}.ibiz-action-toolbar__item{padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__item--icon.is-has-icon{display:flex;align-items:baseline;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-width-icon-medium)}.ibiz-action-toolbar__item--label.is-has-caption{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__item+.ibiz-action-toolbar__item{margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__separator{height:auto}.ibiz-action-toolbar__popover{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);width:auto!important;min-width:150px;--el-popover-padding:var(--ibiz-action-toolbar-popover-padding)}.ibiz-action-toolbar__popover .el-button{--el-button-size:getCssVar("height-control", "large");display:block;width:100%;padding:var(--ibiz-action-toolbar-popover-button-padding);margin:var(--ibiz-spacing-none);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-action-toolbar-popover-button-color);text-align:left;border-radius:0}.ibiz-action-toolbar__popover .el-button:hover{background-color:var(--ibiz-action-toolbar-popover-button-hover-bg)}.ibiz-action-toolbar__popover .el-button .ibiz-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__popover .ibiz-action-toolbar__separator{margin:var(--ibiz-spacing-none)}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption{cursor:pointer}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption-icon{vertical-align:bottom}
|
|
@@ -38,10 +38,11 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
setup(props, {
|
|
39
39
|
emit
|
|
40
40
|
}) {
|
|
41
|
+
var _a;
|
|
41
42
|
const ns = useNamespace("action-toolbar");
|
|
42
43
|
const dropdownRef = ref();
|
|
43
44
|
const popoverVisible = ref(false);
|
|
44
|
-
props.actionDetails.forEach((detail) => {
|
|
45
|
+
(_a = props.actionDetails) == null ? void 0 : _a.forEach((detail) => {
|
|
45
46
|
if (detail.capLanguageRes && detail.capLanguageRes.lanResTag) {
|
|
46
47
|
detail.caption = ibiz.i18n.t(detail.capLanguageRes.lanResTag, detail.caption);
|
|
47
48
|
}
|
|
@@ -90,6 +91,7 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
|
|
|
90
91
|
};
|
|
91
92
|
},
|
|
92
93
|
render() {
|
|
94
|
+
var _a;
|
|
93
95
|
const details = this.actionDetails || [];
|
|
94
96
|
const renderDivider = (isExpand) => {
|
|
95
97
|
return createVNode(resolveComponent("el-divider"), {
|
|
@@ -100,7 +102,8 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
|
|
|
100
102
|
};
|
|
101
103
|
const renderActions = (items, isExpand = true) => {
|
|
102
104
|
return items.map((detail) => {
|
|
103
|
-
|
|
105
|
+
var _a2;
|
|
106
|
+
if ((_a2 = this.actionsState[detail.id]) == null ? void 0 : _a2.visible) {
|
|
104
107
|
return [detail.addSeparator && renderDivider(isExpand), createVNode(resolveComponent("el-button"), {
|
|
105
108
|
"text": true,
|
|
106
109
|
"size": "small",
|
|
@@ -160,7 +163,7 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
|
|
|
160
163
|
default: () => [_slot]
|
|
161
164
|
})];
|
|
162
165
|
};
|
|
163
|
-
if (!this.actionsState.visible) {
|
|
166
|
+
if (!((_a = this.actionsState) == null ? void 0 : _a.visible)) {
|
|
164
167
|
return;
|
|
165
168
|
}
|
|
166
169
|
if (this.mode === "buttons") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-anchor-bar-list{--ibiz-anchor-bar-item-height:32px;--ibiz-anchor-bar-selected-icon-width:4px;position:relative}.ibiz-anchor-bar-list__item{height:var(--ibiz-anchor-bar-item-height);padding-left:var(--ibiz-spacing-base);overflow:hidden;font-size:var(--ibiz-font-size-header-6);line-height:var(--ibiz-anchor-bar-item-height);color:var(--ibiz-color-text-3);text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.ibiz-anchor-bar-list__item--title{display:block;width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-anchor-bar-list__item.is-selected{position:relative;font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold);color:var(--ibiz-
|
|
1
|
+
.ibiz-anchor-bar-list{--ibiz-anchor-bar-item-height:32px;--ibiz-anchor-bar-selected-icon-width:4px;--ibiz-anchor-bar-hover-color:var(--ibiz-color-primary-hover);--ibiz-anchor-bar-select-color:var(--ibiz-color-primary-active);--ibiz-anchor-bar-select-bar-color:var(--ibiz-color-primary);position:relative}.ibiz-anchor-bar-list__item{height:var(--ibiz-anchor-bar-item-height);padding-left:var(--ibiz-spacing-base);overflow:hidden;font-size:var(--ibiz-font-size-header-6);line-height:var(--ibiz-anchor-bar-item-height);color:var(--ibiz-color-text-3);text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.ibiz-anchor-bar-list__item--title{display:block;width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ibiz-anchor-bar-list__item.is-selected{position:relative;font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold);color:var(--ibiz-anchor-bar-select-color)}.ibiz-anchor-bar-list__item.is-selected::after{position:absolute;top:0;left:0;width:var(--ibiz-anchor-bar-selected-icon-width);height:100%;content:"";background-color:var(--ibiz-anchor-bar-select-bar-color);border-radius:calc(var(--ibiz-anchor-bar-selected-icon-width)/ 2)}.ibiz-anchor-bar-list__item:hover{color:var(--ibiz-anchor-bar-hover-color)}.ibiz-anchor-bar-list::before{position:absolute;top:0;left:0;width:var(--ibiz-anchor-bar-selected-icon-width);height:100%;content:"";background-color:var(--ibiz-color-fill-0)}.ibiz-anchor-bar-list.is-usermode{display:flex;align-items:center;width:100%;height:100%}.ibiz-anchor-bar-list.is-usermode .ibiz-anchor-bar-list__item{display:flex;flex:1;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-text-3);cursor:pointer}.ibiz-anchor-bar-list.is-usermode .ibiz-anchor-bar-list__item--title{display:block;width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ibiz-anchor-bar-list.is-usermode .ibiz-anchor-bar-list__item.is-selected{position:relative;font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold);color:var(--ibiz-color-primary-active)}.ibiz-anchor-bar-list.is-usermode .ibiz-anchor-bar-list__item.is-selected::after{position:absolute;top:unset;bottom:0;left:0;width:100%;height:var(--ibiz-anchor-bar-selected-icon-width);content:"";background-color:var(--ibiz-color-primary);border-radius:calc(var(--ibiz-anchor-bar-selected-icon-width)/ 2)}.ibiz-anchor-bar-list.is-usermode .ibiz-anchor-bar-list__item:hover{color:var(--ibiz-color-primary-hover)}.ibiz-anchor-bar-list.is-usermode::before{position:absolute;top:unset;bottom:0;left:0;width:100%;height:var(--ibiz-anchor-bar-selected-icon-width);content:"";background-color:var(--ibiz-color-fill-0)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-navigation{width:100%;height:100%}.ibiz-control-navigation__nav-control{width:100%;height:100%;position:relative}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MDControlController } from '@ibiz-template/runtime';
|
|
2
|
+
import { Ref, PropType } from 'vue';
|
|
3
|
+
import './control-navigation.scss';
|
|
4
|
+
/**
|
|
5
|
+
* 部件内容导航组件
|
|
6
|
+
*/
|
|
7
|
+
export declare const IBizControlNavigation: import("vue").DefineComponent<{
|
|
8
|
+
controller: {
|
|
9
|
+
type: PropType<MDControlController<import("@ibiz/model-core").IMDControl, import("@ibiz-template/runtime").IMDControlState, import("@ibiz-template/runtime").IMDControlEvent>>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
14
|
+
navStyle: {
|
|
15
|
+
minWidth: string | number | undefined;
|
|
16
|
+
maxWidth: string | number | undefined;
|
|
17
|
+
minHeight: string | number | undefined;
|
|
18
|
+
maxHeight: string | number | undefined;
|
|
19
|
+
};
|
|
20
|
+
provider: import("./provider/navigation-base.provider").NavgationBaseProvider;
|
|
21
|
+
splitMode: Ref<"vertical" | "horizontal">;
|
|
22
|
+
splitValue: Ref<string | number>;
|
|
23
|
+
outerWrapper: Ref<HTMLDivElement | null>;
|
|
24
|
+
renderNavView: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}> | undefined;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
controller: {
|
|
29
|
+
type: PropType<MDControlController<import("@ibiz/model-core").IMDControl, import("@ibiz-template/runtime").IMDControlState, import("@ibiz-template/runtime").IMDControlEvent>>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, h, resolveComponent, createVNode } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { getNavigationProvider } from './provider/index.mjs';
|
|
4
|
+
import './control-navigation.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizControlNavigation = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizControlNavigation",
|
|
9
|
+
props: {
|
|
10
|
+
controller: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(props) {
|
|
16
|
+
var _a;
|
|
17
|
+
const ns = useNamespace("control-navigation");
|
|
18
|
+
const provider = getNavigationProvider(props.controller);
|
|
19
|
+
const outerWrapper = ref(null);
|
|
20
|
+
const {
|
|
21
|
+
navViewPos,
|
|
22
|
+
controlParam,
|
|
23
|
+
navViewWidth,
|
|
24
|
+
navViewHeight,
|
|
25
|
+
navViewMinWidth,
|
|
26
|
+
navViewMaxWidth,
|
|
27
|
+
navViewMinHeight,
|
|
28
|
+
navViewMaxHeight
|
|
29
|
+
} = props.controller.model;
|
|
30
|
+
const navStyle = {
|
|
31
|
+
minWidth: navViewMinWidth ? navViewMinWidth > 0 ? "".concat(navViewMinWidth, "px") : navViewMinWidth : void 0,
|
|
32
|
+
maxWidth: navViewMaxWidth ? navViewMaxWidth > 0 ? "".concat(navViewMaxWidth, "px") : navViewMaxWidth : void 0,
|
|
33
|
+
minHeight: navViewMinHeight ? navViewMinHeight > 0 ? "".concat(navViewMinHeight, "px") : navViewMinHeight : void 0,
|
|
34
|
+
maxHeight: navViewMaxHeight ? navViewMaxHeight > 0 ? "".concat(navViewMaxHeight, "px") : navViewMaxHeight : void 0
|
|
35
|
+
};
|
|
36
|
+
const navViewMsg = ref();
|
|
37
|
+
const navRenderMode = ((_a = controlParam == null ? void 0 : controlParam.ctrlParams) == null ? void 0 : _a.navRenderMode) ? controlParam.ctrlParams.navRenderMode : "RELOAD";
|
|
38
|
+
const splitValue = ref(0.5);
|
|
39
|
+
const splitMode = ref(["BOTTOM", "ANY_BOTTOM"].includes(navViewPos) ? "vertical" : "horizontal");
|
|
40
|
+
watch(() => provider.navViewMsg.value, (newVal, oldVal) => {
|
|
41
|
+
if (navRenderMode === "REDRAW" || !newVal || oldVal && newVal.viewId !== oldVal.viewId) {
|
|
42
|
+
navViewMsg.value = newVal;
|
|
43
|
+
} else {
|
|
44
|
+
navViewMsg.value = {
|
|
45
|
+
context: newVal.context,
|
|
46
|
+
params: newVal.params,
|
|
47
|
+
viewId: newVal.viewId
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
deep: true,
|
|
52
|
+
immediate: true
|
|
53
|
+
});
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
if (outerWrapper.value) {
|
|
56
|
+
const offsetSize = splitMode.value === "horizontal" ? "offsetWidth" : "offsetHeight";
|
|
57
|
+
const size = outerWrapper.value[offsetSize];
|
|
58
|
+
const viewSize = splitMode.value === "horizontal" ? navViewWidth : navViewHeight;
|
|
59
|
+
if (viewSize) {
|
|
60
|
+
if (viewSize > 0 && viewSize < 1) {
|
|
61
|
+
splitValue.value = 1 - viewSize;
|
|
62
|
+
} else {
|
|
63
|
+
splitValue.value = "".concat(size - viewSize, "px");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const renderNavView = () => {
|
|
69
|
+
if (navViewMsg.value) {
|
|
70
|
+
return h(resolveComponent("IBizViewShell"), {
|
|
71
|
+
...navViewMsg.value,
|
|
72
|
+
class: ns.e("nav-view")
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
ns,
|
|
78
|
+
navStyle,
|
|
79
|
+
provider,
|
|
80
|
+
splitMode,
|
|
81
|
+
splitValue,
|
|
82
|
+
outerWrapper,
|
|
83
|
+
renderNavView
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
render() {
|
|
87
|
+
var _a, _b, _c, _d, _e;
|
|
88
|
+
const {
|
|
89
|
+
state,
|
|
90
|
+
model
|
|
91
|
+
} = this.controller;
|
|
92
|
+
return createVNode("div", {
|
|
93
|
+
"ref": "outerWrapper",
|
|
94
|
+
"class": [this.ns.b(), this.ns.e((_a = model.controlType) == null ? void 0 : _a.toLowerCase())]
|
|
95
|
+
}, [state.enableNavView ? state.showNavView ? createVNode(resolveComponent("iBizNavSplit"), {
|
|
96
|
+
"modelValue": this.splitValue,
|
|
97
|
+
"onUpdate:modelValue": ($event) => this.splitValue = $event,
|
|
98
|
+
"mode": this.splitMode,
|
|
99
|
+
"min": this.splitMode === "horizontal" ? this.navStyle.minWidth : this.navStyle.minHeight,
|
|
100
|
+
"max": this.splitMode === "horizontal" ? this.navStyle.maxWidth : this.navStyle.maxHeight
|
|
101
|
+
}, {
|
|
102
|
+
left: () => {
|
|
103
|
+
var _a2, _b2;
|
|
104
|
+
return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2);
|
|
105
|
+
},
|
|
106
|
+
right: () => this.renderNavView(),
|
|
107
|
+
top: () => {
|
|
108
|
+
var _a2, _b2;
|
|
109
|
+
return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2);
|
|
110
|
+
},
|
|
111
|
+
bottom: () => this.renderNavView()
|
|
112
|
+
}) : (_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b) : (_e = (_d = this.$slots).default) == null ? void 0 : _e.call(_d)]);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export { IBizControlNavigation };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CalendarController, ICalendarItemData, INavViewMsg } from '@ibiz-template/runtime';
|
|
2
|
+
import { ISysCalendar } from '@ibiz/model-core';
|
|
3
|
+
import { NavgationBaseProvider } from './navigation-base.provider';
|
|
4
|
+
/**
|
|
5
|
+
* 日历导航适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class CalendarNavigationProvider
|
|
9
|
+
* @extends {NavgationBaseProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class CalendarNavigationProvider extends NavgationBaseProvider {
|
|
12
|
+
keyName: string;
|
|
13
|
+
controller: CalendarController;
|
|
14
|
+
model: ISysCalendar;
|
|
15
|
+
onNavDataByStack(): void;
|
|
16
|
+
getNavViewMsg(item: ICalendarItemData): INavViewMsg;
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { NavgationBaseProvider } from './navigation-base.provider.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class CalendarNavigationProvider extends NavgationBaseProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
__publicField(this, "keyName", "navId");
|
|
14
|
+
}
|
|
15
|
+
onNavDataByStack() {
|
|
16
|
+
const { items } = this.controller.state;
|
|
17
|
+
const navData = this.navStack.map((key) => items.find((item) => item.navId === key)).find((item) => item !== void 0) || items[0];
|
|
18
|
+
if (navData) {
|
|
19
|
+
const date = new Date(navData.beginTime);
|
|
20
|
+
this.controller.setSelectDate(date);
|
|
21
|
+
this.controller.setNavData(navData);
|
|
22
|
+
} else {
|
|
23
|
+
this.navStack = [];
|
|
24
|
+
this.controller.setSelectDate(/* @__PURE__ */ new Date());
|
|
25
|
+
this.navViewMsg.value = void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
getNavViewMsg(item) {
|
|
29
|
+
const { sysCalendarItems } = this.model;
|
|
30
|
+
const itemModel = sysCalendarItems == null ? void 0 : sysCalendarItems.find(
|
|
31
|
+
(_item) => _item.itemType === item.itemType
|
|
32
|
+
);
|
|
33
|
+
if (itemModel) {
|
|
34
|
+
const { context, params } = this.prepareParams(
|
|
35
|
+
itemModel,
|
|
36
|
+
item.deData ? item.deData : item,
|
|
37
|
+
this.controller.context,
|
|
38
|
+
this.controller.params
|
|
39
|
+
);
|
|
40
|
+
return {
|
|
41
|
+
key: item.navId,
|
|
42
|
+
context,
|
|
43
|
+
params,
|
|
44
|
+
viewId: itemModel.navAppViewId
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
key: item.navId,
|
|
49
|
+
context: this.controller.context,
|
|
50
|
+
params: this.controller.params
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { CalendarNavigationProvider };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MDControlController } from '@ibiz-template/runtime';
|
|
2
|
+
import { NavgationBaseProvider } from './navigation-base.provider';
|
|
3
|
+
/**
|
|
4
|
+
* 获取部件导航适配器
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @param {MDControlController} controller
|
|
8
|
+
* @return {*} {NavgationBaseProvider}
|
|
9
|
+
*/
|
|
10
|
+
export declare function getNavigationProvider(controller: MDControlController): NavgationBaseProvider;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NavgationBaseProvider } from './navigation-base.provider.mjs';
|
|
2
|
+
import { CalendarNavigationProvider } from './calendar-navigation.provider.mjs';
|
|
3
|
+
import { TreeNavigationProvider } from './tree-navigation.provider.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
function getNavigationProvider(controller) {
|
|
7
|
+
const { controlType } = controller.model;
|
|
8
|
+
if (controlType === "CALENDAR") {
|
|
9
|
+
return new CalendarNavigationProvider(controller);
|
|
10
|
+
}
|
|
11
|
+
if (controlType === "TREEVIEW") {
|
|
12
|
+
return new TreeNavigationProvider(controller);
|
|
13
|
+
}
|
|
14
|
+
return new NavgationBaseProvider(controller);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { getNavigationProvider };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { IMDControlEvent, INavViewMsg, MDControlController } from '@ibiz-template/runtime';
|
|
3
|
+
import { IMDControl, INavigatable } from '@ibiz/model-core';
|
|
4
|
+
/**
|
|
5
|
+
* 导航适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class NavgationBaseProvider
|
|
9
|
+
*/
|
|
10
|
+
export declare class NavgationBaseProvider {
|
|
11
|
+
protected controller: MDControlController;
|
|
12
|
+
/**
|
|
13
|
+
* 导航栈数据
|
|
14
|
+
*
|
|
15
|
+
* @type {string[]}
|
|
16
|
+
* @memberof NavgationBaseProvider
|
|
17
|
+
*/
|
|
18
|
+
navStack: string[];
|
|
19
|
+
/**
|
|
20
|
+
* 主键名称
|
|
21
|
+
*
|
|
22
|
+
* @memberof NavgationBaseProvider
|
|
23
|
+
*/
|
|
24
|
+
keyName: string;
|
|
25
|
+
/**
|
|
26
|
+
* 模型
|
|
27
|
+
*
|
|
28
|
+
* @type {IMDControl}
|
|
29
|
+
* @memberof NavgationBaseProvider
|
|
30
|
+
*/
|
|
31
|
+
model: IMDControl;
|
|
32
|
+
/**
|
|
33
|
+
* 导航视图信息
|
|
34
|
+
*
|
|
35
|
+
* @type {(Ref<INavViewMsg | undefined>)}
|
|
36
|
+
* @memberof NavgationBaseProvider
|
|
37
|
+
*/
|
|
38
|
+
navViewMsg: Ref<INavViewMsg | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates an instance of NavgationBaseProvider.
|
|
41
|
+
* @param {MDControlController} controller
|
|
42
|
+
* @memberof NavgationBaseProvider
|
|
43
|
+
*/
|
|
44
|
+
constructor(controller: MDControlController);
|
|
45
|
+
/**
|
|
46
|
+
* 解析参数
|
|
47
|
+
*
|
|
48
|
+
* @param {(INavigatable & { appDataEntityId?: string })} XDataModel
|
|
49
|
+
* @param {IData} data
|
|
50
|
+
* @param {IContext} context
|
|
51
|
+
* @param {IParams} params
|
|
52
|
+
* @return {*} {{ context: IContext; params: IParams }}
|
|
53
|
+
* @memberof NavgationBaseProvider
|
|
54
|
+
*/
|
|
55
|
+
prepareParams(XDataModel: INavigatable & {
|
|
56
|
+
appDataEntityId?: string;
|
|
57
|
+
}, data: IData, context: IContext, params: IParams): {
|
|
58
|
+
context: IContext;
|
|
59
|
+
params: IParams;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 通过栈数据导航
|
|
63
|
+
*
|
|
64
|
+
* @memberof NavgationBaseProvider
|
|
65
|
+
*/
|
|
66
|
+
onNavDataByStack(): void;
|
|
67
|
+
/**
|
|
68
|
+
* 导航数据变化
|
|
69
|
+
*
|
|
70
|
+
* @param {IMDControlEvent['onNavDataChange']['event']} event
|
|
71
|
+
* @memberof NavgationBaseProvider
|
|
72
|
+
*/
|
|
73
|
+
onNavDataChange(event: IMDControlEvent['onNavDataChange']['event']): void;
|
|
74
|
+
/**
|
|
75
|
+
* 获取导航视图信息
|
|
76
|
+
*
|
|
77
|
+
* @param {IData} data
|
|
78
|
+
* @param {IContext} context
|
|
79
|
+
* @param {IParams} params
|
|
80
|
+
* @return {*} {INavViewMsg}
|
|
81
|
+
* @memberof NavgationBaseProvider
|
|
82
|
+
*/
|
|
83
|
+
getNavViewMsg(data: IData, context: IContext, params: IParams): INavViewMsg;
|
|
84
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import { calcDeCodeNameById, calcNavParams } from '@ibiz-template/runtime';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => {
|
|
8
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
+
return value;
|
|
10
|
+
};
|
|
11
|
+
class NavgationBaseProvider {
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of NavgationBaseProvider.
|
|
14
|
+
* @param {MDControlController} controller
|
|
15
|
+
* @memberof NavgationBaseProvider
|
|
16
|
+
*/
|
|
17
|
+
constructor(controller) {
|
|
18
|
+
this.controller = controller;
|
|
19
|
+
/**
|
|
20
|
+
* 导航栈数据
|
|
21
|
+
*
|
|
22
|
+
* @type {string[]}
|
|
23
|
+
* @memberof NavgationBaseProvider
|
|
24
|
+
*/
|
|
25
|
+
__publicField(this, "navStack", []);
|
|
26
|
+
/**
|
|
27
|
+
* 主键名称
|
|
28
|
+
*
|
|
29
|
+
* @memberof NavgationBaseProvider
|
|
30
|
+
*/
|
|
31
|
+
__publicField(this, "keyName", "srfkey");
|
|
32
|
+
/**
|
|
33
|
+
* 模型
|
|
34
|
+
*
|
|
35
|
+
* @type {IMDControl}
|
|
36
|
+
* @memberof NavgationBaseProvider
|
|
37
|
+
*/
|
|
38
|
+
__publicField(this, "model");
|
|
39
|
+
/**
|
|
40
|
+
* 导航视图信息
|
|
41
|
+
*
|
|
42
|
+
* @type {(Ref<INavViewMsg | undefined>)}
|
|
43
|
+
* @memberof NavgationBaseProvider
|
|
44
|
+
*/
|
|
45
|
+
__publicField(this, "navViewMsg", ref());
|
|
46
|
+
this.model = controller.model;
|
|
47
|
+
if (controller.state.enableNavView) {
|
|
48
|
+
controller.evt.on("onNavDataChange", (evt) => {
|
|
49
|
+
this.onNavDataChange(evt);
|
|
50
|
+
});
|
|
51
|
+
controller.evt.on("onLoadSuccess", () => {
|
|
52
|
+
this.onNavDataByStack();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 解析参数
|
|
58
|
+
*
|
|
59
|
+
* @param {(INavigatable & { appDataEntityId?: string })} XDataModel
|
|
60
|
+
* @param {IData} data
|
|
61
|
+
* @param {IContext} context
|
|
62
|
+
* @param {IParams} params
|
|
63
|
+
* @return {*} {{ context: IContext; params: IParams }}
|
|
64
|
+
* @memberof NavgationBaseProvider
|
|
65
|
+
*/
|
|
66
|
+
prepareParams(XDataModel, data, context, params) {
|
|
67
|
+
const {
|
|
68
|
+
navDER,
|
|
69
|
+
navFilter,
|
|
70
|
+
navigateContexts,
|
|
71
|
+
navigateParams,
|
|
72
|
+
appDataEntityId
|
|
73
|
+
} = XDataModel;
|
|
74
|
+
const model = {
|
|
75
|
+
deName: appDataEntityId ? calcDeCodeNameById(appDataEntityId) : void 0,
|
|
76
|
+
navFilter,
|
|
77
|
+
pickupDEFName: navDER == null ? void 0 : navDER.pickupDEFName,
|
|
78
|
+
navContexts: navigateContexts,
|
|
79
|
+
navParams: navigateParams
|
|
80
|
+
};
|
|
81
|
+
const originParams = {
|
|
82
|
+
context,
|
|
83
|
+
params,
|
|
84
|
+
data
|
|
85
|
+
};
|
|
86
|
+
const { resultContext, resultParams } = calcNavParams(model, originParams);
|
|
87
|
+
const tempContext = Object.assign(context.clone(), resultContext);
|
|
88
|
+
const tempParams = { ...resultParams };
|
|
89
|
+
return { context: tempContext, params: tempParams };
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 通过栈数据导航
|
|
93
|
+
*
|
|
94
|
+
* @memberof NavgationBaseProvider
|
|
95
|
+
*/
|
|
96
|
+
onNavDataByStack() {
|
|
97
|
+
const { items } = this.controller.state;
|
|
98
|
+
const navData = this.navStack.map((key) => items.find((item) => item[this.keyName] === key)).find((item) => item !== void 0) || items[0];
|
|
99
|
+
setTimeout(() => {
|
|
100
|
+
if (navData) {
|
|
101
|
+
this.controller.setNavData(navData);
|
|
102
|
+
this.controller.setSelection([navData]);
|
|
103
|
+
} else {
|
|
104
|
+
this.navStack = [];
|
|
105
|
+
this.controller.setSelection([]);
|
|
106
|
+
this.navViewMsg.value = void 0;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 导航数据变化
|
|
112
|
+
*
|
|
113
|
+
* @param {IMDControlEvent['onNavDataChange']['event']} event
|
|
114
|
+
* @memberof NavgationBaseProvider
|
|
115
|
+
*/
|
|
116
|
+
onNavDataChange(event) {
|
|
117
|
+
const { navData, context, params } = event;
|
|
118
|
+
this.navStack.unshift(navData[this.keyName]);
|
|
119
|
+
this.navViewMsg.value = this.getNavViewMsg(navData, context, params);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 获取导航视图信息
|
|
123
|
+
*
|
|
124
|
+
* @param {IData} data
|
|
125
|
+
* @param {IContext} context
|
|
126
|
+
* @param {IParams} params
|
|
127
|
+
* @return {*} {INavViewMsg}
|
|
128
|
+
* @memberof NavgationBaseProvider
|
|
129
|
+
*/
|
|
130
|
+
getNavViewMsg(data, context, params) {
|
|
131
|
+
const viewModelId = this.model.navAppViewId;
|
|
132
|
+
const result = this.prepareParams(this.model, data, context, params);
|
|
133
|
+
return {
|
|
134
|
+
key: data[this.keyName],
|
|
135
|
+
context: result.context,
|
|
136
|
+
params: result.params,
|
|
137
|
+
viewId: viewModelId
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { NavgationBaseProvider };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TreeController, INavViewMsg, ITreeNodeData, MDControlController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IDETree } from '@ibiz/model-core';
|
|
3
|
+
import { NavgationBaseProvider } from './navigation-base.provider';
|
|
4
|
+
/**
|
|
5
|
+
* 树导航适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class TreeNavigationProvider
|
|
9
|
+
* @extends {NavgationBaseProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class TreeNavigationProvider extends NavgationBaseProvider {
|
|
12
|
+
keyName: string;
|
|
13
|
+
controller: TreeController;
|
|
14
|
+
model: IDETree;
|
|
15
|
+
/**
|
|
16
|
+
* 有导航视图的节点标识
|
|
17
|
+
*
|
|
18
|
+
* @type {string[]}
|
|
19
|
+
* @memberof TreeNavigationProvider
|
|
20
|
+
*/
|
|
21
|
+
navNodeModelIds: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of TreeNavigationProvider.
|
|
24
|
+
* @param {MDControlController} controller
|
|
25
|
+
* @memberof TreeNavigationProvider
|
|
26
|
+
*/
|
|
27
|
+
constructor(controller: MDControlController);
|
|
28
|
+
onNavDataByStack(): void;
|
|
29
|
+
getNavViewMsg(item: ITreeNodeData): INavViewMsg;
|
|
30
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { NavgationBaseProvider } from './navigation-base.provider.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class TreeNavigationProvider extends NavgationBaseProvider {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of TreeNavigationProvider.
|
|
13
|
+
* @param {MDControlController} controller
|
|
14
|
+
* @memberof TreeNavigationProvider
|
|
15
|
+
*/
|
|
16
|
+
constructor(controller) {
|
|
17
|
+
super(controller);
|
|
18
|
+
__publicField(this, "keyName", "_id");
|
|
19
|
+
/**
|
|
20
|
+
* 有导航视图的节点标识
|
|
21
|
+
*
|
|
22
|
+
* @type {string[]}
|
|
23
|
+
* @memberof TreeNavigationProvider
|
|
24
|
+
*/
|
|
25
|
+
__publicField(this, "navNodeModelIds", []);
|
|
26
|
+
const { detreeNodes } = this.model;
|
|
27
|
+
detreeNodes == null ? void 0 : detreeNodes.forEach((node) => {
|
|
28
|
+
if (node.navAppViewId) {
|
|
29
|
+
this.navNodeModelIds.push(node.id);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
onNavDataByStack() {
|
|
34
|
+
const { items, rootNodes } = this.controller.state;
|
|
35
|
+
const defaultNav = items.find((node) => {
|
|
36
|
+
if (!this.model.rootVisible && rootNodes.includes(node)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return this.navNodeModelIds.includes(node._nodeId);
|
|
40
|
+
});
|
|
41
|
+
const navData = this.navStack.map((key) => items.find((item) => item._id === key)).find((item) => item !== void 0) || defaultNav;
|
|
42
|
+
if (navData) {
|
|
43
|
+
this.controller.setSelection([navData]);
|
|
44
|
+
this.controller.setNavData(navData);
|
|
45
|
+
} else {
|
|
46
|
+
this.navStack = [];
|
|
47
|
+
this.controller.setSelection([]);
|
|
48
|
+
this.navViewMsg.value = void 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
getNavViewMsg(item) {
|
|
52
|
+
const { detreeNodes } = this.model;
|
|
53
|
+
const nodeModel = detreeNodes == null ? void 0 : detreeNodes.find((node) => node.id === item._nodeId);
|
|
54
|
+
const _context = Object.assign(
|
|
55
|
+
this.controller.context.clone(),
|
|
56
|
+
item._context || {}
|
|
57
|
+
);
|
|
58
|
+
const _params = { ...this.controller.params, ...item._params || {} };
|
|
59
|
+
if (nodeModel) {
|
|
60
|
+
const { context, params } = this.prepareParams(
|
|
61
|
+
nodeModel,
|
|
62
|
+
item._deData ? item._deData : item,
|
|
63
|
+
_context,
|
|
64
|
+
_params
|
|
65
|
+
);
|
|
66
|
+
return {
|
|
67
|
+
key: item._id,
|
|
68
|
+
context,
|
|
69
|
+
params,
|
|
70
|
+
viewId: nodeModel.navAppViewId
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
key: item._id,
|
|
75
|
+
context: _context,
|
|
76
|
+
params: _params
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { TreeNavigationProvider };
|