@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.21

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 (185) hide show
  1. package/dist/index-3cxXHoLs.js +4 -0
  2. package/dist/{index-B_Fo_3Rt.js → index-CiEIUSX9.js} +1 -1
  3. package/dist/{index-BvI3oZGL.js → index-HW5stxcy.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-BlkeQIMu.js} +1 -1
  7. package/es/common/action-toolbar/action-toolbar.mjs +6 -3
  8. package/es/common/control-navigation/control-navigation.css +1 -0
  9. package/es/common/control-navigation/control-navigation.d.ts +32 -0
  10. package/es/common/control-navigation/control-navigation.mjs +116 -0
  11. package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
  12. package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
  13. package/es/common/control-navigation/provider/index.d.ts +10 -0
  14. package/es/common/control-navigation/provider/index.mjs +17 -0
  15. package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
  16. package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
  17. package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
  18. package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
  19. package/es/common/custom-theme/custom-theme-model.mjs +5 -13
  20. package/es/common/gantt-setting/gantt-setting.css +1 -0
  21. package/es/common/gantt-setting/gantt-setting.d.ts +53 -0
  22. package/es/common/gantt-setting/gantt-setting.mjs +217 -0
  23. package/es/common/grid-setting/grid-setting.css +1 -1
  24. package/es/common/grid-setting/grid-setting.d.ts +2 -1
  25. package/es/common/grid-setting/grid-setting.mjs +20 -4
  26. package/es/common/index.mjs +6 -0
  27. package/es/common/nav-split/nav-split.css +1 -0
  28. package/es/common/nav-split/nav-split.d.ts +57 -0
  29. package/es/common/nav-split/nav-split.mjs +209 -0
  30. package/es/common/pql-editor/utils/index.mjs +30 -40
  31. package/es/common/split/split.css +1 -1
  32. package/es/control/app-menu/app-menu.css +1 -1
  33. package/es/control/app-menu/app-menu.d.ts +3 -0
  34. package/es/control/app-menu/app-menu.mjs +54 -16
  35. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +11 -3
  36. package/es/control/app-menu/index.d.ts +3 -0
  37. package/es/control/calendar/calendar.css +1 -1
  38. package/es/control/calendar/calendar.d.ts +12 -1
  39. package/es/control/calendar/calendar.mjs +42 -10
  40. package/es/control/calendar/index.d.ts +12 -1
  41. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -0
  42. package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +2 -1
  43. package/es/control/data-view/data-view.css +1 -1
  44. package/es/control/data-view/data-view.d.ts +1 -0
  45. package/es/control/data-view/data-view.mjs +21 -3
  46. package/es/control/data-view/index.d.ts +1 -0
  47. package/es/control/drbar/drbar.controller.mjs +1 -1
  48. package/es/control/drtab/drtab-control.util.mjs +1 -1
  49. package/es/control/drtab/drtab.controller.d.ts +9 -1
  50. package/es/control/drtab/drtab.controller.mjs +26 -2
  51. package/es/control/drtab/drtab.css +1 -1
  52. package/es/control/drtab/drtab.d.ts +3 -1
  53. package/es/control/drtab/drtab.mjs +68 -9
  54. package/es/control/drtab/index.d.ts +3 -1
  55. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
  56. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  57. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
  58. package/es/control/gantt/gantt.css +1 -1
  59. package/es/control/gantt/gantt.d.ts +2 -4
  60. package/es/control/gantt/gantt.mjs +82 -25
  61. package/es/control/gantt/index.d.ts +2 -4
  62. package/es/control/grid/grid/grid-control.util.mjs +2 -2
  63. package/es/control/grid/grid/grid.css +1 -1
  64. package/es/control/grid/grid/grid.mjs +75 -71
  65. package/es/control/list/index.d.ts +1 -0
  66. package/es/control/list/list.css +1 -1
  67. package/es/control/list/list.d.ts +1 -0
  68. package/es/control/list/list.mjs +23 -5
  69. package/es/control/map/map.d.ts +9 -0
  70. package/es/control/map/map.mjs +4 -0
  71. package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
  72. package/es/control/toolbar/toolbar.mjs +3 -0
  73. package/es/control/tree/el-tree-util.d.ts +39 -1
  74. package/es/control/tree/el-tree-util.mjs +70 -2
  75. package/es/control/tree/index.d.ts +16 -14
  76. package/es/control/tree/tree.css +1 -1
  77. package/es/control/tree/tree.d.ts +16 -14
  78. package/es/control/tree/tree.mjs +60 -31
  79. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  80. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
  81. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
  82. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
  83. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
  84. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  85. package/es/locale/en/index.d.ts +17 -0
  86. package/es/locale/en/index.mjs +18 -1
  87. package/es/locale/zh-CN/index.d.ts +17 -0
  88. package/es/locale/zh-CN/index.mjs +18 -1
  89. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  90. package/es/panel-component/index-actions/index-actions.css +1 -1
  91. package/es/panel-component/index.mjs +2 -1
  92. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
  93. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
  94. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
  95. package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
  96. package/es/panel-component/panel-app-title/index.mjs +4 -0
  97. package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
  98. package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
  99. package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
  100. package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  101. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  102. package/es/util/notification-util/notification-util.d.ts +10 -1
  103. package/es/util/notification-util/notification-util.mjs +36 -0
  104. package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
  105. package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
  106. package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
  107. package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
  108. package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
  109. package/es/util/pagination/use-pagination.mjs +5 -4
  110. package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
  111. package/es/view-engine/tab-exp-view.engine.mjs +20 -1
  112. package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
  113. package/lib/common/control-navigation/control-navigation.cjs +118 -0
  114. package/lib/common/control-navigation/control-navigation.css +1 -0
  115. package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
  116. package/lib/common/control-navigation/provider/index.cjs +19 -0
  117. package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
  118. package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
  119. package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
  120. package/lib/common/gantt-setting/gantt-setting.cjs +219 -0
  121. package/lib/common/gantt-setting/gantt-setting.css +1 -0
  122. package/lib/common/grid-setting/grid-setting.cjs +20 -4
  123. package/lib/common/grid-setting/grid-setting.css +1 -1
  124. package/lib/common/index.cjs +6 -0
  125. package/lib/common/nav-split/nav-split.cjs +211 -0
  126. package/lib/common/nav-split/nav-split.css +1 -0
  127. package/lib/common/pql-editor/utils/index.cjs +30 -40
  128. package/lib/common/split/split.css +1 -1
  129. package/lib/control/app-menu/app-menu.cjs +52 -14
  130. package/lib/control/app-menu/app-menu.css +1 -1
  131. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +10 -2
  132. package/lib/control/calendar/calendar.cjs +42 -10
  133. package/lib/control/calendar/calendar.css +1 -1
  134. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +2 -1
  135. package/lib/control/data-view/data-view.cjs +21 -3
  136. package/lib/control/data-view/data-view.css +1 -1
  137. package/lib/control/drbar/drbar.controller.cjs +1 -1
  138. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  139. package/lib/control/drtab/drtab.cjs +67 -8
  140. package/lib/control/drtab/drtab.controller.cjs +26 -2
  141. package/lib/control/drtab/drtab.css +1 -1
  142. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
  143. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  144. package/lib/control/gantt/gantt.cjs +80 -23
  145. package/lib/control/gantt/gantt.css +1 -1
  146. package/lib/control/grid/grid/grid-control.util.cjs +2 -2
  147. package/lib/control/grid/grid/grid.cjs +75 -71
  148. package/lib/control/grid/grid/grid.css +1 -1
  149. package/lib/control/list/list.cjs +23 -5
  150. package/lib/control/list/list.css +1 -1
  151. package/lib/control/map/map.cjs +4 -0
  152. package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
  153. package/lib/control/toolbar/toolbar.cjs +3 -0
  154. package/lib/control/tree/el-tree-util.cjs +70 -0
  155. package/lib/control/tree/tree.cjs +58 -29
  156. package/lib/control/tree/tree.css +1 -1
  157. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
  158. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  159. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
  160. package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
  161. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  162. package/lib/locale/en/index.cjs +18 -1
  163. package/lib/locale/zh-CN/index.cjs +18 -1
  164. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  165. package/lib/panel-component/index-actions/index-actions.css +1 -1
  166. package/lib/panel-component/index.cjs +1 -0
  167. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
  168. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
  169. package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
  170. package/lib/panel-component/panel-app-title/index.cjs +4 -0
  171. package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
  172. package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
  173. package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
  174. package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  175. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  176. package/lib/util/notification-util/notification-util.cjs +36 -0
  177. package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
  178. package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
  179. package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
  180. package/lib/util/pagination/use-pagination.cjs +5 -4
  181. package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
  182. package/package.json +10 -10
  183. package/dist/index-VQ3FT6ih.js +0 -4
  184. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  185. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -38,10 +38,11 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
38
38
  setup(props, {
39
39
  emit
40
40
  }) {
41
+ var _a;
41
42
  const ns = useNamespace("action-toolbar");
42
43
  const dropdownRef = ref();
43
44
  const popoverVisible = ref(false);
44
- props.actionDetails.forEach((detail) => {
45
+ (_a = props.actionDetails) == null ? void 0 : _a.forEach((detail) => {
45
46
  if (detail.capLanguageRes && detail.capLanguageRes.lanResTag) {
46
47
  detail.caption = ibiz.i18n.t(detail.capLanguageRes.lanResTag, detail.caption);
47
48
  }
@@ -90,6 +91,7 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
90
91
  };
91
92
  },
92
93
  render() {
94
+ var _a;
93
95
  const details = this.actionDetails || [];
94
96
  const renderDivider = (isExpand) => {
95
97
  return createVNode(resolveComponent("el-divider"), {
@@ -100,7 +102,8 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
100
102
  };
101
103
  const renderActions = (items, isExpand = true) => {
102
104
  return items.map((detail) => {
103
- if (this.actionsState[detail.id].visible) {
105
+ var _a2;
106
+ if ((_a2 = this.actionsState[detail.id]) == null ? void 0 : _a2.visible) {
104
107
  return [detail.addSeparator && renderDivider(isExpand), createVNode(resolveComponent("el-button"), {
105
108
  "text": true,
106
109
  "size": "small",
@@ -160,7 +163,7 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
160
163
  default: () => [_slot]
161
164
  })];
162
165
  };
163
- if (!this.actionsState.visible) {
166
+ if (!((_a = this.actionsState) == null ? void 0 : _a.visible)) {
164
167
  return;
165
168
  }
166
169
  if (this.mode === "buttons") {
@@ -0,0 +1 @@
1
+ .ibiz-control-navigation{width:100%;height:100%}.ibiz-control-navigation__nav-control{width:100%;height:100%;position:relative}
@@ -0,0 +1,32 @@
1
+ import { MDControlController } from '@ibiz-template/runtime';
2
+ import { Ref, PropType } from 'vue';
3
+ import './control-navigation.scss';
4
+ /**
5
+ * 部件内容导航组件
6
+ */
7
+ export declare const IBizControlNavigation: import("vue").DefineComponent<{
8
+ controller: {
9
+ type: PropType<MDControlController<import("@ibiz/model-core").IMDControl, import("@ibiz-template/runtime").IMDControlState, import("@ibiz-template/runtime").IMDControlEvent>>;
10
+ required: true;
11
+ };
12
+ }, {
13
+ ns: import("@ibiz-template/core").Namespace;
14
+ navStyle: {
15
+ minWidth: string | number | undefined;
16
+ maxWidth: string | number | undefined;
17
+ minHeight: string | number | undefined;
18
+ maxHeight: string | number | undefined;
19
+ };
20
+ provider: import("./provider/navigation-base.provider").NavgationBaseProvider;
21
+ splitMode: Ref<"vertical" | "horizontal">;
22
+ splitValue: Ref<string | number>;
23
+ outerWrapper: Ref<HTMLDivElement | null>;
24
+ renderNavView: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }> | undefined;
27
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ controller: {
29
+ type: PropType<MDControlController<import("@ibiz/model-core").IMDControl, import("@ibiz-template/runtime").IMDControlState, import("@ibiz-template/runtime").IMDControlEvent>>;
30
+ required: true;
31
+ };
32
+ }>>, {}, {}>;
@@ -0,0 +1,116 @@
1
+ import { defineComponent, ref, watch, onMounted, h, resolveComponent, createVNode } from 'vue';
2
+ import { useNamespace } from '@ibiz-template/vue3-util';
3
+ import { getNavigationProvider } from './provider/index.mjs';
4
+ import './control-navigation.css';
5
+
6
+ "use strict";
7
+ const IBizControlNavigation = /* @__PURE__ */ defineComponent({
8
+ name: "IBizControlNavigation",
9
+ props: {
10
+ controller: {
11
+ type: Object,
12
+ required: true
13
+ }
14
+ },
15
+ setup(props) {
16
+ var _a;
17
+ const ns = useNamespace("control-navigation");
18
+ const provider = getNavigationProvider(props.controller);
19
+ const outerWrapper = ref(null);
20
+ const {
21
+ navViewPos,
22
+ controlParam,
23
+ navViewWidth,
24
+ navViewHeight,
25
+ navViewMinWidth,
26
+ navViewMaxWidth,
27
+ navViewMinHeight,
28
+ navViewMaxHeight
29
+ } = props.controller.model;
30
+ const navStyle = {
31
+ minWidth: navViewMinWidth ? navViewMinWidth > 0 ? "".concat(navViewMinWidth, "px") : navViewMinWidth : void 0,
32
+ maxWidth: navViewMaxWidth ? navViewMaxWidth > 0 ? "".concat(navViewMaxWidth, "px") : navViewMaxWidth : void 0,
33
+ minHeight: navViewMinHeight ? navViewMinHeight > 0 ? "".concat(navViewMinHeight, "px") : navViewMinHeight : void 0,
34
+ maxHeight: navViewMaxHeight ? navViewMaxHeight > 0 ? "".concat(navViewMaxHeight, "px") : navViewMaxHeight : void 0
35
+ };
36
+ const navViewMsg = ref();
37
+ const navRenderMode = ((_a = controlParam == null ? void 0 : controlParam.ctrlParams) == null ? void 0 : _a.navRenderMode) ? controlParam.ctrlParams.navRenderMode : "RELOAD";
38
+ const splitValue = ref(0.5);
39
+ const splitMode = ref(["BOTTOM", "ANY_BOTTOM"].includes(navViewPos) ? "vertical" : "horizontal");
40
+ watch(() => provider.navViewMsg.value, (newVal, oldVal) => {
41
+ if (navRenderMode === "REDRAW" || !newVal || oldVal && newVal.viewId !== oldVal.viewId) {
42
+ navViewMsg.value = newVal;
43
+ } else {
44
+ navViewMsg.value = {
45
+ context: newVal.context,
46
+ params: newVal.params,
47
+ viewId: newVal.viewId
48
+ };
49
+ }
50
+ }, {
51
+ deep: true,
52
+ immediate: true
53
+ });
54
+ onMounted(() => {
55
+ if (outerWrapper.value) {
56
+ const offsetSize = splitMode.value === "horizontal" ? "offsetWidth" : "offsetHeight";
57
+ const size = outerWrapper.value[offsetSize];
58
+ const viewSize = splitMode.value === "horizontal" ? navViewWidth : navViewHeight;
59
+ if (viewSize) {
60
+ if (viewSize > 0 && viewSize < 1) {
61
+ splitValue.value = 1 - viewSize;
62
+ } else {
63
+ splitValue.value = "".concat(size - viewSize, "px");
64
+ }
65
+ }
66
+ }
67
+ });
68
+ const renderNavView = () => {
69
+ if (navViewMsg.value) {
70
+ return h(resolveComponent("IBizViewShell"), {
71
+ ...navViewMsg.value,
72
+ class: ns.e("nav-view")
73
+ });
74
+ }
75
+ };
76
+ return {
77
+ ns,
78
+ navStyle,
79
+ provider,
80
+ splitMode,
81
+ splitValue,
82
+ outerWrapper,
83
+ renderNavView
84
+ };
85
+ },
86
+ render() {
87
+ var _a, _b, _c, _d, _e;
88
+ const {
89
+ state,
90
+ model
91
+ } = this.controller;
92
+ return createVNode("div", {
93
+ "ref": "outerWrapper",
94
+ "class": [this.ns.b(), this.ns.e((_a = model.controlType) == null ? void 0 : _a.toLowerCase())]
95
+ }, [state.enableNavView ? state.showNavView ? createVNode(resolveComponent("iBizNavSplit"), {
96
+ "modelValue": this.splitValue,
97
+ "onUpdate:modelValue": ($event) => this.splitValue = $event,
98
+ "mode": this.splitMode,
99
+ "min": this.splitMode === "horizontal" ? this.navStyle.minWidth : this.navStyle.minHeight,
100
+ "max": this.splitMode === "horizontal" ? this.navStyle.maxWidth : this.navStyle.maxHeight
101
+ }, {
102
+ left: () => {
103
+ var _a2, _b2;
104
+ return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2);
105
+ },
106
+ right: () => this.renderNavView(),
107
+ top: () => {
108
+ var _a2, _b2;
109
+ return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2);
110
+ },
111
+ bottom: () => this.renderNavView()
112
+ }) : (_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b) : (_e = (_d = this.$slots).default) == null ? void 0 : _e.call(_d)]);
113
+ }
114
+ });
115
+
116
+ export { IBizControlNavigation };
@@ -0,0 +1,17 @@
1
+ import { CalendarController, ICalendarItemData, INavViewMsg } from '@ibiz-template/runtime';
2
+ import { ISysCalendar } from '@ibiz/model-core';
3
+ import { NavgationBaseProvider } from './navigation-base.provider';
4
+ /**
5
+ * 日历导航适配器
6
+ *
7
+ * @export
8
+ * @class CalendarNavigationProvider
9
+ * @extends {NavgationBaseProvider}
10
+ */
11
+ export declare class CalendarNavigationProvider extends NavgationBaseProvider {
12
+ keyName: string;
13
+ controller: CalendarController;
14
+ model: ISysCalendar;
15
+ onNavDataByStack(): void;
16
+ getNavViewMsg(item: ICalendarItemData): INavViewMsg;
17
+ }
@@ -0,0 +1,55 @@
1
+ import { NavgationBaseProvider } from './navigation-base.provider.mjs';
2
+
3
+ "use strict";
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class CalendarNavigationProvider extends NavgationBaseProvider {
11
+ constructor() {
12
+ super(...arguments);
13
+ __publicField(this, "keyName", "navId");
14
+ }
15
+ onNavDataByStack() {
16
+ const { items } = this.controller.state;
17
+ const navData = this.navStack.map((key) => items.find((item) => item.navId === key)).find((item) => item !== void 0) || items[0];
18
+ if (navData) {
19
+ const date = new Date(navData.beginTime);
20
+ this.controller.setSelectDate(date);
21
+ this.controller.setNavData(navData);
22
+ } else {
23
+ this.navStack = [];
24
+ this.controller.setSelectDate(/* @__PURE__ */ new Date());
25
+ this.navViewMsg.value = void 0;
26
+ }
27
+ }
28
+ getNavViewMsg(item) {
29
+ const { sysCalendarItems } = this.model;
30
+ const itemModel = sysCalendarItems == null ? void 0 : sysCalendarItems.find(
31
+ (_item) => _item.itemType === item.itemType
32
+ );
33
+ if (itemModel) {
34
+ const { context, params } = this.prepareParams(
35
+ itemModel,
36
+ item.deData ? item.deData : item,
37
+ this.controller.context,
38
+ this.controller.params
39
+ );
40
+ return {
41
+ key: item.navId,
42
+ context,
43
+ params,
44
+ viewId: itemModel.navAppViewId
45
+ };
46
+ }
47
+ return {
48
+ key: item.navId,
49
+ context: this.controller.context,
50
+ params: this.controller.params
51
+ };
52
+ }
53
+ }
54
+
55
+ export { CalendarNavigationProvider };
@@ -0,0 +1,10 @@
1
+ import { MDControlController } from '@ibiz-template/runtime';
2
+ import { NavgationBaseProvider } from './navigation-base.provider';
3
+ /**
4
+ * 获取部件导航适配器
5
+ *
6
+ * @export
7
+ * @param {MDControlController} controller
8
+ * @return {*} {NavgationBaseProvider}
9
+ */
10
+ export declare function getNavigationProvider(controller: MDControlController): NavgationBaseProvider;
@@ -0,0 +1,17 @@
1
+ import { NavgationBaseProvider } from './navigation-base.provider.mjs';
2
+ import { CalendarNavigationProvider } from './calendar-navigation.provider.mjs';
3
+ import { TreeNavigationProvider } from './tree-navigation.provider.mjs';
4
+
5
+ "use strict";
6
+ function getNavigationProvider(controller) {
7
+ const { controlType } = controller.model;
8
+ if (controlType === "CALENDAR") {
9
+ return new CalendarNavigationProvider(controller);
10
+ }
11
+ if (controlType === "TREEVIEW") {
12
+ return new TreeNavigationProvider(controller);
13
+ }
14
+ return new NavgationBaseProvider(controller);
15
+ }
16
+
17
+ export { getNavigationProvider };
@@ -0,0 +1,84 @@
1
+ import { Ref } from 'vue';
2
+ import { IMDControlEvent, INavViewMsg, MDControlController } from '@ibiz-template/runtime';
3
+ import { IMDControl, INavigatable } from '@ibiz/model-core';
4
+ /**
5
+ * 导航适配器
6
+ *
7
+ * @export
8
+ * @class NavgationBaseProvider
9
+ */
10
+ export declare class NavgationBaseProvider {
11
+ protected controller: MDControlController;
12
+ /**
13
+ * 导航栈数据
14
+ *
15
+ * @type {string[]}
16
+ * @memberof NavgationBaseProvider
17
+ */
18
+ navStack: string[];
19
+ /**
20
+ * 主键名称
21
+ *
22
+ * @memberof NavgationBaseProvider
23
+ */
24
+ keyName: string;
25
+ /**
26
+ * 模型
27
+ *
28
+ * @type {IMDControl}
29
+ * @memberof NavgationBaseProvider
30
+ */
31
+ model: IMDControl;
32
+ /**
33
+ * 导航视图信息
34
+ *
35
+ * @type {(Ref<INavViewMsg | undefined>)}
36
+ * @memberof NavgationBaseProvider
37
+ */
38
+ navViewMsg: Ref<INavViewMsg | undefined>;
39
+ /**
40
+ * Creates an instance of NavgationBaseProvider.
41
+ * @param {MDControlController} controller
42
+ * @memberof NavgationBaseProvider
43
+ */
44
+ constructor(controller: MDControlController);
45
+ /**
46
+ * 解析参数
47
+ *
48
+ * @param {(INavigatable & { appDataEntityId?: string })} XDataModel
49
+ * @param {IData} data
50
+ * @param {IContext} context
51
+ * @param {IParams} params
52
+ * @return {*} {{ context: IContext; params: IParams }}
53
+ * @memberof NavgationBaseProvider
54
+ */
55
+ prepareParams(XDataModel: INavigatable & {
56
+ appDataEntityId?: string;
57
+ }, data: IData, context: IContext, params: IParams): {
58
+ context: IContext;
59
+ params: IParams;
60
+ };
61
+ /**
62
+ * 通过栈数据导航
63
+ *
64
+ * @memberof NavgationBaseProvider
65
+ */
66
+ onNavDataByStack(): void;
67
+ /**
68
+ * 导航数据变化
69
+ *
70
+ * @param {IMDControlEvent['onNavDataChange']['event']} event
71
+ * @memberof NavgationBaseProvider
72
+ */
73
+ onNavDataChange(event: IMDControlEvent['onNavDataChange']['event']): void;
74
+ /**
75
+ * 获取导航视图信息
76
+ *
77
+ * @param {IData} data
78
+ * @param {IContext} context
79
+ * @param {IParams} params
80
+ * @return {*} {INavViewMsg}
81
+ * @memberof NavgationBaseProvider
82
+ */
83
+ getNavViewMsg(data: IData, context: IContext, params: IParams): INavViewMsg;
84
+ }
@@ -0,0 +1,142 @@
1
+ import { ref } from 'vue';
2
+ import { calcDeCodeNameById, calcNavParams } from '@ibiz-template/runtime';
3
+
4
+ "use strict";
5
+ var __defProp = Object.defineProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __publicField = (obj, key, value) => {
8
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
+ return value;
10
+ };
11
+ class NavgationBaseProvider {
12
+ /**
13
+ * Creates an instance of NavgationBaseProvider.
14
+ * @param {MDControlController} controller
15
+ * @memberof NavgationBaseProvider
16
+ */
17
+ constructor(controller) {
18
+ this.controller = controller;
19
+ /**
20
+ * 导航栈数据
21
+ *
22
+ * @type {string[]}
23
+ * @memberof NavgationBaseProvider
24
+ */
25
+ __publicField(this, "navStack", []);
26
+ /**
27
+ * 主键名称
28
+ *
29
+ * @memberof NavgationBaseProvider
30
+ */
31
+ __publicField(this, "keyName", "srfkey");
32
+ /**
33
+ * 模型
34
+ *
35
+ * @type {IMDControl}
36
+ * @memberof NavgationBaseProvider
37
+ */
38
+ __publicField(this, "model");
39
+ /**
40
+ * 导航视图信息
41
+ *
42
+ * @type {(Ref<INavViewMsg | undefined>)}
43
+ * @memberof NavgationBaseProvider
44
+ */
45
+ __publicField(this, "navViewMsg", ref());
46
+ this.model = controller.model;
47
+ if (controller.state.enableNavView) {
48
+ controller.evt.on("onNavDataChange", (evt) => {
49
+ this.onNavDataChange(evt);
50
+ });
51
+ controller.evt.on("onLoadSuccess", () => {
52
+ this.onNavDataByStack();
53
+ });
54
+ }
55
+ }
56
+ /**
57
+ * 解析参数
58
+ *
59
+ * @param {(INavigatable & { appDataEntityId?: string })} XDataModel
60
+ * @param {IData} data
61
+ * @param {IContext} context
62
+ * @param {IParams} params
63
+ * @return {*} {{ context: IContext; params: IParams }}
64
+ * @memberof NavgationBaseProvider
65
+ */
66
+ prepareParams(XDataModel, data, context, params) {
67
+ const {
68
+ navDER,
69
+ navFilter,
70
+ navigateContexts,
71
+ navigateParams,
72
+ appDataEntityId
73
+ } = XDataModel;
74
+ const model = {
75
+ deName: appDataEntityId ? calcDeCodeNameById(appDataEntityId) : void 0,
76
+ navFilter,
77
+ pickupDEFName: navDER == null ? void 0 : navDER.pickupDEFName,
78
+ navContexts: navigateContexts,
79
+ navParams: navigateParams
80
+ };
81
+ const originParams = {
82
+ context,
83
+ params,
84
+ data
85
+ };
86
+ const { resultContext, resultParams } = calcNavParams(model, originParams);
87
+ const tempContext = Object.assign(context.clone(), resultContext);
88
+ const tempParams = { ...resultParams };
89
+ return { context: tempContext, params: tempParams };
90
+ }
91
+ /**
92
+ * 通过栈数据导航
93
+ *
94
+ * @memberof NavgationBaseProvider
95
+ */
96
+ onNavDataByStack() {
97
+ const { items } = this.controller.state;
98
+ const navData = this.navStack.map((key) => items.find((item) => item[this.keyName] === key)).find((item) => item !== void 0) || items[0];
99
+ setTimeout(() => {
100
+ if (navData) {
101
+ this.controller.setNavData(navData);
102
+ this.controller.setSelection([navData]);
103
+ } else {
104
+ this.navStack = [];
105
+ this.controller.setSelection([]);
106
+ this.navViewMsg.value = void 0;
107
+ }
108
+ });
109
+ }
110
+ /**
111
+ * 导航数据变化
112
+ *
113
+ * @param {IMDControlEvent['onNavDataChange']['event']} event
114
+ * @memberof NavgationBaseProvider
115
+ */
116
+ onNavDataChange(event) {
117
+ const { navData, context, params } = event;
118
+ this.navStack.unshift(navData[this.keyName]);
119
+ this.navViewMsg.value = this.getNavViewMsg(navData, context, params);
120
+ }
121
+ /**
122
+ * 获取导航视图信息
123
+ *
124
+ * @param {IData} data
125
+ * @param {IContext} context
126
+ * @param {IParams} params
127
+ * @return {*} {INavViewMsg}
128
+ * @memberof NavgationBaseProvider
129
+ */
130
+ getNavViewMsg(data, context, params) {
131
+ const viewModelId = this.model.navAppViewId;
132
+ const result = this.prepareParams(this.model, data, context, params);
133
+ return {
134
+ key: data[this.keyName],
135
+ context: result.context,
136
+ params: result.params,
137
+ viewId: viewModelId
138
+ };
139
+ }
140
+ }
141
+
142
+ export { NavgationBaseProvider };
@@ -0,0 +1,30 @@
1
+ import { TreeController, INavViewMsg, ITreeNodeData, MDControlController } from '@ibiz-template/runtime';
2
+ import { IDETree } from '@ibiz/model-core';
3
+ import { NavgationBaseProvider } from './navigation-base.provider';
4
+ /**
5
+ * 树导航适配器
6
+ *
7
+ * @export
8
+ * @class TreeNavigationProvider
9
+ * @extends {NavgationBaseProvider}
10
+ */
11
+ export declare class TreeNavigationProvider extends NavgationBaseProvider {
12
+ keyName: string;
13
+ controller: TreeController;
14
+ model: IDETree;
15
+ /**
16
+ * 有导航视图的节点标识
17
+ *
18
+ * @type {string[]}
19
+ * @memberof TreeNavigationProvider
20
+ */
21
+ navNodeModelIds: string[];
22
+ /**
23
+ * Creates an instance of TreeNavigationProvider.
24
+ * @param {MDControlController} controller
25
+ * @memberof TreeNavigationProvider
26
+ */
27
+ constructor(controller: MDControlController);
28
+ onNavDataByStack(): void;
29
+ getNavViewMsg(item: ITreeNodeData): INavViewMsg;
30
+ }
@@ -0,0 +1,81 @@
1
+ import { NavgationBaseProvider } from './navigation-base.provider.mjs';
2
+
3
+ "use strict";
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class TreeNavigationProvider extends NavgationBaseProvider {
11
+ /**
12
+ * Creates an instance of TreeNavigationProvider.
13
+ * @param {MDControlController} controller
14
+ * @memberof TreeNavigationProvider
15
+ */
16
+ constructor(controller) {
17
+ super(controller);
18
+ __publicField(this, "keyName", "_id");
19
+ /**
20
+ * 有导航视图的节点标识
21
+ *
22
+ * @type {string[]}
23
+ * @memberof TreeNavigationProvider
24
+ */
25
+ __publicField(this, "navNodeModelIds", []);
26
+ const { detreeNodes } = this.model;
27
+ detreeNodes == null ? void 0 : detreeNodes.forEach((node) => {
28
+ if (node.navAppViewId) {
29
+ this.navNodeModelIds.push(node.id);
30
+ }
31
+ });
32
+ }
33
+ onNavDataByStack() {
34
+ const { items, rootNodes } = this.controller.state;
35
+ const defaultNav = items.find((node) => {
36
+ if (!this.model.rootVisible && rootNodes.includes(node)) {
37
+ return false;
38
+ }
39
+ return this.navNodeModelIds.includes(node._nodeId);
40
+ });
41
+ const navData = this.navStack.map((key) => items.find((item) => item._id === key)).find((item) => item !== void 0) || defaultNav;
42
+ if (navData) {
43
+ this.controller.setSelection([navData]);
44
+ this.controller.setNavData(navData);
45
+ } else {
46
+ this.navStack = [];
47
+ this.controller.setSelection([]);
48
+ this.navViewMsg.value = void 0;
49
+ }
50
+ }
51
+ getNavViewMsg(item) {
52
+ const { detreeNodes } = this.model;
53
+ const nodeModel = detreeNodes == null ? void 0 : detreeNodes.find((node) => node.id === item._nodeId);
54
+ const _context = Object.assign(
55
+ this.controller.context.clone(),
56
+ item._context || {}
57
+ );
58
+ const _params = { ...this.controller.params, ...item._params || {} };
59
+ if (nodeModel) {
60
+ const { context, params } = this.prepareParams(
61
+ nodeModel,
62
+ item._deData ? item._deData : item,
63
+ _context,
64
+ _params
65
+ );
66
+ return {
67
+ key: item._id,
68
+ context,
69
+ params,
70
+ viewId: nodeModel.navAppViewId
71
+ };
72
+ }
73
+ return {
74
+ key: item._id,
75
+ context: _context,
76
+ params: _params
77
+ };
78
+ }
79
+ }
80
+
81
+ export { TreeNavigationProvider };
@@ -384,17 +384,9 @@ const predefineThemeVars = [
384
384
  className: "ibiz-panel-app-header"
385
385
  },
386
386
  {
387
- label: "\u60AC\u6D6E\u8272",
387
+ label: "\u9009\u4E2D\u8272",
388
388
  value: "--ibiz-panel-app-header-horizontal-hover-bg-color",
389
389
  defaultValue: "--ibiz-color-primary-hover",
390
- labelLang: "topHoverBgColor",
391
- descLang: "topHoverBgColorDesc",
392
- className: "ibiz-panel-app-header"
393
- },
394
- {
395
- label: "\u9009\u4E2D\u8272",
396
- value: "--ibiz-panel-app-header-horizontal-select-bg-color",
397
- defaultValue: "--ibiz-color-primary-active",
398
390
  labelLang: "topSelectBgColor",
399
391
  descLang: "topSelectBgColorDesc",
400
392
  className: "ibiz-panel-app-header"
@@ -423,16 +415,16 @@ const predefineThemeVars = [
423
415
  },
424
416
  {
425
417
  label: "\u60AC\u6D6E\u8272",
426
- value: "--ibiz-panel-app-header-hover-bg-color",
427
- defaultValue: "--ibiz-color-primary-hover",
418
+ value: "--ibiz-panel-app-header-select-bg-color",
419
+ defaultValue: "--ibiz-color-primary-active",
428
420
  labelLang: "sidebarHoverBgColor",
429
421
  descLang: "sidebarHoverBgColorDesc",
430
422
  className: "ibiz-panel-app-header"
431
423
  },
432
424
  {
433
425
  label: "\u9009\u4E2D\u8272",
434
- value: "--ibiz-panel-app-header-select-bg-color",
435
- defaultValue: "--ibiz-color-primary-active",
426
+ value: "--ibiz-panel-app-header-hover-bg-color",
427
+ defaultValue: "--ibiz-color-primary-hover",
436
428
  labelLang: "sidebarSelectBgColor",
437
429
  descLang: "sidebarSelectBgColorDesc",
438
430
  className: "ibiz-panel-app-header"
@@ -0,0 +1 @@
1
+ .ibiz-gantt-setting{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;display:flex;flex-direction:column;width:var(--ibiz-gantt-setting-width);max-width:var(--ibiz-gantt-setting-width);max-height:var(--ibiz-gantt-setting-max-height)}.ibiz-gantt-setting__header{width:100%;height:var(--ibiz-gantt-setting-header-height);padding:0 var(--ibiz-spacing-extra-loose);font-size:var(--ibiz-font-size-header-5);line-height:var(--ibiz-gantt-setting-header-height)}.ibiz-gantt-setting__content{display:flex;flex:1;justify-content:space-between;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-loose) var(--ibiz-spacing-base)}.ibiz-gantt-setting__content--optional{flex:0 0 calc(50% - var(--ibiz-spacing-base));width:0}.ibiz-gantt-setting__content--selected{flex:0 0 calc(50% - var(--ibiz-spacing-base));width:0}.ibiz-gantt-setting__bottom{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-gantt-setting__bottom--btn-right{display:flex;align-items:center}.ibiz-gantt-setting-search-list{width:100%}.ibiz-gantt-setting-search-list__caption{margin-bottom:var(--ibiz-spacing-tight)}.ibiz-gantt-setting-search-list__content{border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-gantt-setting-search-list__search{padding:0 var(--ibiz-spacing-base-loose);margin:var(--ibiz-spacing-tight) 0}.ibiz-gantt-setting-search-list__search svg{fill:var(--ibiz-color-disabled-text)}.ibiz-gantt-setting-search-list__list{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;height:var(--ibiz-gantt-setting-list-height);padding-bottom:var(--ibiz-spacing-tight);overflow-y:auto}.ibiz-gantt-setting-list-item{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;display:flex;align-items:center;width:100%;height:var(--ibiz-spacing-extra-loose);padding:0 var(--ibiz-spacing-base-loose);overflow:hidden;cursor:pointer}.ibiz-gantt-setting-list-item:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-gantt-setting-list-item__caption{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-gantt-setting-list-item__end-icon{display:flex;align-items:center;justify-content:center;cursor:pointers}.ibiz-gantt-setting-list-item__end-icon svg{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item__end-icon--close{width:100%;height:100%}.ibiz-gantt-setting-list-item__end-icon--close svg{fill:var(--ibiz-color-text-3)}.ibiz-gantt-setting-list-item__end-icon--close svg:hover{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item.is-optional .ibiz-gantt-setting-list-item__end-icon{cursor:pointers}.ibiz-gantt-setting-list-item.is-optional .ibiz-gantt-setting-list-item__end-icon svg{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item.is-disabled{cursor:not-allowed;background:0 0;opacity:var(--ibiz-gantt-setting-disabled-opacity)}@media (width >= 992px){.ibiz-gantt-setting{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;max-width:var(--ibiz-gantt-setting-max-width)}}@media (height <= 768px){.ibiz-gantt-setting-search-list{display:flex;flex-direction:column;height:100%}.ibiz-gantt-setting-search-list__content{display:flex;flex:1;flex-direction:column;height:100%}.ibiz-gantt-setting-search-list__list{display:flex;flex:1;flex-direction:column;height:100%}}