@utogether/udp-core 1.0.1-beta.19 → 1.0.1-beta.20

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