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,182 +1,120 @@
1
- import "vue";
2
- import { analysisCondition as e, analysisValue as t, getEntityFieldValue as n, setEntityFieldValue as i } from "./util.js";
3
- import { getUuidv4 as o, isMobileBrowser as a, getSystemFrontendUrl as s } from "./common-util.js";
4
- function p(n2, i2, o2, a2, s2, d2, r2, l2) {
5
- const u2 = {};
6
- if (n2) {
7
- u2.visible = true;
8
- let g2 = {};
9
- a2 && "string" == typeof a2 && "" !== a2 ? g2 = JSON.parse(a2) : a2 && "object" == typeof a2 && (g2 = a2);
10
- let m2 = {};
11
- if (s2 && "string" == typeof s2 && "" !== s2 ? m2 = JSON.parse(s2) : s2 && "object" == typeof s2 && (m2 = s2), Array.isArray(n2)) {
12
- for (let t2 = 0; t2 < n2.length; t2++) {
13
- let u3 = false;
14
- const f2 = n2[t2];
15
- if ("none" === f2.jumpConditionType)
16
- u3 = true;
17
- else if ("config" === f2.jumpConditionType)
18
- if (f2.conditions && f2.conditions.length > 0) {
19
- u3 = !!e(JSON.stringify(f2.conditions), i2, g2, m2, o2, d2, r2, l2.pageContext);
20
- } else
21
- u3 = true;
22
- else if ("customFunc" === f2.jumpConditionType) {
23
- const e2 = { row: i2, additionalParamMap: l2.additionalParamMap };
24
- u3 = !!l2.options.eventCallBack[f2.customFunc].call(this, e2);
25
- }
26
- if (u3) {
27
- const e2 = p(f2.jumpPageSetting, i2, o2, a2, s2, d2, r2, l2);
28
- if (e2 && e2.visible) {
29
- const t3 = { ...e2 };
30
- return t3.jumpPageSetting = JSON.stringify(f2.jumpPageSetting), t3.jumpPageItem = f2, t3;
31
- }
32
- }
33
- }
34
- return { visible: false };
35
- }
36
- if (u2.displayTextJudge = n2.displayTextJudge, n2.displayTextJudge) {
37
- const e2 = t(n2.displayText, i2, g2, m2, l2.pageContext);
38
- u2.label = e2;
39
- }
40
- if (n2.icon && (u2.icon = n2.icon), n2.linkTips && (u2.title = n2.linkTips), n2.buttonDisplayConditionsList) {
41
- let t2 = "";
42
- if (n2.buttonDisplayConditionsList && (t2 = JSON.stringify(n2.buttonDisplayConditionsList)), t2 && "" !== t2) {
43
- const n3 = e(t2, i2, g2, m2, o2, d2, r2, l2.pageContext);
44
- u2.visible = n3;
45
- }
46
- }
47
- }
48
- return u2;
49
- }
50
- function d(e2) {
51
- if (e2) {
52
- const t2 = e2.jumpPageSetting, n2 = e2.system, i2 = e2.dataId, o2 = e2.ids, a2 = e2.buttonCode, s2 = e2.additionalParamMap;
53
- r(t2, n2, i2, e2.entity, s2, o2, a2, e2.parentFormData).then((e3) => {
54
- let t3;
55
- if (e3 && (t3 = e3.jumpMode), e3) {
56
- const n3 = e3._path;
57
- if ("popup" === t3) {
58
- let t4, i3;
59
- t4 = e3.jumpPageWidth ? e3.jumpPageWidth : window.innerWidth - 150, i3 = e3.jumpPageHeight ? e3.jumpPageHeight : window.innerHeight - 150, window.open(n3, "", "height=" + i3 + ",width=" + t4 + ",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
60
- } else
61
- "refresh" === t3 && (window.location.href = n3);
62
- }
63
- });
64
- }
65
- }
66
- function r(e2, t2, n2, i2, o2, a2, s2, p2) {
67
- return new Promise((d2, r2) => {
68
- e2 && "string" == typeof e2 && "" !== e2 && (e2 = JSON.parse(e2)), e2.jumpPageUrl || d2(), function(e3, t3, n3, i3) {
69
- return new Promise((o3, a3) => {
70
- if (u(t3))
71
- o3(null);
72
- else if (!e3 || null === e3 || i3.jumpSystemCode && i3.jumpSystemCode !== e3.code)
73
- if (0 === t3.indexOf("page:")) {
74
- const e4 = t3.substring(t3.indexOf("page:") + 5), i4 = window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/with-page-codes/" + e4 + "?isNewPage=" + n3;
75
- window.$vueApp.config.globalProperties.$http.get(i4).then((e5) => {
76
- o3(e5);
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), require("vue");
3
+ const e = require("./util.js"), t = require("./common-util.js");
4
+ function n(e2, t3, n2, s2, p2, d2, r, l) {
5
+ return new Promise((u, g) => {
6
+ e2 && "string" == typeof e2 && "" !== e2 && (e2 = JSON.parse(e2)), e2.jumpPageUrl || u(), function(e3, t4, n3, i2) {
7
+ return new Promise((a2, s3) => {
8
+ if (o(t4))
9
+ a2(null);
10
+ else if (!e3 || null === e3 || i2.jumpSystemCode && i2.jumpSystemCode !== e3.code)
11
+ if (0 === t4.indexOf("page:")) {
12
+ const e4 = t4.substring(t4.indexOf("page:") + 5), i3 = window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/with-page-codes/" + e4 + "?isNewPage=" + n3;
13
+ window.$vueApp.config.globalProperties.$http.get(i3).then((e5) => {
14
+ a2(e5);
77
15
  }).catch((e5) => {
78
- a3(e5);
16
+ s3(e5);
79
17
  });
80
18
  } else {
81
19
  let e4 = window.$vueApp.config.globalProperties.customSystem;
82
20
  e4 || (e4 = window.$vueApp.config.globalProperties.systemCode);
83
- const t4 = window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/" + e4;
84
- window.$vueApp.config.globalProperties.$http.get(t4).then((e5) => {
85
- o3(e5);
21
+ const t5 = window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/" + e4;
22
+ window.$vueApp.config.globalProperties.$http.get(t5).then((e5) => {
23
+ a2(e5);
86
24
  }).catch((e5) => {
87
- a3(e5);
25
+ s3(e5);
88
26
  });
89
27
  }
90
28
  else
91
- o3(e3);
29
+ a2(e3);
92
30
  });
93
- }(t2, e2.jumpPageUrl, e2.isNewPage, e2).then((t3) => {
31
+ }(t3, e2.jumpPageUrl, e2.isNewPage, e2).then((t4) => {
94
32
  if (e2.jumpPageAdditional && e2.jumpPageAdditional.length > 0 || e2.jumpPageTitle && e2.jumpPageTitle.indexOf("${") >= 0) {
95
- const r3 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-pages/parsing-additional-parameters", u2 = {};
96
- u2.jumpPageAdditional = JSON.stringify(e2.jumpPageAdditional), u2.jumpPageTitle = e2.jumpPageTitle, u2.entity = i2;
97
- let m2 = e2._pageData;
98
- m2 || (m2 = {}), o2 || (o2 = {}), Object.assign(o2, m2), u2.additionalParamMap = o2, u2.parentFormData = p2;
99
- const f2 = function(e3) {
33
+ const o2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-pages/parsing-additional-parameters", g2 = {};
34
+ g2.jumpPageAdditional = JSON.stringify(e2.jumpPageAdditional), g2.jumpPageTitle = e2.jumpPageTitle, g2.entity = s2;
35
+ let m = e2._pageData;
36
+ m || (m = {}), p2 || (p2 = {}), Object.assign(p2, m), g2.additionalParamMap = p2, g2.parentFormData = l;
37
+ const c = function(e3) {
100
38
  if (e3 && e3.length > 0)
101
- for (let t4 = 0; t4 < e3.length; t4++) {
102
- const n3 = e3[t4];
39
+ for (let t5 = 0; t5 < e3.length; t5++) {
40
+ const n3 = e3[t5];
103
41
  if (n3.paramName && ("id" === n3.paramName || "ID" === n3.paramName))
104
42
  return true;
105
43
  }
106
44
  }(e2.jumpPageAdditional);
107
- window.$vueApp.config.globalProperties.$http.post(r3, u2).then((i3) => {
108
- l(e2, i3), g(e2, t3, n2, a2, s2, f2).then((e3) => {
109
- d2(e3);
45
+ window.$vueApp.config.globalProperties.$http.post(o2, g2).then((o3) => {
46
+ i(e2, o3), a(e2, t4, n2, d2, r, c).then((e3) => {
47
+ u(e3);
110
48
  });
111
49
  });
112
50
  } else
113
- l(e2), g(e2, t3, n2, a2, s2, false).then((e3) => {
114
- d2(e3);
51
+ i(e2), a(e2, t4, n2, d2, r, false).then((e3) => {
52
+ u(e3);
115
53
  });
116
54
  }).catch((e3) => {
117
- r2(e3);
55
+ g(e3);
118
56
  });
119
57
  });
120
58
  }
121
- function l(e2, t2) {
122
- let n2 = e2._pageData;
123
- n2 || (n2 = {}), t2 || (t2 = {}), e2._pageData && Object.keys(e2._pageData).length > 0 && (t2.uuid || (t2.uuid = o()), n2 = e2._pageData), t2.paramMap || (t2.paramMap = {});
124
- const i2 = { ...n2, ...t2.paramMap };
59
+ function i(e2, n2) {
60
+ let i2 = e2._pageData;
61
+ i2 || (i2 = {}), n2 || (n2 = {}), e2._pageData && Object.keys(e2._pageData).length > 0 && (n2.uuid || (n2.uuid = t.getUuidv4()), i2 = e2._pageData), n2.paramMap || (n2.paramMap = {});
62
+ const o2 = { ...i2, ...n2.paramMap };
125
63
  let a2 = "";
126
- t2 && t2.uuid && (a2 = t2.uuid + "_additionalParamMap", window.sessionStorage.setItem(a2, JSON.stringify(i2))), e2.paramStoreId = a2, t2 && t2.jumpPageTitle && (e2.jumpPageTitle = t2.jumpPageTitle);
64
+ n2 && n2.uuid && (a2 = n2.uuid + "_additionalParamMap", window.sessionStorage.setItem(a2, JSON.stringify(o2))), e2.paramStoreId = a2, n2 && n2.jumpPageTitle && (e2.jumpPageTitle = n2.jumpPageTitle);
127
65
  }
128
- function u(e2) {
66
+ function o(e2) {
129
67
  return 0 === e2.indexOf("http:") || 0 === e2.indexOf("https:");
130
68
  }
131
- function g(e2, t2, n2, i2, o2, p2) {
132
- return new Promise((d2, r2) => {
133
- const l2 = e2.jumpPageUrl;
134
- if (!l2)
69
+ function a(e2, n2, i2, a2, r, l) {
70
+ return new Promise((u, g) => {
71
+ const m = e2.jumpPageUrl;
72
+ if (!m)
135
73
  return;
136
- const g2 = a();
137
- if (0 === l2.indexOf("page:"))
138
- (function(e3, t3, n3, i3, o3, a2, s2, p3) {
139
- return new Promise((d3, r3) => {
140
- const l3 = function(e4) {
74
+ const c = t.isMobileBrowser();
75
+ if (0 === m.indexOf("page:"))
76
+ (function(e3, t3, n3, i3, o2, a3, s2, d2) {
77
+ return new Promise((r2, l2) => {
78
+ const u2 = function(e4) {
141
79
  let t4;
142
80
  e4 && -1 !== e4.indexOf("page:") && (t4 = e4.substring(e4.indexOf("page:") + 5));
143
81
  return t4;
144
82
  }(e3);
145
- let u2;
83
+ let g2;
146
84
  !function(e4, t4) {
147
85
  if (e4 && t4) {
148
86
  let t5 = e4.jumpPageMobileOpenMode;
149
87
  t5 || (e4.jumpPageOpenMode ? (t5 = e4.jumpPageOpenMode, "newTab" === t5 && (t5 = "refresh")) : t5 = "refresh"), "refresh" === t5 && (e4.dialogType = "drawer", e4.jumpPageWidth = "100%", e4.isRefreshWhenClosePopup = true), e4.jumpPageMobileOpenMode = t5;
150
88
  }
151
- }(i3, p3), p3 && i3 && i3.jumpPageMobileOpenMode && (u2 = i3.jumpPageMobileOpenMode), !u2 && i3 && (u2 = i3.jumpPageOpenMode), u2 || (u2 = "refresh");
152
- const g3 = { jumpMode: u2 };
153
- if (window.sessionStorage.setItem(l3 + "-jumpMode", JSON.stringify(g3)), "popup" === u2) {
154
- const e4 = f(t3, l3, n3, i3, u2, o3, a2, s2), p4 = function(e5, t4, n4, i4, o4, a3, s3) {
155
- const p5 = {};
156
- e5 && (p5.jumpPageTitle = e5.jumpPageTitle, p5.jumpPageWidth = e5.jumpPageWidth, p5.jumpPageHeight = e5.jumpPageHeight, p5.valueMappings = e5.valueMappings, p5.updateValueEvent = e5.updateValueEvent, p5.closeEvent = e5.closeEvent, p5.isRefreshWhenClosePopup = e5.isRefreshWhenClosePopup);
89
+ }(i3, d2), d2 && i3 && i3.jumpPageMobileOpenMode && (g2 = i3.jumpPageMobileOpenMode), !g2 && i3 && (g2 = i3.jumpPageOpenMode), g2 || (g2 = "refresh");
90
+ const m2 = { jumpMode: g2 };
91
+ if (window.sessionStorage.setItem(u2 + "-jumpMode", JSON.stringify(m2)), "popup" === g2) {
92
+ const e4 = p(t3, u2, n3, i3, g2, o2, a3, s2), d3 = function(e5, t4, n4, i4, o3, a4, s3) {
93
+ const p2 = {};
94
+ e5 && (p2.jumpPageTitle = e5.jumpPageTitle, p2.jumpPageWidth = e5.jumpPageWidth, p2.jumpPageHeight = e5.jumpPageHeight, p2.valueMappings = e5.valueMappings, p2.updateValueEvent = e5.updateValueEvent, p2.closeEvent = e5.closeEvent, p2.isRefreshWhenClosePopup = e5.isRefreshWhenClosePopup);
157
95
  let d4 = false;
158
96
  void 0 !== t4.standard && (d4 = !t4.standard);
159
- p5.pageCode = n4, (void 0 === e5.isNeedId || null === e5.isNeedId || true === e5.isNeedId) && i4 && (p5.dataId = i4);
160
- return p5.isDsc = d4, p5.paramStoreId = e5.paramStoreId, p5.jumpMode = o4, p5.ids = a3, p5.buttonCode = s3, p5;
161
- }(i3, t3, l3, n3, u2, o3, a2);
162
- p4 && void 0 !== i3.isRefreshWhenClosePopup && null !== i3.isRefreshWhenClosePopup && (p4.isRefreshWhenClosePopup = i3.isRefreshWhenClosePopup), p4._path = e4, p4.customSystem = t3.code, d3(p4);
163
- } else if ("newTab" === u2) {
164
- const e4 = f(t3, l3, n3, i3, u2, o3, a2, s2) + "&_t_=" + (/* @__PURE__ */ new Date()).getTime(), r4 = { _path: e4, pageCode: l3, customSystem: t3.code, jumpMode: u2 };
165
- p3 || window.open(e4), d3(r4);
97
+ p2.pageCode = n4, (void 0 === e5.isNeedId || null === e5.isNeedId || true === e5.isNeedId) && i4 && (p2.dataId = i4);
98
+ return p2.isDsc = d4, p2.paramStoreId = e5.paramStoreId, p2.jumpMode = o3, p2.ids = a4, p2.buttonCode = s3, p2;
99
+ }(i3, t3, u2, n3, g2, o2, a3);
100
+ d3 && void 0 !== i3.isRefreshWhenClosePopup && null !== i3.isRefreshWhenClosePopup && (d3.isRefreshWhenClosePopup = i3.isRefreshWhenClosePopup), d3._path = e4, d3.customSystem = t3.code, r2(d3);
101
+ } else if ("newTab" === g2) {
102
+ const e4 = p(t3, u2, n3, i3, g2, o2, a3, s2) + "&_t_=" + (/* @__PURE__ */ new Date()).getTime(), l3 = { _path: e4, pageCode: u2, customSystem: t3.code, jumpMode: g2 };
103
+ d2 || window.open(e4), r2(l3);
166
104
  } else {
167
- const e4 = { pageCode: l3, customSystem: t3.code, jumpMode: u2, buttonCode: a2, ids: o3 ? o3.join(",") : "" };
105
+ const e4 = { pageCode: u2, customSystem: t3.code, jumpMode: g2, buttonCode: a3, ids: o2 ? o2.join(",") : "" };
168
106
  void 0 !== i3.isNeedId && null !== i3.isNeedId && true !== i3.isNeedId || !s2 && n3 && (e4.id = n3);
169
- const p4 = i3.paramStoreId;
170
- p4 && "" !== p4 && (e4.paramStoreId = p4);
171
- const r4 = f(t3, l3, n3, i3, u2, o3, a2, s2);
172
- e4._path = r4, d3(e4);
107
+ const d3 = i3.paramStoreId;
108
+ d3 && "" !== d3 && (e4.paramStoreId = d3);
109
+ const l3 = p(t3, u2, n3, i3, g2, o2, a3, s2);
110
+ e4._path = l3, r2(e4);
173
111
  }
174
112
  });
175
- })(l2, t2, n2, e2, i2, o2, p2, g2).then((e3) => {
176
- d2(e3);
113
+ })(m, n2, i2, e2, a2, r, l, c).then((e3) => {
114
+ u(e3);
177
115
  });
178
116
  else {
179
- const a2 = (h2 = e2.paramStoreId, function(e3) {
117
+ const p2 = (f = e2.paramStoreId, function(e3) {
180
118
  let t3 = "";
181
119
  if (e3) {
182
120
  const n3 = JSON.parse(e3), i3 = Object.keys(n3);
@@ -184,81 +122,135 @@ function g(e2, t2, n2, i2, o2, p2) {
184
122
  "" !== t3 && (t3 += "&"), t3 += i3[e4], t3 += "=", t3 += n3[i3[e4]];
185
123
  }
186
124
  return t3;
187
- }(window.sessionStorage.getItem(h2)));
188
- let r3 = l2;
189
- if (l2.indexOf("path:") >= 0 && (r3 = l2.substring(l2.indexOf("path:") + 5)), u(r3))
125
+ }(window.sessionStorage.getItem(f)));
126
+ let g2 = m;
127
+ if (m.indexOf("path:") >= 0 && (g2 = m.substring(m.indexOf("path:") + 5)), o(g2))
190
128
  ;
191
- else if (t2) {
192
- r3 = s(t2.frontendUrl) + "/#" + r3;
129
+ else if (n2) {
130
+ g2 = t.getSystemFrontendUrl(n2.frontendUrl) + "/#" + g2;
193
131
  }
194
- const f2 = c(t2), P = function(e3, t3, n3, i3, o3, a3, s2, p3, d3) {
195
- if (t3 = m(e3, t3, i3, o3, a3, s2), n3 && "" !== n3) {
132
+ const h = d(n2), P = function(e3, t3, n3, i3, o2, a3, p3, d2, r2) {
133
+ if (t3 = s(e3, t3, i3, o2, a3, p3), n3 && "" !== n3) {
196
134
  let e4 = "";
197
- p3 && (e4 = "&_systemName_=" + encodeURI(p3)), -1 !== t3.indexOf("?") ? (t3 += "&", t3 += n3 + e4) : (t3 += "?", t3 += n3 + e4);
135
+ d2 && (e4 = "&_systemName_=" + encodeURI(d2)), -1 !== t3.indexOf("?") ? (t3 += "&", t3 += n3 + e4) : (t3 += "?", t3 += n3 + e4);
198
136
  }
199
- if (d3)
137
+ if (r2)
200
138
  return t3;
201
- let r4 = "refresh";
202
- i3 && i3.jumpPageOpenMode && (r4 = i3.jumpPageOpenMode);
203
- if ("popup" === r4) {
139
+ let l2 = "refresh";
140
+ i3 && i3.jumpPageOpenMode && (l2 = i3.jumpPageOpenMode);
141
+ if ("popup" === l2) {
204
142
  let e4, n4;
205
143
  e4 = i3.jumpPageWidth ? i3.jumpPageWidth : window.innerWidth - 150, n4 = i3.jumpPageHeight ? i3.jumpPageHeight : window.innerHeight - 150;
206
- const o4 = "height=" + n4 + ", width=" + e4 + ", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";
207
- window.open(t3, "newW", o4);
144
+ const o3 = "height=" + n4 + ", width=" + e4 + ", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";
145
+ window.open(t3, "newW", o3);
208
146
  } else
209
- "newTab" === r4 ? window.open(t3) : location.href = t3;
210
- }(n2, r3, a2, e2, i2, o2, p2, f2, g2);
211
- P && (e2._path = P), d2(e2);
147
+ "newTab" === l2 ? window.open(t3) : location.href = t3;
148
+ }(i2, g2, p2, e2, a2, r, l, h, c);
149
+ P && (e2._path = P), u(e2);
212
150
  }
213
- var h2;
151
+ var f;
214
152
  });
215
153
  }
216
- function m(e2, t2, n2, i2, o2, a2) {
154
+ function s(e2, t3, n2, i2, o2, a2) {
217
155
  if ((void 0 === n2.isNeedId || null === n2.isNeedId || true === n2.isNeedId) && !a2 && e2) {
218
156
  let n3 = "?";
219
- t2.indexOf("?") > 0 && (n3 = "&"), t2 = t2 + n3 + "id=" + e2;
157
+ t3.indexOf("?") > 0 && (n3 = "&"), t3 = t3 + n3 + "id=" + e2;
220
158
  }
221
159
  const s2 = n2.paramStoreId;
222
160
  if (s2 && "" !== s2) {
223
161
  const e3 = "paramStoreId=" + s2;
224
- -1 !== t2.indexOf("?") ? (t2 += "&", t2 += e3) : (t2 += "?", t2 += e3);
162
+ -1 !== t3.indexOf("?") ? (t3 += "&", t3 += e3) : (t3 += "?", t3 += e3);
225
163
  }
226
164
  if (i2 && i2.length > 0) {
227
165
  const e3 = i2.join(","), n3 = "ids=" + e3 + "&_idsStr=" + e3;
228
- -1 !== t2.indexOf("?") ? (t2 += "&", t2 += n3) : (t2 += "?", t2 += n3);
166
+ -1 !== t3.indexOf("?") ? (t3 += "&", t3 += n3) : (t3 += "?", t3 += n3);
229
167
  }
230
- if (o2 && (-1 !== t2.indexOf("?") ? t2 += "&buttonCode=" + o2 : t2 += "?buttonCode=" + o2), void 0 !== n2.isNewPage && true === n2.isNewPage) {
168
+ if (o2 && (-1 !== t3.indexOf("?") ? t3 += "&buttonCode=" + o2 : t3 += "?buttonCode=" + o2), void 0 !== n2.isNewPage && true === n2.isNewPage) {
231
169
  let e3 = "";
232
- e3 = -1 !== t2.indexOf("?") ? "&" : "?", t2 = t2 + e3 + "isNewPage=true";
170
+ e3 = -1 !== t3.indexOf("?") ? "&" : "?", t3 = t3 + e3 + "isNewPage=true";
233
171
  }
234
- return t2;
172
+ return t3;
235
173
  }
236
- function f(e2, t2, n2, i2, o2, a2, p2, d2) {
237
- let r2 = s(e2.frontendUrl) + "/#/dsc-full-screen/page?customSystem=" + e2.code + "&pageCode=" + t2 + "&jumpMode=" + o2;
238
- const l2 = c(e2);
239
- return l2 && (r2 += "&_systemName_=" + encodeURI(l2)), m(n2, r2, i2, a2, p2, d2);
174
+ function p(e2, n2, i2, o2, a2, p2, r, l) {
175
+ let u = t.getSystemFrontendUrl(e2.frontendUrl) + "/#/dsc-full-screen/page?customSystem=" + e2.code + "&pageCode=" + n2 + "&jumpMode=" + a2;
176
+ const g = d(e2);
177
+ return g && (u += "&_systemName_=" + encodeURI(g)), s(i2, u, o2, p2, r, l);
240
178
  }
241
- function c(e2) {
179
+ function d(e2) {
242
180
  if (e2) {
243
- let t2 = "cn";
244
- return window.$locale && (t2 = window.$locale), "cn" === t2 ? e2.name : e2.enName;
181
+ let t3 = "cn";
182
+ return window.$locale && (t3 = window.$locale), "cn" === t3 ? e2.name : e2.enName;
245
183
  }
246
184
  }
247
- function h(e2, t2, o2, a2, s2, p2) {
248
- if (e2 && null !== e2 && a2 && null !== a2 && o2 && null !== o2 && o2.valueMappings) {
249
- let d2 = e2;
250
- Array.isArray(e2) && e2.length > 0 && (d2 = e2[0]);
251
- o2.valueMappings.forEach((e3) => {
252
- let o3 = e3.source, r2 = n(d2, o3);
253
- null == r2 && (o3 && t2 && o3.indexOf(".") > 0 && (o3 = t2 + "__" + o3), r2 = n(d2, o3));
254
- let l2 = e3.target;
255
- void 0 !== p2 && true === p2 && l2 && s2 && l2.indexOf(".") > 0 && (l2 = s2 + "__" + l2), i(a2, l2, r2);
185
+ exports.initialization = function t2(n2, i2, o2, a2, s2, p2, d2, r) {
186
+ const l = {};
187
+ if (n2) {
188
+ l.visible = true;
189
+ let u = {};
190
+ a2 && "string" == typeof a2 && "" !== a2 ? u = JSON.parse(a2) : a2 && "object" == typeof a2 && (u = a2);
191
+ let g = {};
192
+ if (s2 && "string" == typeof s2 && "" !== s2 ? g = JSON.parse(s2) : s2 && "object" == typeof s2 && (g = s2), Array.isArray(n2)) {
193
+ for (let l2 = 0; l2 < n2.length; l2++) {
194
+ let m = false;
195
+ const c = n2[l2];
196
+ if ("none" === c.jumpConditionType)
197
+ m = true;
198
+ else if ("config" === c.jumpConditionType)
199
+ if (c.conditions && c.conditions.length > 0) {
200
+ m = !!e.analysisCondition(JSON.stringify(c.conditions), i2, u, g, o2, p2, d2, r.pageContext);
201
+ } else
202
+ m = true;
203
+ else if ("customFunc" === c.jumpConditionType) {
204
+ const e2 = { row: i2, additionalParamMap: r.additionalParamMap };
205
+ m = !!r.options.eventCallBack[c.customFunc].call(this, e2);
206
+ }
207
+ if (m) {
208
+ const e2 = t2(c.jumpPageSetting, i2, o2, a2, s2, p2, d2, r);
209
+ if (e2 && e2.visible) {
210
+ const t3 = { ...e2 };
211
+ return t3.jumpPageSetting = JSON.stringify(c.jumpPageSetting), t3.jumpPageItem = c, t3;
212
+ }
213
+ }
214
+ }
215
+ return { visible: false };
216
+ }
217
+ if (l.displayTextJudge = n2.displayTextJudge, n2.displayTextJudge) {
218
+ const t3 = e.analysisValue(n2.displayText, i2, u, g, r.pageContext);
219
+ l.label = t3;
220
+ }
221
+ if (n2.icon && (l.icon = n2.icon), n2.linkTips && (l.title = n2.linkTips), n2.buttonDisplayConditionsList) {
222
+ let t3 = "";
223
+ if (n2.buttonDisplayConditionsList && (t3 = JSON.stringify(n2.buttonDisplayConditionsList)), t3 && "" !== t3) {
224
+ const n3 = e.analysisCondition(t3, i2, u, g, o2, p2, d2, r.pageContext);
225
+ l.visible = n3;
226
+ }
227
+ }
228
+ }
229
+ return l;
230
+ }, exports.jumpToPage = n, exports.openPage = function(e2) {
231
+ if (e2) {
232
+ const t3 = e2.jumpPageSetting, i2 = e2.system, o2 = e2.dataId, a2 = e2.ids, s2 = e2.buttonCode, p2 = e2.additionalParamMap;
233
+ n(t3, i2, o2, e2.entity, p2, a2, s2, e2.parentFormData).then((e3) => {
234
+ let t4;
235
+ if (e3 && (t4 = e3.jumpMode), e3) {
236
+ const n2 = e3._path;
237
+ if ("popup" === t4) {
238
+ let t5, i3;
239
+ t5 = e3.jumpPageWidth ? e3.jumpPageWidth : window.innerWidth - 150, i3 = e3.jumpPageHeight ? e3.jumpPageHeight : window.innerHeight - 150, window.open(n2, "", "height=" + i3 + ",width=" + t5 + ",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
240
+ } else
241
+ "refresh" === t4 && (window.location.href = n2);
242
+ }
243
+ });
244
+ }
245
+ }, exports.updateWithPageValue = function(t3, n2, i2, o2, a2, s2) {
246
+ if (t3 && null !== t3 && o2 && null !== o2 && i2 && null !== i2 && i2.valueMappings) {
247
+ let p2 = t3;
248
+ Array.isArray(t3) && t3.length > 0 && (p2 = t3[0]);
249
+ i2.valueMappings.forEach((t4) => {
250
+ let i3 = t4.source, d2 = e.getEntityFieldValue(p2, i3);
251
+ null == d2 && (i3 && n2 && i3.indexOf(".") > 0 && (i3 = n2 + "__" + i3), d2 = e.getEntityFieldValue(p2, i3));
252
+ let r = t4.target;
253
+ void 0 !== s2 && true === s2 && r && a2 && r.indexOf(".") > 0 && (r = a2 + "__" + r), e.setEntityFieldValue(o2, r, d2);
256
254
  });
257
255
  }
258
- }
259
- export {
260
- p as initialization,
261
- r as jumpToPage,
262
- d as openPage,
263
- h as updateWithPageValue
264
256
  };
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  let e = localStorage;
2
3
  e = { get length() {
3
4
  return localStorage.length;
@@ -14,6 +15,4 @@ e = { get length() {
14
15
  }
15
16
  } };
16
17
  const t = e;
17
- export {
18
- t as default
19
- };
18
+ module.exports = t;
@@ -1,14 +1,13 @@
1
- import { getLanguageWithLocale as i } from "./util.js";
2
- function e(e2) {
3
- if (e2) {
4
- if (e2.i18Names) {
5
- const n = i(), r = JSON.parse(e2.i18Names);
6
- if (r[n])
7
- return r[n];
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const e = require("./util.js");
4
+ exports.getI18nName = function(t) {
5
+ if (t) {
6
+ if (t.i18Names) {
7
+ const i = e.getLanguageWithLocale(), n = JSON.parse(t.i18Names);
8
+ if (n[i])
9
+ return n[i];
8
10
  }
9
- return e2.i18nValue ? e2.i18nValue : e2.name;
11
+ return t.i18nValue ? t.i18nValue : t.name;
10
12
  }
11
- }
12
- export {
13
- e as getI18nName
14
13
  };
@@ -1,18 +1,19 @@
1
- import "nprogress/nprogress.css";
2
- import { isDevpAccess as r, getTotalPermissions as e } from "./permissionAuth.js";
3
- function n(n2, s2) {
4
- if (n2 && "true" === n2)
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }), require("nprogress/nprogress.css");
3
+ const e = require("./permissionAuth.js");
4
+ function s(s2, t) {
5
+ if (s2 && "true" === s2)
5
6
  return true;
6
- if (n2) {
7
- if (r())
7
+ if (s2) {
8
+ if (e.isDevpAccess())
8
9
  return true;
9
10
  let i = false;
10
- const o = e(s2);
11
- if (null != o) {
12
- const r2 = n2.split(",");
13
- for (let e2 = 0; e2 < r2.length; e2++) {
14
- const n3 = t(r2[e2], o);
15
- if (void 0 !== n3 && true === n3) {
11
+ const n = e.getTotalPermissions(t);
12
+ if (null != n) {
13
+ const e2 = s2.split(",");
14
+ for (let s3 = 0; s3 < e2.length; s3++) {
15
+ const t2 = r(e2[s3], n);
16
+ if (void 0 !== t2 && true === t2) {
16
17
  i = true;
17
18
  break;
18
19
  }
@@ -22,24 +23,19 @@ function n(n2, s2) {
22
23
  }
23
24
  return console.error('need permission2! Like v-permission="acs.department.save"'), true;
24
25
  }
25
- function t(r2, e2) {
26
- const n2 = e2[r2.replace(/\./g, "__")];
27
- if (void 0 !== n2 && true === n2)
26
+ function r(e2, s2) {
27
+ const r2 = s2[e2.replace(/\./g, "__")];
28
+ if (void 0 !== r2 && true === r2)
28
29
  return true;
29
30
  }
30
- function s(r2, e2) {
31
- if (r2) {
32
- const n2 = r2.hasAuthFields;
33
- if (n2 && n2.includes(e2))
31
+ exports.checkPermission = s, exports.default = s, exports.isFieldHasBranchAuth = function(e2, s2) {
32
+ if (e2) {
33
+ const r2 = e2.hasAuthFields;
34
+ if (r2 && r2.includes(s2))
34
35
  return true;
35
- const t2 = r2.allAuthFields;
36
- if (t2 && t2.includes(e2))
36
+ const t = e2.allAuthFields;
37
+ if (t && t.includes(s2))
37
38
  return false;
38
39
  }
39
40
  return true;
40
- }
41
- export {
42
- n as checkPermission,
43
- n as default,
44
- s as isFieldHasBranchAuth
45
41
  };