@web-utils/component 3.0.2 → 3.0.4

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 (166) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +24 -28
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2821 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/input-number/index.mjs +173 -63
  92. package/license/index.mjs +1 -1
  93. package/loading-view/index.mjs +33 -15
  94. package/login/index.mjs +1 -1
  95. package/nav-bar/index.mjs +31 -15
  96. package/package.json +1 -1
  97. package/page/index.mjs +20 -12
  98. package/page-header/index.mjs +34 -13
  99. package/page-index-top/index.mjs +53 -100
  100. package/page-skeleton/index.mjs +35 -18
  101. package/page-skeleton-new/index.mjs +15 -16
  102. package/pageable-table/index.mjs +228 -86
  103. package/pageable-view/index.mjs +1 -1
  104. package/present-view/index.mjs +71 -75
  105. package/record-video/index.mjs +1 -1
  106. package/resize-observer/index.mjs +29 -21
  107. package/search/index.mjs +9 -9
  108. package/search-popover/index.mjs +1 -1
  109. package/sign/index.mjs +1 -1
  110. package/split-pane/index.mjs +45 -40
  111. package/swiper/index.mjs +13 -14
  112. package/table-view/index.mjs +97 -631
  113. package/text-ellipsis/index.mjs +1 -1
  114. package/tinymce-editor/index.mjs +63 -63
  115. package/toolbar/index.mjs +208 -15
  116. package/toolbar-button/index.mjs +56 -30
  117. package/verify/index.mjs +1 -1
  118. package/watermark/index.mjs +1 -1
  119. package/web-types.json +1 -1
  120. package/x-input-tag/index.mjs +118 -49
  121. package/chunks/CountUp.f1a19f35.mjs +0 -124
  122. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  123. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  124. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  125. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  126. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  127. package/chunks/EmptyView.e2430422.mjs +0 -51
  128. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  129. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  130. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  131. package/chunks/FormItem.2920ac0c.mjs +0 -45
  132. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  133. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  134. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  135. package/chunks/FyCurd.8acd2983.mjs +0 -548
  136. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  137. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  138. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  139. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  140. package/chunks/FyForm.0294e494.mjs +0 -439
  141. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  142. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  143. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  144. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  145. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  146. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  147. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  148. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  149. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  150. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  151. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  152. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  153. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  154. package/chunks/Page.81f4b8d9.mjs +0 -32
  155. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  156. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  157. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  158. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  159. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  160. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  161. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  162. package/chunks/TableColumn.8503272e.mjs +0 -106
  163. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  164. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  165. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  166. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
@@ -1,29 +1,25 @@
1
- var c = (t, e, o) => new Promise((s, r) => {
1
+ var c = (t, e, o) => new Promise((r, s) => {
2
2
  var n = (i) => {
3
3
  try {
4
4
  a(o.next(i));
5
5
  } catch (f) {
6
- r(f);
6
+ s(f);
7
7
  }
8
8
  }, l = (i) => {
9
9
  try {
10
10
  a(o.throw(i));
11
11
  } catch (f) {
12
- r(f);
12
+ s(f);
13
13
  }
14
- }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(n, l);
14
+ }, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
17
- import { hasOwn as m, toStringArray as v, delay as g, isInContainer as w } from "@web-utils/core";
18
- import { merge as y } from "@web-utils/integrations/lodash";
19
- import x from "@web-utils/component/resize-observer";
17
+ import { hasOwn as d, toStringArray as p, delay as v, isInContainer as _ } from "@web-utils/core";
18
+ import { merge as w } from "@web-utils/integrations/lodash";
19
+ import y from "@web-utils/component/resize-observer";
20
20
  import "@web-utils/component/resize-observer/style.css";
21
- import { _ as $, a as S } from "../chunks/FormItemGroup.41daddb6.mjs";
22
- import { _ as F } from "../chunks/ResizeObserver.60f728f0.mjs";
23
- import { _ as u } from "../chunks/Toolbar.5c539dbb.mjs";
24
- import { _ as h } from "../chunks/EmptyView.e2430422.mjs";
25
- import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
26
- var B = function() {
21
+ import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
22
+ var x = function() {
27
23
  var t = this, e = t.$createElement, o = t._self._c || e;
28
24
  return o("div", {
29
25
  class: ["form-view", t.className]
@@ -36,7 +32,7 @@ var B = function() {
36
32
  }],
37
33
  staticClass: "form-view-toolbar"
38
34
  }, [t._t("form-view-toolbar", function() {
39
- return [o(u, t._g(t._b({
35
+ return [o("Toolbar", t._g(t._b({
40
36
  directives: [{
41
37
  name: "show",
42
38
  rawName: "v-show",
@@ -48,17 +44,17 @@ var B = function() {
48
44
  },
49
45
  scopedSlots: t._u([{
50
46
  key: "default",
51
- fn: function(s) {
52
- var r = s.buttons;
47
+ fn: function(r) {
48
+ var s = r.buttons;
53
49
  return [t._t("toolbar-button", null, {
54
- buttons: r
50
+ buttons: s
55
51
  })];
56
52
  }
57
- }, t._l(t.getToolbarSlotKeys(), function(s) {
53
+ }, t._l(t.getToolbarSlotKeys(), function(r) {
58
54
  return {
59
- key: s,
55
+ key: r,
60
56
  fn: function() {
61
- return [t._t(s)];
57
+ return [t._t(r)];
62
58
  },
63
59
  proxy: !0
64
60
  };
@@ -94,29 +90,29 @@ var B = function() {
94
90
  }, [t.title ? o("div", {
95
91
  staticClass: "form-view-title"
96
92
  }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
97
- return [o(h, {
93
+ return [o("EmptyView", {
98
94
  attrs: {
99
95
  "empty-tips": "请添加表单内容"
100
96
  }
101
97
  })];
102
- }), o(u, t._g(t._b({
98
+ }), o("Toolbar", t._g(t._b({
103
99
  attrs: {
104
100
  footer: ""
105
101
  },
106
102
  scopedSlots: t._u([{
107
103
  key: "default",
108
- fn: function(s) {
109
- var r = s.buttons, n = s.footer;
104
+ fn: function(r) {
105
+ var s = r.buttons, n = r.footer;
110
106
  return [t._t("footer-button", null, {
111
- buttons: r,
107
+ buttons: s,
112
108
  footer: n
113
109
  })];
114
110
  }
115
- }, t._l(t.getFooterSlotKeys(), function(s) {
111
+ }, t._l(t.getFooterSlotKeys(), function(r) {
116
112
  return {
117
- key: t.getFooterSlotKey(s),
113
+ key: t.getFooterSlotKey(r),
118
114
  fn: function() {
119
- return [t._t(s)];
115
+ return [t._t(r)];
120
116
  },
121
117
  proxy: !0
122
118
  };
@@ -135,29 +131,29 @@ var B = function() {
135
131
  }, [t.title ? o("div", {
136
132
  staticClass: "form-view-title"
137
133
  }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
138
- return [o(h, {
134
+ return [o("EmptyView", {
139
135
  attrs: {
140
136
  "empty-tips": "请添加表单内容"
141
137
  }
142
138
  })];
143
- }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(u, t._g(t._b({
139
+ }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({
144
140
  attrs: {
145
141
  footer: ""
146
142
  },
147
143
  scopedSlots: t._u([{
148
144
  key: "default",
149
- fn: function(s) {
150
- var r = s.buttons, n = s.footer;
145
+ fn: function(r) {
146
+ var s = r.buttons, n = r.footer;
151
147
  return [t._t("footer-button", null, {
152
- buttons: r,
148
+ buttons: s,
153
149
  footer: n
154
150
  })];
155
151
  }
156
- }, t._l(t.getFooterSlotKeys(), function(s) {
152
+ }, t._l(t.getFooterSlotKeys(), function(r) {
157
153
  return {
158
- key: t.getFooterSlotKey(s),
154
+ key: t.getFooterSlotKey(r),
159
155
  fn: function() {
160
- return [t._t(s)];
156
+ return [t._t(r)];
161
157
  },
162
158
  proxy: !0
163
159
  };
@@ -176,7 +172,7 @@ var B = function() {
176
172
  }
177
173
  }, [o("div", {
178
174
  staticClass: "form-content"
179
- }, [o($, {
175
+ }, [o("FormItemGroup", {
180
176
  attrs: {
181
177
  "block-title": "流程日志"
182
178
  }
@@ -186,7 +182,7 @@ var B = function() {
186
182
  "show-title": !1,
187
183
  "business-key": t.$parent.bizKey
188
184
  }
189
- })], 1), t._t("form-bottom")], 2)]) : t._e()]), o(F, {
185
+ })], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
190
186
  on: {
191
187
  notify: t.onFormResize
192
188
  }
@@ -196,26 +192,26 @@ var B = function() {
196
192
  staticClass: "form-nav-header"
197
193
  }, [t._v("表单导航")]), o("ul", {
198
194
  staticClass: "form-nav-list"
199
- }, t._l(t.tabs, function(s, r) {
195
+ }, t._l(t.tabs, function(r, s) {
200
196
  return o("li", {
201
- key: s.blockTitle,
197
+ key: r.blockTitle,
202
198
  class: ["form-nav-item", {
203
- active: t.activeIndex === r
199
+ active: t.activeIndex === s
204
200
  }],
205
201
  on: {
206
202
  click: function(n) {
207
- return t.tabClick(s, r);
203
+ return t.tabClick(r, s);
208
204
  }
209
205
  }
210
- }, [t._v(" " + t._s(s.blockTitle) + " ")]);
211
- }), 0)]) : t._e(), t.isFormLoading ? o(S, {
206
+ }, [t._v(" " + t._s(r.blockTitle) + " ")]);
207
+ }), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
212
208
  attrs: {
213
209
  "icon-size": "34px",
214
210
  "font-size": "16px"
215
211
  }
216
212
  }) : t._e()], 1);
217
- }, C = [];
218
- const _ = [
213
+ }, $ = [];
214
+ const b = [
219
215
  "back",
220
216
  "create",
221
217
  "save",
@@ -235,17 +231,17 @@ const _ = [
235
231
  "disabled",
236
232
  "reload",
237
233
  "slot"
238
- ], L = _.map((t) => `${t}-down`), T = ["back", "withdraw", "edit"], b = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], d = (t, e) => {
234
+ ], S = b.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
239
235
  if (t.classList.contains(e))
240
236
  return t;
241
237
  let o = t.parentNode;
242
238
  for (; o && !o.classList.contains(e); )
243
239
  o = o.parentNode;
244
240
  return o.classList.contains(e) ? o : null;
245
- }, O = {
241
+ }, k = {
246
242
  name: "PresentView",
247
243
  components: {
248
- ResizeObserver: x
244
+ ResizeObserver: y
249
245
  },
250
246
  inject: {
251
247
  flowContext: {
@@ -288,23 +284,23 @@ const _ = [
288
284
  },
289
285
  computed: {
290
286
  isFormLoading() {
291
- return this.loading || m(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
287
+ return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
292
288
  },
293
289
  toolbarProps() {
294
- var s;
295
- const t = {}, e = ((s = this.toolbarAttrs) == null ? void 0 : s.buttons) || this.$parent.buttons, o = y({}, this.toolbarAttrs, t);
296
- return o.buttons = e || ["back"], o.buttons = v(o.buttons), o;
290
+ var r;
291
+ const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = w({}, this.toolbarAttrs, t);
292
+ return o.buttons = e || ["back"], o.buttons = p(o.buttons), o;
297
293
  }
298
294
  },
299
295
  created() {
300
296
  this.$on("FormView.addTab", (t) => {
301
297
  t && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(t), this.tabs = this.tabs.sort((e, o) => {
302
- const s = d(e.$el, "form-card"), r = d(o.$el, "form-card");
303
- if (s === r) {
298
+ const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
299
+ if (r === s) {
304
300
  const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
305
301
  return n - l;
306
302
  } else {
307
- const n = d(s, "form-scroller"), l = [].indexOf.call(n.children, s), a = [].indexOf.call(n.children, r);
303
+ const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
308
304
  return l - a;
309
305
  }
310
306
  }), t.active && (this.activeIndex = this.tabs.indexOf(t), this.tabClick(t, this.activeIndex)));
@@ -322,10 +318,10 @@ const _ = [
322
318
  },
323
319
  methods: {
324
320
  getToolbarSlotKeys() {
325
- return Object.keys(this.$scopedSlots).filter((t) => _.includes(t));
321
+ return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
326
322
  },
327
323
  getFooterSlotKeys() {
328
- return Object.keys(this.$scopedSlots).filter((t) => L.includes(t));
324
+ return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
329
325
  },
330
326
  getFooterSlotKey(t) {
331
327
  return t.replace("-down", "");
@@ -334,18 +330,18 @@ const _ = [
334
330
  this.showNav = t > 1500;
335
331
  },
336
332
  onEdit() {
337
- !this.toolbarListeners.edit && m(this.$parent, "disabled") && (this.$parent.disabled = !1);
333
+ !this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
338
334
  },
339
335
  tabClick(t, e) {
340
336
  return c(this, null, function* () {
341
- this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield g(200), yield this.$nextTick()), this.tryByClick = !0, this.activeIndex = e, this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10);
337
+ this.showNav && (yield this.$nextTick(), t.expand || (t.open(), yield v(200), yield this.$nextTick()), this.tryByClick = !0, this.activeIndex = e, this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10);
342
338
  });
343
339
  },
344
340
  tryActive() {
345
341
  return c(this, null, function* () {
346
342
  if (this.showNav) {
347
343
  for (let t = 0; t < this.tabs.length; t++)
348
- if (w(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
344
+ if (_(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
349
345
  this.activeIndex = t;
350
346
  break;
351
347
  }
@@ -359,33 +355,33 @@ const _ = [
359
355
  t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
360
356
  },
361
357
  getToolbarButtons(t) {
362
- return t.filter((e) => !b.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
358
+ return t.filter((e) => !m.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
363
359
  },
364
360
  getFooterBarButtons(t) {
365
361
  let e = t.filter(
366
- (o) => !T.includes(o) && (b.includes(o) || o.indexOf(":down") > -1)
362
+ (o) => !F.includes(o) && (m.includes(o) || o.indexOf(":down") > -1)
367
363
  ).map((o) => o.replace(":down", ""));
368
364
  return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
369
365
  }
370
366
  }
371
- }, p = {};
372
- var I = /* @__PURE__ */ k(
373
- O,
374
- B,
375
- C,
367
+ }, h = {};
368
+ var B = /* @__PURE__ */ g(
369
+ k,
370
+ x,
371
+ $,
376
372
  !1,
377
- N,
373
+ L,
378
374
  null,
379
375
  null,
380
376
  null
381
377
  );
382
- function N(t) {
383
- for (let e in p)
384
- this[e] = p[e];
378
+ function L(t) {
379
+ for (let e in h)
380
+ this[e] = h[e];
385
381
  }
386
- const M = /* @__PURE__ */ function() {
387
- return I.exports;
382
+ const j = /* @__PURE__ */ function() {
383
+ return B.exports;
388
384
  }();
389
385
  export {
390
- M as default
386
+ j as default
391
387
  };
@@ -1,4 +1,4 @@
1
- import { s as r } from "../chunks/util.7844e2c2.mjs";
1
+ import { s as r } from "../chunks/util.ae730cde.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  let n = class {
4
4
  /**
@@ -1,18 +1,26 @@
1
- import { j as o } from "../chunks/index.d91bd77a.mjs";
2
- import { s as r, r as h } from "../chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs";
3
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- let t;
5
- function i() {
6
- i.init || (i.init = !0, t = o() !== -1);
1
+ import { j as o } from "../chunks/index.57f871af.mjs";
2
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var a = function() {
4
+ var e = this, t = e.$createElement, r = e._self._c || t;
5
+ return r("div", {
6
+ staticClass: "resize-observer",
7
+ attrs: {
8
+ tabindex: "-1"
9
+ }
10
+ });
11
+ }, l = [];
12
+ let i;
13
+ function s() {
14
+ s.init || (s.init = !0, i = o() !== -1);
7
15
  }
8
- const d = {
16
+ const c = {
9
17
  name: "ResizeObserver",
10
18
  mounted() {
11
- i(), this.$nextTick(() => {
19
+ s(), this.$nextTick(() => {
12
20
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
13
21
  });
14
22
  const e = document.createElement("object");
15
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", t && this.$el.appendChild(e), e.data = "about:blank", t || this.$el.appendChild(e);
23
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
16
24
  },
17
25
  beforeDestroy() {
18
26
  this.removeResizeHandlers();
@@ -28,27 +36,27 @@ const d = {
28
36
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
29
37
  },
30
38
  removeResizeHandlers() {
31
- this._resizeObject && this._resizeObject.onload && (!t && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
39
+ this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
32
40
  }
33
41
  }
34
42
  }, n = {};
35
- var a = /* @__PURE__ */ l(
36
- d,
37
- h,
38
- r,
39
- !1,
43
+ var d = /* @__PURE__ */ h(
40
44
  c,
45
+ a,
46
+ l,
47
+ !1,
48
+ _,
41
49
  null,
42
50
  null,
43
51
  null
44
52
  );
45
- function c(e) {
46
- for (let s in n)
47
- this[s] = n[s];
53
+ function _(e) {
54
+ for (let t in n)
55
+ this[t] = n[t];
48
56
  }
49
- const u = /* @__PURE__ */ function() {
50
- return a.exports;
57
+ const m = /* @__PURE__ */ function() {
58
+ return d.exports;
51
59
  }();
52
60
  export {
53
- u as default
61
+ m as default
54
62
  };
package/search/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { D as a } from "../chunks/util.7844e2c2.mjs";
2
- import { i as n } from "../chunks/init.f0a03127.mjs";
1
+ import { a as p } from "../chunks/util.ae730cde.mjs";
2
+ import { i as n } from "../chunks/init.47f219b4.mjs";
3
3
  import { isBlank as o } from "@web-utils/core";
4
4
  import l from "element-ui/lib/col";
5
5
  import u from "element-ui/lib/row";
@@ -26,18 +26,18 @@ var _ = function() {
26
26
  staticClass: "avue-search__content"
27
27
  }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
28
28
  dic: t.DIC[s.prop]
29
- }) : t._l(t.DIC[s.prop], function(p) {
29
+ }) : t._l(t.DIC[s.prop], function(a) {
30
30
  return r("span", {
31
- key: t.getKey(p, s.props, t.valueKey),
31
+ key: t.getKey(a, s.props, t.valueKey),
32
32
  class: ["avue-search__tags", {
33
- "avue-search__tags--active": t.getActive(p, s)
33
+ "avue-search__tags--active": t.getActive(a, s)
34
34
  }],
35
35
  on: {
36
36
  click: function(m) {
37
- return t.handleClick(s, p);
37
+ return t.handleClick(s, a);
38
38
  }
39
39
  }
40
- }, [t._v(t._s(t.getKey(p, s.props, t.labelKey)))]);
40
+ }, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
41
41
  })], 2)]);
42
42
  }), 1);
43
43
  }, c = [];
@@ -60,10 +60,10 @@ const f = {
60
60
  return this.parentOption.props || {};
61
61
  },
62
62
  labelKey() {
63
- return a.label;
63
+ return p.label;
64
64
  },
65
65
  valueKey() {
66
- return a.value;
66
+ return p.value;
67
67
  },
68
68
  mainSlot() {
69
69
  const t = [];
@@ -16,7 +16,7 @@ var c = (t, r, e) => new Promise((s, o) => {
16
16
  });
17
17
  import { copy as d, isInContainer as p } from "@web-utils/core";
18
18
  import v from "element-ui/lib/utils/clickoutside";
19
- import { z as f } from "../chunks/util.7844e2c2.mjs";
19
+ import { z as f } from "../chunks/util.ae730cde.mjs";
20
20
  import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
21
  var w = function() {
22
22
  var t = this, r = t.$createElement, e = t._self._c || r;
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as g } from "../chunks/util.7844e2c2.mjs";
1
+ import { s as g } from "../chunks/util.ae730cde.mjs";
2
2
  import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var _ = function() {
4
4
  var t = this, n = t.$createElement, s = t._self._c || n;
@@ -1,5 +1,5 @@
1
- var f = (t, e, s) => new Promise((n, i) => {
2
- var o = (r) => {
1
+ var f = (t, e, s) => new Promise((o, i) => {
2
+ var n = (r) => {
3
3
  try {
4
4
  a(s.next(r));
5
5
  } catch (l) {
@@ -11,12 +11,13 @@ var f = (t, e, s) => new Promise((n, i) => {
11
11
  } catch (l) {
12
12
  i(l);
13
13
  }
14
- }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(o, g);
14
+ }, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, g);
15
15
  a((s = s.apply(t, e)).next());
16
16
  });
17
- import { _ as m } from "../chunks/ResizeObserver.60f728f0.mjs";
18
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- function x(t, e) {
17
+ import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
+ import v from "@web-utils/component/resize-observer";
19
+ import "@web-utils/component/resize-observer/style.css";
20
+ function m(t, e) {
20
21
  for (let s = 0; s < e.length; s++)
21
22
  if (t === e[s])
22
23
  return !0;
@@ -28,30 +29,30 @@ const h = function() {
28
29
  } : function(t, e, s) {
29
30
  t && e && s && t.attachEvent(`on${e}`, s);
30
31
  };
31
- }(), u = function() {
32
+ }(), p = function() {
32
33
  return document.removeEventListener ? function(t, e, s) {
33
34
  t && e && t.removeEventListener(e, s, !1);
34
35
  } : function(t, e, s) {
35
36
  t && e && t.detachEvent(`on${e}`, s);
36
37
  };
37
38
  }();
38
- var _ = function() {
39
+ var x = function() {
39
40
  var t = this, e = t.$createElement, s = t._self._c || e;
40
41
  return s("div", {
41
42
  class: t.classes
42
43
  }, [t.showIcon ? s("div", {
43
44
  class: t.barConClasses
44
45
  }, t._m(0), 0) : t._e()]);
45
- }, $ = [function() {
46
+ }, _ = [function() {
46
47
  var t = this, e = t.$createElement, s = t._self._c || e;
47
- return t._l(8, function(n) {
48
+ return t._l(8, function(o) {
48
49
  return s("i", {
49
- key: `trigger-${n}`,
50
+ key: `trigger-${o}`,
50
51
  class: `${t.prefix}-bar`
51
52
  });
52
53
  });
53
54
  }];
54
- const M = {
55
+ const $ = {
55
56
  name: "Trigger",
56
57
  props: {
57
58
  mode: String,
@@ -81,25 +82,25 @@ const M = {
81
82
  return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
82
83
  }
83
84
  }
84
- }, p = {};
85
- var z = /* @__PURE__ */ v(
86
- M,
87
- _,
85
+ }, u = {};
86
+ var M = /* @__PURE__ */ d(
88
87
  $,
88
+ x,
89
+ _,
89
90
  !1,
90
- S,
91
+ z,
91
92
  null,
92
93
  null,
93
94
  null
94
95
  );
95
- function S(t) {
96
- for (let e in p)
97
- this[e] = p[e];
96
+ function z(t) {
97
+ for (let e in u)
98
+ this[e] = u[e];
98
99
  }
99
- const c = /* @__PURE__ */ function() {
100
- return z.exports;
100
+ const O = /* @__PURE__ */ function() {
101
+ return M.exports;
101
102
  }();
102
- var w = function() {
103
+ var S = function() {
103
104
  var t = this, e = t.$createElement, s = t._self._c || e;
104
105
  return s("div", {
105
106
  ref: "outerWrapper",
@@ -126,7 +127,7 @@ var w = function() {
126
127
  mousedown: t.handleMousedown
127
128
  }
128
129
  }, [t._t("trigger", function() {
129
- return [s(c, {
130
+ return [s("Trigger", {
130
131
  attrs: {
131
132
  mode: "vertical"
132
133
  }
@@ -153,7 +154,7 @@ var w = function() {
153
154
  mousedown: t.handleMousedown
154
155
  }
155
156
  }, [t._t("trigger", function() {
156
- return [s(c, {
157
+ return [s("Trigger", {
157
158
  attrs: {
158
159
  mode: "horizontal"
159
160
  }
@@ -163,14 +164,18 @@ var w = function() {
163
164
  style: {
164
165
  top: `calc(${t.offset}% + ${t.triggerSize}px)`
165
166
  }
166
- }, [t._t("bottom")], 2)]), s(m, {
167
+ }, [t._t("bottom")], 2)]), s("ResizeObserver", {
167
168
  on: {
168
169
  notify: t.resetOffset
169
170
  }
170
171
  })], 1);
171
- }, O = [];
172
+ }, w = [];
172
173
  const y = {
173
174
  name: "SplitPane",
175
+ components: {
176
+ Trigger: O,
177
+ ResizeObserver: v
178
+ },
174
179
  props: {
175
180
  value: {
176
181
  type: [Number, String],
@@ -178,7 +183,7 @@ const y = {
178
183
  },
179
184
  mode: {
180
185
  validator(t) {
181
- return x(t, ["horizontal", "vertical"]);
186
+ return m(t, ["horizontal", "vertical"]);
182
187
  },
183
188
  default: "horizontal"
184
189
  },
@@ -263,23 +268,23 @@ const y = {
263
268
  return this.valueIsPx ? e = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(t)}px` : e = 1 - t, e;
264
269
  },
265
270
  handleMove(t) {
266
- const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset, n = this.$refs.outerWrapper[this.offsetSize];
267
- let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(n * this.oldOffset + s, n);
268
- const o = this.getAnotherOffset(i);
269
- parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(o) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(o, this.computedMax))), t.atMin = this.value === this.computedMin, t.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", t);
271
+ const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset, o = this.$refs.outerWrapper[this.offsetSize];
272
+ let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(o * this.oldOffset + s, o);
273
+ const n = this.getAnotherOffset(i);
274
+ parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(n) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(n, this.computedMax))), t.atMin = this.value === this.computedMin, t.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", t);
270
275
  },
271
276
  handleUp() {
272
- this.isMoving = !1, u(window, "mousemove", this.handleMove), u(window, "mouseup", this.handleUp), this.$emit("on-move-end");
277
+ this.isMoving = !1, p(window, "mousemove", this.handleMove), p(window, "mouseup", this.handleUp), this.$emit("on-move-end");
273
278
  },
274
279
  handleMousedown(t) {
275
280
  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");
276
281
  }
277
282
  }
278
- }, d = {};
279
- var F = /* @__PURE__ */ v(
283
+ }, c = {};
284
+ var F = /* @__PURE__ */ d(
280
285
  y,
286
+ S,
281
287
  w,
282
- O,
283
288
  !1,
284
289
  b,
285
290
  null,
@@ -287,12 +292,12 @@ var F = /* @__PURE__ */ v(
287
292
  null
288
293
  );
289
294
  function b(t) {
290
- for (let e in d)
291
- this[e] = d[e];
295
+ for (let e in c)
296
+ this[e] = c[e];
292
297
  }
293
- const E = /* @__PURE__ */ function() {
298
+ const T = /* @__PURE__ */ function() {
294
299
  return F.exports;
295
300
  }();
296
301
  export {
297
- E as default
302
+ T as default
298
303
  };