@web-utils/component 3.6.1 → 3.7.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.6.1",
4
+ "version": "3.7.1",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,9 +17,9 @@
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.26",
21
- "@web-utils/integrations": "^3.0.26",
22
- "@web-utils/vue": "^3.0.26",
20
+ "@web-utils/core": "^4.0.1",
21
+ "@web-utils/integrations": "^4.0.1",
22
+ "@web-utils/vue": "^4.0.1",
23
23
  "bpmn-js": "^18.6.1",
24
24
  "bpmn-js-token-simulation": "^0.38.1",
25
25
  "codemirror": "^5.65.15",
@@ -2,19 +2,19 @@ var n = (a, t, e) => new Promise((s, r) => {
2
2
  var o = (i) => {
3
3
  try {
4
4
  u(e.next(i));
5
- } catch (h) {
6
- r(h);
5
+ } catch (d) {
6
+ r(d);
7
7
  }
8
8
  }, p = (i) => {
9
9
  try {
10
10
  u(e.throw(i));
11
- } catch (h) {
12
- r(h);
11
+ } catch (d) {
12
+ r(d);
13
13
  }
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 { findFirstMatchNode as d, treeToArray as c } from "@web-utils/core";
17
+ import { findFirstMatchNode as h, 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",
@@ -69,7 +69,7 @@ const f = {
69
69
  if (c(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
70
70
  yield this.setCurrentKey(this.$route.path);
71
71
  else {
72
- const t = d(this.menus, (e) => e.path);
72
+ const t = h(this.menus, (e) => e.path);
73
73
  t && (yield this.$router.push({ path: t.path, query: t.query }), yield this.setCurrentKey(t.path));
74
74
  }
75
75
  });
@@ -81,13 +81,14 @@ const f = {
81
81
  },
82
82
  setCurrentKey(a) {
83
83
  return n(this, null, function* () {
84
- yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(a);
84
+ var t;
85
+ yield this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
85
86
  });
86
87
  },
87
88
  beforeRouteUpdate(a, t, e) {
88
89
  return n(this, null, function* () {
89
90
  if (a.path === this.schema) {
90
- const s = d(this.menus, (r) => r.path);
91
+ const s = h(this.menus, (r) => r.path);
91
92
  s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
92
93
  } else
93
94
  yield e(), yield this.setCurrentKey(this.$route.path);
@@ -92,7 +92,7 @@ const n = {
92
92
  },
93
93
  // 绘制移动轨迹
94
94
  moveLine(i, t, s) {
95
- s && s.preventDefault(), i -= this.start, t -= this.end, this.ctx.lineTo(i, t), this.ctx.stroke();
95
+ s == null || s.preventDefault(), i -= this.start, t -= this.end, this.ctx.lineTo(i, t), this.ctx.stroke();
96
96
  },
97
97
  clear() {
98
98
  this.ctx.clearRect(0, 0, this.width, this.height);
@@ -754,7 +754,6 @@ const et = {
754
754
  };
755
755
  },
756
756
  computed: {
757
- /* eslint-disable valid-jsdoc */
758
757
  /**
759
758
  * Normalized nodes that have been selected.
760
759
  * @type {node[]}
@@ -843,7 +842,6 @@ const et = {
843
842
  shouldFlattenOptions() {
844
843
  return this.localSearch.active && this.flattenSearchResults;
845
844
  }
846
- /* eslint-enable valid-jsdoc */
847
845
  },
848
846
  watch: {
849
847
  alwaysOpen(e) {
@@ -1511,13 +1509,15 @@ const V = /* @__PURE__ */ lt(ct), ut = [m.ENTER, m.END, m.HOME, m.ARROW_LEFT, m.
1511
1509
  });
1512
1510
  },
1513
1511
  focus() {
1512
+ var t;
1514
1513
  const {
1515
1514
  instance: e
1516
1515
  } = this;
1517
- e.disabled || this.$refs.input && this.$refs.input.focus();
1516
+ e.disabled || (t = this.$refs.input) == null || t.focus();
1518
1517
  },
1519
1518
  blur() {
1520
- this.$refs.input && this.$refs.input.blur();
1519
+ var e;
1520
+ (e = this.$refs.input) == null || e.blur();
1521
1521
  },
1522
1522
  onFocus() {
1523
1523
  const {
@@ -1874,7 +1874,6 @@ const Ne = Ht.exports, Pt = {
1874
1874
  name: "VueTreeSelectControl",
1875
1875
  inject: ["instance"],
1876
1876
  computed: {
1877
- /* eslint-disable valid-jsdoc */
1878
1877
  /**
1879
1878
  * Should show the "×" button that resets value?
1880
1879
  * @return {boolean}
@@ -1905,7 +1904,6 @@ const Ne = Ht.exports, Pt = {
1905
1904
  } = this;
1906
1905
  return e.hasValue && e.internalValue.some((t) => !e.getNode(t).isDisabled);
1907
1906
  }
1908
- /* eslint-enable valid-jsdoc */
1909
1907
  },
1910
1908
  methods: {
1911
1909
  renderX() {
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "3.6.1",
5
+ "version": "3.7.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",