@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.
- package/card/index.mjs +13 -13
- package/chat/index.mjs +2 -2
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/dialog-form/index.mjs +6 -6
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-holder/index.mjs +18 -36
- package/form-view/index.mjs +21 -23
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +141 -137
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +27 -19
- package/fy-dynamic/index.mjs +64 -57
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form-design/index.mjs +15 -16
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +56 -51
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +46 -38
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +3 -3
- package/highlight-j-s/index.mjs +1 -1
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +10 -12
- package/package.json +17 -17
- package/pageable-table/index.mjs +33 -37
- package/pageable-view/index.mjs +53 -57
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +3 -3
- package/table-view/index.mjs +1 -3
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +117 -97
- package/vue-quill-editor/index.mjs +24 -13
- package/vue-tags-input/index.mjs +21 -10
- package/vue-video-player/index.mjs +10 -12
- package/web-types.json +2 -5
package/flow-designer/index.mjs
CHANGED
|
@@ -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,
|
|
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
|
});
|
package/flow-node/index.mjs
CHANGED
package/form-holder/index.mjs
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 ||
|
|
80
|
-
|
|
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(
|
|
69
|
+
clearValidate(r) {
|
|
86
70
|
var e;
|
|
87
|
-
(e = this.$refs.form) == null || e.clearValidate(
|
|
71
|
+
(e = this.$refs.form) == null || e.clearValidate(r);
|
|
88
72
|
},
|
|
89
73
|
validate() {
|
|
90
|
-
return
|
|
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
|
|
100
|
-
var e = this,
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
92
|
+
const c = n.exports;
|
|
111
93
|
export {
|
|
112
|
-
|
|
94
|
+
c as default
|
|
113
95
|
};
|
package/form-view/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
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 ?
|
|
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) =>
|
|
13
|
-
var
|
|
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 (
|
|
18
|
-
s(
|
|
17
|
+
} catch (u) {
|
|
18
|
+
s(u);
|
|
19
19
|
}
|
|
20
20
|
}, l = (n) => {
|
|
21
21
|
try {
|
|
22
22
|
a(e.throw(n));
|
|
23
|
-
} catch (
|
|
24
|
-
s(
|
|
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
|
|
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 =
|
|
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
|
|
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) =>
|
|
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
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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;
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as a, e as l } from "../chunks/event.
|
|
2
|
-
import { i as o } from "../chunks/util.
|
|
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",
|
package/fy-cascader/index.mjs
CHANGED
package/fy-checkbox/index.mjs
CHANGED
package/fy-code/index.mjs
CHANGED