agilebuilder-ui 1.1.65-tmp16 → 1.1.65-tmp17

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 (441) hide show
  1. package/lib/IntervalSelection/index.js +5 -7
  2. package/lib/IntervalSelection/src/sectionDate.vue.js +17 -21
  3. package/lib/IntervalSelection/src/sectionDate.vue2.js +2 -4
  4. package/lib/_virtual/__vite-browser-external.js +2 -4
  5. package/lib/_virtual/_plugin-vue_export-helper.js +6 -8
  6. package/lib/breadcrumb/index.js +3 -5
  7. package/lib/breadcrumb/src/breadcrumb.vue.js +28 -19
  8. package/lib/breadcrumb/src/breadcrumb.vue2.js +2 -4
  9. package/lib/chat-embed/index.js +3 -5
  10. package/lib/chat-embed/src/chat-addition-data.vue.js +5 -7
  11. package/lib/chat-embed/src/chat-addition-data.vue2.js +11 -13
  12. package/lib/chat-embed/src/chat-addition-data.vue3.js +2 -4
  13. package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +5 -7
  14. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +17 -20
  15. package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +2 -4
  16. package/lib/chat-embed/src/chat-bubble-footer.vue.js +5 -7
  17. package/lib/chat-embed/src/chat-bubble-footer.vue2.js +17 -22
  18. package/lib/chat-embed/src/chat-bubble-footer.vue3.js +2 -4
  19. package/lib/chat-embed/src/chat-embed-message.js +14 -20
  20. package/lib/chat-embed/src/chat-sender.vue.js +5 -7
  21. package/lib/chat-embed/src/chat-sender.vue2.js +110 -123
  22. package/lib/chat-embed/src/chat-sender.vue3.js +2 -4
  23. package/lib/chat-embed/src/components/answer-auto-chart.vue.js +5 -7
  24. package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +42 -50
  25. package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +2 -4
  26. package/lib/chat-embed/src/components/answer-home-chart.vue.js +5 -7
  27. package/lib/chat-embed/src/components/answer-home-chart.vue2.js +3 -6
  28. package/lib/chat-embed/src/components/answer-home-chart.vue3.js +2 -4
  29. package/lib/chat-embed/src/components/answer-interaction-data.vue.js +5 -7
  30. package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +74 -84
  31. package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +2 -4
  32. package/lib/chat-embed/src/components/history-detail.vue.js +5 -7
  33. package/lib/chat-embed/src/components/history-detail.vue2.js +27 -32
  34. package/lib/chat-embed/src/components/history-detail.vue3.js +2 -4
  35. package/lib/chat-embed/src/header.vue.js +5 -7
  36. package/lib/chat-embed/src/header.vue2.js +25 -32
  37. package/lib/chat-embed/src/header.vue3.js +2 -4
  38. package/lib/chat-embed/src/index.vue.js +5 -7
  39. package/lib/chat-embed/src/index.vue2.js +185 -211
  40. package/lib/chat-embed/src/index.vue3.js +2 -4
  41. package/lib/chat-embed/src/recommendation-message.vue.js +5 -7
  42. package/lib/chat-embed/src/recommendation-message.vue2.js +5 -8
  43. package/lib/chat-embed/src/recommendation-message.vue3.js +2 -4
  44. package/lib/chat-embed/src/sidebar-item.vue.js +5 -7
  45. package/lib/chat-embed/src/sidebar-item.vue2.js +84 -93
  46. package/lib/chat-embed/src/sidebar-item.vue3.js +2 -4
  47. package/lib/chat-embed/src/type.js +3 -5
  48. package/lib/chat-embed/src/util/chat-embed-util.js +35 -41
  49. package/lib/chat-embed/src/util/history-message-util.js +63 -85
  50. package/lib/chat-embed/src/util/mcp-utils.js +5 -8
  51. package/lib/chat-embed/src/util/text-file-util.js +7 -11
  52. package/lib/chat-embed/src/voice/index.js +5 -7
  53. package/lib/chat-embed/src/voice/js/crypto-js.js +987 -995
  54. package/lib/chat-embed/src/voice/js/processor/index.umd.js +161 -169
  55. package/lib/chat-embed/src/voice/js/timer.js +7 -10
  56. package/lib/chat-embed/src/voice/voice.vue.js +61 -70
  57. package/lib/date-picker-range/index.js +5 -7
  58. package/lib/date-picker-range/index.vue.js +5 -7
  59. package/lib/date-picker-range/index.vue2.js +59 -63
  60. package/lib/date-picker-range/index.vue3.js +2 -4
  61. package/lib/department-tree/index.js +3 -5
  62. package/lib/department-tree/src/department-tree.vue.js +11 -17
  63. package/lib/department-tree-inline/index.js +3 -5
  64. package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +17 -27
  65. package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +2 -4
  66. package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +17 -27
  67. package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +2 -4
  68. package/lib/department-tree-inline/src/department-tree-inline.vue.js +8 -13
  69. package/lib/department-tree-inline/src/department-tree-service.js +8 -10
  70. package/lib/department-tree-inline/src/search-result.vue.js +19 -23
  71. package/lib/department-tree-inline/src/search-result.vue2.js +2 -4
  72. package/lib/department-tree-mobile/index.js +4 -7
  73. package/lib/department-tree-mobile/src/department-tree-app.vue.js +9 -12
  74. package/lib/department-tree-mobile/src/department-tree-app.vue2.js +2 -4
  75. package/lib/department-tree-mobile/src/department-tree-app.vue3.js +3 -5
  76. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +80 -91
  77. package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +3 -4
  78. package/lib/department-tree-mobile/src/department-tree-service.js +32 -42
  79. package/lib/department-tree-mobile/src/dept-path.vue.js +10 -11
  80. package/lib/department-tree-mobile/src/dept-path.vue2.js +3 -4
  81. package/lib/department-tree-mobile/src/dept-result.vue.js +11 -14
  82. package/lib/department-tree-mobile/src/dept-result.vue2.js +3 -4
  83. package/lib/department-user-tree/index.js +3 -5
  84. package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +10 -14
  85. package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +2 -4
  86. package/lib/department-user-tree/src/department-user-single-tree.vue.js +9 -14
  87. package/lib/department-user-tree/src/department-user-tree.vue.js +14 -20
  88. package/lib/department-user-tree-inline/index.js +3 -5
  89. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +17 -28
  90. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +2 -4
  91. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +21 -33
  92. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +2 -4
  93. package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +8 -13
  94. package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +6 -9
  95. package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +8 -11
  96. package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +7 -12
  97. package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +7 -12
  98. package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +8 -14
  99. package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +14 -20
  100. package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +17 -23
  101. package/lib/department-user-tree-inline/src/group-user-tree-service.js +2 -3
  102. package/lib/department-user-tree-inline/src/search-result.vue.js +12 -15
  103. package/lib/department-user-tree-inline/src/search-result.vue2.js +2 -4
  104. package/lib/department-user-tree-mobile/index.js +4 -7
  105. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +9 -12
  106. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +2 -4
  107. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +3 -5
  108. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +93 -104
  109. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +3 -4
  110. package/lib/department-user-tree-mobile/src/department-user-tree-service.js +20 -30
  111. package/lib/department-user-tree-mobile/src/dept-path.vue.js +10 -11
  112. package/lib/department-user-tree-mobile/src/dept-path.vue2.js +3 -4
  113. package/lib/department-user-tree-mobile/src/dept-result.vue.js +11 -15
  114. package/lib/department-user-tree-mobile/src/dept-result.vue2.js +3 -4
  115. package/lib/directives/prevent-reclick.js +2 -3
  116. package/lib/dynamic-source-select/index.js +5 -7
  117. package/lib/dynamic-source-select/src/dynamic-source-select-service.js +13 -15
  118. package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +173 -183
  119. package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +2 -4
  120. package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +2 -4
  121. package/lib/dynamic-source-select/src/events.js +2 -3
  122. package/lib/empty-state/index.vue.js +5 -8
  123. package/lib/empty-state/index.vue2.js +3 -4
  124. package/lib/fs-preview/index.js +5 -7
  125. package/lib/fs-preview/src/fs-preview.vue.js +63 -72
  126. package/lib/fs-preview/src/fs-preview.vue2.js +2 -4
  127. package/lib/fs-upload/index.js +5 -7
  128. package/lib/fs-upload/src/fs-upload-multi.vue.js +24 -32
  129. package/lib/fs-upload/src/fs-upload-single.vue.js +30 -39
  130. package/lib/fs-upload/src/fs-upload.vue.js +10 -16
  131. package/lib/fs-upload/src/see-big-picture.vue.js +8 -11
  132. package/lib/fs-upload-list/index.js +5 -7
  133. package/lib/fs-upload-list/src/fs-upload-list.vue.js +33 -40
  134. package/lib/fs-upload-list/src/fs-upload-list.vue2.js +2 -4
  135. package/lib/fs-upload-new/index.js +5 -7
  136. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +34 -38
  137. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +3 -4
  138. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +101 -109
  139. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +3 -4
  140. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +5 -7
  141. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +26 -33
  142. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +2 -4
  143. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +27 -31
  144. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +3 -4
  145. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +18 -24
  146. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +3 -4
  147. package/lib/fs-upload-new/src/fs-button-upload.vue.js +5 -7
  148. package/lib/fs-upload-new/src/fs-button-upload.vue2.js +36 -43
  149. package/lib/fs-upload-new/src/fs-button-upload.vue3.js +2 -4
  150. package/lib/fs-upload-new/src/fs-drag-upload.vue.js +5 -7
  151. package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +37 -45
  152. package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +2 -4
  153. package/lib/fs-upload-new/src/fs-preview-new.vue.js +5 -8
  154. package/lib/fs-upload-new/src/fs-preview-new.vue2.js +61 -70
  155. package/lib/fs-upload-new/src/fs-preview-new.vue3.js +2 -4
  156. package/lib/fs-upload-new/src/fs-preview-new.vue4.js +2 -4
  157. package/lib/fs-upload-new/src/fs-upload-new.vue.js +37 -47
  158. package/lib/fs-upload-new/src/fs-upload-new.vue2.js +3 -4
  159. package/lib/hamburger/index.js +3 -5
  160. package/lib/hamburger/src/hamburger.vue.js +10 -14
  161. package/lib/hamburger/src/hamburger.vue2.js +2 -4
  162. package/lib/index.js +40 -383
  163. package/lib/json-view/json-view-dialog.vue.js +12 -15
  164. package/lib/json-view/json-view-dialog.vue2.js +3 -4
  165. package/lib/json-view/json-view.vue.js +3 -4
  166. package/lib/json-view/json-view.vue2.js +27 -31
  167. package/lib/multipart-upload/index.js +5 -7
  168. package/lib/multipart-upload/src/index.vue.js +7 -11
  169. package/lib/multipart-upload/src/multipart-upload-form.vue.js +40 -49
  170. package/lib/multipart-upload/src/multipart-upload-list.vue.js +59 -67
  171. package/lib/organization-input/index.js +5 -7
  172. package/lib/organization-input/src/organization-input.vue.js +31 -37
  173. package/lib/organization-input/src/organization-input.vue2.js +2 -4
  174. package/lib/plugins/export-data-new.js +96 -104
  175. package/lib/plugins/export-data.js +45 -51
  176. package/lib/plugins/index.js +4 -8
  177. package/lib/plugins/public-method.js +2 -3
  178. package/lib/remove-department/index.js +3 -5
  179. package/lib/remove-department/src/remove-department.vue.js +13 -19
  180. package/lib/remove-department/src/remove-dept-service.js +9 -10
  181. package/lib/remove-user/index.js +5 -7
  182. package/lib/remove-user/src/remove-user-service.js +3 -4
  183. package/lib/remove-user/src/remove-user.vue.js +16 -22
  184. package/lib/remove-workgroup/index.js +5 -7
  185. package/lib/remove-workgroup/src/remove-workgroup-service.js +3 -4
  186. package/lib/remove-workgroup/src/remove-workgroup.vue.js +12 -18
  187. package/lib/rich-editor/index.js +5 -7
  188. package/lib/rich-editor/index.vue.js +28 -76
  189. package/lib/rich-editor/tinymce/zh_CN.js +2 -2
  190. package/lib/rich-editor/viewer.vue.js +7 -10
  191. package/lib/row-form/index.js +5 -7
  192. package/lib/row-form/index.vue.js +5 -7
  193. package/lib/row-form/index.vue2.js +41 -47
  194. package/lib/row-form/index.vue3.js +2 -4
  195. package/lib/row-form/operation.vue.js +22 -26
  196. package/lib/row-form/operation.vue2.js +3 -4
  197. package/lib/scan-code-input/index.js +5 -7
  198. package/lib/scan-code-input/src/events.js +11 -13
  199. package/lib/scan-code-input/src/scan-code-input.vue.js +9 -15
  200. package/lib/scan-code-input-browser/index.js +5 -7
  201. package/lib/scan-code-input-browser/src/scan-code-input.vue.js +16 -21
  202. package/lib/secret-info/index.js +5 -7
  203. package/lib/secret-info/index.vue.js +6 -9
  204. package/lib/src/api/sso-service.js +34 -36
  205. package/lib/src/api/tab.js +8 -9
  206. package/lib/src/assets/401/401.gif.js +2 -4
  207. package/lib/src/assets/404/404-cloud.png.js +2 -4
  208. package/lib/src/assets/404/404.png.js +2 -4
  209. package/lib/src/assets/chat-embed/robot.gif.js +2 -4
  210. package/lib/src/assets/chat-embed/robot.svg.js +2 -4
  211. package/lib/src/assets/nonemessage.png.js +2 -4
  212. package/lib/src/components/Affix/index.vue.js +5 -7
  213. package/lib/src/components/Affix/index.vue2.js +56 -58
  214. package/lib/src/components/Affix/index.vue3.js +2 -4
  215. package/lib/src/components/Card/index.js +33 -38
  216. package/lib/src/components/Scrollbar/index.vue.js +33 -37
  217. package/lib/src/components/Scrollbar/index.vue2.js +2 -4
  218. package/lib/src/directives/permission/index.js +3 -5
  219. package/lib/src/directives/permission/permission.js +7 -9
  220. package/lib/src/i18n/i18n.js +3 -7
  221. package/lib/src/i18n/langs/cn.js +2 -4
  222. package/lib/src/i18n/langs/en.js +2 -4
  223. package/lib/src/mixins/resizeMixin.js +2 -3
  224. package/lib/src/permission.js +43 -46
  225. package/lib/src/router/index.js +16 -10
  226. package/lib/src/store/getters.js +2 -4
  227. package/lib/src/store/index.js +16 -13
  228. package/lib/src/store/modules/app.js +3 -4
  229. package/lib/src/store/modules/chat-ai-store.js +19 -22
  230. package/lib/src/store/modules/permission.js +10 -11
  231. package/lib/src/store/modules/system.js +7 -9
  232. package/lib/src/store/modules/tab-content.js +13 -15
  233. package/lib/src/store/modules/table.js +2 -3
  234. package/lib/src/store/modules/user.js +89 -95
  235. package/lib/src/utils/auth-api.js +3 -5
  236. package/lib/src/utils/auth.js +69 -139
  237. package/lib/src/utils/calculator/calculator-factory-wf.js +48 -49
  238. package/lib/src/utils/calculator/calculator-factory.js +57 -58
  239. package/lib/src/utils/calculator/calculator-util.js +29 -32
  240. package/lib/src/utils/chat-ai-util.js +17 -25
  241. package/lib/src/utils/common-util.js +271 -356
  242. package/lib/src/utils/eventBus.js +3 -6
  243. package/lib/src/utils/file-util.js +15 -16
  244. package/lib/src/utils/global-prop.js +21 -37
  245. package/lib/src/utils/guid.js +5 -8
  246. package/lib/src/utils/i18n-util.js +16 -24
  247. package/lib/src/utils/iconUtils.js +16 -23
  248. package/lib/src/utils/index.js +26 -40
  249. package/lib/src/utils/insert_css.js +8 -7
  250. package/lib/src/utils/json-util.js +25 -27
  251. package/lib/src/utils/jump-page-utils.js +172 -180
  252. package/lib/src/utils/local-storage.js +2 -3
  253. package/lib/src/utils/menu.js +10 -11
  254. package/lib/src/utils/permission.js +22 -26
  255. package/lib/src/utils/permissionAuth.js +102 -136
  256. package/lib/src/utils/range-selector.js +41 -45
  257. package/lib/src/utils/request.js +77 -86
  258. package/lib/src/utils/resize.js +5 -5
  259. package/lib/src/utils/restful-interface-utils.js +12 -15
  260. package/lib/src/utils/util.js +6 -26
  261. package/lib/src/utils/validate.js +10 -20
  262. package/lib/src/utils/voice-setting-cache.js +140 -153
  263. package/lib/src/utils/watermark-cache.js +9 -14
  264. package/lib/src/utils/watermark.js +23 -30
  265. package/lib/src/utils/workflow-util.js +25 -26
  266. package/lib/src/views/dsc-component/Sidebar/Item.vue.js +5 -7
  267. package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +8 -11
  268. package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +2 -4
  269. package/lib/src/views/dsc-component/Sidebar/Link.vue.js +9 -12
  270. package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +19 -26
  271. package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +2 -4
  272. package/lib/src/views/dsc-component/Sidebar/index.vue.js +12 -20
  273. package/lib/src/views/dsc-component/tabs/tab-content.vue.js +21 -26
  274. package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +2 -4
  275. package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +2 -4
  276. package/lib/src/views/error-page/401.vue.js +9 -13
  277. package/lib/src/views/error-page/401.vue2.js +2 -4
  278. package/lib/src/views/error-page/404.vue.js +7 -11
  279. package/lib/src/views/error-page/404.vue2.js +2 -4
  280. package/lib/src/views/layout/EmptyLayout.vue.js +6 -8
  281. package/lib/src/views/layout/Layout.vue.js +12 -19
  282. package/lib/src/views/layout/Layout.vue2.js +2 -4
  283. package/lib/src/views/layout/NewLayout.vue.js +6 -10
  284. package/lib/src/views/layout/components/AppMain.vue.js +9 -11
  285. package/lib/src/views/layout/components/AppMain.vue2.js +2 -4
  286. package/lib/src/views/layout/components/Breadcrumb/index.vue.js +44 -37
  287. package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +2 -4
  288. package/lib/src/views/layout/components/Menubar/Item.vue.js +5 -7
  289. package/lib/src/views/layout/components/Menubar/Item.vue2.js +12 -14
  290. package/lib/src/views/layout/components/Menubar/Item.vue3.js +2 -4
  291. package/lib/src/views/layout/components/Menubar/Link.vue.js +9 -12
  292. package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +15 -24
  293. package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +2 -4
  294. package/lib/src/views/layout/components/Menubar/index.vue.js +19 -30
  295. package/lib/src/views/layout/components/Sidebar/Item.vue.js +6 -8
  296. package/lib/src/views/layout/components/Sidebar/Item.vue2.js +3 -4
  297. package/lib/src/views/layout/components/Sidebar/Link.vue.js +8 -11
  298. package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +11 -17
  299. package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +2 -4
  300. package/lib/src/views/layout/components/Sidebar/index.vue.js +18 -25
  301. package/lib/src/views/layout/components/iframe-page.vue.js +8 -10
  302. package/lib/src/views/layout/components/iframe-page.vue2.js +2 -4
  303. package/lib/src/views/layout/components/tabs/tab-content.vue.js +10 -14
  304. package/lib/src/views/layout/components/tabs/tab-content.vue2.js +2 -4
  305. package/lib/src/views/layout/components/tabs/tab-content.vue3.js +2 -4
  306. package/lib/src/views/layout/mixin/ResizeHandler.js +3 -5
  307. package/lib/src/views/layout/tab-content-iframe-index.vue.js +8 -10
  308. package/lib/src/views/layout/tab-content-iframe-index.vue2.js +2 -4
  309. package/lib/src/views/layout/tab-content-index.vue.js +12 -18
  310. package/lib/src/views/layout/tab-content-index.vue2.js +2 -4
  311. package/lib/src/views/login/authredirect.vue.js +2 -3
  312. package/lib/src/views/redirect/index.vue.js +17 -8
  313. package/lib/src/views/svg-icon/src/svg-icon.vue.js +2 -4
  314. package/lib/src/views/wf-history/tache-subprocess-history.vue.js +11 -13
  315. package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +2 -4
  316. package/lib/style.css +685 -685
  317. package/lib/super-grid/index.js +5 -7
  318. package/lib/super-grid/src/apis.js +221 -231
  319. package/lib/super-grid/src/columns-config.vue.js +16 -22
  320. package/lib/super-grid/src/components/grid-icon.vue.js +26 -34
  321. package/lib/super-grid/src/components/grid-radio-input.vue.js +15 -18
  322. package/lib/super-grid/src/components/grid-radio-input.vue2.js +3 -4
  323. package/lib/super-grid/src/components/mobile-table-card.js +73 -83
  324. package/lib/super-grid/src/components/select-input.vue.js +98 -106
  325. package/lib/super-grid/src/components/select-input.vue2.js +3 -4
  326. package/lib/super-grid/src/custom-formatter.js +69 -74
  327. package/lib/super-grid/src/dynamic-input.vue.js +142 -159
  328. package/lib/super-grid/src/eventBus.js +3 -6
  329. package/lib/super-grid/src/events.js +34 -36
  330. package/lib/super-grid/src/formValidatorUtil.js +62 -65
  331. package/lib/super-grid/src/formatter.js +36 -41
  332. package/lib/super-grid/src/group-column.vue.js +8 -13
  333. package/lib/super-grid/src/header-context-menu.vue.js +10 -13
  334. package/lib/super-grid/src/header-context-menu.vue2.js +2 -4
  335. package/lib/super-grid/src/index-column.vue.js +7 -10
  336. package/lib/super-grid/src/normal-column-content.vue.js +186 -205
  337. package/lib/super-grid/src/normal-column-content.vue2.js +2 -4
  338. package/lib/super-grid/src/normal-column.vue.js +40 -55
  339. package/lib/super-grid/src/normal-column.vue2.js +2 -4
  340. package/lib/super-grid/src/public-methods.js +12 -14
  341. package/lib/super-grid/src/row-detail.vue.js +7 -10
  342. package/lib/super-grid/src/row-operation.vue.js +19 -26
  343. package/lib/super-grid/src/row-operation.vue2.js +2 -4
  344. package/lib/super-grid/src/scan-util.js +24 -26
  345. package/lib/super-grid/src/search-button.vue.js +12 -17
  346. package/lib/super-grid/src/search-condition-input.vue.js +8 -12
  347. package/lib/super-grid/src/search-condition-list.vue.js +10 -13
  348. package/lib/super-grid/src/search-form-advancedQuery.vue.js +13 -23
  349. package/lib/super-grid/src/search-form-advancedQuery.vue2.js +2 -4
  350. package/lib/super-grid/src/search-form-dialog.vue.js +9 -13
  351. package/lib/super-grid/src/search-form-item.vue.js +16 -24
  352. package/lib/super-grid/src/search-form-item.vue2.js +2 -4
  353. package/lib/super-grid/src/search-form-mobile.vue.js +13 -22
  354. package/lib/super-grid/src/search-form-mobile.vue2.js +2 -4
  355. package/lib/super-grid/src/search-form-number.vue.js +9 -14
  356. package/lib/super-grid/src/search-form-open.vue.js +7 -13
  357. package/lib/super-grid/src/search-form-ordinarySearch.vue.js +11 -19
  358. package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +2 -4
  359. package/lib/super-grid/src/search-form.vue.js +65 -77
  360. package/lib/super-grid/src/search-form.vue2.js +2 -4
  361. package/lib/super-grid/src/search-methods.js +2 -3
  362. package/lib/super-grid/src/selection-column.vue.js +7 -9
  363. package/lib/super-grid/src/store.js +3 -4
  364. package/lib/super-grid/src/super-grid-service.js +121 -128
  365. package/lib/super-grid/src/super-grid.vue.js +186 -217
  366. package/lib/super-grid/src/super-grid.vue2.js +2 -4
  367. package/lib/super-grid/src/utils.js +265 -322
  368. package/lib/super-grid/src/view-image-dialog.vue.js +26 -33
  369. package/lib/super-icon/index.js +5 -7
  370. package/lib/super-icon/src/index.vue.js +5 -7
  371. package/lib/super-icon/src/index.vue2.js +8 -11
  372. package/lib/super-icon/src/index.vue3.js +2 -4
  373. package/lib/super-nine-grid/index.js +5 -7
  374. package/lib/super-nine-grid/src/apis.js +5 -8
  375. package/lib/super-nine-grid/src/custom-formatter.js +5 -7
  376. package/lib/super-nine-grid/src/formatter.js +28 -29
  377. package/lib/super-nine-grid/src/search-form-number.vue.js +8 -12
  378. package/lib/super-nine-grid/src/search-form.vue.js +33 -40
  379. package/lib/super-nine-grid/src/search-form.vue2.js +2 -4
  380. package/lib/super-nine-grid/src/search-methods.js +2 -3
  381. package/lib/super-nine-grid/src/store.js +3 -4
  382. package/lib/super-nine-grid/src/super-grid-service.js +5 -9
  383. package/lib/super-nine-grid/src/super-nine-grid.vue.js +95 -105
  384. package/lib/super-nine-grid/src/super-nine-grid.vue2.js +2 -4
  385. package/lib/super-nine-grid/src/utils.js +31 -27
  386. package/lib/svg-icon/index.js +5 -7
  387. package/lib/svg-icon/src/svg-icon.vue.js +8 -10
  388. package/lib/svg-icon/src/svg-icon.vue2.js +2 -4
  389. package/lib/utils/gogocodeTransfer.js +23 -28
  390. package/lib/utils/memory-cache-utils.js +3 -5
  391. package/lib/utils/organization.js +40 -53
  392. package/lib/utils/utils.js +27 -29
  393. package/lib/utils/value-set.js +68 -70
  394. package/lib/valid-code/index.js +5 -7
  395. package/lib/valid-code/src/valid-code.vue.js +10 -13
  396. package/lib/valid-code/src/valid-code.vue2.js +2 -4
  397. package/lib/workflow-button/index.js +3 -5
  398. package/lib/workflow-button/src/workflow-button.vue.js +34 -39
  399. package/lib/workflow-history-list/index.js +5 -7
  400. package/lib/workflow-history-list/src/api.js +2 -3
  401. package/lib/workflow-history-list/src/workflow-history-list.vue.js +59 -65
  402. package/lib/workflow-history-list/src/workflow-history-list.vue2.js +2 -4
  403. package/lib/workgroup-tree/index.js +5 -7
  404. package/lib/workgroup-tree/src/workgroup-tree.vue.js +11 -17
  405. package/lib/workgroup-tree-inline/index.js +3 -5
  406. package/lib/workgroup-tree-inline/src/search-result.vue.js +21 -25
  407. package/lib/workgroup-tree-inline/src/search-result.vue2.js +2 -4
  408. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +43 -52
  409. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +2 -4
  410. package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +5 -7
  411. package/lib/workgroup-tree-mobile/index.js +5 -8
  412. package/lib/workgroup-tree-mobile/src/dept-result.vue.js +11 -14
  413. package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +3 -4
  414. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +9 -12
  415. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +2 -4
  416. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +3 -5
  417. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +76 -86
  418. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +3 -4
  419. package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +20 -28
  420. package/lib/workgroup-user-tree/index.js +5 -7
  421. package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +11 -17
  422. package/lib/workgroup-user-tree-inline/index.js +3 -5
  423. package/lib/workgroup-user-tree-inline/src/search-result.vue.js +21 -25
  424. package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +2 -4
  425. package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +9 -11
  426. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +34 -43
  427. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +2 -4
  428. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +10 -11
  429. package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +3 -4
  430. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +11 -15
  431. package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +3 -4
  432. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +9 -12
  433. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +2 -4
  434. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +3 -5
  435. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +93 -104
  436. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +3 -4
  437. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +16 -25
  438. package/lib/year-range-picker/index.js +3 -5
  439. package/lib/year-range-picker/src/year-range-picker.vue.js +9 -12
  440. package/package.json +1 -1
  441. package/vite.config.js +11 -11
@@ -1,61 +1,56 @@
1
- import { $emit as t } from "../../utils/gogocodeTransfer.js";
2
- import i from "sortablejs";
3
- import { packageEnumAndBeanColumnValueSets as e } from "../../utils/value-set.js";
4
- import s from "./store.js";
5
- import n, { isFieldHasBranchAuth as o } from "../../src/utils/permission.js";
6
- import { isHasOptionFunction as a } from "./utils.js";
7
- const l = { initialize() {
1
+ "use strict";
2
+ const t = require("../../utils/gogocodeTransfer.js"), e = require("sortablejs"), i = require("../../utils/value-set.js"), s = require("./store.js"), n = require("../../src/utils/permission.js"), o = require("./utils.js"), a = { initialize() {
8
3
  (/* @__PURE__ */ new Date()).getTime();
9
- return new Promise((t2, i2) => {
4
+ return new Promise((t2, e2) => {
10
5
  const n2 = s.get(this.code);
11
6
  if (this.options.isAdministerListView)
12
7
  this.getShowColumns(this.options.SuperGrid), Object.assign(this, this.options.SuperGrid), n2.isSql = this.isSql, n2.columns = this.columns, n2.query = this.query, n2.pagination = this.pagination, this.createBackgroundColorMap(), this.hasLoadedColumns = true, this.fetchData(null, null, null, null), t2();
13
8
  else {
14
- let o2;
15
- const l2 = window.sessionStorage.getItem("additionalParamMap");
16
- if (l2 && (l2 && "object" == typeof l2 ? o2 = JSON.stringify(l2) : l2 && "" !== l2 && (o2 = l2)), this.options.additionalParamMap && "object" == typeof this.options.additionalParamMap) {
9
+ let a2;
10
+ const l = window.sessionStorage.getItem("additionalParamMap");
11
+ if (l && (l && "object" == typeof l ? a2 = JSON.stringify(l) : l && "" !== l && (a2 = l)), this.options.additionalParamMap && "object" == typeof this.options.additionalParamMap) {
17
12
  const t3 = JSON.stringify(this.options.additionalParamMap);
18
- o2 ? Object.assign(o2, t3) : o2 = t3;
13
+ a2 ? Object.assign(a2, t3) : a2 = t3;
19
14
  } else if (this.options.additionalParamMap && "" !== this.options.additionalParamMap) {
20
15
  const t3 = this.options.additionalParamMap;
21
- o2 ? Object.assign(o2, t3) : o2 = t3;
16
+ a2 ? Object.assign(a2, t3) : a2 = t3;
22
17
  }
23
- this.options.extraParam && this.options.extraParam.entityMap && (this.parentFormData = this.options.extraParam.entityMap), this.getListViewSetting(o2).then((l3) => {
18
+ this.options.extraParam && this.options.extraParam.entityMap && (this.parentFormData = this.options.extraParam.entityMap), this.getListViewSetting(a2).then((l2) => {
24
19
  var _a;
25
- (/* @__PURE__ */ new Date()).getTime(), this.isLoadCompleteQuery(l3.columns);
20
+ (/* @__PURE__ */ new Date()).getTime(), this.isLoadCompleteQuery(l2.columns);
26
21
  let r = [];
27
- if (r.concat(JSON.parse(JSON.stringify(l3.columns))), l3.branchFieldsMap && Object.keys(l3.branchFieldsMap).length > 0 && l3.branchFieldsMap.allAuthFields && l3.branchFieldsMap.allAuthFields.length > 0 && (n2.branchFieldsMap = l3.branchFieldsMap), l3.columns = this.filterHasAuthColumns(l3.columns, n2, (_a = l3.basicInfo) == null ? void 0 : _a.systemCode), this.getShowColumns(l3), l3.basicInfo && s.set(this.code + "basicInfo", l3.basicInfo), this.options.pageSizes && l3.pagination) {
22
+ if (r.concat(JSON.parse(JSON.stringify(l2.columns))), l2.branchFieldsMap && Object.keys(l2.branchFieldsMap).length > 0 && l2.branchFieldsMap.allAuthFields && l2.branchFieldsMap.allAuthFields.length > 0 && (n2.branchFieldsMap = l2.branchFieldsMap), l2.columns = this.filterHasAuthColumns(l2.columns, n2, (_a = l2.basicInfo) == null ? void 0 : _a.systemCode), this.getShowColumns(l2), l2.basicInfo && s.set(this.code + "basicInfo", l2.basicInfo), this.options.pageSizes && l2.pagination) {
28
23
  let t3 = null;
29
- const i3 = this.options.pageSizes.split(",");
30
- if (i3 && i3.length > 0) {
24
+ const e3 = this.options.pageSizes.split(",");
25
+ if (e3 && e3.length > 0) {
31
26
  t3 = [];
32
- for (var h = 0; h < i3.length; h++)
33
- t3.push(1 * i3[h]);
34
- l3.pagination.pageSize = t3[0];
27
+ for (var h = 0; h < e3.length; h++)
28
+ t3.push(1 * e3[h]);
29
+ l2.pagination.pageSize = t3[0];
35
30
  }
36
- l3.pagination.layout = "total, sizes,prev, pager, next, jumper", l3.pagination.pageSizes = t3;
31
+ l2.pagination.layout = "total, sizes,prev, pager, next, jumper", l2.pagination.pageSizes = t3;
37
32
  }
38
- void 0 !== this.options.initSortInfo && (Array.isArray(this.options.initSortInfo) ? l3.sortInfo = this.options.initSortInfo : (l3.sortInfo = [], l3.sortInfo.push(this.options.initSortInfo))), e(l3.columns, this.code, n2.additionalParamMap, this.parentFormData).then(() => this.getDynamicColumnByBean(o2, l3.dynamicColumnInfo, l3.columns, n2)).then((i3) => {
33
+ void 0 !== this.options.initSortInfo && (Array.isArray(this.options.initSortInfo) ? l2.sortInfo = this.options.initSortInfo : (l2.sortInfo = [], l2.sortInfo.push(this.options.initSortInfo))), i.packageEnumAndBeanColumnValueSets(l2.columns, this.code, n2.additionalParamMap, this.parentFormData).then(() => this.getDynamicColumnByBean(a2, l2.dynamicColumnInfo, l2.columns, n2)).then((e3) => {
39
34
  (/* @__PURE__ */ new Date()).getTime();
40
- let e2 = [];
41
- void 0 !== this.options.showColumns && (e2 = this.options.showColumns.split(","));
42
- let s2 = i3;
35
+ let i2 = [];
36
+ void 0 !== this.options.showColumns && (i2 = this.options.showColumns.split(","));
37
+ let s2 = e3;
43
38
  if (s2 && 0 !== s2.length || this.options.dynamicColumns && this.options.dynamicColumns.length > 0 && (s2 = this.options.dynamicColumns), s2 && s2.length > 0) {
44
- if (r = r.concat(JSON.parse(JSON.stringify(s2))), e2 && e2.length > 0)
39
+ if (r = r.concat(JSON.parse(JSON.stringify(s2))), i2 && i2.length > 0)
45
40
  for (let t3 = 0; t3 < s2.length; t3++) {
46
- const i4 = s2[t3].prop;
47
- s2[t3].dynamic = true, e2.indexOf(i4) >= 0 ? s2[t3].show = true : s2[t3].show = false;
41
+ const e4 = s2[t3].prop;
42
+ s2[t3].dynamic = true, i2.indexOf(e4) >= 0 ? s2[t3].show = true : s2[t3].show = false;
48
43
  }
49
- l3.columns = l3.columns.concat(s2), l3.columns = l3.columns.sort((t3, i4) => t3.displayOrder - i4.displayOrder);
44
+ l2.columns = l2.columns.concat(s2), l2.columns = l2.columns.sort((t3, e4) => t3.displayOrder - e4.displayOrder);
50
45
  }
51
- Object.assign(this, l3), this.options && "undefined" == typeof isSqlSetting && (this.isSql = this.basicInfo.sql), n2.isSql = this.isSql, n2.allColumns = r, n2.columns = this.columns, this.packageColumnOptionMap(n2), this.judgeIsFormSubTable(), n2.colSetting = this.colSetting, n2.lineEdit = this.lineEdit, n2.basicInfo = this.basicInfo, n2.pagination = this.pagination, n2.pageContext = this.pageContext, n2.configureObj = this.configureObj, this.tableName = this.basicInfo.tableName, n2.hiddenColumns = this.options.hiddenColumns ? JSON.parse(JSON.stringify(this.options.hiddenColumns)) : [], this.pagination && (this.pageSize = this.pagination.pageSize), n2.query = this.query, n2.dynamicColumnInfo = this.dynamicColumnInfo, n2.mainDefaultValueColumns = this.mainDefaultValueColumns, n2.contextParameter = this.contextParameter, this.isShowPage = this.isShowPageArea(), this.isSubTableShowPage = !!this.isFormSubTable && this.isShowPage, n2.isSubTableShowPage = this.isSubTableShowPage, this.getDetailColumn(), this.hasLoadedColumns = true;
52
- let o3 = true;
53
- a("loadBeforeSend", this.code) && (o3 = n2.options.loadBeforeSend.call(this, { columns: this.columns, gridParams: n2, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj })), void 0 !== o3 && true !== o3 || this.options.isPageInfo || (void 0 === this.options.initSearch ? (void 0 === n2.basicInfo.initializationQuery || n2.basicInfo.initializationQuery) && (this.loadCompleteQuery ? this.isLoading = false : this.fetchData()) : this.options.initSearch && (this.loadCompleteQuery ? this.isLoading = false : this.fetchData())), this.createBackgroundColorMap(), t2();
46
+ Object.assign(this, l2), this.options && "undefined" == typeof isSqlSetting && (this.isSql = this.basicInfo.sql), n2.isSql = this.isSql, n2.allColumns = r, n2.columns = this.columns, this.packageColumnOptionMap(n2), this.judgeIsFormSubTable(), n2.colSetting = this.colSetting, n2.lineEdit = this.lineEdit, n2.basicInfo = this.basicInfo, n2.pagination = this.pagination, n2.pageContext = this.pageContext, n2.configureObj = this.configureObj, this.tableName = this.basicInfo.tableName, n2.hiddenColumns = this.options.hiddenColumns ? JSON.parse(JSON.stringify(this.options.hiddenColumns)) : [], this.pagination && (this.pageSize = this.pagination.pageSize), n2.query = this.query, n2.dynamicColumnInfo = this.dynamicColumnInfo, n2.mainDefaultValueColumns = this.mainDefaultValueColumns, n2.contextParameter = this.contextParameter, this.isShowPage = this.isShowPageArea(), this.isSubTableShowPage = !!this.isFormSubTable && this.isShowPage, n2.isSubTableShowPage = this.isSubTableShowPage, this.getDetailColumn(), this.hasLoadedColumns = true;
47
+ let a3 = true;
48
+ o.isHasOptionFunction("loadBeforeSend", this.code) && (a3 = n2.options.loadBeforeSend.call(this, { columns: this.columns, gridParams: n2, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj })), void 0 !== a3 && true !== a3 || this.options.isPageInfo || (void 0 === this.options.initSearch ? (void 0 === n2.basicInfo.initializationQuery || n2.basicInfo.initializationQuery) && (this.loadCompleteQuery ? this.isLoading = false : this.fetchData()) : this.options.initSearch && (this.loadCompleteQuery ? this.isLoading = false : this.fetchData())), this.createBackgroundColorMap(), t2();
54
49
  }).catch((t3) => {
55
- i2(t3);
50
+ e2(t3);
56
51
  });
57
52
  }).catch((t3) => {
58
- i2(t3);
53
+ e2(t3);
59
54
  });
60
55
  }
61
56
  (/* @__PURE__ */ new Date()).getTime();
@@ -66,48 +61,48 @@ const l = { initialize() {
66
61
  t2.label = this.$t("superGrid.detail"), this.detailColumn = t2, this.detailColumn;
67
62
  }
68
63
  }, getListViewSetting(t2) {
69
- return new Promise((i2, e2) => {
64
+ return new Promise((e2, i2) => {
70
65
  if (this.settings, this.settings)
71
- i2(this.settings);
66
+ e2(this.settings);
72
67
  else {
73
68
  let s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/" + this.code;
74
69
  const n2 = this.options.isSql;
75
70
  if (this.options && void 0 !== n2 && (this.isSql = n2), s2 = s2 + "?_isSql=" + n2, s2 = s2 + "&_publishVersion=" + this.publishVersion, this.options && void 0 !== this.options.isAdministerListView && this.options.isAdministerListView && (s2 = s2 + "&_isAdminister=" + this.options.isAdministerListView), t2)
76
71
  try {
77
- const i3 = JSON.parse(t2);
78
- for (let t3 in i3) {
79
- const e3 = i3[t3];
80
- null != e3 && (Array.isArray(e3) || "object" == typeof e3 || e3 + "" == "[object Object]" || (s2 = s2 + "&" + t3 + "=" + e3));
72
+ const e3 = JSON.parse(t2);
73
+ for (let t3 in e3) {
74
+ const i3 = e3[t3];
75
+ null != i3 && (Array.isArray(i3) || "object" == typeof i3 || i3 + "" == "[object Object]" || (s2 = s2 + "&" + t3 + "=" + i3));
81
76
  }
82
77
  } catch (t3) {
83
78
  console.error("获得列表配置时附加参数string转换为object错误");
84
79
  }
85
80
  this.isLoading = true, this.$http.get(s2).then((t3) => {
86
- i2(t3);
87
- }).catch((t3) => {
88
81
  e2(t3);
82
+ }).catch((t3) => {
83
+ i2(t3);
89
84
  });
90
85
  }
91
86
  });
92
87
  }, isLoadCompleteQuery(t2) {
93
88
  if (null !== t2) {
94
- let i2 = 0;
89
+ let e2 = 0;
95
90
  t2.forEach((t3) => {
96
- t3.hasOwnProperty("queryType") && t3.hasOwnProperty("prop") && "$index" !== t3.prop && "$selection" !== t3.prop && t3.queryType && "no" !== t3.queryType && t3.componentType && ("date" === t3.componentType || "dateSection" === t3.componentType || "timePicker" === t3.componentType || "dateTimePicker" === t3.componentType) && t3.controlConfig && t3.controlConfig.timeDefaultQueryRange && i2++;
97
- }), i2 > 0 && (this.loadCompleteQuery = true);
91
+ t3.hasOwnProperty("queryType") && t3.hasOwnProperty("prop") && "$index" !== t3.prop && "$selection" !== t3.prop && t3.queryType && "no" !== t3.queryType && t3.componentType && ("date" === t3.componentType || "dateSection" === t3.componentType || "timePicker" === t3.componentType || "dateTimePicker" === t3.componentType) && t3.controlConfig && t3.controlConfig.timeDefaultQueryRange && e2++;
92
+ }), e2 > 0 && (this.loadCompleteQuery = true);
98
93
  }
99
94
  }, packageColumnOptionMap(t2) {
100
- const i2 = {};
101
- t2.columns && t2.columns.length > 0 && this.packageColumnOptionMapItems(t2.columns, i2), t2.columnOptionMap = i2;
102
- }, packageColumnOptionMapItems(t2, i2) {
95
+ const e2 = {};
96
+ t2.columns && t2.columns.length > 0 && this.packageColumnOptionMapItems(t2.columns, e2), t2.columnOptionMap = e2;
97
+ }, packageColumnOptionMapItems(t2, e2) {
103
98
  t2.forEach((t3) => {
104
- t3.children && t3.children.length > 0 && this.packageColumnOptionMapItems(t3.children, i2), t3 && t3.prop && (i2[t3.prop] = t3);
99
+ t3.children && t3.children.length > 0 && this.packageColumnOptionMapItems(t3.children, e2), t3 && t3.prop && (e2[t3.prop] = t3);
105
100
  });
106
- }, getDynamicColumnByBean(t2, i2, e2, s2) {
101
+ }, getDynamicColumnByBean(t2, e2, i2, s2) {
107
102
  return new Promise((n2, o2) => {
108
- if (s2.options.extraParam && s2.options.extraParam.entityMap && (this.parentFormData = s2.options.extraParam.entityMap), !this.options.isPageInfo && i2 && i2.length > 0) {
103
+ if (s2.options.extraParam && s2.options.extraParam.entityMap && (this.parentFormData = s2.options.extraParam.entityMap), !this.options.isPageInfo && e2 && e2.length > 0) {
109
104
  const a2 = [];
110
- this.getDynamicColumnByBeanWithOneSet(t2, i2[0], e2, 0, i2, a2, s2).then((t3) => {
105
+ this.getDynamicColumnByBeanWithOneSet(t2, e2[0], i2, 0, e2, a2, s2).then((t3) => {
111
106
  n2(t3);
112
107
  }).catch((t3) => {
113
108
  o2(t3);
@@ -115,22 +110,22 @@ const l = { initialize() {
115
110
  } else
116
111
  n2([]);
117
112
  });
118
- }, getDynamicColumnByBeanWithOneSet(i2, e2, s2, n2, o2, a2, l2) {
113
+ }, getDynamicColumnByBeanWithOneSet(e2, i2, s2, n2, o2, a2, l) {
119
114
  return new Promise((r, h) => {
120
- if (e2 && e2.beanName) {
121
- const h2 = window.$vueApp.config.globalProperties.baseURL + "/common/dynamic-columns", p = { additionalParams: i2, listCode: this.code, columns: s2, beanName: e2.beanName };
122
- if (this.parentFormData && (l2.dynamicTemp ? (p.parent = l2.dynamicTemp.parent, p.watchParentAttrValues = l2.dynamicTemp.watchParentAttrValues) : p.parent = this.parentFormData, e2.watchParentAttr)) {
123
- e2.watchParentAttr.split(",").forEach((i3) => {
124
- if (i3) {
125
- p.watchParentAttrValues || (p.watchParentAttrValues = {}), p.watchParentAttrValues[i3] = this.parentFormData[i3];
126
- const e3 = this.$watch("parentFormData." + i3, function(s3, n3) {
127
- l2.dynamicTemp || (l2.dynamicTemp = {}), l2.dynamicTemp.parent = this.parentFormData, l2.dynamicTemp.watchParentAttrValues || (l2.dynamicTemp.watchParentAttrValues = {}), l2.dynamicTemp.watchParentAttrValues[i3] = s3, this.$refs && this.$refs.superGrid && (e3(), t(this, "reload-grid"));
115
+ if (i2 && i2.beanName) {
116
+ const h2 = window.$vueApp.config.globalProperties.baseURL + "/common/dynamic-columns", p = { additionalParams: e2, listCode: this.code, columns: s2, beanName: i2.beanName };
117
+ if (this.parentFormData && (l.dynamicTemp ? (p.parent = l.dynamicTemp.parent, p.watchParentAttrValues = l.dynamicTemp.watchParentAttrValues) : p.parent = this.parentFormData, i2.watchParentAttr)) {
118
+ i2.watchParentAttr.split(",").forEach((e3) => {
119
+ if (e3) {
120
+ p.watchParentAttrValues || (p.watchParentAttrValues = {}), p.watchParentAttrValues[e3] = this.parentFormData[e3];
121
+ const i3 = this.$watch("parentFormData." + e3, function(s3, n3) {
122
+ l.dynamicTemp || (l.dynamicTemp = {}), l.dynamicTemp.parent = this.parentFormData, l.dynamicTemp.watchParentAttrValues || (l.dynamicTemp.watchParentAttrValues = {}), l.dynamicTemp.watchParentAttrValues[e3] = s3, this.$refs && this.$refs.superGrid && (i3(), t.$emit(this, "reload-grid"));
128
123
  });
129
124
  }
130
125
  });
131
126
  }
132
127
  this.$http.post(h2, p).then((t2) => {
133
- e2.dynamicColumns = t2, a2 = a2.concat(t2), n2 + 1 < o2.length ? this.getDynamicColumnByBeanWithOneSet(i2, o2[n2 + 1], s2, n2 + 1, o2, a2) : r(a2);
128
+ i2.dynamicColumns = t2, a2 = a2.concat(t2), n2 + 1 < o2.length ? this.getDynamicColumnByBeanWithOneSet(e2, o2[n2 + 1], s2, n2 + 1, o2, a2) : r(a2);
134
129
  }).catch(() => {
135
130
  r([]);
136
131
  });
@@ -138,123 +133,121 @@ const l = { initialize() {
138
133
  r([]);
139
134
  });
140
135
  }, columnDrop() {
141
- const e2 = this;
136
+ const i2 = this;
142
137
  let s2 = false;
143
138
  if (void 0 !== this.options.isDragColumnFlag && null != this.options.isDragColumn && true === this.options.isDragColumn) {
144
139
  s2 = true;
145
140
  const t2 = document.querySelector(".el-table__header-wrapper tr");
146
- null != t2 && (this.sortable = i.create(t2, { animation: 180, delay: 0, onEnd: (t3) => {
147
- let i2 = t3.oldIndex, s3 = t3.newIndex;
141
+ null != t2 && (this.sortable = e.create(t2, { animation: 180, delay: 0, onEnd: (t3) => {
142
+ let e2 = t3.oldIndex, s3 = t3.newIndex;
148
143
  const n2 = [];
149
- for (var o2 = 0; o2 < e2.columns.length; o2++)
150
- "left" !== e2.columns[o2].fixed && "right" !== e2.columns[o2].fixed || n2.push(o2);
144
+ for (var o2 = 0; o2 < i2.columns.length; o2++)
145
+ "left" !== i2.columns[o2].fixed && "right" !== i2.columns[o2].fixed || n2.push(o2);
151
146
  if (n2 && n2.length > 0)
152
147
  for (var a2 = 0; a2 < n2.length; a2++)
153
- n2[a2] >= s3 && s3--, n2[a2] >= i2 && i2--;
154
- if (null != i2 && -1 !== i2 && null != s3 && -1 !== s3) {
155
- if (i2 > s3) {
156
- if (e2.columns && e2.columns.length > 0) {
157
- const t4 = e2.columns[i2];
158
- for (var l2 = i2 - 1; l2 >= s3; l2--) {
159
- const t5 = e2.columns[l2];
160
- t5.displayOrderType = "custom", e2.columns[l2 + 1] = t5;
148
+ n2[a2] >= s3 && s3--, n2[a2] >= e2 && e2--;
149
+ if (null != e2 && -1 !== e2 && null != s3 && -1 !== s3) {
150
+ if (e2 > s3) {
151
+ if (i2.columns && i2.columns.length > 0) {
152
+ const t4 = i2.columns[e2];
153
+ for (var l = e2 - 1; l >= s3; l--) {
154
+ const t5 = i2.columns[l];
155
+ t5.displayOrderType = "custom", i2.columns[l + 1] = t5;
161
156
  }
162
- e2.columns[s3] = t4;
157
+ i2.columns[s3] = t4;
163
158
  }
164
- } else if (e2.columns && e2.columns.length > 0) {
165
- const t4 = e2.columns[i2];
166
- for (var r = i2 + 1; r <= s3; r++) {
167
- const t5 = e2.columns[r];
168
- t5.displayOrderType = "custom", e2.columns[r - 1] = t5;
159
+ } else if (i2.columns && i2.columns.length > 0) {
160
+ const t4 = i2.columns[e2];
161
+ for (var r = e2 + 1; r <= s3; r++) {
162
+ const t5 = i2.columns[r];
163
+ t5.displayOrderType = "custom", i2.columns[r - 1] = t5;
169
164
  }
170
- e2.columns[s3] = t4;
165
+ i2.columns[s3] = t4;
171
166
  }
172
167
  }
173
- e2.indexAfterTheChangeUpdateDisplayOrder(e2.columns, i2, s3, "displayOrder");
168
+ i2.indexAfterTheChangeUpdateDisplayOrder(i2.columns, e2, s3, "displayOrder");
174
169
  let h = [];
175
- h = i2 > s3 ? e2.columns.slice(s3, i2 + 1) : e2.columns.slice(i2, s3 + 1);
176
- const p = { listCode: e2.code, columns: h };
177
- e2.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/drag-columns", p).then((t4) => {
170
+ h = e2 > s3 ? i2.columns.slice(s3, e2 + 1) : i2.columns.slice(e2, s3 + 1);
171
+ const p = { listCode: i2.code, columns: h };
172
+ i2.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/drag-columns", p).then((t4) => {
178
173
  });
179
174
  } }));
180
175
  }
181
176
  if (void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView && !s2) {
182
- const e3 = document.querySelector(".el-table__header-wrapper tr");
183
- null != e3 && (this.sortable = i.create(e3, { animation: 180, delay: 0, onEnd: (i2) => {
184
- const e4 = i2.oldIndex, s3 = i2.newIndex, n2 = this.columns[i2.oldIndex];
185
- this.columns.splice(e4, 1), this.columns.splice(s3, 0, n2), t(this, "columnDrop", e4, s3);
177
+ const i3 = document.querySelector(".el-table__header-wrapper tr");
178
+ null != i3 && (this.sortable = e.create(i3, { animation: 180, delay: 0, onEnd: (e2) => {
179
+ const i4 = e2.oldIndex, s3 = e2.newIndex, n2 = this.columns[e2.oldIndex];
180
+ this.columns.splice(i4, 1), this.columns.splice(s3, 0, n2), t.$emit(this, "columnDrop", i4, s3);
186
181
  } }));
187
182
  }
188
- }, indexAfterTheChangeUpdateDisplayOrder(t2, i2, e2, s2) {
189
- if (t2 && t2.length > 0 && null != i2 && void 0 !== i2 && -1 !== i2 && null != e2 && -1 !== e2 && s2 && "" !== s2) {
190
- const n2 = t2[e2];
191
- if (e2 > i2) {
192
- const o2 = t2[e2 - 1][s2], a2 = t2.slice(i2, e2);
183
+ }, indexAfterTheChangeUpdateDisplayOrder(t2, e2, i2, s2) {
184
+ if (t2 && t2.length > 0 && null != e2 && void 0 !== e2 && -1 !== e2 && null != i2 && -1 !== i2 && s2 && "" !== s2) {
185
+ const n2 = t2[i2];
186
+ if (i2 > e2) {
187
+ const o2 = t2[i2 - 1][s2], a2 = t2.slice(e2, i2);
193
188
  if (a2 && a2.length > 0)
194
189
  for (let t3 = a2.length - 1; t3 > -1; t3--) {
195
- const i3 = a2[t3];
196
- i3[s2] = 0 === t3 ? n2[s2] : a2[t3 - 1][s2];
190
+ const e3 = a2[t3];
191
+ e3[s2] = 0 === t3 ? n2[s2] : a2[t3 - 1][s2];
197
192
  }
198
193
  n2[s2] = o2;
199
194
  } else {
200
- const o2 = t2[e2 + 1][s2], a2 = t2.slice(e2 + 1, i2 + 1);
195
+ const o2 = t2[i2 + 1][s2], a2 = t2.slice(i2 + 1, e2 + 1);
201
196
  if (a2 && a2.length > 0)
202
197
  for (let t3 = 0; t3 < a2.length; t3++) {
203
- const i3 = a2[t3];
204
- t3 === a2.length - 1 ? i3[s2] = n2[s2] : i3[s2] = a2[t3 + 1][s2];
198
+ const e3 = a2[t3];
199
+ t3 === a2.length - 1 ? e3[s2] = n2[s2] : e3[s2] = a2[t3 + 1][s2];
205
200
  }
206
201
  n2[s2] = o2;
207
202
  }
208
203
  }
209
- }, getDisplayOrder: (t2, i2) => t2 && void 0 !== t2.displayOrder && null !== t2.displayOrder ? t2.displayOrder : i2 + 1, getShowColumns(t2) {
210
- let i2 = [];
211
- if (void 0 !== this.options.showColumns && (i2 = this.options.showColumns.split(",")), i2.length > 0) {
212
- const e2 = [];
204
+ }, getDisplayOrder: (t2, e2) => t2 && void 0 !== t2.displayOrder && null !== t2.displayOrder ? t2.displayOrder : e2 + 1, getShowColumns(t2) {
205
+ let e2 = [];
206
+ if (void 0 !== this.options.showColumns && (e2 = this.options.showColumns.split(",")), e2.length > 0) {
207
+ const i2 = [];
213
208
  for (let s2 = 0; s2 < t2.columns.length; s2++) {
214
209
  const n2 = t2.columns[s2], o2 = n2.prop;
215
210
  if ("$index" !== o2 && "$selection" !== o2)
216
211
  if (n2.hasOwnProperty("children")) {
217
- const t3 = this.getChildrenColumns(n2.children, i2);
218
- n2.children = t3, t3.length > 0 && e2.push(n2);
212
+ const t3 = this.getChildrenColumns(n2.children, e2);
213
+ n2.children = t3, t3.length > 0 && i2.push(n2);
219
214
  } else
220
- i2.indexOf(o2) >= 0 && e2.push(n2);
215
+ e2.indexOf(o2) >= 0 && i2.push(n2);
221
216
  else
222
- e2.push(n2);
217
+ i2.push(n2);
223
218
  }
224
- t2.columns = e2;
219
+ t2.columns = i2;
225
220
  }
226
- }, getChildrenColumns(t2, i2) {
227
- const e2 = [];
221
+ }, getChildrenColumns(t2, e2) {
222
+ const i2 = [];
228
223
  for (let s2 = 0; s2 < t2.length; s2++) {
229
224
  const n2 = t2[s2], o2 = n2.prop;
230
225
  if (n2.hasOwnProperty("children")) {
231
- const t3 = this.getChildrenColumns(n2.children, i2);
232
- n2.children = t3, t3.length > 0 && e2.push(n2);
226
+ const t3 = this.getChildrenColumns(n2.children, e2);
227
+ n2.children = t3, t3.length > 0 && i2.push(n2);
233
228
  } else
234
- i2.indexOf(o2) >= 0 && e2.push(n2);
229
+ e2.indexOf(o2) >= 0 && i2.push(n2);
235
230
  }
236
- return e2;
237
- }, saveColumnWidth(t2, i2) {
238
- return new Promise((e2, s2) => {
239
- if (void 0 !== i2) {
240
- const n2 = { prop: t2, width: i2 + "" };
231
+ return i2;
232
+ }, saveColumnWidth(t2, e2) {
233
+ return new Promise((i2, s2) => {
234
+ if (void 0 !== e2) {
235
+ const n2 = { prop: t2, width: e2 + "" };
241
236
  this.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/setting-column-widths/" + this.code, n2).then((t3) => {
242
- e2(i2);
237
+ i2(e2);
243
238
  }).catch((t3) => {
244
239
  s2(t3);
245
240
  });
246
241
  } else
247
- e2();
242
+ i2();
248
243
  });
249
- }, filterHasAuthColumns(t2, i2, e2) {
244
+ }, filterHasAuthColumns(t2, e2, i2) {
250
245
  if (!this.pageContext || !this.configureObj)
251
246
  return t2;
252
247
  const s2 = this.configureObj.code ? this.configureObj.code : this.code;
253
248
  return this.pageContext.subTablePageInfo || (this.pageContext.subTablePageInfo = {}), this.pageContext.subTablePageInfo[s2] || (this.pageContext.subTablePageInfo[s2] = {}), this.pageContext.subTablePageInfo[s2].fields = [], t2.filter((t3) => {
254
- let a2 = true;
255
- return i2.branchFieldsMap && (a2 = o(i2.branchFieldsMap, t3.prop)), t3.functionCode && (a2 = n(t3.functionCode, e2)), !!a2 && ("$index" !== t3.prop && "$selection" !== t3.prop && this.pageContext.subTablePageInfo[s2].fields.push(t3.prop), true);
249
+ let o2 = true;
250
+ return e2.branchFieldsMap && (o2 = n.isFieldHasBranchAuth(e2.branchFieldsMap, t3.prop)), t3.functionCode && (o2 = n.default(t3.functionCode, i2)), !!o2 && ("$index" !== t3.prop && "$selection" !== t3.prop && this.pageContext.subTablePageInfo[s2].fields.push(t3.prop), true);
256
251
  });
257
252
  } };
258
- export {
259
- l as default
260
- };
253
+ module.exports = a;