yxuse 3.0.25 → 3.0.27
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/lib/_commonjsHelpers.cjs.js +1 -0
- package/lib/_commonjsHelpers.es.js +8 -0
- package/lib/api.cjs.js +1 -1
- package/lib/api.es.js +3 -3
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +17 -14
- package/lib/directives.cjs.js +1 -1
- package/lib/directives.es.js +2 -2
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +3 -2
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -0
- package/lib/index.cjs2.js +5 -36
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +1 -1
- package/lib/index.cjs6.js +32 -3
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +3 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.cjs8.js +1 -1
- package/lib/index.cjs9.js +1 -0
- package/lib/index.es.js +20 -16
- package/lib/index.es10.js +310 -0
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es2.js +1806 -7132
- package/lib/index.es2.js.gz +0 -0
- package/lib/index.es3.js +1 -1
- package/lib/index.es4.js +38 -33
- package/lib/index.es5.js +38 -311
- package/lib/index.es6.js +5339 -1618
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +1659 -9
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es8.js +9 -20
- package/lib/index.es9.js +24 -0
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +16 -13
- package/lib/translate.cjs.js +1 -0
- package/lib/translate.es.js +11 -0
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +1 -1
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +4 -40
- package/package.json +6 -2
- package/types/index.d.ts +3 -0
- package/types/translate/index.d.ts +2 -2
- package/lib/index.es5.js.gz +0 -0
|
Binary file
|
package/lib/index.es8.js
CHANGED
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const c = {
|
|
3
|
-
mounted(t, e) {
|
|
4
|
-
n(t, e);
|
|
5
|
-
}
|
|
6
|
-
}, n = (t, e) => {
|
|
7
|
-
const r = e.value;
|
|
8
|
-
return s(r) ? "" : t.remove();
|
|
9
|
-
}, o = {
|
|
10
|
-
auth: c
|
|
11
|
-
}, a = {
|
|
12
|
-
install: function(t) {
|
|
13
|
-
Object.keys(o).forEach((e) => {
|
|
14
|
-
t.directive(e, o[e]);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1
|
+
import { h as o, U as s } from "./index.es7.js";
|
|
2
|
+
const r = (t, e) => o.post(`${s.ttc.INTEGRATED_BASE_URL}/file/upload`, t, e), i = () => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/group/list`), c = (t, e) => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/file/list/${e}/${t}`), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
3
|
__proto__: null,
|
|
19
|
-
|
|
4
|
+
getGroupListApi: i,
|
|
5
|
+
getResourceListApi: c,
|
|
6
|
+
uploadResourceApi: r
|
|
20
7
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
8
|
export {
|
|
22
|
-
a,
|
|
23
|
-
|
|
9
|
+
c as a,
|
|
10
|
+
i as g,
|
|
11
|
+
u as i,
|
|
12
|
+
r as u
|
|
24
13
|
};
|
package/lib/index.es9.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { g as s } from "./index.es7.js";
|
|
2
|
+
const c = {
|
|
3
|
+
mounted(t, e) {
|
|
4
|
+
n(t, e);
|
|
5
|
+
}
|
|
6
|
+
}, n = (t, e) => {
|
|
7
|
+
const r = e.value;
|
|
8
|
+
return s(r) ? "" : t.remove();
|
|
9
|
+
}, o = {
|
|
10
|
+
auth: c
|
|
11
|
+
}, i = {
|
|
12
|
+
install: function(t) {
|
|
13
|
+
Object.keys(o).forEach((e) => {
|
|
14
|
+
t.directive(e, o[e]);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
default: i
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
export {
|
|
22
|
+
i as a,
|
|
23
|
+
l as d
|
|
24
|
+
};
|
package/lib/theme.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("vue");require("./index.cjs7.js");require("./index.cjs3.js");require("./index.cjs6.js");require("./index.cjs4.js");require("element-plus");require("./index.cjs8.js");require("./index.cjs9.js");require("./index.cjs10.js");require("./_commonjsHelpers.cjs.js");exports.changeTheme=e.changeTheme;exports.findColorByTheme=e.findColorByTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.updateTheme=e.updateTheme;
|
package/lib/theme.es.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import "./index.
|
|
1
|
+
import { g as T, m as C, j as f, k as n, h as d, l as c, e as j, u as k } from "./index.es2.js";
|
|
2
|
+
import "./index.es5.js";
|
|
3
3
|
import "vue";
|
|
4
|
-
import "./index.
|
|
4
|
+
import "./index.es7.js";
|
|
5
5
|
import "./index.es3.js";
|
|
6
|
-
import "./index.
|
|
6
|
+
import "./index.es6.js";
|
|
7
|
+
import "./index.es4.js";
|
|
7
8
|
import "element-plus";
|
|
8
|
-
import "./index.es7.js";
|
|
9
9
|
import "./index.es8.js";
|
|
10
|
+
import "./index.es9.js";
|
|
11
|
+
import "./index.es10.js";
|
|
12
|
+
import "./_commonjsHelpers.es.js";
|
|
10
13
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
T as changeTheme,
|
|
15
|
+
C as findColorByTheme,
|
|
16
|
+
f as getCurTheme,
|
|
17
|
+
n as getCurThemeCssVar,
|
|
18
|
+
d as getDefaultThemeUrl,
|
|
19
|
+
c as getGroupColor,
|
|
20
|
+
j as install,
|
|
21
|
+
k as updateTheme
|
|
19
22
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs6.js");require("./_commonjsHelpers.cjs.js");require("./index.cjs7.js");require("element-plus");exports.changeLang=e.changeLang;exports.getLang=e.getLang;exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus;exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus;exports.initTranslate=e.initTranslate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as g, g as n, a as o, b as i, i as h } from "./index.es6.js";
|
|
2
|
+
import "./_commonjsHelpers.es.js";
|
|
3
|
+
import "./index.es7.js";
|
|
4
|
+
import "element-plus";
|
|
5
|
+
export {
|
|
6
|
+
g as changeLang,
|
|
7
|
+
n as getLang,
|
|
8
|
+
o as getWordByYxI18nThesaurus,
|
|
9
|
+
i as getZhWordByYxI18nThesaurus,
|
|
10
|
+
h as initTranslate
|
|
11
|
+
};
|
package/lib/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs7.js"),e=require("./index.cjs3.js");require("element-plus");exports.http=r.http;exports.areColorsSimilar=e.areColorsSimilar;exports.enumToArray=e.enumToArray;exports.getSelectOptions=e.getSelectOptions;exports.isColorEqual=e.isColorEqual;exports.isDarkColor=e.isDarkColor;exports.notifyMessageToSystems=e.notifyMessageToSystems;exports.receiveMessage=e.receiveMessage;exports.yxSubscribe=e.yxSubscribe;
|
package/lib/utils.es.js
CHANGED
package/lib/yxIcon.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs7.js");require("element-plus");require("./index.cjs8.js");const e=require("./index.cjs4.js");exports.default=e.index;
|
package/lib/yxIcon.es.js
CHANGED
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var p = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
i(e.next(o));
|
|
5
|
-
} catch (c) {
|
|
6
|
-
r(c);
|
|
7
|
-
}
|
|
8
|
-
}, g = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
i(e.throw(o));
|
|
11
|
-
} catch (c) {
|
|
12
|
-
r(c);
|
|
13
|
-
}
|
|
14
|
-
}, i = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(p, g);
|
|
15
|
-
i((e = e.apply(n, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import "./index.es6.js";
|
|
1
|
+
import "./index.es7.js";
|
|
18
2
|
import "element-plus";
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
m();
|
|
22
|
-
}, m = () => a(void 0, null, function* () {
|
|
23
|
-
var e;
|
|
24
|
-
const { data: n } = yield l(), t = (e = n.find((s) => s.groupName === w)) == null ? void 0 : e.groupUuid;
|
|
25
|
-
x(t);
|
|
26
|
-
}), x = (n) => a(void 0, null, function* () {
|
|
27
|
-
const { data: t } = yield u(n, 1);
|
|
28
|
-
return h(t), t;
|
|
29
|
-
}), h = (n) => {
|
|
30
|
-
const t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31
|
-
t.setAttribute("xmlns", "http://www.w3.org/2000/svg"), t.setAttribute("xmlns:xlin", "http://www.w3.org/1999/xlink");
|
|
32
|
-
let e = "";
|
|
33
|
-
n.forEach((s) => {
|
|
34
|
-
e += s.text.replace(/\\/g, "").trim().replace(/^"(.*)"$/, "$1");
|
|
35
|
-
}), t.innerHTML = e, t.style.position = "absolute", t.style.width = "0", t.style.height = "0", document.head.appendChild(t);
|
|
36
|
-
}, A = {
|
|
37
|
-
install: function(n) {
|
|
38
|
-
d();
|
|
39
|
-
}
|
|
40
|
-
};
|
|
3
|
+
import "./index.es8.js";
|
|
4
|
+
import { i as p } from "./index.es4.js";
|
|
41
5
|
export {
|
|
42
|
-
|
|
6
|
+
p as default
|
|
43
7
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yxuse",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "3.0.27",
|
|
5
4
|
"keywords": [
|
|
6
5
|
"yx"
|
|
7
6
|
],
|
|
@@ -62,6 +61,11 @@
|
|
|
62
61
|
"require": "./lib/components.cls.js",
|
|
63
62
|
"types": "./types/components/index.d.ts"
|
|
64
63
|
},
|
|
64
|
+
"./translate": {
|
|
65
|
+
"import": "./lib/translate.es.js",
|
|
66
|
+
"require": "./lib/translate.cls.js",
|
|
67
|
+
"types": "./types/translate/index.d.ts"
|
|
68
|
+
},
|
|
65
69
|
"./hooks": {
|
|
66
70
|
"import": "./lib/hooks.es.js",
|
|
67
71
|
"require": "./lib/hooks.cls.js",
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as utils from "./utils";
|
|
2
|
+
export * as yxIcon from "./yxIcon";
|
|
2
3
|
export * as api from "./api";
|
|
3
4
|
export * as theme from "./theme";
|
|
4
5
|
export * as components from "./components";
|
|
@@ -16,6 +17,7 @@ import * as directives from "./directives";
|
|
|
16
17
|
import * as translate from "./translate";
|
|
17
18
|
import * as yxi18n from "./yxi18n";
|
|
18
19
|
import * as yxHooks from "./hooks";
|
|
20
|
+
import * as yxIcon from "./yxIcon";
|
|
19
21
|
declare const _default: {
|
|
20
22
|
utils: typeof utils;
|
|
21
23
|
api: typeof api;
|
|
@@ -26,5 +28,6 @@ declare const _default: {
|
|
|
26
28
|
translate: typeof translate;
|
|
27
29
|
yxi18n: typeof yxi18n;
|
|
28
30
|
yxHooks: typeof yxHooks;
|
|
31
|
+
yxIcon: typeof yxIcon;
|
|
29
32
|
};
|
|
30
33
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export declare const initTranslate: ({ to, systemKey }: {
|
|
|
4
4
|
}) => Promise<void>;
|
|
5
5
|
export declare const changeLang: (to: any) => Promise<void>;
|
|
6
6
|
export declare const getLang: () => Promise<any>;
|
|
7
|
-
export declare const getWordByYxI18nThesaurus: (word:
|
|
8
|
-
export declare const getZhWordByYxI18nThesaurus: (word:
|
|
7
|
+
export declare const getWordByYxI18nThesaurus: (word: any) => any;
|
|
8
|
+
export declare const getZhWordByYxI18nThesaurus: (word: any) => any;
|
package/lib/index.es5.js.gz
DELETED
|
Binary file
|