@web-utils/component 2.8.12 → 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
  };
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";