@web-utils/component 3.4.6 → 3.6.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 (113) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunks/ElementBaseInfo.jv89Vjy1.mjs +118 -0
  3. package/chunks/ElementForm.4QQYs5uq.mjs +241 -0
  4. package/chunks/ElementListeners.vfHHHAOL.mjs +255 -0
  5. package/chunks/ElementMultiInstance.3Z28ewuh.mjs +191 -0
  6. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  7. package/chunks/ElementProperties.CRIQaaPc.mjs +112 -0
  8. package/chunks/ElementTaskConfig.MBbkLrth.mjs +326 -0
  9. package/chunks/FlowCondition.BfU9kw6h.mjs +132 -0
  10. package/chunks/{FormTemp.CJOJOy8K.mjs → FormTemp.BSpnNput.mjs} +4 -4
  11. package/chunks/SignalAndMessage.CH6L7cYu.mjs +96 -0
  12. package/chunks/UserTaskListeners.XXe5dC5I.mjs +210 -0
  13. package/chunks/confirmable-mixin.D4LAArE5.mjs +114 -0
  14. package/chunks/{dataformat.ARPY2U57.mjs → dataformat.B9UvztrQ.mjs} +7 -7
  15. package/chunks/{dic.DBmh9yzU.mjs → dic.CET0XdKP.mjs} +3 -3
  16. package/chunks/{event.mRPNW7Cx.mjs → event.BT1F_1vF.mjs} +6 -6
  17. package/chunks/{form-input-mixin.DMuQta5I.mjs → form-input-mixin.BkKiqJhi.mjs} +2 -2
  18. package/chunks/{form-item-mixin.CdcqXa2h.mjs → form-item-mixin.CG4ZwzMC.mjs} +1 -1
  19. package/chunks/{index.DwCBGcYk.mjs → index.MAFc4eFi.mjs} +4 -4
  20. package/chunks/{init.CauLYxJq.mjs → init.ofpxEyAI.mjs} +8 -8
  21. package/chunks/{json-beautifier.j1-U5g4P.mjs → json-beautifier.Bp3GslGm.mjs} +2 -0
  22. package/chunks/{util.BaRFvfAi.mjs → util.CoahLDYn.mjs} +7 -7
  23. package/chunks/utilSelf.CRqpl0Cz.mjs +56 -0
  24. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  25. package/code-mirror-editor/index.mjs +45 -45
  26. package/confirm-button/index.mjs +1 -1
  27. package/confirmable/index.mjs +1 -1
  28. package/data-table-picker/index.mjs +1 -1
  29. package/dialog-form/index.mjs +1 -1
  30. package/e-charts/index.mjs +3 -3
  31. package/editable-tree/index.mjs +13 -13
  32. package/element-listeners/style.css +1 -0
  33. package/element-multi-instance/style.css +1 -0
  34. package/ellipsis/index.mjs +148 -0
  35. package/ellipsis/style.css +1 -0
  36. package/flex-column/index.mjs +1 -1
  37. package/flex-item/index.mjs +1 -1
  38. package/flex-row/index.mjs +1 -1
  39. package/flow/index.mjs +1 -1
  40. package/flow-designer/index.mjs +519 -2134
  41. package/flow-designer/style.css +1 -1
  42. package/flow-node/index.mjs +1 -1
  43. package/form-cascader/index.mjs +5 -5
  44. package/form-checkbox-group/index.mjs +2 -2
  45. package/form-date-picker/index.mjs +2 -2
  46. package/form-holder/index.mjs +1 -1
  47. package/form-input/index.mjs +2 -2
  48. package/form-input-email/index.mjs +2 -2
  49. package/form-input-id-card/index.mjs +2 -2
  50. package/form-input-number/index.mjs +2 -2
  51. package/form-input-phone-number/index.mjs +2 -2
  52. package/form-input-tag/index.mjs +2 -2
  53. package/form-input-time/index.mjs +2 -2
  54. package/form-item/index.mjs +1 -1
  55. package/form-radio-group/index.mjs +2 -2
  56. package/form-select/index.mjs +2 -2
  57. package/form-switch/index.mjs +2 -2
  58. package/form-textarea/index.mjs +2 -2
  59. package/form-view/index.mjs +3 -3
  60. package/fy-array/index.mjs +2 -2
  61. package/fy-cascader/index.mjs +1 -1
  62. package/fy-checkbox/index.mjs +1 -1
  63. package/fy-code/index.mjs +1 -1
  64. package/fy-curd/index.mjs +9 -9
  65. package/fy-date/index.mjs +1 -1
  66. package/fy-draggable/index.mjs +1 -1
  67. package/fy-dynamic/index.mjs +2 -2
  68. package/fy-empty/index.mjs +1 -1
  69. package/fy-form/index.mjs +14 -14
  70. package/fy-form-design/index.mjs +2 -2
  71. package/fy-input/index.mjs +1 -1
  72. package/fy-input-color/index.mjs +1 -1
  73. package/fy-input-icon/index.mjs +1 -1
  74. package/fy-input-map/index.mjs +1 -1
  75. package/fy-input-number/index.mjs +1 -1
  76. package/fy-input-table/index.mjs +1 -1
  77. package/fy-input-tree/index.mjs +1 -1
  78. package/fy-input-tree/style.css +1 -1
  79. package/fy-radio/index.mjs +1 -1
  80. package/fy-rate/index.mjs +1 -1
  81. package/fy-select/index.mjs +3 -3
  82. package/fy-slider/index.mjs +2 -2
  83. package/fy-switch/index.mjs +1 -1
  84. package/fy-time/index.mjs +1 -1
  85. package/fy-title/index.mjs +1 -1
  86. package/fy-tree/index.mjs +1 -1
  87. package/fy-u-editor/index.mjs +1 -1
  88. package/fy-upload/index.mjs +2 -2
  89. package/image-cropper/index.mjs +1 -1
  90. package/image-preview/index.mjs +1 -1
  91. package/index.mjs +455 -451
  92. package/license/index.mjs +1 -1
  93. package/login/index.mjs +1 -1
  94. package/monaco-editor/index.mjs +1 -1
  95. package/package.json +16 -16
  96. package/page-index/index.mjs +1 -1
  97. package/page-index-top/index.mjs +1 -1
  98. package/pageable-table/index.mjs +3 -3
  99. package/pageable-view/index.mjs +3 -3
  100. package/present-view/index.mjs +3 -3
  101. package/record-video/index.mjs +1 -1
  102. package/resize-observer/index.mjs +1 -1
  103. package/search/index.mjs +2 -2
  104. package/search-popover/index.mjs +4 -4
  105. package/sign/index.mjs +1 -1
  106. package/table-view/index.mjs +6 -6
  107. package/text-ellipsis/index.mjs +1 -1
  108. package/verify/index.mjs +1 -1
  109. package/vue-tree-select/index.mjs +354 -347
  110. package/vue-tree-select/style.css +1 -1
  111. package/watermark/index.mjs +1 -1
  112. package/web-types.json +82 -4
  113. package/chunks/confirmable-mixin.D2KW-Qlc.mjs +0 -116
package/license/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { C as r } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const l = {
4
4
  name: "License",
package/login/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as l } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { s as l } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { isBlank as n } from "@web-utils/core";
3
3
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const r = "发送验证码", i = "{{time}}s后重获取", c = {
@@ -11,7 +11,7 @@ var r = (t, e, i) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  import * as o from "monaco-editor/esm/vs/editor/editor.api";
13
13
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
14
- import { c as l } from "../chunks/json-beautifier.j1-U5g4P.mjs";
14
+ import { c as l } from "../chunks/json-beautifier.Bp3GslGm.mjs";
15
15
  import { NOOP as a } from "@web-utils/core";
16
16
  import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
17
  const m = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.4.6",
4
+ "version": "3.6.0",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,31 +17,31 @@
17
17
  "@tinymce/tinymce-vue": "3.2.8",
18
18
  "@wangeditor/editor": "^5.1.23",
19
19
  "@wangeditor/editor-for-vue": "^1.0.2",
20
- "@web-utils/core": "^3.0.22",
21
- "@web-utils/integrations": "^3.0.22",
22
- "@web-utils/vue": "^3.0.22",
23
- "bpmn-js": "^17.11.1",
24
- "bpmn-js-token-simulation": "^0.35.0",
20
+ "@web-utils/core": "^3.0.26",
21
+ "@web-utils/integrations": "^3.0.26",
22
+ "@web-utils/vue": "^3.0.26",
23
+ "bpmn-js": "^18.6.1",
24
+ "bpmn-js-token-simulation": "^0.38.1",
25
25
  "codemirror": "^5.65.15",
26
- "countup.js": "^2.8.0",
26
+ "countup.js": "^2.8.2",
27
27
  "dayjs": "^1.11.13",
28
- "diagram-js": "14.11.2",
29
- "echarts": "^5.5.1",
30
- "highlight.js": "^11.10.0",
28
+ "diagram-js": "15.3.0",
29
+ "echarts": "^5.6.0",
30
+ "highlight.js": "^11.11.1",
31
31
  "lodash-es": "^4.17.21",
32
- "min-dash": "^4.2.1",
32
+ "min-dash": "^4.2.3",
33
33
  "min-dom": "^5.1.1",
34
- "monaco-editor": "^0.52.0",
35
- "overlayscrollbars": "^2.10.0",
34
+ "monaco-editor": "^0.52.2",
35
+ "overlayscrollbars": "^2.11.1",
36
36
  "photoswipe": "^5.4.4",
37
37
  "qrcode": "^1.5.4",
38
38
  "quill": "^1.3.7",
39
39
  "resize-detector": "^0.3.0",
40
40
  "simple-uploader.js": "^0.6.0",
41
- "tiny-svg": "^4.1.2",
41
+ "tiny-svg": "^4.1.3",
42
42
  "tinymce": "4.9.11",
43
- "video.js": "^8.17.4",
44
- "viewerjs": "^1.11.6",
43
+ "video.js": "^8.22.0",
44
+ "viewerjs": "^1.11.7",
45
45
  "vue-cropper": "^0.6.5",
46
46
  "vuedraggable": "^2.24.3",
47
47
  "x2js": "^3.4.4"
@@ -14,7 +14,7 @@ var n = (a, t, e) => new Promise((s, r) => {
14
14
  }, u = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, p);
15
15
  u((e = e.apply(a, t)).next());
16
16
  });
17
- import { treeToArray as c, findFirstMatchNode as d } from "@web-utils/core";
17
+ import { findFirstMatchNode as d, treeToArray as c } from "@web-utils/core";
18
18
  import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
19
19
  const f = {
20
20
  name: "PageIndex",
@@ -14,7 +14,7 @@ var i = (s, t, e) => new Promise((a, r) => {
14
14
  }, u = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(c, l);
15
15
  u((e = e.apply(s, t)).next());
16
16
  });
17
- import { treeToArray as h, findFirstMatchNode as p } from "@web-utils/core";
17
+ import { findFirstMatchNode as p, treeToArray as h } from "@web-utils/core";
18
18
  import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
19
19
  const f = {
20
20
  name: "PageIndexTop",
@@ -37,7 +37,7 @@ var h = (t, e, a) => new Promise((s, l) => {
37
37
  });
38
38
  import { hasOwn as v } from "@web-utils/core";
39
39
  import { cloneDeep as S, merge as C } from "@web-utils/integrations/lodash";
40
- import { f as T, h as k, i as B } from "../chunks/index.DwCBGcYk.mjs";
40
+ import { f as T, h as k, i as B } from "../chunks/index.MAFc4eFi.mjs";
41
41
  import { n as P } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
42
42
  const o = {
43
43
  loading: 1,
@@ -210,8 +210,8 @@ const o = {
210
210
  this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
211
211
  });
212
212
  },
213
- filterTableProperties: k,
214
- filterTableEvents: B,
213
+ filterTableProperties: B,
214
+ filterTableEvents: k,
215
215
  filterTableColumnProperties: T,
216
216
  onTableScroll() {
217
217
  this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
@@ -37,7 +37,7 @@ var h = (e, t, s) => new Promise((i, r) => {
37
37
  });
38
38
  import { cloneDeep as S, merge as w } from "@web-utils/integrations/lodash";
39
39
  import { copy as P, hasOwn as C } from "@web-utils/core";
40
- import { f as v, h as x, i as O } from "../chunks/index.DwCBGcYk.mjs";
40
+ import { f as v, h as x, i as O } from "../chunks/index.MAFc4eFi.mjs";
41
41
  import { n as R } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
42
42
  function k(e) {
43
43
  let t = "";
@@ -194,8 +194,8 @@ const c = {
194
194
  this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
195
195
  });
196
196
  },
197
- filterTableProperties: x,
198
- filterTableEvents: O,
197
+ filterTableProperties: O,
198
+ filterTableEvents: x,
199
199
  filterTableColumnProperties: v,
200
200
  onTableScroll() {
201
201
  this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
@@ -26,7 +26,7 @@ var d = (e, t, o) => new Promise((r, s) => {
26
26
  }, a = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(i, l);
27
27
  a((o = o.apply(e, t)).next());
28
28
  });
29
- import { hasOwn as p, toStringArray as S, delay as F, isInContainer as k } from "@web-utils/core";
29
+ import { isInContainer as S, delay as F, hasOwn as p, toStringArray as k } from "@web-utils/core";
30
30
  import { merge as B } from "@web-utils/integrations/lodash";
31
31
  import L from "../resize-observer/index.mjs";
32
32
  import "../resize-observer/style.css";
@@ -109,7 +109,7 @@ const w = [
109
109
  toolbarProps() {
110
110
  var r;
111
111
  const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = B({}, this.toolbarAttrs, e);
112
- return o.buttons = t || ["back"], o.buttons = S(o.buttons), o;
112
+ return o.buttons = t || ["back"], o.buttons = k(o.buttons), o;
113
113
  }
114
114
  },
115
115
  created() {
@@ -161,7 +161,7 @@ const w = [
161
161
  return d(this, null, function* () {
162
162
  if (this.showNav) {
163
163
  for (let e = 0; e < this.tabs.length; e++)
164
- if (k(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
164
+ if (S(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
165
165
  this.activeIndex = e;
166
166
  break;
167
167
  }
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { s } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  let o = class {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/index.DwCBGcYk.mjs";
1
+ import { j as r } from "../chunks/index.MAFc4eFi.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  let t;
4
4
  function i() {
package/search/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as p } from "../chunks/util.BaRFvfAi.mjs";
2
- import { i } from "../chunks/init.CauLYxJq.mjs";
1
+ import { D as p } from "../chunks/util.CoahLDYn.mjs";
2
+ import { i } from "../chunks/init.ofpxEyAI.mjs";
3
3
  import { isBlank as o } from "@web-utils/core";
4
4
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  const l = {
@@ -14,9 +14,9 @@ var c = (r, e, t) => new Promise((s, i) => {
14
14
  }, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
15
15
  a((t = t.apply(r, e)).next());
16
16
  });
17
- import { copy as u, isInContainer as d } from "@web-utils/core";
17
+ import { isInContainer as u, copy as d } from "@web-utils/core";
18
18
  import p from "element-ui/lib/utils/clickoutside";
19
- import { z as f } from "../chunks/util.BaRFvfAi.mjs";
19
+ import { z as f } from "../chunks/util.CoahLDYn.mjs";
20
20
  import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
21
21
  const m = {
22
22
  name: "SearchPopover",
@@ -74,7 +74,7 @@ const m = {
74
74
  });
75
75
  },
76
76
  copyEvalResult() {
77
- return u(this.evalResult);
77
+ return d(this.evalResult);
78
78
  },
79
79
  hidePopover() {
80
80
  this.showPopover = !1;
@@ -104,7 +104,7 @@ const m = {
104
104
  return;
105
105
  }
106
106
  const e = this.$refs.ul.querySelector(`#item-${r}`);
107
- d(e, this.$refs.ul, { topOffset: -78, bottomOffset: 78 }) || (this.$refs.ul.scrollTop = e.offsetTop - e.clientHeight + 20);
107
+ u(e, this.$refs.ul, { topOffset: -78, bottomOffset: 78 }) || (this.$refs.ul.scrollTop = e.offsetTop - e.clientHeight + 20);
108
108
  }
109
109
  }
110
110
  };
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as v } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { s as v } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  function p(e, s, n, r, t, o) {
4
4
  e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
@@ -15,8 +15,8 @@ var a = (r, e, t) => new Promise((s, l) => {
15
15
  c((t = t.apply(r, e)).next());
16
16
  });
17
17
  import { merge as n } from "@web-utils/integrations/lodash";
18
- import { isString as d, isArray as u, trace as f, warning as m, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
19
- import { k as _ } from "../chunks/index.DwCBGcYk.mjs";
18
+ import { isFunction as u, toStringArray as m, isString as d, isArray as g, trace as f, warning as w, hasOwn as p } from "@web-utils/core";
19
+ import { k as _ } from "../chunks/index.MAFc4eFi.mjs";
20
20
  import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
21
21
  const P = [
22
22
  "back",
@@ -43,11 +43,11 @@ const P = [
43
43
  bus: {
44
44
  reloadTableView(r, e) {
45
45
  if (this._viewIds)
46
- if (d(r) || u(r)) {
46
+ if (d(r) || g(r)) {
47
47
  let t = r;
48
48
  d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (e ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
49
49
  } else
50
- m.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
50
+ w.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
51
51
  }
52
52
  },
53
53
  props: {
@@ -121,7 +121,7 @@ const P = [
121
121
  var s, l;
122
122
  const r = {}, e = n(this.toolbarAttrs, r);
123
123
  let t = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
124
- return t = t || [], t.includes("reload") || (t = [...t, "reload"]), e.buttons = t, e.buttons = g(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
124
+ return t = t || [], t.includes("reload") || (t = [...t, "reload"]), e.buttons = t, e.buttons = m(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
125
125
  },
126
126
  treeProps() {
127
127
  const r = {
@@ -199,7 +199,7 @@ const P = [
199
199
  return a(this, null, function* () {
200
200
  var e;
201
201
  const r = this.deleteApi || this.$parent.del;
202
- if (!((e = this.toolbarListeners) != null && e.del) && w(r)) {
202
+ if (!((e = this.toolbarListeners) != null && e.del) && u(r)) {
203
203
  if (!this.selectedRows.length) {
204
204
  this.$message.warning("请选择要删除的记录!");
205
205
  return;
@@ -1,4 +1,4 @@
1
- import { s as l } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { s as l } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const h = {
4
4
  name: "TextEllipsis",
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.BaRFvfAi.mjs";
1
+ import { s } from "../chunks/util.CoahLDYn.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  name: "Verify",