@web-utils/component 2.70.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -2,7 +2,7 @@ var $ = Object.defineProperty, T = Object.defineProperties;
2
2
  var w = Object.getOwnPropertyDescriptors;
3
3
  var d = Object.getOwnPropertySymbols;
4
4
  var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
- var u = (e, t, s) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, p = (e, t) => {
5
+ var u = (e, t, s) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
6
6
  for (var s in t || (t = {}))
7
7
  f.call(t, s) && u(e, s, t[s]);
8
8
  if (d)
@@ -20,7 +20,7 @@ var y = (e, t) => {
20
20
  return s;
21
21
  };
22
22
  var h = (e, t, s) => new Promise((l, r) => {
23
- var g = (i) => {
23
+ var p = (i) => {
24
24
  try {
25
25
  a(s.next(i));
26
26
  } catch (n) {
@@ -32,14 +32,15 @@ var h = (e, t, s) => new Promise((l, r) => {
32
32
  } catch (n) {
33
33
  r(n);
34
34
  }
35
- }, a = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(g, o);
35
+ }, a = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(p, o);
36
36
  a((s = s.apply(e, t)).next());
37
37
  });
38
- import { cloneDeep as S, merge as P } from "@web-utils/integrations/lodash";
38
+ import { cloneDeep as _, merge as P } from "@web-utils/integrations/lodash";
39
39
  import { copy as x, hasOwn as C } from "@web-utils/core";
40
- import { f as v, h as O, i as E } from "../chunks/index.57f871af.mjs";
41
- import { n as M } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
42
- var R = function() {
40
+ import { f as S, a as O, b as M } from "../chunks/index.d91bd77a.mjs";
41
+ import R from "element-ui/lib/pagination";
42
+ import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
43
+ var k = function() {
43
44
  var e = this, t = e.$createElement, s = e._self._c || t;
44
45
  return s("div", {
45
46
  staticClass: "work",
@@ -73,7 +74,7 @@ var R = function() {
73
74
  return [e._t("default", null, {
74
75
  item: l
75
76
  })];
76
- }), e._t("append")], 2)])]), s("ElPagination", {
77
+ }), e._t("append")], 2)])]), s(R, {
77
78
  staticClass: "flex-not-shrink",
78
79
  staticStyle: {
79
80
  "border-top": "1px solid #ebeef5"
@@ -92,8 +93,8 @@ var R = function() {
92
93
  }
93
94
  }
94
95
  })], 1)]);
95
- }, j = [];
96
- function k(e) {
96
+ }, E = [];
97
+ function F(e) {
97
98
  let t = "";
98
99
  for (const s in e)
99
100
  t += `<ElTableColumn prop="${s}" label="${s}"/>
@@ -105,7 +106,7 @@ const c = {
105
106
  error: -1,
106
107
  empty: 2,
107
108
  success: 0
108
- }, F = {
109
+ }, L = {
109
110
  name: "PageableView",
110
111
  bus: {
111
112
  reloadTableView(e) {
@@ -167,7 +168,7 @@ const c = {
167
168
  let e = { rules: [] };
168
169
  this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = Object.assign({}, e, this.filter));
169
170
  let t = {};
170
- this.model && (t = S(this.model));
171
+ this.model && (t = _(this.model));
171
172
  const s = this.pageSize;
172
173
  return {
173
174
  // TABLE_STATUS: Object.freeze(TABLE_STATUS),
@@ -213,7 +214,7 @@ const c = {
213
214
  },
214
215
  headers() {
215
216
  var e;
216
- return ((e = this.columns) == null ? void 0 : e.map(v)) || [];
217
+ return ((e = this.columns) == null ? void 0 : e.map(S)) || [];
217
218
  }
218
219
  },
219
220
  watch: {
@@ -249,12 +250,12 @@ const c = {
249
250
  });
250
251
  },
251
252
  filterTableProperties: O,
252
- filterTableEvents: E,
253
- filterTableColumnProperties: v,
253
+ filterTableEvents: M,
254
+ filterTableColumnProperties: S,
254
255
  onTableScroll() {
255
256
  this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
256
257
  },
257
- copy: (e) => x(k(e)),
258
+ copy: (e) => x(F(e)),
258
259
  onSortChange({ prop: e, order: t }) {
259
260
  this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
260
261
  },
@@ -275,7 +276,7 @@ const c = {
275
276
  this.$set(this.page.model, e, t);
276
277
  },
277
278
  setModel(e) {
278
- this.page.page = 1, this.page.model = S(e);
279
+ this.page.page = 1, this.page.model = _(e);
279
280
  },
280
281
  deleteModelField(e) {
281
282
  delete this.page.model[e];
@@ -314,7 +315,7 @@ const c = {
314
315
  }
315
316
  this.records = [];
316
317
  let e;
317
- const a = this.page, { filters: t } = a, s = y(a, ["filters"]), l = p({}, s);
318
+ const a = this.page, { filters: t } = a, s = y(a, ["filters"]), l = g({}, s);
318
319
  if ((i = t == null ? void 0 : t.rules) != null && i.length && (l.filters = { rules: t.rules }), this.api || this.url) {
319
320
  this.tableStatus = c.loading;
320
321
  try {
@@ -330,8 +331,8 @@ const c = {
330
331
  });
331
332
  return;
332
333
  }
333
- const { data: r } = e || {}, { total: g, records: o } = r || {};
334
- this.page.total = Number(g), this.records = o, !o || !o.length ? this.tableStatus = c.empty : this.tableStatus = c.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", r);
334
+ const { data: r } = e || {}, { total: p, records: o } = r || {};
335
+ this.page.total = Number(p), this.records = o, !o || !o.length ? this.tableStatus = c.empty : this.tableStatus = c.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", r);
335
336
  });
336
337
  },
337
338
  refresh() {
@@ -341,7 +342,7 @@ const c = {
341
342
  },
342
343
  reload() {
343
344
  return h(this, null, function* () {
344
- this.page = b(p({}, this.$options.data.call(this).page), {
345
+ this.page = b(g({}, this.$options.data.call(this).page), {
345
346
  total: this.page.total
346
347
  });
347
348
  });
@@ -350,24 +351,24 @@ const c = {
350
351
  e && (this.$refs.scroller.scrollTop = e), t && (this.$refs.scroller.scrollLeft = t);
351
352
  }
352
353
  }
353
- }, _ = {};
354
- var L = /* @__PURE__ */ M(
355
- F,
356
- R,
357
- j,
354
+ }, v = {};
355
+ var A = /* @__PURE__ */ j(
356
+ L,
357
+ k,
358
+ E,
358
359
  !1,
359
- A,
360
+ B,
360
361
  null,
361
362
  null,
362
363
  null
363
364
  );
364
- function A(e) {
365
- for (let t in _)
366
- this[t] = _[t];
365
+ function B(e) {
366
+ for (let t in v)
367
+ this[t] = v[t];
367
368
  }
368
- const N = /* @__PURE__ */ function() {
369
- return L.exports;
369
+ const H = /* @__PURE__ */ function() {
370
+ return A.exports;
370
371
  }();
371
372
  export {
372
- N as default
373
+ H as default
373
374
  };
@@ -1,25 +1,29 @@
1
- var c = (t, e, o) => new Promise((r, s) => {
1
+ var c = (t, e, o) => new Promise((s, r) => {
2
2
  var n = (i) => {
3
3
  try {
4
4
  a(o.next(i));
5
5
  } catch (f) {
6
- s(f);
6
+ r(f);
7
7
  }
8
8
  }, l = (i) => {
9
9
  try {
10
10
  a(o.throw(i));
11
11
  } catch (f) {
12
- s(f);
12
+ r(f);
13
13
  }
14
- }, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
14
+ }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(n, l);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
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";
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";
20
20
  import "@web-utils/component/resize-observer/style.css";
21
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
22
- var x = function() {
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() {
23
27
  var t = this, e = t.$createElement, o = t._self._c || e;
24
28
  return o("div", {
25
29
  class: ["form-view", t.className]
@@ -32,7 +36,7 @@ var x = function() {
32
36
  }],
33
37
  staticClass: "form-view-toolbar"
34
38
  }, [t._t("form-view-toolbar", function() {
35
- return [o("Toolbar", t._g(t._b({
39
+ return [o(u, t._g(t._b({
36
40
  directives: [{
37
41
  name: "show",
38
42
  rawName: "v-show",
@@ -44,17 +48,17 @@ var x = function() {
44
48
  },
45
49
  scopedSlots: t._u([{
46
50
  key: "default",
47
- fn: function(r) {
48
- var s = r.buttons;
51
+ fn: function(s) {
52
+ var r = s.buttons;
49
53
  return [t._t("toolbar-button", null, {
50
- buttons: s
54
+ buttons: r
51
55
  })];
52
56
  }
53
- }, t._l(t.getToolbarSlotKeys(), function(r) {
57
+ }, t._l(t.getToolbarSlotKeys(), function(s) {
54
58
  return {
55
- key: r,
59
+ key: s,
56
60
  fn: function() {
57
- return [t._t(r)];
61
+ return [t._t(s)];
58
62
  },
59
63
  proxy: !0
60
64
  };
@@ -90,29 +94,29 @@ var x = function() {
90
94
  }, [t.title ? o("div", {
91
95
  staticClass: "form-view-title"
92
96
  }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
93
- return [o("EmptyView", {
97
+ return [o(h, {
94
98
  attrs: {
95
99
  "empty-tips": "请添加表单内容"
96
100
  }
97
101
  })];
98
- }), o("Toolbar", t._g(t._b({
102
+ }), o(u, t._g(t._b({
99
103
  attrs: {
100
104
  footer: ""
101
105
  },
102
106
  scopedSlots: t._u([{
103
107
  key: "default",
104
- fn: function(r) {
105
- var s = r.buttons, n = r.footer;
108
+ fn: function(s) {
109
+ var r = s.buttons, n = s.footer;
106
110
  return [t._t("footer-button", null, {
107
- buttons: s,
111
+ buttons: r,
108
112
  footer: n
109
113
  })];
110
114
  }
111
- }, t._l(t.getFooterSlotKeys(), function(r) {
115
+ }, t._l(t.getFooterSlotKeys(), function(s) {
112
116
  return {
113
- key: t.getFooterSlotKey(r),
117
+ key: t.getFooterSlotKey(s),
114
118
  fn: function() {
115
- return [t._t(r)];
119
+ return [t._t(s)];
116
120
  },
117
121
  proxy: !0
118
122
  };
@@ -131,29 +135,29 @@ var x = function() {
131
135
  }, [t.title ? o("div", {
132
136
  staticClass: "form-view-title"
133
137
  }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
134
- return [o("EmptyView", {
138
+ return [o(h, {
135
139
  attrs: {
136
140
  "empty-tips": "请添加表单内容"
137
141
  }
138
142
  })];
139
- }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({
143
+ }), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o(u, t._g(t._b({
140
144
  attrs: {
141
145
  footer: ""
142
146
  },
143
147
  scopedSlots: t._u([{
144
148
  key: "default",
145
- fn: function(r) {
146
- var s = r.buttons, n = r.footer;
149
+ fn: function(s) {
150
+ var r = s.buttons, n = s.footer;
147
151
  return [t._t("footer-button", null, {
148
- buttons: s,
152
+ buttons: r,
149
153
  footer: n
150
154
  })];
151
155
  }
152
- }, t._l(t.getFooterSlotKeys(), function(r) {
156
+ }, t._l(t.getFooterSlotKeys(), function(s) {
153
157
  return {
154
- key: t.getFooterSlotKey(r),
158
+ key: t.getFooterSlotKey(s),
155
159
  fn: function() {
156
- return [t._t(r)];
160
+ return [t._t(s)];
157
161
  },
158
162
  proxy: !0
159
163
  };
@@ -172,7 +176,7 @@ var x = function() {
172
176
  }
173
177
  }, [o("div", {
174
178
  staticClass: "form-content"
175
- }, [o("FormItemGroup", {
179
+ }, [o($, {
176
180
  attrs: {
177
181
  "block-title": "流程日志"
178
182
  }
@@ -182,7 +186,7 @@ var x = function() {
182
186
  "show-title": !1,
183
187
  "business-key": t.$parent.bizKey
184
188
  }
185
- })], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
189
+ })], 1), t._t("form-bottom")], 2)]) : t._e()]), o(F, {
186
190
  on: {
187
191
  notify: t.onFormResize
188
192
  }
@@ -192,26 +196,26 @@ var x = function() {
192
196
  staticClass: "form-nav-header"
193
197
  }, [t._v("表单导航")]), o("ul", {
194
198
  staticClass: "form-nav-list"
195
- }, t._l(t.tabs, function(r, s) {
199
+ }, t._l(t.tabs, function(s, r) {
196
200
  return o("li", {
197
- key: r.blockTitle,
201
+ key: s.blockTitle,
198
202
  class: ["form-nav-item", {
199
- active: t.activeIndex === s
203
+ active: t.activeIndex === r
200
204
  }],
201
205
  on: {
202
206
  click: function(n) {
203
- return t.tabClick(r, s);
207
+ return t.tabClick(s, r);
204
208
  }
205
209
  }
206
- }, [t._v(" " + t._s(r.blockTitle) + " ")]);
207
- }), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
210
+ }, [t._v(" " + t._s(s.blockTitle) + " ")]);
211
+ }), 0)]) : t._e(), t.isFormLoading ? o(S, {
208
212
  attrs: {
209
213
  "icon-size": "34px",
210
214
  "font-size": "16px"
211
215
  }
212
216
  }) : t._e()], 1);
213
- }, $ = [];
214
- const b = [
217
+ }, C = [];
218
+ const _ = [
215
219
  "back",
216
220
  "create",
217
221
  "save",
@@ -231,17 +235,17 @@ const b = [
231
235
  "disabled",
232
236
  "reload",
233
237
  "slot"
234
- ], S = b.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
238
+ ], L = _.map((t) => `${t}-down`), T = ["back", "withdraw", "edit"], b = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], d = (t, e) => {
235
239
  if (t.classList.contains(e))
236
240
  return t;
237
241
  let o = t.parentNode;
238
242
  for (; o && !o.classList.contains(e); )
239
243
  o = o.parentNode;
240
244
  return o.classList.contains(e) ? o : null;
241
- }, k = {
245
+ }, O = {
242
246
  name: "PresentView",
243
247
  components: {
244
- ResizeObserver: y
248
+ ResizeObserver: x
245
249
  },
246
250
  inject: {
247
251
  flowContext: {
@@ -284,23 +288,23 @@ const b = [
284
288
  },
285
289
  computed: {
286
290
  isFormLoading() {
287
- return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
291
+ return this.loading || m(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
288
292
  },
289
293
  toolbarProps() {
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;
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;
293
297
  }
294
298
  },
295
299
  created() {
296
300
  this.$on("FormView.addTab", (t) => {
297
301
  t && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(t), this.tabs = this.tabs.sort((e, o) => {
298
- const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
299
- if (r === s) {
302
+ const s = d(e.$el, "form-card"), r = d(o.$el, "form-card");
303
+ if (s === r) {
300
304
  const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
301
305
  return n - l;
302
306
  } else {
303
- const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
307
+ const n = d(s, "form-scroller"), l = [].indexOf.call(n.children, s), a = [].indexOf.call(n.children, r);
304
308
  return l - a;
305
309
  }
306
310
  }), t.active && (this.activeIndex = this.tabs.indexOf(t), this.tabClick(t, this.activeIndex)));
@@ -318,10 +322,10 @@ const b = [
318
322
  },
319
323
  methods: {
320
324
  getToolbarSlotKeys() {
321
- return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
325
+ return Object.keys(this.$scopedSlots).filter((t) => _.includes(t));
322
326
  },
323
327
  getFooterSlotKeys() {
324
- return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
328
+ return Object.keys(this.$scopedSlots).filter((t) => L.includes(t));
325
329
  },
326
330
  getFooterSlotKey(t) {
327
331
  return t.replace("-down", "");
@@ -330,18 +334,18 @@ const b = [
330
334
  this.showNav = t > 1500;
331
335
  },
332
336
  onEdit() {
333
- !this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
337
+ !this.toolbarListeners.edit && m(this.$parent, "disabled") && (this.$parent.disabled = !1);
334
338
  },
335
339
  tabClick(t, e) {
336
340
  return c(this, null, function* () {
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);
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);
338
342
  });
339
343
  },
340
344
  tryActive() {
341
345
  return c(this, null, function* () {
342
346
  if (this.showNav) {
343
347
  for (let t = 0; t < this.tabs.length; t++)
344
- if (_(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
348
+ if (w(this.tabs[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
345
349
  this.activeIndex = t;
346
350
  break;
347
351
  }
@@ -355,33 +359,33 @@ const b = [
355
359
  t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
356
360
  },
357
361
  getToolbarButtons(t) {
358
- return t.filter((e) => !m.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
362
+ return t.filter((e) => !b.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
359
363
  },
360
364
  getFooterBarButtons(t) {
361
365
  let e = t.filter(
362
- (o) => !F.includes(o) && (m.includes(o) || o.indexOf(":down") > -1)
366
+ (o) => !T.includes(o) && (b.includes(o) || o.indexOf(":down") > -1)
363
367
  ).map((o) => o.replace(":down", ""));
364
368
  return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
365
369
  }
366
370
  }
367
- }, h = {};
368
- var B = /* @__PURE__ */ g(
369
- k,
370
- x,
371
- $,
371
+ }, p = {};
372
+ var I = /* @__PURE__ */ k(
373
+ O,
374
+ B,
375
+ C,
372
376
  !1,
373
- L,
377
+ N,
374
378
  null,
375
379
  null,
376
380
  null
377
381
  );
378
- function L(t) {
379
- for (let e in h)
380
- this[e] = h[e];
382
+ function N(t) {
383
+ for (let e in p)
384
+ this[e] = p[e];
381
385
  }
382
- const j = /* @__PURE__ */ function() {
383
- return B.exports;
386
+ const M = /* @__PURE__ */ function() {
387
+ return I.exports;
384
388
  }();
385
389
  export {
386
- j as default
390
+ M as default
387
391
  };
@@ -1,4 +1,4 @@
1
- import { s as r } from "../chunks/util.ae730cde.mjs";
1
+ import { s as r } from "../chunks/util.7844e2c2.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  let n = class {
4
4
  /**
@@ -1,26 +1,18 @@
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);
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);
15
7
  }
16
- const c = {
8
+ const d = {
17
9
  name: "ResizeObserver",
18
10
  mounted() {
19
- s(), this.$nextTick(() => {
11
+ i(), this.$nextTick(() => {
20
12
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
21
13
  });
22
14
  const e = document.createElement("object");
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);
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);
24
16
  },
25
17
  beforeDestroy() {
26
18
  this.removeResizeHandlers();
@@ -36,27 +28,27 @@ const c = {
36
28
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
37
29
  },
38
30
  removeResizeHandlers() {
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);
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);
40
32
  }
41
33
  }
42
34
  }, n = {};
43
- var d = /* @__PURE__ */ h(
44
- c,
45
- a,
46
- l,
35
+ var a = /* @__PURE__ */ l(
36
+ d,
37
+ h,
38
+ r,
47
39
  !1,
48
- _,
40
+ c,
49
41
  null,
50
42
  null,
51
43
  null
52
44
  );
53
- function _(e) {
54
- for (let t in n)
55
- this[t] = n[t];
45
+ function c(e) {
46
+ for (let s in n)
47
+ this[s] = n[s];
56
48
  }
57
- const m = /* @__PURE__ */ function() {
58
- return d.exports;
49
+ const u = /* @__PURE__ */ function() {
50
+ return a.exports;
59
51
  }();
60
52
  export {
61
- m as default
53
+ u as default
62
54
  };