@web-utils/component 4.0.13 → 4.0.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.
Files changed (171) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-checkbox-group/style.css +1 -1
  58. package/form-date-picker/index.mjs +20 -18
  59. package/form-holder/index.mjs +14 -13
  60. package/form-input/index.mjs +15 -14
  61. package/form-input-cron-expression/index.mjs +22 -19
  62. package/form-input-email/index.mjs +16 -15
  63. package/form-input-id-card/index.mjs +13 -12
  64. package/form-input-number/index.mjs +17 -16
  65. package/form-input-phone-number/index.mjs +22 -21
  66. package/form-input-tag/index.mjs +15 -14
  67. package/form-input-time/index.mjs +15 -14
  68. package/form-item/index.mjs +3 -140
  69. package/form-item-group/index.mjs +31 -28
  70. package/form-radio-group/index.mjs +28 -27
  71. package/form-radio-group/style.css +1 -1
  72. package/form-select/index.mjs +23 -21
  73. package/form-switch/index.mjs +17 -16
  74. package/form-table/index.mjs +17 -16
  75. package/form-table-plus/index.mjs +22 -21
  76. package/form-textarea/index.mjs +16 -15
  77. package/form-tree-select/index.mjs +15 -14
  78. package/form-tree-select-multiple/index.mjs +15 -14
  79. package/form-view/index.mjs +39 -35
  80. package/fy-array/index.mjs +37 -33
  81. package/fy-cascader/index.mjs +17 -16
  82. package/fy-checkbox/index.mjs +13 -11
  83. package/fy-code/index.mjs +10 -10
  84. package/fy-curd/index.mjs +1147 -1123
  85. package/fy-date/index.mjs +11 -10
  86. package/fy-draggable/index.mjs +10 -9
  87. package/fy-dynamic/index.mjs +25 -22
  88. package/fy-empty/index.mjs +1 -1
  89. package/fy-form/index.mjs +15 -638
  90. package/fy-form-design/index.mjs +1165 -1127
  91. package/fy-input/index.mjs +14 -12
  92. package/fy-input-color/index.mjs +15 -13
  93. package/fy-input-icon/index.mjs +23 -20
  94. package/fy-input-map/index.mjs +31 -28
  95. package/fy-input-number/index.mjs +10 -9
  96. package/fy-input-table/index.mjs +22 -18
  97. package/fy-input-tree/index.mjs +37 -33
  98. package/fy-progress/index.mjs +10 -9
  99. package/fy-radio/index.mjs +16 -15
  100. package/fy-rate/index.mjs +11 -10
  101. package/fy-select/index.mjs +29 -25
  102. package/fy-slider/index.mjs +12 -11
  103. package/fy-switch/index.mjs +10 -9
  104. package/fy-tabs/index.mjs +17 -15
  105. package/fy-time/index.mjs +1 -1
  106. package/fy-title/index.mjs +1 -1
  107. package/fy-tree/index.mjs +24 -18
  108. package/fy-u-editor/index.mjs +1 -1
  109. package/fy-upload/index.mjs +76 -74
  110. package/guide-steps/index.mjs +13 -11
  111. package/iframe-window/index.mjs +10 -9
  112. package/image-cropper/index.mjs +30 -28
  113. package/image-preview/index.mjs +14 -12
  114. package/index.mjs +72 -72
  115. package/input-number/index.mjs +14 -13
  116. package/input-number-range/index.mjs +12 -11
  117. package/license/index.mjs +1 -1
  118. package/login/index.mjs +26 -21
  119. package/nav-bar/index.mjs +10 -9
  120. package/notice/index.mjs +10 -9
  121. package/package.json +1 -1
  122. package/page-index/index.mjs +13 -12
  123. package/page-index-top/index.mjs +28 -23
  124. package/page-skeleton/index.mjs +14 -14
  125. package/page-skeleton-new/index.mjs +9 -8
  126. package/pageable-table/index.mjs +182 -172
  127. package/pageable-table/style.css +1 -1
  128. package/pageable-view/index.mjs +16 -15
  129. package/picker-table-view/index.mjs +58 -49
  130. package/present-view/index.mjs +39 -35
  131. package/record-video/index.mjs +1 -1
  132. package/resize-observer/index.mjs +1 -1
  133. package/search/index.mjs +22 -20
  134. package/search-popover/index.mjs +1 -1
  135. package/sign/index.mjs +1 -1
  136. package/skeleton-panel/index.mjs +10 -9
  137. package/split-pane/index.mjs +37 -36
  138. package/static-pageable-table/index.mjs +13 -11
  139. package/sub-table/index.mjs +49 -36
  140. package/sub-table-plus/index.mjs +18 -229
  141. package/swiper/index.mjs +12 -11
  142. package/table-column/index.mjs +3 -223
  143. package/table-view/index.mjs +60 -52
  144. package/tabs-view/index.mjs +19 -17
  145. package/tag-render/index.mjs +18 -16
  146. package/text-ellipsis/index.mjs +10 -9
  147. package/toolbar/index.mjs +14 -13
  148. package/toolbar-button/index.mjs +14 -13
  149. package/verify/index.mjs +1 -1
  150. package/vue-cron/index.mjs +267 -259
  151. package/watermark/index.mjs +1 -1
  152. package/web-types.json +1 -1
  153. package/x-input-tag/index.mjs +24 -21
  154. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  155. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  156. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  157. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  158. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  159. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  160. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  161. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  162. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  163. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  164. package/chunks/core.0Exl13Mz.mjs +0 -54
  165. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  166. package/chunks/form-item.LWjePsPa.mjs +0 -233
  167. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  168. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  169. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  170. package/element-listeners/style.css +0 -1
  171. package/element-multi-instance/style.css +0 -1
@@ -1,6 +1,7 @@
1
- import { findFirstMatchNode as r, treeToArray as n } from "@web-utils/core";
2
- import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const d = {
1
+ import r from "element-ui/lib/tree";
2
+ import { findFirstMatchNode as n, treeToArray as u } from "@web-utils/core";
3
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const p = {
4
5
  name: "PageIndex",
5
6
  props: {
6
7
  menus: {
@@ -49,10 +50,10 @@ const d = {
49
50
  },
50
51
  methods: {
51
52
  async activeFirstMenu() {
52
- if (n(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
53
+ if (u(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
53
54
  await this.setCurrentKey(this.$route.path);
54
55
  else {
55
- const t = r(this.menus, (e) => e.path);
56
+ const t = n(this.menus, (e) => e.path);
56
57
  t && (await this.$router.push({ path: t.path, query: t.query }), await this.setCurrentKey(t.path));
57
58
  }
58
59
  },
@@ -65,18 +66,18 @@ const d = {
65
66
  },
66
67
  async beforeRouteUpdate(a, t, e) {
67
68
  if (a.path === this.schema) {
68
- const s = r(this.menus, (i) => i.path);
69
+ const s = n(this.menus, (i) => i.path);
69
70
  s ? (await e({ path: s.path, query: s.query }), await this.setCurrentKey(s.path)) : await e(!1);
70
71
  } else
71
72
  await e(), await this.setCurrentKey(this.$route.path);
72
73
  }
73
74
  }
74
75
  };
75
- var h = function() {
76
+ var d = function() {
76
77
  var t = this, e = t._self._c;
77
78
  return e("div", { staticClass: "egd-container" }, [t.aside ? e("div", { staticClass: "egd-aside", style: { width: t.asideWidth } }, [t._t("aside", function() {
78
79
  return [e("div", { staticClass: "egd-main" }, [t._t("nav-top"), e("div", { staticClass: "egd-header" }, [e("span", { staticClass: "section-title flex-not-shrink" }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
79
- return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: i }) {
80
+ return [e(r, { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: i }) {
80
81
  return [t._t("tree-node", function() {
81
82
  return [e("span", [e("i", { class: s.icon }), t._v(" " + t._s(s.label))])];
82
83
  }, { data: s, node: i })];
@@ -85,15 +86,15 @@ var h = function() {
85
86
  })], 2) : t._e(), e("div", { staticClass: "page-index-content", style: { width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%" } }, [t._t("default", function() {
86
87
  return [e("div", { staticClass: "page-index-content-empty" }, [t._v(" " + t._s(t.tips) + " ")])];
87
88
  })], 2)]);
88
- }, o = [], p = /* @__PURE__ */ u(
89
+ }, h = [], c = /* @__PURE__ */ o(
90
+ p,
89
91
  d,
90
92
  h,
91
- o,
92
93
  !1,
93
94
  null,
94
95
  null
95
96
  );
96
- const f = p.exports;
97
+ const m = c.exports;
97
98
  export {
98
- f as default
99
+ m as default
99
100
  };
@@ -1,6 +1,11 @@
1
- import { findFirstMatchNode as n, treeToArray as i } from "@web-utils/core";
2
- import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const o = {
1
+ import s from "../empty-view/index.mjs";
2
+ import o from "element-ui/lib/tab-pane";
3
+ import u from "element-ui/lib/tabs";
4
+ import p from "../page-header/index.mjs";
5
+ import c from "../page-skeleton/index.mjs";
6
+ import { findFirstMatchNode as r, treeToArray as m } from "@web-utils/core";
7
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const h = {
4
9
  name: "PageIndexTop",
5
10
  props: {
6
11
  menus: {
@@ -29,47 +34,47 @@ const o = {
29
34
  },
30
35
  methods: {
31
36
  async activeFirstMenu() {
32
- if (i(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
37
+ if (m(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
33
38
  this.activeTab = this.$route.path;
34
39
  else {
35
- const t = n(this.menus, (e) => e.path);
40
+ const t = r(this.menus, (e) => e.path);
36
41
  t && (this.activeTab = t.path, await this.$router.push({ path: t.path, query: t.query }));
37
42
  }
38
43
  },
39
- async tabClick(s) {
40
- await this.$router.push(s.name);
44
+ async tabClick(n) {
45
+ await this.$router.push(n.name);
41
46
  },
42
- async beforeRouteUpdate(s, t, e) {
43
- if (s.path === this.schema) {
44
- const a = n(this.menus, (r) => r.path);
47
+ async beforeRouteUpdate(n, t, e) {
48
+ if (n.path === this.schema) {
49
+ const a = r(this.menus, (i) => i.path);
45
50
  a ? (await e({ path: a.path, query: a.query }), this.activeTab = a.path) : await e(!1);
46
51
  } else
47
52
  await e();
48
53
  }
49
54
  }
50
55
  };
51
- var p = function() {
56
+ var f = function() {
52
57
  var t = this, e = t._self._c;
53
- return t.menus && t.menus.length ? e("PageSkeleton", { scopedSlots: t._u([{ key: "header", fn: function() {
54
- return [e("PageHeader", { scopedSlots: t._u([{ key: "section-title", fn: function() {
55
- return [e("ElTabs", { on: { "tab-click": t.tabClick }, model: { value: t.activeTab, callback: function(a) {
58
+ return t.menus && t.menus.length ? e(c, { scopedSlots: t._u([{ key: "header", fn: function() {
59
+ return [e(p, { scopedSlots: t._u([{ key: "section-title", fn: function() {
60
+ return [e(u, { on: { "tab-click": t.tabClick }, model: { value: t.activeTab, callback: function(a) {
56
61
  t.activeTab = a;
57
62
  }, expression: "activeTab" } }, t._l(t.menus, function(a) {
58
- return e("ElTabPane", { key: a.path, attrs: { label: a.label, name: `${a.path}` } });
63
+ return e(o, { key: a.path, attrs: { label: a.label, name: `${a.path}` } });
59
64
  }), 1)];
60
65
  }, proxy: !0 }], null, !1, 412017982) })];
61
66
  }, proxy: !0 }], null, !1, 2288233724) }, [t._t("default", function() {
62
- return [e("EmptyView", { attrs: { "empty-tips": t.tips } })];
63
- })], 2) : e("EmptyView", { attrs: { "empty-tips": "暂无权限!" } });
64
- }, c = [], l = /* @__PURE__ */ u(
65
- o,
66
- p,
67
- c,
67
+ return [e(s, { attrs: { "empty-tips": t.tips } })];
68
+ })], 2) : e(s, { attrs: { "empty-tips": "暂无权限!" } });
69
+ }, _ = [], d = /* @__PURE__ */ l(
70
+ h,
71
+ f,
72
+ _,
68
73
  !1,
69
74
  null,
70
75
  null
71
76
  );
72
- const f = l.exports;
77
+ const x = d.exports;
73
78
  export {
74
- f as default
79
+ x as default
75
80
  };
@@ -1,16 +1,16 @@
1
- import o from "../page/index.mjs";
1
+ import o from "../nav-bar/index.mjs";
2
+ import n from "../page-header/index.mjs";
3
+ import r from "../page/index.mjs";
2
4
  import "../page/style.css";
3
- import n from "../nav-bar/index.mjs";
4
5
  import "../nav-bar/style.css";
5
- import r from "../page-header/index.mjs";
6
6
  import "../page-header/style.css";
7
- import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
- const l = {
7
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const a = {
9
9
  name: "PageSkeleton",
10
10
  components: {
11
- Page: o,
12
- NavBar: n,
13
- PageHeader: r
11
+ Page: r,
12
+ NavBar: o,
13
+ PageHeader: n
14
14
  },
15
15
  props: {
16
16
  title: String,
@@ -29,18 +29,18 @@ const l = {
29
29
  };
30
30
  var s = function() {
31
31
  var e = this, t = e._self._c;
32
- return t("Page", { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
33
- return [e.title ? t("PageHeader", { attrs: { title: e.title } }) : t("NavBar")];
32
+ return t(r, { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
33
+ return [e.title ? t(n, { attrs: { title: e.title } }) : t(o)];
34
34
  }) : e._e(), t("div", { class: ["page-content", { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll }, e.contentClass] }, [e._t("default")], 2)], 2);
35
- }, c = [], f = /* @__PURE__ */ a(
36
- l,
35
+ }, c = [], f = /* @__PURE__ */ l(
36
+ a,
37
37
  s,
38
38
  c,
39
39
  !1,
40
40
  null,
41
41
  null
42
42
  );
43
- const x = f.exports;
43
+ const v = f.exports;
44
44
  export {
45
- x as default
45
+ v as default
46
46
  };
@@ -1,5 +1,6 @@
1
- import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const a = {
1
+ import l from "../page/index.mjs";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const n = {
3
4
  name: "PageSkeletonNew",
4
5
  props: {
5
6
  title: {
@@ -23,9 +24,9 @@ const a = {
23
24
  }
24
25
  }
25
26
  };
26
- var n = function() {
27
+ var s = function() {
27
28
  var e = this, t = e._self._c;
28
- return t("Page", { staticClass: "page-skeleton-new", attrs: { horizontal: "" } }, [t("div", { staticClass: "page-skeleton-new-left", style: { width: e.sidebarWidth } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-right": "0" } }, [t("span", { staticClass: "section-title" }, [e._v(e._s(e.title))])]) : e._e(), t("div", { staticClass: "flex-item", staticStyle: { "border-right": "1px solid #eee" } }, [e._t("sidebar-content", function() {
29
+ return t(l, { staticClass: "page-skeleton-new", attrs: { horizontal: "" } }, [t("div", { staticClass: "page-skeleton-new-left", style: { width: e.sidebarWidth } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-right": "0" } }, [t("span", { staticClass: "section-title" }, [e._v(e._s(e.title))])]) : e._e(), t("div", { staticClass: "flex-item", staticStyle: { "border-right": "1px solid #eee" } }, [e._t("sidebar-content", function() {
29
30
  return [e._v(" 侧栏内容 ")];
30
31
  })], 2)]), t("div", { staticClass: "page-skeleton-new-right", style: { width: `calc(100% - ${e.sidebarWidth})` } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-left": "0", "padding-left": "10px" } }, [t("div", { staticClass: "flex-item flex-row vertical-center" }, [e._t("header-left")], 2), t("div", { staticClass: "flex-item flex-row vertical-center" }, [t("div", { class: ["flex-row", "flex-item", "vertical-center", "align-end"] }, [e._t("header-right")], 2)])]) : e._e(), t("div", { class: [
31
32
  "page-skeleton-new-page-content",
@@ -35,15 +36,15 @@ var n = function() {
35
36
  ] }, [e._t("default", function() {
36
37
  return [e._v("内容")];
37
38
  })], 2)])]);
38
- }, s = [], i = /* @__PURE__ */ l(
39
- a,
39
+ }, i = [], r = /* @__PURE__ */ a(
40
40
  n,
41
41
  s,
42
+ i,
42
43
  !1,
43
44
  null,
44
45
  null
45
46
  );
46
- const c = i.exports;
47
+ const f = r.exports;
47
48
  export {
48
- c as default
49
+ f as default
49
50
  };