@utogether/udp-core 1.0.0 → 1.0.1-beta.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 (144) hide show
  1. package/build/plugins.ts +8 -2
  2. package/dist/{403-B1R-4vXw.js → 403-BBQoJwTM.js} +9 -8
  3. package/dist/{404-fXPl8csw.js → 404-BbJPSIWM.js} +15 -14
  4. package/dist/{500-eI5842YB.js → 500-BtFL9R4M.js} +11 -10
  5. package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DhiwCeLN.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js} +3 -3
  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-CYC9Avfz.js → Company-CGqmslx-.js} +3 -3
  10. package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-hlDsxD-6.js} +10 -10
  11. package/dist/{Department-B4BNSiYx.js → Department-BZyJtacc.js} +3 -3
  12. package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-D-a_EBFt.js} +23 -23
  13. package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-Bl4luWDV.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js} +6 -6
  15. package/dist/{DictView-bIS5-rK-.js → DictView-B4a7Hs1X.js} +9 -9
  16. package/dist/InvOrganization-q4T3y8dQ.js +260 -0
  17. package/dist/{Org-kXHSjsgJ.js → Org-BTGTrAVz.js} +3 -3
  18. package/dist/{Preview-CRyiwUIR.js → Preview-pHD84xqI.js} +1 -1
  19. package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-DnnCNQWS.js} +1 -1
  20. package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-BnI_Q4pg.js} +10 -10
  21. package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-Dby2MmtM.js} +5 -5
  22. package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-Blm1N8P1.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js} +6 -5
  24. package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-D65RXRY_.js} +11 -11
  25. package/dist/{Role-BwTV2QMH.js → Role-eFZoTpXc.js} +3 -3
  26. package/dist/{RoleAssign-De1JjOun.js → RoleAssign-D9-Y3UNz.js} +3 -3
  27. package/dist/{RolePanel-pUBXsqCM.js → RolePanel-CoUOc3sX.js} +1 -1
  28. package/dist/{RolePanel-E3RcdByM.js → RolePanel-DlFw6HSf.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js} +12 -12
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js} +4 -4
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js} +8 -8
  32. package/dist/{Staff-Czm7A8vI.js → Staff-DFBLCsAd.js} +3 -3
  33. package/dist/StaffInfo-d2CK0oBA.js +4 -0
  34. package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js} +7 -7
  35. package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-D6aWLKN3.js} +1 -1
  36. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js} +46 -49
  37. package/dist/{SysUser-BGwbttRn.js → SysUser-BdZvYxQH.js} +2 -2
  38. package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-BIVa6LLr.js} +1 -1
  39. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js} +1 -2
  40. package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-5VKlHK.js} +51 -49
  41. package/dist/{UserInfo-BsyAcT2d.js → UserInfo-DqXCRZts.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js} +13 -13
  43. package/dist/{childView-CyuLTUqC.js → childView-B2lSsqS3.js} +1 -1
  44. package/dist/{childView-CF83nhxb.js → childView-DRUNqgjI.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js} +1 -1
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-oGriyFTv.js} +6 -6
  47. package/dist/{code-rule-Bz-gnktN.js → code-rule-DZC9T6cl.js} +6 -6
  48. package/dist/core.es.js +4 -4
  49. package/dist/{cron-task-CIifSUdW.js → cron-task-BJwPeA5F.js} +11 -11
  50. package/dist/{frameView-_d2mqjjQ.js → frameView-C6wkvok-.js} +15 -14
  51. package/dist/index-DZc3qRTx.js +2650 -0
  52. package/dist/{layoutView-DLKVepB8.js → layoutView-CeJBpZb_.js} +658 -653
  53. package/dist/{login-LREiDfFU.js → login-BOxwzwdB.js} +26 -25
  54. package/dist/{lov-view-DDrIVILB.js → lov-view-DRF-99U4.js} +5 -5
  55. package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-3Sjvs9nM.js} +1 -1
  56. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js} +95 -94
  57. package/dist/pda-app-B9tn7jdv.js +696 -0
  58. package/dist/redirect-BqegffKC.js +15 -0
  59. package/dist/{resource-BCwx9fEv.js → resource-BqnxbQNe.js} +7 -7
  60. package/dist/{su-welcome-189A7N4r.js → su-welcome-VwifUK_O.js} +41 -40
  61. package/dist/{sys-config-BZ3sejow.js → sys-config-C0-gSBFO.js} +18 -18
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-r08LNiIZ.js → utogether-Di1byIum.js} +6 -6
  64. package/package.json +18 -16
  65. package/src/App.vue +3 -3
  66. package/src/components/udp/form-upload.vue +183 -0
  67. package/src/components/udp/index.ts +4 -0
  68. package/src/components/udp/modal-form.vue +180 -0
  69. package/src/components/udp/utils.ts +40 -0
  70. package/src/main.ts +109 -108
  71. package/src/plugins/vxe-table/index.ts +53 -46
  72. package/src/plugins/vxe-table/render.tsx +604 -184
  73. package/src/utils/udp/useRender.ts +420 -0
  74. package/src/views/organization/inv-org/InvOrganization.vue +2 -1
  75. package/src/views/organization/staff/StaffInfo.vue +0 -30
  76. package/src/views/organization/staff/StaffPanel.vue +4 -3
  77. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  78. package/src/views/system/menu/SystemMenu.vue +197 -191
  79. package/src/views/system/menu/menuInfo.vue +11 -6
  80. package/src/views/system/role/AuthorityInfo.vue +1 -19
  81. package/src/views/system/sysUser/SysUserPanel.vue +1 -1
  82. package/src/views/udev/dict/DictView.vue +2 -2
  83. package/src/views/uhome/components/menu-favorite.vue +1 -1
  84. package/src/views/uhome/su-welcome.vue +1 -1
  85. package/src/views/ulogin/login.vue +1 -1
  86. package/types/global.d.ts +0 -1
  87. package/vite.config.ts +9 -2
  88. package/dist/InvOrganization-MuM2jtsG.js +0 -66
  89. package/dist/StaffInfo-DJzvBuxy.js +0 -4
  90. package/dist/core.umd.js +0 -173
  91. package/dist/index-BKIw8tSn.js +0 -9195
  92. package/dist/pda-app-CRhVGijN.js +0 -2209
  93. package/dist/redirect-DiaNDu8F.js +0 -15
  94. package/src/assets/images/empty.png +0 -0
  95. package/src/assets/images/logo.png +0 -0
  96. package/src/components/ReCountTo/README.md +0 -2
  97. package/src/components/ReCountTo/index.ts +0 -18
  98. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  99. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  100. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  101. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  102. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  103. package/src/components/ReCropper/index.ts +0 -14
  104. package/src/components/ReCropper/src/index.tsx +0 -141
  105. package/src/components/ReFlicker/index.css +0 -39
  106. package/src/components/ReFlicker/index.ts +0 -50
  107. package/src/components/ReFlop/index.ts +0 -14
  108. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  109. package/src/components/ReFlop/src/filpper.css +0 -184
  110. package/src/components/ReFlop/src/index.vue +0 -126
  111. package/src/components/ReFlowChart/index.ts +0 -24
  112. package/src/components/ReFlowChart/src/Control.vue +0 -139
  113. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  114. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  115. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  116. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  117. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  118. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  119. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  120. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  121. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  122. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  123. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  124. package/src/components/ReFlowChart/src/config.ts +0 -62
  125. package/src/components/ReSplitPane/index.css +0 -49
  126. package/src/components/ReSplitPane/index.tsx +0 -119
  127. package/src/components/ReSplitPane/resizer.css +0 -45
  128. package/src/components/ReSplitPane/resizer.tsx +0 -30
  129. package/src/components/SuCommon/card/components/Card.vue +0 -148
  130. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  131. package/src/components/SuCommon/card/index.vue +0 -142
  132. package/src/components/SuCommon/icon-select/index.vue +0 -241
  133. package/src/components/SuCommon/table/index.vue +0 -208
  134. package/src/components/SuCommon/utils/index.ts +0 -103
  135. package/src/components/SuCommon/utils/slot.tsx +0 -50
  136. package/src/views/components/contextmenu/basic.vue +0 -74
  137. package/src/views/components/contextmenu/context-menu.vue +0 -40
  138. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  139. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  140. package/src/views/components/count-to/index.vue +0 -43
  141. package/src/views/components/cropping/index.vue +0 -59
  142. package/src/views/components/cropping/picture.jpeg +0 -0
  143. package/src/views/components/split-pane/index.vue +0 -82
  144. package/src/views/components/video/index.vue +0 -57
@@ -0,0 +1,696 @@
1
+ import { defineComponent as re, ref as R, computed as G, watch as he, createVNode as p, Fragment as z, withDirectives as me, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as Te, isVNode as _e } 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, x as xe, q as $e } from "./index-DZc3qRTx.js";
5
+ import { withInstall as Pe, useRender as Ae } from "@utogether/utils";
6
+ import { clone as oe, isString as Z } from "xe-utils";
7
+ import ke from "qrcode";
8
+ const M = {
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 Re = () => ({
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, Ve = 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 Le(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 = M.logLevel) {
49
+ M.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
50
+ } : le);
51
+ const V = (e, t) => Ve.call(e, t), Ne = 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
+ }, N = (e) => se.call(e) === "[object Function]", Q = (e, t) => j(e) && V(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (V(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
56
+ (t) => V(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 = Q(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 = Le(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 (V(n, "validator") && N(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 V(this, "default") && delete this.default, this;
109
+ }
110
+ return !N(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 N(n) && (r.validator = ce(n, r)), r;
115
+ }
116
+ function w(e, t) {
117
+ const r = b(e, t);
118
+ return Object.defineProperty(r, "validate", {
119
+ value(n) {
120
+ return N(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 E(e) {
130
+ return e.replace(/^(?!\s*$)/gm, " ");
131
+ }
132
+ const qe = () => w("any", {}), Ie = () => w("function", {
133
+ type: Function
134
+ }), ne = () => w("boolean", {
135
+ type: Boolean
136
+ }), De = () => w("string", {
137
+ type: String
138
+ }), Be = () => w("number", {
139
+ type: Number
140
+ }), Ee = () => w("array", {
141
+ type: Array
142
+ }), Ue = () => w("object", {
143
+ type: Object
144
+ }), We = () => b("integer", {
145
+ type: Number,
146
+ validator(e) {
147
+ const t = Ne(e);
148
+ return t === !1 && c(`integer - "${e}" is not an integer`), t;
149
+ }
150
+ }), Fe = () => 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 Ye(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 (N(s.validator) && (t = !0), Q(s, "oneOf") && s.type) {
215
+ n = n.concat(s.type);
216
+ continue;
217
+ }
218
+ if (Q(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
+ ${E(s.join(`
242
+ `))}`
243
+ ), d;
244
+ }
245
+ }) : b("oneOfType", {
246
+ type: o
247
+ });
248
+ }
249
+ function He(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
+ ${E(r)}`), n;
257
+ }
258
+ });
259
+ }
260
+ function Xe(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
+ ${E(r)}`), n;
275
+ }
276
+ });
277
+ }
278
+ function Ge(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
+ ${E(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 Je = Object.defineProperty, Ze = (e, t, r) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, m = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
321
+ const et = /* @__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 qe();
328
+ }
329
+ static get func() {
330
+ return Ie().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 Ue().def(this.defaults.object);
346
+ }
347
+ static get integer() {
348
+ return We().def(this.defaults.integer);
349
+ }
350
+ static get symbol() {
351
+ return Fe();
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
+ }, m(e, "defaults", {}), m(e, "sensibleDefaults"), m(e, "config", M), m(e, "custom", Me), m(e, "oneOf", Qe), m(e, "instanceOf", Xe), m(e, "oneOfType", Ye), m(e, "arrayOf", He), m(e, "objectOf", Ke), m(e, "shape", Ge), m(e, "utils", {
363
+ validate(t, r) {
364
+ return S(r, t, !0) === !0;
365
+ },
366
+ toType(t, r, n = !1) {
367
+ return n ? w(t, r) : b(t, r);
368
+ }
369
+ }), e
370
+ );
371
+ })();
372
+ function de(e = Re()) {
373
+ var t;
374
+ return t = class extends et {
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
+ }, m(t, "defaults", { ...e }), t;
390
+ }
391
+ class yt extends de() {
392
+ }
393
+ const tt = 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 B extends tt {
402
+ // a native-like validator that supports the `.validable` method
403
+ static get style() {
404
+ return w("style", {
405
+ type: [String, Object]
406
+ });
407
+ }
408
+ static get VNodeChild() {
409
+ return w("VNodeChild", {
410
+ type: void 0
411
+ });
412
+ }
413
+ }
414
+ const nt = {
415
+ // img 或者 canvas,img不支持logo嵌套
416
+ tag: B.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: B.number.def(200),
429
+ // logo
430
+ logo: {
431
+ type: [String, Object],
432
+ default: () => ""
433
+ },
434
+ // 是否过期
435
+ disabled: B.bool.def(!1),
436
+ // 过期提示内容
437
+ disabledText: B.string.def("")
438
+ }, rt = /* @__PURE__ */ re({
439
+ name: "SuQrcode",
440
+ props: nt,
441
+ emits: ["done", "click", "disabled-click"],
442
+ setup(e, {
443
+ emit: t
444
+ }) {
445
+ const {
446
+ toCanvas: r,
447
+ toDataURL: n
448
+ } = ke, o = R(!0), a = R(null), s = G(() => String(e.text)), d = G(() => ({
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 U(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
+ he(() => 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: h = "#ffffff",
490
+ borderSize: O = 0.05,
491
+ crossOrigin: P = "anonymous",
492
+ borderRadius: fe = 8,
493
+ logoRadius: F = 0
494
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, T = l * f, _ = l * (1 - f) / 2, Y = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
495
+ if (!v) return;
496
+ q(v)(H, H, Y, Y, fe), v.fillStyle = h, v.fill();
497
+ const A = new Image();
498
+ (P || F) && A.setAttribute("crossOrigin", P), A.src = pe;
499
+ const ye = (k) => {
500
+ v.drawImage(k, _, _, T, T);
501
+ }, ge = (k) => {
502
+ const D = document.createElement("canvas");
503
+ D.width = _ + T, D.height = _ + T;
504
+ const X = D.getContext("2d");
505
+ if (!X || !v || (X.drawImage(k, _, _, T, T), q(v)(_, _, T, T, F), !v)) return;
506
+ const K = v.createPattern(D, "no-repeat");
507
+ K && (v.fillStyle = K, v.fill());
508
+ };
509
+ return new Promise((k) => {
510
+ A.onload = () => {
511
+ F ? ge(A) : ye(A), k(i.toDataURL());
512
+ };
513
+ });
514
+ }, U = 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", q = (i) => (l, u, f, h, O) => {
518
+ const P = Math.min(f, h);
519
+ return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u + h, O), i.arcTo(l + f, u + h, l, u + h, O), i.arcTo(l, u + h, l, u, O), i.arcTo(l, u, l + f, u, O), i.closePath(), i;
520
+ }, I = () => {
521
+ t("click");
522
+ }, W = () => {
523
+ t("disabled-click");
524
+ };
525
+ return () => p(z, null, [me(p("div", {
526
+ class: "qrcode relative inline-block",
527
+ style: C(d)
528
+ }, [e.tag === "canvas" ? p("canvas", {
529
+ ref: a,
530
+ onClick: I
531
+ }, null) : p("img", {
532
+ ref: a,
533
+ onClick: I
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: W
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
+ }), ot = Pe(rt);
547
+ function it(e) {
548
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !_e(e);
549
+ }
550
+ const st = {
551
+ name: "PdaApp"
552
+ }, gt = /* @__PURE__ */ re({
553
+ ...st,
554
+ setup(e) {
555
+ const t = xe(), r = Ae(), {
556
+ t: n
557
+ } = je(), o = "/upms/v1/app-manage", a = R(null), s = R({}), d = [
558
+ {
559
+ type: "checkbox",
560
+ width: 45,
561
+ align: "center"
562
+ },
563
+ // { field: 'trayTypeCode', width: 110, formatter: ['formatDict', 'SU.TRAY.TYPE'] },
564
+ {
565
+ field: "appVersion",
566
+ width: 110
567
+ },
568
+ {
569
+ field: "buildNo",
570
+ width: 130
571
+ },
572
+ {
573
+ field: "versionInfo",
574
+ miWidth: 200
575
+ },
576
+ {
577
+ field: "enabled",
578
+ title: "message.status",
579
+ width: 90,
580
+ formatter: ({
581
+ row: i
582
+ }) => i.enabled === "1" ? n("message.appupper") : n("message.applower")
583
+ },
584
+ {
585
+ field: "creationDate",
586
+ width: 140
587
+ },
588
+ {
589
+ field: "operate",
590
+ width: 260,
591
+ fixed: "right",
592
+ slots: {
593
+ default: ({
594
+ row: i
595
+ }) => {
596
+ 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";
597
+ return i.enabled !== "1" ? [p(x("ut-button"), {
598
+ content: l,
599
+ icon: f,
600
+ status: u,
601
+ onTap: () => y(i)
602
+ }, null)] : [
603
+ p(z, null, [p("div", {
604
+ style: "display: flex; justify-content: space-between;"
605
+ }, [p(x("ut-button"), {
606
+ content: l,
607
+ icon: f,
608
+ status: u,
609
+ onTap: () => y(i)
610
+ }, null), p(x("el-popover"), {
611
+ placement: "left"
612
+ }, {
613
+ default: () => [p(z, null, [p(ot, {
614
+ text: t + "/ufil/" + i.downloadUrl
615
+ }, null)])],
616
+ reference: () => {
617
+ let h;
618
+ return p(x("el-button"), {
619
+ type: "success"
620
+ }, it(h = n("message.btn.scan")) ? h : {
621
+ default: () => [h]
622
+ });
623
+ }
624
+ })])])
625
+ // <el-popover
626
+ // placement="left"
627
+ // v-slots={{
628
+ // reference: () => <el-button type="primary">外网下载</el-button>
629
+ // }}
630
+ // >
631
+ // <>
632
+ // <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
633
+ // </>
634
+ // </el-popover>
635
+ ];
636
+ }
637
+ }
638
+ }
639
+ ], y = async (i) => {
640
+ const l = oe(i, !0);
641
+ l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
642
+ }, g = (i) => {
643
+ i === "add" && q(), i === "del" && I();
644
+ }, U = [{
645
+ field: "appVersion",
646
+ required: !0
647
+ }, {
648
+ field: "buildNo",
649
+ required: !0
650
+ }, {
651
+ field: "versionInfo",
652
+ required: !0,
653
+ itemRender: r.renderTextarea()
654
+ }, {
655
+ field: "downloadUrl",
656
+ required: !1,
657
+ itemRender: {
658
+ name: "#upload",
659
+ props: {
660
+ baseUrl: t
661
+ }
662
+ }
663
+ }], $ = R(!1), q = () => {
664
+ s.value = {}, $.value = !0;
665
+ }, I = () => {
666
+ a.value.getInstance().commitProxy("delete");
667
+ }, W = () => {
668
+ a.value.refreshData();
669
+ };
670
+ return (i, l) => {
671
+ const u = x("ut-grid"), f = x("ut-modal-form");
672
+ return J(), Oe("div", null, [p(u, {
673
+ ref_key: "xgrid",
674
+ ref: a,
675
+ columns: d,
676
+ url: o,
677
+ mode: "form",
678
+ onButtonClick: g
679
+ }, null, 512), $.value ? (J(), we(f, {
680
+ key: 0,
681
+ record: s.value,
682
+ items: U,
683
+ width: 360,
684
+ height: 340,
685
+ title: i.$t("message.title.appAdd"),
686
+ url: o,
687
+ "data-status": "add",
688
+ onClose: l[0] || (l[0] = (h) => $.value = !1),
689
+ onConfirm: W
690
+ }, null, 8, ["record", "title"])) : Te("", !0)]);
691
+ };
692
+ }
693
+ });
694
+ export {
695
+ gt as default
696
+ };
@@ -0,0 +1,15 @@
1
+ import { defineComponent as a, unref as p, createElementBlock as s, openBlock as u } from "vue";
2
+ import { useRouter as _ } from "vue-router";
3
+ const m = { name: "Redirect" }, y = /* @__PURE__ */ a({
4
+ ...m,
5
+ setup(i) {
6
+ const { currentRoute: t, replace: r } = _(), { params: o, query: n } = p(t), { path: e } = o, c = Array.isArray(e) ? e.join("/") : e;
7
+ return r({
8
+ path: "/" + c,
9
+ query: n
10
+ }), (f, l) => (u(), s("div"));
11
+ }
12
+ });
13
+ export {
14
+ y as default
15
+ };