@web-utils/component 3.2.1 → 3.2.2

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 (58) hide show
  1. package/chunks/{FormTemp.0eqGAu6W.mjs → FormTemp.0ezzipG4.mjs} +5 -6
  2. package/chunks/FyUEditor.c06LkvIy.mjs +224 -0
  3. package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +167 -0
  4. package/chunks/IconTemp.tzsg5qth.mjs +29 -0
  5. package/chunks/ResizeObserver.sOHk2Cm-.mjs +51 -0
  6. package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.DLHG0EnH.mjs} +2 -2
  7. package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.gd9p9Rrj.mjs} +1 -1
  8. package/chunks/{index.LGsb2aDq.mjs → index.Uf8ONhVI.mjs} +3 -3
  9. package/data-display/index.mjs +129 -15
  10. package/data-table-picker/index.mjs +1 -1
  11. package/easy-popup/index.mjs +8 -7
  12. package/editable-tree/index.mjs +1 -1
  13. package/flex-column/index.mjs +1 -1
  14. package/flex-item/index.mjs +1 -1
  15. package/flex-row/index.mjs +1 -1
  16. package/flow-designer/index.mjs +218 -164
  17. package/flow-viewer/index.mjs +161 -73
  18. package/form-button/index.mjs +25 -11
  19. package/form-cascader/index.mjs +2 -2
  20. package/form-checkbox-group/index.mjs +2 -2
  21. package/form-date-picker/index.mjs +2 -2
  22. package/form-holder/index.mjs +1 -1
  23. package/form-input/index.mjs +2 -2
  24. package/form-input-email/index.mjs +2 -2
  25. package/form-input-id-card/index.mjs +2 -2
  26. package/form-input-number/index.mjs +2 -2
  27. package/form-input-phone-number/index.mjs +2 -2
  28. package/form-input-tag/index.mjs +155 -31
  29. package/form-input-time/index.mjs +2 -2
  30. package/form-item/index.mjs +1 -1
  31. package/form-radio-group/index.mjs +2 -2
  32. package/form-select/index.mjs +2 -2
  33. package/form-switch/index.mjs +2 -2
  34. package/form-textarea/index.mjs +2 -2
  35. package/form-view/index.mjs +12 -13
  36. package/fy-curd/index.mjs +4 -5
  37. package/fy-form/index.mjs +1 -1
  38. package/fy-form-design/index.mjs +498 -329
  39. package/fy-input-icon/index.mjs +20 -21
  40. package/fy-u-editor/index.mjs +75 -237
  41. package/highlight-j-s/index.mjs +4 -3
  42. package/icon-temp/index.mjs +7 -6
  43. package/index.mjs +446 -446
  44. package/nav-bar/index.mjs +7 -6
  45. package/package.json +1 -1
  46. package/page/index.mjs +1 -0
  47. package/page-header/index.mjs +3 -2
  48. package/page-skeleton/index.mjs +95 -17
  49. package/pageable-table/index.mjs +1 -1
  50. package/pageable-view/index.mjs +8 -8
  51. package/present-view/index.mjs +3 -4
  52. package/resize-observer/index.mjs +4 -3
  53. package/split-pane/index.mjs +3 -4
  54. package/swiper/index.mjs +3 -4
  55. package/table-view/index.mjs +1 -1
  56. package/watermark/index.mjs +1 -1
  57. package/web-types.json +1 -1
  58. package/x-input-tag/index.mjs +10 -9
package/nav-bar/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { n as o } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
1
+ /* empty css */
2
+ import { n as e } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
2
3
  const a = {
3
4
  name: "NavBar",
4
5
  props: {
@@ -15,9 +16,9 @@ const a = {
15
16
  }
16
17
  };
17
18
  var n = function() {
18
- var t = this, e = t._self._c;
19
- return e("div", { staticClass: "nav-bar" }, [t.showBack ? e("ElButton", { attrs: { type: "text", icon: "el-icon-arrow-left" }, on: { click: t.goBack } }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? e("div", { staticClass: "flex-item flex-row-column vertical-center" }, [t._t("right")], 2) : t._e()], 1);
20
- }, r = [], s = /* @__PURE__ */ o(
19
+ var t = this, o = t._self._c;
20
+ return o("div", { staticClass: "nav-bar" }, [t.showBack ? o("ElButton", { attrs: { type: "text", icon: "el-icon-arrow-left" }, on: { click: t.goBack } }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? o("div", { staticClass: "flex-item flex-row-column vertical-center" }, [t._t("right")], 2) : t._e()], 1);
21
+ }, r = [], s = /* @__PURE__ */ e(
21
22
  a,
22
23
  n,
23
24
  r,
@@ -27,7 +28,7 @@ var n = function() {
27
28
  null,
28
29
  null
29
30
  );
30
- const i = s.exports;
31
+ const _ = s.exports;
31
32
  export {
32
- i as default
33
+ _ as default
33
34
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.2.1",
4
+ "version": "3.2.2",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/page/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  import { n as t } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
2
3
  const l = {
3
4
  name: "Page",
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
2
3
  const l = {
3
4
  name: "PageHeader",
@@ -29,7 +30,7 @@ var a = function() {
29
30
  null,
30
31
  null
31
32
  );
32
- const o = i.exports;
33
+ const d = i.exports;
33
34
  export {
34
- o as default
35
+ d as default
35
36
  };
@@ -1,16 +1,94 @@
1
- import o from "@web-utils/component/page";
2
- import "@web-utils/component/page/style.css";
3
- import n from "@web-utils/component/nav-bar";
4
- import "@web-utils/component/nav-bar/style.css";
5
- import l from "@web-utils/component/page-header";
6
- import "@web-utils/component/page-header/style.css";
7
- import { n as r } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
1
+ /* empty css */
2
+ import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
3
+ /* empty css */
4
+ /* empty css */
8
5
  const a = {
6
+ name: "Page",
7
+ props: {
8
+ vertical: {
9
+ type: Boolean,
10
+ default: !0
11
+ },
12
+ horizontal: Boolean
13
+ }
14
+ };
15
+ var r = function() {
16
+ var e = this, t = e._self._c;
17
+ return t("div", { staticClass: "page flex-row flex-item", class: { vertical: e.vertical && !e.horizontal } }, [e._t("default")], 2);
18
+ }, o = [], s = /* @__PURE__ */ n(
19
+ a,
20
+ r,
21
+ o,
22
+ !1,
23
+ null,
24
+ null,
25
+ null,
26
+ null
27
+ );
28
+ const c = s.exports, i = {
29
+ name: "NavBar",
30
+ props: {
31
+ onGoBack: Function,
32
+ showBack: {
33
+ type: Boolean,
34
+ default: !0
35
+ }
36
+ },
37
+ methods: {
38
+ goBack() {
39
+ this.onGoBack ? this.onGoBack() : this.$router.back();
40
+ }
41
+ }
42
+ };
43
+ var _ = function() {
44
+ var e = this, t = e._self._c;
45
+ return t("div", { staticClass: "nav-bar" }, [e.showBack ? t("ElButton", { attrs: { type: "text", icon: "el-icon-arrow-left" }, on: { click: e.goBack } }, [e._v(" 返回 ")]) : e._e(), e.$slots.right ? t("div", { staticClass: "flex-item flex-row-column vertical-center" }, [e._t("right")], 2) : e._e()], 1);
46
+ }, f = [], u = /* @__PURE__ */ n(
47
+ i,
48
+ _,
49
+ f,
50
+ !1,
51
+ null,
52
+ null,
53
+ null,
54
+ null
55
+ );
56
+ const d = u.exports, v = {
57
+ name: "PageHeader",
58
+ props: {
59
+ title: {
60
+ type: String,
61
+ default: "标题"
62
+ },
63
+ alignEnd: {
64
+ type: Boolean,
65
+ default: !0
66
+ }
67
+ }
68
+ };
69
+ var p = function() {
70
+ var e = this, t = e._self._c;
71
+ return t("div", { staticClass: "egd-header flex-row egd-page-header" }, [e._t("section-title", function() {
72
+ return [t("span", { staticClass: "section-title" }, [e._t("title", function() {
73
+ return [e._v(e._s(e.title))];
74
+ }, { title: e.title })], 2)];
75
+ }, { title: e.title }), t("div", { staticClass: "flex-row flex-item vertical-center" }, [t("div", { class: ["flex-row", "flex-item", "vertical-center", { "align-end": e.alignEnd }] }, [e._t("default")], 2)])], 2);
76
+ }, m = [], g = /* @__PURE__ */ n(
77
+ v,
78
+ p,
79
+ m,
80
+ !1,
81
+ null,
82
+ null,
83
+ null,
84
+ null
85
+ );
86
+ const x = g.exports, h = {
9
87
  name: "PageSkeleton",
10
88
  components: {
11
- Page: o,
12
- NavBar: n,
13
- PageHeader: l
89
+ Page: c,
90
+ NavBar: d,
91
+ PageHeader: x
14
92
  },
15
93
  props: {
16
94
  title: String,
@@ -27,7 +105,7 @@ const a = {
27
105
  }
28
106
  }
29
107
  };
30
- var s = function() {
108
+ var B = function() {
31
109
  var e = this, t = e._self._c;
32
110
  return t("Page", { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
33
111
  return [e.title ? t("PageHeader", { attrs: { title: e.title } }) : t("NavBar")];
@@ -36,17 +114,17 @@ var s = function() {
36
114
  { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll },
37
115
  e.contentClass
38
116
  ] }, [e._t("default")], 2)], 2);
39
- }, c = [], f = /* @__PURE__ */ r(
40
- a,
41
- s,
42
- c,
117
+ }, $ = [], k = /* @__PURE__ */ n(
118
+ h,
119
+ B,
120
+ $,
43
121
  !1,
44
122
  null,
45
123
  null,
46
124
  null,
47
125
  null
48
126
  );
49
- const x = f.exports;
127
+ const S = k.exports;
50
128
  export {
51
- x as default
129
+ S as default
52
130
  };
@@ -37,7 +37,7 @@ var h = (t, e, a) => new Promise((s, l) => {
37
37
  });
38
38
  import { hasOwn as v } from "@web-utils/core";
39
39
  import { cloneDeep as S, merge as C } from "@web-utils/integrations/lodash";
40
- import { f as T, h as k, i as B } from "../chunks/index.LGsb2aDq.mjs";
40
+ import { f as T, i as k, j as B } from "../chunks/index.Uf8ONhVI.mjs";
41
41
  import { n as P } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
42
42
  const o = {
43
43
  loading: 1,
@@ -37,9 +37,9 @@ var h = (e, t, s) => new Promise((l, r) => {
37
37
  });
38
38
  import { cloneDeep as S, merge as w } from "@web-utils/integrations/lodash";
39
39
  import { copy as P, hasOwn as C } from "@web-utils/core";
40
- import { f as v, h as x, i as O } from "../chunks/index.LGsb2aDq.mjs";
40
+ import { f as v, i as x, j as O } from "../chunks/index.Uf8ONhVI.mjs";
41
41
  import { n as R } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
42
- function k(e) {
42
+ function j(e) {
43
43
  let t = "";
44
44
  for (const s in e)
45
45
  t += `<ElTableColumn prop="${s}" label="${s}"/>
@@ -51,7 +51,7 @@ const c = {
51
51
  error: -1,
52
52
  empty: 2,
53
53
  success: 0
54
- }, E = {
54
+ }, k = {
55
55
  name: "PageableView",
56
56
  bus: {
57
57
  reloadTableView(e) {
@@ -200,7 +200,7 @@ const c = {
200
200
  onTableScroll() {
201
201
  this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
202
202
  },
203
- copy: (e) => P(k(e)),
203
+ copy: (e) => P(j(e)),
204
204
  onSortChange({ prop: e, order: t }) {
205
205
  this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
206
206
  },
@@ -297,24 +297,24 @@ const c = {
297
297
  }
298
298
  }
299
299
  };
300
- var F = function() {
300
+ var E = function() {
301
301
  var t = this, s = t._self._c;
302
302
  return s("div", { staticClass: "work", staticStyle: { height: "100%", "background-color": "#fff" } }, [s("div", { staticClass: "flex-column list-content", staticStyle: { height: "100%" } }, [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticClass: "flex-item-relative", attrs: { "element-loading-text": "加载中...", "element-loading-background": "#fff" } }, [s("div", { ref: "scroller", staticClass: "scroll-wrapper" }, [s("div", { staticClass: "cards-block" }, [t._t("prepend"), t._l(t.records, function(l) {
303
303
  return [t._t("default", null, { item: l })];
304
304
  }), t._t("append")], 2)])]), s("ElPagination", { staticClass: "flex-not-shrink", staticStyle: { "border-top": "1px solid #ebeef5" }, attrs: { "current-page": t.page.page, "hide-on-single-page": t.hideOnSinglePage, "page-size": t.page.limit, total: t.page.total, background: "", layout: "total, prev, pager, next, jumper" }, on: { "current-change": (l) => {
305
305
  t.page.page = l;
306
306
  } } })], 1)]);
307
- }, L = [], M = /* @__PURE__ */ R(
307
+ }, F = [], L = /* @__PURE__ */ R(
308
+ k,
308
309
  E,
309
310
  F,
310
- L,
311
311
  !1,
312
312
  null,
313
313
  null,
314
314
  null,
315
315
  null
316
316
  );
317
- const I = M.exports;
317
+ const I = L.exports;
318
318
  export {
319
319
  I as default
320
320
  };
@@ -28,8 +28,7 @@ var d = (e, t, o) => new Promise((r, s) => {
28
28
  });
29
29
  import { hasOwn as p, toStringArray as S, delay as F, isInContainer as k } from "@web-utils/core";
30
30
  import { merge as B } from "@web-utils/integrations/lodash";
31
- import L from "@web-utils/component/resize-observer";
32
- import "@web-utils/component/resize-observer/style.css";
31
+ import { R as L } from "../chunks/ResizeObserver.sOHk2Cm-.mjs";
33
32
  import { n as C } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
34
33
  const w = [
35
34
  "back",
@@ -228,7 +227,7 @@ var O = function() {
228
227
  null,
229
228
  null
230
229
  );
231
- const W = z.exports;
230
+ const E = z.exports;
232
231
  export {
233
- W as default
232
+ E as default
234
233
  };
@@ -1,4 +1,5 @@
1
- import { j as r } from "../chunks/index.LGsb2aDq.mjs";
1
+ import { h as r } from "../chunks/index.Uf8ONhVI.mjs";
2
+ /* empty css */
2
3
  import { n as o } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
3
4
  let t;
4
5
  function i() {
@@ -44,7 +45,7 @@ var a = function() {
44
45
  null,
45
46
  null
46
47
  );
47
- const _ = d.exports;
48
+ const m = d.exports;
48
49
  export {
49
- _ as default
50
+ m as default
50
51
  };
@@ -15,8 +15,7 @@ var l = (e, t, s) => new Promise((o, i) => {
15
15
  a((s = s.apply(e, t)).next());
16
16
  });
17
17
  import { n as u } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
18
- import d from "@web-utils/component/resize-observer";
19
- import "@web-utils/component/resize-observer/style.css";
18
+ import { R as d } from "../chunks/ResizeObserver.sOHk2Cm-.mjs";
20
19
  function g(e, t) {
21
20
  for (let s = 0; s < t.length; s++)
22
21
  if (e === t[s])
@@ -212,7 +211,7 @@ var M = function() {
212
211
  null,
213
212
  null
214
213
  );
215
- const C = w.exports;
214
+ const y = w.exports;
216
215
  export {
217
- C as default
216
+ y as default
218
217
  };
package/swiper/index.mjs CHANGED
@@ -15,8 +15,7 @@ var h = (e, t, s) => new Promise((i, r) => {
15
15
  a((s = s.apply(e, t)).next());
16
16
  });
17
17
  import { getEleWidth as c } from "@web-utils/core";
18
- import u from "@web-utils/component/resize-observer";
19
- import "@web-utils/component/resize-observer/style.css";
18
+ import { R as u } from "../chunks/ResizeObserver.sOHk2Cm-.mjs";
20
19
  import { n as p } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
21
20
  const f = {
22
21
  name: "Swiper",
@@ -136,7 +135,7 @@ var w = function() {
136
135
  null,
137
136
  null
138
137
  );
139
- const x = X.exports;
138
+ const E = X.exports;
140
139
  export {
141
- x as default
140
+ E as default
142
141
  };
@@ -16,7 +16,7 @@ var a = (r, e, t) => new Promise((s, l) => {
16
16
  });
17
17
  import { merge as n } from "@web-utils/integrations/lodash";
18
18
  import { isString as d, isArray as u, trace as f, warning as m, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
19
- import { k as _ } from "../chunks/index.LGsb2aDq.mjs";
19
+ import { k as _ } from "../chunks/index.Uf8ONhVI.mjs";
20
20
  import { n as v } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
21
21
  const P = [
22
22
  "back",
@@ -10,7 +10,7 @@ var c = (l, t, e) => t in l ? d(l, t, { enumerable: !0, configurable: !0, writab
10
10
  x.call(t, e) && c(l, e, t[e]);
11
11
  return l;
12
12
  }, u = (l, t) => g(l, y(t));
13
- import { g as b } from "../chunks/index.LGsb2aDq.mjs";
13
+ import { g as b } from "../chunks/index.Uf8ONhVI.mjs";
14
14
  import { n as S } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
15
15
  const k = {
16
16
  name: "Watermark",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "3.2.1",
5
+ "version": "3.2.2",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -10,22 +10,23 @@ var h = (a, t, e) => t in a ? g(a, t, { enumerable: !0, configurable: !0, writab
10
10
  v.call(t, e) && h(a, e, t[e]);
11
11
  return a;
12
12
  }, m = (a, t) => f(a, b(t));
13
- var r = (a, t, e) => new Promise((s, n) => {
13
+ var u = (a, t, e) => new Promise((s, n) => {
14
14
  var o = (i) => {
15
15
  try {
16
16
  l(e.next(i));
17
- } catch (u) {
18
- n(u);
17
+ } catch (r) {
18
+ n(r);
19
19
  }
20
20
  }, c = (i) => {
21
21
  try {
22
22
  l(e.throw(i));
23
- } catch (u) {
24
- n(u);
23
+ } catch (r) {
24
+ n(r);
25
25
  }
26
26
  }, l = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, c);
27
27
  l((e = e.apply(a, t)).next());
28
28
  });
29
+ /* empty css */
29
30
  import { n as y } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
30
31
  const V = {
31
32
  name: "XInputTag",
@@ -85,7 +86,7 @@ const V = {
85
86
  },
86
87
  methods: {
87
88
  showInput() {
88
- return r(this, null, function* () {
89
+ return u(this, null, function* () {
89
90
  this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
90
91
  });
91
92
  },
@@ -94,7 +95,7 @@ const V = {
94
95
  this.$emit("input", this.arrayMode ? t : t.map((e) => e.name || e).join(this.separator));
95
96
  },
96
97
  handleInputConfirm() {
97
- return r(this, null, function* () {
98
+ return u(this, null, function* () {
98
99
  var t;
99
100
  if (this.tags.length >= this.maxTag) {
100
101
  this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
@@ -135,7 +136,7 @@ var w = function() {
135
136
  null,
136
137
  null
137
138
  );
138
- const k = C.exports;
139
+ const M = C.exports;
139
140
  export {
140
- k as default
141
+ M as default
141
142
  };