@web-utils/component 4.0.7 → 4.0.9

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 (94) hide show
  1. package/chat/index.mjs +3 -2
  2. package/chunks/FormTemp.Bu2VCxUh.mjs +2 -2
  3. package/chunks/{configComponents.Bkix1pFY.mjs → configComponents.CpKi15WN.mjs} +16 -13
  4. package/chunks/{dictionary.Dq1KRI7k.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
  5. package/chunks/index.BmYCjxZQ.mjs +47 -0
  6. package/confirm-button/index.mjs +14 -9
  7. package/confirmable/index.mjs +13 -8
  8. package/data-display/index.mjs +1 -1
  9. package/data-table-picker/index.mjs +10 -8
  10. package/editable-tree/index.mjs +3 -2
  11. package/element-dialog/index.mjs +3 -2
  12. package/flex-column/index.mjs +6 -5
  13. package/flex-item/index.mjs +6 -5
  14. package/flex-row/index.mjs +3 -2
  15. package/flow/index.mjs +3 -2
  16. package/flow-designer/index.mjs +2 -2
  17. package/flow-node/index.mjs +4 -3
  18. package/flow-viewer/index.mjs +2 -2
  19. package/form-button/index.mjs +1 -1
  20. package/form-cascader/index.mjs +17 -13
  21. package/form-checkbox/index.mjs +12 -7
  22. package/form-checkbox-group/index.mjs +14 -9
  23. package/form-date-picker/index.mjs +10 -5
  24. package/form-holder/index.mjs +5 -4
  25. package/form-input/index.mjs +11 -6
  26. package/form-input-cron-expression/index.mjs +13 -8
  27. package/form-input-email/index.mjs +17 -12
  28. package/form-input-id-card/index.mjs +19 -15
  29. package/form-input-number/index.mjs +23 -16
  30. package/form-input-phone-number/index.mjs +12 -8
  31. package/form-input-tag/index.mjs +12 -7
  32. package/form-input-time/index.mjs +7 -2
  33. package/form-item/index.mjs +6 -2
  34. package/form-radio-group/index.mjs +12 -7
  35. package/form-select/index.mjs +6 -2
  36. package/form-switch/index.mjs +12 -7
  37. package/form-table/index.mjs +28 -22
  38. package/form-table-plus/index.mjs +14 -10
  39. package/form-textarea/index.mjs +11 -6
  40. package/form-tree-select/index.mjs +17 -9
  41. package/form-tree-select-multiple/index.mjs +19 -11
  42. package/form-view/index.mjs +2 -2
  43. package/fy-array/index.mjs +5 -2
  44. package/fy-cascader/index.mjs +17 -13
  45. package/fy-checkbox/index.mjs +23 -19
  46. package/fy-code/index.mjs +10 -9
  47. package/fy-curd/index.mjs +6 -4
  48. package/fy-date/index.mjs +9 -5
  49. package/fy-draggable/index.mjs +3 -2
  50. package/fy-dynamic/index.mjs +14 -11
  51. package/fy-empty/index.mjs +4 -3
  52. package/fy-form/index.mjs +5 -2
  53. package/fy-form-design/index.mjs +4 -4
  54. package/fy-input/index.mjs +14 -10
  55. package/fy-input-color/index.mjs +15 -11
  56. package/fy-input-icon/index.mjs +10 -6
  57. package/fy-input-map/index.mjs +8 -5
  58. package/fy-input-number/index.mjs +16 -12
  59. package/fy-input-table/index.mjs +5 -2
  60. package/fy-input-tree/index.mjs +5 -2
  61. package/fy-radio/index.mjs +13 -9
  62. package/fy-rate/index.mjs +11 -7
  63. package/fy-select/index.mjs +4 -2
  64. package/fy-slider/index.mjs +10 -7
  65. package/fy-switch/index.mjs +9 -5
  66. package/fy-time/index.mjs +6 -3
  67. package/fy-title/index.mjs +16 -12
  68. package/fy-u-editor/index.mjs +3 -2
  69. package/fy-upload/index.mjs +4 -2
  70. package/image-cropper/index.mjs +3 -2
  71. package/index.mjs +555 -617
  72. package/license/index.mjs +3 -2
  73. package/package.json +1 -1
  74. package/page-skeleton/index.mjs +6 -6
  75. package/pageable-table/index.mjs +6 -3
  76. package/pageable-view/index.mjs +7 -6
  77. package/photo-swipe/index.mjs +15 -56
  78. package/picker-table-view/index.mjs +24 -23
  79. package/present-view/index.mjs +2 -2
  80. package/record-video/index.mjs +11 -10
  81. package/resize-observer/index.mjs +3 -2
  82. package/search/index.mjs +4 -2
  83. package/sign/index.mjs +3 -2
  84. package/split-pane/index.mjs +2 -2
  85. package/swiper/index.mjs +2 -2
  86. package/table-column/index.mjs +6 -3
  87. package/table-view/index.mjs +4 -3
  88. package/tabs-view/index.mjs +1 -1
  89. package/text-ellipsis/index.mjs +3 -2
  90. package/toolbar/index.mjs +4 -3
  91. package/toolbar-button/index.mjs +4 -3
  92. package/verify/index.mjs +8 -7
  93. package/watermark/index.mjs +15 -14
  94. package/web-types.json +1 -1
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
  };
@@ -1,7 +1,7 @@
1
1
  import { isBlank as _ } from "@web-utils/core";
2
2
  import { formatDate as i } from "@web-utils/integrations/dayjs";
3
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.DqFv_pWg.mjs";
4
- import "../fy-u-editor/style.css";
4
+ import "./fy-u-editor/style.css";
5
5
  import { a as D, b as O } from "./dataformat.CpqOeGBl.mjs";
6
6
  import { s as j } from "./slot.DXIbhGat.mjs";
7
7
  import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
@@ -29,7 +29,7 @@ const R = (n = {}, e = {}, s = {}, r = []) => {
29
29
  return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
30
30
  }, Y = {
31
31
  name: "FormTemp",
32
- components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
32
+ components: { FyUEditor: () => import("./fy-u-editor/index.mjs") },
33
33
  mixins: [j],
34
34
  props: {
35
35
  value: [String, Object, Number, Boolean, Array],
@@ -1,13 +1,13 @@
1
- import { isObject as n, isString as c } from "@web-utils/core";
2
- import "@web-utils/integrations/lodash";
1
+ import { isObject as i, isString as c } from "@web-utils/core";
2
+ import { merge as a } from "@web-utils/integrations/lodash";
3
3
  const r = {
4
4
  privilege: {
5
5
  processButtons(e) {
6
6
  return e.map((t) => {
7
- if (n(t)) {
7
+ if (i(t)) {
8
8
  const o = t, s = {};
9
- for (const i in o)
10
- c(o[i]) && (s[i] = a(o[i]));
9
+ for (const n in o)
10
+ c(o[n]) && (s[n] = p(o[n]) ?? !0);
11
11
  return s;
12
12
  }
13
13
  return t;
@@ -17,13 +17,13 @@ const r = {
17
17
  return !0;
18
18
  }
19
19
  }
20
- }, u = (e) => {
20
+ }, l = (e) => {
21
21
  var t, o;
22
22
  return (o = (t = r.privilege) == null ? void 0 : t.processButtons) == null ? void 0 : o.call(t, e);
23
- }, a = (e) => {
23
+ }, p = (e) => {
24
24
  var t, o;
25
25
  return (o = (t = r.privilege) == null ? void 0 : t.hasAuthority) == null ? void 0 : o.call(t, e);
26
- }, l = (e) => {
26
+ }, m = (e) => {
27
27
  var t, o;
28
28
  return (o = (t = r.toolbar) == null ? void 0 : t.goBack) == null ? void 0 : o.call(t, e);
29
29
  }, b = () => {
@@ -32,15 +32,18 @@ const r = {
32
32
  }, y = (e, t) => {
33
33
  var o, s;
34
34
  return (s = (o = r.dict) == null ? void 0 : o.getDictTreeByType) == null ? void 0 : s.call(o, e, t);
35
- }, h = (e) => {
35
+ }, f = (e) => {
36
36
  var t, o;
37
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);
38
40
  };
39
41
  export {
40
42
  b as a,
41
- l as b,
43
+ m as b,
44
+ h as c,
42
45
  y as g,
43
- a as h,
44
- u as p,
45
- h as r
46
+ p as h,
47
+ l as p,
48
+ f as r
46
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.Bkix1pFY.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,4 +1,4 @@
1
- import o from "../count-up/index.mjs";
1
+ import o from "./count-up/index.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const r = {
4
4
  name: "DataDisplay",
@@ -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
  };
@@ -21,8 +21,8 @@ import re from "highlight.js/lib/core";
21
21
  import Ee from "highlight.js/lib/languages/xml";
22
22
  import Te from "highlight.js/lib/languages/json";
23
23
  import { isArray as K } from "@web-utils/core";
24
- import Ce from "../highlight-j-s/index.mjs";
25
- import "../highlight-j-s/style.css";
24
+ import Ce from "./highlight-j-s/index.mjs";
25
+ import "./highlight-j-s/style.css";
26
26
  function G(n, e, t, i, r, a, p, o, y, S, l, s, m) {
27
27
  n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = r, this._elementFactory = a, this._connect = p, this._create = o, this._popupMenu = y, this._canvas = S, this._rules = l, this._translate = s, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(g) {
28
28
  const A = g.context.shape;
@@ -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
@@ -2,8 +2,8 @@ import u from "bpmn-js/lib/NavigatedViewer";
2
2
  import c from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
3
3
  import { create as l, attr as a, append as p } from "tiny-svg";
4
4
  import { query as w } from "min-dom";
5
- import y from "../easy-popup/index.mjs";
6
- import "../easy-popup/style.css";
5
+ import y from "./easy-popup/index.mjs";
6
+ import "./easy-popup/style.css";
7
7
  import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
8
  const m = c.prototype._handleWheel, k = {
9
9
  __init__: ["zoomScroll"],
@@ -1,4 +1,4 @@
1
- import n from "../confirmable/index.mjs";
1
+ import n from "./confirmable/index.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const t = {
4
4
  props: {
@@ -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
  };