@web-utils/component 3.0.6 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,123 +1,5 @@
1
- import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var t = this, e = t.$createElement, i = t._self._c || e;
4
- return i("div", {
5
- staticClass: "sign-panel flex-column"
6
- }, [i("div", {
7
- directives: [{
8
- name: "show",
9
- rawName: "v-show",
10
- value: !t.disabled && t.edit,
11
- expression: "!disabled && edit"
12
- }],
13
- staticClass: "sign-edit"
14
- }, [i("div", {
15
- staticClass: "sign-draw-area",
16
- style: {
17
- width: `${t.width + 2}px`,
18
- height: `${t.height + 2}px`
19
- }
20
- }, [i("div", {
21
- staticClass: "sign-watermark",
22
- style: {
23
- fontSize: `${t.fontSize}px`
24
- }
25
- }, [t._v(" " + t._s(t.text) + " ")]), i("canvas", {
26
- ref: "canvas",
27
- staticClass: "sign-canvas",
28
- attrs: {
29
- width: t.width,
30
- height: t.height
31
- },
32
- on: {
33
- touchstart: function(s) {
34
- return s.stopPropagation(), t.touchstart.apply(null, arguments);
35
- },
36
- touchmove: function(s) {
37
- return s.stopPropagation(), t.touchmove.apply(null, arguments);
38
- },
39
- mousedown: function(s) {
40
- return s.stopPropagation(), t.down.apply(null, arguments);
41
- },
42
- touchend: function(s) {
43
- return s.stopPropagation(), t.touchend.apply(null, arguments);
44
- },
45
- mouseup: function(s) {
46
- return s.stopPropagation(), t.up.apply(null, arguments);
47
- }
48
- }
49
- }, [t._v("当前浏览器不支持手写签名 ")])]), i("div", {
50
- staticClass: "sign-tool-bar"
51
- }, [i("div", {
52
- staticClass: "sign-button flex-item",
53
- staticStyle: {
54
- color: "red"
55
- },
56
- on: {
57
- click: t.clear
58
- }
59
- }, [i("i", {
60
- staticClass: "fa fa-trash"
61
- }), t._v(" 清除")]), i("div", {
62
- staticClass: "sign-button flex-item",
63
- staticStyle: {
64
- color: "red"
65
- },
66
- on: {
67
- click: t.cancel
68
- }
69
- }, [i("i", {
70
- staticClass: "fa fa-close"
71
- }), t._v(" 取消")]), i("div", {
72
- staticClass: "sign-button flex-item",
73
- staticStyle: {
74
- color: "orange"
75
- },
76
- on: {
77
- click: t.rollback
78
- }
79
- }, [i("i", {
80
- staticClass: "fa fa-repeat"
81
- }), t._v(" 撤销 ")]), i("div", {
82
- staticClass: "sign-button flex-item",
83
- staticStyle: {
84
- color: "green"
85
- },
86
- on: {
87
- click: t.save
88
- }
89
- }, [i("i", {
90
- staticClass: "fa fa-check"
91
- }), t._v(" 确定")])])]), i("div", {
92
- directives: [{
93
- name: "show",
94
- rawName: "v-show",
95
- value: t.disabled || !t.edit,
96
- expression: "disabled || !edit"
97
- }],
98
- staticClass: "sign-view",
99
- style: {
100
- cursor: t.disabled ? "not-allowed" : "pointer"
101
- },
102
- on: {
103
- click: t.showSign
104
- }
105
- }, [t.value ? i("img", {
106
- staticClass: "sign-image",
107
- attrs: {
108
- src: t.value,
109
- alt: "签名"
110
- }
111
- }) : t._e(), t.value ? t._e() : i("p", {
112
- staticClass: "sign-tips",
113
- style: {
114
- color: !t.value && t.disabled ? "red" : ""
115
- }
116
- }, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : i("i", {
117
- staticClass: "el-icon-edit-outline sign-edit-icon"
118
- })])]);
119
- }, l = [];
120
- const c = {
1
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const n = {
121
3
  name: "SignPanel",
122
4
  props: {
123
5
  width: {
@@ -164,15 +46,15 @@ const c = {
164
46
  },
165
47
  rollback() {
166
48
  if (this.stack.length > 0) {
167
- const t = this.stack[this.stack.length - 1];
168
- this.ctx.putImageData(t, 0, 0), this.stack.length = this.stack.length - 1;
49
+ const i = this.stack[this.stack.length - 1];
50
+ this.ctx.putImageData(i, 0, 0), this.stack.length = this.stack.length - 1;
169
51
  }
170
52
  },
171
53
  // 位置初始化
172
54
  position() {
173
55
  this.restorePoint = this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height);
174
- const t = this.canvas.getBoundingClientRect();
175
- this.start = t.left, this.end = t.top;
56
+ const i = this.canvas.getBoundingClientRect();
57
+ this.start = i.left, this.end = i.top;
176
58
  },
177
59
  // 画布初始化
178
60
  canvasInit() {
@@ -185,32 +67,32 @@ const c = {
185
67
  this.ctx.font = `${this.fontSize}px bold 黑体`, this.ctx.fillStyle = "#eee", this.ctx.textAlign = "center", this.ctx.shadowBlur = 1, this.ctx.textBaseline = "middle", this.ctx.fillText(this.text, this.width / 2, this.height / 2);
186
68
  },
187
69
  // PC 端鼠标按下开始绘画
188
- down(t) {
189
- this.position(), this.startLine(t.clientX, t.clientY, t), this.target = t.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
70
+ down(i) {
71
+ this.position(), this.startLine(i.clientX, i.clientY, i), this.target = i.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
190
72
  },
191
73
  // PC 端鼠标按下开始绘画后,跟踪移动轨迹
192
- move(t) {
193
- this.moveLine(t.clientX, t.clientY, t);
74
+ move(i) {
75
+ this.moveLine(i.clientX, i.clientY, i);
194
76
  },
195
77
  // PC 端鼠标松开结束绘画
196
78
  up() {
197
79
  this.target && this.target.removeEventListener("mousemove", this.move), window.removeEventListener("mouseup", this.up), this.record();
198
80
  },
199
81
  // 移动端触摸开始绘画
200
- touchstart(t) {
201
- this.position(), this.startLine(t.changedTouches[0].clientX, t.changedTouches[0].clientY, t);
82
+ touchstart(i) {
83
+ this.position(), this.startLine(i.changedTouches[0].clientX, i.changedTouches[0].clientY, i);
202
84
  },
203
85
  // 移动端触摸开始绘画后,跟踪滑动轨迹
204
- touchmove(t) {
205
- this.moveLine(t.touches[0].clientX, t.touches[0].clientY, t);
86
+ touchmove(i) {
87
+ this.moveLine(i.touches[0].clientX, i.touches[0].clientY, i);
206
88
  },
207
89
  // 开始绘画
208
- startLine(t, e) {
209
- this.ctx.beginPath(), t -= this.start, e -= this.end, this.ctx.moveTo(t, e);
90
+ startLine(i, t) {
91
+ this.ctx.beginPath(), i -= this.start, t -= this.end, this.ctx.moveTo(i, t);
210
92
  },
211
93
  // 绘制移动轨迹
212
- moveLine(t, e, i) {
213
- i && i.preventDefault(), t -= this.start, e -= this.end, this.ctx.lineTo(t, e), this.ctx.stroke();
94
+ moveLine(i, t, s) {
95
+ s && s.preventDefault(), i -= this.start, t -= this.end, this.ctx.lineTo(i, t), this.ctx.stroke();
214
96
  },
215
97
  clear() {
216
98
  this.ctx.clearRect(0, 0, this.width, this.height);
@@ -225,31 +107,38 @@ const c = {
225
107
  this.stack.push(this.restorePoint);
226
108
  },
227
109
  save() {
228
- const t = this.canvas.toDataURL("image/png");
229
- this.blank === t ? this.$emit("input", "") : this.$emit("input", t), this.edit = !1, this.stack.length = 0, this.ctx.clearRect(0, 0, this.width, this.height);
110
+ const i = this.canvas.toDataURL("image/png");
111
+ this.blank === i ? this.$emit("input", "") : this.$emit("input", i), this.edit = !1, this.stack.length = 0, this.ctx.clearRect(0, 0, this.width, this.height);
230
112
  },
231
113
  showSign() {
232
114
  this.disabled || (this.edit = !0);
233
115
  }
234
116
  }
235
- }, a = {};
236
- var h = /* @__PURE__ */ n(
237
- c,
238
- o,
117
+ };
118
+ var l = function() {
119
+ var t = this, s = t._self._c;
120
+ return s("div", { staticClass: "sign-panel flex-column" }, [s("div", { directives: [{ name: "show", rawName: "v-show", value: !t.disabled && t.edit, expression: "!disabled && edit" }], staticClass: "sign-edit" }, [s("div", { staticClass: "sign-draw-area", style: { width: `${t.width + 2}px`, height: `${t.height + 2}px` } }, [s("div", { staticClass: "sign-watermark", style: { fontSize: `${t.fontSize}px` } }, [t._v(" " + t._s(t.text) + " ")]), s("canvas", { ref: "canvas", staticClass: "sign-canvas", attrs: { width: t.width, height: t.height }, on: { touchstart: function(e) {
121
+ return e.stopPropagation(), t.touchstart.apply(null, arguments);
122
+ }, touchmove: function(e) {
123
+ return e.stopPropagation(), t.touchmove.apply(null, arguments);
124
+ }, mousedown: function(e) {
125
+ return e.stopPropagation(), t.down.apply(null, arguments);
126
+ }, touchend: function(e) {
127
+ return e.stopPropagation(), t.touchend.apply(null, arguments);
128
+ }, mouseup: function(e) {
129
+ return e.stopPropagation(), t.up.apply(null, arguments);
130
+ } } }, [t._v("当前浏览器不支持手写签名 ")])]), s("div", { staticClass: "sign-tool-bar" }, [s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "red" }, on: { click: t.clear } }, [s("i", { staticClass: "fa fa-trash" }), t._v(" 清除")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "red" }, on: { click: t.cancel } }, [s("i", { staticClass: "fa fa-close" }), t._v(" 取消")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "orange" }, on: { click: t.rollback } }, [s("i", { staticClass: "fa fa-repeat" }), t._v(" 撤销 ")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "green" }, on: { click: t.save } }, [s("i", { staticClass: "fa fa-check" }), t._v(" 确定")])])]), s("div", { directives: [{ name: "show", rawName: "v-show", value: t.disabled || !t.edit, expression: "disabled || !edit" }], staticClass: "sign-view", style: { cursor: t.disabled ? "not-allowed" : "pointer" }, on: { click: t.showSign } }, [t.value ? s("img", { staticClass: "sign-image", attrs: { src: t.value, alt: "签名" } }) : t._e(), t.value ? t._e() : s("p", { staticClass: "sign-tips", style: { color: !t.value && t.disabled ? "red" : "" } }, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : s("i", { staticClass: "el-icon-edit-outline sign-edit-icon" })])]);
131
+ }, o = [], c = /* @__PURE__ */ a(
132
+ n,
239
133
  l,
134
+ o,
240
135
  !1,
241
- r,
136
+ null,
242
137
  null,
243
138
  null,
244
139
  null
245
140
  );
246
- function r(t) {
247
- for (let e in a)
248
- this[e] = a[e];
249
- }
250
- const u = /* @__PURE__ */ function() {
251
- return h.exports;
252
- }();
141
+ const r = c.exports;
253
142
  export {
254
- u as default
143
+ r as default
255
144
  };
@@ -1,32 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
3
- var e = this, a = e.$createElement, t = e._self._c || a;
4
- return t("div", {
5
- staticClass: "avue-skeleton"
6
- }, [e.loading ? e._l(e.number, function(d, n) {
7
- return t("div", {
8
- key: n,
9
- staticClass: "avue-skeleton__item"
10
- }, [t("div", {
11
- staticClass: "avue-skeleton__header"
12
- }, [e.avatar ? t("span", {
13
- staticClass: "avue-skeleton__vatar'),className]"
14
- }) : e._e()]), t("div", {
15
- staticClass: "avue-skeleton__content"
16
- }, [t("h3", {
17
- class: ["avue-skeleton__title", e.className]
18
- }), t("div", {
19
- staticClass: "avue-skeleton__list"
20
- }, e._l(e.rows, function(m, l) {
21
- return t("p", {
22
- key: l,
23
- class: ["avue-skeleton__li", e.className],
24
- style: e.styleName
25
- });
26
- }), 0)])]);
27
- }) : t("div", [e._t("default")], 2)], 2);
28
- }, _ = [];
29
- const i = "avue-skeleton", u = {
1
+ import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const o = "avue-skeleton", _ = {
30
3
  name: "Skeleton",
31
4
  props: {
32
5
  loading: {
@@ -55,28 +28,29 @@ const i = "avue-skeleton", u = {
55
28
  } : {};
56
29
  },
57
30
  className() {
58
- const { active: e } = this;
59
- return { [`${i}__loading`]: e };
31
+ const { active: a } = this;
32
+ return { [`${o}__loading`]: a };
60
33
  }
61
34
  }
62
- }, s = {};
63
- var c = /* @__PURE__ */ o(
64
- u,
65
- r,
35
+ };
36
+ var r = function() {
37
+ var e = this, t = e._self._c;
38
+ return t("div", { staticClass: "avue-skeleton" }, [e.loading ? e._l(e.number, function(c, s) {
39
+ return t("div", { key: s, staticClass: "avue-skeleton__item" }, [t("div", { staticClass: "avue-skeleton__header" }, [e.avatar ? t("span", { staticClass: "avue-skeleton__vatar'),className]" }) : e._e()]), t("div", { staticClass: "avue-skeleton__content" }, [t("h3", { class: ["avue-skeleton__title", e.className] }), t("div", { staticClass: "avue-skeleton__list" }, e._l(e.rows, function(v, l) {
40
+ return t("p", { key: l, class: ["avue-skeleton__li", e.className], style: e.styleName });
41
+ }), 0)])]);
42
+ }) : t("div", [e._t("default")], 2)], 2);
43
+ }, i = [], u = /* @__PURE__ */ n(
66
44
  _,
45
+ r,
46
+ i,
67
47
  !1,
68
- v,
48
+ null,
69
49
  null,
70
50
  null,
71
51
  null
72
52
  );
73
- function v(e) {
74
- for (let a in s)
75
- this[a] = s[a];
76
- }
77
- const p = /* @__PURE__ */ function() {
78
- return c.exports;
79
- }();
53
+ const m = u.exports;
80
54
  export {
81
- p as default
55
+ m as default
82
56
  };
@@ -1,23 +1,23 @@
1
- var f = (t, e, s) => new Promise((o, i) => {
1
+ var l = (t, e, s) => new Promise((o, i) => {
2
2
  var n = (r) => {
3
3
  try {
4
4
  a(s.next(r));
5
- } catch (l) {
6
- i(l);
5
+ } catch (f) {
6
+ i(f);
7
7
  }
8
- }, g = (r) => {
8
+ }, c = (r) => {
9
9
  try {
10
10
  a(s.throw(r));
11
- } catch (l) {
12
- i(l);
11
+ } catch (f) {
12
+ i(f);
13
13
  }
14
- }, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, g);
14
+ }, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, c);
15
15
  a((s = s.apply(t, e)).next());
16
16
  });
17
- import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- import v from "@web-utils/component/resize-observer";
17
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
18
+ import d from "@web-utils/component/resize-observer";
19
19
  import "@web-utils/component/resize-observer/style.css";
20
- function m(t, e) {
20
+ function g(t, e) {
21
21
  for (let s = 0; s < e.length; s++)
22
22
  if (t === e[s])
23
23
  return !0;
@@ -35,24 +35,7 @@ const h = function() {
35
35
  } : function(t, e, s) {
36
36
  t && e && t.detachEvent(`on${e}`, s);
37
37
  };
38
- }();
39
- var x = function() {
40
- var t = this, e = t.$createElement, s = t._self._c || e;
41
- return s("div", {
42
- class: t.classes
43
- }, [t.showIcon ? s("div", {
44
- class: t.barConClasses
45
- }, t._m(0), 0) : t._e()]);
46
- }, _ = [function() {
47
- var t = this, e = t.$createElement, s = t._self._c || e;
48
- return t._l(8, function(o) {
49
- return s("i", {
50
- key: `trigger-${o}`,
51
- class: `${t.prefix}-bar`
52
- });
53
- });
54
- }];
55
- const $ = {
38
+ }(), m = {
56
39
  name: "Trigger",
57
40
  props: {
58
41
  mode: String,
@@ -82,99 +65,31 @@ const $ = {
82
65
  return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
83
66
  }
84
67
  }
85
- }, u = {};
86
- var M = /* @__PURE__ */ d(
87
- $,
68
+ };
69
+ var v = function() {
70
+ var e = this, s = e._self._c;
71
+ return s("div", { class: e.classes }, [e.showIcon ? s("div", { class: e.barConClasses }, e._m(0), 0) : e._e()]);
72
+ }, x = [function() {
73
+ var t = this, e = t._self._c;
74
+ return t._l(8, function(s) {
75
+ return e("i", { key: `trigger-${s}`, class: `${t.prefix}-bar` });
76
+ });
77
+ }], _ = /* @__PURE__ */ u(
78
+ m,
79
+ v,
88
80
  x,
89
- _,
90
81
  !1,
91
- z,
82
+ null,
92
83
  null,
93
84
  null,
94
85
  null
95
86
  );
96
- function z(t) {
97
- for (let e in u)
98
- this[e] = u[e];
99
- }
100
- const O = /* @__PURE__ */ function() {
101
- return M.exports;
102
- }();
103
- var S = function() {
104
- var t = this, e = t.$createElement, s = t._self._c || e;
105
- return s("div", {
106
- ref: "outerWrapper",
107
- class: t.wrapperClasses
108
- }, [t.isHorizontal ? s("div", {
109
- class: `${t.prefix}-horizontal`
110
- }, [t.hideLeft ? s("div", {
111
- class: [`${t.prefix}-pane`, "right-pane"],
112
- staticStyle: {
113
- left: "0"
114
- }
115
- }, [t._t("right")], 2) : [s("div", {
116
- class: [`${t.prefix}-pane`, "left-pane"],
117
- style: {
118
- right: `${t.anotherOffset}%`
119
- }
120
- }, [t._t("left")], 2), s("div", {
121
- class: `${t.prefix}-trigger-con`,
122
- style: {
123
- left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
124
- width: `${t.triggerSize}px`
125
- },
126
- on: {
127
- mousedown: t.handleMousedown
128
- }
129
- }, [t._t("trigger", function() {
130
- return [s("Trigger", {
131
- attrs: {
132
- mode: "vertical"
133
- }
134
- })];
135
- })], 2), s("div", {
136
- class: [`${t.prefix}-pane`, "right-pane"],
137
- style: {
138
- left: `calc(${t.offset}% + ${t.triggerSize}px)`
139
- }
140
- }, [t._t("right")], 2)]], 2) : s("div", {
141
- class: `${t.prefix}-vertical`
142
- }, [s("div", {
143
- class: [`${t.prefix}-pane`, "top-pane"],
144
- style: {
145
- bottom: `${t.anotherOffset}%`
146
- }
147
- }, [t._t("top")], 2), s("div", {
148
- class: `${t.prefix}-trigger-con`,
149
- style: {
150
- top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
151
- height: `${t.triggerSize}px`
152
- },
153
- on: {
154
- mousedown: t.handleMousedown
155
- }
156
- }, [t._t("trigger", function() {
157
- return [s("Trigger", {
158
- attrs: {
159
- mode: "horizontal"
160
- }
161
- })];
162
- })], 2), s("div", {
163
- class: [`${t.prefix}-pane`, "bottom-pane"],
164
- style: {
165
- top: `calc(${t.offset}% + ${t.triggerSize}px)`
166
- }
167
- }, [t._t("bottom")], 2)]), s("ResizeObserver", {
168
- on: {
169
- notify: t.resetOffset
170
- }
171
- })], 1);
172
- }, w = [];
173
- const y = {
87
+ const $ = _.exports;
88
+ const z = {
174
89
  name: "SplitPane",
175
90
  components: {
176
- Trigger: O,
177
- ResizeObserver: v
91
+ Trigger: $,
92
+ ResizeObserver: d
178
93
  },
179
94
  props: {
180
95
  value: {
@@ -183,7 +98,7 @@ const y = {
183
98
  },
184
99
  mode: {
185
100
  validator(t) {
186
- return m(t, ["horizontal", "vertical"]);
101
+ return g(t, ["horizontal", "vertical"]);
187
102
  },
188
103
  default: "horizontal"
189
104
  },
@@ -242,7 +157,7 @@ const y = {
242
157
  value: "resetOffset"
243
158
  },
244
159
  mounted() {
245
- return f(this, null, function* () {
160
+ return l(this, null, function* () {
246
161
  yield this.$nextTick(), this.resetOffset();
247
162
  });
248
163
  },
@@ -280,24 +195,25 @@ const y = {
280
195
  this.initOffset = this.isHorizontal ? t.pageX : t.pageY, this.oldOffset = this.value, this.isMoving = !0, h(window, "mousemove", this.handleMove), h(window, "mouseup", this.handleUp), this.$emit("on-move-start");
281
196
  }
282
197
  }
283
- }, c = {};
284
- var F = /* @__PURE__ */ d(
285
- y,
286
- S,
287
- w,
198
+ };
199
+ var M = function() {
200
+ var e = this, s = e._self._c;
201
+ return s("div", { ref: "outerWrapper", class: e.wrapperClasses }, [e.isHorizontal ? s("div", { class: `${e.prefix}-horizontal` }, [e.hideLeft ? s("div", { class: [`${e.prefix}-pane`, "right-pane"], staticStyle: { left: "0" } }, [e._t("right")], 2) : [s("div", { class: [`${e.prefix}-pane`, "left-pane"], style: { right: `${e.anotherOffset}%` } }, [e._t("left")], 2), s("div", { class: `${e.prefix}-trigger-con`, style: { left: `calc(${e.offset}% + ${e.triggerSize / 2}px)`, width: `${e.triggerSize}px` }, on: { mousedown: e.handleMousedown } }, [e._t("trigger", function() {
202
+ return [s("Trigger", { attrs: { mode: "vertical" } })];
203
+ })], 2), s("div", { class: [`${e.prefix}-pane`, "right-pane"], style: { left: `calc(${e.offset}% + ${e.triggerSize}px)` } }, [e._t("right")], 2)]], 2) : s("div", { class: `${e.prefix}-vertical` }, [s("div", { class: [`${e.prefix}-pane`, "top-pane"], style: { bottom: `${e.anotherOffset}%` } }, [e._t("top")], 2), s("div", { class: `${e.prefix}-trigger-con`, style: { top: `calc(${e.offset}% + ${e.triggerSize / 2}px)`, height: `${e.triggerSize}px` }, on: { mousedown: e.handleMousedown } }, [e._t("trigger", function() {
204
+ return [s("Trigger", { attrs: { mode: "horizontal" } })];
205
+ })], 2), s("div", { class: [`${e.prefix}-pane`, "bottom-pane"], style: { top: `calc(${e.offset}% + ${e.triggerSize}px)` } }, [e._t("bottom")], 2)]), s("ResizeObserver", { on: { notify: e.resetOffset } })], 1);
206
+ }, O = [], w = /* @__PURE__ */ u(
207
+ z,
208
+ M,
209
+ O,
288
210
  !1,
289
- b,
211
+ null,
290
212
  null,
291
213
  null,
292
214
  null
293
215
  );
294
- function b(t) {
295
- for (let e in c)
296
- this[e] = c[e];
297
- }
298
- const T = /* @__PURE__ */ function() {
299
- return F.exports;
300
- }();
216
+ const P = w.exports;
301
217
  export {
302
- T as default
218
+ P as default
303
219
  };
@@ -1,5 +1,5 @@
1
- import { n as A } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- const v = {
1
+ import { n as A } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const _ = {
3
3
  name: "Stateful",
4
4
  functional: !0,
5
5
  props: {
@@ -42,43 +42,35 @@ const v = {
42
42
  type: String
43
43
  }
44
44
  },
45
- render(r, { props: t, data: y, children: c }) {
46
- const { draft: n, doing: a, overdue: o, error: s, done: l, closed: d, status: e, tag: _, size: u, type: f } = t, p = {
47
- draft: Array.isArray(n) ? n.includes(e) : n,
45
+ render(r, { props: u, data: i, children: y }) {
46
+ const { draft: t, doing: a, overdue: n, error: o, done: s, closed: l, status: e, tag: c, size: d, type: f } = u, p = {
47
+ draft: Array.isArray(t) ? t.includes(e) : t,
48
48
  doing: Array.isArray(a) ? a.includes(e) : a,
49
- overdue: Array.isArray(o) ? o.includes(e) : o,
50
- error: Array.isArray(s) ? s.includes(e) : s,
51
- done: Array.isArray(l) ? l.includes(e) : l,
52
- closed: Array.isArray(d) ? d.includes(e) : d
49
+ overdue: Array.isArray(n) ? n.includes(e) : n,
50
+ error: Array.isArray(o) ? o.includes(e) : o,
51
+ done: Array.isArray(s) ? s.includes(e) : s,
52
+ closed: Array.isArray(l) ? l.includes(e) : l
53
53
  };
54
- return r(_, y, [
54
+ return r(c, i, [
55
55
  r("span", {
56
- style: { width: u, height: u },
56
+ style: { width: d, height: d },
57
57
  class: ["stateful", f, p]
58
58
  }),
59
- c
59
+ y
60
60
  ]);
61
61
  }
62
- };
63
- let g, S;
64
- const i = {};
62
+ }, g = null, v = null;
65
63
  var m = /* @__PURE__ */ A(
66
- v,
64
+ _,
67
65
  g,
68
- S,
66
+ v,
69
67
  !1,
70
- B,
68
+ null,
71
69
  null,
72
70
  null,
73
71
  null
74
72
  );
75
- function B(r) {
76
- for (let t in i)
77
- this[t] = i[t];
78
- }
79
- const h = /* @__PURE__ */ function() {
80
- return m.exports;
81
- }();
73
+ const B = m.exports;
82
74
  export {
83
- h as default
75
+ B as default
84
76
  };