@web-utils/component 4.0.6 → 4.0.8

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 (84) hide show
  1. package/chat/index.mjs +3 -2
  2. package/chunks/configComponents.CpKi15WN.mjs +49 -0
  3. package/chunks/{dictionary.D9gKwItv.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
  4. package/chunks/index.BmYCjxZQ.mjs +47 -0
  5. package/confirm-button/index.mjs +14 -9
  6. package/confirmable/index.mjs +13 -8
  7. package/data-table-picker/index.mjs +10 -8
  8. package/editable-tree/index.mjs +3 -2
  9. package/element-dialog/index.mjs +3 -2
  10. package/flex-column/index.mjs +6 -5
  11. package/flex-item/index.mjs +6 -5
  12. package/flex-row/index.mjs +3 -2
  13. package/flow/index.mjs +3 -2
  14. package/flow-node/index.mjs +4 -3
  15. package/form-cascader/index.mjs +17 -13
  16. package/form-checkbox/index.mjs +12 -7
  17. package/form-checkbox-group/index.mjs +14 -9
  18. package/form-date-picker/index.mjs +10 -5
  19. package/form-holder/index.mjs +5 -4
  20. package/form-input/index.mjs +11 -6
  21. package/form-input-cron-expression/index.mjs +13 -8
  22. package/form-input-email/index.mjs +17 -12
  23. package/form-input-id-card/index.mjs +19 -15
  24. package/form-input-number/index.mjs +23 -16
  25. package/form-input-phone-number/index.mjs +12 -8
  26. package/form-input-tag/index.mjs +12 -7
  27. package/form-input-time/index.mjs +7 -2
  28. package/form-item/index.mjs +6 -2
  29. package/form-radio-group/index.mjs +12 -7
  30. package/form-select/index.mjs +6 -2
  31. package/form-switch/index.mjs +12 -7
  32. package/form-table/index.mjs +28 -22
  33. package/form-table-plus/index.mjs +14 -10
  34. package/form-textarea/index.mjs +11 -6
  35. package/form-tree-select/index.mjs +17 -9
  36. package/form-tree-select-multiple/index.mjs +19 -11
  37. package/fy-array/index.mjs +5 -2
  38. package/fy-cascader/index.mjs +17 -13
  39. package/fy-checkbox/index.mjs +23 -19
  40. package/fy-code/index.mjs +10 -9
  41. package/fy-curd/index.mjs +4 -2
  42. package/fy-date/index.mjs +9 -5
  43. package/fy-draggable/index.mjs +3 -2
  44. package/fy-dynamic/index.mjs +14 -11
  45. package/fy-empty/index.mjs +4 -3
  46. package/fy-form/index.mjs +5 -2
  47. package/fy-input/index.mjs +14 -10
  48. package/fy-input-color/index.mjs +15 -11
  49. package/fy-input-icon/index.mjs +8 -4
  50. package/fy-input-map/index.mjs +8 -5
  51. package/fy-input-number/index.mjs +16 -12
  52. package/fy-input-table/index.mjs +5 -2
  53. package/fy-input-tree/index.mjs +5 -2
  54. package/fy-radio/index.mjs +13 -9
  55. package/fy-rate/index.mjs +11 -7
  56. package/fy-select/index.mjs +4 -2
  57. package/fy-slider/index.mjs +10 -7
  58. package/fy-switch/index.mjs +9 -5
  59. package/fy-time/index.mjs +6 -3
  60. package/fy-title/index.mjs +16 -12
  61. package/fy-u-editor/index.mjs +3 -2
  62. package/fy-upload/index.mjs +4 -2
  63. package/image-cropper/index.mjs +3 -2
  64. package/index.mjs +682 -743
  65. package/license/index.mjs +3 -2
  66. package/package.json +1 -1
  67. package/pageable-table/index.mjs +6 -3
  68. package/pageable-view/index.mjs +7 -6
  69. package/photo-swipe/index.mjs +15 -56
  70. package/picker-table-view/index.mjs +24 -23
  71. package/record-video/index.mjs +11 -10
  72. package/resize-observer/index.mjs +3 -2
  73. package/search/index.mjs +4 -2
  74. package/sign/index.mjs +3 -2
  75. package/table-column/index.mjs +6 -3
  76. package/table-view/index.mjs +18 -17
  77. package/tabs-view/index.mjs +1 -1
  78. package/text-ellipsis/index.mjs +3 -2
  79. package/toolbar/index.mjs +4 -3
  80. package/toolbar-button/index.mjs +4 -3
  81. package/verify/index.mjs +8 -7
  82. package/watermark/index.mjs +15 -14
  83. package/web-types.json +1 -1
  84. package/chunks/configComponents.BHkQi547.mjs +0 -45
package/chat/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { formatDate as r } from "@web-utils/integrations/dayjs";
2
2
  import { s as l } from "../chunks/util.DqFv_pWg.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ import "@web-utils/core";
4
5
  const d = {
5
6
  name: "Chat",
6
7
  props: {
@@ -260,7 +261,7 @@ var u = function() {
260
261
  null,
261
262
  null
262
263
  );
263
- const y = m.exports;
264
+ const b = m.exports;
264
265
  export {
265
- y as default
266
+ b as default
266
267
  };
@@ -0,0 +1,49 @@
1
+ import { isObject as i, isString as c } from "@web-utils/core";
2
+ import { merge as a } from "@web-utils/integrations/lodash";
3
+ const r = {
4
+ privilege: {
5
+ processButtons(e) {
6
+ return e.map((t) => {
7
+ if (i(t)) {
8
+ const o = t, s = {};
9
+ for (const n in o)
10
+ c(o[n]) && (s[n] = p(o[n]) ?? !0);
11
+ return s;
12
+ }
13
+ return t;
14
+ });
15
+ },
16
+ hasAuthority(e) {
17
+ return !0;
18
+ }
19
+ }
20
+ }, l = (e) => {
21
+ var t, o;
22
+ return (o = (t = r.privilege) == null ? void 0 : t.processButtons) == null ? void 0 : o.call(t, e);
23
+ }, p = (e) => {
24
+ var t, o;
25
+ return (o = (t = r.privilege) == null ? void 0 : t.hasAuthority) == null ? void 0 : o.call(t, e);
26
+ }, m = (e) => {
27
+ var t, o;
28
+ return (o = (t = r.toolbar) == null ? void 0 : t.goBack) == null ? void 0 : o.call(t, e);
29
+ }, b = () => {
30
+ var e, t;
31
+ return (t = (e = r.tableView) == null ? void 0 : e.reload) == null ? void 0 : t.call(e);
32
+ }, y = (e, t) => {
33
+ var o, s;
34
+ return (s = (o = r.dict) == null ? void 0 : o.getDictTreeByType) == null ? void 0 : s.call(o, e, t);
35
+ }, f = (e) => {
36
+ var t, o;
37
+ return (o = (t = r.dict) == null ? void 0 : t.remote) == null ? void 0 : o.call(t, e);
38
+ }, h = (e) => {
39
+ a(r, e);
40
+ };
41
+ export {
42
+ b as a,
43
+ m as b,
44
+ h as c,
45
+ y as g,
46
+ p as h,
47
+ l as p,
48
+ f as r
49
+ };
@@ -1,5 +1,5 @@
1
1
  import { t as D, a as l } from "./core.DJEgjQW6.mjs";
2
- import { g as d, r as w } from "./configComponents.BHkQi547.mjs";
2
+ import { g as d, r as w } from "./configComponents.CpKi15WN.mjs";
3
3
  const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
4
4
  let e = t;
5
5
  o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
@@ -0,0 +1,47 @@
1
+ import s from "photoswipe";
2
+ import "photoswipe/dist/photoswipe.css";
3
+ function d(h) {
4
+ new s(h).init();
5
+ }
6
+ async function b(h, n, r = { selector: "chat-image" }) {
7
+ const a = h.target;
8
+ if (!(!a || a.classList.contains(r.selector) || a.tagName === "IMG"))
9
+ return;
10
+ const t = n.querySelectorAll(r.selector === "img" ? r.selector : `.${r.selector}`), i = [...t].findIndex((o) => o === a);
11
+ i >= 0 && (r.index = i);
12
+ const e = await u(t);
13
+ await d({ dataSource: e, index: i });
14
+ }
15
+ async function u(h) {
16
+ const n = [];
17
+ for (let r = 0, a = h.length; r < a; r++) {
18
+ const t = h[r], i = t.getAttribute("data-src") || t.getAttribute("src"), e = {
19
+ src: i,
20
+ msrc: i,
21
+ alt: t.getAttribute("data-title") || t.getAttribute("alt"),
22
+ element: t
23
+ }, o = t.getAttribute("data-height"), g = t.getAttribute("data-width");
24
+ let c = { width: g, height: o };
25
+ !o && !g && (c = await w(t), t.setAttribute("data-height", c.height), t.setAttribute("data-width", c.width)), e.w = c.width, e.width = c.width, e.h = c.height, e.height = c.height, n.push(e);
26
+ }
27
+ return n;
28
+ }
29
+ function w(h) {
30
+ const n = h.getAttribute("data-src") || h.getAttribute("src"), r = h.getAttribute("data-height"), a = h.getAttribute("data-width");
31
+ return r && a ? { width: a, height: r } : h.complete ? {
32
+ width: h.naturalWidth,
33
+ height: h.naturalHeight
34
+ } : new Promise((t) => {
35
+ const i = new Image();
36
+ i.src = n;
37
+ const e = {};
38
+ i.complete ? (e.width = i.width, e.height = i.height, t(e)) : (i.onload = () => {
39
+ e.width = i.width, e.height = i.height, t(e);
40
+ }, i.onerror = () => {
41
+ e.width = 0, e.height = 0, t(e);
42
+ });
43
+ });
44
+ }
45
+ export {
46
+ b as p
47
+ };
@@ -1,5 +1,10 @@
1
- import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
- import { n as t } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
1
+ import { c as t } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "element-ui/lib/loading";
4
+ import "element-ui/lib/message-box";
5
+ import "@web-utils/core";
6
+ import "../chunks/index.B2TRddqf.mjs";
7
+ import "async-validator";
3
8
  const o = {
4
9
  props: {
5
10
  type: {
@@ -31,17 +36,17 @@ const o = {
31
36
  }
32
37
  }, e = {
33
38
  name: "ConfirmButton",
34
- mixins: [n, o]
35
- }, a = null, l = null;
36
- var i = /* @__PURE__ */ t(
39
+ mixins: [t, o]
40
+ }, i = null, r = null;
41
+ var a = /* @__PURE__ */ n(
37
42
  e,
38
- a,
39
- l,
43
+ i,
44
+ r,
40
45
  !1,
41
46
  null,
42
47
  null
43
48
  );
44
- const p = i.exports;
49
+ const d = a.exports;
45
50
  export {
46
- p as default
51
+ d as default
47
52
  };
@@ -1,18 +1,23 @@
1
1
  import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const e = {
3
+ import "element-ui/lib/loading";
4
+ import "element-ui/lib/message-box";
5
+ import "@web-utils/core";
6
+ import "../chunks/index.B2TRddqf.mjs";
7
+ import "async-validator";
8
+ const r = {
4
9
  name: "Confirmable",
5
10
  mixins: [n]
6
- }, s = null, l = null;
7
- var r = /* @__PURE__ */ o(
8
- e,
9
- s,
10
- l,
11
+ }, m = null, t = null;
12
+ var i = /* @__PURE__ */ o(
13
+ r,
14
+ m,
15
+ t,
11
16
  !1,
12
17
  null,
13
18
  null
14
19
  );
15
- const t = r.exports;
20
+ const _ = i.exports;
16
21
  export {
17
- t as default
22
+ _ as default
18
23
  };
@@ -1,5 +1,7 @@
1
- import { f as i } from "../chunks/index.B2TRddqf.mjs";
1
+ import { f as l } from "../chunks/index.B2TRddqf.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
4
+ import "async-validator";
3
5
  const o = {
4
6
  name: "DataTablePicker",
5
7
  props: {
@@ -32,7 +34,7 @@ const o = {
32
34
  };
33
35
  },
34
36
  methods: {
35
- filterTableColumnProperties: i,
37
+ filterTableColumnProperties: l,
36
38
  selectionChange(t) {
37
39
  this.selectedRows = t;
38
40
  },
@@ -52,11 +54,11 @@ const o = {
52
54
  }
53
55
  };
54
56
  var r = function() {
55
- var e = this, l = e._self._c;
56
- return l("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
57
- return [e._t("search-form"), l("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
57
+ var e = this, i = e._self._c;
58
+ return i("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
59
+ return [e._t("search-form"), i("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
58
60
  }, proxy: !0 }, { key: "footer", fn: function() {
59
- return [l("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), l("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
61
+ return [i("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), i("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
60
62
  }, proxy: !0 }], null, !0) });
61
63
  }, s = [], a = /* @__PURE__ */ n(
62
64
  o,
@@ -66,7 +68,7 @@ var r = function() {
66
68
  null,
67
69
  null
68
70
  );
69
- const h = a.exports;
71
+ const f = a.exports;
70
72
  export {
71
- h as default
73
+ f as default
72
74
  };
@@ -4,6 +4,7 @@ import { cloneDeep as f } from "@web-utils/integrations/lodash";
4
4
  import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
5
5
  import b from "vue";
6
6
  import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ import "async-validator";
7
8
  function c(t, e) {
8
9
  for (const i in e)
9
10
  b.set(t, i, e[i]);
@@ -475,7 +476,7 @@ var _ = function() {
475
476
  null,
476
477
  null
477
478
  );
478
- const z = K.exports;
479
+ const S = K.exports;
479
480
  export {
480
- z as default
481
+ S as default
481
482
  };
@@ -3,6 +3,7 @@ import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
3
3
  import { getComputedHeight as r, isDef as n } from "@web-utils/core";
4
4
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  import { g as d } from "../chunks/index.B2TRddqf.mjs";
6
+ import "async-validator";
6
7
  const p = {
7
8
  name: "EmulateForm",
8
9
  provide() {
@@ -300,7 +301,7 @@ var y = function() {
300
301
  null,
301
302
  null
302
303
  );
303
- const x = v.exports;
304
+ const B = v.exports;
304
305
  export {
305
- x as default
306
+ B as default
306
307
  };
@@ -1,5 +1,6 @@
1
1
  import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const s = {
4
5
  name: "FlexColumn",
5
6
  functional: !0,
@@ -33,9 +34,9 @@ const s = {
33
34
  default: !1
34
35
  }
35
36
  },
36
- render(l, { data: t, children: r, props: e }) {
37
- const n = o(t.class, "flex-column");
38
- return e.center || e.horizonCenter && e.verticalCenter ? (n.push("horizon-center"), n.push("vertical-center")) : (e.horizonCenter && n.push("horizon-center"), e.verticalCenter && n.push("vertical-center")), e.textCenter && n.push("text-center"), l("div", { ...t, class: n }, r);
37
+ render(l, { data: n, children: r, props: e }) {
38
+ const t = o(n.class, "flex-column");
39
+ return e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), l("div", { ...n, class: t }, r);
39
40
  }
40
41
  }, c = null, i = null;
41
42
  var f = /* @__PURE__ */ a(
@@ -46,7 +47,7 @@ var f = /* @__PURE__ */ a(
46
47
  null,
47
48
  null
48
49
  );
49
- const m = f.exports;
50
+ const h = f.exports;
50
51
  export {
51
- m as default
52
+ h as default
52
53
  };
@@ -1,5 +1,6 @@
1
1
  import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const s = {
4
5
  name: "FlexItem",
5
6
  functional: !0,
@@ -37,10 +38,10 @@ const s = {
37
38
  default: !1
38
39
  }
39
40
  },
40
- render(t, { children: a, data: n, props: e }) {
41
- const l = o(n.class, e.relative ? "flex-item-relative" : "flex-item");
42
- return e.absolute && !e.relative && l.push("flex-item-relative"), e.center || e.horizonCenter && e.verticalCenter ? (l.push("horizon-center"), l.push("vertical-center")) : (e.horizonCenter && l.push("horizon-center"), e.verticalCenter && l.push("vertical-center")), e.textCenter && l.push("text-center"), e.flexColumn && l.push("flex-column"), e.flexRow && l.push("flex-row"), e.absolute ? t("div", { ...n, class: l }, [
43
- t(
41
+ render(l, { children: a, data: n, props: e }) {
42
+ const t = o(n.class, e.relative ? "flex-item-relative" : "flex-item");
43
+ return e.absolute && !e.relative && t.push("flex-item-relative"), e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), e.flexColumn && t.push("flex-column"), e.flexRow && t.push("flex-row"), e.absolute ? l("div", { ...n, class: t }, [
44
+ l(
44
45
  "div",
45
46
  {
46
47
  class: "absolute",
@@ -48,7 +49,7 @@ const s = {
48
49
  },
49
50
  a
50
51
  )
51
- ]) : t("div", { ...n, class: l }, a);
52
+ ]) : l("div", { ...n, class: t }, a);
52
53
  }
53
54
  }, r = null, i = null;
54
55
  var u = /* @__PURE__ */ f(
@@ -1,5 +1,6 @@
1
1
  import { g as o } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const s = {
4
5
  name: "FlexRow",
5
6
  functional: !0,
@@ -34,7 +35,7 @@ var f = /* @__PURE__ */ a(
34
35
  null,
35
36
  null
36
37
  );
37
- const h = f.exports;
38
+ const m = f.exports;
38
39
  export {
39
- h as default
40
+ m as default
40
41
  };
package/flow/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { r, s as l } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const c = {
4
5
  name: "Flow",
5
6
  props: {
@@ -241,7 +242,7 @@ var u = function() {
241
242
  null,
242
243
  null
243
244
  );
244
- const f = d.exports;
245
+ const g = d.exports;
245
246
  export {
246
- f as default
247
+ g as default
247
248
  };
@@ -1,5 +1,6 @@
1
1
  import { s as o } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const n = {
4
5
  name: "FlowNode",
5
6
  props: {
@@ -47,13 +48,13 @@ const n = {
47
48
  }
48
49
  }
49
50
  };
50
- var d = function() {
51
+ var r = function() {
51
52
  var e = this, t = e._self._c;
52
53
  return t("div", { ref: "node", style: e.flowNodeContainer, attrs: { left: e.node.left, top: e.node.top, disabled: "", mask: !1 }, on: { mouseenter: e.showDelete, mouseleave: e.hideDelete, mouseup: e.changeNodeSite } }, [t("div", { class: ["avue-flow__node", { active: e.active === e.node.id }] }, [t("div", { staticClass: "avue-flow__node-header" }, [t("i", { staticClass: "el-icon-rank", class: e.b("node-drag") }), e._t("header", null, { node: e.node })], 2), t("div", { staticClass: "avue-flow__node-body" }, [e._t("default", null, { node: e.node })], 2)])]);
53
- }, r = [], a = /* @__PURE__ */ s(
54
+ }, d = [], a = /* @__PURE__ */ s(
54
55
  n,
55
- d,
56
56
  r,
57
+ d,
57
58
  !1,
58
59
  null,
59
60
  null
@@ -1,16 +1,20 @@
1
- import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import { f as o } from "../chunks/form-pick.BFTIVn_i.mjs";
3
- import i from "element-ui/lib/cascader";
1
+ import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
2
+ import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
3
+ import a from "element-ui/lib/cascader";
4
4
  import { c as n, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
5
- import { isArray as s, setParent as f, isString as c, findTreeChildren as d } from "@web-utils/core";
6
- import { cloneDeep as m } from "@web-utils/integrations/lodash";
5
+ import { isArray as s, setParent as m, isString as f, findTreeChildren as c } from "@web-utils/core";
6
+ import { cloneDeep as d } from "@web-utils/integrations/lodash";
7
7
  import { d as h } from "../chunks/dictionary.DqiP9x2m.mjs";
8
8
  import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- const v = n(i).filter(
9
+ import "../chunks/form-item.LWjePsPa.mjs";
10
+ import "element-ui/lib/col";
11
+ import "element-ui/lib/form-item";
12
+ import "async-validator";
13
+ const v = n(a).filter(
10
14
  (t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
11
15
  ), _ = {
12
16
  name: "FormCascader",
13
- mixins: [a, o, h],
17
+ mixins: [o, i, h],
14
18
  props: {
15
19
  value: [String, Number, Array],
16
20
  options: {
@@ -59,9 +63,9 @@ const v = n(i).filter(
59
63
  },
60
64
  inputVal() {
61
65
  if (this.join)
62
- return s(this.value) ? this.value : c(this.value) ? this.value.split(this.separator) : [];
66
+ return s(this.value) ? this.value : f(this.value) ? this.value.split(this.separator) : [];
63
67
  if (this.last) {
64
- let [t] = d(this.innerOptions, (r) => r[this.valueKey] === this.value);
68
+ let [t] = c(this.innerOptions, (r) => r[this.valueKey] === this.value);
65
69
  const e = [];
66
70
  for (; t; )
67
71
  e.push(t[this.valueKey]), t = t.parent;
@@ -73,8 +77,8 @@ const v = n(i).filter(
73
77
  if (this.dictType)
74
78
  return this.dictItems;
75
79
  if (this.options) {
76
- const t = m(this.options);
77
- return this.last && f(t), t;
80
+ const t = d(this.options);
81
+ return this.last && m(t), t;
78
82
  } else
79
83
  return [];
80
84
  }
@@ -109,7 +113,7 @@ var b = function() {
109
113
  null,
110
114
  null
111
115
  );
112
- const x = g.exports;
116
+ const V = g.exports;
113
117
  export {
114
- x as default
118
+ V as default
115
119
  };
@@ -2,7 +2,12 @@ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
2
2
  import l from "element-ui/lib/checkbox";
3
3
  import { c as n, v as s, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
4
4
  import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), d = {
5
+ import "../chunks/form-item.LWjePsPa.mjs";
6
+ import "element-ui/lib/col";
7
+ import "element-ui/lib/form-item";
8
+ import "@web-utils/core";
9
+ import "async-validator";
10
+ const m = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), c = {
6
11
  name: "FormCheckbox",
7
12
  mixins: [a],
8
13
  props: {
@@ -28,7 +33,7 @@ const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
28
33
  },
29
34
  computed: {
30
35
  inputProps() {
31
- return i({ ...u(this.$attrs), ...this.$props }, c);
36
+ return i({ ...u(this.$attrs), ...this.$props }, m);
32
37
  }
33
38
  },
34
39
  watch: {
@@ -42,7 +47,7 @@ const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
42
47
  }
43
48
  }
44
49
  };
45
- var f = function() {
50
+ var d = function() {
46
51
  var e = this, t = e._self._c;
47
52
  return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
48
53
  return [e._t("default", function() {
@@ -57,15 +62,15 @@ var f = function() {
57
62
  }, proxy: !0 }, { key: "tips", fn: function() {
58
63
  return [e._t("tips")];
59
64
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
60
- }, m = [], _ = /* @__PURE__ */ p(
65
+ }, f = [], _ = /* @__PURE__ */ p(
66
+ c,
61
67
  d,
62
68
  f,
63
- m,
64
69
  !1,
65
70
  null,
66
71
  null
67
72
  );
68
- const k = _.exports;
73
+ const S = _.exports;
69
74
  export {
70
- k as default
75
+ S as default
71
76
  };
@@ -1,12 +1,17 @@
1
- import { f as l } from "../chunks/form-input.CvFdwlEV.mjs";
2
- import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
1
+ import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
2
+ import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
3
3
  import { d as s } from "../chunks/dictionary.DqiP9x2m.mjs";
4
- import { c as n, d as a, n as u } from "../chunks/index.B2TRddqf.mjs";
5
- import p from "element-ui/lib/checkbox-group";
4
+ import { c as n, d as a, n as p } from "../chunks/index.B2TRddqf.mjs";
5
+ import u from "element-ui/lib/checkbox-group";
6
6
  import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- const c = n(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
7
+ import "../chunks/form-item.LWjePsPa.mjs";
8
+ import "element-ui/lib/col";
9
+ import "element-ui/lib/form-item";
10
+ import "@web-utils/core";
11
+ import "async-validator";
12
+ const c = n(u).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
8
13
  name: "FormCheckboxGroup",
9
- mixins: [l, i, s],
14
+ mixins: [i, l, s],
10
15
  props: {
11
16
  options: {
12
17
  type: Array,
@@ -50,7 +55,7 @@ const c = n(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
50
55
  return this.classic ? "value" : this.valueProp;
51
56
  },
52
57
  inputProps() {
53
- return a({ ...u(this.$attrs), ...this.$props }, c);
58
+ return a({ ...p(this.$attrs), ...this.$props }, c);
54
59
  },
55
60
  innerOptions() {
56
61
  return this.dictType ? this.dictItems : this.gender ? [
@@ -108,7 +113,7 @@ var f = function() {
108
113
  null,
109
114
  null
110
115
  );
111
- const P = b.exports;
116
+ const C = b.exports;
112
117
  export {
113
- P as default
118
+ C as default
114
119
  };
@@ -1,8 +1,13 @@
1
1
  import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
2
2
  import { f as s } from "../chunks/form-pick.BFTIVn_i.mjs";
3
3
  import { toDate as a } from "@web-utils/integrations/dayjs";
4
- import { d as l, n as o } from "../chunks/index.B2TRddqf.mjs";
4
+ import { d as o, n as l } from "../chunks/index.B2TRddqf.mjs";
5
5
  import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ import "../chunks/form-item.LWjePsPa.mjs";
7
+ import "element-ui/lib/col";
8
+ import "element-ui/lib/form-item";
9
+ import "@web-utils/core";
10
+ import "async-validator";
6
11
  const u = [
7
12
  "type",
8
13
  "timeArrowControl",
@@ -92,9 +97,9 @@ const u = [
92
97
  return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd";
93
98
  },
94
99
  inputProps() {
95
- return l(
100
+ return o(
96
101
  {
97
- ...o(this.$attrs),
102
+ ...l(this.$attrs),
98
103
  ...this.$props,
99
104
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
100
105
  format: this.format || this.fat,
@@ -137,7 +142,7 @@ var h = function() {
137
142
  null,
138
143
  null
139
144
  );
140
- const P = f.exports;
145
+ const b = f.exports;
141
146
  export {
142
- P as default
147
+ b as default
143
148
  };
@@ -1,6 +1,7 @@
1
1
  import { animate as o, warning as l } from "@web-utils/core";
2
2
  import { e as a } from "../chunks/index.B2TRddqf.mjs";
3
3
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ import "async-validator";
4
5
  const s = {
5
6
  name: "FormHolder",
6
7
  inject: {
@@ -95,15 +96,15 @@ const s = {
95
96
  var n = function() {
96
97
  var e = this, t = e._self._c;
97
98
  return t("ElForm", { ref: "form", class: ["clear-fix", { "red-form": e.tableForm }], attrs: { model: e.model, size: e.size, "show-message": e.showMessage, disabled: e.disabled, "label-width": e.tableForm ? "0px" : e.labelWidth, "label-position": e.labelPosition } }, [e.tableForm ? [e._t("top"), t("FormRedTable", { class: { "hide-error-message": e.tableForm }, attrs: { columns: e.columns, "col-count": e.colCount } }, [e._t("default"), e.showAdvice ? t("FormAdvice", { attrs: { "label-colspan": e.commentLabelColspan, "value-colspan": e.commentValueColspan } }) : e._e()], 2), e._t("bottom"), t("div", { staticClass: "red-form-footer" }, [e._t("footer")], 2)] : [e._t("default")]], 2);
98
- }, d = [], m = /* @__PURE__ */ i(
99
+ }, m = [], d = /* @__PURE__ */ i(
99
100
  s,
100
101
  n,
101
- d,
102
+ m,
102
103
  !1,
103
104
  null,
104
105
  null
105
106
  );
106
- const h = m.exports;
107
+ const b = d.exports;
107
108
  export {
108
- h as default
109
+ b as default
109
110
  };
@@ -1,7 +1,12 @@
1
1
  import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
2
2
  import o from "element-ui/lib/input";
3
- import { c as a, v as s, d as l, n as u } from "../chunks/index.B2TRddqf.mjs";
4
- import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import { c as a, v as s, d as p, n as l } from "../chunks/index.B2TRddqf.mjs";
4
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ import "../chunks/form-item.LWjePsPa.mjs";
6
+ import "element-ui/lib/col";
7
+ import "element-ui/lib/form-item";
8
+ import "@web-utils/core";
9
+ import "async-validator";
5
10
  const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), d = {
6
11
  name: "FormInput",
7
12
  mixins: [i],
@@ -28,7 +33,7 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
28
33
  },
29
34
  computed: {
30
35
  inputProps() {
31
- return l({ ...u(this.$attrs), ...this.$props }, c);
36
+ return p({ ...l(this.$attrs), ...this.$props }, c);
32
37
  }
33
38
  },
34
39
  watch: {
@@ -73,7 +78,7 @@ var f = function() {
73
78
  }, proxy: !0 }, { key: "tips", fn: function() {
74
79
  return [e._t("tips")];
75
80
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
76
- }, m = [], _ = /* @__PURE__ */ p(
81
+ }, m = [], _ = /* @__PURE__ */ u(
77
82
  d,
78
83
  f,
79
84
  m,
@@ -81,7 +86,7 @@ var f = function() {
81
86
  null,
82
87
  null
83
88
  );
84
- const k = _.exports;
89
+ const S = _.exports;
85
90
  export {
86
- k as default
91
+ S as default
87
92
  };