@web-utils/component 3.8.2 → 4.0.0

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 (67) hide show
  1. package/card/index.mjs +13 -13
  2. package/chat/index.mjs +2 -2
  3. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  4. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  5. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  6. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  7. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  8. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  9. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  10. package/dialog-form/index.mjs +6 -6
  11. package/flow/index.mjs +30 -32
  12. package/flow-designer/index.mjs +1 -1
  13. package/flow-node/index.mjs +1 -1
  14. package/form-holder/index.mjs +18 -36
  15. package/form-view/index.mjs +21 -23
  16. package/fy-array/index.mjs +2 -2
  17. package/fy-cascader/index.mjs +1 -1
  18. package/fy-checkbox/index.mjs +1 -1
  19. package/fy-code/index.mjs +1 -1
  20. package/fy-curd/index.mjs +141 -137
  21. package/fy-date/index.mjs +1 -1
  22. package/fy-draggable/index.mjs +27 -19
  23. package/fy-dynamic/index.mjs +64 -57
  24. package/fy-empty/index.mjs +1 -1
  25. package/fy-form/index.mjs +117 -136
  26. package/fy-form-design/index.mjs +15 -16
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +2 -2
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +1 -1
  31. package/fy-input-map/index.mjs +56 -51
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +46 -38
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +4 -4
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-tabs/index.mjs +0 -1
  41. package/fy-time/index.mjs +1 -1
  42. package/fy-title/index.mjs +1 -1
  43. package/fy-tree/index.mjs +1 -1
  44. package/fy-u-editor/index.mjs +1 -1
  45. package/fy-upload/index.mjs +3 -3
  46. package/highlight-j-s/index.mjs +1 -1
  47. package/image-cropper/index.mjs +1 -1
  48. package/image-preview/index.mjs +1 -1
  49. package/license/index.mjs +1 -1
  50. package/login/index.mjs +1 -1
  51. package/monaco-editor/index.mjs +10 -12
  52. package/package.json +17 -17
  53. package/pageable-table/index.mjs +33 -37
  54. package/pageable-view/index.mjs +53 -57
  55. package/record-video/index.mjs +1 -1
  56. package/search/index.mjs +2 -2
  57. package/search-popover/index.mjs +1 -1
  58. package/sign/index.mjs +1 -1
  59. package/split-pane/index.mjs +3 -3
  60. package/table-view/index.mjs +1 -3
  61. package/text-ellipsis/index.mjs +1 -1
  62. package/verify/index.mjs +1 -1
  63. package/vue-cron/index.mjs +117 -97
  64. package/vue-quill-editor/index.mjs +24 -13
  65. package/vue-tags-input/index.mjs +21 -10
  66. package/vue-video-player/index.mjs +10 -12
  67. package/web-types.json +2 -5
@@ -4451,7 +4451,7 @@ const ut = {
4451
4451
  initModelListeners() {
4452
4452
  const n = this.bpmnModeler.get("eventBus"), e = this;
4453
4453
  this.events.forEach((t) => {
4454
- n.on(t, function(i) {
4454
+ n.on(t, (i) => {
4455
4455
  const r = t.replace(/\./g, "-"), a = i ? i.element : null;
4456
4456
  e.$emit(r, a, i);
4457
4457
  });
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.CoahLDYn.mjs";
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
3
  const n = {
4
4
  name: "FlowNode",
@@ -1,23 +1,7 @@
1
- var o = (t, e, i) => new Promise((d, s) => {
2
- var n = (r) => {
3
- try {
4
- l(i.next(r));
5
- } catch (a) {
6
- s(a);
7
- }
8
- }, f = (r) => {
9
- try {
10
- l(i.throw(r));
11
- } catch (a) {
12
- s(a);
13
- }
14
- }, l = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(n, f);
15
- l((i = i.apply(t, e)).next());
16
- });
17
- import { warning as m } from "@web-utils/core";
18
- import { e as c } from "../chunks/index.MAFc4eFi.mjs";
19
- import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
20
- const p = {
1
+ import { warning as i } from "@web-utils/core";
2
+ import { e as l } from "../chunks/index.MAFc4eFi.mjs";
3
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const s = {
21
5
  name: "FormHolder",
22
6
  provide() {
23
7
  return {
@@ -76,38 +60,36 @@ const p = {
76
60
  }
77
61
  },
78
62
  created() {
79
- this.required || m.call(
80
- c(this, (t) => ["FormView", "FormHolder"].includes(t.$options.name)),
63
+ this.required || i.call(
64
+ l(this, (r) => ["FormView", "FormHolder"].includes(r.$options.name)),
81
65
  "一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊"
82
66
  );
83
67
  },
84
68
  methods: {
85
- clearValidate(t) {
69
+ clearValidate(r) {
86
70
  var e;
87
- (e = this.$refs.form) == null || e.clearValidate(t);
71
+ (e = this.$refs.form) == null || e.clearValidate(r);
88
72
  },
89
73
  validate() {
90
- return o(this, null, function* () {
91
- return this.$refs.form.validate();
92
- });
74
+ return this.$refs.form.validate();
93
75
  },
94
76
  resetFields() {
95
77
  return this.$refs.form.resetFields();
96
78
  }
97
79
  }
98
80
  };
99
- var _ = function() {
100
- var e = this, i = e._self._c;
101
- return i("ElForm", e._g(e._b({ ref: "form", staticClass: "clear-fix", attrs: { model: e.model, size: e.size, disabled: e.disabled, "label-width": e.labelWidth, "label-position": e.labelPosition } }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
102
- }, h = [], b = /* @__PURE__ */ u(
103
- p,
104
- _,
105
- h,
81
+ var o = function() {
82
+ var e = this, t = e._self._c;
83
+ return t("ElForm", e._g(e._b({ ref: "form", staticClass: "clear-fix", attrs: { model: e.model, size: e.size, disabled: e.disabled, "label-width": e.labelWidth, "label-position": e.labelPosition } }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
84
+ }, d = [], n = /* @__PURE__ */ a(
85
+ s,
86
+ o,
87
+ d,
106
88
  !1,
107
89
  null,
108
90
  null
109
91
  );
110
- const q = b.exports;
92
+ const c = n.exports;
111
93
  export {
112
- q as default
94
+ c as default
113
95
  };
@@ -1,27 +1,27 @@
1
- var _ = Object.defineProperty, g = Object.defineProperties;
2
- var w = Object.getOwnPropertyDescriptors;
1
+ var g = Object.defineProperty, w = Object.defineProperties;
2
+ var y = Object.getOwnPropertyDescriptors;
3
3
  var h = Object.getOwnPropertySymbols;
4
4
  var x = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
5
- var p = (o, t, e) => t in o ? _(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, c = (o, t) => {
5
+ var p = (o, t, e) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, c = (o, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  x.call(t, e) && p(o, e, t[e]);
8
8
  if (h)
9
9
  for (var e of h(t))
10
10
  $.call(t, e) && p(o, e, t[e]);
11
11
  return o;
12
- }, f = (o, t) => g(o, w(t));
13
- var u = (o, t, e) => new Promise((r, s) => {
12
+ }, f = (o, t) => w(o, y(t));
13
+ var d = (o, t, e) => new Promise((r, s) => {
14
14
  var i = (n) => {
15
15
  try {
16
16
  a(e.next(n));
17
- } catch (d) {
18
- s(d);
17
+ } catch (u) {
18
+ s(u);
19
19
  }
20
20
  }, l = (n) => {
21
21
  try {
22
22
  a(e.throw(n));
23
- } catch (d) {
24
- s(d);
23
+ } catch (u) {
24
+ s(u);
25
25
  }
26
26
  }, a = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(i, l);
27
27
  a((e = e.apply(o, t)).next());
@@ -31,7 +31,7 @@ import { merge as B } from "@web-utils/integrations/lodash";
31
31
  import C from "../resize-observer/index.mjs";
32
32
  import "../resize-observer/style.css";
33
33
  import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
34
- const y = [
34
+ const _ = [
35
35
  "back",
36
36
  "create",
37
37
  "save",
@@ -51,7 +51,7 @@ const y = [
51
51
  "disabled",
52
52
  "reload",
53
53
  "slot"
54
- ], I = y.map((o) => `${o}-down`), T = ["back", "withdraw", "edit"], v = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], m = (o, t) => {
54
+ ], I = _.map((o) => `${o}-down`), T = ["back", "withdraw", "edit"], v = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], m = (o, t) => {
55
55
  if (o.classList.contains(t))
56
56
  return o;
57
57
  let e = o.parentNode;
@@ -147,13 +147,13 @@ const y = [
147
147
  }), this.onFormResize({ width: window.document.body.clientWidth });
148
148
  },
149
149
  activated() {
150
- return u(this, null, function* () {
150
+ return d(this, null, function* () {
151
151
  this.$refs.formScroller && (yield this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
152
152
  });
153
153
  },
154
154
  methods: {
155
155
  getToolbarSlotKeys() {
156
- return Object.keys(this.$scopedSlots).filter((o) => y.includes(o));
156
+ return Object.keys(this.$scopedSlots).filter((o) => _.includes(o));
157
157
  },
158
158
  getFooterSlotKeys() {
159
159
  return Object.keys(this.$scopedSlots).filter((o) => I.includes(o));
@@ -168,7 +168,7 @@ const y = [
168
168
  !this.toolbarListeners.edit && b(this.$parent, "disabled") && (this.$parent.disabled = !1);
169
169
  },
170
170
  navItemClick(o, t) {
171
- return u(this, null, function* () {
171
+ return d(this, null, function* () {
172
172
  this.showNav && (yield this.$nextTick(), this.activeFormItemGroup(o, t), o.expand || o.open());
173
173
  });
174
174
  },
@@ -176,15 +176,13 @@ const y = [
176
176
  this.$refs.formScroller.scrollTop = o.$el.offsetTop - 10, F(o.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = t;
177
177
  },
178
178
  tryActive() {
179
- return u(this, null, function* () {
180
- if (this.showNav) {
181
- for (let o = 0; o < this.groups.length; o++)
182
- if (S(this.groups[o].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
183
- this.activeIndex = o;
184
- break;
185
- }
186
- }
187
- });
179
+ if (this.showNav) {
180
+ for (let o = 0; o < this.groups.length; o++)
181
+ if (S(this.groups[o].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
182
+ this.activeIndex = o;
183
+ break;
184
+ }
185
+ }
188
186
  },
189
187
  onFormScroll() {
190
188
  this.formScrollTop = this.$refs.formScroller.scrollTop, this.formScrollLeft = this.$refs.formScroller.scrollLeft, !this.tryByClick && this.groups.length && window.requestAnimationFrame(this.tryActive), this.tryByClick = !1;
@@ -1,5 +1,5 @@
1
- import { p as a, e as l } from "../chunks/event.BT1F_1vF.mjs";
2
- import { i as o } from "../chunks/util.CoahLDYn.mjs";
1
+ import { p as a, e as l } from "../chunks/event.9aDS6jcw.mjs";
2
+ import { i as o } from "../chunks/util.DqFv_pWg.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const p = {
5
5
  name: "FyArray",
@@ -1,4 +1,4 @@
1
- import { p, e as d } from "../chunks/event.BT1F_1vF.mjs";
1
+ import { p, e as d } from "../chunks/event.9aDS6jcw.mjs";
2
2
  import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const h = {
4
4
  name: "FyCascader",
@@ -1,4 +1,4 @@
1
- import { p as s, e as c } from "../chunks/event.BT1F_1vF.mjs";
1
+ import { p as s, e as c } from "../chunks/event.9aDS6jcw.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const h = {
4
4
  name: "FyCheckbox",
package/fy-code/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import o from "element-ui/lib/scrollbar";
2
- import { s as n } from "../chunks/util.CoahLDYn.mjs";
2
+ import { s as n } from "../chunks/util.DqFv_pWg.mjs";
3
3
  import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
4
  const s = {
5
5
  name: "FyCode",