@web-utils/component 2.30.1 → 2.30.2

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 (94) hide show
  1. package/chat/index.mjs +4 -2
  2. package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.CtpL-vJy.mjs} +2 -2
  3. package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.GqdyYLEM.mjs} +16 -6
  4. package/chunks/{dataformat.X_61lMA7.mjs → dataformat.Ab9PZnVk.mjs} +1 -1
  5. package/chunks/{dic.6tk91Dmq.mjs → dic.7JBaVHv6.mjs} +8 -10
  6. package/chunks/{event.NHA7rYFE.mjs → event.lbJYeMJp.mjs} +2 -2
  7. package/chunks/{init.Ac4dKUJB.mjs → init.6oF7OO2W.mjs} +2 -2
  8. package/chunks/{util.C2Bhx22L.mjs → util.y1gUGRqi.mjs} +24 -18
  9. package/code-mirror-editor/index.mjs +380 -151
  10. package/confirm-button/index.mjs +1 -1
  11. package/confirmable/index.mjs +1 -1
  12. package/count-up/index.mjs +5 -9
  13. package/custom-scrollbar/index.mjs +4 -8
  14. package/dialog-form/index.mjs +1 -1
  15. package/element-dialog/index.mjs +5 -1
  16. package/flex-item/index.mjs +10 -4
  17. package/flow/index.mjs +22 -8
  18. package/flow-designer/index.mjs +125 -32
  19. package/flow-node/index.mjs +1 -1
  20. package/flow-viewer/index.mjs +16 -7
  21. package/form-block/index.mjs +10 -7
  22. package/form-cascader/index.mjs +3 -1
  23. package/form-checkbox-group/index.mjs +3 -1
  24. package/form-date-picker/index.mjs +37 -8
  25. package/form-holder/index.mjs +4 -1
  26. package/form-input/index.mjs +3 -1
  27. package/form-input-email/index.mjs +9 -5
  28. package/form-input-id-card/index.mjs +9 -5
  29. package/form-input-number/index.mjs +3 -1
  30. package/form-input-phone-number/index.mjs +9 -5
  31. package/form-input-time/index.mjs +3 -1
  32. package/form-item/index.mjs +28 -22
  33. package/form-item-group/index.mjs +11 -8
  34. package/form-radio-group/index.mjs +3 -1
  35. package/form-select/index.mjs +3 -1
  36. package/form-switch/index.mjs +3 -1
  37. package/form-textarea/index.mjs +3 -1
  38. package/form-view/index.mjs +25 -3
  39. package/fy-array/index.mjs +2 -2
  40. package/fy-cascader/index.mjs +1 -1
  41. package/fy-checkbox/index.mjs +1 -1
  42. package/fy-code/index.mjs +1 -1
  43. package/fy-curd/index.mjs +113 -95
  44. package/fy-date/index.mjs +1 -1
  45. package/fy-draggable/index.mjs +2 -2
  46. package/fy-dynamic/index.mjs +42 -34
  47. package/fy-empty/index.mjs +1 -1
  48. package/fy-form/index.mjs +5 -5
  49. package/fy-form-design/index.mjs +537 -419
  50. package/fy-form-design/style.css +1 -1
  51. package/fy-input/index.mjs +1 -1
  52. package/fy-input-color/index.mjs +1 -1
  53. package/fy-input-icon/index.mjs +1 -1
  54. package/fy-input-map/index.mjs +14 -8
  55. package/fy-input-number/index.mjs +1 -1
  56. package/fy-input-table/index.mjs +12 -9
  57. package/fy-input-tree/index.mjs +1 -1
  58. package/fy-radio/index.mjs +1 -1
  59. package/fy-rate/index.mjs +1 -1
  60. package/fy-select/index.mjs +3 -3
  61. package/fy-slider/index.mjs +2 -2
  62. package/fy-switch/index.mjs +1 -1
  63. package/fy-time/index.mjs +1 -1
  64. package/fy-title/index.mjs +1 -1
  65. package/fy-tree/index.mjs +4 -7
  66. package/fy-u-editor/index.mjs +32 -30
  67. package/fy-upload/index.mjs +14 -14
  68. package/image-cropper/index.mjs +1 -1
  69. package/image-preview/index.mjs +1 -1
  70. package/keep-view-alive/index.mjs +5 -1
  71. package/keyboard/index.mjs +9 -8
  72. package/license/index.mjs +1 -1
  73. package/login/index.mjs +1 -1
  74. package/not-implement/index.mjs +1 -1
  75. package/notice/index.mjs +4 -4
  76. package/package.json +1 -1
  77. package/pageable-table/index.mjs +9 -14
  78. package/pageable-view/index.mjs +9 -14
  79. package/photo-swipe/index.mjs +3 -1
  80. package/present-view/index.mjs +24 -2
  81. package/record-video/index.mjs +1 -1
  82. package/search/index.mjs +3 -3
  83. package/search-popover/index.mjs +1 -1
  84. package/sign/index.mjs +1 -1
  85. package/sign-panel/index.mjs +3 -3
  86. package/split-pane/index.mjs +1 -4
  87. package/table-column/index.mjs +9 -5
  88. package/table-view/index.mjs +22 -2
  89. package/text-ellipsis/index.mjs +2 -5
  90. package/tinymce-editor/index.mjs +14 -14
  91. package/verify/index.mjs +1 -1
  92. package/vue-tree-select/index.mjs +24 -21
  93. package/vue-video-player/index.mjs +8 -5
  94. package/web-types.json +31 -31
@@ -255,10 +255,7 @@ const c = {
255
255
  this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
256
256
  },
257
257
  copy: (e) => x(k(e)),
258
- onSortChange({
259
- prop: e,
260
- order: t
261
- }) {
258
+ onSortChange({ prop: e, order: t }) {
262
259
  this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
263
260
  },
264
261
  onCurrentChange(e) {
@@ -287,17 +284,15 @@ const c = {
287
284
  const t = this.page.filters.rules, s = t.findIndex((i) => i.field === e);
288
285
  s > -1 && t.splice(s, 1);
289
286
  },
290
- addFilter({
291
- field: e,
292
- op: t,
293
- value: s
294
- }) {
287
+ addFilter({ field: e, op: t, value: s }) {
295
288
  this.page.filters = Object.assign({}, this.page.filters, {
296
- rules: [{
297
- field: e,
298
- op: t,
299
- value: s
300
- }],
289
+ rules: [
290
+ {
291
+ field: e,
292
+ op: t,
293
+ value: s
294
+ }
295
+ ],
301
296
  op: "and"
302
297
  });
303
298
  },
@@ -25,7 +25,9 @@ function l(h, n) {
25
25
  const r = t.target;
26
26
  if (!(!r || r.classList.contains(e.selector) || r.tagName === "IMG"))
27
27
  return;
28
- const i = a.querySelectorAll(e.selector === "img" ? e.selector : `.${e.selector}`), s = [...i].findIndex((o) => o === r);
28
+ const i = a.querySelectorAll(
29
+ e.selector === "img" ? e.selector : `.${e.selector}`
30
+ ), s = [...i].findIndex((o) => o === r);
29
31
  s >= 0 && (e.index = s);
30
32
  const c = yield m(i);
31
33
  yield f({ dataSource: c, index: s });
@@ -211,7 +211,27 @@ var x = function() {
211
211
  }
212
212
  }) : t._e()], 1);
213
213
  }, $ = [];
214
- const b = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], S = b.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
214
+ const b = [
215
+ "back",
216
+ "create",
217
+ "save",
218
+ "withdraw",
219
+ "edit",
220
+ "submit",
221
+ "publish",
222
+ "agree",
223
+ "disagree",
224
+ "reject",
225
+ "finish",
226
+ "cancel",
227
+ "enable",
228
+ "exp",
229
+ "imp",
230
+ "del",
231
+ "disabled",
232
+ "reload",
233
+ "slot"
234
+ ], S = b.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
215
235
  if (t.classList.contains(e))
216
236
  return t;
217
237
  let o = t.parentNode;
@@ -338,7 +358,9 @@ const b = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
338
358
  return t.filter((e) => !m.includes(e) && e.indexOf(":down") < 0).map((e) => e.replace(":up", ""));
339
359
  },
340
360
  getFooterBarButtons(t) {
341
- let e = t.filter((o) => !F.includes(o) && (m.includes(o) || o.indexOf(":down") > -1)).map((o) => o.replace(":down", ""));
361
+ let e = t.filter(
362
+ (o) => !F.includes(o) && (m.includes(o) || o.indexOf(":down") > -1)
363
+ ).map((o) => o.replace(":down", ""));
342
364
  return e = e || [], this.$parent.isEnabled && !e.includes("cancel") && e.push("cancel"), e;
343
365
  }
344
366
  }
@@ -1,4 +1,4 @@
1
- import { s } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  let n = class {
4
4
  /**
package/search/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as i } from "../chunks/util.C2Bhx22L.mjs";
2
- import { i as o } from "../chunks/init.Ac4dKUJB.mjs";
1
+ import { a as i } from "../chunks/util.y1gUGRqi.mjs";
2
+ import { i as o } from "../chunks/init.6oF7OO2W.mjs";
3
3
  import { isBlank as n } from "@web-utils/core";
4
4
  import { n as l } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
5
5
  var h = function() {
@@ -20,7 +20,7 @@ var h = function() {
20
20
  }
21
21
  }, [r("p", {
22
22
  staticClass: "avue-search__title"
23
- }, [t._v(" " + t._s(s.label) + ": ")]), r("div", {
23
+ }, [t._v(t._s(s.label) + ":")]), r("div", {
24
24
  staticClass: "avue-search__content"
25
25
  }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
26
26
  dic: t.DIC[s.prop]
@@ -16,7 +16,7 @@ var c = (t, r, e) => new Promise((s, o) => {
16
16
  });
17
17
  import { copy as d, isInContainer as p } from "@web-utils/core";
18
18
  import v from "element-ui/lib/utils/clickoutside";
19
- import { z as f } from "../chunks/util.C2Bhx22L.mjs";
19
+ import { z as f } from "../chunks/util.y1gUGRqi.mjs";
20
20
  import { n as m } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
21
21
  var w = function() {
22
22
  var t = this, r = t.$createElement, e = t._self._c || r;
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as g } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s as g } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as p } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var x = function() {
4
4
  var t = this, s = t.$createElement, n = t._self._c || s;
@@ -58,7 +58,7 @@ var o = function() {
58
58
  }
59
59
  }, [i("i", {
60
60
  staticClass: "fa fa-trash"
61
- }), t._v(" 清除 ")]), i("div", {
61
+ }), t._v(" 清除")]), i("div", {
62
62
  staticClass: "sign-button flex-item",
63
63
  staticStyle: {
64
64
  color: "red"
@@ -68,7 +68,7 @@ var o = function() {
68
68
  }
69
69
  }, [i("i", {
70
70
  staticClass: "fa fa-close"
71
- }), t._v(" 取消 ")]), i("div", {
71
+ }), t._v(" 取消")]), i("div", {
72
72
  staticClass: "sign-button flex-item",
73
73
  staticStyle: {
74
74
  color: "orange"
@@ -88,7 +88,7 @@ var o = function() {
88
88
  }
89
89
  }, [i("i", {
90
90
  staticClass: "fa fa-check"
91
- }), t._v(" 确定 ")])])]), i("div", {
91
+ }), t._v(" 确定")])])]), i("div", {
92
92
  directives: [{
93
93
  name: "show",
94
94
  rawName: "v-show",
@@ -79,10 +79,7 @@ const _ = {
79
79
  ];
80
80
  },
81
81
  barConClasses() {
82
- return [
83
- `${this.prefix}-bar-con`,
84
- this.isVertical ? "vertical" : "horizontal"
85
- ];
82
+ return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
86
83
  }
87
84
  }
88
85
  }, u = {};
@@ -71,11 +71,15 @@ const m = {
71
71
  functional: !0,
72
72
  mixins: [m],
73
73
  render(n, { data: e, props: t, children: s }) {
74
- return n("ElTableColumn", r(l({}, e), {
75
- props: r(l({}, t), {
76
- showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
77
- })
78
- }), s);
74
+ return n(
75
+ "ElTableColumn",
76
+ r(l({}, e), {
77
+ props: r(l({}, t), {
78
+ showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
79
+ })
80
+ }),
81
+ s
82
+ );
79
83
  }
80
84
  };
81
85
  let y, S;
@@ -61,7 +61,7 @@ var P = function() {
61
61
  staticStyle: {
62
62
  "font-size": "16px"
63
63
  }
64
- }, [e._v(" 视图导航 ")]), t("EditableTree", e._g(e._b({
64
+ }, [e._v("视图导航")]), t("EditableTree", e._g(e._b({
65
65
  ref: "tree",
66
66
  attrs: {
67
67
  readonly: ""
@@ -163,7 +163,27 @@ var P = function() {
163
163
  staticClass: "slide-panel-line-indicator"
164
164
  })]);
165
165
  }];
166
- const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], T = {
166
+ const $ = [
167
+ "back",
168
+ "create",
169
+ "save",
170
+ "withdraw",
171
+ "edit",
172
+ "submit",
173
+ "publish",
174
+ "agree",
175
+ "disagree",
176
+ "reject",
177
+ "finish",
178
+ "cancel",
179
+ "enable",
180
+ "exp",
181
+ "imp",
182
+ "del",
183
+ "disabled",
184
+ "reload",
185
+ "slot"
186
+ ], T = {
167
187
  name: "TableView",
168
188
  bus: {
169
189
  reloadTableView(e, r) {
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s as o } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as r } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var h = function() {
4
4
  var t = this, e = t.$createElement, i = t._self._c || e;
@@ -75,10 +75,7 @@ const f = {
75
75
  i.style.display = "inline-block";
76
76
  let s = this.text;
77
77
  for (; e.offsetHeight > this.height && n > 0; )
78
- e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
79
- 0,
80
- Math.floor(s.length / 2)
81
- ) : t.innerText = s = s.substring(0, s.length - 1), n--;
78
+ e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(0, Math.floor(s.length / 2)) : t.innerText = s = s.substring(0, s.length - 1), n--;
82
79
  this.$emit("hide"), this.isHide = !0;
83
80
  } else
84
81
  this.$emit("show"), this.isHide = !1;
@@ -1,8 +1,8 @@
1
- var k = Object.defineProperty, C = Object.defineProperties;
1
+ var F = Object.defineProperty, C = Object.defineProperties;
2
2
  var B = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
4
  var T = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
- var w = (e, t, i) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, m = (e, t) => {
5
+ var w = (e, t, i) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, m = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  T.call(t, i) && w(e, i, t[i]);
8
8
  if (y)
@@ -27,8 +27,8 @@ var p = (e, t, i) => new Promise((a, o) => {
27
27
  r((i = i.apply(e, t)).next());
28
28
  });
29
29
  import "tinymce/skins/lightgray/skin.min.css";
30
- import D from "tinymce";
31
- import P from "@tinymce/tinymce-vue";
30
+ import P from "tinymce";
31
+ import S from "@tinymce/tinymce-vue";
32
32
  import "tinymce/themes/modern/theme";
33
33
  import "tinymce/plugins/contextmenu";
34
34
  import "tinymce/plugins/wordcount";
@@ -37,8 +37,8 @@ import "tinymce/plugins/image";
37
37
  import "tinymce/plugins/fullscreen";
38
38
  import "tinymce/plugins/preview";
39
39
  import "tinymce/plugins/imagetools";
40
- import { getFilePrefix as S, guid as A } from "@web-utils/core";
41
- import { n as F } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
40
+ import { getFilePrefix as D, guid as A } from "@web-utils/core";
41
+ import { n as I } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
42
42
  const $ = {
43
43
  Redo: "重做",
44
44
  Undo: "撤销",
@@ -470,14 +470,14 @@ function U(e) {
470
470
  const s = r / i;
471
471
  return s === 0 ? 1 : s;
472
472
  }
473
- function I(e) {
473
+ function k(e) {
474
474
  const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
475
475
  for (let o = 0; o < t.length; o++)
476
476
  a[o] = t.charCodeAt(o);
477
477
  return i;
478
478
  }
479
479
  function L(e) {
480
- const t = e.split(",")[0].split(":")[1].split(";")[0], i = I(e);
480
+ const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
481
481
  return new Blob([i], { type: t });
482
482
  }
483
483
  function x(e) {
@@ -543,11 +543,11 @@ function O(e, t) {
543
543
  return new Promise((i, a) => {
544
544
  const o = new Image();
545
545
  o.onload = function() {
546
- const n = U(o), l = x(I(o.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
546
+ const n = U(o), l = x(k(o.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
547
547
  let c = o.width, u = o.height;
548
548
  c < u && u > g ? (c = parseInt(`${g * o.width / o.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * o.height / o.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(o, 0, 0, c, u / n);
549
549
  const h = r.toDataURL("image/jpeg", t.compress.quality);
550
- /;base64,null/.test(h) || /;base64,$/.test(h) ? (t.onError(new Error(`Compress fail, dataURL is ${h}.`)), a(Error("图片压缩失败"))) : i(j(h, `${S(t.fileName)}.jpg`));
550
+ /;base64,null/.test(h) || /;base64,$/.test(h) ? (t.onError(new Error(`Compress fail, dataURL is ${h}.`)), a(Error("图片压缩失败"))) : i(j(h, `${D(t.fileName)}.jpg`));
551
551
  }, o.src = e;
552
552
  });
553
553
  });
@@ -606,11 +606,11 @@ var G = function() {
606
606
  }
607
607
  }, [i("span")])], 1) : e._e();
608
608
  }, W = [];
609
- D.addI18n("zh_CN", $);
609
+ P.addI18n("zh_CN", $);
610
610
  const V = {
611
611
  name: "TinymceWrapper",
612
612
  components: {
613
- Editor: P
613
+ Editor: S
614
614
  },
615
615
  inject: {
616
616
  elForm: {
@@ -799,7 +799,7 @@ const V = {
799
799
  }
800
800
  }
801
801
  }, b = {};
802
- var Y = /* @__PURE__ */ F(
802
+ var Y = /* @__PURE__ */ I(
803
803
  V,
804
804
  G,
805
805
  W,
@@ -971,7 +971,7 @@ const Q = {
971
971
  }
972
972
  }
973
973
  }, v = {};
974
- var ee = /* @__PURE__ */ F(
974
+ var ee = /* @__PURE__ */ I(
975
975
  Q,
976
976
  J,
977
977
  K,
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as n } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s as n } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var l = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
@@ -436,7 +436,7 @@ const dt = {
436
436
  /**
437
437
  * Will be passed with all events as the last param.
438
438
  * Useful for identifying events origin.
439
- */
439
+ */
440
440
  instanceId: {
441
441
  // Add two trailing "$" to distinguish from explictly specified ids.
442
442
  default: () => `${ht++}$$`,
@@ -444,7 +444,7 @@ const dt = {
444
444
  },
445
445
  /**
446
446
  * Joins multiple values into a single form field with the `delimiter` (legacy mode).
447
- */
447
+ */
448
448
  joinValues: {
449
449
  type: Boolean,
450
450
  default: !1
@@ -967,10 +967,7 @@ const dt = {
967
967
  if (this.valueFormat === "id")
968
968
  return t;
969
969
  const s = this.multiple ? Array.isArray(this.value) ? this.value : [] : this.value ? [this.value] : [];
970
- return Ce(
971
- s,
972
- (i) => i && this.enhancedNormalizer(i).id === e
973
- ) || t;
970
+ return Ce(s, (i) => i && this.enhancedNormalizer(i).id === e) || t;
974
971
  },
975
972
  fixSelectedNodeIds(e) {
976
973
  let t = [];
@@ -1079,9 +1076,7 @@ const dt = {
1079
1076
  });
1080
1077
  const s = e.trim().toLocaleLowerCase(), n = s.replace(/\s+/g, " ").split(" ");
1081
1078
  this.traverseAllNodesDFS((i) => {
1082
- this.searchNested && n.length > 1 ? i.isMatched = n.every(
1083
- (o) => re(!1, o, i.nestedSearchLabel)
1084
- ) : i.isMatched = this.matchKeys.some(
1079
+ this.searchNested && n.length > 1 ? i.isMatched = n.every((o) => re(!1, o, i.nestedSearchLabel)) : i.isMatched = this.matchKeys.some(
1085
1080
  (o) => re(!this.disableFuzzyMatching, s, i.lowerCased[o])
1086
1081
  ), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][w]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][L]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][$] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][C] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
1087
1082
  }), t();
@@ -1224,14 +1219,21 @@ const dt = {
1224
1219
  normalize(e, t, s) {
1225
1220
  let n = t.map((i) => [this.enhancedNormalizer(i), i]).map(([i, o], r) => {
1226
1221
  this.checkDuplication(i), this.verifyNodeShape(i);
1227
- const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1, R = Array.isArray(a) || a === null, I = !R, X = !!i.isDisabled || !this.flat && !p && e.isDisabled, Be = !!i.isNew, A = this.matchKeys.reduce((u, M) => b(_({}, u), {
1228
- [M]: ut(i[M]).toLocaleLowerCase()
1229
- }), {}), ze = p ? A.label : `${e.nestedSearchLabel} ${A.label}`, l = this.$set(this.forest.nodeMap, c, g());
1222
+ const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1, R = Array.isArray(a) || a === null, I = !R, X = !!i.isDisabled || !this.flat && !p && e.isDisabled, Be = !!i.isNew, A = this.matchKeys.reduce(
1223
+ (u, M) => b(_({}, u), {
1224
+ [M]: ut(i[M]).toLocaleLowerCase()
1225
+ }),
1226
+ {}
1227
+ ), ze = p ? A.label : `${e.nestedSearchLabel} ${A.label}`, l = this.$set(this.forest.nodeMap, c, g());
1230
1228
  if (this.$set(l, "id", c), this.$set(l, "label", d), this.$set(l, "level", y), this.$set(l, "ancestors", p ? [] : [e].concat(e.ancestors)), this.$set(l, "index", (p ? [] : e.index).concat(r)), this.$set(l, "parentNode", e), this.$set(l, "lowerCased", A), this.$set(l, "nestedSearchLabel", ze), this.$set(l, "isDisabled", X), this.$set(l, "isNew", Be), this.$set(l, "isMatched", !1), this.$set(l, "isHighlighted", !1), this.$set(l, "isBranch", R), this.$set(l, "isLeaf", I), this.$set(l, "isRootNode", p), this.$set(l, "raw", o), R) {
1231
1229
  const u = Array.isArray(a);
1232
1230
  this.$set(l, "childrenStates", b(_({}, k()), {
1233
1231
  isLoaded: u
1234
- })), this.$set(l, "isExpanded", typeof m == "boolean" ? m : y < this.defaultExpandLevel), this.$set(l, "hasMatchedDescendants", !1), this.$set(l, "hasDisabledDescendants", !1), this.$set(l, "isExpandedOnSearch", !1), this.$set(l, "showAllChildrenOnSearch", !1), this.$set(l, "count", {
1232
+ })), this.$set(
1233
+ l,
1234
+ "isExpanded",
1235
+ typeof m == "boolean" ? m : y < this.defaultExpandLevel
1236
+ ), this.$set(l, "hasMatchedDescendants", !1), this.$set(l, "hasDisabledDescendants", !1), this.$set(l, "isExpandedOnSearch", !1), this.$set(l, "showAllChildrenOnSearch", !1), this.$set(l, "count", {
1235
1237
  [$]: 0,
1236
1238
  [w]: 0,
1237
1239
  [C]: 0,
@@ -1314,11 +1316,14 @@ const dt = {
1314
1316
  }, t), {
1315
1317
  callback: c
1316
1318
  }));
1317
- Oe(d) && d.then(() => {
1318
- c();
1319
- }, (a) => {
1320
- c(a);
1321
- }).catch((a) => {
1319
+ Oe(d) && d.then(
1320
+ () => {
1321
+ c();
1322
+ },
1323
+ (a) => {
1324
+ c(a);
1325
+ }
1326
+ ).catch((a) => {
1322
1327
  console.error(a);
1323
1328
  });
1324
1329
  },
@@ -1342,9 +1347,7 @@ const dt = {
1342
1347
  t ? this._selectNode(e) : this._deselectNode(e), this.buildForestState(), t ? this.$emit("select", e.raw, this.getInstanceId()) : this.$emit("deselect", e.raw, this.getInstanceId()), this.localSearch.active && t && (this.single || this.clearOnSelect) && this.resetSearchQuery(), this.single && this.closeOnSelect && (this.closeMenu(), this.searchable && (this._blurOnSelect = !0));
1343
1348
  },
1344
1349
  clear() {
1345
- this.hasValue && (this.single || this.allowClearingDisabled ? this.forest.selectedNodeIds = [] : this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(
1346
- (e) => this.getNode(e).isDisabled
1347
- ), this.buildForestState());
1350
+ this.hasValue && (this.single || this.allowClearingDisabled ? this.forest.selectedNodeIds = [] : this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter((e) => this.getNode(e).isDisabled), this.buildForestState());
1348
1351
  },
1349
1352
  // This is meant to be called only by `select()`.
1350
1353
  _selectNode(e) {
@@ -115,11 +115,14 @@ const A = [
115
115
  },
116
116
  computed: {
117
117
  videoOptions() {
118
- return b({
119
- language: "zh",
120
- autoplay: this.autoplay,
121
- sources: [{ src: this.src }]
122
- }, u(u({}, this.globalOptions), this.options));
118
+ return b(
119
+ {
120
+ language: "zh",
121
+ autoplay: this.autoplay,
122
+ sources: [{ src: this.src }]
123
+ },
124
+ u(u({}, this.globalOptions), this.options)
125
+ );
123
126
  }
124
127
  },
125
128
  watch: {