@das-fed/utils 6.4.0-test.8.2 → 7.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/api-services/i18n/index.d.ts +7 -17
- package/api-services/i18n/index.js +15 -13
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +1550 -1415
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1341 -1206
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1341 -1206
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1344 -1209
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1341 -1206
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1361 -1240
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1351 -1234
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +1510 -1377
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1341 -1206
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1501 -1368
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1384 -1249
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1373 -1256
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1341 -1206
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1341 -1206
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1341 -1206
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1355 -1220
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1341 -1206
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1341 -1206
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1329 -1194
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1353 -1236
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1341 -1206
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1341 -1206
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1341 -1206
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1354 -1237
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +20 -19
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +433 -431
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/calc-text-width/index.d.ts +1 -0
- package/common-tools/calc-text-width/index.js +10 -0
- package/common-tools/extract-file-name/index.js +737 -738
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/index.d.ts +6 -0
- package/common-tools/get-file-extension/index.js +7 -0
- package/common-tools/index.d.ts +2 -0
- package/common-tools/index.js +2 -0
- package/common-tools/nest-tree-format/index.d.ts +1 -1
- package/common-tools/nest-tree-format/index.js +15 -15
- package/create-api-service/index.d.ts +3 -1
- package/create-api-service/index.js +1344 -1209
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +378 -378
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +575 -575
- package/curring-http/index.js.gz +0 -0
- package/directive/hoverInside/index.d.ts +1 -1
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +4 -1
- package/package.json +4 -4
- package/pinyin-first-character/index.js +22 -22
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +1 -1
- package/style/index.js.gz +0 -0
- package/style/math.d.ts +4 -4
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
package/curring-http/index.js.gz
CHANGED
|
Binary file
|
package/dom-watcher/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface Config {
|
|
|
5
5
|
attributes?: boolean;
|
|
6
6
|
/** 要监视的特定属性名称的数组,如果未包含此属性,则对所有属性的更改都会触发变动通知; */
|
|
7
7
|
attributeFilter?: any[];
|
|
8
|
-
/**
|
|
8
|
+
/** 在attributes属性已经设为true的前提下, 将发生变化的属性节点之前的属性值记录下来(记录在MutationRecord对象的oldValue属性中); */
|
|
9
9
|
attributeOldValue?: boolean;
|
|
10
10
|
/** 在characterData属性已经设为true的前提下,将发生变化characterData节点之前的文本内容记录下来(记录在MutationRecord对象的oldValue属性中); */
|
|
11
11
|
characterDataOldValue?: boolean;
|
package/esm-map.json
CHANGED
|
@@ -139,5 +139,8 @@
|
|
|
139
139
|
"setBrowseTitle": "/common-tools/update-browser-title/index",
|
|
140
140
|
"getPersonalConfig": "/common-info/index",
|
|
141
141
|
"getProjectMessage": "/common-info/index",
|
|
142
|
-
"analyApi": "/api-services/modules/iot/index"
|
|
142
|
+
"analyApi": "/api-services/modules/iot/index",
|
|
143
|
+
"calcTextWidth": "/common-tools/calc-text-width/index",
|
|
144
|
+
"getFileExtension": "/common-tools/get-file-extension/index",
|
|
145
|
+
"getLanguages": "/common-info/index"
|
|
143
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/utils": "
|
|
12
|
+
"@das-fed/utils": "7.0.0",
|
|
13
13
|
"@vue/shared": "^3.4.21",
|
|
14
14
|
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"vue": "^3.4.21"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@das-fed/cli": "
|
|
25
|
-
"@das-fed/web": "
|
|
24
|
+
"@das-fed/cli": "7.0.0",
|
|
25
|
+
"@das-fed/web": "7.0.0",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|
|
@@ -18867,11 +18867,11 @@ const Z = nn(), gn = Object.keys(Z).map((n) => ({
|
|
|
18867
18867
|
}, un = Object.keys(O);
|
|
18868
18868
|
function sn(n, i, g) {
|
|
18869
18869
|
if (un.indexOf(n) === -1)
|
|
18870
|
-
return
|
|
18871
|
-
if (i === g && i &&
|
|
18872
|
-
return f(
|
|
18870
|
+
return r(n);
|
|
18871
|
+
if (i === g && i && r(i) !== i)
|
|
18872
|
+
return f(r(n));
|
|
18873
18873
|
if (g && !hn[n].includes(g)) {
|
|
18874
|
-
const h =
|
|
18874
|
+
const h = r(g);
|
|
18875
18875
|
if (h !== g) {
|
|
18876
18876
|
const u = m(h), s = O[n];
|
|
18877
18877
|
for (let z in s)
|
|
@@ -18889,7 +18889,7 @@ function on(n, i) {
|
|
|
18889
18889
|
return !i || !x.get(i) ? "tóng" : x.get(i).split(" ")[0];
|
|
18890
18890
|
}
|
|
18891
18891
|
function C(n, i, g) {
|
|
18892
|
-
return on(n, i) || zn(n, i) || sn(n, i, g) ||
|
|
18892
|
+
return on(n, i) || zn(n, i) || sn(n, i, g) || r(n);
|
|
18893
18893
|
}
|
|
18894
18894
|
const a = {
|
|
18895
18895
|
南宫: "nán gōng",
|
|
@@ -23553,7 +23553,7 @@ function A(n, i) {
|
|
|
23553
23553
|
function bn(n) {
|
|
23554
23554
|
return n.priority === j.Custom ? -(n.length * n.length * 1e5) : n.priority === j.Surname ? -(n.length * n.length * 100) : 1;
|
|
23555
23555
|
}
|
|
23556
|
-
function
|
|
23556
|
+
function rn(n, i) {
|
|
23557
23557
|
const g = [];
|
|
23558
23558
|
let h = n.length - 1, u = n[h];
|
|
23559
23559
|
for (let s = i - 1; s >= 0; s--) {
|
|
@@ -23574,7 +23574,7 @@ function en(n, i) {
|
|
|
23574
23574
|
}
|
|
23575
23575
|
return g[0].patterns.reverse();
|
|
23576
23576
|
}
|
|
23577
|
-
function
|
|
23577
|
+
function en(n, i) {
|
|
23578
23578
|
return !(i.index + i.length <= n.index || i.priority > n.priority || i.priority === n.priority && i.length > n.length);
|
|
23579
23579
|
}
|
|
23580
23580
|
function wn(n) {
|
|
@@ -23582,7 +23582,7 @@ function wn(n) {
|
|
|
23582
23582
|
for (let g = n.length - 1; g >= 0; ) {
|
|
23583
23583
|
const { index: h } = n[g];
|
|
23584
23584
|
let u = g - 1;
|
|
23585
|
-
for (; u >= 0 &&
|
|
23585
|
+
for (; u >= 0 && en(n[g], n[u]); )
|
|
23586
23586
|
u--;
|
|
23587
23587
|
(u < 0 || n[u].index + n[u].length <= h) && i.push(n[g]), g = u;
|
|
23588
23588
|
}
|
|
@@ -23684,7 +23684,7 @@ class qn {
|
|
|
23684
23684
|
}
|
|
23685
23685
|
search(i, g, h = 2) {
|
|
23686
23686
|
const u = this.match(i, g);
|
|
23687
|
-
return h === 1 ? wn(u) : h === 3 ?
|
|
23687
|
+
return h === 1 ? wn(u) : h === 3 ? rn(u, d(i)) : xn(u, d(i));
|
|
23688
23688
|
}
|
|
23689
23689
|
}
|
|
23690
23690
|
const fn = [
|
|
@@ -23696,7 +23696,7 @@ const fn = [
|
|
|
23696
23696
|
...yn
|
|
23697
23697
|
], U = new qn();
|
|
23698
23698
|
U.build(fn);
|
|
23699
|
-
const mn = new F(), pn = () => mn,
|
|
23699
|
+
const mn = new F(), pn = () => mn, r = (n) => {
|
|
23700
23700
|
const i = x.get(n);
|
|
23701
23701
|
return i ? i.split(" ")[0] : n;
|
|
23702
23702
|
}, an = (n, i, g, h) => {
|
|
@@ -23780,7 +23780,7 @@ const mn = new F(), pn = () => mn, e = (n) => {
|
|
|
23780
23780
|
initial: g.join(" ")
|
|
23781
23781
|
// 声母
|
|
23782
23782
|
};
|
|
23783
|
-
},
|
|
23783
|
+
}, e = (n) => {
|
|
23784
23784
|
const { final: i } = q(n);
|
|
23785
23785
|
let g = "", h = "", u = "";
|
|
23786
23786
|
return Y.indexOf(f(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
|
|
@@ -23794,11 +23794,11 @@ const mn = new F(), pn = () => mn, e = (n) => {
|
|
|
23794
23794
|
return g.forEach((s, z) => {
|
|
23795
23795
|
u.push(`${s}${h[z]}`);
|
|
23796
23796
|
}), u.join(" ");
|
|
23797
|
-
}, B = (n) => {
|
|
23798
|
-
const
|
|
23799
|
-
return n.split(" ").forEach((
|
|
23800
|
-
|
|
23801
|
-
}),
|
|
23797
|
+
}, B = (n, i) => {
|
|
23798
|
+
const g = [];
|
|
23799
|
+
return n.split(" ").forEach((u) => {
|
|
23800
|
+
g.push(i ? u[0] : u);
|
|
23801
|
+
}), g.join(" ");
|
|
23802
23802
|
}, Sn = (n) => typeof n == "string";
|
|
23803
23803
|
function p(n, i) {
|
|
23804
23804
|
return i instanceof RegExp ? i.test(n) : !0;
|
|
@@ -23836,22 +23836,22 @@ const Dn = (n, i) => {
|
|
|
23836
23836
|
break;
|
|
23837
23837
|
case "first":
|
|
23838
23838
|
n.forEach((g) => {
|
|
23839
|
-
g.result = B(g.result);
|
|
23839
|
+
g.result = B(g.result, g.isZh);
|
|
23840
23840
|
});
|
|
23841
23841
|
break;
|
|
23842
23842
|
case "finalHead":
|
|
23843
23843
|
n.forEach((g) => {
|
|
23844
|
-
g.result = g.isZh ?
|
|
23844
|
+
g.result = g.isZh ? e(g.result).head : "";
|
|
23845
23845
|
});
|
|
23846
23846
|
break;
|
|
23847
23847
|
case "finalBody":
|
|
23848
23848
|
n.forEach((g) => {
|
|
23849
|
-
g.result = g.isZh ?
|
|
23849
|
+
g.result = g.isZh ? e(g.result).body : "";
|
|
23850
23850
|
});
|
|
23851
23851
|
break;
|
|
23852
23852
|
case "finalTail":
|
|
23853
23853
|
n.forEach((g) => {
|
|
23854
|
-
g.result = g.isZh ?
|
|
23854
|
+
g.result = g.isZh ? e(g.result).tail : "";
|
|
23855
23855
|
});
|
|
23856
23856
|
break;
|
|
23857
23857
|
}
|
|
@@ -23884,14 +23884,14 @@ const Dn = (n, i) => {
|
|
|
23884
23884
|
});
|
|
23885
23885
|
}
|
|
23886
23886
|
return i.type === "array" ? n.map((h) => h.result) : i.type === "all" ? n.map((h) => {
|
|
23887
|
-
const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { head: o, body: l, tail: y } =
|
|
23887
|
+
const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { head: o, body: l, tail: y } = e(u);
|
|
23888
23888
|
let c = [];
|
|
23889
23889
|
return u !== "" && (c = [u].concat(W(h.origin, i.surname).filter((t) => t !== u))), {
|
|
23890
23890
|
origin: h.origin,
|
|
23891
23891
|
pinyin: u,
|
|
23892
23892
|
initial: s,
|
|
23893
23893
|
final: z,
|
|
23894
|
-
first: h.
|
|
23894
|
+
first: B(h.result, h.isZh),
|
|
23895
23895
|
finalHead: o,
|
|
23896
23896
|
finalBody: l,
|
|
23897
23897
|
finalTail: y,
|
|
Binary file
|
package/style/index.js
CHANGED
package/style/index.js.gz
CHANGED
|
Binary file
|
package/style/math.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** css中px字符串的数学运算 */
|
|
2
2
|
declare const curringMath: (a: any) => {
|
|
3
|
-
add: (b: any) => any;
|
|
4
|
-
subtract: (b: any) => any;
|
|
5
|
-
multiply: (b: any) => any;
|
|
6
|
-
divide: (b: any) => any;
|
|
3
|
+
add: (b: any) => /*elided*/ any;
|
|
4
|
+
subtract: (b: any) => /*elided*/ any;
|
|
5
|
+
multiply: (b: any) => /*elided*/ any;
|
|
6
|
+
divide: (b: any) => /*elided*/ any;
|
|
7
7
|
res: () => string;
|
|
8
8
|
};
|
|
9
9
|
export { curringMath };
|
package/use-low-code/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L,
|
|
1
|
+
import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, createElementBlock as y, openBlock as h } from "vue";
|
|
2
2
|
const x = ["src"], b = /* @__PURE__ */ v({
|
|
3
3
|
__name: "low-code-iframe",
|
|
4
4
|
props: {
|
|
@@ -47,7 +47,7 @@ const x = ["src"], b = /* @__PURE__ */ v({
|
|
|
47
47
|
e
|
|
48
48
|
));
|
|
49
49
|
};
|
|
50
|
-
return (e, o) => (
|
|
50
|
+
return (e, o) => (h(), y("iframe", {
|
|
51
51
|
class: "low-code-iframe",
|
|
52
52
|
id: "low-code-iframe",
|
|
53
53
|
src: r.value,
|
package/use-low-code/index.js.gz
CHANGED
|
Binary file
|