@web-utils/component 3.2.2 → 3.3.0

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 (58) hide show
  1. package/chunks/{FormTemp.0ezzipG4.mjs → FormTemp.2IfXIr8o.mjs} +6 -5
  2. package/chunks/{form-input-mixin.DLHG0EnH.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
  3. package/chunks/{form-item-mixin.gd9p9Rrj.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
  4. package/chunks/{index.Uf8ONhVI.mjs → index.LGsb2aDq.mjs} +3 -3
  5. package/data-display/index.mjs +15 -129
  6. package/data-table-picker/index.mjs +1 -1
  7. package/easy-popup/index.mjs +7 -8
  8. package/editable-tree/index.mjs +1 -1
  9. package/flex-column/index.mjs +1 -1
  10. package/flex-item/index.mjs +1 -1
  11. package/flex-row/index.mjs +1 -1
  12. package/flow-designer/index.mjs +164 -218
  13. package/flow-viewer/index.mjs +73 -161
  14. package/form-button/index.mjs +11 -25
  15. package/form-cascader/index.mjs +2 -2
  16. package/form-checkbox-group/index.mjs +2 -2
  17. package/form-date-picker/index.mjs +2 -2
  18. package/form-holder/index.mjs +1 -1
  19. package/form-input/index.mjs +2 -2
  20. package/form-input-email/index.mjs +2 -2
  21. package/form-input-id-card/index.mjs +2 -2
  22. package/form-input-number/index.mjs +2 -2
  23. package/form-input-phone-number/index.mjs +2 -2
  24. package/form-input-tag/index.mjs +31 -155
  25. package/form-input-time/index.mjs +2 -2
  26. package/form-item/index.mjs +1 -1
  27. package/form-radio-group/index.mjs +2 -2
  28. package/form-select/index.mjs +2 -2
  29. package/form-switch/index.mjs +2 -2
  30. package/form-textarea/index.mjs +2 -2
  31. package/form-view/index.mjs +13 -12
  32. package/fy-curd/index.mjs +5 -4
  33. package/fy-form/index.mjs +1 -1
  34. package/fy-form-design/index.mjs +329 -498
  35. package/fy-input-icon/index.mjs +21 -20
  36. package/fy-u-editor/index.mjs +237 -75
  37. package/highlight-j-s/index.mjs +3 -4
  38. package/icon-temp/index.mjs +6 -7
  39. package/index.mjs +328 -328
  40. package/nav-bar/index.mjs +6 -7
  41. package/package.json +1 -1
  42. package/page/index.mjs +0 -1
  43. package/page-header/index.mjs +2 -3
  44. package/page-skeleton/index.mjs +17 -95
  45. package/pageable-table/index.mjs +1 -1
  46. package/pageable-view/index.mjs +8 -8
  47. package/present-view/index.mjs +4 -3
  48. package/resize-observer/index.mjs +3 -4
  49. package/split-pane/index.mjs +4 -3
  50. package/swiper/index.mjs +4 -3
  51. package/table-view/index.mjs +1 -1
  52. package/watermark/index.mjs +1 -1
  53. package/web-types.json +1 -1
  54. package/x-input-tag/index.mjs +9 -10
  55. package/chunks/FyUEditor.c06LkvIy.mjs +0 -224
  56. package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +0 -167
  57. package/chunks/IconTemp.tzsg5qth.mjs +0 -29
  58. package/chunks/ResizeObserver.sOHk2Cm-.mjs +0 -51
@@ -1,10 +1,11 @@
1
1
  import { isBlank as _ } from "@web-utils/core";
2
2
  import { formatDate as i } from "@web-utils/integrations/dayjs";
3
3
  import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.y1gUGRqi.mjs";
4
+ import "./fy-u-editor/style.css";
4
5
  import { a as D, b as O } from "./dataformat.Ab9PZnVk.mjs";
5
6
  import { s as j } from "./slot.j1uMmBnG.mjs";
6
7
  import { n as L } from "./_plugin-vue2_normalizer.JwmUNtgn.mjs";
7
- const M = (n = {}, e = {}, s = {}, r = []) => {
8
+ const R = (n = {}, e = {}, s = {}, r = []) => {
8
9
  let t = n[e.prop];
9
10
  const a = e.type, o = e.separator;
10
11
  if (e.bind && (t = h(n, e.bind)), _(t))
@@ -28,7 +29,7 @@ const M = (n = {}, e = {}, s = {}, r = []) => {
28
29
  return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
29
30
  }, Y = {
30
31
  name: "FormTemp",
31
- components: { FyUEditor: () => import("./FyUEditor.c06LkvIy.mjs") },
32
+ components: { FyUEditor: () => import("./fy-u-editor/index.mjs") },
32
33
  mixins: [j],
33
34
  props: {
34
35
  value: [String, Object, Number, Boolean, Array],
@@ -117,8 +118,8 @@ var k = function() {
117
118
  null,
118
119
  null
119
120
  );
120
- const R = I.exports;
121
+ const V = I.exports;
121
122
  export {
122
- R as F,
123
- M as d
123
+ V as F,
124
+ R as d
124
125
  };
@@ -1,5 +1,5 @@
1
- import { f as e } from "./form-item-mixin.gd9p9Rrj.mjs";
2
- import { d as r } from "./index.Uf8ONhVI.mjs";
1
+ import { f as e } from "./form-item-mixin.BilKDUlK.mjs";
2
+ import { d as r } from "./index.LGsb2aDq.mjs";
3
3
  const o = {
4
4
  mixins: [e],
5
5
  props: {
@@ -9,7 +9,7 @@ var i = (e, r, t) => r in e ? m(e, r, { enumerable: !0, configurable: !0, writab
9
9
  c.call(r, t) && i(e, t, r[t]);
10
10
  return e;
11
11
  };
12
- import { d as o } from "./index.Uf8ONhVI.mjs";
12
+ import { d as o } from "./index.LGsb2aDq.mjs";
13
13
  import a from "element-ui/lib/col";
14
14
  import u from "element-ui/lib/form-item";
15
15
  const d = ["span"], n = [...Object.keys(a.props || a.default.props)], h = n.filter((e) => !d.includes(e)), b = ["label", "prop", "rules", "labelWidth", "required"], p = [...Object.keys(u.props || u.default.props)], g = p.filter((e) => !b.includes(e)), y = [
@@ -177,9 +177,9 @@ export {
177
177
  I as e,
178
178
  K as f,
179
179
  T as g,
180
- E as h,
181
- V as i,
182
- R as j,
180
+ V as h,
181
+ R as i,
182
+ E as j,
183
183
  M as k,
184
184
  A as n
185
185
  };
@@ -1,123 +1,9 @@
1
- var u = Object.defineProperty, d = Object.defineProperties;
2
- var p = Object.getOwnPropertyDescriptors;
3
- var n = Object.getOwnPropertySymbols;
4
- var m = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
5
- var i = (e, t, s) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, r = (e, t) => {
6
- for (var s in t || (t = {}))
7
- m.call(t, s) && i(e, s, t[s]);
8
- if (n)
9
- for (var s of n(t))
10
- f.call(t, s) && i(e, s, t[s]);
11
- return e;
12
- }, o = (e, t) => d(e, p(t));
13
- import { CountUp as h } from "countup.js";
14
- import { n as l } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
15
- const _ = {
16
- name: "CountUp",
17
- props: {
18
- animation: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- start: {
23
- type: [Number, String],
24
- required: !1,
25
- default: 0
26
- },
27
- end: {
28
- type: [Number, String],
29
- required: !0
30
- },
31
- decimals: {
32
- type: Number,
33
- required: !1,
34
- default: 0
35
- },
36
- duration: {
37
- type: Number,
38
- required: !1,
39
- default: 2
40
- },
41
- options: {
42
- type: Object,
43
- required: !1,
44
- default() {
45
- return {};
46
- }
47
- },
48
- callback: {
49
- type: Function,
50
- required: !1,
51
- default: () => {
52
- }
53
- }
54
- },
55
- watch: {
56
- decimals() {
57
- var e;
58
- (e = this.c) == null || e.update(this.end);
59
- },
60
- end(e) {
61
- var t;
62
- (t = this.c) == null || t.update(e);
63
- }
64
- },
65
- mounted() {
66
- this.animation && this.init();
67
- },
68
- beforeDestroy() {
69
- this.destroy();
70
- },
71
- methods: {
72
- init() {
73
- this.c || (this.c = new h(this.$el, this.end, o(r({}, this.options), {
74
- decimal: this.decimals,
75
- duration: this.duration,
76
- startVal: this.start
77
- })), this.c.start(() => {
78
- this.callback(this.c);
79
- }));
80
- },
81
- destroy() {
82
- this.c = null;
83
- }
84
- },
85
- start(e) {
86
- var t;
87
- (t = this.c) == null || t.start(() => {
88
- e && e(this.c);
89
- });
90
- },
91
- pauseResume() {
92
- var e;
93
- (e = this.c) == null || e.pauseResume();
94
- },
95
- reset() {
96
- var e;
97
- (e = this.c) == null || e.reset();
98
- },
99
- update(e) {
100
- var t;
101
- (t = this.c) == null || t.update(e);
102
- }
103
- };
104
- var v = function() {
105
- var t = this, s = t._self._c;
106
- return s("span", [t._v(t._s(t.end))]);
107
- }, y = [], C = /* @__PURE__ */ l(
108
- _,
109
- v,
110
- y,
111
- !1,
112
- null,
113
- null,
114
- null,
115
- null
116
- );
117
- const b = C.exports, $ = {
1
+ import o from "./count-up/index.mjs";
2
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
3
+ const r = {
118
4
  name: "DataDisplay",
119
5
  components: {
120
- CountUp: b
6
+ CountUp: o
121
7
  },
122
8
  props: {
123
9
  option: {
@@ -144,24 +30,24 @@ const b = C.exports, $ = {
144
30
  }
145
31
  }
146
32
  };
147
- var q = function() {
148
- var t = this, s = t._self._c;
149
- return s("div", { staticClass: "avue-data-display" }, [s("ElRow", { attrs: { span: 24 } }, t._l(t.data, function(a, c) {
150
- return s("ElCol", { key: c, attrs: { md: t.span, xs: 12, sm: 12 } }, [s("div", { staticClass: "item", style: { color: t.color } }, [s("a", { attrs: { href: a.href, target: a.target }, on: { click: function(D) {
33
+ var l = function() {
34
+ var t = this, n = t._self._c;
35
+ return n("div", { staticClass: "avue-data-display" }, [n("ElRow", { attrs: { span: 24 } }, t._l(t.data, function(a, s) {
36
+ return n("ElCol", { key: s, attrs: { md: t.span, xs: 12, sm: 12 } }, [n("div", { staticClass: "item", style: { color: t.color } }, [n("a", { attrs: { href: a.href, target: a.target }, on: { click: function(u) {
151
37
  a.click && a.click(a);
152
- } } }, [s("CountUp", { staticClass: "count", attrs: { animation: a.animation || t.animation, decimals: a.decimals || t.decimals, end: a.count } }), s("span", { staticClass: "splitLine" }), s("div", { staticClass: "title" }, [t._v(t._s(a.title))])], 1)])]);
38
+ } } }, [n("CountUp", { staticClass: "count", attrs: { animation: a.animation || t.animation, decimals: a.decimals || t.decimals, end: a.count } }), n("span", { staticClass: "splitLine" }), n("div", { staticClass: "title" }, [t._v(t._s(a.title))])], 1)])]);
153
39
  }), 1)], 1);
154
- }, g = [], k = /* @__PURE__ */ l(
155
- $,
156
- q,
157
- g,
40
+ }, e = [], c = /* @__PURE__ */ i(
41
+ r,
42
+ l,
43
+ e,
158
44
  !1,
159
45
  null,
160
46
  null,
161
47
  null,
162
48
  null
163
49
  );
164
- const N = k.exports;
50
+ const _ = c.exports;
165
51
  export {
166
- N as default
52
+ _ as default
167
53
  };
@@ -1,4 +1,4 @@
1
- import { f as i } from "../chunks/index.Uf8ONhVI.mjs";
1
+ import { f as i } from "../chunks/index.LGsb2aDq.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
3
3
  const o = {
4
4
  name: "DataTablePicker",
@@ -1,21 +1,20 @@
1
- var d = (i, e, t) => new Promise((o, a) => {
1
+ var d = (i, e, t) => new Promise((o, r) => {
2
2
  var l = (s) => {
3
3
  try {
4
4
  n(t.next(s));
5
- } catch (r) {
6
- a(r);
5
+ } catch (a) {
6
+ r(a);
7
7
  }
8
8
  }, h = (s) => {
9
9
  try {
10
10
  n(t.throw(s));
11
- } catch (r) {
12
- a(r);
11
+ } catch (a) {
12
+ r(a);
13
13
  }
14
14
  }, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(l, h);
15
15
  n((t = t.apply(i, e)).next());
16
16
  });
17
17
  import { getComputedWidth as f, getComputedHeight as u } from "@web-utils/core";
18
- /* empty css */
19
18
  import { n as p } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
20
19
  const c = {
21
20
  name: "EasyPopup",
@@ -105,7 +104,7 @@ var m = function() {
105
104
  null,
106
105
  null
107
106
  );
108
- const $ = v.exports;
107
+ const w = v.exports;
109
108
  export {
110
- $ as default
109
+ w as default
111
110
  };
@@ -29,7 +29,7 @@ var a = (t, e, i) => new Promise((s, o) => {
29
29
  import { hasOwn as m, isVerticalScrollbarVisible as T, scrollbarWidth as M, computePosition as K, isPlainObject as u, isFunction as N, isUndefined as p, isNotEmpty as P, fastClone as E, delay as D, findTreeChildren as L } from "@web-utils/core";
30
30
  import { addResizeListener as C, removeResizeListener as g } from "@web-utils/integrations/resize";
31
31
  import { cloneDeep as v } from "@web-utils/integrations/lodash";
32
- import { a as R, b as z, c as y } from "../chunks/index.Uf8ONhVI.mjs";
32
+ import { a as R, b as z, c as y } from "../chunks/index.LGsb2aDq.mjs";
33
33
  import { n as S } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
34
34
  const V = {
35
35
  name: "EditableTree",
@@ -10,7 +10,7 @@ var a = (t, e, n) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writab
10
10
  m.call(e, n) && a(t, n, e[n]);
11
11
  return t;
12
12
  }, c = (t, e) => u(t, f(e));
13
- import { g as h } from "../chunks/index.Uf8ONhVI.mjs";
13
+ import { g as h } from "../chunks/index.LGsb2aDq.mjs";
14
14
  import { n as _ } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
15
15
  const d = {
16
16
  name: "FlexColumn",
@@ -10,7 +10,7 @@ var r = (t, e, l) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writab
10
10
  x.call(e, l) && r(t, l, e[l]);
11
11
  return t;
12
12
  }, f = (t, e) => u(t, c(e));
13
- import { g as m } from "../chunks/index.Uf8ONhVI.mjs";
13
+ import { g as m } from "../chunks/index.LGsb2aDq.mjs";
14
14
  import { n as C } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
15
15
  const d = {
16
16
  name: "FlexItem",
@@ -10,7 +10,7 @@ var a = (n, e, t) => e in n ? i(n, e, { enumerable: !0, configurable: !0, writab
10
10
  h.call(e, t) && a(n, t, e[t]);
11
11
  return n;
12
12
  }, c = (n, e) => f(n, u(e));
13
- import { g as _ } from "../chunks/index.Uf8ONhVI.mjs";
13
+ import { g as _ } from "../chunks/index.LGsb2aDq.mjs";
14
14
  import { n as m } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
15
15
  const d = {
16
16
  name: "FlexRow",