@ibiz-template/vue3-components 0.7.41-alpha.17 → 0.7.41-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-q7pMKjYo.js +1 -0
- package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
- package/dist/index-BoV5htv9.js +11 -0
- package/dist/{index-swminiXb.js → index-Bt6TkADL.js} +1 -1
- package/dist/{index-AOFxMmyX.js → index-K6B-Odyq.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-NYROZ-6g.js +1 -0
- package/dist/wang-editor-exnzt_I1.js +1 -0
- package/dist/{xlsx-util-jYyM8alm.js → xlsx-util-fuTLwrKA.js} +1 -1
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +3 -1
- package/es/common/control-navigation/provider/index.mjs +1 -1
- package/es/common/control-navigation/provider/map-navigation.provider.d.ts +8 -2
- package/es/common/control-navigation/provider/map-navigation.provider.mjs +20 -1
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.d.ts +11 -1
- package/es/common/map-chart-user/map-chart-user.mjs +82 -6
- package/es/common/map-chart-user/map-chart-user.util.d.ts +2 -0
- package/es/common/map-chart-user/map-chart-user.util.mjs +54 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +2 -0
- package/es/common/map-chart-user/map-user-manager.mjs +46 -10
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +30 -43
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +6 -2
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +37 -4
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +1 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +30 -45
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +6 -2
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +37 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/util/index.mjs +1 -1
- package/es/control/calendar/components/util/util.d.ts +30 -2
- package/es/control/calendar/components/util/util.mjs +32 -2
- package/es/control/chart/chart.mjs +1 -0
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +5 -0
- package/es/control/drtab/drtab.controller.mjs +19 -0
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +18 -5
- package/es/control/exp-bar/render-util.mjs +1 -12
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +8 -4
- 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 +2 -1
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +4 -2
- package/es/control/gantt/gantt.mjs +130 -5
- package/es/control/gantt/index.d.ts +4 -2
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/virtualized-table/index.d.ts +1 -1
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
- package/es/control/kanban/index.d.ts +1 -1
- package/es/control/kanban/kanban.d.ts +1 -1
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/map/map.mjs +1 -1
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +5 -5
- package/es/control/tree/tree.mjs +5 -13
- package/es/control/tree-grid/index.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.mjs +62 -55
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +3 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
- package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
- package/es/editor/upload/use/use-iview-upload.mjs +50 -25
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +9 -0
- package/es/locale/en/index.mjs +4 -0
- package/es/locale/zh-CN/index.d.ts +9 -0
- package/es/locale/zh-CN/index.mjs +4 -0
- package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
- package/es/panel-component/app-switch/app-switch.controller.mjs +4 -1
- package/es/panel-component/app-switch/app-switch.d.ts +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.controller.d.ts +31 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.controller.mjs +51 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +7 -4
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +20 -5
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +2 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.mjs +2 -2
- package/es/panel-component/auth-userinfo/index.d.ts +4 -3
- package/es/panel-component/global-search/global-search.controller.d.ts +10 -3
- package/es/panel-component/global-search/global-search.controller.mjs +39 -18
- package/es/panel-component/global-search/global-search.d.ts +3 -1
- package/es/panel-component/global-search/global-search.mjs +8 -1
- package/es/panel-component/global-search/index.d.ts +1 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +0 -2
- package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +5 -2
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +6 -0
- package/es/panel-component/panel-index-view-search/index.d.ts +4 -3
- package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.d.ts +31 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.mjs +51 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.d.ts +8 -5
- package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +17 -3
- package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.d.ts +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.mjs +2 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +2 -2
- package/es/panel-component/user-action/user-action.d.ts +1 -1
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
- package/es/panel-component/view-msg-pos/view-msg-pos.d.ts +2 -1
- package/es/util/app-modal/app-modal-component.css +1 -1
- package/es/util/app-modal/app-modal-component.d.ts +6 -1
- package/es/util/app-modal/app-modal-component.mjs +45 -4
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/icon/icon.d.ts +3 -0
- package/es/util/icon/icon.mjs +25 -0
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
- package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
- package/es/view-engine/edit-view.engine.d.ts +11 -0
- package/es/view-engine/edit-view.engine.mjs +12 -0
- package/es/view-engine/login-view.engine.d.ts +11 -1
- package/es/view-engine/login-view.engine.mjs +9 -5
- package/es/view-engine/mpickup-view-engine.d.ts +8 -1
- package/es/view-engine/mpickup-view-engine.mjs +14 -8
- package/es/view-engine/pickup-view.engine.d.ts +8 -1
- package/es/view-engine/pickup-view.engine.mjs +15 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
- package/lib/common/control-navigation/provider/index.cjs +1 -1
- package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
- package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/util/index.cjs +4 -0
- package/lib/control/calendar/components/util/util.cjs +34 -0
- package/lib/control/chart/chart.cjs +1 -0
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +19 -0
- package/lib/control/drtab/flow-drtab.cjs +17 -4
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/exp-bar/render-util.cjs +1 -12
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +7 -3
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +129 -4
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/map/map.cjs +1 -1
- package/lib/control/tree/tree.cjs +5 -13
- package/lib/control/tree-grid/tree-grid.cjs +62 -55
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
- package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
- package/lib/editor/upload/use/use-iview-upload.cjs +50 -25
- package/lib/index.cjs +3 -0
- package/lib/locale/en/index.cjs +4 -0
- package/lib/locale/zh-CN/index.cjs +4 -0
- package/lib/panel-component/app-switch/app-switch.controller.cjs +4 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +20 -5
- package/lib/panel-component/auth-userinfo/auth-userinfo.controller.cjs +53 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.provider.cjs +2 -2
- package/lib/panel-component/global-search/global-search.cjs +8 -1
- package/lib/panel-component/global-search/global-search.controller.cjs +39 -18
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +0 -2
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +6 -0
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +5 -2
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +16 -2
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.controller.cjs +53 -0
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.provider.cjs +2 -2
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.cjs +2 -2
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
- package/lib/util/app-modal/app-modal-component.cjs +43 -2
- package/lib/util/app-modal/app-modal-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/icon/icon.cjs +28 -0
- package/lib/util/index.cjs +3 -0
- package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
- package/lib/view-engine/edit-view.engine.cjs +12 -0
- package/lib/view-engine/login-view.engine.cjs +9 -5
- package/lib/view-engine/mpickup-view-engine.cjs +14 -8
- package/lib/view-engine/pickup-view.engine.cjs +15 -0
- package/package.json +6 -6
- package/dist/chart-8QfxarWf.js +0 -1
- package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
- package/dist/index-t1aZ8OJE.js +0 -11
- package/dist/map-chart-user-xOSZGbF2.js +0 -1
- package/dist/wang-editor-Y8puaTx2.js +0 -1
- package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
- package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
- package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_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.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-nav-breadcrumb{--ibiz-nav-breadcrumb-padding:var(--ibiz-spacing-base-loose);--ibiz-nav-breadcrumb-link-color:var(--ibiz-color-link);--ibiz-nav-breadcrumb-disabled-color:var(--ibiz-color-text-0);padding:var(--ibiz-nav-breadcrumb-padding);--el-text-color-primary:var(--ibiz-nav-breadcrumb-link-color)}.ibiz-nav-breadcrumb--menu{color:var(--ibiz-nav-breadcrumb-disabled-color);--el-text-color-primary:var(--ibiz-nav-breadcrumb-disabled-color)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item{cursor:text}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:var(--ibiz-color-primary)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__inner.is-link{font-weight:400;pointer-events:none}
|
|
1
|
+
.ibiz-nav-breadcrumb{--ibiz-nav-breadcrumb-padding:var(--ibiz-spacing-base-loose);--ibiz-nav-breadcrumb-link-color:var(--ibiz-color-link);--ibiz-nav-breadcrumb-disabled-color:var(--ibiz-color-text-0);padding:var(--ibiz-nav-breadcrumb-padding);--el-text-color-primary:var(--ibiz-nav-breadcrumb-link-color)}.ibiz-nav-breadcrumb--menu{color:var(--ibiz-nav-breadcrumb-disabled-color);--el-text-color-primary:var(--ibiz-nav-breadcrumb-disabled-color)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item{cursor:text}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:var(--ibiz-color-primary)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__inner.is-link{font-weight:400;pointer-events:none}.ibiz-nav-breadcrumb .el-breadcrumb__item.is-link .el-breadcrumb__inner{font-weight:700;color:var(--el-text-color-primary);text-decoration:none;cursor:pointer;transition:var(--el-transition-color)}
|
|
@@ -72,7 +72,7 @@ class NavBreadcrumbService {
|
|
|
72
72
|
* @param {BreadcrumbMsg} item
|
|
73
73
|
* @memberof NavBreadcrumbService
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
update(item) {
|
|
76
76
|
if (!this.chache.length && this.navMode === "store") {
|
|
77
77
|
const result = localStorage.getItem("breadcrumb");
|
|
78
78
|
if (result) {
|
|
@@ -82,9 +82,7 @@ class NavBreadcrumbService {
|
|
|
82
82
|
const index = this.chache.findIndex(
|
|
83
83
|
(x) => x.fullPath && x.fullPath === item.fullPath || x.viewName.toLowerCase() === item.viewName.toLowerCase()
|
|
84
84
|
);
|
|
85
|
-
if (index
|
|
86
|
-
this.add(item);
|
|
87
|
-
} else {
|
|
85
|
+
if (index !== -1) {
|
|
88
86
|
Object.assign(this.chache[index], ramda.reject(ramda.isNil, item));
|
|
89
87
|
this.chache = this.chache.filter((x) => !x.isEmbed && !x.isModal);
|
|
90
88
|
if (this.navMode === "store") {
|
|
@@ -100,7 +98,8 @@ class NavBreadcrumbService {
|
|
|
100
98
|
*/
|
|
101
99
|
getItem(data) {
|
|
102
100
|
const { viewName = "", fullPath = "" } = data;
|
|
103
|
-
|
|
101
|
+
const indexViewName = navBreadcrumb_util.getAppIndexViewName(this.context);
|
|
102
|
+
if (viewName === indexViewName) {
|
|
104
103
|
return navBreadcrumb_util.getIndexBreadcrumb(this.context);
|
|
105
104
|
}
|
|
106
105
|
const item = this.chache.find(
|
|
@@ -19,6 +19,12 @@ class NavBreadcrumbState extends runtime.PanelItemState {
|
|
|
19
19
|
* @memberof NavBreadcrumbState
|
|
20
20
|
*/
|
|
21
21
|
__publicField(this, "breadcrumbItems", []);
|
|
22
|
+
/**
|
|
23
|
+
* @description 菜单标识
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NavBreadcrumbState
|
|
26
|
+
*/
|
|
27
|
+
__publicField(this, "menuTag", "");
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
|
|
@@ -4,12 +4,23 @@ var vue3Util = require('@ibiz-template/vue3-util');
|
|
|
4
4
|
var runtime = require('@ibiz-template/runtime');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
|
+
function getAppIndexViewName(context) {
|
|
8
|
+
const targetAppModel = ibiz.hub.getAppSourceModel(context.srfappid);
|
|
9
|
+
if (targetAppModel.getDefaultPSAppIndexView) {
|
|
10
|
+
const view = targetAppModel.getDefaultPSAppIndexView;
|
|
11
|
+
const name = view.path.split("/").pop().replace(".json", "");
|
|
12
|
+
return name;
|
|
13
|
+
}
|
|
14
|
+
return ibiz.hub.defaultAppIndexViewName;
|
|
15
|
+
}
|
|
7
16
|
function getIndexBreadcrumb(context) {
|
|
8
17
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
9
18
|
const caption = app.model.caption;
|
|
19
|
+
const indexViewName = getAppIndexViewName(context);
|
|
10
20
|
return {
|
|
11
|
-
viewName:
|
|
21
|
+
viewName: indexViewName,
|
|
12
22
|
fullPath: "/",
|
|
23
|
+
type: "default",
|
|
13
24
|
caption
|
|
14
25
|
};
|
|
15
26
|
}
|
|
@@ -50,7 +61,7 @@ function getCurViewName(router) {
|
|
|
50
61
|
const routePath = vue3Util.route2routePath(currentRoute.value);
|
|
51
62
|
return ((_a = routePath.pathNodes.pop()) == null ? void 0 : _a.viewName) || "";
|
|
52
63
|
}
|
|
53
|
-
function getViewInfoByViewStack(viewName) {
|
|
64
|
+
function getViewInfoByViewStack(viewName, context) {
|
|
54
65
|
if (viewName === runtime.RouteConst.ROUTE_MODAL_TAG) {
|
|
55
66
|
return {
|
|
56
67
|
viewName,
|
|
@@ -58,22 +69,58 @@ function getViewInfoByViewStack(viewName) {
|
|
|
58
69
|
isModal: true
|
|
59
70
|
};
|
|
60
71
|
}
|
|
61
|
-
const view = ibiz.
|
|
72
|
+
const view = ibiz.appUtil.viewCacheCenter.get(viewName);
|
|
73
|
+
const indexViewName = getAppIndexViewName(context);
|
|
62
74
|
if (view) {
|
|
63
75
|
let isEmbed = false;
|
|
64
|
-
if (view.parentView && view.parentView.model.codeName !==
|
|
76
|
+
if (view.parentView && view.parentView.model.codeName !== indexViewName) {
|
|
65
77
|
isEmbed = true;
|
|
66
78
|
}
|
|
67
|
-
|
|
79
|
+
const data = view.state.srfactiveviewdata;
|
|
80
|
+
const result = {
|
|
68
81
|
viewName: view.model.codeName,
|
|
69
82
|
caption: view.model.caption,
|
|
70
83
|
isEmbed
|
|
71
84
|
};
|
|
85
|
+
if (data && data.srfkey) {
|
|
86
|
+
Object.assign(result, { dataInfo: data.srfmajortext || "" });
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function getMenuTag(pathNodes) {
|
|
92
|
+
var _a;
|
|
93
|
+
if (pathNodes.length > 1) {
|
|
94
|
+
return ((_a = pathNodes[1].params) == null ? void 0 : _a.srfmenuitem) || "";
|
|
95
|
+
}
|
|
96
|
+
return "";
|
|
97
|
+
}
|
|
98
|
+
async function getMenuItemByTag(tag, appMenu, context) {
|
|
99
|
+
var _a;
|
|
100
|
+
if (!tag) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const menuItem = appMenu.allAppMenuItems.find((x) => x.id === tag);
|
|
104
|
+
if (menuItem) {
|
|
105
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
106
|
+
const appFunc = app.getAppFunc(menuItem.appFuncId);
|
|
107
|
+
const viewName = ((_a = appFunc.appViewId) == null ? void 0 : _a.split(".").pop()) || "";
|
|
108
|
+
const viewConfig = await ibiz.hub.config.view.get(viewName);
|
|
109
|
+
return {
|
|
110
|
+
tag,
|
|
111
|
+
viewName,
|
|
112
|
+
viewConfig,
|
|
113
|
+
appFunc,
|
|
114
|
+
menuItem
|
|
115
|
+
};
|
|
72
116
|
}
|
|
73
117
|
}
|
|
74
118
|
|
|
75
119
|
exports.getAppFuncByViewName = getAppFuncByViewName;
|
|
120
|
+
exports.getAppIndexViewName = getAppIndexViewName;
|
|
76
121
|
exports.getCurViewName = getCurViewName;
|
|
77
122
|
exports.getIndexBreadcrumb = getIndexBreadcrumb;
|
|
123
|
+
exports.getMenuItemByTag = getMenuItemByTag;
|
|
78
124
|
exports.getMenuItemsByAppFunc = getMenuItemsByAppFunc;
|
|
125
|
+
exports.getMenuTag = getMenuTag;
|
|
79
126
|
exports.getViewInfoByViewStack = getViewInfoByViewStack;
|
|
@@ -62,6 +62,12 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
62
|
return false;
|
|
63
63
|
});
|
|
64
64
|
const isCollapse = vue.computed(() => {
|
|
65
|
+
const {
|
|
66
|
+
strictly
|
|
67
|
+
} = c.rawItemParams;
|
|
68
|
+
if (strictly && strictly === "true") {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
65
71
|
return c.panel.view.state.isCollapse;
|
|
66
72
|
});
|
|
67
73
|
const showIcon = vue.computed(() => {
|
|
@@ -74,8 +74,11 @@ class PanelAppTitleController extends runtime.PanelItemController {
|
|
|
74
74
|
if (this.state.icon.endsWith(".svg") || this.state.icon2.endsWith(".svg")) {
|
|
75
75
|
this.state.isSvg = true;
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
const defaultApp = ibiz.hub.getApp();
|
|
78
|
+
if (defaultApp.model.appId === indexViewModel.appId) {
|
|
79
|
+
if (ibiz.env.AppTitle)
|
|
80
|
+
this.state.caption = ibiz.env.AppTitle;
|
|
81
|
+
}
|
|
79
82
|
}
|
|
80
83
|
/**
|
|
81
84
|
* 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
6
|
var lodashEs = require('lodash-es');
|
|
7
|
+
var panelIndexViewSearch_controller = require('./panel-index-view-search.controller.cjs');
|
|
7
8
|
require('./panel-index-view-search.css');
|
|
8
9
|
|
|
9
10
|
"use strict";
|
|
@@ -21,7 +22,7 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
22
|
* @description 首页搜索控件控制器
|
|
22
23
|
*/
|
|
23
24
|
controller: {
|
|
24
|
-
type:
|
|
25
|
+
type: panelIndexViewSearch_controller.PanelIndexViewSearchController,
|
|
25
26
|
required: true
|
|
26
27
|
}
|
|
27
28
|
},
|
|
@@ -43,8 +44,20 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
44
|
return "LEFT";
|
|
44
45
|
});
|
|
45
46
|
const isCollapse = vue.computed(() => {
|
|
47
|
+
const {
|
|
48
|
+
strictly
|
|
49
|
+
} = c.rawItemParams;
|
|
50
|
+
if (strictly && strictly === "true") {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
46
53
|
return c.panel.view.state.isCollapse;
|
|
47
54
|
});
|
|
55
|
+
const curPlaceholder = vue.computed(() => {
|
|
56
|
+
const {
|
|
57
|
+
placeholder
|
|
58
|
+
} = c.rawItemParams;
|
|
59
|
+
return placeholder || ibiz.i18n.t("component.indexSearch.placeholder");
|
|
60
|
+
});
|
|
48
61
|
const classArr = vue.computed(() => {
|
|
49
62
|
const {
|
|
50
63
|
id
|
|
@@ -80,6 +93,7 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
93
|
ns,
|
|
81
94
|
classArr,
|
|
82
95
|
isCollapse,
|
|
96
|
+
curPlaceholder,
|
|
83
97
|
onInput,
|
|
84
98
|
onSearch,
|
|
85
99
|
c,
|
|
@@ -97,7 +111,7 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
111
|
}, [this.menuAlign === "LEFT" && !this.isCollapse && vue.createVNode(vue.resolveComponent("el-input"), {
|
|
98
112
|
"model-value": this.query,
|
|
99
113
|
"class": this.ns.b("search"),
|
|
100
|
-
"placeholder":
|
|
114
|
+
"placeholder": this.curPlaceholder,
|
|
101
115
|
"onInput": this.onInput,
|
|
102
116
|
"onKeyup": this.onEnter
|
|
103
117
|
}, {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class PanelIndexViewSearchController extends runtime.PanelItemController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* @description 自定义补充参数
|
|
17
|
+
* @exposedoc
|
|
18
|
+
* @type {IData}
|
|
19
|
+
* @memberof PanelIndexViewSearchController
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "rawItemParams", {});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 初始化
|
|
25
|
+
*
|
|
26
|
+
* @return {*} {Promise<void>}
|
|
27
|
+
* @memberof PanelIndexViewSearchController
|
|
28
|
+
*/
|
|
29
|
+
async onInit() {
|
|
30
|
+
await super.onInit();
|
|
31
|
+
this.handleRawItemParams();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @description 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
35
|
+
* @protected
|
|
36
|
+
* @memberof PanelIndexViewSearchController
|
|
37
|
+
*/
|
|
38
|
+
handleRawItemParams() {
|
|
39
|
+
var _a;
|
|
40
|
+
const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
|
|
41
|
+
if (Array.isArray(rawItemParams)) {
|
|
42
|
+
rawItemParams.forEach((item) => {
|
|
43
|
+
const key = item.key;
|
|
44
|
+
const value = item.value;
|
|
45
|
+
if (key && value) {
|
|
46
|
+
this.rawItemParams[key.toLowerCase()] = value;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
exports.PanelIndexViewSearchController = PanelIndexViewSearchController;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var panelIndexViewSearch_controller = require('./panel-index-view-search.controller.cjs');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -14,7 +14,7 @@ class PanelIndexViewSearchProvider {
|
|
|
14
14
|
__publicField(this, "component", "IBizPanelIndexViewSearch");
|
|
15
15
|
}
|
|
16
16
|
async createController(panelItem, panel, parent) {
|
|
17
|
-
const c = new
|
|
17
|
+
const c = new panelIndexViewSearch_controller.PanelIndexViewSearchController(panelItem, panel, parent);
|
|
18
18
|
await c.init();
|
|
19
19
|
return c;
|
|
20
20
|
}
|
|
@@ -75,8 +75,8 @@ const PanelTabPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
75
|
"label": c.model.caption,
|
|
76
76
|
"name": c.model.id,
|
|
77
77
|
"lazy": true
|
|
78
|
-
},
|
|
79
|
-
default: () => [slot]
|
|
78
|
+
}, {
|
|
79
|
+
default: () => [this.state.activeTab === c.model.id && slot]
|
|
80
80
|
});
|
|
81
81
|
})) ? _slot : {
|
|
82
82
|
default: () => [_slot]
|
package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs
CHANGED
|
@@ -31,6 +31,7 @@ const AsyncDataExport = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
31
|
beginTime: "",
|
|
32
32
|
endTime: "",
|
|
33
33
|
fileUrl: "",
|
|
34
|
+
fileName: "",
|
|
34
35
|
isFinish: false
|
|
35
36
|
});
|
|
36
37
|
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
|
|
@@ -41,6 +42,7 @@ const AsyncDataExport = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
42
|
if (props.asyncAction.asyncresultdownloadurl) {
|
|
42
43
|
const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
|
|
43
44
|
info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
|
|
45
|
+
info.fileName = asyncResultDownloadObj.filename;
|
|
44
46
|
}
|
|
45
47
|
if (!finishedStates.includes(props.asyncAction.actionstate)) {
|
|
46
48
|
info.isFinish = false;
|
|
@@ -48,7 +50,7 @@ const AsyncDataExport = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
50
|
info.isFinish = true;
|
|
49
51
|
}
|
|
50
52
|
const onDownLoad = () => {
|
|
51
|
-
ibiz.util.file.fileDownload(info.fileUrl);
|
|
53
|
+
ibiz.util.file.fileDownload(info.fileUrl, info.fileName);
|
|
52
54
|
};
|
|
53
55
|
return {
|
|
54
56
|
ns,
|
|
@@ -6,8 +6,12 @@ var lodashEs = require('lodash-es');
|
|
|
6
6
|
var runtime = require('@ibiz-template/runtime');
|
|
7
7
|
require('./app-modal-component.css');
|
|
8
8
|
var core = require('@ibiz-template/core');
|
|
9
|
+
var icon = require('../icon/icon.cjs');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
12
|
+
function _isSlot(s) {
|
|
13
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
14
|
+
}
|
|
11
15
|
const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
12
16
|
props: {
|
|
13
17
|
opts: {
|
|
@@ -22,6 +26,7 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
26
|
zIndex
|
|
23
27
|
} = vue3Util.useUIStore();
|
|
24
28
|
const modalZIndex = zIndex.increment();
|
|
29
|
+
let modalView;
|
|
25
30
|
const customStyle = vue.reactive({});
|
|
26
31
|
const {
|
|
27
32
|
width,
|
|
@@ -57,6 +62,13 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
62
|
ctx.emit("dismiss", data);
|
|
58
63
|
}
|
|
59
64
|
});
|
|
65
|
+
const viewShellHooks = new runtime.ViewShellHooks();
|
|
66
|
+
viewShellHooks.hooks.viewCreated.tapPromise(async (_event) => {
|
|
67
|
+
modalView = _event.view;
|
|
68
|
+
});
|
|
69
|
+
const handleViewCreated = (event) => {
|
|
70
|
+
modalView = event.view;
|
|
71
|
+
};
|
|
60
72
|
const onBeforeClose = async (done) => {
|
|
61
73
|
const isClose = await modal.dismiss();
|
|
62
74
|
if (isClose) {
|
|
@@ -69,6 +81,12 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
69
81
|
const present = () => {
|
|
70
82
|
isShow.value = true;
|
|
71
83
|
};
|
|
84
|
+
const prevRecord = () => {
|
|
85
|
+
modalView == null ? void 0 : modalView.call(runtime.SysUIActionTag.PREV_RECORD);
|
|
86
|
+
};
|
|
87
|
+
const nextRecord = () => {
|
|
88
|
+
modalView == null ? void 0 : modalView.call(runtime.SysUIActionTag.NEXT_RECORD);
|
|
89
|
+
};
|
|
72
90
|
return {
|
|
73
91
|
ns,
|
|
74
92
|
isShow,
|
|
@@ -76,13 +94,18 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
94
|
modalZIndex,
|
|
77
95
|
customStyle,
|
|
78
96
|
modal,
|
|
97
|
+
viewShellHooks,
|
|
79
98
|
present,
|
|
80
99
|
dismiss,
|
|
81
|
-
onBeforeClose
|
|
100
|
+
onBeforeClose,
|
|
101
|
+
prevRecord,
|
|
102
|
+
nextRecord,
|
|
103
|
+
handleViewCreated
|
|
82
104
|
};
|
|
83
105
|
},
|
|
84
106
|
render() {
|
|
85
107
|
var _a, _b;
|
|
108
|
+
let _slot, _slot2;
|
|
86
109
|
return vue.h(vue.resolveComponent("el-dialog"), {
|
|
87
110
|
modelValue: this.isShow,
|
|
88
111
|
alignCenter: true,
|
|
@@ -91,7 +114,25 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
91
114
|
zIndex: this.modalZIndex,
|
|
92
115
|
beforeClose: this.onBeforeClose,
|
|
93
116
|
...this.options
|
|
94
|
-
},
|
|
117
|
+
}, [
|
|
118
|
+
// eslint-disable-next-line vue/no-multiple-slot-args
|
|
119
|
+
(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, this.modal, this.viewShellHooks),
|
|
120
|
+
this.options.openIndicator && vue.createVNode("div", {
|
|
121
|
+
"class": this.ns.e("record")
|
|
122
|
+
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
123
|
+
"class": this.ns.em("record", "prev"),
|
|
124
|
+
"title": ibiz.i18n.t("util.appModal.prev"),
|
|
125
|
+
"onClick": this.prevRecord
|
|
126
|
+
}, _isSlot(_slot = icon.ArrowLeftBold()) ? _slot : {
|
|
127
|
+
default: () => [_slot]
|
|
128
|
+
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
129
|
+
"class": this.ns.em("record", "next"),
|
|
130
|
+
"title": ibiz.i18n.t("util.appModal.next"),
|
|
131
|
+
"onClick": this.nextRecord
|
|
132
|
+
}, _isSlot(_slot2 = icon.ArrowRightBold()) ? _slot2 : {
|
|
133
|
+
default: () => [_slot2]
|
|
134
|
+
})])
|
|
135
|
+
]);
|
|
95
136
|
}
|
|
96
137
|
});
|
|
97
138
|
function createModal(render, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-modal{--ibiz-modal-z-index:var(--ibiz-z-index-modal);--ibiz-modal-background-color:var(--ibiz-color-bg-1)}.ibiz-modal.el-dialog{overflow:visible}.ibiz-modal .el-dialog__header{position:relative;padding:0}.ibiz-modal .el-dialog__body{height:100%;padding:0;background-color:var(--ibiz-modal-background-color)}.ibiz-modal .el-dialog__headerbtn{top:-40px;right:-60px;border:var(--ibiz-spacing-super-tight) solid var(--ibiz-color-primary-text);border-radius:var(--ibiz-border-radius-circle);display:flex;align-items:center;justify-content:center}.ibiz-modal .el-dialog__headerbtn .el-dialog__close{font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-primary-text)}
|
|
1
|
+
@charset "UTF-8";.ibiz-modal{--ibiz-modal-z-index:var(--ibiz-z-index-modal);--ibiz-modal-background-color:var(--ibiz-color-bg-1)}.ibiz-modal__record--prev{position:absolute;top:50%;left:-6px;transform:translate(-100%,-50%)}.ibiz-modal__record--next{position:absolute;top:50%;right:-6px;font-size:var(--ibiz-font-size-regular);transform:translate(100%,-50%)}.ibiz-modal__record .el-button{height:auto;padding:var(--ibiz-spacing-loose) var(--ibiz-spacing-tight);margin:0;--el-button-bg-color:var(--ibiz-color-bg-0);--el-button-text-color:var(--ibiz-color-text-2);--el-button-hover-bg-color:var(--ibiz-color-bg-1);--el-button-hover-text-color:var(--ibiz-color-text-3);--el-button-active-bg-color:var(--ibiz-color-bg-0);--el-button-active-text-color:var(--ibiz-color-text-2)}.ibiz-modal.el-dialog{overflow:visible}.ibiz-modal .el-dialog__header{position:relative;padding:0}.ibiz-modal .el-dialog__body{height:100%;padding:0;background-color:var(--ibiz-modal-background-color)}.ibiz-modal .el-dialog__headerbtn{top:-40px;right:-60px;border:var(--ibiz-spacing-super-tight) solid var(--ibiz-color-primary-text);border-radius:var(--ibiz-border-radius-circle);display:flex;align-items:center;justify-content:center}.ibiz-modal .el-dialog__headerbtn .el-dialog__close{font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-primary-text)}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const ArrowLeftBold = () => vue.createVNode("svg", {
|
|
7
|
+
"data-v-9a20e128": "",
|
|
8
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
9
|
+
"viewBox": "0 0 1024 1024",
|
|
10
|
+
"width": "1em",
|
|
11
|
+
"height": "1em"
|
|
12
|
+
}, [vue.createVNode("path", {
|
|
13
|
+
"fill": "currentColor",
|
|
14
|
+
"d": "M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"
|
|
15
|
+
}, null)]);
|
|
16
|
+
const ArrowRightBold = () => vue.createVNode("svg", {
|
|
17
|
+
"data-v-9a20e128": "",
|
|
18
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
19
|
+
"viewBox": "0 0 1024 1024",
|
|
20
|
+
"width": "1em",
|
|
21
|
+
"height": "1em"
|
|
22
|
+
}, [vue.createVNode("path", {
|
|
23
|
+
"fill": "currentColor",
|
|
24
|
+
"d": "M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"
|
|
25
|
+
}, null)]);
|
|
26
|
+
|
|
27
|
+
exports.ArrowLeftBold = ArrowLeftBold;
|
|
28
|
+
exports.ArrowRightBold = ArrowRightBold;
|
package/lib/util/index.cjs
CHANGED
|
@@ -16,6 +16,7 @@ var wangEditorUtil = require('./wang-editor-util/wang-editor-util.cjs');
|
|
|
16
16
|
var keydownUtil = require('./keydown-util/keydown-util.cjs');
|
|
17
17
|
var aiUtil = require('./ai-util/ai-util.cjs');
|
|
18
18
|
var buttonUtil = require('./button-util/button-util.cjs');
|
|
19
|
+
var icon = require('./icon/icon.cjs');
|
|
19
20
|
|
|
20
21
|
"use strict";
|
|
21
22
|
|
|
@@ -35,3 +36,5 @@ exports.parseHtml = wangEditorUtil.parseHtml;
|
|
|
35
36
|
exports.useFocusByEnter = keydownUtil.useFocusByEnter;
|
|
36
37
|
exports.calcAiToolbarItemsByAc = aiUtil.calcAiToolbarItemsByAc;
|
|
37
38
|
exports.convertBtnType = buttonUtil.convertBtnType;
|
|
39
|
+
exports.ArrowLeftBold = icon.ArrowLeftBold;
|
|
40
|
+
exports.ArrowRightBold = icon.ArrowRightBold;
|
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var expView_engine = require('./exp-view.engine.cjs');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
-
class CalendarExpViewEngine extends
|
|
6
|
+
class CalendarExpViewEngine extends expView_engine.ExpViewEngine {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* @description 导航栏部件名称
|
|
10
9
|
* @readonly
|
|
10
|
+
* @type {string}
|
|
11
11
|
* @memberof CalendarExpViewEngine
|
|
12
12
|
*/
|
|
13
|
-
get
|
|
14
|
-
return
|
|
15
|
-
"calendarexpbar"
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
async onCreated() {
|
|
19
|
-
await super.onCreated();
|
|
20
|
-
const { childNames } = this.view;
|
|
21
|
-
childNames.push("calendarexpbar");
|
|
22
|
-
if (!this.view.slotProps.calendarexpbar) {
|
|
23
|
-
this.view.slotProps.calendarexpbar = {};
|
|
24
|
-
}
|
|
25
|
-
this.view.slotProps.calendarexpbar.srfnav = this.view.state.srfnav;
|
|
26
|
-
}
|
|
27
|
-
async onMounted() {
|
|
28
|
-
await super.onMounted();
|
|
29
|
-
const { model } = this.view;
|
|
30
|
-
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
31
|
-
this.calendarExpBar.load();
|
|
32
|
-
}
|
|
13
|
+
get expBarName() {
|
|
14
|
+
return "calendarexpbar";
|
|
33
15
|
}
|
|
34
16
|
}
|
|
35
17
|
|
|
@@ -263,6 +263,18 @@ class EditViewEngine extends runtime.DEMainViewEngine {
|
|
|
263
263
|
this.view.context[runtime.calcDeCodeNameById(this.view.model.appDataEntityId)] = void 0;
|
|
264
264
|
await this.form.load();
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* @description 取消变更
|
|
268
|
+
* @param {({
|
|
269
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
270
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
271
|
+
* @returns {*} {Promise<void>}
|
|
272
|
+
* @memberof EditViewEngine
|
|
273
|
+
*/
|
|
274
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
275
|
+
await super.cancelChanges(_args);
|
|
276
|
+
await this.form.cancelChanges(_args.targetState);
|
|
277
|
+
}
|
|
266
278
|
/**
|
|
267
279
|
* 工作流启动
|
|
268
280
|
*
|
|
@@ -68,10 +68,6 @@ class LoginViewEngine extends runtime.ViewEngineBase {
|
|
|
68
68
|
await this.login(args);
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
|
-
if (key === runtime.SysUIActionTag.CANCEL_CHANGES) {
|
|
72
|
-
await this.cancelChanges();
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
71
|
return super.call(key, args);
|
|
76
72
|
}
|
|
77
73
|
async login(args) {
|
|
@@ -121,7 +117,15 @@ class LoginViewEngine extends runtime.ViewEngineBase {
|
|
|
121
117
|
}
|
|
122
118
|
}
|
|
123
119
|
}
|
|
124
|
-
|
|
120
|
+
/**
|
|
121
|
+
* @description 取消变更
|
|
122
|
+
* @param {({
|
|
123
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
124
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
125
|
+
* @returns {*} {Promise<void>}
|
|
126
|
+
* @memberof LoginViewEngine
|
|
127
|
+
*/
|
|
128
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
125
129
|
if (this.view.layoutPanel) {
|
|
126
130
|
Object.keys(this.view.layoutPanel.panelItems).forEach((key) => {
|
|
127
131
|
const controller = this.view.layoutPanel.panelItems[key];
|
|
@@ -35,10 +35,6 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
35
35
|
}
|
|
36
36
|
const { childNames } = this.view;
|
|
37
37
|
childNames.push("simplelist");
|
|
38
|
-
if (this.view.params.selecteddata) {
|
|
39
|
-
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
40
|
-
delete this.view.params.selecteddata;
|
|
41
|
-
}
|
|
42
38
|
if (!this.view.slotProps.simplelist) {
|
|
43
39
|
this.view.slotProps.simplelist = {};
|
|
44
40
|
}
|
|
@@ -63,7 +59,7 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
63
59
|
this.simpleList.evt.on("onActive", (event) => {
|
|
64
60
|
this.simpleListActive(event.data);
|
|
65
61
|
});
|
|
66
|
-
this.
|
|
62
|
+
this.setSelectedData(this.selectData);
|
|
67
63
|
}
|
|
68
64
|
async call(key, args) {
|
|
69
65
|
if (key === runtime.SysUIActionTag.CANCEL) {
|
|
@@ -119,7 +115,7 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
119
115
|
items.splice(index, 1);
|
|
120
116
|
}
|
|
121
117
|
});
|
|
122
|
-
this.
|
|
118
|
+
this.setSelectedData(items);
|
|
123
119
|
}
|
|
124
120
|
/**
|
|
125
121
|
* 添加选中
|
|
@@ -144,7 +140,7 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
144
140
|
const allData = this.simpleList.getAllData();
|
|
145
141
|
const items = [...allData, ...data];
|
|
146
142
|
const uniqueItems = this.handleUniqueItems(items);
|
|
147
|
-
this.
|
|
143
|
+
this.setSelectedData(uniqueItems);
|
|
148
144
|
}
|
|
149
145
|
/**
|
|
150
146
|
* 去重数组
|
|
@@ -180,7 +176,7 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
180
176
|
* @memberof MPickupViewEngine
|
|
181
177
|
*/
|
|
182
178
|
removeAll() {
|
|
183
|
-
this.
|
|
179
|
+
this.setSelectedData([]);
|
|
184
180
|
}
|
|
185
181
|
/**
|
|
186
182
|
* 删除选中
|
|
@@ -200,6 +196,16 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
200
196
|
items.splice(index, 1);
|
|
201
197
|
}
|
|
202
198
|
});
|
|
199
|
+
this.setSelectedData(items);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @description 设置选中数据
|
|
203
|
+
* @protected
|
|
204
|
+
* @param {IData[]} items
|
|
205
|
+
* @memberof MPickupViewEngine
|
|
206
|
+
*/
|
|
207
|
+
setSelectedData(items) {
|
|
208
|
+
super.setSelectedData(items);
|
|
203
209
|
this.simpleList.setData(items);
|
|
204
210
|
}
|
|
205
211
|
/**
|