@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
@@ -1,38 +1,6 @@
1
- import { s as n } from "../chunks/util.ae730cde.mjs";
1
+ import { s as t } from "../chunks/util.7844e2c2.mjs";
2
+ import { s, r as n } from "../chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs";
2
3
  import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var l = function() {
4
- var e = this, o = e.$createElement, t = e._self._c || o;
5
- return t("div", {
6
- ref: "node",
7
- style: e.flowNodeContainer,
8
- attrs: {
9
- left: e.node.left,
10
- top: e.node.top,
11
- disabled: "",
12
- mask: !1
13
- },
14
- on: {
15
- mouseenter: e.showDelete,
16
- mouseleave: e.hideDelete,
17
- mouseup: e.changeNodeSite
18
- }
19
- }, [t("div", {
20
- class: ["avue-flow__node", {
21
- active: e.active === e.node.id
22
- }]
23
- }, [t("div", {
24
- staticClass: "avue-flow__node-header"
25
- }, [t("i", {
26
- staticClass: "el-icon-rank",
27
- class: e.b("node-drag")
28
- }), e._t("header", null, {
29
- node: e.node
30
- })], 2), t("div", {
31
- staticClass: "avue-flow__node-body"
32
- }, [e._t("default", null, {
33
- node: e.node
34
- })], 2)])]);
35
- }, a = [];
36
4
  const i = {
37
5
  name: "FlowNode",
38
6
  props: {
@@ -53,8 +21,8 @@ const i = {
53
21
  return {
54
22
  position: "absolute",
55
23
  width: "200px",
56
- top: n(this.node.top),
57
- left: n(this.node.left),
24
+ top: t(this.node.top),
25
+ left: t(this.node.left),
58
26
  boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
59
27
  backgroundColor: "transparent"
60
28
  };
@@ -79,24 +47,24 @@ const i = {
79
47
  });
80
48
  }
81
49
  }
82
- }, s = {};
83
- var d = /* @__PURE__ */ r(
50
+ }, o = {};
51
+ var l = /* @__PURE__ */ r(
84
52
  i,
85
- l,
86
- a,
53
+ n,
54
+ s,
87
55
  !1,
88
- u,
56
+ d,
89
57
  null,
90
58
  null,
91
59
  null
92
60
  );
93
- function u(e) {
94
- for (let o in s)
95
- this[o] = s[o];
61
+ function d(p) {
62
+ for (let e in o)
63
+ this[e] = o[e];
96
64
  }
97
- const p = /* @__PURE__ */ function() {
98
- return d.exports;
65
+ const h = /* @__PURE__ */ function() {
66
+ return l.exports;
99
67
  }();
100
68
  export {
101
- p as default
69
+ h as default
102
70
  };
@@ -1,47 +1,136 @@
1
- var b = Object.defineProperty, x = Object.defineProperties;
2
- var M = Object.getOwnPropertyDescriptors;
1
+ var $ = Object.defineProperty, M = Object.defineProperties;
2
+ var B = Object.getOwnPropertyDescriptors;
3
3
  var g = Object.getOwnPropertySymbols;
4
4
  var V = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var u = (e, i, t) => i in e ? b(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, w = (e, i) => {
6
- for (var t in i || (i = {}))
7
- V.call(i, t) && u(e, t, i[t]);
5
+ var y = (e, t, i) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, v = (e, t) => {
6
+ for (var i in t || (t = {}))
7
+ V.call(t, i) && y(e, i, t[i]);
8
8
  if (g)
9
- for (var t of g(i))
10
- E.call(i, t) && u(e, t, i[t]);
9
+ for (var i of g(t))
10
+ E.call(t, i) && y(e, i, t[i]);
11
11
  return e;
12
- }, y = (e, i) => x(e, M(i));
13
- var v = (e, i, t) => new Promise((s, n) => {
12
+ }, _ = (e, t) => M(e, B(t));
13
+ var f = (e, t, i) => new Promise((o, s) => {
14
14
  var l = (r) => {
15
15
  try {
16
- a(t.next(r));
17
- } catch (o) {
18
- n(o);
16
+ a(i.next(r));
17
+ } catch (n) {
18
+ s(n);
19
19
  }
20
20
  }, h = (r) => {
21
21
  try {
22
- a(t.throw(r));
23
- } catch (o) {
24
- n(o);
22
+ a(i.throw(r));
23
+ } catch (n) {
24
+ s(n);
25
25
  }
26
- }, a = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(l, h);
27
- a((t = t.apply(e, i)).next());
26
+ }, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(l, h);
27
+ a((i = i.apply(e, t)).next());
28
28
  });
29
- import $ from "bpmn-js/lib/NavigatedViewer";
30
- import d from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
31
- import { create as c, attr as p, append as m } from "tiny-svg";
32
- import { query as A } from "min-dom";
29
+ import W from "bpmn-js/lib/NavigatedViewer";
30
+ import m from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
31
+ import { create as c, attr as d, append as p } from "tiny-svg";
32
+ import { query as C } from "min-dom";
33
33
  import F from "@web-utils/component/easy-popup";
34
34
  import "@web-utils/component/easy-popup/style.css";
35
- import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
36
- var B = function() {
37
- var e = this, i = e.$createElement, t = e._self._c || i;
38
- return t("div", {
35
+ import { getComputedWidth as S, getComputedHeight as A } from "@web-utils/core";
36
+ import { s as H, r as L } from "../chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs";
37
+ import { n as b } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
38
+ const T = {
39
+ name: "EasyPopup",
40
+ props: {
41
+ // 是否开启边界检测
42
+ border: {
43
+ type: Boolean,
44
+ default: !0
45
+ },
46
+ // 显示点偏移量
47
+ offset: {
48
+ type: Object,
49
+ default: () => ({ x: 6, y: 2 })
50
+ },
51
+ // 边界距离
52
+ borderWidth: {
53
+ type: Number,
54
+ default: 6
55
+ },
56
+ appendToBody: Boolean,
57
+ flexRow: Boolean,
58
+ flexColumn: Boolean,
59
+ hideOnMouseLeave: {
60
+ type: Boolean,
61
+ default: !0
62
+ },
63
+ interactive: Boolean
64
+ },
65
+ data() {
66
+ return {
67
+ // 是否显示
68
+ visible: !1,
69
+ rendered: !1,
70
+ // 触发点坐标
71
+ axis: { x: 0, y: 0 }
72
+ };
73
+ },
74
+ computed: {
75
+ position() {
76
+ return {
77
+ top: `${this.axis.y + this.offset.y}px`,
78
+ left: `${this.axis.x + this.offset.x}px`
79
+ };
80
+ }
81
+ },
82
+ watch: {
83
+ axis() {
84
+ return f(this, null, function* () {
85
+ if (this.border) {
86
+ yield this.$nextTick();
87
+ const e = S(this.$refs.container), t = A(this.$refs.container), i = document.body.offsetWidth, o = document.body.offsetHeight;
88
+ this.axis.x + this.offset.x + e >= i && (this.axis.x = i - e - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + t >= o && (this.axis.y = o - t - this.borderWidth - this.offset.y);
89
+ }
90
+ });
91
+ }
92
+ },
93
+ destroyed() {
94
+ this.$el.remove();
95
+ },
96
+ methods: {
97
+ show({ clientX: e, clientY: t }) {
98
+ this.axis = { x: e, y: t }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
99
+ },
100
+ hide() {
101
+ this.visible = !1, document.removeEventListener("click", this.doHide);
102
+ },
103
+ doHide(e) {
104
+ this.interactive && this.$el.contains(e.target) || this.hide();
105
+ }
106
+ }
107
+ }, w = {};
108
+ var X = /* @__PURE__ */ b(
109
+ T,
110
+ L,
111
+ H,
112
+ !1,
113
+ j,
114
+ null,
115
+ null,
116
+ null
117
+ );
118
+ function j(e) {
119
+ for (let t in w)
120
+ this[t] = w[t];
121
+ }
122
+ const P = /* @__PURE__ */ function() {
123
+ return X.exports;
124
+ }();
125
+ var R = function() {
126
+ var e = this, t = e.$createElement, i = e._self._c || t;
127
+ return i("div", {
39
128
  ref: "container",
40
129
  staticClass: "flow-viewer flow-background-image",
41
130
  style: {
42
131
  "--highlight-color": e.highlightColor
43
132
  }
44
- }, [t("EasyPopup", {
133
+ }, [i(P, {
45
134
  ref: "popup",
46
135
  attrs: {
47
136
  "append-to-body": "",
@@ -56,11 +145,11 @@ var B = function() {
56
145
  }, {
57
146
  element: e.element
58
147
  })], 2)], 1);
59
- }, C = [];
60
- const f = d.prototype._handleWheel, P = {
148
+ }, q = [];
149
+ const u = m.prototype._handleWheel, Y = {
61
150
  __init__: ["zoomScroll"],
62
- zoomScroll: ["type", d]
63
- }, W = {
151
+ zoomScroll: ["type", m]
152
+ }, z = {
64
153
  name: "FlowViewer",
65
154
  components: {
66
155
  EasyPopup: F
@@ -96,18 +185,18 @@ const f = d.prototype._handleWheel, P = {
96
185
  },
97
186
  watch: {
98
187
  xml(e) {
99
- var i;
100
- (i = this.bpmnViewer) == null || i.importXML(e);
188
+ var t;
189
+ (t = this.bpmnViewer) == null || t.importXML(e);
101
190
  }
102
191
  },
103
192
  mounted() {
104
- d.prototype._handleWheel = this.ctrlKey ? f : function(e) {
105
- const { target: i, deltaMode: t, clientX: s, clientY: n, deltaX: l, deltaY: h } = e;
106
- f.call(this, {
107
- target: i,
108
- deltaMode: t,
109
- clientX: s,
110
- clientY: n,
193
+ m.prototype._handleWheel = this.ctrlKey ? u : function(e) {
194
+ const { target: t, deltaMode: i, clientX: o, clientY: s, deltaX: l, deltaY: h } = e;
195
+ u.call(this, {
196
+ target: t,
197
+ deltaMode: i,
198
+ clientX: o,
199
+ clientY: s,
111
200
  deltaX: l,
112
201
  deltaY: h,
113
202
  preventDefault() {
@@ -115,26 +204,26 @@ const f = d.prototype._handleWheel, P = {
115
204
  },
116
205
  ctrlKey: !0
117
206
  });
118
- }, this.bpmnViewer = new $(y(w({}, this.options), {
207
+ }, this.bpmnViewer = new W(_(v({}, this.options), {
119
208
  container: this.$refs.container,
120
- additionalModules: [P]
209
+ additionalModules: [Y]
121
210
  })), this.bpmnViewer.on("import.done", (e) => {
122
- const i = e.error, t = e.warnings;
123
- i ? this.$emit("error", i) : this.$emit("shown", t), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
124
- const s = this.bpmnViewer.get("eventBus");
125
- this.events && this.events.forEach((o) => {
126
- s.on(o, (k) => {
127
- this.$emit(o.replace(".", "-"), k.element);
211
+ const t = e.error, i = e.warnings;
212
+ t ? this.$emit("error", t) : this.$emit("shown", i), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
213
+ const o = this.bpmnViewer.get("eventBus");
214
+ this.events && this.events.forEach((n) => {
215
+ o.on(n, (k) => {
216
+ this.$emit(n.replace(".", "-"), k.element);
128
217
  });
129
- }), this.nodePopup && s.on("element.mousemove", (o) => {
130
- o.element.type === "bpmn:UserTask" && requestAnimationFrame(() => v(this, null, function* () {
131
- this.element = o.element, yield this.$nextTick(), this.$refs.popup.show(o.originalEvent);
218
+ }), this.nodePopup && o.on("element.mousemove", (n) => {
219
+ n.element.type === "bpmn:UserTask" && requestAnimationFrame(() => f(this, null, function* () {
220
+ this.element = n.element, yield this.$nextTick(), this.$refs.popup.show(n.originalEvent);
132
221
  }));
133
- }), this.nodePopup && s.on("element.out", () => {
222
+ }), this.nodePopup && o.on("element.out", () => {
134
223
  this.$refs.popup.hide(), this.element = {};
135
224
  }), this.highlightFlow(this.historicActivities, this.activities);
136
- const n = c("marker");
137
- p(n, {
225
+ const s = c("marker");
226
+ d(s, {
138
227
  id: "sequenceflow-arrow-green",
139
228
  viewBox: "0 0 20 20",
140
229
  refX: "11",
@@ -144,12 +233,12 @@ const f = d.prototype._handleWheel, P = {
144
233
  orient: "auto"
145
234
  });
146
235
  const l = c("path");
147
- p(l, {
236
+ d(l, {
148
237
  d: "M 1 5 L 11 10 L 1 15 Z",
149
238
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
150
- }), m(n, l);
239
+ }), p(s, l);
151
240
  const h = c("marker");
152
- p(h, {
241
+ d(h, {
153
242
  id: "conditional-default-flow-marker-green",
154
243
  viewBox: "0 0 20 20",
155
244
  refX: "0",
@@ -159,60 +248,60 @@ const f = d.prototype._handleWheel, P = {
159
248
  orient: "auto"
160
249
  });
161
250
  const a = c("path");
162
- p(a, {
251
+ d(a, {
163
252
  d: "M 6 4 L 10 16",
164
253
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
165
- }), m(h, a);
166
- const r = A("defs", this.$el);
167
- m(r, n), m(r, h);
254
+ }), p(h, a);
255
+ const r = C("defs", this.$el);
256
+ p(r, s), p(r, h);
168
257
  }), this.bpmnViewer.importXML(this.xml), this.$watch(
169
258
  () => ({
170
259
  activities: this.activities,
171
260
  historicActivities: this.historicActivities
172
261
  }),
173
- ({ activities: e, historicActivities: i }) => {
174
- this.highlightFlow(i, e);
262
+ ({ activities: e, historicActivities: t }) => {
263
+ this.highlightFlow(t, e);
175
264
  }
176
265
  );
177
266
  },
178
267
  beforeDestroy() {
179
268
  var e;
180
- d.prototype._handleWheel = f, (e = this.bpmnViewer) == null || e.destroy();
269
+ m.prototype._handleWheel = u, (e = this.bpmnViewer) == null || e.destroy();
181
270
  },
182
271
  methods: {
183
272
  fitViewportCenter(e = "center") {
184
273
  this.canvas.zoom("fit-viewport", e);
185
274
  },
186
- highlightFlow(e, i) {
187
- this.elementRegistry.getAll().forEach((t) => {
275
+ highlightFlow(e, t) {
276
+ this.elementRegistry.getAll().forEach((i) => {
188
277
  [
189
278
  "bpmn:StartEvent",
190
279
  "bpmn:UserTask",
191
280
  "bpmn:ExclusiveGateway",
192
281
  "bpmn:ParallelGateway",
193
282
  "bpmn:EndEvent"
194
- ].includes(t.type) && (e.includes(t.id) && !i.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
283
+ ].includes(i.type) && (e.includes(i.id) && !t.includes(i.id) ? this.canvas.addMarker(i, "highlight") : this.canvas.removeMarker(i, "highlight")), i.type === "bpmn:SequenceFlow" && (e.includes(i.id) ? this.canvas.addMarker(i, "highlight-line") : this.canvas.removeMarker(i, "highlight-line")), i.type === "bpmn:UserTask" && (t.includes(i.id) ? this.canvas.addMarker(i, "highlight-current") : this.canvas.removeMarker(i, "highlight-current"));
195
284
  });
196
285
  }
197
286
  }
198
- }, _ = {};
199
- var X = /* @__PURE__ */ S(
200
- W,
201
- B,
202
- C,
203
- !1,
287
+ }, x = {};
288
+ var D = /* @__PURE__ */ b(
289
+ z,
290
+ R,
204
291
  q,
292
+ !1,
293
+ K,
205
294
  null,
206
295
  null,
207
296
  null
208
297
  );
209
- function q(e) {
210
- for (let i in _)
211
- this[i] = _[i];
298
+ function K(e) {
299
+ for (let t in x)
300
+ this[t] = x[t];
212
301
  }
213
- const U = /* @__PURE__ */ function() {
214
- return X.exports;
302
+ const ie = /* @__PURE__ */ function() {
303
+ return D.exports;
215
304
  }();
216
305
  export {
217
- U as default
306
+ ie as default
218
307
  };
@@ -1,5 +1,7 @@
1
- import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], c = {
1
+ import s from "element-ui/lib/transitions/collapse-transition";
2
+ import d from "element-ui/lib/row";
3
+ import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], u = {
3
5
  name: "FormBlock",
4
6
  inject: {
5
7
  elForm: {
@@ -28,7 +30,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
28
30
  },
29
31
  data() {
30
32
  const e = {};
31
- return l.forEach((t) => {
33
+ return n.forEach((t) => {
32
34
  e[t] = null;
33
35
  }), {
34
36
  expand: !0,
@@ -41,7 +43,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
41
43
  enabled: this.enabled,
42
44
  forbidden: this.disabled
43
45
  };
44
- return l.forEach((t) => {
46
+ return n.forEach((t) => {
45
47
  e[t] = this.elForm[t];
46
48
  }), e;
47
49
  }
@@ -56,9 +58,9 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
56
58
  formCfg: {
57
59
  immediate: !0,
58
60
  handler() {
59
- this.formConfig.disabled = this.available(), l.forEach((e) => {
61
+ this.formConfig.disabled = this.available(), n.forEach((e) => {
60
62
  var t;
61
- e !== "disabled" && (d.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
63
+ e !== "disabled" && (m.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
62
64
  });
63
65
  }
64
66
  }
@@ -88,7 +90,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
88
90
  } = this;
89
91
  return t ? (
90
92
  // eslint-disable-next-line no-undef
91
- e("ElRow", {
93
+ e(d, {
92
94
  attrs: {
93
95
  gutter: a
94
96
  }
@@ -112,7 +114,7 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
112
114
  blockTitle: a,
113
115
  active: o,
114
116
  expand: i,
115
- toggle: r
117
+ toggle: l
116
118
  } = this;
117
119
  return e("div", {
118
120
  class: ["form-block", {
@@ -121,13 +123,13 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
121
123
  }, [e("div", {
122
124
  class: "form-block-title",
123
125
  on: {
124
- click: r
126
+ click: l
125
127
  }
126
128
  }, [e("span", {
127
129
  class: "flex-item"
128
130
  }, [a]), " ", e("i", {
129
131
  class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
130
- })]), e("ElCollapseTransition", [e("div", {
132
+ })]), e(s, [e("div", {
131
133
  directives: [{
132
134
  name: "show",
133
135
  value: i
@@ -135,25 +137,25 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
135
137
  }, [t()])])]);
136
138
  }
137
139
  };
138
- let m, h;
139
- const s = {};
140
- var f = /* @__PURE__ */ n(
141
- c,
142
- m,
140
+ let f, h;
141
+ const r = {};
142
+ var p = /* @__PURE__ */ c(
143
+ u,
144
+ f,
143
145
  h,
144
146
  !1,
145
- u,
147
+ _,
146
148
  null,
147
149
  null,
148
150
  null
149
151
  );
150
- function u(e) {
151
- for (let t in s)
152
- this[t] = s[t];
152
+ function _(e) {
153
+ for (let t in r)
154
+ this[t] = r[t];
153
155
  }
154
- const b = /* @__PURE__ */ function() {
155
- return f.exports;
156
+ const F = /* @__PURE__ */ function() {
157
+ return p.exports;
156
158
  }();
157
159
  export {
158
- b as default
160
+ F as default
159
161
  };
@@ -1,24 +1,24 @@
1
1
  var u = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
2
+ var l = Object.getOwnPropertySymbols;
3
3
  var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
4
+ var s = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
- c.call(t, r) && o(e, r, t[r]);
7
- if (n)
8
- for (var r of n(t))
9
- d.call(t, r) && o(e, r, t[r]);
6
+ c.call(t, r) && s(e, r, t[r]);
7
+ if (l)
8
+ for (var r of l(t))
9
+ d.call(t, r) && s(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
- import s from "element-ui/lib/cascader";
15
- import { d as h, n as y } from "../chunks/index.57f871af.mjs";
16
- import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
17
- import { cloneDeep as b } from "@web-utils/integrations/lodash";
18
- import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var k = function() {
12
+ import { _ as f, f as m } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import { f as h } from "../chunks/form-pick-mixin.61ad06b2.mjs";
14
+ import o from "element-ui/lib/cascader";
15
+ import { h as y, n as _ } from "../chunks/index.d91bd77a.mjs";
16
+ import { findTreeChildren as v, setParent as b } from "@web-utils/core";
17
+ import { cloneDeep as S } from "@web-utils/integrations/lodash";
18
+ import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
+ var x = function() {
20
20
  var e = this, t = e.$createElement, r = e._self._c || t;
21
- return r("FormItem", e._b({
21
+ return r(f, e._b({
22
22
  attrs: {
23
23
  rules: e.computeRules,
24
24
  disabled: e.inputDisabled
@@ -27,7 +27,7 @@ var k = function() {
27
27
  key: "default",
28
28
  fn: function() {
29
29
  return [e._t("default", function() {
30
- return [r("ElCascader", e._g(e._b({
30
+ return [r(o, e._g(e._b({
31
31
  class: {
32
32
  "is-readonly": e.readonly
33
33
  },
@@ -71,12 +71,12 @@ var k = function() {
71
71
  proxy: !0
72
72
  }], null, !0)
73
73
  }, "FormItem", e.formItemProps, !1));
74
- }, x = [];
75
- const P = Object.keys(s.props || s.default.props).filter(
74
+ }, P = [];
75
+ const g = Object.keys(o.props || o.default.props).filter(
76
76
  (e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
77
77
  ), w = {
78
78
  name: "FormCascader",
79
- mixins: [m, f],
79
+ mixins: [m, h],
80
80
  props: {
81
81
  value: {
82
82
  type: [String, Number]
@@ -114,7 +114,7 @@ const P = Object.keys(s.props || s.default.props).filter(
114
114
  },
115
115
  computed: {
116
116
  inputProps() {
117
- return h(l(l({}, y(this.$attrs)), this.$props), P);
117
+ return y(n(n({}, _(this.$attrs)), this.$props), g);
118
118
  },
119
119
  inputVal() {
120
120
  let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
@@ -129,8 +129,8 @@ const P = Object.keys(s.props || s.default.props).filter(
129
129
  immediate: !0,
130
130
  handler(e) {
131
131
  if (e) {
132
- const t = b(e);
133
- _(t), this.innerOptions = t;
132
+ const t = S(e);
133
+ b(t), this.innerOptions = t;
134
134
  } else
135
135
  this.innerOptions = [];
136
136
  }
@@ -143,23 +143,23 @@ const P = Object.keys(s.props || s.default.props).filter(
143
143
  }
144
144
  }
145
145
  }, a = {};
146
- var C = /* @__PURE__ */ S(
146
+ var K = /* @__PURE__ */ k(
147
147
  w,
148
- k,
149
148
  x,
149
+ P,
150
150
  !1,
151
- K,
151
+ C,
152
152
  null,
153
153
  null,
154
154
  null
155
155
  );
156
- function K(e) {
156
+ function C(e) {
157
157
  for (let t in a)
158
158
  this[t] = a[t];
159
159
  }
160
- const E = /* @__PURE__ */ function() {
161
- return C.exports;
160
+ const M = /* @__PURE__ */ function() {
161
+ return K.exports;
162
162
  }();
163
163
  export {
164
- E as default
164
+ M as default
165
165
  };