@ibiz-template/vue3-components 0.7.41-alpha.16 → 0.7.41-alpha.18
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-U4v1OOOD.js → index-AOFxMmyX.js} +1 -1
- package/dist/index-dXwgWAM8.js +11 -0
- package/dist/{index-lFGFvnYE.js → index-swminiXb.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-4OlaBV3P.js +1 -0
- package/dist/{xlsx-util-FNiwKrqm.js → xlsx-util-Rg-AbK_G.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/custom-calendar/custom-calendar.mjs +25 -8
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +8 -0
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +20 -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/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/data-view.mjs +95 -29
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +29 -0
- package/es/control/drtab/drtab.controller.mjs +53 -0
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +2 -0
- package/es/control/drtab/drtab.mjs +5 -2
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.d.ts +17 -2
- package/es/control/drtab/flow-drtab.mjs +194 -11
- package/es/control/drtab/index.d.ts +2 -0
- 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.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +59 -4
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +11 -11
- 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 +131 -5
- package/es/control/gantt/index.d.ts +4 -2
- package/es/control/grid/grid/grid-control.util.mjs +36 -14
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/grid.mjs +8 -3
- 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 +5 -2
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.d.ts +5 -2
- package/es/control/kanban/kanban.mjs +51 -15
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.d.ts +2 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +52 -6
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +2 -2
- package/es/control/list/list.mjs +84 -12
- package/es/control/map/map.mjs +1 -1
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +37 -30
- 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-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +47 -8
- 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.mjs +36 -5
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/upload-editor.controller.d.ts +25 -0
- package/es/editor/upload/upload-editor.controller.mjs +43 -1
- package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
- package/es/editor/upload/use/use-iview-upload.mjs +59 -27
- package/es/locale/en/index.d.ts +14 -5
- package/es/locale/en/index.mjs +5 -2
- package/es/locale/zh-CN/index.d.ts +14 -5
- package/es/locale/zh-CN/index.mjs +5 -2
- package/es/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs +3377 -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/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-button/panel-button.mjs +1 -0
- 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/util/fullscreen/fullscreen-util.mjs +1 -1
- 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/calendar-view.engine.d.ts +11 -1
- package/es/view-engine/calendar-view.engine.mjs +10 -0
- package/es/view-engine/chart-exp-view.engine.d.ts +6 -6
- package/es/view-engine/chart-exp-view.engine.mjs +6 -15
- 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/gantt-view.engine.d.ts +3 -3
- package/es/view-engine/gantt-view.engine.mjs +3 -46
- package/es/view-engine/login-view.engine.d.ts +11 -1
- package/es/view-engine/login-view.engine.mjs +16 -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/es/view-engine/tab-exp-view.engine.mjs +1 -1
- package/es/view-engine/tab-search-view.engine.mjs +4 -2
- package/es/view-engine/tree-view.engine.d.ts +12 -2
- package/es/view-engine/tree-view.engine.mjs +39 -11
- 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.cjs +23 -6
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +20 -0
- 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/data-view/data-view.cjs +95 -29
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +5 -2
- package/lib/control/drtab/drtab.controller.cjs +53 -0
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +193 -10
- 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 +58 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +11 -11
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- 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 +130 -4
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +36 -14
- package/lib/control/grid/grid/grid.cjs +8 -3
- package/lib/control/grid/grid/grid.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/kanban/kanban.cjs +50 -14
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +50 -4
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/lib/control/list/list.cjs +84 -12
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +36 -29
- package/lib/control/medit-view-panel/medit-view-panel.css +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-mpicker/ibiz-mpicker.cjs +47 -8
- 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/upload-editor.controller.cjs +43 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +59 -27
- package/lib/locale/en/index.cjs +5 -2
- package/lib/locale/zh-CN/index.cjs +5 -2
- package/lib/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +3384 -0
- 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-button/panel-button.cjs +1 -0
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
- package/lib/view-engine/calendar-view.engine.cjs +10 -0
- package/lib/view-engine/chart-exp-view.engine.cjs +6 -15
- package/lib/view-engine/edit-view.engine.cjs +12 -0
- package/lib/view-engine/gantt-view.engine.cjs +2 -45
- package/lib/view-engine/login-view.engine.cjs +16 -5
- package/lib/view-engine/mpickup-view-engine.cjs +14 -8
- package/lib/view-engine/pickup-view.engine.cjs +15 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +1 -1
- package/lib/view-engine/tab-search-view.engine.cjs +4 -2
- package/lib/view-engine/tree-view.engine.cjs +39 -11
- package/package.json +10 -8
- package/dist/chart-8QfxarWf.js +0 -1
- package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
- package/dist/index-m8q8r8br.js +0 -4
- package/dist/map-chart-user-xOSZGbF2.js +0 -1
- package/dist/wang-editor-_06OYPpu.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.14_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.14_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,7 +1,17 @@
|
|
|
1
|
-
import { ViewController, ICalendarViewEvent, ICalendarViewState, MDViewEngine, EventBase } from '@ibiz-template/runtime';
|
|
1
|
+
import { ViewController, ICalendarViewEvent, ICalendarViewState, MDViewEngine, EventBase, IUIActionResult } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDECalendarView } from '@ibiz/model-core';
|
|
3
3
|
export declare class CalendarViewEngine extends MDViewEngine {
|
|
4
4
|
protected view: ViewController<IAppDECalendarView, ICalendarViewState, ICalendarViewEvent>;
|
|
5
5
|
protected onXDataActive(event: EventBase): Promise<void>;
|
|
6
6
|
onCreated(): Promise<void>;
|
|
7
|
+
protected openData(args: {
|
|
8
|
+
data: IData[];
|
|
9
|
+
event?: MouseEvent;
|
|
10
|
+
context?: IContext;
|
|
11
|
+
params?: IParams;
|
|
12
|
+
}): Promise<IUIActionResult>;
|
|
13
|
+
protected newData(args: {
|
|
14
|
+
data: IData[];
|
|
15
|
+
event?: MouseEvent;
|
|
16
|
+
}): Promise<IUIActionResult>;
|
|
7
17
|
}
|
|
@@ -13,6 +13,16 @@ class CalendarViewEngine extends MDViewEngine {
|
|
|
13
13
|
}
|
|
14
14
|
this.view.slotProps.calendar.mdctrlActiveMode = model.mdctrlActiveMode;
|
|
15
15
|
}
|
|
16
|
+
async openData(args) {
|
|
17
|
+
const { data, event } = args;
|
|
18
|
+
const result = await this.xdataControl.openData(data[0], event);
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
async newData(args) {
|
|
22
|
+
const { data, event } = args;
|
|
23
|
+
const result = await this.xdataControl.newData(data[0], event);
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
export { CalendarViewEngine };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ViewController,
|
|
1
|
+
import { ViewController, IChartExpViewEvent, IChartExpViewState } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEChartExplorerView } from '@ibiz/model-core';
|
|
3
|
-
|
|
3
|
+
import { ExpViewEngine } from './exp-view.engine';
|
|
4
|
+
export declare class ChartExpViewEngine extends ExpViewEngine {
|
|
4
5
|
/**
|
|
5
6
|
* 图表导航视图控制器
|
|
6
7
|
*
|
|
@@ -14,11 +15,10 @@ export declare class ChartExpViewEngine extends ViewEngineBase {
|
|
|
14
15
|
*/
|
|
15
16
|
protected view: ViewController<IAppDEChartExplorerView, IChartExpViewState, IChartExpViewEvent>;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
18
|
+
* @description 导航栏部件名称
|
|
19
19
|
* @readonly
|
|
20
|
+
* @type {string}
|
|
20
21
|
* @memberof ChartExpViewEngine
|
|
21
22
|
*/
|
|
22
|
-
get
|
|
23
|
-
onCreated(): Promise<void>;
|
|
23
|
+
get expBarName(): string;
|
|
24
24
|
}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpViewEngine } from './exp-view.engine.mjs';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class ChartExpViewEngine extends
|
|
4
|
+
class ChartExpViewEngine extends ExpViewEngine {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* @description 导航栏部件名称
|
|
8
7
|
* @readonly
|
|
8
|
+
* @type {string}
|
|
9
9
|
* @memberof ChartExpViewEngine
|
|
10
10
|
*/
|
|
11
|
-
get
|
|
12
|
-
return
|
|
13
|
-
}
|
|
14
|
-
async onCreated() {
|
|
15
|
-
await super.onCreated();
|
|
16
|
-
const { childNames } = this.view;
|
|
17
|
-
childNames.push("chartexpbar");
|
|
18
|
-
if (!this.view.slotProps.chartexpbar) {
|
|
19
|
-
this.view.slotProps.chartexpbar = {};
|
|
20
|
-
}
|
|
21
|
-
this.view.slotProps.chartexpbar.srfnav = this.view.state.srfnav;
|
|
11
|
+
get expBarName() {
|
|
12
|
+
return "chartexpbar";
|
|
22
13
|
}
|
|
23
14
|
}
|
|
24
15
|
|
|
@@ -56,6 +56,17 @@ export declare class EditViewEngine extends DEMainViewEngine {
|
|
|
56
56
|
* @memberof EditViewEngine
|
|
57
57
|
*/
|
|
58
58
|
saveAndNew(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @description 取消变更
|
|
61
|
+
* @param {({
|
|
62
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
63
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
64
|
+
* @returns {*} {Promise<void>}
|
|
65
|
+
* @memberof EditViewEngine
|
|
66
|
+
*/
|
|
67
|
+
cancelChanges(_args?: {
|
|
68
|
+
targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
69
|
+
}): Promise<void>;
|
|
59
70
|
/**
|
|
60
71
|
* 工作流启动
|
|
61
72
|
*
|
|
@@ -261,6 +261,18 @@ class EditViewEngine extends DEMainViewEngine {
|
|
|
261
261
|
this.view.context[calcDeCodeNameById(this.view.model.appDataEntityId)] = void 0;
|
|
262
262
|
await this.form.load();
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* @description 取消变更
|
|
266
|
+
* @param {({
|
|
267
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
268
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
269
|
+
* @returns {*} {Promise<void>}
|
|
270
|
+
* @memberof EditViewEngine
|
|
271
|
+
*/
|
|
272
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
273
|
+
await super.cancelChanges(_args);
|
|
274
|
+
await this.form.cancelChanges(_args.targetState);
|
|
275
|
+
}
|
|
264
276
|
/**
|
|
265
277
|
* 工作流启动
|
|
266
278
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewController, IGanttViewState, IGanttViewEvent, IGanttController, IApiGanttViewCall } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEGanttView } from '@ibiz/model-core';
|
|
3
|
-
|
|
3
|
+
import { TreeGridExViewEngine } from './tree-grid-ex-view.engine';
|
|
4
|
+
export declare class GanttViewEngine extends TreeGridExViewEngine {
|
|
4
5
|
protected view: ViewController<IAppDEGanttView, IGanttViewState, IGanttViewEvent>;
|
|
5
6
|
get gantt(): IGanttController;
|
|
6
7
|
call(key: keyof IApiGanttViewCall, args: any): Promise<IData | null | undefined>;
|
|
7
|
-
protected onXDataActive(event: EventBase): Promise<void>;
|
|
8
8
|
onCreated(): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SysUIActionTag } from '@ibiz-template/runtime';
|
|
2
|
+
import { TreeGridExViewEngine } from './tree-grid-ex-view.engine.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
-
class GanttViewEngine extends
|
|
5
|
+
class GanttViewEngine extends TreeGridExViewEngine {
|
|
6
6
|
get gantt() {
|
|
7
7
|
return this.view.getController("gantt");
|
|
8
8
|
}
|
|
@@ -23,51 +23,8 @@ class GanttViewEngine extends MDViewEngine {
|
|
|
23
23
|
this.gantt.saveAll();
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
if (key === SysUIActionTag.EXPAND) {
|
|
27
|
-
const { srfcollapsetag } = args.params || {};
|
|
28
|
-
let tag = srfcollapsetag || "";
|
|
29
|
-
if (!tag) {
|
|
30
|
-
const { selectedData } = this.gantt.state;
|
|
31
|
-
const selectedGroup = selectedData.filter((x) => !x._leaf);
|
|
32
|
-
if (selectedGroup.length > 0) {
|
|
33
|
-
tag = selectedGroup[0].srfnodeid;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (!tag) {
|
|
37
|
-
throw new RuntimeError(ibiz.i18n.t("viewEngine.noExpandTag"));
|
|
38
|
-
}
|
|
39
|
-
this.gantt.changeCollapse({ tag, expand: true });
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
if (key === SysUIActionTag.COLLAPSE) {
|
|
43
|
-
const { srfcollapsetag } = args.params || {};
|
|
44
|
-
let tag = srfcollapsetag || "";
|
|
45
|
-
if (!tag) {
|
|
46
|
-
const { selectedData } = this.gantt.state;
|
|
47
|
-
const selectedGroup = selectedData.filter((x) => !x._leaf);
|
|
48
|
-
if (selectedGroup.length > 0) {
|
|
49
|
-
tag = selectedGroup[0].srfnodeid;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (!tag) {
|
|
53
|
-
throw new RuntimeError(ibiz.i18n.t("viewEngine.noCollapseTag"));
|
|
54
|
-
}
|
|
55
|
-
this.gantt.changeCollapse({ tag, expand: false });
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
if (key === SysUIActionTag.EXPANDALL) {
|
|
59
|
-
this.gantt.changeCollapse({ expand: true });
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
if (key === SysUIActionTag.COLLAPSEALL) {
|
|
63
|
-
this.gantt.changeCollapse({ expand: false });
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
26
|
return super.call(key, args);
|
|
67
27
|
}
|
|
68
|
-
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
69
|
-
async onXDataActive(event) {
|
|
70
|
-
}
|
|
71
28
|
async onCreated() {
|
|
72
29
|
super.onCreated();
|
|
73
30
|
const { model } = this.view;
|
|
@@ -37,6 +37,16 @@ export declare class LoginViewEngine extends ViewEngineBase {
|
|
|
37
37
|
onDestroyed(): Promise<void>;
|
|
38
38
|
call(key: keyof IApiLoginViewCall, args?: IData): Promise<IData | null | undefined>;
|
|
39
39
|
login(args: IData): Promise<void>;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* @description 取消变更
|
|
42
|
+
* @param {({
|
|
43
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
44
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
45
|
+
* @returns {*} {Promise<void>}
|
|
46
|
+
* @memberof LoginViewEngine
|
|
47
|
+
*/
|
|
48
|
+
cancelChanges(_args?: {
|
|
49
|
+
targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
50
|
+
}): Promise<void>;
|
|
41
51
|
private enterKeyListener;
|
|
42
52
|
}
|
|
@@ -30,6 +30,13 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
};
|
|
33
|
+
const targetID = event.target.dataset.id;
|
|
34
|
+
if (targetID) {
|
|
35
|
+
const targetPanelItem = this.view.layoutPanel.findPanelItemByName(targetID);
|
|
36
|
+
if (targetPanelItem) {
|
|
37
|
+
args.data = [targetPanelItem.data];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
33
40
|
await this.login(args);
|
|
34
41
|
}
|
|
35
42
|
});
|
|
@@ -59,10 +66,6 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
59
66
|
await this.login(args);
|
|
60
67
|
return null;
|
|
61
68
|
}
|
|
62
|
-
if (key === SysUIActionTag.CANCEL_CHANGES) {
|
|
63
|
-
await this.cancelChanges();
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
69
|
return super.call(key, args);
|
|
67
70
|
}
|
|
68
71
|
async login(args) {
|
|
@@ -112,7 +115,15 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
|
-
|
|
118
|
+
/**
|
|
119
|
+
* @description 取消变更
|
|
120
|
+
* @param {({
|
|
121
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
122
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
123
|
+
* @returns {*} {Promise<void>}
|
|
124
|
+
* @memberof LoginViewEngine
|
|
125
|
+
*/
|
|
126
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
116
127
|
if (this.view.layoutPanel) {
|
|
117
128
|
Object.keys(this.view.layoutPanel.panelItems).forEach((key) => {
|
|
118
129
|
const controller = this.view.layoutPanel.panelItems[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewController, IMPickupViewState, IMPickupViewEvent,
|
|
1
|
+
import { ViewController, IListController, IMPickupViewState, IMPickupViewEvent, IApiMPickupViewCall } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEPickupView } from '@ibiz/model-core';
|
|
3
3
|
import { PickupViewEngine } from './pickup-view.engine';
|
|
4
4
|
/**
|
|
@@ -109,6 +109,13 @@ export declare class MPickupViewEngine extends PickupViewEngine {
|
|
|
109
109
|
* @memberof MPickupViewEngine
|
|
110
110
|
*/
|
|
111
111
|
protected removeSelection(): void;
|
|
112
|
+
/**
|
|
113
|
+
* @description 设置选中数据
|
|
114
|
+
* @protected
|
|
115
|
+
* @param {IData[]} items
|
|
116
|
+
* @memberof MPickupViewEngine
|
|
117
|
+
*/
|
|
118
|
+
protected setSelectedData(items: IData[]): void;
|
|
112
119
|
/**
|
|
113
120
|
* 提交
|
|
114
121
|
*
|
|
@@ -33,10 +33,6 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
33
33
|
}
|
|
34
34
|
const { childNames } = this.view;
|
|
35
35
|
childNames.push("simplelist");
|
|
36
|
-
if (this.view.params.selecteddata) {
|
|
37
|
-
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
38
|
-
delete this.view.params.selecteddata;
|
|
39
|
-
}
|
|
40
36
|
if (!this.view.slotProps.simplelist) {
|
|
41
37
|
this.view.slotProps.simplelist = {};
|
|
42
38
|
}
|
|
@@ -61,7 +57,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
61
57
|
this.simpleList.evt.on("onActive", (event) => {
|
|
62
58
|
this.simpleListActive(event.data);
|
|
63
59
|
});
|
|
64
|
-
this.
|
|
60
|
+
this.setSelectedData(this.selectData);
|
|
65
61
|
}
|
|
66
62
|
async call(key, args) {
|
|
67
63
|
if (key === SysUIActionTag.CANCEL) {
|
|
@@ -117,7 +113,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
117
113
|
items.splice(index, 1);
|
|
118
114
|
}
|
|
119
115
|
});
|
|
120
|
-
this.
|
|
116
|
+
this.setSelectedData(items);
|
|
121
117
|
}
|
|
122
118
|
/**
|
|
123
119
|
* 添加选中
|
|
@@ -142,7 +138,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
142
138
|
const allData = this.simpleList.getAllData();
|
|
143
139
|
const items = [...allData, ...data];
|
|
144
140
|
const uniqueItems = this.handleUniqueItems(items);
|
|
145
|
-
this.
|
|
141
|
+
this.setSelectedData(uniqueItems);
|
|
146
142
|
}
|
|
147
143
|
/**
|
|
148
144
|
* 去重数组
|
|
@@ -178,7 +174,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
178
174
|
* @memberof MPickupViewEngine
|
|
179
175
|
*/
|
|
180
176
|
removeAll() {
|
|
181
|
-
this.
|
|
177
|
+
this.setSelectedData([]);
|
|
182
178
|
}
|
|
183
179
|
/**
|
|
184
180
|
* 删除选中
|
|
@@ -198,6 +194,16 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
198
194
|
items.splice(index, 1);
|
|
199
195
|
}
|
|
200
196
|
});
|
|
197
|
+
this.setSelectedData(items);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @description 设置选中数据
|
|
201
|
+
* @protected
|
|
202
|
+
* @param {IData[]} items
|
|
203
|
+
* @memberof MPickupViewEngine
|
|
204
|
+
*/
|
|
205
|
+
setSelectedData(items) {
|
|
206
|
+
super.setSelectedData(items);
|
|
201
207
|
this.simpleList.setData(items);
|
|
202
208
|
}
|
|
203
209
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewEngineBase, ViewController,
|
|
1
|
+
import { ViewEngineBase, ViewController, IPickupViewState, IPickupViewEvent, IApiPickupViewCall, IPickupViewPanelController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEPickupView } from '@ibiz/model-core';
|
|
3
3
|
export declare class PickupViewEngine extends ViewEngineBase {
|
|
4
4
|
/**
|
|
@@ -37,6 +37,13 @@ export declare class PickupViewEngine extends ViewEngineBase {
|
|
|
37
37
|
* @memberof PickupViewEngine
|
|
38
38
|
*/
|
|
39
39
|
onMounted(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* @description 设置选中数据
|
|
42
|
+
* @protected
|
|
43
|
+
* @param {IData[]} items
|
|
44
|
+
* @memberof PickupViewEngine
|
|
45
|
+
*/
|
|
46
|
+
protected setSelectedData(items: IData[]): void;
|
|
40
47
|
/**
|
|
41
48
|
* 选则面板激活数据
|
|
42
49
|
*
|
|
@@ -39,6 +39,10 @@ class PickupViewEngine extends ViewEngineBase {
|
|
|
39
39
|
await super.onCreated();
|
|
40
40
|
const { childNames } = this.view;
|
|
41
41
|
childNames.push("pickupviewpanel");
|
|
42
|
+
if (this.view.params.selecteddata) {
|
|
43
|
+
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
44
|
+
delete this.view.params.selecteddata;
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
/**
|
|
44
48
|
* 视图mounted生命周期执行逻辑
|
|
@@ -55,6 +59,17 @@ class PickupViewEngine extends ViewEngineBase {
|
|
|
55
59
|
this.pickupViewPanel.evt.on("onDataActive", (event) => {
|
|
56
60
|
this.pickupViewPanelDataActive(event.data);
|
|
57
61
|
});
|
|
62
|
+
this.setSelectedData(this.selectData);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @description 设置选中数据
|
|
66
|
+
* @protected
|
|
67
|
+
* @param {IData[]} items
|
|
68
|
+
* @memberof PickupViewEngine
|
|
69
|
+
*/
|
|
70
|
+
setSelectedData(items) {
|
|
71
|
+
this.selectData = items;
|
|
72
|
+
this.pickupViewPanel.setSelectedData(items);
|
|
58
73
|
}
|
|
59
74
|
/**
|
|
60
75
|
* 选则面板激活数据
|
|
@@ -167,7 +167,7 @@ class TabExpViewEngine extends ViewEngineBase {
|
|
|
167
167
|
calcViewHeaderVisible() {
|
|
168
168
|
let showHeader = super.calcViewHeaderVisible();
|
|
169
169
|
const { tabLayout } = this.view.model;
|
|
170
|
-
if (tabLayout === void 0 ||
|
|
170
|
+
if (tabLayout === void 0 || ["TOP", "TOP_DROPDOWNLIST"].includes(tabLayout) && getControl(this.view.model, "tabexppanel")) {
|
|
171
171
|
showHeader = true;
|
|
172
172
|
}
|
|
173
173
|
return showHeader;
|
|
@@ -113,8 +113,10 @@ class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
this.searchBar
|
|
117
|
-
|
|
116
|
+
if (this.searchBar) {
|
|
117
|
+
this.searchBar.placeHolder = caption || "";
|
|
118
|
+
this.searchBar.state.quickSearchPlaceHolder = caption || "";
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
121
|
async call(key, args) {
|
|
120
122
|
if (key === SysUIActionTag.SEARCH) {
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { ViewController, ITreeViewEvent, ITreeViewState, MDViewEngine,
|
|
1
|
+
import { ViewController, ITreeViewEvent, ITreeViewState, MDViewEngine, IApiTreeViewCall, IUIActionResult, ITreeController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDETreeView } from '@ibiz/model-core';
|
|
3
3
|
export declare class TreeViewEngine extends MDViewEngine {
|
|
4
4
|
protected view: ViewController<IAppDETreeView, ITreeViewState, ITreeViewEvent>;
|
|
5
|
-
get tree(): ITreeController;
|
|
6
5
|
onCreated(): Promise<void>;
|
|
6
|
+
get tree(): ITreeController;
|
|
7
7
|
call(key: keyof IApiTreeViewCall, args: any): Promise<IData | null | undefined>;
|
|
8
|
+
protected openData(args: {
|
|
9
|
+
data: IData[];
|
|
10
|
+
event?: MouseEvent;
|
|
11
|
+
context?: IContext;
|
|
12
|
+
params?: IParams;
|
|
13
|
+
}): Promise<IUIActionResult>;
|
|
14
|
+
protected newData(args: {
|
|
15
|
+
data: IData[];
|
|
16
|
+
event?: MouseEvent;
|
|
17
|
+
}): Promise<IUIActionResult>;
|
|
8
18
|
}
|
|
@@ -3,31 +3,37 @@ import { RuntimeError } from '@ibiz-template/core';
|
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
class TreeViewEngine extends MDViewEngine {
|
|
6
|
-
get tree() {
|
|
7
|
-
return this.view.getController("tree");
|
|
8
|
-
}
|
|
9
6
|
async onCreated() {
|
|
10
7
|
await super.onCreated();
|
|
11
8
|
if (!this.view.slotProps.tree) {
|
|
12
9
|
this.view.slotProps.tree = {};
|
|
13
10
|
}
|
|
14
11
|
}
|
|
12
|
+
get tree() {
|
|
13
|
+
return this.view.getController("tree");
|
|
14
|
+
}
|
|
15
15
|
async call(key, args) {
|
|
16
16
|
var _a;
|
|
17
17
|
if (key === SysUIActionTag.REFRESH_ALL) {
|
|
18
|
-
await this.
|
|
18
|
+
await this.xdataControl.refresh();
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
if (key === SysUIActionTag.REFRESH) {
|
|
22
22
|
if ((_a = args == null ? void 0 : args.data) == null ? void 0 : _a[0]) {
|
|
23
|
-
await this.
|
|
23
|
+
await this.xdataControl.refreshNodeChildren(
|
|
24
|
+
args.data[0],
|
|
25
|
+
false
|
|
26
|
+
);
|
|
24
27
|
} else {
|
|
25
|
-
await this.
|
|
28
|
+
await this.xdataControl.refresh();
|
|
26
29
|
}
|
|
27
30
|
return null;
|
|
28
31
|
}
|
|
29
32
|
if (key === SysUIActionTag.REFRESH_PARENT) {
|
|
30
|
-
await this.
|
|
33
|
+
await this.xdataControl.refreshNodeChildren(
|
|
34
|
+
args.data[0],
|
|
35
|
+
true
|
|
36
|
+
);
|
|
31
37
|
return null;
|
|
32
38
|
}
|
|
33
39
|
if (key === SysUIActionTag.EXPAND) {
|
|
@@ -40,7 +46,10 @@ class TreeViewEngine extends MDViewEngine {
|
|
|
40
46
|
if (!tag) {
|
|
41
47
|
throw new RuntimeError(ibiz.i18n.t("viewEngine.noExpandTag"));
|
|
42
48
|
}
|
|
43
|
-
this.
|
|
49
|
+
this.xdataControl.changeCollapse({
|
|
50
|
+
tag,
|
|
51
|
+
expand: true
|
|
52
|
+
});
|
|
44
53
|
return null;
|
|
45
54
|
}
|
|
46
55
|
if (key === SysUIActionTag.COLLAPSE) {
|
|
@@ -53,19 +62,38 @@ class TreeViewEngine extends MDViewEngine {
|
|
|
53
62
|
if (!tag) {
|
|
54
63
|
throw new RuntimeError(ibiz.i18n.t("viewEngine.noCollapseTag"));
|
|
55
64
|
}
|
|
56
|
-
this.
|
|
65
|
+
this.xdataControl.changeCollapse({
|
|
66
|
+
tag,
|
|
67
|
+
expand: false
|
|
68
|
+
});
|
|
57
69
|
return null;
|
|
58
70
|
}
|
|
59
71
|
if (key === SysUIActionTag.EXPANDALL) {
|
|
60
|
-
this.
|
|
72
|
+
this.xdataControl.changeCollapse({ expand: true });
|
|
61
73
|
return null;
|
|
62
74
|
}
|
|
63
75
|
if (key === SysUIActionTag.COLLAPSEALL) {
|
|
64
|
-
this.
|
|
76
|
+
this.xdataControl.changeCollapse({ expand: false });
|
|
65
77
|
return null;
|
|
66
78
|
}
|
|
67
79
|
return super.call(key, args);
|
|
68
80
|
}
|
|
81
|
+
async openData(args) {
|
|
82
|
+
const { data, event } = args;
|
|
83
|
+
const result = await this.xdataControl.openData(
|
|
84
|
+
data[0],
|
|
85
|
+
event
|
|
86
|
+
);
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
async newData(args) {
|
|
90
|
+
const { data, event } = args;
|
|
91
|
+
const result = await this.xdataControl.newData(
|
|
92
|
+
data[0],
|
|
93
|
+
event
|
|
94
|
+
);
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
69
97
|
}
|
|
70
98
|
|
|
71
99
|
export { TreeViewEngine };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dayjs = require('dayjs');
|
|
3
4
|
var navigationBase_provider = require('./navigation-base.provider.cjs');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
@@ -19,7 +20,8 @@ class CalendarNavigationProvider extends navigationBase_provider.NavgationBasePr
|
|
|
19
20
|
const navData = this.navStack.map((key) => items.find((item) => item.navId === key)).find((item) => item !== void 0) || items[0];
|
|
20
21
|
if (navData) {
|
|
21
22
|
const date = new Date(navData.beginTime);
|
|
22
|
-
|
|
23
|
+
if (dayjs(date).isValid())
|
|
24
|
+
this.controller.setSelectDate(date);
|
|
23
25
|
this.controller.setNavData(navData);
|
|
24
26
|
} else {
|
|
25
27
|
this.navStack = [];
|
|
@@ -10,7 +10,7 @@ function getNavigationProvider(controller) {
|
|
|
10
10
|
const { controlType } = controller.model;
|
|
11
11
|
if (controlType === "CALENDAR")
|
|
12
12
|
return new calendarNavigation_provider.CalendarNavigationProvider(controller);
|
|
13
|
-
if (controlType === "TREEVIEW")
|
|
13
|
+
if (controlType === "TREEVIEW" || controlType === "TREEGRIDEX")
|
|
14
14
|
return new treeNavigation_provider.TreeNavigationProvider(controller);
|
|
15
15
|
if (controlType === "MAP")
|
|
16
16
|
return new mapNavigation_provider.MapNavigationProvider(controller);
|
|
@@ -14,6 +14,19 @@ class MapNavigationProvider extends navigationBase_provider.NavgationBaseProvide
|
|
|
14
14
|
super(...arguments);
|
|
15
15
|
__publicField(this, "keyName", "id");
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @description 导航数据变化
|
|
19
|
+
* @param {IMapEvent['onNavDataChange']['event']} event
|
|
20
|
+
* @memberof MapNavigationProvider
|
|
21
|
+
*/
|
|
22
|
+
onNavDataChange(event) {
|
|
23
|
+
var _a;
|
|
24
|
+
const { navData } = event;
|
|
25
|
+
if (((_a = this.navViewMsg.value) == null ? void 0 : _a.key) !== navData._id) {
|
|
26
|
+
this.navStack.unshift(navData[this.keyName]);
|
|
27
|
+
this.navViewMsg.value = this.getNavViewMsg(navData);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
onNavDataByStack() {
|
|
18
31
|
const { items } = this.controller.state;
|
|
19
32
|
const navData = this.navStack.map((key) => items.find((item) => item._id === key)).find((item) => item !== void 0) || items[0];
|
|
@@ -25,15 +38,21 @@ class MapNavigationProvider extends navigationBase_provider.NavgationBaseProvide
|
|
|
25
38
|
}
|
|
26
39
|
}
|
|
27
40
|
getNavViewMsg(item) {
|
|
41
|
+
var _a;
|
|
28
42
|
const { sysMapItems } = this.model;
|
|
43
|
+
const { areaCode, areaLevel } = item;
|
|
29
44
|
const itemModel = sysMapItems == null ? void 0 : sysMapItems.find((_item) => _item.id === item._mapItemId);
|
|
30
45
|
if (itemModel) {
|
|
31
46
|
const { context, params } = this.prepareParams(
|
|
32
47
|
itemModel,
|
|
33
|
-
item._deData,
|
|
48
|
+
{ ...item._deData, areaCode, areaLevel },
|
|
34
49
|
this.controller.context,
|
|
35
50
|
this.controller.params
|
|
36
51
|
);
|
|
52
|
+
if ((_a = itemModel.itemStyle) == null ? void 0 : _a.startsWith("REGION")) {
|
|
53
|
+
params.srfareacode = areaCode;
|
|
54
|
+
params.srfarealevel = areaLevel;
|
|
55
|
+
}
|
|
37
56
|
return {
|
|
38
57
|
params,
|
|
39
58
|
context,
|