@web-utils/component 3.3.16 → 3.3.18

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 (66) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunks/{FormTemp.Cf9d5N_a.mjs → FormTemp.CJOJOy8K.mjs} +2 -2
  3. package/chunks/{dataformat.skVZSF57.mjs → dataformat.ARPY2U57.mjs} +5 -9
  4. package/chunks/{dic.28d_-7EJ.mjs → dic.DBmh9yzU.mjs} +1 -1
  5. package/chunks/{event.m1ZDHbkO.mjs → event.mRPNW7Cx.mjs} +2 -2
  6. package/chunks/{init.DBM2D2IY.mjs → init.CauLYxJq.mjs} +2 -2
  7. package/chunks/{json-beautifier.vs8mCOxd.mjs → json-beautifier.j1-U5g4P.mjs} +3 -6
  8. package/chunks/{util.B_LEdJSZ.mjs → util.BaRFvfAi.mjs} +1 -2
  9. package/code-mirror-editor/index.mjs +8 -16
  10. package/data-card-text/index.mjs +49 -0
  11. package/data-card-text/style.css +1 -0
  12. package/dialog-form/index.mjs +1 -1
  13. package/flow/index.mjs +1 -1
  14. package/flow-designer/index.mjs +2 -4
  15. package/flow-node/index.mjs +1 -1
  16. package/fy-array/index.mjs +2 -2
  17. package/fy-cascader/index.mjs +1 -1
  18. package/fy-checkbox/index.mjs +2 -3
  19. package/fy-code/index.mjs +1 -1
  20. package/fy-curd/index.mjs +13 -21
  21. package/fy-date/index.mjs +1 -1
  22. package/fy-draggable/index.mjs +3 -5
  23. package/fy-dynamic/index.mjs +2 -2
  24. package/fy-empty/index.mjs +1 -1
  25. package/fy-form/index.mjs +10 -15
  26. package/fy-form-design/index.mjs +15 -26
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +2 -3
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +1 -1
  31. package/fy-input-map/index.mjs +3 -5
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +1 -1
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +3 -3
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-time/index.mjs +1 -1
  41. package/fy-title/index.mjs +1 -1
  42. package/fy-tree/index.mjs +1 -1
  43. package/fy-u-editor/index.mjs +8 -9
  44. package/fy-upload/index.mjs +2 -2
  45. package/image-cropper/index.mjs +35 -35
  46. package/image-preview/index.mjs +2 -3
  47. package/index.mjs +4 -4
  48. package/input-number/index.mjs +6 -12
  49. package/keyboard/index.mjs +1 -2
  50. package/license/index.mjs +1 -1
  51. package/login/index.mjs +1 -1
  52. package/monaco-editor/index.mjs +2 -3
  53. package/name-avatar/index.mjs +14 -6
  54. package/package.json +13 -13
  55. package/record-video/index.mjs +1 -1
  56. package/search/index.mjs +2 -2
  57. package/search-popover/index.mjs +1 -1
  58. package/sign/index.mjs +3 -5
  59. package/text-ellipsis/index.mjs +1 -1
  60. package/tinymce-editor/index.mjs +3 -6
  61. package/verify/index.mjs +2 -3
  62. package/vue-cron/index.mjs +1 -2
  63. package/vue-tree-select/index.mjs +42 -75
  64. package/web-types.json +18 -2
  65. package/data-cardtext/index.mjs +0 -44
  66. package/data-cardtext/style.css +0 -1
package/chat/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { formatDate as r } from "@web-utils/integrations/dayjs";
2
- import { s as l } from "../chunks/util.B_LEdJSZ.mjs";
2
+ import { s as l } from "../chunks/util.BaRFvfAi.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const d = {
5
5
  name: "Chat",
@@ -1,8 +1,8 @@
1
1
  import { isBlank as _ } from "@web-utils/core";
2
2
  import { formatDate as i } from "@web-utils/integrations/dayjs";
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.B_LEdJSZ.mjs";
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.BaRFvfAi.mjs";
4
4
  import "../fy-u-editor/style.css";
5
- import { a as D, b as O } from "./dataformat.skVZSF57.mjs";
5
+ import { a as D, b as O } from "./dataformat.ARPY2U57.mjs";
6
6
  import { s as j } from "./slot.DXIbhGat.mjs";
7
7
  import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
8
  const R = (n = {}, e = {}, s = {}, r = []) => {
@@ -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.B_LEdJSZ.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.BaRFvfAi.mjs";
3
3
  const P = {
4
4
  common: {
5
5
  condition: "条件",
@@ -85,8 +85,7 @@ const P = {
85
85
  let a = e, i = null;
86
86
  for (let c = 0, o = t.length; c < o; c++) {
87
87
  const d = t[c];
88
- if (!a)
89
- break;
88
+ if (!a) break;
90
89
  if (c === o - 1) {
91
90
  i = a[d];
92
91
  break;
@@ -118,22 +117,19 @@ const v = (e, n = 12, t = !1) => {
118
117
  }, $ = (e) => {
119
118
  const n = e.type, t = e.searchRange;
120
119
  let a = n;
121
- if (e.searchType)
122
- return e.searchType;
120
+ if (e.searchType) return e.searchType;
123
121
  if (["radio", "checkbox", "switch"].includes(n))
124
122
  a = "select";
125
123
  else if (B.includes(n)) {
126
124
  const i = "range";
127
125
  t ? n.includes(i) ? a = n : a = n + i : a = n.replace(i, "");
128
- } else
129
- ["textarea"].includes(n) && (a = "input");
126
+ } else ["textarea"].includes(n) && (a = "input");
130
127
  return a;
131
128
  }, N = (e, n) => {
132
129
  let t = e || "input";
133
130
  if (l(n))
134
131
  m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = `input-${e}`);
135
- else
136
- return n;
132
+ else return n;
137
133
  return A + t;
138
134
  }, M = (e = []) => {
139
135
  let n = {};
@@ -1,5 +1,5 @@
1
1
  import { isBlank as P } from "@web-utils/core";
2
- import { m as w, n as E } from "./util.B_LEdJSZ.mjs";
2
+ import { m as w, n as E } from "./util.BaRFvfAi.mjs";
3
3
  const F = (n, t = []) => new Promise((i) => {
4
4
  const c = [], s = [], a = {};
5
5
  n.forEach((r) => {
@@ -1,7 +1,7 @@
1
- import { D as r, a as i, b as a } from "./util.B_LEdJSZ.mjs";
1
+ import { D as r, a as i, b as a } from "./util.BaRFvfAi.mjs";
2
2
  import { s as l } from "./slot.DXIbhGat.mjs";
3
3
  import { isBlank as s } from "@web-utils/core";
4
- import { i as p } from "./dataformat.skVZSF57.mjs";
4
+ import { i as p } from "./dataformat.ARPY2U57.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.28d_-7EJ.mjs";
2
- import { d, a as c } from "./util.B_LEdJSZ.mjs";
1
+ import { s as a, l as n, a as h, b as r } from "./dic.DBmh9yzU.mjs";
2
+ import { d, a as c } from "./util.BaRFvfAi.mjs";
3
3
  import { s as l } from "./slot.DXIbhGat.mjs";
4
4
  import { isBlank as s } from "@web-utils/core";
5
5
  const f = {
@@ -26,16 +26,14 @@ function N(r, i = {}) {
26
26
  return u;
27
27
  }
28
28
  function S(r) {
29
- if (!$(r))
30
- return;
29
+ if (!$(r)) return;
31
30
  const i = Object.keys(r);
32
31
  i && i.forEach(function(n) {
33
32
  const t = r[n];
34
33
  if (typeof t == "string") {
35
34
  const e = t - 0;
36
35
  r[n] = isNaN(e) ? t : e;
37
- } else
38
- ($(t) || Array.isArray(t)) && S(t);
36
+ } else ($(t) || Array.isArray(t)) && S(t);
39
37
  });
40
38
  }
41
39
  function $(r) {
@@ -67,8 +65,7 @@ function x(r, i, n, t, e) {
67
65
  if (s = "", p = "", typeof n == "number")
68
66
  for (l = 0; l < n; l += 1)
69
67
  p += " ";
70
- else
71
- typeof n == "string" && (p = n);
68
+ else typeof n == "string" && (p = n);
72
69
  return h = i, b("", { "": r }, t, e);
73
70
  }
74
71
  function b(r, i, n, t) {
@@ -144,8 +144,7 @@ const u = (e) => {
144
144
  s[r] = O(s[r], t), s[o] && _(s[o], n, t);
145
145
  }), e;
146
146
  }, Z = (e, n, t) => {
147
- if (l(e))
148
- return n;
147
+ if (l(e)) return n;
149
148
  const r = n instanceof Array, o = r ? n : [n];
150
149
  t = t || f;
151
150
  const s = [];
@@ -252,8 +252,7 @@ var P = function() {
252
252
  if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (h == null && (h = n()), c = i[a] && i[a][h]), typeof c == "undefined" || !c.length || !c[0]) {
253
253
  if (!_) {
254
254
  E = [];
255
- for (k in i[a])
256
- this.terminals_[k] && k > 2 && E.push("'" + this.terminals_[k] + "'");
255
+ for (k in i[a]) this.terminals_[k] && k > 2 && E.push("'" + this.terminals_[k] + "'");
257
256
  var x = "";
258
257
  this.lexer.showPosition ? x = "Parse error on line " + (d + 1) + `:
259
258
  ` + this.lexer.showPosition() + `
@@ -266,19 +265,16 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
266
265
  });
267
266
  }
268
267
  if (_ == 3) {
269
- if (h == J)
270
- throw new Error(x || "Parsing halted.");
268
+ if (h == J) throw new Error(x || "Parsing halted.");
271
269
  N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, h = n();
272
270
  }
273
271
  for (; !($.toString() in i[a]); ) {
274
- if (a == 0)
275
- throw new Error(x || "Parsing halted.");
272
+ if (a == 0) throw new Error(x || "Parsing halted.");
276
273
  t(1), a = s[s.length - 1];
277
274
  }
278
275
  S = h, h = $, a = s[s.length - 1], c = i[a] && i[a][$], _ = 3;
279
276
  }
280
- if (c[0] instanceof Array && c.length > 1)
281
- throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + h);
277
+ if (c[0] instanceof Array && c.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + h);
282
278
  switch (c[0]) {
283
279
  case 1:
284
280
  s.push(h), e.push(this.lexer.yytext), o.push(this.lexer.yylloc), s.push(c[1]), h = null, S ? (h = S, S = null) : (N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, _ > 0 && _--);
@@ -289,8 +285,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
289
285
  last_line: o[o.length - 1].last_line,
290
286
  first_column: o[o.length - (f || 1)].first_column,
291
287
  last_column: o[o.length - 1].last_column
292
- }, w = this.performAction.call(g, v, N, d, this.yy, c[1], e, o), typeof w != "undefined")
293
- return w;
288
+ }, w = this.performAction.call(g, v, N, d, this.yy, c[1], e, o), typeof w != "undefined") return w;
294
289
  f && (s = s.slice(0, -1 * f * 2), e = e.slice(0, -1 * f), o = o.slice(0, -1 * f)), s.push(this.productions_[c[1]][0]), e.push(g.$), o.push(g._$), A = i[s[s.length - 2]][s[s.length - 1]], s.push(A);
295
290
  break;
296
291
  case 3:
@@ -303,8 +298,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
303
298
  var u = {
304
299
  EOF: 1,
305
300
  parseError: function(t, n) {
306
- if (!this.yy.parseError)
307
- throw new Error(t);
301
+ if (!this.yy.parseError) throw new Error(t);
308
302
  this.yy.parseError(t, n);
309
303
  },
310
304
  setInput: function(t) {
@@ -339,8 +333,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
339
333
  ` + n + "^";
340
334
  },
341
335
  next: function() {
342
- if (this.done)
343
- return this.EOF;
336
+ if (this.done) return this.EOF;
344
337
  this._input || (this.done = !0);
345
338
  var t, n, p, s, e;
346
339
  this._more || (this.yytext = "", this.match = "");
@@ -353,8 +346,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
353
346
  first_column: this.yylloc.last_column,
354
347
  last_column: e ? e[e.length - 1].length - 1 : this.yylloc.last_column + n[0].length
355
348
  }, this.yytext += n[0], this.match += n[0], this.yyleng = this.yytext.length, this._more = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], t = this.performAction.call(this, this.yy, this, o[s], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), t || void 0;
356
- if (this._input === "")
357
- return this.EOF;
349
+ if (this._input === "") return this.EOF;
358
350
  this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
359
351
  ` + this.showPosition(), {
360
352
  text: "",
@@ -0,0 +1,49 @@
1
+ import { n as e } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const o = {
3
+ name: "DataCardText",
4
+ props: {
5
+ option: {
6
+ type: Object,
7
+ default: () => {
8
+ }
9
+ }
10
+ },
11
+ computed: {
12
+ icon() {
13
+ return this.option.icon;
14
+ },
15
+ color() {
16
+ return this.option.color || "#333";
17
+ },
18
+ span() {
19
+ return this.option.span || 8;
20
+ },
21
+ data() {
22
+ return this.option.data || [];
23
+ }
24
+ },
25
+ methods: {
26
+ itemClick(s) {
27
+ s.click && s.click(s), this.$router.push(s.path);
28
+ }
29
+ }
30
+ };
31
+ var c = function() {
32
+ var t = this, n = t._self._c;
33
+ return n("div", { staticClass: "data-card-text" }, [n("ElRow", { attrs: { span: 24 } }, t._l(t.data, function(a, r) {
34
+ return n("ElCol", { key: r, attrs: { md: t.span, xs: 24, sm: 12 } }, [n("div", { staticClass: "item" }, [n("a", { attrs: { href: a.path ? "javascript:;" : a.href, target: a.path ? "" : a.target }, on: { click: function(p) {
35
+ return t.itemClick(a);
36
+ } } }, [n("div", { staticClass: "item-header" }, [t._v(" " + t._s(a.title) + " ")]), a.content ? n("div", { staticClass: "item-content" }, [t._v(t._s(a.content))]) : t._e(), a.name || a.date ? n("div", { staticClass: "item-footer" }, [n("span", [t._v(t._s(a.name))]), n("span", [t._v(t._s(a.date))])]) : t._e()])])]);
37
+ }), 1)], 1);
38
+ }, i = [], l = /* @__PURE__ */ e(
39
+ o,
40
+ c,
41
+ i,
42
+ !1,
43
+ null,
44
+ null
45
+ );
46
+ const d = l.exports;
47
+ export {
48
+ d as default
49
+ };
@@ -0,0 +1 @@
1
+ .data-card-text .item{background:#f8f8f8;border-radius:6px;margin:10px 20px;padding:20px 25px;box-shadow:2px 2px 20px #ccc}.data-card-text .item-header{color:#000;font-weight:700}.data-card-text .item-content{color:#333;margin-top:8px;font-size:14px;line-height:22px}.data-card-text .item-footer{color:#999;justify-content:space-between;margin-top:20px;font-size:12px;display:flex}.data-card-text .item a{text-decoration:none}.data-card-text .item a:visited{color:inherit}
@@ -11,7 +11,7 @@ var l = (t, e, o) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writab
11
11
  return t;
12
12
  }, r = (t, e) => d(t, m(e));
13
13
  import { isEmpty as b } from "@web-utils/core";
14
- import { d as f } from "../chunks/util.B_LEdJSZ.mjs";
14
+ import { d as f } from "../chunks/util.BaRFvfAi.mjs";
15
15
  import h from "vue";
16
16
  import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
17
  const i = {
package/flow/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as l, r } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as l, r } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const c = {
4
4
  name: "Flow",
@@ -1498,8 +1498,7 @@ const ye = {
1498
1498
  saveListenerConfig() {
1499
1499
  return c(this, null, function* () {
1500
1500
  var t, i, s, a;
1501
- if (!(yield this.$refs.listenerFormRef.validate()))
1502
- return;
1501
+ if (!(yield this.$refs.listenerFormRef.validate())) return;
1503
1502
  const e = de(this.bpmnInstances, this.listenerForm, !1, this.prefix);
1504
1503
  this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:ExecutionListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
1505
1504
  });
@@ -1987,8 +1986,7 @@ const dn = un.exports, fn = {
1987
1986
  saveListenerConfig() {
1988
1987
  return c(this, null, function* () {
1989
1988
  var t, i, s, a;
1990
- if (!(yield this.$refs.listenerFormRef.validate()))
1991
- return;
1989
+ if (!(yield this.$refs.listenerFormRef.validate())) return;
1992
1990
  const e = de(this.bpmnInstances, this.listenerForm, !0, this.prefix);
1993
1991
  this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:TaskListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
1994
1992
  });
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as o } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const n = {
4
4
  name: "FlowNode",
@@ -1,5 +1,5 @@
1
- import { p as a, e as l } from "../chunks/event.m1ZDHbkO.mjs";
2
- import { i as o } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { p as a, e as l } from "../chunks/event.mRPNW7Cx.mjs";
2
+ import { i as o } from "../chunks/util.BaRFvfAi.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const p = {
5
5
  name: "FyArray",
@@ -1,4 +1,4 @@
1
- import { p as c, e as p } from "../chunks/event.m1ZDHbkO.mjs";
1
+ import { p as c, e as p } from "../chunks/event.mRPNW7Cx.mjs";
2
2
  import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const u = {
4
4
  name: "FyCascader",
@@ -1,4 +1,4 @@
1
- import { p as s, e as c } from "../chunks/event.m1ZDHbkO.mjs";
1
+ import { p as s, e as c } from "../chunks/event.mRPNW7Cx.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const h = {
4
4
  name: "FyCheckbox",
@@ -33,8 +33,7 @@ const h = {
33
33
  },
34
34
  handleCheckChange() {
35
35
  const a = this.text;
36
- if (!this.all)
37
- return;
36
+ if (!this.all) return;
38
37
  const e = a.length, t = this.dic.length;
39
38
  this.checkAll = e === t, this.isIndeterminate = e > 0 && e < t;
40
39
  }
package/fy-code/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import o from "element-ui/lib/scrollbar";
2
- import { s as n } from "../chunks/util.B_LEdJSZ.mjs";
2
+ import { s as n } from "../chunks/util.BaRFvfAi.mjs";
3
3
  import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const s = {
5
5
  name: "FyCode",
package/fy-curd/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { p as $ } from "../chunks/packages.CWPkeLu9.mjs";
2
2
  import { p as x } from "../chunks/permission.CO31YIkD.mjs";
3
- import { i as O } from "../chunks/init.DBM2D2IY.mjs";
4
- import { g as F, c as k, t as I, f as E } from "../chunks/dataformat.skVZSF57.mjs";
5
- import { o as h, j as C, d as a, u as B, i as P, a as b, k as D, l as T, s as z } from "../chunks/util.B_LEdJSZ.mjs";
3
+ import { i as O } from "../chunks/init.CauLYxJq.mjs";
4
+ import { g as F, c as k, t as I, f as E } from "../chunks/dataformat.ARPY2U57.mjs";
5
+ import { o as h, j as C, d as a, u as B, i as P, a as b, k as D, l as T, s as z } from "../chunks/util.BaRFvfAi.mjs";
6
6
  import { isBlank as c } from "@web-utils/core";
7
7
  import { s as M } from "../chunks/slot.DXIbhGat.mjs";
8
8
  import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- import { F as L, d as w } from "../chunks/FormTemp.Cf9d5N_a.mjs";
10
- import { s as V } from "../chunks/dic.28d_-7EJ.mjs";
9
+ import { F as L, d as w } from "../chunks/FormTemp.CJOJOy8K.mjs";
10
+ import { s as V } from "../chunks/dic.DBmh9yzU.mjs";
11
11
  import R from "../icon-temp/index.mjs";
12
12
  import "../icon-temp/style.css";
13
13
  const p = {
@@ -114,8 +114,7 @@ const p = {
114
114
  const g = "search";
115
115
  if (u !== "searchProp" && u.includes(g)) {
116
116
  let d = u.replace(g, "");
117
- if (d.length === 0)
118
- return;
117
+ if (d.length === 0) return;
119
118
  d = d.replace(d[0], d[0].toLowerCase()), m[d] = l[u];
120
119
  }
121
120
  }), l = Object.assign(l, m, {
@@ -541,8 +540,7 @@ const re = ne.exports, se = {
541
540
  },
542
541
  // 表格筛选字典
543
542
  handleFilters(t, e) {
544
- if (e !== !0)
545
- return;
543
+ if (e !== !0) return;
546
544
  const i = this.crud.DIC[t.prop] || [], n = [];
547
545
  return c(i) ? this.crud.cellForm.list.forEach((r) => {
548
546
  n.map((s) => s.text).includes(r[t.prop]) || n.push({
@@ -559,10 +557,8 @@ const re = ne.exports, se = {
559
557
  },
560
558
  getColumnProp(t, e) {
561
559
  const i = this.crud.objectOption[t.prop] || {};
562
- if (e === "filterMethod")
563
- return i == null ? void 0 : i.filters;
564
- if (this.crud.isMobile && ["fixed"].includes(e))
565
- return !1;
560
+ if (e === "filterMethod") return i == null ? void 0 : i.filters;
561
+ if (this.crud.isMobile && ["fixed"].includes(e)) return !1;
566
562
  const n = i == null ? void 0 : i[e];
567
563
  if (!(e === "width" && n === 0))
568
564
  return e === "filters" ? this.handleFilters(t, n) : e === "hide" ? (i == null ? void 0 : i.hide) !== !0 : n;
@@ -1166,8 +1162,7 @@ const Te = De.exports, ze = {
1166
1162
  },
1167
1163
  getColumn() {
1168
1164
  const t = a(this.columnOption), e = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
1169
- if (!this.form.params)
1170
- return [];
1165
+ if (!this.form.params) return [];
1171
1166
  if (this.form.params.includes("headers")) {
1172
1167
  const i = (n = []) => {
1173
1168
  n.forEach((r, s) => {
@@ -1541,8 +1536,7 @@ const We = je.exports, Ke = {
1541
1536
  getTableHeight() {
1542
1537
  this.isAutoHeight ? this.$nextTick(() => {
1543
1538
  const t = this.$refs.table, e = this.$refs.tablePage;
1544
- if (!t)
1545
- return;
1539
+ if (!t) return;
1546
1540
  const i = t.$el, n = e.$el.offsetHeight || 20;
1547
1541
  this.tableHeight = document.documentElement.clientHeight - i.offsetTop - n - this.calcHeight;
1548
1542
  }) : this.tableHeight = this.tableOption.height;
@@ -1727,8 +1721,7 @@ const We = je.exports, Ke = {
1727
1721
  for (const i of this.$refs.cellForm.fields)
1728
1722
  if (i.prop.split(".")[1] === `${t}` && this.$refs.cellForm.validateField(i.prop, (n) => {
1729
1723
  n && (e = !1);
1730
- }), !e)
1731
- break;
1724
+ }), !e) break;
1732
1725
  return e;
1733
1726
  },
1734
1727
  rowAdd() {
@@ -1770,8 +1763,7 @@ const We = je.exports, Ke = {
1770
1763
  },
1771
1764
  // 合并行
1772
1765
  tableSpanMethod(t) {
1773
- if (typeof this.spanMethod == "function")
1774
- return this.spanMethod(t);
1766
+ if (typeof this.spanMethod == "function") return this.spanMethod(t);
1775
1767
  },
1776
1768
  // 合集统计逻辑
1777
1769
  tableSummaryMethod(t) {
package/fy-date/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as l, e as r } from "../chunks/event.m1ZDHbkO.mjs";
1
+ import { p as l, e as r } from "../chunks/event.mRPNW7Cx.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  name: "FyDate",
@@ -1,4 +1,4 @@
1
- import { s as l, w as a } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as l, w as a } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const v = {
4
4
  name: "FyDraggable",
@@ -203,8 +203,7 @@ const v = {
203
203
  this.active = t;
204
204
  },
205
205
  rangeMove(t, e) {
206
- if (this.disabled || this.lock)
207
- return;
206
+ if (this.disabled || this.lock) return;
208
207
  let s, i, h, n, o, d;
209
208
  this.rangeActive = !0, this.handleMouseDown();
210
209
  let c = t.clientX, f = t.clientY;
@@ -240,8 +239,7 @@ const v = {
240
239
  }));
241
240
  },
242
241
  handleMove(t) {
243
- if (this.disabled || this.lock)
244
- return;
242
+ if (this.disabled || this.lock) return;
245
243
  setTimeout(() => {
246
244
  this.$refs.input.focus();
247
245
  }), this.active = !0, this.handleMouseDown();
@@ -1,5 +1,5 @@
1
- import { p as d, e as u } from "../chunks/event.m1ZDHbkO.mjs";
2
- import { o, d as l } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { p as d, e as u } from "../chunks/event.mRPNW7Cx.mjs";
2
+ import { o, d as l } from "../chunks/util.BaRFvfAi.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const h = {
5
5
  name: "FyDynamic",
@@ -1,4 +1,4 @@
1
- import { s as g } from "../chunks/util.B_LEdJSZ.mjs";
1
+ import { s as g } from "../chunks/util.BaRFvfAi.mjs";
2
2
  import { n as A } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const N = {
4
4
  name: "FyEmpty",
package/fy-form/index.mjs CHANGED
@@ -14,17 +14,16 @@ var D = (i, e, 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(i, e)).next());
16
16
  });
17
- import { F as P, d as z } from "../chunks/FormTemp.Cf9d5N_a.mjs";
18
- import { i as B } from "../chunks/init.DBM2D2IY.mjs";
19
- import { s as v, d as x, u as j, x as I, p as L, j as S, a as V, o as M, y as A } from "../chunks/util.B_LEdJSZ.mjs";
20
- import { d as W, c as R, a as G, b as H, f as U } from "../chunks/dataformat.skVZSF57.mjs";
21
- import { s as q } from "../chunks/dic.28d_-7EJ.mjs";
17
+ import { F as P, d as z } from "../chunks/FormTemp.CJOJOy8K.mjs";
18
+ import { i as B } from "../chunks/init.CauLYxJq.mjs";
19
+ import { s as v, d as x, u as j, x as I, p as L, j as S, a as V, o as M, y as A } from "../chunks/util.BaRFvfAi.mjs";
20
+ import { d as W, c as R, a as G, b as H, f as U } from "../chunks/dataformat.ARPY2U57.mjs";
21
+ import { s as q } from "../chunks/dic.DBmh9yzU.mjs";
22
22
  import { p as K } from "../chunks/packages.CWPkeLu9.mjs";
23
23
  import { isBlank as u } from "@web-utils/core";
24
24
  import { n as $ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
25
25
  const J = (i, e, r, s) => {
26
- if (!s)
27
- return;
26
+ if (!s) return;
28
27
  if (!window.Mock) {
29
28
  K.logs("mock");
30
29
  return;
@@ -99,8 +98,7 @@ const J = (i, e, r, s) => {
99
98
  l[n.prop] = w(f);
100
99
  break;
101
100
  }
102
- } else
103
- n.mock instanceof Function && (l[n.prop] = n.mock(r));
101
+ } else n.mock instanceof Function && (l[n.prop] = n.mock(r));
104
102
  });
105
103
  }
106
104
  return T(), l;
@@ -445,8 +443,7 @@ const ae = se.exports, oe = {
445
443
  setLabel() {
446
444
  this.tableOption.filterNull === !0 && (this.form = S(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = S(this.form, ["$"], !1) : this.propOption.forEach((i) => {
447
445
  const e = this.DIC[i.prop];
448
- if (u(e))
449
- return;
446
+ if (u(e)) return;
450
447
  const r = z(this.form, i, this.tableOption, e);
451
448
  r ? this.$set(this.form, `$${i.prop}`, r) : this.$delete(this.form, `$${i.prop}`);
452
449
  });
@@ -508,8 +505,7 @@ const ae = se.exports, oe = {
508
505
  },
509
506
  vaildDetail(i) {
510
507
  let e;
511
- if (this.detail)
512
- return !1;
508
+ if (this.detail) return !1;
513
509
  if (!u(i.detail))
514
510
  e = "detail";
515
511
  else if (this.isAdd)
@@ -523,8 +519,7 @@ const ae = se.exports, oe = {
523
519
  // 验证表单是否禁止
524
520
  vaildDisabled(i) {
525
521
  let e;
526
- if (this.disabled)
527
- return !0;
522
+ if (this.disabled) return !0;
528
523
  if (!u(i.disabled))
529
524
  e = "disabled";
530
525
  else if (this.isAdd)