@web-utils/component 3.8.3 → 4.0.1

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 (211) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/index.mjs +13 -13
  4. package/card/style.css +1 -1
  5. package/carousel/style.css +1 -1
  6. package/chat/index.mjs +2 -2
  7. package/chat/style.css +1 -1
  8. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  9. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  10. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  11. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  12. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  13. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  14. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  15. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  16. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  17. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  18. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  19. package/chunks/core.DJEgjQW6.mjs +54 -0
  20. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  21. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  22. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  23. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/form-input.B8z37eqj.mjs +31 -0
  25. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  26. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  27. package/chunks/helper.BiMLcEEk.mjs +41 -0
  28. package/chunks/index.9OxHjTIE.mjs +16 -0
  29. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  30. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  31. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  32. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  33. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  34. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  35. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  36. package/color-picker/index.mjs +19 -37
  37. package/comment/style.css +1 -1
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.mjs +1 -1
  40. package/context-menu/style.css +1 -1
  41. package/count-up/index.mjs +13 -24
  42. package/custom-scrollbar/index.mjs +1 -2
  43. package/data-operatext/style.css +1 -1
  44. package/data-panel/style.css +1 -1
  45. package/data-pay/style.css +1 -1
  46. package/data-price/style.css +1 -1
  47. package/data-rotate/style.css +1 -1
  48. package/data-table-picker/index.mjs +1 -1
  49. package/data-tabs/style.css +1 -1
  50. package/dialog-form/index.mjs +16 -28
  51. package/dynamic-table/style.css +1 -1
  52. package/easy-popup/index.mjs +22 -40
  53. package/easy-popup/style.css +1 -1
  54. package/editable-tree/index.mjs +203 -250
  55. package/editable-tree/style.css +1 -1
  56. package/element-dialog/index.mjs +30 -52
  57. package/element-dialog/style.css +1 -1
  58. package/flex-column/index.mjs +13 -25
  59. package/flex-item/index.mjs +15 -27
  60. package/flex-row/index.mjs +13 -25
  61. package/flow/index.mjs +30 -32
  62. package/flow-designer/index.mjs +344 -375
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +64 -91
  66. package/form-block/index.mjs +33 -26
  67. package/form-card/index.mjs +25 -0
  68. package/form-cascader/index.mjs +70 -67
  69. package/form-checkbox/index.mjs +71 -0
  70. package/form-checkbox-group/index.mjs +33 -53
  71. package/form-date-picker/index.mjs +44 -73
  72. package/form-holder/index.mjs +60 -64
  73. package/form-holder/style.css +1 -0
  74. package/form-input/index.mjs +62 -40
  75. package/form-input-cron-expression/index.mjs +77 -0
  76. package/form-input-cron-expression/style.css +1 -0
  77. package/form-input-email/index.mjs +21 -33
  78. package/form-input-id-card/index.mjs +25 -38
  79. package/form-input-number/index.mjs +39 -42
  80. package/form-input-number/style.css +1 -1
  81. package/form-input-phone-number/index.mjs +26 -37
  82. package/form-input-tag/index.mjs +32 -34
  83. package/form-input-time/index.mjs +22 -37
  84. package/form-item/index.mjs +109 -101
  85. package/form-item/style.css +1 -1
  86. package/form-item-config-provider/index.mjs +18 -10
  87. package/form-item-group/index.mjs +73 -69
  88. package/form-item-group/style.css +1 -1
  89. package/form-radio-group/index.mjs +41 -36
  90. package/form-radio-group/style.css +1 -1
  91. package/form-select/index.mjs +142 -75
  92. package/form-select/style.css +1 -0
  93. package/form-switch/index.mjs +29 -34
  94. package/form-table/index.mjs +85 -0
  95. package/form-table-plus/index.mjs +109 -0
  96. package/form-textarea/index.mjs +23 -35
  97. package/form-tree-select/index.mjs +72 -0
  98. package/form-tree-select/style.css +1 -0
  99. package/form-tree-select-multiple/index.mjs +78 -0
  100. package/form-view/index.mjs +43 -77
  101. package/form-view/style.css +1 -1
  102. package/fy-array/index.mjs +2 -2
  103. package/fy-cascader/index.mjs +1 -1
  104. package/fy-checkbox/index.mjs +1 -1
  105. package/fy-code/index.mjs +1 -1
  106. package/fy-curd/index.mjs +12 -17
  107. package/fy-curd/style.css +1 -1
  108. package/fy-date/index.mjs +1 -1
  109. package/fy-draggable/index.mjs +5 -7
  110. package/fy-draggable/style.css +1 -1
  111. package/fy-dynamic/index.mjs +14 -16
  112. package/fy-empty/index.mjs +1 -1
  113. package/fy-empty/style.css +1 -1
  114. package/fy-form/index.mjs +117 -136
  115. package/fy-form/style.css +1 -1
  116. package/fy-form-design/index.mjs +319 -345
  117. package/fy-form-design/style.css +1 -1
  118. package/fy-input/index.mjs +2 -2
  119. package/fy-input-color/index.mjs +1 -1
  120. package/fy-input-icon/index.mjs +1 -1
  121. package/fy-input-map/index.mjs +21 -26
  122. package/fy-input-map/style.css +1 -1
  123. package/fy-input-number/index.mjs +1 -1
  124. package/fy-input-table/index.mjs +10 -12
  125. package/fy-input-tree/index.mjs +1 -1
  126. package/fy-radio/index.mjs +1 -1
  127. package/fy-rate/index.mjs +1 -1
  128. package/fy-select/index.mjs +4 -4
  129. package/fy-slider/index.mjs +2 -2
  130. package/fy-switch/index.mjs +1 -1
  131. package/fy-tabs/index.mjs +0 -1
  132. package/fy-time/index.mjs +1 -1
  133. package/fy-title/index.mjs +1 -1
  134. package/fy-tree/index.mjs +1 -1
  135. package/fy-u-editor/index.mjs +77 -103
  136. package/fy-upload/index.mjs +3 -3
  137. package/fy-upload/style.css +1 -1
  138. package/highlight-j-s/index.mjs +1 -1
  139. package/highlight-j-s/style.css +1 -1
  140. package/image-cropper/index.mjs +14 -65
  141. package/image-preview/index.mjs +17 -45
  142. package/image-preview/style.css +1 -1
  143. package/image-viewer/style.css +1 -1
  144. package/index.mjs +666 -496
  145. package/input-number/index.mjs +64 -9
  146. package/keyboard/style.css +1 -1
  147. package/license/index.mjs +1 -1
  148. package/login/index.mjs +1 -1
  149. package/monaco-editor/index.mjs +44 -74
  150. package/name-avatar/style.css +1 -1
  151. package/package.json +18 -17
  152. package/page-index/index.mjs +30 -54
  153. package/page-index-top/index.mjs +25 -47
  154. package/pageable-table/index.mjs +354 -226
  155. package/pageable-table/style.css +1 -1
  156. package/pageable-view/index.mjs +63 -106
  157. package/photo-swipe/index.mjs +51 -74
  158. package/picker-table-view/index.mjs +117 -0
  159. package/present-view/index.mjs +43 -77
  160. package/present-view/style.css +1 -1
  161. package/record-video/index.mjs +1 -1
  162. package/resize-observer/index.mjs +1 -1
  163. package/resize-observer/style.css +1 -1
  164. package/search/index.mjs +2 -2
  165. package/search/style.css +1 -1
  166. package/search-popover/index.mjs +28 -48
  167. package/search-popover/style.css +1 -1
  168. package/sign/index.mjs +2 -2
  169. package/sign-panel/style.css +1 -1
  170. package/skeleton-panel/index.mjs +38 -0
  171. package/skeleton-panel/style.css +1 -0
  172. package/split-pane/index.mjs +31 -49
  173. package/split-pane/style.css +1 -1
  174. package/sub-table/index.mjs +206 -0
  175. package/sub-table/style.css +1 -0
  176. package/sub-table-plus/index.mjs +231 -0
  177. package/sub-table-plus/style.css +1 -0
  178. package/swiper/index.mjs +18 -38
  179. package/swiper/style.css +1 -1
  180. package/tab/index.mjs +1 -1
  181. package/tab/style.css +1 -1
  182. package/tab-item/index.mjs +2 -2
  183. package/table-column/index.mjs +112 -37
  184. package/table-column/style.css +1 -0
  185. package/table-view/index.mjs +178 -135
  186. package/table-view/style.css +1 -1
  187. package/tabs-view/index.mjs +104 -0
  188. package/tabs-view/style.css +1 -0
  189. package/tag-render/index.mjs +13 -24
  190. package/text-ellipsis/index.mjs +1 -1
  191. package/toolbar/index.mjs +115 -58
  192. package/toolbar/style.css +1 -1
  193. package/toolbar-button/index.mjs +92 -48
  194. package/verify/index.mjs +1 -1
  195. package/vue-cron/index.mjs +48 -66
  196. package/vue-qr-code/index.mjs +14 -32
  197. package/vue-quill-editor/index.mjs +3 -3
  198. package/vue-tags-input/index.mjs +1 -1
  199. package/vue-tree-select/index.mjs +352 -393
  200. package/vue-tree-select/style.css +1 -1
  201. package/vue-video-player/index.mjs +36 -67
  202. package/watermark/index.mjs +21 -31
  203. package/web-types.json +9240 -3843
  204. package/x-input-tag/index.mjs +29 -61
  205. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  206. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  207. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  208. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  209. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  210. package/toolbar-button/style.css +0 -1
  211. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1,13 +1,68 @@
1
1
  import s from "element-ui/src/mixins/focus";
2
2
  import u from "element-ui/src/directives/repeat-click";
3
- import { i as o } from "../chunks/input-number-mixin.CzjtGf2n.mjs";
4
- import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const l = {
3
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const a = {
5
+ props: {
6
+ suffixIcon: {
7
+ type: String
8
+ },
9
+ prefixIcon: {
10
+ type: String
11
+ },
12
+ step: {
13
+ type: Number,
14
+ default: 1
15
+ },
16
+ stepStrictly: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ max: {
21
+ type: Number,
22
+ default: 1 / 0
23
+ },
24
+ min: {
25
+ type: Number,
26
+ default: -1 / 0
27
+ },
28
+ value: {
29
+ type: [Number, String]
30
+ },
31
+ disabled: Boolean,
32
+ size: {
33
+ type: String
34
+ },
35
+ controls: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ controlsPosition: {
40
+ type: String,
41
+ default: ""
42
+ },
43
+ name: {
44
+ type: String
45
+ },
46
+ label: {
47
+ type: String
48
+ },
49
+ placeholder: {
50
+ type: String
51
+ },
52
+ precision: {
53
+ type: Number,
54
+ default: void 0,
55
+ validator(t) {
56
+ return t >= 0 && t === parseInt(t, 10);
57
+ }
58
+ }
59
+ }
60
+ }, l = {
6
61
  name: "InputNumber",
7
62
  directives: {
8
63
  repeatClick: u
9
64
  },
10
- mixins: [s("input"), o],
65
+ mixins: [s("input"), a],
11
66
  inject: {
12
67
  elForm: {
13
68
  default: ""
@@ -137,7 +192,7 @@ const l = {
137
192
  }
138
193
  }
139
194
  };
140
- var c = function() {
195
+ var p = function() {
141
196
  var e = this, n = e._self._c;
142
197
  return n("div", { class: [
143
198
  "input-number",
@@ -163,15 +218,15 @@ var c = function() {
163
218
  }, proxy: !0 }, { key: "suffix", fn: function() {
164
219
  return [e._t("suffix")];
165
220
  }, proxy: !0 }], null, !0) })], 1);
166
- }, p = [], h = /* @__PURE__ */ a(
221
+ }, c = [], d = /* @__PURE__ */ o(
167
222
  l,
168
- c,
169
223
  p,
224
+ c,
170
225
  !1,
171
226
  null,
172
227
  null
173
228
  );
174
- const y = h.exports;
229
+ const b = d.exports;
175
230
  export {
176
- y as default
231
+ b as default
177
232
  };
@@ -1 +1 @@
1
- .avue-keyboard--default .akeyboard-keyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--default .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--default .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--default .akeyboard-keyboard-keys:hover{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-keys-Delete,.avue-keyboard--default .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--default .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--default .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--default .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--default .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--default .keyboard-keyboard-keys-focus{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--default .akeyboard-numberKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--default .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--default .akeyboard-mobileKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--default .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--green .akeyboard-keyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--green .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--green .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#cc9;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--green .akeyboard-keyboard-keys:hover{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-keys-Delete,.avue-keyboard--green .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--green .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--green .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--green .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--green .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--green .keyboard-keyboard-keys-focus{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--green .akeyboard-numberKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--green .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--green .akeyboard-mobileKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#cc9;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--green .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#693!important}.avue-keyboard--dark .akeyboard-keyboard{box-sizing:border-box;color:#fff;background:#000;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--dark .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--dark .akeyboard-keyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#393d49;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--dark .akeyboard-keyboard-keys:hover{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-keys-Delete,.avue-keyboard--dark .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--dark .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--dark .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--dark .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--dark .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--dark .keyboard-keyboard-keys-focus{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--dark .akeyboard-numberKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--dark .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--dark .akeyboard-mobileKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#393d49;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--classic .akeyboard-keyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--classic .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--classic .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--classic .akeyboard-keyboard-keys:hover{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-keys-Delete,.avue-keyboard--classic .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--classic .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--classic .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--classic .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--classic .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--classic .keyboard-keyboard-keys-focus{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--classic .akeyboard-numberKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--classic .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--classic .akeyboard-mobileKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#c2c2c2!important}
1
+ .avue-keyboard--default .akeyboard-keyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--default .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--default .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--default .akeyboard-keyboard-keys:hover{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-keys-Delete,.avue-keyboard--default .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--default .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--default .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--default .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--default .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--default .keyboard-keyboard-keys-focus{color:#fff;background:#1e9fff}.avue-keyboard--default .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--default .akeyboard-numberKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--default .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--default .akeyboard-mobileKeyboard{box-sizing:border-box;background:#f0f0f0;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--default .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--default .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--default .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--green .akeyboard-keyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--green .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--green .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#cc9;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--green .akeyboard-keyboard-keys:hover{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-keys-Delete,.avue-keyboard--green .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--green .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--green .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--green .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--green .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--green .keyboard-keyboard-keys-focus{color:#fff;background:#693}.avue-keyboard--green .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--green .akeyboard-numberKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--green .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--green .akeyboard-mobileKeyboard{box-sizing:border-box;background:#030;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#cc9;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--green .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--green .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#693!important}.avue-keyboard--green .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#693!important}.avue-keyboard--dark .akeyboard-keyboard{box-sizing:border-box;color:#fff;background:#000;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--dark .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--dark .akeyboard-keyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#393d49;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--dark .akeyboard-keyboard-keys:hover{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-keys-Delete,.avue-keyboard--dark .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--dark .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--dark .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--dark .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--dark .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--dark .keyboard-keyboard-keys-focus{background:#1e9fff}.avue-keyboard--dark .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--dark .akeyboard-numberKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--dark .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--dark .akeyboard-mobileKeyboard{box-sizing:border-box;background:#000;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys{box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#393d49;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#1e9fff!important}.avue-keyboard--dark .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#1e9fff!important}.avue-keyboard--classic .akeyboard-keyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:9px 5px 5px}.avue-keyboard--classic .akeyboard-keyboard-innerKeys{text-align:center}.avue-keyboard--classic .akeyboard-keyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:5px;min-width:40px;height:40px;margin:4px;padding:0 10px;line-height:40px;display:inline-block}.avue-keyboard--classic .akeyboard-keyboard-keys:hover{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-keys-Delete,.avue-keyboard--classic .akeyboard-keyboard-keys-Tab{width:80px}.avue-keyboard--classic .akeyboard-keyboard-keys-Caps{width:77px}.avue-keyboard--classic .akeyboard-keyboard-keys-Enter{width:90px}.avue-keyboard--classic .akeyboard-keyboard-keys-Shift{width:106px}.avue-keyboard--classic .akeyboard-keyboard-keys-Space{width:350px}.avue-keyboard--classic .keyboard-keyboard-keys-focus{color:#fff;background:#c2c2c2}.avue-keyboard--classic .akeyboard-keyboard-fixedBottomCenter{position:fixed;bottom:0;left:0;border-radius:0!important;width:100%!important;height:auto!important}.avue-keyboard--classic .akeyboard-numberKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:10px 5px 5px}.avue-keyboard--classic .akeyboard-numberKeyboard-keys-Enter{width:100px;height:40px}.avue-keyboard--classic .akeyboard-mobileKeyboard{box-sizing:border-box;background:#2f4056;border-radius:5px;width:100%;height:100%;padding:11px 5px 5px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys{box-sizing:border-box;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:3px;min-width:25px;height:25px;margin:3px 2px 2px;padding:0 10px;font-size:10px;line-height:25px;display:inline-block}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys:hover{color:#fff;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇧,.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-⇦{background-color:#999faf;width:25px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Space{width:100px;height:28px;margin-left:55px;line-height:28px}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-Enter{color:#fff;width:55px;height:28px;line-height:28px;background:#c2c2c2!important}.avue-keyboard--classic .akeyboard-mobileKeyboard-keys-focus{color:#fff;background:#c2c2c2!important}
package/license/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "../chunks/util.CoahLDYn.mjs";
1
+ import { C as r } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const l = {
4
4
  name: "License",
package/login/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as l } from "../chunks/util.CoahLDYn.mjs";
1
+ import { s as l } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { isBlank as n } from "@web-utils/core";
3
3
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const r = "发送验证码", i = "{{time}}s后重获取", c = {
@@ -1,35 +1,8 @@
1
- var y = Object.defineProperty;
2
- var u = Object.getOwnPropertySymbols;
3
- var _ = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
4
- var c = (e, t, i) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, f = (e, t) => {
5
- for (var i in t || (t = {}))
6
- _.call(t, i) && c(e, i, t[i]);
7
- if (u)
8
- for (var i of u(t))
9
- M.call(t, i) && c(e, i, t[i]);
10
- return e;
11
- };
12
- var a = (e, t, i) => new Promise((d, s) => {
13
- var r = (n) => {
14
- try {
15
- l(i.next(n));
16
- } catch (h) {
17
- s(h);
18
- }
19
- }, p = (n) => {
20
- try {
21
- l(i.throw(n));
22
- } catch (h) {
23
- s(h);
24
- }
25
- }, l = (n) => n.done ? d(n.value) : Promise.resolve(n.value).then(r, p);
26
- l((i = i.apply(e, t)).next());
27
- });
28
- import * as o from "monaco-editor/esm/vs/editor/editor.api";
29
- import { c as g } from "../chunks/json-beautifier.Bp3GslGm.mjs";
30
- import { NOOP as m } from "@web-utils/core";
31
- import { n as E } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
32
- const v = {
1
+ import * as i from "monaco-editor/esm/vs/editor/editor.api";
2
+ import { c as d } from "../chunks/json-beautifier.Bp3GslGm.mjs";
3
+ import { NOOP as r } from "@web-utils/core";
4
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const a = {
33
6
  name: "MonacoEditor",
34
7
  props: {
35
8
  diffEditor: { type: Boolean, default: !1 },
@@ -48,8 +21,8 @@ const v = {
48
21
  return {};
49
22
  }
50
23
  },
51
- editorMounted: { type: Function, default: m },
52
- editorBeforeMount: { type: Function, default: m },
24
+ editorMounted: { type: Function, default: r },
25
+ editorBeforeMount: { type: Function, default: r },
53
26
  keyIndex: { type: String }
54
27
  },
55
28
  data() {
@@ -76,18 +49,18 @@ const v = {
76
49
  },
77
50
  keyIndex() {
78
51
  let e = this.value;
79
- typeof e == "object" && (e = g(e)), this.editor && e !== this._getValue() && this._setValue(e);
52
+ typeof e == "object" && (e = d(e)), this.editor && e !== this._getValue() && this._setValue(e);
80
53
  },
81
54
  language() {
82
55
  if (this.editor)
83
56
  if (this.diffEditor) {
84
57
  const { original: e, modified: t } = this.editor.getModel();
85
- o.editor.setModelLanguage(e, this.language), o.editor.setModelLanguage(t, this.language);
58
+ i.editor.setModelLanguage(e, this.language), i.editor.setModelLanguage(t, this.language);
86
59
  } else
87
- o.editor.setModelLanguage(this.editor.getModel(), this.language);
60
+ i.editor.setModelLanguage(this.editor.getModel(), this.language);
88
61
  },
89
62
  theme() {
90
- this.editor && o.editor.setTheme(this.theme);
63
+ this.editor && i.editor.setTheme(this.theme);
91
64
  },
92
65
  style() {
93
66
  this.$nextTick(() => {
@@ -108,41 +81,38 @@ const v = {
108
81
  },
109
82
  methods: {
110
83
  initMonaco() {
111
- const { value: e, language: t, theme: i, readOnly: d, options: s } = this;
112
- Object.assign(s, this._editorBeforeMount()), this.editor = o.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, f({
113
- value: typeof e == "string" ? e : g(e),
84
+ const { value: e, language: t, theme: o, readOnly: n, options: s } = this;
85
+ Object.assign(s, this._editorBeforeMount()), this.editor = i.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
86
+ value: typeof e == "string" ? e : d(e),
114
87
  language: t,
115
- theme: i,
116
- readOnly: d
117
- }, s)), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor), this.editor.addAction({
88
+ theme: o,
89
+ readOnly: n,
90
+ ...s
91
+ }), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor), this.editor.addAction({
118
92
  id: "f1",
119
93
  label: "full screen",
120
- keybindings: [o.KeyCode.F1],
121
- run: (r) => {
94
+ keybindings: [i.KeyCode.F1],
95
+ run: (l) => {
122
96
  this.toggleFullScreen();
123
97
  }
124
98
  }), this.editor.addAction({
125
99
  id: "escape",
126
100
  label: "exit full screen",
127
- keybindings: [o.KeyCode.Escape],
128
- run: (r) => {
101
+ keybindings: [i.KeyCode.Escape],
102
+ run: (l) => {
129
103
  this.fullscreen = !1;
130
104
  }
131
105
  });
132
106
  },
133
107
  toggleFullScreen() {
134
- return a(this, null, function* () {
135
- this.fullscreen = !this.fullscreen;
136
- });
108
+ this.fullscreen = !this.fullscreen;
137
109
  },
138
- onResize() {
139
- return a(this, null, function* () {
140
- yield this.$nextTick();
141
- const e = this.$el;
142
- this.editor.layout({
143
- width: e.clientWidth,
144
- height: e.clientHeight
145
- });
110
+ async onResize() {
111
+ await this.$nextTick();
112
+ const e = this.$el;
113
+ this.editor.layout({
114
+ width: e.clientWidth,
115
+ height: e.clientHeight
146
116
  });
147
117
  },
148
118
  _handleFullScreen() {
@@ -174,9 +144,9 @@ const v = {
174
144
  return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
175
145
  },
176
146
  _setModel(e, t) {
177
- const { language: i } = this, d = o.editor.createModel(t, i), s = o.editor.createModel(e, i);
147
+ const { language: o } = this, n = i.editor.createModel(t, o), s = i.editor.createModel(e, o);
178
148
  this.editor.setModel({
179
- original: d,
149
+ original: n,
180
150
  modified: s
181
151
  });
182
152
  },
@@ -189,15 +159,15 @@ const v = {
189
159
  return e ? e.getValue() : "";
190
160
  },
191
161
  _editorBeforeMount() {
192
- return this.editorBeforeMount(o) || {};
162
+ return this.editorBeforeMount(i) || {};
193
163
  },
194
164
  _editorMounted(e) {
195
- this.editorMounted(e, o), this.diffEditor ? e.onDidUpdateDiff((t) => {
196
- const i = this._getValue();
197
- this._emitChange(i, t);
165
+ this.editorMounted(e, i), this.diffEditor ? e.onDidUpdateDiff((t) => {
166
+ const o = this._getValue();
167
+ this._emitChange(o, t);
198
168
  }) : e.onDidChangeModelContent((t) => {
199
- const i = this._getValue();
200
- this._emitChange(i, t);
169
+ const o = this._getValue();
170
+ this._emitChange(o, t);
201
171
  });
202
172
  },
203
173
  _emitChange(e, t) {
@@ -222,16 +192,16 @@ const v = {
222
192
  }) : ""
223
193
  ]);
224
194
  }
225
- }, w = null, x = null;
226
- var S = /* @__PURE__ */ E(
227
- v,
228
- w,
229
- x,
195
+ }, u = null, c = null;
196
+ var f = /* @__PURE__ */ h(
197
+ a,
198
+ u,
199
+ c,
230
200
  !1,
231
201
  null,
232
202
  null
233
203
  );
234
- const V = S.exports;
204
+ const y = f.exports;
235
205
  export {
236
- V as default
206
+ y as default
237
207
  };
@@ -1 +1 @@
1
- .name-avatar{width:40px;height:40px;overflow:hidden}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{justify-content:center;align-items:center;display:flex}.round{z-index:10;text-align:center;vertical-align:bottom;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:50%;font-size:8px;display:inline-block;position:relative}.square{border-radius:8px;display:block;overflow:hidden}
1
+ .name-avatar{width:40px;height:40px;overflow:hidden}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{justify-content:center;align-items:center;display:flex}.round{z-index:10;text-align:center;vertical-align:bottom;-webkit-user-select:none;user-select:none;border-radius:50%;font-size:8px;display:inline-block;position:relative}.square{border-radius:8px;display:block;overflow:hidden}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.8.3",
4
+ "version": "4.0.1",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,31 +17,32 @@
17
17
  "@tinymce/tinymce-vue": "3.2.8",
18
18
  "@wangeditor/editor": "^5.1.23",
19
19
  "@wangeditor/editor-for-vue": "^1.0.2",
20
- "@web-utils/core": "^4.0.1",
21
- "@web-utils/integrations": "^4.0.1",
22
- "@web-utils/vue": "^4.0.1",
23
- "bpmn-js": "^18.6.1",
24
- "bpmn-js-token-simulation": "^0.38.1",
25
- "codemirror": "^5.65.15",
26
- "countup.js": "^2.8.2",
20
+ "@web-utils/core": "^5.0.3",
21
+ "@web-utils/integrations": "^5.0.3",
22
+ "@web-utils/vue": "^5.0.3",
23
+ "async-validator": "1.8.5",
24
+ "bpmn-js": "^18.13.1",
25
+ "bpmn-js-token-simulation": "^0.39.3",
26
+ "codemirror": "^5.65.20",
27
+ "countup.js": "^2.10.0",
27
28
  "cronosjs": "^1.7.1",
28
- "dayjs": "^1.11.13",
29
- "diagram-js": "15.3.0",
29
+ "dayjs": "^1.11.20",
30
+ "diagram-js": "15.9.1",
30
31
  "echarts": "^6.0.0",
31
32
  "highlight.js": "^11.11.1",
32
- "lodash-es": "^4.17.21",
33
- "min-dash": "^4.2.3",
34
- "min-dom": "^5.1.1",
35
- "monaco-editor": "^0.52.2",
36
- "overlayscrollbars": "^2.11.5",
33
+ "lodash-es": "^4.17.23",
34
+ "min-dash": "^5.0.0",
35
+ "min-dom": "^5.3.0",
36
+ "monaco-editor": "^0.55.1",
37
+ "overlayscrollbars": "^2.14.0",
37
38
  "photoswipe": "^5.4.4",
38
39
  "qrcode": "^1.5.4",
39
40
  "quill": "^1.3.7",
40
41
  "resize-detector": "^0.3.0",
41
42
  "simple-uploader.js": "^0.6.0",
42
- "tiny-svg": "^4.1.3",
43
+ "tiny-svg": "^4.1.4",
43
44
  "tinymce": "4.9.11",
44
- "video.js": "^8.23.4",
45
+ "video.js": "^8.23.7",
45
46
  "viewerjs": "^1.11.7",
46
47
  "vue-cropper": "^0.6.5",
47
48
  "vuedraggable": "^2.24.3",
@@ -1,22 +1,6 @@
1
- var n = (a, t, e) => new Promise((s, r) => {
2
- var o = (i) => {
3
- try {
4
- u(e.next(i));
5
- } catch (d) {
6
- r(d);
7
- }
8
- }, p = (i) => {
9
- try {
10
- u(e.throw(i));
11
- } catch (d) {
12
- r(d);
13
- }
14
- }, u = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, p);
15
- u((e = e.apply(a, t)).next());
16
- });
17
- import { findFirstMatchNode as h, treeToArray as c } from "@web-utils/core";
18
- import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
19
- const f = {
1
+ import { findFirstMatchNode as r, treeToArray as n } from "@web-utils/core";
2
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const d = {
20
4
  name: "PageIndex",
21
5
  props: {
22
6
  menus: {
@@ -64,60 +48,52 @@ const f = {
64
48
  this.setCurrentKey(this.$route.path);
65
49
  },
66
50
  methods: {
67
- activeFirstMenu() {
68
- return n(this, null, function* () {
69
- if (c(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
70
- yield this.setCurrentKey(this.$route.path);
71
- else {
72
- const t = h(this.menus, (e) => e.path);
73
- t && (yield this.$router.push({ path: t.path, query: t.query }), yield this.setCurrentKey(t.path));
74
- }
75
- });
51
+ async activeFirstMenu() {
52
+ if (n(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
53
+ await this.setCurrentKey(this.$route.path);
54
+ else {
55
+ const t = r(this.menus, (e) => e.path);
56
+ t && (await this.$router.push({ path: t.path, query: t.query }), await this.setCurrentKey(t.path));
57
+ }
76
58
  },
77
- onNodeClick(a) {
78
- return n(this, null, function* () {
79
- a.path && a.path.indexOf("/") > -1 && (yield this.$router.push({ path: a.path, query: a.query })), yield this.setCurrentKey(a.key);
80
- });
59
+ async onNodeClick(a) {
60
+ a.path && a.path.indexOf("/") > -1 && await this.$router.push({ path: a.path, query: a.query }), await this.setCurrentKey(a.key);
81
61
  },
82
- setCurrentKey(a) {
83
- return n(this, null, function* () {
84
- var t;
85
- yield this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
86
- });
62
+ async setCurrentKey(a) {
63
+ var t;
64
+ await this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
87
65
  },
88
- beforeRouteUpdate(a, t, e) {
89
- return n(this, null, function* () {
90
- if (a.path === this.schema) {
91
- const s = h(this.menus, (r) => r.path);
92
- s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
93
- } else
94
- yield e(), yield this.setCurrentKey(this.$route.path);
95
- });
66
+ async beforeRouteUpdate(a, t, e) {
67
+ if (a.path === this.schema) {
68
+ const s = r(this.menus, (i) => i.path);
69
+ s ? (await e({ path: s.path, query: s.query }), await this.setCurrentKey(s.path)) : await e(!1);
70
+ } else
71
+ await e(), await this.setCurrentKey(this.$route.path);
96
72
  }
97
73
  }
98
74
  };
99
- var y = function() {
75
+ var h = function() {
100
76
  var t = this, e = t._self._c;
101
77
  return e("div", { staticClass: "egd-container" }, [t.aside ? e("div", { staticClass: "egd-aside", style: { width: t.asideWidth } }, [t._t("aside", function() {
102
78
  return [e("div", { staticClass: "egd-main" }, [t._t("nav-top"), e("div", { staticClass: "egd-header" }, [e("span", { staticClass: "section-title flex-not-shrink" }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
103
- return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: r }) {
79
+ return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: i }) {
104
80
  return [t._t("tree-node", function() {
105
81
  return [e("span", [e("i", { class: s.icon }), t._v(" " + t._s(s.label))])];
106
- }, { data: s, node: r })];
82
+ }, { data: s, node: i })];
107
83
  } }], null, !0) })];
108
84
  })], 2)];
109
85
  })], 2) : t._e(), e("div", { staticClass: "page-index-content", style: { width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%" } }, [t._t("default", function() {
110
86
  return [e("div", { staticClass: "page-index-content-empty" }, [t._v(" " + t._s(t.tips) + " ")])];
111
87
  })], 2)]);
112
- }, m = [], _ = /* @__PURE__ */ l(
113
- f,
114
- y,
115
- m,
88
+ }, o = [], p = /* @__PURE__ */ u(
89
+ d,
90
+ h,
91
+ o,
116
92
  !1,
117
93
  null,
118
94
  null
119
95
  );
120
- const w = _.exports;
96
+ const f = p.exports;
121
97
  export {
122
- w as default
98
+ f as default
123
99
  };
@@ -1,22 +1,6 @@
1
- var i = (s, t, e) => new Promise((a, r) => {
2
- var c = (n) => {
3
- try {
4
- u(e.next(n));
5
- } catch (o) {
6
- r(o);
7
- }
8
- }, l = (n) => {
9
- try {
10
- u(e.throw(n));
11
- } catch (o) {
12
- r(o);
13
- }
14
- }, u = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(c, l);
15
- u((e = e.apply(s, t)).next());
16
- });
17
- import { findFirstMatchNode as p, treeToArray as h } from "@web-utils/core";
18
- import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
19
- const f = {
1
+ import { findFirstMatchNode as n, treeToArray as i } from "@web-utils/core";
2
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const o = {
20
4
  name: "PageIndexTop",
21
5
  props: {
22
6
  menus: {
@@ -44,33 +28,27 @@ const f = {
44
28
  this.activeFirstMenu();
45
29
  },
46
30
  methods: {
47
- activeFirstMenu() {
48
- return i(this, null, function* () {
49
- if (h(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
50
- this.activeTab = this.$route.path;
51
- else {
52
- const t = p(this.menus, (e) => e.path);
53
- t && (this.activeTab = t.path, yield this.$router.push({ path: t.path, query: t.query }));
54
- }
55
- });
31
+ async activeFirstMenu() {
32
+ if (i(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
33
+ this.activeTab = this.$route.path;
34
+ else {
35
+ const t = n(this.menus, (e) => e.path);
36
+ t && (this.activeTab = t.path, await this.$router.push({ path: t.path, query: t.query }));
37
+ }
56
38
  },
57
- tabClick(s) {
58
- return i(this, null, function* () {
59
- yield this.$router.push(s.name);
60
- });
39
+ async tabClick(s) {
40
+ await this.$router.push(s.name);
61
41
  },
62
- beforeRouteUpdate(s, t, e) {
63
- return i(this, null, function* () {
64
- if (s.path === this.schema) {
65
- const a = p(this.menus, (r) => r.path);
66
- a ? (yield e({ path: a.path, query: a.query }), this.activeTab = a.path) : yield e(!1);
67
- } else
68
- yield e();
69
- });
42
+ async beforeRouteUpdate(s, t, e) {
43
+ if (s.path === this.schema) {
44
+ const a = n(this.menus, (r) => r.path);
45
+ a ? (await e({ path: a.path, query: a.query }), this.activeTab = a.path) : await e(!1);
46
+ } else
47
+ await e();
70
48
  }
71
49
  }
72
50
  };
73
- var d = function() {
51
+ var p = function() {
74
52
  var t = this, e = t._self._c;
75
53
  return t.menus && t.menus.length ? e("PageSkeleton", { scopedSlots: t._u([{ key: "header", fn: function() {
76
54
  return [e("PageHeader", { scopedSlots: t._u([{ key: "section-title", fn: function() {
@@ -83,15 +61,15 @@ var d = function() {
83
61
  }, proxy: !0 }], null, !1, 2288233724) }, [t._t("default", function() {
84
62
  return [e("EmptyView", { attrs: { "empty-tips": t.tips } })];
85
63
  })], 2) : e("EmptyView", { attrs: { "empty-tips": "暂无权限!" } });
86
- }, y = [], _ = /* @__PURE__ */ m(
87
- f,
88
- d,
89
- y,
64
+ }, c = [], l = /* @__PURE__ */ u(
65
+ o,
66
+ p,
67
+ c,
90
68
  !1,
91
69
  null,
92
70
  null
93
71
  );
94
- const k = _.exports;
72
+ const f = l.exports;
95
73
  export {
96
- k as default
74
+ f as default
97
75
  };