@web-utils/component 3.6.1 → 3.7.1
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/chunk-file-uploader/index.mjs +13 -12
- package/chunks/{ElementBaseInfo.jv89Vjy1.mjs → ElementBaseInfo.ZADwixb5.mjs} +25 -18
- package/chunks/{ElementForm.4QQYs5uq.mjs → ElementForm.8w6UkiuU.mjs} +1 -1
- package/chunks/{ElementListeners.vfHHHAOL.mjs → ElementListeners.DOy8wyD2.mjs} +0 -1
- package/chunks/{ElementProperties.CRIQaaPc.mjs → ElementProperties.B2I48muA.mjs} +1 -1
- package/color-picker/index.mjs +6 -5
- package/count-up/index.mjs +12 -12
- package/data-card-text/index.mjs +6 -5
- package/dialog-form/index.mjs +2 -1
- package/e-charts/index.mjs +2 -1
- package/editable-tree/index.mjs +2 -1
- package/flow-designer/index.mjs +13 -15
- package/fy-cascader/index.mjs +16 -15
- package/fy-curd/index.mjs +2 -2
- package/fy-draggable/index.mjs +2 -1
- package/fy-dynamic/index.mjs +24 -22
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input-table/index.mjs +6 -6
- package/fy-input-tree/index.mjs +17 -16
- package/fy-tree/index.mjs +1 -1
- package/fy-upload/index.mjs +94 -92
- package/image-cropper/index.mjs +7 -5
- package/image-preview/index.mjs +8 -7
- package/monaco-editor/index.mjs +5 -3
- package/package.json +4 -4
- package/page-index/index.mjs +9 -8
- package/sign-panel/index.mjs +1 -1
- package/vue-tree-select/index.mjs +4 -6
- package/web-types.json +1 -1
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.7.1",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
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": "^
|
|
21
|
-
"@web-utils/integrations": "^
|
|
22
|
-
"@web-utils/vue": "^
|
|
20
|
+
"@web-utils/core": "^4.0.1",
|
|
21
|
+
"@web-utils/integrations": "^4.0.1",
|
|
22
|
+
"@web-utils/vue": "^4.0.1",
|
|
23
23
|
"bpmn-js": "^18.6.1",
|
|
24
24
|
"bpmn-js-token-simulation": "^0.38.1",
|
|
25
25
|
"codemirror": "^5.65.15",
|
package/page-index/index.mjs
CHANGED
|
@@ -2,19 +2,19 @@ var n = (a, t, e) => new Promise((s, r) => {
|
|
|
2
2
|
var o = (i) => {
|
|
3
3
|
try {
|
|
4
4
|
u(e.next(i));
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
5
|
+
} catch (d) {
|
|
6
|
+
r(d);
|
|
7
7
|
}
|
|
8
8
|
}, p = (i) => {
|
|
9
9
|
try {
|
|
10
10
|
u(e.throw(i));
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
11
|
+
} catch (d) {
|
|
12
|
+
r(d);
|
|
13
13
|
}
|
|
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 { findFirstMatchNode as
|
|
17
|
+
import { findFirstMatchNode as h, 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",
|
|
@@ -69,7 +69,7 @@ const f = {
|
|
|
69
69
|
if (c(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
|
|
70
70
|
yield this.setCurrentKey(this.$route.path);
|
|
71
71
|
else {
|
|
72
|
-
const t =
|
|
72
|
+
const t = h(this.menus, (e) => e.path);
|
|
73
73
|
t && (yield this.$router.push({ path: t.path, query: t.query }), yield this.setCurrentKey(t.path));
|
|
74
74
|
}
|
|
75
75
|
});
|
|
@@ -81,13 +81,14 @@ const f = {
|
|
|
81
81
|
},
|
|
82
82
|
setCurrentKey(a) {
|
|
83
83
|
return n(this, null, function* () {
|
|
84
|
-
|
|
84
|
+
var t;
|
|
85
|
+
yield this.$nextTick(), (t = this.$refs.menuTree) == null || t.setCurrentKey(a);
|
|
85
86
|
});
|
|
86
87
|
},
|
|
87
88
|
beforeRouteUpdate(a, t, e) {
|
|
88
89
|
return n(this, null, function* () {
|
|
89
90
|
if (a.path === this.schema) {
|
|
90
|
-
const s =
|
|
91
|
+
const s = h(this.menus, (r) => r.path);
|
|
91
92
|
s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
|
|
92
93
|
} else
|
|
93
94
|
yield e(), yield this.setCurrentKey(this.$route.path);
|
package/sign-panel/index.mjs
CHANGED
|
@@ -92,7 +92,7 @@ const n = {
|
|
|
92
92
|
},
|
|
93
93
|
// 绘制移动轨迹
|
|
94
94
|
moveLine(i, t, s) {
|
|
95
|
-
s
|
|
95
|
+
s == null || s.preventDefault(), i -= this.start, t -= this.end, this.ctx.lineTo(i, t), this.ctx.stroke();
|
|
96
96
|
},
|
|
97
97
|
clear() {
|
|
98
98
|
this.ctx.clearRect(0, 0, this.width, this.height);
|
|
@@ -754,7 +754,6 @@ const et = {
|
|
|
754
754
|
};
|
|
755
755
|
},
|
|
756
756
|
computed: {
|
|
757
|
-
/* eslint-disable valid-jsdoc */
|
|
758
757
|
/**
|
|
759
758
|
* Normalized nodes that have been selected.
|
|
760
759
|
* @type {node[]}
|
|
@@ -843,7 +842,6 @@ const et = {
|
|
|
843
842
|
shouldFlattenOptions() {
|
|
844
843
|
return this.localSearch.active && this.flattenSearchResults;
|
|
845
844
|
}
|
|
846
|
-
/* eslint-enable valid-jsdoc */
|
|
847
845
|
},
|
|
848
846
|
watch: {
|
|
849
847
|
alwaysOpen(e) {
|
|
@@ -1511,13 +1509,15 @@ const V = /* @__PURE__ */ lt(ct), ut = [m.ENTER, m.END, m.HOME, m.ARROW_LEFT, m.
|
|
|
1511
1509
|
});
|
|
1512
1510
|
},
|
|
1513
1511
|
focus() {
|
|
1512
|
+
var t;
|
|
1514
1513
|
const {
|
|
1515
1514
|
instance: e
|
|
1516
1515
|
} = this;
|
|
1517
|
-
e.disabled || this.$refs.input
|
|
1516
|
+
e.disabled || (t = this.$refs.input) == null || t.focus();
|
|
1518
1517
|
},
|
|
1519
1518
|
blur() {
|
|
1520
|
-
|
|
1519
|
+
var e;
|
|
1520
|
+
(e = this.$refs.input) == null || e.blur();
|
|
1521
1521
|
},
|
|
1522
1522
|
onFocus() {
|
|
1523
1523
|
const {
|
|
@@ -1874,7 +1874,6 @@ const Ne = Ht.exports, Pt = {
|
|
|
1874
1874
|
name: "VueTreeSelectControl",
|
|
1875
1875
|
inject: ["instance"],
|
|
1876
1876
|
computed: {
|
|
1877
|
-
/* eslint-disable valid-jsdoc */
|
|
1878
1877
|
/**
|
|
1879
1878
|
* Should show the "×" button that resets value?
|
|
1880
1879
|
* @return {boolean}
|
|
@@ -1905,7 +1904,6 @@ const Ne = Ht.exports, Pt = {
|
|
|
1905
1904
|
} = this;
|
|
1906
1905
|
return e.hasValue && e.internalValue.some((t) => !e.getNode(t).isDisabled);
|
|
1907
1906
|
}
|
|
1908
|
-
/* eslint-enable valid-jsdoc */
|
|
1909
1907
|
},
|
|
1910
1908
|
methods: {
|
|
1911
1909
|
renderX() {
|