halo-fe 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -2,14 +2,14 @@ var yt = Object.defineProperty;
2
2
  var vt = (u, e, t) => e in u ? yt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var n = (u, e, t) => vt(u, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { _ as Be } from "./assets/underscore-B0BCaBxV.js";
5
- import { defineAsyncComponent as bt, reactive as He, defineComponent as Q, toRefs as re, openBlock as R, createElementBlock as B, createElementVNode as D, toDisplayString as pe, unref as m, renderSlot as fe, createCommentVNode as et, ref as j, onMounted as Le, onUnmounted as be, normalizeStyle as me, watch as H, normalizeClass as Ie, createTextVNode as wt, createBlock as tt, withCtx as Ve, mergeModels as Je, useModel as st, nextTick as Xe, withDirectives as xt, vShow as St, createVNode as Ee, createStaticVNode as kt, isRef as Pe, Fragment as Et, renderList as Ct, computed as Ce } from "vue";
5
+ import { defineAsyncComponent as bt, reactive as He, defineComponent as Q, toRefs as re, openBlock as R, createElementBlock as B, createElementVNode as D, toDisplayString as pe, unref as m, renderSlot as fe, createCommentVNode as et, ref as j, onMounted as Le, onUnmounted as be, normalizeStyle as me, watch as H, normalizeClass as Ae, createTextVNode as wt, createBlock as tt, withCtx as Ve, mergeModels as Je, useModel as st, nextTick as Xe, withDirectives as xt, vShow as St, createVNode as Ce, createStaticVNode as kt, isRef as Pe, Fragment as Ct, renderList as Et, computed as Ee } from "vue";
6
6
  import { _ as Tt } from "./assets/underscore.string-oDfap0sE.js";
7
7
  import { a as $t } from "./assets/clone-DtpAsLoe.js";
8
8
  import { F as Lt } from "./assets/file-saver-Cnua3zoa.js";
9
9
  import { l as Oe } from "./assets/@monaco-editor-BCDRi0Ti.js";
10
10
  import { h as se } from "./assets/moment-h96o7c8I.js";
11
- import { c as It } from "./assets/vue-i18n-CLr3brPz.js";
12
- import { L as At } from "./assets/liquidjs-C-LVcoaY.js";
11
+ import { c as At } from "./assets/vue-i18n-CLr3brPz.js";
12
+ import { L as It } from "./assets/liquidjs-C-LVcoaY.js";
13
13
  class U {
14
14
  }
15
15
  /**
@@ -1444,11 +1444,6 @@ class Rt {
1444
1444
  n(this, "value");
1445
1445
  }
1446
1446
  }
1447
- let Hl = () => new Promise((u, e) => {
1448
- import("echarts").then((t) => {
1449
- u(t);
1450
- });
1451
- });
1452
1447
  const O = class O {
1453
1448
  };
1454
1449
  /**
@@ -1508,19 +1503,19 @@ n(O, "localeTime", (e) => {
1508
1503
  return se(e).add(s, "minutes").toDate();
1509
1504
  });
1510
1505
  let le = O;
1511
- const C = class C {
1506
+ const E = class E {
1512
1507
  };
1513
1508
  /**
1514
1509
  * 从树结构数据中,递归获取指定主键的对象
1515
1510
  */
1516
- n(C, "getById", (e, t, s, l) => {
1511
+ n(E, "getById", (e, t, s, l) => {
1517
1512
  if (!s)
1518
1513
  return null;
1519
1514
  let r = s.find((i) => i[t] == e) || null;
1520
1515
  if (r != null)
1521
1516
  return r;
1522
1517
  for (let i = 0; i < s.length; i++) {
1523
- let a = C.getById(e, t, s[i][l], l);
1518
+ let a = E.getById(e, t, s[i][l], l);
1524
1519
  if (a != null) {
1525
1520
  r = a;
1526
1521
  break;
@@ -1530,17 +1525,17 @@ n(C, "getById", (e, t, s, l) => {
1530
1525
  }), /**
1531
1526
  * 树节点
1532
1527
  */
1533
- n(C, "getByIds", (e, t, s, l) => {
1528
+ n(E, "getByIds", (e, t, s, l) => {
1534
1529
  let r = ge.distinct(e, (a) => a), i = [];
1535
1530
  return r.forEach((a) => {
1536
- let o = C.getById(a, t, s, l);
1531
+ let o = E.getById(a, t, s, l);
1537
1532
  i.push(o);
1538
1533
  }), i;
1539
1534
  }), /**
1540
1535
  * 找出指定层级集合中,指定对象的下一个对象
1541
1536
  */
1542
- n(C, "getNextById", (e, t, s, l) => {
1543
- let r = C.getById(e, t, s, l), i = C.getParentsById(e, t, s, l);
1537
+ n(E, "getNextById", (e, t, s, l) => {
1538
+ let r = E.getById(e, t, s, l), i = E.getParentsById(e, t, s, l);
1544
1539
  if (i.length == 0) {
1545
1540
  if (s.length == 1)
1546
1541
  return null;
@@ -1555,43 +1550,43 @@ n(C, "getNextById", (e, t, s, l) => {
1555
1550
  }), /**
1556
1551
  * 获取兄弟节点
1557
1552
  */
1558
- n(C, "getSiblingsById", (e, t, s, l) => {
1559
- let r = C.getParentById(e, t, s, l);
1553
+ n(E, "getSiblingsById", (e, t, s, l) => {
1554
+ let r = E.getParentById(e, t, s, l);
1560
1555
  return r == null ? s : r[l];
1561
1556
  }), /**
1562
1557
  * 获取父节点
1563
1558
  */
1564
- n(C, "getParentById", (e, t, s, l) => {
1565
- let r = C.getParentsById(e, t, s, l, !1);
1559
+ n(E, "getParentById", (e, t, s, l) => {
1560
+ let r = E.getParentsById(e, t, s, l, !1);
1566
1561
  return r[r.length - 1];
1567
1562
  }), /**
1568
1563
  * 从树结构数据中,递归获取指定主键的父元素集合
1569
1564
  */
1570
- n(C, "getParentsById", (e, t, s, l, r = !1) => {
1565
+ n(E, "getParentsById", (e, t, s, l, r = !1) => {
1571
1566
  let i = [];
1572
1567
  return s == null || lt(e, t, s, l, i, r), i;
1573
1568
  }), /**
1574
1569
  * 获取当前节点的所有孩子节点的集合
1575
1570
  */
1576
- n(C, "getChildrenById", (e, t, s, l, r = !1) => {
1577
- let i = C.getById(e, t, s, l), a = [];
1571
+ n(E, "getChildrenById", (e, t, s, l, r = !1) => {
1572
+ let i = E.getById(e, t, s, l), a = [];
1578
1573
  return r && a.push(i), Me(i, l, a), a;
1579
1574
  }), /**
1580
1575
  * 获取当前节点的所有孩子节点的集合
1581
1576
  */
1582
- n(C, "getChildren", (e, t, s = !1) => {
1577
+ n(E, "getChildren", (e, t, s = !1) => {
1583
1578
  let l = [];
1584
1579
  return s && l.push(e), Me(e, t, l), l;
1585
1580
  }), /**
1586
1581
  * 搜索指定文本的树结构
1587
1582
  */
1588
- n(C, "searchTree", (e, t, s, l) => {
1583
+ n(E, "searchTree", (e, t, s, l) => {
1589
1584
  let r = [];
1590
1585
  if (!t)
1591
1586
  return r;
1592
1587
  let i = e ? e.toUpperCase() : "", a = U.isString(l) ? [l] : l;
1593
1588
  for (let o of t) {
1594
- let c = !1, h = C.getChildren(o, s, !0);
1589
+ let c = !1, h = E.getChildren(o, s, !0);
1595
1590
  for (let d of h) {
1596
1591
  for (let p of a) {
1597
1592
  let g = d[p];
@@ -1604,7 +1599,7 @@ n(C, "searchTree", (e, t, s, l) => {
1604
1599
  break;
1605
1600
  }
1606
1601
  if (c) {
1607
- let d = C.searchTree(e, o[s], s, l), p = { ...o, [s]: d };
1602
+ let d = E.searchTree(e, o[s], s, l), p = { ...o, [s]: d };
1608
1603
  r.push(p);
1609
1604
  }
1610
1605
  }
@@ -1612,8 +1607,8 @@ n(C, "searchTree", (e, t, s, l) => {
1612
1607
  }), /**
1613
1608
  * 删除指定子元素
1614
1609
  */
1615
- n(C, "removeById", (e, t, s, l) => {
1616
- let r = C.getById(e, t, s, l), i = C.getParentsById(e, t, s, l);
1610
+ n(E, "removeById", (e, t, s, l) => {
1611
+ let r = E.getById(e, t, s, l), i = E.getParentsById(e, t, s, l);
1617
1612
  if (i.length == 0) {
1618
1613
  ge.remove(s, r);
1619
1614
  return;
@@ -1623,12 +1618,12 @@ n(C, "removeById", (e, t, s, l) => {
1623
1618
  }), /**
1624
1619
  * 获取树结构扁平化后的节点信息
1625
1620
  */
1626
- n(C, "getFlat", (e, t) => {
1621
+ n(E, "getFlat", (e, t) => {
1627
1622
  let s = [...e];
1628
1623
  for (let l = 0; l < e.length; l++) {
1629
1624
  let i = e[l][t];
1630
1625
  if (i.length > 0) {
1631
- let a = C.getFlat(i, t);
1626
+ let a = E.getFlat(i, t);
1632
1627
  s.push(...a);
1633
1628
  }
1634
1629
  }
@@ -1636,20 +1631,20 @@ n(C, "getFlat", (e, t) => {
1636
1631
  }), /**
1637
1632
  * 对树结点的数据进行重新映射,映射得到新的Tree数组
1638
1633
  */
1639
- n(C, "map", (e, t, s, l) => {
1634
+ n(E, "map", (e, t, s, l) => {
1640
1635
  let r = [];
1641
1636
  for (let i = 0; i < e.length; i++) {
1642
1637
  let a = e[i], o = l(a);
1643
1638
  r.push(o);
1644
1639
  let c = a[t];
1645
1640
  if (c && c.length > 0) {
1646
- let h = C.map(c, t, s, l);
1641
+ let h = E.map(c, t, s, l);
1647
1642
  o[s] = h;
1648
1643
  }
1649
1644
  }
1650
1645
  return r;
1651
1646
  });
1652
- let Re = C;
1647
+ let Re = E;
1653
1648
  function lt(u, e, t, s, l, r) {
1654
1649
  for (let i = 0; i < t.length; i++) {
1655
1650
  let a = t[i];
@@ -2343,7 +2338,7 @@ class Vt extends F {
2343
2338
  super.open(), super.instances = [new Pt(), new Ut(), new qt(), new qe()];
2344
2339
  }
2345
2340
  }
2346
- class er {
2341
+ class Hl {
2347
2342
  constructor() {
2348
2343
  /**
2349
2344
  * 表名
@@ -2367,7 +2362,6 @@ class er {
2367
2362
  }
2368
2363
  class nt {
2369
2364
  constructor() {
2370
- //#region 加载资源
2371
2365
  /**
2372
2366
  * 异步加载脚本/样式内容,把内容处理为行内html
2373
2367
  * 这种方式,依赖的内部资源,会从当前站点加载
@@ -2411,7 +2405,7 @@ class nt {
2411
2405
  return await Promise.all(s);
2412
2406
  });
2413
2407
  }
2414
- //#endregion
2408
+ //#region 加载
2415
2409
  async loadFilesAsync(e, t) {
2416
2410
  let s = [];
2417
2411
  for (let l of t)
@@ -2439,6 +2433,10 @@ class zt extends nt {
2439
2433
  let t = ["/crypto-js.js"];
2440
2434
  return await super.loadFilesAsync("/assets/crypto-js", t), window.CryptoJS;
2441
2435
  }
2436
+ async getECharts() {
2437
+ let t = ["/echarts.min.js"];
2438
+ return await super.loadFilesAsync("/assets/echarts", t), window.echarts;
2439
+ }
2442
2440
  async getElementPlus() {
2443
2441
  let t = ["/index.css", "/theme-chalk/dark/css-vars.css"];
2444
2442
  await super.loadFilesAsync("/assets/element-plus", t);
@@ -2487,6 +2485,10 @@ class Kt extends nt {
2487
2485
  let t = ["/crypto-js.js"];
2488
2486
  return await super.loadFilesAsync(`${this.jdCdn}/crypto-js@4.2.0`, t), window.CryptoJS;
2489
2487
  }
2488
+ async getECharts() {
2489
+ let t = ["/dist/echarts.min.js"];
2490
+ return await super.loadFilesAsync(`${this.jdCdn}/echarts@5.5.1`, t), window.echarts;
2491
+ }
2490
2492
  async getElementPlus() {
2491
2493
  let t = [
2492
2494
  "/index.css",
@@ -3391,7 +3393,7 @@ class ks extends Ss {
3391
3393
  await this.provider.deleteAsync("anonymous");
3392
3394
  }
3393
3395
  }
3394
- class Es {
3396
+ class Cs {
3395
3397
  constructor() {
3396
3398
  //#region 属性
3397
3399
  n(this, "type", "Secret");
@@ -3424,7 +3426,7 @@ class Es {
3424
3426
  }
3425
3427
  }
3426
3428
  let S = null;
3427
- class Cs {
3429
+ class Es {
3428
3430
  /**
3429
3431
  * 只实例化一次
3430
3432
  */
@@ -3454,7 +3456,7 @@ class Cs {
3454
3456
  let s = S.t_title(), l;
3455
3457
  s ? e ? t ? l = `${e}(${t}) - ${s}` : l = `${e} - ${s}` : l = s : t ? l = `${e}(${t})` : l = e, document.title = l;
3456
3458
  });
3457
- S = this, S.i18n = It({
3459
+ S = this, S.i18n = At({
3458
3460
  locale: rt.getLanguage(),
3459
3461
  //未载入配置前的语言
3460
3462
  messages: {},
@@ -3743,7 +3745,7 @@ class Ls {
3743
3745
  this.logs = [];
3744
3746
  }
3745
3747
  }
3746
- class Is {
3748
+ class As {
3747
3749
  constructor() {
3748
3750
  if (typeof window > "u")
3749
3751
  return;
@@ -3752,8 +3754,8 @@ class Is {
3752
3754
  this[t] = e[t];
3753
3755
  }
3754
3756
  }
3755
- let Ae = new Is();
3756
- class As {
3757
+ let Ie = new As();
3758
+ class Is {
3757
3759
  constructor() {
3758
3760
  //#region 属性
3759
3761
  n(this, "loaded", !1);
@@ -3827,7 +3829,7 @@ class As {
3827
3829
  return L.get("/app/setting").then(({ data: e }) => (Object.keys(e).forEach((t) => {
3828
3830
  let s = e[t];
3829
3831
  s && (this[t] = s);
3830
- }), N.addClass(document.documentElement, this.theme, Ae.web.theme), je.emits({ theme: this.theme }), Promise.resolve(e))).catch((e) => Promise.reject(e));
3832
+ }), N.addClass(document.documentElement, this.theme, Ie.web.theme), je.emits({ theme: this.theme }), Promise.resolve(e))).catch((e) => Promise.reject(e));
3831
3833
  }
3832
3834
  }
3833
3835
  class Os {
@@ -3855,10 +3857,10 @@ class Os {
3855
3857
  * 登录后,连接Socket
3856
3858
  */
3857
3859
  async connect() {
3858
- if (!Ae.api.ws)
3860
+ if (!Ie.api.ws)
3859
3861
  return;
3860
3862
  if (this.socket == null || this.reconnect) {
3861
- let t = Ae.api.ws, s = new ot();
3863
+ let t = Ie.api.ws, s = new ot();
3862
3864
  s.path = t, s.method = "GET", await L.onRequest(s);
3863
3865
  let l = s.getHeader("Authorization"), r = W.encode(l), i = `${t}?authorization=${r}`;
3864
3866
  this.socket = new WebSocket(i);
@@ -3869,7 +3871,7 @@ class Os {
3869
3871
  }, this.socket.onmessage = (t) => {
3870
3872
  this.handler && this.handler(t);
3871
3873
  }, this.socket.onerror = (t) => {
3872
- this.reconnect = !0, console.warn(`Socket连接失败:${Ae.api.ws}`);
3874
+ this.reconnect = !0, console.warn(`Socket连接失败:${Ie.api.ws}`);
3873
3875
  }, this.socket.onclose = (t) => {
3874
3876
  this.connected = !1, this.reconnect && (e = setTimeout(async () => await this.connect(), 1e3));
3875
3877
  };
@@ -4019,7 +4021,7 @@ class js {
4019
4021
  });
4020
4022
  }
4021
4023
  }
4022
- class tr extends F {
4024
+ class er extends F {
4023
4025
  get instances() {
4024
4026
  return [];
4025
4027
  }
@@ -4033,7 +4035,7 @@ class tr extends F {
4033
4035
  return null;
4034
4036
  }
4035
4037
  }
4036
- let q = new Ts(), sr = He(new js()), lr = new $s(), G = new Cs(), Rs = new Ls(), de = He(new As()), _s = new Os(), Bs = new Ds(), Ps = async (u) => {
4038
+ let q = new Ts(), tr = He(new js()), sr = new $s(), G = new Es(), Rs = new Ls(), de = He(new Is()), _s = new Os(), Bs = new Ds(), Ps = async (u) => {
4037
4039
  u.i18nSvc != null && (G = u.i18nSvc, Us = G.t, Fs = G.t_exists, Ms = G.t_sys, Ns = G.t_enum, qs = G.t_field, Vs = G.t_field_choose_placeholder, zs = G.t_field_placeholder, Ks = G.t_table, Ws = G.t_module, Js = G.t_menu);
4038
4040
  }, {
4039
4041
  t: Us,
@@ -4052,7 +4054,7 @@ class Xs extends F {
4052
4054
  * 获取实例
4053
4055
  */
4054
4056
  get instances() {
4055
- return [new Es(), new ws(), new xs(), new bs(), new ks()];
4057
+ return [new Cs(), new ws(), new xs(), new bs(), new ks()];
4056
4058
  }
4057
4059
  /**
4058
4060
  * 获取指定SSO实例
@@ -4137,7 +4139,7 @@ class Hs extends Zs {
4137
4139
  n(this, "type", "Liquid");
4138
4140
  }
4139
4141
  async render(t, s) {
4140
- let l = new At(), r = l.parse(t);
4142
+ let l = new It(), r = l.parse(t);
4141
4143
  return await l.render(r, s);
4142
4144
  }
4143
4145
  }
@@ -4146,7 +4148,7 @@ class el extends F {
4146
4148
  return [new Hs()];
4147
4149
  }
4148
4150
  }
4149
- class rr extends F {
4151
+ class lr extends F {
4150
4152
  get instances() {
4151
4153
  return [];
4152
4154
  }
@@ -4191,7 +4193,7 @@ class sl extends ct {
4191
4193
  return "";
4192
4194
  }
4193
4195
  }
4194
- class nr extends F {
4196
+ class rr extends F {
4195
4197
  get instances() {
4196
4198
  return [new sl(), new tl()];
4197
4199
  }
@@ -4324,7 +4326,7 @@ class il {
4324
4326
  const al = { class: "ha-empty" }, ol = { class: "empty-message" }, ul = {
4325
4327
  key: 0,
4326
4328
  class: "empty-content"
4327
- }, ir = /* @__PURE__ */ Q({
4329
+ }, nr = /* @__PURE__ */ Q({
4328
4330
  __name: "Empty",
4329
4331
  props: {
4330
4332
  message: { type: String, default: "暂无数据" },
@@ -4362,7 +4364,7 @@ class cl extends pt {
4362
4364
  n(this, "affix");
4363
4365
  }
4364
4366
  }
4365
- class ar extends pt {
4367
+ class ir extends pt {
4366
4368
  constructor(t, s, l, r) {
4367
4369
  super(t, s);
4368
4370
  n(this, "width");
@@ -4522,7 +4524,7 @@ class gt {
4522
4524
  }
4523
4525
  //#endregion
4524
4526
  }
4525
- class or {
4527
+ class ar {
4526
4528
  constructor() {
4527
4529
  n(this, "events", {});
4528
4530
  /**
@@ -4644,14 +4646,14 @@ class or {
4644
4646
  clearTimeout(this.timer);
4645
4647
  }
4646
4648
  }
4647
- class ur {
4649
+ class or {
4648
4650
  /**
4649
4651
  * 对比数据变动
4650
4652
  */
4651
4653
  delta(e, t, s, l) {
4652
4654
  }
4653
4655
  }
4654
- class cr {
4656
+ class ur {
4655
4657
  /**
4656
4658
  * 初始化,并绑定自动关闭上下文菜单事件
4657
4659
  */
@@ -4732,7 +4734,7 @@ const dl = /* @__PURE__ */ Q({
4732
4734
  return y / v;
4733
4735
  }, ae = (y) => {
4734
4736
  let v = y.target, _ = V(v.scrollTop);
4735
- A(_), s("scroll", v);
4737
+ I(_), s("scroll", v);
4736
4738
  }, k = () => {
4737
4739
  if (p == 0)
4738
4740
  return 80;
@@ -4744,21 +4746,21 @@ const dl = /* @__PURE__ */ Q({
4744
4746
  }, f = (y, v) => {
4745
4747
  let _ = V(y), z = (d - v) * _;
4746
4748
  return ie.between(z, 0, d - v);
4747
- }, E = (y) => {
4749
+ }, C = (y) => {
4748
4750
  let v = k();
4749
4751
  return { top: f(y, v), height: v };
4750
4752
  }, b = (y) => {
4751
- }, I = (y) => {
4752
- let v = V(y);
4753
- A(v);
4754
4753
  }, A = (y) => {
4754
+ let v = V(y);
4755
+ I(v);
4756
+ }, I = (y) => {
4755
4757
  let v = ie.between(y, 0, 1), _ = d - w.value.height;
4756
4758
  w.value.top = _ * v;
4757
4759
  let ye = (p - d) * v;
4758
4760
  r.value.scrollTop = ye, a.value.scrollTop != ye && (a.value.scrollTop = ye);
4759
4761
  }, P = () => {
4760
4762
  let y = r.value.scrollTop;
4761
- w.value = E(y), I(y);
4763
+ w.value = C(y), A(y);
4762
4764
  }, ee = (y) => {
4763
4765
  d = N.getHeight(a.value), p = a.value.scrollHeight;
4764
4766
  let v = k();
@@ -4768,7 +4770,7 @@ const dl = /* @__PURE__ */ Q({
4768
4770
  return parseInt(v.style.top);
4769
4771
  }, ne = (y, v, _, z) => {
4770
4772
  let ye = y.y - v.y, ft = _ + ye, mt = Y(ft);
4771
- A(mt);
4773
+ I(mt);
4772
4774
  }, xe = (y) => {
4773
4775
  h.value = !0;
4774
4776
  }, Se = (y) => {
@@ -4780,11 +4782,11 @@ const dl = /* @__PURE__ */ Q({
4780
4782
  g.dispose();
4781
4783
  }), H(() => r.value.scrollTop, (y, v) => {
4782
4784
  let _ = V(y);
4783
- A(_);
4784
- }), e({ scrollTo: I, update: P }), (y, v) => (R(), B("div", {
4785
+ I(_);
4786
+ }), e({ scrollTo: A, update: P }), (y, v) => (R(), B("div", {
4785
4787
  ref_key: "scrollerRef",
4786
4788
  ref: i,
4787
- class: Ie(["ha-scroller", { hover: m(h) }])
4789
+ class: Ae(["ha-scroller", { hover: m(h) }])
4788
4790
  }, [
4789
4791
  D("div", {
4790
4792
  ref_key: "containerRef",
@@ -4809,7 +4811,7 @@ const dl = /* @__PURE__ */ Q({
4809
4811
  ], 512)
4810
4812
  ], 2));
4811
4813
  }
4812
- }), dr = /* @__PURE__ */ Q({
4814
+ }), cr = /* @__PURE__ */ Q({
4813
4815
  __name: "Timer",
4814
4816
  emits: ["change"],
4815
4817
  setup(u, { expose: e, emit: t }) {
@@ -4831,7 +4833,7 @@ const dl = /* @__PURE__ */ Q({
4831
4833
  wt(pe(m(le).format(m(r), "HH:mm:ss SSS")), 1)
4832
4834
  ]));
4833
4835
  }
4834
- }), hr = /* @__PURE__ */ Q({
4836
+ }), dr = /* @__PURE__ */ Q({
4835
4837
  __name: "Code",
4836
4838
  props: {
4837
4839
  config: { default: {} },
@@ -4843,18 +4845,18 @@ const dl = /* @__PURE__ */ Q({
4843
4845
  let s = t, l = u, { config: r, border: i, modelValue: a } = re(l), o = null, c = null, h = null, d = j(), p = (f) => f == "en" ? null : f, g = (f) => f == "default" ? null : "vs-dark", w = (f) => {
4844
4846
  if (q.editor.completions[f])
4845
4847
  return;
4846
- let E = o.languages.getLanguages().find((I) => I.id == f);
4847
- if (!E)
4848
+ let C = o.languages.getLanguages().find((A) => A.id == f);
4849
+ if (!C)
4848
4850
  return;
4849
- let b = E.loader;
4850
- b && b().then((I) => {
4851
- q.editor.completions[f] || (V(I, f), q.editor.completions[f] = !0);
4851
+ let b = C.loader;
4852
+ b && b().then((A) => {
4853
+ q.editor.completions[f] || (V(A, f), q.editor.completions[f] = !0);
4852
4854
  });
4853
- }, V = (f, E) => o.languages.registerCompletionItemProvider(E, {
4854
- provideCompletionItems: (I, A) => {
4855
- let P = I.getWordUntilPosition(A), ee = {
4856
- startLineNumber: A.lineNumber,
4857
- endLineNumber: A.lineNumber,
4855
+ }, V = (f, C) => o.languages.registerCompletionItemProvider(C, {
4856
+ provideCompletionItems: (A, I) => {
4857
+ let P = A.getWordUntilPosition(I), ee = {
4858
+ startLineNumber: I.lineNumber,
4859
+ endLineNumber: I.lineNumber,
4858
4860
  startColumn: P.startColumn,
4859
4861
  endColumn: P.endColumn
4860
4862
  }, oe = [];
@@ -4878,7 +4880,7 @@ const dl = /* @__PURE__ */ Q({
4878
4880
  }), Y = () => {
4879
4881
  let f = null;
4880
4882
  r.value.schema && (f = r.value.category + "/" + X.getUniqueId(), q.tryAddSchema(f, r.value.category, r.value.schema));
4881
- let E = {
4883
+ let C = {
4882
4884
  validate: !0,
4883
4885
  allowComments: !0,
4884
4886
  //允许配置注释
@@ -4887,10 +4889,10 @@ const dl = /* @__PURE__ */ Q({
4887
4889
  trailingCommas: "ignore"
4888
4890
  //允许末尾逗号
4889
4891
  };
4890
- o.languages.json.jsonDefaults.setDiagnosticsOptions(E), w(r.value.language);
4892
+ o.languages.json.jsonDefaults.setDiagnosticsOptions(C), w(r.value.language);
4891
4893
  let b = f ? o.Uri.parse(f) : null;
4892
4894
  h = o.editor.createModel(a.value, r.value.language, b);
4893
- let I = {
4895
+ let A = {
4894
4896
  tabSize: 2,
4895
4897
  //Tab缩进大小
4896
4898
  detectIndentation: !1,
@@ -4906,14 +4908,14 @@ const dl = /* @__PURE__ */ Q({
4906
4908
  //根据父元素自动布局
4907
4909
  model: h
4908
4910
  };
4909
- c = o.editor.create(d.value, I), r.value.scrollTop && c.setScrollTop(r.value.scrollTop);
4910
- let A = r.value.selection;
4911
- if (A) {
4911
+ c = o.editor.create(d.value, A), r.value.scrollTop && c.setScrollTop(r.value.scrollTop);
4912
+ let I = r.value.selection;
4913
+ if (I) {
4912
4914
  let P = {
4913
- startLineNumber: A.startLine,
4914
- endLineNumber: A.endLine,
4915
- startColumn: A.startColumn,
4916
- endColumn: A.endColumn
4915
+ startLineNumber: I.startLine,
4916
+ endLineNumber: I.endLine,
4917
+ startColumn: I.startColumn,
4918
+ endColumn: I.endColumn
4917
4919
  };
4918
4920
  c.setSelection(P);
4919
4921
  }
@@ -4932,33 +4934,33 @@ const dl = /* @__PURE__ */ Q({
4932
4934
  }, k = () => c;
4933
4935
  return be(() => {
4934
4936
  h == null || h.dispose(), c == null || c.dispose();
4935
- }), H(() => q.theme, (f, E) => {
4937
+ }), H(() => q.theme, (f, C) => {
4936
4938
  let b = g(f);
4937
4939
  o.editor.setTheme(b);
4938
- }), H(() => q.language, (f, E) => {
4940
+ }), H(() => q.language, (f, C) => {
4939
4941
  Oe.config({ "vs/nls": { availableLanguages: { "*": p(f) } } });
4940
- }), H(() => a.value, (f, E) => {
4942
+ }), H(() => a.value, (f, C) => {
4941
4943
  if (!c)
4942
4944
  return;
4943
4945
  let b = c.getValue();
4944
4946
  f != b && c.setValue(f ?? "");
4945
- }), H(() => r.value.language, (f, E) => {
4947
+ }), H(() => r.value.language, (f, C) => {
4946
4948
  if (!c)
4947
4949
  return;
4948
4950
  let b = c.getModel();
4949
4951
  o.editor.setModelLanguage(b, f), w(f);
4950
- }), e({ layout: ae, getEditor: k }), (f, E) => (R(), tt(dl, null, {
4952
+ }), e({ layout: ae, getEditor: k }), (f, C) => (R(), tt(dl, null, {
4951
4953
  default: Ve(() => [
4952
4954
  D("div", {
4953
4955
  ref_key: "monacoEditorRef",
4954
4956
  ref: d,
4955
- class: Ie(["ha-code", { border: m(i) }])
4957
+ class: Ae(["ha-code", { border: m(i) }])
4956
4958
  }, null, 2)
4957
4959
  ]),
4958
4960
  _: 1
4959
4961
  }));
4960
4962
  }
4961
- }), pr = /* @__PURE__ */ Q({
4963
+ }), hr = /* @__PURE__ */ Q({
4962
4964
  __name: "Compare",
4963
4965
  props: {
4964
4966
  inline: { type: Boolean, default: !1 },
@@ -4976,30 +4978,30 @@ const dl = /* @__PURE__ */ Q({
4976
4978
  //是否启用行内模式
4977
4979
  theme: ae(q.theme)
4978
4980
  }), o.setModel({ original: c, modified: h }), d = o.getOriginalEditor(), d.onDidChangeModelContent((f) => {
4979
- let E = d.getValue();
4980
- t("update:original", E), t("change", E);
4981
+ let C = d.getValue();
4982
+ t("update:original", C), t("change", C);
4981
4983
  }), p = o.getModifiedEditor(), p.onDidChangeModelContent((f) => {
4982
- let E = p.getValue();
4983
- t("update:modelValue", E);
4984
+ let C = p.getValue();
4985
+ t("update:modelValue", C);
4984
4986
  });
4985
4987
  }, ae = (k) => k == "default" ? null : "vs-dark";
4986
4988
  return Oe.init().then((k) => {
4987
4989
  g = k, Y(k);
4988
4990
  }), H(() => q.theme, (k, f) => {
4989
- let E = ae(k);
4990
- g.editor.setTheme(E);
4991
+ let C = ae(k);
4992
+ g.editor.setTheme(C);
4991
4993
  }), H(() => r.value, (k, f) => {
4992
4994
  c && g.editor.setModelLanguage(c, k), h && g.editor.setModelLanguage(h, k);
4993
4995
  }), H(() => i.value, (k, f) => {
4994
4996
  if (!c)
4995
4997
  return;
4996
- let E = c.getValue();
4997
- k != E && c.setValue(k ?? "");
4998
+ let C = c.getValue();
4999
+ k != C && c.setValue(k ?? "");
4998
5000
  }), H(() => a.value, (k, f) => {
4999
5001
  if (!h)
5000
5002
  return;
5001
- let E = h.getValue();
5002
- k != E && h.setValue(k ?? "");
5003
+ let C = h.getValue();
5004
+ k != C && h.setValue(k ?? "");
5003
5005
  }), (k, f) => (R(), B("div", {
5004
5006
  ref_key: "compareRef",
5005
5007
  ref: w,
@@ -5018,7 +5020,7 @@ function fl(u, e) {
5018
5020
  }
5019
5021
  const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text" }, vl = /* @__PURE__ */ kt('<div class="ql-formats"><button class="ql-bold" data-toggle="tooltip" data-placement="bottom" title="Bold"></button><button class="ql-italic" data-toggle="tooltip" data-placement="bottom" title="Italic &lt;ctrl+i&gt;"></button><button class="ql-date" data-toggle="tooltip" data-placement="bottom" title="Date"></button><button class="ql-underline" data-toggle="tooltip" data-placement="bottom" title="Underline"></button><button class="ql-strike" data-toggle="tooltip" data-placement="bottom" title="Strike"></button></div><div class="ql-formats"><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="ordered"></button><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="bullet"></button><select class="ql-color"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select><select class="ql-background"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select></div><div class="ql-formats"><button class="ql-code-block" data-toggle="tooltip" data-placement="bottom" title="Code"></button><button class="ql-blockquote" data-toggle="tooltip" data-placement="bottom" title="Block quote"></button><button class="ql-link" data-toggle="tooltip" data-placement="bottom" title="Link"></button></div><div class="ql-formats"><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="1"></button><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="2"></button><select class="ql-align"><option selected></option><option value="center"></option><option value="right"></option><option value="justify"></option></select></div><div class="ql-formats"><select class="ql-size"><option value="small"></option><option selected></option><option value="large"></option><option value="huge"></option></select><select class="ql-header"><option value=""></option><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option></select></div><div class="ql-formats"><select class="ql-font"><option selected></option><option value="serif"></option><option value="monospace"></option></select></div><div class="ql-formats"><button class="ql-image" data-toggle="tooltip" data-placement="bottom" title="Image"></button><button class="ql-video" data-toggle="tooltip" data-placement="bottom" title="Video"></button><button class="ql-clean" data-toggle="tooltip" data-placement="bottom" title="Clean"></button></div>', 7), bl = [
5020
5022
  vl
5021
- ], gr = /* @__PURE__ */ Q({
5023
+ ], pr = /* @__PURE__ */ Q({
5022
5024
  __name: "RichText",
5023
5025
  props: /* @__PURE__ */ Je({
5024
5026
  options: {}
@@ -5029,14 +5031,14 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5029
5031
  emits: /* @__PURE__ */ Je(["change", "scroll"], ["update:modelValue"]),
5030
5032
  setup(u, { expose: e, emit: t }) {
5031
5033
  let s = t, l = u, { options: r } = re(l), i = st(u, "modelValue"), a, o = null, c = null, h = !1, d = !1, p = j(), g = j(), w = j(), V = j(!1), Y = j({ style: null, options: { scrollTop: 0 } }), ae = (b) => {
5032
- let I = le.getDateString(), A = getSelection(), P = A.getRangeAt(0), ee = P.startContainer;
5034
+ let A = le.getDateString(), I = getSelection(), P = I.getRangeAt(0), ee = P.startContainer;
5033
5035
  if (ee.nodeName == "#text")
5034
- ee.insertData(P.startOffset, I), P.setStart(ee, P.startOffset + I.length), A.removeAllRanges(), A.addRange(P);
5036
+ ee.insertData(P.startOffset, A), P.setStart(ee, P.startOffset + A.length), I.removeAllRanges(), I.addRange(P);
5035
5037
  else {
5036
- let oe = document.createTextNode(I);
5038
+ let oe = document.createTextNode(A);
5037
5039
  ee.appendChild(oe);
5038
5040
  let ne = document.createRange();
5039
- ne.selectNodeContents(oe), ne.setStart(oe, ne.startOffset + I.length), A.removeAllRanges(), A.addRange(ne);
5041
+ ne.selectNodeContents(oe), ne.setStart(oe, ne.startOffset + A.length), I.removeAllRanges(), I.addRange(ne);
5040
5042
  }
5041
5043
  }, k = (b) => {
5042
5044
  if (o.scrollTop = b.scrollTop, h || d) {
@@ -5044,7 +5046,7 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5044
5046
  return;
5045
5047
  }
5046
5048
  c = b, s("scroll", b);
5047
- }, f = () => `height: calc(100% - ${N.getHeight(g.value)}px)`, E = async () => {
5049
+ }, f = () => `height: calc(100% - ${N.getHeight(g.value)}px)`, C = async () => {
5048
5050
  let b = await we.getQuill();
5049
5051
  a = new b(p.value, {
5050
5052
  modules: {
@@ -5056,30 +5058,30 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5056
5058
  theme: "snow"
5057
5059
  }), V.value = !0, Xe(() => {
5058
5060
  Y.value.style = f();
5059
- }), r.value.readonly && a.disable(), o = p.value.querySelector(".ql-editor"), o.innerHTML = i.value, Y.value.options.scrollTop = r.value.scrollTop, a.on("text-change", (I, A, P) => {
5061
+ }), r.value.readonly && a.disable(), o = p.value.querySelector(".ql-editor"), o.innerHTML = i.value, Y.value.options.scrollTop = r.value.scrollTop, a.on("text-change", (A, I, P) => {
5060
5062
  o.innerHTML != i.value && (h = !0, i.value = o.innerHTML);
5061
- }), o.addEventListener("paste", (I) => {
5063
+ }), o.addEventListener("paste", (A) => {
5062
5064
  d = !0;
5063
5065
  });
5064
5066
  };
5065
5067
  return Le(() => {
5066
- E();
5068
+ C();
5067
5069
  }), be(() => {
5068
5070
  a = null;
5069
- }), H(() => i.value, (b, I) => {
5071
+ }), H(() => i.value, (b, A) => {
5070
5072
  o && o.innerHTML != b && (o.innerHTML = b);
5071
- }), H(() => r.value.scrollTop, (b, I) => {
5073
+ }), H(() => r.value.scrollTop, (b, A) => {
5072
5074
  b != null && (c == null ? void 0 : c.scrollTop) != b && Xe(() => {
5073
5075
  Y.value.options.scrollTop = b;
5074
5076
  });
5075
- }), e({}), (b, I) => (R(), B("div", yl, [
5077
+ }), e({}), (b, A) => (R(), B("div", yl, [
5076
5078
  xt(D("div", {
5077
5079
  ref_key: "toolbarRef",
5078
5080
  ref: g
5079
5081
  }, bl, 512), [
5080
5082
  [St, m(V)]
5081
5083
  ]),
5082
- Ee(m(hl), {
5084
+ Ce(m(hl), {
5083
5085
  ref_key: "scrollerRef",
5084
5086
  ref: w,
5085
5087
  class: "ql-body",
@@ -5099,15 +5101,15 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5099
5101
  }
5100
5102
  }), wl = {}, xl = { class: "ha-select" }, Sl = /* @__PURE__ */ D("div", { class: "select-title" }, "头", -1), kl = /* @__PURE__ */ D("div", { class: "select-body" }, [
5101
5103
  /* @__PURE__ */ D("input", { type: "text" })
5102
- ], -1), El = [
5104
+ ], -1), Cl = [
5103
5105
  Sl,
5104
5106
  kl
5105
5107
  ];
5106
- function Cl(u, e) {
5107
- return R(), B("div", xl, El);
5108
+ function El(u, e) {
5109
+ return R(), B("div", xl, Cl);
5108
5110
  }
5109
- const Ue = /* @__PURE__ */ We(wl, [["render", Cl]]);
5110
- class fr {
5111
+ const Ue = /* @__PURE__ */ We(wl, [["render", El]]);
5112
+ class gr {
5111
5113
  /**
5112
5114
  * 初始化
5113
5115
  */
@@ -5141,26 +5143,26 @@ const Tl = { class: "ha-condition" }, $l = /* @__PURE__ */ Q({
5141
5143
  setup(u) {
5142
5144
  let e = u, { name: t, operator: s, value: l } = re(e);
5143
5145
  return (r, i) => (R(), B("div", Tl, [
5144
- Ee(m(Ue), {
5146
+ Ce(m(Ue), {
5145
5147
  modelValue: m(t),
5146
5148
  "onUpdate:modelValue": i[0] || (i[0] = (a) => Pe(t) ? t.value = a : t = a)
5147
5149
  }, null, 8, ["modelValue"]),
5148
- Ee(m(Ue), {
5150
+ Ce(m(Ue), {
5149
5151
  modelValue: m(s),
5150
5152
  "onUpdate:modelValue": i[1] || (i[1] = (a) => Pe(s) ? s.value = a : s = a)
5151
5153
  }, {
5152
5154
  default: Ve(() => [
5153
- Ee(m(ml))
5155
+ Ce(m(ml))
5154
5156
  ]),
5155
5157
  _: 1
5156
5158
  }, 8, ["modelValue"]),
5157
- Ee(m(Ue), {
5159
+ Ce(m(Ue), {
5158
5160
  modelValue: m(l),
5159
5161
  "onUpdate:modelValue": i[2] || (i[2] = (a) => Pe(l) ? l.value = a : l = a)
5160
5162
  }, null, 8, ["modelValue"])
5161
5163
  ]));
5162
5164
  }
5163
- }), Ll = { class: "ha-condition-group" }, mr = /* @__PURE__ */ Q({
5165
+ }), Ll = { class: "ha-condition-group" }, fr = /* @__PURE__ */ Q({
5164
5166
  __name: "Index",
5165
5167
  props: {
5166
5168
  conditions: {}
@@ -5168,20 +5170,20 @@ const Tl = { class: "ha-condition" }, $l = /* @__PURE__ */ Q({
5168
5170
  setup(u) {
5169
5171
  let e = u, { conditions: t } = re(e);
5170
5172
  return (s, l) => (R(), B("div", Ll, [
5171
- (R(!0), B(Et, null, Ct(m(t), (r) => (R(), tt(m($l), {
5173
+ (R(!0), B(Ct, null, Et(m(t), (r) => (R(), tt(m($l), {
5172
5174
  name: r.name,
5173
5175
  operator: r.operator,
5174
5176
  value: r.value
5175
5177
  }, null, 8, ["name", "operator", "value"]))), 256))
5176
5178
  ]));
5177
5179
  }
5178
- }), Il = {}, Al = { class: "ha-col" };
5180
+ }), Al = {}, Il = { class: "ha-col" };
5179
5181
  function Ol(u, e) {
5180
- return R(), B("div", Al, [
5182
+ return R(), B("div", Il, [
5181
5183
  fe(u.$slots, "default")
5182
5184
  ]);
5183
5185
  }
5184
- const yr = /* @__PURE__ */ We(Il, [["render", Ol]]), vr = /* @__PURE__ */ Q({
5186
+ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5185
5187
  __name: "Container",
5186
5188
  props: {
5187
5189
  container: { type: Boolean, default: !0 }
@@ -5189,30 +5191,30 @@ const yr = /* @__PURE__ */ We(Il, [["render", Ol]]), vr = /* @__PURE__ */ Q({
5189
5191
  setup(u) {
5190
5192
  let e = u, { container: t } = re(e);
5191
5193
  return (s, l) => (R(), B("div", {
5192
- class: Ie({ "ha-container": m(t) })
5194
+ class: Ae({ "ha-container": m(t) })
5193
5195
  }, [
5194
5196
  fe(s.$slots, "default")
5195
5197
  ], 2));
5196
5198
  }
5197
- }), br = /* @__PURE__ */ Q({
5199
+ }), vr = /* @__PURE__ */ Q({
5198
5200
  __name: "Row",
5199
5201
  props: {
5200
5202
  gap: {},
5201
5203
  direction: {}
5202
5204
  },
5203
5205
  setup(u) {
5204
- let e = u, { gap: t, direction: s } = re(e), l = Ce(() => {
5206
+ let e = u, { gap: t, direction: s } = re(e), l = Ee(() => {
5205
5207
  let r = { gap: null };
5206
5208
  return t.value && (r.gap = t.value + "px"), r;
5207
5209
  });
5208
5210
  return (r, i) => (R(), B("div", {
5209
- class: Ie(["ha-row", m(s)]),
5211
+ class: Ae(["ha-row", m(s)]),
5210
5212
  style: me(m(l))
5211
5213
  }, [
5212
5214
  fe(r.$slots, "default")
5213
5215
  ], 6));
5214
5216
  }
5215
- }), wr = /* @__PURE__ */ Q({
5217
+ }), br = /* @__PURE__ */ Q({
5216
5218
  __name: "Progress",
5217
5219
  props: {
5218
5220
  modelValue: { type: Boolean },
@@ -5248,18 +5250,18 @@ const yr = /* @__PURE__ */ We(Il, [["render", Ol]]), vr = /* @__PURE__ */ Q({
5248
5250
  style: me({ width: m(s) + "%" })
5249
5251
  }, null, 4)) : et("", !0);
5250
5252
  }
5251
- }), Dl = { class: "progress-tips" }, jl = { class: "progress-tip info" }, Rl = { class: "progress-tip success" }, _l = { class: "progress-tip error" }, Bl = { class: "progress-chart" }, Pl = { class: "progress-bar" }, Ul = { class: "progress-text" }, xr = /* @__PURE__ */ Q({
5253
+ }), Dl = { class: "progress-tips" }, jl = { class: "progress-tip info" }, Rl = { class: "progress-tip success" }, _l = { class: "progress-tip error" }, Bl = { class: "progress-chart" }, Pl = { class: "progress-bar" }, Ul = { class: "progress-text" }, wr = /* @__PURE__ */ Q({
5252
5254
  __name: "SocketProgress",
5253
5255
  props: {
5254
5256
  progress: {}
5255
5257
  },
5256
5258
  setup(u) {
5257
- let e = u, { progress: t } = re(e), s = Ce(() => {
5259
+ let e = u, { progress: t } = re(e), s = Ee(() => {
5258
5260
  let a = t.value;
5259
5261
  return (a.succeed ?? 0) + (a.errored ?? 0);
5260
- }), l = Ce(() => ie.getPercentage(s.value, t.value.total)), r = Ce(() => ie.getProgressText(s.value, t.value.total)), i = Ce(() => ie.getPercentageText(s.value, t.value.total));
5262
+ }), l = Ee(() => ie.getPercentage(s.value, t.value.total)), r = Ee(() => ie.getProgressText(s.value, t.value.total)), i = Ee(() => ie.getPercentageText(s.value, t.value.total));
5261
5263
  return (a, o) => (R(), B("div", {
5262
- class: Ie(["ha-socket-progress", { error: m(t).errored > 0 }])
5264
+ class: Ae(["ha-socket-progress", { error: m(t).errored > 0 }])
5263
5265
  }, [
5264
5266
  D("div", Dl, [
5265
5267
  D("div", jl, "进度:" + pe(m(r)), 1),
@@ -5280,7 +5282,7 @@ const yr = /* @__PURE__ */ We(Il, [["render", Ol]]), vr = /* @__PURE__ */ Q({
5280
5282
  }), Fl = { class: "ha-tab" }, Ml = /* @__PURE__ */ D("div", { class: "tab-header" }, null, -1), Nl = /* @__PURE__ */ D("div", { class: "tab-body" }, null, -1), ql = [
5281
5283
  Ml,
5282
5284
  Nl
5283
- ], Sr = /* @__PURE__ */ Q({
5285
+ ], xr = /* @__PURE__ */ Q({
5284
5286
  __name: "Tab",
5285
5287
  props: {
5286
5288
  destroy: { type: Boolean }
@@ -5289,7 +5291,7 @@ const yr = /* @__PURE__ */ We(Il, [["render", Ol]]), vr = /* @__PURE__ */ Q({
5289
5291
  return (e, t) => (R(), B("div", Fl, ql));
5290
5292
  }
5291
5293
  });
5292
- let kr = async (u) => {
5294
+ let Sr = async (u) => {
5293
5295
  u == null && (u = new il()), await nl(u), await Ps(u);
5294
5296
  let e = await Bs.getSso(), t = { baseUrl: u.baseUrl, language: q.language, user: e, platform: "pc" }, s = J.serialize(t);
5295
5297
  await L.open(s), L.onResponse = async (l) => {
@@ -5316,46 +5318,46 @@ export {
5316
5318
  $ as Factories,
5317
5319
  ns as FeatureFactory,
5318
5320
  De as FileHelper,
5319
- hr as HaCode,
5320
- yr as HaCol,
5321
- pr as HaCompare,
5321
+ dr as HaCode,
5322
+ mr as HaCol,
5323
+ hr as HaCompare,
5322
5324
  $l as HaCondition,
5323
- mr as HaConditionGroup,
5324
- vr as HaContainer,
5325
- ir as HaEmpty,
5325
+ fr as HaConditionGroup,
5326
+ yr as HaContainer,
5327
+ nr as HaEmpty,
5326
5328
  dl as HaFill,
5327
5329
  ml as HaOption,
5328
- wr as HaProgress,
5329
- gr as HaRichText,
5330
- br as HaRow,
5330
+ br as HaProgress,
5331
+ pr as HaRichText,
5332
+ vr as HaRow,
5331
5333
  hl as HaScroller,
5332
5334
  Ue as HaSelect,
5333
- xr as HaSocketProgress,
5334
- Sr as HaTab,
5335
- dr as HaTimer,
5335
+ wr as HaSocketProgress,
5336
+ xr as HaTab,
5337
+ cr as HaTimer,
5336
5338
  ds as HaloHttp,
5337
5339
  os as HasherFactory,
5338
5340
  Qe as HtmlHelper,
5339
5341
  hs as HttpFactory,
5340
5342
  ot as HttpRequest,
5341
5343
  Ze as HttpResponse,
5342
- Cs as I18nSvc,
5344
+ Es as I18nSvc,
5343
5345
  Dt as ImageHelper,
5344
5346
  J as JsonHelper,
5345
- or as KeyboardUtility,
5346
- ur as ListDelta,
5347
+ ar as KeyboardUtility,
5348
+ or as ListDelta,
5347
5349
  ie as MathHelper,
5348
5350
  ps as Messenger,
5349
5351
  fs as MessengerFactory,
5350
5352
  jt as MicroHelper,
5351
5353
  je as MountHelper,
5352
- cr as MouseUtility,
5354
+ ur as MouseUtility,
5353
5355
  te as ObjectHelper,
5354
5356
  pt as Position,
5355
5357
  Nt as ProviderFactory,
5356
- er as ProviderTable,
5357
- fr as Range,
5358
- ar as Rect,
5358
+ Hl as ProviderTable,
5359
+ gr as Range,
5360
+ ir as Rect,
5359
5361
  Rt as Ref,
5360
5362
  Ye as ScrollHelper,
5361
5363
  Bt as SignHelper,
@@ -5364,7 +5366,7 @@ export {
5364
5366
  Xs as SsoFactory,
5365
5367
  ut as SsoUser,
5366
5368
  X as StringHelper,
5367
- tr as SvcFactory,
5369
+ er as SvcFactory,
5368
5370
  Gs as TaskFactory,
5369
5371
  ke as TaskHelper,
5370
5372
  el as TemplateFactory,
@@ -5372,25 +5374,24 @@ export {
5372
5374
  Re as TreeHelper,
5373
5375
  U as TypeHelper,
5374
5376
  W as UrlHelper,
5375
- rr as VideoFactory,
5376
- nr as VoiceFactory,
5377
+ lr as VideoFactory,
5378
+ rr as VoiceFactory,
5377
5379
  ll as base64,
5378
5380
  we as cdn,
5379
5381
  q as configSvc,
5380
- kr as createFe,
5381
- sr as driverSvc,
5382
- lr as envSvc,
5382
+ Sr as createFe,
5383
+ tr as driverSvc,
5384
+ sr as envSvc,
5383
5385
  L as http,
5384
5386
  G as i18nSvc,
5385
5387
  nl as initDriver,
5386
5388
  Ps as initSvc,
5387
- Hl as loadEcharts,
5388
5389
  Oe as loader,
5389
5390
  Rs as logSvc,
5390
5391
  ht as md5,
5391
5392
  ve as messenger,
5392
5393
  se as moment,
5393
- Ae as settingRepo,
5394
+ Ie as settingRepo,
5394
5395
  de as settingSvc,
5395
5396
  _s as socketSvc,
5396
5397
  rl as storage,
@@ -5,9 +5,8 @@ import ICdn from "./ICdn";
5
5
  declare abstract class Cdn implements ICdn {
6
6
  abstract type: string;
7
7
  abstract open(conn: string): Promise<void>;
8
- loadFilesAsync(path: string, files: string[]): Promise<void>;
9
- loadAsync(path: string | string[]): Promise<HTMLElement[]>;
10
8
  abstract getCrypto(): Promise<any>;
9
+ abstract getECharts(): Promise<any>;
11
10
  abstract getElementPlus(): Promise<any>;
12
11
  abstract getFortAwesome(): Promise<any>;
13
12
  abstract getMonacoPath(): string;
@@ -15,6 +14,8 @@ declare abstract class Cdn implements ICdn {
15
14
  abstract getQuill(): Promise<any>;
16
15
  abstract getWeiXin(): Promise<any>;
17
16
  abstract getXlsx(): Promise<any>;
17
+ loadFilesAsync(path: string, files: string[]): Promise<void>;
18
+ loadAsync(path: string | string[]): Promise<HTMLElement[]>;
18
19
  /**
19
20
  * 异步加载脚本/样式内容,把内容处理为行内html
20
21
  * 这种方式,依赖的内部资源,会从当前站点加载
@@ -15,6 +15,10 @@ interface ICdn extends IDriver {
15
15
  * 加解密
16
16
  */
17
17
  getCrypto(): Promise<any>;
18
+ /**
19
+ * 加载ECharts
20
+ */
21
+ getECharts(): Promise<any>;
18
22
  /**
19
23
  * 加载Element-plus
20
24
  */
@@ -8,6 +8,7 @@ declare class LocalCdn extends Cdn {
8
8
  type: string;
9
9
  open(conn: string): Promise<void>;
10
10
  getCrypto(): Promise<any>;
11
+ getECharts(): Promise<any>;
11
12
  getElementPlus(): Promise<any>;
12
13
  getFortAwesome(): Promise<any>;
13
14
  getMonaco(): Promise<any>;
@@ -24,6 +24,7 @@ declare class ThirdCdn extends Cdn {
24
24
  jdCdn: string;
25
25
  open(conn: string): Promise<void>;
26
26
  getCrypto(): Promise<any>;
27
+ getECharts(): Promise<any>;
27
28
  getElementPlus(): Promise<any>;
28
29
  getFortAwesome(): Promise<any>;
29
30
  getMonacoPath(): string;
@@ -2,8 +2,4 @@ import loader from "@monaco-editor/loader";
2
2
  import type * as Monaco from 'monaco-editor/esm/vs/editor/editor.api';
3
3
  import moment from "moment";
4
4
  import Ref from "./Ref";
5
- /**
6
- * 异步加载echarts
7
- */
8
- declare let loadEcharts: () => Promise<unknown>;
9
- export { loader, Monaco, moment, loadEcharts, Ref };
5
+ export { loader, Monaco, moment, Ref };
@@ -0,0 +1,6 @@
1
+ import { UserConfig } from "vite";
2
+ declare const _default: ({ command, mode }: {
3
+ command: any;
4
+ mode: any;
5
+ }) => UserConfig;
6
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Halo front end sdk",
5
5
  "scripts": {
6
6
  "halo-fe:tsc": "vue-tsc",
@@ -13,7 +13,7 @@
13
13
  "halo-fe:publish": "npm publish"
14
14
  },
15
15
  "type": "module",
16
- "module": "./dist/main.ts",
16
+ "module": "./dist/main.js",
17
17
  "types": "./esm/main.d.ts",
18
18
  "files": [
19
19
  "dist",
@@ -35,7 +35,6 @@
35
35
  "dependencies": {
36
36
  "@monaco-editor/loader": "1.4.0",
37
37
  "clone": "2.1.2",
38
- "echarts": "5.5.1",
39
38
  "file-saver": "2.0.5",
40
39
  "liquidjs": "10.16.1",
41
40
  "moment": "2.30.1",
@@ -48,6 +47,7 @@
48
47
  "@vitejs/plugin-vue": "5.1.2",
49
48
  "@vitejs/plugin-vue-jsx": "4.0.1",
50
49
  "crypto-js": "4.2.0",
50
+ "echarts": "5.5.1",
51
51
  "quill": "2.0.2",
52
52
  "sass": "1.77.8",
53
53
  "vite": "5.4.1",