@ibiz-template/vue3-components 0.7.41-alpha.17 → 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.
Files changed (182) hide show
  1. package/dist/chart-q7pMKjYo.js +1 -0
  2. package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
  3. package/dist/index-dXwgWAM8.js +11 -0
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/map-chart-user-NYROZ-6g.js +1 -0
  7. package/dist/wang-editor-4OlaBV3P.js +1 -0
  8. package/dist/{xlsx-util-jYyM8alm.js → xlsx-util-Rg-AbK_G.js} +1 -1
  9. package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +3 -1
  10. package/es/common/control-navigation/provider/index.mjs +1 -1
  11. package/es/common/control-navigation/provider/map-navigation.provider.d.ts +8 -2
  12. package/es/common/control-navigation/provider/map-navigation.provider.mjs +20 -1
  13. package/es/common/map-chart-user/map-chart-user.css +1 -1
  14. package/es/common/map-chart-user/map-chart-user.d.ts +11 -1
  15. package/es/common/map-chart-user/map-chart-user.mjs +82 -6
  16. package/es/common/map-chart-user/map-chart-user.util.d.ts +2 -0
  17. package/es/common/map-chart-user/map-chart-user.util.mjs +54 -3
  18. package/es/common/map-chart-user/map-user-manager.d.ts +2 -0
  19. package/es/common/map-chart-user/map-user-manager.mjs +46 -10
  20. package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  21. package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +30 -43
  22. package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +6 -2
  23. package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +37 -4
  24. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
  25. package/es/control/calendar/components/calendar-user/calendar-user.mjs +1 -0
  26. package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
  27. package/es/control/calendar/components/calendar-week/calendar-week.mjs +30 -45
  28. package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +6 -2
  29. package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +37 -4
  30. package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  31. package/es/control/calendar/components/util/index.mjs +1 -1
  32. package/es/control/calendar/components/util/util.d.ts +30 -2
  33. package/es/control/calendar/components/util/util.mjs +32 -2
  34. package/es/control/chart/chart.mjs +1 -0
  35. package/es/control/data-view/data-view.d.ts +1 -1
  36. package/es/control/data-view/index.d.ts +1 -1
  37. package/es/control/drtab/drtab-control.util.mjs +1 -1
  38. package/es/control/drtab/drtab.controller.d.ts +5 -0
  39. package/es/control/drtab/drtab.controller.mjs +19 -0
  40. package/es/control/drtab/flow-drtab.css +1 -1
  41. package/es/control/drtab/flow-drtab.mjs +6 -1
  42. package/es/control/exp-bar/render-util.mjs +1 -12
  43. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +8 -4
  44. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  45. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +2 -1
  46. package/es/control/gantt/gantt.css +1 -1
  47. package/es/control/gantt/gantt.d.ts +4 -2
  48. package/es/control/gantt/gantt.mjs +130 -5
  49. package/es/control/gantt/index.d.ts +4 -2
  50. package/es/control/grid/grid/grid.d.ts +1 -1
  51. package/es/control/grid/grid/index.d.ts +1 -1
  52. package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
  53. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
  54. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
  55. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  56. package/es/control/grid/virtualized-table/index.d.ts +1 -1
  57. package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
  58. package/es/control/kanban/index.d.ts +1 -1
  59. package/es/control/kanban/kanban.d.ts +1 -1
  60. package/es/control/list/index.d.ts +1 -1
  61. package/es/control/list/list.d.ts +1 -1
  62. package/es/control/list/list.mjs +1 -1
  63. package/es/control/map/map.mjs +1 -1
  64. package/es/control/tree/index.d.ts +1 -1
  65. package/es/control/tree/tree.d.ts +5 -5
  66. package/es/control/tree/tree.mjs +5 -13
  67. package/es/control/tree-grid/index.d.ts +7 -1
  68. package/es/control/tree-grid/tree-grid.d.ts +7 -1
  69. package/es/control/tree-grid/tree-grid.mjs +62 -55
  70. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
  71. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  72. package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
  73. package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
  74. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
  75. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
  76. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
  77. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
  78. package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
  79. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
  80. package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
  81. package/es/editor/upload/use/use-iview-upload.mjs +50 -25
  82. package/es/locale/en/index.d.ts +5 -0
  83. package/es/locale/zh-CN/index.d.ts +5 -0
  84. package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
  85. package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
  86. package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
  87. package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
  88. package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
  89. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
  90. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
  91. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  92. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
  93. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
  94. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
  95. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
  96. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
  97. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
  98. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
  99. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
  100. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
  101. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
  102. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  103. package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
  104. package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
  105. package/es/view-engine/edit-view.engine.d.ts +11 -0
  106. package/es/view-engine/edit-view.engine.mjs +12 -0
  107. package/es/view-engine/login-view.engine.d.ts +11 -1
  108. package/es/view-engine/login-view.engine.mjs +9 -5
  109. package/es/view-engine/mpickup-view-engine.d.ts +8 -1
  110. package/es/view-engine/mpickup-view-engine.mjs +14 -8
  111. package/es/view-engine/pickup-view.engine.d.ts +8 -1
  112. package/es/view-engine/pickup-view.engine.mjs +15 -0
  113. package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
  114. package/lib/common/control-navigation/provider/index.cjs +1 -1
  115. package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
  116. package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
  117. package/lib/common/map-chart-user/map-chart-user.css +1 -1
  118. package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
  119. package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
  120. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
  121. package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
  122. package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
  123. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
  124. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
  125. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
  126. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  127. package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
  128. package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
  129. package/lib/control/calendar/components/util/index.cjs +4 -0
  130. package/lib/control/calendar/components/util/util.cjs +34 -0
  131. package/lib/control/chart/chart.cjs +1 -0
  132. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  133. package/lib/control/drtab/drtab.controller.cjs +19 -0
  134. package/lib/control/drtab/flow-drtab.cjs +5 -0
  135. package/lib/control/drtab/flow-drtab.css +1 -1
  136. package/lib/control/exp-bar/render-util.cjs +1 -12
  137. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +7 -3
  138. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
  139. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  140. package/lib/control/gantt/gantt.cjs +129 -4
  141. package/lib/control/gantt/gantt.css +1 -1
  142. package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
  143. package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
  144. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  145. package/lib/control/list/list.cjs +1 -1
  146. package/lib/control/map/map.cjs +1 -1
  147. package/lib/control/tree/tree.cjs +5 -13
  148. package/lib/control/tree-grid/tree-grid.cjs +62 -55
  149. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
  150. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
  151. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
  152. package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
  153. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
  154. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
  155. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
  156. package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
  157. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
  158. package/lib/editor/upload/use/use-iview-upload.cjs +50 -25
  159. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
  160. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
  161. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
  162. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
  163. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
  164. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
  165. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
  166. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  167. package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
  168. package/lib/view-engine/edit-view.engine.cjs +12 -0
  169. package/lib/view-engine/login-view.engine.cjs +9 -5
  170. package/lib/view-engine/mpickup-view-engine.cjs +14 -8
  171. package/lib/view-engine/pickup-view.engine.cjs +15 -0
  172. package/package.json +6 -6
  173. package/dist/chart-8QfxarWf.js +0 -1
  174. package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
  175. package/dist/index-t1aZ8OJE.js +0 -11
  176. package/dist/map-chart-user-xOSZGbF2.js +0 -1
  177. package/dist/wang-editor-Y8puaTx2.js +0 -1
  178. package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
  179. package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
  180. package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
  181. /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
  182. /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,6 +1,15 @@
1
1
  import { IAppFunc, IAppMenuItem } from '@ibiz/model-core';
2
2
  import { Router } from 'vue-router';
3
+ import { IRoutePathNode } from '@ibiz-template/vue3-util';
4
+ import { IAppMenuController } from '@ibiz-template/runtime';
3
5
  import { BreadcrumbMsg } from './nav-breadcrumb.state';
6
+ /**
7
+ * @description 获取首页视图名称
8
+ * @export
9
+ * @param {IContext} context
10
+ * @returns {*} {string}
11
+ */
12
+ export declare function getAppIndexViewName(context: IContext): string;
4
13
  /**
5
14
  * @description 获取首页导航信息
6
15
  * @export
@@ -36,4 +45,20 @@ export declare function getCurViewName(router: Router): string;
36
45
  * @param {string} viewName
37
46
  * @return {*} {(IData | undefined)}
38
47
  */
39
- export declare function getViewInfoByViewStack(viewName: string): IData | undefined;
48
+ export declare function getViewInfoByViewStack(viewName: string, context: IContext): IData | undefined;
49
+ /**
50
+ * @description 获取菜单标识
51
+ * @export
52
+ * @param {IRoutePathNode[]} pathNodes
53
+ * @returns {*} {string}
54
+ */
55
+ export declare function getMenuTag(pathNodes: IRoutePathNode[]): string;
56
+ /**
57
+ * @description 根据标识获取菜单数据
58
+ * @export
59
+ * @param {string} tag
60
+ * @param {IAppMenuController} appMenu
61
+ * @param {IContext} context
62
+ * @returns {*} {Promise<IData>}
63
+ */
64
+ export declare function getMenuItemByTag(tag: string, appMenu: IAppMenuController, context: IContext): Promise<IData | undefined>;
@@ -2,12 +2,23 @@ import { route2routePath } from '@ibiz-template/vue3-util';
2
2
  import { RouteConst } from '@ibiz-template/runtime';
3
3
 
4
4
  "use strict";
5
+ function getAppIndexViewName(context) {
6
+ const targetAppModel = ibiz.hub.getAppSourceModel(context.srfappid);
7
+ if (targetAppModel.getDefaultPSAppIndexView) {
8
+ const view = targetAppModel.getDefaultPSAppIndexView;
9
+ const name = view.path.split("/").pop().replace(".json", "");
10
+ return name;
11
+ }
12
+ return ibiz.hub.defaultAppIndexViewName;
13
+ }
5
14
  function getIndexBreadcrumb(context) {
6
15
  const app = ibiz.hub.getApp(context.srfappid);
7
16
  const caption = app.model.caption;
17
+ const indexViewName = getAppIndexViewName(context);
8
18
  return {
9
- viewName: ibiz.hub.defaultAppIndexViewName,
19
+ viewName: indexViewName,
10
20
  fullPath: "/",
21
+ type: "default",
11
22
  caption
12
23
  };
13
24
  }
@@ -48,7 +59,7 @@ function getCurViewName(router) {
48
59
  const routePath = route2routePath(currentRoute.value);
49
60
  return ((_a = routePath.pathNodes.pop()) == null ? void 0 : _a.viewName) || "";
50
61
  }
51
- function getViewInfoByViewStack(viewName) {
62
+ function getViewInfoByViewStack(viewName, context) {
52
63
  if (viewName === RouteConst.ROUTE_MODAL_TAG) {
53
64
  return {
54
65
  viewName,
@@ -56,18 +67,51 @@ function getViewInfoByViewStack(viewName) {
56
67
  isModal: true
57
68
  };
58
69
  }
59
- const view = ibiz.util.viewStack.getViewByCodeName(viewName);
70
+ const view = ibiz.appUtil.viewCacheCenter.get(viewName);
71
+ const indexViewName = getAppIndexViewName(context);
60
72
  if (view) {
61
73
  let isEmbed = false;
62
- if (view.parentView && view.parentView.model.codeName !== ibiz.hub.defaultAppIndexViewName) {
74
+ if (view.parentView && view.parentView.model.codeName !== indexViewName) {
63
75
  isEmbed = true;
64
76
  }
65
- return {
77
+ const data = view.state.srfactiveviewdata;
78
+ const result = {
66
79
  viewName: view.model.codeName,
67
80
  caption: view.model.caption,
68
81
  isEmbed
69
82
  };
83
+ if (data && data.srfkey) {
84
+ Object.assign(result, { dataInfo: data.srfmajortext || "" });
85
+ }
86
+ return result;
87
+ }
88
+ }
89
+ function getMenuTag(pathNodes) {
90
+ var _a;
91
+ if (pathNodes.length > 1) {
92
+ return ((_a = pathNodes[1].params) == null ? void 0 : _a.srfmenuitem) || "";
93
+ }
94
+ return "";
95
+ }
96
+ async function getMenuItemByTag(tag, appMenu, context) {
97
+ var _a;
98
+ if (!tag) {
99
+ return;
100
+ }
101
+ const menuItem = appMenu.allAppMenuItems.find((x) => x.id === tag);
102
+ if (menuItem) {
103
+ const app = ibiz.hub.getApp(context.srfappid);
104
+ const appFunc = app.getAppFunc(menuItem.appFuncId);
105
+ const viewName = ((_a = appFunc.appViewId) == null ? void 0 : _a.split(".").pop()) || "";
106
+ const viewConfig = await ibiz.hub.config.view.get(viewName);
107
+ return {
108
+ tag,
109
+ viewName,
110
+ viewConfig,
111
+ appFunc,
112
+ menuItem
113
+ };
70
114
  }
71
115
  }
72
116
 
73
- export { getAppFuncByViewName, getCurViewName, getIndexBreadcrumb, getMenuItemsByAppFunc, getViewInfoByViewStack };
117
+ export { getAppFuncByViewName, getAppIndexViewName, getCurViewName, getIndexBreadcrumb, getMenuItemByTag, getMenuItemsByAppFunc, getMenuTag, getViewInfoByViewStack };
@@ -18,6 +18,7 @@ export declare const AsyncDataExport: import("vue").DefineComponent<{
18
18
  beginTime: string;
19
19
  endTime: string;
20
20
  fileUrl: string;
21
+ fileName: string;
21
22
  isFinish: boolean;
22
23
  };
23
24
  onClose: () => void;
@@ -29,6 +29,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
29
29
  beginTime: "",
30
30
  endTime: "",
31
31
  fileUrl: "",
32
+ fileName: "",
32
33
  isFinish: false
33
34
  });
34
35
  info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
@@ -39,6 +40,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
39
40
  if (props.asyncAction.asyncresultdownloadurl) {
40
41
  const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
41
42
  info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
43
+ info.fileName = asyncResultDownloadObj.filename;
42
44
  }
43
45
  if (!finishedStates.includes(props.asyncAction.actionstate)) {
44
46
  info.isFinish = false;
@@ -46,7 +48,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
46
48
  info.isFinish = true;
47
49
  }
48
50
  const onDownLoad = () => {
49
- ibiz.util.file.fileDownload(info.fileUrl);
51
+ ibiz.util.file.fileDownload(info.fileUrl, info.fileName);
50
52
  };
51
53
  return {
52
54
  ns,
@@ -1,6 +1,6 @@
1
1
  import { createApp } from 'vue';
2
2
  import ElementPlus from 'element-plus';
3
- import { defaultNamespace } from '../../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/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
3
+ import { defaultNamespace } from '../../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.mjs';
4
4
  import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
5
5
 
6
6
  "use strict";
@@ -1,6 +1,7 @@
1
- import { ViewController, ViewEngineBase, ICalendarExpBarController, ICalendarExpViewEvent, ICalendarExpViewState } from '@ibiz-template/runtime';
1
+ import { ViewController, ICalendarExpViewEvent, ICalendarExpViewState } from '@ibiz-template/runtime';
2
2
  import { IAppDECalendarExplorerView } from '@ibiz/model-core';
3
- export declare class CalendarExpViewEngine extends ViewEngineBase {
3
+ import { ExpViewEngine } from './exp-view.engine';
4
+ export declare class CalendarExpViewEngine extends ExpViewEngine {
4
5
  /**
5
6
  * 日历导航视图控制器
6
7
  *
@@ -14,12 +15,10 @@ export declare class CalendarExpViewEngine extends ViewEngineBase {
14
15
  */
15
16
  protected view: ViewController<IAppDECalendarExplorerView, ICalendarExpViewState, ICalendarExpViewEvent>;
16
17
  /**
17
- * 树导航栏
18
- *
18
+ * @description 导航栏部件名称
19
19
  * @readonly
20
+ * @type {string}
20
21
  * @memberof CalendarExpViewEngine
21
22
  */
22
- get calendarExpBar(): ICalendarExpBarController;
23
- onCreated(): Promise<void>;
24
- onMounted(): Promise<void>;
23
+ get expBarName(): string;
25
24
  }
@@ -1,33 +1,15 @@
1
- import { ViewEngineBase } from '@ibiz-template/runtime';
1
+ import { ExpViewEngine } from './exp-view.engine.mjs';
2
2
 
3
3
  "use strict";
4
- class CalendarExpViewEngine extends ViewEngineBase {
4
+ class CalendarExpViewEngine extends ExpViewEngine {
5
5
  /**
6
- * 树导航栏
7
- *
6
+ * @description 导航栏部件名称
8
7
  * @readonly
8
+ * @type {string}
9
9
  * @memberof CalendarExpViewEngine
10
10
  */
11
- get calendarExpBar() {
12
- return this.view.getController(
13
- "calendarexpbar"
14
- );
15
- }
16
- async onCreated() {
17
- await super.onCreated();
18
- const { childNames } = this.view;
19
- childNames.push("calendarexpbar");
20
- if (!this.view.slotProps.calendarexpbar) {
21
- this.view.slotProps.calendarexpbar = {};
22
- }
23
- this.view.slotProps.calendarexpbar.srfnav = this.view.state.srfnav;
24
- }
25
- async onMounted() {
26
- await super.onMounted();
27
- const { model } = this.view;
28
- if (!this.view.state.noLoadDefault && model.loadDefault) {
29
- this.calendarExpBar.load();
30
- }
11
+ get expBarName() {
12
+ return "calendarexpbar";
31
13
  }
32
14
  }
33
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
  *
@@ -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
- cancelChanges(): Promise<void>;
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
  }
@@ -66,10 +66,6 @@ class LoginViewEngine extends ViewEngineBase {
66
66
  await this.login(args);
67
67
  return null;
68
68
  }
69
- if (key === SysUIActionTag.CANCEL_CHANGES) {
70
- await this.cancelChanges();
71
- return null;
72
- }
73
69
  return super.call(key, args);
74
70
  }
75
71
  async login(args) {
@@ -119,7 +115,15 @@ class LoginViewEngine extends ViewEngineBase {
119
115
  }
120
116
  }
121
117
  }
122
- async cancelChanges() {
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" }) {
123
127
  if (this.view.layoutPanel) {
124
128
  Object.keys(this.view.layoutPanel.panelItems).forEach((key) => {
125
129
  const controller = this.view.layoutPanel.panelItems[key];
@@ -1,4 +1,4 @@
1
- import { ViewController, IMPickupViewState, IMPickupViewEvent, IListController, IApiMPickupViewCall } from '@ibiz-template/runtime';
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.simpleList.setData(this.selectData);
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.simpleList.setData(items);
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.simpleList.setData(uniqueItems);
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.simpleList.setData([]);
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, IPickupViewPanelController, IPickupViewState, IPickupViewEvent, IApiPickupViewCall } from '@ibiz-template/runtime';
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
  * 选则面板激活数据
@@ -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
- this.controller.setSelectDate(date);
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,
@@ -6,6 +6,8 @@ var vue = require('vue');
6
6
  var ramda = require('ramda');
7
7
  var vue3Util = require('@ibiz-template/vue3-util');
8
8
  var runtime = require('@ibiz-template/runtime');
9
+ var core = require('@ibiz-template/core');
10
+ var lodashEs = require('lodash-es');
9
11
  var mapChartUser_util = require('./map-chart-user.util.cjs');
10
12
  var mapUserManager = require('./map-user-manager.cjs');
11
13
  require('./map-chart-user.css');
@@ -33,6 +35,8 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
33
35
  const ns = vue3Util.useNamespace("map-chart-user");
34
36
  const c = props.controller;
35
37
  let option = mapChartUser_util.defaultOpts;
38
+ const mapRef = vue.ref();
39
+ const isFull = vue.ref(false);
36
40
  if (c.controlParams.defaultopts) {
37
41
  const data = JSON.parse(c.controlParams.defaultopts);
38
42
  option = ramda.mergeDeepLeft(data, option);
@@ -42,9 +46,12 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
42
46
  return ramda.isNil(z) ? x : z;
43
47
  }, option, props.options);
44
48
  });
49
+ let cleanup = core.NOOP;
45
50
  const {
46
51
  chartRef,
47
52
  historyNames,
53
+ processing,
54
+ areaLevelMap,
48
55
  changeMap,
49
56
  getCityInfo,
50
57
  goBack
@@ -58,13 +65,21 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
58
65
  ...mapChartUser_util.getPointStaticOption(options.value),
59
66
  ...mapChartUser_util.getPointOption(pointData, areaData)
60
67
  };
68
+ const {
69
+ top,
70
+ bottom
71
+ } = options.value;
61
72
  const areaOption = {
73
+ top,
74
+ bottom,
62
75
  ...mapChartUser_util.getAreaStaticOption(options.value),
63
76
  ...mapChartUser_util.getAreaOption(mapName, pointData, areaData, cityInfo)
64
77
  };
65
78
  const result = {
66
79
  geo: {
67
- map: mapName
80
+ map: mapName,
81
+ top,
82
+ bottom
68
83
  },
69
84
  tooltip,
70
85
  visualMap,
@@ -82,24 +97,85 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
82
97
  const areaCode = c.state.strAreaCode ? "".concat(name) : Number(name);
83
98
  c.state.areaCode = areaCode;
84
99
  changeMap(name, areaCode, true);
100
+ c.evt.on("onDrillDown", async (args) => {
101
+ if (!processing.value) {
102
+ const {
103
+ data
104
+ } = args;
105
+ const code = data.areaCode;
106
+ const curAreaCode = c.state.strAreaCode ? "".concat(code) : Number(code);
107
+ const areaLevel = areaLevelMap.get(lodashEs.toNumber(curAreaCode)) || "";
108
+ c.state.areaCode = curAreaCode;
109
+ c.state.areaLevel = areaLevel;
110
+ await changeMap(code, code);
111
+ }
112
+ });
113
+ c.evt.on("onBackClick", () => {
114
+ if (!processing.value) {
115
+ goBack();
116
+ }
117
+ });
118
+ cleanup = core.listenJSEvent(window, "resize", () => {
119
+ if (isFull.value) {
120
+ isFull.value = ibiz.fullscreenUtil.isFullScreen;
121
+ }
122
+ });
85
123
  });
124
+ vue.onBeforeUnmount(() => {
125
+ if (cleanup !== core.NOOP) {
126
+ cleanup();
127
+ }
128
+ });
129
+ const onBack = async () => {
130
+ processing.value = true;
131
+ await c.evt.emit("onBackClick", void 0);
132
+ goBack();
133
+ processing.value = false;
134
+ };
135
+ const toggleFullScreen = () => {
136
+ if (mapRef.value) {
137
+ if (isFull.value) {
138
+ ibiz.fullscreenUtil.closeElementFullscreen();
139
+ } else {
140
+ ibiz.fullscreenUtil.openElementFullscreen(mapRef.value);
141
+ }
142
+ isFull.value = !isFull.value;
143
+ }
144
+ };
86
145
  return {
87
146
  ns,
147
+ c,
148
+ mapRef,
88
149
  chartRef,
89
150
  historyNames,
90
- goBack
151
+ isFull,
152
+ onBack,
153
+ toggleFullScreen
91
154
  };
92
155
  },
93
156
  render() {
157
+ const {
158
+ enabledFullScreen
159
+ } = this.c.state;
94
160
  return vue.createVNode("div", {
95
- "class": this.ns.b()
96
- }, [vue.createVNode("div", {
161
+ "class": this.ns.b(),
162
+ "ref": "mapRef"
163
+ }, [enabledFullScreen ? vue.createVNode(vue.resolveComponent("el-button"), {
164
+ "type": "info",
165
+ "class": this.ns.e("fullscreen"),
166
+ "onClick": this.toggleFullScreen,
167
+ "title": this.isFull ? ibiz.i18n.t("app.cancelFullscreen") : ibiz.i18n.t("app.fullscreen")
168
+ }, {
169
+ default: () => [vue.createVNode("ion-icon", {
170
+ "name": this.isFull ? "contract-outline" : "expand-outline"
171
+ }, null)]
172
+ }) : null, vue.createVNode("div", {
97
173
  "class": this.ns.e("chart"),
98
174
  "ref": "chartRef"
99
175
  }, null), this.historyNames.length > 1 && vue.createVNode("div", {
100
176
  "class": this.ns.e("goback"),
101
177
  "onClick": () => {
102
- this.goBack();
178
+ this.onBack();
103
179
  }
104
180
  }, [ibiz.i18n.t("app.return")])]);
105
181
  }
@@ -1 +1 @@
1
- .ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:100px;height:100px;font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-link);text-decoration:underline;letter-spacing:6px;cursor:pointer}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-base)}
1
+ .ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:100px;height:100px;font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-link);text-decoration:underline;letter-spacing:6px;cursor:pointer}.ibiz-map-chart-user__fullscreen{position:absolute;top:var(--ibiz-spacing-tight);right:var(--ibiz-spacing-tight);z-index:9}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-tight)}