@web-utils/component 2.8.11 → 2.8.13

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.
@@ -3,16 +3,18 @@ import { formatDate as i } from "@web-utils/integrations/dayjs";
3
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.d691afb6.mjs";
4
4
  import { a as D, b as O } from "./dataformat.4100726d.mjs";
5
5
  import { s as L } from "./slot.4b391395.mjs";
6
- import { n as Y } from "./vueComponentNormalizer.446f5dc4.mjs";
7
- const V = (e = {}, r = {}, s = {}, n = []) => {
6
+ import Y from "@web-utils/component/fy-u-editor";
7
+ import "@web-utils/component/fy-u-editor/style.css";
8
+ import { n as k } from "./vueComponentNormalizer.446f5dc4.mjs";
9
+ const q = (e = {}, r = {}, o = {}, n = []) => {
8
10
  let t = e[r.prop];
9
- const a = r.type, o = r.separator;
11
+ const a = r.type, s = r.separator;
10
12
  if (r.bind && (t = g(e, r.bind)), h(t))
11
13
  t = "";
12
14
  else {
13
15
  const y = b.includes(r.type) && r.multiple, _ = v.includes(r.type);
14
- if ((["string", "number"].includes(r.dataType) || y || _) && !Array.isArray(t) && (t = `${t}`.split(o || c), r.dataType === "number" && (t = A(t))), S.includes(a))
15
- Array.isArray(t) ? t = t.join(o || d) : t = t.split(o || c).join(o || d);
16
+ if ((["string", "number"].includes(r.dataType) || y || _) && !Array.isArray(t) && (t = `${t}`.split(s || c), r.dataType === "number" && (t = A(t))), S.includes(a))
17
+ Array.isArray(t) ? t = t.join(s || d) : t = t.split(s || c).join(s || d);
16
18
  else if (a === "password")
17
19
  t = T(t, "*");
18
20
  else if (x.includes(a) && r.format) {
@@ -23,13 +25,13 @@ const V = (e = {}, r = {}, s = {}, n = []) => {
23
25
  } else
24
26
  a === "time" && t.length <= 8 && (t = `${m} ${t}`), t = i(t, u);
25
27
  }
26
- t = C(n, t, r.props || s.props);
28
+ t = C(n, t, r.props || o.props);
27
29
  }
28
30
  return r.formatter && typeof r.formatter == "function" && (t = r.formatter(e, e[r.prop], t, r)), t;
29
31
  };
30
- var k = function() {
31
- var e = this, r = e.$createElement, s = e._self._c || r;
32
- return s(e.getComponent(e.column.type, e.column.component), e._g(e._b({
32
+ var F = function() {
33
+ var e = this, r = e.$createElement, o = e._self._c || r;
34
+ return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
33
35
  ref: "temp",
34
36
  tag: "Component",
35
37
  attrs: {
@@ -65,7 +67,7 @@ var k = function() {
65
67
  },
66
68
  expression: "text"
67
69
  }
68
- }, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? s("span", {
70
+ }, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? o("span", {
69
71
  domProps: {
70
72
  innerHTML: e._s(e.params.html)
71
73
  }
@@ -73,6 +75,7 @@ var k = function() {
73
75
  }, I = [];
74
76
  const $ = {
75
77
  name: "FormTemp",
78
+ components: { FyUEditor: Y },
76
79
  mixins: [L],
77
80
  props: {
78
81
  value: [String, Object, Number, Boolean, Array],
@@ -140,24 +143,24 @@ const $ = {
140
143
  }
141
144
  }
142
145
  }, f = {};
143
- var F = /* @__PURE__ */ Y(
146
+ var P = /* @__PURE__ */ k(
144
147
  $,
145
- k,
148
+ F,
146
149
  I,
147
150
  !1,
148
- P,
151
+ B,
149
152
  null,
150
153
  null,
151
154
  null
152
155
  );
153
- function P(e) {
156
+ function B(e) {
154
157
  for (let r in f)
155
158
  this[r] = f[r];
156
159
  }
157
- const N = /* @__PURE__ */ function() {
158
- return F.exports;
160
+ const W = /* @__PURE__ */ function() {
161
+ return P.exports;
159
162
  }();
160
163
  export {
161
- N as F,
162
- V as d
164
+ W as F,
165
+ q as d
163
166
  };
@@ -1,5 +1,6 @@
1
- import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
1
+ import e from "@web-utils/component/count-up";
2
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var l = function() {
3
4
  var t = this, s = t.$createElement, n = t._self._c || s;
4
5
  return n("div", {
5
6
  staticClass: "avue-data-display"
@@ -7,9 +8,9 @@ var r = function() {
7
8
  attrs: {
8
9
  span: 24
9
10
  }
10
- }, t._l(t.data, function(a, e) {
11
+ }, t._l(t.data, function(a, i) {
11
12
  return n("ElCol", {
12
- key: e,
13
+ key: i,
13
14
  attrs: {
14
15
  md: t.span,
15
16
  xs: 12,
@@ -26,7 +27,7 @@ var r = function() {
26
27
  target: a.target
27
28
  },
28
29
  on: {
29
- click: function(_) {
30
+ click: function(d) {
30
31
  a.click && a.click(a);
31
32
  }
32
33
  }
@@ -43,9 +44,12 @@ var r = function() {
43
44
  staticClass: "title"
44
45
  }, [t._v(t._s(a.title))])], 1)])]);
45
46
  }), 1)], 1);
46
- }, l = [];
47
- const c = {
47
+ }, c = [];
48
+ const p = {
48
49
  name: "DataDisplay",
50
+ components: {
51
+ CountUp: e
52
+ },
49
53
  props: {
50
54
  option: {
51
55
  type: Object,
@@ -71,23 +75,23 @@ const c = {
71
75
  }
72
76
  }
73
77
  }, o = {};
74
- var p = /* @__PURE__ */ i(
75
- c,
76
- r,
78
+ var u = /* @__PURE__ */ r(
79
+ p,
77
80
  l,
81
+ c,
78
82
  !1,
79
- u,
83
+ _,
80
84
  null,
81
85
  null,
82
86
  null
83
87
  );
84
- function u(t) {
88
+ function _(t) {
85
89
  for (let s in o)
86
90
  this[s] = o[s];
87
91
  }
88
- const v = /* @__PURE__ */ function() {
89
- return p.exports;
92
+ const h = /* @__PURE__ */ function() {
93
+ return u.exports;
90
94
  }();
91
95
  export {
92
- v as default
96
+ h as default
93
97
  };
@@ -1,5 +1,4 @@
1
1
  import n from "@web-utils/component/confirmable";
2
- import "@web-utils/component/confirmable/style.css";
3
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
3
  const r = {
5
4
  props: {
package/fy-curd/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { o as m, j as x, d as a, u as z, i as K, a as b, k as U, l as G, s as q
6
6
  import { isBlank as c } from "@web-utils/core";
7
7
  import { s as X } from "../chunks/slot.4b391395.mjs";
8
8
  import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
9
- import { F as J, d as L } from "../chunks/FormTemp.a77c73c4.mjs";
9
+ import { F as J, d as L } from "../chunks/FormTemp.f8e57fff.mjs";
10
10
  import { s as Q } from "../chunks/dic.9e90e2a4.mjs";
11
11
  import Y from "@web-utils/component/icon-temp";
12
12
  import "@web-utils/component/icon-temp/style.css";
package/fy-form/index.mjs CHANGED
@@ -14,7 +14,7 @@ var D = (e, i, r) => new Promise((s, p) => {
14
14
  }, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(t, l);
15
15
  a((r = r.apply(e, i)).next());
16
16
  });
17
- import { F as B, d as I } from "../chunks/FormTemp.a77c73c4.mjs";
17
+ import { F as B, d as I } from "../chunks/FormTemp.f8e57fff.mjs";
18
18
  import { i as M } from "../chunks/init.27f6a0c4.mjs";
19
19
  import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as G, y as R } from "../chunks/util.d691afb6.mjs";
20
20
  import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.4100726d.mjs";