@ibiz-template/vue3-components 0.7.38-alpha.31 → 0.7.38-alpha.43

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 (226) hide show
  1. package/dist/chart-NHocZH22.js +1 -0
  2. package/dist/index-BLHbMaxB.js +1 -0
  3. package/dist/index-D22WGUVe.js +1 -0
  4. package/dist/index-b76YR_Js.js +4 -0
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/{xlsx-util-DbA3TyD9.js → xlsx-util-BoMFhSd9.js} +1 -1
  8. package/es/common/action-toolbar/action-toolbar.css +1 -1
  9. package/es/common/button-list/button-list.css +1 -1
  10. package/es/common/custom-filter-condition/custom-filter-condition.d.ts +3 -0
  11. package/es/common/custom-theme/custom-theme-model.mjs +168 -47
  12. package/es/common/custom-theme/custom-theme.controller.d.ts +87 -1
  13. package/es/common/custom-theme/custom-theme.controller.mjs +235 -5
  14. package/es/common/custom-theme/custom-theme.css +1 -1
  15. package/es/common/custom-theme/custom-theme.d.ts +5 -3
  16. package/es/common/custom-theme/custom-theme.mjs +190 -26
  17. package/es/common/nav-split/nav-split.mjs +0 -1
  18. package/es/common/no-data/no-data.css +1 -1
  19. package/es/common/no-data/no-data.d.ts +3 -3
  20. package/es/common/no-data/no-data.mjs +2 -2
  21. package/es/common/view-message/view-message.d.ts +5 -0
  22. package/es/control/app-menu/app-menu.css +1 -1
  23. package/es/control/calendar/calendar-util.d.ts +24 -0
  24. package/es/control/calendar/calendar-util.mjs +21 -0
  25. package/es/control/calendar/calendar.css +1 -1
  26. package/es/control/calendar/calendar.d.ts +2 -0
  27. package/es/control/calendar/calendar.mjs +94 -25
  28. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -0
  29. package/es/control/calendar/components/calendar-user/calendar-user.d.ts +15 -0
  30. package/es/control/calendar/components/calendar-user/calendar-user.mjs +133 -0
  31. package/es/control/calendar/components/calendar-user/index.d.ts +15 -0
  32. package/es/control/calendar/components/calendar-user/index.mjs +9 -0
  33. package/es/control/calendar/components/calendar-user/use-calendar-user.d.ts +17 -0
  34. package/es/control/calendar/components/calendar-user/use-calendar-user.mjs +59 -0
  35. package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
  36. package/es/control/calendar/components/calendar-week/calendar-week.mjs +3 -2
  37. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +11 -0
  38. package/es/control/calendar/components/interface/calendar-user.d.ts +10 -0
  39. package/es/control/calendar/components/interface/calendar-user.mjs +20 -0
  40. package/es/control/calendar/components/interface/index.d.ts +1 -0
  41. package/es/control/calendar/components/interface/index.mjs +1 -0
  42. package/es/control/calendar/index.d.ts +2 -0
  43. package/es/control/caption-bar/caption-bar.css +1 -1
  44. package/es/control/chart/chart.css +1 -1
  45. package/es/control/chart/chart.d.ts +1 -0
  46. package/es/control/chart/chart.mjs +12 -5
  47. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +85 -0
  48. package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +1 -0
  49. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +36 -16
  50. package/es/control/dashboard/dashboard-design/dashboard-design.util.d.ts +10 -0
  51. package/es/control/dashboard/dashboard-design/dashboard-design.util.mjs +246 -0
  52. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
  53. package/es/control/data-view/data-view.css +1 -1
  54. package/es/control/data-view/data-view.mjs +8 -1
  55. package/es/control/drtab/drtab-control.util.mjs +1 -1
  56. package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +35 -0
  57. package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +93 -0
  58. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  59. package/es/control/form/form-detail/form-item/form-item.mjs +49 -33
  60. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +71 -0
  61. package/es/control/grid/grid/grid-control.util.mjs +2 -2
  62. package/es/control/grid/grid/grid.css +1 -1
  63. package/es/control/grid/grid/grid.mjs +3 -2
  64. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  65. package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  66. package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  67. package/es/control/list/list.css +1 -1
  68. package/es/control/list/list.mjs +9 -2
  69. package/es/control/toolbar/toolbar.css +1 -1
  70. package/es/control/toolbar/toolbar.d.ts +2 -2
  71. package/es/control/toolbar/toolbar.mjs +24 -11
  72. package/es/control/tree/index.d.ts +2 -0
  73. package/es/control/tree/tree.css +1 -1
  74. package/es/control/tree/tree.d.ts +2 -0
  75. package/es/control/tree/tree.mjs +87 -6
  76. package/es/control/wizard-panel/wizard-panel.mjs +3 -1
  77. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -0
  78. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
  79. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +66 -0
  80. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +139 -0
  81. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
  82. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +56 -0
  83. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +178 -0
  84. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +10 -1
  85. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +48 -4
  86. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +10 -0
  87. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +9 -2
  88. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +12 -3
  89. package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +3 -1
  90. package/es/editor/data-picker/picker-editor.provider.mjs +0 -1
  91. package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
  92. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +13 -2
  93. package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
  94. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  95. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +3 -0
  96. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
  97. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +83 -0
  98. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +382 -0
  99. package/es/editor/dropdown-list/index.d.ts +1 -0
  100. package/es/editor/dropdown-list/index.mjs +1 -0
  101. package/es/editor/index.mjs +10 -0
  102. package/es/editor/span/span/span.mjs +1 -1
  103. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -0
  104. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +18 -5
  105. package/es/locale/en/index.d.ts +86 -26
  106. package/es/locale/en/index.mjs +69 -28
  107. package/es/locale/zh-CN/index.d.ts +87 -26
  108. package/es/locale/zh-CN/index.mjs +69 -28
  109. package/es/panel-component/index.mjs +2 -1
  110. package/es/panel-component/panel-app-header/panel-app-header.css +1 -1
  111. package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  112. package/es/panel-component/user-action/user-action.css +1 -1
  113. package/es/panel-component/user-action/user-action.mjs +1 -5
  114. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  115. package/es/view/login-view/login-view.mjs +22 -15
  116. package/es/view/share-view/share-view.mjs +1 -6
  117. package/es/view-engine/custom-view.engine.d.ts +9 -0
  118. package/es/view-engine/custom-view.engine.mjs +17 -1
  119. package/es/view-engine/edit-view.engine.d.ts +6 -14
  120. package/es/view-engine/edit-view.engine.mjs +75 -162
  121. package/es/view-engine/index-view.engine.d.ts +7 -0
  122. package/es/view-engine/index-view.engine.mjs +17 -1
  123. package/es/view-engine/login-view.engine.mjs +10 -1
  124. package/es/view-engine/portal-view-engine.d.ts +31 -3
  125. package/es/view-engine/portal-view-engine.mjs +94 -2
  126. package/es/view-engine/tree-exp-view.engine.d.ts +14 -0
  127. package/es/view-engine/tree-exp-view.engine.mjs +24 -1
  128. package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +4 -0
  129. package/es/web-app/guard/auth-guard/auth-guard.d.ts +4 -3
  130. package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -8
  131. package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +9 -0
  132. package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +21 -0
  133. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  134. package/lib/common/button-list/button-list.css +1 -1
  135. package/lib/common/custom-theme/custom-theme-model.cjs +168 -47
  136. package/lib/common/custom-theme/custom-theme.cjs +188 -24
  137. package/lib/common/custom-theme/custom-theme.controller.cjs +235 -5
  138. package/lib/common/custom-theme/custom-theme.css +1 -1
  139. package/lib/common/nav-split/nav-split.cjs +0 -1
  140. package/lib/common/no-data/no-data.cjs +2 -2
  141. package/lib/common/no-data/no-data.css +1 -1
  142. package/lib/control/app-menu/app-menu.css +1 -1
  143. package/lib/control/calendar/calendar-util.cjs +24 -0
  144. package/lib/control/calendar/calendar.cjs +94 -25
  145. package/lib/control/calendar/calendar.css +1 -1
  146. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +135 -0
  147. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -0
  148. package/lib/control/calendar/components/calendar-user/index.cjs +14 -0
  149. package/lib/control/calendar/components/calendar-user/use-calendar-user.cjs +63 -0
  150. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +3 -2
  151. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  152. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +11 -0
  153. package/lib/control/calendar/components/interface/calendar-user.cjs +23 -0
  154. package/lib/control/calendar/components/interface/index.cjs +3 -0
  155. package/lib/control/caption-bar/caption-bar.css +1 -1
  156. package/lib/control/chart/chart.cjs +12 -5
  157. package/lib/control/chart/chart.css +1 -1
  158. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +35 -15
  159. package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +248 -0
  160. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
  161. package/lib/control/data-view/data-view.cjs +8 -1
  162. package/lib/control/data-view/data-view.css +1 -1
  163. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  164. package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +98 -0
  165. package/lib/control/form/form-detail/form-item/form-item.cjs +48 -32
  166. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  167. package/lib/control/grid/grid/grid-control.util.cjs +2 -2
  168. package/lib/control/grid/grid/grid.cjs +3 -2
  169. package/lib/control/grid/grid/grid.css +1 -1
  170. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  171. package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  172. package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  173. package/lib/control/list/list.cjs +9 -2
  174. package/lib/control/list/list.css +1 -1
  175. package/lib/control/toolbar/toolbar.cjs +24 -11
  176. package/lib/control/toolbar/toolbar.css +1 -1
  177. package/lib/control/tree/tree.cjs +87 -6
  178. package/lib/control/tree/tree.css +1 -1
  179. package/lib/control/wizard-panel/wizard-panel.cjs +3 -1
  180. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +3 -0
  181. package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +141 -0
  182. package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
  183. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +180 -0
  184. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
  185. package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +48 -4
  186. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +10 -0
  187. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +9 -2
  188. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -3
  189. package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +3 -1
  190. package/lib/editor/data-picker/picker-editor.provider.cjs +0 -1
  191. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +13 -2
  192. package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
  193. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -0
  194. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  195. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +384 -0
  196. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
  197. package/lib/editor/dropdown-list/index.cjs +2 -0
  198. package/lib/editor/index.cjs +10 -0
  199. package/lib/editor/span/span/span.cjs +1 -1
  200. package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +18 -5
  201. package/lib/locale/en/index.cjs +69 -28
  202. package/lib/locale/zh-CN/index.cjs +69 -28
  203. package/lib/panel-component/index.cjs +1 -0
  204. package/lib/panel-component/panel-app-header/panel-app-header.css +1 -1
  205. package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  206. package/lib/panel-component/user-action/user-action.cjs +1 -5
  207. package/lib/panel-component/user-action/user-action.css +1 -1
  208. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  209. package/lib/view/login-view/login-view.cjs +20 -13
  210. package/lib/view/share-view/share-view.cjs +0 -5
  211. package/lib/view-engine/custom-view.engine.cjs +16 -0
  212. package/lib/view-engine/edit-view.engine.cjs +74 -161
  213. package/lib/view-engine/index-view.engine.cjs +17 -1
  214. package/lib/view-engine/login-view.engine.cjs +10 -1
  215. package/lib/view-engine/portal-view-engine.cjs +93 -1
  216. package/lib/view-engine/tree-exp-view.engine.cjs +23 -0
  217. package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -0
  218. package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -8
  219. package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +21 -0
  220. package/package.json +8 -8
  221. package/dist/chart-DPS_XpZp.js +0 -1
  222. package/dist/index-CnCC-cC2.js +0 -1
  223. package/dist/index-Q4QqDXYJ.js +0 -4
  224. package/dist/index-X3QXftIl.js +0 -1
  225. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.43_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
  226. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.43_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
@@ -1,24 +1,8 @@
1
1
  import { RuntimeError } from '@ibiz-template/core';
2
- import { ViewEngineBase, getControl, getControlsByView, calcDeCodeNameById, SysUIActionTag, ViewCallTag, ControlVO, getAppViewRef, OpenAppViewCommand, ViewMode, calcDynaSysParams, getDeDataMajorField, convertNavData } from '@ibiz-template/runtime';
2
+ import { DEMainViewEngine, getControl, getControlsByView, calcDeCodeNameById, SysUIActionTag, ViewCallTag, ControlVO, getAppViewRef, OpenAppViewCommand, calcDynaSysParams, getDeDataMajorField, convertNavData } from '@ibiz-template/runtime';
3
3
 
4
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 EditViewEngine extends ViewEngineBase {
12
- constructor() {
13
- super(...arguments);
14
- /**
15
- * 实体名称
16
- * @author lxm
17
- * @date 2024-01-31 11:05:49
18
- * @type {string}
19
- */
20
- __publicField(this, "deName");
21
- }
5
+ class EditViewEngine extends DEMainViewEngine {
22
6
  get form() {
23
7
  return this.view.getController("form");
24
8
  }
@@ -86,7 +70,6 @@ class EditViewEngine extends ViewEngineBase {
86
70
  this.formDataStateChange = this.formDataStateChange.bind(this);
87
71
  const { childNames, modal } = this.view;
88
72
  childNames.push("form");
89
- this.deName = calcDeCodeNameById(this.view.model.appDataEntityId);
90
73
  if (!this.view.slotProps.form) {
91
74
  this.view.slotProps.form = {};
92
75
  }
@@ -120,51 +103,52 @@ class EditViewEngine extends ViewEngineBase {
120
103
  }
121
104
  async onMounted() {
122
105
  await super.onMounted();
123
- this.initMarkOpenData();
124
106
  const { model, evt } = this.view;
125
- this.form.evt.on("onLoadSuccess", (event) => {
126
- this.formDataStateChange(event);
127
- const data = event.data[0];
128
- this.view.state.srfactiveviewdata = data;
129
- if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
130
- this.view.context.srfreadonly = data.srfreadonly;
131
- }
132
- evt.emit("onDataChange", { ...event, actionType: "LOAD" });
133
- });
134
- this.form.evt.on("onLoadDraftSuccess", (event) => {
135
- this.formDataStateChange(event);
136
- evt.emit("onDataChange", { ...event, actionType: "LOADDRAFT" });
137
- });
138
- this.form.evt.on("onSaveSuccess", (event) => {
139
- this.view.state.closeOK = true;
140
- const deName = calcDeCodeNameById(this.view.model.appDataEntityId);
141
- const formData = event.data[0];
142
- if (this.view.context[deName] !== formData.srfkey) {
143
- this.view.context[deName] = formData.srfkey;
144
- }
145
- this.formDataStateChange(event);
146
- evt.emit("onDataChange", { ...event, actionType: "SAVE" });
147
- });
148
- this.form.evt.on("onRemoveSuccess", (event) => {
149
- this.formDataStateChange(event);
150
- evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
151
- });
152
- const appDe = await ibiz.hub.getAppDataEntity(
153
- this.view.model.appDataEntityId,
154
- this.view.model.appId
155
- );
156
- this.form.evt.on("onFormDataChange", (event) => {
157
- const { name, value } = event;
158
- if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
159
- this.view.redrawView({
160
- context: this.view.context,
161
- params: { srfdatatype: value, [name]: value },
162
- isReloadModel: true
163
- });
107
+ if (this.form) {
108
+ this.form.evt.on("onLoadSuccess", (event) => {
109
+ this.formDataStateChange(event);
110
+ const data = event.data[0];
111
+ this.view.state.srfactiveviewdata = data;
112
+ if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
113
+ this.view.context.srfreadonly = data.srfreadonly;
114
+ }
115
+ evt.emit("onDataChange", { ...event, actionType: "LOAD" });
116
+ });
117
+ this.form.evt.on("onLoadDraftSuccess", (event) => {
118
+ this.formDataStateChange(event);
119
+ evt.emit("onDataChange", { ...event, actionType: "LOADDRAFT" });
120
+ });
121
+ this.form.evt.on("onSaveSuccess", (event) => {
122
+ this.view.state.closeOK = true;
123
+ const deName = calcDeCodeNameById(this.view.model.appDataEntityId);
124
+ const formData = event.data[0];
125
+ if (this.view.context[deName] !== formData.srfkey) {
126
+ this.view.context[deName] = formData.srfkey;
127
+ }
128
+ this.formDataStateChange(event);
129
+ evt.emit("onDataChange", { ...event, actionType: "SAVE" });
130
+ });
131
+ this.form.evt.on("onRemoveSuccess", (event) => {
132
+ this.formDataStateChange(event);
133
+ evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
134
+ });
135
+ const appDe = await ibiz.hub.getAppDataEntity(
136
+ this.view.model.appDataEntityId,
137
+ this.view.model.appId
138
+ );
139
+ this.form.evt.on("onFormDataChange", (event) => {
140
+ const { name, value } = event;
141
+ if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
142
+ this.view.redrawView({
143
+ context: this.view.context,
144
+ params: { srfdatatype: value, [name]: value },
145
+ isReloadModel: true
146
+ });
147
+ }
148
+ });
149
+ if (!this.view.state.noLoadDefault && model.loadDefault) {
150
+ this.load();
164
151
  }
165
- });
166
- if (!this.view.state.noLoadDefault && model.loadDefault) {
167
- this.load();
168
152
  }
169
153
  }
170
154
  getData() {
@@ -352,128 +336,60 @@ class EditViewEngine extends ViewEngineBase {
352
336
  );
353
337
  }
354
338
  /**
355
- * 初始化标记打开数据相关逻辑
356
- * @author lxm
357
- * @date 2024-01-31 11:52:13
358
- * @return {*} {void}
339
+ * 执行数据标记行为
340
+ *
341
+ * @memberof EditViewEngine
359
342
  */
360
- initMarkOpenData() {
361
- var _a;
362
- if (![ViewMode.ROUTE, ViewMode.ROUTE_MODAL].includes(this.view.modal.mode) || !this.view.model.markOpenDataMode) {
363
- return;
364
- }
365
- const modes = this.view.model.markOpenDataMode.split(";");
366
- let hasOpenConfirm = false;
367
- (_a = this.coopPos) == null ? void 0 : _a.initMessageModes(modes);
368
- const callback = async (data) => {
369
- if (!this.view.state.activated) {
370
- return;
371
- }
372
- const dataInfo = this.form.getData()[0].srfmajortext;
373
- let actionMsg = "";
374
- switch (data.action) {
375
- case "VIEW":
376
- actionMsg = ibiz.i18n.t("viewEngine.browseMsg");
377
- break;
378
- case "EDIT":
379
- actionMsg = ibiz.i18n.t("viewEngine.editMsg");
380
- break;
381
- case "UPDATE":
382
- actionMsg = ibiz.i18n.t("viewEngine.updateMsg");
383
- break;
384
- default:
385
- break;
386
- }
387
- const message = "".concat(data.username, " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
388
- if (this.coopPos) {
389
- this.coopPos.updateMessage({
390
- title: message,
391
- data
392
- });
393
- } else {
394
- ibiz.message.notice({
395
- message,
396
- showClose: true,
397
- duration: 3,
398
- styleType: "alert"
399
- });
400
- }
401
- if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
402
- hasOpenConfirm = true;
403
- const isReload = await this.reloadConfirm();
404
- if (isReload) {
405
- this.refresh();
406
- }
407
- hasOpenConfirm = false;
408
- }
409
- };
410
- const doActions = [];
411
- if (modes.includes("EDITDATA") || modes.includes("DISPLAYOPPERSON") || modes.includes("NOTICERELOAD")) {
412
- doActions.push("EDIT", "VIEW", "UPDATE", "CLOSE");
413
- } else if (modes.includes("OPENDATA")) {
414
- doActions.push("VIEW", "CLOSE");
415
- }
416
- if (doActions.length === 0) {
417
- return;
418
- }
419
- let srfkey;
420
- let hasSubscribe = false;
421
- if (doActions.includes("VIEW")) {
343
+ doMarkDataAction() {
344
+ if (this.doActions.includes("VIEW")) {
345
+ const callback = async (data) => {
346
+ const dataInfo = this.form.getData()[0].srfmajortext;
347
+ this.markOpenDataCallback(data, dataInfo);
348
+ };
422
349
  this.form.evt.on("onLoadSuccess", async (event) => {
423
- const formData = event.data[0];
424
- srfkey = formData.srfkey;
425
- const result = await ibiz.markOpenData.action(
426
- this.deName,
427
- srfkey,
428
- "VIEW"
429
- );
350
+ const data = event.data[0];
351
+ const result = await this.sendMarkDataAction("VIEW", data.srfkey);
430
352
  if (result.ok && result.data.length > 0) {
431
353
  result.data.forEach((item) => {
432
- var _a2;
354
+ var _a;
433
355
  if (item.data) {
434
- (_a2 = this.coopPos) == null ? void 0 : _a2.updateMessage({
356
+ (_a = this.coopPos) == null ? void 0 : _a.updateMessage({
435
357
  data: item.data
436
358
  });
437
359
  }
438
360
  });
439
361
  }
440
- if (!hasSubscribe) {
441
- ibiz.markOpenData.subscribe(this.deName, srfkey, callback);
442
- this.view.evt.on("onDestroyed", () => {
443
- ibiz.markOpenData.unsubscribe(this.deName, srfkey, callback);
444
- });
445
- hasSubscribe = true;
446
- }
362
+ this.subscribeMarkDataAction(data.srfkey, callback);
447
363
  });
448
364
  }
449
- if (doActions.includes("EDIT")) {
365
+ if (this.doActions.includes("EDIT")) {
450
366
  let isWait = false;
451
- const actionEdit = () => {
452
- if (!srfkey || isWait) {
367
+ this.form.evt.on("onFormDataChange", (event) => {
368
+ const data = event.data[0];
369
+ if (isWait) {
453
370
  return;
454
371
  }
455
372
  isWait = true;
456
- ibiz.markOpenData.action(this.deName, srfkey, "EDIT");
373
+ this.sendMarkDataAction("EDIT", data.srfkey);
457
374
  setTimeout(
458
375
  () => {
459
376
  isWait = false;
460
377
  },
461
378
  1e3 * 60 * 5
462
379
  );
463
- };
464
- this.form.evt.on("onFormDataChange", actionEdit);
380
+ });
465
381
  }
466
- if (doActions.includes("UPDATE")) {
467
- this.form.evt.on("onSaveSuccess", () => {
468
- if (srfkey) {
469
- ibiz.markOpenData.action(this.deName, srfkey, "UPDATE");
470
- }
382
+ if (this.doActions.includes("UPDATE")) {
383
+ this.form.evt.on("onSaveSuccess", (event) => {
384
+ const data = event.data[0];
385
+ this.sendMarkDataAction("UPDATE", data.srfkey);
471
386
  });
472
387
  }
473
- if (doActions.includes("CLOSE")) {
388
+ if (this.doActions.includes("CLOSE")) {
474
389
  this.view.evt.on("onCloseView", () => {
475
- if (srfkey) {
476
- ibiz.markOpenData.action(this.deName, srfkey, "CLOSE");
390
+ const data = this.form.getData()[0];
391
+ if (data == null ? void 0 : data.srfkey) {
392
+ this.sendMarkDataAction("CLOSE", data.srfkey);
477
393
  }
478
394
  });
479
395
  }
@@ -485,10 +401,7 @@ class EditViewEngine extends ViewEngineBase {
485
401
  * @return {*} {Promise<boolean>}
486
402
  */
487
403
  async reloadConfirm() {
488
- const result = await ibiz.confirm.info({
489
- title: ibiz.i18n.t("viewEngine.refreshPrompt"),
490
- desc: ibiz.i18n.t("viewEngine.refreshPagePrompt")
491
- });
404
+ const result = await super.reloadConfirm();
492
405
  if (result && this.form.state.modified) {
493
406
  return ibiz.confirm.warning({
494
407
  title: ibiz.i18n.t("viewEngine.refreshRemind"),
@@ -1,5 +1,6 @@
1
1
  import { IViewController, ViewEngineBase, IIndexViewState, IViewEvent, IAppMenuController } from '@ibiz-template/runtime';
2
2
  import { IAppIndexView } from '@ibiz/model-core';
3
+ import { RouteLocationNormalizedLoaded } from 'vue-router';
3
4
  export declare class IndexViewEngine extends ViewEngineBase {
4
5
  protected view: IViewController<IAppIndexView, IIndexViewState, IViewEvent>;
5
6
  get appmenu(): IAppMenuController;
@@ -11,6 +12,12 @@ export declare class IndexViewEngine extends ViewEngineBase {
11
12
  * @type {boolean}
12
13
  */
13
14
  get enableCollapse(): boolean;
15
+ /**
16
+ * @description 路由对象
17
+ * @type {RouteLocationNormalizedLoaded}
18
+ * @memberof IndexViewEngine
19
+ */
20
+ route: RouteLocationNormalizedLoaded;
14
21
  initViewState(): void;
15
22
  onCreated(): Promise<void>;
16
23
  onMounted(): Promise<void>;
@@ -1,7 +1,23 @@
1
1
  import { ViewEngineBase, OpenAppViewCommand, ViewCallTag } from '@ibiz-template/runtime';
2
+ import { useRoute } from 'vue-router';
2
3
 
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
+ };
4
11
  class IndexViewEngine extends ViewEngineBase {
12
+ constructor() {
13
+ super(...arguments);
14
+ /**
15
+ * @description 路由对象
16
+ * @type {RouteLocationNormalizedLoaded}
17
+ * @memberof IndexViewEngine
18
+ */
19
+ __publicField(this, "route", useRoute());
20
+ }
5
21
  get appmenu() {
6
22
  return this.view.getController("appmenu");
7
23
  }
@@ -30,7 +46,7 @@ class IndexViewEngine extends ViewEngineBase {
30
46
  }
31
47
  async onMounted() {
32
48
  await super.onMounted();
33
- if (!this.isExistAndInLayout("appmenu")) {
49
+ if (!this.isExistAndInLayout("appmenu") && !this.route.params.view2) {
34
50
  const { model, context, params } = this.view;
35
51
  const { defAppViewId } = model;
36
52
  if (defAppViewId) {
@@ -95,9 +95,18 @@ class LoginViewEngine extends ViewEngineBase {
95
95
  );
96
96
  this.view.evt.emit("onAfterLogin", { ok: bol, panelDataParent });
97
97
  if (bol === true) {
98
+ const loginFailed = window.location.href.indexOf("srfthird_auth_success=false") >= 0;
98
99
  window.location.hash = this.route.query.ru || "/";
99
100
  window.history.pushState({}, "");
100
- window.location.reload();
101
+ if (loginFailed) {
102
+ const path = window.location.href.replace(
103
+ "?srfthird_auth_success=false",
104
+ ""
105
+ );
106
+ window.location.href = path;
107
+ } else {
108
+ window.location.reload();
109
+ }
101
110
  }
102
111
  }
103
112
  async cancelChanges() {
@@ -1,6 +1,6 @@
1
- import { ViewEngineBase, ViewController, IPortalViewState, IPortalViewEvent, IWizardPanelController } from '@ibiz-template/runtime';
1
+ import { ViewController, IPortalViewState, IPortalViewEvent, IDashboardController, DEMainViewEngine } from '@ibiz-template/runtime';
2
2
  import { IAppView } from '@ibiz/model-core';
3
- export declare class PortalViewEngine extends ViewEngineBase {
3
+ export declare class PortalViewEngine extends DEMainViewEngine {
4
4
  /**
5
5
  * 视图控制器
6
6
  *
@@ -9,6 +9,12 @@ export declare class PortalViewEngine extends ViewEngineBase {
9
9
  * @memberof PortalViewEngine
10
10
  */
11
11
  protected view: ViewController<IAppView, IPortalViewState, IPortalViewEvent>;
12
+ /**
13
+ * 视图created生命周期执行逻辑
14
+ *
15
+ * @return {*} {Promise<void>}
16
+ * @memberof PortalViewEngine
17
+ */
12
18
  onCreated(): Promise<void>;
13
19
  /**
14
20
  * 数据看板部件
@@ -16,6 +22,28 @@ export declare class PortalViewEngine extends ViewEngineBase {
16
22
  * @readonly
17
23
  * @memberof PortalViewEngine
18
24
  */
19
- get dashboard(): IWizardPanelController;
25
+ get dashboard(): IDashboardController;
26
+ /**
27
+ * 视图刷新
28
+ *
29
+ * @return {*} {Promise<void>}
30
+ * @memberof PortalViewEngine
31
+ */
32
+ refresh(): Promise<void>;
33
+ /**
34
+ * 执行视图预置界面行为能力
35
+ *
36
+ * @param {string} key
37
+ * @param {*} args
38
+ * @return {*} {(Promise<IData | null | undefined>)}
39
+ * @memberof PortalViewEngine
40
+ */
41
+ call(key: string, args: any): Promise<IData | null | undefined>;
20
42
  onMounted(): Promise<void>;
43
+ /**
44
+ * 执行标记数据行为
45
+ *
46
+ * @memberof PortalViewEngine
47
+ */
48
+ doMarkDataAction(): void;
21
49
  }
@@ -1,7 +1,13 @@
1
- import { ViewEngineBase } from '@ibiz-template/runtime';
1
+ import { DEMainViewEngine, SysUIActionTag } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
- class PortalViewEngine extends ViewEngineBase {
4
+ class PortalViewEngine extends DEMainViewEngine {
5
+ /**
6
+ * 视图created生命周期执行逻辑
7
+ *
8
+ * @return {*} {Promise<void>}
9
+ * @memberof PortalViewEngine
10
+ */
5
11
  async onCreated() {
6
12
  await super.onCreated();
7
13
  const { childNames } = this.view;
@@ -16,12 +22,98 @@ class PortalViewEngine extends ViewEngineBase {
16
22
  get dashboard() {
17
23
  return this.view.getController("dashboard");
18
24
  }
25
+ /**
26
+ * 视图刷新
27
+ *
28
+ * @return {*} {Promise<void>}
29
+ * @memberof PortalViewEngine
30
+ */
31
+ async refresh() {
32
+ await this.dashboard.refresh();
33
+ }
34
+ /**
35
+ * 执行视图预置界面行为能力
36
+ *
37
+ * @param {string} key
38
+ * @param {*} args
39
+ * @return {*} {(Promise<IData | null | undefined>)}
40
+ * @memberof PortalViewEngine
41
+ */
42
+ async call(key, args) {
43
+ if (key === SysUIActionTag.REFRESH) {
44
+ if (args.ctrl) {
45
+ await args.ctrl.refresh();
46
+ } else {
47
+ await this.refresh();
48
+ }
49
+ return null;
50
+ }
51
+ return super.call(key, args);
52
+ }
19
53
  async onMounted() {
20
54
  await super.onMounted();
21
55
  if (this.view.model.appDataEntityId) {
22
56
  await this.loadEntityData();
23
57
  }
24
58
  }
59
+ /**
60
+ * 执行标记数据行为
61
+ *
62
+ * @memberof PortalViewEngine
63
+ */
64
+ doMarkDataAction() {
65
+ let data;
66
+ if (this.doActions.includes("VIEW")) {
67
+ const callback = async (_data) => {
68
+ this.markOpenDataCallback(_data, data == null ? void 0 : data.srfmajortext);
69
+ };
70
+ this.view.evt.on("onDataChange", async (event) => {
71
+ data = event.data[0];
72
+ const result = await this.sendMarkDataAction("VIEW", data.srfkey);
73
+ if (result.ok && result.data.length > 0) {
74
+ result.data.forEach((item) => {
75
+ var _a;
76
+ if (item.data) {
77
+ (_a = this.coopPos) == null ? void 0 : _a.updateMessage({
78
+ data: item.data
79
+ });
80
+ }
81
+ });
82
+ }
83
+ this.subscribeMarkDataAction(data.srfkey, callback);
84
+ });
85
+ }
86
+ if (this.doActions.includes("EDIT")) {
87
+ let isWait = false;
88
+ this.dashboard.evt.on("onConfigChange", () => {
89
+ if (!(data == null ? void 0 : data.srfkey) || isWait) {
90
+ return;
91
+ }
92
+ isWait = true;
93
+ this.sendMarkDataAction("EDIT", data.srfkey);
94
+ setTimeout(
95
+ () => {
96
+ isWait = false;
97
+ },
98
+ 1e3 * 60 * 5
99
+ );
100
+ });
101
+ }
102
+ if (this.doActions.includes("UPDATE")) {
103
+ this.dashboard.evt.on("onSavePortlet", () => {
104
+ if (data == null ? void 0 : data.srfkey) {
105
+ this.sendMarkDataAction("UPDATE", data == null ? void 0 : data.srfkey);
106
+ }
107
+ });
108
+ }
109
+ if (this.doActions.includes("CLOSE")) {
110
+ this.view.evt.on("onCloseView", () => {
111
+ if (data == null ? void 0 : data.srfkey) {
112
+ this.sendMarkDataAction("CLOSE", data.srfkey);
113
+ }
114
+ });
115
+ }
116
+ }
25
117
  }
26
118
 
27
119
  export { PortalViewEngine };
@@ -23,4 +23,18 @@ export declare class TreeExpViewEngine extends ExpViewEngine {
23
23
  */
24
24
  get tree(): ITreeController;
25
25
  call(key: string, args: any): Promise<IData | null | undefined>;
26
+ /**
27
+ * 视图mounted生命周期执行逻辑
28
+ *
29
+ * @return {*} {Promise<void>}
30
+ * @memberof TreeExpViewEngine
31
+ */
32
+ onMounted(): Promise<void>;
33
+ /**
34
+ * 加载实体主数据
35
+ *
36
+ * @return {*} {Promise<void>}
37
+ * @memberof TreeExpViewEngine
38
+ */
39
+ loadEntityData(): Promise<void>;
26
40
  }
@@ -1,4 +1,4 @@
1
- import { SysUIActionTag } from '@ibiz-template/runtime';
1
+ import { SysUIActionTag, calcDeCodeNameById } from '@ibiz-template/runtime';
2
2
  import { RuntimeError } from '@ibiz-template/core';
3
3
  import { ExpViewEngine } from './exp-view.engine.mjs';
4
4
 
@@ -79,6 +79,29 @@ class TreeExpViewEngine extends ExpViewEngine {
79
79
  }
80
80
  return super.call(key, args);
81
81
  }
82
+ /**
83
+ * 视图mounted生命周期执行逻辑
84
+ *
85
+ * @return {*} {Promise<void>}
86
+ * @memberof TreeExpViewEngine
87
+ */
88
+ async onMounted() {
89
+ await super.onMounted();
90
+ await this.loadEntityData();
91
+ }
92
+ /**
93
+ * 加载实体主数据
94
+ *
95
+ * @return {*} {Promise<void>}
96
+ * @memberof TreeExpViewEngine
97
+ */
98
+ async loadEntityData() {
99
+ const deName = calcDeCodeNameById(this.view.model.appDataEntityId);
100
+ if (!this.view.context[deName] || !this.view.model.showDataInfoBar) {
101
+ return;
102
+ }
103
+ return super.loadEntityData();
104
+ }
82
105
  }
83
106
 
84
107
  export { TreeExpViewEngine };
@@ -105,6 +105,10 @@ const ModalRouterShell = /* @__PURE__ */ defineComponent({
105
105
  const result = await overlay.onWillDismiss();
106
106
  overlay = null;
107
107
  if (isDestroyed.value === false) {
108
+ const historyIndex = pathHistory.indexOf(route.fullPath);
109
+ if (historyIndex !== -1) {
110
+ pathHistory.splice(historyIndex, 1);
111
+ }
108
112
  if ((_a = window.history.state) == null ? void 0 : _a.back) {
109
113
  router.back();
110
114
  } else {
@@ -60,11 +60,12 @@ export declare class AuthGuard {
60
60
  /**
61
61
  * 加载应用数据
62
62
  *
63
- * @author chitanda
64
- * @date 2022-07-20 20:07:50
63
+ * @author tony001
64
+ * @date 2024-12-19 20:12:01
65
+ * @param {IParams} [context]
65
66
  * @return {*} {Promise<void>}
66
67
  */
67
- loadAppData(): Promise<void>;
68
+ loadAppData(context?: IParams): Promise<void>;
68
69
  /**
69
70
  * 加载组织数据
70
71
  *