@web-utils/component 3.4.6 → 3.6.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/chat/index.mjs +1 -1
- package/chunks/ElementBaseInfo.jv89Vjy1.mjs +118 -0
- package/chunks/ElementForm.4QQYs5uq.mjs +241 -0
- package/chunks/ElementListeners.vfHHHAOL.mjs +255 -0
- package/chunks/ElementMultiInstance.3Z28ewuh.mjs +191 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CRIQaaPc.mjs +112 -0
- package/chunks/ElementTaskConfig.MBbkLrth.mjs +326 -0
- package/chunks/FlowCondition.BfU9kw6h.mjs +132 -0
- package/chunks/{FormTemp.CJOJOy8K.mjs → FormTemp.BSpnNput.mjs} +4 -4
- package/chunks/SignalAndMessage.CH6L7cYu.mjs +96 -0
- package/chunks/UserTaskListeners.XXe5dC5I.mjs +210 -0
- package/chunks/confirmable-mixin.D4LAArE5.mjs +114 -0
- package/chunks/{dataformat.ARPY2U57.mjs → dataformat.B9UvztrQ.mjs} +7 -7
- package/chunks/{dic.DBmh9yzU.mjs → dic.CET0XdKP.mjs} +3 -3
- package/chunks/{event.mRPNW7Cx.mjs → event.BT1F_1vF.mjs} +6 -6
- package/chunks/{form-input-mixin.DMuQta5I.mjs → form-input-mixin.BkKiqJhi.mjs} +2 -2
- package/chunks/{form-item-mixin.CdcqXa2h.mjs → form-item-mixin.CG4ZwzMC.mjs} +1 -1
- package/chunks/{index.DwCBGcYk.mjs → index.MAFc4eFi.mjs} +4 -4
- package/chunks/{init.CauLYxJq.mjs → init.ofpxEyAI.mjs} +8 -8
- package/chunks/{json-beautifier.j1-U5g4P.mjs → json-beautifier.Bp3GslGm.mjs} +2 -0
- package/chunks/{util.BaRFvfAi.mjs → util.CoahLDYn.mjs} +7 -7
- package/chunks/utilSelf.CRqpl0Cz.mjs +56 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/code-mirror-editor/index.mjs +45 -45
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/dialog-form/index.mjs +1 -1
- package/e-charts/index.mjs +3 -3
- package/editable-tree/index.mjs +13 -13
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/ellipsis/index.mjs +148 -0
- package/ellipsis/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +519 -2134
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-cascader/index.mjs +5 -5
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +3 -3
- 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 +9 -9
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +14 -14
- package/fy-form-design/index.mjs +2 -2
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -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 +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +455 -451
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/package.json +16 -16
- package/page-index/index.mjs +1 -1
- package/page-index-top/index.mjs +1 -1
- package/pageable-table/index.mjs +3 -3
- package/pageable-view/index.mjs +3 -3
- package/present-view/index.mjs +3 -3
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +4 -4
- package/sign/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-tree-select/index.mjs +354 -347
- package/vue-tree-select/style.css +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +82 -4
- package/chunks/confirmable-mixin.D2KW-Qlc.mjs +0 -116
package/license/index.mjs
CHANGED
package/login/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as l } from "../chunks/util.
|
|
1
|
+
import { s as l } from "../chunks/util.CoahLDYn.mjs";
|
|
2
2
|
import { isBlank as n } from "@web-utils/core";
|
|
3
3
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const r = "发送验证码", i = "{{time}}s后重获取", c = {
|
package/monaco-editor/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var r = (t, e, i) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
import * as o from "monaco-editor/esm/vs/editor/editor.api";
|
|
13
13
|
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
14
|
-
import { c as l } from "../chunks/json-beautifier.
|
|
14
|
+
import { c as l } from "../chunks/json-beautifier.Bp3GslGm.mjs";
|
|
15
15
|
import { NOOP as a } from "@web-utils/core";
|
|
16
16
|
import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
17
17
|
const m = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
3
|
"description": "Web Components",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
18
18
|
"@wangeditor/editor": "^5.1.23",
|
|
19
19
|
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
20
|
-
"@web-utils/core": "^3.0.
|
|
21
|
-
"@web-utils/integrations": "^3.0.
|
|
22
|
-
"@web-utils/vue": "^3.0.
|
|
23
|
-
"bpmn-js": "^
|
|
24
|
-
"bpmn-js-token-simulation": "^0.
|
|
20
|
+
"@web-utils/core": "^3.0.26",
|
|
21
|
+
"@web-utils/integrations": "^3.0.26",
|
|
22
|
+
"@web-utils/vue": "^3.0.26",
|
|
23
|
+
"bpmn-js": "^18.6.1",
|
|
24
|
+
"bpmn-js-token-simulation": "^0.38.1",
|
|
25
25
|
"codemirror": "^5.65.15",
|
|
26
|
-
"countup.js": "^2.8.
|
|
26
|
+
"countup.js": "^2.8.2",
|
|
27
27
|
"dayjs": "^1.11.13",
|
|
28
|
-
"diagram-js": "
|
|
29
|
-
"echarts": "^5.
|
|
30
|
-
"highlight.js": "^11.
|
|
28
|
+
"diagram-js": "15.3.0",
|
|
29
|
+
"echarts": "^5.6.0",
|
|
30
|
+
"highlight.js": "^11.11.1",
|
|
31
31
|
"lodash-es": "^4.17.21",
|
|
32
|
-
"min-dash": "^4.2.
|
|
32
|
+
"min-dash": "^4.2.3",
|
|
33
33
|
"min-dom": "^5.1.1",
|
|
34
|
-
"monaco-editor": "^0.52.
|
|
35
|
-
"overlayscrollbars": "^2.
|
|
34
|
+
"monaco-editor": "^0.52.2",
|
|
35
|
+
"overlayscrollbars": "^2.11.1",
|
|
36
36
|
"photoswipe": "^5.4.4",
|
|
37
37
|
"qrcode": "^1.5.4",
|
|
38
38
|
"quill": "^1.3.7",
|
|
39
39
|
"resize-detector": "^0.3.0",
|
|
40
40
|
"simple-uploader.js": "^0.6.0",
|
|
41
|
-
"tiny-svg": "^4.1.
|
|
41
|
+
"tiny-svg": "^4.1.3",
|
|
42
42
|
"tinymce": "4.9.11",
|
|
43
|
-
"video.js": "^8.
|
|
44
|
-
"viewerjs": "^1.11.
|
|
43
|
+
"video.js": "^8.22.0",
|
|
44
|
+
"viewerjs": "^1.11.7",
|
|
45
45
|
"vue-cropper": "^0.6.5",
|
|
46
46
|
"vuedraggable": "^2.24.3",
|
|
47
47
|
"x2js": "^3.4.4"
|
package/page-index/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var n = (a, t, e) => new Promise((s, r) => {
|
|
|
14
14
|
}, u = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, p);
|
|
15
15
|
u((e = e.apply(a, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
17
|
+
import { findFirstMatchNode as d, treeToArray as c } from "@web-utils/core";
|
|
18
18
|
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
19
|
const f = {
|
|
20
20
|
name: "PageIndex",
|
package/page-index-top/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var i = (s, t, e) => new Promise((a, r) => {
|
|
|
14
14
|
}, u = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(c, l);
|
|
15
15
|
u((e = e.apply(s, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
17
|
+
import { findFirstMatchNode as p, treeToArray as h } from "@web-utils/core";
|
|
18
18
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
19
|
const f = {
|
|
20
20
|
name: "PageIndexTop",
|
package/pageable-table/index.mjs
CHANGED
|
@@ -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.
|
|
40
|
+
import { f as T, h as k, i as B } from "../chunks/index.MAFc4eFi.mjs";
|
|
41
41
|
import { n as P } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
42
42
|
const o = {
|
|
43
43
|
loading: 1,
|
|
@@ -210,8 +210,8 @@ const o = {
|
|
|
210
210
|
this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
211
211
|
});
|
|
212
212
|
},
|
|
213
|
-
filterTableProperties:
|
|
214
|
-
filterTableEvents:
|
|
213
|
+
filterTableProperties: B,
|
|
214
|
+
filterTableEvents: k,
|
|
215
215
|
filterTableColumnProperties: T,
|
|
216
216
|
onTableScroll() {
|
|
217
217
|
this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
|
package/pageable-view/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var h = (e, t, s) => new Promise((i, 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.
|
|
40
|
+
import { f as v, h as x, i as O } from "../chunks/index.MAFc4eFi.mjs";
|
|
41
41
|
import { n as R } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
42
42
|
function k(e) {
|
|
43
43
|
let t = "";
|
|
@@ -194,8 +194,8 @@ const c = {
|
|
|
194
194
|
this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
-
filterTableProperties:
|
|
198
|
-
filterTableEvents:
|
|
197
|
+
filterTableProperties: O,
|
|
198
|
+
filterTableEvents: x,
|
|
199
199
|
filterTableColumnProperties: v,
|
|
200
200
|
onTableScroll() {
|
|
201
201
|
this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
|
package/present-view/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var d = (e, t, o) => new Promise((r, s) => {
|
|
|
26
26
|
}, a = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(i, l);
|
|
27
27
|
a((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
29
|
+
import { isInContainer as S, delay as F, hasOwn as p, toStringArray as k } from "@web-utils/core";
|
|
30
30
|
import { merge as B } from "@web-utils/integrations/lodash";
|
|
31
31
|
import L from "../resize-observer/index.mjs";
|
|
32
32
|
import "../resize-observer/style.css";
|
|
@@ -109,7 +109,7 @@ const w = [
|
|
|
109
109
|
toolbarProps() {
|
|
110
110
|
var r;
|
|
111
111
|
const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = B({}, this.toolbarAttrs, e);
|
|
112
|
-
return o.buttons = t || ["back"], o.buttons =
|
|
112
|
+
return o.buttons = t || ["back"], o.buttons = k(o.buttons), o;
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
created() {
|
|
@@ -161,7 +161,7 @@ const w = [
|
|
|
161
161
|
return d(this, null, function* () {
|
|
162
162
|
if (this.showNav) {
|
|
163
163
|
for (let e = 0; e < this.tabs.length; e++)
|
|
164
|
-
if (
|
|
164
|
+
if (S(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
165
165
|
this.activeIndex = e;
|
|
166
166
|
break;
|
|
167
167
|
}
|
package/record-video/index.mjs
CHANGED
package/search/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i } from "../chunks/init.
|
|
1
|
+
import { D as p } from "../chunks/util.CoahLDYn.mjs";
|
|
2
|
+
import { i } from "../chunks/init.ofpxEyAI.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const l = {
|
package/search-popover/index.mjs
CHANGED
|
@@ -14,9 +14,9 @@ var c = (r, e, t) => new Promise((s, i) => {
|
|
|
14
14
|
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
|
|
15
15
|
a((t = t.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
17
|
+
import { isInContainer as u, copy as d } from "@web-utils/core";
|
|
18
18
|
import p from "element-ui/lib/utils/clickoutside";
|
|
19
|
-
import { z as f } from "../chunks/util.
|
|
19
|
+
import { z as f } from "../chunks/util.CoahLDYn.mjs";
|
|
20
20
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
21
21
|
const m = {
|
|
22
22
|
name: "SearchPopover",
|
|
@@ -74,7 +74,7 @@ const m = {
|
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
76
|
copyEvalResult() {
|
|
77
|
-
return
|
|
77
|
+
return d(this.evalResult);
|
|
78
78
|
},
|
|
79
79
|
hidePopover() {
|
|
80
80
|
this.showPopover = !1;
|
|
@@ -104,7 +104,7 @@ const m = {
|
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
const e = this.$refs.ul.querySelector(`#item-${r}`);
|
|
107
|
-
|
|
107
|
+
u(e, this.$refs.ul, { topOffset: -78, bottomOffset: 78 }) || (this.$refs.ul.scrollTop = e.offsetTop - e.clientHeight + 20);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
};
|
package/sign/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as v } from "../chunks/util.
|
|
1
|
+
import { s as v } from "../chunks/util.CoahLDYn.mjs";
|
|
2
2
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
3
|
function p(e, s, n, r, t, o) {
|
|
4
4
|
e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
|
package/table-view/index.mjs
CHANGED
|
@@ -15,8 +15,8 @@ var a = (r, e, t) => new Promise((s, l) => {
|
|
|
15
15
|
c((t = t.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
17
|
import { merge as n } from "@web-utils/integrations/lodash";
|
|
18
|
-
import {
|
|
19
|
-
import { k as _ } from "../chunks/index.
|
|
18
|
+
import { isFunction as u, toStringArray as m, isString as d, isArray as g, trace as f, warning as w, hasOwn as p } from "@web-utils/core";
|
|
19
|
+
import { k as _ } from "../chunks/index.MAFc4eFi.mjs";
|
|
20
20
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
21
21
|
const P = [
|
|
22
22
|
"back",
|
|
@@ -43,11 +43,11 @@ const P = [
|
|
|
43
43
|
bus: {
|
|
44
44
|
reloadTableView(r, e) {
|
|
45
45
|
if (this._viewIds)
|
|
46
|
-
if (d(r) ||
|
|
46
|
+
if (d(r) || g(r)) {
|
|
47
47
|
let t = r;
|
|
48
48
|
d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (e ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
|
|
49
49
|
} else
|
|
50
|
-
|
|
50
|
+
w.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
props: {
|
|
@@ -121,7 +121,7 @@ const P = [
|
|
|
121
121
|
var s, l;
|
|
122
122
|
const r = {}, e = n(this.toolbarAttrs, r);
|
|
123
123
|
let t = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
|
|
124
|
-
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), e.buttons = t, e.buttons =
|
|
124
|
+
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), e.buttons = t, e.buttons = m(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
|
|
125
125
|
},
|
|
126
126
|
treeProps() {
|
|
127
127
|
const r = {
|
|
@@ -199,7 +199,7 @@ const P = [
|
|
|
199
199
|
return a(this, null, function* () {
|
|
200
200
|
var e;
|
|
201
201
|
const r = this.deleteApi || this.$parent.del;
|
|
202
|
-
if (!((e = this.toolbarListeners) != null && e.del) &&
|
|
202
|
+
if (!((e = this.toolbarListeners) != null && e.del) && u(r)) {
|
|
203
203
|
if (!this.selectedRows.length) {
|
|
204
204
|
this.$message.warning("请选择要删除的记录!");
|
|
205
205
|
return;
|
package/text-ellipsis/index.mjs
CHANGED
package/verify/index.mjs
CHANGED