yxuse 3.0.37 → 3.0.39
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/api.cjs.js +1 -1
- package/lib/api.es.js +4 -4
- package/lib/app.cjs.js +1 -0
- package/lib/app.es.js +4 -0
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +16 -17
- 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 +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -0
- package/lib/index.cjs11.js +3 -0
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.cjs12.js +1 -0
- package/lib/index.cjs13.js +1 -0
- package/lib/index.cjs2.js +1 -42
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +42 -1
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +1 -3
- package/lib/index.cjs8.js +1 -1
- package/lib/index.cjs9.js +1 -1
- package/lib/index.es.js +45 -18
- package/lib/index.es10.js +311 -0
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js +1682 -0
- package/lib/index.es11.js.gz +0 -0
- package/lib/index.es12.js +124 -0
- package/lib/index.es13.js +19 -0
- package/lib/index.es2.js +14 -8213
- package/lib/index.es3.js +41 -131
- package/lib/index.es4.js +33 -38
- package/lib/index.es5.js +7347 -33
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +893 -301
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +18 -1674
- package/lib/index.es8.js +4 -15
- package/lib/index.es9.js +7 -20
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +17 -17
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +11 -13
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +2 -2
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +3 -3
- package/package.json +6 -1
- package/types/app/index.d.ts +1 -0
- package/types/bc/index.d.ts +5 -0
- package/types/config/index.d.ts +3 -0
- package/types/index.d.ts +6 -2
- package/types/theme/index.d.ts +8 -0
- package/types/translate/index.d.ts +1 -1
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.es2.js.gz +0 -0
- package/lib/index.es7.js.gz +0 -0
package/lib/index.es8.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
`${s.ttc.INTEGRATED_BASE_URL}/resource/group/list`,
|
|
4
|
-
{},
|
|
5
|
-
{
|
|
6
|
-
headers: { noLoading: !0 }
|
|
7
|
-
}
|
|
8
|
-
), a = (e, t) => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/file/list/${t}/${e}`, {}, { headers: { noLoading: !0 } }), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1
|
+
import { u as e } from "./index.es10.js";
|
|
2
|
+
const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
3
|
__proto__: null,
|
|
10
|
-
|
|
11
|
-
getResourceListApi: a,
|
|
12
|
-
uploadResourceApi: r
|
|
4
|
+
useTime: e
|
|
13
5
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14
6
|
export {
|
|
15
|
-
|
|
16
|
-
i as g,
|
|
17
|
-
c as i,
|
|
18
|
-
r as u
|
|
7
|
+
t as y
|
|
19
8
|
};
|
package/lib/index.es9.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
const o = (e = "isWebApp") => {
|
|
2
|
+
const r = new URLSearchParams(window.location.href.split("?")[1]), t = Object.fromEntries(r.entries());
|
|
3
|
+
return !!(t[e] && +t[e]);
|
|
4
|
+
}, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
5
|
__proto__: null,
|
|
19
|
-
|
|
6
|
+
isWebApp: o
|
|
20
7
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
8
|
export {
|
|
22
|
-
a,
|
|
23
|
-
|
|
9
|
+
s as a,
|
|
10
|
+
o as i
|
|
24
11
|
};
|
package/lib/theme.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs4.js");require("vue");require("./index.cjs11.js");require("./index.cjs12.js");require("./index.cjs10.js");require("element-plus");require("./index.cjs13.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.installCssVarInSystemTheme=e.installCssVarInSystemTheme;exports.saveCssVar=e.saveCssVar;exports.setCssVar=e.setCssVar;exports.updateTheme=e.updateTheme;
|
package/lib/theme.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index.es5.js";
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./index.es7.js";
|
|
5
|
-
import "./index.es3.js";
|
|
1
|
+
import { h, o as l, l as C, m as T, k as n, n as u, f as g, p as f, s as V, j as d, u as y } from "./index.es5.js";
|
|
6
2
|
import "./index.es4.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./index.es11.js";
|
|
5
|
+
import "./index.es12.js";
|
|
6
|
+
import "./index.es10.js";
|
|
7
7
|
import "element-plus";
|
|
8
|
-
import "./index.
|
|
9
|
-
import "./index.es6.js";
|
|
10
|
-
import "./index.es9.js";
|
|
8
|
+
import "./index.es13.js";
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
V as
|
|
10
|
+
h as changeTheme,
|
|
11
|
+
l as findColorByTheme,
|
|
12
|
+
C as getCurTheme,
|
|
13
|
+
T as getCurThemeCssVar,
|
|
14
|
+
n as getDefaultThemeUrl,
|
|
15
|
+
u as getGroupColor,
|
|
16
|
+
g as install,
|
|
17
|
+
f as installCssVarInSystemTheme,
|
|
18
|
+
V as saveCssVar,
|
|
19
|
+
d as setCssVar,
|
|
20
|
+
y as updateTheme
|
|
21
21
|
};
|
package/lib/translate.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs11.js");require("element-plus");require("vue");require("./index.cjs10.js");require("./index.cjs4.js");require("./index.cjs13.js");require("./index.cjs12.js");exports.changeLang=e.changeLang;exports.getLang=e.getLang;exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus;exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus;exports.initTranslate=e.initTranslate;
|
package/lib/translate.es.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import "./index.
|
|
3
|
-
import "./index.es7.js";
|
|
1
|
+
import { c as g, d as n, g as h, e as u, i as d } from "./index.es5.js";
|
|
2
|
+
import "./index.es11.js";
|
|
4
3
|
import "element-plus";
|
|
5
|
-
import "./index.es4.js";
|
|
6
|
-
import "./index.es8.js";
|
|
7
|
-
import "./index.es5.js";
|
|
8
4
|
import "vue";
|
|
9
|
-
import "./index.
|
|
10
|
-
import "./index.
|
|
5
|
+
import "./index.es10.js";
|
|
6
|
+
import "./index.es4.js";
|
|
7
|
+
import "./index.es13.js";
|
|
8
|
+
import "./index.es12.js";
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
g as changeLang,
|
|
11
|
+
n as getLang,
|
|
12
|
+
h as getWordByYxI18nThesaurus,
|
|
13
|
+
u as getZhWordByYxI18nThesaurus,
|
|
14
|
+
d as initTranslate
|
|
17
15
|
};
|
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.cjs11.js"),e=require("./index.cjs12.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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as r } from "./index.
|
|
2
|
-
import {
|
|
1
|
+
import { h as r } from "./index.es11.js";
|
|
2
|
+
import { a as i, e as t, g as l, i as m, b as p, n as y, r as g, y as n } from "./index.es12.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
export {
|
|
5
5
|
i as areColorsSimilar,
|
package/lib/yxIcon.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs11.js");require("element-plus");require("./index.cjs13.js");const e=require("./index.cjs3.js");exports.default=e.index;
|
package/lib/yxIcon.es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yxuse",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.39",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"yx"
|
|
6
6
|
],
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
"require": "./lib/hooks.cls.js",
|
|
72
72
|
"types": "./types/hooks/index.d.ts"
|
|
73
73
|
},
|
|
74
|
+
"./app": {
|
|
75
|
+
"import": "./lib/app.es.js",
|
|
76
|
+
"require": "./lib/app.cls.js",
|
|
77
|
+
"types": "./types/app/index.d.ts"
|
|
78
|
+
},
|
|
74
79
|
"./style": {
|
|
75
80
|
"import": "./lib/style.css",
|
|
76
81
|
"require": "./lib/style.css"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isWebApp: (key?: string) => boolean;
|
package/types/config/index.d.ts
CHANGED
|
@@ -3,4 +3,7 @@ type BASE = Record<string, URL>;
|
|
|
3
3
|
export declare const SYSTEM_HOME_PATH = "/cloud";
|
|
4
4
|
export declare const ttc: URL;
|
|
5
5
|
export declare const URL: BASE;
|
|
6
|
+
export declare const BC_THEME_NAME = "THEME";
|
|
7
|
+
export declare const BC_LANG_NAME = "LANG";
|
|
8
|
+
export declare const BC_SETTINGS_NAME = "SETTING";
|
|
6
9
|
export {};
|
package/types/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export * as translate from "./translate";
|
|
|
7
7
|
export * as yxi18n from "./yxi18n";
|
|
8
8
|
export * from "./directives";
|
|
9
9
|
export * from "./hooks";
|
|
10
|
-
export
|
|
10
|
+
export * from "./app";
|
|
11
|
+
export * from "./bc";
|
|
11
12
|
export * from "./components/type";
|
|
12
13
|
import * as utils from "./utils";
|
|
13
14
|
import * as api from "./api";
|
|
@@ -18,13 +19,16 @@ import * as translate from "./translate";
|
|
|
18
19
|
import * as yxi18n from "./yxi18n";
|
|
19
20
|
import * as yxHooks from "./hooks";
|
|
20
21
|
import * as yxIcon from "./yxIcon";
|
|
22
|
+
import * as app from "./app";
|
|
23
|
+
import * as BC from "./bc";
|
|
21
24
|
declare const _default: {
|
|
22
25
|
utils: typeof utils;
|
|
23
26
|
api: typeof api;
|
|
27
|
+
app: typeof app;
|
|
24
28
|
theme: typeof theme;
|
|
25
29
|
components: typeof components;
|
|
26
30
|
directives: typeof directives;
|
|
27
|
-
BC:
|
|
31
|
+
BC: typeof BC;
|
|
28
32
|
translate: typeof translate;
|
|
29
33
|
yxi18n: typeof yxi18n;
|
|
30
34
|
yxHooks: typeof yxHooks;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import type { ThemeDTO, YxuseOptions } from "./type.ts";
|
|
|
5
5
|
* @param isJumpLogin :是否在没有token或token过期时自动跳转至登录页
|
|
6
6
|
*/
|
|
7
7
|
export declare const install: (config: YxuseOptions) => Promise<void>;
|
|
8
|
+
export declare const saveCssVar: ({ themeCssVar, themeId }: {
|
|
9
|
+
themeCssVar: any;
|
|
10
|
+
themeId: any;
|
|
11
|
+
}) => void;
|
|
8
12
|
/**
|
|
9
13
|
* @description:修改主题
|
|
10
14
|
* @param theme 主题
|
|
@@ -14,6 +18,10 @@ export declare const changeTheme: (theme: ThemeDTO) => Promise<void>;
|
|
|
14
18
|
* @description:更新主题
|
|
15
19
|
*/
|
|
16
20
|
export declare const updateTheme: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* 注册主题变量
|
|
23
|
+
*/
|
|
24
|
+
export declare const setCssVar: (themeUrl: string) => Promise<any>;
|
|
17
25
|
/**
|
|
18
26
|
* @description:获取默认主题URl
|
|
19
27
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const initTranslate: ({ to, systemKey, translateApiUrl }: {
|
|
2
2
|
to: any;
|
|
3
3
|
systemKey: any;
|
|
4
|
-
translateApiUrl
|
|
4
|
+
translateApiUrl?: any;
|
|
5
5
|
}) => Promise<void>;
|
|
6
6
|
export declare const changeLang: (to: any) => Promise<void>;
|
|
7
7
|
export declare const getLang: () => Promise<any>;
|
package/lib/index.cjs2.js.gz
DELETED
|
Binary file
|
package/lib/index.cjs7.js.gz
DELETED
|
Binary file
|
package/lib/index.es2.js.gz
DELETED
|
Binary file
|
package/lib/index.es7.js.gz
DELETED
|
Binary file
|