@web-utils/component 3.3.16 → 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 (66) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunks/{FormTemp.Cf9d5N_a.mjs → FormTemp.CJOJOy8K.mjs} +2 -2
  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/data-card-text/index.mjs +49 -0
  11. package/data-card-text/style.css +1 -0
  12. package/dialog-form/index.mjs +1 -1
  13. package/flow/index.mjs +1 -1
  14. package/flow-designer/index.mjs +2 -4
  15. package/flow-node/index.mjs +1 -1
  16. package/fy-array/index.mjs +2 -2
  17. package/fy-cascader/index.mjs +1 -1
  18. package/fy-checkbox/index.mjs +2 -3
  19. package/fy-code/index.mjs +1 -1
  20. package/fy-curd/index.mjs +13 -21
  21. package/fy-date/index.mjs +1 -1
  22. package/fy-draggable/index.mjs +3 -5
  23. package/fy-dynamic/index.mjs +2 -2
  24. package/fy-empty/index.mjs +1 -1
  25. package/fy-form/index.mjs +10 -15
  26. package/fy-form-design/index.mjs +15 -26
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +2 -3
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +1 -1
  31. package/fy-input-map/index.mjs +3 -5
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +1 -1
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +3 -3
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-time/index.mjs +1 -1
  41. package/fy-title/index.mjs +1 -1
  42. package/fy-tree/index.mjs +1 -1
  43. package/fy-u-editor/index.mjs +8 -9
  44. package/fy-upload/index.mjs +2 -2
  45. package/image-cropper/index.mjs +35 -35
  46. package/image-preview/index.mjs +2 -3
  47. package/index.mjs +4 -4
  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/name-avatar/index.mjs +14 -6
  54. package/package.json +13 -13
  55. package/record-video/index.mjs +1 -1
  56. package/search/index.mjs +2 -2
  57. package/search-popover/index.mjs +1 -1
  58. package/sign/index.mjs +3 -5
  59. package/text-ellipsis/index.mjs +1 -1
  60. package/tinymce-editor/index.mjs +3 -6
  61. package/verify/index.mjs +2 -3
  62. package/vue-cron/index.mjs +1 -2
  63. package/vue-tree-select/index.mjs +42 -75
  64. package/web-types.json +18 -2
  65. package/data-cardtext/index.mjs +0 -44
  66. package/data-cardtext/style.css +0 -1
@@ -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();
@@ -16,6 +16,14 @@ const n = {
16
16
  faceUrl: {
17
17
  type: String,
18
18
  default: ""
19
+ },
20
+ fontSize: {
21
+ type: String,
22
+ default: "12px"
23
+ },
24
+ size: {
25
+ type: String,
26
+ default: "40px"
19
27
  }
20
28
  },
21
29
  computed: {
@@ -23,23 +31,23 @@ const n = {
23
31
  return this.num !== void 0 ? `+${this.num}` : this.name ? this.name.slice(-2) : "";
24
32
  },
25
33
  styles() {
26
- const e = {};
27
- return this.size && (e["font-size"] = "12px"), this.fontColor && (e.color = this.fontColor), this.backgroundColor && (e.background = this.backgroundColor), e;
34
+ const e = { "font-size": this.fontSize };
35
+ return this.fontColor && (e.color = this.fontColor), this.backgroundColor && (e.background = this.backgroundColor), e;
28
36
  }
29
37
  }
30
38
  };
31
39
  var s = function() {
32
40
  var t = this, a = t._self._c;
33
- return a("div", { staticClass: "name-avatar", class: t.square ? "square" : "round" }, [t.faceUrl && !t.num ? a("img", { staticClass: "name-avatar-image", attrs: { src: t.faceUrl, alt: "" } }) : a("div", { staticClass: "name-avatar-text", style: t.styles }, [t._v(" " + t._s(t.text) + " ")])]);
34
- }, o = [], i = /* @__PURE__ */ r(
41
+ return a("div", { staticClass: "name-avatar", class: t.square ? "square" : "round", style: { width: t.size, height: t.size } }, [t.faceUrl && !t.num ? a("img", { staticClass: "name-avatar-image", attrs: { src: t.faceUrl, alt: "" } }) : a("div", { staticClass: "name-avatar-text", style: t.styles }, [t._v(" " + t._s(t.text) + " ")])]);
42
+ }, i = [], o = /* @__PURE__ */ r(
35
43
  n,
36
44
  s,
37
- o,
45
+ i,
38
46
  !1,
39
47
  null,
40
48
  null
41
49
  );
42
- const f = i.exports;
50
+ const f = o.exports;
43
51
  export {
44
52
  f as default
45
53
  };
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.16",
4
+ "version": "3.3.18",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,32 +17,32 @@
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.16",
21
- "@web-utils/integrations": "^3.0.16",
22
- "@web-utils/vue": "^3.0.16",
23
- "bpmn-js": "^17.6.4",
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.5.4",
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
- "min-dom": "^5.0.0",
34
- "monaco-editor": "^0.48.0",
35
- "overlayscrollbars": "^2.8.0",
36
- "photoswipe": "^5.4.3",
33
+ "min-dom": "^5.1.1",
34
+ "monaco-editor": "^0.50.0",
35
+ "overlayscrollbars": "^2.9.1",
36
+ "photoswipe": "^5.4.4",
37
37
  "qrcode": "^1.5.3",
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.0.0",
41
+ "tiny-svg": "^4.1.2",
42
42
  "tinymce": "4.9.11",
43
43
  "video.js": "^8.12.0",
44
44
  "viewerjs": "^1.11.6",
45
- "vue-cropper": "^0.6.4",
45
+ "vue-cropper": "^0.6.5",
46
46
  "vuedraggable": "^2.24.3",
47
47
  "x2js": "^3.4.4"
48
48
  }
@@ -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
  }
@@ -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/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.16",
5
+ "version": "3.3.18",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -1143,7 +1143,7 @@
1143
1143
  ]
1144
1144
  },
1145
1145
  {
1146
- "name": "DataCardtext",
1146
+ "name": "DataCardText",
1147
1147
  "description": "",
1148
1148
  "attributes": [
1149
1149
  {
@@ -17708,6 +17708,22 @@
17708
17708
  "type": "string"
17709
17709
  },
17710
17710
  "default": "''"
17711
+ },
17712
+ {
17713
+ "name": "fontSize",
17714
+ "value": {
17715
+ "kind": "expression",
17716
+ "type": "string"
17717
+ },
17718
+ "default": "'12px'"
17719
+ },
17720
+ {
17721
+ "name": "size",
17722
+ "value": {
17723
+ "kind": "expression",
17724
+ "type": "string"
17725
+ },
17726
+ "default": "'40px'"
17711
17727
  }
17712
17728
  ]
17713
17729
  },
@@ -1,44 +0,0 @@
1
- import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const e = {
3
- name: "DataCardtext",
4
- props: {
5
- option: {
6
- type: Object,
7
- default: () => {
8
- }
9
- }
10
- },
11
- computed: {
12
- icon() {
13
- return this.option.icon;
14
- },
15
- color() {
16
- return this.option.color || "#333";
17
- },
18
- span() {
19
- return this.option.span || 8;
20
- },
21
- data() {
22
- return this.option.data || [];
23
- }
24
- }
25
- };
26
- var o = function() {
27
- var t = this, a = t._self._c;
28
- return a("div", { staticClass: "avue-data-cardText" }, [a("ElRow", { attrs: { span: 24 } }, t._l(t.data, function(n, s) {
29
- return a("ElCol", { key: s, attrs: { md: t.span, xs: 24, sm: 12 } }, [a("div", { staticClass: "item" }, [a("a", { attrs: { href: n.href, target: n.target }, on: { click: function(_) {
30
- n.click && n.click(n);
31
- } } }, [a("div", { staticClass: "item-header" }, [t._v(" " + t._s(n.title) + " ")]), a("div", { staticClass: "item-content" }, [t._v(t._s(n.content))]), a("div", { staticClass: "item-footer" }, [a("span", [t._v(t._s(n.name))]), a("span", [t._v(t._s(n.date))])])])])]);
32
- }), 1)], 1);
33
- }, c = [], i = /* @__PURE__ */ r(
34
- e,
35
- o,
36
- c,
37
- !1,
38
- null,
39
- null
40
- );
41
- const p = i.exports;
42
- export {
43
- p as default
44
- };
@@ -1 +0,0 @@
1
- .avue-data-cardText .item{background:#f8f8f8;border-radius:6px;margin:10px 20px;padding:20px 25px;box-shadow:2px 2px 20px #ccc}.avue-data-cardText .item-header{color:#000;font-weight:700}.avue-data-cardText .item-content{color:#333;margin-top:8px;font-size:14px;line-height:22px}.avue-data-cardText .item-footer{color:#999;justify-content:space-between;margin-top:20px;font-size:12px;display:flex}.avue-data-cardText .item a{text-decoration:none}.avue-data-cardText .item a:visited{color:inherit}