@web-utils/component 2.8.13 → 2.8.15

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.
@@ -1,12 +1,11 @@
1
1
  import { isBlank as h } from "@web-utils/core";
2
2
  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
+ import "@web-utils/component/fy-u-editor/style.css";
4
5
  import { a as D, b as O } from "./dataformat.4100726d.mjs";
5
6
  import { s as L } from "./slot.4b391395.mjs";
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 = []) => {
7
+ import { n as Y } from "./vueComponentNormalizer.446f5dc4.mjs";
8
+ const U = (e = {}, r = {}, o = {}, n = []) => {
10
9
  let t = e[r.prop];
11
10
  const a = r.type, s = r.separator;
12
11
  if (r.bind && (t = g(e, r.bind)), h(t))
@@ -29,7 +28,7 @@ const q = (e = {}, r = {}, o = {}, n = []) => {
29
28
  }
30
29
  return r.formatter && typeof r.formatter == "function" && (t = r.formatter(e, e[r.prop], t, r)), t;
31
30
  };
32
- var F = function() {
31
+ var k = function() {
33
32
  var e = this, r = e.$createElement, o = e._self._c || r;
34
33
  return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
35
34
  ref: "temp",
@@ -72,10 +71,10 @@ var F = function() {
72
71
  innerHTML: e._s(e.params.html)
73
72
  }
74
73
  }) : e._e()]);
75
- }, I = [];
76
- const $ = {
74
+ }, F = [];
75
+ const I = {
77
76
  name: "FormTemp",
78
- components: { FyUEditor: Y },
77
+ components: { FyUEditor: () => import("@web-utils/component/fy-u-editor") },
79
78
  mixins: [L],
80
79
  props: {
81
80
  value: [String, Object, Number, Boolean, Array],
@@ -143,24 +142,24 @@ const $ = {
143
142
  }
144
143
  }
145
144
  }, f = {};
146
- var P = /* @__PURE__ */ k(
147
- $,
148
- F,
145
+ var $ = /* @__PURE__ */ Y(
149
146
  I,
147
+ k,
148
+ F,
150
149
  !1,
151
- B,
150
+ P,
152
151
  null,
153
152
  null,
154
153
  null
155
154
  );
156
- function B(e) {
155
+ function P(e) {
157
156
  for (let r in f)
158
157
  this[r] = f[r];
159
158
  }
160
- const W = /* @__PURE__ */ function() {
161
- return P.exports;
159
+ const N = /* @__PURE__ */ function() {
160
+ return $.exports;
162
161
  }();
163
162
  export {
164
- W as F,
165
- q as d
163
+ N as F,
164
+ U as d
166
165
  };
@@ -16,8 +16,10 @@ var c = (t, e, o) => new Promise((r, s) => {
16
16
  });
17
17
  import { hasOwn as d, toStringArray as b, animate as v, isInContainer as _ } from "@web-utils/core";
18
18
  import { merge as g } from "@web-utils/integrations/lodash";
19
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- var w = function() {
19
+ import y from "@web-utils/component/resize-observer";
20
+ import "@web-utils/component/resize-observer/style.css";
21
+ import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
22
+ var x = function() {
21
23
  var t = this, e = t.$createElement, o = t._self._c || e;
22
24
  return o("div", {
23
25
  class: ["form-view", t.className]
@@ -203,16 +205,19 @@ var w = function() {
203
205
  "font-size": "16px"
204
206
  }
205
207
  }) : t._e()], 1);
206
- }, x = [];
207
- const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], $ = p.map((t) => `${t}-down`), S = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
208
+ }, $ = [];
209
+ const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], S = p.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
208
210
  if (t.classList.contains(e))
209
211
  return t;
210
212
  let o = t.parentNode;
211
213
  for (; o && !o.classList.contains(e); )
212
214
  o = o.parentNode;
213
215
  return o.classList.contains(e) ? o : null;
214
- }, F = {
216
+ }, k = {
215
217
  name: "FormView",
218
+ components: {
219
+ ResizeObserver: y
220
+ },
216
221
  inject: {
217
222
  flowContext: {
218
223
  default: {}
@@ -273,7 +278,7 @@ const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
273
278
  return this.toolbarProps.buttons.filter((t) => !m.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
274
279
  },
275
280
  footerBarButtons() {
276
- let t = this.toolbarProps.buttons.filter((e) => !S.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)).map((e) => e.replace(":down", ""));
281
+ let t = this.toolbarProps.buttons.filter((e) => !F.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)).map((e) => e.replace(":down", ""));
277
282
  return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
278
283
  }
279
284
  },
@@ -306,7 +311,7 @@ const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
306
311
  return Object.keys(this.$scopedSlots).filter((t) => p.includes(t));
307
312
  },
308
313
  getFooterSlotKeys() {
309
- return Object.keys(this.$scopedSlots).filter((t) => $.includes(t));
314
+ return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
310
315
  },
311
316
  getFooterSlotKey(t) {
312
317
  return t.replace("-down", "");
@@ -344,23 +349,23 @@ const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
344
349
  }
345
350
  }
346
351
  }, h = {};
347
- var k = /* @__PURE__ */ y(
348
- F,
349
- w,
352
+ var B = /* @__PURE__ */ w(
353
+ k,
350
354
  x,
355
+ $,
351
356
  !1,
352
- B,
357
+ C,
353
358
  null,
354
359
  null,
355
360
  null
356
361
  );
357
- function B(t) {
362
+ function C(t) {
358
363
  for (let e in h)
359
364
  this[e] = h[e];
360
365
  }
361
- const T = /* @__PURE__ */ function() {
362
- return k.exports;
366
+ const z = /* @__PURE__ */ function() {
367
+ return B.exports;
363
368
  }();
364
369
  export {
365
- T as default
370
+ z as default
366
371
  };
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.f8e57fff.mjs";
9
+ import { F as J, d as L } from "../chunks/FormTemp.155fd6b4.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.f8e57fff.mjs";
17
+ import { F as B, d as I } from "../chunks/FormTemp.155fd6b4.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";