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,239 +1,150 @@
1
- import "vue";
2
- import { setAllLanguages as e, getAllLanguages as n, getToken as t, getLanguage as o, getCookieCache as i } from "./auth.js";
3
- import { v4 as r } from "uuid";
4
- import s from "./i18n-util.js";
5
- import { Base64 as l } from "js-base64";
6
- import { getWatermarkSetting as a } from "./watermark.js";
7
- import { GLOBAL_PROP as c, cacheAllGlobalPropCache as g } from "./global-prop.js";
8
- import { removeAllSystemPermissions as u, setPermissions as p } from "./permissionAuth.js";
9
- import d from "../api/sso-service.js";
10
- function f(e2) {
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), require("vue");
3
+ const e = require("./auth.js"), t = require("uuid"), o = require("./i18n-util.js"), n = require("js-base64"), i = require("./watermark.js"), r = require("./global-prop.js"), s = require("./permissionAuth.js"), l = require("../api/sso-service.js");
4
+ function a(e2) {
11
5
  if (!e2)
12
6
  return e2;
13
7
  if (void 0 === window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
14
- let n2 = w(location.href);
15
- if (window.sessionStorage.setItem("relativeUrl", n2), n2 && e2) {
16
- let t2 = "";
17
- const o2 = e2.split("/");
18
- if (o2.length >= 3) {
19
- const n3 = o2[0] + "//" + o2[2];
20
- t2 = e2.substring(e2.indexOf(n3) + n3.length);
8
+ let t2 = c(location.href);
9
+ if (window.sessionStorage.setItem("relativeUrl", t2), t2 && e2) {
10
+ let o2 = "";
11
+ const n2 = e2.split("/");
12
+ if (n2.length >= 3) {
13
+ const t3 = n2[0] + "//" + n2[2];
14
+ o2 = e2.substring(e2.indexOf(t3) + t3.length);
21
15
  }
22
- return n2.lastIndexOf("/") === n2.length - 1 && (n2 = n2.substring(0, n2.lastIndexOf("/"))), t2 ? n2 + t2 : n2;
16
+ return t2.lastIndexOf("/") === t2.length - 1 && (t2 = t2.substring(0, t2.lastIndexOf("/"))), o2 ? t2 + o2 : t2;
23
17
  }
24
18
  }
25
19
  return e2;
26
20
  }
27
- function w(e2) {
28
- const n2 = e2.split("#");
29
- if (n2.length > 0) {
30
- const e3 = n2[0];
31
- let t2 = e3;
32
- const o2 = e3.split("/");
33
- return o2.length >= 3 && (t2 = o2[0] + "//" + o2[2] + "/"), t2;
21
+ function c(e2) {
22
+ const t2 = e2.split("#");
23
+ if (t2.length > 0) {
24
+ const e3 = t2[0];
25
+ let o2 = e3;
26
+ const n2 = e3.split("/");
27
+ return n2.length >= 3 && (o2 = n2[0] + "//" + n2[2] + "/"), o2;
34
28
  }
35
29
  }
36
- function m(e2) {
30
+ function g(e2) {
37
31
  if (void 0 === window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
38
- const n2 = location.href;
39
- let t2 = e2;
40
- const o2 = w(e2);
41
- let i2 = w(n2);
42
- if (o2 !== i2) {
43
- let n3 = e2.substring(e2.indexOf(o2) + o2.length);
44
- 0 !== n3.indexOf("/") && (n3 = "/" + n3), i2.lastIndexOf("/") === i2.length - 1 && (i2 = i2.substring(0, i2.lastIndexOf("/"))), t2 = i2 + n3;
32
+ const t2 = location.href;
33
+ let o2 = e2;
34
+ const n2 = c(e2);
35
+ let i2 = c(t2);
36
+ if (n2 !== i2) {
37
+ let t3 = e2.substring(e2.indexOf(n2) + n2.length);
38
+ 0 !== t3.indexOf("/") && (t3 = "/" + t3), i2.lastIndexOf("/") === i2.length - 1 && (i2 = i2.substring(0, i2.lastIndexOf("/"))), o2 = i2 + t3;
45
39
  }
46
- return t2;
40
+ return o2;
47
41
  }
48
42
  return e2;
49
43
  }
50
- function b() {
51
- return new Promise((e2, n2) => {
52
- const t2 = window.location.href;
53
- let o2 = t2, i2 = "", r2 = "";
54
- if (t2.indexOf("#/") > 0 && t2.indexOf("#/login") < 0) {
55
- o2 = t2.substring(0, t2.indexOf("#"));
56
- const e3 = t2.substring(t2.indexOf("#") + 1);
57
- i2 = e3, e3.indexOf("?") > 0 && (i2 = e3.substring(0, e3.indexOf("?")), r2 = e3.substring(e3.indexOf("?") + 1));
58
- } else
59
- o2 = null;
60
- window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/api/portal-frontend-url").then((n3) => e2(((e3 = "") => {
61
- let n4 = e3 + "#/login";
62
- return o2 && (n4 = n4 + "?systemPath=" + o2), i2 && (n4 = n4.indexOf("?") > 0 ? n4 + "&routerPath=" + i2 : n4 + "?routerPath=" + i2), r2 && (n4 = n4.indexOf("?") > 0 ? n4 + "&" + r2 : n4 + "?" + r2), m(n4);
63
- })(n3))).catch((e3) => {
64
- n2(e3);
65
- });
66
- });
67
- }
68
- function h() {
69
- let e2 = window.$vueApp.config.globalProperties.showMenuRoute;
70
- return void 0 === e2 && (e2 = "false"), "true" === e2;
71
- }
72
- function P() {
73
- let e2 = window.$vueApp.config.globalProperties.showSystemMenu;
74
- return void 0 === e2 && (e2 = "false"), "true" === e2;
75
- }
76
- function A(e2) {
77
- return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel && window.$vueApp.config.globalProperties.frontUrl ? window.$vueApp.config.globalProperties.frontUrl : f(e2);
78
- }
79
- function v(e2) {
80
- return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel ? e2 || window.$vueApp.config.globalProperties.frontUrl : f(e2);
81
- }
82
- function _(e2) {
83
- return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel && window.$vueApp.config.globalProperties.baseURL ? window.$vueApp.config.globalProperties.baseURL : f(e2);
84
- }
85
- function $(e2) {
44
+ function u(e2) {
86
45
  return !(!e2 || "agilebuilder" !== e2 && "portal" !== e2 && "mms" !== e2 && "task" !== e2 && "wf" !== e2 && "dc" !== e2 && "mc" !== e2 && "mobile" !== e2 && "acs" !== e2 && "bs" !== e2 && "pcm" !== e2 && "hc" !== e2 && "devp" !== e2);
87
46
  }
88
- function I(e2) {
89
- return new Promise((n2, t2) => {
90
- let o2 = "1";
91
- try {
92
- __BUILD_TIME__ && (o2 = __BUILD_TIME__);
93
- } catch (e3) {
94
- }
95
- e2.get("./server-config.json?t=" + o2).then((e3) => {
96
- const t3 = e3;
97
- for (const e4 in t3)
98
- window.$vueApp.config.globalProperties[e4] = t3[e4];
99
- window.$vueApp.config.globalProperties.baseURL = f(window.$vueApp.config.globalProperties.baseURL), window.$vueApp.config.globalProperties.baseAPI = f(window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_baseAPI_", window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_amb_projectModel_", window.$vueApp.config.globalProperties.projectModel), O(t3), x(t3), n2();
100
- });
101
- });
102
- }
103
- function O(e2) {
47
+ function p(e2) {
104
48
  if (!window.insertCssFile)
105
49
  return;
106
50
  e2 || (e2 = window.$vueApp.config.globalProperties);
107
- let n2 = "1";
51
+ let t2 = "1";
108
52
  try {
109
- __BUILD_TIME__ && (n2 = __BUILD_TIME__);
53
+ __BUILD_TIME__ && (t2 = __BUILD_TIME__);
110
54
  } catch (e3) {
111
55
  }
112
- e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}/iconfont.css?t=${n2}`), e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}-color/iconfont.css?t=${n2}`);
56
+ e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}/iconfont.css?t=${t2}`), e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}-color/iconfont.css?t=${t2}`);
113
57
  }
114
- function x(e2) {
58
+ function d(e2) {
115
59
  window.insertJsFile && (e2 || (e2 = window.$vueApp.config.globalProperties), !e2 || "portal" !== e2.systemCode && "devp" !== e2.systemCode || ((!e2.loginMethod || e2.loginMethod.indexOf("dingtalk") >= 0) && window.insertJsFile("https://g.alicdn.com/dingding/h5-dingtalk-login/0.21.0/ddlogin.js"), (!e2.loginMethod || e2.loginMethod.indexOf("feishu") >= 0) && window.insertJsFile("https://lf-package-cn.feishucdn.com/obj/feishu-static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.3.js"), (!e2.loginMethod || e2.loginMethod.indexOf("qiwei") >= 0) && window.insertJsFile("https://wwcdn.weixin.qq.com/node/open/js/wecom-jssdk-2.3.1.js")));
116
60
  }
117
- function S() {
118
- const e2 = window.location.href;
119
- let n2;
120
- if (e2 && e2.indexOf("/") > 0) {
121
- const t2 = e2.split("/");
122
- n2 = t2[0] + "//" + t2[2];
123
- }
124
- return n2;
125
- }
126
- function M(e2) {
127
- return e2 && "[object Promise]" === Object.prototype.toString.call(e2);
128
- }
129
- function y() {
130
- const e2 = /* @__PURE__ */ new Date() + "";
131
- let n2 = "";
132
- if (e2.indexOf("GMT") > 0) {
133
- const t2 = e2.substring(e2.indexOf("GMT") + 3, e2.indexOf("(")).trim();
134
- n2 = "UTC" + t2.substring(0, t2.length - 2) + ":" + t2.substring(t2.length - 2);
135
- } else
136
- e2.indexOf("UTC") > 0 && (n2 = "UTC" + e2.substring(e2.indexOf("UTC") + 3, e2.indexOf("(")).trim());
137
- return n2;
138
- }
139
- function U(e2) {
140
- if (!window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
141
- const n2 = window.$authApi.getSystemCacheUrlByCode(e2);
142
- n2 && (window.$vueApp.config.globalProperties.baseURL = f(n2));
143
- }
61
+ function f(t2) {
62
+ let o2;
63
+ return t2 && (o2 = JSON.stringify(t2)), e.setAllLanguages(o2);
144
64
  }
145
- function T(e2, n2, t2) {
146
- window.customValidatorRef || (window.customValidatorRef = /* @__PURE__ */ new Map());
147
- let o2 = window.customValidatorRef.get(e2);
148
- o2 || (o2 = /* @__PURE__ */ new Map(), window.customValidatorRef.set(e2, o2)), o2.set(n2, t2);
65
+ function w() {
66
+ return e.getAllLanguages();
149
67
  }
150
- function E(e2, n2) {
151
- if (window.customValidatorRef) {
152
- const t2 = window.customValidatorRef.get(e2);
153
- t2 && t2.delete(n2);
68
+ function m(e2) {
69
+ const t2 = document.getElementById("ambBrowserIcon");
70
+ if (t2) {
71
+ if (e2) {
72
+ const o2 = window.$vueApp.config.globalProperties.baseAPI + "/cfg/project/icon/browserIcon?t=" + __BUILD_TIME__;
73
+ !e2.browserImageUuid || t2.href && t2.href === o2 || (t2.href = o2);
74
+ }
75
+ t2.href || (t2.href = "favicon.svg?t=" + __BUILD_TIME__);
154
76
  }
155
77
  }
156
- function j() {
157
- return navigator.userAgent, navigator.maxTouchPoints, !!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(navigator.userAgent) || !!(/Macintosh/i.test(navigator.userAgent) && void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1);
158
- }
159
- function C(e2) {
160
- return s.getLocaleByLang(e2);
161
- }
162
- function R(n2) {
163
- let t2;
164
- return n2 && (t2 = JSON.stringify(n2)), e(t2);
78
+ function b() {
79
+ return window.$vueApp.config.globalProperties.currentSystem ? window.$vueApp.config.globalProperties.currentSystem : window.$vueApp.config.globalProperties.systemCode;
165
80
  }
166
- function F() {
167
- return n();
81
+ function h() {
82
+ return window.localStorage.getItem("auth_source");
168
83
  }
169
- function L(e2) {
170
- let n2;
171
- const t2 = F();
172
- if (t2) {
173
- n2 = JSON.parse(t2)[e2];
84
+ function P(e2) {
85
+ try {
86
+ const t2 = e2.includes("#") ? e2.split("#")[1] : e2, o2 = t2.includes("?") ? t2.split("?")[1] : t2, n2 = new URLSearchParams(o2);
87
+ return Object.fromEntries(n2);
88
+ } catch (e3) {
89
+ console.error("error===", e3);
174
90
  }
175
- return n2 || (n2 = "zh_CN"), n2;
176
91
  }
177
- function N(n2) {
178
- return new Promise((o2, i2) => {
179
- if (t()) {
180
- const t2 = F();
181
- t2 ? (e(t2), o2()) : n2.get(window.$vueApp.config.globalProperties.baseAPI + "/component/all-languages").then((e2) => {
182
- const n3 = {};
92
+ function x(e2) {
93
+ return ("00" + e2).substr(e2.length);
94
+ }
95
+ exports.cacheAllEnableGlobalPropUtil = function() {
96
+ const e2 = localStorage.getItem(r.GLOBAL_PROP.loadState);
97
+ e2 && "true" === e2 || window.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/common/prop-setting").then((e3) => {
98
+ e3 && r.cacheAllGlobalPropCache(e3);
99
+ });
100
+ }, exports.cacheAllLanguagesUtil = function(t2) {
101
+ return new Promise((o2, n2) => {
102
+ if (e.getToken()) {
103
+ const n3 = w();
104
+ n3 ? (e.setAllLanguages(n3), o2()) : t2.get(window.$vueApp.config.globalProperties.baseAPI + "/component/all-languages").then((e2) => {
105
+ const t3 = {};
183
106
  e2 && e2.forEach((e3) => {
184
- const t3 = e3.value;
185
- let o3;
186
- t3.indexOf("_") > 0 && (o3 = t3.substring(0, t3.indexOf("_"))), o3 && "zh" === o3 && (o3 = "cn"), o3 && (n3[o3] = t3);
187
- }), R(n3), o2();
107
+ const o3 = e3.value;
108
+ let n4;
109
+ o3.indexOf("_") > 0 && (n4 = o3.substring(0, o3.indexOf("_"))), n4 && "zh" === n4 && (n4 = "cn"), n4 && (t3[n4] = o3);
110
+ }), f(t3), o2();
188
111
  });
189
112
  } else
190
113
  o2();
191
114
  });
192
- }
193
- function k(e2, n2) {
194
- let t2 = m(e2);
195
- n2 || (n2 = window.$vueApp.config.globalProperties.projectModel);
196
- let o2 = "QMS质量管理系统";
197
- if (window.$locale && "cn" !== window.$locale && (o2 = "QMS Quality Management System"), null == n2 || "developing.model" !== n2) {
198
- const e3 = t2.substring(0, t2.indexOf("#")), n3 = t2.substring(t2.indexOf("#") + 1, t2.indexOf("?")), i2 = t2.substring(t2.indexOf("?") + 1);
199
- let r2 = "/jumpPage/jump-page.html?systemFrontUrl=" + e3 + "&routeUrl=" + n3;
200
- i2 && (r2 += "&" + i2), -1 === r2.indexOf("_systemName_=") && (r2 += "&_systemName_=" + o2), window.open(r2);
201
- } else
202
- -1 === t2.indexOf("_systemName_=") && (t2.indexOf("?") > 0 ? t2 += "&_systemName_=" + o2 : t2 += "?_systemName_=" + o2), window.open(t2);
203
- }
204
- function B(e2) {
115
+ }, exports.cacheCurrentLanguageUtil = function(t2) {
205
116
  return new Promise((n2, i2) => {
206
- t() || n2("zh_CN");
207
- const r2 = o(), l2 = Y();
208
- if ($(l2))
117
+ e.getToken() || n2("zh_CN");
118
+ const r2 = e.getLanguage(), s2 = b();
119
+ if (u(s2))
209
120
  if (r2 && "undefined" !== r2)
210
121
  n2(r2);
211
122
  else {
212
- const t2 = { systemCode: l2 };
213
- e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", t2).then((e3) => {
123
+ const e2 = { systemCode: s2 };
124
+ t2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", e2).then((e3) => {
214
125
  n2(e3.language ? e3.language : "zh_CN");
215
126
  }).catch(() => {
216
127
  n2("zh_CN");
217
128
  });
218
129
  }
219
130
  else {
220
- const t2 = s.getEnableI18nState(l2);
221
- if (false === t2 && r2 && "undefined" !== r2)
131
+ const e2 = o.default.getEnableI18nState(s2);
132
+ if (false === e2 && r2 && "undefined" !== r2)
222
133
  n2(r2);
223
134
  else {
224
- let o2 = s.getLangFileUrl(l2, r2);
225
- const i3 = { systemCode: l2 };
226
- o2 && r2 && "undefined" !== r2 && t2 && (i3.checkLastestI18nFile = true, i3.i18nFileVersion = s.getI18nFileVersion()), e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", i3).then((e3) => {
227
- const t3 = s.getI18nFileVersion();
228
- if (s.setI18nFileVersion(e3.i18nFileVersion), !o2 && e3.i18nFileUrls[e3.language] && (o2 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime(), s.setLangFileUrl(l2, e3.language, o2)), t3 && Number(t3) === e3.i18nFileVersion)
229
- s.loadLangFile(l2, o2, r2).then(() => {
135
+ let i3 = o.default.getLangFileUrl(s2, r2);
136
+ const l2 = { systemCode: s2 };
137
+ i3 && r2 && "undefined" !== r2 && e2 && (l2.checkLastestI18nFile = true, l2.i18nFileVersion = o.default.getI18nFileVersion()), t2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", l2).then((e3) => {
138
+ const t3 = o.default.getI18nFileVersion();
139
+ if (o.default.setI18nFileVersion(e3.i18nFileVersion), !i3 && e3.i18nFileUrls[e3.language] && (i3 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime(), o.default.setLangFileUrl(s2, e3.language, i3)), t3 && Number(t3) === e3.i18nFileVersion)
140
+ o.default.loadLangFile(s2, i3, r2).then(() => {
230
141
  n2(r2);
231
142
  }).catch(() => {
232
143
  n2(r2);
233
144
  });
234
- else if (s.setEnableI18nState(l2, !!e3.enableI18n), e3.enableI18n && e3.i18nFileUrls[e3.language]) {
145
+ else if (o.default.setEnableI18nState(s2, !!e3.enableI18n), e3.enableI18n && e3.i18nFileUrls[e3.language]) {
235
146
  const t4 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime();
236
- s.setLangFileUrl(l2, e3.language, t4), s.loadLangFile(l2, t4, e3.language).then(() => {
147
+ o.default.setLangFileUrl(s2, e3.language, t4), o.default.loadLangFile(s2, t4, e3.language).then(() => {
237
148
  n2(e3.language);
238
149
  }).catch(() => {
239
150
  n2(e3.language ? e3.language : "zh_CN");
@@ -246,195 +157,199 @@ function B(e2) {
246
157
  }
247
158
  }
248
159
  });
249
- }
250
- function V() {
251
- return new Promise((e2, n2) => {
252
- const t2 = localStorage.getItem("PROJECT_SETTINGS");
253
- let o2 = null;
254
- t2 && "_EMPTY_VALUE" === t2 ? e2(o2) : t2 ? (o2 = JSON.parse(t2), D(o2), e2(o2)) : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/cfg/project-settings").then((n3) => {
255
- n3 ? (localStorage.setItem("PROJECT_SETTINGS", JSON.stringify(n3)), o2 = n3, D(o2)) : localStorage.setItem("PROJECT_SETTINGS", "_EMPTY_VALUE"), e2(o2);
160
+ }, exports.cacheLangs = f, exports.cachePermissionsWhenLoginWithToken = function(e2, t2) {
161
+ return new Promise((o2, n2) => {
162
+ s.removeAllSystemPermissions(), l.getCurrentUserPermissionsBySystem(e2, t2).then((e3) => {
163
+ let t3 = ["index"];
164
+ t3 = t3.concat(e3), s.setPermissions(t3), o2();
256
165
  }).catch((e3) => {
257
166
  n2(e3);
258
167
  });
259
168
  });
260
- }
261
- function D(e2) {
262
- const n2 = document.getElementById("ambBrowserIcon");
263
- if (n2) {
264
- if (e2) {
265
- const t2 = window.$vueApp.config.globalProperties.baseAPI + "/cfg/project/icon/browserIcon?t=" + __BUILD_TIME__;
266
- !e2.browserImageUuid || n2.href && n2.href === t2 || (n2.href = t2);
267
- }
268
- n2.href || (n2.href = "favicon.svg?t=" + __BUILD_TIME__);
269
- }
270
- }
271
- function J() {
272
- var e2;
273
- if (e2 || (e2 = localStorage.getItem("CURRENT_THEME")), !e2)
274
- return void console.error("皮肤主题为空!");
275
- const n2 = localStorage.getItem("_baseAPI_");
276
- if (n2) {
277
- const t3 = m(n2) + "/component/theme/load-theme?theme=" + e2 + "&_t_=" + (/* @__PURE__ */ new Date()).getTime();
278
- let o2 = true, i2 = document.getElementById("_loadTheme_");
279
- i2 || (i2 = document.createElement("link"), o2 = false), i2.rel = "stylesheet", i2.type = "text/css", i2.id = "_loadTheme_", i2.href = t3, o2 || document.getElementsByTagName("head")[0].appendChild(i2);
280
- }
281
- const t2 = document.querySelector("body");
282
- t2 && t2.setAttribute("class", e2);
283
- }
284
- function G() {
285
- return r().replace(/-/g, "");
286
- }
287
- function z(e2, ...n2) {
288
- return e2.replace(/{(\d+)}/g, (e3, t2) => void 0 !== n2[t2] ? n2[t2] : e3);
289
- }
290
- function W(e2) {
291
- const n2 = function() {
292
- let e3 = i("IS_OPEN_MOBILE_GATEWAY");
293
- return null == e3 && (e3 = "true"), e3;
294
- }();
295
- if ("true" === n2 && void 0 !== e2 && window.$vueApp.config.globalProperties.replaceUrl) {
296
- const n3 = uswindow.$vueApp.config.globalProperties.baseAPI;
297
- if ((e2 + "").indexOf(uswindow.$vueApp.config.globalProperties.replaceUrl + "/") < 0 && (e2 + "").indexOf("://") > 0) {
298
- const t2 = n3.substring(0, n3.indexOf("://")), o2 = n3.substring(n3.indexOf("://") + 3), i2 = t2 + "://" + o2.substring(0, o2.indexOf("/")), r2 = n3.substring(0, n3.indexOf("://"));
299
- let s2 = e2.substring(e2.indexOf("://") + 3);
300
- r2 + "://" + s2.substring(0, s2.indexOf("/")) === i2 && (s2 = s2.substring(s2.indexOf("/")), e2 = uswindow.$vueApp.config.globalProperties.replaceUrl + s2);
301
- }
302
- }
303
- return e2;
304
- }
305
- function q(e2) {
306
- return e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2;
307
- }
308
- function Y() {
309
- return window.$vueApp.config.globalProperties.currentSystem ? window.$vueApp.config.globalProperties.currentSystem : window.$vueApp.config.globalProperties.systemCode;
310
- }
311
- function H(e2) {
312
- let n2 = false;
313
- return e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && (n2 = true), n2;
314
- }
315
- function Q() {
316
- return new Promise((e2, n2) => {
317
- window.$authApi.getSystemCacheUrl() ? e2() : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/without-plate").then((n3) => {
318
- n3 && window.$authApi.setSystemCacheUrl(n3), e2();
169
+ }, exports.cacheProjectSetting = function() {
170
+ return new Promise((e2, t2) => {
171
+ const o2 = localStorage.getItem("PROJECT_SETTINGS");
172
+ let n2 = null;
173
+ o2 && "_EMPTY_VALUE" === o2 ? e2(n2) : o2 ? (n2 = JSON.parse(o2), m(n2), e2(n2)) : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/cfg/project-settings").then((t3) => {
174
+ t3 ? (localStorage.setItem("PROJECT_SETTINGS", JSON.stringify(t3)), n2 = t3, m(n2)) : localStorage.setItem("PROJECT_SETTINGS", "_EMPTY_VALUE"), e2(n2);
175
+ }).catch((e3) => {
176
+ t2(e3);
319
177
  });
320
178
  });
321
- }
322
- function K() {
323
- return window.localStorage.getItem("auth_source");
324
- }
325
- function X() {
326
- const e2 = K();
327
- return !!(e2 && "dingtalk" === e2 && window.top && window.top.$dd);
328
- }
329
- function Z(e2) {
330
- try {
331
- const n2 = e2.includes("#") ? e2.split("#")[1] : e2, t2 = n2.includes("?") ? n2.split("?")[1] : n2, o2 = new URLSearchParams(t2);
332
- return Object.fromEntries(o2);
333
- } catch (e3) {
334
- console.error("error===", e3);
335
- }
336
- }
337
- function ee(e2) {
179
+ }, exports.cacheSystemUrl = function() {
180
+ return new Promise((e2, t2) => {
181
+ window.$authApi.getSystemCacheUrl() ? e2() : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/without-plate").then((t3) => {
182
+ t3 && window.$authApi.setSystemCacheUrl(t3), e2();
183
+ });
184
+ });
185
+ }, exports.formatDate = function(e2, t2) {
186
+ /(y+)/.test(t2) && (t2 = t2.replace(RegExp.$1, (e2.getFullYear() + "").substr(4 - RegExp.$1.length)));
187
+ const o2 = { "M+": e2.getMonth() + 1, "d+": e2.getDate(), "H+": e2.getHours(), "m+": e2.getMinutes(), "s+": e2.getSeconds() };
188
+ for (const e3 in o2)
189
+ if (new RegExp(`(${e3})`).test(t2)) {
190
+ const n2 = o2[e3] + "";
191
+ t2 = t2.replace(RegExp.$1, 1 === RegExp.$1.length ? n2 : x(n2));
192
+ }
193
+ return t2;
194
+ }, exports.formatFileName = function(e2) {
195
+ return e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2;
196
+ }, exports.getAuthSource = h, exports.getCurrentSystemCode = b, exports.getKkFilePreviewUrl = function(e2) {
338
197
  e2 += "&isShowWatermark=false";
339
- let n2 = function() {
340
- let e3 = window.$vueApp.config.globalProperties.kkFileViewUrl, n3 = e3, t2 = window.$vueApp.config.globalProperties.baseURL;
341
- if (e3 && t2) {
342
- let o2 = t2.split("/"), i2 = o2[0] + "//" + o2[2], r2 = e3.split("/");
343
- i2 === r2[0] + "//" + r2[2] && (n3 = f(e3));
198
+ let t2 = function() {
199
+ let e3 = window.$vueApp.config.globalProperties.kkFileViewUrl, t3 = e3, o2 = window.$vueApp.config.globalProperties.baseURL;
200
+ if (e3 && o2) {
201
+ let n2 = o2.split("/"), i2 = n2[0] + "//" + n2[2], r2 = e3.split("/");
202
+ i2 === r2[0] + "//" + r2[2] && (t3 = a(e3));
344
203
  }
345
- return n3;
346
- }() + "?url=" + encodeURIComponent(l.encode(e2));
347
- return new Promise((e3, t2) => {
348
- a().then((t3) => {
349
- t3 && t3.useRange && t3.useRange.indexOf("annex") >= 0 && (n2 = n2 + "&watermarkTxt=" + t3.content + "&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"), e3(n2);
350
- }).catch((t3) => {
351
- console.error("获得水印失败", t3), e3(n2);
204
+ return t3;
205
+ }() + "?url=" + encodeURIComponent(n.Base64.encode(e2));
206
+ return new Promise((e3, o2) => {
207
+ i.getWatermarkSetting().then((o3) => {
208
+ o3 && o3.useRange && o3.useRange.indexOf("annex") >= 0 && (t2 = t2 + "&watermarkTxt=" + o3.content + "&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"), e3(t2);
209
+ }).catch((o3) => {
210
+ console.error("获得水印失败", o3), e3(t2);
352
211
  });
353
212
  });
354
- }
355
- function ne() {
356
- const e2 = localStorage.getItem(c.loadState);
357
- e2 && "true" === e2 || window.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/common/prop-setting").then((e3) => {
358
- e3 && g(e3);
213
+ }, exports.getLangByShort = function(e2) {
214
+ let t2;
215
+ const o2 = w();
216
+ if (o2) {
217
+ t2 = JSON.parse(o2)[e2];
218
+ }
219
+ return t2 || (t2 = "zh_CN"), t2;
220
+ }, exports.getLangs = w, exports.getLocaleByLang = function(e2) {
221
+ return o.default.getLocaleByLang(e2);
222
+ }, exports.getLoginTimeoutUrlInfo = function() {
223
+ const e2 = window.location.href, t2 = P(e2);
224
+ let o2;
225
+ t2 && t2.customSystem && (o2 = t2.customSystem);
226
+ let n2 = { loginTimeout: e2 };
227
+ return o2 && (n2.customSystem = o2), n2;
228
+ }, exports.getLoginUrl = function() {
229
+ return new Promise((e2, t2) => {
230
+ const o2 = window.location.href;
231
+ let n2 = o2, i2 = "", r2 = "";
232
+ if (o2.indexOf("#/") > 0 && o2.indexOf("#/login") < 0) {
233
+ n2 = o2.substring(0, o2.indexOf("#"));
234
+ const e3 = o2.substring(o2.indexOf("#") + 1);
235
+ i2 = e3, e3.indexOf("?") > 0 && (i2 = e3.substring(0, e3.indexOf("?")), r2 = e3.substring(e3.indexOf("?") + 1));
236
+ } else
237
+ n2 = null;
238
+ window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/api/portal-frontend-url").then((t3) => e2(((e3 = "") => {
239
+ let t4 = e3 + "#/login";
240
+ return n2 && (t4 = t4 + "?systemPath=" + n2), i2 && (t4 = t4.indexOf("?") > 0 ? t4 + "&routerPath=" + i2 : t4 + "?routerPath=" + i2), r2 && (t4 = t4.indexOf("?") > 0 ? t4 + "&" + r2 : t4 + "?" + r2), g(t4);
241
+ })(t3))).catch((e3) => {
242
+ t2(e3);
243
+ });
359
244
  });
360
- }
361
- function te(e2, n2) {
362
- /(y+)/.test(n2) && (n2 = n2.replace(RegExp.$1, (e2.getFullYear() + "").substr(4 - RegExp.$1.length)));
363
- const t2 = { "M+": e2.getMonth() + 1, "d+": e2.getDate(), "H+": e2.getHours(), "m+": e2.getMinutes(), "s+": e2.getSeconds() };
364
- for (const e3 in t2)
365
- if (new RegExp(`(${e3})`).test(n2)) {
366
- const o2 = t2[e3] + "";
367
- n2 = n2.replace(RegExp.$1, 1 === RegExp.$1.length ? o2 : oe(o2));
368
- }
369
- return n2;
370
- }
371
- function oe(e2) {
372
- return ("00" + e2).substr(e2.length);
373
- }
374
- function ie(e2) {
375
- const n2 = new Date(e2);
376
- return !isNaN(n2.getTime());
377
- }
378
- function re() {
379
- const e2 = window.location.href, n2 = Z(e2);
245
+ }, exports.getOrignUrl = function() {
246
+ const e2 = window.location.href;
380
247
  let t2;
381
- n2 && n2.customSystem && (t2 = n2.customSystem);
382
- let o2 = { loginTimeout: e2 };
383
- return t2 && (o2.customSystem = t2), o2;
384
- }
385
- function se(e2, n2) {
248
+ if (e2 && e2.indexOf("/") > 0) {
249
+ const o2 = e2.split("/");
250
+ t2 = o2[0] + "//" + o2[2];
251
+ }
252
+ return t2;
253
+ }, exports.getRelativeBaseUrl = a, exports.getReplaceUrlDomain = function(t2) {
254
+ const o2 = function() {
255
+ let t3 = e.getCookieCache("IS_OPEN_MOBILE_GATEWAY");
256
+ return null == t3 && (t3 = "true"), t3;
257
+ }();
258
+ if ("true" === o2 && void 0 !== t2 && window.$vueApp.config.globalProperties.replaceUrl) {
259
+ const e2 = uswindow.$vueApp.config.globalProperties.baseAPI;
260
+ if ((t2 + "").indexOf(uswindow.$vueApp.config.globalProperties.replaceUrl + "/") < 0 && (t2 + "").indexOf("://") > 0) {
261
+ const o3 = e2.substring(0, e2.indexOf("://")), n2 = e2.substring(e2.indexOf("://") + 3), i2 = o3 + "://" + n2.substring(0, n2.indexOf("/")), r2 = e2.substring(0, e2.indexOf("://"));
262
+ let s2 = t2.substring(t2.indexOf("://") + 3);
263
+ r2 + "://" + s2.substring(0, s2.indexOf("/")) === i2 && (s2 = s2.substring(s2.indexOf("/")), t2 = uswindow.$vueApp.config.globalProperties.replaceUrl + s2);
264
+ }
265
+ }
266
+ return t2;
267
+ }, exports.getServerConfigUtil = function(e2) {
386
268
  return new Promise((t2, o2) => {
387
- u(), d.getCurrentUserPermissionsBySystem(e2, n2).then((e3) => {
388
- let n3 = ["index"];
389
- n3 = n3.concat(e3), p(n3), t2();
390
- }).catch((e3) => {
391
- o2(e3);
269
+ let n2 = "1";
270
+ try {
271
+ __BUILD_TIME__ && (n2 = __BUILD_TIME__);
272
+ } catch (e3) {
273
+ }
274
+ e2.get("./server-config.json?t=" + n2).then((e3) => {
275
+ const o3 = e3;
276
+ for (const e4 in o3)
277
+ window.$vueApp.config.globalProperties[e4] = o3[e4];
278
+ window.$vueApp.config.globalProperties.baseURL = a(window.$vueApp.config.globalProperties.baseURL), window.$vueApp.config.globalProperties.baseAPI = a(window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_baseAPI_", window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_amb_projectModel_", window.$vueApp.config.globalProperties.projectModel), p(o3), d(o3), t2();
392
279
  });
393
280
  });
394
- }
395
- export {
396
- ne as cacheAllEnableGlobalPropUtil,
397
- N as cacheAllLanguagesUtil,
398
- B as cacheCurrentLanguageUtil,
399
- R as cacheLangs,
400
- se as cachePermissionsWhenLoginWithToken,
401
- V as cacheProjectSetting,
402
- Q as cacheSystemUrl,
403
- te as formatDate,
404
- q as formatFileName,
405
- K as getAuthSource,
406
- Y as getCurrentSystemCode,
407
- ee as getKkFilePreviewUrl,
408
- L as getLangByShort,
409
- F as getLangs,
410
- C as getLocaleByLang,
411
- re as getLoginTimeoutUrlInfo,
412
- b as getLoginUrl,
413
- S as getOrignUrl,
414
- f as getRelativeBaseUrl,
415
- W as getReplaceUrlDomain,
416
- I as getServerConfigUtil,
417
- _ as getSystemBackendUrl,
418
- A as getSystemFrontendUrl,
419
- v as getSystemFrontendUrlWith,
420
- y as getTimeZone,
421
- Z as getURLSearchParamObj,
422
- G as getUuidv4,
423
- O as insertFontIconCss,
424
- x as insertThirdLoginJs,
425
- X as isDingTalkEnv,
426
- H as isLogoutTimeout,
427
- j as isMobileBrowser,
428
- $ as isPlateSys,
429
- M as isPromise,
430
- h as isShowMenuRoute,
431
- P as isShowSystemMenu,
432
- ie as isValidDate,
433
- J as loadCSS,
434
- T as pushCustomControlValidatorRef,
435
- E as removeCustomControlValidatorRef,
436
- z as replacePlaceholders,
437
- m as replacePrefix,
438
- U as setCustomSystemBackendUrl,
439
- k as windowOpenUrl
281
+ }, exports.getSystemBackendUrl = function(e2) {
282
+ return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel && window.$vueApp.config.globalProperties.baseURL ? window.$vueApp.config.globalProperties.baseURL : a(e2);
283
+ }, exports.getSystemFrontendUrl = function(e2) {
284
+ return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel && window.$vueApp.config.globalProperties.frontUrl ? window.$vueApp.config.globalProperties.frontUrl : a(e2);
285
+ }, exports.getSystemFrontendUrlWith = function(e2) {
286
+ return window.$vueApp.config.globalProperties.projectModel && "developing.model" === window.$vueApp.config.globalProperties.projectModel ? e2 || window.$vueApp.config.globalProperties.frontUrl : a(e2);
287
+ }, exports.getTimeZone = function() {
288
+ const e2 = /* @__PURE__ */ new Date() + "";
289
+ let t2 = "";
290
+ if (e2.indexOf("GMT") > 0) {
291
+ const o2 = e2.substring(e2.indexOf("GMT") + 3, e2.indexOf("(")).trim();
292
+ t2 = "UTC" + o2.substring(0, o2.length - 2) + ":" + o2.substring(o2.length - 2);
293
+ } else
294
+ e2.indexOf("UTC") > 0 && (t2 = "UTC" + e2.substring(e2.indexOf("UTC") + 3, e2.indexOf("(")).trim());
295
+ return t2;
296
+ }, exports.getURLSearchParamObj = P, exports.getUuidv4 = function() {
297
+ return t.v4().replace(/-/g, "");
298
+ }, exports.insertFontIconCss = p, exports.insertThirdLoginJs = d, exports.isDingTalkEnv = function() {
299
+ const e2 = h();
300
+ return !!(e2 && "dingtalk" === e2 && window.top && window.top.$dd);
301
+ }, exports.isLogoutTimeout = function(e2) {
302
+ let t2 = false;
303
+ return e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && (t2 = true), t2;
304
+ }, exports.isMobileBrowser = function() {
305
+ return navigator.userAgent, navigator.maxTouchPoints, !!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(navigator.userAgent) || !!(/Macintosh/i.test(navigator.userAgent) && void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1);
306
+ }, exports.isPlateSys = u, exports.isPromise = function(e2) {
307
+ return e2 && "[object Promise]" === Object.prototype.toString.call(e2);
308
+ }, exports.isShowMenuRoute = function() {
309
+ let e2 = window.$vueApp.config.globalProperties.showMenuRoute;
310
+ return void 0 === e2 && (e2 = "false"), "true" === e2;
311
+ }, exports.isShowSystemMenu = function() {
312
+ let e2 = window.$vueApp.config.globalProperties.showSystemMenu;
313
+ return void 0 === e2 && (e2 = "false"), "true" === e2;
314
+ }, exports.isValidDate = function(e2) {
315
+ const t2 = new Date(e2);
316
+ return !isNaN(t2.getTime());
317
+ }, exports.loadCSS = function() {
318
+ var e2;
319
+ if (e2 || (e2 = localStorage.getItem("CURRENT_THEME")), !e2)
320
+ return void console.error("皮肤主题为空!");
321
+ const t2 = localStorage.getItem("_baseAPI_");
322
+ if (t2) {
323
+ const o3 = g(t2) + "/component/theme/load-theme?theme=" + e2 + "&_t_=" + (/* @__PURE__ */ new Date()).getTime();
324
+ let n2 = true, i2 = document.getElementById("_loadTheme_");
325
+ i2 || (i2 = document.createElement("link"), n2 = false), i2.rel = "stylesheet", i2.type = "text/css", i2.id = "_loadTheme_", i2.href = o3, n2 || document.getElementsByTagName("head")[0].appendChild(i2);
326
+ }
327
+ const o2 = document.querySelector("body");
328
+ o2 && o2.setAttribute("class", e2);
329
+ }, exports.pushCustomControlValidatorRef = function(e2, t2, o2) {
330
+ window.customValidatorRef || (window.customValidatorRef = /* @__PURE__ */ new Map());
331
+ let n2 = window.customValidatorRef.get(e2);
332
+ n2 || (n2 = /* @__PURE__ */ new Map(), window.customValidatorRef.set(e2, n2)), n2.set(t2, o2);
333
+ }, exports.removeCustomControlValidatorRef = function(e2, t2) {
334
+ if (window.customValidatorRef) {
335
+ const o2 = window.customValidatorRef.get(e2);
336
+ o2 && o2.delete(t2);
337
+ }
338
+ }, exports.replacePlaceholders = function(e2, ...t2) {
339
+ return e2.replace(/{(\d+)}/g, (e3, o2) => void 0 !== t2[o2] ? t2[o2] : e3);
340
+ }, exports.replacePrefix = g, exports.setCustomSystemBackendUrl = function(e2) {
341
+ if (!window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
342
+ const t2 = window.$authApi.getSystemCacheUrlByCode(e2);
343
+ t2 && (window.$vueApp.config.globalProperties.baseURL = a(t2));
344
+ }
345
+ }, exports.windowOpenUrl = function(e2, t2) {
346
+ let o2 = g(e2);
347
+ t2 || (t2 = window.$vueApp.config.globalProperties.projectModel);
348
+ let n2 = "QMS质量管理系统";
349
+ if (window.$locale && "cn" !== window.$locale && (n2 = "QMS Quality Management System"), null == t2 || "developing.model" !== t2) {
350
+ const e3 = o2.substring(0, o2.indexOf("#")), t3 = o2.substring(o2.indexOf("#") + 1, o2.indexOf("?")), i2 = o2.substring(o2.indexOf("?") + 1);
351
+ let r2 = "/jumpPage/jump-page.html?systemFrontUrl=" + e3 + "&routeUrl=" + t3;
352
+ i2 && (r2 += "&" + i2), -1 === r2.indexOf("_systemName_=") && (r2 += "&_systemName_=" + n2), window.open(r2);
353
+ } else
354
+ -1 === o2.indexOf("_systemName_=") && (o2.indexOf("?") > 0 ? o2 += "&_systemName_=" + n2 : o2 += "?_systemName_=" + n2), window.open(o2);
440
355
  };