@web-utils/component 2.30.0 → 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
package/chat/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { formatDate as c } from "@web-utils/integrations/dayjs";
2
- import { s as l } from "../chunks/util.C2Bhx22L.mjs";
2
+ import { s as l } from "../chunks/util.y1gUGRqi.mjs";
3
3
  import { n as d } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
4
4
  var u = function() {
5
5
  var t = this, o = t.$createElement, e = t._self._c || o;
@@ -522,7 +522,9 @@ const m = {
522
522
  const s = i.children[a];
523
523
  s.getAttribute("data-flag") !== "0" && (s.setAttribute("data-flag", 0), s.onclick = () => {
524
524
  this.handleEvent(s.dataset);
525
- }, s.tagName === "IMG" ? (s.className = "web__msg--img", s.src = s.getAttribute("data-src")) : s.tagName === "VIDEO" ? (s.className = "web__msg--video", s.src = s.getAttribute("data-src")) : s.tagName === "AUDIO" ? (s.className = "web__msg--audio", s.controls = "controls", s.src = s.getAttribute("data-src")) : s.tagName === "FILE" ? (s.className = "web__msg--file", s.innerHTML = `<h2>File</h2><span>${s.getAttribute("data-name")}</span>`) : s.tagName === "MAP" && (s.className = "web__msg--file web__msg--map", s.innerHTML = `<h2>Map</h2><span>${s.getAttribute("data-longitude")} , ${s.getAttribute("data-latitude")}<br />${s.getAttribute("data-address")}</span>`), this.setScroll());
525
+ }, s.tagName === "IMG" ? (s.className = "web__msg--img", s.src = s.getAttribute("data-src")) : s.tagName === "VIDEO" ? (s.className = "web__msg--video", s.src = s.getAttribute("data-src")) : s.tagName === "AUDIO" ? (s.className = "web__msg--audio", s.controls = "controls", s.src = s.getAttribute("data-src")) : s.tagName === "FILE" ? (s.className = "web__msg--file", s.innerHTML = `<h2>File</h2><span>${s.getAttribute("data-name")}</span>`) : s.tagName === "MAP" && (s.className = "web__msg--file web__msg--map", s.innerHTML = `<h2>Map</h2><span>${s.getAttribute("data-longitude")} , ${s.getAttribute(
526
+ "data-latitude"
527
+ )}<br />${s.getAttribute("data-address")}</span>`), this.setScroll());
526
528
  }
527
529
  });
528
530
  }, 0), o;
@@ -1,8 +1,8 @@
1
1
  import { isBlank as h } from "@web-utils/core";
2
2
  import { formatDate as i } from "@web-utils/integrations/dayjs";
3
- import { p as g, M as b, A as v, b as c, q as A, e as S, k as d, t as T, h as x, v as C, u as j } from "./util.C2Bhx22L.mjs";
3
+ import { p as g, M as b, A as v, b as c, q as A, e as S, k as d, t as T, h as x, v as C, u as j } from "./util.y1gUGRqi.mjs";
4
4
  import "@web-utils/component/fy-u-editor/style.css";
5
- import { a as D, b as O } from "./dataformat.X_61lMA7.mjs";
5
+ import { a as D, b as O } from "./dataformat.Ab9PZnVk.mjs";
6
6
  import { s as L } from "./slot.j1uMmBnG.mjs";
7
7
  import { n as Y } from "./vueComponentNormalizer.JwmUNtgn.mjs";
8
8
  const U = (e = {}, r = {}, o = {}, n = []) => {
@@ -39,9 +39,15 @@ function L(e, t, a) {
39
39
  let u = !0;
40
40
  if (g(p) && (u = yield p(e)), u === !1)
41
41
  return;
42
- i && (yield (B.confirm || B.default.confirm)(r || k, { type: l, title: h }));
42
+ i && (yield (B.confirm || B.default.confirm)(r || k, {
43
+ type: l,
44
+ title: h
45
+ }));
43
46
  let y;
44
- c && (y = (v.service || v.default.service)({ background: "rgba(0,0,0,0.3)", text: f }));
47
+ c && (y = (v.service || v.default.service)({
48
+ background: "rgba(0,0,0,0.3)",
49
+ text: f
50
+ }));
45
51
  try {
46
52
  yield s(e);
47
53
  } catch (P) {
@@ -95,10 +101,14 @@ const E = {
95
101
  }
96
102
  },
97
103
  render(e, { props: t, data: a, children: o, listeners: n }) {
98
- return e(t.tag, S(T({}, a), {
99
- on: { click: (r) => L(r, t, n) },
100
- props: t
101
- }), o || t.text);
104
+ return e(
105
+ t.tag,
106
+ S(T({}, a), {
107
+ on: { click: (r) => L(r, t, n) },
108
+ props: t
109
+ }),
110
+ o || t.text
111
+ );
102
112
  }
103
113
  };
104
114
  export {
@@ -1,5 +1,5 @@
1
1
  import { isBlank as l } from "@web-utils/core";
2
- import { f as E, M as f, A as h, R as T, c as p, e as m, K as A, g as I, S as L, b as S, h as B, I as _ } from "./util.C2Bhx22L.mjs";
2
+ import { f as E, M as f, A as h, R as T, c as p, e as m, K as A, g as I, S as L, b as S, h as B, I as _ } from "./util.y1gUGRqi.mjs";
3
3
  const P = {
4
4
  common: {
5
5
  condition: "条件",
@@ -1,5 +1,5 @@
1
1
  import { isBlank as P } from "@web-utils/core";
2
- import { m as w, n as E } from "./util.C2Bhx22L.mjs";
2
+ import { m as w, n as E } from "./util.y1gUGRqi.mjs";
3
3
  const F = (n, t = []) => new Promise((i) => {
4
4
  const c = [], s = [], a = {};
5
5
  n.forEach((r) => {
@@ -77,9 +77,11 @@ function x(n) {
77
77
  n.forEach((s) => {
78
78
  i.push(
79
79
  new Promise((a) => {
80
- D(Object.assign(s, {
81
- url: `${s.url.replace("{{key}}", "")}`
82
- })).then((r) => {
80
+ D(
81
+ Object.assign(s, {
82
+ url: `${s.url.replace("{{key}}", "")}`
83
+ })
84
+ ).then((r) => {
83
85
  r = w(r, s.props, s.dataType), a(r);
84
86
  }).catch(() => {
85
87
  a([]);
@@ -113,13 +115,9 @@ const D = (n) => {
113
115
  };
114
116
  c === "post" ? window.axios.post(t, y, { headers: e }).then(function(h) {
115
117
  f(h);
116
- }).catch(() => [
117
- p([])
118
- ]) : window.axios.get(t, { params: i, headers: e }).then(function(h) {
118
+ }).catch(() => [p([])]) : window.axios.get(t, { params: i, headers: e }).then(function(h) {
119
119
  f(h);
120
- }).catch(() => [
121
- p([])
122
- ]);
120
+ }).catch(() => [p([])]);
123
121
  });
124
122
  };
125
123
  export {
@@ -1,7 +1,7 @@
1
- import { D as r, a as i, b as a } from "./util.C2Bhx22L.mjs";
1
+ import { D as r, a as i, b as a } from "./util.y1gUGRqi.mjs";
2
2
  import { s as l } from "./slot.j1uMmBnG.mjs";
3
3
  import { isBlank as s } from "@web-utils/core";
4
- import { i as p } from "./dataformat.X_61lMA7.mjs";
4
+ import { i as p } from "./dataformat.Ab9PZnVk.mjs";
5
5
  const f = {
6
6
  mixins: [l],
7
7
  data() {
@@ -1,5 +1,5 @@
1
- import { s as a, l as n, a as h, b as r } from "./dic.6tk91Dmq.mjs";
2
- import { d, a as c } from "./util.C2Bhx22L.mjs";
1
+ import { s as a, l as n, a as h, b as r } from "./dic.7JBaVHv6.mjs";
2
+ import { d, a as c } from "./util.y1gUGRqi.mjs";
3
3
  import { s as l } from "./slot.j1uMmBnG.mjs";
4
4
  import { isBlank as s } from "@web-utils/core";
5
5
  const f = {
@@ -30,7 +30,29 @@ const D = "fy-", f = {
30
30
  "month",
31
31
  "monthrange",
32
32
  "year"
33
- ], R = ["tree", "number", "icon", "color", "table", "map"], L = ["img", "array", "url"], k = ["cascader", "tree", "select"], K = ["slider"], V = L.concat(["upload", "dynamic", "map", "checkbox", "cascader", "dynamic", "timerange", "monthrange", "daterange", "datetimerange", "dates"]), F = I.concat(["select", "checkbox", "radio", "cascader", "tree", "color", "icon", "table", "map"]), T = " | ", B = ",", y = {
33
+ ], R = ["tree", "number", "icon", "color", "table", "map"], L = ["img", "array", "url"], k = ["cascader", "tree", "select"], K = ["slider"], V = L.concat([
34
+ "upload",
35
+ "dynamic",
36
+ "map",
37
+ "checkbox",
38
+ "cascader",
39
+ "dynamic",
40
+ "timerange",
41
+ "monthrange",
42
+ "daterange",
43
+ "datetimerange",
44
+ "dates"
45
+ ]), F = I.concat([
46
+ "select",
47
+ "checkbox",
48
+ "radio",
49
+ "cascader",
50
+ "tree",
51
+ "color",
52
+ "icon",
53
+ "table",
54
+ "map"
55
+ ]), T = " | ", B = ",", y = {
34
56
  img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
35
57
  video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
36
58
  audio: /\.(mp3|wav|MP3|WAV)/
@@ -57,23 +79,7 @@ function W(e, n) {
57
79
  const t = document.createElement("a");
58
80
  t.href = e, t.download = n || "";
59
81
  let r;
60
- window.MouseEvent ? r = new MouseEvent("click") : (r = document.createEvent("MouseEvents"), r.initMouseEvent(
61
- "click",
62
- !0,
63
- !1,
64
- window,
65
- 0,
66
- 0,
67
- 0,
68
- 0,
69
- 0,
70
- !1,
71
- !1,
72
- !1,
73
- !1,
74
- 0,
75
- null
76
- )), t.dispatchEvent(r);
82
+ window.MouseEvent ? r = new MouseEvent("click") : (r = document.createEvent("MouseEvents"), r.initMouseEvent("click", !0, !1, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null)), t.dispatchEvent(r);
77
83
  }
78
84
  function Y(e) {
79
85
  return e.forEach((n, t) => {