@web-utils/component 3.3.17 → 3.3.18

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 (68) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunks/{FormTemp.D8cHwam4.mjs → FormTemp.CJOJOy8K.mjs} +7 -6
  3. package/chunks/{dataformat.skVZSF57.mjs → dataformat.ARPY2U57.mjs} +5 -9
  4. package/chunks/{dic.28d_-7EJ.mjs → dic.DBmh9yzU.mjs} +1 -1
  5. package/chunks/{event.m1ZDHbkO.mjs → event.mRPNW7Cx.mjs} +2 -2
  6. package/chunks/{init.DBM2D2IY.mjs → init.CauLYxJq.mjs} +2 -2
  7. package/chunks/{json-beautifier.vs8mCOxd.mjs → json-beautifier.j1-U5g4P.mjs} +3 -6
  8. package/chunks/{util.B_LEdJSZ.mjs → util.BaRFvfAi.mjs} +1 -2
  9. package/code-mirror-editor/index.mjs +8 -16
  10. package/dialog-form/index.mjs +1 -1
  11. package/flow/index.mjs +1 -1
  12. package/flow-designer/index.mjs +5 -6
  13. package/flow-node/index.mjs +1 -1
  14. package/flow-viewer/index.mjs +3 -2
  15. package/form-input-tag/index.mjs +7 -6
  16. package/form-view/index.mjs +3 -2
  17. package/fy-array/index.mjs +2 -2
  18. package/fy-cascader/index.mjs +1 -1
  19. package/fy-checkbox/index.mjs +2 -3
  20. package/fy-code/index.mjs +1 -1
  21. package/fy-curd/index.mjs +16 -23
  22. package/fy-date/index.mjs +1 -1
  23. package/fy-draggable/index.mjs +3 -5
  24. package/fy-dynamic/index.mjs +2 -2
  25. package/fy-empty/index.mjs +1 -1
  26. package/fy-form/index.mjs +10 -15
  27. package/fy-form-design/index.mjs +18 -28
  28. package/fy-form-design/style.css +1 -1
  29. package/fy-input/index.mjs +2 -3
  30. package/fy-input-color/index.mjs +1 -1
  31. package/fy-input-icon/index.mjs +28 -27
  32. package/fy-input-map/index.mjs +3 -5
  33. package/fy-input-number/index.mjs +1 -1
  34. package/fy-input-table/index.mjs +1 -1
  35. package/fy-input-tree/index.mjs +1 -1
  36. package/fy-radio/index.mjs +1 -1
  37. package/fy-rate/index.mjs +1 -1
  38. package/fy-select/index.mjs +3 -3
  39. package/fy-slider/index.mjs +2 -2
  40. package/fy-switch/index.mjs +1 -1
  41. package/fy-time/index.mjs +1 -1
  42. package/fy-title/index.mjs +1 -1
  43. package/fy-tree/index.mjs +1 -1
  44. package/fy-u-editor/index.mjs +8 -9
  45. package/fy-upload/index.mjs +2 -2
  46. package/image-cropper/index.mjs +35 -35
  47. package/image-preview/index.mjs +2 -3
  48. package/input-number/index.mjs +6 -12
  49. package/keyboard/index.mjs +1 -2
  50. package/license/index.mjs +1 -1
  51. package/login/index.mjs +1 -1
  52. package/monaco-editor/index.mjs +2 -3
  53. package/package.json +9 -9
  54. package/page-skeleton/index.mjs +15 -12
  55. package/present-view/index.mjs +3 -2
  56. package/record-video/index.mjs +1 -1
  57. package/search/index.mjs +2 -2
  58. package/search-popover/index.mjs +1 -1
  59. package/sign/index.mjs +3 -5
  60. package/split-pane/index.mjs +3 -2
  61. package/swiper/index.mjs +7 -6
  62. package/text-ellipsis/index.mjs +1 -1
  63. package/tinymce-editor/index.mjs +3 -6
  64. package/toolbar/index.mjs +3 -2
  65. package/verify/index.mjs +2 -3
  66. package/vue-cron/index.mjs +1 -2
  67. package/vue-tree-select/index.mjs +42 -75
  68. package/web-types.json +1 -1
@@ -82,8 +82,7 @@ const l = {
82
82
  t.setAttribute("role", "spinbutton"), t.setAttribute("aria-valuemax", this.max), t.setAttribute("aria-valuemin", this.min), t.setAttribute("aria-valuenow", this.currentValue), t.setAttribute("aria-disabled", this.inputNumberDisabled);
83
83
  },
84
84
  updated() {
85
- if (!this.$refs || !this.$refs.input)
86
- return;
85
+ if (!this.$refs || !this.$refs.input) return;
87
86
  this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
88
87
  },
89
88
  methods: {
@@ -91,33 +90,28 @@ const l = {
91
90
  return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
92
91
  },
93
92
  getPrecision(t) {
94
- if (t === void 0)
95
- return 0;
93
+ if (t === void 0) return 0;
96
94
  const e = t.toString(), n = e.indexOf(".");
97
95
  let i = 0;
98
96
  return n !== -1 && (i = e.length - n - 1), i;
99
97
  },
100
98
  _increase(t, e) {
101
- if (typeof t != "number" && t !== void 0)
102
- return this.currentValue;
99
+ if (typeof t != "number" && t !== void 0) return this.currentValue;
103
100
  const n = Math.pow(10, this.numPrecision);
104
101
  return this.toPrecision((n * t + n * e) / n);
105
102
  },
106
103
  _decrease(t, e) {
107
- if (typeof t != "number" && t !== void 0)
108
- return this.currentValue;
104
+ if (typeof t != "number" && t !== void 0) return this.currentValue;
109
105
  const n = Math.pow(10, this.numPrecision);
110
106
  return this.toPrecision((n * t - n * e) / n);
111
107
  },
112
108
  increase() {
113
- if (this.inputNumberDisabled || this.maxDisabled)
114
- return;
109
+ if (this.inputNumberDisabled || this.maxDisabled) return;
115
110
  const t = this.value || 0, e = this._increase(t, this.step);
116
111
  this.setCurrentValue(e);
117
112
  },
118
113
  decrease() {
119
- if (this.inputNumberDisabled || this.minDisabled)
120
- return;
114
+ if (this.inputNumberDisabled || this.minDisabled) return;
121
115
  const t = this.value || 0, e = this._decrease(t, this.step);
122
116
  this.setCurrentValue(e);
123
117
  },
@@ -328,8 +328,7 @@ const $ = {
328
328
  },
329
329
  methods: {
330
330
  init() {
331
- if (!this.ele)
332
- return;
331
+ if (!this.ele) return;
333
332
  let u;
334
333
  const e = {
335
334
  el: "#keyboard",
package/license/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { C as r } from "../chunks/util.BaRFvfAi.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.B_LEdJSZ.mjs";
1
+ import { s as l } from "../chunks/util.BaRFvfAi.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.vs8mCOxd.mjs";
14
+ import { c as l } from "../chunks/json-beautifier.j1-U5g4P.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 = {
@@ -131,8 +131,7 @@ const m = {
131
131
  },
132
132
  _setValue(t) {
133
133
  const e = this._getEditor();
134
- if (e)
135
- return e.setValue(t);
134
+ if (e) return e.setValue(t);
136
135
  },
137
136
  _getValue() {
138
137
  const t = this._getEditor();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.3.17",
4
+ "version": "3.3.18",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,22 +17,22 @@
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.17",
21
- "@web-utils/integrations": "^3.0.17",
22
- "@web-utils/vue": "^3.0.17",
23
- "bpmn-js": "^17.8.1",
24
- "bpmn-js-token-simulation": "^0.34.1",
20
+ "@web-utils/core": "^3.0.19",
21
+ "@web-utils/integrations": "^3.0.19",
22
+ "@web-utils/vue": "^3.0.19",
23
+ "bpmn-js": "^17.8.2",
24
+ "bpmn-js-token-simulation": "^0.34.2",
25
25
  "codemirror": "^5.65.15",
26
26
  "countup.js": "^2.8.0",
27
27
  "dayjs": "^1.11.11",
28
- "diagram-js": "14.7.1",
28
+ "diagram-js": "14.7.2",
29
29
  "echarts": "^5.5.0",
30
30
  "highlight.js": "^11.9.0",
31
31
  "lodash-es": "^4.17.21",
32
32
  "min-dash": "^4.2.1",
33
33
  "min-dom": "^5.1.1",
34
- "monaco-editor": "^0.49.0",
35
- "overlayscrollbars": "^2.8.3",
34
+ "monaco-editor": "^0.50.0",
35
+ "overlayscrollbars": "^2.9.1",
36
36
  "photoswipe": "^5.4.4",
37
37
  "qrcode": "^1.5.3",
38
38
  "quill": "^1.3.7",
@@ -1,13 +1,16 @@
1
- import n from "../page/index.mjs";
2
- import o from "../nav-bar/index.mjs";
3
- import a from "../page-header/index.mjs";
4
- import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const r = {
1
+ import o from "../page/index.mjs";
2
+ import "../page/style.css";
3
+ import n from "../nav-bar/index.mjs";
4
+ import "../nav-bar/style.css";
5
+ import r from "../page-header/index.mjs";
6
+ import "../page-header/style.css";
7
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const l = {
6
9
  name: "PageSkeleton",
7
10
  components: {
8
- Page: n,
9
- NavBar: o,
10
- PageHeader: a
11
+ Page: o,
12
+ NavBar: n,
13
+ PageHeader: r
11
14
  },
12
15
  props: {
13
16
  title: String,
@@ -29,15 +32,15 @@ var s = function() {
29
32
  return t("Page", { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
30
33
  return [e.title ? t("PageHeader", { attrs: { title: e.title } }) : t("NavBar")];
31
34
  }) : e._e(), t("div", { class: ["page-content", { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll }, e.contentClass] }, [e._t("default")], 2)], 2);
32
- }, c = [], f = /* @__PURE__ */ l(
33
- r,
35
+ }, c = [], f = /* @__PURE__ */ a(
36
+ l,
34
37
  s,
35
38
  c,
36
39
  !1,
37
40
  null,
38
41
  null
39
42
  );
40
- const d = f.exports;
43
+ const x = f.exports;
41
44
  export {
42
- d as default
45
+ x as default
43
46
  };
@@ -29,6 +29,7 @@ var d = (e, t, o) => new Promise((r, s) => {
29
29
  import { hasOwn as p, toStringArray as S, delay as F, isInContainer 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
+ import "../resize-observer/style.css";
32
33
  import { n as C } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
33
34
  const w = [
34
35
  "back",
@@ -223,7 +224,7 @@ var O = function() {
223
224
  null,
224
225
  null
225
226
  );
226
- const E = z.exports;
227
+ const W = z.exports;
227
228
  export {
228
- E as default
229
+ W as default
229
230
  };
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  let o = class {
4
4
  /**
package/search/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as p } from "../chunks/util.B_LEdJSZ.mjs";
2
- import { i } from "../chunks/init.DBM2D2IY.mjs";
1
+ import { a as p } from "../chunks/util.BaRFvfAi.mjs";
2
+ import { i } from "../chunks/init.CauLYxJq.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 = {
@@ -16,7 +16,7 @@ var c = (r, e, t) => new Promise((s, i) => {
16
16
  });
17
17
  import { copy as u, isInContainer as d } from "@web-utils/core";
18
18
  import p from "element-ui/lib/utils/clickoutside";
19
- import { z as f } from "../chunks/util.B_LEdJSZ.mjs";
19
+ import { z as f } from "../chunks/util.BaRFvfAi.mjs";
20
20
  import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
21
21
  const m = {
22
22
  name: "SearchPopover",
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as v } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as v } from "../chunks/util.BaRFvfAi.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();
@@ -73,8 +73,7 @@ const x = {
73
73
  };
74
74
  }
75
75
  function d(l) {
76
- if (s.disabled)
77
- return;
76
+ if (s.disabled) return;
78
77
  const i = a(e, l).x, f = a(e, l).y;
79
78
  if (o === 1) {
80
79
  s.linex.push(i), s.liney.push(f), s.linen.push(1), n.save(), n.translate(n.canvas.width / 2, n.canvas.height / 2), n.translate(-n.canvas.width / 2, -n.canvas.height / 2), n.beginPath(), n.lineWidth = 2;
@@ -85,8 +84,7 @@ const x = {
85
84
  l.preventDefault();
86
85
  }
87
86
  function u(l) {
88
- if (s.disabled)
89
- return;
87
+ if (s.disabled) return;
90
88
  const i = a(e, l).x, f = a(e, l).y;
91
89
  o = 1, s.linex.push(i), s.liney.push(f), s.linen.push(0);
92
90
  }
@@ -16,6 +16,7 @@ var l = (e, t, s) => new Promise((o, i) => {
16
16
  });
17
17
  import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
18
18
  import d from "../resize-observer/index.mjs";
19
+ import "../resize-observer/style.css";
19
20
  function g(e, t) {
20
21
  for (let s = 0; s < t.length; s++)
21
22
  if (e === t[s])
@@ -207,7 +208,7 @@ var M = function() {
207
208
  null,
208
209
  null
209
210
  );
210
- const y = w.exports;
211
+ const C = w.exports;
211
212
  export {
212
- y as default
213
+ C as default
213
214
  };
package/swiper/index.mjs CHANGED
@@ -15,12 +15,13 @@ var h = (e, t, s) => new Promise((i, r) => {
15
15
  a((s = s.apply(e, t)).next());
16
16
  });
17
17
  import { getEleWidth as c } from "@web-utils/core";
18
- import u from "../resize-observer/index.mjs";
19
- import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
18
+ import p from "../resize-observer/index.mjs";
19
+ import "../resize-observer/style.css";
20
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
20
21
  const f = {
21
22
  name: "Swiper",
22
23
  components: {
23
- ResizeObserver: u
24
+ ResizeObserver: p
24
25
  },
25
26
  data() {
26
27
  return {
@@ -125,7 +126,7 @@ var w = function() {
125
126
  return s("div", { staticClass: "egd-swiper" }, [s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
126
127
  return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
127
128
  } } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s("ResizeObserver", { on: { notify: t.resize } })], 1);
128
- }, m = [], X = /* @__PURE__ */ p(
129
+ }, m = [], X = /* @__PURE__ */ u(
129
130
  f,
130
131
  w,
131
132
  m,
@@ -133,7 +134,7 @@ var w = function() {
133
134
  null,
134
135
  null
135
136
  );
136
- const E = X.exports;
137
+ const x = X.exports;
137
138
  export {
138
- E as default
139
+ x as default
139
140
  };
@@ -1,4 +1,4 @@
1
- import { s as l } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as l } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const h = {
4
4
  name: "TextEllipsis",
@@ -482,15 +482,13 @@ function E(t) {
482
482
  }
483
483
  function U(t) {
484
484
  const e = new DataView(t);
485
- if (e.getUint16(0, !1) !== 65496)
486
- return -2;
485
+ if (e.getUint16(0, !1) !== 65496) return -2;
487
486
  const i = e.byteLength;
488
487
  let a = 2;
489
488
  for (; a < i; ) {
490
489
  const o = e.getUint16(a, !1);
491
490
  if (a += 2, o === 65505) {
492
- if (e.getUint32(a += 2, !1) !== 1165519206)
493
- return -1;
491
+ if (e.getUint32(a += 2, !1) !== 1165519206) return -1;
494
492
  const n = e.getUint16(a += 6, !1) === 18761;
495
493
  a += e.getUint32(a + 4, n);
496
494
  const l = e.getUint16(a, n);
@@ -499,8 +497,7 @@ function U(t) {
499
497
  if (e.getUint16(a + r * 12, n) === 274)
500
498
  return e.getUint16(a + r * 12 + 8, n);
501
499
  } else {
502
- if ((o & 65280) !== 65280)
503
- break;
500
+ if ((o & 65280) !== 65280) break;
504
501
  a += e.getUint16(a, !1);
505
502
  }
506
503
  }
package/toolbar/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { h as i } from "vue";
2
2
  import { NOOP as u } from "@web-utils/core";
3
3
  import f from "../toolbar-button/index.mjs";
4
+ import "../toolbar-button/style.css";
4
5
  const h = {
5
6
  back: {
6
7
  label: "返回",
@@ -96,7 +97,7 @@ const h = {
96
97
  icon: "el-icon-search",
97
98
  separateLine: !1
98
99
  }
99
- }, B = {
100
+ }, v = {
100
101
  name: "Toolbar",
101
102
  provide() {
102
103
  return {
@@ -193,5 +194,5 @@ const h = {
193
194
  }
194
195
  };
195
196
  export {
196
- B as default
197
+ v as default
197
198
  };
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  name: "Verify",
@@ -39,8 +39,7 @@ const o = {
39
39
  methods: {
40
40
  random() {
41
41
  const e = this.len;
42
- if (e > 21)
43
- return null;
42
+ if (e > 21) return null;
44
43
  const t = new RegExp(`(\\d{${e}})(\\.|$)`);
45
44
  this.data = (Array(e - 1).join(0) + Math.pow(10, e) * Math.random()).match(t)[1];
46
45
  }
@@ -347,8 +347,7 @@ const s = {
347
347
  // 反向解析表达式
348
348
  resolveExpression() {
349
349
  var e;
350
- if (!((e = this.expression) != null && e.length))
351
- return;
350
+ if (!((e = this.expression) != null && e.length)) return;
352
351
  const r = this.expression.split(" ");
353
352
  if (r.length < 7)
354
353
  throw Error("表达式格式不正确");
@@ -127,15 +127,12 @@ function y(e, t) {
127
127
  }
128
128
  function fe(e, t, s) {
129
129
  for (let n = 0, i = e.length; n < i; n++)
130
- if (t.call(s, e[n], n, e))
131
- return e[n];
130
+ if (t.call(s, e[n], n, e)) return e[n];
132
131
  }
133
132
  function B(e, t) {
134
- if (e.length !== t.length)
135
- return !0;
133
+ if (e.length !== t.length) return !0;
136
134
  for (let s = 0; s < e.length; s++)
137
- if (e[s] !== t[s])
138
- return !0;
135
+ if (e[s] !== t[s]) return !0;
139
136
  return !1;
140
137
  }
141
138
  function Qe(e, t) {
@@ -144,14 +141,13 @@ function Qe(e, t) {
144
141
  return !1;
145
142
  if (n === s)
146
143
  return e === t;
147
- e:
148
- for (let i = 0, l = 0; i < n; i++) {
149
- const o = e.charCodeAt(i);
150
- for (; l < s; )
151
- if (t.charCodeAt(l++) === o)
152
- continue e;
153
- return !1;
154
- }
144
+ e: for (let i = 0, l = 0; i < n; i++) {
145
+ const o = e.charCodeAt(i);
146
+ for (; l < s; )
147
+ if (t.charCodeAt(l++) === o)
148
+ continue e;
149
+ return !1;
150
+ }
155
151
  return !0;
156
152
  }
157
153
  const E = null, Y = 0, me = 1, ge = 2, C = "ALL_CHILDREN", L = "ALL_DESCENDANTS", M = "LEAF_CHILDREN", T = "LEAF_DESCENDANTS", Ke = "LOAD_ROOT_OPTIONS", qe = "LOAD_CHILDREN_OPTIONS", Ue = "ASYNC_SEARCH", z = "ALL", x = "BRANCH_PRIORITY", F = "LEAF_PRIORITY", k = "ALL_WITH_INDETERMINATE", te = "ORDER_SELECTED", se = "LEVEL", ne = "INDEX", d = {
@@ -175,12 +171,9 @@ const E = null, Y = 0, me = 1, ge = 2, C = "ALL_CHILDREN", L = "ALL_DESCENDANTS"
175
171
  function Se(e, t) {
176
172
  let s = 0;
177
173
  do {
178
- if (e.level < s)
179
- return -1;
180
- if (t.level < s)
181
- return 1;
182
- if (e.index[s] !== t.index[s])
183
- return e.index[s] - t.index[s];
174
+ if (e.level < s) return -1;
175
+ if (t.level < s) return 1;
176
+ if (e.index[s] !== t.index[s]) return e.index[s] - t.index[s];
184
177
  s++;
185
178
  } while (!0);
186
179
  }
@@ -993,8 +986,7 @@ const Ze = {
993
986
  },
994
987
  keepDataOfSelectedNodes(e) {
995
988
  this.forest.selectedNodeIds.forEach((t) => {
996
- if (!e[t])
997
- return;
989
+ if (!e[t]) return;
998
990
  const s = w(v({}, e[t]), {
999
991
  isFallbackNode: !0
1000
992
  });
@@ -1005,8 +997,7 @@ const Ze = {
1005
997
  return this.forest.selectedNodeMap[e.id] === !0;
1006
998
  },
1007
999
  traverseDescendantsBFS(e, t) {
1008
- if (!e.isBranch)
1009
- return;
1000
+ if (!e.isBranch) return;
1010
1001
  const s = e.children.slice();
1011
1002
  for (; s.length; ) {
1012
1003
  const n = s[0];
@@ -1047,8 +1038,7 @@ const Ze = {
1047
1038
  this.getInput().blur();
1048
1039
  },
1049
1040
  handleMouseDown: b(function(t) {
1050
- if (t.preventDefault(), t.stopPropagation(), this.disabled)
1051
- return;
1041
+ if (t.preventDefault(), t.stopPropagation(), this.disabled) return;
1052
1042
  this.getValueContainer().$el.contains(t.target) && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused) && this.openMenu(), this._blurOnSelect ? this.blurInput() : this.focusInput(), this.resetFlags();
1053
1043
  }),
1054
1044
  handleClickOutside(e) {
@@ -1146,30 +1136,24 @@ const Ze = {
1146
1136
  (e || t == null || !(t in this.forest.nodeMap) || !this.shouldShowOptionInMenu(this.getNode(t))) && this.highlightFirstOption();
1147
1137
  },
1148
1138
  highlightFirstOption() {
1149
- if (!this.hasVisibleOptions)
1150
- return;
1139
+ if (!this.hasVisibleOptions) return;
1151
1140
  const e = this.visibleOptionIds[0];
1152
1141
  this.setCurrentHighlightedOption(this.getNode(e));
1153
1142
  },
1154
1143
  highlightPrevOption() {
1155
- if (!this.hasVisibleOptions)
1156
- return;
1144
+ if (!this.hasVisibleOptions) return;
1157
1145
  const e = this.visibleOptionIds.indexOf(this.menu.current) - 1;
1158
- if (e === -1)
1159
- return this.highlightLastOption();
1146
+ if (e === -1) return this.highlightLastOption();
1160
1147
  this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]));
1161
1148
  },
1162
1149
  highlightNextOption() {
1163
- if (!this.hasVisibleOptions)
1164
- return;
1150
+ if (!this.hasVisibleOptions) return;
1165
1151
  const e = this.visibleOptionIds.indexOf(this.menu.current) + 1;
1166
- if (e === this.visibleOptionIds.length)
1167
- return this.highlightFirstOption();
1152
+ if (e === this.visibleOptionIds.length) return this.highlightFirstOption();
1168
1153
  this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]));
1169
1154
  },
1170
1155
  highlightLastOption() {
1171
- if (!this.hasVisibleOptions)
1172
- return;
1156
+ if (!this.hasVisibleOptions) return;
1173
1157
  const e = ee(this.visibleOptionIds);
1174
1158
  this.setCurrentHighlightedOption(this.getNode(e));
1175
1159
  },
@@ -1389,10 +1373,8 @@ const Ze = {
1389
1373
  ae(this.forest.selectedNodeIds, e.id), delete this.forest.selectedNodeMap[e.id];
1390
1374
  },
1391
1375
  removeLastValue() {
1392
- if (!this.hasValue)
1393
- return;
1394
- if (this.single)
1395
- return this.clear();
1376
+ if (!this.hasValue) return;
1377
+ if (this.single) return this.clear();
1396
1378
  const e = ee(this.internalValue), t = this.getNode(e);
1397
1379
  this.select(t);
1398
1380
  },
@@ -1426,8 +1408,7 @@ const tt = {
1426
1408
  const {
1427
1409
  instance: s
1428
1410
  } = t.injections;
1429
- if (!s.name || s.disabled || !s.hasValue)
1430
- return null;
1411
+ if (!s.name || s.disabled || !s.hasValue) return null;
1431
1412
  let n = s.internalValue.map(et);
1432
1413
  return s.multiple && s.joinValues && (n = [n.join(s.delimiter)]), n.map((i, l) => r("input", {
1433
1414
  attrs: {
@@ -1455,34 +1436,24 @@ function ot(e) {
1455
1436
  }
1456
1437
  function X() {
1457
1438
  return X = Object.assign ? Object.assign.bind() : function(e) {
1458
- for (var t, s = 1; s < arguments.length; s++)
1459
- for (var n in t = arguments[s], t)
1460
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1439
+ for (var t, s = 1; s < arguments.length; s++) for (var n in t = arguments[s], t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1461
1440
  return e;
1462
1441
  }, X.apply(this, arguments);
1463
1442
  }
1464
1443
  var lt = ["attrs", "props", "domProps"], at = ["class", "style", "directives"], ct = ["on", "nativeOn"], ut = function(e) {
1465
1444
  return e.reduce(function(t, s) {
1466
- for (var n in s)
1467
- if (!t[n])
1468
- t[n] = s[n];
1469
- else if (lt.indexOf(n) !== -1)
1470
- t[n] = X({}, t[n], s[n]);
1471
- else if (at.indexOf(n) !== -1) {
1472
- var i = t[n] instanceof Array ? t[n] : [t[n]], l = s[n] instanceof Array ? s[n] : [s[n]];
1473
- t[n] = [].concat(i, l);
1474
- } else if (ct.indexOf(n) !== -1)
1475
- for (var o in s[n])
1476
- if (t[n][o]) {
1477
- var u = t[n][o] instanceof Array ? t[n][o] : [t[n][o]], p = s[n][o] instanceof Array ? s[n][o] : [s[n][o]];
1478
- t[n][o] = [].concat(u, p);
1479
- } else
1480
- t[n][o] = s[n][o];
1481
- else if (n === "hook")
1482
- for (var c in s[n])
1483
- t[n][c] = t[n][c] ? ht(t[n][c], s[n][c]) : s[n][c];
1484
- else
1485
- t[n] = s[n];
1445
+ for (var n in s) if (!t[n]) t[n] = s[n];
1446
+ else if (lt.indexOf(n) !== -1) t[n] = X({}, t[n], s[n]);
1447
+ else if (at.indexOf(n) !== -1) {
1448
+ var i = t[n] instanceof Array ? t[n] : [t[n]], l = s[n] instanceof Array ? s[n] : [s[n]];
1449
+ t[n] = [].concat(i, l);
1450
+ } else if (ct.indexOf(n) !== -1)
1451
+ for (var o in s[n]) if (t[n][o]) {
1452
+ var u = t[n][o] instanceof Array ? t[n][o] : [t[n][o]], p = s[n][o] instanceof Array ? s[n][o] : [s[n][o]];
1453
+ t[n][o] = [].concat(u, p);
1454
+ } else t[n][o] = s[n][o];
1455
+ else if (n === "hook") for (var c in s[n]) t[n][c] = t[n][c] ? ht(t[n][c], s[n][c]) : s[n][c];
1456
+ else t[n] = s[n];
1486
1457
  return t;
1487
1458
  }, {});
1488
1459
  }, ht = function(e, t) {
@@ -1578,11 +1549,9 @@ const $ = /* @__PURE__ */ ot(dt), pt = [d.ENTER, d.END, d.HOME, d.ARROW_LEFT, d.
1578
1549
  break;
1579
1550
  }
1580
1551
  case d.ENTER: {
1581
- if (e.preventDefault(), t.menu.current === null)
1582
- return;
1552
+ if (e.preventDefault(), t.menu.current === null) return;
1583
1553
  const n = t.getNode(t.menu.current);
1584
- if (n.isBranch && t.disableBranchNodes)
1585
- return;
1554
+ if (n.isBranch && t.disableBranchNodes) return;
1586
1555
  t.select(n);
1587
1556
  break;
1588
1557
  }
@@ -2106,8 +2075,7 @@ const Ne = {
2106
2075
  instance: e,
2107
2076
  node: t
2108
2077
  } = this;
2109
- if (e.shouldFlattenOptions && this.shouldShow)
2110
- return null;
2078
+ if (e.shouldFlattenOptions && this.shouldShow) return null;
2111
2079
  if (t.isBranch) {
2112
2080
  const s = {
2113
2081
  props: {
@@ -2487,8 +2455,7 @@ const ns = ss.exports, is = {
2487
2455
  const {
2488
2456
  instance: e
2489
2457
  } = this;
2490
- if (!e.menu.isOpen)
2491
- return;
2458
+ if (!e.menu.isOpen) return;
2492
2459
  const t = e.getMenu(), s = e.getControl(), n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), l = n.height, o = window.innerHeight, u = i.top, p = window.innerHeight - i.bottom, c = i.top >= 0 && i.top <= o || i.top < 0 && i.bottom > 0, g = p > l + re, f = u > l + re;
2493
2460
  c ? e.openDirection !== "auto" ? e.menu.placement = is[e.openDirection] : g || !f ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2494
2461
  },
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.3.17",
5
+ "version": "3.3.18",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",