@utogether/udp-core 1.0.1 → 1.0.2

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 (239) hide show
  1. package/build/plugins.ts +13 -2
  2. package/dist/{403-JWjatlxJ.js → 403-B1rIjAAu.js} +7 -6
  3. package/dist/{404-BcdMJfPb.js → 404-mBqc2y4t.js} +14 -13
  4. package/dist/{500-bsa3F_cc.js → 500-BoI45Zdh.js} +10 -9
  5. package/dist/{AuthorityInfo-CqItgNs5.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js +100 -0
  7. package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
  8. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
  9. package/dist/{Company-DVff9IA7.js → Company-JGGyWEWH.js} +3 -3
  10. package/dist/{CompanyPanel-CNrdq4XE.js → CompanyPanel-BQ_cCmDx.js} +16 -16
  11. package/dist/{Department-CqcpfL4i.js → Department-z2iO6hwM.js} +10 -10
  12. package/dist/{DepartmentPanel-Bvti4LGu.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  13. package/dist/{DesignPanel-CjykspE1.js → DesignPanel-7mhtVWas.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +24 -26
  15. package/dist/DictView-CjchV2Yk.js +109 -0
  16. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  17. package/dist/Org-BqytV_vi.js +39 -0
  18. package/dist/{Preview-Cm_7RhYU.js → Preview-CLpUUMay.js} +2 -2
  19. package/dist/{ReportDefine-CJVlQ--7.js → ReportDefine-Cz1KtEUF.js} +1 -1
  20. package/dist/{ReportDesign-B0unlrkt.js → ReportDesign-BaORYud4.js} +46 -46
  21. package/dist/{ReportQuery-BKuMCEvF.js → ReportQuery-CPCPXiXz.js} +5 -5
  22. package/dist/{ReportQueryFrom-DAngMJLU.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CPpwmztJ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +6 -5
  24. package/dist/{ReportTemplate-8YH3L8Pv.js → ReportTemplate-CFiNMz79.js} +26 -26
  25. package/dist/{Role-MxI30-0W.js → Role-B-XDoJd5.js} +6 -6
  26. package/dist/{RoleAssign-BzUY_y_y.js → RoleAssign-BolW8YVs.js} +9 -9
  27. package/dist/{RolePanel-DS_TErTn.js → RolePanel-2kfs5tw9.js} +1 -1
  28. package/dist/{RolePanel-CXdcvsR5.js → RolePanel-HilSuYns.js} +1 -1
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js +132 -0
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ddl-A7Zh.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +42 -36
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DnchUgIF.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +20 -20
  32. package/dist/{Staff-D7tXo_Gn.js → Staff-BTk3whFC.js} +3 -3
  33. package/dist/{StaffInfo-Bk8BY8PO.js → StaffInfo-d3AuSzlA.js} +1 -1
  34. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DqKwZi5f.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +13 -13
  35. package/dist/{StaffPanel-VtpGCTIq.js → StaffPanel-DV-D4jjz.js} +1 -1
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  37. package/dist/{SysUser-D0Q6OvD7.js → SysUser-BnjYytws.js} +2 -2
  38. package/dist/{SysUserPanel-1_vrsANQ.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  40. package/dist/{SystemMenu-9PG3vESE.js → SystemMenu-kYB_ZaUt.js} +49 -47
  41. package/dist/{UserInfo-qgXUEGwi.js → UserInfo-4dx97VBL.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CN0C5rVk.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +35 -33
  43. package/dist/{childView-C7ZSA5fR.js → childView-CHPNfTEb.js} +1 -1
  44. package/dist/{childView-yV2QLwfA.js → childView-CKA_JgVZ.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-DdKxPGdh.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  46. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  47. package/dist/{code-rule-95K1jr-u.js → code-rule-CbxuZg0-.js} +42 -41
  48. package/dist/core.es.js +19 -10
  49. package/dist/{cron-task-DGrQwOHs.js → cron-task-nTOpqQYf.js} +5 -5
  50. package/dist/flow-task-B07st2aD.js +10 -0
  51. package/dist/{frameView-7SmME93D.js → frameView-Z1tPUyCh.js} +15 -14
  52. package/dist/img/l_img.svg +1 -1
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/img/v_img.svg +1 -1
  55. package/dist/index-C3q8HoJM.js +4650 -0
  56. package/dist/{layoutView-C6WIVWGZ.js → layoutView--MGA9zUB.js} +1776 -1764
  57. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  58. package/dist/log-out-DiwGCg7p.js +130 -0
  59. package/dist/login-C6Y0ajDp.js +251 -0
  60. package/dist/{login-log-CvVnyGi3.js → login-log-C0V-_l3F.js} +6 -4
  61. package/dist/{lov-view-DoF5LqFQ.js → lov-view-Cmv7wZZ9.js} +9 -9
  62. package/dist/{menuInfo-CNzGQwOD.js → menuInfo-UeutJpOa.js} +1 -1
  63. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-51SYxVc_.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +144 -121
  64. package/dist/pda-app-B6w99SJo.js +710 -0
  65. package/dist/redirect-BqegffKC.js +15 -0
  66. package/dist/{resource-gVFFMO9l.js → resource-BybJvUv0.js} +17 -17
  67. package/dist/{su-welcome-BN_s_RX_.js → su-welcome-C1bmxHoY.js} +124 -126
  68. package/dist/sys-config-BnmIDnCj.js +370 -0
  69. package/dist/udp-core.css +1 -9
  70. package/dist/utogether-MlnyYtNS.js +4 -0
  71. package/index.ts +19 -6
  72. package/package.json +18 -17
  73. package/src/App.vue +2 -7
  74. package/src/api/http.ts +1 -4
  75. package/src/api/index.ts +5 -3
  76. package/src/api/user.ts +2 -2
  77. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  78. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  79. package/src/components/udp/content/index.vue +88 -0
  80. package/src/components/udp/form/form.vue +109 -0
  81. package/src/components/udp/grid/index.vue +524 -0
  82. package/src/components/udp/index.ts +5 -4
  83. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  84. package/src/components/udp/utils.ts +408 -40
  85. package/src/directives/permission/index.ts +1 -1
  86. package/src/layout/components/lay-navbar/index.vue +9 -7
  87. package/src/layout/components/lay-panel/index.vue +3 -3
  88. package/src/layout/components/lay-search/index.vue +1 -1
  89. package/src/layout/components/lay-select-org/index.vue +4 -9
  90. package/src/layout/components/lay-setting/index.vue +503 -510
  91. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  92. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  93. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  94. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
  95. package/src/layout/components/lay-tag/index.vue +598 -625
  96. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  97. package/src/layout/hooks/useNav.ts +176 -173
  98. package/src/layout/hooks/useTag.ts +227 -233
  99. package/src/layout/layoutView.vue +215 -215
  100. package/src/layout/types.ts +93 -92
  101. package/src/main.ts +115 -109
  102. package/src/plugins/i18n/en.ts +26 -13
  103. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  104. package/src/plugins/i18n/zh.ts +363 -337
  105. package/src/plugins/vxe-table/index.ts +74 -4
  106. package/src/plugins/vxe-table/render.tsx +186 -58
  107. package/src/router/index.ts +187 -183
  108. package/src/router/modules/flow.ts +35 -0
  109. package/src/router/modules/home.ts +32 -32
  110. package/src/router/modules/remaining.ts +1 -26
  111. package/src/router/utils.ts +420 -377
  112. package/src/store/modules/app.ts +2 -4
  113. package/src/store/modules/epTheme.ts +48 -49
  114. package/src/store/modules/multiTags.ts +15 -14
  115. package/src/store/modules/permission.ts +25 -15
  116. package/src/store/modules/system.ts +1 -3
  117. package/src/style/button.scss +11 -4
  118. package/src/style/login.css +1 -1
  119. package/src/style/tailwind.css +1 -68
  120. package/src/style/vxetable.scss +103 -11
  121. package/src/utils/authority/index.ts +1 -1
  122. package/src/utils/dataFormat/index.ts +223 -223
  123. package/src/utils/index.ts +3 -1
  124. package/src/utils/lifecycle.ts +39 -20
  125. package/src/utils/propTypes.ts +1 -6
  126. package/src/utils/storage/index.ts +2 -2
  127. package/src/utils/{http → udp/http}/index.ts +27 -30
  128. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  129. package/src/views/login/login-view.vue +6 -20
  130. package/src/views/organization/company/CompanyPanel.vue +2 -2
  131. package/src/views/organization/department/Department.vue +58 -58
  132. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  133. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  134. package/src/views/organization/org/Org.vue +9 -5
  135. package/src/views/organization/staff/StaffInfo.vue +127 -133
  136. package/src/views/organization/staff/StaffPanel.vue +162 -145
  137. package/src/views/system/cron/cron-task.vue +2 -12
  138. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  139. package/src/views/system/menu/SystemMenu.vue +14 -20
  140. package/src/views/system/menu/menuInfo.vue +39 -23
  141. package/src/views/system/role/AuthorityInfo.vue +19 -15
  142. package/src/views/system/role/Role.vue +1 -5
  143. package/src/views/system/role/RolePanel.vue +11 -2
  144. package/src/views/system/role/UserInfo.vue +11 -9
  145. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  146. package/src/views/system/role-assign/RolePanel.vue +12 -9
  147. package/src/views/system/sys/sys-config.vue +70 -21
  148. package/src/views/system/sysUser/SysUserPanel.vue +347 -278
  149. package/src/views/uapp/pda/pda-app.vue +48 -16
  150. package/src/views/udev/coderule/code-rule.vue +132 -121
  151. package/src/views/udev/dict/DictView.vue +118 -106
  152. package/src/views/udev/dict/childView.vue +183 -222
  153. package/src/views/udev/lov/childView.vue +1 -7
  154. package/src/views/ufile/aggregation/File.vue +5 -5
  155. package/src/views/ufile/file/water-mark.vue +14 -14
  156. package/src/views/uhome/components/menu-favorite.vue +314 -331
  157. package/src/views/uhome/su-welcome.vue +319 -339
  158. package/src/views/ulogin/login.vue +325 -316
  159. package/src/views/upms/interface/log-in.vue +100 -106
  160. package/src/views/upms/interface/log-out.vue +104 -107
  161. package/src/views/upms/user/login-log.vue +54 -60
  162. package/src/views/urpt/design/DesignPanel.vue +16 -35
  163. package/src/views/urpt/design/Preview.vue +1 -0
  164. package/src/views/urpt/design/ReportDesign.vue +17 -23
  165. package/src/views/urpt/static-resource/resource.vue +3 -3
  166. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  167. package/src/views/utask/flow-task.vue +18 -0
  168. package/types/global.d.ts +231 -236
  169. package/vite.config.ts +13 -2
  170. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-32L40GY2.js +0 -102
  171. package/dist/DictView-q7kR9K--.js +0 -95
  172. package/dist/InvOrganization-DI45LqZV.js +0 -260
  173. package/dist/Org-CZju_ZiR.js +0 -35
  174. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DJKu6PXz.js +0 -126
  175. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C3Ixs12y.js +0 -111
  176. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-C5XEmxsV.js +0 -288
  177. package/dist/childView.vue_vue_type_style_index_0_lang-bkmucBUL.js +0 -187
  178. package/dist/core.umd.js +0 -173
  179. package/dist/index-OswH7SsT.js +0 -9937
  180. package/dist/log-out--RRncZhN.js +0 -120
  181. package/dist/login-BhCMeCLS.js +0 -251
  182. package/dist/pda-app-nn3llDUx.js +0 -2209
  183. package/dist/redirect-CmMplDV4.js +0 -15
  184. package/dist/sys-config-DGutV-VX.js +0 -277
  185. package/dist/utogether-wFDCI28t.js +0 -182
  186. package/src/assets/images/empty.png +0 -0
  187. package/src/assets/images/logo.png +0 -0
  188. package/src/components/ReCountTo/README.md +0 -2
  189. package/src/components/ReCountTo/index.ts +0 -18
  190. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  191. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  192. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  193. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  194. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  195. package/src/components/ReCropper/index.ts +0 -14
  196. package/src/components/ReCropper/src/index.tsx +0 -141
  197. package/src/components/ReFlicker/index.css +0 -39
  198. package/src/components/ReFlicker/index.ts +0 -50
  199. package/src/components/ReFlop/index.ts +0 -14
  200. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  201. package/src/components/ReFlop/src/filpper.css +0 -184
  202. package/src/components/ReFlop/src/index.vue +0 -126
  203. package/src/components/ReFlowChart/index.ts +0 -24
  204. package/src/components/ReFlowChart/src/Control.vue +0 -139
  205. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  206. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  207. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  208. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  209. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  210. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  211. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  212. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  213. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  214. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  215. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  216. package/src/components/ReFlowChart/src/config.ts +0 -62
  217. package/src/components/ReSplitPane/index.css +0 -49
  218. package/src/components/ReSplitPane/index.tsx +0 -119
  219. package/src/components/ReSplitPane/resizer.css +0 -45
  220. package/src/components/ReSplitPane/resizer.tsx +0 -30
  221. package/src/components/SuCommon/card/components/Card.vue +0 -148
  222. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  223. package/src/components/SuCommon/card/index.vue +0 -142
  224. package/src/components/SuCommon/icon-select/index.vue +0 -241
  225. package/src/components/SuCommon/table/index.vue +0 -208
  226. package/src/components/SuCommon/utils/index.ts +0 -103
  227. package/src/components/SuCommon/utils/slot.tsx +0 -50
  228. package/src/components/udp/form-upload.vue +0 -132
  229. package/src/components/udp/modal-form.vue +0 -180
  230. package/src/utils/udp/useRender.ts +0 -420
  231. package/src/views/components/contextmenu/basic.vue +0 -74
  232. package/src/views/components/contextmenu/context-menu.vue +0 -40
  233. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  234. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  235. package/src/views/components/count-to/index.vue +0 -43
  236. package/src/views/components/cropping/index.vue +0 -59
  237. package/src/views/components/cropping/picture.jpeg +0 -0
  238. package/src/views/components/split-pane/index.vue +0 -82
  239. package/src/views/components/video/index.vue +0 -57
@@ -0,0 +1,710 @@
1
+ import { defineComponent as re, ref as N, computed as K, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
2
+ import { useI18n as je } from "vue-i18n";
3
+ import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { I as Se, G as xe, y as $e, _ as Pe } from "./index-C3q8HoJM.js";
5
+ import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
6
+ import { clone as oe, isString as Z } from "xe-utils";
7
+ import Ne from "qrcode";
8
+ const z = {
9
+ silent: !1,
10
+ logLevel: "warn"
11
+ };
12
+ function j(e) {
13
+ if (typeof e != "object" || e === null)
14
+ return !1;
15
+ const t = Object.getPrototypeOf(e);
16
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
17
+ }
18
+ const ke = () => ({
19
+ func: () => {
20
+ },
21
+ bool: !0,
22
+ string: "",
23
+ number: 0,
24
+ array: () => [],
25
+ object: () => ({}),
26
+ integer: 0
27
+ }), ie = Object.prototype, se = ie.toString, Le = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
28
+ function ee(e) {
29
+ const t = (e == null ? void 0 : e.type) ?? e;
30
+ if (t) {
31
+ const r = t.toString().match(ae);
32
+ return r ? r[1] : "";
33
+ }
34
+ return "";
35
+ }
36
+ function Re(e) {
37
+ if (e == null)
38
+ return "";
39
+ const t = e.constructor.toString().match(ae);
40
+ return t ? t[1].replace(/^Async/, "") : "";
41
+ }
42
+ function te(e) {
43
+ return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : j(e) ? Object.assign({}, e) : e;
44
+ }
45
+ function le() {
46
+ }
47
+ let c = le;
48
+ process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = z.logLevel) {
49
+ z.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
50
+ } : le);
51
+ const k = (e, t) => Le.call(e, t), Ie = Number.isInteger || function(t) {
52
+ return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
53
+ }, L = Array.isArray || function(t) {
54
+ return se.call(t) === "[object Array]";
55
+ }, R = (e) => se.call(e) === "[object Function]", M = (e, t) => j(e) && k(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (k(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
56
+ (t) => k(e, t)
57
+ ));
58
+ function ce(e, t) {
59
+ return Object.defineProperty(e.bind(t), "__original", {
60
+ value: e
61
+ });
62
+ }
63
+ function S(e, t, r = !1) {
64
+ let n, o = !0, a = "";
65
+ j(e) ? n = e : n = { type: e };
66
+ const s = M(n) ? n._vueTypes_name + " - " : "";
67
+ if (ue(n) && n.type !== null) {
68
+ if (n.type === void 0 || n.type === !0 || !n.required && t == null)
69
+ return o;
70
+ L(n.type) ? (o = n.type.some(
71
+ (d) => S(d, t, !0) === !0
72
+ ), a = n.type.map((d) => ee(d)).join(" or ")) : (a = ee(n), a === "Array" ? o = L(t) : a === "Object" ? o = j(t) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? o = Re(t) === a : o = t instanceof n.type);
73
+ }
74
+ if (!o) {
75
+ const d = `${s}value "${t}" should be of type "${a}"`;
76
+ return r === !1 ? (c(d), !1) : d;
77
+ }
78
+ if (k(n, "validator") && R(n.validator)) {
79
+ const d = c, y = [];
80
+ if (c = (g) => {
81
+ y.push(g);
82
+ }, o = n.validator(t), c = d, !o) {
83
+ const g = (y.length > 1 ? "* " : "") + y.join(`
84
+ * `);
85
+ return y.length = 0, r === !1 ? (c(g), o) : g;
86
+ }
87
+ }
88
+ return o;
89
+ }
90
+ function b(e, t) {
91
+ const r = Object.defineProperties(t, {
92
+ _vueTypes_name: {
93
+ value: e,
94
+ writable: !0
95
+ },
96
+ isRequired: {
97
+ get() {
98
+ return this.required = !0, this;
99
+ }
100
+ },
101
+ def: {
102
+ value(o) {
103
+ if (o === void 0) {
104
+ if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
105
+ this.default = void 0;
106
+ return;
107
+ }
108
+ return k(this, "default") && delete this.default, this;
109
+ }
110
+ return !R(o) && S(this, o, !0) !== !0 ? (c(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (L(o) ? this.default = () => te(o) : j(o) ? this.default = () => te(o) : this.default = o, this);
111
+ }
112
+ }
113
+ }), { validator: n } = r;
114
+ return R(n) && (r.validator = ce(n, r)), r;
115
+ }
116
+ function _(e, t) {
117
+ const r = b(e, t);
118
+ return Object.defineProperty(r, "validate", {
119
+ value(n) {
120
+ return R(this.validator) && c(
121
+ `${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
122
+ ${JSON.stringify(
123
+ this
124
+ )}`
125
+ ), this.validator = ce(n, this), this;
126
+ }
127
+ });
128
+ }
129
+ function B(e) {
130
+ return e.replace(/^(?!\s*$)/gm, " ");
131
+ }
132
+ const Ue = () => _("any", {}), qe = () => _("function", {
133
+ type: Function
134
+ }), ne = () => _("boolean", {
135
+ type: Boolean
136
+ }), De = () => _("string", {
137
+ type: String
138
+ }), Be = () => _("number", {
139
+ type: Number
140
+ }), Ee = () => _("array", {
141
+ type: Array
142
+ }), Fe = () => _("object", {
143
+ type: Object
144
+ }), We = () => b("integer", {
145
+ type: Number,
146
+ validator(e) {
147
+ const t = Ie(e);
148
+ return t === !1 && c(`integer - "${e}" is not an integer`), t;
149
+ }
150
+ }), Ye = () => b("symbol", {
151
+ validator(e) {
152
+ const t = typeof e == "symbol";
153
+ return t === !1 && c(`symbol - invalid value "${e}"`), t;
154
+ }
155
+ }), ze = () => Object.defineProperty(
156
+ {
157
+ type: null,
158
+ validator(e) {
159
+ const t = e === null;
160
+ return t === !1 && c("nullable - value should be null"), t;
161
+ }
162
+ },
163
+ "_vueTypes_name",
164
+ { value: "nullable" }
165
+ );
166
+ function Me(e, t = "custom validation failed") {
167
+ if (typeof e != "function")
168
+ throw new TypeError(
169
+ "[VueTypes error]: You must provide a function as argument"
170
+ );
171
+ return b(e.name || "<<anonymous function>>", {
172
+ type: null,
173
+ validator(r) {
174
+ const n = e(r);
175
+ return n || c(`${this._vueTypes_name} - ${t}`), n;
176
+ }
177
+ });
178
+ }
179
+ function Qe(e) {
180
+ if (!L(e))
181
+ throw new TypeError(
182
+ "[VueTypes error]: You must provide an array as argument."
183
+ );
184
+ const t = `oneOf - value should be one of "${e.map((n) => typeof n == "symbol" ? n.toString() : n).join('", "')}".`, r = {
185
+ validator(n) {
186
+ const o = e.indexOf(n) !== -1;
187
+ return o || c(t), o;
188
+ }
189
+ };
190
+ if (e.indexOf(null) === -1) {
191
+ const n = e.reduce(
192
+ (o, a) => {
193
+ if (a != null) {
194
+ const s = a.constructor;
195
+ o.indexOf(s) === -1 && o.push(s);
196
+ }
197
+ return o;
198
+ },
199
+ []
200
+ );
201
+ n.length > 0 && (r.type = n);
202
+ }
203
+ return b("oneOf", r);
204
+ }
205
+ function He(e) {
206
+ if (!L(e))
207
+ throw new TypeError(
208
+ "[VueTypes error]: You must provide an array as argument"
209
+ );
210
+ let t = !1, r = !1, n = [];
211
+ for (let a = 0; a < e.length; a += 1) {
212
+ const s = e[a];
213
+ if (ue(s)) {
214
+ if (R(s.validator) && (t = !0), M(s, "oneOf") && s.type) {
215
+ n = n.concat(s.type);
216
+ continue;
217
+ }
218
+ if (M(s, "nullable")) {
219
+ r = !0;
220
+ continue;
221
+ }
222
+ if (s.type === !0 || !s.type) {
223
+ c('oneOfType - invalid usage of "true" and "null" as types.');
224
+ continue;
225
+ }
226
+ n = n.concat(s.type);
227
+ } else
228
+ n.push(s);
229
+ }
230
+ n = n.filter((a, s) => n.indexOf(a) === s);
231
+ const o = r === !1 && n.length > 0 ? n : null;
232
+ return t ? b("oneOfType", {
233
+ type: o,
234
+ validator(a) {
235
+ const s = [], d = e.some((y) => {
236
+ const g = S(y, a, !0);
237
+ return typeof g == "string" && s.push(g), g === !0;
238
+ });
239
+ return d || c(
240
+ `oneOfType - provided value does not match any of the ${s.length} passed-in validators:
241
+ ${B(s.join(`
242
+ `))}`
243
+ ), d;
244
+ }
245
+ }) : b("oneOfType", {
246
+ type: o
247
+ });
248
+ }
249
+ function Xe(e) {
250
+ return b("arrayOf", {
251
+ type: Array,
252
+ validator(t) {
253
+ let r = "";
254
+ const n = t.every((o) => (r = S(e, o, !0), r === !0));
255
+ return n || c(`arrayOf - value validation error:
256
+ ${B(r)}`), n;
257
+ }
258
+ });
259
+ }
260
+ function Ge(e) {
261
+ return b("instanceOf", {
262
+ type: e
263
+ });
264
+ }
265
+ function Ke(e) {
266
+ return b("objectOf", {
267
+ type: Object,
268
+ validator(t) {
269
+ let r = "";
270
+ if (!j(t))
271
+ return !1;
272
+ const n = Object.keys(t).every((o) => (r = S(e, t[o], !0), r === !0));
273
+ return n || c(`objectOf - value validation error:
274
+ ${B(r)}`), n;
275
+ }
276
+ });
277
+ }
278
+ function Je(e) {
279
+ const t = Object.keys(e), r = t.filter((o) => {
280
+ var a;
281
+ return !!((a = e[o]) != null && a.required);
282
+ }), n = b("shape", {
283
+ type: Object,
284
+ validator(o) {
285
+ if (!j(o))
286
+ return !1;
287
+ const a = Object.keys(o);
288
+ if (r.length > 0 && r.some((s) => a.indexOf(s) === -1)) {
289
+ const s = r.filter(
290
+ (d) => a.indexOf(d) === -1
291
+ );
292
+ return s.length === 1 ? c(`shape - required property "${s[0]}" is not defined.`) : c(
293
+ `shape - required properties "${s.join(
294
+ '", "'
295
+ )}" are not defined.`
296
+ ), !1;
297
+ }
298
+ return a.every((s) => {
299
+ if (t.indexOf(s) === -1)
300
+ return this._vueTypes_isLoose === !0 ? !0 : (c(
301
+ `shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join(
302
+ '", "'
303
+ )}".`
304
+ ), !1);
305
+ const d = e[s], y = S(d, o[s], !0);
306
+ return typeof y == "string" && c(`shape - "${s}" property validation error:
307
+ ${B(y)}`), y === !0;
308
+ });
309
+ }
310
+ });
311
+ return Object.defineProperty(n, "_vueTypes_isLoose", {
312
+ writable: !0,
313
+ value: !1
314
+ }), Object.defineProperty(n, "loose", {
315
+ get() {
316
+ return this._vueTypes_isLoose = !0, this;
317
+ }
318
+ }), n;
319
+ }
320
+ var Ze = Object.defineProperty, et = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, h = (e, t, r) => (et(e, typeof t != "symbol" ? t + "" : t, r), r);
321
+ const tt = /* @__PURE__ */ (() => {
322
+ var e;
323
+ return (
324
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
325
+ e = class {
326
+ static get any() {
327
+ return Ue();
328
+ }
329
+ static get func() {
330
+ return qe().def(this.defaults.func);
331
+ }
332
+ static get bool() {
333
+ return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
334
+ }
335
+ static get string() {
336
+ return De().def(this.defaults.string);
337
+ }
338
+ static get number() {
339
+ return Be().def(this.defaults.number);
340
+ }
341
+ static get array() {
342
+ return Ee().def(this.defaults.array);
343
+ }
344
+ static get object() {
345
+ return Fe().def(this.defaults.object);
346
+ }
347
+ static get integer() {
348
+ return We().def(this.defaults.integer);
349
+ }
350
+ static get symbol() {
351
+ return Ye();
352
+ }
353
+ static get nullable() {
354
+ return ze();
355
+ }
356
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
357
+ static extend(...t) {
358
+ c(
359
+ "VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
360
+ );
361
+ }
362
+ }, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ge), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ke), h(e, "shape", Je), h(e, "utils", {
363
+ validate(t, r) {
364
+ return S(r, t, !0) === !0;
365
+ },
366
+ toType(t, r, n = !1) {
367
+ return n ? _(t, r) : b(t, r);
368
+ }
369
+ }), e
370
+ );
371
+ })();
372
+ function de(e = ke()) {
373
+ var t;
374
+ return t = class extends tt {
375
+ static get sensibleDefaults() {
376
+ return { ...this.defaults };
377
+ }
378
+ static set sensibleDefaults(r) {
379
+ if (r === !1) {
380
+ this.defaults = {};
381
+ return;
382
+ }
383
+ if (r === !0) {
384
+ this.defaults = { ...e };
385
+ return;
386
+ }
387
+ this.defaults = { ...r };
388
+ }
389
+ }, h(t, "defaults", { ...e }), t;
390
+ }
391
+ class mt extends de() {
392
+ }
393
+ const nt = de({
394
+ func: void 0,
395
+ bool: void 0,
396
+ string: void 0,
397
+ number: void 0,
398
+ object: void 0,
399
+ integer: void 0
400
+ });
401
+ class D extends nt {
402
+ // a native-like validator that supports the `.validable` method
403
+ static get style() {
404
+ return _("style", {
405
+ type: [String, Object]
406
+ });
407
+ }
408
+ static get VNodeChild() {
409
+ return _("VNodeChild", {
410
+ type: void 0
411
+ });
412
+ }
413
+ }
414
+ const rt = {
415
+ // img 或者 canvas,img不支持logo嵌套
416
+ tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
417
+ // 二维码内容
418
+ text: {
419
+ type: [String, Array],
420
+ default: null
421
+ },
422
+ // qrcode.js配置项
423
+ options: {
424
+ type: Object,
425
+ default: () => ({})
426
+ },
427
+ // 宽度
428
+ width: D.number.def(200),
429
+ // logo
430
+ logo: {
431
+ type: [String, Object],
432
+ default: () => ""
433
+ },
434
+ // 是否过期
435
+ disabled: D.bool.def(!1),
436
+ // 过期提示内容
437
+ disabledText: D.string.def("")
438
+ }, ot = /* @__PURE__ */ re({
439
+ name: "SuQrcode",
440
+ props: rt,
441
+ emits: ["done", "click", "disabled-click"],
442
+ setup(e, {
443
+ emit: t
444
+ }) {
445
+ const {
446
+ toCanvas: r,
447
+ toDataURL: n
448
+ } = Ne, o = N(!0), a = N(null), s = K(() => String(e.text)), d = K(() => ({
449
+ width: e.width + "px",
450
+ height: e.width + "px"
451
+ })), y = async () => {
452
+ await ve();
453
+ const i = oe(e.options || {}, !0);
454
+ if (e.tag === "canvas") {
455
+ i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
456
+ const l = await E(C(s), i);
457
+ i.scale = e.width === 0 ? void 0 : e.width / l * 4;
458
+ const u = await r(C(a), C(s), i);
459
+ if (e.logo) {
460
+ const f = await g(u);
461
+ t("done", f), o.value = !1;
462
+ } else
463
+ t("done", u.toDataURL()), o.value = !1;
464
+ } else {
465
+ const l = await n(s.value, {
466
+ errorCorrectionLevel: "H",
467
+ width: e.width,
468
+ ...i
469
+ });
470
+ C(a).src = l, t("done", l), o.value = !1;
471
+ }
472
+ };
473
+ me(() => s.value, (i) => {
474
+ i && y();
475
+ }, {
476
+ deep: !0,
477
+ immediate: !0
478
+ });
479
+ const g = (i) => {
480
+ const l = i.width, u = Object.assign({
481
+ logoSize: 0.15,
482
+ bgColor: "#ffffff",
483
+ borderSize: 0.05,
484
+ crossOrigin: "anonymous",
485
+ borderRadius: 8,
486
+ logoRadius: 0
487
+ }, Z(e.logo) ? {} : e.logo), {
488
+ logoSize: f = 0.15,
489
+ bgColor: m = "#ffffff",
490
+ borderSize: O = 0.05,
491
+ crossOrigin: P = "anonymous",
492
+ borderRadius: fe = 8,
493
+ logoRadius: W = 0
494
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, w = l * f, T = l * (1 - f) / 2, Q = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
495
+ if (!v) return;
496
+ I(v)(H, H, Q, Q, fe), v.fillStyle = m, v.fill();
497
+ const V = new Image();
498
+ (P || W) && V.setAttribute("crossOrigin", P), V.src = pe;
499
+ const ye = (A) => {
500
+ v.drawImage(A, T, T, w, w);
501
+ }, ge = (A) => {
502
+ const q = document.createElement("canvas");
503
+ q.width = T + w, q.height = T + w;
504
+ const X = q.getContext("2d");
505
+ if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
506
+ const G = v.createPattern(q, "no-repeat");
507
+ G && (v.fillStyle = G, v.fill());
508
+ };
509
+ return new Promise((A) => {
510
+ V.onload = () => {
511
+ W ? ge(V) : ye(V), A(i.toDataURL());
512
+ };
513
+ });
514
+ }, E = async (i, l) => {
515
+ const u = document.createElement("canvas");
516
+ return await r(u, i, l), u.width;
517
+ }, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", I = (i) => (l, u, f, m, O) => {
518
+ const P = Math.min(f, m);
519
+ return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u + m, O), i.arcTo(l + f, u + m, l, u + m, O), i.arcTo(l, u + m, l, u, O), i.arcTo(l, u, l + f, u, O), i.closePath(), i;
520
+ }, U = () => {
521
+ t("click");
522
+ }, F = () => {
523
+ t("disabled-click");
524
+ };
525
+ return () => p(Y, null, [he(p("div", {
526
+ class: "qrcode relative inline-block",
527
+ style: C(d)
528
+ }, [e.tag === "canvas" ? p("canvas", {
529
+ ref: a,
530
+ onClick: U
531
+ }, null) : p("img", {
532
+ ref: a,
533
+ onClick: U
534
+ }, null), e.disabled && p("div", {
535
+ class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
536
+ onClick: F
537
+ }, [p("div", {
538
+ class: "absolute top-[50%] left-[50%] font-bold"
539
+ }, [p(Se, {
540
+ class: "cursor-pointer",
541
+ icon: "refresh-right",
542
+ width: "30",
543
+ color: "var(--el-color-primary)"
544
+ }, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
545
+ }
546
+ }), it = Ve(ot);
547
+ function st(e) {
548
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
549
+ }
550
+ const at = {
551
+ name: "PdaApp"
552
+ }, lt = /* @__PURE__ */ re({
553
+ ...at,
554
+ setup(e) {
555
+ const t = xe(), r = Ae(), {
556
+ t: n
557
+ } = je(), o = "/upms/v1/app-manage", a = N(null), s = N({}), d = [{
558
+ type: "checkbox",
559
+ width: 45,
560
+ align: "center"
561
+ }, {
562
+ field: "appVersion",
563
+ title: "message.udp.appVersion",
564
+ width: 110
565
+ }, {
566
+ field: "buildNo",
567
+ title: "message.udp.buildNo",
568
+ width: 130
569
+ }, {
570
+ field: "isForceUpdate",
571
+ title: "message.udp.isForceUpdate",
572
+ width: 130,
573
+ formatter: ({
574
+ row: i
575
+ }) => i.isForceUpdate === "Y" ? n("message.udp.forceUpdate") : n("message.udp.freeUpdate")
576
+ }, {
577
+ field: "versionInfo",
578
+ title: "message.udp.versionInfo",
579
+ miWidth: 200
580
+ }, {
581
+ field: "enabled",
582
+ title: "message.status",
583
+ width: 90,
584
+ formatter: ({
585
+ row: i
586
+ }) => i.enabled === "1" ? n("message.udp.appupper") : n("message.udp.applower")
587
+ }, {
588
+ field: "creationDate",
589
+ width: 140
590
+ }, {
591
+ field: "operate",
592
+ width: 260,
593
+ fixed: "right",
594
+ slots: {
595
+ default: ({
596
+ row: i
597
+ }) => {
598
+ const l = i.enabled === "1" ? "applower" : "appupper", u = i.enabled === "1" ? "warning" : "primary", f = i.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
599
+ return i.enabled !== "1" ? [p(x("ut-button"), {
600
+ content: l,
601
+ icon: f,
602
+ status: u,
603
+ onTap: () => y(i)
604
+ }, null)] : [
605
+ p(Y, null, [p("div", {
606
+ style: "display: flex; justify-content: space-between;"
607
+ }, [p(x("ut-button"), {
608
+ content: l,
609
+ icon: f,
610
+ status: u,
611
+ onTap: () => y(i)
612
+ }, null), p(x("el-popover"), {
613
+ placement: "left"
614
+ }, {
615
+ default: () => [p(Y, null, [p(it, {
616
+ text: t + "/ufil/" + i.downloadUrl
617
+ }, null)])],
618
+ reference: () => {
619
+ let m;
620
+ return p(x("el-button"), {
621
+ type: "success"
622
+ }, st(m = n("message.btn.scan")) ? m : {
623
+ default: () => [m]
624
+ });
625
+ }
626
+ })])])
627
+ // <el-popover
628
+ // placement="left"
629
+ // v-slots={{
630
+ // reference: () => <el-button type="primary">外网下载</el-button>
631
+ // }}
632
+ // >
633
+ // <>
634
+ // <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
635
+ // </>
636
+ // </el-popover>
637
+ ];
638
+ }
639
+ }
640
+ }], y = async (i) => {
641
+ const l = oe(i, !0);
642
+ l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
643
+ }, g = (i) => {
644
+ i === "add" && I(), i === "del" && U();
645
+ }, E = [{
646
+ field: "appVersion",
647
+ title: "message.udp.appVersion",
648
+ required: !0
649
+ }, {
650
+ field: "buildNo",
651
+ title: "message.udp.buildNo",
652
+ required: !0
653
+ }, {
654
+ field: "isForceUpdate",
655
+ title: "message.udp.isForceUpdate",
656
+ required: !0,
657
+ itemRender: r.renderSwitch({
658
+ openLabel: n("message.udp.forceUpdate"),
659
+ closeLabel: n("message.udp.freeUpdate"),
660
+ openValue: "Y",
661
+ closeValue: "N"
662
+ })
663
+ }, {
664
+ field: "versionInfo",
665
+ title: "message.udp.versionInfo",
666
+ required: !0,
667
+ itemRender: r.renderTextarea()
668
+ }, {
669
+ field: "downloadUrl",
670
+ required: !1,
671
+ title: "message.udp.downloadUrl",
672
+ itemRender: r.renderUpload()
673
+ }], $ = N(!1), I = () => {
674
+ s.value = {
675
+ // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
676
+ // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
677
+ }, $.value = !0;
678
+ }, U = () => {
679
+ a.value.getInstance().commitProxy("delete");
680
+ }, F = () => {
681
+ a.value.refreshData();
682
+ };
683
+ return (i, l) => {
684
+ const u = x("ut-grid"), f = x("ut-modal-form");
685
+ return J(), Oe("div", null, [p(u, {
686
+ ref_key: "xgrid",
687
+ ref: a,
688
+ columns: d,
689
+ url: o,
690
+ mode: "form",
691
+ onButtonClick: g
692
+ }, null, 512), $.value ? (J(), _e(f, {
693
+ key: 0,
694
+ record: s.value,
695
+ items: E,
696
+ width: 420,
697
+ height: 450,
698
+ title: i.$t("message.title.appAdd"),
699
+ url: o,
700
+ class: "ut-app-form",
701
+ "data-status": "add",
702
+ onClose: l[0] || (l[0] = (m) => $.value = !1),
703
+ onConfirm: F
704
+ }, null, 8, ["record", "title"])) : we("", !0)]);
705
+ };
706
+ }
707
+ }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
708
+ export {
709
+ ht as default
710
+ };