@web-utils/component 2.13.0 → 2.15.0

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 (302) hide show
  1. package/address-input/index.mjs +9 -9
  2. package/address-input/style.css +1 -1
  3. package/affix/index.mjs +1 -1
  4. package/affix/style.css +1 -1
  5. package/aside-menu/index.mjs +20 -20
  6. package/aside-menu/style.css +1 -1
  7. package/avatar/index.mjs +1 -1
  8. package/avatar/style.css +1 -1
  9. package/awesome-button/index.mjs +1 -1
  10. package/base.css +1 -1
  11. package/capsule-tab/index.mjs +10 -10
  12. package/capsule-tab/style.css +1 -1
  13. package/card/index.mjs +23 -23
  14. package/card/style.css +1 -1
  15. package/carousel/index.mjs +5 -5
  16. package/carousel/style.css +1 -1
  17. package/chat/index.mjs +2 -2
  18. package/chat/style.css +1 -1
  19. package/chunk-file-uploader/index.mjs +3 -3
  20. package/chunk-file-uploader/style.css +1 -1
  21. package/chunks/{FormTemp.a70cc55d.mjs → FormTemp.FX8xmbVB.mjs} +4 -4
  22. package/chunks/{confirmable-mixin.d89088b0.mjs → confirmable-mixin.rTUMhoRH.mjs} +25 -24
  23. package/chunks/{dataformat.504544b2.mjs → dataformat.X_61lMA7.mjs} +1 -1
  24. package/chunks/{dic.9277cfae.mjs → dic.6tk91Dmq.mjs} +1 -1
  25. package/chunks/{event.67cfd4fb.mjs → event.NHA7rYFE.mjs} +3 -3
  26. package/chunks/{form-input-mixin.4632ad36.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
  27. package/chunks/{form-item-mixin.ad148e7b.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
  28. package/chunks/{init.7338d214.mjs → init.Ac4dKUJB.mjs} +3 -3
  29. package/code-mirror-editor/index.mjs +36 -36
  30. package/code-mirror-editor/style.css +1 -1
  31. package/color-picker/index.mjs +1 -1
  32. package/comment/index.mjs +18 -18
  33. package/comment/style.css +1 -1
  34. package/confirm-button/index.mjs +2 -2
  35. package/confirmable/index.mjs +2 -2
  36. package/context-menu/index.mjs +9 -9
  37. package/context-menu/style.css +1 -1
  38. package/count-up/index.mjs +1 -1
  39. package/custom-scrollbar/index.mjs +6 -6
  40. package/data-box/index.mjs +8 -8
  41. package/data-box/style.css +1 -1
  42. package/data-card/index.mjs +19 -19
  43. package/data-card/style.css +1 -1
  44. package/data-cardtext/index.mjs +22 -22
  45. package/data-cardtext/style.css +1 -1
  46. package/data-display/index.mjs +24 -24
  47. package/data-display/style.css +1 -1
  48. package/data-icons/index.mjs +13 -13
  49. package/data-icons/style.css +1 -1
  50. package/data-imgtext/index.mjs +18 -18
  51. package/data-imgtext/style.css +1 -1
  52. package/data-operatext/index.mjs +28 -28
  53. package/data-operatext/style.css +1 -1
  54. package/data-panel/index.mjs +15 -15
  55. package/data-panel/style.css +1 -1
  56. package/data-pay/index.mjs +7 -7
  57. package/data-pay/style.css +1 -1
  58. package/data-price/index.mjs +5 -5
  59. package/data-price/style.css +1 -1
  60. package/data-progress/index.mjs +16 -16
  61. package/data-progress/style.css +1 -1
  62. package/data-rotate/index.mjs +7 -7
  63. package/data-rotate/style.css +1 -1
  64. package/data-table-picker/index.mjs +2 -2
  65. package/data-tabs/index.mjs +6 -6
  66. package/data-tabs/style.css +1 -1
  67. package/dialog-form/index.mjs +47 -47
  68. package/dialog-form/style.css +1 -1
  69. package/dynamic-table/index.mjs +15 -15
  70. package/dynamic-table/style.css +1 -1
  71. package/e-charts/index.mjs +7 -7
  72. package/e-charts/style.css +1 -1
  73. package/easy-popup/index.mjs +15 -15
  74. package/easy-popup/style.css +1 -1
  75. package/editable-progress/index.mjs +1 -1
  76. package/editable-progress/style.css +1 -1
  77. package/editable-tree/index.mjs +5 -5
  78. package/editable-tree/style.css +1 -1
  79. package/egd-collapse/index.mjs +1 -1
  80. package/egd-collapse-item/index.mjs +1 -1
  81. package/element-dialog/index.mjs +8 -8
  82. package/element-dialog/style.css +1 -1
  83. package/empty-view/index.mjs +9 -9
  84. package/empty-view/style.css +1 -1
  85. package/error-view/index.mjs +13 -13
  86. package/error-view/style.css +1 -1
  87. package/flex-column/index.mjs +2 -2
  88. package/flex-item/index.mjs +2 -2
  89. package/flex-row/index.mjs +2 -2
  90. package/flex-scroller/index.mjs +5 -5
  91. package/flex-scroller/style.css +1 -1
  92. package/flow/index.mjs +2 -2
  93. package/flow/style.css +1 -1
  94. package/flow-designer/index.mjs +31 -31
  95. package/flow-designer/style.css +1 -1
  96. package/flow-node/index.mjs +2 -2
  97. package/flow-viewer/index.mjs +4 -4
  98. package/flow-viewer/style.css +1 -1
  99. package/form-block/index.mjs +16 -16
  100. package/form-block/style.css +1 -1
  101. package/form-button/index.mjs +1 -1
  102. package/form-cascader/index.mjs +4 -4
  103. package/form-checkbox-group/index.mjs +6 -6
  104. package/form-checkbox-group/style.css +1 -1
  105. package/form-date-picker/index.mjs +4 -4
  106. package/form-holder/index.mjs +2 -2
  107. package/form-input/index.mjs +3 -3
  108. package/form-input-email/index.mjs +3 -3
  109. package/form-input-id-card/index.mjs +3 -3
  110. package/form-input-number/index.mjs +8 -8
  111. package/form-input-number/style.css +1 -1
  112. package/form-input-phone-number/index.mjs +3 -3
  113. package/form-input-tag/index.mjs +3 -3
  114. package/form-input-time/index.mjs +3 -3
  115. package/form-item/index.mjs +18 -18
  116. package/form-item/style.css +1 -1
  117. package/form-item-config-provider/index.mjs +1 -1
  118. package/form-item-group/index.mjs +4 -4
  119. package/form-item-group/style.css +1 -1
  120. package/form-radio-group/index.mjs +37 -37
  121. package/form-radio-group/style.css +1 -1
  122. package/form-select/index.mjs +4 -4
  123. package/form-switch/index.mjs +3 -3
  124. package/form-textarea/index.mjs +3 -3
  125. package/form-view/index.mjs +7 -7
  126. package/form-view/style.css +1 -1
  127. package/fy-array/index.mjs +9 -9
  128. package/fy-array/style.css +1 -1
  129. package/fy-article/index.mjs +7 -7
  130. package/fy-article/style.css +1 -1
  131. package/fy-cascader/index.mjs +2 -2
  132. package/fy-checkbox/index.mjs +6 -6
  133. package/fy-checkbox/style.css +1 -1
  134. package/fy-code/index.mjs +2 -2
  135. package/fy-curd/index.mjs +9 -9
  136. package/fy-curd/style.css +1 -1
  137. package/fy-date/index.mjs +8 -8
  138. package/fy-date/style.css +1 -1
  139. package/fy-draggable/index.mjs +2 -2
  140. package/fy-draggable/style.css +1 -1
  141. package/fy-dynamic/index.mjs +7 -7
  142. package/fy-dynamic/style.css +1 -1
  143. package/fy-empty/index.mjs +10 -10
  144. package/fy-empty/style.css +1 -1
  145. package/fy-form/index.mjs +42 -42
  146. package/fy-form/style.css +1 -1
  147. package/fy-form-design/index.mjs +3 -3
  148. package/fy-form-design/style.css +1 -1
  149. package/fy-input/index.mjs +2 -2
  150. package/fy-input-color/index.mjs +2 -2
  151. package/fy-input-icon/index.mjs +5 -5
  152. package/fy-input-icon/style.css +1 -1
  153. package/fy-input-map/index.mjs +8 -8
  154. package/fy-input-map/style.css +1 -1
  155. package/fy-input-number/index.mjs +2 -2
  156. package/fy-input-table/index.mjs +2 -2
  157. package/fy-input-table/style.css +1 -1
  158. package/fy-input-tree/index.mjs +6 -6
  159. package/fy-input-tree/style.css +1 -1
  160. package/fy-progress/index.mjs +1 -1
  161. package/fy-radio/index.mjs +6 -6
  162. package/fy-radio/style.css +1 -1
  163. package/fy-rate/index.mjs +4 -4
  164. package/fy-rate/style.css +1 -1
  165. package/fy-select/index.mjs +27 -27
  166. package/fy-select/style.css +1 -1
  167. package/fy-slider/index.mjs +3 -3
  168. package/fy-switch/index.mjs +2 -2
  169. package/fy-tabs/index.mjs +1 -1
  170. package/fy-time/index.mjs +2 -2
  171. package/fy-title/index.mjs +14 -14
  172. package/fy-title/style.css +1 -1
  173. package/fy-tree/index.mjs +3 -3
  174. package/fy-tree/style.css +1 -1
  175. package/fy-u-editor/index.mjs +14 -14
  176. package/fy-u-editor/style.css +1 -1
  177. package/fy-upload/index.mjs +17 -17
  178. package/fy-upload/style.css +1 -1
  179. package/guide-steps/index.mjs +12 -12
  180. package/guide-steps/style.css +1 -1
  181. package/highlight-j-s/index.mjs +1 -1
  182. package/highlight-j-s/style.css +1 -1
  183. package/icon-card/index.mjs +9 -9
  184. package/icon-card/style.css +1 -1
  185. package/icon-temp/index.mjs +16 -16
  186. package/icon-temp/style.css +1 -1
  187. package/iframe-window/index.mjs +5 -5
  188. package/iframe-window/style.css +1 -1
  189. package/image-cropper/index.mjs +10 -10
  190. package/image-cropper/style.css +1 -1
  191. package/image-preview/index.mjs +7 -7
  192. package/image-preview/style.css +1 -1
  193. package/image-viewer/index.mjs +5 -5
  194. package/image-viewer/style.css +1 -1
  195. package/input-number/index.mjs +2 -2
  196. package/input-number/style.css +1 -1
  197. package/input-number-range/index.mjs +7 -7
  198. package/input-number-range/style.css +1 -1
  199. package/keep-view-alive/index.mjs +1 -1
  200. package/keyboard/index.mjs +12 -12
  201. package/keyboard/style.css +1 -1
  202. package/license/index.mjs +2 -2
  203. package/loading-view/index.mjs +5 -5
  204. package/loading-view/style.css +1 -1
  205. package/login/index.mjs +4 -4
  206. package/login/style.css +1 -1
  207. package/monaco-editor/index.mjs +2 -2
  208. package/name-avatar/index.mjs +6 -6
  209. package/name-avatar/style.css +1 -1
  210. package/nav-bar/index.mjs +8 -8
  211. package/nav-bar/style.css +1 -1
  212. package/not-implement/index.mjs +15 -15
  213. package/not-implement/style.css +1 -1
  214. package/notice/index.mjs +1 -1
  215. package/notice/style.css +1 -1
  216. package/package.json +5 -2
  217. package/page/index.mjs +8 -8
  218. package/page/style.css +1 -1
  219. package/page-header/index.mjs +6 -6
  220. package/page-header/style.css +1 -1
  221. package/page-index/index.mjs +19 -19
  222. package/page-index/style.css +1 -1
  223. package/page-index-top/index.mjs +1 -1
  224. package/page-skeleton/index.mjs +21 -21
  225. package/page-skeleton/style.css +1 -1
  226. package/page-skeleton-new/index.mjs +3 -3
  227. package/page-skeleton-new/style.css +1 -1
  228. package/pageable-table/index.mjs +12 -12
  229. package/pageable-table/style.css +1 -1
  230. package/pageable-view/index.mjs +28 -28
  231. package/pageable-view/style.css +1 -1
  232. package/photo-swipe/index.mjs +1 -1
  233. package/present-view/index.mjs +7 -7
  234. package/present-view/style.css +1 -1
  235. package/queue/index.mjs +4 -4
  236. package/queue/style.css +1 -1
  237. package/record-video/index.mjs +14 -14
  238. package/record-video/style.css +1 -1
  239. package/resize-observer/index.mjs +6 -6
  240. package/resize-observer/style.css +1 -1
  241. package/search/index.mjs +6 -6
  242. package/search/style.css +1 -1
  243. package/search-popover/index.mjs +6 -6
  244. package/search-popover/style.css +1 -1
  245. package/sign/index.mjs +31 -31
  246. package/sign/style.css +1 -1
  247. package/sign-panel/index.mjs +5 -5
  248. package/sign-panel/style.css +1 -1
  249. package/skeleton/index.mjs +10 -10
  250. package/skeleton/style.css +1 -1
  251. package/split-pane/index.mjs +18 -18
  252. package/split-pane/style.css +1 -1
  253. package/stateful/index.mjs +12 -12
  254. package/stateful/style.css +1 -1
  255. package/static-pageable-table/index.mjs +9 -9
  256. package/static-pageable-table/style.css +1 -1
  257. package/swiper/index.mjs +7 -7
  258. package/swiper/style.css +1 -1
  259. package/tab/index.mjs +2 -2
  260. package/tab/style.css +1 -1
  261. package/tab-item/index.mjs +2 -2
  262. package/table-column/index.mjs +1 -1
  263. package/table-view/index.mjs +6 -6
  264. package/table-view/style.css +1 -1
  265. package/tag-render/index.mjs +29 -29
  266. package/tag-render/style.css +1 -1
  267. package/text-ellipsis/index.mjs +8 -8
  268. package/text-ellipsis/style.css +1 -1
  269. package/tinymce-editor/index.mjs +70 -70
  270. package/tinymce-editor/style.css +1 -1
  271. package/toolbar/index.mjs +1 -1
  272. package/toolbar/style.css +1 -1
  273. package/toolbar-button/index.mjs +6 -6
  274. package/toolbar-button/style.css +1 -1
  275. package/verify/index.mjs +10 -10
  276. package/verify/style.css +1 -1
  277. package/vue-cron/index.mjs +1 -1
  278. package/vue-cron/style.css +1 -1
  279. package/vue-qr-code/index.mjs +1 -1
  280. package/vue-quill-editor/index.mjs +3 -3
  281. package/vue-quill-editor/style.css +1 -1
  282. package/vue-tags-input/index.mjs +1 -1
  283. package/vue-tags-input/style.css +1 -1
  284. package/vue-tree-select/index.mjs +364 -369
  285. package/vue-tree-select/style.css +1 -1
  286. package/vue-video-player/index.mjs +25 -25
  287. package/vue-video-player/style.css +1 -1
  288. package/watermark/index.mjs +11 -11
  289. package/watermark/style.css +1 -1
  290. package/web-types.json +27 -3
  291. package/x-input-tag/index.mjs +13 -13
  292. package/x-input-tag/style.css +1 -1
  293. /package/chunks/{form-pick-mixin.61ad06b2.mjs → form-pick-mixin.y-qhZJi6.mjs} +0 -0
  294. /package/chunks/{index.57f871af.mjs → index.LGsb2aDq.mjs} +0 -0
  295. /package/chunks/{input-number-mixin.41a066be.mjs → input-number-mixin.GE2zr_3s.mjs} +0 -0
  296. /package/chunks/{json-beautifier.21cfffea.mjs → json-beautifier.fUZFSW5j.mjs} +0 -0
  297. /package/chunks/{packages.1fc9ccba.mjs → packages.v6r2Hr7E.mjs} +0 -0
  298. /package/chunks/{permission.ce5d2121.mjs → permission.E9kZbW48.mjs} +0 -0
  299. /package/chunks/{slot.4b391395.mjs → slot.j1uMmBnG.mjs} +0 -0
  300. /package/chunks/{tab-mixin.e2b9c6a4.mjs → tab-mixin.tM9jcRT8.mjs} +0 -0
  301. /package/chunks/{util.c5724c4a.mjs → util.C2Bhx22L.mjs} +0 -0
  302. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → vueComponentNormalizer.JwmUNtgn.mjs} +0 -0
@@ -1,29 +1,29 @@
1
1
  var k = Object.defineProperty, C = Object.defineProperties;
2
- var _ = Object.getOwnPropertyDescriptors;
2
+ var B = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
- var T = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var w = (e, t, i) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
4
+ var T = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
+ var w = (e, t, i) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, m = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  T.call(t, i) && w(e, i, t[i]);
8
8
  if (y)
9
9
  for (var i of y(t))
10
- B.call(t, i) && w(e, i, t[i]);
10
+ _.call(t, i) && w(e, i, t[i]);
11
11
  return e;
12
- }, f = (e, t) => C(e, _(t));
13
- var p = (e, t, i) => new Promise((a, n) => {
14
- var o = (s) => {
12
+ }, f = (e, t) => C(e, B(t));
13
+ var p = (e, t, i) => new Promise((a, o) => {
14
+ var n = (s) => {
15
15
  try {
16
16
  r(i.next(s));
17
17
  } catch (d) {
18
- n(d);
18
+ o(d);
19
19
  }
20
20
  }, l = (s) => {
21
21
  try {
22
22
  r(i.throw(s));
23
23
  } catch (d) {
24
- n(d);
24
+ o(d);
25
25
  }
26
- }, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(o, l);
26
+ }, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
27
27
  r((i = i.apply(e, t)).next());
28
28
  });
29
29
  import "tinymce/skins/lightgray/skin.min.css";
@@ -38,7 +38,7 @@ import "tinymce/plugins/fullscreen";
38
38
  import "tinymce/plugins/preview";
39
39
  import "tinymce/plugins/imagetools";
40
40
  import { getFilePrefix as S, guid as A } from "@web-utils/core";
41
- import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
41
+ import { n as F } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
42
42
  const $ = {
43
43
  Redo: "重做",
44
44
  Undo: "撤销",
@@ -428,7 +428,7 @@ const $ = {
428
428
  Spellcheck: "拼写检查",
429
429
  Caption: "标题",
430
430
  "Insert template": "插入模板"
431
- }, E = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', R = `
431
+ }, R = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', E = `
432
432
  * {
433
433
  margin: 0;
434
434
  padding: 0
@@ -457,23 +457,23 @@ function U(e) {
457
457
  let t;
458
458
  const i = e.naturalHeight, a = document.createElement("canvas");
459
459
  a.width = 1, a.height = i;
460
- const n = a.getContext("2d");
461
- n.drawImage(e, 0, 0);
460
+ const o = a.getContext("2d");
461
+ o.drawImage(e, 0, 0);
462
462
  try {
463
- t = n.getImageData(0, 0, 1, i).data;
463
+ t = o.getImageData(0, 0, 1, i).data;
464
464
  } catch (d) {
465
465
  return console.log("Cannot check verticalSquash: CORS?"), 1;
466
466
  }
467
- let o = 0, l = i, r = i;
468
- for (; r > o; )
469
- t[(r - 1) * 4 + 3] === 0 ? l = r : o = r, r = l + o >> 1;
467
+ let n = 0, l = i, r = i;
468
+ for (; r > n; )
469
+ t[(r - 1) * 4 + 3] === 0 ? l = r : n = r, r = l + n >> 1;
470
470
  const s = r / i;
471
471
  return s === 0 ? 1 : s;
472
472
  }
473
473
  function I(e) {
474
474
  const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
475
- for (let n = 0; n < t.length; n++)
476
- a[n] = t.charCodeAt(n);
475
+ for (let o = 0; o < t.length; o++)
476
+ a[o] = t.charCodeAt(o);
477
477
  return i;
478
478
  }
479
479
  function L(e) {
@@ -487,19 +487,19 @@ function x(e) {
487
487
  const i = t.byteLength;
488
488
  let a = 2;
489
489
  for (; a < i; ) {
490
- const n = t.getUint16(a, !1);
491
- if (a += 2, n === 65505) {
490
+ const o = t.getUint16(a, !1);
491
+ if (a += 2, o === 65505) {
492
492
  if (t.getUint32(a += 2, !1) !== 1165519206)
493
493
  return -1;
494
- const o = t.getUint16(a += 6, !1) === 18761;
495
- a += t.getUint32(a + 4, o);
496
- const l = t.getUint16(a, o);
494
+ const n = t.getUint16(a += 6, !1) === 18761;
495
+ a += t.getUint32(a + 4, n);
496
+ const l = t.getUint16(a, n);
497
497
  a += 2;
498
498
  for (let r = 0; r < l; r++)
499
- if (t.getUint16(a + r * 12, o) === 274)
500
- return t.getUint16(a + r * 12 + 8, o);
499
+ if (t.getUint16(a + r * 12, n) === 274)
500
+ return t.getUint16(a + r * 12 + 8, n);
501
501
  } else {
502
- if ((n & 65280) !== 65280)
502
+ if ((o & 65280) !== 65280)
503
503
  break;
504
504
  a += t.getUint16(a, !1);
505
505
  }
@@ -507,25 +507,25 @@ function x(e) {
507
507
  return -1;
508
508
  }
509
509
  function H(e, t, i) {
510
- const a = e.width, n = e.height;
511
- switch (i > 4 && (e.width = n, e.height = a), i) {
510
+ const a = e.width, o = e.height;
511
+ switch (i > 4 && (e.width = o, e.height = a), i) {
512
512
  case 2:
513
513
  t.translate(a, 0), t.scale(-1, 1);
514
514
  break;
515
515
  case 3:
516
- t.translate(a, n), t.rotate(Math.PI);
516
+ t.translate(a, o), t.rotate(Math.PI);
517
517
  break;
518
518
  case 4:
519
- t.translate(0, n), t.scale(1, -1);
519
+ t.translate(0, o), t.scale(1, -1);
520
520
  break;
521
521
  case 5:
522
522
  t.rotate(0.5 * Math.PI), t.scale(1, -1);
523
523
  break;
524
524
  case 6:
525
- t.rotate(0.5 * Math.PI), t.translate(0, -n);
525
+ t.rotate(0.5 * Math.PI), t.translate(0, -o);
526
526
  break;
527
527
  case 7:
528
- t.rotate(0.5 * Math.PI), t.translate(a, -n), t.scale(-1, 1);
528
+ t.rotate(0.5 * Math.PI), t.translate(a, -o), t.scale(-1, 1);
529
529
  break;
530
530
  case 8:
531
531
  t.rotate(-0.5 * Math.PI), t.translate(-a, 0);
@@ -541,30 +541,30 @@ function q(e) {
541
541
  function O(e, t) {
542
542
  return p(this, null, function* () {
543
543
  return new Promise((i, a) => {
544
- const n = new Image();
545
- n.onload = function() {
546
- const o = U(n), l = x(I(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
547
- let c = n.width, u = n.height;
548
- c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(n, 0, 0, c, u / o);
549
- const m = r.toDataURL("image/jpeg", t.compress.quality);
550
- /;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(j(m, `${S(t.fileName)}.jpg`));
551
- }, n.src = e;
544
+ const o = new Image();
545
+ o.onload = function() {
546
+ const n = U(o), l = x(I(o.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
547
+ let c = o.width, u = o.height;
548
+ c < u && u > g ? (c = parseInt(`${g * o.width / o.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * o.height / o.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(o, 0, 0, c, u / n);
549
+ const h = r.toDataURL("image/jpeg", t.compress.quality);
550
+ /;base64,null/.test(h) || /;base64,$/.test(h) ? (t.onError(new Error(`Compress fail, dataURL is ${h}.`)), a(Error("图片压缩失败"))) : i(j(h, `${S(t.fileName)}.jpg`));
551
+ }, o.src = e;
552
552
  });
553
553
  });
554
554
  }
555
555
  function z(e, t) {
556
556
  return p(this, null, function* () {
557
557
  const i = yield N(e);
558
- return O(i, h({ fileName: e.name }, t));
558
+ return O(i, m({ fileName: e.name }, t));
559
559
  });
560
560
  }
561
561
  function N(e) {
562
562
  return new Promise((t, i) => {
563
563
  const a = new FileReader();
564
- a.onload = function(n) {
565
- t(n.target.result);
566
- }, a.onerror = function(n) {
567
- i(n);
564
+ a.onload = function(o) {
565
+ t(o.target.result);
566
+ }, a.onerror = function(o) {
567
+ i(o);
568
568
  }, a.readAsDataURL(e);
569
569
  });
570
570
  }
@@ -572,7 +572,7 @@ function j(e = "", t) {
572
572
  const i = L(e);
573
573
  return i.name = t || `image${q(e)}`, i;
574
574
  }
575
- var W = function() {
575
+ var G = function() {
576
576
  var e = this, t = e.$createElement, i = e._self._c || t;
577
577
  return e.show ? i("div", {
578
578
  class: ["tinymce-editor", {
@@ -605,7 +605,7 @@ var W = function() {
605
605
  accept: ".jpg,.jpeg,.png,.gif,.bmp"
606
606
  }
607
607
  }, [i("span")])], 1) : e._e();
608
- }, G = [];
608
+ }, W = [];
609
609
  D.addI18n("zh_CN", $);
610
610
  const V = {
611
611
  name: "TinymceWrapper",
@@ -657,27 +657,27 @@ const V = {
657
657
  data() {
658
658
  const t = ["fullscreen", "image", "wordcount", "paste"].join(","), i = this.buttons || [];
659
659
  let a = this.toolbar || " | ";
660
- return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((o) => o.name).join(" ")}`), a += " | fullscreen", {
660
+ return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((n) => n.name).join(" ")}`), a += " | fullscreen", {
661
661
  val: "",
662
662
  show: !0,
663
663
  init: {
664
- setup: (o) => {
665
- o.settings.dialog_title = this.dialogTitle, o.settings.show_types = this.showTypes, o.on("paste", (r) => {
664
+ setup: (n) => {
665
+ n.settings.dialog_title = this.dialogTitle, n.settings.show_types = this.showTypes, n.on("paste", (r) => {
666
666
  const s = r.clipboardData || r.dataTransfer;
667
667
  return !(this.processItems(r, s.items) || this.processItems(r, s.files));
668
- }), o.on("PreInit", (r) => {
668
+ }), n.on("PreInit", (r) => {
669
669
  r.target.dom.doc.body.style.fontFamily = "微软雅黑";
670
- }), o.on("Blur", (r) => {
670
+ }), n.on("Blur", (r) => {
671
671
  this.$emit("on-blur", r);
672
- }), o.on("DialogShow", (r) => {
672
+ }), n.on("DialogShow", (r) => {
673
673
  this.$emit("dialog-show", r);
674
- }), o.on("DialogHide", (r) => {
674
+ }), n.on("DialogHide", (r) => {
675
675
  this.$emit("dialog-hide", r);
676
676
  }), i.forEach((r) => {
677
677
  r.icon = ` ${r.icon}`;
678
678
  const { onclick: s } = r;
679
- o.addButton(r.name, f(h({}, r), {
680
- onclick: () => s(o)
679
+ n.addButton(r.name, f(m({}, r), {
680
+ onclick: () => s(n)
681
681
  }));
682
682
  });
683
683
  const l = {
@@ -686,13 +686,13 @@ const V = {
686
686
  title: "上传图片",
687
687
  onclick: this.upload
688
688
  };
689
- o.addButton(l.name, f(h({}, l), {
690
- onclick: () => l.onclick(o)
689
+ n.addButton(l.name, f(m({}, l), {
690
+ onclick: () => l.onclick(n)
691
691
  }));
692
692
  },
693
693
  toolbar: a,
694
694
  placeholder: "在这里输入文字",
695
- content_style: R,
695
+ content_style: E,
696
696
  fontname: "宋体",
697
697
  fontFamily: "宋体",
698
698
  branding: !1,
@@ -703,7 +703,7 @@ const V = {
703
703
  height: "100%",
704
704
  elementpath: !1,
705
705
  plugins: `${t},${this.plugins}`,
706
- font_formats: E,
706
+ font_formats: R,
707
707
  fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt"
708
708
  }
709
709
  };
@@ -745,9 +745,9 @@ const V = {
745
745
  this.show = !0;
746
746
  },
747
747
  methods: {
748
- uploadImageFile(n) {
748
+ uploadImageFile(o) {
749
749
  return p(this, arguments, function* ({ file: e, onError: t, onProgress: i, onSuccess: a }) {
750
- var o, l;
750
+ var n, l;
751
751
  try {
752
752
  this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
753
753
  const r = yield z(e, {
@@ -758,7 +758,7 @@ const V = {
758
758
  }
759
759
  });
760
760
  this.loading.text = "上传中...";
761
- const s = yield this.api((o = this.getUploadUrl) == null ? void 0 : o.call(this), r, {
761
+ const s = yield this.api((n = this.getUploadUrl) == null ? void 0 : n.call(this), r, {
762
762
  data: { unid: A(), type: this.fileLabel },
763
763
  onprogress(d) {
764
764
  i == null || i(d);
@@ -774,10 +774,10 @@ const V = {
774
774
  processItems(e, t) {
775
775
  let i = !1;
776
776
  for (let a = 0; a < t.length; a++) {
777
- const n = t[a];
778
- if (/^image\/(jpeg|png|gif|bmp)$/.test(n.type)) {
779
- const o = n.getAsFile ? n.getAsFile() : n;
780
- this.uploadImageFile({ file: o }), e.preventDefault(), i = !0;
777
+ const o = t[a];
778
+ if (/^image\/(jpeg|png|gif|bmp)$/.test(o.type)) {
779
+ const n = o.getAsFile ? o.getAsFile() : o;
780
+ this.uploadImageFile({ file: n }), e.preventDefault(), i = !0;
781
781
  }
782
782
  }
783
783
  return i;
@@ -801,8 +801,8 @@ const V = {
801
801
  }, b = {};
802
802
  var Y = /* @__PURE__ */ F(
803
803
  V,
804
- W,
805
804
  G,
805
+ W,
806
806
  !1,
807
807
  X,
808
808
  null,
@@ -1 +1 @@
1
- .tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
1
+ .tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
package/toolbar/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NOOP as b } from "@web-utils/core";
2
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  const u = {
4
4
  back: {
5
5
  label: "返回",
package/toolbar/style.css CHANGED
@@ -1 +1 @@
1
- .toolbar{background-color:#fff;border-bottom:1px solid #e5e9ec;height:40px;padding:0 10px;line-height:40px;display:flex}.toolbar .toolbar-left{flex:auto}.toolbar .toolbar-left>.form-toolbar-button:last-child .separate-line{display:none}.toolbar .toolbar-left [class*=\ el-icon-],.toolbar .toolbar-left [class^=el-icon-],.toolbar .toolbar-left i.fa{color:#1989fa;margin-top:-1px;font-size:15px}.toolbar .toolbar-right .el-button{align-items:center;display:inline-flex}.footer-bar{flex-direction:row;justify-content:center;align-items:center;padding-top:10px;display:flex}.footer-bar .el-button{padding:10px 40px}
1
+ .toolbar{background-color:#fff;border-bottom:1px solid #e5e9ec;height:40px;padding:0 10px;line-height:40px;display:flex}.toolbar .toolbar-left{flex:auto}.toolbar .toolbar-left>.form-toolbar-button:last-child .separate-line{display:none}.toolbar .toolbar-left [class*=\ el-icon-],.toolbar .toolbar-left [class^=el-icon-],.toolbar .toolbar-left i.fa{color:#1989fa;margin-top:-1px;font-size:15px}.toolbar .toolbar-right .el-button{align-items:center;display:inline-flex}.footer-bar{flex-direction:row;justify-content:center;align-items:center;padding-top:10px;display:flex}.footer-bar .el-button{padding:10px 40px}
@@ -1,5 +1,5 @@
1
1
  var s = (t, o, e) => new Promise((c, i) => {
2
- var _ = (n) => {
2
+ var d = (n) => {
3
3
  try {
4
4
  a(e.next(n));
5
5
  } catch (l) {
@@ -11,11 +11,11 @@ var s = (t, o, e) => new Promise((c, i) => {
11
11
  } catch (l) {
12
12
  i(l);
13
13
  }
14
- }, a = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(_, u);
14
+ }, a = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(d, u);
15
15
  a((e = e.apply(t, o)).next());
16
16
  });
17
- import { isFunction as d } from "@web-utils/core";
18
- import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ import { isFunction as p } from "@web-utils/core";
18
+ import { n as _ } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
19
19
  var f = function() {
20
20
  var t = this, o = t.$createElement, e = t._self._c || o;
21
21
  return t.footer || t.toolbar.footer ? e("ElButton", {
@@ -76,7 +76,7 @@ const m = {
76
76
  return s(this, null, function* () {
77
77
  this.loading = !0;
78
78
  const { click: o } = this.$listeners;
79
- if (d(o))
79
+ if (p(o))
80
80
  try {
81
81
  yield o(t);
82
82
  } catch (e) {
@@ -86,7 +86,7 @@ const m = {
86
86
  }
87
87
  }
88
88
  }, r = {};
89
- var v = /* @__PURE__ */ p(
89
+ var v = /* @__PURE__ */ _(
90
90
  m,
91
91
  f,
92
92
  b,
@@ -1 +1 @@
1
- .form-toolbar-button .separate-line{vertical-align:middle;background-color:#aaa;width:1px;height:18px;margin:0 10px;display:inline-block}.form-toolbar-button .form-toolbar-button .el-button{align-items:center;display:inline-flex}.form-toolbar-button .form-toolbar-button .el-button:hover{border-color:transparent}
1
+ .form-toolbar-button .separate-line{vertical-align:middle;background-color:#aaa;width:1px;height:18px;margin:0 10px;display:inline-block}.form-toolbar-button .form-toolbar-button .el-button{align-items:center;display:inline-flex}.form-toolbar-button .form-toolbar-button .el-button:hover{border-color:transparent}
package/verify/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { s as n } from "../chunks/util.c5724c4a.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import { s as n } from "../chunks/util.C2Bhx22L.mjs";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var l = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
5
5
  return s("div", {
@@ -12,7 +12,7 @@ var l = function() {
12
12
  }, [t._v(" " + t._s(i) + " ")]);
13
13
  }), 0);
14
14
  }, u = [];
15
- const _ = {
15
+ const c = {
16
16
  name: "Verify",
17
17
  props: {
18
18
  size: {
@@ -58,23 +58,23 @@ const _ = {
58
58
  }
59
59
  }
60
60
  }, r = {};
61
- var c = /* @__PURE__ */ o(
62
- _,
61
+ var m = /* @__PURE__ */ o(
62
+ c,
63
63
  l,
64
64
  u,
65
65
  !1,
66
- m,
66
+ _,
67
67
  null,
68
68
  null,
69
69
  null
70
70
  );
71
- function m(t) {
71
+ function _(t) {
72
72
  for (let e in r)
73
73
  this[e] = r[e];
74
74
  }
75
- const f = /* @__PURE__ */ function() {
76
- return c.exports;
75
+ const h = /* @__PURE__ */ function() {
76
+ return m.exports;
77
77
  }();
78
78
  export {
79
- f as default
79
+ h as default
80
80
  };
package/verify/style.css CHANGED
@@ -1 +1 @@
1
- .avue-verify__item{box-sizing:border-box;text-align:center;border:1px solid #e1e1e1;margin:0 4px;padding:5px 10px;font-size:64px;display:inline-block}
1
+ .avue-verify__item{box-sizing:border-box;text-align:center;border:1px solid #e1e1e1;margin:0 4px;padding:5px 10px;font-size:64px;display:inline-block}
@@ -1,4 +1,4 @@
1
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import { n as s } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
2
2
  const c = {
3
3
  Seconds: {
4
4
  name: "秒",
@@ -1 +1 @@
1
- .vue-cron .language{z-index:1;position:absolute;right:25px}.vue-cron .el-tabs{box-shadow:none}.vue-cron .tabBody .el-row{margin:10px 0}.vue-cron .tabBody .el-row .long .el-select{width:350px}.vue-cron .tabBody .el-row .el-input-number{width:110px}.vue-cron .bottom{text-align:center;width:100%;margin-top:5px;position:relative}.vue-cron .bottom .value{vertical-align:middle;font-size:18px}
1
+ .vue-cron .language{z-index:1;position:absolute;right:25px}.vue-cron .el-tabs{box-shadow:none}.vue-cron .tabBody .el-row{margin:10px 0}.vue-cron .tabBody .el-row .long .el-select{width:350px}.vue-cron .tabBody .el-row .el-input-number{width:110px}.vue-cron .bottom{text-align:center;width:100%;margin-top:5px;position:relative}.vue-cron .bottom .value{vertical-align:middle;font-size:18px}
@@ -15,7 +15,7 @@ var o = (t, e, s) => new Promise((u, r) => {
15
15
  a((s = s.apply(t, e)).next());
16
16
  });
17
17
  import { drawToCanvas as p, genDataURL as d, genSVG as h } from "@web-utils/integrations/qrcode";
18
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
+ import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
19
19
  const m = {
20
20
  name: "VueQrCode",
21
21
  props: {
@@ -2,7 +2,7 @@ import "quill/dist/quill.core.css";
2
2
  import "quill/dist/quill.snow.css";
3
3
  import "quill/dist/quill.bubble.css";
4
4
  import s from "quill";
5
- import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ import { n } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
6
6
  var o = function() {
7
7
  var t = this, i = t.$createElement, e = t._self._c || i;
8
8
  return e("div", {
@@ -109,9 +109,9 @@ function d(t) {
109
109
  for (let i in l)
110
110
  this[i] = l[i];
111
111
  }
112
- const _ = /* @__PURE__ */ function() {
112
+ const b = /* @__PURE__ */ function() {
113
113
  return h.exports;
114
114
  }();
115
115
  export {
116
- _ as default
116
+ b as default
117
117
  };
@@ -1 +1 @@
1
- .vue-quill-editor .quill-editor{min-height:400px}
1
+ .vue-quill-editor .quill-editor{min-height:400px}
@@ -1,4 +1,4 @@
1
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import { n as l } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
2
2
  var h = function() {
3
3
  var e = this, s = e.$createElement, a = e._self._c || s;
4
4
  return a("div", {
@@ -1 +1 @@
1
- .tags-input{flex-wrap:wrap;align-items:center;display:flex}.tags-input input{background:0 0;border:none;flex:auto}.tags-input input:focus{outline:none}.tags-input input[type=text]{color:#495057}.tags-input-wrapper-default{background:#fff;border:1px solid #dbdbdb;border-radius:.25rem;padding:.5rem .25rem}.tags-input span{margin-right:.3rem}.tags-input-remove{cursor:pointer;width:.5rem;height:.5rem;display:inline-block;position:relative}.tags-input-remove:before,.tags-input-remove:after{content:"";background:#ea0000;width:100%;height:2px;margin-top:-1px;position:absolute;top:50%;left:0}.tags-input-remove:before{transform:rotate(45deg)}.tags-input-remove:after{transform:rotate(-45deg)}.tags-input-badge{white-space:nowrap;text-align:center;vertical-align:baseline;border-radius:.25rem;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;display:inline-block}.tags-input-badge-pill{border-radius:10rem;padding-left:.6em;padding-right:.6em}.tags-input-badge-selected-default{color:#212529;background-color:#f0f1f2}.typeahead-hide-btn{color:#999!important}.typeahead-badges>span{cursor:pointer;margin-right:.3rem}.typeahead-dropdown{z-index:1000;border-radius:4px;width:100%;max-height:150px;margin:0;padding:0;list-style-type:none;position:absolute;top:50px;right:0;overflow:auto;box-shadow:0 0 5px #d7d7d7}.typeahead-dropdown li{cursor:pointer;padding:.25rem 1rem}.tags-input-typeahead-item-default{color:gray;background-color:#fff}.tags-input-typeahead-item-highlighted-default{background-color:#f5f7fa}
1
+ .tags-input{flex-wrap:wrap;align-items:center;display:flex}.tags-input input{background:0 0;border:none;flex:auto}.tags-input input:focus{outline:none}.tags-input input[type=text]{color:#495057}.tags-input-wrapper-default{background:#fff;border:1px solid #dbdbdb;border-radius:.25rem;padding:.5rem .25rem}.tags-input span{margin-right:.3rem}.tags-input-remove{cursor:pointer;width:.5rem;height:.5rem;display:inline-block;position:relative}.tags-input-remove:before,.tags-input-remove:after{content:"";background:#ea0000;width:100%;height:2px;margin-top:-1px;position:absolute;top:50%;left:0}.tags-input-remove:before{transform:rotate(45deg)}.tags-input-remove:after{transform:rotate(-45deg)}.tags-input-badge{white-space:nowrap;text-align:center;vertical-align:baseline;border-radius:.25rem;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;display:inline-block}.tags-input-badge-pill{border-radius:10rem;padding-left:.6em;padding-right:.6em}.tags-input-badge-selected-default{color:#212529;background-color:#f0f1f2}.typeahead-hide-btn{color:#999!important}.typeahead-badges>span{cursor:pointer;margin-right:.3rem}.typeahead-dropdown{z-index:1000;border-radius:4px;width:100%;max-height:150px;margin:0;padding:0;list-style-type:none;position:absolute;top:50px;right:0;overflow:auto;box-shadow:0 0 5px #d7d7d7}.typeahead-dropdown li{cursor:pointer;padding:.25rem 1rem}.tags-input-typeahead-item-default{color:gray;background-color:#fff}.tags-input-typeahead-item-highlighted-default{background-color:#f5f7fa}