yxuse 3.0.93 → 3.0.95

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/index.es11.js CHANGED
@@ -150,23 +150,23 @@ const getUserIsHaveBtnPower = (routeTag) => {
150
150
  const authButtonListGet = sessionStorage.getItem("ttcUserBtnList") ?? "[]";
151
151
  return JSON.parse(authButtonListGet).includes(routeTag);
152
152
  };
153
- let userConfig = null;
154
- const getUserConfig = async () => {
155
- if (userConfig) return userConfig;
153
+ const getUserSystemConfig = async () => {
156
154
  const data = await http.get(
157
155
  getSystemConfig("userConfigApiUrl"),
158
156
  {},
159
157
  {
160
158
  headers: { noLoading: true },
161
159
  customResHandler: (data2) => {
162
- return data2;
160
+ if (data2.isSuccess) {
161
+ setGlobalSystemConfig(data2.data);
162
+ return data2;
163
+ }
163
164
  }
164
165
  }
165
166
  );
166
- userConfig = data;
167
167
  return data;
168
168
  };
169
- const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
169
+ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
170
170
  __proto__: null,
171
171
  autoLogin,
172
172
  changeSystemConfig,
@@ -174,12 +174,12 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
174
174
  getLoginUrl,
175
175
  getSystemConfig,
176
176
  getToken,
177
- getUserConfig,
178
177
  getUserInfo,
179
178
  getUserIsHaveBtnPower,
180
179
  getUserPermissions,
181
180
  getUserRouteList,
182
181
  getUserRouter,
182
+ getUserSystemConfig,
183
183
  isProduction,
184
184
  jumpToHome,
185
185
  jumpToLogin,
@@ -188,6 +188,40 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
188
188
  setSystemInfo,
189
189
  setUserInfo
190
190
  }, Symbol.toStringTag, { value: "Module" }));
191
+ const GLOBAL_SYSTEM_CONFIG_KEY = "GlobalConfig";
192
+ const getGlobalName = (systemName = "ttc") => {
193
+ return `${systemName}${GLOBAL_SYSTEM_CONFIG_KEY}`;
194
+ };
195
+ const getStorage = (systemName) => {
196
+ return localStorage.getItem(`${getGlobalName(systemName)}`) ?? "{}";
197
+ };
198
+ const setStorage = (systemName, value) => {
199
+ localStorage.setItem(`${getGlobalName(systemName)}`, JSON.stringify(value));
200
+ };
201
+ const setGlobalSystemConfig = (config2, systemName = "ttc") => {
202
+ const GlobalState = getStorage(systemName);
203
+ const newGlobalState = { ...JSON.parse(GlobalState), ...config2 };
204
+ setStorage(systemName, newGlobalState);
205
+ yxSubscribe.publish({ type: "globalSystemConfigChange", data: newGlobalState });
206
+ };
207
+ const changeGlobalSystemConfig = (key, value, systemName = "ttc") => {
208
+ const GlobalState = getStorage(systemName);
209
+ const newGlobalState = { ...JSON.parse(GlobalState), [key]: value };
210
+ setStorage(systemName, newGlobalState);
211
+ };
212
+ const getGlobalSystemConfig = (key, systemName = "ttc") => {
213
+ const GlobalState = JSON.parse(getStorage(systemName));
214
+ if (key) {
215
+ return GlobalState[key] ?? "";
216
+ }
217
+ return GlobalState;
218
+ };
219
+ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
220
+ __proto__: null,
221
+ changeGlobalSystemConfig,
222
+ getGlobalSystemConfig,
223
+ setGlobalSystemConfig
224
+ }, Symbol.toStringTag, { value: "Module" }));
191
225
  let loadingInstance;
192
226
  const loadingOptions = {
193
227
  lock: true,
@@ -438,20 +472,55 @@ class YxHttp {
438
472
  }
439
473
  }
440
474
  const http = new YxHttp(config);
475
+ class YxSubscribe {
476
+ constructor() {
477
+ __publicField(this, "subscribers");
478
+ this.subscribers = {};
479
+ }
480
+ subscribe(sub, fn) {
481
+ if (!this.subscribers[sub]) {
482
+ this.subscribers[sub] = [];
483
+ }
484
+ this.subscribers[sub].push(fn);
485
+ }
486
+ unsubscribe(sub, fn) {
487
+ const subscribers = this.subscribers[sub];
488
+ if (!fn) return this.subscribers[sub] = [];
489
+ if (subscribers) {
490
+ const index2 = subscribers.indexOf(fn);
491
+ if (index2 !== -1) {
492
+ subscribers.splice(index2, 1);
493
+ }
494
+ }
495
+ }
496
+ publish(message) {
497
+ const subscribers = this.subscribers[message.type];
498
+ if (subscribers) {
499
+ subscribers.forEach((fn) => {
500
+ fn(message.data);
501
+ });
502
+ }
503
+ }
504
+ }
505
+ const yxSubscribe = new YxSubscribe();
441
506
  export {
442
507
  BC_LANG_NAME as B,
443
508
  URL as U,
444
509
  http as a,
445
- getUserConfig as b,
510
+ setGlobalSystemConfig as b,
446
511
  checkStatus as c,
447
- getUserIsHaveBtnPower as d,
448
- changeSystemConfig as e,
449
- getSystemConfig as f,
512
+ getGlobalSystemConfig as d,
513
+ getUserIsHaveBtnPower as e,
514
+ changeSystemConfig as f,
450
515
  getToken as g,
451
516
  hideFullScreenLoading as h,
452
- BC_THEME_NAME as i,
517
+ getSystemConfig as i,
453
518
  jumpToHome as j,
454
- setSystemConfig as k,
455
- index as l,
456
- showFullScreenLoading as s
519
+ BC_THEME_NAME as k,
520
+ setSystemConfig as l,
521
+ getUserSystemConfig as m,
522
+ index$1 as n,
523
+ index as o,
524
+ showFullScreenLoading as s,
525
+ yxSubscribe as y
457
526
  };
Binary file
package/lib/index.es13.js CHANGED
@@ -1,37 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- class YxSubscribe {
5
- constructor() {
6
- __publicField(this, "subscribers");
7
- this.subscribers = {};
1
+ import { a as http, U as URL } from "./index.es11.js";
2
+ const uploadResourceApi = (params, config) => http.post(`${URL["ttc"].INTEGRATED_BASE_URL}/file/upload`, params, config);
3
+ const getGroupListApi = () => http.get(
4
+ `${URL["ttc"].INTEGRATED_BASE_URL}/resource/group/list`,
5
+ {},
6
+ {
7
+ headers: { noLoading: true }
8
8
  }
9
- subscribe(sub, fn) {
10
- if (!this.subscribers[sub]) {
11
- this.subscribers[sub] = [];
12
- }
13
- this.subscribers[sub].push(fn);
14
- }
15
- unsubscribe(sub, fn) {
16
- const subscribers = this.subscribers[sub];
17
- if (!fn) return this.subscribers[sub] = [];
18
- if (subscribers) {
19
- const index = subscribers.indexOf(fn);
20
- if (index !== -1) {
21
- subscribers.splice(index, 1);
22
- }
23
- }
24
- }
25
- publish(message) {
26
- const subscribers = this.subscribers[message.type];
27
- if (subscribers) {
28
- subscribers.forEach((fn) => {
29
- fn(message.data);
30
- });
31
- }
32
- }
33
- }
34
- const yxSubscribe = new YxSubscribe();
9
+ );
10
+ const getResourceListApi = (groupUuid, sign) => http.get(`${URL["ttc"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });
11
+ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ __proto__: null,
13
+ getGroupListApi,
14
+ getResourceListApi,
15
+ uploadResourceApi
16
+ }, Symbol.toStringTag, { value: "Module" }));
35
17
  export {
36
- yxSubscribe as y
18
+ getResourceListApi as a,
19
+ getGroupListApi as g,
20
+ index as i,
21
+ uploadResourceApi as u
37
22
  };
package/lib/index.es2.js CHANGED
@@ -1,9 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { g as getToken, s as showFullScreenLoading, h as hideFullScreenLoading, c as checkStatus, a as http } from "./index.es11.js";
4
+ import { g as getToken, s as showFullScreenLoading, h as hideFullScreenLoading, c as checkStatus, a as http, y as yxSubscribe } from "./index.es11.js";
5
5
  import { a as areColorsSimilar, c as copyText, d as deepClone, e as enumToArray, g as getCownDownTime, b as getSelectOptions, i as isColorEqual, f as isDarkColor, n as notifyMessageToSystems, r as receiveMessage, u as useConfirm, y as yxMessage } from "./index.es12.js";
6
- import { y as yxSubscribe } from "./index.es13.js";
7
6
  import "element-plus";
8
7
  import "element-plus/es/components/message/style/index";
9
8
  import "element-plus/es/components/message-box/style/index";
package/lib/index.es3.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./index.es11.js";
2
2
  import "element-plus";
3
3
  import "element-plus/es/components/message/style/index";
4
+ import { g as getGroupListApi, a as getResourceListApi } from "./index.es13.js";
4
5
  import "element-plus/es/components/message-box/style/index";
5
6
  import "./vendor-dayjs.es.js";
6
7
  import "element-plus/es/components/loading/style/index";
7
8
  import "element-plus/es/components/message/style/css";
8
9
  import "element-plus/es/components/loading/style/css";
9
10
  import "./vendor-mqtt.es.js";
10
- import { g as getGroupListApi, a as getResourceListApi } from "./index.es14.js";
11
11
  const ICON_GROUP_NAME = "yxIcon";
12
12
  const initYxIcon = () => {
13
13
  getYxIconGroupUuid();
package/lib/index.es4.js CHANGED
@@ -1,48 +1,5 @@
1
- import { a as http, U as URL, l as index$2 } from "./index.es11.js";
2
- import { i as index$1 } from "./index.es14.js";
3
- import "element-plus";
4
- import "element-plus/es/components/message/style/index";
5
- import "element-plus/es/components/message-box/style/index";
6
- import "./vendor-dayjs.es.js";
7
- import { y as yxSubscribe } from "./index.es13.js";
8
- import "element-plus/es/components/loading/style/index";
9
- import "element-plus/es/components/message/style/css";
10
- import "element-plus/es/components/loading/style/css";
11
- import "./vendor-mqtt.es.js";
12
- const GLOBAL_SYSTEM_CONFIG_KEY = "GlobalConfig";
13
- const getGlobalName = (systemName = "ttc") => {
14
- return `${systemName}${GLOBAL_SYSTEM_CONFIG_KEY}`;
15
- };
16
- const getStorage = (systemName) => {
17
- return localStorage.getItem(`${getGlobalName(systemName)}`) ?? "{}";
18
- };
19
- const setStorage = (systemName, value) => {
20
- localStorage.setItem(`${getGlobalName(systemName)}`, JSON.stringify(value));
21
- };
22
- const setGlobalSystemConfig = (config, systemName = "ttc") => {
23
- const GlobalState = getStorage(systemName);
24
- const newGlobalState = { ...JSON.parse(GlobalState), ...config };
25
- setStorage(systemName, newGlobalState);
26
- yxSubscribe.publish({ type: "globalSystemConfigChange", data: newGlobalState });
27
- };
28
- const changeGlobalSystemConfig = (key, value, systemName = "ttc") => {
29
- const GlobalState = getStorage(systemName);
30
- const newGlobalState = { ...JSON.parse(GlobalState), [key]: value };
31
- setStorage(systemName, newGlobalState);
32
- };
33
- const getGlobalSystemConfig = (key, systemName = "ttc") => {
34
- const GlobalState = JSON.parse(getStorage(systemName));
35
- if (key) {
36
- return GlobalState[key] ?? "";
37
- }
38
- return GlobalState;
39
- };
40
- const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
- __proto__: null,
42
- changeGlobalSystemConfig,
43
- getGlobalSystemConfig,
44
- setGlobalSystemConfig
45
- }, Symbol.toStringTag, { value: "Module" }));
1
+ import { a as http, U as URL, n as index$1, o as index$2 } from "./index.es11.js";
2
+ import { i as index } from "./index.es13.js";
46
3
  const getUserSelectSatelliteList = async (systemName = "ttc") => {
47
4
  const data = await http.get(`${URL[systemName].INTEGRATED_BASE_URL}/basic/data/satellite/select`);
48
5
  return data;
@@ -59,9 +16,9 @@ const getCommentUntreatedCount = async (systemName = "ttc") => {
59
16
  };
60
17
  const api2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
61
18
  __proto__: null,
62
- assets: index$1,
63
- auth: index$2,
64
- config: index,
19
+ assets: index,
20
+ auth: index$1,
21
+ config: index$2,
65
22
  getCommentUntreatedCount,
66
23
  getUserSelectAnteList,
67
24
  getUserSelectSatelliteList,
@@ -69,11 +26,8 @@ const api2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
69
26
  }, Symbol.toStringTag, { value: "Module" }));
70
27
  export {
71
28
  api2 as a,
72
- getCommentUntreatedCount as b,
73
- getUserThemeList as c,
74
- getUserSelectSatelliteList as d,
75
- getUserSelectAnteList as e,
76
- getGlobalSystemConfig as g,
77
- index as i,
78
- setGlobalSystemConfig as s
29
+ getUserThemeList as b,
30
+ getUserSelectSatelliteList as c,
31
+ getUserSelectAnteList as d,
32
+ getCommentUntreatedCount as g
79
33
  };
package/lib/index.es5.js CHANGED
@@ -8,7 +8,7 @@ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot
8
8
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var _elId;
11
- import { b as getCommentUntreatedCount, c as getUserThemeList } from "./index.es4.js";
11
+ import { g as getCommentUntreatedCount, b as getUserThemeList } from "./index.es4.js";
12
12
  import { defineComponent, useSlots, useAttrs, ref, onMounted, nextTick, watch, onBeforeMount, createBlock, openBlock, resolveDynamicComponent, createVNode, Fragment, resolveComponent, mergeProps, withDirectives, withModifiers, isVNode, h, createApp, reactive, createElementBlock, createElementVNode, createTextVNode, unref, getCurrentInstance, onUnmounted, createStaticVNode, toDisplayString, vShow, Transition, withCtx, normalizeClass, createCommentVNode, normalizeStyle, renderList, useCssVars, version, onActivated, onDeactivated, renderSlot } from "vue";
13
13
  import * as XLSX from "xlsx";
14
14
  import "./vendor-file-saver.es.js";
@@ -26,14 +26,13 @@ import "element-plus/es/components/scrollbar/style/index";
26
26
  import "element-plus/es/components/checkbox-group/style/index";
27
27
  import "element-plus/es/components/checkbox/style/index";
28
28
  import "element-plus/es/components/button/style/index";
29
- import { e as changeSystemConfig, f as getSystemConfig, a as http, B as BC_LANG_NAME, i as BC_THEME_NAME, k as setSystemConfig } from "./index.es11.js";
29
+ import { f as changeSystemConfig, i as getSystemConfig, a as http, B as BC_LANG_NAME, k as BC_THEME_NAME, y as yxSubscribe, l as setSystemConfig, m as getUserSystemConfig } from "./index.es11.js";
30
30
  import { d as deepClone, i as isColorEqual } from "./index.es12.js";
31
31
  import "element-plus/es/components/message/style/index";
32
32
  import "element-plus/es/components/loading/style/index";
33
33
  import "element-plus/es/components/message/style/css";
34
34
  import "element-plus/es/components/loading/style/css";
35
35
  import "./vendor-mqtt.es.js";
36
- import { y as yxSubscribe } from "./index.es13.js";
37
36
  import { l as localforage } from "./vendor-localforage.es.js";
38
37
  import "element-plus/es/components/message-box/style/index";
39
38
  import { d as dayjs } from "./vendor-dayjs.es.js";
@@ -61,7 +60,8 @@ const defaultConfig = {
61
60
  isRenderLang: false,
62
61
  systemKey: "",
63
62
  isTranslateApi: false,
64
- whitelistTranslateApi: []
63
+ whitelistTranslateApi: [],
64
+ autoGetSystemConfig: true
65
65
  };
66
66
  const exportToExcel = ({ header, tableData, fileName }) => {
67
67
  const tHeader = header.map((col) => col.label);
@@ -3110,8 +3110,14 @@ const install = async (config2) => {
3110
3110
  updateTheme();
3111
3111
  }
3112
3112
  };
3113
- const handleSystemConfig = (config2) => {
3114
- setSystemConfig({ ...config2 });
3113
+ const handleSystemConfig = async (options) => {
3114
+ setSystemConfig({ ...options });
3115
+ if (options.autoGetSystemConfig) {
3116
+ try {
3117
+ await getUserSystemConfig();
3118
+ } catch (error) {
3119
+ }
3120
+ }
3115
3121
  };
3116
3122
  const initTtcFont = () => {
3117
3123
  const style = document.createElement("style");
Binary file
package/lib/index.es6.js CHANGED
@@ -5,7 +5,7 @@ import "./vendor-file-saver.es.js";
5
5
  import "xlsx-js-style";
6
6
  import "./vendor-sortablejs.es.js";
7
7
  import { genFileId } from "element-plus";
8
- import { j as jumpToHome, b as getUserConfig } from "./index.es11.js";
8
+ import { j as jumpToHome, b as setGlobalSystemConfig, d as getGlobalSystemConfig } from "./index.es11.js";
9
9
  import "element-plus/es/components/message/style/index";
10
10
  import "element-plus/es/components/message-box/style/index";
11
11
  import "./vendor-dayjs.es.js";
@@ -13,9 +13,7 @@ import "element-plus/es/components/loading/style/index";
13
13
  import "element-plus/es/components/message/style/css";
14
14
  import "element-plus/es/components/loading/style/css";
15
15
  import "./vendor-mqtt.es.js";
16
- import { u as uploadResourceApi } from "./index.es14.js";
17
- import { s as setGlobalSystemConfig, g as getGlobalSystemConfig } from "./index.es4.js";
18
- import { y as yxSubscribe } from "./index.es13.js";
16
+ import { u as uploadResourceApi } from "./index.es13.js";
19
17
  const _hoisted_1$3 = { class: "dialog-footer flex justify-end" };
20
18
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
21
19
  __name: "index",
@@ -417,16 +415,10 @@ const _sfc_main = {
417
415
  customConfig: getGlobalSystemConfig()
418
416
  };
419
417
  },
420
- async created() {
421
- yxSubscribe.subscribe("globalSystemConfigChange", () => {
422
- this.customConfig = getGlobalSystemConfig();
423
- });
424
- await this.getSystemConfig();
425
- },
426
418
  methods: {
427
419
  async getSystemConfig() {
428
420
  try {
429
- const data = await getUserConfig();
421
+ const data = await (void 0)();
430
422
  if (!data.isSuccess) return;
431
423
  this.customConfig = {
432
424
  ...defaultCustomConfig,
@@ -463,7 +455,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
463
455
  }, toDisplayString((_d = $data.customConfig) == null ? void 0 : _d.title), 5)) : createCommentVNode("", true)
464
456
  ], 2);
465
457
  }
466
- const LogoTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f9e99774"]]);
458
+ const LogoTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ca535457"]]);
467
459
  class LogoTitleRender {
468
460
  constructor(props, domId = "system-logo-title") {
469
461
  this.render(props, domId);
Binary file
package/lib/index.es7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createI18n } from "vue-i18n";
2
- import { f as getSystemConfig } from "./index.es11.js";
2
+ import { i as getSystemConfig } from "./index.es11.js";
3
3
  import "element-plus";
4
4
  import "element-plus/es/components/message/style/index";
5
5
  import "element-plus/es/components/message-box/style/index";
package/lib/index.es8.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as getUserIsHaveBtnPower } from "./index.es11.js";
1
+ import { e as getUserIsHaveBtnPower } from "./index.es11.js";
2
2
  const auth = {
3
3
  mounted(el, binding) {
4
4
  controlShowByUserPower(el, binding);
package/lib/theme.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs4.js"),require("vue"),require("xlsx"),require("./vendor-file-saver.cjs.js"),require("xlsx-js-style"),require("./vendor-sortablejs.cjs.js"),require("element-plus"),require("./index.cjs11.js"),require("./index.cjs12.js"),require("./index.cjs13.js"),require("element-plus/es/components/message/style/index"),require("element-plus/es/components/loading/style/index"),require("element-plus/es/components/message/style/css"),require("element-plus/es/components/loading/style/css"),require("./vendor-mqtt.cjs.js"),require("./index.cjs7.js"),require("element-plus/es/components/message-box/style/index"),require("element-plus/es/components/dialog/style/index"),require("element-plus/es/components/button/style/index"),require("element-plus/es/components/drawer/style/index"),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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs4.js"),require("vue"),require("xlsx"),require("./vendor-file-saver.cjs.js"),require("xlsx-js-style"),require("./vendor-sortablejs.cjs.js"),require("element-plus"),require("./index.cjs11.js"),require("./index.cjs12.js"),require("element-plus/es/components/message/style/index"),require("element-plus/es/components/loading/style/index"),require("element-plus/es/components/message/style/css"),require("element-plus/es/components/loading/style/css"),require("./vendor-mqtt.cjs.js"),require("./index.cjs7.js"),require("element-plus/es/components/message-box/style/index"),require("element-plus/es/components/dialog/style/index"),require("element-plus/es/components/button/style/index"),require("element-plus/es/components/drawer/style/index"),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
@@ -8,7 +8,6 @@ import "./vendor-sortablejs.es.js";
8
8
  import "element-plus";
9
9
  import "./index.es11.js";
10
10
  import "./index.es12.js";
11
- import "./index.es13.js";
12
11
  import "element-plus/es/components/message/style/index";
13
12
  import "element-plus/es/components/loading/style/index";
14
13
  import "element-plus/es/components/message/style/css";
package/lib/utils.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs11.js"),s=require("./index.cjs12.js"),o=require("./index.cjs13.js"),r=require("./index.cjs2.js");exports.http=e.http,exports.areColorsSimilar=s.areColorsSimilar,exports.copyText=s.copyText,exports.deepClone=s.deepClone,exports.enumToArray=s.enumToArray,exports.getCownDownTime=s.getCownDownTime,exports.getSelectOptions=s.getSelectOptions,exports.isColorEqual=s.isColorEqual,exports.isDarkColor=s.isDarkColor,exports.notifyMessageToSystems=s.notifyMessageToSystems,exports.receiveMessage=s.receiveMessage,exports.useConfirm=s.useConfirm,exports.yxMessage=s.yxMessage,exports.yxSubscribe=o.yxSubscribe,exports.MQ=r.MQ,exports.WS=r.Ws,exports.yxFecth=r.yxFecth;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs11.js"),s=require("./index.cjs12.js"),o=require("./index.cjs2.js");exports.http=e.http,exports.yxSubscribe=e.yxSubscribe,exports.areColorsSimilar=s.areColorsSimilar,exports.copyText=s.copyText,exports.deepClone=s.deepClone,exports.enumToArray=s.enumToArray,exports.getCownDownTime=s.getCownDownTime,exports.getSelectOptions=s.getSelectOptions,exports.isColorEqual=s.isColorEqual,exports.isDarkColor=s.isDarkColor,exports.notifyMessageToSystems=s.notifyMessageToSystems,exports.receiveMessage=s.receiveMessage,exports.useConfirm=s.useConfirm,exports.yxMessage=s.yxMessage,exports.MQ=o.MQ,exports.WS=o.Ws,exports.yxFecth=o.yxFecth;
package/lib/utils.es.js CHANGED
@@ -1,6 +1,5 @@
1
- import { a } from "./index.es11.js";
2
- import { a as a2, c, d, e, g, b, i, f, n, r, u, y } from "./index.es12.js";
3
- import { y as y2 } from "./index.es13.js";
1
+ import { a, y } from "./index.es11.js";
2
+ import { a as a2, c, d, e, g, b, i, f, n, r, u, y as y2 } from "./index.es12.js";
4
3
  import { M, W, y as y3 } from "./index.es2.js";
5
4
  export {
6
5
  M as MQ,
@@ -18,6 +17,6 @@ export {
18
17
  r as receiveMessage,
19
18
  u as useConfirm,
20
19
  y3 as yxFecth,
21
- y as yxMessage,
22
- y2 as yxSubscribe
20
+ y2 as yxMessage,
21
+ y as yxSubscribe
23
22
  };
package/lib/yxIcon.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.cjs11.js"),require("element-plus"),require("element-plus/es/components/message/style/index"),require("element-plus/es/components/message-box/style/index"),require("./vendor-dayjs.cjs.js"),require("element-plus/es/components/loading/style/index"),require("element-plus/es/components/message/style/css"),require("element-plus/es/components/loading/style/css"),require("./vendor-mqtt.cjs.js"),require("./index.cjs14.js");const e=require("./index.cjs3.js");exports.default=e.index;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.cjs11.js"),require("element-plus"),require("element-plus/es/components/message/style/index"),require("./index.cjs13.js"),require("element-plus/es/components/message-box/style/index"),require("./vendor-dayjs.cjs.js"),require("element-plus/es/components/loading/style/index"),require("element-plus/es/components/message/style/css"),require("element-plus/es/components/loading/style/css"),require("./vendor-mqtt.cjs.js");const e=require("./index.cjs3.js");exports.default=e.index;
package/lib/yxIcon.es.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./index.es11.js";
2
2
  import "element-plus";
3
3
  import "element-plus/es/components/message/style/index";
4
+ import "./index.es13.js";
4
5
  import "element-plus/es/components/message-box/style/index";
5
6
  import "./vendor-dayjs.es.js";
6
7
  import "element-plus/es/components/loading/style/index";
7
8
  import "element-plus/es/components/message/style/css";
8
9
  import "element-plus/es/components/loading/style/css";
9
10
  import "./vendor-mqtt.es.js";
10
- import "./index.es14.js";
11
11
  import { i } from "./index.es3.js";
12
12
  export {
13
13
  i as default