@web-utils/component 3.0.6 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,39 +1,6 @@
1
- import { s as n } from "../chunks/util.ae730cde.mjs";
2
- 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
- const i = {
1
+ import { s as o } from "../chunks/util.ae730cde.mjs";
2
+ import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const s = {
37
4
  name: "FlowNode",
38
5
  props: {
39
6
  active: [String, Number],
@@ -53,8 +20,8 @@ const i = {
53
20
  return {
54
21
  position: "absolute",
55
22
  width: "200px",
56
- top: n(this.node.top),
57
- left: n(this.node.left),
23
+ top: o(this.node.top),
24
+ left: o(this.node.left),
58
25
  boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
59
26
  backgroundColor: "transparent"
60
27
  };
@@ -79,24 +46,21 @@ const i = {
79
46
  });
80
47
  }
81
48
  }
82
- }, s = {};
83
- var d = /* @__PURE__ */ r(
84
- i,
49
+ };
50
+ var l = function() {
51
+ var e = this, t = e._self._c;
52
+ return t("div", { ref: "node", style: e.flowNodeContainer, attrs: { left: e.node.left, top: e.node.top, disabled: "", mask: !1 }, on: { mouseenter: e.showDelete, mouseleave: e.hideDelete, mouseup: e.changeNodeSite } }, [t("div", { class: ["avue-flow__node", { active: e.active === e.node.id }] }, [t("div", { staticClass: "avue-flow__node-header" }, [t("i", { staticClass: "el-icon-rank", class: e.b("node-drag") }), e._t("header", null, { node: e.node })], 2), t("div", { staticClass: "avue-flow__node-body" }, [e._t("default", null, { node: e.node })], 2)])]);
53
+ }, d = [], r = /* @__PURE__ */ n(
54
+ s,
85
55
  l,
86
- a,
56
+ d,
87
57
  !1,
88
- u,
58
+ null,
89
59
  null,
90
60
  null,
91
61
  null
92
62
  );
93
- function u(e) {
94
- for (let o in s)
95
- this[o] = s[o];
96
- }
97
- const p = /* @__PURE__ */ function() {
98
- return d.exports;
99
- }();
63
+ const u = r.exports;
100
64
  export {
101
- p as default
65
+ u as default
102
66
  };
@@ -1,66 +1,42 @@
1
- var b = Object.defineProperty, x = Object.defineProperties;
2
- var M = Object.getOwnPropertyDescriptors;
1
+ var k = Object.defineProperty, b = Object.defineProperties;
2
+ var x = Object.getOwnPropertyDescriptors;
3
3
  var g = Object.getOwnPropertySymbols;
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]);
4
+ var V = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
5
+ var u = (i, t, e) => t in i ? k(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, w = (i, t) => {
6
+ for (var e in t || (t = {}))
7
+ V.call(t, e) && u(i, e, t[e]);
8
8
  if (g)
9
- for (var t of g(i))
10
- E.call(i, t) && u(e, t, i[t]);
11
- return e;
12
- }, y = (e, i) => x(e, M(i));
13
- var v = (e, i, t) => new Promise((s, n) => {
9
+ for (var e of g(t))
10
+ M.call(t, e) && u(i, e, t[e]);
11
+ return i;
12
+ }, y = (i, t) => b(i, x(t));
13
+ var v = (i, t, e) => new Promise((s, n) => {
14
14
  var l = (r) => {
15
15
  try {
16
- a(t.next(r));
16
+ a(e.next(r));
17
17
  } catch (o) {
18
18
  n(o);
19
19
  }
20
20
  }, h = (r) => {
21
21
  try {
22
- a(t.throw(r));
22
+ a(e.throw(r));
23
23
  } catch (o) {
24
24
  n(o);
25
25
  }
26
26
  }, a = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(l, h);
27
- a((t = t.apply(e, i)).next());
27
+ a((e = e.apply(i, t)).next());
28
28
  });
29
- import $ from "bpmn-js/lib/NavigatedViewer";
29
+ import A from "bpmn-js/lib/NavigatedViewer";
30
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";
31
+ import { create as p, attr as c, append as m } from "tiny-svg";
32
+ import { query as E } 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", {
39
- ref: "container",
40
- staticClass: "flow-viewer flow-background-image",
41
- style: {
42
- "--highlight-color": e.highlightColor
43
- }
44
- }, [t("EasyPopup", {
45
- ref: "popup",
46
- attrs: {
47
- "append-to-body": "",
48
- "flex-column": "",
49
- offset: {
50
- x: 6,
51
- y: 6
52
- }
53
- }
54
- }, [e._t("default", function() {
55
- return [e._v(" " + e._s(e.element) + " ")];
56
- }, {
57
- element: e.element
58
- })], 2)], 1);
59
- }, C = [];
60
- const f = d.prototype._handleWheel, P = {
35
+ import { n as $ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
36
+ const f = d.prototype._handleWheel, S = {
61
37
  __init__: ["zoomScroll"],
62
38
  zoomScroll: ["type", d]
63
- }, W = {
39
+ }, B = {
64
40
  name: "FlowViewer",
65
41
  components: {
66
42
  EasyPopup: F
@@ -95,36 +71,36 @@ const f = d.prototype._handleWheel, P = {
95
71
  };
96
72
  },
97
73
  watch: {
98
- xml(e) {
99
- var i;
100
- (i = this.bpmnViewer) == null || i.importXML(e);
74
+ xml(i) {
75
+ var t;
76
+ (t = this.bpmnViewer) == null || t.importXML(i);
101
77
  }
102
78
  },
103
79
  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;
80
+ d.prototype._handleWheel = this.ctrlKey ? f : function(i) {
81
+ const { target: t, deltaMode: e, clientX: s, clientY: n, deltaX: l, deltaY: h } = i;
106
82
  f.call(this, {
107
- target: i,
108
- deltaMode: t,
83
+ target: t,
84
+ deltaMode: e,
109
85
  clientX: s,
110
86
  clientY: n,
111
87
  deltaX: l,
112
88
  deltaY: h,
113
89
  preventDefault() {
114
- e.preventDefault();
90
+ i.preventDefault();
115
91
  },
116
92
  ctrlKey: !0
117
93
  });
118
- }, this.bpmnViewer = new $(y(w({}, this.options), {
94
+ }, this.bpmnViewer = new A(y(w({}, this.options), {
119
95
  container: this.$refs.container,
120
- additionalModules: [P]
121
- })), 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");
96
+ additionalModules: [S]
97
+ })), this.bpmnViewer.on("import.done", (i) => {
98
+ const t = i.error, e = i.warnings;
99
+ t ? this.$emit("error", t) : this.$emit("shown", e), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
124
100
  const s = this.bpmnViewer.get("eventBus");
125
101
  this.events && this.events.forEach((o) => {
126
- s.on(o, (k) => {
127
- this.$emit(o.replace(".", "-"), k.element);
102
+ s.on(o, (_) => {
103
+ this.$emit(o.replace(".", "-"), _.element);
128
104
  });
129
105
  }), this.nodePopup && s.on("element.mousemove", (o) => {
130
106
  o.element.type === "bpmn:UserTask" && requestAnimationFrame(() => v(this, null, function* () {
@@ -133,8 +109,8 @@ const f = d.prototype._handleWheel, P = {
133
109
  }), this.nodePopup && s.on("element.out", () => {
134
110
  this.$refs.popup.hide(), this.element = {};
135
111
  }), this.highlightFlow(this.historicActivities, this.activities);
136
- const n = c("marker");
137
- p(n, {
112
+ const n = p("marker");
113
+ c(n, {
138
114
  id: "sequenceflow-arrow-green",
139
115
  viewBox: "0 0 20 20",
140
116
  refX: "11",
@@ -143,13 +119,13 @@ const f = d.prototype._handleWheel, P = {
143
119
  markerHeight: "10",
144
120
  orient: "auto"
145
121
  });
146
- const l = c("path");
147
- p(l, {
122
+ const l = p("path");
123
+ c(l, {
148
124
  d: "M 1 5 L 11 10 L 1 15 Z",
149
125
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
150
126
  }), m(n, l);
151
- const h = c("marker");
152
- p(h, {
127
+ const h = p("marker");
128
+ c(h, {
153
129
  id: "conditional-default-flow-marker-green",
154
130
  viewBox: "0 0 20 20",
155
131
  refX: "0",
@@ -158,61 +134,60 @@ const f = d.prototype._handleWheel, P = {
158
134
  markerHeight: "10",
159
135
  orient: "auto"
160
136
  });
161
- const a = c("path");
162
- p(a, {
137
+ const a = p("path");
138
+ c(a, {
163
139
  d: "M 6 4 L 10 16",
164
140
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
165
141
  }), m(h, a);
166
- const r = A("defs", this.$el);
142
+ const r = E("defs", this.$el);
167
143
  m(r, n), m(r, h);
168
144
  }), this.bpmnViewer.importXML(this.xml), this.$watch(
169
145
  () => ({
170
146
  activities: this.activities,
171
147
  historicActivities: this.historicActivities
172
148
  }),
173
- ({ activities: e, historicActivities: i }) => {
174
- this.highlightFlow(i, e);
149
+ ({ activities: i, historicActivities: t }) => {
150
+ this.highlightFlow(t, i);
175
151
  }
176
152
  );
177
153
  },
178
154
  beforeDestroy() {
179
- var e;
180
- d.prototype._handleWheel = f, (e = this.bpmnViewer) == null || e.destroy();
155
+ var i;
156
+ d.prototype._handleWheel = f, (i = this.bpmnViewer) == null || i.destroy();
181
157
  },
182
158
  methods: {
183
- fitViewportCenter(e = "center") {
184
- this.canvas.zoom("fit-viewport", e);
159
+ fitViewportCenter(i = "center") {
160
+ this.canvas.zoom("fit-viewport", i);
185
161
  },
186
- highlightFlow(e, i) {
187
- this.elementRegistry.getAll().forEach((t) => {
162
+ highlightFlow(i, t) {
163
+ this.elementRegistry.getAll().forEach((e) => {
188
164
  [
189
165
  "bpmn:StartEvent",
190
166
  "bpmn:UserTask",
191
167
  "bpmn:ExclusiveGateway",
192
168
  "bpmn:ParallelGateway",
193
169
  "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"));
170
+ ].includes(e.type) && (i.includes(e.id) && !t.includes(e.id) ? this.canvas.addMarker(e, "highlight") : this.canvas.removeMarker(e, "highlight")), e.type === "bpmn:SequenceFlow" && (i.includes(e.id) ? this.canvas.addMarker(e, "highlight-line") : this.canvas.removeMarker(e, "highlight-line")), e.type === "bpmn:UserTask" && (t.includes(e.id) ? this.canvas.addMarker(e, "highlight-current") : this.canvas.removeMarker(e, "highlight-current"));
195
171
  });
196
172
  }
197
173
  }
198
- }, _ = {};
199
- var X = /* @__PURE__ */ S(
200
- W,
174
+ };
175
+ var C = function() {
176
+ var t = this, e = t._self._c;
177
+ return e("div", { ref: "container", staticClass: "flow-viewer flow-background-image", style: { "--highlight-color": t.highlightColor } }, [e("EasyPopup", { ref: "popup", attrs: { "append-to-body": "", "flex-column": "", offset: { x: 6, y: 6 } } }, [t._t("default", function() {
178
+ return [t._v(" " + t._s(t.element) + " ")];
179
+ }, { element: t.element })], 2)], 1);
180
+ }, P = [], W = /* @__PURE__ */ $(
201
181
  B,
202
182
  C,
183
+ P,
203
184
  !1,
204
- q,
185
+ null,
205
186
  null,
206
187
  null,
207
188
  null
208
189
  );
209
- function q(e) {
210
- for (let i in _)
211
- this[i] = _[i];
212
- }
213
- const U = /* @__PURE__ */ function() {
214
- return X.exports;
215
- }();
190
+ const D = W.exports;
216
191
  export {
217
- U as default
192
+ D as default
218
193
  };
@@ -1,5 +1,5 @@
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 { h as o } from "vue";
2
+ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], s = ["$emit", "validate", "clearValidate"], n = {
3
3
  name: "FormBlock",
4
4
  inject: {
5
5
  elForm: {
@@ -28,8 +28,8 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
28
28
  },
29
29
  data() {
30
30
  const e = {};
31
- return l.forEach((t) => {
32
- e[t] = null;
31
+ return r.forEach((i) => {
32
+ e[i] = null;
33
33
  }), {
34
34
  expand: !0,
35
35
  formConfig: e
@@ -41,8 +41,8 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
41
41
  enabled: this.enabled,
42
42
  forbidden: this.disabled
43
43
  };
44
- return l.forEach((t) => {
45
- e[t] = this.elForm[t];
44
+ return r.forEach((i) => {
45
+ e[i] = this.elForm[i];
46
46
  }), e;
47
47
  }
48
48
  },
@@ -56,9 +56,9 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
56
56
  formCfg: {
57
57
  immediate: !0,
58
58
  handler() {
59
- this.formConfig.disabled = this.available(), l.forEach((e) => {
60
- 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]);
59
+ this.formConfig.disabled = this.available(), r.forEach((e) => {
60
+ var i;
61
+ e !== "disabled" && (s.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
62
62
  });
63
63
  }
64
64
  }
@@ -73,30 +73,30 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
73
73
  available() {
74
74
  return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
75
75
  },
76
- dispatch(e, t, a) {
77
- let o = this.$parent || this.$root, i = o.$options.name;
78
- for (; o && (!i || i !== e); )
79
- o = o.$parent, o && (i = o.$options.name);
80
- o && o.$emit.apply(o, [t].concat(a));
76
+ dispatch(e, i, a) {
77
+ let t = this.$parent || this.$root, l = t.$options.name;
78
+ for (; t && (!l || l !== e); )
79
+ t = t.$parent, t && (l = t.$options.name);
80
+ t && t.$emit.apply(t, [i].concat(a));
81
81
  },
82
82
  renderDefault() {
83
- const e = this.$createElement, {
84
- wrapRow: t,
85
- gutter: a,
86
- formConfig: o,
87
- $scopedSlots: i
83
+ const {
84
+ wrapRow: e,
85
+ gutter: i,
86
+ formConfig: a,
87
+ $scopedSlots: t
88
88
  } = this;
89
- return t ? (
89
+ return e ? (
90
90
  // eslint-disable-next-line no-undef
91
- e("ElRow", {
91
+ o("ElRow", {
92
92
  attrs: {
93
- gutter: a
93
+ gutter: i
94
94
  }
95
- }, [i.default({
96
- disabled: o.disabled
95
+ }, [t.default({
96
+ disabled: a.disabled
97
97
  })])
98
- ) : i.default({
99
- disabled: o.disabled
98
+ ) : t.default({
99
+ disabled: a.disabled
100
100
  });
101
101
  },
102
102
  toggle() {
@@ -107,53 +107,34 @@ const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
107
107
  }
108
108
  },
109
109
  render() {
110
- const e = arguments[0], {
111
- renderDefault: t,
112
- blockTitle: a,
113
- active: o,
114
- expand: i,
115
- toggle: r
110
+ const {
111
+ renderDefault: e,
112
+ blockTitle: i,
113
+ active: a,
114
+ expand: t,
115
+ toggle: l
116
116
  } = this;
117
- return e("div", {
117
+ return o("div", {
118
118
  class: ["form-block", {
119
- "default-active": o
119
+ "default-active": a
120
120
  }]
121
- }, [e("div", {
121
+ }, [o("div", {
122
122
  class: "form-block-title",
123
123
  on: {
124
- click: r
124
+ click: l
125
125
  }
126
- }, [e("span", {
126
+ }, [o("span", {
127
127
  class: "flex-item"
128
- }, [a]), " ", e("i", {
129
- class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
130
- })]), e("ElCollapseTransition", [e("div", {
128
+ }, [i]), " ", o("i", {
129
+ class: t ? "el-icon-arrow-down" : "el-icon-arrow-right"
130
+ })]), o("ElCollapseTransition", [o("div", {
131
131
  directives: [{
132
132
  name: "show",
133
- value: i
133
+ value: t
134
134
  }]
135
- }, [t()])])]);
135
+ }, [e()])])]);
136
136
  }
137
137
  };
138
- let m, h;
139
- const s = {};
140
- var f = /* @__PURE__ */ n(
141
- c,
142
- m,
143
- h,
144
- !1,
145
- u,
146
- null,
147
- null,
148
- null
149
- );
150
- function u(e) {
151
- for (let t in s)
152
- this[t] = s[t];
153
- }
154
- const b = /* @__PURE__ */ function() {
155
- return f.exports;
156
- }();
157
138
  export {
158
- b as default
139
+ n as default
159
140
  };
@@ -1,6 +1,6 @@
1
1
  import n from "@web-utils/component/confirmable";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- const r = {
2
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const t = {
4
4
  props: {
5
5
  type: {
6
6
  type: String,
@@ -30,29 +30,21 @@ const r = {
30
30
  default: "AwesomeButton"
31
31
  }
32
32
  }
33
- }, l = {
33
+ }, e = {
34
34
  name: "FormButton",
35
- mixins: [n, r]
36
- };
37
- let a, i;
38
- const e = {};
39
- var u = /* @__PURE__ */ o(
35
+ mixins: [n, t]
36
+ }, l = null, a = null;
37
+ var r = /* @__PURE__ */ o(
38
+ e,
40
39
  l,
41
40
  a,
42
- i,
43
41
  !1,
44
- s,
42
+ null,
45
43
  null,
46
44
  null,
47
45
  null
48
46
  );
49
- function s(p) {
50
- for (let t in e)
51
- this[t] = e[t];
52
- }
53
- const m = /* @__PURE__ */ function() {
54
- return u.exports;
55
- }();
47
+ const u = r.exports;
56
48
  export {
57
- m as default
49
+ u as default
58
50
  };