@web-utils/component 4.0.0 → 4.0.2

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 (172) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/style.css +1 -1
  4. package/carousel/style.css +1 -1
  5. package/chat/style.css +1 -1
  6. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  7. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  8. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  9. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  10. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  11. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  12. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  13. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  14. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  15. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  16. package/chunks/core.DJEgjQW6.mjs +54 -0
  17. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  18. package/chunks/dictionary.DsN-2ukC.mjs +70 -0
  19. package/chunks/form-input.B8z37eqj.mjs +31 -0
  20. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  21. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  22. package/chunks/helper.BiMLcEEk.mjs +41 -0
  23. package/chunks/index.9OxHjTIE.mjs +16 -0
  24. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  25. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  26. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  27. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  28. package/color-picker/index.mjs +19 -37
  29. package/comment/style.css +1 -1
  30. package/confirm-button/index.mjs +1 -1
  31. package/confirmable/index.mjs +1 -1
  32. package/context-menu/style.css +1 -1
  33. package/count-up/index.mjs +13 -24
  34. package/custom-scrollbar/index.mjs +1 -2
  35. package/data-operatext/style.css +1 -1
  36. package/data-panel/style.css +1 -1
  37. package/data-pay/style.css +1 -1
  38. package/data-price/style.css +1 -1
  39. package/data-rotate/style.css +1 -1
  40. package/data-table-picker/index.mjs +1 -1
  41. package/data-tabs/style.css +1 -1
  42. package/dialog-form/index.mjs +16 -28
  43. package/dynamic-table/style.css +1 -1
  44. package/easy-popup/index.mjs +22 -40
  45. package/easy-popup/style.css +1 -1
  46. package/editable-tree/index.mjs +203 -250
  47. package/editable-tree/style.css +1 -1
  48. package/element-dialog/index.mjs +30 -52
  49. package/element-dialog/style.css +1 -1
  50. package/flex-column/index.mjs +13 -25
  51. package/flex-item/index.mjs +15 -27
  52. package/flex-row/index.mjs +13 -25
  53. package/flow-designer/index.mjs +343 -374
  54. package/flow-designer/style.css +1 -1
  55. package/flow-viewer/index.mjs +64 -91
  56. package/form-block/index.mjs +33 -26
  57. package/form-card/index.mjs +25 -0
  58. package/form-cascader/index.mjs +70 -67
  59. package/form-checkbox/index.mjs +71 -0
  60. package/form-checkbox-group/index.mjs +33 -53
  61. package/form-date-picker/index.mjs +44 -73
  62. package/form-holder/index.mjs +54 -40
  63. package/form-holder/style.css +1 -0
  64. package/form-input/index.mjs +62 -40
  65. package/form-input-cron-expression/index.mjs +77 -0
  66. package/form-input-cron-expression/style.css +1 -0
  67. package/form-input-email/index.mjs +21 -33
  68. package/form-input-id-card/index.mjs +25 -38
  69. package/form-input-number/index.mjs +39 -42
  70. package/form-input-number/style.css +1 -1
  71. package/form-input-phone-number/index.mjs +26 -37
  72. package/form-input-tag/index.mjs +32 -34
  73. package/form-input-time/index.mjs +22 -37
  74. package/form-item/index.mjs +109 -101
  75. package/form-item/style.css +1 -1
  76. package/form-item-config-provider/index.mjs +18 -10
  77. package/form-item-group/index.mjs +73 -69
  78. package/form-item-group/style.css +1 -1
  79. package/form-radio-group/index.mjs +41 -36
  80. package/form-radio-group/style.css +1 -1
  81. package/form-select/index.mjs +142 -75
  82. package/form-select/style.css +1 -0
  83. package/form-switch/index.mjs +29 -34
  84. package/form-table/index.mjs +85 -0
  85. package/form-table-plus/index.mjs +109 -0
  86. package/form-textarea/index.mjs +23 -35
  87. package/form-tree-select/index.mjs +72 -0
  88. package/form-tree-select/style.css +1 -0
  89. package/form-tree-select-multiple/index.mjs +78 -0
  90. package/form-view/index.mjs +37 -69
  91. package/form-view/style.css +1 -1
  92. package/fy-curd/index.mjs +131 -140
  93. package/fy-curd/style.css +1 -1
  94. package/fy-draggable/index.mjs +16 -26
  95. package/fy-draggable/style.css +1 -1
  96. package/fy-dynamic/index.mjs +48 -57
  97. package/fy-empty/style.css +1 -1
  98. package/fy-form/style.css +1 -1
  99. package/fy-form-design/index.mjs +314 -339
  100. package/fy-form-design/style.css +1 -1
  101. package/fy-input-map/index.mjs +40 -50
  102. package/fy-input-map/style.css +1 -1
  103. package/fy-input-table/index.mjs +31 -41
  104. package/fy-u-editor/index.mjs +77 -103
  105. package/fy-upload/style.css +1 -1
  106. package/highlight-j-s/style.css +1 -1
  107. package/image-cropper/index.mjs +14 -65
  108. package/image-preview/index.mjs +17 -45
  109. package/image-preview/style.css +1 -1
  110. package/image-viewer/style.css +1 -1
  111. package/index.mjs +666 -496
  112. package/input-number/index.mjs +64 -9
  113. package/keyboard/style.css +1 -1
  114. package/monaco-editor/index.mjs +43 -71
  115. package/name-avatar/style.css +1 -1
  116. package/package.json +5 -4
  117. package/page-index/index.mjs +30 -54
  118. package/page-index-top/index.mjs +25 -47
  119. package/pageable-table/index.mjs +385 -218
  120. package/pageable-table/style.css +1 -1
  121. package/pageable-view/index.mjs +56 -95
  122. package/photo-swipe/index.mjs +51 -74
  123. package/picker-table-view/index.mjs +117 -0
  124. package/present-view/index.mjs +43 -77
  125. package/present-view/style.css +1 -1
  126. package/resize-observer/index.mjs +1 -1
  127. package/resize-observer/style.css +1 -1
  128. package/search/style.css +1 -1
  129. package/search-popover/index.mjs +28 -48
  130. package/search-popover/style.css +1 -1
  131. package/sign/index.mjs +1 -1
  132. package/sign-panel/style.css +1 -1
  133. package/skeleton-panel/index.mjs +38 -0
  134. package/skeleton-panel/style.css +1 -0
  135. package/split-pane/index.mjs +31 -49
  136. package/split-pane/style.css +1 -1
  137. package/sub-table/index.mjs +206 -0
  138. package/sub-table/style.css +1 -0
  139. package/sub-table-plus/index.mjs +231 -0
  140. package/sub-table-plus/style.css +1 -0
  141. package/swiper/index.mjs +18 -38
  142. package/swiper/style.css +1 -1
  143. package/tab/index.mjs +1 -1
  144. package/tab/style.css +1 -1
  145. package/tab-item/index.mjs +2 -2
  146. package/table-column/index.mjs +166 -37
  147. package/table-column/style.css +1 -0
  148. package/table-view/index.mjs +177 -132
  149. package/table-view/style.css +1 -1
  150. package/tabs-view/index.mjs +104 -0
  151. package/tabs-view/style.css +1 -0
  152. package/tag-render/index.mjs +13 -24
  153. package/toolbar/index.mjs +115 -58
  154. package/toolbar/style.css +1 -1
  155. package/toolbar-button/index.mjs +92 -48
  156. package/vue-cron/index.mjs +47 -65
  157. package/vue-qr-code/index.mjs +14 -32
  158. package/vue-quill-editor/index.mjs +13 -24
  159. package/vue-tags-input/index.mjs +10 -21
  160. package/vue-tree-select/index.mjs +352 -393
  161. package/vue-tree-select/style.css +1 -1
  162. package/vue-video-player/index.mjs +34 -63
  163. package/watermark/index.mjs +21 -31
  164. package/web-types.json +9240 -3840
  165. package/x-input-tag/index.mjs +29 -61
  166. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  167. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  168. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  169. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  170. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  171. package/toolbar-button/style.css +0 -1
  172. /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}
@@ -1,35 +1,8 @@
1
- var y = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var _ = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
4
- var u = (e, t, i) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, c = (e, t) => {
5
- for (var i in t || (t = {}))
6
- _.call(t, i) && u(e, i, t[i]);
7
- if (a)
8
- for (var i of a(t))
9
- M.call(t, i) && u(e, i, t[i]);
10
- return e;
11
- };
12
- var f = (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,24 +81,25 @@ 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, c({
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
  });
@@ -133,14 +107,12 @@ const v = {
133
107
  toggleFullScreen() {
134
108
  this.fullscreen = !this.fullscreen;
135
109
  },
136
- onResize() {
137
- return f(this, null, function* () {
138
- yield this.$nextTick();
139
- const e = this.$el;
140
- this.editor.layout({
141
- width: e.clientWidth,
142
- height: e.clientHeight
143
- });
110
+ async onResize() {
111
+ await this.$nextTick();
112
+ const e = this.$el;
113
+ this.editor.layout({
114
+ width: e.clientWidth,
115
+ height: e.clientHeight
144
116
  });
145
117
  },
146
118
  _handleFullScreen() {
@@ -172,9 +144,9 @@ const v = {
172
144
  return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
173
145
  },
174
146
  _setModel(e, t) {
175
- 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);
176
148
  this.editor.setModel({
177
- original: d,
149
+ original: n,
178
150
  modified: s
179
151
  });
180
152
  },
@@ -187,15 +159,15 @@ const v = {
187
159
  return e ? e.getValue() : "";
188
160
  },
189
161
  _editorBeforeMount() {
190
- return this.editorBeforeMount(o) || {};
162
+ return this.editorBeforeMount(i) || {};
191
163
  },
192
164
  _editorMounted(e) {
193
- this.editorMounted(e, o), this.diffEditor ? e.onDidUpdateDiff((t) => {
194
- const i = this._getValue();
195
- this._emitChange(i, t);
165
+ this.editorMounted(e, i), this.diffEditor ? e.onDidUpdateDiff((t) => {
166
+ const o = this._getValue();
167
+ this._emitChange(o, t);
196
168
  }) : e.onDidChangeModelContent((t) => {
197
- const i = this._getValue();
198
- this._emitChange(i, t);
169
+ const o = this._getValue();
170
+ this._emitChange(o, t);
199
171
  });
200
172
  },
201
173
  _emitChange(e, t) {
@@ -220,16 +192,16 @@ const v = {
220
192
  }) : ""
221
193
  ]);
222
194
  }
223
- }, w = null, x = null;
224
- var S = /* @__PURE__ */ E(
225
- v,
226
- w,
227
- x,
195
+ }, u = null, c = null;
196
+ var f = /* @__PURE__ */ h(
197
+ a,
198
+ u,
199
+ c,
228
200
  !1,
229
201
  null,
230
202
  null
231
203
  );
232
- const V = S.exports;
204
+ const y = f.exports;
233
205
  export {
234
- V as default
206
+ y as default
235
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": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,9 +17,10 @@
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": "^5.0.1",
21
- "@web-utils/integrations": "^5.0.1",
22
- "@web-utils/vue": "^5.0.1",
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",
23
24
  "bpmn-js": "^18.13.1",
24
25
  "bpmn-js-token-simulation": "^0.39.3",
25
26
  "codemirror": "^5.65.20",
@@ -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
  };