@web-utils/component 4.0.15 → 4.0.16

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