@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
|
@@ -4,9 +4,9 @@ import { ScriptFactory, GridController } from '@ibiz-template/runtime';
|
|
|
4
4
|
import { NOOP } from '@ibiz-template/core';
|
|
5
5
|
import { createUUID } from 'qx-util';
|
|
6
6
|
import { useITableEvent, useGridHeaderStyle, useGridDraggable, useAppGridBase } from './grid-control.util.mjs';
|
|
7
|
-
import './grid.css';
|
|
8
7
|
import { useRowEditPopover } from '../row-edit-popover/use-row-edit-popover.mjs';
|
|
9
8
|
import '../../../util/index.mjs';
|
|
9
|
+
import './grid.css';
|
|
10
10
|
import { usePagination } from '../../../util/pagination/use-pagination.mjs';
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -35,11 +35,12 @@ function renderColumn(c, model, renderColumns, index) {
|
|
|
35
35
|
const columnState = c.state.columnStates.find((item) => item.key === columnName);
|
|
36
36
|
const widthFlexGrow = columnC.isAdaptiveColumn || !c.hasAdaptiveColumn && index === renderColumns.length - 1;
|
|
37
37
|
const widthName = widthFlexGrow ? "min-width" : "width";
|
|
38
|
+
const tempWidth = (columnState == null ? void 0 : columnState.columnWidth) || width;
|
|
38
39
|
return createVNode(resolveComponent("el-table-column"), mergeProps({
|
|
39
40
|
"label": model.caption,
|
|
40
41
|
"prop": columnName
|
|
41
42
|
}, {
|
|
42
|
-
[widthName]:
|
|
43
|
+
[widthName]: tempWidth
|
|
43
44
|
}, {
|
|
44
45
|
"fixed": columnState.fixed,
|
|
45
46
|
"sortable": model.enableSort ? "custom" : false,
|
|
@@ -163,7 +164,9 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
163
164
|
onSelectionChange,
|
|
164
165
|
onSortChange,
|
|
165
166
|
handleRowClassName,
|
|
166
|
-
handleHeaderCellClassName
|
|
167
|
+
handleHeaderCellClassName,
|
|
168
|
+
cleanKeyDown = NOOP,
|
|
169
|
+
cleanKeyUp = NOOP
|
|
167
170
|
} = useITableEvent(c);
|
|
168
171
|
const {
|
|
169
172
|
onPageChange,
|
|
@@ -278,6 +281,12 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
278
281
|
if (cleanup !== NOOP) {
|
|
279
282
|
cleanup();
|
|
280
283
|
}
|
|
284
|
+
if (cleanKeyDown !== NOOP) {
|
|
285
|
+
cleanKeyDown();
|
|
286
|
+
}
|
|
287
|
+
if (cleanKeyUp !== NOOP) {
|
|
288
|
+
cleanKeyUp();
|
|
289
|
+
}
|
|
281
290
|
});
|
|
282
291
|
const isLodeMoreDisabled = computed(() => {
|
|
283
292
|
if (c.model.pagingMode !== 2) {
|
|
@@ -335,77 +344,81 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
335
344
|
}
|
|
336
345
|
const state = this.c.state;
|
|
337
346
|
const defaultExpandAll = this.c.controlParams.defaultexpandall === "true";
|
|
338
|
-
return createVNode(resolveComponent("
|
|
339
|
-
"
|
|
340
|
-
"controller": this.c,
|
|
341
|
-
"style": this.headerCssVars
|
|
347
|
+
return createVNode(resolveComponent("iBizControlNavigation"), {
|
|
348
|
+
"controller": this.c
|
|
342
349
|
}, {
|
|
343
|
-
default: () => [createVNode(resolveComponent("
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
return this.
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
350
|
+
default: () => [createVNode(resolveComponent("iBizControlBase"), {
|
|
351
|
+
"class": [this.ns.is("show-header", !this.c.state.hideHeader), this.ns.is("enable-page", this.c.state.enablePagingBar), this.ns.is("enable-group", this.c.model.enableGroup), this.ns.is("single-select", state.singleSelect), this.ns.is("empty", state.items.length === 0), this.ns.is("enable-customized", this.c.model.enableCustomized)],
|
|
352
|
+
"controller": this.c,
|
|
353
|
+
"style": this.headerCssVars
|
|
354
|
+
}, {
|
|
355
|
+
default: () => [createVNode(resolveComponent("el-table"), mergeProps({
|
|
356
|
+
"ref": "tableRef",
|
|
357
|
+
"class": this.ns.e("table"),
|
|
358
|
+
"default-sort": this.defaultSort,
|
|
359
|
+
"border": true,
|
|
360
|
+
"show-header": !this.c.state.hideHeader,
|
|
361
|
+
"show-summary": this.c.enableAgg,
|
|
362
|
+
"summary-method": this.summaryMethod,
|
|
363
|
+
"highlight-current-row": state.singleSelect,
|
|
364
|
+
"row-class-name": this.handleRowClassName,
|
|
365
|
+
"header-cell-class-name": this.handleHeaderCellClassName,
|
|
366
|
+
"row-key": "tempsrfkey",
|
|
367
|
+
"data": this.tableData,
|
|
368
|
+
"default-expand-all": defaultExpandAll,
|
|
369
|
+
"span-method": this.spanMethod,
|
|
370
|
+
"onRowClick": this.onRowClick,
|
|
371
|
+
"onRowDblclick": this.onDbRowClick,
|
|
372
|
+
"onSelectionChange": this.onSelectionChange,
|
|
373
|
+
"onSortChange": this.onSortChange,
|
|
374
|
+
"onHeaderDragend": this.headerDragend,
|
|
375
|
+
"tooltip-effect": "light",
|
|
376
|
+
"scrollbar-always-on": true
|
|
377
|
+
}, this.$attrs, renderAttrs(this.c.model, {
|
|
378
|
+
...this.c.getEventArgs()
|
|
379
|
+
})), {
|
|
380
|
+
empty: this.renderNoData,
|
|
381
|
+
default: () => {
|
|
382
|
+
return [this.c.enableRowEditOrder && this.renderDragIconColumn(), !state.singleSelect && createVNode(resolveComponent("el-table-column"), {
|
|
383
|
+
"class-name": this.ns.e("selection"),
|
|
384
|
+
"type": "selection",
|
|
385
|
+
"width": "55"
|
|
386
|
+
}, null), this.renderColumns.map((model, index) => {
|
|
387
|
+
return this.renderTableColumn(model, index);
|
|
388
|
+
})];
|
|
389
|
+
},
|
|
390
|
+
append: () => {
|
|
391
|
+
let _slot;
|
|
392
|
+
return [withDirectives(createVNode("div", {
|
|
393
|
+
"ref": "infiniteScroll",
|
|
394
|
+
"key": this.infiniteScrollKey,
|
|
395
|
+
"infinite-scroll-distance": 10,
|
|
396
|
+
"infinite-scroll-disabled": this.isLodeMoreDisabled
|
|
397
|
+
}, null), [[resolveDirective("infinite-scroll"), () => this.c.loadMore()]]), this.c.model.pagingMode === 3 && !(this.c.state.items.length >= this.c.state.total || this.c.state.isLoading || this.c.state.total <= this.c.state.size) && createVNode("div", {
|
|
398
|
+
"class": this.ns.e("load-more-button")
|
|
399
|
+
}, [createVNode(resolveComponent("el-button"), {
|
|
400
|
+
"text": true,
|
|
401
|
+
"onClick": () => this.c.loadMore()
|
|
402
|
+
}, _isSlot(_slot = ibiz.i18n.t("control.common.loadMore")) ? _slot : {
|
|
403
|
+
default: () => [_slot]
|
|
404
|
+
})]), this.renderPopover()];
|
|
405
|
+
}
|
|
406
|
+
}), this.c.state.enablePagingBar && createVNode(resolveComponent("iBizPagination"), {
|
|
407
|
+
"total": state.total,
|
|
408
|
+
"curPage": state.curPage,
|
|
409
|
+
"size": state.size,
|
|
410
|
+
"totalPages": state.totalPages,
|
|
411
|
+
"onChange": this.onPageChange,
|
|
412
|
+
"popperClass": "".concat(this.sysCssName, "--popper"),
|
|
413
|
+
"onPageSizeChange": this.onPageSizeChange,
|
|
414
|
+
"onPageRefresh": this.onPageRefresh
|
|
415
|
+
}, null), this.c.model.enableCustomized && !this.c.state.hideHeader && createVNode("div", {
|
|
416
|
+
"class": this.ns.b("setting-box")
|
|
417
|
+
}, [createVNode(resolveComponent("iBizGridSetting"), {
|
|
418
|
+
"columnStates": state.columnStates,
|
|
419
|
+
"controller": this.c
|
|
420
|
+
}, null)]), this.renderBatchToolBar()]
|
|
421
|
+
})]
|
|
409
422
|
});
|
|
410
423
|
}
|
|
411
424
|
});
|
|
@@ -25,6 +25,7 @@ export declare const GridFieldColumn: import("vue").DefineComponent<{
|
|
|
25
25
|
tooltip: import("vue").ComputedRef<string | undefined>;
|
|
26
26
|
zIndex: number | undefined;
|
|
27
27
|
codeListItems: Ref<readonly IData[]>;
|
|
28
|
+
hiddenEmpty: import("vue").ComputedRef<boolean>;
|
|
28
29
|
findLayoutPanel: () => IPanel | undefined;
|
|
29
30
|
renderPanelItemLayout: (item: IData, modelData: ILayoutPanel) => VNode;
|
|
30
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -20,6 +20,13 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(props) {
|
|
22
22
|
const ns = useNamespace("grid-field-column");
|
|
23
|
+
let emptyHiddenUnit = ibiz.config.grid.emptyHiddenUnit;
|
|
24
|
+
const {
|
|
25
|
+
emptyhiddenunit
|
|
26
|
+
} = props.controller.grid.controlParams;
|
|
27
|
+
if (emptyhiddenunit) {
|
|
28
|
+
emptyHiddenUnit = Object.is(emptyhiddenunit, "true");
|
|
29
|
+
}
|
|
23
30
|
const zIndex = props.controller.grid.state.zIndex;
|
|
24
31
|
const onCellClick = (event) => {
|
|
25
32
|
if (props.controller.hasAction) {
|
|
@@ -62,6 +69,18 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
62
69
|
}
|
|
63
70
|
return "";
|
|
64
71
|
});
|
|
72
|
+
const hiddenEmpty = computed(() => {
|
|
73
|
+
if (fieldValue.value) {
|
|
74
|
+
if (emptyHiddenUnit) {
|
|
75
|
+
if (formatValue.value) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
});
|
|
65
84
|
const codeListValue = computed(() => ValueExUtil.toText(props.controller.model, fieldValue.value));
|
|
66
85
|
const codeListText = ref("");
|
|
67
86
|
const onInfoTextChange = (text) => {
|
|
@@ -119,6 +138,7 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
119
138
|
tooltip,
|
|
120
139
|
zIndex,
|
|
121
140
|
codeListItems,
|
|
141
|
+
hiddenEmpty,
|
|
122
142
|
findLayoutPanel,
|
|
123
143
|
renderPanelItemLayout
|
|
124
144
|
};
|
|
@@ -163,7 +183,7 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
163
183
|
"class": this.ns.e("text"),
|
|
164
184
|
"title": showTitle(this.tooltip),
|
|
165
185
|
"onClick": this.onTextClick
|
|
166
|
-
}, [this.formatValue, this.
|
|
186
|
+
}, [this.formatValue, this.hiddenEmpty && c.model.unitName, this.percent && "(".concat(this.percent, ")")]);
|
|
167
187
|
}
|
|
168
188
|
return createVNode("div", {
|
|
169
189
|
"class": [this.ns.b(), c.clickable(this.row) && this.ns.m("clickable"), this.ns.m(this.controller.grid.overflowMode), (_a = this.controller.model.cellSysCss) == null ? void 0 : _a.cssName, this.ns.is("has-action", !!c.model.deuiactionGroup)],
|
|
@@ -21,6 +21,7 @@ export declare const IBizGridFieldColumn: import("@ibiz-template/vue3-util").Typ
|
|
|
21
21
|
tooltip: import("vue").ComputedRef<string | undefined>;
|
|
22
22
|
zIndex: number | undefined;
|
|
23
23
|
codeListItems: import("vue").Ref<readonly IData[]>;
|
|
24
|
+
hiddenEmpty: import("vue").ComputedRef<boolean>;
|
|
24
25
|
findLayoutPanel: () => import("@ibiz/model-core").IPanel | undefined;
|
|
25
26
|
renderPanelItemLayout: (item: IData, modelData: import("@ibiz/model-core").IPanel) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
27
|
[key: string]: any;
|
|
@@ -51,6 +51,7 @@ export declare const IBizListControl: import("@ibiz-template/vue3-util").TypeWit
|
|
|
51
51
|
c: import("@ibiz-template/runtime").ListController;
|
|
52
52
|
ns: import("@ibiz-template/core").Namespace;
|
|
53
53
|
infiniteScroll: import("vue").Ref<IData | undefined>;
|
|
54
|
+
onShowNavView: () => void;
|
|
54
55
|
renderListContent: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
56
|
[key: string]: any;
|
|
56
57
|
}>;
|
package/es/control/list/list.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-list-item{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);min-height:var(--ibiz-control-list-item-height);padding:var(--ibiz-control-list-padding);font-weight:var(--ibiz-control-list-font-weight);color:var(--ibiz-control-list-text-color);cursor:pointer}.ibiz-control-list-item:hover{background-color:var(--ibiz-control-list-hover-bg-color)}.ibiz-control-list-item.is-active{background-color:var(--ibiz-control-list-active-bg-color)}.ibiz-control-list{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;position:relative;height:100%}.ibiz-control-list__load-more{text-align:center}.ibiz-control-list__load-more i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-control-list-load-more-color);cursor:pointer}.ibiz-control-list__load-more i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__collapse-expand-icon{width:calc(100% - var(--ibiz-spacing-base-tight));text-align:center}.ibiz-control-list__collapse-expand-icon i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-color-text-2);cursor:pointer}.ibiz-control-list__collapse-expand-icon i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__load-more-button{padding:var(--ibiz-control-list-padding);text-align:center}.ibiz-control-list .ibiz-control-list-content{flex-grow:1}.ibiz-control-list-scroll{height:100%;overflow:auto}.ibiz-control-list-group-content__item-header{display:flex;align-items:center;justify-content:space-between;width:100%}
|
|
1
|
+
.ibiz-control-list-item{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);min-height:var(--ibiz-control-list-item-height);padding:var(--ibiz-control-list-padding);font-weight:var(--ibiz-control-list-font-weight);color:var(--ibiz-control-list-text-color);cursor:pointer}.ibiz-control-list-item:hover{background-color:var(--ibiz-control-list-hover-bg-color)}.ibiz-control-list-item.is-active{background-color:var(--ibiz-control-list-active-bg-color)}.ibiz-control-list{--ibiz-control-list-text-color:var(--ibiz-color-text-0);--ibiz-control-list-load-more-color:var(--ibiz-color-text-2);--ibiz-control-list-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-control-list-active-bg-color:var(--ibiz-color-fill-2);--ibiz-control-list-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-list-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;position:relative;height:100%}.ibiz-control-list__nav-icon{right:10px;top:18px;cursor:pointer;position:absolute;color:var(--ibiz-color-primary)}.ibiz-control-list__load-more{text-align:center}.ibiz-control-list__load-more i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-control-list-load-more-color);cursor:pointer}.ibiz-control-list__load-more i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__collapse-expand-icon{width:calc(100% - var(--ibiz-spacing-base-tight));text-align:center}.ibiz-control-list__collapse-expand-icon i{font-size:var(--ibiz-font-size-header-3);color:var(--ibiz-color-text-2);cursor:pointer}.ibiz-control-list__collapse-expand-icon i:hover{color:var(--ibiz-color-primary-light-hover)}.ibiz-control-list__load-more-button{padding:var(--ibiz-control-list-padding);text-align:center}.ibiz-control-list .ibiz-control-list-content{flex-grow:1}.ibiz-control-list-content.is-show-underLine .ibiz-control-list-scroll-item{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-list-content .ibiz-control-list-scroll-item:last-of-type{border-bottom:none}.ibiz-control-list-scroll{height:100%;overflow:auto}.ibiz-control-list-group-content__item-header{display:flex;align-items:center;justify-content:space-between;width:100%}
|
|
@@ -70,6 +70,7 @@ export declare const ListControl: import("vue").DefineComponent<{
|
|
|
70
70
|
c: ListController;
|
|
71
71
|
ns: import("@ibiz-template/core").Namespace;
|
|
72
72
|
infiniteScroll: import("vue").Ref<IData | undefined>;
|
|
73
|
+
onShowNavView: () => void;
|
|
73
74
|
renderListContent: () => VNode;
|
|
74
75
|
renderNoData: () => VNode | undefined;
|
|
75
76
|
renderBatchToolBar: () => VNode | undefined;
|
package/es/control/list/list.mjs
CHANGED
|
@@ -200,6 +200,9 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
200
200
|
isCollapse.value = true;
|
|
201
201
|
scrollToTop();
|
|
202
202
|
};
|
|
203
|
+
const onShowNavView = () => {
|
|
204
|
+
c.state.showNavView = !c.state.showNavView;
|
|
205
|
+
};
|
|
203
206
|
const onExpandData = () => {
|
|
204
207
|
isCollapse.value = false;
|
|
205
208
|
};
|
|
@@ -208,7 +211,7 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
208
211
|
return createVNode(resolveComponent("el-collapse"), {
|
|
209
212
|
"modelValue": c.state.expandedKeys,
|
|
210
213
|
"onUpdate:modelValue": ($event) => c.state.expandedKeys = $event,
|
|
211
|
-
"class": [ns.b("group-content"), ns.b("content")]
|
|
214
|
+
"class": [ns.b("group-content"), ns.b("content"), ns.is("show-underLine", c.model.controlStyle !== "EXTVIEW1")]
|
|
212
215
|
}, {
|
|
213
216
|
default: () => {
|
|
214
217
|
var _a;
|
|
@@ -226,7 +229,7 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
226
229
|
tempItems = c.state.items.slice(0, c.state.size);
|
|
227
230
|
}
|
|
228
231
|
return withDirectives(createVNode("div", {
|
|
229
|
-
"class": [ns.b("scroll"), ns.b("content")],
|
|
232
|
+
"class": [ns.b("scroll"), ns.b("content"), ns.is("show-underLine", c.model.controlStyle !== "EXTVIEW1")],
|
|
230
233
|
"infinite-scroll-distance": 10,
|
|
231
234
|
"infinite-scroll-disabled": isLodeMoreDisabled.value,
|
|
232
235
|
"ref": "infiniteScroll",
|
|
@@ -341,6 +344,7 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
341
344
|
c,
|
|
342
345
|
ns,
|
|
343
346
|
infiniteScroll,
|
|
347
|
+
onShowNavView,
|
|
344
348
|
renderListContent,
|
|
345
349
|
renderNoData,
|
|
346
350
|
renderBatchToolBar,
|
|
@@ -364,11 +368,25 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
364
368
|
"onPageRefresh": this.onPageRefresh
|
|
365
369
|
}, null) : null];
|
|
366
370
|
}
|
|
367
|
-
return createVNode(resolveComponent("
|
|
368
|
-
"class": [this.ns.is("enable-page", !!this.c.state.enablePagingBar)],
|
|
371
|
+
return createVNode(resolveComponent("iBizControlNavigation"), {
|
|
369
372
|
"controller": this.c
|
|
370
373
|
}, {
|
|
371
|
-
default: () => [
|
|
374
|
+
default: () => [createVNode(resolveComponent("iBizControlBase"), {
|
|
375
|
+
"class": [this.ns.is("enable-page", !!this.c.state.enablePagingBar)],
|
|
376
|
+
"controller": this.c
|
|
377
|
+
}, {
|
|
378
|
+
default: () => [content, this.c.state.enableNavView ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
379
|
+
"class": this.ns.e("nav-icon"),
|
|
380
|
+
"title": ibiz.i18n.t("component.controlNavigation.showNav"),
|
|
381
|
+
"name": "eye-outline",
|
|
382
|
+
"onClick": this.onShowNavView
|
|
383
|
+
}, null) : createVNode("ion-icon", {
|
|
384
|
+
"class": this.ns.e("nav-icon"),
|
|
385
|
+
"title": ibiz.i18n.t("component.controlNavigation.hiddenNav"),
|
|
386
|
+
"name": "eye-off-outline",
|
|
387
|
+
"onClick": this.onShowNavView
|
|
388
|
+
}, null) : null, this.renderCollapseExpandIcon()]
|
|
389
|
+
})]
|
|
372
390
|
});
|
|
373
391
|
}
|
|
374
392
|
});
|
package/es/control/map/map.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ declare const MapControl: import("vue").DefineComponent<{
|
|
|
22
22
|
type: NumberConstructor;
|
|
23
23
|
default: undefined;
|
|
24
24
|
};
|
|
25
|
+
isSimple: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
25
29
|
loadDefault: {
|
|
26
30
|
type: BooleanConstructor;
|
|
27
31
|
default: boolean;
|
|
@@ -65,6 +69,10 @@ declare const MapControl: import("vue").DefineComponent<{
|
|
|
65
69
|
type: NumberConstructor;
|
|
66
70
|
default: undefined;
|
|
67
71
|
};
|
|
72
|
+
isSimple: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
required: false;
|
|
75
|
+
};
|
|
68
76
|
loadDefault: {
|
|
69
77
|
type: BooleanConstructor;
|
|
70
78
|
default: boolean;
|
|
@@ -72,6 +80,7 @@ declare const MapControl: import("vue").DefineComponent<{
|
|
|
72
80
|
}>>, {
|
|
73
81
|
params: IParams;
|
|
74
82
|
mdctrlActiveMode: number;
|
|
83
|
+
isSimple: boolean;
|
|
75
84
|
loadDefault: boolean;
|
|
76
85
|
}, {}>;
|
|
77
86
|
export default MapControl;
|
package/es/control/map/map.mjs
CHANGED
|
@@ -392,8 +392,8 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
392
392
|
default: () => [_slot5]
|
|
393
393
|
}), createVNode(resolveComponent("el-link"), {
|
|
394
394
|
"type": "danger",
|
|
395
|
-
"disabled": !groupItem.saved,
|
|
396
|
-
"title": showTitle(!groupItem.saved ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : ""),
|
|
395
|
+
"disabled": !groupItem.saved || groupItem.ownerType === "SYSTEM",
|
|
396
|
+
"title": showTitle(!groupItem.saved || groupItem.ownerType === "SYSTEM" ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : ""),
|
|
397
397
|
"onClick": () => this.removeGroup(groupItem)
|
|
398
398
|
}, _isSlot(_slot6 = ibiz.i18n.t("app.delete")) ? _slot6 : {
|
|
399
399
|
default: () => [_slot6]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-tabexppanel .el-tabs .el-tabs__header{margin:var(--ibiz-spacing-none)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap{margin:var(--ibiz-spacing-none)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__active-bar{background-color:var(--ibiz-color
|
|
1
|
+
.ibiz-control-tabexppanel{--ibiz-control-tabexppanel-color:var(--ibiz-color-text-2);--ibiz-control-tabexppanel-hover-color:var(--ibiz-color-text-0);--ibiz-control-tabexppanel-active-color:var(--ibiz-color-primary);--ibiz-control-tabexppanel-bar-color:var(--ibiz-color-primary)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header{margin:var(--ibiz-spacing-none)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap{margin:var(--ibiz-spacing-none)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__active-bar{background-color:var(--ibiz-control-tabexppanel-bar-color)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item{font-size:var(--ibiz-font-size-regular);color:var(--ibiz-control-tabexppanel-color)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item:hover{color:var(--ibiz-control-tabexppanel-hover-color)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-active{color:var(--ibiz-control-tabexppanel-active-color)}.ibiz-control-tabexppanel .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-top:last-child{padding-right:var(--ibiz-spacing-none)}.ibiz-control-tabexppanel .el-tabs.el-tabs--bottom,.ibiz-control-tabexppanel .el-tabs.el-tabs--top{padding-left:var(--ibiz-spacing-base)}.ibiz-control-tabexppanel .el-tabs__item{padding:var(--ibiz-spacing-base)}
|
|
@@ -330,6 +330,9 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
if (item.itemType === "SEPERATOR") {
|
|
333
|
+
if (c.state.hideSeparator.includes(itemId)) {
|
|
334
|
+
return null;
|
|
335
|
+
}
|
|
333
336
|
return createVNode("div", {
|
|
334
337
|
"key": itemId,
|
|
335
338
|
"class": [ns.e("item"), ns.e("item-separator")]
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import { ITreeController, ITreeNodeData } from '@ibiz-template/runtime';
|
|
1
|
+
import { IControlProvider, ITreeController, ITreeNodeData, TreeController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IDETree } from '@ibiz/model-core';
|
|
2
3
|
import { ElTree } from 'element-plus';
|
|
3
4
|
import { NodeDropType } from 'element-plus/es/components/tree/src/tree.type';
|
|
4
5
|
import { Ref } from 'vue';
|
|
6
|
+
/**
|
|
7
|
+
* 树props接口
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface IGridProps
|
|
11
|
+
*/
|
|
12
|
+
export interface ITreeProps {
|
|
13
|
+
modelData: IDETree;
|
|
14
|
+
context: IContext;
|
|
15
|
+
params: IParams;
|
|
16
|
+
provider?: IControlProvider;
|
|
17
|
+
mdctrlActiveMode?: number;
|
|
18
|
+
singleSelect?: boolean;
|
|
19
|
+
navigational?: boolean;
|
|
20
|
+
defaultExpandedKeys?: string[];
|
|
21
|
+
checkStrictly?: boolean;
|
|
22
|
+
isSimple?: boolean;
|
|
23
|
+
data?: Array<ITreeNodeData>;
|
|
24
|
+
loadDefault: boolean;
|
|
25
|
+
}
|
|
5
26
|
/**
|
|
6
27
|
* 根据id查找树节点数据对象
|
|
7
28
|
* @author lxm
|
|
@@ -918,3 +939,20 @@ export declare function useElTreeUtil(treeRef: Ref<InstanceType<typeof ElTree> |
|
|
|
918
939
|
* @return {*} {('inner' | 'prev' | 'next')}
|
|
919
940
|
*/
|
|
920
941
|
export declare function formatNodeDropType(dropType: NodeDropType): 'inner' | 'prev' | 'next';
|
|
942
|
+
/**
|
|
943
|
+
* 初始化树数据
|
|
944
|
+
*
|
|
945
|
+
* @export
|
|
946
|
+
* @param {TreeController} c
|
|
947
|
+
* @param {ITreeProps} props
|
|
948
|
+
*/
|
|
949
|
+
export declare function useAppTreeBase(c: TreeController, props: ITreeProps): void;
|
|
950
|
+
/**
|
|
951
|
+
* 根据关系获取当前项的子节点
|
|
952
|
+
*
|
|
953
|
+
* @export
|
|
954
|
+
* @param {TreeController} c
|
|
955
|
+
* @param {IData} modelData
|
|
956
|
+
* @param {IData} curItem
|
|
957
|
+
*/
|
|
958
|
+
export declare function findChildItems(c: TreeController, modelData: IData, curItem: IData): IData[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
|
-
import {
|
|
2
|
+
import { createUUID } from 'qx-util';
|
|
3
|
+
import { debounce, cloneDeep } from 'lodash-es';
|
|
4
|
+
import { watch } from 'vue';
|
|
3
5
|
|
|
4
6
|
"use strict";
|
|
5
7
|
function findNodeData(key, c) {
|
|
@@ -71,5 +73,71 @@ function formatNodeDropType(dropType) {
|
|
|
71
73
|
);
|
|
72
74
|
}
|
|
73
75
|
}
|
|
76
|
+
function useAppTreeBase(c, props) {
|
|
77
|
+
if (props.defaultExpandedKeys) {
|
|
78
|
+
c.state.defaultExpandedKeys = props.defaultExpandedKeys;
|
|
79
|
+
}
|
|
80
|
+
const initSimpleData = () => {
|
|
81
|
+
if (!props.data) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const root = props.data.find((item) => {
|
|
85
|
+
return item.isRoot === true;
|
|
86
|
+
});
|
|
87
|
+
if (root) {
|
|
88
|
+
c.state.rootNodes = props.data;
|
|
89
|
+
c.state.items = props.data;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
c.evt.on("onCreated", async () => {
|
|
93
|
+
if (props.isSimple) {
|
|
94
|
+
initSimpleData();
|
|
95
|
+
c.state.isLoaded = true;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
watch(
|
|
99
|
+
() => props.data,
|
|
100
|
+
() => {
|
|
101
|
+
if (props.isSimple) {
|
|
102
|
+
initSimpleData();
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
deep: true
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
function findChildItems(c, modelData, curItem) {
|
|
111
|
+
const { detreeNodeRSs } = modelData;
|
|
112
|
+
const children = [];
|
|
113
|
+
if (!detreeNodeRSs || detreeNodeRSs.length === 0) {
|
|
114
|
+
return children;
|
|
115
|
+
}
|
|
116
|
+
const rss = detreeNodeRSs.filter((_rss) => {
|
|
117
|
+
var _a;
|
|
118
|
+
const temp = c.state.items.find((_item) => {
|
|
119
|
+
return _item._uuid === curItem.data._uuid;
|
|
120
|
+
});
|
|
121
|
+
if (temp) {
|
|
122
|
+
return _rss.parentDETreeNodeId === ((_a = temp._nodeId) == null ? void 0 : _a.toLowerCase());
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
});
|
|
126
|
+
rss.sort((a, b) => {
|
|
127
|
+
return a.ordervalue - b.ordervalue;
|
|
128
|
+
});
|
|
129
|
+
rss.forEach((_rss) => {
|
|
130
|
+
const child = c.state.items.find((_item) => {
|
|
131
|
+
var _a;
|
|
132
|
+
return ((_a = _item._nodeId) == null ? void 0 : _a.toLowerCase()) === _rss.childDETreeNodeId;
|
|
133
|
+
});
|
|
134
|
+
if (child) {
|
|
135
|
+
const temp = cloneDeep(child);
|
|
136
|
+
temp._id = createUUID();
|
|
137
|
+
children.push(temp);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
return children;
|
|
141
|
+
}
|
|
74
142
|
|
|
75
|
-
export { findNodeData, formatNodeDropType, useElTreeUtil };
|
|
143
|
+
export { findChildItems, findNodeData, formatNodeDropType, useAppTreeBase, useElTreeUtil };
|