jmash-core 0.0.3 → 0.0.5

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 (212) hide show
  1. package/dist/401-DZeMj80g.mjs +103 -0
  2. package/dist/404-D1KiG-19.mjs +37 -0
  3. package/dist/BarChart-BYm859ri.mjs +203 -0
  4. package/dist/FileSaver.min-DJ2XURfB.mjs +77 -0
  5. package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
  6. package/dist/PieChart-BRbbIH3_.mjs +4 -0
  7. package/dist/PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs +90 -0
  8. package/dist/RadarChart-Bk_uy6Km.mjs +4 -0
  9. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs +109 -0
  10. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  11. package/dist/caret-bottom-DGvkHVYd.mjs +59 -0
  12. package/dist/common-DuVBTwAv.mjs +36 -0
  13. package/dist/debounce-XYByYe_I.mjs +81 -0
  14. package/dist/dropdown2-D_RJXnOl.mjs +160 -0
  15. package/dist/edit-BTjApg1x.mjs +468 -0
  16. package/dist/edit-BcLHrCSo.mjs +4 -0
  17. package/dist/edit-DC3SyT6J.mjs +4 -0
  18. package/dist/edit-DmP9tv3r.mjs +4 -0
  19. package/dist/edit-Dr-9X4r3.mjs +4 -0
  20. package/dist/edit-FjRAXd1B.mjs +832 -0
  21. package/dist/edit-bpHMc65Q.mjs +4 -0
  22. package/dist/edit-lB54egzx.mjs +4 -0
  23. package/dist/edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs +621 -0
  24. package/dist/edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs +221 -0
  25. package/dist/edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs +225 -0
  26. package/dist/edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs +156 -0
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs +287 -0
  28. package/dist/edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs +136 -0
  29. package/dist/el-card-Da9MvaWO.mjs +61 -0
  30. package/dist/el-checkbox-B44P9jFr.mjs +548 -0
  31. package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
  32. package/dist/el-col-BY0nB6k3.mjs +135 -0
  33. package/dist/el-date-picker-CVwJoDEA.mjs +3349 -0
  34. package/dist/el-dialog-CSWvTJrq.mjs +378 -0
  35. package/dist/el-dropdown-item-CD8hUpml.mjs +675 -0
  36. package/dist/el-form-item-f-baJSfe.mjs +1489 -0
  37. package/dist/el-icon-l0sNRNKZ.mjs +1 -0
  38. package/dist/el-popover-D8RrIMbA.mjs +159 -0
  39. package/dist/el-popper-C13p_dqu.mjs +1656 -0
  40. package/dist/el-progress-CHUzIxT1.mjs +898 -0
  41. package/dist/el-radio-BpdPD-RN.mjs +251 -0
  42. package/dist/el-scrollbar-B8QteGV0.mjs +607 -0
  43. package/dist/el-select-ChOy6agQ.mjs +1040 -0
  44. package/dist/el-switch-cqWxQwcb.mjs +254 -0
  45. package/dist/el-table-c9Sup56w.mjs +3168 -0
  46. package/dist/el-tag-l0sNRNKZ.mjs +1 -0
  47. package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
  48. package/dist/el-tree-select-CKOwMXR7.mjs +1316 -0
  49. package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs +116 -0
  50. package/dist/index-B6wY38lY.mjs +13173 -0
  51. package/dist/index-BH-_mfRR.mjs +107 -0
  52. package/dist/index-BfhiNV8H.mjs +486 -0
  53. package/dist/index-BjqMDjBg.mjs +43994 -0
  54. package/dist/index-BuHauank.mjs +13 -0
  55. package/dist/index-CBJwB8q2.mjs +633 -0
  56. package/dist/index-CGCQHwLq.mjs +482 -0
  57. package/dist/index-CU0iVHXP.mjs +281 -0
  58. package/dist/index-CYxGYOaT.mjs +504 -0
  59. package/dist/index-Cjii0qCc.mjs +278 -0
  60. package/dist/index-Czh2Pqwr.mjs +63 -0
  61. package/dist/index-DJ08yxAP.mjs +11 -0
  62. package/dist/index-DUKlDGLk.mjs +2589 -0
  63. package/dist/index-DUVtKaDI.mjs +515 -0
  64. package/dist/index-Dgd4Zhxz.mjs +93 -0
  65. package/dist/index-Di5--Hao.mjs +328 -0
  66. package/dist/index-DjkMA-Wh.mjs +40 -0
  67. package/dist/index-DrKW_cyG.mjs +247 -0
  68. package/dist/index-LuiPOgGW.mjs +291 -0
  69. package/dist/index-VD-Tf32c.mjs +74 -0
  70. package/dist/index-cRrjzkNb.mjs +452 -0
  71. package/dist/index-cp7l4CIE.mjs +134 -0
  72. package/dist/index-dKz1IRM_.mjs +279 -0
  73. package/dist/index-dLPnFa10.mjs +964 -0
  74. package/dist/index-uykKwY2Z.mjs +12 -0
  75. package/dist/index-vp1_Sd0A.mjs +55 -0
  76. package/dist/index.mjs +22 -273
  77. package/dist/index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs +286 -0
  78. package/dist/index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs +58 -0
  79. package/dist/isUndefined-CUQZk6oB.mjs +6 -0
  80. package/dist/moment-CMYwqyVT.mjs +2579 -0
  81. package/dist/picture-kDaEiPHi.mjs +599 -0
  82. package/dist/profile-Sn98YUfh.mjs +319 -0
  83. package/dist/refs-COP_DuTD.mjs +9 -0
  84. package/dist/style.css +1 -1
  85. package/dist/types-BolK_Oyb.mjs +205 -0
  86. package/dist/updatePwd-B3rEU05i.mjs +4 -0
  87. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs +151 -0
  88. package/dist/useColumnToggleTable-CC9EXcfR.mjs +272 -0
  89. package/dts/src/App.vue.d.ts +1 -1
  90. package/dts/src/api/auth/index.d.ts +41 -0
  91. package/dts/src/api/auth/types.d.ts +180 -0
  92. package/dts/src/api/file/index.d.ts +14 -0
  93. package/dts/src/api/file/types.d.ts +7 -0
  94. package/dts/src/api/system/dept/index.d.ts +91 -0
  95. package/dts/src/api/system/dept/types.d.ts +63 -0
  96. package/dts/src/api/system/index.d.ts +7 -0
  97. package/dts/src/api/system/job/index.d.ts +42 -0
  98. package/dts/src/api/system/job/types.d.ts +60 -0
  99. package/dts/src/api/system/log/index.d.ts +29 -0
  100. package/dts/src/api/system/log/types.d.ts +42 -0
  101. package/dts/src/api/system/menu/index.d.ts +103 -0
  102. package/dts/src/api/system/menu/types.d.ts +96 -0
  103. package/dts/src/api/system/module/index.d.ts +57 -0
  104. package/dts/src/api/system/module/types.d.ts +13 -0
  105. package/dts/src/api/system/operation/index.d.ts +51 -0
  106. package/dts/src/api/system/operation/types.d.ts +12 -0
  107. package/dts/src/api/system/permission/index.d.ts +50 -0
  108. package/dts/src/api/system/permission/types.d.ts +12 -0
  109. package/dts/src/api/system/role/index.d.ts +77 -0
  110. package/dts/src/api/system/role/types.d.ts +26 -0
  111. package/dts/src/api/system/user/index.d.ts +133 -0
  112. package/dts/src/api/system/user/types.d.ts +53 -0
  113. package/dts/src/api/system/userLog/index.d.ts +29 -0
  114. package/dts/src/api/system/userLog/types.d.ts +22 -0
  115. package/dts/src/assets/icons/index.d.ts +0 -0
  116. package/dts/src/components/{icons/IconDocumentation.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
  117. package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
  118. package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
  119. package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
  120. package/dts/src/components/{TheWelcome.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
  121. package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
  122. package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
  123. package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
  124. package/dts/src/components/{icons/IconEcosystem.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
  125. package/dts/src/components/Pagination/index.vue.d.ts +88 -0
  126. package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
  127. package/dts/src/components/{icons/IconCommunity.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
  128. package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
  129. package/dts/src/components/Table/index.vue.d.ts +73 -0
  130. package/dts/src/components/TableSet/index.vue.d.ts +29 -0
  131. package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
  132. package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
  133. package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
  134. package/dts/src/components/Upload/index.vue.d.ts +18 -0
  135. package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
  136. package/dts/src/directive/index.d.ts +5 -0
  137. package/dts/src/directive/permission/index.d.ts +9 -0
  138. package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
  139. package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
  140. package/dts/src/index.d.ts +29 -3
  141. package/dts/src/lang/index.d.ts +534 -0
  142. package/dts/src/lang/package/en.d.ts +261 -0
  143. package/dts/src/lang/package/zh-cn.d.ts +275 -0
  144. package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
  145. package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
  146. package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
  147. package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
  148. package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
  149. package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
  150. package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
  151. package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
  152. package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
  153. package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
  154. package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
  155. package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
  156. package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
  157. package/dts/src/layout/components/index.d.ts +4 -0
  158. package/dts/src/layout/index.vue.d.ts +2 -0
  159. package/dts/src/layout/main.vue.d.ts +2 -0
  160. package/dts/src/main.d.ts +5 -1
  161. package/dts/src/permission.d.ts +1 -0
  162. package/dts/src/router/index.d.ts +10 -0
  163. package/dts/src/settings.d.ts +13 -0
  164. package/dts/src/stores/index.d.ts +7 -0
  165. package/dts/src/stores/modules/tagsView.d.ts +82 -0
  166. package/dts/src/utils/common.d.ts +6 -0
  167. package/dts/src/utils/grpc.d.ts +2 -0
  168. package/dts/src/utils/i18n.d.ts +1 -0
  169. package/dts/src/utils/index.d.ts +24 -0
  170. package/dts/src/utils/request.d.ts +2 -0
  171. package/dts/src/utils/resize.d.ts +1 -0
  172. package/dts/src/utils/scroll-to.d.ts +6 -0
  173. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
  174. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
  175. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
  176. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
  177. package/dts/src/views/dashboard/index.vue.d.ts +2 -0
  178. package/dts/src/views/error-page/401.vue.d.ts +2 -0
  179. package/dts/src/views/error-page/404.vue.d.ts +2 -0
  180. package/dts/src/views/login/components/types.vue.d.ts +2 -0
  181. package/dts/src/views/login/index.vue.d.ts +2 -0
  182. package/dts/src/views/my/profile.vue.d.ts +2 -0
  183. package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
  184. package/dts/src/views/redirect/index.vue.d.ts +2 -0
  185. package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
  186. package/dts/src/views/system/dept/index.vue.d.ts +2 -0
  187. package/dts/src/views/system/job/edit.vue.d.ts +30 -0
  188. package/dts/src/views/system/job/index.vue.d.ts +2 -0
  189. package/dts/src/views/system/log/index.vue.d.ts +2 -0
  190. package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
  191. package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
  192. package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
  193. package/dts/src/views/system/menu/index.vue.d.ts +2 -0
  194. package/dts/src/views/system/module/edit.vue.d.ts +31 -0
  195. package/dts/src/views/system/module/index.vue.d.ts +2 -0
  196. package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
  197. package/dts/src/views/system/operation/index.vue.d.ts +2 -0
  198. package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
  199. package/dts/src/views/system/permission/index.vue.d.ts +2 -0
  200. package/dts/src/views/system/role/edit.vue.d.ts +31 -0
  201. package/dts/src/views/system/role/index.vue.d.ts +2 -0
  202. package/dts/src/views/system/user/edit.vue.d.ts +31 -0
  203. package/dts/src/views/system/user/index.vue.d.ts +2 -0
  204. package/dts/tsconfig.tsbuildinfo +1 -1
  205. package/package.json +31 -2
  206. package/dts/src/components/HelloWorld.vue.d.ts +0 -15
  207. package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
  208. package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
  209. package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
  210. package/dts/src/stores/counter.d.ts +0 -13
  211. package/dts/src/views/AboutView.vue.d.ts +0 -2
  212. package/dts/src/views/HomeView.vue.d.ts +0 -2
@@ -0,0 +1,599 @@
1
+ import { defineComponent as ae, markRaw as ve, ref as _, effectScope as ke, shallowRef as Ie, computed as h, watch as ue, nextTick as me, onMounted as pe, openBlock as b, createBlock as ce, Teleport as ze, createVNode as v, Transition as Le, withCtx as C, createElementVNode as w, normalizeClass as p, unref as e, normalizeStyle as de, withModifiers as Ce, createCommentVNode as S, createElementBlock as E, Fragment as ne, resolveDynamicComponent as Ee, renderList as Se, withDirectives as xe, vShow as Ne, renderSlot as te, useAttrs as Oe, toDisplayString as Te, mergeProps as $e } from "vue";
2
+ import { j as M, k as Re, m as ge, n as F, o as we, p as fe, q as Ae, t as Me, w as ye, x as he, y as Be, z as O, A as Ve, B as Ye, C as De, D as He, F as Pe, G as Xe, H as Fe, _ as be, I as B, J as A, K as je, L as _e, M as Ke, N as We, O as qe, P as Ge, Q as Ze } from "./index-B6wY38lY.mjs";
3
+ import { d as Je } from "./debounce-XYByYe_I.mjs";
4
+ const Qe = (s, m) => {
5
+ if (!M || !s || !m)
6
+ return !1;
7
+ const l = s.getBoundingClientRect();
8
+ let f;
9
+ return m instanceof Element ? f = m.getBoundingClientRect() : f = {
10
+ top: 0,
11
+ right: window.innerWidth,
12
+ bottom: window.innerHeight,
13
+ left: 0
14
+ }, l.top < f.bottom && l.bottom > f.top && l.right > f.left && l.left < f.right;
15
+ };
16
+ var Ue = "Expected a function";
17
+ function ie(s, m, l) {
18
+ var f = !0, r = !0;
19
+ if (typeof s != "function")
20
+ throw new TypeError(Ue);
21
+ return Re(l) && (f = "leading" in l ? !!l.leading : f, r = "trailing" in l ? !!l.trailing : r), Je(s, m, {
22
+ leading: f,
23
+ maxWait: m,
24
+ trailing: r
25
+ });
26
+ }
27
+ const et = ge({
28
+ urlList: {
29
+ type: F(Array),
30
+ default: () => we([])
31
+ },
32
+ zIndex: {
33
+ type: Number
34
+ },
35
+ initialIndex: {
36
+ type: Number,
37
+ default: 0
38
+ },
39
+ infinite: {
40
+ type: Boolean,
41
+ default: !0
42
+ },
43
+ hideOnClickModal: Boolean,
44
+ teleported: Boolean,
45
+ closeOnPressEscape: {
46
+ type: Boolean,
47
+ default: !0
48
+ },
49
+ zoomRate: {
50
+ type: Number,
51
+ default: 1.2
52
+ },
53
+ minScale: {
54
+ type: Number,
55
+ default: 0.2
56
+ },
57
+ maxScale: {
58
+ type: Number,
59
+ default: 7
60
+ },
61
+ crossorigin: {
62
+ type: F(String)
63
+ }
64
+ }), tt = {
65
+ close: () => !0,
66
+ switch: (s) => fe(s),
67
+ rotate: (s) => fe(s)
68
+ }, nt = ["src", "crossorigin"], at = ae({
69
+ name: "ElImageViewer"
70
+ }), lt = /* @__PURE__ */ ae({
71
+ ...at,
72
+ props: et,
73
+ emits: tt,
74
+ setup(s, { expose: m, emit: l }) {
75
+ var f;
76
+ const r = s, y = {
77
+ CONTAIN: {
78
+ name: "contain",
79
+ icon: ve(Ae)
80
+ },
81
+ ORIGINAL: {
82
+ name: "original",
83
+ icon: ve(Me)
84
+ }
85
+ }, { t: le } = ye(), u = he("image-viewer"), { nextZIndex: V } = Be(), x = _(), N = _([]), T = ke(), k = _(!0), c = _(r.initialIndex), $ = Ie(y.CONTAIN), o = _({
86
+ scale: 1,
87
+ deg: 0,
88
+ offsetX: 0,
89
+ offsetY: 0,
90
+ enableTransition: !1
91
+ }), Y = _((f = r.zIndex) != null ? f : V()), oe = h(() => {
92
+ const { urlList: n } = r;
93
+ return n.length <= 1;
94
+ }), j = h(() => c.value === 0), K = h(() => c.value === r.urlList.length - 1), D = h(() => r.urlList[c.value]), se = h(() => [
95
+ u.e("btn"),
96
+ u.e("prev"),
97
+ u.is("disabled", !r.infinite && j.value)
98
+ ]), W = h(() => [
99
+ u.e("btn"),
100
+ u.e("next"),
101
+ u.is("disabled", !r.infinite && K.value)
102
+ ]), H = h(() => {
103
+ const { scale: n, deg: a, offsetX: i, offsetY: I, enableTransition: L } = o.value;
104
+ let g = i / n, z = I / n;
105
+ switch (a % 360) {
106
+ case 90:
107
+ case -270:
108
+ [g, z] = [z, -g];
109
+ break;
110
+ case 180:
111
+ case -180:
112
+ [g, z] = [-g, -z];
113
+ break;
114
+ case 270:
115
+ case -90:
116
+ [g, z] = [-z, g];
117
+ break;
118
+ }
119
+ const R = {
120
+ transform: `scale(${n}) rotate(${a}deg) translate(${g}px, ${z}px)`,
121
+ transition: L ? "transform .3s" : ""
122
+ };
123
+ return $.value.name === y.CONTAIN.name && (R.maxWidth = R.maxHeight = "100%"), R;
124
+ });
125
+ function P() {
126
+ q(), l("close");
127
+ }
128
+ function re() {
129
+ const n = ie((i) => {
130
+ switch (i.code) {
131
+ case A.esc:
132
+ r.closeOnPressEscape && P();
133
+ break;
134
+ case A.space:
135
+ U();
136
+ break;
137
+ case A.left:
138
+ ee();
139
+ break;
140
+ case A.up:
141
+ d("zoomIn");
142
+ break;
143
+ case A.right:
144
+ t();
145
+ break;
146
+ case A.down:
147
+ d("zoomOut");
148
+ break;
149
+ }
150
+ }), a = ie((i) => {
151
+ const I = i.deltaY || i.deltaX;
152
+ d(I < 0 ? "zoomIn" : "zoomOut", {
153
+ zoomRate: r.zoomRate,
154
+ enableTransition: !1
155
+ });
156
+ });
157
+ T.run(() => {
158
+ B(document, "keydown", n), B(document, "wheel", a);
159
+ });
160
+ }
161
+ function q() {
162
+ T.stop();
163
+ }
164
+ function G() {
165
+ k.value = !1;
166
+ }
167
+ function Z(n) {
168
+ k.value = !1, n.target.alt = le("el.image.error");
169
+ }
170
+ function J(n) {
171
+ if (k.value || n.button !== 0 || !x.value)
172
+ return;
173
+ o.value.enableTransition = !1;
174
+ const { offsetX: a, offsetY: i } = o.value, I = n.pageX, L = n.pageY, g = ie((R) => {
175
+ o.value = {
176
+ ...o.value,
177
+ offsetX: a + R.pageX - I,
178
+ offsetY: i + R.pageY - L
179
+ };
180
+ }), z = B(document, "mousemove", g);
181
+ B(document, "mouseup", () => {
182
+ z();
183
+ }), n.preventDefault();
184
+ }
185
+ function Q() {
186
+ o.value = {
187
+ scale: 1,
188
+ deg: 0,
189
+ offsetX: 0,
190
+ offsetY: 0,
191
+ enableTransition: !1
192
+ };
193
+ }
194
+ function U() {
195
+ if (k.value)
196
+ return;
197
+ const n = je(y), a = Object.values(y), i = $.value.name, L = (a.findIndex((g) => g.name === i) + 1) % n.length;
198
+ $.value = y[n[L]], Q();
199
+ }
200
+ function X(n) {
201
+ const a = r.urlList.length;
202
+ c.value = (n + a) % a;
203
+ }
204
+ function ee() {
205
+ j.value && !r.infinite || X(c.value - 1);
206
+ }
207
+ function t() {
208
+ K.value && !r.infinite || X(c.value + 1);
209
+ }
210
+ function d(n, a = {}) {
211
+ if (k.value)
212
+ return;
213
+ const { minScale: i, maxScale: I } = r, { zoomRate: L, rotateDeg: g, enableTransition: z } = {
214
+ zoomRate: r.zoomRate,
215
+ rotateDeg: 90,
216
+ enableTransition: !0,
217
+ ...a
218
+ };
219
+ switch (n) {
220
+ case "zoomOut":
221
+ o.value.scale > i && (o.value.scale = Number.parseFloat((o.value.scale / L).toFixed(3)));
222
+ break;
223
+ case "zoomIn":
224
+ o.value.scale < I && (o.value.scale = Number.parseFloat((o.value.scale * L).toFixed(3)));
225
+ break;
226
+ case "clockwise":
227
+ o.value.deg += g, l("rotate", o.value.deg);
228
+ break;
229
+ case "anticlockwise":
230
+ o.value.deg -= g, l("rotate", o.value.deg);
231
+ break;
232
+ }
233
+ o.value.enableTransition = z;
234
+ }
235
+ return ue(D, () => {
236
+ me(() => {
237
+ const n = N.value[0];
238
+ n != null && n.complete || (k.value = !0);
239
+ });
240
+ }), ue(c, (n) => {
241
+ Q(), l("switch", n);
242
+ }), pe(() => {
243
+ var n, a;
244
+ re(), (a = (n = x.value) == null ? void 0 : n.focus) == null || a.call(n);
245
+ }), m({
246
+ setActiveItem: X
247
+ }), (n, a) => (b(), ce(ze, {
248
+ to: "body",
249
+ disabled: !n.teleported
250
+ }, [
251
+ v(Le, {
252
+ name: "viewer-fade",
253
+ appear: ""
254
+ }, {
255
+ default: C(() => [
256
+ w("div", {
257
+ ref_key: "wrapper",
258
+ ref: x,
259
+ tabindex: -1,
260
+ class: p(e(u).e("wrapper")),
261
+ style: de({ zIndex: Y.value })
262
+ }, [
263
+ w("div", {
264
+ class: p(e(u).e("mask")),
265
+ onClick: a[0] || (a[0] = Ce((i) => n.hideOnClickModal && P(), ["self"]))
266
+ }, null, 2),
267
+ S(" CLOSE "),
268
+ w("span", {
269
+ class: p([e(u).e("btn"), e(u).e("close")]),
270
+ onClick: P
271
+ }, [
272
+ v(e(O), null, {
273
+ default: C(() => [
274
+ v(e(Ve))
275
+ ]),
276
+ _: 1
277
+ })
278
+ ], 2),
279
+ S(" ARROW "),
280
+ e(oe) ? S("v-if", !0) : (b(), E(ne, { key: 0 }, [
281
+ w("span", {
282
+ class: p(e(se)),
283
+ onClick: ee
284
+ }, [
285
+ v(e(O), null, {
286
+ default: C(() => [
287
+ v(e(Ye))
288
+ ]),
289
+ _: 1
290
+ })
291
+ ], 2),
292
+ w("span", {
293
+ class: p(e(W)),
294
+ onClick: t
295
+ }, [
296
+ v(e(O), null, {
297
+ default: C(() => [
298
+ v(e(De))
299
+ ]),
300
+ _: 1
301
+ })
302
+ ], 2)
303
+ ], 64)),
304
+ S(" ACTIONS "),
305
+ w("div", {
306
+ class: p([e(u).e("btn"), e(u).e("actions")])
307
+ }, [
308
+ w("div", {
309
+ class: p(e(u).e("actions__inner"))
310
+ }, [
311
+ v(e(O), {
312
+ onClick: a[1] || (a[1] = (i) => d("zoomOut"))
313
+ }, {
314
+ default: C(() => [
315
+ v(e(He))
316
+ ]),
317
+ _: 1
318
+ }),
319
+ v(e(O), {
320
+ onClick: a[2] || (a[2] = (i) => d("zoomIn"))
321
+ }, {
322
+ default: C(() => [
323
+ v(e(Pe))
324
+ ]),
325
+ _: 1
326
+ }),
327
+ w("i", {
328
+ class: p(e(u).e("actions__divider"))
329
+ }, null, 2),
330
+ v(e(O), { onClick: U }, {
331
+ default: C(() => [
332
+ (b(), ce(Ee(e($).icon)))
333
+ ]),
334
+ _: 1
335
+ }),
336
+ w("i", {
337
+ class: p(e(u).e("actions__divider"))
338
+ }, null, 2),
339
+ v(e(O), {
340
+ onClick: a[3] || (a[3] = (i) => d("anticlockwise"))
341
+ }, {
342
+ default: C(() => [
343
+ v(e(Xe))
344
+ ]),
345
+ _: 1
346
+ }),
347
+ v(e(O), {
348
+ onClick: a[4] || (a[4] = (i) => d("clockwise"))
349
+ }, {
350
+ default: C(() => [
351
+ v(e(Fe))
352
+ ]),
353
+ _: 1
354
+ })
355
+ ], 2)
356
+ ], 2),
357
+ S(" CANVAS "),
358
+ w("div", {
359
+ class: p(e(u).e("canvas"))
360
+ }, [
361
+ (b(!0), E(ne, null, Se(n.urlList, (i, I) => xe((b(), E("img", {
362
+ ref_for: !0,
363
+ ref: (L) => N.value[I] = L,
364
+ key: i,
365
+ src: i,
366
+ style: de(e(H)),
367
+ class: p(e(u).e("img")),
368
+ crossorigin: n.crossorigin,
369
+ onLoad: G,
370
+ onError: Z,
371
+ onMousedown: J
372
+ }, null, 46, nt)), [
373
+ [Ne, I === c.value]
374
+ ])), 128))
375
+ ], 2),
376
+ te(n.$slots, "default")
377
+ ], 6)
378
+ ]),
379
+ _: 3
380
+ })
381
+ ], 8, ["disabled"]));
382
+ }
383
+ });
384
+ var ot = /* @__PURE__ */ be(lt, [["__file", "image-viewer.vue"]]);
385
+ const st = _e(ot), rt = ge({
386
+ hideOnClickModal: Boolean,
387
+ src: {
388
+ type: String,
389
+ default: ""
390
+ },
391
+ fit: {
392
+ type: String,
393
+ values: ["", "contain", "cover", "fill", "none", "scale-down"],
394
+ default: ""
395
+ },
396
+ loading: {
397
+ type: String,
398
+ values: ["eager", "lazy"]
399
+ },
400
+ lazy: Boolean,
401
+ scrollContainer: {
402
+ type: F([String, Object])
403
+ },
404
+ previewSrcList: {
405
+ type: F(Array),
406
+ default: () => we([])
407
+ },
408
+ previewTeleported: Boolean,
409
+ zIndex: {
410
+ type: Number
411
+ },
412
+ initialIndex: {
413
+ type: Number,
414
+ default: 0
415
+ },
416
+ infinite: {
417
+ type: Boolean,
418
+ default: !0
419
+ },
420
+ closeOnPressEscape: {
421
+ type: Boolean,
422
+ default: !0
423
+ },
424
+ zoomRate: {
425
+ type: Number,
426
+ default: 1.2
427
+ },
428
+ minScale: {
429
+ type: Number,
430
+ default: 0.2
431
+ },
432
+ maxScale: {
433
+ type: Number,
434
+ default: 7
435
+ },
436
+ crossorigin: {
437
+ type: F(String)
438
+ }
439
+ }), it = {
440
+ load: (s) => s instanceof Event,
441
+ error: (s) => s instanceof Event,
442
+ switch: (s) => fe(s),
443
+ close: () => !0,
444
+ show: () => !0
445
+ }, ut = ["src", "loading", "crossorigin"], ct = { key: 0 }, dt = ae({
446
+ name: "ElImage",
447
+ inheritAttrs: !1
448
+ }), ft = /* @__PURE__ */ ae({
449
+ ...dt,
450
+ props: rt,
451
+ emits: it,
452
+ setup(s, { emit: m }) {
453
+ const l = s;
454
+ let f = "";
455
+ const { t: r } = ye(), y = he("image"), le = Oe(), u = Ke(), V = _(), x = _(!1), N = _(!0), T = _(!1), k = _(), c = _(), $ = M && "loading" in HTMLImageElement.prototype;
456
+ let o, Y;
457
+ const oe = h(() => [
458
+ y.e("inner"),
459
+ D.value && y.e("preview"),
460
+ N.value && y.is("loading")
461
+ ]), j = h(() => le.style), K = h(() => {
462
+ const { fit: t } = l;
463
+ return M && t ? { objectFit: t } : {};
464
+ }), D = h(() => {
465
+ const { previewSrcList: t } = l;
466
+ return Array.isArray(t) && t.length > 0;
467
+ }), se = h(() => {
468
+ const { previewSrcList: t, initialIndex: d } = l;
469
+ let n = d;
470
+ return d > t.length - 1 && (n = 0), n;
471
+ }), W = h(() => l.loading === "eager" ? !1 : !$ && l.loading === "lazy" || l.lazy), H = () => {
472
+ M && (N.value = !0, x.value = !1, V.value = l.src);
473
+ };
474
+ function P(t) {
475
+ N.value = !1, x.value = !1, m("load", t);
476
+ }
477
+ function re(t) {
478
+ N.value = !1, x.value = !0, m("error", t);
479
+ }
480
+ function q() {
481
+ Qe(k.value, c.value) && (H(), J());
482
+ }
483
+ const G = Ze(q, 200, !0);
484
+ async function Z() {
485
+ var t;
486
+ if (!M)
487
+ return;
488
+ await me();
489
+ const { scrollContainer: d } = l;
490
+ We(d) ? c.value = d : qe(d) && d !== "" ? c.value = (t = document.querySelector(d)) != null ? t : void 0 : k.value && (c.value = Ge(k.value)), c.value && (o = B(c, "scroll", G), setTimeout(() => q(), 100));
491
+ }
492
+ function J() {
493
+ !M || !c.value || !G || (o == null || o(), c.value = void 0);
494
+ }
495
+ function Q(t) {
496
+ if (t.ctrlKey) {
497
+ if (t.deltaY < 0)
498
+ return t.preventDefault(), !1;
499
+ if (t.deltaY > 0)
500
+ return t.preventDefault(), !1;
501
+ }
502
+ }
503
+ function U() {
504
+ D.value && (Y = B("wheel", Q, {
505
+ passive: !1
506
+ }), f = document.body.style.overflow, document.body.style.overflow = "hidden", T.value = !0, m("show"));
507
+ }
508
+ function X() {
509
+ Y == null || Y(), document.body.style.overflow = f, T.value = !1, m("close");
510
+ }
511
+ function ee(t) {
512
+ m("switch", t);
513
+ }
514
+ return ue(() => l.src, () => {
515
+ W.value ? (N.value = !0, x.value = !1, J(), Z()) : H();
516
+ }), pe(() => {
517
+ W.value ? Z() : H();
518
+ }), (t, d) => (b(), E("div", {
519
+ ref_key: "container",
520
+ ref: k,
521
+ class: p([e(y).b(), t.$attrs.class]),
522
+ style: de(e(j))
523
+ }, [
524
+ x.value ? te(t.$slots, "error", { key: 0 }, () => [
525
+ w("div", {
526
+ class: p(e(y).e("error"))
527
+ }, Te(e(r)("el.image.error")), 3)
528
+ ]) : (b(), E(ne, { key: 1 }, [
529
+ V.value !== void 0 ? (b(), E("img", $e({ key: 0 }, e(u), {
530
+ src: V.value,
531
+ loading: t.loading,
532
+ style: e(K),
533
+ class: e(oe),
534
+ crossorigin: t.crossorigin,
535
+ onClick: U,
536
+ onLoad: P,
537
+ onError: re
538
+ }), null, 16, ut)) : S("v-if", !0),
539
+ N.value ? (b(), E("div", {
540
+ key: 1,
541
+ class: p(e(y).e("wrapper"))
542
+ }, [
543
+ te(t.$slots, "placeholder", {}, () => [
544
+ w("div", {
545
+ class: p(e(y).e("placeholder"))
546
+ }, null, 2)
547
+ ])
548
+ ], 2)) : S("v-if", !0)
549
+ ], 64)),
550
+ e(D) ? (b(), E(ne, { key: 2 }, [
551
+ T.value ? (b(), ce(e(st), {
552
+ key: 0,
553
+ "z-index": t.zIndex,
554
+ "initial-index": e(se),
555
+ infinite: t.infinite,
556
+ "zoom-rate": t.zoomRate,
557
+ "min-scale": t.minScale,
558
+ "max-scale": t.maxScale,
559
+ "url-list": t.previewSrcList,
560
+ "hide-on-click-modal": t.hideOnClickModal,
561
+ teleported: t.previewTeleported,
562
+ "close-on-press-escape": t.closeOnPressEscape,
563
+ onClose: X,
564
+ onSwitch: ee
565
+ }, {
566
+ default: C(() => [
567
+ t.$slots.viewer ? (b(), E("div", ct, [
568
+ te(t.$slots, "viewer")
569
+ ])) : S("v-if", !0)
570
+ ]),
571
+ _: 3
572
+ }, 8, ["z-index", "initial-index", "infinite", "zoom-rate", "min-scale", "max-scale", "url-list", "hide-on-click-modal", "teleported", "close-on-press-escape"])) : S("v-if", !0)
573
+ ], 64)) : S("v-if", !0)
574
+ ], 6));
575
+ }
576
+ });
577
+ var vt = /* @__PURE__ */ be(ft, [["__file", "image.vue"]]);
578
+ const kt = _e(vt), mt = {
579
+ viewBox: "0 0 1024 1024",
580
+ width: "1.2em",
581
+ height: "1.2em"
582
+ }, pt = /* @__PURE__ */ w("path", {
583
+ fill: "currentColor",
584
+ d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
585
+ }, null, -1), gt = /* @__PURE__ */ w("path", {
586
+ fill: "currentColor",
587
+ d: "M384 288q64 0 64 64t-64 64t-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952z"
588
+ }, null, -1), wt = [
589
+ pt,
590
+ gt
591
+ ];
592
+ function yt(s, m) {
593
+ return b(), E("svg", mt, [...wt]);
594
+ }
595
+ const It = { name: "ep-picture", render: yt };
596
+ export {
597
+ kt as E,
598
+ It as _
599
+ };