@das-fed/ui 6.4.0-dev.55.23 → 6.4.0-dev.55.25
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/package.json +5 -5
- package/packages/components/autocomplete/index.d.ts +13 -4
- package/packages/components/autocomplete/index.js +135 -122
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
- package/packages/components/autocomplete/src/type.d.ts +4 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +9 -9
- package/packages/components/edit-table/index.js +2008 -1656
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/edit-table/src/type.d.ts +13 -0
- package/packages/components/edit-table/src/utils.d.ts +9 -5
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/input/index.js +42 -41
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/map/index.js +38 -37
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/select/index.js +199 -199
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +374 -345
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
|
@@ -5,7 +5,7 @@ import { ElAutocomplete as Pe, ElLoadingDirective as ke } from "element-plus/es"
|
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/loading/style/css";
|
|
7
7
|
import "element-plus/es/components/autocomplete/style/css";
|
|
8
|
-
import { t as
|
|
8
|
+
import { t as P, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
|
|
9
9
|
import { vDasTooltip as Re } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasMessage as z } from "@das-fed/ui/packages/components/message/index";
|
|
11
11
|
import { createService as ct } from "@das-fed/utils/create-api-service";
|
|
@@ -38,7 +38,7 @@ const Q = (e) => {
|
|
|
38
38
|
...p
|
|
39
39
|
});
|
|
40
40
|
} catch {
|
|
41
|
-
r.value = !1, z.error(
|
|
41
|
+
r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
|
|
42
42
|
}
|
|
43
43
|
AMap.plugin(["AMap.ToolBar"], () => {
|
|
44
44
|
t.value.addControl(
|
|
@@ -94,7 +94,7 @@ const Q = (e) => {
|
|
|
94
94
|
}
|
|
95
95
|
s.value = ((m = (x = y.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
|
|
96
96
|
} else
|
|
97
|
-
z.error(
|
|
97
|
+
z.error(P("thirdPartyMapErrorRetry")), j();
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
});
|
|
@@ -108,7 +108,7 @@ const Q = (e) => {
|
|
|
108
108
|
const x = d.geocodes[0].location;
|
|
109
109
|
o.value[0] = x.lng, o.value[1] = x.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
|
|
110
110
|
} else
|
|
111
|
-
z.error(
|
|
111
|
+
z.error(P("thirdPartyMapErrorRetry")), p();
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
}), R = () => {
|
|
@@ -119,7 +119,7 @@ const Q = (e) => {
|
|
|
119
119
|
t.value.setBounds(w);
|
|
120
120
|
}
|
|
121
121
|
} else
|
|
122
|
-
z.error(
|
|
122
|
+
z.error(P("thirdPartyMapErrorRetry"));
|
|
123
123
|
});
|
|
124
124
|
}, _ = (T, g) => {
|
|
125
125
|
if (u.value.activated = !0, !T) {
|
|
@@ -162,9 +162,9 @@ const Q = (e) => {
|
|
|
162
162
|
},
|
|
163
163
|
getLocationParse: async () => {
|
|
164
164
|
var T;
|
|
165
|
-
if (!l.value.length) return z.error(
|
|
165
|
+
if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
|
|
166
166
|
if (n.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
|
|
167
|
-
return z.error(
|
|
167
|
+
return z.error(P("thirdPartyMapErrorRetry"));
|
|
168
168
|
o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, await h(o.value), a.value = new AMap.Marker({
|
|
169
169
|
position: o.value,
|
|
170
170
|
title: n.value
|
|
@@ -237,7 +237,7 @@ const Q = (e) => {
|
|
|
237
237
|
};
|
|
238
238
|
{
|
|
239
239
|
const [$, G] = await Ge("gaode");
|
|
240
|
-
$ && z.error(
|
|
240
|
+
$ && z.error(P("获取地图配置信息失败")), !$ && !G && z.error(P("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
|
|
241
241
|
}
|
|
242
242
|
return _;
|
|
243
243
|
};
|
|
@@ -265,7 +265,7 @@ const Q = (e) => {
|
|
|
265
265
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
266
266
|
modelModifiers: { trim: !0 },
|
|
267
267
|
"fetch-suggestions": D(L),
|
|
268
|
-
placeholder: D(
|
|
268
|
+
placeholder: D(P)("请输入位置"),
|
|
269
269
|
style: { width: "100%" },
|
|
270
270
|
"trigger-on-focus": !1,
|
|
271
271
|
onSelect: D(c),
|
|
@@ -315,7 +315,7 @@ const Q = (e) => {
|
|
|
315
315
|
try {
|
|
316
316
|
t.value = new e.value.Map("map", ((p = C.value) == null ? void 0 : p.mapOpt) ?? {});
|
|
317
317
|
} catch {
|
|
318
|
-
r.value = !1, z.error(
|
|
318
|
+
r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
|
|
319
319
|
}
|
|
320
320
|
const g = new e.value.NavigationControl({
|
|
321
321
|
// @ts-ignore
|
|
@@ -326,7 +326,7 @@ const Q = (e) => {
|
|
|
326
326
|
t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, M && M();
|
|
327
327
|
}, c = (g) => new Promise((p, w) => {
|
|
328
328
|
new e.value.Geocoder().getPoint(g, (d) => {
|
|
329
|
-
!d || JSON.stringify(d) == "{}" ? (z.error(
|
|
329
|
+
!d || JSON.stringify(d) == "{}" ? (z.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
|
|
330
330
|
});
|
|
331
331
|
}), i = async () => {
|
|
332
332
|
!n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : n.value ? await c(n.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), n.value && _(n.value, (g, p) => {
|
|
@@ -361,12 +361,12 @@ const Q = (e) => {
|
|
|
361
361
|
name: m.address.replace(O, "").replace(N, "").replace(B, "")
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (z.error(
|
|
364
|
+
m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (z.error(P("thirdPartyMapErrorRetry")), f());
|
|
365
365
|
});
|
|
366
366
|
}), R = () => {
|
|
367
367
|
new e.value.LocalCity().get((p) => {
|
|
368
368
|
const w = p.center;
|
|
369
|
-
if (!p.center) return z.error(
|
|
369
|
+
if (!p.center) return z.error(P("thirdPartyMapErrorRetry"));
|
|
370
370
|
a.value && t.value.clearOverlays();
|
|
371
371
|
const j = new e.value.Point(w.lng, w.lat);
|
|
372
372
|
t.value.centerAndZoom(j, 13);
|
|
@@ -402,9 +402,9 @@ const Q = (e) => {
|
|
|
402
402
|
n.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
|
|
403
403
|
}, G = () => {
|
|
404
404
|
var g;
|
|
405
|
-
if (!l.value.length) return z.error(
|
|
405
|
+
if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
|
|
406
406
|
if (n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
|
|
407
|
-
return z.error(
|
|
407
|
+
return z.error(P("thirdPartyMapErrorRetry"));
|
|
408
408
|
o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
|
|
409
409
|
}, U = async (g, p) => {
|
|
410
410
|
const [w, j] = await ca().run({ longitude: g, latitude: p });
|
|
@@ -455,7 +455,7 @@ const Q = (e) => {
|
|
|
455
455
|
), R = async () => {
|
|
456
456
|
if (a.akValue) return a.akValue;
|
|
457
457
|
const [_, $] = await Ge("baidu");
|
|
458
|
-
return _ ? (z.error(
|
|
458
|
+
return _ ? (z.error(P("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(P("暂未配置地图")), "") : $.akVal;
|
|
459
459
|
};
|
|
460
460
|
return Oe(async () => {
|
|
461
461
|
a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
|
|
@@ -481,7 +481,7 @@ const Q = (e) => {
|
|
|
481
481
|
"onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
|
|
482
482
|
modelModifiers: { trim: !0 },
|
|
483
483
|
"fetch-suggestions": D(L),
|
|
484
|
-
placeholder: D(
|
|
484
|
+
placeholder: D(P)("请输入位置"),
|
|
485
485
|
style: { width: "100%" },
|
|
486
486
|
"trigger-on-focus": !1,
|
|
487
487
|
onSelect: D(c),
|
|
@@ -843,11 +843,11 @@ function Ho(e) {
|
|
|
843
843
|
var a = Ko.call(t, "constructor") && t.constructor;
|
|
844
844
|
return typeof a == "function" && a instanceof a && xt.call(a) == Io;
|
|
845
845
|
}
|
|
846
|
-
var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]",
|
|
847
|
-
|
|
848
|
-
|
|
846
|
+
var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", E = {};
|
|
847
|
+
E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
|
|
848
|
+
E[Jo] = E[Zo] = E[lr] = E[Wo] = E[ur] = E[qo] = E[Yo] = E[Xo] = E[Qo] = E[er] = E[tr] = E[ar] = E[or] = E[rr] = E[nr] = !1;
|
|
849
849
|
function yr(e) {
|
|
850
|
-
return re(e) && _t(e.length) && !!
|
|
850
|
+
return re(e) && _t(e.length) && !!E[se(e)];
|
|
851
851
|
}
|
|
852
852
|
function mr(e) {
|
|
853
853
|
return function(t) {
|
|
@@ -1532,13 +1532,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1532
1532
|
district: "",
|
|
1533
1533
|
address: "",
|
|
1534
1534
|
name: n.value
|
|
1535
|
-
}), y(O[0])) : (z.error(
|
|
1535
|
+
}), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")), x());
|
|
1536
1536
|
});
|
|
1537
1537
|
})), U = (d) => new Promise((f, y) => {
|
|
1538
1538
|
new google.maps.Geocoder().geocode({
|
|
1539
1539
|
address: n.value
|
|
1540
1540
|
}, (m, O) => {
|
|
1541
|
-
O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(
|
|
1541
|
+
O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(P("thirdPartyMapErrorRetry")), y());
|
|
1542
1542
|
});
|
|
1543
1543
|
}), T = async () => {
|
|
1544
1544
|
var d;
|
|
@@ -1550,14 +1550,14 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1550
1550
|
};
|
|
1551
1551
|
(x = t.value) == null || x.panTo(y), c.value = !1, r.value = !1;
|
|
1552
1552
|
}, (f) => {
|
|
1553
|
-
z.error(
|
|
1553
|
+
z.error(P("获取定位失败")), r.value = !1;
|
|
1554
1554
|
}, {
|
|
1555
1555
|
// enableHighAccuracy: true,
|
|
1556
1556
|
// timeout: 5000,
|
|
1557
1557
|
// maximumAge: 0,
|
|
1558
1558
|
// enableHighAccuracy: true
|
|
1559
1559
|
enableHighAccuracy: !0,
|
|
1560
|
-
timeout:
|
|
1560
|
+
timeout: 1e4
|
|
1561
1561
|
}));
|
|
1562
1562
|
}, g = async (d, f) => {
|
|
1563
1563
|
if (u.value.activated = !0, !d) {
|
|
@@ -1610,15 +1610,16 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1610
1610
|
},
|
|
1611
1611
|
getLocationParse: async () => {
|
|
1612
1612
|
var d, f;
|
|
1613
|
-
if (
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1613
|
+
if (l.value.length) {
|
|
1614
|
+
if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
|
|
1615
|
+
return z.error(P("thirdPartyMapErrorRetry"));
|
|
1616
|
+
o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
|
|
1617
|
+
map: t.value,
|
|
1618
|
+
position: l.value[0].point,
|
|
1619
|
+
title: n.value
|
|
1620
|
+
// 鼠标移上去时显示的内容
|
|
1621
|
+
}), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
|
|
1622
|
+
}
|
|
1622
1623
|
},
|
|
1623
1624
|
getMapInfo: () => ({
|
|
1624
1625
|
longitude: o.value[0],
|
|
@@ -1712,7 +1713,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1712
1713
|
return;
|
|
1713
1714
|
}
|
|
1714
1715
|
if (!F && !J) {
|
|
1715
|
-
t("no-config-map",
|
|
1716
|
+
t("no-config-map", P("暂未配置地图")), s.value = !1;
|
|
1716
1717
|
return;
|
|
1717
1718
|
}
|
|
1718
1719
|
return J;
|
|
@@ -1799,7 +1800,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1799
1800
|
"onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
|
|
1800
1801
|
modelModifiers: { trim: !0 },
|
|
1801
1802
|
"fetch-suggestions": D(n),
|
|
1802
|
-
placeholder: D(
|
|
1803
|
+
placeholder: D(P)("请输入位置"),
|
|
1803
1804
|
style: { width: "100%" },
|
|
1804
1805
|
"trigger-on-focus": !1,
|
|
1805
1806
|
onSelect: D(o),
|
|
@@ -1825,7 +1826,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
|
|
|
1825
1826
|
}, {
|
|
1826
1827
|
default: aa(() => [
|
|
1827
1828
|
oa(
|
|
1828
|
-
ra(D(
|
|
1829
|
+
ra(D(P)("Please-Click-Get-Location")),
|
|
1829
1830
|
1
|
|
1830
1831
|
/* TEXT */
|
|
1831
1832
|
)
|
|
Binary file
|