@ibiz-template/vue3-components 0.7.38-alpha.21 → 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 (351) hide show
  1. package/dist/chart-NHocZH22.js +1 -0
  2. package/dist/ibiz-markdown-editor-BZ8j-yda.js +1 -0
  3. package/dist/index-BLHbMaxB.js +1 -0
  4. package/dist/index-D22WGUVe.js +1 -0
  5. package/dist/index-b76YR_Js.js +4 -0
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.system.min.js +1 -1
  8. package/dist/wang-editor-Btv6GIhJ.js +1 -0
  9. package/dist/{xlsx-util-BlkeQIMu.js → xlsx-util-BoMFhSd9.js} +1 -1
  10. package/es/common/action-toolbar/action-toolbar.css +1 -1
  11. package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
  12. package/es/common/button-list/button-list.css +1 -1
  13. package/es/common/custom-filter-condition/custom-filter-condition.d.ts +5 -0
  14. package/es/common/custom-theme/custom-theme-model.mjs +168 -47
  15. package/es/common/custom-theme/custom-theme.controller.d.ts +87 -1
  16. package/es/common/custom-theme/custom-theme.controller.mjs +235 -5
  17. package/es/common/custom-theme/custom-theme.css +1 -1
  18. package/es/common/custom-theme/custom-theme.d.ts +5 -3
  19. package/es/common/custom-theme/custom-theme.mjs +190 -26
  20. package/es/common/data-import2/data-import2.mjs +1 -1
  21. package/es/common/gantt-setting/gantt-setting.css +1 -1
  22. package/es/common/gantt-setting/gantt-setting.d.ts +10 -0
  23. package/es/common/gantt-setting/gantt-setting.mjs +23 -3
  24. package/es/common/grid-setting/grid-setting.d.ts +1 -0
  25. package/es/common/grid-setting/grid-setting.mjs +1 -1
  26. package/es/common/nav-split/nav-split.mjs +0 -1
  27. package/es/common/no-data/no-data.css +1 -1
  28. package/es/common/no-data/no-data.d.ts +3 -3
  29. package/es/common/no-data/no-data.mjs +2 -2
  30. package/es/common/view-message/view-message.d.ts +7 -0
  31. package/es/control/app-menu/app-menu.css +1 -1
  32. package/es/control/app-menu/app-menu.mjs +8 -6
  33. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -0
  34. package/es/control/calendar/calendar-util.d.ts +24 -0
  35. package/es/control/calendar/calendar-util.mjs +21 -0
  36. package/es/control/calendar/calendar.css +1 -1
  37. package/es/control/calendar/calendar.d.ts +2 -0
  38. package/es/control/calendar/calendar.mjs +94 -25
  39. package/es/control/calendar/components/calendar-user/calendar-user.css +1 -0
  40. package/es/control/calendar/components/calendar-user/calendar-user.d.ts +15 -0
  41. package/es/control/calendar/components/calendar-user/calendar-user.mjs +133 -0
  42. package/es/control/calendar/components/calendar-user/index.d.ts +15 -0
  43. package/es/control/calendar/components/calendar-user/index.mjs +9 -0
  44. package/es/control/calendar/components/calendar-user/use-calendar-user.d.ts +17 -0
  45. package/es/control/calendar/components/calendar-user/use-calendar-user.mjs +59 -0
  46. package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
  47. package/es/control/calendar/components/calendar-week/calendar-week.mjs +3 -2
  48. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +11 -0
  49. package/es/control/calendar/components/interface/calendar-user.d.ts +10 -0
  50. package/es/control/calendar/components/interface/calendar-user.mjs +20 -0
  51. package/es/control/calendar/components/interface/index.d.ts +1 -0
  52. package/es/control/calendar/components/interface/index.mjs +1 -0
  53. package/es/control/calendar/index.d.ts +2 -0
  54. package/es/control/caption-bar/caption-bar.css +1 -1
  55. package/es/control/chart/chart.css +1 -1
  56. package/es/control/chart/chart.d.ts +1 -0
  57. package/es/control/chart/chart.mjs +12 -5
  58. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +136 -0
  59. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
  60. package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +1 -0
  61. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +38 -17
  62. package/es/control/dashboard/dashboard-design/dashboard-design.util.d.ts +10 -0
  63. package/es/control/dashboard/dashboard-design/dashboard-design.util.mjs +246 -0
  64. package/es/control/dashboard/dashboard.mjs +13 -1
  65. package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
  66. package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +7 -3
  67. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
  68. package/es/control/data-view/data-view.css +1 -1
  69. package/es/control/data-view/data-view.mjs +8 -1
  70. package/es/control/drbar/drbar.controller.mjs +1 -1
  71. package/es/control/drtab/drtab-control.util.mjs +1 -1
  72. package/es/control/drtab/drtab.controller.d.ts +19 -7
  73. package/es/control/drtab/drtab.controller.mjs +36 -9
  74. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
  75. package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +35 -0
  76. package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +93 -0
  77. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  78. package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
  79. package/es/control/form/form-detail/form-item/form-item.mjs +68 -33
  80. package/es/control/form/form-detail/form-item/index.d.ts +1 -0
  81. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +171 -0
  82. package/es/control/form/search-form/index.d.ts +9 -0
  83. package/es/control/form/search-form/search-form.d.ts +9 -0
  84. package/es/control/form/search-form/search-form.mjs +4 -0
  85. package/es/control/gantt/gantt.css +1 -1
  86. package/es/control/gantt/gantt.d.ts +1 -0
  87. package/es/control/gantt/gantt.mjs +79 -30
  88. package/es/control/gantt/index.d.ts +1 -0
  89. package/es/control/grid/grid/grid-control.util.d.ts +2 -0
  90. package/es/control/grid/grid/grid-control.util.mjs +38 -2
  91. package/es/control/grid/grid/grid.css +1 -1
  92. package/es/control/grid/grid/grid.mjs +14 -4
  93. package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  94. package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
  95. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
  96. package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
  97. package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  98. package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  99. package/es/control/list/list.css +1 -1
  100. package/es/control/list/list.mjs +9 -2
  101. package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
  102. package/es/control/toolbar/toolbar.css +1 -1
  103. package/es/control/toolbar/toolbar.d.ts +2 -2
  104. package/es/control/toolbar/toolbar.mjs +24 -11
  105. package/es/control/tree/index.d.ts +2 -0
  106. package/es/control/tree/tree.css +1 -1
  107. package/es/control/tree/tree.d.ts +2 -0
  108. package/es/control/tree/tree.mjs +87 -6
  109. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
  110. package/es/control/wizard-panel/wizard-panel.mjs +3 -1
  111. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -0
  112. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
  113. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +66 -0
  114. package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +139 -0
  115. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
  116. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +56 -0
  117. package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +178 -0
  118. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +10 -1
  119. package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +48 -4
  120. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +10 -0
  121. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +9 -2
  122. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +12 -3
  123. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  124. package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +3 -1
  125. package/es/editor/data-picker/picker-editor.provider.mjs +0 -1
  126. package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +6 -0
  127. package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +13 -2
  128. package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
  129. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  130. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +11 -2
  131. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
  132. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +83 -0
  133. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +382 -0
  134. package/es/editor/dropdown-list/index.d.ts +1 -0
  135. package/es/editor/dropdown-list/index.mjs +1 -0
  136. package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
  137. package/es/editor/index.mjs +10 -0
  138. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
  139. package/es/editor/span/span/span.mjs +8 -2
  140. package/es/editor/span/span-editor.controller.d.ts +7 -0
  141. package/es/editor/span/span-editor.controller.mjs +10 -0
  142. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
  143. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
  144. package/es/editor/text-box/input/input.css +1 -1
  145. package/es/editor/text-box/input/input.mjs +32 -5
  146. package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
  147. package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
  148. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -0
  149. package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +18 -5
  150. package/es/editor/upload/use/use-iview-upload.mjs +1 -1
  151. package/es/locale/en/index.d.ts +102 -26
  152. package/es/locale/en/index.mjs +79 -30
  153. package/es/locale/zh-CN/index.d.ts +103 -26
  154. package/es/locale/zh-CN/index.mjs +79 -30
  155. package/es/panel-component/auth-sso/auth-sso.css +1 -0
  156. package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
  157. package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
  158. package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
  159. package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
  160. package/es/panel-component/auth-sso/index.d.ts +23 -0
  161. package/es/panel-component/auth-sso/index.mjs +12 -0
  162. package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
  163. package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
  164. package/es/panel-component/coop-pos/coop-pos.css +1 -1
  165. package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
  166. package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
  167. package/es/panel-component/coop-pos/index.d.ts +3 -0
  168. package/es/panel-component/index.mjs +4 -1
  169. package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
  170. package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
  171. package/es/panel-component/panel-app-header/panel-app-header.css +1 -1
  172. package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
  173. package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  174. package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
  175. package/es/panel-component/user-action/user-action.css +1 -1
  176. package/es/panel-component/user-action/user-action.mjs +1 -5
  177. package/es/util/app-popover/app-popover-component.mjs +1 -1
  178. package/es/util/fullscreen/fullscreen-util.mjs +2 -2
  179. package/es/util/notification-util/upload-manager/upload-manager.mjs +1 -1
  180. package/es/view/login-view/login-view.mjs +28 -3
  181. package/es/view/share-view/share-view.mjs +1 -6
  182. package/es/view-engine/custom-view.engine.d.ts +9 -0
  183. package/es/view-engine/custom-view.engine.mjs +17 -1
  184. package/es/view-engine/edit-view.engine.d.ts +6 -14
  185. package/es/view-engine/edit-view.engine.mjs +75 -148
  186. package/es/view-engine/index-view.engine.d.ts +7 -0
  187. package/es/view-engine/index-view.engine.mjs +17 -1
  188. package/es/view-engine/login-view.engine.mjs +11 -1
  189. package/es/view-engine/opt-view.engine.d.ts +1 -0
  190. package/es/view-engine/opt-view.engine.mjs +41 -1
  191. package/es/view-engine/portal-view-engine.d.ts +31 -3
  192. package/es/view-engine/portal-view-engine.mjs +94 -2
  193. package/es/view-engine/tab-search-view.engine.d.ts +9 -1
  194. package/es/view-engine/tab-search-view.engine.mjs +52 -2
  195. package/es/view-engine/tree-exp-view.engine.d.ts +14 -0
  196. package/es/view-engine/tree-exp-view.engine.mjs +24 -1
  197. package/es/web-app/attach-environment-config.mjs +5 -1
  198. package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +4 -0
  199. package/es/web-app/guard/auth-guard/auth-guard.d.ts +25 -17
  200. package/es/web-app/guard/auth-guard/auth-guard.mjs +52 -27
  201. package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
  202. package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
  203. package/es/web-app/main.mjs +3 -1
  204. package/es/web-app/router/index.d.ts +3 -2
  205. package/es/web-app/router/index.mjs +15 -4
  206. package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +9 -0
  207. package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +21 -0
  208. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  209. package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
  210. package/lib/common/button-list/button-list.css +1 -1
  211. package/lib/common/custom-theme/custom-theme-model.cjs +168 -47
  212. package/lib/common/custom-theme/custom-theme.cjs +188 -24
  213. package/lib/common/custom-theme/custom-theme.controller.cjs +235 -5
  214. package/lib/common/custom-theme/custom-theme.css +1 -1
  215. package/lib/common/data-import2/data-import2.cjs +1 -1
  216. package/lib/common/gantt-setting/gantt-setting.cjs +23 -3
  217. package/lib/common/gantt-setting/gantt-setting.css +1 -1
  218. package/lib/common/grid-setting/grid-setting.cjs +1 -1
  219. package/lib/common/nav-split/nav-split.cjs +0 -1
  220. package/lib/common/no-data/no-data.cjs +2 -2
  221. package/lib/common/no-data/no-data.css +1 -1
  222. package/lib/control/app-menu/app-menu.cjs +8 -6
  223. package/lib/control/app-menu/app-menu.css +1 -1
  224. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -0
  225. package/lib/control/calendar/calendar-util.cjs +24 -0
  226. package/lib/control/calendar/calendar.cjs +94 -25
  227. package/lib/control/calendar/calendar.css +1 -1
  228. package/lib/control/calendar/components/calendar-user/calendar-user.cjs +135 -0
  229. package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -0
  230. package/lib/control/calendar/components/calendar-user/index.cjs +14 -0
  231. package/lib/control/calendar/components/calendar-user/use-calendar-user.cjs +63 -0
  232. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +3 -2
  233. package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
  234. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +11 -0
  235. package/lib/control/calendar/components/interface/calendar-user.cjs +23 -0
  236. package/lib/control/calendar/components/interface/index.cjs +3 -0
  237. package/lib/control/caption-bar/caption-bar.css +1 -1
  238. package/lib/control/chart/chart.cjs +12 -5
  239. package/lib/control/chart/chart.css +1 -1
  240. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
  241. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +37 -16
  242. package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +248 -0
  243. package/lib/control/dashboard/dashboard.cjs +13 -1
  244. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +7 -3
  245. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
  246. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
  247. package/lib/control/data-view/data-view.cjs +8 -1
  248. package/lib/control/data-view/data-view.css +1 -1
  249. package/lib/control/drbar/drbar.controller.cjs +1 -1
  250. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  251. package/lib/control/drtab/drtab.controller.cjs +36 -9
  252. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
  253. package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +98 -0
  254. package/lib/control/form/form-detail/form-item/form-item.cjs +67 -32
  255. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  256. package/lib/control/form/search-form/search-form.cjs +4 -0
  257. package/lib/control/gantt/gantt.cjs +78 -29
  258. package/lib/control/gantt/gantt.css +1 -1
  259. package/lib/control/grid/grid/grid-control.util.cjs +37 -1
  260. package/lib/control/grid/grid/grid.cjs +14 -4
  261. package/lib/control/grid/grid/grid.css +1 -1
  262. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
  263. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
  264. package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
  265. package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
  266. package/lib/control/list/list.cjs +9 -2
  267. package/lib/control/list/list.css +1 -1
  268. package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
  269. package/lib/control/toolbar/toolbar.cjs +24 -11
  270. package/lib/control/toolbar/toolbar.css +1 -1
  271. package/lib/control/tree/tree.cjs +87 -6
  272. package/lib/control/tree/tree.css +1 -1
  273. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
  274. package/lib/control/wizard-panel/wizard-panel.cjs +3 -1
  275. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +3 -0
  276. package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +141 -0
  277. package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -0
  278. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +180 -0
  279. package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.css +1 -0
  280. package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +48 -4
  281. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +10 -0
  282. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +9 -2
  283. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -3
  284. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  285. package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +3 -1
  286. package/lib/editor/data-picker/picker-editor.provider.cjs +0 -1
  287. package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +13 -2
  288. package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
  289. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +11 -2
  290. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  291. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +384 -0
  292. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -0
  293. package/lib/editor/dropdown-list/index.cjs +2 -0
  294. package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
  295. package/lib/editor/index.cjs +10 -0
  296. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
  297. package/lib/editor/span/span/span.cjs +8 -2
  298. package/lib/editor/span/span-editor.controller.cjs +10 -0
  299. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
  300. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
  301. package/lib/editor/text-box/input/input.cjs +32 -5
  302. package/lib/editor/text-box/input/input.css +1 -1
  303. package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
  304. package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +18 -5
  305. package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
  306. package/lib/locale/en/index.cjs +79 -30
  307. package/lib/locale/zh-CN/index.cjs +79 -30
  308. package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
  309. package/lib/panel-component/auth-sso/auth-sso.css +1 -0
  310. package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
  311. package/lib/panel-component/auth-sso/index.cjs +17 -0
  312. package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
  313. package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
  314. package/lib/panel-component/coop-pos/coop-pos.css +1 -1
  315. package/lib/panel-component/index.cjs +39 -36
  316. package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
  317. package/lib/panel-component/panel-app-header/panel-app-header.css +1 -1
  318. package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
  319. package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  320. package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
  321. package/lib/panel-component/user-action/user-action.cjs +1 -5
  322. package/lib/panel-component/user-action/user-action.css +1 -1
  323. package/lib/util/app-popover/app-popover-component.cjs +1 -1
  324. package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
  325. package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -1
  326. package/lib/view/login-view/login-view.cjs +26 -1
  327. package/lib/view/share-view/share-view.cjs +0 -5
  328. package/lib/view-engine/custom-view.engine.cjs +16 -0
  329. package/lib/view-engine/edit-view.engine.cjs +74 -147
  330. package/lib/view-engine/index-view.engine.cjs +17 -1
  331. package/lib/view-engine/login-view.engine.cjs +11 -1
  332. package/lib/view-engine/opt-view.engine.cjs +40 -0
  333. package/lib/view-engine/portal-view-engine.cjs +93 -1
  334. package/lib/view-engine/tab-search-view.engine.cjs +52 -2
  335. package/lib/view-engine/tree-exp-view.engine.cjs +23 -0
  336. package/lib/web-app/attach-environment-config.cjs +5 -1
  337. package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -0
  338. package/lib/web-app/guard/auth-guard/auth-guard.cjs +52 -27
  339. package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
  340. package/lib/web-app/main.cjs +3 -1
  341. package/lib/web-app/router/index.cjs +15 -4
  342. package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +21 -0
  343. package/package.json +10 -10
  344. package/dist/chart-DPS_XpZp.js +0 -1
  345. package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
  346. package/dist/index-3cxXHoLs.js +0 -4
  347. package/dist/index-CiEIUSX9.js +0 -1
  348. package/dist/index-HW5stxcy.js +0 -1
  349. package/dist/wang-editor-BUIAd4uJ.js +0 -1
  350. /package/es/node_modules/.pnpm/{@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 → @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
  351. /package/lib/node_modules/.pnpm/{@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 → @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,37 +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;
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();
144
151
  }
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
- if (!this.view.state.noLoadDefault && model.loadDefault) {
153
- this.load();
154
152
  }
155
153
  }
156
154
  getData() {
@@ -338,128 +336,60 @@ class EditViewEngine extends ViewEngineBase {
338
336
  );
339
337
  }
340
338
  /**
341
- * 初始化标记打开数据相关逻辑
342
- * @author lxm
343
- * @date 2024-01-31 11:52:13
344
- * @return {*} {void}
339
+ * 执行数据标记行为
340
+ *
341
+ * @memberof EditViewEngine
345
342
  */
346
- initMarkOpenData() {
347
- var _a;
348
- if (![ViewMode.ROUTE, ViewMode.ROUTE_MODAL].includes(this.view.modal.mode) || !this.view.model.markOpenDataMode) {
349
- return;
350
- }
351
- const modes = this.view.model.markOpenDataMode.split(";");
352
- let hasOpenConfirm = false;
353
- (_a = this.coopPos) == null ? void 0 : _a.initMessageModes(modes);
354
- const callback = async (data) => {
355
- if (!this.view.state.activated) {
356
- return;
357
- }
358
- const dataInfo = this.form.getData()[0].srfmajortext;
359
- let actionMsg = "";
360
- switch (data.action) {
361
- case "VIEW":
362
- actionMsg = ibiz.i18n.t("viewEngine.browseMsg");
363
- break;
364
- case "EDIT":
365
- actionMsg = ibiz.i18n.t("viewEngine.editMsg");
366
- break;
367
- case "UPDATE":
368
- actionMsg = ibiz.i18n.t("viewEngine.updateMsg");
369
- break;
370
- default:
371
- break;
372
- }
373
- const message = "".concat(data.username, " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
374
- if (this.coopPos) {
375
- this.coopPos.updateMessage({
376
- title: message,
377
- data
378
- });
379
- } else {
380
- ibiz.message.notice({
381
- message,
382
- showClose: true,
383
- duration: 3,
384
- styleType: "alert"
385
- });
386
- }
387
- if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
388
- hasOpenConfirm = true;
389
- const isReload = await this.reloadConfirm();
390
- if (isReload) {
391
- this.refresh();
392
- }
393
- hasOpenConfirm = false;
394
- }
395
- };
396
- const doActions = [];
397
- if (modes.includes("EDITDATA") || modes.includes("DISPLAYOPPERSON") || modes.includes("NOTICERELOAD")) {
398
- doActions.push("EDIT", "VIEW", "UPDATE", "CLOSE");
399
- } else if (modes.includes("OPENDATA")) {
400
- doActions.push("VIEW", "CLOSE");
401
- }
402
- if (doActions.length === 0) {
403
- return;
404
- }
405
- let srfkey;
406
- let hasSubscribe = false;
407
- 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
+ };
408
349
  this.form.evt.on("onLoadSuccess", async (event) => {
409
- const formData = event.data[0];
410
- srfkey = formData.srfkey;
411
- const result = await ibiz.markOpenData.action(
412
- this.deName,
413
- srfkey,
414
- "VIEW"
415
- );
350
+ const data = event.data[0];
351
+ const result = await this.sendMarkDataAction("VIEW", data.srfkey);
416
352
  if (result.ok && result.data.length > 0) {
417
353
  result.data.forEach((item) => {
418
- var _a2;
354
+ var _a;
419
355
  if (item.data) {
420
- (_a2 = this.coopPos) == null ? void 0 : _a2.updateMessage({
356
+ (_a = this.coopPos) == null ? void 0 : _a.updateMessage({
421
357
  data: item.data
422
358
  });
423
359
  }
424
360
  });
425
361
  }
426
- if (!hasSubscribe) {
427
- ibiz.markOpenData.subscribe(this.deName, srfkey, callback);
428
- this.view.evt.on("onDestroyed", () => {
429
- ibiz.markOpenData.unsubscribe(this.deName, srfkey, callback);
430
- });
431
- hasSubscribe = true;
432
- }
362
+ this.subscribeMarkDataAction(data.srfkey, callback);
433
363
  });
434
364
  }
435
- if (doActions.includes("EDIT")) {
365
+ if (this.doActions.includes("EDIT")) {
436
366
  let isWait = false;
437
- const actionEdit = () => {
438
- if (!srfkey || isWait) {
367
+ this.form.evt.on("onFormDataChange", (event) => {
368
+ const data = event.data[0];
369
+ if (isWait) {
439
370
  return;
440
371
  }
441
372
  isWait = true;
442
- ibiz.markOpenData.action(this.deName, srfkey, "EDIT");
373
+ this.sendMarkDataAction("EDIT", data.srfkey);
443
374
  setTimeout(
444
375
  () => {
445
376
  isWait = false;
446
377
  },
447
378
  1e3 * 60 * 5
448
379
  );
449
- };
450
- this.form.evt.on("onFormDataChange", actionEdit);
380
+ });
451
381
  }
452
- if (doActions.includes("UPDATE")) {
453
- this.form.evt.on("onSaveSuccess", () => {
454
- if (srfkey) {
455
- ibiz.markOpenData.action(this.deName, srfkey, "UPDATE");
456
- }
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);
457
386
  });
458
387
  }
459
- if (doActions.includes("CLOSE")) {
388
+ if (this.doActions.includes("CLOSE")) {
460
389
  this.view.evt.on("onCloseView", () => {
461
- if (srfkey) {
462
- 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);
463
393
  }
464
394
  });
465
395
  }
@@ -471,10 +401,7 @@ class EditViewEngine extends ViewEngineBase {
471
401
  * @return {*} {Promise<boolean>}
472
402
  */
473
403
  async reloadConfirm() {
474
- const result = await ibiz.confirm.info({
475
- title: ibiz.i18n.t("viewEngine.refreshPrompt"),
476
- desc: ibiz.i18n.t("viewEngine.refreshPagePrompt")
477
- });
404
+ const result = await super.reloadConfirm();
478
405
  if (result && this.form.state.modified) {
479
406
  return ibiz.confirm.warning({
480
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,8 +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
- window.location.reload();
100
+ window.history.pushState({}, "");
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
+ }
100
110
  }
101
111
  }
102
112
  async cancelChanges() {
@@ -16,6 +16,7 @@ export declare class OptViewEngine extends ViewEngineBase {
16
16
  * @memberof OptViewEngine
17
17
  */
18
18
  get form(): IEditFormController;
19
+ protected init(): void;
19
20
  /**
20
21
  * 视图created生命周期执行逻辑
21
22
  *
@@ -1,4 +1,4 @@
1
- import { ViewEngineBase, SysUIActionTag, ViewCallTag } from '@ibiz-template/runtime';
1
+ import { ViewEngineBase, getControl, getControlsByView, SysUIActionTag, ViewCallTag } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  class OptViewEngine extends ViewEngineBase {
@@ -11,6 +11,27 @@ class OptViewEngine extends ViewEngineBase {
11
11
  get form() {
12
12
  return this.view.getController("form");
13
13
  }
14
+ init() {
15
+ super.init();
16
+ if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
17
+ const model = getControl(
18
+ this.view.model,
19
+ "_form_".concat(this.view.params.srfdatatype)
20
+ );
21
+ if (model) {
22
+ const controls = getControlsByView(this.view.model).filter((item) => {
23
+ return item.controlType !== "FORM";
24
+ });
25
+ model.name = "form";
26
+ controls.push(model);
27
+ if (this.view.model.viewLayoutPanel) {
28
+ this.view.model.viewLayoutPanel.controls = controls;
29
+ } else {
30
+ this.view.model.controls = controls;
31
+ }
32
+ }
33
+ }
34
+ }
14
35
  /**
15
36
  * 视图created生命周期执行逻辑
16
37
  *
@@ -64,6 +85,25 @@ class OptViewEngine extends ViewEngineBase {
64
85
  this.form.evt.on("onSaveSuccess", (event) => {
65
86
  formDataStateChange(event);
66
87
  });
88
+ const appDe = await ibiz.hub.getAppDataEntity(
89
+ this.view.model.appDataEntityId,
90
+ this.view.model.appId
91
+ );
92
+ this.form.evt.on("onFormDataChange", (event) => {
93
+ const { name, value } = event;
94
+ if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
95
+ this.view.redrawView({
96
+ context: this.view.context,
97
+ params: {
98
+ ...this.view.params,
99
+ srfdatatype: value,
100
+ srfdefdata: event.data[0],
101
+ [name]: value
102
+ },
103
+ isReloadModel: true
104
+ });
105
+ }
106
+ });
67
107
  if (!this.view.state.noLoadDefault && model.loadDefault) {
68
108
  this.load();
69
109
  }
@@ -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 };
@@ -1,5 +1,5 @@
1
1
  import { ISearchBarController, ISearchFormController, ITabExpPanelController, ITabSearchViewEvent, ITabSearchViewState, ViewController } from '@ibiz-template/runtime';
2
- import { IAppDETabSearchView } from '@ibiz/model-core';
2
+ import { IAppDETabSearchView, IDETabViewPanel } from '@ibiz/model-core';
3
3
  import { TabExpViewEngine } from './tab-exp-view.engine';
4
4
  /**
5
5
  * 编辑视图3(分页关系)
@@ -45,6 +45,14 @@ export declare class TabSearchViewEngine extends TabExpViewEngine {
45
45
  protected preprocessTabExpModelLayout(): void;
46
46
  onCreated(): Promise<void>;
47
47
  onMounted(): Promise<void>;
48
+ /**
49
+ * 给快捷搜索赋默认提示值
50
+ * @author ljx
51
+ * @date 2024-11-12 10:56:25
52
+ * @return {*} {Promise<void>}
53
+ * @memberof TabSearchViewEngine
54
+ */
55
+ onQuickSearchPlaceHolder(tab: IDETabViewPanel): Promise<void>;
48
56
  call(key: string, args: any): Promise<IData | null | undefined>;
49
57
  /**
50
58
  * 获取搜索相关的查询参数
@@ -61,10 +61,60 @@ class TabSearchViewEngine extends TabExpViewEngine {
61
61
  });
62
62
  }
63
63
  if (this.tabExpPanel) {
64
- this.tabExpPanel.evt.on("onTabChange", () => {
65
- this.calcViewParams();
64
+ this.tabExpPanel.evt.on(
65
+ "onTabChange",
66
+ ({ tab }) => {
67
+ this.calcViewParams();
68
+ this.onQuickSearchPlaceHolder(tab);
69
+ }
70
+ );
71
+ const { activeTabViewPanelModel } = this.tabExpPanel;
72
+ if (activeTabViewPanelModel) {
73
+ this.onQuickSearchPlaceHolder(activeTabViewPanelModel);
74
+ }
75
+ }
76
+ }
77
+ /**
78
+ * 给快捷搜索赋默认提示值
79
+ * @author ljx
80
+ * @date 2024-11-12 10:56:25
81
+ * @return {*} {Promise<void>}
82
+ * @memberof TabSearchViewEngine
83
+ */
84
+ async onQuickSearchPlaceHolder(tab) {
85
+ let { caption } = tab;
86
+ const viewConfig = await ibiz.hub.config.view.get(
87
+ tab.embeddedAppDEViewId || ""
88
+ );
89
+ const appDataEntity = await ibiz.hub.getAppDataEntity(
90
+ viewConfig.appDataEntityId,
91
+ viewConfig.appId
92
+ );
93
+ if (appDataEntity) {
94
+ const searchFields = appDataEntity.appDEFields.filter((field) => {
95
+ return field.enableQuickSearch;
66
96
  });
97
+ if (searchFields.length) {
98
+ const placeHolders = [];
99
+ searchFields.forEach((searchField) => {
100
+ if (searchField.lnlanguageRes && searchField.lnlanguageRes.lanResTag) {
101
+ placeHolders.push(
102
+ ibiz.i18n.t(
103
+ searchField.lnlanguageRes.lanResTag,
104
+ searchField.logicName
105
+ )
106
+ );
107
+ } else if (searchField.logicName) {
108
+ placeHolders.push(searchField.logicName);
109
+ }
110
+ });
111
+ if (placeHolders.length > 0) {
112
+ caption = placeHolders.join("\u3001");
113
+ }
114
+ }
67
115
  }
116
+ this.searchBar.placeHolder = caption || "";
117
+ this.searchBar.state.quickSearchPlaceHolder = caption || "";
68
118
  }
69
119
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
70
120
  async call(key, args) {