@utogether/udp-core 1.0.1-beta.22 → 1.0.1-beta.24

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 (71) hide show
  1. package/dist/{403-B87JSuhn.js → 403-Dzcgpvp0.js} +1 -1
  2. package/dist/{404-BhiUKT1b.js → 404-BMtUBfzS.js} +1 -1
  3. package/dist/{500-2G6eyDeT.js → 500-BM0zxG1M.js} +1 -1
  4. package/dist/{AuthorityInfo-Bl4_zDot.js → AuthorityInfo-BmsB4SqO.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-92i5Oriz.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CKcQbO7T.js} +1 -1
  6. package/dist/{Company-CbTh7_bX.js → Company-CwUC57TC.js} +3 -3
  7. package/dist/{CompanyPanel-BVEYMQKM.js → CompanyPanel-BAmnU8nv.js} +1 -1
  8. package/dist/{Department-Cu83Buy8.js → Department-BsXoz3BD.js} +3 -3
  9. package/dist/{DepartmentPanel-CO76buwO.js → DepartmentPanel-78TnO9Tu.js} +1 -1
  10. package/dist/{DesignPanel-DDgVNzYW.js → DesignPanel-CSL9uUNR.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Bwernx0s.js → DesignPanel.vue_vue_type_style_index_0_lang-CZrUHBBj.js} +2 -2
  12. package/dist/{DictView-DJDg_Oem.js → DictView-BKqfJuJq.js} +1 -1
  13. package/dist/{InvOrganization-D9BMWweK.js → InvOrganization-2gn2zpSK.js} +1 -1
  14. package/dist/{Org-CcfRkpBY.js → Org-C_08akFc.js} +1 -1
  15. package/dist/{Preview-DGP1uIZU.js → Preview-CffizoOK.js} +1 -1
  16. package/dist/{ReportDefine-u7r-IVPD.js → ReportDefine-BmBcBFey.js} +1 -1
  17. package/dist/{ReportDesign-CLQRMIy3.js → ReportDesign-Dw5AZl_M.js} +2 -2
  18. package/dist/{ReportQuery-BNTCTpqI.js → ReportQuery-B4LyGqtT.js} +1 -1
  19. package/dist/{ReportQueryFrom-G7X1Fyf5.js → ReportQueryFrom-oBS0ClDQ.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D5lDZFPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DvayIk8Y.js} +1 -1
  21. package/dist/{ReportTemplate-QWAuFjaB.js → ReportTemplate-CNcUhJRf.js} +1 -1
  22. package/dist/{Role-Ba1OVGG0.js → Role-RUCpeqPj.js} +3 -3
  23. package/dist/{RoleAssign-DFiMYll8.js → RoleAssign-DYidK2md.js} +3 -3
  24. package/dist/{RolePanel-c-xitljX.js → RolePanel-BQuKAefI.js} +1 -1
  25. package/dist/{RolePanel-D6xKrLlM.js → RolePanel-BrtpMF69.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeZ1xNXU.js → RolePanel.vue_vue_type_script_setup_true_lang-CrzUrpzJ.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DrBiLlBb.js → RolePanel.vue_vue_type_script_setup_true_lang-FAOBa5ds.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D4eReGaK.js → ScrollPanel.vue_vue_type_style_index_0_lang-CmhAWJD4.js} +1 -1
  29. package/dist/{Staff-C-5TE1Yn.js → Staff-MnxrATUB.js} +3 -3
  30. package/dist/{StaffInfo-CwJlL_Nr.js → StaffInfo-CXNLmE3w.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C2BsoQlr.js → StaffInfo.vue_vue_type_script_setup_true_lang-AsAikm4v.js} +1 -1
  32. package/dist/{StaffPanel-QOv1pq2Z.js → StaffPanel-BdhcAqQL.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BGQSHjaQ.js → StaffPanel.vue_vue_type_script_setup_true_lang-B51ElICg.js} +2 -2
  34. package/dist/{SysUser-Byug_VNY.js → SysUser-Dh70yuNE.js} +2 -2
  35. package/dist/{SysUserPanel-B-M2Yxjj.js → SysUserPanel-DimcWXi5.js} +1 -1
  36. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-5U-oqRaF.js +340 -0
  37. package/dist/{SystemMenu-Bs9a4BE0.js → SystemMenu-CH04ZC4Q.js} +39 -39
  38. package/dist/{UserInfo-Ipp00UAF.js → UserInfo--5jFxyNg.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DIcWs6vj.js → UserInfo.vue_vue_type_style_index_0_lang-BpS2JUoM.js} +1 -1
  40. package/dist/{childView-N1PkzqQK.js → childView-1QhOOcjT.js} +1 -1
  41. package/dist/{childView-O-5baerB.js → childView-q4jq8JUU.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang--yGHgWVq.js → childView.vue_vue_type_style_index_0_lang-C1_CKaiz.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-srudWvXc.js → childView.vue_vue_type_style_index_0_lang-_9frXYVo.js} +1 -1
  44. package/dist/{code-rule-CRunTGXH.js → code-rule-Cmc-zh3P.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-IEuaI4Nt.js → cron-task-BJC8dKFZ.js} +1 -1
  47. package/dist/{frameView-vGVXV1ZG.js → frameView-rRbSPmqe.js} +1 -1
  48. package/dist/index-CU7HTsRe.js +6497 -0
  49. package/dist/{layoutView-BJO8Hm5d.js → layoutView-C5aVJcOn.js} +1 -1
  50. package/dist/{login-CZyenjQX.js → login-DGj6zzD2.js} +1 -1
  51. package/dist/{lov-view-6He1ZxGX.js → lov-view-CDYHJIbU.js} +2 -2
  52. package/dist/{menuInfo-CE5Cae2u.js → menuInfo-N2mUoR6P.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BjshFg3S.js → menuInfo.vue_vue_type_style_index_0_lang-Y7Jg-MZO.js} +119 -99
  54. package/dist/{pda-app-DOiT57m1.js → pda-app-D0g-Ygcq.js} +1 -1
  55. package/dist/{resource-BdlOJOcz.js → resource-DPW5r_7h.js} +1 -1
  56. package/dist/{su-welcome-BxRhJD8X.js → su-welcome-GWIgWj_m.js} +1 -1
  57. package/dist/{sys-config-Csy-234G.js → sys-config-DwaGsVVu.js} +1 -1
  58. package/dist/udp-core.css +1 -1
  59. package/package.json +3 -3
  60. package/src/components/udp/grid/index.vue +514 -513
  61. package/src/plugins/i18n/zh.ts +6 -3
  62. package/src/router/utils.ts +2 -2
  63. package/src/style/button.scss +85 -85
  64. package/src/utils/udp/http/index.ts +294 -0
  65. package/src/utils/udp/http/types.d.ts +42 -0
  66. package/src/views/system/cron/cron-task.vue +2 -12
  67. package/src/views/system/menu/SystemMenu.vue +185 -183
  68. package/src/views/system/menu/menuInfo.vue +384 -363
  69. package/src/views/system/sysUser/SysUserPanel.vue +346 -279
  70. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-Dm1YyUXX.js +0 -298
  71. package/dist/index-D_tU_u2l.js +0 -4640
@@ -1,4640 +0,0 @@
1
- import * as Cn from "vue";
2
- import { defineComponent as ke, resolveComponent as Ve, createBlock as sr, openBlock as vo, withCtx as io, createVNode as st, toRaw as so, isProxy as Uo, defineAsyncComponent as lr, useAttrs as ur, getCurrentInstance as cr, ref as Re, reactive as dr, nextTick as fr, onUnmounted as mr, onBeforeMount as hr, createElementBlock as Sn, mergeProps as Dn, toHandlers as pr, unref as gr, computed as Pt, h as Te, createApp as yr } from "vue";
3
- import { ElConfigProvider as zo } from "element-plus";
4
- import { checkVersion as vr } from "version-rocket";
5
- import { useI18n as Bt, createI18n as br } from "vue-i18n";
6
- import { http as pe, storageLocal as O, cookies as Ae, buildHierarchyTree as bo, dbstorage as tt, isUrl as Tn, openLink as wr, NProgress as Er, VxetableRender as Cr, formatRules as lo, i18nColums as Sr, warnMessage as jo, errorMessage as Dr, formatGridItems as Tr, formatItems as xr, useGlobal as xn, deviceDetection as kr, storageSession as Ir } from "@utogether/utils";
7
- import { merge as wo, clone as ee, findLastIndexOf as Fr, isEqual as qo, findIndexOf as Pr, isEmpty as $e, toDateString as B, getWhatDay as _e, isArray as _r, isString as Ye, isFunction as Or, orderBy as Nr, isObject as Mr } from "xe-utils";
8
- import { createPinia as Rr, defineStore as ut } from "pinia";
9
- import { useTimeoutFn as Ar } from "@vueuse/core";
10
- import kn, { VxeUI as se } from "vxe-table";
11
- import { Icon as $o } from "@iconify/vue";
12
- import Lr from "vue-tippy";
13
- import Br from "element-resize-detector";
14
- var Ur = {
15
- name: "en",
16
- el: {
17
- breadcrumb: {
18
- label: "Breadcrumb"
19
- },
20
- colorpicker: {
21
- confirm: "OK",
22
- clear: "Clear",
23
- defaultLabel: "color picker",
24
- description: "current color is {color}. press enter to select a new color.",
25
- alphaLabel: "pick alpha value"
26
- },
27
- datepicker: {
28
- now: "Now",
29
- today: "Today",
30
- cancel: "Cancel",
31
- clear: "Clear",
32
- confirm: "OK",
33
- dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
34
- monthTablePrompt: "Use the arrow keys and enter to select the month",
35
- yearTablePrompt: "Use the arrow keys and enter to select the year",
36
- selectedDate: "Selected date",
37
- selectDate: "Select date",
38
- selectTime: "Select time",
39
- startDate: "Start Date",
40
- startTime: "Start Time",
41
- endDate: "End Date",
42
- endTime: "End Time",
43
- prevYear: "Previous Year",
44
- nextYear: "Next Year",
45
- prevMonth: "Previous Month",
46
- nextMonth: "Next Month",
47
- year: "",
48
- month1: "January",
49
- month2: "February",
50
- month3: "March",
51
- month4: "April",
52
- month5: "May",
53
- month6: "June",
54
- month7: "July",
55
- month8: "August",
56
- month9: "September",
57
- month10: "October",
58
- month11: "November",
59
- month12: "December",
60
- week: "week",
61
- weeks: {
62
- sun: "Sun",
63
- mon: "Mon",
64
- tue: "Tue",
65
- wed: "Wed",
66
- thu: "Thu",
67
- fri: "Fri",
68
- sat: "Sat"
69
- },
70
- weeksFull: {
71
- sun: "Sunday",
72
- mon: "Monday",
73
- tue: "Tuesday",
74
- wed: "Wednesday",
75
- thu: "Thursday",
76
- fri: "Friday",
77
- sat: "Saturday"
78
- },
79
- months: {
80
- jan: "Jan",
81
- feb: "Feb",
82
- mar: "Mar",
83
- apr: "Apr",
84
- may: "May",
85
- jun: "Jun",
86
- jul: "Jul",
87
- aug: "Aug",
88
- sep: "Sep",
89
- oct: "Oct",
90
- nov: "Nov",
91
- dec: "Dec"
92
- }
93
- },
94
- inputNumber: {
95
- decrease: "decrease number",
96
- increase: "increase number"
97
- },
98
- select: {
99
- loading: "Loading",
100
- noMatch: "No matching data",
101
- noData: "No data",
102
- placeholder: "Select"
103
- },
104
- mention: {
105
- loading: "Loading"
106
- },
107
- dropdown: {
108
- toggleDropdown: "Toggle Dropdown"
109
- },
110
- cascader: {
111
- noMatch: "No matching data",
112
- loading: "Loading",
113
- placeholder: "Select",
114
- noData: "No data"
115
- },
116
- pagination: {
117
- goto: "Go to",
118
- pagesize: "/page",
119
- total: "Total {total}",
120
- pageClassifier: "",
121
- page: "Page",
122
- prev: "Go to previous page",
123
- next: "Go to next page",
124
- currentPage: "page {pager}",
125
- prevPages: "Previous {pager} pages",
126
- nextPages: "Next {pager} pages",
127
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
128
- },
129
- dialog: {
130
- close: "Close this dialog"
131
- },
132
- drawer: {
133
- close: "Close this dialog"
134
- },
135
- messagebox: {
136
- title: "Message",
137
- confirm: "OK",
138
- cancel: "Cancel",
139
- error: "Illegal input",
140
- close: "Close this dialog"
141
- },
142
- upload: {
143
- deleteTip: "press delete to remove",
144
- delete: "Delete",
145
- preview: "Preview",
146
- continue: "Continue"
147
- },
148
- slider: {
149
- defaultLabel: "slider between {min} and {max}",
150
- defaultRangeStartLabel: "pick start value",
151
- defaultRangeEndLabel: "pick end value"
152
- },
153
- table: {
154
- emptyText: "No Data",
155
- confirmFilter: "Confirm",
156
- resetFilter: "Reset",
157
- clearFilter: "All",
158
- sumText: "Sum"
159
- },
160
- tour: {
161
- next: "Next",
162
- previous: "Previous",
163
- finish: "Finish"
164
- },
165
- tree: {
166
- emptyText: "No Data"
167
- },
168
- transfer: {
169
- noMatch: "No matching data",
170
- noData: "No data",
171
- titles: ["List 1", "List 2"],
172
- filterPlaceholder: "Enter keyword",
173
- noCheckedFormat: "{total} items",
174
- hasCheckedFormat: "{checked}/{total} checked"
175
- },
176
- image: {
177
- error: "FAILED"
178
- },
179
- pageHeader: {
180
- title: "Back"
181
- },
182
- popconfirm: {
183
- confirmButtonText: "Yes",
184
- cancelButtonText: "No"
185
- },
186
- carousel: {
187
- leftArrow: "Carousel arrow left",
188
- rightArrow: "Carousel arrow right",
189
- indicator: "Carousel switch to index {index}"
190
- }
191
- }
192
- }, zr = {
193
- name: "zh-cn",
194
- el: {
195
- breadcrumb: {
196
- label: "面包屑"
197
- },
198
- colorpicker: {
199
- confirm: "确定",
200
- clear: "清空",
201
- defaultLabel: "颜色选择器",
202
- description: "当前颜色 {color},按 Enter 键选择新颜色",
203
- alphaLabel: "选择透明度的值"
204
- },
205
- datepicker: {
206
- now: "此刻",
207
- today: "今天",
208
- cancel: "取消",
209
- clear: "清空",
210
- confirm: "确定",
211
- dateTablePrompt: "使用方向键与 Enter 键可选择日期",
212
- monthTablePrompt: "使用方向键与 Enter 键可选择月份",
213
- yearTablePrompt: "使用方向键与 Enter 键可选择年份",
214
- selectedDate: "已选日期",
215
- selectDate: "选择日期",
216
- selectTime: "选择时间",
217
- startDate: "开始日期",
218
- startTime: "开始时间",
219
- endDate: "结束日期",
220
- endTime: "结束时间",
221
- prevYear: "前一年",
222
- nextYear: "后一年",
223
- prevMonth: "上个月",
224
- nextMonth: "下个月",
225
- year: "年",
226
- month1: "1 月",
227
- month2: "2 月",
228
- month3: "3 月",
229
- month4: "4 月",
230
- month5: "5 月",
231
- month6: "6 月",
232
- month7: "7 月",
233
- month8: "8 月",
234
- month9: "9 月",
235
- month10: "10 月",
236
- month11: "11 月",
237
- month12: "12 月",
238
- weeks: {
239
- sun: "日",
240
- mon: "一",
241
- tue: "二",
242
- wed: "三",
243
- thu: "四",
244
- fri: "五",
245
- sat: "六"
246
- },
247
- weeksFull: {
248
- sun: "星期日",
249
- mon: "星期一",
250
- tue: "星期二",
251
- wed: "星期三",
252
- thu: "星期四",
253
- fri: "星期五",
254
- sat: "星期六"
255
- },
256
- months: {
257
- jan: "一月",
258
- feb: "二月",
259
- mar: "三月",
260
- apr: "四月",
261
- may: "五月",
262
- jun: "六月",
263
- jul: "七月",
264
- aug: "八月",
265
- sep: "九月",
266
- oct: "十月",
267
- nov: "十一月",
268
- dec: "十二月"
269
- }
270
- },
271
- inputNumber: {
272
- decrease: "减少数值",
273
- increase: "增加数值"
274
- },
275
- select: {
276
- loading: "加载中",
277
- noMatch: "无匹配数据",
278
- noData: "无数据",
279
- placeholder: "请选择"
280
- },
281
- dropdown: {
282
- toggleDropdown: "切换下拉选项"
283
- },
284
- mention: {
285
- loading: "加载中"
286
- },
287
- cascader: {
288
- noMatch: "无匹配数据",
289
- loading: "加载中",
290
- placeholder: "请选择",
291
- noData: "暂无数据"
292
- },
293
- pagination: {
294
- goto: "前往",
295
- pagesize: "条/页",
296
- total: "共 {total} 条",
297
- pageClassifier: "页",
298
- page: "页",
299
- prev: "上一页",
300
- next: "下一页",
301
- currentPage: "第 {pager} 页",
302
- prevPages: "向前 {pager} 页",
303
- nextPages: "向后 {pager} 页",
304
- deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
305
- },
306
- dialog: {
307
- close: "关闭此对话框"
308
- },
309
- drawer: {
310
- close: "关闭此对话框"
311
- },
312
- messagebox: {
313
- title: "提示",
314
- confirm: "确定",
315
- cancel: "取消",
316
- error: "输入的数据不合法!",
317
- close: "关闭此对话框"
318
- },
319
- upload: {
320
- deleteTip: "按 Delete 键可删除",
321
- delete: "删除",
322
- preview: "查看图片",
323
- continue: "继续上传"
324
- },
325
- slider: {
326
- defaultLabel: "滑块介于 {min} 至 {max}",
327
- defaultRangeStartLabel: "选择起始值",
328
- defaultRangeEndLabel: "选择结束值"
329
- },
330
- table: {
331
- emptyText: "暂无数据",
332
- confirmFilter: "筛选",
333
- resetFilter: "重置",
334
- clearFilter: "全部",
335
- sumText: "合计"
336
- },
337
- tour: {
338
- next: "下一步",
339
- previous: "上一步",
340
- finish: "结束导览"
341
- },
342
- tree: {
343
- emptyText: "暂无数据"
344
- },
345
- transfer: {
346
- noMatch: "无匹配数据",
347
- noData: "无数据",
348
- titles: ["列表 1", "列表 2"],
349
- filterPlaceholder: "请输入搜索内容",
350
- noCheckedFormat: "共 {total} 项",
351
- hasCheckedFormat: "已选 {checked}/{total} 项"
352
- },
353
- image: {
354
- error: "加载失败"
355
- },
356
- pageHeader: {
357
- title: "返回"
358
- },
359
- popconfirm: {
360
- confirmButtonText: "确定",
361
- cancelButtonText: "取消"
362
- },
363
- carousel: {
364
- leftArrow: "上一张幻灯片",
365
- rightArrow: "下一张幻灯片",
366
- indicator: "幻灯片切换至索引 {index}"
367
- }
368
- }
369
- };
370
- const jr = "menu_zh", qr = "menu_en", $r = "authorized-token", Hr = "kCookies_token", Wr = "kSysConfig", In = "loginer";
371
- let uo = {}, Fn = {};
372
- const Vr = (e, t) => {
373
- uo = Object.assign(uo, t), e.config.globalProperties.$config = le();
374
- }, le = () => uo, Yr = (e = {}) => {
375
- Fn = e;
376
- }, Ho = () => Fn, $ = () => le().ResponsiveStorageNameSpace, Ut = () => ({
377
- post: (e, t, o) => pe.post(`${ge()}${e}`, t, o),
378
- get: (e, t, o) => pe.get(`${ge()}${e}`, t, o),
379
- put: (e, t) => pe.put(`${ge()}${e}`, t),
380
- delete: (e, t) => pe.delete(`${ge()}${e}`, t)
381
- }), Gr = (e) => {
382
- pe.setRouter(e);
383
- }, Xr = (e) => {
384
- pe.setBaseUrl(e);
385
- }, Kr = window.location.origin + "/gateway", ge = () => Ho().VITE_BASE_URL === "origin" ? Kr : Ho().VITE_BASE_URL, Jr = ke({
386
- name: "app",
387
- components: {
388
- [zo.name]: zo
389
- },
390
- beforeRouteEnter(e, t, o) {
391
- Ut().get("/upfm/v1/sysConfig", {}).then((n) => {
392
- o();
393
- });
394
- },
395
- computed: {
396
- currentLocale() {
397
- var e, t;
398
- return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? zr : Ur;
399
- }
400
- },
401
- beforeCreate() {
402
- const { t: e } = Bt(), n = (O.getItem(Wr) || { title: "U-DP" }).title;
403
- vr(
404
- {
405
- pollingTime: 3e5,
406
- checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
407
- enable: process.env.NODE_ENV !== "development"
408
- },
409
- {
410
- title: n,
411
- description: e("message.udp.newVersion"),
412
- buttonText: e("message.udp.updatenow"),
413
- cancelButtonText: e("message.udp.updateLater")
414
- }
415
- );
416
- }
417
- }), Zr = (e, t) => {
418
- const o = e.__vccOpts || e;
419
- for (const [n, r] of t)
420
- o[n] = r;
421
- return o;
422
- };
423
- function Qr(e, t, o, n, r, a) {
424
- const i = Ve("router-view"), s = Ve("el-config-provider");
425
- return vo(), sr(s, {
426
- size: "small",
427
- "z-index": 5555,
428
- locale: e.currentLocale
429
- }, {
430
- default: io(() => [
431
- st(i)
432
- ]),
433
- _: 1
434
- }, 8, ["locale"]);
435
- }
436
- const ea = /* @__PURE__ */ Zr(Jr, [["render", Qr]]), Xe = Rr();
437
- function ta(e) {
438
- e.use(Xe);
439
- }
440
- const ct = [
441
- {
442
- path: "/welcome",
443
- name: "Welcome",
444
- meta: {
445
- title: "message.udp.home",
446
- icon: "home-filled"
447
- }
448
- }
449
- ], Gs = (e) => {
450
- const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
451
- if (e.indexOf("windows xp") > -1, t) return "WinXP";
452
- if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
453
- if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
454
- if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
455
- }, Xs = (e) => {
456
- let t = null;
457
- const o = {
458
- Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
459
- // Chrome浏览器
460
- Firefox: e.indexOf("firefox") > -1,
461
- // 火狐浏览器
462
- Opera: e.indexOf("opera") > -1,
463
- // Opera浏览器
464
- Safari: e.indexOf("safari") > -1 && e.indexOf("chrome") == -1,
465
- // safari浏览器
466
- Edge: e.indexOf("edg") > -1,
467
- // Edge浏览器
468
- MetaSr: e.indexOf("metaSr") > -1,
469
- // 搜狗浏览器
470
- QQBrowser: /qqbrowser/.test(e),
471
- // qq浏览器
472
- WeixinBrowser: /MicroMessenger/i.test(e)
473
- // 微信浏览器
474
- };
475
- let n = "";
476
- for (const r in o)
477
- o[r] && (n = e.match(/chrome\/([\d.]+)/)[1], t = r);
478
- return { browser: t, browserVersion: n };
479
- }, oa = {
480
- onLogined: () => {
481
- },
482
- onBeforeLogout: () => {
483
- }
484
- }, Ks = () => {
485
- oa.onLogined();
486
- }, na = (e, t) => {
487
- const o = [];
488
- for (const n of e)
489
- n[t] && o.push(n[t]);
490
- return Array.from(new Set(o));
491
- }, Pn = (e) => {
492
- const t = e.replace("#", "").match(/../g);
493
- for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
494
- return t;
495
- }, _n = (e, t, o) => {
496
- const n = [e.toString(16), t.toString(16), o.toString(16)];
497
- for (let r = 0; r < 3; r++)
498
- n[r].length == 1 && (n[r] = `0${n[r]}`);
499
- return `#${n.join("")}`;
500
- }, ra = (e, t) => {
501
- const o = Pn(e);
502
- for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
503
- return _n(o[0], o[1], o[2]);
504
- }, aa = (e, t) => {
505
- const o = Pn(e);
506
- for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
507
- return _n(o[0], o[1], o[2]);
508
- }, Wo = {
509
- zh: {
510
- message: {
511
- reportCode: "报表编号",
512
- tempPath: "模版路径",
513
- tempFile: "模版文件",
514
- exportFileType: "文件类型",
515
- parameterType: "参数类型",
516
- valueType: "值类型",
517
- parameterField: "参数字段名",
518
- parameterName: "参数名称",
519
- showField: "显示字段",
520
- valueField: "值字段",
521
- exportNo: "导出编号",
522
- moduleName: "模块名称",
523
- exportResult: "导出结果",
524
- exportStatus: "导出状态",
525
- exportMsg: "提示信息",
526
- fileType: "文件类型",
527
- exportDate: "完成时间"
528
- }
529
- },
530
- en: {
531
- message: {
532
- tempPath: "tempPath",
533
- tempFile: "tempFile",
534
- exportFileType: "exportFileType",
535
- parameterType: "parameterType",
536
- valueType: "valueType",
537
- serviceCode: "serviceCode",
538
- parameterField: "parameterField",
539
- parameterName: "parameterName",
540
- showField: "showField",
541
- valueField: "valueField",
542
- exportNo: "exportNo",
543
- moduleName: "moduleName",
544
- printPosition: "Print Position",
545
- exportResult: "exportResult",
546
- exportStatus: "exportStatus",
547
- exportMsg: "exportMsg",
548
- fileType: "fileType",
549
- exportDate: "Export Date",
550
- dataSetCode: "Dataset Code",
551
- dataSetName: "Dataset Name",
552
- dataSetType: "Dataset Type",
553
- dataSetUrl: "Dataset Url",
554
- defaultValue: "Default Value",
555
- isRequired: "Required"
556
- }
557
- }
558
- }, ia = {
559
- zh: { ...Wo.zh.message },
560
- en: { ...Wo.en.message }
561
- }, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
562
- __proto__: null,
563
- default: ia
564
- }, Symbol.toStringTag, { value: "Module" })), la = {
565
- zh: {
566
- message: {
567
- taskName: "任务名称",
568
- processInstId: "任务编码",
569
- taskTitle: "任务标题",
570
- taskPhase: "流程阶段",
571
- agreement: "审批意见",
572
- description: "备注",
573
- actuatorCode: "执行器编码",
574
- actuatorName: "执行器名称",
575
- actuatorType: "注册方式",
576
- actuatorAddress: "机器地址"
577
- }
578
- },
579
- en: {
580
- message: {
581
- taskName: "taskName",
582
- processInstId: "processInstId",
583
- taskTitle: "taskTitle",
584
- taskPhase: "taskPhase",
585
- agreement: "agreement",
586
- description: "description",
587
- actuatorCode: "Actuator Code",
588
- actuatorName: "Actuator Name",
589
- actuatorType: "Actuator Type",
590
- actuatorAddress: "Actuator Adress"
591
- }
592
- }
593
- }, ua = {
594
- zh: {
595
- message: {
596
- flowId: "流程标识",
597
- flowName: "流程名称",
598
- flowCode: "流程业务",
599
- description: "流程描述",
600
- flowDesign: "流程设计",
601
- version: "版本",
602
- effectDate: "生效日期"
603
- }
604
- },
605
- en: {
606
- message: {
607
- flowId: "flowId",
608
- flowName: "flowName",
609
- flowCode: "flowCode",
610
- description: "description",
611
- flowDesign: "Flow Design"
612
- }
613
- }
614
- }, Vo = [la, ua], ca = {
615
- zh: {
616
- ...Object.assign({}, ...Vo.map((e) => e.zh.message))
617
- },
618
- en: {
619
- ...Object.assign({}, ...Vo.map((e) => e.en.message))
620
- }
621
- }, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
622
- __proto__: null,
623
- default: ca
624
- }, Symbol.toStringTag, { value: "Module" })), fa = {
625
- zh: {
626
- message: {
627
- msgtemplateCode: "模板代码",
628
- msgtemplateName: "模板名称",
629
- msgTitle: "消息标题",
630
- msgType: "消息类型",
631
- language: "语言",
632
- templateContent: "模板内容",
633
- msgCode: "消息代码",
634
- msgName: "消息名称",
635
- msgService: "消息服务",
636
- msgServiceName: "消息服务名称"
637
- }
638
- },
639
- en: {
640
- message: {
641
- xx: "xxx"
642
- }
643
- }
644
- }, ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
645
- __proto__: null,
646
- default: fa
647
- }, Symbol.toStringTag, { value: "Module" })), ha = {
648
- udp: {
649
- dark: "深色",
650
- light: "浅色",
651
- smart: "灵动",
652
- card: "卡片",
653
- theme: "主题色",
654
- pageStyle: "整体风格",
655
- navigationMode: "导航模式",
656
- tagStyle: "页签风格",
657
- collapse: "折叠",
658
- expand: "展开",
659
- login: "登 陆",
660
- home: "首页",
661
- logout: "退出系统",
662
- password: "密码",
663
- passwordReset: "密码重置",
664
- oldPwd: "旧密码",
665
- newPwd: "新密码",
666
- confirmPwd: "确认密码",
667
- reload: "重新加载",
668
- closeCurrentTab: "关闭当前标签页",
669
- closeLeftTabs: "关闭左侧标签页",
670
- closeRightTabs: "关闭右侧标签页",
671
- closeOtherTabs: "关闭其他标签页",
672
- closeAllTabs: "关闭全部标签页",
673
- wholeFullScreen: "整体页面全屏",
674
- wholeExitFullScreen: "整体页面退出全屏",
675
- contentFullScreen: "内容区全屏",
676
- contentExitFullScreen: "内容区退出全屏",
677
- fourZeroFour: "404",
678
- fourZeroThree: "403",
679
- five: "500",
680
- flowTask: "流程任务",
681
- backtop: "回到顶部",
682
- error: "Error Page",
683
- continueAdd: "连续添加",
684
- menuQuery: "菜单搜索",
685
- systemTitle: "系统标题",
686
- systemLogo: "LOGO",
687
- systemFavicon: "favicon",
688
- homeBackimg: "首页背景",
689
- baseUrl: "服务路径",
690
- copyright: "版权信息",
691
- i18nEnabled: "国际化",
692
- orgTaggle: "启用组织切换",
693
- baseColor: "基准色",
694
- techSupport: "技术支持",
695
- defaultLanguage: "默认语言",
696
- roleName: "角色名称",
697
- roleCode: "角色编码",
698
- roleDesc: "角色说明",
699
- loginTime: "登录时间",
700
- operatingSystem: "操作系统",
701
- ip: "ip地址",
702
- browserVersion: "浏览器版本",
703
- browser: "浏览器",
704
- dictCode: "字典编码",
705
- dictName: "字典名称",
706
- dictType: "字典类型",
707
- ruleCode: "规则代码",
708
- ruleName: "规则名称",
709
- fieldType: "段类型",
710
- fieldValue: "段值",
711
- dateMask: "日期掩码",
712
- resetFrequency: "重置频率",
713
- seqLength: "位数",
714
- startValue: "开始值",
715
- currentValue: "当前值",
716
- haveBeenUsed: "使用中",
717
- unitName: "单位名称",
718
- unitCode: "单位编码",
719
- unitNote: "单位介绍",
720
- deleteCompany: "部门存在子级,请先删除子级",
721
- tip: "温馨提示",
722
- today: "今天",
723
- yesterday: "昨天",
724
- lastWeek: "一周内",
725
- lastMonth: "1月内",
726
- threeMonth: "3月内",
727
- halfYear: "半年内",
728
- anniversary: "1年内",
729
- newVersion: "检测到新版本",
730
- updatenow: "立即更新",
731
- updateLater: "稍后更新",
732
- appVersion: "版本号",
733
- buildNo: "构建号",
734
- versionInfo: "版本信息",
735
- isForceUpdate: "安装方式",
736
- downloadUrl: "APK文件",
737
- forceUpdate: "强制更新",
738
- freeUpdate: "自主更新",
739
- placeholder: "请录入",
740
- userName: "用户姓名",
741
- userCode: "用户编码",
742
- userType: "用户类型",
743
- roleList: "角色列表",
744
- userList: "用户列表",
745
- orgCode: "业务实体编码",
746
- orgName: "业务实体名称",
747
- orgAlias: "业务实体简称",
748
- orgDesc: "业务实体描述",
749
- organizationName: "组织名称",
750
- organizationCode: "组织编码",
751
- appupper: "已上架",
752
- applower: "已下架"
753
- },
754
- btn: {
755
- passwordReset: "密码重置",
756
- add: "新增",
757
- agree: "同意",
758
- approve: "审批",
759
- appupper: "上架",
760
- applower: "下架",
761
- auth: "权限",
762
- back: "返回",
763
- cancel: "取消",
764
- completed: "完工",
765
- close: "关闭",
766
- toggle: "切换",
767
- confirm: "确认",
768
- config: "配置",
769
- copy: "复制",
770
- customSize: "自定义纸张",
771
- detail: "详情",
772
- directPrint: "直接打印",
773
- design: "设 计",
774
- delete: "删除",
775
- del: "删除",
776
- download: "下载",
777
- dispatchUser: "分配用户",
778
- dispatchAuth: "分配权限",
779
- FAQ: "常见问题",
780
- finish: "完成",
781
- fetch: "查询",
782
- edit: "编辑",
783
- export: "导出",
784
- import: "导入",
785
- encode: "编码",
786
- importJSON: "导入模板数据",
787
- downloadTemp: "模板下载",
788
- inv: "库存组织",
789
- look: "查看",
790
- lov: "值集",
791
- inbound: "入库",
792
- more: "更多",
793
- outbound: "出库",
794
- preview: "预览",
795
- print: "打印",
796
- paramSet: "参数集",
797
- reset: "重置",
798
- resumeTask: "继续",
799
- role: "角色",
800
- repaint: "重绘",
801
- save: "保存",
802
- scan: "扫码下载",
803
- stopTask: "停止",
804
- suspendTask: "暂停",
805
- search: "搜索",
806
- sync: "同步",
807
- submit: "提交",
808
- taskLog: "任务日志",
809
- revoke: "撤销",
810
- reject: "拒绝",
811
- upload: "上传",
812
- goback: "返回",
813
- disabled: "禁用",
814
- enable: "启用",
815
- flowDesign: "流程设计",
816
- bankinfo: "银行账号"
817
- },
818
- urpt: {
819
- templateName: "模版名称",
820
- templateCode: "模版编码",
821
- paperType: "纸张类型",
822
- printPosition: "打印视图",
823
- buttonCode: "按钮编码",
824
- resourceCode: "资源编码",
825
- resourceName: "资源名称",
826
- resourceUrl: "资源路径",
827
- fileName: "文件名称",
828
- fileSize: "文件大小",
829
- filePath: "文件路径",
830
- fileExtend: "文件类型",
831
- textAlign: "对齐方式",
832
- color: "色彩",
833
- fillOpacity: "透明度",
834
- fontSize: "字体大小",
835
- rotation: "倾斜角度",
836
- watermarkCode: "水印编码",
837
- watermarkContent: "水印内容",
838
- watermarkTrigger: "触发时机",
839
- watermarkType: "水印类型",
840
- xAxis: "横坐标",
841
- yAxis: "纵坐标"
842
- },
843
- add: "新增",
844
- operate: "操作",
845
- emptyData: "暂无数据",
846
- creationDate: "创建时间",
847
- createdByName: "创建人",
848
- creationName: "创建人",
849
- lastUpdateDate: "更新日期",
850
- lastUpdatedByName: "更新人",
851
- sort: "序号",
852
- seqNo: "序号",
853
- remark: "备注",
854
- loading: "加载中...",
855
- keyword: "关键字",
856
- required: "请录入",
857
- isRequired: "必填否",
858
- dataSetCode: "数据集编码",
859
- dataSetName: "数据集名称",
860
- dataSetType: "数据集类型",
861
- dataSetUrl: "URL/服务编码",
862
- paramCode: "参数编码",
863
- paramName: "参数名称",
864
- defaultValue: "默认值",
865
- enabled: "启用",
866
- disabled: "禁用",
867
- to: "至",
868
- startDate: "开始日期",
869
- endDate: "截至日期",
870
- operateSuccess: "操作成功!",
871
- operateFailed: "操作失败!",
872
- selectedRecord: "请至少选择一条记录",
873
- delRecord: "您确定要删除选择的数据吗?",
874
- importSuccess: "导入成功!",
875
- importFailed: "数据导入失败,请往下滚动以便查看错误信息",
876
- importRecord: "您确定要导入数据吗?",
877
- importEmpty: "数据列表为空,请先导入数据列表",
878
- importTip: `1、表格模板的【列标题】不可修改;
879
- 2、单次导入数据数量应小于2000条;
880
- 3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
881
- 4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
882
- errorInfo: "异常信息",
883
- publish: "发布",
884
- menuName: "菜单名称(中文)",
885
- menuNameEn: "菜单名称(英文)",
886
- menuType: "菜单类型",
887
- menuCode: "菜单编码",
888
- permissionCode: "权限编码",
889
- permissionName: "权限名称",
890
- menuPath: "路由",
891
- frameSrc: "内链URI",
892
- externalURI: "外链URI",
893
- redirect: "重定向路径",
894
- i18nField: "标题字段",
895
- extraIcon: "额外图标",
896
- icon: "图标",
897
- jobResult: "执行结果",
898
- endTime: "结束时间",
899
- startTime: "开始时间",
900
- errorMessage: "异常信息",
901
- jobStatus: "任务状态",
902
- jobParam: "执行器任务参数",
903
- jobHandler: "任务处理类",
904
- jobClassName: "实现类",
905
- jobCron: "任务执行corn",
906
- jobName: "任务名称",
907
- jobDescription: "任务描述",
908
- interfaceName: "接口名称",
909
- interfaceUrl: "接口地址",
910
- requestDate: "请求日期",
911
- requestStatus: "请求状态",
912
- requestParameter: "body参数",
913
- responseTimeConsume: "响应时间(ms)",
914
- responseContent: "响应内容",
915
- stacktrace: "错误堆栈",
916
- status: "状态",
917
- email: "邮箱",
918
- userPassword: "登录密码",
919
- remarks: "备注",
920
- userPwd: "用户密码",
921
- unitName: "用户单位",
922
- employeeCode: "编号",
923
- employeeName: "姓名",
924
- department: "部门",
925
- gender: "性别",
926
- releateUser: "关联用户",
927
- identity: "身份证号码",
928
- employeeDate: "入职日期",
929
- solarDay: "出生日期",
930
- phone: "座机号",
931
- mobile: "手机号",
932
- deptName: "部门名称",
933
- deptCode: "部门编码",
934
- deptType: "部门类型",
935
- deletePartment: "部门存在子级,请先删除子级",
936
- lovCode: "视图编码",
937
- lovName: "视图名称",
938
- valueField: "值字段名",
939
- displayField: "显示字段名",
940
- lovTitle: "视图标题",
941
- lovType: "视图类型",
942
- lovUrl: "视图URI",
943
- colField: "表格字段名",
944
- colTitle: "表格列标题",
945
- colWidth: "列宽度",
946
- fieldType: "字段类型",
947
- dictName: "数据字典",
948
- isSearch: "查询字段",
949
- isCol: "表格列",
950
- sqlStatement: "SQL语句",
951
- fileName: "附件名称",
952
- fileSize: "附件大小",
953
- tip: {
954
- projectConfig: "项目配置",
955
- closeConfig: "关闭配置",
956
- clearCache: "清空缓存",
957
- toLogin: "清空缓存并返回登录页",
958
- del: "确定要删除{msg}吗?",
959
- uploadFormat: "上传格式{type}",
960
- imageSize: "图片尺寸{size}",
961
- imageCapacity: "图片大小{capacity}",
962
- singleImg: "仅支持设置单张图",
963
- emptyAuth: "无系统权限, 请先给用户分配角色重试",
964
- initPassword: "初始密码为:【123456】,请及时修改密码",
965
- loginFailure: "用户名或密码不能为空",
966
- updatenow: "立即更新",
967
- newVersion: "检测到新版本",
968
- updateLater: "稍后更新"
969
- },
970
- title: {
971
- employeeInfo: "员工信息",
972
- cronLog: "执行日志",
973
- memuInfo: "菜单配置",
974
- authority: "【{role}】权限明细",
975
- authUser: "【{role}】分配用户",
976
- authEdit: "角色编辑",
977
- roleInfo: "角色列表",
978
- appAdd: "App版本新增",
979
- dictList: "【{name}】字典值列表",
980
- dictInfo: "【{name}】字典值",
981
- lovView: "值集视图",
982
- lovColConfig: "值集列配置",
983
- sequenceInfo: "{name}单据序列配置"
984
- }
985
- }, pa = {
986
- udp: {
987
- dark: "深色",
988
- light: "浅色",
989
- smart: "灵动",
990
- card: "卡片",
991
- theme: "主题色",
992
- pageStyle: "Page Style",
993
- navigationMode: "Navigation Node",
994
- tagStyle: "Tag Style",
995
- collapse: "Collapse",
996
- expand: "Expand",
997
- login: "Login",
998
- home: "Home",
999
- logout: "Logout",
1000
- password: "Password",
1001
- passwordReset: "Password Reset",
1002
- oldPwd: "Old Password",
1003
- newPwd: "New Password",
1004
- confirmPwd: "Confirm Password",
1005
- reload: "Reload",
1006
- closeCurrentTab: "Close Current Tab",
1007
- closeLeftTabs: "Close Left Tabs",
1008
- closeRightTabs: "Close Right Tabs",
1009
- closeOtherTabs: "Close Other Tabs",
1010
- closeAllTabs: "Close All Tabs",
1011
- wholeFullScreen: "Whole Full Screen",
1012
- wholeExitFullScreen: "Whole Exit Full Screen",
1013
- contentFullScreen: "Content Fulll Screen",
1014
- contentExitFullScreen: "Content Exit Full Screen",
1015
- fourZeroFour: "404",
1016
- fourZeroThree: "403",
1017
- five: "500",
1018
- backtop: "Back Top",
1019
- error: "Error Page",
1020
- continueAdd: "Continue Add",
1021
- menuQuery: "Menu Search",
1022
- systemTitle: "System Title",
1023
- systemLogo: "LOGO",
1024
- systemFavicon: "favicon",
1025
- homeBackimg: "Home Background Image",
1026
- baseUrl: "Base Url",
1027
- copyright: "Copy Right",
1028
- i18nEnabled: "Internationalize",
1029
- defaultLanguage: "Language",
1030
- roleName: "Role Name",
1031
- roleCode: "Role Code",
1032
- roleDesc: "Role Desc",
1033
- loginTime: "Login Time",
1034
- operatingSystem: "Operate System",
1035
- ip: "ip",
1036
- browserVersion: "Browser Version",
1037
- browser: "Browser",
1038
- dictCode: "Dict Code",
1039
- dictName: "Dict Name",
1040
- dictType: "Dict Type",
1041
- ruleCode: "Rule Code",
1042
- ruleName: "Rule Name",
1043
- fieldType: "Field Type",
1044
- fieldValue: "Field Value",
1045
- dateMask: "Data Mask",
1046
- resetFrequency: "Reset Frequency",
1047
- seqLength: "Seq Length",
1048
- startValue: "Start Value",
1049
- currentValue: "Current Value",
1050
- haveBeenUsed: "Have Been Used",
1051
- unitName: "Unit Name",
1052
- unitCode: "Unit Code",
1053
- unitNote: "Unit Note",
1054
- deleteCompany: "There are child levels in the Company, please delete the child level first",
1055
- tip: "tip",
1056
- today: "Today",
1057
- yesterday: "Yesterday",
1058
- lastWeek: "Last Week",
1059
- lastMonth: "Last Month",
1060
- threeMonth: "Three Month",
1061
- halfYear: "Half Year",
1062
- anniversary: "Anniversary",
1063
- newVersion: "检测到新版本",
1064
- updatenow: "立即更新",
1065
- updateLater: "稍后更新",
1066
- appVersion: "版本号",
1067
- buildNo: "构建号",
1068
- versionInfo: "版本信息",
1069
- isForceUpdate: "安装方式",
1070
- downloadUrl: "APK文件",
1071
- forceUpdate: "强制更新",
1072
- freeUpdate: "自主更新",
1073
- userName: "User Name",
1074
- userCode: "user Code",
1075
- sysType: "User Type",
1076
- orgCode: "Business Unit Code",
1077
- orgName: "Business Unit Name",
1078
- orgAlias: "Business Unit Alias",
1079
- orgDesc: "Business Unit Descript",
1080
- organizationName: "Organization Name",
1081
- organizationCode: "Organization Code"
1082
- },
1083
- btn: {
1084
- add: "Add",
1085
- agree: "Agree",
1086
- approve: "Approval",
1087
- appupper: "App Add",
1088
- applower: "App Remove",
1089
- auth: "Authority",
1090
- back: "Back",
1091
- cancel: "Cancel",
1092
- completed: "Completed",
1093
- close: "Close",
1094
- toggle: "Toggle",
1095
- confirm: "Confirm",
1096
- config: "Config",
1097
- copy: "Copy",
1098
- customSize: "Custom Size",
1099
- detail: "Detail",
1100
- directPrint: "Direct Print",
1101
- design: "Design",
1102
- delete: "Delete",
1103
- del: "Delete",
1104
- download: "Download",
1105
- dispatchUser: "Dispatch User",
1106
- dispatchAuth: "Dispatch Authority",
1107
- finish: "Finish",
1108
- fetch: "Fetch",
1109
- edit: "Edit",
1110
- export: "Export",
1111
- import: "Import",
1112
- encode: "Encode",
1113
- importJSON: "Import Data",
1114
- look: "Look",
1115
- lov: "Lov",
1116
- inbound: "Inbound",
1117
- more: "More",
1118
- outbound: "Outbound",
1119
- preview: "Preview",
1120
- print: "Print",
1121
- paramSet: "Param Set",
1122
- reset: "Reset",
1123
- resumeTask: "Resume",
1124
- role: "Role",
1125
- repaint: "Repaint",
1126
- save: "Save",
1127
- scan: "Scan Download",
1128
- stopTask: "Stop",
1129
- suspendTask: "Suspend",
1130
- search: "Search",
1131
- sync: "Sync",
1132
- submit: "Submit",
1133
- taskLog: "Log",
1134
- revoke: "Revoke",
1135
- reject: "Reject",
1136
- upload: "Upload"
1137
- },
1138
- file: {
1139
- templateName: "Template Name",
1140
- templateCode: "Template Code",
1141
- paperType: "Paper Type",
1142
- printPosition: "Print Position",
1143
- buttonCode: "Button Code",
1144
- resourceCode: "Resource Code",
1145
- resourceName: "Resource Name",
1146
- resourceUrl: "Resource Url",
1147
- fileName: "File Name",
1148
- fileSize: "File Size",
1149
- filePath: "File Path",
1150
- fileExtend: "File Extend",
1151
- textAlign: "Text Align",
1152
- color: "Color",
1153
- fillOpacity: "Fill Opacity",
1154
- fontSize: "Font Size",
1155
- rotation: "Rotation",
1156
- watermarkCode: "Watermark Code",
1157
- watermarkContent: "Watermark Content",
1158
- watermarkTrigger: "Watermark Trigger",
1159
- watermarkType: "Watermark Type",
1160
- xAxis: "xAxis",
1161
- yAxis: "yAxis"
1162
- },
1163
- add: "Add",
1164
- operate: "Operate",
1165
- emptyData: "Empty Data",
1166
- creationDate: "Creation Date",
1167
- createdByName: "CreatedBy Name",
1168
- creationName: "Creation Name",
1169
- lastUpdateDate: "LastUpdate Date",
1170
- lastUpdatedByName: "LastUpdatedBy Name",
1171
- sort: "Sort",
1172
- seqNo: "Seq No",
1173
- remark: "Remark",
1174
- loading: "Loading...",
1175
- keyword: "Keyword",
1176
- required: "Required",
1177
- isRequired: "Is Required",
1178
- dataSetCode: "Dataset Code",
1179
- dataSetName: "Dataset Name",
1180
- dataSetType: "Dataset Type",
1181
- dataSetUrl: "Dataset Url",
1182
- paramCode: "Param Code",
1183
- paramName: "Param Name",
1184
- defaultValue: "Default Value",
1185
- enabled: "Enabled",
1186
- disabled: "Disabled",
1187
- to: "To",
1188
- startDate: "Start Date",
1189
- endDate: "End Date",
1190
- operateSuccess: "Operate Success!",
1191
- operateFailed: "Operate Failed!",
1192
- selectedRecord: "Please select at least one record",
1193
- delRecord: "Are you sure you want to delete this record?",
1194
- importSuccess: "Import Success!",
1195
- importFailed: "Data import failed, please scroll down to view the error message",
1196
- importRecord: "Are you sure you want to import the data?",
1197
- importEmpty: "The data list is empty, please import the data list first",
1198
- importTip: `1. The column headings in the table template cannot be modified;
1199
- 2. The number of data imported at a time should be less than 2000;
1200
- 3. Directly entering dictionary values into the data dictionary can greatly improve the speed of table rendering. For example: Data Dictionary [Yes/No] Y/N
1201
- 4. Import successful, system prompts' xxx successful imports', including header rows`,
1202
- errorInfo: "Error Info",
1203
- publish: "Publish",
1204
- menuName: "Menu Name",
1205
- menuNameEn: "Menu Name",
1206
- menuType: "Menu Type",
1207
- menuCode: "Menu Code",
1208
- permissionCode: "Permission Code",
1209
- permissionName: "Permission Name",
1210
- menuPath: "Menu Path",
1211
- frameSrc: "Internal Link URI",
1212
- externalURI: "External Link URI",
1213
- redirect: "Redirect",
1214
- i18nField: "Language Field",
1215
- extraIcon: "Extra Icon",
1216
- icon: "Icon",
1217
- jobResult: "Job Result",
1218
- endTime: "End Time",
1219
- startTime: "Start Time",
1220
- errorMessage: "Error Message",
1221
- jobStatus: "Job Status",
1222
- jobParam: "Job Param",
1223
- jobHandler: "Job Handler",
1224
- jobClassName: "Job ClassName",
1225
- jobCron: "Job Cron",
1226
- jobName: "Job Name",
1227
- jobDescription: "Job Description",
1228
- interfaceName: "Interface Name",
1229
- interfaceUrl: "Interface Url",
1230
- requestDate: "Request Date",
1231
- requestStatus: "Request Status",
1232
- requestParameter: "Request Parameter",
1233
- responseTimeConsume: "Response TimeConsume(ms)",
1234
- responseContent: "Response Content",
1235
- stacktrace: "Stacktrace",
1236
- status: "Status",
1237
- email: "Email",
1238
- userPassword: "Password",
1239
- remarks: "Remarks",
1240
- userPwd: "Password",
1241
- unitName: "Department",
1242
- employeeCode: "Employee Code",
1243
- employeeName: "Employee Name",
1244
- department: "Department",
1245
- gender: "Sex",
1246
- releateUser: "Releate User",
1247
- identity: "Identity",
1248
- employeeDate: "Employee Date",
1249
- solarDay: "Solar Day",
1250
- phone: "Phone",
1251
- mobile: "Mobile",
1252
- deptName: "Department Name",
1253
- deptCode: "Department Code",
1254
- deptType: "Department Type",
1255
- deletePartment: "There are child levels in the department, please delete the child level first",
1256
- lovCode: "LovCode",
1257
- lovName: "lovName",
1258
- valueField: "valueField",
1259
- displayField: "displayField",
1260
- lovTitle: "lovTitle",
1261
- colField: "colField",
1262
- colTitle: "colTitle",
1263
- width: "width",
1264
- dictDispose: "dictDispose",
1265
- isSearch: "isSearch",
1266
- isCol: "isCol"
1267
- }, Yo = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": sa, "./module/u-workflow.ts": da, "./module/umsg.ts": ma }), Et = {};
1268
- for (const e in Yo)
1269
- Et[e.replace(/(\.\/module\/|\.ts)/g, "")] = Yo[e].default;
1270
- const Go = Object.keys(Et).filter((e) => Et[e]).map((e) => Et[e]), ga = {
1271
- zh: {
1272
- ...O.getItem(jr),
1273
- message: wo(ha, ...Go.map((e) => e.zh.message))
1274
- },
1275
- en: {
1276
- ...O.getItem(qr),
1277
- message: Object.assign(pa, ...Go.map((e) => e.en.message))
1278
- }
1279
- };
1280
- let He = null;
1281
- function ya(e, t = { messages: {} }) {
1282
- var o;
1283
- He = br({
1284
- legacy: !1,
1285
- locale: ((o = O.getItem(`${$()}locale`)) == null ? void 0 : o.locale) ?? "zh",
1286
- fallbackLocale: "en",
1287
- globalInjection: !0,
1288
- messages: wo(ga, t.messages)
1289
- }), se.setLanguage("zh-CN"), e.use(He);
1290
- }
1291
- const Ct = () => He;
1292
- function On(e = "", t = !0) {
1293
- if (!e)
1294
- return "";
1295
- if (typeof e == "object") {
1296
- const o = He.global.locale;
1297
- return e[o.value];
1298
- }
1299
- return t ? He.global.t.call(He.global, e) : e;
1300
- }
1301
- const va = ut("udp-system", {
1302
- state: () => ({
1303
- baseURL: "",
1304
- userInfo: {},
1305
- systemInfo: {},
1306
- dataDict: {},
1307
- sysConfig: {},
1308
- menui18n: {},
1309
- i18n: {},
1310
- dicts: [],
1311
- orgList: [],
1312
- invOrgList: [],
1313
- homeMenus: [],
1314
- sessionKey: "",
1315
- orgId: "",
1316
- userName: "",
1317
- organizationId: "",
1318
- isAdminRole: !1
1319
- }),
1320
- getters: {
1321
- getBaseURL() {
1322
- return this.baseURL;
1323
- },
1324
- getUserInfo() {
1325
- return this.userInfo;
1326
- },
1327
- getSysConfig() {
1328
- return this.sysConfig;
1329
- },
1330
- getEmployee() {
1331
- return this.employee;
1332
- },
1333
- getSessionKey() {
1334
- return this.sessionKey;
1335
- },
1336
- getMenuI18n() {
1337
- return this.menui18n;
1338
- },
1339
- getI18n() {
1340
- return this.i18n;
1341
- },
1342
- getOrglist() {
1343
- return this.orgList;
1344
- },
1345
- getOrgId() {
1346
- return this.orgId;
1347
- },
1348
- getOrganizationId() {
1349
- return this.organizationId;
1350
- },
1351
- getDataDict() {
1352
- return this.dataDict;
1353
- },
1354
- getUserName() {
1355
- return this.userName;
1356
- },
1357
- getAdminRole(e) {
1358
- return e.isAdminRole;
1359
- },
1360
- getHomeMenus(e) {
1361
- return e.homeMenus;
1362
- },
1363
- getOrganizationCode(e) {
1364
- var t, o;
1365
- return (o = (t = e.invOrgList) == null ? void 0 : t.find((n) => n.id === e.organizationId)) == null ? void 0 : o.organizationCode;
1366
- },
1367
- getOrg(e) {
1368
- return e.orgList.find((t) => t.id === e.orgId);
1369
- }
1370
- },
1371
- actions: {
1372
- // baseURL
1373
- setBaseURL(e) {
1374
- this.sessionKey = e;
1375
- },
1376
- setSessionKey(e) {
1377
- this.sessionKey = e.access_token || e;
1378
- },
1379
- // sysConfig
1380
- setSysConfig(e) {
1381
- this.sysConfig = e;
1382
- },
1383
- // orgId
1384
- setOrgId(e) {
1385
- this.orgId = e;
1386
- },
1387
- setOrganizationId(e) {
1388
- this.organizationId = e;
1389
- },
1390
- setMenuI18n(e) {
1391
- this.menui18n = e;
1392
- },
1393
- setI18n(e) {
1394
- this.i18n = e;
1395
- },
1396
- setUserName(e) {
1397
- this.userName = e;
1398
- },
1399
- // 首页子菜单列表
1400
- setHomeMenus(e) {
1401
- this.homeMenus = e;
1402
- },
1403
- // 库存组织列表
1404
- setInvOrgList(e) {
1405
- this.invOrgList = e;
1406
- },
1407
- setOrgList(e) {
1408
- this.orgList = e;
1409
- },
1410
- setDict(e) {
1411
- this.dicts = e, e == null || e.forEach((t) => {
1412
- this.dataDict[t.dictCode] = t;
1413
- }), O.setItem("kLov", this.dataDict);
1414
- },
1415
- // 系统信息
1416
- setSystemInfo(e) {
1417
- var n;
1418
- this.systemInfo = e;
1419
- const t = (n = e.employeeList) != null && n.length ? e.employeeList[0] : "";
1420
- this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
1421
- const o = {
1422
- orgId: e.orgId,
1423
- organizationId: e.organizationId
1424
- };
1425
- Ae.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((r) => r.roleCode === "admin" || ["管理员"].includes(r.roleName)), J().setAuthButton(e.dataMenus);
1426
- }
1427
- }
1428
- });
1429
- function St() {
1430
- return va(Xe);
1431
- }
1432
- function ba(e, t) {
1433
- return /* @__PURE__ */ ke({
1434
- name: e,
1435
- components: {
1436
- asyncComponent: t
1437
- },
1438
- setup() {
1439
- return () => st(Ve("async-component"), null, null);
1440
- }
1441
- });
1442
- }
1443
- const wa = () => pe.get(`${ge()}/uums/roleMenu`), Ea = () => pe.get(`${ge()}/upfm/v1/lov/selectAll`), Xo = (e) => pe.get(`${ge()}/uums/roleMenu/userMenu`, e), Ca = () => import("./layoutView-BJO8Hm5d.js"), Sa = () => import("./frameView-vGVXV1ZG.js");
1444
- function dt(e) {
1445
- return e.forEach((t) => {
1446
- var o, n;
1447
- ((o = t == null ? void 0 : t.meta) == null ? void 0 : o.rank) === null && (t.meta.rank = void 0), ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
1448
- }), e.sort((t, o) => {
1449
- var n, r;
1450
- return ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) - ((r = o == null ? void 0 : o.meta) == null ? void 0 : r.rank);
1451
- });
1452
- }
1453
- function Nn(e) {
1454
- const t = ee(e, !0).filter((o) => {
1455
- var n;
1456
- return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
1457
- });
1458
- return t.forEach((o) => o.children && (o.children = Nn(o.children))), t;
1459
- }
1460
- function Js(e, t, o = "path") {
1461
- function n(r, a, i) {
1462
- for (let s = 0; s < r.length; s++) {
1463
- const l = r[s];
1464
- if (l[o] === a) return i;
1465
- if (!(!l.children || !l.children.length)) {
1466
- if (i.push(l.path), n(l.children, a, i).length) return i;
1467
- i.pop();
1468
- }
1469
- }
1470
- return [];
1471
- }
1472
- return n(t, e, []);
1473
- }
1474
- function Mn(e, t) {
1475
- let o = t.find((n) => n.path == e);
1476
- if (o)
1477
- return Uo(o) ? so(o) : o;
1478
- for (let n = 0; n < t.length; n++)
1479
- if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Mn(e, t[n].children), o))
1480
- return Uo(o) ? so(o) : o;
1481
- return null;
1482
- }
1483
- function Da() {
1484
- U.hasRoute("pathMatch") || U.addRoute({
1485
- path: "/:pathMatch(.*)",
1486
- name: "pathMatch",
1487
- redirect: "/error/404"
1488
- });
1489
- }
1490
- function Ta() {
1491
- var t, o;
1492
- const e = Ct();
1493
- (t = e.global) == null || t.mergeLocaleMessage("zh", je.zh), (o = e.global) == null || o.mergeLocaleMessage("en", je.en), O.setItem("menu_zh", je.zh), O.setItem("menu_en", je.en);
1494
- }
1495
- function Ko(e) {
1496
- if (e != null && e.length) {
1497
- const t = e.findIndex((n) => n.menuCode === "SysHome");
1498
- if (t !== -1) {
1499
- const n = [], r = [];
1500
- e[t].children.forEach((a) => {
1501
- a.menuCategory !== "1" ? n.push(a) : r.push(a);
1502
- }), e[t].children = r, St().setHomeMenus(n);
1503
- }
1504
- const o = ee(Ln(e), !0);
1505
- Ta(), zt(o).map((n) => {
1506
- const { options: r } = U;
1507
- r.routes[0].children.findIndex((a) => a.path === n.path) === -1 && (U.options.routes[0].children.push(n), dt(U.options.routes[0].children), U.hasRoute(n == null ? void 0 : n.name) || U.addRoute(n));
1508
- });
1509
- }
1510
- J().changeSetting(e), ue().getMultiTagsCache || ue().handleTags("equal", [
1511
- ...ct,
1512
- ...J().flatteningRoutes.filter((t) => {
1513
- var o;
1514
- return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
1515
- })
1516
- ]), Da();
1517
- }
1518
- async function xa(e) {
1519
- let t = [];
1520
- const o = `U-${e}-ROUTES`;
1521
- return le().CachingAsyncRoutes && await tt.getItem(o).then((n) => t = n), Ea().then((n) => St().setDict(n)), await wa().then(async (n) => {
1522
- St().setSystemInfo(n), await Ut().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((r) => St().setInvOrgList((r == null ? void 0 : r.list) || []));
1523
- }), t != null && t.length ? new Promise((n) => {
1524
- Ko(t), Xo({ userName: e }).then((r) => {
1525
- tt.setItem(o, r);
1526
- }), n(U);
1527
- }) : new Promise((n) => {
1528
- Xo({ userName: e }).then((r) => {
1529
- Ko(ee(r, !0)), tt.setItem(o, r), n(U);
1530
- });
1531
- });
1532
- }
1533
- function zt(e) {
1534
- if (e.length === 0) return e;
1535
- let t = bo(e);
1536
- for (let o = 0; o < t.length; o++)
1537
- t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
1538
- return t;
1539
- }
1540
- function Rn(e) {
1541
- if (e.length === 0) return e;
1542
- const t = [];
1543
- return e.forEach((o) => {
1544
- o.path === "/" ? t.push({
1545
- component: o.component,
1546
- name: o.name,
1547
- path: o.path,
1548
- redirect: o.redirect,
1549
- meta: o.meta,
1550
- children: []
1551
- }) : t[0].children.push({ ...o });
1552
- }), t;
1553
- }
1554
- function ka({ name: e }, t) {
1555
- switch (t) {
1556
- case "add":
1557
- J().cacheOperate({ mode: "add", name: e });
1558
- break;
1559
- case "delete":
1560
- J().cacheOperate({ mode: "delete", name: e });
1561
- break;
1562
- case "refresh":
1563
- J().cacheOperate({ mode: "refresh", name: e });
1564
- break;
1565
- default:
1566
- J().cacheOperate({ mode: "delete", name: e }), Ar(() => {
1567
- J().cacheOperate({ mode: "add", name: e });
1568
- }, 100);
1569
- }
1570
- }
1571
- const je = {
1572
- zh: {},
1573
- en: {}
1574
- }, An = [], Ln = (e) => {
1575
- var n;
1576
- const t = qa();
1577
- if (!e || !e.length) return;
1578
- const o = Object.keys(t);
1579
- for (let r = 0; r < e.length; r++) {
1580
- const a = e[r];
1581
- a != null && a.children && a.children.length && !a.redirect && (a.redirect = a.children[0].path);
1582
- const { icon: i, permissionCode: s, extraIcon: l, frameSrc: u } = a;
1583
- if (a.isFlowMenu && An.push(a), a.meta = {
1584
- keepAlive: !0,
1585
- rank: a.sort,
1586
- title: `${a.i18nField}`,
1587
- // 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
1588
- showLink: ["UdpFlowDesign", "UDPFlowTask"].includes(a.menuCode) ? !1 : null
1589
- }, a.hiddenTag = null, Object.assign(a.meta, { icon: i, permissionCode: s, extraIcon: l, frameSrc: u }), je.zh[a.i18nField] = a.menuName || a.menuNameEn, je.en[a.i18nField] = a.menuNameEn || a.menuName, a.name = a.menuCode || a.name, a.path = a.menuPath || a.path, !a.parentId)
1590
- a.component = Ca;
1591
- else if ((n = a.meta) != null && n.frameSrc)
1592
- a.component = Sa;
1593
- else if (a.menuCategory === "10") {
1594
- const d = o.findIndex((c) => c.includes("lowcode-contain"));
1595
- a.component = ba(
1596
- a.name,
1597
- lr(() => import(
1598
- /* @vite-ignore */
1599
- o[d]
1600
- ))
1601
- ), Object.assign(a.meta, { moduleType: a.moduleType });
1602
- } else if (a.menuCategory !== "5") {
1603
- const d = o.findIndex((c) => c.includes(a.path));
1604
- a.component = t[o[d]];
1605
- }
1606
- a != null && a.children && a.children.length ? Ln(a.children) : delete a.children;
1607
- }
1608
- return e;
1609
- };
1610
- function Zs(e, t = !0) {
1611
- const o = ue().multiTags.findIndex((n) => {
1612
- if (e.query) {
1613
- if (e.path === n.path)
1614
- return e.query === n.query;
1615
- } else
1616
- return e.path === n.path;
1617
- });
1618
- if (ue().handleTags("splice", "", { startIndex: o, length: 1 }), ka(e.matched, "delete"), t) {
1619
- const n = ue().handleTags("slice");
1620
- U.push({
1621
- path: n[0].path,
1622
- query: n[0].query
1623
- });
1624
- }
1625
- }
1626
- function Qs() {
1627
- return An;
1628
- }
1629
- const Ia = ut("udp-permission", {
1630
- state: () => ({
1631
- // 静态路由生成的菜单
1632
- constantMenus: La,
1633
- // 整体路由生成的菜单(静态、动态)
1634
- wholeMenus: [],
1635
- // 深拷贝一个菜单树,与导航菜单不冲突
1636
- menusTree: [],
1637
- // 整体路由(一维数组格式)
1638
- flatteningRoutes: [],
1639
- buttonAuth: [],
1640
- // 缓存页面keepAlive
1641
- cachePageList: []
1642
- }),
1643
- getters: {
1644
- getButtonAuth() {
1645
- return this.buttonAuth;
1646
- }
1647
- },
1648
- actions: {
1649
- asyncActionRoutes(e = []) {
1650
- if (this.wholeMenus.length > 0) return;
1651
- const t = Fr(e, (n) => n.menuCode === "SysHome"), o = ee(this.constantMenus, !0);
1652
- if (t !== -1) {
1653
- const n = this.constantMenus.find((r) => r.name === "home");
1654
- e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1655
- }
1656
- this.wholeMenus = Nn(dt(this.constantMenus.concat(e))), this.flatteningRoutes = zt(this.constantMenus.concat(e)), this.menusTree = ee(this.wholeMenus, !0), this.constantMenus = o;
1657
- },
1658
- async changeSetting(e) {
1659
- await this.asyncActionRoutes(e);
1660
- },
1661
- setAuthButton(e) {
1662
- this.buttonAuth = e;
1663
- },
1664
- setWholeMenus(e) {
1665
- this.wholeMenus = e;
1666
- },
1667
- /** 监听缓存页面是否存在于标签页,不存在则删除 */
1668
- clearCache() {
1669
- let e = this.cachePageList.length;
1670
- const t = na(ue().multiTags, "name");
1671
- for (; e > 0; )
1672
- t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1673
- },
1674
- cacheOperate({ mode: e, name: t }) {
1675
- const o = this.cachePageList.findIndex((n) => n === t);
1676
- switch (e) {
1677
- case "refresh":
1678
- this.cachePageList = this.cachePageList.filter((n) => n !== t), this.clearCache();
1679
- break;
1680
- case "add":
1681
- this.cachePageList.push(t);
1682
- break;
1683
- case "delete":
1684
- o !== -1 && this.cachePageList.splice(o, 1), this.clearCache();
1685
- break;
1686
- case "reset":
1687
- this.cachePageList = [];
1688
- break;
1689
- }
1690
- },
1691
- /** 清空缓存页面 */
1692
- clearAllCachePage() {
1693
- this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
1694
- }
1695
- }
1696
- });
1697
- function J() {
1698
- return Ia(Xe);
1699
- }
1700
- const Bn = ut("udp-multiTags", {
1701
- state: () => {
1702
- var e, t;
1703
- return {
1704
- // 存储标签页信息(路由信息)
1705
- multiTags: (e = O.getItem(`${$()}configure`)) != null && e.multiTagsCache ? O.getItem(`${$()}tags`) : [...ct, ...J().flatteningRoutes.filter((o) => {
1706
- var n;
1707
- return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
1708
- })],
1709
- multiTagsCache: (t = O.getItem(`${$()}configure`)) == null ? void 0 : t.multiTagsCache
1710
- };
1711
- },
1712
- getters: {
1713
- getMultiTagsCache(e) {
1714
- return e.multiTagsCache;
1715
- }
1716
- },
1717
- actions: {
1718
- multiTagsCacheChange(e) {
1719
- this.multiTagsCache = e, e ? O.setItem(`${$()}tags`, this.multiTags) : O.removeItem(`${$()}tags`);
1720
- },
1721
- tagsCache(e) {
1722
- this.getMultiTagsCache && O.setItem(`${$()}tags`, e);
1723
- },
1724
- handleTags(e, t, o) {
1725
- var n, r, a, i;
1726
- switch (e) {
1727
- case "equal":
1728
- this.multiTags = t, this.tagsCache(this.multiTags);
1729
- break;
1730
- case "push":
1731
- {
1732
- const s = t;
1733
- if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || Tn(s == null ? void 0 : s.name) || ((a = (r = s == null ? void 0 : s.meta) == null ? void 0 : r.title) == null ? void 0 : a.length) === 0) return;
1734
- const l = s.path;
1735
- if (this.multiTags.some((c) => c.path === l && qo(c == null ? void 0 : c.query, s == null ? void 0 : s.query) && qo(c == null ? void 0 : c.params, s == null ? void 0 : s.params))) return;
1736
- const d = ((i = s == null ? void 0 : s.meta) == null ? void 0 : i.dynamicLevel) ?? -1;
1737
- if (d > 0 && this.multiTags.filter((c) => (c == null ? void 0 : c.path) === l).length >= d) {
1738
- const c = this.multiTags.findIndex((p) => (p == null ? void 0 : p.path) === l);
1739
- c !== -1 && this.multiTags.splice(c, 1);
1740
- }
1741
- this.multiTags.push(t), this.tagsCache(this.multiTags);
1742
- }
1743
- break;
1744
- case "splice":
1745
- if (o)
1746
- this.multiTags.splice(o == null ? void 0 : o.startIndex, o == null ? void 0 : o.length);
1747
- else {
1748
- const s = this.multiTags.findIndex((l) => l.path === t);
1749
- if (s === -1) return;
1750
- this.multiTags.splice(s, 1);
1751
- }
1752
- return this.tagsCache(this.multiTags), this.multiTags;
1753
- case "slice":
1754
- return this.multiTags.slice(-1);
1755
- }
1756
- }
1757
- }
1758
- });
1759
- function ue() {
1760
- return Bn(Xe);
1761
- }
1762
- const Fa = () => import("./layoutView-BJO8Hm5d.js"), Pa = {
1763
- path: "/",
1764
- name: "home",
1765
- component: Fa,
1766
- redirect: "/welcome",
1767
- meta: {
1768
- icon: "home-filled",
1769
- title: "message.udp.home",
1770
- rank: 0
1771
- },
1772
- children: [
1773
- {
1774
- path: "/welcome",
1775
- name: "SuHome",
1776
- component: () => import("./su-welcome-BxRhJD8X.js"),
1777
- meta: {
1778
- title: "message.udp.home",
1779
- keepAlive: !0
1780
- }
1781
- }
1782
- ]
1783
- }, _a = () => import("./layoutView-BJO8Hm5d.js"), Oa = {
1784
- path: "/error",
1785
- name: "error",
1786
- component: _a,
1787
- redirect: "/error/403",
1788
- meta: {
1789
- showLink: !1,
1790
- icon: "information-line",
1791
- title: "message.udp.error",
1792
- rank: 999
1793
- },
1794
- children: [
1795
- {
1796
- path: "/error/403",
1797
- name: "403",
1798
- component: () => import("./403-B87JSuhn.js"),
1799
- meta: {
1800
- title: "message.udp.fourZeroThree"
1801
- }
1802
- }
1803
- ]
1804
- }, Na = () => import("./layoutView-BJO8Hm5d.js"), lt = [
1805
- {
1806
- path: "/login",
1807
- name: "login",
1808
- component: () => import("./login-CZyenjQX.js"),
1809
- meta: {
1810
- title: "message.udp.login",
1811
- showLink: !1
1812
- }
1813
- },
1814
- {
1815
- path: "/error/404",
1816
- name: "404",
1817
- component: () => import("./404-BhiUKT1b.js"),
1818
- meta: {
1819
- title: "message.udp.fourZeroFour",
1820
- showLink: !1
1821
- }
1822
- },
1823
- {
1824
- path: "/error/500",
1825
- name: "500",
1826
- component: () => import("./500-2G6eyDeT.js"),
1827
- meta: {
1828
- title: "message.udp.five",
1829
- showLink: !1
1830
- }
1831
- },
1832
- {
1833
- path: "/redirect",
1834
- name: "redirect",
1835
- component: Na,
1836
- meta: {
1837
- icon: "home-filled",
1838
- title: "message.udp.home",
1839
- showLink: !1,
1840
- rank: 104
1841
- },
1842
- children: [
1843
- {
1844
- path: "/redirect/:path(.*)",
1845
- // 2024-12-17
1846
- name: "redirectView",
1847
- component: () => import("./redirect-BqegffKC.js")
1848
- }
1849
- ]
1850
- }
1851
- ], Ma = () => import("./layoutView-BJO8Hm5d.js"), Ra = {
1852
- component: Ma,
1853
- path: "/utask",
1854
- redirect: "/utask/task/flow-task",
1855
- meta: {
1856
- showLink: !1,
1857
- icon: "IF-pure-iconfont-tabs",
1858
- title: "message.udp.flowTask"
1859
- },
1860
- children: [
1861
- // query 传参模式
1862
- {
1863
- path: "/utask/task/flow-task",
1864
- name: "FlowTask",
1865
- component: () => import("./flow-task-B07st2aD.js"),
1866
- meta: {
1867
- // 不在menu菜单中显示
1868
- title: "",
1869
- showLink: !1,
1870
- activePath: "/uflow/index"
1871
- }
1872
- }
1873
- ]
1874
- }, Aa = /* @__PURE__ */ Object.assign({
1875
- "../views/organization/company/Company.vue": () => import("./Company-CbTh7_bX.js"),
1876
- "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-BVEYMQKM.js"),
1877
- "../views/organization/department/Department.vue": () => import("./Department-Cu83Buy8.js"),
1878
- "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-CO76buwO.js"),
1879
- "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-D9BMWweK.js"),
1880
- "../views/organization/org/Org.vue": () => import("./Org-CcfRkpBY.js"),
1881
- "../views/organization/staff/Staff.vue": () => import("./Staff-C-5TE1Yn.js"),
1882
- "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CwJlL_Nr.js"),
1883
- "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-QOv1pq2Z.js"),
1884
- "../views/system/cron/cron-task.vue": () => import("./cron-task-IEuaI4Nt.js"),
1885
- "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
1886
- "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-Bs9a4BE0.js"),
1887
- "../views/system/menu/menuInfo.vue": () => import("./menuInfo-CE5Cae2u.js"),
1888
- "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-DFiMYll8.js"),
1889
- "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-D6xKrLlM.js"),
1890
- "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-Bl4_zDot.js"),
1891
- "../views/system/role/Role.vue": () => import("./Role-Ba1OVGG0.js"),
1892
- "../views/system/role/RolePanel.vue": () => import("./RolePanel-c-xitljX.js"),
1893
- "../views/system/role/UserInfo.vue": () => import("./UserInfo-Ipp00UAF.js"),
1894
- "../views/system/sys/sys-config.vue": () => import("./sys-config-Csy-234G.js"),
1895
- "../views/system/sysUser/SysUser.vue": () => import("./SysUser-Byug_VNY.js"),
1896
- "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-B-M2Yxjj.js"),
1897
- "../views/uapp/pda/pda-app.vue": () => import("./pda-app-DOiT57m1.js"),
1898
- "../views/udev/coderule/code-rule.vue": () => import("./code-rule-CRunTGXH.js"),
1899
- "../views/udev/dict/DictView.vue": () => import("./DictView-DJDg_Oem.js"),
1900
- "../views/udev/dict/childView.vue": () => import("./childView-O-5baerB.js"),
1901
- "../views/udev/lov/childView.vue": () => import("./childView-N1PkzqQK.js"),
1902
- "../views/udev/lov/lov-view.vue": () => import("./lov-view-6He1ZxGX.js"),
1903
- "../views/upms/interface/log-in.vue": () => import("./log-in-CpGqc33f.js"),
1904
- "../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
1905
- "../views/upms/user/login-log.vue": () => import("./login-log-BNRXLeMi.js"),
1906
- "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
1907
- "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-DDgVNzYW.js"),
1908
- "../views/urpt/design/Preview.vue": () => import("./Preview-DGP1uIZU.js"),
1909
- "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-CLQRMIy3.js"),
1910
- "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-BNTCTpqI.js"),
1911
- "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-G7X1Fyf5.js"),
1912
- "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-u7r-IVPD.js"),
1913
- "../views/urpt/static-resource/resource.vue": () => import("./resource-BdlOJOcz.js"),
1914
- "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-QWAuFjaB.js")
1915
- }), el = lt, Eo = [Pa, Oa, Ra], tl = Rn(
1916
- zt(bo(dt(Eo)))
1917
- ), La = dt(Eo).concat(...lt), ol = Object.keys(lt).map((e) => lt[e].path), Ba = /* @__PURE__ */ new Set();
1918
- function Ua() {
1919
- Ba.clear();
1920
- }
1921
- function za() {
1922
- U.getRoutes().forEach((e) => {
1923
- const { name: t, meta: o } = e;
1924
- t && U.hasRoute(t) && (o != null && o.backstage) && (U.removeRoute(t), U.options.routes = Rn(zt(bo(dt(Eo)))));
1925
- }), J().clearAllCachePage(), Ua();
1926
- }
1927
- let co = null, U = null;
1928
- function ja(e, t) {
1929
- co = e, U = t, Object.assign(co, Aa);
1930
- }
1931
- function qa() {
1932
- return co;
1933
- }
1934
- const $a = ["/login"], nl = (e, t, o) => {
1935
- var i, s, l;
1936
- const n = Ae.get(In), r = Tn(e == null ? void 0 : e.name);
1937
- function a() {
1938
- $a.includes(e.fullPath) ? o(t.fullPath) : o();
1939
- }
1940
- if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
1941
- const u = (i = e.matched.find((d) => d.path === e.path || d.name === e.name && e.params)) == null ? void 0 : i.components;
1942
- r ? (wr(e == null ? void 0 : e.name), (s = Er) == null || s.done()) : u != null && u.default || e.name === "redirect" ? a() : o({ path: "/error/404" });
1943
- } else
1944
- J().wholeMenus.length === 0 && xa(n).then((u) => {
1945
- var d;
1946
- if (!ue().getMultiTagsCache) {
1947
- const { path: c } = e, y = Pr(lt, (m) => m.path === c) === -1 ? u.options.routes[0].children : u.options.routes, v = Mn(c, y);
1948
- if (v && ((d = v.meta) != null && d.title)) {
1949
- const { path: m, name: h, meta: x } = v;
1950
- ue().handleTags("push", { path: m, name: h, meta: x });
1951
- }
1952
- }
1953
- $e(e.name) && u.push(e.fullPath);
1954
- }), t.fullPath === "/" && e.fullPath === "/login" && !((l = e.query) != null && l.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), a();
1955
- };
1956
- Cr(kn, { serviceApi: Ut(), i18n: On });
1957
- Ya();
1958
- const Ha = {
1959
- // 对组件内置的提示语进行国际化翻译
1960
- // @ts-ignore
1961
- i18n: (e, t) => Ct().global.t(e, t),
1962
- // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
1963
- translate(e) {
1964
- return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? Ct().global.t.call(Ct().global.locale, e) : e;
1965
- }
1966
- };
1967
- function Wa(e = {}) {
1968
- kn.setConfig(wo(Ha, e)), se.interceptor.add("event.clearEdit", {
1969
- tableInterceptorMethod(t) {
1970
- const { $event: o } = t;
1971
- if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
1972
- }
1973
- });
1974
- }
1975
- function Va(e) {
1976
- se.setTheme(e);
1977
- }
1978
- function Ya() {
1979
- se.commands.add("utTodyay", {
1980
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1981
- const t = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1982
- e.setModelValue(t, o);
1983
- }
1984
- }), se.commands.add("utYesterDay", {
1985
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1986
- const t = B(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = B(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
1987
- e.setModelValue(t, o);
1988
- }
1989
- }), se.commands.add("utRecentWeek", {
1990
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1991
- const t = B(_e(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1992
- e.setModelValue(t, o);
1993
- }
1994
- }), se.commands.add("utRecentMonth", {
1995
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1996
- const t = B(_e(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1997
- e.setModelValue(t, o);
1998
- }
1999
- }), se.commands.add("utRecentThreeMonth", {
2000
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2001
- const t = B(_e(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2002
- e.setModelValue(t, o);
2003
- }
2004
- }), se.commands.add("utRecentHalfYear", {
2005
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2006
- const t = B(_e(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2007
- e.setModelValue(t, o);
2008
- }
2009
- }), se.commands.add("utRecentYear", {
2010
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2011
- const t = B(_e(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2012
- e.setModelValue(t, o);
2013
- }
2014
- });
2015
- }
2016
- var Co = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Xa = Object.getOwnPropertyNames, Ka = Object.prototype.hasOwnProperty, Ja = (e, t, o) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Za = (e, t) => {
2017
- for (var o in t) Co(e, o, { get: t[o], enumerable: !0 });
2018
- }, Qa = (e, t, o, n) => {
2019
- if (t && typeof t == "object" || typeof t == "function") for (let r of Xa(t)) !Ka.call(e, r) && r !== o && Co(e, r, { get: () => t[r], enumerable: !(n = Ga(t, r)) || n.enumerable });
2020
- return e;
2021
- }, ei = (e, t, o) => (Qa(e, t, "default"), o), Jo = (e, t, o) => (Ja(e, typeof t != "symbol" ? t + "" : t, o), o), So = {};
2022
- Za(So, { Vue: () => Cn });
2023
- ei(So, Cn);
2024
- var _t = class {
2025
- static install(e, t) {
2026
- let { nameSpace: o = this._nameSpace, memory: n } = t;
2027
- return n && this.clearAll(o, n), new _t(e, t);
2028
- }
2029
- static clearAll(e, t) {
2030
- Object.keys(t).forEach((o) => {
2031
- let n = e + o;
2032
- Object.prototype.hasOwnProperty.call(window.localStorage, n) && window.localStorage.removeItem(n);
2033
- });
2034
- }
2035
- static get(e) {
2036
- return JSON.parse(window.localStorage.getItem(e));
2037
- }
2038
- static set(e, t) {
2039
- t = typeof t == "object" ? JSON.stringify(t) : t, window.localStorage.setItem(e, t);
2040
- }
2041
- static getData(e, t) {
2042
- if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
2043
- }
2044
- constructor(e, t) {
2045
- let o = _t, { version: n = 3, nameSpace: r = o._nameSpace, memory: a } = t, i = (u) => r + u, s = n === 3 ? (0, So.reactive)(a) : a;
2046
- Object.keys(s).length === 0 && console.warn("key cannot be empty"), Object.keys(s).forEach((u) => {
2047
- let d = s[u];
2048
- o.set(i(u), d), Reflect.defineProperty(s, u, { get: () => o.get(i(u)), set: (c) => o.set(i(u), c), configurable: !0 }), n === 2 && e.util.defineReactive(s, u, s[u]);
2049
- });
2050
- let l = n === 3 ? e.config.globalProperties : e.prototype;
2051
- Reflect.defineProperty(l, "$storage", { get: () => s });
2052
- }
2053
- }, Ce = _t;
2054
- Jo(Ce, "_nameSpace", "rs-"), Jo(Ce, "_getStaticKey", (e, t) => `${e ?? _t._nameSpace}${t}`);
2055
- const ti = (e, t) => {
2056
- const o = $(), n = Object.assign(
2057
- {
2058
- // 国际化 默认中文zh
2059
- locale: Ce.getData("locale", o) ?? {
2060
- locale: t.Locale ?? "zh"
2061
- },
2062
- // layout模式以及主题
2063
- layout: Ce.getData("layout", o) ?? {
2064
- layout: t.Layout ?? "vertical",
2065
- theme: t.Theme ?? "default",
2066
- darkMode: t.DarkMode ?? !1,
2067
- sidebarStatus: t.SidebarStatus ?? !0,
2068
- epThemeColor: t.EpThemeColor ?? "#409EFF",
2069
- themeColor: t.Theme ?? "light",
2070
- // 主题色(对应项目配置中的主题色,与theme不同的是它不会受到浅色、深色整体风格切换的影响,只会在手动点击主题色时改变)
2071
- overallStyle: t.OverallStyle ?? "light"
2072
- // 整体风格(浅色:light、深色:dark、自动:system)
2073
- },
2074
- configure: Ce.getData("configure", o) ?? {
2075
- grey: t.Grey ?? !1,
2076
- weak: t.Weak ?? !1,
2077
- hideTabs: t.HideTabs ?? !1,
2078
- showLogo: t.ShowLogo ?? !0,
2079
- showModel: t.ShowModel ?? "smart",
2080
- multiTagsCache: t.MultiTagsCache ?? !1
2081
- },
2082
- cnd: Ce.getData("cnd", o) ?? {}
2083
- },
2084
- t.MultiTagsCache ? {
2085
- // 默认显示首页tag
2086
- tags: Ce.getData("tags", o) ?? ct
2087
- } : {}
2088
- );
2089
- e.use(Ce, { nameSpace: o, memory: n });
2090
- }, oi = (e) => {
2091
- var r;
2092
- if (!e) return !0;
2093
- const t = (r = U.currentRoute.value.meta) == null ? void 0 : r.permissionCode;
2094
- if (!t) return !0;
2095
- _r(e) || (e = [e]);
2096
- const o = J().getButtonAuth;
2097
- if (!o) return !0;
2098
- let n = !1;
2099
- return e.forEach((a) => {
2100
- if (!n) {
2101
- const i = `${t}.${a}`;
2102
- n = o.includes(i);
2103
- }
2104
- }), n;
2105
- };
2106
- /**!
2107
- * Sortable 1.15.6
2108
- * @author RubaXa <trash@rubaxa.org>
2109
- * @author owenm <owen23355@gmail.com>
2110
- * @license MIT
2111
- */
2112
- function Zo(e, t) {
2113
- var o = Object.keys(e);
2114
- if (Object.getOwnPropertySymbols) {
2115
- var n = Object.getOwnPropertySymbols(e);
2116
- t && (n = n.filter(function(r) {
2117
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
2118
- })), o.push.apply(o, n);
2119
- }
2120
- return o;
2121
- }
2122
- function de(e) {
2123
- for (var t = 1; t < arguments.length; t++) {
2124
- var o = arguments[t] != null ? arguments[t] : {};
2125
- t % 2 ? Zo(Object(o), !0).forEach(function(n) {
2126
- ni(e, n, o[n]);
2127
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Zo(Object(o)).forEach(function(n) {
2128
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
2129
- });
2130
- }
2131
- return e;
2132
- }
2133
- function Dt(e) {
2134
- "@babel/helpers - typeof";
2135
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Dt = function(t) {
2136
- return typeof t;
2137
- } : Dt = function(t) {
2138
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2139
- }, Dt(e);
2140
- }
2141
- function ni(e, t, o) {
2142
- return t in e ? Object.defineProperty(e, t, {
2143
- value: o,
2144
- enumerable: !0,
2145
- configurable: !0,
2146
- writable: !0
2147
- }) : e[t] = o, e;
2148
- }
2149
- function ve() {
2150
- return ve = Object.assign || function(e) {
2151
- for (var t = 1; t < arguments.length; t++) {
2152
- var o = arguments[t];
2153
- for (var n in o)
2154
- Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);
2155
- }
2156
- return e;
2157
- }, ve.apply(this, arguments);
2158
- }
2159
- function ri(e, t) {
2160
- if (e == null) return {};
2161
- var o = {}, n = Object.keys(e), r, a;
2162
- for (a = 0; a < n.length; a++)
2163
- r = n[a], !(t.indexOf(r) >= 0) && (o[r] = e[r]);
2164
- return o;
2165
- }
2166
- function ai(e, t) {
2167
- if (e == null) return {};
2168
- var o = ri(e, t), n, r;
2169
- if (Object.getOwnPropertySymbols) {
2170
- var a = Object.getOwnPropertySymbols(e);
2171
- for (r = 0; r < a.length; r++)
2172
- n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
2173
- }
2174
- return o;
2175
- }
2176
- var ii = "1.15.6";
2177
- function ye(e) {
2178
- if (typeof window < "u" && window.navigator)
2179
- return !!/* @__PURE__ */ navigator.userAgent.match(e);
2180
- }
2181
- var be = ye(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ft = ye(/Edge/i), Qo = ye(/firefox/i), ot = ye(/safari/i) && !ye(/chrome/i) && !ye(/android/i), Do = ye(/iP(ad|od|hone)/i), Un = ye(/chrome/i) && ye(/android/i), zn = {
2182
- capture: !1,
2183
- passive: !1
2184
- };
2185
- function D(e, t, o) {
2186
- e.addEventListener(t, o, !be && zn);
2187
- }
2188
- function S(e, t, o) {
2189
- e.removeEventListener(t, o, !be && zn);
2190
- }
2191
- function Ot(e, t) {
2192
- if (t) {
2193
- if (t[0] === ">" && (t = t.substring(1)), e)
2194
- try {
2195
- if (e.matches)
2196
- return e.matches(t);
2197
- if (e.msMatchesSelector)
2198
- return e.msMatchesSelector(t);
2199
- if (e.webkitMatchesSelector)
2200
- return e.webkitMatchesSelector(t);
2201
- } catch {
2202
- return !1;
2203
- }
2204
- return !1;
2205
- }
2206
- }
2207
- function jn(e) {
2208
- return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2209
- }
2210
- function ne(e, t, o, n) {
2211
- if (e) {
2212
- o = o || document;
2213
- do {
2214
- if (t != null && (t[0] === ">" ? e.parentNode === o && Ot(e, t) : Ot(e, t)) || n && e === o)
2215
- return e;
2216
- if (e === o) break;
2217
- } while (e = jn(e));
2218
- }
2219
- return null;
2220
- }
2221
- var en = /\s+/g;
2222
- function G(e, t, o) {
2223
- if (e && t)
2224
- if (e.classList)
2225
- e.classList[o ? "add" : "remove"](t);
2226
- else {
2227
- var n = (" " + e.className + " ").replace(en, " ").replace(" " + t + " ", " ");
2228
- e.className = (n + (o ? " " + t : "")).replace(en, " ");
2229
- }
2230
- }
2231
- function b(e, t, o) {
2232
- var n = e && e.style;
2233
- if (n) {
2234
- if (o === void 0)
2235
- return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (o = e.currentStyle), t === void 0 ? o : o[t];
2236
- !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = o + (typeof o == "string" ? "" : "px");
2237
- }
2238
- }
2239
- function We(e, t) {
2240
- var o = "";
2241
- if (typeof e == "string")
2242
- o = e;
2243
- else
2244
- do {
2245
- var n = b(e, "transform");
2246
- n && n !== "none" && (o = n + " " + o);
2247
- } while (!t && (e = e.parentNode));
2248
- var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2249
- return r && new r(o);
2250
- }
2251
- function qn(e, t, o) {
2252
- if (e) {
2253
- var n = e.getElementsByTagName(t), r = 0, a = n.length;
2254
- if (o)
2255
- for (; r < a; r++)
2256
- o(n[r], r);
2257
- return n;
2258
- }
2259
- return [];
2260
- }
2261
- function ce() {
2262
- var e = document.scrollingElement;
2263
- return e || document.documentElement;
2264
- }
2265
- function R(e, t, o, n, r) {
2266
- if (!(!e.getBoundingClientRect && e !== window)) {
2267
- var a, i, s, l, u, d, c;
2268
- if (e !== window && e.parentNode && e !== ce() ? (a = e.getBoundingClientRect(), i = a.top, s = a.left, l = a.bottom, u = a.right, d = a.height, c = a.width) : (i = 0, s = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || o) && e !== window && (r = r || e.parentNode, !be))
2269
- do
2270
- if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || o && b(r, "position") !== "static")) {
2271
- var p = r.getBoundingClientRect();
2272
- i -= p.top + parseInt(b(r, "border-top-width")), s -= p.left + parseInt(b(r, "border-left-width")), l = i + a.height, u = s + a.width;
2273
- break;
2274
- }
2275
- while (r = r.parentNode);
2276
- if (n && e !== window) {
2277
- var y = We(r || e), v = y && y.a, m = y && y.d;
2278
- y && (i /= m, s /= v, c /= v, d /= m, l = i + d, u = s + c);
2279
- }
2280
- return {
2281
- top: i,
2282
- left: s,
2283
- bottom: l,
2284
- right: u,
2285
- width: c,
2286
- height: d
2287
- };
2288
- }
2289
- }
2290
- function tn(e, t, o) {
2291
- for (var n = xe(e, !0), r = R(e)[t]; n; ) {
2292
- var a = R(n)[o], i = void 0;
2293
- if (i = r >= a, !i) return n;
2294
- if (n === ce()) break;
2295
- n = xe(n, !1);
2296
- }
2297
- return !1;
2298
- }
2299
- function Ge(e, t, o, n) {
2300
- for (var r = 0, a = 0, i = e.children; a < i.length; ) {
2301
- if (i[a].style.display !== "none" && i[a] !== w.ghost && (n || i[a] !== w.dragged) && ne(i[a], o.draggable, e, !1)) {
2302
- if (r === t)
2303
- return i[a];
2304
- r++;
2305
- }
2306
- a++;
2307
- }
2308
- return null;
2309
- }
2310
- function To(e, t) {
2311
- for (var o = e.lastElementChild; o && (o === w.ghost || b(o, "display") === "none" || t && !Ot(o, t)); )
2312
- o = o.previousElementSibling;
2313
- return o || null;
2314
- }
2315
- function Q(e, t) {
2316
- var o = 0;
2317
- if (!e || !e.parentNode)
2318
- return -1;
2319
- for (; e = e.previousElementSibling; )
2320
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ot(e, t)) && o++;
2321
- return o;
2322
- }
2323
- function on(e) {
2324
- var t = 0, o = 0, n = ce();
2325
- if (e)
2326
- do {
2327
- var r = We(e), a = r.a, i = r.d;
2328
- t += e.scrollLeft * a, o += e.scrollTop * i;
2329
- } while (e !== n && (e = e.parentNode));
2330
- return [t, o];
2331
- }
2332
- function si(e, t) {
2333
- for (var o in e)
2334
- if (e.hasOwnProperty(o)) {
2335
- for (var n in t)
2336
- if (t.hasOwnProperty(n) && t[n] === e[o][n]) return Number(o);
2337
- }
2338
- return -1;
2339
- }
2340
- function xe(e, t) {
2341
- if (!e || !e.getBoundingClientRect) return ce();
2342
- var o = e, n = !1;
2343
- do
2344
- if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
2345
- var r = b(o);
2346
- if (o.clientWidth < o.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
2347
- if (!o.getBoundingClientRect || o === document.body) return ce();
2348
- if (n || t) return o;
2349
- n = !0;
2350
- }
2351
- }
2352
- while (o = o.parentNode);
2353
- return ce();
2354
- }
2355
- function li(e, t) {
2356
- if (e && t)
2357
- for (var o in t)
2358
- t.hasOwnProperty(o) && (e[o] = t[o]);
2359
- return e;
2360
- }
2361
- function Gt(e, t) {
2362
- return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2363
- }
2364
- var nt;
2365
- function $n(e, t) {
2366
- return function() {
2367
- if (!nt) {
2368
- var o = arguments, n = this;
2369
- o.length === 1 ? e.call(n, o[0]) : e.apply(n, o), nt = setTimeout(function() {
2370
- nt = void 0;
2371
- }, t);
2372
- }
2373
- };
2374
- }
2375
- function ui() {
2376
- clearTimeout(nt), nt = void 0;
2377
- }
2378
- function Hn(e, t, o) {
2379
- e.scrollLeft += t, e.scrollTop += o;
2380
- }
2381
- function Wn(e) {
2382
- var t = window.Polymer, o = window.jQuery || window.Zepto;
2383
- return t && t.dom ? t.dom(e).cloneNode(!0) : o ? o(e).clone(!0)[0] : e.cloneNode(!0);
2384
- }
2385
- function Vn(e, t, o) {
2386
- var n = {};
2387
- return Array.from(e.children).forEach(function(r) {
2388
- var a, i, s, l;
2389
- if (!(!ne(r, t.draggable, e, !1) || r.animated || r === o)) {
2390
- var u = R(r);
2391
- n.left = Math.min((a = n.left) !== null && a !== void 0 ? a : 1 / 0, u.left), n.top = Math.min((i = n.top) !== null && i !== void 0 ? i : 1 / 0, u.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, u.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
2392
- }
2393
- }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
2394
- }
2395
- var Y = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2396
- function ci() {
2397
- var e = [], t;
2398
- return {
2399
- captureAnimationState: function() {
2400
- if (e = [], !!this.options.animation) {
2401
- var n = [].slice.call(this.el.children);
2402
- n.forEach(function(r) {
2403
- if (!(b(r, "display") === "none" || r === w.ghost)) {
2404
- e.push({
2405
- target: r,
2406
- rect: R(r)
2407
- });
2408
- var a = de({}, e[e.length - 1].rect);
2409
- if (r.thisAnimationDuration) {
2410
- var i = We(r, !0);
2411
- i && (a.top -= i.f, a.left -= i.e);
2412
- }
2413
- r.fromRect = a;
2414
- }
2415
- });
2416
- }
2417
- },
2418
- addAnimationState: function(n) {
2419
- e.push(n);
2420
- },
2421
- removeAnimationState: function(n) {
2422
- e.splice(si(e, {
2423
- target: n
2424
- }), 1);
2425
- },
2426
- animateAll: function(n) {
2427
- var r = this;
2428
- if (!this.options.animation) {
2429
- clearTimeout(t), typeof n == "function" && n();
2430
- return;
2431
- }
2432
- var a = !1, i = 0;
2433
- e.forEach(function(s) {
2434
- var l = 0, u = s.target, d = u.fromRect, c = R(u), p = u.prevFromRect, y = u.prevToRect, v = s.rect, m = We(u, !0);
2435
- m && (c.top -= m.f, c.left -= m.e), u.toRect = c, u.thisAnimationDuration && Gt(p, c) && !Gt(d, c) && // Make sure animatingRect is on line between toRect & fromRect
2436
- (v.top - c.top) / (v.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = fi(v, p, y, r.options)), Gt(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = r.options.animation), r.animate(u, v, c, l)), l && (a = !0, i = Math.max(i, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
2437
- u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
2438
- }, l), u.thisAnimationDuration = l);
2439
- }), clearTimeout(t), a ? t = setTimeout(function() {
2440
- typeof n == "function" && n();
2441
- }, i) : typeof n == "function" && n(), e = [];
2442
- },
2443
- animate: function(n, r, a, i) {
2444
- if (i) {
2445
- b(n, "transition", ""), b(n, "transform", "");
2446
- var s = We(this.el), l = s && s.a, u = s && s.d, d = (r.left - a.left) / (l || 1), c = (r.top - a.top) / (u || 1);
2447
- n.animatingX = !!d, n.animatingY = !!c, b(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = di(n), b(n, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
2448
- b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
2449
- }, i);
2450
- }
2451
- }
2452
- };
2453
- }
2454
- function di(e) {
2455
- return e.offsetWidth;
2456
- }
2457
- function fi(e, t, o, n) {
2458
- return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) * n.animation;
2459
- }
2460
- var Be = [], Xt = {
2461
- initializeByDefault: !0
2462
- }, mt = {
2463
- mount: function(t) {
2464
- for (var o in Xt)
2465
- Xt.hasOwnProperty(o) && !(o in t) && (t[o] = Xt[o]);
2466
- Be.forEach(function(n) {
2467
- if (n.pluginName === t.pluginName)
2468
- throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
2469
- }), Be.push(t);
2470
- },
2471
- pluginEvent: function(t, o, n) {
2472
- var r = this;
2473
- this.eventCanceled = !1, n.cancel = function() {
2474
- r.eventCanceled = !0;
2475
- };
2476
- var a = t + "Global";
2477
- Be.forEach(function(i) {
2478
- o[i.pluginName] && (o[i.pluginName][a] && o[i.pluginName][a](de({
2479
- sortable: o
2480
- }, n)), o.options[i.pluginName] && o[i.pluginName][t] && o[i.pluginName][t](de({
2481
- sortable: o
2482
- }, n)));
2483
- });
2484
- },
2485
- initializePlugins: function(t, o, n, r) {
2486
- Be.forEach(function(s) {
2487
- var l = s.pluginName;
2488
- if (!(!t.options[l] && !s.initializeByDefault)) {
2489
- var u = new s(t, o, t.options);
2490
- u.sortable = t, u.options = t.options, t[l] = u, ve(n, u.defaults);
2491
- }
2492
- });
2493
- for (var a in t.options)
2494
- if (t.options.hasOwnProperty(a)) {
2495
- var i = this.modifyOption(t, a, t.options[a]);
2496
- typeof i < "u" && (t.options[a] = i);
2497
- }
2498
- },
2499
- getEventProperties: function(t, o) {
2500
- var n = {};
2501
- return Be.forEach(function(r) {
2502
- typeof r.eventProperties == "function" && ve(n, r.eventProperties.call(o[r.pluginName], t));
2503
- }), n;
2504
- },
2505
- modifyOption: function(t, o, n) {
2506
- var r;
2507
- return Be.forEach(function(a) {
2508
- t[a.pluginName] && a.optionListeners && typeof a.optionListeners[o] == "function" && (r = a.optionListeners[o].call(t[a.pluginName], n));
2509
- }), r;
2510
- }
2511
- };
2512
- function mi(e) {
2513
- var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl, a = e.cloneEl, i = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, y = e.putSortable, v = e.extraEventProperties;
2514
- if (t = t || o && o[Y], !!t) {
2515
- var m, h = t.options, x = "on" + n.charAt(0).toUpperCase() + n.substr(1);
2516
- window.CustomEvent && !be && !ft ? m = new CustomEvent(n, {
2517
- bubbles: !0,
2518
- cancelable: !0
2519
- }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = i || o, m.from = s || o, m.item = r || o, m.clone = a, m.oldIndex = l, m.newIndex = u, m.oldDraggableIndex = d, m.newDraggableIndex = c, m.originalEvent = p, m.pullMode = y ? y.lastPutMode : void 0;
2520
- var C = de(de({}, v), mt.getEventProperties(n, t));
2521
- for (var T in C)
2522
- m[T] = C[T];
2523
- o && o.dispatchEvent(m), h[x] && h[x].call(t, m);
2524
- }
2525
- }
2526
- var hi = ["evt"], V = function(t, o) {
2527
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, a = ai(n, hi);
2528
- mt.pluginEvent.bind(w)(t, o, de({
2529
- dragEl: f,
2530
- parentEl: N,
2531
- ghostEl: E,
2532
- rootEl: P,
2533
- nextEl: Me,
2534
- lastDownEl: Tt,
2535
- cloneEl: _,
2536
- cloneHidden: De,
2537
- dragStarted: Ze,
2538
- putSortable: z,
2539
- activeSortable: w.active,
2540
- originalEvent: r,
2541
- oldIndex: qe,
2542
- oldDraggableIndex: rt,
2543
- newIndex: K,
2544
- newDraggableIndex: Se,
2545
- hideGhostForTarget: Kn,
2546
- unhideGhostForTarget: Jn,
2547
- cloneNowHidden: function() {
2548
- De = !0;
2549
- },
2550
- cloneNowShown: function() {
2551
- De = !1;
2552
- },
2553
- dispatchSortableEvent: function(s) {
2554
- W({
2555
- sortable: o,
2556
- name: s,
2557
- originalEvent: r
2558
- });
2559
- }
2560
- }, a));
2561
- };
2562
- function W(e) {
2563
- mi(de({
2564
- putSortable: z,
2565
- cloneEl: _,
2566
- targetEl: f,
2567
- rootEl: P,
2568
- oldIndex: qe,
2569
- oldDraggableIndex: rt,
2570
- newIndex: K,
2571
- newDraggableIndex: Se
2572
- }, e));
2573
- }
2574
- var f, N, E, P, Me, Tt, _, De, qe, K, rt, Se, yt, z, ze = !1, Nt = !1, Mt = [], Oe, oe, Kt, Jt, nn, rn, Ze, Ue, at, it = !1, vt = !1, xt, q, Zt = [], fo = !1, Rt = [], jt = typeof document < "u", bt = Do, an = ft || be ? "cssFloat" : "float", pi = jt && !Un && !Do && "draggable" in document.createElement("div"), Yn = function() {
2575
- if (jt) {
2576
- if (be)
2577
- return !1;
2578
- var e = document.createElement("x");
2579
- return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2580
- }
2581
- }(), Gn = function(t, o) {
2582
- var n = b(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), a = Ge(t, 0, o), i = Ge(t, 1, o), s = a && b(a), l = i && b(i), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + R(a).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + R(i).width;
2583
- if (n.display === "flex")
2584
- return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2585
- if (n.display === "grid")
2586
- return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2587
- if (a && s.float && s.float !== "none") {
2588
- var c = s.float === "left" ? "left" : "right";
2589
- return i && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
2590
- }
2591
- return a && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[an] === "none" || i && n[an] === "none" && u + d > r) ? "vertical" : "horizontal";
2592
- }, gi = function(t, o, n) {
2593
- var r = n ? t.left : t.top, a = n ? t.right : t.bottom, i = n ? t.width : t.height, s = n ? o.left : o.top, l = n ? o.right : o.bottom, u = n ? o.width : o.height;
2594
- return r === s || a === l || r + i / 2 === s + u / 2;
2595
- }, yi = function(t, o) {
2596
- var n;
2597
- return Mt.some(function(r) {
2598
- var a = r[Y].options.emptyInsertThreshold;
2599
- if (!(!a || To(r))) {
2600
- var i = R(r), s = t >= i.left - a && t <= i.right + a, l = o >= i.top - a && o <= i.bottom + a;
2601
- if (s && l)
2602
- return n = r;
2603
- }
2604
- }), n;
2605
- }, Xn = function(t) {
2606
- function o(a, i) {
2607
- return function(s, l, u, d) {
2608
- var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
2609
- if (a == null && (i || c))
2610
- return !0;
2611
- if (a == null || a === !1)
2612
- return !1;
2613
- if (i && a === "clone")
2614
- return a;
2615
- if (typeof a == "function")
2616
- return o(a(s, l, u, d), i)(s, l, u, d);
2617
- var p = (i ? s : l).options.group.name;
2618
- return a === !0 || typeof a == "string" && a === p || a.join && a.indexOf(p) > -1;
2619
- };
2620
- }
2621
- var n = {}, r = t.group;
2622
- (!r || Dt(r) != "object") && (r = {
2623
- name: r
2624
- }), n.name = r.name, n.checkPull = o(r.pull, !0), n.checkPut = o(r.put), n.revertClone = r.revertClone, t.group = n;
2625
- }, Kn = function() {
2626
- !Yn && E && b(E, "display", "none");
2627
- }, Jn = function() {
2628
- !Yn && E && b(E, "display", "");
2629
- };
2630
- jt && !Un && document.addEventListener("click", function(e) {
2631
- if (Nt)
2632
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Nt = !1, !1;
2633
- }, !0);
2634
- var Ne = function(t) {
2635
- if (f) {
2636
- t = t.touches ? t.touches[0] : t;
2637
- var o = yi(t.clientX, t.clientY);
2638
- if (o) {
2639
- var n = {};
2640
- for (var r in t)
2641
- t.hasOwnProperty(r) && (n[r] = t[r]);
2642
- n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[Y]._onDragOver(n);
2643
- }
2644
- }
2645
- }, vi = function(t) {
2646
- f && f.parentNode[Y]._isOutsideThisEl(t.target);
2647
- };
2648
- function w(e, t) {
2649
- if (!(e && e.nodeType && e.nodeType === 1))
2650
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
2651
- this.el = e, this.options = t = ve({}, t), e[Y] = this;
2652
- var o = {
2653
- group: null,
2654
- sort: !0,
2655
- disabled: !1,
2656
- store: null,
2657
- handle: null,
2658
- draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
2659
- swapThreshold: 1,
2660
- // percentage; 0 <= x <= 1
2661
- invertSwap: !1,
2662
- // invert always
2663
- invertedSwapThreshold: null,
2664
- // will be set to same as swapThreshold if default
2665
- removeCloneOnHide: !0,
2666
- direction: function() {
2667
- return Gn(e, this.options);
2668
- },
2669
- ghostClass: "sortable-ghost",
2670
- chosenClass: "sortable-chosen",
2671
- dragClass: "sortable-drag",
2672
- ignore: "a, img",
2673
- filter: null,
2674
- preventOnFilter: !0,
2675
- animation: 0,
2676
- easing: null,
2677
- setData: function(i, s) {
2678
- i.setData("Text", s.textContent);
2679
- },
2680
- dropBubble: !1,
2681
- dragoverBubble: !1,
2682
- dataIdAttr: "data-id",
2683
- delay: 0,
2684
- delayOnTouchOnly: !1,
2685
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
2686
- forceFallback: !1,
2687
- fallbackClass: "sortable-fallback",
2688
- fallbackOnBody: !1,
2689
- fallbackTolerance: 0,
2690
- fallbackOffset: {
2691
- x: 0,
2692
- y: 0
2693
- },
2694
- // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
2695
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!ot || Do),
2696
- emptyInsertThreshold: 5
2697
- };
2698
- mt.initializePlugins(this, e, o);
2699
- for (var n in o)
2700
- !(n in t) && (t[n] = o[n]);
2701
- Xn(t);
2702
- for (var r in this)
2703
- r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
2704
- this.nativeDraggable = t.forceFallback ? !1 : pi, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? D(e, "pointerdown", this._onTapStart) : (D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart)), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), Mt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ve(this, ci());
2705
- }
2706
- w.prototype = /** @lends Sortable.prototype */
2707
- {
2708
- constructor: w,
2709
- _isOutsideThisEl: function(t) {
2710
- !this.el.contains(t) && t !== this.el && (Ue = null);
2711
- },
2712
- _getDirection: function(t, o) {
2713
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, o, f) : this.options.direction;
2714
- },
2715
- _onTapStart: function(t) {
2716
- if (t.cancelable) {
2717
- var o = this, n = this.el, r = this.options, a = r.preventOnFilter, i = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = r.filter;
2718
- if (xi(n), !f && !(/mousedown|pointerdown/.test(i) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ot && l && l.tagName.toUpperCase() === "SELECT") && (l = ne(l, r.draggable, n, !1), !(l && l.animated) && Tt !== l)) {
2719
- if (qe = Q(l), rt = Q(l, r.draggable), typeof d == "function") {
2720
- if (d.call(this, t, l, this)) {
2721
- W({
2722
- sortable: o,
2723
- rootEl: u,
2724
- name: "filter",
2725
- targetEl: l,
2726
- toEl: n,
2727
- fromEl: n
2728
- }), V("filter", o, {
2729
- evt: t
2730
- }), a && t.preventDefault();
2731
- return;
2732
- }
2733
- } else if (d && (d = d.split(",").some(function(c) {
2734
- if (c = ne(u, c.trim(), n, !1), c)
2735
- return W({
2736
- sortable: o,
2737
- rootEl: c,
2738
- name: "filter",
2739
- targetEl: l,
2740
- fromEl: n,
2741
- toEl: n
2742
- }), V("filter", o, {
2743
- evt: t
2744
- }), !0;
2745
- }), d)) {
2746
- a && t.preventDefault();
2747
- return;
2748
- }
2749
- r.handle && !ne(u, r.handle, n, !1) || this._prepareDragStart(t, s, l);
2750
- }
2751
- }
2752
- },
2753
- _prepareDragStart: function(t, o, n) {
2754
- var r = this, a = r.el, i = r.options, s = a.ownerDocument, l;
2755
- if (n && !f && n.parentNode === a) {
2756
- var u = R(n);
2757
- if (P = a, f = n, N = f.parentNode, Me = f.nextSibling, Tt = n, yt = i.group, w.dragged = f, Oe = {
2758
- target: f,
2759
- clientX: (o || t).clientX,
2760
- clientY: (o || t).clientY
2761
- }, nn = Oe.clientX - u.left, rn = Oe.clientY - u.top, this._lastX = (o || t).clientX, this._lastY = (o || t).clientY, f.style["will-change"] = "all", l = function() {
2762
- if (V("delayEnded", r, {
2763
- evt: t
2764
- }), w.eventCanceled) {
2765
- r._onDrop();
2766
- return;
2767
- }
2768
- r._disableDelayedDragEvents(), !Qo && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(t, o), W({
2769
- sortable: r,
2770
- name: "choose",
2771
- originalEvent: t
2772
- }), G(f, i.chosenClass, !0);
2773
- }, i.ignore.split(",").forEach(function(d) {
2774
- qn(f, d.trim(), Qt);
2775
- }), D(s, "dragover", Ne), D(s, "mousemove", Ne), D(s, "touchmove", Ne), i.supportPointer ? (D(s, "pointerup", r._onDrop), !this.nativeDraggable && D(s, "pointercancel", r._onDrop)) : (D(s, "mouseup", r._onDrop), D(s, "touchend", r._onDrop), D(s, "touchcancel", r._onDrop)), Qo && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), V("delayStart", this, {
2776
- evt: t
2777
- }), i.delay && (!i.delayOnTouchOnly || o) && (!this.nativeDraggable || !(ft || be))) {
2778
- if (w.eventCanceled) {
2779
- this._onDrop();
2780
- return;
2781
- }
2782
- i.supportPointer ? (D(s, "pointerup", r._disableDelayedDrag), D(s, "pointercancel", r._disableDelayedDrag)) : (D(s, "mouseup", r._disableDelayedDrag), D(s, "touchend", r._disableDelayedDrag), D(s, "touchcancel", r._disableDelayedDrag)), D(s, "mousemove", r._delayedDragTouchMoveHandler), D(s, "touchmove", r._delayedDragTouchMoveHandler), i.supportPointer && D(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, i.delay);
2783
- } else
2784
- l();
2785
- }
2786
- },
2787
- _delayedDragTouchMoveHandler: function(t) {
2788
- var o = t.touches ? t.touches[0] : t;
2789
- Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2790
- },
2791
- _disableDelayedDrag: function() {
2792
- f && Qt(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2793
- },
2794
- _disableDelayedDragEvents: function() {
2795
- var t = this.el.ownerDocument;
2796
- S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "pointerup", this._disableDelayedDrag), S(t, "pointercancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
2797
- },
2798
- _triggerDragStart: function(t, o) {
2799
- o = o || t.pointerType == "touch" && t, !this.nativeDraggable || o ? this.options.supportPointer ? D(document, "pointermove", this._onTouchMove) : o ? D(document, "touchmove", this._onTouchMove) : D(document, "mousemove", this._onTouchMove) : (D(f, "dragend", this), D(P, "dragstart", this._onDragStart));
2800
- try {
2801
- document.selection ? kt(function() {
2802
- document.selection.empty();
2803
- }) : window.getSelection().removeAllRanges();
2804
- } catch {
2805
- }
2806
- },
2807
- _dragStarted: function(t, o) {
2808
- if (ze = !1, P && f) {
2809
- V("dragStarted", this, {
2810
- evt: o
2811
- }), this.nativeDraggable && D(document, "dragover", vi);
2812
- var n = this.options;
2813
- !t && G(f, n.dragClass, !1), G(f, n.ghostClass, !0), w.active = this, t && this._appendGhost(), W({
2814
- sortable: this,
2815
- name: "start",
2816
- originalEvent: o
2817
- });
2818
- } else
2819
- this._nulling();
2820
- },
2821
- _emulateDragOver: function() {
2822
- if (oe) {
2823
- this._lastX = oe.clientX, this._lastY = oe.clientY, Kn();
2824
- for (var t = document.elementFromPoint(oe.clientX, oe.clientY), o = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(oe.clientX, oe.clientY), t !== o); )
2825
- o = t;
2826
- if (f.parentNode[Y]._isOutsideThisEl(t), o)
2827
- do {
2828
- if (o[Y]) {
2829
- var n = void 0;
2830
- if (n = o[Y]._onDragOver({
2831
- clientX: oe.clientX,
2832
- clientY: oe.clientY,
2833
- target: t,
2834
- rootEl: o
2835
- }), n && !this.options.dragoverBubble)
2836
- break;
2837
- }
2838
- t = o;
2839
- } while (o = jn(o));
2840
- Jn();
2841
- }
2842
- },
2843
- _onTouchMove: function(t) {
2844
- if (Oe) {
2845
- var o = this.options, n = o.fallbackTolerance, r = o.fallbackOffset, a = t.touches ? t.touches[0] : t, i = E && We(E, !0), s = E && i && i.a, l = E && i && i.d, u = bt && q && on(q), d = (a.clientX - Oe.clientX + r.x) / (s || 1) + (u ? u[0] - Zt[0] : 0) / (s || 1), c = (a.clientY - Oe.clientY + r.y) / (l || 1) + (u ? u[1] - Zt[1] : 0) / (l || 1);
2846
- if (!w.active && !ze) {
2847
- if (n && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < n)
2848
- return;
2849
- this._onDragStart(t, !0);
2850
- }
2851
- if (E) {
2852
- i ? (i.e += d - (Kt || 0), i.f += c - (Jt || 0)) : i = {
2853
- a: 1,
2854
- b: 0,
2855
- c: 0,
2856
- d: 1,
2857
- e: d,
2858
- f: c
2859
- };
2860
- var p = "matrix(".concat(i.a, ",").concat(i.b, ",").concat(i.c, ",").concat(i.d, ",").concat(i.e, ",").concat(i.f, ")");
2861
- b(E, "webkitTransform", p), b(E, "mozTransform", p), b(E, "msTransform", p), b(E, "transform", p), Kt = d, Jt = c, oe = a;
2862
- }
2863
- t.cancelable && t.preventDefault();
2864
- }
2865
- },
2866
- _appendGhost: function() {
2867
- if (!E) {
2868
- var t = this.options.fallbackOnBody ? document.body : P, o = R(f, !0, bt, !0, t), n = this.options;
2869
- if (bt) {
2870
- for (q = t; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
2871
- q = q.parentNode;
2872
- q !== document.body && q !== document.documentElement ? (q === document && (q = ce()), o.top += q.scrollTop, o.left += q.scrollLeft) : q = ce(), Zt = on(q);
2873
- }
2874
- E = f.cloneNode(!0), G(E, n.ghostClass, !1), G(E, n.fallbackClass, !0), G(E, n.dragClass, !0), b(E, "transition", ""), b(E, "transform", ""), b(E, "box-sizing", "border-box"), b(E, "margin", 0), b(E, "top", o.top), b(E, "left", o.left), b(E, "width", o.width), b(E, "height", o.height), b(E, "opacity", "0.8"), b(E, "position", bt ? "absolute" : "fixed"), b(E, "zIndex", "100000"), b(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), b(E, "transform-origin", nn / parseInt(E.style.width) * 100 + "% " + rn / parseInt(E.style.height) * 100 + "%");
2875
- }
2876
- },
2877
- _onDragStart: function(t, o) {
2878
- var n = this, r = t.dataTransfer, a = n.options;
2879
- if (V("dragStart", this, {
2880
- evt: t
2881
- }), w.eventCanceled) {
2882
- this._onDrop();
2883
- return;
2884
- }
2885
- V("setupClone", this), w.eventCanceled || (_ = Wn(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), G(_, this.options.chosenClass, !1), w.clone = _), n.cloneId = kt(function() {
2886
- V("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || P.insertBefore(_, f), n._hideClone(), W({
2887
- sortable: n,
2888
- name: "clone"
2889
- }));
2890
- }), !o && G(f, a.dragClass, !0), o ? (Nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (S(document, "mouseup", n._onDrop), S(document, "touchend", n._onDrop), S(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(n, r, f)), D(document, "drop", n), b(f, "transform", "translateZ(0)")), ze = !0, n._dragStartId = kt(n._dragStarted.bind(n, o, t)), D(document, "selectstart", n), Ze = !0, window.getSelection().removeAllRanges(), ot && b(document.body, "user-select", "none");
2891
- },
2892
- // Returns true - if no further action is needed (either inserted or another condition)
2893
- _onDragOver: function(t) {
2894
- var o = this.el, n = t.target, r, a, i, s = this.options, l = s.group, u = w.active, d = yt === l, c = s.sort, p = z || u, y, v = this, m = !1;
2895
- if (fo) return;
2896
- function h(we, qt) {
2897
- V(we, v, de({
2898
- evt: t,
2899
- isOwner: d,
2900
- axis: y ? "vertical" : "horizontal",
2901
- revert: i,
2902
- dragRect: r,
2903
- targetRect: a,
2904
- canSort: c,
2905
- fromSortable: p,
2906
- target: n,
2907
- completed: C,
2908
- onMove: function(ht, $t) {
2909
- return wt(P, o, f, r, ht, R(ht), t, $t);
2910
- },
2911
- changed: T
2912
- }, qt));
2913
- }
2914
- function x() {
2915
- h("dragOverAnimationCapture"), v.captureAnimationState(), v !== p && p.captureAnimationState();
2916
- }
2917
- function C(we) {
2918
- return h("dragOverCompleted", {
2919
- insertion: we
2920
- }), we && (d ? u._hideClone() : u._showClone(v), v !== p && (G(f, z ? z.options.ghostClass : u.options.ghostClass, !1), G(f, s.ghostClass, !0)), z !== v && v !== w.active ? z = v : v === w.active && z && (z = null), p === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
2921
- h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
2922
- }), v !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === f && !f.animated || n === o && !n.animated) && (Ue = null), !s.dragoverBubble && !t.rootEl && n !== document && (f.parentNode[Y]._isOutsideThisEl(t.target), !we && Ne(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
2923
- }
2924
- function T() {
2925
- K = Q(f), Se = Q(f, s.draggable), W({
2926
- sortable: v,
2927
- name: "change",
2928
- toEl: o,
2929
- newIndex: K,
2930
- newDraggableIndex: Se,
2931
- originalEvent: t
2932
- });
2933
- }
2934
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = ne(n, s.draggable, o, !0), h("dragOver"), w.eventCanceled) return m;
2935
- if (f.contains(t.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
2936
- return C(!1);
2937
- if (Nt = !1, u && !s.disabled && (d ? c || (i = N !== P) : z === this || (this.lastPutMode = yt.checkPull(this, u, f, t)) && l.checkPut(this, u, f, t))) {
2938
- if (y = this._getDirection(t, n) === "vertical", r = R(f), h("dragOverValid"), w.eventCanceled) return m;
2939
- if (i)
2940
- return N = P, x(), this._hideClone(), h("revert"), w.eventCanceled || (Me ? P.insertBefore(f, Me) : P.appendChild(f)), C(!0);
2941
- var I = To(o, s.draggable);
2942
- if (!I || Ci(t, y, this) && !I.animated) {
2943
- if (I === f)
2944
- return C(!1);
2945
- if (I && o === t.target && (n = I), n && (a = R(n)), wt(P, o, f, r, n, a, t, !!n) !== !1)
2946
- return x(), I && I.nextSibling ? o.insertBefore(f, I.nextSibling) : o.appendChild(f), N = o, T(), C(!0);
2947
- } else if (I && Ei(t, y, this)) {
2948
- var re = Ge(o, 0, s, !0);
2949
- if (re === f)
2950
- return C(!1);
2951
- if (n = re, a = R(n), wt(P, o, f, r, n, a, t, !1) !== !1)
2952
- return x(), o.insertBefore(f, re), N = o, T(), C(!0);
2953
- } else if (n.parentNode === o) {
2954
- a = R(n);
2955
- var Z = 0, fe, Ie = f.parentNode !== o, H = !gi(f.animated && f.toRect || r, n.animated && n.toRect || a, y), Fe = y ? "top" : "left", ae = tn(n, "top", "top") || tn(f, "top", "top"), Pe = ae ? ae.scrollTop : void 0;
2956
- Ue !== n && (fe = a[Fe], it = !1, vt = !H && s.invertSwap || Ie), Z = Si(t, n, a, y, H ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, vt, Ue === n);
2957
- var j;
2958
- if (Z !== 0) {
2959
- var me = Q(f);
2960
- do
2961
- me -= Z, j = N.children[me];
2962
- while (j && (b(j, "display") === "none" || j === E));
2963
- }
2964
- if (Z === 0 || j === n)
2965
- return C(!1);
2966
- Ue = n, at = Z;
2967
- var he = n.nextElementSibling, ie = !1;
2968
- ie = Z === 1;
2969
- var Ke = wt(P, o, f, r, n, a, t, ie);
2970
- if (Ke !== !1)
2971
- return (Ke === 1 || Ke === -1) && (ie = Ke === 1), fo = !0, setTimeout(wi, 30), x(), ie && !he ? o.appendChild(f) : n.parentNode.insertBefore(f, ie ? he : n), ae && Hn(ae, 0, Pe - ae.scrollTop), N = f.parentNode, fe !== void 0 && !vt && (xt = Math.abs(fe - R(n)[Fe])), T(), C(!0);
2972
- }
2973
- if (o.contains(f))
2974
- return C(!1);
2975
- }
2976
- return !1;
2977
- },
2978
- _ignoreWhileAnimating: null,
2979
- _offMoveEvents: function() {
2980
- S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Ne), S(document, "mousemove", Ne), S(document, "touchmove", Ne);
2981
- },
2982
- _offUpEvents: function() {
2983
- var t = this.el.ownerDocument;
2984
- S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "pointercancel", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2985
- },
2986
- _onDrop: function(t) {
2987
- var o = this.el, n = this.options;
2988
- if (K = Q(f), Se = Q(f, n.draggable), V("drop", this, {
2989
- evt: t
2990
- }), N = f && f.parentNode, K = Q(f), Se = Q(f, n.draggable), w.eventCanceled) {
2991
- this._nulling();
2992
- return;
2993
- }
2994
- ze = !1, vt = !1, it = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), mo(this.cloneId), mo(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ot && b(document.body, "user-select", ""), b(f, "transform", ""), t && (Ze && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (P === N || z && z.lastPutMode !== "clone") && _ && _.parentNode && _.parentNode.removeChild(_), f && (this.nativeDraggable && S(f, "dragend", this), Qt(f), f.style["will-change"] = "", Ze && !ze && G(f, z ? z.options.ghostClass : this.options.ghostClass, !1), G(f, this.options.chosenClass, !1), W({
2995
- sortable: this,
2996
- name: "unchoose",
2997
- toEl: N,
2998
- newIndex: null,
2999
- newDraggableIndex: null,
3000
- originalEvent: t
3001
- }), P !== N ? (K >= 0 && (W({
3002
- rootEl: N,
3003
- name: "add",
3004
- toEl: N,
3005
- fromEl: P,
3006
- originalEvent: t
3007
- }), W({
3008
- sortable: this,
3009
- name: "remove",
3010
- toEl: N,
3011
- originalEvent: t
3012
- }), W({
3013
- rootEl: N,
3014
- name: "sort",
3015
- toEl: N,
3016
- fromEl: P,
3017
- originalEvent: t
3018
- }), W({
3019
- sortable: this,
3020
- name: "sort",
3021
- toEl: N,
3022
- originalEvent: t
3023
- })), z && z.save()) : K !== qe && K >= 0 && (W({
3024
- sortable: this,
3025
- name: "update",
3026
- toEl: N,
3027
- originalEvent: t
3028
- }), W({
3029
- sortable: this,
3030
- name: "sort",
3031
- toEl: N,
3032
- originalEvent: t
3033
- })), w.active && ((K == null || K === -1) && (K = qe, Se = rt), W({
3034
- sortable: this,
3035
- name: "end",
3036
- toEl: N,
3037
- originalEvent: t
3038
- }), this.save()))), this._nulling();
3039
- },
3040
- _nulling: function() {
3041
- V("nulling", this), P = f = N = E = Me = _ = Tt = De = Oe = oe = Ze = K = Se = qe = rt = Ue = at = z = yt = w.dragged = w.ghost = w.clone = w.active = null, Rt.forEach(function(t) {
3042
- t.checked = !0;
3043
- }), Rt.length = Kt = Jt = 0;
3044
- },
3045
- handleEvent: function(t) {
3046
- switch (t.type) {
3047
- case "drop":
3048
- case "dragend":
3049
- this._onDrop(t);
3050
- break;
3051
- case "dragenter":
3052
- case "dragover":
3053
- f && (this._onDragOver(t), bi(t));
3054
- break;
3055
- case "selectstart":
3056
- t.preventDefault();
3057
- break;
3058
- }
3059
- },
3060
- /**
3061
- * Serializes the item into an array of string.
3062
- * @returns {String[]}
3063
- */
3064
- toArray: function() {
3065
- for (var t = [], o, n = this.el.children, r = 0, a = n.length, i = this.options; r < a; r++)
3066
- o = n[r], ne(o, i.draggable, this.el, !1) && t.push(o.getAttribute(i.dataIdAttr) || Ti(o));
3067
- return t;
3068
- },
3069
- /**
3070
- * Sorts the elements according to the array.
3071
- * @param {String[]} order order of the items
3072
- */
3073
- sort: function(t, o) {
3074
- var n = {}, r = this.el;
3075
- this.toArray().forEach(function(a, i) {
3076
- var s = r.children[i];
3077
- ne(s, this.options.draggable, r, !1) && (n[a] = s);
3078
- }, this), o && this.captureAnimationState(), t.forEach(function(a) {
3079
- n[a] && (r.removeChild(n[a]), r.appendChild(n[a]));
3080
- }), o && this.animateAll();
3081
- },
3082
- /**
3083
- * Save the current sorting
3084
- */
3085
- save: function() {
3086
- var t = this.options.store;
3087
- t && t.set && t.set(this);
3088
- },
3089
- /**
3090
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
3091
- * @param {HTMLElement} el
3092
- * @param {String} [selector] default: `options.draggable`
3093
- * @returns {HTMLElement|null}
3094
- */
3095
- closest: function(t, o) {
3096
- return ne(t, o || this.options.draggable, this.el, !1);
3097
- },
3098
- /**
3099
- * Set/get option
3100
- * @param {string} name
3101
- * @param {*} [value]
3102
- * @returns {*}
3103
- */
3104
- option: function(t, o) {
3105
- var n = this.options;
3106
- if (o === void 0)
3107
- return n[t];
3108
- var r = mt.modifyOption(this, t, o);
3109
- typeof r < "u" ? n[t] = r : n[t] = o, t === "group" && Xn(n);
3110
- },
3111
- /**
3112
- * Destroy
3113
- */
3114
- destroy: function() {
3115
- V("destroy", this);
3116
- var t = this.el;
3117
- t[Y] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(o) {
3118
- o.removeAttribute("draggable");
3119
- }), this._onDrop(), this._disableDelayedDragEvents(), Mt.splice(Mt.indexOf(this.el), 1), this.el = t = null;
3120
- },
3121
- _hideClone: function() {
3122
- if (!De) {
3123
- if (V("hideClone", this), w.eventCanceled) return;
3124
- b(_, "display", "none"), this.options.removeCloneOnHide && _.parentNode && _.parentNode.removeChild(_), De = !0;
3125
- }
3126
- },
3127
- _showClone: function(t) {
3128
- if (t.lastPutMode !== "clone") {
3129
- this._hideClone();
3130
- return;
3131
- }
3132
- if (De) {
3133
- if (V("showClone", this), w.eventCanceled) return;
3134
- f.parentNode == P && !this.options.group.revertClone ? P.insertBefore(_, f) : Me ? P.insertBefore(_, Me) : P.appendChild(_), this.options.group.revertClone && this.animate(f, _), b(_, "display", ""), De = !1;
3135
- }
3136
- }
3137
- };
3138
- function bi(e) {
3139
- e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3140
- }
3141
- function wt(e, t, o, n, r, a, i, s) {
3142
- var l, u = e[Y], d = u.options.onMove, c;
3143
- return window.CustomEvent && !be && !ft ? l = new CustomEvent("move", {
3144
- bubbles: !0,
3145
- cancelable: !0
3146
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = o, l.draggedRect = n, l.related = r || t, l.relatedRect = a || R(t), l.willInsertAfter = s, l.originalEvent = i, e.dispatchEvent(l), d && (c = d.call(u, l, i)), c;
3147
- }
3148
- function Qt(e) {
3149
- e.draggable = !1;
3150
- }
3151
- function wi() {
3152
- fo = !1;
3153
- }
3154
- function Ei(e, t, o) {
3155
- var n = R(Ge(o.el, 0, o.options, !0)), r = Vn(o.el, o.options, E), a = 10;
3156
- return t ? e.clientX < r.left - a || e.clientY < n.top && e.clientX < n.right : e.clientY < r.top - a || e.clientY < n.bottom && e.clientX < n.left;
3157
- }
3158
- function Ci(e, t, o) {
3159
- var n = R(To(o.el, o.options.draggable)), r = Vn(o.el, o.options, E), a = 10;
3160
- return t ? e.clientX > r.right + a || e.clientY > n.bottom && e.clientX > n.left : e.clientY > r.bottom + a || e.clientX > n.right && e.clientY > n.top;
3161
- }
3162
- function Si(e, t, o, n, r, a, i, s) {
3163
- var l = n ? e.clientY : e.clientX, u = n ? o.height : o.width, d = n ? o.top : o.left, c = n ? o.bottom : o.right, p = !1;
3164
- if (!i) {
3165
- if (s && xt < u * r) {
3166
- if (!it && (at === 1 ? l > d + u * a / 2 : l < c - u * a / 2) && (it = !0), it)
3167
- p = !0;
3168
- else if (at === 1 ? l < d + xt : l > c - xt)
3169
- return -at;
3170
- } else if (l > d + u * (1 - r) / 2 && l < c - u * (1 - r) / 2)
3171
- return Di(t);
3172
- }
3173
- return p = p || i, p && (l < d + u * a / 2 || l > c - u * a / 2) ? l > d + u / 2 ? 1 : -1 : 0;
3174
- }
3175
- function Di(e) {
3176
- return Q(f) < Q(e) ? 1 : -1;
3177
- }
3178
- function Ti(e) {
3179
- for (var t = e.tagName + e.className + e.src + e.href + e.textContent, o = t.length, n = 0; o--; )
3180
- n += t.charCodeAt(o);
3181
- return n.toString(36);
3182
- }
3183
- function xi(e) {
3184
- Rt.length = 0;
3185
- for (var t = e.getElementsByTagName("input"), o = t.length; o--; ) {
3186
- var n = t[o];
3187
- n.checked && Rt.push(n);
3188
- }
3189
- }
3190
- function kt(e) {
3191
- return setTimeout(e, 0);
3192
- }
3193
- function mo(e) {
3194
- return clearTimeout(e);
3195
- }
3196
- jt && D(document, "touchmove", function(e) {
3197
- (w.active || ze) && e.cancelable && e.preventDefault();
3198
- });
3199
- w.utils = {
3200
- on: D,
3201
- off: S,
3202
- css: b,
3203
- find: qn,
3204
- is: function(t, o) {
3205
- return !!ne(t, o, t, !1);
3206
- },
3207
- extend: li,
3208
- throttle: $n,
3209
- closest: ne,
3210
- toggleClass: G,
3211
- clone: Wn,
3212
- index: Q,
3213
- nextTick: kt,
3214
- cancelNextTick: mo,
3215
- detectDirection: Gn,
3216
- getChild: Ge,
3217
- expando: Y
3218
- };
3219
- w.get = function(e) {
3220
- return e[Y];
3221
- };
3222
- w.mount = function() {
3223
- for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
3224
- t[o] = arguments[o];
3225
- t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
3226
- if (!n.prototype || !n.prototype.constructor)
3227
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
3228
- n.utils && (w.utils = de(de({}, w.utils), n.utils)), mt.mount(n);
3229
- });
3230
- };
3231
- w.create = function(e, t) {
3232
- return new w(e, t);
3233
- };
3234
- w.version = ii;
3235
- var M = [], Qe, ho, po = !1, eo, to, At, et;
3236
- function ki() {
3237
- function e() {
3238
- this.defaults = {
3239
- scroll: !0,
3240
- forceAutoScrollFallback: !1,
3241
- scrollSensitivity: 30,
3242
- scrollSpeed: 10,
3243
- bubbleScroll: !0
3244
- };
3245
- for (var t in this)
3246
- t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
3247
- }
3248
- return e.prototype = {
3249
- dragStarted: function(o) {
3250
- var n = o.originalEvent;
3251
- this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? D(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? D(document, "touchmove", this._handleFallbackAutoScroll) : D(document, "mousemove", this._handleFallbackAutoScroll);
3252
- },
3253
- dragOverCompleted: function(o) {
3254
- var n = o.originalEvent;
3255
- !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
3256
- },
3257
- drop: function() {
3258
- this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), sn(), It(), ui();
3259
- },
3260
- nulling: function() {
3261
- At = ho = Qe = po = et = eo = to = null, M.length = 0;
3262
- },
3263
- _handleFallbackAutoScroll: function(o) {
3264
- this._handleAutoScroll(o, !0);
3265
- },
3266
- _handleAutoScroll: function(o, n) {
3267
- var r = this, a = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, s = document.elementFromPoint(a, i);
3268
- if (At = o, n || this.options.forceAutoScrollFallback || ft || be || ot) {
3269
- oo(o, this.options, s, n);
3270
- var l = xe(s, !0);
3271
- po && (!et || a !== eo || i !== to) && (et && sn(), et = setInterval(function() {
3272
- var u = xe(document.elementFromPoint(a, i), !0);
3273
- u !== l && (l = u, It()), oo(o, r.options, u, n);
3274
- }, 10), eo = a, to = i);
3275
- } else {
3276
- if (!this.options.bubbleScroll || xe(s, !0) === ce()) {
3277
- It();
3278
- return;
3279
- }
3280
- oo(o, this.options, xe(s, !1), !1);
3281
- }
3282
- }
3283
- }, ve(e, {
3284
- pluginName: "scroll",
3285
- initializeByDefault: !0
3286
- });
3287
- }
3288
- function It() {
3289
- M.forEach(function(e) {
3290
- clearInterval(e.pid);
3291
- }), M = [];
3292
- }
3293
- function sn() {
3294
- clearInterval(et);
3295
- }
3296
- var oo = $n(function(e, t, o, n) {
3297
- if (t.scroll) {
3298
- var r = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, i = t.scrollSensitivity, s = t.scrollSpeed, l = ce(), u = !1, d;
3299
- ho !== o && (ho = o, It(), Qe = t.scroll, d = t.scrollFn, Qe === !0 && (Qe = xe(o, !0)));
3300
- var c = 0, p = Qe;
3301
- do {
3302
- var y = p, v = R(y), m = v.top, h = v.bottom, x = v.left, C = v.right, T = v.width, I = v.height, re = void 0, Z = void 0, fe = y.scrollWidth, Ie = y.scrollHeight, H = b(y), Fe = y.scrollLeft, ae = y.scrollTop;
3303
- y === l ? (re = T < fe && (H.overflowX === "auto" || H.overflowX === "scroll" || H.overflowX === "visible"), Z = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll" || H.overflowY === "visible")) : (re = T < fe && (H.overflowX === "auto" || H.overflowX === "scroll"), Z = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll"));
3304
- var Pe = re && (Math.abs(C - r) <= i && Fe + T < fe) - (Math.abs(x - r) <= i && !!Fe), j = Z && (Math.abs(h - a) <= i && ae + I < Ie) - (Math.abs(m - a) <= i && !!ae);
3305
- if (!M[c])
3306
- for (var me = 0; me <= c; me++)
3307
- M[me] || (M[me] = {});
3308
- (M[c].vx != Pe || M[c].vy != j || M[c].el !== y) && (M[c].el = y, M[c].vx = Pe, M[c].vy = j, clearInterval(M[c].pid), (Pe != 0 || j != 0) && (u = !0, M[c].pid = setInterval((function() {
3309
- n && this.layer === 0 && w.active._onTouchMove(At);
3310
- var he = M[this.layer].vy ? M[this.layer].vy * s : 0, ie = M[this.layer].vx ? M[this.layer].vx * s : 0;
3311
- typeof d == "function" && d.call(w.dragged.parentNode[Y], ie, he, e, At, M[this.layer].el) !== "continue" || Hn(M[this.layer].el, ie, he);
3312
- }).bind({
3313
- layer: c
3314
- }), 24))), c++;
3315
- } while (t.bubbleScroll && p !== l && (p = xe(p, !1)));
3316
- po = u;
3317
- }
3318
- }, 30), Zn = function(t) {
3319
- var o = t.originalEvent, n = t.putSortable, r = t.dragEl, a = t.activeSortable, i = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
3320
- if (o) {
3321
- var u = n || a;
3322
- s();
3323
- var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(d.clientX, d.clientY);
3324
- l(), u && !u.el.contains(c) && (i("spill"), this.onSpill({
3325
- dragEl: r,
3326
- putSortable: n
3327
- }));
3328
- }
3329
- };
3330
- function xo() {
3331
- }
3332
- xo.prototype = {
3333
- startIndex: null,
3334
- dragStart: function(t) {
3335
- var o = t.oldDraggableIndex;
3336
- this.startIndex = o;
3337
- },
3338
- onSpill: function(t) {
3339
- var o = t.dragEl, n = t.putSortable;
3340
- this.sortable.captureAnimationState(), n && n.captureAnimationState();
3341
- var r = Ge(this.sortable.el, this.startIndex, this.options);
3342
- r ? this.sortable.el.insertBefore(o, r) : this.sortable.el.appendChild(o), this.sortable.animateAll(), n && n.animateAll();
3343
- },
3344
- drop: Zn
3345
- };
3346
- ve(xo, {
3347
- pluginName: "revertOnSpill"
3348
- });
3349
- function ko() {
3350
- }
3351
- ko.prototype = {
3352
- onSpill: function(t) {
3353
- var o = t.dragEl, n = t.putSortable, r = n || this.sortable;
3354
- r.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), r.animateAll();
3355
- },
3356
- drop: Zn
3357
- };
3358
- ve(ko, {
3359
- pluginName: "removeOnSpill"
3360
- });
3361
- w.mount(new ki());
3362
- w.mount(ko, xo);
3363
- const Ii = "kSysConfig", ln = "kCookies_param", no = O.getItem(Ii), Qn = (e, t) => (e.forEach((o) => {
3364
- var n;
3365
- o.auth = t && t[o.code] || o.auth, o.name ? (no == null ? void 0 : no.i18nEnabled) === "Y" && !o.name.startsWith("message.") && (o.name = `message.btn.${o.name}`) : o.name = `message.btn.${o.code}`, (n = o.dropdowns) != null && n.length && Qn(o.dropdowns, t);
3366
- }), e), Fi = (e, t, o) => {
3367
- const n = { pageNum: 1, pageSize: 1e5 }, r = Io();
3368
- Object.assign(n, o, r, e.defaultParams || {});
3369
- let a = er(n, e.items);
3370
- a = tr(a, e.items);
3371
- const { url: i } = e;
3372
- if (!i) return null;
3373
- const s = Ye(i) ? i : i.fetch || i.restful;
3374
- if (!s) return null;
3375
- const l = i.fetch ? "post" : "get";
3376
- return new Promise((u, d) => {
3377
- t[l](s, a).then((c) => {
3378
- u(c.list);
3379
- }).catch((c) => {
3380
- d(c);
3381
- });
3382
- });
3383
- }, Pi = (e, t, o, n, r, a) => {
3384
- if (a) return zi();
3385
- for (const p in t)
3386
- t[p] && Ye(t[p]) && (t[p] = t[p].trim());
3387
- const i = { pageNum: o.currentPage, pageSize: o.pageSize }, s = Io();
3388
- Object.assign(i, s, e.defaultParams || {}, t);
3389
- let l = er(i, e.items);
3390
- l = tr(l, e.items);
3391
- const { url: u } = e;
3392
- if (!u) return null;
3393
- const d = Ye(u) ? u : u.fetch || u.restful, c = u.fetch ? "post" : "get";
3394
- return d ? n[c](d, l) : null;
3395
- }, _i = (e, t, o) => {
3396
- const { url: n } = o;
3397
- if (!n) return null;
3398
- const r = Ye(n) ? n : n.del || n.restful;
3399
- if (!r) return null;
3400
- const a = n.del ? "post" : "delete";
3401
- return e[a](r, t);
3402
- }, Oi = (e, t, o) => {
3403
- const n = [], { url: r } = o;
3404
- if (!r) return null;
3405
- const { insertRecords: a, updateRecords: i } = t;
3406
- if (!$e(a)) {
3407
- const s = Io();
3408
- a.forEach((u) => {
3409
- var d;
3410
- !$e(o == null ? void 0 : o.defaultValue) && Object.assign(u, o.defaultValue), (d = Object.keys(s)) == null || d.forEach((c) => {
3411
- u[c] = u[c] || s[c];
3412
- });
3413
- });
3414
- const l = Ye(r) ? r : r.add || r.restful;
3415
- l && n.push(e.post(l, a));
3416
- }
3417
- if (!$e(i)) {
3418
- const s = Ye(r) ? r : r.save || r.restful, l = r.save ? "post" : "put";
3419
- s && n.push(e[l](s, i));
3420
- }
3421
- return n;
3422
- }, er = (e, t) => {
3423
- const o = t.filter((r) => {
3424
- var a, i;
3425
- return ((i = (a = r.itemRender) == null ? void 0 : a.props) == null ? void 0 : i.multiple) || r.multiple;
3426
- });
3427
- if ($e(o)) return e;
3428
- const n = ee(e, !0);
3429
- return o.forEach((r) => {
3430
- var a;
3431
- r.itemRender.name === "#select" && r.itemRender.props.multiple && (((a = n[`_${r.field}`]) == null ? void 0 : a.length) === 0 && (n[`${r.field}`] = null), delete e[`_${r.field}`], delete n[`_${r.field}`]);
3432
- }), n;
3433
- }, un = "yyyy-MM-dd 00:00:00", cn = "yyyy-MM-dd 23:59:59", tr = (e, t) => {
3434
- const o = t.filter((r) => {
3435
- var a;
3436
- return ["#SuDateRange", "VxeDateRangePicker"].includes((a = r.itemRender) == null ? void 0 : a.name);
3437
- });
3438
- if ($e(o)) return e;
3439
- const n = ee(e, !0);
3440
- return o.forEach((r) => {
3441
- const a = n[r.field];
3442
- a && r.itemRender.startField ? (n[r.itemRender.startField] = B(n[r.itemRender.startField], un), n[r.itemRender.endField] = B(n[r.itemRender.endField], cn)) : a && (n[`${r.field}From`] = B(a[0], un), n[`${r.field}To`] = B(a[1], cn)), delete n[r.field];
3443
- }), n;
3444
- }, Io = () => Ae.get(ln) ? JSON.parse(Ae.get(ln)) : {}, Ni = [
3445
- {
3446
- code: "insert_actived",
3447
- name: "add",
3448
- status: "u-cyan",
3449
- icon: "vxe-icon-add",
3450
- auth: "add",
3451
- sort: 1
3452
- },
3453
- {
3454
- code: "delete",
3455
- status: "danger",
3456
- icon: "vxe-icon-delete",
3457
- auth: "del",
3458
- sort: 2
3459
- },
3460
- {
3461
- code: "save",
3462
- status: "primary",
3463
- icon: "vxe-icon-save",
3464
- auth: "edit",
3465
- sort: 3
3466
- }
3467
- ], Mi = [
3468
- {
3469
- code: "add",
3470
- status: "u-cyan",
3471
- icon: "vxe-icon-add",
3472
- auth: "add",
3473
- sort: 1
3474
- },
3475
- {
3476
- code: "del",
3477
- status: "danger",
3478
- icon: "vxe-icon-delete",
3479
- auth: "del",
3480
- sort: 2
3481
- }
3482
- ], Ri = [
3483
- { field: "createdByName", width: 90, visible: !1 },
3484
- { field: "creationDate", width: 140, visible: !1 },
3485
- { field: "lastUpdatedByName", width: 90, visible: !1 },
3486
- { field: "lastUpdateDate", width: 140, visible: !1 }
3487
- ], dn = (e) => Mr(e.exportConfig) ? e.exportConfig : {
3488
- filename: e.fileName || "导出明细",
3489
- type: "xlsx",
3490
- types: ["xlsx", "csv"],
3491
- modes: ["current", "selected", "all"],
3492
- useStyle: !0,
3493
- sheetMethod: ({ worksheet: t }) => e.onSheetMethod ? e.onSheetMethod(t) : Ui(t),
3494
- columnFilterMethod: ({ column: t }) => e.columnFilter ? !!e.columnFilter(t) : !["operate"].includes(t.field) && t.type !== "checkbox"
3495
- }, Ai = (e, t, o, n) => {
3496
- const r = {
3497
- icon: "ri-refresh-line",
3498
- iconLoading: "vxe-icon-spinner roll vxe-loading--default-icon"
3499
- };
3500
- if (!t.editable) {
3501
- e.editConfig.editable = t.editable;
3502
- const d = t.needExport && n("export");
3503
- return d && (e.exportConfig = dn(o)), e.toolbarConfig = {
3504
- buttons: [],
3505
- enabled: d,
3506
- refreshOptions: r,
3507
- exportOptions: { icon: "ri-download-2-line", code: "export" },
3508
- export: d,
3509
- custom: !!o.gridId,
3510
- refresh: !0,
3511
- perfect: !0
3512
- }, e;
3513
- }
3514
- let a = ee(o.buttons || [], !0);
3515
- a.forEach((d, c) => {
3516
- d.sort = d.sort || c + 10;
3517
- }), (o.mode !== "form" ? ee(Ni, !0) : ee(Mi, !0)).reverse().forEach((d) => {
3518
- !a.some((c) => c.code === d.code) && a.unshift(d), o.authPrefix && !["printer", "export"].includes(d.auth) && (d.auth = o.authPrefix + d.auth.slice(0, 1).toLocaleUpperCase() + d.auth.slice(1).toLocaleLowerCase());
3519
- }), a = Qn(a, t.auth).filter((d) => {
3520
- var p;
3521
- const c = d.auth ? n(d.auth) : !0;
3522
- return (p = d.dropdowns) != null && p.length && (d.dropdowns = d.dropdowns.filter((y) => !y.auth || y.auth && n(y.auth))), c;
3523
- });
3524
- const s = { trigger: "dblclick", mode: "row", showStatus: !0 };
3525
- e.editConfig = o.mode !== "form" ? s : { enabled: !1 };
3526
- const l = t.needExport && n("export");
3527
- let u = null;
3528
- return l && (e.exportConfig = dn(o), u = { icon: "ri-download-2-line", code: "export" }), e.toolbarConfig = {
3529
- buttons: Nr(a, "sort"),
3530
- enabled: !0,
3531
- refreshOptions: r,
3532
- customOptions: o.gridId ? {} : null,
3533
- exportOptions: u,
3534
- custom: !!o.gridId,
3535
- export: l,
3536
- refresh: !0,
3537
- perfect: !0
3538
- }, e;
3539
- }, Li = ({ columns: e, data: t }, o) => [
3540
- e.map((n, r) => {
3541
- var a;
3542
- if (r === (o.index || 0))
3543
- return o.label || "合计";
3544
- if ((a = o.fields) != null && a.includes(n.property)) {
3545
- const i = t.reduce((s, l) => s + Number(l[n.property] || 0), 0);
3546
- return i && Number(i.toFixed(o.decimal || 2));
3547
- }
3548
- return "";
3549
- })
3550
- ], Bi = (e, t) => Or(t.checkMethod) ? t.checkMethod(e) : !0, Ui = (e) => {
3551
- e.eachRow((t, o) => {
3552
- t.font = { name: "微软雅黑", size: 9 }, t.border = {
3553
- top: { style: "thin" },
3554
- left: { style: "thin" },
3555
- bottom: { style: "thin" },
3556
- right: { style: "thin" }
3557
- }, o === 1 && (t.fill = {
3558
- type: "pattern",
3559
- pattern: "solid",
3560
- fgColor: { argb: "4F81BD" }
3561
- }, t.font = {
3562
- name: "微软雅黑",
3563
- size: 10,
3564
- bold: !0,
3565
- color: { argb: "FFFFFFFF" }
3566
- });
3567
- });
3568
- }, zi = () => new Promise((e) => {
3569
- setTimeout(() => {
3570
- e({ list: [
3571
- { id: 1, name: "Test1", sex: "Man", age: 28, address: "Shenzhen" },
3572
- { id: 2, name: "Test2", sex: "Women", age: 22, address: "Guangzhou" },
3573
- { id: 3, name: "Test3", sex: "Man", age: 32, address: "Shanghai" },
3574
- { id: 4, name: "Test4", sex: "Women", age: 23, address: "test abc" },
3575
- { id: 5, name: "Test5", sex: "Women", age: 30, address: "Shanghai" }
3576
- ], total: 5 });
3577
- }, 100);
3578
- }), ji = (e) => {
3579
- const t = {};
3580
- return Object.keys(e).forEach((o) => {
3581
- const n = o.replace(/-(\w)/g, (r) => r.slice(1).toUpperCase());
3582
- t[n] = e[o];
3583
- }), t;
3584
- }, qi = { style: { width: "100%", height: "100%" } }, fn = "U_TABLE_COLUMNN_SORT", $i = /* @__PURE__ */ ke({
3585
- name: "UtGrid",
3586
- __name: "index",
3587
- props: {
3588
- checkMethod: {},
3589
- serviceCode: { default: () => ({}) },
3590
- defaultValue: {},
3591
- defaultParams: {},
3592
- url: {},
3593
- columns: { default: () => [] },
3594
- items: { default: () => [] },
3595
- editable: { type: Boolean, default: !0 },
3596
- needExport: { type: Boolean, default: !0 },
3597
- autoLoad: { type: Boolean, default: !0 }
3598
- },
3599
- emits: ["buttonClick", "cellClick", "cellDbclick", "editEctivated"],
3600
- setup(e, { expose: t, emit: o }) {
3601
- const n = ji(ur());
3602
- let r;
3603
- const a = {}, i = cr(), s = i.appContext.config.globalProperties.$hasAuthority, l = i.appContext.config.globalProperties.$serviceApi, u = i.parent.type.name, d = i.appContext.config.globalProperties.$mode, c = e, { t: p } = Bt(), y = Re(null), v = Re(!1), m = {
3604
- icon: "vxe-icon-setting",
3605
- name: "favorite",
3606
- events: {
3607
- click: (g, k) => {
3608
- k.name === "favorite" && (v.value = !0);
3609
- }
3610
- }
3611
- }, h = () => c.columns.length ? lo(c.columns, p) : {}, x = () => {
3612
- const g = c.columns;
3613
- if (n.gridId) {
3614
- const F = Ri.filter((L) => !g.some((te) => te.field === L.field)).map((L) => (n.format && ["lastUpdateDate", "creationDate"].includes(L.field) && (L.formatter = n.format, L.width = 90), L)), A = g.findIndex((L) => L.field === "operate");
3615
- A !== -1 ? g.splice(A, 0, ...F) : g.push(...F);
3616
- }
3617
- const k = n.gridId ? I(g) : g;
3618
- return Sr(k, n.sortable);
3619
- };
3620
- tt.getItem(fn).then((g) => {
3621
- r = g, C.columns = x();
3622
- });
3623
- const C = dr({
3624
- border: !0,
3625
- pagerConfig: { pageSize: n.pageSize || 20 },
3626
- editConfig: {},
3627
- editRules: h(),
3628
- formConfig: {},
3629
- columnConfig: { useKey: !0 },
3630
- toolbarConfig: { enabled: !1 },
3631
- sortConfig: { multiple: !0, trigger: "cell" },
3632
- height: d ? void 0 : window.innerHeight - 92,
3633
- checkboxConfig: {
3634
- checkMethod: ({ row: g }) => Bi(g, c),
3635
- checkRowKeys: c.checkRowKeys
3636
- },
3637
- loading: !1,
3638
- footerRowClassName: "ut-grid-footer",
3639
- proxyConfig: {
3640
- form: !0,
3641
- // 查询是需要启用表单代理
3642
- autoLoad: c.autoLoad,
3643
- showResponseMsgvxe: !1,
3644
- showActionMsgvxe: !1,
3645
- // 接收 Promise
3646
- ajax: {
3647
- queryAll: ({ form: g }) => Fi(c, l, g),
3648
- query: ({ page: g, form: k, code: F }) => Pi(c, k, g, l, F, d),
3649
- delete: ({ body: { removeRecords: g } }) => _i(l, g, c),
3650
- save: ({ body: g }) => Promise.all(Oi(l, g, c)),
3651
- querySuccess: ({ response: g }) => j("querySuccess", g),
3652
- queryError: ({ response: g }) => j("queryError", g),
3653
- deleteSuccess: ({ response: g }) => j("deleteSuccess", g),
3654
- deleteError: ({ response: g }) => j("deleteError", g),
3655
- saveSuccess: ({ response: g }) => j("saveSuccess", g),
3656
- saveError: ({ response: g }) => j("saveError", g)
3657
- }
3658
- },
3659
- columns: n.gridId ? [] : x(),
3660
- ...n
3661
- }), T = () => c.items.length ? Tr(ee(c.items, !0), u && c.url ? m : u) : c.items;
3662
- function I(g) {
3663
- const k = r ? r[n.gridId] : {};
3664
- return k ? g.map((F, A) => {
3665
- const L = (A + 1) * 10;
3666
- return F._sort = k[F.field] || L, a[F.field] = F._sort, F;
3667
- }).sort((F, A) => F._sort - A._sort) : g;
3668
- }
3669
- const re = () => {
3670
- c.items.length && (C.formConfig = {
3671
- titleWidth: 100,
3672
- titleAlign: "right",
3673
- items: T(),
3674
- rules: lo(c.items, p),
3675
- validConfig: { showMessage: !1 }
3676
- });
3677
- const g = Ai(C, c, n, s);
3678
- Object.assign(C, g), n.gridId && (C.id = n.gridId, C.customConfig = {
3679
- storage: !0,
3680
- mode: "popup",
3681
- checkMethod({ column: k }) {
3682
- return !(k.field === "operate" || ["checkbox", "radio"].includes(k.type));
3683
- },
3684
- modalOptions: {
3685
- width: 750,
3686
- height: "75%"
3687
- }
3688
- }), n.mergeFooter && (C.showFooter = !0, C.footerMethod = ({ columns: k, data: F }) => Li({ columns: k, data: F }, n.mergeFooter));
3689
- }, Z = () => {
3690
- y.value.commitProxy("query");
3691
- }, fe = () => (C.editRules = h(), y.value.refreshColumn()), Ie = () => {
3692
- C.loading = !0;
3693
- }, H = () => {
3694
- C.loading = !1;
3695
- }, Fe = () => so(y.value), ae = () => y.value.getTableData().fullData, Pe = (g = !1) => {
3696
- const k = c.columns[0].type, F = k === "radio" ? y.value.getRadioRecord(g) : y.value.getCheckboxRecords(g);
3697
- return k === "checkbox" && !F.length ? (jo(p("message.tip_selectedRecord")), []) : k === "radio" && !F ? (jo(p("message.tip_selectedRecord")), null) : F;
3698
- }, j = (g, k) => {
3699
- n != null && n.callback && (n != null && n.callback[g]) && (n == null || n.callback[g](k));
3700
- }, me = (g) => {
3701
- const k = g.data;
3702
- c.items.filter((A) => {
3703
- var L, te;
3704
- return (te = (L = A.itemRender) == null ? void 0 : L.props) == null ? void 0 : te.multiple;
3705
- }).forEach((A) => {
3706
- A.itemRender.props.defaultValue ? k[`_${A.field}`] = A.itemRender.props.defaultValue.split(",") : k[`_${A.field}`] = [];
3707
- });
3708
- };
3709
- let he;
3710
- const ie = () => {
3711
- const g = y.value;
3712
- he = w.create(g.$el.querySelector(".vxe-table--header .vxe-header--row"), {
3713
- disabled: !n.gridId,
3714
- handle: ".vxe-header--column",
3715
- onEnd: async (k) => {
3716
- const F = k.item, A = k.newIndex, L = k.oldIndex, { fullColumn: te, tableColumn: No } = g.getTableColumn(), Ht = F.parentNode, ir = te[A], Mo = te[L];
3717
- let gt = !1, Wt = "固定列";
3718
- if (ir.fixed ? gt = !1 : A === 0 || ["checkbox", "radio"].includes(Mo.type) ? (Wt = "勾选列", gt = !0) : (Mo.field === "operate" || A === te.length - 1) && (gt = !0, Wt = "操作列"), gt) {
3719
- const Ee = Ht.children[L];
3720
- return A > L ? Ht.insertBefore(F, Ee) : Ht.insertBefore(F, Ee && Ee.nextElementSibling), Dr(Wt + "不允许拖动!");
3721
- }
3722
- const Vt = g.getColumnIndex(No[L]), Yt = g.getColumnIndex(No[A]), Ro = te.splice(Vt, 1)[0];
3723
- te.splice(Yt, 0, Ro);
3724
- const Je = Yt - Vt > 0 ? 1 : -1, Ao = (Yt + 1) * 10, Lo = (Vt + 1) * 10, Bo = Ao + 1 * Je;
3725
- for (const Ee in a) {
3726
- const Le = a[Ee];
3727
- (Je > 0 && Le < Bo && Le > Lo || Je < 0 && Le > Bo && Le < Lo) && (a[Ee] = Le - 10 * Je);
3728
- }
3729
- a[Ro.field] = Ao, tt.setItem(fn, { [n.gridId]: a }), g.loadColumn(te);
3730
- }
3731
- });
3732
- };
3733
- t({
3734
- getTableData: ae,
3735
- getSelectRecords: Pe,
3736
- refreshData: Z,
3737
- refreshColumn: fe,
3738
- getInstance: Fe,
3739
- showLoading: Ie,
3740
- hiddenLoading: H,
3741
- reloadGrid: () => {
3742
- re();
3743
- }
3744
- });
3745
- const we = ({ code: g }) => {
3746
- pt("buttonClick", g);
3747
- }, qt = (g) => {
3748
- pt("cellClick", g);
3749
- }, _o = (g) => {
3750
- pt("cellDbclick", g);
3751
- }, ht = (g) => {
3752
- pt("editEctivated", g);
3753
- }, $t = () => {
3754
- window.onresize = () => (() => {
3755
- let g = (n == null ? void 0 : n.height) || window.innerHeight - 90;
3756
- n.mode !== "inline" && !(n != null && n.height) && (g = window.innerHeight - 180), C.height = g < 240 ? 240 : g;
3757
- })();
3758
- };
3759
- let Oo;
3760
- fr(() => {
3761
- Oo = setTimeout(() => {
3762
- ie();
3763
- }, 500);
3764
- }), mr(() => {
3765
- clearTimeout(Oo), he && he.destroy();
3766
- }), hr(() => {
3767
- re(), $t();
3768
- });
3769
- const pt = o;
3770
- return (g, k) => {
3771
- const F = Ve("vxe-grid");
3772
- return vo(), Sn("div", qi, [
3773
- st(F, Dn({
3774
- ref_key: "xgrid",
3775
- ref: y
3776
- }, C, { class: "ut-grid-wrapper" }, pr(gr(n).events || {}), {
3777
- onToolbarButtonClick: we,
3778
- onToolbarToolClick: we,
3779
- onCellClick: qt,
3780
- onCellDblclick: _o,
3781
- onEditActivated: ht,
3782
- onFormReset: me
3783
- }), null, 16)
3784
- ]);
3785
- };
3786
- }
3787
- }), Hi = { class: "width: 100%" }, Wi = {
3788
- name: "UtForm"
3789
- }, Vi = /* @__PURE__ */ ke({
3790
- ...Wi,
3791
- props: {
3792
- record: { default: () => ({}) },
3793
- items: { default: () => [] },
3794
- loading: { type: Boolean, default: !1 },
3795
- vertical: { type: Boolean, default: !1 },
3796
- titleWidth: { default: 100 },
3797
- span: { default: 6 },
3798
- dataStatus: { default: "detail" }
3799
- },
3800
- setup(e, { expose: t }) {
3801
- const o = e, n = Re(void 0), { t: r } = Bt(), a = Re(!0), i = Pt(() => o.items.length ? lo(o.items, r) : {}), s = Pt(() => o.items.length ? xr(ee(o.items, !0), o.dataStatus, 6) : o.items), l = () => {
3802
- n.value.toggleCollapse();
3803
- };
3804
- return t({
3805
- validateForm: (c) => {
3806
- n.value.validate(c);
3807
- },
3808
- validate: (c) => {
3809
- n.value.validate(c), setTimeout(() => {
3810
- n.value.clearValidate();
3811
- }, 1600);
3812
- }
3813
- }), (c, p) => {
3814
- const y = Ve("vxe-checkbox"), v = Ve("vxe-form");
3815
- return vo(), Sn("div", Hi, [
3816
- st(v, Dn({
3817
- ref_key: "xForm",
3818
- ref: n,
3819
- data: c.record,
3820
- items: s.value,
3821
- rules: i.value,
3822
- loading: c.loading,
3823
- vertical: c.vertical,
3824
- "title-width": c.titleWidth,
3825
- "title-overflow": "",
3826
- "title-align": "right",
3827
- "title-bold": ""
3828
- }, c.$attrs), {
3829
- dividerPrefix: io(() => p[1] || (p[1] = [])),
3830
- collapseNode: io(() => [
3831
- st(y, {
3832
- modelValue: a.value,
3833
- "onUpdate:modelValue": p[0] || (p[0] = (m) => a.value = m),
3834
- content: "查看更多",
3835
- "checked-value": !1,
3836
- "unchecked-value": !0,
3837
- class: "pl-10",
3838
- onChange: l
3839
- }, null, 8, ["modelValue"])
3840
- ]),
3841
- _: 1
3842
- }, 16, ["data", "items", "rules", "loading", "vertical", "title-width"])
3843
- ]);
3844
- };
3845
- }
3846
- }), or = Object.freeze(
3847
- {
3848
- left: 0,
3849
- top: 0,
3850
- width: 16,
3851
- height: 16
3852
- }
3853
- ), Lt = Object.freeze({
3854
- rotate: 0,
3855
- vFlip: !1,
3856
- hFlip: !1
3857
- }), Fo = Object.freeze({
3858
- ...or,
3859
- ...Lt
3860
- }), go = Object.freeze({
3861
- ...Fo,
3862
- body: "",
3863
- hidden: !1
3864
- });
3865
- function Yi(e, t) {
3866
- const o = {};
3867
- !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
3868
- const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
3869
- return n && (o.rotate = n), o;
3870
- }
3871
- function mn(e, t) {
3872
- const o = Yi(e, t);
3873
- for (const n in go)
3874
- n in Lt ? n in e && !(n in o) && (o[n] = Lt[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
3875
- return o;
3876
- }
3877
- function Gi(e, t) {
3878
- const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
3879
- function a(i) {
3880
- if (o[i])
3881
- return r[i] = [];
3882
- if (!(i in r)) {
3883
- r[i] = null;
3884
- const s = n[i] && n[i].parent, l = s && a(s);
3885
- l && (r[i] = [s].concat(l));
3886
- }
3887
- return r[i];
3888
- }
3889
- return Object.keys(o).concat(Object.keys(n)).forEach(a), r;
3890
- }
3891
- function Xi(e, t, o) {
3892
- const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
3893
- let a = {};
3894
- function i(s) {
3895
- a = mn(
3896
- n[s] || r[s],
3897
- a
3898
- );
3899
- }
3900
- return i(t), o.forEach(i), mn(e, a);
3901
- }
3902
- function Ki(e, t) {
3903
- const o = [];
3904
- if (typeof e != "object" || typeof e.icons != "object")
3905
- return o;
3906
- e.not_found instanceof Array && e.not_found.forEach((r) => {
3907
- t(r, null), o.push(r);
3908
- });
3909
- const n = Gi(e);
3910
- for (const r in n) {
3911
- const a = n[r];
3912
- a && (t(r, Xi(e, r, a)), o.push(r));
3913
- }
3914
- return o;
3915
- }
3916
- const Ji = {
3917
- provider: "",
3918
- aliases: {},
3919
- not_found: {},
3920
- ...or
3921
- };
3922
- function ro(e, t) {
3923
- for (const o in t)
3924
- if (o in e && typeof e[o] != typeof t[o])
3925
- return !1;
3926
- return !0;
3927
- }
3928
- function Zi(e) {
3929
- if (typeof e != "object" || e === null)
3930
- return null;
3931
- const t = e;
3932
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ro(e, Ji))
3933
- return null;
3934
- const o = t.icons;
3935
- for (const r in o) {
3936
- const a = o[r];
3937
- if (
3938
- // Name cannot be empty
3939
- !r || // Must have body
3940
- typeof a.body != "string" || // Check other props
3941
- !ro(
3942
- a,
3943
- go
3944
- )
3945
- )
3946
- return null;
3947
- }
3948
- const n = t.aliases || /* @__PURE__ */ Object.create(null);
3949
- for (const r in n) {
3950
- const a = n[r], i = a.parent;
3951
- if (
3952
- // Name cannot be empty
3953
- !r || // Parent must be set and point to existing icon
3954
- typeof i != "string" || !o[i] && !n[i] || // Check other props
3955
- !ro(
3956
- a,
3957
- go
3958
- )
3959
- )
3960
- return null;
3961
- }
3962
- return t;
3963
- }
3964
- const nr = Object.freeze({
3965
- width: null,
3966
- height: null
3967
- }), rr = Object.freeze({
3968
- // Dimensions
3969
- ...nr,
3970
- // Transformations
3971
- ...Lt
3972
- });
3973
- function Qi(e, t) {
3974
- const o = {
3975
- ...e
3976
- };
3977
- for (const n in t) {
3978
- const r = t[n], a = typeof r;
3979
- n in nr ? (r === null || r && (a === "string" || a === "number")) && (o[n] = r) : a === typeof o[n] && (o[n] = n === "rotate" ? r % 4 : r);
3980
- }
3981
- return o;
3982
- }
3983
- const es = /[\s,]+/;
3984
- function ts(e, t) {
3985
- t.split(es).forEach((o) => {
3986
- switch (o.trim()) {
3987
- case "horizontal":
3988
- e.hFlip = !0;
3989
- break;
3990
- case "vertical":
3991
- e.vFlip = !0;
3992
- break;
3993
- }
3994
- });
3995
- }
3996
- function os(e, t = 0) {
3997
- const o = e.replace(/^-?[0-9.]*/, "");
3998
- function n(r) {
3999
- for (; r < 0; )
4000
- r += 4;
4001
- return r % 4;
4002
- }
4003
- if (o === "") {
4004
- const r = parseInt(e);
4005
- return isNaN(r) ? 0 : n(r);
4006
- } else if (o !== e) {
4007
- let r = 0;
4008
- switch (o) {
4009
- case "%":
4010
- r = 25;
4011
- break;
4012
- case "deg":
4013
- r = 90;
4014
- }
4015
- if (r) {
4016
- let a = parseFloat(e.slice(0, e.length - o.length));
4017
- return isNaN(a) ? 0 : (a = a / r, a % 1 === 0 ? n(a) : 0);
4018
- }
4019
- }
4020
- return t;
4021
- }
4022
- const ns = /(-?[0-9.]*[0-9]+[0-9.]*)/g, rs = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
4023
- function hn(e, t, o) {
4024
- if (t === 1)
4025
- return e;
4026
- if (o = o || 100, typeof e == "number")
4027
- return Math.ceil(e * t * o) / o;
4028
- if (typeof e != "string")
4029
- return e;
4030
- const n = e.split(ns);
4031
- if (n === null || !n.length)
4032
- return e;
4033
- const r = [];
4034
- let a = n.shift(), i = rs.test(a);
4035
- for (; ; ) {
4036
- if (i) {
4037
- const s = parseFloat(a);
4038
- isNaN(s) ? r.push(a) : r.push(Math.ceil(s * t * o) / o);
4039
- } else
4040
- r.push(a);
4041
- if (a = n.shift(), a === void 0)
4042
- return r.join("");
4043
- i = !i;
4044
- }
4045
- }
4046
- function as(e, t = "defs") {
4047
- let o = "";
4048
- const n = e.indexOf("<" + t);
4049
- for (; n >= 0; ) {
4050
- const r = e.indexOf(">", n), a = e.indexOf("</" + t);
4051
- if (r === -1 || a === -1)
4052
- break;
4053
- const i = e.indexOf(">", a);
4054
- if (i === -1)
4055
- break;
4056
- o += e.slice(r + 1, a).trim(), e = e.slice(0, n).trim() + e.slice(i + 1);
4057
- }
4058
- return {
4059
- defs: o,
4060
- content: e
4061
- };
4062
- }
4063
- function is(e, t) {
4064
- return e ? "<defs>" + e + "</defs>" + t : t;
4065
- }
4066
- function ss(e, t, o) {
4067
- const n = as(e);
4068
- return is(n.defs, t + n.content + o);
4069
- }
4070
- const ls = (e) => e === "unset" || e === "undefined" || e === "none";
4071
- function us(e, t) {
4072
- const o = {
4073
- ...Fo,
4074
- ...e
4075
- }, n = {
4076
- ...rr,
4077
- ...t
4078
- }, r = {
4079
- left: o.left,
4080
- top: o.top,
4081
- width: o.width,
4082
- height: o.height
4083
- };
4084
- let a = o.body;
4085
- [o, n].forEach((m) => {
4086
- const h = [], x = m.hFlip, C = m.vFlip;
4087
- let T = m.rotate;
4088
- x ? C ? T += 2 : (h.push(
4089
- "translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
4090
- ), h.push("scale(-1 1)"), r.top = r.left = 0) : C && (h.push(
4091
- "translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
4092
- ), h.push("scale(1 -1)"), r.top = r.left = 0);
4093
- let I;
4094
- switch (T < 0 && (T -= Math.floor(T / 4) * 4), T = T % 4, T) {
4095
- case 1:
4096
- I = r.height / 2 + r.top, h.unshift(
4097
- "rotate(90 " + I.toString() + " " + I.toString() + ")"
4098
- );
4099
- break;
4100
- case 2:
4101
- h.unshift(
4102
- "rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
4103
- );
4104
- break;
4105
- case 3:
4106
- I = r.width / 2 + r.left, h.unshift(
4107
- "rotate(-90 " + I.toString() + " " + I.toString() + ")"
4108
- );
4109
- break;
4110
- }
4111
- T % 2 === 1 && (r.left !== r.top && (I = r.left, r.left = r.top, r.top = I), r.width !== r.height && (I = r.width, r.width = r.height, r.height = I)), h.length && (a = ss(
4112
- a,
4113
- '<g transform="' + h.join(" ") + '">',
4114
- "</g>"
4115
- ));
4116
- });
4117
- const i = n.width, s = n.height, l = r.width, u = r.height;
4118
- let d, c;
4119
- i === null ? (c = s === null ? "1em" : s === "auto" ? u : s, d = hn(c, l / u)) : (d = i === "auto" ? l : i, c = s === null ? hn(d, u / l) : s === "auto" ? u : s);
4120
- const p = {}, y = (m, h) => {
4121
- ls(h) || (p[m] = h.toString());
4122
- };
4123
- y("width", d), y("height", c);
4124
- const v = [r.left, r.top, l, u];
4125
- return p.viewBox = v.join(" "), {
4126
- attributes: p,
4127
- viewBox: v,
4128
- body: a
4129
- };
4130
- }
4131
- const cs = /\sid="(\S+)"/g, ds = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
4132
- let fs = 0;
4133
- function ms(e, t = ds) {
4134
- const o = [];
4135
- let n;
4136
- for (; n = cs.exec(e); )
4137
- o.push(n[1]);
4138
- if (!o.length)
4139
- return e;
4140
- const r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
4141
- return o.forEach((a) => {
4142
- const i = typeof t == "function" ? t(a) : t + (fs++).toString(), s = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4143
- e = e.replace(
4144
- // Allowed characters before id: [#;"]
4145
- // Allowed characters after id: [)"], .[a-z]
4146
- new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
4147
- "$1" + i + r + "$3"
4148
- );
4149
- }), e = e.replace(new RegExp(r, "g"), ""), e;
4150
- }
4151
- function hs(e, t) {
4152
- let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
4153
- for (const n in t)
4154
- o += " " + n + '="' + t[n] + '"';
4155
- return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
4156
- }
4157
- function ps(e) {
4158
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
4159
- }
4160
- function gs(e) {
4161
- return "data:image/svg+xml," + ps(e);
4162
- }
4163
- function ys(e) {
4164
- return 'url("' + gs(e) + '")';
4165
- }
4166
- const pn = {
4167
- ...rr,
4168
- inline: !1
4169
- }, vs = {
4170
- xmlns: "http://www.w3.org/2000/svg",
4171
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
4172
- "aria-hidden": !0,
4173
- role: "img"
4174
- }, bs = {
4175
- display: "inline-block"
4176
- }, yo = {
4177
- backgroundColor: "currentColor"
4178
- }, ar = {
4179
- backgroundColor: "transparent"
4180
- }, gn = {
4181
- Image: "var(--svg)",
4182
- Repeat: "no-repeat",
4183
- Size: "100% 100%"
4184
- }, yn = {
4185
- webkitMask: yo,
4186
- mask: yo,
4187
- background: ar
4188
- };
4189
- for (const e in yn) {
4190
- const t = yn[e];
4191
- for (const o in gn)
4192
- t[e + o] = gn[o];
4193
- }
4194
- const Ft = {};
4195
- ["horizontal", "vertical"].forEach((e) => {
4196
- const t = e.slice(0, 1) + "Flip";
4197
- Ft[e + "-flip"] = t, Ft[e.slice(0, 1) + "-flip"] = t, Ft[e + "Flip"] = t;
4198
- });
4199
- function vn(e) {
4200
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
4201
- }
4202
- const ws = (e, t) => {
4203
- const o = Qi(pn, t), n = { ...vs }, r = t.mode || "svg", a = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
4204
- for (let m in t) {
4205
- const h = t[m];
4206
- if (h !== void 0)
4207
- switch (m) {
4208
- // Properties to ignore
4209
- case "icon":
4210
- case "style":
4211
- case "onLoad":
4212
- case "mode":
4213
- case "ssr":
4214
- break;
4215
- // Boolean attributes
4216
- case "inline":
4217
- case "hFlip":
4218
- case "vFlip":
4219
- o[m] = h === !0 || h === "true" || h === 1;
4220
- break;
4221
- // Flip as string: 'horizontal,vertical'
4222
- case "flip":
4223
- typeof h == "string" && ts(o, h);
4224
- break;
4225
- // Color: override style
4226
- case "color":
4227
- a.color = h;
4228
- break;
4229
- // Rotation as string
4230
- case "rotate":
4231
- typeof h == "string" ? o[m] = os(h) : typeof h == "number" && (o[m] = h);
4232
- break;
4233
- // Remove aria-hidden
4234
- case "ariaHidden":
4235
- case "aria-hidden":
4236
- h !== !0 && h !== "true" && delete n["aria-hidden"];
4237
- break;
4238
- default: {
4239
- const x = Ft[m];
4240
- x ? (h === !0 || h === "true" || h === 1) && (o[x] = !0) : pn[m] === void 0 && (n[m] = h);
4241
- }
4242
- }
4243
- }
4244
- const l = us(e, o), u = l.attributes;
4245
- if (o.inline && (a.verticalAlign = "-0.125em"), r === "svg") {
4246
- n.style = {
4247
- ...a,
4248
- ...s
4249
- }, Object.assign(n, u);
4250
- let m = 0, h = t.id;
4251
- return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML = ms(l.body, h ? () => h + "ID" + m++ : "iconifyVue"), Te("svg", n);
4252
- }
4253
- const { body: d, width: c, height: p } = e, y = r === "mask" || (r === "bg" ? !1 : d.indexOf("currentColor") !== -1), v = hs(d, {
4254
- ...u,
4255
- width: c + "",
4256
- height: p + ""
4257
- });
4258
- return n.style = {
4259
- ...a,
4260
- "--svg": ys(v),
4261
- width: vn(u.width),
4262
- height: vn(u.height),
4263
- ...bs,
4264
- ...y ? yo : ar,
4265
- ...s
4266
- }, Te("span", n);
4267
- }, Po = /* @__PURE__ */ Object.create(null);
4268
- function Es(e, t) {
4269
- Po[e] = t;
4270
- }
4271
- function rl(e, t) {
4272
- const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
4273
- Zi(e) && Ki(e, (n, r) => {
4274
- r && (Po[o + n] = r);
4275
- });
4276
- }
4277
- const bn = ke({
4278
- // Do not inherit other attributes: it is handled by render()
4279
- inheritAttrs: !1,
4280
- // Render icon
4281
- render() {
4282
- const e = this.$attrs, t = e.icon, o = typeof t == "string" ? Po[t] : typeof t == "object" ? t : null;
4283
- return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : ws({
4284
- ...Fo,
4285
- ...o
4286
- }, e);
4287
- }
4288
- }), Cs = ke({
4289
- name: "IconOffline",
4290
- components: { IconifyIcon: bn },
4291
- props: {
4292
- icon: {
4293
- default: null
4294
- }
4295
- },
4296
- render() {
4297
- typeof this.icon == "object" && Es(this.icon, this.icon);
4298
- const e = this.$attrs;
4299
- return Te(
4300
- bn,
4301
- {
4302
- icon: this.icon,
4303
- style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4304
- ...e
4305
- },
4306
- {
4307
- default: () => []
4308
- }
4309
- );
4310
- }
4311
- });
4312
- ke({
4313
- name: "IconifyIconOnline",
4314
- components: { IconifyIcon: $o },
4315
- props: {
4316
- icon: {
4317
- type: String,
4318
- default: ""
4319
- }
4320
- },
4321
- render() {
4322
- const e = this.$attrs;
4323
- return Te(
4324
- $o,
4325
- {
4326
- icon: `${this.icon}`,
4327
- style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4328
- ...e
4329
- },
4330
- {
4331
- default: () => []
4332
- }
4333
- );
4334
- }
4335
- });
4336
- const Ss = ke({
4337
- name: "FontIcon",
4338
- props: {
4339
- icon: {
4340
- type: String,
4341
- default: ""
4342
- }
4343
- },
4344
- render() {
4345
- const e = this.$attrs;
4346
- return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? Te(
4347
- "i",
4348
- {
4349
- class: "iconfont",
4350
- ...e
4351
- },
4352
- this.icon
4353
- ) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? Te(
4354
- "svg",
4355
- {
4356
- class: "icon-svg",
4357
- "aria-hidden": !0
4358
- },
4359
- {
4360
- default: () => [
4361
- Te("use", {
4362
- "xlink:href": `#${this.icon}`
4363
- })
4364
- ]
4365
- }
4366
- ) : Te("i", {
4367
- class: `iconfont ${this.icon}`,
4368
- ...e
4369
- });
4370
- }
4371
- }), Ds = Cs, Ts = Ss, xs = {
4372
- mounted(e, t) {
4373
- var n;
4374
- const { value: o } = t;
4375
- if (o) {
4376
- const a = `${(n = U.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
4377
- J().getButtonAuth.includes(a) || e.parentNode.removeChild(e);
4378
- } else
4379
- throw new Error(`need roles! Like v-auth="['admin','test']"`);
4380
- }
4381
- };
4382
- function ks(e) {
4383
- return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
4384
- var n = e.get(t);
4385
- n ? n.push(o) : e.set(t, [o]);
4386
- }, off: function(t, o) {
4387
- var n = e.get(t);
4388
- n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
4389
- }, emit: function(t, o) {
4390
- var n = e.get(t);
4391
- n && n.slice().map(function(r) {
4392
- r(o);
4393
- }), (n = e.get("*")) && n.slice().map(function(r) {
4394
- r(t, o);
4395
- });
4396
- } };
4397
- }
4398
- const Is = ks(), wn = Br({
4399
- strategy: "scroll"
4400
- }), Fs = {
4401
- mounted(e, t, o) {
4402
- wn.listenTo(e, (n) => {
4403
- const r = n.offsetWidth, a = n.offsetHeight;
4404
- t != null && t.instance ? Is.emit("resize", { detail: { width: r, height: a } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: r, height: a } }));
4405
- });
4406
- },
4407
- unmounted(e) {
4408
- wn.uninstall(e);
4409
- }
4410
- }, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4411
- __proto__: null,
4412
- auth: xs,
4413
- resize: Fs
4414
- }, Symbol.toStringTag, { value: "Module" })), X = yr(ea);
4415
- X.use(Lr, {
4416
- defaultProps: { animation: "perspective" }
4417
- });
4418
- const Ps = (e) => {
4419
- e.config.globalProperties.$hasAuthority = oi, e.config.globalProperties.$serviceApi = Ut(), e.config.globalProperties.$url = ge(), window.$i18n = On;
4420
- }, _s = (e) => {
4421
- Object.keys(En).forEach((t) => {
4422
- e.directive(t, En[t]);
4423
- });
4424
- }, al = ({ router: e, config: t, lang: o, views: n, env: r, tableConfig: a }) => (ja(n, e), X.use(e), Gr(e), Vr(X, t), Yr(r), Wa(a), new Promise((i) => {
4425
- ya(X, o), X.component("IconifyIconOffline", Ds), X.component("FontIcon", Ts), X.component("UtGrid2", $i), X.component("UtForm2", Vi), Ps(X), Xr(ge()), _s(X), ta(X), ti(X, t), i({ app: X, router: e });
4426
- }));
4427
- function Os() {
4428
- const { $storage: e, $config: t } = xn(), o = () => {
4429
- Bn().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = ct), e != null && e.locale || (Bt().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
4430
- layout: (t == null ? void 0 : t.Layout) ?? "vertical",
4431
- theme: (t == null ? void 0 : t.Theme) ?? "default",
4432
- darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
4433
- sidebarStatus: (t == null ? void 0 : t.SidebarStatus) ?? !0,
4434
- epThemeColor: (t == null ? void 0 : t.EpThemeColor) ?? "#409EFF",
4435
- overallStyle: (t == null ? void 0 : t.OverallStyle) ?? "light"
4436
- }), e && !(e != null && e.configure) && (e.configure = {
4437
- grey: (t == null ? void 0 : t.Grey) ?? !1,
4438
- weak: (t == null ? void 0 : t.Weak) ?? !1,
4439
- hideTabs: (t == null ? void 0 : t.HideTabs) ?? !1,
4440
- showLogo: (t == null ? void 0 : t.ShowLogo) ?? !0,
4441
- showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
4442
- multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
4443
- });
4444
- }, n = Pt(() => e == null ? void 0 : e.layout.layout), r = Pt(() => e == null ? void 0 : e.layout);
4445
- return {
4446
- layout: n,
4447
- layoutTheme: r,
4448
- initStorage: o
4449
- };
4450
- }
4451
- const Ns = ut("udp-app", {
4452
- state: () => {
4453
- var e, t;
4454
- return {
4455
- sidebar: {
4456
- opened: ((e = O.getItem(`${$()}layout`)) == null ? void 0 : e.sidebarStatus) ?? le().SidebarStatus,
4457
- withoutAnimation: !1,
4458
- isClickCollapse: !1
4459
- },
4460
- // 这里的layout用于监听容器拖拉后恢复对应的导航模式
4461
- layout: ((t = O.getItem(`${$()}layout`)) == null ? void 0 : t.layout) ?? le().Layout,
4462
- device: kr() ? "mobile" : "desktop"
4463
- };
4464
- },
4465
- getters: {
4466
- getSidebarStatus() {
4467
- return this.sidebar.opened;
4468
- },
4469
- getDevice() {
4470
- return this.device;
4471
- }
4472
- },
4473
- actions: {
4474
- TOGGLE_SIDEBAR(e, t) {
4475
- const o = O.getItem(`${$()}layout`);
4476
- o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), O.setItem(`${$()}layout`, o));
4477
- },
4478
- async toggleSideBar(e, t) {
4479
- await this.TOGGLE_SIDEBAR(e, t);
4480
- },
4481
- toggleDevice(e) {
4482
- this.device = e;
4483
- },
4484
- setLayout(e) {
4485
- this.layout = e;
4486
- }
4487
- }
4488
- });
4489
- function Ms() {
4490
- return Ns(Xe);
4491
- }
4492
- const Rs = ut("udp-epTheme", {
4493
- state: () => {
4494
- var e, t;
4495
- return {
4496
- epThemeColor: ((e = O.getItem(`${$()}-layout`)) == null ? void 0 : e.epThemeColor) ?? le().EpThemeColor,
4497
- epTheme: ((t = O.getItem(`${$()}-layout`)) == null ? void 0 : t.theme) ?? le().Theme
4498
- };
4499
- },
4500
- getters: {
4501
- getEpThemeColor() {
4502
- return this.epThemeColor;
4503
- },
4504
- // 用于mix导航模式下hamburger-svg的fill属性
4505
- fill() {
4506
- return this.epTheme === "light" ? "#409eff" : this.epTheme === "yellow" ? "#d25f00" : "#fff";
4507
- }
4508
- },
4509
- actions: {
4510
- setEpThemeColor(e) {
4511
- const t = O.getItem(`${$()}layout`);
4512
- this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, O.setItem(`${$()}layout`, t));
4513
- }
4514
- }
4515
- });
4516
- function ao() {
4517
- return Rs(Xe);
4518
- }
4519
- function il() {
4520
- var y, v;
4521
- const { layoutTheme: e, layout: t } = Os(), o = Re([
4522
- /* 道奇蓝(默认) */
4523
- { color: "#1b2a47", themeColor: "default" },
4524
- /* 亮白色 */
4525
- { color: "#ffffff", themeColor: "light" },
4526
- /* 猩红色 */
4527
- { color: "#f5222d", themeColor: "dusk" },
4528
- /* 橙红色 */
4529
- { color: "#fa541c", themeColor: "volcano" },
4530
- /* 金色 */
4531
- { color: "#fadb14", themeColor: "yellow" },
4532
- /* 绿宝石 */
4533
- { color: "#13c2c2", themeColor: "mingQing" },
4534
- /* 酸橙绿 */
4535
- { color: "#52c41a", themeColor: "auroraGreen" },
4536
- /* 深粉色 */
4537
- { color: "#eb2f96", themeColor: "pink" },
4538
- /* 深紫罗兰色 */
4539
- { color: "#722ed1", themeColor: "saucePurple" }
4540
- ]), { $storage: n } = xn(), r = Re((y = n == null ? void 0 : n.layout) == null ? void 0 : y.darkMode), a = Re((v = n == null ? void 0 : n.layout) == null ? void 0 : v.overallStyle), i = document.documentElement;
4541
- function s(m, h, x) {
4542
- const C = x || document.body;
4543
- let { className: T } = C;
4544
- T = T.replace(h, "").trim(), C.className = m ? `${T} ${h}` : T;
4545
- }
4546
- function l(m = le().Theme ?? "default") {
4547
- var h, x;
4548
- if (e.value.theme = m, document.documentElement.setAttribute("data-theme", m), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${m}`), n.layout = {
4549
- layout: t.value,
4550
- theme: m,
4551
- darkMode: r.value,
4552
- sidebarStatus: (h = n.layout) == null ? void 0 : h.sidebarStatus,
4553
- epThemeColor: (x = n.layout) == null ? void 0 : x.epThemeColor,
4554
- overallStyle: a.value
4555
- }, m === "default" || m === "light")
4556
- d(le().EpThemeColor || "#409EFF");
4557
- else {
4558
- const C = o.value.find((T) => T.themeColor === m);
4559
- d(C.color);
4560
- }
4561
- }
4562
- function u(m, h, x) {
4563
- document.documentElement.style.setProperty(
4564
- `--el-color-primary-${m}-${h}`,
4565
- r.value ? ra(x, h / 10) : aa(x, h / 10)
4566
- );
4567
- }
4568
- const d = (m) => {
4569
- ao().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
4570
- for (let h = 1; h <= 2; h++)
4571
- u("dark", h, m);
4572
- for (let h = 1; h <= 9; h++)
4573
- u("light", h, m);
4574
- };
4575
- function c(m) {
4576
- a.value = m, ao().epTheme === "light" && r.value ? l("default") : l(ao().epTheme), Va(r.value ? "dark" : "light"), r.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
4577
- }
4578
- function p() {
4579
- Ae.remove(Hr), Ae.remove($r), Ae.remove(In), O.clear(), Ir.clear();
4580
- const { Grey: m, Weak: h, MultiTagsCache: x, EpThemeColor: C, Layout: T } = le();
4581
- Ms().setLayout(T), d(C), ue().multiTagsCacheChange(x), s(m, "html-grey", document.querySelector("html")), s(h, "html-weakness", document.querySelector("html")), U.push("/login"), ue().handleTags("equal", [...ct]), za();
4582
- }
4583
- return {
4584
- body: i,
4585
- overallStyle: a,
4586
- dataTheme: r,
4587
- layoutTheme: e,
4588
- themeColors: o,
4589
- onReset: p,
4590
- toggleClass: s,
4591
- dataThemeChange: c,
4592
- setEpThemeColor: d,
4593
- setLayoutThemeColor: l
4594
- };
4595
- }
4596
- export {
4597
- Os as A,
4598
- ge as B,
4599
- Zs as C,
4600
- Ea as D,
4601
- Xs as E,
4602
- Ts as F,
4603
- Gs as G,
4604
- Ks as H,
4605
- Ds as I,
4606
- al as J,
4607
- oi as K,
4608
- oa as L,
4609
- nl as M,
4610
- tl as N,
4611
- el as O,
4612
- Qs as P,
4613
- Zr as _,
4614
- rl as a,
4615
- Es as b,
4616
- ue as c,
4617
- Js as d,
4618
- Ms as e,
4619
- Mn as f,
4620
- le as g,
4621
- J as h,
4622
- St as i,
4623
- Is as j,
4624
- Wr as k,
4625
- Ho as l,
4626
- ct as m,
4627
- Hr as n,
4628
- $r as o,
4629
- In as p,
4630
- za as q,
4631
- U as r,
4632
- Xe as s,
4633
- On as t,
4634
- ao as u,
4635
- ol as v,
4636
- Ut as w,
4637
- $ as x,
4638
- ka as y,
4639
- il as z
4640
- };