@web-utils/component 2.9.1 → 2.9.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.
- package/fy-form-design/index.mjs +22 -19
- package/fy-input-map/index.mjs +5 -4
- package/fy-tree/index.mjs +5 -2
- package/monaco-editor/index.mjs +13 -13
- package/package.json +1 -1
- package/web-types.json +1 -1
package/fy-form-design/index.mjs
CHANGED
|
@@ -1739,7 +1739,7 @@ function Le(e) {
|
|
|
1739
1739
|
const Ge = /* @__PURE__ */ function() {
|
|
1740
1740
|
return Ve.exports;
|
|
1741
1741
|
}();
|
|
1742
|
-
var
|
|
1742
|
+
var He = function() {
|
|
1743
1743
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
1744
1744
|
return t("div", [t("ElFormItem", {
|
|
1745
1745
|
attrs: {
|
|
@@ -1822,7 +1822,7 @@ var Ue = function() {
|
|
|
1822
1822
|
expression: "data.maxRows"
|
|
1823
1823
|
}
|
|
1824
1824
|
})], 1)], 1);
|
|
1825
|
-
},
|
|
1825
|
+
}, Ue = [];
|
|
1826
1826
|
const Je = {
|
|
1827
1827
|
name: "ConfigTextarea",
|
|
1828
1828
|
props: {
|
|
@@ -1831,8 +1831,8 @@ const Je = {
|
|
|
1831
1831
|
}, W = {};
|
|
1832
1832
|
var Ye = /* @__PURE__ */ c(
|
|
1833
1833
|
Je,
|
|
1834
|
-
Ue,
|
|
1835
1834
|
He,
|
|
1835
|
+
Ue,
|
|
1836
1836
|
!1,
|
|
1837
1837
|
Xe,
|
|
1838
1838
|
null,
|
|
@@ -3718,7 +3718,7 @@ function Lt(e) {
|
|
|
3718
3718
|
const Gt = /* @__PURE__ */ function() {
|
|
3719
3719
|
return Vt.exports;
|
|
3720
3720
|
}();
|
|
3721
|
-
var
|
|
3721
|
+
var Ht = function() {
|
|
3722
3722
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
3723
3723
|
return t("div", [e.data.type.indexOf("range") !== -1 ? [t("ElFormItem", {
|
|
3724
3724
|
attrs: {
|
|
@@ -3817,7 +3817,7 @@ var Ut = function() {
|
|
|
3817
3817
|
expression: "data.unlinkPanels"
|
|
3818
3818
|
}
|
|
3819
3819
|
})], 1) : e._e()], 2);
|
|
3820
|
-
},
|
|
3820
|
+
}, Ut = [];
|
|
3821
3821
|
const Jt = {
|
|
3822
3822
|
name: "ConfigDate",
|
|
3823
3823
|
props: {
|
|
@@ -3826,8 +3826,8 @@ const Jt = {
|
|
|
3826
3826
|
}, K = {};
|
|
3827
3827
|
var Yt = /* @__PURE__ */ c(
|
|
3828
3828
|
Jt,
|
|
3829
|
-
Ut,
|
|
3830
3829
|
Ht,
|
|
3830
|
+
Ut,
|
|
3831
3831
|
!1,
|
|
3832
3832
|
Xt,
|
|
3833
3833
|
null,
|
|
@@ -4918,7 +4918,7 @@ const Ba = {
|
|
|
4918
4918
|
options: ["100", "200", "300", "400", "500", "600", "700", "800", "900", "blod", "bloder", "inherit", "initial", "lighter", "normal", "revert", "unset"]
|
|
4919
4919
|
};
|
|
4920
4920
|
}
|
|
4921
|
-
},
|
|
4921
|
+
}, H = {};
|
|
4922
4922
|
var Wa = /* @__PURE__ */ c(
|
|
4923
4923
|
Ba,
|
|
4924
4924
|
Aa,
|
|
@@ -4930,8 +4930,8 @@ var Wa = /* @__PURE__ */ c(
|
|
|
4930
4930
|
null
|
|
4931
4931
|
);
|
|
4932
4932
|
function Ta(e) {
|
|
4933
|
-
for (let l in
|
|
4934
|
-
this[l] =
|
|
4933
|
+
for (let l in H)
|
|
4934
|
+
this[l] = H[l];
|
|
4935
4935
|
}
|
|
4936
4936
|
const Ma = /* @__PURE__ */ function() {
|
|
4937
4937
|
return Wa.exports;
|
|
@@ -5077,7 +5077,7 @@ const Pa = {
|
|
|
5077
5077
|
});
|
|
5078
5078
|
});
|
|
5079
5079
|
}
|
|
5080
|
-
},
|
|
5080
|
+
}, U = {};
|
|
5081
5081
|
var ja = /* @__PURE__ */ c(
|
|
5082
5082
|
Pa,
|
|
5083
5083
|
za,
|
|
@@ -5089,8 +5089,8 @@ var ja = /* @__PURE__ */ c(
|
|
|
5089
5089
|
null
|
|
5090
5090
|
);
|
|
5091
5091
|
function Da(e) {
|
|
5092
|
-
for (let l in
|
|
5093
|
-
this[l] =
|
|
5092
|
+
for (let l in U)
|
|
5093
|
+
this[l] = U[l];
|
|
5094
5094
|
}
|
|
5095
5095
|
const Qa = /* @__PURE__ */ function() {
|
|
5096
5096
|
return ja.exports;
|
|
@@ -5439,10 +5439,10 @@ function Ga(e) {
|
|
|
5439
5439
|
for (let l in J)
|
|
5440
5440
|
this[l] = J[l];
|
|
5441
5441
|
}
|
|
5442
|
-
const
|
|
5442
|
+
const Ha = /* @__PURE__ */ function() {
|
|
5443
5443
|
return La.exports;
|
|
5444
5444
|
}();
|
|
5445
|
-
var
|
|
5445
|
+
var Ua = function() {
|
|
5446
5446
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
5447
5447
|
return t("div", [t("ElFormItem", {
|
|
5448
5448
|
attrs: {
|
|
@@ -5729,7 +5729,7 @@ var Ha = function() {
|
|
|
5729
5729
|
}, Ja = [];
|
|
5730
5730
|
const Ya = {
|
|
5731
5731
|
name: "ConfigTable",
|
|
5732
|
-
components: { MonacoEditor: b, AfdColumn:
|
|
5732
|
+
components: { MonacoEditor: b, AfdColumn: Ha },
|
|
5733
5733
|
props: {
|
|
5734
5734
|
data: Object
|
|
5735
5735
|
},
|
|
@@ -5828,7 +5828,7 @@ const Ya = {
|
|
|
5828
5828
|
}, Y = {};
|
|
5829
5829
|
var Xa = /* @__PURE__ */ c(
|
|
5830
5830
|
Ya,
|
|
5831
|
-
|
|
5831
|
+
Ua,
|
|
5832
5832
|
Ja,
|
|
5833
5833
|
!1,
|
|
5834
5834
|
Za,
|
|
@@ -7174,11 +7174,14 @@ const dl = {
|
|
|
7174
7174
|
maxStep: 20,
|
|
7175
7175
|
steps: [yield this.transAvueOptionsToFormDesigner(p(p({}, this.widgetForm), e))],
|
|
7176
7176
|
storage: this.storage
|
|
7177
|
-
}), this.undoRedo && window.addEventListener("keydown", (
|
|
7178
|
-
|
|
7179
|
-
}
|
|
7177
|
+
}), this.undoRedo && (window.addEventListener("keydown", this.undoRedoHandler, !1), this.$once("hook:beforeDestroy", () => {
|
|
7178
|
+
document.removeEventListener("click", this.undoRedoHandler);
|
|
7179
|
+
}));
|
|
7180
7180
|
});
|
|
7181
7181
|
},
|
|
7182
|
+
undoRedoHandler(e) {
|
|
7183
|
+
(e.metaKey && !e.shiftKey && e.keyCode === 90 || e.ctrlKey && !e.shiftKey && e.keyCode === 90) && (this.widgetForm = this.handleUndo()), (e.metaKey && e.shiftKey && e.keyCode === 90 || e.ctrlKey && e.shiftKey && e.keyCode === 90 || e.ctrlKey && e.keyCode === 89) && (this.widgetForm = this.handleRedo());
|
|
7184
|
+
},
|
|
7182
7185
|
// 加载icon
|
|
7183
7186
|
handleLoadCss() {
|
|
7184
7187
|
const e = document.getElementsByTagName("head")[0], l = document.createElement("link");
|
package/fy-input-map/index.mjs
CHANGED
|
@@ -211,7 +211,8 @@ const f = {
|
|
|
211
211
|
});
|
|
212
212
|
},
|
|
213
213
|
handleClose() {
|
|
214
|
-
|
|
214
|
+
var e;
|
|
215
|
+
(e = this.poiPicker) == null || e.clearSearchResults();
|
|
215
216
|
},
|
|
216
217
|
addClick() {
|
|
217
218
|
this.map.on("click", (e) => {
|
|
@@ -244,7 +245,7 @@ const f = {
|
|
|
244
245
|
});
|
|
245
246
|
},
|
|
246
247
|
poiPickerReady(e) {
|
|
247
|
-
|
|
248
|
+
this.poiPicker = e, e.on("poiPicked", (t) => {
|
|
248
249
|
this.clearMarker();
|
|
249
250
|
const s = t.source, i = t.item;
|
|
250
251
|
this.poi = Object.assign(i, {
|
|
@@ -270,9 +271,9 @@ function g(e) {
|
|
|
270
271
|
for (let t in l)
|
|
271
272
|
this[t] = l[t];
|
|
272
273
|
}
|
|
273
|
-
const
|
|
274
|
+
const w = /* @__PURE__ */ function() {
|
|
274
275
|
return k.exports;
|
|
275
276
|
}();
|
|
276
277
|
export {
|
|
277
|
-
|
|
278
|
+
w as default
|
|
278
279
|
};
|
package/fy-tree/index.mjs
CHANGED
|
@@ -293,12 +293,15 @@ const v = {
|
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
mounted() {
|
|
296
|
-
document.addEventListener("click", (
|
|
297
|
-
|
|
296
|
+
document.addEventListener("click", this.hideClient), this.$once("hook:beforeDestroy", () => {
|
|
297
|
+
document.removeEventListener("click", this.hideClient);
|
|
298
298
|
}), this.initFun();
|
|
299
299
|
},
|
|
300
300
|
methods: {
|
|
301
301
|
optVal: l,
|
|
302
|
+
hideClient(e) {
|
|
303
|
+
this.$el.contains(e.target) || (this.client.show = !1);
|
|
304
|
+
},
|
|
302
305
|
menuIcon(e) {
|
|
303
306
|
return l(this.option[`${e}Text`], e);
|
|
304
307
|
},
|
package/monaco-editor/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var d = Object.getOwnPropertySymbols;
|
|
3
3
|
var f = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var r = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, h = (t, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
f.call(e, i) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
g.call(e, i) &&
|
|
6
|
+
f.call(e, i) && r(t, i, e[i]);
|
|
7
|
+
if (d)
|
|
8
|
+
for (var i of d(e))
|
|
9
|
+
g.call(e, i) && r(t, i, e[i]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import * as o from "monaco-editor/esm/vs/editor/editor.api";
|
|
@@ -106,17 +106,17 @@ const p = {
|
|
|
106
106
|
}, t.classList.add("editor-fullscreen"), this.editor.layout({
|
|
107
107
|
height: document.body.clientHeight,
|
|
108
108
|
width: document.body.clientWidth
|
|
109
|
-
}), document.addEventListener("keyup",
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
}), document.addEventListener("keyup", this.handleEsc);
|
|
110
|
+
},
|
|
111
|
+
handleEsc(t) {
|
|
112
|
+
t.keyCode === 27 && this.minEditor();
|
|
112
113
|
},
|
|
113
114
|
// 缩小
|
|
114
115
|
minEditor() {
|
|
115
116
|
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
116
117
|
height: this.originSize.height,
|
|
117
118
|
width: this.originSize.width
|
|
118
|
-
}), document.removeEventListener("keyup",
|
|
119
|
-
});
|
|
119
|
+
}), document.removeEventListener("keyup", this.handleEsc);
|
|
120
120
|
},
|
|
121
121
|
_getEditor() {
|
|
122
122
|
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
@@ -179,12 +179,12 @@ var M = /* @__PURE__ */ m(
|
|
|
179
179
|
_,
|
|
180
180
|
y,
|
|
181
181
|
!1,
|
|
182
|
-
|
|
182
|
+
E,
|
|
183
183
|
null,
|
|
184
184
|
null,
|
|
185
185
|
null
|
|
186
186
|
);
|
|
187
|
-
function
|
|
187
|
+
function E(t) {
|
|
188
188
|
for (let e in u)
|
|
189
189
|
this[e] = u[e];
|
|
190
190
|
}
|
package/package.json
CHANGED